summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:18:13 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:18:13 +0200
commitb817eb954419c818e04432e87af692bc0f53ce18 (patch)
tree1f51e4435aa74ba91c752831f08caee599ff0d43
parent8ade1b264b756914ca121db4379cbbe709b7eb89 (diff)
recreated tag libreoffice-3.3.3.1 which had these commits:
commit f4e5c3d6e530c85d1d9be70f2f3b4f5b35d6db80 (tag: refs/tags/libreoffice-3.3.3.1) Author: Petr Mladek <pmladek@suse.cz> Date: Tue May 31 17:39:07 2011 +0200 Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1) commit a7febbdcdc9fd4a80e8357f3812456fc3fa0f39f Author: Radek Doulik <rodo@novell.com> Date: Thu Mar 10 15:47:35 2011 +0100 fix for 3.3.2 blocker fdo#34718 - change the type of nDrawerHeight to long - before it became big positive long in the called Point::Move function, moving the drawer under the visible area. so it was basically signed/unsigned problem in the layouter svtools/source/toolpanel/drawerlayouter.cxx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Notes
split repo tag: libs-gui_libreoffice-3.3.3.1
-rw-r--r--basebmp/inc/basebmp/accessor.hxx14
-rw-r--r--basebmp/inc/basebmp/accessoradapters.hxx108
-rw-r--r--basebmp/inc/basebmp/accessorfunctors.hxx30
-rw-r--r--basebmp/inc/basebmp/accessortraits.hxx12
-rw-r--r--basebmp/inc/basebmp/bitmapdevice.hxx122
-rw-r--r--basebmp/inc/basebmp/clippedlinerenderer.hxx40
-rw-r--r--basebmp/inc/basebmp/color.hxx6
-rw-r--r--basebmp/inc/basebmp/colorblendaccessoradapter.hxx16
-rw-r--r--basebmp/inc/basebmp/colormisc.hxx14
-rw-r--r--basebmp/inc/basebmp/colortraits.hxx28
-rw-r--r--basebmp/inc/basebmp/compositeiterator.hxx72
-rw-r--r--basebmp/inc/basebmp/debug.hxx14
-rw-r--r--basebmp/inc/basebmp/drawmodes.hxx4
-rw-r--r--basebmp/inc/basebmp/endian.hxx2
-rw-r--r--basebmp/inc/basebmp/fillimage.hxx12
-rw-r--r--basebmp/inc/basebmp/genericcolorimageaccessor.hxx8
-rw-r--r--basebmp/inc/basebmp/greylevelformats.hxx24
-rw-r--r--basebmp/inc/basebmp/iteratortraits.hxx8
-rw-r--r--basebmp/inc/basebmp/linerenderer.hxx20
-rw-r--r--basebmp/inc/basebmp/metafunctions.hxx38
-rw-r--r--basebmp/inc/basebmp/nonstandarditerator.hxx2
-rw-r--r--basebmp/inc/basebmp/packedpixeliterator.hxx88
-rw-r--r--basebmp/inc/basebmp/paletteformats.hxx12
-rw-r--r--basebmp/inc/basebmp/paletteimageaccessor.hxx26
-rw-r--r--basebmp/inc/basebmp/pixelformatadapters.hxx8
-rw-r--r--basebmp/inc/basebmp/pixeliterator.hxx10
-rw-r--r--basebmp/inc/basebmp/polypolygonrenderer.hxx56
-rw-r--r--basebmp/inc/basebmp/rgb24pixelformats.hxx14
-rw-r--r--basebmp/inc/basebmp/rgbmaskpixelformats.hxx32
-rw-r--r--basebmp/inc/basebmp/scaleimage.hxx28
-rw-r--r--basebmp/inc/basebmp/scanlineformats.hxx2
-rw-r--r--basebmp/inc/basebmp/stridedarrayiterator.hxx2
-rw-r--r--basebmp/inc/basebmp/tools.hxx10
-rw-r--r--basebmp/inc/basebmp/truecolormaskaccessor.hxx54
-rw-r--r--basebmp/source/bitmapdevice.cxx394
-rw-r--r--basebmp/source/debug.cxx6
-rw-r--r--basebmp/source/intconversion.hxx12
-rw-r--r--basebmp/source/polypolygonrenderer.cxx6
-rw-r--r--basebmp/test/basictest.cxx2
-rw-r--r--basebmp/test/bmpdemo.cxx154
-rw-r--r--basebmp/test/bmpmasktest.cxx2
-rw-r--r--basebmp/test/bmptest.cxx2
-rw-r--r--basebmp/test/cliptest.cxx2
-rw-r--r--basebmp/test/export.map2
-rw-r--r--basebmp/test/filltest.cxx2
-rw-r--r--basebmp/test/linetest.cxx2
-rw-r--r--basebmp/test/masktest.cxx2
-rw-r--r--basebmp/test/polytest.cxx2
-rw-r--r--basebmp/test/tools.cxx2
-rw-r--r--basebmp/test/tools.hxx2
-rw-r--r--basegfx/inc/basegfx/color/bcolor.hxx66
-rw-r--r--basegfx/inc/basegfx/color/bcolormodifier.hxx48
-rw-r--r--basegfx/inc/basegfx/color/bcolortools.hxx2
-rw-r--r--basegfx/inc/basegfx/curve/b2dbeziertools.hxx6
-rw-r--r--basegfx/inc/basegfx/curve/b2dcubicbezier.hxx24
-rw-r--r--basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx16
-rw-r--r--basegfx/inc/basegfx/matrix/b2dhommatrix.hxx22
-rw-r--r--basegfx/inc/basegfx/matrix/b2dhommatrixtools.hxx16
-rw-r--r--basegfx/inc/basegfx/matrix/b3dhommatrix.hxx24
-rw-r--r--basegfx/inc/basegfx/numeric/ftools.hxx86
-rw-r--r--basegfx/inc/basegfx/pixel/bpixel.hxx52
-rw-r--r--basegfx/inc/basegfx/point/b2dhompoint.hxx72
-rw-r--r--basegfx/inc/basegfx/point/b2dpoint.hxx56
-rw-r--r--basegfx/inc/basegfx/point/b2ipoint.hxx48
-rw-r--r--basegfx/inc/basegfx/point/b3dhompoint.hxx216
-rw-r--r--basegfx/inc/basegfx/point/b3dpoint.hxx66
-rw-r--r--basegfx/inc/basegfx/point/b3ipoint.hxx64
-rw-r--r--basegfx/inc/basegfx/polygon/b2dlinegeometry.hxx28
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygon.hxx28
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygonclipper.hxx2
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx4
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygontools.hxx70
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolygontriangulator.hxx2
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx8
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx4
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygonfillrule.hxx2
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx28
-rw-r--r--basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx24
-rw-r--r--basegfx/inc/basegfx/polygon/b2dtrapezoid.hxx26
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygon.hxx2
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx10
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygontools.hxx20
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx8
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx20
-rw-r--r--basegfx/inc/basegfx/range/b1drange.hxx122
-rw-r--r--basegfx/inc/basegfx/range/b1ibox.hxx112
-rw-r--r--basegfx/inc/basegfx/range/b1irange.hxx114
-rw-r--r--basegfx/inc/basegfx/range/b2dconnectedranges.hxx46
-rw-r--r--basegfx/inc/basegfx/range/b2dpolyrange.hxx2
-rw-r--r--basegfx/inc/basegfx/range/b2drange.hxx108
-rw-r--r--basegfx/inc/basegfx/range/b2drangeclipper.hxx6
-rw-r--r--basegfx/inc/basegfx/range/b2drectangle.hxx2
-rw-r--r--basegfx/inc/basegfx/range/b2ibox.hxx88
-rw-r--r--basegfx/inc/basegfx/range/b2irange.hxx98
-rw-r--r--basegfx/inc/basegfx/range/b2irectangle.hxx2
-rw-r--r--basegfx/inc/basegfx/range/b3drange.hxx114
-rw-r--r--basegfx/inc/basegfx/range/b3dvolume.hxx2
-rw-r--r--basegfx/inc/basegfx/range/b3ibox.hxx86
-rw-r--r--basegfx/inc/basegfx/range/b3irange.hxx98
-rw-r--r--basegfx/inc/basegfx/range/b3ivolume.hxx2
-rw-r--r--basegfx/inc/basegfx/range/basicbox.hxx2
-rw-r--r--basegfx/inc/basegfx/range/basicrange.hxx28
-rw-r--r--basegfx/inc/basegfx/range/rangeexpander.hxx8
-rw-r--r--basegfx/inc/basegfx/raster/bpixelraster.hxx18
-rw-r--r--basegfx/inc/basegfx/raster/bzpixelraster.hxx10
-rw-r--r--basegfx/inc/basegfx/raster/rasterconvert3d.hxx74
-rw-r--r--basegfx/inc/basegfx/tools/b2dclipstate.hxx4
-rw-r--r--basegfx/inc/basegfx/tools/canvastools.hxx122
-rw-r--r--basegfx/inc/basegfx/tools/debugplotter.hxx46
-rw-r--r--basegfx/inc/basegfx/tools/gradienttools.hxx42
-rw-r--r--basegfx/inc/basegfx/tools/keystoplerp.hxx2
-rw-r--r--basegfx/inc/basegfx/tools/lerp.hxx10
-rw-r--r--basegfx/inc/basegfx/tools/rectcliptools.hxx8
-rw-r--r--basegfx/inc/basegfx/tools/tools.hxx20
-rw-r--r--basegfx/inc/basegfx/tools/unopolypolygon.hxx12
-rw-r--r--basegfx/inc/basegfx/tuple/b2dtuple.hxx248
-rw-r--r--basegfx/inc/basegfx/tuple/b2i64tuple.hxx230
-rw-r--r--basegfx/inc/basegfx/tuple/b2ituple.hxx142
-rw-r--r--basegfx/inc/basegfx/tuple/b3dtuple.hxx268
-rw-r--r--basegfx/inc/basegfx/tuple/b3i64tuple.hxx244
-rw-r--r--basegfx/inc/basegfx/tuple/b3ituple.hxx244
-rw-r--r--basegfx/inc/basegfx/vector/b2dsize.hxx2
-rw-r--r--basegfx/inc/basegfx/vector/b2dvector.hxx60
-rw-r--r--basegfx/inc/basegfx/vector/b2enums.hxx26
-rw-r--r--basegfx/inc/basegfx/vector/b2isize.hxx2
-rw-r--r--basegfx/inc/basegfx/vector/b2ivector.hxx54
-rw-r--r--basegfx/inc/basegfx/vector/b3dsize.hxx2
-rw-r--r--basegfx/inc/basegfx/vector/b3dvector.hxx60
-rw-r--r--basegfx/inc/basegfx/vector/b3isize.hxx2
-rw-r--r--basegfx/inc/basegfx/vector/b3ivector.hxx60
-rw-r--r--basegfx/inc/pch/precompiled_basegfx.cxx2
-rw-r--r--basegfx/inc/pch/precompiled_basegfx.hxx2
-rw-r--r--basegfx/qa/mkpolygons.pl98
-rw-r--r--basegfx/source/color/bcolor.cxx2
-rw-r--r--basegfx/source/color/bcolormodifier.cxx2
-rw-r--r--basegfx/source/color/bcolortools.cxx12
-rw-r--r--basegfx/source/curve/b2dbeziertools.cxx6
-rw-r--r--basegfx/source/curve/b2dcubicbezier.cxx96
-rw-r--r--basegfx/source/curve/b2dquadraticbezier.cxx14
-rw-r--r--basegfx/source/inc/PolygonPoint.hxx46
-rw-r--r--basegfx/source/inc/hommatrixtemplate.hxx44
-rw-r--r--basegfx/source/inc/polygontemplate.hxx46
-rw-r--r--basegfx/source/matrix/b2dhommatrix.cxx24
-rw-r--r--basegfx/source/matrix/b2dhommatrixtools.cxx26
-rw-r--r--basegfx/source/matrix/b3dhommatrix.cxx30
-rw-r--r--basegfx/source/numeric/ftools.cxx2
-rw-r--r--basegfx/source/pixel/bpixel.cxx2
-rw-r--r--basegfx/source/point/b2dhompoint.cxx136
-rw-r--r--basegfx/source/point/b2dpoint.cxx22
-rw-r--r--basegfx/source/point/b2ipoint.cxx22
-rw-r--r--basegfx/source/point/b3dhompoint.cxx2
-rw-r--r--basegfx/source/point/b3dpoint.cxx8
-rw-r--r--basegfx/source/point/b3ipoint.cxx8
-rw-r--r--basegfx/source/polygon/b2dlinegeometry.cxx74
-rw-r--r--basegfx/source/polygon/b2dpolygon.cxx138
-rw-r--r--basegfx/source/polygon/b2dpolygonclipper.cxx88
-rw-r--r--basegfx/source/polygon/b2dpolygoncutandtouch.cxx74
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx200
-rw-r--r--basegfx/source/polygon/b2dpolygontriangulator.cxx30
-rw-r--r--basegfx/source/polygon/b2dpolypolygon.cxx18
-rw-r--r--basegfx/source/polygon/b2dpolypolygoncutter.cxx44
-rw-r--r--basegfx/source/polygon/b2dpolypolygonrasterconverter.cxx80
-rw-r--r--basegfx/source/polygon/b2dpolypolygontools.cxx16
-rw-r--r--basegfx/source/polygon/b2dsvgpolypolygon.cxx168
-rw-r--r--basegfx/source/polygon/b2dtrapezoid.cxx134
-rw-r--r--basegfx/source/polygon/b3dpolygon.cxx132
-rw-r--r--basegfx/source/polygon/b3dpolygonclipper.cxx8
-rw-r--r--basegfx/source/polygon/b3dpolygontools.cxx38
-rw-r--r--basegfx/source/polygon/b3dpolypolygon.cxx18
-rw-r--r--basegfx/source/polygon/b3dpolypolygontools.cxx22
-rw-r--r--basegfx/source/range/b1drange.cxx6
-rw-r--r--basegfx/source/range/b2dpolyrange.cxx26
-rw-r--r--basegfx/source/range/b2drange.cxx6
-rw-r--r--basegfx/source/range/b2drangeclipper.cxx140
-rw-r--r--basegfx/source/range/b2xrange.cxx66
-rw-r--r--basegfx/source/range/b3drange.cxx12
-rw-r--r--basegfx/source/raster/bpixelraster.cxx2
-rw-r--r--basegfx/source/raster/bzpixelraster.cxx2
-rw-r--r--basegfx/source/raster/rasterconvert3d.cxx20
-rw-r--r--basegfx/source/tools/b2dclipstate.cxx36
-rw-r--r--basegfx/source/tools/canvastools.cxx38
-rw-r--r--basegfx/source/tools/debugplotter.cxx58
-rw-r--r--basegfx/source/tools/gradienttools.cxx86
-rw-r--r--basegfx/source/tools/keystoplerp.cxx18
-rw-r--r--basegfx/source/tools/liangbarsky.cxx20
-rw-r--r--basegfx/source/tools/tools.cxx36
-rw-r--r--basegfx/source/tools/unopolypolygon.cxx118
-rw-r--r--basegfx/source/tuple/b2dtuple.cxx8
-rw-r--r--basegfx/source/tuple/b2i64tuple.cxx2
-rw-r--r--basegfx/source/tuple/b2ituple.cxx102
-rw-r--r--basegfx/source/tuple/b3dtuple.cxx8
-rw-r--r--basegfx/source/tuple/b3i64tuple.cxx2
-rw-r--r--basegfx/source/tuple/b3ituple.cxx2
-rw-r--r--basegfx/source/vector/b2dvector.cxx30
-rw-r--r--basegfx/source/vector/b2ivector.cxx2
-rw-r--r--basegfx/source/vector/b3dvector.cxx8
-rw-r--r--basegfx/source/vector/b3ivector.cxx2
-rw-r--r--basegfx/source/workbench/bezierclip.cxx546
-rw-r--r--basegfx/source/workbench/bezierclip.hxx14
-rw-r--r--basegfx/source/workbench/convexhull.cxx22
-rw-r--r--basegfx/source/workbench/gauss.hxx54
-rw-r--r--basegfx/test/basegfx1d.cxx2
-rw-r--r--basegfx/test/basegfx2d.cxx190
-rw-r--r--basegfx/test/basegfx3d.cxx2
-rw-r--r--basegfx/test/basegfxtools.cxx6
-rw-r--r--basegfx/test/boxclipper.cxx30
-rw-r--r--basegfx/test/clipstate.cxx18
-rw-r--r--basegfx/test/export.map2
-rw-r--r--basegfx/test/genericclipper.cxx16
-rw-r--r--basegfx/test/testtools.cxx36
-rw-r--r--basegfx/test/testtools.hxx8
-rw-r--r--canvas/inc/canvas/base/basemutexhelper.hxx4
-rw-r--r--canvas/inc/canvas/base/bitmapcanvasbase.hxx52
-rw-r--r--canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx24
-rw-r--r--canvas/inc/canvas/base/cachedprimitivebase.hxx28
-rw-r--r--canvas/inc/canvas/base/canvasbase.hxx180
-rw-r--r--canvas/inc/canvas/base/canvascustomspritebase.hxx46
-rw-r--r--canvas/inc/canvas/base/canvascustomspritehelper.hxx66
-rw-r--r--canvas/inc/canvas/base/doublebitmapbase.hxx38
-rw-r--r--canvas/inc/canvas/base/floatbitmapbase.hxx46
-rw-r--r--canvas/inc/canvas/base/graphicdevicebase.hxx80
-rw-r--r--canvas/inc/canvas/base/integerbitmapbase.hxx32
-rw-r--r--canvas/inc/canvas/base/sprite.hxx10
-rw-r--r--canvas/inc/canvas/base/spritecanvasbase.hxx58
-rw-r--r--canvas/inc/canvas/base/spritesurface.hxx20
-rw-r--r--canvas/inc/canvas/canvastools.hxx200
-rw-r--r--canvas/inc/canvas/debug.hxx2
-rw-r--r--canvas/inc/canvas/elapsedtime.hxx42
-rw-r--r--canvas/inc/canvas/parametricpolypolygon.hxx80
-rw-r--r--canvas/inc/canvas/prioritybooster.hxx2
-rw-r--r--canvas/inc/canvas/propertysethelper.hxx12
-rw-r--r--canvas/inc/canvas/rendering/bitmap.hxx180
-rw-r--r--canvas/inc/canvas/rendering/icachedprimitive.hxx2
-rw-r--r--canvas/inc/canvas/rendering/icolorbuffer.hxx20
-rw-r--r--canvas/inc/canvas/rendering/irendermodule.hxx2
-rw-r--r--canvas/inc/canvas/rendering/isurface.hxx2
-rw-r--r--canvas/inc/canvas/rendering/isurfaceproxy.hxx16
-rw-r--r--canvas/inc/canvas/rendering/isurfaceproxymanager.hxx4
-rw-r--r--canvas/inc/canvas/spriteredrawmanager.hxx132
-rw-r--r--canvas/inc/canvas/vclwrapper.hxx20
-rw-r--r--canvas/inc/canvas/verbosetrace.hxx4
-rw-r--r--canvas/inc/canvas/verifyinput.hxx350
-rw-r--r--canvas/inc/pch/precompiled_canvas.cxx2
-rw-r--r--canvas/inc/pch/precompiled_canvas.hxx2
-rw-r--r--canvas/source/cairo/cairo_cachedbitmap.cxx14
-rw-r--r--canvas/source/cairo/cairo_cachedbitmap.hxx20
-rw-r--r--canvas/source/cairo/cairo_cairo.cxx6
-rw-r--r--canvas/source/cairo/cairo_cairo.hxx10
-rw-r--r--canvas/source/cairo/cairo_canvas.cxx20
-rw-r--r--canvas/source/cairo/cairo_canvas.hxx20
-rw-r--r--canvas/source/cairo/cairo_canvasbitmap.cxx56
-rw-r--r--canvas/source/cairo/cairo_canvasbitmap.hxx18
-rw-r--r--canvas/source/cairo/cairo_canvascustomsprite.cxx20
-rw-r--r--canvas/source/cairo/cairo_canvascustomsprite.hxx16
-rw-r--r--canvas/source/cairo/cairo_canvasfont.cxx18
-rw-r--r--canvas/source/cairo/cairo_canvasfont.hxx16
-rw-r--r--canvas/source/cairo/cairo_canvashelper.cxx330
-rw-r--r--canvas/source/cairo/cairo_canvashelper.hxx288
-rw-r--r--canvas/source/cairo/cairo_canvashelper_text.cxx76
-rw-r--r--canvas/source/cairo/cairo_canvashelper_texturefill.cxx40
-rw-r--r--canvas/source/cairo/cairo_devicehelper.cxx72
-rw-r--r--canvas/source/cairo/cairo_devicehelper.hxx42
-rw-r--r--canvas/source/cairo/cairo_quartz_cairo.cxx70
-rw-r--r--canvas/source/cairo/cairo_quartz_cairo.hxx8
-rw-r--r--canvas/source/cairo/cairo_repainttarget.hxx4
-rw-r--r--canvas/source/cairo/cairo_services.cxx2
-rw-r--r--canvas/source/cairo/cairo_sprite.hxx2
-rw-r--r--canvas/source/cairo/cairo_spritecanvas.cxx16
-rw-r--r--canvas/source/cairo/cairo_spritecanvas.hxx18
-rw-r--r--canvas/source/cairo/cairo_spritecanvashelper.cxx104
-rw-r--r--canvas/source/cairo/cairo_spritecanvashelper.hxx44
-rw-r--r--canvas/source/cairo/cairo_spritedevicehelper.cxx10
-rw-r--r--canvas/source/cairo/cairo_spritedevicehelper.hxx10
-rw-r--r--canvas/source/cairo/cairo_spritehelper.cxx12
-rw-r--r--canvas/source/cairo/cairo_spritehelper.hxx10
-rw-r--r--canvas/source/cairo/cairo_spritesurface.hxx20
-rw-r--r--canvas/source/cairo/cairo_surfaceprovider.hxx6
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx58
-rw-r--r--canvas/source/cairo/cairo_textlayout.hxx24
-rw-r--r--canvas/source/cairo/cairo_win32_cairo.cxx34
-rw-r--r--canvas/source/cairo/cairo_win32_cairo.hxx6
-rw-r--r--canvas/source/cairo/cairo_xlib_cairo.cxx36
-rw-r--r--canvas/source/cairo/cairo_xlib_cairo.hxx18
-rw-r--r--canvas/source/directx/dx_5rm.cxx184
-rw-r--r--canvas/source/directx/dx_9rm.cxx50
-rw-r--r--canvas/source/directx/dx_bitmap.cxx58
-rw-r--r--canvas/source/directx/dx_bitmap.hxx22
-rw-r--r--canvas/source/directx/dx_bitmapcanvashelper.cxx60
-rw-r--r--canvas/source/directx/dx_bitmapcanvashelper.hxx28
-rw-r--r--canvas/source/directx/dx_bitmapprovider.hxx2
-rw-r--r--canvas/source/directx/dx_canvas.cxx22
-rw-r--r--canvas/source/directx/dx_canvas.hxx14
-rw-r--r--canvas/source/directx/dx_canvasbitmap.cxx54
-rw-r--r--canvas/source/directx/dx_canvasbitmap.hxx6
-rw-r--r--canvas/source/directx/dx_canvascustomsprite.cxx10
-rw-r--r--canvas/source/directx/dx_canvascustomsprite.hxx14
-rw-r--r--canvas/source/directx/dx_canvasfont.cxx12
-rw-r--r--canvas/source/directx/dx_canvasfont.hxx24
-rw-r--r--canvas/source/directx/dx_canvashelper.cxx290
-rw-r--r--canvas/source/directx/dx_canvashelper.hxx160
-rw-r--r--canvas/source/directx/dx_canvashelper_texturefill.cxx40
-rw-r--r--canvas/source/directx/dx_config.cxx6
-rw-r--r--canvas/source/directx/dx_config.hxx6
-rw-r--r--canvas/source/directx/dx_devicehelper.cxx36
-rw-r--r--canvas/source/directx/dx_devicehelper.hxx26
-rw-r--r--canvas/source/directx/dx_gdiplususer.cxx16
-rw-r--r--canvas/source/directx/dx_gdiplususer.hxx2
-rw-r--r--canvas/source/directx/dx_graphicsprovider.hxx2
-rw-r--r--canvas/source/directx/dx_ibitmap.hxx18
-rw-r--r--canvas/source/directx/dx_impltools.cxx140
-rw-r--r--canvas/source/directx/dx_impltools.hxx32
-rw-r--r--canvas/source/directx/dx_linepolypolygon.cxx4
-rw-r--r--canvas/source/directx/dx_linepolypolygon.hxx6
-rw-r--r--canvas/source/directx/dx_rendermodule.hxx2
-rw-r--r--canvas/source/directx/dx_sprite.hxx2
-rw-r--r--canvas/source/directx/dx_spritecanvas.cxx10
-rw-r--r--canvas/source/directx/dx_spritecanvas.hxx8
-rw-r--r--canvas/source/directx/dx_spritecanvashelper.cxx62
-rw-r--r--canvas/source/directx/dx_spritecanvashelper.hxx34
-rw-r--r--canvas/source/directx/dx_spritedevicehelper.cxx20
-rw-r--r--canvas/source/directx/dx_spritedevicehelper.hxx24
-rw-r--r--canvas/source/directx/dx_spritehelper.cxx26
-rw-r--r--canvas/source/directx/dx_spritehelper.hxx12
-rw-r--r--canvas/source/directx/dx_surfacebitmap.cxx102
-rw-r--r--canvas/source/directx/dx_surfacebitmap.hxx46
-rw-r--r--canvas/source/directx/dx_surfacegraphics.cxx6
-rw-r--r--canvas/source/directx/dx_surfacegraphics.hxx2
-rw-r--r--canvas/source/directx/dx_textlayout.cxx16
-rw-r--r--canvas/source/directx/dx_textlayout.hxx2
-rw-r--r--canvas/source/directx/dx_textlayout_drawhelper.cxx26
-rw-r--r--canvas/source/directx/dx_textlayout_drawhelper.hxx26
-rw-r--r--canvas/source/directx/dx_vcltools.cxx86
-rw-r--r--canvas/source/directx/dx_vcltools.hxx12
-rw-r--r--canvas/source/directx/dx_winstuff.hxx20
-rw-r--r--canvas/source/factory/cf_service.cxx70
-rw-r--r--canvas/source/null/null_canvasbitmap.cxx4
-rw-r--r--canvas/source/null/null_canvasbitmap.hxx14
-rw-r--r--canvas/source/null/null_canvascustomsprite.cxx8
-rw-r--r--canvas/source/null/null_canvascustomsprite.hxx14
-rw-r--r--canvas/source/null/null_canvasfont.cxx16
-rw-r--r--canvas/source/null/null_canvasfont.hxx14
-rw-r--r--canvas/source/null/null_canvashelper.cxx208
-rw-r--r--canvas/source/null/null_canvashelper.hxx274
-rw-r--r--canvas/source/null/null_devicehelper.cxx68
-rw-r--r--canvas/source/null/null_devicehelper.hxx44
-rw-r--r--canvas/source/null/null_spritecanvas.cxx4
-rw-r--r--canvas/source/null/null_spritecanvas.hxx18
-rw-r--r--canvas/source/null/null_spritecanvashelper.cxx28
-rw-r--r--canvas/source/null/null_spritecanvashelper.hxx38
-rw-r--r--canvas/source/null/null_spritehelper.cxx8
-rw-r--r--canvas/source/null/null_spritehelper.hxx12
-rw-r--r--canvas/source/null/null_textlayout.cxx34
-rw-r--r--canvas/source/null/null_textlayout.hxx14
-rw-r--r--canvas/source/null/null_usagecounter.hxx4
-rw-r--r--canvas/source/null/sprite.hxx2
-rw-r--r--canvas/source/simplecanvas/simplecanvasimpl.cxx48
-rw-r--r--canvas/source/tools/cachedprimitivebase.cxx20
-rw-r--r--canvas/source/tools/canvascustomspritehelper.cxx82
-rw-r--r--canvas/source/tools/canvastools.cxx206
-rw-r--r--canvas/source/tools/elapsedtime.cxx12
-rw-r--r--canvas/source/tools/imagecachedprimitive.hxx2
-rw-r--r--canvas/source/tools/page.cxx2
-rw-r--r--canvas/source/tools/page.hxx14
-rw-r--r--canvas/source/tools/pagemanager.cxx8
-rw-r--r--canvas/source/tools/pagemanager.hxx6
-rw-r--r--canvas/source/tools/parametricpolypolygon.cxx64
-rw-r--r--canvas/source/tools/prioritybooster.cxx12
-rw-r--r--canvas/source/tools/propertysethelper.cxx20
-rw-r--r--canvas/source/tools/spriteredrawmanager.cxx118
-rw-r--r--canvas/source/tools/surface.cxx60
-rw-r--r--canvas/source/tools/surface.hxx12
-rw-r--r--canvas/source/tools/surfaceproxy.cxx10
-rw-r--r--canvas/source/tools/surfaceproxy.hxx20
-rw-r--r--canvas/source/tools/surfaceproxymanager.cxx4
-rw-r--r--canvas/source/tools/surfacerect.hxx6
-rw-r--r--canvas/source/tools/verifyinput.cxx160
-rw-r--r--canvas/source/vcl/backbuffer.cxx10
-rw-r--r--canvas/source/vcl/backbuffer.hxx18
-rw-r--r--canvas/source/vcl/bitmapbackbuffer.cxx22
-rw-r--r--canvas/source/vcl/bitmapbackbuffer.hxx24
-rw-r--r--canvas/source/vcl/cachedbitmap.cxx22
-rw-r--r--canvas/source/vcl/cachedbitmap.hxx30
-rw-r--r--canvas/source/vcl/canvas.cxx22
-rw-r--r--canvas/source/vcl/canvas.hxx20
-rw-r--r--canvas/source/vcl/canvasbitmap.cxx14
-rw-r--r--canvas/source/vcl/canvasbitmap.hxx16
-rw-r--r--canvas/source/vcl/canvasbitmaphelper.cxx150
-rw-r--r--canvas/source/vcl/canvasbitmaphelper.hxx34
-rw-r--r--canvas/source/vcl/canvascustomsprite.cxx36
-rw-r--r--canvas/source/vcl/canvascustomsprite.hxx14
-rw-r--r--canvas/source/vcl/canvasfont.cxx24
-rw-r--r--canvas/source/vcl/canvasfont.hxx10
-rw-r--r--canvas/source/vcl/canvashelper.cxx356
-rw-r--r--canvas/source/vcl/canvashelper.hxx320
-rw-r--r--canvas/source/vcl/canvashelper_texturefill.cxx212
-rw-r--r--canvas/source/vcl/devicehelper.cxx66
-rw-r--r--canvas/source/vcl/devicehelper.hxx38
-rw-r--r--canvas/source/vcl/impltools.cxx116
-rw-r--r--canvas/source/vcl/impltools.hxx50
-rw-r--r--canvas/source/vcl/outdevprovider.hxx6
-rw-r--r--canvas/source/vcl/repainttarget.hxx6
-rw-r--r--canvas/source/vcl/services.cxx2
-rw-r--r--canvas/source/vcl/sprite.hxx2
-rw-r--r--canvas/source/vcl/spritecanvas.cxx32
-rw-r--r--canvas/source/vcl/spritecanvas.hxx20
-rw-r--r--canvas/source/vcl/spritecanvashelper.cxx148
-rw-r--r--canvas/source/vcl/spritecanvashelper.hxx68
-rw-r--r--canvas/source/vcl/spritedevicehelper.cxx20
-rw-r--r--canvas/source/vcl/spritedevicehelper.hxx4
-rw-r--r--canvas/source/vcl/spritehelper.cxx88
-rw-r--r--canvas/source/vcl/spritehelper.hxx18
-rw-r--r--canvas/source/vcl/textlayout.cxx14
-rw-r--r--canvas/source/vcl/textlayout.hxx24
-rw-r--r--canvas/source/vcl/windowoutdevholder.cxx2
-rw-r--r--canvas/source/vcl/windowoutdevholder.hxx8
-rw-r--r--canvas/workben/canvasdemo.cxx56
-rw-r--r--comphelper/inc/comphelper/ChainablePropertySet.hxx62
-rw-r--r--comphelper/inc/comphelper/ChainablePropertySetInfo.hxx20
-rw-r--r--comphelper/inc/comphelper/IdPropArrayHelper.hxx14
-rw-r--r--comphelper/inc/comphelper/InlineContainer.hxx2
-rw-r--r--comphelper/inc/comphelper/MasterPropertySet.hxx46
-rw-r--r--comphelper/inc/comphelper/MasterPropertySetInfo.hxx16
-rw-r--r--comphelper/inc/comphelper/PropertyInfoHash.hxx18
-rw-r--r--comphelper/inc/comphelper/SelectionMultiplex.hxx24
-rw-r--r--comphelper/inc/comphelper/SettingsHelper.hxx2
-rw-r--r--comphelper/inc/comphelper/TypeGeneration.hxx116
-rw-r--r--comphelper/inc/comphelper/accessiblecomponenthelper.hxx8
-rw-r--r--comphelper/inc/comphelper/accessiblecontexthelper.hxx62
-rw-r--r--comphelper/inc/comphelper/accessibleeventbuffer.hxx2
-rw-r--r--comphelper/inc/comphelper/accessibleeventnotifier.hxx32
-rw-r--r--comphelper/inc/comphelper/accessiblekeybindinghelper.hxx14
-rw-r--r--comphelper/inc/comphelper/accessibleselectionhelper.hxx22
-rw-r--r--comphelper/inc/comphelper/accessibletexthelper.hxx100
-rw-r--r--comphelper/inc/comphelper/accessiblewrapper.hxx80
-rw-r--r--comphelper/inc/comphelper/accimplaccess.hxx26
-rw-r--r--comphelper/inc/comphelper/anytostring.hxx4
-rw-r--r--comphelper/inc/comphelper/asyncnotification.hxx2
-rw-r--r--comphelper/inc/comphelper/attributelist.hxx14
-rw-r--r--comphelper/inc/comphelper/basicio.hxx10
-rw-r--r--comphelper/inc/comphelper/broadcasthelper.hxx24
-rw-r--r--comphelper/inc/comphelper/classids.hxx2
-rw-r--r--comphelper/inc/comphelper/comphelperdllapi.h6
-rw-r--r--comphelper/inc/comphelper/componentbase.hxx2
-rw-r--r--comphelper/inc/comphelper/componentcontext.hxx2
-rw-r--r--comphelper/inc/comphelper/componentfactory.hxx8
-rw-r--r--comphelper/inc/comphelper/componentmodule.hxx2
-rw-r--r--comphelper/inc/comphelper/composedprops.hxx20
-rw-r--r--comphelper/inc/comphelper/configurationhelper.hxx2
-rw-r--r--comphelper/inc/comphelper/container.hxx14
-rw-r--r--comphelper/inc/comphelper/containermultiplexer.hxx20
-rw-r--r--comphelper/inc/comphelper/docpasswordhelper.hxx6
-rw-r--r--comphelper/inc/comphelper/docpasswordrequest.hxx4
-rw-r--r--comphelper/inc/comphelper/documentconstants.hxx8
-rw-r--r--comphelper/inc/comphelper/documentinfo.hxx2
-rw-r--r--comphelper/inc/comphelper/embeddedobjectcontainer.hxx10
-rw-r--r--comphelper/inc/comphelper/enumhelper.hxx12
-rw-r--r--comphelper/inc/comphelper/eventattachermgr.hxx2
-rw-r--r--comphelper/inc/comphelper/evtlistenerhlp.hxx4
-rw-r--r--comphelper/inc/comphelper/evtmethodhelper.hxx4
-rw-r--r--comphelper/inc/comphelper/extract.hxx20
-rw-r--r--comphelper/inc/comphelper/fileformat.h12
-rw-r--r--comphelper/inc/comphelper/genericpropertyset.hxx2
-rw-r--r--comphelper/inc/comphelper/guarding.hxx8
-rw-r--r--comphelper/inc/comphelper/ihwrapnofilter.hxx2
-rw-r--r--comphelper/inc/comphelper/implbase_var.hxx36
-rw-r--r--comphelper/inc/comphelper/implementationreference.hxx42
-rw-r--r--comphelper/inc/comphelper/interaction.hxx28
-rw-r--r--comphelper/inc/comphelper/legacysingletonfactory.hxx2
-rw-r--r--comphelper/inc/comphelper/listenernotification.hxx2
-rw-r--r--comphelper/inc/comphelper/locale.hxx160
-rw-r--r--comphelper/inc/comphelper/logging.hxx6
-rw-r--r--comphelper/inc/comphelper/make_shared_from_uno.hxx8
-rw-r--r--comphelper/inc/comphelper/makesequence.hxx8
-rw-r--r--comphelper/inc/comphelper/mediadescriptor.hxx10
-rw-r--r--comphelper/inc/comphelper/mimeconfighelper.hxx8
-rw-r--r--comphelper/inc/comphelper/namecontainer.hxx2
-rw-r--r--comphelper/inc/comphelper/namedvaluecollection.hxx2
-rw-r--r--comphelper/inc/comphelper/numberedcollection.hxx66
-rw-r--r--comphelper/inc/comphelper/numbers.hxx10
-rw-r--r--comphelper/inc/comphelper/officeresourcebundle.hxx2
-rw-r--r--comphelper/inc/comphelper/ofopxmlhelper.hxx2
-rw-r--r--comphelper/inc/comphelper/optional.hxx2
-rw-r--r--comphelper/inc/comphelper/optionalvalue.hxx18
-rw-r--r--comphelper/inc/comphelper/oslfile2streamwrap.hxx42
-rw-r--r--comphelper/inc/comphelper/otransactedfilestream.hxx4
-rw-r--r--comphelper/inc/comphelper/processfactory.hxx2
-rw-r--r--comphelper/inc/comphelper/propagg.hxx58
-rw-r--r--comphelper/inc/comphelper/proparrhlp.hxx30
-rw-r--r--comphelper/inc/comphelper/property.hxx72
-rw-r--r--comphelper/inc/comphelper/propertybag.hxx2
-rw-r--r--comphelper/inc/comphelper/propertycontainer.hxx4
-rw-r--r--comphelper/inc/comphelper/propertycontainerhelper.hxx66
-rw-r--r--comphelper/inc/comphelper/propertysethelper.hxx2
-rw-r--r--comphelper/inc/comphelper/propertysetinfo.hxx4
-rw-r--r--comphelper/inc/comphelper/propertystatecontainer.hxx18
-rw-r--r--comphelper/inc/comphelper/propmultiplex.hxx28
-rw-r--r--comphelper/inc/comphelper/propstate.hxx10
-rw-r--r--comphelper/inc/comphelper/proxyaggregation.hxx44
-rw-r--r--comphelper/inc/comphelper/querydeep.hxx176
-rw-r--r--comphelper/inc/comphelper/regpathhelper.hxx12
-rw-r--r--comphelper/inc/comphelper/scopeguard.hxx10
-rw-r--r--comphelper/inc/comphelper/seekableinput.hxx8
-rw-r--r--comphelper/inc/comphelper/seqstream.hxx32
-rw-r--r--comphelper/inc/comphelper/sequence.hxx22
-rw-r--r--comphelper/inc/comphelper/sequenceashashmap.hxx18
-rw-r--r--comphelper/inc/comphelper/sequenceasvector.hxx6
-rw-r--r--comphelper/inc/comphelper/servicedecl.hxx60
-rw-r--r--comphelper/inc/comphelper/servicehelper.hxx2
-rw-r--r--comphelper/inc/comphelper/serviceinfohelper.hxx2
-rw-r--r--comphelper/inc/comphelper/sharedmutex.hxx2
-rw-r--r--comphelper/inc/comphelper/stillreadwriteinteraction.hxx2
-rw-r--r--comphelper/inc/comphelper/stl_types.hxx14
-rw-r--r--comphelper/inc/comphelper/stlunosequence.hxx2
-rw-r--r--comphelper/inc/comphelper/storagehelper.hxx8
-rw-r--r--comphelper/inc/comphelper/streamsection.hxx32
-rw-r--r--comphelper/inc/comphelper/string.hxx2
-rw-r--r--comphelper/inc/comphelper/synchronousdispatch.hxx4
-rw-r--r--comphelper/inc/comphelper/types.hxx36
-rw-r--r--comphelper/inc/comphelper/uieventslogger.hxx2
-rw-r--r--comphelper/inc/comphelper/uno3.hxx86
-rw-r--r--comphelper/inc/comphelper/unwrapargs.hxx10
-rw-r--r--comphelper/inc/comphelper/weak.hxx10
-rw-r--r--comphelper/inc/comphelper/weakbag.hxx2
-rw-r--r--comphelper/inc/comphelper/weakeventlistener.hxx22
-rw-r--r--comphelper/inc/pch/precompiled_comphelper.cxx2
-rw-r--r--comphelper/inc/pch/precompiled_comphelper.hxx2
-rw-r--r--comphelper/qa/complex/comphelper/Map.java14
-rw-r--r--comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java12
-rw-r--r--comphelper/qa/complex/comphelper/Test01.java28
-rw-r--r--comphelper/qa/complex/comphelper/TestHelper.java8
-rw-r--r--comphelper/qa/test_string.cxx2
-rw-r--r--comphelper/qa/test_weakbag.cxx2
-rw-r--r--comphelper/qa/version.map2
-rw-r--r--comphelper/source/compare/AnyCompareFactory.cxx6
-rw-r--r--comphelper/source/container/IndexedPropertyValuesContainer.cxx2
-rw-r--r--comphelper/source/container/NamedPropertyValuesContainer.cxx2
-rw-r--r--comphelper/source/container/container.cxx14
-rw-r--r--comphelper/source/container/containermultiplexer.cxx4
-rw-r--r--comphelper/source/container/embeddedobjectcontainer.cxx10
-rw-r--r--comphelper/source/container/enumerablemap.cxx24
-rw-r--r--comphelper/source/container/enumhelper.cxx10
-rw-r--r--comphelper/source/container/namecontainer.cxx2
-rw-r--r--comphelper/source/eventattachermgr/eventattachermgr.cxx58
-rw-r--r--comphelper/source/inc/comphelper_module.hxx2
-rw-r--r--comphelper/source/misc/SelectionMultiplex.cxx4
-rw-r--r--comphelper/source/misc/accessiblecomponenthelper.cxx12
-rw-r--r--comphelper/source/misc/accessiblecontexthelper.cxx34
-rw-r--r--comphelper/source/misc/accessibleeventbuffer.cxx2
-rw-r--r--comphelper/source/misc/accessibleeventnotifier.cxx16
-rw-r--r--comphelper/source/misc/accessiblekeybindinghelper.cxx6
-rw-r--r--comphelper/source/misc/accessibleselectionhelper.cxx4
-rw-r--r--comphelper/source/misc/accessibletexthelper.cxx100
-rw-r--r--comphelper/source/misc/accessiblewrapper.cxx24
-rw-r--r--comphelper/source/misc/accimplaccess.cxx20
-rw-r--r--comphelper/source/misc/anytostring.cxx12
-rw-r--r--comphelper/source/misc/asyncnotification.cxx2
-rw-r--r--comphelper/source/misc/comphelper_module.cxx2
-rw-r--r--comphelper/source/misc/comphelper_services.cxx2
-rw-r--r--comphelper/source/misc/componentbase.cxx2
-rw-r--r--comphelper/source/misc/componentcontext.cxx2
-rw-r--r--comphelper/source/misc/componentmodule.cxx2
-rw-r--r--comphelper/source/misc/configurationhelper.cxx2
-rw-r--r--comphelper/source/misc/docpasswordhelper.cxx14
-rw-r--r--comphelper/source/misc/docpasswordrequest.cxx6
-rw-r--r--comphelper/source/misc/documentinfo.cxx4
-rw-r--r--comphelper/source/misc/documentiologring.cxx2
-rw-r--r--comphelper/source/misc/documentiologring.hxx2
-rw-r--r--comphelper/source/misc/evtlistenerhlp.cxx2
-rw-r--r--comphelper/source/misc/evtmethodhelper.cxx6
-rw-r--r--comphelper/source/misc/ihwrapnofilter.cxx2
-rw-r--r--comphelper/source/misc/instancelocker.cxx10
-rw-r--r--comphelper/source/misc/instancelocker.hxx8
-rw-r--r--comphelper/source/misc/interaction.cxx6
-rw-r--r--comphelper/source/misc/legacysingletonfactory.cxx8
-rw-r--r--comphelper/source/misc/listenernotification.cxx4
-rw-r--r--comphelper/source/misc/locale.cxx112
-rw-r--r--comphelper/source/misc/logging.cxx2
-rw-r--r--comphelper/source/misc/mediadescriptor.cxx4
-rw-r--r--comphelper/source/misc/mimeconfighelper.cxx6
-rw-r--r--comphelper/source/misc/namedvaluecollection.cxx4
-rw-r--r--comphelper/source/misc/numbers.cxx8
-rw-r--r--comphelper/source/misc/officeresourcebundle.cxx2
-rw-r--r--comphelper/source/misc/officerestartmanager.cxx4
-rw-r--r--comphelper/source/misc/officerestartmanager.hxx2
-rw-r--r--comphelper/source/misc/proxyaggregation.cxx14
-rw-r--r--comphelper/source/misc/querydeep.cxx6
-rw-r--r--comphelper/source/misc/regpathhelper.cxx30
-rw-r--r--comphelper/source/misc/scopeguard.cxx2
-rw-r--r--comphelper/source/misc/sequence.cxx8
-rw-r--r--comphelper/source/misc/sequenceashashmap.cxx20
-rw-r--r--comphelper/source/misc/servicedecl.cxx16
-rw-r--r--comphelper/source/misc/serviceinfohelper.cxx2
-rw-r--r--comphelper/source/misc/sharedmutex.cxx2
-rw-r--r--comphelper/source/misc/stillreadwriteinteraction.cxx4
-rw-r--r--comphelper/source/misc/storagehelper.cxx2
-rw-r--r--comphelper/source/misc/string.cxx2
-rw-r--r--comphelper/source/misc/synchronousdispatch.cxx4
-rw-r--r--comphelper/source/misc/types.cxx18
-rw-r--r--comphelper/source/misc/uieventslogger.cxx6
-rw-r--r--comphelper/source/misc/weak.cxx8
-rw-r--r--comphelper/source/misc/weakeventlistener.cxx4
-rw-r--r--comphelper/source/officeinstdir/officeinstallationdirectories.cxx2
-rw-r--r--comphelper/source/officeinstdir/officeinstallationdirectories.hxx2
-rw-r--r--comphelper/source/processfactory/componentfactory.cxx4
-rw-r--r--comphelper/source/processfactory/processfactory.cxx2
-rw-r--r--comphelper/source/property/ChainablePropertySet.cxx42
-rw-r--r--comphelper/source/property/ChainablePropertySetInfo.cxx24
-rw-r--r--comphelper/source/property/MasterPropertySetInfo.cxx28
-rw-r--r--comphelper/source/property/TypeGeneration.cxx110
-rw-r--r--comphelper/source/property/composedprops.cxx30
-rw-r--r--comphelper/source/property/genericpropertyset.cxx6
-rw-r--r--comphelper/source/property/opropertybag.cxx10
-rw-r--r--comphelper/source/property/opropertybag.hxx2
-rw-r--r--comphelper/source/property/propagg.cxx50
-rw-r--r--comphelper/source/property/property.cxx8
-rw-r--r--comphelper/source/property/propertybag.cxx4
-rw-r--r--comphelper/source/property/propertycontainer.cxx4
-rw-r--r--comphelper/source/property/propertycontainerhelper.cxx30
-rw-r--r--comphelper/source/property/propertysethelper.cxx6
-rw-r--r--comphelper/source/property/propertysetinfo.cxx8
-rw-r--r--comphelper/source/property/propertystatecontainer.cxx26
-rw-r--r--comphelper/source/property/propmultiplex.cxx4
-rw-r--r--comphelper/source/property/propstate.cxx4
-rw-r--r--comphelper/source/streaming/basicio.cxx4
-rw-r--r--comphelper/source/streaming/memorystream.cxx4
-rw-r--r--comphelper/source/streaming/oslfile2streamwrap.cxx4
-rw-r--r--comphelper/source/streaming/otransactedfilestream.cxx2
-rw-r--r--comphelper/source/streaming/seekableinput.cxx8
-rw-r--r--comphelper/source/streaming/seqinputstreamserv.cxx2
-rw-r--r--comphelper/source/streaming/seqoutputstreamserv.cxx2
-rw-r--r--comphelper/source/streaming/seqstream.cxx12
-rw-r--r--comphelper/source/streaming/streamsection.cxx12
-rw-r--r--comphelper/source/xml/attributelist.cxx8
-rw-r--r--comphelper/source/xml/ofopxmlhelper.cxx26
-rw-r--r--comphelper/test/uno_iterators/uno_iterators.cxx14
-rw-r--r--cppcanvas/inc/cppcanvas/basegfxfactory.hxx14
-rw-r--r--cppcanvas/inc/cppcanvas/bitmap.hxx12
-rw-r--r--cppcanvas/inc/cppcanvas/bitmapcanvas.hxx6
-rw-r--r--cppcanvas/inc/cppcanvas/canvas.hxx20
-rw-r--r--cppcanvas/inc/cppcanvas/canvasgraphic.hxx10
-rw-r--r--cppcanvas/inc/cppcanvas/color.hxx36
-rw-r--r--cppcanvas/inc/cppcanvas/customsprite.hxx2
-rw-r--r--cppcanvas/inc/cppcanvas/font.hxx8
-rw-r--r--cppcanvas/inc/cppcanvas/polypolygon.hxx18
-rw-r--r--cppcanvas/inc/cppcanvas/renderer.hxx28
-rw-r--r--cppcanvas/inc/cppcanvas/sprite.hxx10
-rw-r--r--cppcanvas/inc/cppcanvas/spritecanvas.hxx18
-rw-r--r--cppcanvas/inc/cppcanvas/text.hxx2
-rw-r--r--cppcanvas/inc/cppcanvas/vclfactory.hxx44
-rw-r--r--cppcanvas/inc/pch/precompiled_cppcanvas.cxx2
-rw-r--r--cppcanvas/inc/pch/precompiled_cppcanvas.hxx2
-rw-r--r--cppcanvas/source/inc/action.hxx24
-rw-r--r--cppcanvas/source/inc/canvasgraphichelper.hxx16
-rw-r--r--cppcanvas/source/inc/implrenderer.hxx48
-rw-r--r--cppcanvas/source/inc/tools.hxx16
-rw-r--r--cppcanvas/source/mtfrenderer/bitmapaction.cxx112
-rw-r--r--cppcanvas/source/mtfrenderer/bitmapaction.hxx20
-rw-r--r--cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx8
-rw-r--r--cppcanvas/source/mtfrenderer/cachedprimitivebase.hxx14
-rw-r--r--cppcanvas/source/mtfrenderer/emfplus.cxx2
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx494
-rw-r--r--cppcanvas/source/mtfrenderer/lineaction.cxx52
-rw-r--r--cppcanvas/source/mtfrenderer/lineaction.hxx18
-rw-r--r--cppcanvas/source/mtfrenderer/mtftools.cxx208
-rw-r--r--cppcanvas/source/mtfrenderer/mtftools.hxx90
-rw-r--r--cppcanvas/source/mtfrenderer/outdevstate.hxx66
-rw-r--r--cppcanvas/source/mtfrenderer/pointaction.cxx82
-rw-r--r--cppcanvas/source/mtfrenderer/pointaction.hxx28
-rw-r--r--cppcanvas/source/mtfrenderer/polypolyaction.cxx220
-rw-r--r--cppcanvas/source/mtfrenderer/polypolyaction.hxx42
-rw-r--r--cppcanvas/source/mtfrenderer/textaction.cxx1126
-rw-r--r--cppcanvas/source/mtfrenderer/textaction.hxx38
-rw-r--r--cppcanvas/source/mtfrenderer/transparencygroupaction.cxx208
-rw-r--r--cppcanvas/source/mtfrenderer/transparencygroupaction.hxx48
-rw-r--r--cppcanvas/source/tools/canvasgraphichelper.cxx16
-rw-r--r--cppcanvas/source/tools/tools.cxx10
-rw-r--r--cppcanvas/source/wrapper/basegfxfactory.cxx52
-rw-r--r--cppcanvas/source/wrapper/implbitmap.cxx16
-rw-r--r--cppcanvas/source/wrapper/implbitmap.hxx14
-rw-r--r--cppcanvas/source/wrapper/implbitmapcanvas.cxx4
-rw-r--r--cppcanvas/source/wrapper/implbitmapcanvas.hxx12
-rw-r--r--cppcanvas/source/wrapper/implcanvas.cxx10
-rw-r--r--cppcanvas/source/wrapper/implcanvas.hxx24
-rw-r--r--cppcanvas/source/wrapper/implcolor.cxx2
-rw-r--r--cppcanvas/source/wrapper/implcolor.hxx10
-rw-r--r--cppcanvas/source/wrapper/implcustomsprite.cxx10
-rw-r--r--cppcanvas/source/wrapper/implcustomsprite.hxx16
-rw-r--r--cppcanvas/source/wrapper/implfont.cxx8
-rw-r--r--cppcanvas/source/wrapper/implfont.hxx16
-rw-r--r--cppcanvas/source/wrapper/implpolypolygon.cxx50
-rw-r--r--cppcanvas/source/wrapper/implpolypolygon.hxx40
-rw-r--r--cppcanvas/source/wrapper/implsprite.cxx56
-rw-r--r--cppcanvas/source/wrapper/implsprite.hxx36
-rw-r--r--cppcanvas/source/wrapper/implspritecanvas.cxx18
-rw-r--r--cppcanvas/source/wrapper/implspritecanvas.hxx42
-rw-r--r--cppcanvas/source/wrapper/impltext.cxx6
-rw-r--r--cppcanvas/source/wrapper/impltext.hxx10
-rw-r--r--cppcanvas/source/wrapper/vclfactory.cxx122
-rw-r--r--dtrans/inc/pch/precompiled_dtrans.cxx2
-rw-r--r--dtrans/inc/pch/precompiled_dtrans.hxx2
-rw-r--r--dtrans/source/cnttype/mcnttfactory.cxx14
-rw-r--r--dtrans/source/cnttype/mcnttfactory.hxx18
-rw-r--r--dtrans/source/cnttype/mcnttype.cxx70
-rw-r--r--dtrans/source/cnttype/mcnttype.hxx24
-rw-r--r--dtrans/source/cnttype/mcnttype.xml48
-rw-r--r--dtrans/source/cnttype/mctfentry.cxx38
-rw-r--r--dtrans/source/cnttype/wbench/testcnttype.cxx42
-rw-r--r--dtrans/source/generic/clipboardmanager.cxx64
-rw-r--r--dtrans/source/generic/clipboardmanager.hxx24
-rw-r--r--dtrans/source/generic/dtrans.cxx24
-rw-r--r--dtrans/source/generic/dtrans.xml12
-rw-r--r--dtrans/source/generic/generic_clipboard.cxx26
-rw-r--r--dtrans/source/generic/generic_clipboard.hxx30
-rw-r--r--dtrans/source/inc/DtObjFactory.hxx4
-rw-r--r--dtrans/source/inc/MtaOleClipb.hxx34
-rw-r--r--dtrans/source/os2/clipb/OS2Bitmap.cxx60
-rw-r--r--dtrans/source/os2/clipb/Os2Clipboard.cxx46
-rw-r--r--dtrans/source/os2/clipb/Os2Clipboard.hxx32
-rw-r--r--dtrans/source/os2/clipb/Os2Service.cxx16
-rw-r--r--dtrans/source/os2/clipb/Os2Transferable.cxx14
-rw-r--r--dtrans/source/os2/clipb/Os2Transferable.hxx32
-rw-r--r--dtrans/source/os2/clipb/sysdtrans.xml54
-rw-r--r--dtrans/source/test/test_dtrans.cxx110
-rw-r--r--dtrans/source/win32/clipb/APNDataObject.hxx10
-rw-r--r--dtrans/source/win32/clipb/WinClipbImpl.cxx58
-rw-r--r--dtrans/source/win32/clipb/WinClipbImpl.hxx40
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx58
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.hxx70
-rw-r--r--dtrans/source/win32/clipb/sysdtrans.xml54
-rw-r--r--dtrans/source/win32/clipb/wcbentry.cxx38
-rw-r--r--dtrans/source/win32/dnd/dnd.xml70
-rw-r--r--dtrans/source/win32/dnd/dndentry.cxx34
-rw-r--r--dtrans/source/win32/dnd/globals.cxx12
-rw-r--r--dtrans/source/win32/dnd/globals.hxx22
-rw-r--r--dtrans/source/win32/dnd/idroptarget.cxx18
-rw-r--r--dtrans/source/win32/dnd/idroptarget.hxx24
-rw-r--r--dtrans/source/win32/dnd/source.cxx8
-rw-r--r--dtrans/source/win32/dnd/source.hxx2
-rw-r--r--dtrans/source/win32/dnd/sourcecontext.cxx2
-rw-r--r--dtrans/source/win32/dnd/sourcecontext.hxx14
-rw-r--r--dtrans/source/win32/dnd/target.cxx6
-rw-r--r--dtrans/source/win32/dnd/target.hxx6
-rw-r--r--dtrans/source/win32/dnd/targetdragcontext.cxx4
-rw-r--r--dtrans/source/win32/dnd/targetdragcontext.hxx6
-rw-r--r--dtrans/source/win32/dnd/targetdropcontext.cxx10
-rw-r--r--dtrans/source/win32/dnd/targetdropcontext.hxx16
-rw-r--r--dtrans/source/win32/dtobj/APNDataObject.cxx90
-rw-r--r--dtrans/source/win32/dtobj/APNDataObject.hxx10
-rw-r--r--dtrans/source/win32/dtobj/DOTransferable.cxx174
-rw-r--r--dtrans/source/win32/dtobj/DOTransferable.hxx46
-rw-r--r--dtrans/source/win32/dtobj/DTransHelper.cxx2
-rw-r--r--dtrans/source/win32/dtobj/DTransHelper.hxx36
-rw-r--r--dtrans/source/win32/dtobj/DataFmtTransl.cxx76
-rw-r--r--dtrans/source/win32/dtobj/DataFmtTransl.hxx14
-rw-r--r--dtrans/source/win32/dtobj/DtObjFactory.cxx4
-rw-r--r--dtrans/source/win32/dtobj/Fetc.cxx42
-rw-r--r--dtrans/source/win32/dtobj/Fetc.hxx4
-rw-r--r--dtrans/source/win32/dtobj/FetcList.cxx180
-rw-r--r--dtrans/source/win32/dtobj/FetcList.hxx52
-rw-r--r--dtrans/source/win32/dtobj/FmtFilter.cxx214
-rw-r--r--dtrans/source/win32/dtobj/FmtFilter.hxx4
-rw-r--r--dtrans/source/win32/dtobj/MimeAttrib.hxx2
-rw-r--r--dtrans/source/win32/dtobj/TxtCnvtHlp.cxx24
-rw-r--r--dtrans/source/win32/dtobj/TxtCnvtHlp.hxx12
-rw-r--r--dtrans/source/win32/dtobj/XNotifyingDataObject.cxx52
-rw-r--r--dtrans/source/win32/dtobj/XNotifyingDataObject.hxx20
-rw-r--r--dtrans/source/win32/dtobj/XTDataObject.cxx66
-rw-r--r--dtrans/source/win32/dtobj/XTDataObject.hxx52
-rw-r--r--dtrans/source/win32/ftransl/ftransl.cxx100
-rw-r--r--dtrans/source/win32/ftransl/ftransl.hxx12
-rw-r--r--dtrans/source/win32/ftransl/ftransl.xml44
-rw-r--r--dtrans/source/win32/ftransl/ftranslentry.cxx38
-rw-r--r--dtrans/source/win32/misc/ImplHelper.cxx64
-rw-r--r--dtrans/source/win32/misc/ImplHelper.hxx16
-rw-r--r--dtrans/source/win32/misc/WinClip.hxx2
-rw-r--r--dtrans/source/win32/mtaole/MtaOleClipb.cxx308
-rw-r--r--dtrans/source/win32/workbench/XTDo.cxx42
-rw-r--r--dtrans/source/win32/workbench/XTDo.hxx28
-rw-r--r--dtrans/source/win32/workbench/test_wincb.cxx92
-rw-r--r--dtrans/source/win32/workbench/testmarshal.cxx82
-rw-r--r--dtrans/test/win32/dnd/atlwindow.cxx102
-rw-r--r--dtrans/test/win32/dnd/atlwindow.hxx2
-rw-r--r--dtrans/test/win32/dnd/dndTest.cxx26
-rw-r--r--dtrans/test/win32/dnd/sourcelistener.cxx14
-rw-r--r--dtrans/test/win32/dnd/sourcelistener.hxx14
-rw-r--r--dtrans/test/win32/dnd/targetlistener.cxx34
-rw-r--r--dtrans/test/win32/dnd/targetlistener.hxx14
-rw-r--r--dtrans/test/win32/dnd/transferable.cxx28
-rw-r--r--dtrans/test/win32/dnd/transferable.hxx18
-rw-r--r--i18npool/inc/breakiteratorImpl.hxx58
-rw-r--r--i18npool/inc/breakiterator_cjk.hxx14
-rw-r--r--i18npool/inc/breakiterator_ctl.hxx18
-rw-r--r--i18npool/inc/breakiterator_th.hxx10
-rw-r--r--i18npool/inc/breakiterator_unicode.hxx46
-rw-r--r--i18npool/inc/bullet.h418
-rw-r--r--i18npool/inc/calendarImpl.hxx12
-rw-r--r--i18npool/inc/calendar_gregorian.hxx32
-rw-r--r--i18npool/inc/calendar_hijri.hxx14
-rw-r--r--i18npool/inc/calendar_jewish.hxx8
-rw-r--r--i18npool/inc/cclass_cjk.hxx16
-rw-r--r--i18npool/inc/cclass_unicode.hxx90
-rw-r--r--i18npool/inc/chaptercollator.hxx4
-rw-r--r--i18npool/inc/characterclassificationImpl.hxx48
-rw-r--r--i18npool/inc/chartonum.hxx4
-rw-r--r--i18npool/inc/collatorImpl.hxx8
-rw-r--r--i18npool/inc/collator_unicode.hxx4
-rw-r--r--i18npool/inc/defaultnumberingprovider.hxx2
-rw-r--r--i18npool/inc/i18npool/i18npooldllapi.h8
-rw-r--r--i18npool/inc/i18npool/lang.h4
-rw-r--r--i18npool/inc/i18npool/mslangid.hxx2
-rw-r--r--i18npool/inc/i18npool/paper.hxx2
-rw-r--r--i18npool/inc/indexentrysupplier.hxx38
-rw-r--r--i18npool/inc/indexentrysupplier_asian.hxx24
-rw-r--r--i18npool/inc/indexentrysupplier_common.hxx36
-rw-r--r--i18npool/inc/indexentrysupplier_default.hxx18
-rw-r--r--i18npool/inc/indexentrysupplier_ja_phonetic.hxx10
-rw-r--r--i18npool/inc/inputsequencechecker.hxx12
-rw-r--r--i18npool/inc/inputsequencechecker_hi.hxx16
-rw-r--r--i18npool/inc/inputsequencechecker_th.hxx10
-rw-r--r--i18npool/inc/localedata.hxx2
-rw-r--r--i18npool/inc/nativenumbersupplier.hxx18
-rw-r--r--i18npool/inc/numberformatcode.hxx2
-rw-r--r--i18npool/inc/numtochar.hxx4
-rw-r--r--i18npool/inc/numtotext_cjk.hxx2
-rw-r--r--i18npool/inc/ordinalsuffix.hxx4
-rw-r--r--i18npool/inc/pch/precompiled_i18npool.cxx2
-rw-r--r--i18npool/inc/pch/precompiled_i18npool.hxx2
-rw-r--r--i18npool/inc/scripttypedetector.hxx8
-rw-r--r--i18npool/inc/servicename.hxx36
-rw-r--r--i18npool/inc/textToPronounce_zh.hxx12
-rw-r--r--i18npool/inc/textconversion.hxx100
-rw-r--r--i18npool/inc/textconversionImpl.hxx46
-rw-r--r--i18npool/inc/texttonum.hxx2
-rw-r--r--i18npool/inc/transliterationImpl.hxx24
-rw-r--r--i18npool/inc/transliteration_Ignore.hxx22
-rw-r--r--i18npool/inc/transliteration_Numeric.hxx10
-rw-r--r--i18npool/inc/transliteration_OneToOne.hxx18
-rw-r--r--i18npool/inc/transliteration_body.hxx4
-rw-r--r--i18npool/inc/transliteration_caseignore.hxx10
-rw-r--r--i18npool/inc/transliteration_commonclass.hxx10
-rw-r--r--i18npool/inc/warnings_guard_unicode_brkiter.h2
-rw-r--r--i18npool/inc/warnings_guard_unicode_calendar.h2
-rw-r--r--i18npool/inc/warnings_guard_unicode_tblcoll.h2
-rw-r--r--i18npool/inc/wtt.h54
-rw-r--r--i18npool/inc/xdictionary.hxx14
-rw-r--r--i18npool/source/breakiterator/breakiteratorImpl.cxx24
-rw-r--r--i18npool/source/breakiterator/breakiterator_cjk.cxx26
-rw-r--r--i18npool/source/breakiterator/breakiterator_ctl.cxx10
-rw-r--r--i18npool/source/breakiterator/breakiterator_th.cxx18
-rw-r--r--i18npool/source/breakiterator/breakiterator_unicode.cxx14
-rw-r--r--i18npool/source/breakiterator/gendict.cxx16
-rw-r--r--i18npool/source/breakiterator/xdictionary.cxx12
-rw-r--r--i18npool/source/calendar/calendarImpl.cxx6
-rw-r--r--i18npool/source/calendar/calendar_gregorian.cxx114
-rw-r--r--i18npool/source/calendar/calendar_hijri.cxx34
-rw-r--r--i18npool/source/calendar/calendar_jewish.cxx24
-rw-r--r--i18npool/source/characterclassification/cclass_unicode.cxx16
-rw-r--r--i18npool/source/characterclassification/cclass_unicode_parser.cxx518
-rw-r--r--i18npool/source/characterclassification/characterclassificationImpl.cxx20
-rw-r--r--i18npool/source/characterclassification/scripttypedetector.cxx2
-rw-r--r--i18npool/source/collator/chaptercollator.cxx2
-rw-r--r--i18npool/source/collator/collatorImpl.cxx2
-rw-r--r--i18npool/source/collator/collator_unicode.cxx12
-rw-r--r--i18npool/source/collator/gencoll_rule.cxx12
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx40
-rw-r--r--i18npool/source/indexentry/data/indexdata_alphanumeric.h4
-rw-r--r--i18npool/source/indexentry/data/indexdata_ja_phonetic.h2
-rw-r--r--i18npool/source/indexentry/genindex_data.cxx6
-rw-r--r--i18npool/source/indexentry/indexentrysupplier.cxx6
-rw-r--r--i18npool/source/indexentry/indexentrysupplier_asian.cxx22
-rw-r--r--i18npool/source/indexentry/indexentrysupplier_common.cxx4
-rw-r--r--i18npool/source/indexentry/indexentrysupplier_default.cxx12
-rw-r--r--i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx10
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker.cxx10
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker_hi.cxx52
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker_th.cxx66
-rw-r--r--i18npool/source/isolang/insys.cxx2
-rw-r--r--i18npool/source/isolang/inunx.cxx2
-rw-r--r--i18npool/source/isolang/inwnt.cxx2
-rw-r--r--i18npool/source/isolang/isolang.cxx2
-rwxr-xr-xi18npool/source/isolang/langid.pl2
-rw-r--r--i18npool/source/isolang/mslangid.cxx6
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx34
-rw-r--r--i18npool/source/localedata/LocaleNode.hxx2
-rw-r--r--i18npool/source/localedata/data/dz_BT.xml8
-rw-r--r--i18npool/source/localedata/data/fa_IR.xml2
-rw-r--r--i18npool/source/localedata/filewriter.cxx2
-rw-r--r--i18npool/source/localedata/localedata.cxx8
-rw-r--r--i18npool/source/localedata/saxparser.cxx8
-rw-r--r--i18npool/source/nativenumber/data/numberchar.h140
-rw-r--r--i18npool/source/nativenumber/nativenumbersupplier.cxx36
-rw-r--r--i18npool/source/numberformatcode/numberformatcode.cxx10
-rw-r--r--i18npool/source/ordinalsuffix/ordinalsuffix.cxx2
-rw-r--r--i18npool/source/paper/paper.cxx12
-rw-r--r--i18npool/source/registerservices/registerservices.cxx12
-rw-r--r--i18npool/source/search/levdis.cxx2
-rw-r--r--i18npool/source/search/levdis.hxx2
-rw-r--r--i18npool/source/search/textsearch.cxx10
-rw-r--r--i18npool/source/search/textsearch.hxx14
-rw-r--r--i18npool/source/textconversion/genconv_dict.cxx8
-rw-r--r--i18npool/source/textconversion/textconversion.cxx6
-rw-r--r--i18npool/source/textconversion/textconversionImpl.cxx10
-rw-r--r--i18npool/source/textconversion/textconversion_ko.cxx32
-rw-r--r--i18npool/source/textconversion/textconversion_zh.cxx40
-rw-r--r--i18npool/source/transliteration/chartonum.cxx2
-rw-r--r--i18npool/source/transliteration/data/numberchar.h62
-rw-r--r--i18npool/source/transliteration/fullwidthToHalfwidth.cxx14
-rw-r--r--i18npool/source/transliteration/halfwidthToFullwidth.cxx14
-rw-r--r--i18npool/source/transliteration/hiraganaToKatakana.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx10
-rw-r--r--i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx8
-rw-r--r--i18npool/source/transliteration/ignoreKana.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx8
-rw-r--r--i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx4
-rw-r--r--i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx4
-rw-r--r--i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx10
-rw-r--r--i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx6
-rw-r--r--i18npool/source/transliteration/ignoreSize_ja_JP.cxx6
-rw-r--r--i18npool/source/transliteration/ignoreSpace_ja_JP.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx4
-rw-r--r--i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreWidth.cxx2
-rw-r--r--i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx4
-rw-r--r--i18npool/source/transliteration/katakanaToHiragana.cxx2
-rw-r--r--i18npool/source/transliteration/largeToSmall_ja_JP.cxx6
-rw-r--r--i18npool/source/transliteration/numtochar.cxx2
-rw-r--r--i18npool/source/transliteration/numtotext_cjk.cxx2
-rw-r--r--i18npool/source/transliteration/smallToLarge_ja_JP.cxx6
-rw-r--r--i18npool/source/transliteration/textToPronounce_zh.cxx4
-rw-r--r--i18npool/source/transliteration/texttonum.cxx2
-rw-r--r--i18npool/source/transliteration/transliterationImpl.cxx18
-rw-r--r--i18npool/source/transliteration/transliteration_Ignore.cxx14
-rw-r--r--i18npool/source/transliteration/transliteration_Numeric.cxx10
-rw-r--r--i18npool/source/transliteration/transliteration_OneToOne.cxx20
-rw-r--r--i18npool/source/transliteration/transliteration_body.cxx38
-rw-r--r--i18npool/source/transliteration/transliteration_caseignore.cxx6
-rw-r--r--i18npool/source/transliteration/transliteration_commonclass.cxx8
-rw-r--r--i18npool/xml/ChapterCollator.xml44
-rw-r--r--i18npool/xml/Collator.xml44
-rw-r--r--i18npool/xml/IndexEntrySupplier.xml2
-rw-r--r--i18npool/xml/LocaleData.xml2
-rw-r--r--i18nutil/inc/i18nutil/casefolding.hxx2
-rw-r--r--i18nutil/inc/i18nutil/oneToOneMapping.hxx2
-rw-r--r--i18nutil/inc/i18nutil/unicode.hxx2
-rw-r--r--i18nutil/inc/i18nutil/widthfolding.hxx4
-rw-r--r--i18nutil/inc/i18nutil/x_rtl_ustring.h20
-rw-r--r--i18nutil/source/utility/casefolding.cxx6
-rw-r--r--i18nutil/source/utility/casefolding_data.h6
-rw-r--r--i18nutil/source/utility/oneToOneMapping.cxx6
-rw-r--r--i18nutil/source/utility/unicode.cxx4
-rw-r--r--i18nutil/source/utility/unicode_data.h8
-rw-r--r--i18nutil/source/utility/widthfolding.cxx8
-rw-r--r--i18nutil/source/utility/widthfolding_data.h786
-rw-r--r--l10ntools/inc/cfgmerge.hxx30
-rw-r--r--l10ntools/inc/export.hxx152
-rw-r--r--l10ntools/inc/gsicheck.hxx4
-rw-r--r--l10ntools/inc/helpmerge.hxx16
-rw-r--r--l10ntools/inc/inireader.hxx12
-rw-r--r--l10ntools/inc/l10ntools/directory.hxx2
-rw-r--r--l10ntools/inc/lngmerge.hxx18
-rw-r--r--l10ntools/inc/pch/precompiled_l10ntools.cxx2
-rw-r--r--l10ntools/inc/pch/precompiled_l10ntools.hxx2
-rw-r--r--l10ntools/inc/srciter.hxx8
-rw-r--r--l10ntools/inc/tagtest.hxx186
-rw-r--r--l10ntools/inc/tokens.h126
-rw-r--r--l10ntools/inc/treeconfig.hxx4
-rw-r--r--l10ntools/inc/utf8conv.hxx2
-rw-r--r--l10ntools/inc/wtranode.hxx46
-rw-r--r--l10ntools/inc/wtratree.hxx84
-rw-r--r--l10ntools/inc/xmlparse.hxx250
-rw-r--r--l10ntools/inc/xmlutil.hxx14
-rw-r--r--l10ntools/inc/xrmmerge.hxx6
-rwxr-xr-xl10ntools/java/jpropex/build.xml12
-rw-r--r--l10ntools/java/jpropex/java/Main.java6
-rw-r--r--l10ntools/java/jpropex/java/NoLocalizeFilter.java6
-rw-r--r--l10ntools/java/jpropex/java/OrderedHashMap.java6
-rw-r--r--l10ntools/java/jpropex/java/SdfData.java8
-rw-r--r--l10ntools/java/jpropex/java/SdfEntity.java104
-rwxr-xr-xl10ntools/java/l10nconv/build.xml12
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapCheck.java14
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapper.java62
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/Tag.java46
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/TagPair.java76
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Convert.java128
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Converter.java80
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ConverterException.java8
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataHandler.java34
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataReader.java20
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataWriter.java14
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ExtMap.java8
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/FileMaker.java14
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIReader.java20
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIWriter.java54
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIandSDFMerger.java50
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/LineErrorException.java18
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/OutputHandler.java36
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ResTypeResolver.java14
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Resolver.java8
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFReader.java108
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java46
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFReader.java74
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFWriter.java108
-rwxr-xr-xl10ntools/java/l10nconv/java/com/sun/star/tooling/languageResolver/LanguageResolver.java54
-rwxr-xr-xl10ntools/java/receditor/build.xml12
-rw-r--r--l10ntools/java/receditor/java/transex3/controller/EditorController.java82
-rw-r--r--l10ntools/java/receditor/java/transex3/controller/Main.java2
-rw-r--r--l10ntools/java/receditor/java/transex3/model/ResourceFile.java34
-rw-r--r--l10ntools/java/receditor/java/transex3/model/SdfEntity.java106
-rw-r--r--l10ntools/java/receditor/java/transex3/model/SdfString.java52
-rw-r--r--l10ntools/java/receditor/java/transex3/view/Editor.java52
-rw-r--r--l10ntools/java/receditor/java/transex3/view/SdfTable.java6
-rw-r--r--l10ntools/layout/layoutparse.cxx10
-rw-r--r--l10ntools/layout/layoutparse.hxx2
-rw-r--r--l10ntools/layout/tralay.cxx8
-rw-r--r--l10ntools/scripts/fast_merge.pl14
-rw-r--r--l10ntools/scripts/keyidGen.pl8
-rw-r--r--l10ntools/scripts/localize.pl298
-rwxr-xr-xl10ntools/scripts/localize_old.pl318
-rw-r--r--l10ntools/source/cfgmerge.cxx72
-rw-r--r--l10ntools/source/directory.cxx68
-rw-r--r--l10ntools/source/export.cxx288
-rw-r--r--l10ntools/source/export2.cxx86
-rw-r--r--l10ntools/source/file.cxx10
-rw-r--r--l10ntools/source/filter/merge/FCFGMerge.java2
-rw-r--r--l10ntools/source/filter/merge/Merger.java16
-rw-r--r--l10ntools/source/filter/utils/AnalyzeStartupLog.java2
-rw-r--r--l10ntools/source/filter/utils/Cache.java18
-rw-r--r--l10ntools/source/filter/utils/ConfigHelper.java4
-rw-r--r--l10ntools/source/filter/utils/FileHelper.java40
-rw-r--r--l10ntools/source/filter/utils/Logger.java2
-rw-r--r--l10ntools/source/filter/utils/MalformedCommandLineException.java2
-rw-r--r--l10ntools/source/filter/utils/XMLHelper.java6
-rw-r--r--l10ntools/source/gsicheck.cxx14
-rw-r--r--l10ntools/source/gsiconv.cxx36
-rw-r--r--l10ntools/source/help/HelpCompiler.cxx34
-rw-r--r--l10ntools/source/help/HelpCompiler.hxx30
-rw-r--r--l10ntools/source/help/HelpFileDocument.java10
-rw-r--r--l10ntools/source/help/HelpLinker.cxx16
-rw-r--r--l10ntools/source/help/compilehelp.hxx16
-rw-r--r--l10ntools/source/helpex.cxx68
-rw-r--r--l10ntools/source/helpmerge.cxx122
-rw-r--r--l10ntools/source/inireader.cxx24
-rw-r--r--l10ntools/source/lngex.cxx38
-rw-r--r--l10ntools/source/lngmerge.cxx38
-rw-r--r--l10ntools/source/localize.cxx170
-rw-r--r--l10ntools/source/merge.cxx72
-rw-r--r--l10ntools/source/srciter.cxx22
-rw-r--r--l10ntools/source/tagtest.cxx62
-rw-r--r--l10ntools/source/treeconfig.cxx10
-rw-r--r--l10ntools/source/utf8conv.cxx8
-rw-r--r--l10ntools/source/wtranode.cxx12
-rw-r--r--l10ntools/source/wtratree.cxx94
-rw-r--r--l10ntools/source/xgfconv.cxx4
-rw-r--r--l10ntools/source/xmlparse.cxx302
-rw-r--r--l10ntools/source/xrmmerge.cxx60
-rw-r--r--o3tl/inc/o3tl/cow_wrapper.hxx34
-rw-r--r--o3tl/inc/o3tl/heap_ptr.hxx20
-rw-r--r--o3tl/inc/o3tl/lazy_update.hxx68
-rw-r--r--o3tl/inc/o3tl/range.hxx2
-rw-r--r--o3tl/inc/o3tl/vector_pool.hxx12
-rw-r--r--o3tl/qa/cow_wrapper_clients.cxx82
-rw-r--r--o3tl/qa/cow_wrapper_clients.hxx4
-rw-r--r--o3tl/qa/export.map2
-rw-r--r--o3tl/qa/test-heap_ptr.cxx2
-rw-r--r--o3tl/qa/test-range.cxx2
-rw-r--r--o3tl/qa/test-vector_pool.cxx4
-rw-r--r--padmin/source/adddlg.cxx26
-rw-r--r--padmin/source/adddlg.hxx148
-rw-r--r--padmin/source/cmddlg.cxx44
-rw-r--r--padmin/source/cmddlg.hxx76
-rw-r--r--padmin/source/desktopcontext.cxx2
-rw-r--r--padmin/source/desktopcontext.hxx2
-rw-r--r--padmin/source/fontentry.cxx44
-rw-r--r--padmin/source/fontentry.hxx90
-rw-r--r--padmin/source/helper.cxx24
-rw-r--r--padmin/source/helper.hxx24
-rw-r--r--padmin/source/newppdlg.cxx2
-rw-r--r--padmin/source/newppdlg.hxx40
-rw-r--r--padmin/source/padialog.cxx16
-rw-r--r--padmin/source/padialog.hrc140
-rw-r--r--padmin/source/padialog.hxx70
-rw-r--r--padmin/source/padialog.src14
-rw-r--r--padmin/source/pamain.cxx20
-rw-r--r--padmin/source/progress.cxx2
-rw-r--r--padmin/source/progress.hxx22
-rw-r--r--padmin/source/prtsetup.cxx78
-rw-r--r--padmin/source/prtsetup.hxx180
-rw-r--r--padmin/source/rtsetup.hrc156
-rw-r--r--padmin/source/rtsetup.src4
-rw-r--r--padmin/source/spadmin.sh4
-rw-r--r--padmin/source/titlectrl.cxx2
-rw-r--r--padmin/source/titlectrl.hxx14
-rw-r--r--regexp/inc/pch/precompiled_regexp.cxx2
-rw-r--r--regexp/inc/pch/precompiled_regexp.hxx2
-rw-r--r--regexp/source/reclass.cxx210
-rw-r--r--regexp/source/reclass.hxx24
-rw-r--r--rsc/inc/pch/precompiled_rsc.cxx2
-rw-r--r--rsc/inc/pch/precompiled_rsc.hxx2
-rw-r--r--rsc/inc/rscall.h70
-rw-r--r--rsc/inc/rscarray.hxx20
-rw-r--r--rsc/inc/rscclass.hxx6
-rw-r--r--rsc/inc/rscclobj.hxx4
-rw-r--r--rsc/inc/rscconst.hxx18
-rw-r--r--rsc/inc/rsccont.hxx12
-rw-r--r--rsc/inc/rscdb.hxx464
-rw-r--r--rsc/inc/rscdef.hxx154
-rw-r--r--rsc/inc/rscerror.h158
-rw-r--r--rsc/inc/rscflag.hxx4
-rw-r--r--rsc/inc/rschash.hxx10
-rw-r--r--rsc/inc/rscinst.hxx172
-rw-r--r--rsc/inc/rsckey.hxx2
-rw-r--r--rsc/inc/rsclst.hxx24
-rw-r--r--rsc/inc/rscmgr.hxx8
-rw-r--r--rsc/inc/rscpar.hxx72
-rw-r--r--rsc/inc/rscrange.hxx10
-rw-r--r--rsc/inc/rscrsc.hxx102
-rw-r--r--rsc/inc/rscsfx.hxx10
-rw-r--r--rsc/inc/rscstr.hxx8
-rw-r--r--rsc/inc/rsctools.hxx58
-rw-r--r--rsc/inc/rsctop.hxx76
-rw-r--r--rsc/inc/rsctree.hxx52
-rw-r--r--rsc/inc/vclrsc.hxx296
-rw-r--r--rsc/source/misc/rscdbl.cxx24
-rw-r--r--rsc/source/misc/rsclst.cxx4
-rw-r--r--rsc/source/parser/erscerr.cxx84
-rw-r--r--rsc/source/parser/rscdb.cxx232
-rw-r--r--rsc/source/parser/rscibas.cxx168
-rw-r--r--rsc/source/parser/rscicpx.cxx476
-rw-r--r--rsc/source/parser/rscinit.cxx338
-rw-r--r--rsc/source/parser/rsckey.cxx2
-rw-r--r--rsc/source/parser/rsclex.cxx62
-rw-r--r--rsc/source/parser/rsclex.hxx12
-rw-r--r--rsc/source/parser/rscpar.cxx68
-rw-r--r--rsc/source/parser/rscyacc.cxx22
-rw-r--r--rsc/source/prj/gui.cxx16
-rw-r--r--rsc/source/prj/start.cxx84
-rw-r--r--rsc/source/res/rscall.cxx34
-rw-r--r--rsc/source/res/rscarray.cxx2
-rw-r--r--rsc/source/res/rscclass.cxx228
-rw-r--r--rsc/source/res/rscclobj.cxx2
-rw-r--r--rsc/source/res/rscconst.cxx4
-rw-r--r--rsc/source/res/rsccont.cxx362
-rw-r--r--rsc/source/res/rscflag.cxx4
-rw-r--r--rsc/source/res/rscmgr.cxx220
-rw-r--r--rsc/source/res/rscrange.cxx302
-rw-r--r--rsc/source/res/rscstr.cxx108
-rw-r--r--rsc/source/res/rsctop.cxx446
-rw-r--r--rsc/source/rsc/rsc.cxx412
-rw-r--r--rsc/source/rscpp/cpp.h36
-rw-r--r--rsc/source/rscpp/cpp1.c12
-rw-r--r--rsc/source/rscpp/cpp2.c2
-rw-r--r--rsc/source/rscpp/cpp3.c2
-rw-r--r--rsc/source/rscpp/cpp4.c2
-rw-r--r--rsc/source/rscpp/cpp5.c422
-rw-r--r--rsc/source/rscpp/cpp6.c14
-rw-r--r--rsc/source/rscpp/cppdef.h8
-rw-r--r--rsc/source/rscpp/cppmain.c2
-rw-r--r--rsc/source/tools/rscchar.cxx16
-rw-r--r--rsc/source/tools/rscdef.cxx522
-rw-r--r--rsc/source/tools/rschash.cxx6
-rw-r--r--rsc/source/tools/rsctools.cxx186
-rw-r--r--rsc/source/tools/rsctree.cxx160
-rw-r--r--sax/inc/sax/dllapi.h2
-rw-r--r--sax/inc/sax/fastattribs.hxx4
-rw-r--r--sax/inc/sax/fshelper.hxx14
-rw-r--r--sax/inc/sax/parser/saxparser.hxx6
-rw-r--r--sax/inc/sax/tools/attributemap.hxx2
-rw-r--r--sax/inc/sax/tools/converter.hxx8
-rw-r--r--sax/inc/sax/tools/saxobject.hxx2
-rw-r--r--sax/inc/sax/tools/tokenmap.hxx2
-rw-r--r--sax/inc/xml2utf.hxx48
-rw-r--r--sax/qa/cppunit/version.map2
-rw-r--r--sax/source/expatwrap/attrlistimpl.cxx10
-rw-r--r--sax/source/expatwrap/attrlistimpl.hxx4
-rw-r--r--sax/source/expatwrap/factory.hxx4
-rw-r--r--sax/source/expatwrap/sax_expat.cxx272
-rw-r--r--sax/source/expatwrap/saxwriter.cxx106
-rw-r--r--sax/source/expatwrap/xml2utf.cxx26
-rw-r--r--sax/source/fastparser/facreg.cxx10
-rw-r--r--sax/source/fastparser/fastparser.cxx24
-rw-r--r--sax/source/fastparser/fastparser.hxx4
-rw-r--r--sax/source/tools/converter.cxx14
-rw-r--r--sax/source/tools/fastattribs.cxx2
-rw-r--r--sax/source/tools/fastserializer.cxx36
-rw-r--r--sax/source/tools/fastserializer.hxx12
-rw-r--r--sax/source/tools/fshelper.cxx10
-rw-r--r--sax/test/sax/factory.hxx6
-rw-r--r--sax/test/sax/testsax.cxx180
-rw-r--r--sax/test/sax/testwriter.cxx44
-rw-r--r--sax/test/saxdemo.cxx16
-rw-r--r--sax/test/testcomponent.cxx2
-rw-r--r--sot/inc/absdev.hxx6
-rw-r--r--sot/inc/agg.hxx8
-rw-r--r--sot/inc/clsids.hxx2
-rw-r--r--sot/inc/filelist.hxx22
-rw-r--r--sot/inc/pch/precompiled_sot.cxx2
-rw-r--r--sot/inc/pch/precompiled_sot.hxx2
-rw-r--r--sot/inc/sot/exchange.hxx138
-rw-r--r--sot/inc/sot/factory.hxx12
-rw-r--r--sot/inc/sot/formats.hxx212
-rw-r--r--sot/inc/sot/object.hxx8
-rw-r--r--sot/inc/sot/sotdata.hxx16
-rw-r--r--sot/inc/sot/sotdllapi.h8
-rw-r--r--sot/inc/sot/sotref.hxx4
-rw-r--r--sot/inc/sot/storage.hxx44
-rw-r--r--sot/inc/stg.hxx40
-rw-r--r--sot/inc/storinfo.hxx2
-rw-r--r--sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java10
-rw-r--r--sot/qa/complex/olesimplestorage/Test01.java18
-rw-r--r--sot/qa/complex/olesimplestorage/TestHelper.java6
-rw-r--r--sot/source/base/exchange.cxx232
-rw-r--r--sot/source/base/factory.cxx2
-rw-r--r--sot/source/base/filelist.cxx22
-rw-r--r--sot/source/base/formats.cxx112
-rw-r--r--sot/source/base/object.cxx42
-rw-r--r--sot/source/sdstor/stg.cxx4
-rw-r--r--sot/source/sdstor/stgavl.cxx4
-rw-r--r--sot/source/sdstor/stgavl.hxx14
-rw-r--r--sot/source/sdstor/stgcache.cxx6
-rw-r--r--sot/source/sdstor/stgcache.hxx94
-rw-r--r--sot/source/sdstor/stgdir.cxx48
-rw-r--r--sot/source/sdstor/stgdir.hxx76
-rw-r--r--sot/source/sdstor/stgelem.cxx120
-rw-r--r--sot/source/sdstor/stgelem.hxx160
-rw-r--r--sot/source/sdstor/stgio.cxx14
-rw-r--r--sot/source/sdstor/stgio.hxx24
-rw-r--r--sot/source/sdstor/stgole.cxx34
-rw-r--r--sot/source/sdstor/stgole.hxx2
-rw-r--r--sot/source/sdstor/stgstrms.cxx6
-rw-r--r--sot/source/sdstor/stgstrms.hxx64
-rw-r--r--sot/source/sdstor/storage.cxx12
-rw-r--r--sot/source/sdstor/storinfo.cxx2
-rw-r--r--sot/source/sdstor/ucbstorage.cxx2
-rw-r--r--sot/source/sdstor/unostorageholder.cxx8
-rw-r--r--sot/source/sdstor/unostorageholder.hxx12
-rw-r--r--sot/source/unoolestorage/register.cxx10
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.cxx44
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.hxx18
-rw-r--r--sot/workben/testsot.cxx2
-rw-r--r--svl/inc/PasswordHelper.hxx2
-rw-r--r--svl/inc/adrparse.hxx2
-rw-r--r--svl/inc/broadcast.hxx14
-rw-r--r--svl/inc/cntnrsrt.hxx118
-rw-r--r--svl/inc/cntwids.hrc40
-rw-r--r--svl/inc/converter.hxx4
-rw-r--r--svl/inc/filenotation.hxx10
-rw-r--r--svl/inc/folderrestriction.hxx2
-rw-r--r--svl/inc/fstathelper.hxx6
-rw-r--r--svl/inc/inetdef.hxx2
-rw-r--r--svl/inc/inetmsg.hxx2
-rw-r--r--svl/inc/inetstrm.hxx2
-rw-r--r--svl/inc/instrm.hxx2
-rw-r--r--svl/inc/listener.hxx18
-rw-r--r--svl/inc/listeneriter.hxx22
-rw-r--r--svl/inc/lngmisc.hxx14
-rw-r--r--svl/inc/nfsymbol.hxx2
-rw-r--r--svl/inc/numuno.hxx22
-rw-r--r--svl/inc/outstrm.hxx2
-rw-r--r--svl/inc/pch/precompiled_svl.cxx2
-rw-r--r--svl/inc/pickerhelper.hxx2
-rw-r--r--svl/inc/pickerhistory.hxx4
-rw-r--r--svl/inc/pickerhistoryaccess.hxx4
-rw-r--r--svl/inc/poolcach.hxx12
-rw-r--r--svl/inc/strmadpt.hxx2
-rw-r--r--svl/inc/stylepool.hxx2
-rw-r--r--svl/inc/svl/aeitem.hxx28
-rw-r--r--svl/inc/svl/asiancfg.hxx2
-rw-r--r--svl/inc/svl/brdcst.hxx28
-rw-r--r--svl/inc/svl/cancel.hxx42
-rw-r--r--svl/inc/svl/cenumitm.hxx10
-rw-r--r--svl/inc/svl/cintitem.hxx18
-rw-r--r--svl/inc/svl/cjkoptions.hxx2
-rw-r--r--svl/inc/svl/cnclhint.hxx6
-rw-r--r--svl/inc/svl/cntwall.hxx32
-rw-r--r--svl/inc/svl/ctloptions.hxx20
-rw-r--r--svl/inc/svl/ctypeitm.hxx14
-rw-r--r--svl/inc/svl/custritm.hxx6
-rw-r--r--svl/inc/svl/dateitem.hxx24
-rw-r--r--svl/inc/svl/documentlockfile.hxx2
-rw-r--r--svl/inc/svl/eitem.hxx2
-rw-r--r--svl/inc/svl/filerec.hxx314
-rw-r--r--svl/inc/svl/flagitem.hxx20
-rw-r--r--svl/inc/svl/globalnameitem.hxx14
-rw-r--r--svl/inc/svl/hint.hxx6
-rw-r--r--svl/inc/svl/httpcook.hxx8
-rw-r--r--svl/inc/svl/ilstitem.hxx4
-rw-r--r--svl/inc/svl/imageitm.hxx6
-rw-r--r--svl/inc/svl/inethist.hxx2
-rw-r--r--svl/inc/svl/inettype.hxx4
-rw-r--r--svl/inc/svl/intitem.hxx6
-rw-r--r--svl/inc/svl/isethint.hxx8
-rw-r--r--svl/inc/svl/itemiter.hxx8
-rw-r--r--svl/inc/svl/itempool.hxx168
-rw-r--r--svl/inc/svl/itemprop.hxx20
-rw-r--r--svl/inc/svl/itemset.hxx88
-rw-r--r--svl/inc/svl/languageoptions.hxx34
-rw-r--r--svl/inc/svl/lckbitem.hxx18
-rw-r--r--svl/inc/svl/lockfilecommon.hxx4
-rw-r--r--svl/inc/svl/lstner.hxx22
-rw-r--r--svl/inc/svl/macitem.hxx28
-rw-r--r--svl/inc/svl/mailenum.hxx22
-rw-r--r--svl/inc/svl/memberid.hrc8
-rw-r--r--svl/inc/svl/metitem.hxx4
-rw-r--r--svl/inc/svl/nfkeytab.hxx2
-rw-r--r--svl/inc/svl/nfversi.hxx40
-rw-r--r--svl/inc/svl/nranges.hxx30
-rw-r--r--svl/inc/svl/ondemand.hxx2
-rw-r--r--svl/inc/svl/ownlist.hxx16
-rw-r--r--svl/inc/svl/poolitem.hxx34
-rw-r--r--svl/inc/svl/ptitem.hxx18
-rw-r--r--svl/inc/svl/rectitem.hxx18
-rw-r--r--svl/inc/svl/restrictedpaths.hxx2
-rw-r--r--svl/inc/svl/rngitem.hxx42
-rw-r--r--svl/inc/svl/sfontitm.hxx4
-rw-r--r--svl/inc/svl/sharecontrolfile.hxx2
-rw-r--r--svl/inc/svl/slstitm.hxx26
-rw-r--r--svl/inc/svl/smplhint.hxx52
-rw-r--r--svl/inc/svl/solar.hrc154
-rw-r--r--svl/inc/svl/srchcfg.hxx8
-rw-r--r--svl/inc/svl/srchdefs.hxx8
-rw-r--r--svl/inc/svl/srchitem.hxx160
-rw-r--r--svl/inc/svl/stritem.hxx2
-rw-r--r--svl/inc/svl/style.hrc12
-rw-r--r--svl/inc/svl/style.hxx148
-rw-r--r--svl/inc/svl/svarray.hxx112
-rw-r--r--svl/inc/svl/svdde.hxx4
-rw-r--r--svl/inc/svl/svl.hrc246
-rw-r--r--svl/inc/svl/svldata.hxx8
-rw-r--r--svl/inc/svl/svldllapi.h2
-rw-r--r--svl/inc/svl/svstdarr.hxx14
-rw-r--r--svl/inc/svl/szitem.hxx18
-rw-r--r--svl/inc/svl/undo.hxx136
-rw-r--r--svl/inc/svl/urlfilter.hxx4
-rw-r--r--svl/inc/svl/visitem.hxx8
-rw-r--r--svl/inc/svl/zforlist.hxx266
-rw-r--r--svl/inc/svl/zformat.hxx6
-rw-r--r--svl/inc/urihelper.hxx2
-rw-r--r--svl/inc/urlbmk.hxx16
-rw-r--r--svl/inc/whiter.hxx6
-rw-r--r--svl/inc/xmlement.hxx4
-rw-r--r--svl/qa/complex/ConfigItems/CheckConfigItems.java28
-rw-r--r--svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.cxx60
-rw-r--r--svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.hxx4
-rw-r--r--svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx16
-rw-r--r--svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx112
-rw-r--r--svl/qa/complex/ConfigItems/helper/HistoryOptTest.hxx2
-rw-r--r--svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx44
-rw-r--r--svl/qa/complex/ConfigItems/helper/PrintOptTest.hxx26
-rw-r--r--svl/qa/complex/ConfigItems/helper/UserOptTest.cxx46
-rw-r--r--svl/qa/complex/ConfigItems/helper/UserOptTest.hxx2
-rw-r--r--svl/qa/complex/passwordcontainer/MasterPasswdHandler.java6
-rw-r--r--svl/qa/complex/passwordcontainer/PasswordContainerTest.java2
-rw-r--r--svl/qa/complex/passwordcontainer/PasswordContainerUnitTest.java10
-rw-r--r--svl/qa/complex/passwordcontainer/Test01.java24
-rw-r--r--svl/qa/complex/passwordcontainer/Test02.java40
-rw-r--r--svl/qa/complex/passwordcontainer/Test03.java40
-rw-r--r--svl/qa/complex/passwordcontainer/TestHelper.java16
-rw-r--r--svl/qa/export.map2
-rw-r--r--svl/qa/test_URIHelper.cxx2
-rw-r--r--svl/source/config/asiancfg.cxx30
-rw-r--r--svl/source/config/cjkoptions.cxx14
-rw-r--r--svl/source/config/ctloptions.cxx56
-rw-r--r--svl/source/config/itemholder2.cxx2
-rw-r--r--svl/source/config/itemholder2.hxx2
-rw-r--r--svl/source/config/languageoptions.cxx6
-rw-r--r--svl/source/config/srchcfg.cxx6
-rw-r--r--svl/source/filepicker/pickerhelper.cxx22
-rw-r--r--svl/source/filepicker/pickerhistory.cxx12
-rw-r--r--svl/source/filerec/filerec.cxx118
-rw-r--r--svl/source/fsstor/fsfactory.cxx24
-rw-r--r--svl/source/fsstor/fsstorage.cxx84
-rw-r--r--svl/source/fsstor/fsstorage.hxx38
-rw-r--r--svl/source/fsstor/oinputstreamcontainer.cxx16
-rw-r--r--svl/source/fsstor/oinputstreamcontainer.hxx10
-rw-r--r--svl/source/fsstor/ostreamcontainer.cxx48
-rw-r--r--svl/source/fsstor/ostreamcontainer.hxx26
-rw-r--r--svl/source/inc/fsfactory.hxx4
-rw-r--r--svl/source/inc/passwordcontainer.hxx110
-rw-r--r--svl/source/inc/poolio.hxx82
-rw-r--r--svl/source/items/aeitem.cxx4
-rw-r--r--svl/source/items/cenumitm.cxx2
-rw-r--r--svl/source/items/cintitem.cxx2
-rw-r--r--svl/source/items/cntwall.cxx2
-rw-r--r--svl/source/items/cstitem.src2
-rw-r--r--svl/source/items/ctypeitm.cxx6
-rw-r--r--svl/source/items/custritm.cxx2
-rw-r--r--svl/source/items/dateitem.cxx22
-rw-r--r--svl/source/items/eitem.cxx2
-rw-r--r--svl/source/items/flagitem.cxx12
-rw-r--r--svl/source/items/globalnameitem.cxx4
-rw-r--r--svl/source/items/ilstitem.cxx2
-rw-r--r--svl/source/items/imageitm.cxx4
-rw-r--r--svl/source/items/intitem.cxx2
-rw-r--r--svl/source/items/itemiter.cxx4
-rw-r--r--svl/source/items/itempool.cxx6
-rw-r--r--svl/source/items/itemprop.cxx34
-rw-r--r--svl/source/items/itemset.cxx136
-rw-r--r--svl/source/items/lckbitem.cxx10
-rw-r--r--svl/source/items/macitem.cxx12
-rw-r--r--svl/source/items/nranges.cxx50
-rw-r--r--svl/source/items/poolcach.cxx8
-rw-r--r--svl/source/items/poolio.cxx160
-rw-r--r--svl/source/items/poolitem.cxx30
-rw-r--r--svl/source/items/ptitem.cxx12
-rw-r--r--svl/source/items/rectitem.cxx12
-rw-r--r--svl/source/items/rngitem.cxx4
-rw-r--r--svl/source/items/rngitem_inc.cxx22
-rw-r--r--svl/source/items/sfontitm.cxx2
-rw-r--r--svl/source/items/sitem.cxx2
-rw-r--r--svl/source/items/slstitm.cxx20
-rw-r--r--svl/source/items/srchitem.cxx142
-rw-r--r--svl/source/items/stritem.cxx2
-rw-r--r--svl/source/items/style.cxx32
-rw-r--r--svl/source/items/stylepool.cxx2
-rw-r--r--svl/source/items/szitem.cxx12
-rw-r--r--svl/source/items/visitem.cxx2
-rw-r--r--svl/source/items/whassert.hxx24
-rw-r--r--svl/source/items/whiter.cxx2
-rw-r--r--svl/source/memtools/svarray.cxx6
-rw-r--r--svl/source/misc/PasswordHelper.cxx2
-rw-r--r--svl/source/misc/adrparse.cxx2
-rw-r--r--svl/source/misc/documentlockfile.cxx2
-rw-r--r--svl/source/misc/filenotation.cxx4
-rw-r--r--svl/source/misc/folderrestriction.cxx2
-rw-r--r--svl/source/misc/fstathelper.cxx2
-rw-r--r--svl/source/misc/inethist.cxx2
-rw-r--r--svl/source/misc/inettype.cxx8
-rw-r--r--svl/source/misc/lngmisc.cxx4
-rw-r--r--svl/source/misc/lockfilecommon.cxx2
-rw-r--r--svl/source/misc/mediatyp.src2
-rw-r--r--svl/source/misc/ownlist.cxx170
-rw-r--r--svl/source/misc/restrictedpaths.cxx4
-rw-r--r--svl/source/misc/sharecontrolfile.cxx2
-rw-r--r--svl/source/misc/strmadpt.cxx8
-rw-r--r--svl/source/misc/svldata.cxx2
-rw-r--r--svl/source/misc/urihelper.cxx2
-rw-r--r--svl/source/notify/brdcst.cxx2
-rw-r--r--svl/source/notify/broadcast.cxx24
-rw-r--r--svl/source/notify/cancel.cxx14
-rw-r--r--svl/source/notify/hint.cxx2
-rw-r--r--svl/source/notify/isethint.cxx10
-rw-r--r--svl/source/notify/listener.cxx2
-rw-r--r--svl/source/notify/listenerbase.cxx2
-rw-r--r--svl/source/notify/listenerbase.hxx14
-rw-r--r--svl/source/notify/listeneriter.cxx10
-rw-r--r--svl/source/notify/lstner.cxx2
-rw-r--r--svl/source/notify/smplhint.cxx2
-rw-r--r--svl/source/numbers/nbdll.cxx2
-rw-r--r--svl/source/numbers/numfmuno.cxx114
-rw-r--r--svl/source/numbers/numfmuno.hxx38
-rw-r--r--svl/source/numbers/numhead.cxx20
-rw-r--r--svl/source/numbers/numhead.hxx52
-rw-r--r--svl/source/numbers/numuno.cxx12
-rw-r--r--svl/source/numbers/supservs.cxx6
-rw-r--r--svl/source/numbers/supservs.hxx16
-rw-r--r--svl/source/numbers/zforfind.cxx2
-rw-r--r--svl/source/numbers/zforfind.hxx2
-rw-r--r--svl/source/numbers/zforlist.cxx474
-rw-r--r--svl/source/numbers/zformat.cxx8
-rw-r--r--svl/source/numbers/zforscan.cxx638
-rw-r--r--svl/source/numbers/zforscan.hxx104
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx2
-rw-r--r--svl/source/passwordcontainer/syscreds.cxx46
-rw-r--r--svl/source/passwordcontainer/syscreds.hxx14
-rw-r--r--svl/source/svdde/ddecli.cxx8
-rw-r--r--svl/source/svdde/ddedata.cxx2
-rw-r--r--svl/source/svdde/ddedll.cxx4
-rw-r--r--svl/source/svdde/ddeimp.hxx28
-rw-r--r--svl/source/svdde/ddeinf.cxx2
-rw-r--r--svl/source/svdde/ddeml1.cxx186
-rw-r--r--svl/source/svdde/ddeml2.cxx42
-rw-r--r--svl/source/svdde/ddemldeb.cxx2
-rw-r--r--svl/source/svdde/ddemldeb.hxx2
-rw-r--r--svl/source/svdde/ddemlimp.hxx332
-rw-r--r--svl/source/svdde/ddemlos2.h62
-rw-r--r--svl/source/svdde/ddestrg.cxx2
-rw-r--r--svl/source/svdde/ddesvr.cxx4
-rw-r--r--svl/source/svdde/ddewrap.cxx12
-rw-r--r--svl/source/svdde/ddewrap.hxx6
-rw-r--r--svl/source/svsql/converter.cxx2
-rw-r--r--svl/source/undo/undo.cxx26
-rw-r--r--svl/source/uno/pathservice.cxx2
-rw-r--r--svl/source/uno/registerservices.cxx4
-rw-r--r--svl/unx/inc/convert.hxx24
-rw-r--r--svl/unx/source/svdde/ddedummy.cxx10
-rw-r--r--svtools/bmpmaker/bmp.cxx40
-rw-r--r--svtools/bmpmaker/bmp.hrc32
-rw-r--r--svtools/bmpmaker/bmp.src2
-rw-r--r--svtools/bmpmaker/bmpcore.cxx22
-rw-r--r--svtools/bmpmaker/bmpcore.hxx50
-rw-r--r--svtools/bmpmaker/bmpsum.cxx12
-rw-r--r--svtools/bmpmaker/g2g.cxx30
-rw-r--r--svtools/inc/DocumentInfoPreview.hxx14
-rw-r--r--svtools/inc/QueryFolderName.hxx16
-rw-r--r--svtools/inc/acceleratorexecute.hxx8
-rw-r--r--svtools/inc/addresstemplate.hxx50
-rw-r--r--svtools/inc/apearcfg.hxx42
-rw-r--r--svtools/inc/asynclink.hxx2
-rw-r--r--svtools/inc/calendar.hxx362
-rw-r--r--svtools/inc/cliplistener.hxx8
-rw-r--r--svtools/inc/collatorres.hxx4
-rw-r--r--svtools/inc/contextmenuhelper.hxx24
-rw-r--r--svtools/inc/controldims.hrc82
-rw-r--r--svtools/inc/ctrlbox.hxx240
-rw-r--r--svtools/inc/ctrltool.hxx116
-rw-r--r--svtools/inc/dialogclosedlistener.hxx2
-rw-r--r--svtools/inc/dialogcontrolling.hxx2
-rw-r--r--svtools/inc/expander.hxx78
-rw-r--r--svtools/inc/extcolorcfg.hxx42
-rw-r--r--svtools/inc/filectrl.hxx66
-rw-r--r--svtools/inc/filedlg.hxx72
-rw-r--r--svtools/inc/filedlg2.hrc32
-rw-r--r--svtools/inc/fileview.hxx68
-rw-r--r--svtools/inc/fltdefs.hxx94
-rw-r--r--svtools/inc/fontsubstconfig.hxx30
-rw-r--r--svtools/inc/framestatuslistener.hxx18
-rw-r--r--svtools/inc/helpagentwindow.hxx20
-rw-r--r--svtools/inc/htmlkywd.hxx2
-rw-r--r--svtools/inc/htmltokn.h134
-rw-r--r--svtools/inc/imagemgr.hrc16
-rw-r--r--svtools/inc/imagemgr.hxx52
-rw-r--r--svtools/inc/imageresourceaccess.hxx2
-rw-r--r--svtools/inc/imgdef.hxx8
-rw-r--r--svtools/inc/indexentryres.hxx2
-rw-r--r--svtools/inc/inetimg.hxx38
-rw-r--r--svtools/inc/itemdel.hxx2
-rw-r--r--svtools/inc/ivctrl.hxx350
-rw-r--r--svtools/inc/localresaccess.hxx6
-rw-r--r--svtools/inc/pch/precompiled_svtools.cxx2
-rw-r--r--svtools/inc/pch/precompiled_svtools.hxx2
-rw-r--r--svtools/inc/prgsbar.hxx40
-rw-r--r--svtools/inc/roadmap.hxx28
-rw-r--r--svtools/inc/rtfkeywd.hxx2
-rw-r--r--svtools/inc/rtfout.hxx6
-rw-r--r--svtools/inc/rtftoken.h76
-rw-r--r--svtools/inc/ruler.hxx10
-rw-r--r--svtools/inc/scriptedtext.hxx2
-rw-r--r--svtools/inc/scrwin.hxx66
-rw-r--r--svtools/inc/sfxecode.hxx124
-rw-r--r--svtools/inc/soerr.hxx72
-rw-r--r--svtools/inc/sores.hxx290
-rw-r--r--svtools/inc/statusbarcontroller.hxx36
-rw-r--r--svtools/inc/stdmenu.hxx84
-rw-r--r--svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx2
-rw-r--r--svtools/inc/svtools/FilterConfigItem.hxx28
-rw-r--r--svtools/inc/svtools/accessibilityoptions.hxx40
-rw-r--r--svtools/inc/svtools/accessiblefactory.hxx2
-rw-r--r--svtools/inc/svtools/accessibletable.hxx32
-rw-r--r--svtools/inc/svtools/accessibletableprovider.hxx96
-rw-r--r--svtools/inc/svtools/brwbox.hxx204
-rw-r--r--svtools/inc/svtools/brwhead.hxx6
-rw-r--r--svtools/inc/svtools/chartprettypainter.hxx4
-rw-r--r--svtools/inc/svtools/colctrl.hxx72
-rw-r--r--svtools/inc/svtools/colorcfg.hxx8
-rw-r--r--svtools/inc/svtools/colrdlg.hxx76
-rw-r--r--svtools/inc/svtools/editbrowsebox.hxx116
-rw-r--r--svtools/inc/svtools/editimplementation.hxx2
-rw-r--r--svtools/inc/svtools/editsyntaxhighlighter.hxx12
-rw-r--r--svtools/inc/svtools/ehdl.hxx2
-rw-r--r--svtools/inc/svtools/embedhlp.hxx12
-rw-r--r--svtools/inc/svtools/embedtransfer.hxx8
-rw-r--r--svtools/inc/svtools/extensionlistbox.hxx2
-rw-r--r--svtools/inc/svtools/fileurlbox.hxx10
-rw-r--r--svtools/inc/svtools/filter.hxx346
-rw-r--r--svtools/inc/svtools/fixedhyper.hxx2
-rw-r--r--svtools/inc/svtools/fltcall.hxx16
-rw-r--r--svtools/inc/svtools/fmtfield.hxx178
-rw-r--r--svtools/inc/svtools/generictoolboxcontroller.hxx10
-rw-r--r--svtools/inc/svtools/genericunodialog.hxx44
-rw-r--r--svtools/inc/svtools/grfmgr.hxx424
-rw-r--r--svtools/inc/svtools/headbar.hxx358
-rw-r--r--svtools/inc/svtools/helpid.hrc112
-rw-r--r--svtools/inc/svtools/helpopt.hxx24
-rw-r--r--svtools/inc/svtools/htmlcfg.hxx46
-rw-r--r--svtools/inc/svtools/htmlout.hxx10
-rw-r--r--svtools/inc/svtools/hyperlabel.hxx18
-rw-r--r--svtools/inc/svtools/imap.hxx62
-rw-r--r--svtools/inc/svtools/imapcirc.hxx28
-rw-r--r--svtools/inc/svtools/imapobj.hxx108
-rw-r--r--svtools/inc/svtools/imappoly.hxx36
-rw-r--r--svtools/inc/svtools/imaprect.hxx24
-rw-r--r--svtools/inc/svtools/inettbc.hxx58
-rw-r--r--svtools/inc/svtools/insdlg.hxx4
-rw-r--r--svtools/inc/svtools/javacontext.hxx10
-rw-r--r--svtools/inc/svtools/javainteractionhandler.hxx6
-rw-r--r--svtools/inc/svtools/langhelp.hxx2
-rw-r--r--svtools/inc/svtools/langtab.hxx12
-rw-r--r--svtools/inc/svtools/menuoptions.hxx72
-rw-r--r--svtools/inc/svtools/miscopt.hxx66
-rw-r--r--svtools/inc/svtools/optionsdrawinglayer.hxx160
-rw-r--r--svtools/inc/svtools/parhtml.hxx118
-rw-r--r--svtools/inc/svtools/parrtf.hxx12
-rw-r--r--svtools/inc/svtools/popupmenucontrollerbase.hxx24
-rw-r--r--svtools/inc/svtools/popupwindowcontroller.hxx4
-rw-r--r--svtools/inc/svtools/printdlg.hxx158
-rw-r--r--svtools/inc/svtools/printoptions.hxx22
-rw-r--r--svtools/inc/svtools/prnsetup.hxx60
-rw-r--r--svtools/inc/svtools/roadmapwizard.hxx10
-rw-r--r--svtools/inc/svtools/stdctrl.hxx2
-rw-r--r--svtools/inc/svtools/stringtransfer.hxx16
-rw-r--r--svtools/inc/svtools/svicnvw.hxx234
-rw-r--r--svtools/inc/svtools/svlbitm.hxx182
-rw-r--r--svtools/inc/svtools/svlbox.hxx418
-rw-r--r--svtools/inc/svtools/svmedit.hxx114
-rw-r--r--svtools/inc/svtools/svmedit2.hxx14
-rw-r--r--svtools/inc/svtools/svparser.hxx76
-rw-r--r--svtools/inc/svtools/svtabbx.hxx164
-rw-r--r--svtools/inc/svtools/svtdata.hxx6
-rw-r--r--svtools/inc/svtools/svtdllapi.h2
-rw-r--r--svtools/inc/svtools/svtools.hrc548
-rw-r--r--svtools/inc/svtools/svtreebx.hxx380
-rw-r--r--svtools/inc/svtools/svxbox.hxx106
-rw-r--r--svtools/inc/svtools/syntaxhighlight.hxx32
-rw-r--r--svtools/inc/svtools/table/abstracttablecontrol.hxx4
-rw-r--r--svtools/inc/svtools/table/defaultinputhandler.hxx4
-rw-r--r--svtools/inc/svtools/table/gridtablerenderer.hxx4
-rw-r--r--svtools/inc/svtools/table/tablecontrol.hxx30
-rw-r--r--svtools/inc/svtools/table/tabledatawindow.hxx42
-rw-r--r--svtools/inc/svtools/table/tableinputhandler.hxx2
-rw-r--r--svtools/inc/svtools/table/tablemodel.hxx34
-rw-r--r--svtools/inc/svtools/table/tablerenderer.hxx4
-rw-r--r--svtools/inc/svtools/table/tabletypes.hxx2
-rw-r--r--svtools/inc/svtools/textdata.hxx142
-rw-r--r--svtools/inc/svtools/texteng.hxx338
-rw-r--r--svtools/inc/svtools/textview.hxx152
-rw-r--r--svtools/inc/svtools/textwindowpeer.hxx2
-rw-r--r--svtools/inc/svtools/toolbarmenu.hxx80
-rw-r--r--svtools/inc/svtools/toolboxcontroller.hxx26
-rw-r--r--svtools/inc/svtools/toolpanel/decklayouter.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/drawerlayouter.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/paneltabbar.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/refbase.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/tabalignment.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/tabitemcontent.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/tablayouter.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/toolpanel.hxx2
-rw-r--r--svtools/inc/svtools/toolpanel/toolpaneldeck.hxx2
-rw-r--r--svtools/inc/svtools/transfer.hxx302
-rw-r--r--svtools/inc/svtools/treelist.hxx324
-rw-r--r--svtools/inc/svtools/ttprops.hxx32
-rw-r--r--svtools/inc/svtools/unitconv.hxx30
-rw-r--r--svtools/inc/svtools/urlcontrol.hxx10
-rw-r--r--svtools/inc/svtools/valueset.hxx326
-rw-r--r--svtools/inc/svtools/wizardmachine.hxx82
-rw-r--r--svtools/inc/svtools/wizdlg.hxx108
-rw-r--r--svtools/inc/svtools/wmf.hxx2
-rw-r--r--svtools/inc/svtools/xtextedt.hxx30
-rw-r--r--svtools/inc/svtools/xwindowitem.hxx2
-rw-r--r--svtools/inc/sychconv.hxx4
-rw-r--r--svtools/inc/tabbar.hxx10
-rw-r--r--svtools/inc/taskbar.hxx2
-rw-r--r--svtools/inc/templatefoldercache.hxx10
-rw-r--r--svtools/inc/templdlg.hxx38
-rw-r--r--svtools/inc/testtool.hxx2
-rw-r--r--svtools/inc/tooltiplbox.hxx2
-rw-r--r--svtools/inc/txtattr.hxx108
-rw-r--r--svtools/inc/txtcmp.hxx2
-rw-r--r--svtools/inc/unoevent.hxx128
-rw-r--r--svtools/inc/unoimap.hxx2
-rw-r--r--svtools/inc/wallitem.hxx8
-rw-r--r--svtools/source/brwbox/brwbox1.cxx48
-rw-r--r--svtools/source/brwbox/brwbox2.cxx26
-rw-r--r--svtools/source/brwbox/brwbox3.cxx22
-rw-r--r--svtools/source/brwbox/brwhead.cxx4
-rw-r--r--svtools/source/brwbox/brwimpl.hxx6
-rw-r--r--svtools/source/brwbox/datwin.cxx4
-rw-r--r--svtools/source/brwbox/datwin.hxx90
-rw-r--r--svtools/source/brwbox/ebbcontrols.cxx14
-rw-r--r--svtools/source/brwbox/editbrowsebox.cxx86
-rw-r--r--svtools/source/brwbox/editbrowsebox.hrc20
-rw-r--r--svtools/source/brwbox/editbrowsebox.src2
-rw-r--r--svtools/source/brwbox/editbrowsebox2.cxx18
-rw-r--r--svtools/source/brwbox/editbrowseboximpl.hxx4
-rw-r--r--svtools/source/config/accessibilityoptions.cxx72
-rw-r--r--svtools/source/config/apearcfg.cxx26
-rw-r--r--svtools/source/config/colorcfg.cxx16
-rw-r--r--svtools/source/config/extcolorcfg.cxx64
-rw-r--r--svtools/source/config/fontsubstconfig.cxx20
-rw-r--r--svtools/source/config/helpopt.cxx116
-rw-r--r--svtools/source/config/htmlcfg.cxx102
-rw-r--r--svtools/source/config/itemholder2.cxx2
-rw-r--r--svtools/source/config/itemholder2.hxx2
-rw-r--r--svtools/source/config/menuoptions.cxx190
-rw-r--r--svtools/source/config/miscopt.cxx140
-rw-r--r--svtools/source/config/optionsdrawinglayer.cxx410
-rw-r--r--svtools/source/config/printoptions.cxx38
-rw-r--r--svtools/source/config/test/test.cxx32
-rw-r--r--svtools/source/contnr/cont_pch.cxx2
-rw-r--r--svtools/source/contnr/contentenumeration.cxx28
-rw-r--r--svtools/source/contnr/contentenumeration.hxx4
-rw-r--r--svtools/source/contnr/ctrdll.cxx2
-rw-r--r--svtools/source/contnr/fileview.hrc6
-rw-r--r--svtools/source/contnr/fileview.src2
-rw-r--r--svtools/source/contnr/imivctl.hxx568
-rw-r--r--svtools/source/contnr/imivctl1.cxx88
-rw-r--r--svtools/source/contnr/imivctl2.cxx18
-rw-r--r--svtools/source/contnr/ivctrl.cxx14
-rw-r--r--svtools/source/contnr/svcontnr.src2
-rw-r--r--svtools/source/contnr/svicnvw.cxx4
-rw-r--r--svtools/source/contnr/svimpbox.cxx116
-rw-r--r--svtools/source/contnr/svimpicn.cxx126
-rw-r--r--svtools/source/contnr/svlbitm.cxx60
-rw-r--r--svtools/source/contnr/svlbox.cxx54
-rw-r--r--svtools/source/contnr/svtabbx.cxx16
-rw-r--r--svtools/source/contnr/svtreebx.cxx24
-rw-r--r--svtools/source/contnr/templwin.cxx116
-rw-r--r--svtools/source/contnr/templwin.hrc50
-rw-r--r--svtools/source/contnr/templwin.hxx260
-rw-r--r--svtools/source/contnr/templwin.src4
-rw-r--r--svtools/source/contnr/tooltiplbox.cxx2
-rw-r--r--svtools/source/contnr/treelist.cxx34
-rw-r--r--svtools/source/control/asynclink.cxx2
-rw-r--r--svtools/source/control/calendar.cxx434
-rwxr-xr-xsvtools/source/control/calendar.src2
-rw-r--r--svtools/source/control/collatorres.cxx22
-rw-r--r--svtools/source/control/ctrlbox.cxx18
-rwxr-xr-xsvtools/source/control/ctrlbox.src2
-rw-r--r--svtools/source/control/ctrldll.cxx2
-rw-r--r--svtools/source/control/ctrltool.cxx100
-rwxr-xr-xsvtools/source/control/ctrltool.src2
-rw-r--r--svtools/source/control/filectrl.cxx2
-rw-r--r--svtools/source/control/filectrl.src2
-rw-r--r--svtools/source/control/filectrl2.cxx2
-rw-r--r--svtools/source/control/fileurlbox.cxx4
-rw-r--r--svtools/source/control/fixedhyper.cxx2
-rw-r--r--svtools/source/control/fmtfield.cxx96
-rw-r--r--svtools/source/control/headbar.cxx186
-rw-r--r--svtools/source/control/hyperlabel.cxx44
-rw-r--r--svtools/source/control/indexentryres.cxx14
-rw-r--r--svtools/source/control/inettbc.cxx26
-rw-r--r--svtools/source/control/prgsbar.cxx10
-rw-r--r--svtools/source/control/roadmap.cxx74
-rw-r--r--svtools/source/control/ruler.cxx16
-rw-r--r--svtools/source/control/scriptedtext.cxx2
-rw-r--r--svtools/source/control/scrwin.cxx12
-rw-r--r--svtools/source/control/stdctrl.cxx2
-rw-r--r--svtools/source/control/stdmenu.cxx44
-rw-r--r--svtools/source/control/svxbox.cxx48
-rw-r--r--svtools/source/control/tabbar.cxx2
-rw-r--r--svtools/source/control/taskbar.cxx102
-rw-r--r--svtools/source/control/taskbox.cxx2
-rw-r--r--svtools/source/control/taskmisc.cxx128
-rw-r--r--svtools/source/control/taskstat.cxx2
-rw-r--r--svtools/source/control/toolbarmenu.cxx50
-rw-r--r--svtools/source/control/toolbarmenuacc.cxx4
-rw-r--r--svtools/source/control/toolbarmenuimp.hxx14
-rw-r--r--svtools/source/control/urlcontrol.cxx4
-rw-r--r--svtools/source/control/valueacc.cxx8
-rw-r--r--svtools/source/control/valueimp.hxx38
-rw-r--r--svtools/source/control/valueset.cxx280
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx158
-rw-r--r--svtools/source/dialogs/addresstemplate.hrc100
-rw-r--r--svtools/source/dialogs/addresstemplate.src30
-rw-r--r--svtools/source/dialogs/colctrl.cxx58
-rw-r--r--svtools/source/dialogs/colrdlg.cxx58
-rw-r--r--svtools/source/dialogs/colrdlg.hrc2
-rw-r--r--svtools/source/dialogs/colrdlg.src2
-rw-r--r--svtools/source/dialogs/filedlg.cxx2
-rw-r--r--svtools/source/dialogs/filedlg2.cxx46
-rw-r--r--svtools/source/dialogs/filedlg2.hxx104
-rw-r--r--svtools/source/dialogs/filedlg2.src2
-rw-r--r--svtools/source/dialogs/formats.src2
-rw-r--r--svtools/source/dialogs/insdlg.cxx18
-rw-r--r--svtools/source/dialogs/mcvmath.cxx2
-rw-r--r--svtools/source/dialogs/mcvmath.hxx10
-rw-r--r--svtools/source/dialogs/printdlg.cxx64
-rw-r--r--svtools/source/dialogs/printdlg.hrc28
-rw-r--r--svtools/source/dialogs/printdlg.src2
-rw-r--r--svtools/source/dialogs/prnsetup.cxx46
-rw-r--r--svtools/source/dialogs/prnsetup.hrc34
-rw-r--r--svtools/source/dialogs/prnsetup.src2
-rw-r--r--svtools/source/dialogs/propctrl.cxx18
-rw-r--r--svtools/source/dialogs/propctrl.hxx6
-rw-r--r--svtools/source/dialogs/property.cxx100
-rw-r--r--svtools/source/dialogs/roadmapwizard.cxx6
-rw-r--r--svtools/source/dialogs/so3res.src8
-rw-r--r--svtools/source/dialogs/wizardmachine.cxx24
-rw-r--r--svtools/source/dialogs/wizardmachine.src2
-rw-r--r--svtools/source/dialogs/wizdlg.cxx4
-rw-r--r--svtools/source/edit/editsyntaxhighlighter.cxx46
-rw-r--r--svtools/source/edit/svmedit.cxx182
-rw-r--r--svtools/source/edit/svmedit2.cxx2
-rw-r--r--svtools/source/edit/sychconv.cxx68
-rw-r--r--svtools/source/edit/syntaxhighlight.cxx174
-rw-r--r--svtools/source/edit/textdat2.hxx188
-rw-r--r--svtools/source/edit/textdata.cxx8
-rw-r--r--svtools/source/edit/textdoc.cxx82
-rw-r--r--svtools/source/edit/textdoc.hxx100
-rw-r--r--svtools/source/edit/texteng.cxx180
-rw-r--r--svtools/source/edit/textund2.hxx82
-rw-r--r--svtools/source/edit/textundo.cxx44
-rw-r--r--svtools/source/edit/textundo.hxx38
-rw-r--r--svtools/source/edit/textview.cxx230
-rw-r--r--svtools/source/edit/textwindowpeer.cxx2
-rw-r--r--svtools/source/edit/txtattr.cxx2
-rw-r--r--svtools/source/edit/xtextedt.cxx20
-rw-r--r--svtools/source/filter.vcl/filter/FilterConfigCache.cxx16
-rw-r--r--svtools/source/filter.vcl/filter/FilterConfigCache.hxx98
-rw-r--r--svtools/source/filter.vcl/filter/FilterConfigItem.cxx42
-rw-r--r--svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx34
-rw-r--r--svtools/source/filter.vcl/filter/SvFilterOptionsDialog.hxx14
-rw-r--r--svtools/source/filter.vcl/filter/dlgejpg.cxx10
-rw-r--r--svtools/source/filter.vcl/filter/dlgejpg.hrc2
-rw-r--r--svtools/source/filter.vcl/filter/dlgejpg.hxx18
-rw-r--r--svtools/source/filter.vcl/filter/dlgejpg.src2
-rw-r--r--svtools/source/filter.vcl/filter/dlgepng.cxx14
-rw-r--r--svtools/source/filter.vcl/filter/dlgepng.hrc2
-rw-r--r--svtools/source/filter.vcl/filter/dlgepng.hxx18
-rw-r--r--svtools/source/filter.vcl/filter/dlgepng.src2
-rw-r--r--svtools/source/filter.vcl/filter/dlgexpor.cxx56
-rw-r--r--svtools/source/filter.vcl/filter/dlgexpor.hrc2
-rw-r--r--svtools/source/filter.vcl/filter/dlgexpor.hxx66
-rw-r--r--svtools/source/filter.vcl/filter/dlgexpor.src4
-rw-r--r--svtools/source/filter.vcl/filter/filter.cxx202
-rw-r--r--svtools/source/filter.vcl/filter/filter2.cxx230
-rw-r--r--svtools/source/filter.vcl/filter/fldll.cxx2
-rw-r--r--svtools/source/filter.vcl/filter/gradwrap.cxx12
-rw-r--r--svtools/source/filter.vcl/filter/sgfbram.cxx2
-rw-r--r--svtools/source/filter.vcl/filter/sgvmain.cxx12
-rw-r--r--svtools/source/filter.vcl/filter/sgvspln.cxx2
-rw-r--r--svtools/source/filter.vcl/filter/sgvtext.cxx2
-rw-r--r--svtools/source/filter.vcl/filter/strings.hrc2
-rw-r--r--svtools/source/filter.vcl/filter/strings.src2
-rw-r--r--svtools/source/filter.vcl/igif/decode.cxx42
-rw-r--r--svtools/source/filter.vcl/igif/decode.hxx40
-rw-r--r--svtools/source/filter.vcl/igif/gifread.cxx102
-rw-r--r--svtools/source/filter.vcl/ixbm/xbmread.cxx66
-rw-r--r--svtools/source/filter.vcl/ixpm/rgbtable.hxx1318
-rw-r--r--svtools/source/filter.vcl/ixpm/xpmread.cxx120
-rw-r--r--svtools/source/filter.vcl/jpeg/jpeg.cxx80
-rw-r--r--svtools/source/filter.vcl/jpeg/jpeg.h26
-rw-r--r--svtools/source/filter.vcl/jpeg/jpegc.c26
-rw-r--r--svtools/source/filter.vcl/wmf/emfwr.cxx254
-rw-r--r--svtools/source/filter.vcl/wmf/emfwr.hxx86
-rw-r--r--svtools/source/filter.vcl/wmf/enhwmf.cxx182
-rw-r--r--svtools/source/filter.vcl/wmf/winmtf.cxx186
-rw-r--r--svtools/source/filter.vcl/wmf/winmtf.hxx724
-rw-r--r--svtools/source/filter.vcl/wmf/winwmf.cxx152
-rw-r--r--svtools/source/filter.vcl/wmf/wmf.cxx2
-rw-r--r--svtools/source/filter.vcl/wmf/wmfwr.cxx174
-rw-r--r--svtools/source/filter.vcl/wmf/wmfwr.hxx34
-rw-r--r--svtools/source/graphic/descriptor.cxx130
-rw-r--r--svtools/source/graphic/descriptor.hxx96
-rw-r--r--svtools/source/graphic/graphic.cxx62
-rw-r--r--svtools/source/graphic/graphic.hxx20
-rw-r--r--svtools/source/graphic/graphicunofactory.cxx8
-rw-r--r--svtools/source/graphic/grfattr.cxx44
-rw-r--r--svtools/source/graphic/grfcache.cxx158
-rw-r--r--svtools/source/graphic/grfcache.hxx84
-rw-r--r--svtools/source/graphic/grfmgr.cxx116
-rw-r--r--svtools/source/graphic/grfmgr2.cxx406
-rw-r--r--svtools/source/graphic/provider.cxx206
-rw-r--r--svtools/source/graphic/renderer.cxx84
-rw-r--r--svtools/source/graphic/transformer.cxx8
-rw-r--r--svtools/source/graphic/transformer.hxx16
-rw-r--r--svtools/source/hatchwindow/documentcloser.cxx4
-rw-r--r--svtools/source/hatchwindow/documentcloser.hxx6
-rw-r--r--svtools/source/hatchwindow/hatchwindow.cxx4
-rw-r--r--svtools/source/hatchwindow/hatchwindow.hxx2
-rw-r--r--svtools/source/hatchwindow/hatchwindowfactory.cxx6
-rw-r--r--svtools/source/hatchwindow/hatchwindowfactory.hxx4
-rw-r--r--svtools/source/hatchwindow/ipwin.cxx2
-rw-r--r--svtools/source/hatchwindow/ipwin.hxx10
-rw-r--r--svtools/source/inc/accessibletableimp.hxx4
-rw-r--r--svtools/source/inc/configitems/accessibilityoptions_const.hxx2
-rw-r--r--svtools/source/inc/filectrl.hrc4
-rw-r--r--svtools/source/inc/gifread.hxx110
-rw-r--r--svtools/source/inc/gradwrap.hxx36
-rw-r--r--svtools/source/inc/iodlg.hrc78
-rw-r--r--svtools/source/inc/jpeg.hxx58
-rw-r--r--svtools/source/inc/msgrd.hxx2
-rw-r--r--svtools/source/inc/msgwr.hxx2
-rw-r--r--svtools/source/inc/property.hxx472
-rw-r--r--svtools/source/inc/provider.hxx20
-rw-r--r--svtools/source/inc/renderer.hxx24
-rw-r--r--svtools/source/inc/sgfbram.hxx2
-rw-r--r--svtools/source/inc/sgffilt.hxx2
-rw-r--r--svtools/source/inc/sgvmain.hxx2
-rw-r--r--svtools/source/inc/sgvspln.hxx2
-rw-r--r--svtools/source/inc/svimpbox.hxx438
-rw-r--r--svtools/source/inc/svimpicn.hxx362
-rw-r--r--svtools/source/inc/svtaccessiblefactory.hxx2
-rw-r--r--svtools/source/inc/unoiface.hxx188
-rw-r--r--svtools/source/inc/xbmread.hxx36
-rw-r--r--svtools/source/inc/xpmread.hxx106
-rw-r--r--svtools/source/java/javacontext.cxx2
-rw-r--r--svtools/source/java/javaerror.src4
-rw-r--r--svtools/source/java/javainteractionhandler.cxx8
-rw-r--r--svtools/source/java/patchjavaerror.src4
-rw-r--r--svtools/source/misc/acceleratorexecute.cxx80
-rw-r--r--svtools/source/misc/bindablecontrolhelper.cxx2
-rw-r--r--svtools/source/misc/chartprettypainter.cxx4
-rw-r--r--svtools/source/misc/cliplistener.cxx2
-rw-r--r--svtools/source/misc/dialogclosedlistener.cxx2
-rw-r--r--svtools/source/misc/dialogcontrolling.cxx2
-rw-r--r--svtools/source/misc/ehdl.cxx4
-rw-r--r--svtools/source/misc/ehdl.src2
-rw-r--r--svtools/source/misc/embedhlp.cxx20
-rw-r--r--svtools/source/misc/embedtransfer.cxx2
-rw-r--r--svtools/source/misc/errtxt.src2
-rw-r--r--svtools/source/misc/helpagent.src2
-rw-r--r--svtools/source/misc/helpagentwindow.cxx16
-rw-r--r--svtools/source/misc/imagemgr.cxx8
-rw-r--r--svtools/source/misc/imagemgr.src2
-rw-r--r--svtools/source/misc/imageresourceaccess.cxx8
-rw-r--r--svtools/source/misc/imap.cxx88
-rw-r--r--svtools/source/misc/imap2.cxx102
-rw-r--r--svtools/source/misc/imap3.cxx8
-rw-r--r--svtools/source/misc/itemdel.cxx4
-rw-r--r--svtools/source/misc/langhelp.cxx2
-rw-r--r--svtools/source/misc/langtab.cxx34
-rw-r--r--svtools/source/misc/langtab.src4
-rw-r--r--svtools/source/misc/stringtransfer.cxx6
-rw-r--r--svtools/source/misc/svtaccessiblefactory.cxx2
-rw-r--r--svtools/source/misc/svtdata.cxx2
-rw-r--r--svtools/source/misc/templatefoldercache.cxx134
-rw-r--r--svtools/source/misc/transfer.cxx128
-rw-r--r--svtools/source/misc/transfer2.cxx12
-rw-r--r--svtools/source/misc/unitconv.cxx54
-rw-r--r--svtools/source/misc/wallitem.cxx2
-rw-r--r--svtools/source/misc/xwindowitem.cxx18
-rw-r--r--svtools/source/plugapp/commtest.cxx34
-rw-r--r--svtools/source/plugapp/commtest.hrc12
-rw-r--r--svtools/source/plugapp/commtest.src4
-rw-r--r--svtools/source/plugapp/testtool.hrc42
-rw-r--r--svtools/source/plugapp/testtool.src10
-rw-r--r--svtools/source/plugapp/ttprops.cxx2
-rw-r--r--svtools/source/productregistration/productregistration.cxx12
-rw-r--r--svtools/source/productregistration/productregistration.hxx12
-rw-r--r--svtools/source/productregistration/registrationdlg.cxx28
-rw-r--r--svtools/source/productregistration/registrationdlg.hrc22
-rw-r--r--svtools/source/productregistration/registrationdlg.hxx26
-rw-r--r--svtools/source/productregistration/registrationdlg.src2
-rw-r--r--svtools/source/svhtml/htmlkywd.cxx1098
-rw-r--r--svtools/source/svhtml/htmlout.cxx566
-rw-r--r--svtools/source/svhtml/htmlsupp.cxx18
-rw-r--r--svtools/source/svhtml/parhtml.cxx102
-rw-r--r--svtools/source/svrtf/parrtf.cxx80
-rw-r--r--svtools/source/svrtf/rtfkey2.cxx36
-rw-r--r--svtools/source/svrtf/rtfkeywd.cxx1296
-rw-r--r--svtools/source/svrtf/rtfout.cxx10
-rw-r--r--svtools/source/svrtf/svparser.cxx60
-rw-r--r--svtools/source/table/defaultinputhandler.cxx4
-rw-r--r--svtools/source/table/gridtablerenderer.cxx36
-rw-r--r--svtools/source/table/tablecontrol.cxx6
-rw-r--r--svtools/source/table/tablecontrol_impl.cxx82
-rw-r--r--svtools/source/table/tablecontrol_impl.hxx76
-rw-r--r--svtools/source/table/tabledatawindow.cxx12
-rw-r--r--svtools/source/table/tablegeometry.cxx2
-rw-r--r--svtools/source/table/tablegeometry.hxx2
-rw-r--r--svtools/source/toolpanel/drawerlayouter.cxx6
-rw-r--r--svtools/source/toolpanel/dummypanel.cxx2
-rw-r--r--svtools/source/toolpanel/dummypanel.hxx2
-rw-r--r--svtools/source/toolpanel/paneldecklisteners.cxx2
-rw-r--r--svtools/source/toolpanel/paneldecklisteners.hxx2
-rw-r--r--svtools/source/toolpanel/paneltabbar.cxx2
-rw-r--r--svtools/source/toolpanel/paneltabbarpeer.cxx2
-rw-r--r--svtools/source/toolpanel/paneltabbarpeer.hxx2
-rw-r--r--svtools/source/toolpanel/refbase.cxx2
-rw-r--r--svtools/source/toolpanel/tabbargeometry.cxx4
-rw-r--r--svtools/source/toolpanel/tabbargeometry.hxx2
-rw-r--r--svtools/source/toolpanel/tabitemdescriptor.hxx2
-rw-r--r--svtools/source/toolpanel/tablayouter.cxx2
-rw-r--r--svtools/source/toolpanel/toolpanel.cxx2
-rw-r--r--svtools/source/toolpanel/toolpanel.src2
-rw-r--r--svtools/source/toolpanel/toolpanelcollection.cxx4
-rw-r--r--svtools/source/toolpanel/toolpanelcollection.hxx2
-rw-r--r--svtools/source/toolpanel/toolpaneldeck.cxx2
-rw-r--r--svtools/source/toolpanel/toolpaneldeckpeer.cxx2
-rw-r--r--svtools/source/toolpanel/toolpaneldeckpeer.hxx2
-rw-r--r--svtools/source/toolpanel/toolpaneldrawer.cxx10
-rw-r--r--svtools/source/toolpanel/toolpaneldrawer.hxx4
-rw-r--r--svtools/source/toolpanel/toolpaneldrawerpeer.cxx6
-rw-r--r--svtools/source/toolpanel/toolpaneldrawerpeer.hxx2
-rw-r--r--svtools/source/uno/addrtempuno.cxx16
-rw-r--r--svtools/source/uno/contextmenuhelper.cxx122
-rw-r--r--svtools/source/uno/framestatuslistener.cxx62
-rw-r--r--svtools/source/uno/generictoolboxcontroller.cxx8
-rw-r--r--svtools/source/uno/genericunodialog.cxx4
-rw-r--r--svtools/source/uno/miscservices.cxx38
-rw-r--r--svtools/source/uno/popupmenucontrollerbase.cxx84
-rw-r--r--svtools/source/uno/popupwindowcontroller.cxx8
-rw-r--r--svtools/source/uno/statusbarcontroller.cxx6
-rw-r--r--svtools/source/uno/svtxgridcontrol.cxx54
-rw-r--r--svtools/source/uno/svtxgridcontrol.hxx24
-rw-r--r--svtools/source/uno/toolboxcontroller.cxx26
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx68
-rw-r--r--svtools/source/uno/treecontrolpeer.hxx10
-rw-r--r--svtools/source/uno/unocontroltablemodel.cxx88
-rw-r--r--svtools/source/uno/unocontroltablemodel.hxx34
-rw-r--r--svtools/source/uno/unoevent.cxx48
-rw-r--r--svtools/source/uno/unoiface.cxx74
-rw-r--r--svtools/source/uno/unoimap.cxx20
-rw-r--r--svtools/source/uno/unowizard.hxx2
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx20
-rw-r--r--svtools/source/uno/wizard/wizardpagecontroller.hxx4
-rw-r--r--svtools/source/uno/wizard/wizardshell.cxx2
-rw-r--r--svtools/source/uno/wizard/wizardshell.hxx6
-rw-r--r--svtools/source/urlobj/inetimg.cxx8
-rw-r--r--svtools/util/hidother.src52
-rw-r--r--svtools/workben/browser.cxx64
-rw-r--r--svtools/workben/cui/loadlib.cxx4
-rw-r--r--svtools/workben/stest.cxx18
-rw-r--r--svtools/workben/svdem.cxx246
-rw-r--r--svtools/workben/toolpanel/toolpaneltest.cxx32
-rw-r--r--svtools/workben/treecontrol/treetest.cxx70
-rw-r--r--svtools/workben/unodialog/roadmapskeleton.cxx2
-rw-r--r--svtools/workben/unodialog/roadmapskeleton.hrc2
-rw-r--r--svtools/workben/unodialog/roadmapskeleton.hxx2
-rw-r--r--svtools/workben/unodialog/roadmapskeleton.src2
-rw-r--r--svtools/workben/unodialog/roadmapskeletonpages.cxx2
-rw-r--r--svtools/workben/unodialog/roadmapskeletonpages.hxx2
-rw-r--r--svtools/workben/unodialog/udlg_global.hrc2
-rw-r--r--svtools/workben/unodialog/udlg_module.cxx2
-rw-r--r--svtools/workben/unodialog/udlg_module.hxx2
-rw-r--r--svtools/workben/unodialog/udlg_services.cxx2
-rw-r--r--svtools/workben/unodialog/unodialogsample.cxx12
-rw-r--r--svtools/workben/urange.cxx2
-rw-r--r--toolkit/inc/layout/layout-post.hxx2
-rw-r--r--toolkit/inc/layout/layout-pre.hxx2
-rw-r--r--toolkit/inc/layout/layout.hxx2
-rw-r--r--toolkit/inc/pch/precompiled_toolkit.cxx2
-rw-r--r--toolkit/inc/pch/precompiled_toolkit.hxx2
-rw-r--r--toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx54
-rw-r--r--toolkit/inc/toolkit/awt/vclxbitmap.hxx44
-rw-r--r--toolkit/inc/toolkit/awt/vclxcontainer.hxx26
-rw-r--r--toolkit/inc/toolkit/awt/vclxdevice.hxx56
-rw-r--r--toolkit/inc/toolkit/awt/vclxfont.hxx54
-rw-r--r--toolkit/inc/toolkit/awt/vclxgraphics.hxx126
-rw-r--r--toolkit/inc/toolkit/awt/vclxmenu.hxx54
-rw-r--r--toolkit/inc/toolkit/awt/vclxpointer.hxx38
-rw-r--r--toolkit/inc/toolkit/awt/vclxprinter.hxx96
-rw-r--r--toolkit/inc/toolkit/awt/vclxregion.hxx62
-rw-r--r--toolkit/inc/toolkit/awt/vclxspinbutton.hxx2
-rw-r--r--toolkit/inc/toolkit/awt/vclxsystemdependentwindow.hxx24
-rw-r--r--toolkit/inc/toolkit/awt/vclxtoolkit.hxx54
-rw-r--r--toolkit/inc/toolkit/awt/vclxtopwindow.hxx16
-rw-r--r--toolkit/inc/toolkit/awt/vclxwindow.hxx26
-rw-r--r--toolkit/inc/toolkit/awt/vclxwindows.hxx354
-rw-r--r--toolkit/inc/toolkit/awt/xsimpleanimation.hxx2
-rw-r--r--toolkit/inc/toolkit/awt/xthrobber.hxx2
-rw-r--r--toolkit/inc/toolkit/controls/accessiblecontrolcontext.hxx20
-rw-r--r--toolkit/inc/toolkit/controls/dialogcontrol.hxx106
-rw-r--r--toolkit/inc/toolkit/controls/eventcontainer.hxx42
-rw-r--r--toolkit/inc/toolkit/controls/formattedcontrol.hxx28
-rw-r--r--toolkit/inc/toolkit/controls/geometrycontrolmodel.hxx50
-rw-r--r--toolkit/inc/toolkit/controls/geometrycontrolmodel_impl.hxx2
-rw-r--r--toolkit/inc/toolkit/controls/roadmapcontrol.hxx66
-rw-r--r--toolkit/inc/toolkit/controls/roadmapentry.hxx16
-rw-r--r--toolkit/inc/toolkit/controls/stdtabcontroller.hxx30
-rw-r--r--toolkit/inc/toolkit/controls/stdtabcontrollermodel.hxx54
-rw-r--r--toolkit/inc/toolkit/controls/tkscrollbar.hxx32
-rw-r--r--toolkit/inc/toolkit/controls/tksimpleanimation.hxx18
-rw-r--r--toolkit/inc/toolkit/controls/tkspinbutton.hxx18
-rw-r--r--toolkit/inc/toolkit/controls/tkthrobber.hxx18
-rw-r--r--toolkit/inc/toolkit/controls/unocontrol.hxx118
-rw-r--r--toolkit/inc/toolkit/controls/unocontrolbase.hxx42
-rw-r--r--toolkit/inc/toolkit/controls/unocontrolcontainer.hxx24
-rw-r--r--toolkit/inc/toolkit/controls/unocontrolcontainermodel.hxx22
-rw-r--r--toolkit/inc/toolkit/controls/unocontrolmodel.hxx68
-rw-r--r--toolkit/inc/toolkit/controls/unocontrols.hxx556
-rw-r--r--toolkit/inc/toolkit/dllapi.h2
-rw-r--r--toolkit/inc/toolkit/helper/accessibilityclient.hxx2
-rw-r--r--toolkit/inc/toolkit/helper/accessiblefactory.hxx2
-rw-r--r--toolkit/inc/toolkit/helper/convert.hxx4
-rw-r--r--toolkit/inc/toolkit/helper/emptyfontdescriptor.hxx14
-rw-r--r--toolkit/inc/toolkit/helper/externallock.hxx6
-rw-r--r--toolkit/inc/toolkit/helper/fixedhyperbase.hxx2
-rw-r--r--toolkit/inc/toolkit/helper/formpdfexport.hxx2
-rw-r--r--toolkit/inc/toolkit/helper/imagealign.hxx2
-rw-r--r--toolkit/inc/toolkit/helper/listenermultiplexer.hxx138
-rw-r--r--toolkit/inc/toolkit/helper/macros.hxx26
-rw-r--r--toolkit/inc/toolkit/helper/mutexandbroadcasthelper.hxx18
-rw-r--r--toolkit/inc/toolkit/helper/mutexhelper.hxx10
-rw-r--r--toolkit/inc/toolkit/helper/property.hxx288
-rw-r--r--toolkit/inc/toolkit/helper/servicenames.hxx2
-rw-r--r--toolkit/inc/toolkit/helper/throbberimpl.hxx6
-rw-r--r--toolkit/inc/toolkit/helper/tkresmgr.hxx4
-rw-r--r--toolkit/inc/toolkit/helper/unomemorystream.hxx34
-rw-r--r--toolkit/inc/toolkit/helper/unopropertyarrayhelper.hxx16
-rw-r--r--toolkit/inc/toolkit/helper/unowrapper.hxx56
-rw-r--r--toolkit/inc/toolkit/helper/vclunohelper.hxx58
-rw-r--r--toolkit/qa/complex/toolkit/CallbackClass.java6
-rwxr-xr-xtoolkit/qa/complex/toolkit/CheckAccessibleStatusBar.java2
-rwxr-xr-xtoolkit/qa/complex/toolkit/CheckAccessibleStatusBarItem.java2
-rw-r--r--toolkit/qa/complex/toolkit/CheckAsyncCallback.java12
-rwxr-xr-xtoolkit/qa/complex/toolkit/interface_tests/_XAccessibleComponent.java2
-rwxr-xr-xtoolkit/qa/complex/toolkit/interface_tests/_XAccessibleContext.java2
-rwxr-xr-xtoolkit/qa/complex/toolkit/interface_tests/_XAccessibleEventBroadcaster.java2
-rwxr-xr-xtoolkit/qa/complex/toolkit/interface_tests/_XAccessibleExtendedComponent.java2
-rwxr-xr-xtoolkit/qa/complex/toolkit/interface_tests/_XAccessibleText.java2
-rw-r--r--toolkit/qa/complex/toolkit/interface_tests/_XRequestCallback.java4
-rw-r--r--toolkit/qa/complex/xunitconversion/XUnitConversionTest.java16
-rw-r--r--toolkit/source/awt/asynccallback.cxx10
-rw-r--r--toolkit/source/awt/forward.hxx2
-rw-r--r--toolkit/source/awt/vclxaccessiblecomponent.cxx48
-rw-r--r--toolkit/source/awt/vclxbitmap.cxx8
-rw-r--r--toolkit/source/awt/vclxbutton.cxx2
-rw-r--r--toolkit/source/awt/vclxbutton.hxx2
-rw-r--r--toolkit/source/awt/vclxcontainer.cxx10
-rw-r--r--toolkit/source/awt/vclxdevice.cxx6
-rw-r--r--toolkit/source/awt/vclxdialog.cxx2
-rw-r--r--toolkit/source/awt/vclxdialog.hxx2
-rw-r--r--toolkit/source/awt/vclxfixedline.cxx2
-rw-r--r--toolkit/source/awt/vclxfixedline.hxx2
-rw-r--r--toolkit/source/awt/vclxfont.cxx14
-rw-r--r--toolkit/source/awt/vclxgraphics.cxx20
-rw-r--r--toolkit/source/awt/vclxmenu.cxx20
-rw-r--r--toolkit/source/awt/vclxplugin.cxx6
-rw-r--r--toolkit/source/awt/vclxplugin.hxx2
-rw-r--r--toolkit/source/awt/vclxpointer.cxx8
-rw-r--r--toolkit/source/awt/vclxprinter.cxx40
-rw-r--r--toolkit/source/awt/vclxregion.cxx8
-rw-r--r--toolkit/source/awt/vclxscroller.cxx2
-rw-r--r--toolkit/source/awt/vclxscroller.hxx2
-rw-r--r--toolkit/source/awt/vclxspinbutton.cxx30
-rw-r--r--toolkit/source/awt/vclxsplitter.cxx2
-rw-r--r--toolkit/source/awt/vclxsplitter.hxx2
-rw-r--r--toolkit/source/awt/vclxsystemdependentwindow.cxx8
-rw-r--r--toolkit/source/awt/vclxtabcontrol.cxx2
-rw-r--r--toolkit/source/awt/vclxtabcontrol.hxx2
-rw-r--r--toolkit/source/awt/vclxtabpage.hxx4
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx200
-rw-r--r--toolkit/source/awt/vclxtopwindow.cxx8
-rw-r--r--toolkit/source/awt/vclxwindow.cxx72
-rw-r--r--toolkit/source/awt/vclxwindow1.cxx6
-rw-r--r--toolkit/source/awt/vclxwindows.cxx126
-rw-r--r--toolkit/source/awt/xsimpleanimation.cxx8
-rw-r--r--toolkit/source/awt/xthrobber.cxx8
-rw-r--r--toolkit/source/awt/xthrobber.hrc2
-rw-r--r--toolkit/source/awt/xthrobber.src2
-rw-r--r--toolkit/source/controls/accessiblecontrolcontext.cxx12
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx60
-rw-r--r--toolkit/source/controls/eventcontainer.cxx22
-rw-r--r--toolkit/source/controls/formattedcontrol.cxx12
-rw-r--r--toolkit/source/controls/geometrycontrolmodel.cxx150
-rw-r--r--toolkit/source/controls/grid/defaultgridcolumnmodel.cxx6
-rw-r--r--toolkit/source/controls/grid/defaultgridcolumnmodel.hxx4
-rw-r--r--toolkit/source/controls/grid/defaultgriddatamodel.cxx30
-rw-r--r--toolkit/source/controls/grid/defaultgriddatamodel.hxx2
-rw-r--r--toolkit/source/controls/grid/gridcolumn.cxx4
-rw-r--r--toolkit/source/controls/grid/gridcolumn.hxx4
-rw-r--r--toolkit/source/controls/grid/gridcontrol.cxx30
-rw-r--r--toolkit/source/controls/grid/gridcontrol.hxx26
-rw-r--r--toolkit/source/controls/roadmapcontrol.cxx18
-rw-r--r--toolkit/source/controls/roadmapentry.cxx2
-rw-r--r--toolkit/source/controls/stdtabcontroller.cxx62
-rw-r--r--toolkit/source/controls/stdtabcontrollermodel.cxx40
-rw-r--r--toolkit/source/controls/tkscrollbar.cxx4
-rw-r--r--toolkit/source/controls/tksimpleanimation.cxx6
-rw-r--r--toolkit/source/controls/tkspinbutton.cxx26
-rw-r--r--toolkit/source/controls/tkthrobber.cxx6
-rw-r--r--toolkit/source/controls/tree/treecontrol.cxx18
-rw-r--r--toolkit/source/controls/tree/treecontrol.hxx14
-rw-r--r--toolkit/source/controls/tree/treedatamodel.cxx18
-rw-r--r--toolkit/source/controls/unocontrol.cxx112
-rw-r--r--toolkit/source/controls/unocontrolbase.cxx10
-rw-r--r--toolkit/source/controls/unocontrolcontainer.cxx40
-rw-r--r--toolkit/source/controls/unocontrolcontainermodel.cxx12
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx216
-rw-r--r--toolkit/source/controls/unocontrols.cxx268
-rw-r--r--toolkit/source/helper/accessibilityclient.cxx2
-rw-r--r--toolkit/source/helper/externallock.cxx4
-rw-r--r--toolkit/source/helper/fixedhyperbase.cxx4
-rw-r--r--toolkit/source/helper/formpdfexport.cxx6
-rw-r--r--toolkit/source/helper/imagealign.cxx2
-rw-r--r--toolkit/source/helper/listenermultiplexer.cxx130
-rw-r--r--toolkit/source/helper/property.cxx50
-rw-r--r--toolkit/source/helper/registerservices.cxx2
-rw-r--r--toolkit/source/helper/servicenames.cxx2
-rw-r--r--toolkit/source/helper/throbberimpl.cxx4
-rw-r--r--toolkit/source/helper/tkresmgr.cxx2
-rw-r--r--toolkit/source/helper/unomemorystream.cxx22
-rw-r--r--toolkit/source/helper/unopropertyarrayhelper.cxx30
-rw-r--r--toolkit/source/helper/unowrapper.cxx28
-rw-r--r--toolkit/source/helper/vclunohelper.cxx12
-rw-r--r--toolkit/source/layout/core/bin.cxx2
-rw-r--r--toolkit/source/layout/core/bin.hxx2
-rw-r--r--toolkit/source/layout/core/box-base.cxx6
-rw-r--r--toolkit/source/layout/core/box-base.hxx10
-rw-r--r--toolkit/source/layout/core/box.cxx2
-rw-r--r--toolkit/source/layout/core/box.hxx2
-rw-r--r--toolkit/source/layout/core/byteseq.cxx4
-rw-r--r--toolkit/source/layout/core/container.cxx4
-rw-r--r--toolkit/source/layout/core/container.hxx2
-rw-r--r--toolkit/source/layout/core/dialogbuttonhbox.cxx2
-rw-r--r--toolkit/source/layout/core/dialogbuttonhbox.hxx2
-rw-r--r--toolkit/source/layout/core/factory.cxx4
-rw-r--r--toolkit/source/layout/core/factory.hxx2
-rw-r--r--toolkit/source/layout/core/flow.cxx2
-rw-r--r--toolkit/source/layout/core/flow.hxx2
-rw-r--r--toolkit/source/layout/core/helper.cxx4
-rw-r--r--toolkit/source/layout/core/helper.hxx2
-rw-r--r--toolkit/source/layout/core/import.cxx4
-rw-r--r--toolkit/source/layout/core/import.hxx2
-rw-r--r--toolkit/source/layout/core/localized-string.cxx2
-rw-r--r--toolkit/source/layout/core/localized-string.hxx6
-rw-r--r--toolkit/source/layout/core/precompiled_xmlscript.hxx2
-rw-r--r--toolkit/source/layout/core/proplist.cxx2
-rw-r--r--toolkit/source/layout/core/proplist.hxx2
-rw-r--r--toolkit/source/layout/core/root.cxx4
-rw-r--r--toolkit/source/layout/core/root.hxx2
-rw-r--r--toolkit/source/layout/core/table.cxx2
-rw-r--r--toolkit/source/layout/core/table.hxx2
-rw-r--r--toolkit/source/layout/core/timer.cxx2
-rw-r--r--toolkit/source/layout/core/timer.hxx2
-rw-r--r--toolkit/source/layout/core/translate.cxx2
-rw-r--r--toolkit/source/layout/core/translate.hxx2
-rw-r--r--toolkit/source/layout/core/vcl.cxx2
-rw-r--r--toolkit/source/layout/core/vcl.hxx2
-rw-r--r--toolkit/source/layout/vcl/wbutton.cxx2
-rw-r--r--toolkit/source/layout/vcl/wcontainer.cxx2
-rw-r--r--toolkit/source/layout/vcl/wfield.cxx2
-rw-r--r--toolkit/source/layout/vcl/wrapper.cxx2
-rw-r--r--toolkit/source/layout/vcl/wrapper.hxx4
-rw-r--r--toolkit/test/accessibility/AccTreeNode.java36
-rwxr-xr-xtoolkit/test/accessibility/AccessibilityTree.java50
-rw-r--r--toolkit/test/accessibility/AccessibilityTreeModel.java32
-rw-r--r--toolkit/test/accessibility/AccessibilityTreeModelBase.java4
-rwxr-xr-xtoolkit/test/accessibility/AccessibilityWorkBench.java48
-rw-r--r--toolkit/test/accessibility/AccessibleActionHandler.java8
-rw-r--r--toolkit/test/accessibility/AccessibleActionNode.java10
-rw-r--r--toolkit/test/accessibility/AccessibleCellHandler.java2
-rw-r--r--toolkit/test/accessibility/AccessibleComponentHandler.java12
-rw-r--r--toolkit/test/accessibility/AccessibleContextHandler.java10
-rw-r--r--toolkit/test/accessibility/AccessibleEditableTextHandler.java2
-rw-r--r--toolkit/test/accessibility/AccessibleExtendedComponentHandler.java8
-rw-r--r--toolkit/test/accessibility/AccessibleHyperlinkHandler.java4
-rw-r--r--toolkit/test/accessibility/AccessibleHypertextHandler.java4
-rw-r--r--toolkit/test/accessibility/AccessibleImageHandler.java4
-rw-r--r--toolkit/test/accessibility/AccessibleRelationHandler.java12
-rw-r--r--toolkit/test/accessibility/AccessibleSelectionHandler.java32
-rw-r--r--toolkit/test/accessibility/AccessibleTableHandler.java2
-rw-r--r--toolkit/test/accessibility/AccessibleTextHandler.java184
-rw-r--r--toolkit/test/accessibility/AccessibleTreeCellRenderer.java8
-rw-r--r--toolkit/test/accessibility/AccessibleTreeHandler.java8
-rw-r--r--toolkit/test/accessibility/AccessibleTreeNode.java16
-rw-r--r--toolkit/test/accessibility/AccessibleUNOHandler.java6
-rwxr-xr-xtoolkit/test/accessibility/Canvas.java44
-rw-r--r--toolkit/test/accessibility/CanvasShape.java28
-rw-r--r--toolkit/test/accessibility/EventHandler.java4
-rw-r--r--toolkit/test/accessibility/EventQueue.java4
-rw-r--r--toolkit/test/accessibility/FrameActionListener.java4
-rw-r--r--toolkit/test/accessibility/GeometryEventHandler.java2
-rw-r--r--toolkit/test/accessibility/HelpWindow.java2
-rwxr-xr-xtoolkit/test/accessibility/InformationWriter.java90
-rw-r--r--toolkit/test/accessibility/MessageArea.java2
-rwxr-xr-xtoolkit/test/accessibility/MessageInterface.java2
-rw-r--r--toolkit/test/accessibility/NodeFactory.java4
-rw-r--r--toolkit/test/accessibility/NodeHandler.java12
-rw-r--r--toolkit/test/accessibility/NodeMap.java10
-rwxr-xr-xtoolkit/test/accessibility/OfficeConnection.java18
-rw-r--r--toolkit/test/accessibility/Options.java4
-rwxr-xr-xtoolkit/test/accessibility/Print.java2
-rw-r--r--toolkit/test/accessibility/QueuedListener.java8
-rw-r--r--toolkit/test/accessibility/QueuedTopWindowListener.java18
-rw-r--r--toolkit/test/accessibility/SelectionDialog.java16
-rwxr-xr-xtoolkit/test/accessibility/SimpleOffice.java28
-rw-r--r--toolkit/test/accessibility/TableEventHandler.java2
-rw-r--r--toolkit/test/accessibility/TextUpdateListener.java18
-rw-r--r--toolkit/test/accessibility/TopWindowListener.java6
-rw-r--r--toolkit/test/accessibility/VectorNode.java4
-rw-r--r--toolkit/test/accessibility/ov/ListeningObjectView.java4
-rw-r--r--toolkit/test/accessibility/ov/ObjectViewContainer.java4
-rw-r--r--toolkit/test/accessibility/ov/SelectionView.java6
-rw-r--r--toolkit/test/accessibility/ov/StateSetView.java2
-rw-r--r--toolkit/test/accessibility/ov/TextView.java2
-rw-r--r--toolkit/test/accessibility/tools/NameProvider.java2
-rw-r--r--toolkit/workben/controls.cxx76
-rw-r--r--toolkit/workben/layout/editor-normal.xml2
-rw-r--r--toolkit/workben/layout/editor.cxx20
-rw-r--r--toolkit/workben/layout/editor.hxx2
-rw-r--r--toolkit/workben/layout/editor.xml2
-rw-r--r--toolkit/workben/layout/non-interactable-containers.xml2
-rw-r--r--toolkit/workben/layout/plugin.cxx2
-rw-r--r--toolkit/workben/layout/plugin.hxx2
-rw-r--r--toolkit/workben/layout/recover.cxx2
-rw-r--r--toolkit/workben/layout/recover.hxx2
-rw-r--r--toolkit/workben/layout/recover.xml6
-rw-r--r--toolkit/workben/layout/simple-paragraph.cxx2
-rw-r--r--toolkit/workben/layout/simple-paragraph.hxx2
-rw-r--r--toolkit/workben/layout/sortdlg.cxx14
-rw-r--r--toolkit/workben/layout/sortdlg.hrc38
-rw-r--r--toolkit/workben/layout/sortdlg.hxx24
-rw-r--r--toolkit/workben/layout/sortdlg.src2
-rw-r--r--toolkit/workben/layout/test.cxx8
-rw-r--r--toolkit/workben/layout/tpsort.cxx288
-rw-r--r--toolkit/workben/layout/tpsort.hxx134
-rw-r--r--toolkit/workben/layout/uno.hxx2
-rw-r--r--toolkit/workben/layout/wordcountdialog.cxx2
-rw-r--r--toolkit/workben/layout/wordcountdialog.hxx4
-rw-r--r--toolkit/workben/layout/zoom.cxx10
-rw-r--r--toolkit/workben/layout/zoom.hrc2
-rw-r--r--toolkit/workben/layout/zoom.hxx40
-rw-r--r--toolkit/workben/layout/zoom_def.hxx8
-rw-r--r--toolkit/workben/unodialog.cxx22
-rw-r--r--tools/bootstrp/addexes/replace.cxx6
-rw-r--r--tools/bootstrp/addexes2/mkfilt.cxx44
-rw-r--r--tools/bootstrp/appdef.cxx2
-rw-r--r--tools/bootstrp/command.cxx26
-rw-r--r--tools/bootstrp/cppdep.cxx8
-rw-r--r--tools/bootstrp/cppdep.hxx26
-rw-r--r--tools/bootstrp/inimgr.cxx2
-rw-r--r--tools/bootstrp/iserver.cxx2
-rw-r--r--tools/bootstrp/md5.cxx26
-rw-r--r--tools/bootstrp/md5.hxx2
-rw-r--r--tools/bootstrp/mkcreate.cxx16
-rw-r--r--tools/bootstrp/prj.cxx38
-rw-r--r--tools/bootstrp/rscdep.cxx20
-rw-r--r--tools/bootstrp/so_checksum.cxx2
-rw-r--r--tools/bootstrp/sspretty.cxx4
-rw-r--r--tools/bootstrp/sstring.cxx14
-rw-r--r--tools/inc/bootstrp/appdef.hxx38
-rw-r--r--tools/inc/bootstrp/command.hxx78
-rw-r--r--tools/inc/bootstrp/inimgr.hxx8
-rw-r--r--tools/inc/bootstrp/listmacr.hxx36
-rw-r--r--tools/inc/bootstrp/mkcreate.hxx70
-rw-r--r--tools/inc/bootstrp/prj.hxx298
-rw-r--r--tools/inc/bootstrp/sstring.hxx30
-rw-r--r--tools/inc/impcont.hxx2
-rw-r--r--tools/inc/impstrg.hxx2
-rw-r--r--tools/inc/pch/precompiled_tools.cxx2
-rw-r--r--tools/inc/poly.h2
-rw-r--r--tools/inc/tools/StringListResource.hxx2
-rw-r--r--tools/inc/tools/agapi.hxx22
-rw-r--r--tools/inc/tools/agitem.hxx14
-rw-r--r--tools/inc/tools/appendunixshellword.hxx2
-rw-r--r--tools/inc/tools/b3dtrans.hxx90
-rw-r--r--tools/inc/tools/bigint.hxx2
-rw-r--r--tools/inc/tools/cachestr.hxx16
-rw-r--r--tools/inc/tools/chapi.hxx24
-rw-r--r--tools/inc/tools/color.hxx180
-rw-r--r--tools/inc/tools/config.hxx80
-rw-r--r--tools/inc/tools/contnr.hxx2
-rw-r--r--tools/inc/tools/date.hxx68
-rw-r--r--tools/inc/tools/datetime.hxx10
-rw-r--r--tools/inc/tools/debug.hxx4
-rw-r--r--tools/inc/tools/diagnose_ex.h2
-rw-r--r--tools/inc/tools/download.hxx16
-rw-r--r--tools/inc/tools/dynary.hxx8
-rw-r--r--tools/inc/tools/eacopier.hxx12
-rw-r--r--tools/inc/tools/errcode.hxx34
-rw-r--r--tools/inc/tools/errinf.hxx14
-rw-r--r--tools/inc/tools/extendapplicationenvironment.hxx2
-rw-r--r--tools/inc/tools/fldunit.hxx2
-rw-r--r--tools/inc/tools/fontenum.hxx28
-rw-r--r--tools/inc/tools/fract.hxx2
-rw-r--r--tools/inc/tools/fsys.hxx418
-rw-r--r--tools/inc/tools/gen.hxx270
-rw-r--r--tools/inc/tools/geninfo.hxx16
-rw-r--r--tools/inc/tools/getprocessworkingdir.hxx2
-rw-r--r--tools/inc/tools/globname.hxx2
-rw-r--r--tools/inc/tools/inetdef.hxx6
-rw-r--r--tools/inc/tools/inetmime.hxx2
-rw-r--r--tools/inc/tools/inetmsg.hxx2
-rw-r--r--tools/inc/tools/inetstrm.hxx2
-rw-r--r--tools/inc/tools/iparser.hxx8
-rw-r--r--tools/inc/tools/isofallback.hxx2
-rw-r--r--tools/inc/tools/line.hxx14
-rw-r--r--tools/inc/tools/link.hxx2
-rw-r--r--tools/inc/tools/list.hxx2
-rw-r--r--tools/inc/tools/mapunit.hxx4
-rw-r--r--tools/inc/tools/mempool.hxx2
-rw-r--r--tools/inc/tools/multisel.hxx104
-rw-r--r--tools/inc/tools/ownlist.hxx6
-rw-r--r--tools/inc/tools/pathutils.hxx2
-rw-r--r--tools/inc/tools/poly.hxx92
-rw-r--r--tools/inc/tools/postsys.h56
-rw-r--r--tools/inc/tools/postwin.h56
-rw-r--r--tools/inc/tools/postx.h2
-rw-r--r--tools/inc/tools/presys.h2
-rw-r--r--tools/inc/tools/prewin.h12
-rw-r--r--tools/inc/tools/prex.h36
-rw-r--r--tools/inc/tools/pstm.hxx26
-rw-r--r--tools/inc/tools/queue.hxx2
-rw-r--r--tools/inc/tools/rc.h266
-rw-r--r--tools/inc/tools/rc.hxx40
-rw-r--r--tools/inc/tools/rcid.h176
-rw-r--r--tools/inc/tools/ref.hxx176
-rw-r--r--tools/inc/tools/resary.hxx34
-rw-r--r--tools/inc/tools/resid.hxx62
-rw-r--r--tools/inc/tools/resmgr.hxx96
-rw-r--r--tools/inc/tools/rtti.hxx4
-rw-r--r--tools/inc/tools/shl.hxx132
-rw-r--r--tools/inc/tools/simplerm.hxx16
-rw-r--r--tools/inc/tools/solar.h192
-rw-r--r--tools/inc/tools/solarmutex.hxx2
-rw-r--r--tools/inc/tools/stack.hxx6
-rw-r--r--tools/inc/tools/stream.hxx552
-rw-r--r--tools/inc/tools/string.hxx474
-rw-r--r--tools/inc/tools/svborder.hxx4
-rw-r--r--tools/inc/tools/svlibrary.hxx2
-rw-r--r--tools/inc/tools/svwin.h2
-rw-r--r--tools/inc/tools/table.hxx142
-rw-r--r--tools/inc/tools/tempfile.hxx2
-rw-r--r--tools/inc/tools/tenccvt.hxx2
-rw-r--r--tools/inc/tools/testtoolloader.hxx2
-rw-r--r--tools/inc/tools/time.hxx64
-rw-r--r--tools/inc/tools/tools.h2
-rw-r--r--tools/inc/tools/toolsdllapi.h8
-rw-r--r--tools/inc/tools/unqid.hxx2
-rw-r--r--tools/inc/tools/unqidx.hxx4
-rw-r--r--tools/inc/tools/urlkeys.hxx74
-rw-r--r--tools/inc/tools/urlobj.hxx20
-rw-r--r--tools/inc/tools/vcompat.hxx24
-rw-r--r--tools/inc/tools/vector2d.hxx82
-rw-r--r--tools/inc/tools/weakbase.h12
-rw-r--r--tools/inc/tools/weakbase.hxx8
-rw-r--r--tools/inc/tools/wintypes.hxx372
-rw-r--r--tools/inc/tools/wldcrd.hxx2
-rw-r--r--tools/inc/tools/zcodec.hxx102
-rw-r--r--tools/inc/toolsin.hxx10
-rw-r--r--tools/os2/inc/dll.hxx2
-rw-r--r--tools/os2/source/dll/toolsdll.cxx2
-rw-r--r--tools/qa/test_pathutils.cxx2
-rw-r--r--tools/qa/version.map2
-rw-r--r--tools/source/communi/geninfo.cxx14
-rw-r--r--tools/source/communi/parser.cxx8
-rw-r--r--tools/source/datetime/datetime.cxx12
-rw-r--r--tools/source/datetime/tdate.cxx62
-rw-r--r--tools/source/datetime/ttime.cxx100
-rw-r--r--tools/source/debug/debug.cxx4
-rw-r--r--tools/source/debug/stcktree.cxx50
-rw-r--r--tools/source/fsys/comdep.cxx2
-rw-r--r--tools/source/fsys/comdep.hxx28
-rw-r--r--tools/source/fsys/dirent.cxx4
-rw-r--r--tools/source/fsys/filecopy.cxx36
-rw-r--r--tools/source/fsys/fstat.cxx28
-rw-r--r--tools/source/fsys/os2.cxx22
-rw-r--r--tools/source/fsys/os2.hxx4
-rw-r--r--tools/source/fsys/tdir.cxx6
-rw-r--r--tools/source/fsys/tempfile.cxx2
-rw-r--r--tools/source/fsys/unx.cxx56
-rw-r--r--tools/source/fsys/unx.hxx4
-rw-r--r--tools/source/fsys/urlobj.cxx266
-rw-r--r--tools/source/fsys/wldcrd.cxx4
-rw-r--r--tools/source/fsys/wntmsc.cxx10
-rw-r--r--tools/source/fsys/wntmsc.hxx4
-rw-r--r--tools/source/generic/b3dtrans.cxx10
-rw-r--r--tools/source/generic/bigint.cxx2
-rw-r--r--tools/source/generic/color.cxx140
-rw-r--r--tools/source/generic/config.cxx198
-rw-r--r--tools/source/generic/fract.cxx8
-rw-r--r--tools/source/generic/gen.cxx44
-rw-r--r--tools/source/generic/line.cxx28
-rw-r--r--tools/source/generic/link.cxx2
-rw-r--r--tools/source/generic/poly.cxx324
-rw-r--r--tools/source/generic/poly2.cxx58
-rw-r--r--tools/source/generic/svborder.cxx12
-rw-r--r--tools/source/generic/toolsin.cxx6
-rw-r--r--tools/source/inet/inetmime.cxx52
-rw-r--r--tools/source/inet/inetmsg.cxx12
-rw-r--r--tools/source/inet/inetstrm.cxx2
-rw-r--r--tools/source/memtools/contnr.cxx426
-rw-r--r--tools/source/memtools/mempool.cxx2
-rw-r--r--tools/source/memtools/multisel.cxx36
-rw-r--r--tools/source/memtools/table.cxx16
-rw-r--r--tools/source/memtools/unqidx.cxx10
-rw-r--r--tools/source/misc/appendunixshellword.cxx2
-rw-r--r--tools/source/misc/extendapplicationenvironment.cxx2
-rw-r--r--tools/source/misc/getprocessworkingdir.cxx2
-rw-r--r--tools/source/misc/pathutils.cxx2
-rw-r--r--tools/source/misc/solarmutex.cxx2
-rw-r--r--tools/source/rc/isofallback.cxx2
-rw-r--r--tools/source/rc/rc.cxx2
-rw-r--r--tools/source/rc/resary.cxx4
-rw-r--r--tools/source/rc/resmgr.cxx28
-rw-r--r--tools/source/ref/errinf.cxx4
-rw-r--r--tools/source/ref/globname.cxx40
-rw-r--r--tools/source/ref/pstm.cxx126
-rw-r--r--tools/source/ref/ref.cxx6
-rw-r--r--tools/source/solar/solar.c202
-rw-r--r--tools/source/stream/cachestr.cxx20
-rw-r--r--tools/source/stream/stream.cxx6
-rw-r--r--tools/source/stream/strmos2.cxx2
-rw-r--r--tools/source/stream/strmsys.cxx2
-rw-r--r--tools/source/stream/strmunx.cxx30
-rw-r--r--tools/source/stream/strmwnt.cxx4
-rw-r--r--tools/source/stream/vcompat.cxx2
-rw-r--r--tools/source/string/debugprint.cxx2
-rw-r--r--tools/source/string/strascii.cxx2
-rw-r--r--tools/source/string/strcvt.cxx130
-rw-r--r--tools/source/string/strimp.cxx148
-rw-r--r--tools/source/string/strucvt.cxx8
-rw-r--r--tools/source/string/tenccvt.cxx2
-rw-r--r--tools/source/string/tstring.cxx16
-rw-r--r--tools/source/string/tustring.cxx10
-rw-r--r--tools/source/testtoolloader/testtoolloader.cxx12
-rw-r--r--tools/source/zcodec/zcodec.cxx78
-rw-r--r--tools/test/export.map2
-rw-r--r--tools/test/tests.cxx2
-rw-r--r--tools/unx/source/dll/toolsdll.cxx2
-rw-r--r--tools/win/inc/dll.hxx2
-rw-r--r--tools/win/inc/parser.hxx4
-rw-r--r--tools/win/inc/shellex.h64
-rw-r--r--tools/win/inc/shutil.h176
-rw-r--r--tools/win/inc/toolsdll.hxx2
-rw-r--r--tools/win/inc/winshell.hxx116
-rw-r--r--tools/win/source/dll/toolsdll.cxx2
-rw-r--r--tools/workben/fstest.cxx4
-rw-r--r--tools/workben/hashtbl.cxx124
-rw-r--r--tools/workben/hashtbl.hxx96
-rw-r--r--tools/workben/helloworld.c2
-rw-r--r--tools/workben/inetmimetest.cxx2
-rw-r--r--tools/workben/solar.c68
-rw-r--r--tools/workben/tldem.cxx4
-rw-r--r--tools/workben/urltest.cxx4
-rw-r--r--ucbhelper/inc/pch/precompiled_ucbhelper.cxx2
-rw-r--r--ucbhelper/inc/pch/precompiled_ucbhelper.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/activedatasink.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/activedatastreamer.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/cancelcommandexecution.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/commandenvironment.hxx6
-rw-r--r--ucbhelper/inc/ucbhelper/commandenvironmentproxy.hxx6
-rw-r--r--ucbhelper/inc/ucbhelper/configurationkeys.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/content.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/contentbroker.hxx46
-rw-r--r--ucbhelper/inc/ucbhelper/contenthelper.hxx42
-rw-r--r--ucbhelper/inc/ucbhelper/contentidentifier.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/contentinfo.hxx18
-rw-r--r--ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/handleinteractionrequest.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/interactionrequest.hxx6
-rw-r--r--ucbhelper/inc/ucbhelper/interceptedinteraction.hxx112
-rw-r--r--ucbhelper/inc/ucbhelper/macros.hxx678
-rw-r--r--ucbhelper/inc/ucbhelper/propertyvalueset.hxx20
-rw-r--r--ucbhelper/inc/ucbhelper/providerhelper.hxx48
-rw-r--r--ucbhelper/inc/ucbhelper/proxydecider.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/resultset.hxx4
-rw-r--r--ucbhelper/inc/ucbhelper/resultsethelper.hxx18
-rw-r--r--ucbhelper/inc/ucbhelper/resultsetmetadata.hxx164
-rw-r--r--ucbhelper/inc/ucbhelper/simpleauthenticationrequest.hxx6
-rw-r--r--ucbhelper/inc/ucbhelper/simplecertificatevalidationrequest.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/simpleinteractionrequest.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/simpleioerrorrequest.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/simplenameclashresolverequest.hxx2
-rw-r--r--ucbhelper/inc/ucbhelper/ucbhelperdllapi.h8
-rw-r--r--ucbhelper/source/client/activedatasink.cxx2
-rw-r--r--ucbhelper/source/client/activedatastreamer.cxx2
-rw-r--r--ucbhelper/source/client/commandenvironment.cxx6
-rw-r--r--ucbhelper/source/client/content.cxx2
-rw-r--r--ucbhelper/source/client/contentbroker.cxx6
-rw-r--r--ucbhelper/source/client/fileidentifierconverter.cxx2
-rw-r--r--ucbhelper/source/client/interceptedinteraction.cxx36
-rw-r--r--ucbhelper/source/client/proxydecider.cxx10
-rw-r--r--ucbhelper/source/provider/cancelcommandexecution.cxx2
-rw-r--r--ucbhelper/source/provider/commandenvironmentproxy.cxx6
-rw-r--r--ucbhelper/source/provider/configureucb.cxx2
-rw-r--r--ucbhelper/source/provider/contenthelper.cxx74
-rw-r--r--ucbhelper/source/provider/contentidentifier.cxx8
-rw-r--r--ucbhelper/source/provider/contentinfo.cxx38
-rw-r--r--ucbhelper/source/provider/handleinteractionrequest.cxx2
-rw-r--r--ucbhelper/source/provider/interactionrequest.cxx12
-rw-r--r--ucbhelper/source/provider/propertyvalueset.cxx154
-rw-r--r--ucbhelper/source/provider/provconf.cxx4
-rw-r--r--ucbhelper/source/provider/provconf.hxx2
-rw-r--r--ucbhelper/source/provider/providerhelper.cxx84
-rw-r--r--ucbhelper/source/provider/registerucb.cxx2
-rw-r--r--ucbhelper/source/provider/resultset.cxx102
-rw-r--r--ucbhelper/source/provider/resultsethelper.cxx32
-rw-r--r--ucbhelper/source/provider/resultsetmetadata.cxx34
-rw-r--r--ucbhelper/source/provider/simplecertificatevalidationrequest.cxx8
-rw-r--r--ucbhelper/source/provider/simpleinteractionrequest.cxx2
-rw-r--r--ucbhelper/source/provider/simpleioerrorrequest.cxx2
-rw-r--r--ucbhelper/source/provider/simplenameclashresolverequest.cxx2
-rw-r--r--ucbhelper/util/ucbhelper.xml8
-rw-r--r--ucbhelper/workben/myucp/myucp_content.cxx24
-rw-r--r--ucbhelper/workben/myucp/myucp_content.hxx8
-rw-r--r--ucbhelper/workben/myucp/myucp_contentcaps.cxx6
-rw-r--r--ucbhelper/workben/myucp/myucp_datasupplier.cxx36
-rw-r--r--ucbhelper/workben/myucp/myucp_datasupplier.hxx2
-rw-r--r--ucbhelper/workben/myucp/myucp_provider.cxx2
-rw-r--r--ucbhelper/workben/myucp/myucp_provider.hxx6
-rw-r--r--ucbhelper/workben/myucp/myucp_resultset.cxx2
-rw-r--r--ucbhelper/workben/myucp/myucp_resultset.hxx2
-rw-r--r--ucbhelper/workben/myucp/myucp_services.cxx2
-rw-r--r--ucbhelper/workben/ucbexplorer/ucbexplorer.cxx2
-rw-r--r--ucbhelper/workben/ucbexplorer/ucbexplorer.hrc36
-rw-r--r--ucbhelper/workben/ucbexplorer/ucbexplorer.src2
-rw-r--r--unotools/inc/pch/precompiled_unotools.cxx2
-rw-r--r--unotools/inc/pch/precompiled_unotools.hxx2
-rw-r--r--unotools/inc/unotools/accelcfg.hxx4
-rw-r--r--unotools/inc/unotools/accessiblerelationsethelper.hxx18
-rw-r--r--unotools/inc/unotools/accessiblestatesethelper.hxx22
-rw-r--r--unotools/inc/unotools/atom.hxx2
-rw-r--r--unotools/inc/unotools/bootstrap.hxx2
-rw-r--r--unotools/inc/unotools/cacheoptions.hxx90
-rw-r--r--unotools/inc/unotools/calendarwrapper.hxx10
-rw-r--r--unotools/inc/unotools/charclass.hxx90
-rw-r--r--unotools/inc/unotools/cmdoptions.hxx92
-rw-r--r--unotools/inc/unotools/collatorwrapper.hxx2
-rw-r--r--unotools/inc/unotools/compatibility.hxx96
-rw-r--r--unotools/inc/unotools/componentresmodule.hxx2
-rw-r--r--unotools/inc/unotools/configitem.hxx6
-rw-r--r--unotools/inc/unotools/configmgr.hxx2
-rw-r--r--unotools/inc/unotools/confignode.hxx70
-rw-r--r--unotools/inc/unotools/configpathes.hxx36
-rw-r--r--unotools/inc/unotools/configvaluecontainer.hxx24
-rw-r--r--unotools/inc/unotools/datetime.hxx4
-rw-r--r--unotools/inc/unotools/defaultoptions.hxx6
-rw-r--r--unotools/inc/unotools/desktopterminationobserver.hxx2
-rw-r--r--unotools/inc/unotools/digitgroupingiterator.hxx4
-rw-r--r--unotools/inc/unotools/docinfohelper.hxx4
-rw-r--r--unotools/inc/unotools/dynamicmenuoptions.hxx74
-rw-r--r--unotools/inc/unotools/eventcfg.hxx36
-rw-r--r--unotools/inc/unotools/eventlisteneradapter.hxx10
-rw-r--r--unotools/inc/unotools/extendedsecurityoptions.hxx74
-rw-r--r--unotools/inc/unotools/fltrcfg.hxx10
-rw-r--r--unotools/inc/unotools/fontcfg.hxx36
-rw-r--r--unotools/inc/unotools/fontcvt.hxx4
-rw-r--r--unotools/inc/unotools/fontdefs.hxx6
-rw-r--r--unotools/inc/unotools/fontoptions.hxx92
-rw-r--r--unotools/inc/unotools/historyoptions.hxx158
-rw-r--r--unotools/inc/unotools/historyoptions_const.hxx2
-rw-r--r--unotools/inc/unotools/idhelper.hxx146
-rw-r--r--unotools/inc/unotools/inetoptions.hxx2
-rw-r--r--unotools/inc/unotools/internaloptions.hxx96
-rw-r--r--unotools/inc/unotools/intlwrapper.hxx4
-rw-r--r--unotools/inc/unotools/itemholderbase.hxx2
-rw-r--r--unotools/inc/unotools/javaoptions.hxx2
-rw-r--r--unotools/inc/unotools/lingucfg.hxx34
-rw-r--r--unotools/inc/unotools/linguprops.hxx86
-rw-r--r--unotools/inc/unotools/localedatawrapper.hxx116
-rw-r--r--unotools/inc/unotools/localfilehelper.hxx2
-rw-r--r--unotools/inc/unotools/localisationoptions.hxx96
-rw-r--r--unotools/inc/unotools/loghelper.hxx2
-rw-r--r--unotools/inc/unotools/misccfg.hxx18
-rw-r--r--unotools/inc/unotools/moduleoptions.hxx56
-rw-r--r--unotools/inc/unotools/nativenumberwrapper.hxx6
-rw-r--r--unotools/inc/unotools/numberformatcodewrapper.hxx12
-rw-r--r--unotools/inc/unotools/options.hxx4
-rw-r--r--unotools/inc/unotools/optionsdlg.hxx2
-rw-r--r--unotools/inc/unotools/pathoptions.hxx98
-rw-r--r--unotools/inc/unotools/printwarningoptions.hxx2
-rw-r--r--unotools/inc/unotools/processfactory.hxx6
-rw-r--r--unotools/inc/unotools/progresshandlerwrap.hxx8
-rw-r--r--unotools/inc/unotools/propertysethelper.hxx2
-rw-r--r--unotools/inc/unotools/propertysetinfo.hxx2
-rw-r--r--unotools/inc/unotools/querydeep.hxx186
-rw-r--r--unotools/inc/unotools/readwritemutexguard.hxx2
-rw-r--r--unotools/inc/unotools/regoptions.hxx22
-rw-r--r--unotools/inc/unotools/regpathhelper.hxx18
-rw-r--r--unotools/inc/unotools/saveopt.hxx10
-rw-r--r--unotools/inc/unotools/searchopt.hxx114
-rw-r--r--unotools/inc/unotools/securityoptions.hxx164
-rw-r--r--unotools/inc/unotools/sharedunocomponent.hxx2
-rw-r--r--unotools/inc/unotools/sourceviewconfig.hxx2
-rw-r--r--unotools/inc/unotools/startoptions.hxx2
-rw-r--r--unotools/inc/unotools/streamhelper.hxx30
-rw-r--r--unotools/inc/unotools/streamsection.hxx32
-rw-r--r--unotools/inc/unotools/streamwrap.hxx34
-rw-r--r--unotools/inc/unotools/syslocale.hxx8
-rw-r--r--unotools/inc/unotools/syslocaleoptions.hxx6
-rw-r--r--unotools/inc/unotools/tempfile.hxx2
-rw-r--r--unotools/inc/unotools/textsearch.hxx54
-rw-r--r--unotools/inc/unotools/transliterationwrapper.hxx6
-rw-r--r--unotools/inc/unotools/ucbhelper.hxx10
-rw-r--r--unotools/inc/unotools/ucblockbytes.hxx6
-rw-r--r--unotools/inc/unotools/ucbstreamhelper.hxx2
-rw-r--r--unotools/inc/unotools/undoopt.hxx2
-rw-r--r--unotools/inc/unotools/unotoolsdllapi.h8
-rw-r--r--unotools/inc/unotools/unotunnelhelper.hxx4
-rw-r--r--unotools/inc/unotools/useroptions.hxx106
-rw-r--r--unotools/inc/unotools/useroptions_const.hxx2
-rw-r--r--unotools/inc/unotools/viewoptions.hxx144
-rw-r--r--unotools/inc/unotools/workingsetoptions.hxx78
-rw-r--r--unotools/inc/unotools/xmlaccelcfg.hxx14
-rw-r--r--unotools/qa/complex/tempfile/TempFileTest.java2
-rw-r--r--unotools/qa/complex/tempfile/TempFileUnitTest.java14
-rw-r--r--unotools/qa/complex/tempfile/Test01.java18
-rw-r--r--unotools/qa/complex/tempfile/Test02.java16
-rw-r--r--unotools/qa/complex/tempfile/TestHelper.java28
-rw-r--r--unotools/source/accessibility/accessiblerelationsethelper.cxx10
-rw-r--r--unotools/source/accessibility/accessiblestatesethelper.cxx12
-rw-r--r--unotools/source/config/accelcfg.cxx6
-rw-r--r--unotools/source/config/bootstrap.cxx42
-rw-r--r--unotools/source/config/cacheoptions.cxx154
-rw-r--r--unotools/source/config/cmdoptions.cxx158
-rw-r--r--unotools/source/config/compatibility.cxx198
-rw-r--r--unotools/source/config/configitem.cxx150
-rw-r--r--unotools/source/config/configmgr.cxx26
-rw-r--r--unotools/source/config/confignode.cxx6
-rw-r--r--unotools/source/config/configpathes.cxx22
-rw-r--r--unotools/source/config/configvaluecontainer.cxx58
-rw-r--r--unotools/source/config/defaultoptions.cxx182
-rw-r--r--unotools/source/config/docinfohelper.cxx2
-rw-r--r--unotools/source/config/dynamicmenuoptions.cxx112
-rw-r--r--unotools/source/config/eventcfg.cxx20
-rw-r--r--unotools/source/config/extendedsecurityoptions.cxx184
-rw-r--r--unotools/source/config/fltrcfg.cxx128
-rw-r--r--unotools/source/config/fontcfg.cxx14
-rw-r--r--unotools/source/config/fontoptions.cxx198
-rw-r--r--unotools/source/config/historyoptions.cxx2
-rw-r--r--unotools/source/config/inetoptions.cxx2
-rw-r--r--unotools/source/config/internaloptions.cxx292
-rw-r--r--unotools/source/config/itemholder1.cxx2
-rw-r--r--unotools/source/config/itemholder1.hxx2
-rw-r--r--unotools/source/config/javaoptions.cxx2
-rw-r--r--unotools/source/config/lingucfg.cxx56
-rw-r--r--unotools/source/config/localisationoptions.cxx176
-rw-r--r--unotools/source/config/misccfg.cxx58
-rw-r--r--unotools/source/config/moduleoptions.cxx38
-rw-r--r--unotools/source/config/options.cxx2
-rw-r--r--unotools/source/config/optionsdlg.cxx2
-rw-r--r--unotools/source/config/optionsdrawinglayer.cxx404
-rw-r--r--unotools/source/config/pathoptions.cxx286
-rw-r--r--unotools/source/config/printwarningoptions.cxx108
-rw-r--r--unotools/source/config/regoptions.cxx90
-rw-r--r--unotools/source/config/saveopt.cxx2
-rw-r--r--unotools/source/config/searchopt.cxx80
-rw-r--r--unotools/source/config/securityoptions.cxx362
-rw-r--r--unotools/source/config/sourceviewconfig.cxx4
-rw-r--r--unotools/source/config/startoptions.cxx182
-rw-r--r--unotools/source/config/syslocaleoptions.cxx40
-rw-r--r--unotools/source/config/undoopt.cxx2
-rw-r--r--unotools/source/config/useroptions.cxx44
-rw-r--r--unotools/source/config/viewoptions.cxx120
-rw-r--r--unotools/source/config/workingsetoptions.cxx148
-rw-r--r--unotools/source/config/xmlaccelcfg.cxx26
-rw-r--r--unotools/source/i18n/calendarwrapper.cxx4
-rw-r--r--unotools/source/i18n/charclass.cxx6
-rw-r--r--unotools/source/i18n/collatorwrapper.cxx2
-rw-r--r--unotools/source/i18n/intlwrapper.cxx2
-rw-r--r--unotools/source/i18n/localedatawrapper.cxx98
-rw-r--r--unotools/source/i18n/nativenumberwrapper.cxx2
-rw-r--r--unotools/source/i18n/numberformatcodewrapper.cxx4
-rw-r--r--unotools/source/i18n/readwritemutexguard.cxx2
-rw-r--r--unotools/source/i18n/textsearch.cxx16
-rw-r--r--unotools/source/i18n/transliterationwrapper.cxx6
-rw-r--r--unotools/source/misc/atom.cxx22
-rw-r--r--unotools/source/misc/componentresmodule.cxx16
-rw-r--r--unotools/source/misc/datetime.cxx10
-rw-r--r--unotools/source/misc/desktopterminationobserver.cxx4
-rw-r--r--unotools/source/misc/eventlisteneradapter.cxx18
-rw-r--r--unotools/source/misc/fontcvt.cxx2
-rw-r--r--unotools/source/misc/fontdefs.cxx2
-rw-r--r--unotools/source/misc/sharedunocomponent.cxx6
-rw-r--r--unotools/source/misc/syslocale.cxx12
-rw-r--r--unotools/source/processfactory/componentfactory.cxx4
-rw-r--r--unotools/source/processfactory/processfactory.cxx6
-rw-r--r--unotools/source/property/propertysethelper.cxx4
-rw-r--r--unotools/source/property/propertysetinfo.cxx2
-rw-r--r--unotools/source/streaming/streamhelper.cxx2
-rw-r--r--unotools/source/streaming/streamwrap.cxx10
-rw-r--r--unotools/source/ucbhelper/XTempFile.hxx36
-rw-r--r--unotools/source/ucbhelper/localfilehelper.cxx2
-rw-r--r--unotools/source/ucbhelper/progresshandlerwrap.cxx6
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx10
-rw-r--r--unotools/source/ucbhelper/ucbhelper.cxx2
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx2
-rw-r--r--unotools/source/ucbhelper/ucbstreamhelper.cxx2
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx10
-rw-r--r--vcl/aqua/inc/aqua11yfactory.h4
-rw-r--r--vcl/aqua/inc/aqua11yfocustracker.hxx26
-rw-r--r--vcl/aqua/inc/aqua11ylistener.hxx12
-rw-r--r--vcl/aqua/inc/aqua11ywrapper.h2
-rw-r--r--vcl/aqua/inc/aquaprintview.h6
-rw-r--r--vcl/aqua/inc/aquavclevents.hxx2
-rw-r--r--vcl/aqua/inc/aquavcltypes.h2
-rw-r--r--vcl/aqua/inc/keyboardfocuslistener.hxx2
-rw-r--r--vcl/aqua/inc/salatsuifontutils.hxx10
-rw-r--r--vcl/aqua/inc/salbmp.h56
-rw-r--r--vcl/aqua/inc/salcolorutils.hxx4
-rw-r--r--vcl/aqua/inc/salconst.h2
-rw-r--r--vcl/aqua/inc/saldata.hxx36
-rw-r--r--vcl/aqua/inc/salfontutils.hxx4
-rw-r--r--vcl/aqua/inc/salframe.h122
-rw-r--r--vcl/aqua/inc/salframeview.h14
-rw-r--r--vcl/aqua/inc/salgdi.h212
-rw-r--r--vcl/aqua/inc/salinst.h88
-rw-r--r--vcl/aqua/inc/salmathutils.hxx6
-rw-r--r--vcl/aqua/inc/salmenu.h12
-rw-r--r--vcl/aqua/inc/salnativewidgets.h6
-rw-r--r--vcl/aqua/inc/salnsmenu.h2
-rw-r--r--vcl/aqua/inc/salnstimer.h2
-rw-r--r--vcl/aqua/inc/salobj.h40
-rw-r--r--vcl/aqua/inc/salprn.h82
-rw-r--r--vcl/aqua/inc/salsys.h2
-rw-r--r--vcl/aqua/inc/saltimer.h4
-rw-r--r--vcl/aqua/inc/salvd.h8
-rw-r--r--vcl/aqua/inc/svsys.h2
-rw-r--r--vcl/aqua/inc/vclnsapp.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11yactionwrapper.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ycomponentwrapper.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11yfocuslistener.cxx22
-rw-r--r--vcl/aqua/source/a11y/aqua11yfocuslistener.hxx12
-rw-r--r--vcl/aqua/source/a11y/aqua11yfocustracker.cxx46
-rw-r--r--vcl/aqua/source/a11y/aqua11ylistener.cxx40
-rw-r--r--vcl/aqua/source/a11y/aqua11yrolehelper.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11yselectionwrapper.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ytablewrapper.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ytextattributeswrapper.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ytextwrapper.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11yutil.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11yvaluewrapper.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrapperbutton.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrappercheckbox.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrappercombobox.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrappergroup.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrapperlist.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrapperradiobutton.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrapperradiogroup.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrapperrow.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrapperscrollarea.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrapperscrollbar.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrappersplitter.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrapperstatictext.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrappertabgroup.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrappertextarea.h2
-rw-r--r--vcl/aqua/source/a11y/aqua11ywrappertoolbar.h2
-rw-r--r--vcl/aqua/source/a11y/documentfocuslistener.cxx62
-rw-r--r--vcl/aqua/source/a11y/documentfocuslistener.hxx10
-rw-r--r--vcl/aqua/source/app/saldata.cxx10
-rw-r--r--vcl/aqua/source/app/salinst.cxx8
-rw-r--r--vcl/aqua/source/app/salsys.cxx6
-rw-r--r--vcl/aqua/source/app/saltimer.cxx2
-rw-r--r--vcl/aqua/source/dtrans/DataFlavorMapping.cxx44
-rw-r--r--vcl/aqua/source/dtrans/DataFlavorMapping.hxx22
-rw-r--r--vcl/aqua/source/dtrans/DragActionConversion.cxx10
-rw-r--r--vcl/aqua/source/dtrans/DragActionConversion.hxx6
-rw-r--r--vcl/aqua/source/dtrans/DragSource.cxx46
-rw-r--r--vcl/aqua/source/dtrans/DragSource.hxx12
-rw-r--r--vcl/aqua/source/dtrans/DragSourceContext.cxx2
-rw-r--r--vcl/aqua/source/dtrans/DragSourceContext.hxx10
-rw-r--r--vcl/aqua/source/dtrans/DropTarget.cxx86
-rw-r--r--vcl/aqua/source/dtrans/DropTarget.hxx10
-rw-r--r--vcl/aqua/source/dtrans/HtmlFmtFlt.cxx64
-rw-r--r--vcl/aqua/source/dtrans/HtmlFmtFlt.hxx2
-rw-r--r--vcl/aqua/source/dtrans/OSXTransferable.cxx30
-rw-r--r--vcl/aqua/source/dtrans/OSXTransferable.hxx16
-rw-r--r--vcl/aqua/source/dtrans/PictToBmpFlt.cxx44
-rw-r--r--vcl/aqua/source/dtrans/PictToBmpFlt.hxx10
-rw-r--r--vcl/aqua/source/dtrans/aqua_clipboard.cxx80
-rw-r--r--vcl/aqua/source/dtrans/aqua_clipboard.hxx40
-rw-r--r--vcl/aqua/source/dtrans/aqua_service.cxx16
-rw-r--r--vcl/aqua/source/dtrans/service_entry.cxx2
-rw-r--r--vcl/aqua/source/dtrans/test_aquacb.cxx28
-rw-r--r--vcl/aqua/source/gdi/salatslayout.cxx126
-rw-r--r--vcl/aqua/source/gdi/salatsuifontutils.cxx18
-rw-r--r--vcl/aqua/source/gdi/salbmp.cxx108
-rw-r--r--vcl/aqua/source/gdi/salcolorutils.cxx2
-rw-r--r--vcl/aqua/source/gdi/salgdi.cxx102
-rw-r--r--vcl/aqua/source/gdi/salgdiutils.cxx16
-rw-r--r--vcl/aqua/source/gdi/salmathutils.cxx26
-rw-r--r--vcl/aqua/source/gdi/salnativewidgets.cxx286
-rw-r--r--vcl/aqua/source/gdi/salprn.cxx98
-rw-r--r--vcl/aqua/source/gdi/salvd.cxx18
-rw-r--r--vcl/aqua/source/window/salframe.cxx168
-rw-r--r--vcl/aqua/source/window/salmenu.cxx80
-rw-r--r--vcl/aqua/source/window/salobj.cxx12
-rw-r--r--vcl/inc/cupsmgr.hxx26
-rw-r--r--vcl/inc/list.h4
-rw-r--r--vcl/inc/pch/precompiled_vcl.cxx2
-rw-r--r--vcl/inc/pch/precompiled_vcl.hxx2
-rw-r--r--vcl/inc/sft.hxx26
-rw-r--r--vcl/inc/vcl/ImageListProvider.hxx2
-rw-r--r--vcl/inc/vcl/abstdlg.hxx20
-rw-r--r--vcl/inc/vcl/accel.h14
-rw-r--r--vcl/inc/vcl/accel.hxx112
-rw-r--r--vcl/inc/vcl/accmgr.hxx2
-rw-r--r--vcl/inc/vcl/alpha.hxx40
-rw-r--r--vcl/inc/vcl/animate.hxx198
-rw-r--r--vcl/inc/vcl/apptypes.hxx2
-rw-r--r--vcl/inc/vcl/arrange.hxx40
-rw-r--r--vcl/inc/vcl/bitmap.hxx172
-rw-r--r--vcl/inc/vcl/bitmapex.hxx136
-rw-r--r--vcl/inc/vcl/bmpacc.hxx50
-rw-r--r--vcl/inc/vcl/bmpfast.hxx2
-rw-r--r--vcl/inc/vcl/brdwin.hxx378
-rw-r--r--vcl/inc/vcl/btndlg.hxx88
-rw-r--r--vcl/inc/vcl/button.hxx26
-rw-r--r--vcl/inc/vcl/canvasbitmap.hxx6
-rw-r--r--vcl/inc/vcl/canvastools.hxx120
-rw-r--r--vcl/inc/vcl/cmdevt.h48
-rw-r--r--vcl/inc/vcl/cmdevt.hxx40
-rw-r--r--vcl/inc/vcl/combobox.h12
-rw-r--r--vcl/inc/vcl/combobox.hxx26
-rw-r--r--vcl/inc/vcl/configsettings.hxx4
-rw-r--r--vcl/inc/vcl/controldata.hxx2
-rw-r--r--vcl/inc/vcl/controllayout.hxx10
-rw-r--r--vcl/inc/vcl/ctrl.hxx36
-rw-r--r--vcl/inc/vcl/cursor.hxx88
-rw-r--r--vcl/inc/vcl/cvtgrf.hxx20
-rw-r--r--vcl/inc/vcl/cvtsvm.hxx102
-rw-r--r--vcl/inc/vcl/dbggui.hxx2
-rw-r--r--vcl/inc/vcl/decoview.hxx74
-rw-r--r--vcl/inc/vcl/dialog.hxx54
-rw-r--r--vcl/inc/vcl/dllapi.h2
-rw-r--r--vcl/inc/vcl/dndevdis.hxx32
-rw-r--r--vcl/inc/vcl/dndhelp.hxx12
-rw-r--r--vcl/inc/vcl/dndlcon.hxx16
-rw-r--r--vcl/inc/vcl/dockingarea.hxx4
-rw-r--r--vcl/inc/vcl/dockwin.hxx280
-rw-r--r--vcl/inc/vcl/edit.hxx162
-rw-r--r--vcl/inc/vcl/event.hxx6
-rw-r--r--vcl/inc/vcl/evntpost.hxx2
-rw-r--r--vcl/inc/vcl/extoutdevdata.hxx2
-rw-r--r--vcl/inc/vcl/field.hxx8
-rw-r--r--vcl/inc/vcl/fixbrd.hxx40
-rw-r--r--vcl/inc/vcl/fixed.hxx4
-rw-r--r--vcl/inc/vcl/fldunit.hxx2
-rw-r--r--vcl/inc/vcl/floatwin.hxx144
-rw-r--r--vcl/inc/vcl/fntstyle.hxx8
-rw-r--r--vcl/inc/vcl/font.hxx148
-rw-r--r--vcl/inc/vcl/fontcache.hxx18
-rw-r--r--vcl/inc/vcl/fontmanager.hxx146
-rw-r--r--vcl/inc/vcl/fontsubset.hxx72
-rw-r--r--vcl/inc/vcl/gdimtf.hxx62
-rw-r--r--vcl/inc/vcl/gfxlink.hxx114
-rw-r--r--vcl/inc/vcl/glyphcache.hxx4
-rw-r--r--vcl/inc/vcl/gradient.hxx8
-rw-r--r--vcl/inc/vcl/graph.h2
-rw-r--r--vcl/inc/vcl/graph.hxx4
-rw-r--r--vcl/inc/vcl/graphictools.hxx226
-rw-r--r--vcl/inc/vcl/graphite_adaptors.hxx2
-rw-r--r--vcl/inc/vcl/graphite_cache.hxx2
-rw-r--r--vcl/inc/vcl/graphite_features.hxx2
-rw-r--r--vcl/inc/vcl/graphite_layout.hxx2
-rw-r--r--vcl/inc/vcl/graphite_serverfont.hxx2
-rw-r--r--vcl/inc/vcl/group.hxx4
-rw-r--r--vcl/inc/vcl/hatch.hxx30
-rw-r--r--vcl/inc/vcl/help.hxx88
-rw-r--r--vcl/inc/vcl/helper.hxx2
-rw-r--r--vcl/inc/vcl/helpwin.hxx48
-rw-r--r--vcl/inc/vcl/i18nhelp.hxx10
-rw-r--r--vcl/inc/vcl/idlemgr.hxx2
-rw-r--r--vcl/inc/vcl/ilstbox.hxx616
-rw-r--r--vcl/inc/vcl/image.h66
-rw-r--r--vcl/inc/vcl/image.hxx80
-rw-r--r--vcl/inc/vcl/imagerepository.hxx2
-rw-r--r--vcl/inc/vcl/imgctrl.hxx14
-rw-r--r--vcl/inc/vcl/impbmp.hxx64
-rw-r--r--vcl/inc/vcl/impbmpconv.hxx2
-rw-r--r--vcl/inc/vcl/impdel.hxx28
-rw-r--r--vcl/inc/vcl/impfont.hxx82
-rw-r--r--vcl/inc/vcl/impgraph.hxx144
-rw-r--r--vcl/inc/vcl/impimagetree.hxx2
-rw-r--r--vcl/inc/vcl/impoct.hxx70
-rw-r--r--vcl/inc/vcl/inputctx.hxx36
-rw-r--r--vcl/inc/vcl/introwin.hxx2
-rw-r--r--vcl/inc/vcl/javachild.hxx4
-rw-r--r--vcl/inc/vcl/jobdata.hxx4
-rw-r--r--vcl/inc/vcl/jobset.h38
-rw-r--r--vcl/inc/vcl/jobset.hxx36
-rw-r--r--vcl/inc/vcl/keycod.hxx38
-rw-r--r--vcl/inc/vcl/keycodes.hxx238
-rw-r--r--vcl/inc/vcl/lazydelete.hxx50
-rw-r--r--vcl/inc/vcl/lineinfo.hxx62
-rw-r--r--vcl/inc/vcl/longcurr.hxx104
-rw-r--r--vcl/inc/vcl/lstbox.h16
-rw-r--r--vcl/inc/vcl/lstbox.hxx182
-rw-r--r--vcl/inc/vcl/mapmod.hxx48
-rw-r--r--vcl/inc/vcl/mapunit.hxx4
-rw-r--r--vcl/inc/vcl/menu.hxx372
-rw-r--r--vcl/inc/vcl/menubtn.hxx48
-rw-r--r--vcl/inc/vcl/metaact.hxx954
-rw-r--r--vcl/inc/vcl/metric.hxx66
-rw-r--r--vcl/inc/vcl/mnemonic.hxx36
-rw-r--r--vcl/inc/vcl/mnemonicengine.hxx2
-rw-r--r--vcl/inc/vcl/morebtn.hxx4
-rw-r--r--vcl/inc/vcl/msgbox.hxx84
-rw-r--r--vcl/inc/vcl/octree.hxx78
-rw-r--r--vcl/inc/vcl/oldprintadaptor.hxx6
-rw-r--r--vcl/inc/vcl/outdata.hxx2
-rw-r--r--vcl/inc/vcl/outdev.h18
-rw-r--r--vcl/inc/vcl/outdev.hxx196
-rw-r--r--vcl/inc/vcl/outfont.hxx4
-rw-r--r--vcl/inc/vcl/pdfextoutdevdata.hxx82
-rw-r--r--vcl/inc/vcl/pdfwriter.hxx208
-rw-r--r--vcl/inc/vcl/pngread.hxx12
-rw-r--r--vcl/inc/vcl/pngwrite.hxx8
-rw-r--r--vcl/inc/vcl/pointr.hxx10
-rw-r--r--vcl/inc/vcl/polyscan.hxx92
-rw-r--r--vcl/inc/vcl/popupmenuwindow.hxx2
-rw-r--r--vcl/inc/vcl/ppdparser.hxx76
-rw-r--r--vcl/inc/vcl/print.h8
-rw-r--r--vcl/inc/vcl/print.hxx290
-rw-r--r--vcl/inc/vcl/printergfx.hxx134
-rw-r--r--vcl/inc/vcl/printerinfomanager.hxx30
-rw-r--r--vcl/inc/vcl/printerjob.hxx20
-rw-r--r--vcl/inc/vcl/prndlg.hxx94
-rw-r--r--vcl/inc/vcl/prntypes.hxx56
-rw-r--r--vcl/inc/vcl/ptrstyle.hxx178
-rw-r--r--vcl/inc/vcl/regband.hxx68
-rw-r--r--vcl/inc/vcl/region.h54
-rw-r--r--vcl/inc/vcl/region.hxx90
-rw-r--r--vcl/inc/vcl/salatype.hxx16
-rw-r--r--vcl/inc/vcl/salbmp.hxx24
-rw-r--r--vcl/inc/vcl/salbtype.hxx300
-rw-r--r--vcl/inc/vcl/salctrlhandle.hxx4
-rw-r--r--vcl/inc/vcl/salctype.hxx32
-rw-r--r--vcl/inc/vcl/saldatabasic.hxx6
-rw-r--r--vcl/inc/vcl/salframe.hxx100
-rw-r--r--vcl/inc/vcl/salgdi.hxx118
-rw-r--r--vcl/inc/vcl/salgeom.hxx4
-rw-r--r--vcl/inc/vcl/salgtype.hxx44
-rw-r--r--vcl/inc/vcl/salimestatus.hxx2
-rw-r--r--vcl/inc/vcl/salinst.hxx66
-rw-r--r--vcl/inc/vcl/sallayout.hxx10
-rw-r--r--vcl/inc/vcl/salmenu.hxx18
-rw-r--r--vcl/inc/vcl/salnativewidgets.hxx176
-rw-r--r--vcl/inc/vcl/salobj.hxx42
-rw-r--r--vcl/inc/vcl/salprn.hxx58
-rw-r--r--vcl/inc/vcl/salptype.hxx6
-rw-r--r--vcl/inc/vcl/salsession.hxx30
-rw-r--r--vcl/inc/vcl/salsys.hxx40
-rw-r--r--vcl/inc/vcl/saltimer.hxx14
-rw-r--r--vcl/inc/vcl/salvd.hxx8
-rw-r--r--vcl/inc/vcl/salwtype.hxx8
-rw-r--r--vcl/inc/vcl/scrbar.hxx26
-rw-r--r--vcl/inc/vcl/seleng.hxx12
-rw-r--r--vcl/inc/vcl/settings.hxx112
-rw-r--r--vcl/inc/vcl/slider.hxx144
-rw-r--r--vcl/inc/vcl/smartid.hxx2
-rw-r--r--vcl/inc/vcl/sndstyle.hxx2
-rw-r--r--vcl/inc/vcl/sound.hxx2
-rw-r--r--vcl/inc/vcl/spin.h2
-rw-r--r--vcl/inc/vcl/spin.hxx2
-rw-r--r--vcl/inc/vcl/spinfld.hxx84
-rw-r--r--vcl/inc/vcl/split.hxx8
-rw-r--r--vcl/inc/vcl/splitwin.hxx266
-rw-r--r--vcl/inc/vcl/status.hxx200
-rw-r--r--vcl/inc/vcl/stdtext.hxx10
-rw-r--r--vcl/inc/vcl/strhelper.hxx2
-rw-r--r--vcl/inc/vcl/subedit.hxx2
-rw-r--r--vcl/inc/vcl/sv.h2
-rw-r--r--vcl/inc/vcl/svapp.hxx18
-rw-r--r--vcl/inc/vcl/svcompat.hxx8
-rw-r--r--vcl/inc/vcl/svdata.hxx10
-rw-r--r--vcl/inc/vcl/svids.hrc126
-rw-r--r--vcl/inc/vcl/symbol.hxx82
-rw-r--r--vcl/inc/vcl/syschild.hxx4
-rw-r--r--vcl/inc/vcl/sysdata.hxx72
-rw-r--r--vcl/inc/vcl/syswin.hxx20
-rw-r--r--vcl/inc/vcl/tabctrl.hxx14
-rw-r--r--vcl/inc/vcl/tabdlg.hxx32
-rw-r--r--vcl/inc/vcl/tabpage.hxx16
-rw-r--r--vcl/inc/vcl/taskpanelist.hxx2
-rw-r--r--vcl/inc/vcl/textlayout.hxx2
-rw-r--r--vcl/inc/vcl/threadex.hxx12
-rw-r--r--vcl/inc/vcl/timer.hxx4
-rw-r--r--vcl/inc/vcl/toolbox.h66
-rw-r--r--vcl/inc/vcl/toolbox.hxx28
-rw-r--r--vcl/inc/vcl/unobrok.hxx4
-rw-r--r--vcl/inc/vcl/unohelp.hxx8
-rw-r--r--vcl/inc/vcl/unohelp2.hxx16
-rw-r--r--vcl/inc/vcl/unowrap.hxx26
-rw-r--r--vcl/inc/vcl/vclenum.hxx60
-rw-r--r--vcl/inc/vcl/vclevent.hxx32
-rw-r--r--vcl/inc/vcl/virdev.hxx32
-rw-r--r--vcl/inc/vcl/waitobj.hxx2
-rw-r--r--vcl/inc/vcl/wall.hxx94
-rw-r--r--vcl/inc/vcl/wall2.hxx24
-rw-r--r--vcl/inc/vcl/windata.hxx2
-rw-r--r--vcl/inc/vcl/window.h8
-rw-r--r--vcl/inc/vcl/window.hxx72
-rw-r--r--vcl/inc/vcl/wintypes.hxx2
-rw-r--r--vcl/inc/vcl/wrkwin.hxx8
-rw-r--r--vcl/inc/vcl/xconnection.hxx6
-rw-r--r--vcl/os2/inc/salbmp.h20
-rw-r--r--vcl/os2/inc/saldata.hxx148
-rw-r--r--vcl/os2/inc/salframe.h124
-rw-r--r--vcl/os2/inc/salgdi.h156
-rw-r--r--vcl/os2/inc/salids.hrc138
-rw-r--r--vcl/os2/inc/salinst.h78
-rw-r--r--vcl/os2/inc/sallang.hxx40
-rw-r--r--vcl/os2/inc/sallayout.h2
-rw-r--r--vcl/os2/inc/salmenu.h2
-rw-r--r--vcl/os2/inc/salobj.h46
-rw-r--r--vcl/os2/inc/salprn.h116
-rw-r--r--vcl/os2/inc/salsound.h66
-rw-r--r--vcl/os2/inc/salsound.hxx50
-rw-r--r--vcl/os2/inc/salsys.h2
-rw-r--r--vcl/os2/inc/saltimer.h6
-rw-r--r--vcl/os2/inc/salvd.h22
-rw-r--r--vcl/os2/inc/svsys.h2
-rw-r--r--vcl/os2/inc/wingdi.h10
-rw-r--r--vcl/os2/source/app/salinfo.cxx4
-rw-r--r--vcl/os2/source/app/salinst.cxx58
-rw-r--r--vcl/os2/source/app/sallang.cxx2
-rw-r--r--vcl/os2/source/app/salshl.cxx16
-rw-r--r--vcl/os2/source/app/saltimer.cxx10
-rw-r--r--vcl/os2/source/gdi/os2layout.cxx28
-rw-r--r--vcl/os2/source/gdi/salbmp.cxx24
-rw-r--r--vcl/os2/source/gdi/salgdi.cxx96
-rw-r--r--vcl/os2/source/gdi/salgdi2.cxx210
-rw-r--r--vcl/os2/source/gdi/salgdi3.cxx146
-rw-r--r--vcl/os2/source/gdi/salprn.cxx328
-rw-r--r--vcl/os2/source/gdi/salvd.cxx48
-rw-r--r--vcl/os2/source/window/salframe.cxx214
-rw-r--r--vcl/os2/source/window/salmenu.cxx4
-rw-r--r--vcl/os2/source/window/salobj.cxx52
-rw-r--r--vcl/qa/complex/memCheck/CheckMemoryUsage.java44
-rw-r--r--vcl/qa/complex/persistent_window_states/DocumentHandle.java2
-rw-r--r--vcl/qa/complex/persistent_window_states/PersistentWindowTest.java2
-rw-r--r--vcl/source/app/dbggui.cxx16
-rw-r--r--vcl/source/app/dndhelp.cxx4
-rw-r--r--vcl/source/app/help.cxx38
-rw-r--r--vcl/source/app/i18nhelp.cxx14
-rw-r--r--vcl/source/app/idlemgr.cxx2
-rw-r--r--vcl/source/app/salvtables.cxx2
-rw-r--r--vcl/source/app/session.cxx40
-rw-r--r--vcl/source/app/settings.cxx84
-rw-r--r--vcl/source/app/sound.cxx2
-rw-r--r--vcl/source/app/stdtext.cxx2
-rw-r--r--vcl/source/app/svapp.cxx106
-rw-r--r--vcl/source/app/svdata.cxx42
-rw-r--r--vcl/source/app/svmainhook.cxx4
-rw-r--r--vcl/source/app/timer.cxx78
-rw-r--r--vcl/source/app/unohelp.cxx14
-rw-r--r--vcl/source/app/unohelp2.cxx6
-rw-r--r--vcl/source/app/vclevent.cxx6
-rw-r--r--vcl/source/components/display.cxx6
-rw-r--r--vcl/source/components/dtranscomp.cxx66
-rw-r--r--vcl/source/components/factory.cxx4
-rw-r--r--vcl/source/components/fontident.cxx6
-rw-r--r--vcl/source/control/button.cxx120
-rw-r--r--vcl/source/control/combobox.cxx48
-rw-r--r--vcl/source/control/ctrl.cxx18
-rw-r--r--vcl/source/control/edit.cxx166
-rw-r--r--vcl/source/control/field2.cxx44
-rw-r--r--vcl/source/control/fixbrd.cxx18
-rw-r--r--vcl/source/control/fixed.cxx74
-rw-r--r--vcl/source/control/group.cxx32
-rw-r--r--vcl/source/control/ilstbox.cxx220
-rw-r--r--vcl/source/control/imgctrl.cxx4
-rw-r--r--vcl/source/control/longcurr.cxx68
-rw-r--r--vcl/source/control/lstbox.cxx50
-rw-r--r--vcl/source/control/menubtn.cxx30
-rw-r--r--vcl/source/control/morebtn.cxx16
-rw-r--r--vcl/source/control/scrbar.cxx68
-rw-r--r--vcl/source/control/slider.cxx228
-rw-r--r--vcl/source/control/spinbtn.cxx4
-rw-r--r--vcl/source/control/spinfld.cxx40
-rw-r--r--vcl/source/control/tabctrl.cxx62
-rw-r--r--vcl/source/fontsubset/cff.cxx894
-rw-r--r--vcl/source/fontsubset/fontsubset.cxx30
-rw-r--r--vcl/source/fontsubset/gsub.cxx6
-rw-r--r--vcl/source/fontsubset/gsub.h4
-rw-r--r--vcl/source/fontsubset/list.c2
-rw-r--r--vcl/source/fontsubset/sft.cxx46
-rw-r--r--vcl/source/fontsubset/ttcr.cxx98
-rw-r--r--vcl/source/fontsubset/ttcr.hxx8
-rw-r--r--vcl/source/fontsubset/xlat.cxx20
-rw-r--r--vcl/source/fontsubset/xlat.hxx2
-rw-r--r--vcl/source/gdi/alpha.cxx84
-rw-r--r--vcl/source/gdi/animate.cxx110
-rw-r--r--vcl/source/gdi/base14.cxx4
-rw-r--r--vcl/source/gdi/bitmap.cxx454
-rw-r--r--vcl/source/gdi/bitmap2.cxx256
-rw-r--r--vcl/source/gdi/bitmap3.cxx566
-rw-r--r--vcl/source/gdi/bitmap4.cxx302
-rw-r--r--vcl/source/gdi/bitmapex.cxx88
-rw-r--r--vcl/source/gdi/bmpacc.cxx70
-rw-r--r--vcl/source/gdi/bmpacc2.cxx10
-rw-r--r--vcl/source/gdi/bmpacc3.cxx116
-rw-r--r--vcl/source/gdi/bmpconv.cxx20
-rw-r--r--vcl/source/gdi/bmpfast.cxx4
-rw-r--r--vcl/source/gdi/configsettings.cxx10
-rw-r--r--vcl/source/gdi/cvtgrf.cxx38
-rw-r--r--vcl/source/gdi/cvtsvm.cxx422
-rw-r--r--vcl/source/gdi/extoutdevdata.cxx2
-rw-r--r--vcl/source/gdi/font.cxx152
-rw-r--r--vcl/source/gdi/gdimtf.cxx532
-rw-r--r--vcl/source/gdi/gfxlink.cxx52
-rw-r--r--vcl/source/gdi/gradient.cxx6
-rw-r--r--vcl/source/gdi/graph.cxx12
-rw-r--r--vcl/source/gdi/graphictools.cxx82
-rw-r--r--vcl/source/gdi/hatch.cxx28
-rw-r--r--vcl/source/gdi/image.cxx92
-rw-r--r--vcl/source/gdi/imagerepository.cxx2
-rw-r--r--vcl/source/gdi/impanmvw.cxx62
-rw-r--r--vcl/source/gdi/impanmvw.hxx74
-rw-r--r--vcl/source/gdi/impbmp.cxx10
-rw-r--r--vcl/source/gdi/impgraph.cxx222
-rw-r--r--vcl/source/gdi/impimage.cxx42
-rw-r--r--vcl/source/gdi/impimagetree.cxx2
-rw-r--r--vcl/source/gdi/impvect.cxx274
-rw-r--r--vcl/source/gdi/impvect.hxx24
-rw-r--r--vcl/source/gdi/jobset.cxx132
-rw-r--r--vcl/source/gdi/lineinfo.cxx48
-rw-r--r--vcl/source/gdi/mapmod.cxx6
-rw-r--r--vcl/source/gdi/metaact.cxx510
-rw-r--r--vcl/source/gdi/metric.cxx26
-rw-r--r--vcl/source/gdi/octree.cxx10
-rw-r--r--vcl/source/gdi/oldprintadaptor.cxx4
-rw-r--r--vcl/source/gdi/outdev.cxx300
-rw-r--r--vcl/source/gdi/outdev2.cxx394
-rw-r--r--vcl/source/gdi/outdev3.cxx104
-rw-r--r--vcl/source/gdi/outdev4.cxx336
-rw-r--r--vcl/source/gdi/outdev5.cxx24
-rw-r--r--vcl/source/gdi/outdev6.cxx192
-rw-r--r--vcl/source/gdi/outdevnative.cxx8
-rw-r--r--vcl/source/gdi/outmap.cxx338
-rw-r--r--vcl/source/gdi/pdfextoutdevdata.cxx90
-rw-r--r--vcl/source/gdi/pdffontcache.cxx2
-rw-r--r--vcl/source/gdi/pdffontcache.hxx12
-rw-r--r--vcl/source/gdi/pdfwriter.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx1082
-rw-r--r--vcl/source/gdi/pdfwriter_impl.hxx480
-rw-r--r--vcl/source/gdi/pngread.cxx228
-rw-r--r--vcl/source/gdi/pngwrite.cxx166
-rw-r--r--vcl/source/gdi/polyscan.cxx54
-rw-r--r--vcl/source/gdi/print.cxx190
-rw-r--r--vcl/source/gdi/print2.cxx194
-rw-r--r--vcl/source/gdi/print3.cxx182
-rw-r--r--vcl/source/gdi/regband.cxx180
-rw-r--r--vcl/source/gdi/region.cxx178
-rw-r--r--vcl/source/gdi/salgdilayout.cxx106
-rw-r--r--vcl/source/gdi/sallayout.cxx20
-rw-r--r--vcl/source/gdi/salmisc.cxx106
-rw-r--r--vcl/source/gdi/salnativewidgets-none.cxx24
-rw-r--r--vcl/source/gdi/svcompat.cxx2
-rw-r--r--vcl/source/gdi/textlayout.cxx2
-rw-r--r--vcl/source/gdi/virdev.cxx54
-rw-r--r--vcl/source/gdi/wall.cxx76
-rw-r--r--vcl/source/glyphs/gcach_ftyp.cxx28
-rw-r--r--vcl/source/glyphs/gcach_ftyp.hxx8
-rw-r--r--vcl/source/glyphs/gcach_layout.cxx20
-rw-r--r--vcl/source/glyphs/gcach_rbmp.cxx4
-rw-r--r--vcl/source/glyphs/gcach_vdev.cxx124
-rw-r--r--vcl/source/glyphs/gcach_vdev.hxx24
-rw-r--r--vcl/source/glyphs/glyphcache.cxx8
-rw-r--r--vcl/source/glyphs/graphite_adaptors.cxx2
-rw-r--r--vcl/source/glyphs/graphite_cache.cxx2
-rw-r--r--vcl/source/glyphs/graphite_features.cxx4
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx4
-rw-r--r--vcl/source/glyphs/graphite_serverfont.cxx2
-rw-r--r--vcl/source/glyphs/graphite_textsrc.cxx2
-rw-r--r--vcl/source/glyphs/graphite_textsrc.hxx4
-rw-r--r--vcl/source/helper/canvasbitmap.cxx6
-rw-r--r--vcl/source/helper/canvastools.cxx60
-rw-r--r--vcl/source/helper/evntpost.cxx2
-rw-r--r--vcl/source/helper/lazydelete.cxx6
-rw-r--r--vcl/source/helper/smartid.cxx6
-rw-r--r--vcl/source/helper/strhelper.cxx34
-rw-r--r--vcl/source/helper/threadex.cxx2
-rw-r--r--vcl/source/helper/xconnection.cxx4
-rw-r--r--vcl/source/salmain/salmain.cxx2
-rw-r--r--vcl/source/src/btntext.src16
-rw-r--r--vcl/source/src/helptext.src2
-rw-r--r--vcl/source/src/images.src2
-rw-r--r--vcl/source/src/menu.src24
-rw-r--r--vcl/source/src/print.src30
-rw-r--r--vcl/source/src/stdtext.src2
-rw-r--r--vcl/source/src/units.src2
-rw-r--r--vcl/source/window/abstdlg.cxx2
-rw-r--r--vcl/source/window/accel.cxx82
-rw-r--r--vcl/source/window/accmgr.cxx4
-rw-r--r--vcl/source/window/arrange.cxx44
-rw-r--r--vcl/source/window/brdwin.cxx362
-rw-r--r--vcl/source/window/btndlg.cxx70
-rw-r--r--vcl/source/window/cmdevt.cxx34
-rw-r--r--vcl/source/window/cursor.cxx104
-rw-r--r--vcl/source/window/decoview.cxx176
-rw-r--r--vcl/source/window/dlgctrl.cxx22
-rw-r--r--vcl/source/window/dndevdis.cxx2
-rw-r--r--vcl/source/window/dndlcon.cxx74
-rw-r--r--vcl/source/window/dockingarea.cxx14
-rw-r--r--vcl/source/window/dockmgr.cxx80
-rw-r--r--vcl/source/window/dockwin.cxx36
-rw-r--r--vcl/source/window/floatwin.cxx44
-rw-r--r--vcl/source/window/introwin.cxx2
-rw-r--r--vcl/source/window/javachild.cxx58
-rw-r--r--vcl/source/window/keycod.cxx8
-rw-r--r--vcl/source/window/keyevent.cxx10
-rw-r--r--vcl/source/window/menu.cxx340
-rw-r--r--vcl/source/window/mnemonic.cxx12
-rw-r--r--vcl/source/window/mnemonicengine.cxx2
-rw-r--r--vcl/source/window/mouseevent.cxx2
-rw-r--r--vcl/source/window/msgbox.cxx78
-rw-r--r--vcl/source/window/popupmenuwindow.cxx2
-rw-r--r--vcl/source/window/printdlg.cxx314
-rw-r--r--vcl/source/window/scrwnd.cxx2
-rw-r--r--vcl/source/window/scrwnd.hxx80
-rw-r--r--vcl/source/window/seleng.cxx6
-rw-r--r--vcl/source/window/split.cxx54
-rw-r--r--vcl/source/window/splitwin.cxx832
-rw-r--r--vcl/source/window/status.cxx184
-rw-r--r--vcl/source/window/syschild.cxx2
-rw-r--r--vcl/source/window/syswin.cxx22
-rw-r--r--vcl/source/window/tabdlg.cxx76
-rw-r--r--vcl/source/window/tabpage.cxx4
-rw-r--r--vcl/source/window/taskpanelist.cxx6
-rw-r--r--vcl/source/window/toolbox.cxx78
-rw-r--r--vcl/source/window/toolbox2.cxx290
-rw-r--r--vcl/source/window/window.cxx26
-rw-r--r--vcl/source/window/window2.cxx276
-rw-r--r--vcl/source/window/window3.cxx2
-rw-r--r--vcl/source/window/winproc.cxx14
-rw-r--r--vcl/source/window/wrkwin.cxx8
-rw-r--r--vcl/test/canvasbitmaptest.cxx112
-rw-r--r--vcl/test/dndtest.cxx54
-rw-r--r--vcl/unx/gtk/a11y/atkaction.cxx36
-rw-r--r--vcl/unx/gtk/a11y/atkbridge.cxx14
-rw-r--r--vcl/unx/gtk/a11y/atkcomponent.cxx46
-rw-r--r--vcl/unx/gtk/a11y/atkeditabletext.cxx8
-rw-r--r--vcl/unx/gtk/a11y/atkfactory.cxx26
-rw-r--r--vcl/unx/gtk/a11y/atkfactory.hxx4
-rw-r--r--vcl/unx/gtk/a11y/atkhypertext.cxx18
-rw-r--r--vcl/unx/gtk/a11y/atkimage.cxx10
-rw-r--r--vcl/unx/gtk/a11y/atklistener.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atklistener.hxx18
-rw-r--r--vcl/unx/gtk/a11y/atkregistry.cxx6
-rw-r--r--vcl/unx/gtk/a11y/atkregistry.hxx2
-rw-r--r--vcl/unx/gtk/a11y/atkselection.cxx18
-rw-r--r--vcl/unx/gtk/a11y/atktable.cxx98
-rw-r--r--vcl/unx/gtk/a11y/atkutil.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkutil.hxx4
-rw-r--r--vcl/unx/gtk/a11y/atkvalue.cxx6
-rw-r--r--vcl/unx/gtk/a11y/atkwindow.cxx60
-rw-r--r--vcl/unx/gtk/a11y/atkwindow.hxx4
-rw-r--r--vcl/unx/gtk/a11y/atkwrapper.hxx8
-rw-r--r--vcl/unx/gtk/app/gtkdata.cxx22
-rw-r--r--vcl/unx/gtk/app/gtkinst.cxx16
-rw-r--r--vcl/unx/gtk/app/gtksys.cxx2
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx528
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx536
-rw-r--r--vcl/unx/gtk/window/gtkobject.cxx42
-rw-r--r--vcl/unx/headless/svpbmp.cxx18
-rw-r--r--vcl/unx/headless/svpbmp.hxx30
-rw-r--r--vcl/unx/headless/svpdummies.cxx22
-rw-r--r--vcl/unx/headless/svpdummies.hxx28
-rw-r--r--vcl/unx/headless/svpelement.cxx14
-rw-r--r--vcl/unx/headless/svpelement.hxx4
-rw-r--r--vcl/unx/headless/svpframe.cxx42
-rw-r--r--vcl/unx/headless/svpframe.hxx90
-rw-r--r--vcl/unx/headless/svpgdi.cxx16
-rw-r--r--vcl/unx/headless/svpgdi.hxx104
-rw-r--r--vcl/unx/headless/svpinst.cxx16
-rw-r--r--vcl/unx/headless/svpinst.hxx84
-rw-r--r--vcl/unx/headless/svpprn.cxx84
-rw-r--r--vcl/unx/headless/svpprn.hxx68
-rw-r--r--vcl/unx/headless/svppspgraphics.cxx144
-rw-r--r--vcl/unx/headless/svppspgraphics.hxx130
-rw-r--r--vcl/unx/headless/svptext.cxx6
-rw-r--r--vcl/unx/headless/svpvd.cxx6
-rw-r--r--vcl/unx/headless/svpvd.hxx12
-rw-r--r--vcl/unx/inc/XIM.h26
-rw-r--r--vcl/unx/inc/Xproto.h2
-rw-r--r--vcl/unx/inc/cdeint.hxx2
-rw-r--r--vcl/unx/inc/dtint.hxx22
-rw-r--r--vcl/unx/inc/i18n_cb.hxx18
-rw-r--r--vcl/unx/inc/i18n_ic.hxx24
-rw-r--r--vcl/unx/inc/i18n_im.hxx28
-rw-r--r--vcl/unx/inc/i18n_keysym.hxx52
-rw-r--r--vcl/unx/inc/i18n_status.hxx14
-rw-r--r--vcl/unx/inc/i18n_xkb.hxx80
-rw-r--r--vcl/unx/inc/plugins/gtk/atkbridge.hxx2
-rw-r--r--vcl/unx/inc/plugins/gtk/gtkdata.hxx10
-rw-r--r--vcl/unx/inc/plugins/gtk/gtkframe.hxx116
-rw-r--r--vcl/unx/inc/plugins/gtk/gtkgdi.hxx36
-rw-r--r--vcl/unx/inc/plugins/gtk/gtkinst.hxx26
-rw-r--r--vcl/unx/inc/plugins/gtk/gtkobject.hxx40
-rw-r--r--vcl/unx/inc/plugins/kde/kdedata.hxx14
-rw-r--r--vcl/unx/inc/pspgraphics.h140
-rw-r--r--vcl/unx/inc/salbmp.h128
-rw-r--r--vcl/unx/inc/saldata.hxx50
-rw-r--r--vcl/unx/inc/saldisp.hxx380
-rw-r--r--vcl/unx/inc/salfont.h156
-rw-r--r--vcl/unx/inc/salframe.h300
-rw-r--r--vcl/unx/inc/salgdi.h216
-rw-r--r--vcl/unx/inc/salinst.h66
-rw-r--r--vcl/unx/inc/salmenu.h2
-rw-r--r--vcl/unx/inc/salobj.h68
-rw-r--r--vcl/unx/inc/salprn.h68
-rw-r--r--vcl/unx/inc/salstd.hxx60
-rw-r--r--vcl/unx/inc/saltimer.h6
-rw-r--r--vcl/unx/inc/salunx.h6
-rw-r--r--vcl/unx/inc/salvd.h52
-rw-r--r--vcl/unx/inc/sm.hxx20
-rw-r--r--vcl/unx/inc/soicon.hxx4
-rw-r--r--vcl/unx/inc/strhelper.hxx2
-rw-r--r--vcl/unx/inc/svsys.h2
-rw-r--r--vcl/unx/inc/svunx.h2
-rw-r--r--vcl/unx/inc/wmadaptor.hxx54
-rw-r--r--vcl/unx/inc/xfont.hxx50
-rw-r--r--vcl/unx/kde/kdedata.cxx6
-rw-r--r--vcl/unx/kde/salnativewidgets-kde.cxx146
-rw-r--r--vcl/unx/kde4/KDEData.cxx4
-rw-r--r--vcl/unx/kde4/KDEData.hxx4
-rw-r--r--vcl/unx/kde4/KDESalDisplay.cxx2
-rw-r--r--vcl/unx/kde4/KDESalDisplay.hxx2
-rw-r--r--vcl/unx/kde4/KDESalFrame.cxx58
-rw-r--r--vcl/unx/kde4/KDESalFrame.hxx6
-rw-r--r--vcl/unx/kde4/KDESalGraphics.cxx214
-rw-r--r--vcl/unx/kde4/KDESalGraphics.hxx24
-rw-r--r--vcl/unx/kde4/KDESalInstance.cxx2
-rw-r--r--vcl/unx/kde4/KDESalInstance.hxx2
-rw-r--r--vcl/unx/kde4/KDEXLib.cxx16
-rw-r--r--vcl/unx/kde4/KDEXLib.hxx6
-rw-r--r--vcl/unx/kde4/VCLKDEApplication.cxx6
-rw-r--r--vcl/unx/kde4/VCLKDEApplication.hxx6
-rw-r--r--vcl/unx/kde4/main.cxx8
-rw-r--r--vcl/unx/source/app/i18n_cb.cxx18
-rw-r--r--vcl/unx/source/app/i18n_ic.cxx28
-rw-r--r--vcl/unx/source/app/i18n_im.cxx26
-rw-r--r--vcl/unx/source/app/i18n_keysym.cxx136
-rw-r--r--vcl/unx/source/app/i18n_status.cxx30
-rw-r--r--vcl/unx/source/app/i18n_wrp.cxx34
-rw-r--r--vcl/unx/source/app/i18n_xkb.cxx8
-rw-r--r--vcl/unx/source/app/keysymnames.cxx42
-rw-r--r--vcl/unx/source/app/randrwrapper.cxx30
-rw-r--r--vcl/unx/source/app/saldata.cxx90
-rw-r--r--vcl/unx/source/app/saldisp.cxx104
-rw-r--r--vcl/unx/source/app/salinst.cxx36
-rw-r--r--vcl/unx/source/app/salsys.cxx6
-rw-r--r--vcl/unx/source/app/saltimer.cxx8
-rw-r--r--vcl/unx/source/app/sm.cxx148
-rw-r--r--vcl/unx/source/app/soicon.cxx12
-rw-r--r--vcl/unx/source/app/wmadaptor.cxx296
-rw-r--r--vcl/unx/source/desktopdetect/desktopdetector.cxx46
-rw-r--r--vcl/unx/source/dtrans/X11_clipboard.cxx6
-rw-r--r--vcl/unx/source/dtrans/X11_clipboard.hxx42
-rw-r--r--vcl/unx/source/dtrans/X11_dndcontext.cxx8
-rw-r--r--vcl/unx/source/dtrans/X11_dndcontext.hxx10
-rw-r--r--vcl/unx/source/dtrans/X11_droptarget.cxx4
-rw-r--r--vcl/unx/source/dtrans/X11_selection.cxx664
-rw-r--r--vcl/unx/source/dtrans/X11_selection.hxx214
-rw-r--r--vcl/unx/source/dtrans/X11_service.cxx16
-rw-r--r--vcl/unx/source/dtrans/X11_transferable.cxx2
-rw-r--r--vcl/unx/source/dtrans/X11_transferable.hxx20
-rw-r--r--vcl/unx/source/dtrans/bmp.cxx88
-rw-r--r--vcl/unx/source/dtrans/bmp.hxx26
-rw-r--r--vcl/unx/source/dtrans/config.cxx4
-rw-r--r--vcl/unx/source/dtrans/copydata_curs.h2
-rw-r--r--vcl/unx/source/dtrans/copydata_mask.h2
-rw-r--r--vcl/unx/source/dtrans/linkdata_curs.h2
-rw-r--r--vcl/unx/source/dtrans/linkdata_mask.h2
-rw-r--r--vcl/unx/source/dtrans/movedata_curs.h2
-rw-r--r--vcl/unx/source/dtrans/movedata_mask.h2
-rw-r--r--vcl/unx/source/dtrans/nodrop_curs.h2
-rw-r--r--vcl/unx/source/dtrans/nodrop_mask.h2
-rw-r--r--vcl/unx/source/fontmanager/adobeenc.tab8
-rw-r--r--vcl/unx/source/fontmanager/fontcache.cxx118
-rw-r--r--vcl/unx/source/fontmanager/fontconfig.cxx214
-rw-r--r--vcl/unx/source/fontmanager/fontmanager.cxx186
-rw-r--r--vcl/unx/source/fontmanager/helper.cxx14
-rw-r--r--vcl/unx/source/fontmanager/parseAFM.cxx402
-rw-r--r--vcl/unx/source/fontmanager/parseAFM.hxx122
-rw-r--r--vcl/unx/source/gdi/cdeint.cxx26
-rw-r--r--vcl/unx/source/gdi/dtint.cxx2
-rw-r--r--vcl/unx/source/gdi/dtsetenum.hxx2
-rw-r--r--vcl/unx/source/gdi/gcach_xpeer.cxx8
-rw-r--r--vcl/unx/source/gdi/gcach_xpeer.hxx2
-rw-r--r--vcl/unx/source/gdi/pspgraphics.cxx168
-rw-r--r--vcl/unx/source/gdi/salbmp.cxx138
-rw-r--r--vcl/unx/source/gdi/salcvt.cxx186
-rw-r--r--vcl/unx/source/gdi/salcvt.hxx32
-rw-r--r--vcl/unx/source/gdi/salgdi.cxx332
-rw-r--r--vcl/unx/source/gdi/salgdi2.cxx256
-rw-r--r--vcl/unx/source/gdi/salgdi3.cxx118
-rw-r--r--vcl/unx/source/gdi/salprnpsp.cxx114
-rw-r--r--vcl/unx/source/gdi/salvd.cxx18
-rw-r--r--vcl/unx/source/gdi/xfont.cxx40
-rw-r--r--vcl/unx/source/gdi/xlfd_attr.cxx132
-rw-r--r--vcl/unx/source/gdi/xlfd_attr.hxx112
-rw-r--r--vcl/unx/source/gdi/xlfd_extd.cxx24
-rw-r--r--vcl/unx/source/gdi/xlfd_extd.hxx110
-rw-r--r--vcl/unx/source/gdi/xlfd_smpl.cxx12
-rw-r--r--vcl/unx/source/gdi/xlfd_smpl.hxx42
-rw-r--r--vcl/unx/source/gdi/xrender_peer.cxx4
-rw-r--r--vcl/unx/source/gdi/xrender_peer.hxx6
-rw-r--r--vcl/unx/source/inc/airbrush_curs.h2
-rw-r--r--vcl/unx/source/inc/airbrush_mask.h2
-rw-r--r--vcl/unx/source/inc/ase_curs.h2
-rw-r--r--vcl/unx/source/inc/ase_mask.h4
-rw-r--r--vcl/unx/source/inc/asn_curs.h2
-rw-r--r--vcl/unx/source/inc/asn_mask.h2
-rw-r--r--vcl/unx/source/inc/asne_curs.h2
-rw-r--r--vcl/unx/source/inc/asne_mask.h2
-rw-r--r--vcl/unx/source/inc/asns_curs.h2
-rw-r--r--vcl/unx/source/inc/asns_mask.h2
-rw-r--r--vcl/unx/source/inc/asnswe_curs.h2
-rw-r--r--vcl/unx/source/inc/asnswe_mask.h2
-rw-r--r--vcl/unx/source/inc/asnw_curs.h2
-rw-r--r--vcl/unx/source/inc/asnw_mask.h2
-rw-r--r--vcl/unx/source/inc/ass_curs.h2
-rw-r--r--vcl/unx/source/inc/ass_mask.h2
-rw-r--r--vcl/unx/source/inc/asse_curs.h2
-rw-r--r--vcl/unx/source/inc/asse_mask.h2
-rw-r--r--vcl/unx/source/inc/assw_curs.h2
-rw-r--r--vcl/unx/source/inc/assw_mask.h2
-rw-r--r--vcl/unx/source/inc/asw_curs.h2
-rw-r--r--vcl/unx/source/inc/asw_mask.h2
-rw-r--r--vcl/unx/source/inc/aswe_curs.h2
-rw-r--r--vcl/unx/source/inc/aswe_mask.h2
-rw-r--r--vcl/unx/source/inc/chain_curs.h2
-rw-r--r--vcl/unx/source/inc/chain_mask.h2
-rw-r--r--vcl/unx/source/inc/chainnot_curs.h2
-rw-r--r--vcl/unx/source/inc/chainnot_mask.h2
-rw-r--r--vcl/unx/source/inc/chart_curs.h2
-rw-r--r--vcl/unx/source/inc/chart_mask.h2
-rw-r--r--vcl/unx/source/inc/copydata_curs.h2
-rw-r--r--vcl/unx/source/inc/copydata_mask.h2
-rw-r--r--vcl/unx/source/inc/copydlnk_curs.h2
-rw-r--r--vcl/unx/source/inc/copydlnk_mask.h2
-rw-r--r--vcl/unx/source/inc/copyfile_curs.h2
-rw-r--r--vcl/unx/source/inc/copyfile_mask.h2
-rw-r--r--vcl/unx/source/inc/copyfiles_curs.h2
-rw-r--r--vcl/unx/source/inc/copyfiles_mask.h2
-rw-r--r--vcl/unx/source/inc/copyflnk_curs.h2
-rw-r--r--vcl/unx/source/inc/copyflnk_mask.h2
-rw-r--r--vcl/unx/source/inc/crook_curs.h2
-rw-r--r--vcl/unx/source/inc/crook_mask.h2
-rw-r--r--vcl/unx/source/inc/crop_curs.h2
-rw-r--r--vcl/unx/source/inc/crop_mask.h2
-rw-r--r--vcl/unx/source/inc/detective_curs.h2
-rw-r--r--vcl/unx/source/inc/detective_mask.h2
-rw-r--r--vcl/unx/source/inc/drawarc_curs.h2
-rw-r--r--vcl/unx/source/inc/drawarc_mask.h2
-rw-r--r--vcl/unx/source/inc/drawbezier_curs.h2
-rw-r--r--vcl/unx/source/inc/drawbezier_mask.h2
-rw-r--r--vcl/unx/source/inc/drawcaption_curs.h2
-rw-r--r--vcl/unx/source/inc/drawcaption_mask.h2
-rw-r--r--vcl/unx/source/inc/drawcirclecut_curs.h2
-rw-r--r--vcl/unx/source/inc/drawcirclecut_mask.h2
-rw-r--r--vcl/unx/source/inc/drawconnect_curs.h2
-rw-r--r--vcl/unx/source/inc/drawconnect_mask.h2
-rw-r--r--vcl/unx/source/inc/drawcrook_curs.h2
-rw-r--r--vcl/unx/source/inc/drawcrook_mask.h2
-rw-r--r--vcl/unx/source/inc/drawcrop_curs.h2
-rw-r--r--vcl/unx/source/inc/drawcrop_mask.h2
-rw-r--r--vcl/unx/source/inc/drawellipse_curs.h2
-rw-r--r--vcl/unx/source/inc/drawellipse_mask.h2
-rw-r--r--vcl/unx/source/inc/drawfreehand_curs.h2
-rw-r--r--vcl/unx/source/inc/drawfreehand_mask.h2
-rw-r--r--vcl/unx/source/inc/drawline_curs.h2
-rw-r--r--vcl/unx/source/inc/drawline_mask.h2
-rw-r--r--vcl/unx/source/inc/drawmirror_curs.h2
-rw-r--r--vcl/unx/source/inc/drawmirror_mask.h2
-rw-r--r--vcl/unx/source/inc/drawpie_curs.h2
-rw-r--r--vcl/unx/source/inc/drawpie_mask.h2
-rw-r--r--vcl/unx/source/inc/drawpolygon_curs.h2
-rw-r--r--vcl/unx/source/inc/drawpolygon_mask.h2
-rw-r--r--vcl/unx/source/inc/drawrect_curs.h2
-rw-r--r--vcl/unx/source/inc/drawrect_mask.h2
-rw-r--r--vcl/unx/source/inc/drawtext_curs.h2
-rw-r--r--vcl/unx/source/inc/drawtext_mask.h2
-rw-r--r--vcl/unx/source/inc/fill_curs.h2
-rw-r--r--vcl/unx/source/inc/fill_mask.h2
-rw-r--r--vcl/unx/source/inc/hshear_curs.h2
-rw-r--r--vcl/unx/source/inc/hshear_mask.h2
-rw-r--r--vcl/unx/source/inc/invert50.h2
-rw-r--r--vcl/unx/source/inc/linkdata_curs.h2
-rw-r--r--vcl/unx/source/inc/linkdata_mask.h2
-rw-r--r--vcl/unx/source/inc/linkfile_curs.h2
-rw-r--r--vcl/unx/source/inc/linkfile_mask.h2
-rw-r--r--vcl/unx/source/inc/magnify_curs.h2
-rw-r--r--vcl/unx/source/inc/magnify_mask.h2
-rw-r--r--vcl/unx/source/inc/mirror_curs.h2
-rw-r--r--vcl/unx/source/inc/mirror_mask.h2
-rw-r--r--vcl/unx/source/inc/movebezierweight_curs.h2
-rw-r--r--vcl/unx/source/inc/movebezierweight_mask.h2
-rw-r--r--vcl/unx/source/inc/movedata_curs.h2
-rw-r--r--vcl/unx/source/inc/movedata_mask.h2
-rw-r--r--vcl/unx/source/inc/movedlnk_curs.h2
-rw-r--r--vcl/unx/source/inc/movedlnk_mask.h2
-rw-r--r--vcl/unx/source/inc/movefile_curs.h2
-rw-r--r--vcl/unx/source/inc/movefile_mask.h2
-rw-r--r--vcl/unx/source/inc/movefiles_curs.h2
-rw-r--r--vcl/unx/source/inc/movefiles_mask.h2
-rw-r--r--vcl/unx/source/inc/moveflnk_curs.h2
-rw-r--r--vcl/unx/source/inc/moveflnk_mask.h2
-rw-r--r--vcl/unx/source/inc/movepoint_curs.h2
-rw-r--r--vcl/unx/source/inc/movepoint_mask.h2
-rw-r--r--vcl/unx/source/inc/nodrop_curs.h2
-rw-r--r--vcl/unx/source/inc/nodrop_mask.h2
-rw-r--r--vcl/unx/source/inc/null_curs.h4
-rw-r--r--vcl/unx/source/inc/null_mask.h2
-rw-r--r--vcl/unx/source/inc/pivotcol_curs.h2
-rw-r--r--vcl/unx/source/inc/pivotcol_mask.h2
-rw-r--r--vcl/unx/source/inc/pivotdel_curs.h2
-rw-r--r--vcl/unx/source/inc/pivotdel_mask.h2
-rw-r--r--vcl/unx/source/inc/pivotfld_curs.h2
-rw-r--r--vcl/unx/source/inc/pivotfld_mask.h2
-rw-r--r--vcl/unx/source/inc/pivotrow_curs.h2
-rw-r--r--vcl/unx/source/inc/pivotrow_mask.h2
-rw-r--r--vcl/unx/source/inc/rotate_curs.h2
-rw-r--r--vcl/unx/source/inc/rotate_mask.h2
-rw-r--r--vcl/unx/source/inc/salcursors.h2
-rw-r--r--vcl/unx/source/inc/timemove_curs.h2
-rw-r--r--vcl/unx/source/inc/timemove_mask.h2
-rw-r--r--vcl/unx/source/inc/timesize_curs.h2
-rw-r--r--vcl/unx/source/inc/timesize_mask.h2
-rw-r--r--vcl/unx/source/inc/vertcurs_curs.h2
-rw-r--r--vcl/unx/source/inc/vertcurs_mask.h2
-rw-r--r--vcl/unx/source/inc/vshear_curs.h2
-rw-r--r--vcl/unx/source/inc/vshear_mask.h2
-rw-r--r--vcl/unx/source/plugadapt/salplug.cxx38
-rw-r--r--vcl/unx/source/printer/cupsmgr.cxx196
-rw-r--r--vcl/unx/source/printer/jobdata.cxx26
-rw-r--r--vcl/unx/source/printer/ppdparser.cxx68
-rw-r--r--vcl/unx/source/printer/printerinfomanager.cxx226
-rw-r--r--vcl/unx/source/printergfx/bitmap_gfx.cxx60
-rw-r--r--vcl/unx/source/printergfx/common_gfx.cxx142
-rw-r--r--vcl/unx/source/printergfx/glyphset.cxx200
-rw-r--r--vcl/unx/source/printergfx/glyphset.hxx56
-rw-r--r--vcl/unx/source/printergfx/printerjob.cxx98
-rw-r--r--vcl/unx/source/printergfx/psputil.cxx36
-rw-r--r--vcl/unx/source/printergfx/psputil.hxx14
-rw-r--r--vcl/unx/source/printergfx/text_gfx.cxx140
-rw-r--r--vcl/unx/source/window/FWS.cxx2
-rw-r--r--vcl/unx/source/window/FWS.hxx8
-rw-r--r--vcl/unx/source/window/salframe.cxx736
-rw-r--r--vcl/unx/source/window/salmenu.cxx4
-rw-r--r--vcl/unx/source/window/salobj.cxx100
-rw-r--r--vcl/util/hidother.src4
-rw-r--r--vcl/win/inc/salbmp.h36
-rw-r--r--vcl/win/inc/saldata.hxx14
-rw-r--r--vcl/win/inc/salframe.h82
-rw-r--r--vcl/win/inc/salgdi.h178
-rw-r--r--vcl/win/inc/salids.hrc144
-rw-r--r--vcl/win/inc/salinst.h66
-rw-r--r--vcl/win/inc/salmenu.h2
-rw-r--r--vcl/win/inc/salnativewidgets.h6
-rw-r--r--vcl/win/inc/salobj.h44
-rw-r--r--vcl/win/inc/salprn.h78
-rw-r--r--vcl/win/inc/salsys.h6
-rw-r--r--vcl/win/inc/saltimer.h6
-rw-r--r--vcl/win/inc/salvd.h22
-rw-r--r--vcl/win/inc/svsys.h2
-rw-r--r--vcl/win/inc/wincomp.hxx26
-rw-r--r--vcl/win/source/app/saldata.cxx8
-rw-r--r--vcl/win/source/app/salinfo.cxx10
-rw-r--r--vcl/win/source/app/salinst.cxx34
-rw-r--r--vcl/win/source/app/salshl.cxx2
-rw-r--r--vcl/win/source/app/saltimer.cxx8
-rw-r--r--vcl/win/source/gdi/salbmp.cxx94
-rw-r--r--vcl/win/source/gdi/salgdi.cxx326
-rw-r--r--vcl/win/source/gdi/salgdi2.cxx160
-rw-r--r--vcl/win/source/gdi/salgdi3.cxx228
-rw-r--r--vcl/win/source/gdi/salgdi_gdiplus.cxx12
-rw-r--r--vcl/win/source/gdi/salnativewidgets-luna.cxx88
-rw-r--r--vcl/win/source/gdi/salprn.cxx258
-rw-r--r--vcl/win/source/gdi/salvd.cxx44
-rw-r--r--vcl/win/source/gdi/winlayout.cxx62
-rw-r--r--vcl/win/source/gdi/wntgdi.cxx2
-rw-r--r--vcl/win/source/window/salframe.cxx116
-rw-r--r--vcl/win/source/window/salmenu.cxx8
-rw-r--r--vcl/win/source/window/salobj.cxx134
-rw-r--r--vcl/workben/outdevgrind.cxx40
-rw-r--r--vcl/workben/svdem.cxx16
-rw-r--r--vcl/workben/svpclient.cxx34
-rw-r--r--vcl/workben/svptest.cxx16
-rw-r--r--vcl/workben/vcldemo.cxx18
3650 files changed, 83193 insertions, 83193 deletions
diff --git a/basebmp/inc/basebmp/accessor.hxx b/basebmp/inc/basebmp/accessor.hxx
index 9bf2d1b6d140..ae9a02d5f3d3 100644
--- a/basebmp/inc/basebmp/accessor.hxx
+++ b/basebmp/inc/basebmp/accessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return *i;
}
@@ -62,7 +62,7 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
*i = vigra::detail::RequiresExplicitCast<value_type>::cast(value);
}
@@ -89,8 +89,8 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
- return i.get();
+ {
+ return i.get();
}
template< class Iterator, class Difference >
@@ -103,14 +103,14 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
i.set( vigra::detail::RequiresExplicitCast<value_type>::cast(value) );
}
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- i.set( vigra::detail::RequiresExplicitCast<value_type>::cast(value),
+ i.set( vigra::detail::RequiresExplicitCast<value_type>::cast(value),
diff );
}
};
diff --git a/basebmp/inc/basebmp/accessoradapters.hxx b/basebmp/inc/basebmp/accessoradapters.hxx
index 8fb801d7c8ca..4067bf5e5d73 100644
--- a/basebmp/inc/basebmp/accessoradapters.hxx
+++ b/basebmp/inc/basebmp/accessoradapters.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ namespace basebmp
@tpl WrappedAccessor
Wrapped type must provide the usual get and set accessor methods,
with the usual signatures (see StandardAccessor for a conforming
- example).
+ example).
@tpl GetterFunctor
An Adaptable Unary Function (i.e. providing result_type and
@@ -50,8 +50,8 @@ namespace basebmp
An Adaptable Unary Function (i.e. providing result_type and
argument_type typedefs)
*/
-template< class WrappedAccessor,
- typename GetterFunctor,
+template< class WrappedAccessor,
+ typename GetterFunctor,
typename SetterFunctor > class UnaryFunctionAccessorAdapter
{
public:
@@ -75,12 +75,12 @@ public:
maAccessor(),
maGetterFunctor(),
maSetterFunctor()
- {}
+ {}
- template< class A > explicit
+ template< class A > explicit
UnaryFunctionAccessorAdapter( UnaryFunctionAccessorAdapter< A,
GetterFunctor,
- SetterFunctor > const& rSrc ) :
+ SetterFunctor > const& rSrc ) :
maAccessor( rSrc.maAccessor ),
maGetterFunctor( rSrc.maGetterFunctor ),
maSetterFunctor( rSrc.maSetterFunctor )
@@ -91,7 +91,7 @@ public:
maGetterFunctor(),
maSetterFunctor()
{}
-
+
template< class T > UnaryFunctionAccessorAdapter( T accessor,
GetterFunctor getterFunctor,
SetterFunctor setterFunctor) :
@@ -99,7 +99,7 @@ public:
maGetterFunctor( getterFunctor ),
maSetterFunctor( setterFunctor )
{}
-
+
// -------------------------------------------------------
WrappedAccessor const& getWrappedAccessor() const { return maAccessor; }
@@ -108,11 +108,11 @@ public:
// -------------------------------------------------------
value_type getter(typename GetterFunctor::argument_type v) const
- {
+ {
return maGetterFunctor(v);
}
typename SetterFunctor::result_type setter(argument_type v) const
- {
+ {
return maSetterFunctor(v);
}
@@ -120,7 +120,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return maGetterFunctor( maAccessor(i) );
}
@@ -134,8 +134,8 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
- maAccessor.set(
+ {
+ maAccessor.set(
maSetterFunctor(
vigra::detail::RequiresExplicitCast<argument_type>::cast(value) ),
i );
@@ -144,7 +144,7 @@ public:
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- maAccessor.set(
+ maAccessor.set(
maSetterFunctor(
vigra::detail::RequiresExplicitCast<argument_type>::cast(value) ),
i,
@@ -169,7 +169,7 @@ public:
An adaptable binary function (i.e. providing nested typedefs for
result_type and first and second argument type)
*/
-template< class WrappedAccessor,
+template< class WrappedAccessor,
typename SetterFunctor > class BinarySetterFunctionAccessorAdapter
{
public:
@@ -189,12 +189,12 @@ public:
BinarySetterFunctionAccessorAdapter() :
maAccessor(),
maFunctor()
- {}
+ {}
- template< class A > explicit
- BinarySetterFunctionAccessorAdapter(
+ template< class A > explicit
+ BinarySetterFunctionAccessorAdapter(
BinarySetterFunctionAccessorAdapter< A,
- SetterFunctor > const& rSrc ) :
+ SetterFunctor > const& rSrc ) :
maAccessor( rSrc.maAccessor ),
maFunctor( rSrc.maFunctor )
{}
@@ -203,13 +203,13 @@ public:
maAccessor( accessor ),
maFunctor()
{}
-
+
template< class T > BinarySetterFunctionAccessorAdapter( T accessor,
SetterFunctor functor ) :
maAccessor( accessor ),
maFunctor( functor )
{}
-
+
// -------------------------------------------------------
WrappedAccessor const& getWrappedAccessor() const { return maAccessor; }
@@ -217,10 +217,10 @@ public:
// -------------------------------------------------------
- typename SetterFunctor::result_type setter(
+ typename SetterFunctor::result_type setter(
typename SetterFunctor::first_argument_type v1,
argument_type v2 ) const
- {
+ {
return maSetterFunctor(v1,v2);
}
@@ -228,7 +228,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return maAccessor(i);
}
@@ -242,9 +242,9 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
- maAccessor.set(
- maFunctor(maAccessor(i),
+ {
+ maAccessor.set(
+ maFunctor(maAccessor(i),
vigra::detail::RequiresExplicitCast<argument_type>::cast(value)),
i );
}
@@ -253,7 +253,7 @@ public:
void set(V const& value, Iterator const& i, Difference const& diff) const
{
maAccessor.set(
- maFunctor(maAccessor(i,diff),
+ maFunctor(maAccessor(i,diff),
vigra::detail::RequiresExplicitCast<argument_type>::cast(value)),
i,
diff );
@@ -284,8 +284,8 @@ public:
An adaptable ternary function (i.e. providing nested typedefs for
result_type and first, second and third argument type)
*/
-template< class WrappedAccessor1,
- class WrappedAccessor2,
+template< class WrappedAccessor1,
+ class WrappedAccessor2,
typename Functor > class TernarySetterFunctionAccessorAdapter
{
public:
@@ -316,16 +316,16 @@ public:
{}
template< class A1, class A2 > explicit
- TernarySetterFunctionAccessorAdapter(
+ TernarySetterFunctionAccessorAdapter(
TernarySetterFunctionAccessorAdapter< A1,
A2,
- Functor > const& rSrc ) :
+ Functor > const& rSrc ) :
ma1stAccessor( rSrc.ma1stAccessor ),
ma2ndAccessor( rSrc.ma2ndAccessor ),
maFunctor( rSrc.maFunctor )
{}
- template< class T1, class T2 >
+ template< class T1, class T2 >
TernarySetterFunctionAccessorAdapter( T1 accessor1,
T2 accessor2 ) :
ma1stAccessor( accessor1 ),
@@ -333,7 +333,7 @@ public:
maFunctor()
{}
- template< class T1, class T2 >
+ template< class T1, class T2 >
TernarySetterFunctionAccessorAdapter( T1 accessor1,
T2 accessor2,
Functor func ) :
@@ -341,7 +341,7 @@ public:
ma2ndAccessor( accessor2 ),
maFunctor( func )
{}
-
+
// -------------------------------------------------------
WrappedAccessor1 const& get1stWrappedAccessor() const { return ma1stAccessor; }
@@ -352,11 +352,11 @@ public:
// -------------------------------------------------------
- typename Functor::result_type setter(
+ typename Functor::result_type setter(
typename Functor::first_argument_type v1,
typename Functor::second_argument_type v2,
argument_type v3 ) const
- {
+ {
return maSetterFunctor(v1,v2,v3);
}
@@ -364,7 +364,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return ma1stAccessor(i.first());
}
@@ -378,9 +378,9 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
ma1stAccessor.set(
- maFunctor(ma1stAccessor(i.first()),
+ maFunctor(ma1stAccessor(i.first()),
ma2ndAccessor(i.second()),
vigra::detail::RequiresExplicitCast<argument_type>::cast(value)),
i.first() );
@@ -390,7 +390,7 @@ public:
void set(V const& value, Iterator const& i, Difference const& diff) const
{
ma1stAccessor.set(
- maFunctor(ma1stAccessor(i.first(), diff),
+ maFunctor(ma1stAccessor(i.first(), diff),
ma2ndAccessor(i.second(),diff),
vigra::detail::RequiresExplicitCast<argument_type>::cast(value)),
i.first(),
@@ -398,7 +398,7 @@ public:
}
};
-
+
//-----------------------------------------------------------------------------
/** Access two distinct images simultaneously
@@ -421,7 +421,7 @@ public:
example). Furthermore, the type must provide a nested typedef
value_type.
*/
-template< class WrappedAccessor1,
+template< class WrappedAccessor1,
class WrappedAccessor2 > class JoinImageAccessorAdapter
{
public:
@@ -452,14 +452,14 @@ public:
{}
template< class A1, class A2 > explicit
- JoinImageAccessorAdapter(
+ JoinImageAccessorAdapter(
JoinImageAccessorAdapter< A1,
- A2 > const& rSrc ) :
+ A2 > const& rSrc ) :
ma1stAccessor( rSrc.ma1stAccessor ),
ma2ndAccessor( rSrc.ma2ndAccessor )
{}
- template< class T1, class T2 >
+ template< class T1, class T2 >
JoinImageAccessorAdapter( T1 accessor1,
T2 accessor2 ) :
ma1stAccessor( accessor1 ),
@@ -478,7 +478,7 @@ public:
template< class Iterator >
value_type operator()(Iterator const& i) const
- {
+ {
return std::make_pair(ma1stAccessor(i.first()),
ma2ndAccessor(i.second()));
}
@@ -494,12 +494,12 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
- ma1stAccessor.set(
+ {
+ ma1stAccessor.set(
vigra::detail::RequiresExplicitCast<typename WrappedAccessor1::value_type>::cast(
value.first),
i.first() );
- ma2ndAccessor.set(
+ ma2ndAccessor.set(
vigra::detail::RequiresExplicitCast<typename WrappedAccessor2::value_type>::cast(
value.second),
i.second() );
@@ -508,19 +508,19 @@ public:
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- ma1stAccessor.set(
+ ma1stAccessor.set(
vigra::detail::RequiresExplicitCast<typename WrappedAccessor1::value_type>::cast(
value.first),
i.first(),
diff );
- ma2ndAccessor.set(
+ ma2ndAccessor.set(
vigra::detail::RequiresExplicitCast<typename WrappedAccessor2::value_type>::cast(
value.second),
i.second(),
diff );
}
-};
+};
} // namespace basebmp
diff --git a/basebmp/inc/basebmp/accessorfunctors.hxx b/basebmp/inc/basebmp/accessorfunctors.hxx
index 1d5464ac0c2f..32f4e60a85b4 100644
--- a/basebmp/inc/basebmp/accessorfunctors.hxx
+++ b/basebmp/inc/basebmp/accessorfunctors.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ template< typename T > struct XorFunctor : public std::binary_function<T,T,T>
//-----------------------------------------------------------------------------
/// Base class, passing on the arg types
-template< typename T, typename M > struct MaskFunctorBase :
+template< typename T, typename M > struct MaskFunctorBase :
public TernaryFunctorBase<T,M,T,T> {};
@@ -61,8 +61,8 @@ template< typename T, typename M > struct MaskFunctorBase :
transparency, i.e. the original value will display. And vice
versa.
*/
-template< typename T,
- typename M,
+template< typename T,
+ typename M,
bool polarity > struct GenericOutputMaskFunctor : public MaskFunctorBase<T,M>
{
/// Ternary mask operation - selects v1 for !m == polarity, v2 otherwise
@@ -75,14 +75,14 @@ template< typename T,
/** Let a mask bit decide between two values (specialization for
integer mask types)
*/
-template< typename T,
+template< typename T,
typename M,
bool polarity > struct IntegerOutputMaskFunctor;
-template< typename T,
+template< typename T,
typename M > struct IntegerOutputMaskFunctor<T,M,true> : public MaskFunctorBase<T,M>
{
/** Mask v with state of m
-
+
@return v2, if m != 0, v1 otherwise.
*/
T operator()( T v1, M m, T v2 ) const
@@ -94,11 +94,11 @@ template< typename T,
return v1*(M)(1-mask) + v2*mask;
}
};
-template< typename T,
+template< typename T,
typename M > struct IntegerOutputMaskFunctor<T,M,false> : public MaskFunctorBase<T,M>
{
/** Mask v with state of m
-
+
@return v2, if m != 0, v1 otherwise.
*/
T operator()( T v1, M m, T v2 ) const
@@ -115,7 +115,7 @@ template< typename T,
binary-valued mask types)
*/
template< typename T, typename M, bool polarity > struct FastIntegerOutputMaskFunctor;
-template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,true> :
+template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,true> :
public MaskFunctorBase<T,M>
{
/// Specialization, only valid if mask can only attain 0 or 1
@@ -126,7 +126,7 @@ template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,true>
return v1*(M)(1-m) + v2*m;
}
};
-template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,false> :
+template< typename T, typename M > struct FastIntegerOutputMaskFunctor<T,M,false> :
public MaskFunctorBase<T,M>
{
/// Specialization, only valid if mask can only attain 0 or 1
@@ -167,14 +167,14 @@ private:
public:
BinaryFunctorSplittingWrapper() : maFunctor() {}
- template< class A > explicit
- BinaryFunctorSplittingWrapper(
+ template< class A > explicit
+ BinaryFunctorSplittingWrapper(
BinaryFunctorSplittingWrapper<A> const& src ) : maFunctor(src.maFunctor) {}
- template< class F > explicit
+ template< class F > explicit
BinaryFunctorSplittingWrapper( F const& func ) : maFunctor(func) {}
- typename Functor::result_type operator()(
+ typename Functor::result_type operator()(
typename Functor::first_argument_type v1,
std::pair< typename Functor::third_argument_type,
typename Functor::second_argument_type > const& v2 ) const
diff --git a/basebmp/inc/basebmp/accessortraits.hxx b/basebmp/inc/basebmp/accessortraits.hxx
index e54da3f3b5ea..15a5a041cd73 100644
--- a/basebmp/inc/basebmp/accessortraits.hxx
+++ b/basebmp/inc/basebmp/accessortraits.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,13 +61,13 @@ template< typename T, typename M, bool polarity > struct outputMaskFunctorSelect
Specialize this metafunction for your case, and pass FastMask to
the outputMaskFunctorSelector.
*/
-template< class Accessor,
- class MaskAccessor,
+template< class Accessor,
+ class MaskAccessor,
class Iterator,
class MaskIterator,
bool polarity > struct maskedAccessorSelector
{
- typedef TernarySetterFunctionAccessorAdapter<
+ typedef TernarySetterFunctionAccessorAdapter<
Accessor,
MaskAccessor,
typename outputMaskFunctorSelector<
@@ -97,7 +97,7 @@ template< class Accessor > struct AccessorTraits
typedef Accessor raw_accessor;
/// Retrieve wrapped accessor for XOR setter access
- typedef BinarySetterFunctionAccessorAdapter<
+ typedef BinarySetterFunctionAccessorAdapter<
Accessor,
XorFunctor< value_type > > xor_accessor;
@@ -113,7 +113,7 @@ template< class Accessor > struct AccessorTraits
partial specializations that take an optimized functor for
certain mask accessors.
*/
- template< class MaskAccessor,
+ template< class MaskAccessor,
class Iterator,
class MaskIterator,
bool polarity > struct masked_accessor :
diff --git a/basebmp/inc/basebmp/bitmapdevice.hxx b/basebmp/inc/basebmp/bitmapdevice.hxx
index e026f3165fbb..f41498973120 100644
--- a/basebmp/inc/basebmp/bitmapdevice.hxx
+++ b/basebmp/inc/basebmp/bitmapdevice.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ typedef boost::shared_ptr< const std::vector<Color> > PaletteMemorySharedVecto
struct ImplBitmapDevice;
-/** Definition of BitmapDevice interface
+/** Definition of BitmapDevice interface
Use the createBitmapDevice() factory method to create instances.
@@ -144,7 +144,7 @@ public:
Draw mode to use when changing the pixel value
*/
void setPixel( const basegfx::B2IPoint& rPt,
- Color pixelColor,
+ Color pixelColor,
DrawMode drawMode );
/** Set given pixel to specified color
@@ -162,9 +162,9 @@ public:
Clip mask to use. If the clip mask is 1 at the given pixel
position, no change will take place.
*/
- void setPixel( const basegfx::B2IPoint& rPt,
- Color pixelColor,
- DrawMode drawMode,
+ void setPixel( const basegfx::B2IPoint& rPt,
+ Color pixelColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Get color value at given pixel
@@ -184,7 +184,7 @@ public:
@param rPt1
Start point of the line
- @param rPt2
+ @param rPt2
End point of the line. If the analytical line from rP1 to rPt2
(with the actual pixel positions assumed to be the center of
the pixel) is exactly in the middle between two pixel, this
@@ -196,9 +196,9 @@ public:
@param drawMode
Draw mode to use when changing the pixel value
*/
- void drawLine( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
- Color lineColor,
+ void drawLine( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
+ Color lineColor,
DrawMode drawMode );
/** Draw a line
@@ -206,7 +206,7 @@ public:
@param rPt1
Start point of the line
- @param rPt2
+ @param rPt2
End point of the line. If the analytical line from rP1 to rPt2
(with the actual pixel positions assumed to be the center of
the pixel) is exactly in the middle between two pixel, this
@@ -222,10 +222,10 @@ public:
Clip mask to use. Pixel where the corresponding clip mask
pixel is 1 will not be modified.
*/
- void drawLine( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
- Color lineColor,
- DrawMode drawMode,
+ void drawLine( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Draw a polygon
@@ -241,8 +241,8 @@ public:
@param drawMode
Draw mode to use when changing pixel values
*/
- void drawPolygon( const basegfx::B2DPolygon& rPoly,
- Color lineColor,
+ void drawPolygon( const basegfx::B2DPolygon& rPoly,
+ Color lineColor,
DrawMode drawMode );
/** Draw a polygon
@@ -262,9 +262,9 @@ public:
Clip mask to use. Pixel where the corresponding clip mask
pixel is 1 will not be modified.
*/
- void drawPolygon( const basegfx::B2DPolygon& rPoly,
- Color lineColor,
- DrawMode drawMode,
+ void drawPolygon( const basegfx::B2DPolygon& rPoly,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Fill a poly-polygon
@@ -285,8 +285,8 @@ public:
@param drawMode
Draw mode to use when changing pixel values
*/
- void fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ void fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode );
/** Fill a poly-polygon
@@ -311,9 +311,9 @@ public:
Clip mask to use. Pixel where the corresponding clip mask
pixel is 1 will not be modified.
*/
- void fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
- DrawMode drawMode,
+ void fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Draw another bitmap into this device
@@ -342,7 +342,7 @@ public:
*/
void drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode );
/** Draw another bitmap into this device
@@ -375,8 +375,8 @@ public:
*/
void drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
/** Draw a color with an alpha-modulation bitmap into this device
@@ -445,9 +445,9 @@ public:
void drawMaskedColor( Color aSrcColor,
const BitmapDeviceSharedPtr& rAlphaMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IPoint& rDstPoint,
+ const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip );
-
+
/** Draw another bitmap through a mask into this device
This method renders a source bitmap into this device, much
@@ -486,7 +486,7 @@ public:
void drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode );
/** Draw another bitmap through a mask into this device
@@ -531,8 +531,8 @@ public:
void drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip );
protected:
@@ -554,58 +554,58 @@ private:
const basegfx::B2IRange& rBounds ) = 0;
virtual void setPixel_i( const basegfx::B2IPoint& rPt,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode ) = 0;
- virtual void setPixel_i( const basegfx::B2IPoint& rPt,
- Color lineColor,
- DrawMode drawMode,
+ virtual void setPixel_i( const basegfx::B2IPoint& rPt,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
virtual Color getPixel_i( const basegfx::B2IPoint& rPt ) = 0;
virtual sal_uInt32 getPixelData_i( const basegfx::B2IPoint& rPt ) = 0;
- virtual void drawLine_i( const basegfx::B2IPoint& rPt1,
+ virtual void drawLine_i( const basegfx::B2IPoint& rPt1,
const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode ) = 0;
- virtual void drawLine_i( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
+ virtual void drawLine_i( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
- Color lineColor,
- DrawMode drawMode,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
- virtual void drawPolygon_i( const basegfx::B2DPolygon& rPoly,
+ virtual void drawPolygon_i( const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode ) = 0;
- virtual void drawPolygon_i( const basegfx::B2DPolygon& rPoly,
+ virtual void drawPolygon_i( const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
- Color lineColor,
- DrawMode drawMode,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
- virtual void fillPolyPolygon_i( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ virtual void fillPolyPolygon_i( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode,
const basegfx::B2IRange& rBounds ) = 0;
- virtual void fillPolyPolygon_i( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ virtual void fillPolyPolygon_i( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode,
- const basegfx::B2IRange& rBounds,
+ const basegfx::B2IRange& rBounds,
const BitmapDeviceSharedPtr& rClip ) = 0;
// must work with *this == rSrcBitmap!
virtual void drawBitmap_i( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode ) = 0;
virtual void drawBitmap_i( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
// must work with *this == rSrcBitmap!
@@ -616,20 +616,20 @@ private:
virtual void drawMaskedColor_i( Color rSrcColor,
const BitmapDeviceSharedPtr& rAlphaMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IPoint& rDstPoint,
+ const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip ) = 0;
-
+
// must work with *this == rSrcBitmap!
virtual void drawMaskedBitmap_i( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode ) = 0;
virtual void drawMaskedBitmap_i( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip ) = 0;
BitmapDeviceSharedPtr getGenericRenderer() const;
diff --git a/basebmp/inc/basebmp/clippedlinerenderer.hxx b/basebmp/inc/basebmp/clippedlinerenderer.hxx
index e023581416d6..b2d7f3710a28 100644
--- a/basebmp/inc/basebmp/clippedlinerenderer.hxx
+++ b/basebmp/inc/basebmp/clippedlinerenderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace basebmp
// factored-out bresenham setup code, which is used from two different
// places in renderClippedLine() below. Admittedly messy for the long
// parameter list...
-inline bool prepareClip( sal_Int32 a1,
+inline bool prepareClip( sal_Int32 a1,
sal_Int32 a2,
sal_Int32 b1,
sal_Int32 da,
@@ -51,7 +51,7 @@ inline bool prepareClip( sal_Int32 a1,
sal_Int32& o_bs,
int sa,
int sb,
- sal_Int32& io_rem,
+ sal_Int32& io_rem,
int& o_n,
sal_uInt32 clipCode1,
sal_uInt32 clipCount1,
@@ -98,7 +98,7 @@ inline bool prepareClip( sal_Int32 a1,
if( clipCode1 & (aMinFlag|aMaxFlag) )
{
cb = (ca + da - !bRoundTowardsPt2) / (2*da);
-
+
if( sb >= 0 )
{
o_bs = b1 + cb;
@@ -111,7 +111,7 @@ inline bool prepareClip( sal_Int32 a1,
if( o_bs < bMin )
return false;
}
-
+
io_rem += ca - 2*da*cb;
}
else
@@ -129,7 +129,7 @@ inline bool prepareClip( sal_Int32 a1,
if( o_as < aMin )
return false;
}
-
+
io_rem += 2*db*ca - cb;
}
}
@@ -147,7 +147,7 @@ inline bool prepareClip( sal_Int32 a1,
cb = 2*da*((clipCode2 & bMinFlag) ? b1 - bMin : bMax - b1);
clipCode2 &= (cb + da < ca + bRoundTowardsPt2) ? ~(aMinFlag|aMaxFlag) : ~(bMinFlag|bMaxFlag);
}
-
+
if( clipCode2 & (aMinFlag|aMaxFlag) )
o_n = (clipCode2 & aMinFlag) ? o_as - aMin : aMax - o_as;
else
@@ -187,7 +187,7 @@ inline bool prepareClip( sal_Int32 a1,
@param end
right-bottom image iterator
-
+
@param acc
Image accessor
@@ -197,20 +197,20 @@ inline bool prepareClip( sal_Int32 a1,
pixel, the pixel closer to pt1 will be chosen. Giving true here
makes renderClippedLine() choose pt2 in those cases.
*/
-template< class Iterator, class Accessor >
+template< class Iterator, class Accessor >
void renderClippedLine( basegfx::B2IPoint aPt1,
basegfx::B2IPoint aPt2,
const basegfx::B2IRange& rClipRect,
typename Accessor::value_type color,
- Iterator begin,
- Accessor acc,
+ Iterator begin,
+ Accessor acc,
bool bRoundTowardsPt2=false )
{
// Algorithm according to Steven Eker's 'Pixel-perfect line clipping',
// Graphics Gems V, pp. 314-322
- sal_uInt32 clipCode1 = basegfx::tools::getCohenSutherlandClipFlags(aPt1,
+ sal_uInt32 clipCode1 = basegfx::tools::getCohenSutherlandClipFlags(aPt1,
rClipRect);
- sal_uInt32 clipCode2 = basegfx::tools::getCohenSutherlandClipFlags(aPt2,
+ sal_uInt32 clipCode2 = basegfx::tools::getCohenSutherlandClipFlags(aPt2,
rClipRect);
if( clipCode1 & clipCode2 )
@@ -219,7 +219,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
sal_uInt32 clipCount1 = basegfx::tools::getNumberOfClipPlanes(clipCode1);
sal_uInt32 clipCount2 = basegfx::tools::getNumberOfClipPlanes(clipCode2);
- if( (clipCode1 != 0 && clipCode2 == 0)
+ if( (clipCode1 != 0 && clipCode2 == 0)
|| (clipCount1 == 2 && clipCount2 == 1) )
{
std::swap(clipCount2,clipCount1);
@@ -241,7 +241,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
adx *= -1;
sx = -1;
}
-
+
// TODO(E1): This might overflow
sal_Int32 ady = y2 - y1;
int sy = 1;
@@ -250,7 +250,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
ady *= -1;
sy = -1;
}
-
+
int n = 0;
sal_Int32 xs = x1;
sal_Int32 ys = y1;
@@ -269,7 +269,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
bRoundTowardsPt2 ));
Iterator currIter( begin + vigra::Diff2D(0,ys) );
- typename vigra::IteratorTraits<Iterator>::row_iterator
+ typename vigra::IteratorTraits<Iterator>::row_iterator
rowIter( currIter.rowIterator() + xs );
adx *= 2;
@@ -308,7 +308,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
{
acc.set(color, rowIter);
- if( --n < 0 )
+ if( --n < 0 )
break;
if( rem >= 0 )
@@ -345,7 +345,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
bRoundTowardsPt2 ));
Iterator currIter( begin + vigra::Diff2D(xs,0) );
- typename vigra::IteratorTraits<Iterator>::column_iterator
+ typename vigra::IteratorTraits<Iterator>::column_iterator
colIter( currIter.columnIterator() + ys );
adx *= 2;
@@ -365,7 +365,7 @@ void renderClippedLine( basegfx::B2IPoint aPt1,
xs += sx;
ys += sy;
rem -= ady;
-
+
currIter.x += sx;
colIter = currIter.columnIterator() + ys;
}
diff --git a/basebmp/inc/basebmp/color.hxx b/basebmp/inc/basebmp/color.hxx
index 1bd70198a280..df5516127a36 100644
--- a/basebmp/inc/basebmp/color.hxx
+++ b/basebmp/inc/basebmp/color.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ namespace basebmp
class Color
{
private:
- sal_uInt32 mnColor;
+ sal_uInt32 mnColor;
public:
typedef sal_uInt32 value_type;
@@ -55,7 +55,7 @@ public:
void setBlue( sal_uInt8 nBlue ) { mnColor &= ~0x000000FFUL; mnColor |= nBlue; }
void setGrey( sal_uInt8 nGreyVal ) { mnColor = (sal_uInt32)nGreyVal << 16 | (sal_uInt32)nGreyVal << 8 | nGreyVal; }
-
+
sal_uInt8 getRed() const { return 0xFF & (sal_uInt8)(mnColor >> 16); }
sal_uInt8 getGreen() const { return 0xFF & (sal_uInt8)(mnColor >> 8); }
sal_uInt8 getBlue() const { return 0xFF & (sal_uInt8)mnColor; }
diff --git a/basebmp/inc/basebmp/colorblendaccessoradapter.hxx b/basebmp/inc/basebmp/colorblendaccessoradapter.hxx
index 4bb913500bd9..b1a0e33a7349 100644
--- a/basebmp/inc/basebmp/colorblendaccessoradapter.hxx
+++ b/basebmp/inc/basebmp/colorblendaccessoradapter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ namespace basebmp
when blitting through a mask) - there really isn't no other
sensible default behaviour for these methods.
*/
-template< class WrappedAccessor,
+template< class WrappedAccessor,
typename AlphaType,
bool polarity > class ConstantColorBlendSetterAccessorAdapter
{
@@ -54,7 +54,7 @@ public:
typedef typename WrappedAccessor::value_type color_type;
private:
- typename ColorTraits< color_type >::
+ typename ColorTraits< color_type >::
template blend_functor<alpha_type,polarity>::type maFunctor;
WrappedAccessor maWrappee;
color_type maBlendColor;
@@ -107,14 +107,14 @@ public:
// -------------------------------------------------------
/// @return constant value, regardless of iterator content
- template< typename IteratorType > value_type operator()(IteratorType const& ) const
- {
+ template< typename IteratorType > value_type operator()(IteratorType const& ) const
+ {
return maGetterValue;
}
/// @return constant value, regardless of iterator content
template< typename IteratorType, class Difference >
value_type operator()(IteratorType const& , Difference const& ) const
- {
+ {
return maGetterValue;
}
@@ -122,7 +122,7 @@ public:
template< typename V, typename IteratorType >
void set(V const& value, IteratorType const& i) const
- {
+ {
maWrappee.set(
maFunctor(
vigra::detail::RequiresExplicitCast<alpha_type>::cast(value),
@@ -143,7 +143,7 @@ public:
diff );
}
};
-
+
} // namespace basebmp
#endif /* INCLUDED_BASEBMP_COLORBLENDACCESSORADAPTER_HXX */
diff --git a/basebmp/inc/basebmp/colormisc.hxx b/basebmp/inc/basebmp/colormisc.hxx
index 96a312c251ae..99685674b771 100644
--- a/basebmp/inc/basebmp/colormisc.hxx
+++ b/basebmp/inc/basebmp/colormisc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -128,18 +128,18 @@ template<> struct ColorTraits< Color >
template< typename AlphaType, bool polarity > struct blend_functor;
/// Calculate normalized distance between color c1 and c2
- static inline double distance( const Color& c1,
- const Color& c2 )
- {
+ static inline double distance( const Color& c1,
+ const Color& c2 )
+ {
return (c1 - c2).magnitude();
}
- static inline component_type toGreyscale( const Color& c )
+ static inline component_type toGreyscale( const Color& c )
{
return c.getGreyscale();
}
- static inline Color fromGreyscale( component_type c )
+ static inline Color fromGreyscale( component_type c )
{
return Color(c,c,c);
}
@@ -176,7 +176,7 @@ struct NumericTraits<basebmp::Color>
typedef VigraTrueType isSigned;
typedef VigraTrueType isOrdered;
typedef VigraFalseType isComplex;
-
+
static Type zero() { return Type(); }
static Type one() { return Type(0x01010101); }
static Type nonZero() { return Type(0x01010101); }
diff --git a/basebmp/inc/basebmp/colortraits.hxx b/basebmp/inc/basebmp/colortraits.hxx
index ba6a4cfeee27..4fb75caa7f6d 100644
--- a/basebmp/inc/basebmp/colortraits.hxx
+++ b/basebmp/inc/basebmp/colortraits.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,10 +44,10 @@ namespace basebmp
When true, 0 means fully transparent, and 1 fully opaque. And vice
versa.
*/
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType,
bool polarity > struct BlendFunctor;
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType > struct BlendFunctor<ValueType,AlphaType,true>
: public TernaryFunctorBase<AlphaType,ValueType,ValueType,ValueType>
{
@@ -60,7 +60,7 @@ template< typename ValueType,
return (vigra::NumericTraits<AlphaType>::one()-fAlpha)*v1 + fAlpha*v2;
}
};
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType > struct BlendFunctor<ValueType,AlphaType,false>
: public TernaryFunctorBase<AlphaType,ValueType,ValueType,ValueType>
{
@@ -79,12 +79,12 @@ template< typename ValueType,
@tpl polarity
When true, 0 means fully transparent, and 1 fully opaque. And vice
- versa.
+ versa.
*/
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType,
bool polarity > struct IntegerBlendFunctor;
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType > struct IntegerBlendFunctor<ValueType,AlphaType,true>
: public TernaryFunctorBase<AlphaType,ValueType,ValueType,ValueType>
{
@@ -97,7 +97,7 @@ template< typename ValueType,
vigra::NumericTraits<AlphaType>::max();
}
};
-template< typename ValueType,
+template< typename ValueType,
typename AlphaType > struct IntegerBlendFunctor<ValueType,AlphaType,false>
: public TernaryFunctorBase<AlphaType,ValueType,ValueType,ValueType>
{
@@ -105,7 +105,7 @@ template< typename ValueType,
ValueType v1,
ValueType v2 ) const
{
- return (alpha*v1 +
+ return (alpha*v1 +
vigra::NumericTraits<AlphaType>::toPromote(
vigra::NumericTraits<AlphaType>::max()-alpha)*v2) /
vigra::NumericTraits<AlphaType>::max();
@@ -129,18 +129,18 @@ template< typename ColorType > struct ColorTraits
typedef ColorType component_type;
/// Calculate normalized distance between color c1 and c2
- static inline vigra::NormTraits<ColorType> distance( ColorType c1,
- ColorType c2 )
- {
+ static inline vigra::NormTraits<ColorType> distance( ColorType c1,
+ ColorType c2 )
+ {
return vigra::norm(c1 - c2);
}
- static inline component_type toGreyscale( ColorType c )
+ static inline component_type toGreyscale( ColorType c )
{
return c;
}
- static inline ColorType fromGreyscale( component_type c )
+ static inline ColorType fromGreyscale( component_type c )
{
return c;
}
diff --git a/basebmp/inc/basebmp/compositeiterator.hxx b/basebmp/inc/basebmp/compositeiterator.hxx
index e64cf0d8c093..a821fbddbe47 100644
--- a/basebmp/inc/basebmp/compositeiterator.hxx
+++ b/basebmp/inc/basebmp/compositeiterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,16 +79,16 @@ namespace detail
{ return *mpVal1 - *rhs.mpVal1; }
private:
- T1* mpVal1;
- T2* mpVal2;
+ T1* mpVal1;
+ T2* mpVal2;
};
- template< typename Iterator1,
- typename Iterator2,
- typename ValueType,
+ template< typename Iterator1,
+ typename Iterator2,
+ typename ValueType,
typename DifferenceType,
typename IteratorCategory,
- class Derived >
+ class Derived >
class CompositeIteratorBase : public NonStandardIterator
{
public:
@@ -110,12 +110,12 @@ namespace detail
public:
CompositeIteratorBase() :
- maIter1(),
+ maIter1(),
maIter2()
{}
CompositeIteratorBase( const iterator1_type& rIter1, const iterator2_type& rIter2 ) :
- maIter1( rIter1 ),
+ maIter1( rIter1 ),
maIter2( rIter2 )
{}
@@ -225,7 +225,7 @@ namespace detail
};
}
-/** Provide the composition of two 1D image iterators
+/** Provide the composition of two 1D image iterators
Use this template to compose two iterators into one (e.g. image
and mask). Operations are transitive, e.g. operator== only returns
@@ -235,31 +235,31 @@ namespace detail
avoid funny effects, iterator ranges given by a CompositeIterator
should consist of wrapped iterators of similar range
*/
-template< typename Iterator1,
+template< typename Iterator1,
typename Iterator2,
- typename ValueType,
+ typename ValueType,
typename DifferenceType,
- typename IteratorCategory >
-class CompositeIterator1D :
- public detail::CompositeIteratorBase< Iterator1,
- Iterator2,
+ typename IteratorCategory >
+class CompositeIterator1D :
+ public detail::CompositeIteratorBase< Iterator1,
+ Iterator2,
ValueType,
DifferenceType,
IteratorCategory,
- CompositeIterator1D<Iterator1,
+ CompositeIterator1D<Iterator1,
Iterator2,
- ValueType,
+ ValueType,
DifferenceType,
IteratorCategory> >
{
- typedef detail::CompositeIteratorBase< Iterator1,
- Iterator2,
+ typedef detail::CompositeIteratorBase< Iterator1,
+ Iterator2,
ValueType,
DifferenceType,
IteratorCategory,
- CompositeIterator1D<Iterator1,
+ CompositeIterator1D<Iterator1,
Iterator2,
- ValueType,
+ ValueType,
DifferenceType,
IteratorCategory> > base_type;
public:
@@ -267,13 +267,13 @@ public:
base_type()
{}
- CompositeIterator1D( const Iterator1& rIter1,
+ CompositeIterator1D( const Iterator1& rIter1,
const Iterator2& rIter2 ) :
base_type( rIter1, rIter2 )
{}
};
-/** Provide the composition of two 2D image iterators
+/** Provide the composition of two 2D image iterators
Use this template to compose two iterators into one (e.g. image
and mask). Operations are transitive, e.g. operator== only returns
@@ -283,23 +283,23 @@ public:
avoid funny effects, iterator ranges given by a CompositeIterator
should consist of wrapped iterators of similar range
*/
-template< typename Iterator1, typename Iterator2 > class CompositeIterator2D :
- public detail::CompositeIteratorBase< Iterator1,
- Iterator2,
+template< typename Iterator1, typename Iterator2 > class CompositeIterator2D :
+ public detail::CompositeIteratorBase< Iterator1,
+ Iterator2,
std::pair<
- typename vigra::IteratorTraits<Iterator1>::value_type,
+ typename vigra::IteratorTraits<Iterator1>::value_type,
typename vigra::IteratorTraits<Iterator2>::value_type >,
- typename vigra::IteratorTraits<Iterator1>::difference_type,
- typename vigra::IteratorTraits<Iterator1>::iterator_category,
+ typename vigra::IteratorTraits<Iterator1>::difference_type,
+ typename vigra::IteratorTraits<Iterator1>::iterator_category,
CompositeIterator2D<Iterator1, Iterator2> >
{
- typedef detail::CompositeIteratorBase< Iterator1,
- Iterator2,
+ typedef detail::CompositeIteratorBase< Iterator1,
+ Iterator2,
std::pair<
- typename vigra::IteratorTraits<Iterator1>::value_type,
+ typename vigra::IteratorTraits<Iterator1>::value_type,
typename vigra::IteratorTraits<Iterator2>::value_type >,
- typename vigra::IteratorTraits<Iterator1>::difference_type,
- typename vigra::IteratorTraits<Iterator1>::iterator_category,
+ typename vigra::IteratorTraits<Iterator1>::difference_type,
+ typename vigra::IteratorTraits<Iterator1>::iterator_category,
CompositeIterator2D<Iterator1, Iterator2> > base_type;
public:
typedef CompositeIterator1D< typename Iterator1::row_iterator,
@@ -362,7 +362,7 @@ public:
this->maIter2.columnIterator());
}
};
-
+
} // namespace basebmp
#endif /* INCLUDED_BASEBMP_COMPOSITEITERATOR_HXX */
diff --git a/basebmp/inc/basebmp/debug.hxx b/basebmp/inc/basebmp/debug.hxx
index c5660b9a6a74..1d72099a3b72 100644
--- a/basebmp/inc/basebmp/debug.hxx
+++ b/basebmp/inc/basebmp/debug.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,13 +37,13 @@ namespace basebmp
class BitmapDevice;
/** Dump content of BitmapDevice to given output stream.
-
- @param rDevice
+
+ @param rDevice
Device whose content should be dumped.
-
- @param rOutputStream
- Stream to write output to.
- */
+
+ @param rOutputStream
+ Stream to write output to.
+ */
void debugDump( const boost::shared_ptr< BitmapDevice >& rDevice,
::std::ostream& rOutputStream );
}
diff --git a/basebmp/inc/basebmp/drawmodes.hxx b/basebmp/inc/basebmp/drawmodes.hxx
index 7e59f81b6140..7e243374449d 100644
--- a/basebmp/inc/basebmp/drawmodes.hxx
+++ b/basebmp/inc/basebmp/drawmodes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
namespace basebmp
{
- enum DrawMode
+ enum DrawMode
{
/** Default draw mode, which simply renders pixel in the
requested color
diff --git a/basebmp/inc/basebmp/endian.hxx b/basebmp/inc/basebmp/endian.hxx
index 03a0dbeb9fbf..7bdeb111337f 100644
--- a/basebmp/inc/basebmp/endian.hxx
+++ b/basebmp/inc/basebmp/endian.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/inc/basebmp/fillimage.hxx b/basebmp/inc/basebmp/fillimage.hxx
index d3809ecc0b6e..2ec90b4b0db3 100644
--- a/basebmp/inc/basebmp/fillimage.hxx
+++ b/basebmp/inc/basebmp/fillimage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,8 +36,8 @@ namespace basebmp
{
template< class DestIterator, class DestAccessor, typename T >
-void fillImage( DestIterator begin,
- DestIterator end,
+void fillImage( DestIterator begin,
+ DestIterator end,
DestAccessor ad,
T fillVal )
{
@@ -50,9 +50,9 @@ void fillImage( DestIterator begin,
rowIter( begin.rowIterator() );
const typename vigra::IteratorTraits<DestIterator>::row_iterator
rowEnd( rowIter + width );
-
- // TODO(P2): Provide specialized span fill methods on the
- // iterator/accessor
+
+ // TODO(P2): Provide specialized span fill methods on the
+ // iterator/accessor
while( rowIter != rowEnd )
ad.set(fillVal, rowIter++);
}
diff --git a/basebmp/inc/basebmp/genericcolorimageaccessor.hxx b/basebmp/inc/basebmp/genericcolorimageaccessor.hxx
index 2fada3948faf..c5464d688e71 100644
--- a/basebmp/inc/basebmp/genericcolorimageaccessor.hxx
+++ b/basebmp/inc/basebmp/genericcolorimageaccessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,17 +52,17 @@ namespace basebmp
meDrawMode(DrawMode_PAINT)
{}
- GenericColorImageAccessor( BitmapDeviceSharedPtr const& rTarget,
+ GenericColorImageAccessor( BitmapDeviceSharedPtr const& rTarget,
DrawMode eDrawMode ) :
mpDevice(rTarget),
meDrawMode(eDrawMode)
{}
- template< typename Iterator >
+ template< typename Iterator >
Color operator()( Iterator const& i ) const
{ return mpDevice->getPixel( basegfx::B2IPoint( i->x,i->y ) ); }
- template< typename Iterator, typename Difference >
+ template< typename Iterator, typename Difference >
Color operator()( Iterator const& i, Difference const& diff) const
{ return mpDevice->getPixel( basegfx::B2IPoint( i[diff]->x,
i[diff]->y ) ); }
diff --git a/basebmp/inc/basebmp/greylevelformats.hxx b/basebmp/inc/basebmp/greylevelformats.hxx
index 111fcc7e12fd..1270dd86a59f 100644
--- a/basebmp/inc/basebmp/greylevelformats.hxx
+++ b/basebmp/inc/basebmp/greylevelformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,29 +45,29 @@
namespace basebmp
{
-template< typename PixelType,
+template< typename PixelType,
typename ColorType,
- int UsedRange > struct GreylevelGetter :
- public std::unary_function<PixelType, ColorType>
+ int UsedRange > struct GreylevelGetter :
+ public std::unary_function<PixelType, ColorType>
{
ColorType operator()( PixelType const& c ) const
- {
+ {
return ColorTraits<ColorType>::fromGreyscale(
vigra::NumericTraits<PixelType>::toPromote(c) *
vigra::NumericTraits<PixelType>::maxConst / UsedRange );
}
};
-template< typename PixelType,
+template< typename PixelType,
typename ColorType,
- int UsedRange > struct GreylevelSetter :
- public std::unary_function<ColorType, PixelType>
+ int UsedRange > struct GreylevelSetter :
+ public std::unary_function<ColorType, PixelType>
{
PixelType operator()( ColorType const& c ) const
{
return vigra::NumericTraits<PixelType>::toPromote(
- ColorTraits<ColorType>::toGreyscale(c)) *
- UsedRange /
+ ColorTraits<ColorType>::toGreyscale(c)) *
+ UsedRange /
vigra::NumericTraits<PixelType>::maxConst;
}
};
@@ -96,7 +96,7 @@ template< class Iterator,
template< int BitsPerPixel,
bool MsbFirst > struct PixelFormatTraitsTemplate_PackedGreylevel :
- public PixelFormatTraitsTemplate_Greylevel<
+ public PixelFormatTraitsTemplate_Greylevel<
PackedPixelIterator< sal_uInt8,
BitsPerPixel,
true >,
@@ -124,7 +124,7 @@ BASEBMP_SPECIALIZE_ACCESSORTRAITS(PixelFormatTraits_GREY4_MSB::getter_type,
PixelFormatTraits_GREY4_MSB::setter_type);
// 8bpp
-typedef PixelFormatTraitsTemplate_Greylevel<
+typedef PixelFormatTraitsTemplate_Greylevel<
PixelIterator< sal_uInt8 >,
StandardAccessor< sal_uInt8 >,
255 > PixelFormatTraits_GREY8;
diff --git a/basebmp/inc/basebmp/iteratortraits.hxx b/basebmp/inc/basebmp/iteratortraits.hxx
index ac76a3ebf783..51e484734b42 100644
--- a/basebmp/inc/basebmp/iteratortraits.hxx
+++ b/basebmp/inc/basebmp/iteratortraits.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,17 +38,17 @@ namespace basebmp
template< class Iterator > struct IteratorTraits
{
/// VigraTrueType, if iterator does not provide *operator()/operator[] methods
- typedef typename vigra::IsDerivedFrom<Iterator,NonStandardIterator>::result
+ typedef typename vigra::IsDerivedFrom<Iterator,NonStandardIterator>::result
isNonStandardIterator;
/// Retrieve default accessor for this iterator (and given value type)
template< typename ValueType > struct defaultAccessor : public
- // select according to non-standardness of iterator type
+ // select according to non-standardness of iterator type
vigra::If< isNonStandardIterator,
NonStandardAccessor< ValueType >,
StandardAccessor< ValueType > >
{};
-
+
};
} // namespace basebmp
diff --git a/basebmp/inc/basebmp/linerenderer.hxx b/basebmp/inc/basebmp/linerenderer.hxx
index 5e3d4df30b88..672d867970bd 100644
--- a/basebmp/inc/basebmp/linerenderer.hxx
+++ b/basebmp/inc/basebmp/linerenderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ namespace basebmp
@param end
right-bottom image iterator
-
+
@param acc
Image accessor
@@ -71,12 +71,12 @@ namespace basebmp
pixel, the pixel closer to pt1 will be chosen. Giving true here
makes renderClippedLine() choose pt2 in those cases.
*/
-template< class Iterator, class Accessor >
+template< class Iterator, class Accessor >
void renderLine( const basegfx::B2IPoint& rPt1,
const basegfx::B2IPoint& rPt2,
typename Accessor::value_type color,
- Iterator begin,
- Accessor acc,
+ Iterator begin,
+ Accessor acc,
bool bRoundTowardsPt2=false )
{
// code inspired by Paul Heckbert's Digital Line Drawing
@@ -115,7 +115,7 @@ void renderLine( const basegfx::B2IPoint& rPt1,
ady *= 2;
Iterator currIter( begin + vigra::Diff2D(0,ys) );
- typename vigra::IteratorTraits<Iterator>::row_iterator
+ typename vigra::IteratorTraits<Iterator>::row_iterator
rowIter( currIter.rowIterator() + xs );
while(true)
{
@@ -124,7 +124,7 @@ void renderLine( const basegfx::B2IPoint& rPt1,
if( xs == x2 )
return;
- if( rem >= 0 )
+ if( rem >= 0 )
{
ys += sy;
xs += sx;
@@ -149,7 +149,7 @@ void renderLine( const basegfx::B2IPoint& rPt1,
ady *= 2;
Iterator currIter( begin + vigra::Diff2D(xs,0) );
- typename vigra::IteratorTraits<Iterator>::column_iterator
+ typename vigra::IteratorTraits<Iterator>::column_iterator
colIter( currIter.columnIterator() + ys );
while(true)
{
@@ -157,8 +157,8 @@ void renderLine( const basegfx::B2IPoint& rPt1,
if( ys == y2 )
return;
-
- if( rem >= 0 )
+
+ if( rem >= 0 )
{
xs += sx;
ys += sy;
diff --git a/basebmp/inc/basebmp/metafunctions.hxx b/basebmp/inc/basebmp/metafunctions.hxx
index 642a98a70680..bdd6b668aeb9 100644
--- a/basebmp/inc/basebmp/metafunctions.hxx
+++ b/basebmp/inc/basebmp/metafunctions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,12 +36,12 @@
namespace basebmp
{
-// TODO(Q3): move to generic place (o3tl?)
+// TODO(Q3): move to generic place (o3tl?)
/** template meta function: add const qualifier to 2nd type, if given
1st type has it
*/
-template<typename A, typename B> struct clone_const
+template<typename A, typename B> struct clone_const
{
typedef B type;
};
@@ -53,7 +53,7 @@ template<typename A, typename B> struct clone_const<const A,B>
/** template meta function: add const qualifier to plain type (if not
already there)
*/
-template <typename T> struct add_const
+template <typename T> struct add_const
{
typedef const T type;
};
@@ -63,7 +63,7 @@ template <typename T> struct add_const<const T>
};
/// template meta function: remove const qualifier from plain type
-template <typename T> struct remove_const
+template <typename T> struct remove_const
{
typedef T type;
};
@@ -135,10 +135,10 @@ inline bool is_negative( int x )
template< typename T, typename trueCase, typename falseCase >
struct ifScalarIntegral
{
- typedef
- typename vigra::If<
+ typedef
+ typename vigra::If<
typename vigra::NumericTraits< T >::isIntegral,
- typename vigra::If<
+ typename vigra::If<
typename vigra::NumericTraits< T >::isScalar,
trueCase,
falseCase >::type,
@@ -149,11 +149,11 @@ struct ifScalarIntegral
template< typename T, typename trueCase, typename falseCase >
struct ifScalarNonIntegral
{
- typedef
- typename vigra::If<
+ typedef
+ typename vigra::If<
typename vigra::NumericTraits< T >::isIntegral,
falseCase,
- typename vigra::If<
+ typename vigra::If<
typename vigra::NumericTraits< T >::isScalar,
trueCase,
falseCase >::type >::type type;
@@ -163,11 +163,11 @@ struct ifScalarNonIntegral
template< typename T1, typename T2, typename trueCase, typename falseCase >
struct ifBothScalarIntegral
{
- typedef
- typename ifScalarIntegral<
- T1,
- typename ifScalarIntegral<
- T2,
+ typedef
+ typename ifScalarIntegral<
+ T1,
+ typename ifScalarIntegral<
+ T2,
trueCase,
falseCase >::type,
falseCase >::type type;
@@ -191,7 +191,7 @@ template<> struct numberOfTrailingZeros<0>
//--------------------------------------------------------------
-/// Count number of one bits
+/// Count number of one bits
template< unsigned int val > struct bitcount
{
enum { next = val >> 1 };
@@ -205,13 +205,13 @@ template<> struct bitcount<0>
//--------------------------------------------------------------
-/// Shift left for positive shift value, and right otherwise
+/// Shift left for positive shift value, and right otherwise
template< typename T > inline T shiftLeft( T v, int shift )
{
return shift > 0 ? v << shift : v >> (-shift);
}
-/// Shift right for positive shift value, and left otherwise
+/// Shift right for positive shift value, and left otherwise
template< typename T > inline T shiftRight( T v, int shift )
{
return shift > 0 ? v >> shift : v << (-shift);
diff --git a/basebmp/inc/basebmp/nonstandarditerator.hxx b/basebmp/inc/basebmp/nonstandarditerator.hxx
index 090d15d41025..ee20d42fd8bb 100644
--- a/basebmp/inc/basebmp/nonstandarditerator.hxx
+++ b/basebmp/inc/basebmp/nonstandarditerator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/inc/basebmp/packedpixeliterator.hxx b/basebmp/inc/basebmp/packedpixeliterator.hxx
index b98c8c8f9670..f02ced1b399d 100644
--- a/basebmp/inc/basebmp/packedpixeliterator.hxx
+++ b/basebmp/inc/basebmp/packedpixeliterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,10 +42,10 @@ namespace basebmp
{
/// Get bitmask for data at given intra-word position, for given bit depth
-template< typename value_type,
- int bits_per_pixel,
- bool MsbFirst,
- typename difference_type >
+template< typename value_type,
+ int bits_per_pixel,
+ bool MsbFirst,
+ typename difference_type >
inline value_type get_mask( difference_type d )
{
BOOST_STATIC_ASSERT(bits_per_pixel > 0);
@@ -56,20 +56,20 @@ inline value_type get_mask( difference_type d )
const unsigned int nIntraWordPositions( sizeof(value_type)*8 / bits_per_pixel );
// create bits_per_pixel 1s shift to intra-word position
- return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
- (nIntraWordPositions-1 - (d % nIntraWordPositions)) :
+ return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
+ (nIntraWordPositions-1 - (d % nIntraWordPositions)) :
(d % nIntraWordPositions)));
}
template< int num_intraword_positions, int bits_per_pixel, bool MsbFirst, typename difference_type > inline difference_type get_shift( difference_type remainder )
{
- return bits_per_pixel*(MsbFirst ?
+ return bits_per_pixel*(MsbFirst ?
(num_intraword_positions - 1 - remainder) :
remainder);
}
-template< typename Valuetype,
- int bits_per_pixel,
+template< typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelColumnIterator : public NonStandardIterator
{
public:
@@ -239,8 +239,8 @@ public:
}
};
-template< typename Valuetype,
- int bits_per_pixel,
+template< typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelRowIterator : public NonStandardIterator
{
public:
@@ -280,12 +280,12 @@ private:
remainder_ = newValue % num_intraword_positions;
const mask_type shifted_mask(
- MsbFirst ?
- unsigned_cast<mask_type>(mask_) >> bits_per_pixel :
+ MsbFirst ?
+ unsigned_cast<mask_type>(mask_) >> bits_per_pixel :
mask_ << bits_per_pixel );
// data_offset is 0 for shifted mask, and 1 for wrapped-around mask
- mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
+ mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
bit_mask << bits_per_pixel*(num_intraword_positions-1) :
bit_mask);
}
@@ -308,12 +308,12 @@ private:
remainder_ = newRemainder + isNegative*num_intraword_positions;
const mask_type shifted_mask(
- MsbFirst ?
+ MsbFirst ?
mask_ << bits_per_pixel :
unsigned_cast<mask_type>(mask_) >> bits_per_pixel );
// data_offset is 0 for shifted mask, and 1 for wrapped-around mask
- mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
+ mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
bit_mask :
bit_mask << bits_per_pixel*(num_intraword_positions-1));
}
@@ -325,8 +325,8 @@ private:
bool less( PackedPixelRowIterator const & rhs ) const
{
- return data_ == rhs.data_ ?
- (remainder_ < rhs.remainder_) :
+ return data_ == rhs.data_ ?
+ (remainder_ < rhs.remainder_) :
(data_ < rhs.data_);
}
@@ -449,9 +449,9 @@ public:
value_type get() const
{
- return unsigned_cast<value_type>(*data_ & mask_) >>
- get_shift<num_intraword_positions,
- bits_per_pixel,
+ return unsigned_cast<value_type>(*data_ & mask_) >>
+ get_shift<num_intraword_positions,
+ bits_per_pixel,
MsbFirst>(remainder_);
}
@@ -464,9 +464,9 @@ public:
void set( value_type v ) const
{
- const value_type pixel_value(
- (v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_))
+ const value_type pixel_value(
+ (v <<
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_))
& mask_ );
*data_ = (*data_ & ~mask_) | pixel_value;
}
@@ -485,8 +485,8 @@ public:
one pixel into an machine data type (like one bit per pixel, eight
of which packed into one char)
*/
-template< typename Valuetype,
- int bits_per_pixel,
+template< typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelIterator : public NonStandardIterator
{
public:
@@ -495,10 +495,10 @@ public:
typedef vigra::Diff2D difference_type;
typedef image_traverser_tag iterator_category;
typedef PackedPixelRowIterator<value_type,
- bits_per_pixel,
+ bits_per_pixel,
MsbFirst> row_iterator;
typedef PackedPixelColumnIterator<value_type,
- bits_per_pixel,
+ bits_per_pixel,
MsbFirst> column_iterator;
typedef value_type* pointer;
@@ -519,12 +519,12 @@ public:
private:
pointer current() const
- {
+ {
return y() + (x / num_intraword_positions);
}
pointer current(int dx, int dy) const
- {
+ {
return y(dy) + ((x+dx)/num_intraword_positions);
}
@@ -606,27 +606,27 @@ public:
{
const int remainder( x % num_intraword_positions );
- return (unsigned_cast<value_type>(*current() &
+ return (unsigned_cast<value_type>(*current() &
get_mask<value_type, bits_per_pixel, MsbFirst>(remainder))
- >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
+ >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
}
value_type get(difference_type const & d) const
{
const int remainder( x(d.x) % num_intraword_positions );
- return (unsigned_cast<value_type>(*current(d.x,d.y) &
+ return (unsigned_cast<value_type>(*current(d.x,d.y) &
get_mask<value_type, bits_per_pixel, MsbFirst>(remainder))
- >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
+ >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
}
void set( value_type v ) const
{
const int remainder( x % num_intraword_positions );
const int mask( get_mask<value_type, bits_per_pixel, MsbFirst>(remainder) );
- const value_type pixel_value(
- (v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
+ const value_type pixel_value(
+ (v <<
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
& mask );
pointer p = current();
*p = (*p & ~mask) | pixel_value;
@@ -636,9 +636,9 @@ public:
{
const int remainder( (x + d.x) % num_intraword_positions );
const int mask( get_mask<value_type, bits_per_pixel, MsbFirst>(remainder) );
- const value_type pixel_value(
+ const value_type pixel_value(
(v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
& mask );
pointer p = current(d.x,d.y);
*p = (*p & ~mask) | pixel_value;
@@ -650,11 +650,11 @@ public:
// partial specialization for the accessor traits masked_accessor
// selector metafunction - can employ fast mask functor for the 1bpp
// case.
-template< class Accessor,
- class MaskAccessor,
+template< class Accessor,
+ class MaskAccessor,
class Iterator,
bool polarity,
- bool MsbFirst > struct maskedAccessorSelector< Accessor,
+ bool MsbFirst > struct maskedAccessorSelector< Accessor,
MaskAccessor,
Iterator,
PackedPixelIterator< typename MaskAccessor::value_type,
@@ -662,7 +662,7 @@ template< class Accessor,
MsbFirst >,
polarity >
{
- typedef TernarySetterFunctionAccessorAdapter<
+ typedef TernarySetterFunctionAccessorAdapter<
Accessor,
MaskAccessor,
typename outputMaskFunctorSelector<
diff --git a/basebmp/inc/basebmp/paletteformats.hxx b/basebmp/inc/basebmp/paletteformats.hxx
index f138549462fe..0ba8cbbe4258 100644
--- a/basebmp/inc/basebmp/paletteformats.hxx
+++ b/basebmp/inc/basebmp/paletteformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ namespace basebmp
//-----------------------------------------------------------------------------
/** Lookup index value for given color value in a PaletteImageAccessor
- */
+ */
template< class Accessor > struct ColorLookup
{
typename Accessor::data_type operator()( const Accessor& acc,
@@ -62,7 +62,7 @@ template< class Accessor > struct ColorLookup
//-----------------------------------------------------------------------------
// partial specialization of AccessorTraits for PaletteAccessor
-template< class Accessor, typename ColorType > struct AccessorTraits<
+template< class Accessor, typename ColorType > struct AccessorTraits<
PaletteImageAccessor< Accessor, ColorType > >
{
/// value type of described accessor
@@ -86,7 +86,7 @@ template< class Accessor, typename ColorType > struct AccessorTraits<
* want to wrap a masked_accessor with a PaletteAccessor, not the
* other way around.
*/
- template< class MaskAccessor,
+ template< class MaskAccessor,
class Iterator,
class MaskIterator > struct masked_accessor
{
@@ -117,7 +117,7 @@ template< class Iterator,
template< int BitsPerPixel,
bool MsbFirst > struct PixelFormatTraitsTemplate_PackedPalette :
- public PixelFormatTraitsTemplate_Palette<
+ public PixelFormatTraitsTemplate_Palette<
PackedPixelIterator< sal_uInt8,
BitsPerPixel,
MsbFirst >,
@@ -139,7 +139,7 @@ typedef PixelFormatTraitsTemplate_PackedPalette<4, true> PixelFormatTraits_PAL4
typedef PixelFormatTraitsTemplate_PackedPalette<4, false> PixelFormatTraits_PAL4_LSB;
// 8bpp
-typedef PixelFormatTraitsTemplate_Palette<
+typedef PixelFormatTraitsTemplate_Palette<
PixelIterator< sal_uInt8 >,
StandardAccessor< sal_uInt8 > > PixelFormatTraits_PAL8;
diff --git a/basebmp/inc/basebmp/paletteimageaccessor.hxx b/basebmp/inc/basebmp/paletteimageaccessor.hxx
index 35a14d16dd36..de00efe6081d 100644
--- a/basebmp/inc/basebmp/paletteimageaccessor.hxx
+++ b/basebmp/inc/basebmp/paletteimageaccessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,26 +62,26 @@ private:
template<class A, typename C> friend class PaletteImageAccessor;
#endif
- Accessor maAccessor;
+ Accessor maAccessor;
const value_type* mpPalette;
std::size_t mnNumEntries;
public:
- PaletteImageAccessor() :
+ PaletteImageAccessor() :
maAccessor(),
mpPalette(0),
mnNumEntries(0)
{}
- template< class A > explicit
- PaletteImageAccessor( PaletteImageAccessor<A,ColorType> const& rSrc ) :
+ template< class A > explicit
+ PaletteImageAccessor( PaletteImageAccessor<A,ColorType> const& rSrc ) :
maAccessor( rSrc.maAccessor ),
mpPalette( rSrc.mpPalette ),
mnNumEntries( rSrc.mnNumEntries )
{}
PaletteImageAccessor( const value_type* pPalette,
- std::size_t numEntries ) :
+ std::size_t numEntries ) :
maAccessor(),
mpPalette(pPalette),
mnNumEntries(numEntries)
@@ -89,7 +89,7 @@ public:
template< class T > PaletteImageAccessor( T accessor,
const value_type* pPalette,
- std::size_t numEntries ) :
+ std::size_t numEntries ) :
maAccessor(accessor),
mpPalette(pPalette),
mnNumEntries(numEntries)
@@ -115,7 +115,7 @@ public:
while( curr_entry != palette_end )
{
if( ColorTraits<value_type>::distance(*curr_entry,
- *best_entry)
+ *best_entry)
> ColorTraits<value_type>::distance(*curr_entry,
v) )
{
@@ -131,22 +131,22 @@ public:
// -------------------------------------------------------
template< class Iterator >
- value_type operator()(Iterator const& i) const
- {
- return mpPalette[ maAccessor(i) ];
+ value_type operator()(Iterator const& i) const
+ {
+ return mpPalette[ maAccessor(i) ];
}
template< class Iterator, class Difference >
value_type operator()(Iterator const& i, Difference const& diff) const
{
- return mpPalette[ maAccessor(i,diff) ];
+ return mpPalette[ maAccessor(i,diff) ];
}
// -------------------------------------------------------
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
maAccessor.set(
lookup(
vigra::detail::RequiresExplicitCast<value_type>::cast(value) ),
diff --git a/basebmp/inc/basebmp/pixelformatadapters.hxx b/basebmp/inc/basebmp/pixelformatadapters.hxx
index 6ebf531fbbb4..a769b3b3acae 100644
--- a/basebmp/inc/basebmp/pixelformatadapters.hxx
+++ b/basebmp/inc/basebmp/pixelformatadapters.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,12 +53,12 @@ namespace basebmp
to other templates, which in turn can invoke the nested meta
function.
*/
-template< typename Getter,
+template< typename Getter,
typename Setter > struct AccessorSelector
{
template< typename Accessor > struct wrap_accessor
{
- typedef UnaryFunctionAccessorAdapter< Accessor,
+ typedef UnaryFunctionAccessorAdapter< Accessor,
Getter,
Setter > type;
};
@@ -67,7 +67,7 @@ template< typename Getter,
//-----------------------------------------------------------------------------
/** Convert color value to pixel data type
- */
+ */
template< class Accessor, typename DataType > struct ColorConvert
{
DataType operator()( const Accessor& acc,
diff --git a/basebmp/inc/basebmp/pixeliterator.hxx b/basebmp/inc/basebmp/pixeliterator.hxx
index 6e5ca4394a01..adee8af09ae8 100644
--- a/basebmp/inc/basebmp/pixeliterator.hxx
+++ b/basebmp/inc/basebmp/pixeliterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -229,13 +229,13 @@ private:
}
pointer current() const
- {
- return y() + x;
+ {
+ return y() + x;
}
pointer current(int dx, int dy) const
- {
- return y(dy) + x+dx;
+ {
+ return y(dy) + x+dx;
}
public:
diff --git a/basebmp/inc/basebmp/polypolygonrenderer.hxx b/basebmp/inc/basebmp/polypolygonrenderer.hxx
index 6a7c391f31d0..bd8cc5c24ba8 100644
--- a/basebmp/inc/basebmp/polypolygonrenderer.hxx
+++ b/basebmp/inc/basebmp/polypolygonrenderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,28 +67,28 @@ namespace basebmp
sal_Int64 mnX;
sal_Int64 mnXDelta;
- bool mbDownwards; // needed for nonzero winding rule
+ bool mbDownwards; // needed for nonzero winding rule
// fills
- Vertex() :
- mnYCounter(0),
+ Vertex() :
+ mnYCounter(0),
mnX(0),
mnXDelta(0),
mbDownwards(true)
{}
- Vertex( basegfx::B2DPoint const& rPt1,
- basegfx::B2DPoint const& rPt2,
- bool bDownwards ) :
- mnYCounter( basegfx::fround(rPt2.getY()) -
- basegfx::fround(rPt1.getY()) ),
+ Vertex( basegfx::B2DPoint const& rPt1,
+ basegfx::B2DPoint const& rPt2,
+ bool bDownwards ) :
+ mnYCounter( basegfx::fround(rPt2.getY()) -
+ basegfx::fround(rPt1.getY()) ),
mnX( toFractional( basegfx::fround(rPt1.getX()) )),
mnXDelta( toFractional(
- ((rPt2.getX() - rPt1.getX()) /
+ ((rPt2.getX() - rPt1.getX()) /
(double)mnYCounter) )),
mbDownwards(bDownwards)
{}
};
-
+
typedef std::vector< std::vector<Vertex> > VectorOfVectorOfVertices;
typedef std::vector< Vertex* > VectorOfVertexPtr;
@@ -139,12 +139,12 @@ namespace basebmp
@param rClipRect
Clipping rectangle, relative to the begin iterator. No pixel outside
this clip rect will be modified.
-
+
@param rPoly
Polygon to fill
*/
template< class DestIterator, class DestAccessor, typename T >
- void renderClippedPolyPolygon( DestIterator begin,
+ void renderClippedPolyPolygon( DestIterator begin,
DestAccessor ad,
T fillColor,
const basegfx::B2IRange& rClipRect,
@@ -160,8 +160,8 @@ namespace basebmp
basegfx::B2DRange const aPolyBounds( basegfx::tools::getRange(rPoly) );
- const sal_Int32 nMinY( basegfx::fround(aPolyBounds.getMinY()) );
- const sal_Int32 nMaxY(
+ const sal_Int32 nMinY( basegfx::fround(aPolyBounds.getMinY()) );
+ const sal_Int32 nMaxY(
std::min(
nClipY2-1,
basegfx::fround(aPolyBounds.getMaxY())));
@@ -192,7 +192,7 @@ namespace basebmp
// current scanline - initially, points to first scanline
// within the clip rect, or to the polygon's first scanline
// (whichever is greater)
- DestIterator aScanline( begin +
+ DestIterator aScanline( begin +
vigra::Diff2D(
0,
std::max(nMinY,
@@ -213,14 +213,14 @@ namespace basebmp
detail::VectorOfVectorOfVertices::value_type::iterator const end=aGET[y-nMinY].end();
while( vertex != end )
{
- // find insertion pos by binary search, and put ptr
- // into active edge vector
+ // find insertion pos by binary search, and put ptr
+ // into active edge vector
pAET->insert( std::lower_bound( pAET->begin(),
pAET->end(),
&(*vertex),
aComp ),
&(*vertex) );
-
+
++vertex;
}
}
@@ -228,7 +228,7 @@ namespace basebmp
// with less than two active edges, no fill visible
if( pAET->size() >= 2 )
{
- typename vigra::IteratorTraits<DestIterator>::row_iterator
+ typename vigra::IteratorTraits<DestIterator>::row_iterator
rowIter( aScanline.rowIterator() );
// process each span in current scanline, with
@@ -249,9 +249,9 @@ namespace basebmp
// calc fill status for both rules. might save a
// few percent runtime to specialize here...
- const bool bEvenOddFill(
+ const bool bEvenOddFill(
eFillRule == basegfx::FillRule_EVEN_ODD && !(nCrossedEdges & 0x01) );
- const bool bNonZeroWindingFill(
+ const bool bNonZeroWindingFill(
eFillRule == basegfx::FillRule_NONZERO_WINDING_NUMBER && nWindingNumber != 0 );
// is span visible?
@@ -261,18 +261,18 @@ namespace basebmp
rV2.mnX > nClipX1_frac )
{
// clip span to horizontal bounds
- sal_Int32 const nStartX(
+ sal_Int32 const nStartX(
std::max( nClipX1,
std::min( nClipX2-1,
detail::toRoundedInteger(rV1.mnX) )));
- sal_Int32 const nEndX(
+ sal_Int32 const nEndX(
std::max( nClipX1,
std::min( nClipX2,
detail::toRoundedInteger(rV2.mnX) )));
- typename vigra::IteratorTraits<DestIterator>::row_iterator
+ typename vigra::IteratorTraits<DestIterator>::row_iterator
currPix( rowIter + nStartX);
- typename vigra::IteratorTraits<DestIterator>::row_iterator
+ typename vigra::IteratorTraits<DestIterator>::row_iterator
rowEnd( rowIter + nEndX );
// TODO(P2): Provide specialized span fill methods on the
@@ -284,7 +284,7 @@ namespace basebmp
// step vertices
rV1.mnX += rV1.mnXDelta;
--rV1.mnYCounter;
-
+
++nCrossedEdges;
}
@@ -353,7 +353,7 @@ namespace basebmp
if( !bFallbackTaken && (*currVertex)->mnYCounter > 0 )
pAETOther->push_back( *currVertex );
}
-
+
std::swap( pAET, pAETOther );
}
diff --git a/basebmp/inc/basebmp/rgb24pixelformats.hxx b/basebmp/inc/basebmp/rgb24pixelformats.hxx
index 91d374efd7e9..28b7a374e624 100644
--- a/basebmp/inc/basebmp/rgb24pixelformats.hxx
+++ b/basebmp/inc/basebmp/rgb24pixelformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,17 +41,17 @@
namespace basebmp
{
-template< typename PixelType, typename ColorType > struct RGBValueGetter :
- public std::unary_function<PixelType, ColorType>
+template< typename PixelType, typename ColorType > struct RGBValueGetter :
+ public std::unary_function<PixelType, ColorType>
{
ColorType operator()( PixelType const& c ) const
- {
- return ColorType(c.red(),c.green(),c.blue());
+ {
+ return ColorType(c.red(),c.green(),c.blue());
}
};
-template< typename PixelType, typename ColorType > struct RGBValueSetter :
- public std::unary_function<ColorType, PixelType>
+template< typename PixelType, typename ColorType > struct RGBValueSetter :
+ public std::unary_function<ColorType, PixelType>
{
PixelType operator()( ColorType const& c ) const
{
diff --git a/basebmp/inc/basebmp/rgbmaskpixelformats.hxx b/basebmp/inc/basebmp/rgbmaskpixelformats.hxx
index 47f7c2bf6199..9c0269d5a0dd 100644
--- a/basebmp/inc/basebmp/rgbmaskpixelformats.hxx
+++ b/basebmp/inc/basebmp/rgbmaskpixelformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,8 +68,8 @@ namespace basebmp
@tpl SwapBytes
When true, the final pixel values will be byte-swapped before
passed on.
- */
-template< typename PixelType,
+ */
+template< typename PixelType,
typename ColorType,
unsigned int RedMask,
unsigned int GreenMask,
@@ -82,7 +82,7 @@ template< typename PixelType,
typedef typename ColorTraits<ColorType>::component_type component_type;
// calc corrective shifts for all three channels in advance
- enum {
+ enum {
red_shift = numberOfTrailingZeros<RedMask>::value,
green_shift = numberOfTrailingZeros<GreenMask>::value,
blue_shift = numberOfTrailingZeros<BlueMask>::value,
@@ -93,19 +93,19 @@ template< typename PixelType,
};
};
-template< typename PixelType,
+template< typename PixelType,
typename ColorType,
unsigned int RedMask,
unsigned int GreenMask,
unsigned int BlueMask,
- bool SwapBytes > struct RGBMaskGetter :
+ bool SwapBytes > struct RGBMaskGetter :
public RGBMaskFunctorBase<PixelType,
ColorType,
RedMask,
GreenMask,
BlueMask,
SwapBytes>,
- public std::unary_function<PixelType, ColorType>
+ public std::unary_function<PixelType, ColorType>
{
typedef RGBMaskFunctorBase<PixelType,
ColorType,
@@ -115,7 +115,7 @@ template< typename PixelType,
SwapBytes> base_type;
ColorType operator()( PixelType v ) const
- {
+ {
v = SwapBytes ? byteSwap(v) : v;
const typename base_type::unsigned_pixel_type red (v & RedMask);
@@ -125,7 +125,7 @@ template< typename PixelType,
// shift color nibbles to right-aligend position. ORing it
// channel value shifted twice the number of channel bits, to
// spread the value into the component_type range
- ColorType res( (shiftRight(red,
+ ColorType res( (shiftRight(red,
base_type::red_shift-8*
(signed)sizeof(typename base_type::component_type)+
base_type::red_bits)) |
@@ -133,7 +133,7 @@ template< typename PixelType,
base_type::red_shift-8*
(signed)sizeof(typename base_type::component_type)+
2*base_type::red_bits)),
-
+
(shiftRight(green,
base_type::green_shift-8*
(signed)sizeof(typename base_type::component_type)+
@@ -142,7 +142,7 @@ template< typename PixelType,
base_type::green_shift-8*
(signed)sizeof(typename base_type::component_type)+
2*base_type::green_bits)),
-
+
(shiftRight(blue,
base_type::blue_shift-8*
(signed)sizeof(typename base_type::component_type)+
@@ -155,19 +155,19 @@ template< typename PixelType,
}
};
-template< typename PixelType,
+template< typename PixelType,
typename ColorType,
unsigned int RedMask,
unsigned int GreenMask,
unsigned int BlueMask,
- bool SwapBytes > struct RGBMaskSetter :
+ bool SwapBytes > struct RGBMaskSetter :
public RGBMaskFunctorBase<PixelType,
ColorType,
RedMask,
GreenMask,
BlueMask,
SwapBytes>,
- public std::unary_function<ColorType, PixelType>
+ public std::unary_function<ColorType, PixelType>
{
typedef RGBMaskFunctorBase<PixelType,
ColorType,
@@ -182,7 +182,7 @@ template< typename PixelType,
const typename base_type::unsigned_pixel_type green(c.getGreen());
const typename base_type::unsigned_pixel_type blue (c.getBlue());
- typename base_type::unsigned_pixel_type res(
+ typename base_type::unsigned_pixel_type res(
(shiftLeft(red,
base_type::red_shift-8*
(signed)sizeof(typename base_type::component_type)+
@@ -202,7 +202,7 @@ template< typename PixelType,
//-----------------------------------------------------------------------------
-template< typename PixelType,
+template< typename PixelType,
unsigned int RedMask,
unsigned int GreenMask,
unsigned int BlueMask,
diff --git a/basebmp/inc/basebmp/scaleimage.hxx b/basebmp/inc/basebmp/scaleimage.hxx
index a8fd83e2cd94..d1588db8a962 100644
--- a/basebmp/inc/basebmp/scaleimage.hxx
+++ b/basebmp/inc/basebmp/scaleimage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,8 +44,8 @@ template< class SourceIter, class SourceAcc,
void scaleLine( SourceIter s_begin,
SourceIter s_end,
SourceAcc s_acc,
- DestIter d_begin,
- DestIter d_end,
+ DestIter d_begin,
+ DestIter d_end,
DestAcc d_acc )
{
const int src_width = s_end - s_begin;
@@ -58,7 +58,7 @@ void scaleLine( SourceIter s_begin,
// shrink
int rem = 0;
while( s_begin != s_end )
- {
+ {
if( rem >= 0 )
{
d_acc.set( s_acc(s_begin), d_begin );
@@ -68,7 +68,7 @@ void scaleLine( SourceIter s_begin,
}
rem += dest_width;
- ++s_begin;
+ ++s_begin;
}
}
else
@@ -81,10 +81,10 @@ void scaleLine( SourceIter s_begin,
{
rem -= dest_width;
++s_begin;
- }
+ }
d_acc.set( s_acc(s_begin), d_begin );
-
+
rem += src_width;
++d_begin;
}
@@ -123,8 +123,8 @@ template< class SourceIter, class SourceAcc,
void scaleImage( SourceIter s_begin,
SourceIter s_end,
SourceAcc s_acc,
- DestIter d_begin,
- DestIter d_end,
+ DestIter d_begin,
+ DestIter d_end,
DestAcc d_acc,
bool bMustCopy=false )
{
@@ -134,8 +134,8 @@ void scaleImage( SourceIter s_begin,
const int dest_width ( d_end.x - d_begin.x );
const int dest_height( d_end.y - d_begin.y );
- if( !bMustCopy &&
- src_width == dest_width &&
+ if( !bMustCopy &&
+ src_width == dest_width &&
src_height == dest_height )
{
// no scaling involved, can simply copy
@@ -147,7 +147,7 @@ void scaleImage( SourceIter s_begin,
typedef vigra::BasicImage<typename SourceAcc::value_type> TmpImage;
typedef typename TmpImage::traverser TmpImageIter;
- TmpImage tmp_image(src_width,
+ TmpImage tmp_image(src_width,
dest_height);
TmpImageIter t_begin = tmp_image.upperLeft();
@@ -157,7 +157,7 @@ void scaleImage( SourceIter s_begin,
typename SourceIter::column_iterator s_cbegin = s_begin.columnIterator();
typename TmpImageIter::column_iterator t_cbegin = t_begin.columnIterator();
- scaleLine(s_cbegin, s_cbegin+src_height, s_acc,
+ scaleLine(s_cbegin, s_cbegin+src_height, s_acc,
t_cbegin, t_cbegin+dest_height, tmp_image.accessor());
}
@@ -169,7 +169,7 @@ void scaleImage( SourceIter s_begin,
typename DestIter::row_iterator d_rbegin = d_begin.rowIterator();
typename TmpImageIter::row_iterator t_rbegin = t_begin.rowIterator();
- scaleLine(t_rbegin, t_rbegin+src_width, tmp_image.accessor(),
+ scaleLine(t_rbegin, t_rbegin+src_width, tmp_image.accessor(),
d_rbegin, d_rbegin+dest_width, d_acc);
}
}
diff --git a/basebmp/inc/basebmp/scanlineformats.hxx b/basebmp/inc/basebmp/scanlineformats.hxx
index ee466f21b5c9..e069937b3ba5 100644
--- a/basebmp/inc/basebmp/scanlineformats.hxx
+++ b/basebmp/inc/basebmp/scanlineformats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/inc/basebmp/stridedarrayiterator.hxx b/basebmp/inc/basebmp/stridedarrayiterator.hxx
index 422269cb70e4..684ff232c1ec 100644
--- a/basebmp/inc/basebmp/stridedarrayiterator.hxx
+++ b/basebmp/inc/basebmp/stridedarrayiterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/inc/basebmp/tools.hxx b/basebmp/inc/basebmp/tools.hxx
index 0b5fcb87a693..10bb0fccca41 100644
--- a/basebmp/inc/basebmp/tools.hxx
+++ b/basebmp/inc/basebmp/tools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ namespace basebmp
template< class Iterator, class Accessor >
inline vigra::triple<Iterator,Iterator,Accessor>
- destIterRange(Iterator const& begin,
+ destIterRange(Iterator const& begin,
Accessor const& accessor,
const basegfx::B2IRange& rRange)
{
@@ -56,7 +56,7 @@ namespace basebmp
template< class Iterator, class Accessor >
inline vigra::triple<Iterator,Iterator,Accessor>
- srcIterRange(Iterator const& begin,
+ srcIterRange(Iterator const& begin,
Accessor const& accessor,
const basegfx::B2IRange& rRange)
{
@@ -68,7 +68,7 @@ namespace basebmp
template< class Iterator, class Accessor >
inline vigra::pair<Iterator,Accessor>
- srcIter(Iterator const& begin,
+ srcIter(Iterator const& begin,
Accessor const& accessor,
const basegfx::B2IPoint& rPt)
{
@@ -79,7 +79,7 @@ namespace basebmp
template< class Iterator, class Accessor >
inline vigra::pair<Iterator,Accessor>
- destIter(Iterator const& begin,
+ destIter(Iterator const& begin,
Accessor const& accessor,
const basegfx::B2IPoint& rPt)
{
diff --git a/basebmp/inc/basebmp/truecolormaskaccessor.hxx b/basebmp/inc/basebmp/truecolormaskaccessor.hxx
index 79693a7b0ebb..efe80820fa3e 100644
--- a/basebmp/inc/basebmp/truecolormaskaccessor.hxx
+++ b/basebmp/inc/basebmp/truecolormaskaccessor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,15 +40,15 @@
namespace basebmp
{
-namespace
+namespace
{
- /// Shift left for positive shift value, and right otherwise
+ /// Shift left for positive shift value, and right otherwise
template< typename T > inline T shiftLeft( T v, int shift )
{
return shift > 0 ? v << shift : v >> (-shift);
}
- /// Shift right for positive shift value, and left otherwise
+ /// Shift right for positive shift value, and left otherwise
template< typename T > inline T shiftRight( T v, int shift )
{
return shift > 0 ? v >> shift : v << (-shift);
@@ -76,7 +76,7 @@ namespace
When true, the final pixel values will be byte-swapped before
passed to/from the iterator.
*/
-template< class Accessor,
+template< class Accessor,
typename ColorType,
int RedMask,
int GreenMask,
@@ -95,11 +95,11 @@ private:
template<class A, typename C, int R, int G, int B, bool S> friend class TrueColorMaskAccessor;
#endif
- Accessor maAccessor;
+ Accessor maAccessor;
public:
// calc corrective shifts for all three channels in advance
- enum {
+ enum {
red_shift = numberOfTrailingZeros<RedMask>::value,
green_shift = numberOfTrailingZeros<GreenMask>::value,
blue_shift = numberOfTrailingZeros<BlueMask>::value,
@@ -115,13 +115,13 @@ public:
maAccessor()
{}
- template< class A > explicit
+ template< class A > explicit
TrueColorMaskAccessor( TrueColorMaskAccessor< A,
ColorType,
RedMask,
GreenMask,
BlueMask,
- SwapBytes > const& rSrc ) :
+ SwapBytes > const& rSrc ) :
maAccessor( rSrc.maAccessor )
{}
@@ -144,16 +144,16 @@ public:
const unsigned_data_type green(v & GreenMask);
const unsigned_data_type blue (v & BlueMask);
- value_type res( (shiftRight(red,
+ value_type res( (shiftRight(red,
red_shift-8*sizeof(component_type)+red_bits)) |
(shiftRight(red,
red_shift-8*sizeof(component_type)+2*red_bits)),
-
+
(shiftRight(green,
green_shift-8*sizeof(component_type)+green_bits)) |
(shiftRight(green,
green_shift-8*sizeof(component_type)+2*green_bits)),
-
+
(shiftRight(blue,
blue_shift-8*sizeof(component_type)+blue_bits)) |
(shiftRight(blue,
@@ -167,7 +167,7 @@ public:
const unsigned_data_type green(v.getGreen());
const unsigned_data_type blue (v.getBlue());
- unsigned_data_type res(
+ unsigned_data_type res(
(shiftLeft(red,
red_shift-8*sizeof(component_type)+red_bits) & RedMask) |
(shiftLeft(green,
@@ -181,10 +181,10 @@ public:
// -------------------------------------------------------
template< class Iterator >
- value_type operator()(Iterator const& i) const
- {
- return toValue(
- unsigned_cast<data_type>( maAccessor(i)) );
+ value_type operator()(Iterator const& i) const
+ {
+ return toValue(
+ unsigned_cast<data_type>( maAccessor(i)) );
}
template< class Iterator, class Difference >
@@ -198,7 +198,7 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
+ {
maAccessor.set(
toPacked(
vigra::detail::RequiresExplicitCast<value_type>::cast(
@@ -209,10 +209,10 @@ public:
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- maAccessor.set(
+ maAccessor.set(
toPacked(
vigra::detail::RequiresExplicitCast<value_type>::cast(
- value)),
+ value)),
i,
diff );
}
@@ -221,7 +221,7 @@ public:
//-----------------------------------------------------------------------------
/** Convert Color to packed true color value for TrueColorMaskAccessor
- */
+ */
template< class Accessor > struct ColorConvert
{
typename Accessor::data_type operator()( const Accessor& acc,
@@ -234,13 +234,13 @@ template< class Accessor > struct ColorConvert
//-----------------------------------------------------------------------------
// partial specialization for TrueColorMaskAccessor
-template< class Accessor,
+template< class Accessor,
typename ColorType,
int RedMask,
int GreenMask,
int BlueMask,
- bool SwapBytes > struct AccessorTraits<
- TrueColorMaskAccessor< Accessor,
+ bool SwapBytes > struct AccessorTraits<
+ TrueColorMaskAccessor< Accessor,
ColorType,
RedMask,
GreenMask,
@@ -248,7 +248,7 @@ template< class Accessor,
SwapBytes > >
{
/// value type of described accessor
- typedef typename TrueColorMaskAccessor< Accessor,
+ typedef typename TrueColorMaskAccessor< Accessor,
ColorType,
RedMask,
GreenMask,
@@ -256,7 +256,7 @@ template< class Accessor,
SwapBytes >::value_type value_type;
/// Retrieve stand-alone color lookup function for given Accessor type
- typedef ColorConvert< TrueColorMaskAccessor< Accessor,
+ typedef ColorConvert< TrueColorMaskAccessor< Accessor,
ColorType,
RedMask,
GreenMask,
@@ -278,7 +278,7 @@ template< class Accessor,
* want to wrap a masked_accessor with a TrueColorMaskAccessor,
* not the other way around.
*/
- template< class MaskAccessor,
+ template< class MaskAccessor,
class Iterator,
class MaskIterator > struct masked_accessor
{
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index bf4cafd16cb2..2cb144717ca0 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -120,10 +120,10 @@ namespace
bool polarity,
typename MaskFunctorMode > struct masked_input_splitting_accessor
{
- typedef BinarySetterFunctionAccessorAdapter<
+ typedef BinarySetterFunctionAccessorAdapter<
DestAccessor,
- BinaryFunctorSplittingWrapper<
- typename outputMaskFunctorSelector<
+ BinaryFunctorSplittingWrapper<
+ typename outputMaskFunctorSelector<
typename JoinedAccessor::value_type::first_type,
typename JoinedAccessor::value_type::second_type,
polarity,
@@ -156,10 +156,10 @@ namespace
alpha masks. With those mask formats, clipping and alpha
blending is handled natively.
*/
- template< class DestIterator,
- class RawAccessor,
+ template< class DestIterator,
+ class RawAccessor,
class AccessorSelector,
- class Masks > class BitmapRenderer :
+ class Masks > class BitmapRenderer :
public BitmapDevice
{
public:
@@ -175,13 +175,13 @@ namespace
typedef typename Masks::alphamask_format_traits::raw_accessor_type alphamask_rawaccessor_type;
typedef typename Masks::alphamask_format_traits::accessor_selector alphamask_accessorselector_type;
- typedef typename AccessorSelector::template wrap_accessor<
+ typedef typename AccessorSelector::template wrap_accessor<
raw_accessor_type >::type dest_accessor_type;
typedef AccessorTraits< dest_accessor_type > accessor_traits;
- typedef CompositeIterator2D< dest_iterator_type,
+ typedef CompositeIterator2D< dest_iterator_type,
mask_iterator_type > composite_iterator_type;
- typedef CompositeIterator2D< vigra::Diff2D,
+ typedef CompositeIterator2D< vigra::Diff2D,
vigra::Diff2D > generic_composite_iterator_type;
typedef BitmapRenderer<mask_iterator_type,
@@ -203,22 +203,22 @@ namespace
typedef typename raw_accessor_traits::xor_accessor raw_xor_accessor_type;
typedef AccessorTraits<raw_xor_accessor_type> raw_xor_accessor_traits;
- typedef typename accessor_selector::template wrap_accessor<
+ typedef typename accessor_selector::template wrap_accessor<
raw_xor_accessor_type >::type xor_accessor_type;
typedef AccessorTraits<xor_accessor_type> xor_accessor_traits;
// -------------------------------------------------------
- typedef typename raw_accessor_traits::template masked_accessor<
+ typedef typename raw_accessor_traits::template masked_accessor<
mask_rawaccessor_type,
dest_iterator_type,
mask_iterator_type,
Masks::clipmask_polarity>::type raw_maskedaccessor_type;
- typedef typename accessor_selector::template wrap_accessor<
+ typedef typename accessor_selector::template wrap_accessor<
raw_maskedaccessor_type >::type masked_accessor_type;
typedef typename AccessorTraits<
raw_maskedaccessor_type>::xor_accessor raw_maskedxor_accessor_type;
- typedef typename accessor_selector::template wrap_accessor<
+ typedef typename accessor_selector::template wrap_accessor<
raw_maskedxor_accessor_type >::type masked_xoraccessor_type;
// -------------------------------------------------------
@@ -226,24 +226,24 @@ namespace
// ((iter,mask),mask) special case (e.g. for clipped
// drawMaskedColor())
typedef AccessorTraits< raw_maskedaccessor_type > raw_maskedaccessor_traits;
- typedef typename raw_maskedaccessor_traits::template masked_accessor<
+ typedef typename raw_maskedaccessor_traits::template masked_accessor<
mask_rawaccessor_type,
composite_iterator_type,
mask_iterator_type,
Masks::clipmask_polarity>::type raw_maskedmask_accessor_type;
- typedef CompositeIterator2D<
+ typedef CompositeIterator2D<
composite_iterator_type,
mask_iterator_type> composite_composite_mask_iterator_type;
-
+
// -------------------------------------------------------
- typedef ConstantColorBlendSetterAccessorAdapter<
+ typedef ConstantColorBlendSetterAccessorAdapter<
dest_accessor_type,
typename alphamask_rawaccessor_type::value_type,
Masks::alphamask_polarity> colorblend_accessor_type;
typedef AccessorTraits<colorblend_accessor_type> colorblend_accessor_traits;
- typedef typename colorblend_accessor_traits::template masked_accessor<
+ typedef typename colorblend_accessor_traits::template masked_accessor<
mask_rawaccessor_type,
dest_iterator_type,
mask_iterator_type,
@@ -251,12 +251,12 @@ namespace
// -------------------------------------------------------
- typedef ConstantColorBlendSetterAccessorAdapter<
+ typedef ConstantColorBlendSetterAccessorAdapter<
dest_accessor_type,
Color,
Masks::alphamask_polarity> colorblend_generic_accessor_type;
typedef AccessorTraits<colorblend_generic_accessor_type> colorblend_generic_accessor_traits;
- typedef typename colorblend_generic_accessor_traits::template masked_accessor<
+ typedef typename colorblend_generic_accessor_traits::template masked_accessor<
mask_rawaccessor_type,
dest_iterator_type,
mask_iterator_type,
@@ -273,7 +273,7 @@ namespace
dest_iterator_type maBegin;
typename accessor_traits::color_lookup maColorLookup;
- to_uint32_functor maToUInt32Converter;
+ to_uint32_functor maToUInt32Converter;
dest_accessor_type maAccessor;
colorblend_accessor_type maColorBlendAccessor;
colorblend_generic_accessor_type maGenericColorBlendAccessor;
@@ -294,12 +294,12 @@ namespace
sal_Int32 nScanlineFormat,
sal_Int32 nScanlineStride,
sal_uInt8* pFirstScanline,
- dest_iterator_type begin,
+ dest_iterator_type begin,
raw_accessor_type rawAccessor,
dest_accessor_type accessor,
const RawMemorySharedArray& rMem,
const PaletteMemorySharedVector& rPalette ) :
- BitmapDevice( rBounds, nScanlineFormat,
+ BitmapDevice( rBounds, nScanlineFormat,
nScanlineStride, pFirstScanline, rMem, rPalette ),
maBegin( begin ),
maColorLookup(),
@@ -369,30 +369,30 @@ namespace
{
fillImage(destIterRange(maBegin,
maRawAccessor,
- rBounds),
- maColorLookup(
+ rBounds),
+ maColorLookup(
maAccessor,
fillColor) );
}
- virtual void setPixel_i( const basegfx::B2IPoint& rPt,
- Color pixelColor,
+ virtual void setPixel_i( const basegfx::B2IPoint& rPt,
+ Color pixelColor,
DrawMode drawMode )
{
- const DestIterator pixel( maBegin +
+ const DestIterator pixel( maBegin +
vigra::Diff2D(rPt.getX(),
rPt.getY()) );
if( drawMode == DrawMode_XOR )
- maXorAccessor.set( pixelColor,
+ maXorAccessor.set( pixelColor,
pixel );
else
- maAccessor.set( pixelColor,
+ maAccessor.set( pixelColor,
pixel );
}
- virtual void setPixel_i( const basegfx::B2IPoint& rPt,
- Color pixelColor,
- DrawMode drawMode,
+ virtual void setPixel_i( const basegfx::B2IPoint& rPt,
+ Color pixelColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rClip) );
@@ -401,7 +401,7 @@ namespace
const vigra::Diff2D offset(rPt.getX(),
rPt.getY());
- const composite_iterator_type aIter(
+ const composite_iterator_type aIter(
maBegin + offset,
pMask->maBegin + offset );
@@ -415,7 +415,7 @@ namespace
virtual Color getPixel_i(const basegfx::B2IPoint& rPt )
{
- const DestIterator pixel( maBegin +
+ const DestIterator pixel( maBegin +
vigra::Diff2D(rPt.getX(),
rPt.getY()) );
return maAccessor(pixel);
@@ -423,7 +423,7 @@ namespace
virtual sal_uInt32 getPixelData_i( const basegfx::B2IPoint& rPt )
{
- const DestIterator pixel( maBegin +
+ const DestIterator pixel( maBegin +
vigra::Diff2D(rPt.getX(),
rPt.getY()) );
return maToUInt32Converter(maRawAccessor(pixel));
@@ -437,7 +437,7 @@ namespace
const Iterator& begin,
const RawAcc& rawAcc )
{
- renderClippedLine( rPt1,
+ renderClippedLine( rPt1,
rPt2,
rBounds,
col,
@@ -460,15 +460,15 @@ namespace
begin,
rawAcc );
}
-
+
template< typename Iterator, typename RawAcc, typename XorAcc >
void implDrawLine( const basegfx::B2IPoint& rPt1,
const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
Color col,
- const Iterator& begin,
+ const Iterator& begin,
const RawAcc& rawAcc,
- const XorAcc& xorAcc,
+ const XorAcc& xorAcc,
DrawMode drawMode )
{
if( drawMode == DrawMode_XOR )
@@ -479,10 +479,10 @@ namespace
begin, maAccessor, rawAcc );
}
- virtual void drawLine_i(const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
+ virtual void drawLine_i(const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode )
{
implDrawLine(rPt1,rPt2,rBounds,lineColor,
@@ -495,15 +495,15 @@ namespace
boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rClip) );
OSL_ASSERT( pMask );
- return composite_iterator_type( maBegin,
+ return composite_iterator_type( maBegin,
pMask->maBegin );
}
- virtual void drawLine_i(const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
+ virtual void drawLine_i(const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
const basegfx::B2IRange& rBounds,
- Color lineColor,
- DrawMode drawMode,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
implDrawLine(rPt1,rPt2,rBounds,lineColor,
@@ -513,72 +513,72 @@ namespace
}
template< typename Iterator, typename RawAcc >
- void implDrawPolygon( const basegfx::B2DPolygon& rPoly,
+ void implDrawPolygon( const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
Color col,
- const Iterator& begin,
+ const Iterator& begin,
const RawAcc& acc )
{
basegfx::B2DPolygon aPoly( rPoly );
if( rPoly.areControlPointsUsed() )
aPoly = basegfx::tools::adaptiveSubdivideByCount( rPoly );
- const typename dest_iterator_type::value_type colorIndex( maColorLookup(
+ const typename dest_iterator_type::value_type colorIndex( maColorLookup(
maAccessor,
col));
const sal_uInt32 nVertices( aPoly.count() );
for( sal_uInt32 i=1; i<nVertices; ++i )
- implRenderLine2( basegfx::fround(aPoly.getB2DPoint(i-1)),
- basegfx::fround(aPoly.getB2DPoint(i)),
+ implRenderLine2( basegfx::fround(aPoly.getB2DPoint(i-1)),
+ basegfx::fround(aPoly.getB2DPoint(i)),
rBounds,
colorIndex,
begin,
acc );
if( nVertices > 1 && aPoly.isClosed() )
- implRenderLine2( basegfx::fround(aPoly.getB2DPoint(nVertices-1)),
- basegfx::fround(aPoly.getB2DPoint(0)),
+ implRenderLine2( basegfx::fround(aPoly.getB2DPoint(nVertices-1)),
+ basegfx::fround(aPoly.getB2DPoint(0)),
rBounds,
colorIndex,
begin,
acc );
}
- virtual void drawPolygon_i(const basegfx::B2DPolygon& rPoly,
+ virtual void drawPolygon_i(const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
- Color lineColor,
+ Color lineColor,
DrawMode drawMode )
{
if( drawMode == DrawMode_XOR )
- implDrawPolygon( rPoly, rBounds, lineColor,
- maBegin,
+ implDrawPolygon( rPoly, rBounds, lineColor,
+ maBegin,
maRawXorAccessor );
else
- implDrawPolygon( rPoly, rBounds, lineColor,
- maBegin,
+ implDrawPolygon( rPoly, rBounds, lineColor,
+ maBegin,
maRawAccessor );
}
- virtual void drawPolygon_i(const basegfx::B2DPolygon& rPoly,
+ virtual void drawPolygon_i(const basegfx::B2DPolygon& rPoly,
const basegfx::B2IRange& rBounds,
- Color lineColor,
- DrawMode drawMode,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( drawMode == DrawMode_XOR )
- implDrawPolygon( rPoly, rBounds, lineColor,
+ implDrawPolygon( rPoly, rBounds, lineColor,
getMaskedIter(rClip),
maRawMaskedXorAccessor );
else
- implDrawPolygon( rPoly, rBounds, lineColor,
+ implDrawPolygon( rPoly, rBounds, lineColor,
getMaskedIter(rClip),
maRawMaskedAccessor );
}
template< typename Iterator, typename RawAcc >
- void implFillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ void implFillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
Color col,
- const Iterator& begin,
+ const Iterator& begin,
const RawAcc& acc,
const basegfx::B2IRange& rBounds )
{
@@ -586,7 +586,7 @@ namespace
if( rPoly.areControlPointsUsed() )
aPoly = basegfx::tools::adaptiveSubdivideByCount( rPoly );
- renderClippedPolyPolygon( begin,
+ renderClippedPolyPolygon( begin,
acc,
maColorLookup( maAccessor,
col),
@@ -595,36 +595,36 @@ namespace
basegfx::FillRule_EVEN_ODD );
}
- virtual void fillPolyPolygon_i(const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ virtual void fillPolyPolygon_i(const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode,
const basegfx::B2IRange& rBounds )
{
if( drawMode == DrawMode_XOR )
- implFillPolyPolygon( rPoly, fillColor,
+ implFillPolyPolygon( rPoly, fillColor,
maBegin,
maRawXorAccessor,
rBounds );
else
- implFillPolyPolygon( rPoly, fillColor,
+ implFillPolyPolygon( rPoly, fillColor,
maBegin,
maRawAccessor,
rBounds );
}
- virtual void fillPolyPolygon_i(const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+ virtual void fillPolyPolygon_i(const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode,
- const basegfx::B2IRange& rBounds,
+ const basegfx::B2IRange& rBounds,
const BitmapDeviceSharedPtr& rClip )
{
if( drawMode == DrawMode_XOR )
- implFillPolyPolygon( rPoly, fillColor,
+ implFillPolyPolygon( rPoly, fillColor,
getMaskedIter(rClip),
maRawMaskedXorAccessor,
rBounds );
else
- implFillPolyPolygon( rPoly, fillColor,
+ implFillPolyPolygon( rPoly, fillColor,
getMaskedIter(rClip),
maRawMaskedAccessor,
rBounds );
@@ -658,7 +658,7 @@ namespace
const Acc& acc)
{
GenericColorImageAccessor aSrcAcc( rSrcBitmap );
-
+
scaleImage(
srcIterRange(vigra::Diff2D(),
aSrcAcc,
@@ -670,7 +670,7 @@ namespace
virtual void drawBitmap_i(const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode )
{
if( isCompatibleBitmap( rSrcBitmap ) )
@@ -699,8 +699,8 @@ namespace
virtual void drawBitmap_i(const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( isCompatibleBitmap( rSrcBitmap ) )
@@ -752,12 +752,12 @@ namespace
maBegin + vigra::Diff2D(rDstPoint.getX(),
rDstPoint.getY()),
pMask->maBegin + topLeft(rSrcRect) );
-
+
fillImage(aBegin,
aBegin + vigra::Diff2D(rSrcRect.getWidth(),
- rSrcRect.getHeight()),
+ rSrcRect.getHeight()),
maRawMaskedAccessor,
- maColorLookup(
+ maColorLookup(
maAccessor,
aSrcColor) );
}
@@ -778,7 +778,7 @@ namespace
virtual void drawMaskedColor_i(Color aSrcColor,
const BitmapDeviceSharedPtr& rAlphaMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IPoint& rDstPoint,
+ const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip )
{
boost::shared_ptr<mask_bitmap_type> pMask( getCompatibleClipMask(rAlphaMask) );
@@ -787,7 +787,7 @@ namespace
if( pAlpha )
{
const composite_iterator_type aBegin( getMaskedIter(rClip) );
- maMaskedColorBlendAccessor.get1stWrappedAccessor().setColor(
+ maMaskedColorBlendAccessor.get1stWrappedAccessor().setColor(
aSrcColor );
vigra::copyImage( srcIterRange(pAlpha->maBegin,
@@ -812,12 +812,12 @@ namespace
pMask->maBegin + topLeft(rSrcRect)),
pClipMask->maBegin + vigra::Diff2D(rDstPoint.getX(),
rDstPoint.getY()) );
-
+
fillImage(aBegin,
aBegin + vigra::Diff2D(rSrcRect.getWidth(),
- rSrcRect.getHeight()),
+ rSrcRect.getHeight()),
maRawMaskedMaskAccessor,
- maColorLookup(
+ maColorLookup(
maAccessor,
aSrcColor) );
}
@@ -825,7 +825,7 @@ namespace
{
GenericColorImageAccessor aSrcAcc( rAlphaMask );
const composite_iterator_type aBegin( getMaskedIter(rClip) );
- maGenericMaskedColorBlendAccessor.get1stWrappedAccessor().setColor(
+ maGenericMaskedColorBlendAccessor.get1stWrappedAccessor().setColor(
aSrcColor );
vigra::copyImage( srcIterRange(vigra::Diff2D(),
@@ -903,7 +903,7 @@ namespace
virtual void drawMaskedBitmap_i(const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode )
{
if( isCompatibleClipMask(rMask) &&
@@ -938,8 +938,8 @@ namespace
virtual void drawMaskedBitmap_i(const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( isCompatibleClipMask(rMask) &&
@@ -975,7 +975,7 @@ namespace
struct ImplBitmapDevice
{
- /** Bitmap memory plus deleter.
+ /** Bitmap memory plus deleter.
Always points to the start of the mem
*/
@@ -984,7 +984,7 @@ struct ImplBitmapDevice
/// Palette memory plus deleter (might be NULL)
PaletteMemorySharedVector mpPalette;
- /** Bounds of the device.
+ /** Bounds of the device.
maBounds.getWidth()/getHeight() yield the true size of the
device (i.e. the rectangle given by maBounds covers the device
@@ -993,7 +993,7 @@ struct ImplBitmapDevice
*/
basegfx::B2IRange maBounds;
- /** Bounds of the device.
+ /** Bounds of the device.
maBounds.getWidth()/getHeight() yield the true size of the
device minus 1 (i.e. the rectangle given by maBounds covers
@@ -1010,7 +1010,7 @@ struct ImplBitmapDevice
/// Scanline stride. Negative for bottom-to-top formats
sal_Int32 mnScanlineStride;
-
+
/// raw ptr to 0th scanline. used for cloning a generic renderer
sal_uInt8* mpFirstScanline;
@@ -1051,7 +1051,7 @@ BitmapDevice::BitmapDevice( const basegfx::B2IRange& rBounds,
mpImpl->mnScanlineStride = nScanlineStride;
mpImpl->mpFirstScanline = pFirstScanline;
}
-
+
BitmapDevice::~BitmapDevice()
{
// outline, because of internal ImplBitmapDevice
@@ -1059,7 +1059,7 @@ BitmapDevice::~BitmapDevice()
basegfx::B2IVector BitmapDevice::getSize() const
{
-
+
return basegfx::B2IVector(
mpImpl->maBounds.getMaxX() - mpImpl->maBounds.getMinX(),
mpImpl->maBounds.getMaxY() - mpImpl->maBounds.getMinY() );
@@ -1077,7 +1077,7 @@ sal_Int32 BitmapDevice::getScanlineFormat() const
sal_Int32 BitmapDevice::getScanlineStride() const
{
- return mpImpl->mnScanlineStride < 0 ?
+ return mpImpl->mnScanlineStride < 0 ?
-mpImpl->mnScanlineStride : mpImpl->mnScanlineStride;
}
@@ -1101,17 +1101,17 @@ void BitmapDevice::clear( Color fillColor )
clear_i( fillColor, mpImpl->maBounds );
}
-void BitmapDevice::setPixel( const basegfx::B2IPoint& rPt,
- Color lineColor,
+void BitmapDevice::setPixel( const basegfx::B2IPoint& rPt,
+ Color lineColor,
DrawMode drawMode )
{
if( mpImpl->maLineClipRect.isInside(rPt) )
setPixel_i(rPt,lineColor,drawMode);
}
-void BitmapDevice::setPixel( const basegfx::B2IPoint& rPt,
- Color lineColor,
- DrawMode drawMode,
+void BitmapDevice::setPixel( const basegfx::B2IPoint& rPt,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1145,22 +1145,22 @@ sal_uInt32 BitmapDevice::getPixelData( const basegfx::B2IPoint& rPt )
return 0;
}
-void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
- Color lineColor,
+void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
+ Color lineColor,
DrawMode drawMode )
{
- drawLine_i( rPt1,
+ drawLine_i( rPt1,
rPt2,
mpImpl->maLineClipRect,
lineColor,
drawMode );
}
-void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
- const basegfx::B2IPoint& rPt2,
- Color lineColor,
- DrawMode drawMode,
+void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
+ const basegfx::B2IPoint& rPt2,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1170,19 +1170,19 @@ void BitmapDevice::drawLine( const basegfx::B2IPoint& rPt1,
}
if( isCompatibleClipMask( rClip ) )
- drawLine_i( rPt1,
+ drawLine_i( rPt1,
rPt2,
mpImpl->maLineClipRect,
lineColor,
drawMode,
rClip );
else
- getGenericRenderer()->drawLine( rPt1, rPt2, lineColor,
+ getGenericRenderer()->drawLine( rPt1, rPt2, lineColor,
drawMode, rClip );
}
-void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
- Color lineColor,
+void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
+ Color lineColor,
DrawMode drawMode )
{
const sal_uInt32 numVertices( rPoly.count() );
@@ -1192,9 +1192,9 @@ void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
lineColor, drawMode );
}
-void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
- Color lineColor,
- DrawMode drawMode,
+void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
+ Color lineColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1211,21 +1211,21 @@ void BitmapDevice::drawPolygon( const basegfx::B2DPolygon& rPoly,
mpImpl->maLineClipRect,
lineColor, drawMode, rClip );
else
- getGenericRenderer()->drawPolygon( rPoly, lineColor,
+ getGenericRenderer()->drawPolygon( rPoly, lineColor,
drawMode, rClip );
}
}
-void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
+void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
DrawMode drawMode )
{
fillPolyPolygon_i( rPoly, fillColor, drawMode, mpImpl->maBounds );
}
-void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
- Color fillColor,
- DrawMode drawMode,
+void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
+ Color fillColor,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1237,7 +1237,7 @@ void BitmapDevice::fillPolyPolygon( const basegfx::B2DPolyPolygon& rPoly,
if( isCompatibleClipMask( rClip ) )
fillPolyPolygon_i( rPoly, fillColor, drawMode, mpImpl->maBounds, rClip );
else
- getGenericRenderer()->fillPolyPolygon( rPoly, fillColor,
+ getGenericRenderer()->fillPolyPolygon( rPoly, fillColor,
drawMode, rClip );
}
@@ -1271,7 +1271,7 @@ namespace
const ::basegfx::B2IRange& rSourceBounds,
const ::basegfx::B2IRange& rDestBounds )
{
- const ::basegfx::B2IPoint aSourceTopLeft(
+ const ::basegfx::B2IPoint aSourceTopLeft(
io_rSourceArea.getMinimum() );
::basegfx::B2IRange aLocalSourceArea( io_rSourceArea );
@@ -1281,28 +1281,28 @@ namespace
if( aLocalSourceArea.isEmpty() )
return false;
-
+
// calc relative new source area points (relative to orig
// source area)
- const ::basegfx::B2IVector aUpperLeftOffset(
+ const ::basegfx::B2IVector aUpperLeftOffset(
aLocalSourceArea.getMinimum()-aSourceTopLeft );
- const ::basegfx::B2IVector aLowerRightOffset(
+ const ::basegfx::B2IVector aLowerRightOffset(
aLocalSourceArea.getMaximum()-aSourceTopLeft );
::basegfx::B2IRange aLocalDestArea( io_rDestPoint + aUpperLeftOffset,
io_rDestPoint + aLowerRightOffset );
-
+
// clip dest area (which must be inside rDestBounds)
aLocalDestArea.intersect( rDestBounds );
-
+
if( aLocalDestArea.isEmpty() )
return false;
// calc relative new dest area points (relative to orig
// source area)
- const ::basegfx::B2IVector aDestUpperLeftOffset(
+ const ::basegfx::B2IVector aDestUpperLeftOffset(
aLocalDestArea.getMinimum()-io_rDestPoint );
- const ::basegfx::B2IVector aDestLowerRightOffset(
+ const ::basegfx::B2IVector aDestLowerRightOffset(
aLocalDestArea.getMaximum()-io_rDestPoint );
io_rSourceArea = ::basegfx::B2IRange( aSourceTopLeft + aDestUpperLeftOffset,
@@ -1324,9 +1324,9 @@ namespace
const double nScaleY( io_rDestArea.getHeight() / (double)io_rSourceArea.getHeight() );
// extract range origins
- const basegfx::B2IPoint aDestTopLeft(
+ const basegfx::B2IPoint aDestTopLeft(
io_rDestArea.getMinimum() );
- const ::basegfx::B2IPoint aSourceTopLeft(
+ const ::basegfx::B2IPoint aSourceTopLeft(
io_rSourceArea.getMinimum() );
::basegfx::B2IRange aLocalSourceArea( io_rSourceArea );
@@ -1336,30 +1336,30 @@ namespace
if( aLocalSourceArea.isEmpty() )
return false;
-
+
// calc relative new source area points (relative to orig
// source area)
- const ::basegfx::B2IVector aUpperLeftOffset(
+ const ::basegfx::B2IVector aUpperLeftOffset(
aLocalSourceArea.getMinimum()-aSourceTopLeft );
- const ::basegfx::B2IVector aLowerRightOffset(
+ const ::basegfx::B2IVector aLowerRightOffset(
aLocalSourceArea.getMaximum()-aSourceTopLeft );
::basegfx::B2IRange aLocalDestArea( basegfx::fround(aDestTopLeft.getX() + nScaleX*aUpperLeftOffset.getX()),
basegfx::fround(aDestTopLeft.getY() + nScaleY*aUpperLeftOffset.getY()),
basegfx::fround(aDestTopLeft.getX() + nScaleX*aLowerRightOffset.getX()),
basegfx::fround(aDestTopLeft.getY() + nScaleY*aLowerRightOffset.getY()) );
-
+
// clip dest area (which must be inside rDestBounds)
aLocalDestArea.intersect( rDestBounds );
-
+
if( aLocalDestArea.isEmpty() )
return false;
// calc relative new dest area points (relative to orig
// source area)
- const ::basegfx::B2IVector aDestUpperLeftOffset(
+ const ::basegfx::B2IVector aDestUpperLeftOffset(
aLocalDestArea.getMinimum()-aDestTopLeft );
- const ::basegfx::B2IVector aDestLowerRightOffset(
+ const ::basegfx::B2IVector aDestLowerRightOffset(
aLocalDestArea.getMaximum()-aDestTopLeft );
io_rSourceArea = ::basegfx::B2IRange( basegfx::fround(aSourceTopLeft.getX() + aDestUpperLeftOffset.getX()/nScaleX),
@@ -1370,7 +1370,7 @@ namespace
// final source area clip (chopping round-offs)
io_rSourceArea.intersect( rSourceBounds );
-
+
if( io_rSourceArea.isEmpty() )
return false;
@@ -1381,7 +1381,7 @@ namespace
void BitmapDevice::drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode )
{
const basegfx::B2IVector& rSrcSize( rSrcBitmap->getSize() );
@@ -1403,8 +1403,8 @@ void BitmapDevice::drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
void BitmapDevice::drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1432,7 +1432,7 @@ void BitmapDevice::drawBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
}
else
{
- getGenericRenderer()->drawBitmap( rSrcBitmap, rSrcRect,
+ getGenericRenderer()->drawBitmap( rSrcBitmap, rSrcRect,
rDstRect, drawMode, rClip );
}
}
@@ -1463,7 +1463,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
const basegfx::B2ITuple aSize( aSrcRange.getWidth(),
aSrcRange.getHeight() );
- BitmapDeviceSharedPtr pAlphaCopy(
+ BitmapDeviceSharedPtr pAlphaCopy(
cloneBitmapDevice( aSize,
shared_from_this()) );
basegfx::B2ITuple aGcc3WorkaroundTemporary;
@@ -1485,7 +1485,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
void BitmapDevice::drawMaskedColor( Color aSrcColor,
const BitmapDeviceSharedPtr& rAlphaMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IPoint& rDstPoint,
+ const basegfx::B2IPoint& rDstPoint,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1516,7 +1516,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
const basegfx::B2ITuple aSize( aSrcRange.getWidth(),
aSrcRange.getHeight() );
- BitmapDeviceSharedPtr pAlphaCopy(
+ BitmapDeviceSharedPtr pAlphaCopy(
cloneBitmapDevice( aSize,
shared_from_this()) );
basegfx::B2ITuple aGcc3WorkaroundTemporary;
@@ -1544,7 +1544,7 @@ void BitmapDevice::drawMaskedColor( Color aSrcColor,
void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
+ const basegfx::B2IRange& rDstRect,
DrawMode drawMode )
{
OSL_ASSERT( rMask->getSize() == rSrcBitmap->getSize() );
@@ -1569,8 +1569,8 @@ void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
const BitmapDeviceSharedPtr& rMask,
const basegfx::B2IRange& rSrcRect,
- const basegfx::B2IRange& rDstRect,
- DrawMode drawMode,
+ const basegfx::B2IRange& rDstRect,
+ DrawMode drawMode,
const BitmapDeviceSharedPtr& rClip )
{
if( !rClip )
@@ -1600,7 +1600,7 @@ void BitmapDevice::drawMaskedBitmap( const BitmapDeviceSharedPtr& rSrcBitmap,
}
else
{
- getGenericRenderer()->drawMaskedBitmap( rSrcBitmap, rMask, rSrcRect,
+ getGenericRenderer()->drawMaskedBitmap( rSrcBitmap, rMask, rSrcRect,
rDstRect, drawMode, rClip );
}
}
@@ -1664,7 +1664,7 @@ BitmapDeviceSharedPtr createRenderer(
typename FormatTraits::accessor_selector,
MaskTraits > Renderer;
- return BitmapDeviceSharedPtr(
+ return BitmapDeviceSharedPtr(
new Renderer( rBounds,
nScanlineFormat,
nScanlineStride,
@@ -1680,7 +1680,7 @@ BitmapDeviceSharedPtr createRenderer(
}
/// Create standard grey level palette
-PaletteMemorySharedVector createStandardPalette(
+PaletteMemorySharedVector createStandardPalette(
const PaletteMemorySharedVector& pPal,
sal_Int32 nNumEntries )
{
@@ -1689,14 +1689,14 @@ PaletteMemorySharedVector createStandardPalette(
boost::shared_ptr< std::vector<Color> > pLocalPal(
new std::vector<Color>(nNumEntries) );
-
+
const sal_Int32 nIncrement( 0x00FFFFFF/nNumEntries );
--nNumEntries;
for( sal_Int32 i=0, c=0; i<nNumEntries; ++i,c+=nIncrement )
pLocalPal->at(i) = Color(0xFF000000 | c);
-
+
pLocalPal->at(nNumEntries) = Color(0xFFFFFFFF);
-
+
return pLocalPal;
}
@@ -1742,7 +1742,7 @@ BitmapDeviceSharedPtr createRenderer(
nScanlineStride,
pFirstScanline,
typename FormatTraits::raw_accessor_type(),
- typename FormatTraits::accessor_selector::template
+ typename FormatTraits::accessor_selector::template
wrap_accessor<
typename FormatTraits::raw_accessor_type>::type(
&pPal->at(0),
@@ -1786,27 +1786,27 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector& r
PaletteMemorySharedVector pPal,
const basegfx::B2IRange* pSubset )
{
- if( nScanlineFormat <= Format::NONE ||
+ if( nScanlineFormat <= Format::NONE ||
nScanlineFormat > Format::MAX )
return BitmapDeviceSharedPtr();
- static const sal_uInt8 bitsPerPixel[] =
+ static const sal_uInt8 bitsPerPixel[] =
{
- 0, // NONE
- 1, // ONE_BIT_MSB_GREY
- 1, // ONE_BIT_LSB_GREY
- 1, // ONE_BIT_MSB_PAL
- 1, // ONE_BIT_LSB_PAL
- 4, // FOUR_BIT_MSB_GREY
- 4, // FOUR_BIT_LSB_GREY
- 4, // FOUR_BIT_MSB_PAL
- 4, // FOUR_BIT_LSB_PAL
- 8, // EIGHT_BIT_PAL
- 8, // EIGHT_BIT_GREY
- 16, // SIXTEEN_BIT_LSB_TC_MASK
- 16, // SIXTEEN_BIT_MSB_TC_MASK
- 24, // TWENTYFOUR_BIT_TC_MASK
- 32, // THIRTYTWO_BIT_TC_MASK
+ 0, // NONE
+ 1, // ONE_BIT_MSB_GREY
+ 1, // ONE_BIT_LSB_GREY
+ 1, // ONE_BIT_MSB_PAL
+ 1, // ONE_BIT_LSB_PAL
+ 4, // FOUR_BIT_MSB_GREY
+ 4, // FOUR_BIT_LSB_GREY
+ 4, // FOUR_BIT_MSB_PAL
+ 4, // FOUR_BIT_LSB_PAL
+ 8, // EIGHT_BIT_PAL
+ 8, // EIGHT_BIT_GREY
+ 16, // SIXTEEN_BIT_LSB_TC_MASK
+ 16, // SIXTEEN_BIT_MSB_TC_MASK
+ 24, // TWENTYFOUR_BIT_TC_MASK
+ 32, // THIRTYTWO_BIT_TC_MASK
32, // THIRTYTWO_BIT_TC_MASK_ARGB
};
@@ -1825,7 +1825,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector& r
// factor in bottom-up scanline order case
nScanlineStride *= bTopDown ? 1 : -1;
- const std::size_t nMemSize(
+ const std::size_t nMemSize(
(nScanlineStride < 0 ? -nScanlineStride : nScanlineStride)*rSize.getY() );
if( !pMem )
@@ -1836,7 +1836,7 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector& r
rtl_zeroMemory(pMem.get(),nMemSize);
}
- sal_uInt8* pFirstScanline = nScanlineStride < 0 ?
+ sal_uInt8* pFirstScanline = nScanlineStride < 0 ?
pMem.get() + nMemSize + nScanlineStride : pMem.get();
// shrink render area to given subset, if given
@@ -1959,9 +1959,9 @@ BitmapDeviceSharedPtr createBitmapDevice( const basegfx::B2IVector& rSize,
bool bTopDown,
sal_Int32 nScanlineFormat )
{
- return createBitmapDeviceImpl( rSize,
- bTopDown,
- nScanlineFormat,
+ return createBitmapDeviceImpl( rSize,
+ bTopDown,
+ nScanlineFormat,
boost::shared_array< sal_uInt8 >(),
PaletteMemorySharedVector(),
NULL );
@@ -1972,9 +1972,9 @@ BitmapDeviceSharedPtr createBitmapDevice( const basegfx::B2IVector& rSize
sal_Int32 nScanlineFormat,
const PaletteMemorySharedVector& rPalette )
{
- return createBitmapDeviceImpl( rSize,
- bTopDown,
- nScanlineFormat,
+ return createBitmapDeviceImpl( rSize,
+ bTopDown,
+ nScanlineFormat,
boost::shared_array< sal_uInt8 >(),
rPalette,
NULL );
@@ -1986,9 +1986,9 @@ BitmapDeviceSharedPtr createBitmapDevice( const basegfx::B2IVector& rSize
const RawMemorySharedArray& rMem,
const PaletteMemorySharedVector& rPalette )
{
- return createBitmapDeviceImpl( rSize,
- bTopDown,
- nScanlineFormat,
+ return createBitmapDeviceImpl( rSize,
+ bTopDown,
+ nScanlineFormat,
rMem,
rPalette,
NULL );
@@ -1998,8 +1998,8 @@ BitmapDeviceSharedPtr subsetBitmapDevice( const BitmapDeviceSharedPtr& rProt
const basegfx::B2IRange& rSubset )
{
return createBitmapDeviceImpl( rProto->getSize(),
- rProto->isTopDown(),
- rProto->getScanlineFormat(),
+ rProto->isTopDown(),
+ rProto->getScanlineFormat(),
rProto->getBuffer(),
rProto->getPalette(),
&rSubset );
@@ -2008,9 +2008,9 @@ BitmapDeviceSharedPtr subsetBitmapDevice( const BitmapDeviceSharedPtr& rProt
BitmapDeviceSharedPtr cloneBitmapDevice( const basegfx::B2IVector& rSize,
const BitmapDeviceSharedPtr& rProto )
{
- return createBitmapDeviceImpl( rSize,
- rProto->isTopDown(),
- rProto->getScanlineFormat(),
+ return createBitmapDeviceImpl( rSize,
+ rProto->isTopDown(),
+ rProto->getScanlineFormat(),
boost::shared_array< sal_uInt8 >(),
rProto->getPalette(),
NULL );
diff --git a/basebmp/source/debug.cxx b/basebmp/source/debug.cxx
index 4e7abb0d613b..37630de1b5b8 100644
--- a/basebmp/source/debug.cxx
+++ b/basebmp/source/debug.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,7 +87,7 @@ namespace basebmp
const bool bTopDown( rDevice->isTopDown() );
const sal_Int32 nScanlineFormat( rDevice->getScanlineFormat() );
- rOutputStream
+ rOutputStream
<< "/* basebmp::BitmapDevice content dump */" << std::endl
<< "/* Width = " << aSize.getX() << " */" << std::endl
<< "/* Height = " << aSize.getY() << " */" << std::endl
@@ -99,7 +99,7 @@ namespace basebmp
rOutputStream << std::hex;
for( int y=0; y<aSize.getY(); ++y )
{
- for( int x=0; x<aSize.getX(); ++x )
+ for( int x=0; x<aSize.getX(); ++x )
rOutputStream << std::setw(8) << (sal_uInt32)rDevice->getPixel( basegfx::B2IPoint(x,y) ).toInt32() << " ";
rOutputStream << std::endl;
}
diff --git a/basebmp/source/intconversion.hxx b/basebmp/source/intconversion.hxx
index d18a88cfe912..966f1d3d7583 100644
--- a/basebmp/source/intconversion.hxx
+++ b/basebmp/source/intconversion.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ namespace basebmp
template< class RgbVal > struct UInt32FromRgbValue
{
sal_uInt32 operator()( RgbVal const& c ) const
- {
+ {
return (c[0] << 16) | (c[1] << 8) | c[2];
}
};
@@ -50,7 +50,7 @@ namespace basebmp
template< class RgbVal > struct RgbValueFromUInt32
{
RgbVal operator()( sal_uInt32 c ) const
- {
+ {
return RgbVal((c >> 16) & 0xFF,
(c >> 8) & 0xFF,
c & 0xFF);
@@ -63,9 +63,9 @@ namespace basebmp
typedef std::identity<DataType> to;
typedef std::identity<DataType> from;
};
- template< unsigned int RedIndex,
- unsigned int GreenIndex,
- unsigned int BlueIndex > struct uInt32Converter<
+ template< unsigned int RedIndex,
+ unsigned int GreenIndex,
+ unsigned int BlueIndex > struct uInt32Converter<
vigra::RGBValue< sal_uInt8,
RedIndex,
GreenIndex,
diff --git a/basebmp/source/polypolygonrenderer.cxx b/basebmp/source/polypolygonrenderer.cxx
index ea561533f2de..8df594db849f 100644
--- a/basebmp/source/polypolygonrenderer.cxx
+++ b/basebmp/source/polypolygonrenderer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,8 +42,8 @@ namespace detail
sal_Int32 const nNumScanlines( (sal_Int32)rGET.size() );
// add all polygons to GET
- for( sal_uInt32 i(0), nCount(rPolyPoly.count());
- i<nCount;
+ for( sal_uInt32 i(0), nCount(rPolyPoly.count());
+ i<nCount;
++i )
{
// add all vertices to GET
diff --git a/basebmp/test/basictest.cxx b/basebmp/test/basictest.cxx
index 5b88c4a3bf40..bd971b5b14aa 100644
--- a/basebmp/test/basictest.cxx
+++ b/basebmp/test/basictest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/bmpdemo.cxx b/basebmp/test/bmpdemo.cxx
index 043d165c14d6..1d5bc405d63d 100644
--- a/basebmp/test/bmpdemo.cxx
+++ b/basebmp/test/bmpdemo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ namespace
{
/// template meta function: add const qualifier, if given 2nd type has it
-template<typename A, typename B> struct clone_const
+template<typename A, typename B> struct clone_const
{
typedef B type;
};
@@ -93,7 +93,7 @@ template<typename A, typename B> struct clone_const<const A,B>
typedef const B type;
};
-template< class DestIterator, class DestAccessor > class Renderer :
+template< class DestIterator, class DestAccessor > class Renderer :
public basegfx::B2DPolyPolygonRasterConverter
{
private:
@@ -106,8 +106,8 @@ public:
Renderer(const basegfx::B2DPolyPolygon& rPolyPolyRaster,
typename DestIterator::value_type fillColor,
typename DestIterator::value_type clearColor,
- DestIterator begin,
- DestIterator end,
+ DestIterator begin,
+ DestIterator end,
DestAccessor accessor ) :
B2DPolyPolygonRasterConverter(rPolyPolyRaster,
basegfx::B2DRange(0,0,
@@ -122,13 +122,13 @@ public:
virtual void span(const double& rfXLeft,
const double& rfXRight,
- sal_Int32 nY,
- bool bOn )
+ sal_Int32 nY,
+ bool bOn )
{
DestIterator currIter( begin_ + vigra::Diff2D(0,nY) );
- typename DestIterator::row_iterator rowIter( currIter.rowIterator() +
+ typename DestIterator::row_iterator rowIter( currIter.rowIterator() +
basegfx::fround(rfXLeft) );
- typename DestIterator::row_iterator rowEnd( currIter.rowIterator() +
+ typename DestIterator::row_iterator rowEnd( currIter.rowIterator() +
basegfx::fround(rfXRight) );
if( bOn )
while( rowIter != rowEnd )
@@ -145,13 +145,13 @@ public:
}
};
-template< class DestIterator, class DestAccessor >
+template< class DestIterator, class DestAccessor >
std::auto_ptr< Renderer< DestIterator, DestAccessor > > makeRenderer(
const basegfx::B2DPolyPolygon& rPolyPolyRaster,
typename DestIterator::value_type fillColor,
typename DestIterator::value_type clearColor,
vigra::triple<DestIterator, DestIterator, DestAccessor> dest )
-{
+{
return std::auto_ptr< Renderer< DestIterator, DestAccessor > >(
new Renderer< DestIterator, DestAccessor >(rPolyPolyRaster,
fillColor,
@@ -221,7 +221,7 @@ public:
};
/// template meta function: remove const qualifier from plain type
-template <typename T> struct remove_const
+template <typename T> struct remove_const
{
typedef T type;
};
@@ -254,21 +254,21 @@ template< typename data_type, int bits_per_pixel, bool MsbFirst, typename differ
const unsigned int nIntraWordPositions( sizeof(data_type)*8 / bits_per_pixel );
// create bits_per_pixel 1s shift to intra-word position
- return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
- (nIntraWordPositions-1 - (d % nIntraWordPositions)) :
+ return ((~(~0 << bits_per_pixel)) << bits_per_pixel*(MsbFirst ?
+ (nIntraWordPositions-1 - (d % nIntraWordPositions)) :
(d % nIntraWordPositions)));
}
template< int num_intraword_positions, int bits_per_pixel, bool MsbFirst, typename difference_type > inline difference_type get_shift( difference_type remainder )
{
- return bits_per_pixel*(MsbFirst ?
+ return bits_per_pixel*(MsbFirst ?
(num_intraword_positions - 1 - remainder) :
remainder);
}
-template< typename Datatype,
- typename Valuetype,
- int bits_per_pixel,
+template< typename Datatype,
+ typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelColumnIterator
{
public:
@@ -418,7 +418,7 @@ public:
value_type get() const
{
- // TODO(Q3): use traits to get unsigned type for data_type (if
+ // TODO(Q3): use traits to get unsigned type for data_type (if
// not already)
return static_cast<unsigned int>(*y() & mask_) >> shift_;
}
@@ -443,9 +443,9 @@ public:
}
};
-template< typename Datatype,
- typename Valuetype,
- int bits_per_pixel,
+template< typename Datatype,
+ typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelRowIterator
{
public:
@@ -486,14 +486,14 @@ private:
remainder_ = newValue % num_intraword_positions;
const mask_type shifted_mask(
- MsbFirst ?
+ MsbFirst ?
// TODO(Q3): use traits to get unsigned type for data_type
// (if not already)
- static_cast<unsigned int>(mask_) >> bits_per_pixel :
+ static_cast<unsigned int>(mask_) >> bits_per_pixel :
mask_ << bits_per_pixel );
// data_offset is 0 for shifted mask, and 1 for wrapped-around mask
- mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
+ mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
bit_mask << bits_per_pixel*(num_intraword_positions-1) :
bit_mask);
}
@@ -516,14 +516,14 @@ private:
remainder_ = newRemainder + isNegative*num_intraword_positions;
const mask_type shifted_mask(
- MsbFirst ?
+ MsbFirst ?
mask_ << bits_per_pixel :
// TODO(Q3): use traits to get unsigned type for data_type
// (if not already)
static_cast<unsigned int>(mask_) >> bits_per_pixel );
// data_offset is 0 for shifted mask, and 1 for wrapped-around mask
- mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
+ mask_ = (1-data_offset)*shifted_mask + data_offset*(MsbFirst ?
bit_mask :
bit_mask << bits_per_pixel*(num_intraword_positions-1));
}
@@ -535,8 +535,8 @@ private:
bool less( PackedPixelRowIterator const & rhs ) const
{
- return data_ == rhs.data_ ?
- (remainder_ < rhs.remainder_) :
+ return data_ == rhs.data_ ?
+ (remainder_ < rhs.remainder_) :
(data_ < rhs.data_);
}
@@ -663,7 +663,7 @@ public:
{
// TODO(Q3): use traits to get unsigned type for data_type (if
// not already)
- return static_cast<unsigned int>(*data_ & mask_) >>
+ return static_cast<unsigned int>(*data_ & mask_) >>
get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_);
}
@@ -676,9 +676,9 @@ public:
void set( value_type v ) const
{
- const value_type pixel_value(
- (v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_))
+ const value_type pixel_value(
+ (v <<
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder_))
& mask_ );
*data_ = (*data_ & ~mask_) | pixel_value;
}
@@ -691,9 +691,9 @@ public:
}
};
-template< typename Datatype,
- typename Valuetype,
- int bits_per_pixel,
+template< typename Datatype,
+ typename Valuetype,
+ int bits_per_pixel,
bool MsbFirst > class PackedPixelIterator
{
public:
@@ -702,13 +702,13 @@ public:
typedef Valuetype value_type;
typedef vigra::Diff2D difference_type;
typedef image_traverser_tag iterator_category;
- typedef PackedPixelRowIterator<data_type,
+ typedef PackedPixelRowIterator<data_type,
value_type,
- bits_per_pixel,
+ bits_per_pixel,
MsbFirst> row_iterator;
- typedef PackedPixelColumnIterator<data_type,
+ typedef PackedPixelColumnIterator<data_type,
value_type,
- bits_per_pixel,
+ bits_per_pixel,
MsbFirst> column_iterator;
typedef data_type* pointer;
@@ -729,12 +729,12 @@ public:
private:
pointer current() const
- {
+ {
return y() + (x / num_intraword_positions);
}
pointer current(int dx, int dy) const
- {
+ {
return y(dy) + ((x+dx)/num_intraword_positions);
}
@@ -818,9 +818,9 @@ public:
// TODO(Q3): use traits to get unsigned type for data_type (if
// not already)
- return (static_cast<unsigned int>(*current() &
+ return (static_cast<unsigned int>(*current() &
get_mask<data_type, bits_per_pixel, MsbFirst>(remainder))
- >> (MsbFirst ?
+ >> (MsbFirst ?
(num_intraword_positions - remainder) :
remainder));
}
@@ -831,18 +831,18 @@ public:
// TODO(Q3): use traits to get unsigned type for data_type (if
// not already)
- return (static_cast<unsigned int>(*current(d.x,d.y) &
+ return (static_cast<unsigned int>(*current(d.x,d.y) &
get_mask<data_type, bits_per_pixel, MsbFirst>(remainder))
- >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
+ >> get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder));
}
void set( value_type v ) const
{
const int remainder( x() % num_intraword_positions );
const int mask( get_mask<data_type, bits_per_pixel, MsbFirst>(remainder) );
- const value_type pixel_value(
- (v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
+ const value_type pixel_value(
+ (v <<
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
& mask );
pointer p = current();
*p = (*p & ~mask) | pixel_value;
@@ -852,9 +852,9 @@ public:
{
const int remainder( x(d.x) % num_intraword_positions );
const int mask( get_mask<data_type, bits_per_pixel, MsbFirst>(remainder) );
- const value_type pixel_value(
+ const value_type pixel_value(
(v <<
- get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
+ get_shift<num_intraword_positions, bits_per_pixel, MsbFirst>(remainder))
& mask );
pointer p = current(d.x,d.y);
*p = (*p & ~mask) | pixel_value;
@@ -880,7 +880,7 @@ private:
BitmapColor const& rRHS ) const
{
// convert RGBValue's linear space to a normed linear space
- return sqrt(
+ return sqrt(
vigra::sq(rLHS.GetRed()-rRHS.GetRed()) +
vigra::sq(rLHS.GetGreen()-rRHS.GetGreen()) +
vigra::sq(rLHS.GetBlue()-rRHS.GetBlue()) );
@@ -918,16 +918,16 @@ private:
value_type toCol( BitmapColor const& rCol ) const
{
return value_type(rCol.GetRed(),rCol.GetGreen(),rCol.GetBlue());
- }
+ }
public:
- PaletteImageAccessor() :
+ PaletteImageAccessor() :
palette(0),
num_entries(0)
{}
PaletteImageAccessor( const BitmapColor* pPalette,
- data_type entries ) :
+ data_type entries ) :
palette(pPalette),
num_entries(entries)
{}
@@ -944,8 +944,8 @@ public:
template< typename V, class Iterator >
void set(V const& value, Iterator const& i) const
- {
- i.set(
+ {
+ i.set(
find_best_match(
vigra::detail::RequiresExplicitCast<value_type>::cast(value) ));
}
@@ -953,9 +953,9 @@ public:
template< typename V, class Iterator, class Difference >
void set(V const& value, Iterator const& i, Difference const& diff) const
{
- i.set(
+ i.set(
find_best_match(
- vigra::detail::RequiresExplicitCast<value_type>::cast(value)),
+ vigra::detail::RequiresExplicitCast<value_type>::cast(value)),
diff );
}
};
@@ -967,7 +967,7 @@ class TestApp : public Application
{
public:
virtual void Main();
- virtual USHORT Exception( USHORT nError );
+ virtual USHORT Exception( USHORT nError );
};
class TestWindow : public Dialog
@@ -982,9 +982,9 @@ class TestWindow : public Dialog
}
virtual ~TestWindow() {}
virtual void MouseButtonUp( const MouseEvent& /*rMEvt*/ )
- {
+ {
//TODO: do something cool
- EndDialog();
+ EndDialog();
}
virtual void Paint( const Rectangle& rRect );
};
@@ -1078,16 +1078,16 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
::rtl::OUString aSvg;
basegfx::B2DPolyPolygon aPoly;
- basegfx::tools::importFromSvgD( aPoly,
- ::rtl::OUString::createFromAscii(
+ basegfx::tools::importFromSvgD( aPoly,
+ ::rtl::OUString::createFromAscii(
"m0 0 h7 v7 h-7 z" ) );
- basegfx::tools::importFromSvgD( aPoly,
- ::rtl::OUString::createFromAscii(
+ basegfx::tools::importFromSvgD( aPoly,
+ ::rtl::OUString::createFromAscii(
"m2 2 h3 v3 h-3 z" ) );
- pDevice->fillPolyPolygon(
+ pDevice->fillPolyPolygon(
aPoly,
- basebmp::Color(0xFFFFFFFF),
+ basebmp::Color(0xFFFFFFFF),
basebmp::DrawMode_PAINT );
}
@@ -1102,17 +1102,17 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
pMask->drawLine( aPt111, aPt222, aCol333, basebmp::DrawMode_PAINT );
- ::rtl::OUString aSvg = ::rtl::OUString::createFromAscii(
+ ::rtl::OUString aSvg = ::rtl::OUString::createFromAscii(
"m 0 0 h5 l5 5 v5 h-5 l-5-5 z" );
basegfx::B2DPolyPolygon aPoly;
basegfx::tools::importFromSvgD( aPoly, aSvg );
pMask->clear(basebmp::Color(0xFFFFFFFF));
- pMask->drawPolygon(
+ pMask->drawPolygon(
aPoly.getB2DPolygon(0),
- basebmp::Color(0),
+ basebmp::Color(0),
basebmp::DrawMode_PAINT );
- basebmp::BitmapDeviceSharedPtr pSubsetDevice =
+ basebmp::BitmapDeviceSharedPtr pSubsetDevice =
basebmp::subsetBitmapDevice( pDevice,
basegfx::B2IRange(3,3,7,7) );
@@ -1124,7 +1124,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
{
const basebmp::Color aCol(0xFFFFFFFF);
- basegfx::B2DPolygon aRect = basegfx::tools::createPolygonFromRect(
+ basegfx::B2DPolygon aRect = basegfx::tools::createPolygonFromRect(
basegfx::B2DRange( 0,0,1001,1001 ));
pDevice->drawPolygon( aRect, aCol, basebmp::DrawMode_PAINT );
@@ -1170,7 +1170,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
basegfx::B2DPolygon aPoly;
aPoly.append( basegfx::B2DPoint(project( aP1 ) + aCenter) );
aPoly.append( basegfx::B2DPoint(project( aP2 ) + aCenter) );
- pDevice->fillPolyPolygon(
+ pDevice->fillPolyPolygon(
basegfx::tools::createAreaGeometry(
aPoly,
// std::max(1,n/30),
@@ -1179,7 +1179,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
basegfx::B2DLINEJOIN_NONE),
aLineColor,
basebmp::DrawMode_PAINT);
-
+
aPoint.setX( (int)((((double)aP1.getX())*cosd - ((double)aP1.getY())*sind)*factor) );
aPoint.setY( (int)((((double)aP1.getY())*cosd + ((double)aP1.getX())*sind)*factor) );
aP1 = aPoint;
@@ -1194,7 +1194,7 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
// Fill bitmap with generated content
{
- ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
+ ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
aBitmap );
for( int y=0; y<aTestSize.getY(); ++y )
for( int x=0; x<aTestSize.getX(); ++x )
@@ -1225,7 +1225,7 @@ void TestApp::Main()
try
{
uno::Reference< uno::XComponentContext > xCtx = ::cppu::defaultBootstrap_InitialComponentContext();
- xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
+ xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
uno::UNO_QUERY );
if( xFactory.is() )
::comphelper::setProcessServiceFactory( xFactory );
diff --git a/basebmp/test/bmpmasktest.cxx b/basebmp/test/bmpmasktest.cxx
index 0d4fa01b3301..afb11717853e 100644
--- a/basebmp/test/bmpmasktest.cxx
+++ b/basebmp/test/bmpmasktest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/bmptest.cxx b/basebmp/test/bmptest.cxx
index f52a0567f271..752f950da123 100644
--- a/basebmp/test/bmptest.cxx
+++ b/basebmp/test/bmptest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/cliptest.cxx b/basebmp/test/cliptest.cxx
index 31af87140682..8cf80597edbb 100644
--- a/basebmp/test/cliptest.cxx
+++ b/basebmp/test/cliptest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/export.map b/basebmp/test/export.map
index 3308588ef6f8..0dbbcc5a7372 100644
--- a/basebmp/test/export.map
+++ b/basebmp/test/export.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/filltest.cxx b/basebmp/test/filltest.cxx
index 469b984b6ca6..b40895ffe5c4 100644
--- a/basebmp/test/filltest.cxx
+++ b/basebmp/test/filltest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/linetest.cxx b/basebmp/test/linetest.cxx
index 68633e8935d0..83590eb728d7 100644
--- a/basebmp/test/linetest.cxx
+++ b/basebmp/test/linetest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/masktest.cxx b/basebmp/test/masktest.cxx
index b7097518f64a..68582fe7ab77 100644
--- a/basebmp/test/masktest.cxx
+++ b/basebmp/test/masktest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/polytest.cxx b/basebmp/test/polytest.cxx
index 0f0faab77552..d4317ceb789b 100644
--- a/basebmp/test/polytest.cxx
+++ b/basebmp/test/polytest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/tools.cxx b/basebmp/test/tools.cxx
index ab7219ec32af..a9b9e97f4d5c 100644
--- a/basebmp/test/tools.cxx
+++ b/basebmp/test/tools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basebmp/test/tools.hxx b/basebmp/test/tools.hxx
index 57668e55a741..2b556a45dfe8 100644
--- a/basebmp/test/tools.hxx
+++ b/basebmp/test/tools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/color/bcolor.hxx b/basegfx/inc/basegfx/color/bcolor.hxx
index ba39c1dd4ab4..2d1edd112ae7 100644
--- a/basegfx/inc/basegfx/color/bcolor.hxx
+++ b/basegfx/inc/basegfx/color/bcolor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,52 +55,52 @@ namespace basegfx
*/
class BColor : public B3DTuple
{
- public:
- /** Create a Color with red, green and blue components from [0.0 to 1.0]
+ public:
+ /** Create a Color with red, green and blue components from [0.0 to 1.0]
The color is initialized to (0.0, 0.0, 0.0)
*/
- BColor()
- : B3DTuple()
+ BColor()
+ : B3DTuple()
{}
- /** Create a 3D Color
+ /** Create a 3D Color
@param fRed
@param fGreen
@param fBlue
These parameters are used to initialize the red, green and blue intensities of the color
*/
- BColor(double fRed, double fGreen, double fBlue)
- : B3DTuple(fRed, fGreen, fBlue)
+ BColor(double fRed, double fGreen, double fBlue)
+ : B3DTuple(fRed, fGreen, fBlue)
{}
- /** Create a 3D Color
+ /** Create a 3D Color
@param fLuminosity
The parameter is used to initialize the red, green and blue intensities of the color
*/
- BColor(double fLuminosity)
- : B3DTuple(fLuminosity, fLuminosity, fLuminosity)
+ BColor(double fLuminosity)
+ : B3DTuple(fLuminosity, fLuminosity, fLuminosity)
{}
- /** Create a copy of a Color
+ /** Create a copy of a Color
@param rVec
The Color which will be copied.
*/
- BColor(const BColor& rVec)
- : B3DTuple(rVec)
+ BColor(const BColor& rVec)
+ : B3DTuple(rVec)
{}
/** constructor with tuple to allow copy-constructing
from B3DTuple-based classes
*/
- BColor(const ::basegfx::B3DTuple& rTuple)
- : B3DTuple(rTuple)
+ BColor(const ::basegfx::B3DTuple& rTuple)
+ : B3DTuple(rTuple)
{}
- ~BColor()
+ ~BColor()
{}
// data access read
@@ -115,33 +115,33 @@ namespace basegfx
/** *=operator to allow usage from BColor, too
*/
- BColor& operator*=( const BColor& rPnt )
- {
+ BColor& operator*=( const BColor& rPnt )
+ {
mfX *= rPnt.mfX;
- mfY *= rPnt.mfY;
- mfZ *= rPnt.mfZ;
- return *this;
+ mfY *= rPnt.mfY;
+ mfZ *= rPnt.mfZ;
+ return *this;
}
/** *=operator to allow usage from BColor, too
*/
- BColor& operator*=(double t)
- {
- mfX *= t;
- mfY *= t;
- mfZ *= t;
- return *this;
+ BColor& operator*=(double t)
+ {
+ mfX *= t;
+ mfY *= t;
+ mfZ *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
of B3DTuple calculations
*/
- BColor& operator=( const ::basegfx::B3DTuple& rVec )
- {
+ BColor& operator=( const ::basegfx::B3DTuple& rVec )
+ {
mfX = rVec.getX();
- mfY = rVec.getY();
- mfZ = rVec.getZ();
- return *this;
+ mfY = rVec.getY();
+ mfZ = rVec.getZ();
+ return *this;
}
// blend to another color using luminance
diff --git a/basegfx/inc/basegfx/color/bcolormodifier.hxx b/basegfx/inc/basegfx/color/bcolormodifier.hxx
index b109f05c7e11..cc4a181ccc05 100644
--- a/basegfx/inc/basegfx/color/bcolormodifier.hxx
+++ b/basegfx/inc/basegfx/color/bcolormodifier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,32 +36,32 @@
namespace basegfx
{
- /** Descriptor for type of color modification
+ /** Descriptor for type of color modification
*/
enum BColorModifyMode
{
- BCOLORMODIFYMODE_REPLACE, // replace all color with local color
- BCOLORMODIFYMODE_INTERPOLATE, // interpolate color between given and local with local value
- BCOLORMODIFYMODE_GRAY, // convert color to gray
- BCOLORMODIFYMODE_BLACKANDWHITE // convert color to B&W, local value is treshhold
+ BCOLORMODIFYMODE_REPLACE, // replace all color with local color
+ BCOLORMODIFYMODE_INTERPOLATE, // interpolate color between given and local with local value
+ BCOLORMODIFYMODE_GRAY, // convert color to gray
+ BCOLORMODIFYMODE_BLACKANDWHITE // convert color to B&W, local value is treshhold
};
- /** Class to hold a color, value and mode for a color modification. Color modification is
+ /** Class to hold a color, value and mode for a color modification. Color modification is
done calling the getModifiedColor() method
*/
class BColorModifier
{
protected:
- ::basegfx::BColor maBColor;
- double mfValue;
- BColorModifyMode meMode;
+ ::basegfx::BColor maBColor;
+ double mfValue;
+ BColorModifyMode meMode;
public:
BColorModifier(
- const ::basegfx::BColor& rBColor,
- double fValue = 0.5,
+ const ::basegfx::BColor& rBColor,
+ double fValue = 0.5,
BColorModifyMode eMode = BCOLORMODIFYMODE_REPLACE)
- : maBColor(rBColor),
+ : maBColor(rBColor),
mfValue(fValue),
meMode(eMode)
{}
@@ -72,9 +72,9 @@ namespace basegfx
return (maBColor == rCompare.maBColor && mfValue == rCompare.mfValue && meMode == rCompare.meMode);
}
- bool operator!=(const BColorModifier& rCompare) const
- {
- return !(operator==(rCompare));
+ bool operator!=(const BColorModifier& rCompare) const
+ {
+ return !(operator==(rCompare));
}
// data access
@@ -86,13 +86,13 @@ namespace basegfx
::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor) const;
};
- /** Class to hold a stack of BColorModifiers and to get the modified color with
+ /** Class to hold a stack of BColorModifiers and to get the modified color with
applying all existing entry changes
*/
class BColorModifierStack
{
protected:
- ::std::vector< BColorModifier > maBColorModifiers;
+ ::std::vector< BColorModifier > maBColorModifiers;
public:
sal_uInt32 count() const
@@ -126,14 +126,14 @@ namespace basegfx
}
}
- void push(const BColorModifier& rNew)
- {
- maBColorModifiers.push_back(rNew);
+ void push(const BColorModifier& rNew)
+ {
+ maBColorModifiers.push_back(rNew);
}
- void pop()
- {
- maBColorModifiers.pop_back();
+ void pop()
+ {
+ maBColorModifiers.pop_back();
}
};
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/color/bcolortools.hxx b/basegfx/inc/basegfx/color/bcolortools.hxx
index 0502c77f3236..6814c31a30cd 100644
--- a/basegfx/inc/basegfx/color/bcolortools.hxx
+++ b/basegfx/inc/basegfx/color/bcolortools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/curve/b2dbeziertools.hxx b/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
index 875ab5a1acec..4546244c2510 100644
--- a/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
+++ b/basegfx/inc/basegfx/curve/b2dbeziertools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@ namespace basegfx
class B2DCubicBezierHelper
{
private:
- ::std::vector< double > maLengthArray;
- sal_uInt32 mnEdgeCount;
+ ::std::vector< double > maLengthArray;
+ sal_uInt32 mnEdgeCount;
public:
B2DCubicBezierHelper(const B2DCubicBezier& rBase, sal_uInt32 nDivisions = 9);
diff --git a/basegfx/inc/basegfx/curve/b2dcubicbezier.hxx b/basegfx/inc/basegfx/curve/b2dcubicbezier.hxx
index bcc657110521..2fc9f20fe701 100644
--- a/basegfx/inc/basegfx/curve/b2dcubicbezier.hxx
+++ b/basegfx/inc/basegfx/curve/b2dcubicbezier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,12 +46,12 @@ namespace basegfx
{
class B2DCubicBezier
{
- B2DPoint maStartPoint;
- B2DPoint maEndPoint;
- B2DPoint maControlPointA;
- B2DPoint maControlPointB;
+ B2DPoint maStartPoint;
+ B2DPoint maEndPoint;
+ B2DPoint maControlPointA;
+ B2DPoint maControlPointB;
- public:
+ public:
B2DCubicBezier();
B2DCubicBezier(const B2DCubicBezier& rBezier);
B2DCubicBezier(const B2DPoint& rStart, const B2DPoint& rEnd);
@@ -72,7 +72,7 @@ namespace basegfx
// test if contained bezier is trivial and reset vectors accordingly
void testAndSolveTrivialBezier();
- /** get length of edge
+ /** get length of edge
This method handles beziers and simple edges. For
beziers, the deviation describes the maximum allowed
@@ -101,10 +101,10 @@ namespace basegfx
// data interface
B2DPoint getStartPoint() const { return maStartPoint; }
void setStartPoint(const B2DPoint& rValue) { maStartPoint = rValue; }
-
+
B2DPoint getEndPoint() const { return maEndPoint; }
void setEndPoint(const B2DPoint& rValue) { maEndPoint = rValue; }
-
+
B2DPoint getControlPointA() const { return maControlPointA; }
void setControlPointA(const B2DPoint& rValue) { maControlPointA = rValue; }
@@ -147,14 +147,14 @@ namespace basegfx
value.
No start point is added, but all necessary created edges
and the end point
-
+
@param rPoly
Output polygon. The subdivided bezier segment is added to
this polygon via B2DPolygon::append().
-
+
@param rCurve
The cubic bezier curve to subdivide
-
+
@param fDistanceBound
Bound on the maximal distance of the approximation to the
true curve.
diff --git a/basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx b/basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx
index 6680acdc45ca..0da07c1ec554 100644
--- a/basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx
+++ b/basegfx/inc/basegfx/curve/b2dquadraticbezier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,15 +37,15 @@ namespace basegfx
{
class B2DQuadraticBezier
{
- ::basegfx::B2DPoint maStartPoint;
- ::basegfx::B2DPoint maEndPoint;
- ::basegfx::B2DPoint maControlPoint;
+ ::basegfx::B2DPoint maStartPoint;
+ ::basegfx::B2DPoint maEndPoint;
+ ::basegfx::B2DPoint maControlPoint;
- public:
+ public:
B2DQuadraticBezier();
B2DQuadraticBezier(const B2DQuadraticBezier& rBezier);
B2DQuadraticBezier(const ::basegfx::B2DPoint& rStart, const ::basegfx::B2DPoint& rEnd);
- B2DQuadraticBezier(const ::basegfx::B2DPoint& rStart,
+ B2DQuadraticBezier(const ::basegfx::B2DPoint& rStart,
const ::basegfx::B2DPoint& rControlPoint, const ::basegfx::B2DPoint& rEnd);
~B2DQuadraticBezier();
@@ -62,10 +62,10 @@ namespace basegfx
// data interface
::basegfx::B2DPoint getStartPoint() const { return maStartPoint; }
void setStartPoint(const ::basegfx::B2DPoint& rValue) { maStartPoint = rValue; }
-
+
::basegfx::B2DPoint getEndPoint() const { return maEndPoint; }
void setEndPoint(const ::basegfx::B2DPoint& rValue) { maEndPoint = rValue; }
-
+
::basegfx::B2DPoint getControlPoint() const { return maControlPoint; }
void setControlPoint(const ::basegfx::B2DPoint& rValue) { maControlPoint = rValue; }
};
diff --git a/basegfx/inc/basegfx/matrix/b2dhommatrix.hxx b/basegfx/inc/basegfx/matrix/b2dhommatrix.hxx
index 04d9a2aaf734..e64d1dbb9101 100644
--- a/basegfx/inc/basegfx/matrix/b2dhommatrix.hxx
+++ b/basegfx/inc/basegfx/matrix/b2dhommatrix.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -129,14 +129,14 @@ namespace basegfx
};
// Addition, Subtraktion
- inline B2DHomMatrix operator+(const B2DHomMatrix& rMatA, const B2DHomMatrix& rMatB)
+ inline B2DHomMatrix operator+(const B2DHomMatrix& rMatA, const B2DHomMatrix& rMatB)
{
B2DHomMatrix aSum(rMatA);
aSum += rMatB;
return aSum;
}
- inline B2DHomMatrix operator-(const B2DHomMatrix& rMatA, const B2DHomMatrix& rMatB)
+ inline B2DHomMatrix operator-(const B2DHomMatrix& rMatA, const B2DHomMatrix& rMatB)
{
B2DHomMatrix aDiv(rMatA);
aDiv -= rMatB;
@@ -144,21 +144,21 @@ namespace basegfx
}
// Multiplikation, Division mit Konstante
- inline B2DHomMatrix operator*(const B2DHomMatrix& rMat, double fValue)
+ inline B2DHomMatrix operator*(const B2DHomMatrix& rMat, double fValue)
{
- B2DHomMatrix aNew(rMat);
- aNew *= fValue;
- return aNew;
+ B2DHomMatrix aNew(rMat);
+ aNew *= fValue;
+ return aNew;
}
- inline B2DHomMatrix operator/(const B2DHomMatrix& rMat, double fValue)
+ inline B2DHomMatrix operator/(const B2DHomMatrix& rMat, double fValue)
{
- B2DHomMatrix aNew(rMat);
+ B2DHomMatrix aNew(rMat);
aNew *= 1.0 / fValue;
- return aNew;
+ return aNew;
}
- inline B2DHomMatrix operator*(const B2DHomMatrix& rMatA, const B2DHomMatrix& rMatB)
+ inline B2DHomMatrix operator*(const B2DHomMatrix& rMatA, const B2DHomMatrix& rMatB)
{
B2DHomMatrix aMul(rMatB);
aMul *= rMatA;
diff --git a/basegfx/inc/basegfx/matrix/b2dhommatrixtools.hxx b/basegfx/inc/basegfx/matrix/b2dhommatrixtools.hxx
index a737719e4a30..1b310d5a14d2 100644
--- a/basegfx/inc/basegfx/matrix/b2dhommatrixtools.hxx
+++ b/basegfx/inc/basegfx/matrix/b2dhommatrixtools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,11 +42,11 @@ namespace basegfx
namespace tools
{
/** If the rotation angle is an approximate multiple of pi/2,
- force fSin/fCos to -1/0/1, to maintain orthogonality (which
- might also be advantageous for the other cases, but: for
- multiples of pi/2, the exact values _can_ be attained. It
- would be largely unintuitive, if a 180 degrees rotation
- would introduce slight roundoff errors, instead of exactly
+ force fSin/fCos to -1/0/1, to maintain orthogonality (which
+ might also be advantageous for the other cases, but: for
+ multiples of pi/2, the exact values _can_ be attained. It
+ would be largely unintuitive, if a 180 degrees rotation
+ would introduce slight roundoff errors, instead of exactly
mirroring the coordinate system)
*/
void createSinCosOrthogonal(double& o_rSin, double& rCos, double fRadiant);
@@ -164,12 +164,12 @@ namespace basegfx
}
// data access
- B2DHomMatrix getB2DHomMatrix() const
+ B2DHomMatrix getB2DHomMatrix() const
{
return createScaleShearXRotateTranslateB2DHomMatrix(
maScale, mfShearX, mfRotate, maTranslate);
}
-
+
const B2DVector& getScale() const { return maScale; }
const B2DVector& getTranslate() const { return maTranslate; }
double getRotate() const { return mfRotate; }
diff --git a/basegfx/inc/basegfx/matrix/b3dhommatrix.hxx b/basegfx/inc/basegfx/matrix/b3dhommatrix.hxx
index f3face91ee21..1aee20844adb 100644
--- a/basegfx/inc/basegfx/matrix/b3dhommatrix.hxx
+++ b/basegfx/inc/basegfx/matrix/b3dhommatrix.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -102,7 +102,7 @@ namespace basegfx
void frustum(double fLeft = -1.0, double fRight = 1.0,
double fBottom = -1.0, double fTop = 1.0,
double fNear = 0.001, double fFar = 1.0);
-
+
void ortho(double fLeft = -1.0, double fRight = 1.0,
double fBottom = -1.0, double fTop = 1.0,
double fNear = 0.0, double fFar = 1.0);
@@ -136,14 +136,14 @@ namespace basegfx
};
// addition, subtraction
- inline B3DHomMatrix operator+(const B3DHomMatrix& rMatA, const B3DHomMatrix& rMatB)
+ inline B3DHomMatrix operator+(const B3DHomMatrix& rMatA, const B3DHomMatrix& rMatB)
{
B3DHomMatrix aSum(rMatA);
aSum += rMatB;
return aSum;
}
- inline B3DHomMatrix operator-(const B3DHomMatrix& rMatA, const B3DHomMatrix& rMatB)
+ inline B3DHomMatrix operator-(const B3DHomMatrix& rMatA, const B3DHomMatrix& rMatB)
{
B3DHomMatrix aDiv(rMatA);
aDiv -= rMatB;
@@ -151,21 +151,21 @@ namespace basegfx
}
// multiplication, division by constant value
- inline B3DHomMatrix operator*(const B3DHomMatrix& rMat, double fValue)
+ inline B3DHomMatrix operator*(const B3DHomMatrix& rMat, double fValue)
{
- B3DHomMatrix aNew(rMat);
- aNew *= fValue;
- return aNew;
+ B3DHomMatrix aNew(rMat);
+ aNew *= fValue;
+ return aNew;
}
- inline B3DHomMatrix operator/(const B3DHomMatrix& rMat, double fValue)
+ inline B3DHomMatrix operator/(const B3DHomMatrix& rMat, double fValue)
{
- B3DHomMatrix aNew(rMat);
+ B3DHomMatrix aNew(rMat);
aNew *= 1.0 / fValue;
- return aNew;
+ return aNew;
}
- inline B3DHomMatrix operator*(const B3DHomMatrix& rMatA, const B3DHomMatrix& rMatB)
+ inline B3DHomMatrix operator*(const B3DHomMatrix& rMatA, const B3DHomMatrix& rMatB)
{
B3DHomMatrix aMul(rMatB);
aMul *= rMatA;
diff --git a/basegfx/inc/basegfx/numeric/ftools.hxx b/basegfx/inc/basegfx/numeric/ftools.hxx
index bc9a1c554187..a235f0a969b9 100644
--- a/basegfx/inc/basegfx/numeric/ftools.hxx
+++ b/basegfx/inc/basegfx/numeric/ftools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,25 +35,25 @@
// standard PI defines from solar.h, but we do not want to link against tools
#ifndef F_PI
-#define F_PI M_PI
+#define F_PI M_PI
#endif
#ifndef F_PI2
-#define F_PI2 M_PI_2
+#define F_PI2 M_PI_2
#endif
#ifndef F_PI4
-#define F_PI4 M_PI_4
+#define F_PI4 M_PI_4
#endif
#ifndef F_PI180
-#define F_PI180 (M_PI/180.0)
+#define F_PI180 (M_PI/180.0)
#endif
#ifndef F_PI1800
-#define F_PI1800 (M_PI/1800.0)
+#define F_PI1800 (M_PI/1800.0)
#endif
#ifndef F_PI18000
-#define F_PI18000 (M_PI/18000.0)
+#define F_PI18000 (M_PI/18000.0)
#endif
#ifndef F_2PI
-#define F_2PI (2.0*M_PI)
+#define F_2PI (2.0*M_PI)
#endif
//////////////////////////////////////////////////////////////////////////////
@@ -68,16 +68,16 @@ namespace basegfx
inline sal_Int32 fround( double fVal )
{
return fVal > 0.0 ? static_cast<sal_Int32>( fVal + .5 ) : -static_cast<sal_Int32>( -fVal + .5 );
- }
+ }
/** Round double to nearest integer
-
- @return the nearest 64 bit integer
+
+ @return the nearest 64 bit integer
*/
inline sal_Int64 fround64( double fVal )
{
return fVal > 0.0 ? static_cast<sal_Int64>( fVal + .5 ) : -static_cast<sal_Int64>( -fVal + .5 );
- }
+ }
/** Prune a small epsilon range around zero.
@@ -98,9 +98,9 @@ namespace basegfx
// just use the full comparison. I keep the original here, maybe there will be a better
// solution some day.
//
- //return fVal < 0.0 ?
+ //return fVal < 0.0 ?
// (::std::min(fVal,-0.00001)) :
- // (::std::max(fVal,0.00001));
+ // (::std::max(fVal,0.00001));
if(fVal < 0.0)
return (fVal < -0.00001 ? fVal : -0.00001);
@@ -128,17 +128,17 @@ namespace basegfx
/** Convert value from degrees to radians
*/
- inline double deg2rad( double v )
- {
+ inline double deg2rad( double v )
+ {
// divide first, to get exact values for v being a multiple of
// 90 degrees
- return v / 90.0 * M_PI_2;
+ return v / 90.0 * M_PI_2;
}
/** Convert value radians to degrees
*/
- inline double rad2deg( double v )
- {
+ inline double rad2deg( double v )
+ {
// divide first, to get exact values for v being a multiple of
// pi/2
return v / M_PI_2 * 90.0;
@@ -148,7 +148,7 @@ namespace basegfx
class fTools
{
/// Threshold value for equalZero()
- static double mfSmallValue;
+ static double mfSmallValue;
public:
/// Get threshold value for equalZero and friends
@@ -157,46 +157,46 @@ namespace basegfx
static void setSmallValue(const double& rfNew) { mfSmallValue = rfNew; }
/// Compare against small value
- static bool equalZero(const double& rfVal)
- {
- return (fabs(rfVal) <= getSmallValue());
+ static bool equalZero(const double& rfVal)
+ {
+ return (fabs(rfVal) <= getSmallValue());
}
/// Compare against given small value
- static bool equalZero(const double& rfVal, const double& rfSmallValue)
- {
- return (fabs(rfVal) <= rfSmallValue);
+ static bool equalZero(const double& rfVal, const double& rfSmallValue)
+ {
+ return (fabs(rfVal) <= rfSmallValue);
}
- static bool equal(const double& rfValA, const double& rfValB)
- {
+ static bool equal(const double& rfValA, const double& rfValB)
+ {
// changed to approxEqual usage for better numerical correctness
return rtl::math::approxEqual(rfValA, rfValB);
}
- static bool equal(const double& rfValA, const double& rfValB, const double& rfSmallValue)
- {
- return (fabs(rfValA - rfValB) <= rfSmallValue);
+ static bool equal(const double& rfValA, const double& rfValB, const double& rfSmallValue)
+ {
+ return (fabs(rfValA - rfValB) <= rfSmallValue);
}
- static bool less(const double& rfValA, const double& rfValB)
- {
- return (rfValA < rfValB && !equal(rfValA, rfValB));
+ static bool less(const double& rfValA, const double& rfValB)
+ {
+ return (rfValA < rfValB && !equal(rfValA, rfValB));
}
- static bool lessOrEqual(const double& rfValA, const double& rfValB)
- {
- return (rfValA < rfValB || equal(rfValA, rfValB));
+ static bool lessOrEqual(const double& rfValA, const double& rfValB)
+ {
+ return (rfValA < rfValB || equal(rfValA, rfValB));
}
- static bool more(const double& rfValA, const double& rfValB)
- {
- return (rfValA > rfValB && !equal(rfValA, rfValB));
+ static bool more(const double& rfValA, const double& rfValB)
+ {
+ return (rfValA > rfValB && !equal(rfValA, rfValB));
}
- static bool moreOrEqual(const double& rfValA, const double& rfValB)
- {
- return (rfValA > rfValB || equal(rfValA, rfValB));
+ static bool moreOrEqual(const double& rfValA, const double& rfValB)
+ {
+ return (rfValA > rfValB || equal(rfValA, rfValB));
}
};
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/pixel/bpixel.hxx b/basegfx/inc/basegfx/pixel/bpixel.hxx
index fcc2fdfba2a4..7890ef4199a1 100644
--- a/basegfx/inc/basegfx/pixel/bpixel.hxx
+++ b/basegfx/inc/basegfx/pixel/bpixel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,16 +48,16 @@ namespace basegfx
struct
{
// bitfield
- unsigned mnR : 8; // red intensity
- unsigned mnG : 8; // green intensity
- unsigned mnB : 8; // blue intensity
- unsigned mnO : 8; // opacity, 0 == full transparence
+ unsigned mnR : 8; // red intensity
+ unsigned mnG : 8; // green intensity
+ unsigned mnB : 8; // blue intensity
+ unsigned mnO : 8; // opacity, 0 == full transparence
} maRGBO;
-
+
struct
{
// bitfield
- unsigned mnValue : 32; // all values
+ unsigned mnValue : 32; // all values
} maCombinedRGBO;
} maPixelUnion;
@@ -97,10 +97,10 @@ namespace basegfx
{}
// assignment operator
- BPixel& operator=( const BPixel& rPixel )
- {
+ BPixel& operator=( const BPixel& rPixel )
+ {
maPixelUnion.maCombinedRGBO.mnValue = rPixel.maPixelUnion.maCombinedRGBO.mnValue;
- return *this;
+ return *this;
}
// data access read
@@ -124,13 +124,13 @@ namespace basegfx
bool isEmpty() const { return isInvisible(); }
bool isUsed() const { return isVisible(); }
- bool operator==( const BPixel& rPixel ) const
- {
+ bool operator==( const BPixel& rPixel ) const
+ {
return (rPixel.maPixelUnion.maCombinedRGBO.mnValue == maPixelUnion.maCombinedRGBO.mnValue);
}
- bool operator!=( const BPixel& rPixel ) const
- {
+ bool operator!=( const BPixel& rPixel ) const
+ {
return (rPixel.maPixelUnion.maCombinedRGBO.mnValue != maPixelUnion.maCombinedRGBO.mnValue);
}
@@ -141,28 +141,28 @@ namespace basegfx
//////////////////////////////////////////////////////////////////////////
// external operators
- inline BPixel minimum(const BPixel& rTupA, const BPixel& rTupB)
- {
+ inline BPixel minimum(const BPixel& rTupA, const BPixel& rTupB)
+ {
BPixel aMin(
(rTupB.getRed() < rTupA.getRed()) ? rTupB.getRed() : rTupA.getRed(),
(rTupB.getGreen() < rTupA.getGreen()) ? rTupB.getGreen() : rTupA.getGreen(),
(rTupB.getBlue() < rTupA.getBlue()) ? rTupB.getBlue() : rTupA.getBlue(),
- (rTupB.getOpacity() < rTupA.getOpacity()) ? rTupB.getOpacity() : rTupA.getOpacity());
+ (rTupB.getOpacity() < rTupA.getOpacity()) ? rTupB.getOpacity() : rTupA.getOpacity());
return aMin;
}
- inline BPixel maximum(const BPixel& rTupA, const BPixel& rTupB)
- {
+ inline BPixel maximum(const BPixel& rTupA, const BPixel& rTupB)
+ {
BPixel aMax(
(rTupB.getRed() > rTupA.getRed()) ? rTupB.getRed() : rTupA.getRed(),
(rTupB.getGreen() > rTupA.getGreen()) ? rTupB.getGreen() : rTupA.getGreen(),
(rTupB.getBlue() > rTupA.getBlue()) ? rTupB.getBlue() : rTupA.getBlue(),
- (rTupB.getOpacity() > rTupA.getOpacity()) ? rTupB.getOpacity() : rTupA.getOpacity());
+ (rTupB.getOpacity() > rTupA.getOpacity()) ? rTupB.getOpacity() : rTupA.getOpacity());
return aMax;
}
- inline BPixel interpolate(const BPixel& rOld1, const BPixel& rOld2, double t)
- {
+ inline BPixel interpolate(const BPixel& rOld1, const BPixel& rOld2, double t)
+ {
if(rOld1 == rOld2)
{
return rOld1;
@@ -187,8 +187,8 @@ namespace basegfx
}
}
- inline BPixel average(const BPixel& rOld1, const BPixel& rOld2)
- {
+ inline BPixel average(const BPixel& rOld1, const BPixel& rOld2)
+ {
if(rOld1 == rOld2)
{
return rOld1;
@@ -202,9 +202,9 @@ namespace basegfx
(sal_uInt8)(((sal_uInt32)rOld1.getOpacity() + (sal_uInt32)rOld2.getOpacity()) >> 1L));
}
}
-
+
inline BPixel average(const BPixel& rOld1, const BPixel& rOld2, const BPixel& rOld3)
- {
+ {
if(rOld1 == rOld2 && rOld2 == rOld3)
{
return rOld1;
diff --git a/basegfx/inc/basegfx/point/b2dhompoint.hxx b/basegfx/inc/basegfx/point/b2dhompoint.hxx
index 2736edaedde8..bccea8d783e7 100644
--- a/basegfx/inc/basegfx/point/b2dhompoint.hxx
+++ b/basegfx/inc/basegfx/point/b2dhompoint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,18 +50,18 @@ namespace basegfx
{
protected:
/// This member contains the coordinate part of the point
- ::basegfx::B2DTuple maTuple;
+ ::basegfx::B2DTuple maTuple;
/// This Member holds the homogenous part of the point
- double mfW;
+ double mfW;
- /** Test if this homogen point does have a homogenous part
+ /** Test if this homogen point does have a homogenous part
@return Returns true if this point has no homogenous part
*/
bool implIsHomogenized() const;
-
- /** Remove homogenous part of this Point
+
+ /** Remove homogenous part of this Point
This method does necessary calculations to remove
the evtl. homogenous part of this Point. This may
@@ -69,7 +69,7 @@ namespace basegfx
*/
void implHomogenize();
- /** Test and on demand remove homogenous part
+ /** Test and on demand remove homogenous part
This method tests if this Point does have a homogenous part
and then evtl. takes actions to remove that part.
@@ -81,87 +81,87 @@ namespace basegfx
*/
void implTestAndHomogenize() const;
- public:
- /** Create a homogen point
+ public:
+ /** Create a homogen point
The point is initialized to (0.0, 0.0)
*/
- B2DHomPoint()
- : maTuple(),
+ B2DHomPoint()
+ : maTuple(),
mfW(1.0)
{}
- /** Create a homogen point
+ /** Create a homogen point
@param fX
This parameter is used to initialize the X-coordinate
of the Point. The homogenous part is initialized to 1.0.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the Point. The homogenous part is initialized to 1.0.
*/
- B2DHomPoint(double fX, double fY)
- : maTuple(fX, fY),
+ B2DHomPoint(double fX, double fY)
+ : maTuple(fX, fY),
mfW(1.0)
{}
- /** Create a copy of a 2D Point
+ /** Create a copy of a 2D Point
@param rVec
- The 2D point which will be copied. The homogenous part
+ The 2D point which will be copied. The homogenous part
is initialized to 1.0.
*/
- B2DHomPoint(const B2DPoint& rVec)
- : maTuple(rVec),
+ B2DHomPoint(const B2DPoint& rVec)
+ : maTuple(rVec),
mfW(1.0)
{}
- /** Create a copy of a homogen point
+ /** Create a copy of a homogen point
@param rVec
- The homogen point which will be copied. The homogenous part
+ The homogen point which will be copied. The homogenous part
is copied, too.
*/
- B2DHomPoint(const B2DHomPoint& rVec)
- : maTuple(rVec.maTuple.getX(), rVec.maTuple.getY()),
+ B2DHomPoint(const B2DHomPoint& rVec)
+ : maTuple(rVec.maTuple.getX(), rVec.maTuple.getY()),
mfW(rVec.mfW)
{}
- ~B2DHomPoint()
+ ~B2DHomPoint()
{}
- /** Get a 2D point from this homogenous point
+ /** Get a 2D point from this homogenous point
This method normalizes this homogen point if necessary and
returns the corresponding 2D point for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
B2DPoint getB2DPoint() const;
- /** Get X-coordinate
+ /** Get X-coordinate
This method normalizes this homogen point if necessary and
returns the corresponding X-coordinate for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
double getX() const;
- /** Get Y-coordinate
+ /** Get Y-coordinate
This method normalizes this homogen point if necessary and
returns the corresponding Y-coordinate for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
double getY() const;
- /** Set X-coordinate of the homogen point.
+ /** Set X-coordinate of the homogen point.
This method sets the X-coordinate of the homogen point. If
the point does have a homogenous part this is taken into account.
@@ -171,7 +171,7 @@ namespace basegfx
*/
void setX(double fX);
- /** Set Y-coordinate of the homogen point.
+ /** Set Y-coordinate of the homogen point.
This method sets the Y-coordinate of the homogen point. If
the point does have a homogenous part this is taken into account.
@@ -187,7 +187,7 @@ namespace basegfx
B2DHomPoint& operator+=( const B2DHomPoint& rPnt );
B2DHomPoint& operator-=( const B2DHomPoint& rPnt );
-
+
B2DHomPoint& operator*=(double t);
B2DHomPoint& operator*=( const B2DHomMatrix& rMat );
@@ -195,11 +195,11 @@ namespace basegfx
B2DHomPoint& operator/=(double t);
B2DHomPoint& operator-(void);
-
+
bool operator==( const B2DHomPoint& rPnt ) const;
bool operator!=( const B2DHomPoint& rPnt ) const;
-
+
B2DHomPoint& operator=( const B2DHomPoint& rPnt );
};
@@ -215,7 +215,7 @@ namespace basegfx
B2DHomPoint interpolate(B2DHomPoint& rOld1, B2DHomPoint& rOld2, double t);
B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2);
-
+
B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2, B2DHomPoint& rOld3);
B2DHomPoint operator+(const B2DHomPoint& rVecA, const B2DHomPoint& rVecB);
diff --git a/basegfx/inc/basegfx/point/b2dpoint.hxx b/basegfx/inc/basegfx/point/b2dpoint.hxx
index 2b652d64afb8..19ca6e3a70ca 100644
--- a/basegfx/inc/basegfx/point/b2dpoint.hxx
+++ b/basegfx/inc/basegfx/point/b2dpoint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,73 +49,73 @@ namespace basegfx
*/
class B2DPoint : public ::basegfx::B2DTuple
{
- public:
- /** Create a 2D Point
+ public:
+ /** Create a 2D Point
The point is initialized to (0.0, 0.0)
*/
- B2DPoint()
- : B2DTuple()
+ B2DPoint()
+ : B2DTuple()
{}
- /** Create a 2D Point
+ /** Create a 2D Point
@param fX
This parameter is used to initialize the X-coordinate
of the 2D Point.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the 2D Point.
*/
- B2DPoint(double fX, double fY)
- : B2DTuple(fX, fY)
+ B2DPoint(double fX, double fY)
+ : B2DTuple(fX, fY)
{}
- /** Create a copy of a 2D Point
+ /** Create a copy of a 2D Point
@param rPoint
The 2D Point which will be copied.
*/
- B2DPoint(const B2DPoint& rPoint)
- : B2DTuple(rPoint)
+ B2DPoint(const B2DPoint& rPoint)
+ : B2DTuple(rPoint)
{}
- /** Create a copy of a 2D Point
+ /** Create a copy of a 2D Point
@param rPoint
The 2D Point which will be copied.
*/
- B2DPoint(const ::basegfx::B2IPoint& rPoint)
- : B2DTuple(rPoint)
+ B2DPoint(const ::basegfx::B2IPoint& rPoint)
+ : B2DTuple(rPoint)
{}
/** constructor with tuple to allow copy-constructing
from B2DTuple-based classes
*/
- B2DPoint(const ::basegfx::B2DTuple& rTuple)
- : B2DTuple(rTuple)
+ B2DPoint(const ::basegfx::B2DTuple& rTuple)
+ : B2DTuple(rTuple)
{}
- ~B2DPoint()
+ ~B2DPoint()
{}
/** *=operator to allow usage from B2DPoint, too
*/
- B2DPoint& operator*=( const B2DPoint& rPnt )
- {
+ B2DPoint& operator*=( const B2DPoint& rPnt )
+ {
mfX *= rPnt.mfX;
- mfY *= rPnt.mfY;
- return *this;
+ mfY *= rPnt.mfY;
+ return *this;
}
/** *=operator to allow usage from B2DPoint, too
*/
- B2DPoint& operator*=(double t)
- {
- mfX *= t;
- mfY *= t;
- return *this;
+ B2DPoint& operator*=(double t)
+ {
+ mfX *= t;
+ mfY *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
@@ -140,7 +140,7 @@ namespace basegfx
//////////////////////////////////////////////////////////////////////////
/** Transform B2DPoint by given transformation matrix.
-
+
Since this is a Point, translational components of the
matrix are used.
*/
diff --git a/basegfx/inc/basegfx/point/b2ipoint.hxx b/basegfx/inc/basegfx/point/b2ipoint.hxx
index c9ec03108b22..2c4cff939c7a 100644
--- a/basegfx/inc/basegfx/point/b2ipoint.hxx
+++ b/basegfx/inc/basegfx/point/b2ipoint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,64 +46,64 @@ namespace basegfx
*/
class B2IPoint : public ::basegfx::B2ITuple
{
- public:
- /** Create a 2D Point
+ public:
+ /** Create a 2D Point
The point is initialized to (0, 0)
*/
- B2IPoint()
- : B2ITuple()
+ B2IPoint()
+ : B2ITuple()
{}
- /** Create a 2D Point
+ /** Create a 2D Point
@param nX
This parameter is used to initialize the X-coordinate
of the 2D Point.
-
+
@param nY
This parameter is used to initialize the Y-coordinate
of the 2D Point.
*/
- B2IPoint(sal_Int32 nX, sal_Int32 nY)
- : B2ITuple(nX, nY)
+ B2IPoint(sal_Int32 nX, sal_Int32 nY)
+ : B2ITuple(nX, nY)
{}
- /** Create a copy of a 2D Point
+ /** Create a copy of a 2D Point
@param rPoint
The 2D Point which will be copied.
*/
- B2IPoint(const B2IPoint& rPoint)
- : B2ITuple(rPoint)
+ B2IPoint(const B2IPoint& rPoint)
+ : B2ITuple(rPoint)
{}
/** constructor with tuple to allow copy-constructing
from B2ITuple-based classes
*/
- B2IPoint(const ::basegfx::B2ITuple& rTuple)
- : B2ITuple(rTuple)
+ B2IPoint(const ::basegfx::B2ITuple& rTuple)
+ : B2ITuple(rTuple)
{}
- ~B2IPoint()
+ ~B2IPoint()
{}
/** *=operator to allow usage from B2IPoint, too
*/
- B2IPoint& operator*=( const B2IPoint& rPnt )
- {
+ B2IPoint& operator*=( const B2IPoint& rPnt )
+ {
mnX *= rPnt.mnX;
- mnY *= rPnt.mnY;
- return *this;
+ mnY *= rPnt.mnY;
+ return *this;
}
/** *=operator to allow usage from B2IPoint, too
*/
- B2IPoint& operator*=(sal_Int32 t)
- {
- mnX *= t;
- mnY *= t;
- return *this;
+ B2IPoint& operator*=(sal_Int32 t)
+ {
+ mnX *= t;
+ mnY *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
diff --git a/basegfx/inc/basegfx/point/b3dhompoint.hxx b/basegfx/inc/basegfx/point/b3dhompoint.hxx
index 763997620bd0..3bea4d66f2ac 100644
--- a/basegfx/inc/basegfx/point/b3dhompoint.hxx
+++ b/basegfx/inc/basegfx/point/b3dhompoint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,22 +50,22 @@ namespace basegfx
{
protected:
/// This member contains the coordinate part of the point
- ::basegfx::B3DTuple maTuple;
-
+ ::basegfx::B3DTuple maTuple;
+
/// This Member holds the homogenous part of the point
- double mfW;
+ double mfW;
- /** Test if this homogen point does have a homogenous part
+ /** Test if this homogen point does have a homogenous part
@return Returns true if this point has no homogenous part
*/
- bool implIsHomogenized() const
- {
+ bool implIsHomogenized() const
+ {
const double fOne(1.0);
- return ::basegfx::fTools::equal(mfW, fOne);
+ return ::basegfx::fTools::equal(mfW, fOne);
}
-
- /** Remove homogenous part of this Point
+
+ /** Remove homogenous part of this Point
This method does necessary calculations to remove
the evtl. homogenous part of this Point. This may
@@ -73,7 +73,7 @@ namespace basegfx
*/
void implHomogenize();
- /** Test and on demand remove homogenous part
+ /** Test and on demand remove homogenous part
This method tests if this Point does have a homogenous part
and then evtl. takes actions to remove that part.
@@ -89,65 +89,65 @@ namespace basegfx
((B3DHomPoint*)this)->implHomogenize();
}
- public:
- /** Create a homogen point
+ public:
+ /** Create a homogen point
The point is initialized to (0.0, 0.0, 0.0)
*/
- B3DHomPoint()
- : maTuple(),
+ B3DHomPoint()
+ : maTuple(),
mfW(1.0)
{}
- /** Create a homogen point
+ /** Create a homogen point
@param fX
This parameter is used to initialize the X-coordinate
of the Point. The homogenous part is initialized to 1.0.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the Point. The homogenous part is initialized to 1.0.
-
+
@param fZ
This parameter is used to initialize the Z-coordinate
of the Point. The homogenous part is initialized to 1.0.
*/
- B3DHomPoint(double fX, double fY, double fZ)
- : maTuple(fX, fY, fZ),
+ B3DHomPoint(double fX, double fY, double fZ)
+ : maTuple(fX, fY, fZ),
mfW(1.0)
{}
- /** Create a copy of a 3D Point
+ /** Create a copy of a 3D Point
@param rVec
- The 3D point which will be copied. The homogenous part
+ The 3D point which will be copied. The homogenous part
is initialized to 1.0.
*/
- B3DHomPoint(const B3DPoint& rVec)
- : maTuple(rVec),
+ B3DHomPoint(const B3DPoint& rVec)
+ : maTuple(rVec),
mfW(1.0)
{}
- /** Create a copy of a homogen point
+ /** Create a copy of a homogen point
@param rVec
- The homogen point which will be copied. The homogenous part
+ The homogen point which will be copied. The homogenous part
is copied, too.
*/
- B3DHomPoint(const B3DHomPoint& rVec)
- : maTuple(rVec.maTuple.getX(), rVec.maTuple.getY(), rVec.maTuple.getZ()),
+ B3DHomPoint(const B3DHomPoint& rVec)
+ : maTuple(rVec.maTuple.getX(), rVec.maTuple.getY(), rVec.maTuple.getZ()),
mfW(rVec.mfW)
{}
- ~B3DHomPoint()
+ ~B3DHomPoint()
{}
- /** get a 3D point from this homogenous point
+ /** get a 3D point from this homogenous point
This method normalizes this homogen point if necessary and
returns the corresponding 3D point for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
@@ -157,49 +157,49 @@ namespace basegfx
return B3DPoint(maTuple.getX(), maTuple.getY(), maTuple.getZ());
}
- /** get X-coordinate
+ /** get X-coordinate
This method normalizes this homogen point if necessary and
returns the corresponding X-coordinate for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
double getX() const
- {
+ {
implTestAndHomogenize();
- return maTuple.getX();
+ return maTuple.getX();
}
- /** get Y-coordinate
+ /** get Y-coordinate
This method normalizes this homogen point if necessary and
returns the corresponding Y-coordinate for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
double getY() const
- {
+ {
implTestAndHomogenize();
- return maTuple.getY();
+ return maTuple.getY();
}
- /** get Z-coordinate
+ /** get Z-coordinate
This method normalizes this homogen point if necessary and
returns the corresponding Z-coordinate for this homogen point.
-
+
@attention Even when this method is const it may change all
members of this instance.
*/
double getZ() const
- {
+ {
implTestAndHomogenize();
- return maTuple.getY();
+ return maTuple.getY();
}
- /** Set X-coordinate of the homogen point.
+ /** Set X-coordinate of the homogen point.
This method sets the X-coordinate of the homogen point. If
the point does have a homogenous part this is taken into account.
@@ -212,7 +212,7 @@ namespace basegfx
maTuple.setX(implIsHomogenized() ? fX : fX * mfW );
}
- /** Set Y-coordinate of the homogen point.
+ /** Set Y-coordinate of the homogen point.
This method sets the Y-coordinate of the homogen point. If
the point does have a homogenous part this is taken into account.
@@ -225,7 +225,7 @@ namespace basegfx
maTuple.setY(implIsHomogenized() ? fY : fY * mfW );
}
- /** Set Z-coordinate of the homogen point.
+ /** Set Z-coordinate of the homogen point.
This method sets the Z-coordinate of the homogen point. If
the point does have a homogenous part this is taken into account.
@@ -241,8 +241,8 @@ namespace basegfx
// operators
//////////////////////////////////////////////////////////////////////
- B3DHomPoint& operator+=( const B3DHomPoint& rPnt )
- {
+ B3DHomPoint& operator+=( const B3DHomPoint& rPnt )
+ {
maTuple.setX(getX() * rPnt.mfW + rPnt.getX() * mfW);
maTuple.setY(getY() * rPnt.mfW + rPnt.getY() * mfW);
maTuple.setZ(getZ() * rPnt.mfW + rPnt.getZ() * mfW);
@@ -251,8 +251,8 @@ namespace basegfx
return *this;
}
- B3DHomPoint& operator-=( const B3DHomPoint& rPnt )
- {
+ B3DHomPoint& operator-=( const B3DHomPoint& rPnt )
+ {
maTuple.setX(getX() * rPnt.mfW - rPnt.getX() * mfW);
maTuple.setY(getY() * rPnt.mfW - rPnt.getY() * mfW);
maTuple.setZ(getZ() * rPnt.mfW - rPnt.getZ() * mfW);
@@ -260,146 +260,146 @@ namespace basegfx
return *this;
}
-
- B3DHomPoint& operator*=(double t)
- {
+
+ B3DHomPoint& operator*=(double t)
+ {
if(!::basegfx::fTools::equalZero(t))
{
mfW /= t;
}
- return *this;
+ return *this;
}
- B3DHomPoint& operator/=(double t)
- {
+ B3DHomPoint& operator/=(double t)
+ {
mfW *= t;
- return *this;
+ return *this;
}
B3DHomPoint& operator-(void)
- {
+ {
mfW = -mfW;
return *this;
}
-
- bool operator==( const B3DHomPoint& rPnt ) const
- {
+
+ bool operator==( const B3DHomPoint& rPnt ) const
+ {
implTestAndHomogenize();
return (maTuple == rPnt.maTuple);
}
- bool operator!=( const B3DHomPoint& rPnt ) const
- {
+ bool operator!=( const B3DHomPoint& rPnt ) const
+ {
implTestAndHomogenize();
return (maTuple != rPnt.maTuple);
}
-
- B3DHomPoint& operator=( const B3DHomPoint& rPnt )
- {
+
+ B3DHomPoint& operator=( const B3DHomPoint& rPnt )
+ {
maTuple = rPnt.maTuple;
mfW = rPnt.mfW;
- return *this;
+ return *this;
}
};
// external operators
//////////////////////////////////////////////////////////////////////////
- inline B3DHomPoint minimum(const B3DHomPoint& rVecA, const B3DHomPoint& rVecB)
- {
+ inline B3DHomPoint minimum(const B3DHomPoint& rVecA, const B3DHomPoint& rVecB)
+ {
B3DHomPoint aMin(
(rVecB.getX() < rVecA.getX()) ? rVecB.getX() : rVecA.getX(),
(rVecB.getY() < rVecA.getY()) ? rVecB.getY() : rVecA.getY(),
- (rVecB.getZ() < rVecA.getZ()) ? rVecB.getZ() : rVecA.getZ());
+ (rVecB.getZ() < rVecA.getZ()) ? rVecB.getZ() : rVecA.getZ());
return aMin;
}
- inline B3DHomPoint maximum(const B3DHomPoint& rVecA, const B3DHomPoint& rVecB)
- {
+ inline B3DHomPoint maximum(const B3DHomPoint& rVecA, const B3DHomPoint& rVecB)
+ {
B3DHomPoint aMax(
(rVecB.getX() > rVecA.getX()) ? rVecB.getX() : rVecA.getX(),
(rVecB.getY() > rVecA.getY()) ? rVecB.getY() : rVecA.getY(),
- (rVecB.getZ() > rVecA.getZ()) ? rVecB.getZ() : rVecA.getZ());
+ (rVecB.getZ() > rVecA.getZ()) ? rVecB.getZ() : rVecA.getZ());
return aMax;
}
- inline B3DHomPoint absolute(const B3DHomPoint& rVec)
- {
+ inline B3DHomPoint absolute(const B3DHomPoint& rVec)
+ {
B3DHomPoint aAbs(
(0.0 > rVec.getX()) ? -rVec.getX() : rVec.getX(),
(0.0 > rVec.getY()) ? -rVec.getY() : rVec.getY(),
- (0.0 > rVec.getZ()) ? -rVec.getZ() : rVec.getZ());
+ (0.0 > rVec.getZ()) ? -rVec.getZ() : rVec.getZ());
return aAbs;
}
- inline B3DHomPoint interpolate(B3DHomPoint& rOld1, B3DHomPoint& rOld2, double t)
- {
+ inline B3DHomPoint interpolate(B3DHomPoint& rOld1, B3DHomPoint& rOld2, double t)
+ {
B3DHomPoint aInt(
((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(),
((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY(),
- ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ());
+ ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ());
return aInt;
}
- inline B3DHomPoint average(B3DHomPoint& rOld1, B3DHomPoint& rOld2)
- {
+ inline B3DHomPoint average(B3DHomPoint& rOld1, B3DHomPoint& rOld2)
+ {
B3DHomPoint aAvg(
(rOld1.getX() + rOld2.getX()) * 0.5,
(rOld1.getY() + rOld2.getY()) * 0.5,
- (rOld1.getZ() + rOld2.getZ()) * 0.5);
+ (rOld1.getZ() + rOld2.getZ()) * 0.5);
return aAvg;
}
-
+
inline B3DHomPoint average(B3DHomPoint& rOld1, B3DHomPoint& rOld2, B3DHomPoint& rOld3)
- {
+ {
B3DHomPoint aAvg(
(rOld1.getX() + rOld2.getX() + rOld3.getX()) * (1.0 / 3.0),
(rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0),
- (rOld1.getZ() + rOld2.getZ() + rOld3.getZ()) * (1.0 / 3.0));
+ (rOld1.getZ() + rOld2.getZ() + rOld3.getZ()) * (1.0 / 3.0));
return aAvg;
}
inline B3DHomPoint operator+(const B3DHomPoint& rVecA, const B3DHomPoint& rVecB)
- {
- B3DHomPoint aSum(rVecA);
- aSum += rVecB;
- return aSum;
+ {
+ B3DHomPoint aSum(rVecA);
+ aSum += rVecB;
+ return aSum;
}
inline B3DHomPoint operator-(const B3DHomPoint& rVecA, const B3DHomPoint& rVecB)
- {
- B3DHomPoint aSub(rVecA);
- aSub -= rVecB;
- return aSub;
+ {
+ B3DHomPoint aSub(rVecA);
+ aSub -= rVecB;
+ return aSub;
}
inline B3DHomPoint operator*(const B3DHomPoint& rVec, double t)
- {
- B3DHomPoint aNew(rVec);
- aNew *= t;
- return aNew;
+ {
+ B3DHomPoint aNew(rVec);
+ aNew *= t;
+ return aNew;
}
inline B3DHomPoint operator*(double t, const B3DHomPoint& rVec)
- {
- B3DHomPoint aNew(rVec);
- aNew *= t;
- return aNew;
+ {
+ B3DHomPoint aNew(rVec);
+ aNew *= t;
+ return aNew;
}
inline B3DHomPoint operator/(const B3DHomPoint& rVec, double t)
- {
- B3DHomPoint aNew(rVec);
- aNew /= t;
- return aNew;
+ {
+ B3DHomPoint aNew(rVec);
+ aNew /= t;
+ return aNew;
}
inline B3DHomPoint operator/(double t, const B3DHomPoint& rVec)
{
- B3DHomPoint aNew(rVec);
- aNew /= t;
- return aNew;
+ B3DHomPoint aNew(rVec);
+ aNew /= t;
+ return aNew;
}
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/point/b3dpoint.hxx b/basegfx/inc/basegfx/point/b3dpoint.hxx
index 96686efaf450..e2120a16bd94 100644
--- a/basegfx/inc/basegfx/point/b3dpoint.hxx
+++ b/basegfx/inc/basegfx/point/b3dpoint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,81 +46,81 @@ namespace basegfx
*/
class B3DPoint : public ::basegfx::B3DTuple
{
- public:
- /** Create a 3D Point
+ public:
+ /** Create a 3D Point
The point is initialized to (0.0, 0.0, 0.0)
*/
- B3DPoint()
- : B3DTuple()
+ B3DPoint()
+ : B3DTuple()
{}
- /** Create a 3D Point
+ /** Create a 3D Point
@param fX
This parameter is used to initialize the X-coordinate
of the 3D Point.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the 3D Point.
-
+
@param fZ
This parameter is used to initialize the Z-coordinate
of the 3D Point.
*/
- B3DPoint(double fX, double fY, double fZ)
- : B3DTuple(fX, fY, fZ)
+ B3DPoint(double fX, double fY, double fZ)
+ : B3DTuple(fX, fY, fZ)
{}
- /** Create a copy of a 3D Point
+ /** Create a copy of a 3D Point
@param rVec
The 3D Point which will be copied.
*/
- B3DPoint(const B3DPoint& rVec)
- : B3DTuple(rVec)
+ B3DPoint(const B3DPoint& rVec)
+ : B3DTuple(rVec)
{}
/** constructor with tuple to allow copy-constructing
from B3DTuple-based classes
*/
- B3DPoint(const ::basegfx::B3DTuple& rTuple)
- : B3DTuple(rTuple)
+ B3DPoint(const ::basegfx::B3DTuple& rTuple)
+ : B3DTuple(rTuple)
{}
- ~B3DPoint()
+ ~B3DPoint()
{}
/** *=operator to allow usage from B3DPoint, too
*/
- B3DPoint& operator*=( const B3DPoint& rPnt )
- {
+ B3DPoint& operator*=( const B3DPoint& rPnt )
+ {
mfX *= rPnt.mfX;
- mfY *= rPnt.mfY;
- mfZ *= rPnt.mfZ;
- return *this;
+ mfY *= rPnt.mfY;
+ mfZ *= rPnt.mfZ;
+ return *this;
}
/** *=operator to allow usage from B3DPoint, too
*/
- B3DPoint& operator*=(double t)
- {
- mfX *= t;
- mfY *= t;
- mfZ *= t;
- return *this;
+ B3DPoint& operator*=(double t)
+ {
+ mfX *= t;
+ mfY *= t;
+ mfZ *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
of B3DTuple calculations
*/
- B3DPoint& operator=( const ::basegfx::B3DTuple& rVec )
- {
+ B3DPoint& operator=( const ::basegfx::B3DTuple& rVec )
+ {
mfX = rVec.getX();
- mfY = rVec.getY();
- mfZ = rVec.getZ();
- return *this;
+ mfY = rVec.getY();
+ mfZ = rVec.getZ();
+ return *this;
}
/** Transform point by given transformation matrix.
@@ -140,7 +140,7 @@ namespace basegfx
//////////////////////////////////////////////////////////////////////////
/** Transform B3DPoint by given transformation matrix.
-
+
Since this is a Point, translational components of the
matrix are used.
*/
diff --git a/basegfx/inc/basegfx/point/b3ipoint.hxx b/basegfx/inc/basegfx/point/b3ipoint.hxx
index 17e63a00040c..ed84ed8c4bb9 100644
--- a/basegfx/inc/basegfx/point/b3ipoint.hxx
+++ b/basegfx/inc/basegfx/point/b3ipoint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,81 +46,81 @@ namespace basegfx
*/
class B3IPoint : public ::basegfx::B3ITuple
{
- public:
- /** Create a 3D Point
+ public:
+ /** Create a 3D Point
The point is initialized to (0, 0, 0)
*/
- B3IPoint()
- : B3ITuple()
+ B3IPoint()
+ : B3ITuple()
{}
- /** Create a 3D Point
+ /** Create a 3D Point
@param nX
This parameter is used to initialize the X-coordinate
of the 3D Point.
-
+
@param nY
This parameter is used to initialize the Y-coordinate
of the 3D Point.
-
+
@param nZ
This parameter is used to initialize the Z-coordinate
of the 3D Point.
*/
- B3IPoint(sal_Int32 nX, sal_Int32 nY, sal_Int32 nZ)
- : B3ITuple(nX, nY, nZ)
+ B3IPoint(sal_Int32 nX, sal_Int32 nY, sal_Int32 nZ)
+ : B3ITuple(nX, nY, nZ)
{}
- /** Create a copy of a 3D Point
+ /** Create a copy of a 3D Point
@param rVec
The 3D Point which will be copied.
*/
- B3IPoint(const B3IPoint& rVec)
- : B3ITuple(rVec)
+ B3IPoint(const B3IPoint& rVec)
+ : B3ITuple(rVec)
{}
/** constructor with tuple to allow copy-constructing
from B3ITuple-based classes
*/
- B3IPoint(const ::basegfx::B3ITuple& rTuple)
- : B3ITuple(rTuple)
+ B3IPoint(const ::basegfx::B3ITuple& rTuple)
+ : B3ITuple(rTuple)
{}
- ~B3IPoint()
+ ~B3IPoint()
{}
/** *=operator to allow usage from B3IPoint, too
*/
- B3IPoint& operator*=( const B3IPoint& rPnt )
- {
+ B3IPoint& operator*=( const B3IPoint& rPnt )
+ {
mnX *= rPnt.mnX;
- mnY *= rPnt.mnY;
- mnZ *= rPnt.mnZ;
- return *this;
+ mnY *= rPnt.mnY;
+ mnZ *= rPnt.mnZ;
+ return *this;
}
/** *=operator to allow usage from B3IPoint, too
*/
- B3IPoint& operator*=(sal_Int32 t)
- {
- mnX *= t;
- mnY *= t;
- mnZ *= t;
- return *this;
+ B3IPoint& operator*=(sal_Int32 t)
+ {
+ mnX *= t;
+ mnY *= t;
+ mnZ *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
of B3ITuple calculations
*/
- B3IPoint& operator=( const ::basegfx::B3ITuple& rVec )
- {
+ B3IPoint& operator=( const ::basegfx::B3ITuple& rVec )
+ {
mnX = rVec.getX();
- mnY = rVec.getY();
- mnZ = rVec.getZ();
- return *this;
+ mnY = rVec.getY();
+ mnZ = rVec.getZ();
+ return *this;
}
/** Transform point by given transformation matrix.
diff --git a/basegfx/inc/basegfx/polygon/b2dlinegeometry.hxx b/basegfx/inc/basegfx/polygon/b2dlinegeometry.hxx
index 87e44787c5b6..86fa47201c10 100644
--- a/basegfx/inc/basegfx/polygon/b2dlinegeometry.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dlinegeometry.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace basegfx
/** Create line start/end geometry element, mostly arrows and things like that.
@param rCandidate
- The polygon which needs to get that line ends and needs to have two points
+ The polygon which needs to get that line ends and needs to have two points
at least.
@param rArrow
@@ -57,8 +57,8 @@ namespace basegfx
defines the size of the element, it's describing the target width in X
of the arrow.
- @param fDockingPosition needs to be in [0.0 ..1.0] range, where 0.0 means
- that the tip of the arrow will be aligned with the polygon start, 1.0 means
+ @param fDockingPosition needs to be in [0.0 ..1.0] range, where 0.0 means
+ that the tip of the arrow will be aligned with the polygon start, 1.0 means
the bottom. The default of 0.5 describes a centered arrow.
@param pConsumedLength
@@ -74,8 +74,8 @@ namespace basegfx
The Line start and end polygon, correctly rotated and scaled
*/
B2DPolyPolygon createAreaGeometryForLineStartEnd(
- const B2DPolygon& rCandidate,
- const B2DPolyPolygon& rArrow,
+ const B2DPolygon& rCandidate,
+ const B2DPolyPolygon& rArrow,
bool bStart,
double fWidth,
double fCandidateLength = 0.0, // 0.0 -> calculate self
@@ -85,9 +85,9 @@ namespace basegfx
/** create filled polygon geometry for lines with a line width
This method will create bezier based, fillable polygons which
- will resample the curve if it was extended for the given half
- line width. It will remove extrema positions from contained
- bezier segments and get as close as possible and defined by
+ will resample the curve if it was extended for the given half
+ line width. It will remove extrema positions from contained
+ bezier segments and get as close as possible and defined by
the given parameters to the ideal result.
It will check edges for trivial bezier to avoid unnecessary
@@ -114,7 +114,7 @@ namespace basegfx
@param fMaxPartOfEdge
Allows to influence from with relative length of a control vector
- compared to it's edge a split is forced. The smaller, the more
+ compared to it's edge a split is forced. The smaller, the more
subdivisions will be needed to create the filled geometry. Allowed
range is cropped to [1.0 .. 0.01]
@@ -130,10 +130,10 @@ namespace basegfx
needed and defined.
*/
B2DPolyPolygon createAreaGeometry(
- const B2DPolygon& rCandidate,
- double fHalfLineWidth,
- B2DLineJoin eJoin = B2DLINEJOIN_ROUND,
- double fMaxAllowedAngle = (12.5 * F_PI180),
+ const B2DPolygon& rCandidate,
+ double fHalfLineWidth,
+ B2DLineJoin eJoin = B2DLINEJOIN_ROUND,
+ double fMaxAllowedAngle = (12.5 * F_PI180),
double fMaxPartOfEdge = 0.4,
double fMiterMinimumAngle = (15.0 * F_PI180));
} // end of namespace tools
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
index 60d6c7a18d70..65b56ad6c4ae 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -113,11 +113,11 @@ namespace basegfx
B2VectorContinuity getContinuityInPoint(sal_uInt32 nIndex) const;
/** check edge for being a bezier segment
-
- This test the existance of control vectors, but do not apply
- testAndSolveTrivialBezier() to the bezier segment, so it is still useful
+
+ This test the existance of control vectors, but do not apply
+ testAndSolveTrivialBezier() to the bezier segment, so it is still useful
to do so.
- Since it can use internal data representations, it is faster
+ Since it can use internal data representations, it is faster
than using getBezierSegment() and applying isBezier() on it.
@param nIndex
@@ -127,14 +127,14 @@ namespace basegfx
true if edge exists and at least one control vector is used
*/
bool isBezierSegment(sal_uInt32 nIndex) const;
-
+
/** bezier segment access
-
+
This method also works when it is no bezier segment at all and will fill
the given B2DCubicBezier as needed.
In any case, the given B2DCubicBezier will be filled, if necessary with
the single start point (if no valid edge exists).
-
+
@param nIndex
Index of the addressed edge's start point
@@ -181,18 +181,18 @@ namespace basegfx
(a) the range of the polygon points
(b) the range of the polygon points and control points
(c) the outer range of the subdivided bezier curve
-
- Ranges (a) and (c) are produced by tools::getRange(); resp. this
+
+ Ranges (a) and (c) are produced by tools::getRange(); resp. this
getB2DRange(). tools::getRangeWithControlPoints handles case (b).
-
- To get range (c) a simple solution would be to subdivide the polygon
- and use getRange() on it. Since subdivision is expensive and decreases
+
+ To get range (c) a simple solution would be to subdivide the polygon
+ and use getRange() on it. Since subdivision is expensive and decreases
the polygon quality, i added this new method. It will use a
methodology suggested by HDU. First, it gets the range (a).
Then it iterates over the bezier segments and for each it
first tests if the outer range of the bezier segment is already
contained in the result range.
-
+
The subdivision itself uses getAllExtremumPositions() to only
calculate extremum points and to expand the result accordingly.
Thus it calculates maximal four extremum points on the bezier
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygonclipper.hxx b/basegfx/inc/basegfx/polygon/b2dpolygonclipper.hxx
index 9915ddf4be87..0e26017489cd 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygonclipper.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygonclipper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx b/basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx
index 6a6a8ba650e3..7d88ca8f8c78 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygoncutandtouch.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ namespace basegfx
B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate, const B2DPolyPolygon& rMask);
B2DPolyPolygon addPointsAtCuts(const B2DPolyPolygon& rCandidate, const B2DPolyPolygon& rMask);
- // look for self-intersections in given polygon and add extra points there. Result will have no
+ // look for self-intersections in given polygon and add extra points there. Result will have no
// intersections on an edge
B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate);
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
index 1ac4fd9d2af5..51157cdde5a1 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygontools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ namespace basegfx
void openWithGeometryChange(B2DPolygon& rCandidate);
void closeWithGeometryChange(B2DPolygon& rCandidate);
- /** Check if given polygon is closed.
+ /** Check if given polygon is closed.
This is kind of a 'classic' method to support old polygon
definitions. Those old polygon definitions define the
@@ -89,7 +89,7 @@ namespace basegfx
B2DRange getRangeWithControlPoints(const B2DPolygon& rCandidate);
/** Get the range of a polygon
-
+
This method creates the outer range of the subdivided bezier curve.
For detailed discussion see B2DPolygon::getB2DRange()
@@ -125,13 +125,13 @@ namespace basegfx
// get a snippet from given polygon for absolute distances. The polygon is assumed
// to be opened (not closed). fFrom and fTo need to be in range [0.0 .. fLength], where
- // fTo >= fFrom. If length is given, it is assumed the correct polygon length,
+ // fTo >= fFrom. If length is given, it is assumed the correct polygon length,
// if 0.0 it is calculated using getLength(...)
B2DPolygon getSnippetAbsolute(const B2DPolygon& rCandidate, double fFrom, double fTo, double fLength = 0.0);
// get a snippet from given polygon for relative distances. The polygon is assumed
// to be opened (not closed). fFrom and fTo need to be in range [0.0 .. 1.0], where
- // fTo >= fFrom. If length is given, it is assumed the correct polygon length,
+ // fTo >= fFrom. If length is given, it is assumed the correct polygon length,
// if 0.0 it is calculated using getLength(...)
B2DPolygon getSnippetRelative(const B2DPolygon& rCandidate, double fFrom = 0.0, double fTo = 1.0, double fLength = 0.0);
@@ -150,22 +150,22 @@ namespace basegfx
// Definitions for the cut flags used from the findCut methods
typedef sal_uInt16 CutFlagValue;
- #define CUTFLAG_NONE (0x0000)
- #define CUTFLAG_LINE (0x0001)
- #define CUTFLAG_START1 (0x0002)
- #define CUTFLAG_START2 (0x0004)
- #define CUTFLAG_END1 (0x0008)
- #define CUTFLAG_END2 (0x0010)
- #define CUTFLAG_ALL (CUTFLAG_LINE|CUTFLAG_START1|CUTFLAG_START2|CUTFLAG_END1|CUTFLAG_END2)
- #define CUTFLAG_DEFAULT (CUTFLAG_LINE|CUTFLAG_START2|CUTFLAG_END2)
+ #define CUTFLAG_NONE (0x0000)
+ #define CUTFLAG_LINE (0x0001)
+ #define CUTFLAG_START1 (0x0002)
+ #define CUTFLAG_START2 (0x0004)
+ #define CUTFLAG_END1 (0x0008)
+ #define CUTFLAG_END2 (0x0010)
+ #define CUTFLAG_ALL (CUTFLAG_LINE|CUTFLAG_START1|CUTFLAG_START2|CUTFLAG_END1|CUTFLAG_END2)
+ #define CUTFLAG_DEFAULT (CUTFLAG_LINE|CUTFLAG_START2|CUTFLAG_END2)
// Calculate cut between the points given by the two indices. pCut1
// and pCut2 will contain the cut coordinate on each edge in ]0.0, 1.0]
// (if given) and the return value will contain a cut description.
CutFlagValue findCut(
const B2DPolygon& rCandidate,
- sal_uInt32 nIndex1, sal_uInt32 nIndex2,
- CutFlagValue aCutFlags = CUTFLAG_DEFAULT,
+ sal_uInt32 nIndex1, sal_uInt32 nIndex2,
+ CutFlagValue aCutFlags = CUTFLAG_DEFAULT,
double* pCut1 = 0L, double* pCut2 = 0L);
// This version is working with two indexed edges from different
@@ -173,7 +173,7 @@ namespace basegfx
CutFlagValue findCut(
const B2DPolygon& rCandidate1, sal_uInt32 nIndex1,
const B2DPolygon& rCandidate2, sal_uInt32 nIndex2,
- CutFlagValue aCutFlags = CUTFLAG_DEFAULT,
+ CutFlagValue aCutFlags = CUTFLAG_DEFAULT,
double* pCut1 = 0L, double* pCut2 = 0L);
// This version works with two points and vectors to define the
@@ -189,8 +189,8 @@ namespace basegfx
// value in pCut (if provided)
bool isPointOnEdge(
const B2DPoint& rPoint,
- const B2DPoint& rEdgeStart,
- const B2DVector& rEdgeDelta,
+ const B2DPoint& rEdgeStart,
+ const B2DVector& rEdgeDelta,
double* pCut = 0L);
/** Apply given LineDashing to given polygon
@@ -198,8 +198,8 @@ namespace basegfx
This method is used to cut down line polygons to the needed
pieces when a dashing needs to be applied.
It is now capable of keeping contained bezier segments.
- It is also capable of delivering line and non-line portions
- depending on what target polygons You provide. This is useful
+ It is also capable of delivering line and non-line portions
+ depending on what target polygons You provide. This is useful
e.g. for dashed lines with two colors.
If the last and the first snippet in one of the results have
a common start/end ppoint, they will be merged to achieve as
@@ -227,8 +227,8 @@ namespace basegfx
be calculated internally.
*/
void applyLineDashing(
- const B2DPolygon& rCandidate,
- const ::std::vector<double>& rDotDashArray,
+ const B2DPolygon& rCandidate,
+ const ::std::vector<double>& rDotDashArray,
B2DPolyPolygon* pLineTarget,
B2DPolyPolygon* pGapTarget = 0,
double fFullDashDotLen = 0.0);
@@ -239,9 +239,9 @@ namespace basegfx
// 2 x fDistance, and the circle around both points with radius fDistance.
bool isInEpsilonRange(const B2DPoint& rEdgeStart, const B2DPoint& rEdgeEnd, const B2DPoint& rTestPosition, double fDistance);
- // test if point is inside epsilon-range around the given Polygon. Can be used
- // for HitTesting. The epsilon-range is defined to be the rectangle centered
- // to the given edge, using height 2 x fDistance, and the circle around both points
+ // test if point is inside epsilon-range around the given Polygon. Can be used
+ // for HitTesting. The epsilon-range is defined to be the rectangle centered
+ // to the given edge, using height 2 x fDistance, and the circle around both points
// with radius fDistance.
bool isInEpsilonRange(const B2DPolygon& rCandidate, const B2DPoint& rTestPosition, double fDistance);
@@ -321,7 +321,7 @@ namespace basegfx
/** Create an unit ellipse polygon with the given angles, from start to end
*/
- B2DPolygon createPolygonFromEllipseSegment( const B2DPoint& rCenter, double fRadiusX, double fRadiusY, double fStart, double fEnd );
+ B2DPolygon createPolygonFromEllipseSegment( const B2DPoint& rCenter, double fRadiusX, double fRadiusY, double fStart, double fEnd );
B2DPolygon createPolygonFromUnitEllipseSegment( double fStart, double fEnd );
@@ -405,7 +405,7 @@ namespace basegfx
// calculates if given point is on given line, taking care of the numerical epsilon
bool isPointOnLine(const B2DPoint& rStart, const B2DPoint& rEnd, const B2DPoint& rCandidate, bool bWithPoints = false);
- // calculates if given point is on given polygon, taking care of the numerical epsilon. Uses
+ // calculates if given point is on given polygon, taking care of the numerical epsilon. Uses
// isPointOnLine internally
bool isPointOnPolygon(const B2DPolygon& rCandidate, const B2DPoint& rPoint, bool bWithPoints = true);
@@ -449,7 +449,7 @@ namespace basegfx
preserved.
The polygon is subdivided if curve segments are included. That subdivision is the base
for the newly created points.
- If the source is closed, the indirectly existing last edge may NOT have the
+ If the source is closed, the indirectly existing last edge may NOT have the
given length.
If the source is open, all edges will have the given length. You may use the last
point of the original when You want to add the last edge Yourself.
@@ -462,7 +462,7 @@ namespace basegfx
original start point. Negative values are truncated to 0.0.
@param fEnd
- The maximum distance for the last point. No more points behind this distance will be created.
+ The maximum distance for the last point. No more points behind this distance will be created.
Use 0.0 to proccess the whole polygon. Negative values are truncated to 0.0. It also
needs to be more or equal to fStart, else it is truncated to fStart.
@@ -471,12 +471,12 @@ namespace basegfx
*/
B2DPolygon createEdgesOfGivenLength(const B2DPolygon& rCandidate, double fLength, double fStart = 0.0, double fEnd = 0.0);
- /** Create Waveline along given polygon
+ /** Create Waveline along given polygon
The implementation is based on createEdgesOfGivenLength and creates a curve
segment with the given dimensions for each created line segment. The polygon
is treated as if opened (closed state will be ignored) and only for whole
edges a curve segment will be created (no rest handling)
-
+
@param rCandidate
The polygon along which the waveline will be created
@@ -489,7 +489,7 @@ namespace basegfx
B2DPolygon createWaveline(const B2DPolygon& rCandidate, double fWaveWidth, double fWaveHeight);
/** split each edge of a polygon in exactly nSubEdges equidistant edges
-
+
@param rCandidate
The source polygon. If too small (no edges), nSubEdges too small (<2)
or neither bHandleCurvedEdgesnor bHandleStraightEdges it will just be returned.
@@ -497,12 +497,12 @@ namespace basegfx
@param nSubEdges
How many edges shall be created as replacement for each single edge
-
+
@param bHandleCurvedEdges
Process curved edges or not. If to handle the curved edges will be splitted
into nSubEdges part curved edges of equidistant bezier distances. If not,
curved edges will just be copied.
-
+
@param bHandleStraightEdges
Process straight edges or not. If to handle the straight edges will be splitted
into nSubEdges part curved edges of equidistant length. If not,
@@ -518,7 +518,7 @@ namespace basegfx
/** snap some polygon coordinates to discrete coordinates
This method allows to snap some polygon points to discrete (integer) values
- which equals e.g. a snap to discrete coordinates. It will snap points of
+ which equals e.g. a snap to discrete coordinates. It will snap points of
horizontal and vertical edges
@param rCandidate
diff --git a/basegfx/inc/basegfx/polygon/b2dpolygontriangulator.hxx b/basegfx/inc/basegfx/polygon/b2dpolygontriangulator.hxx
index 05bd230031a0..f05e2eadcc3a 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolygontriangulator.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolygontriangulator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx
index 80664d065dc6..7fe739a4f7fc 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolypolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,8 +37,8 @@
class ImplB2DPolyPolygon;
namespace basegfx
-{
- class B2DPolygon;
+{
+ class B2DPolygon;
class B2DHomMatrix;
} // end of namespace basegfx
@@ -54,7 +54,7 @@ namespace basegfx
private:
ImplType mpPolyPolygon;
- public:
+ public:
B2DPolyPolygon();
B2DPolyPolygon(const B2DPolyPolygon& rPolyPolygon);
explicit B2DPolyPolygon(const B2DPolygon& rPolygon);
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx
index 3f00b3093f06..09519396846c 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolypolygoncutter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ namespace basegfx
// it's depth is increased when inside a polygon, decreased when inside a hole. The result is a depth
// which e.g. is -1 for holes outside everything, 1 for a polygon covered by another polygon and zero
// for e.g. holes in a polygon or polygons outside everythig else.
- // In the 2nd step, all polygons with depth other than zero are removed. If bKeepAboveZero is used,
+ // In the 2nd step, all polygons with depth other than zero are removed. If bKeepAboveZero is used,
// all polygons < 1 are removed. The bKeepAboveZero mode is useful for clipping, e.g. just append
// one polygon to another and use this mode -> only parts where two polygons overlapped will be kept.
// In combination with correct orientation of the input orientations and the SolveCrossover calls this
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygonfillrule.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygonfillrule.hxx
index 2517a9c423e9..01b4af602756 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygonfillrule.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolypolygonfillrule.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx
index 1f56a14c1842..e43a9a57c5bb 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolypolygonrasterconverter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace basegfx
derive from this, and override the span() method, which will
get called for every scanline span of the poly-polygon.
- @derive
+ @derive
Overwrite span() with the render output method of your choice.
*/
class B2DPolyPolygonRasterConverter
@@ -74,7 +74,7 @@ namespace basegfx
area might also be larger.
*/
B2DPolyPolygonRasterConverter(const B2DPolyPolygon& rPolyPolyRaster,
- const B2DRectangle& rRasterArea );
+ const B2DRectangle& rRasterArea );
virtual ~B2DPolyPolygonRasterConverter();
@@ -90,7 +90,7 @@ namespace basegfx
@param rfXLeft
The left end of the current horizontal span
-
+
@param rfXRight
The right end of the current horizontal span
@@ -103,8 +103,8 @@ namespace basegfx
*/
virtual void span(const double& rfXLeft,
const double& rfXRight,
- sal_Int32 nY,
- bool bOn ) = 0;
+ sal_Int32 nY,
+ bool bOn ) = 0;
/// @internal
struct Vertex
@@ -112,9 +112,9 @@ namespace basegfx
inline Vertex();
inline Vertex( const B2DPoint&, const B2DPoint&, bool );
- B2DPoint aP1;
- B2DPoint aP2;
- bool bDownwards;
+ B2DPoint aP1;
+ B2DPoint aP2;
+ bool bDownwards;
};
private:
@@ -124,18 +124,18 @@ namespace basegfx
void init();
- typedef ::std::vector<Vertex> VectorOfVertices;
- typedef ::std::vector<VectorOfVertices> VectorOfVertexVectors;
+ typedef ::std::vector<Vertex> VectorOfVertices;
+ typedef ::std::vector<VectorOfVertices> VectorOfVertexVectors;
/// The poly-polygon to raster-convert
- B2DPolyPolygon maPolyPolygon;
+ B2DPolyPolygon maPolyPolygon;
/// Total bound rect of the poly-polygon
- const B2DRectangle maPolyPolyRectangle;
+ const B2DRectangle maPolyPolyRectangle;
/** Vector containing for each scanline a vector which in turn
contains all vertices that start on the specific scanline
*/
- VectorOfVertexVectors maScanlines;
+ VectorOfVertexVectors maScanlines;
};
}
diff --git a/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx b/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
index 8b025bcff99e..f8ccf09a5745 100644
--- a/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dpolypolygontools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,7 +73,7 @@ namespace basegfx
// is created.
B2DPolyPolygon adaptiveSubdivideByCount(const B2DPolyPolygon& rCandidate, sal_uInt32 nCount = 0L);
- // isInside test for B2dPoint. On border is not inside as long as not true is given
+ // isInside test for B2dPoint. On border is not inside as long as not true is given
// in bWithBorder flag. It is assumed that the orientations of the given polygon are correct.
bool isInside(const B2DPolyPolygon& rCandidate, const B2DPoint& rPoint, bool bWithBorder = false);
@@ -102,19 +102,19 @@ namespace basegfx
The outer range of the polygon
*/
B2DRange getRange(const B2DPolyPolygon& rCandidate);
-
+
/** Apply given LineDashing to given polyPolygon
For a description see applyLineDashing in b2dpolygontoos.hxx
*/
void applyLineDashing(
- const B2DPolyPolygon& rCandidate,
- const ::std::vector<double>& rDotDashArray,
+ const B2DPolyPolygon& rCandidate,
+ const ::std::vector<double>& rDotDashArray,
B2DPolyPolygon* pLineTarget,
B2DPolyPolygon* pGapTarget = 0,
double fFullDashDotLen = 0.0);
- // test if point is inside epsilon-range around the given PolyPolygon. Can be used
+ // test if point is inside epsilon-range around the given PolyPolygon. Can be used
// for HitTesting. The epsilon-range is defined to be the tube around the PolyPolygon
// with distance fDistance and rounded edges (start and end point).
bool isInEpsilonRange(const B2DPolyPolygon& rCandidate, const B2DPoint& rTestPosition, double fDistance);
@@ -180,7 +180,7 @@ namespace basegfx
B2DPolyPolygon createB2DPolyPolygonFromB3DPolyPolygon(const B3DPolyPolygon& rCandidate, const B3DHomMatrix& rMat);
// for each contained edge in each contained polygon calculate the smallest distance. Return the index to the smallest
- // edge in rEdgeIndex and the index to the polygon in rPolygonIndex. The relative position on the edge is returned in rCut.
+ // edge in rEdgeIndex and the index to the polygon in rPolygonIndex. The relative position on the edge is returned in rCut.
// If nothing was found (e.g. empty input plygon), DBL_MAX is returned.
double getSmallestDistancePointToPolyPolygon(const B2DPolyPolygon& rCandidate, const B2DPoint& rTestPoint, sal_uInt32& rPolygonIndex, sal_uInt32& rEdgeIndex, double& rCut);
@@ -219,7 +219,7 @@ namespace basegfx
@param rPolyPoly
The poly-polygon to export
-
+
@param bUseRelativeCoordinates
When true, all coordinate values are exported as relative
to the current position. This tends to save some space,
@@ -235,14 +235,14 @@ namespace basegfx
value alone, without any "<path ...>" or "d="...")
*/
::rtl::OUString exportToSvgD( const B2DPolyPolygon& rPolyPoly,
- bool bUseRelativeCoordinates=true,
- bool bDetectQuadraticBeziers=true );
+ bool bUseRelativeCoordinates=true,
+ bool bDetectQuadraticBeziers=true );
// #i76891# Try to remove existing curve segments if they are simply edges
B2DPolyPolygon simplifyCurveSegments(const B2DPolyPolygon& rCandidate);
/** split each edge of a polyPolygon in exactly nSubEdges equidistant edges
-
+
@param rCandidate
The source polyPolygon. If too small (no edges), nSubEdges too small (<2)
or neither bHandleCurvedEdgesnor bHandleStraightEdges it will just be returned.
@@ -263,7 +263,7 @@ namespace basegfx
/** snap some polygon coordinates to discrete coordinates
This method allows to snap some polygon points to discrete (integer) values
- which equals e.g. a snap to discrete coordinates. It will snap points of
+ which equals e.g. a snap to discrete coordinates. It will snap points of
horizontal and vertical edges
@param rCandidate
diff --git a/basegfx/inc/basegfx/polygon/b2dtrapezoid.hxx b/basegfx/inc/basegfx/polygon/b2dtrapezoid.hxx
index 77c6e40c4742..cd0f8fbf6a87 100644
--- a/basegfx/inc/basegfx/polygon/b2dtrapezoid.hxx
+++ b/basegfx/inc/basegfx/polygon/b2dtrapezoid.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,12 +51,12 @@ namespace basegfx
// - mfBottomY >= mfTopY
// - mfTopXRight >= mfTopXLeft
// - mfBottomXRight >= mfBottomXLeft
- double mfTopXLeft;
- double mfTopXRight;
- double mfTopY;
- double mfBottomXLeft;
- double mfBottomXRight;
- double mfBottomY;
+ double mfTopXLeft;
+ double mfTopXRight;
+ double mfTopY;
+ double mfBottomXLeft;
+ double mfBottomXRight;
+ double mfBottomY;
public:
// constructor
@@ -98,22 +98,22 @@ namespace basegfx
// for primitive decompositions. To use it, the shear and rotate parts of the
// involved transformations HAVE to be taken into account.
void trapezoidSubdivide(
- B2DTrapezoidVector& ro_Result,
+ B2DTrapezoidVector& ro_Result,
const B2DPolyPolygon& rSourcePolyPolygon);
// directly create trapezoids from given edge. Depending on the given geometry,
// none up to three trapezoids will be created
void createLineTrapezoidFromEdge(
- B2DTrapezoidVector& ro_Result,
- const B2DPoint& rPointA,
- const B2DPoint& rPointB,
+ B2DTrapezoidVector& ro_Result,
+ const B2DPoint& rPointA,
+ const B2DPoint& rPointB,
double fLineWidth = 1.0);
// create trapezoids for all edges of the given polygon. The closed state of
// the polygon is taken into account. If curves are contaned, the default
// AdaptiveSubdivision will be used.
void createLineTrapezoidFromB2DPolygon(
- B2DTrapezoidVector& ro_Result,
+ B2DTrapezoidVector& ro_Result,
const B2DPolygon& rPolygon,
double fLineWidth = 1.0);
@@ -121,7 +121,7 @@ namespace basegfx
// the PolyPolygon is taken into account. If curves are contaned, the default
// AdaptiveSubdivision will be used.
void createLineTrapezoidFromB2DPolyPolygon(
- B2DTrapezoidVector& ro_Result,
+ B2DTrapezoidVector& ro_Result,
const B2DPolyPolygon& rPolyPolygon,
double fLineWidth = 1.0);
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygon.hxx b/basegfx/inc/basegfx/polygon/b3dpolygon.hxx
index 5f1613845915..d6fc01f959a2 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygon.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx b/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
index 3166c39012c1..3b6934da1a92 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygonclipper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,13 +42,13 @@ namespace basegfx
namespace tools
{
- /** define for deciding one of X,Y,Z directions
+ /** define for deciding one of X,Y,Z directions
*/
enum B3DOrientation
{
- B3DORIENTATION_X, // X-Axis
- B3DORIENTATION_Y, // Y-Axis
- B3DORIENTATION_Z // Z-Axis
+ B3DORIENTATION_X, // X-Axis
+ B3DORIENTATION_Y, // Y-Axis
+ B3DORIENTATION_Z // Z-Axis
};
// Clip given 3D polygon against a plane orthogonal to X,Y or Z axis. The plane is defined using the
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
index 00caf76823e1..89982d777f90 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ namespace basegfx
{
// B3DPolygon tools
- /** Check if given polygon is closed. This is kind of a
+ /** Check if given polygon is closed. This is kind of a
'classic' method to support old polygon definitions.
Those old polygon definitions define the closed state
of the polygon using identical start and endpoints. This
@@ -106,15 +106,15 @@ namespace basegfx
For a description see applyLineDashing in b2dpolygontoos.hxx
*/
void applyLineDashing(
- const B3DPolygon& rCandidate,
- const ::std::vector<double>& rDotDashArray,
+ const B3DPolygon& rCandidate,
+ const ::std::vector<double>& rDotDashArray,
B3DPolyPolygon* pLineTarget,
B3DPolyPolygon* pGapTarget = 0,
double fFullDashDotLen = 0.0);
/** Create/replace normals for given 3d geometry with default normals from given center to outside.
- rCandidate: the 3d geometry to change
- rCenter: the center of the 3d geometry
+ rCandidate: the 3d geometry to change
+ rCenter: the center of the 3d geometry
*/
B3DPolygon applyDefaultNormalsSphere( const B3DPolygon& rCandidate, const B3DPoint& rCenter);
@@ -142,8 +142,8 @@ namespace basegfx
// fDistance, and the sphere around both points with radius fDistance.
bool isInEpsilonRange(const B3DPoint& rEdgeStart, const B3DPoint& rEdgeEnd, const B3DPoint& rTestPosition, double fDistance);
- // test if point is inside epsilon-range around the given Polygon. Can be used
- // for HitTesting. The epsilon-range is defined to be the cylinder centered to
+ // test if point is inside epsilon-range around the given Polygon. Can be used
+ // for HitTesting. The epsilon-range is defined to be the cylinder centered to
// the given edge, using radius fDistance, and the sphere around both points with radius fDistance.
bool isInEpsilonRange(const B3DPolygon& rCandidate, const B3DPoint& rTestPosition, double fDistance);
@@ -155,7 +155,7 @@ namespace basegfx
// calculates if given point is on given line, taking care of the numerical epsilon
bool isPointOnLine(const B3DPoint& rStart, const B3DPoint& rEnd, const B3DPoint& rCandidate, bool bWithPoints = false);
- // calculates if given point is on given polygon, taking care of the numerical epsilon. Uses
+ // calculates if given point is on given polygon, taking care of the numerical epsilon. Uses
// isPointOnLine internally
bool isPointOnPolygon(const B3DPolygon& rCandidate, const B3DPoint& rPoint, bool bWithPoints = true);
@@ -175,7 +175,7 @@ namespace basegfx
/** snap some polygon coordinates to discrete coordinates
This method allows to snap some polygon points to discrete (integer) values
- which equals e.g. a snap to discrete coordinates. It will snap points of
+ which equals e.g. a snap to discrete coordinates. It will snap points of
horizontal and vertical edges
@param rCandidate
diff --git a/basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx b/basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx
index 472b39bab267..697edfe93084 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolypolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,8 +36,8 @@
class ImplB3DPolyPolygon;
namespace basegfx
-{
- class B3DPolygon;
+{
+ class B3DPolygon;
class B3DHomMatrix;
class B2DHomMatrix;
} // end of namespace basegfx
@@ -54,7 +54,7 @@ namespace basegfx
private:
ImplType mpPolyPolygon;
- public:
+ public:
B3DPolyPolygon();
B3DPolyPolygon(const B3DPolyPolygon& rPolyPolygon);
explicit B3DPolyPolygon(const B3DPolygon& rPolygon);
diff --git a/basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx b/basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx
index 10083f57dd60..1be2e31f38fc 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolypolygontools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,8 +55,8 @@ namespace basegfx
For a description see applyLineDashing in b2dpolygontoos.hxx
*/
void applyLineDashing(
- const B3DPolyPolygon& rCandidate,
- const ::std::vector<double>& rDotDashArray,
+ const B3DPolyPolygon& rCandidate,
+ const ::std::vector<double>& rDotDashArray,
B3DPolyPolygon* pLineTarget,
B3DPolyPolygon* pGapTarget = 0,
double fFullDashDotLen = 0.0);
@@ -91,8 +91,8 @@ namespace basegfx
If nHorSeg == 0 and/or nVerSeg == 0, a default will be calculated to have a step at least each 15 degrees.
With VerStart, VerStop and hor range in cartesian may be specified to create a partial sphere only.
*/
- B3DPolyPolygon createSpherePolyPolygonFromB3DRange(
- const B3DRange& rRange,
+ B3DPolyPolygon createSpherePolyPolygonFromB3DRange(
+ const B3DRange& rRange,
sal_uInt32 nHorSeg = 0L, sal_uInt32 nVerSeg = 0L,
double fVerStart = F_PI2, double fVerStop = -F_PI2,
double fHorStart = 0.0, double fHorStop = F_2PI);
@@ -109,16 +109,16 @@ namespace basegfx
/** same as createSpherePolyPolygonFromB3DRange, but creates filled polygons (closed and oriented)
There is one extra, the bool bNormals defines if normals will be set, default is false
*/
- B3DPolyPolygon createSphereFillPolyPolygonFromB3DRange(
- const B3DRange& rRange,
+ B3DPolyPolygon createSphereFillPolyPolygonFromB3DRange(
+ const B3DRange& rRange,
sal_uInt32 nHorSeg = 0L, sal_uInt32 nVerSeg = 0L,
bool bNormals = false,
double fVerStart = F_PI2, double fVerStop = -F_PI2,
double fHorStart = 0.0, double fHorStop = F_2PI);
/** Create/replace normals for given 3d geometry with default normals from given center to outside.
- rCandidate: the 3d geometry to change
- rCenter: the center of the 3d geometry
+ rCandidate: the 3d geometry to change
+ rCenter: the center of the 3d geometry
*/
B3DPolyPolygon applyDefaultNormalsSphere( const B3DPolyPolygon& rCandidate, const B3DPoint& rCenter);
@@ -140,7 +140,7 @@ namespace basegfx
*/
B3DPolyPolygon applyDefaultTextureCoordinatesSphere( const B3DPolyPolygon& rCandidate, const B3DPoint& rCenter, bool bChangeX = true, bool bChangeY = true);
- // isInside test for B3DPoint. On border is not inside as long as not true is given
+ // isInside test for B3DPoint. On border is not inside as long as not true is given
// in bWithBorder flag. It is assumed that the orientations of the given polygon are correct.
bool isInside(const B3DPolyPolygon& rCandidate, const B3DPoint& rPoint, bool bWithBorder = false);
diff --git a/basegfx/inc/basegfx/range/b1drange.hxx b/basegfx/inc/basegfx/range/b1drange.hxx
index feb48d336e9a..a6cacec6d718 100644
--- a/basegfx/inc/basegfx/range/b1drange.hxx
+++ b/basegfx/inc/basegfx/range/b1drange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,55 +38,55 @@ namespace basegfx
class B1DRange
{
- ::basegfx::BasicRange< double, DoubleTraits > maRange;
+ ::basegfx::BasicRange< double, DoubleTraits > maRange;
- public:
- B1DRange()
+ public:
+ B1DRange()
{
}
-
- explicit B1DRange(double fStartValue)
- : maRange(fStartValue)
+
+ explicit B1DRange(double fStartValue)
+ : maRange(fStartValue)
{
}
-
- B1DRange(double fStartValue1, double fStartValue2)
- : maRange(fStartValue1)
+
+ B1DRange(double fStartValue1, double fStartValue2)
+ : maRange(fStartValue1)
{
expand(fStartValue2);
}
-
+
B1DRange(const B1DRange& rRange)
- : maRange(rRange.maRange)
+ : maRange(rRange.maRange)
{
}
explicit B1DRange( const B1IRange& rRange );
- bool isEmpty() const
+ bool isEmpty() const
{
return maRange.isEmpty();
}
- void reset()
- {
- maRange.reset();
+ void reset()
+ {
+ maRange.reset();
}
-
- bool operator==( const B1DRange& rRange ) const
- {
- return (maRange == rRange.maRange);
+
+ bool operator==( const B1DRange& rRange ) const
+ {
+ return (maRange == rRange.maRange);
}
- bool operator!=( const B1DRange& rRange ) const
- {
- return (maRange != rRange.maRange);
+ bool operator!=( const B1DRange& rRange ) const
+ {
+ return (maRange != rRange.maRange);
}
- B1DRange& operator=(const B1DRange& rRange)
- {
- maRange = rRange.maRange;
- return *this;
+ B1DRange& operator=(const B1DRange& rRange)
+ {
+ maRange = rRange.maRange;
+ return *this;
}
bool equal(const B1DRange& rRange) const
@@ -94,64 +94,64 @@ namespace basegfx
return (maRange.equal(rRange.maRange));
}
- double getMinimum() const
- {
- return maRange.getMinimum();
+ double getMinimum() const
+ {
+ return maRange.getMinimum();
}
- double getMaximum() const
- {
- return maRange.getMaximum();
+ double getMaximum() const
+ {
+ return maRange.getMaximum();
}
- double getRange() const
- {
- return maRange.getRange();
+ double getRange() const
+ {
+ return maRange.getRange();
}
-
+
double getCenter() const
{
- return maRange.getCenter();
+ return maRange.getCenter();
}
- bool isInside(double fValue) const
- {
- return maRange.isInside(fValue);
+ bool isInside(double fValue) const
+ {
+ return maRange.isInside(fValue);
}
-
- bool isInside(const B1DRange& rRange) const
- {
- return maRange.isInside(rRange.maRange);
+
+ bool isInside(const B1DRange& rRange) const
+ {
+ return maRange.isInside(rRange.maRange);
}
- bool overlaps(const B1DRange& rRange) const
- {
- return maRange.overlaps(rRange.maRange);
+ bool overlaps(const B1DRange& rRange) const
+ {
+ return maRange.overlaps(rRange.maRange);
}
- bool overlapsMore(const B1DRange& rRange) const
- {
- return maRange.overlapsMore(rRange.maRange);
+ bool overlapsMore(const B1DRange& rRange) const
+ {
+ return maRange.overlapsMore(rRange.maRange);
}
- void expand(double fValue)
- {
- maRange.expand(fValue);
+ void expand(double fValue)
+ {
+ maRange.expand(fValue);
}
- void expand(const B1DRange& rRange)
- {
- maRange.expand(rRange.maRange);
+ void expand(const B1DRange& rRange)
+ {
+ maRange.expand(rRange.maRange);
}
- void intersect(const B1DRange& rRange)
- {
- maRange.intersect(rRange.maRange);
+ void intersect(const B1DRange& rRange)
+ {
+ maRange.intersect(rRange.maRange);
}
void grow(double fValue)
{
- maRange.grow(fValue);
+ maRange.grow(fValue);
}
};
diff --git a/basegfx/inc/basegfx/range/b1ibox.hxx b/basegfx/inc/basegfx/range/b1ibox.hxx
index d2ef68b86e7a..2001ec964a32 100644
--- a/basegfx/inc/basegfx/range/b1ibox.hxx
+++ b/basegfx/inc/basegfx/range/b1ibox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,107 +36,107 @@ namespace basegfx
{
class B1IBox
{
- ::basegfx::BasicBox maRange;
+ ::basegfx::BasicBox maRange;
- public:
- B1IBox()
+ public:
+ B1IBox()
{
}
-
- explicit B1IBox(sal_Int32 nStartValue)
- : maRange(nStartValue)
+
+ explicit B1IBox(sal_Int32 nStartValue)
+ : maRange(nStartValue)
{
}
-
- B1IBox(sal_Int32 nStartValue1, sal_Int32 nStartValue2)
- : maRange(nStartValue1)
+
+ B1IBox(sal_Int32 nStartValue1, sal_Int32 nStartValue2)
+ : maRange(nStartValue1)
{
expand(nStartValue2);
}
B1IBox(const B1IBox& rBox)
- : maRange(rBox.maRange)
+ : maRange(rBox.maRange)
{
}
- bool isEmpty() const
+ bool isEmpty() const
{
return maRange.isEmpty();
}
- void reset()
- {
- maRange.reset();
+ void reset()
+ {
+ maRange.reset();
}
-
- bool operator==( const B1IBox& rBox ) const
- {
- return (maRange == rBox.maRange);
+
+ bool operator==( const B1IBox& rBox ) const
+ {
+ return (maRange == rBox.maRange);
}
- bool operator!=( const B1IBox& rBox ) const
- {
- return (maRange != rBox.maRange);
+ bool operator!=( const B1IBox& rBox ) const
+ {
+ return (maRange != rBox.maRange);
}
- void operator=(const B1IBox& rBox)
- {
- maRange = rBox.maRange;
+ void operator=(const B1IBox& rBox)
+ {
+ maRange = rBox.maRange;
}
- sal_Int32 getMinimum() const
- {
- return maRange.getMinimum();
+ sal_Int32 getMinimum() const
+ {
+ return maRange.getMinimum();
}
- sal_Int32 getMaximum() const
- {
- return maRange.getMaximum();
+ sal_Int32 getMaximum() const
+ {
+ return maRange.getMaximum();
}
- Int32Traits::DifferenceType getRange() const
- {
- return maRange.getRange();
+ Int32Traits::DifferenceType getRange() const
+ {
+ return maRange.getRange();
}
-
+
double getCenter() const
{
- return maRange.getCenter();
+ return maRange.getCenter();
}
- bool isInside(sal_Int32 nValue) const
- {
- return maRange.isInside(nValue);
+ bool isInside(sal_Int32 nValue) const
+ {
+ return maRange.isInside(nValue);
}
-
- bool isInside(const B1IBox& rBox) const
- {
- return maRange.isInside(rBox.maRange);
+
+ bool isInside(const B1IBox& rBox) const
+ {
+ return maRange.isInside(rBox.maRange);
}
- bool overlaps(const B1IBox& rBox) const
- {
- return maRange.overlaps(rBox.maRange);
+ bool overlaps(const B1IBox& rBox) const
+ {
+ return maRange.overlaps(rBox.maRange);
}
- void expand(sal_Int32 nValue)
- {
- maRange.expand(nValue);
+ void expand(sal_Int32 nValue)
+ {
+ maRange.expand(nValue);
}
- void expand(const B1IBox& rBox)
- {
- maRange.expand(rBox.maRange);
+ void expand(const B1IBox& rBox)
+ {
+ maRange.expand(rBox.maRange);
}
- void intersect(const B1IBox& rBox)
- {
- maRange.intersect(rBox.maRange);
+ void intersect(const B1IBox& rBox)
+ {
+ maRange.intersect(rBox.maRange);
}
void grow(sal_Int32 nValue)
{
- maRange.grow(nValue);
+ maRange.grow(nValue);
}
};
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/range/b1irange.hxx b/basegfx/inc/basegfx/range/b1irange.hxx
index a503133f4b0f..9c77d23b8204 100644
--- a/basegfx/inc/basegfx/range/b1irange.hxx
+++ b/basegfx/inc/basegfx/range/b1irange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,108 +36,108 @@ namespace basegfx
{
class B1IRange
{
- ::basegfx::BasicRange< sal_Int32, Int32Traits > maRange;
+ ::basegfx::BasicRange< sal_Int32, Int32Traits > maRange;
- public:
- B1IRange()
+ public:
+ B1IRange()
{
}
-
- explicit B1IRange(sal_Int32 nStartValue)
- : maRange(nStartValue)
+
+ explicit B1IRange(sal_Int32 nStartValue)
+ : maRange(nStartValue)
{
}
-
- B1IRange(sal_Int32 nStartValue1, sal_Int32 nStartValue2)
- : maRange(nStartValue1)
+
+ B1IRange(sal_Int32 nStartValue1, sal_Int32 nStartValue2)
+ : maRange(nStartValue1)
{
expand(nStartValue2);
}
B1IRange(const B1IRange& rRange)
- : maRange(rRange.maRange)
+ : maRange(rRange.maRange)
{
}
- bool isEmpty() const
+ bool isEmpty() const
{
return maRange.isEmpty();
}
- void reset()
- {
- maRange.reset();
+ void reset()
+ {
+ maRange.reset();
}
-
- bool operator==( const B1IRange& rRange ) const
- {
- return (maRange == rRange.maRange);
+
+ bool operator==( const B1IRange& rRange ) const
+ {
+ return (maRange == rRange.maRange);
}
- bool operator!=( const B1IRange& rRange ) const
- {
- return (maRange != rRange.maRange);
+ bool operator!=( const B1IRange& rRange ) const
+ {
+ return (maRange != rRange.maRange);
}
- B1IRange& operator=(const B1IRange& rRange)
- {
- maRange = rRange.maRange;
- return *this;
+ B1IRange& operator=(const B1IRange& rRange)
+ {
+ maRange = rRange.maRange;
+ return *this;
}
- sal_Int32 getMinimum() const
- {
- return maRange.getMinimum();
+ sal_Int32 getMinimum() const
+ {
+ return maRange.getMinimum();
}
- sal_Int32 getMaximum() const
- {
- return maRange.getMaximum();
+ sal_Int32 getMaximum() const
+ {
+ return maRange.getMaximum();
}
- Int32Traits::DifferenceType getRange() const
- {
- return maRange.getRange();
+ Int32Traits::DifferenceType getRange() const
+ {
+ return maRange.getRange();
}
-
+
double getCenter() const
{
- return maRange.getCenter();
+ return maRange.getCenter();
}
- bool isInside(sal_Int32 nValue) const
- {
- return maRange.isInside(nValue);
+ bool isInside(sal_Int32 nValue) const
+ {
+ return maRange.isInside(nValue);
}
-
- bool isInside(const B1IRange& rRange) const
- {
- return maRange.isInside(rRange.maRange);
+
+ bool isInside(const B1IRange& rRange) const
+ {
+ return maRange.isInside(rRange.maRange);
}
- bool overlaps(const B1IRange& rRange) const
- {
- return maRange.overlaps(rRange.maRange);
+ bool overlaps(const B1IRange& rRange) const
+ {
+ return maRange.overlaps(rRange.maRange);
}
- void expand(sal_Int32 nValue)
- {
- maRange.expand(nValue);
+ void expand(sal_Int32 nValue)
+ {
+ maRange.expand(nValue);
}
- void expand(const B1IRange& rRange)
- {
- maRange.expand(rRange.maRange);
+ void expand(const B1IRange& rRange)
+ {
+ maRange.expand(rRange.maRange);
}
- void intersect(const B1IRange& rRange)
- {
- maRange.intersect(rRange.maRange);
+ void intersect(const B1IRange& rRange)
+ {
+ maRange.intersect(rRange.maRange);
}
void grow(sal_Int32 nValue)
{
- maRange.grow(nValue);
+ maRange.grow(nValue);
}
};
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/range/b2dconnectedranges.hxx b/basegfx/inc/basegfx/range/b2dconnectedranges.hxx
index 6949918fa2ef..27fbcb06b527 100644
--- a/basegfx/inc/basegfx/range/b2dconnectedranges.hxx
+++ b/basegfx/inc/basegfx/range/b2dconnectedranges.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,16 +73,16 @@ namespace basegfx
public:
/// Type of the basic entity (rect + user data)
typedef ::std::pair< B2DRange, UserData > ComponentType;
- typedef ::std::list< ComponentType > ComponentListType;
+ typedef ::std::list< ComponentType > ComponentListType;
/// List of (intersecting) components, plus overall bounds
struct ConnectedComponents
{
- ComponentListType maComponentList;
- B2DRange maTotalBounds;
+ ComponentListType maComponentList;
+ B2DRange maTotalBounds;
};
- typedef ::std::list< ConnectedComponents > ConnectedComponentsType;
+ typedef ::std::list< ConnectedComponents > ConnectedComponentsType;
/// Create the range calculator
@@ -109,15 +109,15 @@ namespace basegfx
ranges (typically, for well-behaved input, it is O(n)
though).
*/
- void addRange( const B2DRange& rRange,
- const UserData& rUserData )
+ void addRange( const B2DRange& rRange,
+ const UserData& rUserData )
{
// check whether fast path is possible: if new range is
// outside accumulated total range, can add it as a
// separate component right away.
- const bool bNotOutsideEverything(
+ const bool bNotOutsideEverything(
maTotalBounds.overlaps( rRange ) );
-
+
// update own global bounds range
maTotalBounds.expand( rRange );
@@ -172,7 +172,7 @@ namespace basegfx
// no position and size.
if( !aCurrAggregate->maTotalBounds.isEmpty() &&
- aCurrAggregate->maTotalBounds.overlaps(
+ aCurrAggregate->maTotalBounds.overlaps(
aNewConnectedComponent.maTotalBounds ) )
{
// union the intersecting
@@ -181,13 +181,13 @@ namespace basegfx
// calc union bounding box
aNewConnectedComponent.maTotalBounds.expand( aCurrAggregate->maTotalBounds );
-
+
// extract all aCurrAggregate components
// to aNewConnectedComponent
- aNewConnectedComponent.maComponentList.splice(
- aNewConnectedComponent.maComponentList.end(),
+ aNewConnectedComponent.maComponentList.splice(
+ aNewConnectedComponent.maComponentList.end(),
aCurrAggregate->maComponentList );
-
+
// remove and delete aCurrAggregate entry
// from list (we've gutted it's content
// above). list::erase() will update our
@@ -212,17 +212,17 @@ namespace basegfx
//
// add new component to the end of the component list
- aNewConnectedComponent.maComponentList.push_back(
+ aNewConnectedComponent.maComponentList.push_back(
ComponentType( rRange, rUserData ) );
-
+
// do some consistency checks (aka post conditions)
OSL_ENSURE( !aNewConnectedComponent.maComponentList.empty(),
"B2DConnectedRanges::addRange(): empty aggregate list" );
- OSL_ENSURE( !aNewConnectedComponent.maTotalBounds.isEmpty() ||
- (aNewConnectedComponent.maTotalBounds.isEmpty() &&
+ OSL_ENSURE( !aNewConnectedComponent.maTotalBounds.isEmpty() ||
+ (aNewConnectedComponent.maTotalBounds.isEmpty() &&
aNewConnectedComponent.maComponentList.size() == 1),
"B2DConnectedRanges::addRange(): empty ranges must be solitary");
-
+
// add aNewConnectedComponent as a new entry to
// maDisjunctAggregatesList
maDisjunctAggregatesList.push_back( aNewConnectedComponent );
@@ -242,7 +242,7 @@ namespace basegfx
maDisjunctAggregatesList.end(),
aFunctor );
}
-
+
private:
// default: disabled copy/assignment
B2DConnectedRanges(const B2DConnectedRanges&);
@@ -253,11 +253,11 @@ namespace basegfx
Each entry corresponds to one of the top-level rectangles
in the drawing above.
*/
- ConnectedComponentsType maDisjunctAggregatesList;
-
+ ConnectedComponentsType maDisjunctAggregatesList;
+
/** Global bound rect over all added ranges.
*/
- B2DRange maTotalBounds;
+ B2DRange maTotalBounds;
};
}
diff --git a/basegfx/inc/basegfx/range/b2dpolyrange.hxx b/basegfx/inc/basegfx/range/b2dpolyrange.hxx
index 5ce105da980b..1abdbda7cad5 100644
--- a/basegfx/inc/basegfx/range/b2dpolyrange.hxx
+++ b/basegfx/inc/basegfx/range/b2dpolyrange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/range/b2drange.hxx b/basegfx/inc/basegfx/range/b2drange.hxx
index 8d78f1141298..f1271fe4ae0c 100644
--- a/basegfx/inc/basegfx/range/b2drange.hxx
+++ b/basegfx/inc/basegfx/range/b2drange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,25 +44,25 @@ namespace basegfx
class B2DRange
{
- public:
- typedef double ValueType;
- typedef DoubleTraits TraitsType;
+ public:
+ typedef double ValueType;
+ typedef DoubleTraits TraitsType;
- B2DRange()
+ B2DRange()
{
}
-
+
explicit B2DRange(const B2DTuple& rTuple)
- : maRangeX(rTuple.getX()),
+ : maRangeX(rTuple.getX()),
maRangeY(rTuple.getY())
{
}
-
+
B2DRange(double x1,
double y1,
double x2,
double y2)
- : maRangeX(x1),
+ : maRangeX(x1),
maRangeY(y1)
{
maRangeX.expand(x2);
@@ -71,57 +71,57 @@ namespace basegfx
B2DRange(const B2DTuple& rTuple1,
const B2DTuple& rTuple2)
- : maRangeX(rTuple1.getX()),
+ : maRangeX(rTuple1.getX()),
maRangeY(rTuple1.getY())
{
expand( rTuple2 );
}
-
+
B2DRange(const B2DRange& rRange)
- : maRangeX(rRange.maRangeX),
+ : maRangeX(rRange.maRangeX),
maRangeY(rRange.maRangeY)
{
}
explicit B2DRange(const B2IRange& rRange);
- bool isEmpty() const
+ bool isEmpty() const
{
return (
- maRangeX.isEmpty()
+ maRangeX.isEmpty()
|| maRangeY.isEmpty()
);
}
- void reset()
- {
- maRangeX.reset();
- maRangeY.reset();
+ void reset()
+ {
+ maRangeX.reset();
+ maRangeY.reset();
}
- bool operator==( const B2DRange& rRange ) const
- {
- return (maRangeX == rRange.maRangeX
- && maRangeY == rRange.maRangeY);
+ bool operator==( const B2DRange& rRange ) const
+ {
+ return (maRangeX == rRange.maRangeX
+ && maRangeY == rRange.maRangeY);
}
- bool operator!=( const B2DRange& rRange ) const
- {
- return (maRangeX != rRange.maRangeX
- || maRangeY != rRange.maRangeY);
+ bool operator!=( const B2DRange& rRange ) const
+ {
+ return (maRangeX != rRange.maRangeX
+ || maRangeY != rRange.maRangeY);
}
- B2DRange& operator=(const B2DRange& rRange)
- {
- maRangeX = rRange.maRangeX;
- maRangeY = rRange.maRangeY;
- return *this;
+ B2DRange& operator=(const B2DRange& rRange)
+ {
+ maRangeX = rRange.maRangeX;
+ maRangeY = rRange.maRangeY;
+ return *this;
}
bool equal(const B2DRange& rRange) const
{
- return (maRangeX.equal(rRange.maRangeX)
- && maRangeY.equal(rRange.maRangeY));
+ return (maRangeX.equal(rRange.maRangeX)
+ && maRangeY.equal(rRange.maRangeY));
}
double getMinX() const
@@ -161,7 +161,7 @@ namespace basegfx
maRangeY.getMinimum()
);
}
-
+
B2DPoint getMaximum() const
{
return B2DPoint(
@@ -177,7 +177,7 @@ namespace basegfx
maRangeY.getRange()
);
}
-
+
B2DPoint getCenter() const
{
return B2DPoint(
@@ -185,21 +185,21 @@ namespace basegfx
maRangeY.getCenter()
);
}
-
+
double getCenterX() const
{
return maRangeX.getCenter();
}
-
+
double getCenterY() const
{
return maRangeY.getCenter();
}
-
+
bool isInside(const B2DTuple& rTuple) const
{
return (
- maRangeX.isInside(rTuple.getX())
+ maRangeX.isInside(rTuple.getX())
&& maRangeY.isInside(rTuple.getY())
);
}
@@ -207,7 +207,7 @@ namespace basegfx
bool isInside(const B2DRange& rRange) const
{
return (
- maRangeX.isInside(rRange.maRangeX)
+ maRangeX.isInside(rRange.maRangeX)
&& maRangeY.isInside(rRange.maRangeY)
);
}
@@ -215,7 +215,7 @@ namespace basegfx
bool overlaps(const B2DRange& rRange) const
{
return (
- maRangeX.overlaps(rRange.maRangeX)
+ maRangeX.overlaps(rRange.maRangeX)
&& maRangeY.overlaps(rRange.maRangeY)
);
}
@@ -223,7 +223,7 @@ namespace basegfx
bool overlapsMore(const B2DRange& rRange) const
{
return (
- maRangeX.overlapsMore(rRange.maRangeX)
+ maRangeX.overlapsMore(rRange.maRangeX)
&& maRangeY.overlapsMore(rRange.maRangeY)
);
}
@@ -236,29 +236,29 @@ namespace basegfx
void expand(const B2DRange& rRange)
{
- maRangeX.expand(rRange.maRangeX);
- maRangeY.expand(rRange.maRangeY);
+ maRangeX.expand(rRange.maRangeX);
+ maRangeY.expand(rRange.maRangeY);
}
void intersect(const B2DRange& rRange)
{
- maRangeX.intersect(rRange.maRangeX);
- maRangeY.intersect(rRange.maRangeY);
+ maRangeX.intersect(rRange.maRangeX);
+ maRangeY.intersect(rRange.maRangeY);
}
void grow(double fValue)
{
- maRangeX.grow(fValue);
- maRangeY.grow(fValue);
+ maRangeX.grow(fValue);
+ maRangeY.grow(fValue);
}
void transform(const B2DHomMatrix& rMatrix);
private:
- typedef ::basegfx::BasicRange< ValueType, TraitsType > MyBasicRange;
+ typedef ::basegfx::BasicRange< ValueType, TraitsType > MyBasicRange;
- MyBasicRange maRangeX;
- MyBasicRange maRangeY;
+ MyBasicRange maRangeX;
+ MyBasicRange maRangeY;
};
/** Round double to nearest integer for 2D range
@@ -286,9 +286,9 @@ namespace basegfx
@return the input vector
*/
- ::std::vector< B2DRange >& computeSetDifference( ::std::vector< B2DRange >& o_rResult,
- const B2DRange& rFirst,
- const B2DRange& rSecond );
+ ::std::vector< B2DRange >& computeSetDifference( ::std::vector< B2DRange >& o_rResult,
+ const B2DRange& rFirst,
+ const B2DRange& rSecond );
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/range/b2drangeclipper.hxx b/basegfx/inc/basegfx/range/b2drangeclipper.hxx
index 146273d5d21d..c59329c226ea 100644
--- a/basegfx/inc/basegfx/range/b2drangeclipper.hxx
+++ b/basegfx/inc/basegfx/range/b2drangeclipper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,13 +40,13 @@ namespace basegfx
namespace tools
{
/** Extract poly-polygon w/o self-intersections from poly-range
-
+
Similar to the solveCrossovers(const B2DPolyPolygon&)
method, this one calculates a self-intersection-free
poly-polygon with the same topology, and encoding
inside/outsidedness via polygon orientation and layering.
*/
- B2DPolyPolygon solveCrossovers(const std::vector<B2DRange>& rRanges,
+ B2DPolyPolygon solveCrossovers(const std::vector<B2DRange>& rRanges,
const std::vector<B2VectorOrientation>& rOrientations);
}
}
diff --git a/basegfx/inc/basegfx/range/b2drectangle.hxx b/basegfx/inc/basegfx/range/b2drectangle.hxx
index c00d13256cea..9a9e1b7cbf80 100644
--- a/basegfx/inc/basegfx/range/b2drectangle.hxx
+++ b/basegfx/inc/basegfx/range/b2drectangle.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/range/b2ibox.hxx b/basegfx/inc/basegfx/range/b2ibox.hxx
index 1e2c790dc51d..38e664d4faeb 100644
--- a/basegfx/inc/basegfx/range/b2ibox.hxx
+++ b/basegfx/inc/basegfx/range/b2ibox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,20 +41,20 @@ namespace basegfx
{
class B2IBox
{
- public:
- typedef sal_Int32 ValueType;
- typedef Int32Traits TraitsType;
+ public:
+ typedef sal_Int32 ValueType;
+ typedef Int32Traits TraitsType;
- B2IBox()
+ B2IBox()
{
}
-
+
explicit B2IBox(const B2ITuple& rTuple)
- : maRangeX(rTuple.getX()),
+ : maRangeX(rTuple.getX()),
maRangeY(rTuple.getY())
{
}
-
+
B2IBox(sal_Int32 x1,
sal_Int32 y1,
sal_Int32 x2,
@@ -65,7 +65,7 @@ namespace basegfx
maRangeX.expand(x2);
maRangeY.expand(y2);
}
-
+
B2IBox(const B2ITuple& rTuple1,
const B2ITuple& rTuple2) :
maRangeX(rTuple1.getX()),
@@ -73,40 +73,40 @@ namespace basegfx
{
expand( rTuple2 );
}
-
+
B2IBox(const B2IBox& rBox) :
maRangeX(rBox.maRangeX),
maRangeY(rBox.maRangeY)
{
}
- bool isEmpty() const
+ bool isEmpty() const
{
return maRangeX.isEmpty() || maRangeY.isEmpty();
}
- void reset()
- {
- maRangeX.reset();
- maRangeY.reset();
+ void reset()
+ {
+ maRangeX.reset();
+ maRangeY.reset();
}
- bool operator==( const B2IBox& rBox ) const
- {
- return (maRangeX == rBox.maRangeX
- && maRangeY == rBox.maRangeY);
+ bool operator==( const B2IBox& rBox ) const
+ {
+ return (maRangeX == rBox.maRangeX
+ && maRangeY == rBox.maRangeY);
}
- bool operator!=( const B2IBox& rBox ) const
- {
- return (maRangeX != rBox.maRangeX
- || maRangeY != rBox.maRangeY);
+ bool operator!=( const B2IBox& rBox ) const
+ {
+ return (maRangeX != rBox.maRangeX
+ || maRangeY != rBox.maRangeY);
}
- void operator=(const B2IBox& rBox)
- {
- maRangeX = rBox.maRangeX;
- maRangeY = rBox.maRangeY;
+ void operator=(const B2IBox& rBox)
+ {
+ maRangeX = rBox.maRangeX;
+ maRangeY = rBox.maRangeY;
}
sal_Int32 getMinX() const
@@ -146,7 +146,7 @@ namespace basegfx
maRangeY.getMinimum()
);
}
-
+
B2IPoint getMaximum() const
{
return B2IPoint(
@@ -162,7 +162,7 @@ namespace basegfx
maRangeY.getRange()
);
}
-
+
B2DPoint getCenter() const
{
return B2DPoint(
@@ -170,11 +170,11 @@ namespace basegfx
maRangeY.getCenter()
);
}
-
+
bool isInside(const B2ITuple& rTuple) const
{
return (
- maRangeX.isInside(rTuple.getX())
+ maRangeX.isInside(rTuple.getX())
&& maRangeY.isInside(rTuple.getY())
);
}
@@ -182,7 +182,7 @@ namespace basegfx
bool isInside(const B2IBox& rBox) const
{
return (
- maRangeX.isInside(rBox.maRangeX)
+ maRangeX.isInside(rBox.maRangeX)
&& maRangeY.isInside(rBox.maRangeY)
);
}
@@ -190,7 +190,7 @@ namespace basegfx
bool overlaps(const B2IBox& rBox) const
{
return (
- maRangeX.overlaps(rBox.maRangeX)
+ maRangeX.overlaps(rBox.maRangeX)
&& maRangeY.overlaps(rBox.maRangeY)
);
}
@@ -203,25 +203,25 @@ namespace basegfx
void expand(const B2IBox& rBox)
{
- maRangeX.expand(rBox.maRangeX);
- maRangeY.expand(rBox.maRangeY);
+ maRangeX.expand(rBox.maRangeX);
+ maRangeY.expand(rBox.maRangeY);
}
void intersect(const B2IBox& rBox)
{
- maRangeX.intersect(rBox.maRangeX);
- maRangeY.intersect(rBox.maRangeY);
+ maRangeX.intersect(rBox.maRangeX);
+ maRangeY.intersect(rBox.maRangeY);
}
void grow(sal_Int32 nValue)
{
- maRangeX.grow(nValue);
- maRangeY.grow(nValue);
+ maRangeX.grow(nValue);
+ maRangeY.grow(nValue);
}
private:
- BasicBox maRangeX;
- BasicBox maRangeY;
+ BasicBox maRangeX;
+ BasicBox maRangeY;
};
/** Compute the set difference of the two given boxes
@@ -243,9 +243,9 @@ namespace basegfx
@return the input vector
*/
- ::std::vector< B2IBox >& computeSetDifference( ::std::vector< B2IBox >& o_rResult,
- const B2IBox& rFirst,
- const B2IBox& rSecond );
+ ::std::vector< B2IBox >& computeSetDifference( ::std::vector< B2IBox >& o_rResult,
+ const B2IBox& rFirst,
+ const B2IBox& rSecond );
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/range/b2irange.hxx b/basegfx/inc/basegfx/range/b2irange.hxx
index 5378e487ba95..85ac60df724e 100644
--- a/basegfx/inc/basegfx/range/b2irange.hxx
+++ b/basegfx/inc/basegfx/range/b2irange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,73 +41,73 @@ namespace basegfx
{
class B2IRange
{
- public:
- typedef sal_Int32 ValueType;
- typedef Int32Traits TraitsType;
+ public:
+ typedef sal_Int32 ValueType;
+ typedef Int32Traits TraitsType;
- B2IRange()
+ B2IRange()
{
}
-
+
explicit B2IRange(const B2ITuple& rTuple)
- : maRangeX(rTuple.getX()),
+ : maRangeX(rTuple.getX()),
maRangeY(rTuple.getY())
{
}
-
+
B2IRange(sal_Int32 x1,
sal_Int32 y1,
sal_Int32 x2,
sal_Int32 y2)
- : maRangeX(x1),
+ : maRangeX(x1),
maRangeY(y1)
{
maRangeX.expand(x2);
maRangeY.expand(y2);
}
-
+
B2IRange(const B2ITuple& rTuple1,
const B2ITuple& rTuple2)
- : maRangeX(rTuple1.getX()),
+ : maRangeX(rTuple1.getX()),
maRangeY(rTuple1.getY())
{
expand( rTuple2 );
}
-
+
B2IRange(const B2IRange& rRange)
- : maRangeX(rRange.maRangeX),
+ : maRangeX(rRange.maRangeX),
maRangeY(rRange.maRangeY)
{
}
- bool isEmpty() const
+ bool isEmpty() const
{
return maRangeX.isEmpty() || maRangeY.isEmpty();
}
- void reset()
- {
- maRangeX.reset();
- maRangeY.reset();
+ void reset()
+ {
+ maRangeX.reset();
+ maRangeY.reset();
}
- bool operator==( const B2IRange& rRange ) const
- {
- return (maRangeX == rRange.maRangeX
- && maRangeY == rRange.maRangeY);
+ bool operator==( const B2IRange& rRange ) const
+ {
+ return (maRangeX == rRange.maRangeX
+ && maRangeY == rRange.maRangeY);
}
- bool operator!=( const B2IRange& rRange ) const
- {
- return (maRangeX != rRange.maRangeX
- || maRangeY != rRange.maRangeY);
+ bool operator!=( const B2IRange& rRange ) const
+ {
+ return (maRangeX != rRange.maRangeX
+ || maRangeY != rRange.maRangeY);
}
- B2IRange& operator=(const B2IRange& rRange)
- {
- maRangeX = rRange.maRangeX;
- maRangeY = rRange.maRangeY;
- return *this;
+ B2IRange& operator=(const B2IRange& rRange)
+ {
+ maRangeX = rRange.maRangeX;
+ maRangeY = rRange.maRangeY;
+ return *this;
}
sal_Int32 getMinX() const
@@ -147,7 +147,7 @@ namespace basegfx
maRangeY.getMinimum()
);
}
-
+
B2IPoint getMaximum() const
{
return B2IPoint(
@@ -163,7 +163,7 @@ namespace basegfx
maRangeY.getRange()
);
}
-
+
B2DPoint getCenter() const
{
return B2DPoint(
@@ -171,11 +171,11 @@ namespace basegfx
maRangeY.getCenter()
);
}
-
+
bool isInside(const B2ITuple& rTuple) const
{
return (
- maRangeX.isInside(rTuple.getX())
+ maRangeX.isInside(rTuple.getX())
&& maRangeY.isInside(rTuple.getY())
);
}
@@ -183,7 +183,7 @@ namespace basegfx
bool isInside(const B2IRange& rRange) const
{
return (
- maRangeX.isInside(rRange.maRangeX)
+ maRangeX.isInside(rRange.maRangeX)
&& maRangeY.isInside(rRange.maRangeY)
);
}
@@ -191,7 +191,7 @@ namespace basegfx
bool overlaps(const B2IRange& rRange) const
{
return (
- maRangeX.overlaps(rRange.maRangeX)
+ maRangeX.overlaps(rRange.maRangeX)
&& maRangeY.overlaps(rRange.maRangeY)
);
}
@@ -204,27 +204,27 @@ namespace basegfx
void expand(const B2IRange& rRange)
{
- maRangeX.expand(rRange.maRangeX);
- maRangeY.expand(rRange.maRangeY);
+ maRangeX.expand(rRange.maRangeX);
+ maRangeY.expand(rRange.maRangeY);
}
void intersect(const B2IRange& rRange)
{
- maRangeX.intersect(rRange.maRangeX);
- maRangeY.intersect(rRange.maRangeY);
+ maRangeX.intersect(rRange.maRangeX);
+ maRangeY.intersect(rRange.maRangeY);
}
void grow(sal_Int32 nValue)
{
- maRangeX.grow(nValue);
- maRangeY.grow(nValue);
+ maRangeX.grow(nValue);
+ maRangeY.grow(nValue);
}
private:
- typedef ::basegfx::BasicRange< ValueType, TraitsType > MyBasicRange;
+ typedef ::basegfx::BasicRange< ValueType, TraitsType > MyBasicRange;
- MyBasicRange maRangeX;
- MyBasicRange maRangeY;
+ MyBasicRange maRangeX;
+ MyBasicRange maRangeY;
};
/** Compute the set difference of the two given ranges
@@ -246,9 +246,9 @@ namespace basegfx
@return the input vector
*/
- ::std::vector< B2IRange >& computeSetDifference( ::std::vector< B2IRange >& o_rResult,
- const B2IRange& rFirst,
- const B2IRange& rSecond );
+ ::std::vector< B2IRange >& computeSetDifference( ::std::vector< B2IRange >& o_rResult,
+ const B2IRange& rFirst,
+ const B2IRange& rSecond );
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/range/b2irectangle.hxx b/basegfx/inc/basegfx/range/b2irectangle.hxx
index 2abc954e0196..965fe7b10bbe 100644
--- a/basegfx/inc/basegfx/range/b2irectangle.hxx
+++ b/basegfx/inc/basegfx/range/b2irectangle.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/range/b3drange.hxx b/basegfx/inc/basegfx/range/b3drange.hxx
index 8e1cf8aa9f02..eeec1fa29e16 100644
--- a/basegfx/inc/basegfx/range/b3drange.hxx
+++ b/basegfx/inc/basegfx/range/b3drange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,31 +42,31 @@ namespace basegfx
class B3DRange
{
- typedef ::basegfx::BasicRange< double, DoubleTraits > MyBasicRange;
+ typedef ::basegfx::BasicRange< double, DoubleTraits > MyBasicRange;
- MyBasicRange maRangeX;
- MyBasicRange maRangeY;
- MyBasicRange maRangeZ;
+ MyBasicRange maRangeX;
+ MyBasicRange maRangeY;
+ MyBasicRange maRangeZ;
- public:
- B3DRange()
+ public:
+ B3DRange()
{
}
-
+
explicit B3DRange(const B3DTuple& rTuple)
- : maRangeX(rTuple.getX()),
+ : maRangeX(rTuple.getX()),
maRangeY(rTuple.getY()),
maRangeZ(rTuple.getZ())
{
}
-
+
B3DRange(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
- : maRangeX(x1),
+ : maRangeX(x1),
maRangeY(y1),
maRangeZ(z1)
{
@@ -77,15 +77,15 @@ namespace basegfx
B3DRange(const B3DTuple& rTuple1,
const B3DTuple& rTuple2)
- : maRangeX(rTuple1.getX()),
+ : maRangeX(rTuple1.getX()),
maRangeY(rTuple1.getY()),
maRangeZ(rTuple1.getZ())
{
expand(rTuple2);
}
-
+
B3DRange(const B3DRange& rRange)
- : maRangeX(rRange.maRangeX),
+ : maRangeX(rRange.maRangeX),
maRangeY(rRange.maRangeY),
maRangeZ(rRange.maRangeZ)
{
@@ -93,49 +93,49 @@ namespace basegfx
explicit B3DRange(const B3IRange& rRange);
- bool isEmpty() const
+ bool isEmpty() const
{
return (
- maRangeX.isEmpty()
- || maRangeY.isEmpty()
+ maRangeX.isEmpty()
+ || maRangeY.isEmpty()
|| maRangeZ.isEmpty()
);
}
- void reset()
- {
- maRangeX.reset();
- maRangeY.reset();
- maRangeZ.reset();
+ void reset()
+ {
+ maRangeX.reset();
+ maRangeY.reset();
+ maRangeZ.reset();
}
-
- bool operator==( const B3DRange& rRange ) const
- {
- return (maRangeX == rRange.maRangeX
+
+ bool operator==( const B3DRange& rRange ) const
+ {
+ return (maRangeX == rRange.maRangeX
&& maRangeY == rRange.maRangeY
- && maRangeZ == rRange.maRangeZ);
+ && maRangeZ == rRange.maRangeZ);
}
- bool operator!=( const B3DRange& rRange ) const
- {
- return (maRangeX != rRange.maRangeX
+ bool operator!=( const B3DRange& rRange ) const
+ {
+ return (maRangeX != rRange.maRangeX
|| maRangeY != rRange.maRangeY
- || maRangeZ != rRange.maRangeZ);
+ || maRangeZ != rRange.maRangeZ);
}
- B3DRange& operator=(const B3DRange& rRange)
- {
- maRangeX = rRange.maRangeX;
- maRangeY = rRange.maRangeY;
- maRangeZ = rRange.maRangeZ;
- return *this;
+ B3DRange& operator=(const B3DRange& rRange)
+ {
+ maRangeX = rRange.maRangeX;
+ maRangeY = rRange.maRangeY;
+ maRangeZ = rRange.maRangeZ;
+ return *this;
}
bool equal(const B3DRange& rRange) const
{
- return (maRangeX.equal(rRange.maRangeX)
+ return (maRangeX.equal(rRange.maRangeX)
&& maRangeY.equal(rRange.maRangeY)
- && maRangeZ.equal(rRange.maRangeZ));
+ && maRangeZ.equal(rRange.maRangeZ));
}
double getMinX() const
@@ -191,7 +191,7 @@ namespace basegfx
maRangeZ.getMinimum()
);
}
-
+
B3DPoint getMaximum() const
{
return B3DPoint(
@@ -209,7 +209,7 @@ namespace basegfx
maRangeZ.getRange()
);
}
-
+
B3DPoint getCenter() const
{
return B3DPoint(
@@ -218,26 +218,26 @@ namespace basegfx
maRangeZ.getCenter()
);
}
-
+
double getCenterX() const
{
return maRangeX.getCenter();
}
-
+
double getCenterY() const
{
return maRangeY.getCenter();
}
-
+
double getCenterZ() const
{
return maRangeZ.getCenter();
}
-
+
bool isInside(const B3DTuple& rTuple) const
{
return (
- maRangeX.isInside(rTuple.getX())
+ maRangeX.isInside(rTuple.getX())
&& maRangeY.isInside(rTuple.getY())
&& maRangeZ.isInside(rTuple.getZ())
);
@@ -246,7 +246,7 @@ namespace basegfx
bool isInside(const B3DRange& rRange) const
{
return (
- maRangeX.isInside(rRange.maRangeX)
+ maRangeX.isInside(rRange.maRangeX)
&& maRangeY.isInside(rRange.maRangeY)
&& maRangeZ.isInside(rRange.maRangeZ)
);
@@ -255,7 +255,7 @@ namespace basegfx
bool overlaps(const B3DRange& rRange) const
{
return (
- maRangeX.overlaps(rRange.maRangeX)
+ maRangeX.overlaps(rRange.maRangeX)
&& maRangeY.overlaps(rRange.maRangeY)
&& maRangeZ.overlaps(rRange.maRangeZ)
);
@@ -270,23 +270,23 @@ namespace basegfx
void expand(const B3DRange& rRange)
{
- maRangeX.expand(rRange.maRangeX);
- maRangeY.expand(rRange.maRangeY);
- maRangeZ.expand(rRange.maRangeZ);
+ maRangeX.expand(rRange.maRangeX);
+ maRangeY.expand(rRange.maRangeY);
+ maRangeZ.expand(rRange.maRangeZ);
}
void intersect(const B3DRange& rRange)
{
- maRangeX.intersect(rRange.maRangeX);
- maRangeY.intersect(rRange.maRangeY);
- maRangeZ.intersect(rRange.maRangeZ);
+ maRangeX.intersect(rRange.maRangeX);
+ maRangeY.intersect(rRange.maRangeY);
+ maRangeZ.intersect(rRange.maRangeZ);
}
void grow(double fValue)
{
- maRangeX.grow(fValue);
- maRangeY.grow(fValue);
- maRangeZ.grow(fValue);
+ maRangeX.grow(fValue);
+ maRangeY.grow(fValue);
+ maRangeZ.grow(fValue);
}
void transform(const B3DHomMatrix& rMatrix);
diff --git a/basegfx/inc/basegfx/range/b3dvolume.hxx b/basegfx/inc/basegfx/range/b3dvolume.hxx
index 50cac5188271..4891444dc87e 100644
--- a/basegfx/inc/basegfx/range/b3dvolume.hxx
+++ b/basegfx/inc/basegfx/range/b3dvolume.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/range/b3ibox.hxx b/basegfx/inc/basegfx/range/b3ibox.hxx
index 7c349becd43c..a219ef41181b 100644
--- a/basegfx/inc/basegfx/range/b3ibox.hxx
+++ b/basegfx/inc/basegfx/range/b3ibox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,22 +39,22 @@ namespace basegfx
{
class B3IBox
{
- BasicBox maRangeX;
- BasicBox maRangeY;
- BasicBox maRangeZ;
+ BasicBox maRangeX;
+ BasicBox maRangeY;
+ BasicBox maRangeZ;
- public:
- B3IBox()
+ public:
+ B3IBox()
{
}
-
+
explicit B3IBox(const B3ITuple& rTuple) :
maRangeX(rTuple.getX()),
maRangeY(rTuple.getY()),
maRangeZ(rTuple.getZ())
{
}
-
+
B3IBox(sal_Int32 x1,
sal_Int32 y1,
sal_Int32 z1,
@@ -86,37 +86,37 @@ namespace basegfx
{
}
- bool isEmpty() const
+ bool isEmpty() const
{
return maRangeX.isEmpty() || maRangeY.isEmpty() || maRangeZ.isEmpty();
}
- void reset()
- {
- maRangeX.reset();
- maRangeY.reset();
- maRangeZ.reset();
+ void reset()
+ {
+ maRangeX.reset();
+ maRangeY.reset();
+ maRangeZ.reset();
}
-
- bool operator==( const B3IBox& rBox ) const
- {
- return (maRangeX == rBox.maRangeX
+
+ bool operator==( const B3IBox& rBox ) const
+ {
+ return (maRangeX == rBox.maRangeX
&& maRangeY == rBox.maRangeY
- && maRangeZ == rBox.maRangeZ);
+ && maRangeZ == rBox.maRangeZ);
}
- bool operator!=( const B3IBox& rBox ) const
- {
- return (maRangeX != rBox.maRangeX
+ bool operator!=( const B3IBox& rBox ) const
+ {
+ return (maRangeX != rBox.maRangeX
|| maRangeY != rBox.maRangeY
- || maRangeZ != rBox.maRangeZ);
+ || maRangeZ != rBox.maRangeZ);
}
- void operator=(const B3IBox& rBox)
- {
- maRangeX = rBox.maRangeX;
- maRangeY = rBox.maRangeY;
- maRangeZ = rBox.maRangeZ;
+ void operator=(const B3IBox& rBox)
+ {
+ maRangeX = rBox.maRangeX;
+ maRangeY = rBox.maRangeY;
+ maRangeZ = rBox.maRangeZ;
}
sal_Int32 getMinX() const
@@ -172,7 +172,7 @@ namespace basegfx
maRangeZ.getMinimum()
);
}
-
+
B3IPoint getMaximum() const
{
return B3IPoint(
@@ -190,7 +190,7 @@ namespace basegfx
maRangeZ.getRange()
);
}
-
+
B3DPoint getCenter() const
{
return B3DPoint(
@@ -199,11 +199,11 @@ namespace basegfx
maRangeZ.getCenter()
);
}
-
+
bool isInside(const B3ITuple& rTuple) const
{
return (
- maRangeX.isInside(rTuple.getX())
+ maRangeX.isInside(rTuple.getX())
&& maRangeY.isInside(rTuple.getY())
&& maRangeZ.isInside(rTuple.getZ())
);
@@ -212,7 +212,7 @@ namespace basegfx
bool isInside(const B3IBox& rBox) const
{
return (
- maRangeX.isInside(rBox.maRangeX)
+ maRangeX.isInside(rBox.maRangeX)
&& maRangeY.isInside(rBox.maRangeY)
&& maRangeZ.isInside(rBox.maRangeZ)
);
@@ -221,7 +221,7 @@ namespace basegfx
bool overlaps(const B3IBox& rBox) const
{
return (
- maRangeX.overlaps(rBox.maRangeX)
+ maRangeX.overlaps(rBox.maRangeX)
&& maRangeY.overlaps(rBox.maRangeY)
&& maRangeZ.overlaps(rBox.maRangeZ)
);
@@ -236,23 +236,23 @@ namespace basegfx
void expand(const B3IBox& rBox)
{
- maRangeX.expand(rBox.maRangeX);
- maRangeY.expand(rBox.maRangeY);
- maRangeZ.expand(rBox.maRangeZ);
+ maRangeX.expand(rBox.maRangeX);
+ maRangeY.expand(rBox.maRangeY);
+ maRangeZ.expand(rBox.maRangeZ);
}
void intersect(const B3IBox& rBox)
{
- maRangeX.intersect(rBox.maRangeX);
- maRangeY.intersect(rBox.maRangeY);
- maRangeZ.intersect(rBox.maRangeZ);
+ maRangeX.intersect(rBox.maRangeX);
+ maRangeY.intersect(rBox.maRangeY);
+ maRangeZ.intersect(rBox.maRangeZ);
}
void grow(sal_Int32 nValue)
{
- maRangeX.grow(nValue);
- maRangeY.grow(nValue);
- maRangeZ.grow(nValue);
+ maRangeX.grow(nValue);
+ maRangeY.grow(nValue);
+ maRangeZ.grow(nValue);
}
};
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/range/b3irange.hxx b/basegfx/inc/basegfx/range/b3irange.hxx
index 32d48812d2cd..b2c8e7f30360 100644
--- a/basegfx/inc/basegfx/range/b3irange.hxx
+++ b/basegfx/inc/basegfx/range/b3irange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,31 +39,31 @@ namespace basegfx
{
class B3IRange
{
- typedef ::basegfx::BasicRange< sal_Int32, Int32Traits > MyBasicRange;
+ typedef ::basegfx::BasicRange< sal_Int32, Int32Traits > MyBasicRange;
- MyBasicRange maRangeX;
- MyBasicRange maRangeY;
- MyBasicRange maRangeZ;
+ MyBasicRange maRangeX;
+ MyBasicRange maRangeY;
+ MyBasicRange maRangeZ;
- public:
- B3IRange()
+ public:
+ B3IRange()
{
}
-
+
explicit B3IRange(const B3ITuple& rTuple)
- : maRangeX(rTuple.getX()),
+ : maRangeX(rTuple.getX()),
maRangeY(rTuple.getY()),
maRangeZ(rTuple.getZ())
{
}
-
+
B3IRange(sal_Int32 x1,
sal_Int32 y1,
sal_Int32 z1,
sal_Int32 x2,
sal_Int32 y2,
sal_Int32 z2)
- : maRangeX(x1),
+ : maRangeX(x1),
maRangeY(y1),
maRangeZ(z1)
{
@@ -74,7 +74,7 @@ namespace basegfx
B3IRange(const B3ITuple& rTuple1,
const B3ITuple& rTuple2)
- : maRangeX(rTuple1.getX()),
+ : maRangeX(rTuple1.getX()),
maRangeY(rTuple1.getY()),
maRangeZ(rTuple1.getZ())
{
@@ -82,44 +82,44 @@ namespace basegfx
}
B3IRange(const B3IRange& rRange)
- : maRangeX(rRange.maRangeX),
+ : maRangeX(rRange.maRangeX),
maRangeY(rRange.maRangeY),
maRangeZ(rRange.maRangeZ)
{
}
- bool isEmpty() const
+ bool isEmpty() const
{
return maRangeX.isEmpty() || maRangeY.isEmpty() || maRangeZ.isEmpty();
}
- void reset()
- {
- maRangeX.reset();
- maRangeY.reset();
- maRangeZ.reset();
+ void reset()
+ {
+ maRangeX.reset();
+ maRangeY.reset();
+ maRangeZ.reset();
}
-
- bool operator==( const B3IRange& rRange ) const
- {
- return (maRangeX == rRange.maRangeX
+
+ bool operator==( const B3IRange& rRange ) const
+ {
+ return (maRangeX == rRange.maRangeX
&& maRangeY == rRange.maRangeY
- && maRangeZ == rRange.maRangeZ);
+ && maRangeZ == rRange.maRangeZ);
}
- bool operator!=( const B3IRange& rRange ) const
- {
- return (maRangeX != rRange.maRangeX
+ bool operator!=( const B3IRange& rRange ) const
+ {
+ return (maRangeX != rRange.maRangeX
|| maRangeY != rRange.maRangeY
- || maRangeZ != rRange.maRangeZ);
+ || maRangeZ != rRange.maRangeZ);
}
- B3IRange& operator=(const B3IRange& rRange)
- {
- maRangeX = rRange.maRangeX;
- maRangeY = rRange.maRangeY;
- maRangeZ = rRange.maRangeZ;
- return *this;
+ B3IRange& operator=(const B3IRange& rRange)
+ {
+ maRangeX = rRange.maRangeX;
+ maRangeY = rRange.maRangeY;
+ maRangeZ = rRange.maRangeZ;
+ return *this;
}
sal_Int32 getMinX() const
@@ -175,7 +175,7 @@ namespace basegfx
maRangeZ.getMinimum()
);
}
-
+
B3IPoint getMaximum() const
{
return B3IPoint(
@@ -193,7 +193,7 @@ namespace basegfx
maRangeZ.getRange()
);
}
-
+
B3DPoint getCenter() const
{
return B3DPoint(
@@ -202,11 +202,11 @@ namespace basegfx
maRangeZ.getCenter()
);
}
-
+
bool isInside(const B3ITuple& rTuple) const
{
return (
- maRangeX.isInside(rTuple.getX())
+ maRangeX.isInside(rTuple.getX())
&& maRangeY.isInside(rTuple.getY())
&& maRangeZ.isInside(rTuple.getZ())
);
@@ -215,7 +215,7 @@ namespace basegfx
bool isInside(const B3IRange& rRange) const
{
return (
- maRangeX.isInside(rRange.maRangeX)
+ maRangeX.isInside(rRange.maRangeX)
&& maRangeY.isInside(rRange.maRangeY)
&& maRangeZ.isInside(rRange.maRangeZ)
);
@@ -224,7 +224,7 @@ namespace basegfx
bool overlaps(const B3IRange& rRange) const
{
return (
- maRangeX.overlaps(rRange.maRangeX)
+ maRangeX.overlaps(rRange.maRangeX)
&& maRangeY.overlaps(rRange.maRangeY)
&& maRangeZ.overlaps(rRange.maRangeZ)
);
@@ -239,23 +239,23 @@ namespace basegfx
void expand(const B3IRange& rRange)
{
- maRangeX.expand(rRange.maRangeX);
- maRangeY.expand(rRange.maRangeY);
- maRangeZ.expand(rRange.maRangeZ);
+ maRangeX.expand(rRange.maRangeX);
+ maRangeY.expand(rRange.maRangeY);
+ maRangeZ.expand(rRange.maRangeZ);
}
void intersect(const B3IRange& rRange)
{
- maRangeX.intersect(rRange.maRangeX);
- maRangeY.intersect(rRange.maRangeY);
- maRangeZ.intersect(rRange.maRangeZ);
+ maRangeX.intersect(rRange.maRangeX);
+ maRangeY.intersect(rRange.maRangeY);
+ maRangeZ.intersect(rRange.maRangeZ);
}
void grow(sal_Int32 nValue)
{
- maRangeX.grow(nValue);
- maRangeY.grow(nValue);
- maRangeZ.grow(nValue);
+ maRangeX.grow(nValue);
+ maRangeY.grow(nValue);
+ maRangeZ.grow(nValue);
}
};
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/range/b3ivolume.hxx b/basegfx/inc/basegfx/range/b3ivolume.hxx
index 67fe3d2959f6..18f003e11c3e 100644
--- a/basegfx/inc/basegfx/range/b3ivolume.hxx
+++ b/basegfx/inc/basegfx/range/b3ivolume.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/range/basicbox.hxx b/basegfx/inc/basegfx/range/basicbox.hxx
index 0159acc9e8e0..3625dd9b48b5 100644
--- a/basegfx/inc/basegfx/range/basicbox.hxx
+++ b/basegfx/inc/basegfx/range/basicbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/range/basicrange.hxx b/basegfx/inc/basegfx/range/basicrange.hxx
index 8711f95b754c..d8f149f205c8 100644
--- a/basegfx/inc/basegfx/range/basicrange.hxx
+++ b/basegfx/inc/basegfx/range/basicrange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,12 +39,12 @@ namespace basegfx
template< typename T, typename Traits > class BasicRange
{
protected:
- T mnMinimum;
- T mnMaximum;
-
+ T mnMinimum;
+ T mnMaximum;
+
public:
- typedef T ValueType;
- typedef Traits TraitsType;
+ typedef T ValueType;
+ typedef Traits TraitsType;
BasicRange() :
mnMinimum(Traits::maxVal()),
@@ -148,13 +148,13 @@ namespace basegfx
return ((rRange.mnMaximum > mnMinimum) && (rRange.mnMinimum < mnMaximum));
}
- bool operator==( const BasicRange& rRange ) const
- {
+ bool operator==( const BasicRange& rRange ) const
+ {
return (mnMinimum == rRange.mnMinimum && mnMaximum == rRange.mnMaximum);
}
- bool operator!=( const BasicRange& rRange ) const
- {
+ bool operator!=( const BasicRange& rRange ) const
+ {
return (mnMinimum != rRange.mnMinimum || mnMaximum != rRange.mnMaximum);
}
@@ -162,13 +162,13 @@ namespace basegfx
{
mnMinimum = rRange.mnMinimum;
mnMaximum = rRange.mnMaximum;
- return *this;
+ return *this;
}
bool equal(const BasicRange& rRange) const
{
return (
- fTools::equal(mnMinimum, rRange.mnMinimum) &&
+ fTools::equal(mnMinimum, rRange.mnMinimum) &&
fTools::equal(mnMaximum, rRange.mnMaximum));
}
@@ -207,7 +207,7 @@ namespace basegfx
{
mnMinimum = rRange.mnMinimum;
}
-
+
if(rRange.mnMaximum > mnMaximum)
{
mnMaximum = rRange.mnMaximum;
@@ -229,7 +229,7 @@ namespace basegfx
{
mnMinimum = rRange.mnMinimum;
}
-
+
if(rRange.mnMaximum < mnMaximum)
{
mnMaximum = rRange.mnMaximum;
diff --git a/basegfx/inc/basegfx/range/rangeexpander.hxx b/basegfx/inc/basegfx/range/rangeexpander.hxx
index 509757d79750..6d8e2562e2ad 100644
--- a/basegfx/inc/basegfx/range/rangeexpander.hxx
+++ b/basegfx/inc/basegfx/range/rangeexpander.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,9 +53,9 @@ namespace basegfx
*/
template< typename RangeType > class RangeExpander
{
- public:
- typedef RangeType ValueType;
- typedef void result_type;
+ public:
+ typedef RangeType ValueType;
+ typedef void result_type;
explicit RangeExpander( ValueType& rBounds ) :
mrBounds( rBounds )
diff --git a/basegfx/inc/basegfx/raster/bpixelraster.hxx b/basegfx/inc/basegfx/raster/bpixelraster.hxx
index b479384bb806..7516a82b5ca2 100644
--- a/basegfx/inc/basegfx/raster/bpixelraster.hxx
+++ b/basegfx/inc/basegfx/raster/bpixelraster.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,10 +49,10 @@ namespace basegfx
BPixelRaster& operator=(const BPixelRaster&);
protected:
- sal_uInt32 mnWidth;
- sal_uInt32 mnHeight;
- sal_uInt32 mnCount;
- BPixel* mpContent;
+ sal_uInt32 mnWidth;
+ sal_uInt32 mnHeight;
+ sal_uInt32 mnCount;
+ BPixel* mpContent;
public:
// reset
@@ -63,7 +63,7 @@ namespace basegfx
// constructor/destructor
BPixelRaster(sal_uInt32 nWidth, sal_uInt32 nHeight)
- : mnWidth(nWidth),
+ : mnWidth(nWidth),
mnHeight(nHeight),
mnCount(nWidth * nHeight),
mpContent(new BPixel[mnCount])
@@ -85,12 +85,12 @@ namespace basegfx
sal_uInt32 getWidth() const { return mnWidth; }
sal_uInt32 getHeight() const { return mnHeight; }
sal_uInt32 getCount() const { return mnCount; }
-
+
// data access read only
const BPixel& getBPixel(sal_uInt32 nIndex) const
{
#ifdef DBG_UTIL
- if(nIndex >= mnCount)
+ if(nIndex >= mnCount)
{
OSL_ENSURE(false, "getBPixel: Access out of range (!)");
return BPixel::getEmptyBPixel();
@@ -103,7 +103,7 @@ namespace basegfx
BPixel& getBPixel(sal_uInt32 nIndex)
{
#ifdef DBG_UTIL
- if(nIndex >= mnCount)
+ if(nIndex >= mnCount)
{
OSL_ENSURE(false, "getBPixel: Access out of range (!)");
return mpContent[0L];
diff --git a/basegfx/inc/basegfx/raster/bzpixelraster.hxx b/basegfx/inc/basegfx/raster/bzpixelraster.hxx
index 9e3cd6db36f1..06b2d41e9cc8 100644
--- a/basegfx/inc/basegfx/raster/bzpixelraster.hxx
+++ b/basegfx/inc/basegfx/raster/bzpixelraster.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace basegfx
{
protected:
// additionally, host a ZBuffer
- sal_uInt16* mpZBuffer;
+ sal_uInt16* mpZBuffer;
public:
// reset
@@ -55,7 +55,7 @@ namespace basegfx
// constructor/destructor
BZPixelRaster(sal_uInt32 nWidth, sal_uInt32 nHeight)
- : BPixelRaster(nWidth, nHeight),
+ : BPixelRaster(nWidth, nHeight),
mpZBuffer(new sal_uInt16[mnCount])
{
rtl_zeroMemory(mpZBuffer, sizeof(sal_uInt16) * mnCount);
@@ -70,7 +70,7 @@ namespace basegfx
const sal_uInt16& getZ(sal_uInt32 nIndex) const
{
#ifdef DBG_UTIL
- if(nIndex >= mnCount)
+ if(nIndex >= mnCount)
{
OSL_ENSURE(false, "getZ: Access out of range (!)");
return mpZBuffer[0L];
@@ -83,7 +83,7 @@ namespace basegfx
sal_uInt16& getZ(sal_uInt32 nIndex)
{
#ifdef DBG_UTIL
- if(nIndex >= mnCount)
+ if(nIndex >= mnCount)
{
OSL_ENSURE(false, "getZ: Access out of range (!)");
return mpZBuffer[0L];
diff --git a/basegfx/inc/basegfx/raster/rasterconvert3d.hxx b/basegfx/inc/basegfx/raster/rasterconvert3d.hxx
index 0644fd1923d8..bd5d71778663 100644
--- a/basegfx/inc/basegfx/raster/rasterconvert3d.hxx
+++ b/basegfx/inc/basegfx/raster/rasterconvert3d.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,18 +53,18 @@ namespace basegfx
class ip_single
{
private:
- double mfVal;
- double mfInc;
+ double mfVal;
+ double mfInc;
public:
- ip_single()
- : mfVal(0.0),
- mfInc(0.0)
+ ip_single()
+ : mfVal(0.0),
+ mfInc(0.0)
{}
- ip_single(double fVal, double fInc)
- : mfVal(fVal),
- mfInc(fInc)
+ ip_single(double fVal, double fInc)
+ : mfVal(fVal),
+ mfInc(fInc)
{}
double getVal() const { return mfVal; }
@@ -79,17 +79,17 @@ namespace basegfx
class ip_double
{
private:
- ip_single maX;
- ip_single maY;
+ ip_single maX;
+ ip_single maY;
public:
- ip_double()
- : maX(),
+ ip_double()
+ : maX(),
maY()
{}
- ip_double(double fXVal, double fXInc, double fYVal, double fYInc)
- : maX(fXVal, fXInc),
+ ip_double(double fXVal, double fXInc, double fYVal, double fYInc)
+ : maX(fXVal, fXInc),
maY(fYVal, fYInc)
{}
@@ -105,19 +105,19 @@ namespace basegfx
class ip_triple
{
private:
- ip_single maX;
- ip_single maY;
- ip_single maZ;
+ ip_single maX;
+ ip_single maY;
+ ip_single maZ;
public:
- ip_triple()
- : maX(),
+ ip_triple()
+ : maX(),
maY(),
maZ()
{}
- ip_triple(double fXVal, double fXInc, double fYVal, double fYInc, double fZVal, double fZInc)
- : maX(fXVal, fXInc),
+ ip_triple(double fXVal, double fXInc, double fYVal, double fYInc, double fZVal, double fZInc)
+ : maX(fXVal, fXInc),
maY(fYVal, fYInc),
maZ(fZVal, fZInc)
{}
@@ -136,15 +136,15 @@ namespace basegfx
namespace basegfx
{
- #define SCANLINE_EMPTY_INDEX (0xffffffff)
+ #define SCANLINE_EMPTY_INDEX (0xffffffff)
class InterpolatorProvider3D
{
private:
- ::std::vector< ip_triple > maColorInterpolators;
- ::std::vector< ip_triple > maNormalInterpolators;
- ::std::vector< ip_double > maTextureInterpolators;
- ::std::vector< ip_triple > maInverseTextureInterpolators;
+ ::std::vector< ip_triple > maColorInterpolators;
+ ::std::vector< ip_triple > maNormalInterpolators;
+ ::std::vector< ip_double > maTextureInterpolators;
+ ::std::vector< ip_triple > maInverseTextureInterpolators;
protected:
sal_uInt32 addColorInterpolator(const BColor& rA, const BColor& rB, double fInvYDelta)
@@ -213,19 +213,19 @@ namespace basegfx
class RasterConversionLineEntry3D
{
private:
- ip_single maX;
- ip_single maZ;
- sal_Int32 mnY;
- sal_uInt32 mnCount;
+ ip_single maX;
+ ip_single maZ;
+ sal_Int32 mnY;
+ sal_uInt32 mnCount;
- sal_uInt32 mnColorIndex;
- sal_uInt32 mnNormalIndex;
- sal_uInt32 mnTextureIndex;
- sal_uInt32 mnInverseTextureIndex;
+ sal_uInt32 mnColorIndex;
+ sal_uInt32 mnNormalIndex;
+ sal_uInt32 mnTextureIndex;
+ sal_uInt32 mnInverseTextureIndex;
public:
RasterConversionLineEntry3D(const double& rfX, const double& rfDeltaX, const double& rfZ, const double& rfDeltaZ, sal_Int32 nY, sal_uInt32 nCount)
- : maX(rfX, rfDeltaX),
+ : maX(rfX, rfDeltaX),
maZ(rfZ, rfDeltaZ),
mnY(nY),
mnCount(nCount),
@@ -312,7 +312,7 @@ namespace basegfx
{
private:
// the line entries for an area conversion run
- ::std::vector< RasterConversionLineEntry3D > maLineEntries;
+ ::std::vector< RasterConversionLineEntry3D > maLineEntries;
struct lineComparator
{
diff --git a/basegfx/inc/basegfx/tools/b2dclipstate.hxx b/basegfx/inc/basegfx/tools/b2dclipstate.hxx
index 4550df124588..bc3d1c1e664b 100644
--- a/basegfx/inc/basegfx/tools/b2dclipstate.hxx
+++ b/basegfx/inc/basegfx/tools/b2dclipstate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ namespace basegfx
/// unshare this poly-range with all internally shared instances
void makeUnique();
-
+
/// Set clip to 'null' - nothing is visible
void makeNull();
/// returns true when clip is 'null' - nothing is visible
diff --git a/basegfx/inc/basegfx/tools/canvastools.hxx b/basegfx/inc/basegfx/tools/canvastools.hxx
index 1dae369e80c8..1841d1f0ed82 100644
--- a/basegfx/inc/basegfx/tools/canvastools.hxx
+++ b/basegfx/inc/basegfx/tools/canvastools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ namespace com { namespace sun { namespace star { namespace rendering
class XPolyPolygon2D;
} } } }
-namespace com { namespace sun { namespace star { namespace awt
+namespace com { namespace sun { namespace star { namespace awt
{
struct Point;
struct Size;
@@ -80,101 +80,101 @@ namespace basegfx
// Polygon conversions
// ===================================================================
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
- xPolyPolygonFromB2DPolygon( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
- const ::basegfx::B2DPolygon& rPoly );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
+ xPolyPolygonFromB2DPolygon( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
+ const ::basegfx::B2DPolygon& rPoly );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
- xPolyPolygonFromB2DPolyPolygon( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
- const ::basegfx::B2DPolyPolygon& rPolyPoly );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
+ xPolyPolygonFromB2DPolyPolygon( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
+ const ::basegfx::B2DPolyPolygon& rPolyPoly );
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::geometry::RealBezierSegment2D > >
+ ::com::sun::star::uno::Sequence<
+ ::com::sun::star::uno::Sequence<
+ ::com::sun::star::geometry::RealBezierSegment2D > >
bezierSequenceSequenceFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly );
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Sequence<
- ::com::sun::star::geometry::RealPoint2D > >
+ ::com::sun::star::uno::Sequence<
+ ::com::sun::star::uno::Sequence<
+ ::com::sun::star::geometry::RealPoint2D > >
pointSequenceSequenceFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly );
- ::basegfx::B2DPolygon polygonFromPoint2DSequence(
- const ::com::sun::star::uno::Sequence<
+ ::basegfx::B2DPolygon polygonFromPoint2DSequence(
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::geometry::RealPoint2D >& rPoints );
- ::basegfx::B2DPolyPolygon polyPolygonFromPoint2DSequenceSequence(
- const ::com::sun::star::uno::Sequence<
+ ::basegfx::B2DPolyPolygon polyPolygonFromPoint2DSequenceSequence(
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > >& rPoints );
- ::basegfx::B2DPolygon polygonFromBezier2DSequence(
- const ::com::sun::star::uno::Sequence<
+ ::basegfx::B2DPolygon polygonFromBezier2DSequence(
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::geometry::RealBezierSegment2D >& rPoints );
- ::basegfx::B2DPolyPolygon polyPolygonFromBezier2DSequenceSequence(
- const ::com::sun::star::uno::Sequence<
+ ::basegfx::B2DPolyPolygon polyPolygonFromBezier2DSequenceSequence(
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealBezierSegment2D > >& rPoints );
::basegfx::B2DPolyPolygon b2DPolyPolygonFromXPolyPolygon2D(
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D >& rPoly );
// Matrix conversions
// ===================================================================
- ::com::sun::star::geometry::AffineMatrix2D&
- affineMatrixFromHomMatrix( ::com::sun::star::geometry::AffineMatrix2D& matrix,
- const ::basegfx::B2DHomMatrix& transform);
+ ::com::sun::star::geometry::AffineMatrix2D&
+ affineMatrixFromHomMatrix( ::com::sun::star::geometry::AffineMatrix2D& matrix,
+ const ::basegfx::B2DHomMatrix& transform);
::com::sun::star::geometry::AffineMatrix3D& affineMatrixFromHomMatrix3D(
- ::com::sun::star::geometry::AffineMatrix3D& matrix,
+ ::com::sun::star::geometry::AffineMatrix3D& matrix,
const ::basegfx::B3DHomMatrix& transform);
- ::basegfx::B2DHomMatrix&
- homMatrixFromAffineMatrix( ::basegfx::B2DHomMatrix& transform,
- const ::com::sun::star::geometry::AffineMatrix2D& matrix );
+ ::basegfx::B2DHomMatrix&
+ homMatrixFromAffineMatrix( ::basegfx::B2DHomMatrix& transform,
+ const ::com::sun::star::geometry::AffineMatrix2D& matrix );
::basegfx::B2DHomMatrix homMatrixFromAffineMatrix( const ::com::sun::star::geometry::AffineMatrix2D& matrix );
::basegfx::B3DHomMatrix homMatrixFromAffineMatrix3D( const ::com::sun::star::geometry::AffineMatrix3D& matrix );
- ::com::sun::star::geometry::Matrix2D&
+ ::com::sun::star::geometry::Matrix2D&
matrixFromHomMatrix( ::com::sun::star::geometry::Matrix2D& matrix,
- const ::basegfx::B2DHomMatrix& transform);
+ const ::basegfx::B2DHomMatrix& transform);
- ::basegfx::B2DHomMatrix&
- homMatrixFromMatrix( ::basegfx::B2DHomMatrix& transform,
+ ::basegfx::B2DHomMatrix&
+ homMatrixFromMatrix( ::basegfx::B2DHomMatrix& transform,
const ::com::sun::star::geometry::Matrix2D& matrix );
// Geometry conversions
// ===================================================================
- ::com::sun::star::geometry::RealSize2D size2DFromB2DSize( const ::basegfx::B2DVector& );
- ::com::sun::star::geometry::RealPoint2D point2DFromB2DPoint( const ::basegfx::B2DPoint& );
- ::com::sun::star::geometry::RealRectangle2D rectangle2DFromB2DRectangle( const ::basegfx::B2DRange& );
- ::com::sun::star::geometry::RealRectangle3D rectangle3DFromB3DRectangle( const ::basegfx::B3DRange& );
-
- ::basegfx::B2DVector b2DSizeFromRealSize2D( const ::com::sun::star::geometry::RealSize2D& );
- ::basegfx::B2DPoint b2DPointFromRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& );
- ::basegfx::B2DRange b2DRectangleFromRealRectangle2D( const ::com::sun::star::geometry::RealRectangle2D& );
- ::basegfx::B3DRange b3DRectangleFromRealRectangle3D( const ::com::sun::star::geometry::RealRectangle3D& );
+ ::com::sun::star::geometry::RealSize2D size2DFromB2DSize( const ::basegfx::B2DVector& );
+ ::com::sun::star::geometry::RealPoint2D point2DFromB2DPoint( const ::basegfx::B2DPoint& );
+ ::com::sun::star::geometry::RealRectangle2D rectangle2DFromB2DRectangle( const ::basegfx::B2DRange& );
+ ::com::sun::star::geometry::RealRectangle3D rectangle3DFromB3DRectangle( const ::basegfx::B3DRange& );
- ::com::sun::star::geometry::IntegerSize2D integerSize2DFromB2ISize( const ::basegfx::B2IVector& );
- ::com::sun::star::geometry::IntegerPoint2D integerPoint2DFromB2IPoint( const ::basegfx::B2IPoint& );
- ::com::sun::star::geometry::IntegerRectangle2D integerRectangle2DFromB2IRectangle( const ::basegfx::B2IRange& );
+ ::basegfx::B2DVector b2DSizeFromRealSize2D( const ::com::sun::star::geometry::RealSize2D& );
+ ::basegfx::B2DPoint b2DPointFromRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& );
+ ::basegfx::B2DRange b2DRectangleFromRealRectangle2D( const ::com::sun::star::geometry::RealRectangle2D& );
+ ::basegfx::B3DRange b3DRectangleFromRealRectangle3D( const ::com::sun::star::geometry::RealRectangle3D& );
- ::basegfx::B2IVector b2ISizeFromIntegerSize2D( const ::com::sun::star::geometry::IntegerSize2D& );
- ::basegfx::B2IPoint b2IPointFromIntegerPoint2D( const ::com::sun::star::geometry::IntegerPoint2D& );
- ::basegfx::B2IRange b2IRectangleFromIntegerRectangle2D( const ::com::sun::star::geometry::IntegerRectangle2D& );
+ ::com::sun::star::geometry::IntegerSize2D integerSize2DFromB2ISize( const ::basegfx::B2IVector& );
+ ::com::sun::star::geometry::IntegerPoint2D integerPoint2DFromB2IPoint( const ::basegfx::B2IPoint& );
+ ::com::sun::star::geometry::IntegerRectangle2D integerRectangle2DFromB2IRectangle( const ::basegfx::B2IRange& );
- ::com::sun::star::awt::Size awtSizeFromB2ISize( const ::basegfx::B2IVector& );
- ::com::sun::star::awt::Point awtPointFromB2IPoint( const ::basegfx::B2IPoint& );
- ::com::sun::star::awt::Rectangle awtRectangleFromB2IRectangle( const ::basegfx::B2IRange& );
+ ::basegfx::B2IVector b2ISizeFromIntegerSize2D( const ::com::sun::star::geometry::IntegerSize2D& );
+ ::basegfx::B2IPoint b2IPointFromIntegerPoint2D( const ::com::sun::star::geometry::IntegerPoint2D& );
+ ::basegfx::B2IRange b2IRectangleFromIntegerRectangle2D( const ::com::sun::star::geometry::IntegerRectangle2D& );
+
+ ::com::sun::star::awt::Size awtSizeFromB2ISize( const ::basegfx::B2IVector& );
+ ::com::sun::star::awt::Point awtPointFromB2IPoint( const ::basegfx::B2IPoint& );
+ ::com::sun::star::awt::Rectangle awtRectangleFromB2IRectangle( const ::basegfx::B2IRange& );
- ::basegfx::B2IVector b2ISizeFromAwtSize( const ::com::sun::star::awt::Size& );
- ::basegfx::B2IPoint b2IPointFromAwtPoint( const ::com::sun::star::awt::Point& );
- ::basegfx::B2IRange b2IRectangleFromAwtRectangle( const ::com::sun::star::awt::Rectangle& );
+ ::basegfx::B2IVector b2ISizeFromAwtSize( const ::com::sun::star::awt::Size& );
+ ::basegfx::B2IPoint b2IPointFromAwtPoint( const ::com::sun::star::awt::Point& );
+ ::basegfx::B2IRange b2IRectangleFromAwtRectangle( const ::com::sun::star::awt::Rectangle& );
// Geometry comparisons
// ===================================================================
@@ -203,8 +203,8 @@ namespace basegfx
@return the closest integer range, which completely
contains rRange.
*/
- ::basegfx::B2IRange b2ISurroundingRangeFromB2DRange( const ::basegfx::B2DRange& rRange );
-
+ ::basegfx::B2IRange b2ISurroundingRangeFromB2DRange( const ::basegfx::B2DRange& rRange );
+
/** Return smalltest B2DRange with integer values, which
completely contains given floating point range.
@@ -214,8 +214,8 @@ namespace basegfx
@return the closest B2DRange with integer coordinates,
which completely contains rRange.
*/
- ::basegfx::B2DRange b2DSurroundingIntegerRangeFromB2DRange( const ::basegfx::B2DRange& rRange );
-
+ ::basegfx::B2DRange b2DSurroundingIntegerRangeFromB2DRange( const ::basegfx::B2DRange& rRange );
+
}
}
diff --git a/basegfx/inc/basegfx/tools/debugplotter.hxx b/basegfx/inc/basegfx/tools/debugplotter.hxx
index 0a0f4d5bafa4..c1718f9ab1a4 100644
--- a/basegfx/inc/basegfx/tools/debugplotter.hxx
+++ b/basegfx/inc/basegfx/tools/debugplotter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <rtl/string.hxx>
-#include <boost/utility.hpp> // for noncopyable
+#include <boost/utility.hpp> // for noncopyable
#include <vector>
#include <utility>
#include <iosfwd>
@@ -60,48 +60,48 @@ namespace basegfx
public:
/** Create new debug output object
- @param pTitle
+ @param pTitle
Title of the debug output, will appear in trace output
*/
explicit DebugPlotter( const sal_Char* pTitle );
/** Create new debug output object
- @param pTitle
+ @param pTitle
Title of the debug output, will appear in trace output
@param rOutputStream
Stream to write output to. Must stay valid over the
lifetime of this object!
- */
+ */
DebugPlotter( const sal_Char* pTitle,
::std::ostream& rOutputStream );
~DebugPlotter();
- void plot( const B2DPoint& rPoint,
- const sal_Char* pTitle );
- void plot( const B2DVector& rVec,
- const sal_Char* pTitle );
- void plot( const B2DCubicBezier& rBezier,
- const sal_Char* pTitle );
- void plot( const B2DRange& rRange,
- const sal_Char* pTitle );
- void plot( const B2DPolygon& rPoly,
- const sal_Char* pTitle );
- void plot( const B2DPolyPolygon& rPoly,
- const sal_Char* pTitle );
+ void plot( const B2DPoint& rPoint,
+ const sal_Char* pTitle );
+ void plot( const B2DVector& rVec,
+ const sal_Char* pTitle );
+ void plot( const B2DCubicBezier& rBezier,
+ const sal_Char* pTitle );
+ void plot( const B2DRange& rRange,
+ const sal_Char* pTitle );
+ void plot( const B2DPolygon& rPoly,
+ const sal_Char* pTitle );
+ void plot( const B2DPolyPolygon& rPoly,
+ const sal_Char* pTitle );
private:
void print( const sal_Char* );
- ::rtl::OString maTitle;
- ::std::vector< ::std::pair< B2DPoint, ::rtl::OString > > maPoints;
- ::std::vector< ::std::pair< B2DVector, ::rtl::OString > > maVectors;
- ::std::vector< ::std::pair< B2DRange, ::rtl::OString > > maRanges;
- ::std::vector< ::std::pair< B2DPolygon, ::rtl::OString > > maPolygons;
+ ::rtl::OString maTitle;
+ ::std::vector< ::std::pair< B2DPoint, ::rtl::OString > > maPoints;
+ ::std::vector< ::std::pair< B2DVector, ::rtl::OString > > maVectors;
+ ::std::vector< ::std::pair< B2DRange, ::rtl::OString > > maRanges;
+ ::std::vector< ::std::pair< B2DPolygon, ::rtl::OString > > maPolygons;
- ::std::ostream* mpOutputStream;
+ ::std::ostream* mpOutputStream;
};
}
diff --git a/basegfx/inc/basegfx/tools/gradienttools.hxx b/basegfx/inc/basegfx/tools/gradienttools.hxx
index dea18fe67565..a84d6f8cc1ba 100644
--- a/basegfx/inc/basegfx/tools/gradienttools.hxx
+++ b/basegfx/inc/basegfx/tools/gradienttools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -99,11 +99,11 @@ namespace basegfx
Gradient angle (from ODF)
*/
ODFGradientInfo& createLinearODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
- sal_uInt32 nSteps,
- double fBorder,
+ const B2DRange& rTargetArea,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle);
-
+
/** Calculate linear gradient blend value
This method generates you the lerp alpha value for
@@ -158,9 +158,9 @@ namespace basegfx
Gradient angle (from ODF)
*/
ODFGradientInfo& createAxialODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
- sal_uInt32 nSteps,
- double fBorder,
+ const B2DRange& rTargetArea,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle);
/** Calculate axial gradient blend value
@@ -189,7 +189,7 @@ namespace basegfx
return t;
}
-
+
/** Create matrix for ODF's radial gradient definition
@param o_rGradientInfo
@@ -213,11 +213,11 @@ namespace basegfx
Gradient angle (from ODF)
*/
ODFGradientInfo& createRadialODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
+ const B2DRange& rTargetArea,
const B2DVector& rOffset,
- sal_uInt32 nSteps,
+ sal_uInt32 nSteps,
double fBorder);
-
+
/** Calculate radial gradient blend value
This method generates you the lerp alpha value for
@@ -272,10 +272,10 @@ namespace basegfx
Gradient angle (from ODF)
*/
ODFGradientInfo& createEllipticalODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
+ const B2DRange& rTargetArea,
const B2DVector& rOffset,
- sal_uInt32 nSteps,
- double fBorder,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle);
/** Calculate elliptical gradient blend value
@@ -320,10 +320,10 @@ namespace basegfx
Gradient angle (from ODF)
*/
ODFGradientInfo& createSquareODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
+ const B2DRange& rTargetArea,
const B2DVector& rOffset,
- sal_uInt32 nSteps,
- double fBorder,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle);
/** Calculate square gradient blend value
@@ -381,10 +381,10 @@ namespace basegfx
Gradient angle (from ODF)
*/
ODFGradientInfo& createRectangularODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
+ const B2DRange& rTargetArea,
const B2DVector& rOffset,
- sal_uInt32 nSteps,
- double fBorder,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle);
/** Calculate rectangular gradient blend value
diff --git a/basegfx/inc/basegfx/tools/keystoplerp.hxx b/basegfx/inc/basegfx/tools/keystoplerp.hxx
index 1762e09a60ef..a8d22931193f 100644
--- a/basegfx/inc/basegfx/tools/keystoplerp.hxx
+++ b/basegfx/inc/basegfx/tools/keystoplerp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/tools/lerp.hxx b/basegfx/inc/basegfx/tools/lerp.hxx
index dd513400835b..8147b763944c 100644
--- a/basegfx/inc/basegfx/tools/lerp.hxx
+++ b/basegfx/inc/basegfx/tools/lerp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,11 +47,11 @@ namespace basegfx
@param t
As usual, t must be in the [0,1] range
*/
- template< typename ValueType > ValueType lerp( const ValueType& rFrom,
- const ValueType& rTo,
- double t )
+ template< typename ValueType > ValueType lerp( const ValueType& rFrom,
+ const ValueType& rTo,
+ double t )
{
- // This is only to suppress a double->int warning. All other
+ // This is only to suppress a double->int warning. All other
// types should be okay here.
return static_cast<ValueType>( (1.0-t)*rFrom + t*rTo );
}
diff --git a/basegfx/inc/basegfx/tools/rectcliptools.hxx b/basegfx/inc/basegfx/tools/rectcliptools.hxx
index 7e2ff80876ca..18bd6c57ec2c 100644
--- a/basegfx/inc/basegfx/tools/rectcliptools.hxx
+++ b/basegfx/inc/basegfx/tools/rectcliptools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@ namespace basegfx
{
namespace tools
{
- namespace RectClipFlags
+ namespace RectClipFlags
{
static const sal_uInt32 LEFT = (sal_Int32)0x01;
static const sal_uInt32 RIGHT = (sal_Int32)0x02;
@@ -53,9 +53,9 @@ namespace basegfx
outside one or more of the four half planes defining the
rectangle (see RectClipFlags for possible values)
*/
- template< class Point, class Rect > inline
+ template< class Point, class Rect > inline
sal_uInt32 getCohenSutherlandClipFlags( const Point& rP,
- const Rect& rR )
+ const Rect& rR )
{
// maxY | minY | maxX | minX
sal_uInt32 clip = (rP.getX() < rR.getMinX()) << 0;
diff --git a/basegfx/inc/basegfx/tools/tools.hxx b/basegfx/inc/basegfx/tools/tools.hxx
index 8b519e0b1371..888dd319b37d 100644
--- a/basegfx/inc/basegfx/tools/tools.hxx
+++ b/basegfx/inc/basegfx/tools/tools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace basegfx
This function clips a line given by two points against the
given rectangle. The resulting line is returned in the
given points.
-
+
@param io_rStart
Start point of the line. On return, contains the clipped
start point.
@@ -58,9 +58,9 @@ namespace basegfx
@return true, when at least part of the line is visible
after the clip, false otherwise
*/
- bool liangBarskyClip2D( ::basegfx::B2DPoint& io_rStart,
- ::basegfx::B2DPoint& io_rEnd,
- const ::basegfx::B2DRange& rClipRect );
+ bool liangBarskyClip2D( ::basegfx::B2DPoint& io_rStart,
+ ::basegfx::B2DPoint& io_rEnd,
+ const ::basegfx::B2DRange& rClipRect );
/** Expand given parallelogram, such that it extends beyond
bound rect in a given direction.
@@ -120,11 +120,11 @@ namespace basegfx
@param rFitTarget
The rectangle to fit the parallelogram into.
*/
- void infiniteLineFromParallelogram( ::basegfx::B2DPoint& io_rLeftTop,
- ::basegfx::B2DPoint& io_rLeftBottom,
- ::basegfx::B2DPoint& io_rRightTop,
- ::basegfx::B2DPoint& io_rRightBottom,
- const ::basegfx::B2DRange& rFitTarget );
+ void infiniteLineFromParallelogram( ::basegfx::B2DPoint& io_rLeftTop,
+ ::basegfx::B2DPoint& io_rLeftBottom,
+ ::basegfx::B2DPoint& io_rRightTop,
+ ::basegfx::B2DPoint& io_rRightBottom,
+ const ::basegfx::B2DRange& rFitTarget );
}
}
diff --git a/basegfx/inc/basegfx/tools/unopolypolygon.hxx b/basegfx/inc/basegfx/tools/unopolypolygon.hxx
index a5bc22b2d5bb..95282f5f1a84 100644
--- a/basegfx/inc/basegfx/tools/unopolypolygon.hxx
+++ b/basegfx/inc/basegfx/tools/unopolypolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,10 +39,10 @@
namespace basegfx
-{
+{
namespace unotools
{
- typedef ::cppu::WeakComponentImplHelper3<
+ typedef ::cppu::WeakComponentImplHelper3<
::com::sun::star::rendering::XLinePolyPolygon2D,
::com::sun::star::rendering::XBezierPolyPolygon2D,
::com::sun::star::lang::XServiceInfo > UnoPolyPolygonBase;
@@ -89,9 +89,9 @@ namespace unotools
throw ::com::sun::star::lang::IndexOutOfBoundsException();
}
- B2DPolyPolygon getSubsetPolyPolygon( sal_Int32 nPolygonIndex,
- sal_Int32 nNumberOfPolygons,
- sal_Int32 nPointIndex,
+ B2DPolyPolygon getSubsetPolyPolygon( sal_Int32 nPolygonIndex,
+ sal_Int32 nNumberOfPolygons,
+ sal_Int32 nPointIndex,
sal_Int32 nNumberOfPoints ) const;
/// Get cow copy of internal polygon. not thread-safe outside this object.
diff --git a/basegfx/inc/basegfx/tuple/b2dtuple.hxx b/basegfx/inc/basegfx/tuple/b2dtuple.hxx
index 6a4ab1e32f9d..d8c1eb16630f 100644
--- a/basegfx/inc/basegfx/tuple/b2dtuple.hxx
+++ b/basegfx/inc/basegfx/tuple/b2dtuple.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,64 +48,64 @@ namespace basegfx
class B2DTuple
{
protected:
- double mfX;
- double mfY;
-
- public:
- /** Create a 2D Tuple
+ double mfX;
+ double mfY;
+
+ public:
+ /** Create a 2D Tuple
The tuple is initialized to (0.0, 0.0)
*/
- B2DTuple()
- : mfX(0.0),
- mfY(0.0)
+ B2DTuple()
+ : mfX(0.0),
+ mfY(0.0)
{}
- /** Create a 2D Tuple
+ /** Create a 2D Tuple
@param fX
This parameter is used to initialize the X-coordinate
of the 2D Tuple.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the 2D Tuple.
*/
- B2DTuple(double fX, double fY)
- : mfX( fX ),
- mfY( fY )
+ B2DTuple(double fX, double fY)
+ : mfX( fX ),
+ mfY( fY )
{}
- /** Create a copy of a 2D Tuple
+ /** Create a copy of a 2D Tuple
@param rTup
The 2D Tuple which will be copied.
*/
- B2DTuple(const B2DTuple& rTup)
- : mfX( rTup.mfX ),
- mfY( rTup.mfY )
+ B2DTuple(const B2DTuple& rTup)
+ : mfX( rTup.mfX ),
+ mfY( rTup.mfY )
{}
- /** Create a copy of a 2D integer Tuple
+ /** Create a copy of a 2D integer Tuple
@param rTup
The 2D Tuple which will be copied.
*/
explicit B2DTuple(const B2ITuple& rTup);
- ~B2DTuple()
+ ~B2DTuple()
{}
/// Get X-Coordinate of 2D Tuple
double getX() const
- {
- return mfX;
+ {
+ return mfX;
}
/// Get Y-Coordinate of 2D Tuple
double getY() const
- {
- return mfY;
+ {
+ return mfY;
}
/// Set X-Coordinate of 2D Tuple
@@ -121,8 +121,8 @@ namespace basegfx
}
/// Array-access to 2D Tuple
- const double& operator[] (int nPos) const
- {
+ const double& operator[] (int nPos) const
+ {
// Here, normally one if(...) should be used. In the assumption that
// both double members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mfX; return mfY;
@@ -131,7 +131,7 @@ namespace basegfx
/// Array-access to 2D Tuple
double& operator[] (int nPos)
- {
+ {
// Here, normally one if(...) should be used. In the assumption that
// both double members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mfX; return mfY;
@@ -142,99 +142,99 @@ namespace basegfx
//////////////////////////////////////////////////////////////////////
bool equalZero() const
- {
- return (this == &getEmptyTuple() ||
+ {
+ return (this == &getEmptyTuple() ||
(fTools::equalZero(mfX) && fTools::equalZero(mfY)));
}
bool equalZero(const double& rfSmallValue) const
- {
- return (this == &getEmptyTuple() ||
+ {
+ return (this == &getEmptyTuple() ||
(fTools::equalZero(mfX, rfSmallValue) && fTools::equalZero(mfY, rfSmallValue)));
}
bool equal(const B2DTuple& rTup) const
- {
+ {
return (
this == &rTup ||
- (fTools::equal(mfX, rTup.mfX) &&
+ (fTools::equal(mfX, rTup.mfX) &&
fTools::equal(mfY, rTup.mfY)));
}
bool equal(const B2DTuple& rTup, const double& rfSmallValue) const
- {
+ {
return (
this == &rTup ||
- (fTools::equal(mfX, rTup.mfX, rfSmallValue) &&
+ (fTools::equal(mfX, rTup.mfX, rfSmallValue) &&
fTools::equal(mfY, rTup.mfY, rfSmallValue)));
}
// operators
//////////////////////////////////////////////////////////////////////
- B2DTuple& operator+=( const B2DTuple& rTup )
- {
+ B2DTuple& operator+=( const B2DTuple& rTup )
+ {
mfX += rTup.mfX;
- mfY += rTup.mfY;
- return *this;
+ mfY += rTup.mfY;
+ return *this;
}
- B2DTuple& operator-=( const B2DTuple& rTup )
- {
+ B2DTuple& operator-=( const B2DTuple& rTup )
+ {
mfX -= rTup.mfX;
- mfY -= rTup.mfY;
- return *this;
+ mfY -= rTup.mfY;
+ return *this;
}
- B2DTuple& operator/=( const B2DTuple& rTup )
- {
+ B2DTuple& operator/=( const B2DTuple& rTup )
+ {
mfX /= rTup.mfX;
- mfY /= rTup.mfY;
- return *this;
+ mfY /= rTup.mfY;
+ return *this;
}
- B2DTuple& operator*=( const B2DTuple& rTup )
- {
+ B2DTuple& operator*=( const B2DTuple& rTup )
+ {
mfX *= rTup.mfX;
- mfY *= rTup.mfY;
- return *this;
+ mfY *= rTup.mfY;
+ return *this;
}
- B2DTuple& operator*=(double t)
- {
- mfX *= t;
- mfY *= t;
- return *this;
+ B2DTuple& operator*=(double t)
+ {
+ mfX *= t;
+ mfY *= t;
+ return *this;
}
- B2DTuple& operator/=(double t)
- {
+ B2DTuple& operator/=(double t)
+ {
const double fVal(1.0 / t);
- mfX *= fVal;
- mfY *= fVal;
- return *this;
+ mfX *= fVal;
+ mfY *= fVal;
+ return *this;
}
- B2DTuple operator-(void) const
- {
- return B2DTuple(-mfX, -mfY);
+ B2DTuple operator-(void) const
+ {
+ return B2DTuple(-mfX, -mfY);
}
-
- bool operator==( const B2DTuple& rTup ) const
- {
+
+ bool operator==( const B2DTuple& rTup ) const
+ {
return equal(rTup);
}
- bool operator!=( const B2DTuple& rTup ) const
- {
+ bool operator!=( const B2DTuple& rTup ) const
+ {
return !equal(rTup);
}
-
- B2DTuple& operator=( const B2DTuple& rTup )
- {
+
+ B2DTuple& operator=( const B2DTuple& rTup )
+ {
mfX = rTup.mfX;
- mfY = rTup.mfY;
- return *this;
+ mfY = rTup.mfY;
+ return *this;
}
void correctValues(const double fCompareValue = 0.0);
@@ -245,109 +245,109 @@ namespace basegfx
// external operators
//////////////////////////////////////////////////////////////////////////
- inline B2DTuple minimum(const B2DTuple& rTupA, const B2DTuple& rTupB)
- {
+ inline B2DTuple minimum(const B2DTuple& rTupA, const B2DTuple& rTupB)
+ {
B2DTuple aMin(
(rTupB.getX() < rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
- (rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY());
+ (rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY());
return aMin;
}
- inline B2DTuple maximum(const B2DTuple& rTupA, const B2DTuple& rTupB)
- {
+ inline B2DTuple maximum(const B2DTuple& rTupA, const B2DTuple& rTupB)
+ {
B2DTuple aMax(
(rTupB.getX() > rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
- (rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY());
+ (rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY());
return aMax;
}
- inline B2DTuple absolute(const B2DTuple& rTup)
- {
+ inline B2DTuple absolute(const B2DTuple& rTup)
+ {
B2DTuple aAbs(
(0.0 > rTup.getX()) ? -rTup.getX() : rTup.getX(),
- (0.0 > rTup.getY()) ? -rTup.getY() : rTup.getY());
+ (0.0 > rTup.getY()) ? -rTup.getY() : rTup.getY());
return aAbs;
}
- inline B2DTuple interpolate(const B2DTuple& rOld1, const B2DTuple& rOld2, double t)
- {
+ inline B2DTuple interpolate(const B2DTuple& rOld1, const B2DTuple& rOld2, double t)
+ {
B2DTuple aInt(
((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(),
- ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY());
+ ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY());
return aInt;
}
- inline B2DTuple average(const B2DTuple& rOld1, const B2DTuple& rOld2)
- {
+ inline B2DTuple average(const B2DTuple& rOld1, const B2DTuple& rOld2)
+ {
B2DTuple aAvg(
(rOld1.getX() + rOld2.getX()) * 0.5,
- (rOld1.getY() + rOld2.getY()) * 0.5);
+ (rOld1.getY() + rOld2.getY()) * 0.5);
return aAvg;
}
-
+
inline B2DTuple average(const B2DTuple& rOld1, const B2DTuple& rOld2, const B2DTuple& rOld3)
- {
+ {
B2DTuple aAvg(
(rOld1.getX() + rOld2.getX() + rOld3.getX()) * (1.0 / 3.0),
- (rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0));
+ (rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0));
return aAvg;
}
inline B2DTuple operator+(const B2DTuple& rTupA, const B2DTuple& rTupB)
- {
- B2DTuple aSum(rTupA);
- aSum += rTupB;
- return aSum;
+ {
+ B2DTuple aSum(rTupA);
+ aSum += rTupB;
+ return aSum;
}
inline B2DTuple operator-(const B2DTuple& rTupA, const B2DTuple& rTupB)
- {
- B2DTuple aSub(rTupA);
- aSub -= rTupB;
- return aSub;
+ {
+ B2DTuple aSub(rTupA);
+ aSub -= rTupB;
+ return aSub;
}
inline B2DTuple operator/(const B2DTuple& rTupA, const B2DTuple& rTupB)
- {
- B2DTuple aDiv(rTupA);
- aDiv /= rTupB;
- return aDiv;
+ {
+ B2DTuple aDiv(rTupA);
+ aDiv /= rTupB;
+ return aDiv;
}
inline B2DTuple operator*(const B2DTuple& rTupA, const B2DTuple& rTupB)
- {
- B2DTuple aMul(rTupA);
- aMul *= rTupB;
- return aMul;
+ {
+ B2DTuple aMul(rTupA);
+ aMul *= rTupB;
+ return aMul;
}
inline B2DTuple operator*(const B2DTuple& rTup, double t)
- {
- B2DTuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B2DTuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B2DTuple operator*(double t, const B2DTuple& rTup)
- {
- B2DTuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B2DTuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B2DTuple operator/(const B2DTuple& rTup, double t)
- {
- B2DTuple aNew(rTup);
- aNew /= t;
- return aNew;
+ {
+ B2DTuple aNew(rTup);
+ aNew /= t;
+ return aNew;
}
inline B2DTuple operator/(double t, const B2DTuple& rTup)
{
- B2DTuple aNew(t, t);
- B2DTuple aTmp(rTup);
- aNew /= aTmp;
- return aNew;
+ B2DTuple aNew(t, t);
+ B2DTuple aTmp(rTup);
+ aNew /= aTmp;
+ return aNew;
}
/** Round double to nearest integer for 2D tuple
diff --git a/basegfx/inc/basegfx/tuple/b2i64tuple.hxx b/basegfx/inc/basegfx/tuple/b2i64tuple.hxx
index a75e13755820..5d78c407b4da 100644
--- a/basegfx/inc/basegfx/tuple/b2i64tuple.hxx
+++ b/basegfx/inc/basegfx/tuple/b2i64tuple.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,57 +46,57 @@ namespace basegfx
class B2I64Tuple
{
protected:
- sal_Int64 mnX;
- sal_Int64 mnY;
-
- public:
- /** Create a 2D Tuple
+ sal_Int64 mnX;
+ sal_Int64 mnY;
+
+ public:
+ /** Create a 2D Tuple
The tuple is initialized to (0, 0)
*/
- B2I64Tuple()
- : mnX(0),
- mnY(0)
+ B2I64Tuple()
+ : mnX(0),
+ mnY(0)
{}
- /** Create a 2D Tuple
+ /** Create a 2D Tuple
@param fX
This parameter is used to initialize the X-coordinate
of the 2D Tuple.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the 2D Tuple.
*/
- B2I64Tuple(sal_Int64 fX, sal_Int64 fY)
- : mnX( fX ),
- mnY( fY )
+ B2I64Tuple(sal_Int64 fX, sal_Int64 fY)
+ : mnX( fX ),
+ mnY( fY )
{}
- /** Create a copy of a 2D Tuple
+ /** Create a copy of a 2D Tuple
@param rTup
The 2D Tuple which will be copied.
*/
- B2I64Tuple(const B2I64Tuple& rTup)
- : mnX( rTup.mnX ),
- mnY( rTup.mnY )
+ B2I64Tuple(const B2I64Tuple& rTup)
+ : mnX( rTup.mnX ),
+ mnY( rTup.mnY )
{}
- ~B2I64Tuple()
+ ~B2I64Tuple()
{}
/// Get X-Coordinate of 2D Tuple
sal_Int64 getX() const
- {
- return mnX;
+ {
+ return mnX;
}
/// Get Y-Coordinate of 2D Tuple
sal_Int64 getY() const
- {
- return mnY;
+ {
+ return mnY;
}
/// Set X-Coordinate of 2D Tuple
@@ -112,8 +112,8 @@ namespace basegfx
}
/// Array-access to 2D Tuple
- const sal_Int64& operator[] (int nPos) const
- {
+ const sal_Int64& operator[] (int nPos) const
+ {
// Here, normally one if(...) should be used. In the assumption that
// both sal_Int64 members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mnX; return mnY;
@@ -122,7 +122,7 @@ namespace basegfx
/// Array-access to 2D Tuple
sal_Int64& operator[] (int nPos)
- {
+ {
// Here, normally one if(...) should be used. In the assumption that
// both sal_Int64 members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mnX; return mnY;
@@ -132,70 +132,70 @@ namespace basegfx
// operators
//////////////////////////////////////////////////////////////////////
- B2I64Tuple& operator+=( const B2I64Tuple& rTup )
- {
+ B2I64Tuple& operator+=( const B2I64Tuple& rTup )
+ {
mnX += rTup.mnX;
- mnY += rTup.mnY;
- return *this;
+ mnY += rTup.mnY;
+ return *this;
}
- B2I64Tuple& operator-=( const B2I64Tuple& rTup )
- {
+ B2I64Tuple& operator-=( const B2I64Tuple& rTup )
+ {
mnX -= rTup.mnX;
- mnY -= rTup.mnY;
- return *this;
+ mnY -= rTup.mnY;
+ return *this;
}
- B2I64Tuple& operator/=( const B2I64Tuple& rTup )
- {
+ B2I64Tuple& operator/=( const B2I64Tuple& rTup )
+ {
mnX /= rTup.mnX;
- mnY /= rTup.mnY;
- return *this;
+ mnY /= rTup.mnY;
+ return *this;
}
- B2I64Tuple& operator*=( const B2I64Tuple& rTup )
- {
+ B2I64Tuple& operator*=( const B2I64Tuple& rTup )
+ {
mnX *= rTup.mnX;
- mnY *= rTup.mnY;
- return *this;
+ mnY *= rTup.mnY;
+ return *this;
}
- B2I64Tuple& operator*=(sal_Int64 t)
- {
- mnX *= t;
- mnY *= t;
- return *this;
+ B2I64Tuple& operator*=(sal_Int64 t)
+ {
+ mnX *= t;
+ mnY *= t;
+ return *this;
}
- B2I64Tuple& operator/=(sal_Int64 t)
- {
- mnX /= t;
- mnY /= t;
- return *this;
+ B2I64Tuple& operator/=(sal_Int64 t)
+ {
+ mnX /= t;
+ mnY /= t;
+ return *this;
}
- B2I64Tuple operator-(void) const
- {
- return B2I64Tuple(-mnX, -mnY);
+ B2I64Tuple operator-(void) const
+ {
+ return B2I64Tuple(-mnX, -mnY);
}
-
+
bool equalZero() const { return mnX == 0 && mnY == 0; }
- bool operator==( const B2I64Tuple& rTup ) const
- {
+ bool operator==( const B2I64Tuple& rTup ) const
+ {
return this == &rTup || (rTup.mnX == mnX && rTup.mnY == mnY);
}
- bool operator!=( const B2I64Tuple& rTup ) const
- {
+ bool operator!=( const B2I64Tuple& rTup ) const
+ {
return !(*this == rTup);
}
-
- B2I64Tuple& operator=( const B2I64Tuple& rTup )
- {
+
+ B2I64Tuple& operator=( const B2I64Tuple& rTup )
+ {
mnX = rTup.mnX;
- mnY = rTup.mnY;
- return *this;
+ mnY = rTup.mnY;
+ return *this;
}
static const B2I64Tuple& getEmptyTuple();
@@ -204,109 +204,109 @@ namespace basegfx
// external operators
//////////////////////////////////////////////////////////////////////////
- inline B2I64Tuple minimum(const B2I64Tuple& rTupA, const B2I64Tuple& rTupB)
- {
+ inline B2I64Tuple minimum(const B2I64Tuple& rTupA, const B2I64Tuple& rTupB)
+ {
B2I64Tuple aMin(
(rTupB.getX() < rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
- (rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY());
+ (rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY());
return aMin;
}
- inline B2I64Tuple maximum(const B2I64Tuple& rTupA, const B2I64Tuple& rTupB)
- {
+ inline B2I64Tuple maximum(const B2I64Tuple& rTupA, const B2I64Tuple& rTupB)
+ {
B2I64Tuple aMax(
(rTupB.getX() > rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
- (rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY());
+ (rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY());
return aMax;
}
- inline B2I64Tuple absolute(const B2I64Tuple& rTup)
- {
+ inline B2I64Tuple absolute(const B2I64Tuple& rTup)
+ {
B2I64Tuple aAbs(
(0 > rTup.getX()) ? -rTup.getX() : rTup.getX(),
- (0 > rTup.getY()) ? -rTup.getY() : rTup.getY());
+ (0 > rTup.getY()) ? -rTup.getY() : rTup.getY());
return aAbs;
}
- inline B2DTuple interpolate(const B2I64Tuple& rOld1, const B2I64Tuple& rOld2, double t)
- {
+ inline B2DTuple interpolate(const B2I64Tuple& rOld1, const B2I64Tuple& rOld2, double t)
+ {
B2DTuple aInt(
((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(),
- ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY());
+ ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY());
return aInt;
}
- inline B2DTuple average(const B2I64Tuple& rOld1, const B2I64Tuple& rOld2)
- {
+ inline B2DTuple average(const B2I64Tuple& rOld1, const B2I64Tuple& rOld2)
+ {
B2DTuple aAvg(
(rOld1.getX() + rOld2.getX()) * 0.5,
- (rOld1.getY() + rOld2.getY()) * 0.5);
+ (rOld1.getY() + rOld2.getY()) * 0.5);
return aAvg;
}
-
+
inline B2DTuple average(const B2I64Tuple& rOld1, const B2I64Tuple& rOld2, const B2I64Tuple& rOld3)
- {
+ {
B2DTuple aAvg(
(rOld1.getX() + rOld2.getX() + rOld3.getX()) * (1.0 / 3.0),
- (rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0));
+ (rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0));
return aAvg;
}
inline B2I64Tuple operator+(const B2I64Tuple& rTupA, const B2I64Tuple& rTupB)
- {
- B2I64Tuple aSum(rTupA);
- aSum += rTupB;
- return aSum;
+ {
+ B2I64Tuple aSum(rTupA);
+ aSum += rTupB;
+ return aSum;
}
inline B2I64Tuple operator-(const B2I64Tuple& rTupA, const B2I64Tuple& rTupB)
- {
- B2I64Tuple aSub(rTupA);
- aSub -= rTupB;
- return aSub;
+ {
+ B2I64Tuple aSub(rTupA);
+ aSub -= rTupB;
+ return aSub;
}
inline B2I64Tuple operator/(const B2I64Tuple& rTupA, const B2I64Tuple& rTupB)
- {
- B2I64Tuple aDiv(rTupA);
- aDiv /= rTupB;
- return aDiv;
+ {
+ B2I64Tuple aDiv(rTupA);
+ aDiv /= rTupB;
+ return aDiv;
}
inline B2I64Tuple operator*(const B2I64Tuple& rTupA, const B2I64Tuple& rTupB)
- {
- B2I64Tuple aMul(rTupA);
- aMul *= rTupB;
- return aMul;
+ {
+ B2I64Tuple aMul(rTupA);
+ aMul *= rTupB;
+ return aMul;
}
inline B2I64Tuple operator*(const B2I64Tuple& rTup, sal_Int64 t)
- {
- B2I64Tuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B2I64Tuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B2I64Tuple operator*(sal_Int64 t, const B2I64Tuple& rTup)
- {
- B2I64Tuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B2I64Tuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B2I64Tuple operator/(const B2I64Tuple& rTup, sal_Int64 t)
- {
- B2I64Tuple aNew(rTup);
- aNew /= t;
- return aNew;
+ {
+ B2I64Tuple aNew(rTup);
+ aNew /= t;
+ return aNew;
}
inline B2I64Tuple operator/(sal_Int64 t, const B2I64Tuple& rTup)
{
- B2I64Tuple aNew(t, t);
- B2I64Tuple aTmp(rTup);
- aNew /= aTmp;
- return aNew;
+ B2I64Tuple aNew(t, t);
+ B2I64Tuple aTmp(rTup);
+ aNew /= aTmp;
+ return aNew;
}
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/tuple/b2ituple.hxx b/basegfx/inc/basegfx/tuple/b2ituple.hxx
index 636862f365b8..2611d386e7d6 100644
--- a/basegfx/inc/basegfx/tuple/b2ituple.hxx
+++ b/basegfx/inc/basegfx/tuple/b2ituple.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,57 +45,57 @@ namespace basegfx
class B2ITuple
{
protected:
- sal_Int32 mnX;
- sal_Int32 mnY;
-
- public:
- /** Create a 2D Tuple
+ sal_Int32 mnX;
+ sal_Int32 mnY;
+
+ public:
+ /** Create a 2D Tuple
The tuple is initialized to (0, 0)
*/
- B2ITuple()
- : mnX(0),
- mnY(0)
+ B2ITuple()
+ : mnX(0),
+ mnY(0)
{}
- /** Create a 2D Tuple
+ /** Create a 2D Tuple
@param fX
This parameter is used to initialize the X-coordinate
of the 2D Tuple.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the 2D Tuple.
*/
- B2ITuple(sal_Int32 fX, sal_Int32 fY)
- : mnX( fX ),
- mnY( fY )
+ B2ITuple(sal_Int32 fX, sal_Int32 fY)
+ : mnX( fX ),
+ mnY( fY )
{}
- /** Create a copy of a 2D Tuple
+ /** Create a copy of a 2D Tuple
@param rTup
The 2D Tuple which will be copied.
*/
- B2ITuple(const B2ITuple& rTup)
- : mnX( rTup.mnX ),
- mnY( rTup.mnY )
+ B2ITuple(const B2ITuple& rTup)
+ : mnX( rTup.mnX ),
+ mnY( rTup.mnY )
{}
- ~B2ITuple()
+ ~B2ITuple()
{}
/// Get X-Coordinate of 2D Tuple
sal_Int32 getX() const
- {
- return mnX;
+ {
+ return mnX;
}
/// Get Y-Coordinate of 2D Tuple
sal_Int32 getY() const
- {
- return mnY;
+ {
+ return mnY;
}
/// Set X-Coordinate of 2D Tuple
@@ -111,8 +111,8 @@ namespace basegfx
}
/// Array-access to 2D Tuple
- const sal_Int32& operator[] (int nPos) const
- {
+ const sal_Int32& operator[] (int nPos) const
+ {
// Here, normally one if(...) should be used. In the assumption that
// both sal_Int32 members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mnX; return mnY;
@@ -121,7 +121,7 @@ namespace basegfx
/// Array-access to 2D Tuple
sal_Int32& operator[] (int nPos)
- {
+ {
// Here, normally one if(...) should be used. In the assumption that
// both sal_Int32 members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mnX; return mnY;
@@ -131,70 +131,70 @@ namespace basegfx
// operators
//////////////////////////////////////////////////////////////////////
- B2ITuple& operator+=( const B2ITuple& rTup )
- {
+ B2ITuple& operator+=( const B2ITuple& rTup )
+ {
mnX += rTup.mnX;
- mnY += rTup.mnY;
- return *this;
+ mnY += rTup.mnY;
+ return *this;
}
- B2ITuple& operator-=( const B2ITuple& rTup )
- {
+ B2ITuple& operator-=( const B2ITuple& rTup )
+ {
mnX -= rTup.mnX;
- mnY -= rTup.mnY;
- return *this;
+ mnY -= rTup.mnY;
+ return *this;
}
- B2ITuple& operator/=( const B2ITuple& rTup )
- {
+ B2ITuple& operator/=( const B2ITuple& rTup )
+ {
mnX /= rTup.mnX;
- mnY /= rTup.mnY;
- return *this;
+ mnY /= rTup.mnY;
+ return *this;
}
- B2ITuple& operator*=( const B2ITuple& rTup )
- {
+ B2ITuple& operator*=( const B2ITuple& rTup )
+ {
mnX *= rTup.mnX;
- mnY *= rTup.mnY;
- return *this;
+ mnY *= rTup.mnY;
+ return *this;
}
- B2ITuple& operator*=(sal_Int32 t)
- {
- mnX *= t;
- mnY *= t;
- return *this;
+ B2ITuple& operator*=(sal_Int32 t)
+ {
+ mnX *= t;
+ mnY *= t;
+ return *this;
}
- B2ITuple& operator/=(sal_Int32 t)
- {
- mnX /= t;
- mnY /= t;
- return *this;
+ B2ITuple& operator/=(sal_Int32 t)
+ {
+ mnX /= t;
+ mnY /= t;
+ return *this;
}
- B2ITuple operator-(void) const
- {
- return B2ITuple(-mnX, -mnY);
+ B2ITuple operator-(void) const
+ {
+ return B2ITuple(-mnX, -mnY);
}
-
+
bool equalZero() const { return mnX == 0 && mnY == 0; }
- bool operator==( const B2ITuple& rTup ) const
- {
+ bool operator==( const B2ITuple& rTup ) const
+ {
return this == &rTup || (rTup.mnX == mnX && rTup.mnY == mnY);
}
- bool operator!=( const B2ITuple& rTup ) const
- {
+ bool operator!=( const B2ITuple& rTup ) const
+ {
return !(*this == rTup);
}
-
- B2ITuple& operator=( const B2ITuple& rTup )
- {
+
+ B2ITuple& operator=( const B2ITuple& rTup )
+ {
mnX = rTup.mnX;
- mnY = rTup.mnY;
- return *this;
+ mnY = rTup.mnY;
+ return *this;
}
static const B2ITuple& getEmptyTuple();
@@ -205,16 +205,16 @@ namespace basegfx
class B2DTuple;
- B2ITuple minimum(const B2ITuple& rTupA, const B2ITuple& rTupB);
-
- B2ITuple maximum(const B2ITuple& rTupA, const B2ITuple& rTupB);
+ B2ITuple minimum(const B2ITuple& rTupA, const B2ITuple& rTupB);
- B2ITuple absolute(const B2ITuple& rTup);
+ B2ITuple maximum(const B2ITuple& rTupA, const B2ITuple& rTupB);
- B2DTuple interpolate(const B2ITuple& rOld1, const B2ITuple& rOld2, double t);
+ B2ITuple absolute(const B2ITuple& rTup);
- B2DTuple average(const B2ITuple& rOld1, const B2ITuple& rOld2);
+ B2DTuple interpolate(const B2ITuple& rOld1, const B2ITuple& rOld2, double t);
+ B2DTuple average(const B2ITuple& rOld1, const B2ITuple& rOld2);
+
B2DTuple average(const B2ITuple& rOld1, const B2ITuple& rOld2, const B2ITuple& rOld3);
B2ITuple operator+(const B2ITuple& rTupA, const B2ITuple& rTupB);
diff --git a/basegfx/inc/basegfx/tuple/b3dtuple.hxx b/basegfx/inc/basegfx/tuple/b3dtuple.hxx
index dd2329f1c4bd..b8d975537dd7 100644
--- a/basegfx/inc/basegfx/tuple/b3dtuple.hxx
+++ b/basegfx/inc/basegfx/tuple/b3dtuple.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,78 +48,78 @@ namespace basegfx
class B3DTuple
{
protected:
- double mfX;
- double mfY;
- double mfZ;
+ double mfX;
+ double mfY;
+ double mfZ;
public:
- /** Create a 3D Tuple
+ /** Create a 3D Tuple
The tuple is initialized to (0.0, 0.0, 0.0)
*/
B3DTuple()
- : mfX(0.0),
+ : mfX(0.0),
mfY(0.0),
mfZ(0.0)
{}
- /** Create a 3D Tuple
+ /** Create a 3D Tuple
@param fX
This parameter is used to initialize the X-coordinate
of the 3D Tuple.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the 3D Tuple.
-
+
@param fZ
This parameter is used to initialize the Z-coordinate
of the 3D Tuple.
*/
B3DTuple(double fX, double fY, double fZ)
- : mfX(fX),
+ : mfX(fX),
mfY(fY),
mfZ(fZ)
{}
- /** Create a copy of a 3D Tuple
+ /** Create a copy of a 3D Tuple
@param rTup
The 3D Tuple which will be copied.
*/
- B3DTuple(const B3DTuple& rTup)
- : mfX( rTup.mfX ),
+ B3DTuple(const B3DTuple& rTup)
+ : mfX( rTup.mfX ),
mfY( rTup.mfY ),
- mfZ( rTup.mfZ )
+ mfZ( rTup.mfZ )
{}
- /** Create a copy of a 3D integer Tuple
+ /** Create a copy of a 3D integer Tuple
@param rTup
The 3D Tuple which will be copied.
*/
explicit B3DTuple(const B3ITuple& rTup);
- ~B3DTuple()
+ ~B3DTuple()
{}
/// get X-Coordinate of 3D Tuple
double getX() const
- {
- return mfX;
+ {
+ return mfX;
}
/// get Y-Coordinate of 3D Tuple
double getY() const
- {
- return mfY;
+ {
+ return mfY;
}
/// get Z-Coordinate of 3D Tuple
double getZ() const
- {
- return mfZ;
+ {
+ return mfZ;
}
/// set X-Coordinate of 3D Tuple
@@ -141,8 +141,8 @@ namespace basegfx
}
/// Array-access to 3D Tuple
- const double& operator[] (int nPos) const
- {
+ const double& operator[] (int nPos) const
+ {
// Here, normally two if(...)'s should be used. In the assumption that
// both double members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mfX; if(1 == nPos) return mfY; return mfZ;
@@ -151,7 +151,7 @@ namespace basegfx
/// Array-access to 3D Tuple
double& operator[] (int nPos)
- {
+ {
// Here, normally two if(...)'s should be used. In the assumption that
// both double members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mfX; if(1 == nPos) return mfY; return mfZ;
@@ -162,26 +162,26 @@ namespace basegfx
//////////////////////////////////////////////////////////////////////
bool equalZero() const
- {
- return (this == &getEmptyTuple() ||
- (::basegfx::fTools::equalZero(mfX)
- && ::basegfx::fTools::equalZero(mfY)
+ {
+ return (this == &getEmptyTuple() ||
+ (::basegfx::fTools::equalZero(mfX)
+ && ::basegfx::fTools::equalZero(mfY)
&& ::basegfx::fTools::equalZero(mfZ)));
}
bool equalZero(const double& rfSmallValue) const
- {
- return (this == &getEmptyTuple() ||
- (::basegfx::fTools::equalZero(mfX, rfSmallValue)
+ {
+ return (this == &getEmptyTuple() ||
+ (::basegfx::fTools::equalZero(mfX, rfSmallValue)
&& ::basegfx::fTools::equalZero(mfY, rfSmallValue)
&& ::basegfx::fTools::equalZero(mfZ, rfSmallValue)));
}
bool equal(const B3DTuple& rTup) const
- {
+ {
return (
this == &rTup ||
- (::basegfx::fTools::equal(mfX, rTup.mfX) &&
+ (::basegfx::fTools::equal(mfX, rTup.mfX) &&
::basegfx::fTools::equal(mfY, rTup.mfY) &&
::basegfx::fTools::equal(mfZ, rTup.mfZ)));
}
@@ -190,84 +190,84 @@ namespace basegfx
{
return (
this == &rTup ||
- (::basegfx::fTools::equal(mfX, rTup.mfX, rfSmallValue) &&
- ::basegfx::fTools::equal(mfY, rTup.mfY, rfSmallValue) &&
+ (::basegfx::fTools::equal(mfX, rTup.mfX, rfSmallValue) &&
+ ::basegfx::fTools::equal(mfY, rTup.mfY, rfSmallValue) &&
::basegfx::fTools::equal(mfZ, rTup.mfZ, rfSmallValue)));
}
// operators
//////////////////////////////////////////////////////////////////////
- B3DTuple& operator+=( const B3DTuple& rTup )
- {
+ B3DTuple& operator+=( const B3DTuple& rTup )
+ {
mfX += rTup.mfX;
- mfY += rTup.mfY;
- mfZ += rTup.mfZ;
- return *this;
+ mfY += rTup.mfY;
+ mfZ += rTup.mfZ;
+ return *this;
}
- B3DTuple& operator-=( const B3DTuple& rTup )
- {
+ B3DTuple& operator-=( const B3DTuple& rTup )
+ {
mfX -= rTup.mfX;
- mfY -= rTup.mfY;
- mfZ -= rTup.mfZ;
- return *this;
+ mfY -= rTup.mfY;
+ mfZ -= rTup.mfZ;
+ return *this;
}
- B3DTuple& operator/=( const B3DTuple& rTup )
- {
+ B3DTuple& operator/=( const B3DTuple& rTup )
+ {
mfX /= rTup.mfX;
- mfY /= rTup.mfY;
- mfZ /= rTup.mfZ;
- return *this;
+ mfY /= rTup.mfY;
+ mfZ /= rTup.mfZ;
+ return *this;
}
- B3DTuple& operator*=( const B3DTuple& rTup )
- {
+ B3DTuple& operator*=( const B3DTuple& rTup )
+ {
mfX *= rTup.mfX;
- mfY *= rTup.mfY;
- mfZ *= rTup.mfZ;
- return *this;
+ mfY *= rTup.mfY;
+ mfZ *= rTup.mfZ;
+ return *this;
}
- B3DTuple& operator*=(double t)
- {
- mfX *= t;
- mfY *= t;
- mfZ *= t;
- return *this;
+ B3DTuple& operator*=(double t)
+ {
+ mfX *= t;
+ mfY *= t;
+ mfZ *= t;
+ return *this;
}
- B3DTuple& operator/=(double t)
- {
+ B3DTuple& operator/=(double t)
+ {
const double fVal(1.0 / t);
- mfX *= fVal;
- mfY *= fVal;
- mfZ *= fVal;
- return *this;
+ mfX *= fVal;
+ mfY *= fVal;
+ mfZ *= fVal;
+ return *this;
}
- B3DTuple operator-(void) const
- {
- return B3DTuple(-mfX, -mfY, -mfZ);
+ B3DTuple operator-(void) const
+ {
+ return B3DTuple(-mfX, -mfY, -mfZ);
}
- bool operator==( const B3DTuple& rTup ) const
- {
+ bool operator==( const B3DTuple& rTup ) const
+ {
return equal(rTup);
}
- bool operator!=( const B3DTuple& rTup ) const
- {
+ bool operator!=( const B3DTuple& rTup ) const
+ {
return !equal(rTup);
}
-
- B3DTuple& operator=( const B3DTuple& rTup )
- {
+
+ B3DTuple& operator=( const B3DTuple& rTup )
+ {
mfX = rTup.mfX;
- mfY = rTup.mfY;
- mfZ = rTup.mfZ;
- return *this;
+ mfY = rTup.mfY;
+ mfZ = rTup.mfZ;
+ return *this;
}
void correctValues(const double fCompareValue = 0.0)
@@ -283,7 +283,7 @@ namespace basegfx
{
mfY = 0.0;
}
-
+
if(::basegfx::fTools::equalZero(mfZ))
{
mfZ = 0.0;
@@ -295,12 +295,12 @@ namespace basegfx
{
mfX = fCompareValue;
}
-
+
if(::basegfx::fTools::equal(mfY, fCompareValue))
{
mfY = fCompareValue;
}
-
+
if(::basegfx::fTools::equal(mfZ, fCompareValue))
{
mfZ = fCompareValue;
@@ -314,114 +314,114 @@ namespace basegfx
// external operators
//////////////////////////////////////////////////////////////////////////
- inline B3DTuple minimum(const B3DTuple& rTupA, const B3DTuple& rTupB)
- {
+ inline B3DTuple minimum(const B3DTuple& rTupA, const B3DTuple& rTupB)
+ {
B3DTuple aMin(
(rTupB.getX() < rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
(rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY(),
- (rTupB.getZ() < rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
+ (rTupB.getZ() < rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
return aMin;
}
- inline B3DTuple maximum(const B3DTuple& rTupA, const B3DTuple& rTupB)
- {
+ inline B3DTuple maximum(const B3DTuple& rTupA, const B3DTuple& rTupB)
+ {
B3DTuple aMax(
(rTupB.getX() > rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
(rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY(),
- (rTupB.getZ() > rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
+ (rTupB.getZ() > rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
return aMax;
}
- inline B3DTuple absolute(const B3DTuple& rTup)
- {
+ inline B3DTuple absolute(const B3DTuple& rTup)
+ {
B3DTuple aAbs(
(0.0 > rTup.getX()) ? -rTup.getX() : rTup.getX(),
(0.0 > rTup.getY()) ? -rTup.getY() : rTup.getY(),
- (0.0 > rTup.getZ()) ? -rTup.getZ() : rTup.getZ());
+ (0.0 > rTup.getZ()) ? -rTup.getZ() : rTup.getZ());
return aAbs;
}
- inline B3DTuple interpolate(const B3DTuple& rOld1, const B3DTuple& rOld2, double t)
- {
+ inline B3DTuple interpolate(const B3DTuple& rOld1, const B3DTuple& rOld2, double t)
+ {
B3DTuple aInt(
((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(),
((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY(),
- ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ());
+ ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ());
return aInt;
}
- inline B3DTuple average(const B3DTuple& rOld1, const B3DTuple& rOld2)
- {
+ inline B3DTuple average(const B3DTuple& rOld1, const B3DTuple& rOld2)
+ {
B3DTuple aAvg(
(rOld1.getX() + rOld2.getX()) * 0.5,
(rOld1.getY() + rOld2.getY()) * 0.5,
- (rOld1.getZ() + rOld2.getZ()) * 0.5);
+ (rOld1.getZ() + rOld2.getZ()) * 0.5);
return aAvg;
}
-
+
inline B3DTuple average(const B3DTuple& rOld1, const B3DTuple& rOld2, const B3DTuple& rOld3)
- {
+ {
B3DTuple aAvg(
(rOld1.getX() + rOld2.getX() + rOld3.getX()) * (1.0 / 3.0),
(rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0),
- (rOld1.getZ() + rOld2.getZ() + rOld3.getZ()) * (1.0 / 3.0));
+ (rOld1.getZ() + rOld2.getZ() + rOld3.getZ()) * (1.0 / 3.0));
return aAvg;
}
-
+
inline B3DTuple operator+(const B3DTuple& rTupA, const B3DTuple& rTupB)
- {
- B3DTuple aSum(rTupA);
- aSum += rTupB;
- return aSum;
+ {
+ B3DTuple aSum(rTupA);
+ aSum += rTupB;
+ return aSum;
}
inline B3DTuple operator-(const B3DTuple& rTupA, const B3DTuple& rTupB)
- {
- B3DTuple aSub(rTupA);
- aSub -= rTupB;
- return aSub;
+ {
+ B3DTuple aSub(rTupA);
+ aSub -= rTupB;
+ return aSub;
}
inline B3DTuple operator/(const B3DTuple& rTupA, const B3DTuple& rTupB)
- {
- B3DTuple aDiv(rTupA);
- aDiv /= rTupB;
- return aDiv;
+ {
+ B3DTuple aDiv(rTupA);
+ aDiv /= rTupB;
+ return aDiv;
}
inline B3DTuple operator*(const B3DTuple& rTupA, const B3DTuple& rTupB)
- {
- B3DTuple aMul(rTupA);
- aMul *= rTupB;
- return aMul;
+ {
+ B3DTuple aMul(rTupA);
+ aMul *= rTupB;
+ return aMul;
}
inline B3DTuple operator*(const B3DTuple& rTup, double t)
- {
- B3DTuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B3DTuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B3DTuple operator*(double t, const B3DTuple& rTup)
- {
- B3DTuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B3DTuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B3DTuple operator/(const B3DTuple& rTup, double t)
- {
- B3DTuple aNew(rTup);
- aNew /= t;
- return aNew;
+ {
+ B3DTuple aNew(rTup);
+ aNew /= t;
+ return aNew;
}
inline B3DTuple operator/(double t, const B3DTuple& rTup)
{
- B3DTuple aNew(rTup);
- aNew /= t;
- return aNew;
+ B3DTuple aNew(rTup);
+ aNew /= t;
+ return aNew;
}
/** Round double to nearest integer for 3D tuple
diff --git a/basegfx/inc/basegfx/tuple/b3i64tuple.hxx b/basegfx/inc/basegfx/tuple/b3i64tuple.hxx
index b4b3416ce887..1fd4e1eb3a2c 100644
--- a/basegfx/inc/basegfx/tuple/b3i64tuple.hxx
+++ b/basegfx/inc/basegfx/tuple/b3i64tuple.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,71 +46,71 @@ namespace basegfx
class B3I64Tuple
{
protected:
- sal_Int64 mnX;
- sal_Int64 mnY;
- sal_Int64 mnZ;
+ sal_Int64 mnX;
+ sal_Int64 mnY;
+ sal_Int64 mnZ;
public:
- /** Create a 3D Tuple
+ /** Create a 3D Tuple
The tuple is initialized to (0, 0, 0)
*/
B3I64Tuple()
- : mnX(0),
+ : mnX(0),
mnY(0),
mnZ(0)
{}
- /** Create a 3D Tuple
+ /** Create a 3D Tuple
@param nX
This parameter is used to initialize the X-coordinate
of the 3D Tuple.
-
+
@param nY
This parameter is used to initialize the Y-coordinate
of the 3D Tuple.
-
+
@param nZ
This parameter is used to initialize the Z-coordinate
of the 3D Tuple.
*/
B3I64Tuple(sal_Int64 nX, sal_Int64 nY, sal_Int64 nZ)
- : mnX(nX),
+ : mnX(nX),
mnY(nY),
mnZ(nZ)
{}
- /** Create a copy of a 3D Tuple
+ /** Create a copy of a 3D Tuple
@param rTup
The 3D Tuple which will be copied.
*/
- B3I64Tuple(const B3I64Tuple& rTup)
- : mnX( rTup.mnX ),
+ B3I64Tuple(const B3I64Tuple& rTup)
+ : mnX( rTup.mnX ),
mnY( rTup.mnY ),
- mnZ( rTup.mnZ )
+ mnZ( rTup.mnZ )
{}
- ~B3I64Tuple()
+ ~B3I64Tuple()
{}
/// get X-Coordinate of 3D Tuple
sal_Int64 getX() const
- {
- return mnX;
+ {
+ return mnX;
}
/// get Y-Coordinate of 3D Tuple
sal_Int64 getY() const
- {
- return mnY;
+ {
+ return mnY;
}
/// get Z-Coordinate of 3D Tuple
sal_Int64 getZ() const
- {
- return mnZ;
+ {
+ return mnZ;
}
/// set X-Coordinate of 3D Tuple
@@ -132,8 +132,8 @@ namespace basegfx
}
/// Array-access to 3D Tuple
- const sal_Int64& operator[] (int nPos) const
- {
+ const sal_Int64& operator[] (int nPos) const
+ {
// Here, normally two if(...)'s should be used. In the assumption that
// both sal_Int64 members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mnX; if(1 == nPos) return mnY; return mnZ;
@@ -142,7 +142,7 @@ namespace basegfx
/// Array-access to 3D Tuple
sal_Int64& operator[] (int nPos)
- {
+ {
// Here, normally two if(...)'s should be used. In the assumption that
// both sal_Int64 members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mnX; if(1 == nPos) return mnY; return mnZ;
@@ -152,81 +152,81 @@ namespace basegfx
// operators
//////////////////////////////////////////////////////////////////////
- B3I64Tuple& operator+=( const B3I64Tuple& rTup )
- {
+ B3I64Tuple& operator+=( const B3I64Tuple& rTup )
+ {
mnX += rTup.mnX;
- mnY += rTup.mnY;
- mnZ += rTup.mnZ;
- return *this;
+ mnY += rTup.mnY;
+ mnZ += rTup.mnZ;
+ return *this;
}
- B3I64Tuple& operator-=( const B3I64Tuple& rTup )
- {
+ B3I64Tuple& operator-=( const B3I64Tuple& rTup )
+ {
mnX -= rTup.mnX;
- mnY -= rTup.mnY;
- mnZ -= rTup.mnZ;
- return *this;
+ mnY -= rTup.mnY;
+ mnZ -= rTup.mnZ;
+ return *this;
}
- B3I64Tuple& operator/=( const B3I64Tuple& rTup )
- {
+ B3I64Tuple& operator/=( const B3I64Tuple& rTup )
+ {
mnX /= rTup.mnX;
- mnY /= rTup.mnY;
- mnZ /= rTup.mnZ;
- return *this;
+ mnY /= rTup.mnY;
+ mnZ /= rTup.mnZ;
+ return *this;
}
- B3I64Tuple& operator*=( const B3I64Tuple& rTup )
- {
+ B3I64Tuple& operator*=( const B3I64Tuple& rTup )
+ {
mnX *= rTup.mnX;
- mnY *= rTup.mnY;
- mnZ *= rTup.mnZ;
- return *this;
+ mnY *= rTup.mnY;
+ mnZ *= rTup.mnZ;
+ return *this;
}
- B3I64Tuple& operator*=(sal_Int64 t)
- {
- mnX *= t;
- mnY *= t;
- mnZ *= t;
- return *this;
+ B3I64Tuple& operator*=(sal_Int64 t)
+ {
+ mnX *= t;
+ mnY *= t;
+ mnZ *= t;
+ return *this;
}
- B3I64Tuple& operator/=(sal_Int64 t)
- {
- mnX /= t;
- mnY /= t;
- mnZ /= t;
- return *this;
+ B3I64Tuple& operator/=(sal_Int64 t)
+ {
+ mnX /= t;
+ mnY /= t;
+ mnZ /= t;
+ return *this;
}
- B3I64Tuple operator-(void) const
- {
- return B3I64Tuple(-mnX, -mnY, -mnZ);
+ B3I64Tuple operator-(void) const
+ {
+ return B3I64Tuple(-mnX, -mnY, -mnZ);
}
bool equalZero() const
- {
- return (this == &getEmptyTuple() ||
+ {
+ return (this == &getEmptyTuple() ||
(mnX == 0 && mnY == 0 && mnZ == 0));
}
- bool operator==( const B3I64Tuple& rTup ) const
- {
+ bool operator==( const B3I64Tuple& rTup ) const
+ {
return this == &rTup || (rTup.mnX == mnX && rTup.mnY == mnY && rTup.mnZ == mnZ);
}
- bool operator!=( const B3I64Tuple& rTup ) const
- {
+ bool operator!=( const B3I64Tuple& rTup ) const
+ {
return !(*this == rTup);
}
-
- B3I64Tuple& operator=( const B3I64Tuple& rTup )
- {
+
+ B3I64Tuple& operator=( const B3I64Tuple& rTup )
+ {
mnX = rTup.mnX;
- mnY = rTup.mnY;
- mnZ = rTup.mnZ;
- return *this;
+ mnY = rTup.mnY;
+ mnZ = rTup.mnZ;
+ return *this;
}
static const B3I64Tuple& getEmptyTuple();
@@ -235,115 +235,115 @@ namespace basegfx
// external operators
//////////////////////////////////////////////////////////////////////////
- inline B3I64Tuple minimum(const B3I64Tuple& rTupA, const B3I64Tuple& rTupB)
- {
+ inline B3I64Tuple minimum(const B3I64Tuple& rTupA, const B3I64Tuple& rTupB)
+ {
B3I64Tuple aMin(
(rTupB.getX() < rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
(rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY(),
- (rTupB.getZ() < rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
+ (rTupB.getZ() < rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
return aMin;
}
- inline B3I64Tuple maximum(const B3I64Tuple& rTupA, const B3I64Tuple& rTupB)
- {
+ inline B3I64Tuple maximum(const B3I64Tuple& rTupA, const B3I64Tuple& rTupB)
+ {
B3I64Tuple aMax(
(rTupB.getX() > rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
(rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY(),
- (rTupB.getZ() > rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
+ (rTupB.getZ() > rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
return aMax;
}
- inline B3I64Tuple absolute(const B3I64Tuple& rTup)
- {
+ inline B3I64Tuple absolute(const B3I64Tuple& rTup)
+ {
B3I64Tuple aAbs(
(0 > rTup.getX()) ? -rTup.getX() : rTup.getX(),
(0 > rTup.getY()) ? -rTup.getY() : rTup.getY(),
- (0 > rTup.getZ()) ? -rTup.getZ() : rTup.getZ());
+ (0 > rTup.getZ()) ? -rTup.getZ() : rTup.getZ());
return aAbs;
}
- inline B3DTuple interpolate(const B3I64Tuple& rOld1, const B3I64Tuple& rOld2, double t)
- {
+ inline B3DTuple interpolate(const B3I64Tuple& rOld1, const B3I64Tuple& rOld2, double t)
+ {
B3DTuple aInt(
((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(),
((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY(),
- ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ());
+ ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ());
return aInt;
}
- inline B3DTuple average(const B3I64Tuple& rOld1, const B3I64Tuple& rOld2)
- {
+ inline B3DTuple average(const B3I64Tuple& rOld1, const B3I64Tuple& rOld2)
+ {
B3DTuple aAvg(
(rOld1.getX() + rOld2.getX()) * 0.5,
(rOld1.getY() + rOld2.getY()) * 0.5,
- (rOld1.getZ() + rOld2.getZ()) * 0.5);
+ (rOld1.getZ() + rOld2.getZ()) * 0.5);
return aAvg;
}
-
+
inline B3DTuple average(const B3I64Tuple& rOld1, const B3I64Tuple& rOld2, const B3I64Tuple& rOld3)
- {
+ {
B3DTuple aAvg(
(rOld1.getX() + rOld2.getX() + rOld3.getX()) * (1.0 / 3.0),
(rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0),
- (rOld1.getZ() + rOld2.getZ() + rOld3.getZ()) * (1.0 / 3.0));
+ (rOld1.getZ() + rOld2.getZ() + rOld3.getZ()) * (1.0 / 3.0));
return aAvg;
}
-
+
inline B3I64Tuple operator+(const B3I64Tuple& rTupA, const B3I64Tuple& rTupB)
- {
- B3I64Tuple aSum(rTupA);
- aSum += rTupB;
- return aSum;
+ {
+ B3I64Tuple aSum(rTupA);
+ aSum += rTupB;
+ return aSum;
}
inline B3I64Tuple operator-(const B3I64Tuple& rTupA, const B3I64Tuple& rTupB)
- {
- B3I64Tuple aSub(rTupA);
- aSub -= rTupB;
- return aSub;
+ {
+ B3I64Tuple aSub(rTupA);
+ aSub -= rTupB;
+ return aSub;
}
inline B3I64Tuple operator/(const B3I64Tuple& rTupA, const B3I64Tuple& rTupB)
- {
- B3I64Tuple aDiv(rTupA);
- aDiv /= rTupB;
- return aDiv;
+ {
+ B3I64Tuple aDiv(rTupA);
+ aDiv /= rTupB;
+ return aDiv;
}
inline B3I64Tuple operator*(const B3I64Tuple& rTupA, const B3I64Tuple& rTupB)
- {
- B3I64Tuple aMul(rTupA);
- aMul *= rTupB;
- return aMul;
+ {
+ B3I64Tuple aMul(rTupA);
+ aMul *= rTupB;
+ return aMul;
}
inline B3I64Tuple operator*(const B3I64Tuple& rTup, sal_Int64 t)
- {
- B3I64Tuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B3I64Tuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B3I64Tuple operator*(sal_Int64 t, const B3I64Tuple& rTup)
- {
- B3I64Tuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B3I64Tuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B3I64Tuple operator/(const B3I64Tuple& rTup, sal_Int64 t)
- {
- B3I64Tuple aNew(rTup);
- aNew /= t;
- return aNew;
+ {
+ B3I64Tuple aNew(rTup);
+ aNew /= t;
+ return aNew;
}
inline B3I64Tuple operator/(sal_Int64 t, const B3I64Tuple& rTup)
{
- B3I64Tuple aNew(t, t, t);
- B3I64Tuple aTmp(rTup);
- aNew /= aTmp;
- return aNew;
+ B3I64Tuple aNew(t, t, t);
+ B3I64Tuple aTmp(rTup);
+ aNew /= aTmp;
+ return aNew;
}
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/tuple/b3ituple.hxx b/basegfx/inc/basegfx/tuple/b3ituple.hxx
index 619ce145b6b9..d8787af93f9a 100644
--- a/basegfx/inc/basegfx/tuple/b3ituple.hxx
+++ b/basegfx/inc/basegfx/tuple/b3ituple.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,71 +46,71 @@ namespace basegfx
class B3ITuple
{
protected:
- sal_Int32 mnX;
- sal_Int32 mnY;
- sal_Int32 mnZ;
+ sal_Int32 mnX;
+ sal_Int32 mnY;
+ sal_Int32 mnZ;
public:
- /** Create a 3D Tuple
+ /** Create a 3D Tuple
The tuple is initialized to (0, 0, 0)
*/
B3ITuple()
- : mnX(0),
+ : mnX(0),
mnY(0),
mnZ(0)
{}
- /** Create a 3D Tuple
+ /** Create a 3D Tuple
@param nX
This parameter is used to initialize the X-coordinate
of the 3D Tuple.
-
+
@param nY
This parameter is used to initialize the Y-coordinate
of the 3D Tuple.
-
+
@param nZ
This parameter is used to initialize the Z-coordinate
of the 3D Tuple.
*/
B3ITuple(sal_Int32 nX, sal_Int32 nY, sal_Int32 nZ)
- : mnX(nX),
+ : mnX(nX),
mnY(nY),
mnZ(nZ)
{}
- /** Create a copy of a 3D Tuple
+ /** Create a copy of a 3D Tuple
@param rTup
The 3D Tuple which will be copied.
*/
- B3ITuple(const B3ITuple& rTup)
- : mnX( rTup.mnX ),
+ B3ITuple(const B3ITuple& rTup)
+ : mnX( rTup.mnX ),
mnY( rTup.mnY ),
- mnZ( rTup.mnZ )
+ mnZ( rTup.mnZ )
{}
- ~B3ITuple()
+ ~B3ITuple()
{}
/// get X-Coordinate of 3D Tuple
sal_Int32 getX() const
- {
- return mnX;
+ {
+ return mnX;
}
/// get Y-Coordinate of 3D Tuple
sal_Int32 getY() const
- {
- return mnY;
+ {
+ return mnY;
}
/// get Z-Coordinate of 3D Tuple
sal_Int32 getZ() const
- {
- return mnZ;
+ {
+ return mnZ;
}
/// set X-Coordinate of 3D Tuple
@@ -132,8 +132,8 @@ namespace basegfx
}
/// Array-access to 3D Tuple
- const sal_Int32& operator[] (int nPos) const
- {
+ const sal_Int32& operator[] (int nPos) const
+ {
// Here, normally two if(...)'s should be used. In the assumption that
// both sal_Int32 members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mnX; if(1 == nPos) return mnY; return mnZ;
@@ -142,7 +142,7 @@ namespace basegfx
/// Array-access to 3D Tuple
sal_Int32& operator[] (int nPos)
- {
+ {
// Here, normally two if(...)'s should be used. In the assumption that
// both sal_Int32 members can be accessed as an array a shortcut is used here.
// if(0 == nPos) return mnX; if(1 == nPos) return mnY; return mnZ;
@@ -152,81 +152,81 @@ namespace basegfx
// operators
//////////////////////////////////////////////////////////////////////
- B3ITuple& operator+=( const B3ITuple& rTup )
- {
+ B3ITuple& operator+=( const B3ITuple& rTup )
+ {
mnX += rTup.mnX;
- mnY += rTup.mnY;
- mnZ += rTup.mnZ;
- return *this;
+ mnY += rTup.mnY;
+ mnZ += rTup.mnZ;
+ return *this;
}
- B3ITuple& operator-=( const B3ITuple& rTup )
- {
+ B3ITuple& operator-=( const B3ITuple& rTup )
+ {
mnX -= rTup.mnX;
- mnY -= rTup.mnY;
- mnZ -= rTup.mnZ;
- return *this;
+ mnY -= rTup.mnY;
+ mnZ -= rTup.mnZ;
+ return *this;
}
- B3ITuple& operator/=( const B3ITuple& rTup )
- {
+ B3ITuple& operator/=( const B3ITuple& rTup )
+ {
mnX /= rTup.mnX;
- mnY /= rTup.mnY;
- mnZ /= rTup.mnZ;
- return *this;
+ mnY /= rTup.mnY;
+ mnZ /= rTup.mnZ;
+ return *this;
}
- B3ITuple& operator*=( const B3ITuple& rTup )
- {
+ B3ITuple& operator*=( const B3ITuple& rTup )
+ {
mnX *= rTup.mnX;
- mnY *= rTup.mnY;
- mnZ *= rTup.mnZ;
- return *this;
+ mnY *= rTup.mnY;
+ mnZ *= rTup.mnZ;
+ return *this;
}
- B3ITuple& operator*=(sal_Int32 t)
- {
- mnX *= t;
- mnY *= t;
- mnZ *= t;
- return *this;
+ B3ITuple& operator*=(sal_Int32 t)
+ {
+ mnX *= t;
+ mnY *= t;
+ mnZ *= t;
+ return *this;
}
- B3ITuple& operator/=(sal_Int32 t)
- {
- mnX /= t;
- mnY /= t;
- mnZ /= t;
- return *this;
+ B3ITuple& operator/=(sal_Int32 t)
+ {
+ mnX /= t;
+ mnY /= t;
+ mnZ /= t;
+ return *this;
}
- B3ITuple operator-(void) const
- {
- return B3ITuple(-mnX, -mnY, -mnZ);
+ B3ITuple operator-(void) const
+ {
+ return B3ITuple(-mnX, -mnY, -mnZ);
}
bool equalZero() const
- {
- return (this == &getEmptyTuple() ||
+ {
+ return (this == &getEmptyTuple() ||
(mnX == 0 && mnY == 0 && mnZ == 0));
}
- bool operator==( const B3ITuple& rTup ) const
- {
+ bool operator==( const B3ITuple& rTup ) const
+ {
return this == &rTup || (rTup.mnX == mnX && rTup.mnY == mnY && rTup.mnZ == mnZ);
}
- bool operator!=( const B3ITuple& rTup ) const
- {
+ bool operator!=( const B3ITuple& rTup ) const
+ {
return !(*this == rTup);
}
-
- B3ITuple& operator=( const B3ITuple& rTup )
- {
+
+ B3ITuple& operator=( const B3ITuple& rTup )
+ {
mnX = rTup.mnX;
- mnY = rTup.mnY;
- mnZ = rTup.mnZ;
- return *this;
+ mnY = rTup.mnY;
+ mnZ = rTup.mnZ;
+ return *this;
}
static const B3ITuple& getEmptyTuple();
@@ -235,115 +235,115 @@ namespace basegfx
// external operators
//////////////////////////////////////////////////////////////////////////
- inline B3ITuple minimum(const B3ITuple& rTupA, const B3ITuple& rTupB)
- {
+ inline B3ITuple minimum(const B3ITuple& rTupA, const B3ITuple& rTupB)
+ {
B3ITuple aMin(
(rTupB.getX() < rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
(rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY(),
- (rTupB.getZ() < rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
+ (rTupB.getZ() < rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
return aMin;
}
- inline B3ITuple maximum(const B3ITuple& rTupA, const B3ITuple& rTupB)
- {
+ inline B3ITuple maximum(const B3ITuple& rTupA, const B3ITuple& rTupB)
+ {
B3ITuple aMax(
(rTupB.getX() > rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
(rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY(),
- (rTupB.getZ() > rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
+ (rTupB.getZ() > rTupA.getZ()) ? rTupB.getZ() : rTupA.getZ());
return aMax;
}
- inline B3ITuple absolute(const B3ITuple& rTup)
- {
+ inline B3ITuple absolute(const B3ITuple& rTup)
+ {
B3ITuple aAbs(
(0 > rTup.getX()) ? -rTup.getX() : rTup.getX(),
(0 > rTup.getY()) ? -rTup.getY() : rTup.getY(),
- (0 > rTup.getZ()) ? -rTup.getZ() : rTup.getZ());
+ (0 > rTup.getZ()) ? -rTup.getZ() : rTup.getZ());
return aAbs;
}
- inline B3DTuple interpolate(const B3ITuple& rOld1, const B3ITuple& rOld2, double t)
- {
+ inline B3DTuple interpolate(const B3ITuple& rOld1, const B3ITuple& rOld2, double t)
+ {
B3DTuple aInt(
((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(),
((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY(),
- ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ());
+ ((rOld2.getZ() - rOld1.getZ()) * t) + rOld1.getZ());
return aInt;
}
- inline B3DTuple average(const B3ITuple& rOld1, const B3ITuple& rOld2)
- {
+ inline B3DTuple average(const B3ITuple& rOld1, const B3ITuple& rOld2)
+ {
B3DTuple aAvg(
(rOld1.getX() + rOld2.getX()) * 0.5,
(rOld1.getY() + rOld2.getY()) * 0.5,
- (rOld1.getZ() + rOld2.getZ()) * 0.5);
+ (rOld1.getZ() + rOld2.getZ()) * 0.5);
return aAvg;
}
-
+
inline B3DTuple average(const B3ITuple& rOld1, const B3ITuple& rOld2, const B3ITuple& rOld3)
- {
+ {
B3DTuple aAvg(
(rOld1.getX() + rOld2.getX() + rOld3.getX()) * (1.0 / 3.0),
(rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0),
- (rOld1.getZ() + rOld2.getZ() + rOld3.getZ()) * (1.0 / 3.0));
+ (rOld1.getZ() + rOld2.getZ() + rOld3.getZ()) * (1.0 / 3.0));
return aAvg;
}
-
+
inline B3ITuple operator+(const B3ITuple& rTupA, const B3ITuple& rTupB)
- {
- B3ITuple aSum(rTupA);
- aSum += rTupB;
- return aSum;
+ {
+ B3ITuple aSum(rTupA);
+ aSum += rTupB;
+ return aSum;
}
inline B3ITuple operator-(const B3ITuple& rTupA, const B3ITuple& rTupB)
- {
- B3ITuple aSub(rTupA);
- aSub -= rTupB;
- return aSub;
+ {
+ B3ITuple aSub(rTupA);
+ aSub -= rTupB;
+ return aSub;
}
inline B3ITuple operator/(const B3ITuple& rTupA, const B3ITuple& rTupB)
- {
- B3ITuple aDiv(rTupA);
- aDiv /= rTupB;
- return aDiv;
+ {
+ B3ITuple aDiv(rTupA);
+ aDiv /= rTupB;
+ return aDiv;
}
inline B3ITuple operator*(const B3ITuple& rTupA, const B3ITuple& rTupB)
- {
- B3ITuple aMul(rTupA);
- aMul *= rTupB;
- return aMul;
+ {
+ B3ITuple aMul(rTupA);
+ aMul *= rTupB;
+ return aMul;
}
inline B3ITuple operator*(const B3ITuple& rTup, sal_Int32 t)
- {
- B3ITuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B3ITuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B3ITuple operator*(sal_Int32 t, const B3ITuple& rTup)
- {
- B3ITuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B3ITuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
inline B3ITuple operator/(const B3ITuple& rTup, sal_Int32 t)
- {
- B3ITuple aNew(rTup);
- aNew /= t;
- return aNew;
+ {
+ B3ITuple aNew(rTup);
+ aNew /= t;
+ return aNew;
}
inline B3ITuple operator/(sal_Int32 t, const B3ITuple& rTup)
{
- B3ITuple aNew(t, t, t);
- B3ITuple aTmp(rTup);
- aNew /= aTmp;
- return aNew;
+ B3ITuple aNew(t, t, t);
+ B3ITuple aTmp(rTup);
+ aNew /= aTmp;
+ return aNew;
}
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/vector/b2dsize.hxx b/basegfx/inc/basegfx/vector/b2dsize.hxx
index 7af1d3b2ea84..4681a30405b8 100644
--- a/basegfx/inc/basegfx/vector/b2dsize.hxx
+++ b/basegfx/inc/basegfx/vector/b2dsize.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/vector/b2dvector.hxx b/basegfx/inc/basegfx/vector/b2dvector.hxx
index b2efaa52f5f2..109145b556d6 100644
--- a/basegfx/inc/basegfx/vector/b2dvector.hxx
+++ b/basegfx/inc/basegfx/vector/b2dvector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,73 +48,73 @@ namespace basegfx
*/
class B2DVector : public ::basegfx::B2DTuple
{
- public:
- /** Create a 2D Vector
+ public:
+ /** Create a 2D Vector
The vector is initialized to (0.0, 0.0)
*/
- B2DVector()
- : B2DTuple()
+ B2DVector()
+ : B2DTuple()
{}
- /** Create a 2D Vector
+ /** Create a 2D Vector
@param fX
This parameter is used to initialize the X-coordinate
of the 2D Vector.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the 2D Vector.
*/
- B2DVector(double fX, double fY)
- : B2DTuple(fX, fY)
+ B2DVector(double fX, double fY)
+ : B2DTuple(fX, fY)
{}
- /** Create a copy of a 2D Vector
+ /** Create a copy of a 2D Vector
@param rVec
The 2D Vector which will be copied.
*/
- B2DVector(const B2DVector& rVec)
- : B2DTuple(rVec)
+ B2DVector(const B2DVector& rVec)
+ : B2DTuple(rVec)
{}
- /** Create a copy of a 2D Vector
+ /** Create a copy of a 2D Vector
@param rVec
The 2D Vector which will be copied.
*/
- B2DVector(const ::basegfx::B2IVector& rVec)
- : B2DTuple(rVec)
+ B2DVector(const ::basegfx::B2IVector& rVec)
+ : B2DTuple(rVec)
{}
/** constructor with tuple to allow copy-constructing
from B2DTuple-based classes
*/
- B2DVector(const ::basegfx::B2DTuple& rTuple)
- : B2DTuple(rTuple)
+ B2DVector(const ::basegfx::B2DTuple& rTuple)
+ : B2DTuple(rTuple)
{}
- ~B2DVector()
+ ~B2DVector()
{}
/** *=operator to allow usage from B2DVector, too
*/
- B2DVector& operator*=( const B2DVector& rPnt )
- {
+ B2DVector& operator*=( const B2DVector& rPnt )
+ {
mfX *= rPnt.mfX;
- mfY *= rPnt.mfY;
- return *this;
+ mfY *= rPnt.mfY;
+ return *this;
}
/** *=operator to allow usage from B2DVector, too
*/
- B2DVector& operator*=(double t)
- {
- mfX *= t;
- mfY *= t;
- return *this;
+ B2DVector& operator*=(double t)
+ {
+ mfX *= t;
+ mfY *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
@@ -195,7 +195,7 @@ namespace basegfx
static const B2DVector& getEmptyVector();
};
-
+
// external operators
//////////////////////////////////////////////////////////////////////////
@@ -250,14 +250,14 @@ namespace basegfx
bool areParallel( const B2DVector& rVecA, const B2DVector& rVecB );
/** Transform vector by given transformation matrix.
-
+
Since this is a vector, translational components of the
matrix are disregarded.
*/
B2DVector operator*( const B2DHomMatrix& rMat, const B2DVector& rVec );
/** Test continuity between given vectors.
-
+
The two given vectors are assumed to describe control points on a
common point. Calculate if there is a continuity between them.
*/
diff --git a/basegfx/inc/basegfx/vector/b2enums.hxx b/basegfx/inc/basegfx/vector/b2enums.hxx
index f364c8e1d51d..7159d3594676 100644
--- a/basegfx/inc/basegfx/vector/b2enums.hxx
+++ b/basegfx/inc/basegfx/vector/b2enums.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,43 +33,43 @@
namespace basegfx
{
- /** Descriptor for the mathematical orientations of two 2D Vectors
+ /** Descriptor for the mathematical orientations of two 2D Vectors
*/
enum B2VectorOrientation
{
/// mathematically positive oriented
ORIENTATION_POSITIVE = 0,
-
+
/// mathematically negative oriented
ORIENTATION_NEGATIVE,
-
+
/// mathematically neutral, thus parallel
ORIENTATION_NEUTRAL
};
- /** Descriptor for the mathematical continuity of two 2D Vectors
+ /** Descriptor for the mathematical continuity of two 2D Vectors
*/
enum B2VectorContinuity
{
/// none
CONTINUITY_NONE = 0,
-
+
/// mathematically negative oriented
CONTINUITY_C1,
-
+
/// mathematically neutral, thus parallel
CONTINUITY_C2
};
- /** Descriptor for possible line joins between two line segments
+ /** Descriptor for possible line joins between two line segments
*/
enum B2DLineJoin
{
- B2DLINEJOIN_NONE, // no rounding
- B2DLINEJOIN_MIDDLE, // calc middle value between joints
- B2DLINEJOIN_BEVEL, // join edges with line
- B2DLINEJOIN_MITER, // extend till cut
- B2DLINEJOIN_ROUND // create arc
+ B2DLINEJOIN_NONE, // no rounding
+ B2DLINEJOIN_MIDDLE, // calc middle value between joints
+ B2DLINEJOIN_BEVEL, // join edges with line
+ B2DLINEJOIN_MITER, // extend till cut
+ B2DLINEJOIN_ROUND // create arc
};
} // end of namespace basegfx
diff --git a/basegfx/inc/basegfx/vector/b2isize.hxx b/basegfx/inc/basegfx/vector/b2isize.hxx
index a1738548742f..e904513dde8a 100644
--- a/basegfx/inc/basegfx/vector/b2isize.hxx
+++ b/basegfx/inc/basegfx/vector/b2isize.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/vector/b2ivector.hxx b/basegfx/inc/basegfx/vector/b2ivector.hxx
index 8327f9236d96..1b32569ec675 100644
--- a/basegfx/inc/basegfx/vector/b2ivector.hxx
+++ b/basegfx/inc/basegfx/vector/b2ivector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,64 +47,64 @@ namespace basegfx
*/
class B2IVector : public ::basegfx::B2ITuple
{
- public:
- /** Create a 2D Vector
+ public:
+ /** Create a 2D Vector
The vector is initialized to (0, 0)
*/
- B2IVector()
- : B2ITuple()
+ B2IVector()
+ : B2ITuple()
{}
- /** Create a 2D Vector
+ /** Create a 2D Vector
@param nX
This parameter is used to initialize the X-coordinate
of the 2D Vector.
-
+
@param nY
This parameter is used to initialize the Y-coordinate
of the 2D Vector.
*/
- B2IVector(sal_Int32 nX, sal_Int32 nY)
- : B2ITuple(nX, nY)
+ B2IVector(sal_Int32 nX, sal_Int32 nY)
+ : B2ITuple(nX, nY)
{}
- /** Create a copy of a 2D Vector
+ /** Create a copy of a 2D Vector
@param rVec
The 2D Vector which will be copied.
*/
- B2IVector(const B2IVector& rVec)
- : B2ITuple(rVec)
+ B2IVector(const B2IVector& rVec)
+ : B2ITuple(rVec)
{}
/** constructor with tuple to allow copy-constructing
from B2ITuple-based classes
*/
- B2IVector(const ::basegfx::B2ITuple& rTuple)
- : B2ITuple(rTuple)
+ B2IVector(const ::basegfx::B2ITuple& rTuple)
+ : B2ITuple(rTuple)
{}
- ~B2IVector()
+ ~B2IVector()
{}
/** *=operator to allow usage from B2IVector, too
*/
- B2IVector& operator*=( const B2IVector& rPnt )
- {
+ B2IVector& operator*=( const B2IVector& rPnt )
+ {
mnX *= rPnt.mnX;
- mnY *= rPnt.mnY;
- return *this;
+ mnY *= rPnt.mnY;
+ return *this;
}
/** *=operator to allow usage from B2IVector, too
*/
- B2IVector& operator*=(sal_Int32 t)
- {
- mnX *= t;
- mnY *= t;
- return *this;
+ B2IVector& operator*=(sal_Int32 t)
+ {
+ mnX *= t;
+ mnY *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
@@ -171,7 +171,7 @@ namespace basegfx
static const B2IVector& getEmptyVector();
};
-
+
// external operators
//////////////////////////////////////////////////////////////////////////
@@ -213,14 +213,14 @@ namespace basegfx
bool areParallel( const B2IVector& rVecA, const B2IVector& rVecB );
/** Transform vector by given transformation matrix.
-
+
Since this is a vector, translational components of the
matrix are disregarded.
*/
B2IVector operator*( const B2DHomMatrix& rMat, const B2IVector& rVec );
/** Test continuity between given vectors.
-
+
The two given vectors are assumed to describe control points on a
common point. Calculate if there is a continuity between them.
*/
diff --git a/basegfx/inc/basegfx/vector/b3dsize.hxx b/basegfx/inc/basegfx/vector/b3dsize.hxx
index 757314cadcf1..ab1fa4d5a4f4 100644
--- a/basegfx/inc/basegfx/vector/b3dsize.hxx
+++ b/basegfx/inc/basegfx/vector/b3dsize.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/vector/b3dvector.hxx b/basegfx/inc/basegfx/vector/b3dvector.hxx
index 17c61b0437e2..9942e19569a8 100644
--- a/basegfx/inc/basegfx/vector/b3dvector.hxx
+++ b/basegfx/inc/basegfx/vector/b3dvector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,80 +49,80 @@ namespace basegfx
class B3DVector : public ::basegfx::B3DTuple
{
public:
- /** Create a 3D Vector
+ /** Create a 3D Vector
The vector is initialized to (0.0, 0.0, 0.0)
*/
B3DVector()
- : B3DTuple()
+ : B3DTuple()
{}
- /** Create a 3D Vector
+ /** Create a 3D Vector
@param fX
This parameter is used to initialize the X-coordinate
of the 3D Vector.
-
+
@param fY
This parameter is used to initialize the Y-coordinate
of the 3D Vector.
-
+
@param fZ
This parameter is used to initialize the Z-coordinate
of the 3D Vector.
*/
B3DVector(double fX, double fY, double fZ)
- : B3DTuple(fX, fY, fZ)
+ : B3DTuple(fX, fY, fZ)
{}
- /** Create a copy of a 3D Vector
+ /** Create a copy of a 3D Vector
@param rVec
The 3D Vector which will be copied.
*/
- B3DVector(const B3DVector& rVec)
- : B3DTuple(rVec)
+ B3DVector(const B3DVector& rVec)
+ : B3DTuple(rVec)
{}
/** constructor with tuple to allow copy-constructing
from B3DTuple-based classes
*/
- B3DVector(const ::basegfx::B3DTuple& rTuple)
- : B3DTuple(rTuple)
+ B3DVector(const ::basegfx::B3DTuple& rTuple)
+ : B3DTuple(rTuple)
{}
- ~B3DVector()
+ ~B3DVector()
{}
/** *=operator to allow usage from B3DVector, too
*/
- B3DVector& operator*=( const B3DVector& rPnt )
- {
+ B3DVector& operator*=( const B3DVector& rPnt )
+ {
mfX *= rPnt.mfX;
- mfY *= rPnt.mfY;
- mfZ *= rPnt.mfZ;
- return *this;
+ mfY *= rPnt.mfY;
+ mfZ *= rPnt.mfZ;
+ return *this;
}
/** *=operator to allow usage from B3DVector, too
*/
- B3DVector& operator*=(double t)
- {
- mfX *= t;
- mfY *= t;
- mfZ *= t;
- return *this;
+ B3DVector& operator*=(double t)
+ {
+ mfX *= t;
+ mfY *= t;
+ mfZ *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
of B3DTuple calculations
*/
- B3DVector& operator=( const ::basegfx::B3DTuple& rVec )
- {
+ B3DVector& operator=( const ::basegfx::B3DTuple& rVec )
+ {
mfX = rVec.getX();
- mfY = rVec.getY();
- mfZ = rVec.getZ();
- return *this;
+ mfY = rVec.getY();
+ mfZ = rVec.getZ();
+ return *this;
}
/** Calculate the length of this 3D Vector
@@ -309,7 +309,7 @@ namespace basegfx
bool areParallel( const B3DVector& rVecA, const B3DVector& rVecB );
/** Transform vector by given transformation matrix.
-
+
Since this is a vector, translational components of the
matrix are disregarded.
*/
diff --git a/basegfx/inc/basegfx/vector/b3isize.hxx b/basegfx/inc/basegfx/vector/b3isize.hxx
index 5aa85d904751..f22a46a11a5e 100644
--- a/basegfx/inc/basegfx/vector/b3isize.hxx
+++ b/basegfx/inc/basegfx/vector/b3isize.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/basegfx/vector/b3ivector.hxx b/basegfx/inc/basegfx/vector/b3ivector.hxx
index 5cbd869cad5f..23ebc6bcca4a 100644
--- a/basegfx/inc/basegfx/vector/b3ivector.hxx
+++ b/basegfx/inc/basegfx/vector/b3ivector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,80 +47,80 @@ namespace basegfx
class B3IVector : public ::basegfx::B3ITuple
{
public:
- /** Create a 3D Vector
+ /** Create a 3D Vector
The vector is initialized to (0, 0, 0)
*/
B3IVector()
- : B3ITuple()
+ : B3ITuple()
{}
- /** Create a 3D Vector
+ /** Create a 3D Vector
@param nX
This parameter is used to initialize the X-coordinate
of the 3D Vector.
-
+
@param nY
This parameter is used to initialize the Y-coordinate
of the 3D Vector.
-
+
@param nZ
This parameter is used to initialize the Z-coordinate
of the 3D Vector.
*/
B3IVector(sal_Int32 nX, sal_Int32 nY, sal_Int32 nZ)
- : B3ITuple(nX, nY, nZ)
+ : B3ITuple(nX, nY, nZ)
{}
- /** Create a copy of a 3D Vector
+ /** Create a copy of a 3D Vector
@param rVec
The 3D Vector which will be copied.
*/
- B3IVector(const B3IVector& rVec)
- : B3ITuple(rVec)
+ B3IVector(const B3IVector& rVec)
+ : B3ITuple(rVec)
{}
/** constructor with tuple to allow copy-constructing
from B3ITuple-based classes
*/
- B3IVector(const ::basegfx::B3ITuple& rTuple)
- : B3ITuple(rTuple)
+ B3IVector(const ::basegfx::B3ITuple& rTuple)
+ : B3ITuple(rTuple)
{}
- ~B3IVector()
+ ~B3IVector()
{}
/** *=operator to allow usage from B3IVector, too
*/
- B3IVector& operator*=( const B3IVector& rPnt )
- {
+ B3IVector& operator*=( const B3IVector& rPnt )
+ {
mnX *= rPnt.mnX;
- mnY *= rPnt.mnY;
- mnZ *= rPnt.mnZ;
- return *this;
+ mnY *= rPnt.mnY;
+ mnZ *= rPnt.mnZ;
+ return *this;
}
/** *=operator to allow usage from B3IVector, too
*/
- B3IVector& operator*=(sal_Int32 t)
- {
- mnX *= t;
- mnY *= t;
- mnZ *= t;
- return *this;
+ B3IVector& operator*=(sal_Int32 t)
+ {
+ mnX *= t;
+ mnY *= t;
+ mnZ *= t;
+ return *this;
}
/** assignment operator to allow assigning the results
of B3ITuple calculations
*/
- B3IVector& operator=( const ::basegfx::B3ITuple& rVec )
- {
+ B3IVector& operator=( const ::basegfx::B3ITuple& rVec )
+ {
mnX = rVec.getX();
- mnY = rVec.getY();
- mnZ = rVec.getZ();
- return *this;
+ mnY = rVec.getY();
+ mnZ = rVec.getZ();
+ return *this;
}
/** Calculate the length of this 3D Vector
@@ -230,7 +230,7 @@ namespace basegfx
//////////////////////////////////////////////////////////////////////////
/** Transform vector by given transformation matrix.
-
+
Since this is a vector, translational components of the
matrix are disregarded.
*/
diff --git a/basegfx/inc/pch/precompiled_basegfx.cxx b/basegfx/inc/pch/precompiled_basegfx.cxx
index b71fb5b8c6f6..849d5eefa9b5 100644
--- a/basegfx/inc/pch/precompiled_basegfx.cxx
+++ b/basegfx/inc/pch/precompiled_basegfx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/inc/pch/precompiled_basegfx.hxx b/basegfx/inc/pch/precompiled_basegfx.hxx
index f1c1f59f06f5..72f6f137b85e 100644
--- a/basegfx/inc/pch/precompiled_basegfx.hxx
+++ b/basegfx/inc/pch/precompiled_basegfx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/qa/mkpolygons.pl b/basegfx/qa/mkpolygons.pl
index b465a4f845ab..8d00fa936fa3 100644
--- a/basegfx/qa/mkpolygons.pl
+++ b/basegfx/qa/mkpolygons.pl
@@ -1,6 +1,6 @@
:
eval 'exec perl -wS $0 ${1+"$@"}'
- if 0;
+ if 0;
#
# 2009 Copyright Novell, Inc. & Sun Microsystems, Inc.
@@ -10,8 +10,8 @@ eval 'exec perl -wS $0 ${1+"$@"}'
# only, as published by the Free Software Foundation.
#
-use IO::File;
-use Cwd;
+use IO::File;
+use Cwd;
use File::Spec;
use File::Spec::Functions;
use File::Temp;
@@ -25,72 +25,72 @@ $TempDir = "";
###############################################################################
-# Open a file with the given name.
-# First it is checked if the temporary directory, in which all files for
-# the document are gathered, is already present and create it if it is not.
-# Then create the path to the file inside the temporary directory.
-# Finally open the file and return a file handle to it.
+# Open a file with the given name.
+# First it is checked if the temporary directory, in which all files for
+# the document are gathered, is already present and create it if it is not.
+# Then create the path to the file inside the temporary directory.
+# Finally open the file and return a file handle to it.
#
-sub open_file
+sub open_file
{
- my $filename = pop @_;
-
- # Create base directory of temporary directory tree if not alreay
- # present.
+ my $filename = pop @_;
+
+ # Create base directory of temporary directory tree if not alreay
+ # present.
if ($TempDir eq "")
{
$TempDir = File::Temp::tempdir (CLEANUP => 1);
}
-
- # Create the path to the file.
+
+ # Create the path to the file.
my $fullname = File::Spec->catfile ($TempDir, $filename);
my ($volume,$directories,$file) = File::Spec->splitpath ($fullname);
mkpath (File::Spec->catpath ($volume,$directories,""));
-
- # Open the file and return a file handle to it.
+
+ # Open the file and return a file handle to it.
return new IO::File ($fullname, "w");
}
###############################################################################
-# Zip the files in the directory tree into the given file.
+# Zip the files in the directory tree into the given file.
#
-sub zip_dirtree
+sub zip_dirtree
{
- my $filename = pop @_;
-
- my $cwd = getcwd;
- my $zip_name = $filename;
-
- # We are about to change the directory.
- # Therefore create an absolute pathname for the zip archive.
-
- # First transfer the drive from $cwd to $zip_name. This is a
- # workaround for a bug in file_name_is_absolute which thinks
- # the the path \bla is an absolute path under DOS.
+ my $filename = pop @_;
+
+ my $cwd = getcwd;
+ my $zip_name = $filename;
+
+ # We are about to change the directory.
+ # Therefore create an absolute pathname for the zip archive.
+
+ # First transfer the drive from $cwd to $zip_name. This is a
+ # workaround for a bug in file_name_is_absolute which thinks
+ # the the path \bla is an absolute path under DOS.
my ($volume,$directories,$file) = File::Spec->splitpath ($zip_name);
my ($volume_cwd,$directories_cwd,$file_cwd) = File::Spec->splitpath ($cwd);
$volume = $volume_cwd if ($volume eq "");
$zip_name = File::Spec->catpath ($volume,$directories,$file);
-
- # Add the current working directory to a relative path.
+
+ # Add the current working directory to a relative path.
if ( ! file_name_is_absolute ($zip_name))
{
$zip_name = File::Spec->catfile ($cwd, $zip_name);
-
- # Try everything to clean up the name.
+
+ # Try everything to clean up the name.
$zip_name = File::Spec->rel2abs ($filename);
$zip_name = File::Spec->canonpath ($zip_name);
-
- # Remove .. directories from the middle of the path.
+
+ # Remove .. directories from the middle of the path.
while ($zip_name =~ /\/[^\/][^\.\/][^\/]*\/\.\.\//)
{
$zip_name = $` . "/" . $';
}
}
- # Just in case the zip program gets confused by an existing file with the
- # same name as the one to be written that file is removed first.
+ # Just in case the zip program gets confused by an existing file with the
+ # same name as the one to be written that file is removed first.
if ( -e $filename)
{
if (unlink ($filename) == 0)
@@ -100,9 +100,9 @@ sub zip_dirtree
return;
}
}
-
- # Finally create the zip file. First change into the temporary directory
- # so that the resulting zip file contains only paths relative to it.
+
+ # Finally create the zip file. First change into the temporary directory
+ # so that the resulting zip file contains only paths relative to it.
print "zipping [$ZipCmd $ZipFlags $zip_name *]\n";
chdir ($TempDir);
system ("$ZipCmd $ZipFlags $zip_name *");
@@ -249,9 +249,9 @@ sub writeManifest
###############################################################################
-# Print usage information.
+# Print usage information.
#
-sub usage ()
+sub usage ()
{
print <<END_OF_USAGE;
usage: $0 <option>* [<SvgD-values>]
@@ -264,9 +264,9 @@ END_OF_USAGE
}
###############################################################################
-# Process the command line.
+# Process the command line.
#
-sub process_command_line
+sub process_command_line
{
foreach (@ARGV)
{
@@ -276,9 +276,9 @@ sub process_command_line
exit 0;
}
}
-
+
$global_output_name = "polygons.odp";
- my $j = 0, $noMoreOptions = 0;
+ my $j = 0, $noMoreOptions = 0;
for (my $i=0; $i<$#ARGV; $i++)
{
if ( !$noMoreOptions and $ARGV[$i] eq "-o")
@@ -307,12 +307,12 @@ sub process_command_line
}
###############################################################################
-# Main
+# Main
###############################################################################
$ZipCmd = $ENV{LOG_FILE_ZIP_CMD};
$ZipFlags = $ENV{LOG_FILE_ZIP_FLAGS};
-# Provide default values for the zip command and it's flags.
+# Provide default values for the zip command and it's flags.
if ( ! defined $ZipCmd)
{
$ZipCmd = "zip" unless defined $ZipCmd;
diff --git a/basegfx/source/color/bcolor.cxx b/basegfx/source/color/bcolor.cxx
index b02ccac901ed..37f7facd3fe3 100644
--- a/basegfx/source/color/bcolor.cxx
+++ b/basegfx/source/color/bcolor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/color/bcolormodifier.cxx b/basegfx/source/color/bcolormodifier.cxx
index d58672b72681..45b6c9088db7 100644
--- a/basegfx/source/color/bcolormodifier.cxx
+++ b/basegfx/source/color/bcolormodifier.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/color/bcolortools.cxx b/basegfx/source/color/bcolortools.cxx
index d1fa6aa7ad0f..07e5af4187d8 100644
--- a/basegfx/source/color/bcolortools.cxx
+++ b/basegfx/source/color/bcolortools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ namespace basegfx { namespace tools
double h=0, s=0, l=0;
l = (maxVal + minVal) / 2.0;
-
+
if( ::basegfx::fTools::equalZero(d) )
{
s = h = 0; // hue undefined (achromatic case)
@@ -88,7 +88,7 @@ namespace basegfx { namespace tools
return nValue2;
else if( nHue < 240.0 )
return nValue1 + (nValue2 - nValue1)*(240.0 - nHue)/60.0;
- else
+ else
return nValue1;
}
@@ -104,16 +104,16 @@ namespace basegfx { namespace tools
return BColor(
hsl2rgbHelper(nVal2,
- nVal1,
+ nVal1,
h + 120.0),
- hsl2rgbHelper(nVal2,
+ hsl2rgbHelper(nVal2,
nVal1,
h),
hsl2rgbHelper(nVal2,
nVal1,
h - 120.0) );
}
-
+
BColor rgb2hsv(const BColor& rRGBColor)
{
const double r=rRGBColor.getRed(), g=rRGBColor.getGreen(), b=rRGBColor.getBlue();
diff --git a/basegfx/source/curve/b2dbeziertools.cxx b/basegfx/source/curve/b2dbeziertools.cxx
index 2865d18aaa17..e8f2e71fb4b1 100644
--- a/basegfx/source/curve/b2dbeziertools.cxx
+++ b/basegfx/source/curve/b2dbeziertools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
namespace basegfx
{
B2DCubicBezierHelper::B2DCubicBezierHelper(const B2DCubicBezier& rBase, sal_uInt32 nDivisions)
- : maLengthArray(),
+ : maLengthArray(),
mnEdgeCount(0)
{
const bool bIsBezier(rBase.isBezier());
@@ -115,7 +115,7 @@ namespace basegfx
// not a bezier, linear edge
return fDistance / fLength;
}
-
+
// it is a bezier
::std::vector< double >::const_iterator aIter = ::std::lower_bound(maLengthArray.begin(), maLengthArray.end(), fDistance);
const sal_uInt32 nIndex(aIter - maLengthArray.begin());
diff --git a/basegfx/source/curve/b2dcubicbezier.cxx b/basegfx/source/curve/b2dcubicbezier.cxx
index 3e7fdedeeee8..7d55f6fd10f6 100644
--- a/basegfx/source/curve/b2dcubicbezier.cxx
+++ b/basegfx/source/curve/b2dcubicbezier.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,8 +35,8 @@
#include <limits>
-// #i37443#
-#define FACTOR_FOR_UNSHARPEN (1.6)
+// #i37443#
+#define FACTOR_FOR_UNSHARPEN (1.6)
#ifdef DBG_UTIL
static double fMultFactUnsharpen = FACTOR_FOR_UNSHARPEN;
#endif
@@ -48,21 +48,21 @@ namespace basegfx
namespace
{
void ImpSubDivAngle(
- const B2DPoint& rfPA, // start point
- const B2DPoint& rfEA, // edge on A
- const B2DPoint& rfEB, // edge on B
- const B2DPoint& rfPB, // end point
- B2DPolygon& rTarget, // target polygon
- double fAngleBound, // angle bound in [0.0 .. 2PI]
- bool bAllowUnsharpen, // #i37443# allow the criteria to get unsharp in recursions
- sal_uInt16 nMaxRecursionDepth) // endless loop protection
+ const B2DPoint& rfPA, // start point
+ const B2DPoint& rfEA, // edge on A
+ const B2DPoint& rfEB, // edge on B
+ const B2DPoint& rfPB, // end point
+ B2DPolygon& rTarget, // target polygon
+ double fAngleBound, // angle bound in [0.0 .. 2PI]
+ bool bAllowUnsharpen, // #i37443# allow the criteria to get unsharp in recursions
+ sal_uInt16 nMaxRecursionDepth) // endless loop protection
{
if(nMaxRecursionDepth)
{
// do angle test
B2DVector aLeft(rfEA - rfPA);
B2DVector aRight(rfEB - rfPB);
-
+
// #i72104#
if(aLeft.equalZero())
{
@@ -118,13 +118,13 @@ namespace basegfx
}
void ImpSubDivAngleStart(
- const B2DPoint& rfPA, // start point
- const B2DPoint& rfEA, // edge on A
- const B2DPoint& rfEB, // edge on B
- const B2DPoint& rfPB, // end point
- B2DPolygon& rTarget, // target polygon
- const double& rfAngleBound, // angle bound in [0.0 .. 2PI]
- bool bAllowUnsharpen) // #i37443# allow the criteria to get unsharp in recursions
+ const B2DPoint& rfPA, // start point
+ const B2DPoint& rfEA, // edge on A
+ const B2DPoint& rfEB, // edge on B
+ const B2DPoint& rfPB, // end point
+ B2DPolygon& rTarget, // target polygon
+ const double& rfAngleBound, // angle bound in [0.0 .. 2PI]
+ bool bAllowUnsharpen) // #i37443# allow the criteria to get unsharp in recursions
{
sal_uInt16 nMaxRecursionDepth(8);
const B2DVector aLeft(rfEA - rfPA);
@@ -154,7 +154,7 @@ namespace basegfx
if(!bLeftEqualZero)
{
double fFactor;
-
+
if(fabs(aBase.getX()) > fabs(aBase.getY()))
{
fFactor = aLeft.getX() / aBase.getX();
@@ -173,7 +173,7 @@ namespace basegfx
if(!bRightEqualZero)
{
double fFactor;
-
+
if(fabs(aBase.getX()) > fabs(aBase.getY()))
{
fFactor = aRight.getX() / -aBase.getX();
@@ -263,14 +263,14 @@ namespace basegfx
}
void ImpSubDivDistance(
- const B2DPoint& rfPA, // start point
- const B2DPoint& rfEA, // edge on A
- const B2DPoint& rfEB, // edge on B
- const B2DPoint& rfPB, // end point
- B2DPolygon& rTarget, // target polygon
- double fDistanceBound2, // quadratic distance criteria
- double fLastDistanceError2, // the last quadratic distance error
- sal_uInt16 nMaxRecursionDepth) // endless loop protection
+ const B2DPoint& rfPA, // start point
+ const B2DPoint& rfEA, // edge on A
+ const B2DPoint& rfEB, // edge on B
+ const B2DPoint& rfPB, // end point
+ B2DPolygon& rTarget, // target polygon
+ double fDistanceBound2, // quadratic distance criteria
+ double fLastDistanceError2, // the last quadratic distance error
+ sal_uInt16 nMaxRecursionDepth) // endless loop protection
{
if(nMaxRecursionDepth)
{
@@ -339,19 +339,19 @@ namespace basegfx
namespace basegfx
{
B2DCubicBezier::B2DCubicBezier(const B2DCubicBezier& rBezier)
- : maStartPoint(rBezier.maStartPoint),
+ : maStartPoint(rBezier.maStartPoint),
maEndPoint(rBezier.maEndPoint),
maControlPointA(rBezier.maControlPointA),
maControlPointB(rBezier.maControlPointB)
{
}
-
+
B2DCubicBezier::B2DCubicBezier()
{
}
-
+
B2DCubicBezier::B2DCubicBezier(const B2DPoint& rStart, const B2DPoint& rEnd)
- : maStartPoint(rStart),
+ : maStartPoint(rStart),
maEndPoint(rEnd),
maControlPointA(rStart),
maControlPointB(rEnd)
@@ -359,7 +359,7 @@ namespace basegfx
}
B2DCubicBezier::B2DCubicBezier(const B2DPoint& rStart, const B2DPoint& rControlPointA, const B2DPoint& rControlPointB, const B2DPoint& rEnd)
- : maStartPoint(rStart),
+ : maStartPoint(rStart),
maEndPoint(rEnd),
maControlPointA(rControlPointA),
maControlPointB(rControlPointB)
@@ -377,7 +377,7 @@ namespace basegfx
maEndPoint = rBezier.maEndPoint;
maControlPointA = rBezier.maControlPointA;
maControlPointB = rBezier.maControlPointB;
-
+
return *this;
}
@@ -428,8 +428,8 @@ namespace basegfx
if(maControlPointA != maStartPoint || maControlPointB != maEndPoint)
{
const B2DVector aEdge(maEndPoint - maStartPoint);
-
- // controls parallel to edge can be trivial. No edge -> not parallel -> control can
+
+ // controls parallel to edge can be trivial. No edge -> not parallel -> control can
// still not be trivial (e.g. ballon loop)
if(!aEdge.equalZero())
{
@@ -448,8 +448,8 @@ namespace basegfx
// vector would need to be used too, but to be trivial it is assumed to
// be of roughly equal length to the edge, so edge length can be used
// for both. Only needed when one of both is not trivial per se.
- const double fInverseEdgeLength(bAIsTrivial && bBIsTrivial
- ? 1.0
+ const double fInverseEdgeLength(bAIsTrivial && bBIsTrivial
+ ? 1.0
: 1.0 / aEdge.getLength());
// if A is not zero, check if it could be
@@ -462,8 +462,8 @@ namespace basegfx
if(fTools::equalZero(fCross))
{
// get scale to edge. Use bigger distance for numeric quality
- const double fScale(fabs(aEdge.getX()) > fabs(aEdge.getY())
- ? aVecA.getX() / aEdge.getX()
+ const double fScale(fabs(aEdge.getX()) > fabs(aEdge.getY())
+ ? aVecA.getX() / aEdge.getX()
: aVecA.getY() / aEdge.getY());
// relative end point of vector in edge range?
@@ -480,12 +480,12 @@ namespace basegfx
{
// parallel to edge? Check aVecB, aEdge
const double fCross(aVecB.cross(aEdge) * fInverseEdgeLength);
-
+
if(fTools::equalZero(fCross))
{
// get scale to edge. Use bigger distance for numeric quality
- const double fScale(fabs(aEdge.getX()) > fabs(aEdge.getY())
- ? aVecB.getX() / aEdge.getX()
+ const double fScale(fabs(aEdge.getX()) > fabs(aEdge.getY())
+ ? aVecB.getX() / aEdge.getX()
: aVecB.getY() / aEdge.getY());
// end point of vector in edge range? Caution: controlB is directed AGAINST edge
@@ -659,7 +659,7 @@ namespace basegfx
{
if(isBezier())
{
- ImpSubDivDistance(maStartPoint, maControlPointA, maControlPointB, maEndPoint, rTarget,
+ ImpSubDivDistance(maStartPoint, maControlPointA, maControlPointB, maEndPoint, rTarget,
fDistanceBound * fDistanceBound, ::std::numeric_limits<double>::max(), 30);
}
else
@@ -679,7 +679,7 @@ namespace basegfx
const B2DPoint aS1R(interpolate(maControlPointB, maEndPoint, t));
const B2DPoint aS2L(interpolate(aS1L, aS1C, t));
const B2DPoint aS2R(interpolate(aS1C, aS1R, t));
-
+
return interpolate(aS2L, aS2R, t);
}
else
@@ -851,7 +851,7 @@ namespace basegfx
B2DCubicBezier B2DCubicBezier::snippet(double fStart, double fEnd) const
{
B2DCubicBezier aRetval;
-
+
if(fTools::more(fStart, 1.0))
{
fStart = 1.0;
@@ -1077,7 +1077,7 @@ namespace basegfx
// derivative is polynomial of order 2
// check if the polynomial has non-imaginary roots
const double fD = fB*fB - fA*fC;
- if( fD >= 0.0 ) // TODO: is this test needed? geometrically not IMHO
+ if( fD >= 0.0 ) // TODO: is this test needed? geometrically not IMHO
{
// calculate the first root
const double fS = sqrt(fD);
diff --git a/basegfx/source/curve/b2dquadraticbezier.cxx b/basegfx/source/curve/b2dquadraticbezier.cxx
index 488e0ecd459e..46ed7d84364d 100644
--- a/basegfx/source/curve/b2dquadraticbezier.cxx
+++ b/basegfx/source/curve/b2dquadraticbezier.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,24 +36,24 @@
namespace basegfx
{
B2DQuadraticBezier::B2DQuadraticBezier(const B2DQuadraticBezier& rBezier)
- : maStartPoint(rBezier.maStartPoint),
+ : maStartPoint(rBezier.maStartPoint),
maEndPoint(rBezier.maEndPoint),
maControlPoint(rBezier.maControlPoint)
{
}
-
+
B2DQuadraticBezier::B2DQuadraticBezier()
{
}
-
+
B2DQuadraticBezier::B2DQuadraticBezier(const ::basegfx::B2DPoint& rStart, const ::basegfx::B2DPoint& rEnd)
- : maStartPoint(rStart),
+ : maStartPoint(rStart),
maEndPoint(rEnd)
{
}
B2DQuadraticBezier::B2DQuadraticBezier(const ::basegfx::B2DPoint& rStart, const ::basegfx::B2DPoint& rControl, const ::basegfx::B2DPoint& rEnd)
- : maStartPoint(rStart),
+ : maStartPoint(rStart),
maEndPoint(rEnd),
maControlPoint(rControl)
{
@@ -69,7 +69,7 @@ namespace basegfx
maStartPoint = rBezier.maStartPoint;
maEndPoint = rBezier.maEndPoint;
maControlPoint = rBezier.maControlPoint;
-
+
return *this;
}
diff --git a/basegfx/source/inc/PolygonPoint.hxx b/basegfx/source/inc/PolygonPoint.hxx
index b2c7aa8bf855..f14cc8633031 100644
--- a/basegfx/source/inc/PolygonPoint.hxx
+++ b/basegfx/source/inc/PolygonPoint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,16 +35,16 @@
template < class Point > class SimplePointEntry
{
- Point maPoint;
+ Point maPoint;
public:
SimplePointEntry()
- : maPoint(Point::getEmptyPoint())
+ : maPoint(Point::getEmptyPoint())
{
}
SimplePointEntry(const Point& rInitPoint)
- : maPoint(rInitPoint)
+ : maPoint(rInitPoint)
{
}
@@ -52,7 +52,7 @@ public:
{
return maPoint;
}
-
+
void setPoint(const Point& rValue)
{
maPoint = rValue;
@@ -68,18 +68,18 @@ public:
template < class Vector > class SimpleBezierEntry
{
- Vector maBackward;
- Vector maForward;
+ Vector maBackward;
+ Vector maForward;
public:
SimpleBezierEntry()
- : maBackward(Vector::getEmptyVector()),
+ : maBackward(Vector::getEmptyVector()),
maForward(Vector::getEmptyVector())
{
}
SimpleBezierEntry(const Vector& rInitBackward, const Vector& rInitForward)
- : maBackward(rInitBackward),
+ : maBackward(rInitBackward),
maForward(rInitForward)
{
}
@@ -88,7 +88,7 @@ public:
{
return maBackward;
}
-
+
void setBackwardVector(const Vector& rValue)
{
maBackward = rValue;
@@ -132,11 +132,11 @@ template < class Point, class Vector > class PolygonPointList
typedef ::std::vector< LocalSimplePointEntry > SimplePointVector;
typedef ::std::vector< LocalSimpleBezierEntry > SimpleBezierVector;
- sal_uInt32 mnBezierCount;
- SimplePointVector maPoints;
- SimpleBezierVector* mpVectors;
+ sal_uInt32 mnBezierCount;
+ SimplePointVector maPoints;
+ SimpleBezierVector* mpVectors;
- unsigned mbIsClosed : 1;
+ unsigned mbIsClosed : 1;
void implTryToReduceToPointVector()
{
@@ -169,7 +169,7 @@ public:
}
PolygonPointList()
- : mnBezierCount(0L),
+ : mnBezierCount(0L),
mpVectors(0L),
mbIsClosed(false)
{
@@ -177,7 +177,7 @@ public:
}
PolygonPointList(const PolygonPointList& rSource)
- : mnBezierCount(0L),
+ : mnBezierCount(0L),
maPoints(rSource.maPoints),
mpVectors(0L),
mbIsClosed(rSource.mbIsClosed)
@@ -191,7 +191,7 @@ public:
}
PolygonPointList(const PolygonPointList& rSource, sal_uInt32 nIndex, sal_uInt32 nCount)
- : mnBezierCount(0L),
+ : mnBezierCount(0L),
maPoints(nCount),
mpVectors(0L),
mbIsClosed(rSource.mbIsClosed)
@@ -310,7 +310,7 @@ public:
else
{
bool bEmptyVector(rValue == Vector::getEmptyVector());
-
+
if(bEmptyVector)
return;
@@ -319,7 +319,7 @@ public:
mnBezierCount++;
}
}
-
+
const Vector& getForwardVector(sal_uInt32 nIndex) const
{
if(mpVectors)
@@ -348,7 +348,7 @@ public:
else
{
bool bEmptyVector(rValue == Vector::getEmptyVector());
-
+
if(bEmptyVector)
return;
@@ -463,7 +463,7 @@ public:
if(mnBezierCount)
{
SimpleBezierVector::iterator aTestIter(aStart);
-
+
for( ; mnBezierCount && aTestIter != aEnd; ++aTestIter)
{
if(aTestIter->isBezierNeeded())
@@ -499,7 +499,7 @@ public:
{
SimplePointVector::iterator aStart(maPoints.begin());
SimplePointVector::iterator aEnd(maPoints.end());
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
LocalSimplePointEntry aTemp = *aStart;
@@ -513,7 +513,7 @@ public:
{
SimpleBezierVector::iterator aStart(mpVectors->begin());
SimpleBezierVector::iterator aEnd(mpVectors->end());
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
LocalSimpleBezierEntry aTemp = *aStart;
diff --git a/basegfx/source/inc/hommatrixtemplate.hxx b/basegfx/source/inc/hommatrixtemplate.hxx
index d3d1a837225d..5389fd76cde2 100644
--- a/basegfx/source/inc/hommatrixtemplate.hxx
+++ b/basegfx/source/inc/hommatrixtemplate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace basegfx
{
enum { RowSize = _RowSize };
- double mfValue[RowSize];
+ double mfValue[RowSize];
public:
ImplMatLine()
@@ -87,8 +87,8 @@ namespace basegfx
{
enum { RowSize = _RowSize };
- ImplMatLine< RowSize > maLine[RowSize - 1];
- ImplMatLine< RowSize >* mpLine;
+ ImplMatLine< RowSize > maLine[RowSize - 1];
+ ImplMatLine< RowSize >* mpLine;
public:
// Is last line used?
@@ -116,7 +116,7 @@ namespace basegfx
}
ImplHomMatrixTemplate()
- : mpLine(0L)
+ : mpLine(0L)
{
// complete initialization with identity matrix, all lines
// were initialized with a trailing 1 followed by 0's.
@@ -128,7 +128,7 @@ namespace basegfx
}
ImplHomMatrixTemplate(const ImplHomMatrixTemplate& rToBeCopied)
- : mpLine(0L)
+ : mpLine(0L)
{
// complete initialization using copy
for(sal_uInt16 a(0); a < (RowSize - 1); a++)
@@ -158,7 +158,7 @@ namespace basegfx
{
return maLine[nRow].get(nColumn);
}
-
+
if(mpLine)
{
return mpLine->get(nColumn);
@@ -220,12 +220,12 @@ namespace basegfx
double fBig, fSum, fDum;
double fStorage[RowSize];
sal_uInt16 a, b, c;
-
+
// #i30874# Initialize nAMax (compiler warns)
sal_uInt16 nAMax = 0;
-
+
nParity = 1;
-
+
// Calc the max of each line. If a line is empty,
// stop immediately since matrix is not invertible then.
for(a = 0; a < RowSize; a++)
@@ -256,7 +256,7 @@ namespace basegfx
for(a = 0; a < b; a++)
{
fSum = get(a, b);
-
+
for(c = 0; c < a; c++)
{
fSum -= get(a, c) * get(c, b);
@@ -266,11 +266,11 @@ namespace basegfx
}
fBig = 0.0;
-
+
for(a = b; a < RowSize; a++)
{
fSum = get(a, b);
-
+
for(c = 0; c < b; c++)
{
fSum -= get(a, c) * get(c, b);
@@ -278,7 +278,7 @@ namespace basegfx
set(a, b, fSum);
fDum = fStorage[a] * fabs(fSum);
-
+
if(::basegfx::fTools::moreOrEqual(fDum, fBig))
{
fBig = fDum;
@@ -300,15 +300,15 @@ namespace basegfx
}
nIndex[b] = nAMax;
-
+
// here the failure of precision occurs
const double fValBB(fabs(get(b, b)));
-
+
if(::basegfx::fTools::equalZero(fValBB))
{
return false;
}
-
+
if(b != (RowSize - 1))
{
fDum = 1.0 / get(b, b);
@@ -328,7 +328,7 @@ namespace basegfx
sal_uInt16 b, ip;
sal_Int16 a, a2 = -1;
double fSum;
-
+
for(a = 0; a < RowSize; a++)
{
ip = nIndex[a];
@@ -396,7 +396,7 @@ namespace basegfx
ImplHomMatrixTemplate aWork(*this);
sal_uInt16 nIndex[RowSize];
sal_Int16 nParity;
-
+
return aWork.ludcmp(nIndex, nParity);
}
@@ -480,7 +480,7 @@ namespace basegfx
fRetval = (double)nParity;
// last line needs no multiply if not existing; default value would be 1.
- const sal_uInt16 nMaxLine(
+ const sal_uInt16 nMaxLine(
sal::static_int_cast<sal_uInt16>(aWork.mpLine ? RowSize : (RowSize - 1)) );
for(sal_uInt16 a(0); a < nMaxLine; a++)
@@ -574,10 +574,10 @@ namespace basegfx
for(sal_uInt16 b(0); b < RowSize; ++b)
{
fValue = 0.0;
-
+
for(sal_uInt16 c(0); c < RowSize; ++c)
fValue += aCopy.get(c, b) * rMat.get(a, c);
-
+
set(a, b, fValue);
}
}
diff --git a/basegfx/source/inc/polygontemplate.hxx b/basegfx/source/inc/polygontemplate.hxx
index a74f004e5ec7..933c3c108def 100644
--- a/basegfx/source/inc/polygontemplate.hxx
+++ b/basegfx/source/inc/polygontemplate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,16 +35,16 @@
template < class Point > class ImplSimplePointEntry
{
- Point maPoint;
+ Point maPoint;
public:
ImplSimplePointEntry()
- : maPoint(Point::getEmptyPoint())
+ : maPoint(Point::getEmptyPoint())
{
}
ImplSimplePointEntry(const Point& rInitPoint)
- : maPoint(rInitPoint)
+ : maPoint(rInitPoint)
{
}
@@ -52,7 +52,7 @@ public:
{
return maPoint;
}
-
+
void setPoint(const Point& rValue)
{
maPoint = rValue;
@@ -68,18 +68,18 @@ public:
template < class Vector > class ImplSimpleBezierEntry
{
- Vector maBackward;
- Vector maForward;
+ Vector maBackward;
+ Vector maForward;
public:
ImplSimpleBezierEntry()
- : maBackward(Vector::getEmptyVector()),
+ : maBackward(Vector::getEmptyVector()),
maForward(Vector::getEmptyVector())
{
}
ImplSimpleBezierEntry(const Vector& rInitBackward, const Vector& rInitForward)
- : maBackward(rInitBackward),
+ : maBackward(rInitBackward),
maForward(rInitForward)
{
}
@@ -88,7 +88,7 @@ public:
{
return maBackward;
}
-
+
void setBackwardVector(const Vector& rValue)
{
maBackward = rValue;
@@ -132,11 +132,11 @@ template < class Point, class Vector > class ImplPolygonTemplate
typedef ::std::vector< LocalImplSimplePointEntry > SimplePointVector;
typedef ::std::vector< LocalImplSimpleBezierEntry > SimpleBezierVector;
- sal_uInt32 mnBezierCount;
- SimplePointVector maPoints;
- SimpleBezierVector* mpVectors;
+ sal_uInt32 mnBezierCount;
+ SimplePointVector maPoints;
+ SimpleBezierVector* mpVectors;
- unsigned mbIsClosed : 1;
+ unsigned mbIsClosed : 1;
void implTryToReduceToPointVector()
{
@@ -169,7 +169,7 @@ public:
}
ImplPolygonTemplate()
- : mnBezierCount(0L),
+ : mnBezierCount(0L),
mpVectors(0L),
mbIsClosed(false)
{
@@ -177,7 +177,7 @@ public:
}
ImplPolygonTemplate(const ImplPolygonTemplate& rSource)
- : mnBezierCount(0L),
+ : mnBezierCount(0L),
maPoints(rSource.maPoints),
mpVectors(0L),
mbIsClosed(rSource.mbIsClosed)
@@ -191,7 +191,7 @@ public:
}
ImplPolygonTemplate(const ImplPolygonTemplate& rSource, sal_uInt32 nIndex, sal_uInt32 nCount)
- : mnBezierCount(0L),
+ : mnBezierCount(0L),
maPoints(nCount),
mpVectors(0L),
mbIsClosed(rSource.mbIsClosed)
@@ -310,7 +310,7 @@ public:
else
{
bool bEmptyVector(rValue.equalZero());
-
+
if(bEmptyVector)
return;
@@ -319,7 +319,7 @@ public:
mnBezierCount++;
}
}
-
+
const Vector& getForwardVector(sal_uInt32 nIndex) const
{
if(mpVectors)
@@ -348,7 +348,7 @@ public:
else
{
bool bEmptyVector(rValue.equalZero());
-
+
if(bEmptyVector)
return;
@@ -463,7 +463,7 @@ public:
if(mnBezierCount)
{
SimpleBezierVector::iterator aTestIter(aStart);
-
+
for( ; mnBezierCount && aTestIter != aEnd; ++aTestIter)
{
if(aTestIter->isBezierNeeded())
@@ -499,7 +499,7 @@ public:
{
SimplePointVector::iterator aStart(maPoints.begin());
SimplePointVector::iterator aEnd(maPoints.end());
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
LocalImplSimplePointEntry aTemp = *aStart;
@@ -513,7 +513,7 @@ public:
{
SimpleBezierVector::iterator aStart(mpVectors->begin());
SimpleBezierVector::iterator aEnd(mpVectors->end());
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
LocalImplSimpleBezierEntry aTemp = *aStart;
diff --git a/basegfx/source/matrix/b2dhommatrix.cxx b/basegfx/source/matrix/b2dhommatrix.cxx
index 3ce43c739442..ca21f627c571 100644
--- a/basegfx/source/matrix/b2dhommatrix.cxx
+++ b/basegfx/source/matrix/b2dhommatrix.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,8 +43,8 @@ namespace basegfx
class Impl2DHomMatrix : public ::basegfx::internal::ImplHomMatrixTemplate< 3 >
{
};
-
- namespace { struct IdentityMatrix : public rtl::Static< B2DHomMatrix::ImplType,
+
+ namespace { struct IdentityMatrix : public rtl::Static< B2DHomMatrix::ImplType,
IdentityMatrix > {}; }
B2DHomMatrix::B2DHomMatrix() :
@@ -62,7 +62,7 @@ namespace basegfx
}
B2DHomMatrix::B2DHomMatrix(double f_0x0, double f_0x1, double f_0x2, double f_1x0, double f_1x1, double f_1x2)
- : mpImpl( IdentityMatrix::get() ) // use common identity matrix, will be made unique with 1st set-call
+ : mpImpl( IdentityMatrix::get() ) // use common identity matrix, will be made unique with 1st set-call
{
mpImpl->set(0, 0, f_0x0);
mpImpl->set(0, 1, f_0x1);
@@ -232,7 +232,7 @@ namespace basegfx
tools::createSinCosOrthogonal(fSin, fCos, fRadiant);
Impl2DHomMatrix aRotMat;
-
+
aRotMat.set(0, 0, fCos);
aRotMat.set(1, 1, fCos);
aRotMat.set(1, 0, fSin);
@@ -247,7 +247,7 @@ namespace basegfx
if(!fTools::equalZero(fX) || !fTools::equalZero(fY))
{
Impl2DHomMatrix aTransMat;
-
+
aTransMat.set(0, 2, fX);
aTransMat.set(1, 2, fY);
@@ -262,7 +262,7 @@ namespace basegfx
if(!fTools::equal(fOne, fX) || !fTools::equal(fOne, fY))
{
Impl2DHomMatrix aScaleMat;
-
+
aScaleMat.set(0, 0, fX);
aScaleMat.set(1, 1, fY);
@@ -276,7 +276,7 @@ namespace basegfx
if(!fTools::equalZero(fSx))
{
Impl2DHomMatrix aShearXMat;
-
+
aShearXMat.set(0, 1, fSx);
mpImpl->doMulMatrix(aShearXMat);
@@ -289,7 +289,7 @@ namespace basegfx
if(!fTools::equalZero(fSy))
{
Impl2DHomMatrix aShearYMat;
-
+
aShearYMat.set(1, 0, fSy);
mpImpl->doMulMatrix(aShearYMat);
@@ -357,7 +357,7 @@ namespace basegfx
// and correct rotation, it's the Y-Axis rotation minus 90 degrees
rRotate = atan2(aUnitVecY.getY(), aUnitVecY.getX()) - M_PI_2;
}
-
+
// one or both unit vectors do not extist, determinant is zero, no decomposition possible.
// Eventually used rotations or shears are lost
return false;
@@ -412,7 +412,7 @@ namespace basegfx
if(!fTools::equalZero(rRotate))
{
- // To be able to correct the shear for aUnitVecY, rotation needs to be
+ // To be able to correct the shear for aUnitVecY, rotation needs to be
// removed first. Correction of aUnitVecX is easy, it will be rotated back to (1, 0).
aUnitVecX.setX(rScale.getX());
aUnitVecX.setY(0.0);
@@ -421,7 +421,7 @@ namespace basegfx
const double fNegRotate(-rRotate);
const double fSin(sin(fNegRotate));
const double fCos(cos(fNegRotate));
-
+
const double fNewX(aUnitVecY.getX() * fCos - aUnitVecY.getY() * fSin);
const double fNewY(aUnitVecY.getX() * fSin + aUnitVecY.getY() * fCos);
diff --git a/basegfx/source/matrix/b2dhommatrixtools.cxx b/basegfx/source/matrix/b2dhommatrixtools.cxx
index 8c4b2d68a79b..90c5f47b8e2a 100644
--- a/basegfx/source/matrix/b2dhommatrixtools.cxx
+++ b/basegfx/source/matrix/b2dhommatrixtools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,7 +70,7 @@ namespace basegfx
if( fTools::equalZero( fmod( fRadiant, F_PI2 ) ) )
{
// determine quadrant
- const sal_Int32 nQuad(
+ const sal_Int32 nQuad(
(4 + fround( 4/F_2PI*fmod( fRadiant, F_2PI ) )) % 4 );
switch( nQuad )
{
@@ -220,7 +220,7 @@ namespace basegfx
/* Row 1, Column 0 */ fSin * fScaleX,
/* Row 1, Column 1 */ fScaleY * fCos,
/* Row 1, Column 2 */ fTranslateY);
-
+
return aRetval;
}
}
@@ -255,13 +255,13 @@ namespace basegfx
/* Row 1, Column 0 */ fSin * fScaleX,
/* Row 1, Column 1 */ fScaleY * ((fSin * fShearX) + fCos),
/* Row 1, Column 2 */ fTranslateY);
-
+
return aRetval;
}
}
}
}
-
+
B2DHomMatrix createShearXRotateTranslateB2DHomMatrix(
double fShearX,
double fRadiant,
@@ -290,7 +290,7 @@ namespace basegfx
/* Row 1, Column 0 */ fSin,
/* Row 1, Column 1 */ fCos,
/* Row 1, Column 2 */ fTranslateY);
-
+
return aRetval;
}
}
@@ -307,7 +307,7 @@ namespace basegfx
/* Row 1, Column 0 */ 0.0,
/* Row 1, Column 1 */ 1.0,
/* Row 1, Column 2 */ fTranslateY);
-
+
return aRetval;
}
else
@@ -325,12 +325,12 @@ namespace basegfx
/* Row 1, Column 0 */ fSin,
/* Row 1, Column 1 */ (fSin * fShearX) + fCos,
/* Row 1, Column 2 */ fTranslateY);
-
+
return aRetval;
}
}
}
-
+
B2DHomMatrix createScaleTranslateB2DHomMatrix(
double fScaleX, double fScaleY,
double fTranslateX, double fTranslateY)
@@ -349,7 +349,7 @@ namespace basegfx
{
/// no translate, but scale.
B2DHomMatrix aRetval;
-
+
aRetval.set(0, 0, fScaleX);
aRetval.set(1, 1, fScaleY);
@@ -365,7 +365,7 @@ namespace basegfx
/* Row 1, Column 0 */ 0.0,
/* Row 1, Column 1 */ fScaleY,
/* Row 1, Column 2 */ fTranslateY);
-
+
return aRetval;
}
}
@@ -376,14 +376,14 @@ namespace basegfx
double fRadiant)
{
B2DHomMatrix aRetval;
-
+
if(!fTools::equalZero(fRadiant))
{
double fSin(0.0);
double fCos(1.0);
createSinCosOrthogonal(fSin, fCos, fRadiant);
-
+
aRetval.set3x2(
/* Row 0, Column 0 */ fCos,
/* Row 0, Column 1 */ -fSin,
diff --git a/basegfx/source/matrix/b3dhommatrix.cxx b/basegfx/source/matrix/b3dhommatrix.cxx
index e665b47d58a6..ef1bd73bbce5 100644
--- a/basegfx/source/matrix/b3dhommatrix.cxx
+++ b/basegfx/source/matrix/b3dhommatrix.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,8 +39,8 @@ namespace basegfx
class Impl3DHomMatrix : public ::basegfx::internal::ImplHomMatrixTemplate< 4 >
{
};
-
- namespace { struct IdentityMatrix : public rtl::Static< B3DHomMatrix::ImplType,
+
+ namespace { struct IdentityMatrix : public rtl::Static< B3DHomMatrix::ImplType,
IdentityMatrix > {}; }
B3DHomMatrix::B3DHomMatrix() :
@@ -229,7 +229,7 @@ namespace basegfx
mpImpl->doMulMatrix(aRotMatY);
}
-
+
if(!fTools::equalZero(fAngleZ))
{
Impl3DHomMatrix aRotMatZ;
@@ -251,7 +251,7 @@ namespace basegfx
if(!fTools::equalZero(fX) || !fTools::equalZero(fY) || !fTools::equalZero(fZ))
{
Impl3DHomMatrix aTransMat;
-
+
aTransMat.set(0, 3, fX);
aTransMat.set(1, 3, fY);
aTransMat.set(2, 3, fZ);
@@ -267,7 +267,7 @@ namespace basegfx
if(!fTools::equal(fOne, fX) || !fTools::equal(fOne, fY) ||!fTools::equal(fOne, fZ))
{
Impl3DHomMatrix aScaleMat;
-
+
aScaleMat.set(0, 0, fX);
aScaleMat.set(1, 1, fY);
aScaleMat.set(2, 2, fZ);
@@ -282,7 +282,7 @@ namespace basegfx
if(!fTools::equalZero(fSx) || !fTools::equalZero(fSy))
{
Impl3DHomMatrix aShearXYMat;
-
+
aShearXYMat.set(0, 2, fSx);
aShearXYMat.set(1, 2, fSy);
@@ -296,7 +296,7 @@ namespace basegfx
if(!fTools::equalZero(fSy) || !fTools::equalZero(fSz))
{
Impl3DHomMatrix aShearYZMat;
-
+
aShearYZMat.set(1, 0, fSy);
aShearYZMat.set(2, 0, fSz);
@@ -310,7 +310,7 @@ namespace basegfx
if(!fTools::equalZero(fSx) || !fTools::equalZero(fSz))
{
Impl3DHomMatrix aShearXZMat;
-
+
aShearXZMat.set(0, 1, fSx);
aShearXZMat.set(2, 1, fSz);
@@ -351,7 +351,7 @@ namespace basegfx
}
Impl3DHomMatrix aFrustumMat;
-
+
aFrustumMat.set(0, 0, 2.0 * fNear / (fRight - fLeft));
aFrustumMat.set(1, 1, 2.0 * fNear / (fTop - fBottom));
aFrustumMat.set(0, 2, (fRight + fLeft) / (fRight - fLeft));
@@ -363,7 +363,7 @@ namespace basegfx
mpImpl->doMulMatrix(aFrustumMat);
}
-
+
void B3DHomMatrix::ortho(double fLeft, double fRight, double fBottom, double fTop, double fNear, double fFar)
{
if(fTools::equal(fNear, fFar))
@@ -384,14 +384,14 @@ namespace basegfx
}
Impl3DHomMatrix aOrthoMat;
-
+
aOrthoMat.set(0, 0, 2.0 / (fRight - fLeft));
aOrthoMat.set(1, 1, 2.0 / (fTop - fBottom));
aOrthoMat.set(2, 2, -1.0 * (2.0 / (fFar - fNear)));
aOrthoMat.set(0, 3, -1.0 * ((fRight + fLeft) / (fRight - fLeft)));
aOrthoMat.set(1, 3, -1.0 * ((fTop + fBottom) / (fTop - fBottom)));
aOrthoMat.set(2, 3, -1.0 * ((fFar + fNear) / (fFar - fNear)));
-
+
mpImpl->doMulMatrix(aOrthoMat);
}
@@ -502,7 +502,7 @@ namespace basegfx
// get ShearYZ
rShear.setZ(aCol1.scalar(aCol2));
-
+
if(fTools::equalZero(rShear.getZ()))
{
rShear.setZ(0.0);
@@ -552,7 +552,7 @@ namespace basegfx
{
double fy=0;
double cy=0;
-
+
if( ::basegfx::fTools::equal( aCol0.getZ(), 1.0 )
|| aCol0.getZ() > 1.0 )
{
diff --git a/basegfx/source/numeric/ftools.cxx b/basegfx/source/numeric/ftools.cxx
index 163920de33e0..fcfe2502037c 100644
--- a/basegfx/source/numeric/ftools.cxx
+++ b/basegfx/source/numeric/ftools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/pixel/bpixel.cxx b/basegfx/source/pixel/bpixel.cxx
index 40611b74098c..11248e8a4a97 100644
--- a/basegfx/source/pixel/bpixel.cxx
+++ b/basegfx/source/pixel/bpixel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/point/b2dhompoint.cxx b/basegfx/source/point/b2dhompoint.cxx
index babfbaae4d5c..aa9e01b4c88b 100644
--- a/basegfx/source/point/b2dhompoint.cxx
+++ b/basegfx/source/point/b2dhompoint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,10 +34,10 @@
namespace basegfx
{
- bool B2DHomPoint::implIsHomogenized() const
- {
+ bool B2DHomPoint::implIsHomogenized() const
+ {
const double fOne(1.0);
- return ::basegfx::fTools::equal(fOne, mfW);
+ return ::basegfx::fTools::equal(fOne, mfW);
}
void B2DHomPoint::implHomogenize()
@@ -61,15 +61,15 @@ namespace basegfx
}
double B2DHomPoint::getX() const
- {
+ {
implTestAndHomogenize();
- return maTuple.getX();
+ return maTuple.getX();
}
double B2DHomPoint::getY() const
- {
+ {
implTestAndHomogenize();
- return maTuple.getY();
+ return maTuple.getY();
}
void B2DHomPoint::setX(double fX)
@@ -82,8 +82,8 @@ namespace basegfx
maTuple.setY(implIsHomogenized() ? fY : fY * mfW );
}
- B2DHomPoint& B2DHomPoint::operator+=( const B2DHomPoint& rPnt )
- {
+ B2DHomPoint& B2DHomPoint::operator+=( const B2DHomPoint& rPnt )
+ {
maTuple.setX(getX() * rPnt.mfW + rPnt.getX() * mfW);
maTuple.setY(getY() * rPnt.mfW + rPnt.getY() * mfW);
mfW = mfW * rPnt.mfW;
@@ -91,8 +91,8 @@ namespace basegfx
return *this;
}
- B2DHomPoint& B2DHomPoint::operator-=( const B2DHomPoint& rPnt )
- {
+ B2DHomPoint& B2DHomPoint::operator-=( const B2DHomPoint& rPnt )
+ {
maTuple.setX(getX() * rPnt.mfW - rPnt.getX() * mfW);
maTuple.setY(getY() * rPnt.mfW - rPnt.getY() * mfW);
mfW = mfW * rPnt.mfW;
@@ -100,14 +100,14 @@ namespace basegfx
return *this;
}
- B2DHomPoint& B2DHomPoint::operator*=(double t)
- {
+ B2DHomPoint& B2DHomPoint::operator*=(double t)
+ {
if(!::basegfx::fTools::equalZero(t))
{
mfW /= t;
}
- return *this;
+ return *this;
}
B2DHomPoint& B2DHomPoint::operator*=( const B2DHomMatrix& rMat )
@@ -130,130 +130,130 @@ namespace basegfx
return *this;
}
- B2DHomPoint& B2DHomPoint::operator/=(double t)
- {
+ B2DHomPoint& B2DHomPoint::operator/=(double t)
+ {
mfW *= t;
- return *this;
+ return *this;
}
B2DHomPoint& B2DHomPoint::operator-(void)
- {
+ {
mfW = -mfW;
return *this;
}
- bool B2DHomPoint::operator==( const B2DHomPoint& rPnt ) const
- {
+ bool B2DHomPoint::operator==( const B2DHomPoint& rPnt ) const
+ {
implTestAndHomogenize();
return (maTuple == rPnt.maTuple);
}
- bool B2DHomPoint::operator!=( const B2DHomPoint& rPnt ) const
- {
+ bool B2DHomPoint::operator!=( const B2DHomPoint& rPnt ) const
+ {
implTestAndHomogenize();
return (maTuple != rPnt.maTuple);
}
- B2DHomPoint& B2DHomPoint::operator=( const B2DHomPoint& rPnt )
- {
+ B2DHomPoint& B2DHomPoint::operator=( const B2DHomPoint& rPnt )
+ {
maTuple = rPnt.maTuple;
mfW = rPnt.mfW;
- return *this;
+ return *this;
}
- B2DHomPoint minimum(const B2DHomPoint& rVecA, const B2DHomPoint& rVecB)
- {
+ B2DHomPoint minimum(const B2DHomPoint& rVecA, const B2DHomPoint& rVecB)
+ {
B2DHomPoint aMin(
(rVecB.getX() < rVecA.getX()) ? rVecB.getX() : rVecA.getX(),
- (rVecB.getY() < rVecA.getY()) ? rVecB.getY() : rVecA.getY());
+ (rVecB.getY() < rVecA.getY()) ? rVecB.getY() : rVecA.getY());
return aMin;
}
- B2DHomPoint maximum(const B2DHomPoint& rVecA, const B2DHomPoint& rVecB)
- {
+ B2DHomPoint maximum(const B2DHomPoint& rVecA, const B2DHomPoint& rVecB)
+ {
B2DHomPoint aMax(
(rVecB.getX() > rVecA.getX()) ? rVecB.getX() : rVecA.getX(),
- (rVecB.getY() > rVecA.getY()) ? rVecB.getY() : rVecA.getY());
+ (rVecB.getY() > rVecA.getY()) ? rVecB.getY() : rVecA.getY());
return aMax;
}
- B2DHomPoint absolute(const B2DHomPoint& rVec)
- {
+ B2DHomPoint absolute(const B2DHomPoint& rVec)
+ {
B2DHomPoint aAbs(
(0.0 > rVec.getX()) ? -rVec.getX() : rVec.getX(),
- (0.0 > rVec.getY()) ? -rVec.getY() : rVec.getY());
+ (0.0 > rVec.getY()) ? -rVec.getY() : rVec.getY());
return aAbs;
}
- B2DHomPoint interpolate(B2DHomPoint& rOld1, B2DHomPoint& rOld2, double t)
- {
+ B2DHomPoint interpolate(B2DHomPoint& rOld1, B2DHomPoint& rOld2, double t)
+ {
B2DHomPoint aInt(
((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(),
- ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY());
+ ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY());
return aInt;
}
- B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2)
- {
+ B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2)
+ {
B2DHomPoint aAvg(
(rOld1.getX() + rOld2.getX()) * 0.5,
- (rOld1.getY() + rOld2.getY()) * 0.5);
+ (rOld1.getY() + rOld2.getY()) * 0.5);
return aAvg;
}
-
+
B2DHomPoint average(B2DHomPoint& rOld1, B2DHomPoint& rOld2, B2DHomPoint& rOld3)
- {
+ {
B2DHomPoint aAvg(
(rOld1.getX() + rOld2.getX() + rOld3.getX()) * (1.0 / 3.0),
- (rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0));
+ (rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0));
return aAvg;
}
B2DHomPoint operator+(const B2DHomPoint& rVecA, const B2DHomPoint& rVecB)
- {
- B2DHomPoint aSum(rVecA);
- aSum += rVecB;
- return aSum;
+ {
+ B2DHomPoint aSum(rVecA);
+ aSum += rVecB;
+ return aSum;
}
B2DHomPoint operator-(const B2DHomPoint& rVecA, const B2DHomPoint& rVecB)
- {
- B2DHomPoint aSub(rVecA);
- aSub -= rVecB;
- return aSub;
+ {
+ B2DHomPoint aSub(rVecA);
+ aSub -= rVecB;
+ return aSub;
}
B2DHomPoint operator*(const B2DHomPoint& rVec, double t)
- {
- B2DHomPoint aNew(rVec);
- aNew *= t;
- return aNew;
+ {
+ B2DHomPoint aNew(rVec);
+ aNew *= t;
+ return aNew;
}
B2DHomPoint operator*(double t, const B2DHomPoint& rVec)
- {
- B2DHomPoint aNew(rVec);
- aNew *= t;
- return aNew;
+ {
+ B2DHomPoint aNew(rVec);
+ aNew *= t;
+ return aNew;
}
B2DHomPoint operator*( const B2DHomMatrix& rMat, const B2DHomPoint& rPoint )
{
- B2DHomPoint aNew(rPoint);
+ B2DHomPoint aNew(rPoint);
return aNew*=rMat;
}
B2DHomPoint operator/(const B2DHomPoint& rVec, double t)
- {
- B2DHomPoint aNew(rVec);
- aNew /= t;
- return aNew;
+ {
+ B2DHomPoint aNew(rVec);
+ aNew /= t;
+ return aNew;
}
B2DHomPoint operator/(double t, const B2DHomPoint& rVec)
{
- B2DHomPoint aNew(rVec);
- aNew /= t;
- return aNew;
+ B2DHomPoint aNew(rVec);
+ aNew /= t;
+ return aNew;
}
} // end of namespace basegfx
diff --git a/basegfx/source/point/b2dpoint.cxx b/basegfx/source/point/b2dpoint.cxx
index fbc14a082318..ac17aeef16cc 100644
--- a/basegfx/source/point/b2dpoint.cxx
+++ b/basegfx/source/point/b2dpoint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,30 +36,30 @@
namespace basegfx
{
- B2DPoint& B2DPoint::operator=( const ::basegfx::B2DTuple& rPoint )
- {
+ B2DPoint& B2DPoint::operator=( const ::basegfx::B2DTuple& rPoint )
+ {
mfX = rPoint.getX();
- mfY = rPoint.getY();
- return *this;
+ mfY = rPoint.getY();
+ return *this;
}
B2DPoint& B2DPoint::operator*=( const ::basegfx::B2DHomMatrix& rMat )
{
double fTempX(
- rMat.get(0, 0) * mfX +
- rMat.get(0, 1) * mfY +
+ rMat.get(0, 0) * mfX +
+ rMat.get(0, 1) * mfY +
rMat.get(0, 2));
double fTempY(
- rMat.get(1, 0) * mfX +
- rMat.get(1, 1) * mfY +
+ rMat.get(1, 0) * mfX +
+ rMat.get(1, 1) * mfY +
rMat.get(1, 2));
if(!rMat.isLastLineDefault())
{
const double fOne(1.0);
const double fTempM(
- rMat.get(2, 0) * mfX +
- rMat.get(2, 1) * mfY +
+ rMat.get(2, 0) * mfX +
+ rMat.get(2, 1) * mfY +
rMat.get(2, 2));
if(!fTools::equalZero(fTempM) && !fTools::equal(fOne, fTempM))
diff --git a/basegfx/source/point/b2ipoint.cxx b/basegfx/source/point/b2ipoint.cxx
index c5a055274634..ab70f7cc54da 100644
--- a/basegfx/source/point/b2ipoint.cxx
+++ b/basegfx/source/point/b2ipoint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,30 +34,30 @@
namespace basegfx
{
- B2IPoint& B2IPoint::operator=( const ::basegfx::B2ITuple& rPoint )
- {
+ B2IPoint& B2IPoint::operator=( const ::basegfx::B2ITuple& rPoint )
+ {
mnX = rPoint.getX();
- mnY = rPoint.getY();
- return *this;
+ mnY = rPoint.getY();
+ return *this;
}
B2IPoint& B2IPoint::operator*=( const ::basegfx::B2DHomMatrix& rMat )
{
double fTempX(
- rMat.get(0, 0) * mnX +
- rMat.get(0, 1) * mnY +
+ rMat.get(0, 0) * mnX +
+ rMat.get(0, 1) * mnY +
rMat.get(0, 2));
double fTempY(
- rMat.get(1, 0) * mnX +
- rMat.get(1, 1) * mnY +
+ rMat.get(1, 0) * mnX +
+ rMat.get(1, 1) * mnY +
rMat.get(1, 2));
if(!rMat.isLastLineDefault())
{
const double fOne(1.0);
const double fTempM(
- rMat.get(2, 0) * mnX +
- rMat.get(2, 1) * mnY +
+ rMat.get(2, 0) * mnX +
+ rMat.get(2, 1) * mnY +
rMat.get(2, 2));
if(!fTools::equalZero(fTempM) && !fTools::equal(fOne, fTempM))
diff --git a/basegfx/source/point/b3dhompoint.cxx b/basegfx/source/point/b3dhompoint.cxx
index 3a6c33a50262..3bc793fc871d 100644
--- a/basegfx/source/point/b3dhompoint.cxx
+++ b/basegfx/source/point/b3dhompoint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/point/b3dpoint.cxx b/basegfx/source/point/b3dpoint.cxx
index 8cf8ac983260..c6ff5303cfd3 100644
--- a/basegfx/source/point/b3dpoint.cxx
+++ b/basegfx/source/point/b3dpoint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,9 +56,9 @@ namespace basegfx
{
const double fOne(1.0);
const double fTempM(
- rMat.get(3, 0) * mfX +
- rMat.get(3, 1) * mfY +
- rMat.get(3, 2) * mfZ +
+ rMat.get(3, 0) * mfX +
+ rMat.get(3, 1) * mfY +
+ rMat.get(3, 2) * mfZ +
rMat.get(3, 3));
if(!fTools::equalZero(fTempM) && !fTools::equal(fOne, fTempM))
diff --git a/basegfx/source/point/b3ipoint.cxx b/basegfx/source/point/b3ipoint.cxx
index 8e5c0b3d9932..540979ac80b2 100644
--- a/basegfx/source/point/b3ipoint.cxx
+++ b/basegfx/source/point/b3ipoint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,9 +56,9 @@ namespace basegfx
{
const double fOne(1.0);
const double fTempM(
- rMat.get(3, 0) * mnX +
- rMat.get(3, 1) * mnY +
- rMat.get(3, 2) * mnZ +
+ rMat.get(3, 0) * mnX +
+ rMat.get(3, 1) * mnY +
+ rMat.get(3, 2) * mnZ +
rMat.get(3, 3));
if(!fTools::equalZero(fTempM) && !fTools::equal(fOne, fTempM))
diff --git a/basegfx/source/polygon/b2dlinegeometry.cxx b/basegfx/source/polygon/b2dlinegeometry.cxx
index 97551ff95c36..638b9e99f3e0 100644
--- a/basegfx/source/polygon/b2dlinegeometry.cxx
+++ b/basegfx/source/polygon/b2dlinegeometry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@ namespace basegfx
namespace tools
{
B2DPolyPolygon createAreaGeometryForLineStartEnd(
- const B2DPolygon& rCandidate,
- const B2DPolyPolygon& rArrow,
+ const B2DPolygon& rCandidate,
+ const B2DPolyPolygon& rArrow,
bool bStart,
double fWidth,
double fCandidateLength,
@@ -59,7 +59,7 @@ namespace basegfx
OSL_ENSURE(rCandidate.count() > 1L, "createAreaGeometryForLineStartEnd: Line polygon has too less points (!)");
OSL_ENSURE(rArrow.count() > 0L, "createAreaGeometryForLineStartEnd: Empty arrow PolyPolygon (!)");
OSL_ENSURE(fWidth > 0.0, "createAreaGeometryForLineStartEnd: Width too small (!)");
- OSL_ENSURE(fDockingPosition >= 0.0 && fDockingPosition <= 1.0,
+ OSL_ENSURE(fDockingPosition >= 0.0 && fDockingPosition <= 1.0,
"createAreaGeometryForLineStartEnd: fDockingPosition out of range [0.0 .. 1.0] (!)");
if(fWidth < 0.0)
@@ -109,7 +109,7 @@ namespace basegfx
// get the polygon vector we want to plant this arrow on
const double fConsumedLength(fArrowYLength * (1.0 - fDockingPosition));
const B2DVector aHead(rCandidate.getB2DPoint((bStart) ? 0L : rCandidate.count() - 1L));
- const B2DVector aTail(getPositionAbsolute(rCandidate,
+ const B2DVector aTail(getPositionAbsolute(rCandidate,
(bStart) ? fConsumedLength : fCandidateLength - fConsumedLength, fCandidateLength));
// from that vector, take the needed rotation and add rotate for arrow to transformation
@@ -222,7 +222,7 @@ namespace basegfx
{
B2DCubicBezier aLeft, aRight;
rCandidate.split(0.5, &aLeft, &aRight);
-
+
impSubdivideToSimple(aLeft, rTarget, fMaxCosQuad, fMaxPartOfEdgeQuad, nMaxRecursionDepth - 1);
impSubdivideToSimple(aRight, rTarget, fMaxCosQuad, fMaxPartOfEdgeQuad, nMaxRecursionDepth - 1);
}
@@ -249,7 +249,7 @@ namespace basegfx
aEdge.setControlPointA(rCandidate.getNextControlPoint(a));
aEdge.setControlPointB(rCandidate.getPrevControlPoint(nNextIndex));
aEdge.setEndPoint(rCandidate.getB2DPoint(nNextIndex));
-
+
// get rid of unnecessary bezier segments
aEdge.testAndSolveTrivialBezier();
@@ -261,7 +261,7 @@ namespace basegfx
aExtremumPositions.reserve(4);
aEdge.getAllExtremumPositions(aExtremumPositions);
-
+
const sal_uInt32 nCount(aExtremumPositions.size());
if(nCount)
@@ -277,7 +277,7 @@ namespace basegfx
// split aEdge at next split pos
B2DCubicBezier aLeft;
const double fSplitPos(aExtremumPositions[b++]);
-
+
aEdge.split(fSplitPos, &aLeft, &aEdge);
aLeft.testAndSolveTrivialBezier();
@@ -290,7 +290,7 @@ namespace basegfx
{
aRetval.append(aLeft.getEndPoint());
}
-
+
if(b < nCount)
{
// correct the remaining split positions to fit to shortened aEdge
@@ -302,7 +302,7 @@ namespace basegfx
}
}
}
-
+
// test the shortened rest of aEdge
aEdge.testAndSolveTrivialBezier();
@@ -367,7 +367,7 @@ namespace basegfx
double fCut(0.0);
const tools::CutFlagValue aCut(tools::findCut(
rEdge.getStartPoint(), aPerpendStart,
- rEdge.getEndPoint(), aPerpendEnd,
+ rEdge.getEndPoint(), aPerpendEnd,
CUTFLAG_ALL, &fCut));
if(CUTFLAG_NONE != aCut)
@@ -395,7 +395,7 @@ namespace basegfx
// append original in-between point
aBezierPolygon.append(rEdge.getEndPoint());
- // create lower edge.
+ // create lower edge.
{
// create displacement vectors and check if they cut
const B2DVector aPerpendStart(getNormalizedPerpendicular(aTangentA) * fHalfLineWidth);
@@ -403,7 +403,7 @@ namespace basegfx
double fCut(0.0);
const tools::CutFlagValue aCut(tools::findCut(
rEdge.getEndPoint(), aPerpendEnd,
- rEdge.getStartPoint(), aPerpendStart,
+ rEdge.getStartPoint(), aPerpendStart,
CUTFLAG_ALL, &fCut));
if(CUTFLAG_NONE != aCut)
@@ -443,11 +443,11 @@ namespace basegfx
const B2DVector aEdgeTangent((rEdge.getEndPoint() - rEdge.getStartPoint()) * 0.3);
const B2DVector aPerpendEdgeVector(getNormalizedPerpendicular(aEdgeTangent) * fHalfLineWidth);
B2DPolygon aEdgePolygon;
-
+
// create upper edge
aEdgePolygon.append(rEdge.getStartPoint() - aPerpendEdgeVector);
aEdgePolygon.append(rEdge.getEndPoint() - aPerpendEdgeVector);
-
+
// append original in-between point
aEdgePolygon.append(rEdge.getEndPoint());
@@ -465,13 +465,13 @@ namespace basegfx
}
B2DPolygon createAreaGeometryForJoin(
- const B2DVector& rTangentPrev,
+ const B2DVector& rTangentPrev,
const B2DVector& rTangentEdge,
- const B2DVector& rPerpendPrev,
+ const B2DVector& rPerpendPrev,
const B2DVector& rPerpendEdge,
const B2DPoint& rPoint,
- double fHalfLineWidth,
- B2DLineJoin eJoin,
+ double fHalfLineWidth,
+ B2DLineJoin eJoin,
double fMiterMinimumAngle)
{
OSL_ENSURE(fHalfLineWidth > 0.0, "createAreaGeometryForJoin: LineWidth too small (!)");
@@ -481,7 +481,7 @@ namespace basegfx
B2DPolygon aEdgePolygon;
const B2DPoint aStartPoint(rPoint + rPerpendPrev);
const B2DPoint aEndPoint(rPoint + rPerpendEdge);
-
+
// test if for Miter, the angle is too small and the fallback
// to bevel needs to be used
if(B2DLINEJOIN_MITER == eJoin)
@@ -502,7 +502,7 @@ namespace basegfx
aEdgePolygon.append(aEndPoint);
aEdgePolygon.append(rPoint);
aEdgePolygon.append(aStartPoint);
-
+
// Look for the cut point between start point along rTangentPrev and
// end point along rTangentEdge. -rTangentEdge should be used, but since
// the cut value is used for interpolating along the first edge, the negation
@@ -516,7 +516,7 @@ namespace basegfx
const B2DPoint aCutPoint(interpolate(aStartPoint, aStartPoint + rTangentPrev, fCutPos));
aEdgePolygon.append(aCutPoint);
}
-
+
break;
}
case B2DLINEJOIN_ROUND :
@@ -524,7 +524,7 @@ namespace basegfx
// use tooling to add needed EllipseSegment
double fAngleStart(atan2(rPerpendPrev.getY(), rPerpendPrev.getX()));
double fAngleEnd(atan2(rPerpendEdge.getY(), rPerpendEdge.getX()));
-
+
// atan2 results are [-PI .. PI], consolidate to [0.0 .. 2PI]
if(fAngleStart < 0.0)
{
@@ -561,7 +561,7 @@ namespace basegfx
aEdgePolygon.append(aEndPoint);
aEdgePolygon.append(rPoint);
aEdgePolygon.append(aStartPoint);
-
+
break;
}
}
@@ -576,10 +576,10 @@ namespace basegfx
namespace tools
{
B2DPolyPolygon createAreaGeometry(
- const B2DPolygon& rCandidate,
- double fHalfLineWidth,
- B2DLineJoin eJoin,
- double fMaxAllowedAngle,
+ const B2DPolygon& rCandidate,
+ double fHalfLineWidth,
+ B2DLineJoin eJoin,
+ double fMaxAllowedAngle,
double fMaxPartOfEdge,
double fMiterMinimumAngle)
{
@@ -612,10 +612,10 @@ namespace basegfx
B2DPolygon aCandidate(rCandidate);
const double fMaxCos(cos(fMaxAllowedAngle));
-
+
aCandidate.removeDoublePoints();
aCandidate = subdivideToSimple(aCandidate, fMaxCos * fMaxCos, fMaxPartOfEdge * fMaxPartOfEdge);
-
+
const sal_uInt32 nPointCount(aCandidate.count());
if(nPointCount)
@@ -660,7 +660,7 @@ namespace basegfx
if(ORIENTATION_NEUTRAL == aOrientation)
{
- // they are parallell or empty; if they are both not zero and point
+ // they are parallell or empty; if they are both not zero and point
// in opposite direction, a half-circle is needed
if(!aTangentPrev.equalZero() && !aTangentEdge.equalZero())
{
@@ -679,11 +679,11 @@ namespace basegfx
{
const B2DVector aPerpendPrev(getNormalizedPerpendicular(aTangentPrev) * -fHalfLineWidth);
const B2DVector aPerpendEdge(getNormalizedPerpendicular(aTangentEdge) * -fHalfLineWidth);
-
+
aRetval.append(createAreaGeometryForJoin(
aTangentPrev, aTangentEdge,
- aPerpendPrev, aPerpendEdge,
- aEdge.getStartPoint(), fHalfLineWidth,
+ aPerpendPrev, aPerpendEdge,
+ aEdge.getStartPoint(), fHalfLineWidth,
eJoin, fMiterMinimumAngle));
}
else if(ORIENTATION_NEGATIVE == aOrientation)
@@ -693,8 +693,8 @@ namespace basegfx
aRetval.append(createAreaGeometryForJoin(
aTangentEdge, aTangentPrev,
- aPerpendEdge, aPerpendPrev,
- aEdge.getStartPoint(), fHalfLineWidth,
+ aPerpendEdge, aPerpendPrev,
+ aEdge.getStartPoint(), fHalfLineWidth,
eJoin, fMiterMinimumAngle));
}
}
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx
index ccd2f3dce6e0..f88069b38629 100644
--- a/basegfx/source/polygon/b2dpolygon.cxx
+++ b/basegfx/source/polygon/b2dpolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@ struct CoordinateData2D : public basegfx::B2DPoint
public:
CoordinateData2D() {}
- explicit CoordinateData2D(const basegfx::B2DPoint& rData)
- : B2DPoint(rData)
+ explicit CoordinateData2D(const basegfx::B2DPoint& rData)
+ : B2DPoint(rData)
{}
CoordinateData2D& operator=(const basegfx::B2DPoint& rData)
@@ -57,9 +57,9 @@ public:
return *this;
}
- void transform(const basegfx::B2DHomMatrix& rMatrix)
- {
- *this *= rMatrix;
+ void transform(const basegfx::B2DHomMatrix& rMatrix)
+ {
+ *this *= rMatrix;
}
};
@@ -69,21 +69,21 @@ class CoordinateDataArray2D
{
typedef ::std::vector< CoordinateData2D > CoordinateData2DVector;
- CoordinateData2DVector maVector;
+ CoordinateData2DVector maVector;
public:
explicit CoordinateDataArray2D(sal_uInt32 nCount)
- : maVector(nCount)
+ : maVector(nCount)
{
}
explicit CoordinateDataArray2D(const CoordinateDataArray2D& rOriginal)
- : maVector(rOriginal.maVector)
+ : maVector(rOriginal.maVector)
{
}
CoordinateDataArray2D(const CoordinateDataArray2D& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(rOriginal.maVector.begin() + nIndex, rOriginal.maVector.begin() + (nIndex + nCount))
+ : maVector(rOriginal.maVector.begin() + nIndex, rOriginal.maVector.begin() + (nIndex + nCount))
{
}
@@ -164,7 +164,7 @@ public:
const sal_uInt32 nHalfSize(bIsClosed ? (maVector.size() - 1) >> 1 : maVector.size() >> 1);
CoordinateData2DVector::iterator aStart(bIsClosed ? maVector.begin() + 1 : maVector.begin());
CoordinateData2DVector::iterator aEnd(maVector.end() - 1);
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
::std::swap(*aStart, *aEnd);
@@ -253,35 +253,35 @@ public:
class ControlVectorPair2D
{
- basegfx::B2DVector maPrevVector;
- basegfx::B2DVector maNextVector;
+ basegfx::B2DVector maPrevVector;
+ basegfx::B2DVector maNextVector;
public:
- const basegfx::B2DVector& getPrevVector() const
- {
- return maPrevVector;
+ const basegfx::B2DVector& getPrevVector() const
+ {
+ return maPrevVector;
}
-
- void setPrevVector(const basegfx::B2DVector& rValue)
- {
- if(rValue != maPrevVector)
- maPrevVector = rValue;
+
+ void setPrevVector(const basegfx::B2DVector& rValue)
+ {
+ if(rValue != maPrevVector)
+ maPrevVector = rValue;
}
- const basegfx::B2DVector& getNextVector() const
- {
- return maNextVector;
+ const basegfx::B2DVector& getNextVector() const
+ {
+ return maNextVector;
}
- void setNextVector(const basegfx::B2DVector& rValue)
- {
- if(rValue != maNextVector)
- maNextVector = rValue;
+ void setNextVector(const basegfx::B2DVector& rValue)
+ {
+ if(rValue != maNextVector)
+ maNextVector = rValue;
}
- bool operator==(const ControlVectorPair2D& rData) const
- {
- return (maPrevVector == rData.getPrevVector() && maNextVector == rData.getNextVector());
+ bool operator==(const ControlVectorPair2D& rData) const
+ {
+ return (maPrevVector == rData.getPrevVector() && maNextVector == rData.getNextVector());
}
void flip()
@@ -296,17 +296,17 @@ class ControlVectorArray2D
{
typedef ::std::vector< ControlVectorPair2D > ControlVectorPair2DVector;
- ControlVectorPair2DVector maVector;
- sal_uInt32 mnUsedVectors;
+ ControlVectorPair2DVector maVector;
+ sal_uInt32 mnUsedVectors;
public:
explicit ControlVectorArray2D(sal_uInt32 nCount)
- : maVector(nCount),
+ : maVector(nCount),
mnUsedVectors(0)
{}
ControlVectorArray2D(const ControlVectorArray2D& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(),
+ : maVector(),
mnUsedVectors(0)
{
ControlVectorPair2DVector::const_iterator aStart(rOriginal.maVector.begin());
@@ -337,8 +337,8 @@ public:
return (maVector == rCandidate.maVector);
}
- bool isUsed() const
- {
+ bool isUsed() const
+ {
return (0 != mnUsedVectors);
}
@@ -489,7 +489,7 @@ public:
const sal_uInt32 nHalfSize(bIsClosed ? (maVector.size() - 1) >> 1 : maVector.size() >> 1);
ControlVectorPair2DVector::iterator aStart(bIsClosed ? maVector.begin() + 1 : maVector.begin());
ControlVectorPair2DVector::iterator aEnd(maVector.end() - 1);
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
// swap Prev and Next
@@ -524,10 +524,10 @@ class ImplBufferedData
{
private:
// Possibility to hold the last subdivision
- boost::scoped_ptr< basegfx::B2DPolygon > mpDefaultSubdivision;
+ boost::scoped_ptr< basegfx::B2DPolygon > mpDefaultSubdivision;
// Possibility to hold the last B2DRange calculation
- boost::scoped_ptr< basegfx::B2DRange > mpB2DRange;
+ boost::scoped_ptr< basegfx::B2DRange > mpB2DRange;
public:
ImplBufferedData()
@@ -544,7 +544,7 @@ public:
return *mpDefaultSubdivision;
}
-
+
const basegfx::B2DRange& getB2DRange(const basegfx::B2DPolygon& rSource) const
{
if(!mpB2DRange)
@@ -584,10 +584,10 @@ public:
// the range with control points of the current edge is not completely
// inside the current range without control points. Expand current range by
// subdividing the bezier segment.
- // Ideal here is a subdivision at the extreme values, so use
+ // Ideal here is a subdivision at the extreme values, so use
// getAllExtremumPositions to get all extremas in one run
::std::vector< double > aExtremas;
-
+
aExtremas.reserve(4);
aEdge.getAllExtremumPositions(aExtremas);
@@ -621,11 +621,11 @@ class ImplB2DPolygon
private:
// The point vector. This vector exists always and defines the
// count of members.
- CoordinateDataArray2D maPoints;
+ CoordinateDataArray2D maPoints;
// The control point vectors. This vectors are created on demand
// and may be zero.
- boost::scoped_ptr< ControlVectorArray2D > mpControlVector;
+ boost::scoped_ptr< ControlVectorArray2D > mpControlVector;
// buffered data for e.g. default subdivision and range
boost::scoped_ptr< ImplBufferedData > mpBufferedData;
@@ -660,14 +660,14 @@ public:
}
ImplB2DPolygon()
- : maPoints(0),
+ : maPoints(0),
mpControlVector(),
mpBufferedData(),
mbIsClosed(false)
{}
ImplB2DPolygon(const ImplB2DPolygon& rToBeCopied)
- : maPoints(rToBeCopied.maPoints),
+ : maPoints(rToBeCopied.maPoints),
mpControlVector(),
mpBufferedData(),
mbIsClosed(rToBeCopied.mbIsClosed)
@@ -680,7 +680,7 @@ public:
}
ImplB2DPolygon(const ImplB2DPolygon& rToBeCopied, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maPoints(rToBeCopied.maPoints, nIndex, nCount),
+ : maPoints(rToBeCopied.maPoints, nIndex, nCount),
mpControlVector(),
mpBufferedData(),
mbIsClosed(rToBeCopied.mbIsClosed)
@@ -704,7 +704,7 @@ public:
// complete initialization using copy
if(rToBeCopied.mpControlVector && rToBeCopied.mpControlVector->isUsed())
- mpControlVector.reset( new ControlVectorArray2D(*rToBeCopied.mpControlVector) );
+ mpControlVector.reset( new ControlVectorArray2D(*rToBeCopied.mpControlVector) );
return *this;
}
@@ -1070,7 +1070,7 @@ public:
remove(nIndex, 1);
}
- }
+ }
while(bRemove);
}
else
@@ -1142,7 +1142,7 @@ public:
{
const basegfx::B2DVector& rPrevVector(mpControlVector->getPrevVector(a));
const basegfx::B2DVector& rNextVector(mpControlVector->getNextVector(a));
-
+
if(!rPrevVector.equalZero())
{
basegfx::B2DVector aPrevVector(rMatrix * rPrevVector);
@@ -1196,21 +1196,21 @@ public:
namespace basegfx
{
- namespace
- {
- struct DefaultPolygon: public rtl::Static<B2DPolygon::ImplType, DefaultPolygon> {};
+ namespace
+ {
+ struct DefaultPolygon: public rtl::Static<B2DPolygon::ImplType, DefaultPolygon> {};
}
- B2DPolygon::B2DPolygon()
- : mpPolygon(DefaultPolygon::get())
+ B2DPolygon::B2DPolygon()
+ : mpPolygon(DefaultPolygon::get())
{}
B2DPolygon::B2DPolygon(const B2DPolygon& rPolygon)
- : mpPolygon(rPolygon.mpPolygon)
+ : mpPolygon(rPolygon.mpPolygon)
{}
B2DPolygon::B2DPolygon(const B2DPolygon& rPolygon, sal_uInt32 nIndex, sal_uInt32 nCount)
- : mpPolygon(ImplB2DPolygon(*rPolygon.mpPolygon, nIndex, nCount))
+ : mpPolygon(ImplB2DPolygon(*rPolygon.mpPolygon, nIndex, nCount))
{
// TODO(P2): one extra temporary here (cow_wrapper copies
// given ImplB2DPolygon into its internal impl_t wrapper type)
@@ -1253,7 +1253,7 @@ namespace basegfx
B2DPoint B2DPolygon::getB2DPoint(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
-
+
return mpPolygon->getPoint(nIndex);
}
@@ -1275,7 +1275,7 @@ namespace basegfx
void B2DPolygon::insert(sal_uInt32 nIndex, const B2DPoint& rPoint, sal_uInt32 nCount)
{
OSL_ENSURE(nIndex <= mpPolygon->count(), "B2DPolygon Insert outside range (!)");
-
+
if(nCount)
{
mpPolygon->insert(nIndex, rPoint, nCount);
@@ -1298,7 +1298,7 @@ namespace basegfx
B2DPoint B2DPolygon::getPrevControlPoint(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
-
+
if(mpPolygon->areControlPointsUsed())
{
return mpPolygon->getPoint(nIndex) + mpPolygon->getPrevControlVector(nIndex);
@@ -1312,7 +1312,7 @@ namespace basegfx
B2DPoint B2DPolygon::getNextControlPoint(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
-
+
if(mpPolygon->areControlPointsUsed())
{
return mpPolygon->getPoint(nIndex) + mpPolygon->getNextControlVector(nIndex);
@@ -1382,7 +1382,7 @@ namespace basegfx
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
- if(mpPolygon->areControlPointsUsed() &&
+ if(mpPolygon->areControlPointsUsed() &&
(!mpPolygon->getPrevControlVector(nIndex).equalZero() || !mpPolygon->getNextControlVector(nIndex).equalZero()))
{
mpPolygon->resetControlVectors(nIndex);
@@ -1398,8 +1398,8 @@ namespace basegfx
}
void B2DPolygon::appendBezierSegment(
- const B2DPoint& rNextControlPoint,
- const B2DPoint& rPrevControlPoint,
+ const B2DPoint& rNextControlPoint,
+ const B2DPoint& rPrevControlPoint,
const B2DPoint& rPoint)
{
const B2DVector aNewNextVector(mpPolygon->count() ? B2DVector(rNextControlPoint - mpPolygon->getPoint(mpPolygon->count() - 1)) : B2DVector::getEmptyVector());
@@ -1454,7 +1454,7 @@ namespace basegfx
bool B2DPolygon::isBezierSegment(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B2DPolygon access outside range (!)");
-
+
if(mpPolygon->areControlPointsUsed())
{
// Check if the edge exists
@@ -1463,7 +1463,7 @@ namespace basegfx
if(bNextIndexValidWithoutClose || mpPolygon->isClosed())
{
const sal_uInt32 nNextIndex(bNextIndexValidWithoutClose ? nIndex + 1 : 0);
- return (!mpPolygon->getPrevControlVector(nNextIndex).equalZero()
+ return (!mpPolygon->getPrevControlVector(nNextIndex).equalZero()
|| !mpPolygon->getNextControlVector(nIndex).equalZero());
}
else
@@ -1573,13 +1573,13 @@ namespace basegfx
void B2DPolygon::remove(sal_uInt32 nIndex, sal_uInt32 nCount)
{
OSL_ENSURE(nIndex + nCount <= mpPolygon->count(), "B2DPolygon Remove outside range (!)");
-
+
if(nCount)
{
mpPolygon->remove(nIndex, nCount);
}
}
-
+
void B2DPolygon::clear()
{
mpPolygon = DefaultPolygon::get();
diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx
index e368f7dbb3bd..6f38b54dd992 100644
--- a/basegfx/source/polygon/b2dpolygonclipper.cxx
+++ b/basegfx/source/polygon/b2dpolygonclipper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,15 +94,15 @@ namespace basegfx
{
// add cuts with axis to polygon, including bezier segments
// Build edge to cut with. Make it a little big longer than needed for
- // numerical stability. We want to cut against the edge seen as endless
+ // numerical stability. We want to cut against the edge seen as endless
// ray here, but addPointsAtCuts() will limit itself to the
// edge's range ]0.0 .. 1.0[.
const double fSmallExtension((aCandidateRange.getWidth() + aCandidateRange.getHeight()) * (0.5 * 0.1));
const B2DPoint aStart(
- bParallelToXAxis ? aCandidateRange.getMinX() - fSmallExtension : fValueOnOtherAxis,
+ bParallelToXAxis ? aCandidateRange.getMinX() - fSmallExtension : fValueOnOtherAxis,
bParallelToXAxis ? fValueOnOtherAxis : aCandidateRange.getMinY() - fSmallExtension);
const B2DPoint aEnd(
- bParallelToXAxis ? aCandidateRange.getMaxX() + fSmallExtension : fValueOnOtherAxis,
+ bParallelToXAxis ? aCandidateRange.getMaxX() + fSmallExtension : fValueOnOtherAxis,
bParallelToXAxis ? fValueOnOtherAxis : aCandidateRange.getMaxY() + fSmallExtension);
const B2DPolygon aCandidate(addPointsAtCuts(rCandidate, aStart, aEnd));
const sal_uInt32 nPointCount(aCandidate.count());
@@ -249,7 +249,7 @@ namespace basegfx
// This needs to be done with the topology knowlegde and is unfurtunately
// more expensive, too.
const B2DPolygon aClip(createPolygonFromRect(rRange));
-
+
return clipPolygonOnPolyPolygon(rCandidate, B2DPolyPolygon(aClip), bInside, bStroke);
}
@@ -338,10 +338,10 @@ namespace basegfx
}
else
{
- // for details, see comment in clipPolygonOnRange for the "cutting off
+ // for details, see comment in clipPolygonOnRange for the "cutting off
// the outer parts of filled polygons at parallell lines" explanations
const B2DPolygon aClip(createPolygonFromRect(rRange));
-
+
return clipPolyPolygonOnPolyPolygon(rCandidate, B2DPolyPolygon(aClip), bInside, bStroke);
}
@@ -419,7 +419,7 @@ namespace basegfx
B2DPolyPolygon clipPolyPolygonOnPolyPolygon(const B2DPolyPolygon& rCandidate, const B2DPolyPolygon& rClip, bool bInside, bool bStroke)
{
B2DPolyPolygon aRetval;
-
+
if(rCandidate.count() && rClip.count())
{
if(bStroke)
@@ -493,10 +493,10 @@ namespace basegfx
// area clipping
B2DPolyPolygon aMergePolyPolygonA(rClip);
- // First solve all polygon-self and polygon-polygon intersections.
- // Also get rid of some not-needed polygons (neutral, no area -> when
+ // First solve all polygon-self and polygon-polygon intersections.
+ // Also get rid of some not-needed polygons (neutral, no area -> when
// no intersections, these are tubes).
- // Now it is possible to correct the orientations in the cut-free
+ // Now it is possible to correct the orientations in the cut-free
// polygons to values corresponding to painting the PolyPolygon with
// a XOR-WindingRule.
aMergePolyPolygonA = solveCrossovers(aMergePolyPolygonA);
@@ -575,28 +575,28 @@ namespace basegfx
*
*/
struct scissor_plane {
- double nx,ny; // plane normal
- double d; // [-] minimum distance from origin
- sal_uInt32 clipmask; // clipping mask, e.g. 1000 1000
+ double nx,ny; // plane normal
+ double d; // [-] minimum distance from origin
+ sal_uInt32 clipmask; // clipping mask, e.g. 1000 1000
};
/*
*
* polygon clipping rules (straight out of Foley and Van Dam)
* ===========================================================
- * current |next |emit
+ * current |next |emit
* ____________________________________
- * inside |inside |next
- * inside |outside |intersect with clip plane
- * outside |outside |nothing
- * outside |inside |intersect with clip plane follwed by next
+ * inside |inside |next
+ * inside |outside |intersect with clip plane
+ * outside |outside |nothing
+ * outside |inside |intersect with clip plane follwed by next
*
*/
- sal_uInt32 scissorLineSegment( ::basegfx::B2DPoint *in_vertex, // input buffer
- sal_uInt32 in_count, // number of verts in input buffer
- ::basegfx::B2DPoint *out_vertex, // output buffer
- scissor_plane *pPlane, // scissoring plane
- const ::basegfx::B2DRectangle &rR ) // clipping rectangle
+ sal_uInt32 scissorLineSegment( ::basegfx::B2DPoint *in_vertex, // input buffer
+ sal_uInt32 in_count, // number of verts in input buffer
+ ::basegfx::B2DPoint *out_vertex, // output buffer
+ scissor_plane *pPlane, // scissoring plane
+ const ::basegfx::B2DRectangle &rR ) // clipping rectangle
{
::basegfx::B2DPoint *curr;
::basegfx::B2DPoint *next;
@@ -605,7 +605,7 @@ namespace basegfx
// process all the verts
for(sal_uInt32 i=0; i<in_count; i++) {
-
+
// vertices are relative to the coordinate
// system defined by the rectangle.
curr = &in_vertex[i];
@@ -663,7 +663,7 @@ namespace basegfx
return out_count;
}
- B2DPolygon clipTriangleListOnRange( const B2DPolygon& rCandidate,
+ B2DPolygon clipTriangleListOnRange( const B2DPolygon& rCandidate,
const B2DRange& rRange )
{
B2DPolygon aResult;
@@ -699,13 +699,13 @@ namespace basegfx
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
- //
+ //
// Upper bound for the maximal number of vertices when intersecting an
// axis-aligned rectangle with a triangle in E2
- //
+ //
// The rectangle and the triangle are in general position, and have 4 and 3
// vertices, respectively.
- //
+ //
// Lemma: Since the rectangle is a convex polygon ( see
// http://mathworld.wolfram.com/ConvexPolygon.html for a definition), and
// has no holes, it follows that any straight line will intersect the
@@ -717,7 +717,7 @@ namespace basegfx
// other 'outside') will at utmost add _one_ vertex to the resulting
// intersection polygon (adding two intersection vertices, and removing at
// least one rectangle vertex):
- //
+ //
// *
// +--+-----------------+
// | * |
@@ -726,7 +726,7 @@ namespace basegfx
// *| |
// * | |
// +--------------------+
- //
+ //
// Proof: If the straight line intersects the rectangle two
// times, it does so for distinct edges, i.e. the intersection has
// minimally one of the rectangle's vertices on either side of the straight
@@ -734,17 +734,17 @@ namespace basegfx
// minimally _one_ rectangle vertex removed from the resulting clip
// polygon, and therefore, a clip against a half-plane has the net effect
// of adding at utmost _one_ vertex to the resulting clip polygon.
- //
+ //
// Theorem: The intersection of a rectangle and a triangle results in a
// polygon with at utmost 7 vertices.
- //
+ //
// Proof: The inside of the triangle can be described as the consecutive
// intersection with three half-planes. Together with the lemma above, this
// results in at utmost 3 additional vertices added to the already existing 4
// rectangle vertices.
- //
+ //
// This upper bound is attained with the following example configuration:
- //
+ //
// *
// ***
// ** *
@@ -766,7 +766,7 @@ namespace basegfx
// --*6-----5-----
// ** *
// **
- //
+ //
// As we need to scissor all triangles against the
// output rectangle we employ an output buffer for the
// resulting vertices. the question is how large this
@@ -801,7 +801,7 @@ namespace basegfx
::basegfx::B2DPoint stack[3];
unsigned int clipflag = 0;
- for(sal_uInt32 nIndex=0; nIndex<nVertexCount; ++nIndex)
+ for(sal_uInt32 nIndex=0; nIndex<nVertexCount; ++nIndex)
{
// rotate stack
stack[0] = stack[1];
@@ -811,14 +811,14 @@ namespace basegfx
// clipping judgement
clipflag |= !(rRange.isInside(stack[2]));
- if(nIndex > 1)
+ if(nIndex > 1)
{
// consume vertices until a single seperate triangle has been visited.
- if(!((nIndex+1)%3))
+ if(!((nIndex+1)%3))
{
// if any of the last three vertices was outside
// we need to scissor against the destination rectangle
- if(clipflag & 7)
+ if(clipflag & 7)
{
::basegfx::B2DPoint buf0[16];
::basegfx::B2DPoint buf1[16];
@@ -832,12 +832,12 @@ namespace basegfx
vertex_count = scissorLineSegment(buf0,vertex_count,buf1,&sp[2],rRange);
vertex_count = scissorLineSegment(buf1,vertex_count,buf0,&sp[3],rRange);
- if(vertex_count >= 3)
+ if(vertex_count >= 3)
{
// convert triangle fan back to triangle list.
::basegfx::B2DPoint v0(buf0[0]);
::basegfx::B2DPoint v1(buf0[1]);
- for(sal_uInt32 i=2; i<vertex_count; ++i)
+ for(sal_uInt32 i=2; i<vertex_count; ++i)
{
::basegfx::B2DPoint v2(buf0[i]);
aResult.append(v0);
@@ -847,10 +847,10 @@ namespace basegfx
}
}
}
- else
+ else
{
// the last triangle has not been altered, simply copy to result
- for(sal_uInt32 i=0; i<3; ++i)
+ for(sal_uInt32 i=0; i<3; ++i)
aResult.append(stack[i]);
}
}
diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
index ac118e73356f..31c4a518a0b1 100644
--- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
+++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@
//////////////////////////////////////////////////////////////////////////////
// defines
-#define SUBDIVIDE_FOR_CUT_TEST_COUNT (50)
+#define SUBDIVIDE_FOR_CUT_TEST_COUNT (50)
//////////////////////////////////////////////////////////////////////////////
@@ -56,13 +56,13 @@ namespace basegfx
class temporaryPoint
{
- B2DPoint maPoint; // the new point
- sal_uInt32 mnIndex; // index after which to insert
- double mfCut; // parametric cut description [0.0 .. 1.0]
+ B2DPoint maPoint; // the new point
+ sal_uInt32 mnIndex; // index after which to insert
+ double mfCut; // parametric cut description [0.0 .. 1.0]
public:
temporaryPoint(const B2DPoint& rNewPoint, sal_uInt32 nIndex, double fCut)
- : maPoint(rNewPoint),
+ : maPoint(rNewPoint),
mnIndex(nIndex),
mfCut(fCut)
{
@@ -91,9 +91,9 @@ namespace basegfx
class temporaryPolygonData
{
- B2DPolygon maPolygon;
- B2DRange maRange;
- temporaryPointVector maPoints;
+ B2DPolygon maPolygon;
+ B2DRange maRange;
+ temporaryPointVector maPoints;
public:
const B2DPolygon& getPolygon() const { return maPolygon; }
@@ -127,12 +127,12 @@ namespace basegfx
// add start point
aRetval.append(rCandidate.getB2DPoint(0));
-
+
for(sal_uInt32 a(0L); a < nCount; a++)
{
// get edge
rCandidate.getBezierSegment(a, aEdge);
-
+
if(aEdge.isBezier())
{
// control vectors involved for this edge
@@ -172,7 +172,7 @@ namespace basegfx
aRetval.append(aNewPoint);
}
}
-
+
// add edge end point
aRetval.append(aEdge.getEndPoint());
}
@@ -184,7 +184,7 @@ namespace basegfx
// set closed flag and correct last point (which is added double now).
tools::closeWithGeometryChange(aRetval);
}
-
+
return aRetval;
}
else
@@ -239,8 +239,8 @@ namespace basegfx
////////////////////////////////////////////////////////////////////////////////
void findEdgeCutsTwoEdges(
- const B2DPoint& rCurrA, const B2DPoint& rNextA,
- const B2DPoint& rCurrB, const B2DPoint& rNextB,
+ const B2DPoint& rCurrA, const B2DPoint& rNextA,
+ const B2DPoint& rCurrB, const B2DPoint& rNextB,
sal_uInt32 nIndA, sal_uInt32 nIndB,
temporaryPointVector& rTempPointsA, temporaryPointVector& rTempPointsB)
{
@@ -416,7 +416,7 @@ namespace basegfx
void findEdgeCutsBezierAndEdge(
const B2DCubicBezier& rCubicA,
- const B2DPoint& rCurrB, const B2DPoint& rNextB,
+ const B2DPoint& rCurrB, const B2DPoint& rNextB,
sal_uInt32 nIndA, sal_uInt32 nIndB,
temporaryPointVector& rTempPointsA, temporaryPointVector& rTempPointsB)
{
@@ -430,7 +430,7 @@ namespace basegfx
// create subdivided polygons and find cuts between them
// Keep adaptiveSubdivideByCount due to needed quality
- aTempPolygonA.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
+ aTempPolygonA.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
aTempPolygonA.append(rCubicA.getStartPoint());
rCubicA.adaptiveSubdivideByCount(aTempPolygonA, SUBDIVIDE_FOR_CUT_TEST_COUNT);
aTempPolygonEdge.append(rCurrB);
@@ -471,10 +471,10 @@ namespace basegfx
// create subdivided polygons and find cuts between them
// Keep adaptiveSubdivideByCount due to needed quality
- aTempPolygonA.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
+ aTempPolygonA.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
aTempPolygonA.append(rCubicA.getStartPoint());
rCubicA.adaptiveSubdivideByCount(aTempPolygonA, SUBDIVIDE_FOR_CUT_TEST_COUNT);
- aTempPolygonB.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
+ aTempPolygonB.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
aTempPolygonB.append(rCubicB.getStartPoint());
rCubicB.adaptiveSubdivideByCount(aTempPolygonB, SUBDIVIDE_FOR_CUT_TEST_COUNT);
@@ -515,7 +515,7 @@ namespace basegfx
// create subdivided polygon and find cuts on it
// Keep adaptiveSubdivideByCount due to needed quality
- aTempPolygon.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
+ aTempPolygon.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
aTempPolygon.append(rCubicA.getStartPoint());
rCubicA.adaptiveSubdivideByCount(aTempPolygon, SUBDIVIDE_FOR_CUT_TEST_COUNT);
findCuts(aTempPolygon, aTempPointVector);
@@ -595,7 +595,7 @@ namespace basegfx
else
{
// test for simple edge-edge cuts
- findEdgeCutsTwoEdges(aCubicA.getStartPoint(), aCubicA.getEndPoint(), aCubicB.getStartPoint(), aCubicB.getEndPoint(),
+ findEdgeCutsTwoEdges(aCubicA.getStartPoint(), aCubicA.getEndPoint(), aCubicB.getStartPoint(), aCubicB.getEndPoint(),
a, b, rTempPoints, rTempPoints);
}
}
@@ -616,7 +616,7 @@ namespace basegfx
{
const B2DPoint aNextB(rCandidate.getB2DPoint(b + 1L == nPointCount ? 0L : b + 1L));
const B2DRange aRangeB(aCurrB, aNextB);
-
+
// consecutive segments touch of course
bool bOverlap = false;
if( b > a+1)
@@ -627,7 +627,7 @@ namespace basegfx
{
findEdgeCutsTwoEdges(aCurrA, aNextA, aCurrB, aNextB, a, b, rTempPoints, rTempPoints);
}
-
+
// prepare next step
aCurrB = aNextB;
}
@@ -654,13 +654,13 @@ namespace basegfx
////////////////////////////////////////////////////////////////////////////////
void findTouchesOnEdge(
- const B2DPoint& rCurr, const B2DPoint& rNext, const B2DPolygon& rPointPolygon,
+ const B2DPoint& rCurr, const B2DPoint& rNext, const B2DPolygon& rPointPolygon,
sal_uInt32 nInd, temporaryPointVector& rTempPoints)
{
// find out if points from rPointPolygon are positioned on given edge. If Yes, add
// points there to represent touches (which may be enter or leave nodes later).
const sal_uInt32 nPointCount(rPointPolygon.count());
-
+
if(nPointCount)
{
const B2DRange aRange(rCurr, rNext);
@@ -668,7 +668,7 @@ namespace basegfx
B2DVector aNormalizedEdgeVector(aEdgeVector);
aNormalizedEdgeVector.normalize();
bool bTestUsingX(fabs(aEdgeVector.getX()) > fabs(aEdgeVector.getY()));
-
+
for(sal_uInt32 a(0L); a < nPointCount; a++)
{
const B2DPoint aTestPoint(rPointPolygon.getB2DPoint(a));
@@ -681,7 +681,7 @@ namespace basegfx
if(areParallel(aNormalizedEdgeVector, aTestVector))
{
- const double fCut((bTestUsingX)
+ const double fCut((bTestUsingX)
? aTestVector.getX() / aEdgeVector.getX()
: aTestVector.getY() / aEdgeVector.getY());
const double fZero(0.0);
@@ -701,7 +701,7 @@ namespace basegfx
////////////////////////////////////////////////////////////////////////////////
void findTouchesOnCurve(
- const B2DCubicBezier& rCubicA, const B2DPolygon& rPointPolygon,
+ const B2DCubicBezier& rCubicA, const B2DPolygon& rPointPolygon,
sal_uInt32 nInd, temporaryPointVector& rTempPoints)
{
// find all points from rPointPolygon which touch the given bezier segment. Add an entry
@@ -712,7 +712,7 @@ namespace basegfx
// create subdivided polygon and find cuts on it
// Keep adaptiveSubdivideByCount due to needed quality
- aTempPolygon.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
+ aTempPolygon.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
aTempPolygon.append(rCubicA.getStartPoint());
rCubicA.adaptiveSubdivideByCount(aTempPolygon, SUBDIVIDE_FOR_CUT_TEST_COUNT);
findTouches(aTempPolygon, rPointPolygon, aTempPointVector);
@@ -788,7 +788,7 @@ namespace basegfx
void findCuts(const B2DPolygon& rCandidateA, const B2DPolygon& rCandidateB, temporaryPointVector& rTempPointsA, temporaryPointVector& rTempPointsB)
{
- // find out if edges from both polygons cut. If so, add entries to rTempPoints which
+ // find out if edges from both polygons cut. If so, add entries to rTempPoints which
// should be added to the polygons accordingly
const sal_uInt32 nPointCountA(rCandidateA.count());
const sal_uInt32 nPointCountB(rCandidateB.count());
@@ -847,7 +847,7 @@ namespace basegfx
else
{
// test for simple edge-edge cuts
- findEdgeCutsTwoEdges(aCubicA.getStartPoint(), aCubicA.getEndPoint(), aCubicB.getStartPoint(), aCubicB.getEndPoint(),
+ findEdgeCutsTwoEdges(aCubicA.getStartPoint(), aCubicA.getEndPoint(), aCubicB.getStartPoint(), aCubicB.getEndPoint(),
a, b, rTempPointsA, rTempPointsB);
}
}
@@ -911,7 +911,7 @@ namespace basegfx
if(rCandidate.count())
{
temporaryPointVector aTempPoints;
-
+
findTouches(rCandidate, rCandidate, aTempPoints);
findCuts(rCandidate, aTempPoints);
@@ -1016,11 +1016,11 @@ namespace basegfx
{
temporaryPointVector aTempPoints;
temporaryPointVector aTempPointsUnused;
-
+
for(sal_uInt32 a(0L); a < rMask.count(); a++)
{
const B2DPolygon aPartMask(rMask.getB2DPolygon(a));
-
+
findTouches(rCandidate, aPartMask, aTempPoints);
findCuts(rCandidate, aPartMask, aTempPoints, aTempPointsUnused);
}
@@ -1052,7 +1052,7 @@ namespace basegfx
B2DPolygon addPointsAtCuts(const B2DPolygon& rCandidate, const B2DPoint& rStart, const B2DPoint& rEnd)
{
const sal_uInt32 nCount(rCandidate.count());
-
+
if(nCount && !rStart.equal(rEnd))
{
const B2DRange aPolygonRange(rCandidate.getB2DRange());
@@ -1114,7 +1114,7 @@ namespace basegfx
{
const sal_uInt32 nCountA(rCandidate.count());
const sal_uInt32 nCountM(rPolyMask.count());
-
+
if(nCountA && nCountM)
{
const B2DRange aRangeA(rCandidate.getB2DRange());
@@ -1208,7 +1208,7 @@ namespace basegfx
if(rCandidate.count())
{
temporaryPointVector aTempPoints;
-
+
findCuts(rCandidate, aTempPoints);
return mergeTemporaryPointsAndPolygon(rCandidate, aTempPoints);
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index 5f053b4b22e2..1967e6ed098f 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,10 +47,10 @@
#include <numeric>
#include <limits>
-// #i37443#
-#define ANGLE_BOUND_START_VALUE (2.25)
-#define ANGLE_BOUND_MINIMUM_VALUE (0.1)
-#define COUNT_SUBDIVIDE_DEFAULT (4L)
+// #i37443#
+#define ANGLE_BOUND_START_VALUE (2.25)
+#define ANGLE_BOUND_MINIMUM_VALUE (0.1)
+#define COUNT_SUBDIVIDE_DEFAULT (4L)
#ifdef DBG_UTIL
static double fAngleBoundStartValue = ANGLE_BOUND_START_VALUE;
#endif
@@ -103,7 +103,7 @@ namespace basegfx
{
// #i80172# Removed unnecessary assertion
// OSL_ENSURE(!rCandidate.isClosed(), "checkClosed: already closed (!)");
-
+
if(rCandidate.count() > 1 && rCandidate.getB2DPoint(0) == rCandidate.getB2DPoint(rCandidate.count() - 1))
{
closeWithGeometryChange(rCandidate);
@@ -191,13 +191,13 @@ namespace basegfx
const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1);
B2DCubicBezier aBezier;
aBezier.setStartPoint(rCandidate.getB2DPoint(0));
-
+
// perf: try to avoid too many realloctions by guessing the result's pointcount
aRetval.reserve(nPointCount*4);
-
+
// add start point (always)
aRetval.append(aBezier.getStartPoint());
-
+
for(sal_uInt32 a(0L); a < nEdgeCount; a++)
{
// get next and control points
@@ -274,13 +274,13 @@ namespace basegfx
const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1);
B2DCubicBezier aBezier;
aBezier.setStartPoint(rCandidate.getB2DPoint(0));
-
+
// perf: try to avoid too many realloctions by guessing the result's pointcount
aRetval.reserve(nPointCount*4);
-
+
// add start point (always)
aRetval.append(aBezier.getStartPoint());
-
+
// #i37443# prepare convenient AngleBound if none was given
if(0.0 == fAngleBound)
{
@@ -294,7 +294,7 @@ namespace basegfx
{
fAngleBound = 0.1;
}
-
+
for(sal_uInt32 a(0L); a < nEdgeCount; a++)
{
// get next and control points
@@ -347,19 +347,19 @@ namespace basegfx
const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1);
B2DCubicBezier aBezier;
aBezier.setStartPoint(rCandidate.getB2DPoint(0));
-
+
// perf: try to avoid too many realloctions by guessing the result's pointcount
aRetval.reserve(nPointCount*4);
-
+
// add start point (always)
aRetval.append(aBezier.getStartPoint());
-
+
// #i37443# prepare convenient count if none was given
if(0L == nCount)
{
nCount = COUNT_SUBDIVIDE_DEFAULT;
}
-
+
for(sal_uInt32 a(0L); a < nEdgeCount; a++)
{
// get next and control points
@@ -420,7 +420,7 @@ namespace basegfx
{
const B2DPoint aPreviousPoint(aCurrentPoint);
aCurrentPoint = aCandidate.getB2DPoint(a);
-
+
// cross-over in Y?
const bool bCompYA(fTools::more(aPreviousPoint.getY(), rPoint.getY()));
const bool bCompYB(fTools::more(aCurrentPoint.getY(), rPoint.getY()));
@@ -430,7 +430,7 @@ namespace basegfx
// cross-over in X?
const bool bCompXA(fTools::more(aPreviousPoint.getX(), rPoint.getX()));
const bool bCompXB(fTools::more(aCurrentPoint.getX(), rPoint.getX()));
-
+
if(bCompXA == bCompXB)
{
if(bCompXA)
@@ -489,7 +489,7 @@ namespace basegfx
for(sal_uInt32 a(0); a < nPointCount; a++)
{
aRetval.expand(rCandidate.getB2DPoint(a));
-
+
if(bControlPointsUsed)
{
aRetval.expand(rCandidate.getNextControlPoint(a));
@@ -593,7 +593,7 @@ namespace basegfx
{
double fRetval(0.0);
const sal_uInt32 nPointCount(rCandidate.count());
-
+
if(nPointCount)
{
const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1L);
@@ -743,7 +743,7 @@ namespace basegfx
{
// get as bezier segment
const B2DCubicBezier aBezierSegment(
- aRetval, rCandidate.getNextControlPoint(nIndex),
+ aRetval, rCandidate.getNextControlPoint(nIndex),
rCandidate.getPrevControlPoint(nNextIndex), aNextPoint);
if(aBezierSegment.isBezier())
@@ -752,12 +752,12 @@ namespace basegfx
// length and bezier distances
const B2DCubicBezierHelper aBezierSegmentHelper(aBezierSegment);
const double fBezierDistance(aBezierSegmentHelper.distanceToRelative(fDistance));
-
+
aRetval = aBezierSegment.interpolatePoint(fBezierDistance);
bDone = true;
}
}
-
+
if(!bDone)
{
const double fRelativeInEdge(fDistance / fEdgeLength);
@@ -849,7 +849,7 @@ namespace basegfx
if(fTools::equalZero(fEdgeLength))
{
aRetval.append(rCandidate.getB2DPoint(a));
-
+
if(rCandidate.areControlPointsUsed())
{
aRetval.setNextControlPoint(aRetval.count() - 1, rCandidate.getNextControlPoint(a));
@@ -861,11 +861,11 @@ namespace basegfx
const B2DPoint aStart(rCandidate.getB2DPoint(a));
const B2DPoint aEnd(rCandidate.getB2DPoint(nNextIndex));
bool bDone(false);
-
+
if(rCandidate.areControlPointsUsed())
{
const B2DCubicBezier aBezierSegment(
- aStart, rCandidate.getNextControlPoint(a),
+ aStart, rCandidate.getNextControlPoint(a),
rCandidate.getPrevControlPoint(nNextIndex), aEnd);
if(aBezierSegment.isBezier())
@@ -882,7 +882,7 @@ namespace basegfx
bDone = true;
}
}
-
+
if(!bDone)
{
const double fRelValue((fFrom - fPositionOfStart) / fEdgeLength);
@@ -907,7 +907,7 @@ namespace basegfx
{
const sal_uInt32 nNextIndex((a + 1) % nPointCount);
aRetval.append(rCandidate.getB2DPoint(nNextIndex));
-
+
if(rCandidate.areControlPointsUsed())
{
aRetval.setPrevControlPoint(aRetval.count() - 1, rCandidate.getPrevControlPoint(nNextIndex));
@@ -919,11 +919,11 @@ namespace basegfx
const B2DPoint aStart(rCandidate.getB2DPoint(a));
const B2DPoint aEnd(rCandidate.getB2DPoint(nNextIndex));
bool bDone(false);
-
+
if(rCandidate.areControlPointsUsed())
{
const B2DCubicBezier aBezierSegment(
- aStart, rCandidate.getNextControlPoint(a),
+ aStart, rCandidate.getNextControlPoint(a),
rCandidate.getPrevControlPoint(nNextIndex), aEnd);
if(aBezierSegment.isBezier())
@@ -958,7 +958,7 @@ namespace basegfx
// add segments end point
const sal_uInt32 nNextIndex((a + 1) % nPointCount);
aRetval.append(rCandidate.getB2DPoint(nNextIndex));
-
+
if(rCandidate.areControlPointsUsed())
{
aRetval.setPrevControlPoint(aRetval.count() - 1, rCandidate.getPrevControlPoint(nNextIndex));
@@ -994,8 +994,8 @@ namespace basegfx
CutFlagValue findCut(
const B2DPolygon& rCandidate,
- sal_uInt32 nIndex1, sal_uInt32 nIndex2,
- CutFlagValue aCutFlags,
+ sal_uInt32 nIndex1, sal_uInt32 nIndex2,
+ CutFlagValue aCutFlags,
double* pCut1, double* pCut2)
{
CutFlagValue aRetval(CUTFLAG_NONE);
@@ -1025,7 +1025,7 @@ namespace basegfx
CutFlagValue findCut(
const B2DPolygon& rCandidate1, sal_uInt32 nIndex1,
const B2DPolygon& rCandidate2, sal_uInt32 nIndex2,
- CutFlagValue aCutFlags,
+ CutFlagValue aCutFlags,
double* pCut1, double* pCut2)
{
CutFlagValue aRetval(CUTFLAG_NONE);
@@ -1065,7 +1065,7 @@ namespace basegfx
bool bFinished(!((bool)(aCutFlags & CUTFLAG_ALL)));
// test for same points?
- if(!bFinished
+ if(!bFinished
&& (aCutFlags & (CUTFLAG_START1|CUTFLAG_END1))
&& (aCutFlags & (CUTFLAG_START2|CUTFLAG_END2)))
{
@@ -1133,7 +1133,7 @@ namespace basegfx
aRetval = (CUTFLAG_LINE|CUTFLAG_START1);
}
}
-
+
if(!bFinished && (aCutFlags & CUTFLAG_START2))
{
// start2 on line 1 ?
@@ -1155,7 +1155,7 @@ namespace basegfx
aRetval = (CUTFLAG_LINE|CUTFLAG_END1);
}
}
-
+
if(!bFinished && (aCutFlags & CUTFLAG_END2))
{
// end2 on line 1 ?
@@ -1224,8 +1224,8 @@ namespace basegfx
bool isPointOnEdge(
const B2DPoint& rPoint,
- const B2DPoint& rEdgeStart,
- const B2DVector& rEdgeDelta,
+ const B2DPoint& rEdgeStart,
+ const B2DVector& rEdgeDelta,
double* pCut)
{
bool bDeltaXIsZero(fTools::equalZero(rEdgeDelta.getX()));
@@ -1368,7 +1368,7 @@ namespace basegfx
const double fBezierSplitStart(aCubicBezierHelper.distanceToRelative(fLastDotDashMovingLength));
const double fBezierSplitEnd(aCubicBezierHelper.distanceToRelative(fDotDashMovingLength));
B2DCubicBezier aBezierSnippet(aCurrentEdge.snippet(fBezierSplitStart, fBezierSplitEnd));
-
+
if(!aSnippet.count())
{
aSnippet.append(aBezierSnippet.getStartPoint());
@@ -1387,7 +1387,7 @@ namespace basegfx
aSnippet.clear();
}
-
+
// prepare next DotDashArray step and flip line/gap flag
fLastDotDashMovingLength = fDotDashMovingLength;
fDotDashMovingLength += rDotDashArray[(++nDotDashIndex) % nDotDashCount];
@@ -1397,14 +1397,14 @@ namespace basegfx
// append closing snippet [fLastDotDashMovingLength, fEdgeLength]
const bool bHandleLine(bIsLine && pLineTarget);
const bool bHandleGap(!bIsLine && pGapTarget);
-
+
if(bHandleLine || bHandleGap)
{
B2DCubicBezier aRight;
const double fBezierSplit(aCubicBezierHelper.distanceToRelative(fLastDotDashMovingLength));
aCurrentEdge.split(fBezierSplit, 0, &aRight);
-
+
if(!aSnippet.count())
{
aSnippet.append(aRight.getStartPoint());
@@ -1412,7 +1412,7 @@ namespace basegfx
aSnippet.appendBezierSegment(aRight.getControlPointA(), aRight.getControlPointB(), aRight.getEndPoint());
}
-
+
// prepare move to next edge
fDotDashMovingLength -= fEdgeLength;
}
@@ -1450,7 +1450,7 @@ namespace basegfx
aSnippet.clear();
}
-
+
// prepare next DotDashArray step and flip line/gap flag
fLastDotDashMovingLength = fDotDashMovingLength;
fDotDashMovingLength += rDotDashArray[(++nDotDashIndex) % nDotDashCount];
@@ -1460,7 +1460,7 @@ namespace basegfx
// append snippet [fLastDotDashMovingLength, fEdgeLength]
const bool bHandleLine(bIsLine && pLineTarget);
const bool bHandleGap(!bIsLine && pGapTarget);
-
+
if(bHandleLine || bHandleGap)
{
if(!aSnippet.count())
@@ -1470,12 +1470,12 @@ namespace basegfx
aSnippet.append(aCurrentEdge.getEndPoint());
}
-
+
// prepare move to next edge
fDotDashMovingLength -= fEdgeLength;
}
}
-
+
// prepare next edge step (end point gets new start point)
aCurrentEdge.setStartPoint(aCurrentEdge.getEndPoint());
}
@@ -1632,7 +1632,7 @@ namespace basegfx
return false;
}
- // test if point is inside epsilon-range around the given Polygon. Can be used
+ // test if point is inside epsilon-range around the given Polygon. Can be used
// for HitTesting. The epsilon-range is defined to be the tube around the polygon
// with distance fDistance and rounded edges (start and end point).
bool isInEpsilonRange(const B2DPolygon& rCandidate, const B2DPoint& rTestPosition, double fDistance)
@@ -1640,7 +1640,7 @@ namespace basegfx
// force to non-bezier polygon
const B2DPolygon aCandidate(rCandidate.getDefaultAdaptiveSubdivision());
const sal_uInt32 nPointCount(aCandidate.count());
-
+
if(nPointCount)
{
const sal_uInt32 nEdgeCount(aCandidate.isClosed() ? nPointCount : nPointCount - 1L);
@@ -1832,7 +1832,7 @@ namespace basegfx
// close
aRetval.setClosed( true );
-
+
return aRetval;
}
@@ -1850,7 +1850,7 @@ namespace basegfx
// close
aRetval.setClosed( true );
}
-
+
return aRetval;
}
@@ -1865,7 +1865,7 @@ namespace basegfx
const double fKappa((M_SQRT2 - 1.0) * 4.0 / 3.0);
const double fScaledKappa(fKappa * (1.0 / STEPSPERQUARTER));
const B2DHomMatrix aRotateMatrix(createRotateB2DHomMatrix(F_PI2 / STEPSPERQUARTER));
-
+
B2DPoint aPoint(1.0, 0.0);
B2DPoint aForward(1.0, fScaledKappa);
B2DPoint aBackward(1.0, -fScaledKappa);
@@ -1901,7 +1901,7 @@ namespace basegfx
case 1 :
{
static B2DPolygon aUnitCircleStartQuadrantOne;
-
+
if(!aUnitCircleStartQuadrantOne.count())
{
::osl::Mutex m_mutex;
@@ -1913,7 +1913,7 @@ namespace basegfx
case 2 :
{
static B2DPolygon aUnitCircleStartQuadrantTwo;
-
+
if(!aUnitCircleStartQuadrantTwo.count())
{
::osl::Mutex m_mutex;
@@ -1925,7 +1925,7 @@ namespace basegfx
case 3 :
{
static B2DPolygon aUnitCircleStartQuadrantThree;
-
+
if(!aUnitCircleStartQuadrantThree.count())
{
::osl::Mutex m_mutex;
@@ -1937,7 +1937,7 @@ namespace basegfx
default : // case 0 :
{
static B2DPolygon aUnitCircleStartQuadrantZero;
-
+
if(!aUnitCircleStartQuadrantZero.count())
{
::osl::Mutex m_mutex;
@@ -1955,7 +1955,7 @@ namespace basegfx
const B2DHomMatrix aMatrix(createScaleTranslateB2DHomMatrix(fRadiusX, fRadiusY, rCenter.getX(), rCenter.getY()));
aRetval.transform(aMatrix);
-
+
return aRetval;
}
@@ -2018,7 +2018,7 @@ namespace basegfx
double fSegEndRad((nStartSegment + 1) * fAnglePerSegment);
double fFactor(fScaledKappa * ((fSegEndRad - fStart) / fAnglePerSegment));
B2DPoint aSegEnd(cos(fSegEndRad), sin(fSegEndRad));
-
+
aRetval.appendBezierSegment(
aSegStart + (B2DPoint(-aSegStart.getY(), aSegStart.getX()) * fFactor),
aSegEnd - (B2DPoint(-aSegEnd.getY(), aSegEnd.getX()) * fFactor),
@@ -2046,7 +2046,7 @@ namespace basegfx
const double fSegStartRad(nSegment * fAnglePerSegment);
fFactor = fScaledKappa * ((fEnd - fSegStartRad) / fAnglePerSegment);
aSegEnd = B2DPoint(cos(fEnd), sin(fEnd));
-
+
aRetval.appendBezierSegment(
aSegStart + (B2DPoint(-aSegStart.getY(), aSegStart.getX()) * fFactor),
aSegEnd - (B2DPoint(-aSegEnd.getY(), aSegEnd.getX()) * fFactor),
@@ -2074,7 +2074,7 @@ namespace basegfx
{
OSL_ENSURE(!rCandidate.areControlPointsUsed(), "hasNeutralPoints: ATM works not for curves (!)");
const sal_uInt32 nPointCount(rCandidate.count());
-
+
if(nPointCount > 2L)
{
B2DPoint aPrevPoint(rCandidate.getB2DPoint(nPointCount - 1L));
@@ -2143,7 +2143,7 @@ namespace basegfx
// copy closed state
aRetval.setClosed(rCandidate.isClosed());
-
+
return aRetval;
}
else
@@ -2226,7 +2226,7 @@ namespace basegfx
{
const double fZero(0.0);
const double fOne(1.0);
- const double fParamTestOnCurr(fabs(aEdgeVector.getX()) > fabs(aEdgeVector.getY())
+ const double fParamTestOnCurr(fabs(aEdgeVector.getX()) > fabs(aEdgeVector.getY())
? aTestVector.getX() / aEdgeVector.getX()
: aTestVector.getY() / aEdgeVector.getY());
@@ -2399,7 +2399,7 @@ namespace basegfx
if( !bNullVertex )
{
// 2D cross product - is 1 for CW and -1 for CCW turns
- const int nCrossProduct( nHorizontalEdgeType*nCurrVerticalEdgeType -
+ const int nCrossProduct( nHorizontalEdgeType*nCurrVerticalEdgeType -
nVerticalEdgeType*nCurrHorizontalEdgeType );
if( !nCrossProduct )
@@ -2422,9 +2422,9 @@ namespace basegfx
if( (nCrossProduct == 1) != bCWPolygon )
return false;
}
-
+
++nNumTurns;
-
+
// More than four 90 degree turns are an
// indication that this must not be a rectangle.
if( nNumTurns > 4 )
@@ -2432,9 +2432,9 @@ namespace basegfx
}
// store current state for the next turn
- nVerticalEdgeType = nCurrVerticalEdgeType;
+ nVerticalEdgeType = nCurrVerticalEdgeType;
nHorizontalEdgeType = nCurrHorizontalEdgeType;
- bNullVertex = false; // won't reach this line,
+ bNullVertex = false; // won't reach this line,
// if bCurrNullVertex is
// true - see above
}
@@ -2506,7 +2506,7 @@ namespace basegfx
const B2DVector aVector2(rTestPoint - rPointA);
const double fDividend((aVector2.getX() * aVector1.getX()) + (aVector2.getY() * aVector1.getY()));
const double fDivisor((aVector1.getX() * aVector1.getX()) + (aVector1.getY() * aVector1.getY()));
-
+
rCut = fDividend / fDivisor;
const B2DPoint aCutPoint(rPointA + rCut * aVector1);
@@ -2672,7 +2672,7 @@ namespace basegfx
{
aRetval.setPrevControlPoint(a, distort(rCandidate.getPrevControlPoint(a), rOriginal, rTopLeft, rTopRight, rBottomLeft, rBottomRight));
}
-
+
if(!rCandidate.getNextControlPoint(a).equalZero())
{
aRetval.setNextControlPoint(a, distort(rCandidate.getNextControlPoint(a), rOriginal, rTopLeft, rTopRight, rBottomLeft, rBottomRight));
@@ -2799,7 +2799,7 @@ namespace basegfx
bRetval = true;
}
-
+
if(rCandidate.isNextControlPointUsed(nIndex))
{
if(!rCandidate.isClosed() && nIndex == nPointCount + 1)
@@ -2815,7 +2815,7 @@ namespace basegfx
bRetval = true;
}
-
+
break;
}
case CONTINUITY_C1 :
@@ -2830,7 +2830,7 @@ namespace basegfx
aVectorPrev.normalize();
aVectorNext.normalize();
const B2VectorOrientation aOrientation(getOrientation(aVectorPrev, aVectorNext));
-
+
if(ORIENTATION_NEUTRAL == aOrientation && aVectorPrev.scalar(aVectorNext) < 0.0)
{
// parallel and opposite direction; check length
@@ -2841,9 +2841,9 @@ namespace basegfx
const sal_uInt32 nNextIndex((nIndex + 1) % nPointCount);
const double fLenPrevEdge(B2DVector(rCandidate.getB2DPoint(nPrevIndex) - aCurrentPoint).getLength() * (1.0 / 3.0));
const double fLenNextEdge(B2DVector(rCandidate.getB2DPoint(nNextIndex) - aCurrentPoint).getLength() * (1.0 / 3.0));
-
- rCandidate.setControlPoints(nIndex,
- aCurrentPoint + (aVectorPrev * fLenPrevEdge),
+
+ rCandidate.setControlPoints(nIndex,
+ aCurrentPoint + (aVectorPrev * fLenPrevEdge),
aCurrentPoint + (aVectorNext * fLenNextEdge));
bRetval = true;
}
@@ -2855,14 +2855,14 @@ namespace basegfx
if(ORIENTATION_POSITIVE == aOrientation)
{
- rCandidate.setControlPoints(nIndex,
- aCurrentPoint - (aNormalizedPerpendicular * fLenPrev),
+ rCandidate.setControlPoints(nIndex,
+ aCurrentPoint - (aNormalizedPerpendicular * fLenPrev),
aCurrentPoint + (aNormalizedPerpendicular * fLenNext));
}
else
{
- rCandidate.setControlPoints(nIndex,
- aCurrentPoint + (aNormalizedPerpendicular * fLenPrev),
+ rCandidate.setControlPoints(nIndex,
+ aCurrentPoint + (aNormalizedPerpendicular * fLenPrev),
aCurrentPoint - (aNormalizedPerpendicular * fLenNext));
}
@@ -2882,14 +2882,14 @@ namespace basegfx
aVectorPrev.normalize();
aVectorNext.normalize();
const B2VectorOrientation aOrientation(getOrientation(aVectorPrev, aVectorNext));
-
+
if(ORIENTATION_NEUTRAL == aOrientation && aVectorPrev.scalar(aVectorNext) < 0.0)
{
// parallel and opposite direction; set length. Use one direction for better numerical correctness
const B2DVector aScaledDirection(aVectorPrev * fCommonLength);
rCandidate.setControlPoints(nIndex,
- aCurrentPoint + aScaledDirection,
+ aCurrentPoint + aScaledDirection,
aCurrentPoint - aScaledDirection);
}
else
@@ -2900,14 +2900,14 @@ namespace basegfx
if(ORIENTATION_POSITIVE == aOrientation)
{
- rCandidate.setControlPoints(nIndex,
- aCurrentPoint - aPerpendicular,
+ rCandidate.setControlPoints(nIndex,
+ aCurrentPoint - aPerpendicular,
aCurrentPoint + aPerpendicular);
}
else
{
- rCandidate.setControlPoints(nIndex,
- aCurrentPoint + aPerpendicular,
+ rCandidate.setControlPoints(nIndex,
+ aCurrentPoint + aPerpendicular,
aCurrentPoint - aPerpendicular);
}
}
@@ -3044,7 +3044,7 @@ namespace basegfx
{
const double fSplitPoint(1.0 / b);
B2DCubicBezier aLeftPart;
-
+
aCurrentEdge.split(fSplitPoint, &aLeftPart, &aCurrentEdge);
aRetval.appendBezierSegment(aLeftPart.getControlPointA(), aLeftPart.getControlPointB(), aLeftPart.getEndPoint());
}
@@ -3066,7 +3066,7 @@ namespace basegfx
aCurrentEdge.setStartPoint(aSplitPoint);
}
}
-
+
// copy remaining segment to target
aRetval.append(aCurrentEdge.getEndPoint());
}
@@ -3115,14 +3115,14 @@ namespace basegfx
}
bool isPolyPolygonEqualRectangle( const B2DPolyPolygon& rPolyPoly,
- const B2DRange& rRect )
+ const B2DRange& rRect )
{
// exclude some cheap cases first
if( rPolyPoly.count() != 1 )
return false;
// fill array with rectangle vertices
- const B2DPoint aPoints[] =
+ const B2DPoint aPoints[] =
{
B2DPoint(rRect.getMinX(),rRect.getMinY()),
B2DPoint(rRect.getMaxX(),rRect.getMinY()),
@@ -3143,9 +3143,9 @@ namespace basegfx
{
const B2DPoint p(rPoly.getB2DPoint(i));
- // 1 | x0 y0 1 |
+ // 1 | x0 y0 1 |
// A = - | x1 y1 1 |
- // 2 | x2 y2 1 |
+ // 2 | x2 y2 1 |
double fDoubleArea = p2.getX()*p.getY() -
p2.getY()*p.getX() -
p1.getX()*p.getY() +
@@ -3173,7 +3173,7 @@ namespace basegfx
B2DPolygon createSimplifiedPolygon( const B2DPolygon& rCandidate )
{
const sal_uInt32 nCount(rCandidate.count());
-
+
if(nCount && rCandidate.areControlPointsUsed())
{
const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nCount : nCount - 1);
@@ -3200,7 +3200,7 @@ namespace basegfx
{
// split off left, now extremum-free part and append
B2DCubicBezier aLeft;
-
+
aSegment.split(fExtremumPos, &aLeft, &aSegment);
aLeft.testAndSolveTrivialBezier();
aSegment.testAndSolveTrivialBezier();
@@ -3388,7 +3388,7 @@ namespace basegfx
const double fScalar(fPositionInEdge / fEdgeLength);
aRetval.append(aCurrent + (aEdge * fScalar));
fPositionInEdge += fLength;
-
+
if(bEndActive)
{
fAbsolutePosition += fLength;
@@ -3434,12 +3434,12 @@ namespace basegfx
{
fWaveWidth = 0.0;
}
-
+
if(fWaveHeight < 0.0)
{
fWaveHeight = 0.0;
}
-
+
const bool bHasWidth(!fTools::equalZero(fWaveWidth));
const bool bHasHeight(!fTools::equalZero(fWaveHeight));
@@ -3492,7 +3492,7 @@ namespace basegfx
{
// no width -> no waveline, stay empty and return
}
-
+
return aRetval;
}
@@ -3554,7 +3554,7 @@ namespace basegfx
if(nPointCount > 1)
{
- // Start by copying the source polygon to get a writeable copy. The closed state is
+ // Start by copying the source polygon to get a writeable copy. The closed state is
// copied by aRetval's initialisation, too, so no need to copy it in this method
B2DPolygon aRetval(rCandidate);
diff --git a/basegfx/source/polygon/b2dpolygontriangulator.cxx b/basegfx/source/polygon/b2dpolygontriangulator.cxx
index 2454a3d1ab58..f489712a88a1 100644
--- a/basegfx/source/polygon/b2dpolygontriangulator.cxx
+++ b/basegfx/source/polygon/b2dpolygontriangulator.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,14 +48,14 @@ namespace basegfx
{
class EdgeEntry
{
- EdgeEntry* mpNext;
- B2DPoint maStart;
- B2DPoint maEnd;
- double mfAtan2;
+ EdgeEntry* mpNext;
+ B2DPoint maStart;
+ B2DPoint maEnd;
+ double mfAtan2;
public:
EdgeEntry(const B2DPoint& rStart, const B2DPoint& rEnd)
- : mpNext(0L),
+ : mpNext(0L),
maStart(rStart),
maEnd(rEnd),
mfAtan2(0.0)
@@ -130,11 +130,11 @@ namespace basegfx
class Triangulator
{
- EdgeEntry* mpList;
- EdgeEntries maStartEntries;
- EdgeEntryPointers maNewEdgeEntries;
- B2DPolygon maResult;
-
+ EdgeEntry* mpList;
+ EdgeEntries maStartEntries;
+ EdgeEntryPointers maNewEdgeEntries;
+ B2DPolygon maResult;
+
void handleClosingEdge(const B2DPoint& rStart, const B2DPoint& rEnd);
bool CheckPointInTriangle(EdgeEntry* pEdgeA, EdgeEntry* pEdgeB, const B2DPoint& rTestPoint);
void createTriangle(const B2DPoint& rA, const B2DPoint& rB, const B2DPoint& rC);
@@ -153,7 +153,7 @@ namespace basegfx
EdgeEntry* pCurr = mpList;
EdgeEntry* pPrev = 0L;
- while(pCurr
+ while(pCurr
&& pCurr->getStart().getY() <= aNew.getStart().getY()
&& *pCurr != aNew)
{
@@ -213,7 +213,7 @@ namespace basegfx
EdgeEntry* pEnd = new EdgeEntry(*pStart);
maNewEdgeEntries.push_back(pStart);
maNewEdgeEntries.push_back(pEnd);
-
+
pStart->setNext(pEnd);
pEnd->setNext(pEdgeA->getNext());
pEdgeA->setNext(pStart);
@@ -234,7 +234,7 @@ namespace basegfx
// consume as long as there are edges
Triangulator::Triangulator(const B2DPolyPolygon& rCandidate)
- : mpList(0L)
+ : mpList(0L)
{
// add all available edges to the single linked local list which will be sorted
// by Y,X,atan2 when adding nodes
@@ -344,7 +344,7 @@ namespace basegfx
{
// look for end point in triange
pTestEdge = pEdgeB->getNext();
-
+
while(bNoPointInTriangle && pTestEdge)
{
if(aRange.getMaxY() < pTestEdge->getStart().getY())
diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx
index af337a5bcc75..5c14997a0e36 100644
--- a/basegfx/source/polygon/b2dpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dpolypolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,9 +43,9 @@
class ImplB2DPolyPolygon
{
- typedef ::std::vector< basegfx::B2DPolygon > PolygonVector;
+ typedef ::std::vector< basegfx::B2DPolygon > PolygonVector;
- PolygonVector maPolygons;
+ PolygonVector maPolygons;
public:
ImplB2DPolyPolygon() : maPolygons()
@@ -202,7 +202,7 @@ public:
namespace basegfx
{
- namespace { struct DefaultPolyPolygon: public rtl::Static<B2DPolyPolygon::ImplType,
+ namespace { struct DefaultPolyPolygon: public rtl::Static<B2DPolyPolygon::ImplType,
DefaultPolyPolygon> {}; }
B2DPolyPolygon::B2DPolyPolygon() :
@@ -257,7 +257,7 @@ namespace basegfx
B2DPolygon B2DPolyPolygon::getB2DPolygon(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolyPolygon->count(), "B2DPolyPolygon access outside range (!)");
-
+
return mpPolyPolygon->getB2DPolygon(nIndex);
}
@@ -287,7 +287,7 @@ namespace basegfx
void B2DPolyPolygon::insert(sal_uInt32 nIndex, const B2DPolygon& rPolygon, sal_uInt32 nCount)
{
OSL_ENSURE(nIndex <= mpPolyPolygon->count(), "B2DPolyPolygon Insert outside range (!)");
-
+
if(nCount)
mpPolyPolygon->insert(nIndex, rPolygon, nCount);
}
@@ -325,7 +325,7 @@ namespace basegfx
void B2DPolyPolygon::insert(sal_uInt32 nIndex, const B2DPolyPolygon& rPolyPolygon)
{
OSL_ENSURE(nIndex <= mpPolyPolygon->count(), "B2DPolyPolygon Insert outside range (!)");
-
+
if(rPolyPolygon.count())
mpPolyPolygon->insert(nIndex, rPolyPolygon);
}
@@ -339,11 +339,11 @@ namespace basegfx
void B2DPolyPolygon::remove(sal_uInt32 nIndex, sal_uInt32 nCount)
{
OSL_ENSURE(nIndex + nCount <= mpPolyPolygon->count(), "B2DPolyPolygon Remove outside range (!)");
-
+
if(nCount)
mpPolyPolygon->remove(nIndex, nCount);
}
-
+
void B2DPolyPolygon::clear()
{
mpPolyPolygon = DefaultPolyPolygon::get();
diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx
index b6dad1e917fa..5163f1e128d9 100644
--- a/basegfx/source/polygon/b2dpolypolygoncutter.cxx
+++ b/basegfx/source/polygon/b2dpolypolygoncutter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,9 +52,9 @@ namespace basegfx
struct StripHelper
{
- B2DRange maRange;
- sal_Int32 mnDepth;
- B2VectorOrientation meOrinetation;
+ B2DRange maRange;
+ sal_Int32 mnDepth;
+ B2VectorOrientation meOrinetation;
};
//////////////////////////////////////////////////////////////////////////////
@@ -120,7 +120,7 @@ namespace basegfx
class solver
{
- private:
+ private:
const B2DPolyPolygon maOriginal;
PNV maPNV;
VNV maVNV;
@@ -175,7 +175,7 @@ namespace basegfx
// b is right turn seen from a, test if Test is right of both and so outside (left is seeen as inside)
const bool bBoolA(fTools::lessOrEqual(rVecA.cross(rTest), 0.0));
const bool bBoolB(fTools::moreOrEqual(rVecB.cross(rTest), 0.0));
-
+
return (!(bBoolA && bBoolB));
}
}
@@ -206,7 +206,7 @@ namespace basegfx
// Use maOriginalNext, not maNext to create the original (yet unchanged)
// curve segment. Otherwise, this segment would NOT ne correct.
const B2DVector& rCPB(bPrev ? maVNV[maPNV[rPN.mnIP].mnI].maOriginalNext : maVNV[maPNV[rPN.mnIN].mnI].maPrev);
-
+
return B2DCubicBezier(rStart, rStart + rCPA, rEnd + rCPB, rEnd);
}
@@ -222,7 +222,7 @@ namespace basegfx
// deadend on A (identical edge)
return;
}
-
+
const B2DCubicBezier aNextB(createSegment(rPNb, false));
const B2DCubicBezier aPrevB(createSegment(rPNb, true));
@@ -299,7 +299,7 @@ namespace basegfx
const B2DVector aNextCA(aNextA.interpolatePoint(0.5) - aNextA.getStartPoint());
const B2DVector aPrevCB(aPrevB.interpolatePoint(0.5) - aPrevB.getStartPoint());
const bool bEnter(impLeftOfEdges(aPrevCA, aNextCA, aPrevCB));
-
+
const B2DCubicBezier aNextA2(createSegment(*pPNa2, false));
const B2DCubicBezier aPrevA2(createSegment(*pPNa2, true));
const B2DCubicBezier aNextB2(createSegment(*pPNb2, false));
@@ -307,7 +307,7 @@ namespace basegfx
const B2DVector aNextCA2(aNextA2.interpolatePoint(0.5) - aNextA2.getStartPoint());
const B2DVector aNextCB2(aNextB2.interpolatePoint(0.5) - aNextB2.getStartPoint());
const bool bLeave(impLeftOfEdges(aPrevCA2, aNextCA2, aNextCB2));
-
+
if(bEnter != bLeave)
{
// crossover
@@ -569,7 +569,7 @@ namespace basegfx
// fill data
sal_uInt32 nInsertIndex(0);
-
+
for(a = 0; a < nOriginalCount; a++)
{
const B2DPolygon aCandidate(aGeometry.getB2DPolygon(a));
@@ -613,11 +613,11 @@ namespace basegfx
{
const B2DPoint& rPoint = pPNCurr->maPoint;
aNewPart.append(rPoint);
-
+
if(mbIsCurve)
{
const VN& rVNCurr = maVNV[pPNCurr->mnI];
-
+
if(!rVNCurr.maPrev.equalZero())
{
aNewPart.setPrevControlPoint(aNewPart.count() - 1, rPoint + rVNCurr.maPrev);
@@ -629,7 +629,7 @@ namespace basegfx
}
}
- pPNCurr->mnI = SAL_MAX_UINT32;
+ pPNCurr->mnI = SAL_MAX_UINT32;
nCountdown--;
pPNCurr = &(maPNV[pPNCurr->mnIN]);
}
@@ -814,7 +814,7 @@ namespace basegfx
{
solver aSolver(rCandidate);
B2DPolyPolygon aRetval(stripNeutralPolygons(aSolver.getB2DPolyPolygon()));
-
+
return correctOrientations(aRetval);
}
@@ -822,7 +822,7 @@ namespace basegfx
{
solver aSolver(rCandidate);
B2DPolyPolygon aRetval(stripNeutralPolygons(aSolver.getB2DPolyPolygon()));
-
+
return correctOrientations(aRetval);
}
@@ -845,7 +845,7 @@ namespace basegfx
aRetval.append(rCandidateB);
aRetval = solveCrossovers(aRetval);
aRetval = stripNeutralPolygons(aRetval);
-
+
return stripDispensablePolygons(aRetval, false);
}
}
@@ -870,7 +870,7 @@ namespace basegfx
aRetval.append(rCandidateB);
aRetval = solveCrossovers(aRetval);
aRetval = stripNeutralPolygons(aRetval);
-
+
return correctOrientations(aRetval);
}
}
@@ -895,7 +895,7 @@ namespace basegfx
aRetval.append(rCandidateB);
aRetval = solveCrossovers(aRetval);
aRetval = stripNeutralPolygons(aRetval);
-
+
return stripDispensablePolygons(aRetval, true);
}
}
@@ -914,11 +914,11 @@ namespace basegfx
{
// Make B topologically to holes and append to A
B2DPolyPolygon aRetval(rCandidateB);
-
+
aRetval.flip();
aRetval.append(rCandidateA);
- // solve crossovers and throw away all sub-polygons which have a
+ // solve crossovers and throw away all sub-polygons which have a
// depth other than 0.
aRetval = basegfx::tools::solveCrossovers(aRetval);
aRetval = basegfx::tools::stripNeutralPolygons(aRetval);
@@ -930,7 +930,7 @@ namespace basegfx
B2DPolyPolygon mergeToSinglePolyPolygon(const std::vector< basegfx::B2DPolyPolygon >& rInput)
{
std::vector< basegfx::B2DPolyPolygon > aInput(rInput);
-
+
// first step: prepareForPolygonOperation and simple merge of non-overlapping
// PolyPolygons for speedup; this is possible for the wanted OR-operation
if(aInput.size())
diff --git a/basegfx/source/polygon/b2dpolypolygonrasterconverter.cxx b/basegfx/source/polygon/b2dpolypolygonrasterconverter.cxx
index 421ec9c43078..21d1a7c96686 100644
--- a/basegfx/source/polygon/b2dpolypolygonrasterconverter.cxx
+++ b/basegfx/source/polygon/b2dpolypolygonrasterconverter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ namespace basegfx
// current size of index list
sal_uInt32 m_current_size;
-
+
// last known size of index list
sal_uInt32 m_previous_size;
@@ -82,7 +82,7 @@ namespace basegfx
};
inline radixSort::radixSort( void ) {
-
+
m_indices1 = NULL;
m_indices2 = NULL;
m_current_size = 0;
@@ -98,7 +98,7 @@ namespace basegfx
}
bool radixSort::resize( sal_uInt32 nNumElements ) {
-
+
if(nNumElements==m_previous_size)
return true;
@@ -126,7 +126,7 @@ namespace basegfx
m_current_size = nNumElements;
}
-
+
m_previous_size = nNumElements;
// initialize indices
@@ -145,7 +145,7 @@ namespace basegfx
// clear counters
sal_uInt32 *ptr = m_counter;
- for(int i=0; i<64; ++i)
+ for(int i=0; i<64; ++i)
{
*ptr++ = 0;
*ptr++ = 0;
@@ -178,7 +178,7 @@ namespace basegfx
bool bSorted = true;
while(p!=pe) {
float value = *(float *)(((sal_uInt8 *)pInput)+((*Indices++)*dwStride));
- if(value<previous_value) {
+ if(value<previous_value) {
bSorted = false;
break;
}
@@ -245,7 +245,7 @@ namespace basegfx
sal_uInt32 id = *Indices++;
m_indices2[m_offset[InputBytes[id*dwStride]]++] = id;
}
- sal_uInt32 *Tmp = m_indices1;
+ sal_uInt32 *Tmp = m_indices1;
m_indices1 = m_indices2;
m_indices2 = Tmp;
}
@@ -265,7 +265,7 @@ namespace basegfx
if(Radix<128) m_indices2[m_offset[Radix]++] = m_indices1[i];
else m_indices2[--m_offset[Radix]] = m_indices1[i];
}
- sal_uInt32 *Tmp = m_indices1;
+ sal_uInt32 *Tmp = m_indices1;
m_indices1 = m_indices2;
m_indices2 = Tmp;
}
@@ -273,7 +273,7 @@ namespace basegfx
if(unique_value>=128) {
for(i=0;i<nNumElements;i++)
m_indices2[i] = m_indices1[nNumElements-i-1];
- sal_uInt32 *Tmp = m_indices1;
+ sal_uInt32 *Tmp = m_indices1;
m_indices1 = m_indices2;
m_indices2 = Tmp;
}
@@ -287,7 +287,7 @@ namespace basegfx
//************************************************************
// Internal vertex storage of B2DPolyPolygonRasterConverter
//************************************************************
-
+
inline B2DPolyPolygonRasterConverter::Vertex::Vertex() :
aP1(),
aP2(),
@@ -313,14 +313,14 @@ namespace basegfx
class ImplLineNode
{
public:
- sal_Int32 mnYCounter;
- float mfXPos;
- float mfXDelta;
- bool mbDownwards;
-
+ sal_Int32 mnYCounter;
+ float mfXPos;
+ float mfXDelta;
+ bool mbDownwards;
+
public:
/**rP1 and rP2 must not have equal y values, when rounded
- to integer!
+ to integer!
*/
ImplLineNode(const B2DPoint& rP1, const B2DPoint& rP2, bool bDown) :
mnYCounter( fround(rP2.getY()) - fround(rP1.getY()) ),
@@ -331,11 +331,11 @@ namespace basegfx
}
/// get current x position
- const float& getXPos() const
- {
- return mfXPos;
+ const float& getXPos() const
+ {
+ return mfXPos;
}
-
+
/// returns true, if line ends on this Y value
float nextLine()
{
@@ -380,19 +380,19 @@ namespace basegfx
}
};
}
-
+
void B2DPolyPolygonRasterConverter::init()
{
if(!maPolyPolyRectangle.isEmpty())
{
- const sal_Int32 nMinY( fround(maPolyPolyRectangle.getMinY()) );
+ const sal_Int32 nMinY( fround(maPolyPolyRectangle.getMinY()) );
const sal_Int32 nScanlines(fround(maPolyPolyRectangle.getMaxY()) - nMinY);
maScanlines.resize( nScanlines+1 );
- // add all polygons
- for( sal_uInt32 i(0), nCount(maPolyPolygon.count());
- i < nCount;
+ // add all polygons
+ for( sal_uInt32 i(0), nCount(maPolyPolygon.count());
+ i < nCount;
++i )
{
// add all vertices
@@ -465,7 +465,7 @@ namespace basegfx
B2DPolyPolygonRasterConverter::B2DPolyPolygonRasterConverter( const B2DPolyPolygon& rPolyPolyRaster,
const B2DRectangle& rRasterArea ) :
maPolyPolygon( rPolyPolyRaster ),
- maPolyPolyRectangle(
+ maPolyPolyRectangle(
getCombinedBounds( rPolyPolyRaster,
rRasterArea ) ),
maScanlines()
@@ -512,12 +512,12 @@ namespace basegfx
if( maScanlines.empty() )
return; // no scanlines at all -> bail out
- const sal_Int32 nMinY( fround(maPolyPolyRectangle.getMinY()) );
+ const sal_Int32 nMinY( fround(maPolyPolyRectangle.getMinY()) );
const sal_Int32 nScanlines(fround(maPolyPolyRectangle.getMaxY()) - nMinY);
// Vector of currently active vertices. A vertex is active, if
// it crosses or touches the current scanline.
- VectorOfLineNodes aActiveVertices;
+ VectorOfLineNodes aActiveVertices;
// mickey's optimized version...
radixSort rs;
@@ -541,7 +541,7 @@ namespace basegfx
}
// sort with increasing X
- if(bSort)
+ if(bSort)
{
bSort = false;
@@ -566,7 +566,7 @@ namespace basegfx
else
{
const sal_Int32 nCurrY( nMinY + y );
-
+
// scanline not empty - forward all scans to derived,
// according to selected fill rule
@@ -610,14 +610,14 @@ namespace basegfx
i % 2 == 0 );
float delta = aActiveVertices[nIndex].nextLine();
- if(delta > 0.0f)
+ if(delta > 0.0f)
{
if(aActiveVertices[nIndex].getXPos() > aActiveVertices[nNextIndex].getXPos())
bSort = true;
}
- else if(delta < 0.0f)
+ else if(delta < 0.0f)
{
- if(i)
+ if(i)
{
sal_uInt32 nPrevIndex = sorted[i-1];
if(aActiveVertices[nIndex].getXPos() < aActiveVertices[nPrevIndex].getXPos())
@@ -645,14 +645,14 @@ namespace basegfx
nWindingNumber != 0 );
float delta = aActiveVertices[nIndex].nextLine();
- if(delta > 0.0f)
+ if(delta > 0.0f)
{
if(aActiveVertices[nIndex].getXPos() > aActiveVertices[nNextIndex].getXPos())
bSort = true;
}
- else if(delta < 0.0f)
+ else if(delta < 0.0f)
{
- if(i)
+ if(i)
{
sal_uInt32 nPrevIndex = sorted[i-1];
if(aActiveVertices[nIndex].getXPos() < aActiveVertices[nPrevIndex].getXPos())
@@ -674,10 +674,10 @@ namespace basegfx
// also call nextLine on very last line node
sal_uInt32 nIndex = sorted[nb-1];
- float delta = aActiveVertices[nIndex].nextLine();
+ float delta = aActiveVertices[nIndex].nextLine();
if(delta < 0.0f)
{
- if(nb)
+ if(nb)
{
sal_uInt32 nPrevIndex = sorted[nb-2];
if(aActiveVertices[nIndex].getXPos() < aActiveVertices[nPrevIndex].getXPos())
@@ -692,7 +692,7 @@ namespace basegfx
::boost::mem_fn( &ImplLineNode::isEnded ) ),
aActiveVertices.end() );
nb = aActiveVertices.size();
- if(nb != nb_previous)
+ if(nb != nb_previous)
{
nb_previous = nb;
bSort = true;
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx
index 06e9da5fa305..aa8c27fc6ddf 100644
--- a/basegfx/source/polygon/b2dpolypolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolypolygontools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -279,16 +279,16 @@ namespace basegfx
if(rCandidate.count() && fFullDashDotLen > 0.0)
{
B2DPolyPolygon aLineTarget, aGapTarget;
-
+
for(sal_uInt32 a(0L); a < rCandidate.count(); a++)
{
const B2DPolygon aCandidate(rCandidate.getB2DPolygon(a));
-
+
applyLineDashing(
- aCandidate,
- rDotDashArray,
- pLineTarget ? &aLineTarget : 0,
- pGapTarget ? &aGapTarget : 0,
+ aCandidate,
+ rDotDashArray,
+ pLineTarget ? &aLineTarget : 0,
+ pGapTarget ? &aGapTarget : 0,
fFullDashDotLen);
if(pLineTarget)
@@ -503,7 +503,7 @@ namespace basegfx
// exclude some cheap cases first
if( rPoly.count() != 1 )
return false;
-
+
return isRectangle( rPoly.getB2DPolygon(0) );
}
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
index e17c5073954e..7f5ed0758696 100644
--- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,9 +44,9 @@ namespace basegfx
{
namespace
{
- void lcl_skipSpaces(sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 nLen)
+ void lcl_skipSpaces(sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 nLen)
{
while( io_rPos < nLen &&
sal_Unicode(' ') == rStr[io_rPos] )
@@ -55,11 +55,11 @@ namespace basegfx
}
}
- void lcl_skipSpacesAndCommas(sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 nLen)
+ void lcl_skipSpacesAndCommas(sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 nLen)
{
- while(io_rPos < nLen
+ while(io_rPos < nLen
&& (sal_Unicode(' ') == rStr[io_rPos] || sal_Unicode(',') == rStr[io_rPos]))
{
++io_rPos;
@@ -81,10 +81,10 @@ namespace basegfx
bSignAllowed);
}
- bool lcl_getDoubleChar(double& o_fRetval,
- sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 /*nLen*/)
+ bool lcl_getDoubleChar(double& o_fRetval,
+ sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 /*nLen*/)
{
sal_Unicode aChar( rStr[io_rPos] );
::rtl::OUStringBuffer sNumberString;
@@ -106,7 +106,7 @@ namespace basegfx
{
sNumberString.append(rStr[io_rPos]);
aChar = rStr[++io_rPos];
-
+
if(sal_Unicode('+') == aChar || sal_Unicode('-') == aChar)
{
sNumberString.append(rStr[io_rPos]);
@@ -123,10 +123,10 @@ namespace basegfx
if(sNumberString.getLength())
{
rtl_math_ConversionStatus eStatus;
- o_fRetval = ::rtl::math::stringToDouble( sNumberString.makeStringAndClear(),
- (sal_Unicode)('.'),
- (sal_Unicode)(','),
- &eStatus,
+ o_fRetval = ::rtl::math::stringToDouble( sNumberString.makeStringAndClear(),
+ (sal_Unicode)('.'),
+ (sal_Unicode)(','),
+ &eStatus,
NULL );
return ( eStatus == rtl_math_ConversionStatus_Ok );
}
@@ -134,10 +134,10 @@ namespace basegfx
return false;
}
- bool lcl_importDoubleAndSpaces( double& o_fRetval,
- sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 nLen )
+ bool lcl_importDoubleAndSpaces( double& o_fRetval,
+ sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 nLen )
{
if( !lcl_getDoubleChar(o_fRetval, io_rPos, rStr, nLen) )
return false;
@@ -148,9 +148,9 @@ namespace basegfx
}
bool lcl_importNumberAndSpaces(sal_Int32& o_nRetval,
- sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 nLen)
+ sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 nLen)
{
sal_Unicode aChar( rStr[io_rPos] );
::rtl::OUStringBuffer sNumberString;
@@ -178,9 +178,9 @@ namespace basegfx
return false;
}
- void lcl_skipNumber(sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 nLen)
+ void lcl_skipNumber(sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 nLen)
{
bool bSignAllowed(true);
@@ -191,9 +191,9 @@ namespace basegfx
}
}
- void lcl_skipDouble(sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 /*nLen*/)
+ void lcl_skipDouble(sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 /*nLen*/)
{
sal_Unicode aChar( rStr[io_rPos] );
@@ -209,7 +209,7 @@ namespace basegfx
if(sal_Unicode('e') == aChar || sal_Unicode('E') == aChar)
{
aChar = rStr[++io_rPos];
-
+
if(sal_Unicode('+') == aChar || sal_Unicode('-') == aChar)
aChar = rStr[++io_rPos];
@@ -219,33 +219,33 @@ namespace basegfx
}
}
}
- void lcl_skipNumberAndSpacesAndCommas(sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 nLen)
+ void lcl_skipNumberAndSpacesAndCommas(sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 nLen)
{
lcl_skipNumber(io_rPos, rStr, nLen);
lcl_skipSpacesAndCommas(io_rPos, rStr, nLen);
}
// #100617# Allow to skip doubles, too.
- void lcl_skipDoubleAndSpacesAndCommas(sal_Int32& io_rPos,
- const ::rtl::OUString& rStr,
- const sal_Int32 nLen)
+ void lcl_skipDoubleAndSpacesAndCommas(sal_Int32& io_rPos,
+ const ::rtl::OUString& rStr,
+ const sal_Int32 nLen)
{
lcl_skipDouble(io_rPos, rStr, nLen);
lcl_skipSpacesAndCommas(io_rPos, rStr, nLen);
}
- void lcl_putNumberChar( ::rtl::OUStringBuffer& rStr,
- double fValue )
+ void lcl_putNumberChar( ::rtl::OUStringBuffer& rStr,
+ double fValue )
{
rStr.append( fValue );
}
- void lcl_putNumberCharWithSpace( ::rtl::OUStringBuffer& rStr,
- double fValue,
- double fOldValue,
- bool bUseRelativeCoordinates )
+ void lcl_putNumberCharWithSpace( ::rtl::OUStringBuffer& rStr,
+ double fValue,
+ double fOldValue,
+ bool bUseRelativeCoordinates )
{
if( bUseRelativeCoordinates )
fValue -= fOldValue;
@@ -253,7 +253,7 @@ namespace basegfx
const sal_Int32 aLen( rStr.getLength() );
if(aLen)
{
- if( lcl_isOnNumberChar(rStr.charAt(aLen - 1), false) &&
+ if( lcl_isOnNumberChar(rStr.charAt(aLen - 1), false) &&
fValue >= 0.0 )
{
rStr.append( sal_Unicode(' ') );
@@ -265,13 +265,13 @@ namespace basegfx
inline sal_Unicode lcl_getCommand( sal_Char cUpperCaseCommand,
sal_Char cLowerCaseCommand,
- bool bUseRelativeCoordinates )
+ bool bUseRelativeCoordinates )
{
return bUseRelativeCoordinates ? cLowerCaseCommand : cUpperCaseCommand;
}
}
- bool importFromSvgD(B2DPolyPolygon& o_rPolyPolygon, const ::rtl::OUString& rSvgDStatement)
+ bool importFromSvgD(B2DPolyPolygon& o_rPolyPolygon, const ::rtl::OUString& rSvgDStatement)
{
o_rPolyPolygon.clear();
const sal_Int32 nLen(rSvgDStatement.getLength());
@@ -302,7 +302,7 @@ namespace basegfx
bIsClosed = true;
break;
}
-
+
case 'm' :
case 'M' :
{
@@ -327,9 +327,9 @@ namespace basegfx
{
closeWithGeometryChange(aCurrPoly);
}
-
+
o_rPolyPolygon.append(aCurrPoly);
-
+
// reset import values
bIsClosed = false;
aCurrPoly.clear();
@@ -355,7 +355,7 @@ namespace basegfx
// set last position
nLastX = nX;
nLastY = nY;
-
+
// add point
aCurrPoly.append(B2DPoint(nX, nY));
}
@@ -385,13 +385,13 @@ namespace basegfx
// set last position
nLastX = nX;
-
+
// add point
aCurrPoly.append(B2DPoint(nX, nY));
}
break;
}
-
+
case 'v' :
{
bRelative = true;
@@ -415,13 +415,13 @@ namespace basegfx
// set last position
nLastY = nY;
-
+
// add point
aCurrPoly.append(B2DPoint(nX, nY));
}
break;
}
-
+
case 's' :
{
bRelative = true;
@@ -480,7 +480,7 @@ namespace basegfx
}
break;
}
-
+
case 'c' :
{
bRelative = true;
@@ -529,7 +529,7 @@ namespace basegfx
}
break;
}
-
+
// #100617# quadratic beziers are imported as cubic ones
case 'q' :
{
@@ -580,7 +580,7 @@ namespace basegfx
}
break;
}
-
+
// #100617# relative quadratic beziers are imported as cubic
case 't' :
{
@@ -634,11 +634,11 @@ namespace basegfx
const B2DPoint aQuadControlPoint(
((3.0 * aPrevControl.getX()) - aPrevPoint.getX()) / 2.0,
((3.0 * aPrevControl.getY()) - aPrevPoint.getY()) / 2.0);
-
+
// calculate the cubic bezier coefficients from the quadratic ones.
const double nX2Prime((aQuadControlPoint.getX() * 2.0 + nX) / 3.0);
const double nY2Prime((aQuadControlPoint.getY() * 2.0 + nY) / 3.0);
-
+
// append curved edge, use mirrored cubic control point directly
aCurrPoly.appendBezierSegment(aPrevControl, B2DPoint(nX2Prime, nY2Prime), B2DPoint(nX, nY));
}
@@ -700,7 +700,7 @@ namespace basegfx
{
// normalize according to SVG spec
fRX=fabs(fRX); fRY=fabs(fRY);
-
+
// from the SVG spec, appendix F.6.4
// |x1'| |cos phi sin phi| |(x1 - x2)/2|
@@ -708,12 +708,12 @@ namespace basegfx
const B2DPoint p1(nLastX, nLastY);
const B2DPoint p2(nX, nY);
B2DHomMatrix aTransform(basegfx::tools::createRotateB2DHomMatrix(-fPhi*M_PI/180));
-
+
const B2DPoint p1_prime( aTransform * B2DPoint(((p1-p2)/2.0)) );
// ______________________________________ rx y1'
// |cx'| + / rx^2 ry^2 - rx^2 y1'^2 - ry^2 x1^2 ry
- // |cy'| =-/ rx^2y1'^2 + ry^2 x1'^2 - ry x1'
+ // |cy'| =-/ rx^2y1'^2 + ry^2 x1'^2 - ry x1'
// rx
// chose + if f_A != f_S
// chose - if f_A = f_S
@@ -742,7 +742,7 @@ namespace basegfx
aCurrPoly.append(B2DPoint(nX, nY));
continue;
}
-
+
fRY=sqrt(fRadicant2);
fRX=fRatio*fRY;
@@ -760,7 +760,7 @@ namespace basegfx
-fFactor*fRY*p1_prime.getX()/fRX);
}
- // + u - v
+ // + u - v
// angle(u,v) = arccos( ------------ ) (take the sign of (ux vy - uy vx))
// - ||u|| ||v||
@@ -768,14 +768,14 @@ namespace basegfx
// theta1 = angle(( ), | | )
// 0 | (y1' - cy')/ry |
const B2DPoint aRadii(fRX,fRY);
- double fTheta1(
+ double fTheta1(
B2DVector(1.0,0.0).angle(
(p1_prime-aCenter_prime)/aRadii));
// |1| | (-x1' - cx')/rx |
// theta2 = angle( | | , | | )
// |0| | (-y1' - cy')/ry |
- double fTheta2(
+ double fTheta2(
B2DVector(1.0,0.0).angle(
(-p1_prime-aCenter_prime)/aRadii));
@@ -787,7 +787,7 @@ namespace basegfx
// (since
// createPolygonFromEllipseSegment()
// normalizes to e.g. cw arc)
- const bool bFlipSegment( (bLargeArcFlag!=0) ==
+ const bool bFlipSegment( (bLargeArcFlag!=0) ==
(fmod(fTheta2+2*M_PI-fTheta1,
2*M_PI)<M_PI) );
if( bFlipSegment )
@@ -795,11 +795,11 @@ namespace basegfx
// finally, create bezier polygon from this
B2DPolygon aSegment(
- tools::createPolygonFromUnitEllipseSegment(
+ tools::createPolygonFromUnitEllipseSegment(
fTheta1, fTheta2 ));
// transform ellipse by rotation & move to final center
- aTransform = basegfx::tools::createScaleB2DHomMatrix(fRX, fRY);
+ aTransform = basegfx::tools::createScaleB2DHomMatrix(fRX, fRY);
aTransform.translate(aCenter_prime.getX(),
aCenter_prime.getY());
aTransform.rotate(fPhi*M_PI/180);
@@ -807,7 +807,7 @@ namespace basegfx
aTransform.translate(aOffset.getX(),
aOffset.getY());
aSegment.transform(aTransform);
-
+
// createPolygonFromEllipseSegment()
// always creates arcs that are
// positively oriented - flip polygon
@@ -863,8 +863,8 @@ namespace basegfx
{
if(!lcl_importDoubleAndSpaces(nX, nPos, rSvgPointsAttribute, nLen)) return false;
if(!lcl_importDoubleAndSpaces(nY, nPos, rSvgPointsAttribute, nLen)) return false;
-
- // add point
+
+ // add point
o_rPoly.append(B2DPoint(nX, nY));
// skip to next number, or finish
@@ -876,7 +876,7 @@ namespace basegfx
::rtl::OUString exportToSvgD(
const B2DPolyPolygon& rPolyPolygon,
- bool bUseRelativeCoordinates,
+ bool bUseRelativeCoordinates,
bool bDetectQuadraticBeziers)
{
const sal_uInt32 nCount(rPolyPolygon.count());
@@ -910,7 +910,7 @@ namespace basegfx
const B2DPoint aEdgeEnd(aPolygon.getB2DPoint(nNextIndex));
// handle edge from (aEdgeStart, aEdgeEnd) using indices (nIndex, nNextIndex)
- const bool bEdgeIsBezier(bPolyUsesControlPoints
+ const bool bEdgeIsBezier(bPolyUsesControlPoints
&& (aPolygon.isNextControlPointUsed(nIndex) || aPolygon.isPrevControlPointUsed(nNextIndex)));
if(bEdgeIsBezier)
@@ -921,18 +921,18 @@ namespace basegfx
bool bIsQuadraticBezier(false);
// check continuity at current edge's start point. For SVG, do NOT use an
- // existing continuity since no 'S' or 's' statement should be written. At
- // import, that 'previous' control vector is not available. SVG documentation
+ // existing continuity since no 'S' or 's' statement should be written. At
+ // import, that 'previous' control vector is not available. SVG documentation
// says for interpretation:
//
- // "(If there is no previous command or if the previous command was
- // not an C, c, S or s, assume the first control point is coincident
+ // "(If there is no previous command or if the previous command was
+ // not an C, c, S or s, assume the first control point is coincident
// with the current point.)"
//
// That's what is done from our import, so avoid exporting it as first statement
// is necessary.
const bool bSymmetricAtEdgeStart(
- 0 != nIndex
+ 0 != nIndex
&& CONTINUITY_C2 == aPolygon.getContinuityInPoint(nIndex));
if(bDetectQuadraticBeziers)
@@ -942,7 +942,7 @@ namespace basegfx
// the same place when they are prolonged
// to the common quadratic control point
//
- // Left: P = (3P1 - P0) / 2
+ // Left: P = (3P1 - P0) / 2
// Right: P = (3P2 - P3) / 2
aLeft = B2DPoint((3.0 * aControlEdgeStart - aEdgeStart) / 2.0);
aRight= B2DPoint((3.0 * aControlEdgeEnd - aEdgeEnd) / 2.0);
@@ -961,7 +961,7 @@ namespace basegfx
aResult.append(aCommand);
aLastSVGCommand = aCommand;
}
-
+
lcl_putNumberCharWithSpace(aResult, aEdgeEnd.getX(), aCurrentSVGPosition.getX(), bUseRelativeCoordinates);
lcl_putNumberCharWithSpace(aResult, aEdgeEnd.getY(), aCurrentSVGPosition.getY(), bUseRelativeCoordinates);
aLastSVGCommand = aCommand;
@@ -976,7 +976,7 @@ namespace basegfx
aResult.append(aCommand);
aLastSVGCommand = aCommand;
}
-
+
lcl_putNumberCharWithSpace(aResult, aLeft.getX(), aCurrentSVGPosition.getX(), bUseRelativeCoordinates);
lcl_putNumberCharWithSpace(aResult, aLeft.getY(), aCurrentSVGPosition.getY(), bUseRelativeCoordinates);
lcl_putNumberCharWithSpace(aResult, aEdgeEnd.getX(), aCurrentSVGPosition.getX(), bUseRelativeCoordinates);
@@ -997,7 +997,7 @@ namespace basegfx
aResult.append(aCommand);
aLastSVGCommand = aCommand;
}
-
+
lcl_putNumberCharWithSpace(aResult, aControlEdgeEnd.getX(), aCurrentSVGPosition.getX(), bUseRelativeCoordinates);
lcl_putNumberCharWithSpace(aResult, aControlEdgeEnd.getY(), aCurrentSVGPosition.getY(), bUseRelativeCoordinates);
lcl_putNumberCharWithSpace(aResult, aEdgeEnd.getX(), aCurrentSVGPosition.getX(), bUseRelativeCoordinates);
@@ -1014,7 +1014,7 @@ namespace basegfx
aResult.append(aCommand);
aLastSVGCommand = aCommand;
}
-
+
lcl_putNumberCharWithSpace(aResult, aControlEdgeStart.getX(), aCurrentSVGPosition.getX(), bUseRelativeCoordinates);
lcl_putNumberCharWithSpace(aResult, aControlEdgeStart.getY(), aCurrentSVGPosition.getY(), bUseRelativeCoordinates);
lcl_putNumberCharWithSpace(aResult, aControlEdgeEnd.getX(), aCurrentSVGPosition.getX(), bUseRelativeCoordinates);
diff --git a/basegfx/source/polygon/b2dtrapezoid.cxx b/basegfx/source/polygon/b2dtrapezoid.cxx
index f095a6658119..5a626e9bdde6 100644
--- a/basegfx/source/polygon/b2dtrapezoid.cxx
+++ b/basegfx/source/polygon/b2dtrapezoid.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,20 +47,20 @@ namespace basegfx
// currently, thus the YPositions will be equal. I did not create a special
// class for this since holdingthe pointers is more effective and also can be
// used as baseclass for the traversing edges
-
+
class TrDeSimpleEdge
{
protected:
// pointers to start and end point
- const B2DPoint* mpStart;
- const B2DPoint* mpEnd;
+ const B2DPoint* mpStart;
+ const B2DPoint* mpEnd;
public:
// constructor
TrDeSimpleEdge(
const B2DPoint* pStart,
const B2DPoint* pEnd)
- : mpStart(pStart),
+ : mpStart(pStart),
mpEnd(pEnd)
{
}
@@ -76,7 +76,7 @@ namespace basegfx
typedef ::std::vector< TrDeSimpleEdge > TrDeSimpleEdges;
//////////////////////////////////////////////////////////////////////////////
- // helper class for holding a traversing edge. It will always have some
+ // helper class for holding a traversing edge. It will always have some
// distance in YPos. The slope (in a numerically useful form, see comments) is
// hold and used in SortValue to allow sorting traversing edges by Y, X and slope
// (in that order)
@@ -85,7 +85,7 @@ namespace basegfx
{
private:
// the slope in a numerical useful form for sorting
- sal_uInt32 mnSortValue;
+ sal_uInt32 mnSortValue;
public:
// convenience data read access
@@ -105,7 +105,7 @@ namespace basegfx
// convert to sal_uInt32 value
const_cast< TrDeEdgeEntry* >(this)->mnSortValue = sal_uInt32(fRadiant);
-
+
return mnSortValue;
}
@@ -114,7 +114,7 @@ namespace basegfx
const B2DPoint* pStart,
const B2DPoint* pEnd,
sal_uInt32 nSortValue = 0)
- : TrDeSimpleEdge(pStart, pEnd),
+ : TrDeSimpleEdge(pStart, pEnd),
mnSortValue(nSortValue)
{
// force traversal of deltaY downward
@@ -135,7 +135,7 @@ namespace basegfx
if(mpStart != pNewStart)
{
mpStart = pNewStart;
-
+
// no horizontal edges allowed, all neeed to traverse vertivally
OSL_ENSURE(mpEnd->getY() > mpStart->getY(), "Illegal TrDeEdgeEntry constructed (!)");
}
@@ -149,7 +149,7 @@ namespace basegfx
if(mpEnd != pNewEnd)
{
mpEnd = pNewEnd;
-
+
// no horizontal edges allowed, all neeed to traverse vertivally
OSL_ENSURE(mpEnd->getY() > mpStart->getY(), "Illegal TrDeEdgeEntry constructed (!)");
}
@@ -163,10 +163,10 @@ namespace basegfx
if(fTools::equal(getStart().getX(), rComp.getStart().getX(), fTools::getSmallValue()))
{
// when start points are equal, use the direction the edge is pointing
- // to. That value is created on demand and derived from atan2 in the
+ // to. That value is created on demand and derived from atan2 in the
// range ]0.0 .. pi[ (without extremas, we always have a deltaY in this
- // class) and scaled to sal_uInt32 range for best precision. 0 means no angle,
- // while SAL_MAX_UINT32 means pi. Thus, the higher the value, the more left
+ // class) and scaled to sal_uInt32 range for best precision. 0 means no angle,
+ // while SAL_MAX_UINT32 means pi. Thus, the higher the value, the more left
// the edge traverses.
return (getSortValue() > rComp.getSortValue());
}
@@ -184,11 +184,11 @@ namespace basegfx
// method for cut support
B2DPoint getCutPointForGivenY(double fGivenY)
{
- // Calculate cut point locally (do not use interpolate) since it is numerically
+ // Calculate cut point locally (do not use interpolate) since it is numerically
// necessary to guarantee the new, equal Y-coordinate
const double fFactor((fGivenY - getStart().getY()) / getDeltaY());
const double fDeltaXNew(fFactor * getDeltaX());
-
+
return B2DPoint(getStart().getX() + fDeltaXNew, fGivenY);
}
};
@@ -212,10 +212,10 @@ namespace basegfx
{
private:
// local data
- sal_uInt32 mnInitialEdgeEntryCount;
- TrDeEdgeEntries maTrDeEdgeEntries;
- ::std::vector< B2DPoint > maPoints;
- ::std::vector< B2DPoint* > maNewPoints;
+ sal_uInt32 mnInitialEdgeEntryCount;
+ TrDeEdgeEntries maTrDeEdgeEntries;
+ ::std::vector< B2DPoint > maPoints;
+ ::std::vector< B2DPoint* > maNewPoints;
void addEdgeSorted(
TrDeEdgeEntries::iterator aCurrent,
@@ -293,12 +293,12 @@ namespace basegfx
{
return false;
}
-
+
if(aEdgeA.getStart().equal(aEdgeB.getEnd(), fTools::getSmallValue()))
{
return false;
}
-
+
if(aEdgeA.getEnd().equal(aEdgeB.getStart(), fTools::getSmallValue()))
{
return false;
@@ -379,7 +379,7 @@ namespace basegfx
{
delete pNewPoint;
}
-
+
return bRetval;
}
@@ -435,7 +435,7 @@ namespace basegfx
{
// cut is in XRange of horizontal edge, potenitally needed cut
B2DPoint* pNewPoint = new B2DPoint(aSplit);
-
+
if(splitEdgeAtGivenPoint(aCompare, *pNewPoint, aCurrent))
{
maNewPoints.push_back(pNewPoint);
@@ -456,7 +456,7 @@ namespace basegfx
public:
TrapezoidSubdivider(
const B2DPolyPolygon& rSourcePolyPolygon)
- : mnInitialEdgeEntryCount(0),
+ : mnInitialEdgeEntryCount(0),
maTrDeEdgeEntries(),
maPoints(),
maNewPoints()
@@ -507,8 +507,8 @@ namespace basegfx
}
// Moved the edge construction to a 3rd run: doing it in the 2nd run is
- // possible(and i used it), but requires a working vector::reserve()
- // implementation, else the vector will be reallocated and the pointers
+ // possible(and i used it), but requires a working vector::reserve()
+ // implementation, else the vector will be reallocated and the pointers
// in the edges may be wrong. Security first here.
sal_uInt32 nStartIndex(0);
@@ -584,7 +584,7 @@ namespace basegfx
//
// There always must be two edges with the same YStart value: When adding the polygons
// in the constructor, there is always a topmost point from which two edges start; when
- // the topmost is an edge, there is a start and end of this edge from which two edges
+ // the topmost is an edge, there is a start and end of this edge from which two edges
// start. All cases have two edges with same StartY (QED).
//
// Based on this these edges get corrected when:
@@ -594,7 +594,7 @@ namespace basegfx
// - another edge starts inside the thought trapezoid
//
// All this cases again produce a valid state so that the first two edges have a common
- // Ystart again. Some cases lead to a restart of the process, some allow consuming the
+ // Ystart again. Some cases lead to a restart of the process, some allow consuming the
// edges and create the intended trapezoid.
//
// Be careful when doing chages here: It is essential to keep all possible paths
@@ -607,8 +607,8 @@ namespace basegfx
{
// measuring shows that the relation between edges and created trapezoids is
// mostly in the 1:1 range, thus reserve as much trapezoids as edges exist. Do
- // not use maTrDeEdgeEntries.size() since that may be a non-constant time
- // operation for Lists. Instead, use mnInitialEdgeEntryCount which will contain
+ // not use maTrDeEdgeEntries.size() since that may be a non-constant time
+ // operation for Lists. Instead, use mnInitialEdgeEntryCount which will contain
// the roughly counted adds to the List
ro_Result.reserve(ro_Result.size() + mnInitialEdgeEntryCount);
}
@@ -635,9 +635,9 @@ namespace basegfx
if(!fTools::equal(aLeft.getStart().getY(), aRight.getStart().getY(), fTools::getSmallValue()))
{
- // Should not happen: We have a 2nd edge, but YStart is on another
+ // Should not happen: We have a 2nd edge, but YStart is on another
// line; consume the single edge to not have an endless loop and start
- // next. During development i constantly had breakpoints here, so i am
+ // next. During development i constantly had breakpoints here, so i am
// sure enough to add an assertion here
OSL_ENSURE(false, "Trapeziod decomposer in illegal state (!)");
maTrDeEdgeEntries.pop_front();
@@ -647,7 +647,7 @@ namespace basegfx
// aLeft and aRight build a thought trapezoid now. They have a common
// start line (same Y for start points). Potentially, one of the edges
// is longer than the other. It is only needed to look at the shorter
- // length which build the potential trapezoid. To do so, get the end points
+ // length which build the potential trapezoid. To do so, get the end points
// locally and adapt the evtl. longer one. Use only aLeftEnd and aRightEnd
// from here on, not the aLeft.getEnd() or aRight.getEnd() accesses.
B2DPoint aLeftEnd(aLeft.getEnd());
@@ -657,7 +657,7 @@ namespace basegfx
// needs to be prepared. Also remember which one actually is longer.
const bool bEndOnSameLine(fTools::equal(aLeftEnd.getY(), aRightEnd.getY(), fTools::getSmallValue()));
bool bLeftIsLonger(false);
-
+
if(!bEndOnSameLine)
{
// check which edge is longer and correct accordingly
@@ -699,7 +699,7 @@ namespace basegfx
else
{
B2DPoint* pNewPoint = new B2DPoint(aRightEnd);
-
+
if(splitEdgeAtGivenPoint(aRight, *pNewPoint, aCurrent))
{
maNewPoints.push_back(pNewPoint);
@@ -714,10 +714,10 @@ namespace basegfx
// consume both edges and start next run
maTrDeEdgeEntries.pop_front();
maTrDeEdgeEntries.pop_front();
-
+
continue;
}
-
+
// check if the edges self-intersect. This can only happen when
// start and end point are different
bool bRangesSet(false);
@@ -743,7 +743,7 @@ namespace basegfx
// now we need to check if there are intersections with other edges
// or if other edges start inside the candidate trapezoid
- if(aCurrent != maTrDeEdgeEntries.end()
+ if(aCurrent != maTrDeEdgeEntries.end()
&& fTools::less(aCurrent->getStart().getY(), aLeftEnd.getY()))
{
// get XRanges of edges
@@ -752,11 +752,11 @@ namespace basegfx
aLeftRange = B1DRange(aLeft.getStart().getX(), aLeftEnd.getX());
aRightRange = B1DRange(aRight.getStart().getX(), aRightEnd.getX());
}
-
+
// build full XRange for fast check
B1DRange aAllRange(aLeftRange);
aAllRange.expand(aRightRange);
-
+
// prepare loop iterator; aCurrent needs to stay unchanged for
// eventual sorted insertions of new EdgeNodes. Also prepare stop flag
TrDeEdgeEntries::iterator aLoop(aCurrent);
@@ -777,7 +777,7 @@ namespace basegfx
// get compare XRange
const B1DRange aCompareRange(aCompare.getStart().getX(), aCompare.getEnd().getX());
-
+
// use fast range test first
if(aAllRange.overlaps(aCompareRange))
{
@@ -790,12 +790,12 @@ namespace basegfx
// check for start point of aCompare being inside thought
// trapezoid
- if(aCompare.getStart().getX() >= aSplitLeft.getX() &&
+ if(aCompare.getStart().getX() >= aSplitLeft.getX() &&
aCompare.getStart().getX() <= aSplitRight.getX())
{
// is inside, correct and restart loop
B2DPoint* pNewLeft = new B2DPoint(aSplitLeft);
-
+
if(splitEdgeAtGivenPoint(aLeft, *pNewLeft, aCurrent))
{
maNewPoints.push_back(pNewLeft);
@@ -805,9 +805,9 @@ namespace basegfx
{
delete pNewLeft;
}
-
+
B2DPoint* pNewRight = new B2DPoint(aSplitRight);
-
+
if(splitEdgeAtGivenPoint(aRight, *pNewRight, aCurrent))
{
maNewPoints.push_back(pNewRight);
@@ -825,7 +825,7 @@ namespace basegfx
// test for concrete cut of compare edge with left edge
bDone = testAndCorrectEdgeIntersection(aLeft, aCompare, aCurrent);
}
-
+
if(!bDone && aRightRange.overlaps(aCompareRange))
{
// test for concrete cut of compare edge with Right edge
@@ -845,14 +845,14 @@ namespace basegfx
}
// when we get here, the intended trapezoid can be used. It needs to
- // be corrected, eventually (if prepared); but this is no reason not to
+ // be corrected, eventually (if prepared); but this is no reason not to
// use it in the same loop iteration
if(!bEndOnSameLine)
{
if(bLeftIsLonger)
{
B2DPoint* pNewPoint = new B2DPoint(aLeftEnd);
-
+
if(splitEdgeAtGivenPoint(aLeft, *pNewPoint, aCurrent))
{
maNewPoints.push_back(pNewPoint);
@@ -865,7 +865,7 @@ namespace basegfx
else
{
B2DPoint* pNewPoint = new B2DPoint(aRightEnd);
-
+
if(splitEdgeAtGivenPoint(aRight, *pNewPoint, aCurrent))
{
maNewPoints.push_back(pNewPoint);
@@ -888,7 +888,7 @@ namespace basegfx
aLeftEnd.getX(),
aRightEnd.getX(),
aLeftEnd.getY()));
-
+
maTrDeEdgeEntries.pop_front();
maTrDeEdgeEntries.pop_front();
}
@@ -908,7 +908,7 @@ namespace basegfx
const double& rfBottomXLeft,
const double& rfBottomXRight,
const double& rfBottomY)
- : mfTopXLeft(rfTopXLeft),
+ : mfTopXLeft(rfTopXLeft),
mfTopXRight(rfTopXRight),
mfTopY(rfTopY),
mfBottomXLeft(rfBottomXLeft),
@@ -965,9 +965,9 @@ namespace basegfx
}
void createLineTrapezoidFromEdge(
- B2DTrapezoidVector& ro_Result,
- const B2DPoint& rPointA,
- const B2DPoint& rPointB,
+ B2DTrapezoidVector& ro_Result,
+ const B2DPoint& rPointA,
+ const B2DPoint& rPointB,
double fLineWidth)
{
if(fTools::lessOrEqual(fLineWidth, 0.0))
@@ -1037,14 +1037,14 @@ namespace basegfx
aTrDeEdgeEntries.push_back(basegfx::trapezoidhelper::TrDeEdgeEntry(&aEndLow, &aStartLow, 0));
aTrDeEdgeEntries.sort();
- // here we know we have exactly four edges, and they do not cut, touch or
+ // here we know we have exactly four edges, and they do not cut, touch or
// intersect. This makes processing much easier. Get the first two as start
// edges for the thought trapezoid
basegfx::trapezoidhelper::TrDeEdgeEntries::iterator aCurrent(aTrDeEdgeEntries.begin());
basegfx::trapezoidhelper::TrDeEdgeEntries::reference aLeft(*aCurrent++);
basegfx::trapezoidhelper::TrDeEdgeEntries::reference aRight(*aCurrent++);
const bool bEndOnSameLine(fTools::equal(aLeft.getEnd().getY(), aRight.getEnd().getY(), fTools::getSmallValue()));
-
+
if(bEndOnSameLine)
{
// create two triangle trapezoids
@@ -1071,7 +1071,7 @@ namespace basegfx
}
else
{
- // create three trapezoids. Check which edge is longer and
+ // create three trapezoids. Check which edge is longer and
// correct accordingly
const bool bLeftIsLonger(fTools::more(aLeft.getEnd().getY(), aRight.getEnd().getY()));
@@ -1081,7 +1081,7 @@ namespace basegfx
basegfx::trapezoidhelper::TrDeEdgeEntries::reference aLeft2(*aCurrent++);
const B2DPoint aSplitLeft(aLeft.getCutPointForGivenY(aRight.getEnd().getY()));
const B2DPoint aSplitRight(aRight2.getCutPointForGivenY(aLeft.getEnd().getY()));
-
+
ro_Result.push_back(
B2DTrapezoid(
aLeft.getStart().getX(),
@@ -1090,7 +1090,7 @@ namespace basegfx
aSplitLeft.getX(),
aRight.getEnd().getX(),
aRight.getEnd().getY()));
-
+
ro_Result.push_back(
B2DTrapezoid(
aSplitLeft.getX(),
@@ -1099,7 +1099,7 @@ namespace basegfx
aLeft2.getStart().getX(),
aSplitRight.getX(),
aLeft2.getStart().getY()));
-
+
ro_Result.push_back(
B2DTrapezoid(
aLeft2.getStart().getX(),
@@ -1148,7 +1148,7 @@ namespace basegfx
}
void createLineTrapezoidFromB2DPolygon(
- B2DTrapezoidVector& ro_Result,
+ B2DTrapezoidVector& ro_Result,
const B2DPolygon& rPolygon,
double fLineWidth)
{
@@ -1167,7 +1167,7 @@ namespace basegfx
}
const sal_uInt32 nPointCount(aSource.count());
-
+
if(!nPointCount)
{
return;
@@ -1182,14 +1182,14 @@ namespace basegfx
{
const sal_uInt32 nNextIndex((a + 1) % nPointCount);
const B2DPoint aNext(aSource.getB2DPoint(nNextIndex));
-
+
createLineTrapezoidFromEdge(ro_Result, aCurrent, aNext, fLineWidth);
aCurrent = aNext;
}
}
void createLineTrapezoidFromB2DPolyPolygon(
- B2DTrapezoidVector& ro_Result,
+ B2DTrapezoidVector& ro_Result,
const B2DPolyPolygon& rPolyPolygon,
double fLineWidth)
{
@@ -1207,7 +1207,7 @@ namespace basegfx
}
const sal_uInt32 nCount(aSource.count());
-
+
if(!nCount)
{
return;
@@ -1216,7 +1216,7 @@ namespace basegfx
for(sal_uInt32 a(0); a < nCount; a++)
{
createLineTrapezoidFromB2DPolygon(
- ro_Result,
+ ro_Result,
aSource.getB2DPolygon(a),
fLineWidth);
}
diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx
index 019ed0fff970..684717bbbd72 100644
--- a/basegfx/source/polygon/b3dpolygon.cxx
+++ b/basegfx/source/polygon/b3dpolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,38 +43,38 @@
class CoordinateData3D
{
- basegfx::B3DPoint maPoint;
+ basegfx::B3DPoint maPoint;
public:
- CoordinateData3D()
- : maPoint()
+ CoordinateData3D()
+ : maPoint()
{
}
explicit CoordinateData3D(const basegfx::B3DPoint& rData)
- : maPoint(rData)
+ : maPoint(rData)
{
}
- const basegfx::B3DPoint& getCoordinate() const
- {
- return maPoint;
+ const basegfx::B3DPoint& getCoordinate() const
+ {
+ return maPoint;
}
- void setCoordinate(const basegfx::B3DPoint& rValue)
- {
- if(rValue != maPoint)
- maPoint = rValue;
+ void setCoordinate(const basegfx::B3DPoint& rValue)
+ {
+ if(rValue != maPoint)
+ maPoint = rValue;
}
- bool operator==(const CoordinateData3D& rData) const
- {
- return (maPoint == rData.getCoordinate());
+ bool operator==(const CoordinateData3D& rData) const
+ {
+ return (maPoint == rData.getCoordinate());
}
- void transform(const basegfx::B3DHomMatrix& rMatrix)
- {
- maPoint *= rMatrix;
+ void transform(const basegfx::B3DHomMatrix& rMatrix)
+ {
+ maPoint *= rMatrix;
}
};
@@ -84,21 +84,21 @@ class CoordinateDataArray3D
{
typedef ::std::vector< CoordinateData3D > CoordinateData3DVector;
- CoordinateData3DVector maVector;
+ CoordinateData3DVector maVector;
public:
explicit CoordinateDataArray3D(sal_uInt32 nCount)
- : maVector(nCount)
+ : maVector(nCount)
{
}
explicit CoordinateDataArray3D(const CoordinateDataArray3D& rOriginal)
- : maVector(rOriginal.maVector)
+ : maVector(rOriginal.maVector)
{
}
CoordinateDataArray3D(const CoordinateDataArray3D& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(rOriginal.maVector.begin() + nIndex, rOriginal.maVector.begin() + (nIndex + nCount))
+ : maVector(rOriginal.maVector.begin() + nIndex, rOriginal.maVector.begin() + (nIndex + nCount))
{
}
@@ -124,7 +124,7 @@ public:
for(a = 1; a < nPointCount; a++)
{
const basegfx::B3DPoint& rCandidate = maVector[a].getCoordinate();
-
+
if((rCandidate.getX() < pSmallest->getX())
|| (rCandidate.getX() == pSmallest->getX() && rCandidate.getY() < pSmallest->getY())
|| (rCandidate.getX() == pSmallest->getX() && rCandidate.getY() == pSmallest->getY() && rCandidate.getZ() < pSmallest->getZ()))
@@ -238,7 +238,7 @@ public:
const sal_uInt32 nHalfSize(maVector.size() >> 1L);
CoordinateData3DVector::iterator aStart(maVector.begin());
CoordinateData3DVector::iterator aEnd(maVector.end() - 1L);
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
::std::swap(*aStart, *aEnd);
@@ -266,24 +266,24 @@ class BColorArray
{
typedef ::std::vector< ::basegfx::BColor > BColorDataVector;
- BColorDataVector maVector;
- sal_uInt32 mnUsedEntries;
+ BColorDataVector maVector;
+ sal_uInt32 mnUsedEntries;
public:
explicit BColorArray(sal_uInt32 nCount)
- : maVector(nCount),
+ : maVector(nCount),
mnUsedEntries(0L)
{
}
explicit BColorArray(const BColorArray& rOriginal)
- : maVector(rOriginal.maVector),
+ : maVector(rOriginal.maVector),
mnUsedEntries(rOriginal.mnUsedEntries)
{
}
BColorArray(const BColorArray& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(),
+ : maVector(),
mnUsedEntries(0L)
{
BColorDataVector::const_iterator aStart(rOriginal.maVector.begin());
@@ -315,8 +315,8 @@ public:
return (maVector == rCandidate.maVector);
}
- bool isUsed() const
- {
+ bool isUsed() const
+ {
return (0L != mnUsedEntries);
}
@@ -413,7 +413,7 @@ public:
const sal_uInt32 nHalfSize(maVector.size() >> 1L);
BColorDataVector::iterator aStart(maVector.begin());
BColorDataVector::iterator aEnd(maVector.end() - 1L);
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
::std::swap(*aStart, *aEnd);
@@ -430,24 +430,24 @@ class NormalsArray3D
{
typedef ::std::vector< ::basegfx::B3DVector > NormalsData3DVector;
- NormalsData3DVector maVector;
- sal_uInt32 mnUsedEntries;
+ NormalsData3DVector maVector;
+ sal_uInt32 mnUsedEntries;
public:
explicit NormalsArray3D(sal_uInt32 nCount)
- : maVector(nCount),
+ : maVector(nCount),
mnUsedEntries(0L)
{
}
explicit NormalsArray3D(const NormalsArray3D& rOriginal)
- : maVector(rOriginal.maVector),
+ : maVector(rOriginal.maVector),
mnUsedEntries(rOriginal.mnUsedEntries)
{
}
NormalsArray3D(const NormalsArray3D& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(),
+ : maVector(),
mnUsedEntries(0L)
{
NormalsData3DVector::const_iterator aStart(rOriginal.maVector.begin());
@@ -479,8 +479,8 @@ public:
return (maVector == rCandidate.maVector);
}
- bool isUsed() const
- {
+ bool isUsed() const
+ {
return (0L != mnUsedEntries);
}
@@ -577,7 +577,7 @@ public:
const sal_uInt32 nHalfSize(maVector.size() >> 1L);
NormalsData3DVector::iterator aStart(maVector.begin());
NormalsData3DVector::iterator aEnd(maVector.end() - 1L);
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
::std::swap(*aStart, *aEnd);
@@ -605,24 +605,24 @@ class TextureCoordinate2D
{
typedef ::std::vector< ::basegfx::B2DPoint > TextureData2DVector;
- TextureData2DVector maVector;
- sal_uInt32 mnUsedEntries;
+ TextureData2DVector maVector;
+ sal_uInt32 mnUsedEntries;
public:
explicit TextureCoordinate2D(sal_uInt32 nCount)
- : maVector(nCount),
+ : maVector(nCount),
mnUsedEntries(0L)
{
}
explicit TextureCoordinate2D(const TextureCoordinate2D& rOriginal)
- : maVector(rOriginal.maVector),
+ : maVector(rOriginal.maVector),
mnUsedEntries(rOriginal.mnUsedEntries)
{
}
TextureCoordinate2D(const TextureCoordinate2D& rOriginal, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maVector(),
+ : maVector(),
mnUsedEntries(0L)
{
TextureData2DVector::const_iterator aStart(rOriginal.maVector.begin());
@@ -654,8 +654,8 @@ public:
return (maVector == rCandidate.maVector);
}
- bool isUsed() const
- {
+ bool isUsed() const
+ {
return (0L != mnUsedEntries);
}
@@ -752,7 +752,7 @@ public:
const sal_uInt32 nHalfSize(maVector.size() >> 1L);
TextureData2DVector::iterator aStart(maVector.begin());
TextureData2DVector::iterator aEnd(maVector.end() - 1L);
-
+
for(sal_uInt32 a(0); a < nHalfSize; a++)
{
::std::swap(*aStart, *aEnd);
@@ -780,29 +780,29 @@ class ImplB3DPolygon
{
// The point vector. This vector exists always and defines the
// count of members.
- CoordinateDataArray3D maPoints;
+ CoordinateDataArray3D maPoints;
// The BColor vector. This vectors are created on demand
// and may be zero.
- BColorArray* mpBColors;
+ BColorArray* mpBColors;
// The Normals vector. This vectors are created on demand
// and may be zero.
- NormalsArray3D* mpNormals;
+ NormalsArray3D* mpNormals;
// The TextureCoordinates vector. This vectors are created on demand
// and may be zero.
- TextureCoordinate2D* mpTextureCoordiantes;
+ TextureCoordinate2D* mpTextureCoordiantes;
// The calculated plane normal. mbPlaneNormalValid says if it's valid.
- ::basegfx::B3DVector maPlaneNormal;
+ ::basegfx::B3DVector maPlaneNormal;
// bitfield
// flag which decides if this polygon is opened or closed
- unsigned mbIsClosed : 1;
+ unsigned mbIsClosed : 1;
// flag which says if maPlaneNormal is up-to-date
- unsigned mbPlaneNormalValid : 1;
+ unsigned mbPlaneNormalValid : 1;
protected:
void invalidatePlaneNormal()
@@ -817,7 +817,7 @@ public:
// This constructor is only used from the static identity polygon, thus
// the RefCount is set to 1 to never 'delete' this static incarnation.
ImplB3DPolygon()
- : maPoints(0L),
+ : maPoints(0L),
mpBColors(0L),
mpNormals(0L),
mpTextureCoordiantes(0L),
@@ -829,7 +829,7 @@ public:
}
ImplB3DPolygon(const ImplB3DPolygon& rToBeCopied)
- : maPoints(rToBeCopied.maPoints),
+ : maPoints(rToBeCopied.maPoints),
mpBColors(0L),
mpNormals(0L),
mpTextureCoordiantes(0L),
@@ -855,7 +855,7 @@ public:
}
ImplB3DPolygon(const ImplB3DPolygon& rToBeCopied, sal_uInt32 nIndex, sal_uInt32 nCount)
- : maPoints(rToBeCopied.maPoints, nIndex, nCount),
+ : maPoints(rToBeCopied.maPoints, nIndex, nCount),
mpBColors(0L),
mpNormals(0L),
mpTextureCoordiantes(0L),
@@ -1536,7 +1536,7 @@ public:
namespace basegfx
{
- namespace { struct DefaultPolygon : public rtl::Static< B3DPolygon::ImplType,
+ namespace { struct DefaultPolygon : public rtl::Static< B3DPolygon::ImplType,
DefaultPolygon > {}; }
B3DPolygon::B3DPolygon() :
@@ -1593,7 +1593,7 @@ namespace basegfx
basegfx::B3DPoint B3DPolygon::getB3DPoint(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B3DPolygon access outside range (!)");
-
+
return mpPolygon->getPoint(nIndex);
}
@@ -1608,7 +1608,7 @@ namespace basegfx
BColor B3DPolygon::getBColor(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B3DPolygon access outside range (!)");
-
+
return mpPolygon->getBColor(nIndex);
}
@@ -1639,7 +1639,7 @@ namespace basegfx
B3DVector B3DPolygon::getNormal(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B3DPolygon access outside range (!)");
-
+
return mpPolygon->getNormal(nIndex);
}
@@ -1671,7 +1671,7 @@ namespace basegfx
B2DPoint B3DPolygon::getTextureCoordinate(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolygon->count(), "B3DPolygon access outside range (!)");
-
+
return mpPolygon->getTextureCoordinate(nIndex);
}
@@ -1703,7 +1703,7 @@ namespace basegfx
void B3DPolygon::insert(sal_uInt32 nIndex, const ::basegfx::B3DPoint& rPoint, sal_uInt32 nCount)
{
OSL_ENSURE(nIndex <= mpPolygon->count(), "B3DPolygon Insert outside range (!)");
-
+
if(nCount)
mpPolygon->insert(nIndex, rPoint, nCount);
}
@@ -1763,11 +1763,11 @@ namespace basegfx
void B3DPolygon::remove(sal_uInt32 nIndex, sal_uInt32 nCount)
{
OSL_ENSURE(nIndex + nCount <= mpPolygon->count(), "B3DPolygon Remove outside range (!)");
-
+
if(nCount)
mpPolygon->remove(nIndex, nCount);
}
-
+
void B3DPolygon::clear()
{
mpPolygon = DefaultPolygon::get();
diff --git a/basegfx/source/polygon/b3dpolygonclipper.cxx b/basegfx/source/polygon/b3dpolygonclipper.cxx
index c0b36ccf5205..d8099b3e7b67 100644
--- a/basegfx/source/polygon/b3dpolygonclipper.cxx
+++ b/basegfx/source/polygon/b3dpolygonclipper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -246,7 +246,7 @@ namespace basegfx
{
impAppendCopy(aNewPolygon, rCandidate, nNextIndex);
}
-
+
// pepare next step
aCurrent = aNext;
}
@@ -280,7 +280,7 @@ namespace basegfx
{
impAppendCopy(aNewPolygon, rCandidate, nNextIndex);
}
-
+
// pepare next step
aCurrent = aNext;
}
@@ -338,7 +338,7 @@ namespace basegfx
{
const B3DRange aCandidateRange3D(getRange(rCandidate));
const B2DRange aCandidateRange(
- aCandidateRange3D.getMinX(), aCandidateRange3D.getMinY(),
+ aCandidateRange3D.getMinX(), aCandidateRange3D.getMinY(),
aCandidateRange3D.getMaxX(), aCandidateRange3D.getMaxY());
if(rRange.isInside(aCandidateRange))
diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx
index ce76c3503dbf..b56c837e2a09 100644
--- a/basegfx/source/polygon/b3dpolygontools.cxx
+++ b/basegfx/source/polygon/b3dpolygontools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -251,7 +251,7 @@ namespace basegfx
{
double fRetval(0.0);
const sal_uInt32 nPointCount(rCandidate.count());
-
+
if(nPointCount > 1L)
{
const sal_uInt32 nLoopCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1L);
@@ -449,7 +449,7 @@ namespace basegfx
aSnippet.clear();
}
-
+
// prepare next DotDashArray step and flip line/gap flag
fLastDotDashMovingLength = fDotDashMovingLength;
fDotDashMovingLength += rDotDashArray[(++nDotDashIndex) % nDotDashCount];
@@ -459,7 +459,7 @@ namespace basegfx
// append snippet [fLastDotDashMovingLength, fEdgeLength]
const bool bHandleLine(bIsLine && pLineTarget);
const bool bHandleGap(!bIsLine && pGapTarget);
-
+
if(bHandleLine || bHandleGap)
{
if(!aSnippet.count())
@@ -469,10 +469,10 @@ namespace basegfx
aSnippet.append(aNextPoint);
}
-
+
// prepare move to next edge
fDotDashMovingLength -= fEdgeLength;
-
+
// prepare next edge step (end point gets new start point)
aCurrentPoint = aNextPoint;
}
@@ -674,7 +674,7 @@ namespace basegfx
if(bChangeY)
{
aTexCoor.setY(fOne);
-
+
if(bChangeX)
{
bPolarPoints = true;
@@ -684,7 +684,7 @@ namespace basegfx
else
{
double fX(fOne - ((atan2(aVector.getZ(), aVector.getX()) + F_PI) / F_2PI));
-
+
// correct cartesinan point coordiante dependent from center value
if(fX > fXCenter + 0.5)
{
@@ -828,7 +828,7 @@ namespace basegfx
bool isInEpsilonRange(const B3DPolygon& rCandidate, const B3DPoint& rTestPosition, double fDistance)
{
const sal_uInt32 nPointCount(rCandidate.count());
-
+
if(nPointCount)
{
const sal_uInt32 nEdgeCount(rCandidate.isClosed() ? nPointCount : nPointCount - 1L);
@@ -895,7 +895,7 @@ namespace basegfx
{
const B3DPoint aPreviousPoint(aCurrentPoint);
aCurrentPoint = rCandidate.getB3DPoint(a);
-
+
// cross-over in Z?
const bool bCompZA(fTools::more(aPreviousPoint.getZ(), rPoint.getZ()));
const bool bCompZB(fTools::more(aCurrentPoint.getZ(), rPoint.getZ()));
@@ -905,7 +905,7 @@ namespace basegfx
// cross-over in Y?
const bool bCompYA(fTools::more(aPreviousPoint.getY(), rPoint.getY()));
const bool bCompYB(fTools::more(aCurrentPoint.getY(), rPoint.getY()));
-
+
if(bCompYA == bCompYB)
{
if(bCompYA)
@@ -936,7 +936,7 @@ namespace basegfx
{
const B3DPoint aPreviousPoint(aCurrentPoint);
aCurrentPoint = rCandidate.getB3DPoint(a);
-
+
// cross-over in Z?
const bool bCompZA(fTools::more(aPreviousPoint.getZ(), rPoint.getZ()));
const bool bCompZB(fTools::more(aCurrentPoint.getZ(), rPoint.getZ()));
@@ -946,7 +946,7 @@ namespace basegfx
// cross-over in X?
const bool bCompXA(fTools::more(aPreviousPoint.getX(), rPoint.getX()));
const bool bCompXB(fTools::more(aCurrentPoint.getX(), rPoint.getX()));
-
+
if(bCompXA == bCompXB)
{
if(bCompXA)
@@ -977,7 +977,7 @@ namespace basegfx
{
const B3DPoint aPreviousPoint(aCurrentPoint);
aCurrentPoint = rCandidate.getB3DPoint(a);
-
+
// cross-over in Y?
const bool bCompYA(fTools::more(aPreviousPoint.getY(), rPoint.getY()));
const bool bCompYB(fTools::more(aCurrentPoint.getY(), rPoint.getY()));
@@ -987,7 +987,7 @@ namespace basegfx
// cross-over in X?
const bool bCompXA(fTools::more(aPreviousPoint.getX(), rPoint.getX()));
const bool bCompXB(fTools::more(aCurrentPoint.getX(), rPoint.getX()));
-
+
if(bCompXA == bCompXB)
{
if(bCompXA)
@@ -1056,7 +1056,7 @@ namespace basegfx
const double fZero(0.0);
const double fOne(1.0);
double fParamTestOnCurr(0.0);
-
+
if(aEdgeVector.getX() > aEdgeVector.getY())
{
if(aEdgeVector.getX() > aEdgeVector.getZ())
@@ -1134,7 +1134,7 @@ namespace basegfx
{
const B3DVector aCompareEdge(rPlanePoint - rEdgeStart);
const double fScalarCompare(rPlaneNormal.scalar(aCompareEdge));
-
+
fCut = fScalarCompare / fScalarEdge;
return true;
}
@@ -1158,7 +1158,7 @@ namespace basegfx
return getCutBetweenLineAndPlane(aPlaneNormal, aPointOnPlane, rEdgeStart, rEdgeEnd, fCut);
}
}
-
+
return false;
}
@@ -1202,7 +1202,7 @@ namespace basegfx
if(nPointCount > 1)
{
- // Start by copying the source polygon to get a writeable copy. The closed state is
+ // Start by copying the source polygon to get a writeable copy. The closed state is
// copied by aRetval's initialisation, too, so no need to copy it in this method
B3DPolygon aRetval(rCandidate);
diff --git a/basegfx/source/polygon/b3dpolypolygon.cxx b/basegfx/source/polygon/b3dpolypolygon.cxx
index 3a736573c8e7..e86ddd1ef4e9 100644
--- a/basegfx/source/polygon/b3dpolypolygon.cxx
+++ b/basegfx/source/polygon/b3dpolypolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,9 +42,9 @@
class ImplB3DPolyPolygon
{
- typedef ::std::vector< ::basegfx::B3DPolygon > PolygonVector;
+ typedef ::std::vector< ::basegfx::B3DPolygon > PolygonVector;
- PolygonVector maPolygons;
+ PolygonVector maPolygons;
public:
ImplB3DPolyPolygon() : maPolygons()
@@ -209,7 +209,7 @@ public:
namespace basegfx
{
- namespace { struct DefaultPolyPolygon : public rtl::Static<B3DPolyPolygon::ImplType,
+ namespace { struct DefaultPolyPolygon : public rtl::Static<B3DPolyPolygon::ImplType,
DefaultPolyPolygon> {}; }
B3DPolyPolygon::B3DPolyPolygon() :
@@ -264,7 +264,7 @@ namespace basegfx
B3DPolygon B3DPolyPolygon::getB3DPolygon(sal_uInt32 nIndex) const
{
OSL_ENSURE(nIndex < mpPolyPolygon->count(), "B3DPolyPolygon access outside range (!)");
-
+
return mpPolyPolygon->getB3DPolygon(nIndex);
}
@@ -348,7 +348,7 @@ namespace basegfx
void B3DPolyPolygon::insert(sal_uInt32 nIndex, const B3DPolygon& rPolygon, sal_uInt32 nCount)
{
OSL_ENSURE(nIndex <= mpPolyPolygon->count(), "B3DPolyPolygon Insert outside range (!)");
-
+
if(nCount)
mpPolyPolygon->insert(nIndex, rPolygon, nCount);
}
@@ -362,7 +362,7 @@ namespace basegfx
void B3DPolyPolygon::insert(sal_uInt32 nIndex, const B3DPolyPolygon& rPolyPolygon)
{
OSL_ENSURE(nIndex <= mpPolyPolygon->count(), "B3DPolyPolygon Insert outside range (!)");
-
+
if(rPolyPolygon.count())
mpPolyPolygon->insert(nIndex, rPolyPolygon);
}
@@ -376,11 +376,11 @@ namespace basegfx
void B3DPolyPolygon::remove(sal_uInt32 nIndex, sal_uInt32 nCount)
{
OSL_ENSURE(nIndex + nCount <= mpPolyPolygon->count(), "B3DPolyPolygon Remove outside range (!)");
-
+
if(nCount)
mpPolyPolygon->remove(nIndex, nCount);
}
-
+
void B3DPolyPolygon::clear()
{
mpPolyPolygon = DefaultPolyPolygon::get();
diff --git a/basegfx/source/polygon/b3dpolypolygontools.cxx b/basegfx/source/polygon/b3dpolypolygontools.cxx
index 1cff2eaf1765..f64388dae9ec 100644
--- a/basegfx/source/polygon/b3dpolypolygontools.cxx
+++ b/basegfx/source/polygon/b3dpolypolygontools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,16 +70,16 @@ namespace basegfx
if(rCandidate.count() && fFullDashDotLen > 0.0)
{
B3DPolyPolygon aLineTarget, aGapTarget;
-
+
for(sal_uInt32 a(0L); a < rCandidate.count(); a++)
{
const B3DPolygon aCandidate(rCandidate.getB3DPolygon(a));
-
+
applyLineDashing(
- aCandidate,
- rDotDashArray,
- pLineTarget ? &aLineTarget : 0,
- pGapTarget ? &aGapTarget : 0,
+ aCandidate,
+ rDotDashArray,
+ pLineTarget ? &aLineTarget : 0,
+ pGapTarget ? &aGapTarget : 0,
fFullDashDotLen);
if(pLineTarget)
@@ -342,8 +342,8 @@ namespace basegfx
return aRetval;
}
-
- B3DPolyPolygon createSpherePolyPolygonFromB3DRange( const B3DRange& rRange,
+
+ B3DPolyPolygon createSpherePolyPolygonFromB3DRange( const B3DRange& rRange,
sal_uInt32 nHorSeg, sal_uInt32 nVerSeg,
double fVerStart, double fVerStop,
double fHorStart, double fHorStop)
@@ -424,8 +424,8 @@ namespace basegfx
return aRetval;
}
-
- B3DPolyPolygon createSphereFillPolyPolygonFromB3DRange( const B3DRange& rRange,
+
+ B3DPolyPolygon createSphereFillPolyPolygonFromB3DRange( const B3DRange& rRange,
sal_uInt32 nHorSeg, sal_uInt32 nVerSeg,
bool bNormals,
double fVerStart, double fVerStop,
diff --git a/basegfx/source/range/b1drange.cxx b/basegfx/source/range/b1drange.cxx
index 5de4a342aab8..ff56ef032a8e 100644
--- a/basegfx/source/range/b1drange.cxx
+++ b/basegfx/source/range/b1drange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
namespace basegfx
{
- B1DRange::B1DRange( const B1IRange& rRange ) :
+ B1DRange::B1DRange( const B1IRange& rRange ) :
maRange()
{
if( !rRange.isEmpty() )
@@ -46,7 +46,7 @@ namespace basegfx
B1IRange fround(const B1DRange& rRange)
{
- return rRange.isEmpty() ?
+ return rRange.isEmpty() ?
B1IRange() :
B1IRange( fround( rRange.getMinimum()),
fround( rRange.getMaximum()) );
diff --git a/basegfx/source/range/b2dpolyrange.cxx b/basegfx/source/range/b2dpolyrange.cxx
index f0088bfc5793..d585270c84e7 100644
--- a/basegfx/source/range/b2dpolyrange.cxx
+++ b/basegfx/source/range/b2dpolyrange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,10 +43,10 @@
#include <algorithm>
#include <vector>
-static basegfx::B2VectorOrientation flipOrientation(
+static basegfx::B2VectorOrientation flipOrientation(
basegfx::B2VectorOrientation eOrient)
{
- return eOrient == basegfx::ORIENTATION_POSITIVE ?
+ return eOrient == basegfx::ORIENTATION_POSITIVE ?
basegfx::ORIENTATION_NEGATIVE : basegfx::ORIENTATION_POSITIVE;
}
@@ -152,11 +152,11 @@ namespace basegfx
void appendPolyRange(const ImplB2DPolyRange& rPolyRange)
{
- maRanges.insert(maRanges.end(),
- rPolyRange.maRanges.begin(),
+ maRanges.insert(maRanges.end(),
+ rPolyRange.maRanges.begin(),
rPolyRange.maRanges.end());
- maOrient.insert(maOrient.end(),
- rPolyRange.maOrient.begin(),
+ maOrient.insert(maOrient.end(),
+ rPolyRange.maOrient.begin(),
rPolyRange.maOrient.end());
updateBounds();
}
@@ -201,7 +201,7 @@ namespace basegfx
// cannot use boost::bind here, since isInside is overloaded.
// It is currently not possible to resolve the overload
// by considering one of the other template arguments.
- std::vector<B2DRange>::const_iterator aCurr( maRanges.begin() );
+ std::vector<B2DRange>::const_iterator aCurr( maRanges.begin() );
const std::vector<B2DRange>::const_iterator aEnd ( maRanges.end() );
while( aCurr != aEnd )
if( aCurr->isInside( rValue ) )
@@ -216,7 +216,7 @@ namespace basegfx
return false;
const std::vector<B2DRange>::const_iterator aEnd( maRanges.end() );
- return std::find_if( maRanges.begin(),
+ return std::find_if( maRanges.begin(),
aEnd,
boost::bind<bool>( boost::mem_fn( &B2DRange::overlaps ),
_1,
@@ -261,8 +261,8 @@ namespace basegfx
}
private:
- B2DRange maBounds;
- std::vector<B2DRange> maRanges;
+ B2DRange maBounds;
+ std::vector<B2DRange> maRanges;
std::vector<B2VectorOrientation> maOrient;
};
@@ -276,7 +276,7 @@ namespace basegfx
B2DPolyRange::B2DPolyRange( const ElementType& rElem ) :
mpImpl( ImplB2DPolyRange( rElem ) )
{}
-
+
B2DPolyRange::B2DPolyRange( const B2DRange& rRange, B2VectorOrientation eOrient ) :
mpImpl( ImplB2DPolyRange( rRange, eOrient ) )
{}
@@ -383,7 +383,7 @@ namespace basegfx
{
return mpImpl->isInside(rTuple);
}
-
+
bool B2DPolyRange::isInside( const B2DRange& rRange ) const
{
return mpImpl->isInside(rRange);
diff --git a/basegfx/source/range/b2drange.cxx b/basegfx/source/range/b2drange.cxx
index d79adafaea27..6121fa2f60a5 100644
--- a/basegfx/source/range/b2drange.cxx
+++ b/basegfx/source/range/b2drange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@
namespace basegfx
{
- B2DRange::B2DRange( const B2IRange& rRange ) :
+ B2DRange::B2DRange( const B2IRange& rRange ) :
maRangeX(),
maRangeY()
{
@@ -67,7 +67,7 @@ namespace basegfx
{
return rRange.isEmpty() ?
B2IRange() :
- B2IRange(fround(rRange.getMinimum()),
+ B2IRange(fround(rRange.getMinimum()),
fround(rRange.getMaximum()));
}
} // end of namespace basegfx
diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx
index 6546b6a13c09..235c09f0b129 100644
--- a/basegfx/source/range/b2drangeclipper.cxx
+++ b/basegfx/source/range/b2drangeclipper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,8 +54,8 @@ namespace basegfx
{
namespace
{
- // Generating a poly-polygon from a bunch of rectangles
- //
+ // Generating a poly-polygon from a bunch of rectangles
+ //
// Helper functionality for sweep-line algorithm
// ====================================================
@@ -93,13 +93,13 @@ namespace basegfx
PROCEED_RIGHT=1
};
- /** Create active edge
+ /** Create active edge
@param rRect
Rectangle this edge is part of
@param fInvariantCoord
- The invariant ccordinate value of this edge
+ The invariant ccordinate value of this edge
@param eEdgeType
Is fInvariantCoord the lower or the higher value, for
@@ -117,12 +117,12 @@ namespace basegfx
meEdgeDirection( eEdgeDirection )
{}
- double getInvariantCoord() const { return mfInvariantCoord; }
+ double getInvariantCoord() const { return mfInvariantCoord; }
const B2DRectangle& getRect() const { return *mpAssociatedRect; }
- std::ptrdiff_t getTargetPolygonIndex() const { return mnPolygonIdx; }
- void setTargetPolygonIndex( std::ptrdiff_t nIdx ) { mnPolygonIdx = nIdx; }
- EdgeType getEdgeType() const { return meEdgeType; }
- EdgeDirection getEdgeDirection() const { return meEdgeDirection; }
+ std::ptrdiff_t getTargetPolygonIndex() const { return mnPolygonIdx; }
+ void setTargetPolygonIndex( std::ptrdiff_t nIdx ) { mnPolygonIdx = nIdx; }
+ EdgeType getEdgeType() const { return meEdgeType; }
+ EdgeDirection getEdgeDirection() const { return meEdgeDirection; }
/// For STL sort
bool operator<( const ActiveEdge& rRHS ) const { return mfInvariantCoord < rRHS.mfInvariantCoord; }
@@ -156,7 +156,7 @@ namespace basegfx
std::ptrdiff_t mnPolygonIdx;
/// 'upper' or 'lower' edge of original rectangle.
- EdgeType meEdgeType;
+ EdgeType meEdgeType;
/// 'left' or 'right'
EdgeDirection meEdgeDirection;
@@ -167,7 +167,7 @@ namespace basegfx
/** Element of the sweep line event list
-
+
As the sweep line traverses across the overall area,
rectangle edges parallel to it generate events, and
rectangle edges orthogonal to it generate active
@@ -210,9 +210,9 @@ namespace basegfx
Is fPos the lower or the higher value, for the
rectangle this event is generated for?
*/
- SweepLineEvent( double fPos,
+ SweepLineEvent( double fPos,
const B2DRectangle& rRect,
- EdgeType eEdgeType,
+ EdgeType eEdgeType,
EdgeDirection eDirection) :
mfPos( fPos ),
mpAssociatedRect( &rRect ),
@@ -220,17 +220,17 @@ namespace basegfx
meEdgeDirection( eDirection )
{}
- double getPos() const { return mfPos; }
+ double getPos() const { return mfPos; }
const B2DRectangle& getRect() const { return *mpAssociatedRect; }
- EdgeType getEdgeType() const { return meEdgeType; }
- EdgeDirection getEdgeDirection() const { return meEdgeDirection; }
+ EdgeType getEdgeType() const { return meEdgeType; }
+ EdgeDirection getEdgeDirection() const { return meEdgeDirection; }
/// For STL sort
bool operator<( const SweepLineEvent& rRHS ) const { return mfPos < rRHS.mfPos; }
private:
/// position of the event, in the direction of the line sweep
- double mfPos;
+ double mfPos;
/** Rectangle this event is generated for
@@ -244,7 +244,7 @@ namespace basegfx
const B2DRectangle* mpAssociatedRect;
/// 'upper' or 'lower' edge of original rectangle.
- EdgeType meEdgeType;
+ EdgeType meEdgeType;
/// 'up' or 'down'
EdgeDirection meEdgeDirection;
@@ -254,7 +254,7 @@ namespace basegfx
/** Smart point container for B2DMultiRange::getPolyPolygon()
-
+
This class provides methods needed only here, and is used
as a place to store some additional information per
polygon. Also, most of the intersection logic is
@@ -265,7 +265,7 @@ namespace basegfx
public:
/** Create polygon
*/
- ImplPolygon() :
+ ImplPolygon() :
mpLeadingRightEdge(NULL),
mnIdx(-1),
maPoints(),
@@ -279,8 +279,8 @@ namespace basegfx
bool isFinished() const { return mbIsFinished; }
/// Add point to the end of the existing points
- void append( const B2DPoint& rPoint )
- {
+ void append( const B2DPoint& rPoint )
+ {
OSL_PRECOND( maPoints.empty() ||
maPoints.back().getX() == rPoint.getX() ||
maPoints.back().getY() == rPoint.getY(),
@@ -290,7 +290,7 @@ namespace basegfx
maPoints.back() != rPoint )
{
// avoid duplicate points
- maPoints.push_back( rPoint );
+ maPoints.push_back( rPoint );
}
}
@@ -317,25 +317,25 @@ namespace basegfx
list of upcoming active edges).
*/
std::ptrdiff_t intersect( SweepLineEvent& rEvent,
- ActiveEdge& rActiveEdge,
+ ActiveEdge& rActiveEdge,
VectorOfPolygons& rPolygonPool,
B2DPolyPolygon& rRes,
bool isFinishingEdge )
{
OSL_PRECOND( !isFinished(),
"ImplPolygon::intersect(): called on already finished polygon!" );
- OSL_PRECOND( !isFinishingEdge
+ OSL_PRECOND( !isFinishingEdge
|| (isFinishingEdge && &rEvent.getRect() == &rActiveEdge.getRect()),
"ImplPolygon::intersect(): inconsistent ending!" );
- const B2DPoint aIntersectionPoint( rEvent.getPos(),
+ const B2DPoint aIntersectionPoint( rEvent.getPos(),
rActiveEdge.getInvariantCoord() );
// intersection point, goes to our polygon
// unconditionally
append(aIntersectionPoint);
- const bool isSweepLineEnteringRect(
+ const bool isSweepLineEnteringRect(
rEvent.getEdgeType() == SweepLineEvent::STARTING_EDGE);
if( isFinishingEdge )
{
@@ -361,8 +361,8 @@ namespace basegfx
{
OSL_ENSURE( rActiveEdge.getTargetPolygonIndex() != -1,
"ImplPolygon::intersect(): non-trivial intersection hit empty polygon!" );
-
- const bool isHittingLeftEdge(
+
+ const bool isHittingLeftEdge(
rActiveEdge.getEdgeDirection() == ActiveEdge::PROCEED_LEFT);
if( isHittingLeftEdge )
@@ -376,7 +376,7 @@ namespace basegfx
rPolygonPool);
}
}
-
+
private:
std::ptrdiff_t getPolygonPoolIndex() const { return mnIdx; }
@@ -385,7 +385,7 @@ namespace basegfx
{
const bool isActiveEdgeProceedLeft(
rActiveEdge.getEdgeDirection() == ActiveEdge::PROCEED_LEFT);
- const bool isSweepLineEnteringRect(
+ const bool isSweepLineEnteringRect(
rEvent.getEdgeType() == SweepLineEvent::STARTING_EDGE);
(void)isActiveEdgeProceedLeft;
(void)isSweepLineEnteringRect;
@@ -402,7 +402,7 @@ namespace basegfx
{
OSL_ENSURE( rActiveEdge.getEdgeDirection() == ActiveEdge::PROCEED_RIGHT,
"ImplPolygon::handleInitialOwnRightEdge(): start edge wrong polygon order" );
-
+
rActiveEdge.setTargetPolygonIndex(mnIdx);
mpLeadingRightEdge = &rActiveEdge;
}
@@ -442,7 +442,7 @@ namespace basegfx
}
}
- std::ptrdiff_t handleComplexLeftEdge(ActiveEdge& rActiveEdge,
+ std::ptrdiff_t handleComplexLeftEdge(ActiveEdge& rActiveEdge,
const B2DPoint& rIntersectionPoint,
VectorOfPolygons& rPolygonPool,
B2DPolyPolygon& rRes)
@@ -491,7 +491,7 @@ namespace basegfx
}
}
- std::ptrdiff_t handleComplexRightEdge(ActiveEdge& rActiveEdge,
+ std::ptrdiff_t handleComplexRightEdge(ActiveEdge& rActiveEdge,
const B2DPoint& rIntersectionPoint,
VectorOfPolygons& rPolygonPool)
{
@@ -499,10 +499,10 @@ namespace basegfx
ImplPolygon& rTmp=rPolygonPool.get(nTmpIdx);
rTmp.append(rIntersectionPoint);
-
+
rActiveEdge.setTargetPolygonIndex(mnIdx);
mpLeadingRightEdge = &rActiveEdge;
-
+
rTmp.mpLeadingRightEdge = NULL;
return nTmpIdx;
@@ -510,7 +510,7 @@ namespace basegfx
/// True when sweep line hits our own active edge
bool metOwnEdge(const SweepLineEvent& rEvent,
- ActiveEdge& rActiveEdge)
+ ActiveEdge& rActiveEdge)
{
const bool bHitOwnEdge=&rEvent.getRect() == &rActiveEdge.getRect();
return bHitOwnEdge;
@@ -522,7 +522,7 @@ namespace basegfx
B2DPolygon aRes;
std::for_each( maPoints.begin(),
maPoints.end(),
- boost::bind(
+ boost::bind(
&B2DPolygon::append,
boost::ref(aRes),
_1,
@@ -533,13 +533,13 @@ namespace basegfx
/** Finish this polygon, push to result set.
*/
- void finish(B2DPolyPolygon& rRes)
- {
+ void finish(B2DPolyPolygon& rRes)
+ {
OSL_PRECOND( maPoints.empty() ||
maPoints.front().getX() == maPoints.back().getX() ||
maPoints.front().getY() == maPoints.back().getY(),
"ImplPolygon::finish(): first and last point violate 90 degree line angle constraint!" );
-
+
mbIsFinished = true;
mpLeadingRightEdge = NULL;
@@ -561,7 +561,7 @@ namespace basegfx
std::vector<B2DPoint> maPoints;
/// When true, this polygon is 'done', i.e. nothing must be added anymore.
- bool mbIsFinished;
+ bool mbIsFinished;
};
/** Init sweep line event list
@@ -591,7 +591,7 @@ namespace basegfx
{
const B2DRectangle& rCurrRect( *aCurrRect++ );
- o_rEventVector.push_back(
+ o_rEventVector.push_back(
SweepLineEvent( rCurrRect.getMinX(),
rCurrRect,
SweepLineEvent::STARTING_EDGE,
@@ -608,7 +608,7 @@ namespace basegfx
{
const B2DRectangle& rCurrRect( *aCurrRectR++ );
- o_rEventVector.push_back(
+ o_rEventVector.push_back(
SweepLineEvent( rCurrRect.getMaxX(),
rCurrRect,
SweepLineEvent::FINISHING_EDGE,
@@ -657,8 +657,8 @@ namespace basegfx
@param rCurrEvent
The actual event that caused this call
*/
- void createActiveEdgesFromStartEvent( ListOfEdges& io_rEdgeList,
- VectorOfPolygons& io_rPolygonPool,
+ void createActiveEdgesFromStartEvent( ListOfEdges& io_rEdgeList,
+ VectorOfPolygons& io_rPolygonPool,
SweepLineEvent& rCurrEvent )
{
ListOfEdges aNewEdges;
@@ -671,16 +671,16 @@ namespace basegfx
io_rPolygonPool.get(nIdxPolygon).setPolygonPoolIndex(nIdxPolygon);
// upper edge
- aNewEdges.push_back(
- ActiveEdge(
+ aNewEdges.push_back(
+ ActiveEdge(
rRect,
rRect.getMinY(),
bGoesDown ? nIdxPolygon : -1,
ActiveEdge::UPPER,
bGoesDown ? ActiveEdge::PROCEED_LEFT : ActiveEdge::PROCEED_RIGHT) );
// lower edge
- aNewEdges.push_back(
- ActiveEdge(
+ aNewEdges.push_back(
+ ActiveEdge(
rRect,
rRect.getMaxY(),
bGoesDown ? -1 : nIdxPolygon,
@@ -698,22 +698,22 @@ namespace basegfx
// starts and finishes this rect correctly (as only then,
// the polygon will have their associated active edges
// set).
- const double nMinY( rRect.getMinY() );
- const double nMaxY( rRect.getMaxY() );
- ListOfEdges::iterator aCurr( io_rEdgeList.begin() );
+ const double nMinY( rRect.getMinY() );
+ const double nMaxY( rRect.getMaxY() );
+ ListOfEdges::iterator aCurr( io_rEdgeList.begin() );
const ListOfEdges::iterator aEnd ( io_rEdgeList.end() );
while( aCurr != aEnd )
{
const double nCurrY( aCurr->getInvariantCoord() );
- if( nCurrY >= nMinY &&
+ if( nCurrY >= nMinY &&
aNewEdges.size() == 2 ) // only add, if not yet done.
{
// insert upper edge _before_ aCurr. Thus, it will
// be the first entry for a range of equal y
// values. Using splice here, since we hold
// references to the moved list element!
- io_rEdgeList.splice( aCurr,
+ io_rEdgeList.splice( aCurr,
aNewEdges,
aNewEdges.begin() );
}
@@ -725,7 +725,7 @@ namespace basegfx
// (aCurr is the first entry strictly larger than
// nMaxY). Using splice here, since we hold
// references to the moved list element!
- io_rEdgeList.splice( aCurr,
+ io_rEdgeList.splice( aCurr,
aNewEdges,
aNewEdges.begin() );
// done with insertion, can early-exit here.
@@ -798,13 +798,13 @@ namespace basegfx
// second encounter of my rect -> second edge
// encountered, done
const bool bExit=
- nCount &&
+ nCount &&
isSameRect(*first,
rCurrRect);
// deal with current active edge
- nCurrPolyIdx =
- rPolygonPool.get(nCurrPolyIdx).intersect(
+ nCurrPolyIdx =
+ rPolygonPool.get(nCurrPolyIdx).intersect(
rCurrEvent,
*first,
rPolygonPool,
@@ -825,29 +825,29 @@ namespace basegfx
}
}
- template<int bPerformErase> inline void processActiveEdgesTopDown(
+ template<int bPerformErase> inline void processActiveEdgesTopDown(
SweepLineEvent& rCurrEvent,
ListOfEdges& rActiveEdgeList,
VectorOfPolygons& rPolygonPool,
B2DPolyPolygon& rRes )
{
processActiveEdges<bPerformErase>(
- rActiveEdgeList. begin(),
- rActiveEdgeList. end(),
+ rActiveEdgeList. begin(),
+ rActiveEdgeList. end(),
rActiveEdgeList,
rCurrEvent,
rPolygonPool,
rRes);
}
- template<int bPerformErase> inline void processActiveEdgesBottomUp(
+ template<int bPerformErase> inline void processActiveEdgesBottomUp(
SweepLineEvent& rCurrEvent,
ListOfEdges& rActiveEdgeList,
VectorOfPolygons& rPolygonPool,
B2DPolyPolygon& rRes )
{
processActiveEdges<bPerformErase>(
- rActiveEdgeList. rbegin(),
+ rActiveEdgeList. rbegin(),
rActiveEdgeList. rend(),
rActiveEdgeList,
rCurrEvent,
@@ -866,7 +866,7 @@ namespace basegfx
createActiveEdgesFromStartEvent( rActiveEdgeList,
rPolygonPool,
rCurrEvent );
-
+
if( SweepLineEvent::PROCEED_DOWN == rCurrEvent.getEdgeDirection() )
processActiveEdgesTopDown<NoErase>(
rCurrEvent, rActiveEdgeList, rPolygonPool, rRes);
@@ -902,7 +902,7 @@ namespace basegfx
namespace tools
{
- B2DPolyPolygon solveCrossovers(const std::vector<B2DRange>& rRanges,
+ B2DPolyPolygon solveCrossovers(const std::vector<B2DRange>& rRanges,
const std::vector<B2VectorOrientation>& rOrientations)
{
// sweep-line algorithm to generate a poly-polygon
@@ -911,8 +911,8 @@ namespace basegfx
//
// This algorithm uses the well-known sweep line
// concept, explained in every good text book about
- // computational geometry.
- //
+ // computational geometry.
+ //
// We start with creating two structures for every
// rectangle, one representing the left x coordinate,
// one representing the right x coordinate (and both
@@ -930,7 +930,7 @@ namespace basegfx
B2DPolyPolygon aRes;
VectorOfPolygons aPolygonPool;
- ListOfEdges aActiveEdgeList;
+ ListOfEdges aActiveEdgeList;
// sometimes not enough, but a usable compromise
aPolygonPool.reserve( rRanges.size() );
diff --git a/basegfx/source/range/b2xrange.cxx b/basegfx/source/range/b2xrange.cxx
index a2e33b461c92..3dbb5d900541 100644
--- a/basegfx/source/range/b2xrange.cxx
+++ b/basegfx/source/range/b2xrange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,14 +40,14 @@ namespace basegfx
{
/** Generic implementation of the difference set computation
- @tpl RangeType
+ @tpl RangeType
Type to operate on. Must provide ValueType and TraitsType
nested types.
*/
- template< class RangeType > void doComputeSetDifference(
- ::std::vector< RangeType >& o_rRanges,
- const RangeType& a,
- const RangeType& b )
+ template< class RangeType > void doComputeSetDifference(
+ ::std::vector< RangeType >& o_rRanges,
+ const RangeType& a,
+ const RangeType& b )
{
o_rRanges.clear();
@@ -65,45 +65,45 @@ namespace basegfx
return;
}
- const typename RangeType::ValueType ax(a.getMinX());
- const typename RangeType::ValueType ay(a.getMinY());
- const typename RangeType::TraitsType::DifferenceType aw(a.getWidth());
- const typename RangeType::TraitsType::DifferenceType ah(a.getHeight());
- const typename RangeType::ValueType bx(b.getMinX());
- const typename RangeType::ValueType by(b.getMinY());
- const typename RangeType::TraitsType::DifferenceType bw(b.getWidth());
- const typename RangeType::TraitsType::DifferenceType bh(b.getHeight());
-
- const typename RangeType::TraitsType::DifferenceType h0( (by > ay) ? by - ay : 0 );
- const typename RangeType::TraitsType::DifferenceType h3( (by + bh < ay + ah) ? ay + ah - by - bh : 0 );
- const typename RangeType::TraitsType::DifferenceType w1( (bx > ax) ? bx - ax : 0 );
- const typename RangeType::TraitsType::DifferenceType w2( (ax + aw > bx + bw) ? ax + aw - bx - bw : 0 );
- const typename RangeType::TraitsType::DifferenceType h12( (h0 + h3 < ah) ? ah - h0 - h3 : 0 );
+ const typename RangeType::ValueType ax(a.getMinX());
+ const typename RangeType::ValueType ay(a.getMinY());
+ const typename RangeType::TraitsType::DifferenceType aw(a.getWidth());
+ const typename RangeType::TraitsType::DifferenceType ah(a.getHeight());
+ const typename RangeType::ValueType bx(b.getMinX());
+ const typename RangeType::ValueType by(b.getMinY());
+ const typename RangeType::TraitsType::DifferenceType bw(b.getWidth());
+ const typename RangeType::TraitsType::DifferenceType bh(b.getHeight());
+
+ const typename RangeType::TraitsType::DifferenceType h0( (by > ay) ? by - ay : 0 );
+ const typename RangeType::TraitsType::DifferenceType h3( (by + bh < ay + ah) ? ay + ah - by - bh : 0 );
+ const typename RangeType::TraitsType::DifferenceType w1( (bx > ax) ? bx - ax : 0 );
+ const typename RangeType::TraitsType::DifferenceType w2( (ax + aw > bx + bw) ? ax + aw - bx - bw : 0 );
+ const typename RangeType::TraitsType::DifferenceType h12( (h0 + h3 < ah) ? ah - h0 - h3 : 0 );
// TODO(E2): Use numeric_cast instead of static_cast here,
// need range checks!
if (h0 > 0)
- o_rRanges.push_back(
+ o_rRanges.push_back(
RangeType(ax,ay,
static_cast<typename RangeType::ValueType>(ax+aw),
static_cast<typename RangeType::ValueType>(ay+h0)) );
if (w1 > 0 && h12 > 0)
- o_rRanges.push_back(
+ o_rRanges.push_back(
RangeType(ax,
static_cast<typename RangeType::ValueType>(ay+h0),
static_cast<typename RangeType::ValueType>(ax+w1),
static_cast<typename RangeType::ValueType>(ay+h0+h12)) );
if (w2 > 0 && h12 > 0)
- o_rRanges.push_back(
+ o_rRanges.push_back(
RangeType(static_cast<typename RangeType::ValueType>(bx+bw),
static_cast<typename RangeType::ValueType>(ay+h0),
static_cast<typename RangeType::ValueType>(bx+bw+w2),
static_cast<typename RangeType::ValueType>(ay+h0+h12)) );
if (h3 > 0)
- o_rRanges.push_back(
+ o_rRanges.push_back(
RangeType(ax,
static_cast<typename RangeType::ValueType>(ay+h0+h12),
static_cast<typename RangeType::ValueType>(ax+aw),
@@ -111,27 +111,27 @@ namespace basegfx
}
}
- ::std::vector< B2IRange >& computeSetDifference( ::std::vector< B2IRange >& o_rResult,
- const B2IRange& rFirst,
- const B2IRange& rSecond )
+ ::std::vector< B2IRange >& computeSetDifference( ::std::vector< B2IRange >& o_rResult,
+ const B2IRange& rFirst,
+ const B2IRange& rSecond )
{
doComputeSetDifference( o_rResult, rFirst, rSecond );
return o_rResult;
}
- ::std::vector< B2DRange >& computeSetDifference( ::std::vector< B2DRange >& o_rResult,
- const B2DRange& rFirst,
- const B2DRange& rSecond )
+ ::std::vector< B2DRange >& computeSetDifference( ::std::vector< B2DRange >& o_rResult,
+ const B2DRange& rFirst,
+ const B2DRange& rSecond )
{
doComputeSetDifference( o_rResult, rFirst, rSecond );
return o_rResult;
}
- ::std::vector< B2IBox >& computeSetDifference( ::std::vector< B2IBox >& o_rResult,
- const B2IBox& rFirst,
- const B2IBox& rSecond )
+ ::std::vector< B2IBox >& computeSetDifference( ::std::vector< B2IBox >& o_rResult,
+ const B2IBox& rFirst,
+ const B2IBox& rSecond )
{
doComputeSetDifference( o_rResult, rFirst, rSecond );
diff --git a/basegfx/source/range/b3drange.cxx b/basegfx/source/range/b3drange.cxx
index 21ba72d9483d..ff6bceedb473 100644
--- a/basegfx/source/range/b3drange.cxx
+++ b/basegfx/source/range/b3drange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,11 +73,11 @@ namespace basegfx
{
return rRange.isEmpty() ?
B3IRange() :
- B3IRange(fround(rRange.getMinX()),
- fround(rRange.getMinY()),
- fround(rRange.getMinZ()),
- fround(rRange.getMaxX()),
- fround(rRange.getMaxY()),
+ B3IRange(fround(rRange.getMinX()),
+ fround(rRange.getMinY()),
+ fround(rRange.getMinZ()),
+ fround(rRange.getMaxX()),
+ fround(rRange.getMaxY()),
fround(rRange.getMaxZ()));
}
diff --git a/basegfx/source/raster/bpixelraster.cxx b/basegfx/source/raster/bpixelraster.cxx
index 96ad4e991b5a..232438439849 100644
--- a/basegfx/source/raster/bpixelraster.cxx
+++ b/basegfx/source/raster/bpixelraster.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/raster/bzpixelraster.cxx b/basegfx/source/raster/bzpixelraster.cxx
index 574d57f17500..e696d5839b9d 100644
--- a/basegfx/source/raster/bzpixelraster.cxx
+++ b/basegfx/source/raster/bzpixelraster.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/raster/rasterconvert3d.cxx b/basegfx/source/raster/rasterconvert3d.cxx
index 0d06ca5be086..f19048c3fa05 100644
--- a/basegfx/source/raster/rasterconvert3d.cxx
+++ b/basegfx/source/raster/rasterconvert3d.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ namespace basegfx
}
RasterConverter3D::RasterConverter3D()
- : InterpolatorProvider3D(),
+ : InterpolatorProvider3D(),
maLineEntries()
{}
@@ -107,7 +107,7 @@ namespace basegfx
if(!nStep || aCurrentEntry->decrementRasterConversionLineEntry3D(nStep))
{
- // add when exactly on current line or when incremet to it did not
+ // add when exactly on current line or when incremet to it did not
// completely consume it
if(nStep)
{
@@ -207,15 +207,15 @@ namespace basegfx
const double fEyeB(((*pViewToEye) * aEnd).getZ());
rEntry.setInverseTextureIndex(addInverseTextureInterpolator(
- rFill.getTextureCoordinate(a),
- rFill.getTextureCoordinate(b),
+ rFill.getTextureCoordinate(a),
+ rFill.getTextureCoordinate(b),
fEyeA, fEyeB, fInvYDelta));
}
else
{
rEntry.setTextureIndex(addTextureInterpolator(
- rFill.getTextureCoordinate(a),
- rFill.getTextureCoordinate(b),
+ rFill.getTextureCoordinate(a),
+ rFill.getTextureCoordinate(b),
fInvYDelta));
}
}
@@ -237,7 +237,7 @@ namespace basegfx
{
reset();
maLineEntries.clear();
-
+
B2DVector aVector(aEnd.getX() - aStart.getX(), aEnd.getY() - aStart.getY());
aVector.normalize();
const B2DVector aPerpend(getPerpendicular(aVector) * ((static_cast<double>(nLineWidth) + 0.5) * 0.5));
@@ -271,7 +271,7 @@ namespace basegfx
{
reset();
maLineEntries.clear();
-
+
// horizontal line, create vertical entries. These will be sorted by
// X anyways, so no need to distinguish the case here
maLineEntries.push_back(RasterConversionLineEntry3D(
@@ -307,7 +307,7 @@ namespace basegfx
RasterConversionLineEntry3D& rEntry = maLineEntries[maLineEntries.size() - 1];
- // need to choose a X-Distance for the 2nd edge which guarantees all pixels
+ // need to choose a X-Distance for the 2nd edge which guarantees all pixels
// of the line to be set. This is exactly the X-Increment for one Y-Step.
// Same is true for Z, so in both cases, add one increment to them. To also
// guarantee one pixel per line, add a minimum of one for X.
diff --git a/basegfx/source/tools/b2dclipstate.cxx b/basegfx/source/tools/b2dclipstate.cxx
index 46cf9bbe724f..4f1d68b0f699 100644
--- a/basegfx/source/tools/b2dclipstate.cxx
+++ b/basegfx/source/tools/b2dclipstate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,7 +83,7 @@ namespace tools
bool isCleared() const
{
return !maClipPoly.count()
- && !maPendingPolygons.count()
+ && !maPendingPolygons.count()
&& !maPendingRanges.count();
}
@@ -103,7 +103,7 @@ namespace tools
bool isNull() const
{
- return !maPendingPolygons.count()
+ return !maPendingPolygons.count()
&& !maPendingRanges.count()
&& isNullClipPoly();
}
@@ -119,9 +119,9 @@ namespace tools
bool operator==(const ImplB2DClipState& rRHS) const
{
- return maPendingPolygons == rRHS.maPendingPolygons
+ return maPendingPolygons == rRHS.maPendingPolygons
&& maPendingRanges == rRHS.maPendingRanges
- && maClipPoly == rRHS.maClipPoly
+ && maClipPoly == rRHS.maClipPoly
&& mePendingOps == rRHS.mePendingOps;
}
@@ -208,10 +208,10 @@ namespace tools
{
if( isCleared() )
return;
-
+
addClipState(rOther, UNION);
}
-
+
void intersectRange(const B2DRange& rRange)
{
if( isNull() )
@@ -240,10 +240,10 @@ namespace tools
{
if( isNull() )
return;
-
+
addClipState(rOther, INTERSECT);
}
-
+
void subtractRange(const B2DRange& rRange )
{
if( isNull() )
@@ -267,7 +267,7 @@ namespace tools
addPolyPolygon(rPolyPoly,SUBTRACT);
}
-
+
void subtractClipState(const ImplB2DClipState& rOther)
{
if( isNull() )
@@ -275,7 +275,7 @@ namespace tools
addClipState(rOther, SUBTRACT);
}
-
+
void xorRange(const B2DRange& rRange)
{
addRange(rRange,XOR);
@@ -295,7 +295,7 @@ namespace tools
{
addClipState(rOther, XOR);
}
-
+
B2DPolyPolygon getClipPoly() const
{
commitPendingRanges();
@@ -369,7 +369,7 @@ namespace tools
maPendingPolygons = solveCrossovers(maPendingPolygons);
maPendingPolygons = stripNeutralPolygons(maPendingPolygons);
maPendingPolygons = stripDispensablePolygons(maPendingPolygons, false);
-
+
if( bIsCleared )
{
// not representable, strictly speaking,
@@ -403,7 +403,7 @@ namespace tools
return;
// use the specialized range clipper for the win
- B2DPolyPolygon aCollectedRanges;
+ B2DPolyPolygon aCollectedRanges;
const bool bIsEmpty=isNullClipPoly();
const bool bIsCleared=!maClipPoly.count();
switch(mePendingOps)
@@ -471,7 +471,7 @@ namespace tools
aCollectedRanges = maPendingRanges.solveCrossovers();
aCollectedRanges = stripNeutralPolygons(aCollectedRanges);
aCollectedRanges = stripDispensablePolygons(aCollectedRanges, false);
-
+
if( bIsCleared )
{
// not representable, strictly speaking,
@@ -498,7 +498,7 @@ namespace tools
maPendingRanges.clear();
mePendingOps = UNION;
}
-
+
mutable B2DPolyPolygon maPendingPolygons;
mutable B2DPolyRange maPendingRanges;
mutable B2DPolyPolygon maClipPoly;
@@ -538,7 +538,7 @@ namespace tools
{
mpImpl.make_unique();
}
-
+
void B2DClipState::makeNull()
{
mpImpl->makeNull();
@@ -631,7 +631,7 @@ namespace tools
{
mpImpl->subtractClipState(*rState.mpImpl);
}
-
+
void B2DClipState::xorRange(const B2DRange& rRange)
{
mpImpl->xorRange(rRange);
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx
index 907ff2c7a1ed..c82b13d7cbf8 100644
--- a/basegfx/source/tools/canvastools.cxx
+++ b/basegfx/source/tools/canvastools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -97,12 +97,12 @@ namespace basegfx
uno::Sequence< geometry::RealPoint2D > outputSequence( nNumPoints );
geometry::RealPoint2D* pOutput = outputSequence.getArray();
-
+
// fill sequence from polygon
sal_uInt32 i;
for( i=0; i<nNumPoints; ++i )
{
- const ::basegfx::B2DPoint aPoint( rPoly.getB2DPoint(i) );
+ const ::basegfx::B2DPoint aPoint( rPoly.getB2DPoint(i) );
pOutput[i] = geometry::RealPoint2D( aPoint.getX(),
aPoint.getY() );
@@ -132,7 +132,7 @@ namespace basegfx
//---------------------------------------------------------------------------------------
- uno::Sequence< uno::Sequence< geometry::RealPoint2D > > pointSequenceSequenceFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly )
+ uno::Sequence< uno::Sequence< geometry::RealPoint2D > > pointSequenceSequenceFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPolyPoly )
{
const sal_uInt32 nNumPolies( rPolyPoly.count() );
sal_uInt32 i;
@@ -150,8 +150,8 @@ namespace basegfx
//---------------------------------------------------------------------------------------
- uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
- const ::basegfx::B2DPolygon& rPoly )
+ uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
+ const ::basegfx::B2DPolygon& rPoly )
{
uno::Reference< rendering::XPolyPolygon2D > xRes;
@@ -183,8 +183,8 @@ namespace basegfx
//---------------------------------------------------------------------------------------
- uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
- const ::basegfx::B2DPolyPolygon& rPolyPoly )
+ uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromB2DPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
+ const ::basegfx::B2DPolyPolygon& rPolyPoly )
{
uno::Reference< rendering::XPolyPolygon2D > xRes;
@@ -196,13 +196,13 @@ namespace basegfx
if( rPolyPoly.areControlPointsUsed() )
{
- xRes.set( xGraphicDevice->createCompatibleBezierPolyPolygon(
+ xRes.set( xGraphicDevice->createCompatibleBezierPolyPolygon(
bezierSequenceSequenceFromB2DPolyPolygon( rPolyPoly ) ),
uno::UNO_QUERY );
}
else
{
- xRes.set( xGraphicDevice->createCompatibleLinePolyPolygon(
+ xRes.set( xGraphicDevice->createCompatibleLinePolyPolygon(
pointSequenceSequenceFromB2DPolyPolygon( rPolyPoly ) ),
uno::UNO_QUERY );
}
@@ -295,7 +295,7 @@ namespace basegfx
::basegfx::B2DPolyPolygon b2DPolyPolygonFromXPolyPolygon2D( const uno::Reference< rendering::XPolyPolygon2D >& xPoly )
{
- ::basegfx::unotools::UnoPolyPolygon* pPolyImpl =
+ ::basegfx::unotools::UnoPolyPolygon* pPolyImpl =
dynamic_cast< ::basegfx::unotools::UnoPolyPolygon* >( xPoly.get() );
if( pPolyImpl )
@@ -333,7 +333,7 @@ namespace basegfx
throw lang::IllegalArgumentException(
::rtl::OUString::createFromAscii(
"basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(): Invalid input"
- "poly-polygon, cannot retrieve vertex data"),
+ "poly-polygon, cannot retrieve vertex data"),
uno::Reference< uno::XInterface >(),
0 );
}
@@ -349,8 +349,8 @@ namespace basegfx
//---------------------------------------------------------------------------------------
- ::basegfx::B2DHomMatrix& homMatrixFromAffineMatrix( ::basegfx::B2DHomMatrix& output,
- const geometry::AffineMatrix2D& input )
+ ::basegfx::B2DHomMatrix& homMatrixFromAffineMatrix( ::basegfx::B2DHomMatrix& output,
+ const geometry::AffineMatrix2D& input )
{
// ensure last row is [0,0,1] (and optimized away)
output.identity();
@@ -401,8 +401,8 @@ namespace basegfx
return output;
}
- geometry::AffineMatrix2D& affineMatrixFromHomMatrix( geometry::AffineMatrix2D& output,
- const ::basegfx::B2DHomMatrix& input)
+ geometry::AffineMatrix2D& affineMatrixFromHomMatrix( geometry::AffineMatrix2D& output,
+ const ::basegfx::B2DHomMatrix& input)
{
output.m00 = input.get(0,0);
output.m01 = input.get(0,1);
@@ -416,13 +416,13 @@ namespace basegfx
geometry::AffineMatrix3D& affineMatrixFromHomMatrix3D(
geometry::AffineMatrix3D& output,
- const ::basegfx::B3DHomMatrix& input)
+ const ::basegfx::B3DHomMatrix& input)
{
output.m00 = input.get(0,0);
output.m01 = input.get(0,1);
output.m02 = input.get(0,2);
output.m03 = input.get(0,3);
-
+
output.m10 = input.get(1,0);
output.m11 = input.get(1,1);
output.m12 = input.get(1,2);
@@ -438,7 +438,7 @@ namespace basegfx
//---------------------------------------------------------------------------------------
- ::basegfx::B2DHomMatrix& homMatrixFromMatrix( ::basegfx::B2DHomMatrix& output,
+ ::basegfx::B2DHomMatrix& homMatrixFromMatrix( ::basegfx::B2DHomMatrix& output,
const geometry::Matrix2D& input )
{
// ensure last row is [0,0,1] (and optimized away)
diff --git a/basegfx/source/tools/debugplotter.cxx b/basegfx/source/tools/debugplotter.cxx
index 9eb76e2870d9..1e88e3470a45 100644
--- a/basegfx/source/tools/debugplotter.cxx
+++ b/basegfx/source/tools/debugplotter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace basegfx
namespace
{
void outputHeader( const ::rtl::OString& rTitle,
- ::std::ostream* pStm )
+ ::std::ostream* pStm )
{
// output gnuplot setup
if( pStm )
@@ -73,12 +73,12 @@ namespace basegfx
"line(p,q,r) = p*(1-t)+q*t" << ::std::endl <<
// Plot a line's x component of a line in implicit
// form ax + by + c = 0
- "implicitLineX(a,b,c,t) = a*-c + t*-b" << ::std::endl <<
+ "implicitLineX(a,b,c,t) = a*-c + t*-b" << ::std::endl <<
// Plot a line's y component of a line in implicit
// form ax + by + c = 0
- "implicitLineY(a,b,c,t) = b*-c + t*a" << ::std::endl <<
- "pointmarkx(c,t) = c-0.03*t" << ::std::endl << // hack for displaying single points in parametric form
- "pointmarky(c,t) = c+0.03*t" << ::std::endl << // hack for displaying single points in parametric form
+ "implicitLineY(a,b,c,t) = b*-c + t*a" << ::std::endl <<
+ "pointmarkx(c,t) = c-0.03*t" << ::std::endl << // hack for displaying single points in parametric form
+ "pointmarky(c,t) = c+0.03*t" << ::std::endl << // hack for displaying single points in parametric form
"# end of setup" << ::std::endl;
}
else
@@ -106,12 +106,12 @@ namespace basegfx
"line(p,q,r) = p*(1-t)+q*t\n",
// Plot a line's x component of a line in implicit
// form ax + by + c = 0
- "implicitLineX(a,b,c,t) = a*-c + t*-b\n",
+ "implicitLineX(a,b,c,t) = a*-c + t*-b\n",
// Plot a line's y component of a line in implicit
// form ax + by + c = 0
- "implicitLineY(a,b,c,t) = b*-c + t*a\n",
- "pointmarkx(c,t) = c-0.03*t\n", // hack for displaying single points in parametric form
- "pointmarky(c,t) = c+0.03*t\n", // hack for displaying single points in parametric form
+ "implicitLineY(a,b,c,t) = b*-c + t*a\n",
+ "pointmarkx(c,t) = c-0.03*t\n", // hack for displaying single points in parametric form
+ "pointmarky(c,t) = c+0.03*t\n", // hack for displaying single points in parametric form
"# end of setup\n",
(const sal_Char*)rTitle );
}
@@ -124,7 +124,7 @@ namespace basegfx
mpStream( pStm )
{
}
-
+
void outputPoint( const ::std::pair< B2DPoint, ::rtl::OString >& rElem )
{
if( mpStream )
@@ -132,7 +132,7 @@ namespace basegfx
else
OSL_TRACE( " %f\t%f\n", rElem.first.getX(), rElem.first.getY() );
}
-
+
void outputVector( const ::std::pair< B2DVector, ::rtl::OString >& rElem )
{
if( mpStream )
@@ -140,16 +140,16 @@ namespace basegfx
else
OSL_TRACE( " %f\t%f\n\n", rElem.first.getX(), rElem.first.getY() );
}
-
+
void outputRect( const ::std::pair< B2DRange, ::rtl::OString >& rElem )
{
const double nX0( rElem.first.getMinX() );
const double nY0( rElem.first.getMinY() );
const double nX1( rElem.first.getMaxX() );
const double nY1( rElem.first.getMaxY() );
-
+
if( mpStream )
- *mpStream << " "
+ *mpStream << " "
<< nX0 << "\t" << nY0 << "\t"
<< nX1 << "\t" << nY0 << "\t"
<< nX1 << "\t" << nY1 << "\t"
@@ -157,7 +157,7 @@ namespace basegfx
<< nX0 << "\t" << nY0 << ::std::endl << ::std::endl;
else
- OSL_TRACE( " %f\t%f\t%f\t%f\t%f\t%f\t%f\t%f\t%f\t%f\n\n",
+ OSL_TRACE( " %f\t%f\t%f\t%f\t%f\t%f\t%f\t%f\t%f\t%f\n\n",
nX0, nY0,
nX1, nY0,
nX1, nY1,
@@ -166,7 +166,7 @@ namespace basegfx
}
private:
- ::std::ostream* mpStream;
+ ::std::ostream* mpStream;
};
}
@@ -204,7 +204,7 @@ namespace basegfx
bHavePolygons )
{
outputHeader( maTitle, mpOutputStream );
-
+
print( "\n\n# parametric primitive output\n"
"plot [t=0:1] \\\n" );
@@ -239,7 +239,7 @@ namespace basegfx
if( maPolygons.at(i).first.areControlPointsUsed() )
{
const B2DPolygon& rCurrPoly( maPolygons.at(i).first );
-
+
const sal_uInt32 nCount( rCurrPoly.count() );
for( sal_uInt32 k=0; k<nCount; ++k )
{
@@ -252,7 +252,7 @@ namespace basegfx
const B2DPoint& rP3( k+1<nCount ? rCurrPoly.getB2DPoint(k+1) : rCurrPoly.getB2DPoint(k) );
if( mpOutputStream )
- *mpOutputStream << " cubicBezier("
+ *mpOutputStream << " cubicBezier("
<< rP0.getX() << ","
<< rP1.getX() << ","
<< rP2.getX() << ","
@@ -280,7 +280,7 @@ namespace basegfx
{
if( bNeedColon )
print( ", \\\n" );
-
+
if( mpOutputStream )
*mpOutputStream << " '-' using ($1):($2) title \"Polygon "
<< (const sal_Char*)maPolygons.at(i).second << "\" with lp";
@@ -365,15 +365,15 @@ namespace basegfx
::rtl::OString( pTitle ) ) );
}
- void DebugPlotter::plot( const B2DVector& rVec,
- const sal_Char* pTitle )
+ void DebugPlotter::plot( const B2DVector& rVec,
+ const sal_Char* pTitle )
{
maVectors.push_back( ::std::make_pair( rVec,
::rtl::OString( pTitle ) ) );
}
- void DebugPlotter::plot( const B2DCubicBezier& rBezier,
- const sal_Char* pTitle )
+ void DebugPlotter::plot( const B2DCubicBezier& rBezier,
+ const sal_Char* pTitle )
{
B2DPolygon aPoly;
aPoly.append(rBezier.getStartPoint());
@@ -389,15 +389,15 @@ namespace basegfx
::rtl::OString( pTitle ) ) );
}
- void DebugPlotter::plot( const B2DPolygon& rPoly,
- const sal_Char* pTitle )
+ void DebugPlotter::plot( const B2DPolygon& rPoly,
+ const sal_Char* pTitle )
{
maPolygons.push_back( ::std::make_pair( rPoly,
::rtl::OString( pTitle ) ) );
}
- void DebugPlotter::plot( const B2DPolyPolygon& rPoly,
- const sal_Char* pTitle )
+ void DebugPlotter::plot( const B2DPolyPolygon& rPoly,
+ const sal_Char* pTitle )
{
const ::rtl::OString aTitle( pTitle );
const sal_uInt32 nCount( rPoly.count() );
diff --git a/basegfx/source/tools/gradienttools.cxx b/basegfx/source/tools/gradienttools.cxx
index 31f9c45efb76..740db5cba1bc 100644
--- a/basegfx/source/tools/gradienttools.cxx
+++ b/basegfx/source/tools/gradienttools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,9 +40,9 @@ namespace basegfx
for the border treatment. Factored out here.
*/
static void init1DGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetRange,
+ const B2DRange& rTargetRange,
sal_uInt32 nSteps,
- double fBorder,
+ double fBorder,
double fAngle,
bool bAxial)
{
@@ -76,7 +76,7 @@ namespace basegfx
o_rGradientInfo.maTextureTransform.scale(1.0, fSizeWithoutBorder * .5);
o_rGradientInfo.maTextureTransform.translate(0.0, 0.5);
}
- else
+ else
{
if(!fTools::equal(fSizeWithoutBorder, 1.0))
{
@@ -92,7 +92,7 @@ namespace basegfx
{
const B2DPoint aCenter(0.5*fTargetSizeX,
0.5*fTargetSizeY);
- o_rGradientInfo.maTextureTransform *=
+ o_rGradientInfo.maTextureTransform *=
basegfx::tools::createRotateAroundPoint(aCenter, fAngle);
}
@@ -111,17 +111,17 @@ namespace basegfx
except for the border treatment. Factored out here.
*/
static void initEllipticalGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetRange,
+ const B2DRange& rTargetRange,
const B2DVector& rOffset,
sal_uInt32 nSteps,
- double fBorder,
+ double fBorder,
double fAngle,
bool bCircular)
{
o_rGradientInfo.maTextureTransform.identity();
o_rGradientInfo.maBackTextureTransform.identity();
o_rGradientInfo.mnSteps = nSteps;
-
+
fAngle = -fAngle;
double fTargetSizeX(rTargetRange.getWidth());
@@ -137,7 +137,7 @@ namespace basegfx
fTargetOffsetY -= (fOriginalDiag - fTargetSizeY) / 2.0;
fTargetSizeX = fOriginalDiag;
fTargetSizeY = fOriginalDiag;
- }
+ }
else
{
fTargetOffsetX -= (0.4142 / 2.0 ) * fTargetSizeX;
@@ -184,10 +184,10 @@ namespace basegfx
here.
*/
static void initRectGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetRange,
+ const B2DRange& rTargetRange,
const B2DVector& rOffset,
sal_uInt32 nSteps,
- double fBorder,
+ double fBorder,
double fAngle)
{
o_rGradientInfo.maTextureTransform.identity();
@@ -223,9 +223,9 @@ namespace basegfx
// add texture rotate after scale to keep perpendicular angles
if(0.0 != fAngle)
{
- const B2DPoint aCenter(0.5*fTargetSizeX,
+ const B2DPoint aCenter(0.5*fTargetSizeX,
0.5*fTargetSizeY);
- o_rGradientInfo.maTextureTransform *=
+ o_rGradientInfo.maTextureTransform *=
basegfx::tools::createRotateAroundPoint(aCenter, fAngle);
}
@@ -251,100 +251,100 @@ namespace basegfx
namespace tools
{
ODFGradientInfo& createLinearODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
- sal_uInt32 nSteps,
- double fBorder,
+ const B2DRange& rTargetArea,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle)
{
init1DGradientInfo(o_rGradientInfo,
- rTargetArea,
+ rTargetArea,
nSteps,
- fBorder,
+ fBorder,
fAngle,
false);
return o_rGradientInfo;
}
ODFGradientInfo& createAxialODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
- sal_uInt32 nSteps,
- double fBorder,
+ const B2DRange& rTargetArea,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle)
{
init1DGradientInfo(o_rGradientInfo,
- rTargetArea,
+ rTargetArea,
nSteps,
- fBorder,
+ fBorder,
fAngle,
true);
return o_rGradientInfo;
}
ODFGradientInfo& createRadialODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
+ const B2DRange& rTargetArea,
const B2DVector& rOffset,
- sal_uInt32 nSteps,
+ sal_uInt32 nSteps,
double fBorder)
{
initEllipticalGradientInfo(o_rGradientInfo,
- rTargetArea,
+ rTargetArea,
rOffset,
nSteps,
- fBorder,
+ fBorder,
0.0,
true);
return o_rGradientInfo;
}
ODFGradientInfo& createEllipticalODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
+ const B2DRange& rTargetArea,
const B2DVector& rOffset,
- sal_uInt32 nSteps,
- double fBorder,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle)
{
initEllipticalGradientInfo(o_rGradientInfo,
- rTargetArea,
+ rTargetArea,
rOffset,
nSteps,
- fBorder,
+ fBorder,
fAngle,
false);
return o_rGradientInfo;
}
ODFGradientInfo& createSquareODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
+ const B2DRange& rTargetArea,
const B2DVector& rOffset,
- sal_uInt32 nSteps,
- double fBorder,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle)
{
initRectGradientInfo(o_rGradientInfo,
- rTargetArea,
+ rTargetArea,
rOffset,
nSteps,
- fBorder,
+ fBorder,
fAngle);
return o_rGradientInfo;
}
ODFGradientInfo& createRectangularODFGradientInfo(ODFGradientInfo& o_rGradientInfo,
- const B2DRange& rTargetArea,
+ const B2DRange& rTargetArea,
const B2DVector& rOffset,
- sal_uInt32 nSteps,
- double fBorder,
+ sal_uInt32 nSteps,
+ double fBorder,
double fAngle)
{
initRectGradientInfo(o_rGradientInfo,
- rTargetArea,
+ rTargetArea,
rOffset,
nSteps,
- fBorder,
+ fBorder,
fAngle);
return o_rGradientInfo;
}
-
+
} // namespace tools
} // namespace basegfx
diff --git a/basegfx/source/tools/keystoplerp.cxx b/basegfx/source/tools/keystoplerp.cxx
index c5af3827ea13..7f8dcd70abc2 100644
--- a/basegfx/source/tools/keystoplerp.cxx
+++ b/basegfx/source/tools/keystoplerp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,14 +41,14 @@ static void validateInput(const std::vector<double>& rKeyStops)
{
(void)rKeyStops;
#ifdef DBG_UTIL
- OSL_ENSURE( rKeyStops.size() > 1,
+ OSL_ENSURE( rKeyStops.size() > 1,
"KeyStopLerp::KeyStopLerp(): key stop vector must have two entries or more" );
-
+
// rKeyStops must be sorted in ascending order
for( ::std::size_t i=1, len=rKeyStops.size(); i<len; ++i )
{
if( rKeyStops[i-1] > rKeyStops[i] )
- OSL_ENSURE( false,
+ OSL_ENSURE( false,
"KeyStopLerp::KeyStopLerp(): time vector is not sorted in ascending order!" );
}
#endif
@@ -67,10 +67,10 @@ namespace basegfx
KeyStopLerp::KeyStopLerp( const ::com::sun::star::uno::Sequence<double>& rKeyStops ) :
maKeyStops(rKeyStops.getLength()),
- mnLastIndex(0)
+ mnLastIndex(0)
{
- std::copy( rKeyStops.getConstArray(),
- rKeyStops.getConstArray()+rKeyStops.getLength(),
+ std::copy( rKeyStops.getConstArray(),
+ rKeyStops.getConstArray()+rKeyStops.getLength(),
maKeyStops.begin() );
validateInput(maKeyStops);
}
@@ -82,7 +82,7 @@ namespace basegfx
maKeyStops.at(mnLastIndex+1) >= fAlpha )
{
// nope, find new index
- mnLastIndex = std::min<std::ptrdiff_t>(
+ mnLastIndex = std::min<std::ptrdiff_t>(
maKeyStops.size()-2,
// range is ensured by max below
std::max<std::ptrdiff_t>(
@@ -95,7 +95,7 @@ namespace basegfx
// lerp between stop and stop+1
const double fRawLerp=
- (fAlpha-maKeyStops.at(mnLastIndex)) /
+ (fAlpha-maKeyStops.at(mnLastIndex)) /
(maKeyStops.at(mnLastIndex+1) - maKeyStops.at(mnLastIndex));
// clamp to permissible range (input fAlpha might be
diff --git a/basegfx/source/tools/liangbarsky.cxx b/basegfx/source/tools/liangbarsky.cxx
index a50dd1ccacdf..5c1d25918ed5 100644
--- a/basegfx/source/tools/liangbarsky.cxx
+++ b/basegfx/source/tools/liangbarsky.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace basegfx
{
// see Foley/vanDam, pp. 122 for the Liang-Barsky line
// clipping algorithm
- inline bool liangBarskyClipT( double nDenom,
+ inline bool liangBarskyClipT( double nDenom,
double nNumerator,
double& io_rTE,
double& io_rTL )
@@ -55,7 +55,7 @@ namespace basegfx
return false;
else if( t > io_rTE )
io_rTE = t;
- }
+ }
else if( nDenom < 0 )
{
t = nNumerator / nDenom;
@@ -75,9 +75,9 @@ namespace basegfx
// see Foley/vanDam, pp. 122 for the Liang-Barsky line
// clipping algorithm
- bool liangBarskyClip2D( ::basegfx::B2DPoint& io_rStart,
- ::basegfx::B2DPoint& io_rEnd,
- const ::basegfx::B2DRange& rClipRect )
+ bool liangBarskyClip2D( ::basegfx::B2DPoint& io_rStart,
+ ::basegfx::B2DPoint& io_rEnd,
+ const ::basegfx::B2DRange& rClipRect )
{
const double nDX( io_rEnd.getX() - io_rStart.getX() );
const double nDY( io_rEnd.getY() - io_rStart.getY() );
@@ -92,16 +92,16 @@ namespace basegfx
double nTE( 0.0 );
double nTL( 1.0 );
if( liangBarskyClipT(nDX, rClipRect.getMinX() - io_rStart.getX(),
- nTE, nTL ) ) // inside wrt. left edge
+ nTE, nTL ) ) // inside wrt. left edge
{
if( liangBarskyClipT(-nDX, io_rStart.getX() - rClipRect.getMaxX(),
- nTE, nTL ) ) // inside wrt. right edge
+ nTE, nTL ) ) // inside wrt. right edge
{
if( liangBarskyClipT(nDY, rClipRect.getMinY() - io_rStart.getY(),
- nTE, nTL ) ) // inside wrt. bottom edge
+ nTE, nTL ) ) // inside wrt. bottom edge
{
if( liangBarskyClipT(-nDY, io_rStart.getY() - rClipRect.getMaxY(),
- nTE, nTL ) ) // inside wrt. top edge
+ nTE, nTL ) ) // inside wrt. top edge
{
// compute actual intersection points,
// if nTL has changed
diff --git a/basegfx/source/tools/tools.cxx b/basegfx/source/tools/tools.cxx
index 1ddb9d4d23b5..d7bdbccbe372 100644
--- a/basegfx/source/tools/tools.cxx
+++ b/basegfx/source/tools/tools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,18 +41,18 @@ namespace basegfx
{
namespace
{
- inline double distance( const double& nX,
- const double& nY,
- const ::basegfx::B2DVector& rNormal,
- const double& nC )
+ inline double distance( const double& nX,
+ const double& nY,
+ const ::basegfx::B2DVector& rNormal,
+ const double& nC )
{
return nX*rNormal.getX() + nY*rNormal.getY() - nC;
}
- void moveLineOutsideRect( ::basegfx::B2DPoint& io_rStart,
- ::basegfx::B2DPoint& io_rEnd,
- const ::basegfx::B2DVector& rMoveDirection,
- const ::basegfx::B2DRange& rFitTarget )
+ void moveLineOutsideRect( ::basegfx::B2DPoint& io_rStart,
+ ::basegfx::B2DPoint& io_rEnd,
+ const ::basegfx::B2DVector& rMoveDirection,
+ const ::basegfx::B2DRange& rFitTarget )
{
// calc c for normal line form equation n x - c = 0
const double nC( rMoveDirection.scalar( io_rStart ) );
@@ -61,17 +61,17 @@ namespace basegfx
// rect corners to the line
const double nMaxDistance( ::std::max(
0.0,
- ::std::max(
+ ::std::max(
distance(rFitTarget.getMinX(),
rFitTarget.getMinY(),
rMoveDirection,
nC),
- ::std::max(
+ ::std::max(
distance(rFitTarget.getMinX(),
rFitTarget.getMaxY(),
rMoveDirection,
nC),
- ::std::max(
+ ::std::max(
distance(rFitTarget.getMaxX(),
rFitTarget.getMinY(),
rMoveDirection,
@@ -89,11 +89,11 @@ namespace basegfx
}
}
- void infiniteLineFromParallelogram( ::basegfx::B2DPoint& io_rLeftTop,
- ::basegfx::B2DPoint& io_rLeftBottom,
- ::basegfx::B2DPoint& io_rRightTop,
- ::basegfx::B2DPoint& io_rRightBottom,
- const ::basegfx::B2DRange& rFitTarget )
+ void infiniteLineFromParallelogram( ::basegfx::B2DPoint& io_rLeftTop,
+ ::basegfx::B2DPoint& io_rLeftBottom,
+ ::basegfx::B2DPoint& io_rRightTop,
+ ::basegfx::B2DPoint& io_rRightBottom,
+ const ::basegfx::B2DRange& rFitTarget )
{
// For the top and bottom border line of the
// parallelogram, we determine the distance to all four
@@ -115,7 +115,7 @@ namespace basegfx
const ::basegfx::B2DVector aNormalTop( aDirectionVertical );
const ::basegfx::B2DVector aNormalBottom( -aDirectionVertical );
-
+
// now extend parallelogram, such that the bound rect
// point are included
moveLineOutsideRect( io_rLeftTop, io_rRightTop, aNormalTop, rFitTarget );
diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx
index e20623c14233..e4105925445a 100644
--- a/basegfx/source/tools/unopolypolygon.cxx
+++ b/basegfx/source/tools/unopolypolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,8 +62,8 @@ namespace unotools
}
void SAL_CALL UnoPolyPolygon::addPolyPolygon(
- const geometry::RealPoint2D& position,
- const uno::Reference< rendering::XPolyPolygon2D >& polyPolygon ) throw (lang::IllegalArgumentException,uno::RuntimeException)
+ const geometry::RealPoint2D& position,
+ const uno::Reference< rendering::XPolyPolygon2D >& polyPolygon ) throw (lang::IllegalArgumentException,uno::RuntimeException)
{
osl::MutexGuard const guard( m_aMutex );
modifying();
@@ -116,7 +116,7 @@ namespace unotools
// found - contract violation.
if( !xLinePoly.is() )
throw lang::IllegalArgumentException(
- ::rtl::OUString(
+ ::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(
"UnoPolyPolygon::addPolyPolygon(): Invalid input "
"poly-polygon, cannot retrieve vertex data")),
@@ -130,8 +130,8 @@ namespace unotools
}
}
- const B2DRange aBounds( tools::getRange( aSrcPoly ) );
- const B2DVector aOffset( unotools::b2DPointFromRealPoint2D( position ) -
+ const B2DRange aBounds( tools::getRange( aSrcPoly ) );
+ const B2DVector aOffset( unotools::b2DPointFromRealPoint2D( position ) -
aBounds.getMinimum() );
if( !aOffset.equalZero() )
@@ -145,14 +145,14 @@ namespace unotools
sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygons() throw (uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
return maPolyPoly.count();
}
- sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygonPoints(
+ sal_Int32 SAL_CALL UnoPolyPolygon::getNumberOfPolygonPoints(
sal_Int32 polygon ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
checkIndex( polygon );
return maPolyPoly.getB2DPolygon(polygon).count();
@@ -160,35 +160,35 @@ namespace unotools
rendering::FillRule SAL_CALL UnoPolyPolygon::getFillRule() throw (uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
return meFillRule;
}
- void SAL_CALL UnoPolyPolygon::setFillRule(
+ void SAL_CALL UnoPolyPolygon::setFillRule(
rendering::FillRule fillRule ) throw (uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
modifying();
meFillRule = fillRule;
}
- sal_Bool SAL_CALL UnoPolyPolygon::isClosed(
+ sal_Bool SAL_CALL UnoPolyPolygon::isClosed(
sal_Int32 index ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
checkIndex( index );
return maPolyPoly.getB2DPolygon(index).isClosed();
}
void SAL_CALL UnoPolyPolygon::setClosed(
- sal_Int32 index,
+ sal_Int32 index,
sal_Bool closedState ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException)
{
osl::MutexGuard const guard( m_aMutex );
modifying();
-
+
if( index == -1L )
{
// set all
@@ -208,28 +208,28 @@ namespace unotools
}
uno::Sequence< uno::Sequence< geometry::RealPoint2D > > SAL_CALL UnoPolyPolygon::getPoints(
- sal_Int32 nPolygonIndex,
- sal_Int32 nNumberOfPolygons,
- sal_Int32 nPointIndex,
+ sal_Int32 nPolygonIndex,
+ sal_Int32 nNumberOfPolygons,
+ sal_Int32 nPointIndex,
sal_Int32 nNumberOfPoints ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException)
{
osl::MutexGuard const guard( m_aMutex );
-
- return unotools::pointSequenceSequenceFromB2DPolyPolygon(
+
+ return unotools::pointSequenceSequenceFromB2DPolyPolygon(
getSubsetPolyPolygon( nPolygonIndex,
nNumberOfPolygons,
nPointIndex,
nNumberOfPoints ) );
}
- void SAL_CALL UnoPolyPolygon::setPoints(
- const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points,
+ void SAL_CALL UnoPolyPolygon::setPoints(
+ const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points,
sal_Int32 nPolygonIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException)
{
osl::MutexGuard const guard( m_aMutex );
modifying();
-
- const B2DPolyPolygon& rNewPolyPoly(
+
+ const B2DPolyPolygon& rNewPolyPoly(
unotools::polyPolygonFromPoint2DSequenceSequence( points ) );
if( nPolygonIndex == -1 )
@@ -244,11 +244,11 @@ namespace unotools
}
}
- geometry::RealPoint2D SAL_CALL UnoPolyPolygon::getPoint(
- sal_Int32 nPolygonIndex,
+ geometry::RealPoint2D SAL_CALL UnoPolyPolygon::getPoint(
+ sal_Int32 nPolygonIndex,
sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
checkIndex( nPolygonIndex );
const B2DPolygon& rPoly( maPolyPoly.getB2DPolygon( nPolygonIndex ) );
@@ -259,12 +259,12 @@ namespace unotools
return unotools::point2DFromB2DPoint( rPoly.getB2DPoint( nPointIndex ) );
}
- void SAL_CALL UnoPolyPolygon::setPoint(
- const geometry::RealPoint2D& point,
- sal_Int32 nPolygonIndex,
+ void SAL_CALL UnoPolyPolygon::setPoint(
+ const geometry::RealPoint2D& point,
+ sal_Int32 nPolygonIndex,
sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
checkIndex( nPolygonIndex );
modifying();
@@ -278,28 +278,28 @@ namespace unotools
maPolyPoly.setB2DPolygon( nPolygonIndex, aPoly );
}
- uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > SAL_CALL UnoPolyPolygon::getBezierSegments(
+ uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > SAL_CALL UnoPolyPolygon::getBezierSegments(
sal_Int32 nPolygonIndex,
- sal_Int32 nNumberOfPolygons,
- sal_Int32 nPointIndex,
+ sal_Int32 nNumberOfPolygons,
+ sal_Int32 nPointIndex,
sal_Int32 nNumberOfPoints ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
- return unotools::bezierSequenceSequenceFromB2DPolyPolygon(
+ osl::MutexGuard const guard( m_aMutex );
+ return unotools::bezierSequenceSequenceFromB2DPolyPolygon(
getSubsetPolyPolygon( nPolygonIndex,
nNumberOfPolygons,
nPointIndex,
nNumberOfPoints ) );
}
- void SAL_CALL UnoPolyPolygon::setBezierSegments(
- const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points,
- sal_Int32 nPolygonIndex ) throw (lang::IndexOutOfBoundsException,
+ void SAL_CALL UnoPolyPolygon::setBezierSegments(
+ const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points,
+ sal_Int32 nPolygonIndex ) throw (lang::IndexOutOfBoundsException,
uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
modifying();
- const B2DPolyPolygon& rNewPolyPoly(
+ const B2DPolyPolygon& rNewPolyPoly(
unotools::polyPolygonFromBezier2DSequenceSequence( points ) );
if( nPolygonIndex == -1 )
@@ -314,11 +314,11 @@ namespace unotools
}
}
- geometry::RealBezierSegment2D SAL_CALL UnoPolyPolygon::getBezierSegment( sal_Int32 nPolygonIndex,
- sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,
+ geometry::RealBezierSegment2D SAL_CALL UnoPolyPolygon::getBezierSegment( sal_Int32 nPolygonIndex,
+ sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,
uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
checkIndex( nPolygonIndex );
const B2DPolygon& rPoly( maPolyPoly.getB2DPolygon( nPolygonIndex ) );
@@ -339,12 +339,12 @@ namespace unotools
rCtrl1.getY() );
}
- void SAL_CALL UnoPolyPolygon::setBezierSegment( const geometry::RealBezierSegment2D& segment,
- sal_Int32 nPolygonIndex,
- sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,
+ void SAL_CALL UnoPolyPolygon::setBezierSegment( const geometry::RealBezierSegment2D& segment,
+ sal_Int32 nPolygonIndex,
+ sal_Int32 nPointIndex ) throw (lang::IndexOutOfBoundsException,
uno::RuntimeException)
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
checkIndex( nPolygonIndex );
modifying();
@@ -357,27 +357,27 @@ namespace unotools
aPoly.setB2DPoint( nPointIndex,
B2DPoint( segment.Px,
segment.Py ) );
- aPoly.setNextControlPoint(nPointIndex,
+ aPoly.setNextControlPoint(nPointIndex,
B2DPoint(segment.C1x, segment.C1y));
- aPoly.setPrevControlPoint((nPointIndex + 1) % nPointCount,
+ aPoly.setPrevControlPoint((nPointIndex + 1) % nPointCount,
B2DPoint(segment.C2x, segment.C2y));
maPolyPoly.setB2DPolygon( nPolygonIndex, aPoly );
}
B2DPolyPolygon UnoPolyPolygon::getSubsetPolyPolygon(
- sal_Int32 nPolygonIndex,
- sal_Int32 nNumberOfPolygons,
- sal_Int32 nPointIndex,
+ sal_Int32 nPolygonIndex,
+ sal_Int32 nNumberOfPolygons,
+ sal_Int32 nPointIndex,
sal_Int32 nNumberOfPoints ) const
{
- osl::MutexGuard const guard( m_aMutex );
+ osl::MutexGuard const guard( m_aMutex );
checkIndex( nPolygonIndex );
const sal_Int32 nPolyCount( maPolyPoly.count() );
// check for "full polygon" case
- if( !nPolygonIndex &&
+ if( !nPolygonIndex &&
!nPointIndex &&
nNumberOfPolygons == nPolyCount &&
nNumberOfPoints == -1 )
@@ -410,7 +410,7 @@ namespace unotools
nFirstPoint = nPointIndex;
}
-
+
if( i==nNumberOfPolygons-1 && nNumberOfPoints != -1 )
{
// very last polygon - respect nNumberOfPoints
@@ -444,7 +444,7 @@ namespace unotools
aSubsetPoly.append( aTmp );
}
}
-
+
return aSubsetPoly;
}
@@ -469,7 +469,7 @@ namespace unotools
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
diff --git a/basegfx/source/tuple/b2dtuple.cxx b/basegfx/source/tuple/b2dtuple.cxx
index b9ecd40f0eff..1a227fb77833 100644
--- a/basegfx/source/tuple/b2dtuple.cxx
+++ b/basegfx/source/tuple/b2dtuple.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,9 +42,9 @@ namespace basegfx
return EmptyTuple::get();
}
- B2DTuple::B2DTuple(const B2ITuple& rTup)
- : mfX( rTup.getX() ),
- mfY( rTup.getY() )
+ B2DTuple::B2DTuple(const B2ITuple& rTup)
+ : mfX( rTup.getX() ),
+ mfY( rTup.getY() )
{}
void B2DTuple::correctValues(const double fCompareValue)
diff --git a/basegfx/source/tuple/b2i64tuple.cxx b/basegfx/source/tuple/b2i64tuple.cxx
index 2caf873aab45..a1dfbcfae408 100644
--- a/basegfx/source/tuple/b2i64tuple.cxx
+++ b/basegfx/source/tuple/b2i64tuple.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/tuple/b2ituple.cxx b/basegfx/source/tuple/b2ituple.cxx
index ac780d59eb58..27d5dd0090f3 100644
--- a/basegfx/source/tuple/b2ituple.cxx
+++ b/basegfx/source/tuple/b2ituple.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,109 +44,109 @@ namespace basegfx
// external operators
//////////////////////////////////////////////////////////////////////////
- B2ITuple minimum(const B2ITuple& rTupA, const B2ITuple& rTupB)
- {
+ B2ITuple minimum(const B2ITuple& rTupA, const B2ITuple& rTupB)
+ {
B2ITuple aMin(
(rTupB.getX() < rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
- (rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY());
+ (rTupB.getY() < rTupA.getY()) ? rTupB.getY() : rTupA.getY());
return aMin;
}
- B2ITuple maximum(const B2ITuple& rTupA, const B2ITuple& rTupB)
- {
+ B2ITuple maximum(const B2ITuple& rTupA, const B2ITuple& rTupB)
+ {
B2ITuple aMax(
(rTupB.getX() > rTupA.getX()) ? rTupB.getX() : rTupA.getX(),
- (rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY());
+ (rTupB.getY() > rTupA.getY()) ? rTupB.getY() : rTupA.getY());
return aMax;
}
- B2ITuple absolute(const B2ITuple& rTup)
- {
+ B2ITuple absolute(const B2ITuple& rTup)
+ {
B2ITuple aAbs(
(0 > rTup.getX()) ? -rTup.getX() : rTup.getX(),
- (0 > rTup.getY()) ? -rTup.getY() : rTup.getY());
+ (0 > rTup.getY()) ? -rTup.getY() : rTup.getY());
return aAbs;
}
- B2DTuple interpolate(const B2ITuple& rOld1, const B2ITuple& rOld2, double t)
- {
+ B2DTuple interpolate(const B2ITuple& rOld1, const B2ITuple& rOld2, double t)
+ {
B2DTuple aInt(
((rOld2.getX() - rOld1.getX()) * t) + rOld1.getX(),
- ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY());
+ ((rOld2.getY() - rOld1.getY()) * t) + rOld1.getY());
return aInt;
}
- B2DTuple average(const B2ITuple& rOld1, const B2ITuple& rOld2)
- {
+ B2DTuple average(const B2ITuple& rOld1, const B2ITuple& rOld2)
+ {
B2DTuple aAvg(
(rOld1.getX() + rOld2.getX()) * 0.5,
- (rOld1.getY() + rOld2.getY()) * 0.5);
+ (rOld1.getY() + rOld2.getY()) * 0.5);
return aAvg;
}
-
+
B2DTuple average(const B2ITuple& rOld1, const B2ITuple& rOld2, const B2ITuple& rOld3)
- {
+ {
B2DTuple aAvg(
(rOld1.getX() + rOld2.getX() + rOld3.getX()) * (1.0 / 3.0),
- (rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0));
+ (rOld1.getY() + rOld2.getY() + rOld3.getY()) * (1.0 / 3.0));
return aAvg;
}
B2ITuple operator+(const B2ITuple& rTupA, const B2ITuple& rTupB)
- {
- B2ITuple aSum(rTupA);
- aSum += rTupB;
- return aSum;
+ {
+ B2ITuple aSum(rTupA);
+ aSum += rTupB;
+ return aSum;
}
B2ITuple operator-(const B2ITuple& rTupA, const B2ITuple& rTupB)
- {
- B2ITuple aSub(rTupA);
- aSub -= rTupB;
- return aSub;
+ {
+ B2ITuple aSub(rTupA);
+ aSub -= rTupB;
+ return aSub;
}
B2ITuple operator/(const B2ITuple& rTupA, const B2ITuple& rTupB)
- {
- B2ITuple aDiv(rTupA);
- aDiv /= rTupB;
- return aDiv;
+ {
+ B2ITuple aDiv(rTupA);
+ aDiv /= rTupB;
+ return aDiv;
}
B2ITuple operator*(const B2ITuple& rTupA, const B2ITuple& rTupB)
- {
- B2ITuple aMul(rTupA);
- aMul *= rTupB;
- return aMul;
+ {
+ B2ITuple aMul(rTupA);
+ aMul *= rTupB;
+ return aMul;
}
B2ITuple operator*(const B2ITuple& rTup, sal_Int32 t)
- {
- B2ITuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B2ITuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
B2ITuple operator*(sal_Int32 t, const B2ITuple& rTup)
- {
- B2ITuple aNew(rTup);
- aNew *= t;
- return aNew;
+ {
+ B2ITuple aNew(rTup);
+ aNew *= t;
+ return aNew;
}
B2ITuple operator/(const B2ITuple& rTup, sal_Int32 t)
- {
- B2ITuple aNew(rTup);
- aNew /= t;
- return aNew;
+ {
+ B2ITuple aNew(rTup);
+ aNew /= t;
+ return aNew;
}
B2ITuple operator/(sal_Int32 t, const B2ITuple& rTup)
{
- B2ITuple aNew(t, t);
- B2ITuple aTmp(rTup);
- aNew /= aTmp;
- return aNew;
+ B2ITuple aNew(t, t);
+ B2ITuple aTmp(rTup);
+ aNew /= aTmp;
+ return aNew;
}
} // end of namespace basegfx
diff --git a/basegfx/source/tuple/b3dtuple.cxx b/basegfx/source/tuple/b3dtuple.cxx
index c825adb3ac09..fa505b1eede1 100644
--- a/basegfx/source/tuple/b3dtuple.cxx
+++ b/basegfx/source/tuple/b3dtuple.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,10 +41,10 @@ namespace basegfx
return EmptyTuple::get();
}
- B3DTuple::B3DTuple(const B3ITuple& rTup)
- : mfX( rTup.getX() ),
+ B3DTuple::B3DTuple(const B3ITuple& rTup)
+ : mfX( rTup.getX() ),
mfY( rTup.getY() ),
- mfZ( rTup.getZ() )
+ mfZ( rTup.getZ() )
{}
B3ITuple fround(const B3DTuple& rTup)
diff --git a/basegfx/source/tuple/b3i64tuple.cxx b/basegfx/source/tuple/b3i64tuple.cxx
index 7d7ccac28aea..e133a3fc8892 100644
--- a/basegfx/source/tuple/b3i64tuple.cxx
+++ b/basegfx/source/tuple/b3i64tuple.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/tuple/b3ituple.cxx b/basegfx/source/tuple/b3ituple.cxx
index b78aa8938e49..ed022a4678fd 100644
--- a/basegfx/source/tuple/b3ituple.cxx
+++ b/basegfx/source/tuple/b3ituple.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/vector/b2dvector.cxx b/basegfx/source/vector/b2dvector.cxx
index ad11f717fa2d..df8a1c02fbdb 100644
--- a/basegfx/source/vector/b2dvector.cxx
+++ b/basegfx/source/vector/b2dvector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,16 +62,16 @@ namespace basegfx
return *this;
}
- B2DVector& B2DVector::operator=( const B2DTuple& rVec )
- {
+ B2DVector& B2DVector::operator=( const B2DTuple& rVec )
+ {
mfX = rVec.getX();
- mfY = rVec.getY();
- return *this;
+ mfY = rVec.getY();
+ return *this;
}
- double B2DVector::getLength() const
- {
+ double B2DVector::getLength() const
+ {
if(fTools::equalZero(mfX))
{
return fabs(mfY);
@@ -81,17 +81,17 @@ namespace basegfx
return fabs(mfX);
}
- return hypot( mfX, mfY );
+ return hypot( mfX, mfY );
}
- double B2DVector::scalar( const B2DVector& rVec ) const
- {
- return((mfX * rVec.mfX) + (mfY * rVec.mfY));
+ double B2DVector::scalar( const B2DVector& rVec ) const
+ {
+ return((mfX * rVec.mfX) + (mfY * rVec.mfY));
}
- double B2DVector::cross( const B2DVector& rVec ) const
- {
- return(mfX * rVec.getY() - mfY * rVec.getX());
+ double B2DVector::cross( const B2DVector& rVec ) const
+ {
+ return(mfX * rVec.getY() - mfY * rVec.getX());
}
double B2DVector::angle( const B2DVector& rVec ) const
@@ -154,7 +154,7 @@ namespace basegfx
}
B2VectorOrientation getOrientation( const B2DVector& rVecA, const B2DVector& rVecB )
- {
+ {
double fVal(rVecA.getX() * rVecB.getY() - rVecA.getY() * rVecB.getX());
if(fTools::equalZero(fVal))
diff --git a/basegfx/source/vector/b2ivector.cxx b/basegfx/source/vector/b2ivector.cxx
index 744bf8cf2ca0..7b6c0effb6ec 100644
--- a/basegfx/source/vector/b2ivector.cxx
+++ b/basegfx/source/vector/b2ivector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/vector/b3dvector.cxx b/basegfx/source/vector/b3dvector.cxx
index 67a7ef1d2215..4ced9d2ec941 100644
--- a/basegfx/source/vector/b3dvector.cxx
+++ b/basegfx/source/vector/b3dvector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ namespace basegfx
aNew.normalize();
return aNew;
}
-
+
B3DVector B3DVector::getProjectionOnPlane(const B3DVector& rNormalizedPlane) const
{
B3DVector aNew(*this);
@@ -74,8 +74,8 @@ namespace basegfx
aNew = cross(aNew, rNormalizedPlane);
aNew.mfX = mfX - aNew.mfX;
- aNew.mfY = mfY - aNew.mfY;
- aNew.mfZ = mfZ - aNew.mfZ;
+ aNew.mfY = mfY - aNew.mfY;
+ aNew.mfZ = mfZ - aNew.mfZ;
return aNew;
}
diff --git a/basegfx/source/vector/b3ivector.cxx b/basegfx/source/vector/b3ivector.cxx
index 2966a11c6921..f0dc7a2b64ec 100644
--- a/basegfx/source/vector/b3ivector.cxx
+++ b/basegfx/source/vector/b3ivector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/source/workbench/bezierclip.cxx b/basegfx/source/workbench/bezierclip.cxx
index 5aaea7c63efa..0d0717668c9d 100644
--- a/basegfx/source/workbench/bezierclip.cxx
+++ b/basegfx/source/workbench/bezierclip.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@
// -----------------------------------------------------------------------------
-/* Implementation of the so-called 'Fat-Line Bezier Clipping Algorithm' by Sederberg et al.
+/* Implementation of the so-called 'Fat-Line Bezier Clipping Algorithm' by Sederberg et al.
*
* Actual reference is: T. W. Sederberg and T Nishita: Curve
* intersection using Bezier clipping. In Computer Aided Design, 22
@@ -143,9 +143,9 @@ void Impl_calcFatLine( FatLine& line, const Bezier& c )
}
}
-void Impl_calcBounds( Point2D& leftTop,
- Point2D& rightBottom,
- const Bezier& c1 )
+void Impl_calcBounds( Point2D& leftTop,
+ Point2D& rightBottom,
+ const Bezier& c1 )
{
leftTop.x = ::std::min( c1.p0.x, ::std::min( c1.p1.x, ::std::min( c1.p2.x, c1.p3.x ) ) );
leftTop.y = ::std::min( c1.p0.y, ::std::min( c1.p1.y, ::std::min( c1.p2.y, c1.p3.y ) ) );
@@ -181,11 +181,11 @@ bool Impl_doBBoxIntersect( const Bezier& c1,
* the left, the second is the intersection of the max value line with
* the convex hull from the right.
*/
-bool Impl_calcSafeParams( double& t1,
- double& t2,
- const Polygon2D& rPoly,
- double lowerYBound,
- double upperYBound )
+bool Impl_calcSafeParams( double& t1,
+ double& t2,
+ const Polygon2D& rPoly,
+ double lowerYBound,
+ double upperYBound )
{
// need the convex hull of the control polygon, as this is
// guaranteed to completely bound the curve
@@ -194,7 +194,7 @@ bool Impl_calcSafeParams( double& t1,
// init min and max buffers
t1 = 0.0 ;
double currLowerT( 1.0 );
-
+
t2 = 1.0;
double currHigherT( 0.0 );
@@ -237,7 +237,7 @@ bool Impl_calcSafeParams( double& t1,
// one of the horizontal bounds lines
const double r_x( p1.x - p0.x );
const double r_y( p1.y - p0.y );
-
+
if( tolZero(r_y) )
{
// r_y is virtually zero, thus we've got a horizontal
@@ -258,7 +258,7 @@ bool Impl_calcSafeParams( double& t1,
// calc intersection with horizontal dMin line
const double currTLow( (lowerYBound - p0.y) * r_x / r_y + p0.x );
-
+
// calc intersection with horizontal dMax line
const double currTHigh( (upperYBound - p0.y) * r_x / r_y + p0.x );
@@ -269,7 +269,7 @@ bool Impl_calcSafeParams( double& t1,
// set flag that at least one segment is contained or
// intersects given horizontal band.
bIntersection = true;
- }
+ }
}
#ifndef WITH_SAFEPARAMBASE_TEST
@@ -290,20 +290,20 @@ bool Impl_calcSafeParams( double& t1,
* The polynomial coefficients c0 to c3 given to this method
* must correspond to t values of 0, 1/3, 2/3 and 1, respectively.
*/
-bool Impl_calcSafeParams_clip( double& t1,
- double& t2,
- const FatLine& bounds,
- double c0,
- double c1,
- double c2,
- double c3 )
+bool Impl_calcSafeParams_clip( double& t1,
+ double& t2,
+ const FatLine& bounds,
+ double c0,
+ double c1,
+ double c2,
+ double c3 )
{
/* first of all, determine convex hull of c0-c3 */
Polygon2D poly(4);
- poly[0] = Point2D(0, c0);
- poly[1] = Point2D(1.0/3.0, c1);
- poly[2] = Point2D(2.0/3.0, c2);
- poly[3] = Point2D(1, c3);
+ poly[0] = Point2D(0, c0);
+ poly[1] = Point2D(1.0/3.0, c1);
+ poly[2] = Point2D(2.0/3.0, c2);
+ poly[3] = Point2D(1, c3);
#ifndef WITH_SAFEPARAM_DETAILED_TEST
@@ -314,14 +314,14 @@ bool Impl_calcSafeParams_clip( double& t1,
Polygon2D convHull( convexHull( poly ) );
- cout << "# convex hull testing" << endl
+ cout << "# convex hull testing" << endl
<< "plot [t=0:1] ";
- cout << " bez("
- << poly[0].x << ","
+ cout << " bez("
+ << poly[0].x << ","
<< poly[1].x << ","
<< poly[2].x << ","
<< poly[3].x << ",t),bez("
- << poly[0].y << ","
+ << poly[0].y << ","
<< poly[1].y << ","
<< poly[2].y << ","
<< poly[3].y << ",t), "
@@ -353,10 +353,10 @@ bool Impl_calcSafeParams_clip( double& t1,
// -----------------------------------------------------------------------------
-void Impl_deCasteljauAt( Bezier& part1,
- Bezier& part2,
- const Bezier& input,
- double t )
+void Impl_deCasteljauAt( Bezier& part1,
+ Bezier& part2,
+ const Bezier& input,
+ double t )
{
// deCasteljau bezier arc, scheme is:
//
@@ -388,26 +388,26 @@ void Impl_deCasteljauAt( Bezier& part1,
}
else
{
- part1.p0.x = input.p0.x; part1.p0.y = input.p0.y;
- part1.p1.x = (1.0 - t)*part1.p0.x + t*input.p1.x; part1.p1.y = (1.0 - t)*part1.p0.y + t*input.p1.y;
- const double Hx ( (1.0 - t)*input.p1.x + t*input.p2.x ), Hy ( (1.0 - t)*input.p1.y + t*input.p2.y );
- part1.p2.x = (1.0 - t)*part1.p1.x + t*Hx; part1.p2.y = (1.0 - t)*part1.p1.y + t*Hy;
- part2.p3.x = input.p3.x; part2.p3.y = input.p3.y;
- part2.p2.x = (1.0 - t)*input.p2.x + t*input.p3.x; part2.p2.y = (1.0 - t)*input.p2.y + t*input.p3.y;
- part2.p1.x = (1.0 - t)*Hx + t*part2.p2.x; part2.p1.y = (1.0 - t)*Hy + t*part2.p2.y;
- part2.p0.x = (1.0 - t)*part1.p2.x + t*part2.p1.x; part2.p0.y = (1.0 - t)*part1.p2.y + t*part2.p1.y;
- part1.p3.x = part2.p0.x; part1.p3.y = part2.p0.y;
+ part1.p0.x = input.p0.x; part1.p0.y = input.p0.y;
+ part1.p1.x = (1.0 - t)*part1.p0.x + t*input.p1.x; part1.p1.y = (1.0 - t)*part1.p0.y + t*input.p1.y;
+ const double Hx ( (1.0 - t)*input.p1.x + t*input.p2.x ), Hy ( (1.0 - t)*input.p1.y + t*input.p2.y );
+ part1.p2.x = (1.0 - t)*part1.p1.x + t*Hx; part1.p2.y = (1.0 - t)*part1.p1.y + t*Hy;
+ part2.p3.x = input.p3.x; part2.p3.y = input.p3.y;
+ part2.p2.x = (1.0 - t)*input.p2.x + t*input.p3.x; part2.p2.y = (1.0 - t)*input.p2.y + t*input.p3.y;
+ part2.p1.x = (1.0 - t)*Hx + t*part2.p2.x; part2.p1.y = (1.0 - t)*Hy + t*part2.p2.y;
+ part2.p0.x = (1.0 - t)*part1.p2.x + t*part2.p1.x; part2.p0.y = (1.0 - t)*part1.p2.y + t*part2.p1.y;
+ part1.p3.x = part2.p0.x; part1.p3.y = part2.p0.y;
}
}
// -----------------------------------------------------------------------------
-void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1, double t2_c1,
+void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1, double t2_c1,
const Bezier& c2_part, const FatLine& bounds_c2 )
{
static int offset = 0;
- cout << "# safe param range testing" << endl
+ cout << "# safe param range testing" << endl
<< "plot [t=0.0:1.0] ";
// clip safe ranges off c1
@@ -422,41 +422,41 @@ void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1,
// output remaining segment (c1_part1)
- cout << "bez("
- << c1.p0.x+offset << ","
+ cout << "bez("
+ << c1.p0.x+offset << ","
<< c1.p1.x+offset << ","
<< c1.p2.x+offset << ","
<< c1.p3.x+offset << ",t),bez("
- << c1.p0.y << ","
+ << c1.p0.y << ","
<< c1.p1.y << ","
<< c1.p2.y << ","
<< c1.p3.y << ",t), bez("
- << c2.p0.x+offset << ","
+ << c2.p0.x+offset << ","
<< c2.p1.x+offset << ","
<< c2.p2.x+offset << ","
<< c2.p3.x+offset << ",t),bez("
- << c2.p0.y << ","
+ << c2.p0.y << ","
<< c2.p1.y << ","
<< c2.p2.y << ","
<< c2.p3.y << ",t), "
#if 1
<< "bez("
- << c1_part1.p0.x+offset << ","
+ << c1_part1.p0.x+offset << ","
<< c1_part1.p1.x+offset << ","
<< c1_part1.p2.x+offset << ","
<< c1_part1.p3.x+offset << ",t),bez("
- << c1_part1.p0.y << ","
+ << c1_part1.p0.y << ","
<< c1_part1.p1.y << ","
<< c1_part1.p2.y << ","
<< c1_part1.p3.y << ",t), "
#endif
#if 1
<< "bez("
- << c2_part.p0.x+offset << ","
+ << c2_part.p0.x+offset << ","
<< c2_part.p1.x+offset << ","
<< c2_part.p2.x+offset << ","
<< c2_part.p3.x+offset << ",t),bez("
- << c2_part.p0.y << ","
+ << c2_part.p0.y << ","
<< c2_part.p1.y << ","
<< c2_part.p2.y << ","
<< c2_part.p3.y << ",t), "
@@ -464,9 +464,9 @@ void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1,
<< "linex("
<< bounds_c2.a << ","
<< bounds_c2.b << ","
- << bounds_c2.c << ",t)+" << offset << ", liney("
- << bounds_c2.a << ","
- << bounds_c2.b << ","
+ << bounds_c2.c << ",t)+" << offset << ", liney("
+ << bounds_c2.a << ","
+ << bounds_c2.b << ","
<< bounds_c2.c << ",t) title \"fat line (center)\", linex("
<< bounds_c2.a << ","
<< bounds_c2.b << ","
@@ -480,82 +480,82 @@ void printCurvesWithSafeRange( const Bezier& c1, const Bezier& c2, double t1_c1,
<< bounds_c2.a << ","
<< bounds_c2.b << ","
<< bounds_c2.c-bounds_c2.dMax << ",t) title \"fat line (max) \"" << endl;
-
+
offset += 1;
}
// -----------------------------------------------------------------------------
-void printResultWithFinalCurves( const Bezier& c1, const Bezier& c1_part,
- const Bezier& c2, const Bezier& c2_part,
+void printResultWithFinalCurves( const Bezier& c1, const Bezier& c1_part,
+ const Bezier& c2, const Bezier& c2_part,
double t1_c1, double t2_c1 )
{
static int offset = 0;
- cout << "# final result" << endl
+ cout << "# final result" << endl
<< "plot [t=0.0:1.0] ";
- cout << "bez("
- << c1.p0.x+offset << ","
+ cout << "bez("
+ << c1.p0.x+offset << ","
<< c1.p1.x+offset << ","
<< c1.p2.x+offset << ","
<< c1.p3.x+offset << ",t),bez("
- << c1.p0.y << ","
+ << c1.p0.y << ","
<< c1.p1.y << ","
<< c1.p2.y << ","
<< c1.p3.y << ",t), bez("
- << c1_part.p0.x+offset << ","
+ << c1_part.p0.x+offset << ","
<< c1_part.p1.x+offset << ","
<< c1_part.p2.x+offset << ","
<< c1_part.p3.x+offset << ",t),bez("
- << c1_part.p0.y << ","
+ << c1_part.p0.y << ","
<< c1_part.p1.y << ","
<< c1_part.p2.y << ","
- << c1_part.p3.y << ",t), "
+ << c1_part.p3.y << ",t), "
<< " pointmarkx(bez("
- << c1.p0.x+offset << ","
+ << c1.p0.x+offset << ","
<< c1.p1.x+offset << ","
<< c1.p2.x+offset << ","
<< c1.p3.x+offset << ","
<< t1_c1 << "),t), "
- << " pointmarky(bez("
- << c1.p0.y << ","
+ << " pointmarky(bez("
+ << c1.p0.y << ","
<< c1.p1.y << ","
<< c1.p2.y << ","
<< c1.p3.y << ","
<< t1_c1 << "),t), "
<< " pointmarkx(bez("
- << c1.p0.x+offset << ","
+ << c1.p0.x+offset << ","
<< c1.p1.x+offset << ","
<< c1.p2.x+offset << ","
<< c1.p3.x+offset << ","
<< t2_c1 << "),t), "
- << " pointmarky(bez("
- << c1.p0.y << ","
+ << " pointmarky(bez("
+ << c1.p0.y << ","
<< c1.p1.y << ","
<< c1.p2.y << ","
<< c1.p3.y << ","
<< t2_c1 << "),t), "
<< "bez("
- << c2.p0.x+offset << ","
+ << c2.p0.x+offset << ","
<< c2.p1.x+offset << ","
<< c2.p2.x+offset << ","
<< c2.p3.x+offset << ",t),bez("
- << c2.p0.y << ","
+ << c2.p0.y << ","
<< c2.p1.y << ","
<< c2.p2.y << ","
<< c2.p3.y << ",t), "
<< "bez("
- << c2_part.p0.x+offset << ","
+ << c2_part.p0.x+offset << ","
<< c2_part.p1.x+offset << ","
<< c2_part.p2.x+offset << ","
<< c2_part.p3.x+offset << ",t),bez("
- << c2_part.p0.y << ","
+ << c2_part.p0.y << ","
<< c2_part.p1.y << ","
<< c2_part.p2.y << ","
<< c2_part.p3.y << ",t)" << endl;
-
+
offset += 1;
}
@@ -563,8 +563,8 @@ void printResultWithFinalCurves( const Bezier& c1, const Bezier& c1_part,
/** determine parameter ranges [0,t1) and (t2,1] on c1, where c1 is guaranteed to lie outside c2.
Returns false, if the two curves don't even intersect.
-
- @param t1
+
+ @param t1
Range [0,t1) on c1 is guaranteed to lie outside c2
@param t2
@@ -582,51 +582,51 @@ void printResultWithFinalCurves( const Bezier& c1, const Bezier& c1_part,
@param c2_part
Subdivided current part of c2
*/
-bool Impl_calcClipRange( double& t1,
- double& t2,
- const Bezier& c1_orig,
- const Bezier& c1_part,
- const Bezier& c2_orig,
- const Bezier& c2_part )
+bool Impl_calcClipRange( double& t1,
+ double& t2,
+ const Bezier& c1_orig,
+ const Bezier& c1_part,
+ const Bezier& c2_orig,
+ const Bezier& c2_part )
{
- // TODO: Maybe also check fat line orthogonal to P0P3, having P0
+ // TODO: Maybe also check fat line orthogonal to P0P3, having P0
// and P3 as the extremal points
-
+
if( Impl_doBBoxIntersect(c1_part, c2_part) )
{
// Calculate fat lines around c1
- FatLine bounds_c2;
+ FatLine bounds_c2;
// must use the subdivided version of c2, since the fat line
// algorithm works implicitely with the convex hull bounding
// box.
Impl_calcFatLine(bounds_c2, c2_part);
-
+
// determine clip positions on c2. Can use original c1 (which
// is necessary anyway, to get the t's on the original curve),
// since the distance calculations work directly in the
// Bernstein polynom parameter domain.
- if( Impl_calcSafeParams_clip( t1, t2, bounds_c2,
+ if( Impl_calcSafeParams_clip( t1, t2, bounds_c2,
calcLineDistance( bounds_c2.a,
bounds_c2.b,
bounds_c2.c,
c1_orig.p0.x,
- c1_orig.p0.y ),
+ c1_orig.p0.y ),
calcLineDistance( bounds_c2.a,
bounds_c2.b,
bounds_c2.c,
c1_orig.p1.x,
- c1_orig.p1.y ),
+ c1_orig.p1.y ),
calcLineDistance( bounds_c2.a,
bounds_c2.b,
bounds_c2.c,
c1_orig.p2.x,
- c1_orig.p2.y ),
+ c1_orig.p2.y ),
calcLineDistance( bounds_c2.a,
bounds_c2.b,
bounds_c2.c,
c1_orig.p3.x,
- c1_orig.p3.y ) ) )
+ c1_orig.p3.y ) ) )
{
//printCurvesWithSafeRange(c1_orig, c2_orig, t1, t2, c2_part, bounds_c2);
@@ -650,14 +650,14 @@ bool Impl_calcClipRange( double& t1,
void Impl_calcFocus( Bezier& res, const Bezier& c )
{
// arbitrary small value, for now
- // TODO: find meaningful value
+ // TODO: find meaningful value
const double minPivotValue( 1.0e-20 );
Point2D::value_type fMatrix[6];
Point2D::value_type fRes[2];
// calc new curve from hodograph, c and linear blend
-
+
// Coefficients for derivative of c are (C_i=n(C_{i+1} - C_i)):
//
// 3(P1 - P0), 3(P2 - P1), 3(P3 - P2) (bezier curve of degree 2)
@@ -665,7 +665,7 @@ void Impl_calcFocus( Bezier& res, const Bezier& c )
// The hodograph is then (bezier curve of 2nd degree is P0(1-t)^2 + 2P1(1-t)t + P2t^2):
//
// 3(P1 - P0)(1-t)^2 + 6(P2 - P1)(1-t)t + 3(P3 - P2)t^2
- //
+ //
// rotate by 90 degrees: x=-y, y=x and you get the normal vector function N(t):
//
// x(t) = -(3(P1.y - P0.y)(1-t)^2 + 6(P2.y - P1.y)(1-t)t + 3(P3.y - P2.y)t^2)
@@ -676,11 +676,11 @@ void Impl_calcFocus( Bezier& res, const Bezier& c )
//
// This results in the following expression for F(t):
//
- // x(t) = P0.x (1-t)^3 + 3 P1.x (1-t)^2t + 3 P2.x (1.t)t^2 + P3.x t^3 -
- // (c0(1-t) + c1 t)(3(P1.y - P0.y)(1-t)^2 + 6(P2.y - P1.y)(1-t)t + 3(P3.y - P2.y)t^2)
+ // x(t) = P0.x (1-t)^3 + 3 P1.x (1-t)^2t + 3 P2.x (1.t)t^2 + P3.x t^3 -
+ // (c0(1-t) + c1 t)(3(P1.y - P0.y)(1-t)^2 + 6(P2.y - P1.y)(1-t)t + 3(P3.y - P2.y)t^2)
//
- // y(t) = P0.y (1-t)^3 + 3 P1.y (1-t)^2t + 3 P2.y (1.t)t^2 + P3.y t^3 +
- // (c0(1-t) + c1 t)(3(P1.x - P0.x)(1-t)^2 + 6(P2.x - P1.x)(1-t)t + 3(P3.x - P2.x)t^2)
+ // y(t) = P0.y (1-t)^3 + 3 P1.y (1-t)^2t + 3 P2.y (1.t)t^2 + P3.y t^3 +
+ // (c0(1-t) + c1 t)(3(P1.x - P0.x)(1-t)^2 + 6(P2.x - P1.x)(1-t)t + 3(P3.x - P2.x)t^2)
//
// As a heuristic, we set F(0)=F(1) (thus, the curve is closed and _tends_ to be small):
//
@@ -713,7 +713,7 @@ void Impl_calcFocus( Bezier& res, const Bezier& c )
fMatrix[4] = c.p3.y - c.p2.y;
fMatrix[5] = (c.p3.x - c.p0.x)/3.0;
- // TODO: determine meaningful value for
+ // TODO: determine meaningful value for
if( !solve(fMatrix, 2, 3, fRes, minPivotValue) )
{
// TODO: generate meaningful values here
@@ -728,38 +728,38 @@ void Impl_calcFocus( Bezier& res, const Bezier& c )
// now, the reordered and per-coefficient collected focus curve is
// the following third degree bezier curve F(t):
//
- // x(t) = P0.x (1-t)^3 + 3 P1.x (1-t)^2t + 3 P2.x (1.t)t^2 + P3.x t^3 -
- // (c0(1-t) + c1 t)(3(P1.y - P0.y)(1-t)^2 + 6(P2.y - P1.y)(1-t)t + 3(P3.y - P2.y)t^2)
- // = P0.x (1-t)^3 + 3 P1.x (1-t)^2t + 3 P2.x (1.t)t^2 + P3.x t^3 -
- // (3c0P1.y(1-t)^3 - 3c0P0.y(1-t)^3 + 6c0P2.y(1-t)^2t - 6c0P1.y(1-t)^2t +
- // 3c0P3.y(1-t)t^2 - 3c0P2.y(1-t)t^2 +
- // 3c1P1.y(1-t)^2t - 3c1P0.y(1-t)^2t + 6c1P2.y(1-t)t^2 - 6c1P1.y(1-t)t^2 +
- // 3c1P3.yt^3 - 3c1P2.yt^3)
- // = (P0.x - 3 c0 P1.y + 3 c0 P0.y)(1-t)^3 +
- // 3(P1.x - c1 P1.y + c1 P0.y - 2 c0 P2.y + 2 c0 P1.y)(1-t)^2t +
- // 3(P2.x - 2 c1 P2.y + 2 c1 P1.y - c0 P3.y + c0 P2.y)(1-t)t^2 +
- // (P3.x - 3 c1 P3.y + 3 c1 P2.y)t^3
- // = (P0.x - 3 c0(P1.y - P0.y))(1-t)^3 +
- // 3(P1.x - c1(P1.y - P0.y) - 2c0(P2.y - P1.y))(1-t)^2t +
- // 3(P2.x - 2 c1(P2.y - P1.y) - c0(P3.y - P2.y))(1-t)t^2 +
- // (P3.x - 3 c1(P3.y - P2.y))t^3
+ // x(t) = P0.x (1-t)^3 + 3 P1.x (1-t)^2t + 3 P2.x (1.t)t^2 + P3.x t^3 -
+ // (c0(1-t) + c1 t)(3(P1.y - P0.y)(1-t)^2 + 6(P2.y - P1.y)(1-t)t + 3(P3.y - P2.y)t^2)
+ // = P0.x (1-t)^3 + 3 P1.x (1-t)^2t + 3 P2.x (1.t)t^2 + P3.x t^3 -
+ // (3c0P1.y(1-t)^3 - 3c0P0.y(1-t)^3 + 6c0P2.y(1-t)^2t - 6c0P1.y(1-t)^2t +
+ // 3c0P3.y(1-t)t^2 - 3c0P2.y(1-t)t^2 +
+ // 3c1P1.y(1-t)^2t - 3c1P0.y(1-t)^2t + 6c1P2.y(1-t)t^2 - 6c1P1.y(1-t)t^2 +
+ // 3c1P3.yt^3 - 3c1P2.yt^3)
+ // = (P0.x - 3 c0 P1.y + 3 c0 P0.y)(1-t)^3 +
+ // 3(P1.x - c1 P1.y + c1 P0.y - 2 c0 P2.y + 2 c0 P1.y)(1-t)^2t +
+ // 3(P2.x - 2 c1 P2.y + 2 c1 P1.y - c0 P3.y + c0 P2.y)(1-t)t^2 +
+ // (P3.x - 3 c1 P3.y + 3 c1 P2.y)t^3
+ // = (P0.x - 3 c0(P1.y - P0.y))(1-t)^3 +
+ // 3(P1.x - c1(P1.y - P0.y) - 2c0(P2.y - P1.y))(1-t)^2t +
+ // 3(P2.x - 2 c1(P2.y - P1.y) - c0(P3.y - P2.y))(1-t)t^2 +
+ // (P3.x - 3 c1(P3.y - P2.y))t^3
//
- // y(t) = P0.y (1-t)^3 + 3 P1.y (1-t)^2t + 3 P2.y (1-t)t^2 + P3.y t^3 +
- // (c0(1-t) + c1 t)(3(P1.x - P0.x)(1-t)^2 + 6(P2.x - P1.x)(1-t)t + 3(P3.x - P2.x)t^2)
- // = P0.y (1-t)^3 + 3 P1.y (1-t)^2t + 3 P2.y (1-t)t^2 + P3.y t^3 +
- // 3c0(P1.x - P0.x)(1-t)^3 + 6c0(P2.x - P1.x)(1-t)^2t + 3c0(P3.x - P2.x)(1-t)t^2 +
- // 3c1(P1.x - P0.x)(1-t)^2t + 6c1(P2.x - P1.x)(1-t)t^2 + 3c1(P3.x - P2.x)t^3
- // = (P0.y + 3 c0 (P1.x - P0.x))(1-t)^3 +
- // 3(P1.y + 2 c0 (P2.x - P1.x) + c1 (P1.x - P0.x))(1-t)^2t +
- // 3(P2.y + c0 (P3.x - P2.x) + 2 c1 (P2.x - P1.x))(1-t)t^2 +
- // (P3.y + 3 c1 (P3.x - P2.x))t^3
+ // y(t) = P0.y (1-t)^3 + 3 P1.y (1-t)^2t + 3 P2.y (1-t)t^2 + P3.y t^3 +
+ // (c0(1-t) + c1 t)(3(P1.x - P0.x)(1-t)^2 + 6(P2.x - P1.x)(1-t)t + 3(P3.x - P2.x)t^2)
+ // = P0.y (1-t)^3 + 3 P1.y (1-t)^2t + 3 P2.y (1-t)t^2 + P3.y t^3 +
+ // 3c0(P1.x - P0.x)(1-t)^3 + 6c0(P2.x - P1.x)(1-t)^2t + 3c0(P3.x - P2.x)(1-t)t^2 +
+ // 3c1(P1.x - P0.x)(1-t)^2t + 6c1(P2.x - P1.x)(1-t)t^2 + 3c1(P3.x - P2.x)t^3
+ // = (P0.y + 3 c0 (P1.x - P0.x))(1-t)^3 +
+ // 3(P1.y + 2 c0 (P2.x - P1.x) + c1 (P1.x - P0.x))(1-t)^2t +
+ // 3(P2.y + c0 (P3.x - P2.x) + 2 c1 (P2.x - P1.x))(1-t)t^2 +
+ // (P3.y + 3 c1 (P3.x - P2.x))t^3
//
// Therefore, the coefficients F0 to F3 of the focus curve are:
//
- // F0.x = (P0.x - 3 c0(P1.y - P0.y)) F0.y = (P0.y + 3 c0 (P1.x - P0.x))
- // F1.x = (P1.x - c1(P1.y - P0.y) - 2c0(P2.y - P1.y)) F1.y = (P1.y + 2 c0 (P2.x - P1.x) + c1 (P1.x - P0.x))
- // F2.x = (P2.x - 2 c1(P2.y - P1.y) - c0(P3.y - P2.y)) F2.y = (P2.y + c0 (P3.x - P2.x) + 2 c1 (P2.x - P1.x))
- // F3.x = (P3.x - 3 c1(P3.y - P2.y)) F3.y = (P3.y + 3 c1 (P3.x - P2.x))
+ // F0.x = (P0.x - 3 c0(P1.y - P0.y)) F0.y = (P0.y + 3 c0 (P1.x - P0.x))
+ // F1.x = (P1.x - c1(P1.y - P0.y) - 2c0(P2.y - P1.y)) F1.y = (P1.y + 2 c0 (P2.x - P1.x) + c1 (P1.x - P0.x))
+ // F2.x = (P2.x - 2 c1(P2.y - P1.y) - c0(P3.y - P2.y)) F2.y = (P2.y + c0 (P3.x - P2.x) + 2 c1 (P2.x - P1.x))
+ // F3.x = (P3.x - 3 c1(P3.y - P2.y)) F3.y = (P3.y + 3 c1 (P3.x - P2.x))
//
res.p0.x = c.p0.x - 3*fRes[0]*(c.p1.y - c.p0.y);
res.p1.x = c.p1.x - fRes[1]*(c.p1.y - c.p0.y) - 2*fRes[0]*(c.p2.y - c.p1.y);
@@ -774,15 +774,15 @@ void Impl_calcFocus( Bezier& res, const Bezier& c )
// -----------------------------------------------------------------------------
-bool Impl_calcSafeParams_focus( double& t1,
- double& t2,
- const Bezier& curve,
- const Bezier& focus )
+bool Impl_calcSafeParams_focus( double& t1,
+ double& t2,
+ const Bezier& curve,
+ const Bezier& focus )
{
// now, we want to determine which normals of the original curve
// P(t) intersect with the focus curve F(t). The condition for
// this statement is P'(t)(P(t) - F) = 0, i.e. hodograph P'(t) and
- // line through P(t) and F are perpendicular.
+ // line through P(t) and F are perpendicular.
// If you expand this equation, you end up with something like
//
// (\sum_{i=0}^n (P_i - F)B_i^n(t))^T (\sum_{j=0}^{n-1} n(P_{j+1} - P_j)B_j^{n-1}(t))
@@ -795,7 +795,7 @@ bool Impl_calcSafeParams_focus( double& t1,
// If we combine the B_i^n(t)B_j^{n-1}(t) product, we arrive at a
// Bernstein polynomial of degree 2n-1, as
//
- // \binom{n}{i}(1-t)^{n-i}t^i) \binom{n-1}{j}(1-t)^{n-1-j}t^j) =
+ // \binom{n}{i}(1-t)^{n-i}t^i) \binom{n-1}{j}(1-t)^{n-1-j}t^j) =
// \binom{n}{i}\binom{n-1}{j}(1-t)^{2n-1-i-j}t^{i+j}
//
// Thus, with the defining equation for a 2n-1 degree Bernstein
@@ -830,7 +830,7 @@ bool Impl_calcSafeParams_focus( double& t1,
// u axis, thus simply throw away u coordinate).
//
// \fallfac are so-called falling factorials (see Concrete
- // Mathematics, p. 47 for a definition).
+ // Mathematics, p. 47 for a definition).
//
// now, for tensor product bezier curves, the convex hull property
@@ -856,7 +856,7 @@ bool Impl_calcSafeParams_focus( double& t1,
{
// calc single d_{ij} sum:
for( d=0.0, k=::std::max(0,i-n); k<=k_max && k<=i; ++k )
- {
+ {
l = i - k; // invariant: k + l = i
assert(k>=0 && k<=n-1); // k \in {0,...,n-1}
assert(l>=0 && l<=n); // l \in {0,...,n}
@@ -864,9 +864,9 @@ bool Impl_calcSafeParams_focus( double& t1,
// TODO: find, document and assert proper limits for n and int's max_val.
// This becomes important should anybody wants to use
// this code for higher-than-cubic beziers
- d += static_cast<double>(fallFac(n,l)*fallFac(n-1,k)*fac(i)) /
+ d += static_cast<double>(fallFac(n,l)*fallFac(n-1,k)*fac(i)) /
static_cast<double>(fac(l)*fac(k) * fallFac(2*n-1,i)) * n *
- ( (curve[k+1].x - curve[k].x)*(curve[l].x - focus[j].x) + // dot product here
+ ( (curve[k+1].x - curve[k].x)*(curve[l].x - focus[j].x) + // dot product here
(curve[k+1].y - curve[k].y)*(curve[l].y - focus[j].y) );
}
@@ -887,7 +887,7 @@ bool Impl_calcSafeParams_focus( double& t1,
Polygon2D convHull( convexHull( controlPolygon ) );
- cout << "# convex hull testing (focus)" << endl
+ cout << "# convex hull testing (focus)" << endl
<< "plot [t=0:1] ";
cout << "'-' using ($1):($2) title \"control polygon\" with lp, "
<< "'-' using ($1):($2) title \"convex hull\" with lp" << endl;
@@ -921,7 +921,7 @@ bool Impl_calcSafeParams_focus( double& t1,
determine safe parameter interval on c1 with regard to c2, then
the other way around), we call this method recursively with c1 and
c2 swapped.
-
+
@param result
Output iterator where the final t values are added to. If curves
don't intersect, nothing is added.
@@ -929,31 +929,31 @@ bool Impl_calcSafeParams_focus( double& t1,
@param delta
Maximal allowed distance to true critical point (measured in the
original curve's coordinate system)
-
+
@param safeRangeFunctor
Functor object, that must provide the following operator():
- bool safeRangeFunctor( double& t1,
- double& t2,
- const Bezier& c1_orig,
- const Bezier& c1_part,
- const Bezier& c2_orig,
+ bool safeRangeFunctor( double& t1,
+ double& t2,
+ const Bezier& c1_orig,
+ const Bezier& c1_part,
+ const Bezier& c2_orig,
const Bezier& c2_part );
This functor must calculate the safe ranges [0,t1] and [t2,1] on
c1_orig, where c1_orig is 'safe' from c2_part. If the whole
c1_orig is safe, false must be returned, true otherwise.
*/
-template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_iterator< ::std::vector< ::std::pair<double, double> > >& result,
- double delta,
- const Functor& safeRangeFunctor,
- int recursionLevel,
- const Bezier& c1_orig,
- const Bezier& c1_part,
- double last_t1_c1,
- double last_t2_c1,
- const Bezier& c2_orig,
- const Bezier& c2_part,
- double last_t1_c2,
- double last_t2_c2 )
+template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_iterator< ::std::vector< ::std::pair<double, double> > >& result,
+ double delta,
+ const Functor& safeRangeFunctor,
+ int recursionLevel,
+ const Bezier& c1_orig,
+ const Bezier& c1_part,
+ double last_t1_c1,
+ double last_t2_c1,
+ const Bezier& c2_orig,
+ const Bezier& c2_part,
+ double last_t1_c2,
+ double last_t2_c2 )
{
// check end condition
// ===================
@@ -972,7 +972,7 @@ template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_itera
for( int i=0; i<recursionLevel; ++i ) cerr << " ";
if( recursionLevel % 2 )
{
- cerr << "level: " << recursionLevel
+ cerr << "level: " << recursionLevel
<< " t: "
<< last_t1_c2 + (last_t2_c2 - last_t1_c2)/2.0
<< ", c1: " << last_t1_c2 << " " << last_t2_c2
@@ -981,7 +981,7 @@ template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_itera
}
else
{
- cerr << "level: " << recursionLevel
+ cerr << "level: " << recursionLevel
<< " t: "
<< last_t1_c1 + (last_t2_c1 - last_t1_c1)/2.0
<< ", c1: " << last_t1_c1 << " " << last_t2_c1
@@ -1028,10 +1028,10 @@ template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_itera
#if 1
if( fabs(last_t2_c1 - last_t1_c1) < 0.0001 &&
- fabs(last_t2_c2 - last_t1_c2) < 0.0001 )
+ fabs(last_t2_c2 - last_t1_c2) < 0.0001 )
#else
if( fabs(last_t2_c1 - last_t1_c1) < 0.01 &&
- fabs(last_t2_c2 - last_t1_c2) < 0.01 )
+ fabs(last_t2_c2 - last_t1_c2) < 0.01 )
#endif
{
// done. Add to result
@@ -1076,7 +1076,7 @@ template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_itera
Bezier part2;
double intervalMiddle;
-
+
if( last_t2_c1 - last_t1_c1 > last_t2_c2 - last_t1_c2 )
{
// subdivide c1
@@ -1111,7 +1111,7 @@ template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_itera
// curve, this simply amounts to subdivision
// at 0.5)
Impl_deCasteljauAt( part1, part2, c2_part, 0.5 );
-
+
// and descend recursively with swapped curves
Impl_applySafeRanges_rec( result, delta, safeRangeFunctor, recursionLevel+1,
c2_orig, part1, last_t1_c2, intervalMiddle,
@@ -1159,14 +1159,14 @@ template <class Functor> void Impl_applySafeRanges_rec( ::std::back_insert_itera
struct ClipBezierFunctor
{
- bool operator()( double& t1_c1,
- double& t2_c1,
+ bool operator()( double& t1_c1,
+ double& t2_c1,
const Bezier& c1_orig,
const Bezier& c1_part,
const Bezier& c2_orig,
const Bezier& c2_part ) const
- {
- return Impl_calcClipRange( t1_c1, t2_c1, c1_orig, c1_part, c2_orig, c2_part );
+ {
+ return Impl_calcClipRange( t1_c1, t2_c1, c1_orig, c1_part, c2_orig, c2_part );
}
};
@@ -1174,13 +1174,13 @@ struct ClipBezierFunctor
struct BezierTangencyFunctor
{
- bool operator()( double& t1_c1,
- double& t2_c1,
+ bool operator()( double& t1_c1,
+ double& t2_c1,
const Bezier& c1_orig,
const Bezier& c1_part,
const Bezier& c2_orig,
const Bezier& c2_part ) const
- {
+ {
// calc focus curve of c2
Bezier focus;
Impl_calcFocus(focus, c2_part); // need to use subdivided c2
@@ -1201,7 +1201,7 @@ struct BezierTangencyFunctor
// -----------------------------------------------------------------------------
/** Perform a bezier clip (curve against curve)
-
+
@param result
Output iterator where the final t values are added to. This
iterator will remain empty, if there are no intersections.
@@ -1210,10 +1210,10 @@ struct BezierTangencyFunctor
Maximal allowed distance to true intersection (measured in the
original curve's coordinate system)
*/
-void clipBezier( ::std::back_insert_iterator< ::std::vector< ::std::pair<double, double> > >& result,
- double delta,
- const Bezier& c1,
- const Bezier& c2 )
+void clipBezier( ::std::back_insert_iterator< ::std::vector< ::std::pair<double, double> > >& result,
+ double delta,
+ const Bezier& c1,
+ const Bezier& c2 )
{
#if 0
// first of all, determine list of collinear normals. Collinear
@@ -1257,7 +1257,7 @@ void clipBezier( ::std::back_insert_iterator< ::std::vector< ::std::pair<double,
}
c1_segments[i] = c1_remainder;
c2_segments[i] = c2_remainder;
-
+
// now, c1/c2_segments contain all segments, then
// clip every resulting segment against every other
unsigned int c1_curr, c2_curr;
@@ -1267,10 +1267,10 @@ void clipBezier( ::std::back_insert_iterator< ::std::vector< ::std::pair<double,
{
if( c1_curr != c2_curr )
{
- Impl_clipBezier_rec(result, delta, 0,
- c1_segments[c1_curr], c1_segments[c1_curr],
+ Impl_clipBezier_rec(result, delta, 0,
+ c1_segments[c1_curr], c1_segments[c1_curr],
0.0, 1.0,
- c2_segments[c2_curr], c2_segments[c2_curr],
+ c2_segments[c2_curr], c2_segments[c2_curr],
0.0, 1.0);
}
}
@@ -1287,8 +1287,8 @@ int main(int argc, const char *argv[])
double curr_Offset( 0 );
unsigned int i,j,k;
- Bezier someCurves[] =
- {
+ Bezier someCurves[] =
+ {
// {Point2D(0.0,0.0),Point2D(0.0,1.0),Point2D(1.0,1.0),Point2D(1.0,0.0)},
// {Point2D(0.0,0.0),Point2D(0.0,1.0),Point2D(1.0,1.0),Point2D(1.0,0.5)},
// {Point2D(1.0,0.0),Point2D(0.0,0.0),Point2D(0.0,1.0),Point2D(1.0,1.0)}
@@ -1352,7 +1352,7 @@ int main(int argc, const char *argv[])
};
// output gnuplot setup
- cout << "#!/usr/bin/gnuplot -persist" << endl
+ cout << "#!/usr/bin/gnuplot -persist" << endl
<< "#" << endl
<< "# automatically generated by bezierclip, don't change!" << endl
<< "#" << endl
@@ -1363,13 +1363,13 @@ int main(int argc, const char *argv[])
<< "pointmarky(c,t) = c+0.03*t" << endl
<< "linex(a,b,c,t) = a*-c + t*-b" << endl
<< "liney(a,b,c,t) = b*-c + t*a" << endl << endl
- << "# end of setup" << endl << endl;
+ << "# end of setup" << endl << endl;
#ifdef WITH_CONVEXHULL_TEST
// test convex hull algorithm
const double convHull_xOffset( curr_Offset );
curr_Offset += 20;
- cout << "# convex hull testing" << endl
+ cout << "# convex hull testing" << endl
<< "plot [t=0:1] ";
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
@@ -1378,18 +1378,18 @@ int main(int argc, const char *argv[])
aTestPoly[1] = someCurves[i].p1;
aTestPoly[2] = someCurves[i].p2;
aTestPoly[3] = someCurves[i].p3;
-
+
aTestPoly[0].x += convHull_xOffset;
aTestPoly[1].x += convHull_xOffset;
aTestPoly[2].x += convHull_xOffset;
aTestPoly[3].x += convHull_xOffset;
- cout << " bez("
- << aTestPoly[0].x << ","
+ cout << " bez("
+ << aTestPoly[0].x << ","
<< aTestPoly[1].x << ","
<< aTestPoly[2].x << ","
<< aTestPoly[3].x << ",t),bez("
- << aTestPoly[0].y << ","
+ << aTestPoly[0].y << ","
<< aTestPoly[1].y << ","
<< aTestPoly[2].y << ","
<< aTestPoly[3].y << ",t), '-' using ($1):($2) title \"convex hull " << i << "\" with lp";
@@ -1406,14 +1406,14 @@ int main(int argc, const char *argv[])
aTestPoly[1] = someCurves[i].p1;
aTestPoly[2] = someCurves[i].p2;
aTestPoly[3] = someCurves[i].p3;
-
+
aTestPoly[0].x += convHull_xOffset;
aTestPoly[1].x += convHull_xOffset;
aTestPoly[2].x += convHull_xOffset;
aTestPoly[3].x += convHull_xOffset;
Polygon2D convHull( convexHull(aTestPoly) );
-
+
for( k=0; k<convHull.size(); ++k )
{
cout << convHull[k].x << " " << convHull[k].y << endl;
@@ -1427,7 +1427,7 @@ int main(int argc, const char *argv[])
// test convex hull algorithm
const double multiSubdivide_xOffset( curr_Offset );
curr_Offset += 20;
- cout << "# multi subdivide testing" << endl
+ cout << "# multi subdivide testing" << endl
<< "plot [t=0:1] ";
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
@@ -1459,30 +1459,30 @@ int main(int argc, const char *argv[])
// subdivide at t2
Impl_deCasteljauAt( c1_part3, c1_part2, c, t2 );
- cout << " bez("
- << c1_part1.p0.x << ","
+ cout << " bez("
+ << c1_part1.p0.x << ","
<< c1_part1.p1.x << ","
<< c1_part1.p2.x << ","
<< c1_part1.p3.x << ",t), bez("
- << c1_part1.p0.y+0.01 << ","
+ << c1_part1.p0.y+0.01 << ","
<< c1_part1.p1.y+0.01 << ","
<< c1_part1.p2.y+0.01 << ","
<< c1_part1.p3.y+0.01 << ",t) title \"middle " << i << "\", "
- << " bez("
- << c1_part2.p0.x << ","
+ << " bez("
+ << c1_part2.p0.x << ","
<< c1_part2.p1.x << ","
<< c1_part2.p2.x << ","
<< c1_part2.p3.x << ",t), bez("
- << c1_part2.p0.y << ","
+ << c1_part2.p0.y << ","
<< c1_part2.p1.y << ","
<< c1_part2.p2.y << ","
<< c1_part2.p3.y << ",t) title \"right " << i << "\", "
- << " bez("
- << c1_part3.p0.x << ","
+ << " bez("
+ << c1_part3.p0.x << ","
<< c1_part3.p1.x << ","
<< c1_part3.p2.x << ","
<< c1_part3.p3.x << ",t), bez("
- << c1_part3.p0.y << ","
+ << c1_part3.p0.y << ","
<< c1_part3.p1.y << ","
<< c1_part3.p2.y << ","
<< c1_part3.p3.y << ",t) title \"left " << i << "\"";
@@ -1499,12 +1499,12 @@ int main(int argc, const char *argv[])
// test fatline algorithm
const double fatLine_xOffset( curr_Offset );
curr_Offset += 20;
- cout << "# fat line testing" << endl
+ cout << "# fat line testing" << endl
<< "plot [t=0:1] ";
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
Bezier c( someCurves[i] );
-
+
c.p0.x += fatLine_xOffset;
c.p1.x += fatLine_xOffset;
c.p2.x += fatLine_xOffset;
@@ -1514,20 +1514,20 @@ int main(int argc, const char *argv[])
Impl_calcFatLine(line, c);
- cout << " bez("
- << c.p0.x << ","
+ cout << " bez("
+ << c.p0.x << ","
<< c.p1.x << ","
<< c.p2.x << ","
<< c.p3.x << ",t), bez("
- << c.p0.y << ","
+ << c.p0.y << ","
<< c.p1.y << ","
<< c.p2.y << ","
<< c.p3.y << ",t) title \"bezier " << i << "\", linex("
<< line.a << ","
<< line.b << ","
- << line.c << ",t), liney("
- << line.a << ","
- << line.b << ","
+ << line.c << ",t), liney("
+ << line.a << ","
+ << line.b << ","
<< line.c << ",t) title \"fat line (center) on " << i << "\", linex("
<< line.a << ","
<< line.b << ","
@@ -1553,12 +1553,12 @@ int main(int argc, const char *argv[])
// test focus curve algorithm
const double focus_xOffset( curr_Offset );
curr_Offset += 20;
- cout << "# focus line testing" << endl
+ cout << "# focus line testing" << endl
<< "plot [t=0:1] ";
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
Bezier c( someCurves[i] );
-
+
c.p0.x += focus_xOffset;
c.p1.x += focus_xOffset;
c.p2.x += focus_xOffset;
@@ -1568,20 +1568,20 @@ int main(int argc, const char *argv[])
Bezier focus;
Impl_calcFocus(focus, c);
- cout << " bez("
- << c.p0.x << ","
+ cout << " bez("
+ << c.p0.x << ","
<< c.p1.x << ","
<< c.p2.x << ","
<< c.p3.x << ",t), bez("
- << c.p0.y << ","
+ << c.p0.y << ","
<< c.p1.y << ","
<< c.p2.y << ","
- << c.p3.y << ",t) title \"bezier " << i << "\", bez("
- << focus.p0.x << ","
+ << c.p3.y << ",t) title \"bezier " << i << "\", bez("
+ << focus.p0.x << ","
<< focus.p1.x << ","
<< focus.p2.x << ","
<< focus.p3.x << ",t), bez("
- << focus.p0.y << ","
+ << focus.p0.y << ","
<< focus.p1.y << ","
<< focus.p2.y << ","
<< focus.p3.y << ",t) title \"focus " << i << "\"";
@@ -1597,12 +1597,12 @@ int main(int argc, const char *argv[])
#ifdef WITH_SAFEPARAMBASE_TEST
// test safe params base method
double safeParamsBase_xOffset( curr_Offset );
- cout << "# safe param base method testing" << endl
+ cout << "# safe param base method testing" << endl
<< "plot [t=0:1] ";
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
Bezier c( someCurves[i] );
-
+
c.p0.x += safeParamsBase_xOffset;
c.p1.x += safeParamsBase_xOffset;
c.p2.x += safeParamsBase_xOffset;
@@ -1619,13 +1619,13 @@ int main(int argc, const char *argv[])
bool bRet( Impl_calcSafeParams( t1, t2, poly, 0, 1 ) );
Polygon2D convHull( convexHull( poly ) );
-
- cout << " bez("
- << poly[0].x << ","
+
+ cout << " bez("
+ << poly[0].x << ","
<< poly[1].x << ","
<< poly[2].x << ","
<< poly[3].x << ",t),bez("
- << poly[0].y << ","
+ << poly[0].y << ","
<< poly[1].y << ","
<< poly[2].y << ","
<< poly[3].y << ",t), "
@@ -1651,7 +1651,7 @@ int main(int argc, const char *argv[])
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
Bezier c( someCurves[i] );
-
+
c.p0.x += safeParamsBase_xOffset;
c.p1.x += safeParamsBase_xOffset;
c.p2.x += safeParamsBase_xOffset;
@@ -1668,7 +1668,7 @@ int main(int argc, const char *argv[])
Impl_calcSafeParams( t1, t2, poly, 0, 1 );
Polygon2D convHull( convexHull( poly ) );
-
+
unsigned int k;
for( k=0; k<poly.size(); ++k )
{
@@ -1693,7 +1693,7 @@ int main(int argc, const char *argv[])
// test safe parameter range algorithm
const double safeParams_xOffset( curr_Offset );
curr_Offset += 20;
- cout << "# safe param range testing" << endl
+ cout << "# safe param range testing" << endl
<< "plot [t=0.0:1.0] ";
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
@@ -1701,7 +1701,7 @@ int main(int argc, const char *argv[])
{
Bezier c1( someCurves[i] );
Bezier c2( someCurves[j] );
-
+
c1.p0.x += safeParams_xOffset;
c1.p1.x += safeParams_xOffset;
c1.p2.x += safeParams_xOffset;
@@ -1727,28 +1727,28 @@ int main(int argc, const char *argv[])
// output remaining segment (c1_part1)
- cout << " bez("
- << c1.p0.x << ","
+ cout << " bez("
+ << c1.p0.x << ","
<< c1.p1.x << ","
<< c1.p2.x << ","
<< c1.p3.x << ",t),bez("
- << c1.p0.y << ","
+ << c1.p0.y << ","
<< c1.p1.y << ","
<< c1.p2.y << ","
<< c1.p3.y << ",t), bez("
- << c2.p0.x << ","
+ << c2.p0.x << ","
<< c2.p1.x << ","
<< c2.p2.x << ","
<< c2.p3.x << ",t),bez("
- << c2.p0.y << ","
+ << c2.p0.y << ","
<< c2.p1.y << ","
<< c2.p2.y << ","
<< c2.p3.y << ",t), bez("
- << c1_part1.p0.x << ","
+ << c1_part1.p0.x << ","
<< c1_part1.p1.x << ","
<< c1_part1.p2.x << ","
<< c1_part1.p3.x << ",t),bez("
- << c1_part1.p0.y << ","
+ << c1_part1.p0.y << ","
<< c1_part1.p1.y << ","
<< c1_part1.p2.y << ","
<< c1_part1.p3.y << ",t)";
@@ -1770,7 +1770,7 @@ int main(int argc, const char *argv[])
{
Bezier c1( someCurves[0] );
Bezier c2( someCurves[1] );
-
+
c1.p0.x += safeParams2_xOffset;
c1.p1.x += safeParams2_xOffset;
c1.p2.x += safeParams2_xOffset;
@@ -1791,7 +1791,7 @@ int main(int argc, const char *argv[])
// test safe parameter range from focus algorithm
const double safeParamsFocus_xOffset( curr_Offset );
curr_Offset += 20;
- cout << "# safe param range from focus testing" << endl
+ cout << "# safe param range from focus testing" << endl
<< "plot [t=0.0:1.0] ";
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
@@ -1799,7 +1799,7 @@ int main(int argc, const char *argv[])
{
Bezier c1( someCurves[i] );
Bezier c2( someCurves[j] );
-
+
c1.p0.x += safeParamsFocus_xOffset;
c1.p1.x += safeParamsFocus_xOffset;
c1.p2.x += safeParamsFocus_xOffset;
@@ -1819,10 +1819,10 @@ int main(int argc, const char *argv[])
Bezier c1_part1;
Bezier c1_part2;
Bezier c1_part3;
-
+
// subdivide at t1_c1
Impl_deCasteljauAt( c1_part1, c1_part2, c2, 0.30204 );
-
+
// subdivide at t2_c1. As we're working on
// c1_part2 now, we have to adapt t2_c1 since
// we're no longer in the original parameter
@@ -1831,7 +1831,7 @@ int main(int argc, const char *argv[])
// relates the t2 value into the new parameter
// range [0,1] of c1_part2.
Impl_deCasteljauAt( c1_part1, c1_part3, c1_part2, (0.57151-0.30204)/(1.0-0.30204) );
-
+
c2 = c1_part1;
Impl_calcFocus( focus, c2 );
}
@@ -1851,49 +1851,49 @@ int main(int argc, const char *argv[])
Bezier c1_part1;
Bezier c1_part2;
Bezier c1_part3;
-
+
// subdivide at t1_c1
Impl_deCasteljauAt( c1_part1, c1_part2, c1, t1 );
// subdivide at t2_c1
Impl_deCasteljauAt( c1_part1, c1_part3, c1_part2, (t2-t1)/(1.0-t1) );
-
+
// output remaining segment (c1_part1)
-
- cout << " bez("
- << c1.p0.x << ","
+
+ cout << " bez("
+ << c1.p0.x << ","
<< c1.p1.x << ","
<< c1.p2.x << ","
<< c1.p3.x << ",t),bez("
- << c1.p0.y << ","
+ << c1.p0.y << ","
<< c1.p1.y << ","
<< c1.p2.y << ","
<< c1.p3.y << ",t) title \"c1\", "
#ifdef WITH_SAFEFOCUSPARAM_CALCFOCUS
<< "bez("
- << c2.p0.x << ","
+ << c2.p0.x << ","
<< c2.p1.x << ","
<< c2.p2.x << ","
<< c2.p3.x << ",t),bez("
- << c2.p0.y << ","
+ << c2.p0.y << ","
<< c2.p1.y << ","
<< c2.p2.y << ","
<< c2.p3.y << ",t) title \"c2\", "
<< "bez("
- << focus.p0.x << ","
+ << focus.p0.x << ","
<< focus.p1.x << ","
<< focus.p2.x << ","
<< focus.p3.x << ",t),bez("
- << focus.p0.y << ","
+ << focus.p0.y << ","
<< focus.p1.y << ","
<< focus.p2.y << ","
<< focus.p3.y << ",t) title \"focus\"";
#else
<< "bez("
- << c2.p0.x << ","
+ << c2.p0.x << ","
<< c2.p1.x << ","
<< c2.p2.x << ","
<< c2.p3.x << ",t),bez("
- << c2.p0.y << ","
+ << c2.p0.y << ","
<< c2.p1.y << ","
<< c2.p2.y << ","
<< c2.p3.y << ",t) title \"focus\"";
@@ -1901,11 +1901,11 @@ int main(int argc, const char *argv[])
if( bRet )
{
cout << ", bez("
- << c1_part1.p0.x << ","
+ << c1_part1.p0.x << ","
<< c1_part1.p1.x << ","
<< c1_part1.p2.x << ","
<< c1_part1.p3.x << ",t),bez("
- << c1_part1.p0.y+0.01 << ","
+ << c1_part1.p0.y+0.01 << ","
<< c1_part1.p1.y+0.01 << ","
<< c1_part1.p2.y+0.01 << ","
<< c1_part1.p3.y+0.01 << ",t) title \"part\"";
@@ -1927,7 +1927,7 @@ int main(int argc, const char *argv[])
{
Bezier c1( someCurves[0] );
Bezier c2( someCurves[1] );
-
+
c1.p0.x += safeParams3_xOffset;
c1.p1.x += safeParams3_xOffset;
c1.p2.x += safeParams3_xOffset;
@@ -1938,7 +1938,7 @@ int main(int argc, const char *argv[])
c2.p3.x += safeParams3_xOffset;
double t1, t2;
-
+
Bezier focus;
#ifdef WITH_SAFEFOCUSPARAM_CALCFOCUS
Impl_calcFocus( focus, c2 );
@@ -1953,13 +1953,13 @@ int main(int argc, const char *argv[])
#endif
#ifdef WITH_BEZIERCLIP_TEST
- ::std::vector< ::std::pair<double, double> > result;
+ ::std::vector< ::std::pair<double, double> > result;
::std::back_insert_iterator< ::std::vector< ::std::pair<double, double> > > ii(result);
// test full bezier clipping
const double bezierClip_xOffset( curr_Offset );
curr_Offset += 20;
- cout << endl << endl << "# bezier clip testing" << endl
+ cout << endl << endl << "# bezier clip testing" << endl
<< "plot [t=0:1] ";
for( i=0; i<sizeof(someCurves)/sizeof(Bezier); ++i )
{
@@ -1977,39 +1977,39 @@ int main(int argc, const char *argv[])
c2.p2.x += bezierClip_xOffset;
c2.p3.x += bezierClip_xOffset;
- cout << " bez("
- << c1.p0.x << ","
+ cout << " bez("
+ << c1.p0.x << ","
<< c1.p1.x << ","
<< c1.p2.x << ","
<< c1.p3.x << ",t),bez("
- << c1.p0.y << ","
+ << c1.p0.y << ","
<< c1.p1.y << ","
<< c1.p2.y << ","
<< c1.p3.y << ",t), bez("
- << c2.p0.x << ","
+ << c2.p0.x << ","
<< c2.p1.x << ","
<< c2.p2.x << ","
<< c2.p3.x << ",t),bez("
- << c2.p0.y << ","
+ << c2.p0.y << ","
<< c2.p1.y << ","
<< c2.p2.y << ","
- << c2.p3.y << ",t), '-' using (bez("
- << c1.p0.x << ","
+ << c2.p3.y << ",t), '-' using (bez("
+ << c1.p0.x << ","
<< c1.p1.x << ","
<< c1.p2.x << ","
- << c1.p3.x
+ << c1.p3.x
<< ",$1)):(bez("
- << c1.p0.y << ","
+ << c1.p0.y << ","
<< c1.p1.y << ","
<< c1.p2.y << ","
<< c1.p3.y << ",$1)) title \"bezier " << i << " clipped against " << j << " (t on " << i << ")\", "
- << " '-' using (bez("
- << c2.p0.x << ","
+ << " '-' using (bez("
+ << c2.p0.x << ","
<< c2.p1.x << ","
<< c2.p2.x << ","
- << c2.p3.x
+ << c2.p3.x
<< ",$1)):(bez("
- << c2.p0.y << ","
+ << c2.p0.y << ","
<< c2.p1.y << ","
<< c2.p2.y << ","
<< c2.p3.y << ",$1)) title \"bezier " << i << " clipped against " << j << " (t on " << j << ")\"";
diff --git a/basegfx/source/workbench/bezierclip.hxx b/basegfx/source/workbench/bezierclip.hxx
index 06294d174847..06436a21b817 100644
--- a/basegfx/source/workbench/bezierclip.hxx
+++ b/basegfx/source/workbench/bezierclip.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,13 +42,13 @@ struct Point2D
struct Bezier
{
- Point2D p0;
- Point2D p1;
- Point2D p2;
- Point2D p3;
+ Point2D p0;
+ Point2D p1;
+ Point2D p2;
+ Point2D p3;
- Point2D& operator[]( int i ) { return reinterpret_cast<Point2D*>(this)[i]; }
- const Point2D& operator[]( int i ) const { return reinterpret_cast<const Point2D*>(this)[i]; }
+ Point2D& operator[]( int i ) { return reinterpret_cast<Point2D*>(this)[i]; }
+ const Point2D& operator[]( int i ) const { return reinterpret_cast<const Point2D*>(this)[i]; }
};
struct FatLine
diff --git a/basegfx/source/workbench/convexhull.cxx b/basegfx/source/workbench/convexhull.cxx
index 4e846a863f7f..2d828164cd1b 100644
--- a/basegfx/source/workbench/convexhull.cxx
+++ b/basegfx/source/workbench/convexhull.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,12 +37,12 @@
// -----------------------------------------------------------------------------
-/* Implements the theta function from Sedgewick: Algorithms in XXX, chapter 24 */
+/* Implements the theta function from Sedgewick: Algorithms in XXX, chapter 24 */
template <class PointType> double theta( const PointType& p1, const PointType& p2 )
{
typename PointType::value_type dx, dy, ax, ay;
double t;
-
+
dx = p2.x - p1.x; ax = absval( dx );
dy = p2.y - p1.y; ay = absval( dy );
t = (ax+ay == 0) ? 0 : (double) dy/(ax+ay);
@@ -50,13 +50,13 @@ template <class PointType> double theta( const PointType& p1, const PointType& p
t = 2-t;
else if( dy < 0 )
t = 4+t;
-
+
return t*90.0;
}
/* Model of LessThanComparable for theta sort.
- * Uses the theta function from Sedgewick: Algorithms in XXX, chapter 24
- */
+ * Uses the theta function from Sedgewick: Algorithms in XXX, chapter 24
+ */
template <class PointType> class ThetaCompare : public ::std::binary_function< const PointType&, const PointType&, bool >
{
public:
@@ -84,7 +84,7 @@ template <class PointType, class CmpFunctor> typename PointType::value_type ccw(
typename PointType::value_type theta0( thetaCmp(p0) );
typename PointType::value_type theta1( thetaCmp(p1) );
typename PointType::value_type theta2( thetaCmp(p2) );
-
+
#if 0
if( theta0 == theta1 ||
theta0 == theta2 ||
@@ -121,7 +121,7 @@ template <class PointType, class CmpFunctor> typename PointType::value_type ccw(
Sometimes, the resulting polygon is not the convex hull (see below
for an edge configuration to reproduce that problem)
- Problem analysis:
+ Problem analysis:
=================
The root cause of this bug is the fact that the second part of
@@ -158,7 +158,7 @@ template <class PointType, class CmpFunctor> typename PointType::value_type ccw(
also classify them as 'equal'. Thus, the second stage of the
convex hull algorithm sorts the first one out, effectively
reducing a cluster of theta-equal points to only one. This
- single point can then be treated correctly.
+ single point can then be treated correctly.
*/
@@ -173,7 +173,7 @@ Polygon2D convexHull( const Polygon2D& rPoly )
// determine safe point on hull (smallest y value)
for( min=1, i=2; i<=N; ++i )
{
- if( result[i].y < result[min].y )
+ if( result[i].y < result[min].y )
min = i;
}
@@ -197,7 +197,7 @@ Polygon2D convexHull( const Polygon2D& rPoly )
// setup sentinel
result[0] = result[N];
-
+
// generate convex hull
Polygon2D::size_type M;
for( M=3, i=4; i<=N; ++i )
diff --git a/basegfx/source/workbench/gauss.hxx b/basegfx/source/workbench/gauss.hxx
index a6d8da3f604d..d8196f156ef5 100644
--- a/basegfx/source/workbench/gauss.hxx
+++ b/basegfx/source/workbench/gauss.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
************************************************************************/
/** This method eliminates elements below main diagonal in the given
- matrix by gaussian elimination.
+ matrix by gaussian elimination.
@param matrix
The matrix to operate on. Last column is the result vector (right
@@ -47,14 +47,14 @@
@return true, if elimination succeeded.
*/
-template <class Matrix, typename BaseType>
-bool eliminate( Matrix& matrix,
- int rows,
- int cols,
- const BaseType& minPivot )
+template <class Matrix, typename BaseType>
+bool eliminate( Matrix& matrix,
+ int rows,
+ int cols,
+ const BaseType& minPivot )
{
- BaseType temp;
- int max, i, j, k; /* *must* be signed, when looping like: j>=0 ! */
+ BaseType temp;
+ int max, i, j, k; /* *must* be signed, when looping like: j>=0 ! */
/* eliminate below main diagonal */
for(i=0; i<cols-1; ++i)
@@ -62,12 +62,12 @@ bool eliminate( Matrix& matrix,
/* find best pivot */
max = i;
for(j=i+1; j<rows; ++j)
- if( fabs(matrix[ j*cols + i ]) > fabs(matrix[ max*cols + i ]) )
+ if( fabs(matrix[ j*cols + i ]) > fabs(matrix[ max*cols + i ]) )
max = j;
/* check pivot value */
if( fabs(matrix[ max*cols + i ]) < minPivot )
- return false; /* pivot too small! */
+ return false; /* pivot too small! */
/* interchange rows 'max' and 'i' */
for(k=0; k<cols; ++k)
@@ -76,11 +76,11 @@ bool eliminate( Matrix& matrix,
matrix[ i*cols + k ] = matrix[ max*cols + k ];
matrix[ max*cols + k ] = temp;
}
-
+
/* eliminate column */
for(j=i+1; j<rows; ++j)
for(k=cols-1; k>=i; --k)
- matrix[ j*cols + k ] -= matrix[ i*cols + k ] *
+ matrix[ j*cols + k ] -= matrix[ i*cols + k ] *
matrix[ j*cols + i ] / matrix[ i*cols + i ];
}
@@ -109,14 +109,14 @@ bool eliminate( Matrix& matrix,
@return true, if back substitution was possible (i.e. no division
by zero occured).
*/
-template <class Matrix, class Vector, typename BaseType>
-bool substitute( const Matrix& matrix,
- int rows,
- int cols,
- Vector& result )
+template <class Matrix, class Vector, typename BaseType>
+bool substitute( const Matrix& matrix,
+ int rows,
+ int cols,
+ Vector& result )
{
- BaseType temp;
- int j,k; /* *must* be signed, when looping like: j>=0 ! */
+ BaseType temp;
+ int j,k; /* *must* be signed, when looping like: j>=0 ! */
/* substitute backwards */
for(j=rows-1; j>=0; --j)
@@ -126,7 +126,7 @@ bool substitute( const Matrix& matrix,
temp += matrix[ j*cols + k ] * result[k];
if( matrix[ j*cols + j ] == 0.0 )
- return false; /* imminent division by zero! */
+ return false; /* imminent division by zero! */
result[j] = (matrix[ j*cols + cols-1 ] - temp) / matrix[ j*cols + j ];
}
@@ -159,12 +159,12 @@ bool substitute( const Matrix& matrix,
@return true, if elimination succeeded.
*/
-template <class Matrix, class Vector, typename BaseType>
-bool solve( Matrix& matrix,
- int rows,
- int cols,
- Vector& result,
- BaseType minPivot )
+template <class Matrix, class Vector, typename BaseType>
+bool solve( Matrix& matrix,
+ int rows,
+ int cols,
+ Vector& result,
+ BaseType minPivot )
{
if( eliminate<Matrix,BaseType>(matrix, rows, cols, minPivot) )
return substitute<Matrix,Vector,BaseType>(matrix, rows, cols, result);
diff --git a/basegfx/test/basegfx1d.cxx b/basegfx/test/basegfx1d.cxx
index 40ebba3810fe..f7bf8df310f2 100644
--- a/basegfx/test/basegfx1d.cxx
+++ b/basegfx/test/basegfx1d.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx
index c06843c04115..93c8392e7619 100644
--- a/basegfx/test/basegfx2d.cxx
+++ b/basegfx/test/basegfx2d.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -151,7 +151,7 @@ public:
void impex()
{
- B2DPolyPolygon aPoly;
+ B2DPolyPolygon aPoly;
::rtl::OUString aExport;
CPPUNIT_ASSERT_MESSAGE("importing simple rectangle from SVG-D",
@@ -297,23 +297,23 @@ public:
B2DPolyRange aRange;
aRange.appendElement(B2DRange(0,0,1,1),ORIENTATION_POSITIVE);
aRange.appendElement(B2DRange(2,2,3,3),ORIENTATION_POSITIVE);
-
- CPPUNIT_ASSERT_MESSAGE("simple poly range - count",
+
+ CPPUNIT_ASSERT_MESSAGE("simple poly range - count",
aRange.count() == 2);
- CPPUNIT_ASSERT_MESSAGE("simple poly range - first element",
+ CPPUNIT_ASSERT_MESSAGE("simple poly range - first element",
aRange.getElement(0).head == B2DRange(0,0,1,1));
- CPPUNIT_ASSERT_MESSAGE("simple poly range - second element",
+ CPPUNIT_ASSERT_MESSAGE("simple poly range - second element",
aRange.getElement(1).head == B2DRange(2,2,3,3));
// B2DPolyRange relies on correctly orientated rects
const B2DRange aRect(0,0,1,1);
- CPPUNIT_ASSERT_MESSAGE("createPolygonFromRect - correct orientation",
+ CPPUNIT_ASSERT_MESSAGE("createPolygonFromRect - correct orientation",
tools::getOrientation(
tools::createPolygonFromRect(aRect)) == ORIENTATION_POSITIVE );
}
- // Change the following lines only, if you add, remove or rename
- // member functions of the current class,
+ // Change the following lines only, if you add, remove or rename
+ // member functions of the current class,
// because these macros are need by auto register mechanism.
CPPUNIT_TEST_SUITE(b2dpolyrange);
@@ -324,15 +324,15 @@ public:
class b2dbeziertools : public CppUnit::TestFixture
{
private:
- B2DCubicBezier aHalfCircle; // not exactly, but a look-alike
- B2DCubicBezier aQuarterCircle; // not exactly, but a look-alike
- B2DCubicBezier aLoop; // identical endpoints, curve goes back to where it started
- B2DCubicBezier aStraightLineDistinctEndPoints; // truly a line
- B2DCubicBezier aStraightLineDistinctEndPoints2; // truly a line, with slightly different control points
- B2DCubicBezier aStraightLineIdenticalEndPoints; // degenerate case of aLoop
+ B2DCubicBezier aHalfCircle; // not exactly, but a look-alike
+ B2DCubicBezier aQuarterCircle; // not exactly, but a look-alike
+ B2DCubicBezier aLoop; // identical endpoints, curve goes back to where it started
+ B2DCubicBezier aStraightLineDistinctEndPoints; // truly a line
+ B2DCubicBezier aStraightLineDistinctEndPoints2; // truly a line, with slightly different control points
+ B2DCubicBezier aStraightLineIdenticalEndPoints; // degenerate case of aLoop
B2DCubicBezier aStraightLineIdenticalEndPoints2;// degenerate case of aLoop, with slightly different control points
- B2DCubicBezier aCrossing; // curve self-intersects somewhere in the middle
- B2DCubicBezier aCusp; // curve has a point of undefined tangency
+ B2DCubicBezier aCrossing; // curve self-intersects somewhere in the middle
+ B2DCubicBezier aCusp; // curve has a point of undefined tangency
public:
@@ -347,16 +347,16 @@ public:
const B2DPoint quarterDown( 0.25, 0.25 );
const B2DPoint quarterUp( 0.75, 0.75 );
- aHalfCircle = B2DCubicBezier(a00, a01, a11, a10);
+ aHalfCircle = B2DCubicBezier(a00, a01, a11, a10);
// The spline control points become
//
- // (R * cos(A), R * sin(A))
- // (R * cos(A) - h * sin(A), R * sin(A) + h * cos (A))
- // (R * cos(B) + h * sin(B), R * sin(B) - h * cos (B))
- // (R * cos(B), R * sin(B))
+ // (R * cos(A), R * sin(A))
+ // (R * cos(A) - h * sin(A), R * sin(A) + h * cos (A))
+ // (R * cos(B) + h * sin(B), R * sin(B) - h * cos (B))
+ // (R * cos(B), R * sin(B))
//
- // where h = 4/3 * R * tan ((B-A)/4)
+ // where h = 4/3 * R * tan ((B-A)/4)
//
// with R being the radius, A start angle and B end angle (A < B).
//
@@ -365,17 +365,17 @@ public:
// Choosing R=1, A=0, B=pi/2
const double h( 4.0/3.0 * tan(M_PI/8.0) );
- aQuarterCircle = B2DCubicBezier(a10 + B2DPoint(1.0,0.0),
+ aQuarterCircle = B2DCubicBezier(a10 + B2DPoint(1.0,0.0),
B2DPoint(B2DPoint( 1.0, h ) + B2DPoint(1.0,0.0)),
B2DPoint(B2DPoint( h, 1.0) + B2DPoint(1.0,0.0)),
a01 + B2DPoint(1.0,0.0));
- aCusp = B2DCubicBezier(a00 + B2DPoint(2.0,0.0),
+ aCusp = B2DCubicBezier(a00 + B2DPoint(2.0,0.0),
B2DPoint(a11 + B2DPoint(2.0,0.0)),
B2DPoint(a01 + B2DPoint(2.0,0.0)),
a10 + B2DPoint(2.0,0.0));
- aLoop = B2DCubicBezier(a00 + B2DPoint(3.0,0.0),
+ aLoop = B2DCubicBezier(a00 + B2DPoint(3.0,0.0),
B2DPoint(a01 + B2DPoint(3.0,0.0)),
B2DPoint(a10 + B2DPoint(3.0,0.0)),
a00 + B2DPoint(3.0,0.0));
@@ -400,7 +400,7 @@ public:
B2DPoint(quarterUp + B2DPoint(7.0,0.0)),
a00 + B2DPoint(7.0,0.0));
- aCrossing = B2DCubicBezier(a00 + B2DPoint(8.0,0.0),
+ aCrossing = B2DCubicBezier(a00 + B2DPoint(8.0,0.0),
B2DPoint(B2DPoint(2.0,2.0) + B2DPoint(8.0,0.0)),
B2DPoint(B2DPoint(-1.0,2.0) + B2DPoint(8.0,0.0)),
a10 + B2DPoint(8.0,0.0));
@@ -546,7 +546,7 @@ public:
// because these macros are need by auto register mechanism.
CPPUNIT_TEST_SUITE(b2dbeziertools);
- CPPUNIT_TEST(adaptiveByDistance); // TODO: add tests for quadratic bezier (subdivide and degree reduction)
+ CPPUNIT_TEST(adaptiveByDistance); // TODO: add tests for quadratic bezier (subdivide and degree reduction)
CPPUNIT_TEST(adaptiveByAngle);
CPPUNIT_TEST_SUITE_END();
}; // class b2dcubicbezier
@@ -584,12 +584,12 @@ public:
class b2dhommatrix : public CppUnit::TestFixture
{
private:
- B2DHomMatrix maIdentity;
- B2DHomMatrix maScale;
- B2DHomMatrix maTranslate;
- B2DHomMatrix maShear;
- B2DHomMatrix maAffine;
- B2DHomMatrix maPerspective;
+ B2DHomMatrix maIdentity;
+ B2DHomMatrix maScale;
+ B2DHomMatrix maTranslate;
+ B2DHomMatrix maShear;
+ B2DHomMatrix maAffine;
+ B2DHomMatrix maPerspective;
public:
// initialise your test code values here.
@@ -642,12 +642,12 @@ public:
void equal()
{
- B2DHomMatrix aIdentity;
- B2DHomMatrix aScale;
- B2DHomMatrix aTranslate;
- B2DHomMatrix aShear;
- B2DHomMatrix aAffine;
- B2DHomMatrix aPerspective;
+ B2DHomMatrix aIdentity;
+ B2DHomMatrix aScale;
+ B2DHomMatrix aTranslate;
+ B2DHomMatrix aShear;
+ B2DHomMatrix aAffine;
+ B2DHomMatrix aPerspective;
// setup some test matrices
aIdentity.identity(); // force compact layout
@@ -1099,7 +1099,7 @@ public:
aNonRect5.setControlPoints(1,B2DPoint(1,0),B2DPoint(-11,0));
aNonRect5.setClosed(true);
- CPPUNIT_ASSERT_MESSAGE("checking rectangle-ness of rectangle 1",
+ CPPUNIT_ASSERT_MESSAGE("checking rectangle-ness of rectangle 1",
tools::isRectangle( aRect1 ));
CPPUNIT_ASSERT_MESSAGE("checking rectangle-ness of rectangle 2",
tools::isRectangle( aRect2 ));
@@ -1111,7 +1111,7 @@ public:
!tools::isRectangle( aNonRect3 ));
CPPUNIT_ASSERT_MESSAGE("checking non-rectangle-ness of polygon 4",
!tools::isRectangle( aNonRect4 ));
- CPPUNIT_ASSERT_MESSAGE("checking non-rectangle-ness of polygon 5",
+ CPPUNIT_ASSERT_MESSAGE("checking non-rectangle-ness of polygon 5",
!tools::isRectangle( aNonRect5 ));
}
@@ -1299,118 +1299,118 @@ public:
// insert your test code here.
void hslTest()
{
- CPPUNIT_ASSERT_MESSAGE("white",
+ CPPUNIT_ASSERT_MESSAGE("white",
tools::rgb2hsl(maWhite) == BColor(0,0,1));
- CPPUNIT_ASSERT_MESSAGE("black",
+ CPPUNIT_ASSERT_MESSAGE("black",
tools::rgb2hsl(maBlack) == BColor(0,0,0));
- CPPUNIT_ASSERT_MESSAGE("red",
+ CPPUNIT_ASSERT_MESSAGE("red",
tools::rgb2hsl(maRed) == BColor(0,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("green",
+ CPPUNIT_ASSERT_MESSAGE("green",
tools::rgb2hsl(maGreen) == BColor(120,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("blue",
+ CPPUNIT_ASSERT_MESSAGE("blue",
tools::rgb2hsl(maBlue) == BColor(240,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("yellow",
+ CPPUNIT_ASSERT_MESSAGE("yellow",
tools::rgb2hsl(maYellow) == BColor(60,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("magenta",
+ CPPUNIT_ASSERT_MESSAGE("magenta",
tools::rgb2hsl(maMagenta) == BColor(300,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("cyan",
+ CPPUNIT_ASSERT_MESSAGE("cyan",
tools::rgb2hsl(maCyan) == BColor(180,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("third hue case",
+ CPPUNIT_ASSERT_MESSAGE("third hue case",
tools::rgb2hsl(BColor(0,0.5,1)) == BColor(210,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("roundtrip white",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip white",
tools::hsl2rgb(tools::rgb2hsl(maWhite)) == maWhite);
- CPPUNIT_ASSERT_MESSAGE("roundtrip black",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip black",
tools::hsl2rgb(tools::rgb2hsl(maBlack)) == maBlack);
- CPPUNIT_ASSERT_MESSAGE("roundtrip red",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip red",
tools::hsl2rgb(tools::rgb2hsl(maRed)) == maRed);
- CPPUNIT_ASSERT_MESSAGE("roundtrip green",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip green",
tools::hsl2rgb(tools::rgb2hsl(maGreen)) == maGreen);
- CPPUNIT_ASSERT_MESSAGE("roundtrip blue",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip blue",
tools::hsl2rgb(tools::rgb2hsl(maBlue)) == maBlue);
- CPPUNIT_ASSERT_MESSAGE("roundtrip yellow",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip yellow",
tools::hsl2rgb(tools::rgb2hsl(maYellow)) == maYellow);
- CPPUNIT_ASSERT_MESSAGE("roundtrip magenta",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip magenta",
tools::hsl2rgb(tools::rgb2hsl(maMagenta)) == maMagenta);
- CPPUNIT_ASSERT_MESSAGE("roundtrip cyan",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip cyan",
tools::hsl2rgb(tools::rgb2hsl(maCyan)) == maCyan);
- CPPUNIT_ASSERT_MESSAGE("grey10",
+ CPPUNIT_ASSERT_MESSAGE("grey10",
tools::rgb2hsl(maWhite*.1) == BColor(0,0,.1));
- CPPUNIT_ASSERT_MESSAGE("grey90",
+ CPPUNIT_ASSERT_MESSAGE("grey90",
tools::rgb2hsl(maWhite*.9) == BColor(0,0,.9));
- CPPUNIT_ASSERT_MESSAGE("red/2",
+ CPPUNIT_ASSERT_MESSAGE("red/2",
tools::rgb2hsl(maRed*.5) == BColor(0,1,0.25));
- CPPUNIT_ASSERT_MESSAGE("green/2",
+ CPPUNIT_ASSERT_MESSAGE("green/2",
tools::rgb2hsl(maGreen*.5) == BColor(120,1,0.25));
- CPPUNIT_ASSERT_MESSAGE("blue/2",
+ CPPUNIT_ASSERT_MESSAGE("blue/2",
tools::rgb2hsl(maBlue*.5) == BColor(240,1,0.25));
- CPPUNIT_ASSERT_MESSAGE("yellow/2",
+ CPPUNIT_ASSERT_MESSAGE("yellow/2",
tools::rgb2hsl(maYellow*.5) == BColor(60,1,0.25));
- CPPUNIT_ASSERT_MESSAGE("magenta/2",
+ CPPUNIT_ASSERT_MESSAGE("magenta/2",
tools::rgb2hsl(maMagenta*.5) == BColor(300,1,0.25));
- CPPUNIT_ASSERT_MESSAGE("cyan/2",
+ CPPUNIT_ASSERT_MESSAGE("cyan/2",
tools::rgb2hsl(maCyan*.5) == BColor(180,1,0.25));
- CPPUNIT_ASSERT_MESSAGE("pastel",
+ CPPUNIT_ASSERT_MESSAGE("pastel",
tools::rgb2hsl(BColor(.75,.25,.25)) == BColor(0,.5,.5));
}
// insert your test code here.
void hsvTest()
{
- CPPUNIT_ASSERT_MESSAGE("white",
+ CPPUNIT_ASSERT_MESSAGE("white",
tools::rgb2hsv(maWhite) == BColor(0,0,1));
- CPPUNIT_ASSERT_MESSAGE("black",
+ CPPUNIT_ASSERT_MESSAGE("black",
tools::rgb2hsv(maBlack) == BColor(0,0,0));
- CPPUNIT_ASSERT_MESSAGE("red",
+ CPPUNIT_ASSERT_MESSAGE("red",
tools::rgb2hsv(maRed) == BColor(0,1,1));
- CPPUNIT_ASSERT_MESSAGE("green",
+ CPPUNIT_ASSERT_MESSAGE("green",
tools::rgb2hsv(maGreen) == BColor(120,1,1));
- CPPUNIT_ASSERT_MESSAGE("blue",
+ CPPUNIT_ASSERT_MESSAGE("blue",
tools::rgb2hsv(maBlue) == BColor(240,1,1));
- CPPUNIT_ASSERT_MESSAGE("yellow",
+ CPPUNIT_ASSERT_MESSAGE("yellow",
tools::rgb2hsv(maYellow) == BColor(60,1,1));
- CPPUNIT_ASSERT_MESSAGE("magenta",
+ CPPUNIT_ASSERT_MESSAGE("magenta",
tools::rgb2hsv(maMagenta) == BColor(300,1,1));
- CPPUNIT_ASSERT_MESSAGE("cyan",
+ CPPUNIT_ASSERT_MESSAGE("cyan",
tools::rgb2hsv(maCyan) == BColor(180,1,1));
- CPPUNIT_ASSERT_MESSAGE("roundtrip white",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip white",
tools::hsv2rgb(tools::rgb2hsv(maWhite)) == maWhite);
- CPPUNIT_ASSERT_MESSAGE("roundtrip black",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip black",
tools::hsv2rgb(tools::rgb2hsv(maBlack)) == maBlack);
- CPPUNIT_ASSERT_MESSAGE("roundtrip red",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip red",
tools::hsv2rgb(tools::rgb2hsv(maRed)) == maRed);
- CPPUNIT_ASSERT_MESSAGE("roundtrip green",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip green",
tools::hsv2rgb(tools::rgb2hsv(maGreen)) == maGreen);
- CPPUNIT_ASSERT_MESSAGE("roundtrip blue",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip blue",
tools::hsv2rgb(tools::rgb2hsv(maBlue)) == maBlue);
- CPPUNIT_ASSERT_MESSAGE("roundtrip yellow",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip yellow",
tools::hsv2rgb(tools::rgb2hsv(maYellow)) == maYellow);
- CPPUNIT_ASSERT_MESSAGE("roundtrip magenta",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip magenta",
tools::hsv2rgb(tools::rgb2hsv(maMagenta)) == maMagenta);
- CPPUNIT_ASSERT_MESSAGE("roundtrip cyan",
+ CPPUNIT_ASSERT_MESSAGE("roundtrip cyan",
tools::hsv2rgb(tools::rgb2hsv(maCyan)) == maCyan);
- CPPUNIT_ASSERT_MESSAGE("grey10",
+ CPPUNIT_ASSERT_MESSAGE("grey10",
tools::rgb2hsv(maWhite*.1) == BColor(0,0,.1));
- CPPUNIT_ASSERT_MESSAGE("grey90",
+ CPPUNIT_ASSERT_MESSAGE("grey90",
tools::rgb2hsv(maWhite*.9) == BColor(0,0,.9));
- CPPUNIT_ASSERT_MESSAGE("red/2",
+ CPPUNIT_ASSERT_MESSAGE("red/2",
tools::rgb2hsv(maRed*.5) == BColor(0,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("green/2",
+ CPPUNIT_ASSERT_MESSAGE("green/2",
tools::rgb2hsv(maGreen*.5) == BColor(120,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("blue/2",
+ CPPUNIT_ASSERT_MESSAGE("blue/2",
tools::rgb2hsv(maBlue*.5) == BColor(240,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("yellow/2",
+ CPPUNIT_ASSERT_MESSAGE("yellow/2",
tools::rgb2hsv(maYellow*.5) == BColor(60,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("magenta/2",
+ CPPUNIT_ASSERT_MESSAGE("magenta/2",
tools::rgb2hsv(maMagenta*.5) == BColor(300,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("cyan/2",
+ CPPUNIT_ASSERT_MESSAGE("cyan/2",
tools::rgb2hsv(maCyan*.5) == BColor(180,1,0.5));
- CPPUNIT_ASSERT_MESSAGE("pastel",
+ CPPUNIT_ASSERT_MESSAGE("pastel",
tools::rgb2hsv(BColor(.5,.25,.25)) == BColor(0,.5,.5));
}
@@ -1426,8 +1426,8 @@ public:
tools::rgb2ciexyz(maCyan);
}
- // Change the following lines only, if you add, remove or rename
- // member functions of the current class,
+ // Change the following lines only, if you add, remove or rename
+ // member functions of the current class,
// because these macros are need by auto register mechanism.
CPPUNIT_TEST_SUITE(bcolor);
diff --git a/basegfx/test/basegfx3d.cxx b/basegfx/test/basegfx3d.cxx
index 1233b8cd255f..ae962434a484 100644
--- a/basegfx/test/basegfx3d.cxx
+++ b/basegfx/test/basegfx3d.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/test/basegfxtools.cxx b/basegfx/test/basegfxtools.cxx
index 4811369a9e9c..49f53756c785 100644
--- a/basegfx/test/basegfxtools.cxx
+++ b/basegfx/test/basegfxtools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -99,8 +99,8 @@ public:
CPPUNIT_ASSERT_MESSAGE("0.51", nIndex==1 && fAlpha==1.0);
}
- // Change the following lines only, if you add, remove or rename
- // member functions of the current class,
+ // Change the following lines only, if you add, remove or rename
+ // member functions of the current class,
// because these macros are need by auto register mechanism.
CPPUNIT_TEST_SUITE(KeyStopLerpTest);
diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx
index 404d9b9848ac..82eddfc3ee6c 100644
--- a/basegfx/test/boxclipper.cxx
+++ b/basegfx/test/boxclipper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,7 +67,7 @@ inline double getRandomOrdinal( const ::std::size_t n )
inline bool compare(const B2DPoint& left, const B2DPoint& right)
{
- return left.getX()<right.getX()
+ return left.getX()<right.getX()
|| (left.getX()==right.getX() && left.getY()<right.getY());
}
@@ -149,7 +149,7 @@ public:
aRingIntersection2.appendElement( aWest2, ORIENTATION_NEGATIVE );
aRingIntersectExtraStrip = aRingIntersection2;
- aRingIntersectExtraStrip.appendElement( B2DRange(0, -25, 200, 25),
+ aRingIntersectExtraStrip.appendElement( B2DRange(0, -25, 200, 25),
ORIENTATION_NEGATIVE );
aComplexIntersections.appendElement( aCenter, ORIENTATION_NEGATIVE );
@@ -246,7 +246,7 @@ public:
void verifyPoly(const char* sName, const char* sSvg, const B2DPolyRange& toTest)
{
B2DPolyPolygon aTmp1;
- CPPUNIT_ASSERT_MESSAGE(sName,
+ CPPUNIT_ASSERT_MESSAGE(sName,
tools::importFromSvgD(
aTmp1,
rtl::OUString::createFromAscii(sSvg)));
@@ -301,12 +301,12 @@ public:
verifyPoly("randomIntersections", randomIntersections, aRandomIntersections);
}
- void dumpSvg(const char* pName,
+ void dumpSvg(const char* pName,
const ::basegfx::B2DPolyPolygon& rPoly)
{
(void)pName; (void)rPoly;
#if defined(VERBOSE)
- fprintf(stderr, "%s - svg:d=\"%s\"\n",
+ fprintf(stderr, "%s - svg:d=\"%s\"\n",
pName, rtl::OUStringToOString(
basegfx::tools::exportToSvgD(rPoly),
RTL_TEXTENCODING_UTF8).getStr() );
@@ -344,12 +344,12 @@ public:
rRange.getElement(i).head);
if( rRange.getElement(i).tail.head == ORIENTATION_NEGATIVE )
aRect.flip();
-
+
genericClip.append(aRect);
}
#if defined(VERBOSE)
- fprintf(stderr, "%s input - svg:d=\"%s\"\n",
+ fprintf(stderr, "%s input - svg:d=\"%s\"\n",
pName, rtl::OUStringToOString(
basegfx::tools::exportToSvgD(
genericClip),
@@ -362,7 +362,7 @@ public:
normalizePoly(
boxClipResult)));
#if defined(VERBOSE)
- fprintf(stderr, "%s boxclipper - svg:d=\"%s\"\n",
+ fprintf(stderr, "%s boxclipper - svg:d=\"%s\"\n",
pName, rtl::OUStringToOString(
boxClipSvg,
RTL_TEXTENCODING_UTF8).getStr() );
@@ -374,13 +374,13 @@ public:
normalizePoly(
genericClip)));
#if defined(VERBOSE)
- fprintf(stderr, "%s genclipper - svg:d=\"%s\"\n",
+ fprintf(stderr, "%s genclipper - svg:d=\"%s\"\n",
pName, rtl::OUStringToOString(
genericClipSvg,
RTL_TEXTENCODING_UTF8).getStr() );
#endif
- CPPUNIT_ASSERT_MESSAGE(pName,
+ CPPUNIT_ASSERT_MESSAGE(pName,
genericClipSvg == boxClipSvg);
}
@@ -396,7 +396,7 @@ public:
validatePoly("intersectionSE", aIntersectionSE);
validatePoly("intersectionSW", aIntersectionSW);
validatePoly("intersectionNW", aIntersectionNW);
- // subtle differences on Solaris Intel, comparison not smart enough
+ // subtle differences on Solaris Intel, comparison not smart enough
// (due to floating point inaccuracies)
//validatePoly("ringIntersection", aRingIntersection);
//validatePoly("ringIntersection2", aRingIntersection2);
@@ -406,14 +406,14 @@ public:
//validatePoly("randomIntersections", aRandomIntersections);
}
- // Change the following lines only, if you add, remove or rename
- // member functions of the current class,
+ // Change the following lines only, if you add, remove or rename
+ // member functions of the current class,
// because these macros are need by auto register mechanism.
CPPUNIT_TEST_SUITE(boxclipper);
CPPUNIT_TEST(validatePoly);
CPPUNIT_TEST(verifyPoly);
- CPPUNIT_TEST(getPolyPolygon);
+ CPPUNIT_TEST(getPolyPolygon);
CPPUNIT_TEST_SUITE_END();
};
diff --git a/basegfx/test/clipstate.cxx b/basegfx/test/clipstate.cxx
index f1a6b4361618..588389664058 100644
--- a/basegfx/test/clipstate.cxx
+++ b/basegfx/test/clipstate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,11 +56,11 @@ namespace basegfx2d
class clipstate : public CppUnit::TestFixture
{
private:
- tools::B2DClipState aUnion1;
- tools::B2DClipState aUnion2;
- tools::B2DClipState aIntersect;
- tools::B2DClipState aXor;
- tools::B2DClipState aSubtract;
+ tools::B2DClipState aUnion1;
+ tools::B2DClipState aUnion2;
+ tools::B2DClipState aIntersect;
+ tools::B2DClipState aXor;
+ tools::B2DClipState aSubtract;
public:
void setUp()
@@ -110,14 +110,14 @@ public:
void verifyPoly(const char* sName, const char* sSvg, const tools::B2DClipState& toTest)
{
#if defined(VERBOSE)
- fprintf(stderr, "%s - svg:d=\"%s\"\n",
+ fprintf(stderr, "%s - svg:d=\"%s\"\n",
sName, rtl::OUStringToOString(
basegfx::tools::exportToSvgD(toTest.getClipPoly()),
RTL_TEXTENCODING_UTF8).getStr() );
#endif
B2DPolyPolygon aTmp1;
- CPPUNIT_ASSERT_MESSAGE(sName,
+ CPPUNIT_ASSERT_MESSAGE(sName,
tools::importFromSvgD(
aTmp1,
rtl::OUString::createFromAscii(sSvg)));
@@ -152,7 +152,7 @@ public:
void verifyMixedClips()
{
- tools::B2DClipState aMixedClip;
+ tools::B2DClipState aMixedClip;
const char* unionSvg="m100 10v90h-90v10h-20v-10h-90v-90h-10v-20h10v-90h90v-10h20v10h90v90h10v20z";
diff --git a/basegfx/test/export.map b/basegfx/test/export.map
index 3308588ef6f8..0dbbcc5a7372 100644
--- a/basegfx/test/export.map
+++ b/basegfx/test/export.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/basegfx/test/genericclipper.cxx b/basegfx/test/genericclipper.cxx
index 8b51a37ff5be..0eb4b4b75f97 100644
--- a/basegfx/test/genericclipper.cxx
+++ b/basegfx/test/genericclipper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,8 +84,8 @@ public:
void tearDown()
{}
- void validate(const char* pName,
- const char* pValidSvgD,
+ void validate(const char* pName,
+ const char* pValidSvgD,
B2DPolyPolygon (*pFunc)(const B2DPolyPolygon&, const B2DPolyPolygon&))
{
const B2DPolyPolygon aSelfIntersect(
@@ -93,12 +93,12 @@ public:
const B2DPolyPolygon aRect(
tools::prepareForPolygonOperation(aShiftedRectangle));
#if defined(VERBOSE)
- fprintf(stderr, "%s input LHS - svg:d=\"%s\"\n",
+ fprintf(stderr, "%s input LHS - svg:d=\"%s\"\n",
pName, rtl::OUStringToOString(
basegfx::tools::exportToSvgD(
aSelfIntersect),
RTL_TEXTENCODING_UTF8).getStr() );
- fprintf(stderr, "%s input RHS - svg:d=\"%s\"\n",
+ fprintf(stderr, "%s input RHS - svg:d=\"%s\"\n",
pName, rtl::OUStringToOString(
basegfx::tools::exportToSvgD(
aRect),
@@ -109,7 +109,7 @@ public:
pFunc(aSelfIntersect, aRect);
#if defined(VERBOSE)
- fprintf(stderr, "%s - svg:d=\"%s\"\n",
+ fprintf(stderr, "%s - svg:d=\"%s\"\n",
pName, rtl::OUStringToOString(
basegfx::tools::exportToSvgD(aRes),
RTL_TEXTENCODING_UTF8).getStr() );
@@ -145,8 +145,8 @@ public:
validate("validateDiff", pValid, &tools::solvePolygonOperationDiff);
}
- // Change the following lines only, if you add, remove or rename
- // member functions of the current class,
+ // Change the following lines only, if you add, remove or rename
+ // member functions of the current class,
// because these macros are need by auto register mechanism.
CPPUNIT_TEST_SUITE(genericclipper);
diff --git a/basegfx/test/testtools.cxx b/basegfx/test/testtools.cxx
index 3b2ec3051324..1265df264c5b 100644
--- a/basegfx/test/testtools.cxx
+++ b/basegfx/test/testtools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ namespace basegfx
// mode, therefore every plot has at least _two_
// functions: one for the x and one for the y value, both
// depending on t.
- mrOutputStream << "#!/usr/bin/gnuplot -persist" << ::std::endl
+ mrOutputStream << "#!/usr/bin/gnuplot -persist" << ::std::endl
<< "#" << ::std::endl
<< "# automatically generated by basegfx::testtools::Plotter, don't change!" << ::std::endl
<< "#" << ::std::endl
@@ -96,7 +96,7 @@ namespace basegfx
public:
PointWriter( ::std::ostream& rOutputStream ) :
mrOutputStream( rOutputStream )
- {
+ {
}
void operator()( const B2DPoint& rPoint ) const
@@ -106,7 +106,7 @@ namespace basegfx
}
private:
- ::std::ostream& mrOutputStream;
+ ::std::ostream& mrOutputStream;
};
}
@@ -114,7 +114,7 @@ namespace basegfx
{
// End the plot line
mrOutputStream << ::std::endl;
-
+
// write stored data points. Cannot write before, since
// this is an inline dataset, which must be after the plot <...>
// line
@@ -127,7 +127,7 @@ namespace basegfx
if( pointCount < 1 )
return;
-
+
if( pointCount == 1 )
{
plot( rPoly.getB2DPoint(0) );
@@ -140,9 +140,9 @@ namespace basegfx
if(rPoly.isNextControlPointUsed(i) || rPoly.isPrevControlPointUsed(i + 1))
{
const B2DCubicBezier aBezierPlot(
- rPoly.getB2DPoint(i), rPoly.getNextControlPoint(i),
+ rPoly.getB2DPoint(i), rPoly.getNextControlPoint(i),
rPoly.getPrevControlPoint(i + 1), rPoly.getB2DPoint(i + 1));
-
+
plot(aBezierPlot);
}
else
@@ -177,19 +177,19 @@ namespace basegfx
// decompose into four lines
plot( B2DPoint(rRect.getMinX(),
- rRect.getMinY()),
+ rRect.getMinY()),
B2DPoint(rRect.getMaxX(),
rRect.getMinY()) );
plot( B2DPoint(rRect.getMaxX(),
- rRect.getMinY()),
+ rRect.getMinY()),
B2DPoint(rRect.getMaxX(),
rRect.getMaxY()) );
plot( B2DPoint(rRect.getMaxX(),
- rRect.getMaxY()),
+ rRect.getMaxY()),
B2DPoint(rRect.getMinX(),
rRect.getMaxY()) );
plot( B2DPoint(rRect.getMinX(),
- rRect.getMaxY()),
+ rRect.getMaxY()),
B2DPoint(rRect.getMinX(),
rRect.getMinY()) );
}
@@ -198,10 +198,10 @@ namespace basegfx
{
writeSeparator();
mrOutputStream << "line(" << rStartPoint.getX()
- << "," << rEndPoint.getX()
+ << "," << rEndPoint.getX()
<< ",t), "
<< "line(" << rStartPoint.getY()
- << "," << rEndPoint.getY()
+ << "," << rEndPoint.getY()
<< ",t)";
}
@@ -209,13 +209,13 @@ namespace basegfx
{
writeSeparator();
mrOutputStream << "cubicBezier(" << rCurve.getStartPoint().getX()
- << "," << rCurve.getControlPointA().getX()
- << "," << rCurve.getControlPointB().getX()
+ << "," << rCurve.getControlPointA().getX()
+ << "," << rCurve.getControlPointB().getX()
<< "," << rCurve.getEndPoint().getX()
<< ",t), "
<< "cubicBezier(" << rCurve.getStartPoint().getY()
- << "," << rCurve.getControlPointA().getY()
- << "," << rCurve.getControlPointB().getY()
+ << "," << rCurve.getControlPointA().getY()
+ << "," << rCurve.getControlPointB().getY()
<< "," << rCurve.getEndPoint().getY()
<< ",t)";
}
diff --git a/basegfx/test/testtools.hxx b/basegfx/test/testtools.hxx
index c355df27376a..98cf53c4af08 100644
--- a/basegfx/test/testtools.hxx
+++ b/basegfx/test/testtools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,9 +89,9 @@ namespace basegfx
private:
void writeSeparator();
- ::std::ostream& mrOutputStream;
- ::std::vector< B2DPoint > maPoints;
- bool mbFirstElement;
+ ::std::ostream& mrOutputStream;
+ ::std::vector< B2DPoint > maPoints;
+ bool mbFirstElement;
};
}
}
diff --git a/canvas/inc/canvas/base/basemutexhelper.hxx b/canvas/inc/canvas/base/basemutexhelper.hxx
index c1c7eed8455e..d53cd927aae2 100644
--- a/canvas/inc/canvas/base/basemutexhelper.hxx
+++ b/canvas/inc/canvas/base/basemutexhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ namespace canvas
}
protected:
- mutable ::osl::Mutex m_aMutex;
+ mutable ::osl::Mutex m_aMutex;
};
}
diff --git a/canvas/inc/canvas/base/bitmapcanvasbase.hxx b/canvas/inc/canvas/base/bitmapcanvasbase.hxx
index 2761b5b09f3a..234de95b62bd 100644
--- a/canvas/inc/canvas/base/bitmapcanvasbase.hxx
+++ b/canvas/inc/canvas/base/bitmapcanvasbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,42 +67,42 @@ namespace canvas
@see CanvasBase for further contractual requirements towards
the CanvasHelper type, and some examples.
*/
- template< class Base,
- class CanvasHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class BitmapCanvasBase :
+ template< class Base,
+ class CanvasHelper,
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class BitmapCanvasBase :
public CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
{
public:
- typedef CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
+ typedef CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
// XBitmapCanvas
- virtual void SAL_CALL copyRect( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
- const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
- const ::com::sun::star::rendering::ViewState& sourceViewState,
- const ::com::sun::star::rendering::RenderState& sourceRenderState,
- const ::com::sun::star::geometry::RealRectangle2D& destRect,
- const ::com::sun::star::rendering::ViewState& destViewState,
- const ::com::sun::star::rendering::RenderState& destRenderState ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL copyRect( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
+ const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
+ const ::com::sun::star::rendering::ViewState& sourceViewState,
+ const ::com::sun::star::rendering::RenderState& sourceRenderState,
+ const ::com::sun::star::geometry::RealRectangle2D& destRect,
+ const ::com::sun::star::rendering::ViewState& destViewState,
+ const ::com::sun::star::rendering::RenderState& destRenderState ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(sourceCanvas, sourceRect, sourceViewState, sourceRenderState,
- destRect, destViewState, destRenderState,
+ tools::verifyArgs(sourceCanvas, sourceRect, sourceViewState, sourceRenderState,
+ destRect, destViewState, destRenderState,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
-
+
BaseType::mbSurfaceDirty = true;
BaseType::maCanvasHelper.modifying();
- BaseType::maCanvasHelper.copyRect( this,
- sourceCanvas,
- sourceRect,
- sourceViewState,
- sourceRenderState,
- destRect,
- destViewState,
+ BaseType::maCanvasHelper.copyRect( this,
+ sourceCanvas,
+ sourceRect,
+ sourceViewState,
+ sourceRenderState,
+ destRect,
+ destViewState,
destRenderState );
}
@@ -111,7 +111,7 @@ namespace canvas
{
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
- return BaseType::maCanvasHelper.getSize();
+ return BaseType::maCanvasHelper.getSize();
}
virtual ::sal_Bool SAL_CALL hasAlpha( ) throw (::com::sun::star::uno::RuntimeException)
@@ -121,8 +121,8 @@ namespace canvas
return BaseType::maCanvasHelper.hasAlpha();
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > SAL_CALL getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
- sal_Bool beFast ) throw (::com::sun::star::uno::RuntimeException)
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > SAL_CALL getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
+ sal_Bool beFast ) throw (::com::sun::star::uno::RuntimeException)
{
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
diff --git a/canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx b/canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx
index 9e31473ba589..daaf985967fd 100644
--- a/canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx
+++ b/canvas/inc/canvas/base/bufferedgraphicdevicebase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace canvas
{
/** Helper template base class for XGraphicDevice implementations
on windows.
-
+
Use this base class if your target device is a
window. Additionally to GraphicDeviceBase, this template
provides an implementation of the awt::XWindowListener
@@ -79,14 +79,14 @@ namespace canvas
derives from multiple UNO interface (were each provides its
own version of XInterface, making the conversion ambiguous)
*/
- template< class Base,
- class DeviceHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class BufferedGraphicDeviceBase :
+ template< class Base,
+ class DeviceHelper,
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class BufferedGraphicDeviceBase :
public GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >
{
public:
- typedef GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > BaseType;
+ typedef GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase > BaseType;
typedef BufferedGraphicDeviceBase OurType;
typedef Mutex MutexType;
@@ -109,7 +109,7 @@ namespace canvas
}
// XBufferController
- virtual ::sal_Int32 SAL_CALL createBuffers( ::sal_Int32 nBuffers ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::sal_Int32 SAL_CALL createBuffers( ::sal_Int32 nBuffers ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
tools::verifyRange( nBuffers, (sal_Int32)1 );
@@ -152,7 +152,7 @@ namespace canvas
is called, with rBounds the window bound rect relative to
the frame window.
*/
- void setWindow( const ::com::sun::star::uno::Reference<
+ void setWindow( const ::com::sun::star::uno::Reference<
::com::sun::star::awt::XWindow2 >& rWindow )
{
if( mxWindow.is() )
@@ -163,7 +163,7 @@ namespace canvas
if( mxWindow.is() )
{
mbIsVisible = mxWindow->isVisible();
- mbIsTopLevel =
+ mbIsTopLevel =
::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindow >(
mxWindow,
::com::sun::star::uno::UNO_QUERY ).is();
@@ -177,7 +177,7 @@ namespace canvas
{
return mxWindow;
}
-
+
::com::sun::star::uno::Any getXWindow() const
{
return ::com::sun::star::uno::makeAny(mxWindow);
@@ -201,7 +201,7 @@ namespace canvas
}
::com::sun::star::awt::Rectangle transformBounds( const ::com::sun::star::awt::Rectangle& rBounds )
- {
+ {
// notifySizeUpdate's bounds are relative to the toplevel
// window
if( !mbIsTopLevel )
diff --git a/canvas/inc/canvas/base/cachedprimitivebase.hxx b/canvas/inc/canvas/base/cachedprimitivebase.hxx
index 3d7a22cb4940..e9ef09dff3f2 100644
--- a/canvas/inc/canvas/base/cachedprimitivebase.hxx
+++ b/canvas/inc/canvas/base/cachedprimitivebase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,17 +61,17 @@ namespace canvas
@param rTarget
The target canvas the repaint should happen on.
- @param bFailForChangedViewTransform
+ @param bFailForChangedViewTransform
When true, derived classes will never receive doRedraw()
calls with dissimilar view transformations and
bSameViewTransform set to false. This is useful for cached
objects where re-transforming the generated output is not
desirable, e.g. for hinted font output.
*/
- CachedPrimitiveBase( const ::com::sun::star::rendering::ViewState& rUsedViewState,
- const ::com::sun::star::uno::Reference<
+ CachedPrimitiveBase( const ::com::sun::star::rendering::ViewState& rUsedViewState,
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvas >& rTarget,
- bool bFailForChangedViewTransform );
+ bool bFailForChangedViewTransform );
/// Dispose all internal references
virtual void SAL_CALL disposing();
@@ -108,15 +108,15 @@ namespace canvas
@param bSameViewTransform
When true, rNewState and rOldState have the same transformation.
*/
- virtual ::sal_Int8 doRedraw( const ::com::sun::star::rendering::ViewState& rNewState,
- const ::com::sun::star::rendering::ViewState& rOldState,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvas >& rTargetCanvas,
- bool bSameViewTransform ) = 0;
-
- ::com::sun::star::rendering::ViewState maUsedViewState;
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxTarget;
- const bool mbFailForChangedViewTransform;
+ virtual ::sal_Int8 doRedraw( const ::com::sun::star::rendering::ViewState& rNewState,
+ const ::com::sun::star::rendering::ViewState& rOldState,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvas >& rTargetCanvas,
+ bool bSameViewTransform ) = 0;
+
+ ::com::sun::star::rendering::ViewState maUsedViewState;
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxTarget;
+ const bool mbFailForChangedViewTransform;
};
}
diff --git a/canvas/inc/canvas/base/canvasbase.hxx b/canvas/inc/canvas/base/canvasbase.hxx
index 204355da93c3..5af2201ab2b3 100644
--- a/canvas/inc/canvas/base/canvasbase.hxx
+++ b/canvas/inc/canvas/base/canvasbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,17 +100,17 @@ namespace canvas
derives from multiple UNO interface (were each provides its
own version of XInterface, making the conversion ambiguous)
*/
- template< class Base,
- class CanvasHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class CanvasBase :
+ template< class Base,
+ class CanvasHelper,
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class CanvasBase :
public Base
{
public:
- typedef Base BaseType;
- typedef CanvasHelper HelperType;
- typedef Mutex MutexType;
- typedef UnambiguousBase UnambiguousBaseType;
+ typedef Base BaseType;
+ typedef CanvasHelper HelperType;
+ typedef Mutex MutexType;
+ typedef UnambiguousBase UnambiguousBaseType;
/** Create CanvasBase
*/
@@ -144,12 +144,12 @@ namespace canvas
maCanvasHelper.clear();
}
- virtual void SAL_CALL drawPoint( const ::com::sun::star::geometry::RealPoint2D& aPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL drawPoint( const ::com::sun::star::geometry::RealPoint2D& aPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(aPoint, viewState, renderState,
+ tools::verifyArgs(aPoint, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -161,13 +161,13 @@ namespace canvas
maCanvasHelper.drawPoint( this, aPoint, viewState, renderState );
}
- virtual void SAL_CALL drawLine( const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL drawLine( const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(aStartPoint, aEndPoint, viewState, renderState,
+ tools::verifyArgs(aStartPoint, aEndPoint, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -179,13 +179,13 @@ namespace canvas
maCanvasHelper.drawLine( this, aStartPoint, aEndPoint, viewState, renderState );
}
- virtual void SAL_CALL drawBezier( const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL drawBezier( const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(aBezierSegment, aEndPoint, viewState, renderState,
+ tools::verifyArgs(aBezierSegment, aEndPoint, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -199,11 +199,11 @@ namespace canvas
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
drawPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xPolyPolygon, viewState, renderState,
+ tools::verifyArgs(xPolyPolygon, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -216,13 +216,13 @@ namespace canvas
}
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
- strokePolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException,
+ strokePolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xPolyPolygon, viewState, renderState, strokeAttributes,
+ tools::verifyArgs(xPolyPolygon, viewState, renderState, strokeAttributes,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -235,14 +235,14 @@ namespace canvas
}
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
- strokeTexturedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException,
+ strokeTexturedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xPolyPolygon, viewState, renderState, strokeAttributes,
+ tools::verifyArgs(xPolyPolygon, viewState, renderState, strokeAttributes,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -255,15 +255,15 @@ namespace canvas
}
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
- strokeTextureMappedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::uno::Reference< ::com::sun::star::geometry::XMapping2D >& xMapping,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException,
+ strokeTextureMappedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::geometry::XMapping2D >& xMapping,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xPolyPolygon, viewState, renderState, textures, xMapping, strokeAttributes,
+ tools::verifyArgs(xPolyPolygon, viewState, renderState, textures, xMapping, strokeAttributes,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -276,13 +276,13 @@ namespace canvas
}
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > SAL_CALL
- queryStrokeShapes( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException,
+ queryStrokeShapes( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xPolyPolygon, viewState, renderState, strokeAttributes,
+ tools::verifyArgs(xPolyPolygon, viewState, renderState, strokeAttributes,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -296,11 +296,11 @@ namespace canvas
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
fillPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xPolyPolygon, viewState, renderState,
+ tools::verifyArgs(xPolyPolygon, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -314,12 +314,12 @@ namespace canvas
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
fillTexturedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures ) throw (::com::sun::star::lang::IllegalArgumentException,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xPolyPolygon, viewState, renderState, textures,
+ tools::verifyArgs(xPolyPolygon, viewState, renderState, textures,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -332,13 +332,13 @@ namespace canvas
}
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
- fillTextureMappedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::uno::Reference< ::com::sun::star::geometry::XMapping2D >& xMapping ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
+ fillTextureMappedPolyPolygon( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::geometry::XMapping2D >& xMapping ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xPolyPolygon, viewState, renderState, textures, xMapping,
+ tools::verifyArgs(xPolyPolygon, viewState, renderState, textures, xMapping,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -352,15 +352,15 @@ namespace canvas
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL
- createFont( const ::com::sun::star::rendering::FontRequest& fontRequest,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
- const ::com::sun::star::geometry::Matrix2D& fontMatrix ) throw (::com::sun::star::lang::IllegalArgumentException,
+ createFont( const ::com::sun::star::rendering::FontRequest& fontRequest,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::geometry::Matrix2D& fontMatrix ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(fontRequest,
+ tools::verifyArgs(fontRequest,
// dummy, to keep argPos in sync
- fontRequest,
- fontMatrix,
+ fontRequest,
+ fontMatrix,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -371,11 +371,11 @@ namespace canvas
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo > SAL_CALL
- queryAvailableFonts( const ::com::sun::star::rendering::FontInfo& aFilter,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aFontProperties ) throw (::com::sun::star::lang::IllegalArgumentException,
+ queryAvailableFonts( const ::com::sun::star::rendering::FontInfo& aFilter,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aFontProperties ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(aFilter,
+ tools::verifyArgs(aFilter,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -386,17 +386,17 @@ namespace canvas
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
- drawText( const ::com::sun::star::rendering::StringContext& text,
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont >& xFont,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- sal_Int8 textDirection ) throw (::com::sun::star::lang::IllegalArgumentException,
+ drawText( const ::com::sun::star::rendering::StringContext& text,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont >& xFont,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ sal_Int8 textDirection ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xFont, viewState, renderState,
+ tools::verifyArgs(xFont, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
- tools::verifyRange( textDirection,
+ tools::verifyRange( textDirection,
::com::sun::star::rendering::TextDirection::WEAK_LEFT_TO_RIGHT,
::com::sun::star::rendering::TextDirection::STRONG_RIGHT_TO_LEFT );
@@ -411,10 +411,10 @@ namespace canvas
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
drawTextLayout( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XTextLayout >& layoutetText,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(layoutetText, viewState, renderState,
+ tools::verifyArgs(layoutetText, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -429,10 +429,10 @@ namespace canvas
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
drawBitmap( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xBitmap, viewState, renderState,
+ tools::verifyArgs(xBitmap, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -445,11 +445,11 @@ namespace canvas
}
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
- drawBitmapModulated( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
+ drawBitmapModulated( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xBitmap, viewState, renderState,
+ tools::verifyArgs(xBitmap, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -472,8 +472,8 @@ namespace canvas
protected:
~CanvasBase() {} // we're a ref-counted UNO class. _We_ destroy ourselves.
- HelperType maCanvasHelper;
- mutable bool mbSurfaceDirty;
+ HelperType maCanvasHelper;
+ mutable bool mbSurfaceDirty;
private:
CanvasBase( const CanvasBase& );
diff --git a/canvas/inc/canvas/base/canvascustomspritebase.hxx b/canvas/inc/canvas/base/canvascustomspritebase.hxx
index ec4477ab9cc9..4d00e7b7a206 100644
--- a/canvas/inc/canvas/base/canvascustomspritebase.hxx
+++ b/canvas/inc/canvas/base/canvascustomspritebase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,16 +79,16 @@ namespace canvas
@see CanvasCustomSpriteHelper for further contractual
requirements towards the SpriteHelper type, and some examples.
*/
- template< class Base,
- class SpriteHelper,
- class CanvasHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class CanvasCustomSpriteBase :
+ template< class Base,
+ class SpriteHelper,
+ class CanvasHelper,
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class CanvasCustomSpriteBase :
public IntegerBitmapBase< Base, CanvasHelper, Mutex, UnambiguousBase >
{
public:
- typedef IntegerBitmapBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
- typedef SpriteHelper SpriteHelperType;
+ typedef IntegerBitmapBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
+ typedef SpriteHelper SpriteHelperType;
CanvasCustomSpriteBase() :
maSpriteHelper()
@@ -124,16 +124,16 @@ namespace canvas
return BaseType::clear();
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
- drawBitmap( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive > SAL_CALL
+ drawBitmap( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(xBitmap, viewState, renderState,
+ tools::verifyArgs(xBitmap, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
-
+
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
maSpriteHelper.checkDrawBitmap( this, xBitmap, viewState, renderState );
@@ -152,22 +152,22 @@ namespace canvas
// functionality provided at the baseclass.
// XSprite
- virtual void SAL_CALL setAlpha( double alpha ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL setAlpha( double alpha ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
tools::verifyRange( alpha, 0.0, 1.0 );
-
+
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
maSpriteHelper.setAlpha( this, alpha );
}
- virtual void SAL_CALL move( const ::com::sun::star::geometry::RealPoint2D& aNewPos,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL move( const ::com::sun::star::geometry::RealPoint2D& aNewPos,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(aNewPos, viewState, renderState,
+ tools::verifyArgs(aNewPos, viewState, renderState,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
@@ -176,10 +176,10 @@ namespace canvas
maSpriteHelper.move( this, aNewPos, viewState, renderState );
}
- virtual void SAL_CALL transform( const ::com::sun::star::geometry::AffineMatrix2D& aTransformation ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL transform( const ::com::sun::star::geometry::AffineMatrix2D& aTransformation ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(aTransformation,
+ tools::verifyArgs(aTransformation,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
@@ -219,7 +219,7 @@ namespace canvas
}
// XCustomSprite
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > SAL_CALL
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > SAL_CALL
getContentCanvas() throw (::com::sun::star::uno::RuntimeException)
{
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
diff --git a/canvas/inc/canvas/base/canvascustomspritehelper.hxx b/canvas/inc/canvas/base/canvascustomspritehelper.hxx
index 222be8503ac6..e37e77c5ec61 100644
--- a/canvas/inc/canvas/base/canvascustomspritehelper.hxx
+++ b/canvas/inc/canvas/base/canvascustomspritehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,8 +60,8 @@ namespace canvas
@param rOwningSpriteCanvas
The XSpriteCanvas this sprite is displayed on
*/
- void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
- const SpriteSurface::Reference& rOwningSpriteCanvas );
+ void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ const SpriteSurface::Reference& rOwningSpriteCanvas );
/** Object is being disposed, release all internal references
@@ -75,24 +75,24 @@ namespace canvas
void clearingContent( const Sprite::Reference& rSprite );
/// need to call this method for XCanvas::drawBitmap(), for opacity tracking
- void checkDrawBitmap( const Sprite::Reference& rSprite,
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ void checkDrawBitmap( const Sprite::Reference& rSprite,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
// XSprite
void setAlpha( const Sprite::Reference& rSprite,
- double alpha );
- void move( const Sprite::Reference& rSprite,
- const ::com::sun::star::geometry::RealPoint2D& aNewPos,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- void transform( const Sprite::Reference& rSprite,
- const ::com::sun::star::geometry::AffineMatrix2D& aTransformation );
- void clip( const Sprite::Reference& rSprite,
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& aClip );
- void setPriority( const Sprite::Reference& rSprite,
- double nPriority );
+ double alpha );
+ void move( const Sprite::Reference& rSprite,
+ const ::com::sun::star::geometry::RealPoint2D& aNewPos,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ void transform( const Sprite::Reference& rSprite,
+ const ::com::sun::star::geometry::AffineMatrix2D& aTransformation );
+ void clip( const Sprite::Reference& rSprite,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& aClip );
+ void setPriority( const Sprite::Reference& rSprite,
+ double nPriority );
void show( const Sprite::Reference& rSprite );
void hide( const Sprite::Reference& rSprite );
@@ -105,7 +105,7 @@ namespace canvas
// redraw must be implemented by derived - non sensible default implementation
// void redraw( const Sprite::Reference& rSprite,
- // const ::basegfx::B2DPoint& rPos ) const;
+ // const ::basegfx::B2DPoint& rPos ) const;
// Helper methods for derived classes
@@ -147,7 +147,7 @@ namespace canvas
double getAlpha() const { return mfAlpha; }
/// Retrieve current clip
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D >& getClip() const { return mxClipPoly; }
const ::basegfx::B2DHomMatrix& getTransformation() const { return maTransform; }
@@ -212,7 +212,7 @@ namespace canvas
@derive Needs to be provided by backend-specific code
*/
- virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
+ virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const = 0;
/** Update clip information from current state
@@ -231,7 +231,7 @@ namespace canvas
// --------------------------------------------------------------------
/// Owning sprite canvas
- SpriteSurface::Reference mpSpriteCanvas;
+ SpriteSurface::Reference mpSpriteCanvas;
/** Currently active clip area.
@@ -239,20 +239,20 @@ namespace canvas
clip shows the full sprite content, or contains a
rectangular subarea of the sprite, outside of which
the sprite content is fully clipped.
-
+
@see mbIsCurrClipRectangle
*/
- ::basegfx::B2DRange maCurrClipBounds;
+ ::basegfx::B2DRange maCurrClipBounds;
// sprite state
- ::basegfx::B2DPoint maPosition;
- ::basegfx::B2DVector maSize;
- ::basegfx::B2DHomMatrix maTransform;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D > mxClipPoly;
+ ::basegfx::B2DPoint maPosition;
+ ::basegfx::B2DVector maSize;
+ ::basegfx::B2DHomMatrix maTransform;
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D > mxClipPoly;
double mfPriority;
- double mfAlpha;
- bool mbActive; // true, if not hidden
+ double mfAlpha;
+ bool mbActive; // true, if not hidden
/** If true, denotes that the current sprite clip is a true
rectangle, i.e. maCurrClipBounds <em>exactly</em>
@@ -260,7 +260,7 @@ namespace canvas
@see maCurrClipBounds
*/
- bool mbIsCurrClipRectangle;
+ bool mbIsCurrClipRectangle;
/** Redraw speedup.
@@ -269,7 +269,7 @@ namespace canvas
neither have to take alpha into account, nor prepare any
background for the sprite area.
*/
- mutable bool mbIsContentFullyOpaque;
+ mutable bool mbIsContentFullyOpaque;
/// True, iff mfAlpha has changed
mutable bool mbAlphaDirty;
diff --git a/canvas/inc/canvas/base/doublebitmapbase.hxx b/canvas/inc/canvas/base/doublebitmapbase.hxx
index 7059a6e63623..912ef2c193b4 100644
--- a/canvas/inc/canvas/base/doublebitmapbase.hxx
+++ b/canvas/inc/canvas/base/doublebitmapbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,19 +68,19 @@ namespace canvas
@see CanvasBase for further contractual requirements towards
the CanvasHelper type, and some examples.
*/
- template< class Base,
- class CanvasHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class DoubleBitmapBase :
+ template< class Base,
+ class CanvasHelper,
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class DoubleBitmapBase :
public BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
{
public:
- typedef BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
+ typedef BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
// XIeeeDoubleBitmap
- virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getData( ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IndexOutOfBoundsException,
- ::com::sun::star::rendering::VolatileContentDestroyedException,
+ virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getData( ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IndexOutOfBoundsException,
+ ::com::sun::star::rendering::VolatileContentDestroyedException,
::com::sun::star::uno::RuntimeException)
{
verifyInput(rect, this);
@@ -92,9 +92,9 @@ namespace canvas
rect );
}
- virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< double >& data,
- const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< double >& data,
+ const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::IndexOutOfBoundsException,
::com::sun::star::uno::RuntimeException)
{
@@ -109,10 +109,10 @@ namespace canvas
BaseType::maCanvasHelper.setData( data, bitmapLayout, rect );
}
- virtual void SAL_CALL setPixel( const ::com::sun::star::uno::Sequence< double >& color,
- const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::IndexOutOfBoundsException,
+ virtual void SAL_CALL setPixel( const ::com::sun::star::uno::Sequence< double >& color,
+ const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::lang::IndexOutOfBoundsException,
::com::sun::star::uno::RuntimeException)
{
verifyInput(bitmapLayout, pos, this);
@@ -126,9 +126,9 @@ namespace canvas
BaseType::maCanvasHelper.setPixel( color, bitmapLayout, pos );
}
- virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getPixel( ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IndexOutOfBoundsException,
- ::com::sun::star::rendering::VolatileContentDestroyedException,
+ virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getPixel( ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IndexOutOfBoundsException,
+ ::com::sun::star::rendering::VolatileContentDestroyedException,
::com::sun::star::uno::RuntimeException)
{
verifyInput(pos, this);
diff --git a/canvas/inc/canvas/base/floatbitmapbase.hxx b/canvas/inc/canvas/base/floatbitmapbase.hxx
index cafcdf5dc8b6..b566697f87a3 100644
--- a/canvas/inc/canvas/base/floatbitmapbase.hxx
+++ b/canvas/inc/canvas/base/floatbitmapbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,22 +68,22 @@ namespace canvas
@see CanvasBase for further contractual requirements towards
the CanvasHelper type, and some examples.
*/
- template< class Base,
- class CanvasHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class FloatBitmapBase :
+ template< class Base,
+ class CanvasHelper,
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class FloatBitmapBase :
public BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
{
public:
- typedef BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
+ typedef BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
// XIeeeFloatBitmap
- virtual ::com::sun::star::uno::Sequence< float > SAL_CALL getData( ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IndexOutOfBoundsException,
- ::com::sun::star::rendering::VolatileContentDestroyedException,
+ virtual ::com::sun::star::uno::Sequence< float > SAL_CALL getData( ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IndexOutOfBoundsException,
+ ::com::sun::star::rendering::VolatileContentDestroyedException,
::com::sun::star::uno::RuntimeException)
{
- verifyInput(rect,
+ verifyInput(rect,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
verifyIndexRange(rect, getSize() );
@@ -93,13 +93,13 @@ namespace canvas
rect );
}
- virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< float >& data,
- const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< float >& data,
+ const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::lang::IndexOutOfBoundsException,
::com::sun::star::uno::RuntimeException)
{
- verifyInput(bitmapLayout, rect,
+ verifyInput(bitmapLayout, rect,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
verifyIndexRange(rect, getSize() );
@@ -111,13 +111,13 @@ namespace canvas
BaseType::maCanvasHelper.setData( data, bitmapLayout, rect );
}
- virtual void SAL_CALL setPixel( const ::com::sun::star::uno::Sequence< float >& color,
- const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::IndexOutOfBoundsException,
+ virtual void SAL_CALL setPixel( const ::com::sun::star::uno::Sequence< float >& color,
+ const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::lang::IndexOutOfBoundsException,
::com::sun::star::uno::RuntimeException)
{
- verifyInput(bitmapLayout, pos,
+ verifyInput(bitmapLayout, pos,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
verifyIndexRange(pos, getSize() );
@@ -129,12 +129,12 @@ namespace canvas
BaseType::maCanvasHelper.setPixel( color, bitmapLayout, pos );
}
- virtual ::com::sun::star::uno::Sequence< float > SAL_CALL getPixel( ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IndexOutOfBoundsException,
- ::com::sun::star::rendering::VolatileContentDestroyedException,
+ virtual ::com::sun::star::uno::Sequence< float > SAL_CALL getPixel( ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IndexOutOfBoundsException,
+ ::com::sun::star::rendering::VolatileContentDestroyedException,
::com::sun::star::uno::RuntimeException)
{
- verifyInput(pos,
+ verifyInput(pos,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
verifyIndexRange(pos, getSize() );
diff --git a/canvas/inc/canvas/base/graphicdevicebase.hxx b/canvas/inc/canvas/base/graphicdevicebase.hxx
index 62424e4cdabd..54c8fcde0665 100644
--- a/canvas/inc/canvas/base/graphicdevicebase.hxx
+++ b/canvas/inc/canvas/base/graphicdevicebase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@
namespace canvas
{
/** Helper template base class for XGraphicDevice implementations.
-
+
This base class provides partial implementations of the
XGraphicDevice-related interface, such as XColorSpace.
@@ -106,17 +106,17 @@ namespace canvas
derives from multiple UNO interface (were each provides its
own version of XInterface, making the conversion ambiguous)
*/
- template< class Base,
+ template< class Base,
class DeviceHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class GraphicDeviceBase :
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class GraphicDeviceBase :
public Base
{
public:
- typedef Base BaseType;
- typedef DeviceHelper DeviceHelperType;
- typedef Mutex MutexType;
- typedef UnambiguousBase UnambiguousBaseType;
+ typedef Base BaseType;
+ typedef DeviceHelper DeviceHelperType;
+ typedef Mutex MutexType;
+ typedef UnambiguousBase UnambiguousBaseType;
typedef GraphicDeviceBase ThisType;
typedef ::rtl::Reference< GraphicDeviceBase > Reference;
@@ -133,15 +133,15 @@ namespace canvas
("DeviceHandle",
boost::bind(&DeviceHelper::getDeviceHandle,
boost::ref(maDeviceHelper)))
- ("SurfaceHandle",
+ ("SurfaceHandle",
boost::bind(&DeviceHelper::getSurfaceHandle,
boost::ref(maDeviceHelper)))
- ("DumpScreenContent",
+ ("DumpScreenContent",
boost::bind(&ThisType::getDumpScreenContent,
this),
boost::bind(&ThisType::setDumpScreenContent,
this,
- _1)));
+ _1)));
}
#if defined __SUNPRO_CC
@@ -198,10 +198,10 @@ namespace canvas
return maDeviceHelper.createCompatibleBezierPolyPolygon( this, points );
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > SAL_CALL createCompatibleBitmap( const ::com::sun::star::geometry::IntegerSize2D& size ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > SAL_CALL createCompatibleBitmap( const ::com::sun::star::geometry::IntegerSize2D& size ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyBitmapSize(size,
+ tools::verifyBitmapSize(size,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -210,10 +210,10 @@ namespace canvas
return maDeviceHelper.createCompatibleBitmap( this, size );
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > SAL_CALL createVolatileBitmap( const ::com::sun::star::geometry::IntegerSize2D& size ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > SAL_CALL createVolatileBitmap( const ::com::sun::star::geometry::IntegerSize2D& size ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyBitmapSize(size,
+ tools::verifyBitmapSize(size,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -222,10 +222,10 @@ namespace canvas
return maDeviceHelper.createVolatileBitmap( this, size );
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > SAL_CALL createCompatibleAlphaBitmap( const ::com::sun::star::geometry::IntegerSize2D& size ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > SAL_CALL createCompatibleAlphaBitmap( const ::com::sun::star::geometry::IntegerSize2D& size ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyBitmapSize(size,
+ tools::verifyBitmapSize(size,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -234,10 +234,10 @@ namespace canvas
return maDeviceHelper.createCompatibleAlphaBitmap( this, size );
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > SAL_CALL createVolatileAlphaBitmap( const ::com::sun::star::geometry::IntegerSize2D& size ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > SAL_CALL createVolatileAlphaBitmap( const ::com::sun::star::geometry::IntegerSize2D& size ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyBitmapSize(size,
+ tools::verifyBitmapSize(size,
BOOST_CURRENT_FUNCTION,
static_cast< UnambiguousBaseType* >(this));
@@ -278,7 +278,7 @@ namespace canvas
{
return ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XParametricPolyPolygon2D >(
ParametricPolyPolygon::create(this,
- aServiceSpecifier,
+ aServiceSpecifier,
Arguments));
}
@@ -305,28 +305,28 @@ namespace canvas
return maPropHelper.getPropertySetInfo();
}
- virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
- const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::beans::PropertyVetoException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
+ const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::beans::PropertyVetoException,
+ ::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException)
{
MutexType aGuard( BaseType::m_aMutex );
maPropHelper.setPropertyValue( aPropertyName, aValue );
}
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& aPropertyName ) throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& aPropertyName ) throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException)
{
MutexType aGuard( BaseType::m_aMutex );
return maPropHelper.getPropertyValue( aPropertyName );
}
- virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException)
{
MutexType aGuard( BaseType::m_aMutex );
@@ -334,9 +334,9 @@ namespace canvas
xListener );
}
- virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException)
{
MutexType aGuard( BaseType::m_aMutex );
@@ -344,9 +344,9 @@ namespace canvas
xListener );
}
- virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& aPropertyName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& aPropertyName,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException)
{
MutexType aGuard( BaseType::m_aMutex );
@@ -354,9 +354,9 @@ namespace canvas
xListener );
}
- virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& aPropertyName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& aPropertyName,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException)
{
MutexType aGuard( BaseType::m_aMutex );
diff --git a/canvas/inc/canvas/base/integerbitmapbase.hxx b/canvas/inc/canvas/base/integerbitmapbase.hxx
index bf5476c2085f..761ebcfb4d61 100644
--- a/canvas/inc/canvas/base/integerbitmapbase.hxx
+++ b/canvas/inc/canvas/base/integerbitmapbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,20 +68,20 @@ namespace canvas
@see CanvasBase for further contractual requirements towards
the CanvasHelper type, and some examples.
*/
- template< class Base,
- class CanvasHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class IntegerBitmapBase :
+ template< class Base,
+ class CanvasHelper,
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class IntegerBitmapBase :
public BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
{
public:
- typedef BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
+ typedef BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
// XIntegerBitmap
- virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(rect,
+ tools::verifyArgs(rect,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
tools::verifyIndexRange(rect, BaseType::getSize() );
@@ -92,11 +92,11 @@ namespace canvas
rect );
}
- virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ virtual void SAL_CALL setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerRectangle2D& rect ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(bitmapLayout, rect,
+ tools::verifyArgs(bitmapLayout, rect,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
tools::verifyIndexRange(rect, BaseType::getSize() );
@@ -109,11 +109,11 @@ namespace canvas
BaseType::maCanvasHelper.setData( data, bitmapLayout, rect );
}
- virtual void SAL_CALL setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
+ virtual void SAL_CALL setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(bitmapLayout, pos,
+ tools::verifyArgs(bitmapLayout, pos,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
tools::verifyIndexRange(pos, BaseType::getSize() );
@@ -129,7 +129,7 @@ namespace canvas
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerPoint2D& pos ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::rendering::VolatileContentDestroyedException, ::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(pos,
+ tools::verifyArgs(pos,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
tools::verifyIndexRange(pos, BaseType::getSize() );
diff --git a/canvas/inc/canvas/base/sprite.hxx b/canvas/inc/canvas/base/sprite.hxx
index bb3d655bb2e7..28c9be6a5d59 100644
--- a/canvas/inc/canvas/base/sprite.hxx
+++ b/canvas/inc/canvas/base/sprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,9 +48,9 @@ namespace canvas
be XInterface - reference holders to a Sprite must be able to
control lifetime of reference target)
*/
-
+
/** Helper interface to connect SpriteCanvas with various
- sprite implementations.
+ sprite implementations.
This interface should be implemented from every sprite class,
as it provides essential repaint and update area facilitates.
@@ -110,8 +110,8 @@ namespace canvas
{
const double nPrioL( rLHS->getPriority() );
const double nPrioR( rRHS->getPriority() );
-
- // if prios are equal, tie-break on ptr value
+
+ // if prios are equal, tie-break on ptr value
return nPrioL == nPrioR ? rLHS.get() < rRHS.get() : nPrioL < nPrioR;
}
};
diff --git a/canvas/inc/canvas/base/spritecanvasbase.hxx b/canvas/inc/canvas/base/spritecanvasbase.hxx
index 1cf255fe5579..d44bf425d4de 100644
--- a/canvas/inc/canvas/base/spritecanvasbase.hxx
+++ b/canvas/inc/canvas/base/spritecanvasbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,15 +71,15 @@ namespace canvas
@see CanvasBase for further contractual requirements towards
the CanvasHelper type, and some examples.
*/
- template< class Base,
- class CanvasHelper,
- class Mutex=::osl::MutexGuard,
- class UnambiguousBase=::com::sun::star::uno::XInterface > class SpriteCanvasBase :
+ template< class Base,
+ class CanvasHelper,
+ class Mutex=::osl::MutexGuard,
+ class UnambiguousBase=::com::sun::star::uno::XInterface > class SpriteCanvasBase :
public IntegerBitmapBase< Base, CanvasHelper, Mutex, UnambiguousBase >
{
public:
- typedef IntegerBitmapBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
- typedef ::rtl::Reference< SpriteCanvasBase > Reference;
+ typedef IntegerBitmapBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType;
+ typedef ::rtl::Reference< SpriteCanvasBase > Reference;
SpriteCanvasBase() :
maRedrawManager()
@@ -100,56 +100,56 @@ namespace canvas
}
// XSpriteCanvas
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > SAL_CALL createSpriteFromAnimation( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimation >& animation ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > SAL_CALL createSpriteFromAnimation( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimation >& animation ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(animation,
+ tools::verifyArgs(animation,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
-
+
return BaseType::maCanvasHelper.createSpriteFromAnimation(animation);
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > SAL_CALL createSpriteFromBitmaps( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
- sal_Int8 interpolationMode ) throw (::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::rendering::VolatileContentDestroyedException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > SAL_CALL createSpriteFromBitmaps( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
+ sal_Int8 interpolationMode ) throw (::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::rendering::VolatileContentDestroyedException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(animationBitmaps,
+ tools::verifyArgs(animationBitmaps,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
- tools::verifyRange( interpolationMode,
+ tools::verifyRange( interpolationMode,
::com::sun::star::rendering::InterpolationMode::NEAREST_NEIGHBOR,
::com::sun::star::rendering::InterpolationMode::BEZIERSPLINE4 );
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
-
+
return BaseType::maCanvasHelper.createSpriteFromBitmaps(animationBitmaps, interpolationMode);
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCustomSprite > SAL_CALL createCustomSprite( const ::com::sun::star::geometry::RealSize2D& spriteSize ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCustomSprite > SAL_CALL createCustomSprite( const ::com::sun::star::geometry::RealSize2D& spriteSize ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifySpriteSize(spriteSize,
+ tools::verifySpriteSize(spriteSize,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
-
+
return BaseType::maCanvasHelper.createCustomSprite(spriteSize);
}
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite > SAL_CALL createClonedSprite( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite >& original ) throw (::com::sun::star::lang::IllegalArgumentException,
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite > SAL_CALL createClonedSprite( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite >& original ) throw (::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException)
{
- tools::verifyArgs(original,
+ tools::verifyArgs(original,
BOOST_CURRENT_FUNCTION,
static_cast< typename BaseType::UnambiguousBaseType* >(this));
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
-
+
return BaseType::maCanvasHelper.createClonedSprite(original);
}
@@ -172,10 +172,10 @@ namespace canvas
maRedrawManager.hideSprite( rSprite );
}
- virtual void moveSprite( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rOldPos,
- const ::basegfx::B2DPoint& rNewPos,
- const ::basegfx::B2DVector& rSpriteSize )
+ virtual void moveSprite( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rOldPos,
+ const ::basegfx::B2DPoint& rNewPos,
+ const ::basegfx::B2DVector& rSpriteSize )
{
OSL_ASSERT( rSprite.is() );
@@ -184,9 +184,9 @@ namespace canvas
maRedrawManager.moveSprite( rSprite, rOldPos, rNewPos, rSpriteSize );
}
- virtual void updateSprite( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rPos,
- const ::basegfx::B2DRange& rUpdateArea )
+ virtual void updateSprite( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rPos,
+ const ::basegfx::B2DRange& rUpdateArea )
{
OSL_ASSERT( rSprite.is() );
diff --git a/canvas/inc/canvas/base/spritesurface.hxx b/canvas/inc/canvas/base/spritesurface.hxx
index c60099f1563b..cd66f4369581 100644
--- a/canvas/inc/canvas/base/spritesurface.hxx
+++ b/canvas/inc/canvas/base/spritesurface.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
namespace canvas
{
/* Definition of the SpriteSurface interface */
-
+
/** Canvas surface containing sprites
Every canvas surface that contains sprites must implement this
@@ -54,20 +54,20 @@ namespace canvas
virtual void hideSprite( const Sprite::Reference& rSprite ) = 0;
/// Sprites should call this from XSprite::move()
- virtual void moveSprite( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rOldPos,
- const ::basegfx::B2DPoint& rNewPos,
- const ::basegfx::B2DVector& rSpriteSize ) = 0;
+ virtual void moveSprite( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rOldPos,
+ const ::basegfx::B2DPoint& rNewPos,
+ const ::basegfx::B2DVector& rSpriteSize ) = 0;
/** Sprites should call this when some part of the content has
- changed.
+ changed.
That includes show/hide, i.e. for show, both showSprite()
and updateSprite() must be called.
*/
- virtual void updateSprite( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rPos,
- const ::basegfx::B2DRange& rUpdateArea ) = 0;
+ virtual void updateSprite( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rPos,
+ const ::basegfx::B2DRange& rUpdateArea ) = 0;
};
}
diff --git a/canvas/inc/canvas/canvastools.hxx b/canvas/inc/canvas/canvastools.hxx
index 215209f4b0da..bd1b20edda8d 100644
--- a/canvas/inc/canvas/canvastools.hxx
+++ b/canvas/inc/canvas/canvastools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ namespace basegfx
class B2DPolyPolygon;
}
-namespace com { namespace sun { namespace star { namespace geometry
+namespace com { namespace sun { namespace star { namespace geometry
{
struct RealSize2D;
struct IntegerSize2D;
@@ -61,7 +61,7 @@ namespace com { namespace sun { namespace star { namespace geometry
struct Matrix2D;
} } } }
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
struct RenderState;
struct ViewState;
@@ -71,14 +71,14 @@ namespace com { namespace sun { namespace star { namespace rendering
class XIntegerBitmapColorSpace;
class XPolyPolygon2D;
- bool operator==( const RenderState& rLHS,
+ bool operator==( const RenderState& rLHS,
const RenderState& rRHS );
-
+
bool operator==( const ViewState& rLHS,
- const ViewState& rRHS );
+ const ViewState& rRHS );
} } } }
-namespace com { namespace sun { namespace star { namespace awt
+namespace com { namespace sun { namespace star { namespace awt
{
struct Rectangle;
class XWindow2;
@@ -160,65 +160,65 @@ namespace canvas
// View- and RenderState utilities
// ===================================================================
- ::com::sun::star::rendering::RenderState&
- initRenderState( ::com::sun::star::rendering::RenderState& renderState );
-
- ::com::sun::star::rendering::ViewState&
- initViewState( ::com::sun::star::rendering::ViewState& viewState );
-
- ::basegfx::B2DHomMatrix&
- getViewStateTransform( ::basegfx::B2DHomMatrix& transform,
- const ::com::sun::star::rendering::ViewState& viewState );
-
- ::com::sun::star::rendering::ViewState&
- setViewStateTransform( ::com::sun::star::rendering::ViewState& viewState,
- const ::basegfx::B2DHomMatrix& transform );
-
- ::basegfx::B2DHomMatrix&
- getRenderStateTransform( ::basegfx::B2DHomMatrix& transform,
- const ::com::sun::star::rendering::RenderState& renderState );
-
- ::com::sun::star::rendering::RenderState&
- setRenderStateTransform( ::com::sun::star::rendering::RenderState& renderState,
- const ::basegfx::B2DHomMatrix& transform );
-
- ::com::sun::star::rendering::ViewState&
- appendToViewState( ::com::sun::star::rendering::ViewState& viewState,
- const ::basegfx::B2DHomMatrix& transform );
-
- ::com::sun::star::rendering::RenderState&
- appendToRenderState( ::com::sun::star::rendering::RenderState& renderState,
- const ::basegfx::B2DHomMatrix& transform );
-
- ::com::sun::star::rendering::ViewState&
- prependToViewState( ::com::sun::star::rendering::ViewState& viewState,
- const ::basegfx::B2DHomMatrix& transform );
-
- ::com::sun::star::rendering::RenderState&
- prependToRenderState( ::com::sun::star::rendering::RenderState& renderState,
- const ::basegfx::B2DHomMatrix& transform );
+ ::com::sun::star::rendering::RenderState&
+ initRenderState( ::com::sun::star::rendering::RenderState& renderState );
- ::basegfx::B2DHomMatrix&
- mergeViewAndRenderTransform( ::basegfx::B2DHomMatrix& transform,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::rendering::ViewState&
+ initViewState( ::com::sun::star::rendering::ViewState& viewState );
+ ::basegfx::B2DHomMatrix&
+ getViewStateTransform( ::basegfx::B2DHomMatrix& transform,
+ const ::com::sun::star::rendering::ViewState& viewState );
+
::com::sun::star::rendering::ViewState&
- mergeViewAndRenderState( ::com::sun::star::rendering::ViewState& resultViewState,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvas >& xCanvas );
+ setViewStateTransform( ::com::sun::star::rendering::ViewState& viewState,
+ const ::basegfx::B2DHomMatrix& transform );
+
+ ::basegfx::B2DHomMatrix&
+ getRenderStateTransform( ::basegfx::B2DHomMatrix& transform,
+ const ::com::sun::star::rendering::RenderState& renderState );
+
+ ::com::sun::star::rendering::RenderState&
+ setRenderStateTransform( ::com::sun::star::rendering::RenderState& renderState,
+ const ::basegfx::B2DHomMatrix& transform );
+
+ ::com::sun::star::rendering::ViewState&
+ appendToViewState( ::com::sun::star::rendering::ViewState& viewState,
+ const ::basegfx::B2DHomMatrix& transform );
+
+ ::com::sun::star::rendering::RenderState&
+ appendToRenderState( ::com::sun::star::rendering::RenderState& renderState,
+ const ::basegfx::B2DHomMatrix& transform );
+
+ ::com::sun::star::rendering::ViewState&
+ prependToViewState( ::com::sun::star::rendering::ViewState& viewState,
+ const ::basegfx::B2DHomMatrix& transform );
+
+ ::com::sun::star::rendering::RenderState&
+ prependToRenderState( ::com::sun::star::rendering::RenderState& renderState,
+ const ::basegfx::B2DHomMatrix& transform );
+
+ ::basegfx::B2DHomMatrix&
+ mergeViewAndRenderTransform( ::basegfx::B2DHomMatrix& transform,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+
+ ::com::sun::star::rendering::ViewState&
+ mergeViewAndRenderState( ::com::sun::star::rendering::ViewState& resultViewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvas >& xCanvas );
// Matrix utilities
// ===================================================================
- ::com::sun::star::geometry::AffineMatrix2D&
- setIdentityAffineMatrix2D( ::com::sun::star::geometry::AffineMatrix2D& matrix );
+ ::com::sun::star::geometry::AffineMatrix2D&
+ setIdentityAffineMatrix2D( ::com::sun::star::geometry::AffineMatrix2D& matrix );
- ::com::sun::star::geometry::Matrix2D&
- setIdentityMatrix2D( ::com::sun::star::geometry::Matrix2D& matrix );
+ ::com::sun::star::geometry::Matrix2D&
+ setIdentityMatrix2D( ::com::sun::star::geometry::Matrix2D& matrix );
// Special utilities
@@ -243,9 +243,9 @@ namespace canvas
@return a reference to the resulting rectangle
*/
- ::basegfx::B2DRange& calcTransformedRectBounds( ::basegfx::B2DRange& o_Rect,
- const ::basegfx::B2DRange& i_Rect,
- const ::basegfx::B2DHomMatrix& i_Transformation );
+ ::basegfx::B2DRange& calcTransformedRectBounds( ::basegfx::B2DRange& o_Rect,
+ const ::basegfx::B2DRange& i_Rect,
+ const ::basegfx::B2DHomMatrix& i_Transformation );
/** Calc a transform that maps one rectangle on top of
another.
@@ -283,11 +283,11 @@ namespace canvas
@see calcTransformedRectBounds()
*/
- ::basegfx::B2DHomMatrix& calcRectToRectTransform( ::basegfx::B2DHomMatrix& o_transform,
- const ::basegfx::B2DRange& i_destRect,
- const ::basegfx::B2DRange& i_srcRect,
- const ::basegfx::B2DHomMatrix& i_transformation );
-
+ ::basegfx::B2DHomMatrix& calcRectToRectTransform( ::basegfx::B2DHomMatrix& o_transform,
+ const ::basegfx::B2DRange& i_destRect,
+ const ::basegfx::B2DRange& i_srcRect,
+ const ::basegfx::B2DHomMatrix& i_transformation );
+
/** Calc a transform that maps the upper, left corner of a
rectangle to the origin.
@@ -315,10 +315,10 @@ namespace canvas
@see calcRectToRectTransform()
@see calcTransformedRectBounds()
*/
- ::basegfx::B2DHomMatrix& calcRectToOriginTransform( ::basegfx::B2DHomMatrix& o_transform,
- const ::basegfx::B2DRange& i_srcRect,
- const ::basegfx::B2DHomMatrix& i_transformation );
-
+ ::basegfx::B2DHomMatrix& calcRectToOriginTransform( ::basegfx::B2DHomMatrix& o_transform,
+ const ::basegfx::B2DRange& i_srcRect,
+ const ::basegfx::B2DHomMatrix& i_transformation );
+
/** Check whether a given rectangle is within another
transformed rectangle.
@@ -339,9 +339,9 @@ namespace canvas
@param rTransformation
This transformation is applied to rTransformRect
*/
- bool isInside( const ::basegfx::B2DRange& rContainedRect,
- const ::basegfx::B2DRange& rTransformRect,
- const ::basegfx::B2DHomMatrix& rTransformation );
+ bool isInside( const ::basegfx::B2DRange& rContainedRect,
+ const ::basegfx::B2DRange& rTransformRect,
+ const ::basegfx::B2DHomMatrix& rTransformation );
/** Clip a scroll to the given bound rect
@@ -417,14 +417,14 @@ namespace canvas
::basegfx::B2IRange spritePixelAreaFromB2DRange( const ::basegfx::B2DRange& rRange );
/** Retrieve various internal properties of the actual canvas implementation.
-
+
This method retrieves a bunch of internal, implementation-
and platform-dependent values from the canvas
implementation. Among them are for example operating
system window handles. The actual layout and content of
the returned sequence is dependent on the component
implementation, undocumented and subject to change.
-
+
@param i_rxCanvas
Input parameter, the canvas representation for which the device information
is to be retrieveds
@@ -434,7 +434,7 @@ namespace canvas
@return A reference to the resulting sequence of parameters
*/
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& getDeviceInfo(
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& getDeviceInfo(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas >& i_rxCanvas,
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& o_rxParams );
@@ -450,7 +450,7 @@ namespace canvas
Use this method for dead-simple bitmap implementations,
that map all their formats to 8888 RGBA color.
*/
- ::com::sun::star::rendering::IntegerBitmapLayout getStdMemoryLayout(
+ ::com::sun::star::rendering::IntegerBitmapLayout getStdMemoryLayout(
const ::com::sun::star::geometry::IntegerSize2D& rBitmapSize );
/// Convert standard 8888 RGBA color to vcl color
@@ -475,14 +475,14 @@ namespace canvas
typedef ::std::numeric_limits< Source > SourceLimits;
typedef ::std::numeric_limits< Target > TargetLimits;
- if( ( arg<0 && !TargetLimits::is_signed) || // loosing the sign here
- ( SourceLimits::is_signed && arg<TargetLimits::min()) || // underflow will happen
- ( arg>TargetLimits::max() ) ) // overflow will happen
+ if( ( arg<0 && !TargetLimits::is_signed) || // loosing the sign here
+ ( SourceLimits::is_signed && arg<TargetLimits::min()) || // underflow will happen
+ ( arg>TargetLimits::max() ) ) // overflow will happen
{
#if defined(VERBOSE) && defined(DBG_UTIL)
OSL_TRACE("numeric_cast detected data loss");
#endif
- throw ::com::sun::star::uno::RuntimeException(
+ throw ::com::sun::star::uno::RuntimeException(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "numeric_cast detected data loss" )),
NULL );
}
@@ -490,7 +490,7 @@ namespace canvas
return static_cast<Target>(arg);
}
- ::com::sun::star::awt::Rectangle getAbsoluteWindowRect(
+ ::com::sun::star::awt::Rectangle getAbsoluteWindowRect(
const ::com::sun::star::awt::Rectangle& rRect,
const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow2 >& xWin );
@@ -506,7 +506,7 @@ namespace canvas
for smooth gradient color differences
*/
int calcGradientStepCount( ::basegfx::B2DHomMatrix& rTotalTransform,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::Texture& texture,
int nColorSteps );
@@ -528,8 +528,8 @@ namespace canvas
public:
struct MapEntry
{
- const char* maKey;
- ValueType maValue;
+ const char* maKey;
+ ValueType maValue;
};
/** Create a ValueMap for the given array of MapEntries.
@@ -549,18 +549,18 @@ namespace canvas
or not. When bCaseSensitive is false, all MapEntry strings
must be lowercase!
*/
- ValueMap( const MapEntry* pMap,
- ::std::size_t nEntries,
- bool bCaseSensitive ) :
+ ValueMap( const MapEntry* pMap,
+ ::std::size_t nEntries,
+ bool bCaseSensitive ) :
mpMap( pMap ),
mnEntries( nEntries ),
mbCaseSensitive( bCaseSensitive )
{
-#ifdef DBG_UTIL
+#ifdef DBG_UTIL
// Ensure that map entries are sorted (and all lowercase, if this
// map is case insensitive)
const ::rtl::OString aStr( pMap->maKey );
- if( !mbCaseSensitive &&
+ if( !mbCaseSensitive &&
aStr != aStr.toAsciiLowerCase() )
{
OSL_TRACE("ValueMap::ValueMap(): Key %s is not lowercase",
@@ -581,9 +581,9 @@ namespace canvas
OSL_ENSURE( false,
"ValueMap::ValueMap(): Map is not sorted" );
}
-
+
const ::rtl::OString aStr2( pMap[1].maKey );
- if( !mbCaseSensitive &&
+ if( !mbCaseSensitive &&
aStr2 != aStr2.toAsciiLowerCase() )
{
OSL_TRACE("ValueMap::ValueMap(): Key %s is not lowercase",
@@ -610,21 +610,21 @@ namespace canvas
@return true, if a matching entry was found.
*/
bool lookup( const ::rtl::OUString& rName,
- ValueType& o_rResult ) const
+ ValueType& o_rResult ) const
{
// rName is required to contain only ASCII characters.
// TODO(Q1): Enforce this at upper layers
::rtl::OString aKey( ::rtl::OUStringToOString( mbCaseSensitive ? rName : rName.toAsciiLowerCase(),
RTL_TEXTENCODING_ASCII_US ) );
- MapEntry aSearchKey =
- {
- aKey.getStr(),
+ MapEntry aSearchKey =
+ {
+ aKey.getStr(),
ValueType()
};
const MapEntry* pRes;
const MapEntry* pEnd = mpMap+mnEntries;
- if( (pRes=::std::lower_bound( mpMap,
+ if( (pRes=::std::lower_bound( mpMap,
pEnd,
aSearchKey,
&mapComparator )) != pEnd )
@@ -650,10 +650,10 @@ namespace canvas
return strcmp( rLHS.maKey,
rRHS.maKey ) < 0;
}
-
- const MapEntry* mpMap;
- ::std::size_t mnEntries;
- bool mbCaseSensitive;
+
+ const MapEntry* mpMap;
+ ::std::size_t mnEntries;
+ bool mbCaseSensitive;
};
}
}
diff --git a/canvas/inc/canvas/debug.hxx b/canvas/inc/canvas/debug.hxx
index 62bee8e7ce38..5e81c6290c81 100644
--- a/canvas/inc/canvas/debug.hxx
+++ b/canvas/inc/canvas/debug.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/inc/canvas/elapsedtime.hxx b/canvas/inc/canvas/elapsedtime.hxx
index d48f6127fd52..2e8a9b69d202 100644
--- a/canvas/inc/canvas/elapsedtime.hxx
+++ b/canvas/inc/canvas/elapsedtime.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,14 +70,14 @@ namespace canvas
/** Gets this timer's base timer.
*/
::boost::shared_ptr<ElapsedTime> const & getTimeBase() const;
-
+
/** Reset the time
The instance of the reset() call starts the time
measurement from scratch. That means, a subsequent
getElapsedTime() call will return the time difference
between reset() and getElapsedTime() call.
- */
+ */
void reset();
/** Query the elapsed time
@@ -89,9 +89,9 @@ namespace canvas
continuous flow of time).
@return the elapsed time in seconds.
- */
+ */
double getElapsedTime() const;
-
+
/** Pauses the running timer.
This method stops the time, as returned by this
@@ -101,8 +101,8 @@ namespace canvas
called).
*/
void pauseTimer();
-
- /** Continues the paused timer.
+
+ /** Continues the paused timer.
This method re-enables the time flow, that is, time
starts running again for clients calling
@@ -114,7 +114,7 @@ namespace canvas
pauseTimer().
*/
void continueTimer();
-
+
/** Adjusts the timer, hold and pause times.
This method modifies the time as returned by this
@@ -122,18 +122,18 @@ namespace canvas
as returned by getElapsedTime(), regardless of the
mode (e.g. paused, or on hold).
- @param fOffset
+ @param fOffset
This value will be added to the current time, i.e. the
next call to getElapsedTime() (when performed
immediately) will be adjusted by fOffset.
- @param bLimitToLastQueriedTime
+ @param bLimitToLastQueriedTime
Limits the given offset to the time that has been
taken via getElapsedTime()
*/
void adjustTimer( double fOffset,
bool bLimitToLastQueriedTime = true );
-
+
/** Holds the current time.
This call makes the timer hold the current time
@@ -146,35 +146,35 @@ namespace canvas
clock keeps running internally.
*/
void holdTimer();
-
+
/** Releases a held timer.
After this call, the timer again returns the running
time on getElapsedTime().
*/
void releaseTimer();
-
+
private:
static double getSystemTime();
double getCurrentTime() const;
double getElapsedTimeImpl() const; // does not set m_fLastQueriedTime
- const ::boost::shared_ptr<ElapsedTime> m_pTimeBase;
-
+ const ::boost::shared_ptr<ElapsedTime> m_pTimeBase;
+
/// To validate adjustTimer() calls with bLimitToLastQueriedTime=true
- mutable double m_fLastQueriedTime;
+ mutable double m_fLastQueriedTime;
/// Start time, from which the difference to the time base is returned
- double m_fStartTime;
+ double m_fStartTime;
- /// Instant, when last pause or hold started, relative to m_fStartTime
- double m_fFrozenTime;
+ /// Instant, when last pause or hold started, relative to m_fStartTime
+ double m_fFrozenTime;
/// True, when in pause mode
- bool m_bInPauseMode;
+ bool m_bInPauseMode;
/// True, when in hold mode
- bool m_bInHoldMode;
+ bool m_bInHoldMode;
};
}
diff --git a/canvas/inc/canvas/parametricpolypolygon.hxx b/canvas/inc/canvas/parametricpolypolygon.hxx
index e8d723dbc0e3..97598ac46996 100644
--- a/canvas/inc/canvas/parametricpolypolygon.hxx
+++ b/canvas/inc/canvas/parametricpolypolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ namespace canvas
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XParametricPolyPolygon2D,
::com::sun::star::lang::XServiceInfo > ParametricPolyPolygon_Base;
- class ParametricPolyPolygon : public ::comphelper::OBaseMutex,
+ class ParametricPolyPolygon : public ::comphelper::OBaseMutex,
public ParametricPolyPolygon_Base,
private ::boost::noncopyable
{
@@ -72,8 +72,8 @@ namespace canvas
struct Values
{
Values( const ::basegfx::B2DPolygon& rGradientPoly,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& rColors,
- const ::com::sun::star::uno::Sequence< double >& rStops,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& rColors,
+ const ::com::sun::star::uno::Sequence< double >& rStops,
double nAspectRatio,
GradientType eType ) :
maGradientPoly( rGradientPoly ),
@@ -85,23 +85,23 @@ namespace canvas
}
/// Polygonal gradient shape (ignored for linear and axial gradient)
- const ::basegfx::B2DPolygon maGradientPoly;
+ const ::basegfx::B2DPolygon maGradientPoly;
/// Aspect ratio of gradient, affects scaling of innermost gradient polygon
- const double mnAspectRatio;
+ const double mnAspectRatio;
/// Gradient colors
- const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > > maColors;
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > > maColors;
/// Gradient color stops
- const ::com::sun::star::uno::Sequence< double > maStops;
+ const ::com::sun::star::uno::Sequence< double > maStops;
/// Type of gradient to render (as e.g. linear grads are not represented by maGradientPoly)
- const GradientType meType;
+ const GradientType meType;
};
static ::com::sun::star::uno::Sequence< ::rtl::OUString > getAvailableServiceNames();
- static ParametricPolyPolygon* create(
+ static ParametricPolyPolygon* create(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::rtl::OUString& rServiceName,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& rArgs );
@@ -122,49 +122,49 @@ namespace canvas
/// Query all defining values of this object atomically
Values getValues() const;
-
+
protected:
~ParametricPolyPolygon(); // we're a ref-counted UNO class. _We_ destroy ourselves.
private:
- static ParametricPolyPolygon* createLinearHorizontalGradient( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
+ static ParametricPolyPolygon* createLinearHorizontalGradient( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
const ::com::sun::star::uno::Sequence< double >& stops );
- static ParametricPolyPolygon* createEllipticalGradient( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ static ParametricPolyPolygon* createEllipticalGradient( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
const ::com::sun::star::uno::Sequence< double >& stops,
double fAspect );
- static ParametricPolyPolygon* createRectangularGradient( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ static ParametricPolyPolygon* createRectangularGradient( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
const ::com::sun::star::uno::Sequence< double >& stops,
double fAspect );
/// Private, because objects can only be created from the static factories
- ParametricPolyPolygon( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::basegfx::B2DPolygon& rGradientPoly,
- GradientType eType,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
- const ::com::sun::star::uno::Sequence< double >& stops );
- ParametricPolyPolygon( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::basegfx::B2DPolygon& rGradientPoly,
- GradientType eType,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
- const ::com::sun::star::uno::Sequence< double >& stops,
- double nAspectRatio );
- ParametricPolyPolygon( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- GradientType eType,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
- const ::com::sun::star::uno::Sequence< double >& stops );
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice > mxDevice;
-
+ ParametricPolyPolygon( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::basegfx::B2DPolygon& rGradientPoly,
+ GradientType eType,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
+ const ::com::sun::star::uno::Sequence< double >& stops );
+ ParametricPolyPolygon( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::basegfx::B2DPolygon& rGradientPoly,
+ GradientType eType,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
+ const ::com::sun::star::uno::Sequence< double >& stops,
+ double nAspectRatio );
+ ParametricPolyPolygon( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ GradientType eType,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& colors,
+ const ::com::sun::star::uno::Sequence< double >& stops );
+
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice > mxDevice;
+
/// All defining values of this object
const Values maValues;
};
diff --git a/canvas/inc/canvas/prioritybooster.hxx b/canvas/inc/canvas/prioritybooster.hxx
index 7411a950ffd2..1839c015f75a 100644
--- a/canvas/inc/canvas/prioritybooster.hxx
+++ b/canvas/inc/canvas/prioritybooster.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/inc/canvas/propertysethelper.hxx b/canvas/inc/canvas/propertysethelper.hxx
index d11a9ba66588..9daac32482c7 100644
--- a/canvas/inc/canvas/propertysethelper.hxx
+++ b/canvas/inc/canvas/propertysethelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -141,16 +141,16 @@ namespace canvas
// XPropertySet implementation
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > getPropertySetInfo() const;
- void setPropertyValue( const ::rtl::OUString& aPropertyName,
+ void setPropertyValue( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Any& aValue );
::com::sun::star::uno::Any getPropertyValue( const ::rtl::OUString& PropertyName ) const;
- void addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ void addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener );
- void removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ void removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener );
- void addVetoableChangeListener( const ::rtl::OUString& aPropertyName,
+ void addVetoableChangeListener( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& xListener );
- void removeVetoableChangeListener( const ::rtl::OUString& aPropertyName,
+ void removeVetoableChangeListener( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& xListener );
private:
diff --git a/canvas/inc/canvas/rendering/bitmap.hxx b/canvas/inc/canvas/rendering/bitmap.hxx
index 92c965c7133f..5fdb3ec8ecf4 100644
--- a/canvas/inc/canvas/rendering/bitmap.hxx
+++ b/canvas/inc/canvas/rendering/bitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,22 +88,22 @@ namespace canvas
::basegfx::B2IVector getSize() const;
::com::sun::star::uno::Sequence< sal_Int8 > getData(
- ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
void setData(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
void setPixel(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos );
+ const ::com::sun::star::geometry::IntegerPoint2D& pos );
::com::sun::star::uno::Sequence< sal_Int8 > getPixel(
- ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos );
+ ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos );
/** Render the bitmap content to associated
SurfaceProxyManager's screen.
@@ -113,7 +113,7 @@ namespace canvas
@param rPos
Output position
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -129,12 +129,12 @@ namespace canvas
@param rPos
Output position
-
+
@param rArea
Subset of the surface to render. Coordinate system are
surface area pixel, given area will be clipped to the
surface bounds.
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -142,7 +142,7 @@ namespace canvas
const ::basegfx::B2DPoint& rPos,
const ::basegfx::B2DRange& rArea,
const ::basegfx::B2DHomMatrix& rTransform );
-
+
/** Render the bitmap content to associated
SurfaceProxyManager's screen.
@@ -151,11 +151,11 @@ namespace canvas
@param rPos
Output position
-
+
@param rClipPoly
Clip polygon for the surface. The clip polygon is also
subject to the output transformation.
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -171,42 +171,42 @@ namespace canvas
*/
void clear( const ::com::sun::star::uno::Sequence< double >& color );
- void fillB2DPolyPolygon(
- const ::basegfx::B2DPolyPolygon& rPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ void fillB2DPolyPolygon(
+ const ::basegfx::B2DPolyPolygon& rPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
// High-level drawing operations (from the XCanvas interface)
// ==========================================================
/// See XCanvas interface
- void drawPoint( const ::com::sun::star::geometry::RealPoint2D& aPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ void drawPoint( const ::com::sun::star::geometry::RealPoint2D& aPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
/// See XCanvas interface
- void drawLine( const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ void drawLine( const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
/// See XCanvas interface
- void drawBezier( const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ void drawBezier( const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
/// See XCanvas interface
- ICachedPrimitiveSharedPtr drawPolyPolygon(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ICachedPrimitiveSharedPtr drawPolyPolygon(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
/// See XCanvas interface
- ICachedPrimitiveSharedPtr strokePolyPolygon(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ICachedPrimitiveSharedPtr strokePolyPolygon(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
/** See XCanvas interface
@@ -216,14 +216,14 @@ namespace canvas
sequence. This is to decouple this interface from the
client's XBitmap-implementation class.
*/
- ICachedPrimitiveSharedPtr strokeTexturedPolyPolygon(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
+ ICachedPrimitiveSharedPtr strokeTexturedPolyPolygon(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::rendering::Texture >& textures,
- const ::std::vector< ::boost::shared_ptr<Bitmap> >& textureAnnotations,
+ const ::std::vector< ::boost::shared_ptr<Bitmap> >& textureAnnotations,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
/** See XCanvas interface
@@ -233,23 +233,23 @@ namespace canvas
sequence. This is to decouple this interface from the
client's XBitmap-implementation class.
*/
- ICachedPrimitiveSharedPtr strokeTextureMappedPolyPolygon(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
+ ICachedPrimitiveSharedPtr strokeTextureMappedPolyPolygon(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::rendering::Texture >& textures,
- const ::std::vector< ::boost::shared_ptr<Bitmap> >& textureAnnotations,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
+ const ::std::vector< ::boost::shared_ptr<Bitmap> >& textureAnnotations,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::geometry::XMapping2D >& xMapping,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
/// See XCanvas interface
- ICachedPrimitiveSharedPtr fillPolyPolygon(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ ICachedPrimitiveSharedPtr fillPolyPolygon(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
/** See XCanvas interface
@param textureAnnotations
@@ -258,14 +258,14 @@ namespace canvas
sequence. This is to decouple this interface from the
client's XBitmap-implementation class.
*/
- ICachedPrimitiveSharedPtr fillTexturedPolyPolygon(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
+ ICachedPrimitiveSharedPtr fillTexturedPolyPolygon(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::rendering::Texture >& textures,
- const ::std::vector< ::boost::shared_ptr<Bitmap> >& textureAnnotations );
+ const ::std::vector< ::boost::shared_ptr<Bitmap> >& textureAnnotations );
/** See XCanvas interface
@param textureAnnotations
@@ -274,39 +274,39 @@ namespace canvas
sequence. This is to decouple this interface from the
client's XBitmap-implementation class.
*/
- ICachedPrimitiveSharedPtr fillTextureMappedPolyPolygon(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
+ ICachedPrimitiveSharedPtr fillTextureMappedPolyPolygon(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::rendering::Texture >& textures,
const ::std::vector< ::boost::shared_ptr<Bitmap> >& textureAnnotations,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping );
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::geometry::XMapping2D >& xMapping );
/// See XCanvas interface
- ICachedPrimitiveSharedPtr drawBitmap(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ICachedPrimitiveSharedPtr drawBitmap(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
/// See XCanvas interface
- ICachedPrimitiveSharedPtr drawBitmap(
- const ::boost::shared_ptr<Bitmap>& rImage,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ICachedPrimitiveSharedPtr drawBitmap(
+ const ::boost::shared_ptr<Bitmap>& rImage,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
/// See XCanvas interface
- ICachedPrimitiveSharedPtr drawBitmapModulated(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ICachedPrimitiveSharedPtr drawBitmapModulated(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
/// See XCanvas interface
- ICachedPrimitiveSharedPtr drawBitmapModulated(
- const ::boost::shared_ptr<Bitmap>& rImage,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ICachedPrimitiveSharedPtr drawBitmapModulated(
+ const ::boost::shared_ptr<Bitmap>& rImage,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
private:
diff --git a/canvas/inc/canvas/rendering/icachedprimitive.hxx b/canvas/inc/canvas/rendering/icachedprimitive.hxx
index ce50d9daff8b..ff4a6c207f08 100644
--- a/canvas/inc/canvas/rendering/icachedprimitive.hxx
+++ b/canvas/inc/canvas/rendering/icachedprimitive.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/inc/canvas/rendering/icolorbuffer.hxx b/canvas/inc/canvas/rendering/icolorbuffer.hxx
index 72d0fca272d1..cdb58c304a70 100644
--- a/canvas/inc/canvas/rendering/icolorbuffer.hxx
+++ b/canvas/inc/canvas/rendering/icolorbuffer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,23 +41,23 @@ namespace canvas
Use this interface to represent a surface of raw pixel (e.g. a
bitmap) to the canvas rendering framework.
*/
- struct IColorBuffer
+ struct IColorBuffer
{
/// The underlying pixel format for this buffer
enum Format
{
- // 24-bit RGB pixel format, 8 bits per channel.
+ // 24-bit RGB pixel format, 8 bits per channel.
FMT_R8G8B8,
-
- // 32-bit ARGB pixel format with alpha, 8 bits per channel.
+
+ // 32-bit ARGB pixel format with alpha, 8 bits per channel.
FMT_A8R8G8B8,
-
- // 32-bit RGB pixel format, 8 bits per channel.
+
+ // 32-bit RGB pixel format, 8 bits per channel.
FMT_X8R8G8B8,
-
- // for enum to 32bit
+
+ // for enum to 32bit
FMT_UNKNOWN = static_cast<sal_uInt32>(-1)
- };
+ };
virtual ~IColorBuffer() {}
diff --git a/canvas/inc/canvas/rendering/irendermodule.hxx b/canvas/inc/canvas/rendering/irendermodule.hxx
index e17908209bad..b3e470005e45 100644
--- a/canvas/inc/canvas/rendering/irendermodule.hxx
+++ b/canvas/inc/canvas/rendering/irendermodule.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/inc/canvas/rendering/isurface.hxx b/canvas/inc/canvas/rendering/isurface.hxx
index adad313d46f3..7b08e2985fbc 100644
--- a/canvas/inc/canvas/rendering/isurface.hxx
+++ b/canvas/inc/canvas/rendering/isurface.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/inc/canvas/rendering/isurfaceproxy.hxx b/canvas/inc/canvas/rendering/isurfaceproxy.hxx
index 43e31f564269..998278a897f7 100644
--- a/canvas/inc/canvas/rendering/isurfaceproxy.hxx
+++ b/canvas/inc/canvas/rendering/isurfaceproxy.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ namespace canvas
{
virtual ~ISurfaceProxy() {}
- /** Notify the proxy that the color buffer has changed
+ /** Notify the proxy that the color buffer has changed
*/
virtual void setColorBufferDirty() = 0;
@@ -58,7 +58,7 @@ namespace canvas
@param rPos
Output position
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -73,12 +73,12 @@ namespace canvas
@param rPos
Output position
-
+
@param rArea
Subset of the surface to render. Coordinate system are
surface area pixel, given area will be clipped to the
surface bounds.
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -86,7 +86,7 @@ namespace canvas
const ::basegfx::B2DPoint& rPos,
const ::basegfx::B2DRange& rArea,
const ::basegfx::B2DHomMatrix& rTransform ) = 0;
-
+
/** Render the surface content to screen.
@param fAlpha
@@ -94,11 +94,11 @@ namespace canvas
@param rPos
Output position
-
+
@param rClipPoly
Clip polygon for the surface. The clip polygon is also
subject to the output transformation.
-
+
@param rTransform
Output transformation (does not affect output position)
*/
diff --git a/canvas/inc/canvas/rendering/isurfaceproxymanager.hxx b/canvas/inc/canvas/rendering/isurfaceproxymanager.hxx
index 0d63e804d485..773592cd2d47 100644
--- a/canvas/inc/canvas/rendering/isurfaceproxymanager.hxx
+++ b/canvas/inc/canvas/rendering/isurfaceproxymanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ namespace canvas
Internally this texture may even be distributed to several
real hardware surfaces.
*/
- virtual ::boost::shared_ptr< ISurfaceProxy > createSurfaceProxy(
+ virtual ::boost::shared_ptr< ISurfaceProxy > createSurfaceProxy(
const IColorBufferSharedPtr& pBuffer ) const = 0;
};
diff --git a/canvas/inc/canvas/spriteredrawmanager.hxx b/canvas/inc/canvas/spriteredrawmanager.hxx
index 4a66b5c09acd..c2eed8e0cf3a 100644
--- a/canvas/inc/canvas/spriteredrawmanager.hxx
+++ b/canvas/inc/canvas/spriteredrawmanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ namespace canvas
events are later grouped by connected areas (i.e. all sprites
that somehow overlap over a rectangular area are grouped
together); the forEachSpriteArea() method calls the passed
- functor for each of those connected areas.
+ functor for each of those connected areas.
Note that, although this class generally works with IEEE
doubles, the calculation of connected areas happens in the
@@ -65,7 +65,7 @@ namespace canvas
artifacts. Therefore, sprites that touch the same pixel (but
don't necessarily have the same floating point coordinates
there) will reside in a common sprite area and handled
- together in the forEachSpriteArea functor call.
+ together in the forEachSpriteArea functor call.
*/
class SpriteRedrawManager : private ::boost::noncopyable
{
@@ -92,9 +92,9 @@ namespace canvas
@internal
*/
- SpriteInfo( const Sprite::Reference& rRef,
- const ::basegfx::B2DRange& rTrueUpdateArea,
- bool bNeedsUpdate ) :
+ SpriteInfo( const Sprite::Reference& rRef,
+ const ::basegfx::B2DRange& rTrueUpdateArea,
+ bool bNeedsUpdate ) :
mpSprite( rRef ),
maTrueUpdateArea( rTrueUpdateArea ),
mbNeedsUpdate( bNeedsUpdate ),
@@ -121,10 +121,10 @@ namespace canvas
@internal
*/
- SpriteInfo( const Sprite::Reference& rRef,
- const ::basegfx::B2DRange& rTrueUpdateArea,
- bool bNeedsUpdate,
- bool bIsPureMove ) :
+ SpriteInfo( const Sprite::Reference& rRef,
+ const ::basegfx::B2DRange& rTrueUpdateArea,
+ bool bNeedsUpdate,
+ bool bIsPureMove ) :
mpSprite( rRef ),
maTrueUpdateArea( rTrueUpdateArea ),
mbNeedsUpdate( bNeedsUpdate ),
@@ -132,18 +132,18 @@ namespace canvas
{
}
- const Sprite::Reference& getSprite() const { return mpSprite; }
+ const Sprite::Reference& getSprite() const { return mpSprite; }
// #i61843# need to return by value here, to be used safely from bind
::basegfx::B2DRange getUpdateArea() const { return maTrueUpdateArea; }
- bool needsUpdate() const { return mbNeedsUpdate; }
- bool isPureMove() const { return mbIsPureMove; }
+ bool needsUpdate() const { return mbNeedsUpdate; }
+ bool isPureMove() const { return mbIsPureMove; }
private:
- Sprite::Reference mpSprite;
- ::basegfx::B2DRange maTrueUpdateArea;
- bool mbNeedsUpdate;
- bool mbIsPureMove;
+ Sprite::Reference mpSprite;
+ ::basegfx::B2DRange maTrueUpdateArea;
+ bool mbNeedsUpdate;
+ bool mbIsPureMove;
};
@@ -164,10 +164,10 @@ namespace canvas
{
}
- SpriteChangeRecord( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rOldPos,
- const ::basegfx::B2DPoint& rNewPos,
- const ::basegfx::B2DVector& rSpriteSize ) :
+ SpriteChangeRecord( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rOldPos,
+ const ::basegfx::B2DPoint& rNewPos,
+ const ::basegfx::B2DVector& rSpriteSize ) :
meChangeType( move ),
mpAffectedSprite( rSprite ),
maOldPos( rOldPos ),
@@ -178,9 +178,9 @@ namespace canvas
{
}
- SpriteChangeRecord( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rPos,
- const ::basegfx::B2DRange& rUpdateArea ) :
+ SpriteChangeRecord( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rPos,
+ const ::basegfx::B2DRange& rUpdateArea ) :
meChangeType( update ),
mpAffectedSprite( rSprite ),
maOldPos( rPos ),
@@ -190,17 +190,17 @@ namespace canvas
Sprite::Reference getSprite() const { return mpAffectedSprite; }
- ChangeType meChangeType;
- Sprite::Reference mpAffectedSprite;
- ::basegfx::B2DPoint maOldPos;
- ::basegfx::B2DRange maUpdateArea;
+ ChangeType meChangeType;
+ Sprite::Reference mpAffectedSprite;
+ ::basegfx::B2DPoint maOldPos;
+ ::basegfx::B2DRange maUpdateArea;
};
- typedef ::std::vector< SpriteChangeRecord > VectorOfChangeRecords;
- typedef ::std::list< Sprite::Reference > ListOfSprites;
- typedef ::basegfx::B2DConnectedRanges< SpriteInfo > SpriteConnectedRanges;
- typedef SpriteConnectedRanges::ComponentType AreaComponent;
- typedef SpriteConnectedRanges::ConnectedComponents UpdateArea;
+ typedef ::std::vector< SpriteChangeRecord > VectorOfChangeRecords;
+ typedef ::std::list< Sprite::Reference > ListOfSprites;
+ typedef ::basegfx::B2DConnectedRanges< SpriteInfo > SpriteConnectedRanges;
+ typedef SpriteConnectedRanges::ComponentType AreaComponent;
+ typedef SpriteConnectedRanges::ConnectedComponents UpdateArea;
typedef ::std::vector< Sprite::Reference > VectorOfSprites;
SpriteRedrawManager();
@@ -214,8 +214,8 @@ namespace canvas
*/
template< typename Functor > struct AreaUpdateCaller
{
- AreaUpdateCaller( Functor& rFunc,
- const SpriteRedrawManager& rManager ) :
+ AreaUpdateCaller( Functor& rFunc,
+ const SpriteRedrawManager& rManager ) :
mrFunc( rFunc ),
mrManager( rManager )
{
@@ -226,8 +226,8 @@ namespace canvas
mrManager.handleArea( mrFunc, rUpdateArea );
}
- Functor& mrFunc;
- const SpriteRedrawManager& mrManager;
+ Functor& mrFunc;
+ const SpriteRedrawManager& mrManager;
};
/** Call given functor for each sprite area that needs an
@@ -242,7 +242,7 @@ namespace canvas
void backgroundPaint( ::basegfx::B2DRange aUpdateRect );
void scrollUpdate( ::basegfx::B2DRange& o_rMoveStart,
::basegfx::B2DRange& o_rMoveEnd,
- UpdateArea aUpdateArea );
+ UpdateArea aUpdateArea );
void opaqueUpdate( const ::basegfx::B2DRange& rTotalArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
void genericUpdate( const ::basegfx::B2DRange& rTotalArea,
@@ -263,7 +263,7 @@ namespace canvas
setupUpdateAreas( aUpdateAreas );
- aUpdateAreas.forEachAggregate(
+ aUpdateAreas.forEachAggregate(
AreaUpdateCaller< Functor >( rFunc, *this ) );
}
@@ -289,13 +289,13 @@ namespace canvas
// SpriteSurface interface, is delegated to e.g. from SpriteCanvas
void showSprite( const Sprite::Reference& rSprite );
void hideSprite( const Sprite::Reference& rSprite );
- void moveSprite( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rOldPos,
- const ::basegfx::B2DPoint& rNewPos,
- const ::basegfx::B2DVector& rSpriteSize );
- void updateSprite( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rPos,
- const ::basegfx::B2DRange& rUpdateArea );
+ void moveSprite( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rOldPos,
+ const ::basegfx::B2DPoint& rNewPos,
+ const ::basegfx::B2DVector& rSpriteSize );
+ void updateSprite( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rPos,
+ const ::basegfx::B2DRange& rUpdateArea );
/** Internal, handles each distinct component for forEachAggregate()
@@ -304,8 +304,8 @@ namespace canvas
@internal
*/
- template< typename Functor > void handleArea( Functor& rFunc,
- const UpdateArea& rUpdateArea ) const
+ template< typename Functor > void handleArea( Functor& rFunc,
+ const UpdateArea& rUpdateArea ) const
{
// check whether this area contains changed sprites at all
// (if not, just ignore it)
@@ -327,7 +327,7 @@ namespace canvas
// cache number of sprites in this area (it's a
// list, and both isAreaUpdateScroll() and
// isAreaUpdateOpaque() need it).
- const ::std::size_t nNumSprites(
+ const ::std::size_t nNumSprites(
rUpdateArea.maComponentList.size() );
if( isAreaUpdateScroll( aMoveStart,
@@ -335,15 +335,15 @@ namespace canvas
rUpdateArea,
nNumSprites ) )
{
- rFunc.scrollUpdate( aMoveStart,
+ rFunc.scrollUpdate( aMoveStart,
aMoveEnd,
rUpdateArea );
}
- else
+ else
{
- // potentially, more than a single sprite
- // involved. Have to sort component lists for
- // sprite prio.
+ // potentially, more than a single sprite
+ // involved. Have to sort component lists for
+ // sprite prio.
VectorOfSprites aSortedUpdateSprites;
SpriteConnectedRanges::ComponentListType::const_iterator aCurr(
rUpdateArea.maComponentList.begin() );
@@ -361,12 +361,12 @@ namespace canvas
::std::sort( aSortedUpdateSprites.begin(),
aSortedUpdateSprites.end(),
SpriteComparator() );
-
+
if( isAreaUpdateOpaque( rUpdateArea,
nNumSprites ) )
{
rFunc.opaqueUpdate( rUpdateArea.maTotalBounds,
- aSortedUpdateSprites );
+ aSortedUpdateSprites );
}
else
{
@@ -386,11 +386,11 @@ namespace canvas
bool areSpritesChanged( const UpdateArea& rUpdateArea ) const;
- bool isAreaUpdateNotOpaque( const ::basegfx::B2DRange& rUpdateRect,
- const AreaComponent& rComponent ) const;
+ bool isAreaUpdateNotOpaque( const ::basegfx::B2DRange& rUpdateRect,
+ const AreaComponent& rComponent ) const;
- bool isAreaUpdateOpaque( const UpdateArea& rUpdateArea,
- ::std::size_t nNumSprites ) const;
+ bool isAreaUpdateOpaque( const UpdateArea& rUpdateArea,
+ ::std::size_t nNumSprites ) const;
/** Check whether given update area can be handled by a simple
scroll
@@ -405,13 +405,13 @@ namespace canvas
@param rUpdateArea
Area to check for scroll update optimization
*/
- bool isAreaUpdateScroll( ::basegfx::B2DRange& o_rMoveStart,
- ::basegfx::B2DRange& o_rMoveEnd,
- const UpdateArea& rUpdateArea,
- ::std::size_t nNumSprites ) const;
+ bool isAreaUpdateScroll( ::basegfx::B2DRange& o_rMoveStart,
+ ::basegfx::B2DRange& o_rMoveEnd,
+ const UpdateArea& rUpdateArea,
+ ::std::size_t nNumSprites ) const;
- ListOfSprites maSprites; // list of active
+ ListOfSprites maSprites; // list of active
// sprite
// objects. this
// list is only
@@ -423,7 +423,7 @@ namespace canvas
// itself to notify
// us.
- VectorOfChangeRecords maChangeRecords; // vector of
+ VectorOfChangeRecords maChangeRecords; // vector of
// sprites
// changes
// since last
diff --git a/canvas/inc/canvas/vclwrapper.hxx b/canvas/inc/canvas/vclwrapper.hxx
index cf42e15e2ef3..d30667479f62 100644
--- a/canvas/inc/canvas/vclwrapper.hxx
+++ b/canvas/inc/canvas/vclwrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -120,19 +120,19 @@ namespace canvas
// This here is the whole purpose of the template:
// protecting object deletion with the solar mutex
SolarMutexGuard aGuard;
-
+
if( mpWrappee )
delete mpWrappee;
}
- Wrappee* operator->() { return mpWrappee; }
- const Wrappee* operator->() const { return mpWrappee; }
+ Wrappee* operator->() { return mpWrappee; }
+ const Wrappee* operator->() const { return mpWrappee; }
- Wrappee& operator*() { return *mpWrappee; }
- const Wrappee& operator*() const { return *mpWrappee; }
+ Wrappee& operator*() { return *mpWrappee; }
+ const Wrappee& operator*() const { return *mpWrappee; }
- Wrappee& get() { return *mpWrappee; }
- const Wrappee& get() const { return *mpWrappee; }
+ Wrappee& get() { return *mpWrappee; }
+ const Wrappee& get() const { return *mpWrappee; }
void swap( VCLObject& rOther )
{
@@ -140,8 +140,8 @@ namespace canvas
}
private:
-
- Wrappee* mpWrappee;
+
+ Wrappee* mpWrappee;
};
}
diff --git a/canvas/inc/canvas/verbosetrace.hxx b/canvas/inc/canvas/verbosetrace.hxx
index 2a7fbd469066..aadfa0a40a53 100644
--- a/canvas/inc/canvas/verbosetrace.hxx
+++ b/canvas/inc/canvas/verbosetrace.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
/// Wrap OSL_TRACE with a verbosity switch
#define VERBOSE_TRACE OSL_TRACE
#else
-#define VERBOSE_TRACE 1 ? ((void)0) : OSL_TRACE
+#define VERBOSE_TRACE 1 ? ((void)0) : OSL_TRACE
#endif
#endif /* INCLUDED_CANVAS_VERBOSETRACE_HXX */
diff --git a/canvas/inc/canvas/verifyinput.hxx b/canvas/inc/canvas/verifyinput.hxx
index 1e8549792bdb..748868ddba2b 100644
--- a/canvas/inc/canvas/verifyinput.hxx
+++ b/canvas/inc/canvas/verifyinput.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
#include <boost/current_function.hpp>
-namespace com { namespace sun { namespace star { namespace geometry
+namespace com { namespace sun { namespace star { namespace geometry
{
struct RealPoint2D;
struct RealSize2D;
@@ -53,7 +53,7 @@ namespace com { namespace sun { namespace star { namespace geometry
struct IntegerRectangle2D;
} } } }
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
struct RenderState;
struct StrokeAttributes;
@@ -96,11 +96,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::geometry::AffineMatrix2D& rMatrix,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::geometry::AffineMatrix2D& rMatrix,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Verify that the given transformation contains valid floating point
values.
@@ -119,11 +119,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::geometry::Matrix2D& rMatrix,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::geometry::Matrix2D& rMatrix,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Verify that the given point contains valid floating point
values.
@@ -142,11 +142,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::geometry::RealPoint2D& rPoint,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::geometry::RealPoint2D& rPoint,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Verify that the given size contains valid floating point
values.
@@ -165,11 +165,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::geometry::RealSize2D& rSize,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::geometry::RealSize2D& rSize,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Verify that the given bezier segment contains valid
floating point values.
@@ -188,11 +188,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::geometry::RealBezierSegment2D& rSegment,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::geometry::RealBezierSegment2D& rSegment,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Verify that the given point contains valid floating point
values.
@@ -211,11 +211,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::geometry::RealPoint2D& rPoint,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::geometry::RealPoint2D& rPoint,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Verify that the given rectangle contains valid floating
point values.
@@ -234,11 +234,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::geometry::RealRectangle2D& rRect,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::geometry::RealRectangle2D& rRect,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Basic check for view state validity.
@@ -256,11 +256,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::rendering::ViewState& viewState,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::rendering::ViewState& viewState,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Basic check for render state validity.
@@ -282,12 +282,12 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::rendering::RenderState& renderState,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos,
- sal_Int32 nMinColorComponents=0 );
+ void verifyInput( const ::com::sun::star::rendering::RenderState& renderState,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos,
+ sal_Int32 nMinColorComponents=0 );
/** Basic check for stroke attributes validity.
@@ -305,11 +305,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Basic check for texture validity.
@@ -327,11 +327,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::rendering::Texture& texture,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::rendering::Texture& texture,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Basic check for bitmap layout validity.
@@ -349,11 +349,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Basic check for bitmap layout validity.
@@ -372,10 +372,10 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
void verifyInput( const ::com::sun::star::rendering::FloatingPointBitmapLayout& bitmapLayout,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Basic check for font info validity.
@@ -393,11 +393,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::rendering::FontInfo& fontInfo,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::rendering::FontInfo& fontInfo,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Basic check for font request validity.
@@ -415,11 +415,11 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- void verifyInput( const ::com::sun::star::rendering::FontRequest& fontRequest,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos );
+ void verifyInput( const ::com::sun::star::rendering::FontRequest& fontRequest,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos );
/** Templatized check for uno::Reference validity.
@@ -437,12 +437,12 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- template< class Interface > void verifyInput(
- const ::com::sun::star::uno::Reference< Interface >& rRef,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ template< class Interface > void verifyInput(
+ const ::com::sun::star::uno::Reference< Interface >& rRef,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
@@ -476,12 +476,12 @@ namespace canvas
@throws an lang::IllegalArgumentException, if anything is wrong
*/
- template< typename SequenceContent > void verifyInput(
- const ::com::sun::star::uno::Sequence< SequenceContent >& rSequence,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ template< typename SequenceContent > void verifyInput(
+ const ::com::sun::star::uno::Sequence< SequenceContent >& rSequence,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
const SequenceContent* pCurr = rSequence.getConstArray();
const SequenceContent* pEnd = pCurr + rSequence.getLength();
@@ -490,60 +490,60 @@ namespace canvas
}
/// Catch-all, to handle cases that DON'T need input checking (i.e. the Integer geometry ones)
- template< typename T > void verifyInput( const T& /*rDummy*/,
- const char* /*pStr*/,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& /*xIf*/,
- ::sal_Int16 /*nArgPos*/ )
+ template< typename T > void verifyInput( const T& /*rDummy*/,
+ const char* /*pStr*/,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& /*xIf*/,
+ ::sal_Int16 /*nArgPos*/ )
{
}
// TODO(Q2): Employ some template arglist magic here, to avoid
// this duplication of code...
- template< typename Arg0 > void verifyArgs( const Arg0& rArg0,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf )
+ template< typename Arg0 > void verifyArgs( const Arg0& rArg0,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf )
{
verifyInput( rArg0, pStr, xIf, 0 );
}
- template< typename Arg0,
- typename Arg1 > void verifyArgs( const Arg0& rArg0,
- const Arg1& rArg1,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf )
+ template< typename Arg0,
+ typename Arg1 > void verifyArgs( const Arg0& rArg0,
+ const Arg1& rArg1,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf )
{
verifyInput( rArg0, pStr, xIf, 0 );
verifyInput( rArg1, pStr, xIf, 1 );
}
- template< typename Arg0,
- typename Arg1,
- typename Arg2 > void verifyArgs( const Arg0& rArg0,
- const Arg1& rArg1,
- const Arg2& rArg2,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf )
+ template< typename Arg0,
+ typename Arg1,
+ typename Arg2 > void verifyArgs( const Arg0& rArg0,
+ const Arg1& rArg1,
+ const Arg2& rArg2,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf )
{
verifyInput( rArg0, pStr, xIf, 0 );
verifyInput( rArg1, pStr, xIf, 1 );
verifyInput( rArg2, pStr, xIf, 2 );
}
- template< typename Arg0,
- typename Arg1,
- typename Arg2,
- typename Arg3 > void verifyArgs( const Arg0& rArg0,
- const Arg1& rArg1,
- const Arg2& rArg2,
- const Arg3& rArg3,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf )
+ template< typename Arg0,
+ typename Arg1,
+ typename Arg2,
+ typename Arg3 > void verifyArgs( const Arg0& rArg0,
+ const Arg1& rArg1,
+ const Arg2& rArg2,
+ const Arg3& rArg3,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf )
{
verifyInput( rArg0, pStr, xIf, 0 );
verifyInput( rArg1, pStr, xIf, 1 );
@@ -551,18 +551,18 @@ namespace canvas
verifyInput( rArg3, pStr, xIf, 3 );
}
- template< typename Arg0,
- typename Arg1,
- typename Arg2,
- typename Arg3,
- typename Arg4 > void verifyArgs( const Arg0& rArg0,
- const Arg1& rArg1,
- const Arg2& rArg2,
- const Arg3& rArg3,
- const Arg4& rArg4,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf )
+ template< typename Arg0,
+ typename Arg1,
+ typename Arg2,
+ typename Arg3,
+ typename Arg4 > void verifyArgs( const Arg0& rArg0,
+ const Arg1& rArg1,
+ const Arg2& rArg2,
+ const Arg3& rArg3,
+ const Arg4& rArg4,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf )
{
verifyInput( rArg0, pStr, xIf, 0 );
verifyInput( rArg1, pStr, xIf, 1 );
@@ -571,20 +571,20 @@ namespace canvas
verifyInput( rArg4, pStr, xIf, 4 );
}
- template< typename Arg0,
- typename Arg1,
- typename Arg2,
- typename Arg3,
- typename Arg4,
- typename Arg5 > void verifyArgs( const Arg0& rArg0,
- const Arg1& rArg1,
- const Arg2& rArg2,
- const Arg3& rArg3,
- const Arg4& rArg4,
- const Arg5& rArg5,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf )
+ template< typename Arg0,
+ typename Arg1,
+ typename Arg2,
+ typename Arg3,
+ typename Arg4,
+ typename Arg5 > void verifyArgs( const Arg0& rArg0,
+ const Arg1& rArg1,
+ const Arg2& rArg2,
+ const Arg3& rArg3,
+ const Arg4& rArg4,
+ const Arg5& rArg5,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf )
{
verifyInput( rArg0, pStr, xIf, 0 );
verifyInput( rArg1, pStr, xIf, 1 );
@@ -594,22 +594,22 @@ namespace canvas
verifyInput( rArg5, pStr, xIf, 5 );
}
- template< typename Arg0,
- typename Arg1,
- typename Arg2,
- typename Arg3,
- typename Arg4,
- typename Arg5,
- typename Arg6 > void verifyArgs( const Arg0& rArg0,
- const Arg1& rArg1,
- const Arg2& rArg2,
- const Arg3& rArg3,
- const Arg4& rArg4,
- const Arg5& rArg5,
- const Arg6& rArg6,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf )
+ template< typename Arg0,
+ typename Arg1,
+ typename Arg2,
+ typename Arg3,
+ typename Arg4,
+ typename Arg5,
+ typename Arg6 > void verifyArgs( const Arg0& rArg0,
+ const Arg1& rArg1,
+ const Arg2& rArg2,
+ const Arg3& rArg3,
+ const Arg4& rArg4,
+ const Arg5& rArg5,
+ const Arg6& rArg6,
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf )
{
verifyInput( rArg0, pStr, xIf, 0 );
verifyInput( rArg1, pStr, xIf, 1 );
@@ -671,7 +671,7 @@ namespace canvas
/** Range checker, which throws ::com::sun::star::lang::IndexOutOfBounds exception, when
index range is violated
-
+
@param rect
Rect to verify
@@ -679,11 +679,11 @@ namespace canvas
Given rectangle must be within ((0,0), (size.Width, size.Height))
*/
void verifyIndexRange( const ::com::sun::star::geometry::IntegerRectangle2D& rect,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::geometry::IntegerSize2D& size );
/** Range checker, which throws ::com::sun::star::lang::IndexOutOfBounds exception, when
index range is violated
-
+
@param pos
Position to verify
@@ -695,24 +695,24 @@ namespace canvas
/** Range checker, which throws ::com::sun::star::lang::IndexOutOfBounds exception, when
the size is negative or null
-
+
@param size
Size to verify
*/
void verifyBitmapSize( const ::com::sun::star::geometry::IntegerSize2D& size,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface >& xIf );
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface >& xIf );
/** Range checker, which throws ::com::sun::star::lang::IndexOutOfBounds exception, when
the size is negative or null
-
+
@param size
Size to verify
*/
void verifySpriteSize( const ::com::sun::star::geometry::RealSize2D& size,
- const char* pStr,
- const ::com::sun::star::uno::Reference<
+ const char* pStr,
+ const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XInterface >& xIf );
}
}
diff --git a/canvas/inc/pch/precompiled_canvas.cxx b/canvas/inc/pch/precompiled_canvas.cxx
index 6d4286d95206..ad3b242d4c3c 100644
--- a/canvas/inc/pch/precompiled_canvas.cxx
+++ b/canvas/inc/pch/precompiled_canvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/inc/pch/precompiled_canvas.hxx b/canvas/inc/pch/precompiled_canvas.hxx
index 3959cfe8f911..06d61119c733 100644
--- a/canvas/inc/pch/precompiled_canvas.hxx
+++ b/canvas/inc/pch/precompiled_canvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/cairo/cairo_cachedbitmap.cxx b/canvas/source/cairo/cairo_cachedbitmap.cxx
index 3ad8ec111ef3..8203211363c8 100644
--- a/canvas/source/cairo/cairo_cachedbitmap.cxx
+++ b/canvas/source/cairo/cairo_cachedbitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,8 +48,8 @@ using namespace ::com::sun::star;
namespace cairocanvas
{
CachedBitmap::CachedBitmap( const SurfaceSharedPtr& pSurface,
- const rendering::ViewState& rUsedViewState,
- const rendering::RenderState& rUsedRenderState,
+ const rendering::ViewState& rUsedViewState,
+ const rendering::RenderState& rUsedRenderState,
const uno::Reference< rendering::XCanvas >& rTarget ) :
CachedPrimitiveBase( rUsedViewState, rTarget, true ),
mpSurface( pSurface ),
@@ -64,10 +64,10 @@ namespace cairocanvas
CachedPrimitiveBase::disposing();
}
- ::sal_Int8 CachedBitmap::doRedraw( const rendering::ViewState& rNewState,
- const rendering::ViewState& /*rOldState*/,
- const uno::Reference< rendering::XCanvas >& rTargetCanvas,
- bool bSameViewTransform )
+ ::sal_Int8 CachedBitmap::doRedraw( const rendering::ViewState& rNewState,
+ const rendering::ViewState& /*rOldState*/,
+ const uno::Reference< rendering::XCanvas >& rTargetCanvas,
+ bool bSameViewTransform )
{
ENSURE_OR_THROW( bSameViewTransform,
"CachedBitmap::doRedraw(): base called with changed view transform "
diff --git a/canvas/source/cairo/cairo_cachedbitmap.hxx b/canvas/source/cairo/cairo_cachedbitmap.hxx
index cf33a3c22889..da945cb467b0 100644
--- a/canvas/source/cairo/cairo_cachedbitmap.hxx
+++ b/canvas/source/cairo/cairo_cachedbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,24 +44,24 @@ namespace cairocanvas
/** Create an XCachedPrimitive for given GraphicObject
*/
CachedBitmap( const ::cairo::SurfaceSharedPtr& pSurface,
- const ::com::sun::star::rendering::ViewState& rUsedViewState,
+ const ::com::sun::star::rendering::ViewState& rUsedViewState,
const ::com::sun::star::rendering::RenderState& rUsedRenderState,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvas >& rTarget );
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvas >& rTarget );
/// Dispose all internal references
virtual void SAL_CALL disposing();
private:
- virtual ::sal_Int8 doRedraw( const ::com::sun::star::rendering::ViewState& rNewState,
- const ::com::sun::star::rendering::ViewState& rOldState,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvas >& rTargetCanvas,
- bool bSameViewTransform );
+ virtual ::sal_Int8 doRedraw( const ::com::sun::star::rendering::ViewState& rNewState,
+ const ::com::sun::star::rendering::ViewState& rOldState,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvas >& rTargetCanvas,
+ bool bSameViewTransform );
::cairo::SurfaceSharedPtr mpSurface;
- const ::com::sun::star::rendering::RenderState maRenderState;
+ const ::com::sun::star::rendering::RenderState maRenderState;
};
}
diff --git a/canvas/source/cairo/cairo_cairo.cxx b/canvas/source/cairo/cairo_cairo.cxx
index 3b6a3a86814c..71a9bb3f9b3e 100644
--- a/canvas/source/cairo/cairo_cairo.cxx
+++ b/canvas/source/cairo/cairo_cairo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
#ifdef WNT
# include <tools/prewin.h>
-# include <windows.h>
+# include <windows.h>
# include <tools/postwin.h>
#endif
@@ -45,7 +45,7 @@ namespace cairo
{
/****************************************************************************************
* Platform independent part of surface backends for OpenOffice.org Cairo Canvas *
- * For the rest of the functions (and the platform-specific derived *
+ * For the rest of the functions (and the platform-specific derived *
* Surface classes), see platform specific cairo_<platform>_cairo.cxx *
****************************************************************************************/
diff --git a/canvas/source/cairo/cairo_cairo.hxx b/canvas/source/cairo/cairo_cairo.hxx
index a14d107fcc3f..d468d28b4753 100644
--- a/canvas/source/cairo/cairo_cairo.hxx
+++ b/canvas/source/cairo/cairo_cairo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ namespace cairo {
For each cairo-supported platform, there's an implementation of
this interface
*/
- struct Surface
+ struct Surface
{
public:
virtual ~Surface() {}
@@ -84,11 +84,11 @@ namespace cairo {
/// Create Surface from given cairo surface
SurfaceSharedPtr createSurface( const CairoSurfaceSharedPtr& rSurface );
/// Create surface with given dimensions
- SurfaceSharedPtr createSurface( const OutputDevice& rRefDevice,
+ SurfaceSharedPtr createSurface( const OutputDevice& rRefDevice,
int x, int y, int width, int height );
/// Create Surface for given bitmap data
- SurfaceSharedPtr createBitmapSurface( const OutputDevice& rRefDevice,
- const BitmapSystemData& rData,
+ SurfaceSharedPtr createBitmapSurface( const OutputDevice& rRefDevice,
+ const BitmapSystemData& rData,
const Size& rSize );
/// Check whether cairo will work on given window
diff --git a/canvas/source/cairo/cairo_canvas.cxx b/canvas/source/cairo/cairo_canvas.cxx
index 52b947b2cb05..8798751ecde1 100644
--- a/canvas/source/cairo/cairo_canvas.cxx
+++ b/canvas/source/cairo/cairo_canvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@
#ifdef WNT
# include <tools/prewin.h>
-# include <windows.h>
+# include <windows.h>
# include <tools/postwin.h>
#endif
@@ -88,16 +88,16 @@ namespace cairocanvas
ENSURE_ARG_OR_THROW( maArguments.getLength() >= 6 &&
maArguments[0].getValueTypeClass() == uno::TypeClass_HYPER &&
- maArguments[5].getValueTypeClass() == uno::TypeClass_SEQUENCE,
+ maArguments[5].getValueTypeClass() == uno::TypeClass_SEQUENCE,
"Canvas::initialize: wrong number of arguments, or wrong types" );
// We expect a single Any here, containing a pointer to a valid
// VCL output device, on which to output (mostly needed for text)
sal_Int64 nPtr = 0;
maArguments[0] >>= nPtr;
- OutputDevice* pOutDev = reinterpret_cast<OutputDevice*>(nPtr);
-
- ENSURE_ARG_OR_THROW( pOutDev != NULL,
+ OutputDevice* pOutDev = reinterpret_cast<OutputDevice*>(nPtr);
+
+ ENSURE_ARG_OR_THROW( pOutDev != NULL,
"Canvas::initialize: invalid OutDev pointer" );
awt::Rectangle aBounds;
@@ -111,10 +111,10 @@ namespace cairocanvas
throw lang::NoSupportException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"Passed SystemGraphicsData invalid!")),
- NULL);
+ NULL);
bool bHasXRender = IsCairoWorking(pOutDev);
- ENSURE_ARG_OR_THROW( bHasXRender == true,
+ ENSURE_ARG_OR_THROW( bHasXRender == true,
"SpriteCanvas::SpriteCanvas: No RENDER extension" );
// setup helper
@@ -125,7 +125,7 @@ namespace cairocanvas
*this, this );
// forward surface to render on to canvashelper
- maCanvasHelper.setSurface(
+ maCanvasHelper.setSurface(
maDeviceHelper.getSurface(),
false );
@@ -154,7 +154,7 @@ namespace cairocanvas
bool Canvas::repaint( const SurfaceSharedPtr& pSurface,
const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ const rendering::RenderState& renderState )
{
return maCanvasHelper.repaint( pSurface, viewState, renderState );
}
diff --git a/canvas/source/cairo/cairo_canvas.hxx b/canvas/source/cairo/cairo_canvas.hxx
index 02837d03f6b6..163d2fc383aa 100644
--- a/canvas/source/cairo/cairo_canvas.hxx
+++ b/canvas/source/cairo/cairo_canvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,9 +68,9 @@ namespace cairocanvas
::com::sun::star::lang::XMultiServiceFactory,
::com::sun::star::util::XUpdatable,
::com::sun::star::beans::XPropertySet,
- ::com::sun::star::lang::XServiceName > GraphicDeviceBase_Base;
+ ::com::sun::star::lang::XServiceName > GraphicDeviceBase_Base;
typedef ::canvas::GraphicDeviceBase< ::canvas::BaseMutexHelper< GraphicDeviceBase_Base >,
- DeviceHelper,
+ DeviceHelper,
::osl::MutexGuard,
::cppu::OWeakObject > CanvasBase_Base;
@@ -95,9 +95,9 @@ namespace cairocanvas
};
typedef ::canvas::IntegerBitmapBase< CanvasBaseSurfaceProvider_Base,
- CanvasHelper,
+ CanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasBaseT;
+ ::cppu::OWeakObject > CanvasBaseT;
/** Product of this component's factory.
@@ -112,9 +112,9 @@ namespace cairocanvas
public RepaintTarget
{
public:
- Canvas( const ::com::sun::star::uno::Sequence<
+ Canvas( const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Any >& aArguments,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& rxContext );
void initialize();
@@ -134,15 +134,15 @@ namespace cairocanvas
// Classname Base doing refcounting Base implementing the XComponent interface
// | | |
// V V V
- DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( Canvas, GraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
+ DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( Canvas, GraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
// XServiceName
virtual ::rtl::OUString SAL_CALL getServiceName( ) throw (::com::sun::star::uno::RuntimeException);
// RepaintTarget
virtual bool repaint( const ::cairo::SurfaceSharedPtr& pSurface,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
// SurfaceProvider
virtual SurfaceSharedPtr getSurface();
diff --git a/canvas/source/cairo/cairo_canvasbitmap.cxx b/canvas/source/cairo/cairo_canvasbitmap.cxx
index 33ee53ffcf2a..daad97cfa464 100644
--- a/canvas/source/cairo/cairo_canvasbitmap.cxx
+++ b/canvas/source/cairo/cairo_canvasbitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@
# include "cairo_win32_cairo.hxx"
# include <cairo-win32.h>
#else
-# error Native API needed.
+# error Native API needed.
#endif
using namespace ::cairo;
@@ -56,15 +56,15 @@ namespace
{
// cant seem to retrieve HBITMAP from cairo. copy content then
HDC hScreenDC=GetDC(NULL);
- HBITMAP hBmpBitmap = CreateCompatibleBitmap( hScreenDC,
- rSize.getX(),
+ HBITMAP hBmpBitmap = CreateCompatibleBitmap( hScreenDC,
+ rSize.getX(),
rSize.getY() );
- HDC hBmpDC = CreateCompatibleDC( 0 );
+ HDC hBmpDC = CreateCompatibleDC( 0 );
HBITMAP hBmpOld = (HBITMAP) SelectObject( hBmpDC, hBmpBitmap );
- BitBlt( hBmpDC, 0, 0, rSize.getX(), rSize.getX(),
- cairo_win32_surface_get_dc(rSurface->getCairoSurface().get()),
+ BitBlt( hBmpDC, 0, 0, rSize.getX(), rSize.getX(),
+ cairo_win32_surface_get_dc(rSurface->getCairoSurface().get()),
0, 0, SRCCOPY );
SelectObject( hBmpDC, hBmpOld );
@@ -140,7 +140,7 @@ namespace cairocanvas
}
bool CanvasBitmap::repaint( const SurfaceSharedPtr& pSurface,
- const rendering::ViewState& viewState,
+ const rendering::ViewState& viewState,
const rendering::RenderState& renderState )
{
return maCanvasHelper.repaint( pSurface, viewState, renderState );
@@ -152,23 +152,23 @@ namespace cairocanvas
// 0 ... get BitmapEx
// 1 ... get Pixbuf with bitmap RGB content
// 2 ... get Pixbuf with bitmap alpha mask
- switch( nHandle )
+ switch( nHandle )
{
case 0:
{
aRV = uno::Any( reinterpret_cast<sal_Int64>( (BitmapEx*) NULL ) );
break;
}
- case 1:
+ case 1:
{
#ifdef CAIRO_HAS_XLIB_SURFACE
X11Surface* pXlibSurface=dynamic_cast<X11Surface*>(mpBufferSurface.get());
OSL_ASSERT(pXlibSurface);
uno::Sequence< uno::Any > args( 3 );
- args[0] = uno::Any( false ); // do not call XFreePixmap on it
+ args[0] = uno::Any( false ); // do not call XFreePixmap on it
args[1] = uno::Any( pXlibSurface->getPixmap()->mhDrawable );
args[2] = uno::Any( sal_Int32( pXlibSurface->getDepth() ) );
-
+
aRV = uno::Any( args );
#elif defined CAIRO_HAS_QUARTZ_SURFACE
QuartzSurface* pQuartzSurface = dynamic_cast<QuartzSurface*>(mpBufferSurface.get());
@@ -181,7 +181,7 @@ namespace cairocanvas
// the alpha channel is ignored here.
uno::Sequence< uno::Any > args( 1 );
args[1] = uno::Any( sal_Int64(surface2HBitmap(mpBufferSurface,maSize)) );
-
+
aRV = uno::Any( args );
// caller frees the bitmap
#else
@@ -189,7 +189,7 @@ namespace cairocanvas
#endif
break;
}
- case 2:
+ case 2:
{
#ifdef CAIRO_HAS_XLIB_SURFACE
uno::Sequence< uno::Any > args( 3 );
@@ -197,8 +197,8 @@ namespace cairocanvas
CairoSharedPtr pAlphaCairo = pAlphaSurface->getCairo();
X11Surface* pXlibSurface=dynamic_cast<X11Surface*>(pAlphaSurface.get());
OSL_ASSERT(pXlibSurface);
-
- // create RGB image (levels of gray) of alpha channel of original picture
+
+ // create RGB image (levels of gray) of alpha channel of original picture
cairo_set_source_rgba( pAlphaCairo.get(), 1, 1, 1, 1 );
cairo_set_operator( pAlphaCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pAlphaCairo.get() );
@@ -206,22 +206,22 @@ namespace cairocanvas
cairo_set_operator( pAlphaCairo.get(), CAIRO_OPERATOR_XOR );
cairo_paint( pAlphaCairo.get() );
pAlphaCairo.reset();
-
+
X11PixmapSharedPtr pPixmap = pXlibSurface->getPixmap();
args[0] = uno::Any( true );
args[1] = ::com::sun::star::uno::Any( pPixmap->mhDrawable );
args[2] = ::com::sun::star::uno::Any( sal_Int32( pXlibSurface->getDepth () ) );
- pPixmap->clear(); // caller takes ownership of pixmap
-
- // return pixmap and alphachannel pixmap - it will be used in BitmapEx
+ pPixmap->clear(); // caller takes ownership of pixmap
+
+ // return pixmap and alphachannel pixmap - it will be used in BitmapEx
aRV = uno::Any( args );
#elif defined CAIRO_HAS_QUARTZ_SURFACE
SurfaceSharedPtr pAlphaSurface = mpSurfaceProvider->createSurface( maSize, CAIRO_CONTENT_COLOR );
CairoSharedPtr pAlphaCairo = pAlphaSurface->getCairo();
QuartzSurface* pQuartzSurface=dynamic_cast<QuartzSurface*>(pAlphaSurface.get());
OSL_ASSERT(pQuartzSurface);
-
- // create RGB image (levels of gray) of alpha channel of original picture
+
+ // create RGB image (levels of gray) of alpha channel of original picture
cairo_set_source_rgba( pAlphaCairo.get(), 1, 1, 1, 1 );
cairo_set_operator( pAlphaCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pAlphaCairo.get() );
@@ -229,16 +229,16 @@ namespace cairocanvas
cairo_set_operator( pAlphaCairo.get(), CAIRO_OPERATOR_XOR );
cairo_paint( pAlphaCairo.get() );
pAlphaCairo.reset();
-
+
uno::Sequence< uno::Any > args( 1 );
args[0] = uno::Any( sal_IntPtr (pQuartzSurface->getCGContext()) );
- // return ??? and alphachannel ??? - it will be used in BitmapEx
+ // return ??? and alphachannel ??? - it will be used in BitmapEx
aRV = uno::Any( args );
#elif defined CAIRO_HAS_WIN32_SURFACE
SurfaceSharedPtr pAlphaSurface = mpSurfaceProvider->createSurface( maSize, CAIRO_CONTENT_COLOR );
CairoSharedPtr pAlphaCairo = pAlphaSurface->getCairo();
-
- // create RGB image (levels of gray) of alpha channel of original picture
+
+ // create RGB image (levels of gray) of alpha channel of original picture
cairo_set_source_rgba( pAlphaCairo.get(), 1, 1, 1, 1 );
cairo_set_operator( pAlphaCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pAlphaCairo.get() );
@@ -250,7 +250,7 @@ namespace cairocanvas
// cant seem to retrieve HBITMAP from cairo. copy content then
uno::Sequence< uno::Any > args( 1 );
args[1] = uno::Any( sal_Int64(surface2HBitmap(pAlphaSurface,maSize)) );
-
+
aRV = uno::Any( args );
// caller frees the bitmap
#else
@@ -280,7 +280,7 @@ namespace cairocanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
diff --git a/canvas/source/cairo/cairo_canvasbitmap.hxx b/canvas/source/cairo/cairo_canvasbitmap.hxx
index 532ce8d26b41..c61b6583bd91 100644
--- a/canvas/source/cairo/cairo_canvasbitmap.hxx
+++ b/canvas/source/cairo/cairo_canvasbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,18 +56,18 @@ namespace cairocanvas
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::rendering::XBitmapCanvas,
::com::sun::star::rendering::XIntegerBitmap,
::com::sun::star::lang::XServiceInfo,
- ::com::sun::star::beans::XFastPropertySet > CanvasBitmapBase_Base;
- class CanvasBitmapSpriteSurface_Base :
+ ::com::sun::star::beans::XFastPropertySet > CanvasBitmapBase_Base;
+ class CanvasBitmapSpriteSurface_Base :
public ::canvas::BaseMutexHelper<CanvasBitmapBase_Base>,
public SurfaceProvider
{
};
- typedef ::canvas::IntegerBitmapBase<
+ typedef ::canvas::IntegerBitmapBase<
CanvasBitmapSpriteSurface_Base,
- CanvasHelper,
+ CanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasBitmap_Base;
+ ::cppu::OWeakObject > CanvasBitmap_Base;
class CanvasBitmap : public CanvasBitmap_Base,
public RepaintTarget
@@ -77,7 +77,7 @@ namespace cairocanvas
@param rSize
Size of the bitmap
-
+
@param rDevice
Reference device, with which bitmap should be compatible
*/
@@ -94,7 +94,7 @@ namespace cairocanvas
// Classname Base doing refcounting Base implementing the XComponent interface
// | | |
// V V V
- DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( CanvasBitmap, CanvasBitmapBase_Base, ::cppu::WeakComponentImplHelperBase );
+ DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( CanvasBitmap, CanvasBitmapBase_Base, ::cppu::WeakComponentImplHelperBase );
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
@@ -110,7 +110,7 @@ namespace cairocanvas
// RepaintTarget
virtual bool repaint( const SurfaceSharedPtr& pSurface,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
// XFastPropertySet
diff --git a/canvas/source/cairo/cairo_canvascustomsprite.cxx b/canvas/source/cairo/cairo_canvascustomsprite.cxx
index b78bf44c3313..187c4d1c4462 100644
--- a/canvas/source/cairo/cairo_canvascustomsprite.cxx
+++ b/canvas/source/cairo/cairo_canvascustomsprite.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ using namespace ::com::sun::star;
namespace cairocanvas
{
- CanvasCustomSprite::CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ CanvasCustomSprite::CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rRefDevice ) :
mpSpriteCanvas( rRefDevice ),
maSize( ::canvas::tools::roundUp( rSpriteSize.Width ),
@@ -65,8 +65,8 @@ namespace cairocanvas
mpBufferSurface = mpSpriteCanvas->createSurface( maSize );
- maCanvasHelper.init( maSize,
- *rRefDevice,
+ maCanvasHelper.init( maSize,
+ *rRefDevice,
rRefDevice.get() );
maCanvasHelper.setSurface( mpBufferSurface, true );
@@ -77,7 +77,7 @@ namespace cairocanvas
// clear sprite to 100% transparent
maCanvasHelper.clear();
}
-
+
void SAL_CALL CanvasCustomSprite::disposing()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -104,16 +104,16 @@ namespace cairocanvas
::osl::MutexGuard aGuard( m_aMutex );
maSpriteHelper.redraw( pCairo,
- rOrigOutputPos,
- mbSurfaceDirty,
+ rOrigOutputPos,
+ mbSurfaceDirty,
bBufferedUpdate );
mbSurfaceDirty = false;
}
bool CanvasCustomSprite::repaint( const SurfaceSharedPtr& pSurface,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
return maCanvasHelper.repaint( pSurface, viewState, renderState );
}
@@ -170,7 +170,7 @@ namespace cairocanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
}
diff --git a/canvas/source/cairo/cairo_canvascustomsprite.hxx b/canvas/source/cairo/cairo_canvascustomsprite.hxx
index d9b525716690..cad0eafc739f 100644
--- a/canvas/source/cairo/cairo_canvascustomsprite.hxx
+++ b/canvas/source/cairo/cairo_canvascustomsprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ namespace cairocanvas
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::rendering::XCustomSprite,
::com::sun::star::rendering::XBitmapCanvas,
::com::sun::star::rendering::XIntegerBitmap,
- ::com::sun::star::lang::XServiceInfo > CanvasCustomSpriteBase_Base;
+ ::com::sun::star::lang::XServiceInfo > CanvasCustomSpriteBase_Base;
/** Mixin Sprite
Have to mixin the Sprite interface before deriving from
@@ -83,10 +83,10 @@ namespace cairocanvas
};
typedef ::canvas::CanvasCustomSpriteBase< CanvasCustomSpriteSpriteBase_Base,
- SpriteHelper,
- CanvasHelper,
+ SpriteHelper,
+ CanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasCustomSpriteBaseT;
+ ::cppu::OWeakObject > CanvasCustomSpriteBaseT;
/* Definition of CanvasCustomSprite class */
@@ -108,7 +108,7 @@ namespace cairocanvas
@param rDevice
Target DX device
*/
- CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rRefDevice );
virtual void SAL_CALL disposing();
@@ -134,7 +134,7 @@ namespace cairocanvas
// RepaintTarget
virtual bool repaint( const ::cairo::SurfaceSharedPtr& pSurface,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
// SurfaceProvider
@@ -146,7 +146,7 @@ namespace cairocanvas
private:
/** MUST hold here, too, since CanvasHelper only contains a
- raw pointer (without refcounting)
+ raw pointer (without refcounting)
*/
SpriteCanvasRef mpSpriteCanvas;
::cairo::SurfaceSharedPtr mpBufferSurface;
diff --git a/canvas/source/cairo/cairo_canvasfont.cxx b/canvas/source/cairo/cairo_canvasfont.cxx
index b6d83413e113..780951f18cf4 100644
--- a/canvas/source/cairo/cairo_canvasfont.cxx
+++ b/canvas/source/cairo/cairo_canvasfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,10 +47,10 @@ using namespace ::com::sun::star;
namespace cairocanvas
{
- CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
- const uno::Sequence< beans::PropertyValue >& /*rExtraFontProperties*/,
- const geometry::Matrix2D& rFontMatrix,
- const SurfaceProviderRef& rDevice ) :
+ CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
+ const uno::Sequence< beans::PropertyValue >& /*rExtraFontProperties*/,
+ const geometry::Matrix2D& rFontMatrix,
+ const SurfaceProviderRef& rDevice ) :
CanvasFont_Base( m_aMutex ),
maFont( Font( rFontRequest.FontDescription.FamilyName,
rFontRequest.FontDescription.StyleName,
@@ -84,7 +84,7 @@ namespace cairocanvas
const Size aSize = pOutDev->GetFontMetric( *maFont ).GetSize();
const double fDividend( rFontMatrix.m10 + rFontMatrix.m11 );
- double fStretch = (rFontMatrix.m00 + rFontMatrix.m01);
+ double fStretch = (rFontMatrix.m00 + rFontMatrix.m01);
if( !::basegfx::fTools::equalZero( fDividend) )
fStretch /= fDividend;
@@ -112,9 +112,9 @@ namespace cairocanvas
if( !mpRefDevice.is() )
return uno::Reference< rendering::XTextLayout >(); // we're disposed
- return new TextLayout( aText,
- nDirection,
- nRandomSeed,
+ return new TextLayout( aText,
+ nDirection,
+ nRandomSeed,
Reference( this ),
mpRefDevice );
}
diff --git a/canvas/source/cairo/cairo_canvasfont.hxx b/canvas/source/cairo/cairo_canvasfont.hxx
index d471082c70ff..e9394c0640ea 100644
--- a/canvas/source/cairo/cairo_canvasfont.hxx
+++ b/canvas/source/cairo/cairo_canvasfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ namespace cairocanvas
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XCanvasFont,
::com::sun::star::lang::XServiceInfo > CanvasFont_Base;
- class CanvasFont : public ::comphelper::OBaseMutex,
+ class CanvasFont : public ::comphelper::OBaseMutex,
public CanvasFont_Base,
private ::boost::noncopyable
{
@@ -64,10 +64,10 @@ namespace cairocanvas
CanvasFont,
::com::sun::star::rendering::XCanvasFont > Reference;
- CanvasFont( const ::com::sun::star::rendering::FontRequest& fontRequest,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
- const ::com::sun::star::geometry::Matrix2D& rFontMatrix,
- const SurfaceProviderRef& rDevice );
+ CanvasFont( const ::com::sun::star::rendering::FontRequest& fontRequest,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::geometry::Matrix2D& rFontMatrix,
+ const SurfaceProviderRef& rDevice );
/// Dispose all internal references
virtual void SAL_CALL disposing();
@@ -87,9 +87,9 @@ namespace cairocanvas
::Font getVCLFont() const;
private:
- ::canvas::vcltools::VCLObject<Font> maFont;
+ ::canvas::vcltools::VCLObject<Font> maFont;
::com::sun::star::rendering::FontRequest maFontRequest;
- SurfaceProviderRef mpRefDevice;
+ SurfaceProviderRef mpRefDevice;
};
}
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index f664a0182517..29cf38e968e0 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -228,7 +228,7 @@ namespace cairocanvas
compositingMode = CAIRO_OPERATOR_SATURATE;
break;
}
- cairo_set_operator( mpCairo.get(), compositingMode );
+ cairo_set_operator( mpCairo.get(), compositingMode );
}
void CanvasHelper::clear()
@@ -248,7 +248,7 @@ namespace cairocanvas
else
cairo_set_source_rgb( mpCairo.get(), 1.0, 1.0, 1.0 );
cairo_set_operator( mpCairo.get(), CAIRO_OPERATOR_SOURCE );
-
+
cairo_rectangle( mpCairo.get(), 0, 0, maSize.getX(), maSize.getY() );
cairo_fill( mpCairo.get() );
@@ -256,18 +256,18 @@ namespace cairocanvas
}
}
- void CanvasHelper::drawPoint( const rendering::XCanvas* ,
- const geometry::RealPoint2D& ,
- const rendering::ViewState& ,
- const rendering::RenderState& )
+ void CanvasHelper::drawPoint( const rendering::XCanvas* ,
+ const geometry::RealPoint2D& ,
+ const rendering::ViewState& ,
+ const rendering::RenderState& )
{
}
- void CanvasHelper::drawLine( const rendering::XCanvas* /*pCanvas*/,
- const geometry::RealPoint2D& aStartPoint,
- const geometry::RealPoint2D& aEndPoint,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasHelper::drawLine( const rendering::XCanvas* /*pCanvas*/,
+ const geometry::RealPoint2D& aStartPoint,
+ const geometry::RealPoint2D& aEndPoint,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
if( mpCairo ) {
cairo_save( mpCairo.get() );
@@ -284,11 +284,11 @@ namespace cairocanvas
}
}
- void CanvasHelper::drawBezier( const rendering::XCanvas* ,
- const geometry::RealBezierSegment2D& aBezierSegment,
- const geometry::RealPoint2D& aEndPoint,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasHelper::drawBezier( const rendering::XCanvas* ,
+ const geometry::RealBezierSegment2D& aBezierSegment,
+ const geometry::RealPoint2D& aEndPoint,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
if( mpCairo ) {
cairo_save( mpCairo.get() );
@@ -298,7 +298,7 @@ namespace cairocanvas
useStates( viewState, renderState, true );
cairo_move_to( mpCairo.get(), aBezierSegment.Px + 0.5, aBezierSegment.Py + 0.5 );
- cairo_curve_to( mpCairo.get(),
+ cairo_curve_to( mpCairo.get(),
aBezierSegment.C1x + 0.5, aBezierSegment.C1y + 0.5,
aBezierSegment.C2x + 0.5, aBezierSegment.C2y + 0.5,
aEndPoint.X + 0.5, aEndPoint.Y + 0.5 );
@@ -326,7 +326,7 @@ namespace cairocanvas
CanvasBitmap* pBitmapImpl = dynamic_cast< CanvasBitmap* >( xBitmap.get() );
if( pBitmapImpl )
return pBitmapImpl->getSurface();
-
+
SurfaceProvider* pSurfaceProvider = dynamic_cast<SurfaceProvider*>( xBitmap.get() );
if( pSurfaceProvider )
return pSurfaceProvider->getSurface();
@@ -337,16 +337,16 @@ namespace cairocanvas
static ::BitmapEx bitmapExFromXBitmap( const uno::Reference< rendering::XBitmap >& xBitmap )
{
// TODO(F1): Add support for floating point bitmap formats
- uno::Reference<rendering::XIntegerReadOnlyBitmap> xIntBmp(xBitmap,
+ uno::Reference<rendering::XIntegerReadOnlyBitmap> xIntBmp(xBitmap,
uno::UNO_QUERY_THROW);
::BitmapEx aBmpEx = ::vcl::unotools::bitmapExFromXBitmap(xIntBmp);
if( !!aBmpEx )
return aBmpEx;
// TODO(F1): extract pixel from XBitmap interface
- ENSURE_OR_THROW( false,
+ ENSURE_OR_THROW( false,
"bitmapExFromXBitmap(): could not extract BitmapEx" );
-
+
return ::BitmapEx();
}
@@ -409,7 +409,7 @@ namespace cairocanvas
SurfaceSharedPtr pSurface = surfaceFromXBitmap( xBitmap );
if( pSurface )
data = NULL;
- else
+ else
{
::BitmapEx aBmpEx = bitmapExFromXBitmap(xBitmap);
::Bitmap aBitmap = aBmpEx.GetBitmap();
@@ -426,10 +426,10 @@ namespace cairocanvas
if( !pSurface ) {
AlphaMask aAlpha = aBmpEx.GetAlpha();
- ::BitmapReadAccess* pBitmapReadAcc = aBitmap.AcquireReadAccess();
- ::BitmapReadAccess* pAlphaReadAcc = NULL;
- const long nWidth = pBitmapReadAcc->Width();
- const long nHeight = pBitmapReadAcc->Height();
+ ::BitmapReadAccess* pBitmapReadAcc = aBitmap.AcquireReadAccess();
+ ::BitmapReadAccess* pAlphaReadAcc = NULL;
+ const long nWidth = pBitmapReadAcc->Width();
+ const long nHeight = pBitmapReadAcc->Height();
long nX, nY;
bool bIsAlpha = false;
@@ -625,29 +625,29 @@ namespace cairocanvas
}
}
}
-
+
aBitmap.ReleaseAccess( pBitmapReadAcc );
if( pAlphaReadAcc )
aAlpha.ReleaseAccess( pAlphaReadAcc );
SurfaceSharedPtr pImageSurface = createSurface(
CairoSurfaceSharedPtr(
- cairo_image_surface_create_for_data(
+ cairo_image_surface_create_for_data(
data,
bIsAlpha ? CAIRO_FORMAT_ARGB32 : CAIRO_FORMAT_RGB24,
nWidth, nHeight, nWidth*4 ),
&cairo_surface_destroy) );
+
+ // pSurface = rSurfaceProvider->getSurface( ::basegfx::B2ISize( nWidth, nHeight ), bIsAlpha ? CAIRO_CONTENT_COLOR_ALPHA : CAIRO_CONTENT_COLOR );
+ // Cairo* pTargetCairo = cairo_create( pSurface );
+ // cairo_set_source_surface( pTargetCairo, pImageSurface, 0, 0 );
- // pSurface = rSurfaceProvider->getSurface( ::basegfx::B2ISize( nWidth, nHeight ), bIsAlpha ? CAIRO_CONTENT_COLOR_ALPHA : CAIRO_CONTENT_COLOR );
- // Cairo* pTargetCairo = cairo_create( pSurface );
- // cairo_set_source_surface( pTargetCairo, pImageSurface, 0, 0 );
-
- // //if( !bIsAlpha )
- // //cairo_set_operator( pTargetCairo, CAIRO_OPERATOR_SOURCE );
+ // //if( !bIsAlpha )
+ // //cairo_set_operator( pTargetCairo, CAIRO_OPERATOR_SOURCE );
- // cairo_paint( pTargetCairo );
- // cairo_destroy( pTargetCairo );
- // cairo_surface_destroy( pImageSurface );
+ // cairo_paint( pTargetCairo );
+ // cairo_destroy( pTargetCairo );
+ // cairo_surface_destroy( pImageSurface );
pSurface = pImageSurface;
bHasAlpha = bIsAlpha;
@@ -811,10 +811,10 @@ namespace cairocanvas
uno::Reference< lang::XServiceInfo > xRef( aTexture.Gradient, uno::UNO_QUERY );
OSL_TRACE( "gradient fill" );
- if( xRef.is() &&
+ if( xRef.is() &&
xRef->getImplementationName().equals( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( PARAMETRICPOLYPOLYGON_IMPLEMENTATION_NAME ) ) ) ) {
// TODO(Q1): Maybe use dynamic_cast here
-
+
// TODO(E1): Return value
// TODO(F1): FillRule
OSL_TRACE( "known implementation" );
@@ -828,12 +828,12 @@ namespace cairocanvas
aTransform.m11, aTransform.m02, aTransform.m12);
if( pPolyImpl->getValues().meType == canvas::ParametricPolyPolygon::GRADIENT_RECTANGULAR )
{
- // no general path gradient yet in cairo; emulate then
+ // no general path gradient yet in cairo; emulate then
cairo_save( pCairo );
cairo_clip( pCairo );
// fill bound rect with start color
- cairo_rectangle( pCairo, rBounds.getMinX(), rBounds.getMinY(),
+ cairo_rectangle( pCairo, rBounds.getMinX(), rBounds.getMinY(),
rBounds.getWidth(), rBounds.getHeight() );
setColor(pCairo,pPolyImpl->getValues().maColors[0]);
cairo_fill(pCairo);
@@ -841,8 +841,8 @@ namespace cairocanvas
cairo_transform( pCairo, &aTextureMatrix );
// longest line in gradient bound rect
- const unsigned int nGradientSize(
- static_cast<unsigned int>(
+ const unsigned int nGradientSize(
+ static_cast<unsigned int>(
::basegfx::B2DVector(rBounds.getMinimum() - rBounds.getMaximum()).getLength() + 1.0 ) );
// typical number for pixel of the same color (strip size)
@@ -850,10 +850,10 @@ namespace cairocanvas
// use at least three steps, and at utmost the number of color
// steps
- const unsigned int nStepCount(
- ::std::max(
+ const unsigned int nStepCount(
+ ::std::max(
3U,
- ::std::min(
+ ::std::min(
nGradientSize / nStripSize,
128U )) + 1 );
@@ -861,7 +861,7 @@ namespace cairocanvas
basegfx::tools::KeyStopLerp aLerper(pPolyImpl->getValues().maStops);
for( unsigned int i=1; i<nStepCount; ++i )
{
- const double fT( i/double(nStepCount) );
+ const double fT( i/double(nStepCount) );
std::ptrdiff_t nIndex;
double fAlpha;
@@ -940,7 +940,7 @@ namespace cairocanvas
rendering::FillRule eFillrule )
{
if( pTextures )
- ENSURE_ARG_OR_THROW( pTextures->getLength(),
+ ENSURE_ARG_OR_THROW( pTextures->getLength(),
"CanvasHelper::fillTexturedPolyPolygon: empty texture sequence");
bool bOpToDo = false;
@@ -951,8 +951,8 @@ namespace cairocanvas
cairo_matrix_init_identity( &aIdentityMatrix );
cairo_set_matrix( pCairo, &aIdentityMatrix );
- cairo_set_fill_rule( pCairo,
- eFillrule == rendering::FillRule_EVEN_ODD ?
+ cairo_set_fill_rule( pCairo,
+ eFillrule == rendering::FillRule_EVEN_ODD ?
CAIRO_FILL_RULE_EVEN_ODD : CAIRO_FILL_RULE_WINDING );
for( sal_uInt32 nPolygonIndex = 0; nPolygonIndex < aPolyPolygon.count(); nPolygonIndex++ ) {
@@ -960,7 +960,7 @@ namespace cairocanvas
const sal_uInt32 nPointCount( aPolygon.count() );
// to correctly render closed curves, need to output first
// point twice (so output one additional point)
- const sal_uInt32 nExtendedPointCount( nPointCount +
+ const sal_uInt32 nExtendedPointCount( nPointCount +
aPolygon.isClosed()*aPolygon.areControlPointsUsed() );
if( nPointCount > 1) {
@@ -999,7 +999,7 @@ namespace cairocanvas
nAY = aA.getY();
nBX = aB.getX();
nBY = aB.getY();
-
+
if( aOperation == Stroke ) {
nAX += 0.5;
nAY += 0.5;
@@ -1008,7 +1008,7 @@ namespace cairocanvas
}
cairo_matrix_transform_point( &aOrigMatrix, &nAX, &nAY );
cairo_matrix_transform_point( &aOrigMatrix, &nBX, &nBY );
- cairo_curve_to( pCairo, nAX, nAY, nBX, nBY, nX, nY );
+ cairo_curve_to( pCairo, nAX, nAY, nBX, nBY, nX, nY );
} else {
cairo_line_to( pCairo, nX, nY );
OSL_TRACE( "line to %f,%f", nX, nY );
@@ -1049,7 +1049,7 @@ namespace cairocanvas
const uno::Sequence< rendering::Texture >* pTextures,
Cairo* pCairo ) const
{
- const ::basegfx::B2DPolyPolygon& rPolyPoly(
+ const ::basegfx::B2DPolyPolygon& rPolyPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon) );
if( !pCairo )
@@ -1076,7 +1076,7 @@ namespace cairocanvas
aEdge.setB2DPoint(1, aCandidate.getB2DPoint(nNextIndex));
aEdge.setNextControlPoint(0, aCandidate.getNextControlPoint(b % nPointCount));
aEdge.setPrevControlPoint(1, aCandidate.getPrevControlPoint(nNextIndex));
-
+
doPolyPolygonImplementation( basegfx::B2DPolyPolygon(aEdge),
aOperation,
pCairo, pTextures,
@@ -1091,31 +1091,31 @@ namespace cairocanvas
}
else
{
- doPolyPolygonImplementation( rPolyPoly, aOperation,
- pCairo, pTextures,
+ doPolyPolygonImplementation( rPolyPoly, aOperation,
+ pCairo, pTextures,
mpSurfaceProvider,
xPolyPolygon->getFillRule() );
}
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawPolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawPolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
#ifdef CAIRO_CANVAS_PERF_TRACE
struct timespec aTimer;
mxDevice->startPerfTrace( &aTimer );
#endif
-
+
if( mpCairo ) {
cairo_save( mpCairo.get() );
-
+
cairo_set_line_width( mpCairo.get(), 1 );
-
+
useStates( viewState, renderState, true );
doPolyPolygonPath( xPolyPolygon, Stroke );
-
+
cairo_restore( mpCairo.get() );
} else
OSL_TRACE ("CanvasHelper called after it was disposed");
@@ -1127,11 +1127,11 @@ namespace cairocanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokePolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const rendering::StrokeAttributes& strokeAttributes )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokePolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const rendering::StrokeAttributes& strokeAttributes )
{
#ifdef CAIRO_CANVAS_PERF_TRACE
struct timespec aTimer;
@@ -1167,7 +1167,7 @@ namespace cairocanvas
bool bNoLineJoin(false);
switch( strokeAttributes.JoinType ) {
- // cairo doesn't have join type NONE so we use MITER as it's pretty close
+ // cairo doesn't have join type NONE so we use MITER as it's pretty close
case rendering::PathJoinType::NONE:
bNoLineJoin = true;
case rendering::PathJoinType::MITER:
@@ -1205,43 +1205,43 @@ namespace cairocanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const uno::Reference< geometry::XMapping2D >& /*xMapping*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const uno::Reference< geometry::XMapping2D >& /*xMapping*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XPolyPolygon2D > CanvasHelper::queryStrokeShapes( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XPolyPolygon2D > CanvasHelper::queryStrokeShapes( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XPolyPolygon2D >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
#ifdef CAIRO_CANVAS_PERF_TRACE
struct timespec aTimer;
@@ -1253,7 +1253,7 @@ namespace cairocanvas
useStates( viewState, renderState, true );
doPolyPolygonPath( xPolyPolygon, Fill );
-
+
cairo_restore( mpCairo.get() );
} else
OSL_TRACE ("CanvasHelper called after it was disposed");
@@ -1265,11 +1265,11 @@ namespace cairocanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* ,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* ,
const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const uno::Sequence< rendering::Texture >& textures )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const uno::Sequence< rendering::Texture >& textures )
{
if( mpCairo ) {
cairo_save( mpCairo.get() );
@@ -1283,19 +1283,19 @@ namespace cairocanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const uno::Reference< geometry::XMapping2D >& /*xMapping*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const uno::Reference< geometry::XMapping2D >& /*xMapping*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::implDrawBitmapSurface( const rendering::XCanvas* pCanvas,
- const SurfaceSharedPtr& pInputSurface,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::implDrawBitmapSurface( const rendering::XCanvas* pCanvas,
+ const SurfaceSharedPtr& pInputSurface,
const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
const geometry::IntegerSize2D& rSize,
@@ -1314,8 +1314,8 @@ namespace cairocanvas
useStates( viewState, renderState, true );
- // if( !bHasAlpha )
- // cairo_set_operator( mpCairo.get(), CAIRO_OPERATOR_SOURCE );
+ // if( !bHasAlpha )
+ // cairo_set_operator( mpCairo.get(), CAIRO_OPERATOR_SOURCE );
Matrix aMatrix;
@@ -1334,7 +1334,7 @@ namespace cairocanvas
aBitmapSize.Width = static_cast<sal_Int32>( dWidth );
aBitmapSize.Height = static_cast<sal_Int32>( dHeight );
- SurfaceSharedPtr pScaledSurface = mpSurfaceProvider->createSurface(
+ SurfaceSharedPtr pScaledSurface = mpSurfaceProvider->createSurface(
::basegfx::B2ISize( aBitmapSize.Width, aBitmapSize.Height ),
bHasAlpha ? CAIRO_CONTENT_COLOR_ALPHA : CAIRO_CONTENT_COLOR );
CairoSharedPtr pCairo = pScaledSurface->getCairo();
@@ -1350,9 +1350,9 @@ namespace cairocanvas
aMatrix.xx = aMatrix.yy = 1;
cairo_set_matrix( mpCairo.get(), &aMatrix );
- rv = uno::Reference< rendering::XCachedPrimitive >(
- new CachedBitmap( pSurface, viewState, renderState,
- // cast away const, need to
+ rv = uno::Reference< rendering::XCachedPrimitive >(
+ new CachedBitmap( pSurface, viewState, renderState,
+ // cast away const, need to
// change refcount (as this is
// ~invisible to client code,
// still logically const)
@@ -1411,10 +1411,10 @@ namespace cairocanvas
return rv; // uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmap( const rendering::XCanvas* pCanvas,
- const uno::Reference< rendering::XBitmap >& xBitmap,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmap( const rendering::XCanvas* pCanvas,
+ const uno::Reference< rendering::XBitmap >& xBitmap,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
#ifdef CAIRO_CANVAS_PERF_TRACE
struct timespec aTimer;
@@ -1442,10 +1442,10 @@ namespace cairocanvas
return rv;
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* pCanvas,
- const uno::Reference< rendering::XBitmap >& xBitmap,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* pCanvas,
+ const uno::Reference< rendering::XBitmap >& xBitmap,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
#ifdef CAIRO_CANVAS_PERF_TRACE
struct timespec aTimer;
@@ -1478,14 +1478,14 @@ namespace cairocanvas
return uno::Reference< rendering::XGraphicDevice >(mpDevice);
}
- void CanvasHelper::copyRect( const rendering::XCanvas* ,
- const uno::Reference< rendering::XBitmapCanvas >& /*sourceCanvas*/,
- const geometry::RealRectangle2D& /*sourceRect*/,
- const rendering::ViewState& /*sourceViewState*/,
- const rendering::RenderState& /*sourceRenderState*/,
- const geometry::RealRectangle2D& /*destRect*/,
- const rendering::ViewState& /*destViewState*/,
- const rendering::RenderState& /*destRenderState*/ )
+ void CanvasHelper::copyRect( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XBitmapCanvas >& /*sourceCanvas*/,
+ const geometry::RealRectangle2D& /*sourceRect*/,
+ const rendering::ViewState& /*sourceViewState*/,
+ const rendering::RenderState& /*sourceRenderState*/,
+ const geometry::RealRectangle2D& /*destRect*/,
+ const rendering::ViewState& /*destViewState*/,
+ const rendering::RenderState& /*destRenderState*/ )
{
// TODO(F2): copyRect NYI
}
@@ -1498,8 +1498,8 @@ namespace cairocanvas
return ::basegfx::unotools::integerSize2DFromB2ISize( maSize );
}
- uno::Reference< rendering::XBitmap > CanvasHelper::getScaledBitmap( const geometry::RealSize2D& newSize,
- sal_Bool /*beFast*/ )
+ uno::Reference< rendering::XBitmap > CanvasHelper::getScaledBitmap( const geometry::RealSize2D& newSize,
+ sal_Bool /*beFast*/ )
{
#ifdef CAIRO_CANVAS_PERF_TRACE
struct timespec aTimer;
@@ -1520,7 +1520,7 @@ namespace cairocanvas
return uno::Reference< rendering::XBitmap >();
}
- uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& aLayout,
+ uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& aLayout,
const geometry::IntegerRectangle2D& rect )
{
if( mpCairo ) {
@@ -1538,30 +1538,30 @@ namespace cairocanvas
cairo_paint( pCairo );
cairo_destroy( pCairo );
cairo_surface_destroy( pImageSurface );
-
+
aLayout.ScanLines = nHeight;
aLayout.ScanLineBytes = nWidth*4;
aLayout.ScanLineStride = aLayout.ScanLineBytes;
-
+
return aRes;
}
-
+
return uno::Sequence< sal_Int8 >();
}
- void CanvasHelper::setData( const uno::Sequence< sal_Int8 >& /*data*/,
- const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
- const geometry::IntegerRectangle2D& /*rect*/ )
+ void CanvasHelper::setData( const uno::Sequence< sal_Int8 >& /*data*/,
+ const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ const geometry::IntegerRectangle2D& /*rect*/ )
{
}
- void CanvasHelper::setPixel( const uno::Sequence< sal_Int8 >& /*color*/,
- const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ void CanvasHelper::setPixel( const uno::Sequence< sal_Int8 >& /*color*/,
+ const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerPoint2D& /*pos*/ )
{
}
- uno::Sequence< sal_Int8 > CanvasHelper::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ uno::Sequence< sal_Int8 > CanvasHelper::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerPoint2D& /*pos*/ )
{
return uno::Sequence< sal_Int8 >();
@@ -1573,8 +1573,8 @@ namespace cairocanvas
return uno::Reference< rendering::XBitmapPalette >();
}
- namespace
- {
+ namespace
+ {
class CairoColorSpace : public cppu::WeakImplHelper1< com::sun::star::rendering::XIntegerBitmapColorSpace >
{
private:
@@ -1597,8 +1597,8 @@ namespace cairocanvas
{
return uno::Sequence< beans::PropertyValue >();
}
- virtual uno::Sequence< double > SAL_CALL convertColorSpace( const uno::Sequence< double >& deviceColor,
- const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< double > SAL_CALL convertColorSpace( const uno::Sequence< double >& deviceColor,
+ const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
// TODO(P3): if we know anything about target
@@ -1611,7 +1611,7 @@ namespace cairocanvas
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -1632,7 +1632,7 @@ namespace cairocanvas
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -1653,7 +1653,7 @@ namespace cairocanvas
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -1731,15 +1731,15 @@ namespace cairocanvas
{
return util::Endianness::LITTLE;
}
- virtual uno::Sequence<double> SAL_CALL convertFromIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& deviceColor,
- const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence<double> SAL_CALL convertFromIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& deviceColor,
+ const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
if( dynamic_cast<CairoColorSpace*>(targetColorSpace.get()) )
{
const sal_Int8* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -1763,8 +1763,8 @@ namespace cairocanvas
return targetColorSpace->convertFromARGB(aIntermediate);
}
}
- virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertToIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& deviceColor,
- const uno::Reference< rendering::XIntegerBitmapColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertToIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& deviceColor,
+ const uno::Reference< rendering::XIntegerBitmapColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
if( dynamic_cast<CairoColorSpace*>(targetColorSpace.get()) )
@@ -1785,7 +1785,7 @@ namespace cairocanvas
{
const sal_Int8* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -1810,7 +1810,7 @@ namespace cairocanvas
{
const sal_Int8* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -1835,7 +1835,7 @@ namespace cairocanvas
{
const sal_Int8* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -1908,7 +1908,7 @@ namespace cairocanvas
}
public:
- CairoColorSpace() :
+ CairoColorSpace() :
maComponentTags(4),
maBitCounts(4)
{
@@ -1919,21 +1919,21 @@ namespace cairocanvas
pTags[2] = rendering::ColorComponentTag::RGB_RED;
pTags[3] = rendering::ColorComponentTag::PREMULTIPLIED_ALPHA;
- pBitCounts[0] =
- pBitCounts[1] =
- pBitCounts[2] =
+ pBitCounts[0] =
+ pBitCounts[1] =
+ pBitCounts[2] =
pBitCounts[3] = 8;
}
};
struct CairoColorSpaceHolder : public rtl::StaticWithInit<uno::Reference<rendering::XIntegerBitmapColorSpace>,
- CairoColorSpaceHolder>
+ CairoColorSpaceHolder>
{
uno::Reference<rendering::XIntegerBitmapColorSpace> operator()()
{
return new CairoColorSpace();
}
- };
+ };
}
rendering::IntegerBitmapLayout CanvasHelper::getMemoryLayout()
@@ -1966,7 +1966,7 @@ namespace cairocanvas
bool CanvasHelper::repaint( const SurfaceSharedPtr& pSurface,
const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ const rendering::RenderState& renderState )
{
OSL_TRACE("CanvasHelper::repaint");
@@ -1984,8 +1984,8 @@ namespace cairocanvas
aMatrix.xx = aMatrix.yy = 1;
cairo_set_matrix( mpCairo.get(), &aMatrix );
- // if( !bHasAlpha )
- // cairo_set_operator( mpCairo.get(), CAIRO_OPERATOR_SOURCE );
+ // if( !bHasAlpha )
+ // cairo_set_operator( mpCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_set_source_surface( mpCairo.get(), pSurface->getCairoSurface().get(), 0, 0 );
cairo_paint( mpCairo.get() );
diff --git a/canvas/source/cairo/cairo_canvashelper.hxx b/canvas/source/cairo/cairo_canvashelper.hxx
index 89d26a941dec..923df8d64f48 100644
--- a/canvas/source/cairo/cairo_canvashelper.hxx
+++ b/canvas/source/cairo/cairo_canvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,170 +95,170 @@ namespace cairocanvas
// XCanvas (only providing, not implementing the
// interface. Also note subtle method parameter differences)
void clear();
- void drawPoint( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealPoint2D& aPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
+ void drawPoint( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealPoint2D& aPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- void drawLine( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- void drawBezier( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokePolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ void drawLine( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ void drawBezier( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokePolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokeTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokeTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokeTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
- queryStrokeShapes( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokeTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::geometry::XMapping2D >& xMapping,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
+ queryStrokeShapes( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::geometry::XMapping2D >& xMapping );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL
- createFont( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::FontRequest& fontRequest,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& extraFontProperties,
- const ::com::sun::star::geometry::Matrix2D& fontMatrix );
-
- ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo >
- queryAvailableFonts( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::FontInfo& aFilter,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& aFontProperties );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawText( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::StringContext& text,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvasFont >& xFont,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- sal_Int8 textDirection );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawTextLayout( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XTextLayout >& layoutetText,
- const ::com::sun::star::rendering::ViewState& viewState,
+ createFont( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::FontRequest& fontRequest,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::geometry::Matrix2D& fontMatrix );
+
+ ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo >
+ queryAvailableFonts( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::FontInfo& aFilter,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& aFontProperties );
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawText( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::StringContext& text,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvasFont >& xFont,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ sal_Int8 textDirection );
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawTextLayout( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XTextLayout >& layoutetText,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawBitmap( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawBitmap( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawBitmapModulated( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawBitmapModulated( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >
getDevice();
// BitmapCanvasHelper functionality
// ================================
- void copyRect( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
- const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
- const ::com::sun::star::rendering::ViewState& sourceViewState,
- const ::com::sun::star::rendering::RenderState& sourceRenderState,
- const ::com::sun::star::geometry::RealRectangle2D& destRect,
- const ::com::sun::star::rendering::ViewState& destViewState,
- const ::com::sun::star::rendering::RenderState& destRenderState );
-
+ void copyRect( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
+ const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
+ const ::com::sun::star::rendering::ViewState& sourceViewState,
+ const ::com::sun::star::rendering::RenderState& sourceRenderState,
+ const ::com::sun::star::geometry::RealRectangle2D& destRect,
+ const ::com::sun::star::rendering::ViewState& destViewState,
+ const ::com::sun::star::rendering::RenderState& destRenderState );
+
::com::sun::star::geometry::IntegerSize2D getSize();
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
- getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
- sal_Bool beFast );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
+ getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
+ sal_Bool beFast );
- ::com::sun::star::uno::Sequence< sal_Int8 >
- getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ ::com::sun::star::uno::Sequence< sal_Int8 >
+ getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerRectangle2D& rect );
- void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerRectangle2D& rect );
- void setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ void setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerPoint2D& pos );
- ::com::sun::star::uno::Sequence< sal_Int8 >
- getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ ::com::sun::star::uno::Sequence< sal_Int8 >
+ getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerPoint2D& pos );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapPalette > getPalette();
::com::sun::star::rendering::IntegerBitmapLayout getMemoryLayout();
-
+
// Flush drawing queue to screen
- void flush() const;
+ void flush() const;
/** Called from XCanvas base classes, to notify that content
is _about_ to change
@@ -271,26 +271,26 @@ namespace cairocanvas
{
LINE_COLOR, FILL_COLOR, TEXT_COLOR, IGNORE_COLOR
};
-
+
void doPolyPolygonPath( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
Operation aOperation,
bool bNoLineJoin = false,
const ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::Texture >* pTextures=NULL,
::cairo::Cairo* pCairo=NULL ) const;
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- implDrawBitmapSurface(
- const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::cairo::SurfaceSharedPtr& pSurface,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ implDrawBitmapSurface(
+ const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::cairo::SurfaceSharedPtr& pSurface,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::geometry::IntegerSize2D& rSize,
bool bModulateColors,
bool bHasAlpha );
bool repaint( const ::cairo::SurfaceSharedPtr& pSurface,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
protected:
/** Surface provider
diff --git a/canvas/source/cairo/cairo_canvashelper_text.cxx b/canvas/source/cairo/cairo_canvashelper_text.cxx
index c7764617be05..0cc4713fcc60 100644
--- a/canvas/source/cairo/cairo_canvashelper_text.cxx
+++ b/canvas/source/cairo/cairo_canvashelper_text.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,31 +54,31 @@ namespace cairocanvas
LINE_COLOR, FILL_COLOR, TEXT_COLOR, IGNORE_COLOR
};
- uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* ,
- const rendering::FontRequest& fontRequest,
- const uno::Sequence< beans::PropertyValue >& extraFontProperties,
- const geometry::Matrix2D& fontMatrix )
+ uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* ,
+ const rendering::FontRequest& fontRequest,
+ const uno::Sequence< beans::PropertyValue >& extraFontProperties,
+ const geometry::Matrix2D& fontMatrix )
{
return uno::Reference< rendering::XCanvasFont >( new CanvasFont( fontRequest, extraFontProperties, fontMatrix, mpSurfaceProvider ));
}
- uno::Sequence< rendering::FontInfo > CanvasHelper::queryAvailableFonts( const rendering::XCanvas* ,
- const rendering::FontInfo& /*aFilter*/,
- const uno::Sequence< beans::PropertyValue >& /*aFontProperties*/ )
+ uno::Sequence< rendering::FontInfo > CanvasHelper::queryAvailableFonts( const rendering::XCanvas* ,
+ const rendering::FontInfo& /*aFilter*/,
+ const uno::Sequence< beans::PropertyValue >& /*aFontProperties*/ )
{
// TODO
return uno::Sequence< rendering::FontInfo >();
}
static bool
- setupFontTransform( ::OutputDevice& rOutDev,
- ::Point& o_rPoint,
- ::Font& io_rVCLFont,
- const rendering::ViewState& rViewState,
- const rendering::RenderState& rRenderState )
+ setupFontTransform( ::OutputDevice& rOutDev,
+ ::Point& o_rPoint,
+ ::Font& io_rVCLFont,
+ const rendering::ViewState& rViewState,
+ const rendering::RenderState& rRenderState )
{
::basegfx::B2DHomMatrix aMatrix;
-
+
::canvas::tools::mergeViewAndRenderTransform(aMatrix,
rViewState,
rRenderState);
@@ -86,7 +86,7 @@ namespace cairocanvas
::basegfx::B2DTuple aScale;
::basegfx::B2DTuple aTranslate;
double nRotate, nShearX;
-
+
aMatrix.decompose( aScale, aTranslate, nRotate, nShearX );
// query font metric _before_ tampering with width and height
@@ -125,9 +125,9 @@ namespace cairocanvas
static int
setupOutDevState( OutputDevice& rOutDev,
const rendering::XCanvas* pOwner,
- const rendering::ViewState& viewState,
+ const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
- ColorType eColorType )
+ ColorType eColorType )
{
::canvas::tools::verifyInput( renderState,
BOOST_CURRENT_FUNCTION,
@@ -147,7 +147,7 @@ namespace cairocanvas
if( viewState.Clip.is() )
{
- ::basegfx::B2DPolyPolygon aClipPoly(
+ ::basegfx::B2DPolyPolygon aClipPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(
viewState.Clip) );
@@ -156,22 +156,22 @@ namespace cairocanvas
// setup non-empty clipping
::basegfx::B2DHomMatrix aMatrix;
aClipPoly.transform(
- ::basegfx::unotools::homMatrixFromAffineMatrix( aMatrix,
+ ::basegfx::unotools::homMatrixFromAffineMatrix( aMatrix,
viewState.AffineTransform ) );
-
+
aClipRegion = Region::GetRegionFromPolyPolygon( ::PolyPolygon( aClipPoly ) );
}
}
if( renderState.Clip.is() )
{
- ::basegfx::B2DPolyPolygon aClipPoly(
+ ::basegfx::B2DPolyPolygon aClipPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(
renderState.Clip) );
::basegfx::B2DHomMatrix aMatrix;
aClipPoly.transform(
- ::canvas::tools::mergeViewAndRenderTransform( aMatrix,
+ ::canvas::tools::mergeViewAndRenderTransform( aMatrix,
viewState,
renderState ) );
@@ -241,7 +241,7 @@ namespace cairocanvas
break;
default:
- ENSURE_OR_THROW( false,
+ ENSURE_OR_THROW( false,
"CanvasHelper::setupOutDevState(): Unexpected color type");
break;
}
@@ -252,17 +252,17 @@ namespace cairocanvas
bool setupTextOutput( OutputDevice& rOutDev,
const rendering::XCanvas* pOwner,
- ::Point& o_rOutPos,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const uno::Reference< rendering::XCanvasFont >& xFont )
+ ::Point& o_rOutPos,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const uno::Reference< rendering::XCanvasFont >& xFont )
{
setupOutDevState( rOutDev, pOwner, viewState, renderState, TEXT_COLOR );
::Font aVCLFont;
CanvasFont* pFont = dynamic_cast< CanvasFont* >( xFont.get() );
-
+
ENSURE_ARG_OR_THROW( pFont,
"CanvasHelper::setupTextOutput(): Font not compatible with this canvas" );
@@ -289,12 +289,12 @@ namespace cairocanvas
return true;
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawText( const rendering::XCanvas* pOwner,
- const rendering::StringContext& text,
- const uno::Reference< rendering::XCanvasFont >& xFont,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- sal_Int8 textDirection )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawText( const rendering::XCanvas* pOwner,
+ const rendering::StringContext& text,
+ const uno::Reference< rendering::XCanvasFont >& xFont,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ sal_Int8 textDirection )
{
#ifdef CAIRO_CANVAS_PERF_TRACE
struct timespec aTimer;
@@ -352,10 +352,10 @@ namespace cairocanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawTextLayout( const rendering::XCanvas* pOwner,
- const uno::Reference< rendering::XTextLayout >& xLayoutedText,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawTextLayout( const rendering::XCanvas* pOwner,
+ const uno::Reference< rendering::XTextLayout >& xLayoutedText,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
ENSURE_ARG_OR_THROW( xLayoutedText.is(),
"CanvasHelper::drawTextLayout(): layout is NULL");
diff --git a/canvas/source/cairo/cairo_canvashelper_texturefill.cxx b/canvas/source/cairo/cairo_canvashelper_texturefill.cxx
index 7d4f459c8908..54d6139f8cb7 100644
--- a/canvas/source/cairo/cairo_canvashelper_texturefill.cxx
+++ b/canvas/source/cairo/cairo_canvashelper_texturefill.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,19 +73,19 @@ namespace cairocanvas
{
namespace
{
- bool textureFill( OutputDevice& rOutDev,
- GraphicObject& rGraphic,
- const ::Point& rPosPixel,
- const ::Size& rNextTileX,
- const ::Size& rNextTileY,
- sal_Int32 nTilesX,
- sal_Int32 nTilesY,
- const ::Size& rTileSize,
- const GraphicAttr& rAttr)
+ bool textureFill( OutputDevice& rOutDev,
+ GraphicObject& rGraphic,
+ const ::Point& rPosPixel,
+ const ::Size& rNextTileX,
+ const ::Size& rNextTileY,
+ sal_Int32 nTilesX,
+ sal_Int32 nTilesY,
+ const ::Size& rTileSize,
+ const GraphicAttr& rAttr)
{
- BOOL bRet( false );
- Point aCurrPos;
- int nX, nY;
+ BOOL bRet( false );
+ Point aCurrPos;
+ int nX, nY;
for( nY=0; nY < nTilesY; ++nY )
{
@@ -96,11 +96,11 @@ namespace cairocanvas
{
// update return value. This method should return true, if
// at least one of the looped Draws succeeded.
- bRet |= rGraphic.Draw( &rOutDev,
+ bRet |= rGraphic.Draw( &rOutDev,
aCurrPos,
rTileSize,
&rAttr );
-
+
aCurrPos.X() += rNextTileX.Width();
aCurrPos.Y() += rNextTileX.Height();
}
@@ -120,15 +120,15 @@ namespace cairocanvas
}
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas& rCanvas,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas& rCanvas,
const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const uno::Sequence< rendering::Texture >& textures )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const uno::Sequence< rendering::Texture >& textures )
{
ENSURE_ARG_OR_THROW( xPolyPolygon.is(),
"CanvasHelper::fillPolyPolygon(): polygon is NULL");
- ENSURE_ARG_OR_THROW( textures.getLength(),
+ ENSURE_ARG_OR_THROW( textures.getLength(),
"CanvasHelper::fillTexturedPolyPolygon: empty texture sequence");
cairo_save( mpCairo );
diff --git a/canvas/source/cairo/cairo_devicehelper.cxx b/canvas/source/cairo/cairo_devicehelper.cxx
index 6d5aa8660d1c..b0b6edde7d8c 100644
--- a/canvas/source/cairo/cairo_devicehelper.cxx
+++ b/canvas/source/cairo/cairo_devicehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ namespace cairocanvas
OutputDevice* pOutDev=getOutputDevice();
mpSurface = cairo::createSurface( *pOutDev,
- pOutDev->GetOutOffXPixel(),
+ pOutDev->GetOutOffXPixel(),
pOutDev->GetOutOffYPixel(),
pOutDev->GetOutputWidthPixel(),
pOutDev->GetOutputHeightPixel() );
@@ -104,15 +104,15 @@ namespace cairocanvas
#if defined (UNX) && !defined (QUARTZ)
// X11 only
if( mpSurface )
- mpSurface->Resize( rSize.getX() + pOutDev->GetOutOffXPixel(),
+ mpSurface->Resize( rSize.getX() + pOutDev->GetOutOffXPixel(),
rSize.getY() + pOutDev->GetOutOffYPixel() );
else
#endif
- mpSurface = cairo::createSurface(
+ mpSurface = cairo::createSurface(
*pOutDev,
- pOutDev->GetOutOffXPixel(),
+ pOutDev->GetOutOffXPixel(),
pOutDev->GetOutOffYPixel(),
- rSize.getX(), rSize.getY() );
+ rSize.getX(), rSize.getY() );
}
geometry::RealSize2D DeviceHelper::getPhysicalResolution()
@@ -140,35 +140,35 @@ namespace cairocanvas
return ::vcl::unotools::size2DFromSize( aLogSize );
}
- uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
+ uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
{
// disposed?
if( !mpSurfaceProvider )
return uno::Reference< rendering::XLinePolyPolygon2D >(); // we're disposed
- return uno::Reference< rendering::XLinePolyPolygon2D >(
- new ::basegfx::unotools::UnoPolyPolygon(
+ return uno::Reference< rendering::XLinePolyPolygon2D >(
+ new ::basegfx::unotools::UnoPolyPolygon(
::basegfx::unotools::polyPolygonFromPoint2DSequenceSequence( points ) ) );
}
- uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
+ uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
{
// disposed?
if( !mpSurfaceProvider )
return uno::Reference< rendering::XBezierPolyPolygon2D >(); // we're disposed
- return uno::Reference< rendering::XBezierPolyPolygon2D >(
+ return uno::Reference< rendering::XBezierPolyPolygon2D >(
new ::basegfx::unotools::UnoPolyPolygon(
::basegfx::unotools::polyPolygonFromBezier2DSequenceSequence( points ) ) );
}
- uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
- const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const geometry::IntegerSize2D& size )
+ uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& rDevice,
+ const geometry::IntegerSize2D& size )
{
// disposed?
if( !mpSurfaceProvider )
@@ -179,19 +179,19 @@ namespace cairocanvas
::basegfx::unotools::b2ISizeFromIntegerSize2D( size ),
SurfaceProviderRef(mpSurfaceProvider),
rDevice.get(),
- false ));
+ false ));
}
- uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const geometry::IntegerSize2D& /*size*/ )
+ uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const geometry::IntegerSize2D& /*size*/ )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
- uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const geometry::IntegerSize2D& size )
+ uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& rDevice,
+ const geometry::IntegerSize2D& size )
{
// disposed?
if( !mpSurfaceProvider )
@@ -202,12 +202,12 @@ namespace cairocanvas
::basegfx::unotools::b2ISizeFromIntegerSize2D( size ),
SurfaceProviderRef(mpSurfaceProvider),
rDevice.get(),
- true ));
+ true ));
}
- uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const geometry::IntegerSize2D& /*size*/ )
+ uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const geometry::IntegerSize2D& /*size*/ )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
@@ -223,11 +223,11 @@ namespace cairocanvas
// TODO(F3): offer fullscreen mode the XCanvas way
return false;
}
-
+
uno::Any DeviceHelper::isAccelerated() const
{
return ::com::sun::star::uno::makeAny(false);
- }
+ }
uno::Any DeviceHelper::getDeviceHandle() const
{
@@ -239,18 +239,18 @@ namespace cairocanvas
return uno::Any();
}
- namespace
- {
+ namespace
+ {
struct DeviceColorSpace: public rtl::StaticWithInit<uno::Reference<rendering::XColorSpace>,
- DeviceColorSpace>
+ DeviceColorSpace>
{
uno::Reference<rendering::XColorSpace> operator()()
{
return vcl::unotools::createStandardColorSpace();
}
- };
+ };
}
-
+
uno::Reference<rendering::XColorSpace> DeviceHelper::getColorSpace() const
{
// always the same
diff --git a/canvas/source/cairo/cairo_devicehelper.hxx b/canvas/source/cairo/cairo_devicehelper.hxx
index 56c430aca318..33bbb5beebf7 100644
--- a/canvas/source/cairo/cairo_devicehelper.hxx
+++ b/canvas/source/cairo/cairo_devicehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ namespace cairocanvas
/** init helper
@param rCanvas
- Owning canvas.
+ Owning canvas.
@param rRefDevice
Reference output device. Needed for resolution
@@ -74,31 +74,31 @@ namespace cairocanvas
// XWindowGraphicDevice
::com::sun::star::geometry::RealSize2D getPhysicalResolution();
::com::sun::star::geometry::RealSize2D getPhysicalSize();
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > >& points );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealBezierSegment2D > >& points );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
sal_Bool hasFullScreenMode( );
sal_Bool enterFullScreenMode( sal_Bool bEnter );
::com::sun::star::uno::Any isAccelerated() const;
::com::sun::star::uno::Any getDeviceHandle() const;
::com::sun::star::uno::Any getSurfaceHandle() const;
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XColorSpace > getColorSpace() const;
/** called when DumpScreenContent property is enabled on
@@ -116,7 +116,7 @@ namespace cairocanvas
/** init helper
@param rCanvas
- Owning canvas.
+ Owning canvas.
@param rRefDevice
Reference output device. Needed for resolution
@@ -124,7 +124,7 @@ namespace cairocanvas
*/
void implInit( SurfaceProvider& rSurfaceProvider,
OutputDevice& rRefDevice );
- void setSize( const ::basegfx::B2ISize& rSize );
+ void setSize( const ::basegfx::B2ISize& rSize );
private:
/** Surface provider
diff --git a/canvas/source/cairo/cairo_quartz_cairo.cxx b/canvas/source/cairo/cairo_quartz_cairo.cxx
index ea71db57a3d2..d623d07dfebd 100644
--- a/canvas/source/cairo/cairo_quartz_cairo.cxx
+++ b/canvas/source/cairo/cairo_quartz_cairo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,7 +68,7 @@ namespace cairo
mpView(NULL),
mpSurface( pSurface )
{
- // Necessary, context is lost otherwise
+ // Necessary, context is lost otherwise
CGContextRetain( getCGContext() ); // == NULL for non-native surfaces
}
@@ -80,7 +80,7 @@ namespace cairo
* @param width width of the new surface
* @param height height of the new surface
*
- * pSysData contains the platform native Window reference.
+ * pSysData contains the platform native Window reference.
* pSysData is used to create a surface on the Window
*
* Set the mpSurface to the new surface or NULL
@@ -93,19 +93,19 @@ namespace cairo
// on Mac OS X / Quartz we are not drawing directly to the screen, but via regular CGContextRef.
// The actual drawing to NSView (i.e. screen) is done in QuartzSurface::flush()
-
- // HACK: currently initial size for windowsurface is 0x0, which is not possible for us.
- if (width == 0 || height == 0) {
+
+ // HACK: currently initial size for windowsurface is 0x0, which is not possible for us.
+ if (width == 0 || height == 0) {
width = [mpView bounds].size.width;
height = [mpView bounds].size.height;
OSL_TRACE("Canvas::cairo::Surface(): BUG!! size is ZERO! fixing to %d x %d...", width, height);
}
-
+
// create a generic surface, NSView/Window is ARGB32.
mpSurface.reset(
cairo_quartz_surface_create(CAIRO_FORMAT_ARGB32, width, height),
&cairo_surface_destroy);
-
+
cairo_surface_set_device_offset( mpSurface.get(), x, y );
}
@@ -125,14 +125,14 @@ namespace cairo
{
OSL_TRACE("Canvas::cairo::Surface(CGContext:%p, x:%d, y:%d, w:%d, h:%d): New Surface.", rContext, x, y, width, height);
// create surface based on CGContext
-
+
// ensure kCGBitmapByteOrder32Host flag, otherwise Cairo breaks (we are practically always using CGBitmapContext)
OSL_ASSERT ((CGBitmapContextGetBitsPerPixel(rContext) != 32) ||
(CGBitmapContextGetBitmapInfo(rContext) & kCGBitmapByteOrderMask) == kCGBitmapByteOrder32Host);
-
+
mpSurface.reset(cairo_quartz_surface_create_for_cg_context(rContext, width, height),
&cairo_surface_destroy);
-
+
cairo_surface_set_device_offset( mpSurface.get(), x, y );
// Necessary, context is lost otherwise
@@ -156,7 +156,7 @@ namespace cairo
}
/**
- * QuartzSurface::getSimilar: Create new similar Canvas surface
+ * QuartzSurface::getSimilar: Create new similar Canvas surface
* @param aContent format of the new surface (cairo_content_t from cairo/src/cairo.h)
* @param width width of the new surface
* @param height height of the new surface
@@ -167,11 +167,11 @@ namespace cairo
* Cairo surface from aContent (cairo_content_t)
*
* @return new surface or NULL
- **/
+ **/
SurfaceSharedPtr QuartzSurface::getSimilar( Content aContent, int width, int height ) const
{
return SurfaceSharedPtr(
- new QuartzSurface(
+ new QuartzSurface(
CairoSurfaceSharedPtr(
cairo_surface_create_similar( mpSurface.get(), aContent, width, height ),
&cairo_surface_destroy )));
@@ -199,35 +199,35 @@ namespace cairo
{
// can only flush surfaces with NSView
if( !mpView ) return;
-
+
OSL_TRACE("Canvas::cairo::QuartzSurface::flush(): flush to NSView");
-
+
CGContextRef mrContext = getCGContext();
-
+
if (!mrContext) return;
-
+
[mpView lockFocus];
-
+
/**
- * This code is using same screen update code as in VCL (esp. AquaSalGraphics::UpdateWindow() )
+ * This code is using same screen update code as in VCL (esp. AquaSalGraphics::UpdateWindow() )
*/
CGContextRef rViewContext = reinterpret_cast<CGContextRef>([[NSGraphicsContext currentContext] graphicsPort]);
CGImageRef xImage = CGBitmapContextCreateImage(mrContext);
- CGContextDrawImage(rViewContext,
- CGRectMake( 0, 0,
- CGImageGetWidth(xImage),
+ CGContextDrawImage(rViewContext,
+ CGRectMake( 0, 0,
+ CGImageGetWidth(xImage),
CGImageGetHeight(xImage)),
xImage);
CGImageRelease( xImage );
CGContextFlush( rViewContext );
-
+
[mpView unlockFocus];
}
/**
* QuartzSurface::getDepth: Get the color depth of the Canvas surface.
*
- * @return color depth
+ * @return color depth
**/
int QuartzSurface::getDepth() const
{
@@ -239,7 +239,7 @@ namespace cairo
}
}
OSL_TRACE("Canvas::cairo::QuartzSurface::getDepth(): ERROR - depth unspecified!");
-
+
return -1;
}
@@ -296,18 +296,18 @@ namespace cairo
int x, int y, int width, int height )
{
SurfaceSharedPtr surf;
-
- if( rRefDevice.GetOutDevType() == OUTDEV_WINDOW )
+
+ if( rRefDevice.GetOutDevType() == OUTDEV_WINDOW )
{
const Window &rWindow = (const Window &) rRefDevice;
const SystemEnvData* pSysData = GetSysData(&rWindow);
if (pSysData)
surf = SurfaceSharedPtr(new QuartzSurface(pSysData->pView, x, y, width, height));
- }
+ }
else if( rRefDevice.GetOutDevType() == OUTDEV_VIRDEV )
{
SystemGraphicsData aSysData = ((const VirtualDevice&) rRefDevice).GetSystemGfxData();
-
+
if (aSysData.rCGContext)
surf = SurfaceSharedPtr(new QuartzSurface(aSysData.rCGContext, x, y, width, height));
}
@@ -324,18 +324,18 @@ namespace cairo
*
* @return new surface or empty surface
**/
- SurfaceSharedPtr createBitmapSurface( const OutputDevice& /* rRefDevice */,
- const BitmapSystemData& rData,
+ SurfaceSharedPtr createBitmapSurface( const OutputDevice& /* rRefDevice */,
+ const BitmapSystemData& rData,
const Size& rSize )
{
- OSL_TRACE( "requested size: %d x %d available size: %d x %d",
+ OSL_TRACE( "requested size: %d x %d available size: %d x %d",
rSize.Width(), rSize.Height(), rData.mnWidth, rData.mnHeight );
-
+
if ( rData.mnWidth == rSize.Width() && rData.mnHeight == rSize.Height() )
{
CGContextRef rContext = (CGContextRef)rData.rImageContext;
OSL_TRACE("Canvas::cairo::createBitmapSurface(): New native image surface, context = %p.", rData.rImageContext);
-
+
return SurfaceSharedPtr(new QuartzSurface(rContext, 0, 0, rData.mnWidth, rData.mnHeight));
}
return SurfaceSharedPtr();
diff --git a/canvas/source/cairo/cairo_quartz_cairo.hxx b/canvas/source/cairo/cairo_quartz_cairo.hxx
index 0c6a7d56db95..a09ed918dce1 100644
--- a/canvas/source/cairo/cairo_quartz_cairo.hxx
+++ b/canvas/source/cairo/cairo_quartz_cairo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@
namespace cairo {
- class QuartzSurface : public Surface
+ class QuartzSurface : public Surface
{
NSView* mpView; // if NULL - bg surface
CairoSurfaceSharedPtr mpSurface;
@@ -65,9 +65,9 @@ namespace cairo {
virtual void flush() const;
int getDepth() const;
-
+
CGContextRef getCGContext() const;
-
+
};
}
diff --git a/canvas/source/cairo/cairo_repainttarget.hxx b/canvas/source/cairo/cairo_repainttarget.hxx
index 87a663c0dac1..f6b36fdcd783 100644
--- a/canvas/source/cairo/cairo_repainttarget.hxx
+++ b/canvas/source/cairo/cairo_repainttarget.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ using namespace ::cairo;
namespace cairocanvas
{
/* Definition of RepaintTarget interface */
-
+
/** Target interface for XCachedPrimitive implementations
This interface must be implemented on all canvas
diff --git a/canvas/source/cairo/cairo_services.cxx b/canvas/source/cairo/cairo_services.cxx
index 77f053dcb305..ba1e63f95703 100644
--- a/canvas/source/cairo/cairo_services.cxx
+++ b/canvas/source/cairo/cairo_services.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/cairo/cairo_sprite.hxx b/canvas/source/cairo/cairo_sprite.hxx
index b5ecb85b6b97..09146cd90fd4 100644
--- a/canvas/source/cairo/cairo_sprite.hxx
+++ b/canvas/source/cairo/cairo_sprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/cairo/cairo_spritecanvas.cxx b/canvas/source/cairo/cairo_spritecanvas.cxx
index a04c3e755eba..8267336c7c47 100644
--- a/canvas/source/cairo/cairo_spritecanvas.cxx
+++ b/canvas/source/cairo/cairo_spritecanvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,9 +80,9 @@ namespace cairocanvas
*/
ENSURE_ARG_OR_THROW( maArguments.getLength() >= 4 &&
maArguments[0].getValueTypeClass() == uno::TypeClass_HYPER &&
- maArguments[4].getValueTypeClass() == uno::TypeClass_INTERFACE,
+ maArguments[4].getValueTypeClass() == uno::TypeClass_INTERFACE,
"CairoSpriteCanvas::initialize: wrong number of arguments, or wrong types" );
-
+
awt::Rectangle aRect;
maArguments[2] >>= aRect;
@@ -97,17 +97,17 @@ namespace cairocanvas
throw lang::NoSupportException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"Parent window not VCL window, or canvas out-of-process!")),
- NULL);
+ NULL);
bool bHasXRender = IsCairoWorking(pParentWindow);
- ENSURE_ARG_OR_THROW( bHasXRender == true,
+ ENSURE_ARG_OR_THROW( bHasXRender == true,
"CairoSpriteCanvas::SpriteCanvas: No RENDER extension" );
Size aPixelSize( pParentWindow->GetOutputSizePixel() );
const ::basegfx::B2ISize aSize( aPixelSize.Width(),
aPixelSize.Height() );
- ENSURE_ARG_OR_THROW( pParentWindow != NULL,
+ ENSURE_ARG_OR_THROW( pParentWindow != NULL,
"CairoSpriteCanvas::initialize: invalid Window pointer" );
// setup helper
@@ -116,7 +116,7 @@ namespace cairocanvas
aSize,
bIsFullscreen );
- setWindow(uno::Reference<awt::XWindow2>(xParentWindow, uno::UNO_QUERY_THROW));
+ setWindow(uno::Reference<awt::XWindow2>(xParentWindow, uno::UNO_QUERY_THROW));
maCanvasHelper.init( maRedrawManager,
*this,
@@ -215,7 +215,7 @@ namespace cairocanvas
{
maCanvasHelper.setSize( rSize );
// re-set background surface, in case it needed recreation
- maCanvasHelper.setSurface( maDeviceHelper.getBufferSurface(),
+ maCanvasHelper.setSurface( maDeviceHelper.getBufferSurface(),
false );
}
diff --git a/canvas/source/cairo/cairo_spritecanvas.hxx b/canvas/source/cairo/cairo_spritecanvas.hxx
index 54cd3a181cec..ed27bd3d2ac0 100644
--- a/canvas/source/cairo/cairo_spritecanvas.hxx
+++ b/canvas/source/cairo/cairo_spritecanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,9 +68,9 @@ namespace cairocanvas
::com::sun::star::awt::XWindowListener,
::com::sun::star::util::XUpdatable,
::com::sun::star::beans::XPropertySet,
- ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base;
+ ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base;
typedef ::canvas::BufferedGraphicDeviceBase< ::canvas::BaseMutexHelper< WindowGraphicDeviceBase_Base >,
- SpriteDeviceHelper,
+ SpriteDeviceHelper,
::osl::MutexGuard,
::cppu::OWeakObject > SpriteCanvasBase_Base;
/** Mixin SpriteSurface
@@ -97,9 +97,9 @@ namespace cairocanvas
};
typedef ::canvas::SpriteCanvasBase< SpriteCanvasBaseSpriteSurface_Base,
- SpriteCanvasHelper,
+ SpriteCanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > SpriteCanvasBaseT;
+ ::cppu::OWeakObject > SpriteCanvasBaseT;
/** Product of this component's factory.
@@ -114,9 +114,9 @@ namespace cairocanvas
public RepaintTarget
{
public:
- SpriteCanvas( const ::com::sun::star::uno::Sequence<
+ SpriteCanvas( const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Any >& aArguments,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& rxContext );
void initialize();
@@ -133,7 +133,7 @@ namespace cairocanvas
// Classname Base doing refcounting Base implementing the XComponent interface
// | | |
// V V V
- DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( SpriteCanvas, WindowGraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
+ DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( SpriteCanvas, WindowGraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
// XBufferController (partial)
virtual ::sal_Bool SAL_CALL showBuffer( ::sal_Bool bUpdateAll ) throw (::com::sun::star::uno::RuntimeException);
@@ -154,7 +154,7 @@ namespace cairocanvas
// RepaintTarget
virtual bool repaint( const ::cairo::SurfaceSharedPtr& pSurface,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
SurfaceSharedPtr getWindowSurface();
diff --git a/canvas/source/cairo/cairo_spritecanvashelper.cxx b/canvas/source/cairo/cairo_spritecanvashelper.cxx
index cdac16cbf8b7..ff0118f0c3e3 100644
--- a/canvas/source/cairo/cairo_spritecanvashelper.cxx
+++ b/canvas/source/cairo/cairo_spritecanvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@
#include <vcl/canvastools.hxx>
-#include <comphelper/scopeguard.hxx>
+#include <comphelper/scopeguard.hxx>
#include <basegfx/range/b2drectangle.hxx>
#include <basegfx/tools/canvastools.hxx>
@@ -60,7 +60,7 @@ namespace cairocanvas
*/
void spriteRedraw( const CairoSharedPtr& pCairo,
const ::canvas::Sprite::Reference& rSprite )
- {
+ {
// downcast to derived cairocanvas::Sprite interface, which
// provides the actual redraw methods.
::boost::polymorphic_downcast< Sprite* >(rSprite.get())->redraw( pCairo, true);
@@ -71,7 +71,7 @@ namespace cairocanvas
const ::basegfx::B2DRange& rArea )
{
cairo_save( pCairo.get() );
- cairo_rectangle( pCairo.get(), ceil( rArea.getMinX() ), ceil( rArea.getMinY() ),
+ cairo_rectangle( pCairo.get(), ceil( rArea.getMinX() ), ceil( rArea.getMinY() ),
floor( rArea.getWidth() ), floor( rArea.getHeight() ) );
cairo_clip( pCairo.get() );
cairo_set_source_surface( pCairo.get(), pBackgroundSurface->getCairoSurface().get(), 0, 0 );
@@ -88,8 +88,8 @@ namespace cairocanvas
// wouldn't save much render time, and b) will clutter
// scrolled sprite content outside this area)
cairo_save( pCairo.get() );
- cairo_rectangle( pCairo.get(), rArea.getMinX(), rArea.getMinY(),
- sal::static_int_cast<sal_Int32>(rArea.getWidth()),
+ cairo_rectangle( pCairo.get(), rArea.getMinX(), rArea.getMinY(),
+ sal::static_int_cast<sal_Int32>(rArea.getWidth()),
sal::static_int_cast<sal_Int32>(rArea.getHeight()) );
cairo_clip( pCairo.get() );
@@ -120,7 +120,7 @@ namespace cairocanvas
Used for generic update, which renders into device buffer.
*/
void spriteRedrawStub2( const CairoSharedPtr& pCairo,
- const ::canvas::Sprite::Reference& rSprite )
+ const ::canvas::Sprite::Reference& rSprite )
{
if( rSprite.is() )
{
@@ -140,7 +140,7 @@ namespace cairocanvas
if( rSprite.is() )
::boost::polymorphic_downcast< Sprite* >( rSprite.get() )->redraw( pCairo, false );
- }
+ }
}
SpriteCanvasHelper::SpriteCanvasHelper() :
@@ -160,7 +160,7 @@ namespace cairocanvas
CanvasHelper::init( rSize, rDevice, &rDevice );
}
-
+
void SpriteCanvasHelper::disposing()
{
mpCompositingSurface.reset();
@@ -168,17 +168,17 @@ namespace cairocanvas
mpRedrawManager = NULL;
// forward to base
- CanvasHelper::disposing();
+ CanvasHelper::disposing();
}
- uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation(
+ uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation(
const uno::Reference< rendering::XAnimation >& )
{
return uno::Reference< rendering::XAnimatedSprite >();
}
- uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps(
- const uno::Sequence< uno::Reference< rendering::XBitmap > >& /*animationBitmaps*/,
+ uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps(
+ const uno::Sequence< uno::Reference< rendering::XBitmap > >& /*animationBitmaps*/,
sal_Int8 /*interpolationMode*/ )
{
return uno::Reference< rendering::XAnimatedSprite >();
@@ -189,12 +189,12 @@ namespace cairocanvas
if( !mpRedrawManager )
return uno::Reference< rendering::XCustomSprite >(); // we're disposed
- return uno::Reference< rendering::XCustomSprite >(
- new CanvasCustomSprite( spriteSize,
+ return uno::Reference< rendering::XCustomSprite >(
+ new CanvasCustomSprite( spriteSize,
mpOwningSpriteCanvas ) );
}
- uno::Reference< rendering::XSprite > SpriteCanvasHelper::createClonedSprite(
+ uno::Reference< rendering::XSprite > SpriteCanvasHelper::createClonedSprite(
const uno::Reference< rendering::XSprite >& )
{
return uno::Reference< rendering::XSprite >();
@@ -204,7 +204,7 @@ namespace cairocanvas
sal_Bool bUpdateAll,
bool& io_bSurfaceDirty )
{
- if( !mpRedrawManager ||
+ if( !mpRedrawManager ||
!mpOwningSpriteCanvas ||
!mpOwningSpriteCanvas->getWindowSurface() ||
!mpOwningSpriteCanvas->getBufferSurface() )
@@ -244,8 +244,8 @@ namespace cairocanvas
cairo_rectangle( pCompositingCairo.get(), 0, 0, rSize.getX(), rSize.getY() );
cairo_clip( pCompositingCairo.get() );
cairo_save( pCompositingCairo.get() );
- cairo_set_source_surface( pCompositingCairo.get(),
- mpOwningSpriteCanvas->getBufferSurface()->getCairoSurface().get(),
+ cairo_set_source_surface( pCompositingCairo.get(),
+ mpOwningSpriteCanvas->getBufferSurface()->getCairoSurface().get(),
0, 0 );
cairo_set_operator( pCompositingCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pCompositingCairo.get() );
@@ -253,7 +253,7 @@ namespace cairocanvas
// repaint all active sprites on top of background into
// VDev.
- mpRedrawManager->forEachSprite(
+ mpRedrawManager->forEachSprite(
::boost::bind(
&spriteRedraw,
boost::cref(pCompositingCairo),
@@ -262,8 +262,8 @@ namespace cairocanvas
// flush to screen
cairo_rectangle( pWindowCairo.get(), 0, 0, rSize.getX(), rSize.getY() );
cairo_clip( pWindowCairo.get() );
- cairo_set_source_surface( pWindowCairo.get(),
- pCompositingSurface->getCairoSurface().get(),
+ cairo_set_source_surface( pWindowCairo.get(),
+ pCompositingSurface->getCairoSurface().get(),
0, 0 );
cairo_set_operator( pWindowCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pWindowCairo.get() );
@@ -283,14 +283,14 @@ namespace cairocanvas
void SpriteCanvasHelper::backgroundPaint( const ::basegfx::B2DRange& rUpdateRect )
{
- if( mpOwningSpriteCanvas && mpCompositingSurface )
+ if( mpOwningSpriteCanvas && mpCompositingSurface )
repaintBackground( mpCompositingSurface->getCairo(),
- mpOwningSpriteCanvas->getBufferSurface(),
+ mpOwningSpriteCanvas->getBufferSurface(),
rUpdateRect );
}
- void SpriteCanvasHelper::scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
- const ::basegfx::B2DRange& rMoveEnd,
+ void SpriteCanvasHelper::scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
+ const ::basegfx::B2DRange& rMoveEnd,
const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea )
{
ENSURE_OR_THROW( mpOwningSpriteCanvas &&
@@ -314,7 +314,7 @@ namespace cairocanvas
// the destination area: otherwise, the next scroll update
// would copy pixel that are not supposed to be part of
// the sprite.
- ::basegfx::B2IRange aSourceRect(
+ ::basegfx::B2IRange aSourceRect(
::canvas::tools::spritePixelAreaFromB2DRange( rMoveStart ) );
const ::basegfx::B2IRange& rDestRect(
::canvas::tools::spritePixelAreaFromB2DRange( rMoveEnd ) );
@@ -324,7 +324,7 @@ namespace cairocanvas
// TODO(E3): This is plain buggy (but copies the behaviour of
// the old Impress slideshow) - the scrolled area might
- // actually lie _below_ another window!
+ // actually lie _below_ another window!
// clip to output bounds (cannot properly scroll stuff
// _outside_ our screen area)
@@ -341,7 +341,7 @@ namespace cairocanvas
// repaint all affected sprites directly to output device
::std::for_each( rUpdateArea.maComponentList.begin(),
rUpdateArea.maComponentList.end(),
- ::boost::bind(
+ ::boost::bind(
&spriteRedrawStub3,
boost::cref(pCompositingCairo),
_1 ) );
@@ -356,24 +356,24 @@ namespace cairocanvas
cairo_save( pCompositingCairo.get() );
// scroll content in device back buffer
- cairo_set_source_surface( pCompositingCairo.get(),
+ cairo_set_source_surface( pCompositingCairo.get(),
mpOwningSpriteCanvas->getBufferSurface()->getCairoSurface().get(),
aDestPos.getX() - aSourceUpperLeftPos.getX(),
aDestPos.getY() - aSourceUpperLeftPos.getY() );
cairo_rectangle( pCompositingCairo.get(),
aDestPos.getX(), aDestPos.getY(),
- sal::static_int_cast<sal_Int32>(aDestRect.getWidth()),
+ sal::static_int_cast<sal_Int32>(aDestRect.getWidth()),
sal::static_int_cast<sal_Int32>(aDestRect.getHeight()) );
cairo_clip( pCompositingCairo.get() );
cairo_set_operator( pCompositingCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pCompositingCairo.get() );
cairo_restore( pCompositingCairo.get() );
- const ::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
+ const ::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
aFirst( rUpdateArea.maComponentList.begin() );
- ::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
+ ::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
aSecond( aFirst ); ++aSecond;
-
+
ENSURE_OR_THROW( aFirst->second.getSprite().is(),
"VCLCanvas::scrollUpdate(): no sprite" );
@@ -404,13 +404,13 @@ namespace cairocanvas
cairo_rectangle( pWindowCairo.get(), 0, 0, rSize.getX(), rSize.getY() );
cairo_clip( pWindowCairo.get() );
- cairo_set_source_surface( pWindowCairo.get(),
- pCompositingSurface->getCairoSurface().get(),
+ cairo_set_source_surface( pWindowCairo.get(),
+ pCompositingSurface->getCairoSurface().get(),
0, 0 );
cairo_set_operator( pWindowCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pWindowCairo.get() );
}
-
+
void SpriteCanvasHelper::opaqueUpdate( const ::basegfx::B2DRange& rTotalArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites )
{
@@ -439,7 +439,7 @@ namespace cairocanvas
// repaint all affected sprites directly to output device
::std::for_each( rSortedUpdateSprites.begin(),
rSortedUpdateSprites.end(),
- ::boost::bind(
+ ::boost::bind(
&spriteRedrawStub,
boost::cref(pCompositingCairo),
_1 ) );
@@ -449,13 +449,13 @@ namespace cairocanvas
cairo_clip( pWindowCairo.get() );
cairo_rectangle( pWindowCairo.get(), aPos.getX(), aPos.getY(), aSize.getX(), aSize.getY() );
cairo_clip( pWindowCairo.get() );
- cairo_set_source_surface( pWindowCairo.get(),
- pCompositingSurface->getCairoSurface().get(),
+ cairo_set_source_surface( pWindowCairo.get(),
+ pCompositingSurface->getCairoSurface().get(),
0, 0 );
cairo_set_operator( pWindowCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pWindowCairo.get() );
}
-
+
void SpriteCanvasHelper::genericUpdate( const ::basegfx::B2DRange& rRequestedArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites )
{
@@ -478,7 +478,7 @@ namespace cairocanvas
// a fraction of a sprite pixel... Clip position at origin,
// otherwise, truncation of size below might leave visible
// areas uncovered by VDev.
- const Point aOutputPosition(
+ const Point aOutputPosition(
::std::max( sal_Int32( 0 ),
static_cast< sal_Int32 >(rRequestedArea.getMinX()) ),
::std::max( sal_Int32( 0 ),
@@ -486,7 +486,7 @@ namespace cairocanvas
// round output size towards +infty. Don't want to truncate a
// fraction of a sprite pixel... Limit size of VDev to output
// device's area.
- const Size aOutputSize(
+ const Size aOutputSize(
::std::min( rSize.getX(),
::canvas::tools::roundUp( rRequestedArea.getMaxX() - aOutputPosition.X()) ),
::std::min( rSize.getY(),
@@ -497,13 +497,13 @@ namespace cairocanvas
// paint background
cairo_save( pCompositingCairo.get() );
- cairo_set_source_surface( pCompositingCairo.get(),
- mpOwningSpriteCanvas->getBufferSurface()->getCairoSurface().get(),
+ cairo_set_source_surface( pCompositingCairo.get(),
+ mpOwningSpriteCanvas->getBufferSurface()->getCairoSurface().get(),
0, 0 );
cairo_set_operator( pCompositingCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pCompositingCairo.get() );
cairo_restore( pCompositingCairo.get() );
-
+
// repaint all affected sprites on top of background into
// VDev.
::std::for_each( rSortedUpdateSprites.begin(),
@@ -515,8 +515,8 @@ namespace cairocanvas
// flush to screen
cairo_rectangle( pWindowCairo.get(), aOutputPosition.X(), aOutputPosition.Y(), aOutputSize.Width(), aOutputSize.Height() );
cairo_clip( pWindowCairo.get() );
- cairo_set_source_surface( pWindowCairo.get(),
- pCompositingSurface->getCairoSurface().get(),
+ cairo_set_source_surface( pWindowCairo.get(),
+ pCompositingSurface->getCairoSurface().get(),
0, 0 );
cairo_set_operator( pWindowCairo.get(), CAIRO_OPERATOR_SOURCE );
cairo_paint( pWindowCairo.get() );
@@ -533,13 +533,13 @@ namespace cairocanvas
if( !mpCompositingSurface )
{
- mpCompositingSurface =
- mpOwningSpriteCanvas->getWindowSurface()->getSimilar(
- CAIRO_CONTENT_COLOR,
+ mpCompositingSurface =
+ mpOwningSpriteCanvas->getWindowSurface()->getSimilar(
+ CAIRO_CONTENT_COLOR,
rNeededSize.getX(), rNeededSize.getY() );
maCompositingSurfaceSize = rNeededSize;
}
-
+
return mpCompositingSurface;
}
}
diff --git a/canvas/source/cairo/cairo_spritecanvashelper.hxx b/canvas/source/cairo/cairo_spritecanvashelper.hxx
index 8e3e60901302..2bed2b2d6dc0 100644
--- a/canvas/source/cairo/cairo_spritecanvashelper.hxx
+++ b/canvas/source/cairo/cairo_spritecanvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,31 +51,31 @@ namespace cairocanvas
public:
SpriteCanvasHelper();
- void init( ::canvas::SpriteRedrawManager& rManager,
+ void init( ::canvas::SpriteRedrawManager& rManager,
SpriteCanvas& rOwningSpriteCanvas,
const ::basegfx::B2ISize& rSize );
-
+
/// Dispose all internal references
void disposing();
// XSpriteCanvas
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromAnimation(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromAnimation(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimation >& animation );
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromBitmaps(
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromBitmaps(
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
sal_Int8 interpolationMode );
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCustomSprite > createCustomSprite(
+
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCustomSprite > createCustomSprite(
const ::com::sun::star::geometry::RealSize2D& spriteSize );
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSprite > createClonedSprite(
+
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSprite > createClonedSprite(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite >& original );
/** Actually perform the screen update
@@ -119,21 +119,21 @@ namespace cairocanvas
All info necessary, should rMoveStart be partially or
fully outside the outdev
*/
- void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
- const ::basegfx::B2DRange& rMoveEnd,
- const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
+ void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
+ const ::basegfx::B2DRange& rMoveEnd,
+ const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
void opaqueUpdate( const ::basegfx::B2DRange& rTotalArea,
- const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
+ const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
void genericUpdate( const ::basegfx::B2DRange& rTotalArea,
- const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
+ const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
private:
::cairo::SurfaceSharedPtr getCompositingSurface( const ::basegfx::B2ISize& rNeededSize );
/// Set from the SpriteCanvas: instance coordinating sprite redraw
- ::canvas::SpriteRedrawManager* mpRedrawManager;
+ ::canvas::SpriteRedrawManager* mpRedrawManager;
/// Set from the init method. used to generate sprites
SpriteCanvas* mpOwningSpriteCanvas;
diff --git a/canvas/source/cairo/cairo_spritedevicehelper.cxx b/canvas/source/cairo/cairo_spritedevicehelper.cxx
index 8167775977c2..5a8158aa3027 100644
--- a/canvas/source/cairo/cairo_spritedevicehelper.cxx
+++ b/canvas/source/cairo/cairo_spritedevicehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,7 +64,7 @@ namespace cairocanvas
{}
void SpriteDeviceHelper::init( Window& rOutputWindow,
- SpriteCanvas& rSpriteCanvas,
+ SpriteCanvas& rSpriteCanvas,
const ::basegfx::B2ISize& rSize,
bool bFullscreen )
{
@@ -112,7 +112,7 @@ namespace cairocanvas
uno::Any SpriteDeviceHelper::isAccelerated() const
{
return ::com::sun::star::uno::makeAny(true);
- }
+ }
uno::Any SpriteDeviceHelper::getDeviceHandle() const
{
@@ -136,8 +136,8 @@ namespace cairocanvas
if( mpBufferSurface && maSize != rSize )
mpBufferSurface.reset();
if( !mpBufferSurface )
- mpBufferSurface = getWindowSurface()->getSimilar(
- CAIRO_CONTENT_COLOR,
+ mpBufferSurface = getWindowSurface()->getSimilar(
+ CAIRO_CONTENT_COLOR,
rSize.getX(), rSize.getY() );
if( maSize != rSize )
diff --git a/canvas/source/cairo/cairo_spritedevicehelper.hxx b/canvas/source/cairo/cairo_spritedevicehelper.hxx
index e0736379bb2a..a7a05150f245 100644
--- a/canvas/source/cairo/cairo_spritedevicehelper.hxx
+++ b/canvas/source/cairo/cairo_spritedevicehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ namespace cairocanvas
SpriteDeviceHelper();
void init( Window& rOutputWindow,
- SpriteCanvas& rSpriteCanvas,
+ SpriteCanvas& rSpriteCanvas,
const ::basegfx::B2ISize& rSize,
bool bFullscreen );
@@ -63,7 +63,7 @@ namespace cairocanvas
// XWindowGraphicDevice
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
- void destroyBuffers( );
+ void destroyBuffers( );
::sal_Bool showBuffer( bool, ::sal_Bool );
::sal_Bool switchBuffer( bool, ::sal_Bool bUpdateAll );
@@ -72,7 +72,7 @@ namespace cairocanvas
::com::sun::star::uno::Any getSurfaceHandle() const;
void notifySizeUpdate( const ::com::sun::star::awt::Rectangle& rBounds );
- void setSize( const ::basegfx::B2ISize& rSize );
+ void setSize( const ::basegfx::B2ISize& rSize );
::cairo::SurfaceSharedPtr getSurface();
::cairo::SurfaceSharedPtr getBufferSurface();
@@ -84,7 +84,7 @@ namespace cairocanvas
private:
/// Pointer to sprite canvas (owner of this helper), needed to create bitmaps
- SpriteCanvas* mpSpriteCanvas;
+ SpriteCanvas* mpSpriteCanvas;
::cairo::SurfaceSharedPtr mpBufferSurface;
diff --git a/canvas/source/cairo/cairo_spritehelper.cxx b/canvas/source/cairo/cairo_spritehelper.cxx
index 711cc45c504b..5a47aef1dc4a 100644
--- a/canvas/source/cairo/cairo_spritehelper.cxx
+++ b/canvas/source/cairo/cairo_spritehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,9 +64,9 @@ namespace cairocanvas
mpBufferSurface(),
mbTextureDirty(true)
{}
-
+
void SpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
- const SpriteCanvasRef& rSpriteCanvas )
+ const SpriteCanvasRef& rSpriteCanvas )
{
ENSURE_OR_THROW( rSpriteCanvas.get(),
"SpriteHelper::init(): Invalid device, sprite canvas or surface" );
@@ -148,7 +148,7 @@ namespace cairocanvas
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(
rClip ));
- doPolyPolygonImplementation( aClipPoly, Clip, pCairo.get(),
+ doPolyPolygonImplementation( aClipPoly, Clip, pCairo.get(),
NULL, SurfaceProviderRef(mpSpriteCanvas.get()),
rClip->getFillRule() );
}
@@ -160,8 +160,8 @@ namespace cairocanvas
if( isContentFullyOpaque() )
cairo_set_operator( pCairo.get(), CAIRO_OPERATOR_SOURCE );
- cairo_set_source_surface( pCairo.get(),
- mpBufferSurface->getCairoSurface().get(),
+ cairo_set_source_surface( pCairo.get(),
+ mpBufferSurface->getCairoSurface().get(),
fX, fY );
if( ::rtl::math::approxEqual( fAlpha, 1.0 ) )
cairo_paint( pCairo.get() );
diff --git a/canvas/source/cairo/cairo_spritehelper.hxx b/canvas/source/cairo/cairo_spritehelper.hxx
index 8d31fa61dd31..10b7fdcf3f43 100644
--- a/canvas/source/cairo/cairo_spritehelper.hxx
+++ b/canvas/source/cairo/cairo_spritehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@ namespace cairocanvas
When true, little debug bound rects for sprites are shown
*/
void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
- const SpriteCanvasRef& rSpriteCanvas );
+ const SpriteCanvasRef& rSpriteCanvas );
void disposing();
@@ -99,11 +99,11 @@ namespace cairocanvas
*/
void redraw( const ::cairo::CairoSharedPtr& pCairo,
const ::basegfx::B2DPoint& rPos,
- bool& bSurfacesDirty,
+ bool& bSurfacesDirty,
bool bBufferedUpdate ) const;
-
+
private:
- virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
+ virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const;
diff --git a/canvas/source/cairo/cairo_spritesurface.hxx b/canvas/source/cairo/cairo_spritesurface.hxx
index 1c84e3842ffd..caebcface0db 100644
--- a/canvas/source/cairo/cairo_spritesurface.hxx
+++ b/canvas/source/cairo/cairo_spritesurface.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ class Rectangle;
namespace cairocanvas
{
/* Definition of SpriteSurface interface */
-
+
class SpriteSurface
{
public:
@@ -53,18 +53,18 @@ namespace cairocanvas
virtual void hideSprite( const Sprite::ImplRef& sprite ) = 0;
// call this when XSprite::move() is called
- virtual void moveSprite( const Sprite::ImplRef& sprite,
- const Point& rOldPos,
- const Point& rNewPos,
- const Size& rSpriteSize ) = 0;
+ virtual void moveSprite( const Sprite::ImplRef& sprite,
+ const Point& rOldPos,
+ const Point& rNewPos,
+ const Size& rSpriteSize ) = 0;
// call this when some part of your sprite has changed. That
// includes show/hide´, i.e. for show, both showSprite and
// updateSprite must be called.
- virtual void updateSprite( const Sprite::ImplRef& sprite,
- const Point& rPos,
- const Rectangle& rUpdateArea ) = 0;
-
+ virtual void updateSprite( const Sprite::ImplRef& sprite,
+ const Point& rPos,
+ const Rectangle& rUpdateArea ) = 0;
+
};
}
diff --git a/canvas/source/cairo/cairo_surfaceprovider.hxx b/canvas/source/cairo/cairo_surfaceprovider.hxx
index 923fc8b8c0d2..6164ef0f1f67 100644
--- a/canvas/source/cairo/cairo_surfaceprovider.hxx
+++ b/canvas/source/cairo/cairo_surfaceprovider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ namespace cairocanvas
class Bitmap;
/* Definition of RepaintTarget interface */
-
+
/** Target interface for XCachedPrimitive implementations
This interface must be implemented on all canvas
@@ -62,7 +62,7 @@ namespace cairocanvas
virtual SurfaceSharedPtr getSurface() = 0;
/// create new surface in given size
- virtual SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize,
+ virtual SurfaceSharedPtr createSurface( const ::basegfx::B2ISize& rSize,
Content aContent = CAIRO_CONTENT_COLOR_ALPHA ) = 0;
/// create new surface from given bitmap
virtual SurfaceSharedPtr createSurface( ::Bitmap& rBitmap ) = 0;
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index 63a89e6f527f..d8de6c55e37e 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,7 +68,7 @@
# include "cairo_xlib_cairo.hxx"
# include <cairo-ft.h>
#else
-# error Native API needed.
+# error Native API needed.
#endif
using namespace ::cairo;
@@ -79,7 +79,7 @@ namespace cairocanvas
namespace
{
void setupLayoutMode( OutputDevice& rOutDev,
- sal_Int8 nTextDirection )
+ sal_Int8 nTextDirection )
{
// TODO(P3): avoid if already correctly set
ULONG nLayoutMode;
@@ -113,11 +113,11 @@ namespace cairocanvas
}
}
- TextLayout::TextLayout( const rendering::StringContext& aText,
- sal_Int8 nDirection,
- sal_Int64 /*nRandomSeed*/,
- const CanvasFont::Reference& rFont,
- const SurfaceProviderRef& rRefDevice ) :
+ TextLayout::TextLayout( const rendering::StringContext& aText,
+ sal_Int8 nDirection,
+ sal_Int64 /*nRandomSeed*/,
+ const CanvasFont::Reference& rFont,
+ const SurfaceProviderRef& rRefDevice ) :
TextLayout_Base( m_aMutex ),
maText( aText ),
maLogicalAdvancements(),
@@ -126,7 +126,7 @@ namespace cairocanvas
mnTextDirection( nDirection )
{
}
-
+
TextLayout::~TextLayout()
{
}
@@ -229,7 +229,7 @@ namespace cairocanvas
return 0.0;
}
- double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& /*aNextLayouts*/,
+ double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& /*aNextLayouts*/,
double /*nSize*/ ) throw (lang::IllegalArgumentException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -246,7 +246,7 @@ namespace cairocanvas
return rendering::TextHit();
}
- rendering::Caret SAL_CALL TextLayout::getCaret( sal_Int32 /*nInsertionIndex*/,
+ rendering::Caret SAL_CALL TextLayout::getCaret( sal_Int32 /*nInsertionIndex*/,
sal_Bool /*bExcludeLigatures*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -255,8 +255,8 @@ namespace cairocanvas
return rendering::Caret();
}
- sal_Int32 SAL_CALL TextLayout::getNextInsertionIndex( sal_Int32 /*nStartIndex*/,
- sal_Int32 /*nCaretAdvancement*/,
+ sal_Int32 SAL_CALL TextLayout::getNextInsertionIndex( sal_Int32 /*nStartIndex*/,
+ sal_Int32 /*nCaretAdvancement*/,
sal_Bool /*bExcludeLigatures*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -265,7 +265,7 @@ namespace cairocanvas
return 0;
}
- uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryVisualHighlighting( sal_Int32 /*nStartIndex*/,
+ uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryVisualHighlighting( sal_Int32 /*nStartIndex*/,
sal_Int32 /*nEndIndex*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -274,7 +274,7 @@ namespace cairocanvas
return uno::Reference< rendering::XPolyPolygon2D >();
}
- uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryLogicalHighlighting( sal_Int32 /*nStartIndex*/,
+ uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryLogicalHighlighting( sal_Int32 /*nStartIndex*/,
sal_Int32 /*nEndIndex*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -311,12 +311,12 @@ namespace cairocanvas
return maText;
}
-
+
void TextLayout::useFont( Cairo* pCairo )
{
rendering::FontRequest aFontRequest = mpFont->getFontRequest();
rendering::FontInfo aFontInfo = aFontRequest.FontDescription;
-
+
cairo_select_font_face( pCairo, ::rtl::OUStringToOString( aFontInfo.FamilyName, RTL_TEXTENCODING_UTF8 ), CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL );
cairo_set_font_size( pCairo, aFontRequest.CellSize );
}
@@ -386,7 +386,7 @@ namespace cairocanvas
const rendering::ViewState& viewState,
const rendering::RenderState& renderState ) const
{
- ::osl::MutexGuard aGuard( m_aMutex );
+ ::osl::MutexGuard aGuard( m_aMutex );
SystemTextLayoutData aSysLayoutData;
#if (defined CAIRO_HAS_WIN32_SURFACE) && (OSL_DEBUG_LEVEL > 1)
LOGFONTW logfont;
@@ -395,11 +395,11 @@ namespace cairocanvas
// TODO(P2): cache that
::boost::scoped_array< sal_Int32 > aOffsets(new sal_Int32[maLogicalAdvancements.getLength()]);
-
+
if( maLogicalAdvancements.getLength() )
{
setupTextOffsets( aOffsets.get(), maLogicalAdvancements, viewState, renderState );
-
+
// TODO(F3): ensure correct length and termination for DX
// array (last entry _must_ contain the overall width)
}
@@ -459,11 +459,11 @@ namespace cairocanvas
return true;
}
}
-
+
if (aSysLayoutData.rGlyphData.empty()) return false; //??? false?
-
+
/**
- * Setup platform independent glyph vector into cairo-based glyphs vector.
+ * Setup platform independent glyph vector into cairo-based glyphs vector.
**/
// Loop through the fonts used and render the matching glyphs for each
@@ -598,7 +598,7 @@ namespace cairocanvas
);
cairo_show_glyphs(pSCairo.get(), &cairo_glyphs[0], cairo_glyphs.size());
-
+
//faux bold
if (rSysFontData.bFakeBold) {
double bold_dx = 0.5 * sqrt( 0.7 * aFont.GetHeight() );
@@ -653,10 +653,10 @@ namespace cairocanvas
};
}
- void TextLayout::setupTextOffsets( sal_Int32* outputOffsets,
- const uno::Sequence< double >& inputOffsets,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState ) const
+ void TextLayout::setupTextOffsets( sal_Int32* outputOffsets,
+ const uno::Sequence< double >& inputOffsets,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState ) const
{
ENSURE_OR_THROW( outputOffsets!=NULL,
"TextLayout::setupTextOffsets offsets NULL" );
@@ -691,7 +691,7 @@ namespace cairocanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
}
diff --git a/canvas/source/cairo/cairo_textlayout.hxx b/canvas/source/cairo/cairo_textlayout.hxx
index 57ee24835f44..a2bcf4421e9f 100644
--- a/canvas/source/cairo/cairo_textlayout.hxx
+++ b/canvas/source/cairo/cairo_textlayout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,16 +52,16 @@ namespace cairocanvas
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XTextLayout,
::com::sun::star::lang::XServiceInfo > TextLayout_Base;
- class TextLayout : public ::comphelper::OBaseMutex,
+ class TextLayout : public ::comphelper::OBaseMutex,
public TextLayout_Base,
private ::boost::noncopyable
{
public:
- TextLayout( const ::com::sun::star::rendering::StringContext& aText,
- sal_Int8 nDirection,
+ TextLayout( const ::com::sun::star::rendering::StringContext& aText,
+ sal_Int8 nDirection,
sal_Int64 nRandomSeed,
const CanvasFont::Reference& rFont,
- const SurfaceProviderRef& rRefDevice );
+ const SurfaceProviderRef& rRefDevice );
/// Dispose all internal references
virtual void SAL_CALL disposing();
@@ -84,7 +84,7 @@ namespace cairocanvas
virtual sal_Int8 SAL_CALL getMainTextDirection( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL getFont( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::rendering::StringContext SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException);
-
+
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
@@ -93,14 +93,14 @@ namespace cairocanvas
bool draw( ::cairo::Cairo* pCairo );
bool draw( SurfaceSharedPtr& pSurface,
OutputDevice& rOutDev,
- const Point& rOutpos,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const Point& rOutpos,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState ) const;
- void setupTextOffsets( sal_Int32* outputOffsets,
+ void setupTextOffsets( sal_Int32* outputOffsets,
const ::com::sun::star::uno::Sequence< double >& inputOffsets,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) const;
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) const;
protected:
~TextLayout(); // we're a ref-counted UNO class. _We_ destroy ourselves.
@@ -109,7 +109,7 @@ namespace cairocanvas
::com::sun::star::rendering::StringContext maText;
::com::sun::star::uno::Sequence< double > maLogicalAdvancements;
CanvasFont::Reference mpFont;
- SurfaceProviderRef mpRefDevice;
+ SurfaceProviderRef mpRefDevice;
sal_Int8 mnTextDirection;
void useFont( ::cairo::Cairo* pCairo );
diff --git a/canvas/source/cairo/cairo_win32_cairo.cxx b/canvas/source/cairo/cairo_win32_cairo.cxx
index ef08b9cec925..d286604706c6 100644
--- a/canvas/source/cairo/cairo_win32_cairo.cxx
+++ b/canvas/source/cairo/cairo_win32_cairo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
************************************************************************/
#include <tools/prewin.h>
-#include <windows.h>
+#include <windows.h>
#include <tools/postwin.h>
#include <osl/diagnose.h>
@@ -81,7 +81,7 @@ namespace cairo
* @param x horizontal location of the new surface
* @param y vertical location of the new surface
*
- * pSysData contains the platform native Window reference.
+ * pSysData contains the platform native Window reference.
* pSysData is used to create a surface on the Window
*
* Set the mpSurface to the new surface or NULL
@@ -106,7 +106,7 @@ namespace cairo
mpSurface()
{
OSL_ASSERT(rBmpData.pDIB == NULL);
-
+
if(rBmpData.pDIB != NULL) {
// So just leave mpSurface to NULL, little else we can do at
// this stage. Hopefully the Win32 patch to
@@ -114,8 +114,8 @@ namespace cairo
// const Size&) will catch the cases where this
// constructor would be called with a DIB bitmap, and we
// will never get here. At least it worked for Ballmer.ppt.
- }
- else
+ }
+ else
{
HDC hDC = CreateCompatibleDC(NULL);
void* hOrigBitmap;
@@ -141,7 +141,7 @@ namespace cairo
}
/**
- * Surface::getSimilar: Create new similar Canvas surface
+ * Surface::getSimilar: Create new similar Canvas surface
* @param aContent format of the new surface (cairo_content_t from cairo/src/cairo.h)
* @param width width of the new surface
* @param height height of the new surface
@@ -152,11 +152,11 @@ namespace cairo
* Cairo surface from aContent (cairo_content_t)
*
* @return new surface or NULL
- **/
+ **/
SurfaceSharedPtr Win32Surface::getSimilar( Content aContent, int width, int height ) const
{
return SurfaceSharedPtr(
- new Win32Surface(
+ new Win32Surface(
CairoSurfaceSharedPtr(
cairo_surface_create_similar( mpSurface.get(), aContent, width, height ),
&cairo_surface_destroy )));
@@ -184,7 +184,7 @@ namespace cairo
/**
* Surface::getDepth: Get the color depth of the Canvas surface.
*
- * @return color depth
+ * @return color depth
**/
int Win32Surface::getDepth() const
{
@@ -275,9 +275,9 @@ namespace cairo
const BitmapSystemData& rData,
const Size& rSize )
{
- OSL_TRACE( "requested size: %d x %d available size: %d x %d",
+ OSL_TRACE( "requested size: %d x %d available size: %d x %d",
rSize.Width(), rSize.Height(), rData.mnWidth, rData.mnHeight );
-
+
if ( rData.mnWidth == rSize.Width() && rData.mnHeight == rSize.Height() )
return SurfaceSharedPtr(new Win32Surface( rData ));
else
@@ -298,24 +298,24 @@ namespace cairo
WORD glyph_index;
HDC hdc = NULL;
int i = 0;
-
+
hdc = CreateCompatibleDC (NULL);
-
+
if (!hdc) return 0;
if (!SetGraphicsMode (hdc, GM_ADVANCED)) {
DeleteDC (hdc);
return 0;
}
-
+
SelectObject (hdc, hfont);
SetMapMode (hdc, MM_TEXT);
-
+
unicode[0] = ucs4;
unicode[1] = 0;
if (GetGlyphIndicesW (hdc, unicode, 1, &glyph_index, 0) == GDI_ERROR) {
glyph_index = 0;
}
-
+
DeleteDC (hdc);
return glyph_index;
}
diff --git a/canvas/source/cairo/cairo_win32_cairo.hxx b/canvas/source/cairo/cairo_win32_cairo.hxx
index fb66cfcc3a1c..3ed001897024 100644
--- a/canvas/source/cairo/cairo_win32_cairo.hxx
+++ b/canvas/source/cairo/cairo_win32_cairo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
#ifdef WNT
# include <tools/prewin.h>
-# include <windows.h>
+# include <windows.h>
# include <tools/postwin.h>
#endif
@@ -39,7 +39,7 @@
namespace cairo {
- class Win32Surface : public Surface
+ class Win32Surface : public Surface
{
CairoSurfaceSharedPtr mpSurface;
diff --git a/canvas/source/cairo/cairo_xlib_cairo.cxx b/canvas/source/cairo/cairo_xlib_cairo.cxx
index a0569ab5a442..3ce0994f13f1 100644
--- a/canvas/source/cairo/cairo_xlib_cairo.cxx
+++ b/canvas/source/cairo/cairo_xlib_cairo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -106,8 +106,8 @@ namespace cairo
*
* Set the mpSurface as pSurface
**/
- X11Surface::X11Surface( const X11SysData& rSysData,
- const X11PixmapSharedPtr& rPixmap,
+ X11Surface::X11Surface( const X11SysData& rSysData,
+ const X11PixmapSharedPtr& rPixmap,
const CairoSurfaceSharedPtr& pSurface ) :
maSysData(rSysData),
mpPixmap(rPixmap),
@@ -125,7 +125,7 @@ namespace cairo
*
* Set the mpSurface as pSurface
**/
- X11Surface::X11Surface( const CairoSurfaceSharedPtr& pSurface ) :
+ X11Surface::X11Surface( const CairoSurfaceSharedPtr& pSurface ) :
maSysData(),
mpPixmap(),
mpSurface(pSurface)
@@ -169,7 +169,7 @@ namespace cairo
*
* Set the mpSurface to the new surface or NULL
**/
- X11Surface::X11Surface( const X11SysData& rSysData,
+ X11Surface::X11Surface( const X11SysData& rSysData,
const BitmapSystemData& rData ) :
maSysData( rSysData ),
mpPixmap(),
@@ -194,7 +194,7 @@ namespace cairo
}
/**
- * Surface::getSimilar: Create new similar Canvas surface
+ * Surface::getSimilar: Create new similar Canvas surface
* @param aContent format of the new surface (cairo_content_t from cairo/src/cairo.h)
* @param width width of the new surface
* @param height height of the new surface
@@ -205,17 +205,17 @@ namespace cairo
* Cairo surface from aContent (cairo_content_t)
*
* @return new surface or NULL
- **/
+ **/
SurfaceSharedPtr X11Surface::getSimilar( Content aContent, int width, int height ) const
{
Pixmap hPixmap;
- if( maSysData.pDisplay && maSysData.hDrawable )
+ if( maSysData.pDisplay && maSysData.hDrawable )
{
XRenderPictFormat* pFormat;
- int nFormat;
+ int nFormat;
- switch (aContent)
+ switch (aContent)
{
case CAIRO_CONTENT_ALPHA:
nFormat = PictStandardA8;
@@ -237,20 +237,20 @@ namespace cairo
X11SysData aSysData(maSysData);
aSysData.pRenderFormat = pFormat;
return SurfaceSharedPtr(
- new X11Surface( aSysData,
+ new X11Surface( aSysData,
X11PixmapSharedPtr(
new X11Pixmap(hPixmap, maSysData.pDisplay)),
CairoSurfaceSharedPtr(
- cairo_xlib_surface_create_with_xrender_format(
- (Display*)maSysData.pDisplay,
+ cairo_xlib_surface_create_with_xrender_format(
+ (Display*)maSysData.pDisplay,
hPixmap,
ScreenOfDisplay((Display *)maSysData.pDisplay, maSysData.nScreen),
pFormat, width, height ),
&cairo_surface_destroy) ));
- }
+ }
else
return SurfaceSharedPtr(
- new X11Surface( maSysData,
+ new X11Surface( maSysData,
X11PixmapSharedPtr(),
CairoSurfaceSharedPtr(
cairo_surface_create_similar( mpSurface.get(), aContent, width, height ),
@@ -291,7 +291,7 @@ namespace cairo
/**
* Surface::getDepth: Get the color depth of the Canvas surface.
*
- * @return color depth
+ * @return color depth
**/
int X11Surface::getDepth() const
{
@@ -335,10 +335,10 @@ namespace cairo
}
SurfaceSharedPtr createBitmapSurface( const OutputDevice& rRefDevice,
- const BitmapSystemData& rData,
+ const BitmapSystemData& rData,
const Size& rSize )
{
- OSL_TRACE( "requested size: %d x %d available size: %d x %d",
+ OSL_TRACE( "requested size: %d x %d available size: %d x %d",
rSize.Width(), rSize.Height(), rData.mnWidth, rData.mnHeight );
if ( rData.mnWidth == rSize.Width() && rData.mnHeight == rSize.Height() )
{
diff --git a/canvas/source/cairo/cairo_xlib_cairo.hxx b/canvas/source/cairo/cairo_xlib_cairo.hxx
index 92ca044a72ff..63d80dbf3f68 100644
--- a/canvas/source/cairo/cairo_xlib_cairo.hxx
+++ b/canvas/source/cairo/cairo_xlib_cairo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,13 +43,13 @@ namespace cairo {
explicit X11SysData( const SystemGraphicsData& );
explicit X11SysData( const SystemEnvData& );
- void* pDisplay; // the relevant display connection
- long hDrawable; // a drawable
- void* pVisual; // the visual in use
- int nScreen; // the current screen of the drawable
- int nDepth; // depth of said visual
- long aColormap; // the colormap being used
- void* pRenderFormat; // render format for drawable
+ void* pDisplay; // the relevant display connection
+ long hDrawable; // a drawable
+ void* pVisual; // the visual in use
+ int nScreen; // the current screen of the drawable
+ int nDepth; // depth of said visual
+ long aColormap; // the colormap being used
+ void* pRenderFormat; // render format for drawable
};
/// RAII wrapper for a pixmap
@@ -70,7 +70,7 @@ namespace cairo {
typedef boost::shared_ptr<X11Pixmap> X11PixmapSharedPtr;
- class X11Surface : public Surface
+ class X11Surface : public Surface
{
const X11SysData maSysData;
X11PixmapSharedPtr mpPixmap;
diff --git a/canvas/source/directx/dx_5rm.cxx b/canvas/source/directx/dx_5rm.cxx
index 000cc41e90ce..4adcb09de4cf 100644
--- a/canvas/source/directx/dx_5rm.cxx
+++ b/canvas/source/directx/dx_5rm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@
#include "dx_impltools.hxx"
#include <malloc.h>
-#if defined(DX_DEBUG_IMAGES)
+#if defined(DX_DEBUG_IMAGES)
# if OSL_DEBUG_LEVEL > 0
# include <imdebug.h>
# undef min
@@ -453,8 +453,8 @@ namespace dxcanvas
return pDirectDraw2;
}
- HRESULT WINAPI EnumTextureFormatsCallback( LPDDSURFACEDESC pSurfaceDesc,
- LPVOID pContext )
+ HRESULT WINAPI EnumTextureFormatsCallback( LPDDSURFACEDESC pSurfaceDesc,
+ LPVOID pContext )
{
// dirty cast of given context back to result ModeSelectContext
DDPIXELFORMAT* pResult = (DDPIXELFORMAT*)pContext;
@@ -587,7 +587,7 @@ namespace dxcanvas
struct ModeSelectContext
{
DDSURFACEDESC selectedDesc;
- ::basegfx::B2ISize requestedSize;
+ ::basegfx::B2ISize requestedSize;
};
/** Query actual size of the device
@@ -607,7 +607,7 @@ namespace dxcanvas
@return the amount of free surface mem
*/
- std::size_t getAvailableSurfaceMem( bool bWithAGPMem=true ) const;
+ std::size_t getAvailableSurfaceMem( bool bWithAGPMem=true ) const;
/** Query the amount of memory available for new textures
@@ -643,15 +643,15 @@ namespace dxcanvas
to serialize access to DirectX's global state, a global
mutex is required.
*/
- static ::osl::Mutex maMutex;
+ static ::osl::Mutex maMutex;
HWND mhWnd;
- ::boost::scoped_ptr<SystemChildWindow> mpWindow;
- ::basegfx::B2IVector maSize;
-
- ModeSelectContext maSelectedFullscreenMode;
+ ::boost::scoped_ptr<SystemChildWindow> mpWindow;
+ ::basegfx::B2IVector maSize;
+
+ ModeSelectContext maSelectedFullscreenMode;
DDPIXELFORMAT maTextureFormat;
-
+
MONITORINFO maMonitorInfo; // monitor info for mpDirectDraw's monitor
COMReference<IDirectDraw2> mpDirectDraw;
COMReference<IDirectDrawSurface> mpPrimarySurface;
@@ -660,23 +660,23 @@ namespace dxcanvas
COMReference< IDirect3D2 > mpDirect3D;
COMReference< IDirect3DDevice2 > mpDirect3DDevice;
- mutable ::canvas::tools::ElapsedTime maLastUpdate; // for the frame counter
+ mutable ::canvas::tools::ElapsedTime maLastUpdate; // for the frame counter
D3DDEVICEDESC maDeviceDesc;
- typedef std::vector<canvas::Vertex> vertexCache_t;
- vertexCache_t maVertexCache;
- std::size_t mnCount;
+ typedef std::vector<canvas::Vertex> vertexCache_t;
+ vertexCache_t maVertexCache;
+ std::size_t mnCount;
int mnBeginSceneCount;
-
- const bool mbPageFlipping;
- bool mbHasNoTearingBlt;
- bool mbError;
- PrimitiveType meType;
-
- ::canvas::ISurfaceSharedPtr mpTexture;
- ::basegfx::B2IVector maPageSize;
+
+ const bool mbPageFlipping;
+ bool mbHasNoTearingBlt;
+ bool mbError;
+ PrimitiveType meType;
+
+ ::canvas::ISurfaceSharedPtr mpTexture;
+ ::basegfx::B2IVector maPageSize;
};
::osl::Mutex DXRenderModule::maMutex;
@@ -685,7 +685,7 @@ namespace dxcanvas
// DXSurface::ImplRenderModuleGuard
//////////////////////////////////////////////////////////////////////////////////
- inline DXSurface::ImplRenderModuleGuard::ImplRenderModuleGuard(
+ inline DXSurface::ImplRenderModuleGuard::ImplRenderModuleGuard(
DXRenderModule& rRenderModule ) :
mrRenderModule( rRenderModule )
{
@@ -726,7 +726,7 @@ namespace dxcanvas
//////////////////////////////////////////////////////////////////////////////////
DXSurface::DXSurface( DXRenderModule& rRenderModule,
- const ::basegfx::B2ISize& rSize ) :
+ const ::basegfx::B2ISize& rSize ) :
mrRenderModule(rRenderModule),
mpTexture(NULL),
mpSurface(NULL),
@@ -747,7 +747,7 @@ namespace dxcanvas
return;
#endif
- ENSURE_ARG_OR_THROW(rSize.getX() > 0 && rSize.getY() > 0,
+ ENSURE_ARG_OR_THROW(rSize.getX() > 0 && rSize.getY() > 0,
"DXSurface::DXSurface(): request for zero-sized surface");
const D3DDEVICEDESC &deviceDesc = rRenderModule.getDeviceDesc();
@@ -839,7 +839,7 @@ namespace dxcanvas
return false;
}
-#if defined(DX_DEBUG_IMAGES)
+#if defined(DX_DEBUG_IMAGES)
# if OSL_DEBUG_LEVEL > 0
if( mpSurface.is() )
{
@@ -847,14 +847,14 @@ namespace dxcanvas
rtl_fillMemory( &aSurfaceDesc,sizeof(DDSURFACEDESC),0 );
aSurfaceDesc.dwSize = sizeof(DDSURFACEDESC);
- if( SUCCEEDED(mpSurface->Lock( NULL,
- &aSurfaceDesc,
+ if( SUCCEEDED(mpSurface->Lock( NULL,
+ &aSurfaceDesc,
DDLOCK_NOSYSLOCK|DDLOCK_SURFACEMEMORYPTR|DDLOCK_WAIT|DDLOCK_READONLY,
NULL)) )
{
- imdebug( "rgba w=%d h=%d %p",
- aSurfaceDesc.dwWidth,
- aSurfaceDesc.dwHeight,
+ imdebug( "rgba w=%d h=%d %p",
+ aSurfaceDesc.dwWidth,
+ aSurfaceDesc.dwHeight,
aSurfaceDesc.lpSurface );
mpSurface->Unlock(NULL);
@@ -877,7 +877,7 @@ namespace dxcanvas
if(!(mpSurface.is()))
return false;
- if(mpSurface->IsLost() == DDERR_SURFACELOST)
+ if(mpSurface->IsLost() == DDERR_SURFACELOST)
{
mpSurface->Restore();
return false;
@@ -906,8 +906,8 @@ namespace dxcanvas
aSurfaceDesc.dwSize = sizeof(DDSURFACEDESC);
// TODO(P2): only lock the region we want to update
- if( FAILED(mpSurface->Lock( NULL,
- &aSurfaceDesc,
+ if( FAILED(mpSurface->Lock( NULL,
+ &aSurfaceDesc,
DDLOCK_NOSYSLOCK|DDLOCK_SURFACEMEMORYPTR|DDLOCK_WAIT|DDLOCK_WRITEONLY,
NULL)) )
return false;
@@ -925,7 +925,7 @@ namespace dxcanvas
// calculate the destination memory address
sal_uInt8 *pDst = ((sal_uInt8*)aSurfaceDesc.lpSurface+
- (rDestPos.getY()*aSurfaceDesc.lPitch) +
+ (rDestPos.getY()*aSurfaceDesc.lPitch) +
(4*rDestPos.getX()));
const sal_uInt32 nNumBytesToCopy(
@@ -953,7 +953,7 @@ namespace dxcanvas
// calculate the destination memory address
sal_uInt8 *pDst = ((sal_uInt8*)aSurfaceDesc.lpSurface+
- (rDestPos.getY()*aSurfaceDesc.lPitch) +
+ (rDestPos.getY()*aSurfaceDesc.lPitch) +
(4*rDestPos.getX()));
const sal_uInt64 nNumColumns(rSourceRect.getWidth());
@@ -987,7 +987,7 @@ namespace dxcanvas
// calculate the destination memory address
sal_uInt8 *pDst = ((sal_uInt8*)aSurfaceDesc.lpSurface+
- (rDestPos.getY()*aSurfaceDesc.lPitch) +
+ (rDestPos.getY()*aSurfaceDesc.lPitch) +
(4*rDestPos.getX()));
const sal_uInt64 nNumLines(rSourceRect.getHeight());
@@ -1006,7 +1006,7 @@ namespace dxcanvas
break;
default:
- ENSURE_OR_RETURN_FALSE(false,
+ ENSURE_OR_RETURN_FALSE(false,
"DXSurface::update(): Unknown/unimplemented buffer format" );
break;
}
@@ -1020,7 +1020,7 @@ namespace dxcanvas
//////////////////////////////////////////////////////////////////////////////////
// DXSurface::getSize
//////////////////////////////////////////////////////////////////////////////////
-
+
::basegfx::B2IVector DXSurface::getSize()
{
return maSize;
@@ -1104,19 +1104,19 @@ namespace dxcanvas
maVertexCache.reserve(1024);
- mpWindow.reset(
+ mpWindow.reset(
new SystemChildWindow(
const_cast<Window *>(&rWindow), 0) );
// system child window must not receive mouse events
mpWindow->SetMouseTransparent( TRUE );
-
+
// parent should receive paint messages as well
// [PARENTCLIPMODE_NOCLIP], the argument is here
// passed as plain numeric value since the stupid
// define utilizes a USHORT cast.
mpWindow->SetParentClipMode(0x0002);
-
+
// the system child window must not clear its background
mpWindow->EnableEraseBackground( FALSE );
@@ -1144,7 +1144,7 @@ namespace dxcanvas
MonitorList aMonitorList;
fillMonitorList( aMonitorList );
-
+
mpDirectDraw = COMReference<IDirectDraw2>(
createDirectDraw(aMonitorList, maMonitorInfo, mhWnd));
@@ -1192,8 +1192,8 @@ namespace dxcanvas
// check for supported primary surface formats...
unsigned int nDisplayFormat = getDisplayFormat() & 0x00000FFF;
- if(nDisplayFormat != 0x888 && nDisplayFormat != 0x565)
- {
+ if(nDisplayFormat != 0x888 && nDisplayFormat != 0x565)
+ {
// go defunct, and exit
VERBOSE_TRACE( "Device::Device(): Unsupported DisplayFormat" );
mpDirectDraw.reset();
@@ -1201,7 +1201,7 @@ namespace dxcanvas
}
// create primary surface reference
- DDSURFACEDESC aSurfaceDesc;
+ DDSURFACEDESC aSurfaceDesc;
IDirectDrawSurface* pPrimarySurface;
rtl_fillMemory( &aSurfaceDesc,
@@ -1349,7 +1349,7 @@ namespace dxcanvas
{
// create and setup 3D device
// ==========================
- LPDIRECT3D2 pDirect3D;
+ LPDIRECT3D2 pDirect3D;
if( FAILED( mpDirectDraw->QueryInterface( IID_IDirect3D2, (LPVOID*)&pDirect3D ) ) )
{
// go defunct, and exit
@@ -1361,8 +1361,8 @@ namespace dxcanvas
LPDIRECT3DDEVICE2 pDirect3DDevice;
// try HW-accelerated device first
- if( FAILED(mpDirect3D->CreateDevice( IID_IDirect3DHALDevice,
- mpBackBufferSurface.get(),
+ if( FAILED(mpDirect3D->CreateDevice( IID_IDirect3DHALDevice,
+ mpBackBufferSurface.get(),
&pDirect3DDevice )) )
{
// no HW 3D support - go defunct, and exit
@@ -1376,7 +1376,7 @@ namespace dxcanvas
rtl_fillMemory(&aHELDeviceDesc,sizeof(aHELDeviceDesc),0);
maDeviceDesc.dwSize = sizeof(maDeviceDesc);
aHELDeviceDesc.dwSize = sizeof(aHELDeviceDesc);
- if(FAILED(pDirect3DDevice->GetCaps(&maDeviceDesc,&aHELDeviceDesc)))
+ if(FAILED(pDirect3DDevice->GetCaps(&maDeviceDesc,&aHELDeviceDesc)))
{
// go defunct, and exit
VERBOSE_TRACE( "Device::setup3DDevice(): GetCaps() for Direct3DDevice failed" );
@@ -1404,7 +1404,7 @@ namespace dxcanvas
else if(maTextureFormat.dwBBitMask != 0x000000FF)
bSupportedFormat = false;
- if(bSupportedFormat)
+ if(bSupportedFormat)
{
VERBOSE_TRACE( "Device::setup3DDevice(): chose texture format dwRGBBitCount %d, dwRBitMask %x, "
"dwGBitMask %x, dwBBitMask %x and dwRGBAlphaBitMask %x. The texture uses %s alpha.",
@@ -1414,11 +1414,11 @@ namespace dxcanvas
maTextureFormat.dwBBitMask,
maTextureFormat.dwRGBAlphaBitMask,
maTextureFormat.dwFlags & DDPF_ALPHAPREMULT ? "premultiplied" : "non-premultiplied" );
-
+
// setup the device (with as much as we can possibly do here)
// ==========================================================
- LPDIRECT3DVIEWPORT2 pViewport;
+ LPDIRECT3DVIEWPORT2 pViewport;
if( SUCCEEDED(mpDirect3D->CreateViewport( &pViewport, NULL )) )
{
@@ -1500,8 +1500,8 @@ namespace dxcanvas
bool DXRenderModule::queryCaps()
{
- DDCAPS aHWCaps;
- DDCAPS aHELCaps;
+ DDCAPS aHWCaps;
+ DDCAPS aHELCaps;
rtl_fillMemory( &aHWCaps,
sizeof(aHWCaps), 0 );
@@ -1519,12 +1519,12 @@ namespace dxcanvas
mbHasNoTearingBlt = aHWCaps.dwFXCaps & DDBLTFX_NOTEARING;
VERBOSE_TRACE( "dxcanvas initialization: %d bytes VRAM free for surfaces (%d with AGP mem), "
- "%d bytes VRAM free for textures (%d with AGP mem)",
+ "%d bytes VRAM free for textures (%d with AGP mem)",
getAvailableSurfaceMem( false ),
getAvailableSurfaceMem( true ),
getAvailableTextureMem( false ),
getAvailableTextureMem( true ) );
-
+
return true;
}
@@ -1560,7 +1560,7 @@ namespace dxcanvas
// DXRenderModule::getDisplayFormat
//////////////////////////////////////////////////////////////////////////////////
- unsigned int DXRenderModule::getDisplayFormat() const
+ unsigned int DXRenderModule::getDisplayFormat() const
{
unsigned int nFormat;
nFormat = ::canvas::tools::bitcount32(maSelectedFullscreenMode.selectedDesc.ddpfPixelFormat.dwRGBAlphaBitMask)<<12;
@@ -1582,7 +1582,7 @@ namespace dxcanvas
std::size_t nRes( 0 );
DDSCAPS aSurfaceCaps;
- DWORD nTotal, nFree;
+ DWORD nTotal, nFree;
// real VRAM (const_cast, since GetAvailableVidMem is non-const)
aSurfaceCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_VIDEOMEMORY | DDSCAPS_LOCALVIDMEM;
@@ -1597,7 +1597,7 @@ namespace dxcanvas
aSurfaceCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_VIDEOMEMORY | DDSCAPS_NONLOCALVIDMEM;
if( FAILED(const_cast<IDirectDraw2&>(*mpDirectDraw).GetAvailableVidMem( &aSurfaceCaps, &nTotal, &nFree )) )
return 0;
-
+
nRes += nFree;
}
@@ -1616,7 +1616,7 @@ namespace dxcanvas
std::size_t nRes( 0 );
DDSCAPS aSurfaceCaps;
- DWORD nTotal, nFree;
+ DWORD nTotal, nFree;
// TODO(F1): Check if flags are applicable
@@ -1633,7 +1633,7 @@ namespace dxcanvas
aSurfaceCaps.dwCaps = DDSCAPS_TEXTURE | DDSCAPS_VIDEOMEMORY | DDSCAPS_NONLOCALVIDMEM;
if( FAILED(const_cast<IDirectDraw2&>(*mpDirectDraw).GetAvailableVidMem( &aSurfaceCaps, &nTotal, &nFree )) )
return 0;
-
+
nRes += nFree;
}
@@ -1651,13 +1651,13 @@ namespace dxcanvas
{
POINT aPoint = { 0, 0 };
ClientToScreen( mhWnd, &aPoint );
-
+
// i52230 make sure given screen coordinate is relative to
// this monitor's area (the device rendering is always
// contained to a single monitor)
aPoint.x -= maMonitorInfo.rcMonitor.left;
aPoint.y -= maMonitorInfo.rcMonitor.top;
-
+
io_rDestPos.setX( io_rDestPos.getX() + aPoint.x );
io_rDestPos.setY( io_rDestPos.getY() + aPoint.y );
@@ -1685,7 +1685,7 @@ namespace dxcanvas
COMReference<IDirectDrawSurface> DXRenderModule::createSystemMemorySurface( const ::basegfx::B2IVector& rSize )
{
- DDSURFACEDESC aSurfaceDesc;
+ DDSURFACEDESC aSurfaceDesc;
IDirectDrawSurface* pSurface;
aSurfaceDesc.dwSize = sizeof(DDSURFACEDESC);
@@ -1696,7 +1696,7 @@ namespace dxcanvas
rtl_copyMemory( &aSurfaceDesc.ddpfPixelFormat, &maTextureFormat, sizeof(DDPIXELFORMAT) );
aSurfaceDesc.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN | DDSCAPS_SYSTEMMEMORY;
-
+
HRESULT nRes = mpDirectDraw->CreateSurface(&aSurfaceDesc, &pSurface, NULL);
if(FAILED(nRes))
return COMReference<IDirectDrawSurface>(NULL);
@@ -1740,7 +1740,7 @@ namespace dxcanvas
renderMemAvailable();
#endif
VERBOSE_TRACE( "Device::flip(): Using true page flipping" );
-
+
// use true page flipping. Hopefully, the 3D hardware
// is flushed on this flip call (rumours have it that
// way), otherwise, perform the Lock hack as for the
@@ -1775,7 +1775,7 @@ namespace dxcanvas
// target (the backbuffer in this case). OTOH, I've
// found that this tends to degrade performance
// significantly on complying cards...
-
+
// TODO(P1): Up until rev. 1.3, this method contained
// code to make sure the blit will start _immediately_
// after the Blt call. If this is not warranted, wait
@@ -1799,14 +1799,14 @@ namespace dxcanvas
DDBLTFX* pBltFX = NULL;
if( mbHasNoTearingBlt )
{
- // Blt can internally schedule for no-tearing
- // ===========================================
-
+ // Blt can internally schedule for no-tearing
+ // ===========================================
+
rtl_fillMemory( &aBltFx,
sizeof(aBltFx), 0 );
aBltFx.dwSize = sizeof(aBltFx);
aBltFx.dwDDFX = DDBLTFX_NOTEARING;
-
+
pBltFX = &aBltFx;
}
@@ -1864,7 +1864,7 @@ namespace dxcanvas
// DXRenderModule::validateMainSurfaces
//////////////////////////////////////////////////////////////////////////////////
- bool DXRenderModule::validateMainSurfaces()
+ bool DXRenderModule::validateMainSurfaces()
{
if(mpPrimarySurface.get()) {
if(mpPrimarySurface->IsLost() == DDERR_SURFACELOST) {
@@ -1874,20 +1874,20 @@ namespace dxcanvas
}
if(mpBackBufferSurface.get()) {
- if(mpBackBufferSurface->IsLost() == DDERR_SURFACELOST)
- {
+ if(mpBackBufferSurface->IsLost() == DDERR_SURFACELOST)
+ {
// TODO(F1): simply restoring the backbuffer does not
// work as expected, we need to re-create everything
// from scratch. find out why...
//if(SUCCEEDED(mpBackBufferSurface->Restore()))
- // return setup3DDevice();
+ // return setup3DDevice();
mpBackBufferSurface.reset();
// get us a backbuffer for simulated flipping
IDirectDrawSurface* pSurface;
- // TODO(P2): Strictly speaking, we don't need a full screen worth of
+ // TODO(P2): Strictly speaking, we don't need a full screen worth of
// backbuffer here. We could also scale dynamically with the current
// window size, but this will make it necessary to temporarily have two
// buffers while copying from the old to the new one. YMMV.
@@ -1950,16 +1950,16 @@ namespace dxcanvas
if( mbPageFlipping )
{
- // render on top of backbuffer. We have
+ // render on top of backbuffer. We have
// page flipping, anyway, thus this will
// cost us nothing.
pGraphics = createSurfaceGraphics( mpBackBufferSurface );
}
else
{
- // render FPS directly to front buffer.
+ // render FPS directly to front buffer.
// That saves us another explicit blit,
- // and for me, the FPS counter can blink,
+ // and for me, the FPS counter can blink,
// if it likes to...
pGraphics = createSurfaceGraphics( mpPrimarySurface );
}
@@ -1969,16 +1969,16 @@ namespace dxcanvas
// clear background. We might be doing optimized redraws,
// and the background under the FPS count will then not be
// cleared.
- Gdiplus::SolidBrush aBrush(
+ Gdiplus::SolidBrush aBrush(
Gdiplus::Color( 255, 255, 255 ) );
pGraphics->FillRectangle( &aBrush,
rPos.X, rPos.Y, 80.0, 20.0 );
}
- Gdiplus::SolidBrush aBrush(
+ Gdiplus::SolidBrush aBrush(
Gdiplus::Color( 255, 0, 255 ) );
- Gdiplus::Font aFont( NULL,
+ Gdiplus::Font aFont( NULL,
16,
Gdiplus::FontStyleRegular,
Gdiplus::UnitWorld,
@@ -2000,7 +2000,7 @@ namespace dxcanvas
"DXRenderModule::renderMemAvailable(): within 3D scene" );
const double nSurfaceMem( getAvailableSurfaceMem()/1024 );
-
+
::rtl::OUString text( ::rtl::math::doubleToUString( nSurfaceMem,
rtl_math_StringFormat_F,
2,'.',NULL,' ') );
@@ -2029,7 +2029,7 @@ namespace dxcanvas
renderInfoText( text,
Gdiplus::PointF( 0.0, 40) );
- VERBOSE_TRACE( "dxcanvas: %f free surface mem, %f free texture mem",
+ VERBOSE_TRACE( "dxcanvas: %f free surface mem, %f free texture mem",
nSurfaceMem, nTexMem );
}
@@ -2044,7 +2044,7 @@ namespace dxcanvas
const double denominator( maLastUpdate.getElapsedTime() );
maLastUpdate.reset();
-
+
::rtl::OUString text( ::rtl::math::doubleToUString( denominator == 0.0 ? 100.0 : 1.0/denominator,
rtl_math_StringFormat_F,
2,'.',NULL,' ') );
@@ -2056,9 +2056,9 @@ namespace dxcanvas
text += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM (" fps"));
renderInfoText( text,
- Gdiplus::PointF() );
+ Gdiplus::PointF() );
- VERBOSE_TRACE( "dxcanvas: %f FPS",
+ VERBOSE_TRACE( "dxcanvas: %f FPS",
denominator == 0.0 ? 100.0 : 1.0/denominator );
}
@@ -2112,7 +2112,7 @@ namespace dxcanvas
if(mpTexture.use_count() == 1)
return mpTexture;
- return ::canvas::ISurfaceSharedPtr(
+ return ::canvas::ISurfaceSharedPtr(
new DXSurface(*this,
aSize) );
}
@@ -2265,7 +2265,7 @@ namespace dxcanvas
maVertexCache.clear();
- mbError |= FAILED(mpDirect3DDevice->DrawPrimitive(D3DPT_TRIANGLELIST,
+ mbError |= FAILED(mpDirect3DDevice->DrawPrimitive(D3DPT_TRIANGLELIST,
D3DVT_TLVERTEX,
(LPVOID)vertices,
size,
diff --git a/canvas/source/directx/dx_9rm.cxx b/canvas/source/directx/dx_9rm.cxx
index fde5f3bfd394..50c0a3d9bcdf 100644
--- a/canvas/source/directx/dx_9rm.cxx
+++ b/canvas/source/directx/dx_9rm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,7 +74,7 @@
#include "dx_impltools.hxx"
#include <vcl/sysdata.hxx>
-#if defined(DX_DEBUG_IMAGES)
+#if defined(DX_DEBUG_IMAGES)
# if OSL_DEBUG_LEVEL > 0
# include <imdebug.h>
# undef min
@@ -172,7 +172,7 @@ namespace dxcanvas
public:
explicit inline ImplRenderModuleGuard( DXRenderModule& rRenderModule );
inline ~ImplRenderModuleGuard();
-
+
private:
DXRenderModule& mrRenderModule;
};
@@ -194,7 +194,7 @@ namespace dxcanvas
public:
explicit DXRenderModule( const ::Window& rWindow );
~DXRenderModule();
-
+
virtual void lock() const { maMutex.acquire(); }
virtual void unlock() const { maMutex.release(); }
@@ -226,7 +226,7 @@ namespace dxcanvas
bool createDevice();
bool verifyDevice( const UINT nAdapter );
UINT getAdapterFromWindow();
-
+
/** This object represents the DirectX state machine. In order
to serialize access to DirectX's global state, a global
mutex is required.
@@ -260,7 +260,7 @@ namespace dxcanvas
float u,v;
};
- std::size_t maNumVertices;
+ std::size_t maNumVertices;
std::size_t maWriteIndex;
std::size_t maReadIndex;
};
@@ -271,7 +271,7 @@ namespace dxcanvas
// DXSurface::ImplRenderModuleGuard
//////////////////////////////////////////////////////////////////////////////////
- inline DXSurface::ImplRenderModuleGuard::ImplRenderModuleGuard(
+ inline DXSurface::ImplRenderModuleGuard::ImplRenderModuleGuard(
DXRenderModule& rRenderModule ) :
mrRenderModule( rRenderModule )
{
@@ -312,7 +312,7 @@ namespace dxcanvas
//////////////////////////////////////////////////////////////////////////////////
DXSurface::DXSurface( DXRenderModule& rRenderModule,
- const ::basegfx::B2ISize& rSize ) :
+ const ::basegfx::B2ISize& rSize ) :
mrRenderModule(rRenderModule),
mpTexture(NULL),
maSize()
@@ -332,7 +332,7 @@ namespace dxcanvas
return;
#endif
- ENSURE_ARG_OR_THROW(rSize.getX() > 0 && rSize.getY() > 0,
+ ENSURE_ARG_OR_THROW(rSize.getX() > 0 && rSize.getY() > 0,
"DXSurface::DXSurface(): request for zero-sized surface");
COMReference<IDirect3DDevice9> pDevice(rRenderModule.getDevice());
@@ -419,7 +419,7 @@ namespace dxcanvas
rect.bottom = std::min(maSize.getY(),
rect.top + sal_Int32(rSourceRect.getHeight()+1));
const bool bClearRightColumn( rect.right < maSize.getX() );
- const bool bClearBottomRow( rect.bottom < maSize.getY() );
+ const bool bClearBottomRow( rect.bottom < maSize.getY() );
if(SUCCEEDED(mpTexture->LockRect(0,&aLockedRect,&rect,D3DLOCK_NOSYSLOCK)))
{
@@ -454,9 +454,9 @@ namespace dxcanvas
// manager allocates one pixel gap
// between them. Clear that to
// transparent.
- pDst[nNumBytesToCopy] =
- pDst[nNumBytesToCopy+1] =
- pDst[nNumBytesToCopy+2] =
+ pDst[nNumBytesToCopy] =
+ pDst[nNumBytesToCopy+1] =
+ pDst[nNumBytesToCopy+2] =
pDst[nNumBytesToCopy+3] = 0x00;
}
pDst += aLockedRect.Pitch;
@@ -542,7 +542,7 @@ namespace dxcanvas
break;
default:
- ENSURE_OR_RETURN_FALSE(false,
+ ENSURE_OR_RETURN_FALSE(false,
"DXSurface::update(): Unknown/unimplemented buffer format" );
break;
}
@@ -559,7 +559,7 @@ namespace dxcanvas
//////////////////////////////////////////////////////////////////////////////////
// DXSurface::getSize
//////////////////////////////////////////////////////////////////////////////////
-
+
::basegfx::B2IVector DXSurface::getSize()
{
return maSize;
@@ -626,7 +626,7 @@ namespace dxcanvas
}
}
maPageSize=aPageSize;
-
+
IDirect3DVertexBuffer9 *pVB(NULL);
DWORD aFVF(D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1);
if( FAILED(mpDevice->CreateVertexBuffer(sizeof(dxvertex)*maNumVertices,
@@ -683,19 +683,19 @@ namespace dxcanvas
maVertexCache.reserve(1024);
- mpWindow.reset(
+ mpWindow.reset(
new SystemChildWindow(
const_cast<Window *>(&rWindow), 0) );
// system child window must not receive mouse events
mpWindow->SetMouseTransparent( TRUE );
-
+
// parent should receive paint messages as well
// [PARENTCLIPMODE_NOCLIP], the argument is here
// passed as plain numeric value since the stupid
// define utilizes a USHORT cast.
mpWindow->SetParentClipMode(0x0002);
-
+
// the system child window must not clear its background
mpWindow->EnableEraseBackground( FALSE );
@@ -764,7 +764,7 @@ namespace dxcanvas
D3DADAPTER_IDENTIFIER9 aIdent;
if(FAILED(mpDirect3D9->GetAdapterIdentifier(nAdapter,0,&aIdent)))
return false;
-
+
DXCanvasItem aConfigItem;
DXCanvasItem::DeviceInfo aInfo;
aInfo.nVendorId = aIdent.VendorId;
@@ -941,13 +941,13 @@ namespace dxcanvas
flushVertexCache();
- // TODO(P2): Might be faster to actually pass update area here
- RECT aRect =
+ // TODO(P2): Might be faster to actually pass update area here
+ RECT aRect =
{
rUpdateArea.getMinX(),
rUpdateArea.getMinY(),
rUpdateArea.getMaxX(),
- rUpdateArea.getMaxY()
+ rUpdateArea.getMaxY()
};
HRESULT hr(mpSwapChain->Present(&aRect,&aRect,NULL,NULL,0));
if(FAILED(hr))
@@ -1183,7 +1183,7 @@ namespace dxcanvas
}
default:
- OSL_ENSURE(false,
+ OSL_ENSURE(false,
"DXRenderModule::pushVertex(): unexpected primitive type");
break;
}
@@ -1218,7 +1218,7 @@ namespace dxcanvas
//////////////////////////////////////////////////////////////////////////////////
// DXRenderModule::commitVertexCache
//////////////////////////////////////////////////////////////////////////////////
-
+
void DXRenderModule::commitVertexCache()
{
if(maReadIndex != maWriteIndex)
diff --git a/canvas/source/directx/dx_bitmap.cxx b/canvas/source/directx/dx_bitmap.cxx
index 2c4cfef53eb6..88ded9f61e32 100644
--- a/canvas/source/directx/dx_bitmap.cxx
+++ b/canvas/source/directx/dx_bitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/range/b2irange.hxx>
-#if defined(DX_DEBUG_IMAGES)
+#if defined(DX_DEBUG_IMAGES)
# if OSL_DEBUG_LEVEL > 0
# include <imdebug.h>
# undef min
@@ -56,7 +56,7 @@ namespace dxcanvas
//////////////////////////////////////////////////////////////////////////////////
DXBitmap::DXBitmap( const BitmapSharedPtr& rBitmap,
- bool bWithAlpha ) :
+ bool bWithAlpha ) :
mpGdiPlusUser( GDIPlusUser::createInstance() ),
maSize(rBitmap->GetWidth(),rBitmap->GetHeight()),
mpBitmap(rBitmap),
@@ -66,7 +66,7 @@ namespace dxcanvas
}
DXBitmap::DXBitmap( const ::basegfx::B2IVector& rSize,
- bool bWithAlpha ) :
+ bool bWithAlpha ) :
mpGdiPlusUser( GDIPlusUser::createInstance() ),
maSize(rSize),
mpBitmap(),
@@ -76,16 +76,16 @@ namespace dxcanvas
// create container for pixel data
if(mbAlpha)
{
- mpBitmap.reset(
- new Gdiplus::Bitmap(
+ mpBitmap.reset(
+ new Gdiplus::Bitmap(
maSize.getX(),
maSize.getY(),
PixelFormat32bppARGB));
}
else
{
- mpBitmap.reset(
- new Gdiplus::Bitmap(
+ mpBitmap.reset(
+ new Gdiplus::Bitmap(
maSize.getX(),
maSize.getY(),
PixelFormat24bppRGB));
@@ -114,7 +114,7 @@ namespace dxcanvas
return mbAlpha;
}
- uno::Sequence< sal_Int8 > DXBitmap::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ uno::Sequence< sal_Int8 > DXBitmap::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerRectangle2D& rect )
{
uno::Sequence< sal_Int8 > aRes( (rect.X2-rect.X1)*(rect.Y2-rect.Y1)*4 ); // TODO(F1): Be format-agnostic here
@@ -122,11 +122,11 @@ namespace dxcanvas
const Gdiplus::Rect aRect( tools::gdiPlusRectFromIntegerRectangle2D( rect ) );
Gdiplus::BitmapData aBmpData;
- aBmpData.Width = rect.X2-rect.X1;
- aBmpData.Height = rect.Y2-rect.Y1;
- aBmpData.Stride = 4*aBmpData.Width;
+ aBmpData.Width = rect.X2-rect.X1;
+ aBmpData.Height = rect.Y2-rect.Y1;
+ aBmpData.Stride = 4*aBmpData.Width;
aBmpData.PixelFormat = PixelFormat32bppARGB;
- aBmpData.Scan0 = aRes.getArray();
+ aBmpData.Scan0 = aRes.getArray();
// TODO(F1): Support more pixel formats natively
@@ -148,18 +148,18 @@ namespace dxcanvas
return aRes;
}
- void DXBitmap::setData( const uno::Sequence< sal_Int8 >& data,
- const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
- const geometry::IntegerRectangle2D& rect )
+ void DXBitmap::setData( const uno::Sequence< sal_Int8 >& data,
+ const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ const geometry::IntegerRectangle2D& rect )
{
const Gdiplus::Rect aRect( tools::gdiPlusRectFromIntegerRectangle2D( rect ) );
Gdiplus::BitmapData aBmpData;
- aBmpData.Width = rect.X2-rect.X1;
- aBmpData.Height = rect.Y2-rect.Y1;
- aBmpData.Stride = 4*aBmpData.Width;
+ aBmpData.Width = rect.X2-rect.X1;
+ aBmpData.Height = rect.Y2-rect.Y1;
+ aBmpData.Stride = 4*aBmpData.Width;
aBmpData.PixelFormat = PixelFormat32bppARGB;
- aBmpData.Scan0 = (void*)data.getConstArray();
+ aBmpData.Scan0 = (void*)data.getConstArray();
// TODO(F1): Support more pixel formats natively
@@ -179,40 +179,40 @@ namespace dxcanvas
}
void DXBitmap::setPixel( const uno::Sequence< sal_Int8 >& color,
- const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerPoint2D& pos )
{
const geometry::IntegerSize2D aSize( maSize.getX(),maSize.getY() );
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aSize.Width,
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aSize.Width,
"CanvasHelper::setPixel: X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aSize.Height,
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aSize.Height,
"CanvasHelper::setPixel: Y coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( color.getLength() > 3,
+ ENSURE_ARG_OR_THROW( color.getLength() > 3,
"CanvasHelper::setPixel: not enough color components" );
- if( Gdiplus::Ok != mpBitmap->SetPixel( pos.X, pos.Y,
+ if( Gdiplus::Ok != mpBitmap->SetPixel( pos.X, pos.Y,
Gdiplus::Color( tools::sequenceToArgb( color ))))
{
throw uno::RuntimeException();
}
}
- uno::Sequence< sal_Int8 > DXBitmap::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ uno::Sequence< sal_Int8 > DXBitmap::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerPoint2D& pos )
{
const geometry::IntegerSize2D aSize( maSize.getX(),maSize.getY() );
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aSize.Width,
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aSize.Width,
"CanvasHelper::getPixel: X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aSize.Height,
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aSize.Height,
"CanvasHelper::getPixel: Y coordinate out of bounds" );
Gdiplus::Color aColor;
if( Gdiplus::Ok != mpBitmap->GetPixel( pos.X, pos.Y, &aColor ) )
return uno::Sequence< sal_Int8 >();
-
+
return tools::argbToIntSequence(aColor.GetValue());
}
diff --git a/canvas/source/directx/dx_bitmap.hxx b/canvas/source/directx/dx_bitmap.hxx
index 9543a794202b..338bcbb15d32 100644
--- a/canvas/source/directx/dx_bitmap.hxx
+++ b/canvas/source/directx/dx_bitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,9 +46,9 @@ namespace dxcanvas
{
public:
DXBitmap( const BitmapSharedPtr& rBitmap,
- bool bWithAlpha );
+ bool bWithAlpha );
DXBitmap( const ::basegfx::B2IVector& rSize,
- bool bWithAlpha );
+ bool bWithAlpha );
virtual GraphicsSharedPtr getGraphics();
@@ -57,22 +57,22 @@ namespace dxcanvas
virtual bool hasAlpha() const;
::com::sun::star::uno::Sequence< sal_Int8 > getData(
- ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
void setData(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
void setPixel(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos );
+ const ::com::sun::star::geometry::IntegerPoint2D& pos );
::com::sun::star::uno::Sequence< sal_Int8 > getPixel(
- ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos );
+ ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos );
private:
// Refcounted global GDI+ state container
diff --git a/canvas/source/directx/dx_bitmapcanvashelper.cxx b/canvas/source/directx/dx_bitmapcanvashelper.cxx
index 997f2eac24a6..c20c0ec06956 100644
--- a/canvas/source/directx/dx_bitmapcanvashelper.cxx
+++ b/canvas/source/directx/dx_bitmapcanvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,11 +100,11 @@ namespace dxcanvas
{
GraphicsSharedPtr pGraphics( mpTarget->getGraphics() );
- Gdiplus::Color aClearColor = hasAlpha() ?
+ Gdiplus::Color aClearColor = hasAlpha() ?
Gdiplus::Color( 0,255,255,255 ) : Gdiplus::Color((Gdiplus::ARGB)Gdiplus::Color::White);
ENSURE_OR_THROW(
- Gdiplus::Ok == pGraphics->SetCompositingMode(
+ Gdiplus::Ok == pGraphics->SetCompositingMode(
Gdiplus::CompositingModeSourceCopy ), // force set, don't blend
"BitmapCanvasHelper::clear(): GDI+ SetCompositingMode call failed" );
ENSURE_OR_THROW(
@@ -113,26 +113,26 @@ namespace dxcanvas
}
}
- uno::Reference< rendering::XCachedPrimitive > BitmapCanvasHelper::drawTextLayout( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XTextLayout >& xLayoutetText,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > BitmapCanvasHelper::drawTextLayout( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XTextLayout >& xLayoutetText,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- ENSURE_OR_THROW( xLayoutetText.is(),
+ ENSURE_OR_THROW( xLayoutetText.is(),
"BitmapCanvasHelper::drawTextLayout: layout is NULL");
if( needOutput() )
{
- TextLayout* pTextLayout =
+ TextLayout* pTextLayout =
dynamic_cast< TextLayout* >( xLayoutetText.get() );
ENSURE_OR_THROW( pTextLayout,
"BitmapCanvasHelper::drawTextLayout(): TextLayout not compatible with this canvas" );
pTextLayout->draw( mpTarget->getGraphics(),
- viewState,
- renderState,
- maOutputOffset,
+ viewState,
+ renderState,
+ maOutputOffset,
mpDevice,
mpTarget->hasAlpha() );
}
@@ -140,14 +140,14 @@ namespace dxcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- void BitmapCanvasHelper::copyRect( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XBitmapCanvas >& /*sourceCanvas*/,
- const geometry::RealRectangle2D& /*sourceRect*/,
- const rendering::ViewState& /*sourceViewState*/,
- const rendering::RenderState& /*sourceRenderState*/,
- const geometry::RealRectangle2D& /*destRect*/,
- const rendering::ViewState& /*destViewState*/,
- const rendering::RenderState& /*destRenderState*/ )
+ void BitmapCanvasHelper::copyRect( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XBitmapCanvas >& /*sourceCanvas*/,
+ const geometry::RealRectangle2D& /*sourceRect*/,
+ const rendering::ViewState& /*sourceViewState*/,
+ const rendering::RenderState& /*sourceRenderState*/,
+ const geometry::RealRectangle2D& /*destRect*/,
+ const rendering::ViewState& /*destViewState*/,
+ const rendering::RenderState& /*destRenderState*/ )
{
// TODO(F2): copyRect NYI
}
@@ -160,14 +160,14 @@ namespace dxcanvas
return basegfx::unotools::integerSize2DFromB2ISize(mpTarget->getSize());
}
- uno::Reference< rendering::XBitmap > BitmapCanvasHelper::getScaledBitmap( const geometry::RealSize2D& /*newSize*/,
- sal_Bool /*beFast*/ )
+ uno::Reference< rendering::XBitmap > BitmapCanvasHelper::getScaledBitmap( const geometry::RealSize2D& /*newSize*/,
+ sal_Bool /*beFast*/ )
{
// TODO(F1):
return uno::Reference< rendering::XBitmap >();
}
- uno::Sequence< sal_Int8 > BitmapCanvasHelper::getData( rendering::IntegerBitmapLayout& bitmapLayout,
+ uno::Sequence< sal_Int8 > BitmapCanvasHelper::getData( rendering::IntegerBitmapLayout& bitmapLayout,
const geometry::IntegerRectangle2D& rect )
{
RTL_LOGFILE_CONTEXT( aLog, "::dxcanvas::BitmapCanvasHelper::getData()" );
@@ -177,14 +177,14 @@ namespace dxcanvas
if( !mpTarget )
return uno::Sequence< sal_Int8 >();
-
+
bitmapLayout = getMemoryLayout();
return mpTarget->getData(bitmapLayout,rect);
}
- void BitmapCanvasHelper::setData( const uno::Sequence< sal_Int8 >& data,
- const rendering::IntegerBitmapLayout& bitmapLayout,
- const geometry::IntegerRectangle2D& rect )
+ void BitmapCanvasHelper::setData( const uno::Sequence< sal_Int8 >& data,
+ const rendering::IntegerBitmapLayout& bitmapLayout,
+ const geometry::IntegerRectangle2D& rect )
{
RTL_LOGFILE_CONTEXT( aLog, "::dxcanvas::BitmapCanvasHelper::setData()" );
@@ -197,8 +197,8 @@ namespace dxcanvas
mpTarget->setData(data,bitmapLayout,rect);
}
- void BitmapCanvasHelper::setPixel( const uno::Sequence< sal_Int8 >& color,
- const rendering::IntegerBitmapLayout& bitmapLayout,
+ void BitmapCanvasHelper::setPixel( const uno::Sequence< sal_Int8 >& color,
+ const rendering::IntegerBitmapLayout& bitmapLayout,
const geometry::IntegerPoint2D& pos )
{
RTL_LOGFILE_CONTEXT( aLog, "::dxcanvas::BitmapCanvasHelper::setPixel()" );
@@ -212,7 +212,7 @@ namespace dxcanvas
mpTarget->setPixel(color,bitmapLayout,pos);
}
- uno::Sequence< sal_Int8 > BitmapCanvasHelper::getPixel( rendering::IntegerBitmapLayout& bitmapLayout,
+ uno::Sequence< sal_Int8 > BitmapCanvasHelper::getPixel( rendering::IntegerBitmapLayout& bitmapLayout,
const geometry::IntegerPoint2D& pos )
{
RTL_LOGFILE_CONTEXT( aLog, "::dxcanvas::BitmapCanvasHelper::getPixel()" );
diff --git a/canvas/source/directx/dx_bitmapcanvashelper.hxx b/canvas/source/directx/dx_bitmapcanvashelper.hxx
index 019bfcb152b5..9cbbbbb54588 100644
--- a/canvas/source/directx/dx_bitmapcanvashelper.hxx
+++ b/canvas/source/directx/dx_bitmapcanvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,33 +81,33 @@ namespace dxcanvas
void clear();
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawTextLayout( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ drawTextLayout( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XTextLayout >& layoutetText,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
// BitmapCanvasHelper functionality
// ================================
- void copyRect( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ void copyRect( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
- const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
- const ::com::sun::star::rendering::ViewState& sourceViewState,
- const ::com::sun::star::rendering::RenderState& sourceRenderState,
- const ::com::sun::star::geometry::RealRectangle2D& destRect,
- const ::com::sun::star::rendering::ViewState& destViewState,
- const ::com::sun::star::rendering::RenderState& destRenderState );
+ ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
+ const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
+ const ::com::sun::star::rendering::ViewState& sourceViewState,
+ const ::com::sun::star::rendering::RenderState& sourceRenderState,
+ const ::com::sun::star::geometry::RealRectangle2D& destRect,
+ const ::com::sun::star::rendering::ViewState& destViewState,
+ const ::com::sun::star::rendering::RenderState& destRenderState );
::com::sun::star::geometry::IntegerSize2D getSize();
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
- getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
- sal_Bool beFast );
+ getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
+ sal_Bool beFast );
::com::sun::star::uno::Sequence< sal_Int8 >
- getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerRectangle2D& rect );
void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
diff --git a/canvas/source/directx/dx_bitmapprovider.hxx b/canvas/source/directx/dx_bitmapprovider.hxx
index c4e472fc2b70..2ba2aeb88a3f 100644
--- a/canvas/source/directx/dx_bitmapprovider.hxx
+++ b/canvas/source/directx/dx_bitmapprovider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/directx/dx_canvas.cxx b/canvas/source/directx/dx_canvas.cxx
index 956c115f5d9b..f9505642be2c 100644
--- a/canvas/source/directx/dx_canvas.cxx
+++ b/canvas/source/directx/dx_canvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,8 +61,8 @@
#include <vcl/sysdata.hxx>
#define CANVAS_TECH "GDI+"
-#define CANVAS_SERVICE_NAME "com.sun.star.rendering.Canvas." CANVAS_TECH
-#define CANVAS_IMPLEMENTATION_NAME "com.sun.star.comp.rendering.Canvas." CANVAS_TECH
+#define CANVAS_SERVICE_NAME "com.sun.star.rendering.Canvas." CANVAS_TECH
+#define CANVAS_IMPLEMENTATION_NAME "com.sun.star.comp.rendering.Canvas." CANVAS_TECH
#define BITMAPCANVAS_SERVICE_NAME "com.sun.star.rendering.BitmapCanvas." CANVAS_TECH
#define BITMAPCANVAS_IMPLEMENTATION_NAME "com.sun.star.comp.rendering.BitmapCanvas." CANVAS_TECH
@@ -99,7 +99,7 @@ namespace dxcanvas
// pointer to a valid window, on which to output
// At index 2, we expect the current window bound rect
ENSURE_ARG_OR_THROW( maArguments.getLength() >= 6 &&
- maArguments[5].getValueTypeClass() == uno::TypeClass_SEQUENCE,
+ maArguments[5].getValueTypeClass() == uno::TypeClass_SEQUENCE,
"SpriteCanvas::initialize: wrong number of arguments, or wrong types" );
uno::Sequence<sal_Int8> aSeq;
@@ -110,15 +110,15 @@ namespace dxcanvas
throw lang::NoSupportException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"Passed SystemGraphicsData or HDC invalid!")),
- NULL);
-
+ NULL);
+
// setup helper
maDeviceHelper.init( pSysData->hDC,
*this );
maCanvasHelper.setDevice( *this );
- maCanvasHelper.setTarget(
+ maCanvasHelper.setTarget(
GraphicsProviderSharedPtr(
- new GraphicsProviderImpl(
+ new GraphicsProviderImpl(
Gdiplus::Graphics::FromHDC(pSysData->hDC))));
maArguments.realloc(0);
@@ -159,7 +159,7 @@ namespace dxcanvas
// pointer to a valid window, on which to output
// At index 2, we expect the current window bound rect
ENSURE_ARG_OR_THROW( maArguments.getLength() >= 6 &&
- maArguments[5].getValueTypeClass() == uno::TypeClass_SEQUENCE,
+ maArguments[5].getValueTypeClass() == uno::TypeClass_SEQUENCE,
"SpriteCanvas::initialize: wrong number of arguments, or wrong types" );
uno::Sequence<sal_Int8> aSeq;
@@ -170,8 +170,8 @@ namespace dxcanvas
throw lang::NoSupportException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"Passed SystemGraphicsData or HDC invalid!")),
- NULL);
-
+ NULL);
+
// setup helper
maDeviceHelper.init( pSysData->hDC,
*this );
diff --git a/canvas/source/directx/dx_canvas.hxx b/canvas/source/directx/dx_canvas.hxx
index 760bd31aa244..4f71939ab695 100644
--- a/canvas/source/directx/dx_canvas.hxx
+++ b/canvas/source/directx/dx_canvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,15 +62,15 @@ namespace dxcanvas
::com::sun::star::lang::XMultiServiceFactory,
::com::sun::star::util::XUpdatable,
::com::sun::star::beans::XPropertySet,
- ::com::sun::star::lang::XServiceName > GraphicDeviceBase1_Base;
+ ::com::sun::star::lang::XServiceName > GraphicDeviceBase1_Base;
typedef ::canvas::GraphicDeviceBase< ::canvas::BaseMutexHelper< GraphicDeviceBase1_Base >,
DeviceHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasBase1_Base;
+ ::cppu::OWeakObject > CanvasBase1_Base;
typedef ::canvas::CanvasBase< CanvasBase1_Base,
CanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasBaseT;
+ ::cppu::OWeakObject > CanvasBaseT;
/** Product of this component's factory.
@@ -119,15 +119,15 @@ namespace dxcanvas
::com::sun::star::lang::XMultiServiceFactory,
::com::sun::star::util::XUpdatable,
::com::sun::star::beans::XPropertySet,
- ::com::sun::star::lang::XServiceName > GraphicDeviceBase2_Base;
+ ::com::sun::star::lang::XServiceName > GraphicDeviceBase2_Base;
typedef ::canvas::GraphicDeviceBase< ::canvas::BaseMutexHelper< GraphicDeviceBase2_Base >,
DeviceHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasBase2_Base;
+ ::cppu::OWeakObject > CanvasBase2_Base;
typedef ::canvas::IntegerBitmapBase< CanvasBase2_Base,
BitmapCanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > BitmapCanvasBaseT;
+ ::cppu::OWeakObject > BitmapCanvasBaseT;
/** Product of this component's factory.
diff --git a/canvas/source/directx/dx_canvasbitmap.cxx b/canvas/source/directx/dx_canvasbitmap.cxx
index ad8680d44db1..263fe9dad53d 100644
--- a/canvas/source/directx/dx_canvasbitmap.cxx
+++ b/canvas/source/directx/dx_canvasbitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,8 +70,8 @@ namespace dxcanvas
}
struct AlphaDIB
- {
- BITMAPINFOHEADER bmiHeader;
+ {
+ BITMAPINFOHEADER bmiHeader;
RGBQUAD bmiColors[256];
};
@@ -81,15 +81,15 @@ namespace dxcanvas
// 0 ... get BitmapEx
// 1 ... get Pixbuf with bitmap RGB content
// 2 ... get Pixbuf with bitmap alpha mask
- switch( nHandle )
+ switch( nHandle )
{
// sorry, no BitmapEx here...
case 0:
aRes = ::com::sun::star::uno::Any( reinterpret_cast<sal_Int64>( (BitmapEx*) NULL ) );
break;
- case 1:
- {
+ case 1:
+ {
if(!mpBitmap->hasAlpha())
{
HBITMAP aHBmp;
@@ -97,7 +97,7 @@ namespace dxcanvas
uno::Sequence< uno::Any > args(1);
args[0] = uno::Any( sal_Int64(aHBmp) );
-
+
aRes <<= args;
}
else
@@ -106,12 +106,12 @@ namespace dxcanvas
// canvas uses inline alpha channel
HDC hScreenDC=GetDC(NULL);
const basegfx::B2IVector aSize(mpBitmap->getSize());
- HBITMAP hBmpBitmap = CreateCompatibleBitmap( hScreenDC,
- aSize.getX(),
+ HBITMAP hBmpBitmap = CreateCompatibleBitmap( hScreenDC,
+ aSize.getX(),
aSize.getY() );
if( !hBmpBitmap )
return aRes;
-
+
BITMAPINFOHEADER aBIH;
aBIH.biSize = sizeof( BITMAPINFOHEADER );
@@ -129,11 +129,11 @@ namespace dxcanvas
aBIH.biClrImportant = 0;
Gdiplus::BitmapData aBmpData;
- aBmpData.Width = aSize.getX();
- aBmpData.Height = aSize.getY();
- aBmpData.Stride = 4*aBmpData.Width;
+ aBmpData.Width = aSize.getX();
+ aBmpData.Height = aSize.getY();
+ aBmpData.Stride = 4*aBmpData.Width;
aBmpData.PixelFormat = PixelFormat32bppARGB;
- aBmpData.Scan0 = NULL;
+ aBmpData.Scan0 = NULL;
const Gdiplus::Rect aRect( 0,0,aSize.getX(),aSize.getY() );
BitmapSharedPtr pGDIPlusBitmap=mpBitmap->getBitmap();
if( Gdiplus::Ok != pGDIPlusBitmap->LockBits( &aRect,
@@ -141,7 +141,7 @@ namespace dxcanvas
PixelFormat32bppARGB, // outputs ARGB (big endian)
&aBmpData ) )
{
- // failed to lock, bail out
+ // failed to lock, bail out
return aRes;
}
@@ -153,13 +153,13 @@ namespace dxcanvas
uno::Sequence< uno::Any > args(1);
args[0] = uno::Any( sal_Int64(hBmpBitmap) );
-
+
aRes <<= args;
}
}
break;
- case 2:
+ case 2:
{
if(!mpBitmap->hasAlpha())
{
@@ -189,7 +189,7 @@ namespace dxcanvas
HBITMAP hBmpBitmap = CreateCompatibleBitmap( hScreenDC, aSize.getX(), aSize.getY() );
if( !hBmpBitmap )
return aRes;
-
+
aDIB.bmiHeader.biSize = sizeof( BITMAPINFOHEADER );
aDIB.bmiHeader.biWidth = aSize.getX();
aDIB.bmiHeader.biHeight = -aSize.getY();
@@ -203,11 +203,11 @@ namespace dxcanvas
aDIB.bmiHeader.biClrImportant = 0;
Gdiplus::BitmapData aBmpData;
- aBmpData.Width = aSize.getX();
- aBmpData.Height = aSize.getY();
- aBmpData.Stride = 4*aBmpData.Width;
+ aBmpData.Width = aSize.getX();
+ aBmpData.Height = aSize.getY();
+ aBmpData.Stride = 4*aBmpData.Width;
aBmpData.PixelFormat = PixelFormat32bppARGB;
- aBmpData.Scan0 = NULL;
+ aBmpData.Scan0 = NULL;
const Gdiplus::Rect aRect( 0,0,aSize.getX(),aSize.getY() );
BitmapSharedPtr pGDIPlusBitmap=mpBitmap->getBitmap();
if( Gdiplus::Ok != pGDIPlusBitmap->LockBits( &aRect,
@@ -215,7 +215,7 @@ namespace dxcanvas
PixelFormat32bppARGB, // outputs ARGB (big endian)
&aBmpData ) )
{
- // failed to lock, bail out
+ // failed to lock, bail out
return aRes;
}
@@ -238,13 +238,13 @@ namespace dxcanvas
pGDIPlusBitmap->UnlockBits( &aBmpData );
// set bits to newly create HBITMAP
- SetDIBits( hScreenDC, hBmpBitmap, 0,
- aSize.getY(), pAlphaBits.get(),
+ SetDIBits( hScreenDC, hBmpBitmap, 0,
+ aSize.getY(), pAlphaBits.get(),
(PBITMAPINFO)&aDIB, DIB_RGB_COLORS );
uno::Sequence< uno::Any > args(1);
args[0] = uno::Any( sal_Int64(hBmpBitmap) );
-
+
aRes <<= args;
}
}
@@ -271,7 +271,7 @@ namespace dxcanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
diff --git a/canvas/source/directx/dx_canvasbitmap.hxx b/canvas/source/directx/dx_canvasbitmap.hxx
index b64840ddaded..68cc4da062ff 100644
--- a/canvas/source/directx/dx_canvasbitmap.hxx
+++ b/canvas/source/directx/dx_canvasbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,11 +59,11 @@ namespace dxcanvas
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::rendering::XBitmapCanvas,
::com::sun::star::rendering::XIntegerBitmap,
::com::sun::star::lang::XServiceInfo,
- ::com::sun::star::beans::XFastPropertySet > CanvasBitmapBase_Base;
+ ::com::sun::star::beans::XFastPropertySet > CanvasBitmapBase_Base;
typedef ::canvas::IntegerBitmapBase< ::canvas::BaseMutexHelper< CanvasBitmapBase_Base >,
BitmapCanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasBitmap_Base;
+ ::cppu::OWeakObject > CanvasBitmap_Base;
class CanvasBitmap : public CanvasBitmap_Base, public BitmapProvider
{
diff --git a/canvas/source/directx/dx_canvascustomsprite.cxx b/canvas/source/directx/dx_canvascustomsprite.cxx
index 73334b1698a5..df36fb3ac1c9 100644
--- a/canvas/source/directx/dx_canvascustomsprite.cxx
+++ b/canvas/source/directx/dx_canvascustomsprite.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,11 +50,11 @@ using namespace ::com::sun::star;
namespace dxcanvas
{
- CanvasCustomSprite::CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ CanvasCustomSprite::CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rRefDevice,
- const IDXRenderModuleSharedPtr& rRenderModule,
- const ::canvas::ISurfaceProxyManagerSharedPtr& rSurfaceProxy,
- bool bShowSpriteBounds ) :
+ const IDXRenderModuleSharedPtr& rRenderModule,
+ const ::canvas::ISurfaceProxyManagerSharedPtr& rSurfaceProxy,
+ bool bShowSpriteBounds ) :
mpSpriteCanvas( rRefDevice ),
mpSurface()
{
diff --git a/canvas/source/directx/dx_canvascustomsprite.hxx b/canvas/source/directx/dx_canvascustomsprite.hxx
index 38b9bd85b2e4..016882ae2c7c 100644
--- a/canvas/source/directx/dx_canvascustomsprite.hxx
+++ b/canvas/source/directx/dx_canvascustomsprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace dxcanvas
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::rendering::XCustomSprite,
::com::sun::star::rendering::XBitmapCanvas,
::com::sun::star::rendering::XIntegerBitmap,
- ::com::sun::star::lang::XServiceInfo > CanvasCustomSpriteBase_Base;
+ ::com::sun::star::lang::XServiceInfo > CanvasCustomSpriteBase_Base;
/** Mixin Sprite
Have to mixin the Sprite interface before deriving from
@@ -84,7 +84,7 @@ namespace dxcanvas
SpriteHelper,
BitmapCanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasCustomSpriteBaseT;
+ ::cppu::OWeakObject > CanvasCustomSpriteBaseT;
/* Definition of CanvasCustomSprite class */
@@ -105,11 +105,11 @@ namespace dxcanvas
@param rDevice
Target DX device
*/
- CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rRefDevice,
- const IDXRenderModuleSharedPtr& rRenderModule,
- const ::canvas::ISurfaceProxyManagerSharedPtr& rSurfaceProxy,
- bool bShowSpriteBounds );
+ const IDXRenderModuleSharedPtr& rRenderModule,
+ const ::canvas::ISurfaceProxyManagerSharedPtr& rSurfaceProxy,
+ bool bShowSpriteBounds );
virtual void SAL_CALL disposing();
diff --git a/canvas/source/directx/dx_canvasfont.cxx b/canvas/source/directx/dx_canvasfont.cxx
index e2b69d5bc122..e9c8b62629c7 100644
--- a/canvas/source/directx/dx_canvasfont.cxx
+++ b/canvas/source/directx/dx_canvasfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,9 +55,9 @@ namespace dxcanvas
}
}
- CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
- const uno::Sequence< beans::PropertyValue >& /*extraFontProperties*/,
- const geometry::Matrix2D& fontMatrix ) :
+ CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
+ const uno::Sequence< beans::PropertyValue >& /*extraFontProperties*/,
+ const geometry::Matrix2D& fontMatrix ) :
CanvasFont_Base( m_aMutex ),
mpGdiPlusUser( GDIPlusUser::createInstance() ),
// TODO(F1): extraFontProperties, fontMatrix
@@ -91,8 +91,8 @@ namespace dxcanvas
}
uno::Reference< rendering::XTextLayout > SAL_CALL CanvasFont::createTextLayout( const rendering::StringContext& aText,
- sal_Int8 nDirection,
- sal_Int64 nRandomSeed ) throw (uno::RuntimeException)
+ sal_Int8 nDirection,
+ sal_Int64 nRandomSeed ) throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/canvas/source/directx/dx_canvasfont.hxx b/canvas/source/directx/dx_canvasfont.hxx
index 488edecb736e..3224d7893269 100644
--- a/canvas/source/directx/dx_canvasfont.hxx
+++ b/canvas/source/directx/dx_canvasfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,8 +53,8 @@ namespace dxcanvas
{
class SpriteCanvas;
- typedef ::boost::shared_ptr< Gdiplus::Font > FontSharedPtr;
- typedef ::boost::shared_ptr< Gdiplus::FontFamily > FontFamilySharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::Font > FontSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::FontFamily > FontFamilySharedPtr;
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XCanvasFont,
::com::sun::star::lang::XServiceInfo > CanvasFont_Base;
@@ -69,7 +69,7 @@ namespace dxcanvas
::com::sun::star::rendering::XCanvasFont > ImplRef;
CanvasFont( const ::com::sun::star::rendering::FontRequest& fontRequest,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
const ::com::sun::star::geometry::Matrix2D& fontMatrix );
/// Dispose all internal references
@@ -87,17 +87,17 @@ namespace dxcanvas
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException );
- double getCellAscent() const;
- double getEmHeight() const;
- FontSharedPtr getFont() const;
+ double getCellAscent() const;
+ double getEmHeight() const;
+ FontSharedPtr getFont() const;
const ::com::sun::star::geometry::Matrix2D& getFontMatrix() const;
private:
- GDIPlusUserSharedPtr mpGdiPlusUser;
- FontFamilySharedPtr mpFontFamily;
- FontSharedPtr mpFont;
- ::com::sun::star::rendering::FontRequest maFontRequest;
- ::com::sun::star::geometry::Matrix2D maFontMatrix;
+ GDIPlusUserSharedPtr mpGdiPlusUser;
+ FontFamilySharedPtr mpFontFamily;
+ FontSharedPtr mpFont;
+ ::com::sun::star::rendering::FontRequest maFontRequest;
+ ::com::sun::star::geometry::Matrix2D maFontMatrix;
};
}
diff --git a/canvas/source/directx/dx_canvashelper.cxx b/canvas/source/directx/dx_canvashelper.cxx
index a762053c33e1..1abf16ca4621 100644
--- a/canvas/source/directx/dx_canvashelper.cxx
+++ b/canvas/source/directx/dx_canvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -143,7 +143,7 @@ namespace dxcanvas
}
void CanvasHelper::setTarget( const GraphicsProviderSharedPtr& rTarget,
- const ::basegfx::B2ISize& rOutputOffset )
+ const ::basegfx::B2ISize& rOutputOffset )
{
ENSURE_OR_THROW( rTarget,
"CanvasHelper::setTarget(): invalid target" );
@@ -162,7 +162,7 @@ namespace dxcanvas
Gdiplus::Color aClearColor = Gdiplus::Color((Gdiplus::ARGB)Gdiplus::Color::White);
ENSURE_OR_THROW(
- Gdiplus::Ok == pGraphics->SetCompositingMode(
+ Gdiplus::Ok == pGraphics->SetCompositingMode(
Gdiplus::CompositingModeSourceCopy ), // force set, don't blend
"CanvasHelper::clear(): GDI+ SetCompositingMode call failed" );
ENSURE_OR_THROW(
@@ -171,19 +171,19 @@ namespace dxcanvas
}
}
- void CanvasHelper::drawPoint( const rendering::XCanvas* /*pCanvas*/,
- const geometry::RealPoint2D& aPoint,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasHelper::drawPoint( const rendering::XCanvas* /*pCanvas*/,
+ const geometry::RealPoint2D& aPoint,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
if( needOutput() )
{
GraphicsSharedPtr pGraphics( mpGraphicsProvider->getGraphics() );
setupGraphicsState( pGraphics, viewState, renderState );
-
- Gdiplus::SolidBrush aBrush(
- Gdiplus::Color(
+
+ Gdiplus::SolidBrush aBrush(
+ Gdiplus::Color(
tools::sequenceToArgb(renderState.DeviceColor)) );
// determine size of one-by-one device pixel ellipse
@@ -199,27 +199,27 @@ namespace dxcanvas
Gdiplus::Ok == pGraphics->FillEllipse( &aBrush,
// disambiguate call
Gdiplus::REAL(aPoint.X),
- Gdiplus::REAL(aPoint.Y),
- Gdiplus::REAL(vector.X),
+ Gdiplus::REAL(aPoint.Y),
+ Gdiplus::REAL(vector.X),
Gdiplus::REAL(vector.Y) ),
"CanvasHelper::drawPoint(): GDI+ call failed" );
}
}
- void CanvasHelper::drawLine( const rendering::XCanvas* /*pCanvas*/,
- const geometry::RealPoint2D& aStartPoint,
- const geometry::RealPoint2D& aEndPoint,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasHelper::drawLine( const rendering::XCanvas* /*pCanvas*/,
+ const geometry::RealPoint2D& aStartPoint,
+ const geometry::RealPoint2D& aEndPoint,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
if( needOutput() )
{
GraphicsSharedPtr pGraphics( mpGraphicsProvider->getGraphics() );
setupGraphicsState( pGraphics, viewState, renderState );
-
- Gdiplus::Pen aPen(
- Gdiplus::Color(
+
+ Gdiplus::Pen aPen(
+ Gdiplus::Color(
tools::sequenceToArgb(renderState.DeviceColor)),
Gdiplus::REAL(0.0) );
@@ -232,10 +232,10 @@ namespace dxcanvas
pGraphics->GetPixelOffsetMode() );
pGraphics->SetPixelOffsetMode( Gdiplus::PixelOffsetModeNone );
- Gdiplus::Status hr = pGraphics->DrawLine( &aPen,
+ Gdiplus::Status hr = pGraphics->DrawLine( &aPen,
Gdiplus::REAL(aStartPoint.X), // disambiguate call
- Gdiplus::REAL(aStartPoint.Y),
- Gdiplus::REAL(aEndPoint.X),
+ Gdiplus::REAL(aStartPoint.Y),
+ Gdiplus::REAL(aEndPoint.X),
Gdiplus::REAL(aEndPoint.Y) );
pGraphics->SetPixelOffsetMode( aOldMode );
@@ -245,20 +245,20 @@ namespace dxcanvas
}
}
- void CanvasHelper::drawBezier( const rendering::XCanvas* /*pCanvas*/,
- const geometry::RealBezierSegment2D& aBezierSegment,
- const geometry::RealPoint2D& aEndPoint,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasHelper::drawBezier( const rendering::XCanvas* /*pCanvas*/,
+ const geometry::RealBezierSegment2D& aBezierSegment,
+ const geometry::RealPoint2D& aEndPoint,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
if( needOutput() )
{
GraphicsSharedPtr pGraphics( mpGraphicsProvider->getGraphics() );
setupGraphicsState( pGraphics, viewState, renderState );
-
- Gdiplus::Pen aPen(
- Gdiplus::Color(
+
+ Gdiplus::Pen aPen(
+ Gdiplus::Color(
tools::sequenceToArgb(renderState.DeviceColor)),
Gdiplus::REAL(0.0) );
@@ -267,7 +267,7 @@ namespace dxcanvas
// PixelOffsetModeNone to achieve visually pleasing
// results, whereas all other operations (e.g. polygon
// fills, bitmaps) look better with PixelOffsetModeHalf.
- const Gdiplus::PixelOffsetMode aOldMode(
+ const Gdiplus::PixelOffsetMode aOldMode(
pGraphics->GetPixelOffsetMode() );
pGraphics->SetPixelOffsetMode( Gdiplus::PixelOffsetModeNone );
@@ -289,12 +289,12 @@ namespace dxcanvas
}
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- ENSURE_OR_THROW( xPolyPolygon.is(),
+ ENSURE_OR_THROW( xPolyPolygon.is(),
"CanvasHelper::drawPolyPolygon: polygon is NULL");
if( needOutput() )
@@ -302,18 +302,18 @@ namespace dxcanvas
GraphicsSharedPtr pGraphics( mpGraphicsProvider->getGraphics() );
setupGraphicsState( pGraphics, viewState, renderState );
-
- Gdiplus::Pen aPen(
- Gdiplus::Color(
+
+ Gdiplus::Pen aPen(
+ Gdiplus::Color(
tools::sequenceToArgb(renderState.DeviceColor)),
Gdiplus::REAL(0.0) );
-
+
// #122683# Switched precedence of pixel offset
// mode. Seemingly, polygon stroking needs
// PixelOffsetModeNone to achieve visually pleasing
// results, whereas all other operations (e.g. polygon
// fills, bitmaps) look better with PixelOffsetModeHalf.
- const Gdiplus::PixelOffsetMode aOldMode(
+ const Gdiplus::PixelOffsetMode aOldMode(
pGraphics->GetPixelOffsetMode() );
pGraphics->SetPixelOffsetMode( Gdiplus::PixelOffsetModeNone );
@@ -333,13 +333,13 @@ namespace dxcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokePolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const rendering::StrokeAttributes& strokeAttributes )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokePolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const rendering::StrokeAttributes& strokeAttributes )
{
- ENSURE_OR_THROW( xPolyPolygon.is(),
+ ENSURE_OR_THROW( xPolyPolygon.is(),
"CanvasHelper::drawPolyPolygon: polygon is NULL");
if( needOutput() )
@@ -347,13 +347,13 @@ namespace dxcanvas
GraphicsSharedPtr pGraphics( mpGraphicsProvider->getGraphics() );
setupGraphicsState( pGraphics, viewState, renderState );
-
+
// Setup stroke pen
// ----------------
- Gdiplus::Pen aPen(
- Gdiplus::Color(
+ Gdiplus::Pen aPen(
+ Gdiplus::Color(
tools::sequenceToArgb(renderState.DeviceColor)),
static_cast< Gdiplus::REAL >(strokeAttributes.StrokeWidth) );
@@ -362,18 +362,18 @@ namespace dxcanvas
// PixelOffsetModeNone to achieve visually pleasing
// results, whereas all other operations (e.g. polygon
// fills, bitmaps) look better with PixelOffsetModeHalf.
- const Gdiplus::PixelOffsetMode aOldMode(
+ const Gdiplus::PixelOffsetMode aOldMode(
pGraphics->GetPixelOffsetMode() );
pGraphics->SetPixelOffsetMode( Gdiplus::PixelOffsetModeNone );
const bool bIsMiter(rendering::PathJoinType::MITER == strokeAttributes.JoinType);
const bool bIsNone(rendering::PathJoinType::NONE == strokeAttributes.JoinType);
-
+
if(bIsMiter)
aPen.SetMiterLimit( static_cast< Gdiplus::REAL >(strokeAttributes.MiterLimit) );
- const ::std::vector< Gdiplus::REAL >& rDashArray(
- ::comphelper::sequenceToContainer< ::std::vector< Gdiplus::REAL > >(
+ const ::std::vector< Gdiplus::REAL >& rDashArray(
+ ::comphelper::sequenceToContainer< ::std::vector< Gdiplus::REAL > >(
strokeAttributes.DashArray ) );
if( !rDashArray.empty() )
{
@@ -402,45 +402,45 @@ namespace dxcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const uno::Reference< geometry::XMapping2D >& /*xMapping*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const uno::Reference< geometry::XMapping2D >& /*xMapping*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XPolyPolygon2D > CanvasHelper::queryStrokeShapes( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XPolyPolygon2D > CanvasHelper::queryStrokeShapes( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XPolyPolygon2D >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- ENSURE_OR_THROW( xPolyPolygon.is(),
+ ENSURE_OR_THROW( xPolyPolygon.is(),
"CanvasHelper::fillPolyPolygon: polygon is NULL");
if( needOutput() )
@@ -449,9 +449,9 @@ namespace dxcanvas
setupGraphicsState( pGraphics, viewState, renderState );
- Gdiplus::SolidBrush aBrush(
+ Gdiplus::SolidBrush aBrush(
tools::sequenceToArgb(renderState.DeviceColor));
-
+
GraphicsPathSharedPtr pPath( tools::graphicsPathFromXPolyPolygon2D( xPolyPolygon ) );
// TODO(F1): FillRule
@@ -463,47 +463,47 @@ namespace dxcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const uno::Reference< geometry::XMapping2D >& /*xMapping*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const uno::Reference< geometry::XMapping2D >& /*xMapping*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* /*pCanvas*/,
- const rendering::FontRequest& fontRequest,
- const uno::Sequence< beans::PropertyValue >& extraFontProperties,
- const geometry::Matrix2D& fontMatrix )
+ uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* /*pCanvas*/,
+ const rendering::FontRequest& fontRequest,
+ const uno::Sequence< beans::PropertyValue >& extraFontProperties,
+ const geometry::Matrix2D& fontMatrix )
{
if( needOutput() )
{
- return uno::Reference< rendering::XCanvasFont >(
+ return uno::Reference< rendering::XCanvasFont >(
new CanvasFont(fontRequest, extraFontProperties, fontMatrix ) );
}
return uno::Reference< rendering::XCanvasFont >();
}
- uno::Sequence< rendering::FontInfo > CanvasHelper::queryAvailableFonts( const rendering::XCanvas* /*pCanvas*/,
- const rendering::FontInfo& /*aFilter*/,
- const uno::Sequence< beans::PropertyValue >& /*aFontProperties*/ )
+ uno::Sequence< rendering::FontInfo > CanvasHelper::queryAvailableFonts( const rendering::XCanvas* /*pCanvas*/,
+ const rendering::FontInfo& /*aFilter*/,
+ const uno::Sequence< beans::PropertyValue >& /*aFontProperties*/ )
{
// TODO
return uno::Sequence< rendering::FontInfo >();
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawText( const rendering::XCanvas* /*pCanvas*/,
- const rendering::StringContext& text,
- const uno::Reference< rendering::XCanvasFont >& xFont,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- sal_Int8 /*textDirection*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawText( const rendering::XCanvas* /*pCanvas*/,
+ const rendering::StringContext& text,
+ const uno::Reference< rendering::XCanvasFont >& xFont,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ sal_Int8 /*textDirection*/ )
{
- ENSURE_OR_THROW( xFont.is(),
+ ENSURE_OR_THROW( xFont.is(),
"CanvasHelper::drawText: font is NULL");
if( needOutput() )
@@ -511,12 +511,12 @@ namespace dxcanvas
GraphicsSharedPtr pGraphics( mpGraphicsProvider->getGraphics() );
setupGraphicsState( pGraphics, viewState, renderState );
-
- Gdiplus::SolidBrush aBrush(
- Gdiplus::Color(
+
+ Gdiplus::SolidBrush aBrush(
+ Gdiplus::Color(
tools::sequenceToArgb(renderState.DeviceColor)));
- CanvasFont::ImplRef pFont(
+ CanvasFont::ImplRef pFont(
tools::canvasFontFromXFont(xFont) );
// Move glyphs up, such that output happens at the font
@@ -525,7 +525,7 @@ namespace dxcanvas
static_cast<Gdiplus::REAL>(-(pFont->getFont()->GetSize()*
pFont->getCellAscent() /
pFont->getEmHeight())) );
-
+
// TODO(F1): According to
// http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q307208,
// we might have to revert to GDI and ExTextOut here,
@@ -548,26 +548,26 @@ namespace dxcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawTextLayout( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XTextLayout >& xLayoutetText,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawTextLayout( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XTextLayout >& xLayoutetText,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- ENSURE_OR_THROW( xLayoutetText.is(),
+ ENSURE_OR_THROW( xLayoutetText.is(),
"CanvasHelper::drawTextLayout: layout is NULL");
if( needOutput() )
{
- TextLayout* pTextLayout =
+ TextLayout* pTextLayout =
dynamic_cast< TextLayout* >( xLayoutetText.get() );
ENSURE_OR_THROW( pTextLayout,
"CanvasHelper::drawTextLayout(): TextLayout not compatible with this canvas" );
pTextLayout->draw( mpGraphicsProvider->getGraphics(),
- viewState,
- renderState,
- maOutputOffset,
+ viewState,
+ renderState,
+ maOutputOffset,
mpDevice,
false );
}
@@ -575,12 +575,12 @@ namespace dxcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmap( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XBitmap >& xBitmap,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmap( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XBitmap >& xBitmap,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- ENSURE_OR_THROW( xBitmap.is(),
+ ENSURE_OR_THROW( xBitmap.is(),
"CanvasHelper::drawBitmap: bitmap is NULL");
if( needOutput() )
@@ -612,12 +612,12 @@ namespace dxcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* pCanvas,
- const uno::Reference< rendering::XBitmap >& xBitmap,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* pCanvas,
+ const uno::Reference< rendering::XBitmap >& xBitmap,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- ENSURE_OR_THROW( xBitmap.is(),
+ ENSURE_OR_THROW( xBitmap.is(),
"CanvasHelper::drawBitmap: bitmap is NULL");
// no color set -> this is equivalent to a plain drawBitmap(), then
@@ -625,13 +625,13 @@ namespace dxcanvas
return drawBitmap( pCanvas, xBitmap, viewState, renderState );
if( needOutput() )
- {
+ {
GraphicsSharedPtr pGraphics( mpGraphicsProvider->getGraphics() );
setupGraphicsState( pGraphics, viewState, renderState );
BitmapSharedPtr pBitmap( tools::bitmapFromXBitmap( xBitmap ) );
- Gdiplus::Rect aRect( 0, 0,
+ Gdiplus::Rect aRect( 0, 0,
pBitmap->GetWidth(),
pBitmap->GetHeight() );
@@ -647,8 +647,8 @@ namespace dxcanvas
rARGBColor.Blue,
rARGBColor.Alpha );
- ENSURE_OR_THROW(
- Gdiplus::Ok == pGraphics->DrawImage( pBitmap.get(),
+ ENSURE_OR_THROW(
+ Gdiplus::Ok == pGraphics->DrawImage( pBitmap.get(),
aRect,
0, 0,
pBitmap->GetWidth(),
@@ -712,7 +712,7 @@ namespace dxcanvas
// TODO(F2): Problem, because GDI+ only knows about two compositing modes
aRet = Gdiplus::CompositingModeSourceOver;
break;
-
+
default:
ENSURE_OR_THROW( false, "CanvasHelper::calcCompositingMode: unexpected mode" );
break;
@@ -722,10 +722,10 @@ namespace dxcanvas
}
void CanvasHelper::setupGraphicsState( GraphicsSharedPtr& rGraphics,
- const rendering::ViewState& viewState,
+ const rendering::ViewState& viewState,
const rendering::RenderState& renderState )
{
- ENSURE_OR_THROW( needOutput(),
+ ENSURE_OR_THROW( needOutput(),
"CanvasHelper::setupGraphicsState: primary graphics invalid" );
ENSURE_OR_THROW( mpDevice,
"CanvasHelper::setupGraphicsState: reference device invalid" );
@@ -745,12 +745,12 @@ namespace dxcanvas
Gdiplus::Matrix aMatrix;
tools::gdiPlusMatrixFromB2DHomMatrix( aMatrix, aTransform );
- ENSURE_OR_THROW(
+ ENSURE_OR_THROW(
Gdiplus::Ok == rGraphics->SetTransform( &aMatrix ),
"CanvasHelper::setupGraphicsState(): Failed to set GDI+ transformation" );
// setup view and render state clipping
- ENSURE_OR_THROW(
+ ENSURE_OR_THROW(
Gdiplus::Ok == rGraphics->ResetClip(),
"CanvasHelper::setupGraphicsState(): Failed to reset GDI+ clip" );
@@ -758,16 +758,16 @@ namespace dxcanvas
{
GraphicsPathSharedPtr aClipPath( tools::graphicsPathFromXPolyPolygon2D( viewState.Clip ) );
- // TODO(P3): Cache clip. SetClip( GraphicsPath ) performs abyssmally on GDI+.
- // Try SetClip( Rect ) or similar for simple clip paths (need some support in
+ // TODO(P3): Cache clip. SetClip( GraphicsPath ) performs abyssmally on GDI+.
+ // Try SetClip( Rect ) or similar for simple clip paths (need some support in
// LinePolyPolygon, then)
- ENSURE_OR_THROW(
- Gdiplus::Ok == rGraphics->SetClip( aClipPath.get(),
+ ENSURE_OR_THROW(
+ Gdiplus::Ok == rGraphics->SetClip( aClipPath.get(),
Gdiplus::CombineModeIntersect ),
"CanvasHelper::setupGraphicsState(): Cannot set GDI+ clip" );
}
- // setup overall transform only now. View clip above was relative to
+ // setup overall transform only now. View clip above was relative to
// view transform
::canvas::tools::mergeViewAndRenderTransform(aTransform,
viewState,
@@ -783,7 +783,7 @@ namespace dxcanvas
tools::gdiPlusMatrixFromB2DHomMatrix( aMatrix, aTransform );
- ENSURE_OR_THROW(
+ ENSURE_OR_THROW(
Gdiplus::Ok == rGraphics->SetTransform( &aMatrix ),
"CanvasHelper::setupGraphicsState(): Cannot set GDI+ transformation" );
@@ -791,18 +791,18 @@ namespace dxcanvas
{
GraphicsPathSharedPtr aClipPath( tools::graphicsPathFromXPolyPolygon2D( renderState.Clip ) );
- // TODO(P3): Cache clip. SetClip( GraphicsPath ) performs abyssmally on GDI+.
- // Try SetClip( Rect ) or similar for simple clip paths (need some support in
+ // TODO(P3): Cache clip. SetClip( GraphicsPath ) performs abyssmally on GDI+.
+ // Try SetClip( Rect ) or similar for simple clip paths (need some support in
// LinePolyPolygon, then)
- ENSURE_OR_THROW(
- Gdiplus::Ok == rGraphics->SetClip( aClipPath.get(),
+ ENSURE_OR_THROW(
+ Gdiplus::Ok == rGraphics->SetClip( aClipPath.get(),
Gdiplus::CombineModeIntersect ),
"CanvasHelper::setupGraphicsState(): Cannot set GDI+ clip" );
}
// setup compositing
const Gdiplus::CompositingMode eCompositing( calcCompositingMode( renderState.CompositeOperation ) );
- ENSURE_OR_THROW(
+ ENSURE_OR_THROW(
Gdiplus::Ok == rGraphics->SetCompositingMode( eCompositing ),
"CanvasHelper::setupGraphicsState(): Cannot set GDI* compositing mode)" );
}
diff --git a/canvas/source/directx/dx_canvashelper.hxx b/canvas/source/directx/dx_canvashelper.hxx
index 727002a51b99..ae590ef67fa6 100644
--- a/canvas/source/directx/dx_canvashelper.hxx
+++ b/canvas/source/directx/dx_canvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,7 +87,7 @@ namespace dxcanvas
Output offset in pixel
*/
void setTarget( const GraphicsProviderSharedPtr& rTarget,
- const ::basegfx::B2ISize& rOutputOffset );
+ const ::basegfx::B2ISize& rOutputOffset );
// CanvasHelper functionality
@@ -96,131 +96,131 @@ namespace dxcanvas
// XCanvas (only providing, not implementing the
// interface. Also note subtle method parameter differences)
void clear();
- void drawPoint( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealPoint2D& aPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
+ void drawPoint( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealPoint2D& aPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- void drawLine( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- void drawBezier( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ void drawLine( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ void drawBezier( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ drawPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokePolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ strokePolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokeTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ strokeTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
+ ::com::sun::star::rendering::Texture >& textures,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokeTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ strokeTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
+ ::com::sun::star::rendering::Texture >& textures,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
+ ::com::sun::star::geometry::XMapping2D >& xMapping,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
- queryStrokeShapes( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ queryStrokeShapes( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ fillPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ fillTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures );
+ ::com::sun::star::rendering::Texture >& textures );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ fillTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
+ ::com::sun::star::rendering::Texture >& textures,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping );
+ ::com::sun::star::geometry::XMapping2D >& xMapping );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL
- createFont( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::FontRequest& fontRequest,
+ createFont( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::FontRequest& fontRequest,
const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& extraFontProperties,
- const ::com::sun::star::geometry::Matrix2D& fontMatrix );
+ ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::geometry::Matrix2D& fontMatrix );
::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo >
- queryAvailableFonts( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::FontInfo& aFilter,
+ queryAvailableFonts( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::FontInfo& aFilter,
const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& aFontProperties );
+ ::com::sun::star::beans::PropertyValue >& aFontProperties );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawText( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::StringContext& text,
+ drawText( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::StringContext& text,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvasFont >& xFont,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- sal_Int8 textDirection );
+ ::com::sun::star::rendering::XCanvasFont >& xFont,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ sal_Int8 textDirection );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawTextLayout( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ drawTextLayout( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XTextLayout >& layoutetText,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawBitmap( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ drawBitmap( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawBitmapModulated( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ drawBitmapModulated( const ::com::sun::star::rendering::XCanvas* pCanvas,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >
getDevice();
// Flush drawing queue to screen
- void flush() const;
+ void flush() const;
/** Called from XCanvas base classes, to notify that content
is _about_ to change
@@ -229,7 +229,7 @@ namespace dxcanvas
protected:
/// Refcounted global GDI+ state container
- GDIPlusUserSharedPtr mpGdiPlusUser;
+ GDIPlusUserSharedPtr mpGdiPlusUser;
/** Phyical output device
@@ -245,13 +245,13 @@ namespace dxcanvas
// returns transparency of color
void setupGraphicsState( GraphicsSharedPtr& rGraphics,
- const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- Gdiplus::CompositingMode calcCompositingMode( sal_Int8 nMode );
+ Gdiplus::CompositingMode calcCompositingMode( sal_Int8 nMode );
/// Current (transformation-independent) output buffer offset
- ::basegfx::B2ISize maOutputOffset;
+ ::basegfx::B2ISize maOutputOffset;
};
}
diff --git a/canvas/source/directx/dx_canvashelper_texturefill.cxx b/canvas/source/directx/dx_canvashelper_texturefill.cxx
index 473798f0bd46..2b7ad6fd6d22 100644
--- a/canvas/source/directx/dx_canvashelper_texturefill.cxx
+++ b/canvas/source/directx/dx_canvashelper_texturefill.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ namespace dxcanvas
{
namespace
{
- typedef ::boost::shared_ptr< Gdiplus::PathGradientBrush > PathGradientBrushSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::PathGradientBrush > PathGradientBrushSharedPtr;
bool fillLinearGradient( GraphicsSharedPtr& rGraphics,
const ::canvas::ParametricPolyPolygon::Values& /*rValues*/,
@@ -107,9 +107,9 @@ namespace dxcanvas
::basegfx::B2DPoint aRightTop( 1.0, 0.0 );
::basegfx::B2DPoint aRightBottom( 1.0, 1.0 );
- aLeftTop *= aTextureTransform;
+ aLeftTop *= aTextureTransform;
aLeftBottom *= aTextureTransform;
- aRightTop *= aTextureTransform;
+ aRightTop *= aTextureTransform;
aRightBottom*= aTextureTransform;
Gdiplus::RectF aBounds;
@@ -201,9 +201,9 @@ namespace dxcanvas
int numColorSteps( const Gdiplus::Color& rColor1, const Gdiplus::Color& rColor2 )
{
- return ::std::max(
+ return ::std::max(
labs( rColor1.GetRed() - rColor2.GetRed() ),
- ::std::max(
+ ::std::max(
labs( rColor1.GetGreen() - rColor2.GetGreen() ),
labs( rColor1.GetBlue() - rColor2.GetBlue() ) ) );
}
@@ -213,8 +213,8 @@ namespace dxcanvas
const std::vector< Gdiplus::REAL >& rStops,
GraphicsSharedPtr& rGraphics,
const GraphicsPathSharedPtr& rPath,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
const rendering::Texture& texture )
{
// copy original fill path object, might have to change it
@@ -275,7 +275,7 @@ namespace dxcanvas
nColorSteps);
::basegfx::B2DHomMatrix aTextureTransform;
- ::basegfx::unotools::homMatrixFromAffineMatrix( aTextureTransform,
+ ::basegfx::unotools::homMatrixFromAffineMatrix( aTextureTransform,
texture.AffineTransform );
// determine overall transformation for inner polygon (might
// have to be prefixed by anisotrophic scaling)
@@ -285,8 +285,8 @@ namespace dxcanvas
// here, keep it all the way and only change the vertex values
// in the loop below (as ::Polygon is a pimpl class, creating
// one every loop turn would really stress the mem allocator)
- ::basegfx::B2DPolygon aOuterPoly( rGradientPoly );
- ::basegfx::B2DPolygon aInnerPoly;
+ ::basegfx::B2DPolygon aOuterPoly( rGradientPoly );
+ ::basegfx::B2DPolygon aInnerPoly;
// subdivide polygon _before_ rendering, would otherwise have
// to be performed on every loop turn.
@@ -315,7 +315,7 @@ namespace dxcanvas
else if( nAspectRatio < 1.0 )
{
// width < height case
- aInnerPolygonTransformMatrix.scale( 0.0,
+ aInnerPolygonTransformMatrix.scale( 0.0,
1.0 - nAspectRatio );
}
else
@@ -338,7 +338,7 @@ namespace dxcanvas
{
std::ptrdiff_t nIndex;
double fAlpha;
- const double fT( i/double(nStepCount) );
+ const double fT( i/double(nStepCount) );
boost::tuples::tie(nIndex,fAlpha)=aLerper.lerp(fT);
const Gdiplus::Color aFillColor(
@@ -441,8 +441,8 @@ namespace dxcanvas
const std::vector< Gdiplus::REAL >& rStops,
GraphicsSharedPtr& rGraphics,
const GraphicsPathSharedPtr& rPath,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
const rendering::Texture& texture )
{
switch( rValues.meType )
@@ -555,11 +555,11 @@ namespace dxcanvas
// -------------------------------------------------------------
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const uno::Sequence< rendering::Texture >& textures )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const uno::Sequence< rendering::Texture >& textures )
{
ENSURE_OR_THROW( xPolyPolygon.is(),
"CanvasHelper::fillTexturedPolyPolygon: polygon is NULL");
@@ -585,7 +585,7 @@ namespace dxcanvas
const ::canvas::ParametricPolyPolygon::Values& rValues(
pGradient->getValues() );
- OSL_ASSERT(rValues.maColors.getLength() == rValues.maStops.getLength()
+ OSL_ASSERT(rValues.maColors.getLength() == rValues.maStops.getLength()
&& rValues.maColors.getLength() > 1);
std::vector< Gdiplus::Color > aColors(rValues.maColors.getLength());
diff --git a/canvas/source/directx/dx_config.cxx b/canvas/source/directx/dx_config.cxx
index 313cd2b186df..154673f6b449 100644
--- a/canvas/source/directx/dx_config.cxx
+++ b/canvas/source/directx/dx_config.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,8 +42,8 @@ using namespace com::sun::star;
namespace dxcanvas
{
DXCanvasItem::DXCanvasItem() :
- ConfigItem(
- ::rtl::OUString(
+ ConfigItem(
+ ::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM( "Office.Canvas/DXCanvas" )),
CONFIG_MODE_IMMEDIATE_UPDATE ),
maValues(),
diff --git a/canvas/source/directx/dx_config.hxx b/canvas/source/directx/dx_config.hxx
index de29655a4bb9..8fc13bdd0d9d 100644
--- a/canvas/source/directx/dx_config.hxx
+++ b/canvas/source/directx/dx_config.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,8 +76,8 @@ namespace dxcanvas
void blacklistDevice( const DeviceInfo& rDeviceInfo );
void adaptMaxTextureSize( basegfx::B2IVector& io_maxTextureSize ) const;
virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
- virtual void Commit();
-
+ virtual void Commit();
+
private:
typedef std::set< DeviceInfo > ValueSet;
ValueSet maValues;
diff --git a/canvas/source/directx/dx_devicehelper.cxx b/canvas/source/directx/dx_devicehelper.cxx
index b5b9fa129615..a5eb371a7e64 100644
--- a/canvas/source/directx/dx_devicehelper.cxx
+++ b/canvas/source/directx/dx_devicehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -117,8 +117,8 @@ namespace dxcanvas
}
uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
{
if( !mpDevice )
return uno::Reference< rendering::XLinePolyPolygon2D >(); // we're disposed
@@ -129,8 +129,8 @@ namespace dxcanvas
}
uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
{
if( !mpDevice )
return uno::Reference< rendering::XBezierPolyPolygon2D >(); // we're disposed
@@ -141,8 +141,8 @@ namespace dxcanvas
}
uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& size )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& size )
{
if( !mpDevice )
return uno::Reference< rendering::XBitmap >(); // we're disposed
@@ -157,15 +157,15 @@ namespace dxcanvas
}
uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& /*size*/ )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& /*size*/ )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& size )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& size )
{
if( !mpDevice )
return uno::Reference< rendering::XBitmap >(); // we're disposed
@@ -180,8 +180,8 @@ namespace dxcanvas
}
uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& /*size*/ )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& /*size*/ )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
@@ -217,18 +217,18 @@ namespace dxcanvas
return uno::Any();
}
- namespace
- {
+ namespace
+ {
struct DeviceColorSpace: public rtl::StaticWithInit<uno::Reference<rendering::XColorSpace>,
- DeviceColorSpace>
+ DeviceColorSpace>
{
uno::Reference<rendering::XColorSpace> operator()()
{
return vcl::unotools::createStandardColorSpace();
}
- };
+ };
}
-
+
uno::Reference<rendering::XColorSpace> DeviceHelper::getColorSpace() const
{
// always the same
diff --git a/canvas/source/directx/dx_devicehelper.hxx b/canvas/source/directx/dx_devicehelper.hxx
index 0122542230f6..8ce02db4148d 100644
--- a/canvas/source/directx/dx_devicehelper.hxx
+++ b/canvas/source/directx/dx_devicehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ namespace dxcanvas
DeviceHelper();
/** Init the device helper
-
+
@param hdc
private or class dc of the output device. is only stored,
not release
@@ -69,23 +69,23 @@ namespace dxcanvas
::com::sun::star::geometry::RealSize2D getPhysicalResolution();
::com::sun::star::geometry::RealSize2D getPhysicalSize();
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > >& points );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealBezierSegment2D > >& points );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
sal_Bool hasFullScreenMode();
sal_Bool enterFullScreenMode( sal_Bool bEnter );
@@ -93,7 +93,7 @@ namespace dxcanvas
::com::sun::star::uno::Any isAccelerated() const;
::com::sun::star::uno::Any getDeviceHandle() const;
::com::sun::star::uno::Any getSurfaceHandle() const;
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XColorSpace > getColorSpace() const;
/** called when DumpScreenContent property is enabled on
diff --git a/canvas/source/directx/dx_gdiplususer.cxx b/canvas/source/directx/dx_gdiplususer.cxx
index cccb93905e42..b88e32083e0f 100644
--- a/canvas/source/directx/dx_gdiplususer.cxx
+++ b/canvas/source/directx/dx_gdiplususer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,10 +39,10 @@ namespace dxcanvas
{
namespace
{
- ::osl::Mutex* p_gdiPlusUsageCountMutex( osl::Mutex::getGlobalMutex() );
- int n_gdiPlusUsageCount( 0 );
+ ::osl::Mutex* p_gdiPlusUsageCountMutex( osl::Mutex::getGlobalMutex() );
+ int n_gdiPlusUsageCount( 0 );
- ULONG_PTR a_GdiPlusToken; // GDI+ handle. Owned by this object
+ ULONG_PTR a_GdiPlusToken; // GDI+ handle. Owned by this object
}
GDIPlusUserSharedPtr GDIPlusUser::createInstance()
@@ -52,7 +52,7 @@ namespace dxcanvas
GDIPlusUser::~GDIPlusUser()
{
- ::osl::MutexGuard aGuard( *p_gdiPlusUsageCountMutex );
+ ::osl::MutexGuard aGuard( *p_gdiPlusUsageCountMutex );
--n_gdiPlusUsageCount;
@@ -62,7 +62,7 @@ namespace dxcanvas
GDIPlusUser::GDIPlusUser()
{
- ::osl::MutexGuard aGuard( *p_gdiPlusUsageCountMutex );
+ ::osl::MutexGuard aGuard( *p_gdiPlusUsageCountMutex );
if( n_gdiPlusUsageCount == 0 )
{
@@ -72,8 +72,8 @@ namespace dxcanvas
// default constructor
Gdiplus::GdiplusStartupInput gdiPlusStartupInput;
- Gdiplus::GdiplusStartup( &a_GdiPlusToken,
- &gdiPlusStartupInput,
+ Gdiplus::GdiplusStartup( &a_GdiPlusToken,
+ &gdiPlusStartupInput,
NULL );
}
diff --git a/canvas/source/directx/dx_gdiplususer.hxx b/canvas/source/directx/dx_gdiplususer.hxx
index f6871ab6bc42..463f8a31b613 100644
--- a/canvas/source/directx/dx_gdiplususer.hxx
+++ b/canvas/source/directx/dx_gdiplususer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/directx/dx_graphicsprovider.hxx b/canvas/source/directx/dx_graphicsprovider.hxx
index e677bd4249d6..8ab9fefc4247 100644
--- a/canvas/source/directx/dx_graphicsprovider.hxx
+++ b/canvas/source/directx/dx_graphicsprovider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/directx/dx_ibitmap.hxx b/canvas/source/directx/dx_ibitmap.hxx
index 83c55bca9e6c..ea165e96032f 100644
--- a/canvas/source/directx/dx_ibitmap.hxx
+++ b/canvas/source/directx/dx_ibitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,22 +47,22 @@ namespace dxcanvas
virtual bool hasAlpha() const = 0;
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getData(
- ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect ) = 0;
+ ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect ) = 0;
virtual void setData(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect ) = 0;
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect ) = 0;
virtual void setPixel(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos ) = 0;
+ const ::com::sun::star::geometry::IntegerPoint2D& pos ) = 0;
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getPixel(
- ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos ) = 0;
+ ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos ) = 0;
};
typedef boost::shared_ptr<IBitmap> IBitmapSharedPtr;
diff --git a/canvas/source/directx/dx_impltools.cxx b/canvas/source/directx/dx_impltools.cxx
index 3781d2687fde..fb4bd9e19460 100644
--- a/canvas/source/directx/dx_impltools.cxx
+++ b/canvas/source/directx/dx_impltools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,7 +73,7 @@ namespace dxcanvas
namespace tools
{
::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D( const uno::Reference< rendering::XPolyPolygon2D >& xPoly )
- {
+ {
LinePolyPolygon* pPolyImpl = dynamic_cast< LinePolyPolygon* >( xPoly.get() );
if( pPolyImpl )
@@ -169,8 +169,8 @@ namespace dxcanvas
static_cast<Gdiplus::REAL>(rMatrix.get(1,2)) );
}
- void gdiPlusMatrixFromAffineMatrix2D( Gdiplus::Matrix& rGdiplusMatrix,
- const geometry::AffineMatrix2D& rMatrix )
+ void gdiPlusMatrixFromAffineMatrix2D( Gdiplus::Matrix& rGdiplusMatrix,
+ const geometry::AffineMatrix2D& rMatrix )
{
rGdiplusMatrix.SetElements( static_cast<Gdiplus::REAL>(rMatrix.m00),
static_cast<Gdiplus::REAL>(rMatrix.m10),
@@ -186,7 +186,7 @@ namespace dxcanvas
// out of it
inline Gdiplus::PointF implGdiPlusPointFromRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& rPoint )
{
- return Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.X),
+ return Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.X),
static_cast<Gdiplus::REAL>(rPoint.Y) );
}
@@ -194,7 +194,7 @@ namespace dxcanvas
::std::vector< Gdiplus::PointF >& rPoints,
const ::basegfx::B2DPolygon& rPoly,
bool bNoLineJoin)
- {
+ {
const sal_uInt32 nPoints( rPoly.count() );
if( nPoints < 2 )
@@ -219,15 +219,15 @@ namespace dxcanvas
for( sal_uInt32 nCurrPoint=0; nCurrPoint<nPoints; ++nCurrPoint )
{
const ::basegfx::B2DPoint& rPoint( rPoly.getB2DPoint( nCurrPoint ) );
- rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()),
+ rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()),
static_cast<Gdiplus::REAL>(rPoint.getY()) );
const ::basegfx::B2DPoint& rControlPointA( rPoly.getNextControlPoint( nCurrPoint ) );
- rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rControlPointA.getX()),
+ rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rControlPointA.getX()),
static_cast<Gdiplus::REAL>(rControlPointA.getY()) );
const ::basegfx::B2DPoint& rControlPointB( rPoly.getPrevControlPoint( (nCurrPoint + 1) % nPoints) );
- rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rControlPointB.getX()),
+ rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rControlPointB.getX()),
static_cast<Gdiplus::REAL>(rControlPointB.getY()) );
}
@@ -237,7 +237,7 @@ namespace dxcanvas
// control points for the last point, see
// above)
const ::basegfx::B2DPoint& rPoint( rPoly.getB2DPoint(0) );
- rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()),
+ rPoints[nCurrOutput++] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()),
static_cast<Gdiplus::REAL>(rPoint.getY()) );
if(bNoLineJoin && nCurrOutput > 7)
@@ -286,7 +286,7 @@ namespace dxcanvas
for( sal_uInt32 nCurrPoint=0; nCurrPoint<nPoints; ++nCurrPoint )
{
const ::basegfx::B2DPoint& rPoint( rPoly.getB2DPoint( nCurrPoint ) );
- rPoints[nCurrPoint] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()),
+ rPoints[nCurrPoint] = Gdiplus::PointF( static_cast<Gdiplus::REAL>(rPoint.getX()),
static_cast<Gdiplus::REAL>(rPoint.getY()) );
}
@@ -322,17 +322,17 @@ namespace dxcanvas
Gdiplus::Rect gdiPlusRectFromIntegerRectangle2D( const geometry::IntegerRectangle2D& rRect )
{
- return Gdiplus::Rect( rRect.X1,
- rRect.Y1,
- rRect.X2 - rRect.X1,
+ return Gdiplus::Rect( rRect.X1,
+ rRect.Y1,
+ rRect.X2 - rRect.X1,
rRect.Y2 - rRect.Y1 );
}
Gdiplus::RectF gdiPlusRectFFromRectangle2D( const geometry::RealRectangle2D& rRect )
{
- return Gdiplus::RectF( static_cast<Gdiplus::REAL>(rRect.X1),
- static_cast<Gdiplus::REAL>(rRect.Y1),
- static_cast<Gdiplus::REAL>(rRect.X2 - rRect.X1),
+ return Gdiplus::RectF( static_cast<Gdiplus::REAL>(rRect.X1),
+ static_cast<Gdiplus::REAL>(rRect.Y1),
+ static_cast<Gdiplus::REAL>(rRect.X2 - rRect.X1),
static_cast<Gdiplus::REAL>(rRect.Y2 - rRect.Y1) );
}
@@ -354,19 +354,19 @@ namespace dxcanvas
geometry::RealRectangle2D realRectangle2DFromGdiPlusRectF( const Gdiplus::RectF& rRect )
{
return geometry::RealRectangle2D( rRect.X, rRect.Y,
- rRect.X + rRect.Width,
+ rRect.X + rRect.Width,
rRect.Y + rRect.Height );
}
- ::basegfx::B2DPoint b2dPointFromGdiPlusPointF( const Gdiplus::PointF& rPoint )
+ ::basegfx::B2DPoint b2dPointFromGdiPlusPointF( const Gdiplus::PointF& rPoint )
{
return ::basegfx::B2DPoint( rPoint.X, rPoint.Y );
}
- ::basegfx::B2DRange b2dRangeFromGdiPlusRectF( const Gdiplus::RectF& rRect )
+ ::basegfx::B2DRange b2dRangeFromGdiPlusRectF( const Gdiplus::RectF& rRect )
{
return ::basegfx::B2DRange( rRect.X, rRect.Y,
- rRect.X + rRect.Width,
+ rRect.X + rRect.Width,
rRect.Y + rRect.Height );
}
@@ -375,10 +375,10 @@ namespace dxcanvas
// TODO(F1): handle color space conversions, when defined on canvas/graphicDevice
uno::Sequence< double > aRet(4);
- aRet[0] = ((rColor >> 16) & 0xFF) / 255.0; // red
- aRet[1] = ((rColor >> 8) & 0xFF) / 255.0; // green
- aRet[2] = (rColor & 0xFF) / 255.0; // blue
- aRet[3] = ((rColor >> 24) & 0xFF) / 255.0; // alpha
+ aRet[0] = ((rColor >> 16) & 0xFF) / 255.0; // red
+ aRet[1] = ((rColor >> 8) & 0xFF) / 255.0; // green
+ aRet[2] = (rColor & 0xFF) / 255.0; // blue
+ aRet[3] = ((rColor >> 24) & 0xFF) / 255.0; // alpha
return aRet;
}
@@ -388,17 +388,17 @@ namespace dxcanvas
// TODO(F1): handle color space conversions, when defined on canvas/graphicDevice
uno::Sequence< sal_Int8 > aRet(4);
- aRet[0] = static_cast<sal_Int8>((rColor >> 16) & 0xFF); // red
- aRet[1] = static_cast<sal_Int8>((rColor >> 8) & 0xFF); // green
- aRet[2] = static_cast<sal_Int8>(rColor & 0xFF); // blue
- aRet[3] = static_cast<sal_Int8>((rColor >> 24) & 0xFF); // alpha
+ aRet[0] = static_cast<sal_Int8>((rColor >> 16) & 0xFF); // red
+ aRet[1] = static_cast<sal_Int8>((rColor >> 8) & 0xFF); // green
+ aRet[2] = static_cast<sal_Int8>(rColor & 0xFF); // blue
+ aRet[3] = static_cast<sal_Int8>((rColor >> 24) & 0xFF); // alpha
return aRet;
}
Gdiplus::ARGB sequenceToArgb( const uno::Sequence< sal_Int8 >& rColor )
{
- ENSURE_OR_THROW( rColor.getLength() > 2,
+ ENSURE_OR_THROW( rColor.getLength() > 2,
"sequenceToArgb: need at least three channels" );
// TODO(F1): handle color space conversions, when defined on canvas/graphicDevice
@@ -414,7 +414,7 @@ namespace dxcanvas
Gdiplus::ARGB sequenceToArgb( const uno::Sequence< double >& rColor )
{
- ENSURE_OR_THROW( rColor.getLength() > 2,
+ ENSURE_OR_THROW( rColor.getLength() > 2,
"sequenceToColor: need at least three channels" );
// TODO(F1): handle color space conversions, when defined on canvas/graphicDevice
@@ -424,9 +424,9 @@ namespace dxcanvas
::canvas::tools::verifyRange(rColor[1],0.0,1.0);
::canvas::tools::verifyRange(rColor[2],0.0,1.0);
- aColor =
- (static_cast<sal_uInt8>( ::basegfx::fround( 255*rColor[0] ) ) << 16) |
- (static_cast<sal_uInt8>( ::basegfx::fround( 255*rColor[1] ) ) << 8) |
+ aColor =
+ (static_cast<sal_uInt8>( ::basegfx::fround( 255*rColor[0] ) ) << 16) |
+ (static_cast<sal_uInt8>( ::basegfx::fround( 255*rColor[1] ) ) << 8) |
static_cast<sal_uInt8>( ::basegfx::fround( 255*rColor[2] ) );
if( rColor.getLength() > 3 )
@@ -454,9 +454,9 @@ namespace dxcanvas
// TODO(F1): Closed/open polygons
// convert from RealPoint2D array to Gdiplus::PointF array
- ::std::transform( const_cast< uno::Sequence< geometry::RealPoint2D >& >(points[nCurrPoly]).getArray(),
- const_cast< uno::Sequence< geometry::RealPoint2D >& >(points[nCurrPoly]).getArray()+nCurrSize,
- aPoints.begin(),
+ ::std::transform( const_cast< uno::Sequence< geometry::RealPoint2D >& >(points[nCurrPoly]).getArray(),
+ const_cast< uno::Sequence< geometry::RealPoint2D >& >(points[nCurrPoly]).getArray()+nCurrSize,
+ aPoints.begin(),
implGdiPlusPointFromRealPoint2D );
pRes->AddLines( &aPoints[0], nCurrSize );
@@ -468,8 +468,8 @@ namespace dxcanvas
GraphicsPathSharedPtr graphicsPathFromB2DPolygon( const ::basegfx::B2DPolygon& rPoly, bool bNoLineJoin )
{
- GraphicsPathSharedPtr pRes( new Gdiplus::GraphicsPath() );
- ::std::vector< Gdiplus::PointF > aPoints;
+ GraphicsPathSharedPtr pRes( new Gdiplus::GraphicsPath() );
+ ::std::vector< Gdiplus::PointF > aPoints;
graphicsPathFromB2DPolygon( pRes, aPoints, rPoly, bNoLineJoin );
@@ -478,14 +478,14 @@ namespace dxcanvas
GraphicsPathSharedPtr graphicsPathFromB2DPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly, bool bNoLineJoin )
{
- GraphicsPathSharedPtr pRes( new Gdiplus::GraphicsPath() );
- ::std::vector< Gdiplus::PointF > aPoints;
+ GraphicsPathSharedPtr pRes( new Gdiplus::GraphicsPath() );
+ ::std::vector< Gdiplus::PointF > aPoints;
const sal_uInt32 nPolies( rPoly.count() );
for( sal_uInt32 nCurrPoly=0; nCurrPoly<nPolies; ++nCurrPoly )
{
- graphicsPathFromB2DPolygon( pRes,
- aPoints,
+ graphicsPathFromB2DPolygon( pRes,
+ aPoints,
rPoly.getB2DPolygon( nCurrPoly ),
bNoLineJoin);
}
@@ -509,38 +509,38 @@ namespace dxcanvas
}
bool drawGdiPlusBitmap( const GraphicsSharedPtr& rGraphics,
- const BitmapSharedPtr& rBitmap )
+ const BitmapSharedPtr& rBitmap )
{
- Gdiplus::PointF aPoint;
+ Gdiplus::PointF aPoint;
return (Gdiplus::Ok == rGraphics->DrawImage( rBitmap.get(),
aPoint ) );
}
bool drawDIBits( const GraphicsSharedPtr& rGraphics,
- const BITMAPINFO& rBI,
- const void* pBits )
+ const BITMAPINFO& rBI,
+ const void* pBits )
{
- BitmapSharedPtr pBitmap(
- Gdiplus::Bitmap::FromBITMAPINFO( &rBI,
+ BitmapSharedPtr pBitmap(
+ Gdiplus::Bitmap::FromBITMAPINFO( &rBI,
(void*)pBits ) );
return drawGdiPlusBitmap( rGraphics,
pBitmap );
}
-
+
bool drawRGBABits( const GraphicsSharedPtr& rGraphics,
- const RawRGBABitmap& rRawRGBAData )
+ const RawRGBABitmap& rRawRGBAData )
{
- BitmapSharedPtr pBitmap( new Gdiplus::Bitmap( rRawRGBAData.mnWidth,
+ BitmapSharedPtr pBitmap( new Gdiplus::Bitmap( rRawRGBAData.mnWidth,
rRawRGBAData.mnHeight,
PixelFormat32bppARGB ) );
-
+
Gdiplus::BitmapData aBmpData;
- aBmpData.Width = rRawRGBAData.mnWidth;
- aBmpData.Height = rRawRGBAData.mnHeight;
- aBmpData.Stride = 4*aBmpData.Width; // bottom-up format
+ aBmpData.Width = rRawRGBAData.mnWidth;
+ aBmpData.Height = rRawRGBAData.mnHeight;
+ aBmpData.Stride = 4*aBmpData.Width; // bottom-up format
aBmpData.PixelFormat = PixelFormat32bppARGB;
- aBmpData.Scan0 = rRawRGBAData.mpBitmapData.get();
+ aBmpData.Scan0 = rRawRGBAData.mpBitmapData.get();
const Gdiplus::Rect aRect( 0,0,aBmpData.Width,aBmpData.Height );
if( Gdiplus::Ok != pBitmap->LockBits( &aRect,
@@ -550,7 +550,7 @@ namespace dxcanvas
{
return false;
}
-
+
// commit data to bitmap
pBitmap->UnlockBits( &aBmpData );
@@ -574,8 +574,8 @@ namespace dxcanvas
// =================================================
const geometry::IntegerSize2D aBmpSize( xBitmap->getSize() );
- BitmapSharedPtr pBitmap;
-
+ BitmapSharedPtr pBitmap;
+
if( xBitmap->hasAlpha() )
{
// TODO(P2): At least for the alpha bitmap case, it
@@ -595,10 +595,10 @@ namespace dxcanvas
aBmpSize.Height,
PixelFormat24bppRGB ) );
}
-
+
GraphicsSharedPtr pGraphics(createGraphicsFromBitmap(pBitmap));
tools::setupGraphics(*pGraphics);
- if( !drawVCLBitmapFromXBitmap(
+ if( !drawVCLBitmapFromXBitmap(
pGraphics,
xBitmap) )
{
@@ -609,7 +609,7 @@ namespace dxcanvas
}
}
- CanvasFont::ImplRef canvasFontFromXFont( const uno::Reference< rendering::XCanvasFont >& xFont )
+ CanvasFont::ImplRef canvasFontFromXFont( const uno::Reference< rendering::XCanvasFont >& xFont )
{
CanvasFont* pCanvasFont = dynamic_cast< CanvasFont* >(xFont.get());
@@ -620,15 +620,15 @@ namespace dxcanvas
}
void setModulateImageAttributes( Gdiplus::ImageAttributes& o_rAttr,
- double nRedModulation,
- double nGreenModulation,
- double nBlueModulation,
- double nAlphaModulation )
+ double nRedModulation,
+ double nGreenModulation,
+ double nBlueModulation,
+ double nAlphaModulation )
{
- // This gets rather verbose, but we have to setup a color
+ // This gets rather verbose, but we have to setup a color
// transformation matrix, in order to incorporate the global
// alpha value mfAlpha into the bitmap rendering.
- Gdiplus::ColorMatrix aColorMatrix;
+ Gdiplus::ColorMatrix aColorMatrix;
aColorMatrix.m[0][0] = static_cast<Gdiplus::REAL>(nRedModulation);
aColorMatrix.m[0][1] = 0.0;
@@ -661,7 +661,7 @@ namespace dxcanvas
aColorMatrix.m[4][4] = 1.0;
o_rAttr.SetColorMatrix( &aColorMatrix,
- Gdiplus::ColorMatrixFlagsDefault,
+ Gdiplus::ColorMatrixFlagsDefault,
Gdiplus::ColorAdjustTypeDefault );
}
diff --git a/canvas/source/directx/dx_impltools.hxx b/canvas/source/directx/dx_impltools.hxx
index 316029ba304d..449912c92075 100644
--- a/canvas/source/directx/dx_impltools.hxx
+++ b/canvas/source/directx/dx_impltools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,21 +81,21 @@ namespace dxcanvas
void setupGraphics( Gdiplus::Graphics& rGraphics );
- void gdiPlusMatrixFromB2DHomMatrix( Gdiplus::Matrix& rGdiplusMatrix,
- const ::basegfx::B2DHomMatrix& rMatrix );
- void gdiPlusMatrixFromAffineMatrix2D( Gdiplus::Matrix& rGdiplusMatrix,
+ void gdiPlusMatrixFromB2DHomMatrix( Gdiplus::Matrix& rGdiplusMatrix,
+ const ::basegfx::B2DHomMatrix& rMatrix );
+ void gdiPlusMatrixFromAffineMatrix2D( Gdiplus::Matrix& rGdiplusMatrix,
const ::com::sun::star::geometry::AffineMatrix2D& rMatrix );
Gdiplus::PointF gdiPlusPointFFromRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& );
- Gdiplus::RectF gdiPlusRectFFromRectangle2D( const ::com::sun::star::geometry::RealRectangle2D& );
- Gdiplus::Rect gdiPlusRectFromIntegerRectangle2D( const ::com::sun::star::geometry::IntegerRectangle2D& );
- RECT gdiRectFromB2IRect( const ::basegfx::B2IRange& );
+ Gdiplus::RectF gdiPlusRectFFromRectangle2D( const ::com::sun::star::geometry::RealRectangle2D& );
+ Gdiplus::Rect gdiPlusRectFromIntegerRectangle2D( const ::com::sun::star::geometry::IntegerRectangle2D& );
+ RECT gdiRectFromB2IRect( const ::basegfx::B2IRange& );
- ::com::sun::star::geometry::RealPoint2D realPoint2DFromGdiPlusPointF( const Gdiplus::PointF& );
- ::com::sun::star::geometry::RealRectangle2D realRectangle2DFromGdiPlusRectF( const Gdiplus::RectF& );
+ ::com::sun::star::geometry::RealPoint2D realPoint2DFromGdiPlusPointF( const Gdiplus::PointF& );
+ ::com::sun::star::geometry::RealRectangle2D realRectangle2DFromGdiPlusRectF( const Gdiplus::RectF& );
- ::basegfx::B2DPoint b2dPointFromGdiPlusPointF( const Gdiplus::PointF& );
- ::basegfx::B2DRange b2dRangeFromGdiPlusRectF( const Gdiplus::RectF& );
+ ::basegfx::B2DPoint b2dPointFromGdiPlusPointF( const Gdiplus::PointF& );
+ ::basegfx::B2DRange b2dRangeFromGdiPlusRectF( const Gdiplus::RectF& );
::com::sun::star::uno::Sequence< double > argbToDoubleSequence( const Gdiplus::ARGB& rColor );
::com::sun::star::uno::Sequence< sal_Int8 > argbToIntSequence( const Gdiplus::ARGB& rColor );
@@ -114,22 +114,22 @@ namespace dxcanvas
bool bNoLineJoin = false);
GraphicsPathSharedPtr graphicsPathFromXPolyPolygon2D(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >&,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >&,
bool bNoLineJoin = false );
bool drawGdiPlusBitmap( const GraphicsSharedPtr& rGraphics,
- const BitmapSharedPtr& rBitmap );
+ const BitmapSharedPtr& rBitmap );
bool drawDIBits( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
const BITMAPINFO& rBI,
const void* pBits );
bool drawRGBABits( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
- const RawRGBABitmap& rRawRGBAData );
+ const RawRGBABitmap& rRawRGBAData );
BitmapSharedPtr bitmapFromXBitmap( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap );
+ ::com::sun::star::rendering::XBitmap >& xBitmap );
- CanvasFont::ImplRef canvasFontFromXFont( const ::com::sun::star::uno::Reference<
+ CanvasFont::ImplRef canvasFontFromXFont( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvasFont >& xFont );
void setModulateImageAttributes( Gdiplus::ImageAttributes& o_rAttr,
diff --git a/canvas/source/directx/dx_linepolypolygon.cxx b/canvas/source/directx/dx_linepolypolygon.cxx
index 6fbf20949783..da0ea8d54f85 100644
--- a/canvas/source/directx/dx_linepolypolygon.cxx
+++ b/canvas/source/directx/dx_linepolypolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ namespace dxcanvas
return mpPath;
}
-
+
void LinePolyPolygon::modifying() const
{
mpPath.reset();
diff --git a/canvas/source/directx/dx_linepolypolygon.hxx b/canvas/source/directx/dx_linepolypolygon.hxx
index 7909659ce7fe..1abfe734c21b 100644
--- a/canvas/source/directx/dx_linepolypolygon.hxx
+++ b/canvas/source/directx/dx_linepolypolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,8 +49,8 @@ namespace dxcanvas
// overridden, to clear mpPath
virtual void modifying() const;
- GDIPlusUserSharedPtr mpGdiPlusUser;
- mutable GraphicsPathSharedPtr mpPath;
+ GDIPlusUserSharedPtr mpGdiPlusUser;
+ mutable GraphicsPathSharedPtr mpPath;
};
}
diff --git a/canvas/source/directx/dx_rendermodule.hxx b/canvas/source/directx/dx_rendermodule.hxx
index 48a128740321..be7b43a14fdc 100644
--- a/canvas/source/directx/dx_rendermodule.hxx
+++ b/canvas/source/directx/dx_rendermodule.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/directx/dx_sprite.hxx b/canvas/source/directx/dx_sprite.hxx
index 5405d587acc7..5889e8d3f9a8 100644
--- a/canvas/source/directx/dx_sprite.hxx
+++ b/canvas/source/directx/dx_sprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/directx/dx_spritecanvas.cxx b/canvas/source/directx/dx_spritecanvas.cxx
index 2e2131b44c15..3dd2e69e975e 100644
--- a/canvas/source/directx/dx_spritecanvas.cxx
+++ b/canvas/source/directx/dx_spritecanvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,7 +94,7 @@ namespace dxcanvas
5: SystemGraphicsData as a streamed Any
*/
ENSURE_ARG_OR_THROW( maArguments.getLength() >= 5 &&
- maArguments[4].getValueTypeClass() == uno::TypeClass_INTERFACE,
+ maArguments[4].getValueTypeClass() == uno::TypeClass_INTERFACE,
"VCLSpriteCanvas::initialize: wrong number of arguments, or wrong types" );
uno::Reference< awt::XWindow > xParentWindow;
@@ -104,7 +104,7 @@ namespace dxcanvas
throw lang::NoSupportException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"Parent window not VCL window, or canvas out-of-process!")),
- NULL);
+ NULL);
awt::Rectangle aRect;
maArguments[2] >>= aRect;
@@ -178,9 +178,9 @@ namespace dxcanvas
{
::osl::MutexGuard aGuard( m_aMutex );
- return maDeviceHelper.getRenderModule();
+ return maDeviceHelper.getRenderModule();
}
-
+
const DXSurfaceBitmapSharedPtr& SpriteCanvas::getBackBuffer() const
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/canvas/source/directx/dx_spritecanvas.hxx b/canvas/source/directx/dx_spritecanvas.hxx
index ec6d3785d536..d64892e74712 100644
--- a/canvas/source/directx/dx_spritecanvas.hxx
+++ b/canvas/source/directx/dx_spritecanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,11 +65,11 @@ namespace dxcanvas
::com::sun::star::awt::XWindowListener,
::com::sun::star::util::XUpdatable,
::com::sun::star::beans::XPropertySet,
- ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base;
+ ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base;
typedef ::canvas::BufferedGraphicDeviceBase< ::canvas::BaseMutexHelper< WindowGraphicDeviceBase_Base >,
SpriteDeviceHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > SpriteCanvasBase_Base;
+ ::cppu::OWeakObject > SpriteCanvasBase_Base;
/** Mixin SpriteSurface
Have to mixin the SpriteSurface before deriving from
@@ -95,7 +95,7 @@ namespace dxcanvas
typedef ::canvas::SpriteCanvasBase< SpriteCanvasBaseSpriteSurface_Base,
SpriteCanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > SpriteCanvasBaseT;
+ ::cppu::OWeakObject > SpriteCanvasBaseT;
/** Product of this component's factory.
diff --git a/canvas/source/directx/dx_spritecanvashelper.cxx b/canvas/source/directx/dx_spritecanvashelper.cxx
index 30bf9040634c..708f98e2933c 100644
--- a/canvas/source/directx/dx_spritecanvashelper.cxx
+++ b/canvas/source/directx/dx_spritecanvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
#include <canvas/canvastools.hxx>
#include <tools/diagnose_ex.h>
-#include <comphelper/scopeguard.hxx>
+#include <comphelper/scopeguard.hxx>
#include <basegfx/range/b2drectangle.hxx>
#include <basegfx/tools/canvastools.hxx>
@@ -44,7 +44,7 @@
#include "dx_spritecanvashelper.hxx"
#include "dx_canvascustomsprite.hxx"
-#if defined(DX_DEBUG_IMAGES)
+#if defined(DX_DEBUG_IMAGES)
# if OSL_DEBUG_LEVEL > 0
# include <imdebug.h>
# undef min
@@ -58,9 +58,9 @@ namespace dxcanvas
{
namespace
{
- void repaintBackground( const ::basegfx::B2DRange& rUpdateArea,
- const ::basegfx::B2IRange& rOutputArea,
- const DXSurfaceBitmapSharedPtr& rBackBuffer )
+ void repaintBackground( const ::basegfx::B2DRange& rUpdateArea,
+ const ::basegfx::B2IRange& rOutputArea,
+ const DXSurfaceBitmapSharedPtr& rBackBuffer )
{
// TODO(E1): Use numeric_cast to catch overflow here
::basegfx::B2IRange aActualArea( 0, 0,
@@ -120,11 +120,11 @@ namespace dxcanvas
}
void SpriteCanvasHelper::init( SpriteCanvas& rParent,
- ::canvas::SpriteRedrawManager& rManager,
- const IDXRenderModuleSharedPtr& rRenderModule,
- const ::canvas::ISurfaceProxyManagerSharedPtr& rSurfaceProxy,
- const DXSurfaceBitmapSharedPtr& rBackBuffer,
- const ::basegfx::B2ISize& rOutputOffset )
+ ::canvas::SpriteRedrawManager& rManager,
+ const IDXRenderModuleSharedPtr& rRenderModule,
+ const ::canvas::ISurfaceProxyManagerSharedPtr& rSurfaceProxy,
+ const DXSurfaceBitmapSharedPtr& rBackBuffer,
+ const ::basegfx::B2ISize& rOutputOffset )
{
// init base
setDevice( rParent );
@@ -136,7 +136,7 @@ namespace dxcanvas
mpSurfaceProxy = rSurfaceProxy;
mpBackBuffer = rBackBuffer;
}
-
+
void SpriteCanvasHelper::disposing()
{
if(mpRenderModule)
@@ -148,17 +148,17 @@ namespace dxcanvas
mpSpriteSurface = NULL;
// forward to base
- CanvasHelper::disposing();
+ CanvasHelper::disposing();
}
- uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation(
+ uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation(
const uno::Reference< rendering::XAnimation >& /*animation*/ )
{
return uno::Reference< rendering::XAnimatedSprite >();
}
- uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps(
- const uno::Sequence< uno::Reference< rendering::XBitmap > >& /*animationBitmaps*/,
+ uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps(
+ const uno::Sequence< uno::Reference< rendering::XBitmap > >& /*animationBitmaps*/,
sal_Int8 /*interpolationMode*/ )
{
return uno::Reference< rendering::XAnimatedSprite >();
@@ -169,8 +169,8 @@ namespace dxcanvas
if( !mpRedrawManager )
return uno::Reference< rendering::XCustomSprite >(); // we're disposed
- return uno::Reference< rendering::XCustomSprite >(
- new CanvasCustomSprite( spriteSize,
+ return uno::Reference< rendering::XCustomSprite >(
+ new CanvasCustomSprite( spriteSize,
mpSpriteSurface,
mpRenderModule,
mpSurfaceProxy,
@@ -186,7 +186,7 @@ namespace dxcanvas
sal_Bool bUpdateAll,
bool& io_bSurfaceDirty )
{
- if( !mpRedrawManager ||
+ if( !mpRedrawManager ||
!mpRenderModule ||
!mpBackBuffer )
{
@@ -197,7 +197,7 @@ namespace dxcanvas
# if OSL_DEBUG_LEVEL > 0
mpBackBuffer->imageDebugger();
# endif
-#endif
+#endif
// store current output area (need to tunnel that to the
// background, scroll, opaque and general sprite repaint
@@ -208,8 +208,8 @@ namespace dxcanvas
maUpdateRect.reset();
// TODO(P1): Might be worthwile to track areas of background
- // changes, too.
-
+ // changes, too.
+
// TODO(P2): Might be worthwhile to use page-flipping only if
// a certain percentage of screen area has changed - and
// compose directly to the front buffer otherwise.
@@ -259,7 +259,7 @@ namespace dxcanvas
// change record vector must be cleared, for the next turn of
// rendering and sprite changing
mpRedrawManager->clearChangeRecords();
-
+
io_bSurfaceDirty = false;
return sal_True;
@@ -276,8 +276,8 @@ namespace dxcanvas
mpBackBuffer );
}
- void SpriteCanvasHelper::scrollUpdate( const ::basegfx::B2DRange& /*rMoveStart*/,
- const ::basegfx::B2DRange& rMoveEnd,
+ void SpriteCanvasHelper::scrollUpdate( const ::basegfx::B2DRange& /*rMoveStart*/,
+ const ::basegfx::B2DRange& rMoveEnd,
const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea )
{
ENSURE_OR_THROW( mpRenderModule &&
@@ -322,11 +322,11 @@ namespace dxcanvas
static_cast<sal_Int32>(maScrapRect.getWidth()),
static_cast<sal_Int32>(maScrapRect.getHeight()) );
aActualArea.intersect( fround( rUpdateArea.maTotalBounds ) );
-
+
// add given update area to the 'blit to foreground' rect
maUpdateRect.expand( aActualArea );
}
-
+
void SpriteCanvasHelper::opaqueUpdate( const ::basegfx::B2DRange& rTotalArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites )
{
@@ -345,12 +345,12 @@ namespace dxcanvas
::basegfx::B2IRange aActualArea( 0, 0,
static_cast<sal_Int32>(maScrapRect.getWidth()),
static_cast<sal_Int32>(maScrapRect.getHeight()) );
- aActualArea.intersect( fround( rTotalArea ) );
-
+ aActualArea.intersect( fround( rTotalArea ) );
+
// add given update area to the 'blit to foreground' rect
maUpdateRect.expand( aActualArea );
}
-
+
void SpriteCanvasHelper::genericUpdate( const ::basegfx::B2DRange& rTotalArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites )
{
@@ -376,7 +376,7 @@ namespace dxcanvas
::std::for_each( rSortedUpdateSprites.begin(),
rSortedUpdateSprites.end(),
::std::ptr_fun( &spriteRedrawStub ) );
-
+
// add given update area to the 'blit to foreground' rect
maUpdateRect.expand( aActualArea );
}
diff --git a/canvas/source/directx/dx_spritecanvashelper.hxx b/canvas/source/directx/dx_spritecanvashelper.hxx
index 20a6294363a4..09c5c0e2aa02 100644
--- a/canvas/source/directx/dx_spritecanvashelper.hxx
+++ b/canvas/source/directx/dx_spritecanvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,33 +53,33 @@ namespace dxcanvas
SpriteCanvasHelper();
void init( SpriteCanvas& rParent,
- ::canvas::SpriteRedrawManager& rManager,
- const IDXRenderModuleSharedPtr& rRenderModule,
- const ::canvas::ISurfaceProxyManagerSharedPtr& rSurfaceProxy,
- const DXSurfaceBitmapSharedPtr& rBackBuffer,
- const ::basegfx::B2ISize& rOutputOffset );
+ ::canvas::SpriteRedrawManager& rManager,
+ const IDXRenderModuleSharedPtr& rRenderModule,
+ const ::canvas::ISurfaceProxyManagerSharedPtr& rSurfaceProxy,
+ const DXSurfaceBitmapSharedPtr& rBackBuffer,
+ const ::basegfx::B2ISize& rOutputOffset );
/// Dispose all internal references
void disposing();
// XSpriteCanvas
::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromAnimation(
+ ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromAnimation(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimation >& animation );
::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromBitmaps(
+ ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromBitmaps(
const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmap > >& animationBitmaps,
sal_Int8 interpolationMode );
::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCustomSprite > createCustomSprite(
+ ::com::sun::star::rendering::XCustomSprite > createCustomSprite(
const ::com::sun::star::geometry::RealSize2D& spriteSize );
::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSprite > createClonedSprite(
+ ::com::sun::star::rendering::XSprite > createClonedSprite(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite >& original );
/** Actually perform the screen update
@@ -123,9 +123,9 @@ namespace dxcanvas
All info necessary, should rMoveStart be partially or
fully outside the outdev
*/
- void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
- const ::basegfx::B2DRange& rMoveEnd,
- const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
+ void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
+ const ::basegfx::B2DRange& rMoveEnd,
+ const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
void opaqueUpdate( const ::basegfx::B2DRange& rTotalArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
@@ -138,15 +138,15 @@ namespace dxcanvas
SpriteCanvas* mpSpriteSurface;
/// Set from the SpriteCanvas: instance coordinating sprite redraw
- ::canvas::SpriteRedrawManager* mpRedrawManager;
+ ::canvas::SpriteRedrawManager* mpRedrawManager;
/// DX device, handling all low-level rendering
- IDXRenderModuleSharedPtr mpRenderModule;
+ IDXRenderModuleSharedPtr mpRenderModule;
- ::canvas::ISurfaceProxyManagerSharedPtr mpSurfaceProxy;
+ ::canvas::ISurfaceProxyManagerSharedPtr mpSurfaceProxy;
/// Backbuffer, contains the static canvas render output
- DXSurfaceBitmapSharedPtr mpBackBuffer;
+ DXSurfaceBitmapSharedPtr mpBackBuffer;
/// Completely temporary rect storage (used by sprite repaint)
mutable ::basegfx::B2IRange maUpdateRect;
diff --git a/canvas/source/directx/dx_spritedevicehelper.cxx b/canvas/source/directx/dx_spritedevicehelper.cxx
index 4791c32377b6..e65c13a99c87 100644
--- a/canvas/source/directx/dx_spritedevicehelper.cxx
+++ b/canvas/source/directx/dx_spritedevicehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ namespace dxcanvas
}
void SpriteDeviceHelper::init( Window& rWindow,
- SpriteCanvas& rSpriteCanvas,
+ SpriteCanvas& rSpriteCanvas,
const awt::Rectangle& rRect,
bool /*bFullscreen*/ )
{
@@ -129,8 +129,8 @@ namespace dxcanvas
}
uno::Reference< rendering::XBitmap > SpriteDeviceHelper::createCompatibleBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& size )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& size )
{
if( !getDevice() )
return uno::Reference< rendering::XBitmap >(); // we're disposed
@@ -147,15 +147,15 @@ namespace dxcanvas
}
uno::Reference< rendering::XVolatileBitmap > SpriteDeviceHelper::createVolatileBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& /*size*/ )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& /*size*/ )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
uno::Reference< rendering::XBitmap > SpriteDeviceHelper::createCompatibleAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& size )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& size )
{
if( !getDevice() )
return uno::Reference< rendering::XBitmap >(); // we're disposed
@@ -172,8 +172,8 @@ namespace dxcanvas
}
uno::Reference< rendering::XVolatileBitmap > SpriteDeviceHelper::createVolatileAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& /*size*/ )
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& /*size*/ )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
diff --git a/canvas/source/directx/dx_spritedevicehelper.hxx b/canvas/source/directx/dx_spritedevicehelper.hxx
index cf343e3f9306..0569606dbada 100644
--- a/canvas/source/directx/dx_spritedevicehelper.hxx
+++ b/canvas/source/directx/dx_spritedevicehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ namespace dxcanvas
void init( Window& rWindow,
SpriteCanvas& rSpriteCanvas,
- const ::com::sun::star::awt::Rectangle& rRect,
+ const ::com::sun::star::awt::Rectangle& rRect,
bool bFullscreen );
/// Dispose all internal references
@@ -62,28 +62,28 @@ namespace dxcanvas
// partial override XWindowGraphicDevice
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
sal_Bool hasFullScreenMode( );
sal_Bool enterFullScreenMode( sal_Bool bEnter );
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
- void destroyBuffers( );
+ void destroyBuffers( );
::sal_Bool showBuffer( bool bIsVisible, ::sal_Bool bUpdateAll );
::sal_Bool switchBuffer( bool bIsVisible, ::sal_Bool bUpdateAll );
const IDXRenderModuleSharedPtr& getRenderModule() const { return mpRenderModule; }
- const DXSurfaceBitmapSharedPtr& getBackBuffer() const { return mpBackBuffer; }
+ const DXSurfaceBitmapSharedPtr& getBackBuffer() const { return mpBackBuffer; }
const ::canvas::ISurfaceProxyManagerSharedPtr &getSurfaceProxy() const { return mpSurfaceProxyManager; }
::com::sun::star::uno::Any isAccelerated() const;
diff --git a/canvas/source/directx/dx_spritehelper.cxx b/canvas/source/directx/dx_spritehelper.cxx
index 3c791f4ba1e1..cb99abc31102 100644
--- a/canvas/source/directx/dx_spritehelper.cxx
+++ b/canvas/source/directx/dx_spritehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,15 +66,15 @@ namespace dxcanvas
mbShowSpriteBounds( false )
{
}
-
- void SpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
- const SpriteCanvasRef& rSpriteCanvas,
+
+ void SpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
+ const SpriteCanvasRef& rSpriteCanvas,
const IDXRenderModuleSharedPtr& rRenderModule,
- const DXSurfaceBitmapSharedPtr rBitmap,
- bool bShowSpriteBounds )
+ const DXSurfaceBitmapSharedPtr rBitmap,
+ bool bShowSpriteBounds )
{
- ENSURE_OR_THROW( rSpriteCanvas.get() &&
- rRenderModule &&
+ ENSURE_OR_THROW( rSpriteCanvas.get() &&
+ rRenderModule &&
rBitmap,
"SpriteHelper::init(): Invalid device, sprite canvas or surface" );
@@ -139,7 +139,7 @@ namespace dxcanvas
// background buffer.
// log output pos in device pixel
- VERBOSE_TRACE( "SpriteHelper::redraw(): output pos is (%f, %f)",
+ VERBOSE_TRACE( "SpriteHelper::redraw(): output pos is (%f, %f)",
rPos.getX(),
rPos.getY() );
@@ -151,8 +151,8 @@ namespace dxcanvas
mbTextureDirty = false;
io_bSurfaceDirty = false; // state taken, and processed.
- ::basegfx::B2DPolyPolygon aClipPath; // empty for no clip
- bool bIsClipRectangular( false ); // false, if no
+ ::basegfx::B2DPolyPolygon aClipPath; // empty for no clip
+ bool bIsClipRectangular( false ); // false, if no
// clip, or clip
// is complex
@@ -191,10 +191,10 @@ namespace dxcanvas
// apply a simple rect clip
// ========================
- ::basegfx::B2DRectangle aClipBounds(
+ ::basegfx::B2DRectangle aClipBounds(
::basegfx::tools::getRange( aClipPath ) );
aClipBounds.intersect( aSourceRect );
-
+
mpBitmap->draw(fAlpha,rPos,aClipBounds,rTransform);
}
else
diff --git a/canvas/source/directx/dx_spritehelper.hxx b/canvas/source/directx/dx_spritehelper.hxx
index 9a8449c99385..0eba43546706 100644
--- a/canvas/source/directx/dx_spritehelper.hxx
+++ b/canvas/source/directx/dx_spritehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,9 +76,9 @@ namespace dxcanvas
@param bShowSpriteBounds
When true, little debug bound rects for sprites are shown
*/
- void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
- const SpriteCanvasRef& rSpriteCanvas,
- const IDXRenderModuleSharedPtr& rRenderModule,
+ void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ const SpriteCanvasRef& rSpriteCanvas,
+ const IDXRenderModuleSharedPtr& rRenderModule,
const DXSurfaceBitmapSharedPtr rBitmap,
bool bShowSpriteBounds );
@@ -95,13 +95,13 @@ namespace dxcanvas
void redraw( bool& io_bSurfaceDirty ) const;
private:
- virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
+ virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const;
/// Returns true, if the sprite _really_ needs redraw
bool needRedraw() const;
- SpriteCanvasRef mpSpriteCanvas;
+ SpriteCanvasRef mpSpriteCanvas;
DXSurfaceBitmapSharedPtr mpBitmap;
mutable bool mbTextureDirty; // when true, texture needs update
diff --git a/canvas/source/directx/dx_surfacebitmap.cxx b/canvas/source/directx/dx_surfacebitmap.cxx
index 3841a117affa..4272e59d1aea 100644
--- a/canvas/source/directx/dx_surfacebitmap.cxx
+++ b/canvas/source/directx/dx_surfacebitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/range/b2irange.hxx>
-#if defined(DX_DEBUG_IMAGES)
+#if defined(DX_DEBUG_IMAGES)
# if OSL_DEBUG_LEVEL > 0
# include <imdebug.h>
# undef min
@@ -136,7 +136,7 @@ namespace dxcanvas
canvas::IColorBuffer::Format DXColorBuffer::getFormat() const
{
- return canvas::IColorBuffer::FMT_X8R8G8B8;
+ return canvas::IColorBuffer::FMT_X8R8G8B8;
}
//////////////////////////////////////////////////////////////////////////////////
@@ -147,7 +147,7 @@ namespace dxcanvas
{
public:
- GDIColorBuffer( const BitmapSharedPtr& rSurface,
+ GDIColorBuffer( const BitmapSharedPtr& rSurface,
const ::basegfx::B2IVector& rSize ) :
mpGDIPlusBitmap(rSurface),
maSize(rSize),
@@ -188,7 +188,7 @@ namespace dxcanvas
{
return NULL;
}
-
+
return static_cast<sal_uInt8*>(aBmpData.Scan0);
}
@@ -222,10 +222,10 @@ namespace dxcanvas
// DXSurfaceBitmap::DXSurfaceBitmap
//////////////////////////////////////////////////////////////////////////////////
- DXSurfaceBitmap::DXSurfaceBitmap( const ::basegfx::B2IVector& rSize,
- const canvas::ISurfaceProxyManagerSharedPtr& rMgr,
- const IDXRenderModuleSharedPtr& rRenderModule,
- bool bWithAlpha ) :
+ DXSurfaceBitmap::DXSurfaceBitmap( const ::basegfx::B2IVector& rSize,
+ const canvas::ISurfaceProxyManagerSharedPtr& rMgr,
+ const IDXRenderModuleSharedPtr& rRenderModule,
+ bool bWithAlpha ) :
mpGdiPlusUser( GDIPlusUser::createInstance() ),
maSize(rSize),
mpRenderModule(rRenderModule),
@@ -259,11 +259,11 @@ namespace dxcanvas
// create container for pixel data
if(mbAlpha)
{
- mpGDIPlusBitmap.reset(
- new Gdiplus::Bitmap(
+ mpGDIPlusBitmap.reset(
+ new Gdiplus::Bitmap(
maSize.getX(),
maSize.getY(),
- PixelFormat32bppARGB
+ PixelFormat32bppARGB
));
mpGraphics.reset( tools::createGraphicsFromBitmap(mpGDIPlusBitmap) );
@@ -360,18 +360,18 @@ namespace dxcanvas
const DWORD dwFlags = DDLOCK_NOSYSLOCK|DDLOCK_SURFACEMEMORYPTR|DDLOCK_WAIT|DDLOCK_READONLY;
// lock the directx surface to receive the pointer to the surface memory.
- if(SUCCEEDED(mpSurface->Lock(NULL,&aSurfaceDesc,dwFlags,NULL)))
+ if(SUCCEEDED(mpSurface->Lock(NULL,&aSurfaceDesc,dwFlags,NULL)))
{
// decide about the format we pass the gdi+, the directx surface is always
// 32bit, either with or without alpha component.
Gdiplus::PixelFormat nFormat = hasAlpha() ? PixelFormat32bppARGB : PixelFormat32bppRGB;
- // construct a gdi+ bitmap from the raw pixel data.
+ // construct a gdi+ bitmap from the raw pixel data.
pResult.reset(new Gdiplus::Bitmap( maSize.getX(),maSize.getY(),
aSurfaceDesc.lPitch,
nFormat,
(BYTE *)aSurfaceDesc.lpSurface ));
-
+
// unlock the directx surface
mpSurface->Unlock(NULL);
}
@@ -383,7 +383,7 @@ namespace dxcanvas
// 32bit, either with or without alpha component.
Gdiplus::PixelFormat nFormat = hasAlpha() ? PixelFormat32bppARGB : PixelFormat32bppRGB;
- // construct a gdi+ bitmap from the raw pixel data.
+ // construct a gdi+ bitmap from the raw pixel data.
pResult.reset(new Gdiplus::Bitmap( maSize.getX(),maSize.getY(),
aLockedRect.Pitch,
nFormat,
@@ -482,8 +482,8 @@ namespace dxcanvas
rtl_fillMemory( &aSurfaceDesc,sizeof(DDSURFACEDESC),0 );
aSurfaceDesc.dwSize = sizeof(DDSURFACEDESC);
- if( FAILED(mpSurface->Lock( NULL,
- &aSurfaceDesc,
+ if( FAILED(mpSurface->Lock( NULL,
+ &aSurfaceDesc,
DDLOCK_NOSYSLOCK|DDLOCK_SURFACEMEMORYPTR|DDLOCK_WAIT|DDLOCK_READONLY,
NULL)) )
return;
@@ -496,7 +496,7 @@ namespace dxcanvas
if( FAILED(mpSurface->LockRect(&aLockedRect,NULL,D3DLOCK_NOSYSLOCK|D3DLOCK_READONLY)) )
return;
- imdebug("bgra w=%d h=%d %p", maSize.getX(),
+ imdebug("bgra w=%d h=%d %p", maSize.getX(),
maSize.getY(), aLockedRect.pBits);
mpSurface->UnlockRect();
#endif
@@ -508,7 +508,7 @@ namespace dxcanvas
// DXSurfaceBitmap::getData
//////////////////////////////////////////////////////////////////////////////////
- uno::Sequence< sal_Int8 > DXSurfaceBitmap::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ uno::Sequence< sal_Int8 > DXSurfaceBitmap::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerRectangle2D& rect )
{
if(hasAlpha())
@@ -518,11 +518,11 @@ namespace dxcanvas
const Gdiplus::Rect aRect( tools::gdiPlusRectFromIntegerRectangle2D( rect ) );
Gdiplus::BitmapData aBmpData;
- aBmpData.Width = rect.X2-rect.X1;
- aBmpData.Height = rect.Y2-rect.Y1;
- aBmpData.Stride = 4*aBmpData.Width;
+ aBmpData.Width = rect.X2-rect.X1;
+ aBmpData.Height = rect.Y2-rect.Y1;
+ aBmpData.Stride = 4*aBmpData.Width;
aBmpData.PixelFormat = PixelFormat32bppARGB;
- aBmpData.Scan0 = aRes.getArray();
+ aBmpData.Scan0 = aRes.getArray();
// TODO(F1): Support more pixel formats natively
@@ -563,7 +563,7 @@ namespace dxcanvas
sal_uInt8 *pSrc = (sal_uInt8 *)((((BYTE *)aSurfaceDesc.lpSurface)+(rect.Y1*aSurfaceDesc.lPitch))+rect.X1);
sal_uInt8 *pDst = (sal_uInt8 *)aRes.getArray();
sal_uInt32 nSegmentSizeInBytes = nWidth<<4;
- for(sal_uInt32 y=0; y<nHeight; ++y)
+ for(sal_uInt32 y=0; y<nHeight; ++y)
{
rtl_copyMemory(pDst,pSrc,nSegmentSizeInBytes);
pDst += nSegmentSizeInBytes;
@@ -579,7 +579,7 @@ namespace dxcanvas
sal_uInt8 *pSrc = (sal_uInt8 *)((((BYTE *)aLockedRect.pBits)+(rect.Y1*aLockedRect.Pitch))+rect.X1);
sal_uInt8 *pDst = (sal_uInt8 *)aRes.getArray();
sal_uInt32 nSegmentSizeInBytes = nWidth<<4;
- for(sal_uInt32 y=0; y<nHeight; ++y)
+ for(sal_uInt32 y=0; y<nHeight; ++y)
{
rtl_copyMemory(pDst,pSrc,nSegmentSizeInBytes);
pDst += nSegmentSizeInBytes;
@@ -596,20 +596,20 @@ namespace dxcanvas
// DXSurfaceBitmap::setData
//////////////////////////////////////////////////////////////////////////////////
- void DXSurfaceBitmap::setData( const uno::Sequence< sal_Int8 >& data,
- const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
- const geometry::IntegerRectangle2D& rect )
+ void DXSurfaceBitmap::setData( const uno::Sequence< sal_Int8 >& data,
+ const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ const geometry::IntegerRectangle2D& rect )
{
if(hasAlpha())
{
const Gdiplus::Rect aRect( tools::gdiPlusRectFromIntegerRectangle2D( rect ) );
Gdiplus::BitmapData aBmpData;
- aBmpData.Width = rect.X2-rect.X1;
- aBmpData.Height = rect.Y2-rect.Y1;
- aBmpData.Stride = 4*aBmpData.Width;
+ aBmpData.Width = rect.X2-rect.X1;
+ aBmpData.Height = rect.Y2-rect.Y1;
+ aBmpData.Stride = 4*aBmpData.Width;
aBmpData.PixelFormat = PixelFormat32bppARGB;
- aBmpData.Scan0 = (void*)data.getConstArray();
+ aBmpData.Scan0 = (void*)data.getConstArray();
// TODO(F1): Support more pixel formats natively
@@ -645,7 +645,7 @@ namespace dxcanvas
sal_uInt8 *pSrc = (sal_uInt8 *)data.getConstArray();
sal_uInt8 *pDst = (sal_uInt8 *)((((BYTE *)aSurfaceDesc.lpSurface)+(rect.Y1*aSurfaceDesc.lPitch))+rect.X1);
sal_uInt32 nSegmentSizeInBytes = nWidth<<4;
- for(sal_uInt32 y=0; y<nHeight; ++y)
+ for(sal_uInt32 y=0; y<nHeight; ++y)
{
rtl_copyMemory(pDst,pSrc,nSegmentSizeInBytes);
pSrc += nSegmentSizeInBytes;
@@ -662,7 +662,7 @@ namespace dxcanvas
sal_uInt8 *pSrc = (sal_uInt8 *)data.getConstArray();
sal_uInt8 *pDst = (sal_uInt8 *)((((BYTE *)aLockedRect.pBits)+(rect.Y1*aLockedRect.Pitch))+rect.X1);
sal_uInt32 nSegmentSizeInBytes = nWidth<<4;
- for(sal_uInt32 y=0; y<nHeight; ++y)
+ for(sal_uInt32 y=0; y<nHeight; ++y)
{
rtl_copyMemory(pDst,pSrc,nSegmentSizeInBytes);
pSrc += nSegmentSizeInBytes;
@@ -680,22 +680,22 @@ namespace dxcanvas
// DXSurfaceBitmap::setPixel
//////////////////////////////////////////////////////////////////////////////////
- void DXSurfaceBitmap::setPixel( const uno::Sequence< sal_Int8 >& color,
- const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ void DXSurfaceBitmap::setPixel( const uno::Sequence< sal_Int8 >& color,
+ const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerPoint2D& pos )
{
if(hasAlpha())
{
const geometry::IntegerSize2D aSize( maSize.getX(),maSize.getY() );
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aSize.Width,
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aSize.Width,
"CanvasHelper::setPixel: X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aSize.Height,
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aSize.Height,
"CanvasHelper::setPixel: Y coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( color.getLength() > 3,
+ ENSURE_ARG_OR_THROW( color.getLength() > 3,
"CanvasHelper::setPixel: not enough color components" );
- if( Gdiplus::Ok != mpGDIPlusBitmap->SetPixel( pos.X, pos.Y,
+ if( Gdiplus::Ok != mpGDIPlusBitmap->SetPixel( pos.X, pos.Y,
Gdiplus::Color( tools::sequenceToArgb( color ))))
{
throw uno::RuntimeException();
@@ -703,11 +703,11 @@ namespace dxcanvas
}
else
{
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < maSize.getX(),
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < maSize.getX(),
"CanvasHelper::setPixel: X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < maSize.getY(),
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < maSize.getY(),
"CanvasHelper::setPixel: Y coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( color.getLength() > 3,
+ ENSURE_ARG_OR_THROW( color.getLength() > 3,
"CanvasHelper::setPixel: not enough color components" );
Gdiplus::Color aColor(tools::sequenceToArgb(color));
@@ -744,30 +744,30 @@ namespace dxcanvas
// DXSurfaceBitmap::getPixel
//////////////////////////////////////////////////////////////////////////////////
- uno::Sequence< sal_Int8 > DXSurfaceBitmap::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ uno::Sequence< sal_Int8 > DXSurfaceBitmap::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerPoint2D& pos )
{
if(hasAlpha())
{
const geometry::IntegerSize2D aSize( maSize.getX(),maSize.getY() );
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aSize.Width,
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aSize.Width,
"CanvasHelper::getPixel: X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aSize.Height,
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aSize.Height,
"CanvasHelper::getPixel: Y coordinate out of bounds" );
Gdiplus::Color aColor;
if( Gdiplus::Ok != mpGDIPlusBitmap->GetPixel( pos.X, pos.Y, &aColor ) )
return uno::Sequence< sal_Int8 >();
-
+
return tools::argbToIntSequence(aColor.GetValue());
}
else
{
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < maSize.getX(),
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < maSize.getX(),
"CanvasHelper::getPixel: X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < maSize.getY(),
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < maSize.getY(),
"CanvasHelper::getPixel: Y coordinate out of bounds" );
#if DIRECTX_VERSION < 0x0900
@@ -793,7 +793,7 @@ namespace dxcanvas
Gdiplus::Color aColor(*pDst);
mpSurface->UnlockRect();
#endif
-
+
return tools::argbToIntSequence(aColor.GetValue());
}
}
diff --git a/canvas/source/directx/dx_surfacebitmap.hxx b/canvas/source/directx/dx_surfacebitmap.hxx
index 3b40c7879862..b51735dda9f6 100644
--- a/canvas/source/directx/dx_surfacebitmap.hxx
+++ b/canvas/source/directx/dx_surfacebitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,10 +41,10 @@ namespace dxcanvas
class DXSurfaceBitmap : public IBitmap
{
public:
- DXSurfaceBitmap( const ::basegfx::B2IVector& rSize,
- const canvas::ISurfaceProxyManagerSharedPtr& rMgr,
- const IDXRenderModuleSharedPtr& rRenderModule,
- bool bWithAlpha );
+ DXSurfaceBitmap( const ::basegfx::B2IVector& rSize,
+ const canvas::ISurfaceProxyManagerSharedPtr& rMgr,
+ const IDXRenderModuleSharedPtr& rRenderModule,
+ bool bWithAlpha );
bool resize( const ::basegfx::B2IVector& rSize );
void clear();
@@ -55,41 +55,41 @@ namespace dxcanvas
virtual ::basegfx::B2IVector getSize() const;
virtual bool hasAlpha() const;
- COMReference<surface_type> getSurface() const { return mpSurface; }
+ COMReference<surface_type> getSurface() const { return mpSurface; }
- bool draw( double fAlpha,
- const ::basegfx::B2DPoint& rPos,
- const ::basegfx::B2DHomMatrix& rTransform );
+ bool draw( double fAlpha,
+ const ::basegfx::B2DPoint& rPos,
+ const ::basegfx::B2DHomMatrix& rTransform );
- bool draw( const ::basegfx::B2IRange& rArea );
+ bool draw( const ::basegfx::B2IRange& rArea );
- bool draw( double fAlpha,
- const ::basegfx::B2DPoint& rPos,
- const ::basegfx::B2DRange& rArea,
- const ::basegfx::B2DHomMatrix& rTransform );
+ bool draw( double fAlpha,
+ const ::basegfx::B2DPoint& rPos,
+ const ::basegfx::B2DRange& rArea,
+ const ::basegfx::B2DHomMatrix& rTransform );
- bool draw( double fAlpha,
+ bool draw( double fAlpha,
const ::basegfx::B2DPoint& rPos,
const ::basegfx::B2DPolyPolygon& rClipPoly,
const ::basegfx::B2DHomMatrix& rTransform );
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getData(
- ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
virtual void setData(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
virtual void setPixel(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos );
+ const ::com::sun::star::geometry::IntegerPoint2D& pos );
virtual ::com::sun::star::uno::Sequence< sal_Int8 > getPixel(
- ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos );
+ ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos );
#ifdef DX_DEBUG_IMAGES
void imageDebugger();
diff --git a/canvas/source/directx/dx_surfacegraphics.cxx b/canvas/source/directx/dx_surfacegraphics.cxx
index e8267ef54fe7..e32a5c97dc8f 100644
--- a/canvas/source/directx/dx_surfacegraphics.cxx
+++ b/canvas/source/directx/dx_surfacegraphics.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace dxcanvas
{
COMReference<surface_type> mpSurface;
HDC maHDC;
-
+
GraphicsDeleter(const COMReference<surface_type>& rSurface, HDC hdc) :
mpSurface(rSurface),
maHDC(hdc)
@@ -58,7 +58,7 @@ namespace dxcanvas
if(mpSurface.is())
mpSurface->ReleaseDC( maHDC );
- }
+ }
};
}
diff --git a/canvas/source/directx/dx_surfacegraphics.hxx b/canvas/source/directx/dx_surfacegraphics.hxx
index 3f8d6e73e48a..12390c8cf7a2 100644
--- a/canvas/source/directx/dx_surfacegraphics.hxx
+++ b/canvas/source/directx/dx_surfacegraphics.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/directx/dx_textlayout.cxx b/canvas/source/directx/dx_textlayout.cxx
index ae0f84b4e225..1d5a27d271f5 100644
--- a/canvas/source/directx/dx_textlayout.cxx
+++ b/canvas/source/directx/dx_textlayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,10 +45,10 @@ using namespace ::com::sun::star;
namespace dxcanvas
{
- TextLayout::TextLayout( const rendering::StringContext& aText,
- sal_Int8 nDirection,
- sal_Int64 /*nRandomSeed*/,
- const CanvasFont::ImplRef& rFont ) :
+ TextLayout::TextLayout( const rendering::StringContext& aText,
+ sal_Int8 nDirection,
+ sal_Int64 /*nRandomSeed*/,
+ const CanvasFont::ImplRef& rFont ) :
TextLayout_Base( m_aMutex ),
maText( aText ),
maLogicalAdvancements(),
@@ -232,9 +232,9 @@ namespace dxcanvas
}
bool TextLayout::draw( const GraphicsSharedPtr& rGraphics,
- const rendering::ViewState& rViewState,
- const rendering::RenderState& rRenderState,
- const ::basegfx::B2ISize& rOutputOffset,
+ const rendering::ViewState& rViewState,
+ const rendering::RenderState& rRenderState,
+ const ::basegfx::B2ISize& rOutputOffset,
const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
bool bAlphaSurface ) const
{
diff --git a/canvas/source/directx/dx_textlayout.hxx b/canvas/source/directx/dx_textlayout.hxx
index f14d8c6f04df..bae2e2b98787 100644
--- a/canvas/source/directx/dx_textlayout.hxx
+++ b/canvas/source/directx/dx_textlayout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/directx/dx_textlayout_drawhelper.cxx b/canvas/source/directx/dx_textlayout_drawhelper.cxx
index 33e8a08f79c1..92cdcd7d8dc9 100644
--- a/canvas/source/directx/dx_textlayout_drawhelper.cxx
+++ b/canvas/source/directx/dx_textlayout_drawhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,16 +76,16 @@ namespace dxcanvas
{
}
- void TextLayoutDrawHelper::drawText(
+ void TextLayoutDrawHelper::drawText(
const GraphicsSharedPtr& rGraphics,
- const ::com::sun::star::rendering::ViewState& rViewState,
- const ::com::sun::star::rendering::RenderState& rRenderState,
- const ::basegfx::B2ISize& rOutputOffset,
- const ::com::sun::star::rendering::StringContext& rText,
- const ::com::sun::star::uno::Sequence< double >& rLogicalAdvancements,
+ const ::com::sun::star::rendering::ViewState& rViewState,
+ const ::com::sun::star::rendering::RenderState& rRenderState,
+ const ::basegfx::B2ISize& rOutputOffset,
+ const ::com::sun::star::rendering::StringContext& rText,
+ const ::com::sun::star::uno::Sequence< double >& rLogicalAdvancements,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvasFont >& rCanvasFont,
- const ::com::sun::star::geometry::Matrix2D& rFontMatrix,
+ ::com::sun::star::rendering::XCanvasFont >& rCanvasFont,
+ const ::com::sun::star::geometry::Matrix2D& rFontMatrix,
bool bAlphaSurface )
{
HDC hdc = rGraphics->GetHDC();
@@ -242,10 +242,10 @@ namespace dxcanvas
}
}
- geometry::RealRectangle2D TextLayoutDrawHelper::queryTextBounds( const rendering::StringContext& rText,
- const uno::Sequence< double >& rLogicalAdvancements,
- const uno::Reference< rendering::XCanvasFont >& rCanvasFont,
- const geometry::Matrix2D& rFontMatrix )
+ geometry::RealRectangle2D TextLayoutDrawHelper::queryTextBounds( const rendering::StringContext& rText,
+ const uno::Sequence< double >& rLogicalAdvancements,
+ const uno::Reference< rendering::XCanvasFont >& rCanvasFont,
+ const geometry::Matrix2D& rFontMatrix )
{
if(!(rText.Length))
return geometry::RealRectangle2D();
diff --git a/canvas/source/directx/dx_textlayout_drawhelper.hxx b/canvas/source/directx/dx_textlayout_drawhelper.hxx
index 49f8f5f8feee..837e715ec373 100644
--- a/canvas/source/directx/dx_textlayout_drawhelper.hxx
+++ b/canvas/source/directx/dx_textlayout_drawhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,22 +56,22 @@ namespace dxcanvas
// draw text
void drawText( const boost::shared_ptr<Gdiplus::Graphics>& rGraphics,
- const ::com::sun::star::rendering::ViewState& rViewState,
- const ::com::sun::star::rendering::RenderState& rRenderState,
- const ::basegfx::B2ISize& rOutputOffset,
- const ::com::sun::star::rendering::StringContext& rText,
- const ::com::sun::star::uno::Sequence< double >& rLogicalAdvancements,
+ const ::com::sun::star::rendering::ViewState& rViewState,
+ const ::com::sun::star::rendering::RenderState& rRenderState,
+ const ::basegfx::B2ISize& rOutputOffset,
+ const ::com::sun::star::rendering::StringContext& rText,
+ const ::com::sun::star::uno::Sequence< double >& rLogicalAdvancements,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvasFont >& rCanvasFont,
- const ::com::sun::star::geometry::Matrix2D& rFontMatrix,
+ ::com::sun::star::rendering::XCanvasFont >& rCanvasFont,
+ const ::com::sun::star::geometry::Matrix2D& rFontMatrix,
bool bAlphaSurface );
::com::sun::star::geometry::RealRectangle2D queryTextBounds(
- const ::com::sun::star::rendering::StringContext& rText,
- const ::com::sun::star::uno::Sequence< double >& rLogicalAdvancements,
+ const ::com::sun::star::rendering::StringContext& rText,
+ const ::com::sun::star::uno::Sequence< double >& rLogicalAdvancements,
const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvasFont >& rCanvasFont,
- const ::com::sun::star::geometry::Matrix2D& rFontMatrix );
+ ::com::sun::star::rendering::XCanvasFont >& rCanvasFont,
+ const ::com::sun::star::geometry::Matrix2D& rFontMatrix );
#ifdef DBG_UTIL
void test();
@@ -79,7 +79,7 @@ namespace dxcanvas
protected:
::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice > mxGraphicDevice;
+ ::com::sun::star::rendering::XGraphicDevice > mxGraphicDevice;
};
}
diff --git a/canvas/source/directx/dx_vcltools.cxx b/canvas/source/directx/dx_vcltools.cxx
index 0801ad81c780..23b2e00683de 100644
--- a/canvas/source/directx/dx_vcltools.cxx
+++ b/canvas/source/directx/dx_vcltools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,30 +70,30 @@ namespace dxcanvas
return 1L << rBIH.biBitCount;
}
}
- else
+ else
{
BITMAPCOREHEADER* pCoreHeader = (BITMAPCOREHEADER*)&rBIH;
if( pCoreHeader->bcBitCount <= 8 )
return 1L << pCoreHeader->bcBitCount;
}
-
+
return 0; // nothing known
}
/// Draw DI bits to given Graphics
- bool drawDIBits( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
- const void* hDIB )
+ bool drawDIBits( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
+ const void* hDIB )
{
- bool bRet( false );
+ bool bRet( false );
BitmapSharedPtr pBitmap;
const BITMAPINFO* pBI = (BITMAPINFO*)GlobalLock( (HGLOBAL)hDIB );
if( pBI )
{
- const BITMAPINFOHEADER* pBIH = (BITMAPINFOHEADER*)pBI;
- const BYTE* pBits = (BYTE*) pBI + *(DWORD*)pBI +
+ const BITMAPINFOHEADER* pBIH = (BITMAPINFOHEADER*)pBI;
+ const BYTE* pBits = (BYTE*) pBI + *(DWORD*)pBI +
calcDIBColorCount( *pBIH ) * sizeof( RGBQUAD );
// forward to outsourced GDI+ rendering method
@@ -112,8 +112,8 @@ namespace dxcanvas
Reference to bitmap. Might get modified, in such a way
that it will hold a DIB after a successful function call.
*/
- bool drawVCLBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
- ::Bitmap& rBmp )
+ bool drawVCLBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
+ ::Bitmap& rBmp )
{
BitmapSystemData aBmpSysData;
@@ -172,15 +172,15 @@ namespace dxcanvas
const ::Size aBmpSize( rBmpEx.GetSizePixel() );
RawRGBABitmap aBmpData;
- aBmpData.mnWidth = aBmpSize.Width();
- aBmpData.mnHeight = aBmpSize.Height();
+ aBmpData.mnWidth = aBmpSize.Width();
+ aBmpData.mnHeight = aBmpSize.Height();
aBmpData.mpBitmapData.reset( new sal_uInt8[ 4*aBmpData.mnWidth*aBmpData.mnHeight ] );
Bitmap aBitmap( rBmpEx.GetBitmap() );
ScopedBitmapReadAccess pReadAccess( aBitmap.AcquireReadAccess(),
aBitmap );
-
+
const sal_Int32 nWidth( aBmpSize.Width() );
const sal_Int32 nHeight( aBmpSize.Height() );
@@ -197,14 +197,14 @@ namespace dxcanvas
// By convention, the access buffer always has
// one of the following formats:
- //
+ //
// BMP_FORMAT_1BIT_MSB_PAL
- // BMP_FORMAT_4BIT_MSN_PAL
- // BMP_FORMAT_8BIT_PAL
- // BMP_FORMAT_16BIT_TC_LSB_MASK
- // BMP_FORMAT_24BIT_TC_BGR
- // BMP_FORMAT_32BIT_TC_MASK
- //
+ // BMP_FORMAT_4BIT_MSN_PAL
+ // BMP_FORMAT_8BIT_PAL
+ // BMP_FORMAT_16BIT_TC_LSB_MASK
+ // BMP_FORMAT_24BIT_TC_BGR
+ // BMP_FORMAT_32BIT_TC_MASK
+ //
// and is always BMP_FORMAT_BOTTOM_UP
//
// This is the way
@@ -220,11 +220,11 @@ namespace dxcanvas
"::dxcanvas::tools::bitmapFromVCLBitmapEx(): "
"Unsupported alpha scanline format" );
- BitmapColor aCol;
+ BitmapColor aCol;
const sal_Int32 nWidth( aBmpSize.Width() );
const sal_Int32 nHeight( aBmpSize.Height() );
- sal_uInt8* pCurrOutput( aBmpData.mpBitmapData.get() );
- int x, y;
+ sal_uInt8* pCurrOutput( aBmpData.mpBitmapData.get() );
+ int x, y;
for( y=0; y<nHeight; ++y )
{
@@ -340,14 +340,14 @@ namespace dxcanvas
// By convention, the access buffer always has
// one of the following formats:
- //
+ //
// BMP_FORMAT_1BIT_MSB_PAL
- // BMP_FORMAT_4BIT_MSN_PAL
- // BMP_FORMAT_8BIT_PAL
- // BMP_FORMAT_16BIT_TC_LSB_MASK
- // BMP_FORMAT_24BIT_TC_BGR
- // BMP_FORMAT_32BIT_TC_MASK
- //
+ // BMP_FORMAT_4BIT_MSN_PAL
+ // BMP_FORMAT_8BIT_PAL
+ // BMP_FORMAT_16BIT_TC_LSB_MASK
+ // BMP_FORMAT_24BIT_TC_BGR
+ // BMP_FORMAT_32BIT_TC_MASK
+ //
// and is always BMP_FORMAT_BOTTOM_UP
//
// This is the way
@@ -362,12 +362,12 @@ namespace dxcanvas
"::dxcanvas::tools::bitmapFromVCLBitmapEx(): "
"Unsupported mask scanline format" );
- BitmapColor aCol;
- int nCurrBit;
- const int nMask( 1L );
- const int nInitialBit(7);
- sal_uInt8* pCurrOutput( aBmpData.mpBitmapData.get() );
- int x, y;
+ BitmapColor aCol;
+ int nCurrBit;
+ const int nMask( 1L );
+ const int nInitialBit(7);
+ sal_uInt8* pCurrOutput( aBmpData.mpBitmapData.get() );
+ int x, y;
// mapping table, to get from mask index color to
// alpha value (which depends on the mask's palette)
@@ -443,7 +443,7 @@ namespace dxcanvas
for( x=0, nCurrBit=nInitialBit; x<nWidth; ++x )
{
// yes. x and y are swapped on Get/SetPixel
- aCol = pReadAccess->GetColor(y,x);
+ aCol = pReadAccess->GetColor(y,x);
// store as RGBA
*pCurrOutput++ = aCol.GetBlue();
@@ -488,10 +488,10 @@ namespace dxcanvas
return aBmpData;
}
- bool drawVCLBitmapEx( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
- const ::BitmapEx& rBmpEx )
+ bool drawVCLBitmapEx( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
+ const ::BitmapEx& rBmpEx )
{
- if( !rBmpEx.IsTransparent() )
+ if( !rBmpEx.IsTransparent() )
{
Bitmap aBmp( rBmpEx.GetBitmap() );
return drawVCLBitmap( rGraphics, aBmp );
@@ -504,11 +504,11 @@ namespace dxcanvas
}
}
- bool drawVCLBitmapFromXBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
- const uno::Reference< rendering::XBitmap >& xBitmap )
+ bool drawVCLBitmapFromXBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
+ const uno::Reference< rendering::XBitmap >& xBitmap )
{
// TODO(F2): add support for floating point bitmap formats
- uno::Reference< rendering::XIntegerReadOnlyBitmap > xIntBmp(
+ uno::Reference< rendering::XIntegerReadOnlyBitmap > xIntBmp(
xBitmap, uno::UNO_QUERY );
if( !xIntBmp.is() )
diff --git a/canvas/source/directx/dx_vcltools.hxx b/canvas/source/directx/dx_vcltools.hxx
index 96968301fb90..c51ba9e8d9cb 100644
--- a/canvas/source/directx/dx_vcltools.hxx
+++ b/canvas/source/directx/dx_vcltools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,13 +51,13 @@ namespace dxcanvas
*/
struct RawRGBABitmap
{
- sal_Int32 mnWidth;
- sal_Int32 mnHeight;
- ::boost::shared_ptr< sal_uInt8 > mpBitmapData;
+ sal_Int32 mnWidth;
+ sal_Int32 mnHeight;
+ ::boost::shared_ptr< sal_uInt8 > mpBitmapData;
};
- bool drawVCLBitmapFromXBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
- const ::com::sun::star::uno::Reference<
+ bool drawVCLBitmapFromXBitmap( const ::boost::shared_ptr< Gdiplus::Graphics >& rGraphics,
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmap >& xBitmap );
}
}
diff --git a/canvas/source/directx/dx_winstuff.hxx b/canvas/source/directx/dx_winstuff.hxx
index e5133de1b8e2..e92b17c62599 100644
--- a/canvas/source/directx/dx_winstuff.hxx
+++ b/canvas/source/directx/dx_winstuff.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -117,13 +117,13 @@ using ::std::min;
namespace dxcanvas
{
// some shared pointer typedefs to Gdiplus objects
- typedef ::boost::shared_ptr< Gdiplus::Graphics > GraphicsSharedPtr;
- typedef ::boost::shared_ptr< Gdiplus::GraphicsPath > GraphicsPathSharedPtr;
- typedef ::boost::shared_ptr< Gdiplus::Bitmap > BitmapSharedPtr;
- typedef ::boost::shared_ptr< Gdiplus::CachedBitmap > CachedBitmapSharedPtr;
- typedef ::boost::shared_ptr< Gdiplus::Font > FontSharedPtr;
- typedef ::boost::shared_ptr< Gdiplus::Brush > BrushSharedPtr;
- typedef ::boost::shared_ptr< Gdiplus::TextureBrush > TextureBrushSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::Graphics > GraphicsSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::GraphicsPath > GraphicsPathSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::Bitmap > BitmapSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::CachedBitmap > CachedBitmapSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::Font > FontSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::Brush > BrushSharedPtr;
+ typedef ::boost::shared_ptr< Gdiplus::TextureBrush > TextureBrushSharedPtr;
/** COM object RAII wrapper
@@ -196,13 +196,13 @@ namespace dxcanvas
return refcount;
}
- bool is() const { return mp != NULL; }
+ bool is() const { return mp != NULL; }
T* get() const { return mp; }
T* operator->() const { return mp; }
T& operator*() const { return *mp; }
private:
- T* mp;
+ T* mp;
};
// get_pointer() enables boost::mem_fn to recognize COMReference
diff --git a/canvas/source/factory/cf_service.cxx b/canvas/source/factory/cf_service.cxx
index fb54ae3e8c6c..792c3b272470 100644
--- a/canvas/source/factory/cf_service.cxx
+++ b/canvas/source/factory/cf_service.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using ::rtl::OUString;
-namespace
+namespace
{
OUString SAL_CALL getImplName()
@@ -95,7 +95,7 @@ class CanvasFactory
mutable bool m_bCacheHasUseAcceleratedEntry;
mutable bool m_bCacheHasUseAAEntry;
- void checkConfigFlag( bool& r_bFlag,
+ void checkConfigFlag( bool& r_bFlag,
bool& r_CacheFlag,
const OUString& nodeName ) const;
Reference<XInterface> use(
@@ -150,7 +150,7 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
m_bCacheHasUseAcceleratedEntry(),
m_bCacheHasUseAAEntry()
{
- try
+ try
{
// read out configuration for preferred services:
Reference<lang::XMultiServiceFactory> xConfigProvider(
@@ -167,10 +167,10 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
m_xCanvasConfigNameAccess.set(
xConfigProvider->createInstanceWithArguments(
OUSTR("com.sun.star.configuration.ConfigurationAccess"),
- Sequence<Any>( &propValue, 1 ) ),
+ Sequence<Any>( &propValue, 1 ) ),
UNO_QUERY_THROW );
- propValue = makeAny(
+ propValue = makeAny(
beans::PropertyValue(
OUSTR("nodepath"), -1,
makeAny( OUSTR("/org.openoffice.Office.Canvas/CanvasServiceList") ),
@@ -189,7 +189,7 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
while( pCurr != pEnd )
{
Reference<container::XNameAccess> xEntryNameAccess(
- xHierarchicalNameAccess->getByHierarchicalName(*pCurr),
+ xHierarchicalNameAccess->getByHierarchicalName(*pCurr),
UNO_QUERY );
if( xEntryNameAccess.is() )
@@ -206,11 +206,11 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
++pCurr;
}
}
- catch (RuntimeException &)
+ catch (RuntimeException &)
{
throw;
}
- catch (Exception&)
+ catch (Exception&)
{
}
@@ -222,7 +222,7 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
aServices[0] = OUSTR("com.sun.star.comp.rendering.Canvas.VCL");
m_aAvailableImplementations.push_back( std::make_pair(OUSTR("com.sun.star.rendering.Canvas"),
aServices) );
-
+
aServices[0] = OUSTR("com.sun.star.comp.rendering.SpriteCanvas.VCL");
m_aAvailableImplementations.push_back( std::make_pair(OUSTR("com.sun.star.rendering.SpriteCanvas"),
aServices) );
@@ -286,25 +286,25 @@ Reference<XInterface> CanvasFactory::createInstanceWithContext(
//______________________________________________________________________________
Reference<XInterface> CanvasFactory::use(
OUString const & serviceName,
- Sequence<Any> const & args,
+ Sequence<Any> const & args,
Reference<XComponentContext> const & xContext ) const
{
try {
return m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext(
serviceName, args, xContext);
}
- catch (RuntimeException &)
+ catch (RuntimeException &)
{
throw;
}
- catch (Exception &)
+ catch (Exception &)
{
return Reference<XInterface>();
}
}
//______________________________________________________________________________
-void CanvasFactory::checkConfigFlag( bool& r_bFlag,
+void CanvasFactory::checkConfigFlag( bool& r_bFlag,
bool& r_CacheFlag,
const OUString& nodeName ) const
{
@@ -331,28 +331,28 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
// forcing last entry from impl list, if config flag set
bool bForceLastEntry(false);
- checkConfigFlag( bForceLastEntry,
+ checkConfigFlag( bForceLastEntry,
m_bCacheHasForcedLastImpl,
OUSTR("ForceSafeServiceImpl") );
-
+
// use anti-aliasing canvas, if config flag set (or not existing)
bool bUseAAEntry(true);
checkConfigFlag( bUseAAEntry,
m_bCacheHasUseAAEntry,
OUSTR("UseAntialiasingCanvas") );
-
+
// use accelerated canvas, if config flag set (or not existing)
bool bUseAcceleratedEntry(true);
checkConfigFlag( bUseAcceleratedEntry,
m_bCacheHasUseAcceleratedEntry,
OUSTR("UseAcceleratedCanvas") );
-
+
// try to reuse last working implementation for given service name
const CacheVector::iterator aEnd(m_aCachedImplementations.end());
CacheVector::iterator aMatch;
- if( (aMatch=std::find_if(m_aCachedImplementations.begin(),
- aEnd,
- boost::bind(&OUString::equals,
+ if( (aMatch=std::find_if(m_aCachedImplementations.begin(),
+ aEnd,
+ boost::bind(&OUString::equals,
boost::cref(serviceName),
boost::bind(
std::select1st<CachePair>(),
@@ -366,9 +366,9 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
// lookup in available service list
const AvailVector::const_iterator aAvailEnd(m_aAvailableImplementations.end());
AvailVector::const_iterator aAvailImplsMatch;
- if( (aAvailImplsMatch=std::find_if(m_aAvailableImplementations.begin(),
- aAvailEnd,
- boost::bind(&OUString::equals,
+ if( (aAvailImplsMatch=std::find_if(m_aAvailableImplementations.begin(),
+ aAvailEnd,
+ boost::bind(&OUString::equals,
boost::cref(serviceName),
boost::bind(
std::select1st<AvailPair>(),
@@ -379,9 +379,9 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
const AvailVector::const_iterator aAAEnd(m_aAAImplementations.end());
AvailVector::const_iterator aAAImplsMatch;
- if( (aAAImplsMatch=std::find_if(m_aAAImplementations.begin(),
- aAAEnd,
- boost::bind(&OUString::equals,
+ if( (aAAImplsMatch=std::find_if(m_aAAImplementations.begin(),
+ aAAEnd,
+ boost::bind(&OUString::equals,
boost::cref(serviceName),
boost::bind(
std::select1st<AvailPair>(),
@@ -392,9 +392,9 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
const AvailVector::const_iterator aAccelEnd(m_aAcceleratedImplementations.end());
AvailVector::const_iterator aAccelImplsMatch;
- if( (aAccelImplsMatch=std::find_if(m_aAcceleratedImplementations.begin(),
- aAccelEnd,
- boost::bind(&OUString::equals,
+ if( (aAccelImplsMatch=std::find_if(m_aAcceleratedImplementations.begin(),
+ aAccelEnd,
+ boost::bind(&OUString::equals,
boost::cref(serviceName),
boost::bind(
std::select1st<AvailPair>(),
@@ -419,7 +419,7 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
if( bForceLastEntry )
pCurrImpl = pEndImpl-1;
- while( pCurrImpl != pEndImpl )
+ while( pCurrImpl != pEndImpl )
{
const OUString aCurrName(pCurrImpl->trim());
@@ -428,7 +428,7 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
const bool bIsAcceleratedImpl(
std::find_if(pFirstAccelImpl,
pEndAccelImpl,
- boost::bind(&OUString::equals,
+ boost::bind(&OUString::equals,
boost::cref(aCurrName),
boost::bind(
&OUString::trim,
@@ -439,7 +439,7 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
const bool bIsAAImpl(
std::find_if(pFirstAAImpl,
pEndAAImpl,
- boost::bind(&OUString::equals,
+ boost::bind(&OUString::equals,
boost::cref(aCurrName),
boost::bind(
&OUString::trim,
@@ -456,7 +456,7 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
Reference<XInterface> xCanvas(
use( pCurrImpl->trim(), args, xContext ) );
- if(xCanvas.is())
+ if(xCanvas.is())
{
if( aMatch != aEnd )
{
@@ -467,7 +467,7 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
else
{
// new service name, add new cache entry
- m_aCachedImplementations.push_back(std::make_pair(serviceName,
+ m_aCachedImplementations.push_back(std::make_pair(serviceName,
pCurrImpl->trim()));
}
diff --git a/canvas/source/null/null_canvasbitmap.cxx b/canvas/source/null/null_canvasbitmap.cxx
index 473b5c6459d7..f157890c05b8 100644
--- a/canvas/source/null/null_canvasbitmap.cxx
+++ b/canvas/source/null/null_canvasbitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ namespace nullcanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
diff --git a/canvas/source/null/null_canvasbitmap.hxx b/canvas/source/null/null_canvasbitmap.hxx
index 65f078dd3507..cd8f4aa71ef9 100644
--- a/canvas/source/null/null_canvasbitmap.hxx
+++ b/canvas/source/null/null_canvasbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,11 +52,11 @@ namespace nullcanvas
{
typedef ::cppu::WeakComponentImplHelper3< ::com::sun::star::rendering::XBitmapCanvas,
::com::sun::star::rendering::XIntegerBitmap,
- ::com::sun::star::lang::XServiceInfo > CanvasBitmapBase_Base;
- typedef ::canvas::IntegerBitmapBase< ::canvas::BaseMutexHelper< CanvasBitmapBase_Base >,
- CanvasHelper,
+ ::com::sun::star::lang::XServiceInfo > CanvasBitmapBase_Base;
+ typedef ::canvas::IntegerBitmapBase< ::canvas::BaseMutexHelper< CanvasBitmapBase_Base >,
+ CanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasBitmap_Base;
+ ::cppu::OWeakObject > CanvasBitmap_Base;
class CanvasBitmap : public CanvasBitmap_Base,
private UsageCounter< CanvasBitmap >
@@ -66,7 +66,7 @@ namespace nullcanvas
@param rSize
Size of the bitmap
-
+
@param rDevice
Reference device, with which bitmap should be compatible
*/
@@ -84,7 +84,7 @@ namespace nullcanvas
private:
/** MUST hold here, too, since CanvasHelper only contains a
- raw pointer (without refcounting)
+ raw pointer (without refcounting)
*/
DeviceRef mpDevice;
};
diff --git a/canvas/source/null/null_canvascustomsprite.cxx b/canvas/source/null/null_canvascustomsprite.cxx
index cef8535a5c33..b9e194a26a6f 100644
--- a/canvas/source/null/null_canvascustomsprite.cxx
+++ b/canvas/source/null/null_canvascustomsprite.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ using namespace ::com::sun::star;
namespace nullcanvas
{
- CanvasCustomSprite::CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ CanvasCustomSprite::CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rRefDevice ) :
mpSpriteCanvas( rRefDevice )
{
@@ -65,7 +65,7 @@ namespace nullcanvas
maSpriteHelper.init( rSpriteSize,
rRefDevice );
}
-
+
void SAL_CALL CanvasCustomSprite::disposing()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -100,7 +100,7 @@ namespace nullcanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
}
diff --git a/canvas/source/null/null_canvascustomsprite.hxx b/canvas/source/null/null_canvascustomsprite.hxx
index 905f3513dc9e..5435ed0ed39a 100644
--- a/canvas/source/null/null_canvascustomsprite.hxx
+++ b/canvas/source/null/null_canvascustomsprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace nullcanvas
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::rendering::XCustomSprite,
::com::sun::star::rendering::XBitmapCanvas,
::com::sun::star::rendering::XIntegerBitmap,
- ::com::sun::star::lang::XServiceInfo > CanvasCustomSpriteBase_Base;
+ ::com::sun::star::lang::XServiceInfo > CanvasCustomSpriteBase_Base;
/** Mixin Sprite
Have to mixin the Sprite interface before deriving from
@@ -81,10 +81,10 @@ namespace nullcanvas
};
typedef ::canvas::CanvasCustomSpriteBase< CanvasCustomSpriteSpriteBase_Base,
- SpriteHelper,
- CanvasHelper,
+ SpriteHelper,
+ CanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > CanvasCustomSpriteBaseT;
+ ::cppu::OWeakObject > CanvasCustomSpriteBaseT;
/* Definition of CanvasCustomSprite class */
@@ -106,7 +106,7 @@ namespace nullcanvas
@param rDevice
Target DX device
*/
- CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ CanvasCustomSprite( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rRefDevice );
virtual void SAL_CALL disposing();
@@ -128,7 +128,7 @@ namespace nullcanvas
private:
/** MUST hold here, too, since CanvasHelper only contains a
- raw pointer (without refcounting)
+ raw pointer (without refcounting)
*/
SpriteCanvasRef mpSpriteCanvas;
};
diff --git a/canvas/source/null/null_canvasfont.cxx b/canvas/source/null/null_canvasfont.cxx
index 78691beed295..b9ea625ce758 100644
--- a/canvas/source/null/null_canvasfont.cxx
+++ b/canvas/source/null/null_canvasfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,9 +40,9 @@ using namespace ::com::sun::star;
namespace nullcanvas
{
- CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
- const uno::Sequence< beans::PropertyValue >& /*extraFontProperties*/,
- const geometry::Matrix2D& fontMatrix ) :
+ CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
+ const uno::Sequence< beans::PropertyValue >& /*extraFontProperties*/,
+ const geometry::Matrix2D& fontMatrix ) :
CanvasFont_Base( m_aMutex ),
maFontRequest( rFontRequest ),
maFontMatrix( fontMatrix )
@@ -54,9 +54,9 @@ namespace nullcanvas
::osl::MutexGuard aGuard( m_aMutex );
}
- uno::Reference< rendering::XTextLayout > SAL_CALL CanvasFont::createTextLayout( const rendering::StringContext& aText,
- sal_Int8 nDirection,
- sal_Int64 nRandomSeed ) throw (uno::RuntimeException)
+ uno::Reference< rendering::XTextLayout > SAL_CALL CanvasFont::createTextLayout( const rendering::StringContext& aText,
+ sal_Int8 nDirection,
+ sal_Int64 nRandomSeed ) throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -111,7 +111,7 @@ namespace nullcanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
diff --git a/canvas/source/null/null_canvasfont.hxx b/canvas/source/null/null_canvasfont.hxx
index 8e3a0f3b44c1..c4975b20f2db 100644
--- a/canvas/source/null/null_canvasfont.hxx
+++ b/canvas/source/null/null_canvasfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,18 +55,18 @@ namespace nullcanvas
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XCanvasFont,
::com::sun::star::lang::XServiceInfo > CanvasFont_Base;
- class CanvasFont : public ::comphelper::OBaseMutex,
+ class CanvasFont : public ::comphelper::OBaseMutex,
public CanvasFont_Base,
private UsageCounter< CanvasFont >,
private ::boost::noncopyable
{
public:
- typedef ::comphelper::ImplementationReference<
- CanvasFont,
+ typedef ::comphelper::ImplementationReference<
+ CanvasFont,
::com::sun::star::rendering::XCanvasFont > ImplRef;
CanvasFont( const ::com::sun::star::rendering::FontRequest& fontRequest,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
const ::com::sun::star::geometry::Matrix2D& fontMatrix );
/// Dispose all internal references
@@ -87,8 +87,8 @@ namespace nullcanvas
const ::com::sun::star::geometry::Matrix2D& getFontMatrix() const;
private:
- ::com::sun::star::rendering::FontRequest maFontRequest;
- ::com::sun::star::geometry::Matrix2D maFontMatrix;
+ ::com::sun::star::rendering::FontRequest maFontRequest;
+ ::com::sun::star::geometry::Matrix2D maFontMatrix;
};
}
diff --git a/canvas/source/null/null_canvashelper.cxx b/canvas/source/null/null_canvashelper.cxx
index f7f1958af4f0..e22f1dfdf0eb 100644
--- a/canvas/source/null/null_canvashelper.cxx
+++ b/canvas/source/null/null_canvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,172 +86,172 @@ namespace nullcanvas
{
}
- void CanvasHelper::drawPoint( const rendering::XCanvas* /*pCanvas*/,
- const geometry::RealPoint2D& /*aPoint*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/ )
+ void CanvasHelper::drawPoint( const rendering::XCanvas* /*pCanvas*/,
+ const geometry::RealPoint2D& /*aPoint*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/ )
{
}
- void CanvasHelper::drawLine( const rendering::XCanvas* /*pCanvas*/,
- const geometry::RealPoint2D& /*aPoint1*/,
- const geometry::RealPoint2D& /*aPoint2*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/ )
+ void CanvasHelper::drawLine( const rendering::XCanvas* /*pCanvas*/,
+ const geometry::RealPoint2D& /*aPoint1*/,
+ const geometry::RealPoint2D& /*aPoint2*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/ )
{
}
- void CanvasHelper::drawBezier( const rendering::XCanvas* /*pCanvas*/,
- const geometry::RealBezierSegment2D& /*aBezierSegment*/,
- const geometry::RealPoint2D& /*aEndPoint*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/ )
+ void CanvasHelper::drawBezier( const rendering::XCanvas* /*pCanvas*/,
+ const geometry::RealBezierSegment2D& /*aBezierSegment*/,
+ const geometry::RealPoint2D& /*aEndPoint*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/ )
{
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/ )
{
// TODO(P1): Provide caching here.
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokePolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokePolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO(P1): Provide caching here.
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const uno::Reference< geometry::XMapping2D >& /*xMapping*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const uno::Reference< geometry::XMapping2D >& /*xMapping*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XPolyPolygon2D > CanvasHelper::queryStrokeShapes( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const rendering::StrokeAttributes& /*strokeAttributes*/ )
+ uno::Reference< rendering::XPolyPolygon2D > CanvasHelper::queryStrokeShapes( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const rendering::StrokeAttributes& /*strokeAttributes*/ )
{
// TODO
return uno::Reference< rendering::XPolyPolygon2D >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/ )
{
// TODO(P1): Provide caching here.
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/ )
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/ )
{
// TODO(P1): Provide caching here.
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- const uno::Sequence< rendering::Texture >& /*textures*/,
- const uno::Reference< geometry::XMapping2D >& /*xMapping*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XPolyPolygon2D >& /*xPolyPolygon*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ const uno::Sequence< rendering::Texture >& /*textures*/,
+ const uno::Reference< geometry::XMapping2D >& /*xMapping*/ )
{
// TODO
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* /*pCanvas*/,
- const rendering::FontRequest& fontRequest,
- const uno::Sequence< beans::PropertyValue >& extraFontProperties,
- const geometry::Matrix2D& fontMatrix )
+ uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* /*pCanvas*/,
+ const rendering::FontRequest& fontRequest,
+ const uno::Sequence< beans::PropertyValue >& extraFontProperties,
+ const geometry::Matrix2D& fontMatrix )
{
- return uno::Reference< rendering::XCanvasFont >(
+ return uno::Reference< rendering::XCanvasFont >(
new CanvasFont(fontRequest, extraFontProperties, fontMatrix ) );
}
- uno::Sequence< rendering::FontInfo > CanvasHelper::queryAvailableFonts( const rendering::XCanvas* /*pCanvas*/,
- const rendering::FontInfo& /*aFilter*/,
- const uno::Sequence< beans::PropertyValue >& /*aFontProperties*/ )
+ uno::Sequence< rendering::FontInfo > CanvasHelper::queryAvailableFonts( const rendering::XCanvas* /*pCanvas*/,
+ const rendering::FontInfo& /*aFilter*/,
+ const uno::Sequence< beans::PropertyValue >& /*aFontProperties*/ )
{
// TODO
return uno::Sequence< rendering::FontInfo >();
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawText( const rendering::XCanvas* /*pCanvas*/,
- const rendering::StringContext& /*text*/,
- const uno::Reference< rendering::XCanvasFont >& /*xFont*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/,
- sal_Int8 /*textDirection*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawText( const rendering::XCanvas* /*pCanvas*/,
+ const rendering::StringContext& /*text*/,
+ const uno::Reference< rendering::XCanvasFont >& /*xFont*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/,
+ sal_Int8 /*textDirection*/ )
{
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawTextLayout( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XTextLayout >& xLayoutetText,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawTextLayout( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XTextLayout >& xLayoutetText,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- ENSURE_OR_THROW( xLayoutetText.is(),
+ ENSURE_OR_THROW( xLayoutetText.is(),
"CanvasHelper::drawTextLayout: layout is NULL");
- TextLayout* pTextLayout =
+ TextLayout* pTextLayout =
dynamic_cast< TextLayout* >( xLayoutetText.get() );
-
+
ENSURE_OR_THROW( pTextLayout,
"CanvasHelper::drawTextLayout(): TextLayout not compatible with this canvas" );
- pTextLayout->draw( viewState,
- renderState,
+ pTextLayout->draw( viewState,
+ renderState,
mpDevice );
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmap( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XBitmap >& /*xBitmap*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmap( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XBitmap >& /*xBitmap*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/ )
{
// TODO(P1): Provide caching here.
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XBitmap >& /*xBitmap*/,
- const rendering::ViewState& /*viewState*/,
- const rendering::RenderState& /*renderState*/ )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XBitmap >& /*xBitmap*/,
+ const rendering::ViewState& /*viewState*/,
+ const rendering::RenderState& /*renderState*/ )
{
// TODO(P1): Provide caching here.
return uno::Reference< rendering::XCachedPrimitive >(NULL);
@@ -262,14 +262,14 @@ namespace nullcanvas
return uno::Reference< rendering::XGraphicDevice >(mpDevice);
}
- void CanvasHelper::copyRect( const rendering::XCanvas* /*pCanvas*/,
- const uno::Reference< rendering::XBitmapCanvas >& /*sourceCanvas*/,
- const geometry::RealRectangle2D& /*sourceRect*/,
- const rendering::ViewState& /*sourceViewState*/,
- const rendering::RenderState& /*sourceRenderState*/,
- const geometry::RealRectangle2D& /*destRect*/,
- const rendering::ViewState& /*destViewState*/,
- const rendering::RenderState& /*destRenderState*/ )
+ void CanvasHelper::copyRect( const rendering::XCanvas* /*pCanvas*/,
+ const uno::Reference< rendering::XBitmapCanvas >& /*sourceCanvas*/,
+ const geometry::RealRectangle2D& /*sourceRect*/,
+ const rendering::ViewState& /*sourceViewState*/,
+ const rendering::RenderState& /*sourceRenderState*/,
+ const geometry::RealRectangle2D& /*destRect*/,
+ const rendering::ViewState& /*destViewState*/,
+ const rendering::RenderState& /*destRenderState*/ )
{
// TODO(F2): copyRect NYI
}
@@ -282,33 +282,33 @@ namespace nullcanvas
return ::basegfx::unotools::integerSize2DFromB2ISize( maSize );
}
- uno::Reference< rendering::XBitmap > CanvasHelper::getScaledBitmap( const geometry::RealSize2D& /*newSize*/,
- sal_Bool /*beFast*/ )
+ uno::Reference< rendering::XBitmap > CanvasHelper::getScaledBitmap( const geometry::RealSize2D& /*newSize*/,
+ sal_Bool /*beFast*/ )
{
// TODO(F1):
return uno::Reference< rendering::XBitmap >();
}
- uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerRectangle2D& /*rect*/ )
{
// TODO
return uno::Sequence< sal_Int8 >();
}
- void CanvasHelper::setData( const uno::Sequence< sal_Int8 >& /*data*/,
- const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
- const geometry::IntegerRectangle2D& /*rect*/ )
+ void CanvasHelper::setData( const uno::Sequence< sal_Int8 >& /*data*/,
+ const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ const geometry::IntegerRectangle2D& /*rect*/ )
{
}
- void CanvasHelper::setPixel( const uno::Sequence< sal_Int8 >& /*color*/,
- const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ void CanvasHelper::setPixel( const uno::Sequence< sal_Int8 >& /*color*/,
+ const rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerPoint2D& /*pos*/ )
{
}
- uno::Sequence< sal_Int8 > CanvasHelper::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
+ uno::Sequence< sal_Int8 > CanvasHelper::getPixel( rendering::IntegerBitmapLayout& /*bitmapLayout*/,
const geometry::IntegerPoint2D& /*pos*/ )
{
return uno::Sequence< sal_Int8 >();
diff --git a/canvas/source/null/null_canvashelper.hxx b/canvas/source/null/null_canvashelper.hxx
index 383e47c5ffcd..b94768fb36a0 100644
--- a/canvas/source/null/null_canvashelper.hxx
+++ b/canvas/source/null/null_canvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,170 +82,170 @@ namespace nullcanvas
// XCanvas (only providing, not implementing the
// interface. Also note subtle method parameter differences)
void clear();
- void drawPoint( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealPoint2D& aPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
+ void drawPoint( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealPoint2D& aPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- void drawLine( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- void drawBezier( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokePolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ void drawLine( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ void drawBezier( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokePolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokeTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokeTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokeTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
- queryStrokeShapes( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokeTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::geometry::XMapping2D >& xMapping,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
+ queryStrokeShapes( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::geometry::XMapping2D >& xMapping );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL
- createFont( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::FontRequest& fontRequest,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& extraFontProperties,
- const ::com::sun::star::geometry::Matrix2D& fontMatrix );
-
- ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo >
- queryAvailableFonts( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::FontInfo& aFilter,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& aFontProperties );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawText( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::rendering::StringContext& text,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvasFont >& xFont,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- sal_Int8 textDirection );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawTextLayout( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XTextLayout >& layoutetText,
- const ::com::sun::star::rendering::ViewState& viewState,
+ createFont( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::FontRequest& fontRequest,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::geometry::Matrix2D& fontMatrix );
+
+ ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo >
+ queryAvailableFonts( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::FontInfo& aFilter,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& aFontProperties );
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawText( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::rendering::StringContext& text,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvasFont >& xFont,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ sal_Int8 textDirection );
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawTextLayout( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XTextLayout >& layoutetText,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawBitmap( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawBitmap( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawBitmapModulated( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawBitmapModulated( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >
getDevice();
// BitmapCanvasHelper functionality
// ================================
- void copyRect( const ::com::sun::star::rendering::XCanvas* pCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
- const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
- const ::com::sun::star::rendering::ViewState& sourceViewState,
- const ::com::sun::star::rendering::RenderState& sourceRenderState,
- const ::com::sun::star::geometry::RealRectangle2D& destRect,
- const ::com::sun::star::rendering::ViewState& destViewState,
- const ::com::sun::star::rendering::RenderState& destRenderState );
-
+ void copyRect( const ::com::sun::star::rendering::XCanvas* pCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
+ const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
+ const ::com::sun::star::rendering::ViewState& sourceViewState,
+ const ::com::sun::star::rendering::RenderState& sourceRenderState,
+ const ::com::sun::star::geometry::RealRectangle2D& destRect,
+ const ::com::sun::star::rendering::ViewState& destViewState,
+ const ::com::sun::star::rendering::RenderState& destRenderState );
+
::com::sun::star::geometry::IntegerSize2D getSize();
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
- getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
- sal_Bool beFast );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
+ getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
+ sal_Bool beFast );
- ::com::sun::star::uno::Sequence< sal_Int8 >
- getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ ::com::sun::star::uno::Sequence< sal_Int8 >
+ getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerRectangle2D& rect );
- void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerRectangle2D& rect );
- void setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ void setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerPoint2D& pos );
- ::com::sun::star::uno::Sequence< sal_Int8 >
- getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ ::com::sun::star::uno::Sequence< sal_Int8 >
+ getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerPoint2D& pos );
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapPalette > getPalette();
::com::sun::star::rendering::IntegerBitmapLayout getMemoryLayout();
-
+
// Flush drawing queue to screen
- void flush() const;
+ void flush() const;
/** Called from XCanvas base classes, to notify that content
is _about_ to change
@@ -264,7 +264,7 @@ namespace nullcanvas
private:
/// Current size of the output surface in pixel
- ::basegfx::B2ISize maSize;
+ ::basegfx::B2ISize maSize;
/// When true, content is able to represent alpha
bool mbHaveAlpha;
diff --git a/canvas/source/null/null_devicehelper.cxx b/canvas/source/null/null_devicehelper.cxx
index 7d5748d2a3cf..e35c2023f310 100644
--- a/canvas/source/null/null_devicehelper.cxx
+++ b/canvas/source/null/null_devicehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,8 +59,8 @@ namespace nullcanvas
{
}
- void DeviceHelper::init( SpriteCanvas& rSpriteCanvas,
- const ::basegfx::B2ISize& rSize,
+ void DeviceHelper::init( SpriteCanvas& rSpriteCanvas,
+ const ::basegfx::B2ISize& rSize,
bool bFullscreen )
{
mpSpriteCanvas = &rSpriteCanvas;
@@ -84,35 +84,35 @@ namespace nullcanvas
return geometry::RealSize2D( 210, 280 );
}
- uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
+ uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
{
// disposed?
if( !mpSpriteCanvas )
return uno::Reference< rendering::XLinePolyPolygon2D >(); // we're disposed
- return uno::Reference< rendering::XLinePolyPolygon2D >(
- new ::basegfx::unotools::UnoPolyPolygon(
+ return uno::Reference< rendering::XLinePolyPolygon2D >(
+ new ::basegfx::unotools::UnoPolyPolygon(
::basegfx::unotools::polyPolygonFromPoint2DSequenceSequence( points )));
}
- uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
+ uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
{
// disposed?
if( !mpSpriteCanvas )
return uno::Reference< rendering::XBezierPolyPolygon2D >(); // we're disposed
- return uno::Reference< rendering::XBezierPolyPolygon2D >(
- new ::basegfx::unotools::UnoPolyPolygon(
+ return uno::Reference< rendering::XBezierPolyPolygon2D >(
+ new ::basegfx::unotools::UnoPolyPolygon(
::basegfx::unotools::polyPolygonFromBezier2DSequenceSequence( points ) ) );
}
- uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& size )
+ uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& size )
{
// disposed?
if( !mpSpriteCanvas )
@@ -122,19 +122,19 @@ namespace nullcanvas
new CanvasBitmap(
::basegfx::unotools::b2ISizeFromIntegerSize2D( size ),
mpSpriteCanvas,
- false ));
+ false ));
}
- uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& /*size*/ )
+ uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& /*size*/ )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
- uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& size )
+ uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& size )
{
// disposed?
if( !mpSpriteCanvas )
@@ -144,12 +144,12 @@ namespace nullcanvas
new CanvasBitmap(
::basegfx::unotools::b2ISizeFromIntegerSize2D( size ),
mpSpriteCanvas,
- true ));
+ true ));
}
- uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
- const geometry::IntegerSize2D& /*size*/ )
+ uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& /*rDevice*/,
+ const geometry::IntegerSize2D& /*size*/ )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
@@ -165,7 +165,7 @@ namespace nullcanvas
// TODO(F3): offer fullscreen mode the XCanvas way
return false;
}
-
+
::sal_Int32 DeviceHelper::createBuffers( ::sal_Int32 /*nBuffers*/ )
{
// TODO(F3): implement XBufferStrategy interface. For now, we
@@ -208,19 +208,19 @@ namespace nullcanvas
{
return uno::Any();
}
-
- namespace
- {
+
+ namespace
+ {
struct DeviceColorSpace: public rtl::StaticWithInit<uno::Reference<rendering::XColorSpace>,
- DeviceColorSpace>
+ DeviceColorSpace>
{
uno::Reference<rendering::XColorSpace> operator()()
{
return vcl::unotools::createStandardColorSpace();
}
- };
+ };
}
-
+
uno::Reference<rendering::XColorSpace> DeviceHelper::getColorSpace() const
{
// always the same
diff --git a/canvas/source/null/null_devicehelper.hxx b/canvas/source/null/null_devicehelper.hxx
index bd6be098b340..33560778d52d 100644
--- a/canvas/source/null/null_devicehelper.hxx
+++ b/canvas/source/null/null_devicehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,8 +48,8 @@ namespace nullcanvas
public:
DeviceHelper();
- void init( SpriteCanvas& rSpriteCanvas,
- const ::basegfx::B2ISize& rSize,
+ void init( SpriteCanvas& rSpriteCanvas,
+ const ::basegfx::B2ISize& rSize,
bool bFullscreen );
/// Dispose all internal references
@@ -58,36 +58,36 @@ namespace nullcanvas
// XWindowGraphicDevice
::com::sun::star::geometry::RealSize2D getPhysicalResolution();
::com::sun::star::geometry::RealSize2D getPhysicalSize();
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > >& points );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealBezierSegment2D > >& points );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
sal_Bool hasFullScreenMode( );
sal_Bool enterFullScreenMode( sal_Bool bEnter );
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
- void destroyBuffers( );
+ void destroyBuffers( );
::sal_Bool showBuffer( bool bIsVisible, ::sal_Bool bUpdateAll );
::sal_Bool switchBuffer( bool bIsVisible, ::sal_Bool bUpdateAll );
::com::sun::star::uno::Any isAccelerated() const;
::com::sun::star::uno::Any getDeviceHandle() const;
::com::sun::star::uno::Any getSurfaceHandle() const;
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XColorSpace> getColorSpace() const;
void notifySizeUpdate( const ::com::sun::star::awt::Rectangle& rBounds );
@@ -99,7 +99,7 @@ namespace nullcanvas
private:
/// Pointer to sprite canvas (owner of this helper), needed to create bitmaps
- SpriteCanvas* mpSpriteCanvas;
+ SpriteCanvas* mpSpriteCanvas;
::basegfx::B2ISize maSize;
bool mbFullScreen;
};
diff --git a/canvas/source/null/null_spritecanvas.cxx b/canvas/source/null/null_spritecanvas.cxx
index 82b6144707eb..3e98e51a746a 100644
--- a/canvas/source/null/null_spritecanvas.cxx
+++ b/canvas/source/null/null_spritecanvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@ namespace nullcanvas
// containing a pointer to a valid window, on which to output
// At index 2, we expect the current window bound rect
ENSURE_ARG_OR_THROW( maArguments.getLength() >= 4 &&
- maArguments[1].getValueTypeClass() == uno::TypeClass_LONG,
+ maArguments[1].getValueTypeClass() == uno::TypeClass_LONG,
"SpriteCanvas::initialize: wrong number of arguments, or wrong types" );
awt::Rectangle aRect;
diff --git a/canvas/source/null/null_spritecanvas.hxx b/canvas/source/null/null_spritecanvas.hxx
index 67f14b80b062..c10b5d0a61e4 100644
--- a/canvas/source/null/null_spritecanvas.hxx
+++ b/canvas/source/null/null_spritecanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,11 +62,11 @@ namespace nullcanvas
::com::sun::star::rendering::XBufferController,
::com::sun::star::awt::XWindowListener,
::com::sun::star::beans::XPropertySet,
- ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base;
+ ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base;
typedef ::canvas::BufferedGraphicDeviceBase< ::canvas::BaseMutexHelper< WindowGraphicDeviceBase_Base >,
- DeviceHelper,
+ DeviceHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > SpriteCanvasBase_Base;
+ ::cppu::OWeakObject > SpriteCanvasBase_Base;
/** Mixin SpriteSurface
Have to mixin the SpriteSurface before deriving from
@@ -90,9 +90,9 @@ namespace nullcanvas
};
typedef ::canvas::SpriteCanvasBase< SpriteCanvasBaseSpriteSurface_Base,
- SpriteCanvasHelper,
+ SpriteCanvasHelper,
::osl::MutexGuard,
- ::cppu::OWeakObject > SpriteCanvasBaseT;
+ ::cppu::OWeakObject > SpriteCanvasBaseT;
/** Product of this component's factory.
@@ -107,9 +107,9 @@ namespace nullcanvas
private UsageCounter< SpriteCanvas >
{
public:
- SpriteCanvas( const ::com::sun::star::uno::Sequence<
+ SpriteCanvas( const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Any >& aArguments,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& rxContext );
void initialize();
@@ -126,7 +126,7 @@ namespace nullcanvas
// Classname Base doing refcounting Base implementing the XComponent interface
// | | |
// V V V
- DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( SpriteCanvas, WindowGraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
+ DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( SpriteCanvas, WindowGraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
// XBufferController (partial)
virtual ::sal_Bool SAL_CALL showBuffer( ::sal_Bool bUpdateAll ) throw (::com::sun::star::uno::RuntimeException);
diff --git a/canvas/source/null/null_spritecanvashelper.cxx b/canvas/source/null/null_spritecanvashelper.cxx
index 6f9f35d854eb..3f1b9ce6a4ca 100644
--- a/canvas/source/null/null_spritecanvashelper.cxx
+++ b/canvas/source/null/null_spritecanvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#include <canvas/verbosetrace.hxx>
#include <canvas/canvastools.hxx>
-#include <comphelper/scopeguard.hxx>
+#include <comphelper/scopeguard.hxx>
#include <basegfx/range/b2drectangle.hxx>
#include <basegfx/tools/canvastools.hxx>
@@ -62,23 +62,23 @@ namespace nullcanvas
CanvasHelper::init( rSize, rDevice, bHasAlpha );
}
-
+
void SpriteCanvasHelper::disposing()
{
mpRedrawManager = NULL;
// forward to base
- CanvasHelper::disposing();
+ CanvasHelper::disposing();
}
- uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation(
+ uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation(
const uno::Reference< rendering::XAnimation >& /*animation*/ )
{
return uno::Reference< rendering::XAnimatedSprite >();
}
- uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps(
- const uno::Sequence< uno::Reference< rendering::XBitmap > >& /*animationBitmaps*/,
+ uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps(
+ const uno::Sequence< uno::Reference< rendering::XBitmap > >& /*animationBitmaps*/,
sal_Int8 /*interpolationMode*/ )
{
return uno::Reference< rendering::XAnimatedSprite >();
@@ -89,8 +89,8 @@ namespace nullcanvas
if( !mpRedrawManager )
return uno::Reference< rendering::XCustomSprite >(); // we're disposed
- return uno::Reference< rendering::XCustomSprite >(
- new CanvasCustomSprite( spriteSize,
+ return uno::Reference< rendering::XCustomSprite >(
+ new CanvasCustomSprite( spriteSize,
mpDevice ) );
}
@@ -112,23 +112,23 @@ namespace nullcanvas
// TODO
}
- void SpriteCanvasHelper::scrollUpdate( const ::basegfx::B2DRange& /*rMoveStart*/,
- const ::basegfx::B2DRange& /*rMoveEnd*/,
+ void SpriteCanvasHelper::scrollUpdate( const ::basegfx::B2DRange& /*rMoveStart*/,
+ const ::basegfx::B2DRange& /*rMoveEnd*/,
const ::canvas::SpriteRedrawManager::UpdateArea& /*rUpdateArea*/ )
{
// TODO
}
-
+
void SpriteCanvasHelper::opaqueUpdate( const ::canvas::SpriteRedrawManager::UpdateArea& /*rUpdateArea*/ )
{
// TODO
}
-
+
void SpriteCanvasHelper::genericUpdate( const ::canvas::SpriteRedrawManager::UpdateArea& /*rUpdateArea*/ )
{
// TODO
}
-
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/null/null_spritecanvashelper.hxx b/canvas/source/null/null_spritecanvashelper.hxx
index 596bb17c3569..c3c6aa892053 100644
--- a/canvas/source/null/null_spritecanvashelper.hxx
+++ b/canvas/source/null/null_spritecanvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,28 +54,28 @@ namespace nullcanvas
SpriteCanvas& rDevice,
const ::basegfx::B2ISize& rSize,
bool bHasAlpha );
-
+
/// Dispose all internal references
void disposing();
// XSpriteCanvas
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromAnimation(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromAnimation(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimation >& animation );
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromBitmaps(
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromBitmaps(
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
sal_Int8 interpolationMode );
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCustomSprite > createCustomSprite(
+
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCustomSprite > createCustomSprite(
const ::com::sun::star::geometry::RealSize2D& spriteSize );
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSprite > createClonedSprite(
+
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSprite > createClonedSprite(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite >& original );
/** Actually perform the screen update
@@ -119,9 +119,9 @@ namespace nullcanvas
All info necessary, should rMoveStart be partially or
fully outside the outdev
*/
- void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
- const ::basegfx::B2DRange& rMoveEnd,
- const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
+ void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
+ const ::basegfx::B2DRange& rMoveEnd,
+ const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
void opaqueUpdate( const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
@@ -129,7 +129,7 @@ namespace nullcanvas
private:
/// Set from the SpriteCanvas: instance coordinating sprite redraw
- ::canvas::SpriteRedrawManager* mpRedrawManager;
+ ::canvas::SpriteRedrawManager* mpRedrawManager;
};
}
diff --git a/canvas/source/null/null_spritehelper.cxx b/canvas/source/null/null_spritehelper.cxx
index 8e2c614d65ac..e0370396827e 100644
--- a/canvas/source/null/null_spritehelper.cxx
+++ b/canvas/source/null/null_spritehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,9 +63,9 @@ namespace nullcanvas
mbTextureDirty( true )
{
}
-
- void SpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
- const SpriteCanvasRef& rSpriteCanvas )
+
+ void SpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
+ const SpriteCanvasRef& rSpriteCanvas )
{
ENSURE_OR_THROW( rSpriteCanvas.get(),
"SpriteHelper::init(): Invalid device, sprite canvas or surface" );
diff --git a/canvas/source/null/null_spritehelper.hxx b/canvas/source/null/null_spritehelper.hxx
index 10762aea0204..3c50bc7c9341 100644
--- a/canvas/source/null/null_spritehelper.hxx
+++ b/canvas/source/null/null_spritehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,8 +79,8 @@ namespace nullcanvas
@param bShowSpriteBounds
When true, little debug bound rects for sprites are shown
*/
- void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
- const SpriteCanvasRef& rSpriteCanvas );
+ void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
+ const SpriteCanvasRef& rSpriteCanvas );
void disposing();
@@ -92,13 +92,13 @@ namespace nullcanvas
dirty or not. If texture was updated, set to false
*/
void redraw( bool& io_bSurfaceDirty ) const;
-
+
private:
- virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
+ virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const;
- SpriteCanvasRef mpSpriteCanvas;
+ SpriteCanvasRef mpSpriteCanvas;
mutable bool mbTextureDirty; // when true, texture needs update
};
}
diff --git a/canvas/source/null/null_textlayout.cxx b/canvas/source/null/null_textlayout.cxx
index 6b51c01d90ed..9b3ec566ad2a 100644
--- a/canvas/source/null/null_textlayout.cxx
+++ b/canvas/source/null/null_textlayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,10 +44,10 @@ using namespace ::com::sun::star;
namespace nullcanvas
{
- TextLayout::TextLayout( const rendering::StringContext& aText,
- sal_Int8 nDirection,
- sal_Int64 /*nRandomSeed*/,
- const CanvasFont::ImplRef& rFont ) :
+ TextLayout::TextLayout( const rendering::StringContext& aText,
+ sal_Int8 nDirection,
+ sal_Int64 /*nRandomSeed*/,
+ const CanvasFont::ImplRef& rFont ) :
TextLayout_Base( m_aMutex ),
maText( aText ),
maLogicalAdvancements(),
@@ -55,7 +55,7 @@ namespace nullcanvas
mnTextDirection( nDirection )
{
}
-
+
TextLayout::~TextLayout()
{
}
@@ -144,7 +144,7 @@ namespace nullcanvas
return 0.0;
}
- double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& /*aNextLayouts*/,
+ double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& /*aNextLayouts*/,
double /*nSize*/ ) throw (lang::IllegalArgumentException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -161,7 +161,7 @@ namespace nullcanvas
return rendering::TextHit();
}
- rendering::Caret SAL_CALL TextLayout::getCaret( sal_Int32 /*nInsertionIndex*/,
+ rendering::Caret SAL_CALL TextLayout::getCaret( sal_Int32 /*nInsertionIndex*/,
sal_Bool /*bExcludeLigatures*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -170,8 +170,8 @@ namespace nullcanvas
return rendering::Caret();
}
- sal_Int32 SAL_CALL TextLayout::getNextInsertionIndex( sal_Int32 /*nStartIndex*/,
- sal_Int32 /*nCaretAdvancement*/,
+ sal_Int32 SAL_CALL TextLayout::getNextInsertionIndex( sal_Int32 /*nStartIndex*/,
+ sal_Int32 /*nCaretAdvancement*/,
sal_Bool /*bExcludeLigatures*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -180,7 +180,7 @@ namespace nullcanvas
return 0;
}
- uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryVisualHighlighting( sal_Int32 /*nStartIndex*/,
+ uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryVisualHighlighting( sal_Int32 /*nStartIndex*/,
sal_Int32 /*nEndIndex*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -189,7 +189,7 @@ namespace nullcanvas
return uno::Reference< rendering::XPolyPolygon2D >();
}
- uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryLogicalHighlighting( sal_Int32 /*nStartIndex*/,
+ uno::Reference< rendering::XPolyPolygon2D > SAL_CALL TextLayout::queryLogicalHighlighting( sal_Int32 /*nStartIndex*/,
sal_Int32 /*nEndIndex*/ ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -226,10 +226,10 @@ namespace nullcanvas
return maText;
}
-
- bool TextLayout::draw( const rendering::ViewState& /*rViewState*/,
- const rendering::RenderState& /*rRenderState*/,
- const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/ ) const
+
+ bool TextLayout::draw( const rendering::ViewState& /*rViewState*/,
+ const rendering::RenderState& /*rRenderState*/,
+ const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/ ) const
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -256,7 +256,7 @@ namespace nullcanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
}
diff --git a/canvas/source/null/null_textlayout.hxx b/canvas/source/null/null_textlayout.hxx
index 7c3c47570223..521fab20820f 100644
--- a/canvas/source/null/null_textlayout.hxx
+++ b/canvas/source/null/null_textlayout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,14 +50,14 @@ namespace nullcanvas
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XTextLayout,
::com::sun::star::lang::XServiceInfo > TextLayout_Base;
- class TextLayout : public ::comphelper::OBaseMutex,
+ class TextLayout : public ::comphelper::OBaseMutex,
public TextLayout_Base,
private UsageCounter< TextLayout >,
private ::boost::noncopyable
{
public:
- TextLayout( const ::com::sun::star::rendering::StringContext& aText,
- sal_Int8 nDirection,
+ TextLayout( const ::com::sun::star::rendering::StringContext& aText,
+ sal_Int8 nDirection,
sal_Int64 nRandomSeed,
const CanvasFont::ImplRef& rFont );
@@ -82,15 +82,15 @@ namespace nullcanvas
virtual sal_Int8 SAL_CALL getMainTextDirection( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL getFont( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::rendering::StringContext SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException);
-
+
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException );
- bool draw( const ::com::sun::star::rendering::ViewState& rViewState,
+ bool draw( const ::com::sun::star::rendering::ViewState& rViewState,
const ::com::sun::star::rendering::RenderState& rRenderState,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice ) const;
protected:
diff --git a/canvas/source/null/null_usagecounter.hxx b/canvas/source/null/null_usagecounter.hxx
index 9225dd80237a..ab8085824f79 100644
--- a/canvas/source/null/null_usagecounter.hxx
+++ b/canvas/source/null/null_usagecounter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ namespace nullcanvas
~UsageCounter()
{
const sal_Int32 nCount( osl_decrementInterlockedCount( &s_nCount ) );
-
+
if( !nCount )
{
OSL_TRACE( "%s, last instance deleted.\n",
diff --git a/canvas/source/null/sprite.hxx b/canvas/source/null/sprite.hxx
index 56a38be96914..97eb1bfc621c 100644
--- a/canvas/source/null/sprite.hxx
+++ b/canvas/source/null/sprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/simplecanvas/simplecanvasimpl.cxx b/canvas/source/simplecanvas/simplecanvasimpl.cxx
index f41ee45269f2..fef1ab8ea162 100644
--- a/canvas/source/simplecanvas/simplecanvasimpl.cxx
+++ b/canvas/source/simplecanvas/simplecanvasimpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,16 +57,16 @@ using namespace canvas;
namespace
{
- inline uno::Sequence< double > color2Sequence( sal_Int32 const& nColor )
+ inline uno::Sequence< double > color2Sequence( sal_Int32 const& nColor )
{
// TODO(F3): Color management
uno::Sequence< double > aRes( 4 );
-
- aRes[0] = static_cast<sal_uInt8>( (nColor&0xFF000000U) >> 24U ) / 255.0;
- aRes[1] = static_cast<sal_uInt8>( (nColor&0x00FF0000U) >> 16U ) / 255.0;
- aRes[2] = static_cast<sal_uInt8>( (nColor&0x0000FF00U) >> 8U ) / 255.0;
- aRes[3] = static_cast<sal_uInt8>( (nColor&0x000000FFU) ) / 255.0;
-
+
+ aRes[0] = static_cast<sal_uInt8>( (nColor&0xFF000000U) >> 24U ) / 255.0;
+ aRes[1] = static_cast<sal_uInt8>( (nColor&0x00FF0000U) >> 16U ) / 255.0;
+ aRes[2] = static_cast<sal_uInt8>( (nColor&0x0000FF00U) >> 8U ) / 255.0;
+ aRes[3] = static_cast<sal_uInt8>( (nColor&0x000000FFU) ) / 255.0;
+
return aRes;
}
@@ -86,7 +86,7 @@ namespace
uno::Reference< rendering::XPolyPolygon2D > xRes(
xDevice->createCompatibleLinePolyPolygon( sequenceSequence ),
uno::UNO_QUERY );
- if( xRes.is() )
+ if( xRes.is() )
xRes->setClosed( 0, sal_True );
return xRes;
}
@@ -118,7 +118,7 @@ namespace
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XSimpleCanvas,
- ::com::sun::star::lang::XServiceName > SimpleCanvasBase;
+ ::com::sun::star::lang::XServiceName > SimpleCanvasBase;
class SimpleCanvasImpl : private cppu::BaseMutex,
public SimpleCanvasBase
@@ -130,7 +130,7 @@ namespace
}
rendering::RenderState createStrokingRenderState() const
- {
+ {
return rendering::RenderState(maRenderState.m_aTransformation,
*maRenderState.m_aRectClip,
*maRenderState.m_aPenColor,
@@ -143,7 +143,7 @@ namespace
}
rendering::RenderState createFillingRenderState() const
- {
+ {
return rendering::RenderState(maRenderState.m_aTransformation,
*maRenderState.m_aRectClip,
*maRenderState.m_aFillColor,
@@ -174,7 +174,7 @@ namespace
mxCanvas( grabCanvas(aArguments) ),
maFont(boost::bind( &rendering::XCanvas::createFont,
boost::cref(mxCanvas),
- _1,
+ _1,
uno::Sequence< beans::PropertyValue >(),
geometry::Matrix2D() )),
maViewState(),
@@ -193,18 +193,18 @@ namespace
}
// Ifc XSimpleCanvas
- virtual void SAL_CALL selectFont( const ::rtl::OUString& sFontName,
- double size,
- ::sal_Bool bold,
+ virtual void SAL_CALL selectFont( const ::rtl::OUString& sFontName,
+ double size,
+ ::sal_Bool bold,
::sal_Bool italic ) throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
-
+
maFont->FontDescription.FamilyName = sFontName;
maFont->CellSize = size;
- maFont->FontDescription.FontDescription.Weight =
+ maFont->FontDescription.FontDescription.Weight =
bold ? rendering::PanoseWeight::BOLD : rendering::PanoseWeight::MEDIUM;
- maFont->FontDescription.FontDescription.Letterform =
+ maFont->FontDescription.FontDescription.Letterform =
italic ? rendering::PanoseLetterForm::OBLIQUE_CONTACT : rendering::PanoseLetterForm::ANYTHING;
}
@@ -240,7 +240,7 @@ namespace
createFillingRenderState());
}
- virtual void SAL_CALL drawLine( const geometry::RealPoint2D& aStartPoint,
+ virtual void SAL_CALL drawLine( const geometry::RealPoint2D& aStartPoint,
const geometry::RealPoint2D& aEndPoint ) throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -281,8 +281,8 @@ namespace
createStrokingRenderState());
}
- virtual void SAL_CALL drawText( const rendering::StringContext& aText,
- const geometry::RealPoint2D& aOutPos,
+ virtual void SAL_CALL drawText( const rendering::StringContext& aText,
+ const geometry::RealPoint2D& aOutPos,
::sal_Int8 nTextDirection ) throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -297,7 +297,7 @@ namespace
nTextDirection);
}
- virtual void SAL_CALL drawBitmap( const uno::Reference< rendering::XBitmap >& xBitmap,
+ virtual void SAL_CALL drawBitmap( const uno::Reference< rendering::XBitmap >& xBitmap,
const geometry::RealPoint2D& aLeftTop ) throw (uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -380,7 +380,7 @@ namespace
uno::Reference<rendering::XCanvas> mxCanvas;
SimpleFont maFont;
- rendering::ViewState maViewState;
+ rendering::ViewState maViewState;
SimpleRenderState maRenderState;
};
diff --git a/canvas/source/tools/cachedprimitivebase.cxx b/canvas/source/tools/cachedprimitivebase.cxx
index ce8ce1d4ece6..fcdcffbc924c 100644
--- a/canvas/source/tools/cachedprimitivebase.cxx
+++ b/canvas/source/tools/cachedprimitivebase.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,9 +45,9 @@ using namespace ::com::sun::star;
namespace canvas
{
- CachedPrimitiveBase::CachedPrimitiveBase( const rendering::ViewState& rUsedViewState,
- const uno::Reference< rendering::XCanvas >& rTarget,
- bool bFailForChangedViewTransform ) :
+ CachedPrimitiveBase::CachedPrimitiveBase( const rendering::ViewState& rUsedViewState,
+ const uno::Reference< rendering::XCanvas >& rTarget,
+ bool bFailForChangedViewTransform ) :
CachedPrimitiveBase_Base( m_aMutex ),
maUsedViewState( rUsedViewState ),
mxTarget( rTarget ),
@@ -72,9 +72,9 @@ namespace canvas
::basegfx::B2DHomMatrix aUsedTransformation;
::basegfx::B2DHomMatrix aNewTransformation;
- ::basegfx::unotools::homMatrixFromAffineMatrix( aUsedTransformation,
+ ::basegfx::unotools::homMatrixFromAffineMatrix( aUsedTransformation,
maUsedViewState.AffineTransform );
- ::basegfx::unotools::homMatrixFromAffineMatrix( aNewTransformation,
+ ::basegfx::unotools::homMatrixFromAffineMatrix( aNewTransformation,
aState.AffineTransform );
const bool bSameViewTransforms( aUsedTransformation == aNewTransformation );
@@ -87,9 +87,9 @@ namespace canvas
return rendering::RepaintResult::FAILED;
}
- return doRedraw( aState,
- maUsedViewState,
- mxTarget,
+ return doRedraw( aState,
+ maUsedViewState,
+ mxTarget,
bSameViewTransforms );
}
@@ -107,7 +107,7 @@ namespace canvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
}
diff --git a/canvas/source/tools/canvascustomspritehelper.cxx b/canvas/source/tools/canvascustomspritehelper.cxx
index f9e84acfdfe0..0c7a3e55a2d7 100644
--- a/canvas/source/tools/canvascustomspritehelper.cxx
+++ b/canvas/source/tools/canvascustomspritehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ namespace canvas
maCurrClipBounds.reset();
mbIsCurrClipRectangle = true;
}
- else
+ else
{
const sal_Int32 nNumClipPolygons( mxClipPoly->getNumberOfPolygons() );
@@ -78,14 +78,14 @@ namespace canvas
const ::basegfx::B2DRectangle aBounds( 0.0, 0.0,
maSize.getX(),
maSize.getY() );
-
+
// rectangular area which is actually covered by the sprite.
// coordinates are relative to the sprite origin.
::basegfx::B2DRectangle aSpriteRectPixel;
::canvas::tools::calcTransformedRectBounds( aSpriteRectPixel,
aBounds,
maTransform );
-
+
// aClipBoundsA = new clip bound rect, intersected
// with sprite area
::basegfx::B2DRectangle aClipBoundsA(rClipBounds);
@@ -102,9 +102,9 @@ namespace canvas
{
// new clip could be a single rectangle - check
// that now:
- const bool bNewClipIsRect(
+ const bool bNewClipIsRect(
::basegfx::tools::isRectangle( aClipPath.getB2DPolygon(0) ) );
-
+
// both new and old clip are truly rectangles
// - can now take the optimized path
const bool bUseOptimizedUpdate( bNewClipIsRect &&
@@ -137,14 +137,14 @@ namespace canvas
// translate this area to the final position,
// coordinates need to be relative to the
// spritecanvas.
- VectorOfRects::const_iterator aCurr( aClipDifferences.begin() );
+ VectorOfRects::const_iterator aCurr( aClipDifferences.begin() );
const VectorOfRects::const_iterator aEnd( aClipDifferences.end() );
while( aCurr != aEnd )
{
mpSpriteCanvas->updateSprite(
- rSprite,
+ rSprite,
maPosition,
- ::basegfx::B2DRectangle(
+ ::basegfx::B2DRectangle(
maPosition + aCurr->getMinimum(),
maPosition + aCurr->getMaximum() ) );
++aCurr;
@@ -155,7 +155,7 @@ namespace canvas
}
}
}
-
+
// caller needs to perform update calls
return false;
}
@@ -181,15 +181,15 @@ namespace canvas
{
}
- void CanvasCustomSpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
- const SpriteSurface::Reference& rOwningSpriteCanvas )
+ void CanvasCustomSpriteHelper::init( const geometry::RealSize2D& rSpriteSize,
+ const SpriteSurface::Reference& rOwningSpriteCanvas )
{
ENSURE_OR_THROW( rOwningSpriteCanvas.get(),
"CanvasCustomSpriteHelper::init(): Invalid owning sprite canvas" );
mpSpriteCanvas = rOwningSpriteCanvas;
maSize.setX( ::std::max( 1.0,
- ceil( rSpriteSize.Width ) ) ); // round up to nearest int,
+ ceil( rSpriteSize.Width ) ) ); // round up to nearest int,
// enforce sprite to have at
// least (1,1) pixel size
maSize.setY( ::std::max( 1.0,
@@ -207,10 +207,10 @@ namespace canvas
mbIsContentFullyOpaque = false;
}
- void CanvasCustomSpriteHelper::checkDrawBitmap( const Sprite::Reference& rSprite,
- const uno::Reference< rendering::XBitmap >& xBitmap,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasCustomSpriteHelper::checkDrawBitmap( const Sprite::Reference& rSprite,
+ const uno::Reference< rendering::XBitmap >& xBitmap,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
// check whether bitmap is non-alpha, and whether its
// transformed size covers the whole sprite.
@@ -230,7 +230,7 @@ namespace canvas
rInputSize.Width,
rInputSize.Height ),
::canvas::tools::mergeViewAndRenderTransform(aTransform,
- viewState,
+ viewState,
renderState) ) )
{
// bitmap is opaque and will fully cover the sprite,
@@ -240,8 +240,8 @@ namespace canvas
}
}
- void CanvasCustomSpriteHelper::setAlpha( const Sprite::Reference& rSprite,
- double alpha )
+ void CanvasCustomSpriteHelper::setAlpha( const Sprite::Reference& rSprite,
+ double alpha )
{
if( !mpSpriteCanvas.get() )
return; // we're disposed
@@ -261,27 +261,27 @@ namespace canvas
}
}
- void CanvasCustomSpriteHelper::move( const Sprite::Reference& rSprite,
- const geometry::RealPoint2D& aNewPos,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasCustomSpriteHelper::move( const Sprite::Reference& rSprite,
+ const geometry::RealPoint2D& aNewPos,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
if( !mpSpriteCanvas.get() )
return; // we're disposed
::basegfx::B2DHomMatrix aTransform;
::canvas::tools::mergeViewAndRenderTransform(aTransform,
- viewState,
+ viewState,
renderState);
// convert position to device pixel
- ::basegfx::B2DPoint aPoint(
+ ::basegfx::B2DPoint aPoint(
::basegfx::unotools::b2DPointFromRealPoint2D(aNewPos) );
aPoint *= aTransform;
if( aPoint != maPosition )
{
- const ::basegfx::B2DRectangle& rBounds( getFullSpriteRect() );
+ const ::basegfx::B2DRectangle& rBounds( getFullSpriteRect() );
if( mbActive )
{
@@ -296,8 +296,8 @@ namespace canvas
}
}
- void CanvasCustomSpriteHelper::transform( const Sprite::Reference& rSprite,
- const geometry::AffineMatrix2D& aTransformation )
+ void CanvasCustomSpriteHelper::transform( const Sprite::Reference& rSprite,
+ const geometry::AffineMatrix2D& aTransformation )
{
::basegfx::B2DHomMatrix aMatrix;
::basegfx::unotools::homMatrixFromAffineMatrix(aMatrix,
@@ -313,10 +313,10 @@ namespace canvas
if( !updateClipState( rSprite ) &&
mbActive )
{
- mpSpriteCanvas->updateSprite( rSprite,
+ mpSpriteCanvas->updateSprite( rSprite,
maPosition,
rPrevBounds );
- mpSpriteCanvas->updateSprite( rSprite,
+ mpSpriteCanvas->updateSprite( rSprite,
maPosition,
getUpdateArea() );
}
@@ -325,7 +325,7 @@ namespace canvas
}
}
- void CanvasCustomSpriteHelper::clip( const Sprite::Reference& rSprite,
+ void CanvasCustomSpriteHelper::clip( const Sprite::Reference& rSprite,
const uno::Reference< rendering::XPolyPolygon2D >& xClip )
{
// NULL xClip explicitely allowed here (to clear clipping)
@@ -338,10 +338,10 @@ namespace canvas
if( !updateClipState( rSprite ) &&
mbActive )
{
- mpSpriteCanvas->updateSprite( rSprite,
+ mpSpriteCanvas->updateSprite( rSprite,
maPosition,
rPrevBounds );
- mpSpriteCanvas->updateSprite( rSprite,
+ mpSpriteCanvas->updateSprite( rSprite,
maPosition,
getUpdateArea() );
}
@@ -349,8 +349,8 @@ namespace canvas
mbClipDirty = true;
}
- void CanvasCustomSpriteHelper::setPriority( const Sprite::Reference& rSprite,
- double nPriority )
+ void CanvasCustomSpriteHelper::setPriority( const Sprite::Reference& rSprite,
+ double nPriority )
{
if( !mpSpriteCanvas.get() )
return; // we're disposed
@@ -385,7 +385,7 @@ namespace canvas
if( mfAlpha != 0.0 )
{
- mpSpriteCanvas->updateSprite( rSprite,
+ mpSpriteCanvas->updateSprite( rSprite,
maPosition,
getUpdateArea() );
}
@@ -403,13 +403,13 @@ namespace canvas
{
mpSpriteCanvas->hideSprite( rSprite );
mbActive = false;
-
+
// TODO(P1): if clip is the NULL clip (nothing visible),
// also save us the update call.
if( mfAlpha != 0.0 )
{
- mpSpriteCanvas->updateSprite( rSprite,
+ mpSpriteCanvas->updateSprite( rSprite,
maPosition,
getUpdateArea() );
}
@@ -421,7 +421,7 @@ namespace canvas
// Sprite interface
bool CanvasCustomSpriteHelper::isAreaUpdateOpaque( const ::basegfx::B2DRange& rUpdateArea ) const
{
- if( !mbIsCurrClipRectangle ||
+ if( !mbIsCurrClipRectangle ||
!mbIsContentFullyOpaque ||
!::rtl::math::approxEqual(mfAlpha, 1.0) )
{
@@ -477,7 +477,7 @@ namespace canvas
maSize.getX(),
maSize.getY() ) );
else
- return ::basegfx::B2DRectangle(
+ return ::basegfx::B2DRectangle(
maPosition + maCurrClipBounds.getMinimum(),
maPosition + maCurrClipBounds.getMaximum() );
}
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx
index 87668bb58516..c5571b41b82a 100644
--- a/canvas/source/tools/canvastools.cxx
+++ b/canvas/source/tools/canvastools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -121,7 +121,7 @@ namespace canvas
{
geometry::RealSize2D createInfiniteSize2D()
{
- return geometry::RealSize2D(
+ return geometry::RealSize2D(
::std::numeric_limits<double>::infinity(),
::std::numeric_limits<double>::infinity() );
}
@@ -146,36 +146,36 @@ namespace canvas
return viewState;
}
- ::basegfx::B2DHomMatrix& getViewStateTransform( ::basegfx::B2DHomMatrix& transform,
- const rendering::ViewState& viewState )
+ ::basegfx::B2DHomMatrix& getViewStateTransform( ::basegfx::B2DHomMatrix& transform,
+ const rendering::ViewState& viewState )
{
return ::basegfx::unotools::homMatrixFromAffineMatrix( transform, viewState.AffineTransform );
}
- rendering::ViewState& setViewStateTransform( rendering::ViewState& viewState,
- const ::basegfx::B2DHomMatrix& transform )
+ rendering::ViewState& setViewStateTransform( rendering::ViewState& viewState,
+ const ::basegfx::B2DHomMatrix& transform )
{
::basegfx::unotools::affineMatrixFromHomMatrix( viewState.AffineTransform, transform );
return viewState;
}
- ::basegfx::B2DHomMatrix& getRenderStateTransform( ::basegfx::B2DHomMatrix& transform,
- const rendering::RenderState& renderState )
+ ::basegfx::B2DHomMatrix& getRenderStateTransform( ::basegfx::B2DHomMatrix& transform,
+ const rendering::RenderState& renderState )
{
return ::basegfx::unotools::homMatrixFromAffineMatrix( transform, renderState.AffineTransform );
}
- rendering::RenderState& setRenderStateTransform( rendering::RenderState& renderState,
- const ::basegfx::B2DHomMatrix& transform )
+ rendering::RenderState& setRenderStateTransform( rendering::RenderState& renderState,
+ const ::basegfx::B2DHomMatrix& transform )
{
::basegfx::unotools::affineMatrixFromHomMatrix( renderState.AffineTransform, transform );
return renderState;
}
- rendering::RenderState& appendToRenderState( rendering::RenderState& renderState,
- const ::basegfx::B2DHomMatrix& rTransform )
+ rendering::RenderState& appendToRenderState( rendering::RenderState& renderState,
+ const ::basegfx::B2DHomMatrix& rTransform )
{
::basegfx::B2DHomMatrix transform;
@@ -183,8 +183,8 @@ namespace canvas
return setRenderStateTransform( renderState, transform * rTransform );
}
- rendering::ViewState& appendToViewState( rendering::ViewState& viewState,
- const ::basegfx::B2DHomMatrix& rTransform )
+ rendering::ViewState& appendToViewState( rendering::ViewState& viewState,
+ const ::basegfx::B2DHomMatrix& rTransform )
{
::basegfx::B2DHomMatrix transform;
@@ -192,8 +192,8 @@ namespace canvas
return setViewStateTransform( viewState, transform * rTransform );
}
- rendering::RenderState& prependToRenderState( rendering::RenderState& renderState,
- const ::basegfx::B2DHomMatrix& rTransform )
+ rendering::RenderState& prependToRenderState( rendering::RenderState& renderState,
+ const ::basegfx::B2DHomMatrix& rTransform )
{
::basegfx::B2DHomMatrix transform;
@@ -201,8 +201,8 @@ namespace canvas
return setRenderStateTransform( renderState, rTransform * transform );
}
- rendering::ViewState& prependToViewState( rendering::ViewState& viewState,
- const ::basegfx::B2DHomMatrix& rTransform )
+ rendering::ViewState& prependToViewState( rendering::ViewState& viewState,
+ const ::basegfx::B2DHomMatrix& rTransform )
{
::basegfx::B2DHomMatrix transform;
@@ -210,9 +210,9 @@ namespace canvas
return setViewStateTransform( viewState, rTransform * transform );
}
- ::basegfx::B2DHomMatrix& mergeViewAndRenderTransform( ::basegfx::B2DHomMatrix& combinedTransform,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ ::basegfx::B2DHomMatrix& mergeViewAndRenderTransform( ::basegfx::B2DHomMatrix& combinedTransform,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
::basegfx::B2DHomMatrix viewTransform;
@@ -220,25 +220,25 @@ namespace canvas
::basegfx::unotools::homMatrixFromAffineMatrix( viewTransform, viewState.AffineTransform );
// this statement performs combinedTransform = viewTransform * combinedTransform
- combinedTransform *= viewTransform;
+ combinedTransform *= viewTransform;
return combinedTransform;
}
- rendering::ViewState& mergeViewAndRenderState( rendering::ViewState& resultViewState,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const uno::Reference< rendering::XCanvas >& /*xCanvas*/ )
+ rendering::ViewState& mergeViewAndRenderState( rendering::ViewState& resultViewState,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const uno::Reference< rendering::XCanvas >& /*xCanvas*/ )
{
- ::basegfx::B2DHomMatrix aTmpMatrix;
- geometry::AffineMatrix2D convertedMatrix;
+ ::basegfx::B2DHomMatrix aTmpMatrix;
+ geometry::AffineMatrix2D convertedMatrix;
resultViewState.Clip = NULL; // TODO(F2): intersect clippings
- return setViewStateTransform(
+ return setViewStateTransform(
resultViewState,
mergeViewAndRenderTransform( aTmpMatrix,
- viewState,
+ viewState,
renderState ) );
}
@@ -264,8 +264,8 @@ namespace canvas
return matrix;
}
- namespace
- {
+ namespace
+ {
class StandardColorSpace : public cppu::WeakImplHelper1< com::sun::star::rendering::XIntegerBitmapColorSpace >
{
private:
@@ -288,8 +288,8 @@ namespace canvas
{
return uno::Sequence< beans::PropertyValue >();
}
- virtual uno::Sequence< double > SAL_CALL convertColorSpace( const uno::Sequence< double >& deviceColor,
- const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< double > SAL_CALL convertColorSpace( const uno::Sequence< double >& deviceColor,
+ const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
// TODO(P3): if we know anything about target
@@ -302,7 +302,7 @@ namespace canvas
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -319,7 +319,7 @@ namespace canvas
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -336,7 +336,7 @@ namespace canvas
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -414,15 +414,15 @@ namespace canvas
{
return util::Endianness::LITTLE;
}
- virtual uno::Sequence<double> SAL_CALL convertFromIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& deviceColor,
- const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence<double> SAL_CALL convertFromIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& deviceColor,
+ const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
if( dynamic_cast<StandardColorSpace*>(targetColorSpace.get()) )
{
const sal_Int8* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -446,8 +446,8 @@ namespace canvas
return targetColorSpace->convertFromARGB(aIntermediate);
}
}
- virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertToIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& deviceColor,
- const uno::Reference< rendering::XIntegerBitmapColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertToIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& deviceColor,
+ const uno::Reference< rendering::XIntegerBitmapColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
if( dynamic_cast<StandardColorSpace*>(targetColorSpace.get()) )
@@ -468,7 +468,7 @@ namespace canvas
{
const sal_Int8* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -489,7 +489,7 @@ namespace canvas
{
const sal_Int8* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -511,7 +511,7 @@ namespace canvas
{
const sal_Int8* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -585,7 +585,7 @@ namespace canvas
}
public:
- StandardColorSpace() :
+ StandardColorSpace() :
maComponentTags(4),
maBitCounts(4)
{
@@ -596,21 +596,21 @@ namespace canvas
pTags[2] = rendering::ColorComponentTag::RGB_BLUE;
pTags[3] = rendering::ColorComponentTag::ALPHA;
- pBitCounts[0] =
- pBitCounts[1] =
- pBitCounts[2] =
+ pBitCounts[0] =
+ pBitCounts[1] =
+ pBitCounts[2] =
pBitCounts[3] = 8;
}
};
struct StandardColorSpaceHolder : public rtl::StaticWithInit<uno::Reference<rendering::XIntegerBitmapColorSpace>,
- StandardColorSpaceHolder>
+ StandardColorSpaceHolder>
{
uno::Reference<rendering::XIntegerBitmapColorSpace> operator()()
{
return new StandardColorSpace();
}
- };
+ };
}
uno::Reference<rendering::XIntegerBitmapColorSpace> getStdColorSpace()
@@ -640,7 +640,7 @@ namespace canvas
return ::Color( pCols[3], pCols[0], pCols[1], pCols[2] );
#else
return ::Color( *reinterpret_cast< const ::ColorData* >(rColor.getConstArray()) );
-#endif
+#endif
}
uno::Sequence<sal_Int8> colorToStdIntSequence( const ::Color& rColor )
@@ -663,17 +663,17 @@ namespace canvas
// rSpriteSize is mapped with its left,top corner to (0,0)
// again. This is required to properly render sprite
// animations to buffer bitmaps.
- ::basegfx::B2DHomMatrix& calcRectToOriginTransform( ::basegfx::B2DHomMatrix& o_transform,
- const ::basegfx::B2DRange& i_srcRect,
- const ::basegfx::B2DHomMatrix& i_transformation )
+ ::basegfx::B2DHomMatrix& calcRectToOriginTransform( ::basegfx::B2DHomMatrix& o_transform,
+ const ::basegfx::B2DRange& i_srcRect,
+ const ::basegfx::B2DHomMatrix& i_transformation )
{
if( i_srcRect.isEmpty() )
return o_transform=i_transformation;
// transform by given transformation
- ::basegfx::B2DRectangle aTransformedRect;
+ ::basegfx::B2DRectangle aTransformedRect;
- calcTransformedRectBounds( aTransformedRect,
+ calcTransformedRectBounds( aTransformedRect,
i_srcRect,
i_transformation );
@@ -687,9 +687,9 @@ namespace canvas
return o_transform;
}
- ::basegfx::B2DRange& calcTransformedRectBounds( ::basegfx::B2DRange& outRect,
- const ::basegfx::B2DRange& inRect,
- const ::basegfx::B2DHomMatrix& transformation )
+ ::basegfx::B2DRange& calcTransformedRectBounds( ::basegfx::B2DRange& outRect,
+ const ::basegfx::B2DRange& inRect,
+ const ::basegfx::B2DHomMatrix& transformation )
{
outRect.reset();
@@ -698,7 +698,7 @@ namespace canvas
// transform all four extremal points of the rectangle,
// take bounding rect of those.
-
+
// transform left-top point
outRect.expand( transformation * inRect.getMinimum() );
@@ -724,11 +724,11 @@ namespace canvas
// over and out.
return outRect;
}
-
- ::basegfx::B2DHomMatrix& calcRectToRectTransform( ::basegfx::B2DHomMatrix& o_transform,
- const ::basegfx::B2DRange& destRect,
- const ::basegfx::B2DRange& srcRect,
- const ::basegfx::B2DHomMatrix& transformation )
+
+ ::basegfx::B2DHomMatrix& calcRectToRectTransform( ::basegfx::B2DHomMatrix& o_transform,
+ const ::basegfx::B2DRange& destRect,
+ const ::basegfx::B2DRange& srcRect,
+ const ::basegfx::B2DHomMatrix& transformation )
{
if( srcRect.isEmpty() ||
destRect.isEmpty() )
@@ -737,8 +737,8 @@ namespace canvas
}
// transform inputRect by transformation
- ::basegfx::B2DRectangle aTransformedRect;
- calcTransformedRectBounds( aTransformedRect,
+ ::basegfx::B2DRectangle aTransformedRect;
+ calcTransformedRectBounds( aTransformedRect,
srcRect,
transformation );
@@ -750,28 +750,28 @@ namespace canvas
const double xDenom( aTransformedRect.getWidth() );
const double yDenom( aTransformedRect.getHeight() );
if( xDenom != 0.0 && yDenom != 0.0 )
- aCorrectedTransform.scale( destRect.getWidth() / xDenom,
+ aCorrectedTransform.scale( destRect.getWidth() / xDenom,
destRect.getHeight() / yDenom );
// TODO(E2): error handling
// translate to final position
- aCorrectedTransform.translate( destRect.getMinX(),
+ aCorrectedTransform.translate( destRect.getMinX(),
destRect.getMinY() );
-
+
::basegfx::B2DHomMatrix transform( transformation );
o_transform = aCorrectedTransform * transform;
return o_transform;
}
- bool isInside( const ::basegfx::B2DRange& rContainedRect,
- const ::basegfx::B2DRange& rTransformRect,
- const ::basegfx::B2DHomMatrix& rTransformation )
+ bool isInside( const ::basegfx::B2DRange& rContainedRect,
+ const ::basegfx::B2DRange& rTransformRect,
+ const ::basegfx::B2DHomMatrix& rTransformation )
{
if( rContainedRect.isEmpty() || rTransformRect.isEmpty() )
return false;
- ::basegfx::B2DPolygon aPoly(
+ ::basegfx::B2DPolygon aPoly(
::basegfx::tools::createPolygonFromRect( rTransformRect ) );
aPoly.transform( rTransformation );
@@ -789,7 +789,7 @@ namespace canvas
const ::basegfx::B2IRange& rSourceBounds,
const ::basegfx::B2IRange& rDestBounds )
{
- const ::basegfx::B2IPoint aSourceTopLeft(
+ const ::basegfx::B2IPoint aSourceTopLeft(
io_rSourceArea.getMinimum() );
::basegfx::B2IRange aLocalSourceArea( io_rSourceArea );
@@ -799,28 +799,28 @@ namespace canvas
if( aLocalSourceArea.isEmpty() )
return false;
-
+
// calc relative new source area points (relative to orig
// source area)
- const ::basegfx::B2IVector aUpperLeftOffset(
+ const ::basegfx::B2IVector aUpperLeftOffset(
aLocalSourceArea.getMinimum()-aSourceTopLeft );
- const ::basegfx::B2IVector aLowerRightOffset(
+ const ::basegfx::B2IVector aLowerRightOffset(
aLocalSourceArea.getMaximum()-aSourceTopLeft );
::basegfx::B2IRange aLocalDestArea( io_rDestPoint + aUpperLeftOffset,
io_rDestPoint + aLowerRightOffset );
-
+
// clip dest area (which must be inside rDestBounds)
aLocalDestArea.intersect( rDestBounds );
-
+
if( aLocalDestArea.isEmpty() )
return false;
// calc relative new dest area points (relative to orig
// source area)
- const ::basegfx::B2IVector aDestUpperLeftOffset(
+ const ::basegfx::B2IVector aDestUpperLeftOffset(
aLocalDestArea.getMinimum()-io_rDestPoint );
- const ::basegfx::B2IVector aDestLowerRightOffset(
+ const ::basegfx::B2IVector aDestLowerRightOffset(
aLocalDestArea.getMaximum()-io_rDestPoint );
io_rSourceArea = ::basegfx::B2IRange( aSourceTopLeft + aDestUpperLeftOffset,
@@ -848,7 +848,7 @@ namespace canvas
io_rDestPoint.getY(),
(io_rDestPoint.getX()
+ static_cast<sal_Int32>(rRange.getX())),
- (io_rDestPoint.getY()
+ (io_rDestPoint.getY()
+ static_cast<sal_Int32>(rRange.getY())) );
// limit to output area (no point updating outside of it)
aInputDestArea.intersect( rBounds );
@@ -886,36 +886,36 @@ namespace canvas
{
if( rRange.isEmpty() )
return ::basegfx::B2IRange();
-
+
const ::basegfx::B2IPoint aTopLeft( ::basegfx::fround( rRange.getMinX() ),
::basegfx::fround( rRange.getMinY() ) );
return ::basegfx::B2IRange( aTopLeft,
- aTopLeft + ::basegfx::B2IPoint(
+ aTopLeft + ::basegfx::B2IPoint(
::basegfx::fround( rRange.getWidth() ),
::basegfx::fround( rRange.getHeight() ) ) );
}
uno::Sequence< uno::Any >& getDeviceInfo( const uno::Reference< rendering::XCanvas >& i_rxCanvas,
- uno::Sequence< uno::Any >& o_rxParams )
+ uno::Sequence< uno::Any >& o_rxParams )
{
o_rxParams.realloc( 0 );
-
+
if( i_rxCanvas.is() )
{
try
{
uno::Reference< rendering::XGraphicDevice > xDevice( i_rxCanvas->getDevice(),
uno::UNO_QUERY_THROW );
-
- uno::Reference< lang::XServiceInfo > xServiceInfo( xDevice,
+
+ uno::Reference< lang::XServiceInfo > xServiceInfo( xDevice,
uno::UNO_QUERY_THROW );
- uno::Reference< beans::XPropertySet > xPropSet( xDevice,
+ uno::Reference< beans::XPropertySet > xPropSet( xDevice,
uno::UNO_QUERY_THROW );
-
+
o_rxParams.realloc( 2 );
-
+
o_rxParams[ 0 ] = uno::makeAny( xServiceInfo->getImplementationName() );
- o_rxParams[ 1 ] = uno::makeAny( xPropSet->getPropertyValue(
+ o_rxParams[ 1 ] = uno::makeAny( xPropSet->getPropertyValue(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("DeviceHandle") ) ) );
}
catch( uno::Exception& )
@@ -923,7 +923,7 @@ namespace canvas
// ignore, but return empty sequence
}
}
-
+
return o_rxParams;
}
@@ -993,7 +993,7 @@ namespace canvas
}
int calcGradientStepCount( ::basegfx::B2DHomMatrix& rTotalTransform,
- const rendering::ViewState& viewState,
+ const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
const rendering::Texture& texture,
int nColorSteps )
@@ -1003,7 +1003,7 @@ namespace canvas
::basegfx::B2DHomMatrix aMatrix;
rTotalTransform.identity();
- ::basegfx::unotools::homMatrixFromAffineMatrix( rTotalTransform,
+ ::basegfx::unotools::homMatrixFromAffineMatrix( rTotalTransform,
texture.AffineTransform );
::canvas::tools::mergeViewAndRenderTransform(aMatrix,
viewState,
@@ -1017,15 +1017,15 @@ namespace canvas
::basegfx::B2DPoint aRightTop( 1.0, 0.0 );
::basegfx::B2DPoint aRightBottom( 1.0, 1.0 );
- aLeftTop *= rTotalTransform;
+ aLeftTop *= rTotalTransform;
aLeftBottom *= rTotalTransform;
- aRightTop *= rTotalTransform;
+ aRightTop *= rTotalTransform;
aRightBottom*= rTotalTransform;
// longest line in gradient bound rect
- const int nGradientSize(
- static_cast<int>(
- ::std::max(
+ const int nGradientSize(
+ static_cast<int>(
+ ::std::max(
::basegfx::B2DVector(aRightBottom-aLeftTop).getLength(),
::basegfx::B2DVector(aRightTop-aLeftBottom).getLength() ) + 1.0 ) );
@@ -1035,7 +1035,7 @@ namespace canvas
// use at least three steps, and at utmost the number of color
// steps
return ::std::max( 3,
- ::std::min(
+ ::std::min(
nGradientSize / nStripSize,
nColorSteps ) );
}
diff --git a/canvas/source/tools/elapsedtime.cxx b/canvas/source/tools/elapsedtime.cxx
index 1d6e53e36eac..f4f6e5db8a67 100644
--- a/canvas/source/tools/elapsedtime.cxx
+++ b/canvas/source/tools/elapsedtime.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ double ElapsedTime::getSystemTime()
// TEMP!!!
// Awaiting corresponding functionality in OSL
//
-
+
// is there a performance counter available?
static bool bTimeSetupDone( false );
static bool bPerfTimerAvailable( false );
@@ -78,7 +78,7 @@ double ElapsedTime::getSystemTime()
// current sys time and nInitialCount exceeds IEEE double's
// mantissa, time will start to run jerky.
static LONGLONG nInitialCount;
-
+
if( !bTimeSetupDone )
{
if( QueryPerformanceFrequency(
@@ -91,7 +91,7 @@ double ElapsedTime::getSystemTime()
}
bTimeSetupDone = true;
}
-
+
if( bPerfTimerAvailable )
{
LONGLONG nCurrCount;
@@ -112,7 +112,7 @@ double ElapsedTime::getSystemTime()
// TODO(Q2): is 0 okay for the failure case here?
double ElapsedTime::getSystemTime()
{
- TimeValue aTimeVal;
+ TimeValue aTimeVal;
if( osl_getSystemTime( &aTimeVal ) )
return ((aTimeVal.Nanosec * 10e-10) + aTimeVal.Seconds);
else
@@ -184,7 +184,7 @@ double ElapsedTime::getElapsedTimeImpl() const
{
if (m_bInHoldMode || m_bInPauseMode)
return m_fFrozenTime;
-
+
return getCurrentTime() - m_fStartTime;
}
diff --git a/canvas/source/tools/imagecachedprimitive.hxx b/canvas/source/tools/imagecachedprimitive.hxx
index 59cf43ac4ee5..23cab7ce83f8 100644
--- a/canvas/source/tools/imagecachedprimitive.hxx
+++ b/canvas/source/tools/imagecachedprimitive.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/tools/page.cxx b/canvas/source/tools/page.cxx
index 831233dc4cab..7d85e419782a 100644
--- a/canvas/source/tools/page.cxx
+++ b/canvas/source/tools/page.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/tools/page.hxx b/canvas/source/tools/page.hxx
index 8c92bec141bf..bef9684da594 100644
--- a/canvas/source/tools/page.hxx
+++ b/canvas/source/tools/page.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace canvas
*/
class Page
{
- public:
+ public:
Page( const IRenderModuleSharedPtr& rRenderModule );
FragmentSharedPtr allocateSpace( const ::basegfx::B2ISize& rSize );
@@ -79,21 +79,21 @@ namespace canvas
class PageFragment
{
public:
- PageFragment( const SurfaceRect& r,
+ PageFragment( const SurfaceRect& r,
Page* pPage ) :
mpPage(pPage),
maRect(r),
mpBuffer(),
- maSourceOffset()
+ maSourceOffset()
{
}
-
+
/// Creates a 'naked' fragment.
PageFragment( const ::basegfx::B2ISize& rSize ) :
mpPage(NULL),
maRect(rSize),
mpBuffer(),
- maSourceOffset()
+ maSourceOffset()
{
}
@@ -112,7 +112,7 @@ namespace canvas
mpPage=NULL;
}
-
+
bool select( bool bRefresh )
{
// request was made to select this fragment,
diff --git a/canvas/source/tools/pagemanager.cxx b/canvas/source/tools/pagemanager.cxx
index 733c3fd21877..b37c578e19ab 100644
--- a/canvas/source/tools/pagemanager.cxx
+++ b/canvas/source/tools/pagemanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ namespace canvas
//////////////////////////////////////////////////////////////////////////////////
// PageManager::free
//////////////////////////////////////////////////////////////////////////////////
-
+
void PageManager::free( const FragmentSharedPtr& pFragment )
{
// erase the reference to the given fragment from our
@@ -195,7 +195,7 @@ namespace canvas
//////////////////////////////////////////////////////////////////////////////////
// PageManager::validatePages
//////////////////////////////////////////////////////////////////////////////////
-
+
void PageManager::validatePages()
{
::std::for_each( maPages.begin(),
@@ -215,7 +215,7 @@ namespace canvas
//////////////////////////////////////////////////////////////////////////////////
// PageManager::getRenderModule
//////////////////////////////////////////////////////////////////////////////////
-
+
canvas::IRenderModuleSharedPtr PageManager::getRenderModule() const
{
return mpRenderModule;
diff --git a/canvas/source/tools/pagemanager.hxx b/canvas/source/tools/pagemanager.hxx
index 1ca7f6e9c199..f82a8e339a0c 100644
--- a/canvas/source/tools/pagemanager.hxx
+++ b/canvas/source/tools/pagemanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ namespace canvas
class PageManager
{
public:
- PageManager( const canvas::IRenderModuleSharedPtr pRenderModule ) :
- mpRenderModule(pRenderModule)
+ PageManager( const canvas::IRenderModuleSharedPtr pRenderModule ) :
+ mpRenderModule(pRenderModule)
{
}
diff --git a/canvas/source/tools/parametricpolypolygon.cxx b/canvas/source/tools/parametricpolypolygon.cxx
index 7e666b5fcd52..8775c1eb3cc2 100644
--- a/canvas/source/tools/parametricpolypolygon.cxx
+++ b/canvas/source/tools/parametricpolypolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ namespace canvas
return aRet;
}
- ParametricPolyPolygon* ParametricPolyPolygon::create(
+ ParametricPolyPolygon* ParametricPolyPolygon::create(
const uno::Reference< rendering::XGraphicDevice >& rDevice,
const ::rtl::OUString& rServiceName,
const uno::Sequence< uno::Any >& rArgs )
@@ -132,42 +132,42 @@ namespace canvas
return NULL;
}
- ParametricPolyPolygon* ParametricPolyPolygon::createLinearHorizontalGradient(
- const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const uno::Sequence< uno::Sequence< double > >& colors,
- const uno::Sequence< double >& stops )
+ ParametricPolyPolygon* ParametricPolyPolygon::createLinearHorizontalGradient(
+ const uno::Reference< rendering::XGraphicDevice >& rDevice,
+ const uno::Sequence< uno::Sequence< double > >& colors,
+ const uno::Sequence< double >& stops )
{
// TODO(P2): hold gradient brush statically, and only setup
// the colors
return new ParametricPolyPolygon( rDevice, GRADIENT_LINEAR, colors, stops );
}
- ParametricPolyPolygon* ParametricPolyPolygon::createEllipticalGradient(
- const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const uno::Sequence< uno::Sequence< double > >& colors,
- const uno::Sequence< double >& stops,
+ ParametricPolyPolygon* ParametricPolyPolygon::createEllipticalGradient(
+ const uno::Reference< rendering::XGraphicDevice >& rDevice,
+ const uno::Sequence< uno::Sequence< double > >& colors,
+ const uno::Sequence< double >& stops,
double fAspectRatio )
{
// TODO(P2): hold gradient polygon statically, and only setup
// the colors
- return new ParametricPolyPolygon(
+ return new ParametricPolyPolygon(
rDevice,
- ::basegfx::tools::createPolygonFromCircle(
+ ::basegfx::tools::createPolygonFromCircle(
::basegfx::B2DPoint(0,0), 1 ),
GRADIENT_ELLIPTICAL,
colors, stops, fAspectRatio );
}
ParametricPolyPolygon* ParametricPolyPolygon::createRectangularGradient( const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const uno::Sequence< uno::Sequence< double > >& colors,
- const uno::Sequence< double >& stops,
+ const uno::Sequence< uno::Sequence< double > >& colors,
+ const uno::Sequence< double >& stops,
double fAspectRatio )
{
// TODO(P2): hold gradient polygon statically, and only setup
// the colors
- return new ParametricPolyPolygon(
+ return new ParametricPolyPolygon(
rDevice,
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::tools::createPolygonFromRect(
::basegfx::B2DRectangle( -1, -1, 1, 1 ) ),
GRADIENT_RECTANGULAR,
colors, stops, fAspectRatio );
@@ -236,11 +236,11 @@ namespace canvas
{
}
- ParametricPolyPolygon::ParametricPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const ::basegfx::B2DPolygon& rGradientPoly,
+ ParametricPolyPolygon::ParametricPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& rDevice,
+ const ::basegfx::B2DPolygon& rGradientPoly,
GradientType eType,
- const uno::Sequence< uno::Sequence< double > >& rColors,
- const uno::Sequence< double >& rStops ) :
+ const uno::Sequence< uno::Sequence< double > >& rColors,
+ const uno::Sequence< double >& rStops ) :
ParametricPolyPolygon_Base( m_aMutex ),
mxDevice( rDevice ),
maValues( rGradientPoly,
@@ -251,13 +251,13 @@ namespace canvas
{
}
- ParametricPolyPolygon::ParametricPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const ::basegfx::B2DPolygon& rGradientPoly,
+ ParametricPolyPolygon::ParametricPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& rDevice,
+ const ::basegfx::B2DPolygon& rGradientPoly,
GradientType eType,
- const uno::Sequence< uno::Sequence< double > >& rColors,
- const uno::Sequence< double >& rStops,
- double nAspectRatio ) :
- ParametricPolyPolygon_Base( m_aMutex ),
+ const uno::Sequence< uno::Sequence< double > >& rColors,
+ const uno::Sequence< double >& rStops,
+ double nAspectRatio ) :
+ ParametricPolyPolygon_Base( m_aMutex ),
mxDevice( rDevice ),
maValues( rGradientPoly,
rColors,
@@ -267,15 +267,15 @@ namespace canvas
{
}
- ParametricPolyPolygon::ParametricPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& rDevice,
- GradientType eType,
- const uno::Sequence< uno::Sequence< double > >& rColors,
- const uno::Sequence< double >& rStops ) :
- ParametricPolyPolygon_Base( m_aMutex ),
+ ParametricPolyPolygon::ParametricPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& rDevice,
+ GradientType eType,
+ const uno::Sequence< uno::Sequence< double > >& rColors,
+ const uno::Sequence< double >& rStops ) :
+ ParametricPolyPolygon_Base( m_aMutex ),
mxDevice( rDevice ),
maValues( ::basegfx::B2DPolygon(),
rColors,
- rStops,
+ rStops,
1.0,
eType )
{
diff --git a/canvas/source/tools/prioritybooster.cxx b/canvas/source/tools/prioritybooster.cxx
index 628a9f2853a0..4256965627f7 100644
--- a/canvas/source/tools/prioritybooster.cxx
+++ b/canvas/source/tools/prioritybooster.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_canvas.hxx"
-#ifdef WNT
+#ifdef WNT
# if defined _MSC_VER
# pragma warning(push,1)
# endif
@@ -55,10 +55,10 @@ namespace canvas
int mnOldPriority;
};
- PriorityBooster::PriorityBooster( sal_Int32 nDelta ) :
+ PriorityBooster::PriorityBooster( sal_Int32 nDelta ) :
mpImpl( new PriorityBooster_Impl )
{
-#ifdef WNT
+#ifdef WNT
HANDLE aCurrThread = GetCurrentThread();
mpImpl->mnOldPriority = GetThreadPriority( aCurrThread );
@@ -74,8 +74,8 @@ namespace canvas
PriorityBooster::~PriorityBooster()
{
-#ifdef WNT
- SetThreadPriority( GetCurrentThread(),
+#ifdef WNT
+ SetThreadPriority( GetCurrentThread(),
mpImpl->mnOldPriority );
#endif
}
diff --git a/canvas/source/tools/propertysethelper.cxx b/canvas/source/tools/propertysethelper.cxx
index 85375ea0cedf..d48f1922d689 100644
--- a/canvas/source/tools/propertysethelper.cxx
+++ b/canvas/source/tools/propertysethelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace canvas
::rtl::OUString::createFromAscii("PropertySetHelper: property ") +
aPropertyName +
::rtl::OUString::createFromAscii(" not found."),
- uno::Reference< uno::XInterface >()
+ uno::Reference< uno::XInterface >()
);
}
@@ -66,7 +66,7 @@ namespace canvas
}
};
}
-
+
PropertySetHelper::PropertySetHelper() :
mpMap(),
maMapEntries()
@@ -114,14 +114,14 @@ namespace canvas
return mpMap->lookup( aPropertyName,
aDummy );
}
-
+
uno::Reference< beans::XPropertySetInfo > PropertySetHelper::getPropertySetInfo() const
{
// we're a stealth property set
return uno::Reference< beans::XPropertySetInfo >();
}
- void PropertySetHelper::setPropertyValue( const ::rtl::OUString& aPropertyName,
+ void PropertySetHelper::setPropertyValue( const ::rtl::OUString& aPropertyName,
const uno::Any& aValue )
{
Callbacks aCallbacks;
@@ -156,7 +156,7 @@ namespace canvas
return uno::Any();
}
- void PropertySetHelper::addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ void PropertySetHelper::addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/ )
{
// check validity of property, but otherwise ignore the
@@ -165,13 +165,13 @@ namespace canvas
throwUnknown( aPropertyName );
}
- void PropertySetHelper::removePropertyChangeListener( const ::rtl::OUString& /*aPropertyName*/,
+ void PropertySetHelper::removePropertyChangeListener( const ::rtl::OUString& /*aPropertyName*/,
const uno::Reference< beans::XPropertyChangeListener >& /*xListener*/ )
{
// ignore request, no listener added in the first place
}
-
- void PropertySetHelper::addVetoableChangeListener( const ::rtl::OUString& aPropertyName,
+
+ void PropertySetHelper::addVetoableChangeListener( const ::rtl::OUString& aPropertyName,
const uno::Reference< beans::XVetoableChangeListener >& /*xListener*/ )
{
// check validity of property, but otherwise ignore the
@@ -180,7 +180,7 @@ namespace canvas
throwUnknown( aPropertyName );
}
- void PropertySetHelper::removeVetoableChangeListener( const ::rtl::OUString& /*aPropertyName*/,
+ void PropertySetHelper::removeVetoableChangeListener( const ::rtl::OUString& /*aPropertyName*/,
const uno::Reference< beans::XVetoableChangeListener >& /*xListener*/ )
{
// ignore request, no listener added in the first place
diff --git a/canvas/source/tools/spriteredrawmanager.cxx b/canvas/source/tools/spriteredrawmanager.cxx
index a9984c5b0383..9fce1be93a5b 100644
--- a/canvas/source/tools/spriteredrawmanager.cxx
+++ b/canvas/source/tools/spriteredrawmanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,10 +81,10 @@ namespace canvas
maMoveStartArea = ::basegfx::B2DRectangle(
rSpriteRecord.maOldPos,
rSpriteRecord.maOldPos + rSpriteRecord.maUpdateArea.getRange() );
- mbIsMove = true;
+ mbIsMove = true;
}
- maMoveEndArea = rSpriteRecord.maUpdateArea;
+ maMoveEndArea = rSpriteRecord.maUpdateArea;
break;
case SpriteRedrawManager::SpriteChangeRecord::update:
@@ -101,7 +101,7 @@ namespace canvas
break;
default:
- ENSURE_OR_THROW( false,
+ ENSURE_OR_THROW( false,
"Unexpected case in SpriteUpdater::operator()" );
break;
}
@@ -129,12 +129,12 @@ namespace canvas
// round all given range up to enclosing
// integer rectangle - since the whole thing
- // here is about
+ // here is about
// first, draw the new sprite position
- rUpdateCollector.addRange(
- ::basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange( maMoveEndArea ),
- SpriteRedrawManager::SpriteInfo(
+ rUpdateCollector.addRange(
+ ::basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange( maMoveEndArea ),
+ SpriteRedrawManager::SpriteInfo(
mpAffectedSprite,
maMoveEndArea,
true,
@@ -142,9 +142,9 @@ namespace canvas
// then, clear the old place (looks smoother
// this way)
- rUpdateCollector.addRange(
- ::basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange( maMoveStartArea ),
- SpriteRedrawManager::SpriteInfo(
+ rUpdateCollector.addRange(
+ ::basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange( maMoveStartArea ),
+ SpriteRedrawManager::SpriteInfo(
Sprite::Reference(),
maMoveStartArea,
true,
@@ -154,9 +154,9 @@ namespace canvas
else if( mbIsGenericUpdate &&
!maMoveEndArea.isEmpty() )
{
- rUpdateCollector.addRange(
- ::basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange( maMoveEndArea ),
- SpriteRedrawManager::SpriteInfo(
+ rUpdateCollector.addRange(
+ ::basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange( maMoveEndArea ),
+ SpriteRedrawManager::SpriteInfo(
mpAffectedSprite,
maMoveEndArea,
true ) );
@@ -164,15 +164,15 @@ namespace canvas
}
private:
- Sprite::Reference mpAffectedSprite;
- ::basegfx::B2DRectangle maMoveStartArea;
- ::basegfx::B2DRectangle maMoveEndArea;
+ Sprite::Reference mpAffectedSprite;
+ ::basegfx::B2DRectangle maMoveStartArea;
+ ::basegfx::B2DRectangle maMoveEndArea;
/// True, if at least one move was encountered
- bool mbIsMove;
+ bool mbIsMove;
/// True, if at least one generic update was encountered
- bool mbIsGenericUpdate;
+ bool mbIsGenericUpdate;
};
@@ -183,7 +183,7 @@ namespace canvas
{
public:
/** Generate update area list
-
+
@param rUpdater
Reference to an updater object, which will receive the
update areas.
@@ -192,8 +192,8 @@ namespace canvas
Container with all sprite change requests
*/
- SpriteUpdater( SpriteRedrawManager::SpriteConnectedRanges& rUpdater,
- const SpriteRedrawManager::VectorOfChangeRecords& rChangeContainer ) :
+ SpriteUpdater( SpriteRedrawManager::SpriteConnectedRanges& rUpdater,
+ const SpriteRedrawManager::VectorOfChangeRecords& rChangeContainer ) :
mrUpdater( rUpdater ),
mrChangeContainer( rChangeContainer )
{
@@ -211,17 +211,17 @@ namespace canvas
*/
void operator()( const Sprite::Reference& rSprite )
{
- const SpriteTracer aSpriteTracer(
- ::std::for_each( mrChangeContainer.begin(),
- mrChangeContainer.end(),
+ const SpriteTracer aSpriteTracer(
+ ::std::for_each( mrChangeContainer.begin(),
+ mrChangeContainer.end(),
SpriteTracer( rSprite ) ) );
aSpriteTracer.commit( mrUpdater );
}
private:
- SpriteRedrawManager::SpriteConnectedRanges& mrUpdater;
- const SpriteRedrawManager::VectorOfChangeRecords& mrChangeContainer;
+ SpriteRedrawManager::SpriteConnectedRanges& mrUpdater;
+ const SpriteRedrawManager::VectorOfChangeRecords& mrChangeContainer;
};
}
@@ -250,7 +250,7 @@ namespace canvas
++aCurrSprite;
}
- // sort sprites after prio
+ // sort sprites after prio
VectorOfSprites aSortedSpriteVector;
::std::copy( maSprites.begin(),
maSprites.end(),
@@ -276,7 +276,7 @@ namespace canvas
VectorOfSprites::iterator aBegin( aUpdatableSprites.begin() );
VectorOfSprites::iterator aEnd ( aUpdatableSprites.end() );
- ::std::sort( aBegin,
+ ::std::sort( aBegin,
aEnd,
aSpriteComparator );
@@ -285,7 +285,7 @@ namespace canvas
// for each unique sprite, check the change event vector,
// calculate the update operation from that, and add the
// result to the aUpdateArea.
- ::std::for_each( aBegin,
+ ::std::for_each( aBegin,
aEnd,
SpriteUpdater( rUpdateAreas,
maChangeRecords) );
@@ -299,19 +299,19 @@ namespace canvas
// (i.e. the difference between aSortedSpriteVector and
// aUpdatableSprites).
VectorOfSprites aUnchangedSprites;
- ::std::set_difference( aSortedSpriteVector.begin(),
+ ::std::set_difference( aSortedSpriteVector.begin(),
aSortedSpriteVector.end(),
aBegin, aEnd,
::std::back_insert_iterator< VectorOfSprites >(aUnchangedSprites) );
// add each remaining unchanged sprite to connected ranges,
// marked as "don't need update"
- VectorOfSprites::const_iterator aCurr( aUnchangedSprites.begin() );
- const VectorOfSprites::const_iterator aEnd2( aUnchangedSprites.end() );
+ VectorOfSprites::const_iterator aCurr( aUnchangedSprites.begin() );
+ const VectorOfSprites::const_iterator aEnd2( aUnchangedSprites.end() );
while( aCurr != aEnd2 )
{
const ::basegfx::B2DRange& rUpdateArea( (*aCurr)->getUpdateArea() );
- rUpdateAreas.addRange(
+ rUpdateAreas.addRange(
::basegfx::unotools::b2DSurroundingIntegerRangeFromB2DRange( rUpdateArea ),
SpriteInfo(*aCurr,
rUpdateArea,
@@ -336,10 +336,10 @@ namespace canvas
}
#endif
- bool SpriteRedrawManager::isAreaUpdateScroll( ::basegfx::B2DRectangle& o_rMoveStart,
- ::basegfx::B2DRectangle& o_rMoveEnd,
- const UpdateArea& rUpdateArea,
- ::std::size_t nNumSprites ) const
+ bool SpriteRedrawManager::isAreaUpdateScroll( ::basegfx::B2DRectangle& o_rMoveStart,
+ ::basegfx::B2DRectangle& o_rMoveEnd,
+ const UpdateArea& rUpdateArea,
+ ::std::size_t nNumSprites ) const
{
// check for a solitary move, which consists of exactly two
// pure-move entries, the first with valid, the second with
@@ -352,11 +352,11 @@ namespace canvas
if( nNumSprites != 2 )
return false;
- const SpriteConnectedRanges::ComponentListType::const_iterator aFirst(
+ const SpriteConnectedRanges::ComponentListType::const_iterator aFirst(
rUpdateArea.maComponentList.begin() );
- SpriteConnectedRanges::ComponentListType::const_iterator aSecond(
+ SpriteConnectedRanges::ComponentListType::const_iterator aSecond(
aFirst ); ++aSecond;
-
+
if( !aFirst->second.isPureMove() ||
!aSecond->second.isPureMove() ||
!aFirst->second.getSprite().is() ||
@@ -368,9 +368,9 @@ namespace canvas
// content not fully opaque over update region.
return false;
}
-
- o_rMoveStart = aSecond->second.getUpdateArea();
- o_rMoveEnd = aFirst->second.getUpdateArea();
+
+ o_rMoveStart = aSecond->second.getUpdateArea();
+ o_rMoveEnd = aFirst->second.getUpdateArea();
#if OSL_DEBUG_LEVEL > 0
::basegfx::B2DRectangle aTotalBounds( o_rMoveStart );
@@ -385,8 +385,8 @@ namespace canvas
return true;
}
- bool SpriteRedrawManager::isAreaUpdateNotOpaque( const ::basegfx::B2DRectangle& rUpdateRect,
- const AreaComponent& rComponent ) const
+ bool SpriteRedrawManager::isAreaUpdateNotOpaque( const ::basegfx::B2DRectangle& rUpdateRect,
+ const AreaComponent& rComponent ) const
{
const Sprite::Reference& pAffectedSprite( rComponent.second.getSprite() );
@@ -396,8 +396,8 @@ namespace canvas
return !pAffectedSprite->isAreaUpdateOpaque( rUpdateRect );
}
- bool SpriteRedrawManager::isAreaUpdateOpaque( const UpdateArea& rUpdateArea,
- ::std::size_t nNumSprites ) const
+ bool SpriteRedrawManager::isAreaUpdateOpaque( const UpdateArea& rUpdateArea,
+ ::std::size_t nNumSprites ) const
{
// check whether the sprites in the update area's list will
// fully cover the given area _and_ do that in an opaque way
@@ -414,9 +414,9 @@ namespace canvas
if( nNumSprites > 3 || nNumSprites < 1 )
return false;
- const SpriteConnectedRanges::ComponentListType::const_iterator aBegin(
+ const SpriteConnectedRanges::ComponentListType::const_iterator aBegin(
rUpdateArea.maComponentList.begin() );
- const SpriteConnectedRanges::ComponentListType::const_iterator aEnd(
+ const SpriteConnectedRanges::ComponentListType::const_iterator aEnd(
rUpdateArea.maComponentList.end() );
// now, calc the _true_ update area, by merging all sprite's
@@ -446,12 +446,12 @@ namespace canvas
//
// if not a single changed sprite found - just ignore this
// component (return false)
- const SpriteConnectedRanges::ComponentListType::const_iterator aEnd(
+ const SpriteConnectedRanges::ComponentListType::const_iterator aEnd(
rUpdateArea.maComponentList.end() );
return (::std::find_if( rUpdateArea.maComponentList.begin(),
aEnd,
::boost::bind( &SpriteInfo::needsUpdate,
- ::boost::bind(
+ ::boost::bind(
::std::select2nd<SpriteConnectedRanges::ComponentType>(),
_1 ) ) ) != aEnd );
}
@@ -498,10 +498,10 @@ namespace canvas
maSprites.remove( rSprite );
}
- void SpriteRedrawManager::moveSprite( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rOldPos,
- const ::basegfx::B2DPoint& rNewPos,
- const ::basegfx::B2DVector& rSpriteSize )
+ void SpriteRedrawManager::moveSprite( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rOldPos,
+ const ::basegfx::B2DPoint& rNewPos,
+ const ::basegfx::B2DVector& rSpriteSize )
{
maChangeRecords.push_back( SpriteChangeRecord( rSprite,
rOldPos,
@@ -509,9 +509,9 @@ namespace canvas
rSpriteSize ) );
}
- void SpriteRedrawManager::updateSprite( const Sprite::Reference& rSprite,
- const ::basegfx::B2DPoint& rPos,
- const ::basegfx::B2DRange& rUpdateArea )
+ void SpriteRedrawManager::updateSprite( const Sprite::Reference& rSprite,
+ const ::basegfx::B2DPoint& rPos,
+ const ::basegfx::B2DRange& rUpdateArea )
{
maChangeRecords.push_back( SpriteChangeRecord( rSprite,
rPos,
diff --git a/canvas/source/tools/surface.cxx b/canvas/source/tools/surface.cxx
index 3f1108de2e76..4d23c40f7b27 100644
--- a/canvas/source/tools/surface.cxx
+++ b/canvas/source/tools/surface.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include "surface.hxx"
#include <basegfx/polygon/b2dpolygonclipper.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
-#include <comphelper/scopeguard.hxx>
+#include <comphelper/scopeguard.hxx>
#include <boost/bind.hpp>
namespace canvas
@@ -159,22 +159,22 @@ namespace canvas
######################################
######################################
######################################
-
+
Y
^+1
|
- 2 | 3
+ 2 | 3
x------------x
- | | |
- | | |
+ | | |
+ | | |
------|-----O------|------>X
- -1 | | | +1
- | | |
+ -1 | | | +1
+ | | |
x------------x
1 | 0
|
|-1
-
+
######################################
######################################
######################################
@@ -263,7 +263,7 @@ namespace canvas
aDestOffset = mpFragment->getPos();
// convert size to normalized device coordinates
- const ::basegfx::B2DRectangle& rUV(
+ const ::basegfx::B2DRectangle& rUV(
getUVCoords(aPos1 - maSourceOffset + aDestOffset,
aSize) );
const double u1(rUV.getMinX());
@@ -285,30 +285,30 @@ namespace canvas
######################################
######################################
######################################
-
+
Y
^+1
|
- 2 | 3
+ 2 | 3
x------------x
- | | |
- | | |
+ | | |
+ | | |
------|-----O------|------>X
- -1 | | | +1
- | | |
+ -1 | | | +1
+ | | |
x------------x
1 | 0
|
|-1
-
+
######################################
######################################
######################################
*/
const ::basegfx::B2DPoint& p0(aTransform * ::basegfx::B2DPoint(aSize.getX(),aSize.getY()));
- const ::basegfx::B2DPoint& p1(aTransform * ::basegfx::B2DPoint(0.0, aSize.getY()));
- const ::basegfx::B2DPoint& p2(aTransform * ::basegfx::B2DPoint(0.0, 0.0));
+ const ::basegfx::B2DPoint& p1(aTransform * ::basegfx::B2DPoint(0.0, aSize.getY()));
+ const ::basegfx::B2DPoint& p2(aTransform * ::basegfx::B2DPoint(0.0, 0.0));
const ::basegfx::B2DPoint& p3(aTransform * ::basegfx::B2DPoint(aSize.getX(),0.0));
canvas::Vertex vertex;
@@ -386,22 +386,22 @@ namespace canvas
######################################
######################################
######################################
-
+
Y
^+1
|
- 2 | 3
+ 2 | 3
x------------x
- | | |
- | | |
+ | | |
+ | | |
------|-----O------|------>X
- -1 | | | +1
- | | |
+ -1 | | | +1
+ | | |
x------------x
1 | 0
|
|-1
-
+
######################################
######################################
######################################
@@ -431,19 +431,19 @@ namespace canvas
#endif
pRenderModule->beginPrimitive( canvas::IRenderModule::PRIMITIVE_TYPE_TRIANGLE );
-
- // issue an endPrimitive() when leaving the scope
+
+ // issue an endPrimitive() when leaving the scope
const ::comphelper::ScopeGuard aScopeGuard(
boost::bind( &::canvas::IRenderModule::endPrimitive,
::boost::ref(pRenderModule) ) );
- for(sal_uInt32 nIndex=0; nIndex<nVertexCount; ++nIndex)
+ for(sal_uInt32 nIndex=0; nIndex<nVertexCount; ++nIndex)
{
const basegfx::B2DPoint &aPoint = rTriangleList.getB2DPoint(nIndex);
basegfx::B2DPoint aTransformedPoint(aTransform * aPoint);
const double tu(((aPoint.getX()-aSurfaceClipRect.getMinX())*rUV.getWidth()/w)+rUV.getMinX());
const double tv(((aPoint.getY()-aSurfaceClipRect.getMinY())*rUV.getHeight()/h)+rUV.getMinY());
- vertex.u=static_cast<float>(tu);
+ vertex.u=static_cast<float>(tu);
vertex.v=static_cast<float>(tv);
vertex.x=static_cast<float>(aTransformedPoint.getX());
vertex.y=static_cast<float>(aTransformedPoint.getY());
diff --git a/canvas/source/tools/surface.hxx b/canvas/source/tools/surface.hxx
index eece70b61641..1238a97943ce 100644
--- a/canvas/source/tools/surface.hxx
+++ b/canvas/source/tools/surface.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,7 +73,7 @@ namespace canvas
@param rPos
Output position
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -88,12 +88,12 @@ namespace canvas
@param rPos
Output position
-
+
@param rArea
Subset of the surface to render. Coordinate system are
surface area pixel, given area will be clipped to the
surface bounds.
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -110,11 +110,11 @@ namespace canvas
@param rPos
Output position
-
+
@param rClipPoly
Clip polygon for the surface. The clip polygon is also
subject to the output transformation.
-
+
@param rTransform
Output transformation (does not affect output position)
*/
diff --git a/canvas/source/tools/surfaceproxy.cxx b/canvas/source/tools/surfaceproxy.cxx
index 3c9479cd5ece..a73246cfe211 100644
--- a/canvas/source/tools/surfaceproxy.cxx
+++ b/canvas/source/tools/surfaceproxy.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,7 +92,7 @@ namespace canvas
}
}
}
-
+
//////////////////////////////////////////////////////////////////////////////////
// SurfaceProxy::setColorBufferDirty
//////////////////////////////////////////////////////////////////////////////////
@@ -129,7 +129,7 @@ namespace canvas
bool SurfaceProxy::draw( double fAlpha,
const ::basegfx::B2DPoint& rPos,
- const ::basegfx::B2DRange& rArea,
+ const ::basegfx::B2DRange& rArea,
const ::basegfx::B2DHomMatrix& rTransform )
{
::std::for_each( maSurfaceList.begin(),
@@ -154,7 +154,7 @@ namespace canvas
const ::basegfx::B2DHomMatrix& rTransform )
{
const ::basegfx::B2DPolygon& rTriangulatedPolygon(
- ::basegfx::triangulator::triangulate(rClipPoly));
+ ::basegfx::triangulator::triangulate(rClipPoly));
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
// dump polygons
@@ -164,7 +164,7 @@ namespace canvas
basegfx::tools::exportToSvgD( rClipPoly ),
RTL_TEXTENCODING_ASCII_US).getStr(),
rtl::OUStringToOString(
- basegfx::tools::exportToSvgD(
+ basegfx::tools::exportToSvgD(
basegfx::B2DPolyPolygon(rTriangulatedPolygon) ),
RTL_TEXTENCODING_ASCII_US).getStr() );
#endif
diff --git a/canvas/source/tools/surfaceproxy.hxx b/canvas/source/tools/surfaceproxy.hxx
index 7d5ea1f98094..a68a1ce46b1b 100644
--- a/canvas/source/tools/surfaceproxy.hxx
+++ b/canvas/source/tools/surfaceproxy.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ namespace canvas
@param rPos
Output position
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -81,12 +81,12 @@ namespace canvas
@param rPos
Output position
-
+
@param rArea
Subset of the surface to render. Coordinate system are
surface area pixel, given area will be clipped to the
surface bounds.
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -94,7 +94,7 @@ namespace canvas
const ::basegfx::B2DPoint& rPos,
const ::basegfx::B2DRange& rArea,
const ::basegfx::B2DHomMatrix& rTransform );
-
+
/** Render the surface content to screen.
@param fAlpha
@@ -102,11 +102,11 @@ namespace canvas
@param rPos
Output position
-
+
@param rClipPoly
Clip polygon for the surface. The clip polygon is also
subject to the output transformation.
-
+
@param rTransform
Output transformation (does not affect output position)
*/
@@ -123,9 +123,9 @@ namespace canvas
// need a list here.
std::vector<SurfaceSharedPtr> maSurfaceList;
- // pointer to the source of image data
- // which always is stored in system memory,
- // 32bit rgba and can have any size.
+ // pointer to the source of image data
+ // which always is stored in system memory,
+ // 32bit rgba and can have any size.
canvas::IColorBufferSharedPtr mpBuffer;
};
diff --git a/canvas/source/tools/surfaceproxymanager.cxx b/canvas/source/tools/surfaceproxymanager.cxx
index e6bb97309f7b..1b6e8fba8589 100644
--- a/canvas/source/tools/surfaceproxymanager.cxx
+++ b/canvas/source/tools/surfaceproxymanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,7 +70,7 @@ namespace canvas
return SurfaceProxySharedPtr(new SurfaceProxy(pBuffer,mpPageManager));
}
- private:
+ private:
PageManagerSharedPtr mpPageManager;
};
diff --git a/canvas/source/tools/surfacerect.hxx b/canvas/source/tools/surfacerect.hxx
index f4082d03b097..67b5ea464fc0 100644
--- a/canvas/source/tools/surfacerect.hxx
+++ b/canvas/source/tools/surfacerect.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,7 +89,7 @@ namespace canvas
if((lx1 >= x2) && (lx2 >= x2)) return false;
return true;
}
-
+
//! Returns true if the vertical line intersects the rect.
bool vLineIntersect( sal_Int32 lx, sal_Int32 ly1, sal_Int32 ly2 ) const
{
@@ -117,7 +117,7 @@ namespace canvas
if(r.vLineIntersect(x2,y1,y2)) return true;
return false;
}
-
+
bool inside( const SurfaceRect& r ) const
{
const sal_Int32 x1(maPos.getX());
diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx
index 2603bbe497b4..48a3b9bb6531 100644
--- a/canvas/source/tools/verifyinput.cxx
+++ b/canvas/source/tools/verifyinput.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,10 +69,10 @@ namespace canvas
{
namespace tools
{
- void verifyInput( const geometry::RealPoint2D& rPoint,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const geometry::RealPoint2D& rPoint,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
@@ -103,10 +103,10 @@ namespace canvas
#endif
}
- void verifyInput( const geometry::RealSize2D& rSize,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const geometry::RealSize2D& rSize,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
@@ -137,10 +137,10 @@ namespace canvas
#endif
}
- void verifyInput( const geometry::RealBezierSegment2D& rSegment,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const geometry::RealBezierSegment2D& rSegment,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
@@ -211,10 +211,10 @@ namespace canvas
#endif
}
- void verifyInput( const geometry::RealRectangle2D& rRect,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const geometry::RealRectangle2D& rRect,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
@@ -265,15 +265,15 @@ namespace canvas
#endif
}
- void verifyInput( const geometry::AffineMatrix2D& matrix,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const geometry::AffineMatrix2D& matrix,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
#if OSL_DEBUG_LEVEL > 0
- const sal_Int32 nBinaryState(
+ const sal_Int32 nBinaryState(
100000 * !::rtl::math::isFinite( matrix.m00 ) +
10000 * !::rtl::math::isFinite( matrix.m01 ) +
1000 * !::rtl::math::isFinite( matrix.m02 ) +
@@ -302,16 +302,16 @@ namespace canvas
}
#endif
}
-
- void verifyInput( const geometry::Matrix2D& matrix,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+
+ void verifyInput( const geometry::Matrix2D& matrix,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
#if OSL_DEBUG_LEVEL > 0
- const sal_Int32 nBinaryState(
+ const sal_Int32 nBinaryState(
1000 * !::rtl::math::isFinite( matrix.m00 ) +
100 * !::rtl::math::isFinite( matrix.m01 ) +
10 * !::rtl::math::isFinite( matrix.m10 ) +
@@ -336,21 +336,21 @@ namespace canvas
}
#endif
}
-
- void verifyInput( const rendering::ViewState& viewState,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+
+ void verifyInput( const rendering::ViewState& viewState,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
verifyInput( viewState.AffineTransform,
pStr, xIf, nArgPos );
}
- void verifyInput( const rendering::RenderState& renderState,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos,
- sal_Int32 nMinColorComponents )
+ void verifyInput( const rendering::RenderState& renderState,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos,
+ sal_Int32 nMinColorComponents )
{
verifyInput( renderState.AffineTransform,
pStr, xIf, nArgPos );
@@ -389,10 +389,10 @@ namespace canvas
}
}
- void verifyInput( const rendering::Texture& texture,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const rendering::Texture& texture,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
verifyInput( texture.AffineTransform,
pStr, xIf, nArgPos );
@@ -464,9 +464,9 @@ namespace canvas
{
struct VerifyDashValue
{
- VerifyDashValue( const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos ) :
+ VerifyDashValue( const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos ) :
mpStr( pStr ),
mrIf( xIf ),
mnArgPos( nArgPos )
@@ -491,16 +491,16 @@ namespace canvas
}
}
- const char* mpStr;
- const uno::Reference< uno::XInterface >& mrIf;
- sal_Int16 mnArgPos;
+ const char* mpStr;
+ const uno::Reference< uno::XInterface >& mrIf;
+ sal_Int16 mnArgPos;
};
}
- void verifyInput( const rendering::StrokeAttributes& strokeAttributes,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const rendering::StrokeAttributes& strokeAttributes,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
if( !::rtl::math::isFinite( strokeAttributes.StrokeWidth ) ||
strokeAttributes.StrokeWidth < 0.0 )
@@ -537,7 +537,7 @@ namespace canvas
::std::for_each( strokeAttributes.DashArray.getConstArray(),
strokeAttributes.DashArray.getConstArray() + strokeAttributes.DashArray.getLength(),
VerifyDashValue( pStr, xIf, nArgPos ) );
-
+
::std::for_each( strokeAttributes.LineArray.getConstArray(),
strokeAttributes.LineArray.getConstArray() + strokeAttributes.LineArray.getLength(),
VerifyDashValue( pStr, xIf, nArgPos ) );
@@ -591,10 +591,10 @@ namespace canvas
}
}
- void verifyInput( const rendering::IntegerBitmapLayout& bitmapLayout,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const rendering::IntegerBitmapLayout& bitmapLayout,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
@@ -665,14 +665,14 @@ namespace canvas
#else
throw lang::IllegalArgumentException();
#endif
- }
+ }
}
}
- void verifyInput( const rendering::FloatingPointBitmapLayout& bitmapLayout,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const rendering::FloatingPointBitmapLayout& bitmapLayout,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
(void)pStr; (void)xIf; (void)nArgPos;
@@ -742,7 +742,7 @@ namespace canvas
#else
throw lang::IllegalArgumentException();
#endif
- }
+ }
if( bitmapLayout.Format < rendering::FloatingPointBitmapFormat::HALFFLOAT ||
bitmapLayout.Format > rendering::FloatingPointBitmapFormat::DOUBLE )
@@ -761,19 +761,19 @@ namespace canvas
}
}
- void verifyInput( const rendering::FontInfo& /*fontInfo*/,
- const char* /*pStr*/,
- const uno::Reference< uno::XInterface >& /*xIf*/,
- ::sal_Int16 /*nArgPos*/ )
+ void verifyInput( const rendering::FontInfo& /*fontInfo*/,
+ const char* /*pStr*/,
+ const uno::Reference< uno::XInterface >& /*xIf*/,
+ ::sal_Int16 /*nArgPos*/ )
{
// TODO(E3): Implement FontDescription checks, once the
// Panose stuff is ready.
}
- void verifyInput( const rendering::FontRequest& fontRequest,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf,
- ::sal_Int16 nArgPos )
+ void verifyInput( const rendering::FontRequest& fontRequest,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf,
+ ::sal_Int16 nArgPos )
{
verifyInput( fontRequest.FontDescription,
pStr, xIf, nArgPos );
@@ -819,10 +819,10 @@ namespace canvas
}
}
- void verifyIndexRange( const geometry::IntegerRectangle2D& rect,
- const geometry::IntegerSize2D& size )
+ void verifyIndexRange( const geometry::IntegerRectangle2D& rect,
+ const geometry::IntegerSize2D& size )
{
- const ::basegfx::B2IRange aRect(
+ const ::basegfx::B2IRange aRect(
::basegfx::unotools::b2IRectangleFromIntegerRectangle2D(
rect ) );
@@ -847,9 +847,9 @@ namespace canvas
}
}
- void verifyBitmapSize( const geometry::IntegerSize2D& size,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf )
+ void verifyBitmapSize( const geometry::IntegerSize2D& size,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf )
{
(void)pStr; (void)xIf;
@@ -884,9 +884,9 @@ namespace canvas
}
}
- void verifySpriteSize( const geometry::RealSize2D& size,
- const char* pStr,
- const uno::Reference< uno::XInterface >& xIf )
+ void verifySpriteSize( const geometry::RealSize2D& size,
+ const char* pStr,
+ const uno::Reference< uno::XInterface >& xIf )
{
(void)pStr; (void)xIf;
diff --git a/canvas/source/vcl/backbuffer.cxx b/canvas/source/vcl/backbuffer.cxx
index ea99b371a483..83bd50262103 100644
--- a/canvas/source/vcl/backbuffer.cxx
+++ b/canvas/source/vcl/backbuffer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
namespace vclcanvas
{
BackBuffer::BackBuffer( const OutputDevice& rRefDevice,
- bool bMonochromeBuffer ) :
+ bool bMonochromeBuffer ) :
maVDev( new VirtualDevice( rRefDevice,
bMonochromeBuffer ) )
{
@@ -47,13 +47,13 @@ namespace vclcanvas
maVDev->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW | maVDev->GetAntialiasing() );
#else
// switch off AA for WIN32 and UNIX, the VCLCanvas does not look good with it and
- // is not required to do AA. It would need to be adapted to use it correctly
+ // is not required to do AA. It would need to be adapted to use it correctly
// (especially gradient painting). This will need extra work.
maVDev->SetAntialiasing( maVDev->GetAntialiasing() & !ANTIALIASING_ENABLE_B2DDRAW);
#endif
}
}
-
+
OutputDevice& BackBuffer::getOutDev()
{
return maVDev.get();
@@ -63,7 +63,7 @@ namespace vclcanvas
{
return maVDev.get();
}
-
+
void BackBuffer::setSize( const ::Size& rNewSize )
{
maVDev->SetOutputSizePixel( rNewSize );
diff --git a/canvas/source/vcl/backbuffer.hxx b/canvas/source/vcl/backbuffer.hxx
index a359bcfaa3b8..7834d374f7da 100644
--- a/canvas/source/vcl/backbuffer.hxx
+++ b/canvas/source/vcl/backbuffer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,16 +50,16 @@ namespace vclcanvas
chosen. When true, the buffer will be monochrome, i.e. one
bit deep.
*/
- BackBuffer( const OutputDevice& rRefDevice,
- bool bMonochromeBuffer=false );
-
- virtual OutputDevice& getOutDev();
- virtual const OutputDevice& getOutDev() const;
-
+ BackBuffer( const OutputDevice& rRefDevice,
+ bool bMonochromeBuffer=false );
+
+ virtual OutputDevice& getOutDev();
+ virtual const OutputDevice& getOutDev() const;
+
void setSize( const ::Size& rNewSize );
-
+
private:
- ::canvas::vcltools::VCLObject<VirtualDevice> maVDev;
+ ::canvas::vcltools::VCLObject<VirtualDevice> maVDev;
};
typedef ::boost::shared_ptr< BackBuffer > BackBufferSharedPtr;
diff --git a/canvas/source/vcl/bitmapbackbuffer.cxx b/canvas/source/vcl/bitmapbackbuffer.cxx
index 6865a70f1e31..a8023a750a40 100644
--- a/canvas/source/vcl/bitmapbackbuffer.cxx
+++ b/canvas/source/vcl/bitmapbackbuffer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@
namespace vclcanvas
{
- BitmapBackBuffer::BitmapBackBuffer( const BitmapEx& rBitmap,
- const OutputDevice& rRefDevice ) :
+ BitmapBackBuffer::BitmapBackBuffer( const BitmapEx& rBitmap,
+ const OutputDevice& rRefDevice ) :
maBitmap( rBitmap ),
mpVDev( NULL ),
mrRefDevice( rRefDevice ),
@@ -50,13 +50,13 @@ namespace vclcanvas
mbVDevContentIsCurrent( false )
{
}
-
+
BitmapBackBuffer::~BitmapBackBuffer()
{
// make sure solar mutex is held on deletion (other methods
// are supposed to be called with already locked solar mutex)
SolarMutexGuard aGuard;
-
+
if( mpVDev )
delete mpVDev;
}
@@ -78,7 +78,7 @@ namespace vclcanvas
void BitmapBackBuffer::clear()
{
// force current content to bitmap, make all transparent white
- getBitmapReference().Erase(COL_TRANSPARENT);
+ getBitmapReference().Erase(COL_TRANSPARENT);
}
BitmapEx& BitmapBackBuffer::getBitmapReference()
@@ -98,7 +98,7 @@ namespace vclcanvas
// client queries bitmap, and will possibly alter content -
// next time, VDev needs to be updated
mbBitmapContentIsCurrent = true;
- mbVDevContentIsCurrent = false;
+ mbVDevContentIsCurrent = false;
return *maBitmap;
}
@@ -122,11 +122,11 @@ namespace vclcanvas
{
// VDev not yet created, do it now. Create an alpha-VDev,
// if bitmap has transparency.
- mpVDev = maBitmap->IsTransparent() ?
+ mpVDev = maBitmap->IsTransparent() ?
new VirtualDevice( mrRefDevice, 0, 0 ) :
new VirtualDevice( mrRefDevice );
- OSL_ENSURE( mpVDev,
+ OSL_ENSURE( mpVDev,
"BitmapBackBuffer::createVDev(): Unable to create VirtualDevice" );
mpVDev->SetOutputSizePixel( maBitmap->GetSizePixel() );
@@ -137,7 +137,7 @@ namespace vclcanvas
mpVDev->SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW | mpVDev->GetAntialiasing() );
#else
// switch off AA for WIN32 and UNIX, the VCLCanvas does not look good with it and
- // is not required to do AA. It would need to be adapted to use it correctly
+ // is not required to do AA. It would need to be adapted to use it correctly
// (especially gradient painting). This will need extra work.
mpVDev->SetAntialiasing(mpVDev->GetAntialiasing() & !ANTIALIASING_ENABLE_B2DDRAW);
#endif
@@ -160,7 +160,7 @@ namespace vclcanvas
// canvas queried the VDev, and will possibly paint into
// it. Next time, bitmap must be updated
mbBitmapContentIsCurrent = false;
- mbVDevContentIsCurrent = true;
+ mbVDevContentIsCurrent = true;
}
}
diff --git a/canvas/source/vcl/bitmapbackbuffer.hxx b/canvas/source/vcl/bitmapbackbuffer.hxx
index dcb9038f8ee9..c7023a41d762 100644
--- a/canvas/source/vcl/bitmapbackbuffer.hxx
+++ b/canvas/source/vcl/bitmapbackbuffer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,12 +51,12 @@ namespace vclcanvas
public:
/** Create a backbuffer for given reference device
*/
- BitmapBackBuffer( const BitmapEx& rBitmap,
- const OutputDevice& rRefDevice );
-
+ BitmapBackBuffer( const BitmapEx& rBitmap,
+ const OutputDevice& rRefDevice );
+
~BitmapBackBuffer();
- virtual OutputDevice& getOutDev();
+ virtual OutputDevice& getOutDev();
virtual const OutputDevice& getOutDev() const;
/// Clear the underlying bitmap to white, all transparent
@@ -67,17 +67,17 @@ namespace vclcanvas
@internal
*/
- BitmapEx& getBitmapReference();
- Size getBitmapSizePixel() const;
+ BitmapEx& getBitmapReference();
+ Size getBitmapSizePixel() const;
private:
void createVDev() const;
void updateVDev() const;
- ::canvas::vcltools::VCLObject<BitmapEx> maBitmap;
- mutable VirtualDevice* mpVDev; // created only on demand
+ ::canvas::vcltools::VCLObject<BitmapEx> maBitmap;
+ mutable VirtualDevice* mpVDev; // created only on demand
- const OutputDevice& mrRefDevice;
+ const OutputDevice& mrRefDevice;
/** When true, the bitmap contains the last valid
content. When false, and mbVDevContentIsCurrent is true,
@@ -86,7 +86,7 @@ namespace vclcanvas
called). When both are false, this object is just
initialized.
*/
- mutable bool mbBitmapContentIsCurrent;
+ mutable bool mbBitmapContentIsCurrent;
/** When true, and mpVDev is non-NULL, the VDev contains the
last valid content. When false, and
@@ -94,7 +94,7 @@ namespace vclcanvas
last valid content. When both are false, this object is
just initialized.
*/
- mutable bool mbVDevContentIsCurrent;
+ mutable bool mbVDevContentIsCurrent;
};
typedef ::boost::shared_ptr< BitmapBackBuffer > BitmapBackBufferSharedPtr;
diff --git a/canvas/source/vcl/cachedbitmap.cxx b/canvas/source/vcl/cachedbitmap.cxx
index 964e02414a5b..39debc51f836 100644
--- a/canvas/source/vcl/cachedbitmap.cxx
+++ b/canvas/source/vcl/cachedbitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,12 +46,12 @@ using namespace ::com::sun::star;
namespace vclcanvas
{
- CachedBitmap::CachedBitmap( const GraphicObjectSharedPtr& rGraphicObject,
- const ::Point& rPoint,
- const ::Size& rSize,
- const GraphicAttr& rAttr,
- const rendering::ViewState& rUsedViewState,
- const rendering::RenderState& rUsedRenderState,
+ CachedBitmap::CachedBitmap( const GraphicObjectSharedPtr& rGraphicObject,
+ const ::Point& rPoint,
+ const ::Size& rSize,
+ const GraphicAttr& rAttr,
+ const rendering::ViewState& rUsedViewState,
+ const rendering::RenderState& rUsedRenderState,
const uno::Reference< rendering::XCanvas >& rTarget ) :
CachedPrimitiveBase( rUsedViewState, rTarget, true ),
mpGraphicObject( rGraphicObject ),
@@ -71,10 +71,10 @@ namespace vclcanvas
CachedPrimitiveBase::disposing();
}
- ::sal_Int8 CachedBitmap::doRedraw( const rendering::ViewState& rNewState,
- const rendering::ViewState& rOldState,
- const uno::Reference< rendering::XCanvas >& rTargetCanvas,
- bool bSameViewTransform )
+ ::sal_Int8 CachedBitmap::doRedraw( const rendering::ViewState& rNewState,
+ const rendering::ViewState& rOldState,
+ const uno::Reference< rendering::XCanvas >& rTargetCanvas,
+ bool bSameViewTransform )
{
ENSURE_OR_THROW( bSameViewTransform,
"CachedBitmap::doRedraw(): base called with changed view transform "
diff --git a/canvas/source/vcl/cachedbitmap.hxx b/canvas/source/vcl/cachedbitmap.hxx
index 9b4ea2b3af7e..5959371a8294 100644
--- a/canvas/source/vcl/cachedbitmap.hxx
+++ b/canvas/source/vcl/cachedbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,31 +48,31 @@ namespace vclcanvas
/** Create an XCachedPrimitive for given GraphicObject
*/
- CachedBitmap( const GraphicObjectSharedPtr& rGraphicObject,
- const ::Point& rPoint,
+ CachedBitmap( const GraphicObjectSharedPtr& rGraphicObject,
+ const ::Point& rPoint,
const ::Size& rSize,
const GraphicAttr& rAttr,
- const ::com::sun::star::rendering::ViewState& rUsedViewState,
+ const ::com::sun::star::rendering::ViewState& rUsedViewState,
const ::com::sun::star::rendering::RenderState& rUsedRenderState,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvas >& rTarget );
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvas >& rTarget );
/// Dispose all internal references
virtual void SAL_CALL disposing();
private:
- virtual ::sal_Int8 doRedraw( const ::com::sun::star::rendering::ViewState& rNewState,
- const ::com::sun::star::rendering::ViewState& rOldState,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvas >& rTargetCanvas,
- bool bSameViewTransform );
+ virtual ::sal_Int8 doRedraw( const ::com::sun::star::rendering::ViewState& rNewState,
+ const ::com::sun::star::rendering::ViewState& rOldState,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvas >& rTargetCanvas,
+ bool bSameViewTransform );
- GraphicObjectSharedPtr mpGraphicObject;
+ GraphicObjectSharedPtr mpGraphicObject;
const ::com::sun::star::rendering::RenderState maRenderState;
- const ::Point maPoint;
- const ::Size maSize;
- const GraphicAttr maAttributes;
+ const ::Point maPoint;
+ const ::Size maSize;
+ const GraphicAttr maAttributes;
};
}
diff --git a/canvas/source/vcl/canvas.cxx b/canvas/source/vcl/canvas.cxx
index 81ce996015c2..87c4d6de2b81 100644
--- a/canvas/source/vcl/canvas.cxx
+++ b/canvas/source/vcl/canvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ namespace vclcanvas
{
namespace
{
- class OutDevHolder : public OutDevProvider,
+ class OutDevHolder : public OutDevProvider,
private ::boost::noncopyable
{
public:
@@ -67,13 +67,13 @@ namespace vclcanvas
{}
private:
- virtual OutputDevice& getOutDev() { return mrOutDev; }
+ virtual OutputDevice& getOutDev() { return mrOutDev; }
virtual const OutputDevice& getOutDev() const { return mrOutDev; }
// TODO(Q2): Lifetime issue. This _only_ works reliably,
// if disposing the Canvas correctly disposes all
// entities which hold this pointer.
- OutputDevice& mrOutDev;
+ OutputDevice& mrOutDev;
};
}
@@ -103,7 +103,7 @@ namespace vclcanvas
VERBOSE_TRACE( "VCLCanvas::initialize called" );
ENSURE_ARG_OR_THROW( maArguments.getLength() >= 6 &&
- maArguments[0].getValueTypeClass() == uno::TypeClass_HYPER,
+ maArguments[0].getValueTypeClass() == uno::TypeClass_HYPER,
"Canvas::initialize: wrong number of arguments, or wrong types" );
sal_Int64 nPtr = 0;
@@ -115,7 +115,7 @@ namespace vclcanvas
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"Passed OutDev invalid!")),
NULL);
-
+
OutDevProviderSharedPtr pOutdevProvider( new OutDevHolder(*pOutDev) );
// setup helper
@@ -148,17 +148,17 @@ namespace vclcanvas
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( CANVAS_SERVICE_NAME ) );
}
- bool Canvas::repaint( const GraphicObjectSharedPtr& rGrf,
+ bool Canvas::repaint( const GraphicObjectSharedPtr& rGrf,
const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
- const ::Point& rPt,
- const ::Size& rSz,
- const GraphicAttr& rAttr ) const
+ const ::Point& rPt,
+ const ::Size& rSz,
+ const GraphicAttr& rAttr ) const
{
SolarMutexGuard aGuard;
return maCanvasHelper.repaint( rGrf, viewState, renderState, rPt, rSz, rAttr );
- }
+ }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/vcl/canvas.hxx b/canvas/source/vcl/canvas.hxx
index 555340970a8f..ea6b79a88073 100644
--- a/canvas/source/vcl/canvas.hxx
+++ b/canvas/source/vcl/canvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,15 +63,15 @@ namespace vclcanvas
::com::sun::star::lang::XMultiServiceFactory,
::com::sun::star::util::XUpdatable,
::com::sun::star::beans::XPropertySet,
- ::com::sun::star::lang::XServiceName > GraphicDeviceBase_Base;
+ ::com::sun::star::lang::XServiceName > GraphicDeviceBase_Base;
typedef ::canvas::GraphicDeviceBase< ::canvas::BaseMutexHelper< GraphicDeviceBase_Base >,
- DeviceHelper,
+ DeviceHelper,
tools::LocalGuard,
- ::cppu::OWeakObject > CanvasBase_Base;
+ ::cppu::OWeakObject > CanvasBase_Base;
typedef ::canvas::IntegerBitmapBase< CanvasBase_Base,
- CanvasHelper,
+ CanvasHelper,
tools::LocalGuard,
- ::cppu::OWeakObject > CanvasBaseT;
+ ::cppu::OWeakObject > CanvasBaseT;
/** Product of this component's factory.
@@ -86,9 +86,9 @@ namespace vclcanvas
public RepaintTarget
{
public:
- Canvas( const ::com::sun::star::uno::Sequence<
+ Canvas( const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Any >& aArguments,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& rxContext );
void initialize();
@@ -108,7 +108,7 @@ namespace vclcanvas
// Classname Base doing refcounting Base implementing the XComponent interface
// | | |
// V V V
- DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( Canvas, GraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
+ DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( Canvas, GraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
// XServiceName
virtual ::rtl::OUString SAL_CALL getServiceName( ) throw (::com::sun::star::uno::RuntimeException);
@@ -117,7 +117,7 @@ namespace vclcanvas
virtual bool repaint( const GraphicObjectSharedPtr& rGrf,
const com::sun::star::rendering::ViewState& viewState,
const com::sun::star::rendering::RenderState& renderState,
- const ::Point& rPt,
+ const ::Point& rPt,
const ::Size& rSz,
const GraphicAttr& rAttr ) const;
diff --git a/canvas/source/vcl/canvasbitmap.cxx b/canvas/source/vcl/canvasbitmap.cxx
index 300617f417eb..fbf97f960475 100644
--- a/canvas/source/vcl/canvasbitmap.cxx
+++ b/canvas/source/vcl/canvasbitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,11 +47,11 @@ namespace vclcanvas
bool bAlphaBitmap,
rendering::XGraphicDevice& rDevice,
const OutDevProviderSharedPtr& rOutDevProvider )
- {
+ {
// create bitmap for given reference device
// ========================================
const USHORT nBitCount( (USHORT)24U );
- const BitmapPalette* pPalette = NULL;
+ const BitmapPalette* pPalette = NULL;
Bitmap aBitmap( rSize, nBitCount, pPalette );
@@ -61,8 +61,8 @@ namespace vclcanvas
// use alpha VDev, then).
if( bAlphaBitmap )
{
- AlphaMask aAlpha ( rSize );
-
+ AlphaMask aAlpha ( rSize );
+
maCanvasHelper.init( BitmapEx( aBitmap, aAlpha ),
rDevice,
rOutDevProvider );
@@ -105,7 +105,7 @@ namespace vclcanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
@@ -121,7 +121,7 @@ namespace vclcanvas
bool CanvasBitmap::repaint( const GraphicObjectSharedPtr& rGrf,
const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
- const ::Point& rPt,
+ const ::Point& rPt,
const ::Size& rSz,
const GraphicAttr& rAttr ) const
{
diff --git a/canvas/source/vcl/canvasbitmap.hxx b/canvas/source/vcl/canvasbitmap.hxx
index a8b20725c629..a1162001d9d1 100644
--- a/canvas/source/vcl/canvasbitmap.hxx
+++ b/canvas/source/vcl/canvasbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,11 +56,11 @@ namespace vclcanvas
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::rendering::XBitmapCanvas,
::com::sun::star::rendering::XIntegerBitmap,
::com::sun::star::lang::XServiceInfo,
- ::com::sun::star::beans::XFastPropertySet > CanvasBitmapBase_Base;
- typedef ::canvas::IntegerBitmapBase< ::canvas::BaseMutexHelper< CanvasBitmapBase_Base >,
- CanvasBitmapHelper,
+ ::com::sun::star::beans::XFastPropertySet > CanvasBitmapBase_Base;
+ typedef ::canvas::IntegerBitmapBase< ::canvas::BaseMutexHelper< CanvasBitmapBase_Base >,
+ CanvasBitmapHelper,
tools::LocalGuard,
- ::cppu::OWeakObject > CanvasBitmap_Base;
+ ::cppu::OWeakObject > CanvasBitmap_Base;
class CanvasBitmap : public CanvasBitmap_Base,
public RepaintTarget
@@ -85,7 +85,7 @@ namespace vclcanvas
/// Must be called with locked Solar mutex
CanvasBitmap( const BitmapEx& rBitmap,
::com::sun::star::rendering::XGraphicDevice& rDevice,
- const OutDevProviderSharedPtr& rOutDevProvider );
+ const OutDevProviderSharedPtr& rOutDevProvider );
// overridden because of mpDevice
virtual void SAL_CALL disposing();
@@ -99,7 +99,7 @@ namespace vclcanvas
virtual bool repaint( const GraphicObjectSharedPtr& rGrf,
const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState,
- const ::Point& rPt,
+ const ::Point& rPt,
const ::Size& rSz,
const GraphicAttr& rAttr ) const;
@@ -121,7 +121,7 @@ namespace vclcanvas
private:
/** MUST hold here, too, since CanvasHelper only contains a
- raw pointer (without refcounting)
+ raw pointer (without refcounting)
*/
::com::sun::star::uno::Reference<com::sun::star::rendering::XGraphicDevice> mxDevice;
};
diff --git a/canvas/source/vcl/canvasbitmaphelper.cxx b/canvas/source/vcl/canvasbitmaphelper.cxx
index 39ee411bf34c..66fe12eb3cad 100644
--- a/canvas/source/vcl/canvasbitmaphelper.cxx
+++ b/canvas/source/vcl/canvasbitmaphelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ namespace vclcanvas
CanvasBitmapHelper::CanvasBitmapHelper() :
mpBackBuffer(),
mpOutDevReference()
- {
+ {
}
void CanvasBitmapHelper::setBitmap( const BitmapEx& rBitmap )
@@ -87,8 +87,8 @@ namespace vclcanvas
// forward new settings to base class (ref device, output
// surface, no protection (own backbuffer), alpha depends on
// whether BmpEx is transparent or not)
- CanvasHelper::init( rDevice,
- mpBackBuffer,
+ CanvasHelper::init( rDevice,
+ mpBackBuffer,
false,
rBitmap.IsTransparent() );
}
@@ -101,7 +101,7 @@ namespace vclcanvas
// forward to base class
CanvasHelper::disposing();
}
-
+
geometry::IntegerSize2D CanvasBitmapHelper::getSize()
{
if( !mpBackBuffer )
@@ -117,8 +117,8 @@ namespace vclcanvas
mpBackBuffer->clear(); // alpha vdev needs special treatment
}
- uno::Reference< rendering::XBitmap > CanvasBitmapHelper::getScaledBitmap( const geometry::RealSize2D& newSize,
- sal_Bool beFast )
+ uno::Reference< rendering::XBitmap > CanvasBitmapHelper::getScaledBitmap( const geometry::RealSize2D& newSize,
+ sal_Bool beFast )
{
ENSURE_OR_THROW( mpDevice,
"disposed CanvasHelper" );
@@ -130,15 +130,15 @@ namespace vclcanvas
BitmapEx aRes( mpBackBuffer->getBitmapReference() );
- aRes.Scale( ::vcl::unotools::sizeFromRealSize2D(newSize),
+ aRes.Scale( ::vcl::unotools::sizeFromRealSize2D(newSize),
beFast ? BMP_SCALE_FAST : BMP_SCALE_INTERPOLATE );
- return uno::Reference< rendering::XBitmap >(
+ return uno::Reference< rendering::XBitmap >(
new CanvasBitmap( aRes, *mpDevice, mpOutDevReference ) );
}
- uno::Sequence< sal_Int8 > CanvasBitmapHelper::getData( rendering::IntegerBitmapLayout& rLayout,
- const geometry::IntegerRectangle2D& rect )
+ uno::Sequence< sal_Int8 > CanvasBitmapHelper::getData( rendering::IntegerBitmapLayout& rLayout,
+ const geometry::IntegerRectangle2D& rect )
{
RTL_LOGFILE_CONTEXT( aLog, "::vclcanvas::CanvasBitmapHelper::getData()" );
@@ -151,7 +151,7 @@ namespace vclcanvas
ScopedBitmapReadAccess pReadAccess( aBitmap.AcquireReadAccess(),
aBitmap );
- ScopedBitmapReadAccess pAlphaReadAccess( aAlpha.IsEmpty() ?
+ ScopedBitmapReadAccess pAlphaReadAccess( aAlpha.IsEmpty() ?
(BitmapReadAccess*)NULL : aAlpha.AcquireReadAccess(),
aAlpha );
@@ -160,24 +160,24 @@ namespace vclcanvas
// TODO(F1): Support more formats.
const Size aBmpSize( aBitmap.GetSizePixel() );
-
+
rLayout.ScanLines = aBmpSize.Height();
rLayout.ScanLineBytes = aBmpSize.Width()*4;
- rLayout.ScanLineStride = rLayout.ScanLineBytes;
+ rLayout.ScanLineStride = rLayout.ScanLineBytes;
- // for the time being, always return as BGRA
+ // for the time being, always return as BGRA
uno::Sequence< sal_Int8 > aRes( 4*aBmpSize.Width()*aBmpSize.Height() );
sal_Int8* pRes = aRes.getArray();
int nCurrPos(0);
- for( int y=rect.Y1;
- y<aBmpSize.Height() && y<rect.Y2;
+ for( int y=rect.Y1;
+ y<aBmpSize.Height() && y<rect.Y2;
++y )
{
if( pAlphaReadAccess.get() != NULL )
{
- for( int x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( int x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
pRes[ nCurrPos++ ] = pReadAccess->GetColor( y, x ).GetRed();
@@ -188,8 +188,8 @@ namespace vclcanvas
}
else
{
- for( int x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( int x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
pRes[ nCurrPos++ ] = pReadAccess->GetColor( y, x ).GetRed();
@@ -202,10 +202,10 @@ namespace vclcanvas
return aRes;
}
-
- void CanvasBitmapHelper::setData( const uno::Sequence< sal_Int8 >& data,
- const rendering::IntegerBitmapLayout& rLayout,
- const geometry::IntegerRectangle2D& rect )
+
+ void CanvasBitmapHelper::setData( const uno::Sequence< sal_Int8 >& data,
+ const rendering::IntegerBitmapLayout& rLayout,
+ const geometry::IntegerRectangle2D& rect )
{
RTL_LOGFILE_CONTEXT( aLog, "::vclcanvas::CanvasBitmapHelper::setData()" );
@@ -231,27 +231,27 @@ namespace vclcanvas
{
ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
aBitmap );
- ScopedBitmapWriteAccess pAlphaWriteAccess( aAlpha.IsEmpty() ?
+ ScopedBitmapWriteAccess pAlphaWriteAccess( aAlpha.IsEmpty() ?
(BitmapWriteAccess*)NULL : aAlpha.AcquireWriteAccess(),
aAlpha );
if( pAlphaWriteAccess.get() )
{
DBG_ASSERT( pAlphaWriteAccess->GetScanlineFormat() == BMP_FORMAT_8BIT_PAL ||
- pAlphaWriteAccess->GetScanlineFormat() == BMP_FORMAT_8BIT_TC_MASK,
+ pAlphaWriteAccess->GetScanlineFormat() == BMP_FORMAT_8BIT_TC_MASK,
"non-8bit alpha not supported!" );
- }
-
+ }
+
ENSURE_OR_THROW( pWriteAccess.get() != NULL,
"Could not acquire write access to bitmap" );
// TODO(F1): Support more formats.
- const Size aBmpSize( aBitmap.GetSizePixel() );
+ const Size aBmpSize( aBitmap.GetSizePixel() );
- // for the time being, always read as BGRA
+ // for the time being, always read as BGRA
int x, y, nCurrPos(0);
- for( y=rect.Y1;
- y<aBmpSize.Height() && y<rect.Y2;
+ for( y=rect.Y1;
+ y<aBmpSize.Height() && y<rect.Y2;
++y )
{
if( pAlphaWriteAccess.get() != NULL )
@@ -263,8 +263,8 @@ namespace vclcanvas
Scanline pScan = pWriteAccess->GetScanline( y );
Scanline pAScan = pAlphaWriteAccess->GetScanline( y );
- for( x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
*pScan++ = (BYTE)pWriteAccess->GetBestPaletteIndex(
@@ -273,9 +273,9 @@ namespace vclcanvas
data[ nCurrPos+2 ] ) );
nCurrPos += 3;
-
+
// cast to unsigned byte, for correct subtraction result
- *pAScan++ = static_cast<BYTE>(255 -
+ *pAScan++ = static_cast<BYTE>(255 -
static_cast<sal_uInt8>(data[ nCurrPos++ ]));
}
}
@@ -286,8 +286,8 @@ namespace vclcanvas
Scanline pScan = pWriteAccess->GetScanline( y );
Scanline pAScan = pAlphaWriteAccess->GetScanline( y );
- for( x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
*pScan++ = data[ nCurrPos+2 ];
@@ -295,9 +295,9 @@ namespace vclcanvas
*pScan++ = data[ nCurrPos ];
nCurrPos += 3;
-
+
// cast to unsigned byte, for correct subtraction result
- *pAScan++ = static_cast<BYTE>(255 -
+ *pAScan++ = static_cast<BYTE>(255 -
static_cast<sal_uInt8>(data[ nCurrPos++ ]));
}
}
@@ -308,8 +308,8 @@ namespace vclcanvas
Scanline pScan = pWriteAccess->GetScanline( y );
Scanline pAScan = pAlphaWriteAccess->GetScanline( y );
- for( x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
*pScan++ = data[ nCurrPos ];
@@ -317,9 +317,9 @@ namespace vclcanvas
*pScan++ = data[ nCurrPos+2 ];
nCurrPos += 3;
-
+
// cast to unsigned byte, for correct subtraction result
- *pAScan++ = static_cast<BYTE>(255 -
+ *pAScan++ = static_cast<BYTE>(255 -
static_cast<sal_uInt8>(data[ nCurrPos++ ]));
}
}
@@ -327,19 +327,19 @@ namespace vclcanvas
default:
{
- for( x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
- {
+ {
pWriteAccess->SetPixel( y, x, BitmapColor( data[ nCurrPos ],
data[ nCurrPos+1 ],
data[ nCurrPos+2 ] ) );
nCurrPos += 3;
-
+
// cast to unsigned byte, for correct subtraction result
- pAlphaWriteAccess->SetPixel( y, x,
- BitmapColor(
- static_cast<BYTE>(255 -
+ pAlphaWriteAccess->SetPixel( y, x,
+ BitmapColor(
+ static_cast<BYTE>(255 -
static_cast<sal_uInt8>(data[ nCurrPos++ ])) ) );
}
}
@@ -356,8 +356,8 @@ namespace vclcanvas
{
Scanline pScan = pWriteAccess->GetScanline( y );
- for( x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
*pScan++ = (BYTE)pWriteAccess->GetBestPaletteIndex(
@@ -374,8 +374,8 @@ namespace vclcanvas
{
Scanline pScan = pWriteAccess->GetScanline( y );
- for( x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
*pScan++ = data[ nCurrPos+2 ];
@@ -391,8 +391,8 @@ namespace vclcanvas
{
Scanline pScan = pWriteAccess->GetScanline( y );
- for( x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
*pScan++ = data[ nCurrPos ];
@@ -406,8 +406,8 @@ namespace vclcanvas
default:
{
- for( x=rect.X1;
- x<aBmpSize.Width() && x<rect.X2;
+ for( x=rect.X1;
+ x<aBmpSize.Width() && x<rect.X2;
++x )
{
pWriteAccess->SetPixel( y, x, BitmapColor( data[ nCurrPos ],
@@ -431,14 +431,14 @@ namespace vclcanvas
if( aAlpha.IsEmpty() )
setBitmap( BitmapEx( aBitmap ) );
else
- setBitmap( BitmapEx( aBitmap,
+ setBitmap( BitmapEx( aBitmap,
AlphaMask( aAlpha ) ) );
}
}
- void CanvasBitmapHelper::setPixel( const uno::Sequence< sal_Int8 >& color,
- const rendering::IntegerBitmapLayout& rLayout,
- const geometry::IntegerPoint2D& pos )
+ void CanvasBitmapHelper::setPixel( const uno::Sequence< sal_Int8 >& color,
+ const rendering::IntegerBitmapLayout& rLayout,
+ const geometry::IntegerPoint2D& pos )
{
RTL_LOGFILE_CONTEXT( aLog, "::vclcanvas::CanvasBitmapHelper::setPixel()" );
@@ -447,11 +447,11 @@ namespace vclcanvas
const Size aBmpSize( mpBackBuffer->getBitmapReference().GetSizePixel() );
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aBmpSize.Width(),
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aBmpSize.Width(),
"X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aBmpSize.Height(),
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aBmpSize.Height(),
"Y coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( color.getLength() > 3,
+ ENSURE_ARG_OR_THROW( color.getLength() > 3,
"not enough color components" );
const rendering::IntegerBitmapLayout aRefLayout( getMemoryLayout() );
@@ -473,7 +473,7 @@ namespace vclcanvas
{
ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
aBitmap );
- ScopedBitmapWriteAccess pAlphaWriteAccess( aAlpha.IsEmpty() ?
+ ScopedBitmapWriteAccess pAlphaWriteAccess( aAlpha.IsEmpty() ?
(BitmapWriteAccess*)NULL : aAlpha.AcquireWriteAccess(),
aAlpha );
@@ -497,12 +497,12 @@ namespace vclcanvas
if( aAlpha.IsEmpty() )
setBitmap( BitmapEx( aBitmap ) );
else
- setBitmap( BitmapEx( aBitmap,
+ setBitmap( BitmapEx( aBitmap,
AlphaMask( aAlpha ) ) );
}
}
- uno::Sequence< sal_Int8 > CanvasBitmapHelper::getPixel( rendering::IntegerBitmapLayout& rLayout,
+ uno::Sequence< sal_Int8 > CanvasBitmapHelper::getPixel( rendering::IntegerBitmapLayout& rLayout,
const geometry::IntegerPoint2D& pos )
{
RTL_LOGFILE_CONTEXT( aLog, "::vclcanvas::CanvasBitmapHelper::getPixel()" );
@@ -513,13 +513,13 @@ namespace vclcanvas
rLayout = getMemoryLayout();
rLayout.ScanLines = 1;
rLayout.ScanLineBytes = 4;
- rLayout.ScanLineStride = rLayout.ScanLineBytes;
+ rLayout.ScanLineStride = rLayout.ScanLineBytes;
const Size aBmpSize( mpBackBuffer->getBitmapReference().GetSizePixel() );
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aBmpSize.Width(),
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aBmpSize.Width(),
"X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aBmpSize.Height(),
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aBmpSize.Height(),
"Y coordinate out of bounds" );
Bitmap aBitmap( mpBackBuffer->getBitmapReference().GetBitmap() );
@@ -527,7 +527,7 @@ namespace vclcanvas
ScopedBitmapReadAccess pReadAccess( aBitmap.AcquireReadAccess(),
aBitmap );
- ScopedBitmapReadAccess pAlphaReadAccess( aAlpha.IsEmpty() ?
+ ScopedBitmapReadAccess pAlphaReadAccess( aAlpha.IsEmpty() ?
(BitmapReadAccess*)NULL : aAlpha.AcquireReadAccess(),
aAlpha );
ENSURE_OR_THROW( pReadAccess.get() != NULL,
@@ -535,7 +535,7 @@ namespace vclcanvas
uno::Sequence< sal_Int8 > aRes( 4 );
sal_Int8* pRes = aRes.getArray();
-
+
const BitmapColor aColor( pReadAccess->GetColor( pos.Y, pos.X ) );
pRes[ 0 ] = aColor.GetRed();
pRes[ 1 ] = aColor.GetGreen();
diff --git a/canvas/source/vcl/canvasbitmaphelper.hxx b/canvas/source/vcl/canvasbitmaphelper.hxx
index f49acdd19c16..bcd5a2b1c3b7 100644
--- a/canvas/source/vcl/canvasbitmaphelper.hxx
+++ b/canvas/source/vcl/canvasbitmaphelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,24 +93,24 @@ namespace vclcanvas
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > queryBitmapCanvas();
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
- getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
- sal_Bool beFast );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
+ getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
+ sal_Bool beFast );
- ::com::sun::star::uno::Sequence< sal_Int8 >
- getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ ::com::sun::star::uno::Sequence< sal_Int8 >
+ getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
- void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
- void setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos );
+ void setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos );
- ::com::sun::star::uno::Sequence< sal_Int8 >
- getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ ::com::sun::star::uno::Sequence< sal_Int8 >
+ getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerPoint2D& pos );
::com::sun::star::rendering::IntegerBitmapLayout getMemoryLayout();
@@ -120,9 +120,9 @@ namespace vclcanvas
private:
- void setBitmap( const BitmapEx& rBitmap );
+ void setBitmap( const BitmapEx& rBitmap );
- BitmapBackBufferSharedPtr mpBackBuffer;
+ BitmapBackBufferSharedPtr mpBackBuffer;
OutDevProviderSharedPtr mpOutDevReference;
};
}
diff --git a/canvas/source/vcl/canvascustomsprite.cxx b/canvas/source/vcl/canvascustomsprite.cxx
index 010422b6e093..b9e11d441ecf 100644
--- a/canvas/source/vcl/canvascustomsprite.cxx
+++ b/canvas/source/vcl/canvascustomsprite.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,16 +66,16 @@ namespace vclcanvas
const OutDevProviderSharedPtr& rOutDevProvider,
bool bShowSpriteBounds )
{
- ENSURE_OR_THROW( rOwningSpriteCanvas.get() &&
+ ENSURE_OR_THROW( rOwningSpriteCanvas.get() &&
rOutDevProvider,
"CanvasCustomSprite::CanvasCustomSprite(): Invalid sprite canvas" );
// setup back buffer
// -----------------
- const ::Size aSize(
+ const ::Size aSize(
static_cast<sal_Int32>( ::std::max( 1.0,
- ceil( rSpriteSize.Width ))), // round up to nearest int,
+ ceil( rSpriteSize.Width ))), // round up to nearest int,
// enforce sprite to have at
// least (1,1) pixel size
static_cast<sal_Int32>( ::std::max( 1.0,
@@ -86,7 +86,7 @@ namespace vclcanvas
pBackBuffer->setSize( aSize );
// create mask backbuffer, with one bit color depth
- BackBufferSharedPtr pBackBufferMask( new BackBuffer( rOutDevProvider->getOutDev(),
+ BackBufferSharedPtr pBackBufferMask( new BackBuffer( rOutDevProvider->getOutDev(),
true ) );
pBackBufferMask->setSize( aSize );
@@ -96,7 +96,7 @@ namespace vclcanvas
// disable font antialiasing (causes ugly shadows otherwise)
pBackBuffer->getOutDev().SetAntialiasing( ANTIALIASING_DISABLE_TEXT );
pBackBufferMask->getOutDev().SetAntialiasing( ANTIALIASING_DISABLE_TEXT );
-
+
// set mask vdev drawmode, such that everything is painted
// black. That leaves us with a binary image, white for
// background, black for painted content
@@ -110,8 +110,8 @@ namespace vclcanvas
// always render into back buffer, don't preserve state (it's
// our private VDev, after all), have notion of alpha
maCanvasHelper.init( rDevice,
- pBackBuffer,
- false,
+ pBackBuffer,
+ false,
true );
maCanvasHelper.setBackgroundOutDev( pBackBufferMask );
@@ -119,7 +119,7 @@ namespace vclcanvas
// setup sprite helper
// -------------------
- maSpriteHelper.init( rSpriteSize,
+ maSpriteHelper.init( rSpriteSize,
rOwningSpriteCanvas,
pBackBuffer,
pBackBufferMask,
@@ -154,7 +154,7 @@ namespace vclcanvas
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
-
+
return aRet;
}
@@ -173,20 +173,20 @@ namespace vclcanvas
{
SolarMutexGuard aGuard;
- maSpriteHelper.redraw( rOutDev,
- rOrigOutputPos,
- mbSurfaceDirty,
+ maSpriteHelper.redraw( rOutDev,
+ rOrigOutputPos,
+ mbSurfaceDirty,
bBufferedUpdate );
-
+
mbSurfaceDirty = false;
}
- bool CanvasCustomSprite::repaint( const GraphicObjectSharedPtr& rGrf,
+ bool CanvasCustomSprite::repaint( const GraphicObjectSharedPtr& rGrf,
const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
- const ::Point& rPt,
- const ::Size& rSz,
- const GraphicAttr& rAttr ) const
+ const ::Point& rPt,
+ const ::Size& rSz,
+ const GraphicAttr& rAttr ) const
{
SolarMutexGuard aGuard;
diff --git a/canvas/source/vcl/canvascustomsprite.hxx b/canvas/source/vcl/canvascustomsprite.hxx
index 1753f80194d9..0990e950e16d 100644
--- a/canvas/source/vcl/canvascustomsprite.hxx
+++ b/canvas/source/vcl/canvascustomsprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ namespace vclcanvas
typedef ::cppu::WeakComponentImplHelper4< ::com::sun::star::rendering::XCustomSprite,
::com::sun::star::rendering::XBitmapCanvas,
::com::sun::star::rendering::XIntegerBitmap,
- ::com::sun::star::lang::XServiceInfo > CanvasCustomSpriteBase_Base;
+ ::com::sun::star::lang::XServiceInfo > CanvasCustomSpriteBase_Base;
/** Mixin Sprite
Have to mixin the Sprite interface before deriving from
@@ -83,10 +83,10 @@ namespace vclcanvas
};
typedef ::canvas::CanvasCustomSpriteBase< CanvasCustomSpriteSpriteBase_Base,
- SpriteHelper,
- CanvasHelper,
+ SpriteHelper,
+ CanvasHelper,
tools::LocalGuard,
- ::cppu::OWeakObject > CanvasCustomSpriteBaseT;
+ ::cppu::OWeakObject > CanvasCustomSpriteBaseT;
/* Definition of CanvasCustomSprite class */
@@ -107,7 +107,7 @@ namespace vclcanvas
// Classname Base doing refcount Base implementing the XComponent interface
// | | |
// V V V
- DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( CanvasCustomSprite, CanvasCustomSpriteBase_Base, ::cppu::WeakComponentImplHelperBase );
+ DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( CanvasCustomSprite, CanvasCustomSpriteBase_Base, ::cppu::WeakComponentImplHelperBase );
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
@@ -125,7 +125,7 @@ namespace vclcanvas
virtual bool repaint( const GraphicObjectSharedPtr& rGrf,
const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState,
- const ::Point& rPt,
+ const ::Point& rPt,
const ::Size& rSz,
const GraphicAttr& rAttr ) const;
};
diff --git a/canvas/source/vcl/canvasfont.cxx b/canvas/source/vcl/canvasfont.cxx
index 71962cf3b45c..c968150705f2 100644
--- a/canvas/source/vcl/canvasfont.cxx
+++ b/canvas/source/vcl/canvasfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,9 +46,9 @@ using namespace ::com::sun::star;
namespace vclcanvas
{
- CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
- const uno::Sequence< beans::PropertyValue >& ,
- const geometry::Matrix2D& rFontMatrix,
+ CanvasFont::CanvasFont( const rendering::FontRequest& rFontRequest,
+ const uno::Sequence< beans::PropertyValue >& ,
+ const geometry::Matrix2D& rFontMatrix,
rendering::XGraphicDevice& rDevice,
const OutDevProviderSharedPtr& rOutDevProvider ) :
CanvasFont_Base( m_aMutex ),
@@ -83,13 +83,13 @@ namespace vclcanvas
const Size aSize = rOutDev.GetFontMetric( *maFont ).GetSize();
const double fDividend( rFontMatrix.m10 + rFontMatrix.m11 );
- double fStretch = (rFontMatrix.m00 + rFontMatrix.m01);
-
+ double fStretch = (rFontMatrix.m00 + rFontMatrix.m01);
+
if( !::basegfx::fTools::equalZero( fDividend) )
fStretch /= fDividend;
-
+
const long nNewWidth = ::basegfx::fround( aSize.Width() * fStretch );
-
+
maFont->SetWidth( nNewWidth );
rOutDev.EnableMapMode(bOldMapState);
@@ -111,10 +111,10 @@ namespace vclcanvas
if( !mpRefDevice.is() )
return uno::Reference< rendering::XTextLayout >(); // we're disposed
- return new TextLayout( aText,
- nDirection,
- nRandomSeed,
- Reference( this ),
+ return new TextLayout( aText,
+ nDirection,
+ nRandomSeed,
+ Reference( this ),
mpRefDevice,
mpOutDevProvider);
}
diff --git a/canvas/source/vcl/canvasfont.hxx b/canvas/source/vcl/canvasfont.hxx
index 44cc9631f4f9..b58d0c8939a7 100644
--- a/canvas/source/vcl/canvasfont.hxx
+++ b/canvas/source/vcl/canvasfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace vclcanvas
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XCanvasFont,
::com::sun::star::lang::XServiceInfo > CanvasFont_Base;
- class CanvasFont : public ::comphelper::OBaseMutex,
+ class CanvasFont : public ::comphelper::OBaseMutex,
public CanvasFont_Base,
private ::boost::noncopyable
{
@@ -66,9 +66,9 @@ namespace vclcanvas
CanvasFont,
::com::sun::star::rendering::XCanvasFont > Reference;
- CanvasFont( const ::com::sun::star::rendering::FontRequest& fontRequest,
- const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
- const ::com::sun::star::geometry::Matrix2D& rFontMatrix,
+ CanvasFont( const ::com::sun::star::rendering::FontRequest& fontRequest,
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::geometry::Matrix2D& rFontMatrix,
::com::sun::star::rendering::XGraphicDevice& rDevice,
const OutDevProviderSharedPtr& rOutDevProvider );
diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx
index 7ae02c7c3492..6946d256b387 100644
--- a/canvas/source/vcl/canvashelper.cxx
+++ b/canvas/source/vcl/canvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,7 +79,7 @@ namespace vclcanvas
basegfx::B2DLineJoin b2DJoineFromJoin( sal_Int8 nJoinType )
{
switch( nJoinType )
- {
+ {
case rendering::PathJoinType::NONE:
return basegfx::B2DLINEJOIN_NONE;
@@ -119,26 +119,26 @@ namespace vclcanvas
}
void CanvasHelper::init( rendering::XGraphicDevice& rDevice,
- const OutDevProviderSharedPtr& rOutDev,
- bool bProtect,
- bool bHaveAlpha )
+ const OutDevProviderSharedPtr& rOutDev,
+ bool bProtect,
+ bool bHaveAlpha )
{
// cast away const, need to change refcount (as this is
// ~invisible to client code, still logically const)
- mpDevice = &rDevice;
+ mpDevice = &rDevice;
mbHaveAlpha = bHaveAlpha;
setOutDev( rOutDev, bProtect );
}
- void CanvasHelper::setOutDev( const OutDevProviderSharedPtr& rOutDev,
- bool bProtect )
+ void CanvasHelper::setOutDev( const OutDevProviderSharedPtr& rOutDev,
+ bool bProtect )
{
if( bProtect )
mpProtectedOutDev = rOutDev;
else
mpProtectedOutDev.reset();
-
+
mpOutDev = rOutDev;
}
@@ -165,7 +165,7 @@ namespace vclcanvas
if( mp2ndOutDev )
{
OutputDevice& rOutDev2( mp2ndOutDev->getOutDev() );
-
+
rOutDev2.SetDrawMode( DRAWMODE_DEFAULT );
rOutDev2.EnableMapMode( FALSE );
rOutDev2.SetLineColor( COL_TRANSPARENT );
@@ -178,10 +178,10 @@ namespace vclcanvas
}
}
- void CanvasHelper::drawPoint( const rendering::XCanvas* ,
- const geometry::RealPoint2D& aPoint,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasHelper::drawPoint( const rendering::XCanvas* ,
+ const geometry::RealPoint2D& aPoint,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
// are we disposed?
if( mpOutDev )
@@ -200,11 +200,11 @@ namespace vclcanvas
}
}
- void CanvasHelper::drawLine( const rendering::XCanvas* ,
- const geometry::RealPoint2D& aStartRealPoint2D,
- const geometry::RealPoint2D& aEndRealPoint2D,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasHelper::drawLine( const rendering::XCanvas* ,
+ const geometry::RealPoint2D& aStartRealPoint2D,
+ const geometry::RealPoint2D& aEndRealPoint2D,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
// are we disposed?
if( mpOutDev )
@@ -225,24 +225,24 @@ namespace vclcanvas
}
}
- void CanvasHelper::drawBezier( const rendering::XCanvas* ,
- const geometry::RealBezierSegment2D& aBezierSegment,
- const geometry::RealPoint2D& _aEndPoint,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ void CanvasHelper::drawBezier( const rendering::XCanvas* ,
+ const geometry::RealBezierSegment2D& aBezierSegment,
+ const geometry::RealPoint2D& _aEndPoint,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
if( mpOutDev )
{
tools::OutDevStateKeeper aStateKeeper( mpProtectedOutDev );
setupOutDevState( viewState, renderState, LINE_COLOR );
- const Point& rStartPoint( tools::mapRealPoint2D( geometry::RealPoint2D(aBezierSegment.Px,
+ const Point& rStartPoint( tools::mapRealPoint2D( geometry::RealPoint2D(aBezierSegment.Px,
aBezierSegment.Py),
viewState, renderState ) );
- const Point& rCtrlPoint1( tools::mapRealPoint2D( geometry::RealPoint2D(aBezierSegment.C1x,
+ const Point& rCtrlPoint1( tools::mapRealPoint2D( geometry::RealPoint2D(aBezierSegment.C1x,
aBezierSegment.C1y),
viewState, renderState ) );
- const Point& rCtrlPoint2( tools::mapRealPoint2D( geometry::RealPoint2D(aBezierSegment.C2x,
+ const Point& rCtrlPoint2( tools::mapRealPoint2D( geometry::RealPoint2D(aBezierSegment.C2x,
aBezierSegment.C2y),
viewState, renderState ) );
const Point& rEndPoint( tools::mapRealPoint2D( _aEndPoint,
@@ -250,13 +250,13 @@ namespace vclcanvas
::Polygon aPoly(4);
aPoly.SetPoint( rStartPoint, 0 );
- aPoly.SetFlags( 0, POLY_NORMAL );
+ aPoly.SetFlags( 0, POLY_NORMAL );
aPoly.SetPoint( rCtrlPoint1, 1 );
- aPoly.SetFlags( 1, POLY_CONTROL );
+ aPoly.SetFlags( 1, POLY_CONTROL );
aPoly.SetPoint( rCtrlPoint2, 2 );
- aPoly.SetFlags( 2, POLY_CONTROL );
+ aPoly.SetFlags( 2, POLY_CONTROL );
aPoly.SetPoint( rEndPoint, 3 );
- aPoly.SetFlags( 3, POLY_NORMAL );
+ aPoly.SetFlags( 3, POLY_NORMAL );
// TODO(F2): alpha
mpOutDev->getOutDev().DrawPolygon( aPoly );
@@ -265,10 +265,10 @@ namespace vclcanvas
}
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawPolyPolygon( const rendering::XCanvas* ,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawPolyPolygon( const rendering::XCanvas* ,
const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
ENSURE_ARG_OR_THROW( xPolyPolygon.is(),
"polygon is NULL");
@@ -278,14 +278,14 @@ namespace vclcanvas
tools::OutDevStateKeeper aStateKeeper( mpProtectedOutDev );
setupOutDevState( viewState, renderState, LINE_COLOR );
- const ::basegfx::B2DPolyPolygon& rPolyPoly(
+ const ::basegfx::B2DPolyPolygon& rPolyPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon) );
const PolyPolygon aPolyPoly( tools::mapPolyPolygon( rPolyPoly, viewState, renderState ) );
if( rPolyPoly.isClosed() )
{
mpOutDev->getOutDev().DrawPolyPolygon( aPolyPoly );
-
+
if( mp2ndOutDev )
mp2ndOutDev->getOutDev().DrawPolyPolygon( aPolyPoly );
}
@@ -303,7 +303,7 @@ namespace vclcanvas
for( USHORT i=0; i<nSize; ++i )
{
mpOutDev->getOutDev().DrawPolyLine( aPolyPoly[i] );
-
+
if( mp2ndOutDev )
mp2ndOutDev->getOutDev().DrawPolyLine( aPolyPoly[i] );
}
@@ -314,11 +314,11 @@ namespace vclcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokePolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const rendering::StrokeAttributes& strokeAttributes )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokePolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const rendering::StrokeAttributes& strokeAttributes )
{
ENSURE_ARG_OR_THROW( xPolyPolygon.is(),
"polygon is NULL");
@@ -334,7 +334,7 @@ namespace vclcanvas
strokeAttributes.StrokeWidth);
aLinePixelSize *= aMatrix;
- ::basegfx::B2DPolyPolygon aPolyPoly(
+ ::basegfx::B2DPolyPolygon aPolyPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon) );
if( aPolyPoly.areControlPointsUsed() )
@@ -355,11 +355,11 @@ namespace vclcanvas
{
// AW: new interface; You may also get gaps in the same run now
basegfx::tools::applyLineDashing(aPolyPoly.getB2DPolygon(i), aDashArray, &aDashedPolyPoly);
- //aDashedPolyPoly.append(
+ //aDashedPolyPoly.append(
// ::basegfx::tools::applyLineDashing( aPolyPoly.getB2DPolygon(i),
// aDashArray ) );
}
-
+
aPolyPoly = aDashedPolyPoly;
}
@@ -376,7 +376,7 @@ namespace vclcanvas
{
// render as a 'thick' line
setupOutDevState( viewState, renderState, FILL_COLOR );
-
+
for( sal_uInt32 i=0; i<aPolyPoly.count(); ++i )
{
// TODO(F2): Use MiterLimit from StrokeAttributes,
@@ -390,7 +390,7 @@ namespace vclcanvas
// AW: New interface, will create bezier polygons now
aStrokedPolyPoly.append(basegfx::tools::createAreaGeometry(
aPolyPoly.getB2DPolygon(i), strokeAttributes.StrokeWidth*0.5, b2DJoineFromJoin(strokeAttributes.JoinType)));
- //aStrokedPolyPoly.append(
+ //aStrokedPolyPoly.append(
// ::basegfx::tools::createAreaGeometryForPolygon( aPolyPoly.getB2DPolygon(i),
// strokeAttributes.StrokeWidth*0.5,
// b2DJoineFromJoin(strokeAttributes.JoinType) ) );
@@ -400,7 +400,7 @@ namespace vclcanvas
// transform only _now_, all the StrokeAttributes are in
// user coordinates.
aStrokedPolyPoly.transform( aMatrix );
-
+
const PolyPolygon aVCLPolyPoly( aStrokedPolyPoly );
// TODO(F2): When using alpha here, must handle that via
@@ -411,7 +411,7 @@ namespace vclcanvas
// via OutDev::DrawPolyPolygon(), on/off fill would
// generate off areas on those self-intersections.
USHORT nSize( aVCLPolyPoly.Count() );
-
+
for( USHORT i=0; i<nSize; ++i )
{
if( aStrokedPolyPoly.getB2DPolygon( i ).isClosed() ) {
@@ -440,40 +440,40 @@ namespace vclcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& ,
- const rendering::ViewState& ,
- const rendering::RenderState& ,
- const uno::Sequence< rendering::Texture >& ,
- const rendering::StrokeAttributes& )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTexturedPolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& ,
+ const rendering::ViewState& ,
+ const rendering::RenderState& ,
+ const uno::Sequence< rendering::Texture >& ,
+ const rendering::StrokeAttributes& )
{
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& ,
- const rendering::ViewState& ,
- const rendering::RenderState& ,
- const uno::Sequence< rendering::Texture >& ,
- const uno::Reference< geometry::XMapping2D >& ,
- const rendering::StrokeAttributes& )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::strokeTextureMappedPolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& ,
+ const rendering::ViewState& ,
+ const rendering::RenderState& ,
+ const uno::Sequence< rendering::Texture >& ,
+ const uno::Reference< geometry::XMapping2D >& ,
+ const rendering::StrokeAttributes& )
{
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XPolyPolygon2D > CanvasHelper::queryStrokeShapes( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& ,
- const rendering::ViewState& ,
- const rendering::RenderState& ,
- const rendering::StrokeAttributes& )
+ uno::Reference< rendering::XPolyPolygon2D > CanvasHelper::queryStrokeShapes( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& ,
+ const rendering::ViewState& ,
+ const rendering::RenderState& ,
+ const rendering::StrokeAttributes& )
{
return uno::Reference< rendering::XPolyPolygon2D >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* ,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillPolyPolygon( const rendering::XCanvas* ,
const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
ENSURE_ARG_OR_THROW( xPolyPolygon.is(),
"polygon is NULL");
@@ -487,7 +487,7 @@ namespace vclcanvas
::basegfx::B2DPolyPolygon aB2DPolyPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon));
aB2DPolyPoly.setClosed(true); // ensure closed poly, otherwise VCL does not fill
- const PolyPolygon aPolyPoly( tools::mapPolyPolygon(
+ const PolyPolygon aPolyPoly( tools::mapPolyPolygon(
aB2DPolyPoly,
viewState, renderState ) );
const bool bSourceAlpha( renderState.CompositeOperation == rendering::CompositeOperation::SOURCE );
@@ -531,46 +531,46 @@ namespace vclcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* ,
- const uno::Reference< rendering::XPolyPolygon2D >& ,
- const rendering::ViewState& ,
- const rendering::RenderState& ,
- const uno::Sequence< rendering::Texture >& ,
- const uno::Reference< geometry::XMapping2D >& )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTextureMappedPolyPolygon( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XPolyPolygon2D >& ,
+ const rendering::ViewState& ,
+ const rendering::RenderState& ,
+ const uno::Sequence< rendering::Texture >& ,
+ const uno::Reference< geometry::XMapping2D >& )
{
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* ,
- const rendering::FontRequest& fontRequest,
- const uno::Sequence< beans::PropertyValue >& extraFontProperties,
- const geometry::Matrix2D& fontMatrix )
+ uno::Reference< rendering::XCanvasFont > CanvasHelper::createFont( const rendering::XCanvas* ,
+ const rendering::FontRequest& fontRequest,
+ const uno::Sequence< beans::PropertyValue >& extraFontProperties,
+ const geometry::Matrix2D& fontMatrix )
{
if( mpOutDev && mpDevice )
{
// TODO(F2): font properties and font matrix
return uno::Reference< rendering::XCanvasFont >(
- new CanvasFont(fontRequest, extraFontProperties, fontMatrix,
+ new CanvasFont(fontRequest, extraFontProperties, fontMatrix,
*mpDevice, mpOutDev) );
}
return uno::Reference< rendering::XCanvasFont >();
}
- uno::Sequence< rendering::FontInfo > CanvasHelper::queryAvailableFonts( const rendering::XCanvas* ,
- const rendering::FontInfo& ,
- const uno::Sequence< beans::PropertyValue >& )
+ uno::Sequence< rendering::FontInfo > CanvasHelper::queryAvailableFonts( const rendering::XCanvas* ,
+ const rendering::FontInfo& ,
+ const uno::Sequence< beans::PropertyValue >& )
{
// TODO(F2)
return uno::Sequence< rendering::FontInfo >();
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawText( const rendering::XCanvas* ,
- const rendering::StringContext& text,
- const uno::Reference< rendering::XCanvasFont >& xFont,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- sal_Int8 textDirection )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawText( const rendering::XCanvas* ,
+ const rendering::StringContext& text,
+ const uno::Reference< rendering::XCanvasFont >& xFont,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ sal_Int8 textDirection )
{
ENSURE_ARG_OR_THROW( xFont.is(),
"font is NULL");
@@ -624,10 +624,10 @@ namespace vclcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawTextLayout( const rendering::XCanvas* ,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawTextLayout( const rendering::XCanvas* ,
const uno::Reference< rendering::XTextLayout >& xLayoutedText,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
ENSURE_ARG_OR_THROW( xLayoutedText.is(),
"layout is NULL");
@@ -666,11 +666,11 @@ namespace vclcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::implDrawBitmap( const rendering::XCanvas* pCanvas,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::implDrawBitmap( const rendering::XCanvas* pCanvas,
const uno::Reference< rendering::XBitmap >& xBitmap,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- bool bModulateColors )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ bool bModulateColors )
{
ENSURE_ARG_OR_THROW( xBitmap.is(),
"bitmap is NULL");
@@ -736,12 +736,12 @@ namespace vclcanvas
// color modulation is requested), decompose to check
// whether GraphicObject suffices
::basegfx::B2DVector aScale;
- double nRotate;
- double nShearX;
+ double nRotate;
+ double nShearX;
aMatrix.decompose( aScale, aOutputPos, nRotate, nShearX );
-
- GraphicAttr aGrfAttr;
- GraphicObjectSharedPtr pGrfObj;
+
+ GraphicAttr aGrfAttr;
+ GraphicObjectSharedPtr pGrfObj;
::Size aBmpSize( aBmpEx.GetSizePixel() );
@@ -759,8 +759,8 @@ namespace vclcanvas
// transOrig*transModulate (which would be
// equivalent to the origAlpha*modulateAlpha the
// DX canvas performs)
- aGrfAttr.SetTransparency(
- static_cast< BYTE >(
+ aGrfAttr.SetTransparency(
+ static_cast< BYTE >(
::basegfx::fround( 255.0*( 1.0 - nAlphaModulation ) ) ) );
}
@@ -788,8 +788,8 @@ namespace vclcanvas
// modify output position, to account for the fact
// that transformBitmap() always normalizes its output
// bitmap into the smallest enclosing box.
- ::basegfx::B2DRectangle aDestRect;
- ::canvas::tools::calcTransformedRectBounds( aDestRect,
+ ::basegfx::B2DRectangle aDestRect;
+ ::canvas::tools::calcTransformedRectBounds( aDestRect,
::basegfx::B2DRectangle(0,
0,
aBmpSize.Width(),
@@ -802,7 +802,7 @@ namespace vclcanvas
// complex transformation, use generic affine bitmap
// transformation
aBmpEx = tools::transformBitmap( aBmpEx,
- aMatrix,
+ aMatrix,
renderState.DeviceColor,
tools::MODULATE_NONE );
@@ -831,7 +831,7 @@ namespace vclcanvas
aPt,
aSz,
&aGrfAttr );
-
+
// created GraphicObject, which possibly cached
// display bitmap - return cache object, to retain
// that information.
@@ -854,24 +854,24 @@ namespace vclcanvas
return uno::Reference< rendering::XCachedPrimitive >(NULL);
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmap( const rendering::XCanvas* pCanvas,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmap( const rendering::XCanvas* pCanvas,
const uno::Reference< rendering::XBitmap >& xBitmap,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- return implDrawBitmap( pCanvas,
+ return implDrawBitmap( pCanvas,
xBitmap,
viewState,
renderState,
false );
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* pCanvas,
- const uno::Reference< rendering::XBitmap >& xBitmap,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::drawBitmapModulated( const rendering::XCanvas* pCanvas,
+ const uno::Reference< rendering::XBitmap >& xBitmap,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
- return implDrawBitmap( pCanvas,
+ return implDrawBitmap( pCanvas,
xBitmap,
viewState,
renderState,
@@ -885,18 +885,18 @@ namespace vclcanvas
return uno::Reference< rendering::XGraphicDevice >(mpDevice);
}
- void CanvasHelper::copyRect( const rendering::XCanvas* ,
- const uno::Reference< rendering::XBitmapCanvas >& ,
- const geometry::RealRectangle2D& ,
- const rendering::ViewState& ,
- const rendering::RenderState& ,
- const geometry::RealRectangle2D& ,
- const rendering::ViewState& ,
- const rendering::RenderState& )
+ void CanvasHelper::copyRect( const rendering::XCanvas* ,
+ const uno::Reference< rendering::XBitmapCanvas >& ,
+ const geometry::RealRectangle2D& ,
+ const rendering::ViewState& ,
+ const rendering::RenderState& ,
+ const geometry::RealRectangle2D& ,
+ const rendering::ViewState& ,
+ const rendering::RenderState& )
{
// TODO(F1)
}
-
+
geometry::IntegerSize2D CanvasHelper::getSize()
{
if( !mpOutDev.get() )
@@ -905,8 +905,8 @@ namespace vclcanvas
return ::vcl::unotools::integerSize2DFromSize( mpOutDev->getOutDev().GetOutputSizePixel() );
}
- uno::Reference< rendering::XBitmap > CanvasHelper::getScaledBitmap( const geometry::RealSize2D& newSize,
- sal_Bool beFast )
+ uno::Reference< rendering::XBitmap > CanvasHelper::getScaledBitmap( const geometry::RealSize2D& newSize,
+ sal_Bool beFast )
{
if( !mpOutDev.get() || !mpDevice )
return uno::Reference< rendering::XBitmap >(); // we're disposed
@@ -922,14 +922,14 @@ namespace vclcanvas
Bitmap aBitmap( rOutDev.GetBitmap(aEmptyPoint, aBmpSize) );
- aBitmap.Scale( ::vcl::unotools::sizeFromRealSize2D(newSize),
+ aBitmap.Scale( ::vcl::unotools::sizeFromRealSize2D(newSize),
beFast ? BMP_SCALE_FAST : BMP_SCALE_INTERPOLATE );
- return uno::Reference< rendering::XBitmap >(
+ return uno::Reference< rendering::XBitmap >(
new CanvasBitmap( aBitmap, *mpDevice, mpOutDev ) );
}
- uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& rLayout,
+ uno::Sequence< sal_Int8 > CanvasHelper::getData( rendering::IntegerBitmapLayout& rLayout,
const geometry::IntegerRectangle2D& rect )
{
if( !mpOutDev.get() )
@@ -938,14 +938,14 @@ namespace vclcanvas
rLayout = getMemoryLayout();
// TODO(F2): Support alpha canvas here
- const Rectangle aRect( ::vcl::unotools::rectangleFromIntegerRectangle2D(rect) );
+ const Rectangle aRect( ::vcl::unotools::rectangleFromIntegerRectangle2D(rect) );
OutputDevice& rOutDev( mpOutDev->getOutDev() );
tools::OutDevStateKeeper aStateKeeper( mpProtectedOutDev );
rOutDev.EnableMapMode( FALSE );
- Bitmap aBitmap( rOutDev.GetBitmap(aRect.TopLeft(),
+ Bitmap aBitmap( rOutDev.GetBitmap(aRect.TopLeft(),
aRect.GetSize()) );
ScopedBitmapReadAccess pReadAccess( aBitmap.AcquireReadAccess(),
@@ -959,7 +959,7 @@ namespace vclcanvas
rLayout.ScanLines = nHeight;
rLayout.ScanLineBytes = nWidth*4;
- rLayout.ScanLineStride = rLayout.ScanLineBytes;
+ rLayout.ScanLineStride = rLayout.ScanLineBytes;
uno::Sequence< sal_Int8 > aRes( 4*nWidth*nHeight );
sal_Int8* pRes = aRes.getArray();
@@ -979,9 +979,9 @@ namespace vclcanvas
return aRes;
}
- void CanvasHelper::setData( const uno::Sequence< sal_Int8 >& data,
- const rendering::IntegerBitmapLayout& aLayout,
- const geometry::IntegerRectangle2D& rect )
+ void CanvasHelper::setData( const uno::Sequence< sal_Int8 >& data,
+ const rendering::IntegerBitmapLayout& aLayout,
+ const geometry::IntegerRectangle2D& rect )
{
if( !mpOutDev.get() )
return; // we're disposed
@@ -999,7 +999,7 @@ namespace vclcanvas
rOutDev.EnableMapMode( FALSE );
const Rectangle aRect( ::vcl::unotools::rectangleFromIntegerRectangle2D(rect) );
- const USHORT nBitCount( ::std::min( (USHORT)24U,
+ const USHORT nBitCount( ::std::min( (USHORT)24U,
(USHORT)rOutDev.GetBitCount() ) );
const BitmapPalette* pPalette = NULL;
@@ -1013,7 +1013,7 @@ namespace vclcanvas
const Size aSize(1,1);
Bitmap aTmpBitmap( rOutDev.GetBitmap( aEmptyPoint,
aSize ) );
-
+
ScopedBitmapReadAccess pReadAccess( aTmpBitmap.AcquireReadAccess(),
aTmpBitmap );
@@ -1028,11 +1028,11 @@ namespace vclcanvas
{
ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
aBitmap );
-
+
ENSURE_OR_THROW( pWriteAccess.get() != NULL,
"Could not acquire write access to OutDev bitmap" );
- // for the time being, always read as RGB
+ // for the time being, always read as RGB
const sal_Int32 nWidth( rect.X2 - rect.X1 );
const sal_Int32 nHeight( rect.Y2 - rect.Y1 );
int x, y, nCurrPos(0);
@@ -1112,9 +1112,9 @@ namespace vclcanvas
}
}
- void CanvasHelper::setPixel( const uno::Sequence< sal_Int8 >& color,
- const rendering::IntegerBitmapLayout& rLayout,
- const geometry::IntegerPoint2D& pos )
+ void CanvasHelper::setPixel( const uno::Sequence< sal_Int8 >& color,
+ const rendering::IntegerBitmapLayout& rLayout,
+ const geometry::IntegerPoint2D& pos )
{
if( !mpOutDev.get() )
return; // we're disposed
@@ -1126,11 +1126,11 @@ namespace vclcanvas
const Size aBmpSize( rOutDev.GetOutputSizePixel() );
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aBmpSize.Width(),
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aBmpSize.Width(),
"X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aBmpSize.Height(),
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aBmpSize.Height(),
"Y coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( color.getLength() > 3,
+ ENSURE_ARG_OR_THROW( color.getLength() > 3,
"not enough color components" );
const rendering::IntegerBitmapLayout aRefLayout( getMemoryLayout() );
@@ -1141,11 +1141,11 @@ namespace vclcanvas
"Mismatching memory layout" );
// TODO(F2): Support alpha canvas here
- rOutDev.DrawPixel( ::vcl::unotools::pointFromIntegerPoint2D( pos ),
+ rOutDev.DrawPixel( ::vcl::unotools::pointFromIntegerPoint2D( pos ),
::canvas::tools::stdIntSequenceToColor( color ));
}
- uno::Sequence< sal_Int8 > CanvasHelper::getPixel( rendering::IntegerBitmapLayout& rLayout,
+ uno::Sequence< sal_Int8 > CanvasHelper::getPixel( rendering::IntegerBitmapLayout& rLayout,
const geometry::IntegerPoint2D& pos )
{
if( !mpOutDev.get() )
@@ -1154,7 +1154,7 @@ namespace vclcanvas
rLayout = getMemoryLayout();
rLayout.ScanLines = 1;
rLayout.ScanLineBytes = 4;
- rLayout.ScanLineStride = rLayout.ScanLineBytes;
+ rLayout.ScanLineStride = rLayout.ScanLineBytes;
OutputDevice& rOutDev( mpOutDev->getOutDev() );
@@ -1163,15 +1163,15 @@ namespace vclcanvas
const Size aBmpSize( rOutDev.GetOutputSizePixel() );
- ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aBmpSize.Width(),
+ ENSURE_ARG_OR_THROW( pos.X >= 0 && pos.X < aBmpSize.Width(),
"X coordinate out of bounds" );
- ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aBmpSize.Height(),
+ ENSURE_ARG_OR_THROW( pos.Y >= 0 && pos.Y < aBmpSize.Height(),
"Y coordinate out of bounds" );
// TODO(F2): Support alpha canvas here
return ::canvas::tools::colorToStdIntSequence(
- rOutDev.GetPixel(
- ::vcl::unotools::pointFromIntegerPoint2D( pos )));
+ rOutDev.GetPixel(
+ ::vcl::unotools::pointFromIntegerPoint2D( pos )));
}
rendering::IntegerBitmapLayout CanvasHelper::getMemoryLayout()
@@ -1182,11 +1182,11 @@ namespace vclcanvas
return ::canvas::tools::getStdMemoryLayout(getSize());
}
- int CanvasHelper::setupOutDevState( const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- ColorType eColorType ) const
+ int CanvasHelper::setupOutDevState( const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ ColorType eColorType ) const
{
- ENSURE_OR_THROW( mpOutDev.get(),
+ ENSURE_OR_THROW( mpOutDev.get(),
"outdev null. Are we disposed?" );
::canvas::tools::verifyInput( renderState,
@@ -1215,7 +1215,7 @@ namespace vclcanvas
if( viewState.Clip.is() )
{
- ::basegfx::B2DPolyPolygon aClipPoly(
+ ::basegfx::B2DPolyPolygon aClipPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(viewState.Clip) );
if( aClipPoly.count() )
@@ -1223,9 +1223,9 @@ namespace vclcanvas
// setup non-empty clipping
::basegfx::B2DHomMatrix aMatrix;
aClipPoly.transform(
- ::basegfx::unotools::homMatrixFromAffineMatrix( aMatrix,
+ ::basegfx::unotools::homMatrixFromAffineMatrix( aMatrix,
viewState.AffineTransform ) );
-
+
aClipRegion = Region::GetRegionFromPolyPolygon( ::PolyPolygon( aClipPoly ) );
}
else
@@ -1237,12 +1237,12 @@ namespace vclcanvas
if( renderState.Clip.is() )
{
- ::basegfx::B2DPolyPolygon aClipPoly(
+ ::basegfx::B2DPolyPolygon aClipPoly(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(renderState.Clip) );
::basegfx::B2DHomMatrix aMatrix;
aClipPoly.transform(
- ::canvas::tools::mergeViewAndRenderTransform( aMatrix,
+ ::canvas::tools::mergeViewAndRenderTransform( aMatrix,
viewState,
renderState ) );
@@ -1268,14 +1268,14 @@ namespace vclcanvas
if( aClipRegion.IsNull() )
{
rOutDev.SetClipRegion();
-
+
if( p2ndOutDev )
p2ndOutDev->SetClipRegion();
}
else
{
rOutDev.SetClipRegion( aClipRegion );
-
+
if( p2ndOutDev )
p2ndOutDev->SetClipRegion( aClipRegion );
}
@@ -1327,7 +1327,7 @@ namespace vclcanvas
break;
default:
- ENSURE_OR_THROW( false,
+ ENSURE_OR_THROW( false,
"Unexpected color type");
break;
}
@@ -1336,12 +1336,12 @@ namespace vclcanvas
return nTransparency;
}
- bool CanvasHelper::setupTextOutput( ::Point& o_rOutPos,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const uno::Reference< rendering::XCanvasFont >& xFont ) const
+ bool CanvasHelper::setupTextOutput( ::Point& o_rOutPos,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const uno::Reference< rendering::XCanvasFont >& xFont ) const
{
- ENSURE_OR_THROW( mpOutDev.get(),
+ ENSURE_OR_THROW( mpOutDev.get(),
"outdev null. Are we disposed?" );
setupOutDevState( viewState, renderState, TEXT_COLOR );
@@ -1351,7 +1351,7 @@ namespace vclcanvas
::Font aVCLFont;
CanvasFont* pFont = dynamic_cast< CanvasFont* >( xFont.get() );
-
+
ENSURE_ARG_OR_THROW( pFont,
"Font not compatible with this canvas" );
@@ -1381,12 +1381,12 @@ namespace vclcanvas
return true;
}
- bool CanvasHelper::repaint( const GraphicObjectSharedPtr& rGrf,
+ bool CanvasHelper::repaint( const GraphicObjectSharedPtr& rGrf,
const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
- const ::Point& rPt,
- const ::Size& rSz,
- const GraphicAttr& rAttr ) const
+ const ::Point& rPt,
+ const ::Size& rSz,
+ const GraphicAttr& rAttr ) const
{
ENSURE_OR_RETURN_FALSE( rGrf,
"Invalid Graphic" );
@@ -1408,7 +1408,7 @@ namespace vclcanvas
return true;
}
}
-
+
void CanvasHelper::flush() const
{
if( mpOutDev && mpOutDev->getOutDev().GetOutDevType() == OUTDEV_WINDOW )
diff --git a/canvas/source/vcl/canvashelper.hxx b/canvas/source/vcl/canvashelper.hxx
index ebc0d58624c7..a54491ca256e 100644
--- a/canvas/source/vcl/canvashelper.hxx
+++ b/canvas/source/vcl/canvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -85,7 +85,7 @@ namespace vclcanvas
When true, hasAlpha() will always return true, otherwise, false.
*/
void init( ::com::sun::star::rendering::XGraphicDevice& rDevice,
- const OutDevProviderSharedPtr& rOutDev,
+ const OutDevProviderSharedPtr& rOutDev,
bool bProtect,
bool bHaveAlpha );
@@ -94,8 +94,8 @@ namespace vclcanvas
This changes the primary output device, where rendering is
sent to.
*/
- void setOutDev( const OutDevProviderSharedPtr& rOutDev,
- bool bProtect);
+ void setOutDev( const OutDevProviderSharedPtr& rOutDev,
+ bool bProtect);
/** Set secondary output device
@@ -110,164 +110,164 @@ namespace vclcanvas
// XCanvas (only providing, not implementing the
// interface. Also note subtle method parameter differences)
void clear();
- void drawPoint( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::geometry::RealPoint2D& aPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- void drawLine( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- void drawBezier( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
- const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokePolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ void drawPoint( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::geometry::RealPoint2D& aPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ void drawLine( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::geometry::RealPoint2D& aStartPoint,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ void drawBezier( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::geometry::RealBezierSegment2D& aBezierSegment,
+ const ::com::sun::star::geometry::RealPoint2D& aEndPoint,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokePolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokeTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokeTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- strokeTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping,
- const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
- queryStrokeShapes( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ strokeTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::geometry::XMapping2D >& xMapping,
+ const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
+ queryStrokeShapes( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
const ::com::sun::star::rendering::StrokeAttributes& strokeAttributes );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- fillTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::rendering::Texture >& textures,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::geometry::XMapping2D >& xMapping );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont >
- createFont( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::rendering::FontRequest& fontRequest,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& extraFontProperties,
- const ::com::sun::star::geometry::Matrix2D& fontMatrix );
-
- ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo >
- queryAvailableFonts( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::rendering::FontInfo& aFilter,
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::PropertyValue >& aFontProperties );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawText( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::rendering::StringContext& text,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvasFont >& xFont,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- sal_Int8 textDirection );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawTextLayout( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XTextLayout >& layoutetText,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawBitmap( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillTexturedPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ fillTextureMappedPolyPolygon( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XPolyPolygon2D >& xPolyPolygon,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::rendering::Texture >& textures,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::geometry::XMapping2D >& xMapping );
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont >
+ createFont( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::rendering::FontRequest& fontRequest,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& extraFontProperties,
+ const ::com::sun::star::geometry::Matrix2D& fontMatrix );
+
+ ::com::sun::star::uno::Sequence< ::com::sun::star::rendering::FontInfo >
+ queryAvailableFonts( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::rendering::FontInfo& aFilter,
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::beans::PropertyValue >& aFontProperties );
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawText( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::rendering::StringContext& text,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvasFont >& xFont,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ sal_Int8 textDirection );
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawTextLayout( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XTextLayout >& layoutetText,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawBitmap( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- drawBitmapModulated( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ drawBitmapModulated( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >
getDevice();
// BitmapCanvasHelper functionality
// ================================
- void copyRect( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
- const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
- const ::com::sun::star::rendering::ViewState& sourceViewState,
- const ::com::sun::star::rendering::RenderState& sourceRenderState,
- const ::com::sun::star::geometry::RealRectangle2D& destRect,
- const ::com::sun::star::rendering::ViewState& destViewState,
- const ::com::sun::star::rendering::RenderState& destRenderState );
-
+ void copyRect( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmapCanvas >& sourceCanvas,
+ const ::com::sun::star::geometry::RealRectangle2D& sourceRect,
+ const ::com::sun::star::rendering::ViewState& sourceViewState,
+ const ::com::sun::star::rendering::RenderState& sourceRenderState,
+ const ::com::sun::star::geometry::RealRectangle2D& destRect,
+ const ::com::sun::star::rendering::ViewState& destViewState,
+ const ::com::sun::star::rendering::RenderState& destRenderState );
+
::com::sun::star::geometry::IntegerSize2D getSize();
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > queryBitmapCanvas();
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
- getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
- sal_Bool beFast );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
+ getScaledBitmap( const ::com::sun::star::geometry::RealSize2D& newSize,
+ sal_Bool beFast );
- ::com::sun::star::uno::Sequence< sal_Int8 >
- getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ ::com::sun::star::uno::Sequence< sal_Int8 >
+ getData( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
- void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerRectangle2D& rect );
+ void setData( const ::com::sun::star::uno::Sequence< sal_Int8 >& data,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerRectangle2D& rect );
- void setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
- const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
- const ::com::sun::star::geometry::IntegerPoint2D& pos );
+ void setPixel( const ::com::sun::star::uno::Sequence< sal_Int8 >& color,
+ const ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ const ::com::sun::star::geometry::IntegerPoint2D& pos );
- ::com::sun::star::uno::Sequence< sal_Int8 >
- getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
+ ::com::sun::star::uno::Sequence< sal_Int8 >
+ getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
const ::com::sun::star::geometry::IntegerPoint2D& pos );
::com::sun::star::rendering::IntegerBitmapLayout getMemoryLayout();
@@ -276,7 +276,7 @@ namespace vclcanvas
bool repaint( const GraphicObjectSharedPtr& rGrf,
const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState,
- const ::Point& rPt,
+ const ::Point& rPt,
const ::Size& rSz,
const GraphicAttr& rAttr ) const;
@@ -292,11 +292,11 @@ namespace vclcanvas
{
LINE_COLOR, FILL_COLOR, TEXT_COLOR, IGNORE_COLOR
};
-
+
// returns transparency of color
- int setupOutDevState( const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- ColorType eColorType ) const;
+ int setupOutDevState( const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ ColorType eColorType ) const;
/** Called from XCanvas base classes, to notify that content
is _about_ to change
@@ -326,18 +326,18 @@ namespace vclcanvas
bool mbHaveAlpha;
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
- implDrawBitmap( const ::com::sun::star::rendering::XCanvas* rCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap >& xBitmap,
- const ::com::sun::star::rendering::ViewState& viewState,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCachedPrimitive >
+ implDrawBitmap( const ::com::sun::star::rendering::XCanvas* rCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap >& xBitmap,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState,
- bool bModulateColors );
+ bool bModulateColors );
- bool setupTextOutput( ::Point& o_rOutPos,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont >& xFont ) const;
+ bool setupTextOutput( ::Point& o_rOutPos,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont >& xFont ) const;
};
}
diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx
index 4d08f873deb1..a616ec7c6a9e 100644
--- a/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,19 +79,19 @@ namespace vclcanvas
{
namespace
{
- bool textureFill( OutputDevice& rOutDev,
- GraphicObject& rGraphic,
- const ::Point& rPosPixel,
- const ::Size& rNextTileX,
- const ::Size& rNextTileY,
- sal_Int32 nTilesX,
- sal_Int32 nTilesY,
- const ::Size& rTileSize,
- const GraphicAttr& rAttr)
+ bool textureFill( OutputDevice& rOutDev,
+ GraphicObject& rGraphic,
+ const ::Point& rPosPixel,
+ const ::Size& rNextTileX,
+ const ::Size& rNextTileY,
+ sal_Int32 nTilesX,
+ sal_Int32 nTilesY,
+ const ::Size& rTileSize,
+ const GraphicAttr& rAttr)
{
- BOOL bRet( false );
- Point aCurrPos;
- int nX, nY;
+ BOOL bRet( false );
+ Point aCurrPos;
+ int nX, nY;
for( nY=0; nY < nTilesY; ++nY )
{
@@ -102,11 +102,11 @@ namespace vclcanvas
{
// update return value. This method should return true, if
// at least one of the looped Draws succeeded.
- bRet |= rGraphic.Draw( &rOutDev,
+ bRet |= rGraphic.Draw( &rOutDev,
aCurrPos,
rTileSize,
&rAttr );
-
+
aCurrPos.X() += rNextTileX.Width();
aCurrPos.Y() += rNextTileX.Height();
}
@@ -121,10 +121,10 @@ namespace vclcanvas
Since most of the code for linear and axial gradients are
the same, we've a unified method here
*/
- void fillLinearGradient( OutputDevice& rOutDev,
- const ::basegfx::B2DHomMatrix& rTextureTransform,
- const ::Rectangle& rBounds,
- unsigned int nStepCount,
+ void fillLinearGradient( OutputDevice& rOutDev,
+ const ::basegfx::B2DHomMatrix& rTextureTransform,
+ const ::Rectangle& rBounds,
+ unsigned int nStepCount,
const ::canvas::ParametricPolyPolygon::Values& rValues,
const std::vector< ::Color >& rColors )
{
@@ -137,23 +137,23 @@ namespace vclcanvas
::basegfx::B2DPoint aRightTop( 1.0, 0.0 );
::basegfx::B2DPoint aRightBottom( 1.0, 1.0 );
- aLeftTop *= rTextureTransform;
+ aLeftTop *= rTextureTransform;
aLeftBottom *= rTextureTransform;
- aRightTop *= rTextureTransform;
+ aRightTop *= rTextureTransform;
aRightBottom*= rTextureTransform;
// calc length of bound rect diagonal
- const ::basegfx::B2DVector aBoundRectDiagonal(
+ const ::basegfx::B2DVector aBoundRectDiagonal(
::vcl::unotools::b2DPointFromPoint( rBounds.TopLeft() ) -
::vcl::unotools::b2DPointFromPoint( rBounds.BottomRight() ) );
const double nDiagonalLength( aBoundRectDiagonal.getLength() );
// create direction of gradient:
// _______
- // | | |
+ // | | |
// -> | | | ...
- // | | |
- // -------
+ // | | |
+ // -------
::basegfx::B2DVector aDirection( aRightTop - aLeftTop );
aDirection.normalize();
@@ -165,7 +165,7 @@ namespace vclcanvas
aRightTop,
aRightBottom,
::vcl::unotools::b2DRectangleFromRectangle( rBounds ) );
-
+
// render gradient
// ===============
@@ -184,7 +184,7 @@ namespace vclcanvas
OSL_ENSURE( nStepCount >= 3,
"fillLinearGradient(): stepcount smaller than 3" );
-
+
// fill initial strip (extending two times the bound rect's
// diagonal to the 'left'
// ------------------------------------------------------
@@ -205,7 +205,7 @@ namespace vclcanvas
// iteratively render all other strips
// -----------------------------------
-
+
// ensure that nStepCount matches color stop parity, to
// have a well-defined middle color e.g. for axial
// gradients.
@@ -222,7 +222,7 @@ namespace vclcanvas
double fAlpha;
boost::tuples::tie(nIndex,fAlpha)=aLerper.lerp(double(i)/nStepCount);
- rOutDev.SetFillColor(
+ rOutDev.SetFillColor(
Color( (UINT8)(basegfx::tools::lerp(rColors[nIndex].GetRed(),rColors[nIndex+1].GetRed(),fAlpha)),
(UINT8)(basegfx::tools::lerp(rColors[nIndex].GetGreen(),rColors[nIndex+1].GetGreen(),fAlpha)),
(UINT8)(basegfx::tools::lerp(rColors[nIndex].GetBlue(),rColors[nIndex+1].GetBlue(),fAlpha)) ));
@@ -237,18 +237,18 @@ namespace vclcanvas
// increased by one, to account for the fact that we
// calculate the right border here (whereas the fill
// color is governed by the left edge)
- const ::basegfx::B2DPoint& rPoint3(
- (nStepCount - i-1)/double(nStepCount)*aLeftTop +
+ const ::basegfx::B2DPoint& rPoint3(
+ (nStepCount - i-1)/double(nStepCount)*aLeftTop +
(i+1)/double(nStepCount)*aRightTop );
aTempPoly[1] = ::Point( ::basegfx::fround( rPoint3.getX() ),
::basegfx::fround( rPoint3.getY() ) );
- const ::basegfx::B2DPoint& rPoint4(
- (nStepCount - i-1)/double(nStepCount)*aLeftBottom +
+ const ::basegfx::B2DPoint& rPoint4(
+ (nStepCount - i-1)/double(nStepCount)*aLeftBottom +
(i+1)/double(nStepCount)*aRightBottom );
aTempPoly[2] = ::Point( ::basegfx::fround( rPoint4.getX() ),
::basegfx::fround( rPoint4.getY() ) );
-
+
rOutDev.DrawPolygon( aTempPoly );
}
@@ -294,8 +294,8 @@ namespace vclcanvas
// here, keep it all the way and only change the vertex values
// in the loop below (as ::Polygon is a pimpl class, creating
// one every loop turn would really stress the mem allocator)
- ::basegfx::B2DPolygon aOuterPoly( rGradientPoly );
- ::basegfx::B2DPolygon aInnerPoly;
+ ::basegfx::B2DPolygon aOuterPoly( rGradientPoly );
+ ::basegfx::B2DPolygon aInnerPoly;
// subdivide polygon _before_ rendering, would otherwise have
// to be performed on every loop turn.
@@ -303,7 +303,7 @@ namespace vclcanvas
aOuterPoly = ::basegfx::tools::adaptiveSubdivideByAngle(aOuterPoly);
aInnerPoly = aOuterPoly;
-
+
// only transform outer polygon _after_ copying it into
// aInnerPoly, because inner polygon has to be scaled before
// the actual texture transformation takes place
@@ -313,7 +313,7 @@ namespace vclcanvas
// have to be prefixed by anisotrophic scaling)
::basegfx::B2DHomMatrix aInnerPolygonTransformMatrix;
-
+
// apply scaling (possibly anisotrophic) to inner polygon
// ------------------------------------------------------
@@ -332,7 +332,7 @@ namespace vclcanvas
else if( nAspectRatio < 1.0 )
{
// width < height case
- aInnerPolygonTransformMatrix.scale( 0.0,
+ aInnerPolygonTransformMatrix.scale( 0.0,
1.0 - nAspectRatio );
}
else
@@ -346,11 +346,11 @@ namespace vclcanvas
// apply final matrix to polygon
aInnerPoly.transform( aInnerPolygonTransformMatrix );
-
+
const sal_uInt32 nNumPoints( aOuterPoly.count() );
- ::Polygon aTempPoly( static_cast<USHORT>(nNumPoints+1) );
-
+ ::Polygon aTempPoly( static_cast<USHORT>(nNumPoints+1) );
+
// increase number of steps by one: polygonal gradients have
// the outermost polygon rendered in rColor2, and the
// innermost in rColor1. The innermost polygon will never
@@ -360,7 +360,7 @@ namespace vclcanvas
// | |
// |-------|-------|-------|
// | |
- // 3 2 1 0
+ // 3 2 1 0
//
// This yields 4 tick marks, where 0 is never attained (since
// zero-area polygons typically don't display perceivable
@@ -380,27 +380,27 @@ namespace vclcanvas
for( unsigned int i=1,p; i<nStepCount; ++i )
{
- const double fT( i/double(nStepCount) );
+ const double fT( i/double(nStepCount) );
std::ptrdiff_t nIndex;
double fAlpha;
boost::tuples::tie(nIndex,fAlpha)=aLerper.lerp(fT);
// lerp color
- rOutDev.SetFillColor(
+ rOutDev.SetFillColor(
Color( (UINT8)(basegfx::tools::lerp(rColors[nIndex].GetRed(),rColors[nIndex+1].GetRed(),fAlpha)),
(UINT8)(basegfx::tools::lerp(rColors[nIndex].GetGreen(),rColors[nIndex+1].GetGreen(),fAlpha)),
(UINT8)(basegfx::tools::lerp(rColors[nIndex].GetBlue(),rColors[nIndex+1].GetBlue(),fAlpha)) ));
// scale and render polygon, by interpolating between
- // outer and inner polygon.
+ // outer and inner polygon.
for( p=0; p<nNumPoints; ++p )
{
const ::basegfx::B2DPoint& rOuterPoint( aOuterPoly.getB2DPoint(p) );
const ::basegfx::B2DPoint& rInnerPoint( aInnerPoly.getB2DPoint(p) );
- aTempPoly[(USHORT)p] = ::Point(
+ aTempPoly[(USHORT)p] = ::Point(
basegfx::fround( fT*rInnerPoint.getX() + (1-fT)*rOuterPoint.getX() ),
basegfx::fround( fT*rInnerPoint.getY() + (1-fT)*rOuterPoint.getY() ) );
}
@@ -424,8 +424,8 @@ namespace vclcanvas
// here, keep it all the way and only change the vertex values
// in the loop below (as ::Polygon is a pimpl class, creating
// one every loop turn would really stress the mem allocator)
- ::PolyPolygon aTempPolyPoly;
- ::Polygon aTempPoly2( static_cast<USHORT>(nNumPoints+1) );
+ ::PolyPolygon aTempPolyPoly;
+ ::Polygon aTempPoly2( static_cast<USHORT>(nNumPoints+1) );
aTempPoly2[0] = rBounds.TopLeft();
aTempPoly2[1] = rBounds.TopRight();
@@ -439,18 +439,18 @@ namespace vclcanvas
for( unsigned int i=0,p; i<nStepCount; ++i )
{
const double fT( (i+1)/double(nStepCount) );
-
+
std::ptrdiff_t nIndex;
double fAlpha;
boost::tuples::tie(nIndex,fAlpha)=aLerper.lerp(fT);
// lerp color
- rOutDev.SetFillColor(
+ rOutDev.SetFillColor(
Color( (UINT8)(basegfx::tools::lerp(rColors[nIndex].GetRed(),rColors[nIndex+1].GetRed(),fAlpha)),
(UINT8)(basegfx::tools::lerp(rColors[nIndex].GetGreen(),rColors[nIndex+1].GetGreen(),fAlpha)),
(UINT8)(basegfx::tools::lerp(rColors[nIndex].GetBlue(),rColors[nIndex+1].GetBlue(),fAlpha)) ));
-#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
+#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
if( i && !(i % 10) )
rOutDev.SetFillColor( COL_RED );
#endif
@@ -464,7 +464,7 @@ namespace vclcanvas
const ::basegfx::B2DPoint& rOuterPoint( aOuterPoly.getB2DPoint(p) );
const ::basegfx::B2DPoint& rInnerPoint( aInnerPoly.getB2DPoint(p) );
- aTempPoly[(USHORT)p] = ::Point(
+ aTempPoly[(USHORT)p] = ::Point(
basegfx::fround( fT*rInnerPoint.getX() + (1-fT)*rOuterPoint.getX() ),
basegfx::fround( fT*rInnerPoint.getY() + (1-fT)*rOuterPoint.getY() ) );
}
@@ -498,7 +498,7 @@ namespace vclcanvas
}
void doGradientFill( OutputDevice& rOutDev,
- const ::canvas::ParametricPolyPolygon::Values& rValues,
+ const ::canvas::ParametricPolyPolygon::Values& rValues,
const std::vector< ::Color >& rColors,
const ::basegfx::B2DHomMatrix& rTextureTransform,
const ::Rectangle& rBounds,
@@ -515,7 +515,7 @@ namespace vclcanvas
rValues,
rColors );
break;
-
+
case ::canvas::ParametricPolyPolygon::GRADIENT_ELLIPTICAL:
// FALLTHROUGH intended
case ::canvas::ParametricPolyPolygon::GRADIENT_RECTANGULAR:
@@ -536,9 +536,9 @@ namespace vclcanvas
int numColorSteps( const ::Color& rColor1, const ::Color& rColor2 )
{
- return ::std::max(
+ return ::std::max(
labs( rColor1.GetRed() - rColor2.GetRed() ),
- ::std::max(
+ ::std::max(
labs( rColor1.GetGreen() - rColor2.GetGreen() ),
labs( rColor1.GetBlue() - rColor2.GetBlue() ) ) );
}
@@ -548,7 +548,7 @@ namespace vclcanvas
const ::canvas::ParametricPolyPolygon::Values& rValues,
const std::vector< ::Color >& rColors,
const PolyPolygon& rPoly,
- const rendering::ViewState& viewState,
+ const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
const rendering::Texture& texture,
int nTransparency )
@@ -574,11 +574,11 @@ namespace vclcanvas
texture,
nColorSteps);
- rOutDev.SetLineColor();
+ rOutDev.SetLineColor();
// determine maximal bound rect of texture-filled
// polygon
- const ::Rectangle aPolygonDeviceRectOrig(
+ const ::Rectangle aPolygonDeviceRectOrig(
rPoly.GetBoundRect() );
if( tools::isRectangle( rPoly ) )
@@ -701,20 +701,20 @@ namespace vclcanvas
}
#endif // complex-clipping vs. XOR-trick
-#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
+#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
{
::basegfx::B2DRectangle aRect(0.0, 0.0, 1.0, 1.0);
::basegfx::B2DRectangle aTextureDeviceRect;
::basegfx::B2DHomMatrix aTextureTransform;
- ::canvas::tools::calcTransformedRectBounds( aTextureDeviceRect,
- aRect,
+ ::canvas::tools::calcTransformedRectBounds( aTextureDeviceRect,
+ aRect,
aTextureTransform );
- rOutDev.SetLineColor( COL_RED );
+ rOutDev.SetLineColor( COL_RED );
rOutDev.SetFillColor();
rOutDev.DrawRect( ::vcl::unotools::rectangleFromB2DRectangle( aTextureDeviceRect ) );
- rOutDev.SetLineColor( COL_BLUE );
- ::Polygon aPoly1(
+ rOutDev.SetLineColor( COL_BLUE );
+ ::Polygon aPoly1(
::vcl::unotools::rectangleFromB2DRectangle( aRect ));
::basegfx::B2DPolygon aPoly2( aPoly1.getB2DPolygon() );
aPoly2.transform( aTextureTransform );
@@ -727,15 +727,15 @@ namespace vclcanvas
}
}
- uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* pCanvas,
+ uno::Reference< rendering::XCachedPrimitive > CanvasHelper::fillTexturedPolyPolygon( const rendering::XCanvas* pCanvas,
const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState,
- const uno::Sequence< rendering::Texture >& textures )
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState,
+ const uno::Sequence< rendering::Texture >& textures )
{
ENSURE_ARG_OR_THROW( xPolyPolygon.is(),
"CanvasHelper::fillPolyPolygon(): polygon is NULL");
- ENSURE_ARG_OR_THROW( textures.getLength(),
+ ENSURE_ARG_OR_THROW( textures.getLength(),
"CanvasHelper::fillTexturedPolyPolygon: empty texture sequence");
if( mpOutDev )
@@ -743,7 +743,7 @@ namespace vclcanvas
tools::OutDevStateKeeper aStateKeeper( mpProtectedOutDev );
const int nTransparency( setupOutDevState( viewState, renderState, IGNORE_COLOR ) );
- PolyPolygon aPolyPoly( tools::mapPolyPolygon(
+ PolyPolygon aPolyPoly( tools::mapPolyPolygon(
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon),
viewState, renderState ) );
@@ -752,7 +752,7 @@ namespace vclcanvas
{
// try to cast XParametricPolyPolygon2D reference to
// our implementation class.
- ::canvas::ParametricPolyPolygon* pGradient =
+ ::canvas::ParametricPolyPolygon* pGradient =
dynamic_cast< ::canvas::ParametricPolyPolygon* >( textures[0].Gradient.get() );
if( pGradient && pGradient->getValues().maColors.getLength() )
@@ -801,14 +801,14 @@ namespace vclcanvas
else if( textures[0].Bitmap.is() )
{
const geometry::IntegerSize2D aBmpSize( textures[0].Bitmap->getSize() );
-
+
ENSURE_ARG_OR_THROW( aBmpSize.Width != 0 &&
aBmpSize.Height != 0,
"CanvasHelper::fillTexturedPolyPolygon(): zero-sized texture bitmap" );
// determine maximal bound rect of texture-filled
// polygon
- const ::Rectangle aPolygonDeviceRect(
+ const ::Rectangle aPolygonDeviceRect(
aPolyPoly.GetBoundRect() );
@@ -823,18 +823,18 @@ namespace vclcanvas
viewState,
renderState);
::basegfx::B2DHomMatrix aTextureTransform;
- ::basegfx::unotools::homMatrixFromAffineMatrix( aTextureTransform,
+ ::basegfx::unotools::homMatrixFromAffineMatrix( aTextureTransform,
textures[0].AffineTransform );
-
+
aTotalTransform *= aTextureTransform;
const ::basegfx::B2DRectangle aRect(0.0, 0.0, 1.0, 1.0);
::basegfx::B2DRectangle aTextureDeviceRect;
- ::canvas::tools::calcTransformedRectBounds( aTextureDeviceRect,
- aRect,
+ ::canvas::tools::calcTransformedRectBounds( aTextureDeviceRect,
+ aRect,
aTotalTransform );
- const ::Rectangle aIntegerTextureDeviceRect(
+ const ::Rectangle aIntegerTextureDeviceRect(
::vcl::unotools::rectangleFromB2DRectangle( aTextureDeviceRect ) );
if( bRectangularPolygon &&
@@ -861,14 +861,14 @@ namespace vclcanvas
pColor[2] = 0.0;
pColor[3] = textures[0].Alpha;
- return drawBitmapModulated( pCanvas,
+ return drawBitmapModulated( pCanvas,
textures[0].Bitmap,
viewState,
aLocalState );
}
else
{
- return drawBitmap( pCanvas,
+ return drawBitmap( pCanvas,
textures[0].Bitmap,
viewState,
aLocalState );
@@ -895,7 +895,7 @@ namespace vclcanvas
// combine with view and render transform
::basegfx::B2DHomMatrix aMatrix;
::canvas::tools::mergeViewAndRenderTransform(aMatrix, viewState, renderState);
-
+
// combine all three transformations into one
// global texture-to-device-space transformation
aTotalTransform *= aMatrix;
@@ -905,12 +905,12 @@ namespace vclcanvas
// appropriate GraphicObject
::basegfx::B2DVector aScale;
::basegfx::B2DPoint aOutputPos;
- double nRotate;
- double nShearX;
+ double nRotate;
+ double nShearX;
aTotalTransform.decompose( aScale, aOutputPos, nRotate, nShearX );
-
- GraphicAttr aGrfAttr;
- GraphicObjectSharedPtr pGrfObj;
+
+ GraphicAttr aGrfAttr;
+ GraphicObjectSharedPtr pGrfObj;
if( ::basegfx::fTools::equalZero( nShearX ) )
{
@@ -919,8 +919,8 @@ namespace vclcanvas
// and translation)
// setup GraphicAttr
- aGrfAttr.SetMirrorFlags(
- ( aScale.getX() < 0.0 ? BMP_MIRROR_HORZ : 0 ) |
+ aGrfAttr.SetMirrorFlags(
+ ( aScale.getX() < 0.0 ? BMP_MIRROR_HORZ : 0 ) |
( aScale.getY() < 0.0 ? BMP_MIRROR_VERT : 0 ) );
aGrfAttr.SetRotation( static_cast< USHORT >(::basegfx::fround( nRotate*10.0 )) );
@@ -978,9 +978,9 @@ namespace vclcanvas
// device coordinate space, were we determine the
// start point from it.
::basegfx::B2DRectangle aTextureSpacePolygonRect;
- ::canvas::tools::calcTransformedRectBounds( aTextureSpacePolygonRect,
+ ::canvas::tools::calcTransformedRectBounds( aTextureSpacePolygonRect,
::vcl::unotools::b2DRectangleFromRectangle(
- aPolygonDeviceRect ),
+ aPolygonDeviceRect ),
aInverseTextureTransform );
// calc left, top of extended polygon rect in
@@ -1003,26 +1003,26 @@ namespace vclcanvas
// and convert back to device space
::basegfx::B2DRectangle aSingleDeviceTextureRect;
- ::canvas::tools::calcTransformedRectBounds( aSingleDeviceTextureRect,
- aSingleTextureRect,
+ ::canvas::tools::calcTransformedRectBounds( aSingleDeviceTextureRect,
+ aSingleTextureRect,
aPureTotalTransform );
-
- const ::Point aPtRepeat( ::vcl::unotools::pointFromB2DPoint(
+
+ const ::Point aPtRepeat( ::vcl::unotools::pointFromB2DPoint(
aSingleDeviceTextureRect.getMinimum() ) );
const ::Size aSz( ::basegfx::fround( aScale.getX() * aBmpSize.Width ),
::basegfx::fround( aScale.getY() * aBmpSize.Height ) );
const ::Size aIntegerNextTileX( ::vcl::unotools::sizeFromB2DSize(aNextTileX) );
const ::Size aIntegerNextTileY( ::vcl::unotools::sizeFromB2DSize(aNextTileY) );
- const ::Point aPt( textures[0].RepeatModeX == rendering::TexturingMode::NONE ?
+ const ::Point aPt( textures[0].RepeatModeX == rendering::TexturingMode::NONE ?
::basegfx::fround( aOutputPos.getX() ) : aPtRepeat.X(),
- textures[0].RepeatModeY == rendering::TexturingMode::NONE ?
+ textures[0].RepeatModeY == rendering::TexturingMode::NONE ?
::basegfx::fround( aOutputPos.getY() ) : aPtRepeat.Y() );
- const sal_Int32 nTilesX( textures[0].RepeatModeX == rendering::TexturingMode::NONE ?
+ const sal_Int32 nTilesX( textures[0].RepeatModeX == rendering::TexturingMode::NONE ?
1 : nX2 - nX1 );
- const sal_Int32 nTilesY( textures[0].RepeatModeX == rendering::TexturingMode::NONE ?
+ const sal_Int32 nTilesY( textures[0].RepeatModeX == rendering::TexturingMode::NONE ?
1 : nY2 - nY1 );
-
+
OutputDevice& rOutDev( mpOutDev->getOutDev() );
if( bRectangularPolygon )
@@ -1050,8 +1050,8 @@ namespace vclcanvas
// transOrig*transModulate (which would be
// equivalent to the origAlpha*modulateAlpha
// the DX canvas performs)
- aGrfAttr.SetTransparency(
- static_cast< BYTE >(
+ aGrfAttr.SetTransparency(
+ static_cast< BYTE >(
::basegfx::fround( 255.0*( 1.0 - textures[0].Alpha ) ) ) );
}
@@ -1118,11 +1118,11 @@ namespace vclcanvas
// output VDev content alpha-blended to
// target position.
const ::Point aEmptyPoint;
- Bitmap aContentBmp(
- aVDev.GetBitmap( aEmptyPoint,
+ Bitmap aContentBmp(
+ aVDev.GetBitmap( aEmptyPoint,
aVDev.GetOutputSizePixel() ) );
- BYTE nCol( static_cast< BYTE >(
+ BYTE nCol( static_cast< BYTE >(
::basegfx::fround( 255.0*( 1.0 - textures[0].Alpha ) ) ) );
AlphaMask aAlpha( aVDev.GetOutputSizePixel(),
&nCol );
diff --git a/canvas/source/vcl/devicehelper.cxx b/canvas/source/vcl/devicehelper.cxx
index 02c4e547be76..3994517d74e4 100644
--- a/canvas/source/vcl/devicehelper.cxx
+++ b/canvas/source/vcl/devicehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,15 +88,15 @@ namespace vclcanvas
return ::vcl::unotools::size2DFromSize( aLogSize );
}
- uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
+ uno::Reference< rendering::XLinePolyPolygon2D > DeviceHelper::createCompatibleLinePolyPolygon(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const uno::Sequence< uno::Sequence< geometry::RealPoint2D > >& points )
{
uno::Reference< rendering::XLinePolyPolygon2D > xPoly;
if( !mpOutDev )
return xPoly; // we're disposed
- xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
+ xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
::basegfx::unotools::polyPolygonFromPoint2DSequenceSequence( points ) ) );
// vcl only handles even_odd polygons
xPoly->setFillRule(rendering::FillRule_EVEN_ODD);
@@ -104,15 +104,15 @@ namespace vclcanvas
return xPoly;
}
- uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
+ uno::Reference< rendering::XBezierPolyPolygon2D > DeviceHelper::createCompatibleBezierPolyPolygon(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > >& points )
{
uno::Reference< rendering::XBezierPolyPolygon2D > xPoly;
if( !mpOutDev )
return xPoly; // we're disposed
- xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
+ xPoly.set( new ::basegfx::unotools::UnoPolyPolygon(
::basegfx::unotools::polyPolygonFromBezier2DSequenceSequence( points ) ) );
// vcl only handles even_odd polygons
xPoly->setFillRule(rendering::FillRule_EVEN_ODD);
@@ -120,44 +120,44 @@ namespace vclcanvas
return xPoly;
}
- uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
+ uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleBitmap(
const uno::Reference< rendering::XGraphicDevice >& rDevice,
- const geometry::IntegerSize2D& size )
+ const geometry::IntegerSize2D& size )
{
if( !mpOutDev )
return uno::Reference< rendering::XBitmap >(); // we're disposed
- return uno::Reference< rendering::XBitmap >(
+ return uno::Reference< rendering::XBitmap >(
new CanvasBitmap( ::vcl::unotools::sizeFromIntegerSize2D(size),
false,
*rDevice.get(),
mpOutDev ) );
}
- uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const geometry::IntegerSize2D& )
+ uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const geometry::IntegerSize2D& )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
- uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
+ uno::Reference< rendering::XBitmap > DeviceHelper::createCompatibleAlphaBitmap(
const uno::Reference< rendering::XGraphicDevice >& rDevice,
const geometry::IntegerSize2D& size )
{
if( !mpOutDev )
return uno::Reference< rendering::XBitmap >(); // we're disposed
- return uno::Reference< rendering::XBitmap >(
+ return uno::Reference< rendering::XBitmap >(
new CanvasBitmap( ::vcl::unotools::sizeFromIntegerSize2D(size),
true,
*rDevice.get(),
mpOutDev ) );
}
- uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
- const uno::Reference< rendering::XGraphicDevice >& ,
- const geometry::IntegerSize2D& )
+ uno::Reference< rendering::XVolatileBitmap > DeviceHelper::createVolatileAlphaBitmap(
+ const uno::Reference< rendering::XGraphicDevice >& ,
+ const geometry::IntegerSize2D& )
{
return uno::Reference< rendering::XVolatileBitmap >();
}
@@ -172,44 +172,44 @@ namespace vclcanvas
(void)bEnter;
return false;
}
-
+
void DeviceHelper::disposing()
{
// release all references
mpOutDev.reset();
}
-
+
uno::Any DeviceHelper::isAccelerated() const
{
return ::com::sun::star::uno::makeAny(false);
}
-
+
uno::Any DeviceHelper::getDeviceHandle() const
{
if( !mpOutDev )
return uno::Any();
-
- return uno::makeAny(
+
+ return uno::makeAny(
reinterpret_cast< sal_Int64 >(&mpOutDev->getOutDev()) );
}
-
+
uno::Any DeviceHelper::getSurfaceHandle() const
{
return getDeviceHandle();
}
-
- namespace
- {
+
+ namespace
+ {
struct DeviceColorSpace: public rtl::StaticWithInit<uno::Reference<rendering::XColorSpace>,
- DeviceColorSpace>
+ DeviceColorSpace>
{
uno::Reference<rendering::XColorSpace> operator()()
{
return vcl::unotools::createStandardColorSpace();
}
- };
+ };
}
-
+
uno::Reference<rendering::XColorSpace> DeviceHelper::getColorSpace() const
{
// always the same
@@ -239,7 +239,7 @@ namespace vclcanvas
++nFilePostfixCount;
}
}
-
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/vcl/devicehelper.hxx b/canvas/source/vcl/devicehelper.hxx
index 1c2d7b930320..025e974d24e6 100644
--- a/canvas/source/vcl/devicehelper.hxx
+++ b/canvas/source/vcl/devicehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,31 +61,31 @@ namespace vclcanvas
// XWindowGraphicDevice
::com::sun::star::geometry::RealSize2D getPhysicalResolution();
::com::sun::star::geometry::RealSize2D getPhysicalSize();
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > >& points );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealBezierSegment2D > >& points );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::geometry::IntegerSize2D& size );
sal_Bool hasFullScreenMode( );
sal_Bool enterFullScreenMode( sal_Bool bEnter );
::com::sun::star::uno::Any isAccelerated() const;
::com::sun::star::uno::Any getDeviceHandle() const;
::com::sun::star::uno::Any getSurfaceHandle() const;
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XColorSpace > getColorSpace() const;
OutDevProviderSharedPtr getOutDev() const { return mpOutDev; }
@@ -97,7 +97,7 @@ namespace vclcanvas
private:
/// For retrieving device info
- OutDevProviderSharedPtr mpOutDev;
+ OutDevProviderSharedPtr mpOutDev;
};
}
diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx
index 1b6829784ab3..86d82098ef32 100644
--- a/canvas/source/vcl/impltools.cxx
+++ b/canvas/source/vcl/impltools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,7 +96,7 @@ namespace vclcanvas
}
// TODO(F2): add support for floating point bitmap formats
- uno::Reference< rendering::XIntegerReadOnlyBitmap > xIntBmp(
+ uno::Reference< rendering::XIntegerReadOnlyBitmap > xIntBmp(
xBitmap, uno::UNO_QUERY_THROW );
::BitmapEx aBmpEx = ::vcl::unotools::bitmapExFromXBitmap( xIntBmp );
@@ -104,21 +104,21 @@ namespace vclcanvas
return aBmpEx;
// TODO(F1): extract pixel from XBitmap interface
- ENSURE_OR_THROW( false,
+ ENSURE_OR_THROW( false,
"bitmapExFromXBitmap(): could not extract bitmap" );
}
-
+
return ::BitmapEx();
}
- bool setupFontTransform( ::Point& o_rPoint,
- ::Font& io_rVCLFont,
- const rendering::ViewState& rViewState,
- const rendering::RenderState& rRenderState,
- ::OutputDevice& rOutDev )
+ bool setupFontTransform( ::Point& o_rPoint,
+ ::Font& io_rVCLFont,
+ const rendering::ViewState& rViewState,
+ const rendering::RenderState& rRenderState,
+ ::OutputDevice& rOutDev )
{
::basegfx::B2DHomMatrix aMatrix;
-
+
::canvas::tools::mergeViewAndRenderTransform(aMatrix,
rViewState,
rRenderState);
@@ -126,12 +126,12 @@ namespace vclcanvas
::basegfx::B2DTuple aScale;
::basegfx::B2DTuple aTranslate;
double nRotate, nShearX;
-
+
aMatrix.decompose( aScale, aTranslate, nRotate, nShearX );
// #i72417# detecting the 180 degree rotation case manually here.
- if( aScale.getX() < 0.0 &&
- aScale.getY() < 0.0 &&
+ if( aScale.getX() < 0.0 &&
+ aScale.getY() < 0.0 &&
basegfx::fTools::equalZero(nRotate) )
{
aScale *= -1.0;
@@ -191,9 +191,9 @@ namespace vclcanvas
// VCL-Canvas related
//---------------------------------------------------------------------
- ::Point mapRealPoint2D( const geometry::RealPoint2D& rPoint,
- const rendering::ViewState& rViewState,
- const rendering::RenderState& rRenderState )
+ ::Point mapRealPoint2D( const geometry::RealPoint2D& rPoint,
+ const rendering::ViewState& rViewState,
+ const rendering::RenderState& rRenderState )
{
::basegfx::B2DPoint aPoint( ::basegfx::unotools::b2DPointFromRealPoint2D(rPoint) );
@@ -205,9 +205,9 @@ namespace vclcanvas
return ::vcl::unotools::pointFromB2DPoint( aPoint );
}
- ::PolyPolygon mapPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly,
- const rendering::ViewState& rViewState,
- const rendering::RenderState& rRenderState )
+ ::PolyPolygon mapPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly,
+ const rendering::ViewState& rViewState,
+ const rendering::RenderState& rRenderState )
{
::basegfx::B2DHomMatrix aMatrix;
::canvas::tools::mergeViewAndRenderTransform(aMatrix,
@@ -221,28 +221,28 @@ namespace vclcanvas
return ::PolyPolygon( aTemp );
}
- ::BitmapEx transformBitmap( const BitmapEx& rBitmap,
- const ::basegfx::B2DHomMatrix& rTransform,
- const uno::Sequence< double >& rDeviceColor,
- ModulationMode eModulationMode )
+ ::BitmapEx transformBitmap( const BitmapEx& rBitmap,
+ const ::basegfx::B2DHomMatrix& rTransform,
+ const uno::Sequence< double >& rDeviceColor,
+ ModulationMode eModulationMode )
{
RTL_LOGFILE_CONTEXT( aLog, "::vclcanvas::tools::transformBitmap()" );
RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::vclcanvas::tools::transformBitmap: 0x%X", &rBitmap );
-
+
// calc transformation and size of bitmap to be
// generated. Note, that the translational components are
// deleted from the transformation; this can be handled by
// an offset when painting the bitmap
- const Size aBmpSize( rBitmap.GetSizePixel() );
- ::basegfx::B2DRectangle aDestRect;
-
+ const Size aBmpSize( rBitmap.GetSizePixel() );
+ ::basegfx::B2DRectangle aDestRect;
+
bool bCopyBack( false );
// calc effective transformation for bitmap
const ::basegfx::B2DRectangle aSrcRect( 0, 0,
aBmpSize.Width(),
aBmpSize.Height() );
- ::canvas::tools::calcTransformedRectBounds( aDestRect,
+ ::canvas::tools::calcTransformedRectBounds( aDestRect,
aSrcRect,
rTransform );
@@ -260,7 +260,7 @@ namespace vclcanvas
const double nRedModulation( bModulateColors ? rDeviceColor[0] : 1.0 );
const double nGreenModulation( bModulateColors ? rDeviceColor[1] : 1.0 );
const double nBlueModulation( bModulateColors ? rDeviceColor[2] : 1.0 );
- const double nAlphaModulation( bModulateColors && rDeviceColor.getLength() > 3 ?
+ const double nAlphaModulation( bModulateColors && rDeviceColor.getLength() > 3 ?
rDeviceColor[3] : 1.0 );
Bitmap aSrcBitmap( rBitmap.GetBitmap() );
@@ -278,8 +278,8 @@ namespace vclcanvas
ScopedBitmapReadAccess pReadAccess( aSrcBitmap.AcquireReadAccess(),
aSrcBitmap );
- ScopedBitmapReadAccess pAlphaReadAccess( rBitmap.IsTransparent() ?
- aSrcAlpha.AcquireReadAccess() :
+ ScopedBitmapReadAccess pAlphaReadAccess( rBitmap.IsTransparent() ?
+ aSrcAlpha.AcquireReadAccess() :
(BitmapReadAccess*)NULL,
aSrcAlpha );
@@ -287,7 +287,7 @@ namespace vclcanvas
(pAlphaReadAccess.get() == NULL && rBitmap.IsTransparent()) )
{
// TODO(E2): Error handling!
- ENSURE_OR_THROW( false,
+ ENSURE_OR_THROW( false,
"transformBitmap(): could not access source bitmap" );
}
@@ -318,7 +318,7 @@ namespace vclcanvas
}
// else: mapping table is not used
- const Size aDestBmpSize( ::basegfx::fround( aDestRect.getWidth() ),
+ const Size aDestBmpSize( ::basegfx::fround( aDestRect.getWidth() ),
::basegfx::fround( aDestRect.getHeight() ) );
if( aDestBmpSize.Width() == 0 || aDestBmpSize.Height() == 0 )
@@ -338,7 +338,7 @@ namespace vclcanvas
ScopedBitmapWriteAccess pAlphaWriteAccess( aDstAlpha.AcquireWriteAccess(),
aDstAlpha );
-
+
if( pWriteAccess.get() != NULL &&
pAlphaWriteAccess.get() != NULL &&
rTransform.isInvertible() )
@@ -348,8 +348,8 @@ namespace vclcanvas
// source
::basegfx::B2DHomMatrix aTransform( aLocalTransform );
aTransform.invert();
-
- // for the time being, always read as ARGB
+
+ // for the time being, always read as ARGB
for( int y=0; y<aDestBmpSize.Height(); ++y )
{
if( bModulateColors )
@@ -384,36 +384,36 @@ namespace vclcanvas
// nAlphaModulation. This is a
// little bit verbose, formula
// is 255 - (255-pixAlpha)*nAlphaModulation
- // (invert 'alpha' pixel value,
- // to get the standard alpha
+ // (invert 'alpha' pixel value,
+ // to get the standard alpha
// channel behaviour)
- pAlphaWriteAccess->SetPixel( y, x,
- BitmapColor(
- 255U -
+ pAlphaWriteAccess->SetPixel( y, x,
+ BitmapColor(
+ 255U -
static_cast<BYTE>(
nAlphaModulation*
(255U
- - aAlphaMap[ pAlphaReadAccess->GetPixel(
+ - aAlphaMap[ pAlphaReadAccess->GetPixel(
nSrcY,
nSrcX ).GetIndex() ] ) + .5 ) ) );
BitmapColor aColor( pReadAccess->GetPixel( nSrcY,
nSrcX ) );
- aColor.SetRed(
+ aColor.SetRed(
static_cast<BYTE>(
nRedModulation *
aColor.GetRed() + .5 ));
- aColor.SetGreen(
+ aColor.SetGreen(
static_cast<BYTE>(
nGreenModulation *
aColor.GetGreen() + .5 ));
- aColor.SetBlue(
+ aColor.SetBlue(
static_cast<BYTE>(
nBlueModulation *
aColor.GetBlue() + .5 ));
- pWriteAccess->SetPixel( y, x,
+ pWriteAccess->SetPixel( y, x,
aColor );
}
}
@@ -438,12 +438,12 @@ namespace vclcanvas
// nAlphaModulation. This is a
// little bit verbose, formula
// is 255 - 255*nAlphaModulation
- // (invert 'alpha' pixel value,
- // to get the standard alpha
+ // (invert 'alpha' pixel value,
+ // to get the standard alpha
// channel behaviour)
- pAlphaWriteAccess->SetPixel( y, x,
- BitmapColor(
- 255U -
+ pAlphaWriteAccess->SetPixel( y, x,
+ BitmapColor(
+ 255U -
static_cast<BYTE>(
nAlphaModulation*255.0
+ .5 ) ) );
@@ -451,20 +451,20 @@ namespace vclcanvas
BitmapColor aColor( pReadAccess->GetPixel( nSrcY,
nSrcX ) );
- aColor.SetRed(
+ aColor.SetRed(
static_cast<BYTE>(
nRedModulation *
aColor.GetRed() + .5 ));
- aColor.SetGreen(
+ aColor.SetGreen(
static_cast<BYTE>(
nGreenModulation *
aColor.GetGreen() + .5 ));
- aColor.SetBlue(
+ aColor.SetBlue(
static_cast<BYTE>(
nBlueModulation *
aColor.GetBlue() + .5 ));
- pWriteAccess->SetPixel( y, x,
+ pWriteAccess->SetPixel( y, x,
aColor );
}
}
@@ -491,8 +491,8 @@ namespace vclcanvas
}
else
{
- pAlphaWriteAccess->SetPixel( y, x,
- aAlphaMap[
+ pAlphaWriteAccess->SetPixel( y, x,
+ aAlphaMap[
pAlphaReadAccess->GetPixel( nSrcY,
nSrcX ) ] );
@@ -531,7 +531,7 @@ namespace vclcanvas
else
{
// TODO(E2): Error handling!
- ENSURE_OR_THROW( false,
+ ENSURE_OR_THROW( false,
"transformBitmap(): could not access bitmap" );
}
}
diff --git a/canvas/source/vcl/impltools.hxx b/canvas/source/vcl/impltools.hxx
index 963162b22587..22ea4e2c07f9 100644
--- a/canvas/source/vcl/impltools.hxx
+++ b/canvas/source/vcl/impltools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ class OutputDevice;
class Point;
class Size;
-namespace basegfx
+namespace basegfx
{
namespace matrix
{
@@ -65,26 +65,26 @@ namespace basegfx
}
}
-namespace com { namespace sun { namespace star { namespace awt
+namespace com { namespace sun { namespace star { namespace awt
{
struct Point;
struct Size;
struct Rectangle;
} } } }
-namespace com { namespace sun { namespace star { namespace drawing
+namespace com { namespace sun { namespace star { namespace drawing
{
struct HomogenMatrix3;
} } } }
-namespace com { namespace sun { namespace star { namespace geometry
+namespace com { namespace sun { namespace star { namespace geometry
{
struct RealPoint2D;
struct RealSize2D;
struct RealRectangle2D;
} } } }
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
struct RenderState;
struct ViewState;
@@ -99,18 +99,18 @@ namespace vclcanvas
namespace tools
{
::BitmapEx
- bitmapExFromXBitmap( const ::com::sun::star::uno::Reference<
+ bitmapExFromXBitmap( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmap >& );
/** Setup VCL font and output position
@returns false, if no text output should happen
*/
- bool setupFontTransform( ::Point& o_rPoint,
- ::Font& io_rVCLFont,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState,
- ::OutputDevice& rOutDev );
+ bool setupFontTransform( ::Point& o_rPoint,
+ ::Font& io_rVCLFont,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState,
+ ::OutputDevice& rOutDev );
/** Predicate, to determine whether polygon is actually an axis-aligned rectangle
@@ -154,7 +154,7 @@ namespace vclcanvas
{
init();
}
-
+
~OutDevStateKeeper()
{
if( mpOutDev )
@@ -174,17 +174,17 @@ namespace vclcanvas
}
}
- OutputDevice* mpOutDev;
- const bool mbMappingWasEnabled;
+ OutputDevice* mpOutDev;
+ const bool mbMappingWasEnabled;
};
- ::Point mapRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& rPoint,
- const ::com::sun::star::rendering::ViewState& rViewState,
- const ::com::sun::star::rendering::RenderState& rRenderState );
+ ::Point mapRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& rPoint,
+ const ::com::sun::star::rendering::ViewState& rViewState,
+ const ::com::sun::star::rendering::RenderState& rRenderState );
- ::PolyPolygon mapPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly,
- const ::com::sun::star::rendering::ViewState& rViewState,
- const ::com::sun::star::rendering::RenderState& rRenderState );
+ ::PolyPolygon mapPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly,
+ const ::com::sun::star::rendering::ViewState& rViewState,
+ const ::com::sun::star::rendering::RenderState& rRenderState );
enum ModulationMode
{
@@ -192,10 +192,10 @@ namespace vclcanvas
MODULATE_WITH_DEVICECOLOR
};
- ::BitmapEx transformBitmap( const BitmapEx& rBitmap,
- const ::basegfx::B2DHomMatrix& rTransform,
- const ::com::sun::star::uno::Sequence< double >& rDeviceColor,
- ModulationMode eModulationMode );
+ ::BitmapEx transformBitmap( const BitmapEx& rBitmap,
+ const ::basegfx::B2DHomMatrix& rTransform,
+ const ::com::sun::star::uno::Sequence< double >& rDeviceColor,
+ ModulationMode eModulationMode );
}
}
diff --git a/canvas/source/vcl/outdevprovider.hxx b/canvas/source/vcl/outdevprovider.hxx
index 2d41980c8569..a49f16f5d945 100644
--- a/canvas/source/vcl/outdevprovider.hxx
+++ b/canvas/source/vcl/outdevprovider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ namespace vclcanvas
{
/* Definition of OutDevProvider interface */
- /** Implementers of this interface provide the CanvasHelper
+ /** Implementers of this interface provide the CanvasHelper
with its OutputDevice.
This additional level of indirection was necessary, as the
@@ -52,7 +52,7 @@ namespace vclcanvas
public:
virtual ~OutDevProvider() {}
- virtual OutputDevice& getOutDev() = 0;
+ virtual OutputDevice& getOutDev() = 0;
virtual const OutputDevice& getOutDev() const = 0;
};
diff --git a/canvas/source/vcl/repainttarget.hxx b/canvas/source/vcl/repainttarget.hxx
index 5ca0c4dea198..fb90d9e70197 100644
--- a/canvas/source/vcl/repainttarget.hxx
+++ b/canvas/source/vcl/repainttarget.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ class GraphicAttr;
namespace vclcanvas
{
/* Definition of RepaintTarget interface */
-
+
/** Target interface for XCachedPrimitive implementations
This interface must be implemented on all canvas
@@ -55,7 +55,7 @@ namespace vclcanvas
virtual bool repaint( const GraphicObjectSharedPtr& rGrf,
const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState,
- const ::Point& rPt,
+ const ::Point& rPt,
const ::Size& rSz,
const GraphicAttr& rAttr ) const = 0;
};
diff --git a/canvas/source/vcl/services.cxx b/canvas/source/vcl/services.cxx
index f482c841ea74..fc79b5c5ea89 100644
--- a/canvas/source/vcl/services.cxx
+++ b/canvas/source/vcl/services.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/vcl/sprite.hxx b/canvas/source/vcl/sprite.hxx
index b2713eb4486d..72d108efaa28 100644
--- a/canvas/source/vcl/sprite.hxx
+++ b/canvas/source/vcl/sprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx
index b06bd1c77e9e..2e2e73560484 100644
--- a/canvas/source/vcl/spritecanvas.cxx
+++ b/canvas/source/vcl/spritecanvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ namespace vclcanvas
void SpriteCanvas::initialize()
{
SolarMutexGuard aGuard;
-
+
// #i64742# Only call initialize when not in probe mode
if( maArguments.getLength() == 0 )
return;
@@ -81,7 +81,7 @@ namespace vclcanvas
boost::bind(&SpriteCanvasHelper::enableUnsafeScrolling,
boost::ref(maCanvasHelper),
_1))
- ("SpriteBounds",
+ ("SpriteBounds",
boost::bind(&SpriteCanvasHelper::isSpriteBounds,
boost::ref(maCanvasHelper)),
boost::bind(&SpriteCanvasHelper::enableSpriteBounds,
@@ -90,7 +90,7 @@ namespace vclcanvas
VERBOSE_TRACE( "VCLSpriteCanvas::initialize called" );
- ENSURE_ARG_OR_THROW( maArguments.getLength() >= 1,
+ ENSURE_ARG_OR_THROW( maArguments.getLength() >= 1,
"VCLSpriteCanvas::initialize: wrong number of arguments" );
/* maArguments:
@@ -103,21 +103,21 @@ namespace vclcanvas
*/
ENSURE_ARG_OR_THROW( maArguments.getLength() >= 4 &&
maArguments[0].getValueTypeClass() == uno::TypeClass_HYPER &&
- maArguments[4].getValueTypeClass() == uno::TypeClass_INTERFACE,
+ maArguments[4].getValueTypeClass() == uno::TypeClass_INTERFACE,
"VCLSpriteCanvas::initialize: wrong number of arguments, or wrong types" );
-
+
uno::Reference< awt::XWindow > xParentWindow;
maArguments[4] >>= xParentWindow;
-
+
OutDevProviderSharedPtr pOutDev( new WindowOutDevHolder(xParentWindow) );
-
- // setup helper
+
+ // setup helper
maDeviceHelper.init( pOutDev );
- setWindow(uno::Reference<awt::XWindow2>(xParentWindow, uno::UNO_QUERY_THROW));
+ setWindow(uno::Reference<awt::XWindow2>(xParentWindow, uno::UNO_QUERY_THROW));
maCanvasHelper.init( maDeviceHelper.getBackBuffer(),
*this,
maRedrawManager,
- false, // no OutDev state preservation
+ false, // no OutDev state preservation
false ); // no alpha on surface
maArguments.realloc(0);
@@ -152,7 +152,7 @@ namespace vclcanvas
sal_Bool SAL_CALL SpriteCanvas::updateScreen( sal_Bool bUpdateAll ) throw (uno::RuntimeException)
{
SolarMutexGuard aGuard;
-
+
// avoid repaints on hidden window (hidden: not mapped to
// screen). Return failure, since the screen really has _not_
// been updated (caller should try again later)
@@ -165,12 +165,12 @@ namespace vclcanvas
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SPRITECANVAS_SERVICE_NAME ) );
}
- bool SpriteCanvas::repaint( const GraphicObjectSharedPtr& rGrf,
+ bool SpriteCanvas::repaint( const GraphicObjectSharedPtr& rGrf,
const rendering::ViewState& viewState,
const rendering::RenderState& renderState,
- const ::Point& rPt,
- const ::Size& rSz,
- const GraphicAttr& rAttr ) const
+ const ::Point& rPt,
+ const ::Size& rSz,
+ const GraphicAttr& rAttr ) const
{
SolarMutexGuard aGuard;
diff --git a/canvas/source/vcl/spritecanvas.hxx b/canvas/source/vcl/spritecanvas.hxx
index 15688fca0ee3..fcad1a171e2f 100644
--- a/canvas/source/vcl/spritecanvas.hxx
+++ b/canvas/source/vcl/spritecanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,11 +67,11 @@ namespace vclcanvas
::com::sun::star::awt::XWindowListener,
::com::sun::star::util::XUpdatable,
::com::sun::star::beans::XPropertySet,
- ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base;
+ ::com::sun::star::lang::XServiceName > WindowGraphicDeviceBase_Base;
typedef ::canvas::BufferedGraphicDeviceBase< ::canvas::BaseMutexHelper< WindowGraphicDeviceBase_Base >,
- SpriteDeviceHelper,
+ SpriteDeviceHelper,
tools::LocalGuard,
- ::cppu::OWeakObject > SpriteCanvasBase_Base;
+ ::cppu::OWeakObject > SpriteCanvasBase_Base;
/** Mixin SpriteSurface
@@ -96,9 +96,9 @@ namespace vclcanvas
};
typedef ::canvas::SpriteCanvasBase< SpriteCanvasBaseSpriteSurface_Base,
- SpriteCanvasHelper,
+ SpriteCanvasHelper,
tools::LocalGuard,
- ::cppu::OWeakObject > SpriteCanvasBaseT;
+ ::cppu::OWeakObject > SpriteCanvasBaseT;
/** Product of this component's factory.
@@ -113,9 +113,9 @@ namespace vclcanvas
public RepaintTarget
{
public:
- SpriteCanvas( const ::com::sun::star::uno::Sequence<
+ SpriteCanvas( const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Any >& aArguments,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::uno::XComponentContext >& rxContext );
void initialize();
@@ -135,7 +135,7 @@ namespace vclcanvas
// Classname Base doing refcounting Base implementing the XComponent interface
// | | |
// V V V
- DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( SpriteCanvas, WindowGraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
+ DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS( SpriteCanvas, WindowGraphicDeviceBase_Base, ::cppu::WeakComponentImplHelperBase );
// XBufferController (partial)
virtual ::sal_Bool SAL_CALL showBuffer( ::sal_Bool bUpdateAll ) throw (::com::sun::star::uno::RuntimeException);
@@ -151,7 +151,7 @@ namespace vclcanvas
virtual bool repaint( const GraphicObjectSharedPtr& rGrf,
const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState,
- const ::Point& rPt,
+ const ::Point& rPt,
const ::Size& rSz,
const GraphicAttr& rAttr ) const;
diff --git a/canvas/source/vcl/spritecanvashelper.cxx b/canvas/source/vcl/spritecanvashelper.cxx
index 29c6725a70af..33fd5987de2c 100644
--- a/canvas/source/vcl/spritecanvashelper.cxx
+++ b/canvas/source/vcl/spritecanvashelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,24 +64,24 @@ namespace vclcanvas
*/
void spriteRedraw( OutputDevice& rOutDev,
const ::canvas::Sprite::Reference& rSprite )
- {
+ {
// downcast to derived vclcanvas::Sprite interface, which
// provides the actual redraw methods.
::boost::polymorphic_downcast< Sprite* >(rSprite.get())->redraw(rOutDev,
true);
}
- double calcNumPixel( const ::canvas::Sprite::Reference& rSprite )
+ double calcNumPixel( const ::canvas::Sprite::Reference& rSprite )
{
- const ::basegfx::B2DSize& rSize(
+ const ::basegfx::B2DSize& rSize(
::boost::polymorphic_downcast< Sprite* >(rSprite.get())->getSizePixel() );
return rSize.getX() * rSize.getY();
}
- void repaintBackground( OutputDevice& rOutDev,
- OutputDevice& rBackBuffer,
- const ::basegfx::B2DRange& rArea )
+ void repaintBackground( OutputDevice& rOutDev,
+ OutputDevice& rBackBuffer,
+ const ::basegfx::B2DRange& rArea )
{
const ::Point& rPos( ::vcl::unotools::pointFromB2DPoint( rArea.getMinimum()) );
const ::Size& rSize( ::vcl::unotools::sizeFromB2DSize( rArea.getRange()) );
@@ -93,7 +93,7 @@ namespace vclcanvas
OutputDevice& rOutDev,
const ::basegfx::B2IRange& rArea )
{
- const Rectangle& rRequestedArea(
+ const Rectangle& rRequestedArea(
::vcl::unotools::rectangleFromB2IRectangle( rArea ) );
// clip output to actual update region (otherwise a)
@@ -133,8 +133,8 @@ namespace vclcanvas
adapted size.
*/
void spriteRedrawStub2( OutputDevice& rOutDev,
- const ::basegfx::B2DPoint& rOutPos,
- const ::canvas::Sprite::Reference& rSprite )
+ const ::basegfx::B2DPoint& rOutPos,
+ const ::canvas::Sprite::Reference& rSprite )
{
if( rSprite.is() )
{
@@ -166,11 +166,11 @@ namespace vclcanvas
rSprite.get() )->redraw( rOutDev,
false );
}
- }
+ }
- void renderInfoText( OutputDevice& rOutDev,
+ void renderInfoText( OutputDevice& rOutDev,
const ::rtl::OUString& rStr,
- const Point& rPos )
+ const Point& rPos )
{
Font aVCLFont;
aVCLFont.SetHeight( 20 );
@@ -200,7 +200,7 @@ namespace vclcanvas
#endif
}
- void SpriteCanvasHelper::init( const OutDevProviderSharedPtr& rOutDev,
+ void SpriteCanvasHelper::init( const OutDevProviderSharedPtr& rOutDev,
SpriteCanvas& rOwningSpriteCanvas,
::canvas::SpriteRedrawManager& rManager,
bool bProtect,
@@ -221,14 +221,14 @@ namespace vclcanvas
CanvasHelper::disposing();
}
- uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation(
+ uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromAnimation(
const uno::Reference< rendering::XAnimation >& )
{
return uno::Reference< rendering::XAnimatedSprite >();
}
- uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps(
- const uno::Sequence< uno::Reference< rendering::XBitmap > >& ,
+ uno::Reference< rendering::XAnimatedSprite > SpriteCanvasHelper::createSpriteFromBitmaps(
+ const uno::Sequence< uno::Reference< rendering::XBitmap > >& ,
sal_Int8 )
{
return uno::Reference< rendering::XAnimatedSprite >();
@@ -240,7 +240,7 @@ namespace vclcanvas
return uno::Reference< rendering::XCustomSprite >(); // we're disposed
return uno::Reference< rendering::XCustomSprite >(
- new CanvasCustomSprite( spriteSize,
+ new CanvasCustomSprite( spriteSize,
*mpDevice,
mpOwningSpriteCanvas,
mpOwningSpriteCanvas->getFrontBuffer(),
@@ -253,9 +253,9 @@ namespace vclcanvas
}
sal_Bool SpriteCanvasHelper::updateScreen( sal_Bool bUpdateAll,
- bool& io_bSurfaceDirty )
+ bool& io_bSurfaceDirty )
{
- if( !mpRedrawManager ||
+ if( !mpRedrawManager ||
!mpOwningSpriteCanvas ||
!mpOwningSpriteCanvas->getFrontBuffer() ||
!mpOwningSpriteCanvas->getBackBuffer() )
@@ -266,15 +266,15 @@ namespace vclcanvas
// commit to backbuffer
flush();
- OutputDevice& rOutDev( mpOwningSpriteCanvas->getFrontBuffer()->getOutDev() );
+ OutputDevice& rOutDev( mpOwningSpriteCanvas->getFrontBuffer()->getOutDev() );
BackBufferSharedPtr pBackBuffer( mpOwningSpriteCanvas->getBackBuffer() );
- OutputDevice& rBackOutDev( pBackBuffer->getOutDev() );
+ OutputDevice& rBackOutDev( pBackBuffer->getOutDev() );
// actual OutputDevice is a shared resource - restore its
// state when done.
tools::OutDevStateKeeper aStateKeeper( rOutDev );
- const Size aOutDevSize( rBackOutDev.GetOutputSizePixel() );
+ const Size aOutDevSize( rBackOutDev.GetOutputSizePixel() );
const Point aEmptyPoint(0,0);
Window* pTargetWindow = NULL;
@@ -320,13 +320,13 @@ namespace vclcanvas
maVDev->SetOutputSizePixel( aOutDevSize );
maVDev->EnableMapMode( FALSE );
- maVDev->DrawOutDev( aEmptyPoint, aOutDevSize,
- aEmptyPoint, aOutDevSize,
+ maVDev->DrawOutDev( aEmptyPoint, aOutDevSize,
+ aEmptyPoint, aOutDevSize,
rBackOutDev );
// repaint all active sprites on top of background into
// VDev.
- mpRedrawManager->forEachSprite(
+ mpRedrawManager->forEachSprite(
::boost::bind(
&spriteRedraw,
::boost::ref( maVDev.get() ),
@@ -335,9 +335,9 @@ namespace vclcanvas
// flush to screen
rOutDev.EnableMapMode( FALSE );
rOutDev.SetClipRegion();
- rOutDev.DrawOutDev( aEmptyPoint, aOutDevSize,
- aEmptyPoint, aOutDevSize,
- *maVDev );
+ rOutDev.DrawOutDev( aEmptyPoint, aOutDevSize,
+ aEmptyPoint, aOutDevSize,
+ *maVDev );
}
// change record vector must be cleared, for the next turn of
@@ -355,9 +355,9 @@ namespace vclcanvas
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
static ::canvas::tools::ElapsedTime aElapsedTime;
-
+
// log time immediately after surface flip
- OSL_TRACE( "SpriteCanvasHelper::updateScreen(): flip done at %f",
+ OSL_TRACE( "SpriteCanvasHelper::updateScreen(): flip done at %f",
aElapsedTime.getElapsedTime() );
#endif
@@ -381,15 +381,15 @@ namespace vclcanvas
mpOwningSpriteCanvas->getFrontBuffer(),
"SpriteCanvasHelper::backgroundPaint(): NULL device pointer " );
- OutputDevice& rOutDev( mpOwningSpriteCanvas->getFrontBuffer()->getOutDev() );
+ OutputDevice& rOutDev( mpOwningSpriteCanvas->getFrontBuffer()->getOutDev() );
BackBufferSharedPtr pBackBuffer( mpOwningSpriteCanvas->getBackBuffer() );
- OutputDevice& rBackOutDev( pBackBuffer->getOutDev() );
+ OutputDevice& rBackOutDev( pBackBuffer->getOutDev() );
repaintBackground( rOutDev, rBackOutDev, rUpdateRect );
}
- void SpriteCanvasHelper::scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
- const ::basegfx::B2DRange& rMoveEnd,
+ void SpriteCanvasHelper::scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
+ const ::basegfx::B2DRange& rMoveEnd,
const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea )
{
ENSURE_OR_THROW( mpOwningSpriteCanvas &&
@@ -397,9 +397,9 @@ namespace vclcanvas
mpOwningSpriteCanvas->getFrontBuffer(),
"SpriteCanvasHelper::scrollUpdate(): NULL device pointer " );
- OutputDevice& rOutDev( mpOwningSpriteCanvas->getFrontBuffer()->getOutDev() );
+ OutputDevice& rOutDev( mpOwningSpriteCanvas->getFrontBuffer()->getOutDev() );
BackBufferSharedPtr pBackBuffer( mpOwningSpriteCanvas->getBackBuffer() );
- OutputDevice& rBackOutDev( pBackBuffer->getOutDev() );
+ OutputDevice& rBackOutDev( pBackBuffer->getOutDev() );
const Size& rTargetSizePixel( rOutDev.GetOutputSizePixel() );
const ::basegfx::B2IRange aOutputBounds( 0,0,
@@ -411,7 +411,7 @@ namespace vclcanvas
// the destination area: otherwise, the next scroll update
// would copy pixel that are not supposed to be part of
// the sprite.
- ::basegfx::B2IRange aSourceRect(
+ ::basegfx::B2IRange aSourceRect(
::canvas::tools::spritePixelAreaFromB2DRange( rMoveStart ) );
const ::basegfx::B2IRange& rDestRect(
::canvas::tools::spritePixelAreaFromB2DRange( rMoveEnd ) );
@@ -440,7 +440,7 @@ namespace vclcanvas
// repaint all affected sprites directly to output device
::std::for_each( rUpdateArea.maComponentList.begin(),
rUpdateArea.maComponentList.end(),
- ::boost::bind(
+ ::boost::bind(
&spriteRedrawStub3,
::boost::ref( rOutDev ),
_1 ) );
@@ -454,11 +454,11 @@ namespace vclcanvas
::Size( static_cast<sal_Int32>(aSourceRect.getRange().getX()),
static_cast<sal_Int32>(aSourceRect.getRange().getY()) ) );
- const ::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
+ const ::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
aFirst( rUpdateArea.maComponentList.begin() );
- ::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
+ ::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
aSecond( aFirst ); ++aSecond;
-
+
ENSURE_OR_THROW( aFirst->second.getSprite().is(),
"VCLCanvas::scrollUpdate(): no sprite" );
@@ -489,7 +489,7 @@ namespace vclcanvas
::boost::ref(rBackOutDev),
_1 ) );
}
-
+
void SpriteCanvasHelper::opaqueUpdate( const ::basegfx::B2DRange& rTotalArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites )
{
@@ -512,12 +512,12 @@ namespace vclcanvas
// repaint all affected sprites directly to output device
::std::for_each( rSortedUpdateSprites.begin(),
rSortedUpdateSprites.end(),
- ::boost::bind(
+ ::boost::bind(
&spriteRedrawStub,
::boost::ref( rOutDev ),
_1 ) );
}
-
+
void SpriteCanvasHelper::genericUpdate( const ::basegfx::B2DRange& rRequestedArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites )
{
@@ -526,9 +526,9 @@ namespace vclcanvas
mpOwningSpriteCanvas->getFrontBuffer(),
"SpriteCanvasHelper::genericUpdate(): NULL device pointer " );
- OutputDevice& rOutDev( mpOwningSpriteCanvas->getFrontBuffer()->getOutDev() );
+ OutputDevice& rOutDev( mpOwningSpriteCanvas->getFrontBuffer()->getOutDev() );
BackBufferSharedPtr pBackBuffer( mpOwningSpriteCanvas->getBackBuffer() );
- OutputDevice& rBackOutDev( pBackBuffer->getOutDev() );
+ OutputDevice& rBackOutDev( pBackBuffer->getOutDev() );
// limit size of update VDev to target outdev's size
const Size& rTargetSizePixel( rOutDev.GetOutputSizePixel() );
@@ -537,7 +537,7 @@ namespace vclcanvas
// a fraction of a sprite pixel... Clip position at origin,
// otherwise, truncation of size below might leave visible
// areas uncovered by VDev.
- const ::Point aOutputPosition(
+ const ::Point aOutputPosition(
::std::max( sal_Int32( 0 ),
static_cast< sal_Int32 >(rRequestedArea.getMinX()) ),
::std::max( sal_Int32( 0 ),
@@ -546,7 +546,7 @@ namespace vclcanvas
// fraction of a sprite pixel... Limit coverage of VDev to
// output device's area (i.e. not only to total size, but to
// cover _only_ the visible parts).
- const ::Size aOutputSize(
+ const ::Size aOutputSize(
::std::max( sal_Int32( 0 ),
::std::min( static_cast< sal_Int32 >(rTargetSizePixel.Width() - aOutputPosition.X()),
::canvas::tools::roundUp( rRequestedArea.getMaxX() - aOutputPosition.X() ))),
@@ -568,7 +568,7 @@ namespace vclcanvas
// repaint.
if( aCurrOutputSize.Width() < aOutputSize.Width() ||
aCurrOutputSize.Height() < aOutputSize.Height() )
- {
+ {
// TODO(P1): Come up with a clever tactic to reduce maVDev
// from time to time. Reduction with threshold (say, if
// maVDev is more than twice too large) is not wise, as
@@ -580,10 +580,10 @@ namespace vclcanvas
// paint background
maVDev->EnableMapMode( FALSE );
maVDev->SetClipRegion();
- maVDev->DrawOutDev( aEmptyPoint, aOutputSize,
- aOutputPosition, aOutputSize,
+ maVDev->DrawOutDev( aEmptyPoint, aOutputSize,
+ aOutputPosition, aOutputSize,
rBackOutDev );
-
+
// repaint all affected sprites on top of background into
// VDev.
::std::for_each( rSortedUpdateSprites.begin(),
@@ -596,16 +596,16 @@ namespace vclcanvas
// flush to screen
rOutDev.EnableMapMode( FALSE );
- rOutDev.DrawOutDev( aOutputPosition, aOutputSize,
- aEmptyPoint, aOutputSize,
- *maVDev );
+ rOutDev.DrawOutDev( aOutputPosition, aOutputSize,
+ aEmptyPoint, aOutputSize,
+ *maVDev );
}
-
+
void SpriteCanvasHelper::renderFrameCounter( OutputDevice& rOutDev )
{
const double denominator( maLastUpdate.getElapsedTime() );
maLastUpdate.reset();
-
+
::rtl::OUString text( ::rtl::math::doubleToUString( denominator == 0.0 ? 100.0 : 1.0/denominator,
rtl_math_StringFormat_F,
2,'.',NULL,' ') );
@@ -617,7 +617,7 @@ namespace vclcanvas
text += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM (" fps"));
renderInfoText( rOutDev,
- text,
+ text,
Point(0, 0) );
}
@@ -656,19 +656,19 @@ namespace vclcanvas
sal_Int32 nCount(0);
mpRedrawManager->forEachSprite( makeAdder(nCount,sal_Int32(1)) );
- ::rtl::OUString text(
- ::rtl::OUString::valueOf(
+ ::rtl::OUString text(
+ ::rtl::OUString::valueOf(
// disambiguate overload...
static_cast<sal_Int64>(nCount) ) );
// pad with leading space
while( text.getLength() < 3 )
text = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM (" ")) + text;
-
+
text = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("Sprites: ")) + text;
-
+
renderInfoText( rOutDev,
- text,
+ text,
Point(0, 30) );
}
}
@@ -688,31 +688,31 @@ namespace vclcanvas
::boost::bind(
&calcNumPixel,
_1 ) ) );
-
+
static const int NUM_VIRDEV(2);
static const int BYTES_PER_PIXEL(3);
-
+
const Size& rVDevSize( maVDev->GetOutputSizePixel() );
const Size& rBackBufferSize( pBackBuffer->getOutDev().GetOutputSizePixel() );
-
+
const double nMemUsage( nPixel * NUM_VIRDEV * BYTES_PER_PIXEL +
rVDevSize.Width()*rVDevSize.Height() * BYTES_PER_PIXEL +
rBackBufferSize.Width()*rBackBufferSize.Height() * BYTES_PER_PIXEL );
-
+
::rtl::OUString text( ::rtl::math::doubleToUString( nMemUsage / 1048576.0,
rtl_math_StringFormat_F,
2,'.',NULL,' ') );
-
+
// pad with leading space
while( text.getLength() < 4 )
text = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM (" ")) + text;
-
- text = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("Mem: ")) +
- text +
+
+ text = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("Mem: ")) +
+ text +
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("MB"));
-
+
renderInfoText( rOutDev,
- text,
+ text,
Point(0, 60) );
}
}
diff --git a/canvas/source/vcl/spritecanvashelper.hxx b/canvas/source/vcl/spritecanvashelper.hxx
index b0b717f18697..da33592f4bc3 100644
--- a/canvas/source/vcl/spritecanvashelper.hxx
+++ b/canvas/source/vcl/spritecanvashelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ namespace vclcanvas
public:
SpriteCanvasHelper();
- void init( const OutDevProviderSharedPtr& rOutDev,
+ void init( const OutDevProviderSharedPtr& rOutDev,
SpriteCanvas& rOwningSpriteCanvas,
::canvas::SpriteRedrawManager& rManager,
bool bProtect,
@@ -61,23 +61,23 @@ namespace vclcanvas
void disposing();
// XSpriteCanvas
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromAnimation(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromAnimation(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimation >& animation );
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromBitmaps(
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XAnimatedSprite > createSpriteFromBitmaps(
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
sal_Int8 interpolationMode );
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCustomSprite > createCustomSprite(
+
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCustomSprite > createCustomSprite(
const ::com::sun::star::geometry::RealSize2D& spriteSize );
-
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSprite > createClonedSprite(
+
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSprite > createClonedSprite(
const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite >& original );
/** Actually perform the screen update
@@ -91,7 +91,7 @@ namespace vclcanvas
yes, we're performing a full update, anyway)
*/
sal_Bool updateScreen( sal_Bool bUpdateAll,
- bool& io_bSurfaceDirty );
+ bool& io_bSurfaceDirty );
// SpriteRedrawManager functor calls
// -------------------------------------------------
@@ -116,9 +116,9 @@ namespace vclcanvas
All info necessary, should rMoveStart be partially or
fully outside the outdev
*/
- void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
- const ::basegfx::B2DRange& rMoveEnd,
- const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
+ void scrollUpdate( const ::basegfx::B2DRange& rMoveStart,
+ const ::basegfx::B2DRange& rMoveEnd,
+ const ::canvas::SpriteRedrawManager::UpdateArea& rUpdateArea );
void opaqueUpdate( const ::basegfx::B2DRange& rTotalArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
@@ -126,22 +126,22 @@ namespace vclcanvas
void genericUpdate( const ::basegfx::B2DRange& rTotalArea,
const ::std::vector< ::canvas::Sprite::Reference >& rSortedUpdateSprites );
- ::com::sun::star::uno::Any isUnsafeScrolling() const
- {
- return ::com::sun::star::uno::makeAny(mbIsUnsafeScrolling);
+ ::com::sun::star::uno::Any isUnsafeScrolling() const
+ {
+ return ::com::sun::star::uno::makeAny(mbIsUnsafeScrolling);
}
- void enableUnsafeScrolling( const ::com::sun::star::uno::Any& rAny )
- {
- mbIsUnsafeScrolling = rAny.get<bool>();
+ void enableUnsafeScrolling( const ::com::sun::star::uno::Any& rAny )
+ {
+ mbIsUnsafeScrolling = rAny.get<bool>();
}
::com::sun::star::uno::Any isSpriteBounds() const
- {
- return ::com::sun::star::uno::makeAny(mbShowSpriteBounds);
+ {
+ return ::com::sun::star::uno::makeAny(mbShowSpriteBounds);
}
void enableSpriteBounds( const ::com::sun::star::uno::Any& rAny )
- {
- mbShowSpriteBounds = rAny.get<bool>();
+ {
+ mbShowSpriteBounds = rAny.get<bool>();
}
private:
@@ -150,7 +150,7 @@ namespace vclcanvas
void renderMemUsage( OutputDevice& rOutDev );
/// Set from the SpriteCanvas: instance coordinating sprite redraw
- ::canvas::SpriteRedrawManager* mpRedrawManager;
+ ::canvas::SpriteRedrawManager* mpRedrawManager;
/// Set from the init method. used to generate sprites
SpriteCanvas* mpOwningSpriteCanvas;
@@ -160,16 +160,16 @@ namespace vclcanvas
Typically, sprites will be composited in the background,
before pushing them to screen. This happens here.
*/
- ::canvas::vcltools::VCLObject< VirtualDevice > maVDev;
+ ::canvas::vcltools::VCLObject< VirtualDevice > maVDev;
/// For the frame counter timings
- ::canvas::tools::ElapsedTime maLastUpdate;
+ ::canvas::tools::ElapsedTime maLastUpdate;
/// When true, canvas displays debug info on each frame
- bool mbShowFrameInfo;
+ bool mbShowFrameInfo;
/// When true, canvas creates all new sprites with red lines in the corners
- bool mbShowSpriteBounds;
+ bool mbShowSpriteBounds;
/// When true, canvas uses the scroll optimization (direct scrolls in front buffer)
bool mbIsUnsafeScrolling;
diff --git a/canvas/source/vcl/spritedevicehelper.cxx b/canvas/source/vcl/spritedevicehelper.cxx
index c11adbd7abc0..2e07f38dfc9c 100644
--- a/canvas/source/vcl/spritedevicehelper.cxx
+++ b/canvas/source/vcl/spritedevicehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ namespace vclcanvas
mpBackBuffer->getOutDev().SetAntialiasing( ANTIALIASING_ENABLE_B2DDRAW | mpBackBuffer->getOutDev().GetAntialiasing() );
#else
// switch off AA for WIN32 and UNIX, the VCLCanvas does not look good with it and
- // is not required to do AA. It would need to be adapted to use it correctly
+ // is not required to do AA. It would need to be adapted to use it correctly
// (especially gradient painting). This will need extra work.
mpBackBuffer->getOutDev().SetAntialiasing(mpBackBuffer->getOutDev().GetAntialiasing() & !ANTIALIASING_ENABLE_B2DDRAW);
#endif
@@ -106,30 +106,30 @@ namespace vclcanvas
DeviceHelper::disposing();
}
-
+
uno::Any SpriteDeviceHelper::isAccelerated() const
{
return DeviceHelper::isAccelerated();
}
-
+
uno::Any SpriteDeviceHelper::getDeviceHandle() const
{
return DeviceHelper::getDeviceHandle();
}
-
+
uno::Any SpriteDeviceHelper::getSurfaceHandle() const
{
if( !mpBackBuffer )
return uno::Any();
- return uno::makeAny(
+ return uno::makeAny(
reinterpret_cast< sal_Int64 >(&mpBackBuffer->getOutDev()) );
}
void SpriteDeviceHelper::notifySizeUpdate( const awt::Rectangle& rBounds )
{
if( mpBackBuffer )
- mpBackBuffer->setSize( ::Size(rBounds.Width,
+ mpBackBuffer->setSize( ::Size(rBounds.Width,
rBounds.Height) );
}
@@ -144,9 +144,9 @@ namespace vclcanvas
String aFilename( String::CreateFromAscii("dbg_backbuffer") );
aFilename += String::CreateFromInt32(nFilePostfixCount);
aFilename += String::CreateFromAscii(".bmp");
-
+
SvFileStream aStream( aFilename, STREAM_STD_READWRITE );
-
+
const ::Point aEmptyPoint;
mpBackBuffer->getOutDev().EnableMapMode( FALSE );
aStream << mpBackBuffer->getOutDev().GetBitmap(aEmptyPoint,
@@ -155,7 +155,7 @@ namespace vclcanvas
++nFilePostfixCount;
}
-
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/vcl/spritedevicehelper.hxx b/canvas/source/vcl/spritedevicehelper.hxx
index 2034748cdb1f..d0f8dbcbe37f 100644
--- a/canvas/source/vcl/spritedevicehelper.hxx
+++ b/canvas/source/vcl/spritedevicehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ namespace vclcanvas
void disposing();
::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
- void destroyBuffers( );
+ void destroyBuffers( );
::sal_Bool showBuffer( bool bWindowVisible, ::sal_Bool bUpdateAll );
::sal_Bool switchBuffer( bool bWindowVisible, ::sal_Bool bUpdateAll );
diff --git a/canvas/source/vcl/spritehelper.cxx b/canvas/source/vcl/spritehelper.cxx
index 2fa8a6d441c4..240dbbf80ac7 100644
--- a/canvas/source/vcl/spritehelper.cxx
+++ b/canvas/source/vcl/spritehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,11 +77,11 @@ namespace vclcanvas
{
ENSURE_OR_THROW( rOwningSpriteCanvas.get() && rBackBuffer && rBackBufferMask,
"SpriteHelper::init(): Invalid sprite canvas or back buffer" );
-
- mpBackBuffer = rBackBuffer;
- mpBackBufferMask = rBackBufferMask;
- mbShowSpriteBounds = bShowSpriteBounds;
-
+
+ mpBackBuffer = rBackBuffer;
+ mpBackBufferMask = rBackBufferMask;
+ mbShowSpriteBounds = bShowSpriteBounds;
+
init( rSpriteSize, rOwningSpriteCanvas );
}
@@ -93,22 +93,22 @@ namespace vclcanvas
// forward to parent
CanvasCustomSpriteHelper::disposing();
}
-
+
void SpriteHelper::redraw( OutputDevice& rTargetSurface,
- const ::basegfx::B2DPoint& rPos,
- bool& io_bSurfacesDirty,
+ const ::basegfx::B2DPoint& rPos,
+ bool& io_bSurfacesDirty,
bool bBufferedUpdate ) const
{
(void)bBufferedUpdate; // not used on every platform
- if( !mpBackBuffer ||
+ if( !mpBackBuffer ||
!mpBackBufferMask )
{
return; // we're disposed
}
// log output pos in device pixel
- VERBOSE_TRACE( "SpriteHelper::redraw(): output pos is (%f, %f)",
+ VERBOSE_TRACE( "SpriteHelper::redraw(): output pos is (%f, %f)",
rPos.getX(),
rPos.getY() );
@@ -117,16 +117,16 @@ namespace vclcanvas
if( isActive() &&
!::basegfx::fTools::equalZero( fAlpha ) )
{
- const Point aEmptyPoint;
- const ::basegfx::B2DVector& rOrigOutputSize( getSizePixel() );
+ const Point aEmptyPoint;
+ const ::basegfx::B2DVector& rOrigOutputSize( getSizePixel() );
// might get changed below (e.g. adapted for
// transformations). IMPORTANT: both position and size are
// rounded to integer values. From now on, only those
// rounded values are used, to keep clip and content in
// sync.
- ::Size aOutputSize( ::vcl::unotools::sizeFromB2DSize( rOrigOutputSize ) );
- ::Point aOutPos( ::vcl::unotools::pointFromB2DPoint( rPos ) );
+ ::Size aOutputSize( ::vcl::unotools::sizeFromB2DSize( rOrigOutputSize ) );
+ ::Point aOutPos( ::vcl::unotools::pointFromB2DPoint( rPos ) );
// TODO(F3): Support for alpha-VDev
@@ -141,10 +141,10 @@ namespace vclcanvas
// longer dirty in relation to our cache
io_bSurfacesDirty = false;
transformUpdated();
-
+
if( bNeedBitmapUpdate )
{
- Bitmap aBmp( mpBackBuffer->getOutDev().GetBitmap( aEmptyPoint,
+ Bitmap aBmp( mpBackBuffer->getOutDev().GetBitmap( aEmptyPoint,
aOutputSize ) );
if( isContentFullyOpaque() )
@@ -159,7 +159,7 @@ namespace vclcanvas
{
// sprite content might contain alpha, create
// BmpEx, then.
- Bitmap aMask( mpBackBufferMask->getOutDev().GetBitmap( aEmptyPoint,
+ Bitmap aMask( mpBackBufferMask->getOutDev().GetBitmap( aEmptyPoint,
aOutputSize ) );
// bitmasks are much faster than alphamasks on some platforms
@@ -193,7 +193,7 @@ namespace vclcanvas
// to translate the clip polygon
aTransform.translate( aOutPos.X(),
aOutPos.Y() );
-
+
if( !bIdentityTransform )
{
if( !::basegfx::fTools::equalZero( aTransform.get(0,1) ) ||
@@ -205,14 +205,14 @@ namespace vclcanvas
// modify output position, to account for the fact
// that transformBitmap() always normalizes its output
// bitmap into the smallest enclosing box.
- ::basegfx::B2DRectangle aDestRect;
- ::canvas::tools::calcTransformedRectBounds( aDestRect,
+ ::basegfx::B2DRectangle aDestRect;
+ ::canvas::tools::calcTransformedRectBounds( aDestRect,
::basegfx::B2DRectangle(0,
0,
rOrigOutputSize.getX(),
rOrigOutputSize.getY()),
aTransform );
-
+
aOutPos.X() = ::basegfx::fround( aDestRect.getMinX() );
aOutPos.Y() = ::basegfx::fround( aDestRect.getMinY() );
@@ -221,7 +221,7 @@ namespace vclcanvas
// actually re-create the bitmap ONLY if necessary
if( bNeedBitmapUpdate )
maContent = tools::transformBitmap( *maContent,
- aTransform,
+ aTransform,
uno::Sequence<double>(),
tools::MODULATE_NONE );
@@ -231,9 +231,9 @@ namespace vclcanvas
{
// relatively 'simplistic' transformation -
// retrieve scale and translational offset
- aOutputSize.setWidth (
+ aOutputSize.setWidth (
::basegfx::fround( rOrigOutputSize.getX() * aTransform.get(0,0) ) );
- aOutputSize.setHeight(
+ aOutputSize.setHeight(
::basegfx::fround( rOrigOutputSize.getY() * aTransform.get(1,1) ) );
aOutPos.X() = ::basegfx::fround( aTransform.get(0,2) );
@@ -250,12 +250,12 @@ namespace vclcanvas
bool bSpriteRedrawn( false );
rTargetSurface.Push( PUSH_CLIPREGION );
-
+
// apply clip (if any)
if( getClip().is() )
{
::basegfx::B2DPolyPolygon aClipPoly(
- ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(
+ ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(
getClip() ));
if( aClipPoly.count() )
@@ -278,7 +278,7 @@ namespace vclcanvas
// when filling complex polypolygons.
bool bAtLeastOnePolygon( false );
const sal_Int32 nPolygons( aClipPoly.count() );
-
+
for( sal_Int32 i=0; i<nPolygons; ++i )
{
if( !::basegfx::tools::isRectangle(
@@ -321,8 +321,8 @@ namespace vclcanvas
// underneath.
rTargetSurface.Push( PUSH_RASTEROP );
rTargetSurface.SetRasterOp( ROP_XOR );
- rTargetSurface.DrawBitmap( aOutPos,
- aOutputSize,
+ rTargetSurface.DrawBitmap( aOutPos,
+ aOutputSize,
maContent->GetBitmap() );
rTargetSurface.SetLineColor();
@@ -331,10 +331,10 @@ namespace vclcanvas
rTargetSurface.DrawPolyPolygon(PolyPolygon(aClipPoly)); // #i76339#
rTargetSurface.SetRasterOp( ROP_XOR );
- rTargetSurface.DrawBitmap( aOutPos,
- aOutputSize,
+ rTargetSurface.DrawBitmap( aOutPos,
+ aOutputSize,
maContent->GetBitmap() );
-
+
rTargetSurface.Pop();
bSpriteRedrawn = true;
@@ -346,7 +346,7 @@ namespace vclcanvas
// or using alpha blending - cannot use
// XOR, thus, employing the still somewhat
// speedier triangle clip method
- ::basegfx::B2DPolygon aTriangulatedClip(::basegfx::triangulator::triangulate(aClipPoly));
+ ::basegfx::B2DPolygon aTriangulatedClip(::basegfx::triangulator::triangulate(aClipPoly));
// restrict the clipping area to the visible portion of the output device.
Size aSize(rTargetSurface.GetOutputSizePixel());
@@ -378,16 +378,16 @@ namespace vclcanvas
// draw semi-transparent
BYTE nColor( static_cast<UINT8>( ::basegfx::fround( 255.0*(1.0 - fAlpha) + .5) ) );
- AlphaMask aAlpha( maContent->GetSizePixel(),
+ AlphaMask aAlpha( maContent->GetSizePixel(),
&nColor );
-
+
// mask out fully transparent areas
if( maContent->IsTransparent() )
aAlpha.Replace( maContent->GetMask(), 255 );
- // alpha-blend to output
- rTargetSurface.DrawBitmapEx( aOutPos, aOutputSize,
- BitmapEx( maContent->GetBitmap(),
+ // alpha-blend to output
+ rTargetSurface.DrawBitmapEx( aOutPos, aOutputSize,
+ BitmapEx( maContent->GetBitmap(),
aAlpha ) );
}
}
@@ -396,7 +396,7 @@ namespace vclcanvas
if( mbShowSpriteBounds )
{
- ::PolyPolygon aMarkerPoly(
+ ::PolyPolygon aMarkerPoly(
::canvas::tools::getBoundMarksPolyPolygon(
::basegfx::B2DRectangle(aOutPos.X(),
aOutPos.Y(),
@@ -416,19 +416,19 @@ namespace vclcanvas
Font aVCLFont;
aVCLFont.SetHeight( std::min(long(20),aOutputSize.Height()) );
aVCLFont.SetColor( COL_RED );
-
+
rTargetSurface.SetTextAlign(ALIGN_TOP);
rTargetSurface.SetTextColor( COL_RED );
rTargetSurface.SetFont( aVCLFont );
-
+
::rtl::OUString text( ::rtl::math::doubleToUString( getPriority(),
rtl_math_StringFormat_F,
2,'.',NULL,' ') );
-
+
rTargetSurface.DrawText( aOutPos+Point(2,2), text );
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
- OSL_TRACE( "SpriteHelper::redraw(): sprite %X has prio %f\n",
+ OSL_TRACE( "SpriteHelper::redraw(): sprite %X has prio %f\n",
this, getPriority() );
#endif
}
diff --git a/canvas/source/vcl/spritehelper.hxx b/canvas/source/vcl/spritehelper.hxx
index c40666c57e40..bc33ecd7b97b 100644
--- a/canvas/source/vcl/spritehelper.hxx
+++ b/canvas/source/vcl/spritehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,9 +77,9 @@ namespace vclcanvas
*/
void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const ::canvas::SpriteSurface::Reference& rOwningSpriteCanvas,
- const BackBufferSharedPtr& rBackBuffer,
- const BackBufferSharedPtr& rBackBufferMask,
- bool bShowSpriteBounds );
+ const BackBufferSharedPtr& rBackBuffer,
+ const BackBufferSharedPtr& rBackBufferMask,
+ bool bShowSpriteBounds );
void disposing();
@@ -99,19 +99,19 @@ namespace vclcanvas
*/
void redraw( OutputDevice& rOutDev,
const ::basegfx::B2DPoint& rPos,
- bool& bSurfacesDirty,
+ bool& bSurfacesDirty,
bool bBufferedUpdate ) const;
private:
- virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
+ virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const;
// for the redraw
- BackBufferSharedPtr mpBackBuffer;
- BackBufferSharedPtr mpBackBufferMask;
+ BackBufferSharedPtr mpBackBuffer;
+ BackBufferSharedPtr mpBackBufferMask;
/// Cached bitmap for the current sprite content
- mutable ::canvas::vcltools::VCLObject<BitmapEx> maContent;
+ mutable ::canvas::vcltools::VCLObject<BitmapEx> maContent;
/// When true, line sprite corners in red
bool mbShowSpriteBounds;
diff --git a/canvas/source/vcl/textlayout.cxx b/canvas/source/vcl/textlayout.cxx
index ffd650dcd0bb..1bf6ff99dc9b 100644
--- a/canvas/source/vcl/textlayout.cxx
+++ b/canvas/source/vcl/textlayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ namespace vclcanvas
namespace
{
void setupLayoutMode( OutputDevice& rOutDev,
- sal_Int8 nTextDirection )
+ sal_Int8 nTextDirection )
{
// TODO(P3): avoid if already correctly set
ULONG nLayoutMode;
@@ -289,7 +289,7 @@ namespace vclcanvas
return 0.0;
}
- double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& aNextLayouts,
+ double SAL_CALL TextLayout::combinedJustify( const uno::Sequence< uno::Reference< rendering::XTextLayout > >& aNextLayouts,
double nSize ) throw (lang::IllegalArgumentException, uno::RuntimeException)
{
SolarMutexGuard aGuard;
@@ -452,10 +452,10 @@ namespace vclcanvas
};
}
- void TextLayout::setupTextOffsets( sal_Int32* outputOffsets,
- const uno::Sequence< double >& inputOffsets,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState ) const
+ void TextLayout::setupTextOffsets( sal_Int32* outputOffsets,
+ const uno::Sequence< double >& inputOffsets,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState ) const
{
ENSURE_OR_THROW( outputOffsets!=NULL,
"TextLayout::setupTextOffsets offsets NULL" );
diff --git a/canvas/source/vcl/textlayout.hxx b/canvas/source/vcl/textlayout.hxx
index faca5c001cac..a052fdff6960 100644
--- a/canvas/source/vcl/textlayout.hxx
+++ b/canvas/source/vcl/textlayout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,13 +51,13 @@ namespace vclcanvas
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XTextLayout,
::com::sun::star::lang::XServiceInfo > TextLayout_Base;
- class TextLayout : public ::comphelper::OBaseMutex,
+ class TextLayout : public ::comphelper::OBaseMutex,
public TextLayout_Base,
private ::boost::noncopyable
{
public:
- TextLayout( const ::com::sun::star::rendering::StringContext& aText,
- sal_Int8 nDirection,
+ TextLayout( const ::com::sun::star::rendering::StringContext& aText,
+ sal_Int8 nDirection,
sal_Int64 nRandomSeed,
const CanvasFont::Reference& rFont,
const ::com::sun::star::uno::Reference<
@@ -85,24 +85,24 @@ namespace vclcanvas
virtual sal_Int8 SAL_CALL getMainTextDirection( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > SAL_CALL getFont( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::rendering::StringContext SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException);
-
+
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException );
- bool draw( OutputDevice& rOutDev,
- const Point& rOutpos,
- const ::com::sun::star::rendering::ViewState& viewState,
+ bool draw( OutputDevice& rOutDev,
+ const Point& rOutpos,
+ const ::com::sun::star::rendering::ViewState& viewState,
const ::com::sun::star::rendering::RenderState& renderState ) const;
private:
- void setupTextOffsets( sal_Int32* outputOffsets,
+ void setupTextOffsets( sal_Int32* outputOffsets,
const ::com::sun::star::uno::Sequence< double >& inputOffsets,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState ) const;
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState ) const;
- ::com::sun::star::rendering::StringContext maText;
+ ::com::sun::star::rendering::StringContext maText;
::com::sun::star::uno::Sequence< double > maLogicalAdvancements;
CanvasFont::Reference mpFont;
::com::sun::star::uno::Reference<
diff --git a/canvas/source/vcl/windowoutdevholder.cxx b/canvas/source/vcl/windowoutdevholder.cxx
index 414cc3c9d4ed..ed2508761139 100644
--- a/canvas/source/vcl/windowoutdevholder.cxx
+++ b/canvas/source/vcl/windowoutdevholder.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/canvas/source/vcl/windowoutdevholder.hxx b/canvas/source/vcl/windowoutdevholder.hxx
index 4687b1d2e421..40f979252807 100644
--- a/canvas/source/vcl/windowoutdevholder.hxx
+++ b/canvas/source/vcl/windowoutdevholder.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
namespace vclcanvas
{
- class WindowOutDevHolder : public OutDevProvider,
+ class WindowOutDevHolder : public OutDevProvider,
private ::boost::noncopyable
{
public:
@@ -47,7 +47,7 @@ namespace vclcanvas
::com::sun::star::awt::XWindow>& xWin );
private:
- virtual OutputDevice& getOutDev() { return mrOutputWindow; }
+ virtual OutputDevice& getOutDev() { return mrOutputWindow; }
virtual const OutputDevice& getOutDev() const { return mrOutputWindow; }
// TODO(Q2): Lifetime issue. Though WindowGraphicDeviceBase
@@ -60,7 +60,7 @@ namespace vclcanvas
// vcl/source/window/window.cxx is broken, that disposes the
// canvas during window deletion, we're riding a dead horse
// here
- Window& mrOutputWindow;
+ Window& mrOutputWindow;
};
}
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx
index 1f3df5ca88c6..510cd43cab21 100644
--- a/canvas/workben/canvasdemo.cxx
+++ b/canvas/workben/canvasdemo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,7 +80,7 @@ class DemoApp : public Application
{
public:
virtual void Main();
- virtual USHORT Exception( USHORT nError );
+ virtual USHORT Exception( USHORT nError );
};
static void PrintHelp()
@@ -100,9 +100,9 @@ class TestWindow : public Dialog
}
virtual ~TestWindow() {}
virtual void MouseButtonUp( const MouseEvent& /*rMEvt*/ )
- {
+ {
//TODO: do something cool
- EndDialog();
+ EndDialog();
}
virtual void Paint( const Rectangle& rRect );
};
@@ -146,7 +146,7 @@ class DemoRenderer
//it doesn't seem to do anything in either VCL or cairocanvas
//I was hoping that CLEAR would clear the canvas before we paint,
//but nothing changes
- maRenderState.CompositeOperation = rendering::CompositeOperation::OVER;
+ maRenderState.CompositeOperation = rendering::CompositeOperation::OVER;
maBox.Width() = aSize.Width() / 3;
maBox.Height() = aSize.Height() / 3;
@@ -206,7 +206,7 @@ class DemoRenderer
xPoly = mxDevice->createCompatibleLinePolyPolygon( aPolys );
xPoly->setClosed( 0, true );
uno::Reference< rendering::XPolyPolygon2D> xPP( xPoly, uno::UNO_QUERY );
-
+
rendering::RenderState aRenderState( maRenderState );
aRenderState.DeviceColor = aColor;
mxCanvas->drawPolyPolygon( xPP, maViewState, aRenderState );
@@ -237,7 +237,7 @@ class DemoRenderer
{
a = 2.0 * M_PI * j / VERTICES;
-// FIXME: set cap_style to 'ROUND'
+// FIXME: set cap_style to 'ROUND'
mxCanvas->drawLine( aSrc,
geometry::RealPoint2D( RADIUS * cos (a),
RADIUS * sin (a) ),
@@ -256,7 +256,7 @@ class DemoRenderer
uno::Sequence< geometry::RealPoint2D > aPoints( nLength );
uno::Reference< rendering::XLinePolyPolygon2D > xPoly;
-
+
aPoints[0] = geometry::RealPoint2D( anchor_x, anchor_y );
for (int i = 0; i < nLength; i++ )
{
@@ -290,7 +290,7 @@ class DemoRenderer
rendering::RenderState aRenderState( maRenderState );
aRenderState.DeviceColor = maColorRed;
-// aRenderState.DeviceColor[3] = 0.5;
+// aRenderState.DeviceColor[3] = 0.5;
rendering::StrokeAttributes aStrokeAttrs;
aStrokeAttrs.StrokeWidth = 4.0;
aStrokeAttrs.MiterLimit = 2.0; // ?
@@ -316,7 +316,7 @@ class DemoRenderer
rendering::RenderState maOldRenderState = maRenderState; // push
drawTitle( ::rtl::OString( "Rectangles" ) );
-
+
drawRect( Rectangle( 20, 30, 70, 60 ), maColorRed, 8 );
// color mediumseagreen, stipple fill, outline black
drawRect( Rectangle( 90, 40, 180, 100 ), maColorBlack, 4 );
@@ -333,16 +333,16 @@ class DemoRenderer
drawTitle( ::rtl::OString( "Ellipses" ) );
- const basegfx::B2DPoint aCenter( maBox.Width()*.5,
+ const basegfx::B2DPoint aCenter( maBox.Width()*.5,
maBox.Height()*.5 );
- const basegfx::B2DPoint aRadii( maBox.Width()*.3,
+ const basegfx::B2DPoint aRadii( maBox.Width()*.3,
maBox.Height()*.3 );
- const basegfx::B2DPolygon& rEllipse(
- basegfx::tools::createPolygonFromEllipse( aCenter,
+ const basegfx::B2DPolygon& rEllipse(
+ basegfx::tools::createPolygonFromEllipse( aCenter,
aRadii.getX(),
aRadii.getY() ));
- uno::Reference< rendering::XPolyPolygon2D > xPoly(
+ uno::Reference< rendering::XPolyPolygon2D > xPoly(
basegfx::unotools::xPolyPolygonFromB2DPolygon(mxDevice,
rEllipse) );
@@ -386,7 +386,7 @@ class DemoRenderer
translate( maBox.Width()*0.1, maBox.Height()*0.2 );
maRenderState.AffineTransform.m00 *= 4.0/15;
maRenderState.AffineTransform.m11 *= 3.0/15;
-
+
mxCanvas->drawBitmap(xBitmap, maViewState, maRenderState);
// uno::Reference< rendering::XBitmap > xBitmap2( xBitmap->getScaledBitmap(geometry::RealSize2D(48, 48), false) );
@@ -428,7 +428,7 @@ class DemoRenderer
const double r= 30.0;
const int num_curves = 3;
-
+
//hacky hack hack
uno::Sequence< geometry::RealBezierSegment2D > aBeziers (num_curves);
uno::Reference< rendering::XBezierPolyPolygon2D > xPoly;
@@ -447,7 +447,7 @@ class DemoRenderer
//uno::Reference< rendering::XBezierPolyPolygon2D> xPP( xPoly, uno::UNO_QUERY );
//compiles, but totally screws up. I think it is interpretting the bezier as a line
uno::Reference< rendering::XPolyPolygon2D> xPP( xPoly, uno::UNO_QUERY );
-
+
rendering::StrokeAttributes aStrokeAttrs;
aStrokeAttrs.StrokeWidth = 4.0;
aStrokeAttrs.MiterLimit = 2.0; // ?
@@ -457,7 +457,7 @@ class DemoRenderer
mxCanvas->strokePolyPolygon( xPP, maViewState, maRenderState, aStrokeAttrs );
//you can't draw a BezierPolyPolygon2D with this, even though it is derived from it
//mxCanvas->drawPolyPolygon( xPP, maViewState, maRenderState );
-
+
maRenderState = maOldRenderState; // pop
}
@@ -472,7 +472,7 @@ class DemoRenderer
translate( 0.0, maBox.Height() * 2.0 );
drawTitle( ::rtl::OString( "Arcs" ) );
-
+
//begin hacks
//This stuff doesn't belong here, but probably in curves
@@ -484,7 +484,7 @@ class DemoRenderer
double by;
bx= gimmerand();
by= gimmerand();
-
+
for (int i= 0; i < 1; i++)
{
//point a= point b;
@@ -512,7 +512,7 @@ class DemoRenderer
);
geometry::RealPoint2D aEndPoint(bx, by);
maRenderState.DeviceColor = maColorBlack;
- mxCanvas->drawBezier(
+ mxCanvas->drawBezier(
aBezierSegment,
aEndPoint,
maViewState, maRenderState );
@@ -529,7 +529,7 @@ class DemoRenderer
for (int i= 0; i < sides; i++)
{
- aPoints[i]= geometry::RealPoint2D( centerx + r * cos(i*2 * M_PI/sides),
+ aPoints[i]= geometry::RealPoint2D( centerx + r * cos(i*2 * M_PI/sides),
centery + r * sin(i*2 * M_PI/sides));
}
uno::Sequence< uno::Sequence< geometry::RealPoint2D > > aPolys(1);
@@ -558,7 +558,7 @@ class DemoRenderer
drawRegularPolygon(35*i, 35, sides, 15);
sides++;
}
-
+
maRenderState = maOldRenderState; // pop
}
@@ -615,15 +615,15 @@ void TestWindow::Paint( const Rectangle& /*rRect*/ )
aRenderer.drawImages();
// check whether virdev actually contained something
- uno::Reference< rendering::XBitmap > xBitmap(xVDevCanvas, uno::UNO_QUERY);
+ uno::Reference< rendering::XBitmap > xBitmap(xVDevCanvas, uno::UNO_QUERY);
if( !xBitmap.is() )
return;
-
+
aRenderer.maRenderState.AffineTransform.m02 += 100;
aRenderer.maRenderState.AffineTransform.m12 += 100;
xCanvas->drawBitmap(xBitmap, aRenderer.maViewState, aRenderer.maRenderState);
- uno::Reference< rendering::XSpriteCanvas > xSpriteCanvas( xCanvas,
+ uno::Reference< rendering::XSpriteCanvas > xSpriteCanvas( xCanvas,
uno::UNO_QUERY );
if( xSpriteCanvas.is() )
xSpriteCanvas->updateScreen( sal_True ); // without
@@ -675,7 +675,7 @@ void DemoApp::Main()
try
{
uno::Reference< uno::XComponentContext > xCtx = ::cppu::defaultBootstrap_InitialComponentContext();
- xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
+ xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
uno::UNO_QUERY );
if( xFactory.is() )
::comphelper::setProcessServiceFactory( xFactory );
diff --git a/comphelper/inc/comphelper/ChainablePropertySet.hxx b/comphelper/inc/comphelper/ChainablePropertySet.hxx
index 1b11005a42c2..ed090799b5be 100644
--- a/comphelper/inc/comphelper/ChainablePropertySet.hxx
+++ b/comphelper/inc/comphelper/ChainablePropertySet.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,8 +35,8 @@
#include <comphelper/PropertyInfoHash.hxx>
#include "comphelper/comphelperdllapi.h"
-namespace comphelper
-{
+namespace comphelper
+{
class ChainablePropertySetInfo;
}
@@ -50,19 +50,19 @@ namespace comphelper
* To be used as a base class for PropertySets, the subclass must implement
* the 6 protected pure virtual functions. If a mutex is passed to the
* constructor, this is locked before any call to _getSingleValue or
- * _setSingleValue and released after all processing has completed
+ * _setSingleValue and released after all processing has completed
* (including _postSetValues or _postGetValues )
- *
- * The implementations of getPropertyValues/setPropertyValues call
+ *
+ * The implementations of getPropertyValues/setPropertyValues call
* lockMutex and _preGetValues/_preSetValues once before calling
* _getSingleValue/_setSingleValue for each property. After each
* property has been dealt with, _postGetValues/_postSetValues
* are called once.
*
- * Any MasterPropertySet implementations that can include an
- * implementation of a given ChainablePropertySet must be
+ * Any MasterPropertySet implementations that can include an
+ * implementation of a given ChainablePropertySet must be
* declared as a 'friend' in the implementation of the ChainablePropertySet.
- *
+ *
*/
namespace comphelper
@@ -81,72 +81,72 @@ namespace comphelper
virtual void _preSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
- virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
+ virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _postSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _preGetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
- virtual void _getSingleValue( const comphelper::PropertyInfo & rInfo, ::com::sun::star::uno::Any & rValue )
+ virtual void _getSingleValue( const comphelper::PropertyInfo & rInfo, ::com::sun::star::uno::Any & rValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _postGetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _preGetPropertyState ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
- virtual void _getPropertyState( const comphelper::PropertyInfo& rInfo, ::com::sun::star::beans::PropertyState& rState )
+ virtual void _getPropertyState( const comphelper::PropertyInfo& rInfo, ::com::sun::star::beans::PropertyState& rState )
throw(::com::sun::star::beans::UnknownPropertyException );
virtual void _postGetPropertyState ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
- virtual void _setPropertyToDefault( const comphelper::PropertyInfo& rEntry )
+ virtual void _setPropertyToDefault( const comphelper::PropertyInfo& rEntry )
throw(::com::sun::star::beans::UnknownPropertyException );
- virtual ::com::sun::star::uno::Any _getPropertyDefault( const comphelper::PropertyInfo& rEntry )
+ virtual ::com::sun::star::uno::Any _getPropertyDefault( const comphelper::PropertyInfo& rEntry )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException );
public:
ChainablePropertySet( comphelper::ChainablePropertySetInfo* pInfo, osl::SolarMutex* pMutex = NULL )
throw();
- virtual ~ChainablePropertySet()
+ virtual ~ChainablePropertySet()
throw();
// XPropertySet
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( )
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
+ virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
+ virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener )
+ virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
+ virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
+ virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
// XMultiPropertySet
- virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
+ virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames )
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
+ virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
+ virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
+ virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
// XPropertyState
- virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName )
+ virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName )
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName )
+ virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName )
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
};
}
diff --git a/comphelper/inc/comphelper/ChainablePropertySetInfo.hxx b/comphelper/inc/comphelper/ChainablePropertySetInfo.hxx
index c7e1e88f260e..20bb61a59909 100644
--- a/comphelper/inc/comphelper/ChainablePropertySetInfo.hxx
+++ b/comphelper/inc/comphelper/ChainablePropertySetInfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#include <comphelper/TypeGeneration.hxx>
#include "comphelper/comphelperdllapi.h"
-/*
+/*
* A ChainablePropertySetInfo is usually initialised with a pointer to the first element
* of a null-terminated static table of PropertyInfo structs. This is placed in a hash_map
* for fast access
@@ -53,25 +53,25 @@ namespace comphelper
PropertyInfoHash maMap;
com::sun::star::uno::Sequence < com::sun::star::beans::Property > maProperties;
public:
- ChainablePropertySetInfo()
+ ChainablePropertySetInfo()
throw();
- ChainablePropertySetInfo( PropertyInfo * pMap )
+ ChainablePropertySetInfo( PropertyInfo * pMap )
throw();
- virtual ~ChainablePropertySetInfo()
+ virtual ~ChainablePropertySetInfo()
throw();
- void add( PropertyInfo* pMap, sal_Int32 nCount = -1 )
+ void add( PropertyInfo* pMap, sal_Int32 nCount = -1 )
throw();
- void remove( const rtl::OUString& aName )
+ void remove( const rtl::OUString& aName )
throw();
// XPropertySetInfo
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties()
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties()
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName( const ::rtl::OUString& aName )
+ virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName( const ::rtl::OUString& aName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasPropertyByName( const ::rtl::OUString& Name )
+ virtual sal_Bool SAL_CALL hasPropertyByName( const ::rtl::OUString& Name )
throw(::com::sun::star::uno::RuntimeException);
};
}
diff --git a/comphelper/inc/comphelper/IdPropArrayHelper.hxx b/comphelper/inc/comphelper/IdPropArrayHelper.hxx
index a624ba7b2f5a..f21d14af1f65 100644
--- a/comphelper/inc/comphelper/IdPropArrayHelper.hxx
+++ b/comphelper/inc/comphelper/IdPropArrayHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace comphelper
//************************************************************
// OIdPropertyArrayUsageHelper
//************************************************************
- template <typename TYPE> struct OIdPropertyArrayUsageHelperMutex
+ template <typename TYPE> struct OIdPropertyArrayUsageHelperMutex
: public rtl::Static< ::osl::Mutex, OIdPropertyArrayUsageHelperMutex<TYPE> > {};
typedef std::map< sal_Int32, ::cppu::IPropertyArrayHelper*, std::less< sal_Int32 > > OIdPropertyArrayMap;
@@ -51,8 +51,8 @@ namespace comphelper
class OIdPropertyArrayUsageHelper
{
protected:
- static sal_Int32 s_nRefCount;
- static OIdPropertyArrayMap* s_pMap;
+ static sal_Int32 s_nRefCount;
+ static OIdPropertyArrayMap* s_pMap;
public:
OIdPropertyArrayUsageHelper();
@@ -83,17 +83,17 @@ namespace comphelper
<BR>
as long as IPropertyArrayHelper has no virtual destructor, the implementation of ~OPropertyArrayUsageHelper
assumes that you created an ::cppu::OPropertyArrayHelper when deleting s_pProps.
- @return an pointer to the newly created array helper. Must not be NULL.
+ @return an pointer to the newly created array helper. Must not be NULL.
*/
virtual ::cppu::IPropertyArrayHelper* createArrayHelper(sal_Int32 nId) const = 0;
};
//------------------------------------------------------------------
template<class TYPE>
- sal_Int32 OIdPropertyArrayUsageHelper< TYPE >::s_nRefCount = 0;
+ sal_Int32 OIdPropertyArrayUsageHelper< TYPE >::s_nRefCount = 0;
template<class TYPE>
- OIdPropertyArrayMap* OIdPropertyArrayUsageHelper< TYPE >::s_pMap = NULL;
+ OIdPropertyArrayMap* OIdPropertyArrayUsageHelper< TYPE >::s_pMap = NULL;
//------------------------------------------------------------------
template <class TYPE>
diff --git a/comphelper/inc/comphelper/InlineContainer.hxx b/comphelper/inc/comphelper/InlineContainer.hxx
index 13ae8a5cabd0..6aca1e5fd7f2 100644
--- a/comphelper/inc/comphelper/InlineContainer.hxx
+++ b/comphelper/inc/comphelper/InlineContainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/MasterPropertySet.hxx b/comphelper/inc/comphelper/MasterPropertySet.hxx
index c5e335d6cf67..16627b97046d 100644
--- a/comphelper/inc/comphelper/MasterPropertySet.hxx
+++ b/comphelper/inc/comphelper/MasterPropertySet.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,74 +78,74 @@ namespace comphelper
virtual void _preSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
- virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
+ virtual void _setSingleValue( const comphelper::PropertyInfo & rInfo, const ::com::sun::star::uno::Any &rValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _postSetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _preGetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
- virtual void _getSingleValue( const comphelper::PropertyInfo & rInfo, ::com::sun::star::uno::Any & rValue )
+ virtual void _getSingleValue( const comphelper::PropertyInfo & rInfo, ::com::sun::star::uno::Any & rValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _postGetValues ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException ) = 0;
virtual void _preGetPropertyState ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
- virtual void _getPropertyState( const comphelper::PropertyInfo& rInfo, ::com::sun::star::beans::PropertyState& rState )
+ virtual void _getPropertyState( const comphelper::PropertyInfo& rInfo, ::com::sun::star::beans::PropertyState& rState )
throw(::com::sun::star::beans::UnknownPropertyException );
virtual void _postGetPropertyState ()
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
- virtual void _setPropertyToDefault( const comphelper::PropertyInfo& rEntry )
+ virtual void _setPropertyToDefault( const comphelper::PropertyInfo& rEntry )
throw(::com::sun::star::beans::UnknownPropertyException );
- virtual ::com::sun::star::uno::Any _getPropertyDefault( const comphelper::PropertyInfo& rEntry )
+ virtual ::com::sun::star::uno::Any _getPropertyDefault( const comphelper::PropertyInfo& rEntry )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException );
public:
MasterPropertySet( comphelper::MasterPropertySetInfo* pInfo, ::osl::SolarMutex* pMutex = NULL )
throw();
- virtual ~MasterPropertySet()
+ virtual ~MasterPropertySet()
throw();
void registerSlave ( ChainablePropertySet *pNewSet )
throw();
// XPropertySet
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( )
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
+ virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
+ virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener )
+ virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
+ virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
+ virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
// XMultiPropertySet
- virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
+ virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues )
throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames )
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
+ virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
+ virtual void SAL_CALL removePropertiesChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
+ virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
// XPropertyState
- virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName )
+ virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState( const ::rtl::OUString& PropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName )
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyState > SAL_CALL getPropertyStates( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName )
+ virtual void SAL_CALL setPropertyToDefault( const ::rtl::OUString& PropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName )
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const ::rtl::OUString& aPropertyName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
};
}
diff --git a/comphelper/inc/comphelper/MasterPropertySetInfo.hxx b/comphelper/inc/comphelper/MasterPropertySetInfo.hxx
index c121289622b0..fee2111c8dc5 100644
--- a/comphelper/inc/comphelper/MasterPropertySetInfo.hxx
+++ b/comphelper/inc/comphelper/MasterPropertySetInfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,25 +45,25 @@ namespace comphelper
PropertyDataHash maMap;
com::sun::star::uno::Sequence < com::sun::star::beans::Property > maProperties;
public:
- MasterPropertySetInfo()
+ MasterPropertySetInfo()
throw();
- MasterPropertySetInfo( PropertyInfo * pMap )
+ MasterPropertySetInfo( PropertyInfo * pMap )
throw();
- virtual ~MasterPropertySetInfo()
+ virtual ~MasterPropertySetInfo()
throw();
void add( PropertyInfo* pMap, sal_Int32 nCount = -1, sal_uInt8 nMapId = 0 )
throw();
void add( PropertyInfoHash &rHash, sal_uInt8 nMapId )
throw();
- void remove( const rtl::OUString& aName )
+ void remove( const rtl::OUString& aName )
throw();
// XPropertySetInfo
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties()
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties()
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName( const ::rtl::OUString& aName )
+ virtual ::com::sun::star::beans::Property SAL_CALL getPropertyByName( const ::rtl::OUString& aName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasPropertyByName( const ::rtl::OUString& Name )
+ virtual sal_Bool SAL_CALL hasPropertyByName( const ::rtl::OUString& Name )
throw(::com::sun::star::uno::RuntimeException);
};
}
diff --git a/comphelper/inc/comphelper/PropertyInfoHash.hxx b/comphelper/inc/comphelper/PropertyInfoHash.hxx
index d5b8ced95c5a..3a675c194f48 100644
--- a/comphelper/inc/comphelper/PropertyInfoHash.hxx
+++ b/comphelper/inc/comphelper/PropertyInfoHash.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,8 +32,8 @@
#include <rtl/ustring.hxx>
#include <comphelper/TypeGeneration.hxx>
#include <hash_map>
-namespace comphelper
-{
+namespace comphelper
+{
struct PropertyInfo
{
const sal_Char* mpName;
@@ -61,13 +61,13 @@ namespace comphelper
};
}
-typedef std::hash_map < ::rtl::OUString,
- ::comphelper::PropertyInfo*,
- ::rtl::OUStringHash,
+typedef std::hash_map < ::rtl::OUString,
+ ::comphelper::PropertyInfo*,
+ ::rtl::OUStringHash,
::comphelper::eqFunc > PropertyInfoHash;
-typedef std::hash_map < ::rtl::OUString,
- ::comphelper::PropertyData*,
- ::rtl::OUStringHash,
+typedef std::hash_map < ::rtl::OUString,
+ ::comphelper::PropertyData*,
+ ::rtl::OUStringHash,
::comphelper::eqFunc > PropertyDataHash;
#endif
diff --git a/comphelper/inc/comphelper/SelectionMultiplex.hxx b/comphelper/inc/comphelper/SelectionMultiplex.hxx
index d2ce6ba79d2c..7a6cb57488e4 100644
--- a/comphelper/inc/comphelper/SelectionMultiplex.hxx
+++ b/comphelper/inc/comphelper/SelectionMultiplex.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ namespace comphelper
friend class OSelectionChangeMultiplexer;
OSelectionChangeMultiplexer* m_pAdapter;
- ::osl::Mutex& m_rMutex;
+ ::osl::Mutex& m_rMutex;
public:
OSelectionChangeListener(::osl::Mutex& _rMutex)
@@ -78,14 +78,14 @@ namespace comphelper
//= OSelectionChangeMultiplexer
//==================================================================
/// multiplexer for selection changes
- class COMPHELPER_DLLPUBLIC OSelectionChangeMultiplexer :public cppu::WeakImplHelper1< ::com::sun::star::view::XSelectionChangeListener>
+ class COMPHELPER_DLLPUBLIC OSelectionChangeMultiplexer :public cppu::WeakImplHelper1< ::com::sun::star::view::XSelectionChangeListener>
{
friend class OSelectionChangeListener;
- ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionSupplier> m_xSet;
- OSelectionChangeListener* m_pListener;
- sal_Int32 m_nLockCount;
- sal_Bool m_bListening : 1;
- sal_Bool m_bAutoSetRelease : 1;
+ ::com::sun::star::uno::Reference< ::com::sun::star::view::XSelectionSupplier> m_xSet;
+ OSelectionChangeListener* m_pListener;
+ sal_Int32 m_nLockCount;
+ sal_Bool m_bListening : 1;
+ sal_Bool m_bAutoSetRelease : 1;
OSelectionChangeMultiplexer(const OSelectionChangeMultiplexer&);
OSelectionChangeMultiplexer& operator=(const OSelectionChangeMultiplexer&);
@@ -101,17 +101,17 @@ namespace comphelper
virtual void SAL_CALL selectionChanged( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
/// incremental lock
- void lock();
+ void lock();
/// incremental unlock
- void unlock();
+ void unlock();
/// get the lock count
- sal_Int32 locked() const { return m_nLockCount; }
+ sal_Int32 locked() const { return m_nLockCount; }
void dispose();
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // INCLUDED_COMPHELPER_SELECTION_MULTIPLEX_HXX
diff --git a/comphelper/inc/comphelper/SettingsHelper.hxx b/comphelper/inc/comphelper/SettingsHelper.hxx
index ed951083df71..86c258f5b3b6 100644
--- a/comphelper/inc/comphelper/SettingsHelper.hxx
+++ b/comphelper/inc/comphelper/SettingsHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/TypeGeneration.hxx b/comphelper/inc/comphelper/TypeGeneration.hxx
index 13675c7d626f..bae86a00bb36 100644
--- a/comphelper/inc/comphelper/TypeGeneration.hxx
+++ b/comphelper/inc/comphelper/TypeGeneration.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include <sal/types.h>
#include "comphelper/comphelperdllapi.h"
-#define CPPU_E2T(type) ((com::sun::star::uno::Type*)type)
+#define CPPU_E2T(type) ((com::sun::star::uno::Type*)type)
namespace com { namespace sun { namespace star { namespace uno {
class Type;
@@ -41,66 +41,66 @@ namespace comphelper
{
enum CppuTypes
{
- CPPUTYPE_UNKNOWN, // 0 == unknown == error!!!!
+ CPPUTYPE_UNKNOWN, // 0 == unknown == error!!!!
- CPPUTYPE_BOOLEAN, //getBooleanCppuType()
- CPPUTYPE_INT8, //getCppuType( (sal_Int8*)0 )
- CPPUTYPE_INT16, //getCppuType( (sal_Int16*)0 )
- CPPUTYPE_INT32, //getCppuType( (sal_Int32*)0 )
- CPPUTYPE_DOUBLE, //getCppuType( (double*)0 )
- CPPUTYPE_FLOAT, //getCppuType( (float*)0 )
- CPPUTYPE_OUSTRING, //getCppuType( (OUString*)0 )
+ CPPUTYPE_BOOLEAN, //getBooleanCppuType()
+ CPPUTYPE_INT8, //getCppuType( (sal_Int8*)0 )
+ CPPUTYPE_INT16, //getCppuType( (sal_Int16*)0 )
+ CPPUTYPE_INT32, //getCppuType( (sal_Int32*)0 )
+ CPPUTYPE_DOUBLE, //getCppuType( (double*)0 )
+ CPPUTYPE_FLOAT, //getCppuType( (float*)0 )
+ CPPUTYPE_OUSTRING, //getCppuType( (OUString*)0 )
- CPPUTYPE_FONTSLANT, //getCppuType( (FontSlant*)0 )
- CPPUTYPE_LOCALE, //getCppuType( (Locale*)0 )
- CPPUTYPE_PROPERTYVALUE, //getCppuType( (Sequence<PropertyValue>*)0 )
- CPPUTYPE_PROPERTYVALUES, //getCppuType( (Sequence<PropertyValues>*)0 )
- CPPUTYPE_BORDERLINE, //getCppuType( (table::BorderLine*)0 )
- CPPUTYPE_BREAK, //getCppuType( (style::BreakType*)0 )
- CPPUTYPE_GRAPHICLOC, //getCppuType( (style::GraphicLocation*)0 )
- CPPUTYPE_DROPCAPFMT, //getCppuType( (style::DropCapFormat*)0 )
- CPPUTYPE_LINESPACE, //getCppuType( (style::LineSpacing*)0 )
- CPPUTYPE_AWTSIZE, //getCppuType( (awt::Size*)0 )
- CPPUTYPE_SHADOWFMT, //getCppuType( (table::ShadowFormat*)0 )
- CPPUTYPE_TBLCOLSEP, //getCppuType( (Sequence<text::TableColumnSeparator>*)0 )
- CPPUTYPE_PNTSEQSEQ, //getCppuType( (PointSequenceSequence*)0 )
- CPPUTYPE_DOCIDXMRK, //getCppuType( (Sequence< Reference< XDocumentIndexMark > >*)0 )
- CPPUTYPE_SEQINT8, //getCppuType( (Sequence<sal_Int8>*)0 )
- CPPUTYPE_SEQTABSTOP, //getCppuType( (Sequence<style::TabStop>*)0 )
- CPPUTYPE_SEQANCHORTYPE, //getCppuType( (Sequence<text::TextContentAnchorType>*)0 )
- CPPUTYPE_SEQDEPTXTFLD, //getCppuType( (Sequence<Reference<XDependentTextField> >*)0 )
- CPPUTYPE_TXTCNTANCHOR, //getCppuType( (text::TextContentAnchorType*)0 )
- CPPUTYPE_WRAPTXTMODE, //getCppuType( (text::WrapTextMode*)0 )
- CPPUTYPE_COLORMODE, //getCppuType( (drawing::ColorMode*)0 )
- CPPUTYPE_PAGESTYLELAY, //getCppuType( (style::PageStyleLayout*)0 )
- CPPUTYPE_VERTALIGN, //getCppuType( (style::VerticalAlignment*)0 )
- CPPUTYPE_TABLEBORDER, //getCppuType( (table::TableBorder*)0 )
- CPPUTYPE_GRFCROP, //getCppuType( (text::GraphicCrop*)0 )
- CPPUTYPE_SECTFILELNK, //getCppuType( (text::SectionFileLink*)0 )
- CPPUTYPE_PAGENUMTYPE, //getCppuType( (const PageNumberType*)0 )
- CPPUTYPE_DATETIME, //getCppuType( (util::DateTime*)0 )
- CPPUTYPE_DATE, //getCppuType( (util::Date*)0 )
+ CPPUTYPE_FONTSLANT, //getCppuType( (FontSlant*)0 )
+ CPPUTYPE_LOCALE, //getCppuType( (Locale*)0 )
+ CPPUTYPE_PROPERTYVALUE, //getCppuType( (Sequence<PropertyValue>*)0 )
+ CPPUTYPE_PROPERTYVALUES, //getCppuType( (Sequence<PropertyValues>*)0 )
+ CPPUTYPE_BORDERLINE, //getCppuType( (table::BorderLine*)0 )
+ CPPUTYPE_BREAK, //getCppuType( (style::BreakType*)0 )
+ CPPUTYPE_GRAPHICLOC, //getCppuType( (style::GraphicLocation*)0 )
+ CPPUTYPE_DROPCAPFMT, //getCppuType( (style::DropCapFormat*)0 )
+ CPPUTYPE_LINESPACE, //getCppuType( (style::LineSpacing*)0 )
+ CPPUTYPE_AWTSIZE, //getCppuType( (awt::Size*)0 )
+ CPPUTYPE_SHADOWFMT, //getCppuType( (table::ShadowFormat*)0 )
+ CPPUTYPE_TBLCOLSEP, //getCppuType( (Sequence<text::TableColumnSeparator>*)0 )
+ CPPUTYPE_PNTSEQSEQ, //getCppuType( (PointSequenceSequence*)0 )
+ CPPUTYPE_DOCIDXMRK, //getCppuType( (Sequence< Reference< XDocumentIndexMark > >*)0 )
+ CPPUTYPE_SEQINT8, //getCppuType( (Sequence<sal_Int8>*)0 )
+ CPPUTYPE_SEQTABSTOP, //getCppuType( (Sequence<style::TabStop>*)0 )
+ CPPUTYPE_SEQANCHORTYPE, //getCppuType( (Sequence<text::TextContentAnchorType>*)0 )
+ CPPUTYPE_SEQDEPTXTFLD, //getCppuType( (Sequence<Reference<XDependentTextField> >*)0 )
+ CPPUTYPE_TXTCNTANCHOR, //getCppuType( (text::TextContentAnchorType*)0 )
+ CPPUTYPE_WRAPTXTMODE, //getCppuType( (text::WrapTextMode*)0 )
+ CPPUTYPE_COLORMODE, //getCppuType( (drawing::ColorMode*)0 )
+ CPPUTYPE_PAGESTYLELAY, //getCppuType( (style::PageStyleLayout*)0 )
+ CPPUTYPE_VERTALIGN, //getCppuType( (style::VerticalAlignment*)0 )
+ CPPUTYPE_TABLEBORDER, //getCppuType( (table::TableBorder*)0 )
+ CPPUTYPE_GRFCROP, //getCppuType( (text::GraphicCrop*)0 )
+ CPPUTYPE_SECTFILELNK, //getCppuType( (text::SectionFileLink*)0 )
+ CPPUTYPE_PAGENUMTYPE, //getCppuType( (const PageNumberType*)0 )
+ CPPUTYPE_DATETIME, //getCppuType( (util::DateTime*)0 )
+ CPPUTYPE_DATE, //getCppuType( (util::Date*)0 )
- CPPUTYPE_REFINTERFACE, //getCppuType( (Reference<XInterface>*)0 )
- CPPUTYPE_REFIDXREPL, //getCppuType( (Reference<container::XIndexReplace>*)0 )
- CPPUTYPE_REFNAMECNT, //getCppuType( (Reference<container::XNameContainer>*)0 )
- CPPUTYPE_REFTEXTFRAME, //getCppuType( (Reference<text::XTextFrame>*)0 )
- CPPUTYPE_REFTEXTSECTION, //getCppuType( (Reference<text::XTextSection>*)0 )
- CPPUTYPE_REFFOOTNOTE, //getCppuType( (Reference<text::XFootnote>*)0 )
- CPPUTYPE_REFTEXT, //getCppuType( (Reference<text::XText>*)0 )
- CPPUTYPE_REFTEXTCOL, //getCppuType( (Reference<text::XTextColumns>*)0 )
+ CPPUTYPE_REFINTERFACE, //getCppuType( (Reference<XInterface>*)0 )
+ CPPUTYPE_REFIDXREPL, //getCppuType( (Reference<container::XIndexReplace>*)0 )
+ CPPUTYPE_REFNAMECNT, //getCppuType( (Reference<container::XNameContainer>*)0 )
+ CPPUTYPE_REFTEXTFRAME, //getCppuType( (Reference<text::XTextFrame>*)0 )
+ CPPUTYPE_REFTEXTSECTION, //getCppuType( (Reference<text::XTextSection>*)0 )
+ CPPUTYPE_REFFOOTNOTE, //getCppuType( (Reference<text::XFootnote>*)0 )
+ CPPUTYPE_REFTEXT, //getCppuType( (Reference<text::XText>*)0 )
+ CPPUTYPE_REFTEXTCOL, //getCppuType( (Reference<text::XTextColumns>*)0 )
- CPPUTYPE_REFFORBCHARS, //getCppuType( (Reference<XForbiddenCharacters>*)0)
- CPPUTYPE_REFIDXCNTNR, //getCppuType( (Reference<XIndexContainer>*)0)
- CPPUTYPE_REFTEXTCNTNT, //getCppuType( (Reference<XTextContent>*)0)
- CPPUTYPE_REFBITMAP, //getCppuType( (Reference<awt::XBitmap>*)0)
- CPPUTYPE_REFNMREPLACE, //getCppuType( (Reference<container::XNameReplace>*)0)
- CPPUTYPE_REFCELL, //getCppuType( (Reference<table::XCell>*)0)
- CPPUTYPE_REFDOCINDEX, //getCppuType( (Reference<text::XDocumentIndex>*)0)
- CPPUTYPE_REFDOCIDXMRK, //getCppuType( (Reference<text::XDocumentIndexMark>*)0)
- CPPUTYPE_REFTXTFIELD, //getCppuType( (Reference<text::XTextField>*)0)
- CPPUTYPE_REFTXTRANGE, //getCppuType( (Reference<text::XTextRange>*)0)
- CPPUTYPE_REFTXTTABLE, //getCppuType( (Reference<text::XTextTable>*)0)
+ CPPUTYPE_REFFORBCHARS, //getCppuType( (Reference<XForbiddenCharacters>*)0)
+ CPPUTYPE_REFIDXCNTNR, //getCppuType( (Reference<XIndexContainer>*)0)
+ CPPUTYPE_REFTEXTCNTNT, //getCppuType( (Reference<XTextContent>*)0)
+ CPPUTYPE_REFBITMAP, //getCppuType( (Reference<awt::XBitmap>*)0)
+ CPPUTYPE_REFNMREPLACE, //getCppuType( (Reference<container::XNameReplace>*)0)
+ CPPUTYPE_REFCELL, //getCppuType( (Reference<table::XCell>*)0)
+ CPPUTYPE_REFDOCINDEX, //getCppuType( (Reference<text::XDocumentIndex>*)0)
+ CPPUTYPE_REFDOCIDXMRK, //getCppuType( (Reference<text::XDocumentIndexMark>*)0)
+ CPPUTYPE_REFTXTFIELD, //getCppuType( (Reference<text::XTextField>*)0)
+ CPPUTYPE_REFTXTRANGE, //getCppuType( (Reference<text::XTextRange>*)0)
+ CPPUTYPE_REFTXTTABLE, //getCppuType( (Reference<text::XTextTable>*)0)
CPPUTYPE_AWTPOINT, //getCppuType( (awt::Point*)0 )
CPPUTYPE_REFLIBCONTAINER, //getCppuType( (Reference< script::XLibraryContainer >*)0)
CPPUTYPE_SEQANY, //getCppuType( (Sequence< uno::Any >*)0)
diff --git a/comphelper/inc/comphelper/accessiblecomponenthelper.hxx b/comphelper/inc/comphelper/accessiblecomponenthelper.hxx
index 582d77a99283..fd4d3538d8a6 100644
--- a/comphelper/inc/comphelper/accessiblecomponenthelper.hxx
+++ b/comphelper/inc/comphelper/accessiblecomponenthelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -108,8 +108,8 @@ namespace comphelper
//= OAccessibleExtendedComponentHelper
//=====================================================================
- typedef ::cppu::ImplHelper1 < ::com::sun::star::accessibility::XAccessibleExtendedComponent
- > OAccessibleExtendedComponentHelper_Base;
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::accessibility::XAccessibleExtendedComponent
+ > OAccessibleExtendedComponentHelper_Base;
/** a helper class for implementing an AccessibleContext which at the same time
supports an XAccessibleExtendedComponent interface.
@@ -137,7 +137,7 @@ namespace comphelper
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // COMPHELPER_ACCESSIBLE_COMPONENT_HELPER_HXX
diff --git a/comphelper/inc/comphelper/accessiblecontexthelper.hxx b/comphelper/inc/comphelper/accessiblecontexthelper.hxx
index 310be9321a40..fbf03c9f4421 100644
--- a/comphelper/inc/comphelper/accessiblecontexthelper.hxx
+++ b/comphelper/inc/comphelper/accessiblecontexthelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ namespace comphelper
class OMutexGuard
{
- IMutex* m_pMutex;
+ IMutex* m_pMutex;
public:
inline OMutexGuard( IMutex* _pMutex )
:m_pMutex( _pMutex )
@@ -86,9 +86,9 @@ namespace comphelper
//=====================================================================
class OContextHelper_Impl;
- typedef ::cppu::WeakAggComponentImplHelper2 < ::com::sun::star::accessibility::XAccessibleContext,
+ typedef ::cppu::WeakAggComponentImplHelper2 < ::com::sun::star::accessibility::XAccessibleContext,
::com::sun::star::accessibility::XAccessibleEventBroadcaster
- > OAccessibleContextHelper_Base;
+ > OAccessibleContextHelper_Base;
/** helper class for implementing an AccessibleContext
*/
@@ -97,7 +97,7 @@ namespace comphelper
,public OAccessibleContextHelper_Base
{
private:
- OContextHelper_Impl* m_pImpl;
+ OContextHelper_Impl* m_pImpl;
protected:
OAccessibleContextHelper( );
@@ -144,7 +144,7 @@ namespace comphelper
XAccessible, we can compare it with all the children, instead of asking all children for their
context and comparing this context with ourself.</p>
*/
- void lateInit( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxAccessible );
+ void lateInit( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxAccessible );
/** retrieves the creator previously set with <method>lateInit</method>
*/
@@ -158,7 +158,7 @@ namespace comphelper
<p>To be used in derived classes which do not supply the external lock themself, but instead get
them passed from own derivees (or clients).</p>
*/
- void forgetExternalLock();
+ void forgetExternalLock();
public:
// XAccessibleEventBroadcaster
@@ -201,9 +201,9 @@ namespace comphelper
};
// ensures that the object is alive
- inline void ensureAlive( const OAccessControl& ) const SAL_THROW( ( ::com::sun::star::lang::DisposedException ) );
- inline IMutex* getExternalLock( const OAccessControl& );
- inline ::osl::Mutex& GetMutex( const OAccessControl& );
+ inline void ensureAlive( const OAccessControl& ) const SAL_THROW( ( ::com::sun::star::lang::DisposedException ) );
+ inline IMutex* getExternalLock( const OAccessControl& );
+ inline ::osl::Mutex& GetMutex( const OAccessControl& );
protected:
// OComponentHelper
@@ -213,15 +213,15 @@ namespace comphelper
// helper
/** notifies all AccessibleEventListeners of a certain event
- @precond not too be called with our mutex locked
- @param _nEventId
+ @precond not too be called with our mutex locked
+ @param _nEventId
the id of the even. See AccessibleEventType
- @param _rOldValue
+ @param _rOldValue
the old value to be notified
- @param _rNewValue
+ @param _rNewValue
the new value to be notified
*/
- virtual void SAL_CALL NotifyAccessibleEvent(
+ virtual void SAL_CALL NotifyAccessibleEvent(
const sal_Int16 _nEventId,
const ::com::sun::star::uno::Any& _rOldValue,
const ::com::sun::star::uno::Any& _rNewValue
@@ -232,16 +232,16 @@ namespace comphelper
Can even be called with our mutex locked.
- @param _nEventId
+ @param _nEventId
the id of the even. See AccessibleEventType
- @param _rOldValue
+ @param _rOldValue
the old value to be notified
- @param _rNewValue
+ @param _rNewValue
the new value to be notified
@param _rBuffer
the buffer that records the event
*/
- virtual void SAL_CALL BufferAccessibleEvent(
+ virtual void SAL_CALL BufferAccessibleEvent(
const sal_Int16 _nEventId,
const ::com::sun::star::uno::Any& _rOldValue,
const ::com::sun::star::uno::Any& _rNewValue,
@@ -250,15 +250,15 @@ namespace comphelper
// life time control
/// checks whether the object is alive (returns <TRUE/> then) or disposed
- sal_Bool isAlive() const;
+ sal_Bool isAlive() const;
/// checks for beeing alive. If the object is already disposed (i.e. not alive), an exception is thrown.
- void ensureAlive() const SAL_THROW( ( ::com::sun::star::lang::DisposedException ) );
+ void ensureAlive() const SAL_THROW( ( ::com::sun::star::lang::DisposedException ) );
/** ensures that the object is disposed.
@precond
to be called from within the destructor of your derived class only!
*/
- void ensureDisposed( );
+ void ensureDisposed( );
/** shortcut for retrieving the context of the parent (returned by getAccessibleParent)
*/
@@ -266,26 +266,26 @@ namespace comphelper
implGetParentContext() SAL_THROW( ( ::com::sun::star::uno::RuntimeException ) );
// access to the base class' broadcast helper/mutex
- ::cppu::OBroadcastHelper& GetBroadcastHelper() { return rBHelper; }
- const ::cppu::OBroadcastHelper& GetBroadcastHelper() const { return rBHelper; }
- ::osl::Mutex& GetMutex() { return m_aMutex; }
- IMutex* getExternalLock( );
+ ::cppu::OBroadcastHelper& GetBroadcastHelper() { return rBHelper; }
+ const ::cppu::OBroadcastHelper& GetBroadcastHelper() const { return rBHelper; }
+ ::osl::Mutex& GetMutex() { return m_aMutex; }
+ IMutex* getExternalLock( );
};
//---------------------------------------------------------------------
- inline void OAccessibleContextHelper::ensureAlive( const OAccessControl& ) const SAL_THROW( ( ::com::sun::star::lang::DisposedException ) )
+ inline void OAccessibleContextHelper::ensureAlive( const OAccessControl& ) const SAL_THROW( ( ::com::sun::star::lang::DisposedException ) )
{
ensureAlive();
}
//---------------------------------------------------------------------
- inline IMutex* OAccessibleContextHelper::getExternalLock( const OAccessControl& )
+ inline IMutex* OAccessibleContextHelper::getExternalLock( const OAccessControl& )
{
return getExternalLock();
}
//---------------------------------------------------------------------
- inline ::osl::Mutex& OAccessibleContextHelper::GetMutex( const OAccessControl& )
+ inline ::osl::Mutex& OAccessibleContextHelper::GetMutex( const OAccessControl& )
{
return GetMutex();
}
@@ -293,7 +293,7 @@ namespace comphelper
//=====================================================================
//= OContextEntryGuard
//=====================================================================
- typedef ::osl::ClearableMutexGuard OContextEntryGuard_Base;
+ typedef ::osl::ClearableMutexGuard OContextEntryGuard_Base;
/** helper class for guarding the entry into OAccessibleContextHelper methods.
<p>The class has two responsibilities:
@@ -369,7 +369,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // COMPHELPER_ACCESSIBLE_CONTEXT_HELPER_HXX
diff --git a/comphelper/inc/comphelper/accessibleeventbuffer.hxx b/comphelper/inc/comphelper/accessibleeventbuffer.hxx
index 3819651569d7..fef66ef493ea 100644
--- a/comphelper/inc/comphelper/accessibleeventbuffer.hxx
+++ b/comphelper/inc/comphelper/accessibleeventbuffer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/accessibleeventnotifier.hxx b/comphelper/inc/comphelper/accessibleeventnotifier.hxx
index c80b8ffccf14..4d67d908be82 100644
--- a/comphelper/inc/comphelper/accessibleeventnotifier.hxx
+++ b/comphelper/inc/comphelper/accessibleeventnotifier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,21 +51,21 @@ namespace comphelper
{
// typedefs
public:
- typedef sal_uInt32 TClientId;
+ typedef sal_uInt32 TClientId;
typedef ::std::pair< TClientId, ::com::sun::star::accessibility::AccessibleEventObject >
ClientEvent;
- typedef ::cppu::OInterfaceContainerHelper EventListeners;
- typedef ::std::map< TClientId, EventListeners*, ::std::less< TClientId > > ClientMap;
+ typedef ::cppu::OInterfaceContainerHelper EventListeners;
+ typedef ::std::map< TClientId, EventListeners*, ::std::less< TClientId > > ClientMap;
protected:
- AccessibleEventNotifier( ); // never implemented
- ~AccessibleEventNotifier( ); // never implemented
+ AccessibleEventNotifier( ); // never implemented
+ ~AccessibleEventNotifier( ); // never implemented
private:
- COMPHELPER_DLLPRIVATE AccessibleEventNotifier( const AccessibleEventNotifier& ); // never implemented!
- COMPHELPER_DLLPRIVATE AccessibleEventNotifier& operator=( const AccessibleEventNotifier& ); // never implemented!
+ COMPHELPER_DLLPRIVATE AccessibleEventNotifier( const AccessibleEventNotifier& ); // never implemented!
+ COMPHELPER_DLLPRIVATE AccessibleEventNotifier& operator=( const AccessibleEventNotifier& ); // never implemented!
public:
/** registers a client of this class, means a broadcaster of AccessibleEvents
@@ -74,7 +74,7 @@ namespace comphelper
dies, it <b>must</b> call <member>revokeClient</member> or <member>revokeClientNotifyDisposing</member>
explicitly itself.</p>
*/
- static TClientId registerClient( );
+ static TClientId registerClient( );
/** revokes a broadcaster of AccessibleEvents
@@ -84,10 +84,10 @@ namespace comphelper
When the client is disposed, you should prefer <member>revokeClientNotifyDisposing</member></p>
<p>Any possibly pending events for this client are removed from the queue.</p>
-
+
@seealso revokeClientNotifyDisposing
*/
- static void revokeClient( const TClientId _nClient );
+ static void revokeClient( const TClientId _nClient );
/** revokes a client, with additionally notifying a disposing event to all listeners registered for
this client
@@ -100,7 +100,7 @@ namespace comphelper
the source to be notified together with the <member scope="com.sun.star.lang">XComponent::disposing</member>
call.
*/
- static void revokeClientNotifyDisposing(
+ static void revokeClientNotifyDisposing(
const TClientId _nClient,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxEventSource
) SAL_THROW( ( ) );
@@ -139,14 +139,14 @@ namespace comphelper
@param _nClient
the id of the client which needs to broadcast the event
*/
- static void addEvent(
+ static void addEvent(
const TClientId _nClient,
const ::com::sun::star::accessibility::AccessibleEventObject& _rEvent
) SAL_THROW( ( ) );
private:
/// generates a new client id
- COMPHELPER_DLLPRIVATE static TClientId generateId();
+ COMPHELPER_DLLPRIVATE static TClientId generateId();
/** looks up a client in our client map, asserts if it cannot find it or no event thread is present
@@ -162,11 +162,11 @@ namespace comphelper
<TRUE/> if and only if the client could be found and <arg>_rPos</arg> has been filled with
it's position
*/
- COMPHELPER_DLLPRIVATE static sal_Bool implLookupClient( const TClientId _nClient, ClientMap::iterator& _rPos );
+ COMPHELPER_DLLPRIVATE static sal_Bool implLookupClient( const TClientId _nClient, ClientMap::iterator& _rPos );
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // COMPHELPER_ACCESSIBLE_EVENT_NOTIFIER
diff --git a/comphelper/inc/comphelper/accessiblekeybindinghelper.hxx b/comphelper/inc/comphelper/accessiblekeybindinghelper.hxx
index 6ac3373893bc..5814f6bab66f 100644
--- a/comphelper/inc/comphelper/accessiblekeybindinghelper.hxx
+++ b/comphelper/inc/comphelper/accessiblekeybindinghelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,8 +48,8 @@ namespace comphelper
// OAccessibleKeyBindingHelper
//==============================================================================
- typedef ::cppu::WeakImplHelper1 < ::com::sun::star::accessibility::XAccessibleKeyBinding
- > OAccessibleKeyBindingHelper_Base;
+ typedef ::cppu::WeakImplHelper1 < ::com::sun::star::accessibility::XAccessibleKeyBinding
+ > OAccessibleKeyBindingHelper_Base;
/** a helper class for implementing an accessible keybinding
*/
@@ -57,11 +57,11 @@ namespace comphelper
{
private:
typedef ::std::vector< ::com::sun::star::uno::Sequence< ::com::sun::star::awt::KeyStroke > > KeyBindings;
-
- KeyBindings m_aKeyBindings;
+
+ KeyBindings m_aKeyBindings;
protected:
- ::osl::Mutex m_aMutex;
+ ::osl::Mutex m_aMutex;
virtual ~OAccessibleKeyBindingHelper();
@@ -78,7 +78,7 @@ namespace comphelper
};
//..............................................................................
-} // namespace comphelper
+} // namespace comphelper
//..............................................................................
#endif // COMPHELPER_ACCESSIBLE_KEYBINDING_HELPER_HXX
diff --git a/comphelper/inc/comphelper/accessibleselectionhelper.hxx b/comphelper/inc/comphelper/accessibleselectionhelper.hxx
index d91693b81185..960e8d10dc9a 100644
--- a/comphelper/inc/comphelper/accessibleselectionhelper.hxx
+++ b/comphelper/inc/comphelper/accessibleselectionhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,22 +59,22 @@ namespace comphelper
protected:
// access to context - still waiting to be overwritten
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >
- implGetAccessibleContext()
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >
+ implGetAccessibleContext()
throw ( ::com::sun::star::uno::RuntimeException ) = 0;
// return if the specified child is visible => watch for special ChildIndexes (ACCESSIBLE_SELECTION_CHILD_xxx)
- virtual sal_Bool
- implIsSelected( sal_Int32 nAccessibleChildIndex )
+ virtual sal_Bool
+ implIsSelected( sal_Int32 nAccessibleChildIndex )
throw (::com::sun::star::uno::RuntimeException) = 0;
// select the specified child => watch for special ChildIndexes (ACCESSIBLE_SELECTION_CHILD_xxx)
virtual void
- implSelect( sal_Int32 nAccessibleChildIndex, sal_Bool bSelect )
+ implSelect( sal_Int32 nAccessibleChildIndex, sal_Bool bSelect )
throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
protected:
-
+
/** non-virtual versions of the methods which can be implemented using <method>implIsSelected</method> and <method>implSelect</method>
*/
void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
@@ -90,7 +90,7 @@ namespace comphelper
//= OAccessibleSelectionHelper
//=====================================================================
- typedef ::cppu::ImplHelper1< ::com::sun::star::accessibility::XAccessibleSelection > OAccessibleSelectionHelper_Base;
+ typedef ::cppu::ImplHelper1< ::com::sun::star::accessibility::XAccessibleSelection > OAccessibleSelectionHelper_Base;
/** a helper class for implementing an AccessibleSelection which at the same time
supports an XAccessibleSelection interface.
@@ -100,7 +100,7 @@ namespace comphelper
public OAccessibleSelectionHelper_Base
{
protected:
-
+
OAccessibleSelectionHelper( );
/// see the respective base class ctor for an extensive comment on this, please
@@ -110,7 +110,7 @@ namespace comphelper
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > implGetAccessibleContext() throw ( ::com::sun::star::uno::RuntimeException );
public:
-
+
// XInterface
DECLARE_XINTERFACE( )
DECLARE_XTYPEPROVIDER( )
@@ -126,7 +126,7 @@ namespace comphelper
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // COMPHELPER_ACCESSIBLE_SELECTION_HELPER_HXX
diff --git a/comphelper/inc/comphelper/accessibletexthelper.hxx b/comphelper/inc/comphelper/accessibletexthelper.hxx
index 4456c99b9bd1..75fc717007f2 100644
--- a/comphelper/inc/comphelper/accessibletexthelper.hxx
+++ b/comphelper/inc/comphelper/accessibletexthelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,26 +52,26 @@ namespace comphelper
class COMPHELPER_DLLPUBLIC OCommonAccessibleText
{
private:
- ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XBreakIterator > m_xBreakIter;
- ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XCharacterClassification > m_xCharClass;
+ ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XBreakIterator > m_xBreakIter;
+ ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XCharacterClassification > m_xCharClass;
protected:
OCommonAccessibleText();
virtual ~OCommonAccessibleText();
- ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XBreakIterator > implGetBreakIterator();
- ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XCharacterClassification > implGetCharacterClassification();
- sal_Bool implIsValidBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nLength );
- virtual sal_Bool implIsValidIndex( sal_Int32 nIndex, sal_Int32 nLength );
- virtual sal_Bool implIsValidRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength );
- virtual ::rtl::OUString implGetText() = 0;
- virtual ::com::sun::star::lang::Locale implGetLocale() = 0;
- virtual void implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex ) = 0;
- virtual void implGetGlyphBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
- virtual sal_Bool implGetWordBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
- virtual void implGetSentenceBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
- virtual void implGetParagraphBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
- virtual void implGetLineBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
+ ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XBreakIterator > implGetBreakIterator();
+ ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XCharacterClassification > implGetCharacterClassification();
+ sal_Bool implIsValidBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nLength );
+ virtual sal_Bool implIsValidIndex( sal_Int32 nIndex, sal_Int32 nLength );
+ virtual sal_Bool implIsValidRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex, sal_Int32 nLength );
+ virtual ::rtl::OUString implGetText() = 0;
+ virtual ::com::sun::star::lang::Locale implGetLocale() = 0;
+ virtual void implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex ) = 0;
+ virtual void implGetGlyphBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
+ virtual sal_Bool implGetWordBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
+ virtual void implGetSentenceBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
+ virtual void implGetParagraphBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
+ virtual void implGetLineBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex );
/** non-virtual versions of the methods
*/
@@ -85,22 +85,22 @@ namespace comphelper
::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
-
+
public:
-
+
/** Helper method, that detects the difference between
two strings and returns the deleted selection and
the inserted selection if available.
-
+
@returns true if there are differences between the
two strings and false if both are equal
-
+
@see ::com::sun::star::accessibility::AccessibleEventId
::com::sun::star::accessibility::TextSegment
*/
static bool implInitTextChangedEvent(
- const rtl::OUString& rOldString,
- const rtl::OUString& rNewString,
+ const rtl::OUString& rOldString,
+ const rtl::OUString& rNewString,
/*out*/ ::com::sun::star::uno::Any& rDeleted,
/*out*/ ::com::sun::star::uno::Any& rInserted); // throw()
};
@@ -110,8 +110,8 @@ namespace comphelper
// OAccessibleTextHelper
//==============================================================================
- typedef ::cppu::ImplHelper1 < ::com::sun::star::accessibility::XAccessibleText
- > OAccessibleTextHelper_Base;
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::accessibility::XAccessibleText
+ > OAccessibleTextHelper_Base;
/** a helper class for implementing an AccessibleExtendedComponent which at the same time
supports an XAccessibleText interface
@@ -124,7 +124,7 @@ namespace comphelper
OAccessibleTextHelper();
// see the respective base class ctor for an extensive comment on this, please
OAccessibleTextHelper( IMutex* _pExternalLock );
-
+
public:
// XInterface
DECLARE_XINTERFACE( )
@@ -146,7 +146,7 @@ namespace comphelper
};
//..............................................................................
-} // namespace comphelper
+} // namespace comphelper
//..............................................................................
#endif // COMPHELPER_ACCESSIBLE_TEXT_HELPER_HXX
@@ -154,35 +154,35 @@ namespace comphelper
// -----------------------------------------------------------------------------
//
-// OAccessibleTextHelper is a helper class for implementing the
+// OAccessibleTextHelper is a helper class for implementing the
// XAccessibleText interface.
//
-// The following methods have a default implementation:
-//
-// getCharacter
-// getCharacterCount
-// getSelectedText
-// getSelectionStart
-// getSelectionEnd
-// getText
-// getTextRange
-// getTextAtIndex
-// getTextBeforeIndex
-// getTextBehindIndex
+// The following methods have a default implementation:
//
-// The following methods must be overriden by derived classes:
+// getCharacter
+// getCharacterCount
+// getSelectedText
+// getSelectionStart
+// getSelectionEnd
+// getText
+// getTextRange
+// getTextAtIndex
+// getTextBeforeIndex
+// getTextBehindIndex
//
-// implGetText
-// implGetLocale
-// implGetSelection
-// getCaretPosition
-// setCaretPosition
-// getCharacterAttributes
-// getCharacterBounds
-// getIndexAtPoint
-// setSelection
-// copyText
+// The following methods must be overriden by derived classes:
//
+// implGetText
+// implGetLocale
+// implGetSelection
+// getCaretPosition
+// setCaretPosition
+// getCharacterAttributes
+// getCharacterBounds
+// getIndexAtPoint
+// setSelection
+// copyText
+//
// -----------------------------------------------------------------------------
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/inc/comphelper/accessiblewrapper.hxx b/comphelper/inc/comphelper/accessiblewrapper.hxx
index 14361cd4cb23..6f03b6ba8919 100644
--- a/comphelper/inc/comphelper/accessiblewrapper.hxx
+++ b/comphelper/inc/comphelper/accessiblewrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,7 +68,7 @@ namespace comphelper
*/
class COMPHELPER_DLLPUBLIC OAccessibleWrapper:public OAccessibleWrapper_Base
,public OComponentProxyAggregation
-
+
{
private:
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
@@ -119,17 +119,17 @@ namespace comphelper
~OAccessibleWrapper( );
private:
- COMPHELPER_DLLPRIVATE OAccessibleWrapper( ); // never implemented
- COMPHELPER_DLLPRIVATE OAccessibleWrapper( const OAccessibleWrapper& ); // never implemented
- COMPHELPER_DLLPRIVATE OAccessibleWrapper& operator=( const OAccessibleWrapper& ); // never implemented
+ COMPHELPER_DLLPRIVATE OAccessibleWrapper( ); // never implemented
+ COMPHELPER_DLLPRIVATE OAccessibleWrapper( const OAccessibleWrapper& ); // never implemented
+ COMPHELPER_DLLPRIVATE OAccessibleWrapper& operator=( const OAccessibleWrapper& ); // never implemented
};
//=========================================================================
//= OAccessibleContextWrapperHelper
//=========================================================================
- typedef ::cppu::ImplHelper1 < ::com::sun::star::accessibility::XAccessibleEventListener
- > OAccessibleContextWrapperHelper_Base;
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::accessibility::XAccessibleEventListener
+ > OAccessibleContextWrapperHelper_Base;
/** Helper for wrapping an XAccessibleContext by aggregating a proxy for it.
@@ -161,7 +161,7 @@ namespace comphelper
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
m_xParentAccessible;
- OWrappedAccessibleChildrenManager* m_pChildMapper; // for mapping children from our inner context to our callers
+ OWrappedAccessibleChildrenManager* m_pChildMapper; // for mapping children from our inner context to our callers
protected:
/** ctor
@@ -230,17 +230,17 @@ namespace comphelper
protected:
~OAccessibleContextWrapperHelper( );
- OAccessibleContextWrapperHelper( ); // never implemented
- OAccessibleContextWrapperHelper( const OAccessibleContextWrapperHelper& ); // never implemented
- OAccessibleContextWrapperHelper& operator=( const OAccessibleContextWrapperHelper& ); // never implemented
+ OAccessibleContextWrapperHelper( ); // never implemented
+ OAccessibleContextWrapperHelper( const OAccessibleContextWrapperHelper& ); // never implemented
+ OAccessibleContextWrapperHelper& operator=( const OAccessibleContextWrapperHelper& ); // never implemented
};
//=========================================================================
//= OAccessibleContextWrapper
//=========================================================================
- typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::accessibility::XAccessibleEventBroadcaster
- , ::com::sun::star::accessibility::XAccessibleContext
- > OAccessibleContextWrapper_CBase;
+ typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::accessibility::XAccessibleEventBroadcaster
+ , ::com::sun::star::accessibility::XAccessibleContext
+ > OAccessibleContextWrapper_CBase;
class COMPHELPER_DLLPUBLIC OAccessibleContextWrapper
:public OBaseMutex
@@ -248,7 +248,7 @@ namespace comphelper
,public OAccessibleContextWrapperHelper
{
private:
- ::comphelper::AccessibleEventNotifier::TClientId m_nNotifierClient; // for notifying AccessibleEvents
+ ::comphelper::AccessibleEventNotifier::TClientId m_nNotifierClient; // for notifying AccessibleEvents
public:
/** ctor
@@ -312,23 +312,23 @@ namespace comphelper
virtual ~OAccessibleContextWrapper();
private:
- COMPHELPER_DLLPRIVATE OAccessibleContextWrapper(); // never implemented
- COMPHELPER_DLLPRIVATE OAccessibleContextWrapper( const OAccessibleContextWrapper& ); // never implemented
- COMPHELPER_DLLPRIVATE OAccessibleContextWrapper& operator=( const OAccessibleContextWrapper& ); // never implemented
+ COMPHELPER_DLLPRIVATE OAccessibleContextWrapper(); // never implemented
+ COMPHELPER_DLLPRIVATE OAccessibleContextWrapper( const OAccessibleContextWrapper& ); // never implemented
+ COMPHELPER_DLLPRIVATE OAccessibleContextWrapper& operator=( const OAccessibleContextWrapper& ); // never implemented
};
//=========================================================================
//= OWrappedAccessibleChildrenManager
//=========================================================================
- typedef ::std::map < ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
- , ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
- , OInterfaceCompare< ::com::sun::star::accessibility::XAccessible >
- > AccessibleMap;
+ typedef ::std::map < ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
+ , ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
+ , OInterfaceCompare< ::com::sun::star::accessibility::XAccessible >
+ > AccessibleMap;
// TODO: think about if we should hold these objects weak
- typedef ::cppu::WeakImplHelper1 < ::com::sun::star::lang::XEventListener
- > OWrappedAccessibleChildrenManager_Base;
+ typedef ::cppu::WeakImplHelper1 < ::com::sun::star::lang::XEventListener
+ > OWrappedAccessibleChildrenManager_Base;
/** manages wrapping XAccessible's to XAccessible's
*/
class COMPHELPER_DLLPUBLIC OWrappedAccessibleChildrenManager : public OWrappedAccessibleChildrenManager_Base
@@ -337,9 +337,9 @@ namespace comphelper
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
m_xORB;
::com::sun::star::uno::WeakReference< ::com::sun::star::accessibility::XAccessible >
- m_aOwningAccessible; // the XAccessible which belongs to the XAccessibleContext which we work for
- AccessibleMap m_aChildrenMap; // for caching children
- sal_Bool m_bTransientChildren; // are we prohibited to cache our children?
+ m_aOwningAccessible; // the XAccessible which belongs to the XAccessibleContext which we work for
+ AccessibleMap m_aChildrenMap; // for caching children
+ sal_Bool m_bTransientChildren; // are we prohibited to cache our children?
public:
/// ctor
@@ -350,12 +350,12 @@ namespace comphelper
/** specifies if the children are to be consideren transient (i.e.: not cached)
<p>to be called only once per lifetime</p>
*/
- void setTransientChildren( sal_Bool _bSet = sal_True );
+ void setTransientChildren( sal_Bool _bSet = sal_True );
/** sets the XAccessible which belongs to the XAccessibleContext which we work for
<p>to be called only once per lifetime</p>
*/
- void setOwningAccessible( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxAcc );
+ void setOwningAccessible( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxAcc );
/// retrieves a wrapper for the given accessible
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
@@ -365,27 +365,27 @@ namespace comphelper
);
/// erases the given key from the map (if it is present there)
- void removeFromCache( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxKey );
+ void removeFromCache( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxKey );
/// invalidates (i.e. empties) the map
- void invalidateAll( );
+ void invalidateAll( );
/** disposes (i.e. cleares) the manager
<p>Note that the XAccessibleContext's of the mapped XAccessible objects are disposed, too.</p>
*/
- void dispose();
+ void dispose();
/** handles a notification as got from the parent of the children we're managing
<p>This applies only to the notifications which have a direct impact on our map.</p>
*/
- void handleChildNotification( const ::com::sun::star::accessibility::AccessibleEventObject& _rEvent );
+ void handleChildNotification( const ::com::sun::star::accessibility::AccessibleEventObject& _rEvent );
/** translates events as got from the parent of the children we're managing
<p>This applies only to the notifications which deal with child objects which we manage.</p>
*/
- void translateAccessibleEvent(
- const ::com::sun::star::accessibility::AccessibleEventObject& _rEvent,
+ void translateAccessibleEvent(
+ const ::com::sun::star::accessibility::AccessibleEventObject& _rEvent,
::com::sun::star::accessibility::AccessibleEventObject& _rTranslatedEvent
);
@@ -394,19 +394,19 @@ namespace comphelper
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
protected:
- void implTranslateChildEventValue( const ::com::sun::star::uno::Any& _rInValue, ::com::sun::star::uno::Any& _rOutValue );
+ void implTranslateChildEventValue( const ::com::sun::star::uno::Any& _rInValue, ::com::sun::star::uno::Any& _rOutValue );
protected:
~OWrappedAccessibleChildrenManager( );
private:
- COMPHELPER_DLLPRIVATE OWrappedAccessibleChildrenManager( ); // never implemented
- COMPHELPER_DLLPRIVATE OWrappedAccessibleChildrenManager( const OWrappedAccessibleChildrenManager& ); // never implemented
- COMPHELPER_DLLPRIVATE OWrappedAccessibleChildrenManager& operator=( const OWrappedAccessibleChildrenManager& ); // never implemented
+ COMPHELPER_DLLPRIVATE OWrappedAccessibleChildrenManager( ); // never implemented
+ COMPHELPER_DLLPRIVATE OWrappedAccessibleChildrenManager( const OWrappedAccessibleChildrenManager& ); // never implemented
+ COMPHELPER_DLLPRIVATE OWrappedAccessibleChildrenManager& operator=( const OWrappedAccessibleChildrenManager& ); // never implemented
};
//.............................................................................
-} // namespace accessibility
+} // namespace accessibility
//.............................................................................
#endif // COMPHELPER_ACCESSIBLE_WRAPPER_HXX
diff --git a/comphelper/inc/comphelper/accimplaccess.hxx b/comphelper/inc/comphelper/accimplaccess.hxx
index 8ba9fe43867e..e2ed5005a19b 100644
--- a/comphelper/inc/comphelper/accimplaccess.hxx
+++ b/comphelper/inc/comphelper/accimplaccess.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@ namespace comphelper
//=====================================================================
//= OAccessibleImplementationAccess
//=====================================================================
- typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XUnoTunnel
- > OAccImpl_Base;
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XUnoTunnel
+ > OAccImpl_Base;
struct OAccImpl_Impl;
/** This is a helper class which allows accessing several aspects of the the implementation
@@ -76,7 +76,7 @@ namespace comphelper
class COMPHELPER_DLLPUBLIC OAccessibleImplementationAccess : public OAccImpl_Base
{
private:
- OAccImpl_Impl* m_pImpl;
+ OAccImpl_Impl* m_pImpl;
protected:
/// retrieves the parent previously set via <method>setAccessibleParent</method>
@@ -87,14 +87,14 @@ namespace comphelper
@return
a bit mask, where a set bit 2^n means that the AccessibleStateType n has been set
*/
- sal_Int64 implGetForeignControlledStates( ) const;
+ sal_Int64 implGetForeignControlledStates( ) const;
/// sets the accessible parent component
- virtual void setAccessibleParent(
+ virtual void setAccessibleParent(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxAccParent );
/// sets or resets a bit of the foreign controlled states
- virtual void setStateBit( const sal_Int16 _nState, const sal_Bool _bSet );
+ virtual void setStateBit( const sal_Int16 _nState, const sal_Bool _bSet );
protected:
OAccessibleImplementationAccess( );
@@ -114,7 +114,7 @@ namespace comphelper
is an invalid context (which means it is <NULL/>, or the implementation is not derived
from <type>OAccessibleImplementationAccess</type>, or retrieving the implementation failed).
*/
- static OAccessibleImplementationAccess* getImplementation(
+ static OAccessibleImplementationAccess* getImplementation(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >& _rxComponent
);
@@ -129,7 +129,7 @@ namespace comphelper
<TRUE/> in case of success, <FALSE/> otherwise. For error condition please look at
<method>getImplementation</method>.
*/
- static sal_Bool setAccessibleParent(
+ static sal_Bool setAccessibleParent(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >& _rxComponent,
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxNewParent
);
@@ -146,19 +146,19 @@ namespace comphelper
<TRUE/> in case of success, <FALSE/> otherwise. For error condition please look at
<method>getImplementation</method>.
*/
- static sal_Bool setForeignControlledState(
+ static sal_Bool setForeignControlledState(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >& _rxComponent,
const sal_Int16 _nState,
- const sal_Bool _bSet
+ const sal_Bool _bSet
);
-
+
private:
COMPHELPER_DLLPRIVATE static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelImplementationId();
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/inc/comphelper/anytostring.hxx b/comphelper/inc/comphelper/anytostring.hxx
index f1f91b2c6e00..282e42d8a420 100644
--- a/comphelper/inc/comphelper/anytostring.hxx
+++ b/comphelper/inc/comphelper/anytostring.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@ namespace comphelper
{
/** Creates a STRING representation out of an ANY value.
-
+
@param value
ANY value
@return
diff --git a/comphelper/inc/comphelper/asyncnotification.hxx b/comphelper/inc/comphelper/asyncnotification.hxx
index 8f660d18559b..a00bf2d40c9a 100644
--- a/comphelper/inc/comphelper/asyncnotification.hxx
+++ b/comphelper/inc/comphelper/asyncnotification.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/attributelist.hxx b/comphelper/inc/comphelper/attributelist.hxx
index d34b32f00ac6..b8afa14cf770 100644
--- a/comphelper/inc/comphelper/attributelist.hxx
+++ b/comphelper/inc/comphelper/attributelist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,17 +57,17 @@ public:
void AppendAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & );
// ::com::sun::star::xml::sax::XAttributeList
- virtual sal_Int16 SAL_CALL getLength(void)
+ virtual sal_Int16 SAL_CALL getLength(void)
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getNameByIndex(sal_Int16 i)
+ virtual ::rtl::OUString SAL_CALL getNameByIndex(sal_Int16 i)
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getTypeByIndex(sal_Int16 i)
+ virtual ::rtl::OUString SAL_CALL getTypeByIndex(sal_Int16 i)
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getTypeByName(const ::rtl::OUString& aName)
+ virtual ::rtl::OUString SAL_CALL getTypeByName(const ::rtl::OUString& aName)
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getValueByIndex(sal_Int16 i)
+ virtual ::rtl::OUString SAL_CALL getValueByIndex(sal_Int16 i)
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getValueByName(const ::rtl::OUString& aName)
+ virtual ::rtl::OUString SAL_CALL getValueByName(const ::rtl::OUString& aName)
throw( ::com::sun::star::uno::RuntimeException );
};
diff --git a/comphelper/inc/comphelper/basicio.hxx b/comphelper/inc/comphelper/basicio.hxx
index 7604b1a7029d..6e30b5ba5ce6 100644
--- a/comphelper/inc/comphelper/basicio.hxx
+++ b/comphelper/inc/comphelper/basicio.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,9 +38,9 @@ namespace comphelper
{
//.........................................................................
-namespace stario = ::com::sun::star::io;
-namespace staruno = ::com::sun::star::uno;
-namespace starawt = ::com::sun::star::awt;
+namespace stario = ::com::sun::star::io;
+namespace staruno = ::com::sun::star::uno;
+namespace starawt = ::com::sun::star::awt;
// sal_Bool
COMPHELPER_DLLPUBLIC const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, sal_Bool& _rVal);
@@ -100,7 +100,7 @@ const staruno::Reference<stario::XObjectOutputStream>& operator << (const starun
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_BASIC_IO_HXX_
diff --git a/comphelper/inc/comphelper/broadcasthelper.hxx b/comphelper/inc/comphelper/broadcasthelper.hxx
index aa61db5d3ff8..d1fe47f812da 100644
--- a/comphelper/inc/comphelper/broadcasthelper.hxx
+++ b/comphelper/inc/comphelper/broadcasthelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,23 +39,23 @@ namespace comphelper
//==================================================================================
//= OMutexAndBroadcastHelper - a class which holds a Mutex and a OBroadcastHelper;
- //= needed because when deriving from OPropertySetHelper,
- //= the OBroadcastHelper has to be initialized before
- //= the OPropertySetHelper
+ //= needed because when deriving from OPropertySetHelper,
+ //= the OBroadcastHelper has to be initialized before
+ //= the OPropertySetHelper
//==================================================================================
class OMutexAndBroadcastHelper
{
protected:
- ::osl::Mutex m_aMutex;
- ::cppu::OBroadcastHelper m_aBHelper;
-
+ ::osl::Mutex m_aMutex;
+ ::cppu::OBroadcastHelper m_aBHelper;
+
public:
OMutexAndBroadcastHelper() : m_aBHelper( m_aMutex ) { }
-
- ::osl::Mutex& GetMutex() { return m_aMutex; }
- ::cppu::OBroadcastHelper& GetBroadcastHelper() { return m_aBHelper; }
- const ::cppu::OBroadcastHelper& GetBroadcastHelper() const { return m_aBHelper; }
-
+
+ ::osl::Mutex& GetMutex() { return m_aMutex; }
+ ::cppu::OBroadcastHelper& GetBroadcastHelper() { return m_aBHelper; }
+ const ::cppu::OBroadcastHelper& GetBroadcastHelper() const { return m_aBHelper; }
+
};
// base class for all classes who are derived from OPropertySet and from OComponent
diff --git a/comphelper/inc/comphelper/classids.hxx b/comphelper/inc/comphelper/classids.hxx
index dcfe50248d20..4eeafadf1fa2 100644
--- a/comphelper/inc/comphelper/classids.hxx
+++ b/comphelper/inc/comphelper/classids.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/comphelperdllapi.h b/comphelper/inc/comphelper/comphelperdllapi.h
index 32c86f8fd3b7..1c538de2a078 100644
--- a/comphelper/inc/comphelper/comphelperdllapi.h
+++ b/comphelper/inc/comphelper/comphelperdllapi.h
@@ -1,16 +1,16 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#ifndef INCLUDED_COMPHELPERDLLAPI_H
#define INCLUDED_COMPHELPERDLLAPI_H
-
+
#include "sal/types.h"
-
+
#if defined(COMPHELPER_DLLIMPLEMENTATION)
#define COMPHELPER_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define COMPHELPER_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define COMPHELPER_DLLPRIVATE SAL_DLLPRIVATE
-
+
#endif /* INCLUDED_COMPHELPERDLLAPI_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/inc/comphelper/componentbase.hxx b/comphelper/inc/comphelper/componentbase.hxx
index db3e558904b9..3783f4c69ce8 100644
--- a/comphelper/inc/comphelper/componentbase.hxx
+++ b/comphelper/inc/comphelper/componentbase.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/componentcontext.hxx b/comphelper/inc/comphelper/componentcontext.hxx
index 410d2390619c..8a286b2c9974 100644
--- a/comphelper/inc/comphelper/componentcontext.hxx
+++ b/comphelper/inc/comphelper/componentcontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/componentfactory.hxx b/comphelper/inc/comphelper/componentfactory.hxx
index 2da7de3f3c82..29f92b71ddc2 100644
--- a/comphelper/inc/comphelper/componentfactory.hxx
+++ b/comphelper/inc/comphelper/componentfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,10 +43,10 @@
#ifdef UNX
// "libNAMExy.so" (__DLLEXTENSION == "xy.so")
-#define LLCF_LIBNAME( name ) "lib" name __DLLEXTENSION
+#define LLCF_LIBNAME( name ) "lib" name __DLLEXTENSION
#else
// "NAMExy.dll" (__DLLEXTENSION == "xy")
-#define LLCF_LIBNAME( name ) name __DLLEXTENSION ".dll"
+#define LLCF_LIBNAME( name ) name __DLLEXTENSION ".dll"
#endif
@@ -114,7 +114,7 @@ COMPHELPER_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::uno::XI
);
-} // namespace comphelper
+} // namespace comphelper
#endif // _COMPHELPER_COMPONENTFACTORY_HXX
diff --git a/comphelper/inc/comphelper/componentmodule.hxx b/comphelper/inc/comphelper/componentmodule.hxx
index d117cc75bb0c..2f81f6f368ac 100644
--- a/comphelper/inc/comphelper/componentmodule.hxx
+++ b/comphelper/inc/comphelper/componentmodule.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/composedprops.hxx b/comphelper/inc/comphelper/composedprops.hxx
index 74a9cf30acd1..177c389010a9 100644
--- a/comphelper/inc/comphelper/composedprops.hxx
+++ b/comphelper/inc/comphelper/composedprops.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ namespace comphelper
{
public:
/** determines whether or not a property should appear in the composed property set
- @param _rPropertyName
+ @param _rPropertyName
the name of the property
*/
virtual sal_Bool isComposeable(const ::rtl::OUString& _rPropertyName) const = 0;
@@ -59,9 +59,9 @@ namespace comphelper
//= OComposedPropertySet
//=====================================================================
class OComposedPropertySetInfo;
- typedef ::cppu::WeakImplHelper2 < ::com::sun::star::beans::XPropertySet
- , ::com::sun::star::beans::XPropertyState
- > OComposedPropertySet_Base;
+ typedef ::cppu::WeakImplHelper2 < ::com::sun::star::beans::XPropertySet
+ , ::com::sun::star::beans::XPropertyState
+ > OComposedPropertySet_Base;
/** helper class for composing a property set from a sequence of other property sets.
<p>First: This class is a fast shot, so don't sue me :) (To be honest, it's the migration of an old ugly
implementation. It's still ugly).</p>
@@ -74,12 +74,12 @@ namespace comphelper
private:
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >
m_aProperties;
- OComposedPropertySetInfo* m_pInfo;
+ OComposedPropertySetInfo* m_pInfo;
protected:
- ::osl::Mutex m_aMutex;
+ ::osl::Mutex m_aMutex;
DECLARE_STL_VECTOR(::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>, PropertySetArray);
- PropertySetArray m_aSingleSets;
+ PropertySetArray m_aSingleSets;
public:
/** constructs a composed property set
@@ -116,11 +116,11 @@ namespace comphelper
protected:
~OComposedPropertySet();
- void compose(const IPropertySetComposerCallback* _pMetaData);
+ void compose(const IPropertySetComposerCallback* _pMetaData);
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_COMPOSEDPROPS_HXX_
diff --git a/comphelper/inc/comphelper/configurationhelper.hxx b/comphelper/inc/comphelper/configurationhelper.hxx
index 3800cea7a0ba..36099fed860d 100644
--- a/comphelper/inc/comphelper/configurationhelper.hxx
+++ b/comphelper/inc/comphelper/configurationhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/container.hxx b/comphelper/inc/comphelper/container.hxx
index f0466fe3ae5e..e3b9d752c805 100644
--- a/comphelper/inc/comphelper/container.hxx
+++ b/comphelper/inc/comphelper/container.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,17 +46,17 @@ namespace comphelper
class COMPHELPER_DLLPUBLIC IndexAccessIterator
{
protected:
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> m_xStartingPoint;
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> m_xStartingPoint;
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> m_xCurrentObject;
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> m_xCurrentObject;
// das aktuelle Objekt
- ::std::vector<sal_Int32> m_arrChildIndizies;
+ ::std::vector<sal_Int32> m_arrChildIndizies;
// ich bewege mich eigentlich durch einen Baum, dummerweise haben dessen
// Elemente aber kein GetNextSibling, also muss ich mir merken, wo die Childs
// innerhalb ihres Parents sitzen (das ist sozusagen der Pfad von der Wurzel
// zu m_xCurrentObject
- ::rtl::OUString m_ustrProperty;
+ ::rtl::OUString m_ustrProperty;
// der Name der gesuchten property
public:
@@ -64,7 +64,7 @@ public:
virtual ~IndexAccessIterator();
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> Next();
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> Next();
virtual void Invalidate() { m_xCurrentObject = NULL; }
@@ -78,7 +78,7 @@ protected:
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_CONTAINER_HXX_
diff --git a/comphelper/inc/comphelper/containermultiplexer.hxx b/comphelper/inc/comphelper/containermultiplexer.hxx
index 68990ec694f6..3bb11b3d0cfc 100644
--- a/comphelper/inc/comphelper/containermultiplexer.hxx
+++ b/comphelper/inc/comphelper/containermultiplexer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,8 +52,8 @@ namespace comphelper
{
friend class OContainerListenerAdapter;
protected:
- OContainerListenerAdapter* m_pAdapter;
- ::osl::Mutex& m_rMutex;
+ OContainerListenerAdapter* m_pAdapter;
+ ::osl::Mutex& m_rMutex;
public:
OContainerListener(::osl::Mutex& _rMutex);
@@ -79,8 +79,8 @@ namespace comphelper
protected:
::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >
m_xContainer;
- OContainerListener* m_pListener;
- sal_Int32 m_nLockCount;
+ OContainerListener* m_pListener;
+ sal_Int32 m_nLockCount;
virtual ~OContainerListenerAdapter();
@@ -97,19 +97,19 @@ namespace comphelper
virtual void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException);
// locking the multiplexer
- void lock();
- void unlock();
- sal_Int32 locked() const { return m_nLockCount; }
+ void lock();
+ void unlock();
+ sal_Int32 locked() const { return m_nLockCount; }
/// dispose the object. No multiplexing anymore
- void dispose();
+ void dispose();
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >&
getContainer() const { return m_xContainer; }
};
//.........................................................................
-} // namespace dbaui
+} // namespace dbaui
//.........................................................................
#endif // _COMPHELPER_CONTAINERMULTIPLEXER_HXX_
diff --git a/comphelper/inc/comphelper/docpasswordhelper.hxx b/comphelper/inc/comphelper/docpasswordhelper.hxx
index 4845b0ccd04b..7917f11b17ef 100644
--- a/comphelper/inc/comphelper/docpasswordhelper.hxx
+++ b/comphelper/inc/comphelper/docpasswordhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -117,7 +117,7 @@ public:
<FALSE/> otherwise
*/
- static sal_Bool IsModifyPasswordCorrect(
+ static sal_Bool IsModifyPasswordCorrect(
const ::rtl::OUString& aPassword,
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aInfo );
@@ -193,7 +193,7 @@ public:
static ::com::sun::star::uno::Sequence< sal_Int8 > GetXLHashAsSequence(
const ::rtl::OUString& aString,
rtl_TextEncoding nEnc = RTL_TEXTENCODING_UTF8 );
-
+
// ------------------------------------------------------------------------
/** This helper function tries to request and verify a password to load a
diff --git a/comphelper/inc/comphelper/docpasswordrequest.hxx b/comphelper/inc/comphelper/docpasswordrequest.hxx
index 569160cc1809..b7444105ccdd 100644
--- a/comphelper/inc/comphelper/docpasswordrequest.hxx
+++ b/comphelper/inc/comphelper/docpasswordrequest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ class PasswordContinuation;
/** Implements the task.XInteractionRequest interface for requesting a password
string for a document.
*/
-class COMPHELPER_DLLPUBLIC DocPasswordRequest :
+class COMPHELPER_DLLPUBLIC DocPasswordRequest :
public ::com::sun::star::task::XInteractionRequest,
public ::cppu::OWeakObject
{
diff --git a/comphelper/inc/comphelper/documentconstants.hxx b/comphelper/inc/comphelper/documentconstants.hxx
index 01a315f984ac..b05b3d843df0 100644
--- a/comphelper/inc/comphelper/documentconstants.hxx
+++ b/comphelper/inc/comphelper/documentconstants.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@
#define MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII "application/vnd.oasis.opendocument.chart"
#define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII "application/vnd.oasis.opendocument.formula"
#define MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII "application/vnd.oasis.opendocument.base"
-#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII "application/vnd.sun.xml.report"
+#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII "application/vnd.sun.xml.report"
#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART_ASCII "application/vnd.sun.xml.report.chart"
#define MIMETYPE_OASIS_OPENDOCUMENT_TEXT ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_TEXT_ASCII ) )
@@ -84,8 +84,8 @@
#define MIMETYPE_OASIS_OPENDOCUMENT_CHART ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_CHART_ASCII ) )
#define MIMETYPE_OASIS_OPENDOCUMENT_FORMULA ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_ASCII ) )
#define MIMETYPE_OASIS_OPENDOCUMENT_DATABASE ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII ) )
-#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII ) )
-#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART_ASCII ) )
+#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII ) )
+#define MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MIMETYPE_OASIS_OPENDOCUMENT_REPORT_CHART_ASCII ) )
// template formats of SO8
#define MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE_ASCII "application/vnd.oasis.opendocument.text-template"
diff --git a/comphelper/inc/comphelper/documentinfo.hxx b/comphelper/inc/comphelper/documentinfo.hxx
index baa06e7d7d4b..b4bad4d0ec11 100644
--- a/comphelper/inc/comphelper/documentinfo.hxx
+++ b/comphelper/inc/comphelper/documentinfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/embeddedobjectcontainer.hxx b/comphelper/inc/comphelper/embeddedobjectcontainer.hxx
index 8069534b1e3a..7006cc6d66e3 100644
--- a/comphelper/inc/comphelper/embeddedobjectcontainer.hxx
+++ b/comphelper/inc/comphelper/embeddedobjectcontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,8 +76,8 @@ public:
~EmbeddedObjectContainer();
void SwitchPersistence( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& );
- sal_Bool CommitImageSubStorage();
- void ReleaseImageSubStorage();
+ sal_Bool CommitImageSubStorage();
+ void ReleaseImageSubStorage();
::rtl::OUString CreateUniqueObjectName();
@@ -153,13 +153,13 @@ public:
sal_Bool InsertGraphicStream( const com::sun::star::uno::Reference < com::sun::star::io::XInputStream >& rStream, const ::rtl::OUString& rObjectName, const ::rtl::OUString& rMediaType );
// try to add a graphical representation for an object in optimized way ( might fail )
- sal_Bool InsertGraphicStreamDirectly( const com::sun::star::uno::Reference < com::sun::star::io::XInputStream >& rStream, const ::rtl::OUString& rObjectName, const rtl::OUString& rMediaType );
+ sal_Bool InsertGraphicStreamDirectly( const com::sun::star::uno::Reference < com::sun::star::io::XInputStream >& rStream, const ::rtl::OUString& rObjectName, const rtl::OUString& rMediaType );
// remove a graphical representation for an object
sal_Bool RemoveGraphicStream( const ::rtl::OUString& rObjectName );
// copy the graphical representation from different container
- sal_Bool TryToCopyGraphReplacement( EmbeddedObjectContainer& rSrc,
+ sal_Bool TryToCopyGraphReplacement( EmbeddedObjectContainer& rSrc,
const ::rtl::OUString& aOrigName,
const ::rtl::OUString& aTargetName );
diff --git a/comphelper/inc/comphelper/enumhelper.hxx b/comphelper/inc/comphelper/enumhelper.hxx
index fbf42d0d5673..c002c4ceac9f 100644
--- a/comphelper/inc/comphelper/enumhelper.hxx
+++ b/comphelper/inc/comphelper/enumhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,9 +44,9 @@ namespace comphelper
{
//.........................................................................
- namespace starcontainer = ::com::sun::star::container;
- namespace staruno = ::com::sun::star::uno;
- namespace starlang = ::com::sun::star::lang;
+ namespace starcontainer = ::com::sun::star::container;
+ namespace staruno = ::com::sun::star::uno;
+ namespace starlang = ::com::sun::star::lang;
//==================================================================
//= OEnumerationLock
@@ -68,7 +68,7 @@ class COMPHELPER_DLLPUBLIC OEnumerationByName : private OEnumerationLock
starlang::XEventListener >
{
staruno::Sequence< ::rtl::OUString > m_aNames;
- sal_Int32 m_nPos;
+ sal_Int32 m_nPos;
staruno::Reference< starcontainer::XNameAccess > m_xAccess;
sal_Bool m_bListening;
@@ -123,7 +123,7 @@ private:
//==================================================================
/** provides an <type scope="com.sun.star.container">XEnumeration</type>
for an outside set vector of Any's.
-
+
*/
class COMPHELPER_DLLPUBLIC OAnyEnumeration : private OEnumerationLock
, public ::cppu::WeakImplHelper1< starcontainer::XEnumeration >
diff --git a/comphelper/inc/comphelper/eventattachermgr.hxx b/comphelper/inc/comphelper/eventattachermgr.hxx
index f534ba26dbe5..ae6cd7dc8681 100644
--- a/comphelper/inc/comphelper/eventattachermgr.hxx
+++ b/comphelper/inc/comphelper/eventattachermgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/evtlistenerhlp.hxx b/comphelper/inc/comphelper/evtlistenerhlp.hxx
index 8abf94b915ce..7b6ca0d35c84 100644
--- a/comphelper/inc/comphelper/evtlistenerhlp.hxx
+++ b/comphelper/inc/comphelper/evtlistenerhlp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ namespace comphelper
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
};
//........................................................................
-} // namespace comphelper
+} // namespace comphelper
//........................................................................
#endif // COMPHELPER_EVENTLISTENERHELPER_HXX
diff --git a/comphelper/inc/comphelper/evtmethodhelper.hxx b/comphelper/inc/comphelper/evtmethodhelper.hxx
index c8c9ec9eb40f..b55130dcfed8 100644
--- a/comphelper/inc/comphelper/evtmethodhelper.hxx
+++ b/comphelper/inc/comphelper/evtmethodhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@ namespace comphelper
COMPHELPER_DLLPUBLIC ::com::sun::star::uno::Sequence< ::rtl::OUString> getEventMethodsForType(const ::com::sun::star::uno::Type& type);
//........................................................................
-} // namespace comphelper
+} // namespace comphelper
//........................................................................
#endif // COMPHELPER_EVENTMEHODHELPER_HXX
diff --git a/comphelper/inc/comphelper/extract.hxx b/comphelper/inc/comphelper/extract.hxx
index 4fcaab595b96..6b960fbf5375 100644
--- a/comphelper/inc/comphelper/extract.hxx
+++ b/comphelper/inc/comphelper/extract.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@ namespace cppu
/**
* Sets enum from int32 value. This function does NOT check for valid enum values!
*<BR>
- * @param nEnum int32 enum value
- * @param rType enum type
+ * @param nEnum int32 enum value
+ * @param rType enum type
* @return enum or emoty any.
*/
inline ::com::sun::star::uno::Any SAL_CALL int2enum(
@@ -59,8 +59,8 @@ inline ::com::sun::star::uno::Any SAL_CALL int2enum(
/**
* Sets int32 from enum or int in any.
*<BR>
- * @param rnEnum [out] int32 enum value
- * @param rAny enum or int
+ * @param rnEnum [out] int32 enum value
+ * @param rAny enum or int
* @param sal_True if enum or int value was set else sal_False.
*/
inline sal_Bool SAL_CALL enum2int( sal_Int32 & rnEnum, const ::com::sun::star::uno::Any & rAny )
@@ -77,9 +77,9 @@ inline sal_Bool SAL_CALL enum2int( sal_Int32 & rnEnum, const ::com::sun::star::u
/**
* Sets int32 from enum or int in any with additional typecheck
* <BR>
- * @param rAny enum or int
- * @param eRet the enum value as int. If there is not enum of the given type or
- * a ::com::sun::star::lang::IllegalArgumentException is thrown
+ * @param rAny enum or int
+ * @param eRet the enum value as int. If there is not enum of the given type or
+ * a ::com::sun::star::lang::IllegalArgumentException is thrown
*/
template< typename E >
inline void SAL_CALL any2enum( E & eRet, const ::com::sun::star::uno::Any & rAny )
@@ -114,8 +114,8 @@ inline ::com::sun::star::uno::Any SAL_CALL enum2any( E eEnum )
* it will be queried for it.
* If no interface is available, the out ref will be cleared.
*<BR>
- * @param rxOut [out] demanded interface
- * @param rAny interface
+ * @param rxOut [out] demanded interface
+ * @param rAny interface
* @return sal_True if any reference (including the null ref) was retrieved from any else sal_False.
*/
template< class T >
diff --git a/comphelper/inc/comphelper/fileformat.h b/comphelper/inc/comphelper/fileformat.h
index 7b047e73d349..f6645f502ecb 100644
--- a/comphelper/inc/comphelper/fileformat.h
+++ b/comphelper/inc/comphelper/fileformat.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,11 +31,11 @@
/* file format versions *************************************************/
-#define SOFFICE_FILEFORMAT_31 3450
-#define SOFFICE_FILEFORMAT_40 3580
-#define SOFFICE_FILEFORMAT_50 5050
-#define SOFFICE_FILEFORMAT_60 6200
-#define SOFFICE_FILEFORMAT_8 6800
+#define SOFFICE_FILEFORMAT_31 3450
+#define SOFFICE_FILEFORMAT_40 3580
+#define SOFFICE_FILEFORMAT_50 5050
+#define SOFFICE_FILEFORMAT_60 6200
+#define SOFFICE_FILEFORMAT_8 6800
#define SOFFICE_FILEFORMAT_CURRENT SOFFICE_FILEFORMAT_8
#endif
diff --git a/comphelper/inc/comphelper/genericpropertyset.hxx b/comphelper/inc/comphelper/genericpropertyset.hxx
index a5b3608fc964..984554b817d0 100644
--- a/comphelper/inc/comphelper/genericpropertyset.hxx
+++ b/comphelper/inc/comphelper/genericpropertyset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/guarding.hxx b/comphelper/inc/comphelper/guarding.hxx
index 7593b4846cd6..41807997a136 100644
--- a/comphelper/inc/comphelper/guarding.hxx
+++ b/comphelper/inc/comphelper/guarding.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,17 +47,17 @@ namespace comphelper
template <class MUTEX>
class ORelease
{
- MUTEX& m_rMutex;
+ MUTEX& m_rMutex;
public:
ORelease(MUTEX& _rMutex) : m_rMutex(_rMutex) { _rMutex.release(); }
~ORelease() { m_rMutex.acquire(); }
};
-typedef ORelease< ::osl::Mutex > MutexRelease;
+typedef ORelease< ::osl::Mutex > MutexRelease;
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_GUARDING_HXX_
diff --git a/comphelper/inc/comphelper/ihwrapnofilter.hxx b/comphelper/inc/comphelper/ihwrapnofilter.hxx
index 773946cd9af1..499d213708fd 100644
--- a/comphelper/inc/comphelper/ihwrapnofilter.hxx
+++ b/comphelper/inc/comphelper/ihwrapnofilter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/implbase_var.hxx b/comphelper/inc/comphelper/implbase_var.hxx
index 2499ce94f625..a96c578385dc 100644
--- a/comphelper/inc/comphelper/implbase_var.hxx
+++ b/comphelper/inc/comphelper/implbase_var.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,7 +28,7 @@
/** This header generates the following template classes with a variable number
of interfaces:
-
+
comphelper::ImplHelper<N> <typename Ifc1, ..., typename Ifc<N> >
comphelper::WeakImplHelper<N> <typename Ifc1, ..., typename Ifc<N> >
comphelper::WeakComponentImplHelper<N> <typename Ifc1, ...,
@@ -42,11 +42,11 @@
Don't use this header for interface numbers up to 12;
always use the existing cppuhelper/(impl|comp)base<1-12>.hxx headers
for this purpose, which eases debugging.
-
+
Including this header requires a little discipline, because it has no
include guards. Please use the following external include guard rule
where <N> is the number of interface types:
-
+
#if ! defined(INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_<N>)
#define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_<N>
#define COMPHELPER_IMPLBASE_INTERFACE_NUMBER <N>
@@ -140,7 +140,7 @@ struct BOOST_PP_CAT(ImplClassData, COMPHELPER_IMPLBASE_INTERFACE_NUMBER)
/** Implementation helper implementing interface
::com::sun::star::lang::XTypeProvider and method
XInterface::queryInterface(), but no reference counting.
-
+
@derive
Inherit from this class giving your interface(s) to be implemented as
template argument(s). Your sub class defines method implementations for
@@ -188,7 +188,7 @@ public:
::com::sun::star::uno::XInterface
which supports weak mechanism to be held weakly
(supporting ::com::sun::star::uno::XWeak thru ::cppu::OWeakObject).
-
+
@derive
Inherit from this class giving your interface(s) to be implemented as
template argument(s). Your sub class defines method implementations for
@@ -212,7 +212,7 @@ class SAL_NO_VTABLE BOOST_PP_CAT(WeakImplHelper,
BOOST_PP_CAT(WeakImplHelper, COMPHELPER_IMPLBASE_INTERFACE_NUMBER)<
BOOST_PP_ENUM_PARAMS(COMPHELPER_IMPLBASE_INTERFACE_NUMBER, Ifc)>
> > {};
-
+
public:
virtual ::com::sun::star::uno::Any
SAL_CALL queryInterface( ::com::sun::star::uno::Type const& rType )
@@ -237,18 +237,18 @@ public:
/** Implementation helper implementing interfaces
::com::sun::star::lang::XTypeProvider and
::com::sun::star::uno::XInterface inherting from a BaseClass.
-
+
All acquire() and release() calls are delegated to the BaseClass.
Upon queryInterface(), if a demanded interface is not supported by this
class directly, the request is delegated to the BaseClass.
-
+
@attention
The BaseClass has to be complete in a sense, that
::com::sun::star::uno::XInterface and
::com::sun::star::lang::XTypeProvider are implemented properly.
The BaseClass must have at least one ctor that can be called with
COMPHELPER_IMPLBASE_MAX_CTOR_ARGS or fewer arguments.
-
+
@derive
Inherit from this class giving your additional interface(s) to be
implemented as template argument(s). Your sub class defines method
@@ -274,7 +274,7 @@ class SAL_NO_VTABLE BOOST_PP_CAT(ImplInheritanceHelper,
BaseClass,
BOOST_PP_ENUM_PARAMS(COMPHELPER_IMPLBASE_INTERFACE_NUMBER, Ifc)>
> > {};
-
+
protected:
#define COMPHELPER_IMPLBASE_templctor_args(z_, n_, unused_) \
BOOST_PP_CAT(T, n_) const& BOOST_PP_CAT(arg, n_)
@@ -284,7 +284,7 @@ protected:
BOOST_PP_ENUM(BOOST_PP_ADD(n_, 1), \
COMPHELPER_IMPLBASE_templctor_args, ~) ) \
: BaseClass( BOOST_PP_ENUM_PARAMS(BOOST_PP_ADD(n_, 1), arg) ) {}
-
+
BOOST_PP_CAT(ImplInheritanceHelper, COMPHELPER_IMPLBASE_INTERFACE_NUMBER)()
: BaseClass() {}
BOOST_PP_REPEAT(COMPHELPER_IMPLBASE_MAX_CTOR_ARGS,
@@ -324,15 +324,15 @@ public:
/** Implementation helper supporting
::com::sun::star::lang::XTypeProvider and
::com::sun::star::lang::XComponent.
-
+
Upon disposing objects of this class, sub-classes receive a disposing()
call. Objects of this class can be held weakly, i.e. by a
::com::sun::star::uno::WeakReference.
-
+
@attention
The life-cycle of the passed mutex reference has to be longer than objects
of this class.
-
+
@derive
Inherit from this class giving your interface(s) to be implemented as
template argument(s). Your sub class defines method implementations for
@@ -357,11 +357,11 @@ class SAL_NO_VTABLE BOOST_PP_CAT(WeakComponentImplHelper,
COMPHELPER_IMPLBASE_INTERFACE_NUMBER)<
BOOST_PP_ENUM_PARAMS(COMPHELPER_IMPLBASE_INTERFACE_NUMBER, Ifc)>
> > {};
-
+
public:
BOOST_PP_CAT(WeakComponentImplHelper, COMPHELPER_IMPLBASE_INTERFACE_NUMBER)(
::osl::Mutex & rMutex ) : WeakComponentImplHelperBase(rMutex) {}
-
+
virtual ::com::sun::star::uno::Any
SAL_CALL queryInterface( ::com::sun::star::uno::Type const& rType )
throw (::com::sun::star::uno::RuntimeException)
@@ -381,7 +381,7 @@ public:
SAL_CALL getImplementationId()
throw (::com::sun::star::uno::RuntimeException)
{ return ::cppu::ImplHelper_getImplementationId( cd::get() ); }
-
+
// implement XComponent directly avoiding ambiguities:
virtual void SAL_CALL dispose()
throw (::com::sun::star::uno::RuntimeException)
diff --git a/comphelper/inc/comphelper/implementationreference.hxx b/comphelper/inc/comphelper/implementationreference.hxx
index dff242b78307..70a15e551785 100644
--- a/comphelper/inc/comphelper/implementationreference.hxx
+++ b/comphelper/inc/comphelper/implementationreference.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,15 +93,15 @@ namespace comphelper
have UnoType be something different from XInterface, governed
by the usage of the C++ interface)
- @sample ImplementationReference< MyCppType, XMyInterface >
+ @sample ImplementationReference< MyCppType, XMyInterface >
- @sample ImplementationReference< MyAbstractCppType, XMyInterface, XInterface >
+ @sample ImplementationReference< MyAbstractCppType, XMyInterface, XInterface >
for an abstract C++ class
@see ::rtl::Reference
*/
- template < class CppType,
+ template < class CppType,
class UnoType,
class XIfType=UnoType > class ImplementationReference
{
@@ -112,7 +112,7 @@ namespace comphelper
typedef XIfType UnambiguousXInterfaceType;
/** Default-construct an ImplementationReference
-
+
Uno reference will be invalid, implementation pointer will
be NULL.
*/
@@ -196,28 +196,28 @@ namespace comphelper
Compatibility method to get an auto_ptr-compatible
interface
*/
- ImplementationType* get() { return mpImpl; }
- const ImplementationType* get() const { return mpImpl; }
+ ImplementationType* get() { return mpImpl; }
+ const ImplementationType* get() const { return mpImpl; }
/** Release all references
Compatibility method to get an auto_ptr-compatible
interface
*/
- void reset() { dispose(); }
+ void reset() { dispose(); }
/** Release all references
-
+
This method releases the UNO interface reference, and
clears the C++ pointer to NULL.
*/
- void dispose() { mxRef = NULL; mpImpl=NULL; }
+ void dispose() { mxRef = NULL; mpImpl=NULL; }
- ImplementationType* operator->() { return mpImpl; }
- const ImplementationType* operator->() const { return mpImpl; }
+ ImplementationType* operator->() { return mpImpl; }
+ const ImplementationType* operator->() const { return mpImpl; }
- ImplementationType& operator*() { return *mpImpl; }
- const ImplementationType& operator*() const { return *mpImpl; }
+ ImplementationType& operator*() { return *mpImpl; }
+ const ImplementationType& operator*() const { return *mpImpl; }
/// Access to the underlying UNO reference, without extra querying
::com::sun::star::uno::Reference< UnoInterfaceType > getRef() { return mxRef; }
@@ -231,7 +231,7 @@ namespace comphelper
// ImplementationReference& operator= ( const ImplementationReference& );
/** Comparison operator
-
+
Object identity is defined to be identity of the
implementation pointers. This is in general invalid when
comparing pointers to UNO objects (ambiguous class
@@ -244,7 +244,7 @@ namespace comphelper
}
/** less-than operator
-
+
Object order is defined to be the ordering of the
implementation pointers. This is in general invalid when
comparing pointers to UNO objects (ambiguous class
@@ -258,15 +258,15 @@ namespace comphelper
{
return mpImpl < rhs.mpImpl;
}
-
+
private:
-
+
// the interface, hard reference to prevent object from vanishing
- ::com::sun::star::uno::Reference< UnoInterfaceType > mxRef;
+ ::com::sun::star::uno::Reference< UnoInterfaceType > mxRef;
// the c++ object, for our internal stuff
- ImplementationType* mpImpl;
-
+ ImplementationType* mpImpl;
+
};
}
diff --git a/comphelper/inc/comphelper/interaction.hxx b/comphelper/inc/comphelper/interaction.hxx
index 236738b9c43c..1b233b1ba5c3 100644
--- a/comphelper/inc/comphelper/interaction.hxx
+++ b/comphelper/inc/comphelper/interaction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,19 +52,19 @@ namespace comphelper
*/
class OInteractionSelect
{
- sal_Bool m_bSelected : 1; /// indicates if the select event occured
+ sal_Bool m_bSelected : 1; /// indicates if the select event occured
protected:
OInteractionSelect() : m_bSelected(sal_False) { }
public:
/// determines whether or not this handler was selected
- sal_Bool wasSelected() const { return m_bSelected; }
+ sal_Bool wasSelected() const { return m_bSelected; }
/// resets the state to "not selected", so you may reuse the handler
- void reset() { m_bSelected = sal_False; }
+ void reset() { m_bSelected = sal_False; }
protected:
- void implSelected() { m_bSelected = sal_True; }
+ void implSelected() { m_bSelected = sal_True; }
};
//=========================================================================
@@ -95,22 +95,22 @@ namespace comphelper
//=========================================================================
//= OInteractionApprove
//=========================================================================
- typedef OInteraction< ::com::sun::star::task::XInteractionApprove > OInteractionApprove;
+ typedef OInteraction< ::com::sun::star::task::XInteractionApprove > OInteractionApprove;
//=========================================================================
//= OInteractionDispprove
//=========================================================================
- typedef OInteraction< ::com::sun::star::task::XInteractionDisapprove > OInteractionDisapprove;
+ typedef OInteraction< ::com::sun::star::task::XInteractionDisapprove > OInteractionDisapprove;
//=========================================================================
//= OInteractionAbort
//=========================================================================
- typedef OInteraction< ::com::sun::star::task::XInteractionAbort > OInteractionAbort;
+ typedef OInteraction< ::com::sun::star::task::XInteractionAbort > OInteractionAbort;
//=========================================================================
//= OInteractionRetry
//=========================================================================
- typedef OInteraction< ::com::sun::star::task::XInteractionRetry > OInteractionRetry;
+ typedef OInteraction< ::com::sun::star::task::XInteractionRetry > OInteractionRetry;
//=========================================================================
//= OInteractionPassword
@@ -138,17 +138,17 @@ namespace comphelper
//=========================================================================
//= OInteractionRequest
//=========================================================================
- typedef ::cppu::WeakImplHelper1 < ::com::sun::star::task::XInteractionRequest
- > OInteractionRequest_Base;
+ typedef ::cppu::WeakImplHelper1 < ::com::sun::star::task::XInteractionRequest
+ > OInteractionRequest_Base;
/** implements an interaction request (<type scope="com.sun.star.task">XInteractionRequest</type>)<p/>
at run time, you can freely add any interaction continuation objects
*/
class COMPHELPER_DLLPUBLIC OInteractionRequest : public OInteractionRequest_Base
{
::com::sun::star::uno::Any
- m_aRequest; /// the request we represent
+ m_aRequest; /// the request we represent
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation > >
- m_aContinuations; /// all registered continuations
+ m_aContinuations; /// all registered continuations
public:
OInteractionRequest(const ::com::sun::star::uno::Any& _rRequestDescription);
@@ -163,7 +163,7 @@ namespace comphelper
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation > > SAL_CALL getContinuations( ) throw(::com::sun::star::uno::RuntimeException);
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_INTERACTION_HXX_
diff --git a/comphelper/inc/comphelper/legacysingletonfactory.hxx b/comphelper/inc/comphelper/legacysingletonfactory.hxx
index d40f828d1384..139efd33bc6f 100644
--- a/comphelper/inc/comphelper/legacysingletonfactory.hxx
+++ b/comphelper/inc/comphelper/legacysingletonfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/listenernotification.hxx b/comphelper/inc/comphelper/listenernotification.hxx
index 98143f1d3242..022480def234 100644
--- a/comphelper/inc/comphelper/listenernotification.hxx
+++ b/comphelper/inc/comphelper/listenernotification.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/locale.hxx b/comphelper/inc/comphelper/locale.hxx
index 317d74ae740f..5b991271a978 100644
--- a/comphelper/inc/comphelper/locale.hxx
+++ b/comphelper/inc/comphelper/locale.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,17 +57,17 @@ class COMPHELPER_DLLPUBLIC Locale
// const
public:
-
+
/** @short seperates LANGUAGE and COUNTRY part of an ISO formated Locale. */
static const sal_Unicode SEPERATOR_LC;
-
+
/** @short seperates COUNTRY and VARIANT part of an ISO formated Locale. */
static const sal_Unicode SEPERATOR_CV;
-
+
/** @short seperates COUNTRY and VARIANT part of an ISO formated Locale.
@descr Its true for some linux derivates only :-( */
static const sal_Unicode SEPERATOR_CV_LINUX;
-
+
/** @short some predefined Locale objects. */
static const Locale EN_US();
static const Locale EN();
@@ -104,50 +104,50 @@ class COMPHELPER_DLLPUBLIC Locale
static const Locale X_NOTRANSLATE();
static const Locale ZH_CN();
static const Locale ZH_TW();
-
+
//-------------------------------------------
// types
-
+
public:
-
+
/** @short will be throw during convertion, if a Locale cant be interpreted. */
struct MalFormedLocaleException
{
public:
::rtl::OUString Message;
-
+
MalFormedLocaleException()
{}
-
+
MalFormedLocaleException(const ::rtl::OUString& sMessage)
: Message(sMessage)
{}
};
-
+
//-------------------------------------------
// member
private :
//---------------------------------------
- /** @short must be a valid ISO Language Code.
-
+ /** @short must be a valid ISO Language Code.
+
@descr These codes are the lower-case two-letter codes as defined by ISO-639.
You can find a full list of these codes at a number of sites, such as:
<BR><a href ="http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt">
http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt</a>
*/
::rtl::OUString m_sLanguage;
-
+
//---------------------------------------
- /** @short must be a valid ISO Country Code.
- @descr These codes are the upper-case two-letter codes as defined by ISO-3166.
+ /** @short must be a valid ISO Country Code.
+ @descr These codes are the upper-case two-letter codes as defined by ISO-3166.
You can find a full list of these codes at a number of sites, such as:
<BR><a href="http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html">
http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html</a>
*/
::rtl::OUString m_sCountry;
-
+
//---------------------------------------
/** @short Variant codes are vendor and browser-specific.
@descr For example, use WIN for Windows, MAC for Macintosh, and POSIX for POSIX.
@@ -164,40 +164,40 @@ class COMPHELPER_DLLPUBLIC Locale
//---------------------------------------
/** @short needed by outside users!
-
+
@descr Otherwise it wouldnt be possible to use
any instance of such Locale static ...
*/
Locale();
-
+
//---------------------------------------
/** @short construct a Locale from an ISO formated string value.
-
+
@seealso fromISO()
-
+
@param sISO
an ISO formated string value, which can be parsed and
tokenized into a Lamnguage, Country and Variant part.
-
+
@throw MalFormedLocaleException
if conversion failed.
*/
Locale(const ::rtl::OUString& sISO)
throw(MalFormedLocaleException);
-
+
//---------------------------------------
/** @short construct a Locale from language, country and variant.
-
+
@seealso setLanguage()
@seealso setCountry()
@seealso setVariant()
-
+
@param sLanguage
lowercase two-letter ISO-639 code.
-
+
@param sCountry
uppercase two-letter ISO-3166 code.
-
+
@param sVariant
vendor and browser specific code.
*/
@@ -207,18 +207,18 @@ class COMPHELPER_DLLPUBLIC Locale
//---------------------------------------
/** @short copy constructor.
-
+
@param aCopy
the copy object.
*/
Locale(const Locale& aCopy);
-
+
//---------------------------------------
/** @short returns the language code for this locale.
-
+
@descr That will either be the empty string or
a lowercase ISO 639 code.
-
+
@return [string]
the language code.
*/
@@ -226,18 +226,18 @@ class COMPHELPER_DLLPUBLIC Locale
//---------------------------------------
/** @short returns the country/region code for this locale.
-
+
@descr That will either be the empty string or an
upercase ISO 3166 2-letter code.
-
+
@return [string]
the country code.
*/
::rtl::OUString getCountry() const;
-
+
//---------------------------------------
/** @short returns the variant code for this locale.
-
+
@return [string]
the variant code.
*/
@@ -245,10 +245,10 @@ class COMPHELPER_DLLPUBLIC Locale
//---------------------------------------
/** @short set the new language code for this locale.
-
+
@descr That will either be the empty string or
a lowercase ISO 639 code.
-
+
@param sLanguage
the language code.
*/
@@ -256,45 +256,45 @@ class COMPHELPER_DLLPUBLIC Locale
//---------------------------------------
/** @short set the new country/region code for this locale.
-
+
@descr That will either be the empty string or an
upercase ISO 3166 2-letter code.
-
+
@param sCountry
the country code.
*/
void setCountry(const ::rtl::OUString& sCountry);
-
+
//---------------------------------------
/** @short set the new variant code for this locale.
-
+
@param sVariant
the variant code.
*/
void setVariant(const ::rtl::OUString& sVariant);
-
+
//---------------------------------------
/** @short take over new Locale informations.
-
+
@seealso Locale(const ::rtl::OUString& sISO)
-
+
@param sISO
an ISO formated string value, which can be parsed and
tokenized into a Lamnguage, Country and Variant part.
e.g. "en-US" or "en-US_WIN"
-
+
@throw MalFormedLocaleException
if conversion failed.
*/
void fromISO(const ::rtl::OUString& sISO)
throw(MalFormedLocaleException);
-
+
//---------------------------------------
/** @short converts this Locale to an ISO formated string value.
-
+
@descr The different parts of this Locale will be assempled
e.g. to "en-US" or "en-US_WIN"
-
+
@return [string]
the ISO formated string.
*/
@@ -302,13 +302,13 @@ class COMPHELPER_DLLPUBLIC Locale
//---------------------------------------
/** @short check, if two Locale objects are equals.
-
+
@descr All parts of a Locale (means Language, Country and Variant)
will be checked.
-
+
@param aComparable
the Locale object for compare.
-
+
@return [boolean]
TRUE if both objects uses the same values for
Language, Country and Variant.
@@ -318,10 +318,10 @@ class COMPHELPER_DLLPUBLIC Locale
//---------------------------------------
/** @short check, if two Locale objects
uses the same language.
-
+
@descr The Country and Variant parts of a Locale
wont be checked here.
-
+
@return [boolean]
TRUE if both objects uses the same
Language value.
@@ -331,47 +331,47 @@ class COMPHELPER_DLLPUBLIC Locale
//---------------------------------------
/** @short search for an equal or at least for a similar
Locale in a list of possible ones.
-
+
@descr First it searches for a Locale, which is equals
to the reference Locale.
(means: same Language, Country, Variant)
-
+
If the reference Locale couldnt be located, it will
tried again - but we are checking for "similar" Locales then.
(means: same Language)
-
+
If no similar Locale could be located, we search
for a Locale "en-US" inside the given Locale list.
-
+
If "en-US" could not be located, we search for
a Locale "en" inside the given list.
-
+
If no "same" nor any "similar" locale could be found,
we try "x-default" and "x-notranslate" explicitly.
Sometimes localized variables are optimized and doesnt use
localzation realy. E.g. in case the localized value is a fix
product name.
-
+
If no locale match till now, we use any other existing
locale, which exists inside the set of given ones!
-
- @seealso equals()
+
+ @seealso equals()
@seealso similar()
-
+
@param lISOList
the list of possible Locales
(as formated ISO strings).
-
+
@param sReferenceISO
the reference Locale, which should be searched
if its equals or similar to any Locale inside
the provided Locale list.
-
+
@return An iterator, which points to the found element
inside the given Locale list.
If no matching Locale could be found, it points
- to the end of the list.
-
+ to the end of the list.
+
@throw [MalFormedLocaleException]
if at least one ISO formated string couldnt
be converted to a valid Locale Object.
@@ -379,19 +379,19 @@ class COMPHELPER_DLLPUBLIC Locale
static ::std::vector< ::rtl::OUString >::const_iterator getFallback(const ::std::vector< ::rtl::OUString >& lISOList ,
const ::rtl::OUString& sReferenceISO)
throw(MalFormedLocaleException);
-
+
//---------------------------------------
/** @short search for the next possible fallback locale.
-
+
@descr Instead of getFallback(vector<>, string) this method
uses the given locale and decide by using an algorithm
which locale can be the next possible one.
-
+
Algorithm:
- if locale has country return language only
- if locale different "en-US" return "en-US"
- if locale "en-US" return "en"
-
+
@param aLocale [in/out]!
the incoming value will be used to start
search for a possible fallback ...
@@ -399,39 +399,39 @@ class COMPHELPER_DLLPUBLIC Locale
will be used for return too.
@return TRUE if the parameter aLocale contains a new fallback value;
- FALSE otherwise.
+ FALSE otherwise.
*/
- static sal_Bool getFallback(Locale& aLocale);
+ static sal_Bool getFallback(Locale& aLocale);
//---------------------------------------
/** @short assign elements of another locale
to this instance.
-
+
@param rCopy
another locale object.
*/
void operator=(const Locale& rCopy);
-
+
//---------------------------------------
/** @short check if two Locale objects are equals.
-
+
@seealso equals()
-
+
@param aComparable
the Locale object for compare.
-
+
@return [boolean]
TRUE if both objects uses the same values for
Language, Country and Variant.
*/
sal_Bool operator==(const Locale& aComparable) const;
-
+
//---------------------------------------
/** @short check if two Locale objects are different.
-
+
@param aComparable
the Locale object for compare.
-
+
@return [boolean]
TRUE if at least one part of such Locale
isnt the same.
diff --git a/comphelper/inc/comphelper/logging.hxx b/comphelper/inc/comphelper/logging.hxx
index e332f0541594..0afdbb4b19f4 100644
--- a/comphelper/inc/comphelper/logging.hxx
+++ b/comphelper/inc/comphelper/logging.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -578,7 +578,7 @@ namespace comphelper
@param _rLoggerName
the name of the logger to work with. If empty, the office-wide
default logger will be used.
-
+
*/
ResourceBasedEventLogger(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
@@ -595,7 +595,7 @@ namespace comphelper
@param _pAsciiLoggerName
the ASCII name of the logger to work with. If NULL, the office-wide
default logger will be used.
-
+
*/
ResourceBasedEventLogger(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
diff --git a/comphelper/inc/comphelper/make_shared_from_uno.hxx b/comphelper/inc/comphelper/make_shared_from_uno.hxx
index 4cbb3a17c362..9f01bb34c701 100644
--- a/comphelper/inc/comphelper/make_shared_from_uno.hxx
+++ b/comphelper/inc/comphelper/make_shared_from_uno.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ template <typename T> struct ReleaseFunc : ::std::unary_function<T *, void> {
/** Makes a boost::shared_ptr from a ref-counted UNO object pointer.
This makes sense if the object is used via UNO (implementing some X
interface) and also internally using its implementation class, e.g.
-
+
<pre>
boost::shared_ptr<MyUnoImpl> const ptr(
comphelper::make_shared_from_UNO( new MyUnoImpl ) );
@@ -54,12 +54,12 @@ template <typename T> struct ReleaseFunc : ::std::unary_function<T *, void> {
takeSharedPtr( ptr );
...
</pre>
-
+
@attention The shared_ptr operates on a separate reference counter, so
weak pointers (boost::weak_ptr) are invalidated when the last
shared_ptr is destroyed, although the UNO object may still be
alive.
-
+
@param p object pointer
@return shared_ptr to object
*/
diff --git a/comphelper/inc/comphelper/makesequence.hxx b/comphelper/inc/comphelper/makesequence.hxx
index d4e724309e94..ab663fb82bfa 100644
--- a/comphelper/inc/comphelper/makesequence.hxx
+++ b/comphelper/inc/comphelper/makesequence.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,15 +48,15 @@ inline ::com::sun::star::uno::Sequence<T> makeSequence( T const& element )
p[n_] = BOOST_PP_CAT(element, n_);
/** The following preprocessor repetitions generate functions like
-
+
<pre>
template <typename T>
inline ::com::sun::star::uno::Sequence<T> makeSequence(
T const& element0, T const& element1, ... );
</pre>
-
+
which make a sequence out of the passed elements.
-
+
The maximum number of elements can be set by defining
COMPHELPER_MAKESEQUENCE_MAX_ARGS; its default is 12.
*/
diff --git a/comphelper/inc/comphelper/mediadescriptor.hxx b/comphelper/inc/comphelper/mediadescriptor.hxx
index 729850f82a10..50e20f7890a0 100644
--- a/comphelper/inc/comphelper/mediadescriptor.hxx
+++ b/comphelper/inc/comphelper/mediadescriptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -218,22 +218,22 @@ class COMPHELPER_DLLPUBLIC MediaDescriptor : public SequenceAsHashMap
//---------------------------------------
/** Inserts a value into the sequence contained in the property
'ComponentData' of the media descriptor.
-
+
@descr The property 'ComponentData' should be empty or should
contain a value of type ComponentDataSequence (see above). The
passed value will be inserted into the sequence, or, if already
existing, will be overwritten.
-
+
@param rName The name of the value to be inserted into the
sequence of the 'ComponentData' property.
-
+
@param rValue The value to be inserted into the sequence of the
'ComponentData' property.
*/
void setComponentDataEntry(
const ::rtl::OUString& rName,
const ::com::sun::star::uno::Any& rValue );
-
+
//---------------------------------------
/** Removes a value from the sequence contained in the property
'ComponentData' of the media descriptor.
diff --git a/comphelper/inc/comphelper/mimeconfighelper.hxx b/comphelper/inc/comphelper/mimeconfighelper.hxx
index 613d3b591783..f62dbfb8df36 100644
--- a/comphelper/inc/comphelper/mimeconfighelper.hxx
+++ b/comphelper/inc/comphelper/mimeconfighelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ class COMPHELPER_DLLPUBLIC MimeConfigurationHelper
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xObjectConfig;
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xVerbsConfig;
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > m_xMediaTypeConfig;
-
+
public:
MimeConfigurationHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory );
@@ -65,7 +65,7 @@ public:
GetConfigurationByPath( const ::rtl::OUString& aPath );
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > GetObjConfiguration();
-
+
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > GetVerbsConfiguration();
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess > GetMediaTypeConfiguration();
@@ -113,7 +113,7 @@ public:
::rtl::OUString UpdateMediaDescriptorWithFilterName(
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObject );
- sal_Bool AddFilterNameCheckOwnFile(
+ sal_Bool AddFilterNameCheckOwnFile(
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr );
::rtl::OUString GetDefaultFilterFromServiceName( const ::rtl::OUString& aServName, sal_Int32 nVersion );
diff --git a/comphelper/inc/comphelper/namecontainer.hxx b/comphelper/inc/comphelper/namecontainer.hxx
index b251c553efd2..655fcd88f332 100644
--- a/comphelper/inc/comphelper/namecontainer.hxx
+++ b/comphelper/inc/comphelper/namecontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/namedvaluecollection.hxx b/comphelper/inc/comphelper/namedvaluecollection.hxx
index 04f68bc102d2..b5c321ab092c 100644
--- a/comphelper/inc/comphelper/namedvaluecollection.hxx
+++ b/comphelper/inc/comphelper/namedvaluecollection.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/numberedcollection.hxx b/comphelper/inc/comphelper/numberedcollection.hxx
index a955c9624518..aa0cb6f1b0bc 100644
--- a/comphelper/inc/comphelper/numberedcollection.hxx
+++ b/comphelper/inc/comphelper/numberedcollection.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,12 +60,12 @@ namespace comphelper{
//_______________________________________________
// definitions
-/** @short defines a collection of UNO components, where every component will get it's own unique number.
+/** @short defines a collection of UNO components, where every component will get it's own unique number.
@descr Such number will be unique at runtime only ... but it supports fragmentation.
Note: This collection uses weak refrences only to know her components.
So lifetime of thise components must be controlled outside.
-
+
@threadsafe
*/
class COMPHELPER_DLLPUBLIC NumberedCollection : private ::cppu::BaseMutex
@@ -74,120 +74,120 @@ class COMPHELPER_DLLPUBLIC NumberedCollection : private ::cppu::BaseMutex
//-------------------------------------------
// types, const
private:
-
+
struct TNumberedItem
{
css::uno::WeakReference< css::uno::XInterface > xItem;
::sal_Int32 nNumber;
};
-
- typedef ::std::hash_map<
+
+ typedef ::std::hash_map<
long ,
TNumberedItem ,
::std::hash< long > ,
::std::equal_to< long > > TNumberedItemHash;
-
+
typedef ::std::vector< long > TDeadItemList;
-
+
//-------------------------------------------
// interface
public:
//---------------------------------------
/** @short lightweight constructor.
- */
+ */
NumberedCollection();
-
+
//---------------------------------------
/** @short free all internaly used resources.
- */
+ */
virtual ~NumberedCollection();
-
+
//---------------------------------------
/** set an outside component which uses this container and must be set
as source of all broadcasted messages, exceptions.
-
+
It's holded weak only so we do not need any complex dispose sessions.
-
+
Note: Passing NULL as parameter will be allowed. It will reset the internal
member reference only.
-
+
@param xOwner
the new owner of this collection.
*/
void setOwner (const css::uno::Reference< css::uno::XInterface >& xOwner);
-
+
//---------------------------------------
/** set the localized prefix to be used for untitled components.
-
+
Localization has to be done outside. This container will return
those value then. There are no further checks. Its up to you to define
a suitable string here :-)
-
+
@param sPrefix
the new prefix for untitled components.
*/
void setUntitledPrefix(const ::rtl::OUString& sPrefix);
-
+
//---------------------------------------
/** @see css.frame.XUntitledNumbers */
virtual ::sal_Int32 SAL_CALL leaseNumber(const css::uno::Reference< css::uno::XInterface >& xComponent)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException );
-
+
//---------------------------------------
/** @see css.frame.XUntitledNumbers */
virtual void SAL_CALL releaseNumber(::sal_Int32 nNumber)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException );
-
+
//---------------------------------------
/** @see css.frame.XUntitledNumbers */
virtual void SAL_CALL releaseNumberForComponent(const css::uno::Reference< css::uno::XInterface >& xComponent)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException );
-
+
//---------------------------------------
/** @see css.frame.XUntitledNumbers */
virtual ::rtl::OUString SAL_CALL getUntitledPrefix()
throw (css::uno::RuntimeException);
-
+
//-------------------------------------------
// internal
private:
//---------------------------------------
/** @short trys to find an unique number not already used within this collection.
-
+
@descr It reuses the smalles number which isnt used by any component
of this collection. (fragmentation!) If collection is full (means there
is no free number) the special value INVALID_NUMBER will be returned.
-
+
@note Those method cant be called within a multithreaded environment ..
Because such number wont be "reserved" for the calli of these method
it can happen that two calls returns the same number (reasoned by the fact that first calli
doesnt used the returned number already.
-
+
So the outside code has to make sure that retrieving and using of those number
will be an atomic operation.
-
+
@return an unique number or special value INVALID_NUMBER if collection is full.
- */
+ */
::sal_Int32 impl_searchFreeNumber ();
-
+
void impl_cleanUpDeadItems ( TNumberedItemHash& lItems ,
const TDeadItemList& lDeadItems);
-
+
//-------------------------------------------
// member
private:
-
+
/// localized string to be used for untitled components
::rtl::OUString m_sUntitledPrefix;
-
+
/// cache of all "leased numbers" and its bound components
TNumberedItemHash m_lComponents;
-
+
/// used as source of broadcasted messages or exceptions (can be null !)
css::uno::WeakReference< css::uno::XInterface > m_xOwner;
};
diff --git a/comphelper/inc/comphelper/numbers.hxx b/comphelper/inc/comphelper/numbers.hxx
index 179889c7b720..64f7826fc47b 100644
--- a/comphelper/inc/comphelper/numbers.hxx
+++ b/comphelper/inc/comphelper/numbers.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,9 +39,9 @@ namespace comphelper
{
//.........................................................................
- namespace staruno = ::com::sun::star::uno;
- namespace starlang = ::com::sun::star::lang;
- namespace starutil = ::com::sun::star::util;
+ namespace staruno = ::com::sun::star::uno;
+ namespace starlang = ::com::sun::star::lang;
+ namespace starutil = ::com::sun::star::util;
/// returns the ::com::sun::star::util::NumberFormat of the given key under the given formats
COMPHELPER_DLLPUBLIC sal_Int16 getNumberFormatType(const staruno::Reference<starutil::XNumberFormats>& xFormats, sal_Int32 nKey);
@@ -68,7 +68,7 @@ namespace comphelper
);
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_NUMBERS_HXX_
diff --git a/comphelper/inc/comphelper/officeresourcebundle.hxx b/comphelper/inc/comphelper/officeresourcebundle.hxx
index 345790e733f2..b384c4167ddc 100644
--- a/comphelper/inc/comphelper/officeresourcebundle.hxx
+++ b/comphelper/inc/comphelper/officeresourcebundle.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/ofopxmlhelper.hxx b/comphelper/inc/comphelper/ofopxmlhelper.hxx
index 8043ea818afd..84d5dc73febc 100644
--- a/comphelper/inc/comphelper/ofopxmlhelper.hxx
+++ b/comphelper/inc/comphelper/ofopxmlhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/optional.hxx b/comphelper/inc/comphelper/optional.hxx
index 2ffec9b55b02..df92b9c275c5 100644
--- a/comphelper/inc/comphelper/optional.hxx
+++ b/comphelper/inc/comphelper/optional.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/optionalvalue.hxx b/comphelper/inc/comphelper/optionalvalue.hxx
index 3bc5cdc7a19c..4cc4f293f603 100644
--- a/comphelper/inc/comphelper/optionalvalue.hxx
+++ b/comphelper/inc/comphelper/optionalvalue.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace comphelper
{
public:
typedef Element ValueType;
-
+
/** Default-construct the value.
A default-constructed value is not valid. You have to
@@ -141,13 +141,13 @@ namespace comphelper
bool exportValue( ::com::sun::star::uno::Any& o_rAny )
{
o_rAny.clear();
-
+
if( isValid() )
{
if( !(o_rAny <<= getValue()) )
return false;
}
-
+
return true;
}
@@ -164,14 +164,14 @@ namespace comphelper
bool importValue( const ::com::sun::star::uno::Any& rAny )
{
clearValue();
-
+
if( rAny.hasValue() )
{
Element tmp;
-
+
if( !(rAny >>= tmp) )
return false;
-
+
setValue( tmp );
}
@@ -179,8 +179,8 @@ namespace comphelper
}
private:
- Element maValue;
- bool mbValid;
+ Element maValue;
+ bool mbValid;
};
}
diff --git a/comphelper/inc/comphelper/oslfile2streamwrap.hxx b/comphelper/inc/comphelper/oslfile2streamwrap.hxx
index e4fad24c0db2..d6366669b470 100644
--- a/comphelper/inc/comphelper/oslfile2streamwrap.hxx
+++ b/comphelper/inc/comphelper/oslfile2streamwrap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,21 +37,21 @@
namespace comphelper
{
- namespace stario = ::com::sun::star::io;
- namespace staruno = ::com::sun::star::uno;
+ namespace stario = ::com::sun::star::io;
+ namespace staruno = ::com::sun::star::uno;
//==================================================================
// FmUnoIOStream,
// stream zum schreiben un lesen von Daten, basieren auf File
//==================================================================
-struct InputStreamWrapper_Base : public ::cppu::WeakImplHelper1<stario::XInputStream>
+struct InputStreamWrapper_Base : public ::cppu::WeakImplHelper1<stario::XInputStream>
{};
class COMPHELPER_DLLPUBLIC OSLInputStreamWrapper : public InputStreamWrapper_Base
{
- ::osl::Mutex m_aMutex;
- ::osl::File* m_pFile;
- sal_Bool m_bFileOwner : 1;
+ ::osl::Mutex m_aMutex;
+ ::osl::File* m_pFile;
+ sal_Bool m_bFileOwner : 1;
public:
OSLInputStreamWrapper(::osl::File& _rStream);
@@ -59,41 +59,41 @@ public:
virtual ~OSLInputStreamWrapper();
// UNO Anbindung
- virtual void SAL_CALL acquire() throw()
+ virtual void SAL_CALL acquire() throw()
{ InputStreamWrapper_Base::acquire(); }
- virtual void SAL_CALL release() throw()
+ virtual void SAL_CALL release() throw()
{ InputStreamWrapper_Base::release(); }
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException)
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException)
{ return InputStreamWrapper_Base::queryInterface(_rType); }
// stario::XInputStream
- virtual sal_Int32 SAL_CALL readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
- virtual sal_Int32 SAL_CALL readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
- virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
- virtual sal_Int32 SAL_CALL available() throw(stario::NotConnectedException, staruno::RuntimeException);
- virtual void SAL_CALL closeInput() throw(stario::NotConnectedException, staruno::RuntimeException);
+ virtual sal_Int32 SAL_CALL readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
+ virtual sal_Int32 SAL_CALL readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
+ virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
+ virtual sal_Int32 SAL_CALL available() throw(stario::NotConnectedException, staruno::RuntimeException);
+ virtual void SAL_CALL closeInput() throw(stario::NotConnectedException, staruno::RuntimeException);
};
//==================================================================
// FmUnoOutStream,
// Datensenke fuer Files
//==================================================================
-struct OutputStreamWrapper_Base : public ::cppu::WeakImplHelper1<stario::XOutputStream>
+struct OutputStreamWrapper_Base : public ::cppu::WeakImplHelper1<stario::XOutputStream>
{};
class COMPHELPER_DLLPUBLIC OSLOutputStreamWrapper : public OutputStreamWrapper_Base
{
- ::osl::File& rFile;
+ ::osl::File& rFile;
public:
OSLOutputStreamWrapper(::osl::File& _rFile) :rFile(_rFile) { }
// UNO Anbindung
- virtual void SAL_CALL acquire() throw()
+ virtual void SAL_CALL acquire() throw()
{ OutputStreamWrapper_Base::acquire(); }
- virtual void SAL_CALL release() throw()
+ virtual void SAL_CALL release() throw()
{ OutputStreamWrapper_Base::release(); }
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException)
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException)
{ return OutputStreamWrapper_Base::queryInterface(_rType); }
// stario::XOutputStream
@@ -102,7 +102,7 @@ public:
virtual void SAL_CALL closeOutput() throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
};
-} // namespace comphelper
+} // namespace comphelper
#endif // _COMPHELPER_STREAM_OSLFILEWRAPPER_HXX_
diff --git a/comphelper/inc/comphelper/otransactedfilestream.hxx b/comphelper/inc/comphelper/otransactedfilestream.hxx
index 248aa22f02eb..b0c6cdebfa24 100644
--- a/comphelper/inc/comphelper/otransactedfilestream.hxx
+++ b/comphelper/inc/comphelper/otransactedfilestream.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ class COMPHELPER_DLLPUBLIC OTruncatedTransactedFileStream
::com::sun::star::beans::XPropertySetInfo,
::com::sun::star::beans::XPropertySet >
{
- ::osl::Mutex m_aMutex;
+ ::osl::Mutex m_aMutex;
TTFileStreamData_Impl* m_pStreamData;
void CommonInit_Impl(
diff --git a/comphelper/inc/comphelper/processfactory.hxx b/comphelper/inc/comphelper/processfactory.hxx
index b20d7302241d..e06776e46a6e 100644
--- a/comphelper/inc/comphelper/processfactory.hxx
+++ b/comphelper/inc/comphelper/processfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/propagg.hxx b/comphelper/inc/comphelper/propagg.hxx
index 6286e9d79088..2a045ff0c96e 100644
--- a/comphelper/inc/comphelper/propagg.hxx
+++ b/comphelper/inc/comphelper/propagg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,9 +65,9 @@ namespace internal
sal_Bool operator <(const OPropertyAccessor& rOb) const { return nPos < rOb.nPos; }
};
- typedef std::map< sal_Int32, OPropertyAccessor, ::std::less< sal_Int32 > > PropertyAccessorMap;
- typedef PropertyAccessorMap::iterator PropertyAccessorMapIterator;
- typedef PropertyAccessorMap::const_iterator ConstPropertyAccessorMapIterator;
+ typedef std::map< sal_Int32, OPropertyAccessor, ::std::less< sal_Int32 > > PropertyAccessorMap;
+ typedef PropertyAccessorMap::iterator PropertyAccessorMapIterator;
+ typedef PropertyAccessorMap::const_iterator ConstPropertyAccessorMapIterator;
}
//==================================================================
@@ -77,12 +77,12 @@ namespace internal
class IPropertyInfoService
{
public:
- /** get the prefered handle for the given property
- @param _rName the property name
- @return the handle the property should be refered by, or -1 if there are no
+ /** get the prefered handle for the given property
+ @param _rName the property name
+ @return the handle the property should be refered by, or -1 if there are no
preferences for the given property
*/
- virtual sal_Int32 getPreferedPropertyId(const ::rtl::OUString& _rName) = 0;
+ virtual sal_Int32 getPreferedPropertyId(const ::rtl::OUString& _rName) = 0;
};
/**
@@ -90,35 +90,35 @@ public:
* aggregating property sets
*/
-#define DEFAULT_AGGREGATE_PROPERTY_ID 10000
+#define DEFAULT_AGGREGATE_PROPERTY_ID 10000
//------------------------------------------------------------------
class COMPHELPER_DLLPUBLIC OPropertyArrayAggregationHelper: public ::cppu::IPropertyArrayHelper
{
friend class OPropertySetAggregationHelper;
protected:
- ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property> m_aProperties;
- internal::PropertyAccessorMap m_aPropertyAccessors;
+ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property> m_aProperties;
+ internal::PropertyAccessorMap m_aPropertyAccessors;
public:
/** construct the object.
- @param _rProperties the properties of the object doing the aggregation. These properties
+ @param _rProperties the properties of the object doing the aggregation. These properties
are used without any checks, so the caller has to ensure that the names and
handles are valid.
- @param _rAggProperties the properties of the aggregate, usually got via an call to getProperties on the
+ @param _rAggProperties the properties of the aggregate, usually got via an call to getProperties on the
XPropertySetInfo of the aggregate.
The names of the properties are used without any checks, so the caller has to ensure
that there are no doubles.
The handles are stored for later quick access, but the outside-handles the
aggregate properties get depend from the following two parameters.
- @param _pInfoService
+ @param _pInfoService
If not NULL, the object pointed to is used to calc handles which should be used
for refering the aggregate's properties from outside.
If one of the properties returned from the info service conflict with other handles
alread present (e.g. through _rProperties), the property is handled as if -1 was returned.
If NULL (or, for a special property, a call to getPreferedPropertyId returns -1),
the aggregate property(ies) get a new handle which they can be refered by from outside.
- @param _nFirstAggregateId
+ @param _nFirstAggregateId
if the object is about to create new handles for the aggregate properties, it uses
id's ascending from this given id.
No checks are made if the handle range determined by _nFirstAggregateId conflicts with other
@@ -148,12 +148,12 @@ public:
virtual sal_Int32 SAL_CALL fillHandles( /*out*/sal_Int32* _pHandles, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rPropNames );
/** returns information about a property of the aggregate.
- @param _pPropName points to a string to recieve the property name. No name is returned if this is NULL.
- @param _pOriginalHandle points to a sal_Int32 to recieve the original property hande. No original handle is returned
+ @param _pPropName points to a string to recieve the property name. No name is returned if this is NULL.
+ @param _pOriginalHandle points to a sal_Int32 to recieve the original property hande. No original handle is returned
if this is NULL.
- @param _nHandle the handle of the property as got by, for instance, fillHandles
+ @param _nHandle the handle of the property as got by, for instance, fillHandles
- @return sal_True, if _nHandle marks an aggregate property, otherwise sal_False
+ @return sal_True, if _nHandle marks an aggregate property, otherwise sal_False
*/
virtual sal_Bool SAL_CALL fillAggregatePropertyInfoByHandle(::rtl::OUString* _pPropName, sal_Int32* _pOriginalHandle,
sal_Int32 _nHandle) const;
@@ -181,7 +181,7 @@ public:
When using the XPropertySetInfo of the aggregate set to determine the existence of a property, then this
would return false positives.</p>
*/
- PropertyOrigin classifyProperty( const ::rtl::OUString& _rName );
+ PropertyOrigin classifyProperty( const ::rtl::OUString& _rName );
protected:
const ::com::sun::star::beans::Property* findPropertyByName(const ::rtl::OUString& _rName) const;
@@ -199,7 +199,7 @@ namespace internal
* supports at least XPropertySet and XMultiPropertySet
*
*/
-class COMPHELPER_DLLPUBLIC OPropertySetAggregationHelper :public OPropertyStateHelper
+class COMPHELPER_DLLPUBLIC OPropertySetAggregationHelper :public OPropertyStateHelper
,public ::com::sun::star::beans::XPropertiesChangeListener
,public ::com::sun::star::beans::XVetoableChangeListener
{
@@ -227,8 +227,8 @@ public:
virtual ::com::sun::star::uno::Any SAL_CALL getFastPropertyValue(sal_Int32 nHandle) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
// XPropertySet
- virtual void SAL_CALL addPropertyChangeListener(const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addVetoableChangeListener(const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL addPropertyChangeListener(const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL addVetoableChangeListener(const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
// XPropertiesChangeListener
virtual void SAL_CALL propertiesChange(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent >& evt) throw(::com::sun::star::uno::RuntimeException);
@@ -237,13 +237,13 @@ public:
virtual void SAL_CALL vetoableChange(const ::com::sun::star::beans::PropertyChangeEvent& aEvent) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::uno::RuntimeException);
// XMultiPropertySet
- virtual void SAL_CALL setPropertyValues(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertiesChangeListener(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setPropertyValues(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& PropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL addPropertiesChangeListener(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertiesChangeListener >& xListener) throw(::com::sun::star::uno::RuntimeException);
// XPropertyState
- virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState(const ::rtl::OUString& PropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::beans::PropertyState SAL_CALL getPropertyState(const ::rtl::OUString& PropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setPropertyToDefault(const ::rtl::OUString& PropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault(const ::rtl::OUString& aPropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault(const ::rtl::OUString& aPropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
// OPropertySetHelper
/** still waiting to be overwritten ...
@@ -267,7 +267,7 @@ protected:
virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle) const;
virtual void SAL_CALL disposing();
- sal_Int32 getOriginalHandle( sal_Int32 _nHandle ) const;
+ sal_Int32 getOriginalHandle( sal_Int32 _nHandle ) const;
::rtl::OUString getPropertyName( sal_Int32 _nHandle ) const;
/** declares the property with the given (public) handle as one to be forwarded to the aggregate
@@ -323,7 +323,7 @@ protected:
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_PROPERTY_AGGREGATION_HXX_
diff --git a/comphelper/inc/comphelper/proparrhlp.hxx b/comphelper/inc/comphelper/proparrhlp.hxx
index 6af317420327..d9fd6b7cdcca 100644
--- a/comphelper/inc/comphelper/proparrhlp.hxx
+++ b/comphelper/inc/comphelper/proparrhlp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,13 +45,13 @@ namespace comphelper
{
//.........................................................................
- namespace staruno = ::com::sun::star::uno;
- namespace starbeans = ::com::sun::star::beans;
+ namespace staruno = ::com::sun::star::uno;
+ namespace starbeans = ::com::sun::star::beans;
//==================================================================
-template <typename TYPE> struct OPropertyArrayUsageHelperMutex
+template <typename TYPE> struct OPropertyArrayUsageHelperMutex
: public rtl::Static< ::osl::Mutex, OPropertyArrayUsageHelperMutex<TYPE> > {};
@@ -59,13 +59,13 @@ template <class TYPE>
class OPropertyArrayUsageHelper
{
protected:
- static sal_Int32 s_nRefCount;
- static ::cppu::IPropertyArrayHelper* s_pProps;
+ static sal_Int32 s_nRefCount;
+ static ::cppu::IPropertyArrayHelper* s_pProps;
public:
OPropertyArrayUsageHelper();
virtual ~OPropertyArrayUsageHelper()
- { // ARGHHHHHHH ..... would like to implement this after the class
+ { // ARGHHHHHHH ..... would like to implement this after the class
// definition (as we do with all other methods) but SUNPRO 5 compiler
// (linker) doesn't like this
::osl::MutexGuard aGuard(OPropertyArrayUsageHelperMutex<TYPE>::get());
@@ -80,7 +80,7 @@ public:
/** call this in the getInfoHelper method of your derived class. The method returns the array helper of the
class, which is created if neccessary.
*/
- ::cppu::IPropertyArrayHelper* getArrayHelper();
+ ::cppu::IPropertyArrayHelper* getArrayHelper();
protected:
/** used to implement the creation of the array helper which is shared amongst all instances of the class.
@@ -90,7 +90,7 @@ protected:
<BR>
as long as IPropertyArrayHelper has no virtual destructor, the implementation of ~OPropertyArrayUsageHelper
assumes that you created an ::cppu::OPropertyArrayHelper when deleting s_pProps.
- @return an pointer to the newly created array helper. Must not be NULL.
+ @return an pointer to the newly created array helper. Must not be NULL.
*/
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const = 0;
};
@@ -106,8 +106,8 @@ protected:
properties.
<BR>
The method gets called with Mutex acquired.
- @param _rProps out parameter to be filled with the property descriptions of your own class
- @param _rAggregateProps out parameter to be filled with the properties of your aggregate.
+ @param _rProps out parameter to be filled with the property descriptions of your own class
+ @param _rAggregateProps out parameter to be filled with the properties of your aggregate.
*/
virtual void fillProperties(
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps,
@@ -132,11 +132,11 @@ protected:
};
//------------------------------------------------------------------
-template<class TYPE>
-sal_Int32 OPropertyArrayUsageHelper< TYPE >::s_nRefCount = 0;
+template<class TYPE>
+sal_Int32 OPropertyArrayUsageHelper< TYPE >::s_nRefCount = 0;
-template<class TYPE>
-::cppu::IPropertyArrayHelper* OPropertyArrayUsageHelper< TYPE >::s_pProps = NULL;
+template<class TYPE>
+::cppu::IPropertyArrayHelper* OPropertyArrayUsageHelper< TYPE >::s_pProps = NULL;
//------------------------------------------------------------------
template <class TYPE>
diff --git a/comphelper/inc/comphelper/property.hxx b/comphelper/inc/comphelper/property.hxx
index 2cb9c662ee80..5bd04b6756f9 100644
--- a/comphelper/inc/comphelper/property.hxx
+++ b/comphelper/inc/comphelper/property.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,12 +46,12 @@ namespace comphelper
{
//.........................................................................
- namespace starbeans = ::com::sun::star::beans;
- namespace staruno = ::com::sun::star::uno;
+ namespace starbeans = ::com::sun::star::beans;
+ namespace staruno = ::com::sun::star::uno;
/** compare two properties by name
*/
- struct PropertyStringLessFunctor : ::std::binary_function< ::com::sun::star::beans::Property, ::rtl::OUString, bool >
+ struct PropertyStringLessFunctor : ::std::binary_function< ::com::sun::star::beans::Property, ::rtl::OUString, bool >
{
// ................................................................
inline bool operator()( const ::com::sun::star::beans::Property& lhs, const ::rtl::OUString& rhs ) const
@@ -77,7 +77,7 @@ namespace comphelper
//--------------------------------------------------------------------------
/** compare two properties by name
*/
- struct PropertyStringEqualFunctor : ::std::binary_function< ::com::sun::star::beans::Property, ::rtl::OUString, bool >
+ struct PropertyStringEqualFunctor : ::std::binary_function< ::com::sun::star::beans::Property, ::rtl::OUString, bool >
{
// ................................................................
inline bool operator()( const ::com::sun::star::beans::Property& lhs, const ::rtl::OUString& rhs ) const
@@ -119,20 +119,20 @@ COMPHELPER_DLLPUBLIC void RemoveProperty(staruno::Sequence<starbeans::Property>&
//------------------------------------------------------------------
/** within the given property sequence, modify attributes of a special property
- @param _rProps the sequence of properties to search in
- @param _sPropName the name of the property which's attributes should be modified
- @param _nAddAttrib the attributes which should be added
- @param _nRemoveAttrib the attributes which should be removed
+ @param _rProps the sequence of properties to search in
+ @param _sPropName the name of the property which's attributes should be modified
+ @param _nAddAttrib the attributes which should be added
+ @param _nRemoveAttrib the attributes which should be removed
*/
COMPHELPER_DLLPUBLIC void ModifyPropertyAttributes(staruno::Sequence<starbeans::Property>& _rProps, const ::rtl::OUString& _sPropName, sal_Int16 _nAddAttrib, sal_Int16 _nRemoveAttrib);
//------------------------------------------------------------------
-/** check if the given set has the given property.
+/** check if the given set has the given property.
*/
COMPHELPER_DLLPUBLIC sal_Bool hasProperty(const rtl::OUString& _rName, const staruno::Reference<starbeans::XPropertySet>& _rxSet);
//------------------------------------------------------------------
-/** copy properties between property sets, in compliance with the property
+/** copy properties between property sets, in compliance with the property
attributes of the target object
*/
COMPHELPER_DLLPUBLIC void copyProperties(const staruno::Reference<starbeans::XPropertySet>& _rxSource,
@@ -143,13 +143,13 @@ COMPHELPER_DLLPUBLIC void copyProperties(const staruno::Reference<starbeans::XPr
//==================================================================
/** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue
- @param _rConvertedValue the conversion result (if successfull)
- @param _rOldValue the old value of the property, calculated from _rCurrentValue
- @param _rValueToSet the new value which is about to be set
- @param _rCurrentValue the current value of the property
- @return sal_True, if the value could be converted and has changed
+ @param _rConvertedValue the conversion result (if successfull)
+ @param _rOldValue the old value of the property, calculated from _rCurrentValue
+ @param _rValueToSet the new value which is about to be set
+ @param _rCurrentValue the current value of the property
+ @return sal_True, if the value could be converted and has changed
sal_False, if the value could be converted and has not changed
- @exception InvalidArgumentException thrown if the value could not be converted to the requested type (which is the template argument)
+ @exception InvalidArgumentException thrown if the value could not be converted to the requested type (which is the template argument)
*/
template <class TYPE>
sal_Bool tryPropertyValue(staruno::Any& /*out*/_rConvertedValue, staruno::Any& /*out*/_rOldValue, const staruno::Any& _rValueToSet, const TYPE& _rCurrentValue)
@@ -167,13 +167,13 @@ sal_Bool tryPropertyValue(staruno::Any& /*out*/_rConvertedValue, staruno::Any& /
}
/** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue for enum values
- @param _rConvertedValue the conversion result (if successfull)
- @param _rOldValue the old value of the property, calculated from _rCurrentValue
- @param _rValueToSet the new value which is about to be set
- @param _rCurrentValue the current value of the property
- @return sal_True, if the value could be converted and has changed
+ @param _rConvertedValue the conversion result (if successfull)
+ @param _rOldValue the old value of the property, calculated from _rCurrentValue
+ @param _rValueToSet the new value which is about to be set
+ @param _rCurrentValue the current value of the property
+ @return sal_True, if the value could be converted and has changed
sal_False, if the value could be converted and has not changed
- @exception InvalidArgumentException thrown if the value could not be converted to the requested type (which is the template argument)
+ @exception InvalidArgumentException thrown if the value could not be converted to the requested type (which is the template argument)
*/
template <class ENUMTYPE>
sal_Bool tryPropertyValueEnum(staruno::Any& /*out*/_rConvertedValue, staruno::Any& /*out*/_rOldValue, const staruno::Any& _rValueToSet, const ENUMTYPE& _rCurrentValue)
@@ -197,13 +197,13 @@ sal_Bool tryPropertyValueEnum(staruno::Any& /*out*/_rConvertedValue, staruno::An
}
/** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue for boolean properties
- @param _rConvertedValue the conversion result (if successfull)
- @param _rOldValue the old value of the property, calculated from _rCurrentValue
- @param _rValueToSet the new value which is about to be set
- @param _rCurrentValue the current value of the property
- @return sal_True, if the value could be converted and has changed
+ @param _rConvertedValue the conversion result (if successfull)
+ @param _rOldValue the old value of the property, calculated from _rCurrentValue
+ @param _rValueToSet the new value which is about to be set
+ @param _rCurrentValue the current value of the property
+ @return sal_True, if the value could be converted and has changed
sal_False, if the value could be converted and has not changed
- @exception InvalidArgumentException thrown if the value could not be converted to a boolean type
+ @exception InvalidArgumentException thrown if the value could not be converted to a boolean type
*/
inline sal_Bool tryPropertyValue(staruno::Any& /*out*/_rConvertedValue, staruno::Any& /*out*/_rOldValue, const staruno::Any& _rValueToSet, sal_Bool _bCurrentValue)
{
@@ -220,14 +220,14 @@ inline sal_Bool tryPropertyValue(staruno::Any& /*out*/_rConvertedValue, staruno:
}
/** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue
- @param _rConvertedValue the conversion result (if successfull)
- @param _rOldValue the old value of the property, calculated from _rCurrentValue
- @param _rValueToSet the new value which is about to be set
- @param _rCurrentValue the current value of the property
- @param _rExpectedType the type which the property should have (if not void)
- @return sal_True, if the value could be converted and has changed
+ @param _rConvertedValue the conversion result (if successfull)
+ @param _rOldValue the old value of the property, calculated from _rCurrentValue
+ @param _rValueToSet the new value which is about to be set
+ @param _rCurrentValue the current value of the property
+ @param _rExpectedType the type which the property should have (if not void)
+ @return sal_True, if the value could be converted and has changed
sal_False, if the value could be converted and has not changed
- @exception InvalidArgumentException thrown if the value could not be converted to the requested type (which is the template argument)
+ @exception InvalidArgumentException thrown if the value could not be converted to the requested type (which is the template argument)
*/
COMPHELPER_DLLPUBLIC sal_Bool tryPropertyValue(staruno::Any& _rConvertedValue, staruno::Any& _rOldValue, const staruno::Any& _rValueToSet, const staruno::Any& _rCurrentValue, const staruno::Type& _rExpectedType);
diff --git a/comphelper/inc/comphelper/propertybag.hxx b/comphelper/inc/comphelper/propertybag.hxx
index 74aa87d71517..8188cca85cca 100644
--- a/comphelper/inc/comphelper/propertybag.hxx
+++ b/comphelper/inc/comphelper/propertybag.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/propertycontainer.hxx b/comphelper/inc/comphelper/propertycontainer.hxx
index 49961e559ea7..0091cd21e3ba 100644
--- a/comphelper/inc/comphelper/propertycontainer.hxx
+++ b/comphelper/inc/comphelper/propertycontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ protected:
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_PROPERTYCONTAINER_HXX_
diff --git a/comphelper/inc/comphelper/propertycontainerhelper.hxx b/comphelper/inc/comphelper/propertycontainerhelper.hxx
index 42bfe1f2de8e..cfb095f016e4 100644
--- a/comphelper/inc/comphelper/propertycontainerhelper.hxx
+++ b/comphelper/inc/comphelper/propertycontainerhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,19 +84,19 @@ struct COMPHELPER_DLLPUBLIC PropertyDescription
*/
class COMPHELPER_DLLPUBLIC OPropertyContainerHelper
{
- typedef ::std::vector< ::com::sun::star::uno::Any > PropertyContainer;
- typedef PropertyContainer::iterator PropertyContainerIterator;
- typedef PropertyContainer::const_iterator ConstPropertyContainerIterator;
- PropertyContainer m_aHoldProperties;
+ typedef ::std::vector< ::com::sun::star::uno::Any > PropertyContainer;
+ typedef PropertyContainer::iterator PropertyContainerIterator;
+ typedef PropertyContainer::const_iterator ConstPropertyContainerIterator;
+ PropertyContainer m_aHoldProperties;
// the properties which are hold by this class' instance, not the derived one's
private:
- typedef ::std::vector< PropertyDescription > Properties;
- typedef Properties::iterator PropertiesIterator;
- typedef Properties::const_iterator ConstPropertiesIterator;
- Properties m_aProperties;
+ typedef ::std::vector< PropertyDescription > Properties;
+ typedef Properties::iterator PropertiesIterator;
+ typedef Properties::const_iterator ConstPropertiesIterator;
+ Properties m_aProperties;
- sal_Bool m_bUnused;
+ sal_Bool m_bUnused;
protected:
OPropertyContainerHelper();
@@ -104,42 +104,42 @@ protected:
/** register a property. The property is represented through a member of the derived class which calls
this methdod.
- @param _rName the name of the property
- @param _nHandle the handle of the property
- @param _nAttributes the attributes of the property
- @param _pPointerToMember the pointer to the member representing the property
+ @param _rName the name of the property
+ @param _nHandle the handle of the property
+ @param _nAttributes the attributes of the property
+ @param _pPointerToMember the pointer to the member representing the property
within the derived class.
- @param _rMemberType the cppu type of the property represented by the object
+ @param _rMemberType the cppu type of the property represented by the object
to which _pPointerToMember points.
*/
- void registerProperty(const ::rtl::OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
+ void registerProperty(const ::rtl::OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
void* _pPointerToMember, const ::com::sun::star::uno::Type& _rMemberType);
/** register a property. The property is represented through a ::com::sun::star::uno::Any member of the
derived class which calls this methdod.
- @param _rName the name of the property
- @param _nHandle the handle of the property
- @param _nAttributes the attributes of the property
- @param _pPointerToMember the pointer to the member representing the property
+ @param _rName the name of the property
+ @param _nHandle the handle of the property
+ @param _nAttributes the attributes of the property
+ @param _pPointerToMember the pointer to the member representing the property
within the derived class, which has to be a ::com::sun::star::uno::Any.
- @param _rExpectedType the expected type of the property. NOT the type of the object to which
+ @param _rExpectedType the expected type of the property. NOT the type of the object to which
_pPointerToMember points (this is always an Any).
*/
- void registerMayBeVoidProperty(const ::rtl::OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
+ void registerMayBeVoidProperty(const ::rtl::OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
::com::sun::star::uno::Any* _pPointerToMember, const ::com::sun::star::uno::Type& _rExpectedType);
/** register a property. The repository will create an own object holding this property, so there is no
need to declare an extra member in your derived class
- @param _rName the name of the property
- @param _nHandle the handle of the property
- @param _nAttributes the attributes of the property
- @param _rType the type of the property
- @param _pInitialValue the initial value of the property. May be null if _nAttributes includes
+ @param _rName the name of the property
+ @param _nHandle the handle of the property
+ @param _nAttributes the attributes of the property
+ @param _rType the type of the property
+ @param _pInitialValue the initial value of the property. May be null if _nAttributes includes
the ::com::sun::star::beans::PropertyAttribute::MAYBEVOID flag.
Else it must be a pointer to an object of the type described by _rType.
*/
- void registerPropertyNoMember(const ::rtl::OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
+ void registerPropertyNoMember(const ::rtl::OUString& _rName, sal_Int32 _nHandle, sal_Int32 _nAttributes,
const ::com::sun::star::uno::Type& _rType, const void* _pInitialValue);
/** revokes a previously registered property
@@ -184,14 +184,14 @@ protected:
@param _rProps
initial property sequence which is to be extended
*/
- void describeProperties(::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps) const;
+ void describeProperties(::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps) const;
/** modify the attributes of an already registered property.
You may want to use this if you're a derived from OPropertyContainer indirectly and want to override
some settings your base class did.
*/
- void modifyAttributes(sal_Int32 _nHandle, sal_Int32 _nAddAttrib, sal_Int32 _nRemoveAttrib);
+ void modifyAttributes(sal_Int32 _nHandle, sal_Int32 _nAddAttrib, sal_Int32 _nRemoveAttrib);
/** retrieves the description for a registered property
@throw com::sun::star::beans::UnknownPropertyException
@@ -202,10 +202,10 @@ protected:
private:
/// insertion of _rProp into m_aProperties, keeping the sort order
- COMPHELPER_DLLPRIVATE void implPushBackProperty(const PropertyDescription& _rProp);
+ COMPHELPER_DLLPRIVATE void implPushBackProperty(const PropertyDescription& _rProp);
/// search the PropertyDescription for the given handle (within m_aProperties)
- COMPHELPER_DLLPRIVATE PropertiesIterator searchHandle(sal_Int32 _nHandle);
+ COMPHELPER_DLLPRIVATE PropertiesIterator searchHandle(sal_Int32 _nHandle);
private:
COMPHELPER_DLLPRIVATE OPropertyContainerHelper( const OPropertyContainerHelper& ); // never implemented
@@ -213,7 +213,7 @@ private:
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // COMPHELPER_PROPERTYCONTAINERHELPER_HXX
diff --git a/comphelper/inc/comphelper/propertysethelper.hxx b/comphelper/inc/comphelper/propertysethelper.hxx
index ea6204d6795f..e65a5bc54607 100644
--- a/comphelper/inc/comphelper/propertysethelper.hxx
+++ b/comphelper/inc/comphelper/propertysethelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/propertysetinfo.hxx b/comphelper/inc/comphelper/propertysetinfo.hxx
index 80a200a79b3a..268cd68b9f54 100644
--- a/comphelper/inc/comphelper/propertysetinfo.hxx
+++ b/comphelper/inc/comphelper/propertysetinfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,7 +82,7 @@ public:
/** adds an array of PropertyMapEntry to this instance
<p>At most the number of entries given will be added, if no terminating entry (<code>mpName == <NULL/></code>) is encountered.</p>
-
+
<p>If <arg>nCount</arg> is less than 0, it is ignored and all entries (up to, but not including, the terminating
one) are added.</p>
*/
diff --git a/comphelper/inc/comphelper/propertystatecontainer.hxx b/comphelper/inc/comphelper/propertystatecontainer.hxx
index 443c52fdf753..ddcd570f1e94 100644
--- a/comphelper/inc/comphelper/propertystatecontainer.hxx
+++ b/comphelper/inc/comphelper/propertystatecontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,8 +46,8 @@ namespace comphelper
//=====================================================================
//= OPropertyStateContainer
//=====================================================================
- typedef ::cppu::ImplHelper1 < ::com::sun::star::beans::XPropertyState
- > OPropertyStateContainer_TBase;
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::beans::XPropertyState
+ > OPropertyStateContainer_TBase;
/** helper implementation for components which have properties with a default
@@ -64,7 +64,7 @@ namespace comphelper
@param _rBHelper
help to be used for broadcasting events
*/
- OPropertyStateContainer( ::cppu::OBroadcastHelper& _rBHelper );
+ OPropertyStateContainer( ::cppu::OBroadcastHelper& _rBHelper );
// ................................................................
// XPropertyState
@@ -84,14 +84,14 @@ namespace comphelper
<p>Already implemented by this base class, no need to override</p>
@precond <arg>_nHandle</arg> is a valid property handle
*/
- virtual ::com::sun::star::beans::PropertyState getPropertyStateByHandle( sal_Int32 _nHandle );
+ virtual ::com::sun::star::beans::PropertyState getPropertyStateByHandle( sal_Int32 _nHandle );
/** set the property denoted by the given handle to it's default value
<p>Already implemented by this base class, no need to override</p>
@precond <arg>_nHandle</arg> is a valid property handle
*/
- virtual void setPropertyToDefaultByHandle( sal_Int32 _nHandle );
+ virtual void setPropertyToDefaultByHandle( sal_Int32 _nHandle );
/** get the default value for the property denoted by the given handle
@@ -108,14 +108,14 @@ namespace comphelper
protected:
/** returns the handle for the given name
-
+
@throw UnknownPropertyException if the given name is not a registered property
*/
- sal_Int32 getHandleForName( const ::rtl::OUString& _rPropertyName ) SAL_THROW( ( ::com::sun::star::beans::UnknownPropertyException ) );
+ sal_Int32 getHandleForName( const ::rtl::OUString& _rPropertyName ) SAL_THROW( ( ::com::sun::star::beans::UnknownPropertyException ) );
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // COMPHELPER_PROPERTYSTATECONTAINER_HXX
diff --git a/comphelper/inc/comphelper/propmultiplex.hxx b/comphelper/inc/comphelper/propmultiplex.hxx
index 3c82dee247dd..6ff9c44f030a 100644
--- a/comphelper/inc/comphelper/propmultiplex.hxx
+++ b/comphelper/inc/comphelper/propmultiplex.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,8 +52,8 @@ namespace comphelper
{
friend class OPropertyChangeMultiplexer;
- OPropertyChangeMultiplexer* m_pAdapter;
- ::osl::Mutex& m_rMutex;
+ OPropertyChangeMultiplexer* m_pAdapter;
+ ::osl::Mutex& m_rMutex;
public:
OPropertyChangeListener(::osl::Mutex& _rMutex)
@@ -77,15 +77,15 @@ namespace comphelper
//= OPropertyChangeMultiplexer
//==================================================================
/// multiplexer for property changes
- class COMPHELPER_DLLPUBLIC OPropertyChangeMultiplexer :public cppu::WeakImplHelper1< ::com::sun::star::beans::XPropertyChangeListener>
+ class COMPHELPER_DLLPUBLIC OPropertyChangeMultiplexer :public cppu::WeakImplHelper1< ::com::sun::star::beans::XPropertyChangeListener>
{
friend class OPropertyChangeListener;
- ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aProperties;
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xSet;
- OPropertyChangeListener* m_pListener;
- sal_Int32 m_nLockCount;
- sal_Bool m_bListening : 1;
- sal_Bool m_bAutoSetRelease : 1;
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aProperties;
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet> m_xSet;
+ OPropertyChangeListener* m_pListener;
+ sal_Int32 m_nLockCount;
+ sal_Bool m_bListening : 1;
+ sal_Bool m_bAutoSetRelease : 1;
virtual ~OPropertyChangeMultiplexer();
@@ -99,18 +99,18 @@ namespace comphelper
virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw( ::com::sun::star::uno::RuntimeException);
/// incremental lock
- void lock();
+ void lock();
/// incremental unlock
- void unlock();
+ void unlock();
/// get the lock count
- sal_Int32 locked() const { return m_nLockCount; }
+ sal_Int32 locked() const { return m_nLockCount; }
void addProperty(const ::rtl::OUString& aPropertyName);
void dispose();
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_PROPERTY_MULTIPLEX_HXX_
diff --git a/comphelper/inc/comphelper/propstate.hxx b/comphelper/inc/comphelper/propstate.hxx
index 2c8f06f4118a..ea917d2f1cc2 100644
--- a/comphelper/inc/comphelper/propstate.hxx
+++ b/comphelper/inc/comphelper/propstate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,9 +75,9 @@ namespace comphelper
getPropertyDefault(const ::rtl::OUString& aPropertyName) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
// access via handle
- virtual ::com::sun::star::beans::PropertyState getPropertyStateByHandle(sal_Int32 nHandle);
- virtual void setPropertyToDefaultByHandle(sal_Int32 nHandle);
- virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const;
+ virtual ::com::sun::star::beans::PropertyState getPropertyStateByHandle(sal_Int32 nHandle);
+ virtual void setPropertyToDefaultByHandle(sal_Int32 nHandle);
+ virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const;
protected:
virtual ~OPropertyStateHelper();
@@ -106,7 +106,7 @@ namespace comphelper
};
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_PROPERTY_STATE_HXX_
diff --git a/comphelper/inc/comphelper/proxyaggregation.hxx b/comphelper/inc/comphelper/proxyaggregation.hxx
index 490569844a81..a5753dea064f 100644
--- a/comphelper/inc/comphelper/proxyaggregation.hxx
+++ b/comphelper/inc/comphelper/proxyaggregation.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@
| OComponentProxyAggregationHelper | - life time coupling: if the inner component (the "aggregate")
+----------------------------------+ is disposed, the outer (the delegator) is disposed, too, and
^ vice versa
- | - UNO based, implementing XEventListener
+ | - UNO based, implementing XEventListener
|
+----------------------------+ component aggregating another XComponent
| OComponentProxyAggregation | - life time coupling as above
@@ -64,7 +64,7 @@
=> use OComponentProxyAggregation
- call componentAggregateProxyFor in your ctor
- call implEnsureDisposeInDtor in your dtor
-
+
- wrap a foreign object which is a XComponent, but already have ref-counting mechanisms
inherited from somewhere else
=> use OComponentProxyAggregationHelper
@@ -89,9 +89,9 @@ namespace comphelper
class OProxyAggregation
{
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation > m_xProxyAggregate;
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XTypeProvider > m_xProxyTypeAccess;
- ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xORB;
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation > m_xProxyAggregate;
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XTypeProvider > m_xProxyTypeAccess;
+ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xORB;
protected:
inline const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& getORB()
@@ -115,9 +115,9 @@ namespace comphelper
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException);
private:
- OProxyAggregation( ); // never implemented
- OProxyAggregation( const OProxyAggregation& ); // never implemented
- OProxyAggregation& operator=( const OProxyAggregation& ); // never implemented
+ OProxyAggregation( ); // never implemented
+ OProxyAggregation( const OProxyAggregation& ); // never implemented
+ OProxyAggregation& operator=( const OProxyAggregation& ); // never implemented
};
//=========================================================================
@@ -132,18 +132,18 @@ namespace comphelper
calls which your derived class gets to the dispose method of this class.</p>
*/
- class COMPHELPER_DLLPUBLIC OComponentProxyAggregationHelper :public ::cppu::ImplHelper1 < com::sun::star::lang::XEventListener
+ class COMPHELPER_DLLPUBLIC OComponentProxyAggregationHelper :public ::cppu::ImplHelper1 < com::sun::star::lang::XEventListener
>
,private OProxyAggregation
{
private:
- typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XEventListener
- > BASE; // prevents some MSVC problems
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XEventListener
+ > BASE; // prevents some MSVC problems
protected:
::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >
m_xInner;
- ::cppu::OBroadcastHelper& m_rBHelper;
+ ::cppu::OBroadcastHelper& m_rBHelper;
protected:
// OProxyAggregation
@@ -176,17 +176,17 @@ namespace comphelper
virtual void SAL_CALL dispose() throw( ::com::sun::star::uno::RuntimeException );
private:
- COMPHELPER_DLLPRIVATE OComponentProxyAggregationHelper( ); // never implemented
- COMPHELPER_DLLPRIVATE OComponentProxyAggregationHelper( const OComponentProxyAggregationHelper& ); // never implemented
- COMPHELPER_DLLPRIVATE OComponentProxyAggregationHelper& operator=( const OComponentProxyAggregationHelper& ); // never implemented
+ COMPHELPER_DLLPRIVATE OComponentProxyAggregationHelper( ); // never implemented
+ COMPHELPER_DLLPRIVATE OComponentProxyAggregationHelper( const OComponentProxyAggregationHelper& ); // never implemented
+ COMPHELPER_DLLPRIVATE OComponentProxyAggregationHelper& operator=( const OComponentProxyAggregationHelper& ); // never implemented
};
//=========================================================================
//= OComponentProxyAggregation
//=========================================================================
- typedef ::cppu::WeakComponentImplHelperBase OComponentProxyAggregation_CBase;
+ typedef ::cppu::WeakComponentImplHelperBase OComponentProxyAggregation_CBase;
- class COMPHELPER_DLLPUBLIC OComponentProxyAggregation :public OBaseMutex
+ class COMPHELPER_DLLPUBLIC OComponentProxyAggregation :public OBaseMutex
,public OComponentProxyAggregation_CBase
,public OComponentProxyAggregationHelper
{
@@ -217,13 +217,13 @@ namespace comphelper
void implEnsureDisposeInDtor( );
private:
- COMPHELPER_DLLPRIVATE OComponentProxyAggregation( ); // never implemented
- COMPHELPER_DLLPRIVATE OComponentProxyAggregation( const OComponentProxyAggregation& ); // never implemented
- COMPHELPER_DLLPRIVATE OComponentProxyAggregation& operator=( const OComponentProxyAggregation& ); // never implemented
+ COMPHELPER_DLLPRIVATE OComponentProxyAggregation( ); // never implemented
+ COMPHELPER_DLLPRIVATE OComponentProxyAggregation( const OComponentProxyAggregation& ); // never implemented
+ COMPHELPER_DLLPRIVATE OComponentProxyAggregation& operator=( const OComponentProxyAggregation& ); // never implemented
};
//.............................................................................
-} // namespace comphelper
+} // namespace comphelper
//.............................................................................
diff --git a/comphelper/inc/comphelper/querydeep.hxx b/comphelper/inc/comphelper/querydeep.hxx
index af6d5ae6306f..716ed809a8a8 100644
--- a/comphelper/inc/comphelper/querydeep.hxx
+++ b/comphelper/inc/comphelper/querydeep.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,9 +41,9 @@ namespace comphelper
/**
* Inspect interfaces types whether they are related by inheritance.
*<BR>
- * @return true if rType is derived from rBaseType
- * @param rBaseType a <type>Type</type> of an interface.
- * @param rType a <type>Type</type> of an interface.
+ * @return true if rType is derived from rBaseType
+ * @param rBaseType a <type>Type</type> of an interface.
+ * @param rType a <type>Type</type> of an interface.
*/
sal_Bool isDerivedFrom(
const ::com::sun::star::uno::Type & rBaseType,
@@ -53,9 +53,9 @@ sal_Bool isDerivedFrom(
/**
* Inspect interface types whether they are related by inheritance.
*<BR>
- * @return true if p is of a type derived from rBaseType
- * @param rBaseType a <type>Type</type> of an interface.
- * @param p a pointer to an interface.
+ * @return true if p is of a type derived from rBaseType
+ * @param rBaseType a <type>Type</type> of an interface.
+ * @param p a pointer to an interface.
*/
template <class Interface>
inline sal_Bool isDerivedFrom(
@@ -67,14 +67,14 @@ inline sal_Bool isDerivedFrom(
//--------------------------------------------------------------------------------------------------------
// possible optimization ?
-// Any aRet(::cppu::queryInterface(rType, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12));
-// if (aRet.hasValue())
-// return aRet;
+// Any aRet(::cppu::queryInterface(rType, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12));
+// if (aRet.hasValue())
+// return aRet;
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
+ * @param p1 a pointer to an interface.
*/
template< class Interface1 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -90,8 +90,8 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
*/
template< class Interface1, class Interface2 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -109,9 +109,9 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -131,10 +131,10 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -156,11 +156,11 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -184,12 +184,12 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6 >
@@ -217,13 +217,13 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7 >
@@ -253,14 +253,14 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8 >
@@ -292,15 +292,15 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
- * @param p9 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
+ * @param p9 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8, class Interface9 >
@@ -334,16 +334,16 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
- * @param p9 a pointer to an interface.
- * @param p10 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
+ * @param p9 a pointer to an interface.
+ * @param p10 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8, class Interface9, class Interface10 >
@@ -379,17 +379,17 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
- * @param p9 a pointer to an interface.
- * @param p10 a pointer to an interface.
- * @param p11 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
+ * @param p9 a pointer to an interface.
+ * @param p10 a pointer to an interface.
+ * @param p11 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8, class Interface9, class Interface10,
@@ -429,18 +429,18 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
- * @param p9 a pointer to an interface.
- * @param p10 a pointer to an interface.
- * @param p11 a pointer to an interface.
- * @param p12 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
+ * @param p9 a pointer to an interface.
+ * @param p10 a pointer to an interface.
+ * @param p11 a pointer to an interface.
+ * @param p12 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8, class Interface9, class Interface10,
diff --git a/comphelper/inc/comphelper/regpathhelper.hxx b/comphelper/inc/comphelper/regpathhelper.hxx
index 27bbcb84287a..1e6061e18983 100644
--- a/comphelper/inc/comphelper/regpathhelper.hxx
+++ b/comphelper/inc/comphelper/regpathhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,13 +39,13 @@ namespace comphelper
* Search for the user registry using the following rules:
* <dl>
* <dt> 1. (for further use) search in sversion.ini (.sversionrc) for an entry
- * REGISTRY_VERSION_STRING (example: UserRegistry 5.0/505=test.rdb) in the section
- * [Registry]. If found, then take this value instead of the name "user.rdb".
+ * REGISTRY_VERSION_STRING (example: UserRegistry 5.0/505=test.rdb) in the section
+ * [Registry]. If found, then take this value instead of the name "user.rdb".
* <dt> 2. Search in the config directory of the user for a file "user.rdb". If
- * found return the full path and name of the file. If not found, retry this
- * step with a dot before ".user.rdb".
+ * found return the full path and name of the file. If not found, retry this
+ * step with a dot before ".user.rdb".
* <dt> 3. If not found a new user registry with name "user.rdb" will be created in the user
- * config directory.
+ * config directory.
* </dl>
*<BR>
* @author Juergen Schmidt
diff --git a/comphelper/inc/comphelper/scopeguard.hxx b/comphelper/inc/comphelper/scopeguard.hxx
index 1c831c08ff20..5ae21d222ee5 100644
--- a/comphelper/inc/comphelper/scopeguard.hxx
+++ b/comphelper/inc/comphelper/scopeguard.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ class COMPHELPER_DLLPUBLIC ScopeGuard : private ::boost::noncopyable
{
public:
enum exc_handling { IGNORE_EXCEPTIONS, ALLOW_EXCEPTIONS };
-
+
/** @param func function object to be executed in dtor
@param excHandling switches whether thrown exceptions in dtor will be
silently ignored (but OSL_ asserted)
@@ -54,14 +54,14 @@ public:
explicit ScopeGuard( func_type const & func,
exc_handling excHandling = IGNORE_EXCEPTIONS )
: m_func( func ), m_excHandling( excHandling ) {}
-
+
~ScopeGuard();
-
+
/** Dismisses the scope guard, i.e. the function won't
be executed.
*/
void dismiss();
-
+
private:
::boost::function0<void> m_func; // preferring portable syntax
exc_handling const m_excHandling;
diff --git a/comphelper/inc/comphelper/seekableinput.hxx b/comphelper/inc/comphelper/seekableinput.hxx
index 455ed7bb183c..7f412c385510 100644
--- a/comphelper/inc/comphelper/seekableinput.hxx
+++ b/comphelper/inc/comphelper/seekableinput.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,10 +42,10 @@ namespace comphelper
class COMPHELPER_DLLPUBLIC OSeekableInputWrapper : public ::cppu::WeakImplHelper2< ::com::sun::star::io::XInputStream,
::com::sun::star::io::XSeekable >
{
- ::osl::Mutex m_aMutex;
+ ::osl::Mutex m_aMutex;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
-
+
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_xOriginalStream;
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_xCopyInput;
@@ -79,7 +79,7 @@ public:
};
-} // namespace comphelper
+} // namespace comphelper
#endif
diff --git a/comphelper/inc/comphelper/seqstream.hxx b/comphelper/inc/comphelper/seqstream.hxx
index 82c335616926..c51fe3483dd5 100644
--- a/comphelper/inc/comphelper/seqstream.hxx
+++ b/comphelper/inc/comphelper/seqstream.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,9 +52,9 @@ namespace comphelper
class COMPHELPER_DLLPUBLIC SequenceInputStream
: public ::cppu::WeakImplHelper2< ::com::sun::star::io::XInputStream, ::com::sun::star::io::XSeekable >
{
- ::osl::Mutex m_aMutex;
- ByteSequence m_aData;
- sal_Int32 m_nPos;
+ ::osl::Mutex m_aMutex;
+ ByteSequence m_aData;
+ sal_Int32 m_nPos;
public:
SequenceInputStream(const ByteSequence& rData);
@@ -90,18 +90,18 @@ typedef ::cppu::WeakImplHelper1< ::com::sun::star::io::XOutputStream > OSequence
class OSequenceOutputStream : public OSequenceOutputStream_Base
{
protected:
- ::com::sun::star::uno::Sequence< sal_Int8 >& m_rSequence;
- double m_nResizeFactor;
- sal_Int32 m_nMinimumResize;
- sal_Int32 m_nMaximumResize;
- sal_Int32 m_nSize;
+ ::com::sun::star::uno::Sequence< sal_Int8 >& m_rSequence;
+ double m_nResizeFactor;
+ sal_Int32 m_nMinimumResize;
+ sal_Int32 m_nMaximumResize;
+ sal_Int32 m_nSize;
// the size of the virtual stream. This is not the size of the sequence, but the number of bytes written
// into the stream at a given moment.
- sal_Bool m_bConnected;
+ sal_Bool m_bConnected;
// closeOutput has been called ?
- ::osl::Mutex m_aMutex;
+ ::osl::Mutex m_aMutex;
protected:
~OSequenceOutputStream() { if (m_bConnected) closeOutput(); }
@@ -109,18 +109,18 @@ protected:
public:
/** constructs the object. Everything written into the stream through the XOutputStream methods will be forwarded
to the sequence, reallocating it if neccessary. Writing will start at offset 0 within the sequence.
- @param _rSeq a reference to the sequence which will be used for output.
+ @param _rSeq a reference to the sequence which will be used for output.
The caller is responsible for taking care of the lifetime of the stream
object and the sequence. If you're in doubt about this, use <code>closeOutput</code>
before destroying the sequence
- @param _nResizeFactor the factor which is used for resizing the sequence when neccessary. In every
+ @param _nResizeFactor the factor which is used for resizing the sequence when neccessary. In every
resize step, the new sequence size will be calculated by multiplying the current
size with this factor, rounded off to the next multiple of 4.
- @param _nMinimumResize the minmal number of bytes which is additionally allocated on resizing
- @param _nMaximumResize as the growth of the stream size is exponential, you may want to specify a
+ @param _nMinimumResize the minmal number of bytes which is additionally allocated on resizing
+ @param _nMaximumResize as the growth of the stream size is exponential, you may want to specify a
maxmimum amount of memory which the sequence will grow by. If -1 is used,
no limit is applied
- @see closeOutput
+ @see closeOutput
*/
OSequenceOutputStream(
::com::sun::star::uno::Sequence< sal_Int8 >& _rSeq,
diff --git a/comphelper/inc/comphelper/sequence.hxx b/comphelper/inc/comphelper/sequence.hxx
index 17f2d7cab6bb..0d57913732e7 100644
--- a/comphelper/inc/comphelper/sequence.hxx
+++ b/comphelper/inc/comphelper/sequence.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ namespace comphelper
{
//.........................................................................
- namespace staruno = ::com::sun::star::uno;
+ namespace staruno = ::com::sun::star::uno;
//-------------------------------------------------------------------------
/** search the given string within the given sequence, return the positions where it was found.
@@ -135,7 +135,7 @@ namespace comphelper
{
public:
virtual sal_Bool hasMoreElements() const = 0;
- virtual ::com::sun::star::uno::Any nextElement() = 0;
+ virtual ::com::sun::star::uno::Any nextElement() = 0;
};
/** a helper class for iterating through a sequence
*/
@@ -143,7 +143,7 @@ namespace comphelper
class OSequenceIterator : public IIterator
{
const TYPE* m_pElements;
- sal_Int32 m_nLen;
+ sal_Int32 m_nLen;
const TYPE* m_pCurrent;
public:
@@ -155,7 +155,7 @@ namespace comphelper
OSequenceIterator(const ::com::sun::star::uno::Any& _rSequenceAny);
virtual sal_Bool hasMoreElements() const;
- virtual ::com::sun::star::uno::Any nextElement();
+ virtual ::com::sun::star::uno::Any nextElement();
protected:
void construct(const ::com::sun::star::uno::Sequence< TYPE >& _rSeq);
@@ -234,7 +234,7 @@ namespace comphelper
values will be truncated. There's currently no measure to
prevent or detect precision loss, overflow or truncation.
*/
- template < typename DstType, typename SrcType >
+ template < typename DstType, typename SrcType >
::com::sun::star::uno::Sequence< DstType > arrayToSequence( const SrcType* i_pArray, sal_Int32 nNum )
{
::com::sun::star::uno::Sequence< DstType > result( nNum );
@@ -265,7 +265,7 @@ namespace comphelper
will be truncated. There's currently no measure to prevent or
detect precision loss, overflow or truncation.
*/
- template < typename DstType, typename SrcType >
+ template < typename DstType, typename SrcType >
DstType* sequenceToArray( DstType* io_pArray, const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence )
{
::std::copy( i_Sequence.getConstArray(), i_Sequence.getConstArray()+i_Sequence.getLength(), io_pArray );
@@ -295,7 +295,7 @@ namespace comphelper
truncated. There's currently no measure to prevent or detect
precision loss, overflow or truncation.
*/
- template < typename DstType, typename SrcType >
+ template < typename DstType, typename SrcType >
::com::sun::star::uno::Sequence< DstType > containerToSequence( const SrcType& i_Container )
{
::com::sun::star::uno::Sequence< DstType > result( i_Container.size() );
@@ -335,7 +335,7 @@ namespace comphelper
truncated. There's currently no measure to prevent or detect
precision loss, overflow or truncation.
*/
- template < typename DstType, typename SrcType >
+ template < typename DstType, typename SrcType >
DstType sequenceToContainer( const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence )
{
DstType result( i_Sequence.getLength() );
@@ -373,7 +373,7 @@ namespace comphelper
truncated. There's currently no measure to prevent or detect
precision loss, overflow or truncation.
*/
- template < typename DstType, typename SrcType >
+ template < typename DstType, typename SrcType >
DstType& sequenceToContainer( DstType& o_Output, const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence )
{
o_Output.resize( i_Sequence.getLength() );
@@ -382,7 +382,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/inc/comphelper/sequenceashashmap.hxx b/comphelper/inc/comphelper/sequenceashashmap.hxx
index 0046f32bd100..8f2c6f79c03e 100644
--- a/comphelper/inc/comphelper/sequenceashashmap.hxx
+++ b/comphelper/inc/comphelper/sequenceashashmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,7 +100,7 @@ class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase
/** @see operator<<(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >&)
*/
SequenceAsHashMap(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& lSource);
-
+
//---------------------------------------
/** @see operator<<(const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >&)
*/
@@ -195,7 +195,7 @@ class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase
@descr Its made const to prevent using of the
return value directly as an in/out parameter!
usage: myMethod(stlDequeAdapter.getAsAnyList());
-
+
@param bAsPropertyValue
switch between using of PropertyValue or NamedValue as
value type.
@@ -204,7 +204,7 @@ class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase
contains all items of this map.
*/
const ::com::sun::star::uno::Any getAsConstAny(::sal_Bool bAsPropertyValue) const;
-
+
//---------------------------------------
/** @short return this map instance as a
sequence< Any >, which can be
@@ -217,12 +217,12 @@ class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase
@param bAsPropertyValue
switch between using of PropertyValue or NamedValue as
value type.
-
+
@return A const sequence which elements of Any, which
contains all items of this map.
*/
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > getAsConstAnyList(::sal_Bool bAsPropertyValue) const;
-
+
//---------------------------------------
/** @short return this map instance to as a
NamedValue sequence, which can be
@@ -335,12 +335,12 @@ class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase
@param rCheck
the map containing all items for checking.
- @return
+ @return
TRUE if all items of Rcheck could be found
in these map; FALSE otherwise.
*/
sal_Bool match(const SequenceAsHashMap& rCheck) const;
-
+
//---------------------------------------
/** @short merge all values from the given map into
this one.
@@ -353,7 +353,7 @@ class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase
the map containing all items for the update.
*/
void update(const SequenceAsHashMap& rSource);
-
+
//---------------------------------------
/** @short can be used to generate a file dump of
the current content of this instance.
diff --git a/comphelper/inc/comphelper/sequenceasvector.hxx b/comphelper/inc/comphelper/sequenceasvector.hxx
index 6fb303f0d36f..730c5e1998cd 100644
--- a/comphelper/inc/comphelper/sequenceasvector.hxx
+++ b/comphelper/inc/comphelper/sequenceasvector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,9 +60,9 @@ class SequenceAsVector : public ::std::vector< TElementType >
{
//-------------------------------------------
// types
-
+
public:
-
+
//---------------------------------------
/** @short When inheriting from a template using typename is generally required when using
types from the base! */
diff --git a/comphelper/inc/comphelper/servicedecl.hxx b/comphelper/inc/comphelper/servicedecl.hxx
index 77c56eafb417..75efeb17faf1 100644
--- a/comphelper/inc/comphelper/servicedecl.hxx
+++ b/comphelper/inc/comphelper/servicedecl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ typedef ::boost::function3<
/** Class to declare a service implementation. There is no need to implement
lang::XServiceInfo nor lang::XInitialization anymore.
The declaration can be done in various ways, the (simplest) form is
-
+
<pre>
class MyClass : cppu::WeakImplHelper2<XInterface1, XInterface2> {
public:
@@ -80,11 +80,11 @@ typedef ::boost::function3<
"my.unique.implementation.name",
"MyServiceSpec1;MyServiceSpec2" );
</pre>
-
+
If the service demands initialization by arguments, the implementation
class has to define a constructor taking both arguments and component
context:
-
+
<pre>
class MyClass : cppu::WeakImplHelper2<XInterface1, XInterface2> {
public:
@@ -103,7 +103,7 @@ typedef ::boost::function3<
Additionally, there is the possibility to process some code after creation,
e.g. to add the newly created object as a listener or perform aggregation
(C++-UNO only):
-
+
<pre>
uno::Reference<uno::XInterface> somePostProcCode( MyClass * p );
[...]
@@ -120,7 +120,7 @@ class COMPHELPER_DLLPUBLIC ServiceDecl : private ::boost::noncopyable
{
public:
/** Ctor for multiple supported service names.
-
+
@param implClass implementation class description
@param pImplName implementation name
@param pSupportedServiceNames supported service names
@@ -134,26 +134,26 @@ public:
m_pImplName(pImplName),
m_pServiceNames(pSupportedServiceNames),
m_cDelim(cDelim) {}
-
+
/// @internal gets called by component_writeInfoHelper()
bool writeInfo( ::com::sun::star::registry::XRegistryKey * xKey ) const;
/// @internal gets called by component_getFactoryHelper()
void * getFactory( sal_Char const* pImplName ) const;
-
+
/// @return supported service names
::com::sun::star::uno::Sequence< ::rtl::OUString>
getSupportedServiceNames() const;
-
+
/// @return whether name is in set of supported service names
bool supportsService( ::rtl::OUString const& name ) const;
-
+
/// @return implementation name
::rtl::OUString getImplementationName() const;
-
+
private:
class Factory;
friend class Factory;
-
+
detail::CreateFuncF const m_createFunc;
char const* const m_pImplName;
char const* const m_pServiceNames;
@@ -173,8 +173,8 @@ class OwnServiceImpl
private ::boost::noncopyable
{
typedef ImplT BaseT;
-
-public:
+
+public:
OwnServiceImpl(
ServiceDecl const& rServiceDecl,
css::uno::Sequence<css::uno::Any> const& args,
@@ -184,7 +184,7 @@ public:
ServiceDecl const& rServiceDecl,
css::uno::Reference<css::uno::XComponentContext> const& xContext )
: BaseT(xContext), m_rServiceDecl(rServiceDecl) {}
-
+
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException) {
@@ -198,7 +198,7 @@ public:
SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException) {
return m_rServiceDecl.getSupportedServiceNames();
}
-
+
private:
ServiceDecl const& m_rServiceDecl;
};
@@ -235,7 +235,7 @@ struct CreateFunc<ImplT, PostProcessFuncT, with_args<false> > {
PostProcessFuncT const m_postProcessFunc;
explicit CreateFunc( PostProcessFuncT const& postProcessFunc )
: m_postProcessFunc(postProcessFunc) {}
-
+
css::uno::Reference<css::uno::XInterface>
operator()( ServiceDecl const& rServiceDecl,
css::uno::Sequence<css::uno::Any> const&,
@@ -252,7 +252,7 @@ struct CreateFunc<ImplT, PostProcessFuncT, with_args<true> > {
PostProcessFuncT const m_postProcessFunc;
explicit CreateFunc( PostProcessFuncT const& postProcessFunc )
: m_postProcessFunc(postProcessFunc) {}
-
+
css::uno::Reference<css::uno::XInterface>
operator()( ServiceDecl const& rServiceDecl,
css::uno::Sequence<css::uno::Any> const& args,
@@ -267,7 +267,7 @@ struct CreateFunc<ImplT, PostProcessFuncT, with_args<true> > {
} // namespace detail
/** Defines a service implementation class.
-
+
@tpl ImplT_ service implementation class
@WithArgsT whether the implementation class ctor expects arguments
(uno::Sequence<uno::Any>, uno::Reference<uno::XComponentContext>)
@@ -276,9 +276,9 @@ struct CreateFunc<ImplT, PostProcessFuncT, with_args<true> > {
template <typename ImplT_, typename WithArgsT = with_args<false> >
struct serviceimpl_base {
typedef ImplT_ ImplT;
-
+
detail::CreateFuncF const m_createFunc;
-
+
typedef detail::PostProcessDefault<ImplT> PostProcessDefaultT;
/** Default ctor. Implementation class without args, expecting
@@ -289,7 +289,7 @@ struct serviceimpl_base {
PostProcessDefaultT() ) ) {}
/** Ctor to pass a post processing function/functor.
-
+
@tpl PostProcessDefaultT let your compiler deduce this
@param postProcessFunc function/functor that gets the yet unacquired
ImplT_ pointer returning a
@@ -311,7 +311,7 @@ struct class_ : public serviceimpl_base< detail::ServiceImpl<ImplT_>, WithArgsT
class_() : baseT() {}
template <typename PostProcessFuncT>
/** Ctor to pass a post processing function/functor.
-
+
@tpl PostProcessDefaultT let your compiler deduce this
@param postProcessFunc function/functor that gets the yet unacquired
ImplT_ pointer returning a
@@ -332,22 +332,22 @@ struct class_ : public serviceimpl_base< detail::ServiceImpl<ImplT_>, WithArgsT
pRet = BOOST_PP_CAT(s, n_).getFactory(pImplName);
/** The following preprocessor repetitions generate functions like
-
+
<pre>
inline sal_Bool component_writeInfoHelper(
::com::sun::star::lang::XMultiServiceFactory *,
::com::sun::star::registry::XRegistryKey * xRegistryKey,
ServiceDecl const& s0, ServiceDecl const& s1, ... );
-
+
inline void * component_getFactoryHelper(
sal_Char const* pImplName,
::com::sun::star::lang::XMultiServiceFactory *,
::com::sun::star::registry::XRegistryKey * xRegistryKey,
ServiceDecl const& s0, ServiceDecl const& s1, ... );
</pre>
-
+
which call on the passed service declarations.
-
+
The maximum number of service declarations can be set by defining
COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS; its default is 8.
*/
@@ -390,15 +390,15 @@ BOOST_PP_REPEAT_FROM_TO(1, COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS,
/** The following preprocessor macro generates the C access functions,
that are used to initialize and register the components of a
shared library object.
-
+
If you have, say, written a lib that contains three distinct
components, each with its own ServiceDecl object, you might want
to employ the following code:
<pre>
// must reside outside _any_ namespace
- COMPHELPER_SERVICEDECL_EXPORTS3(yourServiceDecl1,
- yourServiceDecl2,
+ COMPHELPER_SERVICEDECL_EXPORTS3(yourServiceDecl1,
+ yourServiceDecl2,
yourServiceDecl3);
</pre>
diff --git a/comphelper/inc/comphelper/servicehelper.hxx b/comphelper/inc/comphelper/servicehelper.hxx
index e691ea2bd76c..f5784b617231 100644
--- a/comphelper/inc/comphelper/servicehelper.hxx
+++ b/comphelper/inc/comphelper/servicehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/serviceinfohelper.hxx b/comphelper/inc/comphelper/serviceinfohelper.hxx
index 859f35cc707f..f71297dafc65 100644
--- a/comphelper/inc/comphelper/serviceinfohelper.hxx
+++ b/comphelper/inc/comphelper/serviceinfohelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/sharedmutex.hxx b/comphelper/inc/comphelper/sharedmutex.hxx
index a1984121fc50..b26b438e83d8 100644
--- a/comphelper/inc/comphelper/sharedmutex.hxx
+++ b/comphelper/inc/comphelper/sharedmutex.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/stillreadwriteinteraction.hxx b/comphelper/inc/comphelper/stillreadwriteinteraction.hxx
index 5ad07f201f1a..30295f68be53 100644
--- a/comphelper/inc/comphelper/stillreadwriteinteraction.hxx
+++ b/comphelper/inc/comphelper/stillreadwriteinteraction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-*
+*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/stl_types.hxx b/comphelper/inc/comphelper/stl_types.hxx
index 89f0e023f0c1..36eb57a7ad04 100644
--- a/comphelper/inc/comphelper/stl_types.hxx
+++ b/comphelper/inc/comphelper/stl_types.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -158,9 +158,9 @@ public:
*/
template < class IAFCE >
struct OInterfaceCompare
- :public ::std::binary_function < ::com::sun::star::uno::Reference< IAFCE >
- , ::com::sun::star::uno::Reference< IAFCE >
- , bool
+ :public ::std::binary_function < ::com::sun::star::uno::Reference< IAFCE >
+ , ::com::sun::star::uno::Reference< IAFCE >
+ , bool
>
{
bool operator() (const ::com::sun::star::uno::Reference< IAFCE >& lhs, const ::com::sun::star::uno::Reference< IAFCE >& rhs) const
@@ -174,7 +174,7 @@ struct OInterfaceCompare
};
template <class _Tp, class _Arg>
-class mem_fun1_t : public ::std::binary_function<_Tp*,_Arg,void>
+class mem_fun1_t : public ::std::binary_function<_Tp*,_Arg,void>
{
typedef void (_Tp::*_fun_type)(_Arg);
public:
@@ -186,8 +186,8 @@ private:
template <class _Tp, class _Arg>
inline mem_fun1_t<_Tp,_Arg> mem_fun(void (_Tp::*__f)(_Arg))
-{
- return mem_fun1_t<_Tp,_Arg>(__f);
+{
+ return mem_fun1_t<_Tp,_Arg>(__f);
}
//.........................................................................
diff --git a/comphelper/inc/comphelper/stlunosequence.hxx b/comphelper/inc/comphelper/stlunosequence.hxx
index 454de6400c32..8cba0640af94 100644
--- a/comphelper/inc/comphelper/stlunosequence.hxx
+++ b/comphelper/inc/comphelper/stlunosequence.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/storagehelper.hxx b/comphelper/inc/comphelper/storagehelper.hxx
index b8efa00b0d92..8b3fc638e0f8 100644
--- a/comphelper/inc/comphelper/storagehelper.hxx
+++ b/comphelper/inc/comphelper/storagehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,9 +40,9 @@
#include "comphelper/comphelperdllapi.h"
-#define PACKAGE_STORAGE_FORMAT_STRING ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PackageFormat" ) )
-#define ZIP_STORAGE_FORMAT_STRING ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ZipFormat" ) )
-#define OFOPXML_STORAGE_FORMAT_STRING ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "OFOPXMLFormat" ) )
+#define PACKAGE_STORAGE_FORMAT_STRING ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PackageFormat" ) )
+#define ZIP_STORAGE_FORMAT_STRING ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ZipFormat" ) )
+#define OFOPXML_STORAGE_FORMAT_STRING ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "OFOPXMLFormat" ) )
namespace comphelper {
diff --git a/comphelper/inc/comphelper/streamsection.hxx b/comphelper/inc/comphelper/streamsection.hxx
index fb1758135e9e..e59c2442a8c2 100644
--- a/comphelper/inc/comphelper/streamsection.hxx
+++ b/comphelper/inc/comphelper/streamsection.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,37 +37,37 @@
namespace comphelper
{
- namespace stario = ::com::sun::star::io;
- namespace staruno = ::com::sun::star::uno;
+ namespace stario = ::com::sun::star::io;
+ namespace staruno = ::com::sun::star::uno;
/** implements handling for compatibly reading/writing data from/into an input/output stream.
data written in a block secured by this class should be readable by older versions which
use the same mechanism.
- @author Frank Schoenheit
- @since 00/26/05
+ @author Frank Schoenheit
+ @since 00/26/05
*/
class COMPHELPER_DLLPUBLIC OStreamSection
{
- staruno::Reference< stario::XMarkableStream > m_xMarkStream;
- staruno::Reference< stario::XDataInputStream > m_xInStream;
- staruno::Reference< stario::XDataOutputStream > m_xOutStream;
+ staruno::Reference< stario::XMarkableStream > m_xMarkStream;
+ staruno::Reference< stario::XDataInputStream > m_xInStream;
+ staruno::Reference< stario::XDataOutputStream > m_xOutStream;
- sal_Int32 m_nBlockStart;
- sal_Int32 m_nBlockLen;
+ sal_Int32 m_nBlockStart;
+ sal_Int32 m_nBlockLen;
public:
- /** starts reading of a "skippable" section of data within the given input stream<BR>
- @param _rxInput the stream to read from. Must support the
+ /** starts reading of a "skippable" section of data within the given input stream<BR>
+ @param _rxInput the stream to read from. Must support the
<type scope="com::sun::star::io">XMarkableStream</type> interface
*/
OStreamSection(const staruno::Reference< stario::XDataInputStream >& _rxInput);
- /** starts writing of a "skippable" section of data into the given output stream
- @param _rxOutput the stream the stream to write to. Must support the
+ /** starts writing of a "skippable" section of data into the given output stream
+ @param _rxOutput the stream the stream to write to. Must support the
<type scope="com::sun::star::io">XMarkableStream</type> interface
- @param _nPresumedLength estimation for the length of the upcoming section. If greater 0, this
+ @param _nPresumedLength estimation for the length of the upcoming section. If greater 0, this
value will be written as section length and corrected (in the dtor) only if
needed. If you know how much bytes you are about to write, you may
want to use this param, saving some stream operations this way.
@@ -84,7 +84,7 @@ public:
sal_Int32 available();
};
-} // namespace comphelper
+} // namespace comphelper
#endif // _COMPHELPER_STREAMSECTION_HXX_
diff --git a/comphelper/inc/comphelper/string.hxx b/comphelper/inc/comphelper/string.hxx
index 2ffbdba09735..5101465bd29f 100644
--- a/comphelper/inc/comphelper/string.hxx
+++ b/comphelper/inc/comphelper/string.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/synchronousdispatch.hxx b/comphelper/inc/comphelper/synchronousdispatch.hxx
index 4bd0375086b6..7dca46d6d4c0 100644
--- a/comphelper/inc/comphelper/synchronousdispatch.hxx
+++ b/comphelper/inc/comphelper/synchronousdispatch.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ namespace comphelper
//= SynchronousDispatch
//====================================================================
/** a helper class for working with the dispatch interface replacing
- loadComponentFromURL
+ loadComponentFromURL
*/
class SynchronousDispatch
{
diff --git a/comphelper/inc/comphelper/types.hxx b/comphelper/inc/comphelper/types.hxx
index 46020e64dd29..ba39c328895b 100644
--- a/comphelper/inc/comphelper/types.hxx
+++ b/comphelper/inc/comphelper/types.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,12 +48,12 @@ namespace comphelper
{
//.........................................................................
- namespace staruno = ::com::sun::star::uno;
- namespace starawt = ::com::sun::star::awt;
- namespace starlang = ::com::sun::star::lang;
+ namespace staruno = ::com::sun::star::uno;
+ namespace starawt = ::com::sun::star::awt;
+ namespace starlang = ::com::sun::star::lang;
- typedef staruno::Reference< staruno::XInterface > InterfaceRef;
- typedef staruno::Sequence< ::rtl::OUString > StringSequence;
+ typedef staruno::Reference< staruno::XInterface > InterfaceRef;
+ typedef staruno::Sequence< ::rtl::OUString > StringSequence;
//-------------------------------------------------------------------------
/** compare the two given Anys
@@ -65,8 +65,8 @@ namespace comphelper
//-------------------------------------------------------------------------
/** compare two FontDescriptor's
*/
- COMPHELPER_DLLPUBLIC sal_Bool operator ==(const starawt::FontDescriptor& _rLeft, const starawt::FontDescriptor& _rRight);
- inline sal_Bool operator !=(const starawt::FontDescriptor& _rLeft, const starawt::FontDescriptor& _rRight)
+ COMPHELPER_DLLPUBLIC sal_Bool operator ==(const starawt::FontDescriptor& _rLeft, const starawt::FontDescriptor& _rRight);
+ inline sal_Bool operator !=(const starawt::FontDescriptor& _rLeft, const starawt::FontDescriptor& _rRight)
{
return !(_rLeft == _rRight);
}
@@ -138,11 +138,11 @@ namespace comphelper
//-------------------------------------------------------------------------
- /** get a com::sun::star::awt::FontDescriptor that is fully initialized with
+ /** get a com::sun::star::awt::FontDescriptor that is fully initialized with
the XXX_DONTKNOW enum values (which isn't the case if you instantiate it
via the default constructor)
*/
- COMPHELPER_DLLPUBLIC starawt::FontDescriptor getDefaultFont();
+ COMPHELPER_DLLPUBLIC starawt::FontDescriptor getDefaultFont();
/** examine a sequence for the <type scope="com.sun.star.uno">Type</type> of it's elements.
*/
@@ -156,14 +156,14 @@ namespace comphelper
// no, we don't use templates here. This would lead to a lot of implicit uses of the conversion methods,
// which would be difficult to trace ...
- COMPHELPER_DLLPUBLIC sal_Int32 getINT32(const staruno::Any& _rAny);
- COMPHELPER_DLLPUBLIC sal_Int16 getINT16(const staruno::Any& _rAny);
- COMPHELPER_DLLPUBLIC double getDouble(const staruno::Any& _rAny);
- COMPHELPER_DLLPUBLIC float getFloat(const staruno::Any& _rAny);
- COMPHELPER_DLLPUBLIC ::rtl::OUString getString(const staruno::Any& _rAny);
- COMPHELPER_DLLPUBLIC sal_Bool getBOOL(const staruno::Any& _rAny);
+ COMPHELPER_DLLPUBLIC sal_Int32 getINT32(const staruno::Any& _rAny);
+ COMPHELPER_DLLPUBLIC sal_Int16 getINT16(const staruno::Any& _rAny);
+ COMPHELPER_DLLPUBLIC double getDouble(const staruno::Any& _rAny);
+ COMPHELPER_DLLPUBLIC float getFloat(const staruno::Any& _rAny);
+ COMPHELPER_DLLPUBLIC ::rtl::OUString getString(const staruno::Any& _rAny);
+ COMPHELPER_DLLPUBLIC sal_Bool getBOOL(const staruno::Any& _rAny);
- COMPHELPER_DLLPUBLIC sal_Int32 getEnumAsINT32(const staruno::Any& _rAny) throw(starlang::IllegalArgumentException);
+ COMPHELPER_DLLPUBLIC sal_Int32 getEnumAsINT32(const staruno::Any& _rAny) throw(starlang::IllegalArgumentException);
//= replacement of some former UsrAny.setXXX methods - can be used with rvalues
inline void setBOOL(staruno::Any& _rAny, sal_Bool _b)
@@ -174,7 +174,7 @@ namespace comphelper
{ return staruno::Any(&_b, ::getBooleanCppuType()); }
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_TYPES_HXX_
diff --git a/comphelper/inc/comphelper/uieventslogger.hxx b/comphelper/inc/comphelper/uieventslogger.hxx
index 40e9a68ad1cf..6812a0f3f7b5 100644
--- a/comphelper/inc/comphelper/uieventslogger.hxx
+++ b/comphelper/inc/comphelper/uieventslogger.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/uno3.hxx b/comphelper/inc/comphelper/uno3.hxx
index 617c200d3fd5..8cd7e90c8b57 100644
--- a/comphelper/inc/comphelper/uno3.hxx
+++ b/comphelper/inc/comphelper/uno3.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,19 +51,19 @@ namespace comphelper
/** used for declaring UNO3-Defaults, i.e. acquire/release
*/
#define DECLARE_UNO3_DEFAULTS(classname, baseclass) \
- virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \
- virtual void SAL_CALL release() throw() { baseclass::release(); } \
- void SAL_CALL PUT_SEMICOLON_AT_THE_END()
+ virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \
+ virtual void SAL_CALL release() throw() { baseclass::release(); } \
+ void SAL_CALL PUT_SEMICOLON_AT_THE_END()
/** used for declaring UNO3-Defaults, i.e. acquire/release if you want to forward all queryInterfaces to the base class,
(e.g. if you overload queryAggregation)
*/
#define DECLARE_UNO3_AGG_DEFAULTS(classname, baseclass) \
- virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \
- virtual void SAL_CALL release() throw() { baseclass::release(); } \
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException) \
+ virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \
+ virtual void SAL_CALL release() throw() { baseclass::release(); } \
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException) \
{ return baseclass::queryInterface(_rType); } \
- void SAL_CALL PUT_SEMICOLON_AT_THE_END()
+ void SAL_CALL PUT_SEMICOLON_AT_THE_END()
/** Use this macro to forward XComponent methods to base class
@@ -88,23 +88,23 @@ namespace comphelper
that would be ::cppu::WeakComponentImplHelperBase
*/
#define DECLARE_UNO3_XCOMPONENT_DEFAULTS(classname, baseclass, implhelper) \
- virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \
- virtual void SAL_CALL release() throw() { baseclass::release(); } \
+ virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \
+ virtual void SAL_CALL release() throw() { baseclass::release(); } \
virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException) \
- { \
- implhelper::dispose(); \
- } \
- virtual void SAL_CALL addEventListener( \
+ { \
+ implhelper::dispose(); \
+ } \
+ virtual void SAL_CALL addEventListener( \
::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > const & xListener ) throw (::com::sun::star::uno::RuntimeException) \
- { \
- implhelper::addEventListener(xListener); \
- } \
- virtual void SAL_CALL removeEventListener( \
+ { \
+ implhelper::addEventListener(xListener); \
+ } \
+ virtual void SAL_CALL removeEventListener( \
::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > const & xListener ) throw (::com::sun::star::uno::RuntimeException) \
- { \
- implhelper::removeEventListener(xListener); \
- } \
- void SAL_CALL PUT_SEMICOLON_AT_THE_END()
+ { \
+ implhelper::removeEventListener(xListener); \
+ } \
+ void SAL_CALL PUT_SEMICOLON_AT_THE_END()
/** Use this macro to forward XComponent methods to base class
@@ -130,25 +130,25 @@ namespace comphelper
that would be ::cppu::WeakComponentImplHelperBase
*/
#define DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS(classname, baseclass, implhelper) \
- virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \
- virtual void SAL_CALL release() throw() { baseclass::release(); } \
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException) \
- { return baseclass::queryInterface(_rType); } \
+ virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \
+ virtual void SAL_CALL release() throw() { baseclass::release(); } \
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException) \
+ { return baseclass::queryInterface(_rType); } \
virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException) \
- { \
- implhelper::dispose(); \
- } \
- virtual void SAL_CALL addEventListener( \
+ { \
+ implhelper::dispose(); \
+ } \
+ virtual void SAL_CALL addEventListener( \
::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > const & xListener ) throw (::com::sun::star::uno::RuntimeException) \
- { \
- implhelper::addEventListener(xListener); \
- } \
- virtual void SAL_CALL removeEventListener( \
+ { \
+ implhelper::addEventListener(xListener); \
+ } \
+ virtual void SAL_CALL removeEventListener( \
::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > const & xListener ) throw (::com::sun::star::uno::RuntimeException) \
- { \
- implhelper::removeEventListener(xListener); \
- } \
- void SAL_CALL PUT_SEMICOLON_AT_THE_END()
+ { \
+ implhelper::removeEventListener(xListener); \
+ } \
+ void SAL_CALL PUT_SEMICOLON_AT_THE_END()
//=====================================================================
@@ -156,7 +156,7 @@ namespace comphelper
//=====================================================================
//= forwarding/merging XInterface funtionality
//=====================================================================
- #define DECLARE_XINTERFACE( ) \
+ #define DECLARE_XINTERFACE( ) \
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException); \
virtual void SAL_CALL acquire() throw(); \
virtual void SAL_CALL release() throw();
@@ -192,7 +192,7 @@ namespace comphelper
//=====================================================================
//= forwarding/merging XTypeProvider funtionality
//=====================================================================
- #define DECLARE_XTYPEPROVIDER( ) \
+ #define DECLARE_XTYPEPROVIDER( ) \
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException); \
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException);
@@ -211,7 +211,7 @@ namespace comphelper
} \
return pId->getImplementationId(); \
}
-
+
#define IMPLEMENT_FORWARD_XTYPEPROVIDER2( classname, baseclass1, baseclass2 ) \
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL classname::getTypes( ) throw (::com::sun::star::uno::RuntimeException) \
{ \
@@ -281,7 +281,7 @@ namespace comphelper
}
#define FORWARD_DECLARE_INTERFACE(NAME,XFACE) \
namespace com \
- { \
+ { \
namespace sun \
{\
namespace star \
@@ -296,7 +296,7 @@ namespace comphelper
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif // _COMPHELPER_UNO3_HXX_
diff --git a/comphelper/inc/comphelper/unwrapargs.hxx b/comphelper/inc/comphelper/unwrapargs.hxx
index 94dfb2263f2d..d0a9ba8abb0f 100644
--- a/comphelper/inc/comphelper/unwrapargs.hxx
+++ b/comphelper/inc/comphelper/unwrapargs.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -99,7 +99,7 @@ inline void extract(
BOOST_PP_CAT(T, n_) & BOOST_PP_CAT(v, n_)
/** The following preprocessor repetitions generate functions like
-
+
<pre>
template <typename T0, typename T1, ...>
inline void unwrapArgs(
@@ -110,7 +110,7 @@ inline void extract(
</pre>
(full namespace qualification ::com::sun::star has been omitted
for brevity)
-
+
which unwraps the passed sequence's elements, assigning them to the
referenced values. Specify optional arguments as boost::optional<T>.
If the length of the sequence is greater than the count of arguments,
@@ -118,8 +118,8 @@ inline void extract(
If too few arguments are given in the sequence and a missing argument is
no boost::optional<T>, then an lang::IllegalArgumentException is thrown
with the specified xErrorContext (defaults to null-ref).
-
- The maximum number of service declarations can be set by defining
+
+ The maximum number of service declarations can be set by defining
COMPHELPER_UNWRAPARGS_MAX_ARGS; its default is 12.
*/
#define COMPHELPER_UNWRAPARGS_make(z_, n_, unused_) \
diff --git a/comphelper/inc/comphelper/weak.hxx b/comphelper/inc/comphelper/weak.hxx
index 5f3f8b14432a..4cda2f7370a5 100644
--- a/comphelper/inc/comphelper/weak.hxx
+++ b/comphelper/inc/comphelper/weak.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
#include <cppuhelper/weak.hxx>
namespace comphelper
-{
+{
/** Base class to implement an UNO object supporting types and weak references, i.e. the object can be held
weakly (by a ::com::sun::star::uno::WeakReference).
This implementation copes with reference counting. Upon last release(), the virtual dtor
@@ -49,9 +49,9 @@ public:
OWeakTypeObject();
virtual ~OWeakTypeObject();
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL acquire() throw ();
- virtual void SAL_CALL release() throw ();
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type & rType ) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL acquire() throw ();
+ virtual void SAL_CALL release() throw ();
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException);
diff --git a/comphelper/inc/comphelper/weakbag.hxx b/comphelper/inc/comphelper/weakbag.hxx
index b1c443338e06..e24ebda06c8c 100644
--- a/comphelper/inc/comphelper/weakbag.hxx
+++ b/comphelper/inc/comphelper/weakbag.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/comphelper/weakeventlistener.hxx b/comphelper/inc/comphelper/weakeventlistener.hxx
index c4cc42bc4052..80705b374096 100644
--- a/comphelper/inc/comphelper/weakeventlistener.hxx
+++ b/comphelper/inc/comphelper/weakeventlistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,13 +83,13 @@ namespace comphelper
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XWeak >& _rxListener,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxBroadcaster
)
- :m_aListener ( _rxListener )
- ,m_xBroadcaster ( _rxBroadcaster )
+ :m_aListener ( _rxListener )
+ ,m_xBroadcaster ( _rxBroadcaster )
{
}
protected:
- virtual ~OWeakListenerAdapterBase();
+ virtual ~OWeakListenerAdapterBase();
};
@@ -120,9 +120,9 @@ namespace comphelper
);
protected:
- inline ::com::sun::star::uno::Reference< LISTENER > getListener( ) const
+ inline ::com::sun::star::uno::Reference< LISTENER > getListener( ) const
{
- return ::com::sun::star::uno::Reference< LISTENER >( OWeakListenerAdapterBase::getListener(), ::com::sun::star::uno::UNO_QUERY );
+ return ::com::sun::star::uno::Reference< LISTENER >( OWeakListenerAdapterBase::getListener(), ::com::sun::star::uno::UNO_QUERY );
}
// XEventListener overridables
@@ -137,10 +137,10 @@ namespace comphelper
//=====================================================================
//= OWeakEventListenerAdapter
//=====================================================================
- typedef OWeakListenerAdapter < ::com::sun::star::lang::XComponent
- , ::com::sun::star::lang::XEventListener
- > OWeakEventListenerAdapter_Base;
- /** the most simple listener adapter: for XEventListeners at XComponents
+ typedef OWeakListenerAdapter < ::com::sun::star::lang::XComponent
+ , ::com::sun::star::lang::XEventListener
+ > OWeakEventListenerAdapter_Base;
+ /** the most simple listener adapter: for XEventListeners at XComponents
*/
class COMPHELPER_DLLPUBLIC OWeakEventListenerAdapter : public OWeakEventListenerAdapter_Base
{
@@ -182,7 +182,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif// COMPHELPER_WEAKEVENTLISTENER_HXX
diff --git a/comphelper/inc/pch/precompiled_comphelper.cxx b/comphelper/inc/pch/precompiled_comphelper.cxx
index ad6e1ab9b5ac..a9d2cf08d8a7 100644
--- a/comphelper/inc/pch/precompiled_comphelper.cxx
+++ b/comphelper/inc/pch/precompiled_comphelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/inc/pch/precompiled_comphelper.hxx b/comphelper/inc/pch/precompiled_comphelper.hxx
index 7fcb7d048fe2..de062d4a6441 100644
--- a/comphelper/inc/pch/precompiled_comphelper.hxx
+++ b/comphelper/inc/pch/precompiled_comphelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/qa/complex/comphelper/Map.java b/comphelper/qa/complex/comphelper/Map.java
index deeffe6baf32..751c4a90317b 100644
--- a/comphelper/qa/complex/comphelper/Map.java
+++ b/comphelper/qa/complex/comphelper/Map.java
@@ -1,23 +1,23 @@
/*
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
- *
+ *
* OpenOffice.org - a multi-platform office productivity suite
- *
+ *
* This file is part of OpenOffice.org.
- *
+ *
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
- *
+ *
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
- *
+ *
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
@@ -292,7 +292,7 @@ public class Map extends complexlib.ComplexTestCase
public Type getElementType() { throw new UnsupportedOperationException( "Not implemented." ); }
public boolean hasElements() { throw new UnsupportedOperationException( "Not implemented." ); }
};
-
+
private class DummyContainer implements XContainer
{
public void addContainerListener( XContainerListener arg0 ) { throw new UnsupportedOperationException( "Not implemented." ); }
diff --git a/comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java b/comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java
index 26879a7c83ad..de95d209b4b8 100644
--- a/comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java
+++ b/comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,16 +34,16 @@ import com.sun.star.lang.XMultiServiceFactory;
public class SequenceOutputStreamUnitTest extends ComplexTestCase {
private XMultiServiceFactory m_xMSF = null;
-
+
public String[] getTestMethodNames() {
return new String[] {
"ExecuteTest01"};
}
-
+
public String getTestObjectName () {
return "SequenceOutputStreamUnitTest";
}
-
+
public static String getShortTestDescription() {
return "tests the SequenceOutput/InputStream implementations";
}
@@ -58,11 +58,11 @@ public class SequenceOutputStreamUnitTest extends ComplexTestCase {
failed ("Cannot create service factory!");
}
}
-
+
public void after() {
m_xMSF = null;
}
-
+
public void ExecuteTest01() {
Test01 aTest = new Test01 (m_xMSF, log);
assure ( "Test01 failed!", aTest.test() );
diff --git a/comphelper/qa/complex/comphelper/Test01.java b/comphelper/qa/complex/comphelper/Test01.java
index 6900b738aeba..14738844eafa 100644
--- a/comphelper/qa/complex/comphelper/Test01.java
+++ b/comphelper/qa/complex/comphelper/Test01.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,26 +37,26 @@ import share.LogWriter;
public class Test01 {
XMultiServiceFactory m_xMSF = null;
TestHelper m_aTestHelper = null;
-
+
public Test01 ( XMultiServiceFactory xMSF, LogWriter aLogWriter )
{
m_xMSF = xMSF;
m_aTestHelper = new TestHelper (aLogWriter, "Test01: ");
}
-
+
public boolean test () {
try {
final int nBytesCnt = 20;
-
+
//create SequenceOutputStream
- Object oSequenceOutputStream = m_xMSF.createInstance (
+ Object oSequenceOutputStream = m_xMSF.createInstance (
"com.sun.star.io.SequenceOutputStream" );
- XSequenceOutputStream xSeqOutStream =
- (XSequenceOutputStream) UnoRuntime.queryInterface (
+ XSequenceOutputStream xSeqOutStream =
+ (XSequenceOutputStream) UnoRuntime.queryInterface (
XSequenceOutputStream.class, oSequenceOutputStream );
m_aTestHelper.Message ( "SequenceOutputStream created." );
-
+
//write something to the stream
byte pBytesOriginal[] = new byte [nBytesCnt];
Random oRandom = new Random();
@@ -64,27 +64,27 @@ public class Test01 {
xSeqOutStream.writeBytes (pBytesOriginal);
byte pBytesWritten[] = xSeqOutStream.getWrittenBytes ();
m_aTestHelper.Message ( "SeuenceOutputStream filled." );
-
+
//create SequenceInputstream
Object pArgs[] = new Object[1];
pArgs[0] = pBytesWritten;
Object oSequenceInputStream = m_xMSF.createInstanceWithArguments (
"com.sun.star.io.SequenceInputStream", pArgs );
- XSeekableInputStream xSeekableInStream =
- (XSeekableInputStream)UnoRuntime.queryInterface (
+ XSeekableInputStream xSeekableInStream =
+ (XSeekableInputStream)UnoRuntime.queryInterface (
XSeekableInputStream.class, oSequenceInputStream );
m_aTestHelper.Message ( "SequenceInputStream created." );
-
+
//read from the stream
byte pBytesRead[][] = new byte [1][nBytesCnt];
xSeekableInStream.readBytes ( pBytesRead, pBytesRead[0].length + 1 );
m_aTestHelper.Message ( "Read from SequenceInputStream." );
-
+
//close the streams
xSeqOutStream.closeOutput ();
xSeekableInStream.closeInput ();
m_aTestHelper.Message ( "Both streams closed." );
-
+
//compare the original, written and read arrys
for ( int i = 0; i < nBytesCnt; ++i ) {
if ( pBytesOriginal[i] != pBytesWritten[i] ) {
diff --git a/comphelper/qa/complex/comphelper/TestHelper.java b/comphelper/qa/complex/comphelper/TestHelper.java
index 0a6989e95271..8a685e9ca4f2 100644
--- a/comphelper/qa/complex/comphelper/TestHelper.java
+++ b/comphelper/qa/complex/comphelper/TestHelper.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,17 +31,17 @@ import share.LogWriter;
public class TestHelper {
LogWriter m_aLogWriter;
String m_sTestPrefix;
-
+
/** Creates a new instance of TestHelper */
public TestHelper ( LogWriter aLogWriter, String sTestPrefix ) {
m_aLogWriter = aLogWriter;
m_sTestPrefix = sTestPrefix;
}
-
+
public void Error ( String sError ) {
m_aLogWriter.println ( m_sTestPrefix + "Error: " + sError );
}
-
+
public void Message ( String sMessage ) {
m_aLogWriter.println ( m_sTestPrefix + sMessage );
}
diff --git a/comphelper/qa/test_string.cxx b/comphelper/qa/test_string.cxx
index 9e355a5c9528..7b997e6d1396 100644
--- a/comphelper/qa/test_string.cxx
+++ b/comphelper/qa/test_string.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/qa/test_weakbag.cxx b/comphelper/qa/test_weakbag.cxx
index 9c60f11dd925..acb6e567a37c 100644
--- a/comphelper/qa/test_weakbag.cxx
+++ b/comphelper/qa/test_weakbag.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/qa/version.map b/comphelper/qa/version.map
index 7321bbca16ad..f313c44bd7ad 100644
--- a/comphelper/qa/version.map
+++ b/comphelper/qa/version.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/compare/AnyCompareFactory.cxx b/comphelper/source/compare/AnyCompareFactory.cxx
index 04152c8156cf..e1e77e7b26dc 100644
--- a/comphelper/source/compare/AnyCompareFactory.cxx
+++ b/comphelper/source/compare/AnyCompareFactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,9 +80,9 @@ public:
class AnyCompareFactory : public cppu::WeakImplHelper3< XAnyCompareFactory, XInitialization, XServiceInfo >
{
- Reference< XAnyCompare > m_rAnyCompare;
+ Reference< XAnyCompare > m_rAnyCompare;
Reference< XComponentContext > m_rContext;
- Locale m_Locale;
+ Locale m_Locale;
public:
AnyCompareFactory( Reference< XComponentContext > xContext ) : m_rContext( xContext )
diff --git a/comphelper/source/container/IndexedPropertyValuesContainer.cxx b/comphelper/source/container/IndexedPropertyValuesContainer.cxx
index d5a7129911b0..9cf477ce39b3 100644
--- a/comphelper/source/container/IndexedPropertyValuesContainer.cxx
+++ b/comphelper/source/container/IndexedPropertyValuesContainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/container/NamedPropertyValuesContainer.cxx b/comphelper/source/container/NamedPropertyValuesContainer.cxx
index 329e6211c6ea..4a89d2257f42 100644
--- a/comphelper/source/container/NamedPropertyValuesContainer.cxx
+++ b/comphelper/source/container/NamedPropertyValuesContainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx
index ef99066c4bf5..396783c4027b 100644
--- a/comphelper/source/container/container.cxx
+++ b/comphelper/source/container/container.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ IndexAccessIterator::~IndexAccessIterator() {}
// zuerst absteigen, wenn moeglich
::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess> xContainerAccess(xSearchLoop, ::com::sun::star::uno::UNO_QUERY);
if (xContainerAccess.is() && xContainerAccess->getCount() && ShouldStepInto(xContainerAccess))
- { // zum ersten Child
+ { // zum ersten Child
::com::sun::star::uno::Any aElement(xContainerAccess->getByIndex(0));
xSearchLoop = *(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>*)aElement.getValue();
bCheckingStartingPoint = sal_False;
@@ -86,7 +86,7 @@ IndexAccessIterator::~IndexAccessIterator() {}
{
// dann nach oben und nach rechts, wenn moeglich
while (m_arrChildIndizies.size() > 0)
- { // (mein Stack ist nich leer, also kann ich noch nach oben gehen)
+ { // (mein Stack ist nich leer, also kann ich noch nach oben gehen)
::com::sun::star::uno::Reference< ::com::sun::star::container::XChild> xChild(xSearchLoop, ::com::sun::star::uno::UNO_QUERY);
OSL_ENSURE(xChild.is(), "IndexAccessIterator::Next : a content has no approriate interface !");
@@ -99,7 +99,7 @@ IndexAccessIterator::~IndexAccessIterator() {}
m_arrChildIndizies.pop_back();
if (nOldSearchChildIndex < xContainerAccess->getCount() - 1)
- { // auf dieser Ebene geht es noch nach rechts
+ { // auf dieser Ebene geht es noch nach rechts
++nOldSearchChildIndex;
// also das naechste Child
::com::sun::star::uno::Any aElement(xContainerAccess->getByIndex(nOldSearchChildIndex));
@@ -116,14 +116,14 @@ IndexAccessIterator::~IndexAccessIterator() {}
}
if ((m_arrChildIndizies.size() == 0) && !bCheckingStartingPoint)
- { // das ist genau dann der Fall, wenn ich keinen rechten Nachbarn fuer irgendeinen der direkten Vorfahren des
+ { // das ist genau dann der Fall, wenn ich keinen rechten Nachbarn fuer irgendeinen der direkten Vorfahren des
// urspruenglichen xSearchLoop gefunden habe
bHasMoreToSearch = sal_False;
}
}
if (bHasMoreToSearch)
- { // ich habe in xSearchLoop jetzt ein Interface eines 'Knotens' meines 'Baumes', den ich noch abtesten kann
+ { // ich habe in xSearchLoop jetzt ein Interface eines 'Knotens' meines 'Baumes', den ich noch abtesten kann
if (ShouldHandleElement(xSearchLoop))
{
m_xCurrentObject = xSearchLoop;
@@ -148,7 +148,7 @@ IndexAccessIterator::~IndexAccessIterator() {}
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/container/containermultiplexer.cxx b/comphelper/source/container/containermultiplexer.cxx
index 80940a9bd048..197142f6c92b 100644
--- a/comphelper/source/container/containermultiplexer.cxx
+++ b/comphelper/source/container/containermultiplexer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -199,7 +199,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx
index ff5f89f22b51..8110af33857b 100644
--- a/comphelper/source/container/embeddedobjectcontainer.cxx
+++ b/comphelper/source/container/embeddedobjectcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -335,7 +335,7 @@ uno::Reference < embed::XEmbeddedObject > EmbeddedObjectContainer::GetEmbeddedOb
uno::Reference < container::XNameAccess > xAccess( pImpl->mxStorage, uno::UNO_QUERY );
uno::Sequence< ::rtl::OUString> aSeq = xAccess->getElementNames();
const ::rtl::OUString* pIter = aSeq.getConstArray();
- const ::rtl::OUString* pEnd = pIter + aSeq.getLength();
+ const ::rtl::OUString* pEnd = pIter + aSeq.getLength();
for(;pIter != pEnd;++pIter)
{
(void)*pIter;
@@ -1378,7 +1378,7 @@ sal_Bool EmbeddedObjectContainer::StoreAsChildren(sal_Bool _bOasisFormat,sal_Boo
comphelper::EmbeddedObjectContainer aCnt( _xStorage );
const uno::Sequence < ::rtl::OUString > aNames = GetObjectNames();
const ::rtl::OUString* pIter = aNames.getConstArray();
- const ::rtl::OUString* pEnd = pIter + aNames.getLength();
+ const ::rtl::OUString* pEnd = pIter + aNames.getLength();
for(;pIter != pEnd;++pIter)
{
uno::Reference < embed::XEmbeddedObject > xObj = GetEmbeddedObject( *pIter );
@@ -1493,7 +1493,7 @@ sal_Bool EmbeddedObjectContainer::StoreChildren(sal_Bool _bOasisFormat,sal_Bool
sal_Bool bResult = sal_True;
const uno::Sequence < ::rtl::OUString > aNames = GetObjectNames();
const ::rtl::OUString* pIter = aNames.getConstArray();
- const ::rtl::OUString* pEnd = pIter + aNames.getLength();
+ const ::rtl::OUString* pEnd = pIter + aNames.getLength();
for(;pIter != pEnd;++pIter)
{
uno::Reference < embed::XEmbeddedObject > xObj = GetEmbeddedObject( *pIter );
@@ -1618,7 +1618,7 @@ sal_Bool EmbeddedObjectContainer::SetPersistentEntries(const uno::Reference< emb
sal_Bool bError = sal_False;
const uno::Sequence < ::rtl::OUString > aNames = GetObjectNames();
const ::rtl::OUString* pIter = aNames.getConstArray();
- const ::rtl::OUString* pEnd = pIter + aNames.getLength();
+ const ::rtl::OUString* pEnd = pIter + aNames.getLength();
for(;pIter != pEnd;++pIter)
{
uno::Reference < embed::XEmbeddedObject > xObj = GetEmbeddedObject( *pIter );
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx
index b3864d9b8c06..b88c97a580a4 100644
--- a/comphelper/source/container/enumerablemap.cxx
+++ b/comphelper/source/container/enumerablemap.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -467,7 +467,7 @@ namespace comphelper
,public MapEnumeration_Base
{
public:
- MapEnumeration( ::cppu::OWeakObject& _parentMap, MapData& _mapData, ::cppu::OBroadcastHelper& _rBHelper,
+ MapEnumeration( ::cppu::OWeakObject& _parentMap, MapData& _mapData, ::cppu::OBroadcastHelper& _rBHelper,
const EnumerationType _type, const bool _isolated )
:ComponentBase( _rBHelper, ComponentBase::NoInitializationNeeded() )
,m_xKeepMapAlive( _parentMap )
@@ -756,14 +756,14 @@ namespace comphelper
ComponentMethodGuard aGuard( *this );
return new MapEnumeration( *this, m_aData, getBroadcastHelper(), eKeys, _Isolated );
}
-
+
//--------------------------------------------------------------------
Reference< XEnumeration > SAL_CALL EnumerableMap::createValueEnumeration( ::sal_Bool _Isolated ) throw (NoSupportException, RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return new MapEnumeration( *this, m_aData, getBroadcastHelper(), eValues, _Isolated );
}
-
+
//--------------------------------------------------------------------
Reference< XEnumeration > SAL_CALL EnumerableMap::createElementEnumeration( ::sal_Bool _Isolated ) throw (NoSupportException, RuntimeException)
{
@@ -777,14 +777,14 @@ namespace comphelper
ComponentMethodGuard aGuard( *this );
return m_aData.m_aKeyType;
}
-
+
//--------------------------------------------------------------------
Type SAL_CALL EnumerableMap::getValueType() throw (RuntimeException)
{
ComponentMethodGuard aGuard( *this );
return m_aData.m_aValueType;
}
-
+
//--------------------------------------------------------------------
void SAL_CALL EnumerableMap::clear( ) throw (NoSupportException, RuntimeException)
{
@@ -795,7 +795,7 @@ namespace comphelper
lcl_notifyMapDataListeners_nothrow( m_aData );
}
-
+
//--------------------------------------------------------------------
::sal_Bool SAL_CALL EnumerableMap::containsKey( const Any& _key ) throw (IllegalTypeException, IllegalArgumentException, RuntimeException)
{
@@ -805,7 +805,7 @@ namespace comphelper
KeyedValues::const_iterator pos = m_aData.m_pValues->find( _key );
return ( pos != m_aData.m_pValues->end() );
}
-
+
//--------------------------------------------------------------------
::sal_Bool SAL_CALL EnumerableMap::containsValue( const Any& _value ) throw (IllegalTypeException, IllegalArgumentException, RuntimeException)
{
@@ -822,7 +822,7 @@ namespace comphelper
}
return sal_False;
}
-
+
//--------------------------------------------------------------------
Any SAL_CALL EnumerableMap::get( const Any& _key ) throw (IllegalTypeException, IllegalArgumentException, NoSuchElementException, RuntimeException)
{
@@ -835,7 +835,7 @@ namespace comphelper
return pos->second;
}
-
+
//--------------------------------------------------------------------
Any SAL_CALL EnumerableMap::put( const Any& _key, const Any& _value ) throw (NoSupportException, IllegalTypeException, IllegalArgumentException, RuntimeException)
{
@@ -861,7 +861,7 @@ namespace comphelper
return previousValue;
}
-
+
//--------------------------------------------------------------------
Any SAL_CALL EnumerableMap::remove( const Any& _key ) throw (NoSupportException, IllegalTypeException, IllegalArgumentException, NoSuchElementException, RuntimeException)
{
@@ -983,7 +983,7 @@ namespace comphelper
ComponentMethodGuard aGuard( *this );
return m_aEnumerator.hasMoreElements();
}
-
+
//--------------------------------------------------------------------
Any SAL_CALL MapEnumeration::nextElement( ) throw (NoSuchElementException, WrappedTargetException, RuntimeException)
{
diff --git a/comphelper/source/container/enumhelper.cxx b/comphelper/source/container/enumhelper.cxx
index e688c50ab4a6..da48f34f26aa 100644
--- a/comphelper/source/container/enumhelper.cxx
+++ b/comphelper/source/container/enumhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -99,7 +99,7 @@ staruno::Any SAL_CALL OEnumerationByName::nextElement( )
m_xAccess.clear();
}
- if (!aRes.hasValue()) // es gibt kein Element mehr
+ if (!aRes.hasValue()) // es gibt kein Element mehr
throw starcontainer::NoSuchElementException();
return aRes;
@@ -203,7 +203,7 @@ staruno::Any SAL_CALL OEnumerationByIndex::nextElement( )
}
}
- if (!aRes.hasValue()) // es gibt kein Element mehr
+ if (!aRes.hasValue()) // es gibt kein Element mehr
throw starcontainer::NoSuchElementException();
return aRes;
}
@@ -284,7 +284,7 @@ staruno::Any SAL_CALL OAnyEnumeration::nextElement( )
{
if ( ! hasMoreElements())
throw starcontainer::NoSuchElementException();
-
+
::osl::ResettableMutexGuard aLock(m_aLock);
sal_Int32 nPos = m_nPos;
++m_nPos;
@@ -292,7 +292,7 @@ staruno::Any SAL_CALL OAnyEnumeration::nextElement( )
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/container/namecontainer.cxx b/comphelper/source/container/namecontainer.cxx
index 48864d779326..f890387e3329 100644
--- a/comphelper/source/container/namecontainer.cxx
+++ b/comphelper/source/container/namecontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx
index 0e37c7a02e5e..7cae931ba161 100644
--- a/comphelper/source/eventattachermgr/eventattachermgr.cxx
+++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx
@@ -73,9 +73,9 @@ namespace comphelper
//-----------------------------------------------------------------------------
struct AttachedObject_Impl
{
- Reference< XInterface > xTarget;
+ Reference< XInterface > xTarget;
Sequence< Reference< XEventListener > > aAttachedListenerSeq;
- Any aHelper;
+ Any aHelper;
bool operator<( const AttachedObject_Impl & ) const;
bool operator==( const AttachedObject_Impl & ) const;
@@ -102,14 +102,14 @@ class ImplEventAttacherManager
::std::deque< AttacherIndex_Impl > aIndex;
Mutex aLock;
// Container fuer die ScriptListener
- OInterfaceContainerHelper aScriptListeners;
+ OInterfaceContainerHelper aScriptListeners;
// EventAttacher-Instanz
- Reference< XEventAttacher > xAttacher;
- Reference< XMultiServiceFactory > mxSMgr;
- Reference< XIdlReflection > mxCoreReflection;
- Reference< XIntrospection > mxIntrospection;
- Reference< XTypeConverter > xConverter;
- sal_Int16 nVersion;
+ Reference< XEventAttacher > xAttacher;
+ Reference< XMultiServiceFactory > mxSMgr;
+ Reference< XIdlReflection > mxCoreReflection;
+ Reference< XIntrospection > mxIntrospection;
+ Reference< XTypeConverter > xConverter;
+ sal_Int16 nVersion;
public:
ImplEventAttacherManager( const Reference< XIntrospection > & rIntrospection,
const Reference< XMultiServiceFactory > rSMgr );
@@ -145,7 +145,7 @@ public:
virtual void SAL_CALL read(const Reference< XObjectInputStream >& InStream) throw( IOException, RuntimeException );
private:
- Reference< XIdlReflection > getReflection() throw( Exception );
+ Reference< XIdlReflection > getReflection() throw( Exception );
/** checks if <arg>_nIndex</arg> is a valid index, throws an <type>IllegalArgumentException</type> if not
@param _nIndex
@@ -164,11 +164,11 @@ private:
// nur einzelne Events an einen allgemeinen AllListener weiterleitet
class AttacherAllListener_Impl : public WeakImplHelper1< XAllListener >
{
- ImplEventAttacherManager* mpManager;
+ ImplEventAttacherManager* mpManager;
Reference< XEventAttacherManager > xManager;
- OUString aScriptType;
- OUString aScriptCode;
- sal_Int16 nVersion;
+ OUString aScriptType;
+ OUString aScriptCode;
+ sal_Int16 nVersion;
void convertToEventReturn( Any & rRet, const Type & rRetType )
throw( CannotConvertException );
@@ -247,10 +247,10 @@ void AttacherAllListener_Impl::convertToEventReturn( Any & rRet, const Type & rR
case TypeClass_FLOAT: rRet <<= float(0); break;
case TypeClass_DOUBLE: rRet <<= double(0.0); break;
case TypeClass_BYTE: rRet <<= sal_uInt8(0); break;
- case TypeClass_SHORT: rRet <<= sal_Int16( 0 ); break;
- case TypeClass_LONG: rRet <<= sal_Int32( 0 ); break;
- case TypeClass_UNSIGNED_SHORT: rRet <<= sal_uInt16( 0 ); break;
- case TypeClass_UNSIGNED_LONG: rRet <<= sal_uInt32( 0 ); break;
+ case TypeClass_SHORT: rRet <<= sal_Int16( 0 ); break;
+ case TypeClass_LONG: rRet <<= sal_Int32( 0 ); break;
+ case TypeClass_UNSIGNED_SHORT: rRet <<= sal_uInt16( 0 ); break;
+ case TypeClass_UNSIGNED_LONG: rRet <<= sal_uInt32( 0 ); break;
default:
OSL_ASSERT(false);
@@ -323,13 +323,13 @@ Any SAL_CALL AttacherAllListener_Impl::approveFiring( const AllEventObject& Even
break;
// none zero number -> return
- case TypeClass_FLOAT: if( *((float*)aRet.getValue()) ) return aRet; break;
- case TypeClass_DOUBLE: if( *((double*)aRet.getValue()) ) return aRet; break;
- case TypeClass_BYTE: if( *((sal_uInt8*)aRet.getValue()) ) return aRet; break;
- case TypeClass_SHORT: if( *((sal_Int16*)aRet.getValue()) ) return aRet; break;
- case TypeClass_LONG: if( *((sal_Int32*)aRet.getValue()) ) return aRet; break;
- case TypeClass_UNSIGNED_SHORT: if( *((sal_uInt16*)aRet.getValue()) ) return aRet; break;
- case TypeClass_UNSIGNED_LONG: if( *((sal_uInt32*)aRet.getValue()) ) return aRet; break;
+ case TypeClass_FLOAT: if( *((float*)aRet.getValue()) ) return aRet; break;
+ case TypeClass_DOUBLE: if( *((double*)aRet.getValue()) ) return aRet; break;
+ case TypeClass_BYTE: if( *((sal_uInt8*)aRet.getValue()) ) return aRet; break;
+ case TypeClass_SHORT: if( *((sal_Int16*)aRet.getValue()) ) return aRet; break;
+ case TypeClass_LONG: if( *((sal_Int32*)aRet.getValue()) ) return aRet; break;
+ case TypeClass_UNSIGNED_SHORT: if( *((sal_uInt16*)aRet.getValue()) ) return aRet; break;
+ case TypeClass_UNSIGNED_LONG: if( *((sal_uInt32*)aRet.getValue()) ) return aRet; break;
default:
OSL_ASSERT(false);
@@ -610,12 +610,12 @@ void SAL_CALL ImplEventAttacherManager::revokeScriptEvent
Sequence< ScriptEventDescriptor >& rEventList = (*aIt).aEventList;
ScriptEventDescriptor* pEventList = rEventList.getArray();
- const ScriptEventDescriptor* pEventListEnd = pEventList + rEventList.getLength();
+ const ScriptEventDescriptor* pEventListEnd = pEventList + rEventList.getLength();
for( ; pEventList < pEventListEnd; ++pEventList )
{
- if ( (aLstType == pEventList->ListenerType )
- && (EventMethod == pEventList->EventMethod )
- && (ToRemoveListenerParam == pEventList->AddListenerParam)
+ if ( (aLstType == pEventList->ListenerType )
+ && (EventMethod == pEventList->EventMethod )
+ && (ToRemoveListenerParam == pEventList->AddListenerParam)
)
{
ScriptEventDescriptor* pMoveTo = pEventList;
diff --git a/comphelper/source/inc/comphelper_module.hxx b/comphelper/source/inc/comphelper_module.hxx
index 9f8e32656715..e33868216139 100644
--- a/comphelper/source/inc/comphelper_module.hxx
+++ b/comphelper/source/inc/comphelper_module.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/SelectionMultiplex.cxx b/comphelper/source/misc/SelectionMultiplex.cxx
index 8ec3158c6789..82d6eb351af5 100644
--- a/comphelper/source/misc/SelectionMultiplex.cxx
+++ b/comphelper/source/misc/SelectionMultiplex.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -151,7 +151,7 @@ void SAL_CALL OSelectionChangeMultiplexer::disposing( const EventObject& _rSour
if (!locked())
m_pListener->_disposing(_rSource);
// disconnect the listener
- if (m_pListener) // may have been reset whilest calling into _disposing
+ if (m_pListener) // may have been reset whilest calling into _disposing
m_pListener->setAdapter(NULL);
}
diff --git a/comphelper/source/misc/accessiblecomponenthelper.cxx b/comphelper/source/misc/accessiblecomponenthelper.cxx
index 8b6ebde6cc1c..03991ddfc424 100644
--- a/comphelper/source/misc/accessiblecomponenthelper.cxx
+++ b/comphelper/source/misc/accessiblecomponenthelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,10 +67,10 @@ namespace comphelper
{
OExternalLockGuard aGuard( this );
Rectangle aBounds( implGetBounds() );
- return ( _rPoint.X >= 0 )
- && ( _rPoint.Y >= 0 )
- && ( _rPoint.X < aBounds.Width )
- && ( _rPoint.Y < aBounds.Height );
+ return ( _rPoint.X >= 0 )
+ && ( _rPoint.Y >= 0 )
+ && ( _rPoint.X < aBounds.Width )
+ && ( _rPoint.Y < aBounds.Height );
}
//--------------------------------------------------------------------
@@ -216,7 +216,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/misc/accessiblecontexthelper.cxx b/comphelper/source/misc/accessiblecontexthelper.cxx
index 5dcda7148275..40baf72e69a9 100644
--- a/comphelper/source/misc/accessiblecontexthelper.cxx
+++ b/comphelper/source/misc/accessiblecontexthelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,24 +53,24 @@ namespace comphelper
class OContextHelper_Impl
{
private:
- OAccessibleContextHelper* m_pAntiImpl; // the owning instance
- IMutex* m_pExternalLock; // the optional additional external lock
+ OAccessibleContextHelper* m_pAntiImpl; // the owning instance
+ IMutex* m_pExternalLock; // the optional additional external lock
- ::cppu::OInterfaceContainerHelper* m_pEventListeners;
- WeakReference< XAccessible > m_aCreator; // the XAccessible which created our XAccessibleContext
+ ::cppu::OInterfaceContainerHelper* m_pEventListeners;
+ WeakReference< XAccessible > m_aCreator; // the XAccessible which created our XAccessibleContext
- AccessibleEventNotifier::TClientId m_nClientId;
+ AccessibleEventNotifier::TClientId m_nClientId;
public:
- inline Reference< XAccessible > getCreator( ) const { return m_aCreator; }
- inline void setCreator( const Reference< XAccessible >& _rAcc );
+ inline Reference< XAccessible > getCreator( ) const { return m_aCreator; }
+ inline void setCreator( const Reference< XAccessible >& _rAcc );
- inline IMutex* getExternalLock( ) { return m_pExternalLock; }
- inline void setExternalLock( IMutex* _pLock ) { m_pExternalLock = _pLock; }
+ inline IMutex* getExternalLock( ) { return m_pExternalLock; }
+ inline void setExternalLock( IMutex* _pLock ) { m_pExternalLock = _pLock; }
- inline AccessibleEventNotifier::TClientId
- getClientId() const { return m_nClientId; }
- inline void setClientId( const AccessibleEventNotifier::TClientId _nId )
+ inline AccessibleEventNotifier::TClientId
+ getClientId() const { return m_nClientId; }
+ inline void setClientId( const AccessibleEventNotifier::TClientId _nId )
{ m_nClientId = _nId; }
public:
@@ -84,7 +84,7 @@ namespace comphelper
};
//---------------------------------------------------------------------
- inline void OContextHelper_Impl::setCreator( const Reference< XAccessible >& _rAcc )
+ inline void OContextHelper_Impl::setCreator( const Reference< XAccessible >& _rAcc )
{
m_aCreator = _rAcc;
}
@@ -289,7 +289,7 @@ namespace comphelper
try
{
-
+
Reference< XAccessibleContext > xParentContext( implGetParentContext() );
// iterate over parent's children and search for this object
@@ -302,7 +302,7 @@ namespace comphelper
// two ideas why this could be NULL:
// * nobody called our late ctor (init), so we never had a creator at all -> bad
// * the creator is already dead. In this case, we should have been disposed, and
- // never survived the above OContextEntryGuard.
+ // never survived the above OContextEntryGuard.
// in all other situations the creator should be non-NULL
if ( xCreator.is() )
@@ -351,7 +351,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/misc/accessibleeventbuffer.cxx b/comphelper/source/misc/accessibleeventbuffer.cxx
index 4137f91853f7..de3a4a736c55 100644
--- a/comphelper/source/misc/accessibleeventbuffer.cxx
+++ b/comphelper/source/misc/accessibleeventbuffer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/accessibleeventnotifier.cxx b/comphelper/source/misc/accessibleeventnotifier.cxx
index f03b1e78485a..1e8607e73ebf 100644
--- a/comphelper/source/misc/accessibleeventnotifier.cxx
+++ b/comphelper/source/misc/accessibleeventnotifier.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,12 +42,12 @@ using namespace ::comphelper;
//= AccessibleEventNotifier
//=====================================================================
//---------------------------------------------------------------------
-namespace
+namespace
{
- struct lclMutex
+ struct lclMutex
: public rtl::Static< ::osl::Mutex, lclMutex > {};
- struct Clients
- : public rtl::Static< AccessibleEventNotifier::ClientMap, Clients > {};
+ struct Clients
+ : public rtl::Static< AccessibleEventNotifier::ClientMap, Clients > {};
}
//.........................................................................
@@ -66,7 +66,7 @@ namespace comphelper
// Note that the following relies on the fact the elements in the map are traveled with
// ascending keys (aka client ids)
AccessibleEventNotifier::ClientMap &rClients = Clients::get();
- for ( ClientMap::const_iterator aLookup = rClients.begin();
+ for ( ClientMap::const_iterator aLookup = rClients.begin();
aLookup != rClients.end();
++aLookup
)
@@ -75,7 +75,7 @@ namespace comphelper
OSL_ENSURE( nCurrent > nBiggestUsedId, "AccessibleEventNotifier::generateId: map is expected to be sorted ascending!" );
if ( nCurrent - nBiggestUsedId > 1 )
- { // found a "gap"
+ { // found a "gap"
nFreeId = nBiggestUsedId + 1;
break;
}
@@ -255,7 +255,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/accessiblekeybindinghelper.cxx b/comphelper/source/misc/accessiblekeybindinghelper.cxx
index ee98678f0b70..07e1e11949cb 100644
--- a/comphelper/source/misc/accessiblekeybindinghelper.cxx
+++ b/comphelper/source/misc/accessiblekeybindinghelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ namespace comphelper
}
// -----------------------------------------------------------------------------
-
+
OAccessibleKeyBindingHelper::OAccessibleKeyBindingHelper( const OAccessibleKeyBindingHelper& rHelper )
: cppu::WeakImplHelper1<XAccessibleKeyBinding>( rHelper )
, m_aKeyBindings( rHelper.m_aKeyBindings )
@@ -111,7 +111,7 @@ namespace comphelper
// -----------------------------------------------------------------------------
//..............................................................................
-} // namespace comphelper
+} // namespace comphelper
//..............................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/accessibleselectionhelper.cxx b/comphelper/source/misc/accessibleselectionhelper.cxx
index e6aeac52eac4..88d0c35159b7 100644
--- a/comphelper/source/misc/accessibleselectionhelper.cxx
+++ b/comphelper/source/misc/accessibleselectionhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -188,7 +188,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx
index d344192e7b46..6edc3df43020 100644
--- a/comphelper/source/misc/accessibletexthelper.cxx
+++ b/comphelper/source/misc/accessibletexthelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -166,7 +166,7 @@ namespace comphelper
rBoundary = xBreakIter->getWordBoundary( sText, nIndex, implGetLocale(), i18n::WordType::ANY_WORD, sal_True );
// it's a word, if the first character is an alpha-numeric character
- Reference< i18n::XCharacterClassification > xCharClass = implGetCharacterClassification();
+ Reference< i18n::XCharacterClassification > xCharClass = implGetCharacterClassification();
if ( xCharClass.is() )
{
sal_Int32 nType = xCharClass->getCharacterType( sText, rBoundary.startPos, implGetLocale() );
@@ -193,7 +193,7 @@ namespace comphelper
if ( implIsValidIndex( nIndex, sText.getLength() ) )
{
Locale aLocale = implGetLocale();
- Reference < i18n::XBreakIterator > xBreakIter = implGetBreakIterator();
+ Reference < i18n::XBreakIterator > xBreakIter = implGetBreakIterator();
if ( xBreakIter.is() )
{
rBoundary.endPos = xBreakIter->endOfSentence( sText, nIndex, aLocale );
@@ -241,7 +241,7 @@ namespace comphelper
sal_Int32 nLength = sText.getLength();
if ( implIsValidIndex( nIndex, nLength ) || nIndex == nLength )
- {
+ {
rBoundary.startPos = 0;
rBoundary.endPos = nLength;
}
@@ -378,7 +378,7 @@ namespace comphelper
}
break;
case AccessibleTextType::WORD:
- {
+ {
// get word at index
sal_Bool bWord = implGetWordBoundary( aBoundary, nIndex );
if ( bWord && implIsValidBoundary( aBoundary, nLength ) )
@@ -609,7 +609,7 @@ namespace comphelper
aResult.SegmentStart = aBoundary.startPos;
aResult.SegmentEnd = aBoundary.endPos;
}
- }
+ }
}
break;
case AccessibleTextType::WORD:
@@ -699,37 +699,37 @@ namespace comphelper
// -----------------------------------------------------------------------------
bool OCommonAccessibleText::implInitTextChangedEvent(
- const rtl::OUString& rOldString,
- const rtl::OUString& rNewString,
+ const rtl::OUString& rOldString,
+ const rtl::OUString& rNewString,
::com::sun::star::uno::Any& rDeleted,
::com::sun::star::uno::Any& rInserted) // throw()
{
sal_uInt32 nLenOld = rOldString.getLength();
sal_uInt32 nLenNew = rNewString.getLength();
-
+
// equal
if ((0 == nLenOld) && (0 == nLenNew))
return false;
TextSegment aDeletedText;
- TextSegment aInsertedText;
-
+ TextSegment aInsertedText;
+
aDeletedText.SegmentStart = -1;
- aDeletedText.SegmentEnd = -1;
+ aDeletedText.SegmentEnd = -1;
aInsertedText.SegmentStart = -1;
aInsertedText.SegmentEnd = -1;
-
- // insert only
+
+ // insert only
if ((0 == nLenOld) && (nLenNew > 0))
{
aInsertedText.SegmentStart = 0;
aInsertedText.SegmentEnd = nLenNew;
aInsertedText.SegmentText = rNewString.copy( aInsertedText.SegmentStart, aInsertedText.SegmentEnd - aInsertedText.SegmentStart );
- rInserted <<= aInsertedText;
+ rInserted <<= aInsertedText;
return true;
}
-
+
// delete only
if ((nLenOld > 0) && (0 == nLenNew))
{
@@ -737,28 +737,28 @@ namespace comphelper
aDeletedText.SegmentEnd = nLenOld;
aDeletedText.SegmentText = rOldString.copy( aDeletedText.SegmentStart, aDeletedText.SegmentEnd - aDeletedText.SegmentStart );
- rDeleted <<= aDeletedText;
+ rDeleted <<= aDeletedText;
return true;
}
-
+
const sal_Unicode* pFirstDiffOld = rOldString.getStr();
- const sal_Unicode* pLastDiffOld = rOldString.getStr() + nLenOld;
+ const sal_Unicode* pLastDiffOld = rOldString.getStr() + nLenOld;
const sal_Unicode* pFirstDiffNew = rNewString.getStr();
const sal_Unicode* pLastDiffNew = rNewString.getStr() + nLenNew;
-
+
// find first difference
- while ((*pFirstDiffOld == *pFirstDiffNew) &&
- (pFirstDiffOld < pLastDiffOld) &&
+ while ((*pFirstDiffOld == *pFirstDiffNew) &&
+ (pFirstDiffOld < pLastDiffOld) &&
(pFirstDiffNew < pLastDiffNew))
{
pFirstDiffOld++;
- pFirstDiffNew++;
- }
-
+ pFirstDiffNew++;
+ }
+
// equality test
if ((0 == *pFirstDiffOld) && (0 == *pFirstDiffNew))
return false;
-
+
// find last difference
while ( ( pLastDiffOld > pFirstDiffOld) &&
( pLastDiffNew > pFirstDiffNew) &&
@@ -767,27 +767,27 @@ namespace comphelper
pLastDiffOld--;
pLastDiffNew--;
}
-
+
if (pFirstDiffOld < pLastDiffOld)
- {
- aDeletedText.SegmentStart = pFirstDiffOld - rOldString.getStr();
+ {
+ aDeletedText.SegmentStart = pFirstDiffOld - rOldString.getStr();
aDeletedText.SegmentEnd = pLastDiffOld - rOldString.getStr();
- aDeletedText.SegmentText = rOldString.copy( aDeletedText.SegmentStart, aDeletedText.SegmentEnd - aDeletedText.SegmentStart );
-
+ aDeletedText.SegmentText = rOldString.copy( aDeletedText.SegmentStart, aDeletedText.SegmentEnd - aDeletedText.SegmentStart );
+
rDeleted <<= aDeletedText;
}
-
+
if (pFirstDiffNew < pLastDiffNew)
{
aInsertedText.SegmentStart = pFirstDiffNew - rNewString.getStr();
aInsertedText.SegmentEnd = pLastDiffNew - rNewString.getStr();
aInsertedText.SegmentText = rNewString.copy( aInsertedText.SegmentStart, aInsertedText.SegmentEnd - aInsertedText.SegmentStart );
-
+
rInserted <<= aInsertedText;
}
return true;
}
-
+
//==============================================================================
// OAccessibleTextHelper
//==============================================================================
@@ -822,8 +822,8 @@ namespace comphelper
sal_Unicode OAccessibleTextHelper::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
-
- return OCommonAccessibleText::getCharacter( nIndex );
+
+ return OCommonAccessibleText::getCharacter( nIndex );
}
// -----------------------------------------------------------------------------
@@ -831,8 +831,8 @@ namespace comphelper
sal_Int32 OAccessibleTextHelper::getCharacterCount() throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
-
- return OCommonAccessibleText::getCharacterCount();
+
+ return OCommonAccessibleText::getCharacterCount();
}
// -----------------------------------------------------------------------------
@@ -840,8 +840,8 @@ namespace comphelper
::rtl::OUString OAccessibleTextHelper::getSelectedText() throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
-
- return OCommonAccessibleText::getSelectedText();
+
+ return OCommonAccessibleText::getSelectedText();
}
// -----------------------------------------------------------------------------
@@ -849,7 +849,7 @@ namespace comphelper
sal_Int32 OAccessibleTextHelper::getSelectionStart() throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
-
+
return OCommonAccessibleText::getSelectionStart();
}
@@ -858,8 +858,8 @@ namespace comphelper
sal_Int32 OAccessibleTextHelper::getSelectionEnd() throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
-
- return OCommonAccessibleText::getSelectionEnd();
+
+ return OCommonAccessibleText::getSelectionEnd();
}
// -----------------------------------------------------------------------------
@@ -867,7 +867,7 @@ namespace comphelper
::rtl::OUString OAccessibleTextHelper::getText() throw (RuntimeException)
{
OExternalLockGuard aGuard( this );
-
+
return OCommonAccessibleText::getText();
}
@@ -876,8 +876,8 @@ namespace comphelper
::rtl::OUString OAccessibleTextHelper::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
OExternalLockGuard aGuard( this );
-
- return OCommonAccessibleText::getTextRange( nStartIndex, nEndIndex );
+
+ return OCommonAccessibleText::getTextRange( nStartIndex, nEndIndex );
}
// -----------------------------------------------------------------------------
@@ -885,7 +885,7 @@ namespace comphelper
TextSegment OAccessibleTextHelper::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
OExternalLockGuard aGuard( this );
-
+
return OCommonAccessibleText::getTextAtIndex( nIndex, aTextType );
}
@@ -894,7 +894,7 @@ namespace comphelper
TextSegment OAccessibleTextHelper::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
OExternalLockGuard aGuard( this );
-
+
return OCommonAccessibleText::getTextBeforeIndex( nIndex, aTextType );
}
@@ -903,14 +903,14 @@ namespace comphelper
TextSegment OAccessibleTextHelper::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException)
{
OExternalLockGuard aGuard( this );
-
+
return OCommonAccessibleText::getTextBehindIndex( nIndex, aTextType );
}
// -----------------------------------------------------------------------------
//..............................................................................
-} // namespace comphelper
+} // namespace comphelper
//..............................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx
index 2220e15563b9..d89fb9080b73 100644
--- a/comphelper/source/misc/accessiblewrapper.cxx
+++ b/comphelper/source/misc/accessiblewrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,10 +35,10 @@
#include <algorithm>
-using namespace ::comphelper;
-using namespace ::com::sun::star::accessibility;
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::lang;
+using namespace ::comphelper;
+using namespace ::com::sun::star::accessibility;
+using namespace ::com::sun::star::uno;
+using namespace ::com::sun::star::lang;
//.............................................................................
namespace comphelper
@@ -53,7 +53,7 @@ namespace comphelper
: public ::std::unary_function< AccessibleMap::value_type, void >
{
private:
- Reference< XEventListener > m_xListener;
+ Reference< XEventListener > m_xListener;
public:
RemoveEventListener( const Reference< XEventListener >& _rxListener )
@@ -113,7 +113,7 @@ namespace comphelper
{
AccessibleMap::iterator aRemovedPos = m_aChildrenMap.find( _rxKey );
if ( m_aChildrenMap.end() != aRemovedPos )
- { // it was cached
+ { // it was cached
// remove ourself as event listener
RemoveEventListener aOperator( this );
aOperator( *aRemovedPos );
@@ -134,7 +134,7 @@ namespace comphelper
//-------------------------------------------------------------------------
Reference< XAccessible > OWrappedAccessibleChildrenManager::getAccessibleWrapperFor(
- const Reference< XAccessible >& _rxKey, sal_Bool _bCreate )
+ const Reference< XAccessible >& _rxKey, sal_Bool _bCreate )
{
Reference< XAccessible > xValue;
@@ -151,7 +151,7 @@ namespace comphelper
xValue = aPos->second;
}
else if ( _bCreate )
- { // not found in the cache, and allowed to create
+ { // not found in the cache, and allowed to create
// -> new wrapper
xValue = new OAccessibleWrapper( m_xORB, _rxKey, (Reference< XAccessible >)m_aOwningAccessible );
@@ -259,7 +259,7 @@ namespace comphelper
void OWrappedAccessibleChildrenManager::handleChildNotification( const AccessibleEventObject& _rEvent )
{
if ( AccessibleEventId::INVALIDATE_ALL_CHILDREN == _rEvent.EventId )
- { // clear our child map
+ { // clear our child map
invalidateAll( );
}
else if ( AccessibleEventId::CHILD == _rEvent.EventId )
@@ -326,7 +326,7 @@ namespace comphelper
{
if ( !m_rBHelper.bDisposed )
{
- acquire(); // to prevent duplicate dtor calls
+ acquire(); // to prevent duplicate dtor calls
dispose();
}
}
@@ -680,7 +680,7 @@ namespace comphelper
}
//.............................................................................
-} // namespace accessibility
+} // namespace accessibility
//.............................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx
index 65dfd98364c9..45b9edaf9ed5 100644
--- a/comphelper/source/misc/accimplaccess.cxx
+++ b/comphelper/source/misc/accimplaccess.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ namespace comphelper
{
//.........................................................................
-#define BITFIELDSIZE ( sizeof( sal_Int64 ) * 8 )
+#define BITFIELDSIZE ( sizeof( sal_Int64 ) * 8 )
// maximum number of bits we have in a sal_Int64
using ::com::sun::star::uno::Reference;
@@ -57,17 +57,17 @@ namespace comphelper
//=====================================================================
struct OAccImpl_Impl
{
- Reference< XAccessible > m_xAccParent;
- sal_Int64 m_nForeignControlledStates;
+ Reference< XAccessible > m_xAccParent;
+ sal_Int64 m_nForeignControlledStates;
};
-
+
//=====================================================================
//= OAccessibleImplementationAccess
//=====================================================================
//---------------------------------------------------------------------
OAccessibleImplementationAccess::OAccessibleImplementationAccess( )
- :m_pImpl( new OAccImpl_Impl )
+ :m_pImpl( new OAccImpl_Impl )
{
}
@@ -111,7 +111,7 @@ namespace comphelper
//---------------------------------------------------------------------
sal_Bool OAccessibleImplementationAccess::setForeignControlledState( const Reference< XAccessibleContext >& _rxComponent, const sal_Int16 _nState,
- const sal_Bool _bSet )
+ const sal_Bool _bSet )
{
OAccessibleImplementationAccess* pImplementation = getImplementation( _rxComponent );
@@ -143,8 +143,8 @@ namespace comphelper
{
sal_Int64 nReturn( 0 );
- if ( ( _rIdentifier.getLength() == 16 )
- && ( 0 == rtl_compareMemory( getUnoTunnelImplementationId().getConstArray(), _rIdentifier.getConstArray(), 16 ) )
+ if ( ( _rIdentifier.getLength() == 16 )
+ && ( 0 == rtl_compareMemory( getUnoTunnelImplementationId().getConstArray(), _rIdentifier.getConstArray(), 16 ) )
)
nReturn = reinterpret_cast< sal_Int64 >( this );
@@ -184,7 +184,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/misc/anytostring.cxx b/comphelper/source/misc/anytostring.cxx
index bdb6d44d6e1f..306891b74cd9 100644
--- a/comphelper/source/misc/anytostring.cxx
+++ b/comphelper/source/misc/anytostring.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ void appendValue( rtl::OUStringBuffer & buf,
buf.append( rtl::OUString::unacquired( &typeRef->pTypeName ) );
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(") ") );
}
-
+
switch (typeRef->eTypeClass) {
case typelib_TypeClass_INTERFACE: {
buf.append( static_cast<sal_Unicode>('@') );
@@ -114,7 +114,7 @@ void appendValue( rtl::OUStringBuffer & buf,
reinterpret_cast< typelib_CompoundTypeDescription * >(
typeDescr );
sal_Int32 nDescr = compType->nMembers;
-
+
if (compType->pBaseTypeDescription) {
appendValue(
buf, val, reinterpret_cast<
@@ -123,12 +123,12 @@ void appendValue( rtl::OUStringBuffer & buf,
if (nDescr > 0)
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM(", ") );
}
-
+
typelib_TypeDescriptionReference ** ppTypeRefs =
compType->ppTypeRefs;
sal_Int32 * memberOffsets = compType->pMemberOffsets;
rtl_uString ** ppMemberNames = compType->ppMemberNames;
-
+
for ( sal_Int32 nPos = 0; nPos < nDescr; ++nPos )
{
buf.append( ppMemberNames[ nPos ] );
@@ -176,7 +176,7 @@ void appendValue( rtl::OUStringBuffer & buf,
uno_Sequence * seq =
*static_cast< uno_Sequence * const * >(val);
sal_Int32 nElements = seq->nElements;
-
+
if (nElements > 0)
{
buf.appendAscii( RTL_CONSTASCII_STRINGPARAM("{ ") );
diff --git a/comphelper/source/misc/asyncnotification.cxx b/comphelper/source/misc/asyncnotification.cxx
index 5697eb62b6b5..f68fda46b9b3 100644
--- a/comphelper/source/misc/asyncnotification.cxx
+++ b/comphelper/source/misc/asyncnotification.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/comphelper_module.cxx b/comphelper/source/misc/comphelper_module.cxx
index 8b9ee4221dfc..2ac0fc7e262b 100644
--- a/comphelper/source/misc/comphelper_module.cxx
+++ b/comphelper/source/misc/comphelper_module.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/comphelper_services.cxx b/comphelper/source/misc/comphelper_services.cxx
index b9cc41fe5b09..74c29f7bd4e6 100644
--- a/comphelper/source/misc/comphelper_services.cxx
+++ b/comphelper/source/misc/comphelper_services.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/componentbase.cxx b/comphelper/source/misc/componentbase.cxx
index d6aa3c5fd50c..0ec5cc0ca93e 100644
--- a/comphelper/source/misc/componentbase.cxx
+++ b/comphelper/source/misc/componentbase.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/componentcontext.cxx b/comphelper/source/misc/componentcontext.cxx
index 072cafbcee4c..3334ee1aafc1 100644
--- a/comphelper/source/misc/componentcontext.cxx
+++ b/comphelper/source/misc/componentcontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/componentmodule.cxx b/comphelper/source/misc/componentmodule.cxx
index f3239dd59846..9caf52966980 100644
--- a/comphelper/source/misc/componentmodule.cxx
+++ b/comphelper/source/misc/componentmodule.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/configurationhelper.cxx b/comphelper/source/misc/configurationhelper.cxx
index 1016c88b341c..7ce1bba11dc9 100644
--- a/comphelper/source/misc/configurationhelper.cxx
+++ b/comphelper/source/misc/configurationhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx
index ccc680729482..9a0c8a0e498a 100644
--- a/comphelper/source/misc/docpasswordhelper.cxx
+++ b/comphelper/source/misc/docpasswordhelper.cxx
@@ -2,7 +2,7 @@
/***********************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace comphelper {
static uno::Sequence< sal_Int8 > GeneratePBKDF2Hash( const ::rtl::OUString& aPassword, const uno::Sequence< sal_Int8 >& aSalt, sal_Int32 nCount, sal_Int32 nHashLength )
{
uno::Sequence< sal_Int8 > aResult;
-
+
if ( aPassword.getLength() && aSalt.getLength() && nCount && nHashLength )
{
::rtl::OString aBytePass = ::rtl::OUStringToOString( aPassword, RTL_TEXTENCODING_UTF8 );
@@ -91,7 +91,7 @@ uno::Sequence< beans::PropertyValue > DocPasswordHelper::GenerateNewModifyPasswo
TimeValue aTime;
osl_getSystemTime( &aTime );
rtlRandomPool aRandomPool = rtl_random_createPool ();
- rtl_random_addBytes ( aRandomPool, &aTime, 8 );
+ rtl_random_addBytes ( aRandomPool, &aTime, 8 );
rtl_random_getBytes ( aRandomPool, aSalt.getArray(), 16 );
@@ -157,9 +157,9 @@ sal_Bool DocPasswordHelper::IsModifyPasswordCorrect( const ::rtl::OUString& aPas
sal_uInt32 DocPasswordHelper::GetWordHashAsUINT32(
const ::rtl::OUString& aUString )
{
- static sal_uInt16 pInitialCode[] = {
+ static sal_uInt16 pInitialCode[] = {
0xE1F0, // 1
- 0x1D0F, // 2
+ 0x1D0F, // 2
0xCC9C, // 3
0x84C0, // 4
0x110C, // 5
@@ -243,7 +243,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetWordHashAsSequence(
return aResult;
}
-
+
// ============================================================================
sal_uInt16 DocPasswordHelper::GetXLHashAsUINT16(
const ::rtl::OUString& aUString,
@@ -281,7 +281,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence(
return aResult;
}
-
+
// ============================================================================
/*static*/ OUString DocPasswordHelper::requestAndVerifyDocPassword(
diff --git a/comphelper/source/misc/docpasswordrequest.cxx b/comphelper/source/misc/docpasswordrequest.cxx
index a4381a3d89c7..49e941601123 100644
--- a/comphelper/source/misc/docpasswordrequest.cxx
+++ b/comphelper/source/misc/docpasswordrequest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -142,7 +142,7 @@ DocPasswordRequest::~DocPasswordRequest()
static_cast< XWeak* > ( this ),
// my own interfaces
static_cast< XInteractionRequest* > ( this ) );
-}
+}
void SAL_CALL DocPasswordRequest::acquire( ) throw ()
{
@@ -152,7 +152,7 @@ void SAL_CALL DocPasswordRequest::acquire( ) throw ()
void SAL_CALL DocPasswordRequest::release( ) throw ()
{
OWeakObject::release();
-}
+}
sal_Bool DocPasswordRequest::isAbort() const
{
diff --git a/comphelper/source/misc/documentinfo.cxx b/comphelper/source/misc/documentinfo.cxx
index c1884ba513c2..256c50f93f91 100644
--- a/comphelper/source/misc/documentinfo.cxx
+++ b/comphelper/source/misc/documentinfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -166,7 +166,7 @@ namespace comphelper {
// 5.
// <-- #i88104# (05-16-08) TKR: use the new XTitle Interface to get the Title -->
-
+
Reference< XTitle > xTitle( _rxDocument, UNO_QUERY );
if ( xTitle.is() )
{
diff --git a/comphelper/source/misc/documentiologring.cxx b/comphelper/source/misc/documentiologring.cxx
index fdc17013a6d9..c4b77338e798 100644
--- a/comphelper/source/misc/documentiologring.cxx
+++ b/comphelper/source/misc/documentiologring.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/documentiologring.hxx b/comphelper/source/misc/documentiologring.hxx
index 90acd7f9152b..a01a37de2eae 100644
--- a/comphelper/source/misc/documentiologring.hxx
+++ b/comphelper/source/misc/documentiologring.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/evtlistenerhlp.cxx b/comphelper/source/misc/evtlistenerhlp.cxx
index 3d10c0d76ad8..2459d9160303 100644
--- a/comphelper/source/misc/evtlistenerhlp.cxx
+++ b/comphelper/source/misc/evtlistenerhlp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/evtmethodhelper.cxx b/comphelper/source/misc/evtmethodhelper.cxx
index 1101a473e716..4fe780630718 100644
--- a/comphelper/source/misc/evtmethodhelper.cxx
+++ b/comphelper/source/misc/evtmethodhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,10 +44,10 @@ namespace comphelper
{
typelib_InterfaceTypeDescription *pType=0;
type.getDescription( (typelib_TypeDescription**)&pType);
-
+
if(!pType)
return Sequence< ::rtl::OUString>();
-
+
Sequence< ::rtl::OUString> aNames(pType->nMembers);
::rtl::OUString* pNames = aNames.getArray();
for(sal_Int32 i=0;i<pType->nMembers;i++,++pNames)
diff --git a/comphelper/source/misc/ihwrapnofilter.cxx b/comphelper/source/misc/ihwrapnofilter.cxx
index 7d9ef608a1ae..5ee98ca4c1ba 100644
--- a/comphelper/source/misc/ihwrapnofilter.cxx
+++ b/comphelper/source/misc/ihwrapnofilter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/instancelocker.cxx b/comphelper/source/misc/instancelocker.cxx
index c71f84b62309..d45671a9e151 100644
--- a/comphelper/source/misc/instancelocker.cxx
+++ b/comphelper/source/misc/instancelocker.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -140,7 +140,7 @@ void SAL_CALL OInstanceLocker::initialize( const uno::Sequence< uno::Any >& aArg
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
-
+
if ( !m_refCount )
throw uno::RuntimeException(); // the object must be refcounted already!
@@ -167,7 +167,7 @@ void SAL_CALL OInstanceLocker::initialize( const uno::Sequence< uno::Any >& aArg
!( aArguments[1] >>= nModes ) ||
(
!( nModes & embed::Actions::PREVENT_CLOSE ) &&
- !( nModes & embed::Actions::PREVENT_TERMINATION )
+ !( nModes & embed::Actions::PREVENT_TERMINATION )
)
)
{
@@ -183,7 +183,7 @@ void SAL_CALL OInstanceLocker::initialize( const uno::Sequence< uno::Any >& aArg
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("If the third argument is provided, it must be XActionsApproval implementation!" ) ),
uno::Reference< uno::XInterface >(),
0 );
-
+
m_pLockListener = new OLockListener( uno::Reference< lang::XComponent > ( static_cast< lang::XComponent* >( this ) ),
xInstance,
nModes,
@@ -309,7 +309,7 @@ void OLockListener::Dispose()
catch( uno::Exception& )
{}
}
-
+
m_xInstance = uno::Reference< uno::XInterface >();
m_bDisposed = sal_True;
}
diff --git a/comphelper/source/misc/instancelocker.hxx b/comphelper/source/misc/instancelocker.hxx
index 809aced6e3c1..e271bc2c94ba 100644
--- a/comphelper/source/misc/instancelocker.hxx
+++ b/comphelper/source/misc/instancelocker.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ class OInstanceLocker : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::
OLockListener* m_pLockListener;
::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners
-
+
sal_Bool m_bDisposed;
sal_Bool m_bInitialized;
@@ -73,7 +73,7 @@ public:
static ::rtl::OUString SAL_CALL getImplementationName_static();
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
- Create(
+ Create(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
// XComponent
@@ -107,7 +107,7 @@ class OLockListener : public ::cppu::WeakImplHelper2< ::com::sun::star::util::XC
sal_Int32 m_nMode;
public:
- OLockListener( const ::com::sun::star::uno::WeakReference< ::com::sun::star::lang::XComponent >& xWrapper,
+ OLockListener( const ::com::sun::star::uno::WeakReference< ::com::sun::star::lang::XComponent >& xWrapper,
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xInstance,
sal_Int32 nMode,
const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XActionsApproval > xApproval );
diff --git a/comphelper/source/misc/interaction.cxx b/comphelper/source/misc/interaction.cxx
index 7a69ac4d5cbb..caae6cda0bc3 100644
--- a/comphelper/source/misc/interaction.cxx
+++ b/comphelper/source/misc/interaction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ namespace comphelper
{
m_sPassword = _Password;;
}
-
+
//--------------------------------------------------------------------
::rtl::OUString SAL_CALL OInteractionPassword::getPassword( ) throw (RuntimeException)
{
@@ -94,7 +94,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/misc/legacysingletonfactory.cxx b/comphelper/source/misc/legacysingletonfactory.cxx
index d469d2512c4f..53b76c7d2f52 100644
--- a/comphelper/source/misc/legacysingletonfactory.cxx
+++ b/comphelper/source/misc/legacysingletonfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -128,7 +128,7 @@ namespace comphelper
{
return m_sImplementationName;
}
-
+
//--------------------------------------------------------------------
::sal_Bool SAL_CALL LegacySingletonFactory::supportsService( const ::rtl::OUString& _rServiceName ) throw (RuntimeException)
{
@@ -137,7 +137,7 @@ namespace comphelper
const ::rtl::OUString* pEnd = aServices.getConstArray() + aServices.getLength();
return ::std::find( pStart, pEnd, _rServiceName ) != pEnd;
}
-
+
//--------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL LegacySingletonFactory::getSupportedServiceNames( ) throw (RuntimeException)
{
@@ -165,7 +165,7 @@ namespace comphelper
return m_xTheInstance;
}
-
+
//--------------------------------------------------------------------
Reference< XInterface > SAL_CALL LegacySingletonFactory::createInstanceWithArgumentsAndContext( const Sequence< Any >& _rArguments, const Reference< XComponentContext >& _rxContext ) throw (Exception, RuntimeException)
{
diff --git a/comphelper/source/misc/listenernotification.cxx b/comphelper/source/misc/listenernotification.cxx
index 0f7823a197c7..23bf563993b2 100644
--- a/comphelper/source/misc/listenernotification.cxx
+++ b/comphelper/source/misc/listenernotification.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ namespace comphelper
if ( _rxListener.is() )
m_aListeners.addInterface( _rxListener );
}
-
+
//--------------------------------------------------------------------
void OListenerContainer::impl_removeListener( const Reference< XEventListener >& _rxListener )
{
diff --git a/comphelper/source/misc/locale.cxx b/comphelper/source/misc/locale.cxx
index d6fa3873110d..e08f5aa57f8e 100644
--- a/comphelper/source/misc/locale.cxx
+++ b/comphelper/source/misc/locale.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ const Locale Locale::X_DEFAULT()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("x")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("default")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -59,7 +59,7 @@ const Locale Locale::EN()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("en")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -68,7 +68,7 @@ const Locale Locale::EN_US()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("en")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("US")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -77,7 +77,7 @@ const Locale Locale::DE_DE()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("de")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DE")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -86,7 +86,7 @@ const Locale Locale::DE_CH()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("de")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CH")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -95,7 +95,7 @@ const Locale Locale::DE_AT()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("de")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("AT")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -104,7 +104,7 @@ const Locale Locale::AR()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ar")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -113,7 +113,7 @@ const Locale Locale::CA()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ca")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -122,7 +122,7 @@ const Locale Locale::CS()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("cs")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -131,7 +131,7 @@ const Locale Locale::DA()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("da")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -140,7 +140,7 @@ const Locale Locale::EL()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("el")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -149,7 +149,7 @@ const Locale Locale::ES()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("es")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -158,7 +158,7 @@ const Locale Locale::FI()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("fi")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -167,7 +167,7 @@ const Locale Locale::FR()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("fr")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -176,7 +176,7 @@ const Locale Locale::HE()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("he")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -185,7 +185,7 @@ const Locale Locale::HI_IN()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("hi")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IN")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -194,7 +194,7 @@ const Locale Locale::HU()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("hu")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -203,7 +203,7 @@ const Locale Locale::IT()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("it")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -212,7 +212,7 @@ const Locale Locale::JA()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ja")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -221,7 +221,7 @@ const Locale Locale::KO()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ko")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -230,7 +230,7 @@ const Locale Locale::NL()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("nl")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -239,7 +239,7 @@ const Locale Locale::PL()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("pl")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -248,7 +248,7 @@ const Locale Locale::PT()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("pt")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -257,7 +257,7 @@ const Locale Locale::PT_BR()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("pt")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("BR")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -266,7 +266,7 @@ const Locale Locale::RU()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ru")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -275,7 +275,7 @@ const Locale Locale::SK()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("sk")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -284,7 +284,7 @@ const Locale Locale::SL()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("sl")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -293,7 +293,7 @@ const Locale Locale::SV()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("sv")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -302,7 +302,7 @@ const Locale Locale::TH()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("th")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -311,7 +311,7 @@ const Locale Locale::TR()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("tr")),
::rtl::OUString());
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -320,7 +320,7 @@ const Locale Locale::X_COMMENT()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("x")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("comment")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -329,7 +329,7 @@ const Locale Locale::X_TRANSLATE()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("x")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("translate")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -338,7 +338,7 @@ const Locale Locale::X_NOTRANSLATE()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("x")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("notranslate")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -347,7 +347,7 @@ const Locale Locale::ZH_CN()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("zh")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CN")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -356,7 +356,7 @@ const Locale Locale::ZH_TW()
static Locale aLocale(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("zh")),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TW")));
- return aLocale;
+ return aLocale;
}
//-----------------------------------------------
@@ -390,7 +390,7 @@ Locale::Locale(const Locale& aCopy)
{
(*this) = aCopy; // recycle assign operator
}
-
+
//-----------------------------------------------
::rtl::OUString Locale::getLanguage() const
{
@@ -439,13 +439,13 @@ void Locale::fromISO(const ::rtl::OUString& sISO)
m_sLanguage = ::rtl::OUString();
m_sCountry = ::rtl::OUString();
m_sVariant = ::rtl::OUString();
-
+
::rtl::OUString sParser(sISO);
sParser.trim();
sal_Int32 nStart = 0;
sal_Int32 nEnd = 0;
-
+
// extract language part
nEnd = sParser.indexOf(SEPERATOR_LC, nStart);
if (nEnd<0)
@@ -455,7 +455,7 @@ void Locale::fromISO(const ::rtl::OUString& sISO)
}
setLanguage(sParser.copy(nStart, nEnd-nStart));
nStart = nEnd+1;
-
+
// extract country
nEnd = sParser.indexOf(SEPERATOR_CV, nStart);
if (nEnd<0)
@@ -466,7 +466,7 @@ void Locale::fromISO(const ::rtl::OUString& sISO)
return;
}
nStart = nEnd+1;
-
+
// extract variant
setVariant(sParser.copy(nStart, sParser.getLength()-nStart));
}
@@ -475,7 +475,7 @@ void Locale::fromISO(const ::rtl::OUString& sISO)
::rtl::OUString Locale::toISO() const
{
::rtl::OUStringBuffer sISO(64);
-
+
sISO.append(m_sLanguage);
if (m_sCountry.getLength())
{
@@ -488,7 +488,7 @@ void Locale::fromISO(const ::rtl::OUString& sISO)
sISO.append(m_sVariant);
}
}
-
+
return sISO.makeStringAndClear();
}
@@ -514,21 +514,21 @@ sal_Bool Locale::similar(const Locale& aComparable) const
throw(Locale::MalFormedLocaleException)
{
Locale aReference(sReferenceISO);
-
+
// Note: The same language or "en"/"en-US" should be preferred as fallback.
// On the other side some localized variables doesnt use localzation in real.
// May be the use a "fix" value only ... marked as X-DEFAULT or X-NOTRANSLATE.
// At least it can be discussed, if any language is a valid fallback ...
// But in case some office functionality depends on that (that means real functionality instead
// of pure UI descriptions) we should do anything, so it can work.
-
+
::std::vector< ::rtl::OUString >::const_iterator pSimilar = lISOList.end();
::std::vector< ::rtl::OUString >::const_iterator pEN_US = lISOList.end();
::std::vector< ::rtl::OUString >::const_iterator pEN = lISOList.end();
::std::vector< ::rtl::OUString >::const_iterator pXDefault = lISOList.end();
::std::vector< ::rtl::OUString >::const_iterator pXNoTranslate = lISOList.end();
::std::vector< ::rtl::OUString >::const_iterator pAny = lISOList.end();
-
+
::std::vector< ::rtl::OUString >::const_iterator pIt;
for ( pIt = lISOList.begin();
pIt != lISOList.end() ;
@@ -538,7 +538,7 @@ sal_Bool Locale::similar(const Locale& aComparable) const
// found Locale, which match with 100% => return it
if (aCheck.equals(aReference))
return pIt;
-
+
// found similar Locale => safe it as possible fallback
if (
(pSimilar == lISOList.end()) &&
@@ -592,22 +592,22 @@ sal_Bool Locale::similar(const Locale& aComparable) const
if (pSimilar != lISOList.end())
return pSimilar;
-
+
if (pEN_US != lISOList.end())
return pEN_US;
-
+
if (pEN != lISOList.end())
return pEN;
if (pXDefault != lISOList.end())
return pXDefault;
-
+
if (pXNoTranslate != lISOList.end())
return pXNoTranslate;
-
+
if (pAny != lISOList.end())
return pAny;
-
+
return lISOList.end();
}
@@ -645,7 +645,7 @@ sal_Bool Locale::getFallback(Locale& aLocale)
aLocale.setCountry(::rtl::OUString());
return sal_True;
}
-
+
// e) "en-US" possible?
if (!aLocale.equals(EN_US()))
{
@@ -653,9 +653,9 @@ sal_Bool Locale::getFallback(Locale& aLocale)
return sal_True;
}
- // f) no more fallbacks
+ // f) no more fallbacks
return sal_False;
-}
+}
//-----------------------------------------------
void Locale::operator=(const Locale& rCopy)
@@ -667,7 +667,7 @@ void Locale::operator=(const Locale& rCopy)
m_sCountry = rCopy.m_sCountry;
m_sVariant = rCopy.m_sVariant;
}
-
+
//-----------------------------------------------
sal_Bool Locale::operator==(const Locale& aComparable) const
{
diff --git a/comphelper/source/misc/logging.cxx b/comphelper/source/misc/logging.cxx
index 48b99a6ff94d..f9467998c48c 100644
--- a/comphelper/source/misc/logging.cxx
+++ b/comphelper/source/misc/logging.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/mediadescriptor.cxx b/comphelper/source/misc/mediadescriptor.cxx
index 83f54ff027ea..d7bc4deb961e 100644
--- a/comphelper/source/misc/mediadescriptor.cxx
+++ b/comphelper/source/misc/mediadescriptor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -603,7 +603,7 @@ sal_Bool MediaDescriptor::impl_addInputStream( sal_Bool bLockFile )
{
::rtl::OUStringBuffer sMsg(256);
sMsg.appendAscii("Invalid MediaDescriptor detected:\n");
- sMsg.append (ex.Message );
+ sMsg.append (ex.Message );
OSL_ENSURE(sal_False, ::rtl::OUStringToOString(sMsg.makeStringAndClear(), RTL_TEXTENCODING_UTF8).getStr());
}
#else
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx
index a61e8a36a27c..2f3f5e445a74 100644
--- a/comphelper/source/misc/mimeconfighelper.cxx
+++ b/comphelper/source/misc/mimeconfighelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -750,7 +750,7 @@ sal_Bool MimeConfigurationHelper::AddFilterNameCheckOwnFile(
}
catch( uno::Exception& )
{}
-
+
return aResult;
}
//-------------------------------------------------------------------------
@@ -790,7 +790,7 @@ uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassID( sal_uInt3
return aResult;
}
-uno::Sequence<sal_Int8> MimeConfigurationHelper::GetSequenceClassIDFromObjectName(const ::rtl::OUString& _sObjectName)
+uno::Sequence<sal_Int8> MimeConfigurationHelper::GetSequenceClassIDFromObjectName(const ::rtl::OUString& _sObjectName)
{
uno::Sequence<sal_Int8> aClassId;
uno::Reference< container::XNameAccess > xObjectNames = GetConfigurationByPath(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.Embedding/ObjectNames")));
diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx
index 74a37e278185..2031a338cb4e 100644
--- a/comphelper/source/misc/namedvaluecollection.cxx
+++ b/comphelper/source/misc/namedvaluecollection.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -313,7 +313,7 @@ namespace comphelper
NamedValue operator()( const NamedValueRepository::value_type& _rValue )
{
return NamedValue( _rValue.first, _rValue.second );
- }
+ }
};
}
diff --git a/comphelper/source/misc/numbers.cxx b/comphelper/source/misc/numbers.cxx
index a011964b91fa..47525f5d0c19 100644
--- a/comphelper/source/misc/numbers.cxx
+++ b/comphelper/source/misc/numbers.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,8 +40,8 @@ namespace comphelper
{
//.........................................................................
-namespace starbeans = ::com::sun::star::beans;
-namespace starlang = ::com::sun::star::lang;
+namespace starbeans = ::com::sun::star::beans;
+namespace starlang = ::com::sun::star::lang;
//------------------------------------------------------------------------------
sal_Int16 getNumberFormatType(const staruno::Reference<starutil::XNumberFormats>& xFormats, sal_Int32 nKey)
@@ -146,7 +146,7 @@ Any getNumberFormatProperty( const Reference< XNumberFormatter >& _rxFormatter,
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/officeresourcebundle.cxx b/comphelper/source/misc/officeresourcebundle.cxx
index 942a8e618261..0703f8e46d7c 100644
--- a/comphelper/source/misc/officeresourcebundle.cxx
+++ b/comphelper/source/misc/officeresourcebundle.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/officerestartmanager.cxx b/comphelper/source/misc/officerestartmanager.cxx
index 6c1f38b15ff9..774918ca992e 100644
--- a/comphelper/source/misc/officerestartmanager.cxx
+++ b/comphelper/source/misc/officerestartmanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -145,7 +145,7 @@ void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ )
xFactory->createInstanceWithContext(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.frame.Desktop" ) ), m_xContext ),
uno::UNO_QUERY_THROW );
-
+
// Turn Quickstarter veto off
uno::Reference< beans::XPropertySet > xPropertySet( xDesktop, uno::UNO_QUERY_THROW );
::rtl::OUString aVetoPropName( RTL_CONSTASCII_USTRINGPARAM( "SuspendQuickstartVeto" ) );
diff --git a/comphelper/source/misc/officerestartmanager.hxx b/comphelper/source/misc/officerestartmanager.hxx
index c0aabf65d531..1fe44d681c59 100644
--- a/comphelper/source/misc/officerestartmanager.hxx
+++ b/comphelper/source/misc/officerestartmanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/proxyaggregation.cxx b/comphelper/source/misc/proxyaggregation.cxx
index b24aa4407356..19307d794ff6 100644
--- a/comphelper/source/misc/proxyaggregation.cxx
+++ b/comphelper/source/misc/proxyaggregation.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -163,10 +163,10 @@ namespace comphelper
//
// if ( !m_rBHelper.bDisposed )
// {
- // acquire(); // to prevent duplicate dtor calls
+ // acquire(); // to prevent duplicate dtor calls
// dispose();
// }
-
+
m_xInner.clear();
}
@@ -174,9 +174,9 @@ namespace comphelper
void SAL_CALL OComponentProxyAggregationHelper::disposing( const EventObject& _rSource ) throw (RuntimeException)
{
if ( _rSource.Source == m_xInner )
- { // it's our inner context which is dying -> dispose ourself
+ { // it's our inner context which is dying -> dispose ourself
if ( !m_rBHelper.bDisposed && !m_rBHelper.bInDispose )
- { // (if necessary only, of course)
+ { // (if necessary only, of course)
dispose();
}
}
@@ -243,7 +243,7 @@ namespace comphelper
{
if ( !rBHelper.bDisposed )
{
- acquire(); // to prevent duplicate dtor calls
+ acquire(); // to prevent duplicate dtor calls
dispose();
}
}
@@ -272,7 +272,7 @@ namespace comphelper
//.............................................................................
-} // namespace comphelper
+} // namespace comphelper
//.............................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/querydeep.cxx b/comphelper/source/misc/querydeep.cxx
index 61cfb6c173f2..348d038383c2 100644
--- a/comphelper/source/misc/querydeep.cxx
+++ b/comphelper/source/misc/querydeep.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,8 +60,8 @@ sal_Bool comphelper::isDerivedFrom(
// now ask in cppu (aka typelib)
::typelib_TypeDescription *pBaseTD = 0, *pTD = 0;
- rBaseType. getDescription(&pBaseTD);
- rType. getDescription(&pTD);
+ rBaseType. getDescription(&pBaseTD);
+ rType. getDescription(&pTD);
// interfaces are assignable to a base
bRet = ::typelib_typedescription_isAssignableFrom(pBaseTD, pTD);
diff --git a/comphelper/source/misc/regpathhelper.cxx b/comphelper/source/misc/regpathhelper.cxx
index 898d1224b091..7fa3548cf744 100644
--- a/comphelper/source/misc/regpathhelper.cxx
+++ b/comphelper/source/misc/regpathhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,18 +41,18 @@
using namespace osl;
using namespace rtl;
-#define PATH_DELEMITTER '/'
+#define PATH_DELEMITTER '/'
-#define USER_REGISTRY_NAME_ENV "STAR_USER_REGISTRY"
-#define SYSTEM_REGISTRY_NAME_ENV "STAR_REGISTRY"
-#define REGISTRY_SYSTEM_NAME "services.rdb"
+#define USER_REGISTRY_NAME_ENV "STAR_USER_REGISTRY"
+#define SYSTEM_REGISTRY_NAME_ENV "STAR_REGISTRY"
+#define REGISTRY_SYSTEM_NAME "services.rdb"
-#define REGISTRY_LOCAL_NAME "user60.rdb"
+#define REGISTRY_LOCAL_NAME "user60.rdb"
#ifdef SAL_UNX
-#define CONFIG_PATH_PREFIX "."
+#define CONFIG_PATH_PREFIX "."
#else
-#define CONFIG_PATH_PREFIX ""
+#define CONFIG_PATH_PREFIX ""
#endif
namespace comphelper
@@ -103,7 +103,7 @@ static OUString getDefaultLocalRegistry()
OUString portalUserDir;
sal_Bool bIsPortalUser = retrievePortalUserDir( &portalUserDir );
-
+
if ( bIsPortalUser )
{
if( portalUserDir.getLength() )
@@ -112,7 +112,7 @@ static OUString getDefaultLocalRegistry()
userRegistryName = portalUserDir;
userRegistryName += OUString( RTL_CONSTASCII_USTRINGPARAM(
"/user/" REGISTRY_LOCAL_NAME ) );
-
+
// Directory creation is probably necessary for bootstrapping a new
// user in the portal environment (the ucb uses this function).
// This should be solved differently, as
@@ -120,7 +120,7 @@ static OUString getDefaultLocalRegistry()
OUString sSeparator(RTL_CONSTASCII_USTRINGPARAM("/"));
OUString sPath(RTL_CONSTASCII_USTRINGPARAM("file://"));
FileBase::RC retRC = FileBase::E_None;
-
+
sal_Int32 nIndex = 3;
sPath += userRegistryName.getToken(2, '/', nIndex);
while( nIndex != -1 )
@@ -155,8 +155,8 @@ static OUString getDefaultLocalRegistry()
OUString getPathToUserRegistry()
{
- OUString userRegistryName;
- FILE *f=NULL;
+ OUString userRegistryName;
+ FILE *f=NULL;
// search the environment STAR_USER_REGISTRY
OString sBuffer( getenv(USER_REGISTRY_NAME_ENV) );
@@ -184,12 +184,12 @@ OUString getPathToSystemRegistry()
OUString uBuffer;
OUString registryBaseName( RTL_CONSTASCII_USTRINGPARAM(REGISTRY_SYSTEM_NAME) );
OUString systemRegistryName;
- FILE *f=NULL;
+ FILE *f=NULL;
// search in the directory of the executable
if(osl_Process_E_None == osl_getExecutableFile(&uBuffer.pData))
{
- sal_uInt32 lastIndex = uBuffer.lastIndexOf(PATH_DELEMITTER);
+ sal_uInt32 lastIndex = uBuffer.lastIndexOf(PATH_DELEMITTER);
if (lastIndex > 0)
{
uBuffer = uBuffer.copy(0, lastIndex + 1);
diff --git a/comphelper/source/misc/scopeguard.cxx b/comphelper/source/misc/scopeguard.cxx
index 63ec42befb02..c194e98e5e8d 100644
--- a/comphelper/source/misc/scopeguard.cxx
+++ b/comphelper/source/misc/scopeguard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/sequence.cxx b/comphelper/source/misc/sequence.cxx
index 622cfff4989d..bc264bf87569 100644
--- a/comphelper/source/misc/sequence.cxx
+++ b/comphelper/source/misc/sequence.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,13 +93,13 @@ staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< ::rtl::OUString
// -----------------------------------------------------------------------------
sal_Bool existsValue(const ::rtl::OUString& Value,const staruno::Sequence< ::rtl::OUString >& _aList)
{
- const ::rtl::OUString * pIter = _aList.getConstArray();
- const ::rtl::OUString * pEnd = pIter + _aList.getLength();
+ const ::rtl::OUString * pIter = _aList.getConstArray();
+ const ::rtl::OUString * pEnd = pIter + _aList.getLength();
return ::std::find(pIter,pEnd,Value) != pEnd;
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/sequenceashashmap.cxx b/comphelper/source/misc/sequenceashashmap.cxx
index c1b9cd9463b4..ea583797ee2a 100644
--- a/comphelper/source/misc/sequenceashashmap.cxx
+++ b/comphelper/source/misc/sequenceashashmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -124,7 +124,7 @@ void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lS
{
sal_Int32 c = lSource.getLength();
sal_Int32 i = 0;
-
+
for (i=0; i<c; ++i)
{
css::beans::PropertyValue lP;
@@ -137,10 +137,10 @@ void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lS
throw css::beans::IllegalTypeException(
::rtl::OUString::createFromAscii("PropertyValue struct contains no usefull informations."),
css::uno::Reference< css::uno::XInterface >());
- (*this)[lP.Name] = lP.Value;
+ (*this)[lP.Name] = lP.Value;
continue;
}
-
+
css::beans::NamedValue lN;
if (lSource[i] >>= lN)
{
@@ -151,12 +151,12 @@ void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lS
throw css::beans::IllegalTypeException(
::rtl::OUString::createFromAscii("NamedValue struct contains no usefull informations."),
css::uno::Reference< css::uno::XInterface >());
- (*this)[lN.Name] = lN.Value;
+ (*this)[lN.Name] = lN.Value;
continue;
}
// ignore VOID Any ... but reject wrong filled ones!
- if (lSource[i].hasValue())
+ if (lSource[i].hasValue())
throw css::beans::IllegalTypeException(
::rtl::OUString::createFromAscii("Any contains wrong type."),
css::uno::Reference< css::uno::XInterface >());
@@ -272,7 +272,7 @@ const css::uno::Sequence< css::uno::Any > SequenceAsHashMap::getAsConstAnyList(:
aProp.Value = pThis->second;
pDestination[i] = css::uno::makeAny(aProp);
}
-
+
++i;
}
@@ -312,10 +312,10 @@ sal_Bool SequenceAsHashMap::match(const SequenceAsHashMap& rCheck) const
const ::rtl::OUString& sCheckName = pCheck->first;
const css::uno::Any& aCheckValue = pCheck->second;
const_iterator pFound = find(sCheckName);
-
+
if (pFound == end())
return sal_False;
-
+
const css::uno::Any& aFoundValue = pFound->second;
if (aFoundValue != aCheckValue)
return sal_False;
@@ -336,7 +336,7 @@ void SequenceAsHashMap::update(const SequenceAsHashMap& rUpdate)
{
const ::rtl::OUString& sName = pUpdate->first;
const css::uno::Any& aValue = pUpdate->second;
-
+
(*this)[sName] = aValue;
}
}
diff --git a/comphelper/source/misc/servicedecl.cxx b/comphelper/source/misc/servicedecl.cxx
index 92e3b3ef7e44..85bb01e7d15c 100644
--- a/comphelper/source/misc/servicedecl.cxx
+++ b/comphelper/source/misc/servicedecl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ class ServiceDecl::Factory :
public:
explicit Factory( ServiceDecl const& rServiceDecl )
: m_rServiceDecl(rServiceDecl) {}
-
+
// XServiceInfo:
virtual rtl::OUString SAL_CALL getImplementationName()
throw (uno::RuntimeException);
@@ -68,7 +68,7 @@ public:
uno::Sequence<uno::Any> const& args,
uno::Reference<uno::XComponentContext> const& xContext )
throw (uno::Exception);
-
+
private:
virtual ~Factory();
@@ -128,7 +128,7 @@ bool ServiceDecl::writeInfo( registry::XRegistryKey * xKey ) const
try {
uno::Reference<registry::XRegistryKey> const xNewKey(
xKey->createKey( buf.makeStringAndClear() ) );
-
+
rtl::OString const str(m_pServiceNames);
sal_Int32 nIndex = 0;
do {
@@ -138,7 +138,7 @@ bool ServiceDecl::writeInfo( registry::XRegistryKey * xKey ) const
RTL_TEXTENCODING_ASCII_US ) );
}
while (nIndex >= 0);
-
+
bRet = true;
}
catch (registry::InvalidRegistryException const&) {
@@ -161,8 +161,8 @@ void * ServiceDecl::getFactory( sal_Char const* pImplName ) const
uno::Sequence<rtl::OUString> ServiceDecl::getSupportedServiceNames() const
{
std::vector<rtl::OUString> vec;
-
- rtl::OString const str(m_pServiceNames);
+
+ rtl::OString const str(m_pServiceNames);
sal_Int32 nIndex = 0;
do {
rtl::OString const token( str.getToken( 0, m_cDelim, nIndex ) );
@@ -170,7 +170,7 @@ uno::Sequence<rtl::OUString> ServiceDecl::getSupportedServiceNames() const
RTL_TEXTENCODING_ASCII_US ) );
}
while (nIndex >= 0);
-
+
return comphelper::containerToSequence(vec);
}
diff --git a/comphelper/source/misc/serviceinfohelper.cxx b/comphelper/source/misc/serviceinfohelper.cxx
index 1124146b39f6..90f62ba8deab 100644
--- a/comphelper/source/misc/serviceinfohelper.cxx
+++ b/comphelper/source/misc/serviceinfohelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/sharedmutex.cxx b/comphelper/source/misc/sharedmutex.cxx
index 346fead794fe..ab7d68be12d3 100644
--- a/comphelper/source/misc/sharedmutex.cxx
+++ b/comphelper/source/misc/sharedmutex.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/stillreadwriteinteraction.cxx b/comphelper/source/misc/stillreadwriteinteraction.cxx
index f51353e47897..4ae3422fe869 100644
--- a/comphelper/source/misc/stillreadwriteinteraction.cxx
+++ b/comphelper/source/misc/stillreadwriteinteraction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-*
+*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ StillReadWriteInteraction::StillReadWriteInteraction(const css::uno::Reference<
aInterceptedRequest.Continuation = ::getCppuType(static_cast< css::uno::Reference< css::task::XInteractionAbort >* >(0));
aInterceptedRequest.MatchExact = sal_False;
lInterceptions.push_back(aInterceptedRequest);
-
+
setInterceptedHandler(xHandler);
setInterceptions(lInterceptions);
}
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index 1503e08bf6b0..98258b8f615e 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx
index 61e0eff9e0d7..41b0dde2a582 100644
--- a/comphelper/source/misc/string.cxx
+++ b/comphelper/source/misc/string.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/misc/synchronousdispatch.cxx b/comphelper/source/misc/synchronousdispatch.cxx
index ad7c83c8bb15..ca6362a6754b 100644
--- a/comphelper/source/misc/synchronousdispatch.cxx
+++ b/comphelper/source/misc/synchronousdispatch.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -98,7 +98,7 @@ uno::Reference< lang::XComponent > SynchronousDispatch::dispatch(
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx
index 713e03caf23e..9be20ac52296 100644
--- a/comphelper/source/misc/types.cxx
+++ b/comphelper/source/misc/types.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -114,7 +114,7 @@ float getFloat(const Any& _rAny)
}
//------------------------------------------------------------------------------
-::rtl::OUString getString(const Any& _rAny)
+::rtl::OUString getString(const Any& _rAny)
{
::rtl::OUString nReturn;
OSL_VERIFY( _rAny >>= nReturn );
@@ -142,7 +142,7 @@ sal_Int32 getEnumAsINT32(const Any& _rAny) throw(IllegalArgumentException)
}
//------------------------------------------------------------------------------
-FontDescriptor getDefaultFont()
+FontDescriptor getDefaultFont()
{
FontDescriptor aReturn;
aReturn.Slant = FontSlant_DONTKNOW;
@@ -203,8 +203,8 @@ sal_Bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue)
reinterpret_cast<const Any*>(pData)->getValue(),
_rValue);
}
- else if ( (_rType.getTypeClass() == TypeClass_VOID)
- || (_rValue.getValueType().getTypeClass() == TypeClass_VOID)
+ else if ( (_rType.getTypeClass() == TypeClass_VOID)
+ || (_rValue.getValueType().getTypeClass() == TypeClass_VOID)
)
{
bRes = _rType.getTypeClass() == _rValue.getValueType().getTypeClass();
@@ -431,7 +431,7 @@ sal_Bool compare(const Any& rLeft, const Any& rRight)
}
//-------------------------------------------------------------------------
-sal_Bool operator ==(const FontDescriptor& _rLeft, const FontDescriptor& _rRight)
+sal_Bool operator ==(const FontDescriptor& _rLeft, const FontDescriptor& _rRight)
{
return ( _rLeft.Name.equals( _rRight.Name ) ) &&
( _rLeft.Height == _rRight.Height ) &&
@@ -454,14 +454,14 @@ sal_Bool operator ==(const FontDescriptor& _rLeft, const FontDescriptor& _rRi
//-------------------------------------------------------------------------
Type getSequenceElementType(const Type& _rSequenceType)
{
- OSL_ENSURE(_rSequenceType.getTypeClass() == TypeClass_SEQUENCE,
+ OSL_ENSURE(_rSequenceType.getTypeClass() == TypeClass_SEQUENCE,
"getSequenceElementType: must be called with a sequence type!");
if (!(_rSequenceType.getTypeClass() == TypeClass_SEQUENCE))
return Type();
TypeDescription aTD(_rSequenceType);
- typelib_IndirectTypeDescription* pSequenceTD =
+ typelib_IndirectTypeDescription* pSequenceTD =
reinterpret_cast< typelib_IndirectTypeDescription* >(aTD.get());
OSL_ASSERT(pSequenceTD);
@@ -473,7 +473,7 @@ Type getSequenceElementType(const Type& _rSequenceType)
return Type();
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/misc/uieventslogger.cxx b/comphelper/source/misc/uieventslogger.cxx
index 1ddf413fc009..6c5a147bb0fb 100644
--- a/comphelper/source/misc/uieventslogger.cxx
+++ b/comphelper/source/misc/uieventslogger.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -528,7 +528,7 @@ namespace comphelper
{
Reference<XMultiServiceFactory> sm = getProcessServiceFactory();
- // getting the Core Uno proxy object
+ // getting the Core Uno proxy object
// It will call disposing and make sure we clear all our references
{
Reference<XTerminateListener> xCore(
@@ -587,7 +587,7 @@ namespace comphelper
m_Active = false;
}
- // private static UiEventsLogger_Impl
+ // private static UiEventsLogger_Impl
bool UiEventsLogger_Impl::shouldActivate()
{
return getEnabledFromCfg() && getEnabledFromCoreController();
diff --git a/comphelper/source/misc/weak.cxx b/comphelper/source/misc/weak.cxx
index 247554495815..51a7ef3be0c0 100644
--- a/comphelper/source/misc/weak.cxx
+++ b/comphelper/source/misc/weak.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ OWeakTypeObject::~OWeakTypeObject()
{
}
-Any SAL_CALL OWeakTypeObject::queryInterface(const Type & rType ) throw (RuntimeException)
+Any SAL_CALL OWeakTypeObject::queryInterface(const Type & rType ) throw (RuntimeException)
{
if( rType == XTypeProvider::static_type() )
return Any( Reference< XTypeProvider >(this) );
@@ -53,12 +53,12 @@ Any SAL_CALL OWeakTypeObject::queryInterface(const Type & rType ) throw (Runti
return ::cppu::OWeakObject::queryInterface( rType );
}
-void SAL_CALL OWeakTypeObject::acquire() throw ()
+void SAL_CALL OWeakTypeObject::acquire() throw ()
{
::cppu::OWeakObject::acquire();
}
-void SAL_CALL OWeakTypeObject::release() throw ()
+void SAL_CALL OWeakTypeObject::release() throw ()
{
::cppu::OWeakObject::release();
}
diff --git a/comphelper/source/misc/weakeventlistener.cxx b/comphelper/source/misc/weakeventlistener.cxx
index 333727e47a45..a02edf3d8881 100644
--- a/comphelper/source/misc/weakeventlistener.cxx
+++ b/comphelper/source/misc/weakeventlistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
index 719ca340becd..9604a6832617 100644
--- a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
+++ b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.hxx b/comphelper/source/officeinstdir/officeinstallationdirectories.hxx
index 5139a70e9a30..42e2a8584d90 100644
--- a/comphelper/source/officeinstdir/officeinstallationdirectories.hxx
+++ b/comphelper/source/officeinstdir/officeinstallationdirectories.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/processfactory/componentfactory.cxx b/comphelper/source/processfactory/componentfactory.cxx
index ec72a25dc615..f2dd88d0af52 100644
--- a/comphelper/source/processfactory/componentfactory.cxx
+++ b/comphelper/source/processfactory/componentfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,6 +78,6 @@ Reference< XSingleServiceFactory > loadLibComponentFactory(
rLibName, OUString(), rImplName, xSF, xKey ), UNO_QUERY );
}
-} // namespace comphelper
+} // namespace comphelper
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/processfactory/processfactory.cxx b/comphelper/source/processfactory/processfactory.cxx
index f9b2218f7018..8ec425295965 100644
--- a/comphelper/source/processfactory/processfactory.cxx
+++ b/comphelper/source/processfactory/processfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/property/ChainablePropertySet.cxx b/comphelper/source/property/ChainablePropertySet.cxx
index a8329919502d..6d0fc4fc7fd1 100644
--- a/comphelper/source/property/ChainablePropertySet.cxx
+++ b/comphelper/source/property/ChainablePropertySet.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,13 +50,13 @@ ChainablePropertySet::ChainablePropertySet( comphelper::ChainablePropertySetInfo
{
}
-ChainablePropertySet::~ChainablePropertySet()
+ChainablePropertySet::~ChainablePropertySet()
throw()
{
}
// XPropertySet
-Reference< XPropertySetInfo > SAL_CALL ChainablePropertySet::getPropertySetInfo( )
+Reference< XPropertySetInfo > SAL_CALL ChainablePropertySet::getPropertySetInfo( )
throw(RuntimeException)
{
return mxInfo;
@@ -74,7 +74,7 @@ void ChainablePropertySet::unlockMutex()
mpMutex->release();
}
-void SAL_CALL ChainablePropertySet::setPropertyValue( const ::rtl::OUString& rPropertyName, const Any& rValue )
+void SAL_CALL ChainablePropertySet::setPropertyValue( const ::rtl::OUString& rPropertyName, const Any& rValue )
throw(UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
@@ -92,7 +92,7 @@ void SAL_CALL ChainablePropertySet::setPropertyValue( const ::rtl::OUString& rPr
_postSetValues();
}
-Any SAL_CALL ChainablePropertySet::getPropertyValue( const ::rtl::OUString& rPropertyName )
+Any SAL_CALL ChainablePropertySet::getPropertyValue( const ::rtl::OUString& rPropertyName )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
@@ -113,32 +113,32 @@ Any SAL_CALL ChainablePropertySet::getPropertyValue( const ::rtl::OUString& rPro
return aAny;
}
-void SAL_CALL ChainablePropertySet::addPropertyChangeListener( const ::rtl::OUString&, const Reference< XPropertyChangeListener >& )
+void SAL_CALL ChainablePropertySet::addPropertyChangeListener( const ::rtl::OUString&, const Reference< XPropertyChangeListener >& )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
// todo
}
-void SAL_CALL ChainablePropertySet::removePropertyChangeListener( const ::rtl::OUString&, const Reference< XPropertyChangeListener >& )
+void SAL_CALL ChainablePropertySet::removePropertyChangeListener( const ::rtl::OUString&, const Reference< XPropertyChangeListener >& )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
// todo
}
-void SAL_CALL ChainablePropertySet::addVetoableChangeListener( const ::rtl::OUString&, const Reference< XVetoableChangeListener >& )
+void SAL_CALL ChainablePropertySet::addVetoableChangeListener( const ::rtl::OUString&, const Reference< XVetoableChangeListener >& )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
// todo
}
-void SAL_CALL ChainablePropertySet::removeVetoableChangeListener( const ::rtl::OUString&, const Reference< XVetoableChangeListener >& )
+void SAL_CALL ChainablePropertySet::removeVetoableChangeListener( const ::rtl::OUString&, const Reference< XVetoableChangeListener >& )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
// todo
}
// XMultiPropertySet
-void SAL_CALL ChainablePropertySet::setPropertyValues( const Sequence< ::rtl::OUString >& aPropertyNames, const Sequence< Any >& aValues )
+void SAL_CALL ChainablePropertySet::setPropertyValues( const Sequence< ::rtl::OUString >& aPropertyNames, const Sequence< Any >& aValues )
throw(PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
@@ -172,7 +172,7 @@ void SAL_CALL ChainablePropertySet::setPropertyValues( const Sequence< ::rtl::OU
}
}
-Sequence< Any > SAL_CALL ChainablePropertySet::getPropertyValues( const Sequence< ::rtl::OUString >& aPropertyNames )
+Sequence< Any > SAL_CALL ChainablePropertySet::getPropertyValues( const Sequence< ::rtl::OUString >& aPropertyNames )
throw(RuntimeException)
{
// acquire mutex in c-tor and releases it in the d-tor (exception safe!).
@@ -206,26 +206,26 @@ Sequence< Any > SAL_CALL ChainablePropertySet::getPropertyValues( const Sequence
return aValues;
}
-void SAL_CALL ChainablePropertySet::addPropertiesChangeListener( const Sequence< ::rtl::OUString >&, const Reference< XPropertiesChangeListener >& )
+void SAL_CALL ChainablePropertySet::addPropertiesChangeListener( const Sequence< ::rtl::OUString >&, const Reference< XPropertiesChangeListener >& )
throw(RuntimeException)
{
// todo
}
-void SAL_CALL ChainablePropertySet::removePropertiesChangeListener( const Reference< XPropertiesChangeListener >& )
+void SAL_CALL ChainablePropertySet::removePropertiesChangeListener( const Reference< XPropertiesChangeListener >& )
throw(RuntimeException)
{
// todo
}
-void SAL_CALL ChainablePropertySet::firePropertiesChangeEvent( const Sequence< ::rtl::OUString >&, const Reference< XPropertiesChangeListener >& )
+void SAL_CALL ChainablePropertySet::firePropertiesChangeEvent( const Sequence< ::rtl::OUString >&, const Reference< XPropertiesChangeListener >& )
throw(RuntimeException)
{
// todo
}
// XPropertyState
-PropertyState SAL_CALL ChainablePropertySet::getPropertyState( const ::rtl::OUString& PropertyName )
+PropertyState SAL_CALL ChainablePropertySet::getPropertyState( const ::rtl::OUString& PropertyName )
throw(UnknownPropertyException, RuntimeException)
{
PropertyInfoHash::const_iterator aIter = mpInfo->maMap.find( PropertyName );
@@ -241,7 +241,7 @@ PropertyState SAL_CALL ChainablePropertySet::getPropertyState( const ::rtl::OUSt
return aState;
}
-Sequence< PropertyState > SAL_CALL ChainablePropertySet::getPropertyStates( const Sequence< ::rtl::OUString >& rPropertyNames )
+Sequence< PropertyState > SAL_CALL ChainablePropertySet::getPropertyStates( const Sequence< ::rtl::OUString >& rPropertyNames )
throw(UnknownPropertyException, RuntimeException)
{
const sal_Int32 nCount = rPropertyNames.getLength();
@@ -267,7 +267,7 @@ Sequence< PropertyState > SAL_CALL ChainablePropertySet::getPropertyStates( cons
return aStates;
}
-void SAL_CALL ChainablePropertySet::setPropertyToDefault( const ::rtl::OUString& rPropertyName )
+void SAL_CALL ChainablePropertySet::setPropertyToDefault( const ::rtl::OUString& rPropertyName )
throw(UnknownPropertyException, RuntimeException)
{
PropertyInfoHash::const_iterator aIter = mpInfo->maMap.find ( rPropertyName );
@@ -277,7 +277,7 @@ void SAL_CALL ChainablePropertySet::setPropertyToDefault( const ::rtl::OUString&
_setPropertyToDefault( *((*aIter).second) );
}
-Any SAL_CALL ChainablePropertySet::getPropertyDefault( const ::rtl::OUString& rPropertyName )
+Any SAL_CALL ChainablePropertySet::getPropertyDefault( const ::rtl::OUString& rPropertyName )
throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
PropertyInfoHash::const_iterator aIter = mpInfo->maMap.find ( rPropertyName );
@@ -293,7 +293,7 @@ void ChainablePropertySet::_preGetPropertyState ()
OSL_ENSURE( sal_False, "you have to implement this yourself!");
}
-void ChainablePropertySet::_getPropertyState( const comphelper::PropertyInfo&, PropertyState& )
+void ChainablePropertySet::_getPropertyState( const comphelper::PropertyInfo&, PropertyState& )
throw(UnknownPropertyException )
{
OSL_ENSURE( sal_False, "you have to implement this yourself!");
@@ -305,13 +305,13 @@ void ChainablePropertySet::_postGetPropertyState ()
OSL_ENSURE( sal_False, "you have to implement this yourself!");
}
-void ChainablePropertySet::_setPropertyToDefault( const comphelper::PropertyInfo& )
+void ChainablePropertySet::_setPropertyToDefault( const comphelper::PropertyInfo& )
throw(UnknownPropertyException )
{
OSL_ENSURE( sal_False, "you have to implement this yourself!");
}
-Any ChainablePropertySet::_getPropertyDefault( const comphelper::PropertyInfo& )
+Any ChainablePropertySet::_getPropertyDefault( const comphelper::PropertyInfo& )
throw(UnknownPropertyException, WrappedTargetException )
{
OSL_ENSURE( sal_False, "you have to implement this yourself!");
diff --git a/comphelper/source/property/ChainablePropertySetInfo.cxx b/comphelper/source/property/ChainablePropertySetInfo.cxx
index c8962e755013..acfec2f39119 100644
--- a/comphelper/source/property/ChainablePropertySetInfo.cxx
+++ b/comphelper/source/property/ChainablePropertySetInfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,28 +45,28 @@ using ::com::sun::star::beans::Property;
using ::com::sun::star::beans::XPropertySetInfo;
using ::com::sun::star::beans::UnknownPropertyException;
-ChainablePropertySetInfo::ChainablePropertySetInfo()
+ChainablePropertySetInfo::ChainablePropertySetInfo()
throw()
{
}
-ChainablePropertySetInfo::ChainablePropertySetInfo( PropertyInfo* pMap )
+ChainablePropertySetInfo::ChainablePropertySetInfo( PropertyInfo* pMap )
throw()
{
add ( pMap );
}
-ChainablePropertySetInfo::~ChainablePropertySetInfo()
+ChainablePropertySetInfo::~ChainablePropertySetInfo()
throw()
{
}
-void ChainablePropertySetInfo::add( PropertyInfo* pMap, sal_Int32 nCount )
+void ChainablePropertySetInfo::add( PropertyInfo* pMap, sal_Int32 nCount )
throw()
{
- // nCount < 0 => add all
- // nCount == 0 => add nothing
- // nCount > 0 => add at most nCount entries
+ // nCount < 0 => add all
+ // nCount == 0 => add nothing
+ // nCount > 0 => add at most nCount entries
if( maProperties.getLength() )
maProperties.realloc( 0 );
@@ -83,7 +83,7 @@ void ChainablePropertySetInfo::add( PropertyInfo* pMap, sal_Int32 nCount )
}
}
-void ChainablePropertySetInfo::remove( const rtl::OUString& aName )
+void ChainablePropertySetInfo::remove( const rtl::OUString& aName )
throw()
{
maMap.erase ( aName );
@@ -91,7 +91,7 @@ void ChainablePropertySetInfo::remove( const rtl::OUString& aName )
maProperties.realloc( 0 );
}
-Sequence< ::Property > SAL_CALL ChainablePropertySetInfo::getProperties()
+Sequence< ::Property > SAL_CALL ChainablePropertySetInfo::getProperties()
throw(::com::sun::star::uno::RuntimeException)
{
sal_Int32 nSize = maMap.size();
@@ -117,7 +117,7 @@ Sequence< ::Property > SAL_CALL ChainablePropertySetInfo::getProperties()
return maProperties;
}
-Property SAL_CALL ChainablePropertySetInfo::getPropertyByName( const ::rtl::OUString& rName )
+Property SAL_CALL ChainablePropertySetInfo::getPropertyByName( const ::rtl::OUString& rName )
throw(::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
PropertyInfoHash::iterator aIter = maMap.find( rName );
@@ -136,7 +136,7 @@ Property SAL_CALL ChainablePropertySetInfo::getPropertyByName( const ::rtl::OUSt
return aProperty;
}
-sal_Bool SAL_CALL ChainablePropertySetInfo::hasPropertyByName( const ::rtl::OUString& rName )
+sal_Bool SAL_CALL ChainablePropertySetInfo::hasPropertyByName( const ::rtl::OUString& rName )
throw(::com::sun::star::uno::RuntimeException)
{
return static_cast < sal_Bool > ( maMap.find ( rName ) != maMap.end() );
diff --git a/comphelper/source/property/MasterPropertySetInfo.cxx b/comphelper/source/property/MasterPropertySetInfo.cxx
index fd5ec0fe7355..644c6b21de9b 100644
--- a/comphelper/source/property/MasterPropertySetInfo.cxx
+++ b/comphelper/source/property/MasterPropertySetInfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,18 +45,18 @@ using ::com::sun::star::beans::Property;
using ::com::sun::star::beans::XPropertySetInfo;
using ::com::sun::star::beans::UnknownPropertyException;
-MasterPropertySetInfo::MasterPropertySetInfo()
+MasterPropertySetInfo::MasterPropertySetInfo()
throw()
{
}
-MasterPropertySetInfo::MasterPropertySetInfo( PropertyInfo* pMap )
+MasterPropertySetInfo::MasterPropertySetInfo( PropertyInfo* pMap )
throw()
{
add ( pMap );
}
-MasterPropertySetInfo::~MasterPropertySetInfo()
+MasterPropertySetInfo::~MasterPropertySetInfo()
throw()
{
PropertyDataHash::iterator aEnd = maMap.end(), aIter = maMap.begin();
@@ -67,12 +67,12 @@ MasterPropertySetInfo::~MasterPropertySetInfo()
}
}
-void MasterPropertySetInfo::add( PropertyInfo* pMap, sal_Int32 nCount, sal_uInt8 nMapId )
+void MasterPropertySetInfo::add( PropertyInfo* pMap, sal_Int32 nCount, sal_uInt8 nMapId )
throw()
{
- // nCount < 0 => add all
- // nCount == 0 => add nothing
- // nCount > 0 => add at most nCount entries
+ // nCount < 0 => add all
+ // nCount == 0 => add nothing
+ // nCount > 0 => add at most nCount entries
if( maProperties.getLength() )
maProperties.realloc( 0 );
@@ -89,7 +89,7 @@ void MasterPropertySetInfo::add( PropertyInfo* pMap, sal_Int32 nCount, sal_uInt8
}
}
-void MasterPropertySetInfo::add( PropertyInfoHash &rHash, sal_uInt8 nMapId )
+void MasterPropertySetInfo::add( PropertyInfoHash &rHash, sal_uInt8 nMapId )
throw()
{
if( maProperties.getLength() )
@@ -108,7 +108,7 @@ void MasterPropertySetInfo::add( PropertyInfoHash &rHash, sal_uInt8 nMapId )
}
}
-void MasterPropertySetInfo::remove( const rtl::OUString& aName )
+void MasterPropertySetInfo::remove( const rtl::OUString& aName )
throw()
{
maMap.erase ( aName );
@@ -116,7 +116,7 @@ void MasterPropertySetInfo::remove( const rtl::OUString& aName )
maProperties.realloc( 0 );
}
-Sequence< ::Property > SAL_CALL MasterPropertySetInfo::getProperties()
+Sequence< ::Property > SAL_CALL MasterPropertySetInfo::getProperties()
throw(::com::sun::star::uno::RuntimeException)
{
sal_Int32 nSize = maMap.size();
@@ -142,7 +142,7 @@ Sequence< ::Property > SAL_CALL MasterPropertySetInfo::getProperties()
return maProperties;
}
-Property SAL_CALL MasterPropertySetInfo::getPropertyByName( const ::rtl::OUString& rName )
+Property SAL_CALL MasterPropertySetInfo::getPropertyByName( const ::rtl::OUString& rName )
throw(::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
PropertyDataHash::iterator aIter = maMap.find( rName );
@@ -157,12 +157,12 @@ Property SAL_CALL MasterPropertySetInfo::getPropertyByName( const ::rtl::OUStrin
const Type* pType;
GenerateCppuType ( pInfo->meCppuType, pType );
aProperty.Type = *pType;
-
+
aProperty.Attributes = pInfo->mnAttributes;
return aProperty;
}
-sal_Bool SAL_CALL MasterPropertySetInfo::hasPropertyByName( const ::rtl::OUString& rName )
+sal_Bool SAL_CALL MasterPropertySetInfo::hasPropertyByName( const ::rtl::OUString& rName )
throw(::com::sun::star::uno::RuntimeException)
{
return static_cast < sal_Bool > ( maMap.find ( rName ) != maMap.end() );
diff --git a/comphelper/source/property/TypeGeneration.cxx b/comphelper/source/property/TypeGeneration.cxx
index c3d4d5248c15..29932eae0a26 100644
--- a/comphelper/source/property/TypeGeneration.cxx
+++ b/comphelper/source/property/TypeGeneration.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -149,65 +149,65 @@ namespace comphelper
{
switch( eType )
{
- case CPPUTYPE_BOOLEAN: pType = &::getBooleanCppuType(); break;
- case CPPUTYPE_INT8: pType = &::getCppuType( (sal_Int8*)0 ); break;
- case CPPUTYPE_INT16: pType = &::getCppuType( (sal_Int16*)0 ); break;
- case CPPUTYPE_INT32: pType = &::getCppuType( (sal_Int32*)0 ); break;
+ case CPPUTYPE_BOOLEAN: pType = &::getBooleanCppuType(); break;
+ case CPPUTYPE_INT8: pType = &::getCppuType( (sal_Int8*)0 ); break;
+ case CPPUTYPE_INT16: pType = &::getCppuType( (sal_Int16*)0 ); break;
+ case CPPUTYPE_INT32: pType = &::getCppuType( (sal_Int32*)0 ); break;
- case CPPUTYPE_DOUBLE: pType = &::getCppuType( (double*)0 ); break;
- case CPPUTYPE_FLOAT: pType = &::getCppuType( (float*)0 ); break;
- case CPPUTYPE_OUSTRING: pType = &::getCppuType( (OUString*)0 ); break;
- case CPPUTYPE_FONTSLANT: pType = &::getCppuType( (FontSlant*)0 ); break;
- case CPPUTYPE_LOCALE: pType = &::getCppuType( (Locale*)0 ); break;
- case CPPUTYPE_PROPERTYVALUE:pType = &::getCppuType( (Sequence<PropertyValue>*)0 ); break;
- case CPPUTYPE_PROPERTYVALUES: pType = &::getCppuType( (Sequence<PropertyValues>*)0 ); break;
- case CPPUTYPE_BORDERLINE: pType = &::getCppuType( (table::BorderLine*)0 ); break;
- case CPPUTYPE_BREAK: pType = &::getCppuType( (style::BreakType*)0 ); break;
- case CPPUTYPE_GRAPHICLOC: pType = &::getCppuType( (style::GraphicLocation*)0 ); break;
- case CPPUTYPE_DROPCAPFMT: pType = &::getCppuType( (style::DropCapFormat*)0 ); break;
- case CPPUTYPE_LINESPACE: pType = &::getCppuType( (style::LineSpacing*)0 ); break;
+ case CPPUTYPE_DOUBLE: pType = &::getCppuType( (double*)0 ); break;
+ case CPPUTYPE_FLOAT: pType = &::getCppuType( (float*)0 ); break;
+ case CPPUTYPE_OUSTRING: pType = &::getCppuType( (OUString*)0 ); break;
+ case CPPUTYPE_FONTSLANT: pType = &::getCppuType( (FontSlant*)0 ); break;
+ case CPPUTYPE_LOCALE: pType = &::getCppuType( (Locale*)0 ); break;
+ case CPPUTYPE_PROPERTYVALUE:pType = &::getCppuType( (Sequence<PropertyValue>*)0 ); break;
+ case CPPUTYPE_PROPERTYVALUES: pType = &::getCppuType( (Sequence<PropertyValues>*)0 ); break;
+ case CPPUTYPE_BORDERLINE: pType = &::getCppuType( (table::BorderLine*)0 ); break;
+ case CPPUTYPE_BREAK: pType = &::getCppuType( (style::BreakType*)0 ); break;
+ case CPPUTYPE_GRAPHICLOC: pType = &::getCppuType( (style::GraphicLocation*)0 ); break;
+ case CPPUTYPE_DROPCAPFMT: pType = &::getCppuType( (style::DropCapFormat*)0 ); break;
+ case CPPUTYPE_LINESPACE: pType = &::getCppuType( (style::LineSpacing*)0 ); break;
- case CPPUTYPE_AWTSIZE: pType = &::getCppuType( (awt::Size*)0 ); break;
- case CPPUTYPE_SHADOWFMT: pType = &::getCppuType( (table::ShadowFormat*)0 ); break;
- case CPPUTYPE_TBLCOLSEP: pType = &::getCppuType( (Sequence<text::TableColumnSeparator>*)0 ); break;
- case CPPUTYPE_PNTSEQSEQ: pType = &::getCppuType( (PointSequenceSequence*)0 ); break;
- case CPPUTYPE_DOCIDXMRK: pType = &::getCppuType( (Sequence< Reference< XDocumentIndexMark > >*)0 ); break;
- case CPPUTYPE_SEQINT8: pType = &::getCppuType( (Sequence<sal_Int8>*)0 ); break;
- case CPPUTYPE_SEQTABSTOP: pType = &::getCppuType( (Sequence<style::TabStop>*)0 ); break;
+ case CPPUTYPE_AWTSIZE: pType = &::getCppuType( (awt::Size*)0 ); break;
+ case CPPUTYPE_SHADOWFMT: pType = &::getCppuType( (table::ShadowFormat*)0 ); break;
+ case CPPUTYPE_TBLCOLSEP: pType = &::getCppuType( (Sequence<text::TableColumnSeparator>*)0 ); break;
+ case CPPUTYPE_PNTSEQSEQ: pType = &::getCppuType( (PointSequenceSequence*)0 ); break;
+ case CPPUTYPE_DOCIDXMRK: pType = &::getCppuType( (Sequence< Reference< XDocumentIndexMark > >*)0 ); break;
+ case CPPUTYPE_SEQINT8: pType = &::getCppuType( (Sequence<sal_Int8>*)0 ); break;
+ case CPPUTYPE_SEQTABSTOP: pType = &::getCppuType( (Sequence<style::TabStop>*)0 ); break;
case CPPUTYPE_SEQANCHORTYPE:pType = &::getCppuType( (Sequence<text::TextContentAnchorType>*)0 ); break;
- case CPPUTYPE_SEQDEPTXTFLD: pType = &::getCppuType( (Sequence<Reference<XDependentTextField> >*)0); break;
- case CPPUTYPE_TXTCNTANCHOR: pType = &::getCppuType( (text::TextContentAnchorType*)0 ); break;
- case CPPUTYPE_WRAPTXTMODE: pType = &::getCppuType( (text::WrapTextMode*)0 ); break;
+ case CPPUTYPE_SEQDEPTXTFLD: pType = &::getCppuType( (Sequence<Reference<XDependentTextField> >*)0); break;
+ case CPPUTYPE_TXTCNTANCHOR: pType = &::getCppuType( (text::TextContentAnchorType*)0 ); break;
+ case CPPUTYPE_WRAPTXTMODE: pType = &::getCppuType( (text::WrapTextMode*)0 ); break;
- case CPPUTYPE_COLORMODE: pType = &::getCppuType( (drawing::ColorMode*)0 ); break;
- case CPPUTYPE_PAGESTYLELAY: pType = &::getCppuType( (style::PageStyleLayout*)0 ); break;
- case CPPUTYPE_VERTALIGN: pType = &::getCppuType( (style::VerticalAlignment*)0 ); break;
- case CPPUTYPE_TABLEBORDER: pType = &::getCppuType( (table::TableBorder*)0 ); break;
- case CPPUTYPE_GRFCROP: pType = &::getCppuType( (text::GraphicCrop*)0 ); break;
- case CPPUTYPE_SECTFILELNK: pType = &::getCppuType( (text::SectionFileLink*)0 ); break;
- case CPPUTYPE_PAGENUMTYPE: pType = &::getCppuType( (text::PageNumberType*)0); break;
- case CPPUTYPE_DATETIME: pType = &::getCppuType( (util::DateTime*)0 ); break;
- case CPPUTYPE_DATE: pType = &::getCppuType( (util::Date*)0 ); break;
+ case CPPUTYPE_COLORMODE: pType = &::getCppuType( (drawing::ColorMode*)0 ); break;
+ case CPPUTYPE_PAGESTYLELAY: pType = &::getCppuType( (style::PageStyleLayout*)0 ); break;
+ case CPPUTYPE_VERTALIGN: pType = &::getCppuType( (style::VerticalAlignment*)0 ); break;
+ case CPPUTYPE_TABLEBORDER: pType = &::getCppuType( (table::TableBorder*)0 ); break;
+ case CPPUTYPE_GRFCROP: pType = &::getCppuType( (text::GraphicCrop*)0 ); break;
+ case CPPUTYPE_SECTFILELNK: pType = &::getCppuType( (text::SectionFileLink*)0 ); break;
+ case CPPUTYPE_PAGENUMTYPE: pType = &::getCppuType( (text::PageNumberType*)0); break;
+ case CPPUTYPE_DATETIME: pType = &::getCppuType( (util::DateTime*)0 ); break;
+ case CPPUTYPE_DATE: pType = &::getCppuType( (util::Date*)0 ); break;
- case CPPUTYPE_REFINTERFACE: pType = &::getCppuType( (Reference<XInterface>*)0 ); break;
- case CPPUTYPE_REFIDXREPL: pType = &::getCppuType( (Reference<container::XIndexReplace>*)0 ); break;
- case CPPUTYPE_REFNAMECNT: pType = &::getCppuType( (Reference<container::XNameContainer>*)0 ); break;
- case CPPUTYPE_REFTEXTFRAME: pType = &::getCppuType( (Reference<text::XTextFrame>*)0 ); break;
- case CPPUTYPE_REFTEXTSECTION: pType = &::getCppuType( (Reference<text::XTextSection>*)0 ); break;
- case CPPUTYPE_REFFOOTNOTE: pType = &::getCppuType( (Reference<text::XFootnote>*)0 ); break;
- case CPPUTYPE_REFTEXT: pType = &::getCppuType( (Reference<text::XText>*)0 ); break;
- case CPPUTYPE_REFTEXTCOL: pType = &::getCppuType( (Reference<text::XTextColumns>*)0 ); break;
- case CPPUTYPE_REFFORBCHARS: pType = &::getCppuType( (Reference<XForbiddenCharacters>*)0 ); break;
- case CPPUTYPE_REFIDXCNTNR: pType = &::getCppuType( (Reference<XIndexContainer>*)0 ); break;
- case CPPUTYPE_REFTEXTCNTNT: pType = &::getCppuType( (Reference<XTextContent>*)0 ); break;
- case CPPUTYPE_REFBITMAP: pType = &::getCppuType( (Reference<awt::XBitmap>*)0 ); break;
- case CPPUTYPE_REFNMREPLACE: pType = &::getCppuType( (Reference<container::XNameReplace>*)0 ); break;
- case CPPUTYPE_REFCELL: pType = &::getCppuType( (Reference<table::XCell>*)0 ); break;
- case CPPUTYPE_REFDOCINDEX: pType = &::getCppuType( (Reference<text::XDocumentIndex>*)0 ); break;
- case CPPUTYPE_REFDOCIDXMRK: pType = &::getCppuType( (Reference<text::XDocumentIndexMark>*)0 ); break;
- case CPPUTYPE_REFTXTFIELD: pType = &::getCppuType( (Reference<text::XTextField>*)0 ); break;
- case CPPUTYPE_REFTXTRANGE: pType = &::getCppuType( (Reference<text::XTextRange>*)0 ); break;
- case CPPUTYPE_REFTXTTABLE: pType = &::getCppuType( (Reference<text::XTextTable>*)0 ); break;
+ case CPPUTYPE_REFINTERFACE: pType = &::getCppuType( (Reference<XInterface>*)0 ); break;
+ case CPPUTYPE_REFIDXREPL: pType = &::getCppuType( (Reference<container::XIndexReplace>*)0 ); break;
+ case CPPUTYPE_REFNAMECNT: pType = &::getCppuType( (Reference<container::XNameContainer>*)0 ); break;
+ case CPPUTYPE_REFTEXTFRAME: pType = &::getCppuType( (Reference<text::XTextFrame>*)0 ); break;
+ case CPPUTYPE_REFTEXTSECTION: pType = &::getCppuType( (Reference<text::XTextSection>*)0 ); break;
+ case CPPUTYPE_REFFOOTNOTE: pType = &::getCppuType( (Reference<text::XFootnote>*)0 ); break;
+ case CPPUTYPE_REFTEXT: pType = &::getCppuType( (Reference<text::XText>*)0 ); break;
+ case CPPUTYPE_REFTEXTCOL: pType = &::getCppuType( (Reference<text::XTextColumns>*)0 ); break;
+ case CPPUTYPE_REFFORBCHARS: pType = &::getCppuType( (Reference<XForbiddenCharacters>*)0 ); break;
+ case CPPUTYPE_REFIDXCNTNR: pType = &::getCppuType( (Reference<XIndexContainer>*)0 ); break;
+ case CPPUTYPE_REFTEXTCNTNT: pType = &::getCppuType( (Reference<XTextContent>*)0 ); break;
+ case CPPUTYPE_REFBITMAP: pType = &::getCppuType( (Reference<awt::XBitmap>*)0 ); break;
+ case CPPUTYPE_REFNMREPLACE: pType = &::getCppuType( (Reference<container::XNameReplace>*)0 ); break;
+ case CPPUTYPE_REFCELL: pType = &::getCppuType( (Reference<table::XCell>*)0 ); break;
+ case CPPUTYPE_REFDOCINDEX: pType = &::getCppuType( (Reference<text::XDocumentIndex>*)0 ); break;
+ case CPPUTYPE_REFDOCIDXMRK: pType = &::getCppuType( (Reference<text::XDocumentIndexMark>*)0 ); break;
+ case CPPUTYPE_REFTXTFIELD: pType = &::getCppuType( (Reference<text::XTextField>*)0 ); break;
+ case CPPUTYPE_REFTXTRANGE: pType = &::getCppuType( (Reference<text::XTextRange>*)0 ); break;
+ case CPPUTYPE_REFTXTTABLE: pType = &::getCppuType( (Reference<text::XTextTable>*)0 ); break;
case CPPUTYPE_AWTPOINT: pType = &::getCppuType( (awt::Point*)0 ); break;
case CPPUTYPE_REFLIBCONTAINER: pType = &::getCppuType( (Reference< script::XLibraryContainer >*)0); break;
case CPPUTYPE_OUSTRINGS: pType = &::getCppuType( (Sequence< ::rtl::OUString >*)0); break;
diff --git a/comphelper/source/property/composedprops.cxx b/comphelper/source/property/composedprops.cxx
index 74d1b23891f9..cf47b049ef36 100644
--- a/comphelper/source/property/composedprops.cxx
+++ b/comphelper/source/property/composedprops.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ namespace comphelper
class OComposedPropertySetInfo : public ::cppu::WeakImplHelper1< XPropertySetInfo >
{
private:
- Sequence< Property> m_aProperties;
+ Sequence< Property> m_aProperties;
public:
OComposedPropertySetInfo(const Sequence< Property>& _rProperties);
@@ -100,7 +100,7 @@ namespace comphelper
if (xMasterSet.is())
aMasterProps = xMasterSet->getPropertySetInfo()->getProperties();
sal_Int32 nMasterPropsCount = aMasterProps.getLength();
- const Property* pMasterProps = aMasterProps.getConstArray();
+ const Property* pMasterProps = aMasterProps.getConstArray();
// check which of the master properties should be included
Sequence<sal_Bool> aInclusionFlags(nMasterPropsCount);
@@ -129,7 +129,7 @@ namespace comphelper
xSecondarySet = m_aSingleSets[i];
aSecondaryProperties = xSecondarySet->getPropertySetInfo()->getProperties();
nSecondaryPropertyCount = aSecondaryProperties.getLength();
- const Property* pSecondaryProperties = aSecondaryProperties.getConstArray();
+ const Property* pSecondaryProperties = aSecondaryProperties.getConstArray();
// search the current primary property in the secondary property sequence
sal_Int32 k=0;
@@ -147,7 +147,7 @@ namespace comphelper
sal_Int32 nOverallProperties = 0;
for (sal_Int32 nCounter=0; nCounter<nMasterPropsCount; ++nCounter)
{
- if (pInclusionFlags[nCounter])
+ if (pInclusionFlags[nCounter])
++nOverallProperties;
}
@@ -201,19 +201,19 @@ namespace comphelper
PropertyState eSecondaryState;
for (sal_Int32 i=1; i<nSingleSets; ++i)
{
- Reference< XPropertySet > xSecondary(m_aSingleSets[i]);
- Reference< XPropertyState > xSecondaryState(xSecondary, UNO_QUERY);
+ Reference< XPropertySet > xSecondary(m_aSingleSets[i]);
+ Reference< XPropertyState > xSecondaryState(xSecondary, UNO_QUERY);
// the secondary state
eSecondaryState = PropertyState_DIRECT_VALUE;
- if(xSecondaryState.is())
+ if(xSecondaryState.is())
eSecondaryState = xSecondaryState->getPropertyState(_rPropertyName);
// the secondary value
Any aSecondaryValue(xSecondary->getPropertyValue(_rPropertyName));
- if ( (PropertyState_AMBIGUOUS_VALUE == eSecondaryState) // secondary is ambiguous
- || !::comphelper::compare(aPrimaryValue, aSecondaryValue) // unequal values
+ if ( (PropertyState_AMBIGUOUS_VALUE == eSecondaryState) // secondary is ambiguous
+ || !::comphelper::compare(aPrimaryValue, aSecondaryValue) // unequal values
)
{
eState = PropertyState_AMBIGUOUS_VALUE;
@@ -247,7 +247,7 @@ namespace comphelper
sal_Int32 nSingleSets = m_aSingleSets.size();
for (sal_Int32 i=0; i<nSingleSets; ++i)
{
- Reference< XPropertyState > xState(m_aSingleSets[i], UNO_QUERY);
+ Reference< XPropertyState > xState(m_aSingleSets[i], UNO_QUERY);
if(xState.is())
xState->setPropertyToDefault(_rPropertyName);
}
@@ -325,7 +325,7 @@ namespace comphelper
Property SAL_CALL OComposedPropertySetInfo::getPropertyByName( const ::rtl::OUString& _rName ) throw(UnknownPropertyException, RuntimeException)
{
sal_Int32 nLength = m_aProperties.getLength();
- const Property* pProps = m_aProperties.getConstArray();
+ const Property* pProps = m_aProperties.getConstArray();
// TODO TODO TODO: this O(n) search really sucks ...
for (sal_Int32 i=0; i<nLength; ++i, ++pProps)
{
@@ -340,11 +340,11 @@ namespace comphelper
sal_Bool SAL_CALL OComposedPropertySetInfo::hasPropertyByName( const ::rtl::OUString& _rName ) throw(RuntimeException)
{
sal_Int32 nLength = m_aProperties.getLength();
- const Property* pProps = m_aProperties.getConstArray();
+ const Property* pProps = m_aProperties.getConstArray();
// TODO TODO TODO: this O(n) search really sucks ...
for( sal_Int32 i=0; i<nLength; ++i,++pProps )
{
- if(pProps->Name == _rName)
+ if(pProps->Name == _rName)
return sal_True;
}
@@ -352,7 +352,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/property/genericpropertyset.cxx b/comphelper/source/property/genericpropertyset.cxx
index 123e9ef2f784..6e4ccb72e6dd 100644
--- a/comphelper/source/property/genericpropertyset.cxx
+++ b/comphelper/source/property/genericpropertyset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,14 +63,14 @@ namespace comphelper
Mutex maMutex ;
} ;
- class GenericPropertySet : public OWeakAggObject,
+ class GenericPropertySet : public OWeakAggObject,
public XServiceInfo,
public XTypeProvider,
public PropertySetHelper,
private IMPL_GenericPropertySet_MutexContainer
{
private:
- GenericAnyMapImpl maAnyMap;
+ GenericAnyMapImpl maAnyMap;
::cppu::OMultiTypeInterfaceContainerHelperVar< ::rtl::OUString,UStringHash,UStringEqual> m_aListener;
protected:
diff --git a/comphelper/source/property/opropertybag.cxx b/comphelper/source/property/opropertybag.cxx
index 4adc7bc4e46b..a93318ffdc06 100644
--- a/comphelper/source/property/opropertybag.cxx
+++ b/comphelper/source/property/opropertybag.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -228,7 +228,7 @@ namespace comphelper
// So, everything of XSet except insert is implemented empty
return sal_False;
}
-
+
//--------------------------------------------------------------------
void SAL_CALL OPropertyBag::insert( const Any& _element ) throw (IllegalArgumentException, ElementExistException, RuntimeException)
{
@@ -247,7 +247,7 @@ namespace comphelper
)
throw IllegalTypeException( ::rtl::OUString(), *this );
- m_aDynamicProperties.addVoidProperty( aProperty.Name, aProperty.Type, findFreeHandle(), aProperty.Attributes );
+ m_aDynamicProperties.addVoidProperty( aProperty.Name, aProperty.Type, findFreeHandle(), aProperty.Attributes );
// our property info is dirty
m_pArrayHelper.reset();
@@ -255,7 +255,7 @@ namespace comphelper
g.clear();
setModified(sal_True);
}
-
+
//--------------------------------------------------------------------
void SAL_CALL OPropertyBag::remove( const Any& /*aElement*/ ) throw (IllegalArgumentException, NoSuchElementException, RuntimeException)
{
@@ -356,7 +356,7 @@ namespace comphelper
)
throw IllegalTypeException( ::rtl::OUString(), *this );
- m_aDynamicProperties.addProperty( _rName, findFreeHandle(), _nAttributes, _rInitialValue );
+ m_aDynamicProperties.addProperty( _rName, findFreeHandle(), _nAttributes, _rInitialValue );
// our property info is dirty
m_pArrayHelper.reset();
diff --git a/comphelper/source/property/opropertybag.hxx b/comphelper/source/property/opropertybag.hxx
index 6d0a6e1f4f54..ce8fb299e6ba 100644
--- a/comphelper/source/property/opropertybag.hxx
+++ b/comphelper/source/property/opropertybag.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx
index ff3dd8ec9976..496dce0df30a 100644
--- a/comphelper/source/property/propagg.cxx
+++ b/comphelper/source/property/propagg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,8 +84,8 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
sal_Int32 nMergedProps = nDelegatorProps + nAggregateProps;
m_aProperties.realloc( nMergedProps );
- const Property* pAggregateProps = _rAggProperties.getConstArray();
- const Property* pDelegateProps = _rProperties.getConstArray();
+ const Property* pAggregateProps = _rAggProperties.getConstArray();
+ const Property* pDelegateProps = _rProperties.getConstArray();
Property* pMergedProps = m_aProperties.getArray();
// create the map for the delegator properties
@@ -111,11 +111,11 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
// no handle from the info service -> default
nHandle = nAggregateHandle++;
else
- { // check if we alread have a property with the given handle
+ { // check if we alread have a property with the given handle
const Property* pPropsTilNow = m_aProperties.getConstArray();
for ( sal_Int32 nCheck = 0; nCheck < nMPLoop; ++nCheck, ++pPropsTilNow )
if ( pPropsTilNow->Handle == nHandle )
- { // conflicts -> use another one (which we don't check anymore, assuming _nFirstAggregateId was large enough)
+ { // conflicts -> use another one (which we don't check anymore, assuming _nFirstAggregateId was large enough)
nHandle = nAggregateHandle++;
break;
}
@@ -125,7 +125,7 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
m_aPropertyAccessors[ nHandle ] = OPropertyAccessor( pMergedProps->Handle, nMPLoop, sal_True );
pMergedProps->Handle = nHandle;
}
- pMergedProps = m_aProperties.getArray(); // reset, needed again below
+ pMergedProps = m_aProperties.getArray(); // reset, needed again below
// sortieren der Properties nach Namen
::std::sort( pMergedProps, pMergedProps+nMergedProps, PropertyCompareByName());
@@ -302,7 +302,7 @@ sal_Int32 OPropertyArrayAggregationHelper::fillHandles(
else
{
// binary search is better
- sal_Int32 nCompVal = 1;
+ sal_Int32 nCompVal = 1;
const ::com::sun::star::beans::Property* pOldEnd = pEnd--;
const ::com::sun::star::beans::Property* pMid = pCur;
@@ -518,7 +518,7 @@ void SAL_CALL OPropertySetAggregationHelper::propertiesChange(const ::com::sun:
{
sal_Int32 nHandle = rPH.getHandleByName(pEvents->PropertyName);
if ( ( nHandle != -1 ) && !isCurrentlyForwardingProperty( nHandle ) )
- { // same as above : -1 is valid (73247) ...
+ { // same as above : -1 is valid (73247) ...
pHandles[nDest] = nHandle;
pNewValues[nDest] = pEvents->NewValue;
pOldValues[nDest] = pEvents->OldValue;
@@ -559,10 +559,10 @@ void OPropertySetAggregationHelper::setAggregation(const ::com::sun::star::uno:
m_bListening = sal_False;
}
- m_xAggregateState = m_xAggregateState.query( _rxDelegate );
- m_xAggregateSet = m_xAggregateSet.query( _rxDelegate );
- m_xAggregateMultiSet = m_xAggregateMultiSet.query( _rxDelegate );
- m_xAggregateFastSet = m_xAggregateFastSet.query( _rxDelegate );
+ m_xAggregateState = m_xAggregateState.query( _rxDelegate );
+ m_xAggregateSet = m_xAggregateSet.query( _rxDelegate );
+ m_xAggregateMultiSet = m_xAggregateMultiSet.query( _rxDelegate );
+ m_xAggregateFastSet = m_xAggregateFastSet.query( _rxDelegate );
// must support XPropertySet and XMultiPropertySet
if ( m_xAggregateSet.is() && !m_xAggregateMultiSet.is() )
@@ -635,13 +635,13 @@ sal_Int32 OPropertySetAggregationHelper::getOriginalHandle(sal_Int32 nHandle) co
//------------------------------------------------------------------------------
void SAL_CALL OPropertySetAggregationHelper::setFastPropertyValue(sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue)
- throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException,
+ throw( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException,
::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException)
{
OPropertyArrayAggregationHelper& rPH = static_cast< OPropertyArrayAggregationHelper& >( getInfoHelper() );
::rtl::OUString aPropName;
- sal_Int32 nOriginalHandle = -1;
+ sal_Int32 nOriginalHandle = -1;
// does the handle belong to the aggregation ?
if (rPH.fillAggregatePropertyInfoByHandle(&aPropName, &nOriginalHandle, _nHandle))
@@ -658,7 +658,7 @@ void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno:
{
OPropertyArrayAggregationHelper& rPH = (OPropertyArrayAggregationHelper&)const_cast<OPropertySetAggregationHelper*>(this)->getInfoHelper();
::rtl::OUString aPropName;
- sal_Int32 nOriginalHandle = -1;
+ sal_Int32 nOriginalHandle = -1;
if (rPH.fillAggregatePropertyInfoByHandle(&aPropName, &nOriginalHandle, nHandle))
{
@@ -669,7 +669,7 @@ void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno:
}
else if ( m_pForwarder->isResponsibleFor( nHandle ) )
{
- // this is a property which has been "overwritten" in our instance (thus
+ // this is a property which has been "overwritten" in our instance (thus
// fillAggregatePropertyInfoByHandle didn't find it)
rValue = m_xAggregateSet->getPropertyValue( getPropertyName( nHandle ) );
}
@@ -677,13 +677,13 @@ void OPropertySetAggregationHelper::getFastPropertyValue( ::com::sun::star::uno:
//------------------------------------------------------------------------------
::com::sun::star::uno::Any SAL_CALL OPropertySetAggregationHelper::getFastPropertyValue(sal_Int32 nHandle)
- throw( ::com::sun::star::beans::UnknownPropertyException,
+ throw( ::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException)
{
OPropertyArrayAggregationHelper& rPH = static_cast< OPropertyArrayAggregationHelper& >( getInfoHelper() );
::rtl::OUString aPropName;
- sal_Int32 nOriginalHandle = -1;
+ sal_Int32 nOriginalHandle = -1;
::com::sun::star::uno::Any aValue;
if (rPH.fillAggregatePropertyInfoByHandle(&aPropName, &nOriginalHandle, nHandle))
@@ -753,7 +753,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
++nAggCount;
}
- pNames = _rPropertyNames.getConstArray(); // reset, we'll need it again below ...
+ pNames = _rPropertyNames.getConstArray(); // reset, we'll need it again below ...
// all properties belong to the aggregate
if (nAggCount == nLen)
@@ -769,7 +769,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
const ::com::sun::star::uno::Any* pValues = _rValues.getConstArray();
::com::sun::star::uno::Any* pConvertedValues = NULL;
::com::sun::star::uno::Any* pOldValues = NULL;
- sal_Int32* pHandles = NULL;
+ sal_Int32* pHandles = NULL;
try
{
@@ -838,7 +838,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
pHandles[i], pDelValues[i] ) )
{
// only increment if the property really change
- pHandles[nHitCount] = pHandles[i];
+ pHandles[nHitCount] = pHandles[i];
nHitCount++;
}
}
@@ -900,7 +900,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyValues(
}
::rtl::OUString aPropName;
- sal_Int32 nOriginalHandle = -1;
+ sal_Int32 nOriginalHandle = -1;
if (rPH.fillAggregatePropertyInfoByHandle(&aPropName, &nOriginalHandle, nHandle))
{
if (m_xAggregateState.is())
@@ -924,7 +924,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const ::rtl::O
}
::rtl::OUString aPropName;
- sal_Int32 nOriginalHandle = -1;
+ sal_Int32 nOriginalHandle = -1;
if (rPH.fillAggregatePropertyInfoByHandle(&aPropName, &nOriginalHandle, nHandle))
{
if (m_xAggregateState.is())
@@ -956,7 +956,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const ::rtl::O
throw ::com::sun::star::beans::UnknownPropertyException();
::rtl::OUString aPropName;
- sal_Int32 nOriginalHandle = -1;
+ sal_Int32 nOriginalHandle = -1;
if (rPH.fillAggregatePropertyInfoByHandle(&aPropName, &nOriginalHandle, nHandle))
{
if (m_xAggregateState.is())
@@ -1023,7 +1023,7 @@ bool OPropertySetAggregationHelper::isCurrentlyForwardingProperty( sal_Int32 _nH
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/property/property.cxx b/comphelper/source/property/property.cxx
index a13930e34fba..e3838f5db9ad 100644
--- a/comphelper/source/property/property.cxx
+++ b/comphelper/source/property/property.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -148,15 +148,15 @@ sal_Bool hasProperty(const rtl::OUString& _rName, const Reference<XPropertySet>&
{
if (_rxSet.is())
{
- // XPropertySetInfoRef xInfo(rxSet->getPropertySetInfo());
+ // XPropertySetInfoRef xInfo(rxSet->getPropertySetInfo());
return _rxSet->getPropertySetInfo()->hasPropertyByName(_rName);
}
return sal_False;
}
//------------------------------------------------------------------
-bool findProperty(Property& o_rProp,
- Sequence<Property>& i_seqProps,
+bool findProperty(Property& o_rProp,
+ Sequence<Property>& i_seqProps,
const ::rtl::OUString& i_rPropName)
{
const Property* pAry(i_seqProps.getConstArray());
diff --git a/comphelper/source/property/propertybag.cxx b/comphelper/source/property/propertybag.cxx
index 3170411de510..1487818a8875 100644
--- a/comphelper/source/property/propertybag.cxx
+++ b/comphelper/source/property/propertybag.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ namespace comphelper
{
}
- PropertyBag::~PropertyBag()
+ PropertyBag::~PropertyBag()
{
}
diff --git a/comphelper/source/property/propertycontainer.cxx b/comphelper/source/property/propertycontainer.cxx
index a826eca2bd92..e302d3338e9a 100644
--- a/comphelper/source/property/propertycontainer.cxx
+++ b/comphelper/source/property/propertycontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,7 +100,7 @@ void OPropertyContainer::getFastPropertyValue(Any& _rValue, sal_Int32 _nHandle)
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/property/propertycontainerhelper.cxx b/comphelper/source/property/propertycontainerhelper.cxx
index 8f7b64d58452..7c3ac62d3202 100644
--- a/comphelper/source/property/propertycontainerhelper.cxx
+++ b/comphelper/source/property/propertycontainerhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -211,7 +211,7 @@ namespace
void OPropertyContainerHelper::implPushBackProperty(const PropertyDescription& _rProp)
{
#ifdef DBG_UTIL
- for ( PropertiesIterator checkConflicts = m_aProperties.begin();
+ for ( PropertiesIterator checkConflicts = m_aProperties.begin();
checkConflicts != m_aProperties.end();
++checkConflicts
)
@@ -278,10 +278,10 @@ sal_Bool OPropertyContainerHelper::convertFastPropertyValue(
// (#102329# - 2002-08-14 - fs@openoffice.org)
// (#i29490# - 2004-06-16 - fs@openoffice.org)
if ( !aNewRequestedValue.getValueType().equals( aPos->aProperty.Type ) )
- { // the actually given value is not of the same type as the one required
+ { // the actually given value is not of the same type as the one required
Any aProperlyTyped( NULL, aPos->aProperty.Type.getTypeLibType() );
- if ( uno_type_assignData(
+ if ( uno_type_assignData(
const_cast< void* >( aProperlyTyped.getValue() ), aProperlyTyped.getValueType().getTypeLibType(),
const_cast< void* >( aNewRequestedValue.getValue() ), aNewRequestedValue.getValueType().getTypeLibType(),
reinterpret_cast< uno_QueryInterfaceFunc >( cpp_queryInterface ),
@@ -297,8 +297,8 @@ sal_Bool OPropertyContainerHelper::convertFastPropertyValue(
}
// argument check
- if ( ! ( (bMayBeVoid && !aNewRequestedValue.hasValue()) // void is allowed if the attribute says so
- || (aNewRequestedValue.getValueType().equals(aPos->aProperty.Type)) // else the types have to be equal
+ if ( ! ( (bMayBeVoid && !aNewRequestedValue.hasValue()) // void is allowed if the attribute says so
+ || (aNewRequestedValue.getValueType().equals(aPos->aProperty.Type)) // else the types have to be equal
)
)
{
@@ -354,7 +354,7 @@ sal_Bool OPropertyContainerHelper::convertFastPropertyValue(
aProperlyTyped = Any( NULL, aPos->aProperty.Type.getTypeLibType() );
// (need this as we do not want to overwrite the derived class member here)
- if ( uno_type_assignData(
+ if ( uno_type_assignData(
const_cast<void*>(aProperlyTyped.getValue()), aProperlyTyped.getValueType().getTypeLibType(),
const_cast<void*>(_rValue.getValue()), _rValue.getValueType().getTypeLibType(),
reinterpret_cast< uno_QueryInterfaceFunc >( cpp_queryInterface ),
@@ -422,8 +422,8 @@ void OPropertyContainerHelper::setFastPropertyValue(sal_Int32 _nHandle, const An
#endif
// copy the data from the to-be-set value
uno_type_assignData(
- aPos->aLocation.pDerivedClassMember, aPos->aProperty.Type.getTypeLibType(),
- const_cast< void* >( _rValue.getValue() ), _rValue.getValueType().getTypeLibType(),
+ aPos->aLocation.pDerivedClassMember, aPos->aProperty.Type.getTypeLibType(),
+ const_cast< void* >( _rValue.getValue() ), _rValue.getValueType().getTypeLibType(),
reinterpret_cast< uno_QueryInterfaceFunc >( cpp_queryInterface ),
reinterpret_cast< uno_AcquireFunc >( cpp_acquire ),
reinterpret_cast< uno_ReleaseFunc >( cpp_release ) );
@@ -517,7 +517,7 @@ void OPropertyContainerHelper::describeProperties(Sequence< Property >& _rProps)
Sequence< Property > aOwnProps(m_aProperties.size());
Property* pOwnProps = aOwnProps.getArray();
- for ( ConstPropertiesIterator aLoop = m_aProperties.begin();
+ for ( ConstPropertiesIterator aLoop = m_aProperties.begin();
aLoop != m_aProperties.end();
++aLoop, ++pOwnProps
)
@@ -536,10 +536,10 @@ void OPropertyContainerHelper::describeProperties(Sequence< Property >& _rProps)
Sequence< Property > aOutput;
aOutput.realloc(_rProps.getLength() + aOwnProps.getLength());
// do the merge
- ::std::merge( _rProps.getConstArray(), _rProps.getConstArray() + _rProps.getLength(), // input 1
- aOwnProps.getConstArray(), aOwnProps.getConstArray() + aOwnProps.getLength(), // input 2
- aOutput.getArray(), // output
- PropertyCompareByName() // compare operator
+ ::std::merge( _rProps.getConstArray(), _rProps.getConstArray() + _rProps.getLength(), // input 1
+ aOwnProps.getConstArray(), aOwnProps.getConstArray() + aOwnProps.getLength(), // input 2
+ aOutput.getArray(), // output
+ PropertyCompareByName() // compare operator
);
// copy the output
@@ -547,7 +547,7 @@ void OPropertyContainerHelper::describeProperties(Sequence< Property >& _rProps)
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
diff --git a/comphelper/source/property/propertysethelper.cxx b/comphelper/source/property/propertysethelper.cxx
index 1a7455b8c956..41c40e11d924 100644
--- a/comphelper/source/property/propertysethelper.cxx
+++ b/comphelper/source/property/propertysethelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ class PropertySetHelperImpl
{
public:
PropertyMapEntry* find( const OUString& aName ) const throw();
-
+
PropertySetInfo* mpInfo;
};
}
@@ -170,7 +170,7 @@ void SAL_CALL PropertySetHelper::setPropertyValues( const Sequence< ::rtl::OUStr
if( nCount )
{
PropertyMapEntry** pEntries = new PropertyMapEntry*[nCount+1];
- pEntries[nCount] = NULL;
+ pEntries[nCount] = NULL;
const OUString* pNames = aPropertyNames.getConstArray();
sal_Bool bUnknown = sal_False;
diff --git a/comphelper/source/property/propertysetinfo.cxx b/comphelper/source/property/propertysetinfo.cxx
index 6642c0d4db55..e17d3d1b3a11 100644
--- a/comphelper/source/property/propertysetinfo.cxx
+++ b/comphelper/source/property/propertysetinfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,9 +72,9 @@ PropertyMapImpl::~PropertyMapImpl() throw()
void PropertyMapImpl::add( PropertyMapEntry* pMap, sal_Int32 nCount ) throw()
{
- // nCount < 0 => add all
- // nCount == 0 => add nothing
- // nCount > 0 => add at most nCount entries
+ // nCount < 0 => add all
+ // nCount == 0 => add nothing
+ // nCount > 0 => add at most nCount entries
while( pMap->mpName && ( ( nCount < 0) || ( nCount-- > 0 ) ) )
{
diff --git a/comphelper/source/property/propertystatecontainer.cxx b/comphelper/source/property/propertystatecontainer.cxx
index 833cf0f3da34..3a1ed18a0e7e 100644
--- a/comphelper/source/property/propertystatecontainer.cxx
+++ b/comphelper/source/property/propertystatecontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ namespace comphelper
//= OPropertyStateContainer
//=====================================================================
//---------------------------------------------------------------------
- OPropertyStateContainer::OPropertyStateContainer( ::cppu::OBroadcastHelper& _rBHelper )
+ OPropertyStateContainer::OPropertyStateContainer( ::cppu::OBroadcastHelper& _rBHelper )
:OPropertyContainer( _rBHelper )
{
}
@@ -121,10 +121,10 @@ namespace comphelper
PropertyState* pStates = aStates.getArray();
cppu::IPropertyArrayHelper& rHelper = getInfoHelper();
- Sequence< Property> aAllProperties = rHelper.getProperties();
- sal_Int32 nAllProperties = aAllProperties.getLength();
- const Property* pAllProperties = aAllProperties.getConstArray();
- const Property* pAllPropertiesEnd = pAllProperties + nAllProperties;
+ Sequence< Property> aAllProperties = rHelper.getProperties();
+ sal_Int32 nAllProperties = aAllProperties.getLength();
+ const Property* pAllProperties = aAllProperties.getConstArray();
+ const Property* pAllPropertiesEnd = pAllProperties + nAllProperties;
osl::MutexGuard aGuard( rBHelper.rMutex );
for ( ; ( pAllProperties != pAllPropertiesEnd ) && ( pLookup != pLookupEnd ); ++pAllProperties )
@@ -191,7 +191,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#ifdef FS_PRIV_DEBUG
@@ -214,16 +214,16 @@ namespace comphelper
//=====================================================================
//= Test - compiler test
//=====================================================================
- typedef ::cppu::OWeakAggObject Test_RefCountBase;
- class Test :public OMutexAndBroadcastHelper
+ typedef ::cppu::OWeakAggObject Test_RefCountBase;
+ class Test :public OMutexAndBroadcastHelper
,public OPropertyStateContainer
,public OPropertyArrayUsageHelper< Test >
,public Test_RefCountBase
{
private:
- ::rtl::OUString m_sStringProperty;
- Reference< XInterface > m_xInterfaceProperty;
- Any m_aMayBeVoidProperty;
+ ::rtl::OUString m_sStringProperty;
+ Reference< XInterface > m_xInterfaceProperty;
+ Any m_aMayBeVoidProperty;
protected:
Test( );
@@ -333,7 +333,7 @@ namespace comphelper
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
#endif
diff --git a/comphelper/source/property/propmultiplex.cxx b/comphelper/source/property/propmultiplex.cxx
index a7e9c1e395d0..e9d3b2a152e9 100644
--- a/comphelper/source/property/propmultiplex.cxx
+++ b/comphelper/source/property/propmultiplex.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -146,7 +146,7 @@ void SAL_CALL OPropertyChangeMultiplexer::disposing( const EventObject& _rSourc
if (!locked())
m_pListener->_disposing(_rSource);
// disconnect the listener
- if (m_pListener) // may have been reset whilest calling into _disposing
+ if (m_pListener) // may have been reset whilest calling into _disposing
m_pListener->setAdapter(NULL);
}
diff --git a/comphelper/source/property/propstate.cxx b/comphelper/source/property/propstate.cxx
index 5be6c842a5f8..313c881bff89 100644
--- a/comphelper/source/property/propstate.cxx
+++ b/comphelper/source/property/propstate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -144,7 +144,7 @@ namespace comphelper
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property> aProps = rHelper.getProperties();
const ::com::sun::star::beans::Property* pProps = aProps.getConstArray();
- sal_Int32 nPropCount = aProps.getLength();
+ sal_Int32 nPropCount = aProps.getLength();
osl::MutexGuard aGuard(rBHelper.rMutex);
for (sal_Int32 i=0, j=0; i<nPropCount && j<nLen; ++i, ++pProps)
diff --git a/comphelper/source/streaming/basicio.cxx b/comphelper/source/streaming/basicio.cxx
index 662c5545c56e..14f4b1f201ca 100644
--- a/comphelper/source/streaming/basicio.cxx
+++ b/comphelper/source/streaming/basicio.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -170,7 +170,7 @@ const staruno::Reference<stario::XObjectOutputStream>& operator << (const starun
}
//.........................................................................
-} // namespace comphelper
+} // namespace comphelper
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/streaming/memorystream.cxx b/comphelper/source/streaming/memorystream.cxx
index fd17bd9e5db6..4ab372f9e414 100644
--- a/comphelper/source/streaming/memorystream.cxx
+++ b/comphelper/source/streaming/memorystream.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -160,7 +160,7 @@ void SAL_CALL UNOMemoryStream::seek( sal_Int64 location ) throw (IllegalArgument
{
if( (location < 0) || (location > SAL_MAX_INT32) )
throw IllegalArgumentException( OUString(RTL_CONSTASCII_USTRINGPARAM("this implementation does not support more than 2GB!")), Reference< XInterface >(static_cast<OWeakObject*>(this)), 0 );
-
+
// seek operation should be able to resize the stream
if ( location > static_cast< sal_Int64 >( maData.size() ) )
maData.resize( static_cast< sal_Int32 >( location ) );
diff --git a/comphelper/source/streaming/oslfile2streamwrap.cxx b/comphelper/source/streaming/oslfile2streamwrap.cxx
index 40858acd338b..96c70345b852 100644
--- a/comphelper/source/streaming/oslfile2streamwrap.cxx
+++ b/comphelper/source/streaming/oslfile2streamwrap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -122,7 +122,7 @@ void SAL_CALL OSLInputStreamWrapper::skipBytes(sal_Int32 nBytesToSkip) throw( st
#ifdef DBG_UTIL
m_pFile->getPos(nCurrentPos);
-// volatile int dummy = 0; // to take a look at last changes ;-)
+// volatile int dummy = 0; // to take a look at last changes ;-)
#endif
}
diff --git a/comphelper/source/streaming/otransactedfilestream.cxx b/comphelper/source/streaming/otransactedfilestream.cxx
index bac4403fd6ad..9b1f15ccaae7 100644
--- a/comphelper/source/streaming/otransactedfilestream.cxx
+++ b/comphelper/source/streaming/otransactedfilestream.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/streaming/seekableinput.cxx b/comphelper/source/streaming/seekableinput.cxx
index f20153ee0aaf..8a36c316b7db 100644
--- a/comphelper/source/streaming/seekableinput.cxx
+++ b/comphelper/source/streaming/seekableinput.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,8 +87,8 @@ uno::Reference< io::XInputStream > OSeekableInputWrapper::CheckSeekableCanWrap(
if ( xSeek.is() )
return xInStream;
- uno::Reference< io::XInputStream > xNewStream(
- static_cast< io::XInputStream* >(
+ uno::Reference< io::XInputStream > xNewStream(
+ static_cast< io::XInputStream* >(
new OSeekableInputWrapper( xInStream, xFactory ) ) );
return xNewStream;
}
@@ -264,6 +264,6 @@ sal_Int64 SAL_CALL OSeekableInputWrapper::getLength()
return m_xCopySeek->getLength();
}
-} // namespace comphelper
+} // namespace comphelper
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx
index 4e1cc7ade660..507de9817cb3 100644
--- a/comphelper/source/streaming/seqinputstreamserv.cxx
+++ b/comphelper/source/streaming/seqinputstreamserv.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/streaming/seqoutputstreamserv.cxx b/comphelper/source/streaming/seqoutputstreamserv.cxx
index 02cfd2fe7bc6..b5a07bc2cd5c 100644
--- a/comphelper/source/streaming/seqoutputstreamserv.cxx
+++ b/comphelper/source/streaming/seqoutputstreamserv.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/comphelper/source/streaming/seqstream.cxx b/comphelper/source/streaming/seqstream.cxx
index d2852b70a901..05d9f3767091 100644
--- a/comphelper/source/streaming/seqstream.cxx
+++ b/comphelper/source/streaming/seqstream.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ using namespace ::osl;
//------------------------------------------------------------------
SequenceInputStream::SequenceInputStream(const ByteSequence& rData)
-: m_aData(rData)
-, m_nPos(0)
+: m_aData(rData)
+, m_nPos(0)
{
}
@@ -152,7 +152,7 @@ OSequenceOutputStream::OSequenceOutputStream(Sequence< sal_Int8 >& _rSeq, double
,m_nResizeFactor(_nResizeFactor)
,m_nMinimumResize(_nMinimumResize)
,m_nMaximumResize(_nMaximumResize)
- ,m_nSize(0) // starting at position 0
+ ,m_nSize(0) // starting at position 0
,m_bConnected(sal_True)
{
OSL_ENSURE(m_nResizeFactor > 1, "OSequenceOutputStream::OSequenceOutputStream : invalid resize factor !");
@@ -189,13 +189,13 @@ void SAL_CALL OSequenceOutputStream::writeBytes( const Sequence< sal_Int8 >& _rD
nNewLength = nCurrentLength + m_nMaximumResize;
if (nNewLength < m_nSize + _rData.getLength())
- { // it's not enough .... the data would not fit
+ { // it's not enough .... the data would not fit
// let's take the double amount of the length of the data to be written, as the next write
// request could be as large as this one
sal_Int32 nNewGrowth = _rData.getLength() * 2;
if ((m_nMaximumResize > 0) && (nNewGrowth > m_nMaximumResize))
- { // we came to the limit, again ...
+ { // we came to the limit, again ...
nNewGrowth = m_nMaximumResize;
if (nNewGrowth + nCurrentLength < m_nSize + _rData.getLength())
// but it would not fit if we respect the limit
diff --git a/comphelper/source/streaming/streamsection.cxx b/comphelper/source/streaming/streamsection.cxx
index 1fa71fd42682..b95cf146c335 100644
--- a/comphelper/source/streaming/streamsection.cxx
+++ b/comphelper/source/streaming/streamsection.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,10 +74,10 @@ OStreamSection::OStreamSection(const staruno::Reference< stario::XDataOutputStre
OStreamSection::~OStreamSection()
{
try
- { // don't allow any exceptions to leave this block, this may be called during the stack unwinding of an exception
+ { // don't allow any exceptions to leave this block, this may be called during the stack unwinding of an exception
// handling routing
if (m_xInStream.is() && m_xMarkStream.is())
- { // we're working on an input stream
+ { // we're working on an input stream
m_xMarkStream->jumpToMark(m_nBlockStart);
m_xInStream->skipBytes(m_nBlockLen);
m_xMarkStream->deleteMark(m_nBlockStart);
@@ -89,7 +89,7 @@ OStreamSection::~OStreamSection()
// nothing to do : the estimation the caller gave us (in the ctor) was correct
m_xMarkStream->deleteMark(m_nBlockStart);
else
- { // the estimation was wrong (or we didn't get one)
+ { // the estimation was wrong (or we didn't get one)
m_nBlockLen = nRealBlockLength;
m_xMarkStream->jumpToMark(m_nBlockStart);
m_xOutStream->writeLong(m_nBlockLen);
@@ -107,7 +107,7 @@ sal_Int32 OStreamSection::available()
{
sal_Int32 nBytes = 0;
try
- { // don't allow any exceptions to leave this block, this may be called during the stack unwinding of an exception
+ { // don't allow any exceptions to leave this block, this may be called during the stack unwinding of an exception
if (m_xInStream.is() && m_xMarkStream.is())
nBytes = m_xMarkStream->offsetToMark(m_nBlockStart) - sizeof(m_nBlockLen);
}
@@ -118,7 +118,7 @@ sal_Int32 OStreamSection::available()
}
// -----------------------------------------------------------------------------
-} // namespace comphelper
+} // namespace comphelper
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/comphelper/source/xml/attributelist.cxx b/comphelper/source/xml/attributelist.cxx
index 012df7f4fe03..e30491c6bc4d 100644
--- a/comphelper/source/xml/attributelist.cxx
+++ b/comphelper/source/xml/attributelist.cxx
@@ -45,9 +45,9 @@ struct TagAttribute_Impl
TagAttribute_Impl( const OUString &aName, const OUString &aType,
const OUString &aValue )
{
- this->sName = aName;
- this->sType = aType;
- this->sValue = aValue;
+ this->sName = aName;
+ this->sType = aType;
+ this->sValue = aValue;
}
OUString sName;
@@ -125,7 +125,7 @@ AttributeList::~AttributeList()
delete m_pImpl;
}
-void AttributeList::AddAttribute( const OUString &sName ,
+void AttributeList::AddAttribute( const OUString &sName ,
const OUString &sType ,
const OUString &sValue )
{
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index 9df5977efb04..ccb77acb4278 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,8 +39,8 @@
#include <comphelper/ofopxmlhelper.hxx>
#include <comphelper/attributelist.hxx>
-#define RELATIONINFO_FORMAT 0
-#define CONTENTTYPE_FORMAT 1
+#define RELATIONINFO_FORMAT 0
+#define CONTENTTYPE_FORMAT 1
#define FORMAT_MAX_ID CONTENTTYPE_FORMAT
using namespace ::com::sun::star;
@@ -78,7 +78,7 @@ void SAL_CALL OFOPXMLHelper::WriteRelationsInfoSequence( const uno::Reference< i
uno::Reference< xml::sax::XDocumentHandler > xWriterHandler( xWriterSource, uno::UNO_QUERY_THROW );
xWriterSource->setOutputStream( xOutStream );
-
+
::rtl::OUString aRelListElement( RTL_CONSTASCII_USTRINGPARAM( "Relationships" ) );
::rtl::OUString aRelElement( RTL_CONSTASCII_USTRINGPARAM( "Relationship" ) );
::rtl::OUString aIDAttr( RTL_CONSTASCII_USTRINGPARAM( "Id" ) );
@@ -143,7 +143,7 @@ void SAL_CALL OFOPXMLHelper::WriteContentSequence( const uno::Reference< io::XOu
uno::Reference< xml::sax::XDocumentHandler > xWriterHandler( xWriterSource, uno::UNO_QUERY_THROW );
xWriterSource->setOutputStream( xOutStream );
-
+
::rtl::OUString aTypesElement( RTL_CONSTASCII_USTRINGPARAM( "Types" ) );
::rtl::OUString aDefaultElement( RTL_CONSTASCII_USTRINGPARAM( "Default" ) );
::rtl::OUString aOverrideElement( RTL_CONSTASCII_USTRINGPARAM( "Override" ) );
@@ -252,19 +252,19 @@ uno::Sequence< uno::Sequence< beans::StringPair > > OFOPXMLHelper::GetParsingRes
}
// -----------------------------------
-void SAL_CALL OFOPXMLHelper::startDocument()
+void SAL_CALL OFOPXMLHelper::startDocument()
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
// -----------------------------------
-void SAL_CALL OFOPXMLHelper::endDocument()
+void SAL_CALL OFOPXMLHelper::endDocument()
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
// -----------------------------------
-void SAL_CALL OFOPXMLHelper::startElement( const ::rtl::OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs )
+void SAL_CALL OFOPXMLHelper::startElement( const ::rtl::OUString& aName, const uno::Reference< xml::sax::XAttributeList >& xAttribs )
throw( xml::sax::SAXException, uno::RuntimeException )
{
if ( m_nFormat == RELATIONINFO_FORMAT )
@@ -412,7 +412,7 @@ void SAL_CALL OFOPXMLHelper::startElement( const ::rtl::OUString& aName, const u
}
// -----------------------------------
-void SAL_CALL OFOPXMLHelper::endElement( const ::rtl::OUString& aName )
+void SAL_CALL OFOPXMLHelper::endElement( const ::rtl::OUString& aName )
throw( xml::sax::SAXException, uno::RuntimeException )
{
if ( m_nFormat == RELATIONINFO_FORMAT || m_nFormat == CONTENTTYPE_FORMAT )
@@ -429,25 +429,25 @@ void SAL_CALL OFOPXMLHelper::endElement( const ::rtl::OUString& aName )
}
// -----------------------------------
-void SAL_CALL OFOPXMLHelper::characters( const ::rtl::OUString& /*aChars*/ )
+void SAL_CALL OFOPXMLHelper::characters( const ::rtl::OUString& /*aChars*/ )
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
// -----------------------------------
-void SAL_CALL OFOPXMLHelper::ignorableWhitespace( const ::rtl::OUString& /*aWhitespaces*/ )
+void SAL_CALL OFOPXMLHelper::ignorableWhitespace( const ::rtl::OUString& /*aWhitespaces*/ )
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
// -----------------------------------
-void SAL_CALL OFOPXMLHelper::processingInstruction( const ::rtl::OUString& /*aTarget*/, const ::rtl::OUString& /*aData*/ )
+void SAL_CALL OFOPXMLHelper::processingInstruction( const ::rtl::OUString& /*aTarget*/, const ::rtl::OUString& /*aData*/ )
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
// -----------------------------------
-void SAL_CALL OFOPXMLHelper::setDocumentLocator( const uno::Reference< xml::sax::XLocator >& /*xLocator*/ )
+void SAL_CALL OFOPXMLHelper::setDocumentLocator( const uno::Reference< xml::sax::XLocator >& /*xLocator*/ )
throw(xml::sax::SAXException, uno::RuntimeException)
{
}
diff --git a/comphelper/test/uno_iterators/uno_iterators.cxx b/comphelper/test/uno_iterators/uno_iterators.cxx
index c2106068ff46..711b39c0d17c 100644
--- a/comphelper/test/uno_iterators/uno_iterators.cxx
+++ b/comphelper/test/uno_iterators/uno_iterators.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ void fill_testdata(Sequence<OUString>& seq)
}
void print_oustring(const OUString& ustr)
-{ cout << OUStringToOString(ustr, RTL_TEXTENCODING_ASCII_US).getStr() << endl; }
+{ cout << OUStringToOString(ustr, RTL_TEXTENCODING_ASCII_US).getStr() << endl; }
void print_sequence(const Sequence<OUString>& seq)
{
@@ -159,7 +159,7 @@ void stl_inserting()
StlUnoSequence<OUString> stl_result = StlUnoSequence<OUString>::createInstance(result);
fill_testdata(s1);
fill_testdata(s2);
-
+
list<OUString> temp(stl_s1.begin(), stl_s1.end());
copy(stl_s2.begin()+5, stl_s2.end(), insert_iterator<list<OUString> >(temp, ++temp.begin()));
copy(temp.begin(), temp.end(), stl_result.begin());
@@ -203,17 +203,17 @@ int main()
stl_algos();
cout << "--- SOME STL CONVERSIONS" << endl;
- stl_conversions();
+ stl_conversions();
cout << "--- INSERTING IN SEQUENCE" << endl;
stl_inserting();
-
+
cout << "--- COMPARING" << endl;
stl_compare();
-
+
cout << "--- CONST SEQUENCE" << endl;
stl_const_sequence();
-
+
cout << "--- HELPERS IN STL-STYLE" << endl;
stl_helpers();
}
diff --git a/cppcanvas/inc/cppcanvas/basegfxfactory.hxx b/cppcanvas/inc/cppcanvas/basegfxfactory.hxx
index 10be95fc8eb5..1337ceb09394 100644
--- a/cppcanvas/inc/cppcanvas/basegfxfactory.hxx
+++ b/cppcanvas/inc/cppcanvas/basegfxfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,20 +73,20 @@ namespace cppcanvas
The created polygon initially has the same size in user
coordinate space as the source polygon
*/
- PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolygon& rPoly ) const;
- PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolyPolygon& rPoly ) const;
+ PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolygon& rPoly ) const;
+ PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolyPolygon& rPoly ) const;
/** Create an uninitialized bitmap with the given size
*/
- BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ) const;
+ BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ) const;
/** Create an uninitialized alpha bitmap with the given size
*/
- BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ) const;
+ BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize ) const;
- /** Create a text portion with the given content string
+ /** Create a text portion with the given content string
*/
- TextSharedPtr createText( const CanvasSharedPtr&, const ::rtl::OUString& ) const;
+ TextSharedPtr createText( const CanvasSharedPtr&, const ::rtl::OUString& ) const;
private:
friend struct InitInstance2;
diff --git a/cppcanvas/inc/cppcanvas/bitmap.hxx b/cppcanvas/inc/cppcanvas/bitmap.hxx
index 425428b24ab5..4a959a5c22f3 100644
--- a/cppcanvas/inc/cppcanvas/bitmap.hxx
+++ b/cppcanvas/inc/cppcanvas/bitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#include <cppcanvas/canvasgraphic.hxx>
#include <cppcanvas/bitmapcanvas.hxx>
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XBitmap;
} } } }
@@ -67,12 +67,12 @@ namespace cppcanvas
@return whether the rendering finished successfully.
*/
- virtual bool drawAlphaModulated( double nAlphaModulation ) const = 0;
+ virtual bool drawAlphaModulated( double nAlphaModulation ) const = 0;
- virtual BitmapCanvasSharedPtr getBitmapCanvas() const = 0;
+ virtual BitmapCanvasSharedPtr getBitmapCanvas() const = 0;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap > getUNOBitmap() const = 0;
+ virtual ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap > getUNOBitmap() const = 0;
};
typedef ::boost::shared_ptr< ::cppcanvas::Bitmap > BitmapSharedPtr;
diff --git a/cppcanvas/inc/cppcanvas/bitmapcanvas.hxx b/cppcanvas/inc/cppcanvas/bitmapcanvas.hxx
index 4221833bc29e..af3d9d69af01 100644
--- a/cppcanvas/inc/cppcanvas/bitmapcanvas.hxx
+++ b/cppcanvas/inc/cppcanvas/bitmapcanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,10 +51,10 @@ namespace cppcanvas
class BitmapCanvas : public virtual Canvas
{
public:
- virtual ::basegfx::B2ISize getSize() const = 0;
+ virtual ::basegfx::B2ISize getSize() const = 0;
// shared_ptr does not allow for covariant return types
- BitmapCanvasSharedPtr cloneBitmapCanvas() const
+ BitmapCanvasSharedPtr cloneBitmapCanvas() const
{
BitmapCanvasSharedPtr p( ::boost::dynamic_pointer_cast< BitmapCanvas >(this->clone()) );
OSL_ENSURE(p.get(), "BitmapCanvas::cloneBitmapCanvas(): dynamic cast failed");
diff --git a/cppcanvas/inc/cppcanvas/canvas.hxx b/cppcanvas/inc/cppcanvas/canvas.hxx
index 385006fdba46..26dd843556bc 100644
--- a/cppcanvas/inc/cppcanvas/canvas.hxx
+++ b/cppcanvas/inc/cppcanvas/canvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace basegfx
class B2DPolyPolygon;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XCanvas;
struct ViewState;
@@ -71,8 +71,8 @@ namespace cppcanvas
class Canvas
{
public:
- enum
- {
+ enum
+ {
/** Extra pixel used when canvas anti-aliases.
Enlarge the bounding box of drawing primitives by this
@@ -86,13 +86,13 @@ namespace cppcanvas
virtual ~Canvas() {}
- virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0;
+ virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0;
virtual ::basegfx::B2DHomMatrix getTransformation() const = 0;
virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) = 0;
virtual void setClip() = 0;
- /** Get current clip
+ /** Get current clip
@return NULL, if no clip is set, otherwise the current clip poly-polygon
*/
@@ -103,13 +103,13 @@ namespace cppcanvas
virtual ColorSharedPtr createColor() const = 0;
virtual CanvasSharedPtr clone() const = 0;
- virtual void clear() const = 0;
+ virtual void clear() const = 0;
// this should be considered private. if RTTI gets enabled
// someday, remove that to a separate interface
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvas > getUNOCanvas() const = 0;
- virtual ::com::sun::star::rendering::ViewState getViewState() const = 0;
+ virtual ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvas > getUNOCanvas() const = 0;
+ virtual ::com::sun::star::rendering::ViewState getViewState() const = 0;
};
}
diff --git a/cppcanvas/inc/cppcanvas/canvasgraphic.hxx b/cppcanvas/inc/cppcanvas/canvasgraphic.hxx
index 4ae43fb4334c..5fbf310ea503 100644
--- a/cppcanvas/inc/cppcanvas/canvasgraphic.hxx
+++ b/cppcanvas/inc/cppcanvas/canvasgraphic.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,10 +78,10 @@ namespace cppcanvas
/// Copy source as-is to destination. Fa = 1, Fb = 0.
SOURCE,
-
+
/// Leave destination as-is. Fa = 0, Fb = 1.
DESTINATION,
-
+
/// Copy source over destination. Fa = 1, Fb = 1-Aa.
OVER,
@@ -123,7 +123,7 @@ namespace cppcanvas
/** Set object transformation matrix
*/
- virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0;
+ virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0;
/** Get object transformation matrix
*/
virtual ::basegfx::B2DHomMatrix getTransformation() const = 0;
@@ -162,7 +162,7 @@ namespace cppcanvas
@return whether the rendering finished successfully.
*/
virtual bool draw() const = 0;
-
+
};
typedef ::boost::shared_ptr< ::cppcanvas::CanvasGraphic > CanvasGraphicSharedPtr;
diff --git a/cppcanvas/inc/cppcanvas/color.hxx b/cppcanvas/inc/cppcanvas/color.hxx
index 6a8e872f328d..44b3ff93b44a 100644
--- a/cppcanvas/inc/cppcanvas/color.hxx
+++ b/cppcanvas/inc/cppcanvas/color.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,37 +50,37 @@ namespace cppcanvas
virtual ~Color() {}
- virtual IntSRGBA getIntSRGBA( ::com::sun::star::uno::Sequence< double >& rDeviceColor ) const = 0;
- virtual ::com::sun::star::uno::Sequence< double > getDeviceColor( IntSRGBA aSRGBA ) const = 0;
+ virtual IntSRGBA getIntSRGBA( ::com::sun::star::uno::Sequence< double >& rDeviceColor ) const = 0;
+ virtual ::com::sun::star::uno::Sequence< double > getDeviceColor( IntSRGBA aSRGBA ) const = 0;
};
typedef ::boost::shared_ptr< ::cppcanvas::Color > ColorSharedPtr;
- inline sal_uInt8 getRed( Color::IntSRGBA nCol )
- {
- return static_cast<sal_uInt8>( (nCol&0xFF000000U) >> 24U );
+ inline sal_uInt8 getRed( Color::IntSRGBA nCol )
+ {
+ return static_cast<sal_uInt8>( (nCol&0xFF000000U) >> 24U );
}
- inline sal_uInt8 getGreen( Color::IntSRGBA nCol )
- {
- return static_cast<sal_uInt8>( (nCol&0x00FF0000U) >> 16U );
+ inline sal_uInt8 getGreen( Color::IntSRGBA nCol )
+ {
+ return static_cast<sal_uInt8>( (nCol&0x00FF0000U) >> 16U );
}
- inline sal_uInt8 getBlue( Color::IntSRGBA nCol )
- {
- return static_cast<sal_uInt8>( (nCol&0x0000FF00U) >> 8U );
+ inline sal_uInt8 getBlue( Color::IntSRGBA nCol )
+ {
+ return static_cast<sal_uInt8>( (nCol&0x0000FF00U) >> 8U );
}
- inline sal_uInt8 getAlpha( Color::IntSRGBA nCol )
- {
- return static_cast<sal_uInt8>( nCol&0x000000FFU );
+ inline sal_uInt8 getAlpha( Color::IntSRGBA nCol )
+ {
+ return static_cast<sal_uInt8>( nCol&0x000000FFU );
}
- inline Color::IntSRGBA makeColor( sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue, sal_uInt8 nAlpha )
- {
+ inline Color::IntSRGBA makeColor( sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue, sal_uInt8 nAlpha )
+ {
return (nRed << 24U)|(nGreen << 16U)|(nBlue << 8U)|(nAlpha);
}
-
+
inline sal_Int32 unMakeColor( sal_uInt8 nAlpha, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
{
return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|(nBlue);
diff --git a/cppcanvas/inc/cppcanvas/customsprite.hxx b/cppcanvas/inc/cppcanvas/customsprite.hxx
index bd92fbd6f76a..b9dc13e286c4 100644
--- a/cppcanvas/inc/cppcanvas/customsprite.hxx
+++ b/cppcanvas/inc/cppcanvas/customsprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/cppcanvas/inc/cppcanvas/font.hxx b/cppcanvas/inc/cppcanvas/font.hxx
index b8d864321fd8..855c22aa0ece 100644
--- a/cppcanvas/inc/cppcanvas/font.hxx
+++ b/cppcanvas/inc/cppcanvas/font.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ namespace rtl
class OUString;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XCanvasFont;
} } } }
@@ -54,9 +54,9 @@ namespace cppcanvas
virtual ~Font() {}
virtual ::rtl::OUString getName() const = 0;
- virtual double getCellSize() const = 0;
+ virtual double getCellSize() const = 0;
- virtual ::com::sun::star::uno::Reference<
+ virtual ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvasFont > getUNOFont() const = 0;
};
diff --git a/cppcanvas/inc/cppcanvas/polypolygon.hxx b/cppcanvas/inc/cppcanvas/polypolygon.hxx
index 0adc9426b692..5ffcf7cffc51 100644
--- a/cppcanvas/inc/cppcanvas/polypolygon.hxx
+++ b/cppcanvas/inc/cppcanvas/polypolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ namespace basegfx
class B2DPolyPolygon;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XPolyPolygon2D;
} } } }
@@ -70,21 +70,21 @@ namespace cppcanvas
/** Set polygon fill color
*/
- virtual void setRGBAFillColor( Color::IntSRGBA ) = 0;
+ virtual void setRGBAFillColor( Color::IntSRGBA ) = 0;
/** Set polygon line color
*/
- virtual void setRGBALineColor( Color::IntSRGBA ) = 0;
+ virtual void setRGBALineColor( Color::IntSRGBA ) = 0;
/** Get polygon fill color
*/
- virtual Color::IntSRGBA getRGBAFillColor() const = 0;
+ virtual Color::IntSRGBA getRGBAFillColor() const = 0;
/** Get polygon line color
*/
- virtual Color::IntSRGBA getRGBALineColor() const = 0;
+ virtual Color::IntSRGBA getRGBALineColor() const = 0;
- virtual void setStrokeWidth( const double& rStrokeWidth ) = 0;
- virtual double getStrokeWidth() const = 0;
+ virtual void setStrokeWidth( const double& rStrokeWidth ) = 0;
+ virtual double getStrokeWidth() const = 0;
- virtual ::com::sun::star::uno::Reference<
+ virtual ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D > getUNOPolyPolygon() const = 0;
};
diff --git a/cppcanvas/inc/cppcanvas/renderer.hxx b/cppcanvas/inc/cppcanvas/renderer.hxx
index 79f1eb0744f7..c944d830c376 100644
--- a/cppcanvas/inc/cppcanvas/renderer.hxx
+++ b/cppcanvas/inc/cppcanvas/renderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,8 +75,8 @@ namespace cppcanvas
@return whether the rendering finished successfully.
*/
- virtual bool drawSubset( sal_Int32 nStartIndex,
- sal_Int32 nEndIndex ) const = 0;
+ virtual bool drawSubset( sal_Int32 nStartIndex,
+ sal_Int32 nEndIndex ) const = 0;
/** Query bounding box of metafile subset
@@ -102,24 +102,24 @@ namespace cppcanvas
@return the bounding box of the specified subset
*/
- virtual ::basegfx::B2DRange getSubsetArea( sal_Int32 nStartIndex,
- sal_Int32 nEndIndex ) const = 0;
+ virtual ::basegfx::B2DRange getSubsetArea( sal_Int32 nStartIndex,
+ sal_Int32 nEndIndex ) const = 0;
/** Parameters for the Renderer
*/
struct Parameters
{
/// Optionally forces the fill color attribute for all actions
- ::comphelper::OptionalValue< Color::IntSRGBA > maFillColor;
+ ::comphelper::OptionalValue< Color::IntSRGBA > maFillColor;
/// Optionally forces the line color attribute for all actions
- ::comphelper::OptionalValue< Color::IntSRGBA > maLineColor;
+ ::comphelper::OptionalValue< Color::IntSRGBA > maLineColor;
/// Optionally forces the text color attribute for all actions
- ::comphelper::OptionalValue< Color::IntSRGBA > maTextColor;
+ ::comphelper::OptionalValue< Color::IntSRGBA > maTextColor;
/// Optionally forces the given fontname for all text actions
- ::comphelper::OptionalValue< ::rtl::OUString > maFontName;
+ ::comphelper::OptionalValue< ::rtl::OUString > maFontName;
/** Optionally transforms all text output actions with the
given matrix (in addition to the overall canvas
@@ -129,19 +129,19 @@ namespace cppcanvas
rect coordinate system, i.e. the metafile is assumed
to be contained in the unit rect.
*/
- ::comphelper::OptionalValue< ::basegfx::B2DHomMatrix > maTextTransformation;
+ ::comphelper::OptionalValue< ::basegfx::B2DHomMatrix > maTextTransformation;
/// Optionally forces the given font weight for all text actions
- ::comphelper::OptionalValue< sal_Int8 > maFontWeight;
+ ::comphelper::OptionalValue< sal_Int8 > maFontWeight;
/// Optionally forces the given font letter form (italics etc.) for all text actions
- ::comphelper::OptionalValue< sal_Int8 > maFontLetterForm;
+ ::comphelper::OptionalValue< sal_Int8 > maFontLetterForm;
/// Optionally forces the given font proportion (condensed, monospaced etc.) for all text actions
- ::comphelper::OptionalValue< sal_Int8 > maFontProportion;
+ ::comphelper::OptionalValue< sal_Int8 > maFontProportion;
/// Optionally forces underlining for all text actions
- ::comphelper::OptionalValue< bool > maFontUnderline;
+ ::comphelper::OptionalValue< bool > maFontUnderline;
};
};
diff --git a/cppcanvas/inc/cppcanvas/sprite.hxx b/cppcanvas/inc/cppcanvas/sprite.hxx
index 08c2beb2286a..bec621e55cf9 100644
--- a/cppcanvas/inc/cppcanvas/sprite.hxx
+++ b/cppcanvas/inc/cppcanvas/sprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ namespace basegfx
class B2DPoint;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XSprite;
} } } }
@@ -84,7 +84,7 @@ namespace cppcanvas
interpreted in device coordinates (i.e. screen pixel)
*/
virtual void setClipPixel( const ::basegfx::B2DPolyPolygon& rClipPoly ) = 0;
-
+
/** Set output clipping
This method applies the clip poly-polygon interpreted in
@@ -93,7 +93,7 @@ namespace cppcanvas
virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) = 0;
virtual void setClip() = 0;
-
+
virtual void show() = 0;
virtual void hide() = 0;
@@ -107,7 +107,7 @@ namespace cppcanvas
*/
virtual void setPriority( double fPriority ) = 0;
- virtual ::com::sun::star::uno::Reference<
+ virtual ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XSprite > getUNOSprite() const = 0;
};
diff --git a/cppcanvas/inc/cppcanvas/spritecanvas.hxx b/cppcanvas/inc/cppcanvas/spritecanvas.hxx
index df29d4345a85..a1f5cbe913e3 100644
--- a/cppcanvas/inc/cppcanvas/spritecanvas.hxx
+++ b/cppcanvas/inc/cppcanvas/spritecanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
#include <cppcanvas/sprite.hxx>
#include <cppcanvas/customsprite.hxx>
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XSpriteCanvas;
} } } }
@@ -60,21 +60,21 @@ namespace cppcanvas
class SpriteCanvas : public virtual BitmapCanvas
{
public:
- virtual bool updateScreen( bool bUpdateAll ) const = 0;
-
- virtual CustomSpriteSharedPtr createCustomSprite( const ::basegfx::B2DSize& ) const = 0;
- virtual SpriteSharedPtr createClonedSprite( const SpriteSharedPtr& ) const = 0;
+ virtual bool updateScreen( bool bUpdateAll ) const = 0;
+
+ virtual CustomSpriteSharedPtr createCustomSprite( const ::basegfx::B2DSize& ) const = 0;
+ virtual SpriteSharedPtr createClonedSprite( const SpriteSharedPtr& ) const = 0;
// shared_ptr does not allow for covariant return types
- SpriteCanvasSharedPtr cloneSpriteCanvas() const
+ SpriteCanvasSharedPtr cloneSpriteCanvas() const
{
SpriteCanvasSharedPtr p( ::boost::dynamic_pointer_cast< SpriteCanvas >(this->clone()) );
OSL_ENSURE(p.get(), "SpriteCanvas::cloneSpriteCanvas(): dynamic cast failed");
return p;
}
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSpriteCanvas > getUNOSpriteCanvas() const = 0;
+ virtual ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSpriteCanvas > getUNOSpriteCanvas() const = 0;
};
}
diff --git a/cppcanvas/inc/cppcanvas/text.hxx b/cppcanvas/inc/cppcanvas/text.hxx
index 1787103141ae..528d98db8c6a 100644
--- a/cppcanvas/inc/cppcanvas/text.hxx
+++ b/cppcanvas/inc/cppcanvas/text.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/cppcanvas/inc/cppcanvas/vclfactory.hxx b/cppcanvas/inc/cppcanvas/vclfactory.hxx
index acd51dfd8a81..23ece5bd2044 100644
--- a/cppcanvas/inc/cppcanvas/vclfactory.hxx
+++ b/cppcanvas/inc/cppcanvas/vclfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ namespace rtl
{
class OUString;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XBitmapCanvas;
class XSpriteCanvas;
@@ -76,60 +76,60 @@ namespace cppcanvas
public:
static VCLFactory& getInstance();
- BitmapCanvasSharedPtr createCanvas( const ::Window& rVCLWindow );
- BitmapCanvasSharedPtr createCanvas( const ::com::sun::star::uno::Reference<
+ BitmapCanvasSharedPtr createCanvas( const ::Window& rVCLWindow );
+ BitmapCanvasSharedPtr createCanvas( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmapCanvas >& xCanvas );
- SpriteCanvasSharedPtr createSpriteCanvas( const ::Window& rVCLWindow ) const;
- SpriteCanvasSharedPtr createSpriteCanvas( const ::com::sun::star::uno::Reference<
+ SpriteCanvasSharedPtr createSpriteCanvas( const ::Window& rVCLWindow ) const;
+ SpriteCanvasSharedPtr createSpriteCanvas( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XSpriteCanvas >& xCanvas ) const;
- SpriteCanvasSharedPtr createFullscreenSpriteCanvas( const ::Window& rVCLWindow, const Size& rFullscreenSize ) const;
+ SpriteCanvasSharedPtr createFullscreenSpriteCanvas( const ::Window& rVCLWindow, const Size& rFullscreenSize ) const;
/** Create a polygon from a tools::Polygon
The created polygon initially has the same size in user
coordinate space as the source polygon
*/
- PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::Polygon& rPoly ) const;
- PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::PolyPolygon& rPoly ) const;
+ PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::Polygon& rPoly ) const;
+ PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::PolyPolygon& rPoly ) const;
/** Create an uninitialized bitmap with the given size
*/
- BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::Size& rSize ) const;
+ BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::Size& rSize ) const;
/** Create an uninitialized alpha bitmap with the given size
*/
- BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::Size& rSize ) const;
+ BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::Size& rSize ) const;
/** Create a bitmap from a VCL Bitmap
*/
- BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::Bitmap& rBitmap ) const;
- BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::BitmapEx& rBmpEx ) const;
+ BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::Bitmap& rBitmap ) const;
+ BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::BitmapEx& rBmpEx ) const;
/** Create a renderer object from a Graphic
The created renderer initially draws the graphic
one-by-one units large, in user coordinate space
*/
- RendererSharedPtr createRenderer( const CanvasSharedPtr& rCanvas,
- const ::Graphic& rGraphic,
- const Renderer::Parameters& rParms ) const;
+ RendererSharedPtr createRenderer( const CanvasSharedPtr& rCanvas,
+ const ::Graphic& rGraphic,
+ const Renderer::Parameters& rParms ) const;
/** Create a renderer object from a Metafile
The created renderer initially draws the metafile
one-by-one units large, in user coordinate space
*/
- RendererSharedPtr createRenderer( const CanvasSharedPtr& rCanvas,
- const ::GDIMetaFile& rMtf,
- const Renderer::Parameters& rParms ) const;
+ RendererSharedPtr createRenderer( const CanvasSharedPtr& rCanvas,
+ const ::GDIMetaFile& rMtf,
+ const Renderer::Parameters& rParms ) const;
/** Create an animated sprite from a VCL animation
*/
- SpriteSharedPtr createAnimatedSprite( const SpriteCanvasSharedPtr&, const ::Animation& rAnim ) const;
+ SpriteSharedPtr createAnimatedSprite( const SpriteCanvasSharedPtr&, const ::Animation& rAnim ) const;
- /** Create a text portion with the given content string
+ /** Create a text portion with the given content string
*/
- TextSharedPtr createText( const CanvasSharedPtr&, const ::rtl::OUString& ) const;
+ TextSharedPtr createText( const CanvasSharedPtr&, const ::rtl::OUString& ) const;
private:
friend struct InitInstance;
diff --git a/cppcanvas/inc/pch/precompiled_cppcanvas.cxx b/cppcanvas/inc/pch/precompiled_cppcanvas.cxx
index 04b6f76e6ab5..22098888d3c5 100644
--- a/cppcanvas/inc/pch/precompiled_cppcanvas.cxx
+++ b/cppcanvas/inc/pch/precompiled_cppcanvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/cppcanvas/inc/pch/precompiled_cppcanvas.hxx b/cppcanvas/inc/pch/precompiled_cppcanvas.hxx
index 87c94a92a0ff..9142ff1f0c6d 100644
--- a/cppcanvas/inc/pch/precompiled_cppcanvas.hxx
+++ b/cppcanvas/inc/pch/precompiled_cppcanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/cppcanvas/source/inc/action.hxx b/cppcanvas/source/inc/action.hxx
index 971cfcb4609f..c4a74588bcc8 100644
--- a/cppcanvas/source/inc/action.hxx
+++ b/cppcanvas/source/inc/action.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,8 +42,8 @@ namespace basegfx
/* Definition of Action interface */
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
/** Interface for internal render actions
@@ -77,7 +77,7 @@ namespace cppcanvas
The index given here specifies the first subaction
to render.
*/
- sal_Int32 mnSubsetBegin;
+ sal_Int32 mnSubsetBegin;
/** Denotes end of the subset
@@ -85,13 +85,13 @@ namespace cppcanvas
<em>not<em> to render, i.e. one action behind the
subset to be rendered
*/
- sal_Int32 mnSubsetEnd;
+ sal_Int32 mnSubsetEnd;
};
virtual ~Action() {}
/** Render this action to the associated canvas
-
+
@param rTransformation
Transformation matrix to apply before rendering
@@ -101,7 +101,7 @@ namespace cppcanvas
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const = 0;
/** Render the given part of the action to the associated
- canvas.
+ canvas.
@param rTransformation
Transformation matrix to apply before rendering
@@ -115,10 +115,10 @@ namespace cppcanvas
rendering failed for other reasons, false is returned.
*/
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const = 0;
+ const Subset& rSubset ) const = 0;
/** Query bounds of this action on the associated canvas
-
+
@param rTransformation
Transformation matrix to apply
@@ -140,8 +140,8 @@ namespace cppcanvas
@return the bounds for the given subset in device
coordinate space.
*/
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const = 0;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const = 0;
/** Query action count.
@@ -152,7 +152,7 @@ namespace cppcanvas
@return the number of subset actions
*/
- virtual sal_Int32 getActionCount() const = 0;
+ virtual sal_Int32 getActionCount() const = 0;
};
typedef ::boost::shared_ptr< Action > ActionSharedPtr;
diff --git a/cppcanvas/source/inc/canvasgraphichelper.hxx b/cppcanvas/source/inc/canvasgraphichelper.hxx
index 6d49939be1b7..5a841187e79d 100644
--- a/cppcanvas/source/inc/canvasgraphichelper.hxx
+++ b/cppcanvas/source/inc/canvasgraphichelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@
#include <boost/optional.hpp>
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XGraphicDevice;
} } } }
@@ -49,14 +49,14 @@ namespace cppcanvas
namespace internal
{
-
+
class CanvasGraphicHelper : public virtual CanvasGraphic
{
public:
CanvasGraphicHelper( const CanvasSharedPtr& rParentCanvas );
// CanvasGraphic implementation
- virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix );
+ virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix );
virtual ::basegfx::B2DHomMatrix getTransformation() const;
virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly );
virtual void setClip();
@@ -69,15 +69,15 @@ namespace cppcanvas
protected:
// for our clients
// ===============
- CanvasSharedPtr getCanvas() const;
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > getGraphicDevice() const;
+ CanvasSharedPtr getCanvas() const;
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > getGraphicDevice() const;
const ::com::sun::star::rendering::RenderState& getRenderState() const;
private:
- mutable ::com::sun::star::rendering::RenderState maRenderState;
+ mutable ::com::sun::star::rendering::RenderState maRenderState;
boost::optional<basegfx::B2DPolyPolygon> maClipPolyPolygon;
- CanvasSharedPtr mpCanvas;
+ CanvasSharedPtr mpCanvas;
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > mxGraphicDevice;
};
diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx
index 3766e1b2d31b..18ae0106004f 100644
--- a/cppcanvas/source/inc/implrenderer.hxx
+++ b/cppcanvas/source/inc/implrenderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,18 +69,18 @@ namespace cppcanvas
// state stack of OutputDevice, to correctly handle
// push/pop actions
- typedef ::std::vector< OutDevState > VectorOfOutDevStates;
+ typedef ::std::vector< OutDevState > VectorOfOutDevStates;
// EMF+
// TODO: replace?
struct XForm
{
- float eM11;
- float eM12;
- float eM21;
- float eM22;
- float eDx;
- float eDy;
+ float eM11;
+ float eM12;
+ float eM21;
+ float eM22;
+ float eDx;
+ float eDy;
XForm()
{
SetIdentity ();
@@ -171,40 +171,40 @@ static float GetSwapFloat( SvStream& rSt )
class ImplRenderer : public virtual Renderer, protected CanvasGraphicHelper
{
public:
- ImplRenderer( const CanvasSharedPtr& rCanvas,
- const GDIMetaFile& rMtf,
- const Parameters& rParms );
- ImplRenderer( const CanvasSharedPtr& rCanvas,
- const BitmapEx& rBmpEx,
- const Parameters& rParms );
+ ImplRenderer( const CanvasSharedPtr& rCanvas,
+ const GDIMetaFile& rMtf,
+ const Parameters& rParms );
+ ImplRenderer( const CanvasSharedPtr& rCanvas,
+ const BitmapEx& rBmpEx,
+ const Parameters& rParms );
virtual ~ImplRenderer();
- virtual bool draw() const;
- virtual bool drawSubset( sal_Int32 nStartIndex,
- sal_Int32 nEndIndex ) const;
- virtual ::basegfx::B2DRange getSubsetArea( sal_Int32 nStartIndex,
- sal_Int32 nEndIndex ) const;
+ virtual bool draw() const;
+ virtual bool drawSubset( sal_Int32 nStartIndex,
+ sal_Int32 nEndIndex ) const;
+ virtual ::basegfx::B2DRange getSubsetArea( sal_Int32 nStartIndex,
+ sal_Int32 nEndIndex ) const;
// element of the Renderer's action vector. Need to be
// public, since some functors need it, too.
struct MtfAction
{
- MtfAction( const ActionSharedPtr& rAction,
- sal_Int32 nOrigIndex ) :
+ MtfAction( const ActionSharedPtr& rAction,
+ sal_Int32 nOrigIndex ) :
mpAction( rAction ),
mnOrigIndex( nOrigIndex )
{
}
ActionSharedPtr mpAction;
- sal_Int32 mnOrigIndex;
+ sal_Int32 mnOrigIndex;
};
// prefetched and prepared canvas actions
// (externally not visible)
- typedef ::std::vector< MtfAction > ActionVector;
+ typedef ::std::vector< MtfAction > ActionVector;
/* EMF+ */
void ReadRectangle (SvStream& s, float& x, float& y, float &width, float& height, sal_uInt32 flags = 0);
@@ -228,7 +228,7 @@ static float GetSwapFloat( SvStream& rSt )
const ActionFactoryParameters& rParms,
bool bIntersect );
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvasFont > createFont( double& o_rFontRotation,
const ::Font& rFont,
const ActionFactoryParameters& rParms ) const;
diff --git a/cppcanvas/source/inc/tools.hxx b/cppcanvas/source/inc/tools.hxx
index bdd9848822fa..529e8bc19ecd 100644
--- a/cppcanvas/source/inc/tools.hxx
+++ b/cppcanvas/source/inc/tools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <cppcanvas/color.hxx>
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XGraphicDevice;
} } } }
@@ -43,14 +43,14 @@ namespace cppcanvas
{
namespace tools
{
- ::com::sun::star::uno::Sequence< double >
- intSRGBAToDoubleSequence( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >&,
+ ::com::sun::star::uno::Sequence< double >
+ intSRGBAToDoubleSequence( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >&,
Color::IntSRGBA );
- Color::IntSRGBA doubleSequenceToIntSRGBA( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& rDevice,
- const ::com::sun::star::uno::Sequence< double >& rColor );
+ Color::IntSRGBA doubleSequenceToIntSRGBA( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& rDevice,
+ const ::com::sun::star::uno::Sequence< double >& rColor );
}
}
diff --git a/cppcanvas/source/mtfrenderer/bitmapaction.cxx b/cppcanvas/source/mtfrenderer/bitmapaction.cxx
index cbbd817cc0ec..1692c5f2c370 100644
--- a/cppcanvas/source/mtfrenderer/bitmapaction.cxx
+++ b/cppcanvas/source/mtfrenderer/bitmapaction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,32 +52,32 @@
using namespace ::com::sun::star;
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
namespace
{
class BitmapAction : public CachedPrimitiveBase
- {
- public:
- BitmapAction( const ::BitmapEx&,
- const ::basegfx::B2DPoint& rDstPoint,
- const CanvasSharedPtr&,
- const OutDevState& );
+ {
+ public:
+ BitmapAction( const ::BitmapEx&,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const CanvasSharedPtr&,
+ const OutDevState& );
BitmapAction( const ::BitmapEx&,
- const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DPoint& rDstPoint,
const ::basegfx::B2DVector& rDstSize,
- const CanvasSharedPtr&,
- const OutDevState& );
+ const CanvasSharedPtr&,
+ const OutDevState& );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
@@ -86,18 +86,18 @@ namespace cppcanvas
virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive,
const ::basegfx::B2DHomMatrix& rTransformation ) const;
- uno::Reference< rendering::XBitmap > mxBitmap;
- CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
+ uno::Reference< rendering::XBitmap > mxBitmap;
+ CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
};
- BitmapAction::BitmapAction( const ::BitmapEx& rBmpEx,
- const ::basegfx::B2DPoint& rDstPoint,
- const CanvasSharedPtr& rCanvas,
+ BitmapAction::BitmapAction( const ::BitmapEx& rBmpEx,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const CanvasSharedPtr& rCanvas,
const OutDevState& rState ) :
CachedPrimitiveBase( rCanvas, true ),
- mxBitmap( ::vcl::unotools::xBitmapFromBitmapEx( rCanvas->getUNOCanvas()->getDevice(),
+ mxBitmap( ::vcl::unotools::xBitmapFromBitmapEx( rCanvas->getUNOCanvas()->getDevice(),
rBmpEx ) ),
mpCanvas( rCanvas ),
maState()
@@ -106,26 +106,26 @@ namespace cppcanvas
// Setup transformation such that the next render call is
// moved rPoint away.
- const basegfx::B2DHomMatrix aLocalTransformation(basegfx::tools::createTranslateB2DHomMatrix(rDstPoint));
- ::canvas::tools::appendToRenderState( maState,
+ const basegfx::B2DHomMatrix aLocalTransformation(basegfx::tools::createTranslateB2DHomMatrix(rDstPoint));
+ ::canvas::tools::appendToRenderState( maState,
aLocalTransformation );
// correct clip (which is relative to original transform)
- tools::modifyClip( maState,
- rState,
- rCanvas,
- rDstPoint,
+ tools::modifyClip( maState,
+ rState,
+ rCanvas,
+ rDstPoint,
NULL,
NULL );
}
- BitmapAction::BitmapAction( const ::BitmapEx& rBmpEx,
- const ::basegfx::B2DPoint& rDstPoint,
+ BitmapAction::BitmapAction( const ::BitmapEx& rBmpEx,
+ const ::basegfx::B2DPoint& rDstPoint,
const ::basegfx::B2DVector& rDstSize,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState ) :
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState ) :
CachedPrimitiveBase( rCanvas, true ),
- mxBitmap( ::vcl::unotools::xBitmapFromBitmapEx( rCanvas->getUNOCanvas()->getDevice(),
+ mxBitmap( ::vcl::unotools::xBitmapFromBitmapEx( rCanvas->getUNOCanvas()->getDevice(),
rBmpEx ) ),
mpCanvas( rCanvas ),
maState()
@@ -136,18 +136,18 @@ namespace cppcanvas
// moved rPoint away, and scaled according to the ratio
// given by src and dst size.
const ::Size aBmpSize( rBmpEx.GetSizePixel() );
-
- const ::basegfx::B2DVector aScale( rDstSize.getX() / aBmpSize.Width(),
+
+ const ::basegfx::B2DVector aScale( rDstSize.getX() / aBmpSize.Width(),
rDstSize.getY() / aBmpSize.Height() );
- const basegfx::B2DHomMatrix aLocalTransformation(basegfx::tools::createScaleTranslateB2DHomMatrix(
+ const basegfx::B2DHomMatrix aLocalTransformation(basegfx::tools::createScaleTranslateB2DHomMatrix(
aScale, rDstPoint));
::canvas::tools::appendToRenderState( maState, aLocalTransformation );
-
+
// correct clip (which is relative to original transform)
- tools::modifyClip( maState,
- rState,
- rCanvas,
- rDstPoint,
+ tools::modifyClip( maState,
+ rState,
+ rCanvas,
+ rDstPoint,
&aScale,
NULL );
}
@@ -164,12 +164,12 @@ namespace cppcanvas
rCachedPrimitive = mpCanvas->getUNOCanvas()->drawBitmap( mxBitmap,
mpCanvas->getViewState(),
aLocalState );
-
+
return true;
}
- bool BitmapAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool BitmapAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// bitmap only contains a single action, fail if subset
// requests different range
@@ -184,7 +184,7 @@ namespace cppcanvas
{
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
-
+
const geometry::IntegerSize2D aSize( mxBitmap->getSize() );
return tools::calcDevicePixelBounds( ::basegfx::B2DRange( 0,0,
@@ -194,8 +194,8 @@ namespace cppcanvas
aLocalState );
}
- ::basegfx::B2DRange BitmapAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange BitmapAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// bitmap only contains a single action, empty bounds
// if subset requests different range
@@ -210,11 +210,11 @@ namespace cppcanvas
{
return 1;
}
- }
-
- ActionSharedPtr BitmapActionFactory::createBitmapAction( const ::BitmapEx& rBmpEx,
- const ::basegfx::B2DPoint& rDstPoint,
- const CanvasSharedPtr& rCanvas,
+ }
+
+ ActionSharedPtr BitmapActionFactory::createBitmapAction( const ::BitmapEx& rBmpEx,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const CanvasSharedPtr& rCanvas,
const OutDevState& rState )
{
return ActionSharedPtr( new BitmapAction(rBmpEx,
@@ -222,11 +222,11 @@ namespace cppcanvas
rCanvas,
rState ) );
}
-
+
ActionSharedPtr BitmapActionFactory::createBitmapAction( const ::BitmapEx& rBmpEx,
- const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DPoint& rDstPoint,
const ::basegfx::B2DVector& rDstSize,
- const CanvasSharedPtr& rCanvas,
+ const CanvasSharedPtr& rCanvas,
const OutDevState& rState )
{
return ActionSharedPtr( new BitmapAction(rBmpEx,
@@ -234,7 +234,7 @@ namespace cppcanvas
rDstSize,
rCanvas,
rState ) );
- }
+ }
}
}
diff --git a/cppcanvas/source/mtfrenderer/bitmapaction.hxx b/cppcanvas/source/mtfrenderer/bitmapaction.hxx
index e6c7b83ee626..f3bb34736d88 100644
--- a/cppcanvas/source/mtfrenderer/bitmapaction.hxx
+++ b/cppcanvas/source/mtfrenderer/bitmapaction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,8 +40,8 @@ class BitmapEx;
/* Definition of internal::BitmapActionFactory class */
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
struct OutDevState;
@@ -57,16 +57,16 @@ namespace cppcanvas
{
public:
/// Unscaled bitmap action, only references destination point
- static ActionSharedPtr createBitmapAction( const ::BitmapEx&,
- const ::basegfx::B2DPoint& rDstPoint,
- const CanvasSharedPtr&,
- const OutDevState& );
-
+ static ActionSharedPtr createBitmapAction( const ::BitmapEx&,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const CanvasSharedPtr&,
+ const OutDevState& );
+
/// Scaled bitmap action, dest point and dest size
static ActionSharedPtr createBitmapAction( const ::BitmapEx&,
- const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DPoint& rDstPoint,
const ::basegfx::B2DVector& rDstSize,
- const CanvasSharedPtr&,
+ const CanvasSharedPtr&,
const OutDevState& );
private:
diff --git a/cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx b/cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx
index 9cd01fc42a03..21ee8be44f06 100644
--- a/cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx
+++ b/cppcanvas/source/mtfrenderer/cachedprimitivebase.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@
using namespace ::com::sun::star;
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
CachedPrimitiveBase::CachedPrimitiveBase( const CanvasSharedPtr& rCanvas,
@@ -76,7 +76,7 @@ namespace cppcanvas
(!mbOnlyRedrawWithSameTransform ||
maLastTransformation == aTotalTransform) )
{
- if( mxCachedPrimitive->redraw( rViewState ) ==
+ if( mxCachedPrimitive->redraw( rViewState ) ==
rendering::RepaintResult::REDRAWN )
{
// cached repaint succeeded, done.
diff --git a/cppcanvas/source/mtfrenderer/cachedprimitivebase.hxx b/cppcanvas/source/mtfrenderer/cachedprimitivebase.hxx
index 8cef77f1dd26..34995a60cc39 100644
--- a/cppcanvas/source/mtfrenderer/cachedprimitivebase.hxx
+++ b/cppcanvas/source/mtfrenderer/cachedprimitivebase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,8 +42,8 @@ namespace basegfx { class B2DHomMatrix; }
/* Definition of internal::CachedPrimitiveBase class */
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
/** Base class providing cached re-rendering, if XCanvas
@@ -68,7 +68,7 @@ namespace cppcanvas
When true, this class only reuses the cached
primitive, if the overall transformation stays the
same. Otherwise, repaints are always performed via the
- cached primitive.
+ cached primitive.
*/
CachedPrimitiveBase( const CanvasSharedPtr& rCanvas,
bool bOnlyRedrawWithSameTransform );
@@ -80,13 +80,13 @@ namespace cppcanvas
using Action::render;
private:
- virtual bool render( ::com::sun::star::uno::Reference<
+ virtual bool render( ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCachedPrimitive >& rCachedPrimitive,
const ::basegfx::B2DHomMatrix& rTransformation ) const = 0;
CanvasSharedPtr mpCanvas;
- mutable ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCachedPrimitive > mxCachedPrimitive;
+ mutable ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCachedPrimitive > mxCachedPrimitive;
mutable ::basegfx::B2DHomMatrix maLastTransformation;
const bool mbOnlyRedrawWithSameTransform;
};
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index b35a3a723edc..02c9ca1c65c7 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -861,7 +861,7 @@ namespace cppcanvas
::vcl::unotools::colorToDoubleSequence( ::Color (0xff - (x >> 24), \
(x >> 16) & 0xff, \
(x >> 8) & 0xff, \
- x & 0xff), \
+ x & 0xff), \
rCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace());
#define SET_FILL_COLOR(x) \
rState.fillColor = COLOR(x);
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index ed07162f973c..9c026b137474 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -104,10 +104,10 @@ using namespace ::com::sun::star;
// ======================
namespace
{
- template < class MetaActionType > void setStateColor( MetaActionType* pAct,
- bool& rIsColorSet,
- uno::Sequence< double >& rColorSequence,
- const cppcanvas::CanvasSharedPtr& rCanvas )
+ template < class MetaActionType > void setStateColor( MetaActionType* pAct,
+ bool& rIsColorSet,
+ uno::Sequence< double >& rColorSequence,
+ const cppcanvas::CanvasSharedPtr& rCanvas )
{
// set rIsColorSet and check for true at the same time
if( (rIsColorSet=pAct->IsSetting()) != false )
@@ -120,7 +120,7 @@ namespace
aColor.SetTransparency(0);
//aColor.SetTransparency(128);
- rColorSequence = ::vcl::unotools::colorToDoubleSequence(
+ rColorSequence = ::vcl::unotools::colorToDoubleSequence(
aColor,
rCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace() );
}
@@ -147,7 +147,7 @@ namespace
}
void pushState( ::cppcanvas::internal::VectorOfOutDevStates& rStates,
- USHORT nFlags )
+ USHORT nFlags )
{
rStates.push_back( getState( rStates ) );
getState( rStates ).pushFlags = nFlags;
@@ -156,12 +156,12 @@ namespace
void popState( ::cppcanvas::internal::VectorOfOutDevStates& rStates )
{
if( getState( rStates ).pushFlags != PUSH_ALL )
- {
+ {
// a state is pushed which is incomplete, i.e. does not
// restore everything to the previous stack level when
// popped.
// That means, we take the old state, and restore every
- // OutDevState member whose flag is set, from the new to the
+ // OutDevState member whose flag is set, from the new to the
// old state. Then the new state gets overwritten by the
// calculated state
@@ -176,28 +176,28 @@ namespace
if( (aCalculatedNewState.pushFlags & PUSH_LINECOLOR) )
{
- aCalculatedNewState.lineColor = rNewState.lineColor;
+ aCalculatedNewState.lineColor = rNewState.lineColor;
aCalculatedNewState.isLineColorSet = rNewState.isLineColorSet;
}
if( (aCalculatedNewState.pushFlags & PUSH_FILLCOLOR) )
{
- aCalculatedNewState.fillColor = rNewState.fillColor;
+ aCalculatedNewState.fillColor = rNewState.fillColor;
aCalculatedNewState.isFillColorSet = rNewState.isFillColorSet;
}
if( (aCalculatedNewState.pushFlags & PUSH_FONT) )
{
- aCalculatedNewState.xFont = rNewState.xFont;
- aCalculatedNewState.fontRotation = rNewState.fontRotation;
- aCalculatedNewState.textReliefStyle = rNewState.textReliefStyle;
- aCalculatedNewState.textOverlineStyle = rNewState.textOverlineStyle;
- aCalculatedNewState.textUnderlineStyle = rNewState.textUnderlineStyle;
- aCalculatedNewState.textStrikeoutStyle = rNewState.textStrikeoutStyle;
- aCalculatedNewState.textEmphasisMarkStyle = rNewState.textEmphasisMarkStyle;
- aCalculatedNewState.isTextEffectShadowSet = rNewState.isTextEffectShadowSet;
- aCalculatedNewState.isTextWordUnderlineSet = rNewState.isTextWordUnderlineSet;
- aCalculatedNewState.isTextOutlineModeSet = rNewState.isTextOutlineModeSet;
+ aCalculatedNewState.xFont = rNewState.xFont;
+ aCalculatedNewState.fontRotation = rNewState.fontRotation;
+ aCalculatedNewState.textReliefStyle = rNewState.textReliefStyle;
+ aCalculatedNewState.textOverlineStyle = rNewState.textOverlineStyle;
+ aCalculatedNewState.textUnderlineStyle = rNewState.textUnderlineStyle;
+ aCalculatedNewState.textStrikeoutStyle = rNewState.textStrikeoutStyle;
+ aCalculatedNewState.textEmphasisMarkStyle = rNewState.textEmphasisMarkStyle;
+ aCalculatedNewState.isTextEffectShadowSet = rNewState.isTextEffectShadowSet;
+ aCalculatedNewState.isTextWordUnderlineSet = rNewState.isTextWordUnderlineSet;
+ aCalculatedNewState.isTextOutlineModeSet = rNewState.isTextOutlineModeSet;
}
if( (aCalculatedNewState.pushFlags & PUSH_TEXTCOLOR) )
@@ -212,9 +212,9 @@ namespace
if( (aCalculatedNewState.pushFlags & PUSH_CLIPREGION) )
{
- aCalculatedNewState.clip = rNewState.clip;
- aCalculatedNewState.clipRect = rNewState.clipRect;
- aCalculatedNewState.xClipPoly = rNewState.xClipPoly;
+ aCalculatedNewState.clip = rNewState.clip;
+ aCalculatedNewState.clipRect = rNewState.clipRect;
+ aCalculatedNewState.xClipPoly = rNewState.xClipPoly;
}
// TODO(F2): Raster ops NYI
@@ -224,7 +224,7 @@ namespace
if( (aCalculatedNewState.pushFlags & PUSH_TEXTFILLCOLOR) )
{
- aCalculatedNewState.textFillColor = rNewState.textFillColor;
+ aCalculatedNewState.textFillColor = rNewState.textFillColor;
aCalculatedNewState.isTextFillColorSet = rNewState.isTextFillColorSet;
}
@@ -240,7 +240,7 @@ namespace
if( (aCalculatedNewState.pushFlags & PUSH_TEXTLINECOLOR) )
{
- aCalculatedNewState.textLineColor = rNewState.textLineColor;
+ aCalculatedNewState.textLineColor = rNewState.textLineColor;
aCalculatedNewState.isTextLineColorSet = rNewState.isTextLineColorSet;
}
@@ -269,14 +269,14 @@ namespace
void setupStrokeAttributes( rendering::StrokeAttributes& o_rStrokeAttributes,
const ::cppcanvas::internal::ActionFactoryParameters& rParms,
- const LineInfo& rLineInfo )
+ const LineInfo& rLineInfo )
{
const ::basegfx::B2DSize aWidth( rLineInfo.GetWidth(), 0 );
- o_rStrokeAttributes.StrokeWidth =
+ o_rStrokeAttributes.StrokeWidth =
(getState( rParms.mrStates ).mapModeTransform * aWidth).getX();
// setup reasonable defaults
- o_rStrokeAttributes.MiterLimit = 15.0; // 1.0 was no good default; GDI+'s limit is 10.0, our's is 15.0
+ o_rStrokeAttributes.MiterLimit = 15.0; // 1.0 was no good default; GDI+'s limit is 10.0, our's is 15.0
o_rStrokeAttributes.StartCapType = rendering::PathCapType::BUTT;
o_rStrokeAttributes.EndCapType = rendering::PathCapType::BUTT;
@@ -315,7 +315,7 @@ namespace
const sal_Int32 nNumArryEntries( 2*rLineInfo.GetDashCount() +
2*rLineInfo.GetDotCount() );
-
+
o_rStrokeAttributes.DashArray.realloc( nNumArryEntries );
double* pDashArray = o_rStrokeAttributes.DashArray.getArray();
@@ -335,7 +335,7 @@ namespace
{
pDashArray[nCurrEntry++] = nDotLen;
pDashArray[nCurrEntry++] = nDistance;
- }
+ }
}
}
@@ -356,7 +356,7 @@ namespace
1,
&aBiLevelPalette );
aSolid.Erase( rMaskColor );
-
+
return BitmapEx( aSolid, aMask );
}
@@ -474,7 +474,7 @@ namespace cppcanvas
return false;
}
- ActionSharedPtr pPolyAction(
+ ActionSharedPtr pPolyAction(
internal::PolyPolyActionFactory::createPolyPolyAction(
rPolyPoly, rParms.mrCanvas, rState ) );
@@ -484,7 +484,7 @@ namespace cppcanvas
MtfAction(
pPolyAction,
rParms.mrCurrActionIndex ) );
-
+
rParms.mrCurrActionIndex += pPolyAction->getActionCount()-1;
}
@@ -500,7 +500,7 @@ namespace cppcanvas
void ImplRenderer::skipContent( GDIMetaFile& rMtf,
const char* pCommentString,
- sal_Int32& io_rCurrActionIndex ) const
+ sal_Int32& io_rCurrActionIndex ) const
{
ENSURE_OR_THROW( pCommentString,
"ImplRenderer::skipContent(): NULL string given" );
@@ -512,7 +512,7 @@ namespace cppcanvas
++io_rCurrActionIndex;
if( pCurrAct->GetType() == META_COMMENT_ACTION &&
- static_cast<MetaCommentAction*>(pCurrAct)->GetComment().CompareIgnoreCaseToAscii(
+ static_cast<MetaCommentAction*>(pCurrAct)->GetComment().CompareIgnoreCaseToAscii(
pCommentString ) == COMPARE_EQUAL )
{
// requested comment found, done
@@ -526,7 +526,7 @@ namespace cppcanvas
bool ImplRenderer::isActionContained( GDIMetaFile& rMtf,
const char* pCommentString,
- USHORT nType ) const
+ USHORT nType ) const
{
ENSURE_OR_THROW( pCommentString,
"ImplRenderer::isActionContained(): NULL string given" );
@@ -547,7 +547,7 @@ namespace cppcanvas
}
if( pCurrAct->GetType() == META_COMMENT_ACTION &&
- static_cast<MetaCommentAction*>(pCurrAct)->GetComment().CompareIgnoreCaseToAscii(
+ static_cast<MetaCommentAction*>(pCurrAct)->GetComment().CompareIgnoreCaseToAscii(
pCommentString ) == COMPARE_EQUAL )
{
// delimiting end comment found, done
@@ -572,11 +572,11 @@ namespace cppcanvas
return bRet;
}
- void ImplRenderer::createGradientAction( const ::PolyPolygon& rPoly,
- const ::Gradient& rGradient,
+ void ImplRenderer::createGradientAction( const ::PolyPolygon& rPoly,
+ const ::Gradient& rGradient,
const ActionFactoryParameters& rParms,
- bool bIsPolygonRectangle,
- bool bSubsettableActions )
+ bool bIsPolygonRectangle,
+ bool bSubsettableActions )
{
DBG_TESTSOLARMUTEX();
@@ -593,7 +593,7 @@ namespace cppcanvas
nSteps == 0 ||
// step count is sufficiently high, such that no
// discernible difference should be visible.
- nSteps > 64 )
+ nSteps > 64 )
{
uno::Reference< lang::XMultiServiceFactory> xFactory(
rParms.mrCanvas->getUNOCanvas()->getDevice()->getParametricPolyPolygonFactory() );
@@ -634,7 +634,7 @@ namespace cppcanvas
uno::Sequence< uno::Sequence < double > > aColors(2);
uno::Sequence< double > aStops(2);
-
+
if( rGradient.GetStyle() == GRADIENT_AXIAL )
{
aStops.realloc(3);
@@ -643,7 +643,7 @@ namespace cppcanvas
aStops[0] = 0.0;
aStops[1] = 0.5;
aStops[2] = 1.0;
-
+
aColors[0] = aEndColor;
aColors[1] = aStartColor;
aColors[2] = aEndColor;
@@ -652,14 +652,14 @@ namespace cppcanvas
{
aStops[0] = 0.0;
aStops[1] = 1.0;
-
+
aColors[0] = aStartColor;
aColors[1] = aEndColor;
}
- const ::basegfx::B2DRectangle aBounds(
+ const ::basegfx::B2DRectangle aBounds(
::basegfx::tools::getRange(aDevicePoly) );
- const ::basegfx::B2DVector aOffset(
+ const ::basegfx::B2DVector aOffset(
rGradient.GetOfsX() / 100.0,
rGradient.GetOfsY() / 100.0);
double fRotation( rGradient.GetAngle() * M_PI / 1800.0 );
@@ -762,7 +762,7 @@ namespace cppcanvas
"ImplRenderer::createGradientAction(): Unexpected gradient type" );
break;
}
-
+
// As the texture coordinate space is relative to
// the polygon coordinate space (NOT to the
// polygon itself), move gradient to the start of
@@ -770,9 +770,9 @@ namespace cppcanvas
// gradient will always display at the origin, and
// not within the polygon bound (which might be
// miles away from the origin).
- aGradInfo.maTextureTransform.translate( aBounds.getMinX(),
+ aGradInfo.maTextureTransform.translate( aBounds.getMinX(),
aBounds.getMinY() );
- ::basegfx::unotools::affineMatrixFromHomMatrix( aTexture.AffineTransform,
+ ::basegfx::unotools::affineMatrixFromHomMatrix( aTexture.AffineTransform,
aGradInfo.maTextureTransform );
uno::Sequence<uno::Any> args(3);
@@ -793,20 +793,20 @@ namespace cppcanvas
uno::UNO_QUERY);
if( aTexture.Gradient.is() )
{
- ActionSharedPtr pPolyAction(
- internal::PolyPolyActionFactory::createPolyPolyAction(
- aDevicePoly,
- rParms.mrCanvas,
+ ActionSharedPtr pPolyAction(
+ internal::PolyPolyActionFactory::createPolyPolyAction(
+ aDevicePoly,
+ rParms.mrCanvas,
getState( rParms.mrStates ),
aTexture ) );
if( pPolyAction )
{
- maActions.push_back(
- MtfAction(
+ maActions.push_back(
+ MtfAction(
pPolyAction,
rParms.mrCurrActionIndex ) );
-
+
rParms.mrCurrActionIndex += pPolyAction->getActionCount()-1;
}
@@ -826,7 +826,7 @@ namespace cppcanvas
// only clip, if given polygon is not a rectangle in
// the first place (the gradient is always limited to
// the given bound rect)
- updateClipping(
+ updateClipping(
aDevicePoly,
rParms,
true );
@@ -851,7 +851,7 @@ namespace cppcanvas
if( rParms.mrParms.maFontName.isValid() )
aFontRequest.FontDescription.FamilyName = rParms.mrParms.maFontName.getValue();
else
- aFontRequest.FontDescription.FamilyName = rFont.GetName();
+ aFontRequest.FontDescription.FamilyName = rFont.GetName();
aFontRequest.FontDescription.StyleName = rFont.GetStyleName();
@@ -859,11 +859,11 @@ namespace cppcanvas
aFontRequest.FontDescription.IsVertical = rFont.IsVertical() ? util::TriState_YES : util::TriState_NO;
// TODO(F2): improve vclenum->panose conversion
- aFontRequest.FontDescription.FontDescription.Weight =
+ aFontRequest.FontDescription.FontDescription.Weight =
rParms.mrParms.maFontWeight.isValid() ?
rParms.mrParms.maFontWeight.getValue() :
::canvas::tools::numeric_cast<sal_Int8>( ::basegfx::fround( rFont.GetWeight() ) );
- aFontRequest.FontDescription.FontDescription.Letterform =
+ aFontRequest.FontDescription.FontDescription.Letterform =
rParms.mrParms.maFontLetterForm.isValid() ?
rParms.mrParms.maFontLetterForm.getValue() :
(rFont.GetItalic() == ITALIC_NONE) ? 0 : 9;
@@ -938,7 +938,7 @@ namespace cppcanvas
}
// create text effects such as shadow/relief/embossed
- void ImplRenderer::createTextAction( const ::Point& rStartPoint,
+ void ImplRenderer::createTextAction( const ::Point& rStartPoint,
const String rString,
int nIndex,
int nLength,
@@ -1023,7 +1023,7 @@ namespace cppcanvas
}
// create the actual text action
- ActionSharedPtr pTextAction(
+ ActionSharedPtr pTextAction(
TextActionFactory::createTextAction(
rStartPoint,
aReliefOffset,
@@ -1061,7 +1061,7 @@ namespace cppcanvas
nStrikeoutWidth = ( rParms.mrVDev.GetTextWidth( aStrikeoutTest ) + 2 ) / 4;
aStrikeoutTest.Erase();
- if( nStrikeoutWidth <= 0 )
+ if( nStrikeoutWidth <= 0 )
nStrikeoutWidth = 1;
}
@@ -1095,7 +1095,7 @@ namespace cppcanvas
pStrikeoutCharWidths[ i ] += pStrikeoutCharWidths[ i-1 ];
}
- pStrikeoutTextAction =
+ pStrikeoutTextAction =
TextActionFactory::createTextAction(
rStartPoint,
aReliefOffset,
@@ -1116,15 +1116,15 @@ namespace cppcanvas
if( pTextAction )
{
- maActions.push_back(
- MtfAction(
+ maActions.push_back(
+ MtfAction(
pTextAction,
rParms.mrCurrActionIndex ) );
if ( pStrikeoutTextAction )
{
- maActions.push_back(
- MtfAction(
+ maActions.push_back(
+ MtfAction(
pStrikeoutTextAction,
rParms.mrCurrActionIndex ) );
}
@@ -1133,9 +1133,9 @@ namespace cppcanvas
}
}
- void ImplRenderer::updateClipping( const ::basegfx::B2DPolyPolygon& rClipPoly,
+ void ImplRenderer::updateClipping( const ::basegfx::B2DPolyPolygon& rClipPoly,
const ActionFactoryParameters& rParms,
- bool bIntersect )
+ bool bIntersect )
{
::cppcanvas::internal::OutDevState& rState( getState( rParms.mrStates ) );
::basegfx::B2DPolyPolygon aClipPoly( rClipPoly );
@@ -1161,7 +1161,7 @@ namespace cppcanvas
// convert rect to polygon beforehand, must revert
// to general polygon clipping here.
rState.clip = ::basegfx::B2DPolyPolygon(
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::tools::createPolygonFromRect(
// #121100# VCL rectangular clips always
// include one more pixel to the right
// and the bottom
@@ -1191,7 +1191,7 @@ namespace cppcanvas
rState.xClipPoly = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
rParms.mrCanvas->getUNOCanvas()->getDevice(),
::basegfx::B2DPolyPolygon(
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::tools::createPolygonFromRect(
// #121100# VCL rectangular clips
// always include one more pixel to
// the right and the bottom
@@ -1209,7 +1209,7 @@ namespace cppcanvas
}
}
- void ImplRenderer::updateClipping( const ::Rectangle& rClipRect,
+ void ImplRenderer::updateClipping( const ::Rectangle& rClipRect,
const ActionFactoryParameters& rParms,
bool bIntersect )
{
@@ -1240,11 +1240,11 @@ namespace cppcanvas
// general case: convert to polygon and clip
// -----------------------------------------
-
+
// convert rect to polygon beforehand, must revert
// to general polygon clipping here.
::basegfx::B2DPolyPolygon aClipPoly(
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::tools::createPolygonFromRect(
::basegfx::B2DRectangle( rClipRect.Left(),
rClipRect.Top(),
rClipRect.Right(),
@@ -1268,7 +1268,7 @@ namespace cppcanvas
rState.xClipPoly = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
rParms.mrCanvas->getUNOCanvas()->getDevice(),
::basegfx::B2DPolyPolygon(
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::tools::createPolygonFromRect(
// #121100# VCL rectangular clips
// always include one more pixel to
// the right and the bottom
@@ -1286,7 +1286,7 @@ namespace cppcanvas
}
}
- bool ImplRenderer::createActions( GDIMetaFile& rMtf,
+ bool ImplRenderer::createActions( GDIMetaFile& rMtf,
const ActionFactoryParameters& rFactoryParms,
bool bSubsettableActions )
{
@@ -1301,8 +1301,8 @@ namespace cppcanvas
recalc scaling for every drawing operation. This is
because the outdev map mode might change at any time.
Also keep in mind, that, although we've double precision
- float arithmetic now, different offsets might still
- generate different roundings (aka
+ float arithmetic now, different offsets might still
+ generate different roundings (aka
'OutputDevice::SetPixelOffset())
*/
@@ -1313,7 +1313,7 @@ namespace cppcanvas
::VirtualDevice& rVDev(rFactoryParms.mrVDev);
const Parameters& rParms(rFactoryParms.mrParms);
sal_Int32& io_rCurrActionIndex(rFactoryParms.mrCurrActionIndex);
-
+
// Loop over every metaaction
// ==========================
@@ -1385,12 +1385,12 @@ namespace cppcanvas
"region encountered, falling back to bounding box!" );
// #121806# explicitely kept integer
- Rectangle aClipRect(
- rVDev.LogicToPixel(
+ Rectangle aClipRect(
+ rVDev.LogicToPixel(
pClipAction->GetRegion().GetBoundRect() ) );
// intersect current clip with given rect
- updateClipping(
+ updateClipping(
aClipRect,
rFactoryParms,
false );
@@ -1401,8 +1401,8 @@ namespace cppcanvas
// with old one, just set it)
// #121806# explicitely kept integer
- updateClipping(
- rVDev.LogicToPixel(
+ updateClipping(
+ rVDev.LogicToPixel(
pClipAction->GetRegion().GetPolyPolygon() ).getB2DPolyPolygon(),
rFactoryParms,
false );
@@ -1417,11 +1417,11 @@ namespace cppcanvas
MetaISectRectClipRegionAction* pClipAction = static_cast<MetaISectRectClipRegionAction*>(pCurrAct);
// #121806# explicitely kept integer
- Rectangle aClipRect(
+ Rectangle aClipRect(
rVDev.LogicToPixel( pClipAction->GetRect() ) );
// intersect current clip with given rect
- updateClipping(
+ updateClipping(
aClipRect,
rFactoryParms,
true );
@@ -1439,11 +1439,11 @@ namespace cppcanvas
"region encountered, falling back to bounding box!" );
// #121806# explicitely kept integer
- Rectangle aClipRect(
+ Rectangle aClipRect(
rVDev.LogicToPixel( pClipAction->GetRegion().GetBoundRect() ) );
// intersect current clip with given rect
- updateClipping(
+ updateClipping(
aClipRect,
rFactoryParms,
true );
@@ -1453,8 +1453,8 @@ namespace cppcanvas
// intersect current clip with given clip polygon
// #121806# explicitely kept integer
- updateClipping(
- rVDev.LogicToPixel(
+ updateClipping(
+ rVDev.LogicToPixel(
pClipAction->GetRegion().GetPolyPolygon() ).getB2DPolyPolygon(),
rFactoryParms,
true );
@@ -1502,7 +1502,7 @@ namespace cppcanvas
getState( rStates ).textColor =
::vcl::unotools::colorToDoubleSequence(
- aColor,
+ aColor,
rCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace() );
}
}
@@ -1632,7 +1632,7 @@ namespace cppcanvas
case META_EPS_ACTION:
{
- MetaEPSAction* pAct = static_cast<MetaEPSAction*>(pCurrAct);
+ MetaEPSAction* pAct = static_cast<MetaEPSAction*>(pCurrAct);
const GDIMetaFile& rSubstitute = pAct->GetSubstitute();
// #121806# explicitely kept integer
@@ -1646,18 +1646,18 @@ namespace cppcanvas
const Size aMtfSizePix( ::std::max( aMtfSizePixPre.Width(), 1L ),
::std::max( aMtfSizePixPre.Height(), 1L ) );
- // Setup local transform, such that the
+ // Setup local transform, such that the
// metafile renders itself into the given
- // output rectangle
+ // output rectangle
pushState( rStates, PUSH_ALL );
-
+
rVDev.Push();
rVDev.SetMapMode( rSubstitute.GetPrefMapMode() );
-
+
const ::Point& rPos( rVDev.LogicToPixel( pAct->GetPoint() ) );
const ::Size& rSize( rVDev.LogicToPixel( pAct->GetSize() ) );
- getState( rStates ).transform.translate( rPos.X(),
+ getState( rStates ).transform.translate( rPos.X(),
rPos.Y() );
getState( rStates ).transform.scale( (double)rSize.Width() / aMtfSizePix.Width(),
(double)rSize.Height() / aMtfSizePix.Height() );
@@ -1721,7 +1721,7 @@ namespace cppcanvas
const BYTE* pData = pAct->GetData();
if ( pData )
{
- SvMemoryStream aMemStm( (void*)pData, pAct->GetDataSize(), STREAM_READ );
+ SvMemoryStream aMemStm( (void*)pData, pAct->GetDataSize(), STREAM_READ );
SvtGraphicFill aFill;
aMemStm >> aFill;
@@ -1735,26 +1735,26 @@ namespace cppcanvas
// the FloatTransparent action), take
// the normal meta actions.
if( aFill.getFillType() == SvtGraphicFill::fillTexture &&
- !isActionContained( rMtf,
+ !isActionContained( rMtf,
"XPATHFILL_SEQ_END",
META_FLOATTRANSPARENT_ACTION ) )
{
rendering::Texture aTexture;
-
+
// TODO(F1): the SvtGraphicFill
// can also transport metafiles
// here, handle that case, too
- Graphic aGraphic;
+ Graphic aGraphic;
aFill.getGraphic( aGraphic );
- BitmapEx aBmpEx( aGraphic.GetBitmapEx() );
+ BitmapEx aBmpEx( aGraphic.GetBitmapEx() );
const ::Size aBmpSize( aBmpEx.GetSizePixel() );
::SvtGraphicFill::Transform aTransform;
aFill.getTransform( aTransform );
::basegfx::B2DHomMatrix aMatrix;
-
+
// convert to basegfx matrix
aMatrix.set(0,0, aTransform.matrix[ 0 ] );
aMatrix.set(0,1, aTransform.matrix[ 1 ] );
@@ -1782,14 +1782,14 @@ namespace cppcanvas
aMatrix *= tools::calcLogic2PixelLinearTransform( aLogic2PixelTransform,
rVDev );
- ::basegfx::unotools::affineMatrixFromHomMatrix(
+ ::basegfx::unotools::affineMatrixFromHomMatrix(
aTexture.AffineTransform,
aMatrix );
aTexture.Alpha = 1.0 - aFill.getTransparency();
- aTexture.Bitmap =
- ::vcl::unotools::xBitmapFromBitmapEx(
- rCanvas->getUNOCanvas()->getDevice(),
+ aTexture.Bitmap =
+ ::vcl::unotools::xBitmapFromBitmapEx(
+ rCanvas->getUNOCanvas()->getDevice(),
aBmpEx );
if( aFill.isTiling() )
{
@@ -1801,31 +1801,31 @@ namespace cppcanvas
aTexture.RepeatModeX = rendering::TexturingMode::NONE;
aTexture.RepeatModeY = rendering::TexturingMode::NONE;
}
-
+
::PolyPolygon aPath;
aFill.getPath( aPath );
::basegfx::B2DPolyPolygon aPoly( aPath.getB2DPolyPolygon() );
- aPoly.transform( getState( rStates ).mapModeTransform );
- ActionSharedPtr pPolyAction(
- internal::PolyPolyActionFactory::createPolyPolyAction(
+ aPoly.transform( getState( rStates ).mapModeTransform );
+ ActionSharedPtr pPolyAction(
+ internal::PolyPolyActionFactory::createPolyPolyAction(
aPoly,
- rCanvas,
+ rCanvas,
getState( rStates ),
aTexture ) );
if( pPolyAction )
{
- maActions.push_back(
- MtfAction(
+ maActions.push_back(
+ MtfAction(
pPolyAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pPolyAction->getActionCount()-1;
}
// skip broken-down render output
- skipContent( rMtf,
+ skipContent( rMtf,
"XPATHFILL_SEQ_END",
io_rCurrActionIndex );
}
@@ -1875,9 +1875,9 @@ namespace cppcanvas
const OutDevState& rState( getState( rStates ) );
if( rState.lineColor.getLength() )
{
- ActionSharedPtr pPointAction(
+ ActionSharedPtr pPointAction(
internal::PointActionFactory::createPointAction(
- rState.mapModeTransform * ::vcl::unotools::b2DPointFromPoint(
+ rState.mapModeTransform * ::vcl::unotools::b2DPointFromPoint(
static_cast<MetaPointAction*>(pCurrAct)->GetPoint() ),
rCanvas,
rState ) );
@@ -1888,7 +1888,7 @@ namespace cppcanvas
MtfAction(
pPointAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pPointAction->getActionCount()-1;
}
}
@@ -1900,9 +1900,9 @@ namespace cppcanvas
const OutDevState& rState( getState( rStates ) );
if( rState.lineColor.getLength() )
{
- ActionSharedPtr pPointAction(
+ ActionSharedPtr pPointAction(
internal::PointActionFactory::createPointAction(
- rState.mapModeTransform * ::vcl::unotools::b2DPointFromPoint(
+ rState.mapModeTransform * ::vcl::unotools::b2DPointFromPoint(
static_cast<MetaPixelAction*>(pCurrAct)->GetPoint() ),
rCanvas,
rState,
@@ -1914,7 +1914,7 @@ namespace cppcanvas
MtfAction(
pPointAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pPointAction->getActionCount()-1;
}
}
@@ -1927,7 +1927,7 @@ namespace cppcanvas
if( rState.lineColor.getLength() )
{
MetaLineAction* pLineAct = static_cast<MetaLineAction*>(pCurrAct);
-
+
const LineInfo& rLineInfo( pLineAct->GetLineInfo() );
const ::basegfx::B2DPoint aStartPoint(
@@ -1940,7 +1940,7 @@ namespace cppcanvas
if( rLineInfo.IsDefault() )
{
// plain hair line
- pLineAction =
+ pLineAction =
internal::LineActionFactory::createLineAction(
aStartPoint,
aEndPoint,
@@ -1953,7 +1953,7 @@ namespace cppcanvas
MtfAction(
pLineAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pLineAction->getActionCount()-1;
}
}
@@ -1961,11 +1961,11 @@ namespace cppcanvas
{
// 'thick' line
rendering::StrokeAttributes aStrokeAttributes;
-
+
setupStrokeAttributes( aStrokeAttributes,
rFactoryParms,
rLineInfo );
-
+
// XCanvas can only stroke polygons,
// not simple lines - thus, handle
// this case via the polypolygon
@@ -1973,9 +1973,9 @@ namespace cppcanvas
::basegfx::B2DPolygon aPoly;
aPoly.append( aStartPoint );
aPoly.append( aEndPoint );
- pLineAction =
+ pLineAction =
internal::PolyPolyActionFactory::createPolyPolyAction(
- ::basegfx::B2DPolyPolygon( aPoly ),
+ ::basegfx::B2DPolyPolygon( aPoly ),
rCanvas, rState, aStrokeAttributes );
if( pLineAction )
@@ -1984,7 +1984,7 @@ namespace cppcanvas
MtfAction(
pLineAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pLineAction->getActionCount()-1;
}
}
@@ -1996,16 +1996,16 @@ namespace cppcanvas
case META_RECT_ACTION:
{
- const Rectangle& rRect(
+ const Rectangle& rRect(
static_cast<MetaRectAction*>(pCurrAct)->GetRect() );
if( rRect.IsEmpty() )
break;
const OutDevState& rState( getState( rStates ) );
- const ::basegfx::B2DPoint aTopLeftPixel(
+ const ::basegfx::B2DPoint aTopLeftPixel(
rState.mapModeTransform * ::vcl::unotools::b2DPointFromPoint( rRect.TopLeft() ) );
- const ::basegfx::B2DPoint aBottomRightPixel(
+ const ::basegfx::B2DPoint aBottomRightPixel(
rState.mapModeTransform * ::vcl::unotools::b2DPointFromPoint( rRect.BottomRight() ) +
// #121100# OutputDevice::DrawRect() fills
// rectangles Apple-like, i.e. with one
@@ -2021,14 +2021,14 @@ namespace cppcanvas
case META_ROUNDRECT_ACTION:
{
- const Rectangle& rRect(
+ const Rectangle& rRect(
static_cast<MetaRoundRectAction*>(pCurrAct)->GetRect());
if( rRect.IsEmpty() )
break;
- ::basegfx::B2DPolygon aPoly(
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::B2DPolygon aPoly(
+ ::basegfx::tools::createPolygonFromRect(
::basegfx::B2DRange(
::vcl::unotools::b2DPointFromPoint( rRect.TopLeft() ),
::vcl::unotools::b2DPointFromPoint( rRect.BottomRight() ) +
@@ -2120,13 +2120,13 @@ namespace cppcanvas
const LineInfo& rLineInfo( pPolyLineAct->GetLineInfo() );
::basegfx::B2DPolygon aPoly( pPolyLineAct->GetPolygon().getB2DPolygon() );
aPoly.transform( rState.mapModeTransform );
-
+
ActionSharedPtr pLineAction;
if( rLineInfo.IsDefault() )
{
// plain hair line polygon
- pLineAction =
+ pLineAction =
internal::PolyPolyActionFactory::createLinePolyPolyAction(
::basegfx::B2DPolyPolygon(aPoly),
rCanvas,
@@ -2138,7 +2138,7 @@ namespace cppcanvas
MtfAction(
pLineAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pLineAction->getActionCount()-1;
}
}
@@ -2146,7 +2146,7 @@ namespace cppcanvas
{
// 'thick' line polygon
rendering::StrokeAttributes aStrokeAttributes;
-
+
setupStrokeAttributes( aStrokeAttributes,
rFactoryParms,
rLineInfo );
@@ -2164,7 +2164,7 @@ namespace cppcanvas
MtfAction(
pLineAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pLineAction->getActionCount()-1;
}
}
@@ -2199,7 +2199,7 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
pAct->GetBitmap(),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetPoint() ),
rCanvas,
getState( rStates ) ) );
@@ -2210,7 +2210,7 @@ namespace cppcanvas
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2223,9 +2223,9 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
pAct->GetBitmap(),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetPoint() ),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DSizeFromSize( pAct->GetSize() ),
rCanvas,
getState( rStates ) ) );
@@ -2236,7 +2236,7 @@ namespace cppcanvas
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2256,9 +2256,9 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
aBmp,
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetDestPoint() ),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DSizeFromSize( pAct->GetDestSize() ),
rCanvas,
getState( rStates ) ) );
@@ -2269,7 +2269,7 @@ namespace cppcanvas
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2282,7 +2282,7 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
pAct->GetBitmapEx(),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetPoint() ),
rCanvas,
getState( rStates ) ) );
@@ -2293,7 +2293,7 @@ namespace cppcanvas
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2306,9 +2306,9 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
pAct->GetBitmapEx(),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetPoint() ),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DSizeFromSize( pAct->GetSize() ),
rCanvas,
getState( rStates ) ) );
@@ -2319,7 +2319,7 @@ namespace cppcanvas
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2339,9 +2339,9 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
aBmp,
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetDestPoint() ),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DSizeFromSize( pAct->GetDestSize() ),
rCanvas,
getState( rStates ) ) );
@@ -2352,7 +2352,7 @@ namespace cppcanvas
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2371,7 +2371,7 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
aBmp,
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetPoint() ),
rCanvas,
getState( rStates ) ) );
@@ -2382,7 +2382,7 @@ namespace cppcanvas
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2401,20 +2401,20 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
aBmp,
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetPoint() ),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DSizeFromSize( pAct->GetSize() ),
rCanvas,
getState( rStates ) ) );
-
+
if( pBmpAction )
{
maActions.push_back(
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2439,9 +2439,9 @@ namespace cppcanvas
ActionSharedPtr pBmpAction(
internal::BitmapActionFactory::createBitmapAction(
aBmp,
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetDestPoint() ),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DSizeFromSize( pAct->GetDestSize() ),
rCanvas,
getState( rStates ) ) );
@@ -2452,7 +2452,7 @@ namespace cppcanvas
MtfAction(
pBmpAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pBmpAction->getActionCount()-1;
}
}
@@ -2490,7 +2490,7 @@ namespace cppcanvas
MtfAction(
pPolyAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pPolyAction->getActionCount()-1;
}
}
@@ -2501,7 +2501,7 @@ namespace cppcanvas
{
MetaFloatTransparentAction* pAct = static_cast<MetaFloatTransparentAction*>(pCurrAct);
- internal::MtfAutoPtr pMtf(
+ internal::MtfAutoPtr pMtf(
new ::GDIMetaFile( pAct->GetGDIMetaFile() ) );
// TODO(P2): Use native canvas gradients here (saves a lot of UNO calls)
@@ -2515,9 +2515,9 @@ namespace cppcanvas
pMtf,
pGradient,
rParms,
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DPointFromPoint( pAct->GetPoint() ),
- getState( rStates ).mapModeTransform *
+ getState( rStates ).mapModeTransform *
::vcl::unotools::b2DSizeFromSize( pAct->GetSize() ),
rCanvas,
getState( rStates ) ) );
@@ -2528,7 +2528,7 @@ namespace cppcanvas
MtfAction(
pFloatTransAction,
io_rCurrActionIndex ) );
-
+
io_rCurrActionIndex += pFloatTransAction->getActionCount()-1;
}
}
@@ -2543,11 +2543,11 @@ namespace cppcanvas
convertToLocalizedNumerals ( sText,rVDev.GetDigitLanguage() );
createTextAction(
- pAct->GetPoint(),
+ pAct->GetPoint(),
sText,
- pAct->GetIndex(),
+ pAct->GetIndex(),
pAct->GetLen() == (USHORT)STRING_LEN ? pAct->GetText().Len() - pAct->GetIndex() : pAct->GetLen(),
- NULL,
+ NULL,
rFactoryParms,
bSubsettableActions );
}
@@ -2562,11 +2562,11 @@ namespace cppcanvas
convertToLocalizedNumerals ( sText,rVDev.GetDigitLanguage() );
createTextAction(
- pAct->GetPoint(),
+ pAct->GetPoint(),
sText,
- pAct->GetIndex(),
+ pAct->GetIndex(),
pAct->GetLen() == (USHORT)STRING_LEN ? pAct->GetText().Len() - pAct->GetIndex() : pAct->GetLen(),
- pAct->GetDXArray(),
+ pAct->GetDXArray(),
rFactoryParms,
bSubsettableActions );
}
@@ -2579,20 +2579,20 @@ namespace cppcanvas
const OutDevState& rState( getState( rStates ) );
const ::Size aBaselineOffset( tools::getBaselineOffset( rState,
rVDev ) );
- const ::Point aStartPoint( pAct->GetStartPoint() );
- const ::basegfx::B2DSize aSize( rState.mapModeTransform *
+ const ::Point aStartPoint( pAct->GetStartPoint() );
+ const ::basegfx::B2DSize aSize( rState.mapModeTransform *
::basegfx::B2DSize(pAct->GetWidth(),
0 ));
- ActionSharedPtr pPolyAction(
+ ActionSharedPtr pPolyAction(
PolyPolyActionFactory::createPolyPolyAction(
- tools::createTextLinesPolyPolygon(
- rState.mapModeTransform *
+ tools::createTextLinesPolyPolygon(
+ rState.mapModeTransform *
::basegfx::B2DPoint(
::vcl::unotools::b2DPointFromPoint(pAct->GetStartPoint()) +
::vcl::unotools::b2DSizeFromSize(aBaselineOffset)),
aSize.getX(),
- tools::createTextLineInfo( rVDev,
+ tools::createTextLineInfo( rVDev,
rState )),
rCanvas,
rState ) );
@@ -2623,8 +2623,8 @@ namespace cppcanvas
pAct->GetStyle(),
aTmpMtf );
- createActions( aTmpMtf,
- rFactoryParms,
+ createActions( aTmpMtf,
+ rFactoryParms,
bSubsettableActions );
popState( rStates );
@@ -2640,7 +2640,7 @@ namespace cppcanvas
if( rVDev.GetDigitLanguage())
convertToLocalizedNumerals ( sText,rVDev.GetDigitLanguage() );
- const USHORT nLen( pAct->GetLen() == (USHORT)STRING_LEN ?
+ const USHORT nLen( pAct->GetLen() == (USHORT)STRING_LEN ?
pAct->GetText().Len() - pAct->GetIndex() : pAct->GetLen() );
// #i70897# Nothing to do, actually...
@@ -2654,7 +2654,7 @@ namespace cppcanvas
// to every logical character.
::boost::scoped_array< sal_Int32 > pDXArray( new sal_Int32[nLen] );
- rVDev.GetTextArray( pAct->GetText(), pDXArray.get(),
+ rVDev.GetTextArray( pAct->GetText(), pDXArray.get(),
pAct->GetIndex(), pAct->GetLen() );
const sal_Int32 nWidthDifference( pAct->GetWidth() - pDXArray[ nLen-1 ] );
@@ -2673,9 +2673,9 @@ namespace cppcanvas
}
createTextAction(
- pAct->GetPoint(),
+ pAct->GetPoint(),
sText,
- pAct->GetIndex(),
+ pAct->GetIndex(),
pAct->GetLen() == (USHORT)STRING_LEN ? pAct->GetText().Len() - pAct->GetIndex() : pAct->GetLen(),
pDXArray.get(),
rFactoryParms,
@@ -2724,8 +2724,8 @@ namespace cppcanvas
mbRet &= rAction.mpAction->render( maTransformation );
}
- void operator()( const ::cppcanvas::internal::ImplRenderer::MtfAction& rAction,
- const Action::Subset& rSubset )
+ void operator()( const ::cppcanvas::internal::ImplRenderer::MtfAction& rAction,
+ const Action::Subset& rSubset )
{
// ANDing the result. We want to fail if at least
// one action failed.
@@ -2734,8 +2734,8 @@ namespace cppcanvas
}
private:
- ::basegfx::B2DHomMatrix maTransformation;
- bool mbRet;
+ ::basegfx::B2DHomMatrix maTransformation;
+ bool mbRet;
};
class AreaQuery
@@ -2757,21 +2757,21 @@ namespace cppcanvas
maBounds.expand( rAction.mpAction->getBounds( maTransformation ) );
}
- void operator()( const ::cppcanvas::internal::ImplRenderer::MtfAction& rAction,
- const Action::Subset& rSubset )
+ void operator()( const ::cppcanvas::internal::ImplRenderer::MtfAction& rAction,
+ const Action::Subset& rSubset )
{
maBounds.expand( rAction.mpAction->getBounds( maTransformation,
rSubset ) );
}
::basegfx::B2DRange getBounds() const
- {
+ {
return maBounds;
}
private:
- ::basegfx::B2DHomMatrix maTransformation;
- ::basegfx::B2DRange maBounds;
+ ::basegfx::B2DHomMatrix maTransformation;
+ ::basegfx::B2DRange maBounds;
};
// Doing that via inline class. Compilers tend to not inline free
@@ -2781,9 +2781,9 @@ namespace cppcanvas
bool operator()( const ::cppcanvas::internal::ImplRenderer::MtfAction& rLHS,
const ::cppcanvas::internal::ImplRenderer::MtfAction& rRHS )
{
- const sal_Int32 nLHSCount( rLHS.mpAction ?
+ const sal_Int32 nLHSCount( rLHS.mpAction ?
rLHS.mpAction->getActionCount() : 0 );
- const sal_Int32 nRHSCount( rRHS.mpAction ?
+ const sal_Int32 nRHSCount( rRHS.mpAction ?
rRHS.mpAction->getActionCount() : 0 );
// compare end of action range, to have an action selected
@@ -2800,15 +2800,15 @@ namespace cppcanvas
Functor to call for each element of the subset
range. Must provide the following method signatures:
bool result() (returning false if operation failed)
-
+
*/
- template< typename Functor > bool
- forSubsetRange( Functor& rFunctor,
- ImplRenderer::ActionVector::const_iterator aRangeBegin,
- ImplRenderer::ActionVector::const_iterator aRangeEnd,
- sal_Int32 nStartIndex,
- sal_Int32 nEndIndex,
- const ImplRenderer::ActionVector::const_iterator& rEnd )
+ template< typename Functor > bool
+ forSubsetRange( Functor& rFunctor,
+ ImplRenderer::ActionVector::const_iterator aRangeBegin,
+ ImplRenderer::ActionVector::const_iterator aRangeEnd,
+ sal_Int32 nStartIndex,
+ sal_Int32 nEndIndex,
+ const ImplRenderer::ActionVector::const_iterator& rEnd )
{
if( aRangeBegin == aRangeEnd )
{
@@ -2827,7 +2827,7 @@ namespace cppcanvas
else
{
// more than one action.
-
+
// render partial first, full intermediate, and
// partial last action
Action::Subset aSubset;
@@ -2850,23 +2850,23 @@ namespace cppcanvas
if( aRangeEnd == rEnd ||
aRangeEnd->mnOrigIndex > nEndIndex )
{
- // aRangeEnd denotes end of action vector,
- //
+ // aRangeEnd denotes end of action vector,
+ //
// or
- //
+ //
// nEndIndex references something _after_
- // aRangeBegin, but _before_ aRangeEnd
- //
+ // aRangeBegin, but _before_ aRangeEnd
+ //
// either way: no partial action left
return rFunctor.result();
}
aSubset.mnSubsetBegin = 0;
aSubset.mnSubsetEnd = nEndIndex - aRangeEnd->mnOrigIndex;
-
+
ENSURE_OR_RETURN_FALSE( aSubset.mnSubsetBegin >= 0 && aSubset.mnSubsetEnd >= 0,
"ImplRenderer::forSubsetRange(): Invalid indices" );
-
+
rFunctor( *aRangeEnd, aSubset );
}
@@ -2874,10 +2874,10 @@ namespace cppcanvas
}
}
- bool ImplRenderer::getSubsetIndices( sal_Int32& io_rStartIndex,
- sal_Int32& io_rEndIndex,
- ActionVector::const_iterator& o_rRangeBegin,
- ActionVector::const_iterator& o_rRangeEnd ) const
+ bool ImplRenderer::getSubsetIndices( sal_Int32& io_rStartIndex,
+ sal_Int32& io_rEndIndex,
+ ActionVector::const_iterator& o_rRangeBegin,
+ ActionVector::const_iterator& o_rRangeEnd ) const
{
ENSURE_OR_RETURN_FALSE( io_rStartIndex<=io_rEndIndex,
"ImplRenderer::getSubsetIndices(): invalid action range" );
@@ -2902,7 +2902,7 @@ namespace cppcanvas
// empty range, don't render anything. The second
// condition e.g. happens if the requested range lies
// fully before or behind the valid action indices.
- return false;
+ return false;
}
@@ -2918,16 +2918,16 @@ namespace cppcanvas
o_rRangeEnd = ::std::lower_bound( aBegin, aEnd,
MtfAction( ActionSharedPtr(), io_rEndIndex ),
UpperBoundActionIndexComparator() );
- return true;
+ return true;
}
// Public methods
// ====================================================================
- ImplRenderer::ImplRenderer( const CanvasSharedPtr& rCanvas,
- const GDIMetaFile& rMtf,
- const Parameters& rParams ) :
+ ImplRenderer::ImplRenderer( const CanvasSharedPtr& rCanvas,
+ const GDIMetaFile& rMtf,
+ const Parameters& rParams ) :
CanvasGraphicHelper( rCanvas ),
maActions()
{
@@ -2948,7 +2948,7 @@ namespace cppcanvas
return;
}
- VectorOfOutDevStates aStateStack;
+ VectorOfOutDevStates aStateStack;
VirtualDevice aVDev;
aVDev.EnableOutput( FALSE );
@@ -3021,7 +3021,7 @@ namespace cppcanvas
rParams.maFontProportion.isValid() )
{
::cppcanvas::internal::OutDevState& rState = getState( aStateStack );
-
+
rState.xFont = createFont( rState.fontRotation,
::Font(), // default font
aParms );
@@ -3040,13 +3040,13 @@ namespace cppcanvas
// in
// createActions!
aParms,
- true // TODO(P1): make subsettability configurable
+ true // TODO(P1): make subsettability configurable
);
}
- ImplRenderer::ImplRenderer( const CanvasSharedPtr& rCanvas,
- const BitmapEx& rBmpEx,
- const Parameters& rParams ) :
+ ImplRenderer::ImplRenderer( const CanvasSharedPtr& rCanvas,
+ const BitmapEx& rBmpEx,
+ const Parameters& rParams ) :
CanvasGraphicHelper( rCanvas ),
maActions()
{
@@ -3084,7 +3084,7 @@ namespace cppcanvas
// create a single action for the provided BitmapEx
maActions.push_back(
MtfAction(
- BitmapActionFactory::createBitmapAction(
+ BitmapActionFactory::createBitmapAction(
rBmpEx,
::basegfx::B2DPoint(),
rCanvas,
@@ -3096,8 +3096,8 @@ namespace cppcanvas
{
}
- bool ImplRenderer::drawSubset( sal_Int32 nStartIndex,
- sal_Int32 nEndIndex ) const
+ bool ImplRenderer::drawSubset( sal_Int32 nStartIndex,
+ sal_Int32 nEndIndex ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::ImplRenderer::drawSubset()" );
@@ -3116,17 +3116,17 @@ namespace cppcanvas
// might also end right at the start of the referenced
// action, such that zero of that action needs to be
// rendered).
-
+
// render subset of actions
// ========================
::basegfx::B2DHomMatrix aMatrix;
- ::canvas::tools::getRenderStateTransform( aMatrix,
+ ::canvas::tools::getRenderStateTransform( aMatrix,
getRenderState() );
ActionRenderer aRenderer( aMatrix );
-
+
return forSubsetRange( aRenderer,
aRangeBegin,
aRangeEnd,
@@ -3139,15 +3139,15 @@ namespace cppcanvas
OSL_ENSURE( false,
rtl::OUStringToOString(
comphelper::anyToString( cppu::getCaughtException() ),
- RTL_TEXTENCODING_UTF8 ).getStr() );
+ RTL_TEXTENCODING_UTF8 ).getStr() );
// convert error to return value
return false;
}
}
- ::basegfx::B2DRange ImplRenderer::getSubsetArea( sal_Int32 nStartIndex,
- sal_Int32 nEndIndex ) const
+ ::basegfx::B2DRange ImplRenderer::getSubsetArea( sal_Int32 nStartIndex,
+ sal_Int32 nEndIndex ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::ImplRenderer::getSubsetArea()" );
@@ -3164,13 +3164,13 @@ namespace cppcanvas
// might also end right at the start of the referenced
// action, such that zero of that action needs to be
// queried).
-
+
// query bounds for subset of actions
// ==================================
::basegfx::B2DHomMatrix aMatrix;
- ::canvas::tools::getRenderStateTransform( aMatrix,
+ ::canvas::tools::getRenderStateTransform( aMatrix,
getRenderState() );
AreaQuery aQuery( aMatrix );
@@ -3189,7 +3189,7 @@ namespace cppcanvas
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::ImplRenderer::draw()" );
::basegfx::B2DHomMatrix aMatrix;
- ::canvas::tools::getRenderStateTransform( aMatrix,
+ ::canvas::tools::getRenderStateTransform( aMatrix,
getRenderState() );
try
@@ -3201,7 +3201,7 @@ namespace cppcanvas
OSL_ENSURE( false,
rtl::OUStringToOString(
comphelper::anyToString( cppu::getCaughtException() ),
- RTL_TEXTENCODING_UTF8 ).getStr() );
+ RTL_TEXTENCODING_UTF8 ).getStr() );
return false;
}
diff --git a/cppcanvas/source/mtfrenderer/lineaction.cxx b/cppcanvas/source/mtfrenderer/lineaction.cxx
index 7639fe352511..064d4e57f81b 100644
--- a/cppcanvas/source/mtfrenderer/lineaction.cxx
+++ b/cppcanvas/source/mtfrenderer/lineaction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,8 +52,8 @@
using namespace ::com::sun::star;
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
namespace
@@ -62,29 +62,29 @@ namespace cppcanvas
{
public:
LineAction( const ::basegfx::B2DPoint&,
- const ::basegfx::B2DPoint&,
- const CanvasSharedPtr&,
- const OutDevState& );
+ const ::basegfx::B2DPoint&,
+ const CanvasSharedPtr&,
+ const OutDevState& );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
private:
::basegfx::B2DPoint maStartPoint;
::basegfx::B2DPoint maEndPoint;
- CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
+ CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
};
- LineAction::LineAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DPoint& rEndPoint,
+ LineAction::LineAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DPoint& rEndPoint,
const CanvasSharedPtr& rCanvas,
const OutDevState& rState ) :
maStartPoint( rStartPoint ),
@@ -104,7 +104,7 @@ namespace cppcanvas
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
- mpCanvas->getUNOCanvas()->drawLine( ::basegfx::unotools::point2DFromB2DPoint(maStartPoint),
+ mpCanvas->getUNOCanvas()->drawLine( ::basegfx::unotools::point2DFromB2DPoint(maStartPoint),
::basegfx::unotools::point2DFromB2DPoint(maEndPoint),
mpCanvas->getViewState(),
aLocalState );
@@ -112,8 +112,8 @@ namespace cppcanvas
return true;
}
- bool LineAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool LineAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// line only contains a single action, fail if subset
// requests different range
@@ -128,15 +128,15 @@ namespace cppcanvas
{
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
-
+
return tools::calcDevicePixelBounds( ::basegfx::B2DRange( maStartPoint,
maEndPoint ),
mpCanvas->getViewState(),
aLocalState );
}
- ::basegfx::B2DRange LineAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange LineAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// line only contains a single action, empty bounds
// if subset requests different range
@@ -153,17 +153,17 @@ namespace cppcanvas
}
}
- ActionSharedPtr LineActionFactory::createLineAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DPoint& rEndPoint,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState )
+ ActionSharedPtr LineActionFactory::createLineAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DPoint& rEndPoint,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState )
{
return ActionSharedPtr( new LineAction( rStartPoint,
- rEndPoint,
- rCanvas,
+ rEndPoint,
+ rCanvas,
rState) );
}
-
+
}
}
diff --git a/cppcanvas/source/mtfrenderer/lineaction.hxx b/cppcanvas/source/mtfrenderer/lineaction.hxx
index 810c8cb4fe03..04186be8d8bf 100644
--- a/cppcanvas/source/mtfrenderer/lineaction.hxx
+++ b/cppcanvas/source/mtfrenderer/lineaction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,12 +39,12 @@ namespace basegfx {
/* Definition of internal::LineActionFactory class */
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
- struct OutDevState;
-
+ struct OutDevState;
+
/** Creates encapsulated converters between GDIMetaFile and
XCanvas. The Canvas argument is deliberately placed at the
constructor, to force reconstruction of this object for a
@@ -57,9 +57,9 @@ namespace cppcanvas
public:
/// Plain hair line from point 1 to point 2
static ActionSharedPtr createLineAction( const ::basegfx::B2DPoint&,
- const ::basegfx::B2DPoint&,
- const CanvasSharedPtr&,
- const OutDevState& );
+ const ::basegfx::B2DPoint&,
+ const CanvasSharedPtr&,
+ const OutDevState& );
private:
// static factory, disable big four
@@ -68,7 +68,7 @@ namespace cppcanvas
LineActionFactory(const LineActionFactory&);
LineActionFactory& operator=( const LineActionFactory& );
};
- }
+ }
}
#endif /* _CPPCANVAS_LINEACTION_HXX */
diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx
index 6633f29ed87d..acc67716bd73 100644
--- a/cppcanvas/source/mtfrenderer/mtftools.cxx
+++ b/cppcanvas/source/mtfrenderer/mtftools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,17 +59,17 @@ namespace cppcanvas
{
namespace tools
{
- void initRenderState( rendering::RenderState& renderState,
- const ::cppcanvas::internal::OutDevState& outdevState )
+ void initRenderState( rendering::RenderState& renderState,
+ const ::cppcanvas::internal::OutDevState& outdevState )
{
::canvas::tools::initRenderState( renderState );
- ::canvas::tools::setRenderStateTransform( renderState,
+ ::canvas::tools::setRenderStateTransform( renderState,
outdevState.transform );
renderState.Clip = outdevState.xClipPoly;
}
- ::Size getBaselineOffset( const ::cppcanvas::internal::OutDevState& outdevState,
- const VirtualDevice& rVDev )
+ ::Size getBaselineOffset( const ::cppcanvas::internal::OutDevState& outdevState,
+ const VirtualDevice& rVDev )
{
const ::FontMetric& aMetric = rVDev.GetFontMetric();
@@ -95,8 +95,8 @@ namespace cppcanvas
}
}
- ::basegfx::B2DHomMatrix& calcLogic2PixelLinearTransform( ::basegfx::B2DHomMatrix& o_rMatrix,
- const VirtualDevice& rVDev )
+ ::basegfx::B2DHomMatrix& calcLogic2PixelLinearTransform( ::basegfx::B2DHomMatrix& o_rMatrix,
+ const VirtualDevice& rVDev )
{
// select size value in the middle of the available range,
// to have headroom both when map mode scales up, and when
@@ -113,15 +113,15 @@ namespace cppcanvas
return o_rMatrix;
}
- ::basegfx::B2DHomMatrix& calcLogic2PixelAffineTransform( ::basegfx::B2DHomMatrix& o_rMatrix,
- const VirtualDevice& rVDev )
+ ::basegfx::B2DHomMatrix& calcLogic2PixelAffineTransform( ::basegfx::B2DHomMatrix& o_rMatrix,
+ const VirtualDevice& rVDev )
{
// retrieves scale
calcLogic2PixelLinearTransform(o_rMatrix, rVDev);
// translate according to curr map mode/pref map mode offset
const ::Point aEmptyPoint;
- const ::Point& rTranslatedPoint(
+ const ::Point& rTranslatedPoint(
rVDev.LogicToPixel( aEmptyPoint ));
o_rMatrix.translate(rTranslatedPoint.X(),
@@ -130,32 +130,32 @@ namespace cppcanvas
return o_rMatrix;
}
- bool modifyClip( rendering::RenderState& o_rRenderState,
- const struct ::cppcanvas::internal::OutDevState& rOutdevState,
- const CanvasSharedPtr& rCanvas,
- const ::basegfx::B2DPoint& rOffset,
- const ::basegfx::B2DVector* pScaling,
+ bool modifyClip( rendering::RenderState& o_rRenderState,
+ const struct ::cppcanvas::internal::OutDevState& rOutdevState,
+ const CanvasSharedPtr& rCanvas,
+ const ::basegfx::B2DPoint& rOffset,
+ const ::basegfx::B2DVector* pScaling,
const double* pRotation )
{
const ::Point aEmptyPoint;
const bool bOffsetting( !rOffset.equalZero() );
- const bool bScaling( pScaling &&
- pScaling->getX() != 1.0 &&
+ const bool bScaling( pScaling &&
+ pScaling->getX() != 1.0 &&
pScaling->getY() != 1.0 );
const bool bRotation( pRotation &&
*pRotation != 0.0 );
if( !bOffsetting && !bScaling && !bRotation )
return false; // nothing to do
-
+
if( rOutdevState.clip.count() )
{
// general polygon case
::basegfx::B2DPolyPolygon aLocalClip( rOutdevState.clip );
- ::basegfx::B2DHomMatrix aTransform;
-
+ ::basegfx::B2DHomMatrix aTransform;
+
if( bOffsetting )
aTransform.translate( -rOffset.getX(),
-rOffset.getY() );
@@ -166,7 +166,7 @@ namespace cppcanvas
aTransform.rotate( - *pRotation );
aLocalClip.transform( aTransform );
-
+
o_rRenderState.Clip = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
rCanvas->getUNOCanvas()->getDevice(),
aLocalClip );
@@ -178,20 +178,20 @@ namespace cppcanvas
// simple rect case
const ::Rectangle aLocalClipRect( rOutdevState.clipRect );
-
+
if( bRotation )
{
// rotation involved - convert to polygon first,
// then transform that
- ::basegfx::B2DPolygon aLocalClip(
- ::basegfx::tools::createPolygonFromRect(
- ::basegfx::B2DRectangle(
+ ::basegfx::B2DPolygon aLocalClip(
+ ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::B2DRectangle(
(double)(aLocalClipRect.Left()),
(double)(aLocalClipRect.Top()),
(double)(aLocalClipRect.Right()),
(double)(aLocalClipRect.Bottom()) ) ) );
::basegfx::B2DHomMatrix aTransform;
-
+
if( bOffsetting )
aTransform.translate( -rOffset.getX(),
-rOffset.getY() );
@@ -213,8 +213,8 @@ namespace cppcanvas
o_rRenderState.Clip = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
rCanvas->getUNOCanvas()->getDevice(),
::basegfx::B2DPolyPolygon(
- ::basegfx::tools::createPolygonFromRect(
- ::basegfx::B2DRectangle(
+ ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::B2DRectangle(
(double)(aLocalClipRect.Left() - rOffset.getX())/pScaling->getX(),
(double)(aLocalClipRect.Top() - rOffset.getY())/pScaling->getY(),
(double)(aLocalClipRect.Right() - rOffset.getX())/pScaling->getX(),
@@ -227,7 +227,7 @@ namespace cppcanvas
o_rRenderState.Clip = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
rCanvas->getUNOCanvas()->getDevice(),
::basegfx::B2DPolyPolygon(
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::tools::createPolygonFromRect(
::basegfx::B2DRectangle( aLocalClipRect.Left() - rOffset.getX(),
aLocalClipRect.Top() - rOffset.getY(),
aLocalClipRect.Right() - rOffset.getX(),
@@ -241,31 +241,31 @@ namespace cppcanvas
return false;
}
- bool modifyClip( rendering::RenderState& o_rRenderState,
- const struct ::cppcanvas::internal::OutDevState& rOutdevState,
- const CanvasSharedPtr& rCanvas,
- const ::Point& rOffset,
- const ::basegfx::B2DVector* pScaling,
+ bool modifyClip( rendering::RenderState& o_rRenderState,
+ const struct ::cppcanvas::internal::OutDevState& rOutdevState,
+ const CanvasSharedPtr& rCanvas,
+ const ::Point& rOffset,
+ const ::basegfx::B2DVector* pScaling,
const double* pRotation )
{
- return modifyClip( o_rRenderState,
- rOutdevState,
- rCanvas,
- ::basegfx::B2DPoint( rOffset.X(),
- rOffset.Y() ),
+ return modifyClip( o_rRenderState,
+ rOutdevState,
+ rCanvas,
+ ::basegfx::B2DPoint( rOffset.X(),
+ rOffset.Y() ),
pScaling,
pRotation );
}
- bool modifyClip( rendering::RenderState& o_rRenderState,
- const struct ::cppcanvas::internal::OutDevState& rOutdevState,
- const CanvasSharedPtr& rCanvas,
- const ::basegfx::B2DHomMatrix& rTransform )
+ bool modifyClip( rendering::RenderState& o_rRenderState,
+ const struct ::cppcanvas::internal::OutDevState& rOutdevState,
+ const CanvasSharedPtr& rCanvas,
+ const ::basegfx::B2DHomMatrix& rTransform )
{
if( !rTransform.isIdentity() ||
!rTransform.isInvertible() )
return false; // nothing to do
-
+
::basegfx::B2DPolyPolygon aLocalClip;
if( rOutdevState.clip.count() )
@@ -277,8 +277,8 @@ namespace cppcanvas
const ::Rectangle aLocalClipRect( rOutdevState.clipRect );
aLocalClip = ::basegfx::B2DPolyPolygon(
- ::basegfx::tools::createPolygonFromRect(
- ::basegfx::B2DRectangle(
+ ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::B2DRectangle(
aLocalClipRect.Left(),
aLocalClipRect.Top(),
aLocalClipRect.Right(),
@@ -304,15 +304,15 @@ namespace cppcanvas
}
// create overline/underline/strikeout line info struct
- TextLineInfo createTextLineInfo( const ::VirtualDevice& rVDev,
- const ::cppcanvas::internal::OutDevState& rState )
+ TextLineInfo createTextLineInfo( const ::VirtualDevice& rVDev,
+ const ::cppcanvas::internal::OutDevState& rState )
{
const BOOL bOldMode( rVDev.IsMapModeEnabled() );
// #i68512# Force metric regeneration with mapmode enabled
// (prolly OutDev bug)
rVDev.GetFontMetric();
-
+
// will restore map mode below
const_cast< ::VirtualDevice& >(rVDev).EnableMapMode( FALSE );
@@ -337,39 +337,39 @@ namespace cppcanvas
{
void appendRect( ::basegfx::B2DPolyPolygon& o_rPoly,
const ::basegfx::B2DPoint& rStartPos,
- const double nX1,
- const double nY1,
- const double nX2,
- const double nY2 )
+ const double nX1,
+ const double nY1,
+ const double nX2,
+ const double nY2 )
{
const double x( rStartPos.getX() );
const double y( rStartPos.getY() );
o_rPoly.append(
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::tools::createPolygonFromRect(
::basegfx::B2DRectangle( x + nX1, y + nY1, x + nX2, y + nY2 ) ) );
}
void appendRect( ::basegfx::B2DPolyPolygon& o_rPoly,
- const double nX1,
- const double nY1,
- const double nX2,
- const double nY2 )
+ const double nX1,
+ const double nY1,
+ const double nX2,
+ const double nY2 )
{
o_rPoly.append(
- ::basegfx::tools::createPolygonFromRect(
+ ::basegfx::tools::createPolygonFromRect(
::basegfx::B2DRectangle( nX1, nY1, nX2, nY2 ) ) );
}
- void appendDashes( ::basegfx::B2DPolyPolygon& o_rPoly,
- const double nX,
- const double nY,
- const double nLineWidth,
- const double nLineHeight,
- const double nDashWidth,
- const double nDashSkip )
+ void appendDashes( ::basegfx::B2DPolyPolygon& o_rPoly,
+ const double nX,
+ const double nY,
+ const double nLineWidth,
+ const double nLineHeight,
+ const double nDashWidth,
+ const double nDashSkip )
{
- const sal_Int32 nNumLoops(
+ const sal_Int32 nNumLoops(
static_cast< sal_Int32 >(
::std::max( 1.0,
nLineWidth / nDashSkip ) + .5) );
@@ -378,7 +378,7 @@ namespace cppcanvas
for( sal_Int32 i=0; i<nNumLoops; ++i )
{
appendRect( o_rPoly,
- x, nY,
+ x, nY,
x + nDashWidth, nY + nLineHeight );
x += nDashSkip;
@@ -389,15 +389,15 @@ namespace cppcanvas
// create line actions for text such as underline and
// strikeout
::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint rStartPos,
- const double& rLineWidth,
- const TextLineInfo& rTextLineInfo )
+ const double& rLineWidth,
+ const TextLineInfo& rTextLineInfo )
{
// fill the polypolygon with all text lines
::basegfx::B2DPolyPolygon aTextLinesPolyPoly;
switch( rTextLineInfo.mnOverlineStyle )
{
- case UNDERLINE_NONE: // nothing to do
+ case UNDERLINE_NONE: // nothing to do
// FALLTHROUGH intended
case UNDERLINE_DONTKNOW:
break;
@@ -502,7 +502,7 @@ namespace cppcanvas
switch( rTextLineInfo.mnUnderlineStyle )
{
- case UNDERLINE_NONE: // nothing to do
+ case UNDERLINE_NONE: // nothing to do
// FALLTHROUGH intended
case UNDERLINE_DONTKNOW:
break;
@@ -512,11 +512,11 @@ namespace cppcanvas
case UNDERLINE_WAVE: // TODO(F3): NYI
// FALLTHROUGH intended
case UNDERLINE_SINGLE:
- appendRect(
+ appendRect(
aTextLinesPolyPoly,
rStartPos,
0,
- rTextLineInfo.mnUnderlineOffset,
+ rTextLineInfo.mnUnderlineOffset,
rLineWidth,
rTextLineInfo.mnUnderlineOffset + rTextLineInfo.mnLineHeight );
break;
@@ -534,11 +534,11 @@ namespace cppcanvas
case UNDERLINE_BOLDWAVE: // TODO(F3): NYI
// FALLTHROUGH intended
case UNDERLINE_BOLD:
- appendRect(
+ appendRect(
aTextLinesPolyPoly,
rStartPos,
0,
- rTextLineInfo.mnUnderlineOffset,
+ rTextLineInfo.mnUnderlineOffset,
rLineWidth,
rTextLineInfo.mnUnderlineOffset + 2*rTextLineInfo.mnLineHeight );
break;
@@ -546,19 +546,19 @@ namespace cppcanvas
case UNDERLINE_DOUBLEWAVE: // TODO(F3): NYI
// FALLTHROUGH intended
case UNDERLINE_DOUBLE:
- appendRect(
+ appendRect(
aTextLinesPolyPoly,
rStartPos,
0,
- rTextLineInfo.mnUnderlineOffset - rTextLineInfo.mnLineHeight,
+ rTextLineInfo.mnUnderlineOffset - rTextLineInfo.mnLineHeight,
rLineWidth,
rTextLineInfo.mnUnderlineOffset );
- appendRect(
+ appendRect(
aTextLinesPolyPoly,
rStartPos,
0,
- rTextLineInfo.mnUnderlineOffset + 2*rTextLineInfo.mnLineHeight,
+ rTextLineInfo.mnUnderlineOffset + 2*rTextLineInfo.mnLineHeight,
rLineWidth,
rTextLineInfo.mnUnderlineOffset + 3*rTextLineInfo.mnLineHeight );
break;
@@ -566,37 +566,37 @@ namespace cppcanvas
case UNDERLINE_DASHDOTDOT: // TODO(F3): NYI
// FALLTHROUGH intended
case UNDERLINE_DOTTED:
- appendDashes(
+ appendDashes(
aTextLinesPolyPoly,
rStartPos.getX(),
rStartPos.getY() + rTextLineInfo.mnUnderlineOffset,
rLineWidth,
rTextLineInfo.mnLineHeight,
- rTextLineInfo.mnLineHeight,
+ rTextLineInfo.mnLineHeight,
2*rTextLineInfo.mnLineHeight );
break;
case UNDERLINE_DASHDOT: // TODO(F3): NYI
// FALLTHROUGH intended
case UNDERLINE_DASH:
- appendDashes(
+ appendDashes(
aTextLinesPolyPoly,
rStartPos.getX(),
rStartPos.getY() + rTextLineInfo.mnUnderlineOffset,
rLineWidth,
rTextLineInfo.mnLineHeight,
- 3*rTextLineInfo.mnLineHeight,
+ 3*rTextLineInfo.mnLineHeight,
6*rTextLineInfo.mnLineHeight );
break;
case UNDERLINE_LONGDASH:
- appendDashes(
+ appendDashes(
aTextLinesPolyPoly,
rStartPos.getX(),
rStartPos.getY() + rTextLineInfo.mnUnderlineOffset,
rLineWidth,
rTextLineInfo.mnLineHeight,
- 6*rTextLineInfo.mnLineHeight,
+ 6*rTextLineInfo.mnLineHeight,
12*rTextLineInfo.mnLineHeight );
break;
@@ -618,39 +618,39 @@ namespace cppcanvas
break;
case STRIKEOUT_SINGLE:
- appendRect(
+ appendRect(
aTextLinesPolyPoly,
rStartPos,
0,
- rTextLineInfo.mnStrikeoutOffset,
+ rTextLineInfo.mnStrikeoutOffset,
rLineWidth,
rTextLineInfo.mnStrikeoutOffset + rTextLineInfo.mnLineHeight );
break;
case STRIKEOUT_BOLD:
- appendRect(
+ appendRect(
aTextLinesPolyPoly,
rStartPos,
0,
- rTextLineInfo.mnStrikeoutOffset,
+ rTextLineInfo.mnStrikeoutOffset,
rLineWidth,
rTextLineInfo.mnStrikeoutOffset + 2*rTextLineInfo.mnLineHeight );
break;
case STRIKEOUT_DOUBLE:
- appendRect(
+ appendRect(
aTextLinesPolyPoly,
rStartPos,
0,
- rTextLineInfo.mnStrikeoutOffset - rTextLineInfo.mnLineHeight,
+ rTextLineInfo.mnStrikeoutOffset - rTextLineInfo.mnLineHeight,
rLineWidth,
rTextLineInfo.mnStrikeoutOffset );
- appendRect(
+ appendRect(
aTextLinesPolyPoly,
rStartPos,
0,
- rTextLineInfo.mnStrikeoutOffset + 2*rTextLineInfo.mnLineHeight,
+ rTextLineInfo.mnStrikeoutOffset + 2*rTextLineInfo.mnLineHeight,
rLineWidth,
rTextLineInfo.mnStrikeoutOffset + 3*rTextLineInfo.mnLineHeight );
break;
@@ -663,28 +663,28 @@ namespace cppcanvas
return aTextLinesPolyPoly;
}
- ::basegfx::B2DRange calcDevicePixelBounds( const ::basegfx::B2DRange& rBounds,
- const rendering::ViewState& viewState,
- const rendering::RenderState& renderState )
+ ::basegfx::B2DRange calcDevicePixelBounds( const ::basegfx::B2DRange& rBounds,
+ const rendering::ViewState& viewState,
+ const rendering::RenderState& renderState )
{
::basegfx::B2DHomMatrix aTransform;
::canvas::tools::mergeViewAndRenderTransform( aTransform,
viewState,
renderState );
-
+
::basegfx::B2DRange aTransformedBounds;
return ::canvas::tools::calcTransformedRectBounds( aTransformedBounds,
- rBounds,
+ rBounds,
aTransform );
}
// create line actions for text such as underline and
// strikeout
- ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const double& rStartOffset,
- const double& rLineWidth,
- const TextLineInfo& rTextLineInfo )
+ ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const double& rStartOffset,
+ const double& rLineWidth,
+ const TextLineInfo& rTextLineInfo )
{
- return createTextLinesPolyPolygon(
+ return createTextLinesPolyPolygon(
::basegfx::B2DPoint( rStartOffset,
0.0 ),
rLineWidth,
diff --git a/cppcanvas/source/mtfrenderer/mtftools.hxx b/cppcanvas/source/mtfrenderer/mtftools.hxx
index 8d466f1d9e7e..7dfc306f6868 100644
--- a/cppcanvas/source/mtfrenderer/mtftools.hxx
+++ b/cppcanvas/source/mtfrenderer/mtftools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace basegfx
class B2DVector;
class B2DPoint;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
struct RenderState;
} } } }
@@ -63,8 +63,8 @@ namespace cppcanvas
sets up the transformation and the clip from the
OutDevState.
*/
- void initRenderState( ::com::sun::star::rendering::RenderState& renderState,
- const ::cppcanvas::internal::OutDevState& outdevState );
+ void initRenderState( ::com::sun::star::rendering::RenderState& renderState,
+ const ::cppcanvas::internal::OutDevState& outdevState );
/** Calc output offset relative to baseline
@@ -80,8 +80,8 @@ namespace cppcanvas
@param rVDev
VDev to obtain font metrics from.
*/
- ::Size getBaselineOffset( const ::cppcanvas::internal::OutDevState& outdevState,
- const VirtualDevice& rVDev );
+ ::Size getBaselineOffset( const ::cppcanvas::internal::OutDevState& outdevState,
+ const VirtualDevice& rVDev );
/** Construct a matrix that converts from logical to pixel
coordinate system.
@@ -97,8 +97,8 @@ namespace cppcanvas
@return the calculated transformation matrix.
*/
- ::basegfx::B2DHomMatrix& calcLogic2PixelLinearTransform( ::basegfx::B2DHomMatrix& o_rMatrix,
- const VirtualDevice& rVDev );
+ ::basegfx::B2DHomMatrix& calcLogic2PixelLinearTransform( ::basegfx::B2DHomMatrix& o_rMatrix,
+ const VirtualDevice& rVDev );
/** Construct a matrix that converts from logical to pixel
coordinate system.
@@ -112,8 +112,8 @@ namespace cppcanvas
@return the calculated transformation matrix.
*/
- ::basegfx::B2DHomMatrix& calcLogic2PixelAffineTransform( ::basegfx::B2DHomMatrix& o_rMatrix,
- const VirtualDevice& rVDev );
+ ::basegfx::B2DHomMatrix& calcLogic2PixelAffineTransform( ::basegfx::B2DHomMatrix& o_rMatrix,
+ const VirtualDevice& rVDev );
/** This method modifies the clip, to cancel the given
transformation.
@@ -140,11 +140,11 @@ namespace cppcanvas
@return true, if the clip has changed, false if not
*/
- bool modifyClip( ::com::sun::star::rendering::RenderState& o_rRenderState,
- const struct ::cppcanvas::internal::OutDevState& rOutdevState,
- const CanvasSharedPtr& rCanvas,
- const ::Point& rOffset,
- const ::basegfx::B2DVector* pScaling,
+ bool modifyClip( ::com::sun::star::rendering::RenderState& o_rRenderState,
+ const struct ::cppcanvas::internal::OutDevState& rOutdevState,
+ const CanvasSharedPtr& rCanvas,
+ const ::Point& rOffset,
+ const ::basegfx::B2DVector* pScaling,
const double* pRotation );
/** This method modifies the clip, to cancel the given
@@ -172,11 +172,11 @@ namespace cppcanvas
@return true, if the clip has changed, false if not
*/
- bool modifyClip( ::com::sun::star::rendering::RenderState& o_rRenderState,
- const struct ::cppcanvas::internal::OutDevState& rOutdevState,
- const CanvasSharedPtr& rCanvas,
- const ::basegfx::B2DPoint& rOffset,
- const ::basegfx::B2DVector* pScaling,
+ bool modifyClip( ::com::sun::star::rendering::RenderState& o_rRenderState,
+ const struct ::cppcanvas::internal::OutDevState& rOutdevState,
+ const CanvasSharedPtr& rCanvas,
+ const ::basegfx::B2DPoint& rOffset,
+ const ::basegfx::B2DVector* pScaling,
const double* pRotation );
/** This method modifies the clip, to cancel the given
@@ -198,10 +198,10 @@ namespace cppcanvas
@return true, if the clip has changed, false if not
*/
- bool modifyClip( ::com::sun::star::rendering::RenderState& o_rRenderState,
- const struct ::cppcanvas::internal::OutDevState& rOutdevState,
- const CanvasSharedPtr& rCanvas,
- const ::basegfx::B2DHomMatrix& rTransform );
+ bool modifyClip( ::com::sun::star::rendering::RenderState& o_rRenderState,
+ const struct ::cppcanvas::internal::OutDevState& rOutdevState,
+ const CanvasSharedPtr& rCanvas,
+ const ::basegfx::B2DHomMatrix& rTransform );
struct TextLineInfo
{
@@ -210,9 +210,9 @@ namespace cppcanvas
const double& rOverlineOffset,
const double& rUnderlineOffset,
const double& rStrikeoutOffset,
- sal_Int8 nOverlineStyle,
- sal_Int8 nUnderlineStyle,
- sal_Int8 nStrikeoutStyle ) :
+ sal_Int8 nOverlineStyle,
+ sal_Int8 nUnderlineStyle,
+ sal_Int8 nStrikeoutStyle ) :
mnLineHeight( rLineHeight ),
mnOverlineHeight( rOverlineHeight ),
mnOverlineOffset( rOverlineOffset ),
@@ -224,27 +224,27 @@ namespace cppcanvas
{
}
- double mnLineHeight;
- double mnOverlineHeight;
- double mnOverlineOffset;
- double mnUnderlineOffset;
- double mnStrikeoutOffset;
- sal_Int8 mnOverlineStyle;
- sal_Int8 mnUnderlineStyle;
- sal_Int8 mnStrikeoutStyle;
+ double mnLineHeight;
+ double mnOverlineHeight;
+ double mnOverlineOffset;
+ double mnUnderlineOffset;
+ double mnStrikeoutOffset;
+ sal_Int8 mnOverlineStyle;
+ sal_Int8 mnUnderlineStyle;
+ sal_Int8 mnStrikeoutStyle;
};
/** Transform given bounds to device coordinate system.
*/
- ::basegfx::B2DRange calcDevicePixelBounds( const ::basegfx::B2DRange& rBounds,
- const ::com::sun::star::rendering::ViewState& viewState,
- const ::com::sun::star::rendering::RenderState& renderState );
+ ::basegfx::B2DRange calcDevicePixelBounds( const ::basegfx::B2DRange& rBounds,
+ const ::com::sun::star::rendering::ViewState& viewState,
+ const ::com::sun::star::rendering::RenderState& renderState );
/** Generate text underline/strikeout info struct from OutDev
state.
*/
- TextLineInfo createTextLineInfo( const ::VirtualDevice& rVDev,
- const ::cppcanvas::internal::OutDevState& rState );
+ TextLineInfo createTextLineInfo( const ::VirtualDevice& rVDev,
+ const ::cppcanvas::internal::OutDevState& rState );
/** Create a poly-polygon representing the given combination
of overline, strikeout and underline.
@@ -258,13 +258,13 @@ namespace cppcanvas
@param rTextLineInfo
Common info needed for overline/strikeout/underline generation
*/
- ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const double& rStartOffset,
- const double& rLineWidth,
- const TextLineInfo& rTextLineInfo );
+ ::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const double& rStartOffset,
+ const double& rLineWidth,
+ const TextLineInfo& rTextLineInfo );
::basegfx::B2DPolyPolygon createTextLinesPolyPolygon( const ::basegfx::B2DPoint rStartPos,
- const double& rLineWidth,
- const TextLineInfo& rTextLineInfo );
+ const double& rLineWidth,
+ const TextLineInfo& rTextLineInfo );
}
}
diff --git a/cppcanvas/source/mtfrenderer/outdevstate.hxx b/cppcanvas/source/mtfrenderer/outdevstate.hxx
index b0e79d2684dc..9e62b99a051d 100644
--- a/cppcanvas/source/mtfrenderer/outdevstate.hxx
+++ b/cppcanvas/source/mtfrenderer/outdevstate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,7 +70,7 @@ namespace cppcanvas
textEmphasisMarkStyle(EMPHASISMARK_NONE),
pushFlags(PUSH_ALL),
textDirection(::com::sun::star::rendering::TextDirection::WEAK_LEFT_TO_RIGHT),
- textAlignment(0), // TODO(Q2): Synchronize with implrenderer
+ textAlignment(0), // TODO(Q2): Synchronize with implrenderer
// and possibly new rendering::TextAlignment
textReliefStyle(RELIEF_NONE),
textOverlineStyle(UNDERLINE_NONE),
@@ -89,44 +89,44 @@ namespace cppcanvas
{
}
- ::basegfx::B2DPolyPolygon clip;
- ::Rectangle clipRect;
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > xClipPoly;
+ ::basegfx::B2DPolyPolygon clip;
+ ::Rectangle clipRect;
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > xClipPoly;
- ::com::sun::star::uno::Sequence< double > lineColor;
- ::com::sun::star::uno::Sequence< double > fillColor;
- ::com::sun::star::uno::Sequence< double > textColor;
- ::com::sun::star::uno::Sequence< double > textFillColor;
- ::com::sun::star::uno::Sequence< double > textLineColor;
+ ::com::sun::star::uno::Sequence< double > lineColor;
+ ::com::sun::star::uno::Sequence< double > fillColor;
+ ::com::sun::star::uno::Sequence< double > textColor;
+ ::com::sun::star::uno::Sequence< double > textFillColor;
+ ::com::sun::star::uno::Sequence< double > textLineColor;
/** Current font.
@attention Beware, this member can be NULL, and
nevertheless text output is generated.
*/
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > xFont;
- ::basegfx::B2DHomMatrix transform;
- ::basegfx::B2DHomMatrix mapModeTransform;
- double fontRotation;
-
- sal_uInt16 textEmphasisMarkStyle;
- sal_uInt16 pushFlags;
- sal_Int8 textDirection;
- sal_Int8 textAlignment;
- sal_Int8 textReliefStyle;
- sal_Int8 textOverlineStyle;
- sal_Int8 textUnderlineStyle;
- sal_Int8 textStrikeoutStyle;
- TextAlign textReferencePoint;
-
- bool isTextOutlineModeSet;
- bool isTextEffectShadowSet;
- bool isTextWordUnderlineSet;
-
- bool isLineColorSet;
- bool isFillColorSet;
- bool isTextFillColorSet;
- bool isTextLineColorSet;
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > xFont;
+ ::basegfx::B2DHomMatrix transform;
+ ::basegfx::B2DHomMatrix mapModeTransform;
+ double fontRotation;
+
+ sal_uInt16 textEmphasisMarkStyle;
+ sal_uInt16 pushFlags;
+ sal_Int8 textDirection;
+ sal_Int8 textAlignment;
+ sal_Int8 textReliefStyle;
+ sal_Int8 textOverlineStyle;
+ sal_Int8 textUnderlineStyle;
+ sal_Int8 textStrikeoutStyle;
+ TextAlign textReferencePoint;
+
+ bool isTextOutlineModeSet;
+ bool isTextEffectShadowSet;
+ bool isTextWordUnderlineSet;
+
+ bool isLineColorSet;
+ bool isFillColorSet;
+ bool isTextFillColorSet;
+ bool isTextLineColorSet;
};
}
}
diff --git a/cppcanvas/source/mtfrenderer/pointaction.cxx b/cppcanvas/source/mtfrenderer/pointaction.cxx
index 8a2edbdf35ba..77d7f826573c 100644
--- a/cppcanvas/source/mtfrenderer/pointaction.cxx
+++ b/cppcanvas/source/mtfrenderer/pointaction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,30 +50,30 @@
using namespace ::com::sun::star;
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
namespace
{
class PointAction : public Action, private ::boost::noncopyable
- {
- public:
- PointAction( const ::basegfx::B2DPoint&,
- const CanvasSharedPtr&,
- const OutDevState& );
- PointAction( const ::basegfx::B2DPoint&,
- const CanvasSharedPtr&,
- const OutDevState&,
- const ::Color& );
+ {
+ public:
+ PointAction( const ::basegfx::B2DPoint&,
+ const CanvasSharedPtr&,
+ const OutDevState& );
+ PointAction( const ::basegfx::B2DPoint&,
+ const CanvasSharedPtr&,
+ const OutDevState&,
+ const ::Color& );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
@@ -82,14 +82,14 @@ namespace cppcanvas
PointAction(const PointAction&);
PointAction& operator = ( const PointAction& );
- ::basegfx::B2DPoint maPoint;
- CanvasSharedPtr mpCanvas;
- ::com::sun::star::rendering::RenderState maState;
+ ::basegfx::B2DPoint maPoint;
+ CanvasSharedPtr mpCanvas;
+ ::com::sun::star::rendering::RenderState maState;
};
- PointAction::PointAction( const ::basegfx::B2DPoint& rPoint,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState ) :
+ PointAction::PointAction( const ::basegfx::B2DPoint& rPoint,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState ) :
maPoint( rPoint ),
mpCanvas( rCanvas ),
maState()
@@ -98,16 +98,16 @@ namespace cppcanvas
maState.DeviceColor = rState.lineColor;
}
- PointAction::PointAction( const ::basegfx::B2DPoint& rPoint,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::Color& rAltColor ) :
+ PointAction::PointAction( const ::basegfx::B2DPoint& rPoint,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::Color& rAltColor ) :
maPoint( rPoint ),
mpCanvas( rCanvas ),
maState()
{
tools::initRenderState(maState,rState);
- maState.DeviceColor = ::vcl::unotools::colorToDoubleSequence(
+ maState.DeviceColor = ::vcl::unotools::colorToDoubleSequence(
rAltColor,
rCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace() );
}
@@ -120,15 +120,15 @@ namespace cppcanvas
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
- mpCanvas->getUNOCanvas()->drawPoint( ::basegfx::unotools::point2DFromB2DPoint(maPoint),
- mpCanvas->getViewState(),
+ mpCanvas->getUNOCanvas()->drawPoint( ::basegfx::unotools::point2DFromB2DPoint(maPoint),
+ mpCanvas->getViewState(),
aLocalState );
return true;
}
- bool PointAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool PointAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// point only contains a single action, fail if subset
// requests different range
@@ -139,11 +139,11 @@ namespace cppcanvas
return render( rTransformation );
}
- ::basegfx::B2DRange PointAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
+ ::basegfx::B2DRange PointAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
{
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
-
+
return tools::calcDevicePixelBounds( ::basegfx::B2DRange( maPoint.getX()-1,
maPoint.getY()-1,
maPoint.getX()+1,
@@ -152,8 +152,8 @@ namespace cppcanvas
aLocalState );
}
- ::basegfx::B2DRange PointAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange PointAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// point only contains a single action, empty bounds
// if subset requests different range
@@ -170,17 +170,17 @@ namespace cppcanvas
}
}
- ActionSharedPtr PointActionFactory::createPointAction( const ::basegfx::B2DPoint& rPoint,
- const CanvasSharedPtr& rCanvas,
+ ActionSharedPtr PointActionFactory::createPointAction( const ::basegfx::B2DPoint& rPoint,
+ const CanvasSharedPtr& rCanvas,
const OutDevState& rState )
{
return ActionSharedPtr( new PointAction( rPoint, rCanvas, rState ) );
}
-
- ActionSharedPtr PointActionFactory::createPointAction( const ::basegfx::B2DPoint& rPoint,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::Color& rColor )
+
+ ActionSharedPtr PointActionFactory::createPointAction( const ::basegfx::B2DPoint& rPoint,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::Color& rColor )
{
return ActionSharedPtr( new PointAction( rPoint, rCanvas, rState, rColor ) );
}
diff --git a/cppcanvas/source/mtfrenderer/pointaction.hxx b/cppcanvas/source/mtfrenderer/pointaction.hxx
index b17b1eea5a43..0c51965a0562 100644
--- a/cppcanvas/source/mtfrenderer/pointaction.hxx
+++ b/cppcanvas/source/mtfrenderer/pointaction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,8 +39,8 @@ namespace basegfx {
/* Definition of internal::PointActionFactory class */
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
struct OutDevState;
@@ -53,18 +53,18 @@ namespace cppcanvas
text layout) is Canvas-dependent.
*/
class PointActionFactory
- {
- public:
+ {
+ public:
/// Point in current color
- static ActionSharedPtr createPointAction( const ::basegfx::B2DPoint&,
- const CanvasSharedPtr&,
- const OutDevState& );
-
+ static ActionSharedPtr createPointAction( const ::basegfx::B2DPoint&,
+ const CanvasSharedPtr&,
+ const OutDevState& );
+
/// Point in given color
- static ActionSharedPtr createPointAction( const ::basegfx::B2DPoint&,
- const CanvasSharedPtr&,
- const OutDevState&,
- const ::Color& );
+ static ActionSharedPtr createPointAction( const ::basegfx::B2DPoint&,
+ const CanvasSharedPtr&,
+ const OutDevState&,
+ const ::Color& );
private:
// static factory, disable big four
@@ -73,7 +73,7 @@ namespace cppcanvas
PointActionFactory(const PointActionFactory&);
PointActionFactory& operator=( const PointActionFactory& );
};
- }
+ }
}
#endif /* _CPPCANVAS_POINTACTION_HXX */
diff --git a/cppcanvas/source/mtfrenderer/polypolyaction.cxx b/cppcanvas/source/mtfrenderer/polypolyaction.cxx
index 1370db14fd0b..e0727b98bdc0 100644
--- a/cppcanvas/source/mtfrenderer/polypolyaction.cxx
+++ b/cppcanvas/source/mtfrenderer/polypolyaction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,33 +54,33 @@
using namespace ::com::sun::star;
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
namespace
{
class PolyPolyAction : public CachedPrimitiveBase
- {
- public:
- PolyPolyAction( const ::basegfx::B2DPolyPolygon&,
- const CanvasSharedPtr&,
+ {
+ public:
+ PolyPolyAction( const ::basegfx::B2DPolyPolygon&,
+ const CanvasSharedPtr&,
const OutDevState&,
bool bFill,
- bool bStroke );
- PolyPolyAction( const ::basegfx::B2DPolyPolygon&,
- const CanvasSharedPtr&,
+ bool bStroke );
+ PolyPolyAction( const ::basegfx::B2DPolyPolygon&,
+ const CanvasSharedPtr&,
const OutDevState&,
bool bFill,
bool bStroke,
- int nTransparency );
+ int nTransparency );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
@@ -89,17 +89,17 @@ namespace cppcanvas
virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive,
const ::basegfx::B2DHomMatrix& rTransformation ) const;
- const uno::Reference< rendering::XPolyPolygon2D > mxPolyPoly;
- const ::basegfx::B2DRange maBounds;
- const CanvasSharedPtr mpCanvas;
+ const uno::Reference< rendering::XPolyPolygon2D > mxPolyPoly;
+ const ::basegfx::B2DRange maBounds;
+ const CanvasSharedPtr mpCanvas;
// stroke color is now implicit: the maState.DeviceColor member
- rendering::RenderState maState;
-
- uno::Sequence< double > maFillColor;
+ rendering::RenderState maState;
+
+ uno::Sequence< double > maFillColor;
};
- PolyPolyAction::PolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
+ PolyPolyAction::PolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
const CanvasSharedPtr& rCanvas,
const OutDevState& rState,
bool bFill,
@@ -115,12 +115,12 @@ namespace cppcanvas
if( bFill )
maFillColor = rState.fillColor;
-
+
if( bStroke )
maState.DeviceColor = rState.lineColor;
}
- PolyPolyAction::PolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
+ PolyPolyAction::PolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
const CanvasSharedPtr& rCanvas,
const OutDevState& rState,
bool bFill,
@@ -146,7 +146,7 @@ namespace cppcanvas
// adapt fill color transparency
maFillColor[3] = 1.0 - nTransparency / 100.0;
}
-
+
if( bStroke )
{
maState.DeviceColor = rState.lineColor;
@@ -171,13 +171,13 @@ namespace cppcanvas
#ifdef SPECIAL_DEBUG
aLocalState.Clip.clear();
- aLocalState.DeviceColor =
+ aLocalState.DeviceColor =
::vcl::unotools::colorToDoubleSequence( mpCanvas->getUNOCanvas()->getDevice(),
::Color( 0x80FF0000 ) );
if( maState.Clip.is() )
- mpCanvas->getUNOCanvas()->fillPolyPolygon( maState.Clip,
- mpCanvas->getViewState(),
+ mpCanvas->getUNOCanvas()->fillPolyPolygon( maState.Clip,
+ mpCanvas->getViewState(),
aLocalState );
aLocalState.DeviceColor = maState.DeviceColor;
@@ -189,17 +189,17 @@ namespace cppcanvas
// fillPolyPolygon() might throw
const uno::Sequence< double > aTmpColor( aLocalState.DeviceColor );
aLocalState.DeviceColor = maFillColor;
-
- rCachedPrimitive = mpCanvas->getUNOCanvas()->fillPolyPolygon( mxPolyPoly,
+
+ rCachedPrimitive = mpCanvas->getUNOCanvas()->fillPolyPolygon( mxPolyPoly,
mpCanvas->getViewState(),
aLocalState );
-
+
aLocalState.DeviceColor = aTmpColor;
}
-
+
if( aLocalState.DeviceColor.getLength() )
{
- rCachedPrimitive = mpCanvas->getUNOCanvas()->drawPolyPolygon( mxPolyPoly,
+ rCachedPrimitive = mpCanvas->getUNOCanvas()->drawPolyPolygon( mxPolyPoly,
mpCanvas->getViewState(),
aLocalState );
}
@@ -207,8 +207,8 @@ namespace cppcanvas
return true;
}
- bool PolyPolyAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool PolyPolyAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// TODO(F1): Split up poly-polygon into polygons, or even
// line segments, when subsets are requested.
@@ -222,19 +222,19 @@ namespace cppcanvas
return CachedPrimitiveBase::render( rTransformation );
}
- ::basegfx::B2DRange PolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
+ ::basegfx::B2DRange PolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
{
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
-
- return tools::calcDevicePixelBounds(
+
+ return tools::calcDevicePixelBounds(
maBounds,
mpCanvas->getViewState(),
aLocalState );
}
- ::basegfx::B2DRange PolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange PolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// TODO(F1): Split up poly-polygon into polygons, or even
// line segments, when subsets are requested.
@@ -259,19 +259,19 @@ namespace cppcanvas
// -------------------------------------------------------------------------------
class TexturedPolyPolyAction : public CachedPrimitiveBase
- {
- public:
+ {
+ public:
TexturedPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const rendering::Texture& rTexture );
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const rendering::Texture& rTexture );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
@@ -280,19 +280,19 @@ namespace cppcanvas
virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive,
const ::basegfx::B2DHomMatrix& rTransformation ) const;
- const uno::Reference< rendering::XPolyPolygon2D > mxPolyPoly;
- const ::basegfx::B2DRectangle maBounds;
- const CanvasSharedPtr mpCanvas;
+ const uno::Reference< rendering::XPolyPolygon2D > mxPolyPoly;
+ const ::basegfx::B2DRectangle maBounds;
+ const CanvasSharedPtr mpCanvas;
// stroke color is now implicit: the maState.DeviceColor member
- rendering::RenderState maState;
- const rendering::Texture maTexture;
+ rendering::RenderState maState;
+ const rendering::Texture maTexture;
};
- TexturedPolyPolyAction::TexturedPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const rendering::Texture& rTexture ) :
+ TexturedPolyPolyAction::TexturedPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const rendering::Texture& rTexture ) :
CachedPrimitiveBase( rCanvas, true ),
mxPolyPoly( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( rCanvas->getUNOCanvas()->getDevice(), rPolyPoly) ),
maBounds( ::basegfx::tools::getRange(rPolyPoly) ),
@@ -314,16 +314,16 @@ namespace cppcanvas
uno::Sequence< rendering::Texture > aSeq(1);
aSeq[0] = maTexture;
-
- rCachedPrimitive = mpCanvas->getUNOCanvas()->fillTexturedPolyPolygon( mxPolyPoly,
+
+ rCachedPrimitive = mpCanvas->getUNOCanvas()->fillTexturedPolyPolygon( mxPolyPoly,
mpCanvas->getViewState(),
aLocalState,
aSeq );
return true;
}
- bool TexturedPolyPolyAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool TexturedPolyPolyAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// TODO(F1): Split up poly-polygon into polygons, or even
// line segments, when subsets are requested.
@@ -337,19 +337,19 @@ namespace cppcanvas
return CachedPrimitiveBase::render( rTransformation );
}
- ::basegfx::B2DRange TexturedPolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
+ ::basegfx::B2DRange TexturedPolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
{
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
-
- return tools::calcDevicePixelBounds(
+
+ return tools::calcDevicePixelBounds(
maBounds,
mpCanvas->getViewState(),
aLocalState );
}
- ::basegfx::B2DRange TexturedPolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange TexturedPolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// TODO(F1): Split up poly-polygon into polygons, or even
// line segments, when subsets are requested.
@@ -373,19 +373,19 @@ namespace cppcanvas
// -------------------------------------------------------------------------------
class StrokedPolyPolyAction : public CachedPrimitiveBase
- {
- public:
+ {
+ public:
StrokedPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const rendering::StrokeAttributes& rStrokeAttributes );
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const rendering::StrokeAttributes& rStrokeAttributes );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
@@ -394,17 +394,17 @@ namespace cppcanvas
virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive,
const ::basegfx::B2DHomMatrix& rTransformation ) const;
- const uno::Reference< rendering::XPolyPolygon2D > mxPolyPoly;
- const ::basegfx::B2DRectangle maBounds;
- const CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
- const rendering::StrokeAttributes maStrokeAttributes;
+ const uno::Reference< rendering::XPolyPolygon2D > mxPolyPoly;
+ const ::basegfx::B2DRectangle maBounds;
+ const CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
+ const rendering::StrokeAttributes maStrokeAttributes;
};
- StrokedPolyPolyAction::StrokedPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const rendering::StrokeAttributes& rStrokeAttributes ) :
+ StrokedPolyPolyAction::StrokedPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const rendering::StrokeAttributes& rStrokeAttributes ) :
CachedPrimitiveBase( rCanvas, false ),
mxPolyPoly( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( rCanvas->getUNOCanvas()->getDevice(), rPolyPoly) ),
maBounds( ::basegfx::tools::getRange(rPolyPoly) ),
@@ -425,15 +425,15 @@ namespace cppcanvas
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
- rCachedPrimitive = mpCanvas->getUNOCanvas()->strokePolyPolygon( mxPolyPoly,
+ rCachedPrimitive = mpCanvas->getUNOCanvas()->strokePolyPolygon( mxPolyPoly,
mpCanvas->getViewState(),
aLocalState,
maStrokeAttributes );
return true;
}
- bool StrokedPolyPolyAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool StrokedPolyPolyAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// TODO(F1): Split up poly-polygon into polygons, or even
// line segments, when subsets are requested.
@@ -447,19 +447,19 @@ namespace cppcanvas
return CachedPrimitiveBase::render( rTransformation );
}
- ::basegfx::B2DRange StrokedPolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
+ ::basegfx::B2DRange StrokedPolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
{
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
-
- return tools::calcDevicePixelBounds(
+
+ return tools::calcDevicePixelBounds(
maBounds,
mpCanvas->getViewState(),
aLocalState );
}
- ::basegfx::B2DRange StrokedPolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange StrokedPolyPolyAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// TODO(F1): Split up poly-polygon into polygons, or even
// line segments, when subsets are requested.
@@ -481,40 +481,40 @@ namespace cppcanvas
}
}
- ActionSharedPtr PolyPolyActionFactory::createPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState )
+ ActionSharedPtr PolyPolyActionFactory::createPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState )
{
OSL_ENSURE( rState.isLineColorSet || rState.isFillColorSet,
"PolyPolyActionFactory::createPolyPolyAction() with empty line and fill color" );
- return ActionSharedPtr( new PolyPolyAction( rPoly, rCanvas, rState,
- rState.isFillColorSet,
+ return ActionSharedPtr( new PolyPolyAction( rPoly, rCanvas, rState,
+ rState.isFillColorSet,
rState.isLineColorSet ) );
}
- ActionSharedPtr PolyPolyActionFactory::createPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
- const CanvasSharedPtr& rCanvas,
+ ActionSharedPtr PolyPolyActionFactory::createPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
+ const CanvasSharedPtr& rCanvas,
const OutDevState& rState,
const rendering::Texture& rTexture )
{
return ActionSharedPtr( new TexturedPolyPolyAction( rPoly, rCanvas, rState, rTexture ) );
}
- ActionSharedPtr PolyPolyActionFactory::createLinePolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
- const CanvasSharedPtr& rCanvas,
+ ActionSharedPtr PolyPolyActionFactory::createLinePolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
+ const CanvasSharedPtr& rCanvas,
const OutDevState& rState )
{
OSL_ENSURE( rState.isLineColorSet,
"PolyPolyActionFactory::createLinePolyPolyAction() called with empty line color" );
- return ActionSharedPtr( new PolyPolyAction( rPoly, rCanvas, rState,
- false,
+ return ActionSharedPtr( new PolyPolyAction( rPoly, rCanvas, rState,
+ false,
rState.isLineColorSet ) );
}
-
- ActionSharedPtr PolyPolyActionFactory::createPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
+
+ ActionSharedPtr PolyPolyActionFactory::createPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
const rendering::StrokeAttributes& rStrokeAttributes )
{
OSL_ENSURE( rState.isLineColorSet,
@@ -522,15 +522,15 @@ namespace cppcanvas
return ActionSharedPtr( new StrokedPolyPolyAction( rPoly, rCanvas, rState, rStrokeAttributes ) );
}
- ActionSharedPtr PolyPolyActionFactory::createPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
- const CanvasSharedPtr& rCanvas,
+ ActionSharedPtr PolyPolyActionFactory::createPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
+ const CanvasSharedPtr& rCanvas,
const OutDevState& rState,
- int nTransparency )
+ int nTransparency )
{
OSL_ENSURE( rState.isLineColorSet || rState.isFillColorSet,
"PolyPolyActionFactory::createPolyPolyAction() with empty line and fill color" );
- return ActionSharedPtr( new PolyPolyAction( rPoly, rCanvas, rState,
- rState.isFillColorSet,
+ return ActionSharedPtr( new PolyPolyAction( rPoly, rCanvas, rState,
+ rState.isFillColorSet,
rState.isLineColorSet,
nTransparency ) );
}
diff --git a/cppcanvas/source/mtfrenderer/polypolyaction.hxx b/cppcanvas/source/mtfrenderer/polypolyaction.hxx
index a38ba92a8752..5422e944f76a 100644
--- a/cppcanvas/source/mtfrenderer/polypolyaction.hxx
+++ b/cppcanvas/source/mtfrenderer/polypolyaction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ namespace com { namespace sun { namespace star { namespace rendering
/* Definition of internal::PolyPolyActionFactory class */
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
struct OutDevState;
@@ -59,35 +59,35 @@ namespace cppcanvas
text layout) is Canvas-dependent.
*/
class PolyPolyActionFactory
- {
- public:
+ {
+ public:
/// Create polygon, fill/stroke according to state
- static ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
- const CanvasSharedPtr&,
- const OutDevState& );
+ static ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
+ const CanvasSharedPtr&,
+ const OutDevState& );
/// Create texture-filled polygon
- static ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
- const CanvasSharedPtr&,
+ static ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
+ const CanvasSharedPtr&,
const OutDevState&,
- const ::com::sun::star::rendering::Texture& );
+ const ::com::sun::star::rendering::Texture& );
/// Create line polygon (always stroked, not filled)
- static ActionSharedPtr createLinePolyPolyAction( const ::basegfx::B2DPolyPolygon&,
- const CanvasSharedPtr&,
- const OutDevState& );
+ static ActionSharedPtr createLinePolyPolyAction( const ::basegfx::B2DPolyPolygon&,
+ const CanvasSharedPtr&,
+ const OutDevState& );
/// Create stroked polygon
- static ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
- const CanvasSharedPtr&,
+ static ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
+ const CanvasSharedPtr&,
const OutDevState&,
- const ::com::sun::star::rendering::StrokeAttributes& );
+ const ::com::sun::star::rendering::StrokeAttributes& );
/// For transparent painting of the given polygon (normally, we take the colors always opaque)
- static ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
- const CanvasSharedPtr&,
+ static ActionSharedPtr createPolyPolyAction( const ::basegfx::B2DPolyPolygon&,
+ const CanvasSharedPtr&,
const OutDevState&,
- int nTransparency );
+ int nTransparency );
private:
// static factory, disable big four
@@ -96,7 +96,7 @@ namespace cppcanvas
PolyPolyActionFactory(const PolyPolyActionFactory&);
PolyPolyActionFactory& operator=( const PolyPolyActionFactory& );
};
- }
+ }
}
#endif /* _CPPCANVAS_POLYPOLYACTION_HXX */
diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx
index f9bf1e7da9dd..dd041b3da261 100644
--- a/cppcanvas/source/mtfrenderer/textaction.cxx
+++ b/cppcanvas/source/mtfrenderer/textaction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,10 +72,10 @@ namespace cppcanvas
{
namespace
{
- void init( rendering::RenderState& o_rRenderState,
- const ::basegfx::B2DPoint& rStartPoint,
- const OutDevState& rState,
- const CanvasSharedPtr& rCanvas )
+ void init( rendering::RenderState& o_rRenderState,
+ const ::basegfx::B2DPoint& rStartPoint,
+ const OutDevState& rState,
+ const CanvasSharedPtr& rCanvas )
{
tools::initRenderState(o_rRenderState,rState);
@@ -85,10 +85,10 @@ namespace cppcanvas
// since this, opposed to the FontMatrix rotation
// elsewhere, _does_ get incorporated into the render
// state transform.
- tools::modifyClip( o_rRenderState,
- rState,
- rCanvas,
- rStartPoint,
+ tools::modifyClip( o_rRenderState,
+ rState,
+ rCanvas,
+ rStartPoint,
NULL,
&rState.fontRotation );
@@ -101,11 +101,11 @@ namespace cppcanvas
o_rRenderState.DeviceColor = rState.textColor;
}
- void init( rendering::RenderState& o_rRenderState,
- const ::basegfx::B2DPoint& rStartPoint,
- const OutDevState& rState,
- const CanvasSharedPtr& rCanvas,
- const ::basegfx::B2DHomMatrix& rTextTransform )
+ void init( rendering::RenderState& o_rRenderState,
+ const ::basegfx::B2DPoint& rStartPoint,
+ const OutDevState& rState,
+ const CanvasSharedPtr& rCanvas,
+ const ::basegfx::B2DHomMatrix& rTextTransform )
{
init( o_rRenderState, rStartPoint, rState, rCanvas );
@@ -120,11 +120,11 @@ namespace cppcanvas
rTextTransform );
}
- void init( rendering::RenderState& o_rRenderState,
- uno::Reference< rendering::XCanvasFont >& o_rFont,
- const ::basegfx::B2DPoint& rStartPoint,
- const OutDevState& rState,
- const CanvasSharedPtr& rCanvas )
+ void init( rendering::RenderState& o_rRenderState,
+ uno::Reference< rendering::XCanvasFont >& o_rFont,
+ const ::basegfx::B2DPoint& rStartPoint,
+ const OutDevState& rState,
+ const CanvasSharedPtr& rCanvas )
{
// ensure that o_rFont is valid. It is possible that
// text actions are generated without previously
@@ -137,24 +137,24 @@ namespace cppcanvas
geometry::Matrix2D aFontMatrix;
::canvas::tools::setIdentityMatrix2D( aFontMatrix );
- o_rFont = rCanvas->getUNOCanvas()->createFont(
+ o_rFont = rCanvas->getUNOCanvas()->createFont(
aFontRequest,
uno::Sequence< beans::PropertyValue >(),
aFontMatrix );
}
init( o_rRenderState,
- rStartPoint,
+ rStartPoint,
rState,
rCanvas );
}
- void init( rendering::RenderState& o_rRenderState,
- uno::Reference< rendering::XCanvasFont >& o_rFont,
- const ::basegfx::B2DPoint& rStartPoint,
- const OutDevState& rState,
- const CanvasSharedPtr& rCanvas,
- const ::basegfx::B2DHomMatrix& rTextTransform )
+ void init( rendering::RenderState& o_rRenderState,
+ uno::Reference< rendering::XCanvasFont >& o_rFont,
+ const ::basegfx::B2DPoint& rStartPoint,
+ const OutDevState& rState,
+ const CanvasSharedPtr& rCanvas,
+ const ::basegfx::B2DHomMatrix& rTextTransform )
{
init( o_rRenderState, o_rFont, rStartPoint, rState, rCanvas );
@@ -169,25 +169,25 @@ namespace cppcanvas
rTextTransform );
}
- ::basegfx::B2DPolyPolygon textLinesFromLogicalOffsets( const uno::Sequence< double >& rOffsets,
- const tools::TextLineInfo& rTextLineInfo )
+ ::basegfx::B2DPolyPolygon textLinesFromLogicalOffsets( const uno::Sequence< double >& rOffsets,
+ const tools::TextLineInfo& rTextLineInfo )
{
- return tools::createTextLinesPolyPolygon(
- 0.0,
+ return tools::createTextLinesPolyPolygon(
+ 0.0,
// extract character cell furthest to the right
- *(::std::max_element(
+ *(::std::max_element(
rOffsets.getConstArray(),
- rOffsets.getConstArray() + rOffsets.getLength() )),
+ rOffsets.getConstArray() + rOffsets.getLength() )),
rTextLineInfo );
}
- uno::Sequence< double > setupDXArray( const sal_Int32* pCharWidths,
- sal_Int32 nLen,
+ uno::Sequence< double > setupDXArray( const sal_Int32* pCharWidths,
+ sal_Int32 nLen,
const OutDevState& rState )
{
// convert character widths from logical units
uno::Sequence< double > aCharWidthSeq( nLen );
- double* pOutputWidths( aCharWidthSeq.getArray() );
+ double* pOutputWidths( aCharWidthSeq.getArray() );
// #143885# maintain (nearly) full precision of DX
// array, by circumventing integer-based
@@ -198,29 +198,29 @@ namespace cppcanvas
// TODO(F2): use correct scale direction
*pOutputWidths++ = *pCharWidths++ * nScale;
}
-
+
return aCharWidthSeq;
}
- uno::Sequence< double > setupDXArray( const ::String& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- VirtualDevice& rVDev,
+ uno::Sequence< double > setupDXArray( const ::String& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ VirtualDevice& rVDev,
const OutDevState& rState )
{
// no external DX array given, create one from given
// string
::boost::scoped_array< sal_Int32 > pCharWidths( new sal_Int32[nLen] );
- rVDev.GetTextArray( rText, pCharWidths.get(),
- static_cast<USHORT>(nStartPos),
+ rVDev.GetTextArray( rText, pCharWidths.get(),
+ static_cast<USHORT>(nStartPos),
static_cast<USHORT>(nLen) );
return setupDXArray( pCharWidths.get(), nLen, rState );
}
- ::basegfx::B2DPoint adaptStartPoint( const ::basegfx::B2DPoint& rStartPoint,
- const OutDevState& rState,
+ ::basegfx::B2DPoint adaptStartPoint( const ::basegfx::B2DPoint& rStartPoint,
+ const OutDevState& rState,
const uno::Sequence< double >& rOffsets )
{
::basegfx::B2DPoint aLocalPoint( rStartPoint );
@@ -241,27 +241,27 @@ namespace cppcanvas
return aLocalPoint;
}
-
+
/** Perform common setup for array text actions
This method creates the XTextLayout object and
initializes it, e.g. with the logical advancements.
*/
- void initArrayAction( rendering::RenderState& o_rRenderState,
- uno::Reference< rendering::XTextLayout >& o_rTextLayout,
- const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix* pTextTransform )
+ void initArrayAction( rendering::RenderState& o_rRenderState,
+ uno::Reference< rendering::XTextLayout >& o_rTextLayout,
+ const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix* pTextTransform )
{
ENSURE_OR_THROW( rOffsets.getLength(),
"::cppcanvas::internal::initArrayAction(): zero-length DX array" );
- const ::basegfx::B2DPoint aLocalStartPoint(
+ const ::basegfx::B2DPoint aLocalStartPoint(
adaptStartPoint( rStartPoint, rState, rOffsets ) );
uno::Reference< rendering::XCanvasFont > xFont( rState.xFont );
@@ -271,9 +271,9 @@ namespace cppcanvas
else
init( o_rRenderState, xFont, aLocalStartPoint, rState, rCanvas );
- o_rTextLayout = xFont->createTextLayout(
- rendering::StringContext( rText, nStartPos, nLen ),
- rState.textDirection,
+ o_rTextLayout = xFont->createTextLayout(
+ rendering::StringContext( rText, nStartPos, nLen ),
+ rState.textDirection,
0 );
ENSURE_OR_THROW( o_rTextLayout.is(),
@@ -282,31 +282,31 @@ namespace cppcanvas
o_rTextLayout->applyLogicalAdvancements( rOffsets );
}
- double getLineWidth( ::VirtualDevice& rVDev,
- const OutDevState& rState,
+ double getLineWidth( ::VirtualDevice& rVDev,
+ const OutDevState& rState,
const rendering::StringContext& rStringContext )
{
// TODO(F2): use correct scale direction
- const ::basegfx::B2DSize aSize( rVDev.GetTextWidth( rStringContext.Text,
- static_cast<USHORT>(rStringContext.StartPosition),
+ const ::basegfx::B2DSize aSize( rVDev.GetTextWidth( rStringContext.Text,
+ static_cast<USHORT>(rStringContext.StartPosition),
static_cast<USHORT>(rStringContext.Length) ),
0 );
return (rState.mapModeTransform * aSize).getX();
}
- uno::Sequence< double >
- calcSubsetOffsets( rendering::RenderState& io_rRenderState,
- double& o_rMinPos,
- double& o_rMaxPos,
- const uno::Reference< rendering::XTextLayout >& rOrigTextLayout,
- const ::cppcanvas::internal::Action::Subset& rSubset )
+ uno::Sequence< double >
+ calcSubsetOffsets( rendering::RenderState& io_rRenderState,
+ double& o_rMinPos,
+ double& o_rMaxPos,
+ const uno::Reference< rendering::XTextLayout >& rOrigTextLayout,
+ const ::cppcanvas::internal::Action::Subset& rSubset )
{
ENSURE_OR_THROW( rSubset.mnSubsetEnd > rSubset.mnSubsetBegin,
"::cppcanvas::internal::calcSubsetOffsets(): invalid subset range range" );
uno::Sequence< double > aOrigOffsets( rOrigTextLayout->queryLogicalAdvancements() );
- const double* pOffsets( aOrigOffsets.getConstArray() );
+ const double* pOffsets( aOrigOffsets.getConstArray() );
ENSURE_OR_THROW( aOrigOffsets.getLength() >= rSubset.mnSubsetEnd,
"::cppcanvas::internal::calcSubsetOffsets(): invalid subset range range" );
@@ -332,11 +332,11 @@ namespace cppcanvas
// starting with the second character (the first is
// assumed to have output position 0), correct begin
// iterator.
- const double nMaxPos(
- *(::std::max_element( pOffsets + (rSubset.mnSubsetBegin <= 0 ?
+ const double nMaxPos(
+ *(::std::max_element( pOffsets + (rSubset.mnSubsetBegin <= 0 ?
0 : rSubset.mnSubsetBegin-1),
pOffsets + rSubset.mnSubsetEnd )) );
-
+
// adapt render state, to move text output to given offset
// -------------------------------------------------------
@@ -367,10 +367,10 @@ namespace cppcanvas
// reduce DX array to given substring
// ----------------------------------
-
- const sal_Int32 nNewElements( rSubset.mnSubsetEnd - rSubset.mnSubsetBegin );
+
+ const sal_Int32 nNewElements( rSubset.mnSubsetEnd - rSubset.mnSubsetBegin );
uno::Sequence< double > aAdaptedOffsets( nNewElements );
- double* pAdaptedOffsets( aAdaptedOffsets.getArray() );
+ double* pAdaptedOffsets( aAdaptedOffsets.getArray() );
// move to new output position (subtract nMinPos,
// which is the new '0' position), copy only the range
@@ -379,7 +379,7 @@ namespace cppcanvas
pOffsets + rSubset.mnSubsetEnd,
pAdaptedOffsets,
::boost::bind( ::std::minus<double>(),
- _1,
+ _1,
nMinPos ) );
o_rMinPos = nMinPos;
@@ -388,18 +388,18 @@ namespace cppcanvas
return aAdaptedOffsets;
}
- uno::Reference< rendering::XTextLayout >
- createSubsetLayout( const rendering::StringContext& rOrigContext,
- const ::cppcanvas::internal::Action::Subset& rSubset,
- const uno::Reference< rendering::XTextLayout >& rOrigTextLayout )
+ uno::Reference< rendering::XTextLayout >
+ createSubsetLayout( const rendering::StringContext& rOrigContext,
+ const ::cppcanvas::internal::Action::Subset& rSubset,
+ const uno::Reference< rendering::XTextLayout >& rOrigTextLayout )
{
// create temporary new text layout with subset string
// ---------------------------------------------------
- const sal_Int32 nNewStartPos( rOrigContext.StartPosition + ::std::min(
+ const sal_Int32 nNewStartPos( rOrigContext.StartPosition + ::std::min(
rSubset.mnSubsetBegin, rOrigContext.Length-1 ) );
- const sal_Int32 nNewLength( ::std::max(
- ::std::min(
+ const sal_Int32 nNewLength( ::std::max(
+ ::std::min(
rSubset.mnSubsetEnd - rSubset.mnSubsetBegin,
rOrigContext.Length ),
sal_Int32( 0 ) ) );
@@ -408,7 +408,7 @@ namespace cppcanvas
nNewStartPos,
nNewLength );
- uno::Reference< rendering::XTextLayout > xTextLayout(
+ uno::Reference< rendering::XTextLayout > xTextLayout(
rOrigTextLayout->getFont()->createTextLayout( aContext,
rOrigTextLayout->getMainTextDirection(),
0 ),
@@ -436,12 +436,12 @@ namespace cppcanvas
@param rSubset
Subset to prepare
*/
- void createSubsetLayout( uno::Reference< rendering::XTextLayout >& io_rTextLayout,
- rendering::RenderState& io_rRenderState,
- double& o_rMinPos,
- double& o_rMaxPos,
- const ::basegfx::B2DHomMatrix& rTransformation,
- const Action::Subset& rSubset )
+ void createSubsetLayout( uno::Reference< rendering::XTextLayout >& io_rTextLayout,
+ rendering::RenderState& io_rRenderState,
+ double& o_rMinPos,
+ double& o_rMaxPos,
+ const ::basegfx::B2DHomMatrix& rTransformation,
+ const Action::Subset& rSubset )
{
::canvas::tools::prependToRenderState(io_rRenderState, rTransformation);
@@ -470,7 +470,7 @@ namespace cppcanvas
if( xTextLayout.is() )
{
- xTextLayout->applyLogicalAdvancements(
+ xTextLayout->applyLogicalAdvancements(
calcSubsetOffsets( io_rRenderState,
o_rMinPos,
o_rMaxPos,
@@ -503,14 +503,14 @@ namespace cppcanvas
part of the text effect (the text itself and the means
to render it are unknown to this method)
*/
- bool renderEffectText( const TextRenderer& rRenderer,
- const rendering::RenderState& rRenderState,
- const rendering::ViewState& /*rViewState*/,
- const uno::Reference< rendering::XCanvas >& xCanvas,
- const ::Color& rShadowColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rReliefOffset )
+ bool renderEffectText( const TextRenderer& rRenderer,
+ const rendering::RenderState& rRenderState,
+ const rendering::ViewState& /*rViewState*/,
+ const uno::Reference< rendering::XCanvas >& xCanvas,
+ const ::Color& rShadowColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rReliefOffset )
{
::Color aEmptyColor( COL_AUTO );
uno::Reference<rendering::XColorSpace> xColorSpace(
@@ -527,7 +527,7 @@ namespace cppcanvas
::canvas::tools::appendToRenderState(aShadowState, aTranslate);
- aShadowState.DeviceColor =
+ aShadowState.DeviceColor =
::vcl::unotools::colorToDoubleSequence( rShadowColor,
xColorSpace );
@@ -545,7 +545,7 @@ namespace cppcanvas
::canvas::tools::appendToRenderState(aReliefState, aTranslate);
- aReliefState.DeviceColor =
+ aReliefState.DeviceColor =
::vcl::unotools::colorToDoubleSequence( rReliefColor,
xColorSpace );
@@ -559,26 +559,26 @@ namespace cppcanvas
}
- ::basegfx::B2DRange calcEffectTextBounds( const ::basegfx::B2DRange& rTextBounds,
- const ::basegfx::B2DRange& rLineBounds,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::basegfx::B2DSize& rShadowOffset,
- const rendering::RenderState& rRenderState,
+ ::basegfx::B2DRange calcEffectTextBounds( const ::basegfx::B2DRange& rTextBounds,
+ const ::basegfx::B2DRange& rLineBounds,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const rendering::RenderState& rRenderState,
const rendering::ViewState& rViewState )
{
::basegfx::B2DRange aBounds( rTextBounds );
// add extends of text lines
aBounds.expand( rLineBounds );
-
+
// TODO(Q3): Provide this functionality at the B2DRange
::basegfx::B2DRange aTotalBounds( aBounds );
- aTotalBounds.expand(
+ aTotalBounds.expand(
::basegfx::B2DRange( aBounds.getMinX() + rReliefOffset.getX(),
aBounds.getMinY() + rReliefOffset.getY(),
aBounds.getMaxX() + rReliefOffset.getX(),
aBounds.getMaxY() + rReliefOffset.getY() ) );
- aTotalBounds.expand(
+ aTotalBounds.expand(
::basegfx::B2DRange( aBounds.getMinX() + rShadowOffset.getX(),
aBounds.getMinY() + rShadowOffset.getY(),
aBounds.getMaxX() + rShadowOffset.getX(),
@@ -589,37 +589,37 @@ namespace cppcanvas
rRenderState );
}
- void initEffectLinePolyPolygon( ::basegfx::B2DSize& o_rOverallSize,
- uno::Reference< rendering::XPolyPolygon2D >& o_rTextLines,
- const CanvasSharedPtr& rCanvas,
- const uno::Sequence< double >& rOffsets,
- const tools::TextLineInfo rLineInfo )
+ void initEffectLinePolyPolygon( ::basegfx::B2DSize& o_rOverallSize,
+ uno::Reference< rendering::XPolyPolygon2D >& o_rTextLines,
+ const CanvasSharedPtr& rCanvas,
+ const uno::Sequence< double >& rOffsets,
+ const tools::TextLineInfo rLineInfo )
{
- const ::basegfx::B2DPolyPolygon aPoly(
+ const ::basegfx::B2DPolyPolygon aPoly(
textLinesFromLogicalOffsets(
rOffsets,
rLineInfo ) );
o_rOverallSize = ::basegfx::tools::getRange( aPoly ).getRange();
- o_rTextLines = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
+ o_rTextLines = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
rCanvas->getUNOCanvas()->getDevice(),
aPoly );
}
- void initEffectLinePolyPolygon( ::basegfx::B2DSize& o_rOverallSize,
- uno::Reference< rendering::XPolyPolygon2D >& o_rTextLines,
- const CanvasSharedPtr& rCanvas,
+ void initEffectLinePolyPolygon( ::basegfx::B2DSize& o_rOverallSize,
+ uno::Reference< rendering::XPolyPolygon2D >& o_rTextLines,
+ const CanvasSharedPtr& rCanvas,
double nLineWidth,
- const tools::TextLineInfo rLineInfo )
+ const tools::TextLineInfo rLineInfo )
{
- const ::basegfx::B2DPolyPolygon aPoly(
- tools::createTextLinesPolyPolygon( 0.0, nLineWidth,
+ const ::basegfx::B2DPolyPolygon aPoly(
+ tools::createTextLinesPolyPolygon( 0.0, nLineWidth,
rLineInfo ) );
o_rOverallSize = ::basegfx::tools::getRange( aPoly ).getRange();
- o_rTextLines = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
+ o_rTextLines = ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
rCanvas->getUNOCanvas()->getDevice(),
aPoly );
}
@@ -628,30 +628,30 @@ namespace cppcanvas
// -------------------------------------------------------------------------
class TextAction : public Action, private ::boost::noncopyable
- {
- public:
- TextAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rString,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
-
- TextAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rString,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform );
+ {
+ public:
+ TextAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rString,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
+
+ TextAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rString,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
@@ -663,48 +663,48 @@ namespace cppcanvas
// TextActions, maybe using maOffsets for the
// translation.
- uno::Reference< rendering::XCanvasFont > mxFont;
- const rendering::StringContext maStringContext;
- const CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
- const sal_Int8 maTextDirection;
+ uno::Reference< rendering::XCanvasFont > mxFont;
+ const rendering::StringContext maStringContext;
+ const CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
+ const sal_Int8 maTextDirection;
};
- TextAction::TextAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rString,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState ) :
+ TextAction::TextAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rString,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState ) :
mxFont( rState.xFont ),
maStringContext( rString, nStartPos, nLen ),
mpCanvas( rCanvas ),
maState(),
maTextDirection( rState.textDirection )
{
- init( maState, mxFont,
- rStartPoint,
+ init( maState, mxFont,
+ rStartPoint,
rState, rCanvas );
ENSURE_OR_THROW( mxFont.is(),
"::cppcanvas::internal::TextAction(): Invalid font" );
}
- TextAction::TextAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rString,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform ) :
+ TextAction::TextAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rString,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform ) :
mxFont( rState.xFont ),
maStringContext( rString, nStartPos, nLen ),
mpCanvas( rCanvas ),
maState(),
maTextDirection( rState.textDirection )
{
- init( maState, mxFont,
- rStartPoint,
+ init( maState, mxFont,
+ rStartPoint,
rState, rCanvas, rTextTransform );
ENSURE_OR_THROW( mxFont.is(),
@@ -725,8 +725,8 @@ namespace cppcanvas
return true;
}
- bool TextAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& /*rSubset*/ ) const
+ bool TextAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& /*rSubset*/ ) const
{
OSL_ENSURE( false,
"TextAction::render(): Subset not supported by this object" );
@@ -743,9 +743,9 @@ namespace cppcanvas
// create XTextLayout, to have the
// XTextLayout::queryTextBounds() method available
uno::Reference< rendering::XTextLayout > xTextLayout(
- mxFont->createTextLayout(
+ mxFont->createTextLayout(
maStringContext,
- maTextDirection,
+ maTextDirection,
0 ) );
rendering::RenderState aLocalState( maState );
@@ -757,8 +757,8 @@ namespace cppcanvas
aLocalState );
}
- ::basegfx::B2DRange TextAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& /*rSubset*/ ) const
+ ::basegfx::B2DRange TextAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& /*rSubset*/ ) const
{
OSL_ENSURE( false,
"TextAction::getBounds(): Subset not supported by this object" );
@@ -782,49 +782,49 @@ namespace cppcanvas
// -------------------------------------------------------------------------
- class EffectTextAction :
- public Action,
+ class EffectTextAction :
+ public Action,
public TextRenderer,
private ::boost::noncopyable
- {
- public:
- EffectTextAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::rtl::OUString& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
-
- EffectTextAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::rtl::OUString& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform );
+ {
+ public:
+ EffectTextAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::rtl::OUString& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
+
+ EffectTextAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::rtl::OUString& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
private:
- /// Interface TextRenderer
+ /// Interface TextRenderer
virtual bool operator()( const rendering::RenderState& rRenderState ) const;
// TODO(P2): This is potentially a real mass object
@@ -834,23 +834,23 @@ namespace cppcanvas
// TextActions, maybe using maOffsets for the
// translation.
- uno::Reference< rendering::XCanvasFont > mxFont;
- const rendering::StringContext maStringContext;
- const CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
- const tools::TextLineInfo maTextLineInfo;
- ::basegfx::B2DSize maLinesOverallSize;
- const double mnLineWidth;
- uno::Reference< rendering::XPolyPolygon2D > mxTextLines;
- const ::basegfx::B2DSize maReliefOffset;
- const ::Color maReliefColor;
- const ::basegfx::B2DSize maShadowOffset;
- const ::Color maShadowColor;
- const sal_Int8 maTextDirection;
+ uno::Reference< rendering::XCanvasFont > mxFont;
+ const rendering::StringContext maStringContext;
+ const CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
+ const tools::TextLineInfo maTextLineInfo;
+ ::basegfx::B2DSize maLinesOverallSize;
+ const double mnLineWidth;
+ uno::Reference< rendering::XPolyPolygon2D > mxTextLines;
+ const ::basegfx::B2DSize maReliefOffset;
+ const ::Color maReliefColor;
+ const ::basegfx::B2DSize maShadowOffset;
+ const ::Color maShadowColor;
+ const sal_Int8 maTextDirection;
};
- EffectTextAction::EffectTextAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
+ EffectTextAction::EffectTextAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
const ::Color& rReliefColor,
const ::basegfx::B2DSize& rShadowOffset,
const ::Color& rShadowColor,
@@ -858,7 +858,7 @@ namespace cppcanvas
sal_Int32 nStartPos,
sal_Int32 nLen,
VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
+ const CanvasSharedPtr& rCanvas,
const OutDevState& rState ) :
mxFont( rState.xFont ),
maStringContext( rText, nStartPos, nLen ),
@@ -880,26 +880,26 @@ namespace cppcanvas
mnLineWidth,
maTextLineInfo );
- init( maState, mxFont,
- rStartPoint,
+ init( maState, mxFont,
+ rStartPoint,
rState, rCanvas );
ENSURE_OR_THROW( mxFont.is() && mxTextLines.is(),
"::cppcanvas::internal::EffectTextAction(): Invalid font or lines" );
}
- EffectTextAction::EffectTextAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::rtl::OUString& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform ) :
+ EffectTextAction::EffectTextAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::rtl::OUString& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform ) :
mxFont( rState.xFont ),
maStringContext( rText, nStartPos, nLen ),
mpCanvas( rCanvas ),
@@ -920,8 +920,8 @@ namespace cppcanvas
mnLineWidth,
maTextLineInfo );
- init( maState, mxFont,
- rStartPoint,
+ init( maState, mxFont,
+ rStartPoint,
rState, rCanvas, rTextTransform );
ENSURE_OR_THROW( mxFont.is() && mxTextLines.is(),
@@ -939,7 +939,7 @@ namespace cppcanvas
rCanvas->drawText( maStringContext, mxFont,
rViewState,
- rRenderState,
+ rRenderState,
maTextDirection );
return true;
@@ -963,8 +963,8 @@ namespace cppcanvas
maReliefOffset );
}
- bool EffectTextAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& /*rSubset*/ ) const
+ bool EffectTextAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& /*rSubset*/ ) const
{
OSL_ENSURE( false,
"EffectTextAction::render(): Subset not supported by this object" );
@@ -981,9 +981,9 @@ namespace cppcanvas
// create XTextLayout, to have the
// XTextLayout::queryTextBounds() method available
uno::Reference< rendering::XTextLayout > xTextLayout(
- mxFont->createTextLayout(
+ mxFont->createTextLayout(
maStringContext,
- maTextDirection,
+ maTextDirection,
0 ) );
rendering::RenderState aLocalState( maState );
@@ -1000,8 +1000,8 @@ namespace cppcanvas
mpCanvas->getViewState() );
}
- ::basegfx::B2DRange EffectTextAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& /*rSubset*/ ) const
+ ::basegfx::B2DRange EffectTextAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& /*rSubset*/ ) const
{
OSL_ENSURE( false,
"EffectTextAction::getBounds(): Subset not supported by this object" );
@@ -1026,32 +1026,32 @@ namespace cppcanvas
// -------------------------------------------------------------------------
class TextArrayAction : public Action, private ::boost::noncopyable
- {
- public:
- TextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rString,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
-
- TextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rString,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform );
+ {
+ public:
+ TextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rString,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
+
+ TextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rString,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
@@ -1063,23 +1063,23 @@ namespace cppcanvas
// TextActions, maybe using maOffsets for the
// translation.
- uno::Reference< rendering::XTextLayout > mxTextLayout;
- const CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
+ uno::Reference< rendering::XTextLayout > mxTextLayout;
+ const CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
};
- TextArrayAction::TextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rString,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState ) :
+ TextArrayAction::TextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rString,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState ) :
mxTextLayout(),
mpCanvas( rCanvas ),
maState()
{
- initArrayAction( maState,
+ initArrayAction( maState,
mxTextLayout,
rStartPoint,
rString,
@@ -1090,19 +1090,19 @@ namespace cppcanvas
rState, NULL );
}
- TextArrayAction::TextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::rtl::OUString& rString,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform ) :
+ TextArrayAction::TextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::rtl::OUString& rString,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform ) :
mxTextLayout(),
mpCanvas( rCanvas ),
maState()
{
- initArrayAction( maState,
+ initArrayAction( maState,
mxTextLayout,
rStartPoint,
rString,
@@ -1124,38 +1124,38 @@ namespace cppcanvas
#ifdef SPECIAL_DEBUG
aLocalState.Clip.clear();
- aLocalState.DeviceColor =
+ aLocalState.DeviceColor =
::vcl::unotools::colorToDoubleSequence( mpCanvas->getUNOCanvas()->getDevice(),
::Color( 0x80FF0000 ) );
if( maState.Clip.is() )
- mpCanvas->getUNOCanvas()->drawPolyPolygon( maState.Clip,
- mpCanvas->getViewState(),
+ mpCanvas->getUNOCanvas()->drawPolyPolygon( maState.Clip,
+ mpCanvas->getViewState(),
aLocalState );
aLocalState.DeviceColor = maState.DeviceColor;
#endif
- mpCanvas->getUNOCanvas()->drawTextLayout( mxTextLayout,
- mpCanvas->getViewState(),
+ mpCanvas->getUNOCanvas()->drawTextLayout( mxTextLayout,
+ mpCanvas->getViewState(),
aLocalState );
return true;
}
- bool TextArrayAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool TextArrayAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::TextArrayAction::render( subset )" );
RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::cppcanvas::internal::TextArrayAction: 0x%X", this );
- rendering::RenderState aLocalState( maState );
- uno::Reference< rendering::XTextLayout > xTextLayout( mxTextLayout );
+ rendering::RenderState aLocalState( maState );
+ uno::Reference< rendering::XTextLayout > xTextLayout( mxTextLayout );
double nDummy0, nDummy1;
createSubsetLayout( xTextLayout,
aLocalState,
- nDummy0,
+ nDummy0,
nDummy1,
rTransformation,
rSubset );
@@ -1163,8 +1163,8 @@ namespace cppcanvas
if( !xTextLayout.is() )
return true; // empty layout, render nothing
- mpCanvas->getUNOCanvas()->drawTextLayout( xTextLayout,
- mpCanvas->getViewState(),
+ mpCanvas->getUNOCanvas()->drawTextLayout( xTextLayout,
+ mpCanvas->getViewState(),
aLocalState );
return true;
@@ -1181,19 +1181,19 @@ namespace cppcanvas
aLocalState );
}
- ::basegfx::B2DRange TextArrayAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange TextArrayAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::TextArrayAction::getBounds( subset )" );
RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::cppcanvas::internal::TextArrayAction: 0x%X", this );
- rendering::RenderState aLocalState( maState );
- uno::Reference< rendering::XTextLayout > xTextLayout( mxTextLayout );
+ rendering::RenderState aLocalState( maState );
+ uno::Reference< rendering::XTextLayout > xTextLayout( mxTextLayout );
double nDummy0, nDummy1;
createSubsetLayout( xTextLayout,
aLocalState,
- nDummy0,
+ nDummy0,
nDummy1,
rTransformation,
rSubset );
@@ -1217,52 +1217,52 @@ namespace cppcanvas
// -------------------------------------------------------------------------
- class EffectTextArrayAction :
- public Action,
+ class EffectTextArrayAction :
+ public Action,
public TextRenderer,
private ::boost::noncopyable
- {
- public:
- EffectTextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::rtl::OUString& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
- EffectTextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::rtl::OUString& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform );
+ {
+ public:
+ EffectTextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::rtl::OUString& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
+ EffectTextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::rtl::OUString& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
private:
// TextRenderer interface
virtual bool operator()( const rendering::RenderState& rRenderState ) const;
-
+
// TODO(P2): This is potentially a real mass object
// (every character might be a separate TextAction),
// thus, make it as lightweight as possible. For
@@ -1270,30 +1270,30 @@ namespace cppcanvas
// TextActions, maybe using maOffsets for the
// translation.
- uno::Reference< rendering::XTextLayout > mxTextLayout;
- const CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
- const tools::TextLineInfo maTextLineInfo;
- ::basegfx::B2DSize maLinesOverallSize;
- uno::Reference< rendering::XPolyPolygon2D > mxTextLines;
- const ::basegfx::B2DSize maReliefOffset;
- const ::Color maReliefColor;
- const ::basegfx::B2DSize maShadowOffset;
- const ::Color maShadowColor;
+ uno::Reference< rendering::XTextLayout > mxTextLayout;
+ const CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
+ const tools::TextLineInfo maTextLineInfo;
+ ::basegfx::B2DSize maLinesOverallSize;
+ uno::Reference< rendering::XPolyPolygon2D > mxTextLines;
+ const ::basegfx::B2DSize maReliefOffset;
+ const ::Color maReliefColor;
+ const ::basegfx::B2DSize maShadowOffset;
+ const ::Color maShadowColor;
};
- EffectTextArrayAction::EffectTextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::rtl::OUString& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState ) :
+ EffectTextArrayAction::EffectTextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::rtl::OUString& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState ) :
mxTextLayout(),
mpCanvas( rCanvas ),
maState(),
@@ -1311,7 +1311,7 @@ namespace cppcanvas
rOffsets,
maTextLineInfo );
- initArrayAction( maState,
+ initArrayAction( maState,
mxTextLayout,
rStartPoint,
rText,
@@ -1322,19 +1322,19 @@ namespace cppcanvas
rState, NULL );
}
- EffectTextArrayAction::EffectTextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::rtl::OUString& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const uno::Sequence< double >& rOffsets,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform ) :
+ EffectTextArrayAction::EffectTextArrayAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::rtl::OUString& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const uno::Sequence< double >& rOffsets,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform ) :
mxTextLayout(),
mpCanvas( rCanvas ),
maState(),
@@ -1352,7 +1352,7 @@ namespace cppcanvas
rOffsets,
maTextLineInfo );
- initArrayAction( maState,
+ initArrayAction( maState,
mxTextLayout,
rStartPoint,
rText,
@@ -1360,7 +1360,7 @@ namespace cppcanvas
nLen,
rOffsets,
rCanvas,
- rState,
+ rState,
&rTextTransform );
}
@@ -1373,7 +1373,7 @@ namespace cppcanvas
rViewState,
rRenderState );
- rCanvas->drawTextLayout( mxTextLayout,
+ rCanvas->drawTextLayout( mxTextLayout,
rViewState,
rRenderState );
@@ -1401,10 +1401,10 @@ namespace cppcanvas
class EffectTextArrayRenderHelper : public TextRenderer
{
public:
- EffectTextArrayRenderHelper( const uno::Reference< rendering::XCanvas >& rCanvas,
- const uno::Reference< rendering::XTextLayout >& rTextLayout,
+ EffectTextArrayRenderHelper( const uno::Reference< rendering::XCanvas >& rCanvas,
+ const uno::Reference< rendering::XTextLayout >& rTextLayout,
const uno::Reference< rendering::XPolyPolygon2D >& rLinePolygon,
- const rendering::ViewState& rViewState ) :
+ const rendering::ViewState& rViewState ) :
mrCanvas( rCanvas ),
mrTextLayout( rTextLayout ),
mrLinePolygon( rLinePolygon ),
@@ -1418,8 +1418,8 @@ namespace cppcanvas
mrCanvas->fillPolyPolygon( mrLinePolygon,
mrViewState,
rRenderState );
-
- mrCanvas->drawTextLayout( mrTextLayout,
+
+ mrCanvas->drawTextLayout( mrTextLayout,
mrViewState,
rRenderState );
@@ -1427,19 +1427,19 @@ namespace cppcanvas
}
private:
- const uno::Reference< rendering::XCanvas >& mrCanvas;
- const uno::Reference< rendering::XTextLayout >& mrTextLayout;
- const uno::Reference< rendering::XPolyPolygon2D >& mrLinePolygon;
- const rendering::ViewState& mrViewState;
+ const uno::Reference< rendering::XCanvas >& mrCanvas;
+ const uno::Reference< rendering::XTextLayout >& mrTextLayout;
+ const uno::Reference< rendering::XPolyPolygon2D >& mrLinePolygon;
+ const rendering::ViewState& mrViewState;
};
- bool EffectTextArrayAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool EffectTextArrayAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::EffectTextArrayAction::render( subset )" );
RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::cppcanvas::internal::EffectTextArrayAction: 0x%X", this );
- rendering::RenderState aLocalState( maState );
+ rendering::RenderState aLocalState( maState );
uno::Reference< rendering::XTextLayout > xTextLayout( mxTextLayout );
const geometry::RealRectangle2D aTextBounds( mxTextLayout->queryTextBounds() );
@@ -1448,7 +1448,7 @@ namespace cppcanvas
createSubsetLayout( xTextLayout,
aLocalState,
- nMinPos,
+ nMinPos,
nMaxPos,
rTransformation,
rSubset );
@@ -1461,20 +1461,20 @@ namespace cppcanvas
// ===================================
uno::Reference< rendering::XCanvas > xCanvas( mpCanvas->getUNOCanvas() );
- const rendering::ViewState& rViewState( mpCanvas->getViewState() );
-
+ const rendering::ViewState& rViewState( mpCanvas->getViewState() );
+
uno::Reference< rendering::XPolyPolygon2D > xTextLines(
- ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
+ ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
xCanvas->getDevice(),
- tools::createTextLinesPolyPolygon(
+ tools::createTextLinesPolyPolygon(
0.0, nMaxPos - nMinPos,
maTextLineInfo ) ) );
-
+
// render everything
// =================
- return renderEffectText(
+ return renderEffectText(
EffectTextArrayRenderHelper( xCanvas,
xTextLayout,
xTextLines,
@@ -1504,13 +1504,13 @@ namespace cppcanvas
mpCanvas->getViewState() );
}
- ::basegfx::B2DRange EffectTextArrayAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange EffectTextArrayAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::EffectTextArrayAction::getBounds( subset )" );
RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::cppcanvas::internal::EffectTextArrayAction: 0x%X", this );
- rendering::RenderState aLocalState( maState );
+ rendering::RenderState aLocalState( maState );
uno::Reference< rendering::XTextLayout > xTextLayout( mxTextLayout );
const geometry::RealRectangle2D aTextBounds( mxTextLayout->queryTextBounds() );
@@ -1519,7 +1519,7 @@ namespace cppcanvas
createSubsetLayout( xTextLayout,
aLocalState,
- nMinPos,
+ nMinPos,
nMaxPos,
rTransformation,
rSubset );
@@ -1532,10 +1532,10 @@ namespace cppcanvas
// ===================================
const ::basegfx::B2DPolyPolygon aPoly(
- tools::createTextLinesPolyPolygon(
+ tools::createTextLinesPolyPolygon(
0.0, nMaxPos - nMinPos,
maTextLineInfo ) );
-
+
return calcEffectTextBounds( ::basegfx::unotools::b2DRectangleFromRealRectangle2D(
xTextLayout->queryTextBounds() ),
::basegfx::tools::getRange( aPoly ),
@@ -1555,52 +1555,52 @@ namespace cppcanvas
// -------------------------------------------------------------------------
- class OutlineAction :
- public Action,
+ class OutlineAction :
+ public Action,
public TextRenderer,
private ::boost::noncopyable
- {
- public:
- OutlineAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::basegfx::B2DRectangle& rOutlineBounds,
- const uno::Reference< rendering::XPolyPolygon2D >& rTextPoly,
- const ::std::vector< sal_Int32 >& rPolygonGlyphMap,
- const uno::Sequence< double >& rOffsets,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
- OutlineAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::basegfx::B2DRectangle& rOutlineBounds,
- const uno::Reference< rendering::XPolyPolygon2D >& rTextPoly,
- const ::std::vector< sal_Int32 >& rPolygonGlyphMap,
- const uno::Sequence< double >& rOffsets,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform );
+ {
+ public:
+ OutlineAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::basegfx::B2DRectangle& rOutlineBounds,
+ const uno::Reference< rendering::XPolyPolygon2D >& rTextPoly,
+ const ::std::vector< sal_Int32 >& rPolygonGlyphMap,
+ const uno::Sequence< double >& rOffsets,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
+ OutlineAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::basegfx::B2DRectangle& rOutlineBounds,
+ const uno::Reference< rendering::XPolyPolygon2D >& rTextPoly,
+ const ::std::vector< sal_Int32 >& rPolygonGlyphMap,
+ const uno::Sequence< double >& rOffsets,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
private:
// TextRenderer interface
virtual bool operator()( const rendering::RenderState& rRenderState ) const;
-
+
// TODO(P2): This is potentially a real mass object
// (every character might be a separate TextAction),
// thus, make it as lightweight as possible. For
@@ -1608,7 +1608,7 @@ namespace cppcanvas
// TextActions, maybe using maOffsets for the
// translation.
- uno::Reference< rendering::XPolyPolygon2D > mxTextPoly;
+ uno::Reference< rendering::XPolyPolygon2D > mxTextPoly;
/** This vector denotes the index of the start polygon
for the respective glyph sequence.
@@ -1618,20 +1618,20 @@ namespace cppcanvas
maPolygonGlyphMap[i+1] ). Note that this is wrong
for BiDi
*/
- const ::std::vector< sal_Int32 > maPolygonGlyphMap;
- const uno::Sequence< double > maOffsets;
- const CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
- double mnOutlineWidth;
- const uno::Sequence< double > maFillColor;
- const tools::TextLineInfo maTextLineInfo;
- ::basegfx::B2DSize maLinesOverallSize;
- const ::basegfx::B2DRectangle maOutlineBounds;
- uno::Reference< rendering::XPolyPolygon2D > mxTextLines;
- const ::basegfx::B2DSize maReliefOffset;
- const ::Color maReliefColor;
- const ::basegfx::B2DSize maShadowOffset;
- const ::Color maShadowColor;
+ const ::std::vector< sal_Int32 > maPolygonGlyphMap;
+ const uno::Sequence< double > maOffsets;
+ const CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
+ double mnOutlineWidth;
+ const uno::Sequence< double > maFillColor;
+ const tools::TextLineInfo maTextLineInfo;
+ ::basegfx::B2DSize maLinesOverallSize;
+ const ::basegfx::B2DRectangle maOutlineBounds;
+ uno::Reference< rendering::XPolyPolygon2D > mxTextLines;
+ const ::basegfx::B2DSize maReliefOffset;
+ const ::Color maReliefColor;
+ const ::basegfx::B2DSize maShadowOffset;
+ const ::Color maShadowColor;
};
double calcOutlineWidth( const OutDevState& rState,
@@ -1640,32 +1640,32 @@ namespace cppcanvas
const ::basegfx::B2DSize aFontSize( 0,
rVDev.GetFont().GetHeight() / 64.0 );
- const double nOutlineWidth(
+ const double nOutlineWidth(
(rState.mapModeTransform * aFontSize).getY() );
return nOutlineWidth < 1.0 ? 1.0 : nOutlineWidth;
}
- OutlineAction::OutlineAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::basegfx::B2DRectangle& rOutlineBounds,
- const uno::Reference< rendering::XPolyPolygon2D >& rTextPoly,
- const ::std::vector< sal_Int32 >& rPolygonGlyphMap,
- const uno::Sequence< double >& rOffsets,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState ) :
+ OutlineAction::OutlineAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::basegfx::B2DRectangle& rOutlineBounds,
+ const uno::Reference< rendering::XPolyPolygon2D >& rTextPoly,
+ const ::std::vector< sal_Int32 >& rPolygonGlyphMap,
+ const uno::Sequence< double >& rOffsets,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState ) :
mxTextPoly( rTextPoly ),
maPolygonGlyphMap( rPolygonGlyphMap ),
maOffsets( rOffsets ),
mpCanvas( rCanvas ),
maState(),
mnOutlineWidth( calcOutlineWidth(rState,rVDev) ),
- maFillColor(
- ::vcl::unotools::colorToDoubleSequence(
+ maFillColor(
+ ::vcl::unotools::colorToDoubleSequence(
::Color( COL_WHITE ),
rCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace() )),
maTextLineInfo( tools::createTextLineInfo( rVDev, rState ) ),
@@ -1684,31 +1684,31 @@ namespace cppcanvas
maTextLineInfo );
init( maState,
- rStartPoint,
+ rStartPoint,
rState,
rCanvas );
}
- OutlineAction::OutlineAction( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
- const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const ::basegfx::B2DRectangle& rOutlineBounds,
- const uno::Reference< rendering::XPolyPolygon2D >& rTextPoly,
- const ::std::vector< sal_Int32 >& rPolygonGlyphMap,
- const uno::Sequence< double >& rOffsets,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const ::basegfx::B2DHomMatrix& rTextTransform ) :
+ OutlineAction::OutlineAction( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::basegfx::B2DSize& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::basegfx::B2DRectangle& rOutlineBounds,
+ const uno::Reference< rendering::XPolyPolygon2D >& rTextPoly,
+ const ::std::vector< sal_Int32 >& rPolygonGlyphMap,
+ const uno::Sequence< double >& rOffsets,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const ::basegfx::B2DHomMatrix& rTextTransform ) :
mxTextPoly( rTextPoly ),
maPolygonGlyphMap( rPolygonGlyphMap ),
maOffsets( rOffsets ),
mpCanvas( rCanvas ),
maState(),
mnOutlineWidth( calcOutlineWidth(rState,rVDev) ),
- maFillColor(
+ maFillColor(
::vcl::unotools::colorToDoubleSequence(
::Color( COL_WHITE ),
rCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace() )),
@@ -1728,7 +1728,7 @@ namespace cppcanvas
maTextLineInfo );
init( maState,
- rStartPoint,
+ rStartPoint,
rState,
rCanvas,
rTextTransform );
@@ -1736,7 +1736,7 @@ namespace cppcanvas
bool OutlineAction::operator()( const rendering::RenderState& rRenderState ) const
{
- const rendering::ViewState& rViewState( mpCanvas->getViewState() );
+ const rendering::ViewState& rViewState( mpCanvas->getViewState() );
const uno::Reference< rendering::XCanvas >& rCanvas( mpCanvas->getUNOCanvas() );
rendering::StrokeAttributes aStrokeAttributes;
@@ -1753,12 +1753,12 @@ namespace cppcanvas
// TODO(P1): implement caching
// background of text
- rCanvas->fillPolyPolygon( mxTextPoly,
+ rCanvas->fillPolyPolygon( mxTextPoly,
rViewState,
aLocalState );
-
+
// border line of text
- rCanvas->strokePolyPolygon( mxTextPoly,
+ rCanvas->strokePolyPolygon( mxTextPoly,
rViewState,
rRenderState,
aStrokeAttributes );
@@ -1797,13 +1797,13 @@ namespace cppcanvas
class OutlineTextArrayRenderHelper : public TextRenderer
{
public:
- OutlineTextArrayRenderHelper( const uno::Reference< rendering::XCanvas >& rCanvas,
+ OutlineTextArrayRenderHelper( const uno::Reference< rendering::XCanvas >& rCanvas,
const uno::Reference< rendering::XPolyPolygon2D >& rTextPolygon,
const uno::Reference< rendering::XPolyPolygon2D >& rLinePolygon,
- const rendering::ViewState& rViewState,
- double nOutlineWidth ) :
- maFillColor(
- ::vcl::unotools::colorToDoubleSequence(
+ const rendering::ViewState& rViewState,
+ double nOutlineWidth ) :
+ maFillColor(
+ ::vcl::unotools::colorToDoubleSequence(
::Color( COL_WHITE ),
rCanvas->getDevice()->getDeviceColorSpace() )),
mnOutlineWidth( nOutlineWidth ),
@@ -1831,12 +1831,12 @@ namespace cppcanvas
// TODO(P1): implement caching
// background of text
- mrCanvas->fillPolyPolygon( mrTextPolygon,
+ mrCanvas->fillPolyPolygon( mrTextPolygon,
mrViewState,
aLocalState );
-
+
// border line of text
- mrCanvas->strokePolyPolygon( mrTextPolygon,
+ mrCanvas->strokePolyPolygon( mrTextPolygon,
mrViewState,
rRenderState,
aStrokeAttributes );
@@ -1855,16 +1855,16 @@ namespace cppcanvas
}
private:
- const uno::Sequence< double > maFillColor;
- double mnOutlineWidth;
- const uno::Reference< rendering::XCanvas >& mrCanvas;
- const uno::Reference< rendering::XPolyPolygon2D >& mrTextPolygon;
- const uno::Reference< rendering::XPolyPolygon2D >& mrLinePolygon;
- const rendering::ViewState& mrViewState;
+ const uno::Sequence< double > maFillColor;
+ double mnOutlineWidth;
+ const uno::Reference< rendering::XCanvas >& mrCanvas;
+ const uno::Reference< rendering::XPolyPolygon2D >& mrTextPolygon;
+ const uno::Reference< rendering::XPolyPolygon2D >& mrLinePolygon;
+ const rendering::ViewState& mrViewState;
};
- bool OutlineAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool OutlineAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::OutlineAction::render( subset )" );
RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::cppcanvas::internal::OutlineAction: 0x%X", this );
@@ -1902,8 +1902,8 @@ namespace cppcanvas
// render everything
// =================
- return renderEffectText(
- OutlineTextArrayRenderHelper(
+ return renderEffectText(
+ OutlineTextArrayRenderHelper(
xCanvas,
mnOutlineWidth,
xTextLayout,
@@ -1934,8 +1934,8 @@ namespace cppcanvas
mpCanvas->getViewState() );
}
- ::basegfx::B2DRange OutlineAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& /*rSubset*/ ) const
+ ::basegfx::B2DRange OutlineAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& /*rSubset*/ ) const
{
OSL_ENSURE( false,
"OutlineAction::getBounds(): Subset not yet supported by this object" );
@@ -1962,19 +1962,19 @@ namespace cppcanvas
text, and creates a properly setup OutlineAction from
it.
*/
- ActionSharedPtr createOutline( const ::basegfx::B2DPoint& rStartPoint,
- const ::basegfx::B2DSize& rReliefOffset,
- const ::Color& rReliefColor,
+ ActionSharedPtr createOutline( const ::basegfx::B2DPoint& rStartPoint,
+ const ::basegfx::B2DSize& rReliefOffset,
+ const ::Color& rReliefColor,
const ::basegfx::B2DSize& rShadowOffset,
- const ::Color& rShadowColor,
- const String& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const sal_Int32* pDXArray,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const Renderer::Parameters& rParms )
+ const ::Color& rShadowColor,
+ const String& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const sal_Int32* pDXArray,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const Renderer::Parameters& rParms )
{
// operate on raw DX array here (in logical coordinate
// system), to have a higher resolution
@@ -1989,14 +1989,14 @@ namespace cppcanvas
::Font aUnrotatedFont( aOrigFont );
aUnrotatedFont.SetOrientation(0);
rVDev.SetFont( aUnrotatedFont );
-
+
// TODO(F3): Don't understand parameter semantics of
// GetTextOutlines()
::basegfx::B2DPolyPolygon aResultingPolyPolygon;
PolyPolyVector aVCLPolyPolyVector;
const bool bHaveOutlines( rVDev.GetTextOutlines( aVCLPolyPolyVector, rText,
static_cast<USHORT>(nStartPos),
- static_cast<USHORT>(nStartPos),
+ static_cast<USHORT>(nStartPos),
static_cast<USHORT>(nLen),
TRUE, 0, pDXArray ) );
rVDev.SetFont(aOrigFont);
@@ -2012,12 +2012,12 @@ namespace cppcanvas
// remove offsetting from mapmode transformation
// (outline polygons must stay at origin, only need to
// be scaled)
- ::basegfx::B2DHomMatrix aMapModeTransform(
+ ::basegfx::B2DHomMatrix aMapModeTransform(
rState.mapModeTransform );
aMapModeTransform.set(0,2, 0.0);
aMapModeTransform.set(1,2, 0.0);
- PolyPolyVector::const_iterator aIter( aVCLPolyPolyVector.begin() );
+ PolyPolyVector::const_iterator aIter( aVCLPolyPolyVector.begin() );
const PolyPolyVector::const_iterator aEnd( aVCLPolyPolyVector.end() );
for( ; aIter!= aEnd; ++aIter )
{
@@ -2066,16 +2066,16 @@ namespace cppcanvas
rVDev,
rState ));
const uno::Reference< rendering::XPolyPolygon2D > xTextPoly(
- ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
- rCanvas->getUNOCanvas()->getDevice(),
+ ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
+ rCanvas->getUNOCanvas()->getDevice(),
aResultingPolyPolygon ) );
if( rParms.maTextTransformation.isValid() )
{
- return ActionSharedPtr(
- new OutlineAction(
+ return ActionSharedPtr(
+ new OutlineAction(
rStartPoint,
- rReliefOffset,
+ rReliefOffset,
rReliefColor,
rShadowOffset,
rShadowColor,
@@ -2084,16 +2084,16 @@ namespace cppcanvas
aPolygonGlyphMap,
aCharWidthSeq,
rVDev,
- rCanvas,
+ rCanvas,
rState,
rParms.maTextTransformation.getValue() ) );
}
else
{
- return ActionSharedPtr(
- new OutlineAction(
+ return ActionSharedPtr(
+ new OutlineAction(
rStartPoint,
- rReliefOffset,
+ rReliefOffset,
rReliefColor,
rShadowOffset,
rShadowColor,
@@ -2102,50 +2102,50 @@ namespace cppcanvas
aPolygonGlyphMap,
aCharWidthSeq,
rVDev,
- rCanvas,
- rState ) );
+ rCanvas,
+ rState ) );
}
}
} // namespace
-
+
// ---------------------------------------------------------------------------------
- ActionSharedPtr TextActionFactory::createTextAction( const ::Point& rStartPoint,
- const ::Size& rReliefOffset,
- const ::Color& rReliefColor,
- const ::Size& rShadowOffset,
- const ::Color& rShadowColor,
- const String& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const sal_Int32* pDXArray,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const Renderer::Parameters& rParms,
- bool bSubsettable )
+ ActionSharedPtr TextActionFactory::createTextAction( const ::Point& rStartPoint,
+ const ::Size& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::Size& rShadowOffset,
+ const ::Color& rShadowColor,
+ const String& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const sal_Int32* pDXArray,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const Renderer::Parameters& rParms,
+ bool bSubsettable )
{
const ::Size aBaselineOffset( tools::getBaselineOffset( rState,
rVDev ) );
// #143885# maintain (nearly) full precision positioning,
// by circumventing integer-based OutDev-mapping
- const ::basegfx::B2DPoint aStartPoint(
- rState.mapModeTransform *
+ const ::basegfx::B2DPoint aStartPoint(
+ rState.mapModeTransform *
::basegfx::B2DPoint(rStartPoint.X() + aBaselineOffset.Width(),
rStartPoint.Y() + aBaselineOffset.Height()) );
- const ::basegfx::B2DSize aReliefOffset(
+ const ::basegfx::B2DSize aReliefOffset(
rState.mapModeTransform * ::vcl::unotools::b2DSizeFromSize( rReliefOffset ) );
- const ::basegfx::B2DSize aShadowOffset(
+ const ::basegfx::B2DSize aShadowOffset(
rState.mapModeTransform * ::vcl::unotools::b2DSizeFromSize( rShadowOffset ) );
if( rState.isTextOutlineModeSet )
{
return createOutline(
- aStartPoint,
- aReliefOffset,
+ aStartPoint,
+ aReliefOffset,
rReliefColor,
aShadowOffset,
rShadowColor,
@@ -2154,7 +2154,7 @@ namespace cppcanvas
nLen,
pDXArray,
rVDev,
- rCanvas,
+ rCanvas,
rState,
rParms );
}
@@ -2189,7 +2189,7 @@ namespace cppcanvas
// nope
if( rParms.maTextTransformation.isValid() )
{
- return ActionSharedPtr( new TextAction(
+ return ActionSharedPtr( new TextAction(
aStartPoint,
rText,
nStartPos,
@@ -2200,7 +2200,7 @@ namespace cppcanvas
}
else
{
- return ActionSharedPtr( new TextAction(
+ return ActionSharedPtr( new TextAction(
aStartPoint,
rText,
nStartPos,
@@ -2213,9 +2213,9 @@ namespace cppcanvas
{
// at least one of the effects requested
if( rParms.maTextTransformation.isValid() )
- return ActionSharedPtr( new EffectTextAction(
+ return ActionSharedPtr( new EffectTextAction(
aStartPoint,
- aReliefOffset,
+ aReliefOffset,
rReliefColor,
aShadowOffset,
rShadowColor,
@@ -2227,9 +2227,9 @@ namespace cppcanvas
rState,
rParms.maTextTransformation.getValue() ) );
else
- return ActionSharedPtr( new EffectTextAction(
+ return ActionSharedPtr( new EffectTextAction(
aStartPoint,
- aReliefOffset,
+ aReliefOffset,
rReliefColor,
aShadowOffset,
rShadowColor,
@@ -2252,7 +2252,7 @@ namespace cppcanvas
{
// nope
if( rParms.maTextTransformation.isValid() )
- return ActionSharedPtr( new TextArrayAction(
+ return ActionSharedPtr( new TextArrayAction(
aStartPoint,
rText,
nStartPos,
@@ -2262,7 +2262,7 @@ namespace cppcanvas
rState,
rParms.maTextTransformation.getValue() ) );
else
- return ActionSharedPtr( new TextArrayAction(
+ return ActionSharedPtr( new TextArrayAction(
aStartPoint,
rText,
nStartPos,
@@ -2275,9 +2275,9 @@ namespace cppcanvas
{
// at least one of the effects requested
if( rParms.maTextTransformation.isValid() )
- return ActionSharedPtr( new EffectTextArrayAction(
- aStartPoint,
- aReliefOffset,
+ return ActionSharedPtr( new EffectTextArrayAction(
+ aStartPoint,
+ aReliefOffset,
rReliefColor,
aShadowOffset,
rShadowColor,
@@ -2290,9 +2290,9 @@ namespace cppcanvas
rState,
rParms.maTextTransformation.getValue() ) );
else
- return ActionSharedPtr( new EffectTextArrayAction(
+ return ActionSharedPtr( new EffectTextArrayAction(
aStartPoint,
- aReliefOffset,
+ aReliefOffset,
rReliefColor,
aShadowOffset,
rShadowColor,
diff --git a/cppcanvas/source/mtfrenderer/textaction.hxx b/cppcanvas/source/mtfrenderer/textaction.hxx
index 390752d23ce1..136994c4d20a 100644
--- a/cppcanvas/source/mtfrenderer/textaction.hxx
+++ b/cppcanvas/source/mtfrenderer/textaction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ class String;
/* Definition of internal::TextActionFactory class */
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
struct OutDevState;
@@ -60,7 +60,7 @@ namespace cppcanvas
*/
class TextActionFactory
{
- public:
+ public:
/** Create text action, optionally shadow/relief effect
Note that this method accepts all coordinates in
@@ -75,20 +75,20 @@ namespace cppcanvas
subsettable (Action::render( Subset ) works on
characters)
*/
- static ActionSharedPtr createTextAction( const ::Point& rStartPoint,
- const ::Size& rReliefOffset,
- const ::Color& rReliefColor,
- const ::Size& rShadowOffset,
- const ::Color& rShadowColor,
- const ::String& rText,
- sal_Int32 nStartPos,
- sal_Int32 nLen,
- const sal_Int32* pDXArray,
- VirtualDevice& rVDev,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState,
- const Renderer::Parameters& rParms,
- bool bSubsettable );
+ static ActionSharedPtr createTextAction( const ::Point& rStartPoint,
+ const ::Size& rReliefOffset,
+ const ::Color& rReliefColor,
+ const ::Size& rShadowOffset,
+ const ::Color& rShadowColor,
+ const ::String& rText,
+ sal_Int32 nStartPos,
+ sal_Int32 nLen,
+ const sal_Int32* pDXArray,
+ VirtualDevice& rVDev,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState,
+ const Renderer::Parameters& rParms,
+ bool bSubsettable );
private:
// static factory, disable big four
@@ -97,7 +97,7 @@ namespace cppcanvas
TextActionFactory(const TextActionFactory&);
TextActionFactory& operator=( const TextActionFactory& );
};
- }
+ }
}
#endif /* _CPPCANVAS_TEXTACTION_HXX */
diff --git a/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx b/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx
index d4c204feb6de..cab85f36a59c 100644
--- a/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx
+++ b/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,26 +72,26 @@
using namespace ::com::sun::star;
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
// free support functions
// ======================
namespace
{
- class TransparencyGroupAction : public Action, private ::boost::noncopyable
- {
- public:
+ class TransparencyGroupAction : public Action, private ::boost::noncopyable
+ {
+ public:
/** Create new transparency group action.
@param rGroupMtf
Metafile that groups all actions to be rendered
transparent
-
+
@param rParms
Render parameters
-
+
@param rDstPoint
Left, top edge of destination, in current state
coordinate system
@@ -103,13 +103,13 @@ namespace cppcanvas
@param nAlpha
Alpha value, must be in the range [0,1]
*/
- TransparencyGroupAction( MtfAutoPtr& rGroupMtf,
- const Renderer::Parameters& rParms,
- const ::basegfx::B2DPoint& rDstPoint,
- const ::basegfx::B2DVector& rDstSize,
- double nAlpha,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
+ TransparencyGroupAction( MtfAutoPtr& rGroupMtf,
+ const Renderer::Parameters& rParms,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DVector& rDstSize,
+ double nAlpha,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
/** Create new transparency group action.
@@ -132,41 +132,41 @@ namespace cppcanvas
Size of the transparency group object, in current
state coordinate system.
*/
- TransparencyGroupAction( MtfAutoPtr& rGroupMtf,
- GradientAutoPtr& rAlphaGradient,
- const Renderer::Parameters& rParms,
- const ::basegfx::B2DPoint& rDstPoint,
- const ::basegfx::B2DVector& rDstSize,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
+ TransparencyGroupAction( MtfAutoPtr& rGroupMtf,
+ GradientAutoPtr& rAlphaGradient,
+ const Renderer::Parameters& rParms,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DVector& rDstSize,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const;
virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ const Subset& rSubset ) const;
virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const;
- virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const;
+ virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const;
virtual sal_Int32 getActionCount() const;
private:
- MtfAutoPtr mpGroupMtf;
- GradientAutoPtr mpAlphaGradient;
+ MtfAutoPtr mpGroupMtf;
+ GradientAutoPtr mpAlphaGradient;
- const Renderer::Parameters maParms;
+ const Renderer::Parameters maParms;
- const ::basegfx::B2DSize maDstSize;
+ const ::basegfx::B2DSize maDstSize;
- mutable uno::Reference< rendering::XBitmap > mxBufferBitmap; // contains last rendered version
- mutable ::basegfx::B2DHomMatrix maLastTransformation; // contains last active transformation
- mutable Subset maLastSubset; // contains last effective subset
+ mutable uno::Reference< rendering::XBitmap > mxBufferBitmap; // contains last rendered version
+ mutable ::basegfx::B2DHomMatrix maLastTransformation; // contains last active transformation
+ mutable Subset maLastSubset; // contains last effective subset
// transformation for
- // mxBufferBitmap content
- CanvasSharedPtr mpCanvas;
- rendering::RenderState maState;
- const double mnAlpha;
+ // mxBufferBitmap content
+ CanvasSharedPtr mpCanvas;
+ rendering::RenderState maState;
+ const double mnAlpha;
};
@@ -174,24 +174,24 @@ namespace cppcanvas
moved rPoint away, and scaled according to the ratio
given by src and dst size.
*/
- void implSetupTransform( rendering::RenderState& rRenderState,
- const ::basegfx::B2DPoint& rDstPoint )
+ void implSetupTransform( rendering::RenderState& rRenderState,
+ const ::basegfx::B2DPoint& rDstPoint )
{
- ::basegfx::B2DHomMatrix aLocalTransformation;
-
- aLocalTransformation.translate( rDstPoint.getX(),
+ ::basegfx::B2DHomMatrix aLocalTransformation;
+
+ aLocalTransformation.translate( rDstPoint.getX(),
rDstPoint.getY() );
::canvas::tools::appendToRenderState( rRenderState,
aLocalTransformation );
}
- TransparencyGroupAction::TransparencyGroupAction( MtfAutoPtr& rGroupMtf,
- const Renderer::Parameters& rParms,
- const ::basegfx::B2DPoint& rDstPoint,
- const ::basegfx::B2DVector& rDstSize,
- double nAlpha,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState ) :
+ TransparencyGroupAction::TransparencyGroupAction( MtfAutoPtr& rGroupMtf,
+ const Renderer::Parameters& rParms,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DVector& rDstSize,
+ double nAlpha,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState ) :
mpGroupMtf( rGroupMtf ),
mpAlphaGradient(),
maParms( rParms ),
@@ -206,10 +206,10 @@ namespace cppcanvas
implSetupTransform( maState, rDstPoint );
// correct clip (which is relative to original transform)
- tools::modifyClip( maState,
- rState,
- rCanvas,
- rDstPoint,
+ tools::modifyClip( maState,
+ rState,
+ rCanvas,
+ rDstPoint,
NULL,
NULL );
@@ -217,13 +217,13 @@ namespace cppcanvas
maLastSubset.mnSubsetEnd = -1;
}
- TransparencyGroupAction::TransparencyGroupAction( MtfAutoPtr& rGroupMtf,
- GradientAutoPtr& rAlphaGradient,
- const Renderer::Parameters& rParms,
- const ::basegfx::B2DPoint& rDstPoint,
- const ::basegfx::B2DVector& rDstSize,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState ) :
+ TransparencyGroupAction::TransparencyGroupAction( MtfAutoPtr& rGroupMtf,
+ GradientAutoPtr& rAlphaGradient,
+ const Renderer::Parameters& rParms,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DVector& rDstSize,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState ) :
mpGroupMtf( rGroupMtf ),
mpAlphaGradient( rAlphaGradient ),
maParms( rParms ),
@@ -238,10 +238,10 @@ namespace cppcanvas
implSetupTransform( maState, rDstPoint );
// correct clip (which is relative to original transform)
- tools::modifyClip( maState,
- rState,
- rCanvas,
- rDstPoint,
+ tools::modifyClip( maState,
+ rState,
+ rCanvas,
+ rDstPoint,
NULL,
NULL );
@@ -256,8 +256,8 @@ namespace cppcanvas
// into the direction of having a direct GDIMetaFile2XCanvas
// renderer, and maybe a separate metafile XCanvas
// implementation.
- bool TransparencyGroupAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ bool TransparencyGroupAction::render( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
RTL_LOGFILE_CONTEXT( aLog, "::cppcanvas::internal::TransparencyGroupAction::render()" );
RTL_LOGFILE_CONTEXT_TRACE1( aLog, "::cppcanvas::internal::TransparencyGroupAction: 0x%X", this );
@@ -276,7 +276,7 @@ namespace cppcanvas
// does not matter, remove them before comparing
aTotalTransform.set( 0, 2, 0.0 );
aTotalTransform.set( 1, 2, 0.0 );
-
+
// if there's no buffer bitmap, or as soon as the
// total transformation changes, we've got to
// re-render the bitmap
@@ -285,16 +285,16 @@ namespace cppcanvas
rSubset.mnSubsetBegin != maLastSubset.mnSubsetBegin ||
rSubset.mnSubsetEnd != maLastSubset.mnSubsetEnd )
{
- DBG_TESTSOLARMUTEX();
+ DBG_TESTSOLARMUTEX();
// determine total scaling factor of the
// transformation matrix - need to make the bitmap
// large enough
::basegfx::B2DTuple aScale;
::basegfx::B2DTuple aTranslate;
- double nRotate;
- double nShearX;
- if( !aTotalTransform.decompose( aScale,
+ double nRotate;
+ double nShearX;
+ if( !aTotalTransform.decompose( aScale,
aTranslate,
nRotate,
nShearX ) )
@@ -328,7 +328,7 @@ namespace cppcanvas
// metaactions from mpGroupMtf
GDIMetaFile aMtf;
MetaAction* pCurrAct;
- int nCurrActionIndex;
+ int nCurrActionIndex;
// extract subset actions
for( nCurrActionIndex=0,
@@ -409,25 +409,25 @@ namespace cppcanvas
}
}
- aVDev.DrawTransparent( aMtf,
+ aVDev.DrawTransparent( aMtf,
aEmptyPoint,
aOutputSizePixel,
- *mpAlphaGradient );
+ *mpAlphaGradient );
}
else
{
// no subsetting - render whole mtf
- aVDev.DrawTransparent( *mpGroupMtf,
+ aVDev.DrawTransparent( *mpGroupMtf,
aEmptyPoint,
aOutputSizePixel,
*mpAlphaGradient );
}
-
+
// update buffered bitmap and transformation
- BitmapSharedPtr aBmp( VCLFactory::getInstance().createBitmap(
+ BitmapSharedPtr aBmp( VCLFactory::getInstance().createBitmap(
mpCanvas,
- aVDev.GetBitmapEx(
+ aVDev.GetBitmapEx(
aEmptyPoint,
aBitmapSizePixel ) ) );
mxBufferBitmap = aBmp->getUNOBitmap();
@@ -451,7 +451,7 @@ namespace cppcanvas
// Translation*Rotation*Shear*Scale. Thus, to neutralize
// the contained scaling, we've got to right-multiply with
// the inverse.
- ::basegfx::B2ISize aBmpSize(
+ ::basegfx::B2ISize aBmpSize(
::basegfx::unotools::b2ISizeFromIntegerSize2D( mxBufferBitmap->getSize() ) );
::basegfx::B2DHomMatrix aScaleCorrection;
@@ -464,14 +464,14 @@ namespace cppcanvas
#ifdef SPECIAL_DEBUG
aLocalState.Clip.clear();
- aLocalState.DeviceColor =
- ::vcl::unotools::colorToDoubleSequence(
+ aLocalState.DeviceColor =
+ ::vcl::unotools::colorToDoubleSequence(
::Color( 0x80FF0000 ),
mpCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace() );
if( maState.Clip.is() )
- mpCanvas->getUNOCanvas()->fillPolyPolygon( maState.Clip,
- mpCanvas->getViewState(),
+ mpCanvas->getUNOCanvas()->fillPolyPolygon( maState.Clip,
+ mpCanvas->getViewState(),
aLocalState );
aLocalState.DeviceColor = maState.DeviceColor;
@@ -489,7 +489,7 @@ namespace cppcanvas
// add alpha modulation value to DeviceColor
uno::Sequence<rendering::ARGBColor> aCols(1);
aCols[0] = rendering::ARGBColor( mnAlpha, 1.0, 1.0, 1.0);
- aLocalState.DeviceColor =
+ aLocalState.DeviceColor =
mpCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace()->convertFromARGB(
aCols);
@@ -517,13 +517,13 @@ namespace cppcanvas
return render( rTransformation, aSubset );
}
-
- ::basegfx::B2DRange TransparencyGroupAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
+
+ ::basegfx::B2DRange TransparencyGroupAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const
{
rendering::RenderState aLocalState( maState );
::canvas::tools::prependToRenderState(aLocalState, rTransformation);
-
- return tools::calcDevicePixelBounds(
+
+ return tools::calcDevicePixelBounds(
::basegfx::B2DRange( 0,0,
maDstSize.getX(),
maDstSize.getY() ),
@@ -531,8 +531,8 @@ namespace cppcanvas
aLocalState );
}
- ::basegfx::B2DRange TransparencyGroupAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
- const Subset& rSubset ) const
+ ::basegfx::B2DRange TransparencyGroupAction::getBounds( const ::basegfx::B2DHomMatrix& rTransformation,
+ const Subset& rSubset ) const
{
// TODO(F3): Currently, the bounds for
// TransparencyGroupAction subsets equal those of the
@@ -555,13 +555,13 @@ namespace cppcanvas
}
- ActionSharedPtr TransparencyGroupActionFactory::createTransparencyGroupAction( MtfAutoPtr& rGroupMtf,
- const Renderer::Parameters& rParms,
- const ::basegfx::B2DPoint& rDstPoint,
- const ::basegfx::B2DVector& rDstSize,
- double nAlpha,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState )
+ ActionSharedPtr TransparencyGroupActionFactory::createTransparencyGroupAction( MtfAutoPtr& rGroupMtf,
+ const Renderer::Parameters& rParms,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DVector& rDstSize,
+ double nAlpha,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState )
{
return ActionSharedPtr( new TransparencyGroupAction(rGroupMtf,
rParms,
@@ -572,13 +572,13 @@ namespace cppcanvas
rState ) );
}
- ActionSharedPtr TransparencyGroupActionFactory::createTransparencyGroupAction( MtfAutoPtr& rGroupMtf,
- GradientAutoPtr& rAlphaGradient,
- const Renderer::Parameters& rParms,
- const ::basegfx::B2DPoint& rDstPoint,
- const ::basegfx::B2DVector& rDstSize,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState )
+ ActionSharedPtr TransparencyGroupActionFactory::createTransparencyGroupAction( MtfAutoPtr& rGroupMtf,
+ GradientAutoPtr& rAlphaGradient,
+ const Renderer::Parameters& rParms,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DVector& rDstSize,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState )
{
return ActionSharedPtr( new TransparencyGroupAction(rGroupMtf,
rAlphaGradient,
@@ -588,7 +588,7 @@ namespace cppcanvas
rCanvas,
rState ) );
}
-
+
}
}
diff --git a/cppcanvas/source/mtfrenderer/transparencygroupaction.hxx b/cppcanvas/source/mtfrenderer/transparencygroupaction.hxx
index dd629011cfa2..d3b3a1851e71 100644
--- a/cppcanvas/source/mtfrenderer/transparencygroupaction.hxx
+++ b/cppcanvas/source/mtfrenderer/transparencygroupaction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,14 +46,14 @@ class Gradient;
/* Definition of internal::TransparencyGroupActionFactory class */
-namespace cppcanvas
-{
+namespace cppcanvas
+{
namespace internal
{
struct OutDevState;
- typedef ::std::auto_ptr< GDIMetaFile > MtfAutoPtr;
- typedef ::std::auto_ptr< Gradient > GradientAutoPtr;
+ typedef ::std::auto_ptr< GDIMetaFile > MtfAutoPtr;
+ typedef ::std::auto_ptr< Gradient > GradientAutoPtr;
/** Transparency group action.
@@ -69,8 +69,8 @@ namespace cppcanvas
text layout) is Canvas-dependent.
*/
class TransparencyGroupActionFactory
- {
- public:
+ {
+ public:
/** Create new transparency group action.
@param rGroupMtf
@@ -91,14 +91,14 @@ namespace cppcanvas
@param nAlpha
Alpha value, must be in the range [0,1]
*/
- static ActionSharedPtr createTransparencyGroupAction( MtfAutoPtr& rGroupMtf,
- const Renderer::Parameters& rParms,
- const ::basegfx::B2DPoint& rDstPoint,
- const ::basegfx::B2DVector& rDstSize,
- double nAlpha,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
-
+ static ActionSharedPtr createTransparencyGroupAction( MtfAutoPtr& rGroupMtf,
+ const Renderer::Parameters& rParms,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DVector& rDstSize,
+ double nAlpha,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
+
/** Create new transparency group action.
@param rGroupMtf
@@ -120,14 +120,14 @@ namespace cppcanvas
Size of the transparency group object, in current
state coordinate system.
*/
- static ActionSharedPtr createTransparencyGroupAction( MtfAutoPtr& rGroupMtf,
- GradientAutoPtr& rAlphaGradient,
- const Renderer::Parameters& rParms,
- const ::basegfx::B2DPoint& rDstPoint,
- const ::basegfx::B2DVector& rDstSize,
- const CanvasSharedPtr& rCanvas,
- const OutDevState& rState );
-
+ static ActionSharedPtr createTransparencyGroupAction( MtfAutoPtr& rGroupMtf,
+ GradientAutoPtr& rAlphaGradient,
+ const Renderer::Parameters& rParms,
+ const ::basegfx::B2DPoint& rDstPoint,
+ const ::basegfx::B2DVector& rDstSize,
+ const CanvasSharedPtr& rCanvas,
+ const OutDevState& rState );
+
private:
// static factory, disable big four
TransparencyGroupActionFactory();
@@ -135,7 +135,7 @@ namespace cppcanvas
TransparencyGroupActionFactory(const TransparencyGroupActionFactory&);
TransparencyGroupActionFactory& operator=( const TransparencyGroupActionFactory& );
};
- }
+ }
}
#endif /*_CPPCANVAS_TRANSPARENCYGROUPACTION_HXX */
diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx
index 4888960c0d96..758172e19f78 100644
--- a/cppcanvas/source/tools/canvasgraphichelper.cxx
+++ b/cppcanvas/source/tools/canvasgraphichelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ namespace cppcanvas
mxGraphicDevice()
{
OSL_ENSURE( mpCanvas.get() != NULL &&
- mpCanvas->getUNOCanvas().is(),
+ mpCanvas->getUNOCanvas().is(),
"CanvasGraphicHelper::CanvasGraphicHelper: no valid canvas" );
if( mpCanvas.get() != NULL &&
@@ -74,11 +74,11 @@ namespace cppcanvas
{
::canvas::tools::setRenderStateTransform( maRenderState, rMatrix );
}
-
+
::basegfx::B2DHomMatrix CanvasGraphicHelper::getTransformation() const
{
::basegfx::B2DHomMatrix aMatrix;
- return ::canvas::tools::getRenderStateTransform( aMatrix,
+ return ::canvas::tools::getRenderStateTransform( aMatrix,
maRenderState );
}
@@ -118,13 +118,13 @@ namespace cppcanvas
void CanvasGraphicHelper::setRGBAColor( Color::IntSRGBA aColor )
{
- maRenderState.DeviceColor = tools::intSRGBAToDoubleSequence( mxGraphicDevice,
+ maRenderState.DeviceColor = tools::intSRGBAToDoubleSequence( mxGraphicDevice,
aColor );
}
Color::IntSRGBA CanvasGraphicHelper::getRGBAColor() const
{
- return tools::doubleSequenceToIntSRGBA( mxGraphicDevice,
+ return tools::doubleSequenceToIntSRGBA( mxGraphicDevice,
maRenderState.DeviceColor );
}
@@ -143,11 +143,11 @@ namespace cppcanvas
return mpCanvas;
}
- uno::Reference< rendering::XGraphicDevice > CanvasGraphicHelper::getGraphicDevice() const
+ uno::Reference< rendering::XGraphicDevice > CanvasGraphicHelper::getGraphicDevice() const
{
return mxGraphicDevice;
}
-
+
}
}
diff --git a/cppcanvas/source/tools/tools.cxx b/cppcanvas/source/tools/tools.cxx
index bea26d8e55e8..6b3d8f4bce1e 100644
--- a/cppcanvas/source/tools/tools.cxx
+++ b/cppcanvas/source/tools/tools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,8 +38,8 @@ namespace cppcanvas
{
namespace tools
{
- uno::Sequence< double > intSRGBAToDoubleSequence( const uno::Reference< rendering::XGraphicDevice >&,
- Color::IntSRGBA aColor )
+ uno::Sequence< double > intSRGBAToDoubleSequence( const uno::Reference< rendering::XGraphicDevice >&,
+ Color::IntSRGBA aColor )
{
uno::Sequence< double > aRes( 4 );
@@ -51,8 +51,8 @@ namespace cppcanvas
return aRes;
}
- Color::IntSRGBA doubleSequenceToIntSRGBA( const uno::Reference< rendering::XGraphicDevice >&,
- const uno::Sequence< double >& rColor )
+ Color::IntSRGBA doubleSequenceToIntSRGBA( const uno::Reference< rendering::XGraphicDevice >&,
+ const uno::Sequence< double >& rColor )
{
return makeColor( static_cast<sal_uInt8>( 255*rColor[0] + .5 ),
static_cast<sal_uInt8>( 255*rColor[1] + .5 ),
diff --git a/cppcanvas/source/wrapper/basegfxfactory.cxx b/cppcanvas/source/wrapper/basegfxfactory.cxx
index c65a4216b522..696c977ddf18 100644
--- a/cppcanvas/source/wrapper/basegfxfactory.cxx
+++ b/cppcanvas/source/wrapper/basegfxfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,16 +69,16 @@ namespace cppcanvas
BaseGfxFactory::BaseGfxFactory()
{
}
-
+
BaseGfxFactory::~BaseGfxFactory()
{
}
- PolyPolygonSharedPtr BaseGfxFactory::createPolyPolygon( const CanvasSharedPtr& rCanvas,
- const ::basegfx::B2DPolygon& rPoly ) const
+ PolyPolygonSharedPtr BaseGfxFactory::createPolyPolygon( const CanvasSharedPtr& rCanvas,
+ const ::basegfx::B2DPolygon& rPoly ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"BaseGfxFactory::createPolyPolygon(): Invalid canvas" );
if( rCanvas.get() == NULL )
@@ -88,18 +88,18 @@ namespace cppcanvas
if( !xCanvas.is() )
return PolyPolygonSharedPtr();
- return PolyPolygonSharedPtr(
- new internal::ImplPolyPolygon( rCanvas,
+ return PolyPolygonSharedPtr(
+ new internal::ImplPolyPolygon( rCanvas,
::basegfx::unotools::xPolyPolygonFromB2DPolygon(
xCanvas->getDevice(),
rPoly) ) );
}
-
- PolyPolygonSharedPtr BaseGfxFactory::createPolyPolygon( const CanvasSharedPtr& rCanvas,
- const ::basegfx::B2DPolyPolygon& rPolyPoly ) const
+
+ PolyPolygonSharedPtr BaseGfxFactory::createPolyPolygon( const CanvasSharedPtr& rCanvas,
+ const ::basegfx::B2DPolyPolygon& rPolyPoly ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"BaseGfxFactory::createPolyPolygon(): Invalid canvas" );
if( rCanvas.get() == NULL )
@@ -109,20 +109,20 @@ namespace cppcanvas
if( !xCanvas.is() )
return PolyPolygonSharedPtr();
- return PolyPolygonSharedPtr(
- new internal::ImplPolyPolygon( rCanvas,
+ return PolyPolygonSharedPtr(
+ new internal::ImplPolyPolygon( rCanvas,
::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(
xCanvas->getDevice(),
rPolyPoly) ) );
}
- BitmapSharedPtr BaseGfxFactory::createBitmap( const CanvasSharedPtr& rCanvas,
+ BitmapSharedPtr BaseGfxFactory::createBitmap( const CanvasSharedPtr& rCanvas,
const ::basegfx::B2ISize& rSize ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"BaseGfxFactory::createBitmap(): Invalid canvas" );
-
+
if( rCanvas.get() == NULL )
return BitmapSharedPtr();
@@ -130,19 +130,19 @@ namespace cppcanvas
if( !xCanvas.is() )
return BitmapSharedPtr();
- return BitmapSharedPtr(
- new internal::ImplBitmap( rCanvas,
- xCanvas->getDevice()->createCompatibleBitmap(
+ return BitmapSharedPtr(
+ new internal::ImplBitmap( rCanvas,
+ xCanvas->getDevice()->createCompatibleBitmap(
::basegfx::unotools::integerSize2DFromB2ISize(rSize) ) ) );
}
- BitmapSharedPtr BaseGfxFactory::createAlphaBitmap( const CanvasSharedPtr& rCanvas,
+ BitmapSharedPtr BaseGfxFactory::createAlphaBitmap( const CanvasSharedPtr& rCanvas,
const ::basegfx::B2ISize& rSize ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"BaseGfxFactory::createBitmap(): Invalid canvas" );
-
+
if( rCanvas.get() == NULL )
return BitmapSharedPtr();
@@ -150,15 +150,15 @@ namespace cppcanvas
if( !xCanvas.is() )
return BitmapSharedPtr();
- return BitmapSharedPtr(
- new internal::ImplBitmap( rCanvas,
- xCanvas->getDevice()->createCompatibleAlphaBitmap(
+ return BitmapSharedPtr(
+ new internal::ImplBitmap( rCanvas,
+ xCanvas->getDevice()->createCompatibleAlphaBitmap(
::basegfx::unotools::integerSize2DFromB2ISize(rSize) ) ) );
}
TextSharedPtr BaseGfxFactory::createText( const CanvasSharedPtr& rCanvas, const ::rtl::OUString& rText ) const
{
- return TextSharedPtr( new internal::ImplText( rCanvas,
+ return TextSharedPtr( new internal::ImplText( rCanvas,
rText ) );
}
diff --git a/cppcanvas/source/wrapper/implbitmap.cxx b/cppcanvas/source/wrapper/implbitmap.cxx
index bf00e0f673c6..5748fedbfc6d 100644
--- a/cppcanvas/source/wrapper/implbitmap.cxx
+++ b/cppcanvas/source/wrapper/implbitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ namespace cppcanvas
namespace internal
{
- ImplBitmap::ImplBitmap( const CanvasSharedPtr& rParentCanvas,
+ ImplBitmap::ImplBitmap( const CanvasSharedPtr& rParentCanvas,
const uno::Reference< rendering::XBitmap >& rBitmap ) :
CanvasGraphicHelper( rParentCanvas ),
mxBitmap( rBitmap ),
@@ -55,7 +55,7 @@ namespace cppcanvas
uno::Reference< rendering::XBitmapCanvas > xBitmapCanvas( rBitmap,
uno::UNO_QUERY );
if( xBitmapCanvas.is() )
- mpBitmapCanvas.reset( new ImplBitmapCanvas(
+ mpBitmapCanvas.reset( new ImplBitmapCanvas(
uno::Reference< rendering::XBitmapCanvas >(rBitmap,
uno::UNO_QUERY) ) );
}
@@ -79,8 +79,8 @@ namespace cppcanvas
}
// TODO(P1): implement caching
- pCanvas->getUNOCanvas()->drawBitmap( mxBitmap,
- pCanvas->getViewState(),
+ pCanvas->getUNOCanvas()->drawBitmap( mxBitmap,
+ pCanvas->getViewState(),
getRenderState() );
return true;
@@ -103,12 +103,12 @@ namespace cppcanvas
rendering::RenderState aLocalState( getRenderState() );
uno::Sequence<rendering::ARGBColor> aCol(1);
aCol[0] = rendering::ARGBColor( nAlphaModulation, 1.0, 1.0, 1.0 );
- aLocalState.DeviceColor =
+ aLocalState.DeviceColor =
pCanvas->getUNOCanvas()->getDevice()->getDeviceColorSpace()->convertFromARGB(aCol);
// TODO(P1): implement caching
- pCanvas->getUNOCanvas()->drawBitmapModulated( mxBitmap,
- pCanvas->getViewState(),
+ pCanvas->getUNOCanvas()->drawBitmapModulated( mxBitmap,
+ pCanvas->getViewState(),
aLocalState );
return true;
diff --git a/cppcanvas/source/wrapper/implbitmap.hxx b/cppcanvas/source/wrapper/implbitmap.hxx
index c27d095d1888..56bdd29070c7 100644
--- a/cppcanvas/source/wrapper/implbitmap.hxx
+++ b/cppcanvas/source/wrapper/implbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace cppcanvas
public:
ImplBitmap( const CanvasSharedPtr& rParentCanvas,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmap >& rBitmap );
virtual ~ImplBitmap();
@@ -59,19 +59,19 @@ namespace cppcanvas
virtual bool draw() const;
virtual bool drawAlphaModulated( double nAlphaModulation ) const;
- virtual BitmapCanvasSharedPtr getBitmapCanvas() const;
+ virtual BitmapCanvasSharedPtr getBitmapCanvas() const;
// Bitmap implementation
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap > getUNOBitmap() const;
+ virtual ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap > getUNOBitmap() const;
private:
// default: disabled copy/assignment
ImplBitmap(const ImplBitmap&);
ImplBitmap& operator=( const ImplBitmap& );
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > mxBitmap;
- BitmapCanvasSharedPtr mpBitmapCanvas;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > mxBitmap;
+ BitmapCanvasSharedPtr mpBitmapCanvas;
};
}
}
diff --git a/cppcanvas/source/wrapper/implbitmapcanvas.cxx b/cppcanvas/source/wrapper/implbitmapcanvas.cxx
index 6aa08a9334d0..5526d00e7548 100644
--- a/cppcanvas/source/wrapper/implbitmapcanvas.cxx
+++ b/cppcanvas/source/wrapper/implbitmapcanvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ namespace cppcanvas
ImplBitmapCanvas::~ImplBitmapCanvas()
{
}
-
+
::basegfx::B2ISize ImplBitmapCanvas::getSize() const
{
OSL_ENSURE( mxBitmap.is(), "ImplBitmapCanvas::getSize(): Invalid canvas" );
diff --git a/cppcanvas/source/wrapper/implbitmapcanvas.hxx b/cppcanvas/source/wrapper/implbitmapcanvas.hxx
index 5b1b625630a0..722656d37a45 100644
--- a/cppcanvas/source/wrapper/implbitmapcanvas.hxx
+++ b/cppcanvas/source/wrapper/implbitmapcanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,13 +47,13 @@ namespace cppcanvas
class ImplBitmapCanvas : public virtual BitmapCanvas, protected virtual ImplCanvas
{
public:
- ImplBitmapCanvas( const ::com::sun::star::uno::Reference<
+ ImplBitmapCanvas( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XBitmapCanvas >& rCanvas );
virtual ~ImplBitmapCanvas();
- virtual ::basegfx::B2ISize getSize() const;
+ virtual ::basegfx::B2ISize getSize() const;
- virtual CanvasSharedPtr clone() const;
+ virtual CanvasSharedPtr clone() const;
// take compiler-provided default copy constructor
//ImplBitmapCanvas(const ImplBitmapCanvas&);
@@ -62,8 +62,8 @@ namespace cppcanvas
// default: disabled assignment
ImplBitmapCanvas& operator=( const ImplBitmapCanvas& );
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > mxBitmapCanvas;
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > mxBitmap;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > mxBitmapCanvas;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > mxBitmap;
};
}
}
diff --git a/cppcanvas/source/wrapper/implcanvas.cxx b/cppcanvas/source/wrapper/implcanvas.cxx
index 2fb6debc0eae..d871ac345915 100644
--- a/cppcanvas/source/wrapper/implcanvas.cxx
+++ b/cppcanvas/source/wrapper/implcanvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,10 +73,10 @@ namespace cppcanvas
::basegfx::B2DHomMatrix ImplCanvas::getTransformation() const
{
::basegfx::B2DHomMatrix aMatrix;
- return ::canvas::tools::getViewStateTransform( aMatrix,
+ return ::canvas::tools::getViewStateTransform( aMatrix,
maViewState );
}
-
+
void ImplCanvas::setClip( const ::basegfx::B2DPolyPolygon& rClipPoly )
{
// TODO(T3): not thread-safe. B2DPolyPolygon employs copy-on-write
@@ -99,7 +99,7 @@ namespace cppcanvas
{
return FontSharedPtr( new ImplFont( getUNOCanvas(), rFontName, rCellSize ) );
}
-
+
ColorSharedPtr ImplCanvas::createColor() const
{
return ColorSharedPtr( new ImplColor( getUNOCanvas()->getDevice() ) );
@@ -109,7 +109,7 @@ namespace cppcanvas
{
return CanvasSharedPtr( new ImplCanvas( *this ) );
}
-
+
void ImplCanvas::clear() const
{
OSL_ENSURE( mxCanvas.is(), "ImplCanvas::clear(): Invalid XCanvas" );
diff --git a/cppcanvas/source/wrapper/implcanvas.hxx b/cppcanvas/source/wrapper/implcanvas.hxx
index 481a5541441c..56254496220b 100644
--- a/cppcanvas/source/wrapper/implcanvas.hxx
+++ b/cppcanvas/source/wrapper/implcanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace basegfx
class B2DPolyPolygon;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XCanvas;
} } } }
@@ -63,29 +63,29 @@ namespace cppcanvas
class ImplCanvas : public virtual Canvas
{
public:
- ImplCanvas( const ::com::sun::star::uno::Reference<
+ ImplCanvas( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvas >& rCanvas );
virtual ~ImplCanvas();
virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix );
virtual ::basegfx::B2DHomMatrix getTransformation() const;
-
+
virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly );
virtual void setClip();
virtual ::basegfx::B2DPolyPolygon const* getClip() const;
-
+
virtual FontSharedPtr createFont( const ::rtl::OUString& rFontName, const double& rCellSize ) const;
-
+
virtual ColorSharedPtr createColor() const;
-
+
virtual CanvasSharedPtr clone() const;
virtual void clear() const;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvas > getUNOCanvas() const;
+ virtual ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCanvas > getUNOCanvas() const;
- virtual ::com::sun::star::rendering::ViewState getViewState() const;
+ virtual ::com::sun::star::rendering::ViewState getViewState() const;
// take compiler-provided default copy constructor
//ImplCanvas(const ImplCanvas&);
@@ -94,9 +94,9 @@ namespace cppcanvas
// default: disabled assignment
ImplCanvas& operator=( const ImplCanvas& );
- mutable ::com::sun::star::rendering::ViewState maViewState;
+ mutable ::com::sun::star::rendering::ViewState maViewState;
boost::optional<basegfx::B2DPolyPolygon> maClipPolyPolygon;
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxCanvas;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxCanvas;
};
}
diff --git a/cppcanvas/source/wrapper/implcolor.cxx b/cppcanvas/source/wrapper/implcolor.cxx
index c474deee2420..a4e5f6703db0 100644
--- a/cppcanvas/source/wrapper/implcolor.cxx
+++ b/cppcanvas/source/wrapper/implcolor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/cppcanvas/source/wrapper/implcolor.hxx b/cppcanvas/source/wrapper/implcolor.hxx
index 3bc47da73d01..ff72564163d4 100644
--- a/cppcanvas/source/wrapper/implcolor.hxx
+++ b/cppcanvas/source/wrapper/implcolor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,15 +46,15 @@ namespace cppcanvas
class ImplColor : public Color
{
public:
- ImplColor( const ::com::sun::star::uno::Reference<
+ ImplColor( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XGraphicDevice >& rDevice );
virtual ~ImplColor();
- virtual IntSRGBA getIntSRGBA( ::com::sun::star::uno::Sequence< double >& rDeviceColor ) const;
- virtual ::com::sun::star::uno::Sequence< double > getDeviceColor( IntSRGBA aSRGBA ) const;
+ virtual IntSRGBA getIntSRGBA( ::com::sun::star::uno::Sequence< double >& rDeviceColor ) const;
+ virtual ::com::sun::star::uno::Sequence< double > getDeviceColor( IntSRGBA aSRGBA ) const;
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > mxDevice;
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > mxDevice;
};
}
diff --git a/cppcanvas/source/wrapper/implcustomsprite.cxx b/cppcanvas/source/wrapper/implcustomsprite.cxx
index e41e728e40ce..c93ab1d65399 100644
--- a/cppcanvas/source/wrapper/implcustomsprite.cxx
+++ b/cppcanvas/source/wrapper/implcustomsprite.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,10 +40,10 @@ namespace cppcanvas
{
namespace internal
{
- ImplCustomSprite::ImplCustomSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
- const uno::Reference< rendering::XCustomSprite >& rSprite,
- const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) :
- ImplSprite( rParentCanvas,
+ ImplCustomSprite::ImplCustomSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
+ const uno::Reference< rendering::XCustomSprite >& rSprite,
+ const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) :
+ ImplSprite( rParentCanvas,
uno::Reference< rendering::XSprite >(rSprite,
uno::UNO_QUERY),
rTransformArbiter ),
diff --git a/cppcanvas/source/wrapper/implcustomsprite.hxx b/cppcanvas/source/wrapper/implcustomsprite.hxx
index fe40c017b83c..f4c4b5ba1d06 100644
--- a/cppcanvas/source/wrapper/implcustomsprite.hxx
+++ b/cppcanvas/source/wrapper/implcustomsprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,11 +47,11 @@ namespace cppcanvas
class ImplCustomSprite : public virtual CustomSprite, protected virtual ImplSprite
{
public:
- ImplCustomSprite( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSpriteCanvas >& rParentCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCustomSprite >& rSprite,
- const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
+ ImplCustomSprite( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSpriteCanvas >& rParentCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XCustomSprite >& rSprite,
+ const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
virtual ~ImplCustomSprite();
virtual CanvasSharedPtr getContentCanvas() const;
@@ -61,8 +61,8 @@ namespace cppcanvas
ImplCustomSprite(const ImplCustomSprite&);
ImplCustomSprite& operator=( const ImplCustomSprite& );
- mutable CanvasSharedPtr mpLastCanvas;
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCustomSprite > mxCustomSprite;
+ mutable CanvasSharedPtr mpLastCanvas;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCustomSprite > mxCustomSprite;
};
}
}
diff --git a/cppcanvas/source/wrapper/implfont.cxx b/cppcanvas/source/wrapper/implfont.cxx
index b466cfabd068..d92779e9f97a 100644
--- a/cppcanvas/source/wrapper/implfont.cxx
+++ b/cppcanvas/source/wrapper/implfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace cppcanvas
{
ImplFont::ImplFont( const uno::Reference< rendering::XCanvas >& rCanvas,
- const ::rtl::OUString& rFontName,
+ const ::rtl::OUString& rFontName,
const double& rCellSize ) :
mxCanvas( rCanvas ),
mxFont( NULL )
@@ -57,12 +57,12 @@ namespace cppcanvas
geometry::Matrix2D aFontMatrix;
::canvas::tools::setIdentityMatrix2D( aFontMatrix );
- mxFont = mxCanvas->createFont( aFontRequest,
+ mxFont = mxCanvas->createFont( aFontRequest,
uno::Sequence< beans::PropertyValue >(),
aFontMatrix );
}
-
+
ImplFont::~ImplFont()
{
}
diff --git a/cppcanvas/source/wrapper/implfont.hxx b/cppcanvas/source/wrapper/implfont.hxx
index 589bab707e84..e5fed9da466c 100644
--- a/cppcanvas/source/wrapper/implfont.hxx
+++ b/cppcanvas/source/wrapper/implfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ namespace rtl
class OUString;
}
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XCanvasFont;
} } } }
@@ -57,22 +57,22 @@ namespace cppcanvas
class ImplFont : public Font
{
public:
- ImplFont( const ::com::sun::star::uno::Reference<
+ ImplFont( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvas >& rCanvas,
- const ::rtl::OUString& rFontName,
+ const ::rtl::OUString& rFontName,
const double& rCellSize );
virtual ~ImplFont();
virtual ::rtl::OUString getName() const;
- virtual double getCellSize() const;
+ virtual double getCellSize() const;
- virtual ::com::sun::star::uno::Reference<
+ virtual ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvasFont > getUNOFont() const;
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxCanvas;
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > mxFont;
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > mxCanvas;
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvasFont > mxFont;
};
}
}
diff --git a/cppcanvas/source/wrapper/implpolypolygon.cxx b/cppcanvas/source/wrapper/implpolypolygon.cxx
index ac1fa728378c..ed28fae41d9c 100644
--- a/cppcanvas/source/wrapper/implpolypolygon.cxx
+++ b/cppcanvas/source/wrapper/implpolypolygon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,12 +53,12 @@ namespace cppcanvas
const uno::Reference< rendering::XPolyPolygon2D >& rPolyPoly ) :
CanvasGraphicHelper( rParentCanvas ),
mxPolyPoly( rPolyPoly ),
- maStrokeAttributes(1.0,
- 10.0,
- uno::Sequence< double >(),
- uno::Sequence< double >(),
- rendering::PathCapType::ROUND,
- rendering::PathCapType::ROUND,
+ maStrokeAttributes(1.0,
+ 10.0,
+ uno::Sequence< double >(),
+ uno::Sequence< double >(),
+ rendering::PathCapType::ROUND,
+ rendering::PathCapType::ROUND,
rendering::PathJoinType::ROUND ),
maFillColor(),
maStrokeColor(),
@@ -74,7 +74,7 @@ namespace cppcanvas
void ImplPolyPolygon::addPolygon( const ::basegfx::B2DPolygon& rPoly )
{
- OSL_ENSURE( mxPolyPoly.is(),
+ OSL_ENSURE( mxPolyPoly.is(),
"ImplPolyPolygon::addPolygon(): Invalid polygon" );
if( !mxPolyPoly.is() )
@@ -82,9 +82,9 @@ namespace cppcanvas
uno::Reference< rendering::XGraphicDevice > xDevice( getGraphicDevice() );
- OSL_ENSURE( xDevice.is(),
+ OSL_ENSURE( xDevice.is(),
"ImplPolyPolygon::addPolygon(): Invalid graphic device" );
-
+
if( !xDevice.is() )
return;
@@ -96,7 +96,7 @@ namespace cppcanvas
void ImplPolyPolygon::addPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly )
{
- OSL_ENSURE( mxPolyPoly.is(),
+ OSL_ENSURE( mxPolyPoly.is(),
"ImplPolyPolygon::addPolyPolygon(): Invalid polygon" );
if( !mxPolyPoly.is() )
@@ -104,9 +104,9 @@ namespace cppcanvas
uno::Reference< rendering::XGraphicDevice > xDevice( getGraphicDevice() );
- OSL_ENSURE( xDevice.is(),
+ OSL_ENSURE( xDevice.is(),
"ImplPolyPolygon::addPolyPolygon(): Invalid graphic device" );
-
+
if( !xDevice.is() )
return;
@@ -118,27 +118,27 @@ namespace cppcanvas
void ImplPolyPolygon::setRGBAFillColor( Color::IntSRGBA aColor )
{
- maFillColor = tools::intSRGBAToDoubleSequence( getGraphicDevice(),
+ maFillColor = tools::intSRGBAToDoubleSequence( getGraphicDevice(),
aColor );
mbFillColorSet = true;
}
void ImplPolyPolygon::setRGBALineColor( Color::IntSRGBA aColor )
{
- maStrokeColor = tools::intSRGBAToDoubleSequence( getGraphicDevice(),
+ maStrokeColor = tools::intSRGBAToDoubleSequence( getGraphicDevice(),
aColor );
mbStrokeColorSet = true;
}
Color::IntSRGBA ImplPolyPolygon::getRGBAFillColor() const
{
- return tools::doubleSequenceToIntSRGBA( getGraphicDevice(),
+ return tools::doubleSequenceToIntSRGBA( getGraphicDevice(),
maFillColor );
}
Color::IntSRGBA ImplPolyPolygon::getRGBALineColor() const
{
- return tools::doubleSequenceToIntSRGBA( getGraphicDevice(),
+ return tools::doubleSequenceToIntSRGBA( getGraphicDevice(),
maStrokeColor );
}
@@ -159,7 +159,7 @@ namespace cppcanvas
OSL_ENSURE( pCanvas.get() != NULL &&
pCanvas->getUNOCanvas().is(),
"ImplBitmap::draw: invalid canvas" );
-
+
if( pCanvas.get() == NULL ||
!pCanvas->getUNOCanvas().is() )
return false;
@@ -169,8 +169,8 @@ namespace cppcanvas
rendering::RenderState aLocalState( getRenderState() );
aLocalState.DeviceColor = maFillColor;
- pCanvas->getUNOCanvas()->fillPolyPolygon( mxPolyPoly,
- pCanvas->getViewState(),
+ pCanvas->getUNOCanvas()->fillPolyPolygon( mxPolyPoly,
+ pCanvas->getViewState(),
aLocalState );
}
@@ -180,17 +180,17 @@ namespace cppcanvas
aLocalState.DeviceColor = maStrokeColor;
if( ::rtl::math::approxEqual(maStrokeAttributes.StrokeWidth, 1.0) )
- pCanvas->getUNOCanvas()->drawPolyPolygon( mxPolyPoly,
- pCanvas->getViewState(),
+ pCanvas->getUNOCanvas()->drawPolyPolygon( mxPolyPoly,
+ pCanvas->getViewState(),
aLocalState );
else
- pCanvas->getUNOCanvas()->strokePolyPolygon( mxPolyPoly,
- pCanvas->getViewState(),
+ pCanvas->getUNOCanvas()->strokePolyPolygon( mxPolyPoly,
+ pCanvas->getViewState(),
aLocalState,
maStrokeAttributes );
}
- return true;
+ return true;
}
uno::Reference< rendering::XPolyPolygon2D > ImplPolyPolygon::getUNOPolyPolygon() const
diff --git a/cppcanvas/source/wrapper/implpolypolygon.hxx b/cppcanvas/source/wrapper/implpolypolygon.hxx
index 7d89039f29c7..e12d75fb0d95 100644
--- a/cppcanvas/source/wrapper/implpolypolygon.hxx
+++ b/cppcanvas/source/wrapper/implpolypolygon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
#include <cppcanvas/polypolygon.hxx>
#include <canvasgraphichelper.hxx>
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
struct RealPoint2D;
} } } }
@@ -52,40 +52,40 @@ namespace cppcanvas
{
public:
ImplPolyPolygon( const CanvasSharedPtr& rParentCanvas,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D >& rPolyPoly );
virtual ~ImplPolyPolygon();
- virtual void addPolygon( const ::basegfx::B2DPolygon& rPoly );
- virtual void addPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly );
+ virtual void addPolygon( const ::basegfx::B2DPolygon& rPoly );
+ virtual void addPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly );
- virtual void setRGBAFillColor( Color::IntSRGBA );
- virtual void setRGBALineColor( Color::IntSRGBA );
- virtual Color::IntSRGBA getRGBAFillColor() const;
- virtual Color::IntSRGBA getRGBALineColor() const;
+ virtual void setRGBAFillColor( Color::IntSRGBA );
+ virtual void setRGBALineColor( Color::IntSRGBA );
+ virtual Color::IntSRGBA getRGBAFillColor() const;
+ virtual Color::IntSRGBA getRGBALineColor() const;
- virtual void setStrokeWidth( const double& rStrokeWidth );
- virtual double getStrokeWidth() const;
+ virtual void setStrokeWidth( const double& rStrokeWidth );
+ virtual double getStrokeWidth() const;
- virtual bool draw() const;
+ virtual bool draw() const;
- virtual ::com::sun::star::uno::Reference<
+ virtual ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XPolyPolygon2D > getUNOPolyPolygon() const;
private:
// default: disabled copy/assignment
ImplPolyPolygon(const ImplPolyPolygon&);
ImplPolyPolygon& operator= ( const ImplPolyPolygon& );
+
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > mxPolyPoly;
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D > mxPolyPoly;
-
- ::com::sun::star::rendering::StrokeAttributes maStrokeAttributes;
+ ::com::sun::star::rendering::StrokeAttributes maStrokeAttributes;
- ::com::sun::star::uno::Sequence< double > maFillColor;
- ::com::sun::star::uno::Sequence< double > maStrokeColor;
- bool mbFillColorSet;
- bool mbStrokeColorSet;
+ ::com::sun::star::uno::Sequence< double > maFillColor;
+ ::com::sun::star::uno::Sequence< double > maStrokeColor;
+ bool mbFillColorSet;
+ bool mbStrokeColorSet;
};
}
diff --git a/cppcanvas/source/wrapper/implsprite.cxx b/cppcanvas/source/wrapper/implsprite.cxx
index f2f5fba781bd..4673de2c1f41 100644
--- a/cppcanvas/source/wrapper/implsprite.cxx
+++ b/cppcanvas/source/wrapper/implsprite.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,9 +46,9 @@ namespace cppcanvas
namespace internal
{
- ImplSprite::ImplSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
- const uno::Reference< rendering::XSprite >& rSprite,
- const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) :
+ ImplSprite::ImplSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
+ const uno::Reference< rendering::XSprite >& rSprite,
+ const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) :
mxGraphicDevice(),
mxSprite( rSprite ),
mxAnimatedSprite(),
@@ -66,9 +66,9 @@ namespace cppcanvas
OSL_ENSURE( mpTransformArbiter.get(), "ImplSprite::ImplSprite(): Invalid transformation arbiter");
}
- ImplSprite::ImplSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
- const uno::Reference< rendering::XAnimatedSprite >& rSprite,
- const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) :
+ ImplSprite::ImplSprite( const uno::Reference< rendering::XSpriteCanvas >& rParentCanvas,
+ const uno::Reference< rendering::XAnimatedSprite >& rSprite,
+ const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) :
mxGraphicDevice(),
mxSprite( uno::Reference< rendering::XSprite >(rSprite,
uno::UNO_QUERY) ),
@@ -112,13 +112,13 @@ namespace cppcanvas
if( mxSprite.is() )
{
- rendering::ViewState aViewState;
- rendering::RenderState aRenderState;
-
+ rendering::ViewState aViewState;
+ rendering::RenderState aRenderState;
+
::canvas::tools::initViewState( aViewState );
::canvas::tools::initRenderState( aRenderState );
-
- mxSprite->move( ::basegfx::unotools::point2DFromB2DPoint( rNewPos ),
+
+ mxSprite->move( ::basegfx::unotools::point2DFromB2DPoint( rNewPos ),
aViewState,
aRenderState );
}
@@ -130,16 +130,16 @@ namespace cppcanvas
if( mxSprite.is() )
{
- rendering::ViewState aViewState;
- rendering::RenderState aRenderState;
+ rendering::ViewState aViewState;
+ rendering::RenderState aRenderState;
::canvas::tools::initViewState( aViewState );
::canvas::tools::initRenderState( aRenderState );
::canvas::tools::setViewStateTransform( aViewState,
mpTransformArbiter->getTransformation() );
-
- mxSprite->move( ::basegfx::unotools::point2DFromB2DPoint( rNewPos ),
+
+ mxSprite->move( ::basegfx::unotools::point2DFromB2DPoint( rNewPos ),
aViewState,
aRenderState );
}
@@ -162,7 +162,7 @@ namespace cppcanvas
{
OSL_ENSURE( mxGraphicDevice.is(), "ImplSprite::setClip(): Invalid canvas");
OSL_ENSURE( mxSprite.is(), "ImplSprite::transform(): Invalid sprite");
-
+
if( mxSprite.is() && mxGraphicDevice.is() )
mxSprite->clip( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( mxGraphicDevice,
rClipPoly ) );
@@ -172,20 +172,20 @@ namespace cppcanvas
{
OSL_ENSURE( mxGraphicDevice.is(), "ImplSprite::setClip(): Invalid canvas");
OSL_ENSURE( mxSprite.is(), "ImplSprite::transform(): Invalid sprite");
-
+
if( mxSprite.is() && mxGraphicDevice.is() )
{
- ::basegfx::B2DPolyPolygon aTransformedClipPoly( rClipPoly );
-
- // extract linear part of canvas view transformation (linear means:
- // without translational components)
- ::basegfx::B2DHomMatrix aViewTransform( mpTransformArbiter->getTransformation() );
+ ::basegfx::B2DPolyPolygon aTransformedClipPoly( rClipPoly );
+
+ // extract linear part of canvas view transformation (linear means:
+ // without translational components)
+ ::basegfx::B2DHomMatrix aViewTransform( mpTransformArbiter->getTransformation() );
aViewTransform.set( 0, 2, 0.0 );
aViewTransform.set( 1, 2, 0.0 );
-
- // transform polygon from view to device coordinate space
+
+ // transform polygon from view to device coordinate space
aTransformedClipPoly.transform( aViewTransform );
-
+
mxSprite->clip( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( mxGraphicDevice,
aTransformedClipPoly ) );
}
@@ -195,11 +195,11 @@ namespace cppcanvas
{
OSL_ENSURE( mxGraphicDevice.is(), "ImplSprite::setClip(): Invalid canvas");
OSL_ENSURE( mxSprite.is(), "ImplSprite::setClip(): Invalid sprite");
-
+
if( mxSprite.is() && mxGraphicDevice.is() )
mxSprite->clip( uno::Reference< rendering::XPolyPolygon2D >() );
}
-
+
void ImplSprite::show()
{
OSL_ENSURE( mxSprite.is(), "ImplSprite::show(): Invalid sprite");
diff --git a/cppcanvas/source/wrapper/implsprite.hxx b/cppcanvas/source/wrapper/implsprite.hxx
index 1397791d1f82..d8b4a8600fd1 100644
--- a/cppcanvas/source/wrapper/implsprite.hxx
+++ b/cppcanvas/source/wrapper/implsprite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,16 +46,16 @@ namespace cppcanvas
class ImplSprite : public virtual Sprite
{
public:
- ImplSprite( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSpriteCanvas >& rParentCanvas,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSprite >& rSprite,
- const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
- ImplSprite( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSpriteCanvas >& rParentCanvas,
- const ::com::sun::star::uno::Reference<
+ ImplSprite( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSpriteCanvas >& rParentCanvas,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSprite >& rSprite,
+ const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
+ ImplSprite( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSpriteCanvas >& rParentCanvas,
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XAnimatedSprite >& rSprite,
- const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
+ const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
virtual ~ImplSprite();
virtual void setAlpha( const double& rAlpha );
@@ -65,16 +65,16 @@ namespace cppcanvas
virtual void setClipPixel( const ::basegfx::B2DPolyPolygon& rClipPoly );
virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly );
virtual void setClip();
-
+
virtual void show();
virtual void hide();
virtual void setPriority( double fPriority );
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSprite > getUNOSprite() const;
+ virtual ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSprite > getUNOSprite() const;
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XGraphicDevice >
getGraphicDevice() const;
@@ -83,10 +83,10 @@ namespace cppcanvas
ImplSprite(const ImplSprite&);
ImplSprite& operator=( const ImplSprite& );
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > mxGraphicDevice;
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite > mxSprite;
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > mxAnimatedSprite;
- ImplSpriteCanvas::TransformationArbiterSharedPtr mpTransformArbiter;
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice > mxGraphicDevice;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSprite > mxSprite;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XAnimatedSprite > mxAnimatedSprite;
+ ImplSpriteCanvas::TransformationArbiterSharedPtr mpTransformArbiter;
};
}
}
diff --git a/cppcanvas/source/wrapper/implspritecanvas.cxx b/cppcanvas/source/wrapper/implspritecanvas.cxx
index cc8cf5bdefcc..c116fd970a5e 100644
--- a/cppcanvas/source/wrapper/implspritecanvas.cxx
+++ b/cppcanvas/source/wrapper/implspritecanvas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ namespace cppcanvas
{
OSL_ENSURE( mxSpriteCanvas.is(), "ImplSpriteCanvas::ImplSpriteCanvas(): Invalid canvas" );
}
-
+
ImplSpriteCanvas::ImplSpriteCanvas(const ImplSpriteCanvas& rOrig) :
Canvas(),
BitmapCanvas(),
@@ -104,7 +104,7 @@ namespace cppcanvas
return mxSpriteCanvas->updateScreen( bUpdateAll );
}
-
+
CustomSpriteSharedPtr ImplSpriteCanvas::createCustomSprite( const ::basegfx::B2DSize& rSize ) const
{
OSL_ENSURE( mxSpriteCanvas.is(), "ImplSpriteCanvas::createCustomSprite(): Invalid canvas" );
@@ -112,7 +112,7 @@ namespace cppcanvas
if( !mxSpriteCanvas.is() )
return CustomSpriteSharedPtr();
- return CustomSpriteSharedPtr(
+ return CustomSpriteSharedPtr(
new ImplCustomSprite( mxSpriteCanvas,
mxSpriteCanvas->createCustomSprite( ::basegfx::unotools::size2DFromB2DSize(rSize) ),
mpTransformArbiter ) );
@@ -121,7 +121,7 @@ namespace cppcanvas
SpriteSharedPtr ImplSpriteCanvas::createClonedSprite( const SpriteSharedPtr& rSprite ) const
{
OSL_ENSURE( mxSpriteCanvas.is(), "ImplSpriteCanvas::createCustomSprite(): Invalid canvas" );
- OSL_ENSURE( rSprite.get() != NULL && rSprite->getUNOSprite().is(),
+ OSL_ENSURE( rSprite.get() != NULL && rSprite->getUNOSprite().is(),
"ImplSpriteCanvas::createCustomSprite(): Invalid sprite" );
if( !mxSpriteCanvas.is() ||
@@ -131,16 +131,16 @@ namespace cppcanvas
return SpriteSharedPtr();
}
- return SpriteSharedPtr(
+ return SpriteSharedPtr(
new ImplSprite( mxSpriteCanvas,
mxSpriteCanvas->createClonedSprite( rSprite->getUNOSprite() ),
mpTransformArbiter ) );
}
- SpriteSharedPtr ImplSpriteCanvas::createSpriteFromBitmaps( const uno::Sequence< uno::Reference< rendering::XBitmap > >& rAnimationBitmaps,
- sal_Int8 nInterpolationMode )
+ SpriteSharedPtr ImplSpriteCanvas::createSpriteFromBitmaps( const uno::Sequence< uno::Reference< rendering::XBitmap > >& rAnimationBitmaps,
+ sal_Int8 nInterpolationMode )
{
- return SpriteSharedPtr( new internal::ImplSprite( mxSpriteCanvas,
+ return SpriteSharedPtr( new internal::ImplSprite( mxSpriteCanvas,
mxSpriteCanvas->createSpriteFromBitmaps( rAnimationBitmaps,
nInterpolationMode ),
mpTransformArbiter ) );
diff --git a/cppcanvas/source/wrapper/implspritecanvas.hxx b/cppcanvas/source/wrapper/implspritecanvas.hxx
index d308b313b7dd..a6844431e456 100644
--- a/cppcanvas/source/wrapper/implspritecanvas.hxx
+++ b/cppcanvas/source/wrapper/implspritecanvas.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,29 +48,29 @@ namespace cppcanvas
class ImplSpriteCanvas : public virtual SpriteCanvas, protected virtual ImplBitmapCanvas
{
public:
- ImplSpriteCanvas( const ::com::sun::star::uno::Reference<
+ ImplSpriteCanvas( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XSpriteCanvas >& rCanvas );
ImplSpriteCanvas(const ImplSpriteCanvas&);
virtual ~ImplSpriteCanvas();
- virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix );
-
- virtual bool updateScreen( bool bUpdateAll ) const;
+ virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix );
- virtual CustomSpriteSharedPtr createCustomSprite( const ::basegfx::B2DSize& ) const;
- virtual SpriteSharedPtr createClonedSprite( const SpriteSharedPtr& ) const;
+ virtual bool updateScreen( bool bUpdateAll ) const;
+
+ virtual CustomSpriteSharedPtr createCustomSprite( const ::basegfx::B2DSize& ) const;
+ virtual SpriteSharedPtr createClonedSprite( const SpriteSharedPtr& ) const;
- SpriteSharedPtr createSpriteFromBitmaps(
- const ::com::sun::star::uno::Sequence<
- ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
- sal_Int8 interpolationMode );
+ SpriteSharedPtr createSpriteFromBitmaps(
+ const ::com::sun::star::uno::Sequence<
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XBitmap > >& animationBitmaps,
+ sal_Int8 interpolationMode );
- virtual CanvasSharedPtr clone() const;
+ virtual CanvasSharedPtr clone() const;
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XSpriteCanvas > getUNOSpriteCanvas() const;
+ virtual ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XSpriteCanvas > getUNOSpriteCanvas() const;
/** This class passes the view transformation
to child sprites
@@ -80,16 +80,16 @@ namespace cppcanvas
itself, but has somehow pass an object to child
sprites those can query for the canvas' view transform.
*/
- class TransformationArbiter
+ class TransformationArbiter
{
public:
TransformationArbiter();
- void setTransformation( const ::basegfx::B2DHomMatrix& rViewTransform );
- ::basegfx::B2DHomMatrix getTransformation() const;
+ void setTransformation( const ::basegfx::B2DHomMatrix& rViewTransform );
+ ::basegfx::B2DHomMatrix getTransformation() const;
private:
- ::basegfx::B2DHomMatrix maTransformation;
+ ::basegfx::B2DHomMatrix maTransformation;
};
typedef ::boost::shared_ptr< TransformationArbiter > TransformationArbiterSharedPtr;
@@ -98,8 +98,8 @@ namespace cppcanvas
// default: disabled assignment
ImplSpriteCanvas& operator=( const ImplSpriteCanvas& );
- const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSpriteCanvas > mxSpriteCanvas;
- TransformationArbiterSharedPtr mpTransformArbiter;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XSpriteCanvas > mxSpriteCanvas;
+ TransformationArbiterSharedPtr mpTransformArbiter;
};
}
}
diff --git a/cppcanvas/source/wrapper/impltext.cxx b/cppcanvas/source/wrapper/impltext.cxx
index 68592105c14a..57433c7c8baa 100644
--- a/cppcanvas/source/wrapper/impltext.cxx
+++ b/cppcanvas/source/wrapper/impltext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,8 +46,8 @@ namespace cppcanvas
namespace internal
{
- ImplText::ImplText( const CanvasSharedPtr& rParentCanvas,
- const ::rtl::OUString& rText ) :
+ ImplText::ImplText( const CanvasSharedPtr& rParentCanvas,
+ const ::rtl::OUString& rText ) :
CanvasGraphicHelper( rParentCanvas ),
mpFont(),
maText(rText)
diff --git a/cppcanvas/source/wrapper/impltext.hxx b/cppcanvas/source/wrapper/impltext.hxx
index a45e7dab2114..c24efece4463 100644
--- a/cppcanvas/source/wrapper/impltext.hxx
+++ b/cppcanvas/source/wrapper/impltext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@ namespace cppcanvas
{
public:
- ImplText( const CanvasSharedPtr& rParentCanvas,
- const ::rtl::OUString& rText );
+ ImplText( const CanvasSharedPtr& rParentCanvas,
+ const ::rtl::OUString& rText );
virtual ~ImplText();
@@ -62,8 +62,8 @@ namespace cppcanvas
ImplText(const ImplText&);
ImplText& operator= ( const ImplText& );
- FontSharedPtr mpFont;
- ::rtl::OUString maText;
+ FontSharedPtr mpFont;
+ ::rtl::OUString maText;
};
}
}
diff --git a/cppcanvas/source/wrapper/vclfactory.cxx b/cppcanvas/source/wrapper/vclfactory.cxx
index 870de321055c..b4a92ef3eba1 100644
--- a/cppcanvas/source/wrapper/vclfactory.cxx
+++ b/cppcanvas/source/wrapper/vclfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,15 +71,15 @@ namespace cppcanvas
VCLFactory::VCLFactory()
{
}
-
+
VCLFactory::~VCLFactory()
{
}
BitmapCanvasSharedPtr VCLFactory::createCanvas( const ::Window& rVCLWindow )
- {
- return BitmapCanvasSharedPtr(
- new internal::ImplBitmapCanvas(
+ {
+ return BitmapCanvasSharedPtr(
+ new internal::ImplBitmapCanvas(
uno::Reference< rendering::XBitmapCanvas >(
rVCLWindow.GetCanvas(),
uno::UNO_QUERY) ) );
@@ -87,14 +87,14 @@ namespace cppcanvas
BitmapCanvasSharedPtr VCLFactory::createCanvas( const uno::Reference< rendering::XBitmapCanvas >& xCanvas )
{
- return BitmapCanvasSharedPtr(
+ return BitmapCanvasSharedPtr(
new internal::ImplBitmapCanvas( xCanvas ) );
}
SpriteCanvasSharedPtr VCLFactory::createSpriteCanvas( const ::Window& rVCLWindow ) const
{
- return SpriteCanvasSharedPtr(
- new internal::ImplSpriteCanvas(
+ return SpriteCanvasSharedPtr(
+ new internal::ImplSpriteCanvas(
uno::Reference< rendering::XSpriteCanvas >(
rVCLWindow.GetSpriteCanvas(),
uno::UNO_QUERY) ) );
@@ -102,25 +102,25 @@ namespace cppcanvas
SpriteCanvasSharedPtr VCLFactory::createSpriteCanvas( const uno::Reference< rendering::XSpriteCanvas >& xCanvas ) const
{
- return SpriteCanvasSharedPtr(
+ return SpriteCanvasSharedPtr(
new internal::ImplSpriteCanvas( xCanvas ) );
}
- SpriteCanvasSharedPtr VCLFactory::createFullscreenSpriteCanvas( const ::Window& rVCLWindow,
- const Size& rFullscreenSize ) const
+ SpriteCanvasSharedPtr VCLFactory::createFullscreenSpriteCanvas( const ::Window& rVCLWindow,
+ const Size& rFullscreenSize ) const
{
- return SpriteCanvasSharedPtr(
- new internal::ImplSpriteCanvas(
+ return SpriteCanvasSharedPtr(
+ new internal::ImplSpriteCanvas(
uno::Reference< rendering::XSpriteCanvas >(
rVCLWindow.GetFullscreenSpriteCanvas( rFullscreenSize ),
uno::UNO_QUERY) ) );
}
- PolyPolygonSharedPtr VCLFactory::createPolyPolygon( const CanvasSharedPtr& rCanvas,
- const ::Polygon& rPoly ) const
+ PolyPolygonSharedPtr VCLFactory::createPolyPolygon( const CanvasSharedPtr& rCanvas,
+ const ::Polygon& rPoly ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"VCLFactory::createPolyPolygon(): Invalid canvas" );
if( rCanvas.get() == NULL )
@@ -130,18 +130,18 @@ namespace cppcanvas
if( !xCanvas.is() )
return PolyPolygonSharedPtr();
- return PolyPolygonSharedPtr(
- new internal::ImplPolyPolygon( rCanvas,
+ return PolyPolygonSharedPtr(
+ new internal::ImplPolyPolygon( rCanvas,
::vcl::unotools::xPolyPolygonFromPolygon(
xCanvas->getDevice(),
rPoly) ) );
}
- PolyPolygonSharedPtr VCLFactory::createPolyPolygon( const CanvasSharedPtr& rCanvas,
- const ::PolyPolygon& rPolyPoly ) const
+ PolyPolygonSharedPtr VCLFactory::createPolyPolygon( const CanvasSharedPtr& rCanvas,
+ const ::PolyPolygon& rPolyPoly ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"VCLFactory::createPolyPolygon(): Invalid canvas" );
if( rCanvas.get() == NULL )
@@ -151,20 +151,20 @@ namespace cppcanvas
if( !xCanvas.is() )
return PolyPolygonSharedPtr();
- return PolyPolygonSharedPtr(
- new internal::ImplPolyPolygon( rCanvas,
+ return PolyPolygonSharedPtr(
+ new internal::ImplPolyPolygon( rCanvas,
::vcl::unotools::xPolyPolygonFromPolyPolygon(
xCanvas->getDevice(),
rPolyPoly) ) );
}
- BitmapSharedPtr VCLFactory::createBitmap( const CanvasSharedPtr& rCanvas,
- const ::Size& rSize ) const
+ BitmapSharedPtr VCLFactory::createBitmap( const CanvasSharedPtr& rCanvas,
+ const ::Size& rSize ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"VCLFactory::createBitmap(): Invalid canvas" );
-
+
if( rCanvas.get() == NULL )
return BitmapSharedPtr();
@@ -172,19 +172,19 @@ namespace cppcanvas
if( !xCanvas.is() )
return BitmapSharedPtr();
- return BitmapSharedPtr(
- new internal::ImplBitmap( rCanvas,
- xCanvas->getDevice()->createCompatibleBitmap(
+ return BitmapSharedPtr(
+ new internal::ImplBitmap( rCanvas,
+ xCanvas->getDevice()->createCompatibleBitmap(
::vcl::unotools::integerSize2DFromSize(rSize) ) ) );
}
- BitmapSharedPtr VCLFactory::createAlphaBitmap( const CanvasSharedPtr& rCanvas,
- const ::Size& rSize ) const
+ BitmapSharedPtr VCLFactory::createAlphaBitmap( const CanvasSharedPtr& rCanvas,
+ const ::Size& rSize ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"VCLFactory::createBitmap(): Invalid canvas" );
-
+
if( rCanvas.get() == NULL )
return BitmapSharedPtr();
@@ -192,17 +192,17 @@ namespace cppcanvas
if( !xCanvas.is() )
return BitmapSharedPtr();
- return BitmapSharedPtr(
- new internal::ImplBitmap( rCanvas,
- xCanvas->getDevice()->createCompatibleAlphaBitmap(
+ return BitmapSharedPtr(
+ new internal::ImplBitmap( rCanvas,
+ xCanvas->getDevice()->createCompatibleAlphaBitmap(
::vcl::unotools::integerSize2DFromSize(rSize) ) ) );
}
- BitmapSharedPtr VCLFactory::createBitmap( const CanvasSharedPtr& rCanvas,
- const ::Bitmap& rBitmap ) const
+ BitmapSharedPtr VCLFactory::createBitmap( const CanvasSharedPtr& rCanvas,
+ const ::Bitmap& rBitmap ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"VCLFactory::createBitmap(): Invalid canvas" );
if( rCanvas.get() == NULL )
@@ -212,17 +212,17 @@ namespace cppcanvas
if( !xCanvas.is() )
return BitmapSharedPtr();
- return BitmapSharedPtr( new internal::ImplBitmap( rCanvas,
+ return BitmapSharedPtr( new internal::ImplBitmap( rCanvas,
::vcl::unotools::xBitmapFromBitmap(
xCanvas->getDevice(),
rBitmap) ) );
}
- BitmapSharedPtr VCLFactory::createBitmap( const CanvasSharedPtr& rCanvas,
- const ::BitmapEx& rBmpEx ) const
+ BitmapSharedPtr VCLFactory::createBitmap( const CanvasSharedPtr& rCanvas,
+ const ::BitmapEx& rBmpEx ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"VCLFactory::createBitmap(): Invalid canvas" );
if( rCanvas.get() == NULL )
@@ -232,18 +232,18 @@ namespace cppcanvas
if( !xCanvas.is() )
return BitmapSharedPtr();
- return BitmapSharedPtr( new internal::ImplBitmap( rCanvas,
+ return BitmapSharedPtr( new internal::ImplBitmap( rCanvas,
::vcl::unotools::xBitmapFromBitmapEx(
xCanvas->getDevice(),
rBmpEx) ) );
}
- RendererSharedPtr VCLFactory::createRenderer( const CanvasSharedPtr& rCanvas,
- const ::Graphic& rGraphic,
- const Renderer::Parameters& rParms ) const
+ RendererSharedPtr VCLFactory::createRenderer( const CanvasSharedPtr& rCanvas,
+ const ::Graphic& rGraphic,
+ const Renderer::Parameters& rParms ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"VCLFactory::createRenderer(): Invalid canvas" );
if( rCanvas.get() == NULL )
@@ -254,20 +254,20 @@ namespace cppcanvas
return RendererSharedPtr();
if( rGraphic.GetType() == GRAPHIC_GDIMETAFILE )
- return RendererSharedPtr( new internal::ImplRenderer( rCanvas,
+ return RendererSharedPtr( new internal::ImplRenderer( rCanvas,
rGraphic.GetGDIMetaFile(),
rParms ) );
else
- return RendererSharedPtr( new internal::ImplRenderer( rCanvas,
+ return RendererSharedPtr( new internal::ImplRenderer( rCanvas,
rGraphic.GetBitmapEx(),
rParms ) );
}
- RendererSharedPtr VCLFactory::createRenderer( const CanvasSharedPtr& rCanvas,
- const ::GDIMetaFile& rMtf,
- const Renderer::Parameters& rParms ) const
+ RendererSharedPtr VCLFactory::createRenderer( const CanvasSharedPtr& rCanvas,
+ const ::GDIMetaFile& rMtf,
+ const Renderer::Parameters& rParms ) const
{
- return RendererSharedPtr( new internal::ImplRenderer( rCanvas,
+ return RendererSharedPtr( new internal::ImplRenderer( rCanvas,
rMtf,
rParms ) );
}
@@ -275,7 +275,7 @@ namespace cppcanvas
SpriteSharedPtr VCLFactory::createAnimatedSprite( const SpriteCanvasSharedPtr& rCanvas, const ::Animation& rAnim ) const
{
OSL_ENSURE( rCanvas.get() != NULL &&
- rCanvas->getUNOCanvas().is(),
+ rCanvas->getUNOCanvas().is(),
"VCLFactory::createAnimatedSprite(): Invalid canvas" );
if( rCanvas.get() == NULL )
@@ -324,7 +324,7 @@ namespace cppcanvas
// simply clear bitmap to transparent
aBmpEx.Erase( ::Color( 255, 0,0,0 ) );
}
- else if( rAnimBmp.eDisposal == DISPOSE_PREVIOUS )
+ else if( rAnimBmp.eDisposal == DISPOSE_PREVIOUS )
{
// copy in last known full frame
aBmpEx = aRestoreBuffer;
@@ -335,10 +335,10 @@ namespace cppcanvas
"VCLFactory::createAnimatedSprite(): Somebody set the deprecated DISPOSE_FULL at the Animation" );
// update display
- aBmpEx.CopyPixel( Rectangle( rAnimBmp.aPosPix,
- rAnimBmp.aSizePix ),
+ aBmpEx.CopyPixel( Rectangle( rAnimBmp.aPosPix,
+ rAnimBmp.aSizePix ),
Rectangle( aEmptyPoint,
- rAnimBmp.aSizePix ),
+ rAnimBmp.aSizePix ),
&rAnimBmp.aBmpEx );
// store last DISPOSE_NOT frame, for later
@@ -357,7 +357,7 @@ namespace cppcanvas
TextSharedPtr VCLFactory::createText( const CanvasSharedPtr& rCanvas, const ::rtl::OUString& rText ) const
{
- return TextSharedPtr( new internal::ImplText( rCanvas,
+ return TextSharedPtr( new internal::ImplText( rCanvas,
rText ) );
}
diff --git a/dtrans/inc/pch/precompiled_dtrans.cxx b/dtrans/inc/pch/precompiled_dtrans.cxx
index 9808c6ef2b49..737a4e1a3928 100644
--- a/dtrans/inc/pch/precompiled_dtrans.cxx
+++ b/dtrans/inc/pch/precompiled_dtrans.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/dtrans/inc/pch/precompiled_dtrans.hxx b/dtrans/inc/pch/precompiled_dtrans.hxx
index 085e7c646780..2f1e7f4e829b 100644
--- a/dtrans/inc/pch/precompiled_dtrans.hxx
+++ b/dtrans/inc/pch/precompiled_dtrans.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/dtrans/source/cnttype/mcnttfactory.cxx b/dtrans/source/cnttype/mcnttfactory.cxx
index 3197ed8b050b..9ed538c40d54 100644
--- a/dtrans/source/cnttype/mcnttfactory.cxx
+++ b/dtrans/source/cnttype/mcnttfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ namespace
// ctor
//------------------------------------------------------------------------
-CMimeContentTypeFactory::CMimeContentTypeFactory( const Reference< XMultiServiceFactory >& rSrvMgr ) :
+CMimeContentTypeFactory::CMimeContentTypeFactory( const Reference< XMultiServiceFactory >& rSrvMgr ) :
m_SrvMgr( rSrvMgr )
{
}
@@ -91,17 +91,17 @@ Reference< XMimeContentType > CMimeContentTypeFactory::createMimeContentType( co
// XServiceInfo
// -------------------------------------------------
-OUString SAL_CALL CMimeContentTypeFactory::getImplementationName( )
+OUString SAL_CALL CMimeContentTypeFactory::getImplementationName( )
throw( RuntimeException )
{
return OUString::createFromAscii( MIMECONTENTTYPEFACTORY_IMPL_NAME );
}
// -------------------------------------------------
-// XServiceInfo
+// XServiceInfo
// -------------------------------------------------
-sal_Bool SAL_CALL CMimeContentTypeFactory::supportsService( const OUString& ServiceName )
+sal_Bool SAL_CALL CMimeContentTypeFactory::supportsService( const OUString& ServiceName )
throw( RuntimeException )
{
Sequence < OUString > SupportedServicesNames = MimeContentTypeFactory_getSupportedServiceNames();
@@ -114,10 +114,10 @@ sal_Bool SAL_CALL CMimeContentTypeFactory::supportsService( const OUString& Serv
}
// -------------------------------------------------
-// XServiceInfo
+// XServiceInfo
// -------------------------------------------------
-Sequence< OUString > SAL_CALL CMimeContentTypeFactory::getSupportedServiceNames( )
+Sequence< OUString > SAL_CALL CMimeContentTypeFactory::getSupportedServiceNames( )
throw( RuntimeException )
{
return MimeContentTypeFactory_getSupportedServiceNames( );
diff --git a/dtrans/source/cnttype/mcnttfactory.hxx b/dtrans/source/cnttype/mcnttfactory.hxx
index 99f40828910d..ef9a5937e078 100644
--- a/dtrans/source/cnttype/mcnttfactory.hxx
+++ b/dtrans/source/cnttype/mcnttfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,26 +58,26 @@ public:
//------------------------------------------------
// XMimeContentTypeFactory
- //------------------------------------------------
-
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XMimeContentType > SAL_CALL createMimeContentType( const ::rtl::OUString& aContentType )
+ //------------------------------------------------
+
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XMimeContentType > SAL_CALL createMimeContentType( const ::rtl::OUString& aContentType )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
//------------------------------------------------
// XServiceInfo
- //------------------------------------------------
+ //------------------------------------------------
- virtual ::rtl::OUString SAL_CALL getImplementationName( )
+ virtual ::rtl::OUString SAL_CALL getImplementationName( )
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
throw(::com::sun::star::uno::RuntimeException);
private:
- ::osl::Mutex m_aMutex;
+ ::osl::Mutex m_aMutex;
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
};
diff --git a/dtrans/source/cnttype/mcnttype.cxx b/dtrans/source/cnttype/mcnttype.cxx
index 98518ea59508..dff702d3a421 100644
--- a/dtrans/source/cnttype/mcnttype.cxx
+++ b/dtrans/source/cnttype/mcnttype.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,7 +64,7 @@ CMimeContentType::CMimeContentType( const OUString& aCntType )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CMimeContentType::getMediaType( ) throw(RuntimeException)
@@ -73,7 +73,7 @@ OUString SAL_CALL CMimeContentType::getMediaType( ) throw(RuntimeException)
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CMimeContentType::getMediaSubtype( ) throw(RuntimeException)
@@ -82,7 +82,7 @@ OUString SAL_CALL CMimeContentType::getMediaSubtype( ) throw(RuntimeException)
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CMimeContentType::getFullMediaType( ) throw(RuntimeException)
@@ -91,7 +91,7 @@ OUString SAL_CALL CMimeContentType::getFullMediaType( ) throw(RuntimeException)
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
Sequence< OUString > SAL_CALL CMimeContentType::getParameters( ) throw(RuntimeException)
@@ -113,7 +113,7 @@ Sequence< OUString > SAL_CALL CMimeContentType::getParameters( ) throw(RuntimeEx
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CMimeContentType::hasParameter( const OUString& aName ) throw(RuntimeException)
@@ -123,9 +123,9 @@ sal_Bool SAL_CALL CMimeContentType::hasParameter( const OUString& aName ) throw(
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-
+
OUString SAL_CALL CMimeContentType::getParameterValue( const OUString& aName ) throw(NoSuchElementException, RuntimeException)
{
MutexGuard aGuard( m_aMutex );
@@ -137,7 +137,7 @@ OUString SAL_CALL CMimeContentType::getParameterValue( const OUString& aName ) t
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CMimeContentType::init( const OUString& aCntType ) throw( IllegalArgumentException )
@@ -152,7 +152,7 @@ void SAL_CALL CMimeContentType::init( const OUString& aCntType ) throw( IllegalA
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CMimeContentType::getSym( void )
@@ -168,7 +168,7 @@ void SAL_CALL CMimeContentType::getSym( void )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CMimeContentType::acceptSym( const OUString& pSymTlb )
@@ -176,21 +176,21 @@ void SAL_CALL CMimeContentType::acceptSym( const OUString& pSymTlb )
if ( pSymTlb.indexOf( m_nxtSym ) < 0 )
throw IllegalArgumentException( );
- getSym();
+ getSym();
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CMimeContentType::skipSpaces( void )
{
while ( SPACE == m_nxtSym )
getSym( );
-}
+}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CMimeContentType::type( void )
@@ -221,7 +221,7 @@ void SAL_CALL CMimeContentType::type( void )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CMimeContentType::subtype( void )
@@ -249,7 +249,7 @@ void SAL_CALL CMimeContentType::subtype( void )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CMimeContentType::trailer( void )
@@ -264,7 +264,7 @@ void SAL_CALL CMimeContentType::trailer( void )
}
else if ( m_nxtSym == OUString::createFromAscii( ";" ) )
{
- // get the parameter name
+ // get the parameter name
getSym( );
skipSpaces( );
@@ -272,7 +272,7 @@ void SAL_CALL CMimeContentType::trailer( void )
throw IllegalArgumentException( );
OUString pname = pName( );
-
+
skipSpaces();
acceptSym( OUString::createFromAscii( "=" ) );
@@ -283,23 +283,23 @@ void SAL_CALL CMimeContentType::trailer( void )
// insert into map
if ( !m_ParameterMap.insert( pair < const OUString, OUString > ( pname, pvalue ) ).second )
- throw IllegalArgumentException( );
+ throw IllegalArgumentException( );
}
else
throw IllegalArgumentException( );
-
+
skipSpaces( );
}
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CMimeContentType::pName( )
{
OUString pname;
-
+
while( m_nxtSym.getLength( ) )
{
if ( isInRange( m_nxtSym, TOKEN ) )
@@ -315,7 +315,7 @@ OUString SAL_CALL CMimeContentType::pName( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CMimeContentType::pValue( )
@@ -344,14 +344,14 @@ OUString SAL_CALL CMimeContentType::pValue( )
}
else
throw IllegalArgumentException( );
-
+
return pvalue;
}
//------------------------------------------------------------------------
// the following combinations within a quoted value are not allowed:
-// '";' (quote sign followed by semicolon) and '" ' (quote sign followed
-// by space)
+// '";' (quote sign followed by semicolon) and '" ' (quote sign followed
+// by space)
//------------------------------------------------------------------------
OUString SAL_CALL CMimeContentType::quotedPValue( )
@@ -360,7 +360,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( )
sal_Bool bAfterQuoteSign = sal_False;
while ( m_nxtSym.getLength( ) )
- {
+ {
if ( bAfterQuoteSign && ((m_nxtSym == SPACE)||(m_nxtSym == SEMICOLON) ) )
break;
else if ( isInRange( m_nxtSym, TOKEN + TSPECIALS + SPACE ) )
@@ -372,7 +372,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( )
bAfterQuoteSign = sal_False;
}
else
- throw IllegalArgumentException( );
+ throw IllegalArgumentException( );
getSym( );
}
@@ -380,7 +380,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CMimeContentType::nonquotedPValue( )
@@ -391,7 +391,7 @@ OUString SAL_CALL CMimeContentType::nonquotedPValue( )
{
if ( isInRange( m_nxtSym, TOKEN ) )
pvalue += m_nxtSym;
- else if ( isInRange( m_nxtSym, OUString::createFromAscii( "; " ) ) )
+ else if ( isInRange( m_nxtSym, OUString::createFromAscii( "; " ) ) )
break;
else
throw IllegalArgumentException( );
@@ -402,7 +402,7 @@ OUString SAL_CALL CMimeContentType::nonquotedPValue( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CMimeContentType::comment( void )
@@ -410,7 +410,7 @@ void SAL_CALL CMimeContentType::comment( void )
while ( m_nxtSym.getLength( ) )
{
if ( isInRange( m_nxtSym, TOKEN + SPACE ) )
- getSym( );
+ getSym( );
else if ( m_nxtSym == OUString::createFromAscii( ")" ) )
break;
else
@@ -419,12 +419,12 @@ void SAL_CALL CMimeContentType::comment( void )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CMimeContentType::isInRange( const rtl::OUString& aChr, const rtl::OUString& aRange )
{
- return ( aRange.indexOf( aChr ) > -1 );
+ return ( aRange.indexOf( aChr ) > -1 );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dtrans/source/cnttype/mcnttype.hxx b/dtrans/source/cnttype/mcnttype.hxx
index 9b5f7a6a43c3..8f00ba94aab1 100644
--- a/dtrans/source/cnttype/mcnttype.hxx
+++ b/dtrans/source/cnttype/mcnttype.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,13 +60,13 @@ public:
virtual ::rtl::OUString SAL_CALL getMediaSubtype( ) throw(::com::sun::star::uno::RuntimeException);
virtual ::rtl::OUString SAL_CALL getFullMediaType( ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getParameters( )
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getParameters( )
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasParameter( const ::rtl::OUString& aName )
+ virtual sal_Bool SAL_CALL hasParameter( const ::rtl::OUString& aName )
throw(::com::sun::star::uno::RuntimeException);
-
- virtual ::rtl::OUString SAL_CALL getParameterValue( const ::rtl::OUString& aName )
+
+ virtual ::rtl::OUString SAL_CALL getParameterValue( const ::rtl::OUString& aName )
throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException);
private:
@@ -83,15 +83,15 @@ private:
rtl::OUString SAL_CALL nonquotedPValue( );
void SAL_CALL comment( void );
sal_Bool SAL_CALL isInRange( const rtl::OUString& aChr, const rtl::OUString& aRange );
-
+
private:
- ::osl::Mutex m_aMutex;
- rtl::OUString m_MediaType;
- rtl::OUString m_MediaSubtype;
- rtl::OUString m_ContentType;
+ ::osl::Mutex m_aMutex;
+ rtl::OUString m_MediaType;
+ rtl::OUString m_MediaSubtype;
+ rtl::OUString m_ContentType;
std::map< rtl::OUString, rtl::OUString > m_ParameterMap;
- sal_Int32 m_nPos;
- rtl::OUString m_nxtSym;
+ sal_Int32 m_nPos;
+ rtl::OUString m_nxtSym;
};
#endif
diff --git a/dtrans/source/cnttype/mcnttype.xml b/dtrans/source/cnttype/mcnttype.xml
index 2a362699eec2..6c84e2a858bf 100644
--- a/dtrans/source/cnttype/mcnttype.xml
+++ b/dtrans/source/cnttype/mcnttype.xml
@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module-description PUBLIC "-//StarOffice//DTD ComponentDescription 1.0//EN" "module-description.dtd">
<module-description xmlns:xlink="http://www.w3.org/1999/xlink">
- <module-name> mcnttype </module-name>
+ <module-name> mcnttype </module-name>
<component-description>
<author> Tino Rachui </author>
- <name> com.sun.star.comp.datatransfer.MimeContentTypeFactory </name>
+ <name> com.sun.star.comp.datatransfer.MimeContentTypeFactory </name>
<description>
The win32 implementation of the datatransfer service.
</description>
- <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
- <language> c++ </language>
+ <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
+ <language> c++ </language>
<status value="beta"/>
- <supported-service> com.sun.star.datatransfer.MimeContentTypeFactory </supported-service>
- <service-dependency> ... </service-dependency>
- <type> com.sun.star.datatransfer.XMimeContentTypeFactory </type>
- <type> com.sun.star.datatransfer.XMimeContentType </type>
- <type> com.sun.star.lang.XMultiServiceFactory </type>
- <type> com.sun.star.lang.XSingleServiceFactory </type>
- <type> com.sun.star.lang.XServiceInfo </type>
- <type> com.sun.star.lang.XTypeProvider </type>
- <type> com.sun.star.lang.IllegalArgumentException </type>
- <type> com.sun.star.uno.TypeClass </type>
- <type> com.sun.star.uno.XWeak </type>
- <type> com.sun.star.uno.XAggregation </type>
- <type> com.sun.star.registry.XRegistryKey </type>
- <type> com.sun.star.container.XSet </type>
+ <supported-service> com.sun.star.datatransfer.MimeContentTypeFactory </supported-service>
+ <service-dependency> ... </service-dependency>
+ <type> com.sun.star.datatransfer.XMimeContentTypeFactory </type>
+ <type> com.sun.star.datatransfer.XMimeContentType </type>
+ <type> com.sun.star.lang.XMultiServiceFactory </type>
+ <type> com.sun.star.lang.XSingleServiceFactory </type>
+ <type> com.sun.star.lang.XServiceInfo </type>
+ <type> com.sun.star.lang.XTypeProvider </type>
+ <type> com.sun.star.lang.IllegalArgumentException </type>
+ <type> com.sun.star.uno.TypeClass </type>
+ <type> com.sun.star.uno.XWeak </type>
+ <type> com.sun.star.uno.XAggregation </type>
+ <type> com.sun.star.registry.XRegistryKey </type>
+ <type> com.sun.star.container.XSet </type>
</component-description>
- <project-build-dependency> cppuhelper </project-build-dependency>
- <project-build-dependency> cppu </project-build-dependency>
- <project-build-dependency> sal </project-build-dependency>
- <runtime-module-dependency> cppuhelper </runtime-module-dependency>
- <runtime-module-dependency> cppu2 </runtime-module-dependency>
- <runtime-module-dependency> sal2 </runtime-module-dependency>
+ <project-build-dependency> cppuhelper </project-build-dependency>
+ <project-build-dependency> cppu </project-build-dependency>
+ <project-build-dependency> sal </project-build-dependency>
+ <runtime-module-dependency> cppuhelper </runtime-module-dependency>
+ <runtime-module-dependency> cppu2 </runtime-module-dependency>
+ <runtime-module-dependency> sal2 </runtime-module-dependency>
</module-description>
diff --git a/dtrans/source/cnttype/mctfentry.cxx b/dtrans/source/cnttype/mctfentry.cxx
index 6b332f0f53d6..a832e65339aa 100644
--- a/dtrans/source/cnttype/mctfentry.cxx
+++ b/dtrans/source/cnttype/mctfentry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_dtrans.hxx"
//-----------------------------------------------------------------
-// includes of other projects
+// includes of other projects
//-----------------------------------------------------------------
#include <cppuhelper/factory.hxx>
#include <com/sun/star/container/XSet.hpp>
@@ -45,36 +45,36 @@
// the service names
#define MIMECONTENTTYPEFACTORY_SERVICE_NAME "com.sun.star.datatransfer.MimeContentTypeFactory"
-// the implementation names
+// the implementation names
#define MIMECONTENTTYPEFACTORY_IMPL_NAME "com.sun.star.datatransfer.MimeCntTypeFactory"
// the registry key names
// a key under which this service will be registered, Format: -> "/ImplName/UNO/SERVICES/ServiceName"
-// < Implementation-Name ></UNO/SERVICES/>< Service-Name >
+// < Implementation-Name ></UNO/SERVICES/>< Service-Name >
#define MIMECONTENTTYPEFACTORY_REGKEY_NAME "/com.sun.star.datatransfer.MimeCntTypeFactory/UNO/SERVICES/com.sun.star.datatransfer.MimeContentTypeFactory"
//-----------------------------------------------------------------------------------------------------------
// namespace directives
//-----------------------------------------------------------------------------------------------------------
-using namespace ::rtl ;
-using namespace ::cppu ;
-using namespace ::com::sun::star::uno ;
-using namespace ::com::sun::star::registry ;
+using namespace ::rtl ;
+using namespace ::cppu ;
+using namespace ::com::sun::star::uno ;
+using namespace ::com::sun::star::registry ;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::datatransfer;
//-----------------------------------------------------------------
// create a static object to initialize the shell9x library
//-----------------------------------------------------------------
-
+
namespace
{
//-----------------------------------------------------------------------------------------------------------
// functions to create a new Clipboad instance; is needed by factory helper implementation
// @param rServiceManager - service manager, useful if the component needs other uno services
- // so we should give it to every UNO-Implementation component
+ // so we should give it to every UNO-Implementation component
//-----------------------------------------------------------------------------------------------------------
Reference< XInterface > SAL_CALL createInstance( const Reference< XMultiServiceFactory >& rServiceManager )
@@ -84,10 +84,10 @@ namespace
}
//-----------------------------------------------------------------------------------------------------------
-// the 3 important functions which will be exported
+// the 3 important functions which will be exported
//-----------------------------------------------------------------------------------------------------------
-extern "C"
+extern "C"
{
//----------------------------------------------------------------------
@@ -115,13 +115,13 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
{
try
{
- Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
+ Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
pXNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( MIMECONTENTTYPEFACTORY_REGKEY_NAME ) ) );
bRetVal = sal_True;
}
catch( InvalidRegistryException& )
- {
- OSL_ENSURE(sal_False, "InvalidRegistryException caught");
+ {
+ OSL_ENSURE(sal_False, "InvalidRegistryException caught");
bRetVal = sal_False;
}
}
@@ -130,7 +130,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
}
//----------------------------------------------------------------------
-// component_getFactory
+// component_getFactory
// returns a factory to create XFilePicker-Services
//----------------------------------------------------------------------
@@ -141,8 +141,8 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, MIMECONTENTTYPEFACTORY_IMPL_NAME ) ) )
{
Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( MIMECONTENTTYPEFACTORY_SERVICE_NAME ) );
-
+ aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( MIMECONTENTTYPEFACTORY_SERVICE_NAME ) );
+
Reference< XSingleServiceFactory > xFactory ( createSingleFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
OUString::createFromAscii( pImplName ),
@@ -152,7 +152,7 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
{
xFactory->acquire();
pRet = xFactory.get();
- }
+ }
}
return pRet;
diff --git a/dtrans/source/cnttype/wbench/testcnttype.cxx b/dtrans/source/cnttype/wbench/testcnttype.cxx
index dc569a8446d1..c2972036c2dd 100644
--- a/dtrans/source/cnttype/wbench/testcnttype.cxx
+++ b/dtrans/source/cnttype/wbench/testcnttype.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
//_________________________________________________________________________________________________________________________
-// other includes
+// other includes
//_________________________________________________________________________________________________________________________
#include <cppuhelper/servicefactory.hxx>
#include <com/sun/star/lang/XTypeProvider.hpp>
@@ -56,19 +56,19 @@
#define RDB_SYSPATH "d:\\projects\\src621\\dtrans\\wntmsci7\\bin\\applicat.rdb"
//------------------------------------------------------------
-// namesapces
+// namesapces
//------------------------------------------------------------
-using namespace ::rtl;
+using namespace ::rtl;
using namespace ::std;
using namespace ::cppu;
using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::container;
//------------------------------------------------------------
-// globales
+// globales
//------------------------------------------------------------
//################################################################
@@ -81,7 +81,7 @@ void CheckMimeContentType( const OUString& aCntType, const OUString& aType, cons
OSL_ASSERT( aType == xMimeCntType->getMediaType ( ) );
OSL_ASSERT( aSubtype == xMimeCntType->getMediaSubtype ( ) );
-
+
try
{
Sequence< OUString > seqParam = xMimeCntType->getParameters( );
@@ -105,13 +105,13 @@ void CheckMimeContentType( const OUString& aCntType, const OUString& aType, cons
}
catch( NoSuchElementException& )
{
-
+
}
}
*/
//----------------------------------------------------------------
-//
+//
//----------------------------------------------------------------
void ShutdownServiceMgr( Reference< XMultiServiceFactory >& SrvMgr )
@@ -121,7 +121,7 @@ void ShutdownServiceMgr( Reference< XMultiServiceFactory >& SrvMgr )
if ( !xComponent.is() )
OSL_ENSURE(sal_False, "Error shuting down");
-
+
// Dispose and clear factory
xComponent->dispose();
SrvMgr.clear();
@@ -129,7 +129,7 @@ void ShutdownServiceMgr( Reference< XMultiServiceFactory >& SrvMgr )
}
//----------------------------------------------------------------
-//
+//
//----------------------------------------------------------------
sal_Bool readCntTypesFromFileIntoVector( char* fname, vector< string >& vecData )
@@ -145,7 +145,7 @@ sal_Bool readCntTypesFromFileIntoVector( char* fname, vector< string >& vecData
char line[1024];
while ( fscanf( fstream, "%[^\n]s", line ) != EOF )
- {
+ {
vecData.push_back( line );
fgetc( fstream );
}
@@ -156,7 +156,7 @@ sal_Bool readCntTypesFromFileIntoVector( char* fname, vector< string >& vecData
}
//----------------------------------------------------------------
-//
+//
//----------------------------------------------------------------
sal_Bool processCntTypesAndWriteResultIntoFile( char* fname, vector< string >& vecData, Reference< XMimeContentTypeFactory > cnttypeFactory )
@@ -174,7 +174,7 @@ sal_Bool processCntTypesAndWriteResultIntoFile( char* fname, vector< string >& v
const char* pStr = NULL;
for ( vector< string >::iterator iter = vecData.begin( ); iter != iter_end; ++iter )
- {
+ {
try
{
fprintf( fstream, "Gelesen: %s\n", iter->c_str( ) );
@@ -191,14 +191,14 @@ sal_Bool processCntTypesAndWriteResultIntoFile( char* fname, vector< string >& v
{
fwprintf( fstream, OUString::createFromAscii("PName: %s\n" ), seqParam[i].getStr( ) );
fwprintf( fstream, OUString::createFromAscii("PValue: %s\n" ), xMCntTyp->getParameterValue( seqParam[i] ).getStr( ) );
- }
+ }
}
catch( IllegalArgumentException& ex )
{
- fwprintf( fstream, OUString::createFromAscii( "Fehlerhafter Content-Type gelesen!!!\n\n" ) );
+ fwprintf( fstream, OUString::createFromAscii( "Fehlerhafter Content-Type gelesen!!!\n\n" ) );
}
catch( NoSuchElementException& )
- {
+ {
fwprintf( fstream, OUString::createFromAscii( "Parameterwert nicht vorhanden\n" ) );
}
catch( ... )
@@ -210,12 +210,12 @@ sal_Bool processCntTypesAndWriteResultIntoFile( char* fname, vector< string >& v
}
fclose( fstream );
-
+
return sal_True;
}
//----------------------------------------------------------------
-// main
+// main
//----------------------------------------------------------------
int SAL_CALL main( int nArgc, char* argv[] )
@@ -245,7 +245,7 @@ int SAL_CALL main( int nArgc, char* argv[] )
ShutdownServiceMgr( g_xFactory );
}
- Reference< XMimeContentTypeFactory >
+ Reference< XMimeContentTypeFactory >
xMCntTypeFactory( g_xFactory->createInstance( OUString::createFromAscii( "com.sun.star.datatransfer.MimeContentTypeFactory" ) ), UNO_QUERY );
if ( !xMCntTypeFactory.is( ) )
@@ -266,7 +266,7 @@ int SAL_CALL main( int nArgc, char* argv[] )
ShutdownServiceMgr( g_xFactory );
- return 0;
+ return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dtrans/source/generic/clipboardmanager.cxx b/dtrans/source/generic/clipboardmanager.cxx
index 1221cd20f046..2ef87ec3816e 100644
--- a/dtrans/source/generic/clipboardmanager.cxx
+++ b/dtrans/source/generic/clipboardmanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,10 +43,10 @@ using namespace std;
using ::dtrans::ClipboardManager;
using ::rtl::OUString;
-
+
// ------------------------------------------------------------------------
-ClipboardManager::ClipboardManager():
+ClipboardManager::ClipboardManager():
WeakComponentImplHelper3< XClipboardManager, XEventListener, XServiceInfo > (m_aMutex),
m_aDefaultName(OUString::createFromAscii("default"))
{
@@ -60,7 +60,7 @@ ClipboardManager::~ClipboardManager()
// ------------------------------------------------------------------------
-OUString SAL_CALL ClipboardManager::getImplementationName( )
+OUString SAL_CALL ClipboardManager::getImplementationName( )
throw(RuntimeException)
{
return OUString::createFromAscii(CLIPBOARDMANAGER_IMPLEMENTATION_NAME);
@@ -68,7 +68,7 @@ OUString SAL_CALL ClipboardManager::getImplementationName( )
// ------------------------------------------------------------------------
-sal_Bool SAL_CALL ClipboardManager::supportsService( const OUString& ServiceName )
+sal_Bool SAL_CALL ClipboardManager::supportsService( const OUString& ServiceName )
throw(RuntimeException)
{
Sequence < OUString > SupportedServicesNames = ClipboardManager_getSupportedServiceNames();
@@ -82,7 +82,7 @@ sal_Bool SAL_CALL ClipboardManager::supportsService( const OUString& ServiceName
// ------------------------------------------------------------------------
-Sequence< OUString > SAL_CALL ClipboardManager::getSupportedServiceNames( )
+Sequence< OUString > SAL_CALL ClipboardManager::getSupportedServiceNames( )
throw(RuntimeException)
{
return ClipboardManager_getSupportedServiceNames();
@@ -90,7 +90,7 @@ Sequence< OUString > SAL_CALL ClipboardManager::getSupportedServiceNames( )
// ------------------------------------------------------------------------
-Reference< XClipboard > SAL_CALL ClipboardManager::getClipboard( const OUString& aName )
+Reference< XClipboard > SAL_CALL ClipboardManager::getClipboard( const OUString& aName )
throw(NoSuchElementException, RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -100,7 +100,7 @@ Reference< XClipboard > SAL_CALL ClipboardManager::getClipboard( const OUString&
throw DisposedException(OUString::createFromAscii("object is disposed."),
static_cast < XClipboardManager * > (this));
- ClipboardMap::iterator iter =
+ ClipboardMap::iterator iter =
m_aClipboardMap.find(aName.getLength() ? aName : m_aDefaultName);
if (iter != m_aClipboardMap.end())
@@ -111,28 +111,28 @@ Reference< XClipboard > SAL_CALL ClipboardManager::getClipboard( const OUString&
// ------------------------------------------------------------------------
-void SAL_CALL ClipboardManager::addClipboard( const Reference< XClipboard >& xClipboard )
+void SAL_CALL ClipboardManager::addClipboard( const Reference< XClipboard >& xClipboard )
throw(IllegalArgumentException, ElementExistException, RuntimeException)
{
OSL_ASSERT(xClipboard.is());
// check parameter
if (!xClipboard.is())
- throw IllegalArgumentException(OUString::createFromAscii("empty reference"),
+ throw IllegalArgumentException(OUString::createFromAscii("empty reference"),
static_cast < XClipboardManager * > (this), 1);
// the name "default" is reserved for internal use
OUString aName = xClipboard->getName();
if (m_aDefaultName.compareTo(aName) == 0)
- throw IllegalArgumentException(OUString::createFromAscii("name reserved"),
+ throw IllegalArgumentException(OUString::createFromAscii("name reserved"),
static_cast < XClipboardManager * > (this), 1);
// try to add new clipboard to the list
ClearableMutexGuard aGuard(m_aMutex);
- if (!rBHelper.bDisposed && !rBHelper.bInDispose)
- {
- pair< const OUString, Reference< XClipboard > > value (
- aName.getLength() ? aName : m_aDefaultName,
+ if (!rBHelper.bDisposed && !rBHelper.bInDispose)
+ {
+ pair< const OUString, Reference< XClipboard > > value (
+ aName.getLength() ? aName : m_aDefaultName,
xClipboard );
pair< ClipboardMap::iterator, bool > p = m_aClipboardMap.insert(value);
@@ -151,7 +151,7 @@ void SAL_CALL ClipboardManager::addClipboard( const Reference< XClipboard >& xCl
// ------------------------------------------------------------------------
-void SAL_CALL ClipboardManager::removeClipboard( const OUString& aName )
+void SAL_CALL ClipboardManager::removeClipboard( const OUString& aName )
throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -161,7 +161,7 @@ void SAL_CALL ClipboardManager::removeClipboard( const OUString& aName )
// ------------------------------------------------------------------------
-Sequence< OUString > SAL_CALL ClipboardManager::listClipboardNames()
+Sequence< OUString > SAL_CALL ClipboardManager::listClipboardNames()
throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -169,8 +169,8 @@ Sequence< OUString > SAL_CALL ClipboardManager::listClipboardNames()
if (rBHelper.bDisposed)
throw DisposedException(OUString::createFromAscii("object is disposed."),
static_cast < XClipboardManager * > (this));
-
- if (rBHelper.bInDispose)
+
+ if (rBHelper.bInDispose)
return Sequence< OUString > ();
Sequence< OUString > aRet(m_aClipboardMap.size());
@@ -180,17 +180,17 @@ Sequence< OUString > SAL_CALL ClipboardManager::listClipboardNames()
for (sal_Int32 n = 0; iter != imax; iter++)
aRet[n++] = iter->first;
- return aRet;
+ return aRet;
}
// ------------------------------------------------------------------------
-void SAL_CALL ClipboardManager::dispose()
+void SAL_CALL ClipboardManager::dispose()
throw(RuntimeException)
{
- ClearableMutexGuard aGuard( rBHelper.rMutex );
- if (!rBHelper.bDisposed && !rBHelper.bInDispose)
- {
+ ClearableMutexGuard aGuard( rBHelper.rMutex );
+ if (!rBHelper.bDisposed && !rBHelper.bInDispose)
+ {
rBHelper.bInDispose = sal_True;
aGuard.clear();
@@ -198,13 +198,13 @@ void SAL_CALL ClipboardManager::dispose()
EventObject aEvt(static_cast < XClipboardManager * > (this));
rBHelper.aLC.disposeAndClear( aEvt );
- // removeClipboard is still allowed here, so make a copy of the
+ // removeClipboard is still allowed here, so make a copy of the
// list (to ensure integrety) and clear the original.
- ClearableMutexGuard aGuard2( rBHelper.rMutex );
+ ClearableMutexGuard aGuard2( rBHelper.rMutex );
ClipboardMap aCopy(m_aClipboardMap);
m_aClipboardMap.clear();
aGuard2.clear();
-
+
// dispose all clipboards still in list
ClipboardMap::iterator iter = aCopy.begin();
ClipboardMap::iterator imax = aCopy.end();
@@ -229,12 +229,12 @@ void SAL_CALL ClipboardManager::dispose()
rBHelper.bDisposed = sal_True;
rBHelper.bInDispose = sal_False;
- }
+ }
}
// ------------------------------------------------------------------------
-void SAL_CALL ClipboardManager::disposing( const EventObject& event )
+void SAL_CALL ClipboardManager::disposing( const EventObject& event )
throw(RuntimeException)
{
Reference < XClipboard > xClipboard(event.Source, UNO_QUERY);
@@ -245,7 +245,7 @@ void SAL_CALL ClipboardManager::disposing( const EventObject& event )
// ------------------------------------------------------------------------
-Reference< XInterface > SAL_CALL ClipboardManager_createInstance(
+Reference< XInterface > SAL_CALL ClipboardManager_createInstance(
const Reference< XMultiServiceFactory > & /*xMultiServiceFactory*/)
{
return Reference < XInterface >( ( OWeakObject * ) new ClipboardManager());
@@ -254,9 +254,9 @@ Reference< XInterface > SAL_CALL ClipboardManager_createInstance(
// ------------------------------------------------------------------------
Sequence< OUString > SAL_CALL ClipboardManager_getSupportedServiceNames()
-{
+{
Sequence < OUString > SupportedServicesNames( 1 );
- SupportedServicesNames[0] =
+ SupportedServicesNames[0] =
OUString::createFromAscii("com.sun.star.datatransfer.clipboard.ClipboardManager");
return SupportedServicesNames;
}
diff --git a/dtrans/source/generic/clipboardmanager.hxx b/dtrans/source/generic/clipboardmanager.hxx
index 54ac5941728b..83d1bca9dd78 100644
--- a/dtrans/source/generic/clipboardmanager.hxx
+++ b/dtrans/source/generic/clipboardmanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,24 +73,24 @@ namespace dtrans
virtual ::rtl::OUString SAL_CALL getImplementationName( )
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
throw(::com::sun::star::uno::RuntimeException);
/*
* XComponent
*/
- virtual void SAL_CALL dispose()
+ virtual void SAL_CALL dispose()
throw(::com::sun::star::uno::RuntimeException);
/*
* XEventListener
*/
- virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
+ virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
throw(::com::sun::star::uno::RuntimeException);
/*
@@ -98,18 +98,18 @@ namespace dtrans
*/
virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > SAL_CALL getClipboard( const ::rtl::OUString& aName )
- throw(::com::sun::star::container::NoSuchElementException,
+ throw(::com::sun::star::container::NoSuchElementException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addClipboard( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& xClipboard )
- throw(::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::ElementExistException,
+ virtual void SAL_CALL addClipboard( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& xClipboard )
+ throw(::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::container::ElementExistException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeClipboard( const ::rtl::OUString& aName )
+ virtual void SAL_CALL removeClipboard( const ::rtl::OUString& aName )
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL listClipboardNames( )
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL listClipboardNames( )
throw(::com::sun::star::uno::RuntimeException);
@@ -120,7 +120,7 @@ namespace dtrans
// ------------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL ClipboardManager_getSupportedServiceNames();
-::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ClipboardManager_createInstance(
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ClipboardManager_createInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMultiServiceFactory);
#endif
diff --git a/dtrans/source/generic/dtrans.cxx b/dtrans/source/generic/dtrans.cxx
index 40eb6967adb3..a25e95be2b89 100644
--- a/dtrans/source/generic/dtrans.cxx
+++ b/dtrans/source/generic/dtrans.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ extern "C"
//==================================================================================================
-void SAL_CALL component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,
+void SAL_CALL component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,
uno_Environment ** /*ppEnv*/ )
{
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
@@ -62,7 +62,7 @@ sal_Bool SAL_CALL component_writeInfo(void * /*pServiceManager*/, void * pRegist
Reference< XRegistryKey > xNewKey(
reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
OUString::createFromAscii("/" CLIPBOARDMANAGER_IMPLEMENTATION_NAME "/UNO/SERVICES" ) ) );
-
+
const Sequence< OUString > & rSNL = ClipboardManager_getSupportedServiceNames();
const OUString * pArray = rSNL.getConstArray();
sal_Int32 nPos;
@@ -71,12 +71,12 @@ sal_Bool SAL_CALL component_writeInfo(void * /*pServiceManager*/, void * pRegist
xNewKey = reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey(
OUString::createFromAscii("/" GENERIC_CLIPBOARD_IMPLEMENTATION_NAME "/UNO/SERVICES" ) );
-
+
const Sequence< OUString > & rSNL2 = GenericClipboard_getSupportedServiceNames();
pArray = rSNL2.getConstArray();
for ( nPos = rSNL2.getLength(); nPos--; )
xNewKey->createKey( pArray[nPos] );
-
+
return sal_True;
}
catch (InvalidRegistryException &)
@@ -91,15 +91,15 @@ sal_Bool SAL_CALL component_writeInfo(void * /*pServiceManager*/, void * pRegist
//==================================================================================================
void * SAL_CALL component_getFactory(
- const sal_Char * pImplName,
- void * pServiceManager,
+ const sal_Char * pImplName,
+ void * pServiceManager,
void * /*pRegistryKey*/
)
{
void * pRet = 0;
-
+
if (pServiceManager)
- {
+ {
Reference< XSingleServiceFactory > xFactory;
if (rtl_str_compare( pImplName, CLIPBOARDMANAGER_IMPLEMENTATION_NAME ) == 0)
@@ -107,7 +107,7 @@ void * SAL_CALL component_getFactory(
xFactory = createOneInstanceFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
OUString::createFromAscii( pImplName ),
- ClipboardManager_createInstance,
+ ClipboardManager_createInstance,
ClipboardManager_getSupportedServiceNames() );
}
else if (rtl_str_compare( pImplName, GENERIC_CLIPBOARD_IMPLEMENTATION_NAME ) == 0)
@@ -115,7 +115,7 @@ void * SAL_CALL component_getFactory(
xFactory = createSingleFactory(
reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
OUString::createFromAscii( pImplName ),
- GenericClipboard_createInstance,
+ GenericClipboard_createInstance,
GenericClipboard_getSupportedServiceNames() );
}
@@ -125,7 +125,7 @@ void * SAL_CALL component_getFactory(
pRet = xFactory.get();
}
}
-
+
return pRet;
}
diff --git a/dtrans/source/generic/dtrans.xml b/dtrans/source/generic/dtrans.xml
index 58ae60cae7c6..53d98425ea61 100644
--- a/dtrans/source/generic/dtrans.xml
+++ b/dtrans/source/generic/dtrans.xml
@@ -35,10 +35,10 @@
<type> com.sun.star.uno.XWeak </type>
<type> com.sun.star.uno.XAggregation </type>
</component-description>
- <project-build-dependency> cppuhelper </project-build-dependency>
- <project-build-dependency> cppu </project-build-dependency>
- <project-build-dependency> sal </project-build-dependency>
- <runtime-module-dependency> cppuhelper </runtime-module-dependency>
- <runtime-module-dependency> cppu2 </runtime-module-dependency>
- <runtime-module-dependency> sal2 </runtime-module-dependency>
+ <project-build-dependency> cppuhelper </project-build-dependency>
+ <project-build-dependency> cppu </project-build-dependency>
+ <project-build-dependency> sal </project-build-dependency>
+ <runtime-module-dependency> cppuhelper </runtime-module-dependency>
+ <runtime-module-dependency> cppu2 </runtime-module-dependency>
+ <runtime-module-dependency> sal2 </runtime-module-dependency>
</module-description>
diff --git a/dtrans/source/generic/generic_clipboard.cxx b/dtrans/source/generic/generic_clipboard.cxx
index eacab35dc9f6..604f17728826 100644
--- a/dtrans/source/generic/generic_clipboard.cxx
+++ b/dtrans/source/generic/generic_clipboard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ GenericClipboard::~GenericClipboard()
// ------------------------------------------------------------------------
-void SAL_CALL GenericClipboard::initialize( const Sequence< Any >& aArguments )
+void SAL_CALL GenericClipboard::initialize( const Sequence< Any >& aArguments )
throw(Exception, RuntimeException)
{
if (!m_bInitialized)
@@ -73,7 +73,7 @@ void SAL_CALL GenericClipboard::initialize( const Sequence< Any >& aArguments )
// ------------------------------------------------------------------------
-OUString SAL_CALL GenericClipboard::getImplementationName( )
+OUString SAL_CALL GenericClipboard::getImplementationName( )
throw(RuntimeException)
{
return OUString::createFromAscii(GENERIC_CLIPBOARD_IMPLEMENTATION_NAME);
@@ -81,7 +81,7 @@ OUString SAL_CALL GenericClipboard::getImplementationName( )
// ------------------------------------------------------------------------
-sal_Bool SAL_CALL GenericClipboard::supportsService( const OUString& ServiceName )
+sal_Bool SAL_CALL GenericClipboard::supportsService( const OUString& ServiceName )
throw(RuntimeException)
{
Sequence < OUString > SupportedServicesNames = GenericClipboard_getSupportedServiceNames();
@@ -95,7 +95,7 @@ sal_Bool SAL_CALL GenericClipboard::supportsService( const OUString& ServiceName
// ------------------------------------------------------------------------
-Sequence< OUString > SAL_CALL GenericClipboard::getSupportedServiceNames( )
+Sequence< OUString > SAL_CALL GenericClipboard::getSupportedServiceNames( )
throw(RuntimeException)
{
return GenericClipboard_getSupportedServiceNames();
@@ -103,7 +103,7 @@ Sequence< OUString > SAL_CALL GenericClipboard::getSupportedServiceNames( )
// ------------------------------------------------------------------------
-Reference< XTransferable > SAL_CALL GenericClipboard::getContents()
+Reference< XTransferable > SAL_CALL GenericClipboard::getContents()
throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
@@ -112,8 +112,8 @@ Reference< XTransferable > SAL_CALL GenericClipboard::getContents()
// ------------------------------------------------------------------------
-void SAL_CALL GenericClipboard::setContents(const Reference< XTransferable >& xTrans,
- const Reference< XClipboardOwner >& xClipboardOwner )
+void SAL_CALL GenericClipboard::setContents(const Reference< XTransferable >& xTrans,
+ const Reference< XClipboardOwner >& xClipboardOwner )
throw(RuntimeException)
{
// remember old values for callbacks before setting the new ones.
@@ -132,7 +132,7 @@ void SAL_CALL GenericClipboard::setContents(const Reference< XTransferable >& xT
oldOwner->lostOwnership(static_cast < XClipboard * > (this), oldContents);
// notify all listeners on content changes
- OInterfaceContainerHelper *pContainer =
+ OInterfaceContainerHelper *pContainer =
rBHelper.aLC.getContainer(getCppuType( (Reference < XClipboardListener > *) 0));
if (pContainer)
{
@@ -150,7 +150,7 @@ void SAL_CALL GenericClipboard::setContents(const Reference< XTransferable >& xT
// ------------------------------------------------------------------------
-OUString SAL_CALL GenericClipboard::getName()
+OUString SAL_CALL GenericClipboard::getName()
throw(RuntimeException)
{
return m_aName;
@@ -167,7 +167,7 @@ sal_Int8 SAL_CALL GenericClipboard::getRenderingCapabilities()
// ------------------------------------------------------------------------
-void SAL_CALL GenericClipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
+void SAL_CALL GenericClipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
throw(RuntimeException)
{
MutexGuard aGuard( rBHelper.rMutex );
@@ -179,7 +179,7 @@ void SAL_CALL GenericClipboard::addClipboardListener( const Reference< XClipboar
// ------------------------------------------------------------------------
-void SAL_CALL GenericClipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
+void SAL_CALL GenericClipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
throw(RuntimeException)
{
MutexGuard aGuard( rBHelper.rMutex );
@@ -199,7 +199,7 @@ Sequence< OUString > SAL_CALL GenericClipboard_getSupportedServiceNames()
// ------------------------------------------------------------------------
-Reference< XInterface > SAL_CALL GenericClipboard_createInstance(
+Reference< XInterface > SAL_CALL GenericClipboard_createInstance(
const Reference< XMultiServiceFactory > & /*xMultiServiceFactory*/)
{
return Reference < XInterface >( ( OWeakObject * ) new GenericClipboard());
diff --git a/dtrans/source/generic/generic_clipboard.hxx b/dtrans/source/generic/generic_clipboard.hxx
index f0576933d59e..2d7f4d7e3097 100644
--- a/dtrans/source/generic/generic_clipboard.hxx
+++ b/dtrans/source/generic/generic_clipboard.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ namespace dtrans
public:
- GenericClipboard();
+ GenericClipboard();
/*
* XInitialization
@@ -76,7 +76,7 @@ namespace dtrans
* XServiceInfo
*/
- virtual ::rtl::OUString SAL_CALL getImplementationName( )
+ virtual ::rtl::OUString SAL_CALL getImplementationName( )
throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
@@ -89,16 +89,16 @@ namespace dtrans
* XClipboard
*/
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setContents(
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans,
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
+ virtual void SAL_CALL setContents(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL getName()
- throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getName()
+ throw(::com::sun::star::uno::RuntimeException);
/*
* XClipboardEx
@@ -111,13 +111,13 @@ namespace dtrans
* XClipboardNotifier
*/
- virtual void SAL_CALL addClipboardListener(
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL addClipboardListener(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeClipboardListener(
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
- throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeClipboardListener(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ throw(::com::sun::star::uno::RuntimeException);
};
@@ -126,7 +126,7 @@ namespace dtrans
// ------------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL GenericClipboard_getSupportedServiceNames();
-::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL GenericClipboard_createInstance(
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL GenericClipboard_createInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMultiServiceFactory);
#endif
diff --git a/dtrans/source/inc/DtObjFactory.hxx b/dtrans/source/inc/DtObjFactory.hxx
index 1b4eabd56c35..80fafff32960 100644
--- a/dtrans/source/inc/DtObjFactory.hxx
+++ b/dtrans/source/inc/DtObjFactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ class CDTransObjFactory
public:
virtual IDataObjectPtr SAL_CALL createDataObjFromTransferable( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aServiceManager,
const com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable >& refXTransferable );
- virtual com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable > SAL_CALL createTransferableFromDataObj(
+ virtual com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable > SAL_CALL createTransferableFromDataObj(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aServiceManager, IDataObjectPtr pIDataObject );
};
diff --git a/dtrans/source/inc/MtaOleClipb.hxx b/dtrans/source/inc/MtaOleClipb.hxx
index dd4d079ceddf..8a9b5132a361 100644
--- a/dtrans/source/inc/MtaOleClipb.hxx
+++ b/dtrans/source/inc/MtaOleClipb.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@
// the Mta-Ole clipboard class is for internal use only!
// only one instance of this class should be created, the
// user has to ensure this!
-// the class is not thread-safe because it will be used
+// the class is not thread-safe because it will be used
// only from within the clipboard service and the methods
// of the clipboard service are already synchronized
//--------------------------------------------------------
@@ -60,9 +60,9 @@ public:
// clipboard functions
HRESULT setClipboard( IDataObject* pIDataObject );
- HRESULT getClipboard( IDataObject** ppIDataObject );
+ HRESULT getClipboard( IDataObject** ppIDataObject );
HRESULT flushClipboard( );
-
+
// register/unregister a clipboard viewer; there can only
// be one at a time; parameter NULL means unregister
// a clipboard viewer
@@ -72,8 +72,8 @@ public:
private:
unsigned int run( );
-
- // create a hidden windows which serves as an request
+
+ // create a hidden windows which serves as an request
// target; so we guarantee synchronization
void createMtaOleReqWnd( );
@@ -87,7 +87,7 @@ private:
//---------------------------------------------------------------
LRESULT onSetClipboard( IDataObject* pIDataObject );
- LRESULT onGetClipboard( LPSTREAM* ppStream );
+ LRESULT onGetClipboard( LPSTREAM* ppStream );
LRESULT onFlushClipboard( );
sal_Bool onRegisterClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfncClipViewerCallback );
@@ -95,22 +95,22 @@ private:
LRESULT onChangeCBChain( HWND hWndRemove, HWND hWndNext );
LRESULT onDrawClipboard( );
- static LRESULT CALLBACK mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
+ static LRESULT CALLBACK mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
static unsigned int WINAPI oleThreadProc( LPVOID pParam );
static unsigned int WINAPI clipboardChangedNotifierThreadProc( LPVOID pParam );
- sal_Bool WaitForThreadReady( ) const;
+ sal_Bool WaitForThreadReady( ) const;
private:
- HANDLE m_hOleThread;
- unsigned m_uOleThreadId;
- HANDLE m_hEvtThrdReady;
- HWND m_hwndMtaOleReqWnd;
- ATOM m_MtaOleReqWndClassAtom;
- HWND m_hwndNextClipViewer;
- LPFNC_CLIPVIEWER_CALLBACK_t m_pfncClipViewerCallback;
- sal_Bool m_bInRegisterClipViewer;
+ HANDLE m_hOleThread;
+ unsigned m_uOleThreadId;
+ HANDLE m_hEvtThrdReady;
+ HWND m_hwndMtaOleReqWnd;
+ ATOM m_MtaOleReqWndClassAtom;
+ HWND m_hwndNextClipViewer;
+ LPFNC_CLIPVIEWER_CALLBACK_t m_pfncClipViewerCallback;
+ sal_Bool m_bInRegisterClipViewer;
sal_Bool m_bRunClipboardNotifierThread;
HANDLE m_hClipboardChangedNotifierThread;
diff --git a/dtrans/source/os2/clipb/OS2Bitmap.cxx b/dtrans/source/os2/clipb/OS2Bitmap.cxx
index 0f7b46bca31c..d3755119aa8a 100644
--- a/dtrans/source/os2/clipb/OS2Bitmap.cxx
+++ b/dtrans/source/os2/clipb/OS2Bitmap.cxx
@@ -3,7 +3,7 @@
*
* This code is property of Serenity Systems Intl
* All rights reserverd.
- *
+ *
************************************************************************/
#define INCL_WIN
@@ -35,35 +35,35 @@ typedef struct
typedef struct
{
- DWORD biSize;
- LONG biWidth;
- LONG biHeight;
- WORD biPlanes;
- WORD biBitCount;
- DWORD biCompression;
- DWORD biSizeImage;
- LONG biXPelsPerMeter;
- LONG biYPelsPerMeter;
- DWORD biClrUsed;
- DWORD biClrImportant;
+ DWORD biSize;
+ LONG biWidth;
+ LONG biHeight;
+ WORD biPlanes;
+ WORD biBitCount;
+ DWORD biCompression;
+ DWORD biSizeImage;
+ LONG biXPelsPerMeter;
+ LONG biYPelsPerMeter;
+ DWORD biClrUsed;
+ DWORD biClrImportant;
} W32_BITMAPINFOHEADER, *PW32_BITMAPINFOHEADER;
#pragma pack(pop)
// store screen bitcount
-LONG lBitCountScreen;
+LONG lBitCountScreen;
/*
* Convert an OOo bitmap to an OS/2 bitmap handle
*
- * An OOo bitmap is a BITMAPFILEHEADER structure followed by a Windows DIB
+ * An OOo bitmap is a BITMAPFILEHEADER structure followed by a Windows DIB
*
* OS/2 InfoHeader is a superset of Win32 InhoHeader, so we can just copy
* the win32 memory over the os2 memory and fix the cbFix field.
* colortable and bitmap data share the same format.
*
*/
-HBITMAP OOoBmpToOS2Handle( Any &aAnyB)
+HBITMAP OOoBmpToOS2Handle( Any &aAnyB)
{
// copy bitmap to clipboard
Sequence<sal_Int8> ByteStream;
@@ -109,23 +109,23 @@ HBITMAP OOoBmpToOS2Handle( Any &aAnyB)
/*
* Convert an OS/2 bitmap handle to OOo bitmap
*
- * First we need to copy the bitmap to a PS, then we can get bitmap data.
+ * First we need to copy the bitmap to a PS, then we can get bitmap data.
*
*/
-int OS2HandleToOOoBmp( HBITMAP hbm, Sequence< sal_Int8 >* OOoDIBStream)
+int OS2HandleToOOoBmp( HBITMAP hbm, Sequence< sal_Int8 >* OOoDIBStream)
{
- HAB hab = WinQueryAnchorBlock(HWND_DESKTOP);
- HDC hdc;
- SIZEL sizl;
- HPS hps;
- PM_BYTE* pbBuffer;
- ULONG cbBuffer;
+ HAB hab = WinQueryAnchorBlock(HWND_DESKTOP);
+ HDC hdc;
+ SIZEL sizl;
+ HPS hps;
+ PM_BYTE* pbBuffer;
+ ULONG cbBuffer;
struct {
BITMAPINFOHEADER2 bmp2;
RGB2 argb2Color[0x100];
} bm;
-
+
if (!lBitCountScreen) {
HPS hps = WinGetPS(HWND_DESKTOP);
HDC hdc = GpiQueryDevice(hps);
@@ -162,7 +162,7 @@ int OS2HandleToOOoBmp( HBITMAP hbm, Sequence< sal_Int8 >* OOoDIBStream)
}
// copy bitmap to hps
GpiSetBitmap(hps, hbm);
-
+
// buffer lengths
cbBuffer = (((bm.bmp2.cBitCount * bm.bmp2.cx) + 31) / 32) * 4 * bm.bmp2.cy * bm.bmp2.cPlanes;
pbBuffer = (PM_BYTE*) malloc( cbBuffer);
@@ -181,16 +181,16 @@ int OS2HandleToOOoBmp( HBITMAP hbm, Sequence< sal_Int8 >* OOoDIBStream)
else
iNumColors = bm.bmp2.cclrUsed;
int iColorTableSize = iNumColors*sizeof(RGBQUAD);
-
+
// reallocate data stream object size
- OOoDIBStream->realloc( sizeof( W32_BITMAPFILEHEADER )
+ OOoDIBStream->realloc( sizeof( W32_BITMAPFILEHEADER )
+ sizeof( W32_BITMAPINFOHEADER) + iColorTableSize + cbBuffer);
// fill w32 file header data
PW32_BITMAPFILEHEADER pbfh = (PW32_BITMAPFILEHEADER) OOoDIBStream->getArray();
memset( pbfh, 0, sizeof( W32_BITMAPFILEHEADER));
pbfh->bfType = 'MB';
- pbfh->bfSize = sizeof( W32_BITMAPFILEHEADER )
+ pbfh->bfSize = sizeof( W32_BITMAPFILEHEADER )
+ sizeof( W32_BITMAPINFOHEADER) + iColorTableSize + cbBuffer;
pbfh->bfOffBits = sizeof( W32_BITMAPFILEHEADER) + sizeof( W32_BITMAPINFOHEADER) + iColorTableSize;
@@ -220,7 +220,7 @@ int OS2HandleToOOoBmp( HBITMAP hbm, Sequence< sal_Int8 >* OOoDIBStream)
int main( void)
{
HAB hAB = WinQueryAnchorBlock( HWND_DESKTOP );
-
+
// query clipboard data to get mimetype
if( WinOpenClipbrd( hAB ) )
{
@@ -236,7 +236,7 @@ int main( void)
close( fd);
} else
printf( "failed conversion.\n");
-
+
}
WinCloseClipbrd( hAB);
}
diff --git a/dtrans/source/os2/clipb/Os2Clipboard.cxx b/dtrans/source/os2/clipb/Os2Clipboard.cxx
index 8ac20f9db56e..a43570b44039 100644
--- a/dtrans/source/os2/clipb/Os2Clipboard.cxx
+++ b/dtrans/source/os2/clipb/Os2Clipboard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ using namespace osl;
using namespace rtl;
using namespace os2;
-const Type CPPUTYPE_SEQINT8 = getCppuType( ( Sequence< sal_Int8 >* )0 );
+const Type CPPUTYPE_SEQINT8 = getCppuType( ( Sequence< sal_Int8 >* )0 );
const Type CPPUTYPE_OUSTRING = getCppuType( (OUString*)0 );
#define DTRANS_OBJ_CLASSNAME "DTRANSOBJWND"
@@ -70,7 +70,7 @@ MRESULT EXPENTRY DtransObjWndProc( HWND hWnd, ULONG nMsg, MPARAM nMP1, MPARAM nM
switch ( nMsg )
{
- case WM_DRAWCLIPBOARD: // clipboard content has changed
+ case WM_DRAWCLIPBOARD: // clipboard content has changed
{
Os2Clipboard* os2Clipboard = GetWindowPtr( hWnd);
if (os2Clipboard)
@@ -117,7 +117,7 @@ Os2Clipboard::~Os2Clipboard()
debug_printf("Os2Clipboard::~Os2Clipboard\n");
}
-void SAL_CALL Os2Clipboard::initialize( const Sequence< Any >& aArguments )
+void SAL_CALL Os2Clipboard::initialize( const Sequence< Any >& aArguments )
throw(Exception, RuntimeException)
{
if (!m_bInitialized)
@@ -164,7 +164,7 @@ Reference< XTransferable > SAL_CALL Os2Clipboard::getContents() throw( RuntimeEx
// when the viewer changes. So we need to check handles of clipboard
// data and compare with previous handles
if (UWinOpenClipbrd(hAB)) {
- sal_Bool fireChanged = sal_False;
+ sal_Bool fireChanged = sal_False;
ULONG handle = UWinQueryClipbrdData( hAB, UCLIP_CF_UNICODETEXT);
if (handle) {
if (handle != hText) {
@@ -213,7 +213,7 @@ void SAL_CALL Os2Clipboard::setContents( const Reference< XTransferable >& xTran
oldOwner->lostOwnership(static_cast < XClipboard * > (this), oldContents);
// notify all listeners on content changes
- OInterfaceContainerHelper *pContainer =
+ OInterfaceContainerHelper *pContainer =
rBHelper.aLC.getContainer(getCppuType( (Reference < XClipboardListener > *) 0));
if (pContainer)
{
@@ -227,12 +227,12 @@ void SAL_CALL Os2Clipboard::setContents( const Reference< XTransferable >& xTran
xListener->changedContents(aEvent);
}
}
-
+
#if OSL_DEBUG_LEVEL>0
// dump list of available mimetypes
Sequence< DataFlavor > aFlavors( m_aContents->getTransferDataFlavors() );
for( int i = 0; i < aFlavors.getLength(); i++ )
- debug_printf("Os2Clipboard::setContents available mimetype: %d %s\n",
+ debug_printf("Os2Clipboard::setContents available mimetype: %d %s\n",
i, CHAR_POINTER(aFlavors.getConstArray()[i].MimeType));
#endif
@@ -241,7 +241,7 @@ void SAL_CALL Os2Clipboard::setContents( const Reference< XTransferable >& xTran
OUString::createFromAscii( "Unicode-Text" ), CPPUTYPE_OUSTRING);
DataFlavor nFlavorBitmap( OUString::createFromAscii( "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"" ),
OUString::createFromAscii( "Bitmap" ), CPPUTYPE_DEFAULT);
-
+
// try text transfer data (if any)
PSZ pSharedText = NULL;
HBITMAP hbm = NULL;
@@ -252,11 +252,11 @@ void SAL_CALL Os2Clipboard::setContents( const Reference< XTransferable >& xTran
{
APIRET rc;
// copy unicode text to clipboard
- OUString aString;
+ OUString aString;
aAny >>= aString;
// share text
- rc = DosAllocSharedMem( (PPVOID) &pSharedText, NULL,
- aString.getLength() * 2 + 2,
+ rc = DosAllocSharedMem( (PPVOID) &pSharedText, NULL,
+ aString.getLength() * 2 + 2,
PAG_WRITE | PAG_COMMIT | OBJ_GIVEABLE | OBJ_ANY);
if (!rc)
memcpy( pSharedText, aString.getStr(), aString.getLength() * 2 + 2 );
@@ -294,7 +294,7 @@ void SAL_CALL Os2Clipboard::setContents( const Reference< XTransferable >& xTran
// update internal handle to avoid detection of this text as new data
hText = (ULONG)pSharedText;
}
- // give bitmap to clipboard
+ // give bitmap to clipboard
if (hbm) {
UWinSetClipbrdData( hAB, (ULONG) hbm, UCLIP_CF_BITMAP, CFI_HANDLE);
// update internal handle to avoid detection of this bitmap as new data
@@ -320,7 +320,7 @@ sal_Int8 SAL_CALL Os2Clipboard::getRenderingCapabilities() throw( RuntimeExcepti
}
//========================================================================
-// XClipboardNotifier
+// XClipboardNotifier
//========================================================================
void SAL_CALL Os2Clipboard::addClipboardListener( const Reference< XClipboardListener >& listener ) throw( RuntimeException )
@@ -363,16 +363,16 @@ void SAL_CALL Os2Clipboard::notifyAllClipboardListener( )
m_aContents.clear();
// release the mutex
aGuard.clear();
-
+
// inform previous owner of lost ownership
if ( xOwner.is() )
xOwner->lostOwnership(static_cast < XClipboard * > (this), m_aContents);
- OInterfaceContainerHelper* pICHelper = rBHelper.aLC.getContainer(
+ OInterfaceContainerHelper* pICHelper = rBHelper.aLC.getContainer(
getCppuType( ( Reference< XClipboardListener > * ) 0 ) );
if ( pICHelper )
- {
+ {
try
{
OInterfaceIteratorHelper iter(*pICHelper);
@@ -392,18 +392,18 @@ void SAL_CALL Os2Clipboard::notifyAllClipboardListener( )
{
OSL_ENSURE( false, "RuntimeException caught" );
debug_printf( "RuntimeException caught" );
- }
- }
+ }
+ }
}
catch(const ::com::sun::star::lang::DisposedException&)
- {
+ {
OSL_ENSURE(false, "Service Manager disposed");
debug_printf( "Service Manager disposed");
-
+
// no further clipboard changed notifications
//m_pImpl->unregisterClipboardViewer();
}
-
+
} // end if
} // end if
} // end if
@@ -420,7 +420,7 @@ Sequence< OUString > SAL_CALL Os2Clipboard_getSupportedServiceNames()
// ------------------------------------------------------------------------
-Reference< XInterface > SAL_CALL Os2Clipboard_createInstance(
+Reference< XInterface > SAL_CALL Os2Clipboard_createInstance(
const Reference< XMultiServiceFactory > & xMultiServiceFactory)
{
return Reference < XInterface >( ( OWeakObject * ) new Os2Clipboard());
diff --git a/dtrans/source/os2/clipb/Os2Clipboard.hxx b/dtrans/source/os2/clipb/Os2Clipboard.hxx
index 03ddc6cc93c7..2d2796dd71fb 100644
--- a/dtrans/source/os2/clipb/Os2Clipboard.hxx
+++ b/dtrans/source/os2/clipb/Os2Clipboard.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@
namespace os2 {
-class Os2Clipboard :
+class Os2Clipboard :
//public cppu::WeakComponentImplHelper3< ::com::sun::star::datatransfer::clipboard::XClipboardEx, ::com::sun::star::datatransfer::clipboard::XClipboardNotifier, ::com::sun::star::lang::XServiceInfo >
public ::cppu::WeakComponentImplHelper4 < \
::com::sun::star::datatransfer::clipboard::XClipboardEx, \
@@ -76,20 +76,20 @@ public:
*/
virtual ::rtl::OUString SAL_CALL getImplementationName()
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
throw(::com::sun::star::uno::RuntimeException);
/*
* XClipboard
*/
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setContents( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
+ virtual void SAL_CALL setContents( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getName()
+ virtual ::rtl::OUString SAL_CALL getName()
throw( ::com::sun::star::uno::RuntimeException );
/*
@@ -97,13 +97,13 @@ public:
*/
virtual sal_Int8 SAL_CALL getRenderingCapabilities()
throw( ::com::sun::star::uno::RuntimeException );
-
+
/*
* XClipboardNotifier
*/
- virtual void SAL_CALL addClipboardListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL addClipboardListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL removeClipboardListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL removeClipboardListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw( ::com::sun::star::uno::RuntimeException );
void SAL_CALL notifyAllClipboardListener( );
@@ -111,16 +111,16 @@ public:
sal_Bool m_bInSetClipboardData;
private:
- HAB hAB;
- HWND hObjWnd;
- ULONG hText, hBitmap; // handles to previous clipboard data
+ HAB hAB;
+ HWND hObjWnd;
+ ULONG hText, hBitmap; // handles to previous clipboard data
::osl::Mutex m_aMutex;
::rtl::OUString m_aName;
-
+
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > m_aContents;
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner > m_aOwner;
-
+
sal_Bool m_bInitialized;
};
@@ -130,7 +130,7 @@ private:
// ------------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL Os2Clipboard_getSupportedServiceNames();
-::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Os2Clipboard_createInstance(
+::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Os2Clipboard_createInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMultiServiceFactory);
#endif
diff --git a/dtrans/source/os2/clipb/Os2Service.cxx b/dtrans/source/os2/clipb/Os2Service.cxx
index f0b53faca876..aab01d3c47ea 100644
--- a/dtrans/source/os2/clipb/Os2Service.cxx
+++ b/dtrans/source/os2/clipb/Os2Service.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ Reference< XInterface > SAL_CALL createInstance( const Reference< XMultiServiceF
} // namespace os2
-extern "C"
+extern "C"
{
void SAL_CALL component_getImplementationEnvironment(
@@ -65,13 +65,13 @@ sal_Bool SAL_CALL component_writeInfo( void* pServiceManager, void* pRegistryKey
{
try
{
- Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
+ Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
pXNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( OS2_CLIPBOARD_REGKEY_NAME ) ) );
bRetVal = sal_True;
}
catch( InvalidRegistryException& )
- {
- OSL_ENSURE(sal_False, "InvalidRegistryException caught");
+ {
+ OSL_ENSURE(sal_False, "InvalidRegistryException caught");
bRetVal = sal_False;
}
}
@@ -86,8 +86,8 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, OS2_CLIPBOARD_IMPL_NAME ) ) )
{
Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( OS2_CLIPBOARD_SERVICE_NAME ) );
-
+ aSNS.getArray()[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( OS2_CLIPBOARD_SERVICE_NAME ) );
+
//OUString( RTL_CONSTASCII_USTRINGPARAM( FPS_IMPL_NAME ) )
Reference< XSingleServiceFactory > xFactory ( createOneInstanceFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
@@ -98,7 +98,7 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
{
xFactory->acquire();
pRet = xFactory.get();
- }
+ }
}
return pRet;
diff --git a/dtrans/source/os2/clipb/Os2Transferable.cxx b/dtrans/source/os2/clipb/Os2Transferable.cxx
index 5028799715dc..57662854b05e 100644
--- a/dtrans/source/os2/clipb/Os2Transferable.cxx
+++ b/dtrans/source/os2/clipb/Os2Transferable.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,12 +49,12 @@ using namespace os2;
// =======================================================================
Os2Transferable::Os2Transferable(
- const Reference< XInterface >& xCreator ) :
+ const Reference< XInterface >& xCreator ) :
m_xCreator( xCreator )
{
debug_printf("Os2Transferable::Os2Transferable %08x\n", this);
hAB = WinQueryAnchorBlock( HWND_DESKTOP );
-
+
// query clipboard data to get mimetype
if( UWinOpenClipbrd( hAB ) )
{
@@ -71,7 +71,7 @@ Os2Transferable::Os2Transferable(
//debug_printf("Os2Transferable::Os2Transferable pszText %s\n", pszText);
}
UWinCloseClipbrd( hAB);
- }
+ }
else
{
debug_printf("Os2Transferable::Os2Transferable failed to open clipboard\n");
@@ -95,7 +95,7 @@ Any SAL_CALL Os2Transferable::getTransferData( const DataFlavor& rFlavor )
debug_printf("Os2Transferable::getTransferData mimetype: %s\n", CHAR_POINTER(rFlavor.MimeType));
Any aRet;
Sequence< sal_Int8 > aData;
-
+
// retrieve unicode text
if( rFlavor.MimeType.equalsIgnoreAsciiCase( OUString::createFromAscii( "text/plain;charset=utf-16" ) ) )
{
@@ -113,7 +113,7 @@ Any SAL_CALL Os2Transferable::getTransferData( const DataFlavor& rFlavor )
return aRet;
}
}
-
+
// retrieve bitmap
if( rFlavor.MimeType.equalsIgnoreAsciiCase( OUString::createFromAscii( "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"" ) ) )
{
@@ -158,7 +158,7 @@ sal_Bool SAL_CALL Os2Transferable::isDataFlavorSupported( const DataFlavor& aFla
{
debug_printf("Os2Transferable::isDataFlavorSupported %08x\n", this);
debug_printf("Os2Transferable::isDataFlavorSupported %s\n", CHAR_POINTER(aFlavor.MimeType));
-
+
if( aFlavor.DataType != getCppuType( (Sequence< sal_Int8 >*)0 ) )
{
if( ! aFlavor.MimeType.equalsIgnoreAsciiCase( OUString::createFromAscii( "text/plain;charset=utf-16" ) ) &&
diff --git a/dtrans/source/os2/clipb/Os2Transferable.hxx b/dtrans/source/os2/clipb/Os2Transferable.hxx
index fbd9e8167e7d..e4c0d394e845 100644
--- a/dtrans/source/os2/clipb/Os2Transferable.hxx
+++ b/dtrans/source/os2/clipb/Os2Transferable.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,16 +48,16 @@
#define debug_printf( ...) { 1; }
#endif
-#define CPPUTYPE_SEQSALINT8 getCppuType( (const Sequence< sal_Int8 >*) 0 )
-#define CPPUTYPE_DEFAULT CPPUTYPE_SEQSALINT8
+#define CPPUTYPE_SEQSALINT8 getCppuType( (const Sequence< sal_Int8 >*) 0 )
+#define CPPUTYPE_DEFAULT CPPUTYPE_SEQSALINT8
#ifdef OOO_VENDOR
using namespace com::sun::star::uno;
-HBITMAP OOoBmpToOS2Handle( Any &aAnyB);
-int OS2HandleToOOoBmp( HBITMAP hbm, Sequence< sal_Int8 >* winDIBStream);
+HBITMAP OOoBmpToOS2Handle( Any &aAnyB);
+int OS2HandleToOOoBmp( HBITMAP hbm, Sequence< sal_Int8 >* winDIBStream);
#else
-#define OOoBmpToOS2Handle(a) 0
-#define OS2HandleToOOoBmp(a,b) 0
+#define OOoBmpToOS2Handle(a) 0
+#define OS2HandleToOOoBmp(a,b) 0
#endif
namespace os2 {
@@ -65,12 +65,12 @@ namespace os2 {
class Os2Transferable : public ::cppu::WeakImplHelper1 <
::com::sun::star::datatransfer::XTransferable >
{
- HAB hAB;
- ::rtl::OUString clipText;
+ HAB hAB;
+ ::rtl::OUString clipText;
::com::sun::star::datatransfer::DataFlavor aFlavor;
::osl::Mutex m_aMutex;
- ::com::sun::star::uno::Reference< XInterface > m_xCreator;
-
+ ::com::sun::star::uno::Reference< XInterface > m_xCreator;
+
public:
Os2Transferable( const ::com::sun::star::uno::Reference< XInterface >& xCreator);
virtual ~Os2Transferable();
@@ -79,16 +79,16 @@ namespace os2 {
* XTransferable
*/
- virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
- throw(::com::sun::star::datatransfer::UnsupportedFlavorException,
- ::com::sun::star::io::IOException,
+ virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
+ throw(::com::sun::star::datatransfer::UnsupportedFlavorException,
+ ::com::sun::star::io::IOException,
::com::sun::star::uno::RuntimeException
);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
+ virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
throw(::com::sun::star::uno::RuntimeException);
};
diff --git a/dtrans/source/os2/clipb/sysdtrans.xml b/dtrans/source/os2/clipb/sysdtrans.xml
index a6dec8a03a42..cc615619037b 100644
--- a/dtrans/source/os2/clipb/sysdtrans.xml
+++ b/dtrans/source/os2/clipb/sysdtrans.xml
@@ -1,43 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module-description PUBLIC "-//StarOffice//DTD ComponentDescription 1.0//EN" "module-description.dtd">
<module-description xmlns:xlink="http://www.w3.org/1999/xlink">
- <module-name> sysdtrans </module-name>
+ <module-name> sysdtrans </module-name>
<component-description>
<author> Tino Rachui </author>
- <name> com.sun.star.comp.datatransfer.SystemClipboard </name>
+ <name> com.sun.star.comp.datatransfer.SystemClipboard </name>
<description>
The win32 implementation of the datatransfer service.
</description>
- <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
- <language> c++ </language>
+ <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
+ <language> c++ </language>
<status value="beta"/>
- <supported-service> com.sun.star.datatransfer.clipboard.SystemClipboard </supported-service>
- <service-dependency> ... </service-dependency>
- <type> com.sun.star.datatransfer.clipboard.XClipboardEx </type>
- <type> com.sun.star.datatransfer.XTransferable </type>
- <type> com.sun.star.datatransfer.XTransferableEx </type>
+ <supported-service> com.sun.star.datatransfer.clipboard.SystemClipboard </supported-service>
+ <service-dependency> ... </service-dependency>
+ <type> com.sun.star.datatransfer.clipboard.XClipboardEx </type>
+ <type> com.sun.star.datatransfer.XTransferable </type>
+ <type> com.sun.star.datatransfer.XTransferableEx </type>
<type> com.sun.star.datatransfer.clipboard.XClipboardOwner</type>
<type> com.sun.star.datatransfer.clipboard.XClipboardListener</type>
<type> com.sun.star.datatransfer.clipboard.XClipboardNotifier</type>
<type> com.sun.star.datatransfer.clipboard.XFlushableClipboard</type>
<type> com.sun.star.datatransfer.clipboard.RenderingCapabilities</type>
- <type> com.sun.star.datatransfer.XTransferDataAccess </type>
- <type> com.sun.star.lang.XComponent </type>
- <type> com.sun.star.lang.XMultiServiceFactory </type>
- <type> com.sun.star.lang.XSingleServiceFactory </type>
- <type> com.sun.star.lang.XServiceInfo </type>
- <type> com.sun.star.lang.XTypeProvider </type>
- <type> com.sun.star.lang.IllegalArgumentException </type>
- <type> com.sun.star.uno.TypeClass </type>
- <type> com.sun.star.uno.XWeak </type>
- <type> com.sun.star.uno.XAggregation </type>
- <type> com.sun.star.registry.XRegistryKey </type>
- <type> com.sun.star.container.XSet </type>
+ <type> com.sun.star.datatransfer.XTransferDataAccess </type>
+ <type> com.sun.star.lang.XComponent </type>
+ <type> com.sun.star.lang.XMultiServiceFactory </type>
+ <type> com.sun.star.lang.XSingleServiceFactory </type>
+ <type> com.sun.star.lang.XServiceInfo </type>
+ <type> com.sun.star.lang.XTypeProvider </type>
+ <type> com.sun.star.lang.IllegalArgumentException </type>
+ <type> com.sun.star.uno.TypeClass </type>
+ <type> com.sun.star.uno.XWeak </type>
+ <type> com.sun.star.uno.XAggregation </type>
+ <type> com.sun.star.registry.XRegistryKey </type>
+ <type> com.sun.star.container.XSet </type>
</component-description>
- <project-build-dependency> cppuhelper </project-build-dependency>
- <project-build-dependency> cppu </project-build-dependency>
- <project-build-dependency> sal </project-build-dependency>
- <runtime-module-dependency> cppuhelper </runtime-module-dependency>
- <runtime-module-dependency> cppu2 </runtime-module-dependency>
- <runtime-module-dependency> sal2 </runtime-module-dependency>
+ <project-build-dependency> cppuhelper </project-build-dependency>
+ <project-build-dependency> cppu </project-build-dependency>
+ <project-build-dependency> sal </project-build-dependency>
+ <runtime-module-dependency> cppuhelper </runtime-module-dependency>
+ <runtime-module-dependency> cppu2 </runtime-module-dependency>
+ <runtime-module-dependency> sal2 </runtime-module-dependency>
</module-description>
diff --git a/dtrans/source/test/test_dtrans.cxx b/dtrans/source/test/test_dtrans.cxx
index 430c63071228..ae10c4de65e1 100644
--- a/dtrans/source/test/test_dtrans.cxx
+++ b/dtrans/source/test/test_dtrans.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,10 +71,10 @@
#define TRACE( a ) fprintf( stderr, a )
//------------------------------------------------------------------------
-// namespaces
+// namespaces
//------------------------------------------------------------------------
-using namespace ::rtl;
+using namespace ::rtl;
using namespace ::std;
using namespace ::cppu;
using namespace ::com::sun::star::container;
@@ -82,16 +82,16 @@ using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::datatransfer::clipboard;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
-using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::lang;
//------------------------------------------------------------------------
-// globals
+// globals
//------------------------------------------------------------------------
const char * app = NULL;
//------------------------------------------------------------------------
-// ClipboardOwner
+// ClipboardOwner
//------------------------------------------------------------------------
class ClipboardOwner : public WeakImplHelper1< XClipboardOwner >
@@ -116,7 +116,7 @@ public:
};
//------------------------------------------------------------------------
-// ctor
+// ctor
//------------------------------------------------------------------------
ClipboardOwner::ClipboardOwner():
@@ -125,19 +125,19 @@ ClipboardOwner::ClipboardOwner():
}
//------------------------------------------------------------------------
-// lostOwnership
+// lostOwnership
//------------------------------------------------------------------------
-void SAL_CALL ClipboardOwner::lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
+void SAL_CALL ClipboardOwner::lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
throw(RuntimeException)
{
m_nReceivedLostOwnerships++;
m_xClipboard = xClipboard;
- m_xTransferable = xTrans;
+ m_xTransferable = xTrans;
}
//------------------------------------------------------------------------
-// ClipboardListener
+// ClipboardListener
//------------------------------------------------------------------------
class ClipboardListener : public WeakImplHelper1< XClipboardListener >
@@ -159,16 +159,16 @@ public:
//--------------------------------------------------------------------
// XEventListener
//--------------------------------------------------------------------
-
+
virtual void SAL_CALL disposing( const EventObject& event ) throw(RuntimeException);
-
+
sal_uInt32 receivedChangedContentsEvents() { return m_nReceivedChangedContentsEvents; };
Reference< XClipboard > changedContentsEventClipboardValue() { return m_xClipboard; }
Reference< XTransferable > changedContentsEventTransferableValue() { return m_xTransferable; };
};
//------------------------------------------------------------------------
-// ctor
+// ctor
//------------------------------------------------------------------------
ClipboardListener::ClipboardListener():
@@ -177,7 +177,7 @@ ClipboardListener::ClipboardListener():
}
//------------------------------------------------------------------------
-// changedContents
+// changedContents
//------------------------------------------------------------------------
void SAL_CALL ClipboardListener::changedContents( const ClipboardEvent& event )
@@ -185,11 +185,11 @@ void SAL_CALL ClipboardListener::changedContents( const ClipboardEvent& event )
{
m_nReceivedChangedContentsEvents++;
m_xClipboard = Reference< XClipboard > (event.Source, UNO_QUERY);
- m_xTransferable = event.Contents;
+ m_xTransferable = event.Contents;
}
//------------------------------------------------------------------------
-// disposing
+// disposing
//------------------------------------------------------------------------
void SAL_CALL ClipboardListener::disposing( const EventObject& event )
@@ -198,14 +198,14 @@ void SAL_CALL ClipboardListener::disposing( const EventObject& event )
}
//------------------------------------------------------------------------
-// StringTransferable
+// StringTransferable
//------------------------------------------------------------------------
class StringTransferable : public WeakImplHelper2< XClipboardOwner, XTransferable >
{
-public:
+public:
StringTransferable( );
-
+
//--------------------------------------------------------------------
// XTransferable
//--------------------------------------------------------------------
@@ -213,7 +213,7 @@ public:
virtual Any SAL_CALL getTransferData( const DataFlavor& aFlavor ) throw(UnsupportedFlavorException, IOException, RuntimeException);
virtual Sequence< DataFlavor > SAL_CALL getTransferDataFlavors( ) throw(RuntimeException);
virtual sal_Bool SAL_CALL isDataFlavorSupported( const DataFlavor& aFlavor ) throw(RuntimeException);
-
+
//--------------------------------------------------------------------
// XClipboardOwner
//--------------------------------------------------------------------
@@ -222,7 +222,7 @@ public:
sal_Bool receivedLostOwnership() { return m_receivedLostOwnership; };
void clearReceivedLostOwnership() { m_receivedLostOwnership = sal_False; };
-
+
private:
Sequence< DataFlavor > m_seqDFlv;
OUString m_Data;
@@ -230,7 +230,7 @@ private:
};
//------------------------------------------------------------------------
-// ctor
+// ctor
//------------------------------------------------------------------------
StringTransferable::StringTransferable( ) :
@@ -239,28 +239,28 @@ StringTransferable::StringTransferable( ) :
m_Data( OUString::createFromAscii("clipboard test content") )
{
DataFlavor df;
-
+
/*
df.MimeType = L"text/plain; charset=unicode";
df.DataType = getCppuType( ( OUString* )0 );
m_seqDFlv[0] = df;
*/
-
+
//df.MimeType = L"text/plain; charset=windows1252";
df.MimeType = OUString::createFromAscii( "text/html" );
df.DataType = getCppuType( ( Sequence< sal_Int8 >* )0 );
- m_seqDFlv[0] = df;
+ m_seqDFlv[0] = df;
}
//------------------------------------------------------------------------
-// getTransferData
+// getTransferData
//------------------------------------------------------------------------
-Any SAL_CALL StringTransferable::getTransferData( const DataFlavor& aFlavor )
+Any SAL_CALL StringTransferable::getTransferData( const DataFlavor& aFlavor )
throw(UnsupportedFlavorException, IOException, RuntimeException)
-{
+{
Any anyData;
/*if ( aFlavor == m_seqDFlv[0] )
@@ -272,49 +272,49 @@ Any SAL_CALL StringTransferable::getTransferData( const DataFlavor& aFlavor )
}
//------------------------------------------------------------------------
-// getTransferDataFlavors
+// getTransferDataFlavors
//------------------------------------------------------------------------
-Sequence< DataFlavor > SAL_CALL StringTransferable::getTransferDataFlavors( )
+Sequence< DataFlavor > SAL_CALL StringTransferable::getTransferDataFlavors( )
throw(RuntimeException)
{
return m_seqDFlv;
}
//------------------------------------------------------------------------
-// isDataFlavorSupported
+// isDataFlavorSupported
//------------------------------------------------------------------------
-sal_Bool SAL_CALL StringTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
+sal_Bool SAL_CALL StringTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
throw(RuntimeException)
{
sal_Int32 nLength = m_seqDFlv.getLength( );
sal_Bool bRet = sal_False;
-// for ( sal_Int32 i = 0; i < nLength; ++i )
-// {
-// if ( m_seqDFlv[i] == aFlavor )
-// {
-// bRet = sal_True;
-// break;
-// }
-// }
+// for ( sal_Int32 i = 0; i < nLength; ++i )
+// {
+// if ( m_seqDFlv[i] == aFlavor )
+// {
+// bRet = sal_True;
+// break;
+// }
+// }
return bRet;
}
//------------------------------------------------------------------------
-// lostOwnership
+// lostOwnership
//------------------------------------------------------------------------
-void SAL_CALL StringTransferable::lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
+void SAL_CALL StringTransferable::lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
throw(RuntimeException)
{
m_receivedLostOwnership = sal_True;
}
//------------------------------------------------------------------------
-// main
+// main
//------------------------------------------------------------------------
int SAL_CALL main( int argc, const char* argv[] )
@@ -348,8 +348,8 @@ int SAL_CALL main( int argc, const char* argv[] )
// create service manager
//------------------------------------------------------------------
Reference< XMultiServiceFactory > xServiceManager;
-
- try
+
+ try
{
xServiceManager = createRegistryServiceFactory( aRegistry, sal_True );
ENSURE( xServiceManager.is(), "*** ERROR *** service manager could not be created." );
@@ -360,8 +360,8 @@ int SAL_CALL main( int argc, const char* argv[] )
Sequence< Any > arguments(1);
arguments[0] = makeAny( OUString::createFromAscii( "generic" ) );
-
- Reference< XClipboard > xClipboard( xServiceManager->createInstanceWithArguments(
+
+ Reference< XClipboard > xClipboard( xServiceManager->createInstanceWithArguments(
OUString::createFromAscii( "com.sun.star.datatransfer.clipboard.GenericClipboard" ),
arguments ), UNO_QUERY );
@@ -383,7 +383,7 @@ int SAL_CALL main( int argc, const char* argv[] )
Reference< XTransferable > xContents = new StringTransferable();
Reference< XClipboardOwner > xOwner = new ClipboardOwner();
ClipboardOwner *pOwner = (ClipboardOwner *) xOwner.get();
-
+
TEST( "initial contents (none): ", xClipboard->getContents().is() == sal_False );
PERFORM( "update on contents with clipboard owner: ", xClipboard->setContents( xContents, xOwner ) );
@@ -396,7 +396,7 @@ int SAL_CALL main( int argc, const char* argv[] )
TEST( "if received changedContents notification for correct clipboard: ", pListener->changedContentsEventClipboardValue() == xClipboard );
TEST( "if received changedContents notification for correct clipboard: ", pListener->changedContentsEventTransferableValue() == xContents );
}
-
+
PERFORM( "update on contents without data (clear): ", xClipboard->setContents( Reference< XTransferable >(), Reference< XClipboardOwner >() ) );
TEST( "if received lostOwnership message(s): ", pOwner->receivedLostOwnerships() > 0 );
TEST( "if received exactly 1 lostOwnership message: ", pOwner->receivedLostOwnerships() == 1 );
@@ -414,7 +414,7 @@ int SAL_CALL main( int argc, const char* argv[] )
PERFORM( "update on contents without clipboard owner: ", xClipboard->setContents( xContents, Reference< XClipboardOwner >() ) );
TEST( "that no further lostOwnership messages were received: ", pOwner->receivedLostOwnerships() == 1 );
- TEST( "current clipboard contents: ", xContents == xClipboard->getContents() );
+ TEST( "current clipboard contents: ", xContents == xClipboard->getContents() );
if( xClipboardNotifier.is() )
{
@@ -440,8 +440,8 @@ int SAL_CALL main( int argc, const char* argv[] )
//--------------------------------------------------------------
// create an instance of ClipboardManager service
//--------------------------------------------------------------
-
- Reference< XClipboardManager > xClipboardManager( xServiceManager->createInstance(
+
+ Reference< XClipboardManager > xClipboardManager( xServiceManager->createInstance(
OUString::createFromAscii( "com.sun.star.datatransfer.clipboard.ClipboardManager" ) ), UNO_QUERY );
ENSURE( xClipboardManager.is(), "*** ERROR *** clipboard manager service could not be created." );
@@ -484,13 +484,13 @@ int SAL_CALL main( int argc, const char* argv[] )
Reference< XComponent > xComponent( xServiceManager, UNO_QUERY );
ENSURE( xComponent.is(), "*** ERROR *** service manager does not support XComponent." );
-
+
// Dispose and clear factory
xComponent->dispose();
xServiceManager.clear();
fprintf( stderr, "Done.\n" );
- return 0;
+ return 0;
}
diff --git a/dtrans/source/win32/clipb/APNDataObject.hxx b/dtrans/source/win32/clipb/APNDataObject.hxx
index 81ea56fd0df7..fc8940f53d62 100644
--- a/dtrans/source/win32/clipb/APNDataObject.hxx
+++ b/dtrans/source/win32/clipb/APNDataObject.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,13 +37,13 @@
/*
an APartment Neutral dataobject wrapper; this wrapper of a IDataObject
pointer can be used from any apartment without RPC_E_WRONG_THREAD
- which normally occurs if an apartment tries to use an interface
+ which normally occurs if an apartment tries to use an interface
pointer of another apartment; we use containment to hold the original
DataObject
*/
class CAPNDataObject : public IDataObject
{
-public:
+public:
CAPNDataObject( IDataObjectPtr rIDataObject );
~CAPNDataObject( );
@@ -76,8 +76,8 @@ private:
private:
IDataObjectPtr m_rIDataObjectOrg;
- HGLOBAL m_hGlobal;
- LONG m_nRefCnt;
+ HGLOBAL m_hGlobal;
+ LONG m_nRefCnt;
// prevent copy and assignment
private:
diff --git a/dtrans/source/win32/clipb/WinClipbImpl.cxx b/dtrans/source/win32/clipb/WinClipbImpl.cxx
index 8b717d9a3ed0..42230e7b0896 100644
--- a/dtrans/source/win32/clipb/WinClipbImpl.cxx
+++ b/dtrans/source/win32/clipb/WinClipbImpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,11 +75,11 @@ CWinClipbImpl* CWinClipbImpl::s_pCWinClipbImpl = NULL;
osl::Mutex CWinClipbImpl::s_aMutex;
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CWinClipbImpl::CWinClipbImpl( const OUString& aClipboardName, CWinClipboard* theWinClipboard ) :
- m_itsName( aClipboardName ),
+ m_itsName( aClipboardName ),
m_pWinClipboard( theWinClipboard ),
m_pCurrentClipContent( NULL )
{
@@ -92,7 +92,7 @@ CWinClipbImpl::CWinClipbImpl( const OUString& aClipboardName, CWinClipboard* the
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CWinClipbImpl::~CWinClipbImpl( )
@@ -115,7 +115,7 @@ Reference< XTransferable > SAL_CALL CWinClipbImpl::getContents( ) throw( Runtime
ClearableMutexGuard aGuard( m_ClipContentMutex );
if ( NULL != m_pCurrentClipContent )
- {
+ {
return m_pCurrentClipContent->m_XTransferable;
}
@@ -128,19 +128,19 @@ Reference< XTransferable > SAL_CALL CWinClipbImpl::getContents( ) throw( Runtime
// get the current dataobject from clipboard
IDataObjectPtr pIDataObject;
HRESULT hr = m_MtaOleClipboard.getClipboard( &pIDataObject );
-
+
if ( SUCCEEDED( hr ) )
{
- // create an apartment neutral dataobject and initialize it with a
+ // create an apartment neutral dataobject and initialize it with a
// com smart pointer to the IDataObject from clipboard
IDataObjectPtr pIDo( new CAPNDataObject( pIDataObject ) );
-
+
CDTransObjFactory objFactory;
- // remeber pIDo destroys itself due to the smart pointer
+ // remeber pIDo destroys itself due to the smart pointer
rClipContent = objFactory.createTransferableFromDataObj( m_pWinClipboard->m_SrvMgr, pIDo );
}
-
+
return rClipContent;
}
@@ -148,34 +148,34 @@ Reference< XTransferable > SAL_CALL CWinClipbImpl::getContents( ) throw( Runtime
// setContent
//------------------------------------------------------------------------
-void SAL_CALL CWinClipbImpl::setContents(
+void SAL_CALL CWinClipbImpl::setContents(
const Reference< XTransferable >& xTransferable,
- const Reference< XClipboardOwner >& xClipboardOwner )
+ const Reference< XClipboardOwner >& xClipboardOwner )
throw( RuntimeException )
-{
+{
CDTransObjFactory objFactory;
IDataObjectPtr pIDataObj;
-
+
if ( xTransferable.is( ) )
{
ClearableMutexGuard aGuard( m_ClipContentMutex );
- m_pCurrentClipContent = new CXNotifyingDataObject(
+ m_pCurrentClipContent = new CXNotifyingDataObject(
objFactory.createDataObjFromTransferable( m_pWinClipboard->m_SrvMgr , xTransferable ),
xTransferable,
xClipboardOwner,
this );
-
+
aGuard.clear( );
- pIDataObj = IDataObjectPtr( m_pCurrentClipContent );
+ pIDataObj = IDataObjectPtr( m_pCurrentClipContent );
}
-
- m_MtaOleClipboard.setClipboard(pIDataObj.get());
+
+ m_MtaOleClipboard.setClipboard(pIDataObj.get());
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CWinClipbImpl::getName( ) throw( RuntimeException )
@@ -184,7 +184,7 @@ OUString SAL_CALL CWinClipbImpl::getName( ) throw( RuntimeException )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Int8 SAL_CALL CWinClipbImpl::getRenderingCapabilities( ) throw( RuntimeException )
@@ -193,11 +193,11 @@ sal_Int8 SAL_CALL CWinClipbImpl::getRenderingCapabilities( ) throw( RuntimeExce
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CWinClipbImpl::flushClipboard( ) throw( RuntimeException )
-{
+{
// sollte eigentlich hier stehen: ClearableMutexGuard aGuard( m_ClipContentMutex );
// geht aber nicht, da FlushClipboard zurückruft und das DataObject
// freigibt und damit würde es einen Deadlock in onReleaseDataObject geben
@@ -211,10 +211,10 @@ void SAL_CALL CWinClipbImpl::flushClipboard( ) throw( RuntimeException )
if ( NULL != m_pCurrentClipContent )
m_MtaOleClipboard.flushClipboard( );
-}
+}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CWinClipbImpl::registerClipboardViewer( )
@@ -223,7 +223,7 @@ void SAL_CALL CWinClipbImpl::registerClipboardViewer( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CWinClipbImpl::unregisterClipboardViewer( )
@@ -232,7 +232,7 @@ void SAL_CALL CWinClipbImpl::unregisterClipboardViewer( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CWinClipbImpl::dispose() throw( RuntimeException )
@@ -241,10 +241,10 @@ void SAL_CALL CWinClipbImpl::dispose() throw( RuntimeException )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-void WINAPI CWinClipbImpl::onClipboardContentChanged( void )
+void WINAPI CWinClipbImpl::onClipboardContentChanged( void )
{
MutexGuard aGuard( s_aMutex );
diff --git a/dtrans/source/win32/clipb/WinClipbImpl.hxx b/dtrans/source/win32/clipb/WinClipbImpl.hxx
index 97e7919ea174..c79b70e135b7 100644
--- a/dtrans/source/win32/clipb/WinClipbImpl.hxx
+++ b/dtrans/source/win32/clipb/WinClipbImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ class CWinClipboard;
class CXNotifyingDataObject;
//---------------------------------------------------
-// impl class to avoid deadlocks between XTDataObject
+// impl class to avoid deadlocks between XTDataObject
// and the clipboard implementation
//---------------------------------------------------
@@ -63,28 +63,28 @@ public:
~CWinClipbImpl( );
protected:
- CWinClipbImpl( const ::rtl::OUString& aClipboardName, CWinClipboard* theWinClipboard );
+ CWinClipbImpl( const ::rtl::OUString& aClipboardName, CWinClipboard* theWinClipboard );
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents( )
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents( )
throw( ::com::sun::star::uno::RuntimeException );
-
- void SAL_CALL setContents(
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable,
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
+
+ void SAL_CALL setContents(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
throw( ::com::sun::star::uno::RuntimeException );
::rtl::OUString SAL_CALL getName( ) throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
- // XClipboardEx
+ // XClipboardEx
//------------------------------------------------
-
+
sal_Int8 SAL_CALL getRenderingCapabilities( ) throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
// XFlushableClipboard
//------------------------------------------------
-
+
void SAL_CALL flushClipboard( ) throw( com::sun::star::uno::RuntimeException );
//------------------------------------------------
@@ -94,9 +94,9 @@ protected:
void SAL_CALL dispose( ) throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
- // member functions
+ // member functions
//------------------------------------------------
-
+
void SAL_CALL registerClipboardViewer( );
void SAL_CALL unregisterClipboardViewer( );
@@ -106,20 +106,20 @@ private:
void SAL_CALL onReleaseDataObject( CXNotifyingDataObject* theCaller );
private:
- ::rtl::OUString m_itsName;
- CMtaOleClipboard m_MtaOleClipboard;
- CWinClipboard* m_pWinClipboard;
- CXNotifyingDataObject* m_pCurrentClipContent;
+ ::rtl::OUString m_itsName;
+ CMtaOleClipboard m_MtaOleClipboard;
+ CWinClipboard* m_pWinClipboard;
+ CXNotifyingDataObject* m_pCurrentClipContent;
osl::Mutex m_ClipContentMutex;
- static osl::Mutex s_aMutex;
- static CWinClipbImpl* s_pCWinClipbImpl;
+ static osl::Mutex s_aMutex;
+ static CWinClipbImpl* s_pCWinClipbImpl;
private:
CWinClipbImpl( const CWinClipbImpl& );
CWinClipbImpl& operator=( const CWinClipbImpl& );
- friend class CWinClipboard;
+ friend class CWinClipboard;
friend class CXNotifyingDataObject;
};
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 8439040a6337..36f05bee534d 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,8 +77,8 @@ namespace
// ctor
//------------------------------------------------------------------------
/*XEventListener,*/
-CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceManager, const OUString& aClipboardName ) :
- WeakComponentImplHelper4< XClipboardEx, XFlushableClipboard, XClipboardNotifier, XServiceInfo >( m_aCbListenerMutex ),
+CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceManager, const OUString& aClipboardName ) :
+ WeakComponentImplHelper4< XClipboardEx, XFlushableClipboard, XClipboardNotifier, XServiceInfo >( m_aCbListenerMutex ),
m_SrvMgr( rServiceManager )
{
m_pImpl.reset( new CWinClipbImpl( aClipboardName, this ) );
@@ -91,7 +91,7 @@ CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceM
//------------------------------------------------------------------------
// getContent
// to avoid unecessary traffic we check first if there is a clipboard
-// content which was set via setContent, in this case we don't need
+// content which was set via setContent, in this case we don't need
// to query the content from the clipboard, create a new wrapper object
// and so on, we simply return the orignial XTransferable instead of our
// DOTransferable
@@ -100,7 +100,7 @@ CWinClipboard::CWinClipboard( const Reference< XMultiServiceFactory >& rServiceM
Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( RuntimeException )
{
MutexGuard aGuard( m_aMutex );
-
+
if ( rBHelper.bDisposed )
throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
static_cast< XClipboardEx* >( this ) );
@@ -116,7 +116,7 @@ Reference< XTransferable > SAL_CALL CWinClipboard::getContents( ) throw( Runtime
//------------------------------------------------------------------------
void SAL_CALL CWinClipboard::setContents( const Reference< XTransferable >& xTransferable,
- const Reference< XClipboardOwner >& xClipboardOwner )
+ const Reference< XClipboardOwner >& xClipboardOwner )
throw( RuntimeException )
{
MutexGuard aGuard( m_aMutex );
@@ -166,26 +166,26 @@ void SAL_CALL CWinClipboard::flushClipboard( ) throw( RuntimeException )
//========================================================================
sal_Int8 SAL_CALL CWinClipboard::getRenderingCapabilities( ) throw( RuntimeException )
-{
+{
if ( rBHelper.bDisposed )
throw DisposedException( OUString::createFromAscii( "object is already disposed" ),
static_cast< XClipboardEx* >( this ) );
if ( NULL != m_pImpl.get( ) )
- return m_pImpl->getRenderingCapabilities( );
+ return m_pImpl->getRenderingCapabilities( );
return 0;
}
//========================================================================
-// XClipboardNotifier
+// XClipboardNotifier
//========================================================================
//------------------------------------------------------------------------
// getName
//------------------------------------------------------------------------
-void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
+void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
throw( RuntimeException )
{
if ( rBHelper.bDisposed )
@@ -194,18 +194,18 @@ void SAL_CALL CWinClipboard::addClipboardListener( const Reference< XClipboardLi
// check input parameter
if ( !listener.is( ) )
- throw IllegalArgumentException( OUString::createFromAscii( "empty reference" ),
- static_cast< XClipboardEx* >( this ),
+ throw IllegalArgumentException( OUString::createFromAscii( "empty reference" ),
+ static_cast< XClipboardEx* >( this ),
1 );
- rBHelper.aLC.addInterface( getCppuType( &listener ), listener );
+ rBHelper.aLC.addInterface( getCppuType( &listener ), listener );
}
//------------------------------------------------------------------------
// getName
//------------------------------------------------------------------------
-void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
+void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
throw( RuntimeException )
{
if ( rBHelper.bDisposed )
@@ -218,7 +218,7 @@ void SAL_CALL CWinClipboard::removeClipboardListener( const Reference< XClipboar
static_cast< XClipboardEx* >( this ),
1 );
- rBHelper.aLC.removeInterface( getCppuType( &listener ), listener );
+ rBHelper.aLC.removeInterface( getCppuType( &listener ), listener );
}
//------------------------------------------------------------------------
@@ -234,17 +234,17 @@ void SAL_CALL CWinClipboard::notifyAllClipboardListener( )
{
aGuard.clear( );
- OInterfaceContainerHelper* pICHelper = rBHelper.aLC.getContainer(
+ OInterfaceContainerHelper* pICHelper = rBHelper.aLC.getContainer(
getCppuType( ( Reference< XClipboardListener > * ) 0 ) );
if ( pICHelper )
- {
+ {
try
{
OInterfaceIteratorHelper iter(*pICHelper);
Reference<XTransferable> rXTransf(m_pImpl->getContents());
ClipboardEvent aClipbEvent(static_cast<XClipboard*>(this), rXTransf);
-
+
while(iter.hasMoreElements())
{
try
@@ -256,24 +256,24 @@ void SAL_CALL CWinClipboard::notifyAllClipboardListener( )
catch(RuntimeException&)
{
OSL_ENSURE( false, "RuntimeException caught" );
- }
- }
+ }
+ }
}
catch(const ::com::sun::star::lang::DisposedException&)
- {
+ {
OSL_ENSURE(false, "Service Manager disposed");
-
+
// no further clipboard changed notifications
m_pImpl->unregisterClipboardViewer();
}
-
+
} // end if
} // end if
} // end if
}
//------------------------------------------------
-// overwritten base class method which will be
+// overwritten base class method which will be
// called by the base class dispose method
//------------------------------------------------
@@ -290,17 +290,17 @@ void SAL_CALL CWinClipboard::disposing()
// XServiceInfo
// -------------------------------------------------
-OUString SAL_CALL CWinClipboard::getImplementationName( )
+OUString SAL_CALL CWinClipboard::getImplementationName( )
throw(RuntimeException)
{
return OUString::createFromAscii( WINCLIPBOARD_IMPL_NAME );
}
// -------------------------------------------------
-// XServiceInfo
+// XServiceInfo
// -------------------------------------------------
-sal_Bool SAL_CALL CWinClipboard::supportsService( const OUString& ServiceName )
+sal_Bool SAL_CALL CWinClipboard::supportsService( const OUString& ServiceName )
throw(RuntimeException)
{
Sequence < OUString > SupportedServicesNames = WinClipboard_getSupportedServiceNames();
@@ -313,10 +313,10 @@ sal_Bool SAL_CALL CWinClipboard::supportsService( const OUString& ServiceName )
}
// -------------------------------------------------
-// XServiceInfo
+// XServiceInfo
// -------------------------------------------------
-Sequence< OUString > SAL_CALL CWinClipboard::getSupportedServiceNames( )
+Sequence< OUString > SAL_CALL CWinClipboard::getSupportedServiceNames( )
throw(RuntimeException)
{
return WinClipboard_getSupportedServiceNames();
diff --git a/dtrans/source/win32/clipb/WinClipboard.hxx b/dtrans/source/win32/clipb/WinClipboard.hxx
index 81bdeca7653f..72ca52b1438c 100644
--- a/dtrans/source/win32/clipb/WinClipboard.hxx
+++ b/dtrans/source/win32/clipb/WinClipboard.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,11 +53,11 @@
class CWinClipbImpl;
//------------------------------------------------------------------------
-// implements the XClipboard[Ex] ... interfaces
+// implements the XClipboard[Ex] ... interfaces
// for the clipboard viewer mechanism we need a static callback function
-// and a static member to reasocciate from this static function to the
-// class instance
-// watch out: we are using only one static member variable and not a list
+// and a static member to reasocciate from this static function to the
+// class instance
+// watch out: we are using only one static member variable and not a list
// because we assume to be instanciated only once
// this will be asured by an OneInstanceFactory of the service and not
// by this class!
@@ -67,65 +67,65 @@ class CWinClipbImpl;
// before the constructor of WeakComponentImplHelper
// will be called and initialized with this mutex
class CWinClipboardDummy
-{
+{
protected:
- osl::Mutex m_aMutex;
- osl::Mutex m_aCbListenerMutex;
+ osl::Mutex m_aMutex;
+ osl::Mutex m_aCbListenerMutex;
};
-class CWinClipboard :
+class CWinClipboard :
public CWinClipboardDummy,
- public cppu::WeakComponentImplHelper4<
+ public cppu::WeakComponentImplHelper4<
::com::sun::star::datatransfer::clipboard::XClipboardEx, \
::com::sun::star::datatransfer::clipboard::XFlushableClipboard,
- ::com::sun::star::datatransfer::clipboard::XClipboardNotifier,
+ ::com::sun::star::datatransfer::clipboard::XClipboardNotifier,
::com::sun::star::lang::XServiceInfo >
{
public:
- CWinClipboard( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rServiceManager,
+ CWinClipboard( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rServiceManager,
const ::rtl::OUString& aClipboardName );
-
+
//------------------------------------------------
// XClipboard
//------------------------------------------------
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents( )
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents( )
throw( ::com::sun::star::uno::RuntimeException );
-
- virtual void SAL_CALL setContents(
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable,
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
+
+ virtual void SAL_CALL setContents(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getName( )
+ virtual ::rtl::OUString SAL_CALL getName( )
throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
// XFlushableClipboard
//------------------------------------------------
-
+
virtual void SAL_CALL flushClipboard( ) throw( com::sun::star::uno::RuntimeException );
//------------------------------------------------
- // XClipboardEx
+ // XClipboardEx
//------------------------------------------------
-
+
virtual sal_Int8 SAL_CALL getRenderingCapabilities( ) throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
- // XClipboardNotifier
+ // XClipboardNotifier
//------------------------------------------------
- virtual void SAL_CALL addClipboardListener(
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL addClipboardListener(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL removeClipboardListener(
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL removeClipboardListener(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
- // overwrite base class method, which is called
+ // overwrite base class method, which is called
// by base class dispose function
//------------------------------------------------
@@ -133,22 +133,22 @@ public:
//------------------------------------------------
// XServiceInfo
- //------------------------------------------------
+ //------------------------------------------------
- virtual ::rtl::OUString SAL_CALL getImplementationName( )
+ virtual ::rtl::OUString SAL_CALL getImplementationName( )
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
throw(::com::sun::star::uno::RuntimeException);
private:
- void SAL_CALL notifyAllClipboardListener( );
+ void SAL_CALL notifyAllClipboardListener( );
-private:
- ::std::auto_ptr< CWinClipbImpl > m_pImpl;
+private:
+ ::std::auto_ptr< CWinClipbImpl > m_pImpl;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
friend class CWinClipbImpl;
diff --git a/dtrans/source/win32/clipb/sysdtrans.xml b/dtrans/source/win32/clipb/sysdtrans.xml
index a6dec8a03a42..cc615619037b 100644
--- a/dtrans/source/win32/clipb/sysdtrans.xml
+++ b/dtrans/source/win32/clipb/sysdtrans.xml
@@ -1,43 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module-description PUBLIC "-//StarOffice//DTD ComponentDescription 1.0//EN" "module-description.dtd">
<module-description xmlns:xlink="http://www.w3.org/1999/xlink">
- <module-name> sysdtrans </module-name>
+ <module-name> sysdtrans </module-name>
<component-description>
<author> Tino Rachui </author>
- <name> com.sun.star.comp.datatransfer.SystemClipboard </name>
+ <name> com.sun.star.comp.datatransfer.SystemClipboard </name>
<description>
The win32 implementation of the datatransfer service.
</description>
- <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
- <language> c++ </language>
+ <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
+ <language> c++ </language>
<status value="beta"/>
- <supported-service> com.sun.star.datatransfer.clipboard.SystemClipboard </supported-service>
- <service-dependency> ... </service-dependency>
- <type> com.sun.star.datatransfer.clipboard.XClipboardEx </type>
- <type> com.sun.star.datatransfer.XTransferable </type>
- <type> com.sun.star.datatransfer.XTransferableEx </type>
+ <supported-service> com.sun.star.datatransfer.clipboard.SystemClipboard </supported-service>
+ <service-dependency> ... </service-dependency>
+ <type> com.sun.star.datatransfer.clipboard.XClipboardEx </type>
+ <type> com.sun.star.datatransfer.XTransferable </type>
+ <type> com.sun.star.datatransfer.XTransferableEx </type>
<type> com.sun.star.datatransfer.clipboard.XClipboardOwner</type>
<type> com.sun.star.datatransfer.clipboard.XClipboardListener</type>
<type> com.sun.star.datatransfer.clipboard.XClipboardNotifier</type>
<type> com.sun.star.datatransfer.clipboard.XFlushableClipboard</type>
<type> com.sun.star.datatransfer.clipboard.RenderingCapabilities</type>
- <type> com.sun.star.datatransfer.XTransferDataAccess </type>
- <type> com.sun.star.lang.XComponent </type>
- <type> com.sun.star.lang.XMultiServiceFactory </type>
- <type> com.sun.star.lang.XSingleServiceFactory </type>
- <type> com.sun.star.lang.XServiceInfo </type>
- <type> com.sun.star.lang.XTypeProvider </type>
- <type> com.sun.star.lang.IllegalArgumentException </type>
- <type> com.sun.star.uno.TypeClass </type>
- <type> com.sun.star.uno.XWeak </type>
- <type> com.sun.star.uno.XAggregation </type>
- <type> com.sun.star.registry.XRegistryKey </type>
- <type> com.sun.star.container.XSet </type>
+ <type> com.sun.star.datatransfer.XTransferDataAccess </type>
+ <type> com.sun.star.lang.XComponent </type>
+ <type> com.sun.star.lang.XMultiServiceFactory </type>
+ <type> com.sun.star.lang.XSingleServiceFactory </type>
+ <type> com.sun.star.lang.XServiceInfo </type>
+ <type> com.sun.star.lang.XTypeProvider </type>
+ <type> com.sun.star.lang.IllegalArgumentException </type>
+ <type> com.sun.star.uno.TypeClass </type>
+ <type> com.sun.star.uno.XWeak </type>
+ <type> com.sun.star.uno.XAggregation </type>
+ <type> com.sun.star.registry.XRegistryKey </type>
+ <type> com.sun.star.container.XSet </type>
</component-description>
- <project-build-dependency> cppuhelper </project-build-dependency>
- <project-build-dependency> cppu </project-build-dependency>
- <project-build-dependency> sal </project-build-dependency>
- <runtime-module-dependency> cppuhelper </runtime-module-dependency>
- <runtime-module-dependency> cppu2 </runtime-module-dependency>
- <runtime-module-dependency> sal2 </runtime-module-dependency>
+ <project-build-dependency> cppuhelper </project-build-dependency>
+ <project-build-dependency> cppu </project-build-dependency>
+ <project-build-dependency> sal </project-build-dependency>
+ <runtime-module-dependency> cppuhelper </runtime-module-dependency>
+ <runtime-module-dependency> cppu2 </runtime-module-dependency>
+ <runtime-module-dependency> sal2 </runtime-module-dependency>
</module-description>
diff --git a/dtrans/source/win32/clipb/wcbentry.cxx b/dtrans/source/win32/clipb/wcbentry.cxx
index 579872c8eead..dd09834f0581 100644
--- a/dtrans/source/win32/clipb/wcbentry.cxx
+++ b/dtrans/source/win32/clipb/wcbentry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_dtrans.hxx"
//______________________________________________________________________________________________________________
-// includes of other projects
+// includes of other projects
//______________________________________________________________________________________________________________
#include <cppuhelper/factory.hxx>
#include <com/sun/star/container/XSet.hpp>
@@ -43,36 +43,36 @@
// the service names
#define WINCLIPBOARD_SERVICE_NAME "com.sun.star.datatransfer.clipboard.SystemClipboard"
-// the implementation names
+// the implementation names
#define WINCLIPBOARD_IMPL_NAME "com.sun.star.datatransfer.clipboard.ClipboardW32"
// the registry key names
// a key under which this service will be registered, Format: -> "/ImplName/UNO/SERVICES/ServiceName"
-// < Implementation-Name ></UNO/SERVICES/>< Service-Name >
+// < Implementation-Name ></UNO/SERVICES/>< Service-Name >
#define WINCLIPBOARD_REGKEY_NAME "/com.sun.star.datatransfer.clipboard.ClipboardW32/UNO/SERVICES/com.sun.star.datatransfer.clipboard.SystemClipboard"
//-----------------------------------------------------------------------------------------------------------
// namespace directives
//-----------------------------------------------------------------------------------------------------------
-using namespace ::rtl ;
-using namespace ::com::sun::star::uno ;
-using namespace ::com::sun::star::registry ;
-using namespace ::cppu ;
+using namespace ::rtl ;
+using namespace ::com::sun::star::uno ;
+using namespace ::com::sun::star::registry ;
+using namespace ::cppu ;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::datatransfer::clipboard;
//-----------------------------------------------------------------
// create a static object to initialize the shell9x library
//-----------------------------------------------------------------
-
+
namespace
{
//-----------------------------------------------------------------------------------------------------------
// functions to create a new Clipboad instance; is needed by factory helper implementation
// @param rServiceManager - service manager, useful if the component needs other uno services
- // so we should give it to every UNO-Implementation component
+ // so we should give it to every UNO-Implementation component
//-----------------------------------------------------------------------------------------------------------
Reference< XInterface > SAL_CALL createInstance( const Reference< XMultiServiceFactory >& rServiceManager )
@@ -82,10 +82,10 @@ namespace
}
//-----------------------------------------------------------------------------------------------------------
-// the 3 important functions which will be exported
+// the 3 important functions which will be exported
//-----------------------------------------------------------------------------------------------------------
-extern "C"
+extern "C"
{
//----------------------------------------------------------------------
@@ -113,13 +113,13 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
{
try
{
- Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
+ Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
pXNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( WINCLIPBOARD_REGKEY_NAME ) ) );
bRetVal = sal_True;
}
catch( InvalidRegistryException& )
- {
- OSL_ENSURE(sal_False, "InvalidRegistryException caught");
+ {
+ OSL_ENSURE(sal_False, "InvalidRegistryException caught");
bRetVal = sal_False;
}
}
@@ -128,7 +128,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
}
//----------------------------------------------------------------------
-// component_getFactory
+// component_getFactory
// returns a factory to create XFilePicker-Services
//----------------------------------------------------------------------
@@ -139,8 +139,8 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, WINCLIPBOARD_IMPL_NAME ) ) )
{
Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( WINCLIPBOARD_SERVICE_NAME ) );
-
+ aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( WINCLIPBOARD_SERVICE_NAME ) );
+
//OUString( RTL_CONSTASCII_USTRINGPARAM( FPS_IMPL_NAME ) )
Reference< XSingleServiceFactory > xFactory ( createOneInstanceFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
@@ -151,7 +151,7 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
{
xFactory->acquire();
pRet = xFactory.get();
- }
+ }
}
return pRet;
diff --git a/dtrans/source/win32/dnd/dnd.xml b/dtrans/source/win32/dnd/dnd.xml
index 10db2ddb2326..a7690cbd2de4 100644
--- a/dtrans/source/win32/dnd/dnd.xml
+++ b/dtrans/source/win32/dnd/dnd.xml
@@ -1,46 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module-description PUBLIC "-//StarOffice//DTD ComponentDescription 1.0//EN" "module-description.dtd">
<module-description xmlns:xlink="http://www.w3.org/1999/xlink">
- <module-name> dnd </module-name>
+ <module-name> dnd </module-name>
<component-description>
<author> Joachim Lingner </author>
- <name> com.sun.star.comp.datatransfer.dnd.OleDragAndDrop </name>
+ <name> com.sun.star.comp.datatransfer.dnd.OleDragAndDrop </name>
<description>
The win32 implementation of the drop target service.
</description>
- <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
- <language> c++ </language>
+ <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
+ <language> c++ </language>
<status value="beta"/>
- <supported-service> com.sun.star.datatransfer.dnd.OleDragSource</supported-service>
- <supported-service> com.sun.star.datatransfer.dnd.OleDropTarget</supported-service>
- <service-dependency> ... </service-dependency>
- <type> com.sun.star.datatransfer.dnd.DNDConstants </type>
- <type> com.sun.star.datatransfer.dnd.XDropTarget </type>
- <type> com.sun.star.datatransfer.dnd.XDropTargetDragContext </type>
- <type> com.sun.star.datatransfer.dnd.XDropTargetListener </type>
- <type> com.sun.star.datatransfer.dnd.XDropTargetDropContext </type>
- <type> com.sun.star.datatransfer.dnd.XDragSourceContext </type>
- <type> com.sun.star.datatransfer.dnd.XDragSource </type>
- <type> com.sun.star.datatransfer.XTransferable </type>
- <type> com.sun.star.lang.XComponent </type>
- <type> com.sun.star.lang.XMultiServiceFactory </type>
- <type> com.sun.star.lang.XSingleServiceFactory </type>
- <type> com.sun.star.lang.XServiceInfo </type>
- <type> com.sun.star.lang.XTypeProvider </type>
- <type> com.sun.star.lang.IllegalArgumentException </type>
- <type> com.sun.star.lang.XInitialization </type>
- <type> com.sun.star.lang.XUnoTunnel </type>
- <type> com.sun.star.uno.TypeClass </type>
- <type> com.sun.star.uno.XWeak </type>
- <type> com.sun.star.uno.XAggregation </type>
- <type> com.sun.star.registry.XRegistryKey </type>
- <type> com.sun.star.awt.MouseButton </type>
- <type> com.sun.star.awt.MouseEvent </type>
+ <supported-service> com.sun.star.datatransfer.dnd.OleDragSource</supported-service>
+ <supported-service> com.sun.star.datatransfer.dnd.OleDropTarget</supported-service>
+ <service-dependency> ... </service-dependency>
+ <type> com.sun.star.datatransfer.dnd.DNDConstants </type>
+ <type> com.sun.star.datatransfer.dnd.XDropTarget </type>
+ <type> com.sun.star.datatransfer.dnd.XDropTargetDragContext </type>
+ <type> com.sun.star.datatransfer.dnd.XDropTargetListener </type>
+ <type> com.sun.star.datatransfer.dnd.XDropTargetDropContext </type>
+ <type> com.sun.star.datatransfer.dnd.XDragSourceContext </type>
+ <type> com.sun.star.datatransfer.dnd.XDragSource </type>
+ <type> com.sun.star.datatransfer.XTransferable </type>
+ <type> com.sun.star.lang.XComponent </type>
+ <type> com.sun.star.lang.XMultiServiceFactory </type>
+ <type> com.sun.star.lang.XSingleServiceFactory </type>
+ <type> com.sun.star.lang.XServiceInfo </type>
+ <type> com.sun.star.lang.XTypeProvider </type>
+ <type> com.sun.star.lang.IllegalArgumentException </type>
+ <type> com.sun.star.lang.XInitialization </type>
+ <type> com.sun.star.lang.XUnoTunnel </type>
+ <type> com.sun.star.uno.TypeClass </type>
+ <type> com.sun.star.uno.XWeak </type>
+ <type> com.sun.star.uno.XAggregation </type>
+ <type> com.sun.star.registry.XRegistryKey </type>
+ <type> com.sun.star.awt.MouseButton </type>
+ <type> com.sun.star.awt.MouseEvent </type>
</component-description>
- <project-build-dependency> cppuhelper </project-build-dependency>
- <project-build-dependency> cppu </project-build-dependency>
- <project-build-dependency> sal </project-build-dependency>
- <runtime-module-dependency> cppuhelper </runtime-module-dependency>
- <runtime-module-dependency> cppu2 </runtime-module-dependency>
- <runtime-module-dependency> sal2 </runtime-module-dependency>
+ <project-build-dependency> cppuhelper </project-build-dependency>
+ <project-build-dependency> cppu </project-build-dependency>
+ <project-build-dependency> sal </project-build-dependency>
+ <runtime-module-dependency> cppuhelper </runtime-module-dependency>
+ <runtime-module-dependency> cppu2 </runtime-module-dependency>
+ <runtime-module-dependency> sal2 </runtime-module-dependency>
</module-description>
diff --git a/dtrans/source/win32/dnd/dndentry.cxx b/dtrans/source/win32/dnd/dndentry.cxx
index 34bc550d46c3..cfb0b8d3d5a5 100644
--- a/dtrans/source/win32/dnd/dndentry.cxx
+++ b/dtrans/source/win32/dnd/dndentry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,10 +35,10 @@
#include "source.hxx"
#include "target.hxx"
-using namespace ::rtl ;
-using namespace ::com::sun::star::uno ;
-using namespace ::com::sun::star::registry ;
-using namespace ::cppu ;
+using namespace ::rtl ;
+using namespace ::com::sun::star::uno ;
+using namespace ::com::sun::star::registry ;
+using namespace ::cppu ;
using namespace ::com::sun::star::lang;
rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT;
@@ -56,7 +56,7 @@ Reference< XInterface > SAL_CALL createDropTarget( const Reference< XMultiServic
}
-extern "C"
+extern "C"
{
sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
{
@@ -88,17 +88,17 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
{
try
{
- Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
+ Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
pXNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( DNDSOURCE_REGKEY_NAME ) ) );
bRetVal = sal_True;
- pXNewKey= static_cast< XRegistryKey* >( pRegistryKey );
+ pXNewKey= static_cast< XRegistryKey* >( pRegistryKey );
pXNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( DNDTARGET_REGKEY_NAME ) ) );
bRetVal = sal_True;
}
catch( InvalidRegistryException& )
- {
- OSL_ENSURE(sal_False, "InvalidRegistryException caught");
+ {
+ OSL_ENSURE(sal_False, "InvalidRegistryException caught");
bRetVal = sal_False;
}
}
@@ -107,7 +107,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
}
//----------------------------------------------------------------------
-// component_getFactory
+// component_getFactory
// returns a factory to create XFilePicker-Services
//----------------------------------------------------------------------
@@ -119,21 +119,21 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, DNDSOURCE_IMPL_NAME ) ) )
{
Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( DNDSOURCE_SERVICE_NAME ) );
-
+ aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( DNDSOURCE_SERVICE_NAME ) );
+
xFactory= createSingleFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
OUString::createFromAscii( pImplName ),
createDragSource,
aSNS,
&g_moduleCount.modCnt);
-
+
}
else if( pSrvManager && ( 0 == rtl_str_compare( pImplName, DNDTARGET_IMPL_NAME ) ) )
{
Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( DNDTARGET_SERVICE_NAME ) );
-
+ aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( DNDTARGET_SERVICE_NAME ) );
+
xFactory= createSingleFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
OUString::createFromAscii( pImplName ),
@@ -146,7 +146,7 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
{
xFactory->acquire();
pRet = xFactory.get();
- }
+ }
return pRet;
}
diff --git a/dtrans/source/win32/dnd/globals.cxx b/dtrans/source/win32/dnd/globals.cxx
index f8160de03639..fa5f301ea90d 100644
--- a/dtrans/source/win32/dnd/globals.cxx
+++ b/dtrans/source/win32/dnd/globals.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ sal_Int8 dndOleKeysToAction( DWORD grfKeyState, sal_Int8 nSourceActions)
// no MK_ALT, MK_CONTROL, MK_SHIFT
if( !(grfKeyState & MK_CONTROL) &&
- !(grfKeyState & MK_ALT) &&
+ !(grfKeyState & MK_ALT) &&
!(grfKeyState & MK_RBUTTON) &&
!(grfKeyState & MK_SHIFT))
{
@@ -56,7 +56,7 @@ sal_Int8 dndOleKeysToAction( DWORD grfKeyState, sal_Int8 nSourceActions)
{
ret= ACTION_DEFAULT | ACTION_MOVE;
}
-
+
else if( nSourceActions & ACTION_COPY )
{
ret= ACTION_COPY;
@@ -75,8 +75,8 @@ sal_Int8 dndOleKeysToAction( DWORD grfKeyState, sal_Int8 nSourceActions)
{
ret= ACTION_MOVE;
}
- else if ( grfKeyState & MK_CONTROL &&
- !(grfKeyState & MK_SHIFT) )
+ else if ( grfKeyState & MK_CONTROL &&
+ !(grfKeyState & MK_SHIFT) )
{
ret= ACTION_COPY;
}
@@ -85,7 +85,7 @@ sal_Int8 dndOleKeysToAction( DWORD grfKeyState, sal_Int8 nSourceActions)
{
ret= ACTION_LINK;
}
- else if ( grfKeyState & MK_RBUTTON |
+ else if ( grfKeyState & MK_RBUTTON |
grfKeyState & MK_ALT)
{
ret= ACTION_COPY_OR_MOVE | ACTION_LINK;
diff --git a/dtrans/source/win32/dnd/globals.hxx b/dtrans/source/win32/dnd/globals.hxx
index d9ff77dd731d..e3803de1cbe9 100644
--- a/dtrans/source/win32/dnd/globals.hxx
+++ b/dtrans/source/win32/dnd/globals.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,34 +49,34 @@
#define DNDTARGET_REGKEY_NAME "/com.sun.star.comp.datatransfer.dnd.OleDropTarget_V1/UNO/SERVICES/com.sun.star.datatransfer.dnd.OleDropTarget"
// This maps key states as occur as parameter, e.g. in IDropTarget::DragEnter,
-// IDropSource::QueryContinueDrag, to actions as are declared in
+// IDropSource::QueryContinueDrag, to actions as are declared in
// com::sun::star::datatransfer::dnd::DNDConstants ( ACTION_MOVE etc).
-// If the grfKeyState indicates the ALt or right mousebutton then the returned
+// If the grfKeyState indicates the ALt or right mousebutton then the returned
// values combines all possible actions. This is because those key and button are
// used when the user expect a menu to appear when he drops. The menu then
// contains entries, such as move, copy, link, cancel.
-// An odd fact is that the argument grfKeyState in IDropTarget::Drop does not
-// contain mouse buttons (winnt 4 SP6). That indicates that the right mouse button
+// An odd fact is that the argument grfKeyState in IDropTarget::Drop does not
+// contain mouse buttons (winnt 4 SP6). That indicates that the right mouse button
// is not considered relevant in a drag operation. Contrarily the file explorer
-// gives that button a special meaning: the user has to select the effect from
+// gives that button a special meaning: the user has to select the effect from
// a context menu on drop.
sal_Int8 dndOleKeysToAction( DWORD grfKeyState, sal_Int8 sourceActions);
-// The function maps a windows DROPEFFECTs to actions
+// The function maps a windows DROPEFFECTs to actions
// ( com::sun::star::datatransfer::dnd::DNDConstants).
-// The argument can be a combination of different DROPEFFECTS,
-// In that case the return value is also a combination of the
+// The argument can be a combination of different DROPEFFECTS,
+// In that case the return value is also a combination of the
// appropriate actions.
sal_Int8 dndOleDropEffectsToActions( DWORD dwEffect);
// The function maps actions ( com::sun::star::datatransfer::dnd::DNDConstants)
// to window DROPEFFECTs.
// The argument can be a combination of different actions
-// In that case the return value is also a combination of the
+// In that case the return value is also a combination of the
// appropriate DROPEFFECTS.
DWORD dndActionsToDropEffects( sal_Int8 actions);
-// If the argument constitutes only one action then it is mapped to the
+// If the argument constitutes only one action then it is mapped to the
// corresponding DROPEFFECT otherwise DROPEFFECT_MOVE is returned. This is
// why move is the default effect (no modifiers pressed, or right mouse button
// or Alt).
diff --git a/dtrans/source/win32/dnd/idroptarget.cxx b/dtrans/source/win32/dnd/idroptarget.cxx
index 5fa45b935391..e1324bcf6d89 100644
--- a/dtrans/source/win32/dnd/idroptarget.cxx
+++ b/dtrans/source/win32/dnd/idroptarget.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ HRESULT STDMETHODCALLTYPE IDropTargetImpl::QueryInterface( REFIID riid, void **
*ppvObject= static_cast<IUnknown*>( this);
else if ( riid == __uuidof( IDropTarget))
*ppvObject= static_cast<IDropTarget*>( this);
-
+
if(*ppvObject)
{
AddRef();
@@ -68,14 +68,14 @@ HRESULT STDMETHODCALLTYPE IDropTargetImpl::QueryInterface( REFIID riid, void **
}
else
return E_NOINTERFACE;
-
+
}
-
+
ULONG STDMETHODCALLTYPE IDropTargetImpl::AddRef( void)
{
return InterlockedIncrement( &m_nRefCount);
}
-
+
ULONG STDMETHODCALLTYPE IDropTargetImpl::Release( void)
{
LONG count= InterlockedDecrement( &m_nRefCount);
@@ -92,25 +92,25 @@ STDMETHODIMP IDropTargetImpl::DragEnter( IDataObject __RPC_FAR *pDataObj,
return m_rDropTarget.DragEnter( pDataObj, grfKeyState,
pt, pdwEffect);
}
-
+
STDMETHODIMP IDropTargetImpl::DragOver( DWORD grfKeyState,
POINTL pt,
DWORD *pdwEffect)
{
return m_rDropTarget.DragOver( grfKeyState, pt, pdwEffect);
}
-
+
STDMETHODIMP IDropTargetImpl::DragLeave( void)
{
return m_rDropTarget.DragLeave();
}
-
+
STDMETHODIMP IDropTargetImpl::Drop( IDataObject *pDataObj,
DWORD grfKeyState,
POINTL pt,
DWORD __RPC_FAR *pdwEffect)
{
- return m_rDropTarget.Drop( pDataObj, grfKeyState,
+ return m_rDropTarget.Drop( pDataObj, grfKeyState,
pt, pdwEffect);
}
diff --git a/dtrans/source/win32/dnd/idroptarget.hxx b/dtrans/source/win32/dnd/idroptarget.hxx
index 8fafd98f01db..2f958ca7d0ae 100644
--- a/dtrans/source/win32/dnd/idroptarget.hxx
+++ b/dtrans/source/win32/dnd/idroptarget.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
*
************************************************************************/
#ifndef _IDROPTARGET_HXX_
-#define _IDROPTARGET_HXX_
+#define _IDROPTARGET_HXX_
#include "target.hxx"
@@ -36,35 +36,35 @@ class IDropTargetImpl: public IDropTarget
// Calls to IDropTarget functions are delegated to a DropTarget.
DropTarget& m_rDropTarget;
- virtual ~IDropTargetImpl(); // delete is only called by IUnknown::Release
+ virtual ~IDropTargetImpl(); // delete is only called by IUnknown::Release
IDropTargetImpl( const IDropTargetImpl& );
IDropTargetImpl& operator=( const IDropTargetImpl& );
public:
IDropTargetImpl( DropTarget& pTarget);
// IDropTarget
- virtual HRESULT STDMETHODCALLTYPE QueryInterface(
+ virtual HRESULT STDMETHODCALLTYPE QueryInterface(
/* [in] */ REFIID riid,
/* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
-
+
virtual ULONG STDMETHODCALLTYPE AddRef( );
-
+
virtual ULONG STDMETHODCALLTYPE Release( );
- virtual HRESULT STDMETHODCALLTYPE DragEnter(
+ virtual HRESULT STDMETHODCALLTYPE DragEnter(
/* [unique][in] */ IDataObject __RPC_FAR *pDataObj,
/* [in] */ DWORD grfKeyState,
/* [in] */ POINTL pt,
/* [out][in] */ DWORD __RPC_FAR *pdwEffect);
-
- virtual HRESULT STDMETHODCALLTYPE DragOver(
+
+ virtual HRESULT STDMETHODCALLTYPE DragOver(
/* [in] */ DWORD grfKeyState,
/* [in] */ POINTL pt,
/* [out][in] */ DWORD __RPC_FAR *pdwEffect);
-
+
virtual HRESULT STDMETHODCALLTYPE DragLeave( ) ;
-
- virtual HRESULT STDMETHODCALLTYPE Drop(
+
+ virtual HRESULT STDMETHODCALLTYPE Drop(
/* [unique][in] */ IDataObject __RPC_FAR *pDataObj,
/* [in] */ DWORD grfKeyState,
/* [in] */ POINTL pt,
diff --git a/dtrans/source/win32/dnd/source.cxx b/dtrans/source/win32/dnd/source.cxx
index 7d714aed4a33..d411671cf45e 100644
--- a/dtrans/source/win32/dnd/source.cxx
+++ b/dtrans/source/win32/dnd/source.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@ unsigned __stdcall DndOleSTAFunc(LPVOID pParams);
DragSource::DragSource( const Reference<XMultiServiceFactory>& sf):
m_serviceFactory( sf),
WeakComponentImplHelper3< XDragSource, XInitialization, XServiceInfo >(m_mutex),
-// m_pcurrentContext_impl(0),
+// m_pcurrentContext_impl(0),
m_hAppWindow(0),
m_MouseButton(0),
m_RunningDndOperationCount(0)
@@ -219,7 +219,7 @@ void SAL_CALL DragSource::startDrag(
DragSourceDropEvent dsde;
- dsde.DropAction = ACTION_NONE;
+ dsde.DropAction = ACTION_NONE;
dsde.DropSuccess = false;
try
@@ -297,7 +297,7 @@ HRESULT STDMETHODCALLTYPE DragSource::QueryContinueDrag(
{
if( ( m_MouseButton == MouseButton::RIGHT && !(grfKeyState & MK_RBUTTON) ) ||
( m_MouseButton == MouseButton::MIDDLE && !(grfKeyState & MK_MBUTTON) ) ||
- ( m_MouseButton == MouseButton::LEFT && !(grfKeyState & MK_LBUTTON) ) ||
+ ( m_MouseButton == MouseButton::LEFT && !(grfKeyState & MK_LBUTTON) ) ||
( m_MouseButton == 0 && !(grfKeyState & MK_LBUTTON) ) )
{
retVal= DRAGDROP_S_DROP;
diff --git a/dtrans/source/win32/dnd/source.hxx b/dtrans/source/win32/dnd/source.hxx
index feef33a18add..cb10927ee9cc 100644
--- a/dtrans/source/win32/dnd/source.hxx
+++ b/dtrans/source/win32/dnd/source.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/dtrans/source/win32/dnd/sourcecontext.cxx b/dtrans/source/win32/dnd/sourcecontext.cxx
index d4d59f4d736c..ff100d106b66 100644
--- a/dtrans/source/win32/dnd/sourcecontext.cxx
+++ b/dtrans/source/win32/dnd/sourcecontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/dtrans/source/win32/dnd/sourcecontext.hxx b/dtrans/source/win32/dnd/sourcecontext.hxx
index a73159abe258..b1ca8b984beb 100644
--- a/dtrans/source/win32/dnd/sourcecontext.hxx
+++ b/dtrans/source/win32/dnd/sourcecontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,17 +64,17 @@ public:
SourceContext( DragSource* pSource, const Reference<XDragSourceListener>& listener);
~SourceContext();
- virtual void SAL_CALL addDragSourceListener( const Reference<XDragSourceListener >& dsl )
+ virtual void SAL_CALL addDragSourceListener( const Reference<XDragSourceListener >& dsl )
throw( RuntimeException);
- virtual void SAL_CALL removeDragSourceListener( const Reference<XDragSourceListener >& dsl )
+ virtual void SAL_CALL removeDragSourceListener( const Reference<XDragSourceListener >& dsl )
throw( RuntimeException);
- virtual sal_Int32 SAL_CALL getCurrentCursor( )
+ virtual sal_Int32 SAL_CALL getCurrentCursor( )
throw( RuntimeException);
- virtual void SAL_CALL setCursor( sal_Int32 cursorId )
+ virtual void SAL_CALL setCursor( sal_Int32 cursorId )
throw( RuntimeException);
- virtual void SAL_CALL setImage( sal_Int32 imageId )
+ virtual void SAL_CALL setImage( sal_Int32 imageId )
throw( RuntimeException);
- virtual void SAL_CALL transferablesFlavorsChanged( )
+ virtual void SAL_CALL transferablesFlavorsChanged( )
throw( RuntimeException);
diff --git a/dtrans/source/win32/dnd/target.cxx b/dtrans/source/win32/dnd/target.cxx
index 1f67d3cb92e1..bff6778b17ca 100644
--- a/dtrans/source/win32/dnd/target.cxx
+++ b/dtrans/source/win32/dnd/target.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -132,11 +132,11 @@ void SAL_CALL DropTarget::initialize( const Sequence< Any >& aArguments )
// to ensure that it is called from the same thread that created the Window
// otherwise meesages sent during DND won't reach the windows message queue.
// Calling AttachThreadInput first would resolve this problem but would block
- // the message queue of the calling thread. So if the current thread
+ // the message queue of the calling thread. So if the current thread
// (even if it's an STA thread) and the thread that created the window are not
// identical we need to create a new thread as we do when the calling thread is
// an MTA thread.
-
+
if( aArguments.getLength() > 0)
{
// Get the window handle from aArgument. It is needed for RegisterDragDrop.
diff --git a/dtrans/source/win32/dnd/target.hxx b/dtrans/source/win32/dnd/target.hxx
index e85bd89f2fb0..b7144d402f1f 100644
--- a/dtrans/source/win32/dnd/target.hxx
+++ b/dtrans/source/win32/dnd/target.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -97,7 +97,7 @@ private:
// If m_bActive == sal_True then events are fired to XDropTargetListener s,
// none otherwise. The default value is sal_True.
sal_Bool m_bActive;
- sal_Int8 m_nDefaultActions;
+ sal_Int8 m_nDefaultActions;
// This value is set when a XDropTargetListener calls accept or reject on
// the XDropTargetDropContext or XDropTargetDragContext.
@@ -109,7 +109,7 @@ private:
Reference<XTransferable> m_currentData;
// The current action is used to determine if the USER
// action has changed (dropActionChanged)
-// sal_Int8 m_userAction;
+// sal_Int8 m_userAction;
// Set by listeners when they call XDropTargetDropContext::dropComplete
sal_Bool m_bDropComplete;
// converts IDataObject objects to XTransferable objects.
diff --git a/dtrans/source/win32/dnd/targetdragcontext.cxx b/dtrans/source/win32/dnd/targetdragcontext.cxx
index 2f0d7fd9510b..19246901ae9e 100644
--- a/dtrans/source/win32/dnd/targetdragcontext.cxx
+++ b/dtrans/source/win32/dnd/targetdragcontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ TargetDragContext::~TargetDragContext()
g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
}
-void SAL_CALL TargetDragContext::acceptDrag( sal_Int8 dragOperation )
+void SAL_CALL TargetDragContext::acceptDrag( sal_Int8 dragOperation )
throw( RuntimeException)
{
m_pDropTarget->_acceptDrag( dragOperation, static_cast<XDropTargetDragContext*>( this) );
diff --git a/dtrans/source/win32/dnd/targetdragcontext.hxx b/dtrans/source/win32/dnd/targetdragcontext.hxx
index fcb2efe3c920..dead1d94c8e7 100644
--- a/dtrans/source/win32/dnd/targetdragcontext.hxx
+++ b/dtrans/source/win32/dnd/targetdragcontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ class TargetDragContext: public WeakImplHelper1<XDropTargetDragContext>
// some calls to the functions of XDropTargetDragContext are delegated
// to non-interface functions of m_pDropTarget
DropTarget* m_pDropTarget;
-
+
TargetDragContext();
TargetDragContext( const TargetDragContext&);
TargetDragContext &operator= ( const TargetDragContext&);
@@ -54,7 +54,7 @@ public:
TargetDragContext( DropTarget* pTarget);
~TargetDragContext();
- virtual void SAL_CALL acceptDrag( sal_Int8 dragOperation )
+ virtual void SAL_CALL acceptDrag( sal_Int8 dragOperation )
throw( RuntimeException);
virtual void SAL_CALL rejectDrag( )
throw( RuntimeException);
diff --git a/dtrans/source/win32/dnd/targetdropcontext.cxx b/dtrans/source/win32/dnd/targetdropcontext.cxx
index 87bcddb87498..de8aac4944be 100644
--- a/dtrans/source/win32/dnd/targetdropcontext.cxx
+++ b/dtrans/source/win32/dnd/targetdropcontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,19 +51,19 @@ TargetDropContext::~TargetDropContext()
g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
}
-void SAL_CALL TargetDropContext::acceptDrop( sal_Int8 dropOperation )
+void SAL_CALL TargetDropContext::acceptDrop( sal_Int8 dropOperation )
throw( RuntimeException)
{
m_pDropTarget->_acceptDrop( dropOperation, static_cast<XDropTargetDropContext*>( this) );
}
-void SAL_CALL TargetDropContext::rejectDrop( )
+void SAL_CALL TargetDropContext::rejectDrop( )
throw( RuntimeException)
{
m_pDropTarget->_rejectDrop( static_cast<XDropTargetDropContext*>( this) );
}
-
-void SAL_CALL TargetDropContext::dropComplete( sal_Bool success )
+
+void SAL_CALL TargetDropContext::dropComplete( sal_Bool success )
throw( RuntimeException)
{
m_pDropTarget->_dropComplete( success, static_cast<XDropTargetDropContext*>( this) );
diff --git a/dtrans/source/win32/dnd/targetdropcontext.hxx b/dtrans/source/win32/dnd/targetdropcontext.hxx
index f5cc4670a824..8e41af892f4f 100644
--- a/dtrans/source/win32/dnd/targetdropcontext.hxx
+++ b/dtrans/source/win32/dnd/targetdropcontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,21 +53,21 @@ public:
~TargetDropContext();
- // XDropTargetDragContext
- virtual void SAL_CALL acceptDrop( sal_Int8 dropOperation )
+ // XDropTargetDragContext
+ virtual void SAL_CALL acceptDrop( sal_Int8 dropOperation )
throw( RuntimeException);
- virtual void SAL_CALL rejectDrop( )
+ virtual void SAL_CALL rejectDrop( )
throw( RuntimeException);
-
-/* virtual Sequence< DataFlavor > SAL_CALL getCurrentDataFlavors( )
+
+/* virtual Sequence< DataFlavor > SAL_CALL getCurrentDataFlavors( )
throw( RuntimeException);
- virtual sal_Bool SAL_CALL isDataFlavorSupported( const DataFlavor& df )
+ virtual sal_Bool SAL_CALL isDataFlavorSupported( const DataFlavor& df )
throw( RuntimeException);
*/
// XDropTargetDropContext (inherits XDropTargetDragContext)
- virtual void SAL_CALL dropComplete( sal_Bool success )
+ virtual void SAL_CALL dropComplete( sal_Bool success )
throw( RuntimeException);
};
#endif
diff --git a/dtrans/source/win32/dtobj/APNDataObject.cxx b/dtrans/source/win32/dtobj/APNDataObject.cxx
index 80a8c1e737e6..1cae8652d310 100644
--- a/dtrans/source/win32/dtobj/APNDataObject.cxx
+++ b/dtrans/source/win32/dtobj/APNDataObject.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,8 +44,8 @@
// defines
//------------------------------------------------------------------------
-#define FREE_HGLOB_ON_RELEASE TRUE
-#define KEEP_HGLOB_ON_RELEASE FALSE
+#define FREE_HGLOB_ON_RELEASE TRUE
+#define KEEP_HGLOB_ON_RELEASE FALSE
//------------------------------------------------------------------------
// ctor
@@ -55,58 +55,58 @@ CAPNDataObject::CAPNDataObject( IDataObjectPtr rIDataObject ) :
m_rIDataObjectOrg( rIDataObject ),
m_hGlobal( NULL ),
m_nRefCnt( 0 )
-{
-
+{
+
OSL_ENSURE( m_rIDataObjectOrg.get( ), "constructing CAPNDataObject with empty data object" );
-
+
// we marshal the IDataObject interface pointer here so
- // that it can be unmarshaled multiple times when this
+ // that it can be unmarshaled multiple times when this
// class will be used from another apartment
IStreamPtr pStm;
HRESULT hr = CreateStreamOnHGlobal( 0, KEEP_HGLOB_ON_RELEASE, &pStm );
-
+
OSL_ENSURE( E_INVALIDARG != hr, "invalid args passed to CreateStreamOnHGlobal" );
if ( SUCCEEDED( hr ) )
- {
- HRESULT hr_marshal = CoMarshalInterface(
- pStm.get(),
- __uuidof(IDataObject),
+ {
+ HRESULT hr_marshal = CoMarshalInterface(
+ pStm.get(),
+ __uuidof(IDataObject),
static_cast<LPUNKNOWN>(m_rIDataObjectOrg.get()),
MSHCTX_LOCAL,
NULL,
MSHLFLAGS_TABLEWEAK );
-
+
OSL_ENSURE( CO_E_NOTINITIALIZED != hr_marshal, "COM is not initialized" );
- // marshalling may fail if COM is not initialized
+ // marshalling may fail if COM is not initialized
// for the calling thread which is a program time
// error or because of stream errors which are runtime
// errors for instance E_OUTOFMEMORY etc.
-
+
hr = GetHGlobalFromStream(pStm.get(), &m_hGlobal );
OSL_ENSURE( E_INVALIDARG != hr, "invalid stream passed to GetHGlobalFromStream" );
- // if the marshalling failed we free the
+ // if the marshalling failed we free the
// global memory again and set m_hGlobal
// to a defined value
if (FAILED(hr_marshal))
{
OSL_ENSURE(sal_False, "marshalling failed");
-
+
#if OSL_DEBUG_LEVEL > 0
HGLOBAL hGlobal =
#endif
- GlobalFree(m_hGlobal);
+ GlobalFree(m_hGlobal);
OSL_ENSURE(NULL == hGlobal, "GlobalFree failed");
m_hGlobal = NULL;
}
- }
+ }
}
CAPNDataObject::~CAPNDataObject( )
-{
+{
if (m_hGlobal)
{
IStreamPtr pStm;
@@ -119,7 +119,7 @@ CAPNDataObject::~CAPNDataObject( )
hr = CoReleaseMarshalData(pStm.get());
OSL_ENSURE(SUCCEEDED(hr), "CoReleaseMarshalData failed");
}
- }
+ }
}
//------------------------------------------------------------------------
@@ -127,7 +127,7 @@ CAPNDataObject::~CAPNDataObject( )
//------------------------------------------------------------------------
STDMETHODIMP CAPNDataObject::QueryInterface( REFIID iid, LPVOID* ppvObject )
-{
+{
OSL_ASSERT( NULL != ppvObject );
if ( NULL == ppvObject )
@@ -143,7 +143,7 @@ STDMETHODIMP CAPNDataObject::QueryInterface( REFIID iid, LPVOID* ppvObject )
hr = S_OK;
}
- return hr;
+ return hr;
}
//------------------------------------------------------------------------
@@ -161,7 +161,7 @@ STDMETHODIMP_(ULONG) CAPNDataObject::AddRef( )
STDMETHODIMP_(ULONG) CAPNDataObject::Release( )
{
- // we need a helper variable because it's not allowed to access
+ // we need a helper variable because it's not allowed to access
// a member variable after an object is destroyed
ULONG nRefCnt = static_cast< ULONG >( InterlockedDecrement( &m_nRefCnt ) );
@@ -176,16 +176,16 @@ STDMETHODIMP_(ULONG) CAPNDataObject::Release( )
//------------------------------------------------------------------------
STDMETHODIMP CAPNDataObject::GetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium )
-{
+{
HRESULT hr = m_rIDataObjectOrg->GetData( pFormatetc, pmedium );
-
+
if (RPC_E_WRONG_THREAD == hr)
{
IDataObjectPtr pIDOTmp;
hr = MarshalIDataObjectIntoCurrentApartment(&pIDOTmp);
if (SUCCEEDED(hr))
- hr = pIDOTmp->GetData(pFormatetc, pmedium);
+ hr = pIDOTmp->GetData(pFormatetc, pmedium);
}
return hr;
}
@@ -205,7 +205,7 @@ STDMETHODIMP CAPNDataObject::EnumFormatEtc( DWORD dwDirection, IEnumFORMATETC**
if (SUCCEEDED(hr))
hr = pIDOTmp->EnumFormatEtc(dwDirection, ppenumFormatetc);
- }
+ }
return hr;
}
@@ -218,12 +218,12 @@ STDMETHODIMP CAPNDataObject::QueryGetData( LPFORMATETC pFormatetc )
HRESULT hr = m_rIDataObjectOrg->QueryGetData( pFormatetc );
if (RPC_E_WRONG_THREAD == hr)
- {
+ {
IDataObjectPtr pIDOTmp;
hr = MarshalIDataObjectIntoCurrentApartment( &pIDOTmp );
if (SUCCEEDED(hr))
- hr = pIDOTmp->QueryGetData(pFormatetc);
+ hr = pIDOTmp->QueryGetData(pFormatetc);
}
return hr;
}
@@ -242,8 +242,8 @@ STDMETHODIMP CAPNDataObject::GetDataHere( LPFORMATETC pFormatetc, LPSTGMEDIUM pm
hr = MarshalIDataObjectIntoCurrentApartment(&pIDOTmp);
if (SUCCEEDED(hr))
- hr = pIDOTmp->GetDataHere(pFormatetc, pmedium);
- }
+ hr = pIDOTmp->GetDataHere(pFormatetc, pmedium);
+ }
return hr;
}
@@ -262,7 +262,7 @@ STDMETHODIMP CAPNDataObject::GetCanonicalFormatEtc(LPFORMATETC pFormatectIn, LPF
if (SUCCEEDED(hr))
hr = pIDOTmp->GetCanonicalFormatEtc(pFormatectIn, pFormatetcOut);
- }
+ }
return hr;
}
@@ -280,8 +280,8 @@ STDMETHODIMP CAPNDataObject::SetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmediu
hr = MarshalIDataObjectIntoCurrentApartment(&pIDOTmp);
if (SUCCEEDED(hr))
- hr = pIDOTmp->SetData(pFormatetc, pmedium, fRelease);
- }
+ hr = pIDOTmp->SetData(pFormatetc, pmedium, fRelease);
+ }
return hr;
}
@@ -299,8 +299,8 @@ STDMETHODIMP CAPNDataObject::DAdvise( LPFORMATETC pFormatetc, DWORD advf, LPADVI
hr = MarshalIDataObjectIntoCurrentApartment(&pIDOTmp);
if (SUCCEEDED(hr))
- hr = pIDOTmp->DAdvise(pFormatetc, advf, pAdvSink, pdwConnection);
- }
+ hr = pIDOTmp->DAdvise(pFormatetc, advf, pAdvSink, pdwConnection);
+ }
return hr;
}
@@ -318,8 +318,8 @@ STDMETHODIMP CAPNDataObject::DUnadvise( DWORD dwConnection )
hr = MarshalIDataObjectIntoCurrentApartment(&pIDOTmp);
if (SUCCEEDED(hr))
- hr = pIDOTmp->DUnadvise(dwConnection);
- }
+ hr = pIDOTmp->DUnadvise(dwConnection);
+ }
return hr;
}
@@ -337,8 +337,8 @@ STDMETHODIMP CAPNDataObject::EnumDAdvise( LPENUMSTATDATA * ppenumAdvise )
hr = MarshalIDataObjectIntoCurrentApartment(&pIDOTmp);
if (SUCCEEDED(hr))
- hr = pIDOTmp->EnumDAdvise(ppenumAdvise);
- }
+ hr = pIDOTmp->EnumDAdvise(ppenumAdvise);
+ }
return hr;
}
@@ -361,20 +361,20 @@ HRESULT CAPNDataObject::MarshalIDataObjectIntoCurrentApartment( IDataObject** pp
*ppIDataObj = NULL;
HRESULT hr = E_FAIL;
-
+
if (m_hGlobal)
{
IStreamPtr pStm;
hr = CreateStreamOnHGlobal(m_hGlobal, KEEP_HGLOB_ON_RELEASE, &pStm);
-
+
OSL_ENSURE(E_INVALIDARG != hr, "CreateStreamOnHGlobal with invalid args called");
if (SUCCEEDED(hr))
{
- hr = CoUnmarshalInterface(pStm.get(), __uuidof(IDataObject), (void**)ppIDataObj);
+ hr = CoUnmarshalInterface(pStm.get(), __uuidof(IDataObject), (void**)ppIDataObj);
OSL_ENSURE(CO_E_NOTINITIALIZED != hr, "COM is not initialized");
}
- }
+ }
return hr;
}
diff --git a/dtrans/source/win32/dtobj/APNDataObject.hxx b/dtrans/source/win32/dtobj/APNDataObject.hxx
index cd9bd2f9a5b0..23fce0f674e6 100644
--- a/dtrans/source/win32/dtobj/APNDataObject.hxx
+++ b/dtrans/source/win32/dtobj/APNDataObject.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,13 +39,13 @@
/*
an APartment Neutral dataobject wrapper; this wrapper of a IDataObject
pointer can be used from any apartment without RPC_E_WRONG_THREAD
- which normally occurs if an apartment tries to use an interface
+ which normally occurs if an apartment tries to use an interface
pointer of another apartment; we use containment to hold the original
DataObject
*/
class CAPNDataObject : public IDataObject
{
-public:
+public:
CAPNDataObject( IDataObjectPtr rIDataObject );
virtual ~CAPNDataObject( );
@@ -78,8 +78,8 @@ private:
private:
IDataObjectPtr m_rIDataObjectOrg;
- HGLOBAL m_hGlobal;
- LONG m_nRefCnt;
+ HGLOBAL m_hGlobal;
+ LONG m_nRefCnt;
// prevent copy and assignment
private:
diff --git a/dtrans/source/win32/dtobj/DOTransferable.cxx b/dtrans/source/win32/dtobj/DOTransferable.cxx
index 5c051da5678d..630f08b2f955 100644
--- a/dtrans/source/win32/dtobj/DOTransferable.cxx
+++ b/dtrans/source/win32/dtobj/DOTransferable.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::container;
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
namespace
@@ -81,7 +81,7 @@ namespace
sal_Bool isValidFlavor( const DataFlavor& aFlavor )
{
return ( aFlavor.MimeType.getLength( ) &&
- ( ( aFlavor.DataType == CPPUTYPE_SEQINT8 ) ||
+ ( ( aFlavor.DataType == CPPUTYPE_SEQINT8 ) ||
( aFlavor.DataType == CPPUTYPE_OUSTRING ) ) );
}
@@ -92,21 +92,21 @@ namespace
// ctor
//------------------------------------------------------------------------
-CDOTransferable::CDOTransferable(
+CDOTransferable::CDOTransferable(
const Reference< XMultiServiceFactory >& ServiceManager, IDataObjectPtr rDataObject ) :
m_rDataObject( rDataObject ),
m_SrvMgr( ServiceManager ),
m_DataFormatTranslator( m_SrvMgr ),
m_bUnicodeRegistered( sal_False ),
m_TxtFormatOnClipboard( CF_INVALID )
-{
+{
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-Any SAL_CALL CDOTransferable::getTransferData( const DataFlavor& aFlavor )
+Any SAL_CALL CDOTransferable::getTransferData( const DataFlavor& aFlavor )
throw( UnsupportedFlavorException, IOException, RuntimeException )
{
OSL_ASSERT( isValidFlavor( aFlavor ) );
@@ -121,21 +121,21 @@ Any SAL_CALL CDOTransferable::getTransferData( const DataFlavor& aFlavor )
OSL_ASSERT( CF_INVALID != fetc.getClipformat() );
//------------------------------------------------
- // get the data from clipboard in a byte stream
+ // get the data from clipboard in a byte stream
//------------------------------------------------
-
+
ByteSequence_t clipDataStream;
-
+
try
{
clipDataStream = getClipboardData( fetc );
}
catch( UnsupportedFlavorException& )
{
- if ( m_DataFormatTranslator.isUnicodeTextFormat( fetc.getClipformat( ) ) &&
+ if ( m_DataFormatTranslator.isUnicodeTextFormat( fetc.getClipformat( ) ) &&
m_bUnicodeRegistered )
{
- OUString aUnicodeText = synthesizeUnicodeText( );
+ OUString aUnicodeText = synthesizeUnicodeText( );
Any aAny = makeAny( aUnicodeText );
return aAny;
}
@@ -154,19 +154,19 @@ Any SAL_CALL CDOTransferable::getTransferData( const DataFlavor& aFlavor )
// getTransferDataFlavors
//------------------------------------------------------------------------
-Sequence< DataFlavor > SAL_CALL CDOTransferable::getTransferDataFlavors( )
+Sequence< DataFlavor > SAL_CALL CDOTransferable::getTransferDataFlavors( )
throw( RuntimeException )
-{
- return m_FlavorList;
+{
+ return m_FlavorList;
}
//------------------------------------------------------------------------
// isDataFlavorSupported
-// returns true if we find a DataFlavor with the same MimeType and
+// returns true if we find a DataFlavor with the same MimeType and
// DataType
//------------------------------------------------------------------------
-sal_Bool SAL_CALL CDOTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
+sal_Bool SAL_CALL CDOTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
throw( RuntimeException )
{
OSL_ASSERT( isValidFlavor( aFlavor ) );
@@ -181,7 +181,7 @@ sal_Bool SAL_CALL CDOTransferable::isDataFlavorSupported( const DataFlavor& aFla
//------------------------------------------------------------------------
// helper function
// the list of datafalvors currently on the clipboard will be initialized
-// only once; if the client of this Transferable will hold a reference
+// only once; if the client of this Transferable will hold a reference
// to it und the underlying clipboard content changes, the client does
// possible operate on a invalid list
// if there is only text on the clipboard we will also offer unicode text
@@ -197,7 +197,7 @@ void SAL_CALL CDOTransferable::initFlavorList( )
if ( SUCCEEDED( hr ) )
{
pEnumFormatEtc->Reset( );
-
+
FORMATETC fetc;
while ( S_FALSE != pEnumFormatEtc->Next( 1, &fetc, NULL ) )
{
@@ -206,9 +206,9 @@ void SAL_CALL CDOTransferable::initFlavorList( )
// we don't offer this format
if ( CF_LOCALE == fetc.cfFormat )
continue;
-
- DataFlavor aFlavor = formatEtcToDataFlavor( fetc );
-
+
+ DataFlavor aFlavor = formatEtcToDataFlavor( fetc );
+
// if text or oemtext is offered we also pretend to have unicode text
if ( m_DataFormatTranslator.isOemOrAnsiTextFormat( fetc.cfFormat ) &&
!m_bUnicodeRegistered )
@@ -219,7 +219,7 @@ void SAL_CALL CDOTransferable::initFlavorList( )
m_bUnicodeRegistered = sal_True;
// register unicode text as accompany format
- aFlavor = formatEtcToDataFlavor(
+ aFlavor = formatEtcToDataFlavor(
m_DataFormatTranslator.getFormatEtcForClipformat( CF_UNICODETEXT ) );
addSupportedFlavor( aFlavor );
}
@@ -233,12 +233,12 @@ void SAL_CALL CDOTransferable::initFlavorList( )
// see MSDN IEnumFORMATETC
CoTaskMemFree( fetc.ptd );
- }
- }
+ }
+ }
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
inline
@@ -255,20 +255,20 @@ void SAL_CALL CDOTransferable::addSupportedFlavor( const DataFlavor& aFlavor )
}
//------------------------------------------------------------------------
-// helper function
+// helper function
//------------------------------------------------------------------------
//inline
DataFlavor SAL_CALL CDOTransferable::formatEtcToDataFlavor( const FORMATETC& aFormatEtc )
-{
+{
DataFlavor aFlavor;
LCID lcid = 0;
-
+
// for non-unicode text format we must provid a locale to get
// the character-set of the text, if there is no locale on the
// clipboard we assume the text is in a charset appropriate for
// the current thread locale
- if ( (CF_TEXT == aFormatEtc.cfFormat) || (CF_OEMTEXT == aFormatEtc.cfFormat) )
+ if ( (CF_TEXT == aFormatEtc.cfFormat) || (CF_OEMTEXT == aFormatEtc.cfFormat) )
lcid = getLocaleFromClipboard( );
return m_DataFormatTranslator.getDataFlavorFromFormatEtc( aFormatEtc, lcid );
@@ -279,22 +279,22 @@ DataFlavor SAL_CALL CDOTransferable::formatEtcToDataFlavor( const FORMATETC& aFo
// clipboard the function returns the current thread locale
//------------------------------------------------------------------------
-LCID SAL_CALL CDOTransferable::getLocaleFromClipboard( )
+LCID SAL_CALL CDOTransferable::getLocaleFromClipboard( )
{
LCID lcid = GetThreadLocale( );
try
- {
+ {
CFormatEtc fetc = m_DataFormatTranslator.getFormatEtcForClipformat( CF_LOCALE );
ByteSequence_t aLCIDSeq = getClipboardData( fetc );
lcid = *(reinterpret_cast<LCID*>( aLCIDSeq.getArray( ) ) );
-
- // because of a Win95/98 Bug; there the high word
+
+ // because of a Win95/98 Bug; there the high word
// of a locale has the same value as the
// low word e.g. 0x07040704 that's not right
// correct is 0x00000704
- lcid &= 0x0000FFFF;
- }
+ lcid &= 0x0000FFFF;
+ }
catch(...)
{
// we take the default locale
@@ -310,27 +310,27 @@ LCID SAL_CALL CDOTransferable::getLocaleFromClipboard( )
//------------------------------------------------------------------------
CDOTransferable::ByteSequence_t SAL_CALL CDOTransferable::getClipboardData( CFormatEtc& aFormatEtc )
-{
+{
STGMEDIUM stgmedium;
HRESULT hr = m_rDataObject->GetData( aFormatEtc, &stgmedium );
-
+
// in case of failure to get a WMF metafile handle, try to get a memory block
- if( FAILED( hr ) &&
- ( CF_METAFILEPICT == aFormatEtc.getClipformat() ) &&
+ if( FAILED( hr ) &&
+ ( CF_METAFILEPICT == aFormatEtc.getClipformat() ) &&
( TYMED_MFPICT == aFormatEtc.getTymed() ) )
{
CFormatEtc aTempFormat( aFormatEtc );
aTempFormat.setTymed( TYMED_HGLOBAL );
hr = m_rDataObject->GetData( aTempFormat, &stgmedium );
}
-
- if ( FAILED( hr ) )
+
+ if ( FAILED( hr ) )
{
- OSL_ASSERT( (hr != E_INVALIDARG) &&
+ OSL_ASSERT( (hr != E_INVALIDARG) &&
(hr != DV_E_DVASPECT) &&
(hr != DV_E_LINDEX) &&
(hr != DV_E_TYMED) );
-
+
if ( DV_E_FORMATETC == hr )
throw UnsupportedFlavorException( );
else if ( STG_E_MEDIUMFULL == hr )
@@ -338,61 +338,61 @@ CDOTransferable::ByteSequence_t SAL_CALL CDOTransferable::getClipboardData( CFor
else
throw RuntimeException( );
}
-
+
ByteSequence_t byteStream;
try
- {
+ {
if ( CF_ENHMETAFILE == aFormatEtc.getClipformat() )
- byteStream = WinENHMFPictToOOMFPict( stgmedium.hEnhMetaFile );
+ byteStream = WinENHMFPictToOOMFPict( stgmedium.hEnhMetaFile );
else if (CF_HDROP == aFormatEtc.getClipformat())
- byteStream = CF_HDROPToFileList(stgmedium.hGlobal);
+ byteStream = CF_HDROPToFileList(stgmedium.hGlobal);
else
{
clipDataToByteStream( aFormatEtc.getClipformat( ), stgmedium, byteStream );
-
+
// format conversion if necessary
if ( CF_DIB == aFormatEtc.getClipformat() )
byteStream = WinDIBToOOBMP( byteStream );
else if ( CF_METAFILEPICT == aFormatEtc.getClipformat() )
- byteStream = WinMFPictToOOMFPict( byteStream );
+ byteStream = WinMFPictToOOMFPict( byteStream );
}
ReleaseStgMedium( &stgmedium );
}
catch( CStgTransferHelper::CStgTransferException& )
- {
+ {
ReleaseStgMedium( &stgmedium );
throw IOException( );
- }
+ }
return byteStream;
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CDOTransferable::synthesizeUnicodeText( )
-{
+{
ByteSequence_t aTextSequence;
- CFormatEtc fetc;
- LCID lcid = getLocaleFromClipboard( );
- sal_uInt32 cpForTxtCnvt = 0;
-
+ CFormatEtc fetc;
+ LCID lcid = getLocaleFromClipboard( );
+ sal_uInt32 cpForTxtCnvt = 0;
+
if ( CF_TEXT == m_TxtFormatOnClipboard )
{
fetc = m_DataFormatTranslator.getFormatEtcForClipformat( CF_TEXT );
aTextSequence = getClipboardData( fetc );
-
+
// determine the codepage used for text conversion
- cpForTxtCnvt = getWinCPFromLocaleId( lcid, LOCALE_IDEFAULTANSICODEPAGE ).toInt32( );
+ cpForTxtCnvt = getWinCPFromLocaleId( lcid, LOCALE_IDEFAULTANSICODEPAGE ).toInt32( );
}
else if ( CF_OEMTEXT == m_TxtFormatOnClipboard )
{
fetc = m_DataFormatTranslator.getFormatEtcForClipformat( CF_OEMTEXT );
aTextSequence = getClipboardData( fetc );
-
+
// determine the codepage used for text conversion
cpForTxtCnvt = getWinCPFromLocaleId( lcid, LOCALE_IDEFAULTCODEPAGE ).toInt32( );
}
@@ -407,15 +407,15 @@ OUString SAL_CALL CDOTransferable::synthesizeUnicodeText( )
sal::static_int_cast<sal_uInt32>(-1), // Huh ?
stgTransferHelper,
sal_False);
-
- CRawHGlobalPtr ptrHGlob(stgTransferHelper);
- sal_Unicode* pWChar = reinterpret_cast<sal_Unicode*>(ptrHGlob.GetMemPtr());
-
+
+ CRawHGlobalPtr ptrHGlob(stgTransferHelper);
+ sal_Unicode* pWChar = reinterpret_cast<sal_Unicode*>(ptrHGlob.GetMemPtr());
+
return OUString(pWChar);
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CDOTransferable::clipDataToByteStream( CLIPFORMAT cf, STGMEDIUM stgmedium, ByteSequence_t& aByteSequence )
@@ -446,25 +446,25 @@ void CDOTransferable::clipDataToByteStream( CLIPFORMAT cf, STGMEDIUM stgmedium,
throw UnsupportedFlavorException( );
break;
}
-
+
int nMemSize = memTransferHelper.memSize( cf );
aByteSequence.realloc( nMemSize );
- memTransferHelper.read( aByteSequence.getArray( ), nMemSize );
+ memTransferHelper.read( aByteSequence.getArray( ), nMemSize );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-inline
+inline
Any CDOTransferable::byteStreamToAny( ByteSequence_t& aByteStream, const Type& aRequestedDataType )
-{
+{
Any aAny;
- if ( aRequestedDataType == CPPUTYPE_OUSTRING )
- {
+ if ( aRequestedDataType == CPPUTYPE_OUSTRING )
+ {
OUString str = byteStreamToOUString( aByteStream );
- aAny = makeAny( str );
+ aAny = makeAny( str );
}
else
aAny = makeAny( aByteStream );
@@ -473,17 +473,17 @@ Any CDOTransferable::byteStreamToAny( ByteSequence_t& aByteStream, const Type& a
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-inline
+inline
OUString CDOTransferable::byteStreamToOUString( ByteSequence_t& aByteStream )
{
sal_Int32 nWChars;
sal_Int32 nMemSize = aByteStream.getLength( );
// if there is a trailing L"\0" substract 1 from length
- if ( 0 == aByteStream[ aByteStream.getLength( ) - 2 ] &&
+ if ( 0 == aByteStream[ aByteStream.getLength( ) - 2 ] &&
0 == aByteStream[ aByteStream.getLength( ) - 1 ] )
nWChars = static_cast< sal_Int32 >( nMemSize / sizeof( sal_Unicode ) ) - 1;
else
@@ -493,15 +493,15 @@ OUString CDOTransferable::byteStreamToOUString( ByteSequence_t& aByteStream )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-sal_Bool SAL_CALL CDOTransferable::compareDataFlavors(
+sal_Bool SAL_CALL CDOTransferable::compareDataFlavors(
const DataFlavor& lhs, const DataFlavor& rhs )
{
if ( !m_rXMimeCntFactory.is( ) )
{
- m_rXMimeCntFactory = Reference< XMimeContentTypeFactory >( m_SrvMgr->createInstance(
+ m_rXMimeCntFactory = Reference< XMimeContentTypeFactory >( m_SrvMgr->createInstance(
OUString::createFromAscii( "com.sun.star.datatransfer.MimeContentTypeFactory" ) ), UNO_QUERY );
}
OSL_ASSERT( m_rXMimeCntFactory.is( ) );
@@ -528,20 +528,20 @@ sal_Bool SAL_CALL CDOTransferable::compareDataFlavors(
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-sal_Bool SAL_CALL CDOTransferable::cmpFullMediaType(
+sal_Bool SAL_CALL CDOTransferable::cmpFullMediaType(
const Reference< XMimeContentType >& xLhs, const Reference< XMimeContentType >& xRhs ) const
{
return xLhs->getFullMediaType().equalsIgnoreAsciiCase( xRhs->getFullMediaType( ) );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-sal_Bool SAL_CALL CDOTransferable::cmpAllContentTypeParameter(
+sal_Bool SAL_CALL CDOTransferable::cmpAllContentTypeParameter(
const Reference< XMimeContentType >& xLhs, const Reference< XMimeContentType >& xRhs ) const
{
Sequence< OUString > xLhsFlavors = xLhs->getParameters( );
@@ -556,7 +556,7 @@ sal_Bool SAL_CALL CDOTransferable::cmpAllContentTypeParameter(
OUString pRhs;
for ( sal_Int32 i = 0; i < xLhsFlavors.getLength( ); i++ )
- {
+ {
pLhs = xLhs->getParameterValue( xLhsFlavors[i] );
pRhs = xRhs->getParameterValue( xLhsFlavors[i] );
@@ -594,13 +594,13 @@ sal_Bool SAL_CALL CDOTransferable::cmpAllContentTypeParameter(
{
if (m_rDataObject.is())
{
- IDataObject* pObj= m_rDataObject.get();
+ IDataObject* pObj= m_rDataObject.get();
pObj->AddRef();
retVal.setValue( &pObj, getCppuType((sal_uInt32*)0));
}
}
return retVal;
}
-
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dtrans/source/win32/dtobj/DOTransferable.hxx b/dtrans/source/win32/dtobj/DOTransferable.hxx
index eec3c5bb34cd..bdf31dc4ba44 100644
--- a/dtrans/source/win32/dtobj/DOTransferable.hxx
+++ b/dtrans/source/win32/dtobj/DOTransferable.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,25 +62,25 @@ public:
// XTransferable
//------------------------------------------------------------------------
- virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
+ virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
throw( ::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
throw( ::com::sun::star::uno::RuntimeException );
-
- virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
+
+ virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------------------------------
// XSystemTransferable
//------------------------------------------------------------------------
virtual ::com::sun::star::uno::Any SAL_CALL getData( const com::sun::star::uno::Sequence<sal_Int8>& aProcessId ) throw
(::com::sun::star::uno::RuntimeException);
-
+
private:
// should be created only by CDTransObjFactory
- explicit CDOTransferable(
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ServiceManager,
+ explicit CDOTransferable(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ServiceManager,
IDataObjectPtr rDataObject );
//------------------------------------------------------------------------
@@ -88,38 +88,38 @@ private:
//------------------------------------------------------------------------
void SAL_CALL initFlavorList( );
-
- void SAL_CALL addSupportedFlavor( const com::sun::star::datatransfer::DataFlavor& aFlavor );
+
+ void SAL_CALL addSupportedFlavor( const com::sun::star::datatransfer::DataFlavor& aFlavor );
com::sun::star::datatransfer::DataFlavor SAL_CALL formatEtcToDataFlavor( const FORMATETC& aFormatEtc );
ByteSequence_t SAL_CALL getClipboardData( CFormatEtc& aFormatEtc );
rtl::OUString SAL_CALL synthesizeUnicodeText( );
- void SAL_CALL clipDataToByteStream( CLIPFORMAT cf, STGMEDIUM stgmedium, ByteSequence_t& aByteSequence );
-
+ void SAL_CALL clipDataToByteStream( CLIPFORMAT cf, STGMEDIUM stgmedium, ByteSequence_t& aByteSequence );
+
::com::sun::star::uno::Any SAL_CALL byteStreamToAny( ByteSequence_t& aByteStream, const com::sun::star::uno::Type& aRequestedDataType );
- rtl::OUString SAL_CALL byteStreamToOUString( ByteSequence_t& aByteStream );
-
+ rtl::OUString SAL_CALL byteStreamToOUString( ByteSequence_t& aByteStream );
+
LCID SAL_CALL getLocaleFromClipboard( );
sal_Bool SAL_CALL compareDataFlavors( const com::sun::star::datatransfer::DataFlavor& lhs,
const com::sun::star::datatransfer::DataFlavor& rhs );
- sal_Bool SAL_CALL cmpFullMediaType( const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType >& xLhs,
+ sal_Bool SAL_CALL cmpFullMediaType( const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType >& xLhs,
const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType >& xRhs ) const;
- sal_Bool SAL_CALL cmpAllContentTypeParameter( const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType >& xLhs,
+ sal_Bool SAL_CALL cmpAllContentTypeParameter( const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType >& xLhs,
const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType >& xRhs ) const;
private:
- IDataObjectPtr m_rDataObject;
- com::sun::star::uno::Sequence< com::sun::star::datatransfer::DataFlavor > m_FlavorList;
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
- CDataFormatTranslator m_DataFormatTranslator;
+ IDataObjectPtr m_rDataObject;
+ com::sun::star::uno::Sequence< com::sun::star::datatransfer::DataFlavor > m_FlavorList;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
+ CDataFormatTranslator m_DataFormatTranslator;
com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentTypeFactory > m_rXMimeCntFactory;
- ::osl::Mutex m_aMutex;
- sal_Bool m_bUnicodeRegistered;
- CLIPFORMAT m_TxtFormatOnClipboard;
+ ::osl::Mutex m_aMutex;
+ sal_Bool m_bUnicodeRegistered;
+ CLIPFORMAT m_TxtFormatOnClipboard;
// non supported operations
private:
diff --git a/dtrans/source/win32/dtobj/DTransHelper.cxx b/dtrans/source/win32/dtobj/DTransHelper.cxx
index 34db85ffeed9..2b512092f0f1 100644
--- a/dtrans/source/win32/dtobj/DTransHelper.cxx
+++ b/dtrans/source/win32/dtobj/DTransHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/dtrans/source/win32/dtobj/DTransHelper.hxx b/dtrans/source/win32/dtobj/DTransHelper.hxx
index 0e6003211f90..0c8ee5b92182 100644
--- a/dtrans/source/win32/dtobj/DTransHelper.hxx
+++ b/dtrans/source/win32/dtobj/DTransHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,9 +75,9 @@ public:
};
public:
- CStgTransferHelper(
- sal_Bool bAutoInit = sal_False,
- HGLOBAL hGlob = NULL,
+ CStgTransferHelper(
+ sal_Bool bAutoInit = sal_False,
+ HGLOBAL hGlob = NULL,
sal_Bool bDelStgOnRelease = sal_False );
~CStgTransferHelper( );
@@ -88,25 +88,25 @@ public:
HGLOBAL SAL_CALL getHGlobal( ) const;
void SAL_CALL getIStream( LPSTREAM* ppStream );
- void SAL_CALL init(
- SIZE_T newSize,
- sal_uInt32 uiFlags = GHND,
+ void SAL_CALL init(
+ SIZE_T newSize,
+ sal_uInt32 uiFlags = GHND,
sal_Bool bDelStgOnRelease = sal_False );
- void SAL_CALL init(
- HGLOBAL hGlob,
+ void SAL_CALL init(
+ HGLOBAL hGlob,
sal_Bool bDelStgOnRelease = sal_False );
// returns the size of the managed memory
sal_uInt32 SAL_CALL memSize( CLIPFORMAT cf = CF_INVALID ) const;
-
- // free the global memory and necessary
+
+ // free the global memory and necessary
// release the internal stream pointer
void SAL_CALL cleanup( );
private:
LPSTREAM m_lpStream;
- sal_Bool m_bDelStgOnRelease;
+ sal_Bool m_bDelStgOnRelease;
private:
CStgTransferHelper( const CStgTransferHelper& );
@@ -115,7 +115,7 @@ private:
//-------------------------------------------------------------------------
// something like an auto-pointer - allows access to the memory belonging
-// to a HGLOBAL and automatically unlocks a global memory at destruction
+// to a HGLOBAL and automatically unlocks a global memory at destruction
// time
//-------------------------------------------------------------------------
@@ -133,7 +133,7 @@ public:
m_pGlobMem( NULL )
{
}
-
+
//---------------------------------------------
// ctor
@@ -157,7 +157,7 @@ public:
}
//---------------------------------------------
- // lock the global memory (initializes a
+ // lock the global memory (initializes a
// pointer to this memory)
//---------------------------------------------
@@ -182,17 +182,17 @@ public:
GlobalUnlock( m_hGlob );
m_bIsLocked = FALSE;
m_pGlobMem = NULL;
-
+
return ( NO_ERROR == GetLastError( ) );
}
//---------------------------------------------
- // locks the global memory and returns a
+ // locks the global memory and returns a
// pointer to this memory
//---------------------------------------------
LPVOID GetMemPtr( )
- {
+ {
Lock( );
return m_pGlobMem;
}
diff --git a/dtrans/source/win32/dtobj/DataFmtTransl.cxx b/dtrans/source/win32/dtobj/DataFmtTransl.cxx
index c832a7a24996..fe5845f2558e 100644
--- a/dtrans/source/win32/dtobj/DataFmtTransl.cxx
+++ b/dtrans/source/win32/dtobj/DataFmtTransl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@
#if defined _MSC_VER
#pragma warning(pop)
#endif
-
+
//------------------------------------------------------------------------
// namespace directives
@@ -84,22 +84,22 @@ const OUString HTML_FORMAT_NAME_WINDOWS = OUString::createFromAscii( "HTML Forma
const OUString HTML_FORMAT_NAME_SOFFICE = OUString::createFromAscii( "HTML (HyperText Markup Language)" );
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CDataFormatTranslator::CDataFormatTranslator( const Reference< XMultiServiceFactory >& aServiceManager ) :
m_SrvMgr( aServiceManager )
{
m_XDataFormatTranslator = Reference< XDataFormatTranslator >(
- m_SrvMgr->createInstance( OUString::createFromAscii( "com.sun.star.datatransfer.DataFormatTranslator" ) ), UNO_QUERY );
+ m_SrvMgr->createInstance( OUString::createFromAscii( "com.sun.star.datatransfer.DataFormatTranslator" ) ), UNO_QUERY );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc CDataFormatTranslator::getFormatEtcFromDataFlavor( const DataFlavor& aDataFlavor ) const
-{
+{
sal_Int32 cf = CF_INVALID;
try
@@ -107,21 +107,21 @@ CFormatEtc CDataFormatTranslator::getFormatEtcFromDataFlavor( const DataFlavor&
if( m_XDataFormatTranslator.is( ) )
{
Any aFormat = m_XDataFormatTranslator->getSystemDataTypeFromDataFlavor( aDataFlavor );
-
+
if ( aFormat.hasValue( ) )
{
if ( aFormat.getValueType( ) == CPPUTYPE_SALINT32 )
{
- aFormat >>= cf;
+ aFormat >>= cf;
OSL_ENSURE( CF_INVALID != cf, "Invalid Clipboard format delivered" );
}
else if ( aFormat.getValueType( ) == CPPUTYPE_OUSTRING )
{
OUString aClipFmtName;
aFormat >>= aClipFmtName;
-
+
OSL_ASSERT( aClipFmtName.getLength( ) );
- cf = RegisterClipboardFormatW( reinterpret_cast<LPCWSTR>(aClipFmtName.getStr( )) );
+ cf = RegisterClipboardFormatW( reinterpret_cast<LPCWSTR>(aClipFmtName.getStr( )) );
OSL_ENSURE( CF_INVALID != cf, "RegisterClipboardFormat failed" );
}
@@ -139,13 +139,13 @@ CFormatEtc CDataFormatTranslator::getFormatEtcFromDataFlavor( const DataFlavor&
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
DataFlavor CDataFormatTranslator::getDataFlavorFromFormatEtc( const FORMATETC& aFormatEtc, LCID lcid ) const
{
DataFlavor aFlavor;
-
+
try
{
CLIPFORMAT aClipformat = aFormatEtc.cfFormat;
@@ -154,12 +154,12 @@ DataFlavor CDataFormatTranslator::getDataFlavorFromFormatEtc( const FORMATETC& a
aAny <<= static_cast< sal_Int32 >( aClipformat );
if ( isOemOrAnsiTextFormat( aClipformat ) )
- {
+ {
aFlavor.MimeType = TEXT_PLAIN_CHARSET;
aFlavor.MimeType += getTextCharsetFromLCID( lcid, aClipformat );
aFlavor.HumanPresentableName = HPNAME_OEM_ANSI_TEXT;
- aFlavor.DataType = CPPUTYPE_SEQSALINT8;
+ aFlavor.DataType = CPPUTYPE_SEQSALINT8;
}
else if ( CF_INVALID != aClipformat )
{
@@ -173,7 +173,7 @@ DataFlavor CDataFormatTranslator::getDataFlavorFromFormatEtc( const FORMATETC& a
// failed, so we try to resolve via clipboard
// format name
OUString clipFormatName = getClipboardFormatName( aClipformat );
-
+
// if we could not get a clipboard format name an
// error must have occured or it is a standard
// clipboard format that we don't translate, e.g.
@@ -196,7 +196,7 @@ DataFlavor CDataFormatTranslator::getDataFlavorFromFormatEtc( const FORMATETC& a
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc SAL_CALL CDataFormatTranslator::getFormatEtcForClipformatName( const OUString& aClipFmtName ) const
@@ -210,7 +210,7 @@ CFormatEtc SAL_CALL CDataFormatTranslator::getFormatEtcForClipformatName( const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString CDataFormatTranslator::getClipboardFormatName( CLIPFORMAT aClipformat ) const
@@ -224,7 +224,7 @@ OUString CDataFormatTranslator::getClipboardFormatName( CLIPFORMAT aClipformat )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc SAL_CALL CDataFormatTranslator::getFormatEtcForClipformat( CLIPFORMAT cf ) const
@@ -247,10 +247,10 @@ CFormatEtc SAL_CALL CDataFormatTranslator::getFormatEtcForClipformat( CLIPFORMAT
/*
hack: in order to paste urls copied by Internet Explorer
- with "copy link" we set the lindex member to 0
+ with "copy link" we set the lindex member to 0
but if we really want to support CFSTR_FILECONTENT and
the accompany format CFSTR_FILEDESCRIPTOR (FileGroupDescriptor)
- the client of the clipboard service has to provide a id
+ the client of the clipboard service has to provide a id
of which FileContents it wants to paste
see MSDN: "Handling Shell Data Transfer Scenarios"
*/
@@ -261,7 +261,7 @@ CFormatEtc SAL_CALL CDataFormatTranslator::getFormatEtcForClipformat( CLIPFORMAT
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CDataFormatTranslator::isOemOrAnsiTextFormat( CLIPFORMAT cf ) const
@@ -270,7 +270,7 @@ sal_Bool SAL_CALL CDataFormatTranslator::isOemOrAnsiTextFormat( CLIPFORMAT cf )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CDataFormatTranslator::isUnicodeTextFormat( CLIPFORMAT cf ) const
@@ -279,16 +279,16 @@ sal_Bool SAL_CALL CDataFormatTranslator::isUnicodeTextFormat( CLIPFORMAT cf ) co
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-sal_Bool SAL_CALL CDataFormatTranslator::isTextFormat( CLIPFORMAT cf ) const
+sal_Bool SAL_CALL CDataFormatTranslator::isTextFormat( CLIPFORMAT cf ) const
{
return ( isOemOrAnsiTextFormat( cf ) || isUnicodeTextFormat( cf ) );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CDataFormatTranslator::isHTMLFormat( CLIPFORMAT cf ) const
@@ -298,17 +298,17 @@ sal_Bool SAL_CALL CDataFormatTranslator::isHTMLFormat( CLIPFORMAT cf ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CDataFormatTranslator::isTextHtmlFormat( CLIPFORMAT cf ) const
{
- OUString clipFormatName = getClipboardFormatName( cf );
+ OUString clipFormatName = getClipboardFormatName( cf );
return ( clipFormatName.equalsIgnoreAsciiCase( HTML_FORMAT_NAME_SOFFICE ) );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CDataFormatTranslator::getTextCharsetFromLCID( LCID lcid, CLIPFORMAT aClipformat ) const
@@ -317,22 +317,22 @@ OUString SAL_CALL CDataFormatTranslator::getTextCharsetFromLCID( LCID lcid, CLIP
OUString charset;
if ( CF_TEXT == aClipformat )
- {
- charset = getMimeCharsetFromLocaleId(
- lcid,
- LOCALE_IDEFAULTANSICODEPAGE,
+ {
+ charset = getMimeCharsetFromLocaleId(
+ lcid,
+ LOCALE_IDEFAULTANSICODEPAGE,
PRE_WINDOWS_CODEPAGE );
}
else if ( CF_OEMTEXT == aClipformat )
- {
- charset = getMimeCharsetFromLocaleId(
- lcid,
- LOCALE_IDEFAULTCODEPAGE,
- PRE_OEM_CODEPAGE );
+ {
+ charset = getMimeCharsetFromLocaleId(
+ lcid,
+ LOCALE_IDEFAULTCODEPAGE,
+ PRE_OEM_CODEPAGE );
}
else // CF_UNICODE
OSL_ASSERT( sal_False );
-
+
return charset;
}
diff --git a/dtrans/source/win32/dtobj/DataFmtTransl.hxx b/dtrans/source/win32/dtobj/DataFmtTransl.hxx
index 58cf51a89f63..0ed9426bd69b 100644
--- a/dtrans/source/win32/dtobj/DataFmtTransl.hxx
+++ b/dtrans/source/win32/dtobj/DataFmtTransl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,15 +57,15 @@ class CFormatEtc;
class CDataFormatTranslator
{
public:
- CDataFormatTranslator( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aServiceManager );
+ CDataFormatTranslator( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aServiceManager );
CFormatEtc getFormatEtcFromDataFlavor( const com::sun::star::datatransfer::DataFlavor& aDataFlavor ) const;
- com::sun::star::datatransfer::DataFlavor getDataFlavorFromFormatEtc(
+ com::sun::star::datatransfer::DataFlavor getDataFlavorFromFormatEtc(
const FORMATETC& aFormatEtc, LCID lcid = GetThreadLocale( ) ) const;
CFormatEtc SAL_CALL getFormatEtcForClipformat( CLIPFORMAT cf ) const;
CFormatEtc SAL_CALL getFormatEtcForClipformatName( const rtl::OUString& aClipFmtName ) const;
- rtl::OUString SAL_CALL getClipboardFormatName( CLIPFORMAT aClipformat ) const;
+ rtl::OUString SAL_CALL getClipboardFormatName( CLIPFORMAT aClipformat ) const;
sal_Bool SAL_CALL isHTMLFormat( CLIPFORMAT cf ) const;
sal_Bool SAL_CALL isTextHtmlFormat( CLIPFORMAT cf ) const;
@@ -73,12 +73,12 @@ public:
sal_Bool SAL_CALL isUnicodeTextFormat( CLIPFORMAT cf ) const;
sal_Bool SAL_CALL isTextFormat( CLIPFORMAT cf ) const;
-private:
+private:
rtl::OUString SAL_CALL getTextCharsetFromLCID( LCID lcid, CLIPFORMAT aClipformat ) const;
private:
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
- com::sun::star::uno::Reference< com::sun::star::datatransfer::XDataFormatTranslator > m_XDataFormatTranslator;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
+ com::sun::star::uno::Reference< com::sun::star::datatransfer::XDataFormatTranslator > m_XDataFormatTranslator;
};
#endif
diff --git a/dtrans/source/win32/dtobj/DtObjFactory.cxx b/dtrans/source/win32/dtobj/DtObjFactory.cxx
index 0f69b389e8ce..581ef2b723c1 100644
--- a/dtrans/source/win32/dtobj/DtObjFactory.cxx
+++ b/dtrans/source/win32/dtobj/DtObjFactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ Reference< XTransferable > SAL_CALL CDTransObjFactory::createTransferableFromDat
pTransf->initFlavorList();
pTransf->release();
- return refDOTransf;
+ return refDOTransf;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dtrans/source/win32/dtobj/Fetc.cxx b/dtrans/source/win32/dtobj/Fetc.cxx
index f9bbe856436e..9443599ff479 100644
--- a/dtrans/source/win32/dtobj/Fetc.cxx
+++ b/dtrans/source/win32/dtobj/Fetc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
#include "..\misc\ImplHelper.hxx"
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc::CFormatEtc( )
@@ -59,7 +59,7 @@ CFormatEtc::CFormatEtc( const FORMATETC& aFormatEtc )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc::~CFormatEtc( )
@@ -68,7 +68,7 @@ CFormatEtc::~CFormatEtc( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc::CFormatEtc( CLIPFORMAT cf, DWORD tymed, DVTARGETDEVICE* ptd, DWORD dwAspect, LONG lindex )
@@ -77,11 +77,11 @@ CFormatEtc::CFormatEtc( CLIPFORMAT cf, DWORD tymed, DVTARGETDEVICE* ptd, DWORD d
m_FormatEtc.ptd = CopyTargetDevice( ptd );
m_FormatEtc.dwAspect = dwAspect;
m_FormatEtc.lindex = lindex;
- m_FormatEtc.tymed = tymed;
+ m_FormatEtc.tymed = tymed;
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc::CFormatEtc( const CFormatEtc& theOther )
@@ -94,7 +94,7 @@ CFormatEtc::CFormatEtc( const CFormatEtc& theOther )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc& CFormatEtc::operator=( const CFormatEtc& theOther )
@@ -114,7 +114,7 @@ CFormatEtc& CFormatEtc::operator=( const CFormatEtc& theOther )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc::operator FORMATETC*( )
@@ -123,7 +123,7 @@ CFormatEtc::operator FORMATETC*( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtc::operator FORMATETC( )
@@ -132,7 +132,7 @@ CFormatEtc::operator FORMATETC( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CFormatEtc::getFORMATETC( LPFORMATETC lpFormatEtc )
@@ -144,7 +144,7 @@ void CFormatEtc::getFORMATETC( LPFORMATETC lpFormatEtc )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CLIPFORMAT CFormatEtc::getClipformat( ) const
@@ -153,7 +153,7 @@ CLIPFORMAT CFormatEtc::getClipformat( ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
DWORD CFormatEtc::getTymed( ) const
@@ -162,7 +162,7 @@ DWORD CFormatEtc::getTymed( ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CFormatEtc::getTargetDevice( DVTARGETDEVICE** lpDvTargetDevice ) const
@@ -177,7 +177,7 @@ void CFormatEtc::getTargetDevice( DVTARGETDEVICE** lpDvTargetDevice ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
DWORD CFormatEtc::getDvAspect( ) const
@@ -186,7 +186,7 @@ DWORD CFormatEtc::getDvAspect( ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
LONG CFormatEtc::getLindex( ) const
@@ -195,7 +195,7 @@ LONG CFormatEtc::getLindex( ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CFormatEtc::setClipformat( CLIPFORMAT cf )
@@ -204,7 +204,7 @@ void CFormatEtc::setClipformat( CLIPFORMAT cf )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CFormatEtc::setTymed( DWORD tymed )
@@ -223,7 +223,7 @@ void CFormatEtc::setTargetDevice( DVTARGETDEVICE* ptd )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CFormatEtc::setDvAspect( DWORD dwAspect )
@@ -232,7 +232,7 @@ void CFormatEtc::setDvAspect( DWORD dwAspect )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CFormatEtc::setLindex( LONG lindex )
@@ -241,7 +241,7 @@ void CFormatEtc::setLindex( LONG lindex )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Int32 operator==( const CFormatEtc& lhs, const CFormatEtc& rhs )
@@ -250,7 +250,7 @@ sal_Int32 operator==( const CFormatEtc& lhs, const CFormatEtc& rhs )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Int32 operator!=( const CFormatEtc& lhs, const CFormatEtc& rhs )
diff --git a/dtrans/source/win32/dtobj/Fetc.hxx b/dtrans/source/win32/dtobj/Fetc.hxx
index 8dfba3672ac9..9c6be8e2b799 100644
--- a/dtrans/source/win32/dtobj/Fetc.hxx
+++ b/dtrans/source/win32/dtobj/Fetc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
stl container elements must fulfill the following requirements:
1. they need a copy ctor and assignement operator(?)
2. they must be compareable
- because the FORMATETC structure has a pointer to a TARGETDEVICE
+ because the FORMATETC structure has a pointer to a TARGETDEVICE
structure we need a simple wrapper class to fulfill these needs
***********************************************************************/
diff --git a/dtrans/source/win32/dtobj/FetcList.cxx b/dtrans/source/win32/dtobj/FetcList.cxx
index 2364a0a14341..00cd28c2a279 100644
--- a/dtrans/source/win32/dtobj/FetcList.cxx
+++ b/dtrans/source/win32/dtobj/FetcList.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,14 +58,14 @@ using namespace rtl;
using namespace std;
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
LCID CFormatRegistrar::m_TxtLocale = 0;
sal_uInt32 CFormatRegistrar::m_TxtCodePage = GetACP( );
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatEtcContainer::CFormatEtcContainer( )
@@ -74,29 +74,29 @@ CFormatEtcContainer::CFormatEtcContainer( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CFormatEtcContainer::addFormatEtc( const CFormatEtc& fetc )
{
- m_FormatMap.push_back( CFormatEtc( fetc ) );
+ m_FormatMap.push_back( CFormatEtc( fetc ) );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CFormatEtcContainer::removeFormatEtc( const CFormatEtc& fetc )
{
- FormatEtcMap_t::iterator iter =
+ FormatEtcMap_t::iterator iter =
find( m_FormatMap.begin(), m_FormatMap.end(), fetc );
-
+
if ( iter != m_FormatMap.end( ) )
m_FormatMap.erase( iter );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void SAL_CALL CFormatEtcContainer::removeAllFormatEtc( )
@@ -105,40 +105,40 @@ void SAL_CALL CFormatEtcContainer::removeAllFormatEtc( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool CFormatEtcContainer::hasFormatEtc( const CFormatEtc& fetc ) const
-{
- FormatEtcMap_t::const_iterator iter =
+{
+ FormatEtcMap_t::const_iterator iter =
find( m_FormatMap.begin(), m_FormatMap.end(), fetc );
-
+
return ( iter != m_FormatMap.end( ) );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-
+
sal_Bool CFormatEtcContainer::hasElements( ) const
{
return ( m_FormatMap.size( ) > 0 );
}
-
+
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
void CFormatEtcContainer::beginEnumFormatEtc( )
{
m_EnumIterator = m_FormatMap.begin( );
}
-
+
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-sal_uInt32 SAL_CALL CFormatEtcContainer::nextFormatEtc( LPFORMATETC lpFetc,
+sal_uInt32 SAL_CALL CFormatEtcContainer::nextFormatEtc( LPFORMATETC lpFetc,
sal_uInt32 aNum )
{
OSL_ASSERT( lpFetc );
@@ -157,15 +157,15 @@ sal_uInt32 SAL_CALL CFormatEtcContainer::nextFormatEtc( LPFORMATETC lpFetc,
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CFormatEtcContainer::skipFormatEtc( sal_uInt32 aNum )
{
FormatEtcMap_t::const_iterator iter_end = m_FormatMap.end( );
- for ( sal_uInt32 i = 0;
- (i < aNum) && (m_EnumIterator != iter_end);
- i++, ++m_EnumIterator )
+ for ( sal_uInt32 i = 0;
+ (i < aNum) && (m_EnumIterator != iter_end);
+ i++, ++m_EnumIterator )
;/* intentionally left empty */
return ( m_EnumIterator != m_FormatMap.end( ) );
@@ -176,15 +176,15 @@ sal_Bool SAL_CALL CFormatEtcContainer::skipFormatEtc( sal_uInt32 aNum )
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
CFormatRegistrar::CFormatRegistrar( const Reference< XMultiServiceFactory >& ServiceManager,
- const CDataFormatTranslator& aDataFormatTranslator ) :
+ const CDataFormatTranslator& aDataFormatTranslator ) :
m_DataFormatTranslator( aDataFormatTranslator ),
m_bHasSynthesizedLocale( sal_False ),
m_SrvMgr( ServiceManager )
-{
+{
}
// ----------------------------------------------------------------------------------------
@@ -192,26 +192,26 @@ CFormatRegistrar::CFormatRegistrar( const Reference< XMultiServiceFactory >& Ser
// an appropriate FORMATETC structure, for some formats like unicodetext,
// text and text/html we will offer an accompany format e.g.:
//
-// DataFlavor | Registered Clipformat | Registered accompany clipformat
+// DataFlavor | Registered Clipformat | Registered accompany clipformat
// -------------------------|---------------------------|-----------------------------------
-// text/plain;charset=ansi | CF_TEXT | CF_UNICODETEXT
-// | | CF_LOCALE (if charset != GetACP()
-// | |
-// text/plain;charset=oem | CF_OEMTEXT | CF_UNICODETEXT
-// | | CF_LOCALE (if charset != GetOEMCP()
-// | |
-// text/plain;charset=utf-16| CF_UNICODETEXT | CF_TEXT
-// | |
-// text/html | HTML (Hypertext ...) | HTML Format
-// | |
+// text/plain;charset=ansi | CF_TEXT | CF_UNICODETEXT
+// | | CF_LOCALE (if charset != GetACP()
+// | |
+// text/plain;charset=oem | CF_OEMTEXT | CF_UNICODETEXT
+// | | CF_LOCALE (if charset != GetOEMCP()
+// | |
+// text/plain;charset=utf-16| CF_UNICODETEXT | CF_TEXT
+// | |
+// text/html | HTML (Hypertext ...) | HTML Format
+// | |
//
-// if some tries to register different text formats with different charsets the last
+// if some tries to register different text formats with different charsets the last
// registered wins and the others are ignored
// ----------------------------------------------------------------------------------------
-void SAL_CALL CFormatRegistrar::RegisterFormats(
+void SAL_CALL CFormatRegistrar::RegisterFormats(
const Reference< XTransferable >& aXTransferable, CFormatEtcContainer& aFormatEtcContainer )
-{
+{
Sequence< DataFlavor > aFlavorList = aXTransferable->getTransferDataFlavors( );
sal_Int32 nFlavors = aFlavorList.getLength( );
sal_Bool bUnicodeRegistered = sal_False;
@@ -221,7 +221,7 @@ void SAL_CALL CFormatRegistrar::RegisterFormats(
{
aFlavor = aFlavorList[i];
CFormatEtc fetc = m_DataFormatTranslator.getFormatEtcFromDataFlavor( aFlavor );
-
+
// maybe an internal format so we ignore it
if ( CF_INVALID == fetc.getClipformat( ) )
continue;
@@ -239,52 +239,52 @@ void SAL_CALL CFormatRegistrar::RegisterFormats(
// we register CF_TEXT for non unicode clients
if ( m_DataFormatTranslator.isUnicodeTextFormat( fetc.getClipformat() ) )
{
- aFormatEtcContainer.addFormatEtc( fetc ); // add CF_UNICODE
- aFormatEtcContainer.addFormatEtc(
+ aFormatEtcContainer.addFormatEtc( fetc ); // add CF_UNICODE
+ aFormatEtcContainer.addFormatEtc(
m_DataFormatTranslator.getFormatEtcForClipformat( CF_TEXT ) ); // add CF_TEXT
bUnicodeRegistered = sal_True;
}
- else if ( !hasUnicodeFlavor( aXTransferable ) )
+ else if ( !hasUnicodeFlavor( aXTransferable ) )
{
// we try to investigate the charset and make a valid
// windows codepage from this charset the default
// return value is the result of GetACP( )
OUString charset = getCharsetFromDataFlavor( aFlavor );
- sal_uInt32 txtCP = getWinCPFromMimeCharset( charset );
-
+ sal_uInt32 txtCP = getWinCPFromMimeCharset( charset );
+
// we try to get a Locale appropriate for this codepage
if ( findLocaleForTextCodePage( ) )
{
m_TxtCodePage = txtCP;
- aFormatEtcContainer.addFormatEtc(
+ aFormatEtcContainer.addFormatEtc(
m_DataFormatTranslator.getFormatEtcForClipformat( CF_UNICODETEXT ) );
-
+
if ( !IsOEMCP( m_TxtCodePage ) )
- aFormatEtcContainer.addFormatEtc(
+ aFormatEtcContainer.addFormatEtc(
m_DataFormatTranslator.getFormatEtcForClipformat( CF_TEXT ) );
else
- aFormatEtcContainer.addFormatEtc(
+ aFormatEtcContainer.addFormatEtc(
m_DataFormatTranslator.getFormatEtcForClipformat( CF_OEMTEXT ) );
- aFormatEtcContainer.addFormatEtc(
+ aFormatEtcContainer.addFormatEtc(
m_DataFormatTranslator.getFormatEtcForClipformat( CF_LOCALE ) );
-
- // we save the flavor so it's easier when
+
+ // we save the flavor so it's easier when
// queried for it in XTDataObject::GetData(...)
m_RegisteredTextFlavor = aFlavor;
m_bHasSynthesizedLocale = sal_True;
- }
+ }
}
}
else if ( m_DataFormatTranslator.isTextHtmlFormat( fetc.getClipformat( ) ) ) // Html (Hyper Text...)
{
// we add text/html ( HTML (HyperText Markup Language) )
aFormatEtcContainer.addFormatEtc( fetc );
-
+
// and HTML Format
OUString htmlFormat( OUString::createFromAscii( "HTML Format" ) );
- aFormatEtcContainer.addFormatEtc(
+ aFormatEtcContainer.addFormatEtc(
m_DataFormatTranslator.getFormatEtcForClipformatName( htmlFormat ) );
}
}
@@ -292,7 +292,7 @@ void SAL_CALL CFormatRegistrar::RegisterFormats(
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CFormatRegistrar::hasSynthesizedLocale( ) const
@@ -301,7 +301,7 @@ sal_Bool SAL_CALL CFormatRegistrar::hasSynthesizedLocale( ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
LCID SAL_CALL CFormatRegistrar::getSynthesizedLocale( ) const
@@ -310,7 +310,7 @@ LCID SAL_CALL CFormatRegistrar::getSynthesizedLocale( ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_uInt32 SAL_CALL CFormatRegistrar::getRegisteredTextCodePage( ) const
@@ -319,7 +319,7 @@ sal_uInt32 SAL_CALL CFormatRegistrar::getRegisteredTextCodePage( ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
DataFlavor SAL_CALL CFormatRegistrar::getRegisteredTextFlavor( ) const
@@ -328,7 +328,7 @@ DataFlavor SAL_CALL CFormatRegistrar::getRegisteredTextFlavor( ) const
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CFormatRegistrar::isSynthesizeableFormat( const CFormatEtc& aFormatEtc ) const
@@ -339,7 +339,7 @@ sal_Bool SAL_CALL CFormatRegistrar::isSynthesizeableFormat( const CFormatEtc& aF
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
inline
@@ -351,7 +351,7 @@ sal_Bool SAL_CALL CFormatRegistrar::needsToSynthesizeAccompanyFormats( const CFo
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
OUString SAL_CALL CFormatRegistrar::getCharsetFromDataFlavor( const DataFlavor& aFlavor )
@@ -360,22 +360,22 @@ OUString SAL_CALL CFormatRegistrar::getCharsetFromDataFlavor( const DataFlavor&
try
{
- Reference< XMimeContentTypeFactory > xMimeFac(
+ Reference< XMimeContentTypeFactory > xMimeFac(
m_SrvMgr->createInstance( OUString::createFromAscii( \
"com.sun.star.datatransfer.MimeContentTypeFactory" ) ), UNO_QUERY );
-
+
if( xMimeFac.is( ) )
{
Reference< XMimeContentType > xMimeType( xMimeFac->createMimeContentType( aFlavor.MimeType ) );
if ( xMimeType->hasParameter( TEXTPLAIN_PARAM_CHARSET ) )
charset = xMimeType->getParameterValue( TEXTPLAIN_PARAM_CHARSET );
- else
+ else
charset = getMimeCharsetFromWinCP( GetACP( ), PRE_WINDOWS_CODEPAGE );
}
}
catch(NoSuchElementException&)
{
- OSL_ENSURE( sal_False, "Unexpected" );
+ OSL_ENSURE( sal_False, "Unexpected" );
}
catch(...)
{
@@ -386,21 +386,21 @@ OUString SAL_CALL CFormatRegistrar::getCharsetFromDataFlavor( const DataFlavor&
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CFormatRegistrar::hasUnicodeFlavor( const Reference< XTransferable >& aXTransferable ) const
{
CFormatEtc fetc( CF_UNICODETEXT );
- DataFlavor aFlavor =
+ DataFlavor aFlavor =
m_DataFormatTranslator.getDataFlavorFromFormatEtc( fetc );
-
+
return aXTransferable->isDataFlavorSupported( aFlavor );
-}
+}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
inline
@@ -410,7 +410,7 @@ sal_Bool CFormatRegistrar::isEqualCurrentSystemCodePage( sal_uInt32 aCodePage )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CFormatRegistrar::findLocaleForTextCodePage( )
@@ -421,59 +421,59 @@ sal_Bool SAL_CALL CFormatRegistrar::findLocaleForTextCodePage( )
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
sal_Bool SAL_CALL CFormatRegistrar::isLocaleCodePage( LCID lcid, LCTYPE lctype, sal_uInt32 codepage )
-{
- char buff[6];
+{
+ char buff[6];
sal_uInt32 localeCodePage;
-
+
OSL_ASSERT( IsValidLocale( lcid, LCID_INSTALLED ) );
// get the ansi codepage of the current locale
- GetLocaleInfoA( lcid, lctype, buff, sizeof( buff ) );
+ GetLocaleInfoA( lcid, lctype, buff, sizeof( buff ) );
localeCodePage = atol( buff );
return ( localeCodePage == codepage );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
inline
-sal_Bool SAL_CALL CFormatRegistrar::isLocaleOemCodePage( LCID lcid, sal_uInt32 codepage )
+sal_Bool SAL_CALL CFormatRegistrar::isLocaleOemCodePage( LCID lcid, sal_uInt32 codepage )
{
return isLocaleCodePage( lcid, LOCALE_IDEFAULTCODEPAGE, codepage );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
inline
sal_Bool SAL_CALL CFormatRegistrar::isLocaleAnsiCodePage( LCID lcid, sal_uInt32 codepage )
{
- return isLocaleCodePage( lcid, LOCALE_IDEFAULTANSICODEPAGE, codepage );
-}
+ return isLocaleCodePage( lcid, LOCALE_IDEFAULTANSICODEPAGE, codepage );
+}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
BOOL CALLBACK CFormatRegistrar::EnumLocalesProc( LPSTR lpLocaleStr )
{
// the lpLocaleStr parametere is hexadecimal
LCID lcid = strtol( lpLocaleStr, NULL, 16 );
-
- if ( isLocaleAnsiCodePage( lcid, CFormatRegistrar::m_TxtCodePage ) ||
+
+ if ( isLocaleAnsiCodePage( lcid, CFormatRegistrar::m_TxtCodePage ) ||
isLocaleOemCodePage( lcid, CFormatRegistrar::m_TxtCodePage ) )
- {
- CFormatRegistrar::m_TxtLocale = lcid;
+ {
+ CFormatRegistrar::m_TxtLocale = lcid;
return sal_False; // stop enumerating
}
-
+
return sal_True;
}
diff --git a/dtrans/source/win32/dtobj/FetcList.hxx b/dtrans/source/win32/dtobj/FetcList.hxx
index de5e00fa9c3a..51ead901b9de 100644
--- a/dtrans/source/win32/dtobj/FetcList.hxx
+++ b/dtrans/source/win32/dtobj/FetcList.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@
/*****************************************************************
a simple container for FORMATECT structures
- instances of this class are not thread-safe
+ instances of this class are not thread-safe
*****************************************************************/
class CFormatEtcContainer
@@ -60,23 +60,23 @@ public:
// duplicates not allowed
void SAL_CALL addFormatEtc( const CFormatEtc& fetc );
-
- // removes the specified formatetc
+
+ // removes the specified formatetc
void SAL_CALL removeFormatEtc( const CFormatEtc& fetc );
-
+
// removes the formatetc at pos
void SAL_CALL removeAllFormatEtc( );
sal_Bool SAL_CALL hasFormatEtc( const CFormatEtc& fetc ) const;
-
+
sal_Bool SAL_CALL hasElements( ) const;
-
+
// begin enumeration
void SAL_CALL beginEnumFormatEtc( );
-
+
// copies the specified number of formatetc structures starting
// at the current enum position
- // the return value is the number of copied elements; if the
+ // the return value is the number of copied elements; if the
// current enum position is at the end the return value is 0
sal_uInt32 SAL_CALL nextFormatEtc( LPFORMATETC lpFetc, sal_uInt32 aNum = 1 );
@@ -86,7 +86,7 @@ public:
protected:
typedef std::vector< CFormatEtc > FormatEtcMap_t;
-private:
+private:
FormatEtcMap_t m_FormatMap;
FormatEtcMap_t::iterator m_EnumIterator;
};
@@ -95,10 +95,10 @@ private:
a helper class which converts data flavors to clipformats,
creates an appropriate formatetc structures and if possible
synthesizes clipboard formats if necessary, e.g. if text
- is provided a locale will also be provided;
+ is provided a locale will also be provided;
the class registers the formatetc within a CFormatEtcContainer
- instances of this class are not thread-safe and multiple
+ instances of this class are not thread-safe and multiple
instances of this class would use the same static variables
that's why this class should not be used by multiple threads,
only one thread of a process should use it
@@ -111,24 +111,24 @@ class CFormatRegistrar
{
public:
CFormatRegistrar( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ServiceManager,
- const CDataFormatTranslator& aDataFormatTranslator );
-
+ const CDataFormatTranslator& aDataFormatTranslator );
+
void SAL_CALL RegisterFormats( const com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable >& aXTransferable,
CFormatEtcContainer& aFormatEtcContainer );
-
+
sal_Bool SAL_CALL hasSynthesizedLocale( ) const;
LCID SAL_CALL getSynthesizedLocale( ) const;
sal_uInt32 SAL_CALL getRegisteredTextCodePage( ) const;
com::sun::star::datatransfer::DataFlavor SAL_CALL getRegisteredTextFlavor( ) const;
-
+
sal_Bool SAL_CALL isSynthesizeableFormat( const CFormatEtc& aFormatEtc ) const;
sal_Bool SAL_CALL needsToSynthesizeAccompanyFormats( const CFormatEtc& aFormatEtc ) const;
-private:
+private:
sal_Bool SAL_CALL isEqualCurrentSystemCodePage( sal_uInt32 aCodePage ) const;
rtl::OUString SAL_CALL getCharsetFromDataFlavor( const com::sun::star::datatransfer::DataFlavor& aFlavor );
-
- sal_Bool SAL_CALL hasUnicodeFlavor(
+
+ sal_Bool SAL_CALL hasUnicodeFlavor(
const com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable >& aXTransferable ) const;
sal_Bool SAL_CALL findLocaleForTextCodePage( );
@@ -138,17 +138,17 @@ private:
static sal_Bool SAL_CALL isLocaleCodePage( LCID lcid, LCTYPE lctype, sal_uInt32 codepage );
static BOOL CALLBACK EnumLocalesProc( LPSTR lpLocaleStr );
-
-private:
- const CDataFormatTranslator& m_DataFormatTranslator;
- sal_Bool m_bHasSynthesizedLocale;
+
+private:
+ const CDataFormatTranslator& m_DataFormatTranslator;
+ sal_Bool m_bHasSynthesizedLocale;
com::sun::star::datatransfer::DataFlavor m_RegisteredTextFlavor;
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
-
+ const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
+
static LCID m_TxtLocale;
static sal_uInt32 m_TxtCodePage;
-
+
private:
CFormatRegistrar( const CFormatRegistrar& );
CFormatRegistrar& operator=( const CFormatRegistrar& );
diff --git a/dtrans/source/win32/dtobj/FmtFilter.cxx b/dtrans/source/win32/dtobj/FmtFilter.cxx
index 235c63e298f9..0702ef4892d0 100644
--- a/dtrans/source/win32/dtobj/FmtFilter.cxx
+++ b/dtrans/source/win32/dtobj/FmtFilter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,24 +74,24 @@ Sequence< sal_Int8 > SAL_CALL WinMFPictToOOMFPict( Sequence< sal_Int8 >& aMetaFi
{
OSL_ASSERT( aMetaFilePict.getLength( ) == sizeof( METAFILEPICT ) );
- Sequence< sal_Int8 > mfpictStream;
+ Sequence< sal_Int8 > mfpictStream;
METAFILEPICT* pMFPict = reinterpret_cast< METAFILEPICT* >( aMetaFilePict.getArray( ) );
HMETAFILE hMf = pMFPict->hMF;
sal_uInt32 nCount = GetMetaFileBitsEx( hMf, 0, NULL );
-
+
if ( nCount > 0 )
{
mfpictStream.realloc( nCount + sizeof( METAFILEHEADER ) );
METAFILEHEADER* pMFHeader = reinterpret_cast< METAFILEHEADER* >( mfpictStream.getArray( ) );
- SMALL_RECT aRect = { 0,
- 0,
- static_cast< short >( pMFPict->xExt ),
+ SMALL_RECT aRect = { 0,
+ 0,
+ static_cast< short >( pMFPict->xExt ),
static_cast< short >( pMFPict->yExt ) };
USHORT nInch;
switch( pMFPict->mm )
- {
+ {
case MM_TEXT:
nInch = 72;
break;
@@ -107,7 +107,7 @@ Sequence< sal_Int8 > SAL_CALL WinMFPictToOOMFPict( Sequence< sal_Int8 >& aMetaFi
case MM_LOENGLISH:
nInch = 254;
break;
-
+
case MM_HIENGLISH:
case MM_ISOTROPIC:
case MM_ANISOTROPIC:
@@ -134,20 +134,20 @@ Sequence< sal_Int8 > SAL_CALL WinMFPictToOOMFPict( Sequence< sal_Int8 >& aMetaFi
nCount = GetMetaFileBitsEx( pMFPict->hMF, nCount, pMFBuff + sizeof( METAFILEHEADER ) );
OSL_ASSERT( nCount > 0 );
}
-
+
return mfpictStream;
}
//-------------------------------------------------------------
-// convert a windows enhanced metafile to a openoffice metafile
+// convert a windows enhanced metafile to a openoffice metafile
//-------------------------------------------------------------
Sequence< sal_Int8 > SAL_CALL WinENHMFPictToOOMFPict( HENHMETAFILE hEnhMetaFile )
{
- Sequence< sal_Int8 > aRet;
- UINT nSize = 0;
+ Sequence< sal_Int8 > aRet;
+ UINT nSize = 0;
- if( hEnhMetaFile &&
+ if( hEnhMetaFile &&
( ( nSize = GetEnhMetaFileBits( hEnhMetaFile, 0, NULL ) ) != 0 ) )
{
aRet.realloc( nSize );
@@ -165,8 +165,8 @@ Sequence< sal_Int8 > SAL_CALL WinENHMFPictToOOMFPict( HENHMETAFILE hEnhMetaFile
HMETAFILEPICT SAL_CALL OOMFPictToWinMFPict( Sequence< sal_Int8 >& aOOMetaFilePict )
{
- HMETAFILEPICT hPict = NULL;
- HMETAFILE hMtf = SetMetaFileBitsEx( aOOMetaFilePict.getLength(), (sal_uChar*) aOOMetaFilePict.getConstArray() );
+ HMETAFILEPICT hPict = NULL;
+ HMETAFILE hMtf = SetMetaFileBitsEx( aOOMetaFilePict.getLength(), (sal_uChar*) aOOMetaFilePict.getConstArray() );
if( hMtf )
{
@@ -201,14 +201,14 @@ HENHMETAFILE SAL_CALL OOMFPictToWinENHMFPict( Sequence< sal_Int8 >& aOOMetaFileP
Sequence< sal_Int8 > SAL_CALL WinDIBToOOBMP( const Sequence< sal_Int8 >& aWinDIB )
{
OSL_ASSERT( aWinDIB.getLength( ) > sizeof( BITMAPINFOHEADER ) );
-
+
Sequence< sal_Int8 > ooBmpStream;
ooBmpStream.realloc( aWinDIB.getLength( ) + sizeof(BITMAPFILEHEADER) );
-
- const BITMAPINFOHEADER *pBmpInfoHdr = (const BITMAPINFOHEADER*)aWinDIB.getConstArray();
- BITMAPFILEHEADER *pBmpFileHdr = reinterpret_cast< BITMAPFILEHEADER* >( ooBmpStream.getArray() );
- DWORD nOffset = sizeof( BITMAPFILEHEADER ) + sizeof( BITMAPINFOHEADER );
+
+ const BITMAPINFOHEADER *pBmpInfoHdr = (const BITMAPINFOHEADER*)aWinDIB.getConstArray();
+ BITMAPFILEHEADER *pBmpFileHdr = reinterpret_cast< BITMAPFILEHEADER* >( ooBmpStream.getArray() );
+ DWORD nOffset = sizeof( BITMAPFILEHEADER ) + sizeof( BITMAPINFOHEADER );
rtl_copyMemory( pBmpFileHdr + 1, pBmpInfoHdr, aWinDIB.getLength( ) );
@@ -216,12 +216,12 @@ Sequence< sal_Int8 > SAL_CALL WinDIBToOOBMP( const Sequence< sal_Int8 >& aWinDIB
nOffset += ( pBmpInfoHdr->biClrUsed ? pBmpInfoHdr->biClrUsed : ( 1 << pBmpInfoHdr->biBitCount ) ) << 2;
else if( ( BI_BITFIELDS == pBmpInfoHdr->biCompression ) && ( ( 16 == pBmpInfoHdr->biBitCount ) || ( 32 == pBmpInfoHdr->biBitCount ) ) )
nOffset += 12;
-
+
pBmpFileHdr->bfType = 'MB';
pBmpFileHdr->bfSize = 0; // maybe: nMemSize + sizeof(BITMAPFILEHEADER)
pBmpFileHdr->bfReserved1 = 0;
pBmpFileHdr->bfReserved2 = 0;
- pBmpFileHdr->bfOffBits = nOffset;
+ pBmpFileHdr->bfOffBits = nOffset;
return ooBmpStream;
}
@@ -232,12 +232,12 @@ Sequence< sal_Int8 > SAL_CALL WinDIBToOOBMP( const Sequence< sal_Int8 >& aWinDIB
Sequence< sal_Int8 > SAL_CALL OOBmpToWinDIB( Sequence< sal_Int8 >& aOOBmp )
{
- OSL_ASSERT( aOOBmp.getLength( ) >
+ OSL_ASSERT( aOOBmp.getLength( ) >
( sizeof( BITMAPFILEHEADER ) + sizeof( BITMAPINFOHEADER ) ) );
Sequence< sal_Int8 > winDIBStream( aOOBmp.getLength( ) - sizeof( BITMAPFILEHEADER ) );
- rtl_copyMemory( winDIBStream.getArray( ),
+ rtl_copyMemory( winDIBStream.getArray( ),
aOOBmp.getArray( ) + sizeof( BITMAPFILEHEADER ),
aOOBmp.getLength( ) - sizeof( BITMAPFILEHEADER ) );
@@ -249,49 +249,49 @@ Sequence< sal_Int8 > SAL_CALL OOBmpToWinDIB( Sequence< sal_Int8 >& aOOBmp )
// well known under MS Windows
// the MS HTML Format has a header before the real html data
//
-// Version:1.0 Version number of the clipboard. Staring is 0.9
-// StartHTML: Byte count from the beginning of the clipboard to the start
-// of the context, or -1 if no context
-// EndHTML: Byte count from the beginning of the clipboard to the end
-// of the context, or -1 if no context
-// StartFragment: Byte count from the beginning of the clipboard to the
-// start of the fragment
-// EndFragment: Byte count from the beginning of the clipboard to the
-// end of the fragment
-// StartSelection: Byte count from the beginning of the clipboard to the
-// start of the selection
-// EndSelection: Byte count from the beginning of the clipboard to the
-// end of the selection
+// Version:1.0 Version number of the clipboard. Staring is 0.9
+// StartHTML: Byte count from the beginning of the clipboard to the start
+// of the context, or -1 if no context
+// EndHTML: Byte count from the beginning of the clipboard to the end
+// of the context, or -1 if no context
+// StartFragment: Byte count from the beginning of the clipboard to the
+// start of the fragment
+// EndFragment: Byte count from the beginning of the clipboard to the
+// end of the fragment
+// StartSelection: Byte count from the beginning of the clipboard to the
+// start of the selection
+// EndSelection: Byte count from the beginning of the clipboard to the
+// end of the selection
//
// StartSelection and EndSelection are optional
// The fragment should be preceded and followed by the HTML comments
-// <!--StartFragment--> and <!--EndFragment--> (no space between !-- and the
+// <!--StartFragment--> and <!--EndFragment--> (no space between !-- and the
// text
//------------------------------------------------------------------------------
/*
Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextHtml )
{
OSL_ASSERT( aTextHtml.getLength( ) > 0 );
-
+
// check parameter
if ( !(aTextHtml.getLength( ) > 0) )
return Sequence< sal_Int8 >( );
- // we create a buffer with the approximated size of
+ // we create a buffer with the approximated size of
// the HTML Format header
char aHTMLFmtHdr[120];
-
+
rtl_zeroMemory( aHTMLFmtHdr, sizeof( aHTMLFmtHdr ) );
// fill the buffer with dummy values to calc the
// exact length
-
- wsprintf(
- aHTMLFmtHdr,
+
+ wsprintf(
+ aHTMLFmtHdr,
"Version:1.0\nStartHTML:%010d\r\nnEndHTML:%010d\r\nStartFragment:%010\r\nnEndFragment:%010d\r\n", 0, 0, 0, 0 );
sal_uInt32 lHTMLFmtHdr = rtl_str_getLength( aHTMLFmtHdr );
-
+
// the office allways writes the start
// and end html tag in upper cases and
// without spaces
@@ -306,8 +306,8 @@ Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextH
OString startBodyTag( "<BODY" );
OString endBodyTag( "</BODY" );
- OString textHtml(
- reinterpret_cast< const sal_Char* >( aTextHtml.getConstArray( ) ),
+ OString textHtml(
+ reinterpret_cast< const sal_Char* >( aTextHtml.getConstArray( ) ),
aTextHtml.getLength( ) );
sal_Int32 nStartHtml = textHtml.indexOf( startHtmlTag );
@@ -329,27 +329,27 @@ Sequence< sal_Int8 > SAL_CALL TextHtmlToHTMLFormat( Sequence< sal_Int8 >& aTextH
// fill the html header
rtl_zeroMemory( aHTMLFmtHdr, sizeof( aHTMLFmtHdr ) );
- wsprintf(
- aHTMLFmtHdr,
+ wsprintf(
+ aHTMLFmtHdr,
"Version:1.0\nStartHTML:%010d\r\nEndHTML:%010d\r\nStartFragment:%010d\r\nEndFragment:%010d\r\n",
nStartHtml, nEndHtml, nStartFrgmt, nEndFrgmt );
-
+
// we add space for a trailing \0
aHTMLFmtSequence.realloc( lHTMLFmtHdr + aTextHtml.getLength( ) + 1 );
rtl_zeroMemory( aHTMLFmtSequence.getArray( ), aHTMLFmtSequence.getLength( ) );
-
+
// copy the HTML Format header
- rtl_copyMemory(
+ rtl_copyMemory(
static_cast< LPVOID >( aHTMLFmtSequence.getArray( ) ),
static_cast< LPVOID >( aHTMLFmtHdr ), lHTMLFmtHdr );
-
+
// concat the text/html
rtl_copyMemory(
static_cast< LPVOID >( aHTMLFmtSequence.getArray( ) + lHTMLFmtHdr ),
static_cast< LPVOID >( aTextHtml.getArray( ) ),
- aTextHtml.getLength( ) );
+ aTextHtml.getLength( ) );
}
-
+
return aHTMLFmtSequence;
}
*/
@@ -378,37 +378,37 @@ const std::string TAG_END_BODY = std::string("</BODY");
Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8>& aTextHtml)
{
OSL_ASSERT(aTextHtml.getLength() > 0);
-
+
if (!(aTextHtml.getLength() > 0))
return Sequence<sal_Int8>();
-
+
// fill the buffer with dummy values to calc the exact length
- std::string dummyHtmlHeader = GetHtmlFormatHeader(0, 0, 0, 0);
+ std::string dummyHtmlHeader = GetHtmlFormatHeader(0, 0, 0, 0);
size_t lHtmlFormatHeader = dummyHtmlHeader.length();
-
+
std::string textHtml(
- reinterpret_cast<const sal_Char*>(aTextHtml.getConstArray()),
+ reinterpret_cast<const sal_Char*>(aTextHtml.getConstArray()),
reinterpret_cast<const sal_Char*>(aTextHtml.getConstArray()) + aTextHtml.getLength());
-
+
std::string::size_type nStartHtml = textHtml.find(TAG_HTML) + lHtmlFormatHeader - 1; // we start one before '<HTML>' Word 2000 does also so
std::string::size_type nEndHtml = textHtml.find(TAG_END_HTML) + lHtmlFormatHeader + TAG_END_HTML.length() + 1; // our SOffice 5.2 wants 2 behind </HTML>?
-
+
// The body tag may have parameters so we need to search for the
// closing '>' manually e.g. <BODY param> #92840#
- std::string::size_type nStartFragment = textHtml.find(">", textHtml.find(TAG_BODY)) + lHtmlFormatHeader + 1;
+ std::string::size_type nStartFragment = textHtml.find(">", textHtml.find(TAG_BODY)) + lHtmlFormatHeader + 1;
std::string::size_type nEndFragment = textHtml.find(TAG_END_BODY) + lHtmlFormatHeader;
- std::string htmlFormat = GetHtmlFormatHeader(nStartHtml, nEndHtml, nStartFragment, nEndFragment);
+ std::string htmlFormat = GetHtmlFormatHeader(nStartHtml, nEndHtml, nStartFragment, nEndFragment);
htmlFormat += textHtml;
-
+
Sequence<sal_Int8> byteSequence(htmlFormat.length() + 1); // space the trailing '\0'
- rtl_zeroMemory(byteSequence.getArray(), byteSequence.getLength());
-
+ rtl_zeroMemory(byteSequence.getArray(), byteSequence.getLength());
+
rtl_copyMemory(
static_cast<void*>(byteSequence.getArray()),
static_cast<const void*>(htmlFormat.c_str()),
htmlFormat.length());
-
+
return byteSequence;
}
@@ -418,27 +418,27 @@ std::wstring getFileExtension(const std::wstring& aFilename)
if ((idx != std::wstring::npos))
{
return std::wstring(aFilename, idx);
- }
+ }
return std::wstring();
}
const std::wstring SHELL_LINK_FILE_EXTENSION = L".lnk";
bool isShellLink(const std::wstring& aFilename)
-{
+{
std::wstring ext = getFileExtension(aFilename);
- return (_wcsicmp(ext.c_str(), SHELL_LINK_FILE_EXTENSION.c_str()) == 0);
+ return (_wcsicmp(ext.c_str(), SHELL_LINK_FILE_EXTENSION.c_str()) == 0);
}
-
-/** Resolve a Windows Shell Link (lnk) file. If a resolution
+
+/** Resolve a Windows Shell Link (lnk) file. If a resolution
is not possible simply return the provided name of the
lnk file. */
-std::wstring getShellLinkTarget(const std::wstring& aLnkFile)
+std::wstring getShellLinkTarget(const std::wstring& aLnkFile)
{
OSL_ASSERT(isShellLink(aLnkFile));
-
+
std::wstring target = aLnkFile;
-
+
try
{
sal::systools::COMReference<IShellLinkA> pIShellLink;
@@ -446,34 +446,34 @@ std::wstring getShellLinkTarget(const std::wstring& aLnkFile)
CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, reinterpret_cast<LPVOID*>(&pIShellLink));
if (FAILED(hr))
return target;
-
+
sal::systools::COMReference<IPersistFile> pIPersistFile =
- pIShellLink.QueryInterface<IPersistFile>(IID_IPersistFile);
-
+ pIShellLink.QueryInterface<IPersistFile>(IID_IPersistFile);
+
hr = pIPersistFile->Load(aLnkFile.c_str(), STGM_READ);
if (FAILED(hr))
return target;
-
+
hr = pIShellLink->Resolve(NULL, SLR_UPDATE | SLR_NO_UI);
if (FAILED(hr))
return target;
-
+
char pathA[MAX_PATH];
- WIN32_FIND_DATA wfd;
- hr = pIShellLink->GetPath(pathA, MAX_PATH, &wfd, SLGP_RAWPATH);
+ WIN32_FIND_DATA wfd;
+ hr = pIShellLink->GetPath(pathA, MAX_PATH, &wfd, SLGP_RAWPATH);
if (FAILED(hr))
- return target;
-
+ return target;
+
wchar_t pathW[MAX_PATH];
- MultiByteToWideChar(CP_ACP, 0, pathA, -1, pathW, MAX_PATH);
- target = pathW;
+ MultiByteToWideChar(CP_ACP, 0, pathA, -1, pathW, MAX_PATH);
+ target = pathW;
}
catch(sal::systools::ComError& ex)
{
OSL_ENSURE(false, ex.what());
ex = ex;
- }
- return target;
+ }
+ return target;
}
typedef std::vector<std::wstring> FileList_t;
@@ -484,54 +484,54 @@ typedef Sequence<sal_Int8> ByteSequence_t;
a double '\0' terminated string buffer */
size_t CalcSizeForStringListBuffer(const FileList_t& fileList)
{
- if (fileList.size() == 0)
- return 0;
-
- size_t size = 1; // one for the very final '\0'
+ if (fileList.size() == 0)
+ return 0;
+
+ size_t size = 1; // one for the very final '\0'
FileList_t::const_iterator iter_end = fileList.end();
- for (FileList_t::const_iterator iter = fileList.begin(); iter != iter_end; ++iter)
+ for (FileList_t::const_iterator iter = fileList.begin(); iter != iter_end; ++iter)
{
size += iter->length() + 1; // length including terminating '\0'
- }
+ }
return (size * sizeof(FileList_ValueType_t::value_type));
}
ByteSequence_t FileListToByteSequence(const FileList_t& fileList)
-{
+{
ByteSequence_t bseq;
- size_t size = CalcSizeForStringListBuffer(fileList);
-
+ size_t size = CalcSizeForStringListBuffer(fileList);
+
if (size > 0)
{
bseq.realloc(size);
wchar_t* p = reinterpret_cast<wchar_t*>(bseq.getArray());
ZeroMemory(p, size);
-
+
FileList_t::const_iterator iter;
FileList_t::const_iterator iter_end = fileList.end();
for (iter = fileList.begin(); iter != iter_end; ++iter)
{
wcsncpy(p, iter->c_str(), iter->length());
p += (iter->length() + 1);
- }
+ }
}
return bseq;
}
-
+
ByteSequence_t CF_HDROPToFileList(HGLOBAL hGlobal)
-{
- UINT nFiles = DragQueryFileW((HDROP)hGlobal, 0xFFFFFFFF, NULL, 0);
+{
+ UINT nFiles = DragQueryFileW((HDROP)hGlobal, 0xFFFFFFFF, NULL, 0);
FileList_t files;
-
+
for (UINT i = 0; i < nFiles; i++)
{
wchar_t buff[MAX_PATH];
- /*UINT size =*/ DragQueryFileW((HDROP)hGlobal, i, buff, MAX_PATH);
+ /*UINT size =*/ DragQueryFileW((HDROP)hGlobal, i, buff, MAX_PATH);
std::wstring filename = buff;
if (isShellLink(filename))
filename = getShellLinkTarget(filename);
- files.push_back(filename);
- }
+ files.push_back(filename);
+ }
return FileListToByteSequence(files);
}
diff --git a/dtrans/source/win32/dtobj/FmtFilter.hxx b/dtrans/source/win32/dtobj/FmtFilter.hxx
index 0e91710729fc..552b872fc1ef 100644
--- a/dtrans/source/win32/dtobj/FmtFilter.hxx
+++ b/dtrans/source/win32/dtobj/FmtFilter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL OOBmpToWinDIB( com::sun::star
/*------------------------------------------------------------------------
input:
- aTextHtml - a sequence of text/html which will be converted to the
+ aTextHtml - a sequence of text/html which will be converted to the
HTML Format; the HTML Format has header before the real html data
the Format is described in the MSDN Library under HTML Clipboard
Format
diff --git a/dtrans/source/win32/dtobj/MimeAttrib.hxx b/dtrans/source/win32/dtobj/MimeAttrib.hxx
index e9538ac7ae1f..0b73a64a5ded 100644
--- a/dtrans/source/win32/dtobj/MimeAttrib.hxx
+++ b/dtrans/source/win32/dtobj/MimeAttrib.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/dtrans/source/win32/dtobj/TxtCnvtHlp.cxx b/dtrans/source/win32/dtobj/TxtCnvtHlp.cxx
index 669ee78eff6d..06fc87d8587b 100644
--- a/dtrans/source/win32/dtobj/TxtCnvtHlp.cxx
+++ b/dtrans/source/win32/dtobj/TxtCnvtHlp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,8 +76,8 @@ int CalcBuffSizeForTextConversion( UINT code_page, LPCWSTR lpWideCharString, int
// the buffer
//------------------------------------------------------------------
-int MultiByteToWideCharEx( UINT cp_src,
- LPCSTR lpMultiByteString,
+int MultiByteToWideCharEx( UINT cp_src,
+ LPCSTR lpMultiByteString,
sal_uInt32 lenStr,
CStgTransferHelper& refDTransHelper,
BOOL bEnsureTrailingZero )
@@ -85,9 +85,9 @@ int MultiByteToWideCharEx( UINT cp_src,
OSL_ASSERT( IsValidCodePage( cp_src ) );
OSL_ASSERT( NULL != lpMultiByteString );
- // calculate the required buff size
+ // calculate the required buff size
int reqSize = CalcBuffSizeForTextConversion( cp_src, lpMultiByteString, lenStr );
-
+
if ( bEnsureTrailingZero )
reqSize += sizeof( sal_Unicode );
@@ -97,9 +97,9 @@ int MultiByteToWideCharEx( UINT cp_src,
// setup a global memory pointer
CRawHGlobalPtr ptrHGlob( refDTransHelper );
- // do the converssion an return
- return MultiByteToWideChar( cp_src,
- 0,
+ // do the converssion an return
+ return MultiByteToWideChar( cp_src,
+ 0,
lpMultiByteString,
lenStr,
static_cast< LPWSTR >( ptrHGlob.GetMemPtr( ) ),
@@ -112,8 +112,8 @@ int MultiByteToWideCharEx( UINT cp_src,
// the buffer
//------------------------------------------------------------------
-int WideCharToMultiByteEx( UINT cp_dest,
- LPCWSTR lpWideCharString,
+int WideCharToMultiByteEx( UINT cp_dest,
+ LPCWSTR lpWideCharString,
sal_uInt32 lenStr,
CStgTransferHelper& refDTransHelper,
BOOL bEnsureTrailingZero )
@@ -121,7 +121,7 @@ int WideCharToMultiByteEx( UINT cp_dest,
OSL_ASSERT( IsValidCodePage( cp_dest ) );
OSL_ASSERT( NULL != lpWideCharString );
- // calculate the required buff size
+ // calculate the required buff size
int reqSize = CalcBuffSizeForTextConversion( cp_dest, lpWideCharString, lenStr );
if ( bEnsureTrailingZero )
@@ -133,7 +133,7 @@ int WideCharToMultiByteEx( UINT cp_dest,
// setup a global memory pointer
CRawHGlobalPtr ptrHGlob( refDTransHelper );
- // do the converssion an return
+ // do the converssion an return
return WideCharToMultiByte( cp_dest,
0,
lpWideCharString,
diff --git a/dtrans/source/win32/dtobj/TxtCnvtHlp.hxx b/dtrans/source/win32/dtobj/TxtCnvtHlp.hxx
index 5f37e19ce4d6..f9b9369255f6 100644
--- a/dtrans/source/win32/dtobj/TxtCnvtHlp.hxx
+++ b/dtrans/source/win32/dtobj/TxtCnvtHlp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,16 +47,16 @@
// deklarations
//------------------------------------------------------------------------
-int MultiByteToWideCharEx( UINT cp_src,
+int MultiByteToWideCharEx( UINT cp_src,
LPCSTR lpMultiByteString,
sal_uInt32 lenStr,
- CStgTransferHelper& refDTransHelper,
+ CStgTransferHelper& refDTransHelper,
BOOL bEnsureTrailingZero = TRUE );
-int WideCharToMultiByteEx( UINT cp_dest,
- LPCWSTR lpWideCharString,
+int WideCharToMultiByteEx( UINT cp_dest,
+ LPCWSTR lpWideCharString,
sal_uInt32 lenStr,
- CStgTransferHelper& refDTransHelper,
+ CStgTransferHelper& refDTransHelper,
BOOL bEnsureTrailingZero = TRUE );
#endif
diff --git a/dtrans/source/win32/dtobj/XNotifyingDataObject.cxx b/dtrans/source/win32/dtobj/XNotifyingDataObject.cxx
index fd12b6583626..adc6c1c36195 100644
--- a/dtrans/source/win32/dtobj/XNotifyingDataObject.cxx
+++ b/dtrans/source/win32/dtobj/XNotifyingDataObject.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,28 +44,28 @@ using com::sun::star::uno::RuntimeException;
using com::sun::star::uno::Reference;
-CXNotifyingDataObject::CXNotifyingDataObject(
- const IDataObjectPtr& aIDataObject,
+CXNotifyingDataObject::CXNotifyingDataObject(
+ const IDataObjectPtr& aIDataObject,
const Reference< XTransferable >& aXTransferable,
const Reference< XClipboardOwner >& aXClipOwner,
CWinClipbImpl* theWinClipImpl ) :
- m_nRefCnt( 0 ),
+ m_nRefCnt( 0 ),
m_aIDataObject( aIDataObject ),
m_XTransferable( aXTransferable ),
m_XClipboardOwner( aXClipOwner ),
m_pWinClipImpl( theWinClipImpl )
-{
+{
}
STDMETHODIMP CXNotifyingDataObject::QueryInterface( REFIID iid, LPVOID* ppvObject )
-{
+{
if ( NULL == ppvObject )
return E_INVALIDARG;
HRESULT hr = E_NOINTERFACE;
*ppvObject = NULL;
- if ( ( __uuidof( IUnknown ) == iid ) ||
+ if ( ( __uuidof( IUnknown ) == iid ) ||
( __uuidof( IDataObject ) == iid ) )
{
*ppvObject = static_cast< IUnknown* >( this );
@@ -82,8 +82,8 @@ STDMETHODIMP_(ULONG) CXNotifyingDataObject::AddRef( )
}
STDMETHODIMP_(ULONG) CXNotifyingDataObject::Release( )
-{
- ULONG nRefCnt =
+{
+ ULONG nRefCnt =
static_cast< ULONG >( InterlockedDecrement( &m_nRefCnt ) );
if ( 0 == nRefCnt )
@@ -98,50 +98,50 @@ STDMETHODIMP_(ULONG) CXNotifyingDataObject::Release( )
}
STDMETHODIMP CXNotifyingDataObject::GetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium )
-{
- return m_aIDataObject->GetData(pFormatetc, pmedium);
+{
+ return m_aIDataObject->GetData(pFormatetc, pmedium);
}
-STDMETHODIMP CXNotifyingDataObject::EnumFormatEtc(
+STDMETHODIMP CXNotifyingDataObject::EnumFormatEtc(
DWORD dwDirection, IEnumFORMATETC** ppenumFormatetc )
-{
- return m_aIDataObject->EnumFormatEtc(dwDirection, ppenumFormatetc);
+{
+ return m_aIDataObject->EnumFormatEtc(dwDirection, ppenumFormatetc);
}
STDMETHODIMP CXNotifyingDataObject::QueryGetData( LPFORMATETC pFormatetc )
{
- return m_aIDataObject->QueryGetData(pFormatetc);
+ return m_aIDataObject->QueryGetData(pFormatetc);
}
STDMETHODIMP CXNotifyingDataObject::GetDataHere( LPFORMATETC lpFetc, LPSTGMEDIUM lpStgMedium )
{
- return m_aIDataObject->GetDataHere(lpFetc, lpStgMedium);
+ return m_aIDataObject->GetDataHere(lpFetc, lpStgMedium);
}
STDMETHODIMP CXNotifyingDataObject::GetCanonicalFormatEtc( LPFORMATETC lpFetc, LPFORMATETC lpCanonicalFetc )
{
- return m_aIDataObject->GetCanonicalFormatEtc(lpFetc, lpCanonicalFetc);
+ return m_aIDataObject->GetCanonicalFormatEtc(lpFetc, lpCanonicalFetc);
}
STDMETHODIMP CXNotifyingDataObject::SetData( LPFORMATETC lpFetc, LPSTGMEDIUM lpStgMedium, BOOL bRelease )
-{
- return m_aIDataObject->SetData( lpFetc, lpStgMedium, bRelease );
+{
+ return m_aIDataObject->SetData( lpFetc, lpStgMedium, bRelease );
}
-STDMETHODIMP CXNotifyingDataObject::DAdvise(
+STDMETHODIMP CXNotifyingDataObject::DAdvise(
LPFORMATETC lpFetc, DWORD advf, LPADVISESINK lpAdvSink, DWORD* pdwConnection )
-{
- return m_aIDataObject->DAdvise( lpFetc, advf, lpAdvSink, pdwConnection );
+{
+ return m_aIDataObject->DAdvise( lpFetc, advf, lpAdvSink, pdwConnection );
}
STDMETHODIMP CXNotifyingDataObject::DUnadvise( DWORD dwConnection )
-{
+{
return m_aIDataObject->DUnadvise( dwConnection );
}
STDMETHODIMP CXNotifyingDataObject::EnumDAdvise( LPENUMSTATDATA * ppenumAdvise )
{
- return m_aIDataObject->EnumDAdvise( ppenumAdvise );
+ return m_aIDataObject->EnumDAdvise( ppenumAdvise );
}
CXNotifyingDataObject::operator IDataObject*( )
@@ -154,13 +154,13 @@ void SAL_CALL CXNotifyingDataObject::lostOwnership( )
try
{
if (m_XClipboardOwner.is())
- m_XClipboardOwner->lostOwnership(
+ m_XClipboardOwner->lostOwnership(
static_cast<XClipboardEx*>(m_pWinClipImpl->m_pWinClipboard ), m_XTransferable);
}
catch(RuntimeException&)
{
OSL_ENSURE( sal_False, "RuntimeException caught" );
- }
+ }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx b/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx
index 20b12f7009cd..f52e75f32e99 100644
--- a/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx
+++ b/dtrans/source/win32/dtobj/XNotifyingDataObject.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,14 +60,14 @@ class CWinClipbImpl;
class CXNotifyingDataObject : public IDataObject
{
public:
- CXNotifyingDataObject(
- const IDataObjectPtr& aIDataObject,
+ CXNotifyingDataObject(
+ const IDataObjectPtr& aIDataObject,
const com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable >& aXTransferable,
const com::sun::star::uno::Reference< com::sun::star::datatransfer::clipboard::XClipboardOwner >& aXClipOwner,
CWinClipbImpl* theWinClipImpl );
virtual ~CXNotifyingDataObject() {}
-
+
//-----------------------------------------------------------------
// ole interface implementation
//-----------------------------------------------------------------
@@ -93,12 +93,12 @@ public:
private:
void SAL_CALL lostOwnership( );
-private:
- sal_Int32 m_nRefCnt;
- IDataObjectPtr m_aIDataObject;
- const com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable > m_XTransferable;
- const com::sun::star::uno::Reference< com::sun::star::datatransfer::clipboard::XClipboardOwner > m_XClipboardOwner;
- CWinClipbImpl* m_pWinClipImpl;
+private:
+ sal_Int32 m_nRefCnt;
+ IDataObjectPtr m_aIDataObject;
+ const com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable > m_XTransferable;
+ const com::sun::star::uno::Reference< com::sun::star::datatransfer::clipboard::XClipboardOwner > m_XClipboardOwner;
+ CWinClipbImpl* m_pWinClipImpl;
friend class CWinClipbImpl;
};
diff --git a/dtrans/source/win32/dtobj/XTDataObject.cxx b/dtrans/source/win32/dtobj/XTDataObject.cxx
index 16c0e0f0afd0..ef961fff1001 100644
--- a/dtrans/source/win32/dtobj/XTDataObject.cxx
+++ b/dtrans/source/win32/dtobj/XTDataObject.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -319,7 +319,7 @@ void SAL_CALL CXTDataObject::renderAnyDataAndSetupStgMedium(
stgmedium.hMetaFilePict = OOMFPictToWinMFPict( clipDataStream );
stgmedium.pUnkForRelease = NULL;
}
- else if( CF_ENHMETAFILE == fetc.cfFormat )
+ else if( CF_ENHMETAFILE == fetc.cfFormat )
{
stgmedium.tymed = TYMED_ENHMF;
stgmedium.hMetaFilePict = OOMFPictToWinENHMFPict( clipDataStream );
@@ -474,12 +474,12 @@ void SAL_CALL CXTDataObject::renderSynthesizedHtmlAndSetupStgMedium( FORMATETC&
Sequence< sal_Int8 > aHTMLFormatSequence = TextHtmlToHTMLFormat( aTextHtmlSequence );
sal_uInt32 nBytesToTransfer = aHTMLFormatSequence.getLength( );
-
- renderDataAndSetupStgMedium(
- reinterpret_cast< const sal_Int8* >( aHTMLFormatSequence.getArray( ) ),
- fetc,
- 0,
- nBytesToTransfer,
+
+ renderDataAndSetupStgMedium(
+ reinterpret_cast< const sal_Int8* >( aHTMLFormatSequence.getArray( ) ),
+ fetc,
+ 0,
+ nBytesToTransfer,
stgmedium );
}
@@ -487,12 +487,12 @@ void SAL_CALL CXTDataObject::renderSynthesizedHtmlAndSetupStgMedium( FORMATETC&
// IDataObject->EnumFormatEtc
//------------------------------------------------------------------------
-STDMETHODIMP CXTDataObject::EnumFormatEtc(
+STDMETHODIMP CXTDataObject::EnumFormatEtc(
DWORD dwDirection, IEnumFORMATETC** ppenumFormatetc )
{
- if ( NULL == ppenumFormatetc )
+ if ( NULL == ppenumFormatetc )
return E_INVALIDARG;
-
+
if ( DATADIR_SET == dwDirection )
return E_NOTIMPL;
@@ -505,7 +505,7 @@ STDMETHODIMP CXTDataObject::EnumFormatEtc(
{
*ppenumFormatetc = new CEnumFormatEtc( this, m_FormatEtcContainer );
if ( NULL != *ppenumFormatetc )
- static_cast< LPUNKNOWN >( *ppenumFormatetc )->AddRef( );
+ static_cast< LPUNKNOWN >( *ppenumFormatetc )->AddRef( );
hr = ( NULL != *ppenumFormatetc ) ? S_OK : E_OUTOFMEMORY;
}
@@ -600,9 +600,9 @@ inline
DataFlavor SAL_CALL CXTDataObject::formatEtcToDataFlavor( const FORMATETC& aFormatEtc ) const
{
DataFlavor aFlavor;
-
+
if ( m_FormatRegistrar.hasSynthesizedLocale( ) )
- aFlavor =
+ aFlavor =
m_DataFormatTranslator.getDataFlavorFromFormatEtc( aFormatEtc, m_FormatRegistrar.getSynthesizedLocale( ) );
else
aFlavor = m_DataFormatTranslator.getDataFlavorFromFormatEtc( aFormatEtc );
@@ -614,7 +614,7 @@ DataFlavor SAL_CALL CXTDataObject::formatEtcToDataFlavor( const FORMATETC& aForm
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
inline
@@ -635,28 +635,28 @@ void CXTDataObject::validateFormatEtc( LPFORMATETC lpFormatEtc ) const
!(lpFormatEtc->tymed & TYMED_ENHMF) )
throw CInvalidFormatEtcException( DV_E_TYMED );
- if ( lpFormatEtc->cfFormat == CF_METAFILEPICT &&
+ if ( lpFormatEtc->cfFormat == CF_METAFILEPICT &&
!(lpFormatEtc->tymed & TYMED_MFPICT) )
throw CInvalidFormatEtcException( DV_E_TYMED );
-
- if ( lpFormatEtc->cfFormat == CF_ENHMETAFILE &&
+
+ if ( lpFormatEtc->cfFormat == CF_ENHMETAFILE &&
!(lpFormatEtc->tymed & TYMED_ENHMF) )
throw CInvalidFormatEtcException( DV_E_TYMED );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
//inline
-void SAL_CALL CXTDataObject::setupStgMedium( const FORMATETC& fetc,
+void SAL_CALL CXTDataObject::setupStgMedium( const FORMATETC& fetc,
CStgTransferHelper& stgTransHlp,
STGMEDIUM& stgmedium )
{
stgmedium.pUnkForRelease = NULL;
if ( fetc.cfFormat == CF_METAFILEPICT )
- {
+ {
stgmedium.tymed = TYMED_MFPICT;
stgmedium.hMetaFilePict = static_cast< HMETAFILEPICT >( stgTransHlp.getHGlobal( ) );
}
@@ -676,21 +676,21 @@ void SAL_CALL CXTDataObject::setupStgMedium( const FORMATETC& fetc,
stgTransHlp.getIStream( &stgmedium.pstm );
}
else
- OSL_ASSERT( sal_False );
+ OSL_ASSERT( sal_False );
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
-inline
+inline
void SAL_CALL CXTDataObject::invalidateStgMedium( STGMEDIUM& stgmedium ) const
{
stgmedium.tymed = TYMED_NULL;
}
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
inline
@@ -720,7 +720,7 @@ inline void SAL_CALL CXTDataObject::InitializeFormatEtcContainer( )
{
if ( !m_bFormatEtcContainerInitialized )
{
- m_FormatRegistrar.RegisterFormats( m_XTransferable, m_FormatEtcContainer );
+ m_FormatRegistrar.RegisterFormats( m_XTransferable, m_FormatEtcContainer );
m_bFormatEtcContainerInitialized = sal_True;
}
}
@@ -754,7 +754,7 @@ STDMETHODIMP CEnumFormatEtc::QueryInterface( REFIID iid, LPVOID* ppvObject )
*ppvObject = NULL;
- if ( ( __uuidof( IUnknown ) == iid ) ||
+ if ( ( __uuidof( IUnknown ) == iid ) ||
( __uuidof( IEnumFORMATETC ) == iid ) )
{
*ppvObject = static_cast< IUnknown* >( this );
@@ -772,7 +772,7 @@ STDMETHODIMP CEnumFormatEtc::QueryInterface( REFIID iid, LPVOID* ppvObject )
STDMETHODIMP_(ULONG) CEnumFormatEtc::AddRef( )
{
// keep the dataobject alive
- m_lpUnkOuter->AddRef( );
+ m_lpUnkOuter->AddRef( );
return InterlockedIncrement( &m_nRefCnt );
}
@@ -782,7 +782,7 @@ STDMETHODIMP_(ULONG) CEnumFormatEtc::AddRef( )
STDMETHODIMP_(ULONG) CEnumFormatEtc::Release( )
{
- // release the outer dataobject
+ // release the outer dataobject
m_lpUnkOuter->Release( );
ULONG nRefCnt = InterlockedDecrement( &m_nRefCnt );
@@ -798,7 +798,7 @@ STDMETHODIMP_(ULONG) CEnumFormatEtc::Release( )
STDMETHODIMP CEnumFormatEtc::Next( ULONG nRequested, LPFORMATETC lpDest, ULONG* lpFetched )
{
- if ( ( nRequested < 1 ) ||
+ if ( ( nRequested < 1 ) ||
(( nRequested > 1 ) && ( NULL == lpFetched )) ||
IsBadWritePtr( lpDest, sizeof( FORMATETC ) * nRequested ) )
return E_INVALIDARG;
@@ -817,7 +817,7 @@ STDMETHODIMP CEnumFormatEtc::Next( ULONG nRequested, LPFORMATETC lpDest, ULONG*
STDMETHODIMP CEnumFormatEtc::Skip( ULONG celt )
{
- return m_FormatEtcContainer.skipFormatEtc( celt ) ? S_OK : S_FALSE;
+ return m_FormatEtcContainer.skipFormatEtc( celt ) ? S_OK : S_FALSE;
}
//----------------------------------------------------------------------------
@@ -838,10 +838,10 @@ STDMETHODIMP CEnumFormatEtc::Clone( IEnumFORMATETC** ppenum )
{
if ( NULL == ppenum )
return E_INVALIDARG;
-
+
*ppenum = new CEnumFormatEtc( m_lpUnkOuter, m_FormatEtcContainer );
if ( NULL != ppenum )
- static_cast< LPUNKNOWN >( *ppenum )->AddRef( );
+ static_cast< LPUNKNOWN >( *ppenum )->AddRef( );
return ( NULL != *ppenum ) ? S_OK : E_OUTOFMEMORY;
}
diff --git a/dtrans/source/win32/dtobj/XTDataObject.hxx b/dtrans/source/win32/dtobj/XTDataObject.hxx
index 1958be4afcbe..2b6540d170d0 100644
--- a/dtrans/source/win32/dtobj/XTDataObject.hxx
+++ b/dtrans/source/win32/dtobj/XTDataObject.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,12 +58,12 @@
a clipboard client ask for the available formats on the clipboard
and decides if there is a format he can use
if there is one, he requests the data in this format
-
- - This class inherits from IDataObject an so can be placed on the
- OleClipboard. The class wrapps a transferable object which is the
+
+ - This class inherits from IDataObject an so can be placed on the
+ OleClipboard. The class wrapps a transferable object which is the
original DataSource
- DataFlavors offerd by this transferable will be translated into
- appropriate clipboard formats
+ appropriate clipboard formats
- if the transferable contains text data always text and unicodetext
will be offered or vice versa
- text data will be automaticaly converted between text und unicode text
@@ -80,7 +80,7 @@ public:
CXTDataObject( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aServiceManager,
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& aXTransferable );
virtual ~CXTDataObject() {}
-
+
//-----------------------------------------------------------------
// ole interface implementation
//-----------------------------------------------------------------
@@ -103,15 +103,15 @@ public:
operator IDataObject*( );
-private:
- com::sun::star::datatransfer::DataFlavor SAL_CALL formatEtcToDataFlavor( const FORMATETC& aFormatEtc ) const;
-
+private:
+ com::sun::star::datatransfer::DataFlavor SAL_CALL formatEtcToDataFlavor( const FORMATETC& aFormatEtc ) const;
+
void SAL_CALL renderDataAndSetupStgMedium( const sal_Int8* lpStorage,
- const FORMATETC& fetc,
+ const FORMATETC& fetc,
sal_uInt32 nInitStgSize,
sal_uInt32 nBytesToTransfer,
STGMEDIUM& stgmedium );
-
+
void SAL_CALL renderLocaleAndSetupStgMedium( FORMATETC& fetc, STGMEDIUM& stgmedium );
void SAL_CALL renderUnicodeAndSetupStgMedium( FORMATETC& fetc, STGMEDIUM& stgmedium );
void SAL_CALL renderAnyDataAndSetupStgMedium( FORMATETC& fetc, STGMEDIUM& stgmedium );
@@ -121,29 +121,29 @@ private:
void SAL_CALL renderSynthesizedTextAndSetupStgMedium( FORMATETC& fetc, STGMEDIUM& stgmedium );
void SAL_CALL renderSynthesizedHtmlAndSetupStgMedium( FORMATETC& fetc, STGMEDIUM& stgmedium );
- void SAL_CALL setupStgMedium( const FORMATETC& fetc,
- CStgTransferHelper& stgTransHlp,
+ void SAL_CALL setupStgMedium( const FORMATETC& fetc,
+ CStgTransferHelper& stgTransHlp,
STGMEDIUM& stgmedium );
-
- void validateFormatEtc( LPFORMATETC lpFormatEtc ) const;
+
+ void validateFormatEtc( LPFORMATETC lpFormatEtc ) const;
void SAL_CALL invalidateStgMedium( STGMEDIUM& stgmedium ) const;
HRESULT SAL_CALL translateStgExceptionCode( HRESULT hr ) const;
inline void SAL_CALL InitializeFormatEtcContainer( );
-private:
- LONG m_nRefCnt;
+private:
+ LONG m_nRefCnt;
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > m_XTransferable;
- CFormatEtcContainer m_FormatEtcContainer;
+ CFormatEtcContainer m_FormatEtcContainer;
sal_Bool m_bFormatEtcContainerInitialized;
- CDataFormatTranslator m_DataFormatTranslator;
- CFormatRegistrar m_FormatRegistrar;
+ CDataFormatTranslator m_DataFormatTranslator;
+ CFormatRegistrar m_FormatRegistrar;
};
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
class CEnumFormatEtc : public IEnumFORMATETC
@@ -151,22 +151,22 @@ class CEnumFormatEtc : public IEnumFORMATETC
public:
CEnumFormatEtc( LPUNKNOWN lpUnkOuter, const CFormatEtcContainer& aFormatEtcContainer );
virtual ~CEnumFormatEtc() {}
-
- // IUnknown
+
+ // IUnknown
STDMETHODIMP QueryInterface( REFIID iid, LPVOID* ppvObject );
STDMETHODIMP_( ULONG ) AddRef( );
STDMETHODIMP_( ULONG ) Release( );
- //IEnumFORMATETC
+ //IEnumFORMATETC
STDMETHODIMP Next( ULONG nRequested, LPFORMATETC lpDest, ULONG* lpFetched );
STDMETHODIMP Skip( ULONG celt );
STDMETHODIMP Reset( );
STDMETHODIMP Clone( IEnumFORMATETC** ppenum );
private:
- LONG m_nRefCnt;
+ LONG m_nRefCnt;
LPUNKNOWN m_lpUnkOuter;
- CFormatEtcContainer m_FormatEtcContainer;
+ CFormatEtcContainer m_FormatEtcContainer;
};
typedef CEnumFormatEtc *PCEnumFormatEtc;
diff --git a/dtrans/source/win32/ftransl/ftransl.cxx b/dtrans/source/win32/ftransl/ftransl.cxx
index e27cefcc3f22..ce828d611e52 100644
--- a/dtrans/source/win32/ftransl/ftransl.cxx
+++ b/dtrans/source/win32/ftransl/ftransl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,14 +54,14 @@
#define IMPL_NAME "com.sun.star.datatransfer.DataFormatTranslator"
#define MODULE_PRIVATE
-#define CPPUTYPE_SEQSALINT8 getCppuType( (const Sequence< sal_Int8 >*) 0 )
-#define CPPUTYPE_DEFAULT CPPUTYPE_SEQSALINT8
-#define CPPUTYPE_OUSTR getCppuType( (const ::rtl::OUString*) 0 )
+#define CPPUTYPE_SEQSALINT8 getCppuType( (const Sequence< sal_Int8 >*) 0 )
+#define CPPUTYPE_DEFAULT CPPUTYPE_SEQSALINT8
+#define CPPUTYPE_OUSTR getCppuType( (const ::rtl::OUString*) 0 )
#define CPPUTYPE_SALINT32 getCppuType( ( sal_Int32 * ) 0 )
-#define OUSTR( str ) OUString::createFromAscii( #str )
+#define OUSTR( str ) OUString::createFromAscii( #str )
#define OUSTR_( str ) OUString::createFromAscii( str )
#define EMPTY_OUSTR OUString::createFromAscii( "" )
-//#define PRIVATE_OO OUString::createFromAscii( "application/x-openoffice;" "windows_formatname=" )
+//#define PRIVATE_OO OUString::createFromAscii( "application/x-openoffice;" "windows_formatname=" )
const rtl::OUString Windows_FormatName = rtl::OUString::createFromAscii("windows_formatname");
const com::sun::star::uno::Type CppuType_ByteSequence = ::getCppuType((const com::sun::star::uno::Sequence<sal_Int8>*)0);
@@ -124,7 +124,7 @@ FormatEntry::FormatEntry(
aStandardFormatId = std_clipboard_format_id;
}
-
+
//------------------------------------------------------------------------
// ctor
//------------------------------------------------------------------------
@@ -132,7 +132,7 @@ FormatEntry::FormatEntry(
CDataFormatTranslator::CDataFormatTranslator( const Reference< XMultiServiceFactory >& rSrvMgr ) :
m_SrvMgr( rSrvMgr )
{
- initTranslationTable( );
+ initTranslationTable( );
}
//------------------------------------------------------------------------
@@ -240,7 +240,7 @@ OUString SAL_CALL CDataFormatTranslator::getImplementationName( )
}
// -------------------------------------------------
-// XServiceInfo
+// XServiceInfo
// -------------------------------------------------
sal_Bool SAL_CALL CDataFormatTranslator::supportsService( const OUString& ServiceName )
@@ -256,7 +256,7 @@ sal_Bool SAL_CALL CDataFormatTranslator::supportsService( const OUString& Servic
}
// -------------------------------------------------
-// XServiceInfo
+// XServiceInfo
// -------------------------------------------------
Sequence< OUString > SAL_CALL CDataFormatTranslator::getSupportedServiceNames( )
@@ -275,23 +275,23 @@ Sequence< OUString > SAL_CALL CDataFormatTranslator::getSupportedServiceNames( )
// -------------------------------------------------
void SAL_CALL CDataFormatTranslator::initTranslationTable()
-{
+{
//SOT_FORMATSTR_ID_DIF
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-dif;windows_formatname=\"DIF\"", "DIF", "DIF", CF_DIF, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-dif;windows_formatname=\"DIF\"", "DIF", "DIF", CF_DIF, CPPUTYPE_DEFAULT));
// SOT_FORMAT_BITMAP
m_TranslTable.push_back(FormatEntry("application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"", "Bitmap", "Bitmap", CF_DIB, CPPUTYPE_DEFAULT));
- // SOT_FORMAT_STRING
+ // SOT_FORMAT_STRING
m_TranslTable.push_back(FormatEntry("text/plain;charset=utf-16", "Unicode-Text", "", CF_UNICODETEXT, CppuType_String));
// Format Locale - for internal use
m_TranslTable.push_back(FormatEntry("application/x-openoffice-locale;windows_formatname=\"Locale\"", "Locale", "Locale", CF_LOCALE, CPPUTYPE_DEFAULT));
// SOT_FORMAT_WMF
m_TranslTable.push_back(FormatEntry("application/x-openoffice-wmf;windows_formatname=\"Image WMF\"", "Windows MetaFile", "Image WMF", CF_METAFILEPICT, CPPUTYPE_DEFAULT));
- // SOT_FORMAT_EMF
+ // SOT_FORMAT_EMF
m_TranslTable.push_back(FormatEntry("application/x-openoffice-emf;windows_formatname=\"Image EMF\"", "Windows Enhanced MetaFile", "Image EMF", CF_ENHMETAFILE, CPPUTYPE_DEFAULT));
- // SOT_FORMAT_FILE_LIST
+ // SOT_FORMAT_FILE_LIST
m_TranslTable.push_back(FormatEntry("application/x-openoffice-filelist;windows_formatname=\"FileList\"", "FileList", "FileList", CF_HDROP, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SYLK
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-sylk;windows_formatname=\"Sylk\"", "Sylk", "Sylk", CF_SYLK, CPPUTYPE_DEFAULT ) );
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-sylk;windows_formatname=\"Sylk\"", "Sylk", "Sylk", CF_SYLK, CPPUTYPE_DEFAULT ) );
// SOT_FORMAT_GDIMETAFILE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"", "GDIMetaFile", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMAT_PRIVATE
@@ -301,19 +301,19 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
// SOT_FORMAT_RTF
m_TranslTable.push_back(FormatEntry("text/richtext", "Rich Text Format", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_DRAWING
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-drawing;windows_formatname=\"Drawing Format\"", "Drawing Format", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-drawing;windows_formatname=\"Drawing Format\"", "Drawing Format", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_SVXB
m_TranslTable.push_back(FormatEntry("application/x-openoffice-svbx;windows_formatname=\"SVXB (StarView Bitmap/Animation)\"", "SVXB (StarView Bitmap/Animation)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_SVIM
m_TranslTable.push_back(FormatEntry("application/x-openoffice-svim;windows_formatname=\"SVIM (StarView ImageMap)\"", "SVIM (StarView ImageMap)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_XFA
m_TranslTable.push_back(FormatEntry("application/x-openoffice-xfa;windows_formatname=\"XFA (XOutDev FillAttr)\"", "XFA (XOutDev FillAttr)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
- // SOT_FORMATSTR_ID_EDITENGINE
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-editengine;windows_formatname=\"EditEngineFormat\"", "EditEngineFormat", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ // SOT_FORMATSTR_ID_EDITENGINE
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-editengine;windows_formatname=\"EditEngineFormat\"", "EditEngineFormat", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_INTERNALLINK_STATE
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-internallink-state;windows_formatname=\"StatusInfo vom SvxInternalLink\"", "StatusInfo vom SvxInternalLink", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-internallink-state;windows_formatname=\"StatusInfo vom SvxInternalLink\"", "StatusInfo vom SvxInternalLink", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_SOLK
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-solk;windows_formatname=\"SOLK (StarOffice Link)\"", "SOLK (StarOffice Link)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-solk;windows_formatname=\"SOLK (StarOffice Link)\"", "SOLK (StarOffice Link)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK
m_TranslTable.push_back(FormatEntry("application/x-openoffice-netscape-bookmark;windows_formatname=\"Netscape Bookmark\"", "Netscape Bookmark", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_TREELISTBOX
@@ -321,7 +321,7 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
// SOT_FORMATSTR_ID_NATIVE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-native;windows_formatname=\"Native\"", "Native", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_OWNERLINK
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-ownerlink;windows_formatname=\"OwnerLink\"", "OwnerLink", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-ownerlink;windows_formatname=\"OwnerLink\"", "OwnerLink", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_STARSERVER
m_TranslTable.push_back(FormatEntry("application/x-openoffice-starserver;windows_formatname=\"StarServerFormat\"", "StarServerFormat", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_STAROBJECT
@@ -361,7 +361,7 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
// SOT_FORMATSTR_ID_STARCHART
m_TranslTable.push_back(FormatEntry("application/x-openoffice-starchart;windows_formatname=\"StarChartDocument\"", "StarChartDocument", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_STARCHART_40
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-starchart-40;windows_formatname=\"StarChartDocument 4.0\"", "StarChartDocument 4.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-starchart-40;windows_formatname=\"StarChartDocument 4.0\"", "StarChartDocument 4.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
// SOT_FORMATSTR_ID_STARCHART_50
m_TranslTable.push_back(FormatEntry("application/x-openoffice-starchart-50;windows_formatname=\"StarChart 5.0\"", "StarChart 5.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STARIMAGE
@@ -369,7 +369,7 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
//SOT_FORMATSTR_ID_STARIMAGE_40
m_TranslTable.push_back(FormatEntry("application/x-openoffice-starimage-40;windows_formatname=\"StarImageDocument 4.0\"", "StarImageDocument 4.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STARIMAGE_50
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-starimage-50;windows_formatname=\"StarImage 5.0\"", "StarImage 5.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-starimage-50;windows_formatname=\"StarImage 5.0\"", "StarImage 5.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STARMATH
m_TranslTable.push_back(FormatEntry("application/x-openoffice-starmath;windows_formatname=\"StarMath\"", "StarMath", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STARMATH_40
@@ -377,7 +377,7 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
//SOT_FORMATSTR_ID_STARMATH_50
m_TranslTable.push_back(FormatEntry("application/x-openoffice-starmath-50;windows_formatname=\"StarMath 5.0\"", "StarMath 5.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STAROBJECT_PAINTDOC
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-starobject-paintdoc;windows_formatname=\"StarObjectPaintDocument\"", "StarObjectPaintDocument", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-starobject-paintdoc;windows_formatname=\"StarObjectPaintDocument\"", "StarObjectPaintDocument", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_FILLED_AREA
m_TranslTable.push_back(FormatEntry("application/x-openoffice-filled-area;windows_formatname=\"FilledArea\"", "FilledArea", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_HTML
@@ -389,32 +389,32 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
//SOT_FORMATSTR_ID_CNT_MSGATTACHFILE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-msgattachfile;windows_formatname=\"CNT_MSGATTACHFILE_FORMAT\"", "CNT_MSGATTACHFILE_FORMAT", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_BIFF_5
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-biff5;windows_formatname=\"Biff5\"", "Biff5", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-biff5;windows_formatname=\"Biff5\"", "Biff5", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_BIFF__5
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-biff-5;windows_formatname=\"Biff 5\"", "Biff 5", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-biff-5;windows_formatname=\"Biff 5\"", "Biff 5", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_BIFF_8
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-biff-8;windows_formatname=\"Biff8\"", "Biff8", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-biff-8;windows_formatname=\"Biff8\"", "Biff8", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SYLK_BIGCAPS
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-sylk-bigcaps;windows_formatname=\"SYLK\"", "SYLK", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-sylk-bigcaps;windows_formatname=\"SYLK\"", "SYLK", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_LINK
m_TranslTable.push_back(FormatEntry("application/x-openoffice-link;windows_formatname=\"Link\"", "Link", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STARDRAW_TABBAR
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-stardraw-tabbar;windows_formatname=\"StarDraw TabBar\"", "StarDraw TabBar", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-stardraw-tabbar;windows_formatname=\"StarDraw TabBar\"", "StarDraw TabBar", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SONLK
m_TranslTable.push_back(FormatEntry("application/x-openoffice-sonlk;windows_formatname=\"SONLK (StarOffice Navi Link)\"", "SONLK (StarOffice Navi Link)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_MSWORD_DOC
- m_TranslTable.push_back(FormatEntry("application/msword", "MSWordDoc", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/msword", "MSWordDoc", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STAR_FRAMESET_DOC
m_TranslTable.push_back(FormatEntry("application/x-openoffice-star-frameset-doc;windows_formatname=\"StarFrameSetDocument\"", "StarFrameSetDocument", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_OFFICE_DOC
m_TranslTable.push_back(FormatEntry("application/x-openoffice-office-doc;windows_formatname=\"OfficeDocument\"", "OfficeDocument", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_NOTES_DOCINFO
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-notes-docinfo;windows_formatname=\"NotesDocInfo\"", "NotesDocInfo", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-notes-docinfo;windows_formatname=\"NotesDocInfo\"", "NotesDocInfo", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_NOTES_HNOTE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-notes-hnote;windows_formatname=\"NoteshNote\"", "NoteshNote", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_NOTES_NATIVE
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-notes-native;windows_formatname=\"Native\"", "Native", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
- //SOT_FORMATSTR_ID_SFX_DOC
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-notes-native;windows_formatname=\"Native\"", "Native", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ //SOT_FORMATSTR_ID_SFX_DOC
m_TranslTable.push_back(FormatEntry("application/x-openoffice-sfx-doc;windows_formatname=\"SfxDocument\"", "SfxDocument", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_EVDF
m_TranslTable.push_back(FormatEntry("application/x-openoffice-evdf;windows_formatname=\"EVDF (Explorer View Dummy Format)\"", "EVDF (Explorer View Dummy Format)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
@@ -423,9 +423,9 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
//SOT_FORMATSTR_ID_IDF
m_TranslTable.push_back(FormatEntry("application/x-openoffice-idf;windows_formatname=\"IDF (Iconview Dummy Format)\"", "IDF (Iconview Dummy Format)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_EFTP
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-eftp;windows_formatname=\"EFTP (Explorer Ftp File)\"", "EFTP (Explorer Ftp File)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-eftp;windows_formatname=\"EFTP (Explorer Ftp File)\"", "EFTP (Explorer Ftp File)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_EFD
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-efd;windows_formatname=\"EFD (Explorer Ftp Dir)\"", "EFD (Explorer Ftp Dir)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-efd;windows_formatname=\"EFD (Explorer Ftp Dir)\"", "EFD (Explorer Ftp Dir)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SVX_FORMFIELDEXCH
m_TranslTable.push_back(FormatEntry("application/x-openoffice-svx-formfieldexch;windows_formatname=\"SvxFormFieldExch\"", "SvxFormFieldExch", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_EXTENDED_TABBAR
@@ -433,13 +433,13 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
//SOT_FORMATSTR_ID_SBA_DATAEXCHANGE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-dataexchange;windows_formatname=\"SBA-DATAFORMAT\"", "SBA-DATAFORMAT", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-fielddataexchange;windows_formatname=\"SBA-FIELDFORMAT\"", "SBA-FIELDFORMAT", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-fielddataexchange;windows_formatname=\"SBA-FIELDFORMAT\"", "SBA-FIELDFORMAT", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SBA_PRIVATE_URL
m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-private-url;windows_formatname=\"SBA-PRIVATEURLFORMAT\"", "SBA-PRIVATEURLFORMAT", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SBA_TABED
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-tabed;windows_formatname=\"Tabed\"", "Tabed", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-tabed;windows_formatname=\"Tabed\"", "Tabed", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SBA_TABID
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-tabid;windows_formatname=\"Tabid\"", "Tabid", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-tabid;windows_formatname=\"Tabid\"", "Tabid", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SBA_JOIN
m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-join;windows_formatname=\"SBA-JOINFORMAT\"", "SBA-JOINFORMAT", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_OBJECTDESCRIPTOR
@@ -453,27 +453,27 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
//SOT_FORMATSTR_ID_EMBEDDED_OBJ
m_TranslTable.push_back(FormatEntry("application/x-openoffice-embedded-obj-xml;windows_formatname=\"Star Embedded Object (XML)\"", "Star Embedded Object (XML)", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_FILECONTENT
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-filecontent;windows_formatname=\"" CFSTR_FILECONTENTS "\"", CFSTR_FILECONTENTS, NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-filecontent;windows_formatname=\"" CFSTR_FILECONTENTS "\"", CFSTR_FILECONTENTS, NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR
m_TranslTable.push_back(FormatEntry("application/x-openoffice-filegrpdescriptor;windows_formatname=\"" CFSTR_FILEDESCRIPTOR "\"", CFSTR_FILEDESCRIPTOR, NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_FILENAME
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-filename;windows_formatname=\"" CFSTR_FILENAME "\"", CFSTR_FILENAME, NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-filename;windows_formatname=\"" CFSTR_FILENAME "\"", CFSTR_FILENAME, NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SD_OLE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-sd-ole;windows_formatname=\"SD-OLE\"", "SD-OLE", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-embedded-obj-ole;windows_formatname=\"Embedded Object\"", "Embedded Object", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-embedded-obj-ole;windows_formatname=\"Embedded Object\"", "Embedded Object", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_EMBED_SOURCE_OLE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-embed-source-ole;windows_formatname=\"Embed Source\"", "Embed Source", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_OBJECTDESCRIPTOR_OLE
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-objectdescriptor-ole;windows_formatname=\"Object Descriptor\"", "Object Descriptor", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-objectdescriptor-ole;windows_formatname=\"Object Descriptor\"", "Object Descriptor", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR_OLE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-linkdescriptor-ole;windows_formatname=\"Link Source Descriptor\"", "Link Source Descriptor", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_LINK_SOURCE_OLE
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-link-source-ole;windows_formatname=\"Link Source\"", "Link Source", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-link-source-ole;windows_formatname=\"Link Source\"", "Link Source", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SBA_CTRLDATAEXCHANGE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-ctrldataexchange;windows_formatname=\"SBA-CTRLFORMAT\"", "SBA-CTRLFORMAT", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_OUTPLACE_OBJ
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-outplace-obj;windows_formatname=\"OutPlace Object\"", "OutPlace Object", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-outplace-obj;windows_formatname=\"OutPlace Object\"", "OutPlace Object", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_CNT_OWN_CLIP
m_TranslTable.push_back(FormatEntry("application/x-openoffice-cnt-own-clip;windows_formatname=\"CntOwnClipboard\"", "CntOwnClipboard", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_INET_IMAGE
@@ -481,19 +481,19 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
//SOT_FORMATSTR_ID_NETSCAPE_IMAGE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-netscape-image;windows_formatname=\"Netscape Image Format\"", "Netscape Image Format", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_SBA_FORMEXCHANGE
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-formexchange;windows_formatname=\"SBA_FORMEXCHANGE\"", "SBA_FORMEXCHANGE", NULL, CF_INVALID, CPPUTYPE_DEFAULT)); //SOT_FORMATSTR_ID_SBA_REPORTEXCHANGE
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-formexchange;windows_formatname=\"SBA_FORMEXCHANGE\"", "SBA_FORMEXCHANGE", NULL, CF_INVALID, CPPUTYPE_DEFAULT)); //SOT_FORMATSTR_ID_SBA_REPORTEXCHANGE
m_TranslTable.push_back(FormatEntry("application/x-openoffice-sba-reportexchange;windows_formatname=\"SBA_REPORTEXCHANGE\"", "SBA_REPORTEXCHANGE", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR
m_TranslTable.push_back(FormatEntry("application/x-openoffice-uniformresourcelocator;windows_formatname=\"UniformResourceLocator\"", "UniformResourceLocator", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STARCHARTDOCUMENT_50
m_TranslTable.push_back(FormatEntry("application/x-openoffice-starchartdocument-50;windows_formatname=\"StarChartDocument 5.0\"", "StarChartDocument 5.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_GRAPHOBJ
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-graphobj;windows_formatname=\"Graphic Object\"", "Graphic Object", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
- //SOT_FORMATSTR_ID_STARWRITER_60
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-graphobj;windows_formatname=\"Graphic Object\"", "Graphic Object", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ //SOT_FORMATSTR_ID_STARWRITER_60
m_TranslTable.push_back(FormatEntry("application/vnd.sun.xml.writer", "Writer 6.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STARWRITERWEB_60
m_TranslTable.push_back(FormatEntry("application/vnd.sun.xml.writer.web", "Writer/Web 6.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
- //SOT_FORMATSTR_ID_STARWRITERGLOB_60
+ //SOT_FORMATSTR_ID_STARWRITERGLOB_60
m_TranslTable.push_back(FormatEntry("application/vnd.sun.xml.writer.global", "Writer/Global 6.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_STARWDRAW_60
m_TranslTable.push_back(FormatEntry("application/vnd.sun.xml.draw", "Draw 6.0", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
@@ -512,7 +512,7 @@ void SAL_CALL CDataFormatTranslator::initTranslationTable()
//SOT_FORMATSTR_ID_DUMMY3
m_TranslTable.push_back(FormatEntry("application/x-openoffice-dummy3;windows_formatname=\"SO_DUMMYFORMAT_3\"", "SO_DUMMYFORMAT_3", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
//SOT_FORMATSTR_ID_DUMMY4
- m_TranslTable.push_back(FormatEntry("application/x-openoffice-dummy4;windows_formatname=\"SO_DUMMYFORMAT_4\"", "SO_DUMMYFORMAT_4", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
+ m_TranslTable.push_back(FormatEntry("application/x-openoffice-dummy4;windows_formatname=\"SO_DUMMYFORMAT_4\"", "SO_DUMMYFORMAT_4", NULL, CF_INVALID, CPPUTYPE_DEFAULT));
}
// -------------------------------------------------
diff --git a/dtrans/source/win32/ftransl/ftransl.hxx b/dtrans/source/win32/ftransl/ftransl.hxx
index 7adbfdae61a2..d3da0f8c8698 100644
--- a/dtrans/source/win32/ftransl/ftransl.hxx
+++ b/dtrans/source/win32/ftransl/ftransl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,8 +69,8 @@ struct FormatEntry
);
com::sun::star::datatransfer::DataFlavor aDataFlavor;
- rtl::OUString aNativeFormatName;
- sal_Int32 aStandardFormatId;
+ rtl::OUString aNativeFormatName;
+ sal_Int32 aStandardFormatId;
};
//------------------------------------------------
@@ -99,7 +99,7 @@ public:
// XServiceInfo
//------------------------------------------------
- virtual ::rtl::OUString SAL_CALL getImplementationName( )
+ virtual ::rtl::OUString SAL_CALL getImplementationName( )
throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
@@ -124,8 +124,8 @@ private:
com::sun::star::datatransfer::DataFlavor SAL_CALL mkDataFlv( const rtl::OUString& cnttype, const rtl::OUString& hpname, ::com::sun::star::uno::Type dtype );
private:
- std::vector< FormatEntry > m_TranslTable;
- const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
+ std::vector< FormatEntry > m_TranslTable;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_SrvMgr;
};
diff --git a/dtrans/source/win32/ftransl/ftransl.xml b/dtrans/source/win32/ftransl/ftransl.xml
index 28cddad4bbab..0e23f39aed4d 100644
--- a/dtrans/source/win32/ftransl/ftransl.xml
+++ b/dtrans/source/win32/ftransl/ftransl.xml
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module-description PUBLIC "-//StarOffice//DTD ComponentDescription 1.0//EN" "module-description.dtd">
<module-description xmlns:xlink="http://www.w3.org/1999/xlink">
- <module-name> ftransl </module-name>
+ <module-name> ftransl </module-name>
<component-description>
<author> Tino Rachui </author>
- <name> com.sun.star.comp.datatransfer.DataFormatTranslator </name>
+ <name> com.sun.star.comp.datatransfer.DataFormatTranslator </name>
<description>
The win32 implementation of the datatransfer service.
</description>
- <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
- <language> c++ </language>
+ <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
+ <language> c++ </language>
<status value="beta"/>
- <supported-service> com.sun.star.datatransfer.DataFormatTranslator </supported-service>
- <service-dependency> ... </service-dependency>
- <type> com.sun.star.datatransfer.XDataFormatTranslator </type>
- <type> com.sun.star.lang.XMultiServiceFactory </type>
- <type> com.sun.star.lang.XSingleServiceFactory </type>
- <type> com.sun.star.lang.XServiceInfo </type>
- <type> com.sun.star.lang.XTypeProvider </type>
- <type> com.sun.star.uno.TypeClass </type>
- <type> com.sun.star.uno.XWeak </type>
- <type> com.sun.star.uno.XAggregation </type>
- <type> com.sun.star.registry.XRegistryKey </type>
- <type> com.sun.star.container.XSet </type>
+ <supported-service> com.sun.star.datatransfer.DataFormatTranslator </supported-service>
+ <service-dependency> ... </service-dependency>
+ <type> com.sun.star.datatransfer.XDataFormatTranslator </type>
+ <type> com.sun.star.lang.XMultiServiceFactory </type>
+ <type> com.sun.star.lang.XSingleServiceFactory </type>
+ <type> com.sun.star.lang.XServiceInfo </type>
+ <type> com.sun.star.lang.XTypeProvider </type>
+ <type> com.sun.star.uno.TypeClass </type>
+ <type> com.sun.star.uno.XWeak </type>
+ <type> com.sun.star.uno.XAggregation </type>
+ <type> com.sun.star.registry.XRegistryKey </type>
+ <type> com.sun.star.container.XSet </type>
</component-description>
- <project-build-dependency> cppuhelper </project-build-dependency>
- <project-build-dependency> cppu </project-build-dependency>
- <project-build-dependency> sal </project-build-dependency>
- <runtime-module-dependency> cppuhelper </runtime-module-dependency>
- <runtime-module-dependency> cppu2 </runtime-module-dependency>
- <runtime-module-dependency> sal2 </runtime-module-dependency>
+ <project-build-dependency> cppuhelper </project-build-dependency>
+ <project-build-dependency> cppu </project-build-dependency>
+ <project-build-dependency> sal </project-build-dependency>
+ <runtime-module-dependency> cppuhelper </runtime-module-dependency>
+ <runtime-module-dependency> cppu2 </runtime-module-dependency>
+ <runtime-module-dependency> sal2 </runtime-module-dependency>
</module-description>
diff --git a/dtrans/source/win32/ftransl/ftranslentry.cxx b/dtrans/source/win32/ftransl/ftranslentry.cxx
index 3d5bd247a199..092f740900b7 100644
--- a/dtrans/source/win32/ftransl/ftranslentry.cxx
+++ b/dtrans/source/win32/ftransl/ftranslentry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_dtrans.hxx"
//-----------------------------------------------------------------
-// includes of other projects
+// includes of other projects
//-----------------------------------------------------------------
#include <cppuhelper/factory.hxx>
#include <com/sun/star/container/XSet.hpp>
@@ -46,36 +46,36 @@
// the service names
#define SERVICE_NAME "com.sun.star.datatransfer.DataFormatTranslator"
-// the implementation names
+// the implementation names
#define IMPL_NAME "com.sun.star.datatransfer.DataFormatTranslator"
// the registry key names
// a key under which this service will be registered, Format: -> "/ImplName/UNO/SERVICES/ServiceName"
-// < Implementation-Name ></UNO/SERVICES/>< Service-Name >
+// < Implementation-Name ></UNO/SERVICES/>< Service-Name >
#define REGKEY_NAME "/com.sun.star.datatransfer.DataFormatTranslator/UNO/SERVICES/com.sun.star.datatransfer.DataFormatTranslator"
//-----------------------------------------------------------------------------------------------------------
// namespace directives
//-----------------------------------------------------------------------------------------------------------
-using namespace ::rtl ;
-using namespace ::cppu ;
-using namespace ::com::sun::star::uno ;
-using namespace ::com::sun::star::registry ;
+using namespace ::rtl ;
+using namespace ::cppu ;
+using namespace ::com::sun::star::uno ;
+using namespace ::com::sun::star::registry ;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::datatransfer;
//-----------------------------------------------------------------
// create a static object to initialize the shell9x library
//-----------------------------------------------------------------
-
+
namespace
{
//-----------------------------------------------------------------------------------------------------------
// functions to create a new Clipboad instance; is needed by factory helper implementation
// @param rServiceManager - service manager, useful if the component needs other uno services
- // so we should give it to every UNO-Implementation component
+ // so we should give it to every UNO-Implementation component
//-----------------------------------------------------------------------------------------------------------
Reference< XInterface > SAL_CALL createInstance( const Reference< XMultiServiceFactory >& rServiceManager )
@@ -85,10 +85,10 @@ namespace
}
//-----------------------------------------------------------------------------------------------------------
-// the 3 important functions which will be exported
+// the 3 important functions which will be exported
//-----------------------------------------------------------------------------------------------------------
-extern "C"
+extern "C"
{
//----------------------------------------------------------------------
@@ -116,13 +116,13 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
{
try
{
- Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
+ Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
pXNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( REGKEY_NAME ) ) );
bRetVal = sal_True;
}
catch( InvalidRegistryException& )
- {
- OSL_ENSURE(sal_False, "InvalidRegistryException caught");
+ {
+ OSL_ENSURE(sal_False, "InvalidRegistryException caught");
bRetVal = sal_False;
}
}
@@ -131,7 +131,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
}
//----------------------------------------------------------------------
-// component_getFactory
+// component_getFactory
// returns a factory to create XFilePicker-Services
//----------------------------------------------------------------------
@@ -142,8 +142,8 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, IMPL_NAME ) ) )
{
Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICE_NAME ) );
-
+ aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICE_NAME ) );
+
Reference< XSingleServiceFactory > xFactory ( createOneInstanceFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
OUString::createFromAscii( pImplName ),
@@ -153,7 +153,7 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
{
xFactory->acquire();
pRet = xFactory.get();
- }
+ }
}
return pRet;
diff --git a/dtrans/source/win32/misc/ImplHelper.cxx b/dtrans/source/win32/misc/ImplHelper.cxx
index a04c588977d1..30886d72d456 100644
--- a/dtrans/source/win32/misc/ImplHelper.cxx
+++ b/dtrans/source/win32/misc/ImplHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ using ::rtl::OUString;
using ::rtl::OString;
//------------------------------------------------------------------------
-// returns a windows codepage appropriate to the
+// returns a windows codepage appropriate to the
// given mime charset parameter value
//------------------------------------------------------------------------
@@ -76,10 +76,10 @@ sal_uInt32 SAL_CALL getWinCPFromMimeCharset( const OUString& charset )
if ( charset.getLength( ) )
{
- OString osCharset(
+ OString osCharset(
charset.getStr( ), charset.getLength( ), RTL_TEXTENCODING_ASCII_US );
- rtl_TextEncoding txtEnc =
+ rtl_TextEncoding txtEnc =
rtl_getTextEncodingFromMimeCharset( osCharset.getStr( ) );
sal_uInt32 winChrs = rtl_getBestWindowsCharsetFromTextEncoding( txtEnc );
@@ -87,10 +87,10 @@ sal_uInt32 SAL_CALL getWinCPFromMimeCharset( const OUString& charset )
CHARSETINFO chrsInf;
sal_Bool bRet = TranslateCharsetInfo( (DWORD*)winChrs, &chrsInf, TCI_SRCCHARSET ) ?
sal_True : sal_False;
-
+
// if one of the above functions fails
// we will return the current ANSI codepage
- // of this thread
+ // of this thread
if ( bRet )
winCP = chrsInf.ciACP;
}
@@ -106,10 +106,10 @@ sal_uInt32 SAL_CALL getWinCPFromMimeCharset( const OUString& charset )
OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype )
{
OSL_ASSERT( IsValidLocale( lcid, LCID_SUPPORTED ) );
-
- // we set an default value
+
+ // we set an default value
OUString winCP;
-
+
// set an default value
if ( LOCALE_IDEFAULTCODEPAGE == lctype )
{
@@ -125,14 +125,14 @@ OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype )
// we use the GetLocaleInfoA because don't want to provide
// a unicode wrapper function for Win9x in sal/systools
char buff[6];
- sal_Int32 nResult = GetLocaleInfoA(
+ sal_Int32 nResult = GetLocaleInfoA(
lcid, lctype | LOCALE_USE_CP_ACP, buff, sizeof( buff ) );
-
+
OSL_ASSERT( nResult );
if ( nResult )
{
- sal_Int32 len = MultiByteToWideChar(
+ sal_Int32 len = MultiByteToWideChar(
CP_ACP, 0, buff, -1, NULL, 0 );
OSL_ASSERT( len > 0 );
@@ -141,7 +141,7 @@ OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype )
if ( NULL != lpwchBuff.get( ) )
{
- len = MultiByteToWideChar(
+ len = MultiByteToWideChar(
CP_ACP, 0, buff, -1, reinterpret_cast<LPWSTR>(lpwchBuff.get( )), len );
winCP = OUString( lpwchBuff.get( ), (len - 1) );
@@ -153,7 +153,7 @@ OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype )
//--------------------------------------------------
// returns a mime charset parameter value appropriate
-// to the given codepage, optional a prefix can be
+// to the given codepage, optional a prefix can be
// given, e.g. "windows-" or "cp"
//--------------------------------------------------
@@ -163,7 +163,7 @@ OUString SAL_CALL getMimeCharsetFromWinCP( sal_uInt32 cp, const OUString& aPrefi
}
//--------------------------------------------------
-// returns a mime charset parameter value appropriate
+// returns a mime charset parameter value appropriate
// to the given locale id and locale type, optional a
// prefix can be given, e.g. "windows-" or "cp"
//--------------------------------------------------
@@ -186,10 +186,10 @@ sal_Bool SAL_CALL IsOEMCP( sal_uInt32 codepage )
775, 850, 852, 855, 857, 860,
861, 862, 863, 864, 865, 866,
869, 874, 932, 936, 949, 950, 1361 };
-
+
for ( sal_Int8 i = 0; i < ( sizeof( arrOEMCP )/sizeof( sal_uInt32 ) ); ++i )
if ( arrOEMCP[i] == codepage )
- return sal_True;
+ return sal_True;
return sal_False;
}
@@ -280,14 +280,14 @@ DVTARGETDEVICE* SAL_CALL CopyTargetDevice( DVTARGETDEVICE* ptdSrc )
if ( NULL != ptdSrc )
{
ptdDest = static_cast< DVTARGETDEVICE* >( CoTaskMemAlloc( ptdSrc->tdSize ) );
- rtl_copyMemory( ptdDest, ptdSrc, static_cast< size_t >( ptdSrc->tdSize ) );
+ rtl_copyMemory( ptdDest, ptdSrc, static_cast< size_t >( ptdSrc->tdSize ) );
}
}
#ifdef __MINGW32__
han.Reset();
#else
__except( EXCEPTION_EXECUTE_HANDLER )
- {
+ {
}
#endif
@@ -316,9 +316,9 @@ DVTARGETDEVICE* SAL_CALL CopyTargetDevice( DVTARGETDEVICE* ptdSrc )
// petcSrc pointer to source FORMATETC
//
// Return Value:
-// returns TRUE if copy was successful;
-// retuns FALSE if not successful, e.g. one or both of the pointers
-// were invalid or the pointers were equal
+// returns TRUE if copy was successful;
+// retuns FALSE if not successful, e.g. one or both of the pointers
+// were invalid or the pointers were equal
//-------------------------------------------------------------------------
sal_Bool SAL_CALL CopyFormatEtc( LPFORMATETC petcDest, LPFORMATETC petcSrc )
@@ -339,15 +339,15 @@ sal_Bool SAL_CALL CopyFormatEtc( LPFORMATETC petcDest, LPFORMATETC petcSrc )
{
petcDest->cfFormat = petcSrc->cfFormat;
-
+
petcDest->ptd = NULL;
if ( NULL != petcSrc->ptd )
petcDest->ptd = CopyTargetDevice(petcSrc->ptd);
-
+
petcDest->dwAspect = petcSrc->dwAspect;
petcDest->lindex = petcSrc->lindex;
petcDest->tymed = petcSrc->tymed;
-
+
bRet = sal_True;
}
}
@@ -368,9 +368,9 @@ sal_Bool SAL_CALL CopyFormatEtc( LPFORMATETC petcDest, LPFORMATETC petcSrc )
//-------------------------------------------------------------------------
// returns:
-// 1 for exact match,
-// 0 for no match,
-// -1 for partial match (which is defined to mean the left is a subset
+// 1 for exact match,
+// 0 for no match,
+// -1 for partial match (which is defined to mean the left is a subset
// of the right: fewer aspects, null target device, fewer medium).
//-------------------------------------------------------------------------
@@ -390,7 +390,7 @@ sal_Int32 SAL_CALL CompareFormatEtc( const FORMATETC* pFetcLhs, const FORMATETC*
#endif
if ( pFetcLhs != pFetcRhs )
- if ( ( pFetcLhs->cfFormat != pFetcRhs->cfFormat ) ||
+ if ( ( pFetcLhs->cfFormat != pFetcRhs->cfFormat ) ||
( pFetcLhs->lindex != pFetcRhs->lindex ) ||
!CompareTargetDevice( pFetcLhs->ptd, pFetcRhs->ptd ) )
{
@@ -467,10 +467,10 @@ sal_Bool SAL_CALL CompareTargetDevice( DVTARGETDEVICE* ptdLeft, DVTARGETDEVICE*
// one ot the two is NULL
else if ( ( NULL != ptdRight ) && ( NULL != ptdLeft ) )
+
+ if ( ptdLeft->tdSize == ptdRight->tdSize )
- if ( ptdLeft->tdSize == ptdRight->tdSize )
-
- if ( rtl_compareMemory( ptdLeft, ptdRight, ptdLeft->tdSize ) == 0 )
+ if ( rtl_compareMemory( ptdLeft, ptdRight, ptdLeft->tdSize ) == 0 )
bRet = sal_True;
}
#ifdef __MINGW32__
diff --git a/dtrans/source/win32/misc/ImplHelper.hxx b/dtrans/source/win32/misc/ImplHelper.hxx
index 9255eb195561..ea2416f001c7 100644
--- a/dtrans/source/win32/misc/ImplHelper.hxx
+++ b/dtrans/source/win32/misc/ImplHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,11 +59,11 @@ DVTARGETDEVICE* SAL_CALL CopyTargetDevice(DVTARGETDEVICE* ptdSrc);
// some codepage helper functions
//--------------------------------------------------
-// returns a windows codepage appropriate to the
+// returns a windows codepage appropriate to the
// given mime charset parameter value
//--------------------------------------------------
-sal_uInt32 SAL_CALL getWinCPFromMimeCharset(
+sal_uInt32 SAL_CALL getWinCPFromMimeCharset(
const rtl::OUString& charset );
//--------------------------------------------------
@@ -71,25 +71,25 @@ sal_uInt32 SAL_CALL getWinCPFromMimeCharset(
// given locale and locale type
//--------------------------------------------------
-rtl::OUString SAL_CALL getWinCPFromLocaleId(
+rtl::OUString SAL_CALL getWinCPFromLocaleId(
LCID lcid, LCTYPE lctype );
//--------------------------------------------------
// returns a mime charset parameter value appropriate
-// to the given codepage, optional a prefix can be
+// to the given codepage, optional a prefix can be
// given, e.g. "windows-" or "cp"
//--------------------------------------------------
-rtl::OUString SAL_CALL getMimeCharsetFromWinCP(
+rtl::OUString SAL_CALL getMimeCharsetFromWinCP(
sal_uInt32 cp, const rtl::OUString& aPrefix );
//--------------------------------------------------
-// returns a mime charset parameter value appropriate
+// returns a mime charset parameter value appropriate
// to the given locale id and locale type, optional a
// prefix can be given, e.g. "windows-" or "cp"
//--------------------------------------------------
-rtl::OUString SAL_CALL getMimeCharsetFromLocaleId(
+rtl::OUString SAL_CALL getMimeCharsetFromLocaleId(
LCID lcid, LCTYPE lctype, const rtl::OUString& aPrefix );
//-----------------------------------------------------
diff --git a/dtrans/source/win32/misc/WinClip.hxx b/dtrans/source/win32/misc/WinClip.hxx
index 139eac50cfff..4858f0cef329 100644
--- a/dtrans/source/win32/misc/WinClip.hxx
+++ b/dtrans/source/win32/misc/WinClip.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/dtrans/source/win32/mtaole/MtaOleClipb.cxx b/dtrans/source/win32/mtaole/MtaOleClipb.cxx
index d72eb0451332..2636208b9df0 100644
--- a/dtrans/source/win32/mtaole/MtaOleClipb.cxx
+++ b/dtrans/source/win32/mtaole/MtaOleClipb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,14 +36,14 @@
the ole clipboard, which runs only in an sta thread.
The consequence is that callback from the ole clipboard are in the
context of this sta thread. In the soffice applications this may lead
- to problems because they all use the one and only mutex called
+ to problems because they all use the one and only mutex called
SolarMutex.
- In order to transfer clipboard requests to our sta thread we use a
+ In order to transfer clipboard requests to our sta thread we use a
hidden window an forward these requests via window messages.
*/
#ifdef _MSC_VER
-#pragma warning( disable : 4786 ) // identifier was truncated to 'number'
+#pragma warning( disable : 4786 ) // identifier was truncated to 'number'
// characters in the debug information
#endif
@@ -62,7 +62,7 @@
#endif
//----------------------------------------------------------------
-// namespace directives
+// namespace directives
//----------------------------------------------------------------
using osl::Condition;
@@ -71,7 +71,7 @@ using osl::MutexGuard;
using osl::ClearableMutexGuard;
//----------------------------------------------------------------
-// defines
+// defines
//----------------------------------------------------------------
namespace /* private */
@@ -84,26 +84,26 @@ namespace /* private */
//--------------------------------------------------------
const sal_uInt32 MSG_SETCLIPBOARD = WM_USER + 0x0001;
- const sal_uInt32 MSG_GETCLIPBOARD = WM_USER + 0x0002;
- const sal_uInt32 MSG_REGCLIPVIEWER = WM_USER + 0x0003;
- const sal_uInt32 MSG_FLUSHCLIPBOARD = WM_USER + 0x0004;
- const sal_uInt32 MSG_SHUTDOWN = WM_USER + 0x0005;
+ const sal_uInt32 MSG_GETCLIPBOARD = WM_USER + 0x0002;
+ const sal_uInt32 MSG_REGCLIPVIEWER = WM_USER + 0x0003;
+ const sal_uInt32 MSG_FLUSHCLIPBOARD = WM_USER + 0x0004;
+ const sal_uInt32 MSG_SHUTDOWN = WM_USER + 0x0005;
- const sal_uInt32 MAX_WAITTIME = 10000; // msec
- const sal_uInt32 MAX_WAIT_SHUTDOWN = 10000; // msec
- const sal_uInt32 MAX_CLIPEVENT_PROCESSING_TIME = 5000; // msec
+ const sal_uInt32 MAX_WAITTIME = 10000; // msec
+ const sal_uInt32 MAX_WAIT_SHUTDOWN = 10000; // msec
+ const sal_uInt32 MAX_CLIPEVENT_PROCESSING_TIME = 5000; // msec
const sal_Bool MANUAL_RESET = sal_True;
const sal_Bool AUTO_RESET = sal_False;
const sal_Bool INIT_NONSIGNALED = sal_False;
-
+
//------------------------------------------------------
- /* Cannot use osl conditions because they are blocking
+ /* Cannot use osl conditions because they are blocking
without waking up on messages sent by another thread
this leads to deadlocks because we are blocking the
- communication between inter-thread marshalled COM
+ communication between inter-thread marshalled COM
pointers.
- COM Proxy-Stub communication uses SendMessages for
+ COM Proxy-Stub communication uses SendMessages for
synchronization purposes.
*/
class Win32Condition
@@ -113,55 +113,55 @@ namespace /* private */
Win32Condition()
{
m_hEvent = CreateEvent(
- 0, /* no security */
- true, /* manual reset */
+ 0, /* no security */
+ true, /* manual reset */
false, /* initial state not signaled */
- 0); /* automatic name */
+ 0); /* automatic name */
}
-
- // dtor
+
+ // dtor
~Win32Condition()
{
CloseHandle(m_hEvent);
}
-
+
// wait infinite for event be signaled
// leave messages sent through
void wait()
{
while(1)
{
- DWORD dwResult =
+ DWORD dwResult =
MsgWaitForMultipleObjects(1, &m_hEvent, FALSE, INFINITE, QS_SENDMESSAGE);
-
- switch (dwResult)
+
+ switch (dwResult)
{
case WAIT_OBJECT_0:
- return;
+ return;
case WAIT_OBJECT_0 + 1:
{
- /* PeekMessage processes all messages in the SendMessage
+ /* PeekMessage processes all messages in the SendMessage
queue that's what we want, messages from the PostMessage
queue stay untouched */
- MSG msg;
+ MSG msg;
PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE);
-
+
break;
- }
+ }
}
}
}
-
+
// reset the event
void set()
{
SetEvent(m_hEvent);
}
-
+
private:
HANDLE m_hEvent;
-
+
// prevent copy/assignment
private:
Win32Condition(const Win32Condition&);
@@ -174,14 +174,14 @@ namespace /* private */
struct MsgCtx
{
- Win32Condition aCondition;
- HRESULT hr;
+ Win32Condition aCondition;
+ HRESULT hr;
};
-
+
} /* namespace private */
//----------------------------------------------------------------
-// static member initialization
+// static member initialization
//----------------------------------------------------------------
CMtaOleClipboard* CMtaOleClipboard::s_theMtaOleClipboardInst = NULL;
@@ -195,13 +195,13 @@ HRESULT MarshalIDataObjectInStream( IDataObject* pIDataObject, LPSTREAM* ppStrea
{
OSL_ASSERT( NULL != pIDataObject );
OSL_ASSERT( NULL != ppStream );
-
+
*ppStream = NULL;
return CoMarshalInterThreadInterfaceInStream(
__uuidof(IDataObject), //The IID of inteface to be marshaled
- pIDataObject, //The interface pointer
- ppStream //IStream pointer
- );
+ pIDataObject, //The interface pointer
+ ppStream //IStream pointer
+ );
}
//--------------------------------------------------------------------
@@ -213,12 +213,12 @@ HRESULT UnmarshalIDataObjectAndReleaseStream( LPSTREAM lpStream, IDataObject** p
{
OSL_ASSERT( NULL != lpStream );
OSL_ASSERT( NULL != ppIDataObject );
-
+
*ppIDataObject = NULL;
return CoGetInterfaceAndReleaseStream(
- lpStream,
- __uuidof(IDataObject),
- reinterpret_cast<LPVOID*>(ppIDataObject));
+ lpStream,
+ __uuidof(IDataObject),
+ reinterpret_cast<LPVOID*>(ppIDataObject));
}
//--------------------------------------------------------------------
@@ -251,8 +251,8 @@ public:
~CAutoComInit( )
{
/*
- we only call CoUninitialize when
- CoInitailize returned S_FALSE, what
+ we only call CoUninitialize when
+ CoInitailize returned S_FALSE, what
means that com was already initialize
for that thread so we keep the balance
if CoInitialize returned S_OK what means
@@ -272,10 +272,10 @@ private:
// ctor
//--------------------------------------------------------------------
-CMtaOleClipboard::CMtaOleClipboard( ) :
+CMtaOleClipboard::CMtaOleClipboard( ) :
m_hOleThread( NULL ),
m_uOleThreadId( 0 ),
- m_hEvtThrdReady( NULL ),
+ m_hEvtThrdReady( NULL ),
m_hwndMtaOleReqWnd( NULL ),
m_MtaOleReqWndClassAtom( 0 ),
m_hwndNextClipViewer( NULL ),
@@ -284,15 +284,15 @@ CMtaOleClipboard::CMtaOleClipboard( ) :
m_hClipboardChangedEvent( m_hClipboardChangedNotifierEvents[0] ),
m_hTerminateClipboardChangedNotifierEvent( m_hClipboardChangedNotifierEvents[1] ),
m_ClipboardChangedEventCount( 0 )
-{
+{
// signals that the thread was successfully setup
- m_hEvtThrdReady = CreateEventA( 0, MANUAL_RESET, INIT_NONSIGNALED, NULL );
-
+ m_hEvtThrdReady = CreateEventA( 0, MANUAL_RESET, INIT_NONSIGNALED, NULL );
+
OSL_ASSERT( NULL != m_hEvtThrdReady );
s_theMtaOleClipboardInst = this;
- m_hOleThread = (HANDLE)_beginthreadex(
+ m_hOleThread = (HANDLE)_beginthreadex(
NULL, 0, CMtaOleClipboard::oleThreadProc, this, 0, &m_uOleThreadId );
OSL_ASSERT( NULL != m_hOleThread );
@@ -318,7 +318,7 @@ CMtaOleClipboard::CMtaOleClipboard( ) :
//--------------------------------------------------------------------
CMtaOleClipboard::~CMtaOleClipboard( )
-{
+{
// block calling threads out
if ( NULL != m_hEvtThrdReady )
ResetEvent( m_hEvtThrdReady );
@@ -327,7 +327,7 @@ CMtaOleClipboard::~CMtaOleClipboard( )
m_bRunClipboardNotifierThread = sal_False;
SetEvent( m_hTerminateClipboardChangedNotifierEvent );
- sal_uInt32 dwResult = WaitForSingleObject(
+ sal_uInt32 dwResult = WaitForSingleObject(
m_hClipboardChangedNotifierThread, MAX_WAIT_SHUTDOWN );
OSL_ENSURE( dwResult == WAIT_OBJECT_0, "clipboard notifier thread could not terminate" );
@@ -342,10 +342,10 @@ CMtaOleClipboard::~CMtaOleClipboard( )
CloseHandle( m_hClipboardChangedNotifierEvents[1] );
// end the thread
- // because DestroyWindow can only be called
+ // because DestroyWindow can only be called
// from within the thread that created the window
- sendMessage( MSG_SHUTDOWN,
- static_cast< WPARAM >( 0 ),
+ sendMessage( MSG_SHUTDOWN,
+ static_cast< WPARAM >( 0 ),
static_cast< LPARAM >( 0 ) );
// wait for thread shutdown
@@ -368,7 +368,7 @@ CMtaOleClipboard::~CMtaOleClipboard( )
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
HRESULT CMtaOleClipboard::flushClipboard( )
@@ -382,19 +382,19 @@ HRESULT CMtaOleClipboard::flushClipboard( )
OSL_ENSURE( GetCurrentThreadId( ) != m_uOleThreadId, \
"flushClipboard from within clipboard sta thread called" );
- MsgCtx aMsgCtx;
-
- postMessage( MSG_FLUSHCLIPBOARD,
- static_cast< WPARAM >( 0 ),
- reinterpret_cast< LPARAM >( &aMsgCtx ) );
+ MsgCtx aMsgCtx;
+ postMessage( MSG_FLUSHCLIPBOARD,
+ static_cast< WPARAM >( 0 ),
+ reinterpret_cast< LPARAM >( &aMsgCtx ) );
+
aMsgCtx.aCondition.wait( /* infinite */ );
-
+
return aMsgCtx.hr;
}
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
HRESULT CMtaOleClipboard::getClipboard( IDataObject** ppIDataObject )
@@ -412,25 +412,25 @@ HRESULT CMtaOleClipboard::getClipboard( IDataObject** ppIDataObject )
LPSTREAM lpStream;
HRESULT hr = E_FAIL;
-
+
*ppIDataObject = NULL;
-
- MsgCtx aMsgCtx;
-
+
+ MsgCtx aMsgCtx;
+
postMessage( MSG_GETCLIPBOARD,
reinterpret_cast< WPARAM >( &lpStream ),
reinterpret_cast< LPARAM >( &aMsgCtx ) );
-
+
aMsgCtx.aCondition.wait( /* infinite */ );
hr = aMsgCtx.hr;
-
+
if ( SUCCEEDED( hr ) )
{
hr = UnmarshalIDataObjectAndReleaseStream( lpStream, ppIDataObject );
OSL_ENSURE( SUCCEEDED( hr ), "unmarshalling clipboard data object failed" );
}
-
+
return hr;
}
@@ -440,21 +440,21 @@ HRESULT CMtaOleClipboard::getClipboard( IDataObject** ppIDataObject )
//--------------------------------------------------------------------
HRESULT CMtaOleClipboard::setClipboard( IDataObject* pIDataObject )
-{
+{
if ( !WaitForThreadReady( ) )
{
OSL_ENSURE( sal_False, "clipboard sta thread not ready" );
return E_FAIL;
}
-
+
CAutoComInit comAutoInit;
-
+
OSL_ENSURE( GetCurrentThreadId( ) != m_uOleThreadId, "setClipboard from within the clipboard sta thread called" );
-
+
// because we marshall this request
// into the sta thread we better
- // acquire the interface here so
- // that the object will not be
+ // acquire the interface here so
+ // that the object will not be
// destroyed before the ole clipboard
// can acquire it
// remember: pIDataObject may be NULL
@@ -463,12 +463,12 @@ HRESULT CMtaOleClipboard::setClipboard( IDataObject* pIDataObject )
if ( pIDataObject )
pIDataObject->AddRef( );
- postMessage(
- MSG_SETCLIPBOARD,
- reinterpret_cast< WPARAM >( pIDataObject ),
+ postMessage(
+ MSG_SETCLIPBOARD,
+ reinterpret_cast< WPARAM >( pIDataObject ),
0 );
-
- // because this is an asynchronous function
+
+ // because this is an asynchronous function
// the return value is useless
return S_OK;
}
@@ -489,14 +489,14 @@ sal_Bool CMtaOleClipboard::registerClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfncC
OSL_ENSURE( GetCurrentThreadId( ) != m_uOleThreadId, "registerClipViewer from within the OleThread called" );
- MsgCtx aMsgCtx;
+ MsgCtx aMsgCtx;
postMessage( MSG_REGCLIPVIEWER,
reinterpret_cast<WPARAM>( pfncClipViewerCallback ),
reinterpret_cast<LPARAM>( &aMsgCtx ) );
-
+
aMsgCtx.aCondition.wait( /* infinite */ );
-
+
return bRet;
}
@@ -505,7 +505,7 @@ sal_Bool CMtaOleClipboard::registerClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfncC
//--------------------------------------------------------------------
sal_Bool CMtaOleClipboard::onRegisterClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfncClipViewerCallback )
-{
+{
sal_Bool bRet = sal_True;
// we need exclusive access because the clipboard changed notifier
@@ -515,7 +515,7 @@ sal_Bool CMtaOleClipboard::onRegisterClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfn
// register if not yet done
if ( ( NULL != pfncClipViewerCallback ) && ( NULL == m_pfncClipViewerCallback ) )
{
- // SetClipboardViewer sends a WM_DRAWCLIPBOARD message we ignore
+ // SetClipboardViewer sends a WM_DRAWCLIPBOARD message we ignore
// this message if we register ourself as clip viewer
m_bInRegisterClipViewer = sal_True;
m_hwndNextClipViewer = SetClipboardViewer( m_hwndMtaOleReqWnd );
@@ -535,38 +535,38 @@ sal_Bool CMtaOleClipboard::onRegisterClipViewer( LPFNC_CLIPVIEWER_CALLBACK_t pfn
// unregister if input parameter is NULL and we previously registered
// as clipboard viewer
ChangeClipboardChain( m_hwndMtaOleReqWnd, m_hwndNextClipViewer );
- m_hwndNextClipViewer = NULL;
+ m_hwndNextClipViewer = NULL;
}
return bRet;
}
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
LRESULT CMtaOleClipboard::onSetClipboard( IDataObject* pIDataObject )
-{
+{
return static_cast<LRESULT>( OleSetClipboard( pIDataObject ) );
}
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
LRESULT CMtaOleClipboard::onGetClipboard( LPSTREAM* ppStream )
-{
+{
OSL_ASSERT(NULL != ppStream);
IDataObjectPtr pIDataObject;
-
+
// forward the request to the OleClipboard
HRESULT hr = OleGetClipboard( &pIDataObject );
if ( SUCCEEDED( hr ) )
{
hr = MarshalIDataObjectInStream(pIDataObject.get(), ppStream);
OSL_ENSURE(SUCCEEDED(hr), "marshalling cliboard data object failed");
- }
+ }
return static_cast<LRESULT>(hr);
}
@@ -575,7 +575,7 @@ LRESULT CMtaOleClipboard::onGetClipboard( LPSTREAM* ppStream )
//--------------------------------------------------------------------
LRESULT CMtaOleClipboard::onFlushClipboard( )
-{
+{
return static_cast<LRESULT>( OleFlushClipboard( ) );
}
@@ -590,11 +590,11 @@ LRESULT CMtaOleClipboard::onChangeCBChain( HWND hWndRemove, HWND hWndNext )
else if ( IsWindow( m_hwndNextClipViewer ) )
{
// forward the message to the next one
- DWORD dwResult;
- SendMessageTimeoutA(
- m_hwndNextClipViewer,
- WM_CHANGECBCHAIN,
- reinterpret_cast<WPARAM>(hWndRemove),
+ DWORD dwResult;
+ SendMessageTimeoutA(
+ m_hwndNextClipViewer,
+ WM_CHANGECBCHAIN,
+ reinterpret_cast<WPARAM>(hWndRemove),
reinterpret_cast<LPARAM>(hWndNext),
SMTO_BLOCK,
MAX_CLIPEVENT_PROCESSING_TIME,
@@ -615,7 +615,7 @@ LRESULT CMtaOleClipboard::onDrawClipboard( )
if ( !m_bInRegisterClipViewer )
{
ClearableMutexGuard aGuard( m_ClipboardChangedEventCountMutex );
-
+
m_ClipboardChangedEventCount++;
SetEvent( m_hClipboardChangedEvent );
@@ -626,9 +626,9 @@ LRESULT CMtaOleClipboard::onDrawClipboard( )
if ( IsWindow( m_hwndNextClipViewer ) )
{
DWORD dwResult;
- SendMessageTimeoutA(
- m_hwndNextClipViewer,
- WM_DRAWCLIPBOARD,
+ SendMessageTimeoutA(
+ m_hwndNextClipViewer,
+ WM_DRAWCLIPBOARD,
static_cast< WPARAM >( 0 ),
static_cast< LPARAM >( 0 ),
SMTO_BLOCK,
@@ -640,7 +640,7 @@ LRESULT CMtaOleClipboard::onDrawClipboard( )
}
//--------------------------------------------------------------------
-// SendMessage so we don't need to supply the HWND if we send
+// SendMessage so we don't need to supply the HWND if we send
// something to our wrapped window
//--------------------------------------------------------------------
@@ -650,7 +650,7 @@ LRESULT CMtaOleClipboard::sendMessage( UINT msg, WPARAM wParam, LPARAM lParam )
}
//--------------------------------------------------------------------
-// PostMessage so we don't need to supply the HWND if we send
+// PostMessage so we don't need to supply the HWND if we send
// something to our wrapped window
//--------------------------------------------------------------------
@@ -667,18 +667,18 @@ sal_Bool CMtaOleClipboard::postMessage( UINT msg, WPARAM wParam, LPARAM lParam )
LRESULT CALLBACK CMtaOleClipboard::mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
LRESULT lResult = 0;
-
+
// get a connection to the class-instance via the static member
CMtaOleClipboard* pImpl = CMtaOleClipboard::s_theMtaOleClipboardInst;
OSL_ASSERT( NULL != pImpl );
-
+
switch( uMsg )
{
- case MSG_SETCLIPBOARD:
- {
+ case MSG_SETCLIPBOARD:
+ {
IDataObject* pIDataObject = reinterpret_cast< IDataObject* >( wParam );
pImpl->onSetClipboard( pIDataObject );
-
+
// in setClipboard we did acquire the
// interface pointer in order to prevent
// destruction of the object before the
@@ -692,8 +692,8 @@ LRESULT CALLBACK CMtaOleClipboard::mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARA
break;
case MSG_GETCLIPBOARD:
- {
- MsgCtx* aMsgCtx = reinterpret_cast< MsgCtx* >( lParam );
+ {
+ MsgCtx* aMsgCtx = reinterpret_cast< MsgCtx* >( lParam );
OSL_ASSERT( aMsgCtx );
aMsgCtx->hr = pImpl->onGetClipboard( reinterpret_cast< LPSTREAM* >(wParam) );
@@ -701,19 +701,19 @@ LRESULT CALLBACK CMtaOleClipboard::mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARA
}
break;
- case MSG_FLUSHCLIPBOARD:
- {
- MsgCtx* aMsgCtx = reinterpret_cast< MsgCtx* >( lParam );
+ case MSG_FLUSHCLIPBOARD:
+ {
+ MsgCtx* aMsgCtx = reinterpret_cast< MsgCtx* >( lParam );
OSL_ASSERT( aMsgCtx );
- aMsgCtx->hr = pImpl->onFlushClipboard( );
+ aMsgCtx->hr = pImpl->onFlushClipboard( );
aMsgCtx->aCondition.set( );
}
break;
case MSG_REGCLIPVIEWER:
- {
- MsgCtx* aMsgCtx = reinterpret_cast< MsgCtx* >( lParam );
+ {
+ MsgCtx* aMsgCtx = reinterpret_cast< MsgCtx* >( lParam );
OSL_ASSERT( aMsgCtx );
pImpl->onRegisterClipViewer( reinterpret_cast<CMtaOleClipboard::LPFNC_CLIPVIEWER_CALLBACK_t>(wParam) );
@@ -722,7 +722,7 @@ LRESULT CALLBACK CMtaOleClipboard::mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARA
break;
case WM_CHANGECBCHAIN:
- lResult = pImpl->onChangeCBChain(
+ lResult = pImpl->onChangeCBChain(
reinterpret_cast< HWND >( wParam ), reinterpret_cast< HWND >( lParam ) );
break;
@@ -735,53 +735,53 @@ LRESULT CALLBACK CMtaOleClipboard::mtaOleReqWndProc( HWND hWnd, UINT uMsg, WPARA
break;
// force the sta thread to end
- case WM_DESTROY:
+ case WM_DESTROY:
PostQuitMessage( 0 );
break;
default:
lResult = DefWindowProcA( hWnd, uMsg, wParam, lParam );
break;
- }
-
+ }
+
return lResult;
}
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
void CMtaOleClipboard::createMtaOleReqWnd( )
{
WNDCLASSEXA wcex;
-
+
HINSTANCE hInst = GetModuleHandleA( CLIPSRV_DLL_NAME );
OSL_ENSURE( NULL != hInst, "The name of the clipboard service dll must have changed" );
ZeroMemory( &wcex, sizeof( WNDCLASSEXA ) );
- wcex.cbSize = sizeof(WNDCLASSEXA);
- wcex.style = 0;
- wcex.lpfnWndProc = static_cast< WNDPROC >( CMtaOleClipboard::mtaOleReqWndProc );
- wcex.cbClsExtra = 0;
- wcex.cbWndExtra = 0;
- wcex.hInstance = hInst;
- wcex.hIcon = NULL;
- wcex.hCursor = NULL;
- wcex.hbrBackground = NULL;
- wcex.lpszMenuName = NULL;
- wcex.lpszClassName = g_szWndClsName;
- wcex.hIconSm = NULL;
+ wcex.cbSize = sizeof(WNDCLASSEXA);
+ wcex.style = 0;
+ wcex.lpfnWndProc = static_cast< WNDPROC >( CMtaOleClipboard::mtaOleReqWndProc );
+ wcex.cbClsExtra = 0;
+ wcex.cbWndExtra = 0;
+ wcex.hInstance = hInst;
+ wcex.hIcon = NULL;
+ wcex.hCursor = NULL;
+ wcex.hbrBackground = NULL;
+ wcex.lpszMenuName = NULL;
+ wcex.lpszClassName = g_szWndClsName;
+ wcex.hIconSm = NULL;
m_MtaOleReqWndClassAtom = RegisterClassExA( &wcex );
if ( 0 != m_MtaOleReqWndClassAtom )
- m_hwndMtaOleReqWnd = CreateWindowA(
+ m_hwndMtaOleReqWnd = CreateWindowA(
g_szWndClsName, NULL, 0, 0, 0, 0, 0, NULL, NULL, hInst, NULL );
}
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
unsigned int CMtaOleClipboard::run( )
@@ -802,9 +802,9 @@ unsigned int CMtaOleClipboard::run( )
SetEvent( m_hEvtThrdReady );
// pumping messages
- MSG msg;
+ MSG msg;
while( GetMessageA( &msg, NULL, 0, 0 ) )
- DispatchMessageA( &msg );
+ DispatchMessageA( &msg );
nRet = 0;
}
@@ -817,20 +817,20 @@ unsigned int CMtaOleClipboard::run( )
}
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
unsigned int WINAPI CMtaOleClipboard::oleThreadProc( LPVOID pParam )
{
- CMtaOleClipboard* pInst =
+ CMtaOleClipboard* pInst =
reinterpret_cast<CMtaOleClipboard*>( pParam );
OSL_ASSERT( NULL != pInst );
-
+
return pInst->run( );
}
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
unsigned int WINAPI CMtaOleClipboard::clipboardChangedNotifierThreadProc( LPVOID pParam )
@@ -843,7 +843,7 @@ unsigned int WINAPI CMtaOleClipboard::clipboardChangedNotifierThreadProc( LPVOID
// assuming we don't need a lock for
// a boolean variable like m_bRun...
while ( pInst->m_bRunClipboardNotifierThread )
- {
+ {
// wait for clipboard changed or terminate event
WaitForMultipleObjects( 2, pInst->m_hClipboardChangedNotifierEvents, false, INFINITE );
@@ -863,18 +863,18 @@ unsigned int WINAPI CMtaOleClipboard::clipboardChangedNotifierThreadProc( LPVOID
// notify all clipboard listener
if ( pInst->m_pfncClipViewerCallback )
pInst->m_pfncClipViewerCallback( );
- }
+ }
else
aGuard.clear( );
- }
-
+ }
+
CoUninitialize( );
return ( 0 );
}
//--------------------------------------------------------------------
-//
+//
//--------------------------------------------------------------------
inline
@@ -884,7 +884,7 @@ sal_Bool CMtaOleClipboard::WaitForThreadReady( ) const
if ( NULL != m_hEvtThrdReady )
{
- DWORD dwResult = WaitForSingleObject(
+ DWORD dwResult = WaitForSingleObject(
m_hEvtThrdReady, MAX_WAITTIME );
bRet = ( dwResult == WAIT_OBJECT_0 );
}
diff --git a/dtrans/source/win32/workbench/XTDo.cxx b/dtrans/source/win32/workbench/XTDo.cxx
index 050cc349a41d..42a6ae833d02 100644
--- a/dtrans/source/win32/workbench/XTDo.cxx
+++ b/dtrans/source/win32/workbench/XTDo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,8 +64,8 @@ using namespace ::std;
//------------------------------------------------------------------------
/*
in the constructor we enumerate all formats offered by the transferable
- and convert the formats into formatetc structures
- if the transferable supports text in different charsets we use either
+ and convert the formats into formatetc structures
+ if the transferable supports text in different charsets we use either
the charset equal to the charset of the current thread or an arbitrary
charset supported by the transferable and the system
if the transferable supports only unicodetext we offer in addition to
@@ -75,8 +75,8 @@ using namespace ::std;
*/
CXTDataObject::CXTDataObject( ) :
m_nRefCnt( 0 )
-{
-
+{
+
}
//------------------------------------------------------------------------
@@ -84,7 +84,7 @@ CXTDataObject::CXTDataObject( ) :
//------------------------------------------------------------------------
STDMETHODIMP CXTDataObject::QueryInterface( REFIID iid, LPVOID* ppvObject )
-{
+{
OSL_ASSERT( NULL != ppvObject );
if ( NULL == ppvObject )
@@ -133,7 +133,7 @@ STDMETHODIMP_(ULONG) CXTDataObject::Release( )
}
/*------------------------------------------------------------------------
-
+
IDataObject->GetData
we deliver data only into global memory
@@ -144,11 +144,11 @@ STDMETHODIMP_(ULONG) CXTDataObject::Release( )
problems (windows needs '\0' terminated strings
2.2. we expect unicode data as Sequence< sal_Unicode > and all other
text and raw data as Sequence< sal_Int8 >
-
+
------------------------------------------------------------------------*/
STDMETHODIMP CXTDataObject::GetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium )
-{
+{
if ( ( NULL == pFormatetc ) || ( NULL == pmedium ) )
return E_INVALIDARG;
@@ -167,7 +167,7 @@ STDMETHODIMP CXTDataObject::GetData( LPFORMATETC pFormatetc, LPSTGMEDIUM pmedium
hr = S_OK;
}
-
+
return hr;
}
@@ -179,7 +179,7 @@ STDMETHODIMP CXTDataObject::EnumFormatEtc( DWORD dwDirection, IEnumFORMATETC** p
{
if ( ( NULL == ppenumFormatetc ) || ( DATADIR_SET == dwDirection ) )
return E_INVALIDARG;
-
+
*ppenumFormatetc = NULL;
HRESULT hr = E_FAIL;
@@ -312,7 +312,7 @@ STDMETHODIMP CEnumFormatEtc::QueryInterface( REFIID iid, LPVOID* ppvObject )
STDMETHODIMP_(ULONG) CEnumFormatEtc::AddRef( )
{
// keep the dataobject alive
- m_pUnkDataObj->AddRef( );
+ m_pUnkDataObj->AddRef( );
return InterlockedIncrement( &m_nRefCnt );
}
@@ -322,7 +322,7 @@ STDMETHODIMP_(ULONG) CEnumFormatEtc::AddRef( )
STDMETHODIMP_(ULONG) CEnumFormatEtc::Release( )
{
- // release the outer dataobject
+ // release the outer dataobject
m_pUnkDataObj->Release( );
// we need a helper variable because it's
@@ -347,9 +347,9 @@ STDMETHODIMP CEnumFormatEtc::Next( ULONG celt, LPFORMATETC rgelt, ULONG* pceltFe
ULONG ulFetched = 0;
ULONG ulToFetch = celt;
HRESULT hr = S_FALSE;
-
+
while( m_nCurrPos < 1 )
- {
+ {
rgelt->cfFormat = CF_TEXT;
rgelt->ptd = NULL;
rgelt->dwAspect = DVASPECT_CONTENT;
@@ -361,15 +361,15 @@ STDMETHODIMP CEnumFormatEtc::Next( ULONG celt, LPFORMATETC rgelt, ULONG* pceltFe
--ulToFetch;
++ulFetched;
}
-
+
if ( ulFetched == celt )
hr = S_OK;
if ( NULL != pceltFetched )
- {
+ {
*pceltFetched = ulFetched;
}
-
+
return hr;
}
@@ -380,7 +380,7 @@ STDMETHODIMP CEnumFormatEtc::Next( ULONG celt, LPFORMATETC rgelt, ULONG* pceltFe
STDMETHODIMP CEnumFormatEtc::Skip( ULONG celt )
{
HRESULT hr = S_FALSE;
-
+
/*
if ( ( m_nCurrPos + celt ) < m_nClipFormats )
{
@@ -414,9 +414,9 @@ STDMETHODIMP CEnumFormatEtc::Clone( IEnumFORMATETC** ppenum )
return E_INVALIDARG;
HRESULT hr = E_FAIL;
-
+
*ppenum = NULL;
-
+
CEnumFormatEtc* pCEnumFEtc = new CEnumFormatEtc( m_pUnkDataObj );
if ( NULL != pCEnumFEtc )
{
diff --git a/dtrans/source/win32/workbench/XTDo.hxx b/dtrans/source/win32/workbench/XTDo.hxx
index e37b4beefc2f..e3eff6f408b2 100644
--- a/dtrans/source/win32/workbench/XTDo.hxx
+++ b/dtrans/source/win32/workbench/XTDo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,12 +57,12 @@ class EnumFormatEtc;
a clipboard client ask for the available formats on the clipboard
and decides if there is a format he can use
if there is one, he requests the data in this format
-
- - This class inherits from IDataObject an so can be placed on the
- OleClipboard. The class wrapps a transferable object which is the
+
+ - This class inherits from IDataObject an so can be placed on the
+ OleClipboard. The class wrapps a transferable object which is the
original DataSource
- DataFlavors offerd by this transferable will be translated into
- appropriate clipboard formats
+ appropriate clipboard formats
- if the transferable contains text data always text and unicodetext
will be offered or vice versa
- text data will be automaticaly converted between text und unicode text
@@ -75,7 +75,7 @@ class CXTDataObject : public IDataObject
{
public:
CXTDataObject( );
-
+
//-----------------------------------------------------------------
// ole interface implementation
//-----------------------------------------------------------------
@@ -101,33 +101,33 @@ public:
private:
private:
- LONG m_nRefCnt;
+ LONG m_nRefCnt;
};
//------------------------------------------------------------------------
-//
+//
//------------------------------------------------------------------------
class CEnumFormatEtc : public IEnumFORMATETC
{
public:
CEnumFormatEtc( LPUNKNOWN pUnkDataObj );
-
- // IUnknown
+
+ // IUnknown
STDMETHODIMP QueryInterface( REFIID iid, LPVOID* ppvObject );
STDMETHODIMP_( ULONG ) AddRef( );
STDMETHODIMP_( ULONG ) Release( );
- //IEnumFORMATETC
+ //IEnumFORMATETC
STDMETHODIMP Next( ULONG celt, LPFORMATETC rgelt, ULONG* pceltFetched );
STDMETHODIMP Skip( ULONG celt );
STDMETHODIMP Reset( );
STDMETHODIMP Clone( IEnumFORMATETC** ppenum );
private:
- LONG m_nRefCnt;
- LPUNKNOWN m_pUnkDataObj;
- ULONG m_nCurrPos;
+ LONG m_nRefCnt;
+ LPUNKNOWN m_pUnkDataObj;
+ ULONG m_nCurrPos;
};
typedef CEnumFormatEtc *PCEnumFormatEtc;
diff --git a/dtrans/source/win32/workbench/test_wincb.cxx b/dtrans/source/win32/workbench/test_wincb.cxx
index 65118eed7fbd..f548c03fd1ca 100644
--- a/dtrans/source/win32/workbench/test_wincb.cxx
+++ b/dtrans/source/win32/workbench/test_wincb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,14 +31,14 @@
//_________________________________________________________________________________________________________________________
-// interface includes
+// interface includes
//_________________________________________________________________________________________________________________________
#include "..\misc\ImplHelper.hxx"
//_________________________________________________________________________________________________________________________
-// other includes
+// other includes
//_________________________________________________________________________________________________________________________
#include <cppuhelper/servicefactory.hxx>
#include <com/sun/star/datatransfer/XTransferable.hpp>
@@ -80,27 +80,27 @@
#define EVT_NONAME ""
//------------------------------------------------------------
-// namesapces
+// namesapces
//------------------------------------------------------------
-using namespace ::rtl;
+using namespace ::rtl;
using namespace ::std;
using namespace ::cppu;
using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::datatransfer::clipboard;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
-using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::lang;
//------------------------------------------------------------
-// globales
+// globales
//------------------------------------------------------------
Reference< XTransferable > rXTransfRead;
-HANDLE g_hEvtThreadWakeup;
+HANDLE g_hEvtThreadWakeup;
//------------------------------------------------------------
-//
+//
//------------------------------------------------------------
class CClipboardListener : public WeakImplHelper1 < XClipboardListener >
@@ -111,7 +111,7 @@ public:
//-------------------------------------------------
// XClipboardListener
//-------------------------------------------------
-
+
virtual void SAL_CALL disposing( const EventObject& Source ) throw(RuntimeException);
virtual void SAL_CALL changedContents( const ClipboardEvent& event ) throw( RuntimeException );
};
@@ -131,39 +131,39 @@ void SAL_CALL CClipboardListener::changedContents( const ClipboardEvent& event )
}
//------------------------------------------------------------
-//
+//
//------------------------------------------------------------
class CTransferable : public WeakImplHelper2< XClipboardOwner, XTransferable >
{
-public:
+public:
CTransferable( );
-
+
//-------------------------------------------------
// XTransferable
//-------------------------------------------------
- virtual Any SAL_CALL getTransferData( const DataFlavor& aFlavor )
+ virtual Any SAL_CALL getTransferData( const DataFlavor& aFlavor )
throw(UnsupportedFlavorException, IOException, RuntimeException);
virtual Sequence< DataFlavor > SAL_CALL getTransferDataFlavors( ) throw(RuntimeException);
virtual sal_Bool SAL_CALL isDataFlavorSupported( const DataFlavor& aFlavor ) throw(RuntimeException);
-
+
//-------------------------------------------------
// XClipboardOwner
//-------------------------------------------------
- virtual void SAL_CALL lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
+ virtual void SAL_CALL lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
throw(RuntimeException);
-
+
private:
Sequence< DataFlavor > m_FlavorList;
OUString m_Data;
};
//----------------------------------------------------------------
-// ctor
+// ctor
//----------------------------------------------------------------
CTransferable::CTransferable( ) :
@@ -171,10 +171,10 @@ CTransferable::CTransferable( ) :
m_Data( OUString::createFromAscii( "Ich habe mir ein neues Fahrrad gekauft!" ) )
{
DataFlavor df;
-
+
//df.MimeType = L"text/plain;charset=utf-16";
//df.DataType = getCppuType( ( OUString* )0 );
-
+
df.MimeType = L"text/plain;charset=Windows1252";
df.DataType = getCppuType( (Sequence< sal_Int8 >*)0 );
@@ -182,12 +182,12 @@ CTransferable::CTransferable( ) :
}
//----------------------------------------------------------------
-// getTransferData
+// getTransferData
//----------------------------------------------------------------
-Any SAL_CALL CTransferable::getTransferData( const DataFlavor& aFlavor )
+Any SAL_CALL CTransferable::getTransferData( const DataFlavor& aFlavor )
throw(UnsupportedFlavorException, IOException, RuntimeException)
-{
+{
Any anyData;
/*
@@ -196,9 +196,9 @@ Any SAL_CALL CTransferable::getTransferData( const DataFlavor& aFlavor )
*/
if ( aFlavor.MimeType.equalsIgnoreCase( m_FlavorList[0].MimeType ) )
{
- OString text(
- m_Data.getStr( ),
- m_Data.getLength( ),
+ OString text(
+ m_Data.getStr( ),
+ m_Data.getLength( ),
RTL_TEXTENCODING_ASCII_US );
Sequence< sal_Int8 > textStream( text.getLength( ) + 1 );
@@ -206,7 +206,7 @@ Any SAL_CALL CTransferable::getTransferData( const DataFlavor& aFlavor )
rtl_copyMemory( textStream.getArray( ), text.getStr( ), textStream.getLength( ) );
anyData = makeAny( textStream );
- }
+ }
else
throw UnsupportedFlavorException( );
@@ -214,54 +214,54 @@ Any SAL_CALL CTransferable::getTransferData( const DataFlavor& aFlavor )
}
//----------------------------------------------------------------
-// getTransferDataFlavors
+// getTransferDataFlavors
//----------------------------------------------------------------
-Sequence< DataFlavor > SAL_CALL CTransferable::getTransferDataFlavors( )
+Sequence< DataFlavor > SAL_CALL CTransferable::getTransferDataFlavors( )
throw(RuntimeException)
{
return m_FlavorList;
}
//----------------------------------------------------------------
-// isDataFlavorSupported
+// isDataFlavorSupported
//----------------------------------------------------------------
-sal_Bool SAL_CALL CTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
+sal_Bool SAL_CALL CTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
throw(RuntimeException)
{
sal_Int32 nLength = m_FlavorList.getLength( );
-
+
for ( sal_Int32 i = 0; i < nLength; ++i )
- if ( m_FlavorList[i].MimeType == aFlavor.MimeType )
- return sal_True;
+ if ( m_FlavorList[i].MimeType == aFlavor.MimeType )
+ return sal_True;
return sal_False;
}
//----------------------------------------------------------------
-// lostOwnership
+// lostOwnership
//----------------------------------------------------------------
-void SAL_CALL CTransferable::lostOwnership(
- const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
+void SAL_CALL CTransferable::lostOwnership(
+ const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
throw(RuntimeException)
{
//MessageBox( NULL, TEXT("No longer clipboard owner"), TEXT("Info"), MB_OK | MB_ICONINFORMATION );
}
//----------------------------------------------------------------
-// main
+// main
//----------------------------------------------------------------
int SAL_CALL main( int nArgc, char* Argv[] )
{
- // create a multi-threaded apartment; we can test only
+ // create a multi-threaded apartment; we can test only
// with a multithreaded apartment because for a single
// threaded apartment we need a message loop to deliver
// messages to our XTDataObject
//HRESULT hr = CoInitializeEx( NULL, COINIT_MULTITHREADED );
- HRESULT hr = CoInitialize( NULL );
+ HRESULT hr = CoInitialize( NULL );
char buff[6];
@@ -290,7 +290,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
Reference< XTransferable > rXTransf( static_cast< XTransferable* >( new CTransferable ) );
- Reference< XClipboard >
+ Reference< XClipboard >
xClipboard( g_xFactory->createInstance( OUString( WINCLIPBOARD_SERVICE_NAME ) ), UNO_QUERY );
if ( !xClipboard.is( ) )
{
@@ -300,7 +300,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
Reference< XClipboardNotifier > xClipNotifier( xClipboard, UNO_QUERY );
Reference< XClipboardListener > rXClipListener( static_cast< XClipboardListener* >( new CClipboardListener() ) );
- xClipNotifier->addClipboardListener( rXClipListener );
+ xClipNotifier->addClipboardListener( rXClipListener );
MessageBox( NULL, TEXT("Go"), TEXT("INFO"), MB_OK|MB_ICONINFORMATION);
@@ -316,7 +316,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
*/
MessageBox( NULL, TEXT("Stop"), TEXT("INFO"), MB_OK|MB_ICONINFORMATION);
-
+
// flush the clipboard content
Reference< XFlushableClipboard > rXFlushableClip( xClipboard, UNO_QUERY );
rXFlushableClip->flushClipboard( );
@@ -325,7 +325,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
xClipNotifier->removeClipboardListener( rXClipListener );
rXClipListener = Reference< XClipboardListener >( );
xClipNotifier = Reference< XClipboardNotifier >( );
-
+
//--------------------------------------------------
// shutdown the service manager
//--------------------------------------------------
@@ -335,7 +335,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
if ( !xComponent.is() )
OSL_ENSURE(sal_False, "Error shuting down");
-
+
// Dispose and clear factory
xComponent->dispose();
xComponent = Reference< XComponent >( );
@@ -345,7 +345,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
CoUninitialize( );
- return 0;
+ return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dtrans/source/win32/workbench/testmarshal.cxx b/dtrans/source/win32/workbench/testmarshal.cxx
index a07d7fb4401e..264e6751ada2 100644
--- a/dtrans/source/win32/workbench/testmarshal.cxx
+++ b/dtrans/source/win32/workbench/testmarshal.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,11 +31,11 @@
//_________________________________________________________________________________________________________________________
-// interface includes
+// interface includes
//_________________________________________________________________________________________________________________________
//_________________________________________________________________________________________________________________________
-// other includes
+// other includes
//_________________________________________________________________________________________________________________________
#include <rtl/ustring.hxx>
#include <sal/types.h>
@@ -68,17 +68,17 @@
#define RAW_MARSHALING
//------------------------------------------------------------
-// namesapces
+// namesapces
//------------------------------------------------------------
-using namespace ::rtl;
+using namespace ::rtl;
using namespace ::std;
//------------------------------------------------------------
-// globales
+// globales
//------------------------------------------------------------
-HANDLE g_hEvtThreadWakeup;
+HANDLE g_hEvtThreadWakeup;
#ifdef RAW_MARSHALING
HGLOBAL g_hGlob;
@@ -92,21 +92,21 @@ HANDLE g_hEvtThreadWakeup;
unsigned int _stdcall ThreadProc(LPVOID pParam)
{
// setup another apartment
- HRESULT hr = OleInitialize( NULL );
+ HRESULT hr = OleInitialize( NULL );
WaitForSingleObject( g_hEvtThreadWakeup, INFINITE );
IDataObject* pIDo;
#ifdef RAW_MARSHALING
-
+
IStream* pStm = NULL;
hr = CreateStreamOnHGlobal( g_hGlob, FALSE, &pStm );
if ( SUCCEEDED( hr ) )
{
- hr = CoUnmarshalInterface(
- pStm,
- __uuidof( IDataObject ),
+ hr = CoUnmarshalInterface(
+ pStm,
+ __uuidof( IDataObject ),
(void**)&pIDo );
hr = pStm->Release( );
@@ -114,7 +114,7 @@ unsigned int _stdcall ThreadProc(LPVOID pParam)
#else
- hr = CoGetInterfaceAndReleaseStream(
+ hr = CoGetInterfaceAndReleaseStream(
g_pStm,
__uuidof( IDataObject ),
(void**)&pIDo
@@ -126,7 +126,7 @@ unsigned int _stdcall ThreadProc(LPVOID pParam)
hr = pIDo->EnumFormatEtc( DATADIR_GET, &pIEEtc );
hr = OleIsCurrentClipboard( pIDo );
-
+
hr = OleFlushClipboard( );
OleUninitialize( );
@@ -137,16 +137,16 @@ unsigned int _stdcall ThreadProc(LPVOID pParam)
//################################################################
//----------------------------------------------------------------
-// main
+// main
//----------------------------------------------------------------
int SAL_CALL main( int nArgc, char* Argv[] )
{
- HRESULT hr = OleInitialize( NULL );
+ HRESULT hr = OleInitialize( NULL );
- g_hEvtThreadWakeup = CreateEvent( 0,
- EVT_MANUAL_RESET,
- EVT_INIT_NONSIGNALED,
+ g_hEvtThreadWakeup = CreateEvent( 0,
+ EVT_MANUAL_RESET,
+ EVT_INIT_NONSIGNALED,
EVT_NONAME );
unsigned uThreadId;
@@ -166,18 +166,18 @@ int SAL_CALL main( int nArgc, char* Argv[] )
if ( SUCCEEDED( hr ) )
{
#ifdef RAW_MARSHALING
-
+
IStream* pStm = NULL;
hr = CreateStreamOnHGlobal( 0, FALSE, &pStm );
if ( SUCCEEDED( hr ) )
{
- hr = CoMarshalInterface(
- pStm,
- __uuidof( IDataObject ),
- pIDo,
- MSHCTX_INPROC,
- 0,
+ hr = CoMarshalInterface(
+ pStm,
+ __uuidof( IDataObject ),
+ pIDo,
+ MSHCTX_INPROC,
+ 0,
MSHLFLAGS_NORMAL );
if ( SUCCEEDED( hr ) )
hr = GetHGlobalFromStream( pStm, &g_hGlob );
@@ -187,7 +187,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
#else
- hr = CoMarshalInterThreadInterfaceInStream(
+ hr = CoMarshalInterThreadInterfaceInStream(
__uuidof( IDataObject ),
pIDo,
&g_pStm );
@@ -197,7 +197,7 @@ int SAL_CALL main( int nArgc, char* Argv[] )
if ( SUCCEEDED( hr ) )
{
// wakeup the thread and waiting util it ends
- SetEvent( g_hEvtThreadWakeup );
+ SetEvent( g_hEvtThreadWakeup );
#ifdef WAIT_MSGLOOP
@@ -205,10 +205,10 @@ int SAL_CALL main( int nArgc, char* Argv[] )
while( bContinue )
{
- DWORD dwResult = WaitForMultipleObjects(
- 1,
- &hThread,
- TRUE,
+ DWORD dwResult = WaitForMultipleObjects(
+ 1,
+ &hThread,
+ TRUE,
0 );
if ( WAIT_OBJECT_0 == dwResult )
@@ -218,29 +218,29 @@ int SAL_CALL main( int nArgc, char* Argv[] )
else
{
MSG msg;
- while( PeekMessage(
- &msg,
- NULL,
- 0,
- 0,
+ while( PeekMessage(
+ &msg,
+ NULL,
+ 0,
+ 0,
PM_REMOVE ) )
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
- }
+ }
} // while
#endif
} // if
} // if
-
+
OleFlushClipboard( );
OleUninitialize( );
-
- return 0;
+
+ return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dtrans/test/win32/dnd/atlwindow.cxx b/dtrans/test/win32/dnd/atlwindow.cxx
index 82f0b9d4f45e..657d8ddd5c85 100644
--- a/dtrans/test/win32/dnd/atlwindow.cxx
+++ b/dtrans/test/win32/dnd/atlwindow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,11 +76,11 @@ LRESULT AWindow::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled
m_xDropTarget=0;
m_xDragSource=0;
-
- // Remove the subclass from the edit control.
- ::SetWindowLong(m_hwndEdit, GWL_WNDPROC,
- (LONG) wpOrigEditProc);
-
+
+ // Remove the subclass from the edit control.
+ ::SetWindowLong(m_hwndEdit, GWL_WNDPROC,
+ (LONG) wpOrigEditProc);
+
return 0;
}
@@ -88,26 +88,26 @@ LRESULT AWindow::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled
LRESULT AWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
// Prepare the EDIT control
- m_hwndEdit = CreateWindowA(
- "EDIT", // predefined class
- NULL, // no window title
- WS_CHILD | WS_VISIBLE | WS_VSCROLL |
- ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL,
- 0, 0, 0, 0, // set size in WM_SIZE message
- m_hWnd, // parent window
- (HMENU) NULL, // edit control ID
- (HINSTANCE) GetWindowLong( GWL_HINSTANCE),
- NULL);
-
- // the map is used in the window procedure for the edit window to associate the
+ m_hwndEdit = CreateWindowA(
+ "EDIT", // predefined class
+ NULL, // no window title
+ WS_CHILD | WS_VISIBLE | WS_VSCROLL |
+ ES_LEFT | ES_MULTILINE | ES_AUTOVSCROLL,
+ 0, 0, 0, 0, // set size in WM_SIZE message
+ m_hWnd, // parent window
+ (HMENU) NULL, // edit control ID
+ (HINSTANCE) GetWindowLong( GWL_HINSTANCE),
+ NULL);
+
+ // the map is used in the window procedure for the edit window to associate the
// it to the right main window ( AWindow)
mapEditToMainWnd[m_hwndEdit]= m_hWnd;
// Superclass the edit window, because we want to process mouse messages
- wpOrigEditProc = (WNDPROC) ::SetWindowLongA(m_hwndEdit,
- GWL_WNDPROC, (LONG) EditSubclassProc);
-
-
- // Add text to the window.
+ wpOrigEditProc = (WNDPROC) ::SetWindowLongA(m_hwndEdit,
+ GWL_WNDPROC, (LONG) EditSubclassProc);
+
+
+ // Add text to the window.
if( m_isMTA)
::SendMessageA(m_hwndEdit, WM_SETTEXT, 0, (LPARAM) szMTAWin);
else
@@ -118,7 +118,7 @@ LRESULT AWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandle
Reference< XInterface> xint= MultiServiceFactory->createInstance(OUString(L"com.sun.star.datatransfer.dnd.OleDragSource"));
m_xDragSource= Reference<XDragSource>( xint, UNO_QUERY);
Reference<XInitialization> xInit( xint, UNO_QUERY);
-
+
Any ar[2];
ar[1]<<= (sal_uInt32)m_hWnd;
xInit->initialize( Sequence<Any>( ar, 2) );
@@ -127,7 +127,7 @@ LRESULT AWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandle
Reference< XInterface> xintTarget= MultiServiceFactory->createInstance(OUString(L"com.sun.star.datatransfer.dnd.OleDropTarget"));
m_xDropTarget= Reference<XDropTarget>( xintTarget, UNO_QUERY);
Reference<XInitialization> xInitTarget( xintTarget, UNO_QUERY);
-
+
Any any;
any <<= (sal_uInt32)m_hWnd;
xInitTarget->initialize( Sequence<Any>( &any, 1) );
@@ -135,7 +135,7 @@ LRESULT AWindow::OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandle
m_xDropTarget->addDropTargetListener( static_cast<XDropTargetListener*>
( new DropTargetListener( m_hwndEdit)) );
-// // make this window tho a drop target
+// // make this window tho a drop target
m_xDropTarget->setActive(sal_True);
return 0;
@@ -170,9 +170,9 @@ LRESULT AWindow::OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled
char * pBuffer= new char[length + 1];
ZeroMemory( pBuffer, length + 1);
::SendMessageA( m_hwndEdit, WM_GETTEXT, length, (LPARAM) pBuffer);
-
+
IDataObject* pData= NULL;
- HRESULT hr= CreateDataCache( NULL, CLSID_NULL, __uuidof(IDataObject),(void**) &pData);
+ HRESULT hr= CreateDataCache( NULL, CLSID_NULL, __uuidof(IDataObject),(void**) &pData);
if( pData)
{
FORMATETC format={ CF_TEXT, NULL, DVASPECT_CONTENT, -1, };
@@ -188,10 +188,10 @@ LRESULT AWindow::OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled
medium.pUnkForRelease= NULL;
pData->SetData( &format, &medium, TRUE); // releases HGLOBAL eventually
-
- Reference<XTransferable> xTrans= m_aDataConverter.createTransferableFromDataObj(
+
+ Reference<XTransferable> xTrans= m_aDataConverter.createTransferableFromDataObj(
MultiServiceFactory, pData);
-
+
// call XDragSource::executeDrag from an MTA
if( m_isMTA )
{
@@ -206,18 +206,18 @@ LRESULT AWindow::OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled
// We must wait until the thread copied the ThreadData structure
WaitForSingleObject( data.evtThreadReady, INFINITE);
CloseHandle( data.evtThreadReady);
-
+
}
else
{
- m_xDragSource->startDrag( DragGestureEvent(),
+ m_xDragSource->startDrag( DragGestureEvent(),
ACTION_LINK|ACTION_MOVE|ACTION_COPY,
0,
0,
xTrans,
Reference<XDragSourceListener>( static_cast<XDragSourceListener*>(new DragSourceListener() ) ) );
- }
+ }
}
delete[] pBuffer;
@@ -228,27 +228,27 @@ LRESULT AWindow::OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled
LRESULT AWindow::OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
- // Make the edit control the size of the window's
- // client area.
- ::MoveWindow(m_hwndEdit,
- 0, 0, // starting x- and y-coordinates
- LOWORD(lParam), // width of client area
- HIWORD(lParam), // height of client area
- TRUE); // repaint window
-
+ // Make the edit control the size of the window's
+ // client area.
+ ::MoveWindow(m_hwndEdit,
+ 0, 0, // starting x- and y-coordinates
+ LOWORD(lParam), // width of client area
+ HIWORD(lParam), // height of client area
+ TRUE); // repaint window
+
return 0;
}
LRESULT AWindow::OnFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
- ::SetFocus(m_hwndEdit);
- return 0;
+ ::SetFocus(m_hwndEdit);
+ return 0;
}
-
+
// Subclass procedure for EDIT window
-LRESULT APIENTRY EditSubclassProc( HWND hwnd, UINT uMsg,WPARAM wParam, LPARAM lParam)
-{
+LRESULT APIENTRY EditSubclassProc( HWND hwnd, UINT uMsg,WPARAM wParam, LPARAM lParam)
+{
if( uMsg >= WM_MOUSEFIRST && uMsg <= WM_MOUSELAST)
{
@@ -256,9 +256,9 @@ LRESULT APIENTRY EditSubclassProc( HWND hwnd, UINT uMsg,WPARAM wParam, LPARAM lP
::SendMessage( hAWindow, uMsg, wParam, lParam);
}
- return CallWindowProc( wpOrigEditProc, hwnd, uMsg,
- wParam, lParam);
-}
-
+ return CallWindowProc( wpOrigEditProc, hwnd, uMsg,
+ wParam, lParam);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dtrans/test/win32/dnd/atlwindow.hxx b/dtrans/test/win32/dnd/atlwindow.hxx
index f18ac08af1da..4f1665b2215f 100644
--- a/dtrans/test/win32/dnd/atlwindow.hxx
+++ b/dtrans/test/win32/dnd/atlwindow.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/dtrans/test/win32/dnd/dndTest.cxx b/dtrans/test/win32/dnd/dndTest.cxx
index 34080fb46efe..d5ccd146d628 100644
--- a/dtrans/test/win32/dnd/dndTest.cxx
+++ b/dtrans/test/win32/dnd/dndTest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,15 +86,15 @@ int main( int argc, char *argv[ ], char *envp[ ] )
_tprintf(_T("CoInitialize failed \n"));
return -1;
}
-
-
+
+
_Module.Init( ObjectMap, GetModuleHandle( NULL));
if( FAILED(hr=doTest()))
{
_com_error err( hr);
const TCHAR * errMsg= err.ErrorMessage();
-// MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
+// MessageBox( NULL, errMsg, "Test failed", MB_ICONERROR);
}
@@ -115,8 +115,8 @@ HRESULT doTest()
HANDLE hMTAThread= CreateThread( NULL, 0, MTAFunc, &evt, 0, &threadIdMTA);
WaitForSingleObject( evt, INFINITE);
CloseHandle(evt);
-
-
+
+
HRESULT hr= S_OK;
RECT pos1={0,0,300,200};
AWindow win(_T("DnD starting in Ole STA"), threadIdMTA, pos1);
@@ -131,7 +131,7 @@ HRESULT doTest()
RECT pos4={ 300, 205, 600, 405};
AWindow win24( _T("DnD starting in Ole MTA"), threadIdMTA, pos4, true, true);
-
+
MSG msg;
while( GetMessage(&msg, (HWND)NULL, 0, 0) )
{
@@ -143,7 +143,7 @@ HRESULT doTest()
PostThreadMessage( threadIdMTA, WM_QUIT, 0, 0);
WaitForSingleObject(hMTAThread, INFINITE);
CloseHandle(hMTAThread);
-
+
return S_OK;
}
@@ -160,8 +160,8 @@ DWORD WINAPI MTAFunc( void* threadData)
RECT pos={0, 406, 300, 605};
AWindow win(_T("DnD, full MTA"), GetCurrentThreadId(), pos, false, true);
-// ThreadData data= *( ThreadData*)pParams;
-// SetEvent(data.evtThreadReady);
+// ThreadData data= *( ThreadData*)pParams;
+// SetEvent(data.evtThreadReady);
while( GetMessage(&msg, (HWND)NULL, 0, 0) )
{
switch( msg.message)
@@ -172,7 +172,7 @@ DWORD WINAPI MTAFunc( void* threadData)
Any any;
any <<= (sal_uInt32) pData->hWnd;
pData->xInit->initialize( Sequence<Any>( &any, 1));
-
+
CoTaskMemFree( pData);
break;
}
@@ -186,7 +186,7 @@ DWORD WINAPI MTAFunc( void* threadData)
{
DataFlavor d= seq[i];
}
- pData->source->startDrag( DragGestureEvent(),
+ pData->source->startDrag( DragGestureEvent(),
ACTION_LINK|ACTION_MOVE|ACTION_COPY,
0,
0,
@@ -198,7 +198,7 @@ DWORD WINAPI MTAFunc( void* threadData)
}
} // end switch
-
+
TranslateMessage( &msg);
DispatchMessage( &msg);
}
diff --git a/dtrans/test/win32/dnd/sourcelistener.cxx b/dtrans/test/win32/dnd/sourcelistener.cxx
index a3a0a6f441bd..b60be4529ddc 100644
--- a/dtrans/test/win32/dnd/sourcelistener.cxx
+++ b/dtrans/test/win32/dnd/sourcelistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,32 +42,32 @@ DragSourceListener::~DragSourceListener()
{
}
-void SAL_CALL DragSourceListener::disposing( const EventObject& Source )
+void SAL_CALL DragSourceListener::disposing( const EventObject& Source )
throw(RuntimeException)
{
}
-void SAL_CALL DragSourceListener::dragDropEnd( const DragSourceDropEvent& dsde )
+void SAL_CALL DragSourceListener::dragDropEnd( const DragSourceDropEvent& dsde )
throw(RuntimeException)
{
}
-void SAL_CALL DragSourceListener::dragEnter( const DragSourceDragEvent& dsde )
+void SAL_CALL DragSourceListener::dragEnter( const DragSourceDragEvent& dsde )
throw(RuntimeException)
{
}
-void SAL_CALL DragSourceListener::dragExit( const DragSourceEvent& dse )
+void SAL_CALL DragSourceListener::dragExit( const DragSourceEvent& dse )
throw(RuntimeException)
{
}
-void SAL_CALL DragSourceListener::dragOver( const DragSourceDragEvent& dsde )
+void SAL_CALL DragSourceListener::dragOver( const DragSourceDragEvent& dsde )
throw(RuntimeException)
{
}
-void SAL_CALL DragSourceListener::dropActionChanged( const DragSourceDragEvent& dsde )
+void SAL_CALL DragSourceListener::dropActionChanged( const DragSourceDragEvent& dsde )
throw(RuntimeException)
{
}
diff --git a/dtrans/test/win32/dnd/sourcelistener.hxx b/dtrans/test/win32/dnd/sourcelistener.hxx
index dbe9f0308914..c9508ee44826 100644
--- a/dtrans/test/win32/dnd/sourcelistener.hxx
+++ b/dtrans/test/win32/dnd/sourcelistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,18 +47,18 @@ public:
DragSourceListener( );
~DragSourceListener();
- virtual void SAL_CALL disposing( const EventObject& Source )
+ virtual void SAL_CALL disposing( const EventObject& Source )
throw(RuntimeException);
- virtual void SAL_CALL dragDropEnd( const DragSourceDropEvent& dsde )
+ virtual void SAL_CALL dragDropEnd( const DragSourceDropEvent& dsde )
throw(RuntimeException);
- virtual void SAL_CALL dragEnter( const DragSourceDragEvent& dsde )
+ virtual void SAL_CALL dragEnter( const DragSourceDragEvent& dsde )
throw(RuntimeException);
- virtual void SAL_CALL dragExit( const DragSourceEvent& dse )
+ virtual void SAL_CALL dragExit( const DragSourceEvent& dse )
throw(RuntimeException);
- virtual void SAL_CALL dragOver( const DragSourceDragEvent& dsde )
+ virtual void SAL_CALL dragOver( const DragSourceDragEvent& dsde )
throw(RuntimeException);
- virtual void SAL_CALL dropActionChanged( const DragSourceDragEvent& dsde )
+ virtual void SAL_CALL dropActionChanged( const DragSourceDragEvent& dsde )
throw(RuntimeException);
};
diff --git a/dtrans/test/win32/dnd/targetlistener.cxx b/dtrans/test/win32/dnd/targetlistener.cxx
index 7b74d1cde55a..93c65eace947 100644
--- a/dtrans/test/win32/dnd/targetlistener.cxx
+++ b/dtrans/test/win32/dnd/targetlistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,28 +46,28 @@ DropTargetListener::~DropTargetListener()
{
}
-void SAL_CALL DropTargetListener::disposing( const EventObject& Source )
+void SAL_CALL DropTargetListener::disposing( const EventObject& Source )
throw(RuntimeException)
{
-
+
}
-void SAL_CALL DropTargetListener::drop( const DropTargetDropEvent& e )
+void SAL_CALL DropTargetListener::drop( const DropTargetDropEvent& e )
throw(RuntimeException)
{
-// e.Context->dropComplete( sal_True);
-// e.Context->acceptDrop( ACTION_COPY);
+// e.Context->dropComplete( sal_True);
+// e.Context->acceptDrop( ACTION_COPY);
e.Context->rejectDrop();
// if the Transferable contains text, then we send it to the edit window
-// Sequence<DataFlavor> flavors= e.Transferable->getTransferDataFlavors();
-// DataFlavor aFlavor;
-// for( int i=0; i < flavors.getLength(); i++)
-// aFlavor= flavors[4];
+// Sequence<DataFlavor> flavors= e.Transferable->getTransferDataFlavors();
+// DataFlavor aFlavor;
+// for( int i=0; i < flavors.getLength(); i++)
+// aFlavor= flavors[4];
- DataFlavor flavor( OUString(OUString::createFromAscii("text/plain;charset=windows-1252")),
+ DataFlavor flavor( OUString(OUString::createFromAscii("text/plain;charset=windows-1252")),
OUString(L"Text plain"), getCppuType( ( Sequence<sal_Int8>*)0 ) );
Any anyData= e.Transferable->getTransferData( flavor);
@@ -75,30 +75,30 @@ void SAL_CALL DropTargetListener::drop( const DropTargetDropEvent& e )
SendMessage( m_hEdit, WM_SETTEXT, 0, (LPARAM) seq.getConstArray() );
}
-void SAL_CALL DropTargetListener::dragEnter( const DropTargetDragEnterEvent& dtde )
+void SAL_CALL DropTargetListener::dragEnter( const DropTargetDragEnterEvent& dtde )
throw(RuntimeException)
{
//If one drags something that is not moveable
if( !(dtde.SourceActions & dtde.DropAction) )
dtde.Context->acceptDrag( ACTION_COPY);
-// dtde.Context->rejectDrag( );
+// dtde.Context->rejectDrag( );
}
-void SAL_CALL DropTargetListener::dragExit( const DropTargetEvent& dte )
+void SAL_CALL DropTargetListener::dragExit( const DropTargetEvent& dte )
throw(RuntimeException)
{
}
-void SAL_CALL DropTargetListener::dragOver( const DropTargetDragEvent& dtde )
+void SAL_CALL DropTargetListener::dragOver( const DropTargetDragEvent& dtde )
throw(RuntimeException)
-{
+{
if( !(dtde.SourceActions & dtde.DropAction) )
dtde.Context->acceptDrag( ACTION_COPY);
}
-void SAL_CALL DropTargetListener::dropActionChanged( const DropTargetDragEvent& dtde )
+void SAL_CALL DropTargetListener::dropActionChanged( const DropTargetDragEvent& dtde )
throw(RuntimeException)
{
}
diff --git a/dtrans/test/win32/dnd/targetlistener.hxx b/dtrans/test/win32/dnd/targetlistener.hxx
index b5543fdc9e41..4f59f8a470f0 100644
--- a/dtrans/test/win32/dnd/targetlistener.hxx
+++ b/dtrans/test/win32/dnd/targetlistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,19 +56,19 @@ public:
DropTargetListener( HWND hEdit);
~DropTargetListener();
- virtual void SAL_CALL disposing( const EventObject& Source )
+ virtual void SAL_CALL disposing( const EventObject& Source )
throw(RuntimeException);
- virtual void SAL_CALL drop( const DropTargetDropEvent& dtde )
+ virtual void SAL_CALL drop( const DropTargetDropEvent& dtde )
throw(RuntimeException);
- virtual void SAL_CALL dragEnter( const DropTargetDragEnterEvent& dtde )
+ virtual void SAL_CALL dragEnter( const DropTargetDragEnterEvent& dtde )
throw(RuntimeException);
- virtual void SAL_CALL dragExit( const DropTargetEvent& dte )
+ virtual void SAL_CALL dragExit( const DropTargetEvent& dte )
throw(RuntimeException);
- virtual void SAL_CALL dragOver( const DropTargetDragEvent& dtde )
+ virtual void SAL_CALL dragOver( const DropTargetDragEvent& dtde )
throw(RuntimeException);
- virtual void SAL_CALL dropActionChanged( const DropTargetDragEvent& dtde )
+ virtual void SAL_CALL dropActionChanged( const DropTargetDragEvent& dtde )
throw(RuntimeException);
};
diff --git a/dtrans/test/win32/dnd/transferable.cxx b/dtrans/test/win32/dnd/transferable.cxx
index c20514f93b4b..96b87d0effcf 100644
--- a/dtrans/test/win32/dnd/transferable.cxx
+++ b/dtrans/test/win32/dnd/transferable.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
#include "transferable.hxx"
//----------------------------------------------------------------
-// ctor
+// ctor
//----------------------------------------------------------------
@@ -41,29 +41,29 @@ CTransferable::CTransferable( wchar_t* dataString ) :
m_Data( dataString )
{
DataFlavor df;
-
+
/*
df.MimeType = L"text/plain; charset=unicode";
df.DataType = getCppuType( ( OUString* )0 );
m_seqDFlv[0] = df;
*/
-
+
//df.MimeType = L"text/plain; charset=windows1252";
df.MimeType = L"text/plain";
df.DataType = getCppuType( ( Sequence< sal_Int8 >* )0 );
- m_seqDFlv[0] = df;
+ m_seqDFlv[0] = df;
}
//----------------------------------------------------------------
-// getTransferData
+// getTransferData
//----------------------------------------------------------------
-Any SAL_CALL CTransferable::getTransferData( const DataFlavor& aFlavor )
+Any SAL_CALL CTransferable::getTransferData( const DataFlavor& aFlavor )
throw(UnsupportedFlavorException, IOException, RuntimeException)
-{
+{
Any anyData;
/*if ( aFlavor == m_seqDFlv[0] )
@@ -86,20 +86,20 @@ Any SAL_CALL CTransferable::getTransferData( const DataFlavor& aFlavor )
}
//----------------------------------------------------------------
-// getTransferDataFlavors
+// getTransferDataFlavors
//----------------------------------------------------------------
-Sequence< DataFlavor > SAL_CALL CTransferable::getTransferDataFlavors( )
+Sequence< DataFlavor > SAL_CALL CTransferable::getTransferDataFlavors( )
throw(RuntimeException)
{
return m_seqDFlv;
}
//----------------------------------------------------------------
-// isDataFlavorSupported
+// isDataFlavorSupported
//----------------------------------------------------------------
-sal_Bool SAL_CALL CTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
+sal_Bool SAL_CALL CTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
throw(RuntimeException)
{
sal_Int32 nLength = m_seqDFlv.getLength( );
@@ -118,10 +118,10 @@ sal_Bool SAL_CALL CTransferable::isDataFlavorSupported( const DataFlavor& aFlavo
}
//----------------------------------------------------------------
-// lostOwnership
+// lostOwnership
//----------------------------------------------------------------
-void SAL_CALL CTransferable::lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
+void SAL_CALL CTransferable::lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
throw(RuntimeException)
{
}
diff --git a/dtrans/test/win32/dnd/transferable.hxx b/dtrans/test/win32/dnd/transferable.hxx
index 315b3f55c9b2..7bf67a834c63 100644
--- a/dtrans/test/win32/dnd/transferable.hxx
+++ b/dtrans/test/win32/dnd/transferable.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,28 +69,28 @@
#define EVT_NONAME ""
//------------------------------------------------------------
-// namesapces
+// namesapces
//------------------------------------------------------------
-using namespace ::rtl;
+using namespace ::rtl;
using namespace ::std;
using namespace ::cppu;
using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::datatransfer::clipboard;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
-using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::lang;
//------------------------------------------------------------
-//
+//
//------------------------------------------------------------
class CTransferable : public WeakImplHelper2< XClipboardOwner, XTransferable >
{
-public:
+public:
CTransferable( ){};
CTransferable( wchar_t* dataString);
-
+
//-------------------------------------------------
// XTransferable
//-------------------------------------------------
@@ -98,13 +98,13 @@ public:
virtual Any SAL_CALL getTransferData( const DataFlavor& aFlavor ) throw(UnsupportedFlavorException, IOException, RuntimeException);
virtual Sequence< DataFlavor > SAL_CALL getTransferDataFlavors( ) throw(RuntimeException);
virtual sal_Bool SAL_CALL isDataFlavorSupported( const DataFlavor& aFlavor ) throw(RuntimeException);
-
+
//-------------------------------------------------
// XClipboardOwner
//-------------------------------------------------
virtual void SAL_CALL lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans ) throw(RuntimeException);
-
+
private:
Sequence< DataFlavor > m_seqDFlv;
OUString m_Data;
diff --git a/i18npool/inc/breakiteratorImpl.hxx b/i18npool/inc/breakiteratorImpl.hxx
index 5e701d0bd2d2..34c867f0ceaf 100644
--- a/i18npool/inc/breakiteratorImpl.hxx
+++ b/i18npool/inc/breakiteratorImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,9 +45,9 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class BreakIterator
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class BreakIterator
+// ----------------------------------------------------
class BreakIteratorImpl : public cppu::WeakImplHelper2
<
XBreakIterator,
@@ -59,61 +59,61 @@ public:
BreakIteratorImpl();
~BreakIteratorImpl();
- virtual sal_Int32 SAL_CALL nextCharacters( const rtl::OUString& Text, sal_Int32 nStartPos,
- const com::sun::star::lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
+ virtual sal_Int32 SAL_CALL nextCharacters( const rtl::OUString& Text, sal_Int32 nStartPos,
+ const com::sun::star::lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
sal_Int32& nDone ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL previousCharacters( const rtl::OUString& Text, sal_Int32 nStartPos,
- const com::sun::star::lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
+ virtual sal_Int32 SAL_CALL previousCharacters( const rtl::OUString& Text, sal_Int32 nStartPos,
+ const com::sun::star::lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
sal_Int32& nDone ) throw(com::sun::star::uno::RuntimeException);
- virtual Boundary SAL_CALL previousWord( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual Boundary SAL_CALL previousWord( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType) throw(com::sun::star::uno::RuntimeException);
- virtual Boundary SAL_CALL nextWord( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual Boundary SAL_CALL nextWord( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType) throw(com::sun::star::uno::RuntimeException);
- virtual Boundary SAL_CALL getWordBoundary( const rtl::OUString& Text, sal_Int32 nPos,
- const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection )
+ virtual Boundary SAL_CALL getWordBoundary( const rtl::OUString& Text, sal_Int32 nPos,
+ const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isBeginWord( const rtl::OUString& Text, sal_Int32 nPos,
+ virtual sal_Bool SAL_CALL isBeginWord( const rtl::OUString& Text, sal_Int32 nPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isEndWord( const rtl::OUString& Text, sal_Int32 nPos,
+ virtual sal_Bool SAL_CALL isEndWord( const rtl::OUString& Text, sal_Int32 nPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getWordType( const rtl::OUString& Text, sal_Int32 nPos,
+ virtual sal_Int16 SAL_CALL getWordType( const rtl::OUString& Text, sal_Int32 nPos,
const com::sun::star::lang::Locale& nLocale ) throw(com::sun::star::uno::RuntimeException);
virtual sal_Int32 SAL_CALL beginOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL endOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL endOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual LineBreakResults SAL_CALL getLineBreak( const rtl::OUString& Text, sal_Int32 nStartPos,
- const com::sun::star::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
- const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions )
+ virtual LineBreakResults SAL_CALL getLineBreak( const rtl::OUString& Text, sal_Int32 nStartPos,
+ const com::sun::star::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
+ const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getScriptType( const rtl::OUString& Text, sal_Int32 nPos )
+ virtual sal_Int16 SAL_CALL getScriptType( const rtl::OUString& Text, sal_Int32 nPos )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL beginOfScript( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL beginOfScript( const rtl::OUString& Text, sal_Int32 nStartPos,
sal_Int16 ScriptType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL endOfScript( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL endOfScript( const rtl::OUString& Text, sal_Int32 nStartPos,
sal_Int16 ScriptType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL previousScript( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL previousScript( const rtl::OUString& Text, sal_Int32 nStartPos,
sal_Int16 ScriptType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL nextScript( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL nextScript( const rtl::OUString& Text, sal_Int32 nStartPos,
sal_Int16 ScriptType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL beginOfCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL beginOfCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 CharType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL endOfCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL endOfCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 CharType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL previousCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL previousCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 CharType ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL nextCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL nextCharBlock( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 CharType ) throw(com::sun::star::uno::RuntimeException);
//XServiceInfo
virtual rtl::OUString SAL_CALL getImplementationName() throw( com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
+ virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
throw( com::sun::star::uno::RuntimeException );
virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
diff --git a/i18npool/inc/breakiterator_cjk.hxx b/i18npool/inc/breakiterator_cjk.hxx
index fa0726ac1c53..ff083b78bec4 100644
--- a/i18npool/inc/breakiterator_cjk.hxx
+++ b/i18npool/inc/breakiterator_cjk.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,9 +32,9 @@
#include <xdictionary.hxx>
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class BreakIterator_CJK
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class BreakIterator_CJK
+// ----------------------------------------------------
class BreakIterator_CJK : public BreakIterator_Unicode
{
public:
@@ -49,9 +49,9 @@ public:
Boundary SAL_CALL getWordBoundary( const rtl::OUString& Text, sal_Int32 nPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection )
throw(com::sun::star::uno::RuntimeException);
- LineBreakResults SAL_CALL getLineBreak( const rtl::OUString& Text, sal_Int32 nStartPos,
- const com::sun::star::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
- const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions )
+ LineBreakResults SAL_CALL getLineBreak( const rtl::OUString& Text, sal_Int32 nStartPos,
+ const com::sun::star::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
+ const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions )
throw(com::sun::star::uno::RuntimeException);
protected:
diff --git a/i18npool/inc/breakiterator_ctl.hxx b/i18npool/inc/breakiterator_ctl.hxx
index 47a1c9f6c3f3..ea0f89279d03 100644
--- a/i18npool/inc/breakiterator_ctl.hxx
+++ b/i18npool/inc/breakiterator_ctl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,9 +33,9 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class BreakIterator_CTL
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class BreakIterator_CTL
+// ----------------------------------------------------
class BreakIterator_CTL : public BreakIterator_Unicode
{
public:
@@ -47,20 +47,20 @@ public:
virtual sal_Int32 SAL_CALL nextCharacters(const rtl::OUString& text, sal_Int32 start,
const lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count,
sal_Int32& nDone) throw(com::sun::star::uno::RuntimeException);
- virtual LineBreakResults SAL_CALL getLineBreak( const rtl::OUString& Text, sal_Int32 nStartPos,
- const com::sun::star::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
- const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions )
+ virtual LineBreakResults SAL_CALL getLineBreak( const rtl::OUString& Text, sal_Int32 nStartPos,
+ const com::sun::star::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
+ const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions )
throw(com::sun::star::uno::RuntimeException);
protected:
rtl::OUString cachedText; // for cell index
sal_Int32* nextCellIndex;
sal_Int32* previousCellIndex;
sal_Int32 cellIndexSize;
-
+
virtual void SAL_CALL makeIndex(const rtl::OUString& text, sal_Int32 pos) throw(com::sun::star::uno::RuntimeException);
};
-} } } }
+} } } }
#endif
diff --git a/i18npool/inc/breakiterator_th.hxx b/i18npool/inc/breakiterator_th.hxx
index 0909d97a0df6..d794ee7c29e3 100644
--- a/i18npool/inc/breakiterator_th.hxx
+++ b/i18npool/inc/breakiterator_th.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,9 +31,9 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class BreakIterator_th
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class BreakIterator_th
+// ----------------------------------------------------
class BreakIterator_th : public BreakIterator_CTL
{
public:
@@ -44,7 +44,7 @@ protected:
void SAL_CALL makeIndex(const rtl::OUString& text, sal_Int32 pos) throw(com::sun::star::uno::RuntimeException);
};
-} } } }
+} } } }
#endif // _I18N_BREAKITERATOR_TH_HXX_
diff --git a/i18npool/inc/breakiterator_unicode.hxx b/i18npool/inc/breakiterator_unicode.hxx
index 57e0aadc7fc4..3eb26d3a17a8 100644
--- a/i18npool/inc/breakiterator_unicode.hxx
+++ b/i18npool/inc/breakiterator_unicode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,45 +39,45 @@ namespace com { namespace sun { namespace star { namespace i18n {
#define LOAD_SENTENCE_BREAKITERATOR 2
#define LOAD_LINE_BREAKITERATOR 3
-// ----------------------------------------------------
-// class BreakIterator_Unicode
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class BreakIterator_Unicode
+// ----------------------------------------------------
class BreakIterator_Unicode : public BreakIteratorImpl
{
public:
BreakIterator_Unicode();
~BreakIterator_Unicode();
- virtual sal_Int32 SAL_CALL previousCharacters( const rtl::OUString& Text, sal_Int32 nStartPos,
- const com::sun::star::lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
+ virtual sal_Int32 SAL_CALL previousCharacters( const rtl::OUString& Text, sal_Int32 nStartPos,
+ const com::sun::star::lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
sal_Int32& nDone ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL nextCharacters( const rtl::OUString& Text, sal_Int32 nStartPos,
- const com::sun::star::lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
+ virtual sal_Int32 SAL_CALL nextCharacters( const rtl::OUString& Text, sal_Int32 nStartPos,
+ const com::sun::star::lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount,
sal_Int32& nDone ) throw(com::sun::star::uno::RuntimeException);
- virtual Boundary SAL_CALL previousWord( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual Boundary SAL_CALL previousWord( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType) throw(com::sun::star::uno::RuntimeException);
- virtual Boundary SAL_CALL nextWord( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual Boundary SAL_CALL nextWord( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType) throw(com::sun::star::uno::RuntimeException);
- virtual Boundary SAL_CALL getWordBoundary( const rtl::OUString& Text, sal_Int32 nPos,
- const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection )
+ virtual Boundary SAL_CALL getWordBoundary( const rtl::OUString& Text, sal_Int32 nPos,
+ const com::sun::star::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL beginOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL beginOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL endOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos,
+ virtual sal_Int32 SAL_CALL endOfSentence( const rtl::OUString& Text, sal_Int32 nStartPos,
const com::sun::star::lang::Locale& nLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual LineBreakResults SAL_CALL getLineBreak( const rtl::OUString& Text, sal_Int32 nStartPos,
- const com::sun::star::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
- const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions )
+ virtual LineBreakResults SAL_CALL getLineBreak( const rtl::OUString& Text, sal_Int32 nStartPos,
+ const com::sun::star::lang::Locale& nLocale, sal_Int32 nMinBreakPos,
+ const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions )
throw(com::sun::star::uno::RuntimeException);
//XServiceInfo
virtual rtl::OUString SAL_CALL getImplementationName() throw( com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
+ virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
throw( com::sun::star::uno::RuntimeException );
- virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
+ virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
protected:
@@ -87,18 +87,18 @@ protected:
struct BI_Data {
UnicodeString aICUText;
icu::BreakIterator *aBreakIterator;
-
+
BI_Data() : aICUText(), aBreakIterator(NULL) {}
- } character, word, sentence, line, *icuBI;
+ } character, word, sentence, line, *icuBI;
com::sun::star::lang::Locale aLocale;
sal_Int16 aBreakType, aWordType;
- void SAL_CALL loadICUBreakIterator(const com::sun::star::lang::Locale& rLocale,
+ void SAL_CALL loadICUBreakIterator(const com::sun::star::lang::Locale& rLocale,
sal_Int16 rBreakType, sal_Int16 rWordType, const sal_Char* name, const rtl::OUString& rText) throw(com::sun::star::uno::RuntimeException);
};
-} } } }
+} } } }
#endif
diff --git a/i18npool/inc/bullet.h b/i18npool/inc/bullet.h
index 42dea9cfcb17..6ffa8ad7fc80 100644
--- a/i18npool/inc/bullet.h
+++ b/i18npool/inc/bullet.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,226 +29,226 @@
namespace com { namespace sun { namespace star { namespace i18n {
static sal_Unicode table_AIUFullWidth_ja_JP[] = {
- 0x30A2, // KATAKANA LETTER A
- 0x30A4, // KATAKANA LETTER I
- 0x30A6, // KATAKANA LETTER U
- 0x30A8, // KATAKANA LETTER E
- 0x30AA, // KATAKANA LETTER O
- 0x30AB, // KATAKANA LETTER KA
- 0x30AD, // KATAKANA LETTER KI
- 0x30AF, // KATAKANA LETTER KU
- 0x30B1, // KATAKANA LETTER KE
- 0x30B3, // KATAKANA LETTER KO
- 0x30B5, // KATAKANA LETTER SA
- 0x30B7, // KATAKANA LETTER SI
- 0x30B9, // KATAKANA LETTER SU
- 0x30BB, // KATAKANA LETTER SE
- 0x30BD, // KATAKANA LETTER SO
- 0x30BF, // KATAKANA LETTER TA
- 0x30C1, // KATAKANA LETTER TI
- 0x30C4, // KATAKANA LETTER TU
- 0x30C6, // KATAKANA LETTER TE
- 0x30C8, // KATAKANA LETTER TO
- 0x30CA, // KATAKANA LETTER NA
- 0x30CB, // KATAKANA LETTER NI
- 0x30CC, // KATAKANA LETTER NU
- 0x30CD, // KATAKANA LETTER NE
- 0x30CE, // KATAKANA LETTER NO
- 0x30CF, // KATAKANA LETTER HA
- 0x30D2, // KATAKANA LETTER HI
- 0x30D5, // KATAKANA LETTER HU
- 0x30D8, // KATAKANA LETTER HE
- 0x30DB, // KATAKANA LETTER HO
- 0x30DE, // KATAKANA LETTER MA
- 0x30DF, // KATAKANA LETTER MI
- 0x30E0, // KATAKANA LETTER MU
- 0x30E1, // KATAKANA LETTER ME
- 0x30E2, // KATAKANA LETTER MO
- 0x30E4, // KATAKANA LETTER YA
- 0x30E6, // KATAKANA LETTER YU
- 0x30E8, // KATAKANA LETTER YO
- 0x30E9, // KATAKANA LETTER RA
- 0x30EA, // KATAKANA LETTER RI
- 0x30EB, // KATAKANA LETTER RU
- 0x30EC, // KATAKANA LETTER RE
- 0x30ED, // KATAKANA LETTER RO
- 0x30EF, // KATAKANA LETTER WA
- 0x30F2, // KATAKANA LETTER WO
- 0x30F3 // KATAKANA LETTER N
+ 0x30A2, // KATAKANA LETTER A
+ 0x30A4, // KATAKANA LETTER I
+ 0x30A6, // KATAKANA LETTER U
+ 0x30A8, // KATAKANA LETTER E
+ 0x30AA, // KATAKANA LETTER O
+ 0x30AB, // KATAKANA LETTER KA
+ 0x30AD, // KATAKANA LETTER KI
+ 0x30AF, // KATAKANA LETTER KU
+ 0x30B1, // KATAKANA LETTER KE
+ 0x30B3, // KATAKANA LETTER KO
+ 0x30B5, // KATAKANA LETTER SA
+ 0x30B7, // KATAKANA LETTER SI
+ 0x30B9, // KATAKANA LETTER SU
+ 0x30BB, // KATAKANA LETTER SE
+ 0x30BD, // KATAKANA LETTER SO
+ 0x30BF, // KATAKANA LETTER TA
+ 0x30C1, // KATAKANA LETTER TI
+ 0x30C4, // KATAKANA LETTER TU
+ 0x30C6, // KATAKANA LETTER TE
+ 0x30C8, // KATAKANA LETTER TO
+ 0x30CA, // KATAKANA LETTER NA
+ 0x30CB, // KATAKANA LETTER NI
+ 0x30CC, // KATAKANA LETTER NU
+ 0x30CD, // KATAKANA LETTER NE
+ 0x30CE, // KATAKANA LETTER NO
+ 0x30CF, // KATAKANA LETTER HA
+ 0x30D2, // KATAKANA LETTER HI
+ 0x30D5, // KATAKANA LETTER HU
+ 0x30D8, // KATAKANA LETTER HE
+ 0x30DB, // KATAKANA LETTER HO
+ 0x30DE, // KATAKANA LETTER MA
+ 0x30DF, // KATAKANA LETTER MI
+ 0x30E0, // KATAKANA LETTER MU
+ 0x30E1, // KATAKANA LETTER ME
+ 0x30E2, // KATAKANA LETTER MO
+ 0x30E4, // KATAKANA LETTER YA
+ 0x30E6, // KATAKANA LETTER YU
+ 0x30E8, // KATAKANA LETTER YO
+ 0x30E9, // KATAKANA LETTER RA
+ 0x30EA, // KATAKANA LETTER RI
+ 0x30EB, // KATAKANA LETTER RU
+ 0x30EC, // KATAKANA LETTER RE
+ 0x30ED, // KATAKANA LETTER RO
+ 0x30EF, // KATAKANA LETTER WA
+ 0x30F2, // KATAKANA LETTER WO
+ 0x30F3 // KATAKANA LETTER N
};
static sal_Unicode table_AIUHalfWidth_ja_JP[] = {
- 0xFF71, // HALFWIDTH KATAKANA LETTER A
- 0xFF72, // HALFWIDTH KATAKANA LETTER I
- 0xFF73, // HALFWIDTH KATAKANA LETTER U
- 0xFF74, // HALFWIDTH KATAKANA LETTER E
- 0xFF75, // HALFWIDTH KATAKANA LETTER O
- 0xFF76, // HALFWIDTH KATAKANA LETTER KA
- 0xFF77, // HALFWIDTH KATAKANA LETTER KI
- 0xFF78, // HALFWIDTH KATAKANA LETTER KU
- 0xFF79, // HALFWIDTH KATAKANA LETTER KE
- 0xFF7A, // HALFWIDTH KATAKANA LETTER KO
- 0xFF7B, // HALFWIDTH KATAKANA LETTER SA
- 0xFF7C, // HALFWIDTH KATAKANA LETTER SI
- 0xFF7D, // HALFWIDTH KATAKANA LETTER SU
- 0xFF7E, // HALFWIDTH KATAKANA LETTER SE
- 0xFF7F, // HALFWIDTH KATAKANA LETTER SO
- 0xFF80, // HALFWIDTH KATAKANA LETTER TA
- 0xFF81, // HALFWIDTH KATAKANA LETTER TI
- 0xFF82, // HALFWIDTH KATAKANA LETTER TU
- 0xFF83, // HALFWIDTH KATAKANA LETTER TE
- 0xFF84, // HALFWIDTH KATAKANA LETTER TO
- 0xFF85, // HALFWIDTH KATAKANA LETTER NA
- 0xFF86, // HALFWIDTH KATAKANA LETTER NI
- 0xFF87, // HALFWIDTH KATAKANA LETTER NU
- 0xFF88, // HALFWIDTH KATAKANA LETTER NE
- 0xFF89, // HALFWIDTH KATAKANA LETTER NO
- 0xFF8A, // HALFWIDTH KATAKANA LETTER HA
- 0xFF8B, // HALFWIDTH KATAKANA LETTER HI
- 0xFF8C, // HALFWIDTH KATAKANA LETTER HU
- 0xFF8D, // HALFWIDTH KATAKANA LETTER HE
- 0xFF8E, // HALFWIDTH KATAKANA LETTER HO
- 0xFF8F, // HALFWIDTH KATAKANA LETTER MA
- 0xFF90, // HALFWIDTH KATAKANA LETTER MI
- 0xFF91, // HALFWIDTH KATAKANA LETTER MU
- 0xFF92, // HALFWIDTH KATAKANA LETTER ME
- 0xFF93, // HALFWIDTH KATAKANA LETTER MO
- 0xFF94, // HALFWIDTH KATAKANA LETTER YA
- 0xFF95, // HALFWIDTH KATAKANA LETTER YU
- 0xFF96, // HALFWIDTH KATAKANA LETTER YO
- 0xFF97, // HALFWIDTH KATAKANA LETTER RA
- 0xFF98, // HALFWIDTH KATAKANA LETTER RI
- 0xFF99, // HALFWIDTH KATAKANA LETTER RU
- 0xFF9A, // HALFWIDTH KATAKANA LETTER RE
- 0xFF9B, // HALFWIDTH KATAKANA LETTER RO
- 0xFF9C, // HALFWIDTH KATAKANA LETTER WA
- 0xFF66, // HALFWIDTH KATAKANA LETTER WO
- 0xFF9D // HALFWIDTH KATAKANA LETTER N
+ 0xFF71, // HALFWIDTH KATAKANA LETTER A
+ 0xFF72, // HALFWIDTH KATAKANA LETTER I
+ 0xFF73, // HALFWIDTH KATAKANA LETTER U
+ 0xFF74, // HALFWIDTH KATAKANA LETTER E
+ 0xFF75, // HALFWIDTH KATAKANA LETTER O
+ 0xFF76, // HALFWIDTH KATAKANA LETTER KA
+ 0xFF77, // HALFWIDTH KATAKANA LETTER KI
+ 0xFF78, // HALFWIDTH KATAKANA LETTER KU
+ 0xFF79, // HALFWIDTH KATAKANA LETTER KE
+ 0xFF7A, // HALFWIDTH KATAKANA LETTER KO
+ 0xFF7B, // HALFWIDTH KATAKANA LETTER SA
+ 0xFF7C, // HALFWIDTH KATAKANA LETTER SI
+ 0xFF7D, // HALFWIDTH KATAKANA LETTER SU
+ 0xFF7E, // HALFWIDTH KATAKANA LETTER SE
+ 0xFF7F, // HALFWIDTH KATAKANA LETTER SO
+ 0xFF80, // HALFWIDTH KATAKANA LETTER TA
+ 0xFF81, // HALFWIDTH KATAKANA LETTER TI
+ 0xFF82, // HALFWIDTH KATAKANA LETTER TU
+ 0xFF83, // HALFWIDTH KATAKANA LETTER TE
+ 0xFF84, // HALFWIDTH KATAKANA LETTER TO
+ 0xFF85, // HALFWIDTH KATAKANA LETTER NA
+ 0xFF86, // HALFWIDTH KATAKANA LETTER NI
+ 0xFF87, // HALFWIDTH KATAKANA LETTER NU
+ 0xFF88, // HALFWIDTH KATAKANA LETTER NE
+ 0xFF89, // HALFWIDTH KATAKANA LETTER NO
+ 0xFF8A, // HALFWIDTH KATAKANA LETTER HA
+ 0xFF8B, // HALFWIDTH KATAKANA LETTER HI
+ 0xFF8C, // HALFWIDTH KATAKANA LETTER HU
+ 0xFF8D, // HALFWIDTH KATAKANA LETTER HE
+ 0xFF8E, // HALFWIDTH KATAKANA LETTER HO
+ 0xFF8F, // HALFWIDTH KATAKANA LETTER MA
+ 0xFF90, // HALFWIDTH KATAKANA LETTER MI
+ 0xFF91, // HALFWIDTH KATAKANA LETTER MU
+ 0xFF92, // HALFWIDTH KATAKANA LETTER ME
+ 0xFF93, // HALFWIDTH KATAKANA LETTER MO
+ 0xFF94, // HALFWIDTH KATAKANA LETTER YA
+ 0xFF95, // HALFWIDTH KATAKANA LETTER YU
+ 0xFF96, // HALFWIDTH KATAKANA LETTER YO
+ 0xFF97, // HALFWIDTH KATAKANA LETTER RA
+ 0xFF98, // HALFWIDTH KATAKANA LETTER RI
+ 0xFF99, // HALFWIDTH KATAKANA LETTER RU
+ 0xFF9A, // HALFWIDTH KATAKANA LETTER RE
+ 0xFF9B, // HALFWIDTH KATAKANA LETTER RO
+ 0xFF9C, // HALFWIDTH KATAKANA LETTER WA
+ 0xFF66, // HALFWIDTH KATAKANA LETTER WO
+ 0xFF9D // HALFWIDTH KATAKANA LETTER N
};
static sal_Unicode table_IROHAFullWidth_ja_JP[] = {
- 0x30A4, // KATAKANA LETTER I
- 0x30ED, // KATAKANA LETTER RO
- 0x30CF, // KATAKANA LETTER HA
- 0x30CB, // KATAKANA LETTER NI
- 0x30DB, // KATAKANA LETTER HO
- 0x30D8, // KATAKANA LETTER HE
- 0x30C8, // KATAKANA LETTER TO
- 0x30C1, // KATAKANA LETTER TI
- 0x30EA, // KATAKANA LETTER RI
- 0x30CC, // KATAKANA LETTER NU
- 0x30EB, // KATAKANA LETTER RU
- 0x30F2, // KATAKANA LETTER WO
- 0x30EF, // KATAKANA LETTER WA
- 0x30AB, // KATAKANA LETTER KA
- 0x30E8, // KATAKANA LETTER YO
- 0x30BF, // KATAKANA LETTER TA
- 0x30EC, // KATAKANA LETTER RE
- 0x30BD, // KATAKANA LETTER SO
- 0x30C4, // KATAKANA LETTER TU
- 0x30CD, // KATAKANA LETTER NE
- 0x30CA, // KATAKANA LETTER NA
- 0x30E9, // KATAKANA LETTER RA
- 0x30E0, // KATAKANA LETTER MU
- 0x30A6, // KATAKANA LETTER U
- 0x30F0, // KATAKANA LETTER WI
- 0x30CE, // KATAKANA LETTER NO
- 0x30AA, // KATAKANA LETTER O
- 0x30AF, // KATAKANA LETTER KU
- 0x30E4, // KATAKANA LETTER YA
- 0x30DE, // KATAKANA LETTER MA
- 0x30B1, // KATAKANA LETTER KE
- 0x30D5, // KATAKANA LETTER HU
- 0x30B3, // KATAKANA LETTER KO
- 0x30A8, // KATAKANA LETTER E
- 0x30C6, // KATAKANA LETTER TE
- 0x30A2, // KATAKANA LETTER A
- 0x30B5, // KATAKANA LETTER SA
- 0x30AD, // KATAKANA LETTER KI
- 0x30E6, // KATAKANA LETTER YU
- 0x30E1, // KATAKANA LETTER ME
- 0x30DF, // KATAKANA LETTER MI
- 0x30B7, // KATAKANA LETTER SI
- 0x30F1, // KATAKANA LETTER WE
- 0x30D2, // KATAKANA LETTER HI
- 0x30E2, // KATAKANA LETTER MO
- 0x30BB, // KATAKANA LETTER SE
- 0x30B9, // KATAKANA LETTER SU
- 0x30F3 // KATAKANA LETTER N
+ 0x30A4, // KATAKANA LETTER I
+ 0x30ED, // KATAKANA LETTER RO
+ 0x30CF, // KATAKANA LETTER HA
+ 0x30CB, // KATAKANA LETTER NI
+ 0x30DB, // KATAKANA LETTER HO
+ 0x30D8, // KATAKANA LETTER HE
+ 0x30C8, // KATAKANA LETTER TO
+ 0x30C1, // KATAKANA LETTER TI
+ 0x30EA, // KATAKANA LETTER RI
+ 0x30CC, // KATAKANA LETTER NU
+ 0x30EB, // KATAKANA LETTER RU
+ 0x30F2, // KATAKANA LETTER WO
+ 0x30EF, // KATAKANA LETTER WA
+ 0x30AB, // KATAKANA LETTER KA
+ 0x30E8, // KATAKANA LETTER YO
+ 0x30BF, // KATAKANA LETTER TA
+ 0x30EC, // KATAKANA LETTER RE
+ 0x30BD, // KATAKANA LETTER SO
+ 0x30C4, // KATAKANA LETTER TU
+ 0x30CD, // KATAKANA LETTER NE
+ 0x30CA, // KATAKANA LETTER NA
+ 0x30E9, // KATAKANA LETTER RA
+ 0x30E0, // KATAKANA LETTER MU
+ 0x30A6, // KATAKANA LETTER U
+ 0x30F0, // KATAKANA LETTER WI
+ 0x30CE, // KATAKANA LETTER NO
+ 0x30AA, // KATAKANA LETTER O
+ 0x30AF, // KATAKANA LETTER KU
+ 0x30E4, // KATAKANA LETTER YA
+ 0x30DE, // KATAKANA LETTER MA
+ 0x30B1, // KATAKANA LETTER KE
+ 0x30D5, // KATAKANA LETTER HU
+ 0x30B3, // KATAKANA LETTER KO
+ 0x30A8, // KATAKANA LETTER E
+ 0x30C6, // KATAKANA LETTER TE
+ 0x30A2, // KATAKANA LETTER A
+ 0x30B5, // KATAKANA LETTER SA
+ 0x30AD, // KATAKANA LETTER KI
+ 0x30E6, // KATAKANA LETTER YU
+ 0x30E1, // KATAKANA LETTER ME
+ 0x30DF, // KATAKANA LETTER MI
+ 0x30B7, // KATAKANA LETTER SI
+ 0x30F1, // KATAKANA LETTER WE
+ 0x30D2, // KATAKANA LETTER HI
+ 0x30E2, // KATAKANA LETTER MO
+ 0x30BB, // KATAKANA LETTER SE
+ 0x30B9, // KATAKANA LETTER SU
+ 0x30F3 // KATAKANA LETTER N
};
static sal_Unicode table_IROHAHalfWidth_ja_JP[] = {
- 0xFF72, // HALFWIDTH KATAKANA LETTER I
- 0xFF9B, // HALFWIDTH KATAKANA LETTER RO
- 0xFF8A, // HALFWIDTH KATAKANA LETTER HA
- 0xFF86, // HALFWIDTH KATAKANA LETTER NI
- 0xFF8E, // HALFWIDTH KATAKANA LETTER HO
- 0xFF8D, // HALFWIDTH KATAKANA LETTER HE
- 0xFF84, // HALFWIDTH KATAKANA LETTER TO
- 0xFF81, // HALFWIDTH KATAKANA LETTER TI
- 0xFF98, // HALFWIDTH KATAKANA LETTER RI
- 0xFF87, // HALFWIDTH KATAKANA LETTER NU
- 0xFF99, // HALFWIDTH KATAKANA LETTER RU
- 0xFF66, // HALFWIDTH KATAKANA LETTER WO
- 0xFF9C, // HALFWIDTH KATAKANA LETTER WA
- 0xFF76, // HALFWIDTH KATAKANA LETTER KA
- 0xFF96, // HALFWIDTH KATAKANA LETTER YO
- 0xFF80, // HALFWIDTH KATAKANA LETTER TA
- 0xFF9A, // HALFWIDTH KATAKANA LETTER RE
- 0xFF7F, // HALFWIDTH KATAKANA LETTER SO
- 0xFF82, // HALFWIDTH KATAKANA LETTER TU
- 0xFF88, // HALFWIDTH KATAKANA LETTER NE
- 0xFF85, // HALFWIDTH KATAKANA LETTER NA
- 0xFF97, // HALFWIDTH KATAKANA LETTER RA
- 0xFF91, // HALFWIDTH KATAKANA LETTER MU
- 0xFF73, // HALFWIDTH KATAKANA LETTER U
- 0x30F0, // KATAKANA LETTER WI
- 0xFF89, // HALFWIDTH KATAKANA LETTER NO
- 0xFF75, // HALFWIDTH KATAKANA LETTER O
- 0xFF78, // HALFWIDTH KATAKANA LETTER KU
- 0xFF94, // HALFWIDTH KATAKANA LETTER YA
- 0xFF8F, // HALFWIDTH KATAKANA LETTER MA
- 0xFF79, // HALFWIDTH KATAKANA LETTER KE
- 0xFF8C, // HALFWIDTH KATAKANA LETTER HU
- 0xFF7A, // HALFWIDTH KATAKANA LETTER KO
- 0xFF74, // HALFWIDTH KATAKANA LETTER E
- 0xFF83, // HALFWIDTH KATAKANA LETTER TE
- 0xFF71, // HALFWIDTH KATAKANA LETTER A
- 0xFF7B, // HALFWIDTH KATAKANA LETTER SA
- 0xFF77, // HALFWIDTH KATAKANA LETTER KI
- 0xFF95, // HALFWIDTH KATAKANA LETTER YU
- 0xFF92, // HALFWIDTH KATAKANA LETTER ME
- 0xFF90, // HALFWIDTH KATAKANA LETTER MI
- 0xFF7C, // HALFWIDTH KATAKANA LETTER SI
- 0x30F1, // KATAKANA LETTER WE
- 0xFF8B, // HALFWIDTH KATAKANA LETTER HI
- 0xFF93, // HALFWIDTH KATAKANA LETTER MO
- 0xFF7E, // HALFWIDTH KATAKANA LETTER SE
- 0xFF7D, // HALFWIDTH KATAKANA LETTER SU
- 0xFF9D // HALFWIDTH KATAKANA LETTER N
+ 0xFF72, // HALFWIDTH KATAKANA LETTER I
+ 0xFF9B, // HALFWIDTH KATAKANA LETTER RO
+ 0xFF8A, // HALFWIDTH KATAKANA LETTER HA
+ 0xFF86, // HALFWIDTH KATAKANA LETTER NI
+ 0xFF8E, // HALFWIDTH KATAKANA LETTER HO
+ 0xFF8D, // HALFWIDTH KATAKANA LETTER HE
+ 0xFF84, // HALFWIDTH KATAKANA LETTER TO
+ 0xFF81, // HALFWIDTH KATAKANA LETTER TI
+ 0xFF98, // HALFWIDTH KATAKANA LETTER RI
+ 0xFF87, // HALFWIDTH KATAKANA LETTER NU
+ 0xFF99, // HALFWIDTH KATAKANA LETTER RU
+ 0xFF66, // HALFWIDTH KATAKANA LETTER WO
+ 0xFF9C, // HALFWIDTH KATAKANA LETTER WA
+ 0xFF76, // HALFWIDTH KATAKANA LETTER KA
+ 0xFF96, // HALFWIDTH KATAKANA LETTER YO
+ 0xFF80, // HALFWIDTH KATAKANA LETTER TA
+ 0xFF9A, // HALFWIDTH KATAKANA LETTER RE
+ 0xFF7F, // HALFWIDTH KATAKANA LETTER SO
+ 0xFF82, // HALFWIDTH KATAKANA LETTER TU
+ 0xFF88, // HALFWIDTH KATAKANA LETTER NE
+ 0xFF85, // HALFWIDTH KATAKANA LETTER NA
+ 0xFF97, // HALFWIDTH KATAKANA LETTER RA
+ 0xFF91, // HALFWIDTH KATAKANA LETTER MU
+ 0xFF73, // HALFWIDTH KATAKANA LETTER U
+ 0x30F0, // KATAKANA LETTER WI
+ 0xFF89, // HALFWIDTH KATAKANA LETTER NO
+ 0xFF75, // HALFWIDTH KATAKANA LETTER O
+ 0xFF78, // HALFWIDTH KATAKANA LETTER KU
+ 0xFF94, // HALFWIDTH KATAKANA LETTER YA
+ 0xFF8F, // HALFWIDTH KATAKANA LETTER MA
+ 0xFF79, // HALFWIDTH KATAKANA LETTER KE
+ 0xFF8C, // HALFWIDTH KATAKANA LETTER HU
+ 0xFF7A, // HALFWIDTH KATAKANA LETTER KO
+ 0xFF74, // HALFWIDTH KATAKANA LETTER E
+ 0xFF83, // HALFWIDTH KATAKANA LETTER TE
+ 0xFF71, // HALFWIDTH KATAKANA LETTER A
+ 0xFF7B, // HALFWIDTH KATAKANA LETTER SA
+ 0xFF77, // HALFWIDTH KATAKANA LETTER KI
+ 0xFF95, // HALFWIDTH KATAKANA LETTER YU
+ 0xFF92, // HALFWIDTH KATAKANA LETTER ME
+ 0xFF90, // HALFWIDTH KATAKANA LETTER MI
+ 0xFF7C, // HALFWIDTH KATAKANA LETTER SI
+ 0x30F1, // KATAKANA LETTER WE
+ 0xFF8B, // HALFWIDTH KATAKANA LETTER HI
+ 0xFF93, // HALFWIDTH KATAKANA LETTER MO
+ 0xFF7E, // HALFWIDTH KATAKANA LETTER SE
+ 0xFF7D, // HALFWIDTH KATAKANA LETTER SU
+ 0xFF9D // HALFWIDTH KATAKANA LETTER N
};
static sal_Unicode table_CircledNumber[] = {
- 0x2460, // CIRCLED DIGIT ONE
- 0x2461, // CIRCLED DIGIT TWO
- 0x2462, // CIRCLED DIGIT THREE
- 0x2463, // CIRCLED DIGIT FOUR
- 0x2464, // CIRCLED DIGIT FIVE
- 0x2465, // CIRCLED DIGIT SIX
- 0x2466, // CIRCLED DIGIT SEVEN
- 0x2467, // CIRCLED DIGIT EIGHT
- 0x2468, // CIRCLED DIGIT NINE
- 0x2469, // CIRCLED NUMBER TEN
- 0x246A, // CIRCLED NUMBER ELEVEN
- 0x246B, // CIRCLED NUMBER TWELVE
- 0x246C, // CIRCLED NUMBER THIRTEEN
- 0x246D, // CIRCLED NUMBER FOURTEEN
- 0x246E, // CIRCLED NUMBER FIFTEEN
- 0x246F, // CIRCLED NUMBER SIXTEEN
- 0x2470, // CIRCLED NUMBER SEVENTEEN
- 0x2471, // CIRCLED NUMBER EIGHTEEN
- 0x2472, // CIRCLED NUMBER NINETEEN
- 0x2473 // CIRCLED NUMBER TWENTY
+ 0x2460, // CIRCLED DIGIT ONE
+ 0x2461, // CIRCLED DIGIT TWO
+ 0x2462, // CIRCLED DIGIT THREE
+ 0x2463, // CIRCLED DIGIT FOUR
+ 0x2464, // CIRCLED DIGIT FIVE
+ 0x2465, // CIRCLED DIGIT SIX
+ 0x2466, // CIRCLED DIGIT SEVEN
+ 0x2467, // CIRCLED DIGIT EIGHT
+ 0x2468, // CIRCLED DIGIT NINE
+ 0x2469, // CIRCLED NUMBER TEN
+ 0x246A, // CIRCLED NUMBER ELEVEN
+ 0x246B, // CIRCLED NUMBER TWELVE
+ 0x246C, // CIRCLED NUMBER THIRTEEN
+ 0x246D, // CIRCLED NUMBER FOURTEEN
+ 0x246E, // CIRCLED NUMBER FIFTEEN
+ 0x246F, // CIRCLED NUMBER SIXTEEN
+ 0x2470, // CIRCLED NUMBER SEVENTEEN
+ 0x2471, // CIRCLED NUMBER EIGHTEEN
+ 0x2472, // CIRCLED NUMBER NINETEEN
+ 0x2473 // CIRCLED NUMBER TWENTY
};
static sal_Unicode table_HangulJamo_ko[] = {
diff --git a/i18npool/inc/calendarImpl.hxx b/i18npool/inc/calendarImpl.hxx
index 7923faed556f..c872a9798b54 100644
--- a/i18npool/inc/calendarImpl.hxx
+++ b/i18npool/inc/calendarImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,14 +36,14 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <vector>
-// ----------------------------------------------------
-// class CalendarImpl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class CalendarImpl
+// ----------------------------------------------------
namespace com { namespace sun { namespace star { namespace i18n {
class CalendarImpl : public cppu::WeakImplHelper2
-<
+<
com::sun::star::i18n::XExtendedCalendar,
com::sun::star::lang::XServiceInfo
>
@@ -92,7 +92,7 @@ public:
private:
struct lookupTableItem {
- lookupTableItem(const rtl::OUString& _uniqueID, com::sun::star::uno::Reference < com::sun::star::i18n::XExtendedCalendar >& _xCalendar) :
+ lookupTableItem(const rtl::OUString& _uniqueID, com::sun::star::uno::Reference < com::sun::star::i18n::XExtendedCalendar >& _xCalendar) :
uniqueID(_uniqueID), xCalendar(_xCalendar) {}
rtl::OUString uniqueID;
com::sun::star::uno::Reference < com::sun::star::i18n::XExtendedCalendar > xCalendar;
diff --git a/i18npool/inc/calendar_gregorian.hxx b/i18npool/inc/calendar_gregorian.hxx
index 1f9cdc8388cb..96af21e43059 100644
--- a/i18npool/inc/calendar_gregorian.hxx
+++ b/i18npool/inc/calendar_gregorian.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,9 +33,9 @@
#include "warnings_guard_unicode_calendar.h"
-// ----------------------------------------------------
-// class Calendar_gregorian
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class Calendar_gregorian
+// ----------------------------------------------------
namespace com { namespace sun { namespace star { namespace i18n {
@@ -125,9 +125,9 @@ private:
bool getCombinedOffset( sal_Int32 & o_nOffset, sal_Int16 nParentFieldIndex, sal_Int16 nChildFieldIndex ) const;
};
-// ----------------------------------------------------
-// class Calendar_hanja
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class Calendar_hanja
+// ----------------------------------------------------
class Calendar_hanja : public Calendar_gregorian
{
public:
@@ -137,9 +137,9 @@ public:
virtual rtl::OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) throw(com::sun::star::uno::RuntimeException);
};
-// ----------------------------------------------------
-// class Calendar_gengou
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class Calendar_gengou
+// ----------------------------------------------------
class Calendar_gengou : public Calendar_gregorian
{
public:
@@ -147,9 +147,9 @@ public:
Calendar_gengou();
};
-// ----------------------------------------------------
-// class Calendar_ROC
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class Calendar_ROC
+// ----------------------------------------------------
class Calendar_ROC : public Calendar_gregorian
{
public:
@@ -157,9 +157,9 @@ public:
Calendar_ROC();
};
-// ----------------------------------------------------
-// class Calendar_buddhist
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class Calendar_buddhist
+// ----------------------------------------------------
class Calendar_buddhist : public Calendar_gregorian
{
public:
diff --git a/i18npool/inc/calendar_hijri.hxx b/i18npool/inc/calendar_hijri.hxx
index f59713f36d7d..84de6a1b5d46 100644
--- a/i18npool/inc/calendar_hijri.hxx
+++ b/i18npool/inc/calendar_hijri.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,9 +31,9 @@
#include "calendar_gregorian.hxx"
-// ----------------------------------------------------
-// class Calendar_hijri
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class Calendar_hijri
+// ----------------------------------------------------
namespace com { namespace sun { namespace star { namespace i18n {
@@ -54,7 +54,7 @@ protected:
// Synodic Period (mean time between 2 successive new moon: 29d, 12 hr, 44min, 3sec
static const double SynPeriod;
- static const double SynMonth; // Solar days in a year/SynPeriod
+ static const double SynMonth; // Solar days in a year/SynPeriod
// Julian day on Jan 1, 1900
static const double jd1900;
@@ -64,11 +64,11 @@ protected:
static const sal_Int32 GregRef;
// Local time (Saudi Arabia)
- static const double SA_TimeZone; // Time Zone
+ static const double SA_TimeZone; // Time Zone
// Period between 1.30pm - 6:30pm
static const double EveningPeriod;
-
+
// "Leap" years
static const sal_Int32 LeapYear[];
diff --git a/i18npool/inc/calendar_jewish.hxx b/i18npool/inc/calendar_jewish.hxx
index d5962e0041db..1f7f089cf3f8 100644
--- a/i18npool/inc/calendar_jewish.hxx
+++ b/i18npool/inc/calendar_jewish.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,9 +30,9 @@
#include "calendar_gregorian.hxx"
-// ----------------------------------------------------
-// class Calendar_jewish
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class Calendar_jewish
+// ----------------------------------------------------
namespace com { namespace sun { namespace star { namespace i18n {
diff --git a/i18npool/inc/cclass_cjk.hxx b/i18npool/inc/cclass_cjk.hxx
index 0afa6a511d3c..29e95fc0efc5 100644
--- a/i18npool/inc/cclass_cjk.hxx
+++ b/i18npool/inc/cclass_cjk.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,17 +32,17 @@
namespace com { namespace sun { namespace star { namespace i18n {
-#define MAXLEN 31 // Define max length for CJK number
+#define MAXLEN 31 // Define max length for CJK number
-#define ZERO 0x0030 // Define unicode zero
-#define ONE 0x0031 // Define unicode one
+#define ZERO 0x0030 // Define unicode zero
+#define ONE 0x0031 // Define unicode one
class cclass_CJK : public cclass_Unicode {
public:
cclass_CJK( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
~cclass_CJK();
i18n::ParseResult SAL_CALL parsePredefinedToken(
- sal_Int32 nTokenType,
+ sal_Int32 nTokenType,
const rtl::OUString& Text,
sal_Int32 nPos,
const com::sun::star::lang::Locale& rLocale,
@@ -56,8 +56,8 @@ protected:
sal_Int32 size;
rtl::OUString number;
sal_Unicode *text;
- sal_Int32 textPos;
-
+ sal_Int32 textPos;
+
sal_Unicode *Upper;
sal_Unicode *Base;
sal_Unicode *Plus;
@@ -91,7 +91,7 @@ CCLASS_CJK(cclass_ko)
#endif
#undef CCLASS_CJK
-} } } }
+} } } }
#endif
diff --git a/i18npool/inc/cclass_unicode.hxx b/i18npool/inc/cclass_unicode.hxx
index 61d8f14573c4..5aa32daa218c 100644
--- a/i18npool/inc/cclass_unicode.hxx
+++ b/i18npool/inc/cclass_unicode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,26 +48,26 @@ public:
cclass_Unicode(com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > xSMgr );
~cclass_Unicode();
- virtual rtl::OUString SAL_CALL toUpper( const rtl::OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
+ virtual rtl::OUString SAL_CALL toUpper( const rtl::OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL toLower( const rtl::OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
+ virtual rtl::OUString SAL_CALL toLower( const rtl::OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL toTitle( const rtl::OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
+ virtual rtl::OUString SAL_CALL toTitle( const rtl::OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
virtual sal_Int16 SAL_CALL getType( const rtl::OUString& Text, sal_Int32 nPos ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getCharacterDirection( const rtl::OUString& Text, sal_Int32 nPos )
+ virtual sal_Int16 SAL_CALL getCharacterDirection( const rtl::OUString& Text, sal_Int32 nPos )
throw(com::sun::star::uno::RuntimeException);
virtual sal_Int16 SAL_CALL getScript( const rtl::OUString& Text, sal_Int32 nPos ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getCharacterType( const rtl::OUString& text, sal_Int32 nPos,
+ virtual sal_Int32 SAL_CALL getCharacterType( const rtl::OUString& text, sal_Int32 nPos,
const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getStringType( const rtl::OUString& text, sal_Int32 nPos, sal_Int32 nCount,
+ virtual sal_Int32 SAL_CALL getStringType( const rtl::OUString& text, sal_Int32 nPos, sal_Int32 nCount,
const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
- virtual ParseResult SAL_CALL parseAnyToken( const rtl::OUString& Text, sal_Int32 nPos,
- const com::sun::star::lang::Locale& rLocale, sal_Int32 nStartCharFlags, const rtl::OUString& userDefinedCharactersStart,
+ virtual ParseResult SAL_CALL parseAnyToken( const rtl::OUString& Text, sal_Int32 nPos,
+ const com::sun::star::lang::Locale& rLocale, sal_Int32 nStartCharFlags, const rtl::OUString& userDefinedCharactersStart,
sal_Int32 nContCharFlags, const rtl::OUString& userDefinedCharactersCont ) throw(com::sun::star::uno::RuntimeException);
- virtual ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType, const rtl::OUString& Text,
- sal_Int32 nPos, const com::sun::star::lang::Locale& rLocale, sal_Int32 nStartCharFlags,
- const rtl::OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags,
+ virtual ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType, const rtl::OUString& Text,
+ sal_Int32 nPos, const com::sun::star::lang::Locale& rLocale, sal_Int32 nStartCharFlags,
+ const rtl::OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags,
const rtl::OUString& userDefinedCharactersCont ) throw(com::sun::star::uno::RuntimeException);
//XServiceInfo
@@ -98,51 +98,51 @@ private:
ssStop
};
- static const sal_uInt8 nDefCnt;
- static const UPT_FLAG_TYPE pDefaultParserTable[];
- static const sal_Int32 pParseTokensType[];
+ static const sal_uInt8 nDefCnt;
+ static const UPT_FLAG_TYPE pDefaultParserTable[];
+ static const sal_Int32 pParseTokensType[];
/// Flag values of table.
- static const UPT_FLAG_TYPE TOKEN_ILLEGAL;
- static const UPT_FLAG_TYPE TOKEN_CHAR;
- static const UPT_FLAG_TYPE TOKEN_CHAR_BOOL;
- static const UPT_FLAG_TYPE TOKEN_CHAR_WORD;
- static const UPT_FLAG_TYPE TOKEN_CHAR_VALUE;
- static const UPT_FLAG_TYPE TOKEN_CHAR_STRING;
- static const UPT_FLAG_TYPE TOKEN_CHAR_DONTCARE;
- static const UPT_FLAG_TYPE TOKEN_BOOL;
- static const UPT_FLAG_TYPE TOKEN_WORD;
- static const UPT_FLAG_TYPE TOKEN_WORD_SEP;
- static const UPT_FLAG_TYPE TOKEN_VALUE;
- static const UPT_FLAG_TYPE TOKEN_VALUE_SEP;
- static const UPT_FLAG_TYPE TOKEN_VALUE_EXP;
- static const UPT_FLAG_TYPE TOKEN_VALUE_SIGN;
- static const UPT_FLAG_TYPE TOKEN_VALUE_EXP_VALUE;
- static const UPT_FLAG_TYPE TOKEN_VALUE_DIGIT;
- static const UPT_FLAG_TYPE TOKEN_NAME_SEP;
- static const UPT_FLAG_TYPE TOKEN_STRING_SEP;
- static const UPT_FLAG_TYPE TOKEN_EXCLUDED;
+ static const UPT_FLAG_TYPE TOKEN_ILLEGAL;
+ static const UPT_FLAG_TYPE TOKEN_CHAR;
+ static const UPT_FLAG_TYPE TOKEN_CHAR_BOOL;
+ static const UPT_FLAG_TYPE TOKEN_CHAR_WORD;
+ static const UPT_FLAG_TYPE TOKEN_CHAR_VALUE;
+ static const UPT_FLAG_TYPE TOKEN_CHAR_STRING;
+ static const UPT_FLAG_TYPE TOKEN_CHAR_DONTCARE;
+ static const UPT_FLAG_TYPE TOKEN_BOOL;
+ static const UPT_FLAG_TYPE TOKEN_WORD;
+ static const UPT_FLAG_TYPE TOKEN_WORD_SEP;
+ static const UPT_FLAG_TYPE TOKEN_VALUE;
+ static const UPT_FLAG_TYPE TOKEN_VALUE_SEP;
+ static const UPT_FLAG_TYPE TOKEN_VALUE_EXP;
+ static const UPT_FLAG_TYPE TOKEN_VALUE_SIGN;
+ static const UPT_FLAG_TYPE TOKEN_VALUE_EXP_VALUE;
+ static const UPT_FLAG_TYPE TOKEN_VALUE_DIGIT;
+ static const UPT_FLAG_TYPE TOKEN_NAME_SEP;
+ static const UPT_FLAG_TYPE TOKEN_STRING_SEP;
+ static const UPT_FLAG_TYPE TOKEN_EXCLUDED;
/// If and where c occurs in pStr
- static const sal_Unicode* StrChr( const sal_Unicode* pStr, sal_Unicode c );
+ static const sal_Unicode* StrChr( const sal_Unicode* pStr, sal_Unicode c );
com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > xMSF;
/// used for parser only
- com::sun::star::lang::Locale aParserLocale;
+ com::sun::star::lang::Locale aParserLocale;
com::sun::star::uno::Reference < XLocaleData > xLocaleData;
com::sun::star::uno::Reference < com::sun::star::i18n::XNativeNumberSupplier > xNatNumSup;
rtl::OUString aStartChars;
rtl::OUString aContChars;
- UPT_FLAG_TYPE* pTable;
- UPT_FLAG_TYPE* pStart;
- UPT_FLAG_TYPE* pCont;
- sal_Int32 nStartTypes;
- sal_Int32 nContTypes;
- ScanState eState;
- sal_Unicode cGroupSep;
- sal_Unicode cDecimalSep;
+ UPT_FLAG_TYPE* pTable;
+ UPT_FLAG_TYPE* pStart;
+ UPT_FLAG_TYPE* pCont;
+ sal_Int32 nStartTypes;
+ sal_Int32 nContTypes;
+ ScanState eState;
+ sal_Unicode cGroupSep;
+ sal_Unicode cDecimalSep;
/// Get corresponding KParseTokens flag for a character
sal_Int32 getParseTokensType( const sal_Unicode* aStr, sal_Int32 nPos );
@@ -184,7 +184,7 @@ private:
};
-} } } }
+} } } }
#endif
diff --git a/i18npool/inc/chaptercollator.hxx b/i18npool/inc/chaptercollator.hxx
index 21d3b0098faf..9e5052f61465 100644
--- a/i18npool/inc/chaptercollator.hxx
+++ b/i18npool/inc/chaptercollator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ public:
virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw( com::sun::star::uno::RuntimeException );
private :
- // CharacterClassification Implementation
+ // CharacterClassification Implementation
com::sun::star::uno::Reference< XCharacterClassification > cclass;
};
diff --git a/i18npool/inc/characterclassificationImpl.hxx b/i18npool/inc/characterclassificationImpl.hxx
index e30f64bcb006..03479515d34d 100644
--- a/i18npool/inc/characterclassificationImpl.hxx
+++ b/i18npool/inc/characterclassificationImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,36 +47,36 @@ public:
CharacterClassificationImpl( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
virtual ~CharacterClassificationImpl();
- virtual rtl::OUString SAL_CALL toUpper( const rtl::OUString& Text,
- sal_Int32 nPos, sal_Int32 nCount, const com::sun::star::lang::Locale& rLocale )
+ virtual rtl::OUString SAL_CALL toUpper( const rtl::OUString& Text,
+ sal_Int32 nPos, sal_Int32 nCount, const com::sun::star::lang::Locale& rLocale )
throw(com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL toLower( const rtl::OUString& Text,
+ virtual rtl::OUString SAL_CALL toLower( const rtl::OUString& Text,
sal_Int32 nPos, sal_Int32 nCount, const com::sun::star::lang::Locale& rLocale )
throw(com::sun::star::uno::RuntimeException);
- virtual rtl::OUString SAL_CALL toTitle( const rtl::OUString& Text, sal_Int32 nPos,
- sal_Int32 nCount, const com::sun::star::lang::Locale& rLocale )
+ virtual rtl::OUString SAL_CALL toTitle( const rtl::OUString& Text, sal_Int32 nPos,
+ sal_Int32 nCount, const com::sun::star::lang::Locale& rLocale )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getType( const rtl::OUString& Text, sal_Int32 nPos )
+ virtual sal_Int16 SAL_CALL getType( const rtl::OUString& Text, sal_Int32 nPos )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getCharacterDirection( const rtl::OUString& Text, sal_Int32 nPos )
+ virtual sal_Int16 SAL_CALL getCharacterDirection( const rtl::OUString& Text, sal_Int32 nPos )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL getScript( const rtl::OUString& Text, sal_Int32 nPos )
+ virtual sal_Int16 SAL_CALL getScript( const rtl::OUString& Text, sal_Int32 nPos )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getCharacterType( const rtl::OUString& text, sal_Int32 nPos,
- const com::sun::star::lang::Locale& rLocale )
+ virtual sal_Int32 SAL_CALL getCharacterType( const rtl::OUString& text, sal_Int32 nPos,
+ const com::sun::star::lang::Locale& rLocale )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL getStringType( const rtl::OUString& text, sal_Int32 nPos,
- sal_Int32 nCount, const com::sun::star::lang::Locale& rLocale )
+ virtual sal_Int32 SAL_CALL getStringType( const rtl::OUString& text, sal_Int32 nPos,
+ sal_Int32 nCount, const com::sun::star::lang::Locale& rLocale )
throw(com::sun::star::uno::RuntimeException);
virtual ParseResult SAL_CALL parseAnyToken( const rtl::OUString& Text, sal_Int32 nPos,
- const com::sun::star::lang::Locale& rLocale, sal_Int32 nStartCharFlags,
- const rtl::OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags,
- const rtl::OUString& userDefinedCharactersCont )
+ const com::sun::star::lang::Locale& rLocale, sal_Int32 nStartCharFlags,
+ const rtl::OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags,
+ const rtl::OUString& userDefinedCharactersCont )
throw(com::sun::star::uno::RuntimeException);
- virtual ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType,
- const rtl::OUString& Text, sal_Int32 nPos, const com::sun::star::lang::Locale& rLocale,
- sal_Int32 nStartCharFlags, const rtl::OUString& userDefinedCharactersStart,
- sal_Int32 nContCharFlags, const rtl::OUString& userDefinedCharactersCont )
+ virtual ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType,
+ const rtl::OUString& Text, sal_Int32 nPos, const com::sun::star::lang::Locale& rLocale,
+ sal_Int32 nStartCharFlags, const rtl::OUString& userDefinedCharactersStart,
+ sal_Int32 nContCharFlags, const rtl::OUString& userDefinedCharactersCont )
throw(com::sun::star::uno::RuntimeException);
//XServiceInfo
@@ -89,15 +89,15 @@ public:
private:
struct lookupTableItem {
- lookupTableItem(const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rName,
- com::sun::star::uno::Reference < XCharacterClassification >& rxCI) :
+ lookupTableItem(const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rName,
+ com::sun::star::uno::Reference < XCharacterClassification >& rxCI) :
aLocale(rLocale), aName(rName), xCI(rxCI) {};
com::sun::star::lang::Locale aLocale;
rtl::OUString aName;
com::sun::star::uno::Reference < XCharacterClassification > xCI;
sal_Bool SAL_CALL equals(const com::sun::star::lang::Locale& rLocale) {
- return aLocale.Language == rLocale.Language &&
- aLocale.Country == rLocale.Country &&
+ return aLocale.Language == rLocale.Language &&
+ aLocale.Country == rLocale.Country &&
aLocale.Variant == rLocale.Variant;
};
};
diff --git a/i18npool/inc/chartonum.hxx b/i18npool/inc/chartonum.hxx
index 0e975f0c0416..2af469bb2632 100644
--- a/i18npool/inc/chartonum.hxx
+++ b/i18npool/inc/chartonum.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ TRANSLITERATION_CHARTONUM(_th)
#undef TRANSLITERATION_CHARTONUM
} } } }
-
+
#endif // _L10N_TRANSLITERATION_CHARTONUM_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/collatorImpl.hxx b/i18npool/inc/collatorImpl.hxx
index 4098989389cc..6920da926538 100644
--- a/i18npool/inc/collatorImpl.hxx
+++ b/i18npool/inc/collatorImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ public:
virtual sal_Int32 SAL_CALL compareString( const rtl::OUString& s1,
const rtl::OUString& s2) throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL loadDefaultCollator( const lang::Locale& rLocale, sal_Int32 collatorOptions)
+ virtual sal_Int32 SAL_CALL loadDefaultCollator( const lang::Locale& rLocale, sal_Int32 collatorOptions)
throw(com::sun::star::uno::RuntimeException);
virtual sal_Int32 SAL_CALL loadCollatorAlgorithm( const rtl::OUString& impl, const lang::Locale& rLocale,
@@ -91,7 +91,7 @@ private :
rtl::OUString algorithm;
rtl::OUString service;
com::sun::star::uno::Reference < XCollator > xC;
- lookupTableItem(const lang::Locale& rLocale, const rtl::OUString& _algorithm, const rtl::OUString& _service,
+ lookupTableItem(const lang::Locale& rLocale, const rtl::OUString& _algorithm, const rtl::OUString& _service,
com::sun::star::uno::Reference < XCollator >& _xC) : aLocale(rLocale), algorithm(_algorithm), service(_service), xC(_xC) {}
sal_Bool SAL_CALL equals(const lang::Locale& rLocale, const rtl::OUString& _algorithm) {
return aLocale.Language == rLocale.Language &&
@@ -108,7 +108,7 @@ private :
// lang::Locale Data
com::sun::star::uno::Reference < XLocaleData > localedata;
- sal_Bool SAL_CALL createCollator(const lang::Locale& rLocale, const rtl::OUString& serviceName,
+ sal_Bool SAL_CALL createCollator(const lang::Locale& rLocale, const rtl::OUString& serviceName,
const rtl::OUString& rSortAlgorithm) throw(com::sun::star::uno::RuntimeException);
void SAL_CALL loadCachedCollator(const lang::Locale& rLocale, const rtl::OUString& rSortAlgorithm)
throw(com::sun::star::uno::RuntimeException);
diff --git a/i18npool/inc/collator_unicode.hxx b/i18npool/inc/collator_unicode.hxx
index 5cf481d5b5c3..00e54d85327b 100644
--- a/i18npool/inc/collator_unicode.hxx
+++ b/i18npool/inc/collator_unicode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ public:
// following 4 methods are implemented in collatorImpl.
- sal_Int32 SAL_CALL loadDefaultCollator( const lang::Locale&, sal_Int32)
+ sal_Int32 SAL_CALL loadDefaultCollator( const lang::Locale&, sal_Int32)
throw(com::sun::star::uno::RuntimeException) {throw com::sun::star::uno::RuntimeException();}
void SAL_CALL loadCollatorAlgorithmWithEndUserOption( const rtl::OUString&, const lang::Locale&,
const com::sun::star::uno::Sequence< sal_Int32 >&) throw(com::sun::star::uno::RuntimeException) {throw com::sun::star::uno::RuntimeException();}
diff --git a/i18npool/inc/defaultnumberingprovider.hxx b/i18npool/inc/defaultnumberingprovider.hxx
index d4ca9f5f49ab..5eaeca1b8f87 100644
--- a/i18npool/inc/defaultnumberingprovider.hxx
+++ b/i18npool/inc/defaultnumberingprovider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/i18npool/i18npooldllapi.h b/i18npool/inc/i18npool/i18npooldllapi.h
index e188a1de2fb5..4f6aad884556 100644
--- a/i18npool/inc/i18npool/i18npooldllapi.h
+++ b/i18npool/inc/i18npool/i18npooldllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,16 +28,16 @@
#ifndef INCLUDED_I18NPOOL_I18NPOOLDLLAPI_H
#define INCLUDED_I18NPOOL_I18NPOOLDLLAPI_H
-
+
#include "sal/types.h"
-
+
#if defined(I18NPOOL_DLLIMPLEMENTATION)
#define I18NPOOL_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define I18NPOOL_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define I18NPOOL_DLLPRIVATE SAL_DLLPRIVATE
-
+
#endif /* INCLUDED_I18NPOOL_I18NPOOLDLLAPI_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/i18npool/lang.h b/i18npool/inc/i18npool/lang.h
index ddd149c5b809..28574160ff0c 100644
--- a/i18npool/inc/i18npool/lang.h
+++ b/i18npool/inc/i18npool/lang.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@
Language Identifier Constants and Strings
http://msdn2.microsoft.com/en-us/library/ms776294.aspx
- Hey, yet another list, maybe this one will not move around? It seems to be
+ Hey, yet another list, maybe this one will not move around? It seems to be
quite complete..
Language Identifier Constants and Strings (Windows)
http://msdn.microsoft.com/en-us/library/dd318693(VS.85).aspx
diff --git a/i18npool/inc/i18npool/mslangid.hxx b/i18npool/inc/i18npool/mslangid.hxx
index b2a9e054482c..342d01d4c5ec 100644
--- a/i18npool/inc/i18npool/mslangid.hxx
+++ b/i18npool/inc/i18npool/mslangid.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/i18npool/paper.hxx b/i18npool/inc/i18npool/paper.hxx
index bfc0c59e10d3..42d540904b4f 100644
--- a/i18npool/inc/i18npool/paper.hxx
+++ b/i18npool/inc/i18npool/paper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/indexentrysupplier.hxx b/i18npool/inc/indexentrysupplier.hxx
index 05a9813932d4..09a623d2c10c 100644
--- a/i18npool/inc/indexentrysupplier.hxx
+++ b/i18npool/inc/indexentrysupplier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,10 +34,10 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class IndexEntrySupplier
-// ----------------------------------------------------
-class IndexEntrySupplier : public cppu::WeakImplHelper2
+// ----------------------------------------------------
+// class IndexEntrySupplier
+// ----------------------------------------------------
+class IndexEntrySupplier : public cppu::WeakImplHelper2
<
com::sun::star::i18n::XExtendedIndexEntrySupplier,
com::sun::star::lang::XServiceInfo
@@ -47,50 +47,50 @@ public:
IndexEntrySupplier( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
// Methods
- virtual com::sun::star::uno::Sequence < com::sun::star::lang::Locale > SAL_CALL getLocaleList()
+ virtual com::sun::star::uno::Sequence < com::sun::star::lang::Locale > SAL_CALL getLocaleList()
throw (com::sun::star::uno::RuntimeException);
- virtual com::sun::star::uno::Sequence < rtl::OUString > SAL_CALL getAlgorithmList(
+ virtual com::sun::star::uno::Sequence < rtl::OUString > SAL_CALL getAlgorithmList(
const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL loadAlgorithm(
+ virtual sal_Bool SAL_CALL loadAlgorithm(
const com::sun::star::lang::Locale& rLocale,
- const rtl::OUString& SortAlgorithm, sal_Int32 collatorOptions )
+ const rtl::OUString& SortAlgorithm, sal_Int32 collatorOptions )
throw (com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL usePhoneticEntry(
- const com::sun::star::lang::Locale& rLocale )
+ const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL getPhoneticCandidate( const rtl::OUString& IndexEntry,
- const com::sun::star::lang::Locale& rLocale )
+ const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL getIndexKey( const rtl::OUString& IndexEntry,
- const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
+ const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
virtual sal_Int16 SAL_CALL compareIndexEntry( const rtl::OUString& IndexEntry1,
const rtl::OUString& PhoneticEntry1, const com::sun::star::lang::Locale& rLocale1,
- const rtl::OUString& IndexEntry2, const ::rtl::OUString& PhoneticEntry2,
+ const rtl::OUString& IndexEntry2, const ::rtl::OUString& PhoneticEntry2,
const com::sun::star::lang::Locale& rLocale2 )
throw (com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL getIndexCharacter( const rtl::OUString& IndexEntry,
- const com::sun::star::lang::Locale& rLocale, const rtl::OUString& SortAlgorithm )
+ const com::sun::star::lang::Locale& rLocale, const rtl::OUString& SortAlgorithm )
throw (com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL getIndexFollowPageWord( sal_Bool MorePages,
- const com::sun::star::lang::Locale& rLocale )
+ const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
//XServiceInfo
- virtual rtl::OUString SAL_CALL getImplementationName()
+ virtual rtl::OUString SAL_CALL getImplementationName()
throw( com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
+ virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
throw( com::sun::star::uno::RuntimeException );
- virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
+ virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
private:
@@ -106,7 +106,7 @@ protected:
rtl::OUString aSortAlgorithm;
};
-} } } }
+} } } }
#endif
diff --git a/i18npool/inc/indexentrysupplier_asian.hxx b/i18npool/inc/indexentrysupplier_asian.hxx
index db6e174b7a31..6861e274f4d0 100644
--- a/i18npool/inc/indexentrysupplier_asian.hxx
+++ b/i18npool/inc/indexentrysupplier_asian.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,35 +34,35 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class IndexEntrySupplier_asian
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class IndexEntrySupplier_asian
+// ----------------------------------------------------
class IndexEntrySupplier_asian : public IndexEntrySupplier_Common {
public:
IndexEntrySupplier_asian( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
~IndexEntrySupplier_asian();
- rtl::OUString SAL_CALL getIndexCharacter( const rtl::OUString& rIndexEntry,
- const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rAlgorithm )
+ rtl::OUString SAL_CALL getIndexCharacter( const rtl::OUString& rIndexEntry,
+ const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rAlgorithm )
throw (com::sun::star::uno::RuntimeException);
- rtl::OUString SAL_CALL getIndexKey( const rtl::OUString& rIndexEntry,
- const rtl::OUString& rPhoneticEntry, const com::sun::star::lang::Locale& rLocale)
+ rtl::OUString SAL_CALL getIndexKey( const rtl::OUString& rIndexEntry,
+ const rtl::OUString& rPhoneticEntry, const com::sun::star::lang::Locale& rLocale)
throw (com::sun::star::uno::RuntimeException);
sal_Int16 SAL_CALL compareIndexEntry(
- const rtl::OUString& rIndexEntry1, const rtl::OUString& rPhoneticEntry1,
+ const rtl::OUString& rIndexEntry1, const rtl::OUString& rPhoneticEntry1,
const com::sun::star::lang::Locale& rLocale1,
- const rtl::OUString& rIndexEntry2, const rtl::OUString& rPhoneticEntry2,
+ const rtl::OUString& rIndexEntry2, const rtl::OUString& rPhoneticEntry2,
const com::sun::star::lang::Locale& rLocale2 )
throw (com::sun::star::uno::RuntimeException);
rtl::OUString SAL_CALL getPhoneticCandidate( const rtl::OUString& rIndexEntry,
- const com::sun::star::lang::Locale& rLocale )
+ const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
private:
oslModule hModule;
};
-} } } }
+} } } }
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/indexentrysupplier_common.hxx b/i18npool/inc/indexentrysupplier_common.hxx
index f92b8151ccfb..9c9f11b9238d 100644
--- a/i18npool/inc/indexentrysupplier_common.hxx
+++ b/i18npool/inc/indexentrysupplier_common.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,11 +36,11 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class IndexEntrySupplier_Common
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class IndexEntrySupplier_Common
+// ----------------------------------------------------
-class IndexEntrySupplier_Common : public cppu::WeakImplHelper2
+class IndexEntrySupplier_Common : public cppu::WeakImplHelper2
<
com::sun::star::i18n::XExtendedIndexEntrySupplier,
com::sun::star::lang::XServiceInfo
@@ -50,33 +50,33 @@ public:
IndexEntrySupplier_Common( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
~IndexEntrySupplier_Common();
- virtual com::sun::star::uno::Sequence < com::sun::star::lang::Locale > SAL_CALL getLocaleList()
+ virtual com::sun::star::uno::Sequence < com::sun::star::lang::Locale > SAL_CALL getLocaleList()
throw (com::sun::star::uno::RuntimeException);
- virtual com::sun::star::uno::Sequence < rtl::OUString > SAL_CALL getAlgorithmList(
+ virtual com::sun::star::uno::Sequence < rtl::OUString > SAL_CALL getAlgorithmList(
const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL usePhoneticEntry(
- const com::sun::star::lang::Locale& rLocale )
+ const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL getPhoneticCandidate( const rtl::OUString& IndexEntry,
- const com::sun::star::lang::Locale& rLocale )
+ const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL loadAlgorithm(
+ virtual sal_Bool SAL_CALL loadAlgorithm(
const com::sun::star::lang::Locale& rLocale,
- const rtl::OUString& SortAlgorithm, sal_Int32 collatorOptions )
+ const rtl::OUString& SortAlgorithm, sal_Int32 collatorOptions )
throw (com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL getIndexKey( const rtl::OUString& IndexEntry,
- const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
+ const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
virtual sal_Int16 SAL_CALL compareIndexEntry( const rtl::OUString& IndexEntry1,
const rtl::OUString& PhoneticEntry1, const com::sun::star::lang::Locale& rLocale1,
- const rtl::OUString& IndexEntry2, const ::rtl::OUString& PhoneticEntry2,
+ const rtl::OUString& IndexEntry2, const ::rtl::OUString& PhoneticEntry2,
const com::sun::star::lang::Locale& rLocale2 )
throw (com::sun::star::uno::RuntimeException);
@@ -85,15 +85,15 @@ public:
throw (com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL getIndexFollowPageWord( sal_Bool MorePages,
- const com::sun::star::lang::Locale& rLocale )
+ const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
//XServiceInfo
- virtual rtl::OUString SAL_CALL getImplementationName()
+ virtual rtl::OUString SAL_CALL getImplementationName()
throw( com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
+ virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
throw( com::sun::star::uno::RuntimeException );
- virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
+ virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
protected:
@@ -101,7 +101,7 @@ protected:
sal_Bool usePhonetic;
CollatorImpl *collator;
const rtl::OUString& SAL_CALL getEntry( const rtl::OUString& IndexEntry,
- const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
+ const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
com::sun::star::lang::Locale aLocale;
rtl::OUString aAlgorithm;
diff --git a/i18npool/inc/indexentrysupplier_default.hxx b/i18npool/inc/indexentrysupplier_default.hxx
index 9958df85d0ce..566ded0a2076 100644
--- a/i18npool/inc/indexentrysupplier_default.hxx
+++ b/i18npool/inc/indexentrysupplier_default.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,26 +34,26 @@ namespace com { namespace sun { namespace star { namespace i18n {
class Index;
-// ----------------------------------------------------
-// class IndexEntrySupplier_Unicode
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class IndexEntrySupplier_Unicode
+// ----------------------------------------------------
class IndexEntrySupplier_Unicode : public IndexEntrySupplier_Common {
public:
IndexEntrySupplier_Unicode( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
~IndexEntrySupplier_Unicode();
- virtual sal_Bool SAL_CALL loadAlgorithm(
+ virtual sal_Bool SAL_CALL loadAlgorithm(
const com::sun::star::lang::Locale& rLocale,
- const rtl::OUString& SortAlgorithm, sal_Int32 collatorOptions )
+ const rtl::OUString& SortAlgorithm, sal_Int32 collatorOptions )
throw (com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL getIndexKey( const rtl::OUString& IndexEntry,
- const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
+ const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException);
virtual sal_Int16 SAL_CALL compareIndexEntry( const rtl::OUString& IndexEntry1,
const rtl::OUString& PhoneticEntry1, const com::sun::star::lang::Locale& rLocale1,
- const rtl::OUString& IndexEntry2, const ::rtl::OUString& PhoneticEntry2,
+ const rtl::OUString& IndexEntry2, const ::rtl::OUString& PhoneticEntry2,
const com::sun::star::lang::Locale& rLocale2 )
throw (com::sun::star::uno::RuntimeException);
@@ -87,7 +87,7 @@ public:
#define MAX_KEYS 0xff
#define MAX_TABLES 20
-class Index
+class Index
{
public:
Index(const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF);
diff --git a/i18npool/inc/indexentrysupplier_ja_phonetic.hxx b/i18npool/inc/indexentrysupplier_ja_phonetic.hxx
index c9156fdde988..e5f2df31c9da 100644
--- a/i18npool/inc/indexentrysupplier_ja_phonetic.hxx
+++ b/i18npool/inc/indexentrysupplier_ja_phonetic.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,9 +33,9 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class IndexEntrySupplier_ja_phonetic
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class IndexEntrySupplier_ja_phonetic
+// ----------------------------------------------------
class IndexEntrySupplier_ja_phonetic : public IndexEntrySupplier_Common {
public:
@@ -72,7 +72,7 @@ INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_first_by_consonant )
INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_syllable )
INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_consonant )
-} } } }
+} } } }
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/inputsequencechecker.hxx b/i18npool/inc/inputsequencechecker.hxx
index c738d78d3411..7faed70ccce5 100644
--- a/i18npool/inc/inputsequencechecker.hxx
+++ b/i18npool/inc/inputsequencechecker.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,9 +38,9 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class InputSequenceCheckerImpl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class InputSequenceCheckerImpl
+// ----------------------------------------------------
class InputSequenceCheckerImpl : public cppu::WeakImplHelper2
<
com::sun::star::i18n::XExtendedInputSequenceChecker,
@@ -60,7 +60,7 @@ public:
//XServiceInfo
virtual rtl::OUString SAL_CALL getImplementationName() throw( com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
+ virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
throw( com::sun::star::uno::RuntimeException );
virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
@@ -86,7 +86,7 @@ private :
sal_Char* SAL_CALL getLanguageByScripType(sal_Unicode cChar, sal_Unicode nChar);
};
-} } } }
+} } } }
#endif // _I18N_BREAKITERATOR_HXX_
diff --git a/i18npool/inc/inputsequencechecker_hi.hxx b/i18npool/inc/inputsequencechecker_hi.hxx
index 372b0398198d..6738a18092a3 100644
--- a/i18npool/inc/inputsequencechecker_hi.hxx
+++ b/i18npool/inc/inputsequencechecker_hi.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,14 +30,14 @@
#include <inputsequencechecker.hxx>
-namespace com {
-namespace sun {
-namespace star {
+namespace com {
+namespace sun {
+namespace star {
namespace i18n {
-// ----------------------------------------------------
-// class InputSequenceChecker_hi
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class InputSequenceChecker_hi
+// ----------------------------------------------------
class InputSequenceChecker_hi : public InputSequenceCheckerImpl
{
public:
@@ -51,7 +51,7 @@ public:
sal_Unicode inputChar, sal_Int16 inputCheckMode) throw(com::sun::star::uno::RuntimeException);
};
-} } } }
+} } } }
#endif
diff --git a/i18npool/inc/inputsequencechecker_th.hxx b/i18npool/inc/inputsequencechecker_th.hxx
index f2fc2fbcafaf..322239539b84 100644
--- a/i18npool/inc/inputsequencechecker_th.hxx
+++ b/i18npool/inc/inputsequencechecker_th.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,9 +32,9 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class InputSequenceChecker_th
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class InputSequenceChecker_th
+// ----------------------------------------------------
class InputSequenceChecker_th : public InputSequenceCheckerImpl
{
public:
@@ -48,7 +48,7 @@ public:
sal_Unicode inputChar, sal_Int16 inputCheckMode) throw(com::sun::star::uno::RuntimeException);
};
-} } } }
+} } } }
#endif // _I18N_BREAKITERATOR_HXX_
diff --git a/i18npool/inc/localedata.hxx b/i18npool/inc/localedata.hxx
index 0c3418aa68c4..416183979180 100644
--- a/i18npool/inc/localedata.hxx
+++ b/i18npool/inc/localedata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/nativenumbersupplier.hxx b/i18npool/inc/nativenumbersupplier.hxx
index c31c2141aab0..2367dd56ad74 100644
--- a/i18npool/inc/nativenumbersupplier.hxx
+++ b/i18npool/inc/nativenumbersupplier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// ----------------------------------------------------
// class NativeNumberSupplier
// ----------------------------------------------------
-class NativeNumberSupplier : public cppu::WeakImplHelper2
+class NativeNumberSupplier : public cppu::WeakImplHelper2
<
com::sun::star::i18n::XNativeNumberSupplier,
com::sun::star::lang::XServiceInfo
@@ -53,24 +53,24 @@ public:
const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nNativeNumberMode )
throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isValidNatNum( const ::com::sun::star::lang::Locale& aLocale,
+ virtual sal_Bool SAL_CALL isValidNatNum( const ::com::sun::star::lang::Locale& aLocale,
sal_Int16 nNativeNumberMode )
throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::i18n::NativeNumberXmlAttributes SAL_CALL convertToXmlAttributes(
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nNativeNumberMode )
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nNativeNumberMode )
throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Int16 SAL_CALL convertFromXmlAttributes(
+ virtual sal_Int16 SAL_CALL convertFromXmlAttributes(
const ::com::sun::star::i18n::NativeNumberXmlAttributes& aAttr )
throw (::com::sun::star::uno::RuntimeException);
//XServiceInfo
- virtual rtl::OUString SAL_CALL getImplementationName()
+ virtual rtl::OUString SAL_CALL getImplementationName()
throw( com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
+ virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
throw( com::sun::star::uno::RuntimeException );
- virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
+ virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
// following methods are not for XNativeNumberSupplier, they are for calling from transliterations
@@ -87,7 +87,7 @@ private:
sal_Bool useOffset;
};
-} } } }
+} } } }
#endif
diff --git a/i18npool/inc/numberformatcode.hxx b/i18npool/inc/numberformatcode.hxx
index 9fb98ad54640..6a949db6d010 100644
--- a/i18npool/inc/numberformatcode.hxx
+++ b/i18npool/inc/numberformatcode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/numtochar.hxx b/i18npool/inc/numtochar.hxx
index 774612032da7..8ffc6a4e7778 100644
--- a/i18npool/inc/numtochar.hxx
+++ b/i18npool/inc/numtochar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ TRANSLITERATION_NUMTOCHAR(Halfwidth)
#undef TRANSLITERATION_NUMTOCHAR
} } } }
-
+
#endif // _L10N_TRANSLITERATION_NUMTOCHAR_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/inc/numtotext_cjk.hxx b/i18npool/inc/numtotext_cjk.hxx
index c79d693c19e6..8fd85b838d66 100644
--- a/i18npool/inc/numtotext_cjk.hxx
+++ b/i18npool/inc/numtotext_cjk.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/ordinalsuffix.hxx b/i18npool/inc/ordinalsuffix.hxx
index ef3328b0971d..a9fa0b125916 100644
--- a/i18npool/inc/ordinalsuffix.hxx
+++ b/i18npool/inc/ordinalsuffix.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
class OrdinalSuffix : public cppu::WeakImplHelper2
-<
+<
XOrdinalSuffix,
com::sun::star::lang::XServiceInfo
>
diff --git a/i18npool/inc/pch/precompiled_i18npool.cxx b/i18npool/inc/pch/precompiled_i18npool.cxx
index f829eac8cab5..318ab66b7649 100644
--- a/i18npool/inc/pch/precompiled_i18npool.cxx
+++ b/i18npool/inc/pch/precompiled_i18npool.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/pch/precompiled_i18npool.hxx b/i18npool/inc/pch/precompiled_i18npool.hxx
index b2d6ba960e2c..2e878452b992 100644
--- a/i18npool/inc/pch/precompiled_i18npool.hxx
+++ b/i18npool/inc/pch/precompiled_i18npool.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/scripttypedetector.hxx b/i18npool/inc/scripttypedetector.hxx
index 301dd6d51a6c..d08b261a2e3a 100644
--- a/i18npool/inc/scripttypedetector.hxx
+++ b/i18npool/inc/scripttypedetector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,9 +33,9 @@
#include <com/sun/star/i18n/XScriptTypeDetector.hpp>
#include <cppuhelper/implbase2.hxx> // helper for implementations
-// ----------------------------------------------------
-// class ScriptTypeDetector
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ScriptTypeDetector
+// ----------------------------------------------------
class ScriptTypeDetector : public cppu::WeakImplHelper2
<
::com::sun::star::i18n::XScriptTypeDetector,
diff --git a/i18npool/inc/servicename.hxx b/i18npool/inc/servicename.hxx
index 7eb7820ac647..3489441d1220 100644
--- a/i18npool/inc/servicename.hxx
+++ b/i18npool/inc/servicename.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-/*
+/*
Service Name
com.sun.star.i18n.Transliteration ... dispatching UNO object and generic methods
com.sun.star.i18n.Transliteration.u2l ... upper to lower
@@ -44,12 +44,12 @@ Implementation Name
com.sun.star.i18n.Transliteration.u2l
com.sun.star.i18n.Transliteration.l2u
com.sun.star.i18n.Transliteration.caseignore
- For these there services above,
+ For these there services above,
com.sun.star.i18n.Transliteration.ja_JP
^^^^^
Locale name
-
+
For com.sun.star.i18n.l10n.Transliteration service,
com.sun.star.i18n.Transliteration.HALFWIDTH_FULLWIDTH,
com.sun.star.i18n.Transliteration.FULLWIDTH_HALFWIDTH,
@@ -60,7 +60,7 @@ Implementation Name
... These objects above can be used in every Locale context.
-*/
+*/
#ifndef _I18N_SERVICENAME_HXX_
@@ -68,21 +68,21 @@ Implementation Name
-#define TRLT_SERVICELNAME "com.sun.star.i18n.Transliteration"
-#define TRLT_SERVICELNAME_PREFIX TRLT_SERVICELNAME "."
-#define TRLT_SERVICELNAME_U2L TRLT_SERVICELNAME_PREFIX "u2l"
-#define TRLT_SERVICELNAME_L2U TRLT_SERVICELNAME_PREFIX "l2u"
-#define TRLT_SERVICELNAME_CASEIGNORE TRLT_SERVICELNAME_PREFIX "caseignore"
-#define TRLT_SERVICELNAME_L10N TRLT_SERVICELNAME_PREFIX "l10n"
+#define TRLT_SERVICELNAME "com.sun.star.i18n.Transliteration"
+#define TRLT_SERVICELNAME_PREFIX TRLT_SERVICELNAME "."
+#define TRLT_SERVICELNAME_U2L TRLT_SERVICELNAME_PREFIX "u2l"
+#define TRLT_SERVICELNAME_L2U TRLT_SERVICELNAME_PREFIX "l2u"
+#define TRLT_SERVICELNAME_CASEIGNORE TRLT_SERVICELNAME_PREFIX "caseignore"
+#define TRLT_SERVICELNAME_L10N TRLT_SERVICELNAME_PREFIX "l10n"
-#define TRLT_IMPLNAME "com.sun.star.i18n.Transliteration"
-#define TRLT_IMPLNAME_PREFIX_LEN 34
-#define TRLT_IMPLNAME_PREFIX "com.sun.star.i18n.Transliteration."
-// 1...5...901...5...901...5...901..4 --> 34
+#define TRLT_IMPLNAME "com.sun.star.i18n.Transliteration"
+#define TRLT_IMPLNAME_PREFIX_LEN 34
+#define TRLT_IMPLNAME_PREFIX "com.sun.star.i18n.Transliteration."
+// 1...5...901...5...901...5...901..4 --> 34
-#define TRLT_IMPLNAME_L10N TRLT_IMPLNAME_PREFIX "l10n"
-#define TRLT_IMPLNAME_FH TRLT_IMPLNAME_PREFIX "FULLWIDTH_HALFWIDTH" // for test
-#define TRLT_IMPLNAME_Ja_JP TRLT_IMPLNAME_PREFIX "ja_JP"
+#define TRLT_IMPLNAME_L10N TRLT_IMPLNAME_PREFIX "l10n"
+#define TRLT_IMPLNAME_FH TRLT_IMPLNAME_PREFIX "FULLWIDTH_HALFWIDTH" // for test
+#define TRLT_IMPLNAME_Ja_JP TRLT_IMPLNAME_PREFIX "ja_JP"
#endif
diff --git a/i18npool/inc/textToPronounce_zh.hxx b/i18npool/inc/textToPronounce_zh.hxx
index 9543b267ef6a..383bf5e21c8d 100644
--- a/i18npool/inc/textToPronounce_zh.hxx
+++ b/i18npool/inc/textToPronounce_zh.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ protected:
oslModule hModule;
sal_uInt16 **idx;
const sal_Unicode* SAL_CALL getPronounce(const sal_Unicode ch);
-
+
public:
TextToPronounce_zh(const sal_Char* func_name);
~TextToPronounce_zh();
@@ -54,12 +54,12 @@ public:
equals( const rtl::OUString & str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32 & nMatch1, const rtl::OUString & str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32 & nMatch2)
throw (com::sun::star::uno::RuntimeException);
- rtl::OUString SAL_CALL
- transliterateChar2String( sal_Unicode inChar)
+ rtl::OUString SAL_CALL
+ transliterateChar2String( sal_Unicode inChar)
throw(com::sun::star::uno::RuntimeException);
- sal_Unicode SAL_CALL
- transliterateChar2Char( sal_Unicode inChar)
+ sal_Unicode SAL_CALL
+ transliterateChar2Char( sal_Unicode inChar)
throw(com::sun::star::uno::RuntimeException,
com::sun::star::i18n::MultipleCharsOutputException);
};
diff --git a/i18npool/inc/textconversion.hxx b/i18npool/inc/textconversion.hxx
index 657a31d0a159..63eaf7084768 100644
--- a/i18npool/inc/textconversion.hxx
+++ b/i18npool/inc/textconversion.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,42 +51,42 @@ public:
TextConversion();
~TextConversion();
// Methods
- virtual com::sun::star::i18n::TextConversionResult SAL_CALL
- getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ virtual com::sun::star::i18n::TextConversionResult SAL_CALL
+ getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException ) = 0;
- virtual rtl::OUString SAL_CALL
- getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ virtual rtl::OUString SAL_CALL
+ getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException ) = 0;
- virtual rtl::OUString SAL_CALL
- getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ virtual rtl::OUString SAL_CALL
+ getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException ) = 0;
- virtual sal_Bool SAL_CALL
+ virtual sal_Bool SAL_CALL
interactiveConversion(const ::com::sun::star::lang::Locale& aLocale,
- sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions )
+ sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException ) = 0;
//XServiceInfo
- rtl::OUString SAL_CALL
- getImplementationName()
+ rtl::OUString SAL_CALL
+ getImplementationName()
throw( com::sun::star::uno::RuntimeException );
- sal_Bool SAL_CALL
- supportsService(const rtl::OUString& ServiceName)
+ sal_Bool SAL_CALL
+ supportsService(const rtl::OUString& ServiceName)
throw( com::sun::star::uno::RuntimeException );
- com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
+ com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
protected :
@@ -111,31 +111,31 @@ public:
TextConversion_ko( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
// Methods
- com::sun::star::i18n::TextConversionResult SAL_CALL
- getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ com::sun::star::i18n::TextConversionResult SAL_CALL
+ getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- rtl::OUString SAL_CALL
- getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ rtl::OUString SAL_CALL
+ getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- rtl::OUString SAL_CALL
- getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ rtl::OUString SAL_CALL
+ getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- sal_Bool SAL_CALL
+ sal_Bool SAL_CALL
interactiveConversion(const ::com::sun::star::lang::Locale& aLocale,
sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
@@ -147,7 +147,7 @@ private :
com::sun::star::uno::Reference < com::sun::star::linguistic2::XConversionDictionaryList > xCDL;
sal_Int32 maxLeftLength;
sal_Int32 maxRightLength;
- com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
+ com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
getCharConversions(const rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool toHanja);
};
@@ -167,38 +167,38 @@ public:
TextConversion_zh( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
// Methods
- com::sun::star::i18n::TextConversionResult SAL_CALL
- getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ com::sun::star::i18n::TextConversionResult SAL_CALL
+ getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- rtl::OUString SAL_CALL
- getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ rtl::OUString SAL_CALL
+ getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- rtl::OUString SAL_CALL
- getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ rtl::OUString SAL_CALL
+ getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- sal_Bool SAL_CALL
+ sal_Bool SAL_CALL
interactiveConversion(const ::com::sun::star::lang::Locale& aLocale,
sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
private :
// user defined dictionary list
com::sun::star::uno::Reference < com::sun::star::linguistic2::XConversionDictionaryList > xCDL;
- rtl::OUString SAL_CALL getWordConversion(const ::rtl::OUString& aText,
+ rtl::OUString SAL_CALL getWordConversion(const ::rtl::OUString& aText,
sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool toSChinese, sal_Int32 nConversionOptions, com::sun::star::uno::Sequence <sal_Int32>& offset);
rtl:: OUString SAL_CALL getCharConversion(const rtl:: OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool toSChinese, sal_Int32 nConversionOptions);
com::sun::star::lang::Locale aLocale;
diff --git a/i18npool/inc/textconversionImpl.hxx b/i18npool/inc/textconversionImpl.hxx
index d798bf2ef14b..dbed5ee50b03 100644
--- a/i18npool/inc/textconversionImpl.hxx
+++ b/i18npool/inc/textconversionImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,9 +35,9 @@
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class TextConversion
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TextConversion
+// ----------------------------------------------------
class TextConversionImpl : public cppu::WeakImplHelper2
<
com::sun::star::i18n::XExtendedTextConversion,
@@ -48,42 +48,42 @@ public:
TextConversionImpl( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF ) : xMSF(rxMSF) {};
// Methods
- com::sun::star::i18n::TextConversionResult SAL_CALL
- getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ com::sun::star::i18n::TextConversionResult SAL_CALL
+ getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- rtl::OUString SAL_CALL
- getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions )
+ rtl::OUString SAL_CALL
+ getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- rtl::OUString SAL_CALL
- getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
- const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
- sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ rtl::OUString SAL_CALL
+ getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
- sal_Bool SAL_CALL
+ sal_Bool SAL_CALL
interactiveConversion( const ::com::sun::star::lang::Locale& aLocale,
- sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions )
+ sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions )
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
//XServiceInfo
- rtl::OUString SAL_CALL
- getImplementationName()
+ rtl::OUString SAL_CALL
+ getImplementationName()
throw( com::sun::star::uno::RuntimeException );
- sal_Bool SAL_CALL
- supportsService(const rtl::OUString& ServiceName)
+ sal_Bool SAL_CALL
+ supportsService(const rtl::OUString& ServiceName)
throw( com::sun::star::uno::RuntimeException );
- com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
+ com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
getSupportedServiceNames()
throw( com::sun::star::uno::RuntimeException );
private :
diff --git a/i18npool/inc/texttonum.hxx b/i18npool/inc/texttonum.hxx
index 3eb06c7d5eae..a7a11e739d9b 100644
--- a/i18npool/inc/texttonum.hxx
+++ b/i18npool/inc/texttonum.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/transliterationImpl.hxx b/i18npool/inc/transliterationImpl.hxx
index 8497c1f8dcd4..db0642030c97 100644
--- a/i18npool/inc/transliterationImpl.hxx
+++ b/i18npool/inc/transliterationImpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,13 +65,13 @@ public:
throw(com::sun::star::uno::RuntimeException) ;
virtual void SAL_CALL loadModuleNew( const com::sun::star::uno::Sequence< TransliterationModulesNew >& modName,
const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException) ;
- virtual void SAL_CALL loadModuleByImplName( const rtl::OUString& implName,
+ virtual void SAL_CALL loadModuleByImplName( const rtl::OUString& implName,
const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException);
virtual void SAL_CALL loadModulesByImplNames(const com::sun::star::uno::Sequence< rtl::OUString >& modNamelist,
const com::sun::star::lang::Locale& rLocale) throw(com::sun::star::uno::RuntimeException);
- virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getAvailableModules(
- const com::sun::star::lang::Locale& rLocale, sal_Int16 sType )
+ virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getAvailableModules(
+ const com::sun::star::lang::Locale& rLocale, sal_Int16 sType )
throw(com::sun::star::uno::RuntimeException);
virtual rtl::OUString SAL_CALL transliterate( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
@@ -85,21 +85,21 @@ public:
throw(com::sun::star::uno::RuntimeException) ;
virtual rtl::OUString SAL_CALL transliterateChar2String( sal_Unicode inChar )
throw(com::sun::star::uno::RuntimeException) ;
- virtual sal_Unicode SAL_CALL transliterateChar2Char( sal_Unicode inChar )
+ virtual sal_Unicode SAL_CALL transliterateChar2Char( sal_Unicode inChar )
throw(com::sun::star::i18n::MultipleCharsOutputException,
com::sun::star::uno::RuntimeException) ;
/*
virtual void SAL_CALL createCascadeInstance( const com::sun::star::uno::Sequence< rtl::OUString >& modNamelist,
const com::sun::star::lang::Locale& rLocale ) throw(com::sun::star::uno::RuntimeException) ;
- virtual rtl::OUString SAL_CALL folding_reverse( const rtl::OUString& inStr, sal_Int32 startPos,
+ virtual rtl::OUString SAL_CALL folding_reverse( const rtl::OUString& inStr, sal_Int32 startPos,
sal_Int32 nCount ) throw(com::sun::star::uno::RuntimeException);
virtual sal_Int32 SAL_CALL transliterateMatch( const rtl::OUString& content, sal_Int32 pos1, sal_Int32 nCount1,
- const rtl::OUString& pattern, sal_Int32 pos2, sal_Int32 nCount2 )
+ const rtl::OUString& pattern, sal_Int32 pos2, sal_Int32 nCount2 )
throw(com::sun::star::uno::RuntimeException);
*/
- virtual sal_Bool SAL_CALL equals( const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1,
- sal_Int32& nMatch1, const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 )
+ virtual sal_Bool SAL_CALL equals( const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1,
+ sal_Int32& nMatch1, const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 )
throw(com::sun::star::uno::RuntimeException);
virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL transliterateRange( const rtl::OUString& str1,
const rtl::OUString& str2 ) throw(com::sun::star::uno::RuntimeException) ;
@@ -135,13 +135,13 @@ private:
};
static TransBody lastTransBody;
- virtual sal_Bool SAL_CALL loadModuleByName( const rtl::OUString& implName,
- com::sun::star::uno::Reference<com::sun::star::i18n::XExtendedTransliteration> & body, const com::sun::star::lang::Locale& rLocale)
+ virtual sal_Bool SAL_CALL loadModuleByName( const rtl::OUString& implName,
+ com::sun::star::uno::Reference<com::sun::star::i18n::XExtendedTransliteration> & body, const com::sun::star::lang::Locale& rLocale)
throw(com::sun::star::uno::RuntimeException);
void clear();
- void loadBody( ::rtl::OUString &implName,
+ void loadBody( ::rtl::OUString &implName,
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XExtendedTransliteration >& body )
throw (::com::sun::star::uno::RuntimeException);
diff --git a/i18npool/inc/transliteration_Ignore.hxx b/i18npool/inc/transliteration_Ignore.hxx
index 3f16695bfaf9..136d0cf5ac1c 100644
--- a/i18npool/inc/transliteration_Ignore.hxx
+++ b/i18npool/inc/transliteration_Ignore.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,30 +51,30 @@ public:
// This method is shared.
sal_Bool SAL_CALL
- equals( const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
+ equals( const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 )
throw(com::sun::star::uno::RuntimeException);
// This method is implemented in sub class if needed. Otherwise, the method implemented in this class will be used.
- com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
- transliterateRange( const rtl::OUString& str1, const rtl::OUString& str2 )
+ com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
+ transliterateRange( const rtl::OUString& str1, const rtl::OUString& str2 )
throw(com::sun::star::uno::RuntimeException);
// Methods which are shared.
sal_Int16 SAL_CALL getType( ) throw(com::sun::star::uno::RuntimeException);
-
- rtl::OUString SAL_CALL
- transliterate( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+
+ rtl::OUString SAL_CALL
+ transliterate( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, com::sun::star::uno::Sequence< sal_Int32 >& offset )
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Unicode SAL_CALL
- transliterateChar2Char( sal_Unicode inChar)
+ virtual sal_Unicode SAL_CALL
+ transliterateChar2Char( sal_Unicode inChar)
throw(com::sun::star::uno::RuntimeException,
com::sun::star::i18n::MultipleCharsOutputException);
- com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
- transliterateRange( const rtl::OUString& str1, const rtl::OUString& str2, XTransliteration& t1, XTransliteration& t2 )
+ com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
+ transliterateRange( const rtl::OUString& str1, const rtl::OUString& str2, XTransliteration& t1, XTransliteration& t2 )
throw(com::sun::star::uno::RuntimeException);
protected:
diff --git a/i18npool/inc/transliteration_Numeric.hxx b/i18npool/inc/transliteration_Numeric.hxx
index bd5b76cac499..3d2ce25f9ac5 100644
--- a/i18npool/inc/transliteration_Numeric.hxx
+++ b/i18npool/inc/transliteration_Numeric.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ public:
// Methods which are shared.
virtual sal_Int16 SAL_CALL getType( ) throw(::com::sun::star::uno::RuntimeException);
-
+
virtual ::rtl::OUString SAL_CALL
folding( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset )
throw(::com::sun::star::uno::RuntimeException);
@@ -54,7 +54,7 @@ public:
equals( const ::rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1, const ::rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 )
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
transliterateRange( const ::rtl::OUString& str1, const ::rtl::OUString& str2 )
throw(::com::sun::star::uno::RuntimeException);
protected:
@@ -63,9 +63,9 @@ protected:
sal_Unicode* table;
sal_Bool recycleSymbol;
private:
- rtl::OUString SAL_CALL
+ rtl::OUString SAL_CALL
transliterateBullet( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
- com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ com::sun::star::uno::Sequence< sal_Int32 >& offset )
throw(com::sun::star::uno::RuntimeException);
};
diff --git a/i18npool/inc/transliteration_OneToOne.hxx b/i18npool/inc/transliteration_OneToOne.hxx
index 18596822e393..d316cbf0c829 100644
--- a/i18npool/inc/transliteration_OneToOne.hxx
+++ b/i18npool/inc/transliteration_OneToOne.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,29 +38,29 @@ typedef sal_Unicode (*TransFunc)(const sal_Unicode);
class transliteration_OneToOne : public transliteration_commonclass
{
public:
- rtl::OUString SAL_CALL
- transliterate( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ rtl::OUString SAL_CALL
+ transliterate( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, com::sun::star::uno::Sequence< sal_Int32 >& offset )
throw(com::sun::star::uno::RuntimeException);
- sal_Unicode SAL_CALL
+ sal_Unicode SAL_CALL
transliterateChar2Char( sal_Unicode inChar)
- throw(com::sun::star::uno::RuntimeException,
+ throw(com::sun::star::uno::RuntimeException,
com::sun::star::i18n::MultipleCharsOutputException);
// Methods which are shared.
sal_Int16 SAL_CALL getType() throw(com::sun::star::uno::RuntimeException);
-
+
rtl::OUString SAL_CALL
folding( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, com::sun::star::uno::Sequence< sal_Int32 >& offset)
throw(com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL
- equals( const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
+ equals( const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 )
throw(com::sun::star::uno::RuntimeException);
- com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
- transliterateRange( const rtl::OUString& str1, const rtl::OUString& str2 )
+ com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
+ transliterateRange( const rtl::OUString& str1, const rtl::OUString& str2 )
throw(com::sun::star::uno::RuntimeException);
protected:
diff --git a/i18npool/inc/transliteration_body.hxx b/i18npool/inc/transliteration_body.hxx
index c2985b58847c..da5a31d8e1e0 100644
--- a/i18npool/inc/transliteration_body.hxx
+++ b/i18npool/inc/transliteration_body.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ public:
com::sun::star::uno::Sequence< sal_Int32 >& offset) throw(com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL equals(
- const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
+ const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 )
throw(com::sun::star::uno::RuntimeException);
diff --git a/i18npool/inc/transliteration_caseignore.hxx b/i18npool/inc/transliteration_caseignore.hxx
index 09464e63e38c..a711ff518f59 100644
--- a/i18npool/inc/transliteration_caseignore.hxx
+++ b/i18npool/inc/transliteration_caseignore.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ public:
throw(com::sun::star::uno::RuntimeException);
com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL transliterateRange(
- const rtl::OUString& str1, const rtl::OUString& str2 )
+ const rtl::OUString& str1, const rtl::OUString& str2 )
throw(com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL equals(
@@ -66,9 +66,9 @@ public:
protected:
TransliterationModules moduleLoaded;
private:
- sal_Int32 SAL_CALL compare(
- const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
- const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2)
+ sal_Int32 SAL_CALL compare(
+ const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
+ const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2)
throw(com::sun::star::uno::RuntimeException);
};
diff --git a/i18npool/inc/transliteration_commonclass.hxx b/i18npool/inc/transliteration_commonclass.hxx
index af5d189e6038..c53d92662904 100644
--- a/i18npool/inc/transliteration_commonclass.hxx
+++ b/i18npool/inc/transliteration_commonclass.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,12 +96,12 @@ public:
transliterateRange( const rtl::OUString& str1, const rtl::OUString& str2 )
throw(com::sun::star::uno::RuntimeException) = 0;
- virtual sal_Int32 SAL_CALL
- compareSubstring( const rtl::OUString& s1, sal_Int32 off1, sal_Int32 len1, const rtl::OUString& s2, sal_Int32 off2, sal_Int32 len2)
+ virtual sal_Int32 SAL_CALL
+ compareSubstring( const rtl::OUString& s1, sal_Int32 off1, sal_Int32 len1, const rtl::OUString& s2, sal_Int32 off2, sal_Int32 len2)
throw(com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL
- compareString( const rtl::OUString& s1, const rtl::OUString& s2)
+ virtual sal_Int32 SAL_CALL
+ compareString( const rtl::OUString& s1, const rtl::OUString& s2)
throw(com::sun::star::uno::RuntimeException);
//XServiceInfo
diff --git a/i18npool/inc/warnings_guard_unicode_brkiter.h b/i18npool/inc/warnings_guard_unicode_brkiter.h
index 76c407ede0c5..c4384fd08f41 100644
--- a/i18npool/inc/warnings_guard_unicode_brkiter.h
+++ b/i18npool/inc/warnings_guard_unicode_brkiter.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/warnings_guard_unicode_calendar.h b/i18npool/inc/warnings_guard_unicode_calendar.h
index d453731ba70a..db20e85fb5ee 100644
--- a/i18npool/inc/warnings_guard_unicode_calendar.h
+++ b/i18npool/inc/warnings_guard_unicode_calendar.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/warnings_guard_unicode_tblcoll.h b/i18npool/inc/warnings_guard_unicode_tblcoll.h
index 5e796e374fc5..025ff9fd19aa 100644
--- a/i18npool/inc/warnings_guard_unicode_tblcoll.h
+++ b/i18npool/inc/warnings_guard_unicode_tblcoll.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/inc/wtt.h b/i18npool/inc/wtt.h
index 789dd29d28d1..2b47f281d89e 100644
--- a/i18npool/inc/wtt.h
+++ b/i18npool/inc/wtt.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,43 +34,43 @@ namespace com { namespace sun { namespace star { namespace i18n {
* Thai character type definition.
*/
-#define CT_CTRL 0 // Control character
-#define CT_NON 1 // Non-composible
-#define CT_CONS 2 // Consonant
-#define CT_LV 3 // Leading vowel
-#define CT_FV1 4 // Following vowel
-#define CT_FV2 5 // Following vowel
-#define CT_FV3 6
-#define CT_BV1 7 // Below vowel
-#define CT_BV2 8
-#define CT_BD 9 // Below diacritic
-#define CT_TONE 10 // Tone
-#define CT_AD1 11 // Above diacritic
-#define CT_AD2 12
-#define CT_AD3 13
-#define CT_AV1 14 // Above vowel
-#define CT_AV2 15
-#define CT_AV3 16
+#define CT_CTRL 0 // Control character
+#define CT_NON 1 // Non-composible
+#define CT_CONS 2 // Consonant
+#define CT_LV 3 // Leading vowel
+#define CT_FV1 4 // Following vowel
+#define CT_FV2 5 // Following vowel
+#define CT_FV3 6
+#define CT_BV1 7 // Below vowel
+#define CT_BV2 8
+#define CT_BD 9 // Below diacritic
+#define CT_TONE 10 // Tone
+#define CT_AD1 11 // Above diacritic
+#define CT_AD2 12
+#define CT_AD3 13
+#define CT_AV1 14 // Above vowel
+#define CT_AV2 15
+#define CT_AV3 16
-#define MAX_CT 17
+#define MAX_CT 17
-static const sal_uInt16 thaiCT[128] = { // Thai character type
- CT_NON, CT_CONS, CT_CONS, CT_CONS, CT_CONS,CT_CONS, CT_CONS, CT_CONS, //0E00
+static const sal_uInt16 thaiCT[128] = { // Thai character type
+ CT_NON, CT_CONS, CT_CONS, CT_CONS, CT_CONS,CT_CONS, CT_CONS, CT_CONS, //0E00
CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS,
- CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, //0E10
+ CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, //0E10
CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS,
- CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_FV3, CT_CONS, CT_FV3, CT_CONS, //0E20
+ CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_FV3, CT_CONS, CT_FV3, CT_CONS, //0E20
CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_CONS, CT_NON,
- CT_FV1, CT_AV2, CT_FV1, CT_FV1, CT_AV1, CT_AV3, CT_AV2, CT_AV3, //0E30
+ CT_FV1, CT_AV2, CT_FV1, CT_FV1, CT_AV1, CT_AV3, CT_AV2, CT_AV3, //0E30
CT_BV1, CT_BV2, CT_BD, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON,
- CT_LV, CT_LV, CT_LV, CT_LV, CT_LV, CT_FV2, CT_NON, CT_AD2, //0E40
+ CT_LV, CT_LV, CT_LV, CT_LV, CT_LV, CT_FV2, CT_NON, CT_AD2, //0E40
CT_TONE, CT_TONE, CT_TONE, CT_TONE, CT_AD1, CT_AD1, CT_AD3, CT_NON,
- CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, //0E50
+ CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, //0E50
CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_NON, CT_CTRL };
#define getCharType(x) ((x >= 0x0E00 && x < 0x0E60) ? thaiCT[x - 0x0E00] : CT_NON)
-} } } }
+} } } }
#endif // _I18N_WTT_H_
diff --git a/i18npool/inc/xdictionary.hxx b/i18npool/inc/xdictionary.hxx
index 74a6db6e98df..5b73948b570d 100644
--- a/i18npool/inc/xdictionary.hxx
+++ b/i18npool/inc/xdictionary.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,15 +38,15 @@ namespace com { namespace sun { namespace star { namespace i18n {
// Whether to use cell boundary code, currently unused but prepared.
#define USE_CELL_BOUNDARY_CODE 0
-#define CACHE_MAX 32 // max cache structure number
-#define DEFAULT_SIZE 256 // for boundary size, to avoid alloc and release memory
+#define CACHE_MAX 32 // max cache structure number
+#define DEFAULT_SIZE 256 // for boundary size, to avoid alloc and release memory
// cache structure.
struct WordBreakCache {
- sal_Int32 length; // contents length saved here.
- sal_Unicode *contents; // seperated segment contents.
- sal_Int32* wordboundary; // word boundaries in segments.
- sal_Int32 size; // size of wordboundary
+ sal_Int32 length; // contents length saved here.
+ sal_Unicode *contents; // seperated segment contents.
+ sal_Int32* wordboundary; // word boundaries in segments.
+ sal_Int32 size; // size of wordboundary
WordBreakCache();
sal_Bool equals(const sal_Unicode *str, Boundary& boundary); // checking cached string
diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx
index e36cd4df1773..ec2129907fc5 100644
--- a/i18npool/source/breakiterator/breakiteratorImpl.cxx
+++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ sal_Int32 SAL_CALL BreakIteratorImpl::nextCharacters( const OUString& Text, sal_
return LBI->nextCharacters( Text, nStartPos, rLocale, nCharacterIteratorMode, nCount, nDone);
}
-sal_Int32 SAL_CALL BreakIteratorImpl::previousCharacters( const OUString& Text, sal_Int32 nStartPos,
+sal_Int32 SAL_CALL BreakIteratorImpl::previousCharacters( const OUString& Text, sal_Int32 nStartPos,
const Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount, sal_Int32& nDone )
throw(RuntimeException)
{
@@ -271,14 +271,14 @@ static sal_Int32 SAL_CALL iterateCodePoints(const OUString& Text, sal_Int32 &nSt
} else {
ch = Text.iterateCodePoints(&nStartPos, inc);
// Fix for #i80436#.
- // erAck: 2009-06-30T21:52+0200 This logic looks somewhat
- // suspicious as if it cures a symptom.. anyway, had to add
- // nStartPos < Text.getLength() to silence the (correct) assertion
- // in rtl_uString_iterateCodePoints() if Text was one character
+ // erAck: 2009-06-30T21:52+0200 This logic looks somewhat
+ // suspicious as if it cures a symptom.. anyway, had to add
+ // nStartPos < Text.getLength() to silence the (correct) assertion
+ // in rtl_uString_iterateCodePoints() if Text was one character
// (codepoint) only, made up of a surrogate pair.
//if (inc > 0 && nStartPos < Text.getLength())
// ch = Text.iterateCodePoints(&nStartPos, 0);
- // With surrogates, nStartPos may actually point behind string
+ // With surrogates, nStartPos may actually point behind string
// now, even if inc is only +1
if (inc > 0)
ch = (nStartPos < nLen ? Text.iterateCodePoints(&nStartPos, 0) : 0);
@@ -341,7 +341,7 @@ sal_Int32 SAL_CALL BreakIteratorImpl::previousScript( const OUString& Text,
else if (nStartPos == 0) {
if (numberOfChange > 0)
numberOfChange--;
- if (nStartPos > 0)
+ if (nStartPos > 0)
Text.iterateCodePoints(&nStartPos, -1);
else
return -1;
@@ -488,7 +488,7 @@ sal_Int16 BreakIteratorImpl::getScriptClass(sal_uInt32 currentChar)
nRet = ScriptType::WEAK;
// workaround for Coptic
else if ( 0x2C80 <= currentChar && 0x2CE3 >= currentChar)
- nRet = ScriptType::LATIN;
+ nRet = ScriptType::LATIN;
else {
UBlockCode block=ublock_getCode(currentChar);
sal_uInt16 i;
@@ -550,7 +550,7 @@ BreakIteratorImpl::getLocaleSpecificBreakIterator(const Locale& rLocale) throw (
sal_Int32 v = rLocale.Variant.getLength();
OUStringBuffer aBuf(l+c+v+3);
- if ((l > 0 && c > 0 && v > 0 &&
+ if ((l > 0 && c > 0 && v > 0 &&
// load service with name <base>_<lang>_<country>_<varian>
createLocaleSpecificBreakIterator(aBuf.append(rLocale.Language).append(under).append(
rLocale.Country).append(under).append(rLocale.Variant).makeStringAndClear())) ||
@@ -558,13 +558,13 @@ BreakIteratorImpl::getLocaleSpecificBreakIterator(const Locale& rLocale) throw (
// load service with name <base>_<lang>_<country>
createLocaleSpecificBreakIterator(aBuf.append(rLocale.Language).append(under).append(
rLocale.Country).makeStringAndClear())) ||
- (l > 0 && c > 0 && rLocale.Language.compareToAscii("zh") == 0 &&
+ (l > 0 && c > 0 && rLocale.Language.compareToAscii("zh") == 0 &&
(rLocale.Country.compareToAscii("HK") == 0 ||
rLocale.Country.compareToAscii("MO") == 0) &&
// if the country code is HK or MO, one more step to try TW.
createLocaleSpecificBreakIterator(aBuf.append(rLocale.Language).append(under).appendAscii(
"TW").makeStringAndClear())) ||
- (l > 0 &&
+ (l > 0 &&
// load service with name <base>_<lang>
createLocaleSpecificBreakIterator(rLocale.Language)) ||
// load default service with name <base>_Unicode
diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx
index ce7170c2a411..83f6f12a826c 100644
--- a/i18npool/source/breakiterator/breakiterator_cjk.cxx
+++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,38 +44,38 @@ namespace com { namespace sun { namespace star { namespace i18n {
// class BreakIterator_CJK
// ----------------------------------------------------;
-BreakIterator_CJK::BreakIterator_CJK() :
+BreakIterator_CJK::BreakIterator_CJK() :
dict( NULL ),
hangingCharacters()
{
cBreakIterator = "com.sun.star.i18n.BreakIterator_CJK";
}
-Boundary SAL_CALL
-BreakIterator_CJK::previousWord(const OUString& text, sal_Int32 anyPos,
+Boundary SAL_CALL
+BreakIterator_CJK::previousWord(const OUString& text, sal_Int32 anyPos,
const lang::Locale& nLocale, sal_Int16 wordType) throw(RuntimeException)
{
if (dict) {
result = dict->previousWord(text, anyPos, wordType);
// #109813# for non-CJK, single character word, fallback to ICU breakiterator.
- if (result.endPos - result.startPos != 1 ||
+ if (result.endPos - result.startPos != 1 ||
getScriptType(text, result.startPos) == ScriptType::ASIAN)
return result;
result = BreakIterator_Unicode::getWordBoundary(text, result.startPos, nLocale, wordType, true);
- if (result.endPos < anyPos)
+ if (result.endPos < anyPos)
return result;
}
return BreakIterator_Unicode::previousWord(text, anyPos, nLocale, wordType);
}
-Boundary SAL_CALL
-BreakIterator_CJK::nextWord(const OUString& text, sal_Int32 anyPos,
+Boundary SAL_CALL
+BreakIterator_CJK::nextWord(const OUString& text, sal_Int32 anyPos,
const lang::Locale& nLocale, sal_Int16 wordType) throw(RuntimeException)
{
if (dict) {
result = dict->nextWord(text, anyPos, wordType);
// #109813# for non-CJK, single character word, fallback to ICU breakiterator.
- if (result.endPos - result.startPos != 1 ||
+ if (result.endPos - result.startPos != 1 ||
getScriptType(text, result.startPos) == ScriptType::ASIAN)
return result;
result = BreakIterator_Unicode::getWordBoundary(text, result.startPos, nLocale, wordType, true);
@@ -85,15 +85,15 @@ BreakIterator_CJK::nextWord(const OUString& text, sal_Int32 anyPos,
return BreakIterator_Unicode::nextWord(text, anyPos, nLocale, wordType);
}
-Boundary SAL_CALL
-BreakIterator_CJK::getWordBoundary( const OUString& text, sal_Int32 anyPos,
- const lang::Locale& nLocale, sal_Int16 wordType, sal_Bool bDirection )
+Boundary SAL_CALL
+BreakIterator_CJK::getWordBoundary( const OUString& text, sal_Int32 anyPos,
+ const lang::Locale& nLocale, sal_Int16 wordType, sal_Bool bDirection )
throw(RuntimeException)
{
if (dict) {
result = dict->getWordBoundary(text, anyPos, wordType, bDirection);
// #109813# for non-CJK, single character word, fallback to ICU breakiterator.
- if (result.endPos - result.startPos != 1 ||
+ if (result.endPos - result.startPos != 1 ||
getScriptType(text, result.startPos) == ScriptType::ASIAN)
return result;
}
diff --git a/i18npool/source/breakiterator/breakiterator_ctl.cxx b/i18npool/source/breakiterator/breakiterator_ctl.cxx
index 6d6b3f9b9cd7..b780a7bfffcf 100644
--- a/i18npool/source/breakiterator/breakiterator_ctl.cxx
+++ b/i18npool/source/breakiterator/breakiterator_ctl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include <com/sun/star/i18n/CharacterIteratorMode.hpp>
#include <breakiterator_ctl.hxx>
-#include <string.h> // for memset
+#include <string.h> // for memset
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -72,7 +72,7 @@ sal_Int32 SAL_CALL BreakIterator_CTL::previousCharacters( const OUString& Text,
{
if (nCharacterIteratorMode == CharacterIteratorMode::SKIPCELL ) {
nDone = 0;
- if (nStartPos > 0) { // for others to skip cell.
+ if (nStartPos > 0) { // for others to skip cell.
makeIndex(Text, nStartPos);
if (nextCellIndex[nStartPos-1] == 0) // not a CTL character
@@ -82,7 +82,7 @@ sal_Int32 SAL_CALL BreakIterator_CTL::previousCharacters( const OUString& Text,
nCount--; nDone++;
nStartPos = previousCellIndex[nStartPos - 1];
}
- } else
+ } else
nStartPos = 0;
} else { // for BS to delete one char.
nDone = (nStartPos > nCount) ? nCount : nStartPos;
@@ -92,7 +92,7 @@ sal_Int32 SAL_CALL BreakIterator_CTL::previousCharacters( const OUString& Text,
return nStartPos;
}
-sal_Int32 SAL_CALL BreakIterator_CTL::nextCharacters(const OUString& Text,
+sal_Int32 SAL_CALL BreakIterator_CTL::nextCharacters(const OUString& Text,
sal_Int32 nStartPos, const lang::Locale& rLocale,
sal_Int16 nCharacterIteratorMode, sal_Int32 nCount, sal_Int32& nDone)
throw(RuntimeException)
diff --git a/i18npool/source/breakiterator/breakiterator_th.cxx b/i18npool/source/breakiterator/breakiterator_th.cxx
index ad3c619d0979..a1d3ea8c228c 100644
--- a/i18npool/source/breakiterator/breakiterator_th.cxx
+++ b/i18npool/source/breakiterator/breakiterator_th.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
#include <breakiterator_th.hxx>
#include <wtt.h>
-#include <string.h> // for memset
+#include <string.h> // for memset
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -39,9 +39,9 @@ using namespace ::rtl;
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class Breakiterator_th
-// ----------------------------------------------------;
+// ----------------------------------------------------
+// class Breakiterator_th
+// ----------------------------------------------------;
BreakIterator_th::BreakIterator_th()
{
cBreakIterator = "com.sun.star.i18n.BreakIterator_th";
@@ -58,9 +58,9 @@ BreakIterator_th::~BreakIterator_th()
* cell composition states
*/
-#define ST_COM 1 // Compose the following character with leading char and display in the same cell
-#define ST_NXT 2 // display the following character in the next cell
-#define ST_NDP 3 // non-display
+#define ST_COM 1 // Compose the following character with leading char and display in the same cell
+#define ST_NXT 2 // display the following character in the next cell
+#define ST_NDP 3 // non-display
static const sal_Int16 thaiCompRel[MAX_CT][MAX_CT] = {
// C N C L F F F B B B T A A A A A A
@@ -113,7 +113,7 @@ static sal_Int32 SAL_CALL getACell(const sal_Unicode *text, sal_Int32 pos, sal_I
return curr;
}
-#define is_Thai(c) (0x0e00 <= c && c <= 0x0e7f) // Unicode definition for Thai
+#define is_Thai(c) (0x0e00 <= c && c <= 0x0e7f) // Unicode definition for Thai
void SAL_CALL BreakIterator_th::makeIndex(const OUString& Text, sal_Int32 nStartPos)
throw(RuntimeException)
diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx
index ad934db2db11..74ba089b9aa0 100644
--- a/i18npool/source/breakiterator/breakiterator_unicode.cxx
+++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@ class OOoRuleBasedBreakIterator : public RuleBasedBreakIterator {
setBreakType(type);
};
OOoRuleBasedBreakIterator(UDataMemory* image,
- UErrorCode &status) :
+ UErrorCode &status) :
RuleBasedBreakIterator(image, status) { };
};
@@ -105,7 +105,7 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star::
sal_Int16 breakType = 0;
switch (rBreakType) {
case LOAD_CHARACTER_BREAKITERATOR: icuBI=&character; breakType = 3; break;
- case LOAD_WORD_BREAKITERATOR: icuBI=&word;
+ case LOAD_WORD_BREAKITERATOR: icuBI=&word;
switch (rWordType) {
case WordType::ANYWORD_IGNOREWHITESPACES: breakType = 0; rule=wordRule = "edit_word"; break;
case WordType::DICTIONARY_WORD: breakType = 1; rule=wordRule = "dict_word"; break;
@@ -132,7 +132,7 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star::
OOoRuleBasedBreakIterator *rbi = NULL;
if (breakRules.getLength() > breakType && breakRules[breakType].getLength() > 0) {
- rbi = new OOoRuleBasedBreakIterator(udata_open("OpenOffice", "brk",
+ rbi = new OOoRuleBasedBreakIterator(udata_open("OpenOffice", "brk",
OUStringToOString(breakRules[breakType], RTL_TEXTENCODING_ASCII_US).getStr(), &status), status);
} else {
status = U_ZERO_ERROR;
@@ -198,7 +198,7 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star::
}
}
- if (newBreak || icuBI->aICUText.compare(UnicodeString(reinterpret_cast<const UChar *>(rText.getStr()), rText.getLength()))) { // UChar != sal_Unicode in MinGW
+ if (newBreak || icuBI->aICUText.compare(UnicodeString(reinterpret_cast<const UChar *>(rText.getStr()), rText.getLength()))) { // UChar != sal_Unicode in MinGW
icuBI->aICUText=UnicodeString(reinterpret_cast<const UChar *>(rText.getStr()), rText.getLength());
icuBI->aBreakIterator->setText(icuBI->aICUText);
}
@@ -381,8 +381,8 @@ LineBreakResults SAL_CALL BreakIterator_Unicode::getLineBreak(
Boundary wBoundary = getWordBoundary( Text, nStartPos, rLocale,
WordType::DICTIONARY_WORD, false);
uno::Reference< linguistic2::XHyphenatedWord > aHyphenatedWord;
- aHyphenatedWord = hOptions.rHyphenator->hyphenate(Text.copy(wBoundary.startPos,
- wBoundary.endPos - wBoundary.startPos), rLocale,
+ aHyphenatedWord = hOptions.rHyphenator->hyphenate(Text.copy(wBoundary.startPos,
+ wBoundary.endPos - wBoundary.startPos), rLocale,
(sal_Int16) (hOptions.hyphenIndex - wBoundary.startPos), hOptions.aHyphenationOptions);
if (aHyphenatedWord.is()) {
lbr.rHyphenatedWord = aHyphenatedWord;
diff --git a/i18npool/source/breakiterator/gendict.cxx b/i18npool/source/breakiterator/gendict.cxx
index 9e8185850543..31aaeaa83e60 100644
--- a/i18npool/source/breakiterator/gendict.cxx
+++ b/i18npool/source/breakiterator/gendict.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if (argc < 3) exit(-1);
- sfp = fopen(argv[1], "rb"); // open the source file for read;
- if (sfp == NULL)
+ sfp = fopen(argv[1], "rb"); // open the source file for read;
+ if (sfp == NULL)
{
printf("Open the dictionary source file failed.");
return -1;
@@ -93,7 +93,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
i=0;
Ostr.iterateCodePoints(&i, 1);
- if (len == i) continue; // skip one character word
+ if (len == i) continue; // skip one character word
if (*u != current) {
if (*u < current)
@@ -108,8 +108,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
lenArray[lenArrayCount++] = lenArrayCurr;
exist[u[0]] = sal_True;
- for (i = 1; i < len; i++) { // start from second character,
- exist[u[i]] = sal_True; // since the first character is captured in charArray.
+ for (i = 1; i < len; i++) { // start from second character,
+ exist[u[i]] = sal_True; // since the first character is captured in charArray.
lenArrayCurr++;
if ((count++) % 0x10 == 0)
fprintf(cfp, "\n\t");
@@ -120,7 +120,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
charArray[current+1] = lenArrayCount;
fprintf(cfp, "\n};\n");
- // generate lenArray
+ // generate lenArray
fprintf(cfp, "static const sal_Int32 lenArray[] = {\n\t");
count = 1;
fprintf(cfp, "0x%x, ", 0); // insert one slat for skipping 0 in index2 array.
@@ -203,6 +203,6 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
fclose(cfp);
return 0;
-} // End of main
+} // End of main
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx
index 7a0f563a0a96..f63262b9adcd 100644
--- a/i18npool/source/breakiterator/xdictionary.cxx
+++ b/i18npool/source/breakiterator/xdictionary.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,7 +112,7 @@ xdictionary::xdictionary(const sal_Char *lang) :
xdictionary::~xdictionary() {
osl_unloadModule(hModule);
for (sal_Int32 i = 0; i < CACHE_MAX; i++) {
- if (cache[i].size > 0) {
+ if (cache[i].size > 0) {
delete cache[i].contents;
delete cache[i].wordboundary;
}
@@ -174,7 +174,7 @@ WordBreakCache::WordBreakCache() :
wordboundary( NULL ),
size( 0 )
{
-}
+}
/*
* Compare two unicode string,
@@ -196,7 +196,7 @@ sal_Bool WordBreakCache::equals(const sal_Unicode* str, Boundary& boundary) {
* @param pos : Position of the given character.
* @return true if CJK.
*/
-sal_Bool xdictionary::seekSegment(const rtl::OUString &rText, sal_Int32 pos,
+sal_Bool xdictionary::seekSegment(const rtl::OUString &rText, sal_Int32 pos,
Boundary& segBoundary)
{
sal_Int32 indexUtf16;
@@ -228,7 +228,7 @@ sal_Bool xdictionary::seekSegment(const rtl::OUString &rText, sal_Int32 pos,
}
#define KANJA 1
-#define KATAKANA 2
+#define KATAKANA 2
#define HIRAKANA 3
static sal_Int16 JapaneseCharType(sal_Unicode c)
@@ -256,7 +256,7 @@ WordBreakCache& xdictionary::getCache(const sal_Unicode *text, Boundary& wordBou
delete aCache.wordboundary;
aCache.size = len;
}
- else
+ else
aCache.size = len > DEFAULT_SIZE ? len : DEFAULT_SIZE;
aCache.contents = new sal_Unicode[aCache.size + 1];
aCache.wordboundary = new sal_Int32[aCache.size + 2];
diff --git a/i18npool/source/calendar/calendarImpl.cxx b/i18npool/source/calendar/calendarImpl.cxx
index be3802ee9062..0999b6e4a6a5 100644
--- a/i18npool/source/calendar/calendarImpl.cxx
+++ b/i18npool/source/calendar/calendarImpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ CalendarImpl::loadCalendar(const OUString& uniqueID, const Locale& rLocale ) thr
{
Reference < XExtendedCalendar > xOldCalendar( xCalendar ); // backup
sal_Int32 i;
-
+
for (i = 0; i < sal::static_int_cast<sal_Int32>(lookupTable.size()); i++) {
lookupTableItem *listItem = lookupTable[i];
if (uniqueID == listItem->uniqueID) {
@@ -291,7 +291,7 @@ CalendarImpl::isValid() throw(RuntimeException)
throw ERROR ;
}
-OUString SAL_CALL
+OUString SAL_CALL
CalendarImpl::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode )
throw (RuntimeException)
{
diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx
index 51180b01d058..abdda185506e 100644
--- a/i18npool/source/calendar/calendar_gregorian.cxx
+++ b/i18npool/source/calendar/calendar_gregorian.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -147,24 +147,24 @@ Calendar_gregorian::init(Era *_eraArray)
{
cCalendar = "com.sun.star.i18n.Calendar_gregorian";
- // #i102356# With icu::Calendar::createInstance(UErrorCode) in a Thai
- // th_TH system locale we accidentally used a Buddhist calendar. Though
- // the ICU documentation says that should be the case only for
- // th_TH_TRADITIONAL (and ja_JP_TRADITIONAL Gengou), a plain th_TH
- // already triggers that behavior, ja_JP does not. Strange enough,
- // passing a th_TH locale to the calendar creation doesn't trigger
+ // #i102356# With icu::Calendar::createInstance(UErrorCode) in a Thai
+ // th_TH system locale we accidentally used a Buddhist calendar. Though
+ // the ICU documentation says that should be the case only for
+ // th_TH_TRADITIONAL (and ja_JP_TRADITIONAL Gengou), a plain th_TH
+ // already triggers that behavior, ja_JP does not. Strange enough,
+ // passing a th_TH locale to the calendar creation doesn't trigger
// this.
// See also http://userguide.icu-project.org/datetime/calendar
- // Whatever ICU offers as the default calendar for a locale, ensure we
+ // Whatever ICU offers as the default calendar for a locale, ensure we
// have a Gregorian calendar as requested.
- /* XXX: with the current implementation the aLocale member variable is
+ /* XXX: with the current implementation the aLocale member variable is
* not set prior to loading a calendar from locale data. This
- * creates an empty (root) locale for ICU, but at least the correct
- * calendar is used. The language part must not be NULL (respectively
- * not all, language and country and variant), otherwise the current
- * default locale would be used again and the calendar keyword ignored.
+ * creates an empty (root) locale for ICU, but at least the correct
+ * calendar is used. The language part must not be NULL (respectively
+ * not all, language and country and variant), otherwise the current
+ * default locale would be used again and the calendar keyword ignored.
* */
icu::Locale aIcuLocale( "", NULL, NULL, "calendar=gregorian");
@@ -202,7 +202,7 @@ Calendar_hanja::getDisplayName( sal_Int16 displayIndex, sal_Int16 idx, sal_Int16
void SAL_CALL
Calendar_hanja::loadCalendar( const OUString& /*uniqueID*/, const com::sun::star::lang::Locale& rLocale ) throw(RuntimeException)
{
- // Since this class could be called by service name 'hanja_yoil', we have to
+ // Since this class could be called by service name 'hanja_yoil', we have to
// rename uniqueID to get right calendar defined in locale data.
Calendar_gregorian::loadCalendar(OUString::createFromAscii("hanja"), rLocale);
}
@@ -419,7 +419,7 @@ bool Calendar_gregorian::getDSTOffset( sal_Int32 & o_nOffset ) const
void Calendar_gregorian::submitFields() throw(com::sun::star::uno::RuntimeException)
{
for (sal_Int16 fieldIndex = 0; fieldIndex < FIELD_INDEX_COUNT; fieldIndex++)
- {
+ {
if (fieldSet & (1 << fieldIndex))
{
switch (fieldIndex)
@@ -592,7 +592,7 @@ void Calendar_gregorian::setValue() throw(RuntimeException)
nDST1 = 0;
}
- // The original submission, may lead to a different zone/DST and
+ // The original submission, may lead to a different zone/DST and
// different date.
submitFields();
DUMP_ICU_CAL_MSG(("%s\n","setValue() after original submission"));
@@ -615,11 +615,11 @@ void Calendar_gregorian::setValue() throw(RuntimeException)
// is not what we want.
// Resubmit all values, this time including DST => date 01:00
// Similar for zone differences.
- // If already the first full submission with nZone0 and nDST0
- // lead to date-1 23:00, the original submission was based on
- // that date if it wasn't a full date (nDST0 set, nDST1 not
- // set, nDST2==nDST1). If it was January 1st without year we're
- // even off by one year now. Resubmit all values including new
+ // If already the first full submission with nZone0 and nDST0
+ // lead to date-1 23:00, the original submission was based on
+ // that date if it wasn't a full date (nDST0 set, nDST1 not
+ // set, nDST2==nDST1). If it was January 1st without year we're
+ // even off by one year now. Resubmit all values including new
// DST => date 00:00.
// Set field values accordingly in case they were used.
@@ -788,7 +788,7 @@ Calendar_gregorian::isValid() throw(RuntimeException)
// NatNum3 NatNum3/3/3/3 NatNum3/3/3/3 NatNum3/3/3/3 NatNum3/3/3/3
// NatNum4 NatNum9/9/11/11
-static sal_Int16 SAL_CALL NatNumForCalendar(const com::sun::star::lang::Locale& aLocale,
+static sal_Int16 SAL_CALL NatNumForCalendar(const com::sun::star::lang::Locale& aLocale,
sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode, sal_Int16 value )
{
sal_Bool isShort = ((nCalendarDisplayCode == CalendarDisplayCode::SHORT_YEAR ||
@@ -801,7 +801,7 @@ static sal_Int16 SAL_CALL NatNumForCalendar(const com::sun::star::lang::Locale&
if (isChinese || isJapanese || isKorean) {
switch (nNativeNumberMode) {
- case NativeNumberMode::NATNUM1:
+ case NativeNumberMode::NATNUM1:
if (!isShort)
nNativeNumberMode = isJapanese ? NativeNumberMode::NATNUM4 : NativeNumberMode::NATNUM7;
break;
@@ -824,27 +824,27 @@ static sal_Int16 SAL_CALL NatNumForCalendar(const com::sun::star::lang::Locale&
static sal_Int32 SAL_CALL DisplayCode2FieldIndex(sal_Int32 nCalendarDisplayCode)
{
switch( nCalendarDisplayCode ) {
- case CalendarDisplayCode::SHORT_DAY:
- case CalendarDisplayCode::LONG_DAY:
+ case CalendarDisplayCode::SHORT_DAY:
+ case CalendarDisplayCode::LONG_DAY:
return CalendarFieldIndex::DAY_OF_MONTH;
- case CalendarDisplayCode::SHORT_DAY_NAME:
- case CalendarDisplayCode::LONG_DAY_NAME:
+ case CalendarDisplayCode::SHORT_DAY_NAME:
+ case CalendarDisplayCode::LONG_DAY_NAME:
return CalendarFieldIndex::DAY_OF_WEEK;
- case CalendarDisplayCode::SHORT_QUARTER:
- case CalendarDisplayCode::LONG_QUARTER:
- case CalendarDisplayCode::SHORT_MONTH:
- case CalendarDisplayCode::LONG_MONTH:
- case CalendarDisplayCode::SHORT_MONTH_NAME:
- case CalendarDisplayCode::LONG_MONTH_NAME:
+ case CalendarDisplayCode::SHORT_QUARTER:
+ case CalendarDisplayCode::LONG_QUARTER:
+ case CalendarDisplayCode::SHORT_MONTH:
+ case CalendarDisplayCode::LONG_MONTH:
+ case CalendarDisplayCode::SHORT_MONTH_NAME:
+ case CalendarDisplayCode::LONG_MONTH_NAME:
return CalendarFieldIndex::MONTH;
- case CalendarDisplayCode::SHORT_YEAR:
- case CalendarDisplayCode::LONG_YEAR:
+ case CalendarDisplayCode::SHORT_YEAR:
+ case CalendarDisplayCode::LONG_YEAR:
return CalendarFieldIndex::YEAR;
- case CalendarDisplayCode::SHORT_ERA:
- case CalendarDisplayCode::LONG_ERA:
+ case CalendarDisplayCode::SHORT_ERA:
+ case CalendarDisplayCode::LONG_ERA:
return CalendarFieldIndex::ERA;
- case CalendarDisplayCode::SHORT_YEAR_AND_ERA:
- case CalendarDisplayCode::LONG_YEAR_AND_ERA:
+ case CalendarDisplayCode::SHORT_YEAR_AND_ERA:
+ case CalendarDisplayCode::LONG_YEAR_AND_ERA:
return CalendarFieldIndex::YEAR;
default:
return 0;
@@ -947,7 +947,7 @@ Calendar_gregorian::getDisplayName( sal_Int16 displayIndex, sal_Int16 idx, sal_I
}
// Methods in XExtendedCalendar
-OUString SAL_CALL
+OUString SAL_CALL
Calendar_gregorian::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode )
throw (RuntimeException)
{
@@ -965,7 +965,7 @@ Calendar_gregorian::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16
// number of months, divide by 4 and then use that result to divide the
// actual month value.
if ( quarter > 3 )
- quarter = 3;
+ quarter = 3;
quarter = sal::static_int_cast<sal_Int16>( quarter +
((nCalendarDisplayCode == CalendarDisplayCode::SHORT_QUARTER) ?
reservedWords::QUARTER1_ABBREVIATION : reservedWords::QUARTER1_WORD) );
@@ -976,23 +976,23 @@ Calendar_gregorian::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16
// having that comment triggers alarm ;-)
sal_Char aStr[10];
switch( nCalendarDisplayCode ) {
- case CalendarDisplayCode::SHORT_MONTH:
+ case CalendarDisplayCode::SHORT_MONTH:
value += 1; // month is zero based
// fall thru
- case CalendarDisplayCode::SHORT_DAY:
+ case CalendarDisplayCode::SHORT_DAY:
sprintf(aStr, "%d", value); // #100211# - checked
break;
- case CalendarDisplayCode::LONG_YEAR:
+ case CalendarDisplayCode::LONG_YEAR:
if (aCalendar.Name.equalsAscii("gengou"))
sprintf(aStr, "%02d", value); // #100211# - checked
else
sprintf(aStr, "%d", value); // #100211# - checked
break;
- case CalendarDisplayCode::LONG_MONTH:
+ case CalendarDisplayCode::LONG_MONTH:
value += 1; // month is zero based
sprintf(aStr, "%02d", value); // #100211# - checked
break;
- case CalendarDisplayCode::SHORT_YEAR:
+ case CalendarDisplayCode::SHORT_YEAR:
// Take last 2 digits, or only one if vallue<10, for example,
// in case of the Gengou calendar.
if (value < 100)
@@ -1000,28 +1000,28 @@ Calendar_gregorian::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16
else
sprintf(aStr, "%02d", value % 100); // #100211# - checked
break;
- case CalendarDisplayCode::LONG_DAY:
+ case CalendarDisplayCode::LONG_DAY:
sprintf(aStr, "%02d", value); // #100211# - checked
break;
- case CalendarDisplayCode::SHORT_DAY_NAME:
+ case CalendarDisplayCode::SHORT_DAY_NAME:
return getDisplayName(CalendarDisplayIndex::DAY, value, 0);
- case CalendarDisplayCode::LONG_DAY_NAME:
+ case CalendarDisplayCode::LONG_DAY_NAME:
return getDisplayName(CalendarDisplayIndex::DAY, value, 1);
- case CalendarDisplayCode::SHORT_MONTH_NAME:
+ case CalendarDisplayCode::SHORT_MONTH_NAME:
return getDisplayName(CalendarDisplayIndex::MONTH, value, 0);
- case CalendarDisplayCode::LONG_MONTH_NAME:
+ case CalendarDisplayCode::LONG_MONTH_NAME:
return getDisplayName(CalendarDisplayIndex::MONTH, value, 1);
- case CalendarDisplayCode::SHORT_ERA:
+ case CalendarDisplayCode::SHORT_ERA:
return getDisplayName(CalendarDisplayIndex::ERA, value, 0);
- case CalendarDisplayCode::LONG_ERA:
+ case CalendarDisplayCode::LONG_ERA:
return getDisplayName(CalendarDisplayIndex::ERA, value, 1);
- case CalendarDisplayCode::SHORT_YEAR_AND_ERA:
+ case CalendarDisplayCode::SHORT_YEAR_AND_ERA:
return getDisplayString( CalendarDisplayCode::SHORT_ERA, nNativeNumberMode ) +
getDisplayString( CalendarDisplayCode::SHORT_YEAR, nNativeNumberMode );
- case CalendarDisplayCode::LONG_YEAR_AND_ERA:
+ case CalendarDisplayCode::LONG_YEAR_AND_ERA:
return getDisplayString( CalendarDisplayCode::LONG_ERA, nNativeNumberMode ) +
getDisplayString( CalendarDisplayCode::LONG_YEAR, nNativeNumberMode );
@@ -1048,12 +1048,12 @@ Calendar_gregorian::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16
}
// Methods in XExtendedCalendar
-OUString SAL_CALL
+OUString SAL_CALL
Calendar_buddhist::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode )
throw (RuntimeException)
{
// make year and era in different order for year before and after 0.
- if ((nCalendarDisplayCode == CalendarDisplayCode::LONG_YEAR_AND_ERA ||
+ if ((nCalendarDisplayCode == CalendarDisplayCode::LONG_YEAR_AND_ERA ||
nCalendarDisplayCode == CalendarDisplayCode::SHORT_YEAR_AND_ERA) &&
getValue(CalendarFieldIndex::ERA) == 0) {
if (nCalendarDisplayCode == CalendarDisplayCode::LONG_YEAR_AND_ERA)
diff --git a/i18npool/source/calendar/calendar_hijri.cxx b/i18npool/source/calendar/calendar_hijri.cxx
index 5d14946b3688..60601fec3e8b 100644
--- a/i18npool/source/calendar/calendar_hijri.cxx
+++ b/i18npool/source/calendar/calendar_hijri.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,23 +47,23 @@ using namespace ::rtl;
//static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call.
// radians per degree (pi/180)
-const double Calendar_hijri::RadPerDeg = 0.01745329251994329577;
+const double Calendar_hijri::RadPerDeg = 0.01745329251994329577;
// Synodic Period (mean time between 2 successive new moon: 29d, 12 hr, 44min, 3sec
-const double Calendar_hijri::SynPeriod = 29.53058868;
-const double Calendar_hijri::SynMonth = 365.25/29.53058868; // Solar days in a year/SynPeriod
+const double Calendar_hijri::SynPeriod = 29.53058868;
+const double Calendar_hijri::SynMonth = 365.25/29.53058868; // Solar days in a year/SynPeriod
// Julian day on Jan 1, 1900
-const double Calendar_hijri::jd1900 = 2415020.75933;
+const double Calendar_hijri::jd1900 = 2415020.75933;
// Reference point: March 26, 2001 == 1422 Hijri == 1252 Synodial month from 1900
-const sal_Int32 Calendar_hijri::SynRef = 1252;
-const sal_Int32 Calendar_hijri::GregRef = 1422;
+const sal_Int32 Calendar_hijri::SynRef = 1252;
+const sal_Int32 Calendar_hijri::GregRef = 1422;
// Local time specific to Saudi Arabia
-const double Calendar_hijri::SA_TimeZone = 3.0;
+const double Calendar_hijri::SA_TimeZone = 3.0;
-const double Calendar_hijri::EveningPeriod = 6.0;
+const double Calendar_hijri::EveningPeriod = 6.0;
const sal_Int32 Calendar_hijri::LeapYear[] = {
2, 5, 7, 10, 13, 16, 18, 21, 24, 26, 29
@@ -74,7 +74,7 @@ Calendar_hijri::Calendar_hijri()
cCalendar = "com.sun.star.i18n.Calendar_hijri";
}
-#define FIELDS ((1 << CalendarFieldIndex::ERA) | (1 << CalendarFieldIndex::YEAR) | (1 << CalendarFieldIndex::MONTH) | (1 << CalendarFieldIndex::DAY_OF_MONTH))
+#define FIELDS ((1 << CalendarFieldIndex::ERA) | (1 << CalendarFieldIndex::YEAR) | (1 << CalendarFieldIndex::MONTH) | (1 << CalendarFieldIndex::DAY_OF_MONTH))
// map field value from hijri calendar to gregorian calendar
void Calendar_hijri::mapToGregorian() throw(RuntimeException)
@@ -120,7 +120,7 @@ void Calendar_hijri::mapFromGregorian() throw(RuntimeException)
// This function returns the Julian date/time of the Nth new moon since
// January 1900. The synodic month is passed as parameter.
//
-// Adapted from "Astronomical Formulae for Calculators" by
+// Adapted from "Astronomical Formulae for Calculators" by
// Jean Meeus, Third Edition, Willmann-Bell, 1985.
//
double
@@ -128,7 +128,7 @@ Calendar_hijri::NewMoon(sal_Int32 n)
{
double jd, t, t2, t3, k, ma, sa, tf, xtra;
k = n;
- t = k/1236.85; // Time in Julian centuries from 1900 January 0.5
+ t = k/1236.85; // Time in Julian centuries from 1900 January 0.5
t2 = t * t;
t3 = t2 * t;
@@ -136,17 +136,17 @@ Calendar_hijri::NewMoon(sal_Int32 n)
jd = jd1900
+ SynPeriod * k
- 0.0001178 * t2
- - 0.000000155 * t3
+ - 0.000000155 * t3
+ 0.00033 * sin(RadPerDeg * (166.56 + 132.87 * t - 0.009173 * t2));
// Sun's mean anomaly in radian
sa = RadPerDeg * (359.2242
- + 29.10535608 * k
+ + 29.10535608 * k
- 0.0000333 * t2
- 0.00000347 * t3);
// Moon's mean anomaly
- ma = RadPerDeg * (306.0253
+ ma = RadPerDeg * (306.0253
+ 385.81691806 * k
+ 0.0107306 * t2
+ 0.00001236 * t3);
@@ -184,7 +184,7 @@ void
Calendar_hijri::getHijri(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year)
{
double prevday;
-// double dayfraction;
+// double dayfraction;
sal_Int32 syndiff;
sal_Int32 newsyn;
double newjd;
@@ -213,7 +213,7 @@ Calendar_hijri::getHijri(sal_Int32 *day, sal_Int32 *month, sal_Int32 *year)
// Round up the day
*day = (sal_Int32)(((sal_Int32)julday) - newjd + 0.5);
- *month = (syndiff % 12) + 1;
+ *month = (syndiff % 12) + 1;
// currently not supported
//dayOfYear = (sal_Int32)(month * SynPeriod + day);
diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx
index f7eb64061a1a..e0cecaeedc10 100644
--- a/i18npool/source/calendar/calendar_jewish.cxx
+++ b/i18npool/source/calendar/calendar_jewish.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -138,17 +138,17 @@ sal_Int32 LastDayOfHebrewMonth(sal_Int32 month, sal_Int32 year) {
else
return 30;
}
-
+
class HebrewDate {
private:
sal_Int32 year; // 1...
sal_Int32 month; // 1..LastMonthOfHebrewYear(year)
sal_Int32 day; // 1..LastDayOfHebrewMonth(month, year)
-
+
public:
HebrewDate(sal_Int32 m, sal_Int32 d, sal_Int32 y) { month = m; day = d; year = y; }
-
+
HebrewDate(sal_Int32 d) { // Computes the Hebrew date from the absolute date.
year = (d + HebrewEpoch) / 366; // Approximation from below.
// Search forward for year from the approximation.
@@ -164,7 +164,7 @@ public:
// Calculate the day by subtraction.
day = d - HebrewDate(month, 1, year) + 1;
}
-
+
operator int() { // Computes the absolute date of Hebrew date.
sal_Int32 DayInYear = day; // Days so far this month.
if (month < 7) { // Before Tishri, so add days in prior months
@@ -191,13 +191,13 @@ public:
(HebrewCalendarElapsedDays(year)// Days in prior years.
+ HebrewEpoch)); // Days elapsed before absolute date 1.
}
-
+
sal_Int32 GetMonth() { return month; }
sal_Int32 GetDay() { return day; }
sal_Int32 GetYear() { return year; }
-
+
};
-
+
// Gregorian dates
int LastDayOfGregorianMonth(int month, int year) {
@@ -223,7 +223,7 @@ private:
int year; // 1...
int month; // 1 == January, ..., 12 == December
int day; // 1..LastDayOfGregorianMonth(month, year)
-
+
public:
GregorianDate(int m, int d, int y) { month = m; day = d; year = y; }
@@ -272,8 +272,8 @@ void Calendar_jewish::mapFromGregorian() throw(RuntimeException)
fieldValue[CalendarFieldIndex::YEAR] = (sal_Int16)(hd.GetYear() <= 0 ? 1 - hd.GetYear() : hd.GetYear());
}
-#define FIELDS ((1 << CalendarFieldIndex::ERA) | (1 << CalendarFieldIndex::YEAR) | (1 << CalendarFieldIndex::MONTH) | (1 << CalendarFieldIndex::DAY_OF_MONTH))
-// map field value from other calendar to gregorian calendar, it should be implemented.
+#define FIELDS ((1 << CalendarFieldIndex::ERA) | (1 << CalendarFieldIndex::YEAR) | (1 << CalendarFieldIndex::MONTH) | (1 << CalendarFieldIndex::DAY_OF_MONTH))
+// map field value from other calendar to gregorian calendar, it should be implemented.
void Calendar_jewish::mapToGregorian() throw(RuntimeException)
{
if (fieldSet & FIELDS) {
@@ -292,7 +292,7 @@ void Calendar_jewish::mapToGregorian() throw(RuntimeException)
}
// Methods in XExtendedCalendar
-OUString SAL_CALL
+OUString SAL_CALL
Calendar_jewish::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode )
throw (RuntimeException)
{
diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx
index 2db8575785f1..576936e416bf 100644
--- a/i18npool/source/characterclassification/cclass_unicode.cxx
+++ b/i18npool/source/characterclassification/cclass_unicode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,9 +42,9 @@ using namespace ::com::sun::star::lang;
using namespace ::rtl;
namespace com { namespace sun { namespace star { namespace i18n {
-// ----------------------------------------------------
-// class cclass_Unicode
-// ----------------------------------------------------;
+// ----------------------------------------------------
+// class cclass_Unicode
+// ----------------------------------------------------;
cclass_Unicode::cclass_Unicode( uno::Reference < XMultiServiceFactory > xSMgr ) : xMSF( xSMgr ),
pTable( NULL ),
@@ -93,7 +93,7 @@ cclass_Unicode::toLower( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
OUString SAL_CALL
cclass_Unicode::toTitle( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException) {
sal_Int32 len = Text.getLength();
- if (nPos >= len)
+ if (nPos >= len)
return OUString();
if (nCount + nPos > len)
nCount = len - nPos;
@@ -102,11 +102,11 @@ cclass_Unicode::toTitle( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount,
rtl_uString* pStr = x_rtl_uString_new_WithLength( nCount, 1 );
sal_Unicode* out = pStr->buffer;
BreakIteratorImpl brk(xMSF);
- Boundary bdy = brk.getWordBoundary(Text, nPos, rLocale,
+ Boundary bdy = brk.getWordBoundary(Text, nPos, rLocale,
WordType::ANYWORD_IGNOREWHITESPACES, sal_True);
for (sal_Int32 i = nPos; i < nCount + nPos; i++, out++) {
if (i >= bdy.endPos)
- bdy = brk.nextWord(Text, bdy.endPos, rLocale,
+ bdy = brk.nextWord(Text, bdy.endPos, rLocale,
WordType::ANYWORD_IGNOREWHITESPACES);
*out = (i == bdy.startPos) ?
trans->transliterateChar2Char(Text[i]) : Text[i];
@@ -138,7 +138,7 @@ cclass_Unicode::getScript( const OUString& Text, sal_Int32 nPos ) throw(RuntimeE
}
-sal_Int32 SAL_CALL
+sal_Int32 SAL_CALL
cclass_Unicode::getCharType( const OUString& Text, sal_Int32* nPos, sal_Int32 increment) {
using namespace ::com::sun::star::i18n::KCharacterType;
diff --git a/i18npool/source/characterclassification/cclass_unicode_parser.cxx b/i18npool/source/characterclassification/cclass_unicode_parser.cxx
index 616943bf9009..d38c72bdfa75 100644
--- a/i18npool/source/characterclassification/cclass_unicode_parser.cxx
+++ b/i18npool/source/characterclassification/cclass_unicode_parser.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
#include <com/sun/star/i18n/XLocaleData.hpp>
#include <com/sun/star/i18n/NativeNumberMode.hpp>
-#include <string.h> // memcpy()
+#include <string.h> // memcpy()
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
@@ -47,25 +47,25 @@ using namespace ::rtl;
namespace com { namespace sun { namespace star { namespace i18n {
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_ILLEGAL = 0x00000000;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR = 0x00000001;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_BOOL = 0x00000002;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_WORD = 0x00000004;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_VALUE = 0x00000008;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_STRING = 0x00000010;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_ILLEGAL = 0x00000000;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR = 0x00000001;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_BOOL = 0x00000002;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_WORD = 0x00000004;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_VALUE = 0x00000008;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_STRING = 0x00000010;
const UPT_FLAG_TYPE cclass_Unicode::TOKEN_CHAR_DONTCARE= 0x00000020;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_BOOL = 0x00000040;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_WORD = 0x00000080;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_WORD_SEP = 0x00000100;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE = 0x00000200;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_SEP = 0x00000400;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_EXP = 0x00000800;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_SIGN = 0x00001000;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_EXP_VALUE = 0x00002000;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_DIGIT = 0x00004000;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_NAME_SEP = 0x20000000;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_STRING_SEP = 0x40000000;
-const UPT_FLAG_TYPE cclass_Unicode::TOKEN_EXCLUDED = 0x80000000;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_BOOL = 0x00000040;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_WORD = 0x00000080;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_WORD_SEP = 0x00000100;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE = 0x00000200;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_SEP = 0x00000400;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_EXP = 0x00000800;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_SIGN = 0x00001000;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_EXP_VALUE = 0x00002000;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_VALUE_DIGIT = 0x00004000;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_NAME_SEP = 0x20000000;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_STRING_SEP = 0x40000000;
+const UPT_FLAG_TYPE cclass_Unicode::TOKEN_EXCLUDED = 0x80000000;
#define TOKEN_DIGIT_FLAGS (TOKEN_CHAR_VALUE | TOKEN_VALUE | TOKEN_VALUE_EXP | TOKEN_VALUE_EXP_VALUE | TOKEN_VALUE_DIGIT)
@@ -76,7 +76,7 @@ const UPT_FLAG_TYPE cclass_Unicode::pDefaultParserTable[ nDefCnt ] =
{
// (...) == Calc formula compiler specific, commented out and modified
- /* \0 */ TOKEN_EXCLUDED,
+ /* \0 */ TOKEN_EXCLUDED,
TOKEN_ILLEGAL,
TOKEN_ILLEGAL,
TOKEN_ILLEGAL,
@@ -85,9 +85,9 @@ const UPT_FLAG_TYPE cclass_Unicode::pDefaultParserTable[ nDefCnt ] =
TOKEN_ILLEGAL,
TOKEN_ILLEGAL,
TOKEN_ILLEGAL,
- /* 9 \t */ TOKEN_CHAR_DONTCARE | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL)
+ /* 9 \t */ TOKEN_CHAR_DONTCARE | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL)
TOKEN_ILLEGAL,
- /* 11 \v */ TOKEN_CHAR_DONTCARE | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL)
+ /* 11 \v */ TOKEN_CHAR_DONTCARE | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL)
TOKEN_ILLEGAL,
TOKEN_ILLEGAL,
TOKEN_ILLEGAL,
@@ -108,111 +108,111 @@ const UPT_FLAG_TYPE cclass_Unicode::pDefaultParserTable[ nDefCnt ] =
TOKEN_ILLEGAL,
TOKEN_ILLEGAL,
TOKEN_ILLEGAL,
- /* 32 */ TOKEN_CHAR_DONTCARE | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 33 ! */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 34 " */ TOKEN_CHAR_STRING | TOKEN_STRING_SEP,
- /* 35 # */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_WORD_SEP)
- /* 36 $ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_CHAR_WORD | TOKEN_WORD)
- /* 37 % */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_VALUE)
- /* 38 & */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 39 ' */ TOKEN_NAME_SEP,
- /* 40 ( */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 41 ) */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 42 * */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 43 + */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP | TOKEN_VALUE_EXP | TOKEN_VALUE_SIGN,
- /* 44 , */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_CHAR_VALUE | TOKEN_VALUE)
- /* 45 - */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP | TOKEN_VALUE_EXP | TOKEN_VALUE_SIGN,
- /* 46 . */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_WORD | TOKEN_CHAR_VALUE | TOKEN_VALUE)
- /* 47 / */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 32 */ TOKEN_CHAR_DONTCARE | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 33 ! */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 34 " */ TOKEN_CHAR_STRING | TOKEN_STRING_SEP,
+ /* 35 # */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_WORD_SEP)
+ /* 36 $ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_CHAR_WORD | TOKEN_WORD)
+ /* 37 % */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_VALUE)
+ /* 38 & */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 39 ' */ TOKEN_NAME_SEP,
+ /* 40 ( */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 41 ) */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 42 * */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 43 + */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP | TOKEN_VALUE_EXP | TOKEN_VALUE_SIGN,
+ /* 44 , */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_CHAR_VALUE | TOKEN_VALUE)
+ /* 45 - */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP | TOKEN_VALUE_EXP | TOKEN_VALUE_SIGN,
+ /* 46 . */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_WORD | TOKEN_CHAR_VALUE | TOKEN_VALUE)
+ /* 47 / */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
//for ( i = 48; i < 58; i++ )
- /* 48 0 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 49 1 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 50 2 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 51 3 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 52 4 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 53 5 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 54 6 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 55 7 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 56 8 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 57 9 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
- /* 58 : */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_WORD)
- /* 59 ; */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 60 < */ TOKEN_CHAR_BOOL | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 61 = */ TOKEN_CHAR | TOKEN_BOOL | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 62 > */ TOKEN_CHAR_BOOL | TOKEN_BOOL | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 63 ? */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_CHAR_WORD | TOKEN_WORD)
- /* 64 @ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 48 0 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 49 1 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 50 2 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 51 3 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 52 4 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 53 5 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 54 6 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 55 7 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 56 8 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 57 9 */ TOKEN_DIGIT_FLAGS | TOKEN_WORD,
+ /* 58 : */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_WORD)
+ /* 59 ; */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 60 < */ TOKEN_CHAR_BOOL | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 61 = */ TOKEN_CHAR | TOKEN_BOOL | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 62 > */ TOKEN_CHAR_BOOL | TOKEN_BOOL | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 63 ? */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_CHAR_WORD | TOKEN_WORD)
+ /* 64 @ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
//for ( i = 65; i < 91; i++ )
- /* 65 A */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 66 B */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 67 C */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 68 D */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 69 E */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 70 F */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 71 G */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 72 H */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 73 I */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 74 J */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 75 K */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 76 L */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 77 M */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 78 N */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 79 O */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 80 P */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 81 Q */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 82 R */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 83 S */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 84 T */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 85 U */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 86 V */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 87 W */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 88 X */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 89 Y */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 90 Z */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 91 [ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
- /* 92 \ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
- /* 93 ] */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
- /* 94 ^ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
- /* 95 _ */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 96 ` */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 65 A */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 66 B */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 67 C */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 68 D */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 69 E */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 70 F */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 71 G */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 72 H */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 73 I */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 74 J */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 75 K */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 76 L */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 77 M */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 78 N */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 79 O */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 80 P */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 81 Q */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 82 R */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 83 S */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 84 T */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 85 U */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 86 V */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 87 W */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 88 X */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 89 Y */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 90 Z */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 91 [ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 92 \ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 93 ] */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 94 ^ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP,
+ /* 95 _ */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 96 ` */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
//for ( i = 97; i < 123; i++ )
- /* 97 a */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 98 b */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 99 c */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 100 d */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 101 e */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 102 f */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 103 g */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 104 h */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 105 i */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 106 j */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 107 k */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 108 l */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 109 m */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 110 n */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 111 o */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 112 p */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 113 q */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 114 r */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 115 s */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 116 t */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 117 u */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 118 v */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 119 w */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 120 x */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 121 y */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 122 z */ TOKEN_CHAR_WORD | TOKEN_WORD,
- /* 123 { */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
- /* 124 | */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
- /* 125 } */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
- /* 126 ~ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
- /* 127 */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP // (TOKEN_ILLEGAL // UNUSED)
+ /* 97 a */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 98 b */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 99 c */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 100 d */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 101 e */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 102 f */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 103 g */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 104 h */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 105 i */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 106 j */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 107 k */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 108 l */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 109 m */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 110 n */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 111 o */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 112 p */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 113 q */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 114 r */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 115 s */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 116 t */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 117 u */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 118 v */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 119 w */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 120 x */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 121 y */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 122 z */ TOKEN_CHAR_WORD | TOKEN_WORD,
+ /* 123 { */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 124 | */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 125 } */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 126 ~ */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP, // (TOKEN_ILLEGAL // UNUSED)
+ /* 127 */ TOKEN_CHAR | TOKEN_WORD_SEP | TOKEN_VALUE_SEP // (TOKEN_ILLEGAL // UNUSED)
};
const sal_Int32 cclass_Unicode::pParseTokensType[ nDefCnt ] =
{
- /* \0 */ KParseTokens::ASC_OTHER,
+ /* \0 */ KParseTokens::ASC_OTHER,
KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
@@ -221,9 +221,9 @@ const sal_Int32 cclass_Unicode::pParseTokensType[ nDefCnt ] =
KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
- /* 9 \t */ KParseTokens::ASC_CONTROL,
+ /* 9 \t */ KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
- /* 11 \v */ KParseTokens::ASC_CONTROL,
+ /* 11 \v */ KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
@@ -244,105 +244,105 @@ const sal_Int32 cclass_Unicode::pParseTokensType[ nDefCnt ] =
KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
KParseTokens::ASC_CONTROL,
- /* 32 */ KParseTokens::ASC_OTHER,
- /* 33 ! */ KParseTokens::ASC_OTHER,
- /* 34 " */ KParseTokens::ASC_OTHER,
- /* 35 # */ KParseTokens::ASC_OTHER,
- /* 36 $ */ KParseTokens::ASC_DOLLAR,
- /* 37 % */ KParseTokens::ASC_OTHER,
- /* 38 & */ KParseTokens::ASC_OTHER,
- /* 39 ' */ KParseTokens::ASC_OTHER,
- /* 40 ( */ KParseTokens::ASC_OTHER,
- /* 41 ) */ KParseTokens::ASC_OTHER,
- /* 42 * */ KParseTokens::ASC_OTHER,
- /* 43 + */ KParseTokens::ASC_OTHER,
- /* 44 , */ KParseTokens::ASC_OTHER,
- /* 45 - */ KParseTokens::ASC_OTHER,
- /* 46 . */ KParseTokens::ASC_DOT,
- /* 47 / */ KParseTokens::ASC_OTHER,
+ /* 32 */ KParseTokens::ASC_OTHER,
+ /* 33 ! */ KParseTokens::ASC_OTHER,
+ /* 34 " */ KParseTokens::ASC_OTHER,
+ /* 35 # */ KParseTokens::ASC_OTHER,
+ /* 36 $ */ KParseTokens::ASC_DOLLAR,
+ /* 37 % */ KParseTokens::ASC_OTHER,
+ /* 38 & */ KParseTokens::ASC_OTHER,
+ /* 39 ' */ KParseTokens::ASC_OTHER,
+ /* 40 ( */ KParseTokens::ASC_OTHER,
+ /* 41 ) */ KParseTokens::ASC_OTHER,
+ /* 42 * */ KParseTokens::ASC_OTHER,
+ /* 43 + */ KParseTokens::ASC_OTHER,
+ /* 44 , */ KParseTokens::ASC_OTHER,
+ /* 45 - */ KParseTokens::ASC_OTHER,
+ /* 46 . */ KParseTokens::ASC_DOT,
+ /* 47 / */ KParseTokens::ASC_OTHER,
//for ( i = 48; i < 58; i++ )
- /* 48 0 */ KParseTokens::ASC_DIGIT,
- /* 49 1 */ KParseTokens::ASC_DIGIT,
- /* 50 2 */ KParseTokens::ASC_DIGIT,
- /* 51 3 */ KParseTokens::ASC_DIGIT,
- /* 52 4 */ KParseTokens::ASC_DIGIT,
- /* 53 5 */ KParseTokens::ASC_DIGIT,
- /* 54 6 */ KParseTokens::ASC_DIGIT,
- /* 55 7 */ KParseTokens::ASC_DIGIT,
- /* 56 8 */ KParseTokens::ASC_DIGIT,
- /* 57 9 */ KParseTokens::ASC_DIGIT,
- /* 58 : */ KParseTokens::ASC_COLON,
- /* 59 ; */ KParseTokens::ASC_OTHER,
- /* 60 < */ KParseTokens::ASC_OTHER,
- /* 61 = */ KParseTokens::ASC_OTHER,
- /* 62 > */ KParseTokens::ASC_OTHER,
- /* 63 ? */ KParseTokens::ASC_OTHER,
- /* 64 @ */ KParseTokens::ASC_OTHER,
+ /* 48 0 */ KParseTokens::ASC_DIGIT,
+ /* 49 1 */ KParseTokens::ASC_DIGIT,
+ /* 50 2 */ KParseTokens::ASC_DIGIT,
+ /* 51 3 */ KParseTokens::ASC_DIGIT,
+ /* 52 4 */ KParseTokens::ASC_DIGIT,
+ /* 53 5 */ KParseTokens::ASC_DIGIT,
+ /* 54 6 */ KParseTokens::ASC_DIGIT,
+ /* 55 7 */ KParseTokens::ASC_DIGIT,
+ /* 56 8 */ KParseTokens::ASC_DIGIT,
+ /* 57 9 */ KParseTokens::ASC_DIGIT,
+ /* 58 : */ KParseTokens::ASC_COLON,
+ /* 59 ; */ KParseTokens::ASC_OTHER,
+ /* 60 < */ KParseTokens::ASC_OTHER,
+ /* 61 = */ KParseTokens::ASC_OTHER,
+ /* 62 > */ KParseTokens::ASC_OTHER,
+ /* 63 ? */ KParseTokens::ASC_OTHER,
+ /* 64 @ */ KParseTokens::ASC_OTHER,
//for ( i = 65; i < 91; i++ )
- /* 65 A */ KParseTokens::ASC_UPALPHA,
- /* 66 B */ KParseTokens::ASC_UPALPHA,
- /* 67 C */ KParseTokens::ASC_UPALPHA,
- /* 68 D */ KParseTokens::ASC_UPALPHA,
- /* 69 E */ KParseTokens::ASC_UPALPHA,
- /* 70 F */ KParseTokens::ASC_UPALPHA,
- /* 71 G */ KParseTokens::ASC_UPALPHA,
- /* 72 H */ KParseTokens::ASC_UPALPHA,
- /* 73 I */ KParseTokens::ASC_UPALPHA,
- /* 74 J */ KParseTokens::ASC_UPALPHA,
- /* 75 K */ KParseTokens::ASC_UPALPHA,
- /* 76 L */ KParseTokens::ASC_UPALPHA,
- /* 77 M */ KParseTokens::ASC_UPALPHA,
- /* 78 N */ KParseTokens::ASC_UPALPHA,
- /* 79 O */ KParseTokens::ASC_UPALPHA,
- /* 80 P */ KParseTokens::ASC_UPALPHA,
- /* 81 Q */ KParseTokens::ASC_UPALPHA,
- /* 82 R */ KParseTokens::ASC_UPALPHA,
- /* 83 S */ KParseTokens::ASC_UPALPHA,
- /* 84 T */ KParseTokens::ASC_UPALPHA,
- /* 85 U */ KParseTokens::ASC_UPALPHA,
- /* 86 V */ KParseTokens::ASC_UPALPHA,
- /* 87 W */ KParseTokens::ASC_UPALPHA,
- /* 88 X */ KParseTokens::ASC_UPALPHA,
- /* 89 Y */ KParseTokens::ASC_UPALPHA,
- /* 90 Z */ KParseTokens::ASC_UPALPHA,
- /* 91 [ */ KParseTokens::ASC_OTHER,
- /* 92 \ */ KParseTokens::ASC_OTHER,
- /* 93 ] */ KParseTokens::ASC_OTHER,
- /* 94 ^ */ KParseTokens::ASC_OTHER,
- /* 95 _ */ KParseTokens::ASC_UNDERSCORE,
- /* 96 ` */ KParseTokens::ASC_OTHER,
+ /* 65 A */ KParseTokens::ASC_UPALPHA,
+ /* 66 B */ KParseTokens::ASC_UPALPHA,
+ /* 67 C */ KParseTokens::ASC_UPALPHA,
+ /* 68 D */ KParseTokens::ASC_UPALPHA,
+ /* 69 E */ KParseTokens::ASC_UPALPHA,
+ /* 70 F */ KParseTokens::ASC_UPALPHA,
+ /* 71 G */ KParseTokens::ASC_UPALPHA,
+ /* 72 H */ KParseTokens::ASC_UPALPHA,
+ /* 73 I */ KParseTokens::ASC_UPALPHA,
+ /* 74 J */ KParseTokens::ASC_UPALPHA,
+ /* 75 K */ KParseTokens::ASC_UPALPHA,
+ /* 76 L */ KParseTokens::ASC_UPALPHA,
+ /* 77 M */ KParseTokens::ASC_UPALPHA,
+ /* 78 N */ KParseTokens::ASC_UPALPHA,
+ /* 79 O */ KParseTokens::ASC_UPALPHA,
+ /* 80 P */ KParseTokens::ASC_UPALPHA,
+ /* 81 Q */ KParseTokens::ASC_UPALPHA,
+ /* 82 R */ KParseTokens::ASC_UPALPHA,
+ /* 83 S */ KParseTokens::ASC_UPALPHA,
+ /* 84 T */ KParseTokens::ASC_UPALPHA,
+ /* 85 U */ KParseTokens::ASC_UPALPHA,
+ /* 86 V */ KParseTokens::ASC_UPALPHA,
+ /* 87 W */ KParseTokens::ASC_UPALPHA,
+ /* 88 X */ KParseTokens::ASC_UPALPHA,
+ /* 89 Y */ KParseTokens::ASC_UPALPHA,
+ /* 90 Z */ KParseTokens::ASC_UPALPHA,
+ /* 91 [ */ KParseTokens::ASC_OTHER,
+ /* 92 \ */ KParseTokens::ASC_OTHER,
+ /* 93 ] */ KParseTokens::ASC_OTHER,
+ /* 94 ^ */ KParseTokens::ASC_OTHER,
+ /* 95 _ */ KParseTokens::ASC_UNDERSCORE,
+ /* 96 ` */ KParseTokens::ASC_OTHER,
//for ( i = 97; i < 123; i++ )
- /* 97 a */ KParseTokens::ASC_LOALPHA,
- /* 98 b */ KParseTokens::ASC_LOALPHA,
- /* 99 c */ KParseTokens::ASC_LOALPHA,
- /* 100 d */ KParseTokens::ASC_LOALPHA,
- /* 101 e */ KParseTokens::ASC_LOALPHA,
- /* 102 f */ KParseTokens::ASC_LOALPHA,
- /* 103 g */ KParseTokens::ASC_LOALPHA,
- /* 104 h */ KParseTokens::ASC_LOALPHA,
- /* 105 i */ KParseTokens::ASC_LOALPHA,
- /* 106 j */ KParseTokens::ASC_LOALPHA,
- /* 107 k */ KParseTokens::ASC_LOALPHA,
- /* 108 l */ KParseTokens::ASC_LOALPHA,
- /* 109 m */ KParseTokens::ASC_LOALPHA,
- /* 110 n */ KParseTokens::ASC_LOALPHA,
- /* 111 o */ KParseTokens::ASC_LOALPHA,
- /* 112 p */ KParseTokens::ASC_LOALPHA,
- /* 113 q */ KParseTokens::ASC_LOALPHA,
- /* 114 r */ KParseTokens::ASC_LOALPHA,
- /* 115 s */ KParseTokens::ASC_LOALPHA,
- /* 116 t */ KParseTokens::ASC_LOALPHA,
- /* 117 u */ KParseTokens::ASC_LOALPHA,
- /* 118 v */ KParseTokens::ASC_LOALPHA,
- /* 119 w */ KParseTokens::ASC_LOALPHA,
- /* 120 x */ KParseTokens::ASC_LOALPHA,
- /* 121 y */ KParseTokens::ASC_LOALPHA,
- /* 122 z */ KParseTokens::ASC_LOALPHA,
- /* 123 { */ KParseTokens::ASC_OTHER,
- /* 124 | */ KParseTokens::ASC_OTHER,
- /* 125 } */ KParseTokens::ASC_OTHER,
- /* 126 ~ */ KParseTokens::ASC_OTHER,
- /* 127 */ KParseTokens::ASC_OTHER
+ /* 97 a */ KParseTokens::ASC_LOALPHA,
+ /* 98 b */ KParseTokens::ASC_LOALPHA,
+ /* 99 c */ KParseTokens::ASC_LOALPHA,
+ /* 100 d */ KParseTokens::ASC_LOALPHA,
+ /* 101 e */ KParseTokens::ASC_LOALPHA,
+ /* 102 f */ KParseTokens::ASC_LOALPHA,
+ /* 103 g */ KParseTokens::ASC_LOALPHA,
+ /* 104 h */ KParseTokens::ASC_LOALPHA,
+ /* 105 i */ KParseTokens::ASC_LOALPHA,
+ /* 106 j */ KParseTokens::ASC_LOALPHA,
+ /* 107 k */ KParseTokens::ASC_LOALPHA,
+ /* 108 l */ KParseTokens::ASC_LOALPHA,
+ /* 109 m */ KParseTokens::ASC_LOALPHA,
+ /* 110 n */ KParseTokens::ASC_LOALPHA,
+ /* 111 o */ KParseTokens::ASC_LOALPHA,
+ /* 112 p */ KParseTokens::ASC_LOALPHA,
+ /* 113 q */ KParseTokens::ASC_LOALPHA,
+ /* 114 r */ KParseTokens::ASC_LOALPHA,
+ /* 115 s */ KParseTokens::ASC_LOALPHA,
+ /* 116 t */ KParseTokens::ASC_LOALPHA,
+ /* 117 u */ KParseTokens::ASC_LOALPHA,
+ /* 118 v */ KParseTokens::ASC_LOALPHA,
+ /* 119 w */ KParseTokens::ASC_LOALPHA,
+ /* 120 x */ KParseTokens::ASC_LOALPHA,
+ /* 121 y */ KParseTokens::ASC_LOALPHA,
+ /* 122 z */ KParseTokens::ASC_LOALPHA,
+ /* 123 { */ KParseTokens::ASC_OTHER,
+ /* 124 | */ KParseTokens::ASC_OTHER,
+ /* 125 } */ KParseTokens::ASC_OTHER,
+ /* 126 ~ */ KParseTokens::ASC_OTHER,
+ /* 127 */ KParseTokens::ASC_OTHER
};
@@ -491,58 +491,58 @@ void cclass_Unicode::initParserTable( const Locale& rLocale, sal_Int32 startChar
if ( !(nStartTypes & ASC_UPALPHA) )
for ( i = 65; i < 91; i++ )
- pTable[i] &= ~TOKEN_CHAR_WORD; // not allowed as start character
+ pTable[i] &= ~TOKEN_CHAR_WORD; // not allowed as start character
if ( !(nContTypes & ASC_UPALPHA) )
for ( i = 65; i < 91; i++ )
- pTable[i] &= ~TOKEN_WORD; // not allowed as cont character
+ pTable[i] &= ~TOKEN_WORD; // not allowed as cont character
if ( !(nStartTypes & ASC_LOALPHA) )
for ( i = 97; i < 123; i++ )
- pTable[i] &= ~TOKEN_CHAR_WORD; // not allowed as start character
+ pTable[i] &= ~TOKEN_CHAR_WORD; // not allowed as start character
if ( !(nContTypes & ASC_LOALPHA) )
for ( i = 97; i < 123; i++ )
- pTable[i] &= ~TOKEN_WORD; // not allowed as cont character
+ pTable[i] &= ~TOKEN_WORD; // not allowed as cont character
if ( nStartTypes & ASC_DIGIT )
for ( i = 48; i < 58; i++ )
- pTable[i] |= TOKEN_CHAR_WORD; // allowed as start character
+ pTable[i] |= TOKEN_CHAR_WORD; // allowed as start character
if ( !(nContTypes & ASC_DIGIT) )
for ( i = 48; i < 58; i++ )
- pTable[i] &= ~TOKEN_WORD; // not allowed as cont character
+ pTable[i] &= ~TOKEN_WORD; // not allowed as cont character
if ( !(nStartTypes & ASC_UNDERSCORE) )
- pTable[95] &= ~TOKEN_CHAR_WORD; // not allowed as start character
+ pTable[95] &= ~TOKEN_CHAR_WORD; // not allowed as start character
if ( !(nContTypes & ASC_UNDERSCORE) )
- pTable[95] &= ~TOKEN_WORD; // not allowed as cont character
+ pTable[95] &= ~TOKEN_WORD; // not allowed as cont character
if ( nStartTypes & ASC_DOLLAR )
- pTable[36] |= TOKEN_CHAR_WORD; // allowed as start character
+ pTable[36] |= TOKEN_CHAR_WORD; // allowed as start character
if ( nContTypes & ASC_DOLLAR )
- pTable[36] |= TOKEN_WORD; // allowed as cont character
+ pTable[36] |= TOKEN_WORD; // allowed as cont character
if ( nStartTypes & ASC_DOT )
- pTable[46] |= TOKEN_CHAR_WORD; // allowed as start character
+ pTable[46] |= TOKEN_CHAR_WORD; // allowed as start character
if ( nContTypes & ASC_DOT )
- pTable[46] |= TOKEN_WORD; // allowed as cont character
+ pTable[46] |= TOKEN_WORD; // allowed as cont character
if ( nStartTypes & ASC_COLON )
- pTable[58] |= TOKEN_CHAR_WORD; // allowed as start character
+ pTable[58] |= TOKEN_CHAR_WORD; // allowed as start character
if ( nContTypes & ASC_COLON )
- pTable[58] |= TOKEN_WORD; // allowed as cont character
+ pTable[58] |= TOKEN_WORD; // allowed as cont character
if ( nStartTypes & ASC_CONTROL )
for ( i = 1; i < 32; i++ )
- pTable[i] |= TOKEN_CHAR_WORD; // allowed as start character
+ pTable[i] |= TOKEN_CHAR_WORD; // allowed as start character
if ( nContTypes & ASC_CONTROL )
for ( i = 1; i < 32; i++ )
- pTable[i] |= TOKEN_WORD; // allowed as cont character
+ pTable[i] |= TOKEN_WORD; // allowed as cont character
if ( nStartTypes & ASC_ANY_BUT_CONTROL )
for ( i = 32; i < nDefCnt; i++ )
- pTable[i] |= TOKEN_CHAR_WORD; // allowed as start character
+ pTable[i] |= TOKEN_CHAR_WORD; // allowed as start character
if ( nContTypes & ASC_ANY_BUT_CONTROL )
for ( i = 32; i < nDefCnt; i++ )
- pTable[i] |= TOKEN_WORD; // allowed as cont character
+ pTable[i] |= TOKEN_WORD; // allowed as cont character
}
@@ -739,7 +739,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
if ( nMask & TOKEN_EXCLUDED )
eState = ssBounce;
if ( bMightBeWord )
- { // only relevant for ssGetValue fall back
+ { // only relevant for ssGetValue fall back
if ( eState == ssGetChar || eState == ssRewindFromValue ||
eState == ssIgnoreLeadingInRewind )
bMightBeWord = ((nMask & TOKEN_CHAR_WORD) != 0);
@@ -756,7 +756,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
{
if ( (nMask & TOKEN_CHAR_VALUE) && eState != ssRewindFromValue
&& eState != ssIgnoreLeadingInRewind )
- { //! must be first, may fall back to ssGetWord via bMightBeWord
+ { //! must be first, may fall back to ssGetWord via bMightBeWord
eState = ssGetValue;
if ( nMask & TOKEN_VALUE_DIGIT )
{
@@ -784,14 +784,14 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
eState = ssGetWordFirstChar;
bQuote = true;
pSym++;
- nParseTokensType = 0; // will be taken of first real character
+ nParseTokensType = 0; // will be taken of first real character
r.TokenType = KParseType::SINGLE_QUOTE_NAME;
}
else if ( nMask & TOKEN_CHAR_STRING )
{
eState = ssGetString;
pSym++;
- nParseTokensType = 0; // will be taken of first real character
+ nParseTokensType = 0; // will be taken of first real character
r.TokenType = KParseType::DOUBLE_QUOTE_STRING;
}
else if ( nMask & TOKEN_CHAR_DONTCARE )
@@ -802,7 +802,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
eState = ssIgnoreLeadingInRewind;
r.LeadingWhiteSpace++;
pSym++;
- nParseTokensType = 0; // wait until real character
+ nParseTokensType = 0; // wait until real character
bMightBeWord = true;
}
else
@@ -814,12 +814,12 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
r.TokenType = KParseType::BOOLEAN;
}
else if ( nMask & TOKEN_CHAR )
- { //! must be last
+ { //! must be last
eState = ssStop;
r.TokenType = KParseType::ONE_SINGLE_CHAR;
}
else
- eState = ssBounce; // not known
+ eState = ssBounce; // not known
}
break;
case ssGetValue :
@@ -847,9 +847,9 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
{
UPT_FLAG_TYPE nNext = getFlags( pTextStart, pSrc - pTextStart );
if ( nNext & TOKEN_VALUE_EXP )
- ; // keep it going
+ ; // keep it going
else if ( bMightBeWord && ((nNext & TOKEN_WORD) || !*pSrc) )
- { // might be a numerical name (1.2efg)
+ { // might be a numerical name (1.2efg)
eState = ssGetWord;
r.TokenType = KParseType::IDENTNAME;
}
@@ -862,9 +862,9 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
{
UPT_FLAG_TYPE nNext = getFlags( pTextStart, pSrc - pTextStart );
if ( nNext & TOKEN_VALUE_EXP_VALUE )
- ; // keep it going
+ ; // keep it going
else if ( bMightBeWord && ((nNext & TOKEN_WORD) || !*pSrc) )
- { // might be a numerical name (1.2e+fg)
+ { // might be a numerical name (1.2e+fg)
eState = ssGetWord;
r.TokenType = KParseType::IDENTNAME;
}
@@ -872,7 +872,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
eState = ssStopBack;
}
else if ( bMightBeWord )
- { // might be a numerical name (1.2+fg)
+ { // might be a numerical name (1.2+fg)
eState = ssGetWord;
r.TokenType = KParseType::IDENTNAME;
}
@@ -880,7 +880,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
eState = ssStopBack;
}
else if ( bMightBeWord && (nMask & TOKEN_WORD) )
- { // might be a numerical name (1995.A1)
+ { // might be a numerical name (1995.A1)
eState = ssGetWord;
r.TokenType = KParseType::IDENTNAME;
}
@@ -894,13 +894,13 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
case ssGetWord :
{
if ( nMask & TOKEN_WORD )
- ; // keep it going
+ ; // keep it going
else if ( nMask & TOKEN_NAME_SEP )
{
if ( bQuote )
{
if ( cLast == '\\' )
- { // escaped
+ { // escaped
aSymbol += OUString( pSym, pSrc - pSym - 2 );
aSymbol += OUString( &c, 1);
}
@@ -915,7 +915,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
eState = ssStopBack;
}
else if ( bQuote )
- ; // keep it going
+ ; // keep it going
else
eState = ssStopBack;
}
@@ -925,13 +925,13 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
if ( nMask & TOKEN_STRING_SEP )
{
if ( cLast == '\\' )
- { // escaped
+ { // escaped
aSymbol += OUString( pSym, pSrc - pSym - 2 );
aSymbol += OUString( &c, 1);
}
else if ( c == *pSrc &&
!(nContTypes & KParseTokens::TWO_DOUBLE_QUOTES_BREAK_STRING) )
- { // "" => literal " escaped
+ { // "" => literal " escaped
aSymbol += OUString( pSym, pSrc - pSym );
pSrc++;
}
@@ -947,7 +947,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
case ssGetBool :
{
if ( (nMask & TOKEN_BOOL) )
- eState = ssStop; // maximum 2: <, >, <>, <=, >=
+ eState = ssStop; // maximum 2: <, >, <>, <=, >=
else
eState = ssStopBack;
}
@@ -977,9 +977,9 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
{
if ( (r.TokenType & (KParseType::ASC_NUMBER | KParseType::UNI_NUMBER))
&& (nTokenType & KParseType::IDENTNAME) && bMightBeWord )
- ; // keep a number that might be a word
+ ; // keep a number that might be a word
else if ( r.LeadingWhiteSpace == (pSrc - pTextStart) )
- ; // keep ignored white space
+ ; // keep ignored white space
else if ( !r.TokenType && eState == ssGetValue && (nMask & TOKEN_VALUE_SEP) )
; // keep uncertain value
else
@@ -991,7 +991,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
eState = ssStopBack;
}
if ( eState == ssStopBack )
- { // put back
+ { // put back
pSrc--;
bMightBeWord = bMightBeWordLast;
eState = ssStop;
@@ -1057,7 +1057,7 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32
else if ( r.TokenType & (KParseType::SINGLE_QUOTE_NAME | KParseType::DOUBLE_QUOTE_STRING) )
{
if ( pSym < pSrc )
- { //! open quote
+ { //! open quote
aSymbol += OUString( pSym, pSrc - pSym );
r.TokenType |= KParseType::MISSING_QUOTE;
}
diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx
index 0539bd7e46ab..0cf35e38102c 100644
--- a/i18npool/source/characterclassification/characterclassificationImpl.cxx
+++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ CharacterClassificationImpl::~CharacterClassificationImpl() {
OUString SAL_CALL
-CharacterClassificationImpl::toUpper( const OUString& Text, sal_Int32 nPos,
+CharacterClassificationImpl::toUpper( const OUString& Text, sal_Int32 nPos,
sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException)
{
return getLocaleSpecificCharacterClassification(rLocale)->toUpper(Text, nPos, nCount, rLocale);
@@ -68,14 +68,14 @@ CharacterClassificationImpl::toLower( const OUString& Text, sal_Int32 nPos,
}
OUString SAL_CALL
-CharacterClassificationImpl::toTitle( const OUString& Text, sal_Int32 nPos,
+CharacterClassificationImpl::toTitle( const OUString& Text, sal_Int32 nPos,
sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException)
{
return getLocaleSpecificCharacterClassification(rLocale)->toTitle(Text, nPos, nCount, rLocale);
}
sal_Int16 SAL_CALL
-CharacterClassificationImpl::getType( const OUString& Text, sal_Int32 nPos )
+CharacterClassificationImpl::getType( const OUString& Text, sal_Int32 nPos )
throw(RuntimeException)
{
if (xUCI.is())
@@ -109,7 +109,7 @@ CharacterClassificationImpl::getCharacterType( const OUString& Text, sal_Int32 n
}
sal_Int32 SAL_CALL
-CharacterClassificationImpl::getStringType( const OUString& Text, sal_Int32 nPos,
+CharacterClassificationImpl::getStringType( const OUString& Text, sal_Int32 nPos,
sal_Int32 nCount, const Locale& rLocale ) throw(RuntimeException)
{
return getLocaleSpecificCharacterClassification(rLocale)->getStringType(Text, nPos, nCount, rLocale);
@@ -179,8 +179,8 @@ CharacterClassificationImpl::getLocaleSpecificCharacterClassification(const Loca
static sal_Unicode under = (sal_Unicode)'_';
static OUString tw(OUString::createFromAscii("TW"));
- sal_Int32 l = rLocale.Language.getLength();
- sal_Int32 c = rLocale.Country.getLength();
+ sal_Int32 l = rLocale.Language.getLength();
+ sal_Int32 c = rLocale.Country.getLength();
sal_Int32 v = rLocale.Variant.getLength();
OUStringBuffer aBuf(l+c+v+3);
@@ -189,16 +189,16 @@ CharacterClassificationImpl::getLocaleSpecificCharacterClassification(const Loca
createLocaleSpecificCharacterClassification(aBuf.append(rLocale.Language).append(under).append(
rLocale.Country).append(under).append(rLocale.Variant).makeStringAndClear(), rLocale)) ||
// load service with name <base>_<lang>_<country>
- (l > 0 && c > 0 &&
+ (l > 0 && c > 0 &&
createLocaleSpecificCharacterClassification(aBuf.append(rLocale.Language).append(under).append(
rLocale.Country).makeStringAndClear(), rLocale)) ||
- (l > 0 && c > 0 && rLocale.Language.compareToAscii("zh") == 0 &&
+ (l > 0 && c > 0 && rLocale.Language.compareToAscii("zh") == 0 &&
(rLocale.Country.compareToAscii("HK") == 0 ||
rLocale.Country.compareToAscii("MO") == 0) &&
// if the country code is HK or MO, one more step to try TW.
createLocaleSpecificCharacterClassification(aBuf.append(rLocale.Language).append(under).append(
tw).makeStringAndClear(), rLocale)) ||
- (l > 0 &&
+ (l > 0 &&
// load service with name <base>_<lang>
createLocaleSpecificCharacterClassification(rLocale.Language, rLocale))) {
return cachedItem->xCI;
diff --git a/i18npool/source/characterclassification/scripttypedetector.cxx b/i18npool/source/characterclassification/scripttypedetector.cxx
index 1248635b68c2..8085b3cc86c1 100644
--- a/i18npool/source/characterclassification/scripttypedetector.cxx
+++ b/i18npool/source/characterclassification/scripttypedetector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/collator/chaptercollator.cxx b/i18npool/source/collator/chaptercollator.cxx
index 6b337c6cd75e..842d81f9ecbc 100644
--- a/i18npool/source/collator/chaptercollator.cxx
+++ b/i18npool/source/collator/chaptercollator.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/collator/collatorImpl.cxx b/i18npool/source/collator/collatorImpl.cxx
index 9903df6fd00e..c315d8929d1a 100644
--- a/i18npool/source/collator/collatorImpl.cxx
+++ b/i18npool/source/collator/collatorImpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx
index 2afdd401123f..6d0ed67151e5 100644
--- a/i18npool/source/collator/collator_unicode.cxx
+++ b/i18npool/source/collator/collator_unicode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,13 +63,13 @@ sal_Int32 SAL_CALL
Collator_Unicode::compareSubstring( const OUString& str1, sal_Int32 off1, sal_Int32 len1,
const OUString& str2, sal_Int32 off2, sal_Int32 len2) throw(RuntimeException)
{
- return collator->compare(reinterpret_cast<const UChar *>(str1.getStr()) + off1, len1, reinterpret_cast<const UChar *>(str2.getStr()) + off2, len2); // UChar != sal_Unicode in MinGW
+ return collator->compare(reinterpret_cast<const UChar *>(str1.getStr()) + off1, len1, reinterpret_cast<const UChar *>(str2.getStr()) + off2, len2); // UChar != sal_Unicode in MinGW
}
sal_Int32 SAL_CALL
Collator_Unicode::compareString( const OUString& str1, const OUString& str2) throw(RuntimeException)
{
- return collator->compare(reinterpret_cast<const UChar *>(str1.getStr()), reinterpret_cast<const UChar *>(str2.getStr())); // UChar != sal_Unicode in MinGW
+ return collator->compare(reinterpret_cast<const UChar *>(str1.getStr()), reinterpret_cast<const UChar *>(str2.getStr())); // UChar != sal_Unicode in MinGW
}
extern "C" { static void SAL_CALL thisModule() {} }
@@ -82,7 +82,7 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
UErrorCode status = U_ZERO_ERROR;
OUString rule = LocaleData().getCollatorRuleByAlgorithm(rLocale, rAlgorithm);
if (rule.getLength() > 0) {
- collator = new RuleBasedCollator(reinterpret_cast<const UChar *>(rule.getStr()), status); // UChar != sal_Unicode in MinGW
+ collator = new RuleBasedCollator(reinterpret_cast<const UChar *>(rule.getStr()), status); // UChar != sal_Unicode in MinGW
if (! U_SUCCESS(status)) throw RuntimeException();
}
if (!collator && OUString::createFromAscii(LOCAL_RULE_LANGS).indexOf(rLocale.Language) >= 0) {
@@ -98,9 +98,9 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
if (rLocale.Language.equalsAscii("zh")) {
OUString func_base = aBuf.makeStringAndClear();
if (OUString::createFromAscii("TW HK MO").indexOf(rLocale.Country) >= 0)
- func=(const sal_uInt8* (*)()) osl_getFunctionSymbol(hModule,
+ func=(const sal_uInt8* (*)()) osl_getFunctionSymbol(hModule,
(func_base + OUString::createFromAscii("TW_") + rAlgorithm).pData);
- if (!func)
+ if (!func)
func=(const sal_uInt8* (*)()) osl_getFunctionSymbol(hModule, (func_base + rAlgorithm).pData);
} else {
if (rLocale.Language.equalsAscii("ja")) {
diff --git a/i18npool/source/collator/gencoll_rule.cxx b/i18npool/source/collator/gencoll_rule.cxx
index c678230b0f1d..b53b73a4f5a5 100644
--- a/i18npool/source/collator/gencoll_rule.cxx
+++ b/i18npool/source/collator/gencoll_rule.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,8 +86,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if (argc < 4) exit(-1);
- fp = fopen(argv[1], "rb"); // open the source file for read;
- if (fp == NULL)
+ fp = fopen(argv[1], "rb"); // open the source file for read;
+ if (fp == NULL)
printf("Open the rule source file failed.");
@@ -113,10 +113,10 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
UErrorCode status = U_ZERO_ERROR;
//UParseError parseError;
- //UCollator *coll = ucol_openRules(Obuf.getStr(), Obuf.getLength(), UCOL_OFF,
+ //UCollator *coll = ucol_openRules(Obuf.getStr(), Obuf.getLength(), UCOL_OFF,
// UCOL_DEFAULT_STRENGTH, &parseError, &status);
- RuleBasedCollator *coll = new RuleBasedCollator(reinterpret_cast<const UChar *>(Obuf.getStr()), status); // UChar != sal_Unicode in MinGW
+ RuleBasedCollator *coll = new RuleBasedCollator(reinterpret_cast<const UChar *>(Obuf.getStr()), status); // UChar != sal_Unicode in MinGW
if (U_SUCCESS(status)) {
@@ -138,6 +138,6 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
delete coll;
return U_SUCCESS(status) ? 0 : 1;
-} // End of main
+} // End of main
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index 264117fe16a6..91e098fd50bc 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,17 +70,17 @@ static sal_Unicode table_Alphabet_ar[] = {
};
static sal_Unicode table_Alphabet_th[] = {
- 0x0E01, 0x0E02, 0x0E04, 0x0E07,
+ 0x0E01, 0x0E02, 0x0E04, 0x0E07,
0x0E08, 0x0E09, 0x0E0A, 0x0E0B, 0x0E0C, 0x0E0D, 0x0E0E, 0x0E0F,
- 0x0E10, 0x0E11, 0x0E12, 0x0E13, 0x0E14, 0x0E15, 0x0E16, 0x0E17,
+ 0x0E10, 0x0E11, 0x0E12, 0x0E13, 0x0E14, 0x0E15, 0x0E16, 0x0E17,
0x0E18, 0x0E19, 0x0E1A, 0x0E1B, 0x0E1C, 0x0E1D, 0x0E1E, 0x0E1F,
- 0x0E20, 0x0E21, 0x0E22, 0x0E23, 0x0E24, 0x0E25, 0x0E26, 0x0E27,
+ 0x0E20, 0x0E21, 0x0E22, 0x0E23, 0x0E24, 0x0E25, 0x0E26, 0x0E27,
0x0E28, 0x0E29, 0x0E2A, 0x0E2B, 0x0E2C, 0x0E2D, 0x0E2E
};
static sal_Unicode table_Alphabet_he[] = {
0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7,
- 0x05D8, 0x05D9, 0x05DB, 0x05DC, 0x05DE, 0x05E0, 0x05E1, 0x05E2,
+ 0x05D8, 0x05D9, 0x05DB, 0x05DC, 0x05DE, 0x05E0, 0x05E1, 0x05E2,
0x05E4, 0x05E6, 0x05E7, 0x05E8, 0x05E9, 0x05EA
};
@@ -123,23 +123,23 @@ static sal_Unicode table_Alphabet_my[] = {
};
// Bulgarian Cyrillic upper case letters
-static sal_Unicode table_CyrillicUpperLetter_bg[] = {
+static sal_Unicode table_CyrillicUpperLetter_bg[] = {
0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, 0x0418,
0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, 0x0420, 0x0421, 0x0422,
0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428, 0x0429, 0x042A, 0x042E,
- 0x042F
+ 0x042F
};
// Bulgarian cyrillic lower case letters
-static sal_Unicode table_CyrillicLowerLetter_bg[] = {
+static sal_Unicode table_CyrillicLowerLetter_bg[] = {
0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, 0x0438,
0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, 0x0440, 0x0441, 0x0442,
0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448, 0x0449, 0x044A, 0x044E,
- 0x044F
+ 0x044F
};
// Russian Cyrillic upper letters
-static sal_Unicode table_CyrillicUpperLetter_ru[] = {
+static sal_Unicode table_CyrillicUpperLetter_ru[] = {
0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417,
0x0418, 0x041A, 0x041B, 0x041C, 0x041D, 0x041E, 0x041F, 0x0420,
0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, 0x0428,
@@ -147,7 +147,7 @@ static sal_Unicode table_CyrillicUpperLetter_ru[] = {
};
// Russian cyrillic lower letters
-static sal_Unicode table_CyrillicLowerLetter_ru[] = {
+static sal_Unicode table_CyrillicLowerLetter_ru[] = {
0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437,
0x0438, 0x043A, 0x043B, 0x043C, 0x043D, 0x043E, 0x043F, 0x0440,
0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, 0x0448,
@@ -155,17 +155,17 @@ static sal_Unicode table_CyrillicLowerLetter_ru[] = {
};
// Serbian Cyrillic upper letters
-static sal_Unicode table_CyrillicUpperLetter_sr[] = {
- 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0402, 0x0415, 0x0416,
- 0x0417, 0x0418, 0x0408, 0x041A, 0x041B, 0x0409, 0x041C, 0x041D,
+static sal_Unicode table_CyrillicUpperLetter_sr[] = {
+ 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0402, 0x0415, 0x0416,
+ 0x0417, 0x0418, 0x0408, 0x041A, 0x041B, 0x0409, 0x041C, 0x041D,
0x040A, 0x041E, 0x041F, 0x0420, 0x0421, 0x0422, 0x040B, 0x0423,
0x0424, 0x0425, 0x0426, 0x0427, 0x040F, 0x0428
};
// Serbian cyrillic lower letters
-static sal_Unicode table_CyrillicLowerLetter_sr[] = {
+static sal_Unicode table_CyrillicLowerLetter_sr[] = {
0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0452, 0x0435, 0x0436,
- 0x0437, 0x0438, 0x0458, 0x043A, 0x043B, 0x0459, 0x043C, 0x043D,
+ 0x0437, 0x0438, 0x0458, 0x043A, 0x043B, 0x0459, 0x043C, 0x043D,
0x045A, 0x043E, 0x043F, 0x0440, 0x0441, 0x0442, 0x045B, 0x0443,
0x0444, 0x0445, 0x0446, 0x0447, 0x045F, 0x0448
};
@@ -186,12 +186,12 @@ static sal_Unicode upperLetter[] = {
static sal_Unicode lowerLetter[] = {
0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,
0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72,
- 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A
+ 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A
};
DefaultNumberingProvider::DefaultNumberingProvider( const Reference < XMultiServiceFactory >& xMSF ) : xSMgr(xMSF),translit(NULL)
{
-
+
}
DefaultNumberingProvider::~DefaultNumberingProvider()
@@ -293,11 +293,11 @@ void lcl_formatChars2( sal_Unicode table_capital[], sal_Unicode table_small[], i
// string representation of n is appended to s.
// if A=='A' then 0=>A, 1=>B, ..., 25=>Z, 26=>Aa, 27=>Ab, ...
- if( n>=tableSize )
+ if( n>=tableSize )
{
lcl_formatChars2( table_capital, table_small, tableSize, (n-tableSize)/tableSize, s );
s += OUString::valueOf( table_small[ n % tableSize ] );
- } else
+ } else
s += OUString::valueOf( table_capital[ n % tableSize ] );
}
diff --git a/i18npool/source/indexentry/data/indexdata_alphanumeric.h b/i18npool/source/indexentry/data/indexdata_alphanumeric.h
index 284863a4b6d1..3e0b31ec15df 100644
--- a/i18npool/source/indexentry/data/indexdata_alphanumeric.h
+++ b/i18npool/source/indexentry/data/indexdata_alphanumeric.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ static sal_Unicode idxStr[] = {
0x44, 0x4E, 0x4F, 0x4F, 0x4F, 0x4F, 0x4F, 0x00, 0x4F, 0x55, 0x55, 0x55, 0x55, 0x59, 0x54, 0x53, // D0-DF
0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x41, 0x43, 0x45, 0x45, 0x45, 0x45, 0x49, 0x49, 0x49, 0x49, // E0-EF
0x44, 0x4E, 0x4F, 0x4F, 0x4F, 0x4F, 0x4F, 0x00, 0x4F, 0x55, 0x55, 0x55, 0x55, 0x59, 0x54, 0x59, // F0-FF
-
+
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/indexentry/data/indexdata_ja_phonetic.h b/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
index 71da906738d4..2d6ae15ae176 100644
--- a/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
+++ b/i18npool/source/indexentry/data/indexdata_ja_phonetic.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/indexentry/genindex_data.cxx b/i18npool/source/indexentry/genindex_data.cxx
index fcd16a6f4d7f..13a723fa066f 100644
--- a/i18npool/source/indexentry/genindex_data.cxx
+++ b/i18npool/source/indexentry/genindex_data.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if (argc < 4) exit(-1);
- fp = fopen(argv[1], "rb"); // open the source file for read;
+ fp = fopen(argv[1], "rb"); // open the source file for read;
if (fp == NULL) {
printf("Open the rule source file failed.");
return 1;
@@ -164,6 +164,6 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
fclose(fp);
return 0;
-} // End of main
+} // End of main
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/indexentry/indexentrysupplier.cxx b/i18npool/source/indexentry/indexentrysupplier.cxx
index e3b682656fa2..603a4a6ef891 100644
--- a/i18npool/source/indexentry/indexentrysupplier.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -125,7 +125,7 @@ sal_Bool SAL_CALL IndexEntrySupplier::createLocaleSpecificIndexEntrySupplier(con
Reference < com::sun::star::i18n::XExtendedIndexEntrySupplier > SAL_CALL
IndexEntrySupplier::getLocaleSpecificIndexEntrySupplier(const Locale& rLocale, const OUString& rSortAlgorithm) throw (RuntimeException)
{
- if (xIES.is() && rSortAlgorithm == aSortAlgorithm && rLocale.Language == aLocale.Language &&
+ if (xIES.is() && rSortAlgorithm == aSortAlgorithm && rLocale.Language == aLocale.Language &&
rLocale.Country == aLocale.Country && rLocale.Variant == aLocale.Variant)
return xIES;
else if (xMSF.is()) {
@@ -181,7 +181,7 @@ OUString SAL_CALL IndexEntrySupplier::getIndexFollowPageWord( sal_Bool bMorePage
Sequence< OUString > aFollowPageWords = LocaleData().getFollowPageWords(rLocale);
return (bMorePages && aFollowPageWords.getLength() > 1) ?
- aFollowPageWords[1] : (aFollowPageWords.getLength() > 0 ?
+ aFollowPageWords[1] : (aFollowPageWords.getLength() > 0 ?
aFollowPageWords[0] : OUString());
}
diff --git a/i18npool/source/indexentry/indexentrysupplier_asian.cxx b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
index 1590b59c0913..769ed69018a7 100644
--- a/i18npool/source/indexentry/indexentrysupplier_asian.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ IndexEntrySupplier_asian::~IndexEntrySupplier_asian()
if (hModule) osl_unloadModule(hModule);
}
-OUString SAL_CALL
+OUString SAL_CALL
IndexEntrySupplier_asian::getIndexCharacter( const OUString& rIndexEntry,
const Locale& rLocale, const OUString& rAlgorithm ) throw (RuntimeException)
{
@@ -70,7 +70,7 @@ IndexEntrySupplier_asian::getIndexCharacter( const OUString& rIndexEntry,
sal_uInt16** (*func)(sal_Int16*)=NULL;
if (rLocale.Language.equalsAscii("zh") && OUString::createFromAscii("TW HK MO").indexOf(rLocale.Country) >= 0)
func=(sal_uInt16** (*)(sal_Int16*))osl_getFunctionSymbol(hModule, (get+rLocale.Language+OUString::createFromAscii("_TW_")+rAlgorithm).pData);
- if (!func)
+ if (!func)
func=(sal_uInt16** (*)(sal_Int16*))osl_getFunctionSymbol(hModule, (get+rLocale.Language+OUString('_')+rAlgorithm).pData);
if (func) {
sal_Int16 max_index;
@@ -82,20 +82,20 @@ IndexEntrySupplier_asian::getIndexCharacter( const OUString& rIndexEntry,
return idx[2] ? OUString(&idx[2][address]) : OUString(address);
}
}
- }
+ }
}
// using alphanumeric index for non-define stirng
return OUString(&idxStr[(ch & 0xFFFFFF00) ? 0 : ch], 1);
}
-OUString SAL_CALL
-IndexEntrySupplier_asian::getIndexKey( const OUString& rIndexEntry,
+OUString SAL_CALL
+IndexEntrySupplier_asian::getIndexKey( const OUString& rIndexEntry,
const OUString& rPhoneticEntry, const Locale& rLocale) throw (RuntimeException)
{
return getIndexCharacter(getEntry(rIndexEntry, rPhoneticEntry, rLocale), rLocale, aAlgorithm);
}
-sal_Int16 SAL_CALL
+sal_Int16 SAL_CALL
IndexEntrySupplier_asian::compareIndexEntry(
const OUString& rIndexEntry1, const OUString& rPhoneticEntry1, const Locale& rLocale1,
const OUString& rIndexEntry2, const OUString& rPhoneticEntry2, const Locale& rLocale2 )
@@ -113,7 +113,7 @@ IndexEntrySupplier_asian::compareIndexEntry(
return sal::static_int_cast< sal_Int16 >(result); // result in { -1, 0, 1 }
}
-OUString SAL_CALL
+OUString SAL_CALL
IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry,
const Locale& rLocale ) throw (RuntimeException)
{
@@ -124,7 +124,7 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry,
func_name=(OUString::createFromAscii("TW HK MO").indexOf(rLocale.Country) >= 0) ? "get_zh_zhuyin" : "get_zh_pinyin";
else if (rLocale.Language.equalsAscii("ko"))
func_name="get_ko_phonetic";
- if (func_name)
+ if (func_name)
func=(sal_uInt16 **(*)(sal_Int16*))osl_getFunctionSymbol(hModule, OUString::createFromAscii(func_name).pData);
if (func) {
OUStringBuffer candidate;
@@ -139,9 +139,9 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry,
address = idx[1][address + (ch & 0xFF)];
if (i > 0 && rLocale.Language.equalsAscii("zh"))
candidate.appendAscii(" ");
- if (idx[2])
+ if (idx[2])
candidate.append(&idx[2][address]);
- else
+ else
candidate.append(address);
} else
candidate.appendAscii(" ");
diff --git a/i18npool/source/indexentry/indexentrysupplier_common.cxx b/i18npool/source/indexentry/indexentrysupplier_common.cxx
index 682f5086d02c..c2b21f8081ff 100644
--- a/i18npool/source/indexentry/indexentrysupplier_common.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_common.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,7 +112,7 @@ OUString SAL_CALL IndexEntrySupplier_Common::getIndexFollowPageWord( sal_Bool,
throw RuntimeException();
}
-const OUString& SAL_CALL
+const OUString& SAL_CALL
IndexEntrySupplier_Common::getEntry( const OUString& IndexEntry,
const OUString& PhoneticEntry, const lang::Locale& rLocale ) throw (RuntimeException)
{
diff --git a/i18npool/source/indexentry/indexentrysupplier_default.cxx b/i18npool/source/indexentry/indexentrysupplier_default.cxx
index 5057eb91559d..e6f8695cfdc1 100644
--- a/i18npool/source/indexentry/indexentrysupplier_default.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_default.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ sal_Int16 SAL_CALL IndexEntrySupplier_Unicode::compareIndexEntry(
index->getIndexWeight(getEntry(rIndexEntry2, rPhoneticEntry2, rLocale2));
if (result == 0)
return IndexEntrySupplier_Common::compareIndexEntry(
- rIndexEntry1, rPhoneticEntry1, rLocale1,
+ rIndexEntry1, rPhoneticEntry1, rLocale1,
rIndexEntry2, rPhoneticEntry2, rLocale2);
return result > 0 ? 1 : -1;
}
@@ -135,14 +135,14 @@ sal_Int16 Index::compare(sal_Unicode c1, sal_Unicode c2)
sal_Int16 Index::getIndexWeight(const OUString& rIndexEntry)
{
sal_Int32 startPos=0;
- if (skipping_chars.getLength() > 0)
+ if (skipping_chars.getLength() > 0)
while (skipping_chars.indexOf(rIndexEntry[startPos]) >= 0)
startPos++;
if (mkey_count > 0) {
for (sal_Int16 i = 0; i < mkey_count; i++) {
sal_Int32 len = keys[mkeys[i]].mkey.getLength();
if (collator->compareSubstring(rIndexEntry, startPos, len,
- keys[mkeys[i]].mkey, 0, len) == 0)
+ keys[mkeys[i]].mkey, 0, len) == 0)
return mkeys[i];
}
}
@@ -177,7 +177,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
OUString keyStr = LocaleData().getIndexKeysByAlgorithm(rLocale, algorithm);
if (!keyStr.getLength()) {
- keyStr = LocaleData().getIndexKeysByAlgorithm(LOCALE_EN,
+ keyStr = LocaleData().getIndexKeysByAlgorithm(LOCALE_EN,
LocaleData().getDefaultIndexAlgorithm(LOCALE_EN));
if (!keyStr)
throw RuntimeException();
@@ -264,7 +264,7 @@ void Index::init(const lang::Locale &rLocale, const OUString& algorithm) throw (
Sequence< UnicodeScript > scriptList = LocaleData().getUnicodeScripts( rLocale );
if (scriptList.getLength() == 0) {
- scriptList = LocaleData().getUnicodeScripts(LOCALE_EN);
+ scriptList = LocaleData().getUnicodeScripts(LOCALE_EN);
if (scriptList.getLength() == 0)
throw RuntimeException();
}
diff --git a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx
index daa5d612f8ef..c0c84d9c3c16 100644
--- a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ using namespace ::rtl;
namespace com { namespace sun { namespace star { namespace i18n {
OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexCharacter( const OUString& rIndexEntry,
- const lang::Locale& /*rLocale*/, const OUString& /*rSortAlgorithm*/ )
+ const lang::Locale& /*rLocale*/, const OUString& /*rSortAlgorithm*/ )
throw (com::sun::star::uno::RuntimeException)
{
sal_Unicode ch=rIndexEntry.toChar();
@@ -54,13 +54,13 @@ OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexCharacter( const OUStr
}
OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexKey( const OUString& IndexEntry,
- const OUString& PhoneticEntry, const lang::Locale& rLocale )
+ const OUString& PhoneticEntry, const lang::Locale& rLocale )
throw (com::sun::star::uno::RuntimeException)
{
return getIndexCharacter( PhoneticEntry.getLength() > 0 ? PhoneticEntry : IndexEntry, rLocale, OUString());
}
-sal_Int16 SAL_CALL IndexEntrySupplier_ja_phonetic::compareIndexEntry(
+sal_Int16 SAL_CALL IndexEntrySupplier_ja_phonetic::compareIndexEntry(
const OUString& IndexEntry1, const OUString& PhoneticEntry1, const lang::Locale& rLocale1,
const OUString& IndexEntry2, const OUString& PhoneticEntry2, const lang::Locale& rLocale2 )
throw (com::sun::star::uno::RuntimeException)
@@ -71,7 +71,7 @@ sal_Int16 SAL_CALL IndexEntrySupplier_ja_phonetic::compareIndexEntry(
if (result == 0)
return IndexEntrySupplier_Common::compareIndexEntry(
- IndexEntry1, PhoneticEntry1, rLocale1,
+ IndexEntry1, PhoneticEntry1, rLocale1,
IndexEntry2, PhoneticEntry2, rLocale2);
return result;
}
diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx
index 6ddc168b1ca9..ccc4eebc5994 100644
--- a/i18npool/source/inputchecker/inputsequencechecker.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ InputSequenceCheckerImpl::~InputSequenceCheckerImpl()
lookupTable.clear();
}
-sal_Bool SAL_CALL
+sal_Bool SAL_CALL
InputSequenceCheckerImpl::checkInputSequence(const OUString& Text, sal_Int32 nStartPos,
sal_Unicode inputChar, sal_Int16 inputCheckMode) throw(RuntimeException)
{
@@ -75,7 +75,7 @@ InputSequenceCheckerImpl::checkInputSequence(const OUString& Text, sal_Int32 nSt
return sal_True; // not a checkable languages.
}
-sal_Int32 SAL_CALL
+sal_Int32 SAL_CALL
InputSequenceCheckerImpl::correctInputSequence(OUString& Text, sal_Int32 nStartPos,
sal_Unicode inputChar, sal_Int16 inputCheckMode) throw(RuntimeException)
{
@@ -103,7 +103,7 @@ InputSequenceCheckerImpl::getLanguageByScripType(sal_Unicode cChar, sal_Unicode
{
sal_Int16 type = unicode::getUnicodeScriptType( cChar, typeList, UnicodeScript_kScriptCount );
- if (type != UnicodeScript_kScriptCount &&
+ if (type != UnicodeScript_kScriptCount &&
type == unicode::getUnicodeScriptType( nChar, typeList, UnicodeScript_kScriptCount )) {
switch(type) {
case UnicodeScript_kThai: return (sal_Char*)"th";
@@ -129,7 +129,7 @@ InputSequenceCheckerImpl::getInputSequenceChecker(sal_Char* rLanguage) throw (Ru
}
Reference < uno::XInterface > xI = xMSF->createInstance(
- OUString::createFromAscii("com.sun.star.i18n.InputSequenceChecker_") +
+ OUString::createFromAscii("com.sun.star.i18n.InputSequenceChecker_") +
OUString::createFromAscii(rLanguage));
if ( xI.is() ) {
diff --git a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
index 0d85e027ebc3..d7139dc57743 100644
--- a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,9 +33,9 @@
using namespace rtl;
-namespace com {
-namespace sun {
-namespace star {
+namespace com {
+namespace sun {
+namespace star {
namespace i18n {
InputSequenceChecker_hi::InputSequenceChecker_hi()
@@ -47,24 +47,24 @@ InputSequenceChecker_hi::~InputSequenceChecker_hi()
{
}
/* Non-Defined Class type */
-#define __ND 0
+#define __ND 0
/*
* Devanagari character type definitions
*/
#define __UP 1 // ChandraBindu & Anuswar
-#define __NP 2 // Visarg
-#define __IV 3 // Independant Vowels
-#define __CN 4 // Consonants except _CK & _RC
-#define __CK 5 // Consonants that can be followed by Nukta
-#define __RC 6 // Ra
-#define __NM 7 // Matra
-#define __RM 8 // Ra + HAL
-#define __IM 9 // Choti I Matra
-#define __HL 10 // HAL
-#define __NK 11 // Nukta
-#define __VD 12 // Vedic
-#define __HD 13 // Hindu Numerals
+#define __NP 2 // Visarg
+#define __IV 3 // Independant Vowels
+#define __CN 4 // Consonants except _CK & _RC
+#define __CK 5 // Consonants that can be followed by Nukta
+#define __RC 6 // Ra
+#define __NM 7 // Matra
+#define __RM 8 // Ra + HAL
+#define __IM 9 // Choti I Matra
+#define __HL 10 // HAL
+#define __NK 11 // Nukta
+#define __VD 12 // Vedic
+#define __HD 13 // Hindu Numerals
/*
* Devanagari character type table
@@ -119,11 +119,11 @@ sal_Bool _DEV_Composible[2][2] = {
#define getCharType(x) \
((x >= 0x0900 && x < 0x097f) ? devaCT[x - 0x0900] : __ND)
-sal_Bool SAL_CALL
-InputSequenceChecker_hi::checkInputSequence(const OUString& Text,
+sal_Bool SAL_CALL
+InputSequenceChecker_hi::checkInputSequence(const OUString& Text,
sal_Int32 nStartPos,
- sal_Unicode inputChar,
- sal_Int16 inputCheckMode)
+ sal_Unicode inputChar,
+ sal_Int16 inputCheckMode)
throw(com::sun::star::uno::RuntimeException)
{
sal_Unicode currentChar = Text[nStartPos];
@@ -133,16 +133,16 @@ InputSequenceChecker_hi::checkInputSequence(const OUString& Text,
return (_DEV_Composible[inputCheckMode][dev_cell_check[ch2][ch1]]);
}
-sal_Int32 SAL_CALL
-InputSequenceChecker_hi::correctInputSequence(OUString& Text,
+sal_Int32 SAL_CALL
+InputSequenceChecker_hi::correctInputSequence(OUString& Text,
sal_Int32 nStartPos,
- sal_Unicode inputChar,
- sal_Int16 inputCheckMode)
+ sal_Unicode inputChar,
+ sal_Int16 inputCheckMode)
throw(com::sun::star::uno::RuntimeException)
{
if (checkInputSequence(Text, nStartPos, inputChar, inputCheckMode))
Text = Text.replaceAt(++nStartPos, 0, OUString(inputChar));
- else
+ else
nStartPos=Text.getLength();
return nStartPos;
}
diff --git a/i18npool/source/inputchecker/inputsequencechecker_th.cxx b/i18npool/source/inputchecker/inputsequencechecker_th.cxx
index 24a2ad536cb1..55db45e9dd87 100644
--- a/i18npool/source/inputchecker/inputsequencechecker_th.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker_th.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,34 +47,34 @@ InputSequenceChecker_th::~InputSequenceChecker_th()
/* Table for Thai Cell Manipulation */
sal_Char _TAC_celltype_inputcheck[17][17] = {
-/* Cn */ /* 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F */
-/* Cn-1 00 */{ 'X', 'A', 'A', 'A', 'A', 'A', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* 10 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* 20 */{ 'X', 'A', 'A', 'A', 'A', 'S', 'A', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C' },
- /* 30 */{ 'X', 'S', 'A', 'S', 'S', 'S', 'S', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* 40 */{ 'X', 'A', 'A', 'A', 'A', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* 50 */{ 'X', 'A', 'A', 'A', 'A', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* 60 */{ 'X', 'A', 'A', 'A', 'S', 'A', 'S', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* 70 */{ 'X', 'A', 'A', 'A', 'A', 'S', 'A', 'R', 'R', 'R', 'C', 'C', 'R', 'R', 'R', 'R', 'R' },
- /* 80 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'C', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* 90 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* A0 */{ 'X', 'A', 'A', 'A', 'A', 'A', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* B0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* C0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* D0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
- /* E0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'C', 'C', 'R', 'R', 'R', 'R', 'R' },
- /* F0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'C', 'R', 'R', 'R', 'R', 'R', 'R' },
+/* Cn */ /* 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F */
+/* Cn-1 00 */{ 'X', 'A', 'A', 'A', 'A', 'A', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* 10 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* 20 */{ 'X', 'A', 'A', 'A', 'A', 'S', 'A', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C' },
+ /* 30 */{ 'X', 'S', 'A', 'S', 'S', 'S', 'S', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* 40 */{ 'X', 'A', 'A', 'A', 'A', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* 50 */{ 'X', 'A', 'A', 'A', 'A', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* 60 */{ 'X', 'A', 'A', 'A', 'S', 'A', 'S', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* 70 */{ 'X', 'A', 'A', 'A', 'A', 'S', 'A', 'R', 'R', 'R', 'C', 'C', 'R', 'R', 'R', 'R', 'R' },
+ /* 80 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'C', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* 90 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* A0 */{ 'X', 'A', 'A', 'A', 'A', 'A', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* B0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* C0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* D0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R' },
+ /* E0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'C', 'C', 'R', 'R', 'R', 'R', 'R' },
+ /* F0 */{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'C', 'R', 'R', 'R', 'R', 'R', 'R' },
{ 'X', 'A', 'A', 'A', 'S', 'S', 'A', 'R', 'R', 'R', 'C', 'R', 'C', 'R', 'R', 'R', 'R' }
};
sal_Bool _TAC_Composible[3][5] = {
- /* 'A', 'C', 'S', 'R', 'X' */
-/* Mode 0 */ {sal_True, sal_True, sal_True, sal_True, sal_True}, // PASSTHROUGH = 0
-/* Mode 1 */ {sal_True, sal_True, sal_True, sal_False, sal_True}, // BASIC = 1
-/* Mode 2 */ {sal_True, sal_True, sal_False, sal_False, sal_True} // STRICT = 2
+ /* 'A', 'C', 'S', 'R', 'X' */
+/* Mode 0 */ {sal_True, sal_True, sal_True, sal_True, sal_True}, // PASSTHROUGH = 0
+/* Mode 1 */ {sal_True, sal_True, sal_True, sal_False, sal_True}, // BASIC = 1
+/* Mode 2 */ {sal_True, sal_True, sal_False, sal_False, sal_True} // STRICT = 2
};
-static sal_Bool SAL_CALL check(sal_Unicode ch1, sal_Unicode ch2, sal_Int16 inputCheckMode)
+static sal_Bool SAL_CALL check(sal_Unicode ch1, sal_Unicode ch2, sal_Int16 inputCheckMode)
{
sal_Int16 composible_class;
switch (_TAC_celltype_inputcheck[getCharType(ch1)][getCharType(ch2)]) {
@@ -88,18 +88,18 @@ static sal_Bool SAL_CALL check(sal_Unicode ch1, sal_Unicode ch2, sal_Int16 input
return (_TAC_Composible[inputCheckMode][composible_class]);
}
-sal_Bool SAL_CALL
+sal_Bool SAL_CALL
InputSequenceChecker_th::checkInputSequence(const OUString& Text, sal_Int32 nStartPos,
sal_Unicode inputChar, sal_Int16 inputCheckMode) throw(com::sun::star::uno::RuntimeException)
{
return check(Text[nStartPos], inputChar, inputCheckMode);
}
-sal_Int32 SAL_CALL
-InputSequenceChecker_th::correctInputSequence(OUString& Text,
+sal_Int32 SAL_CALL
+InputSequenceChecker_th::correctInputSequence(OUString& Text,
sal_Int32 nStartPos,
- sal_Unicode inputChar,
- sal_Int16 inputCheckMode)
+ sal_Unicode inputChar,
+ sal_Int16 inputCheckMode)
throw(com::sun::star::uno::RuntimeException)
{
/* 9 rules for input sequence correction, see issue i42661 for detail,
@@ -128,10 +128,10 @@ http://www.openoffice.org/issues/show_bug.cgi?id=42661
else if (nStartPos > 0 && getCharType(Text[nStartPos-1]) == CT_CONS) {
sal_uInt16 t1=getCharType(Text[nStartPos]), t2=getCharType(inputChar);
if ( (CT_ABV(t1) && CT_ABV(t2)) || // 1.
- (t1==CT_TONE && t2==CT_TONE) )// 2.
+ (t1==CT_TONE && t2==CT_TONE) )// 2.
Text = Text.replaceAt(nStartPos, 1, OUString(inputChar));
- else if ( (t1==CT_TONE && CT_ABV(t2)) || // 5.
- (t1==CT_FV1 && t2==CT_TONE) || // 6.
+ else if ( (t1==CT_TONE && CT_ABV(t2)) || // 5.
+ (t1==CT_FV1 && t2==CT_TONE) || // 6.
(Text[nStartPos]==0x0E4C && CT_ABV1(t2)) ) // 8.
Text = Text.replaceAt(nStartPos++, 0, OUString(inputChar));
else
@@ -140,8 +140,8 @@ http://www.openoffice.org/issues/show_bug.cgi?id=42661
sal_uInt16 t1=getCharType(Text[nStartPos-1]), t2=getCharType(Text[nStartPos]), t3=getCharType(inputChar);
if (CT_ABV(t1) && t2==CT_TONE && t3==CT_TONE) // 3.
Text = Text.replaceAt(nStartPos, 1, OUString(inputChar));
- else if ( (CT_ABV(t1) && t2==CT_TONE && CT_ABV(t3)) || // 4.
- (t1==CT_TONE && t2==CT_FV1 && t3==CT_TONE) || // 7.
+ else if ( (CT_ABV(t1) && t2==CT_TONE && CT_ABV(t3)) || // 4.
+ (t1==CT_TONE && t2==CT_FV1 && t3==CT_TONE) || // 7.
(CT_ABV1(t1) && Text[nStartPos]==0x0E4C && CT_ABV1(t3)) ) // 9.
Text = Text.replaceAt(nStartPos-1, 1, OUString(inputChar));
else
diff --git a/i18npool/source/isolang/insys.cxx b/i18npool/source/isolang/insys.cxx
index 4432a0923a0d..1ff1d8f7eed3 100644
--- a/i18npool/source/isolang/insys.cxx
+++ b/i18npool/source/isolang/insys.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/isolang/inunx.cxx b/i18npool/source/isolang/inunx.cxx
index 521f2ea6e8e0..c96b6f6f71f1 100644
--- a/i18npool/source/isolang/inunx.cxx
+++ b/i18npool/source/isolang/inunx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/isolang/inwnt.cxx b/i18npool/source/isolang/inwnt.cxx
index db1b25218844..aa33a13ebac8 100644
--- a/i18npool/source/isolang/inwnt.cxx
+++ b/i18npool/source/isolang/inwnt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/isolang/isolang.cxx b/i18npool/source/isolang/isolang.cxx
index 520e0cd3e8c0..473ae68cb78a 100644
--- a/i18npool/source/isolang/isolang.cxx
+++ b/i18npool/source/isolang/isolang.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/isolang/langid.pl b/i18npool/source/isolang/langid.pl
index 8035178b7bb5..354e18d7eb1f 100755
--- a/i18npool/source/isolang/langid.pl
+++ b/i18npool/source/isolang/langid.pl
@@ -4,7 +4,7 @@ if 0;
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/isolang/mslangid.cxx b/i18npool/source/isolang/mslangid.cxx
index 5000e2981b96..3632e66efbce 100644
--- a/i18npool/source/isolang/mslangid.cxx
+++ b/i18npool/source/isolang/mslangid.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -444,7 +444,7 @@ LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang )
nLang = LANGUAGE_LUXEMBOURGISH_LUXEMBOURG;
break;
- // The following are not strictly obsolete but should be mapped to a
+ // The following are not strictly obsolete but should be mapped to a
// replacement locale when encountered.
// no_NO is an alias for nb_NO
@@ -452,7 +452,7 @@ LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang )
nLang = LANGUAGE_NORWEGIAN_BOKMAL;
break;
- // #i94435# A Spanish variant that differs only in collation details we
+ // #i94435# A Spanish variant that differs only in collation details we
// do not support.
case LANGUAGE_SPANISH_DATED:
nLang = LANGUAGE_SPANISH_MODERN;
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index 7b8cceb09bd3..77c5acbbce8e 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -258,7 +258,7 @@ void LocaleNode :: generateCode (const OFileWriter &of) const
pParameterName);
}
// write empty data if error
- of.writeParameter( pParameterName, aVal);
+ of.writeParameter( pParameterName, aVal);
sal_Int32 nLen = aVal.getLength();
if (nLen < nMinLen)
{
@@ -293,7 +293,7 @@ void LocaleNode :: generateCode (const OFileWriter &of) const
++nError;
fprintf( stderr, "Error: node %s not found.\n", pNodeName);
// write empty data if error
- of.writeParameter( pParameterName, aVal);
+ of.writeParameter( pParameterName, aVal);
}
return aVal;
}
@@ -493,7 +493,7 @@ void LCCTYPENode::generateCode (const OFileWriter &of) const
if (aDoubleQuoteStart == aDoubleQuoteEnd)
fprintf( stderr, "Warning: %s\n",
"DoubleQuotationStart equals DoubleQuotationEnd. Not necessarily an error, but unusual.");
- /* TODO: should equalness of single and double quotes be an error? Would
+ /* TODO: should equalness of single and double quotes be an error? Would
* need to adapt quite some locales' data. */
if (aQuoteStart == aDoubleQuoteStart)
fprintf( stderr, "Warning: %s\n",
@@ -569,7 +569,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
OUString aUsage;
OUString aType;
OUString aFormatIndex;
- // currNode -> print();
+ // currNode -> print();
const Attr &currNodeAttr = currNode->getAttr();
//printf ("getLen() = %d\n", currNode->getAttr().getLength());
@@ -651,11 +651,11 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
// Currency formats should be something like [C]###0;-[C]###0
// and not parenthesized [C]###0;([C]###0) if not en_US.
case cssi::NumberFormatIndex::CURRENCY_1000INT :
- case cssi::NumberFormatIndex::CURRENCY_1000INT_RED :
- case cssi::NumberFormatIndex::CURRENCY_1000DEC2 :
- case cssi::NumberFormatIndex::CURRENCY_1000DEC2_RED :
- case cssi::NumberFormatIndex::CURRENCY_1000DEC2_CCC :
- case cssi::NumberFormatIndex::CURRENCY_1000DEC2_DASHED :
+ case cssi::NumberFormatIndex::CURRENCY_1000INT_RED :
+ case cssi::NumberFormatIndex::CURRENCY_1000DEC2 :
+ case cssi::NumberFormatIndex::CURRENCY_1000DEC2_RED :
+ case cssi::NumberFormatIndex::CURRENCY_1000DEC2_CCC :
+ case cssi::NumberFormatIndex::CURRENCY_1000DEC2_DASHED :
if (strcmp( of.getLocale(), "en_US") != 0)
{
OUString aCode( n->getValue());
@@ -1269,10 +1269,10 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const
} else {
for(j = 0; j < nbOfDays[i]; j++) {
of.writeAsciiString("\tdayID");
- of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n");
+ of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n");
of.writeAsciiString("\tdayDefaultAbbrvName");
- of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n");
- of.writeAsciiString("\tdayDefaultFullName");of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n");
+ of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n");
+ of.writeAsciiString("\tdayDefaultFullName");of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n");
}
}
if (nbOfMonths[i] == 0) {
@@ -1294,13 +1294,13 @@ void LCCalendarNode::generateCode (const OFileWriter &of) const
of.writeInt(i); of.writeAsciiString(",\n");
} else {
for(j = 0; j < nbOfEras[i]; j++) {
- of.writeAsciiString("\teraID"); of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n");
+ of.writeAsciiString("\teraID"); of.writeInt(i); of.writeInt(j); of.writeAsciiString(",\n");
of.writeAsciiString("\teraDefaultAbbrvName");of.writeInt(i);of.writeInt(j);of.writeAsciiString(",\n");
of.writeAsciiString("\teraDefaultFullName");of.writeInt(i);of.writeInt(j);of.writeAsciiString(",\n");
}
}
- of.writeAsciiString("\tstartDayOfWeek");of.writeInt(i); of.writeAsciiString(",\n");
- of.writeAsciiString("\tminimalDaysInFirstWeek");of.writeInt(i); of.writeAsciiString(",\n");
+ of.writeAsciiString("\tstartDayOfWeek");of.writeInt(i); of.writeAsciiString(",\n");
+ of.writeAsciiString("\tminimalDaysInFirstWeek");of.writeInt(i); of.writeAsciiString(",\n");
}
of.writeAsciiString("};\n\n");
@@ -1365,7 +1365,7 @@ void LCCurrencyNode :: generateCode (const OFileWriter &of) const
of.writeParameter("currencySymbol", str, nbOfCurrencies);
str = calNode -> findNode ("BankSymbol") -> getValue();
of.writeParameter("bankSymbol", str, nbOfCurrencies);
- // BankSymbol currently must be ISO 4217. May change later if
+ // BankSymbol currently must be ISO 4217. May change later if
// application always uses CurrencyID instead of BankSymbol.
if (!bLegacy && !isIso4217(str))
incError( "BankSymbol is not ISO 4217");
diff --git a/i18npool/source/localedata/LocaleNode.hxx b/i18npool/source/localedata/LocaleNode.hxx
index fb3506389ac4..3cacc4163ba8 100644
--- a/i18npool/source/localedata/LocaleNode.hxx
+++ b/i18npool/source/localedata/LocaleNode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/localedata/data/dz_BT.xml b/i18npool/source/localedata/data/dz_BT.xml
index 6bb1d8951064..7b21b633d5fe 100644
--- a/i18npool/source/localedata/data/dz_BT.xml
+++ b/i18npool/source/localedata/data/dz_BT.xml
@@ -118,7 +118,7 @@
<FormatCode>[NatNum1]"སྤྱི་ལོ" YYYY "ཟླ་" M "ཚེས་" DD</FormatCode>
<DefaultName></DefaultName>
</FormatElement>
- <!-- Time format was originally "ཆུ་ཚོད་" HH "སà¾à½¢à¼‹à½˜à¼‹" MM "སà¾à½¢à¼‹à½†à¼‹à¼‹" SS -->
+ <!-- Time format was originally "ཆུ་ཚོད་" HH "སà¾à½¢à¼‹à½˜à¼‹" MM "སà¾à½¢à¼‹à½†à¼‹à¼‹" SS -->
<!-- Replaced with HH:MM:SS until more information is available -->
<FormatElement msgid="TimeFormatskey1" default="false" type="short" usage="TIME" formatindex="39">
<FormatCode>HH:MM</FormatCode>
@@ -249,7 +249,7 @@
<DefaultName></DefaultName>
</FormatElement>
<FormatElement msgid="PercentFormatskey1" default="true" type="short" usage="PERCENT_NUMBER" formatindex="8">
- <!-- Percentage formats other than % sign are not possible in 2.0 0 "བརྒྱ་ཆ་་" is replaced by % -->
+ <!-- Percentage formats other than % sign are not possible in 2.0 0 "བརྒྱ་ཆ་་" is replaced by % -->
<FormatCode>[NatNum1]0%</FormatCode>
<DefaultName></DefaultName>
</FormatElement>
@@ -297,7 +297,7 @@
<DaysOfWeek>
<Day>
<DayID>sun</DayID>
- <DefaultAbbrvName>ཟླ་ </DefaultAbbrvName>
+ <DefaultAbbrvName>ཟླ་ </DefaultAbbrvName>
<DefaultFullName>གཟའ་ཟླ་བ་</DefaultFullName>
</Day>
<Day>
@@ -449,7 +449,7 @@
</LC_NumberingLevel>
<LC_OutLineNumberingLevel>
<OutlineStyle>
- <OutLineNumberingLevel Prefix=" " NumType="4" Suffix=" " BulletChar="0020" BulletFontName="" ParentNumbering="0" LeftMargin="0" SymbolTextDistance="50" FirstLineOffset="0" />
+ <OutLineNumberingLevel Prefix=" " NumType="4" Suffix=" " BulletChar="0020" BulletFontName="" ParentNumbering="0" LeftMargin="0" SymbolTextDistance="50" FirstLineOffset="0" />
<OutLineNumberingLevel Prefix=" " NumType="4" Suffix=" " BulletChar="0020" BulletFontName="" ParentNumbering="1" LeftMargin="50" SymbolTextDistance="50" FirstLineOffset="0" />
<OutLineNumberingLevel Prefix=" " NumType="4" Suffix=" " BulletChar="0020" BulletFontName="" ParentNumbering="2" LeftMargin="100" SymbolTextDistance="50" FirstLineOffset="0" />
<OutLineNumberingLevel Prefix=" " NumType="4" Suffix=" " BulletChar="0020" BulletFontName="" ParentNumbering="3" LeftMargin="150" SymbolTextDistance="50" FirstLineOffset="0" />
diff --git a/i18npool/source/localedata/data/fa_IR.xml b/i18npool/source/localedata/data/fa_IR.xml
index 95a64f392c4d..b5e7380e4a34 100644
--- a/i18npool/source/localedata/data/fa_IR.xml
+++ b/i18npool/source/localedata/data/fa_IR.xml
@@ -307,7 +307,7 @@
</StartDayOfWeek>
<MinimalDaysInFirstWeek>1</MinimalDaysInFirstWeek>
</Calendar>
-
+
<Calendar unoid="gregorian" default="false">
<DaysOfWeek>
<Day>
diff --git a/i18npool/source/localedata/filewriter.cxx b/i18npool/source/localedata/filewriter.cxx
index abc24d10e857..cd782acfae60 100644
--- a/i18npool/source/localedata/filewriter.cxx
+++ b/i18npool/source/localedata/filewriter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index 9fe8234d48f6..42ebf76cee03 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -432,13 +432,13 @@ oslGenericFunction SAL_CALL lcl_LookupTableHelper::getFunctionSymbolByName(
if ( module->loadRelative(&thisModule, aBuf.makeStringAndClear()) )
{
::osl::MutexGuard aGuard( maMutex );
- LocaleDataLookupTableItem* pNewItem = 0;
+ LocaleDataLookupTableItem* pNewItem = 0;
maLookupTable.push_back(pNewItem = new LocaleDataLookupTableItem(aLibTable[i].pLib, module, aLibTable[i].pLocale ));
OSL_ASSERT( pOutCachedItem );
if( pOutCachedItem )
{
(*pOutCachedItem) = new LocaleDataLookupTableItem( *pNewItem );
- return module->getFunctionSymbol(
+ return module->getFunctionSymbol(
aBuf.appendAscii(pFunction).append(under).
appendAscii((*pOutCachedItem)->localeName).makeStringAndClear());
}
@@ -851,7 +851,7 @@ LocaleData::hasPhonetic( const Locale& rLocale ) throw(RuntimeException)
return sal_False;
}
-sal_Unicode ** SAL_CALL
+sal_Unicode ** SAL_CALL
LocaleData::getIndexArrayForAlgorithm(const Locale& rLocale, const OUString& algorithm)
{
sal_Int16 indexCount = 0;
diff --git a/i18npool/source/localedata/saxparser.cxx b/i18npool/source/localedata/saxparser.cxx
index dd6c02225cef..bd7b5e5edcbb 100644
--- a/i18npool/source/localedata/saxparser.cxx
+++ b/i18npool/source/localedata/saxparser.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -145,7 +145,7 @@ class TestDocumentHandler :
{
public:
TestDocumentHandler(const char* locale, const char* outFile ) :
- rootNode(0), nError(0), nbOfCurrencies(0), nbOfCalendars(0), nbOfFormatElements(0),
+ rootNode(0), nError(0), nbOfCurrencies(0), nbOfCalendars(0), nbOfFormatElements(0),
nbOfTransliterations(0), nbOfCollations(0), nbOfDays(50), nbOfMonths(50), nbOfEras(10),
flag(-1), of(outFile, locale), isStartDayOfWeek(false), foundDefaultName(false),
foundVariant(false), openElement(false)
@@ -395,7 +395,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
// create and connect the document handler to the parser
TestDocumentHandler *pDocHandler = new TestDocumentHandler( argv[1], argv[3]);
- Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler );
+ Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler );
Reference< XEntityResolver > rEntityResolver( (XEntityResolver *) pDocHandler );
rParser->setDocumentHandler( rDocHandler );
@@ -404,7 +404,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
// create the input stream
InputSource source;
source.aInputStream = createStreamFromFile( argv[2] );
- source.sSystemId = OUString::createFromAscii( argv[2] );
+ source.sSystemId = OUString::createFromAscii( argv[2] );
try
{
diff --git a/i18npool/source/nativenumber/data/numberchar.h b/i18npool/source/nativenumber/data/numberchar.h
index 5472ad15ed08..91224585f3b7 100644
--- a/i18npool/source/nativenumber/data/numberchar.h
+++ b/i18npool/source/nativenumber/data/numberchar.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,41 +30,41 @@
namespace com { namespace sun { namespace star { namespace i18n {
-static const sal_Int16 NumberChar_HalfWidth = 0;
-static const sal_Int16 NumberChar_FullWidth = 1;
-static const sal_Int16 NumberChar_Lower_zh = 2;
-static const sal_Int16 NumberChar_Upper_zh = 3;
-static const sal_Int16 NumberChar_Upper_zh_TW = 4;
-static const sal_Int16 NumberChar_Modern_ja = 5;
+static const sal_Int16 NumberChar_HalfWidth = 0;
+static const sal_Int16 NumberChar_FullWidth = 1;
+static const sal_Int16 NumberChar_Lower_zh = 2;
+static const sal_Int16 NumberChar_Upper_zh = 3;
+static const sal_Int16 NumberChar_Upper_zh_TW = 4;
+static const sal_Int16 NumberChar_Modern_ja = 5;
static const sal_Int16 NumberChar_Traditional_ja= 6;
-static const sal_Int16 NumberChar_Lower_ko = 7;
-static const sal_Int16 NumberChar_Upper_ko = 8;
-static const sal_Int16 NumberChar_Hangul_ko = 9;
-static const sal_Int16 NumberChar_Indic_ar = 10;
+static const sal_Int16 NumberChar_Lower_ko = 7;
+static const sal_Int16 NumberChar_Upper_ko = 8;
+static const sal_Int16 NumberChar_Hangul_ko = 9;
+static const sal_Int16 NumberChar_Indic_ar = 10;
static const sal_Int16 NumberChar_EastIndic_ar = 11;
-static const sal_Int16 NumberChar_hi = 12;
-static const sal_Int16 NumberChar_th = 13;
-static const sal_Int16 NumberChar_or = 14;
-static const sal_Int16 NumberChar_mr = 15;
-static const sal_Int16 NumberChar_bn = 16;
-static const sal_Int16 NumberChar_pa = 17;
-static const sal_Int16 NumberChar_gu = 18;
-static const sal_Int16 NumberChar_ta = 19;
-static const sal_Int16 NumberChar_te = 20;
-static const sal_Int16 NumberChar_kn = 21;
-static const sal_Int16 NumberChar_ml = 22;
-static const sal_Int16 NumberChar_lo = 23;
-static const sal_Int16 NumberChar_bo = 24;
-static const sal_Int16 NumberChar_my = 25;
-static const sal_Int16 NumberChar_km = 26;
-static const sal_Int16 NumberChar_mn = 27;
-static const sal_Int16 NumberChar_he = 28;
-static const sal_Int16 NumberChar_ne = 29;
-static const sal_Int16 NumberChar_dz = 30;
-static const sal_Int16 NumberChar_Count = 31;
+static const sal_Int16 NumberChar_hi = 12;
+static const sal_Int16 NumberChar_th = 13;
+static const sal_Int16 NumberChar_or = 14;
+static const sal_Int16 NumberChar_mr = 15;
+static const sal_Int16 NumberChar_bn = 16;
+static const sal_Int16 NumberChar_pa = 17;
+static const sal_Int16 NumberChar_gu = 18;
+static const sal_Int16 NumberChar_ta = 19;
+static const sal_Int16 NumberChar_te = 20;
+static const sal_Int16 NumberChar_kn = 21;
+static const sal_Int16 NumberChar_ml = 22;
+static const sal_Int16 NumberChar_lo = 23;
+static const sal_Int16 NumberChar_bo = 24;
+static const sal_Int16 NumberChar_my = 25;
+static const sal_Int16 NumberChar_km = 26;
+static const sal_Int16 NumberChar_mn = 27;
+static const sal_Int16 NumberChar_he = 28;
+static const sal_Int16 NumberChar_ne = 29;
+static const sal_Int16 NumberChar_dz = 30;
+static const sal_Int16 NumberChar_Count = 31;
static sal_Unicode NumberChar[][10] = {
-// 0 1 2 3 4 5 6 7 8 9
+// 0 1 2 3 4 5 6 7 8 9
{ 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039 }, // Half Width (Ascii)
{ 0xFF10, 0xFF11, 0xFF12, 0xFF13, 0xFF14, 0xFF15, 0xFF16, 0xFF17, 0xFF18, 0xFF19 }, // Full Width
{ 0x3007, 0x4E00, 0x4E8c, 0x4E09, 0x56DB, 0x4E94, 0x516D, 0x4E03, 0x516B, 0x4E5D }, // Chinese Lower
@@ -147,7 +147,7 @@ static sal_Unicode MinusChar[] = {
0x2212, // Est. Arabic Indic
0x0000, // Indic
0x0000, // Thai
- 0x0000, // Oriya
+ 0x0000, // Oriya
0x0000, // Marathi
0x0000, // Bengali
0x0000, // Punjabi
@@ -181,7 +181,7 @@ static sal_uInt16 SeparatorChar[] = {
0x066C, // Est. Arabic Indic
0x0000, // Indic
0x0000, // Thai
- 0x0000, // Oriya
+ 0x0000, // Oriya
0x0000, // Marathi
0x0000, // Bengali
0x0000, // Punjabi
@@ -200,44 +200,44 @@ static sal_uInt16 SeparatorChar[] = {
0x0000, // Dzongkha
};
-#define NUMBER_ZERO NumberChar[NumberChar_HalfWidth][0] // 0x0030
-#define NUMBER_ONE NumberChar[NumberChar_HalfWidth][1] // 0x0031
-#define NUMBER_NINE NumberChar[NumberChar_HalfWidth][9] // 0x0039
-#define isNumber(n) ( NUMBER_ZERO <= n && n <= NUMBER_NINE )
-#define isDecimal(n) ( n == DecimalChar[NumberChar_HalfWidth] )
-#define isMinus(n) ( n == MinusChar[NumberChar_HalfWidth] )
+#define NUMBER_ZERO NumberChar[NumberChar_HalfWidth][0] // 0x0030
+#define NUMBER_ONE NumberChar[NumberChar_HalfWidth][1] // 0x0031
+#define NUMBER_NINE NumberChar[NumberChar_HalfWidth][9] // 0x0039
+#define isNumber(n) ( NUMBER_ZERO <= n && n <= NUMBER_NINE )
+#define isDecimal(n) ( n == DecimalChar[NumberChar_HalfWidth] )
+#define isMinus(n) ( n == MinusChar[NumberChar_HalfWidth] )
#define isSeparator(n) ( n == SeparatorChar[NumberChar_HalfWidth] )
-const sal_Int16 Multiplier_Lower_zh = 0;
-const sal_Int16 Multiplier_Upper_zh = 1;
-const sal_Int16 Multiplier_Lower_zh_TW = 2;
-const sal_Int16 Multiplier_Upper_zh_TW = 3;
-const sal_Int16 Multiplier_Lower_ko = 4;
-const sal_Int16 Multiplier_Hangul_ko = 5;
-const sal_Int16 Multiplier_Modern_ja = 6;
+const sal_Int16 Multiplier_Lower_zh = 0;
+const sal_Int16 Multiplier_Upper_zh = 1;
+const sal_Int16 Multiplier_Lower_zh_TW = 2;
+const sal_Int16 Multiplier_Upper_zh_TW = 3;
+const sal_Int16 Multiplier_Lower_ko = 4;
+const sal_Int16 Multiplier_Hangul_ko = 5;
+const sal_Int16 Multiplier_Modern_ja = 6;
const sal_Int16 Multiplier_Traditional_ja = 7;
-const sal_Int16 Multiplier_Count = 8;
+const sal_Int16 Multiplier_Count = 8;
-const sal_Int16 ExponentCount_6_CJK = 6;
+const sal_Int16 ExponentCount_6_CJK = 6;
static sal_Int16 MultiplierExponent_6_CJK[ExponentCount_6_CJK] = {
- 12, 8, 4, 3, 2, 1
+ 12, 8, 4, 3, 2, 1
};
static sal_Unicode MultiplierChar_6_CJK[][ExponentCount_6_CJK] = {
- {0x5146, 0x4EBF, 0x4E07, 0x5343, 0x767E, 0x5341}, // S. Chinese Lower
- {0x5146, 0x4EBF, 0x4E07, 0x4EDF, 0x4F70, 0x62FE}, // S. Chinese Upper
- {0x5146, 0x5104, 0x842C, 0x5343, 0x767E, 0x5341}, // T. Chinese Lower
- {0x5146, 0x5104, 0x842C, 0x4EDF, 0x4F70, 0x62FE}, // T. Chinese & Korean Upper
- {0x5146, 0x5104, 0x4E07, 0x5343, 0x767E, 0x5341}, // Korean Lower
- {0xC870, 0xC5B5, 0xB9CC, 0xCC9C, 0xBC31, 0xC2ED}, // Korean Hangul
- {0x5146, 0x5104, 0x4E07, 0x5343, 0x767E, 0x5341}, // Japanese Modern
- {0x5146, 0x5104, 0x842C, 0x9621, 0x767E, 0x62FE} // Japanese Traditional
+ {0x5146, 0x4EBF, 0x4E07, 0x5343, 0x767E, 0x5341}, // S. Chinese Lower
+ {0x5146, 0x4EBF, 0x4E07, 0x4EDF, 0x4F70, 0x62FE}, // S. Chinese Upper
+ {0x5146, 0x5104, 0x842C, 0x5343, 0x767E, 0x5341}, // T. Chinese Lower
+ {0x5146, 0x5104, 0x842C, 0x4EDF, 0x4F70, 0x62FE}, // T. Chinese & Korean Upper
+ {0x5146, 0x5104, 0x4E07, 0x5343, 0x767E, 0x5341}, // Korean Lower
+ {0xC870, 0xC5B5, 0xB9CC, 0xCC9C, 0xBC31, 0xC2ED}, // Korean Hangul
+ {0x5146, 0x5104, 0x4E07, 0x5343, 0x767E, 0x5341}, // Japanese Modern
+ {0x5146, 0x5104, 0x842C, 0x9621, 0x767E, 0x62FE} // Japanese Traditional
};
-const sal_Int16 ExponentCount_2_CJK = 2;
+const sal_Int16 ExponentCount_2_CJK = 2;
static sal_Int16 MultiplierExponent_2_CJK[ExponentCount_2_CJK] = {
- 8, 4,
+ 8, 4,
};
static sal_Unicode MultiplierChar_2_CJK[][ExponentCount_2_CJK] = {
@@ -251,20 +251,20 @@ static sal_Unicode MultiplierChar_2_CJK[][ExponentCount_2_CJK] = {
{0x5104, 0x842C} // Japanese Traditional
};
-const sal_Int16 ExponentCount_7_CJK = 7;
+const sal_Int16 ExponentCount_7_CJK = 7;
static sal_Int16 MultiplierExponent_7_CJK[ExponentCount_7_CJK] = {
- 16, 12, 8, 4, 3, 2, 1
+ 16, 12, 8, 4, 3, 2, 1
};
static sal_Unicode MultiplierChar_7_CJK[][ExponentCount_7_CJK] = {
- {0x4EAC, 0x5146, 0x4EBF, 0x4E07, 0x5343, 0x767E, 0x5341}, // S. Chinese Lower
- {0x4EAC, 0x5146, 0x4EBF, 0x4E07, 0x4EDF, 0x4F70, 0x62FE}, // S. Chinese Upper
- {0x4EAC, 0x5146, 0x5104, 0x842C, 0x5343, 0x767E, 0x5341}, // T. Chinese Lower
- {0x4EAC, 0x5146, 0x5104, 0x842C, 0x4EDF, 0x4F70, 0x62FE}, // T. Chinese & Korean Upper
- {0x4EAC, 0x5146, 0x5104, 0x4E07, 0x5343, 0x767E, 0x5341}, // Korean Lower
- {0x4EAC, 0xC870, 0xC5B5, 0xB9CC, 0xCC9C, 0xBC31, 0xC2ED}, // Korean Hangul
- {0x4EAC, 0x5146, 0x5104, 0x4E07, 0x5343, 0x767E, 0x5341}, // Japanese Modern
- {0x4EAC, 0x5146, 0x5104, 0x842C, 0x9621, 0x767E, 0x62FE} // Japanese Traditional
+ {0x4EAC, 0x5146, 0x4EBF, 0x4E07, 0x5343, 0x767E, 0x5341}, // S. Chinese Lower
+ {0x4EAC, 0x5146, 0x4EBF, 0x4E07, 0x4EDF, 0x4F70, 0x62FE}, // S. Chinese Upper
+ {0x4EAC, 0x5146, 0x5104, 0x842C, 0x5343, 0x767E, 0x5341}, // T. Chinese Lower
+ {0x4EAC, 0x5146, 0x5104, 0x842C, 0x4EDF, 0x4F70, 0x62FE}, // T. Chinese & Korean Upper
+ {0x4EAC, 0x5146, 0x5104, 0x4E07, 0x5343, 0x767E, 0x5341}, // Korean Lower
+ {0x4EAC, 0xC870, 0xC5B5, 0xB9CC, 0xCC9C, 0xBC31, 0xC2ED}, // Korean Hangul
+ {0x4EAC, 0x5146, 0x5104, 0x4E07, 0x5343, 0x767E, 0x5341}, // Japanese Modern
+ {0x4EAC, 0x5146, 0x5104, 0x842C, 0x9621, 0x767E, 0x62FE} // Japanese Traditional
};
typedef struct {
diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx
index 5044b6cc1e2f..a3382290ff4d 100644
--- a/i18npool/source/nativenumber/nativenumbersupplier.cxx
+++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
OUString SAL_CALL getHebrewNativeNumberString(const OUString& aNumberString, sal_Bool useGeresh);
-OUString SAL_CALL AsciiToNativeChar( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
+OUString SAL_CALL AsciiToNativeChar( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& offset, sal_Bool useOffset, sal_Int16 number ) throw(RuntimeException)
{
const sal_Unicode *src = inStr.getStr() + startPos;
@@ -91,7 +91,7 @@ OUString SAL_CALL AsciiToNativeChar( const OUString& inStr, sal_Int32 startPos,
if (i > 0 && isNumber(src[i-1]) && isSeparator(ch))
newStr->buffer[i] = SeparatorChar[number] ? SeparatorChar[number] : ch;
else
- newStr->buffer[i] = isDecimal(ch) ? (DecimalChar[number] ? DecimalChar[number] : ch) :
+ newStr->buffer[i] = isDecimal(ch) ? (DecimalChar[number] ? DecimalChar[number] : ch) :
isMinus(ch) ? (MinusChar[number] ? MinusChar[number] : ch) : ch;
}
else
@@ -153,7 +153,7 @@ sal_Bool SAL_CALL AsciiToNative_numberMaker(const sal_Unicode *str, sal_Int32 be
for (sal_Int16 i = 1; i <= number->exponentCount; i++) {
sal_Int32 tmp = len - (i == number->exponentCount ? 0 : number->multiplierExponent[i]);
if (tmp > 0) {
- printPower |= AsciiToNative_numberMaker(str, begin, tmp, dst, count,
+ printPower |= AsciiToNative_numberMaker(str, begin, tmp, dst, count,
(i == number->exponentCount ? -1 : i), offset, useOffset, startPos, number, numberChar);
begin += tmp;
len -= tmp;
@@ -180,10 +180,10 @@ OUString SAL_CALL AsciiToNative( const OUString& inStr, sal_Int32 startPos, sal_
sal_Int32 strLen = inStr.getLength() - startPos;
sal_Unicode *numberChar = NumberChar[number->number];
- if (nCount > strLen)
+ if (nCount > strLen)
nCount = strLen;
- if (nCount > 0) {
+ if (nCount > 0) {
const sal_Unicode *str = inStr.getStr() + startPos;
rtl_uString *newStr = x_rtl_uString_new_WithLength(nCount * 2);
rtl_uString *srcStr = x_rtl_uString_new_WithLength(nCount); // for keeping number without comma
@@ -272,7 +272,7 @@ static void SAL_CALL NativeToAscii_numberMaker(sal_Int16 max, sal_Int16 prev, co
shift = end = 0;
if (curr >= max)
max = curr;
- else if (curr > prev)
+ else if (curr > prev)
shift = max - curr;
else
end = curr;
@@ -291,7 +291,7 @@ static void SAL_CALL NativeToAscii_numberMaker(sal_Int16 max, sal_Int16 prev, co
}
max = curr;
}
- NativeToAscii_numberMaker(max, curr, str, i, nCount, dst,
+ NativeToAscii_numberMaker(max, curr, str, i, nCount, dst,
count, offset, useOffset, numberChar, multiplierChar);
return;
} else
@@ -305,15 +305,15 @@ static void SAL_CALL NativeToAscii_numberMaker(sal_Int16 max, sal_Int16 prev, co
}
}
-static OUString SAL_CALL NativeToAscii(const OUString& inStr,
+static OUString SAL_CALL NativeToAscii(const OUString& inStr,
sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset, sal_Bool useOffset ) throw(RuntimeException)
{
sal_Int32 strLen = inStr.getLength() - startPos;
- if (nCount > strLen)
+ if (nCount > strLen)
nCount = strLen;
- if (nCount > 0) {
+ if (nCount > 0) {
const sal_Unicode *str = inStr.getStr() + startPos;
rtl_uString *newStr = x_rtl_uString_new_WithLength(nCount * MultiplierExponent_7_CJK[0] + 1);
if (useOffset)
@@ -344,20 +344,20 @@ static OUString SAL_CALL NativeToAscii(const OUString& inStr,
} else {
if ((index = numberChar.indexOf(str[i])) >= 0)
newStr->buffer[count] = sal::static_int_cast<sal_Unicode>( (index % 10) + NUMBER_ZERO );
- else if ((index = separatorChar.indexOf(str[i])) >= 0 &&
+ else if ((index = separatorChar.indexOf(str[i])) >= 0 &&
(i < nCount-1 && (numberChar.indexOf(str[i+1]) >= 0 ||
multiplierChar.indexOf(str[i+1]) >= 0)))
newStr->buffer[count] = SeparatorChar[NumberChar_HalfWidth];
else if ((index = decimalChar.indexOf(str[i])) >= 0 &&
(i < nCount-1 && (numberChar.indexOf(str[i+1]) >= 0 ||
multiplierChar.indexOf(str[i+1]) >= 0)))
- // Only when decimal point is followed by numbers,
+ // Only when decimal point is followed by numbers,
// it will be convert to ASCII decimal point
newStr->buffer[count] = DecimalChar[NumberChar_HalfWidth];
else if ((index = minusChar.indexOf(str[i])) >= 0 &&
(i < nCount-1 && (numberChar.indexOf(str[i+1]) >= 0 ||
multiplierChar.indexOf(str[i+1]) >= 0)))
- // Only when minus is followed by numbers,
+ // Only when minus is followed by numbers,
// it will be convert to ASCII minus sign
newStr->buffer[count] = MinusChar[NumberChar_HalfWidth];
else
@@ -576,8 +576,8 @@ OUString SAL_CALL NativeNumberSupplier::getNativeNumberString(const OUString& aN
}
if (number || num >= 0) {
- if (!aLocale.Language.equals(rLocale.Language) ||
- !aLocale.Country.equals(rLocale.Country) ||
+ if (!aLocale.Language.equals(rLocale.Language) ||
+ !aLocale.Country.equals(rLocale.Country) ||
!aLocale.Variant.equals(rLocale.Variant)) {
LocaleDataItem item = LocaleData().getLocaleItem( rLocale );
aLocale = rLocale;
@@ -595,7 +595,7 @@ OUString SAL_CALL NativeNumberSupplier::getNativeNumberString(const OUString& aN
if (number)
return AsciiToNative( aNumberString, 0, aNumberString.getLength(), offset, useOffset, number );
else if (num == NumberChar_he)
- return getHebrewNativeNumberString(aNumberString,
+ return getHebrewNativeNumberString(aNumberString,
nNativeNumberMode == NativeNumberMode::NATNUM2);
else
return AsciiToNativeChar(aNumberString, 0, aNumberString.getLength(), offset, useOffset, num);
@@ -856,7 +856,7 @@ void makeHebrewNumber(sal_Int64 value, OUStringBuffer& output, sal_Bool isLast,
if (useGeresh) {
if (nbOfChar > 1) // a number is written as more than one character
output.insert(output.getLength() - 1, gershayim);
- else if (nbOfChar == 1) // a number is written as a single character
+ else if (nbOfChar == 1) // a number is written as a single character
output.append(geresh);
}
}
diff --git a/i18npool/source/numberformatcode/numberformatcode.cxx b/i18npool/source/numberformatcode/numberformatcode.cxx
index 8a080ea214d6..a868bc063b95 100644
--- a/i18npool/source/numberformatcode/numberformatcode.cxx
+++ b/i18npool/source/numberformatcode/numberformatcode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ NumberFormatCodeMapper::~NumberFormatCodeMapper()
NumberFormatCodeMapper::getDefault( sal_Int16 formatType, sal_Int16 formatUsage, const ::com::sun::star::lang::Locale& rLocale ) throw(::com::sun::star::uno::RuntimeException)
{
- ::rtl::OUString elementType = mapElementTypeShortToString(formatType);
+ ::rtl::OUString elementType = mapElementTypeShortToString(formatType);
::rtl::OUString elementUsage = mapElementUsageShortToString(formatUsage);
getFormats( rLocale );
@@ -159,9 +159,9 @@ NumberFormatCodeMapper::getAllFormatCodes( const ::com::sun::star::lang::Locale&
void NumberFormatCodeMapper::setupLocale( const ::com::sun::star::lang::Locale& rLocale )
{
- if ( aLocale.Country != rLocale.Country
- || aLocale.Language != rLocale.Language
- || aLocale.Variant != rLocale.Variant )
+ if ( aLocale.Country != rLocale.Country
+ || aLocale.Language != rLocale.Language
+ || aLocale.Variant != rLocale.Variant )
{
bFormatsValid = sal_False;
aLocale = rLocale;
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index b5f30058da2e..1d4944634cf2 100644
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/paper/paper.cxx b/i18npool/source/paper/paper.cxx
index dc588a36b515..c04f981f7c56 100644
--- a/i18npool/source/paper/paper.cxx
+++ b/i18npool/source/paper/paper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -188,7 +188,7 @@ bool PaperInfo::doSloppyFit()
bool PaperInfo::sloppyEqual(const PaperInfo &rOther) const
{
- return
+ return
(
(labs(m_nPaperWidth - rOther.m_nPaperWidth) < MAXSLOPPY) &&
(labs(m_nPaperHeight - rOther.m_nPaperHeight) < MAXSLOPPY)
@@ -335,13 +335,13 @@ PaperInfo PaperInfo::getSystemDefaultPaper()
for ( size_t i = 0; i < nTabSize; ++i )
{
if (i == PAPER_USER) continue;
-
+
//glibc stores sizes as integer mm units, and so is inaccurate. To
//find a standard paper size we calculate the standard paper sizes
//into equally inaccurate mm and compare
long width = (aDinTab[i].m_nWidth + 50) / 100;
long height = (aDinTab[i].m_nHeight + 50) / 100;
-
+
if (width == w.word/100 && height == h.word/100)
{
w.word = aDinTab[i].m_nWidth;
@@ -398,7 +398,7 @@ PaperInfo::PaperInfo(long nPaperWidth, long nPaperHeight)
{
for ( size_t i = 0; i < nTabSize; ++i )
{
- if (
+ if (
(nPaperWidth == aDinTab[i].m_nWidth) &&
(nPaperHeight == aDinTab[i].m_nHeight)
)
@@ -422,7 +422,7 @@ Paper PaperInfo::fromPSName(const rtl::OString &rName)
for ( size_t i = 0; i < nTabSize; ++i )
{
- if (aDinTab[i].m_pPSName &&
+ if (aDinTab[i].m_pPSName &&
!rtl_str_compareIgnoreAsciiCase(aDinTab[i].m_pPSName, rName.getStr()))
{
return static_cast<Paper>(i);
diff --git a/i18npool/source/registerservices/registerservices.cxx b/i18npool/source/registerservices/registerservices.cxx
index cf73d0961bd6..3be4a9467eb6 100644
--- a/i18npool/source/registerservices/registerservices.cxx
+++ b/i18npool/source/registerservices/registerservices.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -405,16 +405,16 @@ static const struct InstancesArray {
&InputSequenceChecker_th_CreateInstance },
{ "com.sun.star.i18n.InputSequenceChecker_hi",
"com.sun.star.i18n.InputSequenceChecker_hi",
- &InputSequenceChecker_hi_CreateInstance },
+ &InputSequenceChecker_hi_CreateInstance },
{ "com.sun.star.i18n.TextConversion",
"com.sun.star.i18n.TextConversion",
- &TextConversionImpl_CreateInstance },
+ &TextConversionImpl_CreateInstance },
{ "com.sun.star.i18n.TextConversion_ko",
"com.sun.star.i18n.TextConversion_ko",
- &TextConversion_ko_CreateInstance },
+ &TextConversion_ko_CreateInstance },
{ "com.sun.star.i18n.TextConversion_zh",
"com.sun.star.i18n.TextConversion_zh",
- &TextConversion_zh_CreateInstance },
+ &TextConversion_zh_CreateInstance },
{ TRLT_SERVICELNAME,
TRLT_IMPLNAME ,
&TransliterationImpl_CreateInstance },
@@ -555,7 +555,7 @@ static const struct InstancesArray {
{ "com.sun.star.i18n.OrdinalSuffix",
"com.sun.star.i18n.OrdinalSuffix",
& OrdinalSuffix_CreateInstance },
-
+
{ TRLT_SERVICELNAME_L10N,
TRLT_IMPLNAME_PREFIX "FULLWIDTHKATAKANA_HALFWIDTHKATAKANA",
&fullwidthKatakanaToHalfwidthKatakana_CreateInstance },
diff --git a/i18npool/source/search/levdis.cxx b/i18npool/source/search/levdis.cxx
index 417d4a5fe243..177fe791994a 100644
--- a/i18npool/source/search/levdis.cxx
+++ b/i18npool/source/search/levdis.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/search/levdis.hxx b/i18npool/source/search/levdis.hxx
index dbae91068cac..d34b7b8c3148 100644
--- a/i18npool/source/search/levdis.hxx
+++ b/i18npool/source/search/levdis.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx
index ecf236f5cdde..bd65bea8c8fd 100644
--- a/i18npool/source/search/textsearch.cxx
+++ b/i18npool/source/search/textsearch.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -128,7 +128,7 @@ void TextSearch::setOptions( const SearchOptions& rOptions ) throw( RuntimeExcep
aSrchPara.Locale);
}
else if( xTranslit.is() )
- xTranslit = 0;
+ xTranslit = 0;
// Create Transliteration for 2<->1, 2<->2 transliteration
if ( aSrchPara.transliterateFlags & COMPLEX_TRANS_MASK )
@@ -173,7 +173,7 @@ void TextSearch::setOptions( const SearchOptions& rOptions ) throw( RuntimeExcep
sSrchStr2 = xTranslit2->transliterateString2String(
aSrchPara.searchString, 0, aSrchPara.searchString.getLength());
- // When start or end of search string is a complex script type, we need to
+ // When start or end of search string is a complex script type, we need to
// make sure the result boundary is not located in the middle of cell.
checkCTLStart = (xBreak.is() && (xBreak->getScriptType(sSrchStr, 0) ==
ScriptType::COMPLEX));
@@ -187,7 +187,7 @@ void TextSearch::setOptions( const SearchOptions& rOptions ) throw( RuntimeExcep
pRegExp = new Regexpr( aSrchPara, xTranslit );
}
- else
+ else
{
if ( aSrchPara.algorithmType == SearchAlgorithms_APPROXIMATE )
{
@@ -544,7 +544,7 @@ sal_Int32 TextSearch::GetDiff( const sal_Unicode cChr ) const
{
TextSearchJumpTable *pJump;
OUString sSearchKey;
-
+
if ( bUsePrimarySrchStr ) {
pJump = pJumpTable;
sSearchKey = sSrchStr;
diff --git a/i18npool/source/search/textsearch.hxx b/i18npool/source/search/textsearch.hxx
index 32b4d2e5af18..32f768282beb 100644
--- a/i18npool/source/search/textsearch.hxx
+++ b/i18npool/source/search/textsearch.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include <com/sun/star/util/XTextSearch.hpp>
#include <com/sun/star/i18n/XBreakIterator.hpp>
-#include <cppuhelper/implbase2.hxx> // helper for implementations
+#include <cppuhelper/implbase2.hxx> // helper for implementations
#include <com/sun/star/i18n/XExtendedTransliteration.hpp>
#include <com/sun/star/i18n/XCharacterClassification.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -43,9 +43,9 @@ class Regexpr;
class WLevDistance;
typedef ::std::map< sal_Unicode, sal_Int32 > TextSearchJumpTable;
-// ----------------------------------------------------
-// class SearchClass
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SearchClass
+// ----------------------------------------------------
class TextSearch: public cppu::WeakImplHelper2
<
::com::sun::star::util::XTextSearch,
@@ -78,7 +78,7 @@ class TextSearch: public cppu::WeakImplHelper2
TextSearchJumpTable* pJumpTable;
TextSearchJumpTable* pJumpTable2;
bool bIsForwardTab;
- bool bUsePrimarySrchStr;
+ bool bUsePrimarySrchStr;
void MakeForwardTab();
void MakeForwardTab2();
void MakeBackwardTab();
@@ -151,7 +151,7 @@ public:
throw( ::com::sun::star::uno::RuntimeException );
};
-
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/textconversion/genconv_dict.cxx b/i18npool/source/textconversion/genconv_dict.cxx
index 50c9fcffbe32..02e7523c8904 100644
--- a/i18npool/source/textconversion/genconv_dict.cxx
+++ b/i18npool/source/textconversion/genconv_dict.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,8 +54,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if (argc < 4) exit(-1);
- sfp = fopen(argv[2], "rb"); // open the source file for read;
- if (sfp == NULL)
+ sfp = fopen(argv[2], "rb"); // open the source file for read;
+ if (sfp == NULL)
{
printf("Open the dictionary source file failed.");
return -1;
@@ -132,7 +132,7 @@ void make_hhc_char(FILE *sfp, FILE *cfp)
fprintf(cfp, "\nstatic const com::sun::star::i18n::Hangul_Index Hangul2HanjaIndex[] = {\n");
for (i = 0; i < count; i++)
- fprintf(cfp, "\t{ 0x%04x, 0x%04x, 0x%02x },\n",
+ fprintf(cfp, "\t{ 0x%04x, 0x%04x, 0x%02x },\n",
Hangul2HanjaData[i][0],
Hangul2HanjaData[i][1],
Hangul2HanjaData[i][2]);
diff --git a/i18npool/source/textconversion/textconversion.cxx b/i18npool/source/textconversion/textconversion.cxx
index 0ece5709d1eb..aea9f5534987 100644
--- a/i18npool/source/textconversion/textconversion.cxx
+++ b/i18npool/source/textconversion/textconversion.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,9 +61,9 @@ static void* nullFunc()
}
oslGenericFunction SAL_CALL
-TextConversion::getFunctionBySymbol(const sal_Char* func)
+TextConversion::getFunctionBySymbol(const sal_Char* func)
{
- if (hModule)
+ if (hModule)
return osl_getFunctionSymbol(hModule, OUString::createFromAscii(func).pData);
else
return reinterpret_cast< oslGenericFunction >(nullFunc);
diff --git a/i18npool/source/textconversion/textconversionImpl.cxx b/i18npool/source/textconversion/textconversionImpl.cxx
index 9bc191ac71b5..3a7a1ebd1e63 100644
--- a/i18npool/source/textconversion/textconversionImpl.cxx
+++ b/i18npool/source/textconversion/textconversionImpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,8 +77,8 @@ TextConversionImpl::getConversionWithOffset( const OUString& aText, sal_Int32 nS
return xTC->getConversionWithOffset(aText, nStartPos, nLength, rLocale, nConversionType, nConversionOptions, offset);
}
-sal_Bool SAL_CALL
-TextConversionImpl::interactiveConversion( const Locale& rLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions )
+sal_Bool SAL_CALL
+TextConversionImpl::interactiveConversion( const Locale& rLocale, sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions )
throw( RuntimeException, IllegalArgumentException, NoSupportException )
{
getLocaleSpecificTextConversion(rLocale);
@@ -97,7 +97,7 @@ TextConversionImpl::getLocaleSpecificTextConversion(const Locale& rLocale) throw
aLocale = rLocale;
Reference < XInterface > xI;
-
+
xI = xMSF->createInstance(
OUString::createFromAscii("com.sun.star.i18n.TextConversion_") + aLocale.Language);
@@ -110,7 +110,7 @@ TextConversionImpl::getLocaleSpecificTextConversion(const Locale& rLocale) throw
OUString::createFromAscii("com.sun.star.i18n.TextConversion_") + aLocale.Language +
OUString::createFromAscii("_") + aLocale.Country +
OUString::createFromAscii("_") + aLocale.Variant);
-
+
if (xI.is())
xI->queryInterface( getCppuType((const Reference< XTextConversion>*)0) ) >>= xTC;
else if (xTC.is())
diff --git a/i18npool/source/textconversion/textconversion_ko.cxx b/i18npool/source/textconversion/textconversion_ko.cxx
index 9d5570efd6a2..a3dadea7bba8 100644
--- a/i18npool/source/textconversion/textconversion_ko.cxx
+++ b/i18npool/source/textconversion/textconversion_ko.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,13 +47,13 @@ using namespace rtl;
namespace com { namespace sun { namespace star { namespace i18n {
#define SCRIPT_OTHERS 0
-#define SCRIPT_HANJA 1
+#define SCRIPT_HANJA 1
#define SCRIPT_HANGUL 2
TextConversion_ko::TextConversion_ko( const Reference < XMultiServiceFactory >& xMSF )
{
Reference < XInterface > xI;
-
+
xI = xMSF->createInstance(
OUString::createFromAscii("com.sun.star.i18n.ConversionDictionary_ko"));
@@ -65,13 +65,13 @@ TextConversion_ko::TextConversion_ko( const Reference < XMultiServiceFactory >&
if ( xI.is() )
xI->queryInterface( getCppuType((const Reference< XConversionDictionaryList>*)0) ) >>= xCDL;
-
+
maxLeftLength = maxRightLength = 1;
// get maximum length of word in dictionary
if (xCDL.is()) {
- Locale loc(OUString::createFromAscii("ko"),
- OUString::createFromAscii("KR"),
+ Locale loc(OUString::createFromAscii("ko"),
+ OUString::createFromAscii("KR"),
OUString());
maxLeftLength = xCDL->queryMaxCharCount(loc,
ConversionDictionaryType::HANGUL_HANJA,
@@ -124,7 +124,7 @@ sal_Int16 SAL_CALL checkScriptType(sal_Unicode c)
return (i < scriptListCount && block >= scriptList[i].from) ? scriptList[i].script : SCRIPT_OTHERS;
}
-Sequence< OUString > SAL_CALL
+Sequence< OUString > SAL_CALL
TextConversion_ko::getCharConversions(const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool toHanja)
{
sal_Unicode ch;
@@ -168,7 +168,7 @@ TextConversion_ko::getCharConversions(const OUString& aText, sal_Int32 nStartPos
if (address != 0xFFFF)
newStr->buffer[count++] = address;
- else
+ else
break;
}
if (count > 0) {
@@ -253,25 +253,25 @@ TextConversion_ko::getConversions( const OUString& aText, sal_Int32 nStartPos, s
if (len > 1) {
try {
if (xCDL.is())
- result.Candidates = xCDL->queryConversions(aText, start + nStartPos, len,
+ result.Candidates = xCDL->queryConversions(aText, start + nStartPos, len,
aLocale, ConversionDictionaryType::HANGUL_HANJA, eDirection, nConversionOptions); // user dictionary
}
catch ( NoSupportException & ) {
- // clear reference (when there is no user dictionary) in order
- // to not always have to catch this exception again
+ // clear reference (when there is no user dictionary) in order
+ // to not always have to catch this exception again
// in further calls. (save time)
xCDL = 0;
}
catch (...) {
- // catch all other exceptions to allow
+ // catch all other exceptions to allow
// querying the system dictionary in the next line
}
- if (xCD.is() && toHanja) { // System dictionary would not do Hanja_to_Hangul conversion.
+ if (xCD.is() && toHanja) { // System dictionary would not do Hanja_to_Hangul conversion.
candidates = xCD->getConversions(aText, start + nStartPos, len, eDirection, nConversionOptions);
result.Candidates += candidates;
}
} else if (! toHanja) { // do whole word character 2 character conversion for Hanja to Hangul conversion
- result.Candidates = getCharConversions(aText, nStartPos + start, length - start, toHanja);
+ result.Candidates = getCharConversions(aText, nStartPos + start, length - start, toHanja);
if (result.Candidates.hasElements())
len = result.Candidates[0].getLength();
}
@@ -334,8 +334,8 @@ TextConversion_ko::getConversionWithOffset( const OUString& aText, sal_Int32 nSt
return getConversion(aText, nStartPos, nLength, rLocale, nConversionType, nConversionOptions);
}
-sal_Bool SAL_CALL
-TextConversion_ko::interactiveConversion( const Locale& /*rLocale*/, sal_Int16 /*nTextConversionType*/, sal_Int32 /*nTextConversionOptions*/ )
+sal_Bool SAL_CALL
+TextConversion_ko::interactiveConversion( const Locale& /*rLocale*/, sal_Int16 /*nTextConversionType*/, sal_Int32 /*nTextConversionOptions*/ )
throw( RuntimeException, IllegalArgumentException, NoSupportException )
{
return sal_True;
diff --git a/i18npool/source/textconversion/textconversion_zh.cxx b/i18npool/source/textconversion/textconversion_zh.cxx
index 71fee17ff342..03c27c428426 100644
--- a/i18npool/source/textconversion/textconversion_zh.cxx
+++ b/i18npool/source/textconversion/textconversion_zh.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,7 +68,7 @@ sal_Unicode SAL_CALL getOneCharConversion(sal_Unicode ch, const sal_Unicode* Dat
}
}
-OUString SAL_CALL
+OUString SAL_CALL
TextConversion_zh::getCharConversion(const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool toSChinese, sal_Int32 nConversionOptions)
{
const sal_Unicode *Data;
@@ -87,12 +87,12 @@ TextConversion_zh::getCharConversion(const OUString& aText, sal_Int32 nStartPos,
rtl_uString * newStr = x_rtl_uString_new_WithLength( nLength ); // defined in x_rtl_ustring.h
for (sal_Int32 i = 0; i < nLength; i++)
- newStr->buffer[i] =
+ newStr->buffer[i] =
getOneCharConversion(aText[nStartPos+i], Data, Index);
return OUString( newStr->buffer, nLength);
}
-OUString SAL_CALL
+OUString SAL_CALL
TextConversion_zh::getWordConversion(const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool toSChinese, sal_Int32 nConversionOptions, Sequence<sal_Int32>& offset)
{
sal_Int32 dictLen = 0;
@@ -134,23 +134,23 @@ TextConversion_zh::getWordConversion(const OUString& aText, sal_Int32 nStartPos,
for (; len > 0 && ! found; len--) {
OUString word = aText.copy(nStartPos + currPos, len);
sal_Int32 current = 0;
- // user dictionary
+ // user dictionary
if (xCDL.is()) {
Sequence < OUString > conversions;
try {
- conversions = xCDL->queryConversions(word, 0, len,
- aLocale, ConversionDictionaryType::SCHINESE_TCHINESE,
+ conversions = xCDL->queryConversions(word, 0, len,
+ aLocale, ConversionDictionaryType::SCHINESE_TCHINESE,
/*toSChinese ?*/ ConversionDirection_FROM_LEFT /*: ConversionDirection_FROM_RIGHT*/,
- nConversionOptions);
+ nConversionOptions);
}
catch ( NoSupportException & ) {
- // clear reference (when there is no user dictionary) in order
- // to not always have to catch this exception again
+ // clear reference (when there is no user dictionary) in order
+ // to not always have to catch this exception again
// in further calls. (save time)
xCDL = 0;
}
catch (...) {
- // catch all other exceptions to allow
+ // catch all other exceptions to allow
// querying the system dictionary in the next line
}
if (conversions.getLength() > 0) {
@@ -158,7 +158,7 @@ TextConversion_zh::getWordConversion(const OUString& aText, sal_Int32 nStartPos,
if (word.getLength() != conversions[0].getLength())
one2one=sal_False;
while (current < conversions[0].getLength()) {
- offset[count] = nStartPos + currPos + (current *
+ offset[count] = nStartPos + currPos + (current *
word.getLength() / conversions[0].getLength());
newStr->buffer[count++] = conversions[0][current++];
}
@@ -242,7 +242,7 @@ TextConversion_zh::getConversion( const OUString& aText, sal_Int32 nStartPos, sa
const Locale& rLocale, sal_Int16 nConversionType, sal_Int32 nConversionOptions)
throw( RuntimeException, IllegalArgumentException, NoSupportException )
{
- if (rLocale.Language.equalsAscii("zh") &&
+ if (rLocale.Language.equalsAscii("zh") &&
( nConversionType == TextConversionType::TO_SCHINESE ||
nConversionType == TextConversionType::TO_TCHINESE) ) {
@@ -251,13 +251,13 @@ TextConversion_zh::getConversion( const OUString& aText, sal_Int32 nStartPos, sa
if (nConversionOptions & TextConversionOption::CHARACTER_BY_CHARACTER)
// char to char dictionary
- return getCharConversion(aText, nStartPos, nLength, toSChinese, nConversionOptions);
+ return getCharConversion(aText, nStartPos, nLength, toSChinese, nConversionOptions);
else {
Sequence <sal_Int32> offset;
// word to word dictionary
return getWordConversion(aText, nStartPos, nLength, toSChinese, nConversionOptions, offset);
}
- } else
+ } else
throw NoSupportException(); // Conversion type is not supported in this service.
}
@@ -266,7 +266,7 @@ TextConversion_zh::getConversionWithOffset( const OUString& aText, sal_Int32 nSt
const Locale& rLocale, sal_Int16 nConversionType, sal_Int32 nConversionOptions, Sequence<sal_Int32>& offset)
throw( RuntimeException, IllegalArgumentException, NoSupportException )
{
- if (rLocale.Language.equalsAscii("zh") &&
+ if (rLocale.Language.equalsAscii("zh") &&
( nConversionType == TextConversionType::TO_SCHINESE ||
nConversionType == TextConversionType::TO_TCHINESE) ) {
@@ -276,19 +276,19 @@ TextConversion_zh::getConversionWithOffset( const OUString& aText, sal_Int32 nSt
if (nConversionOptions & TextConversionOption::CHARACTER_BY_CHARACTER) {
offset.realloc(0);
// char to char dictionary
- return getCharConversion(aText, nStartPos, nLength, toSChinese, nConversionOptions);
+ return getCharConversion(aText, nStartPos, nLength, toSChinese, nConversionOptions);
} else {
if (offset.getLength() < 2*nLength)
offset.realloc(2*nLength);
// word to word dictionary
return getWordConversion(aText, nStartPos, nLength, toSChinese, nConversionOptions, offset);
}
- } else
+ } else
throw NoSupportException(); // Conversion type is not supported in this service.
}
-sal_Bool SAL_CALL
-TextConversion_zh::interactiveConversion( const Locale& /*rLocale*/, sal_Int16 /*nTextConversionType*/, sal_Int32 /*nTextConversionOptions*/ )
+sal_Bool SAL_CALL
+TextConversion_zh::interactiveConversion( const Locale& /*rLocale*/, sal_Int16 /*nTextConversionType*/, sal_Int32 /*nTextConversionOptions*/ )
throw( RuntimeException, IllegalArgumentException, NoSupportException )
{
return sal_False;
diff --git a/i18npool/source/transliteration/chartonum.cxx b/i18npool/source/transliteration/chartonum.cxx
index 714c9da825e7..38580270355b 100644
--- a/i18npool/source/transliteration/chartonum.cxx
+++ b/i18npool/source/transliteration/chartonum.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/data/numberchar.h b/i18npool/source/transliteration/data/numberchar.h
index 73268c71a065..b71cb5dd9d0d 100644
--- a/i18npool/source/transliteration/data/numberchar.h
+++ b/i18npool/source/transliteration/data/numberchar.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,24 +30,24 @@
namespace com { namespace sun { namespace star { namespace i18n {
-static const sal_Int16 NumberChar_HalfWidth = 0;
-static const sal_Int16 NumberChar_FullWidth = 1;
-static const sal_Int16 NumberChar_Lower_zh = 2;
-static const sal_Int16 NumberChar_Upper_zh = 3;
-static const sal_Int16 NumberChar_Upper_zh_TW = 4;
-static const sal_Int16 NumberChar_Modern_ja = 5;
+static const sal_Int16 NumberChar_HalfWidth = 0;
+static const sal_Int16 NumberChar_FullWidth = 1;
+static const sal_Int16 NumberChar_Lower_zh = 2;
+static const sal_Int16 NumberChar_Upper_zh = 3;
+static const sal_Int16 NumberChar_Upper_zh_TW = 4;
+static const sal_Int16 NumberChar_Modern_ja = 5;
static const sal_Int16 NumberChar_Traditional_ja= 6;
-static const sal_Int16 NumberChar_Lower_ko = 7;
-static const sal_Int16 NumberChar_Upper_ko = 8;
-static const sal_Int16 NumberChar_Hangul_ko = 9;
-static const sal_Int16 NumberChar_Indic_ar = 10;
+static const sal_Int16 NumberChar_Lower_ko = 7;
+static const sal_Int16 NumberChar_Upper_ko = 8;
+static const sal_Int16 NumberChar_Hangul_ko = 9;
+static const sal_Int16 NumberChar_Indic_ar = 10;
static const sal_Int16 NumberChar_EastIndic_ar = 11;
-static const sal_Int16 NumberChar_Indic_hi = 12;
-static const sal_Int16 NumberChar_th = 13;
-static const sal_Int16 NumberChar_Count = 14;
+static const sal_Int16 NumberChar_Indic_hi = 12;
+static const sal_Int16 NumberChar_th = 13;
+static const sal_Int16 NumberChar_Count = 14;
static const sal_Unicode NumberChar[][10] = {
-// 0 1 2 3 4 5 6 7 8 9
+// 0 1 2 3 4 5 6 7 8 9
{ 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, 0x0038, 0x0039 }, // Half Width (Ascii)
{ 0xFF10, 0xFF11, 0xFF12, 0xFF13, 0xFF14, 0xFF15, 0xFF16, 0xFF17, 0xFF18, 0xFF19 }, // Full Width
{ 0x3007, 0x4E00, 0x4E8c, 0x4E09, 0x56DB, 0x4E94, 0x516D, 0x4E03, 0x516B, 0x4E5D }, // Chinese Lower
@@ -64,28 +64,28 @@ static const sal_Unicode NumberChar[][10] = {
{ 0x0E50, 0x0E51, 0x0E52, 0x0E53, 0x0E54, 0x0E55, 0x0E56, 0x0E57, 0x0E58, 0x0E59 } // Thai
};
-#define NUMBER_ZERO NumberChar[NumberChar_HalfWidth][0] // 0x0030
-#define NUMBER_ONE NumberChar[NumberChar_HalfWidth][1] // 0x0031
-#define NUMBER_NINE NumberChar[NumberChar_HalfWidth][9] // 0x0039
+#define NUMBER_ZERO NumberChar[NumberChar_HalfWidth][0] // 0x0030
+#define NUMBER_ONE NumberChar[NumberChar_HalfWidth][1] // 0x0031
+#define NUMBER_NINE NumberChar[NumberChar_HalfWidth][9] // 0x0039
#define NUMBER_DECIMAL DecimalChar[0]
-#define NUMBER_MINUS MinusChar[0]
-#define isNumber(n) ( NUMBER_ZERO <= n && n <= NUMBER_NINE )
-#define isDecimal(n) ( n == NUMBER_DECIMAL )
-#define isMinus(n) ( n == NUMBER_MINUS )
+#define NUMBER_MINUS MinusChar[0]
+#define isNumber(n) ( NUMBER_ZERO <= n && n <= NUMBER_NINE )
+#define isDecimal(n) ( n == NUMBER_DECIMAL )
+#define isMinus(n) ( n == NUMBER_MINUS )
-const sal_Int16 Multiplier_Lower_zh = 0;
-const sal_Int16 Multiplier_Upper_zh = 1;
-const sal_Int16 Multiplier_Lower_zh_TW = 2;
-const sal_Int16 Multiplier_Upper_zh_TW = 3;
-const sal_Int16 Multiplier_Hangul_ko = 4;
-const sal_Int16 Multiplier_Modern_ja = 5;
+const sal_Int16 Multiplier_Lower_zh = 0;
+const sal_Int16 Multiplier_Upper_zh = 1;
+const sal_Int16 Multiplier_Lower_zh_TW = 2;
+const sal_Int16 Multiplier_Upper_zh_TW = 3;
+const sal_Int16 Multiplier_Hangul_ko = 4;
+const sal_Int16 Multiplier_Modern_ja = 5;
const sal_Int16 Multiplier_Traditional_ja = 6;
-const sal_Int16 Multiplier_Count = 7;
+const sal_Int16 Multiplier_Count = 7;
-const sal_Int16 ExponentCount_CJK = 6;
+const sal_Int16 ExponentCount_CJK = 6;
-const sal_Int16 ExponentCount_short_CJK = 2;
+const sal_Int16 ExponentCount_short_CJK = 2;
} } } }
diff --git a/i18npool/source/transliteration/fullwidthToHalfwidth.cxx b/i18npool/source/transliteration/fullwidthToHalfwidth.cxx
index c7c2fa74e9d6..9169e0682150 100644
--- a/i18npool/source/transliteration/fullwidthToHalfwidth.cxx
+++ b/i18npool/source/transliteration/fullwidthToHalfwidth.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ fullwidthToHalfwidth::fullwidthToHalfwidth()
* The output is a reference of OUString. You MUST delete this object when you do not need to use it any more
* The output string contains a transliterated string only, not whole string.
*/
-OUString SAL_CALL
+OUString SAL_CALL
fullwidthToHalfwidth::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
@@ -71,7 +71,7 @@ fullwidthToHalfwidth::transliterate( const OUString& inStr, sal_Int32 startPos,
return tmp;
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
fullwidthToHalfwidth::transliterateChar2Char( sal_Unicode inChar)
throw(RuntimeException, MultipleCharsOutputException)
{
@@ -92,7 +92,7 @@ fullwidthKatakanaToHalfwidthKatakana::fullwidthKatakanaToHalfwidthKatakana()
/**
* Transliterate fullwidth katakana to halfwidth katakana.
*/
-OUString SAL_CALL
+OUString SAL_CALL
fullwidthKatakanaToHalfwidthKatakana::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
@@ -106,7 +106,7 @@ fullwidthKatakanaToHalfwidthKatakana::transliterate( const OUString& inStr, sal_
return tmp;
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
fullwidthKatakanaToHalfwidthKatakana::transliterateChar2Char( sal_Unicode inChar )
throw(RuntimeException, MultipleCharsOutputException)
{
@@ -127,7 +127,7 @@ fullwidthToHalfwidthLikeASC::fullwidthToHalfwidthLikeASC()
/**
* Transliterate fullwidth to halfwidth like Excel's ASC function.
*/
-OUString SAL_CALL
+OUString SAL_CALL
fullwidthToHalfwidthLikeASC::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
@@ -142,7 +142,7 @@ fullwidthToHalfwidthLikeASC::transliterate( const OUString& inStr, sal_Int32 sta
return tmp;
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
fullwidthToHalfwidthLikeASC::transliterateChar2Char( sal_Unicode inChar )
throw(RuntimeException, MultipleCharsOutputException)
{
diff --git a/i18npool/source/transliteration/halfwidthToFullwidth.cxx b/i18npool/source/transliteration/halfwidthToFullwidth.cxx
index 8709ce01c723..d8a3c711b190 100644
--- a/i18npool/source/transliteration/halfwidthToFullwidth.cxx
+++ b/i18npool/source/transliteration/halfwidthToFullwidth.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ halfwidthToFullwidth::halfwidthToFullwidth()
implementationName = "com.sun.star.i18n.Transliteration.HALFWIDTH_FULLWIDTH";
}
-OUString SAL_CALL
+OUString SAL_CALL
halfwidthToFullwidth::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
@@ -66,7 +66,7 @@ halfwidthToFullwidth::transliterate( const OUString& inStr, sal_Int32 startPos,
return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset );
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
halfwidthToFullwidth::transliterateChar2Char( sal_Unicode inChar)
throw(RuntimeException, MultipleCharsOutputException)
{
@@ -82,7 +82,7 @@ halfwidthKatakanaToFullwidthKatakana::halfwidthKatakanaToFullwidthKatakana()
implementationName = "com.sun.star.i18n.Transliteration.HALFWIDTHKATAKANA_FULLWIDTHKATAKANA";
}
-OUString SAL_CALL
+OUString SAL_CALL
halfwidthKatakanaToFullwidthKatakana::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
@@ -96,7 +96,7 @@ halfwidthKatakanaToFullwidthKatakana::transliterate( const OUString& inStr, sal_
return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset );
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
halfwidthKatakanaToFullwidthKatakana::transliterateChar2Char( sal_Unicode inChar)
throw(RuntimeException, MultipleCharsOutputException)
{
@@ -112,7 +112,7 @@ halfwidthToFullwidthLikeJIS::halfwidthToFullwidthLikeJIS()
implementationName = "com.sun.star.i18n.Transliteration.HALFWIDTH_FULLWIDTH_LIKE_JIS";
}
-OUString SAL_CALL
+OUString SAL_CALL
halfwidthToFullwidthLikeJIS::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
@@ -126,7 +126,7 @@ halfwidthToFullwidthLikeJIS::transliterate( const OUString& inStr, sal_Int32 sta
return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset, WIDTHFOLDNIG_DONT_USE_COMBINED_VU );
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
halfwidthToFullwidthLikeJIS::transliterateChar2Char( sal_Unicode inChar)
throw(RuntimeException, MultipleCharsOutputException)
{
diff --git a/i18npool/source/transliteration/hiraganaToKatakana.cxx b/i18npool/source/transliteration/hiraganaToKatakana.cxx
index 3dcba485a452..d1461297fffb 100644
--- a/i18npool/source/transliteration/hiraganaToKatakana.cxx
+++ b/i18npool/source/transliteration/hiraganaToKatakana.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx b/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx
index 818701f89c69..77cd1fadedc6 100644
--- a/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx b/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx
index 87ec53cc0f35..bdc8b714288b 100644
--- a/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx b/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx
index 7789c0e021f5..7327efa60239 100644
--- a/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ using namespace rtl;
namespace com { namespace sun { namespace star { namespace i18n {
-OneToOneMappingTable_t IandE[] = {
+OneToOneMappingTable_t IandE[] = {
MAKE_PAIR( 0x30A3, 0x0000 ), // KATAKANA LETTER SMALL I
MAKE_PAIR( 0x30A4, 0x0000 ), // KATAKANA LETTER I
MAKE_PAIR( 0x30A7, 0x0000 ), // KATAKANA LETTER SMALL E
@@ -81,13 +81,13 @@ OneToOneMappingTable_t IandE[] = {
-OUString SAL_CALL
+OUString SAL_CALL
ignoreIandEfollowedByYa_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
// Create a string buffer which can hold nCount + 1 characters.
// The reference count is 0 now.
- rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
+ rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
sal_Unicode * dst = newStr->buffer;
const sal_Unicode * src = inStr.getStr() + startPos;
@@ -100,7 +100,7 @@ ignoreIandEfollowedByYa_ja_JP::folding( const OUString& inStr, sal_Int32 startPo
position = startPos;
}
- //
+ //
sal_Unicode previousChar = *src ++;
sal_Unicode currentChar;
diff --git a/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx b/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx
index a424d9c2f4ae..3228af2710fc 100644
--- a/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,7 +94,7 @@ OneToOneMappingTable_t ignoreIterationMark_ja_JP_mappingTable[] = {
};
-OUString SAL_CALL
+OUString SAL_CALL
ignoreIterationMark_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
@@ -102,7 +102,7 @@ ignoreIterationMark_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, s
// Create a string buffer which can hold nCount + 1 characters.
// The reference count is 0 now.
- rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
+ rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
sal_Unicode * dst = newStr->buffer;
const sal_Unicode * src = inStr.getStr() + startPos;
@@ -115,7 +115,7 @@ ignoreIterationMark_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, s
position = startPos;
}
- //
+ //
sal_Unicode previousChar = *src ++;
sal_Unicode currentChar;
diff --git a/i18npool/source/transliteration/ignoreKana.cxx b/i18npool/source/transliteration/ignoreKana.cxx
index c95592b45fea..d627e659ba2c 100644
--- a/i18npool/source/transliteration/ignoreKana.cxx
+++ b/i18npool/source/transliteration/ignoreKana.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx b/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx
index 30f797f62e19..74cb499b7d8d 100644
--- a/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,13 +41,13 @@ using namespace rtl;
namespace com { namespace sun { namespace star { namespace i18n {
-OUString SAL_CALL
+OUString SAL_CALL
ignoreKiKuFollowedBySa_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
// Create a string buffer which can hold nCount + 1 characters.
// The reference count is 0 now.
- rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
+ rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
sal_Unicode * dst = newStr->buffer;
const sal_Unicode * src = inStr.getStr() + startPos;
@@ -60,7 +60,7 @@ ignoreKiKuFollowedBySa_ja_JP::folding( const OUString& inStr, sal_Int32 startPos
position = startPos;
}
- //
+ //
sal_Unicode previousChar = *src ++;
sal_Unicode currentChar;
diff --git a/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx b/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx
index a8f16647aed8..32a22790fc9c 100644
--- a/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
-sal_Unicode
+sal_Unicode
ignoreMiddleDot_ja_JP_translator (const sal_Unicode c)
{
switch (c) {
diff --git a/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx b/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx
index 730e111f469c..503f0b77e468 100644
--- a/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
-sal_Unicode
+sal_Unicode
ignoreMinusSign_ja_JP_translator (const sal_Unicode c)
{
switch (c) {
diff --git a/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx b/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx
index 12b5ef9b2ff1..be9ff9bc6c5a 100644
--- a/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -233,7 +233,7 @@ static sal_Unicode table_normalwidth[] = {
// 0x0000, // 0x30fc KATAKANA-HIRAGANA PROLONGED SOUND MARK
// 0x0000, // 0x30fd KATAKANA ITERATION MARK
// 0x0000, // 0x30fe KATAKANA VOICED ITERATION MARK
- // 0x0000 // 0x30ff
+ // 0x0000 // 0x30ff
};
static sal_Unicode table_halfwidth[] = {
@@ -303,13 +303,13 @@ static sal_Unicode table_halfwidth[] = {
};
-OUString SAL_CALL
+OUString SAL_CALL
ignoreProlongedSoundMark_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
// Create a string buffer which can hold nCount + 1 characters.
// The reference count is 0 now.
- rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
+ rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
sal_Unicode * dst = newStr->buffer;
const sal_Unicode * src = inStr.getStr() + startPos;
@@ -323,7 +323,7 @@ ignoreProlongedSoundMark_ja_JP::folding( const OUString& inStr, sal_Int32 startP
position = startPos;
}
- //
+ //
sal_Unicode previousChar = *src ++;
sal_Unicode currentChar;
diff --git a/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx b/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx
index 09a514140dbf..27e4fa4188df 100644
--- a/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx b/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx
index 3534cd1aa3d0..e80b75059e17 100644
--- a/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
-OneToOneMappingTable_t ignoreSeparatorTable[] = {
+OneToOneMappingTable_t ignoreSeparatorTable[] = {
MAKE_PAIR( 0x0021, 0xFFFF ), // EXCLAMATION MARK
MAKE_PAIR( 0x0023, 0xFFFF ), // NUMBER SIGN
MAKE_PAIR( 0x0024, 0xFFFF ), // DOLLAR SIGN
@@ -85,7 +85,7 @@ OneToOneMappingTable_t ignoreSeparatorTable[] = {
MAKE_PAIR( 0x301D, 0xFFFF ), // REVERSED DOUBLE PRIME
MAKE_PAIR( 0x301E, 0xFFFF ), // DOUBLE PRIME QUOTATION MARK
MAKE_PAIR( 0x301F, 0xFFFF ), // LOW DOUBLE PRIME QUOTATION MARK
- MAKE_PAIR( 0x3030, 0xFFFF ), // WAVY DASH
+ MAKE_PAIR( 0x3030, 0xFFFF ), // WAVY DASH
MAKE_PAIR( 0x30FB, 0xFFFF ), // KATAKANA MIDDLE DOT
MAKE_PAIR( 0x30FC, 0xFFFF ), // KATAKANA-HIRAHANA PROLONGED SOUND MARK
MAKE_PAIR( 0xFF01, 0xFFFF ), // FULLWIDTH EXCLAMATION MARK
diff --git a/i18npool/source/transliteration/ignoreSize_ja_JP.cxx b/i18npool/source/transliteration/ignoreSize_ja_JP.cxx
index 07e15cdd4302..d72f03ffeed6 100644
--- a/i18npool/source/transliteration/ignoreSize_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreSize_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ using namespace rtl;
namespace com { namespace sun { namespace star { namespace i18n {
-OUString SAL_CALL
+OUString SAL_CALL
ignoreSize_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
@@ -53,7 +53,7 @@ ignoreSize_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32
}
-Sequence< OUString > SAL_CALL
+Sequence< OUString > SAL_CALL
ignoreSize_ja_JP::transliterateRange( const OUString& str1, const OUString& str2 )
throw(RuntimeException)
{
diff --git a/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx b/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx
index daffa27a0f1c..471066395be5 100644
--- a/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx b/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx
index 19d62ab52b3a..449568f6a8f2 100644
--- a/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx b/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx
index 3bf328d688e0..fe6edbb382c2 100644
--- a/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
-sal_Unicode
+sal_Unicode
ignoreTraditionalKana_ja_JP_translator (const sal_Unicode c)
{
diff --git a/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx b/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx
index 2bd2e7cd6ea7..677de601f9c7 100644
--- a/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreWidth.cxx b/i18npool/source/transliteration/ignoreWidth.cxx
index deca2164584f..cf75e444ad97 100644
--- a/i18npool/source/transliteration/ignoreWidth.cxx
+++ b/i18npool/source/transliteration/ignoreWidth.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx b/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx
index 5b833041478d..b96b3db2a734 100644
--- a/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx
+++ b/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
namespace com { namespace sun { namespace star { namespace i18n {
-sal_Unicode
+sal_Unicode
ignoreZiZu_ja_JP_translator (const sal_Unicode c)
{
diff --git a/i18npool/source/transliteration/katakanaToHiragana.cxx b/i18npool/source/transliteration/katakanaToHiragana.cxx
index 9dbbc8eed6b3..01325655d93f 100644
--- a/i18npool/source/transliteration/katakanaToHiragana.cxx
+++ b/i18npool/source/transliteration/katakanaToHiragana.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/largeToSmall_ja_JP.cxx b/i18npool/source/transliteration/largeToSmall_ja_JP.cxx
index b2c86f1cb043..ccc64cb583f4 100644
--- a/i18npool/source/transliteration/largeToSmall_ja_JP.cxx
+++ b/i18npool/source/transliteration/largeToSmall_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,9 +46,9 @@ namespace com { namespace sun { namespace star { namespace i18n {
// ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.html
// http://charts.unicode.org/Web/U3040.html Hiragana (U+3040..U+309F)
// http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF)
-// http://charts.unicode.org/Web/UFF00.html
+// http://charts.unicode.org/Web/UFF00.html
-OneToOneMappingTable_t large2small[] = {
+OneToOneMappingTable_t large2small[] = {
MAKE_PAIR( 0x3041, 0x3042 ), // HIRAGANA LETTER SMALL A --> HIRAGANA LETTER A
MAKE_PAIR( 0x3043, 0x3044 ), // HIRAGANA LETTER SMALL I --> HIRAGANA LETTER I
MAKE_PAIR( 0x3045, 0x3046 ), // HIRAGANA LETTER SMALL U --> HIRAGANA LETTER U
diff --git a/i18npool/source/transliteration/numtochar.cxx b/i18npool/source/transliteration/numtochar.cxx
index 5772ac0de763..d8ca51e5dae2 100644
--- a/i18npool/source/transliteration/numtochar.cxx
+++ b/i18npool/source/transliteration/numtochar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/numtotext_cjk.cxx b/i18npool/source/transliteration/numtotext_cjk.cxx
index 06965b1835f7..fab5478efffb 100644
--- a/i18npool/source/transliteration/numtotext_cjk.cxx
+++ b/i18npool/source/transliteration/numtotext_cjk.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/smallToLarge_ja_JP.cxx b/i18npool/source/transliteration/smallToLarge_ja_JP.cxx
index ba6735c8db2c..6c4da6a3aa2c 100644
--- a/i18npool/source/transliteration/smallToLarge_ja_JP.cxx
+++ b/i18npool/source/transliteration/smallToLarge_ja_JP.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,9 +46,9 @@ namespace com { namespace sun { namespace star { namespace i18n {
// ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.html
// http://charts.unicode.org/Web/U3040.html Hiragana (U+3040..U+309F)
// http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF)
-// http://charts.unicode.org/Web/UFF00.html
+// http://charts.unicode.org/Web/UFF00.html
-OneToOneMappingTable_t small2large[] = {
+OneToOneMappingTable_t small2large[] = {
MAKE_PAIR( 0x3041, 0x3042 ), // HIRAGANA LETTER SMALL A --> HIRAGANA LETTER A
MAKE_PAIR( 0x3043, 0x3044 ), // HIRAGANA LETTER SMALL I --> HIRAGANA LETTER I
MAKE_PAIR( 0x3045, 0x3046 ), // HIRAGANA LETTER SMALL U --> HIRAGANA LETTER U
diff --git a/i18npool/source/transliteration/textToPronounce_zh.cxx b/i18npool/source/transliteration/textToPronounce_zh.cxx
index 8444f4dd79d8..3f68df5c2518 100644
--- a/i18npool/source/transliteration/textToPronounce_zh.cxx
+++ b/i18npool/source/transliteration/textToPronounce_zh.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,7 +103,7 @@ TextToPronounce_zh::transliterateChar2Char( sal_Unicode inChar) throw(RuntimeExc
sal_Bool SAL_CALL
TextToPronounce_zh::equals( const OUString & str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32 & nMatch1,
const OUString & str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32 & nMatch2)
- throw (RuntimeException)
+ throw (RuntimeException)
{
sal_Int32 realCount;
int i; // loop variable
diff --git a/i18npool/source/transliteration/texttonum.cxx b/i18npool/source/transliteration/texttonum.cxx
index 6dfdfbd0ccf3..cbf22c42567a 100644
--- a/i18npool/source/transliteration/texttonum.cxx
+++ b/i18npool/source/transliteration/texttonum.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx
index 2209ef9eb68b..3e1456628b90 100644
--- a/i18npool/source/transliteration/transliterationImpl.cxx
+++ b/i18npool/source/transliteration/transliterationImpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -205,7 +205,7 @@ TransliterationImpl::loadModule( TransliterationModules modType, const Locale& r
#define TransliterationModules_IGNORE_CASE_MASK (TransliterationModules_IGNORE_CASE | \
TransliterationModules_IGNORE_WIDTH | \
TransliterationModules_IGNORE_KANA)
- sal_Int32 mask = ((modType&TransliterationModules_IGNORE_CASE_MASK) == modType) ?
+ sal_Int32 mask = ((modType&TransliterationModules_IGNORE_CASE_MASK) == modType) ?
TransliterationModules_IGNORE_CASE_MASK : TransliterationModules_IGNORE_MASK;
for (sal_Int16 i = 0; TMlist[i].tm & mask; i++) {
if (modType & TMlist[i].tm)
@@ -236,9 +236,9 @@ TransliterationImpl::loadModuleNew( const Sequence < TransliterationModulesNew >
for (sal_Int16 j = 0; TMlist[j].tmn; j++) {
if (TMlist[j].tmn == modType[i]) {
if (mask == 0)
- mask = TMlist[i].tm && (TMlist[i].tm&TransliterationModules_IGNORE_MASK) ?
+ mask = TMlist[i].tm && (TMlist[i].tm&TransliterationModules_IGNORE_MASK) ?
TransliterationModules_IGNORE_MASK : TransliterationModules_NON_IGNORE_MASK;
- else if (mask == TransliterationModules_IGNORE_MASK &&
+ else if (mask == TransliterationModules_IGNORE_MASK &&
(TMlist[i].tm&TransliterationModules_IGNORE_MASK) == 0)
throw ERROR; // could not mess up ignore trans. with non_ignore trans.
if (loadModuleByName(OUString::createFromAscii(TMlist[j].implName), bodyCascade[numCascade], rLocale))
@@ -293,7 +293,7 @@ TransliterationImpl::getAvailableModules( const Locale& rLocale, sal_Int16 sType
OUString SAL_CALL
-TransliterationImpl::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
+TransliterationImpl::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& offset ) throw(RuntimeException)
{
if (numCascade == 0)
@@ -478,7 +478,7 @@ TransliterationImpl::equals(
const sal_Unicode *p1 = tmpStr1.getStr();
const sal_Unicode *p2 = tmpStr2.getStr();
- sal_Int32 i, nLen = (tmpStr1.getLength() < tmpStr1.getLength() ?
+ sal_Int32 i, nLen = (tmpStr1.getLength() < tmpStr1.getLength() ?
tmpStr1.getLength() : tmpStr2.getLength());
for (i = 0; i < nLen; ++i, ++p1, ++p2 ) {
if (*p1 != *p2) {
@@ -489,7 +489,7 @@ TransliterationImpl::equals(
}
}
// i==nLen
- if ( tmpStr1.getLength() != tmpStr2.getLength() ) {
+ if ( tmpStr1.getLength() != tmpStr2.getLength() ) {
// return number of matched code points so far
nMatch1 = offset1[i-1] + 1;
nMatch2 = offset2[i-1] + 1;
@@ -590,7 +590,7 @@ TransliterationImpl::clear()
caseignoreOnly = sal_True;
}
-void TransliterationImpl::loadBody( OUString &implName, Reference<XExtendedTransliteration>& body )
+void TransliterationImpl::loadBody( OUString &implName, Reference<XExtendedTransliteration>& body )
throw (RuntimeException)
{
::osl::MutexGuard guard(lastTransBody.mutex);
@@ -631,7 +631,7 @@ void TransliterationImpl::loadBody( OUString &implName, Reference<XExtendedTrans
}
sal_Bool SAL_CALL
-TransliterationImpl::loadModuleByName( const OUString& implName,
+TransliterationImpl::loadModuleByName( const OUString& implName,
Reference<XExtendedTransliteration>& body, const Locale& rLocale) throw(RuntimeException)
{
OUString cname = OUString::createFromAscii(TRLT_IMPLNAME_PREFIX) + implName;
diff --git a/i18npool/source/transliteration/transliteration_Ignore.cxx b/i18npool/source/transliteration/transliteration_Ignore.cxx
index 253979a804cf..070cd1072c2f 100644
--- a/i18npool/source/transliteration/transliteration_Ignore.cxx
+++ b/i18npool/source/transliteration/transliteration_Ignore.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -104,7 +104,7 @@ transliteration_Ignore::transliterate( const OUString& inStr, sal_Int32 startPos
}
Sequence< OUString > SAL_CALL
-transliteration_Ignore::transliterateRange( const OUString& str1, const OUString& str2,
+transliteration_Ignore::transliterateRange( const OUString& str1, const OUString& str2,
XTransliteration& t1, XTransliteration& t2 ) throw(RuntimeException)
{
if (str1.getLength() < 1 || str2.getLength() < 1)
@@ -131,14 +131,14 @@ transliteration_Ignore::transliterateRange( const OUString& str1, const OUString
return r;
}
-OUString SAL_CALL
-transliteration_Ignore::folding( const OUString& inStr, sal_Int32 startPos,
- sal_Int32 nCount, Sequence< sal_Int32 >& offset)
+OUString SAL_CALL
+transliteration_Ignore::folding( const OUString& inStr, sal_Int32 startPos,
+ sal_Int32 nCount, Sequence< sal_Int32 >& offset)
throw(RuntimeException)
{
// Create a string buffer which can hold nCount + 1 characters.
// The reference count is 0 now.
- rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
+ rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
sal_Unicode * dst = newStr->buffer;
const sal_Unicode * src = inStr.getStr() + startPos;
@@ -212,7 +212,7 @@ transliteration_Ignore::folding( const OUString& inStr, sal_Int32 startPos,
return OUString( newStr ); // defined in rtl/usrting. The reference count is increased from 0 to 1.
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
transliteration_Ignore::transliterateChar2Char( sal_Unicode inChar) throw(RuntimeException, MultipleCharsOutputException)
{
return func ? func( inChar) : table ? (*table)[ inChar ] : inChar;
diff --git a/i18npool/source/transliteration/transliteration_Numeric.cxx b/i18npool/source/transliteration/transliteration_Numeric.cxx
index ead3335d7bf1..294e73581857 100644
--- a/i18npool/source/transliteration/transliteration_Numeric.cxx
+++ b/i18npool/source/transliteration/transliteration_Numeric.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ transliteration_Numeric::equals( const OUString& /*str1*/, sal_Int32 /*pos1*/, s
throw (new RuntimeException());
}
-Sequence< OUString > SAL_CALL
+Sequence< OUString > SAL_CALL
transliteration_Numeric::transliterateRange( const OUString& /*str1*/, const OUString& /*str2*/ )
throw(RuntimeException)
{
@@ -68,7 +68,7 @@ transliteration_Numeric::transliterateRange( const OUString& /*str1*/, const OUS
#define isNumber(c) ((c) >= 0x30 && (c) <= 0x39)
#define NUMBER_ZERO 0x30
-OUString SAL_CALL
+OUString SAL_CALL
transliteration_Numeric::transliterateBullet( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& offset ) throw(RuntimeException)
{
@@ -122,7 +122,7 @@ transliteration_Numeric::transliterateBullet( const OUString& inStr, sal_Int32 s
return OUString( pStr, SAL_NO_ACQUIRE );
}
-OUString SAL_CALL
+OUString SAL_CALL
transliteration_Numeric::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& offset ) throw(RuntimeException)
{
@@ -132,7 +132,7 @@ transliteration_Numeric::transliterate( const OUString& inStr, sal_Int32 startPo
return NativeNumberSupplier(useOffset).getNativeNumberString( inStr.copy(startPos, nCount), aLocale, nNativeNumberMode, offset );
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
transliteration_Numeric::transliterateChar2Char( sal_Unicode inChar ) throw(RuntimeException, MultipleCharsOutputException)
{
if (tableSize) {
diff --git a/i18npool/source/transliteration/transliteration_OneToOne.cxx b/i18npool/source/transliteration/transliteration_OneToOne.cxx
index 76292fc3834e..68709d3aef68 100644
--- a/i18npool/source/transliteration/transliteration_OneToOne.cxx
+++ b/i18npool/source/transliteration/transliteration_OneToOne.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,35 +46,35 @@ sal_Int16 SAL_CALL transliteration_OneToOne::getType() throw(RuntimeException)
}
OUString SAL_CALL
-transliteration_OneToOne::folding( const OUString& /*inStr*/, sal_Int32 /*startPos*/,
+transliteration_OneToOne::folding( const OUString& /*inStr*/, sal_Int32 /*startPos*/,
sal_Int32 /*nCount*/, Sequence< sal_Int32 >& /*offset*/) throw(RuntimeException)
{
throw RuntimeException();
}
sal_Bool SAL_CALL
-transliteration_OneToOne::equals( const OUString& /*str1*/, sal_Int32 /*pos1*/, sal_Int32 /*nCount1*/,
+transliteration_OneToOne::equals( const OUString& /*str1*/, sal_Int32 /*pos1*/, sal_Int32 /*nCount1*/,
sal_Int32& /*nMatch1*/, const OUString& /*str2*/, sal_Int32 /*pos2*/, sal_Int32 /*nCount2*/, sal_Int32& /*nMatch2*/ )
throw(RuntimeException)
{
throw RuntimeException();
}
-Sequence< OUString > SAL_CALL
-transliteration_OneToOne::transliterateRange( const OUString& /*str1*/, const OUString& /*str2*/ )
+Sequence< OUString > SAL_CALL
+transliteration_OneToOne::transliterateRange( const OUString& /*str1*/, const OUString& /*str2*/ )
throw(RuntimeException)
{
throw RuntimeException();
}
-OUString SAL_CALL
-transliteration_OneToOne::transliterate( const OUString& inStr, sal_Int32 startPos,
- sal_Int32 nCount, Sequence< sal_Int32 >& offset)
+OUString SAL_CALL
+transliteration_OneToOne::transliterate( const OUString& inStr, sal_Int32 startPos,
+ sal_Int32 nCount, Sequence< sal_Int32 >& offset)
throw(RuntimeException)
{
// Create a string buffer which can hold nCount + 1 characters.
// The reference count is 0 now.
- rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
+ rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
sal_Unicode * dst = newStr->buffer;
const sal_Unicode * src = inStr.getStr() + startPos;
@@ -99,7 +99,7 @@ transliteration_OneToOne::transliterate( const OUString& inStr, sal_Int32 startP
return OUString( newStr ); // defined in rtl/usrting. The reference count is increased from 0 to 1.
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
transliteration_OneToOne::transliterateChar2Char( sal_Unicode inChar) throw(RuntimeException, MultipleCharsOutputException)
{
return func ? func( inChar) : (*table)[ inChar ];
diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx
index 27c66866eb9d..491932d114b0 100644
--- a/i18npool/source/transliteration/transliteration_body.cxx
+++ b/i18npool/source/transliteration/transliteration_body.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,8 +73,8 @@ sal_Bool SAL_CALL Transliteration_body::equals(
throw RuntimeException();
}
-Sequence< OUString > SAL_CALL
-Transliteration_body::transliterateRange( const OUString& str1, const OUString& str2 )
+Sequence< OUString > SAL_CALL
+Transliteration_body::transliterateRange( const OUString& str1, const OUString& str2 )
throw( RuntimeException)
{
Sequence< OUString > ostr(2);
@@ -96,7 +96,7 @@ static sal_uInt8 lcl_getMappingTypeForToggleCase( sal_uInt8 nMappingType, sal_Un
const sal_Int16 nType = unicode::getUnicodeType( cChar );
if (nType & 0x02 /* lower case*/)
nRes = MappingTypeLowerToUpper;
- else
+ else
{
// should also work properly for non-upper characters like white spacs, numbers, ...
nRes = MappingTypeUpperToLower;
@@ -107,10 +107,10 @@ static sal_uInt8 lcl_getMappingTypeForToggleCase( sal_uInt8 nMappingType, sal_Un
}
-OUString SAL_CALL
-Transliteration_body::transliterate(
- const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
- Sequence< sal_Int32 >& offset)
+OUString SAL_CALL
+Transliteration_body::transliterate(
+ const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
+ Sequence< sal_Int32 >& offset)
throw(RuntimeException)
{
@@ -197,7 +197,7 @@ Transliteration_body::transliterate(
}
}
-OUString SAL_CALL
+OUString SAL_CALL
Transliteration_body::transliterateChar2String( sal_Unicode inChar ) throw(RuntimeException)
{
const Mapping &map = casefolding::getValue(&inChar, 0, 1, aLocale, nMappingType);
@@ -212,7 +212,7 @@ Transliteration_body::transliterateChar2String( sal_Unicode inChar ) throw(Runti
return OUString( pStr, SAL_NO_ACQUIRE );
}
-sal_Unicode SAL_CALL
+sal_Unicode SAL_CALL
Transliteration_body::transliterateChar2Char( sal_Unicode inChar ) throw(MultipleCharsOutputException, RuntimeException)
{
const Mapping &map = casefolding::getValue(&inChar, 0, 1, aLocale, nMappingType);
@@ -222,7 +222,7 @@ Transliteration_body::transliterateChar2Char( sal_Unicode inChar ) throw(Multipl
}
OUString SAL_CALL
-Transliteration_body::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
+Transliteration_body::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& offset) throw(RuntimeException)
{
return this->transliterate(inStr, startPos, nCount, offset);
@@ -275,9 +275,9 @@ Transliteration_titlecase::Transliteration_titlecase()
}
static rtl::OUString transliterate_titlecase_Impl(
- const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
+ const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
const Locale &rLocale,
- Sequence< sal_Int32 >& offset )
+ Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
const OUString aText( inStr.copy( startPos, nCount ) );
@@ -288,7 +288,7 @@ static rtl::OUString transliterate_titlecase_Impl(
Reference< XMultiServiceFactory > xMSF = ::comphelper::getProcessServiceFactory();
CharacterClassificationImpl aCharClassImpl( xMSF );
- // because aCharClassImpl.toTitle does not handle ligatures or ß but will raise
+ // because aCharClassImpl.toTitle does not handle ligatures or ß but will raise
// an exception we need to handle the first chara manually...
// we don't want to change surrogates by accident, thuse we use proper code point iteration
@@ -329,9 +329,9 @@ static rtl::OUString transliterate_titlecase_Impl(
// this function expects to be called on a word-by-word basis,
// namely that startPos points to the first char of the word
-rtl::OUString SAL_CALL Transliteration_titlecase::transliterate(
- const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
- Sequence< sal_Int32 >& offset )
+rtl::OUString SAL_CALL Transliteration_titlecase::transliterate(
+ const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
+ Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
return transliterate_titlecase_Impl( inStr, startPos, nCount, aLocale, offset );
@@ -348,8 +348,8 @@ Transliteration_sentencecase::Transliteration_sentencecase()
// this function expects to be called on a sentence-by-sentence basis,
// namely that startPos points to the first word (NOT first char!) in the sentence
-rtl::OUString SAL_CALL Transliteration_sentencecase::transliterate(
- const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
+rtl::OUString SAL_CALL Transliteration_sentencecase::transliterate(
+ const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount,
Sequence< sal_Int32 >& offset )
throw(RuntimeException)
{
diff --git a/i18npool/source/transliteration/transliteration_caseignore.cxx b/i18npool/source/transliteration/transliteration_caseignore.cxx
index 3d2432c617f6..29e3364e33da 100644
--- a/i18npool/source/transliteration/transliteration_caseignore.cxx
+++ b/i18npool/source/transliteration/transliteration_caseignore.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ Transliteration_caseignore::Transliteration_caseignore()
implementationName = "com.sun.star.i18n.Transliteration.Transliteration_caseignore";
}
-void SAL_CALL
+void SAL_CALL
Transliteration_caseignore::loadModule( TransliterationModules modName, const Locale& rLocale )
throw(RuntimeException)
{
@@ -66,7 +66,7 @@ sal_Int16 SAL_CALL Transliteration_caseignore::getType() throw(RuntimeException)
Sequence< OUString > SAL_CALL
-Transliteration_caseignore::transliterateRange( const OUString& str1, const OUString& str2 )
+Transliteration_caseignore::transliterateRange( const OUString& str1, const OUString& str2 )
throw( RuntimeException)
{
if (str1.getLength() != 1 || str2.getLength() != 1)
diff --git a/i18npool/source/transliteration/transliteration_commonclass.cxx b/i18npool/source/transliteration/transliteration_commonclass.cxx
index e9b75bfcffa4..4dd5cf452f0a 100644
--- a/i18npool/source/transliteration/transliteration_commonclass.cxx
+++ b/i18npool/source/transliteration/transliteration_commonclass.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ void SAL_CALL transliteration_commonclass::loadModule( TransliterationModules /*
}
-void SAL_CALL
+void SAL_CALL
transliteration_commonclass::loadModuleNew( const Sequence < TransliterationModulesNew >& /*modName*/, const Locale& /*rLocale*/ )
throw(RuntimeException)
{
@@ -72,14 +72,14 @@ transliteration_commonclass::loadModuleByImplName( const OUString& /*implName*/,
throw RuntimeException();
}
-void SAL_CALL
+void SAL_CALL
transliteration_commonclass::loadModulesByImplNames(const Sequence< OUString >& /*modNamelist*/, const Locale& /*rLocale*/)
throw(RuntimeException)
{
throw RuntimeException();
}
-Sequence< OUString > SAL_CALL
+Sequence< OUString > SAL_CALL
transliteration_commonclass::getAvailableModules( const Locale& /*rLocale*/, sal_Int16 /*sType*/ )
throw(RuntimeException)
{
diff --git a/i18npool/xml/ChapterCollator.xml b/i18npool/xml/ChapterCollator.xml
index 72558999da49..8d07265c0b05 100644
--- a/i18npool/xml/ChapterCollator.xml
+++ b/i18npool/xml/ChapterCollator.xml
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module-description PUBLIC "-//StarOffice//DTD ComponentDescription 1.0//EN" "module-description.dtd">
<module-description xmlns:xlink="http://www.w3.org/1999/xlink">
- <module-name> i18n </module-name>
+ <module-name> i18n </module-name>
<component-description>
- <author> Bustamam Harun </author>
- <name> com.sun.star.i18n.ChapterCollator </name>
+ <author> Bustamam Harun </author>
+ <name> com.sun.star.i18n.ChapterCollator </name>
<description>
This component provides localized collation algorithm
</description>
- <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
- <language> C++ </language>
+ <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
+ <language> C++ </language>
<status value="final"/>
- <supported-service> com.sun.star.i18n.ChapterCollator </supported-service>
+ <supported-service> com.sun.star.i18n.ChapterCollator </supported-service>
<reference-docu xlink:href="file:///docs/sampledoc.html" xlink:type="simple"/>
- <type> com.sun.star.lang.XMultiServiceFactory </type>
- <type> com.sun.star.uno.Reference </type>
- <type> com.sun.star.i18n.XLocaleData </type>
- <type> com.sun.star.i18n.XCollator </type>
+ <type> com.sun.star.lang.XMultiServiceFactory </type>
+ <type> com.sun.star.uno.Reference </type>
+ <type> com.sun.star.i18n.XLocaleData </type>
+ <type> com.sun.star.i18n.XCollator </type>
</component-description>
- <project-build-dependency> cppuhelper </project-build-dependency>
- <project-build-dependency> cppu </project-build-dependency>
- <project-build-dependency> registry </project-build-dependency>
- <project-build-dependency> store </project-build-dependency>
- <project-build-dependency> sal </project-build-dependency>
- <project-build-dependency> unotools </project-build-dependency>
- <runtime-module-dependency> cppuhelper </runtime-module-dependency>
- <runtime-module-dependency> cppu </runtime-module-dependency>
- <runtime-module-dependency> reg </runtime-module-dependency>
- <runtime-module-dependency> store </runtime-module-dependency>
- <runtime-module-dependency> sal </runtime-module-dependency>
- <runtime-module-dependency> unotools </runtime-module-dependency>
+ <project-build-dependency> cppuhelper </project-build-dependency>
+ <project-build-dependency> cppu </project-build-dependency>
+ <project-build-dependency> registry </project-build-dependency>
+ <project-build-dependency> store </project-build-dependency>
+ <project-build-dependency> sal </project-build-dependency>
+ <project-build-dependency> unotools </project-build-dependency>
+ <runtime-module-dependency> cppuhelper </runtime-module-dependency>
+ <runtime-module-dependency> cppu </runtime-module-dependency>
+ <runtime-module-dependency> reg </runtime-module-dependency>
+ <runtime-module-dependency> store </runtime-module-dependency>
+ <runtime-module-dependency> sal </runtime-module-dependency>
+ <runtime-module-dependency> unotools </runtime-module-dependency>
</module-description>
diff --git a/i18npool/xml/Collator.xml b/i18npool/xml/Collator.xml
index 6940c0785b0a..5c2f9966c820 100644
--- a/i18npool/xml/Collator.xml
+++ b/i18npool/xml/Collator.xml
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module-description PUBLIC "-//StarOffice//DTD ComponentDescription 1.0//EN" "module-description.dtd">
<module-description xmlns:xlink="http://www.w3.org/1999/xlink">
- <module-name> i18n </module-name>
+ <module-name> i18n </module-name>
<component-description>
- <author> Bustamam Harun </author>
- <name> com.sun.star.i18n.Collator </name>
+ <author> Bustamam Harun </author>
+ <name> com.sun.star.i18n.Collator </name>
<description>
This component provides localized collation algorithm
</description>
- <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
- <language> C++ </language>
+ <loader-name> com.sun.star.loader.SharedLibrary </loader-name>
+ <language> C++ </language>
<status value="final"/>
- <supported-service> com.sun.star.i18n.Collator </supported-service>
+ <supported-service> com.sun.star.i18n.Collator </supported-service>
<reference-docu xlink:href="file:///docs/sampledoc.html" xlink:type="simple"/>
- <type> com.sun.star.lang.XMultiServiceFactory </type>
- <type> com.sun.star.uno.Reference </type>
- <type> com.sun.star.i18n.XLocaleData </type>
- <type> com.sun.star.i18n.XCollator </type>
+ <type> com.sun.star.lang.XMultiServiceFactory </type>
+ <type> com.sun.star.uno.Reference </type>
+ <type> com.sun.star.i18n.XLocaleData </type>
+ <type> com.sun.star.i18n.XCollator </type>
</component-description>
- <project-build-dependency> cppuhelper </project-build-dependency>
- <project-build-dependency> cppu </project-build-dependency>
- <project-build-dependency> registry </project-build-dependency>
- <project-build-dependency> store </project-build-dependency>
- <project-build-dependency> sal </project-build-dependency>
- <project-build-dependency> unotools </project-build-dependency>
- <runtime-module-dependency> cppuhelper </runtime-module-dependency>
- <runtime-module-dependency> cppu </runtime-module-dependency>
- <runtime-module-dependency> reg </runtime-module-dependency>
- <runtime-module-dependency> store </runtime-module-dependency>
- <runtime-module-dependency> sal </runtime-module-dependency>
- <runtime-module-dependency> unotools </runtime-module-dependency>
+ <project-build-dependency> cppuhelper </project-build-dependency>
+ <project-build-dependency> cppu </project-build-dependency>
+ <project-build-dependency> registry </project-build-dependency>
+ <project-build-dependency> store </project-build-dependency>
+ <project-build-dependency> sal </project-build-dependency>
+ <project-build-dependency> unotools </project-build-dependency>
+ <runtime-module-dependency> cppuhelper </runtime-module-dependency>
+ <runtime-module-dependency> cppu </runtime-module-dependency>
+ <runtime-module-dependency> reg </runtime-module-dependency>
+ <runtime-module-dependency> store </runtime-module-dependency>
+ <runtime-module-dependency> sal </runtime-module-dependency>
+ <runtime-module-dependency> unotools </runtime-module-dependency>
</module-description>
diff --git a/i18npool/xml/IndexEntrySupplier.xml b/i18npool/xml/IndexEntrySupplier.xml
index af0460faa3b4..57575be64df3 100644
--- a/i18npool/xml/IndexEntrySupplier.xml
+++ b/i18npool/xml/IndexEntrySupplier.xml
@@ -9,7 +9,7 @@
Supplier for creating index entries in a table of alphabetical index
</description>
<loader-name>com.sun.star.loader.SharedLibrary</loader-name>
- <language> C++ </language>
+ <language> C++ </language>
<status value="final"/>
<supported-service>com.sun.star.i18n.IndexEntrySupplier</supported-service>
<reference-docu xlink:href="file:///docs/sampledoc.html" xlink:type="simple"/>
diff --git a/i18npool/xml/LocaleData.xml b/i18npool/xml/LocaleData.xml
index 86e7e89dfc69..5a5c172f0c0a 100644
--- a/i18npool/xml/LocaleData.xml
+++ b/i18npool/xml/LocaleData.xml
@@ -9,7 +9,7 @@
This component provides locale data for I18n Framework
</description>
<loader-name>com.sun.star.loader.SharedLibrary</loader-name>
- <language> C++ </language>
+ <language> C++ </language>
<status value="final"/>
<supported-service>com.sun.star.i18n.LocaleData</supported-service>
<reference-docu xlink:href="file:///docs/sampledoc.html" xlink:type="simple"/>
diff --git a/i18nutil/inc/i18nutil/casefolding.hxx b/i18nutil/inc/i18nutil/casefolding.hxx
index 941b3772e5e0..12e34727e358 100644
--- a/i18nutil/inc/i18nutil/casefolding.hxx
+++ b/i18nutil/inc/i18nutil/casefolding.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18nutil/inc/i18nutil/oneToOneMapping.hxx b/i18nutil/inc/i18nutil/oneToOneMapping.hxx
index ff88b3e5410d..06a1d3a1ddd7 100644
--- a/i18nutil/inc/i18nutil/oneToOneMapping.hxx
+++ b/i18nutil/inc/i18nutil/oneToOneMapping.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18nutil/inc/i18nutil/unicode.hxx b/i18nutil/inc/i18nutil/unicode.hxx
index d6b33f188389..d8fcd067da61 100644
--- a/i18nutil/inc/i18nutil/unicode.hxx
+++ b/i18nutil/inc/i18nutil/unicode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/i18nutil/inc/i18nutil/widthfolding.hxx b/i18nutil/inc/i18nutil/widthfolding.hxx
index 337fa34cad37..7acefbbd7f1b 100644
--- a/i18nutil/inc/i18nutil/widthfolding.hxx
+++ b/i18nutil/inc/i18nutil/widthfolding.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ public:
static oneToOneMapping& getfullKana2halfKanaTable();
static oneToOneMapping& gethalfKana2fullKanaTable();
-
+
static rtl::OUString decompose_ja_voiced_sound_marks(const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, com::sun::star::uno::Sequence< sal_Int32 >& offset, sal_Bool useOffset);
static sal_Unicode decompose_ja_voiced_sound_marksChar2Char (sal_Unicode inChar);
static rtl::OUString compose_ja_voiced_sound_marks(const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, com::sun::star::uno::Sequence< sal_Int32 >& offset, sal_Bool useOffset, sal_Int32 nFlags = 0 );
diff --git a/i18nutil/inc/i18nutil/x_rtl_ustring.h b/i18nutil/inc/i18nutil/x_rtl_ustring.h
index 3b94c697d7f9..fdd31faeceb5 100644
--- a/i18nutil/inc/i18nutil/x_rtl_ustring.h
+++ b/i18nutil/inc/i18nutil/x_rtl_ustring.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,11 +38,11 @@
/**
* Allocates a new <code>rtl_uString</code> which can hold nLen + 1 characters.
* The reference count is 0. The characters of room is not cleared.
- * This method is similar to rtl_uString_new_WithLength in rtl/ustring.h, but
- * can allocate a new string more efficiently. You need to "acquire" by such as
+ * This method is similar to rtl_uString_new_WithLength in rtl/ustring.h, but
+ * can allocate a new string more efficiently. You need to "acquire" by such as
* OUString( rtl_uString * value ) if you intend to use it for a while.
- * @param [output] newStr
- * @param [input] nLen
+ * @param [output] newStr
+ * @param [input] nLen
*/
inline void SAL_CALL x_rtl_uString_new_WithLength( rtl_uString ** newStr, sal_Int32 nLen, sal_Int32 _refCount = 0 )
{
@@ -53,11 +53,11 @@ inline void SAL_CALL x_rtl_uString_new_WithLength( rtl_uString ** newStr, sal_In
// rtl_uString is defined in rtl/ustring.h as below:
//typedef struct _rtl_uString
//{
- // sal_Int32 refCount;
- // sal_Int32 length;
- // sal_Unicode buffer[1];
+ // sal_Int32 refCount;
+ // sal_Int32 length;
+ // sal_Unicode buffer[1];
//} rtl_uString;
-}
+}
inline rtl_uString * SAL_CALL x_rtl_uString_new_WithLength( sal_Int32 nLen, sal_Int32 _refCount = 0 )
{
@@ -65,7 +65,7 @@ inline rtl_uString * SAL_CALL x_rtl_uString_new_WithLength( sal_Int32 nLen, sal_
newStr->refCount = _refCount;
newStr->length = nLen;
return newStr;
-}
+}
/**
* Release <code>rtl_uString</code> regardless its reference count.
diff --git a/i18nutil/source/utility/casefolding.cxx b/i18nutil/source/utility/casefolding.cxx
index 5f1a2a0df1df..125aa60073ae 100644
--- a/i18nutil/source/utility/casefolding.cxx
+++ b/i18nutil/source/utility/casefolding.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ static Mapping mapping_0130[] = {{0, 1, {0x0069, 0, 0}},{0, 1, {0x0130, 0, 0}}};
#define langIs(lang) (aLocale.Language.compareToAscii(lang) == 0)
// only check simple case, there is more complicated case need to be checked.
-#define type_i(ch) ((ch) == 0x0069 || (ch) == 0x006a)
+#define type_i(ch) ((ch) == 0x0069 || (ch) == 0x006a)
#define cased_letter(ch) (CaseMappingIndex[(ch)>>8] >= 0 && (CaseMappingValue[(CaseMappingIndex[(ch)>>8] << 8) + ((ch)&0xff)].type & CasedLetter))
@@ -74,7 +74,7 @@ Mapping& casefolding::getConditionalValue(const sal_Unicode* str, sal_Int32 pos,
return (langIs("tr") || langIs("az")) ? mapping_0130[0] : mapping_0130[1];
case 0x0069:
return (langIs("tr") || langIs("az")) ? mapping_0069[0] : mapping_0069[1];
- case 0x0049: return langIs("lt") && pos > len && accent_above(str[pos+1]) ? mapping_0049[0] :
+ case 0x0049: return langIs("lt") && pos > len && accent_above(str[pos+1]) ? mapping_0049[0] :
(langIs("tr") || langIs("az")) ? mapping_0049[1] : mapping_0049[2];
case 0x004a: return langIs("lt") && pos > len && accent_above(str[pos+1]) ? mapping_004a[0] : mapping_004a[1];
case 0x012e: return langIs("lt") && pos > len && accent_above(str[pos+1]) ? mapping_012e[0] : mapping_012e[1];
diff --git a/i18nutil/source/utility/casefolding_data.h b/i18nutil/source/utility/casefolding_data.h
index e150c96e5a2e..b216f7d0a882 100644
--- a/i18nutil/source/utility/casefolding_data.h
+++ b/i18nutil/source/utility/casefolding_data.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -857,10 +857,10 @@ static Mapping CaseMappingExtra[] = {
};
/* Following code need special handling
- 0x0069, 0x00CC, 0x00CD, 0x0128, 0x012E, 0x0130, 0x0049, 0x004A, 0x0307, 0x03A3,
+ 0x0069, 0x00CC, 0x00CD, 0x0128, 0x012E, 0x0130, 0x0049, 0x004A, 0x0307, 0x03A3,
*/
-} } } }
+} } } }
#endif
diff --git a/i18nutil/source/utility/oneToOneMapping.cxx b/i18nutil/source/utility/oneToOneMapping.cxx
index 3aa4e6b82f97..a98d7fd51af3 100644
--- a/i18nutil/source/utility/oneToOneMapping.cxx
+++ b/i18nutil/source/utility/oneToOneMapping.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ oneToOneMapping::~oneToOneMapping()
{
}
-sal_Unicode oneToOneMapping::find(const sal_Unicode nKey) const
+sal_Unicode oneToOneMapping::find(const sal_Unicode nKey) const
{
if( mpTable )
{
@@ -111,7 +111,7 @@ void oneToOneMappingWithFlag::makeIndex()
}
}
-sal_Unicode oneToOneMappingWithFlag::find( const sal_Unicode nKey ) const
+sal_Unicode oneToOneMappingWithFlag::find( const sal_Unicode nKey ) const
{
if( mpTableWF )
{
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index 83dd81b406cf..0234e1fe76c2 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -320,7 +320,7 @@ unicode::getUnicodeScriptType( const sal_Unicode ch, ScriptTypeList* typeList, s
sal_Bool SAL_CALL
unicode::isUnicodeScriptType( const sal_Unicode ch, sal_Int16 type) {
- return ch >= UnicodeScriptType[type][UnicodeScriptTypeFrom] &&
+ return ch >= UnicodeScriptType[type][UnicodeScriptTypeFrom] &&
ch <= UnicodeScriptType[type][UnicodeScriptTypeTo];
}
diff --git a/i18nutil/source/utility/unicode_data.h b/i18nutil/source/utility/unicode_data.h
index c07fa336d686..c130a33e65ad 100644
--- a/i18nutil/source/utility/unicode_data.h
+++ b/i18nutil/source/utility/unicode_data.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -654,7 +654,7 @@ static sal_Int8 UnicodeTypeValue[] = {
1, 2, 1, 2,27,27,27,27,27,27,27, 0, 0, 0, 0, 0,// 2ce0 - 2cef
0, 0, 0, 0, 0, 0, 0, 0, 0,21,21,21,21,11,21,21,// 2cf0 - 2cff
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f Block index 0x27
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e00 - 2e0f Block index 0x27
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e10 - 2e1f
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e20 - 2e2f
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,// 2e30 - 2e3f
@@ -1570,7 +1570,7 @@ static sal_Unicode UnicodeScriptType[][2] = {
{0x0530, 0x058f}, // 9. Armenian
{0x0590, 0x05ff}, // 10. Hebrew
{0x0600, 0x06ff}, // 11. Arabic
- {0x0700, 0x074f}, // 12. Syriac
+ {0x0700, 0x074f}, // 12. Syriac
{0x0780, 0x07bf}, // 13. Thaana
{0x0900, 0x097f}, // 14. Devanagari
{0x0980, 0x09ff}, // 15. Bengali
@@ -1585,7 +1585,7 @@ static sal_Unicode UnicodeScriptType[][2] = {
{0x0e00, 0x0e7f}, // 24. Thai
{0x0e80, 0x0eff}, // 25. Lao
{0x0f00, 0x0fff}, // 26. Tibetan
- {0x1000, 0x109f}, // 27. Myanmar
+ {0x1000, 0x109f}, // 27. Myanmar
{0x10a0, 0x10ff}, // 28. Georgian
{0x1100, 0x11ff}, // 29. Hangul Jamo
{0x1200, 0x137f}, // 30. Ethiopic
diff --git a/i18nutil/source/utility/widthfolding.cxx b/i18nutil/source/utility/widthfolding.cxx
index a0e43eaf818a..e2c966428166 100644
--- a/i18nutil/source/utility/widthfolding.cxx
+++ b/i18nutil/source/utility/widthfolding.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ OUString widthfolding::decompose_ja_voiced_sound_marks (const OUString& inStr, s
// Prepare pointers of unicode character arrays.
const sal_Unicode* src = inStr.getStr() + startPos;
sal_Unicode* dst = newStr->buffer;
-
+
// Decomposition: GA --> KA + voice-mark
while (nCount -- > 0) {
sal_Unicode c = *src++;
@@ -117,7 +117,7 @@ OUString widthfolding::compose_ja_voiced_sound_marks (const OUString& inStr, sal
// Create a string buffer which can hold nCount + 1 characters.
// Its size may become equal to nCount or smaller.
// The reference count is 0 now.
- rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
+ rtl_uString * newStr = x_rtl_uString_new_WithLength( nCount ); // defined in x_rtl_ustring.h
// Prepare pointers of unicode character arrays.
const sal_Unicode* src = inStr.getStr() + startPos;
@@ -144,7 +144,7 @@ OUString widthfolding::compose_ja_voiced_sound_marks (const OUString& inStr, sal
position = startPos;
}
- //
+ //
sal_Unicode previousChar = *src ++;
sal_Unicode currentChar;
diff --git a/i18nutil/source/utility/widthfolding_data.h b/i18nutil/source/utility/widthfolding_data.h
index 8d3e13c6440a..c60f6bbbcc4f 100644
--- a/i18nutil/source/utility/widthfolding_data.h
+++ b/i18nutil/source/utility/widthfolding_data.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,198 +51,198 @@ typedef struct {
//
// the combining characters shouldn't be used
const decomposition_table_entry_t decomposition_table[] = {
- { 0x0000, 0x0000 }, // 0x3040
- { 0x0000, 0x0000 }, // 0x3041 HIRAGANA LETTER SMALL A
- { 0x0000, 0x0000 }, // 0x3042 HIRAGANA LETTER A
- { 0x0000, 0x0000 }, // 0x3043 HIRAGANA LETTER SMALL I
- { 0x0000, 0x0000 }, // 0x3044 HIRAGANA LETTER I
- { 0x0000, 0x0000 }, // 0x3045 HIRAGANA LETTER SMALL U
- { 0x0000, 0x0000 }, // 0x3046 HIRAGANA LETTER U
- { 0x0000, 0x0000 }, // 0x3047 HIRAGANA LETTER SMALL E
- { 0x0000, 0x0000 }, // 0x3048 HIRAGANA LETTER E
- { 0x0000, 0x0000 }, // 0x3049 HIRAGANA LETTER SMALL O
- { 0x0000, 0x0000 }, // 0x304a HIRAGANA LETTER O
- { 0x0000, 0x0000 }, // 0x304b HIRAGANA LETTER KA
- { 0x304b, 0x309b }, // 0x304c HIRAGANA LETTER GA --> HIRAGANA LETTER KA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x304d HIRAGANA LETTER KI
- { 0x304d, 0x309b }, // 0x304e HIRAGANA LETTER GI --> HIRAGANA LETTER KI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x304f HIRAGANA LETTER KU
- { 0x304f, 0x309b }, // 0x3050 HIRAGANA LETTER GU --> HIRAGANA LETTER KU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3051 HIRAGANA LETTER KE
- { 0x3051, 0x309b }, // 0x3052 HIRAGANA LETTER GE --> HIRAGANA LETTER KE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3053 HIRAGANA LETTER KO
- { 0x3053, 0x309b }, // 0x3054 HIRAGANA LETTER GO --> HIRAGANA LETTER KO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3055 HIRAGANA LETTER SA
- { 0x3055, 0x309b }, // 0x3056 HIRAGANA LETTER ZA --> HIRAGANA LETTER SA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3057 HIRAGANA LETTER SI
- { 0x3057, 0x309b }, // 0x3058 HIRAGANA LETTER ZI --> HIRAGANA LETTER SI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3059 HIRAGANA LETTER SU
- { 0x3059, 0x309b }, // 0x305a HIRAGANA LETTER ZU --> HIRAGANA LETTER SU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x305b HIRAGANA LETTER SE
- { 0x305b, 0x309b }, // 0x305c HIRAGANA LETTER ZE --> HIRAGANA LETTER SE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x305d HIRAGANA LETTER SO
- { 0x305d, 0x309b }, // 0x305e HIRAGANA LETTER ZO --> HIRAGANA LETTER SO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x305f HIRAGANA LETTER TA
- { 0x305f, 0x309b }, // 0x3060 HIRAGANA LETTER DA --> HIRAGANA LETTER TA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3061 HIRAGANA LETTER TI
- { 0x3061, 0x309b }, // 0x3062 HIRAGANA LETTER DI --> HIRAGANA LETTER TI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3063 HIRAGANA LETTER SMALL TU
- { 0x0000, 0x0000 }, // 0x3064 HIRAGANA LETTER TU
- { 0x3064, 0x309b }, // 0x3065 HIRAGANA LETTER DU --> HIRAGANA LETTER TU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3066 HIRAGANA LETTER TE
- { 0x3066, 0x309b }, // 0x3067 HIRAGANA LETTER DE --> HIRAGANA LETTER TE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3068 HIRAGANA LETTER TO
- { 0x3068, 0x309b }, // 0x3069 HIRAGANA LETTER DO --> HIRAGANA LETTER TO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x306a HIRAGANA LETTER NA
- { 0x0000, 0x0000 }, // 0x306b HIRAGANA LETTER NI
- { 0x0000, 0x0000 }, // 0x306c HIRAGANA LETTER NU
- { 0x0000, 0x0000 }, // 0x306d HIRAGANA LETTER NE
- { 0x0000, 0x0000 }, // 0x306e HIRAGANA LETTER NO
- { 0x0000, 0x0000 }, // 0x306f HIRAGANA LETTER HA
- { 0x306f, 0x309b }, // 0x3070 HIRAGANA LETTER BA --> HIRAGANA LETTER HA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x306f, 0x309c }, // 0x3071 HIRAGANA LETTER PA --> HIRAGANA LETTER HA + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3072 HIRAGANA LETTER HI
- { 0x3072, 0x309b }, // 0x3073 HIRAGANA LETTER BI --> HIRAGANA LETTER HI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x3072, 0x309c }, // 0x3074 HIRAGANA LETTER PI --> HIRAGANA LETTER HI + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3075 HIRAGANA LETTER HU
- { 0x3075, 0x309b }, // 0x3076 HIRAGANA LETTER BU --> HIRAGANA LETTER HU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x3075, 0x309c }, // 0x3077 HIRAGANA LETTER PU --> HIRAGANA LETTER HU + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3078 HIRAGANA LETTER HE
- { 0x3078, 0x309b }, // 0x3079 HIRAGANA LETTER BE --> HIRAGANA LETTER HE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x3078, 0x309c }, // 0x307a HIRAGANA LETTER PE --> HIRAGANA LETTER HE + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x307b HIRAGANA LETTER HO
- { 0x307b, 0x309b }, // 0x307c HIRAGANA LETTER BO --> HIRAGANA LETTER HO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x307b, 0x309c }, // 0x307d HIRAGANA LETTER PO --> HIRAGANA LETTER HO + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x307e HIRAGANA LETTER MA
- { 0x0000, 0x0000 }, // 0x307f HIRAGANA LETTER MI
- { 0x0000, 0x0000 }, // 0x3080 HIRAGANA LETTER MU
- { 0x0000, 0x0000 }, // 0x3081 HIRAGANA LETTER ME
- { 0x0000, 0x0000 }, // 0x3082 HIRAGANA LETTER MO
- { 0x0000, 0x0000 }, // 0x3083 HIRAGANA LETTER SMALL YA
- { 0x0000, 0x0000 }, // 0x3084 HIRAGANA LETTER YA
- { 0x0000, 0x0000 }, // 0x3085 HIRAGANA LETTER SMALL YU
- { 0x0000, 0x0000 }, // 0x3086 HIRAGANA LETTER YU
- { 0x0000, 0x0000 }, // 0x3087 HIRAGANA LETTER SMALL YO
- { 0x0000, 0x0000 }, // 0x3088 HIRAGANA LETTER YO
- { 0x0000, 0x0000 }, // 0x3089 HIRAGANA LETTER RA
- { 0x0000, 0x0000 }, // 0x308a HIRAGANA LETTER RI
- { 0x0000, 0x0000 }, // 0x308b HIRAGANA LETTER RU
- { 0x0000, 0x0000 }, // 0x308c HIRAGANA LETTER RE
- { 0x0000, 0x0000 }, // 0x308d HIRAGANA LETTER RO
- { 0x0000, 0x0000 }, // 0x308e HIRAGANA LETTER SMALL WA
- { 0x0000, 0x0000 }, // 0x308f HIRAGANA LETTER WA
- { 0x0000, 0x0000 }, // 0x3090 HIRAGANA LETTER WI
- { 0x0000, 0x0000 }, // 0x3091 HIRAGANA LETTER WE
- { 0x0000, 0x0000 }, // 0x3092 HIRAGANA LETTER WO
- { 0x0000, 0x0000 }, // 0x3093 HIRAGANA LETTER N
- { 0x3046, 0x309b }, // 0x3094 HIRAGANA LETTER VU --> HIRAGANA LETTER U + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x3095
- { 0x0000, 0x0000 }, // 0x3096
- { 0x0000, 0x0000 }, // 0x3097
- { 0x0000, 0x0000 }, // 0x3098
- { 0x0000, 0x0000 }, // 0x3099 COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x309a COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x309b KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x309c KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x309d HIRAGANA ITERATION MARK
- { 0x0000, 0x0000 }, // 0x309e HIRAGANA VOICED ITERATION MARK
- { 0x0000, 0x0000 }, // 0x309f
- { 0x0000, 0x0000 }, // 0x30a0
- { 0x0000, 0x0000 }, // 0x30a1 KATAKANA LETTER SMALL A
- { 0x0000, 0x0000 }, // 0x30a2 KATAKANA LETTER A
- { 0x0000, 0x0000 }, // 0x30a3 KATAKANA LETTER SMALL I
- { 0x0000, 0x0000 }, // 0x30a4 KATAKANA LETTER I
- { 0x0000, 0x0000 }, // 0x30a5 KATAKANA LETTER SMALL U
- { 0x0000, 0x0000 }, // 0x30a6 KATAKANA LETTER U
- { 0x0000, 0x0000 }, // 0x30a7 KATAKANA LETTER SMALL E
- { 0x0000, 0x0000 }, // 0x30a8 KATAKANA LETTER E
- { 0x0000, 0x0000 }, // 0x30a9 KATAKANA LETTER SMALL O
- { 0x0000, 0x0000 }, // 0x30aa KATAKANA LETTER O
- { 0x0000, 0x0000 }, // 0x30ab KATAKANA LETTER KA
- { 0x30ab, 0x309b }, // 0x30ac KATAKANA LETTER GA --> KATAKANA LETTER KA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30ad KATAKANA LETTER KI
- { 0x30ad, 0x309b }, // 0x30ae KATAKANA LETTER GI --> KATAKANA LETTER KI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30af KATAKANA LETTER KU
- { 0x30af, 0x309b }, // 0x30b0 KATAKANA LETTER GU --> KATAKANA LETTER KU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30b1 KATAKANA LETTER KE
- { 0x30b1, 0x309b }, // 0x30b2 KATAKANA LETTER GE --> KATAKANA LETTER KE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30b3 KATAKANA LETTER KO
- { 0x30b3, 0x309b }, // 0x30b4 KATAKANA LETTER GO --> KATAKANA LETTER KO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30b5 KATAKANA LETTER SA
- { 0x30b5, 0x309b }, // 0x30b6 KATAKANA LETTER ZA --> KATAKANA LETTER SA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30b7 KATAKANA LETTER SI
- { 0x30b7, 0x309b }, // 0x30b8 KATAKANA LETTER ZI --> KATAKANA LETTER SI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30b9 KATAKANA LETTER SU
- { 0x30b9, 0x309b }, // 0x30ba KATAKANA LETTER ZU --> KATAKANA LETTER SU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30bb KATAKANA LETTER SE
- { 0x30bb, 0x309b }, // 0x30bc KATAKANA LETTER ZE --> KATAKANA LETTER SE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30bd KATAKANA LETTER SO
- { 0x30bd, 0x309b }, // 0x30be KATAKANA LETTER ZO --> KATAKANA LETTER SO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30bf KATAKANA LETTER TA
- { 0x30bf, 0x309b }, // 0x30c0 KATAKANA LETTER DA --> KATAKANA LETTER TA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30c1 KATAKANA LETTER TI
- { 0x30c1, 0x309b }, // 0x30c2 KATAKANA LETTER DI --> KATAKANA LETTER TI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30c3 KATAKANA LETTER SMALL TU
- { 0x0000, 0x0000 }, // 0x30c4 KATAKANA LETTER TU
- { 0x30c4, 0x309b }, // 0x30c5 KATAKANA LETTER DU --> KATAKANA LETTER TU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30c6 KATAKANA LETTER TE
- { 0x30c6, 0x309b }, // 0x30c7 KATAKANA LETTER DE --> KATAKANA LETTER TE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30c8 KATAKANA LETTER TO
- { 0x30c8, 0x309b }, // 0x30c9 KATAKANA LETTER DO --> KATAKANA LETTER TO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30ca KATAKANA LETTER NA
- { 0x0000, 0x0000 }, // 0x30cb KATAKANA LETTER NI
- { 0x0000, 0x0000 }, // 0x30cc KATAKANA LETTER NU
- { 0x0000, 0x0000 }, // 0x30cd KATAKANA LETTER NE
- { 0x0000, 0x0000 }, // 0x30ce KATAKANA LETTER NO
- { 0x0000, 0x0000 }, // 0x30cf KATAKANA LETTER HA
- { 0x30cf, 0x309b }, // 0x30d0 KATAKANA LETTER BA --> KATAKANA LETTER HA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x30cf, 0x309c }, // 0x30d1 KATAKANA LETTER PA --> KATAKANA LETTER HA + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30d2 KATAKANA LETTER HI
- { 0x30d2, 0x309b }, // 0x30d3 KATAKANA LETTER BI --> KATAKANA LETTER HI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x30d2, 0x309c }, // 0x30d4 KATAKANA LETTER PI --> KATAKANA LETTER HI + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30d5 KATAKANA LETTER HU
- { 0x30d5, 0x309b }, // 0x30d6 KATAKANA LETTER BU --> KATAKANA LETTER HU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x30d5, 0x309c }, // 0x30d7 KATAKANA LETTER PU --> KATAKANA LETTER HU + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30d8 KATAKANA LETTER HE
- { 0x30d8, 0x309b }, // 0x30d9 KATAKANA LETTER BE --> KATAKANA LETTER HE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x30d8, 0x309c }, // 0x30da KATAKANA LETTER PE --> KATAKANA LETTER HE + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30db KATAKANA LETTER HO
- { 0x30db, 0x309b }, // 0x30dc KATAKANA LETTER BO --> KATAKANA LETTER HO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x30db, 0x309c }, // 0x30dd KATAKANA LETTER PO --> KATAKANA LETTER HO + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30de KATAKANA LETTER MA
- { 0x0000, 0x0000 }, // 0x30df KATAKANA LETTER MI
- { 0x0000, 0x0000 }, // 0x30e0 KATAKANA LETTER MU
- { 0x0000, 0x0000 }, // 0x30e1 KATAKANA LETTER ME
- { 0x0000, 0x0000 }, // 0x30e2 KATAKANA LETTER MO
- { 0x0000, 0x0000 }, // 0x30e3 KATAKANA LETTER SMALL YA
- { 0x0000, 0x0000 }, // 0x30e4 KATAKANA LETTER YA
- { 0x0000, 0x0000 }, // 0x30e5 KATAKANA LETTER SMALL YU
- { 0x0000, 0x0000 }, // 0x30e6 KATAKANA LETTER YU
- { 0x0000, 0x0000 }, // 0x30e7 KATAKANA LETTER SMALL YO
- { 0x0000, 0x0000 }, // 0x30e8 KATAKANA LETTER YO
- { 0x0000, 0x0000 }, // 0x30e9 KATAKANA LETTER RA
- { 0x0000, 0x0000 }, // 0x30ea KATAKANA LETTER RI
- { 0x0000, 0x0000 }, // 0x30eb KATAKANA LETTER RU
- { 0x0000, 0x0000 }, // 0x30ec KATAKANA LETTER RE
- { 0x0000, 0x0000 }, // 0x30ed KATAKANA LETTER RO
- { 0x0000, 0x0000 }, // 0x30ee KATAKANA LETTER SMALL WA
- { 0x0000, 0x0000 }, // 0x30ef KATAKANA LETTER WA
- { 0x0000, 0x0000 }, // 0x30f0 KATAKANA LETTER WI
- { 0x0000, 0x0000 }, // 0x30f1 KATAKANA LETTER WE
- { 0x0000, 0x0000 }, // 0x30f2 KATAKANA LETTER WO
- { 0x0000, 0x0000 }, // 0x30f3 KATAKANA LETTER N
- { 0x30a6, 0x309b }, // 0x30f4 KATAKANA LETTER VU --> KATAKANA LETTER U + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30f5 KATAKANA LETTER SMALL KA
- { 0x0000, 0x0000 }, // 0x30f6 KATAKANA LETTER SMALL KE
- { 0x30ef, 0x309b }, // 0x30f7 KATAKANA LETTER VA --> KATAKANA LETTER WA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x30f0, 0x309b }, // 0x30f8 KATAKANA LETTER VI --> KATAKANA LETTER WI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x30f1, 0x309b }, // 0x30f9 KATAKANA LETTER VE --> KATAKANA LETTER WE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x30f2, 0x309b }, // 0x30fa KATAKANA LETTER VO --> KATAKANA LETTER WO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30fb KATAKANA MIDDLE DOT
- { 0x0000, 0x0000 }, // 0x30fc KATAKANA-HIRAGANA PROLONGED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30fd KATAKANA ITERATION MARK
- { 0x0000, 0x0000 }, // 0x30fe KATAKANA VOICED ITERATION MARK
- { 0x0000, 0x0000 } // 0x30ff
+ { 0x0000, 0x0000 }, // 0x3040
+ { 0x0000, 0x0000 }, // 0x3041 HIRAGANA LETTER SMALL A
+ { 0x0000, 0x0000 }, // 0x3042 HIRAGANA LETTER A
+ { 0x0000, 0x0000 }, // 0x3043 HIRAGANA LETTER SMALL I
+ { 0x0000, 0x0000 }, // 0x3044 HIRAGANA LETTER I
+ { 0x0000, 0x0000 }, // 0x3045 HIRAGANA LETTER SMALL U
+ { 0x0000, 0x0000 }, // 0x3046 HIRAGANA LETTER U
+ { 0x0000, 0x0000 }, // 0x3047 HIRAGANA LETTER SMALL E
+ { 0x0000, 0x0000 }, // 0x3048 HIRAGANA LETTER E
+ { 0x0000, 0x0000 }, // 0x3049 HIRAGANA LETTER SMALL O
+ { 0x0000, 0x0000 }, // 0x304a HIRAGANA LETTER O
+ { 0x0000, 0x0000 }, // 0x304b HIRAGANA LETTER KA
+ { 0x304b, 0x309b }, // 0x304c HIRAGANA LETTER GA --> HIRAGANA LETTER KA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x304d HIRAGANA LETTER KI
+ { 0x304d, 0x309b }, // 0x304e HIRAGANA LETTER GI --> HIRAGANA LETTER KI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x304f HIRAGANA LETTER KU
+ { 0x304f, 0x309b }, // 0x3050 HIRAGANA LETTER GU --> HIRAGANA LETTER KU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3051 HIRAGANA LETTER KE
+ { 0x3051, 0x309b }, // 0x3052 HIRAGANA LETTER GE --> HIRAGANA LETTER KE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3053 HIRAGANA LETTER KO
+ { 0x3053, 0x309b }, // 0x3054 HIRAGANA LETTER GO --> HIRAGANA LETTER KO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3055 HIRAGANA LETTER SA
+ { 0x3055, 0x309b }, // 0x3056 HIRAGANA LETTER ZA --> HIRAGANA LETTER SA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3057 HIRAGANA LETTER SI
+ { 0x3057, 0x309b }, // 0x3058 HIRAGANA LETTER ZI --> HIRAGANA LETTER SI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3059 HIRAGANA LETTER SU
+ { 0x3059, 0x309b }, // 0x305a HIRAGANA LETTER ZU --> HIRAGANA LETTER SU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x305b HIRAGANA LETTER SE
+ { 0x305b, 0x309b }, // 0x305c HIRAGANA LETTER ZE --> HIRAGANA LETTER SE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x305d HIRAGANA LETTER SO
+ { 0x305d, 0x309b }, // 0x305e HIRAGANA LETTER ZO --> HIRAGANA LETTER SO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x305f HIRAGANA LETTER TA
+ { 0x305f, 0x309b }, // 0x3060 HIRAGANA LETTER DA --> HIRAGANA LETTER TA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3061 HIRAGANA LETTER TI
+ { 0x3061, 0x309b }, // 0x3062 HIRAGANA LETTER DI --> HIRAGANA LETTER TI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3063 HIRAGANA LETTER SMALL TU
+ { 0x0000, 0x0000 }, // 0x3064 HIRAGANA LETTER TU
+ { 0x3064, 0x309b }, // 0x3065 HIRAGANA LETTER DU --> HIRAGANA LETTER TU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3066 HIRAGANA LETTER TE
+ { 0x3066, 0x309b }, // 0x3067 HIRAGANA LETTER DE --> HIRAGANA LETTER TE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3068 HIRAGANA LETTER TO
+ { 0x3068, 0x309b }, // 0x3069 HIRAGANA LETTER DO --> HIRAGANA LETTER TO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x306a HIRAGANA LETTER NA
+ { 0x0000, 0x0000 }, // 0x306b HIRAGANA LETTER NI
+ { 0x0000, 0x0000 }, // 0x306c HIRAGANA LETTER NU
+ { 0x0000, 0x0000 }, // 0x306d HIRAGANA LETTER NE
+ { 0x0000, 0x0000 }, // 0x306e HIRAGANA LETTER NO
+ { 0x0000, 0x0000 }, // 0x306f HIRAGANA LETTER HA
+ { 0x306f, 0x309b }, // 0x3070 HIRAGANA LETTER BA --> HIRAGANA LETTER HA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x306f, 0x309c }, // 0x3071 HIRAGANA LETTER PA --> HIRAGANA LETTER HA + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3072 HIRAGANA LETTER HI
+ { 0x3072, 0x309b }, // 0x3073 HIRAGANA LETTER BI --> HIRAGANA LETTER HI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x3072, 0x309c }, // 0x3074 HIRAGANA LETTER PI --> HIRAGANA LETTER HI + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3075 HIRAGANA LETTER HU
+ { 0x3075, 0x309b }, // 0x3076 HIRAGANA LETTER BU --> HIRAGANA LETTER HU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x3075, 0x309c }, // 0x3077 HIRAGANA LETTER PU --> HIRAGANA LETTER HU + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3078 HIRAGANA LETTER HE
+ { 0x3078, 0x309b }, // 0x3079 HIRAGANA LETTER BE --> HIRAGANA LETTER HE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x3078, 0x309c }, // 0x307a HIRAGANA LETTER PE --> HIRAGANA LETTER HE + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x307b HIRAGANA LETTER HO
+ { 0x307b, 0x309b }, // 0x307c HIRAGANA LETTER BO --> HIRAGANA LETTER HO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x307b, 0x309c }, // 0x307d HIRAGANA LETTER PO --> HIRAGANA LETTER HO + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x307e HIRAGANA LETTER MA
+ { 0x0000, 0x0000 }, // 0x307f HIRAGANA LETTER MI
+ { 0x0000, 0x0000 }, // 0x3080 HIRAGANA LETTER MU
+ { 0x0000, 0x0000 }, // 0x3081 HIRAGANA LETTER ME
+ { 0x0000, 0x0000 }, // 0x3082 HIRAGANA LETTER MO
+ { 0x0000, 0x0000 }, // 0x3083 HIRAGANA LETTER SMALL YA
+ { 0x0000, 0x0000 }, // 0x3084 HIRAGANA LETTER YA
+ { 0x0000, 0x0000 }, // 0x3085 HIRAGANA LETTER SMALL YU
+ { 0x0000, 0x0000 }, // 0x3086 HIRAGANA LETTER YU
+ { 0x0000, 0x0000 }, // 0x3087 HIRAGANA LETTER SMALL YO
+ { 0x0000, 0x0000 }, // 0x3088 HIRAGANA LETTER YO
+ { 0x0000, 0x0000 }, // 0x3089 HIRAGANA LETTER RA
+ { 0x0000, 0x0000 }, // 0x308a HIRAGANA LETTER RI
+ { 0x0000, 0x0000 }, // 0x308b HIRAGANA LETTER RU
+ { 0x0000, 0x0000 }, // 0x308c HIRAGANA LETTER RE
+ { 0x0000, 0x0000 }, // 0x308d HIRAGANA LETTER RO
+ { 0x0000, 0x0000 }, // 0x308e HIRAGANA LETTER SMALL WA
+ { 0x0000, 0x0000 }, // 0x308f HIRAGANA LETTER WA
+ { 0x0000, 0x0000 }, // 0x3090 HIRAGANA LETTER WI
+ { 0x0000, 0x0000 }, // 0x3091 HIRAGANA LETTER WE
+ { 0x0000, 0x0000 }, // 0x3092 HIRAGANA LETTER WO
+ { 0x0000, 0x0000 }, // 0x3093 HIRAGANA LETTER N
+ { 0x3046, 0x309b }, // 0x3094 HIRAGANA LETTER VU --> HIRAGANA LETTER U + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x3095
+ { 0x0000, 0x0000 }, // 0x3096
+ { 0x0000, 0x0000 }, // 0x3097
+ { 0x0000, 0x0000 }, // 0x3098
+ { 0x0000, 0x0000 }, // 0x3099 COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x309a COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x309b KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x309c KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x309d HIRAGANA ITERATION MARK
+ { 0x0000, 0x0000 }, // 0x309e HIRAGANA VOICED ITERATION MARK
+ { 0x0000, 0x0000 }, // 0x309f
+ { 0x0000, 0x0000 }, // 0x30a0
+ { 0x0000, 0x0000 }, // 0x30a1 KATAKANA LETTER SMALL A
+ { 0x0000, 0x0000 }, // 0x30a2 KATAKANA LETTER A
+ { 0x0000, 0x0000 }, // 0x30a3 KATAKANA LETTER SMALL I
+ { 0x0000, 0x0000 }, // 0x30a4 KATAKANA LETTER I
+ { 0x0000, 0x0000 }, // 0x30a5 KATAKANA LETTER SMALL U
+ { 0x0000, 0x0000 }, // 0x30a6 KATAKANA LETTER U
+ { 0x0000, 0x0000 }, // 0x30a7 KATAKANA LETTER SMALL E
+ { 0x0000, 0x0000 }, // 0x30a8 KATAKANA LETTER E
+ { 0x0000, 0x0000 }, // 0x30a9 KATAKANA LETTER SMALL O
+ { 0x0000, 0x0000 }, // 0x30aa KATAKANA LETTER O
+ { 0x0000, 0x0000 }, // 0x30ab KATAKANA LETTER KA
+ { 0x30ab, 0x309b }, // 0x30ac KATAKANA LETTER GA --> KATAKANA LETTER KA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30ad KATAKANA LETTER KI
+ { 0x30ad, 0x309b }, // 0x30ae KATAKANA LETTER GI --> KATAKANA LETTER KI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30af KATAKANA LETTER KU
+ { 0x30af, 0x309b }, // 0x30b0 KATAKANA LETTER GU --> KATAKANA LETTER KU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30b1 KATAKANA LETTER KE
+ { 0x30b1, 0x309b }, // 0x30b2 KATAKANA LETTER GE --> KATAKANA LETTER KE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30b3 KATAKANA LETTER KO
+ { 0x30b3, 0x309b }, // 0x30b4 KATAKANA LETTER GO --> KATAKANA LETTER KO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30b5 KATAKANA LETTER SA
+ { 0x30b5, 0x309b }, // 0x30b6 KATAKANA LETTER ZA --> KATAKANA LETTER SA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30b7 KATAKANA LETTER SI
+ { 0x30b7, 0x309b }, // 0x30b8 KATAKANA LETTER ZI --> KATAKANA LETTER SI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30b9 KATAKANA LETTER SU
+ { 0x30b9, 0x309b }, // 0x30ba KATAKANA LETTER ZU --> KATAKANA LETTER SU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30bb KATAKANA LETTER SE
+ { 0x30bb, 0x309b }, // 0x30bc KATAKANA LETTER ZE --> KATAKANA LETTER SE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30bd KATAKANA LETTER SO
+ { 0x30bd, 0x309b }, // 0x30be KATAKANA LETTER ZO --> KATAKANA LETTER SO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30bf KATAKANA LETTER TA
+ { 0x30bf, 0x309b }, // 0x30c0 KATAKANA LETTER DA --> KATAKANA LETTER TA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30c1 KATAKANA LETTER TI
+ { 0x30c1, 0x309b }, // 0x30c2 KATAKANA LETTER DI --> KATAKANA LETTER TI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30c3 KATAKANA LETTER SMALL TU
+ { 0x0000, 0x0000 }, // 0x30c4 KATAKANA LETTER TU
+ { 0x30c4, 0x309b }, // 0x30c5 KATAKANA LETTER DU --> KATAKANA LETTER TU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30c6 KATAKANA LETTER TE
+ { 0x30c6, 0x309b }, // 0x30c7 KATAKANA LETTER DE --> KATAKANA LETTER TE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30c8 KATAKANA LETTER TO
+ { 0x30c8, 0x309b }, // 0x30c9 KATAKANA LETTER DO --> KATAKANA LETTER TO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30ca KATAKANA LETTER NA
+ { 0x0000, 0x0000 }, // 0x30cb KATAKANA LETTER NI
+ { 0x0000, 0x0000 }, // 0x30cc KATAKANA LETTER NU
+ { 0x0000, 0x0000 }, // 0x30cd KATAKANA LETTER NE
+ { 0x0000, 0x0000 }, // 0x30ce KATAKANA LETTER NO
+ { 0x0000, 0x0000 }, // 0x30cf KATAKANA LETTER HA
+ { 0x30cf, 0x309b }, // 0x30d0 KATAKANA LETTER BA --> KATAKANA LETTER HA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x30cf, 0x309c }, // 0x30d1 KATAKANA LETTER PA --> KATAKANA LETTER HA + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30d2 KATAKANA LETTER HI
+ { 0x30d2, 0x309b }, // 0x30d3 KATAKANA LETTER BI --> KATAKANA LETTER HI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x30d2, 0x309c }, // 0x30d4 KATAKANA LETTER PI --> KATAKANA LETTER HI + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30d5 KATAKANA LETTER HU
+ { 0x30d5, 0x309b }, // 0x30d6 KATAKANA LETTER BU --> KATAKANA LETTER HU + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x30d5, 0x309c }, // 0x30d7 KATAKANA LETTER PU --> KATAKANA LETTER HU + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30d8 KATAKANA LETTER HE
+ { 0x30d8, 0x309b }, // 0x30d9 KATAKANA LETTER BE --> KATAKANA LETTER HE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x30d8, 0x309c }, // 0x30da KATAKANA LETTER PE --> KATAKANA LETTER HE + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30db KATAKANA LETTER HO
+ { 0x30db, 0x309b }, // 0x30dc KATAKANA LETTER BO --> KATAKANA LETTER HO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x30db, 0x309c }, // 0x30dd KATAKANA LETTER PO --> KATAKANA LETTER HO + COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30de KATAKANA LETTER MA
+ { 0x0000, 0x0000 }, // 0x30df KATAKANA LETTER MI
+ { 0x0000, 0x0000 }, // 0x30e0 KATAKANA LETTER MU
+ { 0x0000, 0x0000 }, // 0x30e1 KATAKANA LETTER ME
+ { 0x0000, 0x0000 }, // 0x30e2 KATAKANA LETTER MO
+ { 0x0000, 0x0000 }, // 0x30e3 KATAKANA LETTER SMALL YA
+ { 0x0000, 0x0000 }, // 0x30e4 KATAKANA LETTER YA
+ { 0x0000, 0x0000 }, // 0x30e5 KATAKANA LETTER SMALL YU
+ { 0x0000, 0x0000 }, // 0x30e6 KATAKANA LETTER YU
+ { 0x0000, 0x0000 }, // 0x30e7 KATAKANA LETTER SMALL YO
+ { 0x0000, 0x0000 }, // 0x30e8 KATAKANA LETTER YO
+ { 0x0000, 0x0000 }, // 0x30e9 KATAKANA LETTER RA
+ { 0x0000, 0x0000 }, // 0x30ea KATAKANA LETTER RI
+ { 0x0000, 0x0000 }, // 0x30eb KATAKANA LETTER RU
+ { 0x0000, 0x0000 }, // 0x30ec KATAKANA LETTER RE
+ { 0x0000, 0x0000 }, // 0x30ed KATAKANA LETTER RO
+ { 0x0000, 0x0000 }, // 0x30ee KATAKANA LETTER SMALL WA
+ { 0x0000, 0x0000 }, // 0x30ef KATAKANA LETTER WA
+ { 0x0000, 0x0000 }, // 0x30f0 KATAKANA LETTER WI
+ { 0x0000, 0x0000 }, // 0x30f1 KATAKANA LETTER WE
+ { 0x0000, 0x0000 }, // 0x30f2 KATAKANA LETTER WO
+ { 0x0000, 0x0000 }, // 0x30f3 KATAKANA LETTER N
+ { 0x30a6, 0x309b }, // 0x30f4 KATAKANA LETTER VU --> KATAKANA LETTER U + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30f5 KATAKANA LETTER SMALL KA
+ { 0x0000, 0x0000 }, // 0x30f6 KATAKANA LETTER SMALL KE
+ { 0x30ef, 0x309b }, // 0x30f7 KATAKANA LETTER VA --> KATAKANA LETTER WA + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x30f0, 0x309b }, // 0x30f8 KATAKANA LETTER VI --> KATAKANA LETTER WI + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x30f1, 0x309b }, // 0x30f9 KATAKANA LETTER VE --> KATAKANA LETTER WE + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x30f2, 0x309b }, // 0x30fa KATAKANA LETTER VO --> KATAKANA LETTER WO + COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30fb KATAKANA MIDDLE DOT
+ { 0x0000, 0x0000 }, // 0x30fc KATAKANA-HIRAGANA PROLONGED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30fd KATAKANA ITERATION MARK
+ { 0x0000, 0x0000 }, // 0x30fe KATAKANA VOICED ITERATION MARK
+ { 0x0000, 0x0000 } // 0x30ff
};
@@ -250,13 +250,13 @@ const decomposition_table_entry_t decomposition_table[] = {
Halfwidth and Fullwidth Forms (U+FF00..U+FFEF)
ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt
ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.html
- http://charts.unicode.org/Web/UFF00.html
+ http://charts.unicode.org/Web/UFF00.html
*/
#define FULL2HALF_NORMAL 0x01
#define FULL2HALF_ASC_FUNCTION 0x02
-#define FULL2HALF_KATAKANA_ONLY 0x04
-
+#define FULL2HALF_KATAKANA_ONLY 0x04
+
UnicodePairWithFlag full2half[] = {
{ 0x2015, 0xFF70, FULL2HALF_ASC_FUNCTION }, // HORIZONTAL BAR --> KATAKANA-HIRAGANA PROLONGED SOUND MARK
{ 0x2018, 0x0060, FULL2HALF_ASC_FUNCTION }, // LEFT SINGLE QUOTATION MARK => GRAVE ACCENT
@@ -495,7 +495,7 @@ UnicodePairWithFlag full2half[] = {
/*
Exceptional conversion table for ASC function
-*/
+*/
UnicodePairWithFlag full2halfASCException[] = {
{ 0xFFE5, 0x005C, FULL2HALF_ASC_FUNCTION } // FULLWIDTH YEN SIGN --> REVERSE SOLIDUS
};
@@ -507,198 +507,198 @@ UnicodePairWithFlag full2halfASCException[] = {
*/
const sal_Unicode composition_table[][2] = {
- { 0x0000, 0x0000 }, // 0x3040
- { 0x0000, 0x0000 }, // 0x3041 HIRAGANA LETTER SMALL A
- { 0x0000, 0x0000 }, // 0x3042 HIRAGANA LETTER A
- { 0x0000, 0x0000 }, // 0x3043 HIRAGANA LETTER SMALL I
- { 0x0000, 0x0000 }, // 0x3044 HIRAGANA LETTER I
- { 0x0000, 0x0000 }, // 0x3045 HIRAGANA LETTER SMALL U
- { 0x3094, 0x0000 }, // 0x3046 HIRAGANA LETTER U --> HIRAGANA LETTER VU
- { 0x0000, 0x0000 }, // 0x3047 HIRAGANA LETTER SMALL E
- { 0x0000, 0x0000 }, // 0x3048 HIRAGANA LETTER E
- { 0x0000, 0x0000 }, // 0x3049 HIRAGANA LETTER SMALL O
- { 0x0000, 0x0000 }, // 0x304a HIRAGANA LETTER O
- { 0x304c, 0x0000 }, // 0x304b HIRAGANA LETTER KA --> HIRAGANA LETTER GA
- { 0x0000, 0x0000 }, // 0x304c HIRAGANA LETTER GA
- { 0x304e, 0x0000 }, // 0x304d HIRAGANA LETTER KI --> HIRAGANA LETTER GI
- { 0x0000, 0x0000 }, // 0x304e HIRAGANA LETTER GI
- { 0x3050, 0x0000 }, // 0x304f HIRAGANA LETTER KU --> HIRAGANA LETTER GU
- { 0x0000, 0x0000 }, // 0x3050 HIRAGANA LETTER GU
- { 0x3052, 0x0000 }, // 0x3051 HIRAGANA LETTER KE --> HIRAGANA LETTER GE
- { 0x0000, 0x0000 }, // 0x3052 HIRAGANA LETTER GE
- { 0x3054, 0x0000 }, // 0x3053 HIRAGANA LETTER KO --> HIRAGANA LETTER GO
- { 0x0000, 0x0000 }, // 0x3054 HIRAGANA LETTER GO
- { 0x3056, 0x0000 }, // 0x3055 HIRAGANA LETTER SA --> HIRAGANA LETTER ZA
- { 0x0000, 0x0000 }, // 0x3056 HIRAGANA LETTER ZA
- { 0x3058, 0x0000 }, // 0x3057 HIRAGANA LETTER SI --> HIRAGANA LETTER ZI
- { 0x0000, 0x0000 }, // 0x3058 HIRAGANA LETTER ZI
- { 0x305a, 0x0000 }, // 0x3059 HIRAGANA LETTER SU --> HIRAGANA LETTER ZU
- { 0x0000, 0x0000 }, // 0x305a HIRAGANA LETTER ZU
- { 0x305c, 0x0000 }, // 0x305b HIRAGANA LETTER SE --> HIRAGANA LETTER ZE
- { 0x0000, 0x0000 }, // 0x305c HIRAGANA LETTER ZE
- { 0x305e, 0x0000 }, // 0x305d HIRAGANA LETTER SO --> HIRAGANA LETTER ZO
- { 0x0000, 0x0000 }, // 0x305e HIRAGANA LETTER ZO
- { 0x3060, 0x0000 }, // 0x305f HIRAGANA LETTER TA --> HIRAGANA LETTER DA
- { 0x0000, 0x0000 }, // 0x3060 HIRAGANA LETTER DA
- { 0x3062, 0x0000 }, // 0x3061 HIRAGANA LETTER TI --> HIRAGANA LETTER DI
- { 0x0000, 0x0000 }, // 0x3062 HIRAGANA LETTER DI
- { 0x0000, 0x0000 }, // 0x3063 HIRAGANA LETTER SMALL TU
- { 0x3065, 0x0000 }, // 0x3064 HIRAGANA LETTER TU --> HIRAGANA LETTER DU
- { 0x0000, 0x0000 }, // 0x3065 HIRAGANA LETTER DU
- { 0x3067, 0x0000 }, // 0x3066 HIRAGANA LETTER TE --> HIRAGANA LETTER DE
- { 0x0000, 0x0000 }, // 0x3067 HIRAGANA LETTER DE
- { 0x3069, 0x0000 }, // 0x3068 HIRAGANA LETTER TO --> HIRAGANA LETTER DO
- { 0x0000, 0x0000 }, // 0x3069 HIRAGANA LETTER DO
- { 0x0000, 0x0000 }, // 0x306a HIRAGANA LETTER NA
- { 0x0000, 0x0000 }, // 0x306b HIRAGANA LETTER NI
- { 0x0000, 0x0000 }, // 0x306c HIRAGANA LETTER NU
- { 0x0000, 0x0000 }, // 0x306d HIRAGANA LETTER NE
- { 0x0000, 0x0000 }, // 0x306e HIRAGANA LETTER NO
- { 0x3070, 0x3071 }, // 0x306f HIRAGANA LETTER HA --> HIRAGANA LETTER BA or HIRAGANA LETTER PA
- { 0x0000, 0x0000 }, // 0x3070 HIRAGANA LETTER BA
- { 0x0000, 0x0000 }, // 0x3071 HIRAGANA LETTER PA
- { 0x3073, 0x3074 }, // 0x3072 HIRAGANA LETTER HI --> HIRAGANA LETTER BI or HIRAGANA LETTER PI
- { 0x0000, 0x0000 }, // 0x3073 HIRAGANA LETTER BI
- { 0x0000, 0x0000 }, // 0x3074 HIRAGANA LETTER PI
- { 0x3076, 0x3077 }, // 0x3075 HIRAGANA LETTER HU --> HIRAGANA LETTER BU or HIRAGANA LETTER PU
- { 0x0000, 0x0000 }, // 0x3076 HIRAGANA LETTER BU
- { 0x0000, 0x0000 }, // 0x3077 HIRAGANA LETTER PU
- { 0x3079, 0x307a }, // 0x3078 HIRAGANA LETTER HE --> HIRAGANA LETTER BE or HIRAGANA LETTER PE
- { 0x0000, 0x0000 }, // 0x3079 HIRAGANA LETTER BE
- { 0x0000, 0x0000 }, // 0x307a HIRAGANA LETTER PE
- { 0x307c, 0x307d }, // 0x307b HIRAGANA LETTER HO --> HIRAGANA LETTER BO or HIRAGANA LETTER PO
- { 0x0000, 0x0000 }, // 0x307c HIRAGANA LETTER BO
- { 0x0000, 0x0000 }, // 0x307d HIRAGANA LETTER PO
- { 0x0000, 0x0000 }, // 0x307e HIRAGANA LETTER MA
- { 0x0000, 0x0000 }, // 0x307f HIRAGANA LETTER MI
- { 0x0000, 0x0000 }, // 0x3080 HIRAGANA LETTER MU
- { 0x0000, 0x0000 }, // 0x3081 HIRAGANA LETTER ME
- { 0x0000, 0x0000 }, // 0x3082 HIRAGANA LETTER MO
- { 0x0000, 0x0000 }, // 0x3083 HIRAGANA LETTER SMALL YA
- { 0x0000, 0x0000 }, // 0x3084 HIRAGANA LETTER YA
- { 0x0000, 0x0000 }, // 0x3085 HIRAGANA LETTER SMALL YU
- { 0x0000, 0x0000 }, // 0x3086 HIRAGANA LETTER YU
- { 0x0000, 0x0000 }, // 0x3087 HIRAGANA LETTER SMALL YO
- { 0x0000, 0x0000 }, // 0x3088 HIRAGANA LETTER YO
- { 0x0000, 0x0000 }, // 0x3089 HIRAGANA LETTER RA
- { 0x0000, 0x0000 }, // 0x308a HIRAGANA LETTER RI
- { 0x0000, 0x0000 }, // 0x308b HIRAGANA LETTER RU
- { 0x0000, 0x0000 }, // 0x308c HIRAGANA LETTER RE
- { 0x0000, 0x0000 }, // 0x308d HIRAGANA LETTER RO
- { 0x0000, 0x0000 }, // 0x308e HIRAGANA LETTER SMALL WA
- { 0x0000, 0x0000 }, // 0x308f HIRAGANA LETTER WA
- { 0x0000, 0x0000 }, // 0x3090 HIRAGANA LETTER WI
- { 0x0000, 0x0000 }, // 0x3091 HIRAGANA LETTER WE
- { 0x0000, 0x0000 }, // 0x3092 HIRAGANA LETTER WO
- { 0x0000, 0x0000 }, // 0x3093 HIRAGANA LETTER N
- { 0x0000, 0x0000 }, // 0x3094 HIRAGANA LETTER VU
- { 0x0000, 0x0000 }, // 0x3095
- { 0x0000, 0x0000 }, // 0x3096
- { 0x0000, 0x0000 }, // 0x3097
- { 0x0000, 0x0000 }, // 0x3098
- { 0x0000, 0x0000 }, // 0x3099 COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x309a COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x309b KATAKANA-HIRAGANA VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x309c KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
- { 0x0000, 0x0000 }, // 0x309d HIRAGANA ITERATION MARK
- { 0x0000, 0x0000 }, // 0x309e HIRAGANA VOICED ITERATION MARK
- { 0x0000, 0x0000 }, // 0x309f
- { 0x0000, 0x0000 }, // 0x30a0
- { 0x0000, 0x0000 }, // 0x30a1 KATAKANA LETTER SMALL A
- { 0x0000, 0x0000 }, // 0x30a2 KATAKANA LETTER A
- { 0x0000, 0x0000 }, // 0x30a3 KATAKANA LETTER SMALL I
- { 0x0000, 0x0000 }, // 0x30a4 KATAKANA LETTER I
- { 0x0000, 0x0000 }, // 0x30a5 KATAKANA LETTER SMALL U
- { 0x30f4, 0x0000 }, // 0x30a6 KATAKANA LETTER U --> KATAKANA LETTER VU
- { 0x0000, 0x0000 }, // 0x30a7 KATAKANA LETTER SMALL E
- { 0x0000, 0x0000 }, // 0x30a8 KATAKANA LETTER E
- { 0x0000, 0x0000 }, // 0x30a9 KATAKANA LETTER SMALL O
- { 0x0000, 0x0000 }, // 0x30aa KATAKANA LETTER O
- { 0x30ac, 0x0000 }, // 0x30ab KATAKANA LETTER KA --> KATAKANA LETTER GA
- { 0x0000, 0x0000 }, // 0x30ac KATAKANA LETTER GA
- { 0x30ae, 0x0000 }, // 0x30ad KATAKANA LETTER KI --> KATAKANA LETTER GI
- { 0x0000, 0x0000 }, // 0x30ae KATAKANA LETTER GI
- { 0x30b0, 0x0000 }, // 0x30af KATAKANA LETTER KU --> KATAKANA LETTER GU
- { 0x0000, 0x0000 }, // 0x30b0 KATAKANA LETTER GU
- { 0x30b2, 0x0000 }, // 0x30b1 KATAKANA LETTER KE --> KATAKANA LETTER GE
- { 0x0000, 0x0000 }, // 0x30b2 KATAKANA LETTER GE
- { 0x30b4, 0x0000 }, // 0x30b3 KATAKANA LETTER KO --> KATAKANA LETTER GO
- { 0x0000, 0x0000 }, // 0x30b4 KATAKANA LETTER GO
- { 0x30b6, 0x0000 }, // 0x30b5 KATAKANA LETTER SA --> KATAKANA LETTER ZA
- { 0x0000, 0x0000 }, // 0x30b6 KATAKANA LETTER ZA
- { 0x30b8, 0x0000 }, // 0x30b7 KATAKANA LETTER SI --> KATAKANA LETTER ZI
- { 0x0000, 0x0000 }, // 0x30b8 KATAKANA LETTER ZI
- { 0x30ba, 0x0000 }, // 0x30b9 KATAKANA LETTER SU --> KATAKANA LETTER ZU
- { 0x0000, 0x0000 }, // 0x30ba KATAKANA LETTER ZU
- { 0x30bc, 0x0000 }, // 0x30bb KATAKANA LETTER SE --> KATAKANA LETTER ZE
- { 0x0000, 0x0000 }, // 0x30bc KATAKANA LETTER ZE
- { 0x30be, 0x0000 }, // 0x30bd KATAKANA LETTER SO --> KATAKANA LETTER ZO
- { 0x0000, 0x0000 }, // 0x30be KATAKANA LETTER ZO
- { 0x30c0, 0x0000 }, // 0x30bf KATAKANA LETTER TA --> KATAKANA LETTER DA
- { 0x0000, 0x0000 }, // 0x30c0 KATAKANA LETTER DA
- { 0x30c2, 0x0000 }, // 0x30c1 KATAKANA LETTER TI --> KATAKANA LETTER DI
- { 0x0000, 0x0000 }, // 0x30c2 KATAKANA LETTER DI
- { 0x0000, 0x0000 }, // 0x30c3 KATAKANA LETTER SMALL TU
- { 0x30c5, 0x0000 }, // 0x30c4 KATAKANA LETTER TU --> KATAKANA LETTER DU
- { 0x0000, 0x0000 }, // 0x30c5 KATAKANA LETTER DU
- { 0x30c7, 0x0000 }, // 0x30c6 KATAKANA LETTER TE --> KATAKANA LETTER DE
- { 0x0000, 0x0000 }, // 0x30c7 KATAKANA LETTER DE
- { 0x30c9, 0x0000 }, // 0x30c8 KATAKANA LETTER TO --> KATAKANA LETTER DO
- { 0x0000, 0x0000 }, // 0x30c9 KATAKANA LETTER DO
- { 0x0000, 0x0000 }, // 0x30ca KATAKANA LETTER NA
- { 0x0000, 0x0000 }, // 0x30cb KATAKANA LETTER NI
- { 0x0000, 0x0000 }, // 0x30cc KATAKANA LETTER NU
- { 0x0000, 0x0000 }, // 0x30cd KATAKANA LETTER NE
- { 0x0000, 0x0000 }, // 0x30ce KATAKANA LETTER NO
- { 0x30d0, 0x30d1 }, // 0x30cf KATAKANA LETTER HA --> KATAKANA LETTER BA or KATAKANA LETTER PA
- { 0x0000, 0x0000 }, // 0x30d0 KATAKANA LETTER BA
- { 0x0000, 0x0000 }, // 0x30d1 KATAKANA LETTER PA
- { 0x30d3, 0x30d4 }, // 0x30d2 KATAKANA LETTER HI --> KATAKANA LETTER BI or KATAKANA LETTER PI
- { 0x0000, 0x0000 }, // 0x30d3 KATAKANA LETTER BI
- { 0x0000, 0x0000 }, // 0x30d4 KATAKANA LETTER PI
- { 0x30d6, 0x30d7 }, // 0x30d5 KATAKANA LETTER HU --> KATAKANA LETTER BU or KATAKANA LETTER PU
- { 0x0000, 0x0000 }, // 0x30d6 KATAKANA LETTER BU
- { 0x0000, 0x0000 }, // 0x30d7 KATAKANA LETTER PU
- { 0x30d9, 0x30da }, // 0x30d8 KATAKANA LETTER HE --> KATAKANA LETTER BE or KATAKANA LETTER PE
- { 0x0000, 0x0000 }, // 0x30d9 KATAKANA LETTER BE
- { 0x0000, 0x0000 }, // 0x30da KATAKANA LETTER PE
- { 0x30dc, 0x30dd }, // 0x30db KATAKANA LETTER HO --> KATAKANA LETTER BO or KATAKANA LETTER PO
- { 0x0000, 0x0000 }, // 0x30dc KATAKANA LETTER BO
- { 0x0000, 0x0000 }, // 0x30dd KATAKANA LETTER PO
- { 0x0000, 0x0000 }, // 0x30de KATAKANA LETTER MA
- { 0x0000, 0x0000 }, // 0x30df KATAKANA LETTER MI
- { 0x0000, 0x0000 }, // 0x30e0 KATAKANA LETTER MU
- { 0x0000, 0x0000 }, // 0x30e1 KATAKANA LETTER ME
- { 0x0000, 0x0000 }, // 0x30e2 KATAKANA LETTER MO
- { 0x0000, 0x0000 }, // 0x30e3 KATAKANA LETTER SMALL YA
- { 0x0000, 0x0000 }, // 0x30e4 KATAKANA LETTER YA
- { 0x0000, 0x0000 }, // 0x30e5 KATAKANA LETTER SMALL YU
- { 0x0000, 0x0000 }, // 0x30e6 KATAKANA LETTER YU
- { 0x0000, 0x0000 }, // 0x30e7 KATAKANA LETTER SMALL YO
- { 0x0000, 0x0000 }, // 0x30e8 KATAKANA LETTER YO
- { 0x0000, 0x0000 }, // 0x30e9 KATAKANA LETTER RA
- { 0x0000, 0x0000 }, // 0x30ea KATAKANA LETTER RI
- { 0x0000, 0x0000 }, // 0x30eb KATAKANA LETTER RU
- { 0x0000, 0x0000 }, // 0x30ec KATAKANA LETTER RE
- { 0x0000, 0x0000 }, // 0x30ed KATAKANA LETTER RO
- { 0x0000, 0x0000 }, // 0x30ee KATAKANA LETTER SMALL WA
- { 0x30f7, 0x0000 }, // 0x30ef KATAKANA LETTER WA --> KATAKANA LETTER VA
- { 0x30f8, 0x0000 }, // 0x30f0 KATAKANA LETTER WI --> KATAKANA LETTER VI
- { 0x30f9, 0x0000 }, // 0x30f1 KATAKANA LETTER WE --> KATAKANA LETTER VE
- { 0x30fa, 0x0000 }, // 0x30f2 KATAKANA LETTER WO --> KATAKANA LETTER VO
- { 0x0000, 0x0000 }, // 0x30f3 KATAKANA LETTER N
- { 0x0000, 0x0000 }, // 0x30f4 KATAKANA LETTER VU
- { 0x0000, 0x0000 }, // 0x30f5 KATAKANA LETTER SMALL KA
- { 0x0000, 0x0000 }, // 0x30f6 KATAKANA LETTER SMALL KE
- { 0x0000, 0x0000 }, // 0x30f7 KATAKANA LETTER VA
- { 0x0000, 0x0000 }, // 0x30f8 KATAKANA LETTER VI
- { 0x0000, 0x0000 }, // 0x30f9 KATAKANA LETTER VE
- { 0x0000, 0x0000 }, // 0x30fa KATAKANA LETTER VO
- { 0x0000, 0x0000 }, // 0x30fb KATAKANA MIDDLE DOT
- { 0x0000, 0x0000 }, // 0x30fc KATAKANA-HIRAGANA PROLONGED SOUND MARK
- { 0x0000, 0x0000 }, // 0x30fd KATAKANA ITERATION MARK
- { 0x0000, 0x0000 }, // 0x30fe KATAKANA VOICED ITERATION MARK
- { 0x0000, 0x0000 } // 0x30ff
+ { 0x0000, 0x0000 }, // 0x3040
+ { 0x0000, 0x0000 }, // 0x3041 HIRAGANA LETTER SMALL A
+ { 0x0000, 0x0000 }, // 0x3042 HIRAGANA LETTER A
+ { 0x0000, 0x0000 }, // 0x3043 HIRAGANA LETTER SMALL I
+ { 0x0000, 0x0000 }, // 0x3044 HIRAGANA LETTER I
+ { 0x0000, 0x0000 }, // 0x3045 HIRAGANA LETTER SMALL U
+ { 0x3094, 0x0000 }, // 0x3046 HIRAGANA LETTER U --> HIRAGANA LETTER VU
+ { 0x0000, 0x0000 }, // 0x3047 HIRAGANA LETTER SMALL E
+ { 0x0000, 0x0000 }, // 0x3048 HIRAGANA LETTER E
+ { 0x0000, 0x0000 }, // 0x3049 HIRAGANA LETTER SMALL O
+ { 0x0000, 0x0000 }, // 0x304a HIRAGANA LETTER O
+ { 0x304c, 0x0000 }, // 0x304b HIRAGANA LETTER KA --> HIRAGANA LETTER GA
+ { 0x0000, 0x0000 }, // 0x304c HIRAGANA LETTER GA
+ { 0x304e, 0x0000 }, // 0x304d HIRAGANA LETTER KI --> HIRAGANA LETTER GI
+ { 0x0000, 0x0000 }, // 0x304e HIRAGANA LETTER GI
+ { 0x3050, 0x0000 }, // 0x304f HIRAGANA LETTER KU --> HIRAGANA LETTER GU
+ { 0x0000, 0x0000 }, // 0x3050 HIRAGANA LETTER GU
+ { 0x3052, 0x0000 }, // 0x3051 HIRAGANA LETTER KE --> HIRAGANA LETTER GE
+ { 0x0000, 0x0000 }, // 0x3052 HIRAGANA LETTER GE
+ { 0x3054, 0x0000 }, // 0x3053 HIRAGANA LETTER KO --> HIRAGANA LETTER GO
+ { 0x0000, 0x0000 }, // 0x3054 HIRAGANA LETTER GO
+ { 0x3056, 0x0000 }, // 0x3055 HIRAGANA LETTER SA --> HIRAGANA LETTER ZA
+ { 0x0000, 0x0000 }, // 0x3056 HIRAGANA LETTER ZA
+ { 0x3058, 0x0000 }, // 0x3057 HIRAGANA LETTER SI --> HIRAGANA LETTER ZI
+ { 0x0000, 0x0000 }, // 0x3058 HIRAGANA LETTER ZI
+ { 0x305a, 0x0000 }, // 0x3059 HIRAGANA LETTER SU --> HIRAGANA LETTER ZU
+ { 0x0000, 0x0000 }, // 0x305a HIRAGANA LETTER ZU
+ { 0x305c, 0x0000 }, // 0x305b HIRAGANA LETTER SE --> HIRAGANA LETTER ZE
+ { 0x0000, 0x0000 }, // 0x305c HIRAGANA LETTER ZE
+ { 0x305e, 0x0000 }, // 0x305d HIRAGANA LETTER SO --> HIRAGANA LETTER ZO
+ { 0x0000, 0x0000 }, // 0x305e HIRAGANA LETTER ZO
+ { 0x3060, 0x0000 }, // 0x305f HIRAGANA LETTER TA --> HIRAGANA LETTER DA
+ { 0x0000, 0x0000 }, // 0x3060 HIRAGANA LETTER DA
+ { 0x3062, 0x0000 }, // 0x3061 HIRAGANA LETTER TI --> HIRAGANA LETTER DI
+ { 0x0000, 0x0000 }, // 0x3062 HIRAGANA LETTER DI
+ { 0x0000, 0x0000 }, // 0x3063 HIRAGANA LETTER SMALL TU
+ { 0x3065, 0x0000 }, // 0x3064 HIRAGANA LETTER TU --> HIRAGANA LETTER DU
+ { 0x0000, 0x0000 }, // 0x3065 HIRAGANA LETTER DU
+ { 0x3067, 0x0000 }, // 0x3066 HIRAGANA LETTER TE --> HIRAGANA LETTER DE
+ { 0x0000, 0x0000 }, // 0x3067 HIRAGANA LETTER DE
+ { 0x3069, 0x0000 }, // 0x3068 HIRAGANA LETTER TO --> HIRAGANA LETTER DO
+ { 0x0000, 0x0000 }, // 0x3069 HIRAGANA LETTER DO
+ { 0x0000, 0x0000 }, // 0x306a HIRAGANA LETTER NA
+ { 0x0000, 0x0000 }, // 0x306b HIRAGANA LETTER NI
+ { 0x0000, 0x0000 }, // 0x306c HIRAGANA LETTER NU
+ { 0x0000, 0x0000 }, // 0x306d HIRAGANA LETTER NE
+ { 0x0000, 0x0000 }, // 0x306e HIRAGANA LETTER NO
+ { 0x3070, 0x3071 }, // 0x306f HIRAGANA LETTER HA --> HIRAGANA LETTER BA or HIRAGANA LETTER PA
+ { 0x0000, 0x0000 }, // 0x3070 HIRAGANA LETTER BA
+ { 0x0000, 0x0000 }, // 0x3071 HIRAGANA LETTER PA
+ { 0x3073, 0x3074 }, // 0x3072 HIRAGANA LETTER HI --> HIRAGANA LETTER BI or HIRAGANA LETTER PI
+ { 0x0000, 0x0000 }, // 0x3073 HIRAGANA LETTER BI
+ { 0x0000, 0x0000 }, // 0x3074 HIRAGANA LETTER PI
+ { 0x3076, 0x3077 }, // 0x3075 HIRAGANA LETTER HU --> HIRAGANA LETTER BU or HIRAGANA LETTER PU
+ { 0x0000, 0x0000 }, // 0x3076 HIRAGANA LETTER BU
+ { 0x0000, 0x0000 }, // 0x3077 HIRAGANA LETTER PU
+ { 0x3079, 0x307a }, // 0x3078 HIRAGANA LETTER HE --> HIRAGANA LETTER BE or HIRAGANA LETTER PE
+ { 0x0000, 0x0000 }, // 0x3079 HIRAGANA LETTER BE
+ { 0x0000, 0x0000 }, // 0x307a HIRAGANA LETTER PE
+ { 0x307c, 0x307d }, // 0x307b HIRAGANA LETTER HO --> HIRAGANA LETTER BO or HIRAGANA LETTER PO
+ { 0x0000, 0x0000 }, // 0x307c HIRAGANA LETTER BO
+ { 0x0000, 0x0000 }, // 0x307d HIRAGANA LETTER PO
+ { 0x0000, 0x0000 }, // 0x307e HIRAGANA LETTER MA
+ { 0x0000, 0x0000 }, // 0x307f HIRAGANA LETTER MI
+ { 0x0000, 0x0000 }, // 0x3080 HIRAGANA LETTER MU
+ { 0x0000, 0x0000 }, // 0x3081 HIRAGANA LETTER ME
+ { 0x0000, 0x0000 }, // 0x3082 HIRAGANA LETTER MO
+ { 0x0000, 0x0000 }, // 0x3083 HIRAGANA LETTER SMALL YA
+ { 0x0000, 0x0000 }, // 0x3084 HIRAGANA LETTER YA
+ { 0x0000, 0x0000 }, // 0x3085 HIRAGANA LETTER SMALL YU
+ { 0x0000, 0x0000 }, // 0x3086 HIRAGANA LETTER YU
+ { 0x0000, 0x0000 }, // 0x3087 HIRAGANA LETTER SMALL YO
+ { 0x0000, 0x0000 }, // 0x3088 HIRAGANA LETTER YO
+ { 0x0000, 0x0000 }, // 0x3089 HIRAGANA LETTER RA
+ { 0x0000, 0x0000 }, // 0x308a HIRAGANA LETTER RI
+ { 0x0000, 0x0000 }, // 0x308b HIRAGANA LETTER RU
+ { 0x0000, 0x0000 }, // 0x308c HIRAGANA LETTER RE
+ { 0x0000, 0x0000 }, // 0x308d HIRAGANA LETTER RO
+ { 0x0000, 0x0000 }, // 0x308e HIRAGANA LETTER SMALL WA
+ { 0x0000, 0x0000 }, // 0x308f HIRAGANA LETTER WA
+ { 0x0000, 0x0000 }, // 0x3090 HIRAGANA LETTER WI
+ { 0x0000, 0x0000 }, // 0x3091 HIRAGANA LETTER WE
+ { 0x0000, 0x0000 }, // 0x3092 HIRAGANA LETTER WO
+ { 0x0000, 0x0000 }, // 0x3093 HIRAGANA LETTER N
+ { 0x0000, 0x0000 }, // 0x3094 HIRAGANA LETTER VU
+ { 0x0000, 0x0000 }, // 0x3095
+ { 0x0000, 0x0000 }, // 0x3096
+ { 0x0000, 0x0000 }, // 0x3097
+ { 0x0000, 0x0000 }, // 0x3098
+ { 0x0000, 0x0000 }, // 0x3099 COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x309a COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x309b KATAKANA-HIRAGANA VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x309c KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x309d HIRAGANA ITERATION MARK
+ { 0x0000, 0x0000 }, // 0x309e HIRAGANA VOICED ITERATION MARK
+ { 0x0000, 0x0000 }, // 0x309f
+ { 0x0000, 0x0000 }, // 0x30a0
+ { 0x0000, 0x0000 }, // 0x30a1 KATAKANA LETTER SMALL A
+ { 0x0000, 0x0000 }, // 0x30a2 KATAKANA LETTER A
+ { 0x0000, 0x0000 }, // 0x30a3 KATAKANA LETTER SMALL I
+ { 0x0000, 0x0000 }, // 0x30a4 KATAKANA LETTER I
+ { 0x0000, 0x0000 }, // 0x30a5 KATAKANA LETTER SMALL U
+ { 0x30f4, 0x0000 }, // 0x30a6 KATAKANA LETTER U --> KATAKANA LETTER VU
+ { 0x0000, 0x0000 }, // 0x30a7 KATAKANA LETTER SMALL E
+ { 0x0000, 0x0000 }, // 0x30a8 KATAKANA LETTER E
+ { 0x0000, 0x0000 }, // 0x30a9 KATAKANA LETTER SMALL O
+ { 0x0000, 0x0000 }, // 0x30aa KATAKANA LETTER O
+ { 0x30ac, 0x0000 }, // 0x30ab KATAKANA LETTER KA --> KATAKANA LETTER GA
+ { 0x0000, 0x0000 }, // 0x30ac KATAKANA LETTER GA
+ { 0x30ae, 0x0000 }, // 0x30ad KATAKANA LETTER KI --> KATAKANA LETTER GI
+ { 0x0000, 0x0000 }, // 0x30ae KATAKANA LETTER GI
+ { 0x30b0, 0x0000 }, // 0x30af KATAKANA LETTER KU --> KATAKANA LETTER GU
+ { 0x0000, 0x0000 }, // 0x30b0 KATAKANA LETTER GU
+ { 0x30b2, 0x0000 }, // 0x30b1 KATAKANA LETTER KE --> KATAKANA LETTER GE
+ { 0x0000, 0x0000 }, // 0x30b2 KATAKANA LETTER GE
+ { 0x30b4, 0x0000 }, // 0x30b3 KATAKANA LETTER KO --> KATAKANA LETTER GO
+ { 0x0000, 0x0000 }, // 0x30b4 KATAKANA LETTER GO
+ { 0x30b6, 0x0000 }, // 0x30b5 KATAKANA LETTER SA --> KATAKANA LETTER ZA
+ { 0x0000, 0x0000 }, // 0x30b6 KATAKANA LETTER ZA
+ { 0x30b8, 0x0000 }, // 0x30b7 KATAKANA LETTER SI --> KATAKANA LETTER ZI
+ { 0x0000, 0x0000 }, // 0x30b8 KATAKANA LETTER ZI
+ { 0x30ba, 0x0000 }, // 0x30b9 KATAKANA LETTER SU --> KATAKANA LETTER ZU
+ { 0x0000, 0x0000 }, // 0x30ba KATAKANA LETTER ZU
+ { 0x30bc, 0x0000 }, // 0x30bb KATAKANA LETTER SE --> KATAKANA LETTER ZE
+ { 0x0000, 0x0000 }, // 0x30bc KATAKANA LETTER ZE
+ { 0x30be, 0x0000 }, // 0x30bd KATAKANA LETTER SO --> KATAKANA LETTER ZO
+ { 0x0000, 0x0000 }, // 0x30be KATAKANA LETTER ZO
+ { 0x30c0, 0x0000 }, // 0x30bf KATAKANA LETTER TA --> KATAKANA LETTER DA
+ { 0x0000, 0x0000 }, // 0x30c0 KATAKANA LETTER DA
+ { 0x30c2, 0x0000 }, // 0x30c1 KATAKANA LETTER TI --> KATAKANA LETTER DI
+ { 0x0000, 0x0000 }, // 0x30c2 KATAKANA LETTER DI
+ { 0x0000, 0x0000 }, // 0x30c3 KATAKANA LETTER SMALL TU
+ { 0x30c5, 0x0000 }, // 0x30c4 KATAKANA LETTER TU --> KATAKANA LETTER DU
+ { 0x0000, 0x0000 }, // 0x30c5 KATAKANA LETTER DU
+ { 0x30c7, 0x0000 }, // 0x30c6 KATAKANA LETTER TE --> KATAKANA LETTER DE
+ { 0x0000, 0x0000 }, // 0x30c7 KATAKANA LETTER DE
+ { 0x30c9, 0x0000 }, // 0x30c8 KATAKANA LETTER TO --> KATAKANA LETTER DO
+ { 0x0000, 0x0000 }, // 0x30c9 KATAKANA LETTER DO
+ { 0x0000, 0x0000 }, // 0x30ca KATAKANA LETTER NA
+ { 0x0000, 0x0000 }, // 0x30cb KATAKANA LETTER NI
+ { 0x0000, 0x0000 }, // 0x30cc KATAKANA LETTER NU
+ { 0x0000, 0x0000 }, // 0x30cd KATAKANA LETTER NE
+ { 0x0000, 0x0000 }, // 0x30ce KATAKANA LETTER NO
+ { 0x30d0, 0x30d1 }, // 0x30cf KATAKANA LETTER HA --> KATAKANA LETTER BA or KATAKANA LETTER PA
+ { 0x0000, 0x0000 }, // 0x30d0 KATAKANA LETTER BA
+ { 0x0000, 0x0000 }, // 0x30d1 KATAKANA LETTER PA
+ { 0x30d3, 0x30d4 }, // 0x30d2 KATAKANA LETTER HI --> KATAKANA LETTER BI or KATAKANA LETTER PI
+ { 0x0000, 0x0000 }, // 0x30d3 KATAKANA LETTER BI
+ { 0x0000, 0x0000 }, // 0x30d4 KATAKANA LETTER PI
+ { 0x30d6, 0x30d7 }, // 0x30d5 KATAKANA LETTER HU --> KATAKANA LETTER BU or KATAKANA LETTER PU
+ { 0x0000, 0x0000 }, // 0x30d6 KATAKANA LETTER BU
+ { 0x0000, 0x0000 }, // 0x30d7 KATAKANA LETTER PU
+ { 0x30d9, 0x30da }, // 0x30d8 KATAKANA LETTER HE --> KATAKANA LETTER BE or KATAKANA LETTER PE
+ { 0x0000, 0x0000 }, // 0x30d9 KATAKANA LETTER BE
+ { 0x0000, 0x0000 }, // 0x30da KATAKANA LETTER PE
+ { 0x30dc, 0x30dd }, // 0x30db KATAKANA LETTER HO --> KATAKANA LETTER BO or KATAKANA LETTER PO
+ { 0x0000, 0x0000 }, // 0x30dc KATAKANA LETTER BO
+ { 0x0000, 0x0000 }, // 0x30dd KATAKANA LETTER PO
+ { 0x0000, 0x0000 }, // 0x30de KATAKANA LETTER MA
+ { 0x0000, 0x0000 }, // 0x30df KATAKANA LETTER MI
+ { 0x0000, 0x0000 }, // 0x30e0 KATAKANA LETTER MU
+ { 0x0000, 0x0000 }, // 0x30e1 KATAKANA LETTER ME
+ { 0x0000, 0x0000 }, // 0x30e2 KATAKANA LETTER MO
+ { 0x0000, 0x0000 }, // 0x30e3 KATAKANA LETTER SMALL YA
+ { 0x0000, 0x0000 }, // 0x30e4 KATAKANA LETTER YA
+ { 0x0000, 0x0000 }, // 0x30e5 KATAKANA LETTER SMALL YU
+ { 0x0000, 0x0000 }, // 0x30e6 KATAKANA LETTER YU
+ { 0x0000, 0x0000 }, // 0x30e7 KATAKANA LETTER SMALL YO
+ { 0x0000, 0x0000 }, // 0x30e8 KATAKANA LETTER YO
+ { 0x0000, 0x0000 }, // 0x30e9 KATAKANA LETTER RA
+ { 0x0000, 0x0000 }, // 0x30ea KATAKANA LETTER RI
+ { 0x0000, 0x0000 }, // 0x30eb KATAKANA LETTER RU
+ { 0x0000, 0x0000 }, // 0x30ec KATAKANA LETTER RE
+ { 0x0000, 0x0000 }, // 0x30ed KATAKANA LETTER RO
+ { 0x0000, 0x0000 }, // 0x30ee KATAKANA LETTER SMALL WA
+ { 0x30f7, 0x0000 }, // 0x30ef KATAKANA LETTER WA --> KATAKANA LETTER VA
+ { 0x30f8, 0x0000 }, // 0x30f0 KATAKANA LETTER WI --> KATAKANA LETTER VI
+ { 0x30f9, 0x0000 }, // 0x30f1 KATAKANA LETTER WE --> KATAKANA LETTER VE
+ { 0x30fa, 0x0000 }, // 0x30f2 KATAKANA LETTER WO --> KATAKANA LETTER VO
+ { 0x0000, 0x0000 }, // 0x30f3 KATAKANA LETTER N
+ { 0x0000, 0x0000 }, // 0x30f4 KATAKANA LETTER VU
+ { 0x0000, 0x0000 }, // 0x30f5 KATAKANA LETTER SMALL KA
+ { 0x0000, 0x0000 }, // 0x30f6 KATAKANA LETTER SMALL KE
+ { 0x0000, 0x0000 }, // 0x30f7 KATAKANA LETTER VA
+ { 0x0000, 0x0000 }, // 0x30f8 KATAKANA LETTER VI
+ { 0x0000, 0x0000 }, // 0x30f9 KATAKANA LETTER VE
+ { 0x0000, 0x0000 }, // 0x30fa KATAKANA LETTER VO
+ { 0x0000, 0x0000 }, // 0x30fb KATAKANA MIDDLE DOT
+ { 0x0000, 0x0000 }, // 0x30fc KATAKANA-HIRAGANA PROLONGED SOUND MARK
+ { 0x0000, 0x0000 }, // 0x30fd KATAKANA ITERATION MARK
+ { 0x0000, 0x0000 }, // 0x30fe KATAKANA VOICED ITERATION MARK
+ { 0x0000, 0x0000 } // 0x30ff
};
@@ -706,13 +706,13 @@ const sal_Unicode composition_table[][2] = {
Halfwidth and Fullwidth Forms (U+FF00..U+FFEF)
ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt
ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.html
- http://charts.unicode.org/Web/UFF00.html
+ http://charts.unicode.org/Web/UFF00.html
*/
#define HALF2FULL_NORMAL 0x01
#define HALF2FULL_JIS_FUNCTION 0x02
-#define HALF2FULL_KATAKANA_ONLY 0x04
-
+#define HALF2FULL_KATAKANA_ONLY 0x04
+
UnicodePairWithFlag half2full[] = {
{ 0x0020, 0x3000, HALF2FULL_NORMAL }, // SPACE --> IDEOGRAPHIC SPACE
{ 0x0021, 0xFF01, HALF2FULL_NORMAL | HALF2FULL_JIS_FUNCTION }, // EXCLAMATION MARK --> FULLWIDTH EXCLAMATION MARK
@@ -946,7 +946,7 @@ UnicodePairWithFlag half2full[] = {
/*
Exceptional conversion table for JIS function
-*/
+*/
UnicodePairWithFlag half2fullJISException[] = {
{ 0x0022, 0x201D, HALF2FULL_JIS_FUNCTION }, // QUOTATION MARK --> RIGHT DOUBLE QUOTATION MARK
{ 0x0027, 0x2019, HALF2FULL_JIS_FUNCTION }, // APOSTROPHE --> RIGHT SINGLE QUOTATION MARK
diff --git a/l10ntools/inc/cfgmerge.hxx b/l10ntools/inc/cfgmerge.hxx
index 2416cc5d2c69..f0138e7af68c 100644
--- a/l10ntools/inc/cfgmerge.hxx
+++ b/l10ntools/inc/cfgmerge.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ private:
ByteStringHashMap sText;
public:
- CfgStackData( const ByteString &rTag, const ByteString &rId )
+ CfgStackData( const ByteString &rTag, const ByteString &rId )
: sTagType( rTag ), sIdentifier( rId ) {};
ByteString &GetTagType() { return sTagType; }
@@ -77,7 +77,7 @@ public:
CfgStack() : CfgStackList( 10, 10 ) {}
~CfgStack();
- ULONG Push( CfgStackData *pStackData );
+ ULONG Push( CfgStackData *pStackData );
CfgStackData *Push( const ByteString &rTag, const ByteString &rId );
CfgStackData *Pop() { return Remove( Count() - 1 ); }
@@ -90,7 +90,7 @@ public:
// class CfgParser
//
-class CfgParser
+class CfgParser
{
protected:
ByteString sCurrentResTyp;
@@ -104,8 +104,8 @@ protected:
BOOL bLocalize;
- virtual void WorkOnText(
- ByteString &rText,
+ virtual void WorkOnText(
+ ByteString &rText,
const ByteString &nLangIndex )=0;
virtual void WorkOnRessourceEnd()=0;
@@ -117,11 +117,11 @@ protected:
private:
int ExecuteAnalyzedToken( int nToken, char *pToken );
std::vector<ByteString> aLanguages;
- void AddText(
- ByteString &rText,
+ void AddText(
+ ByteString &rText,
const ByteString &rIsoLang,
const ByteString &rResTyp );
-
+
BOOL IsTokenClosed( const ByteString &rToken );
public:
@@ -155,14 +155,14 @@ private:
ByteString sPath;
std::vector<ByteString> aLanguages;
protected:
- void WorkOnText(
- ByteString &rText,
+ void WorkOnText(
+ ByteString &rText,
const ByteString &rIsoLang
);
void WorkOnRessourceEnd();
void Output( const ByteString& rOutput );
-public:
+public:
CfgExport(
const ByteString &rOutputFile,
const ByteString &rProject,
@@ -181,14 +181,14 @@ private:
MergeDataFile *pMergeDataFile;
std::vector<ByteString> aLanguages;
ResData *pResData;
-
+
BOOL bGerman;
ByteString sFilename;
BOOL bEnglish;
protected:
- void WorkOnText(
- ByteString &rText,
+ void WorkOnText(
+ ByteString &rText,
const ByteString &nLangIndex );
void WorkOnRessourceEnd();
diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx
index 887ce700f9fc..f3ca74b5f4f9 100644
--- a/l10ntools/inc/export.hxx
+++ b/l10ntools/inc/export.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#ifndef _EXPORT_HXX
#define _EXPORT_HXX
@@ -35,7 +35,7 @@
#endif
-// #define MERGE_SOURCE_LANGUAGES <- To merge en-US and de resource
+// #define MERGE_SOURCE_LANGUAGES <- To merge en-US and de resource
#include <tools/string.hxx>
#include <tools/list.hxx>
@@ -48,7 +48,7 @@
#include <iterator> /* std::iterator*/
#include <set> /* std::set*/
#include <vector> /* std::vector*/
-#include <queue>
+#include <queue>
#include <string>
#include <unistd.h>
@@ -56,7 +56,7 @@
#include <direct.h>
#endif
-#define NO_TRANSLATE_ISO "x-no-translate"
+#define NO_TRANSLATE_ISO "x-no-translate"
#define JAPANESE_ISO "ja"
@@ -133,20 +133,20 @@ public:
* Purpose: holds mandatory data to export a single res (used with ResStack)
******************************************************************************/
-#define ID_LEVEL_NULL 0x0000
-#define ID_LEVEL_AUTOID 0x0001
-#define ID_LEVEL_TEXT 0x0002
-#define ID_LEVEL_FIELDNAME 0x0003
-#define ID_LEVEL_ACCESSPATH 0x0004
+#define ID_LEVEL_NULL 0x0000
+#define ID_LEVEL_AUTOID 0x0001
+#define ID_LEVEL_TEXT 0x0002
+#define ID_LEVEL_FIELDNAME 0x0003
+#define ID_LEVEL_ACCESSPATH 0x0004
#define ID_LEVEL_IDENTIFIER 0x0005
-#define ID_LEVEL_LISTINDEX 0x0006
+#define ID_LEVEL_LISTINDEX 0x0006
class ResData
{
public:
~ResData();
BOOL SetId( const ByteString &rId, USHORT nLevel );
-
+
USHORT nWidth;
USHORT nChildIndex;
USHORT nIdLevel;
@@ -183,22 +183,22 @@ public:
ByteStringHashMap aFallbackData;
ByteStringHashMap aMergedLanguages;
- ExportList *pStringList;
- ExportList *pUIEntries;
- ExportList *pItemList;
- ExportList *pFilterList;
+ ExportList *pStringList;
+ ExportList *pUIEntries;
+ ExportList *pItemList;
+ ExportList *pFilterList;
ExportList *pPairedList;
-
+
ByteString sPForm;
void Dump();
void addFallbackData( ByteString& sId , const ByteString& sText );
bool getFallbackData( ByteString& sId , ByteString& sText);
-
+
void addMergedLanguage( ByteString& sLang );
bool isMerged( ByteString& sLang );
ResData( const ByteString &rPF, const ByteString &rGId )
- :
+ :
nWidth( 0 ),
nChildIndex( 0 ),
nIdLevel( ID_LEVEL_NULL ),
@@ -218,7 +218,7 @@ public:
sTextTyp( "Text" ),
pStringList( NULL ),
pUIEntries( NULL ),
- pItemList( NULL ),
+ pItemList( NULL ),
pFilterList( NULL ),
pPairedList( NULL ),
sPForm( rPF )
@@ -227,7 +227,7 @@ public:
sPForm.EraseAllChars( '\r' );
};
ResData( const ByteString &rPF, const ByteString &rGId , const ByteString &rFilename )
- :
+ :
nChildIndex( 0 ),
nIdLevel( ID_LEVEL_NULL ),
bChild( FALSE ),
@@ -247,7 +247,7 @@ public:
sTextTyp( "Text" ),
pStringList( NULL ),
pUIEntries( NULL ),
- pItemList( NULL ),
+ pItemList( NULL ),
pFilterList( NULL ),
pPairedList( NULL ),
sPForm( rPF )
@@ -269,19 +269,19 @@ public:
* Purpose: syntax check and export of *.src, called from lexer
******************************************************************************/
-#define LIST_NON 0x0000
-#define LIST_STRING 0x0001
-#define LIST_FILTER 0x0002
-#define LIST_ITEM 0x0004
+#define LIST_NON 0x0000
+#define LIST_STRING 0x0001
+#define LIST_FILTER 0x0002
+#define LIST_ITEM 0x0004
#define LIST_PAIRED 0x0005
-#define LIST_UIENTRIES 0x0008
-#define STRING_TYP_TEXT 0x0010
-#define STRING_TYP_HELPTEXT 0x0020
-#define STRING_TYP_QUICKHELPTEXT 0x0040
-#define STRING_TYP_TITLE 0x0080
+#define LIST_UIENTRIES 0x0008
+#define STRING_TYP_TEXT 0x0010
+#define STRING_TYP_HELPTEXT 0x0020
+#define STRING_TYP_QUICKHELPTEXT 0x0040
+#define STRING_TYP_TITLE 0x0080
-#define MERGE_MODE_NORMAL 0x0000
-#define MERGE_MODE_LIST 0x0001
+#define MERGE_MODE_NORMAL 0x0000
+#define MERGE_MODE_LIST 0x0001
DECLARE_LIST( ResStack, ResData * )
// forwards
@@ -291,20 +291,20 @@ class ParserQueue;
class Export
{
private:
- WordTransformer *pWordTransformer;
+ WordTransformer *pWordTransformer;
- CharSet aCharSet; // used charset in src
+ CharSet aCharSet; // used charset in src
SvFileStream aOutput;
+
+ ResStack aResStack; // stack for parsing recursive
- ResStack aResStack; // stack for parsing recursive
-
- ByteString sActPForm; // hold cur. system
+ ByteString sActPForm; // hold cur. system
- BOOL bDefine; // cur. res. in a define?
- BOOL bNextMustBeDefineEOL; // define but no \ at lineend
- ULONG nLevel; // res. recursiv? how deep?
- USHORT nList; // cur. res. is String- or FilterList
+ BOOL bDefine; // cur. res. in a define?
+ BOOL bNextMustBeDefineEOL; // define but no \ at lineend
+ ULONG nLevel; // res. recursiv? how deep?
+ USHORT nList; // cur. res. is String- or FilterList
ByteString nListLang;
ULONG nListIndex;
ULONG nListLevel;
@@ -315,20 +315,20 @@ private:
BOOL bMergeMode;
ByteString sMergeSrc;
ByteString sLastListLine;
- BOOL bError; // any errors while export?
+ BOOL bError; // any errors while export?
BOOL bReadOver;
BOOL bDontWriteOutput;
ByteString sLastTextTyp;
static bool isInitialized;
ByteString sFilename;
-
+
public:
ParserQueue* pParseQueue; // public ?
static ByteString sLanguages; // public ?
static ByteString sForcedLanguages; // public ?
-
-
+
+
static bool skipProject( ByteString sPrj ) ;
static void InitLanguages( bool bMergeMode = false );
static void InitForcedLanguages( bool bMergeMode = false );
@@ -339,19 +339,19 @@ public:
static void RemoveUTF8ByteOrderMarker( ByteString &rString );
static bool hasUTF8ByteOrderMarker( const ByteString &rString );
static void RemoveUTF8ByteOrderMarkerFromFile( const ByteString &rFilename );
- static bool fileHasUTF8ByteOrderMarker( const ByteString &rString );
+ static bool fileHasUTF8ByteOrderMarker( const ByteString &rString );
static ByteString GetIsoLangByIndex( USHORT nIndex );
static void QuotHTML( ByteString &rString );
static bool CopyFile( const ByteString& source , const ByteString& dest );
static void QuotHTMLXRM( ByteString &rString );
static void UnquotHTML( ByteString &rString );
-
+
static const char* GetEnv( const char *pVar );
static int getCurrentDirectory( rtl::OUString& base_fqurl , rtl::OUString& base );
static bool isSourceLanguage( const ByteString &sLanguage );
- static bool isAllowed( const ByteString &sLanguage );
+ static bool isAllowed( const ByteString &sLanguage );
static bool LanguageAllowed( const ByteString &nLanguage );
static void Languages( std::vector<ByteString>::const_iterator& begin , std::vector<ByteString>::const_iterator& end );
@@ -360,7 +360,7 @@ public:
static void getCurrentDir( std::string& dir );
static void replaceEncoding( ByteString& rString );
-
+
static ByteString GetFallbackLanguage( const ByteString nLanguage );
static void FillInFallbacks( ResData *pResData );
static void FillInListFallbacks( ExportList *pList, const ByteString &nSource, const ByteString &nFallback );
@@ -368,7 +368,7 @@ public:
static BOOL ConvertLineEnds( ByteString sSource, ByteString sDestination );
static ByteString GetNativeFile( ByteString sSource );
static DirEntry GetTempFile();
-
+
static void DumpExportList( ByteString& sListName , ExportList& aList );
static ByteString DumpMap( ByteString& sMapName , ByteStringHashMap& aMap );
@@ -381,16 +381,16 @@ private:
BOOL WriteData( ResData *pResData, BOOL bCreateNew = FALSE );// called befor dest. cur ResData
BOOL WriteExportList( ResData *pResData, ExportList *pExportList,
const ByteString &rTyp, BOOL bCreateNew = FALSE );
-
+
ByteString MergePairedList( ByteString& sLine , ByteString& sText );
- ByteString FullId(); // creates cur. GID
-
+ ByteString FullId(); // creates cur. GID
+
bool PairedListFallback( ByteString& sText , ResData& aResData );
-
- ByteString GetPairedListID ( const ByteString& sText );
- ByteString GetPairedListString ( const ByteString& sText );
- ByteString StripList ( const ByteString& sText );
+
+ ByteString GetPairedListID ( const ByteString& sText );
+ ByteString GetPairedListString ( const ByteString& sText );
+ ByteString StripList ( const ByteString& sText );
void UnmergeUTF8( ByteString& sOrig );
void InsertListEntry( const ByteString &rText, const ByteString &rLine );
@@ -398,7 +398,7 @@ private:
ByteString GetText( const ByteString &rSource, int nToken );
BOOL PrepareTextToMerge( ByteString &rText, USHORT nTyp,
- ByteString &nLangIndex, ResData *pResData );
+ ByteString &nLangIndex, ResData *pResData );
void MergeRest( ResData *pResData, USHORT nMode = MERGE_MODE_NORMAL );
void ConvertMergeContent( ByteString &rText );
@@ -417,7 +417,7 @@ public:
~Export();
void Init();
- int Execute( int nToken, const char * pToken ); // called from lexer
+ int Execute( int nToken, const char * pToken ); // called from lexer
void SetError() { bError = TRUE; }
BOOL GetError() { return bError; }
};
@@ -446,14 +446,14 @@ private:
public:
PFormEntrys( const ByteString &rPForm ) : ByteString( rPForm ) {};
ByteString Dump();
- void InsertEntry(
+ void InsertEntry(
const ByteString &nId ,
const ByteString &rText,
const ByteString &rQuickHelpText,
- const ByteString &rTitle
+ const ByteString &rTitle
)
{
-
+
sText[ nId ] = rText;
bTextFirst[ nId ] = true;
sQuickHelpText[ nId ] = rQuickHelpText;
@@ -476,7 +476,7 @@ public:
class MergeDataFile;
-class MergeData
+class MergeData
{
friend class MergeDataFile;
private:
@@ -491,7 +491,7 @@ public:
~MergeData();
PFormEntrys* InsertEntry( const ByteString &rPForm );
PFormEntrys* GetPFormEntrys( ResData *pResData );
-
+
void Insert( const ByteString& rPFO , PFormEntrys* pfEntrys );
PFormEntrys* GetPFObject( const ByteString& rPFO );
@@ -514,28 +514,28 @@ private:
ByteString sErrorLog;
SvFileStream aErrLog;
ByteStringSet aLanguageSet;
- MergeDataHashMap aMap;
+ MergeDataHashMap aMap;
ByteStringHashMap aLanguageMap;
std::vector<ByteString> aLanguageList;
ByteStringHashMap aFilenames;
-
+
public:
MergeDataFile( const ByteString &rFileName, const ByteString& rFile , BOOL bErrLog, CharSet aCharSet, bool bCaseSensitive = false );
~MergeDataFile();
-
-
+
+
std::vector<ByteString> GetLanguages();
MergeData *GetMergeData( ResData *pResData , bool bCaseSensitve = false );
-
+
PFormEntrys *GetPFormEntrys( ResData *pResData );
PFormEntrys *GetPFormEntrysCaseSensitive( ResData *pResData );
void InsertEntry( const ByteString &rTYP, const ByteString &rGID, const ByteString &rLID,
- const ByteString &rPFO,
+ const ByteString &rPFO,
const ByteString &nLang , const ByteString &rTEXT,
- const ByteString &rQHTEXT, const ByteString &rTITLE ,
- const ByteString &sFilename , bool bCaseSensitive
+ const ByteString &rQHTEXT, const ByteString &rTITLE ,
+ const ByteString &sFilename , bool bCaseSensitive
);
static USHORT GetLangIndex( USHORT nId );
static ByteString CreateKey( const ByteString& rTYP , const ByteString& rGID , const ByteString& rLID , const ByteString& rFilename , bool bCaseSensitive = false );
@@ -556,7 +556,7 @@ public:
class ParserQueue
{
public:
-
+
ParserQueue( Export& aExportObj );
~ParserQueue();
@@ -565,12 +565,12 @@ public:
bool bNextIsM; // public ?
bool bLastWasM; // public ?
bool bMflag; // public ?
-
+
void Close();
private:
// Future / Next
std::queue<QueueEntry>* aQueueNext;
- // Current
+ // Current
std::queue<QueueEntry>* aQueueCur;
// Ref
std::queue<QueueEntry>* aQref;
diff --git a/l10ntools/inc/gsicheck.hxx b/l10ntools/inc/gsicheck.hxx
index 590f9dc97e9d..6af0eecbaf35 100644
--- a/l10ntools/inc/gsicheck.hxx
+++ b/l10ntools/inc/gsicheck.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
// class GSILine
//
enum LineFormat { FORMAT_GSI, FORMAT_SDF, FORMAT_UNKNOWN };
-
+
class GSILine : public ByteString
{
private:
diff --git a/l10ntools/inc/helpmerge.hxx b/l10ntools/inc/helpmerge.hxx
index e2ec54daa637..874a936a5581 100644
--- a/l10ntools/inc/helpmerge.hxx
+++ b/l10ntools/inc/helpmerge.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,15 +43,15 @@ private:
ByteString sHelpFile;
bool bUTF8;
bool bHasInputList;
-
-/// Copy fallback language String (ENUS,DE) into position of the numeric language iso code
+
+/// Copy fallback language String (ENUS,DE) into position of the numeric language iso code
/// @PRECOND 0 < langIdx_in < MAX_IDX
static void FillInFallbacks( LangHashMap& rElem_out, ByteString sLangIdx_in );
/// Debugmethod, prints the content of the map to stdout
static void Dump( LangHashMap* rElem_in , const ByteString sKey_in );
-/// Debugmethod, prints the content of the map to stdout
+/// Debugmethod, prints the content of the map to stdout
static void Dump( XMLHashMap* rElem_in ) ;
@@ -64,13 +64,13 @@ public:
/// @PRECOND rHelpFile is valid
static bool CreateSDF( const ByteString &rSDFFile_in, const ByteString &rPrj_in, const ByteString &rRoot_in,
const ByteString &sHelpFile, XMLFile *pXmlFile, const ByteString &rGsi1 );
-
+
static void parse_languages( std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile );
-/// Method merges the String from the SDFfile into XMLfile. Both Strings must
-/// point to existing files.
+/// Method merges the String from the SDFfile into XMLfile. Both Strings must
+/// point to existing files.
bool Merge( const ByteString &rSDFFile_in, const ByteString &rDestinationFile_in , ByteString& sLanguage , MergeDataFile& aMergeDataFile );
- bool Merge( const ByteString &rSDFFile, const ByteString &rPathX , const ByteString &rPathY , bool bISO
+ bool Merge( const ByteString &rSDFFile, const ByteString &rPathX , const ByteString &rPathY , bool bISO
, const std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile , bool bCreateDir );
private:
diff --git a/l10ntools/inc/inireader.hxx b/l10ntools/inc/inireader.hxx
index d0e236ca4c33..fc996d28a3b8 100644
--- a/l10ntools/inc/inireader.hxx
+++ b/l10ntools/inc/inireader.hxx
@@ -22,14 +22,14 @@ typedef std::hash_map< string, stringmap* > INImap;
class INIreader
{
private:
- UErrorCode section_status;
- UErrorCode parameter_status;
+ UErrorCode section_status;
+ UErrorCode parameter_status;
RegexMatcher* section_match;
RegexMatcher* parameter_match;
- public:
+ public:
INIreader(): section_status ( U_ZERO_ERROR ) ,
- parameter_status ( U_ZERO_ERROR )
+ parameter_status ( U_ZERO_ERROR )
{
section_match = new RegexMatcher ( "^\\s*\\[([a-zA-Z0-9]*)\\].*" , 0 , section_status );
parameter_match = new RegexMatcher ( "^\\s*([a-zA-Z0-9]*)\\s*=\\s*([a-zA-Z0-9 ]*).*" , 0 , parameter_status ) ;
@@ -39,9 +39,9 @@ class INIreader
delete section_match;
delete parameter_match;
}
- // open "filename", fill hash_map with sections / paramaters
+ // open "filename", fill hash_map with sections / paramaters
bool read( INImap& myMap , string& filename );
-
+
private:
bool is_section( string& line , string& section_str );
bool is_parameter( string& line , string& parameter_key , string& parameter_value );
diff --git a/l10ntools/inc/l10ntools/directory.hxx b/l10ntools/inc/l10ntools/directory.hxx
index 30ceb3f664fc..2178d9823028 100644
--- a/l10ntools/inc/l10ntools/directory.hxx
+++ b/l10ntools/inc/l10ntools/directory.hxx
@@ -49,7 +49,7 @@ class Directory
Directory( const rtl::OUString sFullPath , const rtl::OUString sEntry ) ;
Directory( const ByteString sFullPath );
- static bool lessDir ( const Directory& rKey1, const Directory& rKey2 ) ;
+ static bool lessDir ( const Directory& rKey1, const Directory& rKey2 ) ;
};
}
diff --git a/l10ntools/inc/lngmerge.hxx b/l10ntools/inc/lngmerge.hxx
index b5df781cc5e2..1ffa8d8ea784 100644
--- a/l10ntools/inc/lngmerge.hxx
+++ b/l10ntools/inc/lngmerge.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,12 +30,12 @@
DECLARE_LIST( LngLineList, ByteString * )
-#define LNG_OK 0x0000
-#define LNG_FILE_NOTFOUND 0x0001
-#define LNG_COULD_NOT_OPEN 0x0002
-#define SDF_OK 0x0003
-#define SDF_FILE_NOTFOUND 0x0004
-#define SDF_COULD_NOT_OPEN 0x0005
+#define LNG_OK 0x0000
+#define LNG_FILE_NOTFOUND 0x0001
+#define LNG_COULD_NOT_OPEN 0x0002
+#define SDF_OK 0x0003
+#define SDF_FILE_NOTFOUND 0x0004
+#define SDF_COULD_NOT_OPEN 0x0005
//
// class LngParser
@@ -55,8 +55,8 @@ private:
void FillInFallbacks( ByteStringHashMap Text );
bool isNextGroup( ByteString &sGroup_out , ByteString &sLine_in);
void ReadLine( const ByteString &sLine_in , ByteStringHashMap &rText_inout );
- void WriteSDF( SvFileStream &aSDFStream , ByteStringHashMap &rText_inout ,
- const ByteString &rPrj ,
+ void WriteSDF( SvFileStream &aSDFStream , ByteStringHashMap &rText_inout ,
+ const ByteString &rPrj ,
const ByteString &rRoot , const ByteString &sActFileName , const ByteString &sID );
public:
LngParser( const ByteString &rLngFile, BOOL bUTF8, BOOL bULFFormat );
diff --git a/l10ntools/inc/pch/precompiled_l10ntools.cxx b/l10ntools/inc/pch/precompiled_l10ntools.cxx
index 227eec55ca55..6e942482f294 100644
--- a/l10ntools/inc/pch/precompiled_l10ntools.cxx
+++ b/l10ntools/inc/pch/precompiled_l10ntools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/l10ntools/inc/pch/precompiled_l10ntools.hxx b/l10ntools/inc/pch/precompiled_l10ntools.hxx
index 876028762f2e..2ef72556b07c 100644
--- a/l10ntools/inc/pch/precompiled_l10ntools.hxx
+++ b/l10ntools/inc/pch/precompiled_l10ntools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/l10ntools/inc/srciter.hxx b/l10ntools/inc/srciter.hxx
index 6583381359a4..129fbee46650 100644
--- a/l10ntools/inc/srciter.hxx
+++ b/l10ntools/inc/srciter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,20 +39,20 @@ class SourceTreeIterator
private:
transex::Directory aRootDirectory;
bool bInExecute;
-
+
void ExecuteDirectory( transex::Directory& pDirectory );
protected:
bool bLocal;
bool bSkipLinks;
-
+
public:
SourceTreeIterator( const ByteString &rRootDirectory, const ByteString &rVersion , bool bLocal_in = false);
virtual ~SourceTreeIterator();
BOOL StartExecute();
void EndExecute();
-
+
virtual void OnExecuteDirectory( const rtl::OUString &rDirectory );
};
diff --git a/l10ntools/inc/tagtest.hxx b/l10ntools/inc/tagtest.hxx
index e3756d14bfb8..0c6f91f18e55 100644
--- a/l10ntools/inc/tagtest.hxx
+++ b/l10ntools/inc/tagtest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -133,89 +133,89 @@ public:
};
-#define TAG_GROUPMASK 0xF000
-#define TAG_GROUPSHIFT 12
-
-#define TAG_GROUP( nTag ) (( nTag & TAG_GROUPMASK ) >> TAG_GROUPSHIFT )
-#define TAG_NOGROUP( nTag ) ( nTag & ~TAG_GROUPMASK ) // ~ = Bitweises NOT
-
-#define TAG_NOMORETAGS 0x0
-
-#define TAG_GROUP_FORMAT 0x1
-#define TAG_ON 0x100
-#define TAG_BOLDON ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | TAG_ON | 0x001 )
-#define TAG_BOLDOFF ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | 0x001 )
-#define TAG_ITALICON ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | TAG_ON | 0x002 )
-#define TAG_ITALICOFF ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | 0x002 )
-#define TAG_UNDERLINEON ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | TAG_ON | 0x004 )
-#define TAG_UNDERLINEOFF ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | 0x004 )
-
-#define TAG_GROUP_NOTALLOWED 0x2
-#define TAG_HELPID ( TAG_GROUP_NOTALLOWED << TAG_GROUPSHIFT | 0x001 )
-#define TAG_MODIFY ( TAG_GROUP_NOTALLOWED << TAG_GROUPSHIFT | 0x002 )
-#define TAG_REFNR ( TAG_GROUP_NOTALLOWED << TAG_GROUPSHIFT | 0x004 )
-
-#define TAG_GROUP_STRUCTURE 0x3
-#define TAG_NAME ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x001 )
-#define TAG_HREF ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x002 )
-#define TAG_AVIS ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x004 )
-#define TAG_AHID ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x008 )
-
-#define TAG_TITEL ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x020 )
-#define TAG_KEY ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x040 )
-#define TAG_INDEX ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x080 )
-
-#define TAG_REFSTART ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x100 )
-
-#define TAG_GRAPHIC ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x200 )
-#define TAG_NEXTVERSION ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x400 )
-
-#define TAG_GROUP_SYSSWITCH 0x4
-#define TAG_WIN ( TAG_GROUP_SYSSWITCH << TAG_GROUPSHIFT | 0x001 )
-#define TAG_UNIX ( TAG_GROUP_SYSSWITCH << TAG_GROUPSHIFT | 0x002 )
-#define TAG_MAC ( TAG_GROUP_SYSSWITCH << TAG_GROUPSHIFT | 0x004 )
-#define TAG_OS2 ( TAG_GROUP_SYSSWITCH << TAG_GROUPSHIFT | 0x008 )
-
-#define TAG_GROUP_PROGSWITCH 0x5
-#define TAG_WRITER ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x001 )
-#define TAG_CALC ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x002 )
-#define TAG_DRAW ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x004 )
-#define TAG_IMPRESS ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x008 )
-#define TAG_SCHEDULE ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x010 )
-#define TAG_IMAGE ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x020 )
-#define TAG_MATH ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x040 )
-#define TAG_CHART ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x080 )
-#define TAG_OFFICE ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x100 )
-
-
-#define TAG_GROUP_META 0x6
-#define TAG_OFFICEFULLNAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x001 )
-#define TAG_OFFICENAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x002 )
-#define TAG_OFFICEPATH ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x004 )
-#define TAG_OFFICEVERSION ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x008 )
-#define TAG_PORTALNAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x010 )
-#define TAG_PORTALFULLNAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x020 )
-#define TAG_PORTALPATH ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x040 )
-#define TAG_PORTALVERSION ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x080 )
-#define TAG_PORTALSHORTNAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x100 )
+#define TAG_GROUPMASK 0xF000
+#define TAG_GROUPSHIFT 12
+
+#define TAG_GROUP( nTag ) (( nTag & TAG_GROUPMASK ) >> TAG_GROUPSHIFT )
+#define TAG_NOGROUP( nTag ) ( nTag & ~TAG_GROUPMASK ) // ~ = Bitweises NOT
+
+#define TAG_NOMORETAGS 0x0
+
+#define TAG_GROUP_FORMAT 0x1
+#define TAG_ON 0x100
+#define TAG_BOLDON ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | TAG_ON | 0x001 )
+#define TAG_BOLDOFF ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | 0x001 )
+#define TAG_ITALICON ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | TAG_ON | 0x002 )
+#define TAG_ITALICOFF ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | 0x002 )
+#define TAG_UNDERLINEON ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | TAG_ON | 0x004 )
+#define TAG_UNDERLINEOFF ( TAG_GROUP_FORMAT << TAG_GROUPSHIFT | 0x004 )
+
+#define TAG_GROUP_NOTALLOWED 0x2
+#define TAG_HELPID ( TAG_GROUP_NOTALLOWED << TAG_GROUPSHIFT | 0x001 )
+#define TAG_MODIFY ( TAG_GROUP_NOTALLOWED << TAG_GROUPSHIFT | 0x002 )
+#define TAG_REFNR ( TAG_GROUP_NOTALLOWED << TAG_GROUPSHIFT | 0x004 )
+
+#define TAG_GROUP_STRUCTURE 0x3
+#define TAG_NAME ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x001 )
+#define TAG_HREF ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x002 )
+#define TAG_AVIS ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x004 )
+#define TAG_AHID ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x008 )
+
+#define TAG_TITEL ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x020 )
+#define TAG_KEY ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x040 )
+#define TAG_INDEX ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x080 )
+
+#define TAG_REFSTART ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x100 )
+
+#define TAG_GRAPHIC ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x200 )
+#define TAG_NEXTVERSION ( TAG_GROUP_STRUCTURE << TAG_GROUPSHIFT | 0x400 )
+
+#define TAG_GROUP_SYSSWITCH 0x4
+#define TAG_WIN ( TAG_GROUP_SYSSWITCH << TAG_GROUPSHIFT | 0x001 )
+#define TAG_UNIX ( TAG_GROUP_SYSSWITCH << TAG_GROUPSHIFT | 0x002 )
+#define TAG_MAC ( TAG_GROUP_SYSSWITCH << TAG_GROUPSHIFT | 0x004 )
+#define TAG_OS2 ( TAG_GROUP_SYSSWITCH << TAG_GROUPSHIFT | 0x008 )
+
+#define TAG_GROUP_PROGSWITCH 0x5
+#define TAG_WRITER ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x001 )
+#define TAG_CALC ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x002 )
+#define TAG_DRAW ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x004 )
+#define TAG_IMPRESS ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x008 )
+#define TAG_SCHEDULE ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x010 )
+#define TAG_IMAGE ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x020 )
+#define TAG_MATH ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x040 )
+#define TAG_CHART ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x080 )
+#define TAG_OFFICE ( TAG_GROUP_PROGSWITCH << TAG_GROUPSHIFT | 0x100 )
+
+
+#define TAG_GROUP_META 0x6
+#define TAG_OFFICEFULLNAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x001 )
+#define TAG_OFFICENAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x002 )
+#define TAG_OFFICEPATH ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x004 )
+#define TAG_OFFICEVERSION ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x008 )
+#define TAG_PORTALNAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x010 )
+#define TAG_PORTALFULLNAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x020 )
+#define TAG_PORTALPATH ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x040 )
+#define TAG_PORTALVERSION ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x080 )
+#define TAG_PORTALSHORTNAME ( TAG_GROUP_META << TAG_GROUPSHIFT | 0x100 )
#define TAG_GROUP_SINGLE 0x7
#define TAG_REFINSERT ( TAG_GROUP_SINGLE << TAG_GROUPSHIFT | 0x001 )
-#define TAG_GROUP_MULTI 0x8
-#define TAG_END ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x010 )
-#define TAG_ELSE ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x020 )
-#define TAG_AEND ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x040 )
-#define TAG_VERSIONEND ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x080 )
-#define TAG_ENDGRAPHIC ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x100 )
+#define TAG_GROUP_MULTI 0x8
+#define TAG_END ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x010 )
+#define TAG_ELSE ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x020 )
+#define TAG_AEND ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x040 )
+#define TAG_VERSIONEND ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x080 )
+#define TAG_ENDGRAPHIC ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x100 )
-#define TAG_GROUP_MISC 0x9
-#define TAG_COMMONSTART ( TAG_GROUP_MISC << TAG_GROUPSHIFT | 0x001 )
-#define TAG_COMMONEND ( TAG_GROUP_MISC << TAG_GROUPSHIFT | 0x002 )
+#define TAG_GROUP_MISC 0x9
+#define TAG_COMMONSTART ( TAG_GROUP_MISC << TAG_GROUPSHIFT | 0x001 )
+#define TAG_COMMONEND ( TAG_GROUP_MISC << TAG_GROUPSHIFT | 0x002 )
-#define TAG_UNKNOWN_TAG ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x800 )
+#define TAG_UNKNOWN_TAG ( TAG_GROUP_MULTI << TAG_GROUPSHIFT | 0x800 )
DECLARE_LIST( TokenListImpl, TokenInfo* )
@@ -234,31 +234,31 @@ public:
TokenList() : TokenListImpl(){};
~TokenList(){ Clear(); };
- void Clear()
+ void Clear()
{
for ( ULONG i = 0 ; i < Count() ; i++ )
delete TokenListImpl::GetObject( i );
TokenListImpl::Clear();
}
- void Insert( TokenInfo p, ULONG nIndex = LIST_APPEND )
+ void Insert( TokenInfo p, ULONG nIndex = LIST_APPEND )
{ TokenListImpl::Insert( new TokenInfo(p), nIndex ); }
-/* TokenInfo Remove( ULONG nIndex )
+/* TokenInfo Remove( ULONG nIndex )
{
TokenInfo aT = GetObject( nIndex );
delete TokenListImpl::GetObject( nIndex );
TokenListImpl::Remove( nIndex );
return aT;
}*/
-// TokenInfo Remove( TokenInfo p ){ return Remove( GetPos( p ) ); }
-// TokenInfo GetCurObject() const { return *TokenListImpl::GetCurObject(); }
- TokenInfo& GetObject( ULONG nIndex ) const
+// TokenInfo Remove( TokenInfo p ){ return Remove( GetPos( p ) ); }
+// TokenInfo GetCurObject() const { return *TokenListImpl::GetCurObject(); }
+ TokenInfo& GetObject( ULONG nIndex ) const
{
-// if ( TokenListImpl::GetObject(nIndex) )
+// if ( TokenListImpl::GetObject(nIndex) )
return *TokenListImpl::GetObject(nIndex);
-// else
-// return TokenInfo();
+// else
+// return TokenInfo();
}
-/* ULONG GetPos( const TokenInfo p ) const
+/* ULONG GetPos( const TokenInfo p ) const
{
for ( ULONG i = 0 ; i < Count() ; i++ )
if ( p == GetObject( i ) )
@@ -267,7 +267,7 @@ public:
}*/
TokenList( const TokenList& rList );
-/* {
+/* {
for ( ULONG i = 0 ; i < rList.Count() ; i++ )
{
Insert( rList.GetObject( i ), LIST_APPEND );
@@ -363,8 +363,8 @@ class TokenParser
public:
TokenParser();
void Parse( const String &aCode, ParserMessageList* pList );
-// ParserMessageList& GetErrors(){ return aErrorList; }
-// BOOL HasErrors(){ return ( aErrorList.Count() > 0 ); }
+// ParserMessageList& GetErrors(){ return aErrorList; }
+// BOOL HasErrors(){ return ( aErrorList.Count() > 0 ); }
TokenList& GetTokenList(){ return aParser.GetTokenList(); }
};
@@ -381,11 +381,11 @@ public:
void CheckReference( GSILine *aReference );
void CheckTestee( GSILine *aTestee, BOOL bHasSourceLine, BOOL bFixTags );
-// ParserMessageList& GetReferenceErrors(){ return aReferenceParser.GetErrors(); }
-// BOOL HasReferenceErrors(){ return aReferenceParser.HasErrors(); }
+// ParserMessageList& GetReferenceErrors(){ return aReferenceParser.GetErrors(); }
+// BOOL HasReferenceErrors(){ return aReferenceParser.HasErrors(); }
-// ParserMessageList& GetTesteeErrors(){ return aTesteeParser.GetErrors(); }
-// BOOL HasTesteeErrors(){ return aTesteeParser.HasErrors(); }
+// ParserMessageList& GetTesteeErrors(){ return aTesteeParser.GetErrors(); }
+// BOOL HasTesteeErrors(){ return aTesteeParser.HasErrors(); }
ParserMessageList& GetCompareWarnings(){ return aCompareWarningList; }
BOOL HasCompareWarnings(){ return ( aCompareWarningList.Count() > 0 ); }
diff --git a/l10ntools/inc/tokens.h b/l10ntools/inc/tokens.h
index b8c658ee0c14..b3876034276c 100644
--- a/l10ntools/inc/tokens.h
+++ b/l10ntools/inc/tokens.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,84 +29,84 @@
#ifndef _TOKENS_H
#define _TOKENS_H
+/*------------------------------------------------------ */
/*------------------------------------------------------ */
-/*------------------------------------------------------ */
-/* Tokens for parsing src files */
+/* Tokens for parsing src files */
/*------------------------------------------------------ */
/*------------------------------------------------------ */
-#define IGNOREDTOKENS 400 /* #include | #pragma | //... | ... */
-#define COMMEND 401 /*... */
-#define DEFINEDRES 402 /* Text = { */
-#define ANYTOKEN 404 /* XYZ */
-#define UNKNOWNTOKEN 405 /* XYZ[ \t]$ */
-#define UNKNOWNCONSTRUCTION 406 /* XYZ ( xxx, yyy, zzz ) */
-#define UNKNOWNCHAR 407 /* . */
+#define IGNOREDTOKENS 400 /* #include | #pragma | //... | ... */
+#define COMMEND 401 /*... */
+#define DEFINEDRES 402 /* Text = { */
+#define ANYTOKEN 404 /* XYZ */
+#define UNKNOWNTOKEN 405 /* XYZ[ \t]$ */
+#define UNKNOWNCONSTRUCTION 406 /* XYZ ( xxx, yyy, zzz ) */
+#define UNKNOWNCHAR 407 /* . */
/*------------------------------------------------------ */
/* prev. tokens will not be executed */
-#define FILTER_LEVEL 500
+#define FILTER_LEVEL 500
/* following tokens will be executed */
/*------------------------------------------------------ */
-#define CONDITION 501 /* #if... | #endif ... | ... */
-#define EMPTYLINE 502 /* */
-#define RESSOURCE 503 /* Menu MID_TEST */
-#define RESSOURCEEXPR 504 /* Menu ( MID_TEST + .. ) */
-#define SMALRESSOURCE 505 /* PageItem { */
-#define TEXTLINE 506 /* TEXT = "hhh" */
-#define LONGTEXTLINE 507 /* TEXT = "hhh" TEST "HHH" ... */
-#define TEXT 508 /* "Something like this" */
-#define LEVELUP 509 /* { */
-#define LEVELDOWN 510 /* }; */
-#define APPFONTMAPPING 511 /* MAP_APPFONT(10,10) */
-#define ASSIGNMENT 512 /* Somathing = Anything */
-#define LISTASSIGNMENT 513 /* ...List [xyz]=... */
-#define LISTTEXT 514 /* < "Text" ... > */
-#define RSCDEFINE 515 /* #define MY_TEXT */
-#define RSCDEFINELEND 516 /* */
-#define NEWTEXTINRES 517 /* ### Achtung : Ne... */
-#define UIENTRIES 518 /* UIEntries = { */
-#define PRAGMA 519 /* #pragma ... */
-#define _LISTTEXT 521 /* { "Text" ... } */
-#define TEXTREFID 522 /* Text = 12345 */
-#define LISTRESID 523 /* < 12345; ... > */
-#define _LISTRESID 523 /* { 12345; ... } */
+#define CONDITION 501 /* #if... | #endif ... | ... */
+#define EMPTYLINE 502 /* */
+#define RESSOURCE 503 /* Menu MID_TEST */
+#define RESSOURCEEXPR 504 /* Menu ( MID_TEST + .. ) */
+#define SMALRESSOURCE 505 /* PageItem { */
+#define TEXTLINE 506 /* TEXT = "hhh" */
+#define LONGTEXTLINE 507 /* TEXT = "hhh" TEST "HHH" ... */
+#define TEXT 508 /* "Something like this" */
+#define LEVELUP 509 /* { */
+#define LEVELDOWN 510 /* }; */
+#define APPFONTMAPPING 511 /* MAP_APPFONT(10,10) */
+#define ASSIGNMENT 512 /* Somathing = Anything */
+#define LISTASSIGNMENT 513 /* ...List [xyz]=... */
+#define LISTTEXT 514 /* < "Text" ... > */
+#define RSCDEFINE 515 /* #define MY_TEXT */
+#define RSCDEFINELEND 516 /* */
+#define NEWTEXTINRES 517 /* ### Achtung : Ne... */
+#define UIENTRIES 518 /* UIEntries = { */
+#define PRAGMA 519 /* #pragma ... */
+#define _LISTTEXT 521 /* { "Text" ... } */
+#define TEXTREFID 522 /* Text = 12345 */
+#define LISTRESID 523 /* < 12345; ... > */
+#define _LISTRESID 523 /* { 12345; ... } */
#define NORMDEFINE 524 /* #define ... */
+/*------------------------------------------------------ */
/*------------------------------------------------------ */
-/*------------------------------------------------------ */
-/* Tokens for parsing cfg files */
+/* Tokens for parsing cfg files */
/*------------------------------------------------------ */
/*------------------------------------------------------ */
-#define CFG_TAG 501
-#define CFG_TEXT_START 505
-#define CFG_TEXT_END 506
-#define CFG_TEXTCHAR 507
-#define CFG_CLOSETAG 508
-#define CFG_UNKNOWNTAG 509
-#define CFG_TOKEN_PACKAGE 600
-#define CFG_TOKEN_COMPONENT 601
-#define CFG_TOKEN_CONFIGNAME 602
-#define CFG_TOKEN_TEMPLATE 603
-#define CFG_TOKEN_OORNAME 604
-#define CFG_TOKEN_OORVALUE 605
-#define CFG_TOKEN_NO_TRANSLATE 606
+#define CFG_TAG 501
+#define CFG_TEXT_START 505
+#define CFG_TEXT_END 506
+#define CFG_TEXTCHAR 507
+#define CFG_CLOSETAG 508
+#define CFG_UNKNOWNTAG 509
+#define CFG_TOKEN_PACKAGE 600
+#define CFG_TOKEN_COMPONENT 601
+#define CFG_TOKEN_CONFIGNAME 602
+#define CFG_TOKEN_TEMPLATE 603
+#define CFG_TOKEN_OORNAME 604
+#define CFG_TOKEN_OORVALUE 605
+#define CFG_TOKEN_NO_TRANSLATE 606
+/*------------------------------------------------------ */
/*------------------------------------------------------ */
+/* Tokens for parsing xrm files */
/*------------------------------------------------------ */
-/* Tokens for parsing xrm files */
/*------------------------------------------------------ */
-/*------------------------------------------------------ */
-#define XRM_README_START 501
-#define XRM_README_END 502
-#define XRM_SECTION_START 503
-#define XRM_SECTION_END 504
-#define XRM_PARAGRAPH_START 505
-#define XRM_PARAGRAPH_END 506
-#define XRM_TEXT_START 507
-#define XRM_TEXT_END 508
-#define XRM_LIST_START 509
-#define XRM_LIST_END 510
-#define XML_TEXTCHAR 600
-
+#define XRM_README_START 501
+#define XRM_README_END 502
+#define XRM_SECTION_START 503
+#define XRM_SECTION_END 504
+#define XRM_PARAGRAPH_START 505
+#define XRM_PARAGRAPH_END 506
+#define XRM_TEXT_START 507
+#define XRM_TEXT_END 508
+#define XRM_LIST_START 509
+#define XRM_LIST_END 510
+#define XML_TEXTCHAR 600
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/l10ntools/inc/treeconfig.hxx b/l10ntools/inc/treeconfig.hxx
index ea573943ad2e..f5c3794b8eef 100644
--- a/l10ntools/inc/treeconfig.hxx
+++ b/l10ntools/inc/treeconfig.hxx
@@ -10,14 +10,14 @@ class Treeconfig
{
private:
- INIreader inireader;
+ INIreader inireader;
INImap map;
bool has_config_file;
void getCurrentDir( string& dir );
bool isConfigFilePresent();
public:
-
+
Treeconfig() : has_config_file( false ) { parseConfig(); }
// read the config file, returns true in case a config file had been found
bool parseConfig();
diff --git a/l10ntools/inc/utf8conv.hxx b/l10ntools/inc/utf8conv.hxx
index 3da214a03c6f..98f7760d43e9 100644
--- a/l10ntools/inc/utf8conv.hxx
+++ b/l10ntools/inc/utf8conv.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/l10ntools/inc/wtranode.hxx b/l10ntools/inc/wtranode.hxx
index 6283f4ea0c93..44db809c3b31 100644
--- a/l10ntools/inc/wtranode.hxx
+++ b/l10ntools/inc/wtranode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,61 +41,61 @@ typedef UINT8 BRANCH_T;
-const BRANCH_T C_BR_ALPHABASE = 4;
+const BRANCH_T C_BR_ALPHABASE = 4;
const BRANCH_T C_NR_OF_BRANCHES = 34;
-/** @task
+/** @task
This is a node of the parsing-tree which implements the fuctionality of
class WordTransTree.
WordTransTree is dependant of this class, but NOT the other way!
**/
-class WTT_Node // WordTransTree-Node
+class WTT_Node // WordTransTree-Node
{
public:
enum E_TokenType
{
-// no_token = 0,
+// no_token = 0,
token_to_keep,
token_to_replace
};
// LIFECYCLE
WTT_Node(
- UINT8 i_nValue, // Own branch-value.
- WTT_Node * i_pDefaultBranch,
- WTT_Node * i_pDefaultBranchForAlphas );
- void SetBranch(
+ UINT8 i_nValue, // Own branch-value.
+ WTT_Node * i_pDefaultBranch,
+ WTT_Node * i_pDefaultBranchForAlphas );
+ void SetBranch(
UINT8 i_cBranch,
- WTT_Node * i_pNode );
- void SetAsTokenToReplace(
- const ByteString & i_sReplaceString );
+ WTT_Node * i_pNode );
+ void SetAsTokenToReplace(
+ const ByteString & i_sReplaceString );
~WTT_Node();
// OPERATIONS
- WTT_Node * GetNextNode(
- UINT8 i_cBranch ); /// [0 .. C_NR_OF_BRANCHES-1], sonst GPF !!!
+ WTT_Node * GetNextNode(
+ UINT8 i_cBranch ); /// [0 .. C_NR_OF_BRANCHES-1], sonst GPF !!!
// INQUIRY
- E_TokenType TokenType() const;
+ E_TokenType TokenType() const;
UINT8 Value() const;
- BOOL IsOnDeleting() const;
- const ByteString & ReplaceString() const;
+ BOOL IsOnDeleting() const;
+ const ByteString & ReplaceString() const;
private:
// DATA
- UINT8 nValue;
- E_TokenType eType;
- ByteString sReplaceString;
- WTT_Node * aBranches[C_NR_OF_BRANCHES]; // Mostly DYN pointers.
- char bIsOnDeleting;
+ UINT8 nValue;
+ E_TokenType eType;
+ ByteString sReplaceString;
+ WTT_Node * aBranches[C_NR_OF_BRANCHES]; // Mostly DYN pointers.
+ char bIsOnDeleting;
};
inline WTT_Node *
-WTT_Node::GetNextNode(UINT8 i_cBranch)
+WTT_Node::GetNextNode(UINT8 i_cBranch)
{ return aBranches[i_cBranch]; }
inline WTT_Node::E_TokenType
WTT_Node::TokenType() const
diff --git a/l10ntools/inc/wtratree.hxx b/l10ntools/inc/wtratree.hxx
index a658d27fd1ee..ce6dc0642202 100644
--- a/l10ntools/inc/wtratree.hxx
+++ b/l10ntools/inc/wtratree.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,8 +36,8 @@
// Parameters
#include <tools/string.hxx>
-const INT16 C_NR_OF_WTT_RESULTS = 5;
-const INT16 C_NR_OF_POSSIBLE_CHARS = 256;
+const INT16 C_NR_OF_WTT_RESULTS = 5;
+const INT16 C_NR_OF_POSSIBLE_CHARS = 256;
typedef unsigned char u_char;
@@ -47,7 +47,7 @@ typedef const char * constr;
class WTT_Node;
-/** @task
+/** @task
This class implements the functionality, that class WordTransformer
offers.
WordTransformer is dependant of this class, but NOT the other way!
@@ -63,68 +63,68 @@ class WordTransTree
};
- // LIFECYCLE
+ // LIFECYCLE
WordTransTree(
- CharSet i_nWorkingCharSet = RTL_TEXTENCODING_MS_1252);
- void SetCharSet(
- CharSet i_nWorkingCharSet);
+ CharSet i_nWorkingCharSet = RTL_TEXTENCODING_MS_1252);
+ void SetCharSet(
+ CharSet i_nWorkingCharSet);
~WordTransTree();
- void AddWordPair(
- const ByteString & i_sOldString,
- const ByteString & i_sReplaceString );
+ void AddWordPair(
+ const ByteString & i_sOldString,
+ const ByteString & i_sReplaceString );
// OPERATIONS
- void InitTransformation(
- const char * i_sInput, /// [!=0], a range of i_nInputLength must be valid memory for read.
- UINT32 i_nInputLength,
- UINT32 i_nOutputMaxLength = STRING_MAXLEN - 12 );
- E_Result TransformNextToken();
+ void InitTransformation(
+ const char * i_sInput, /// [!=0], a range of i_nInputLength must be valid memory for read.
+ UINT32 i_nInputLength,
+ UINT32 i_nOutputMaxLength = STRING_MAXLEN - 12 );
+ E_Result TransformNextToken();
// INQUIRY
- BOOL TextEndReached() const;
- const char * Output() const;
+ BOOL TextEndReached() const;
+ const char * Output() const;
// These 3 functions are valid between two calls of
// TransformNextToken():
- E_Result CurResult() const;
- ByteString CurReplacedString() const;
- ByteString CurReplacingString() const;
- char CurHotkey() const;
+ E_Result CurResult() const;
+ ByteString CurReplacedString() const;
+ ByteString CurReplacingString() const;
+ char CurHotkey() const;
private:
// SERVICE FUNCTONS
- UINT8 CalculateBranch(
- u_char i_cInputChar ) const;
+ UINT8 CalculateBranch(
+ u_char i_cInputChar ) const;
- void Handle_Hotkey();
- void Handle_TokenToKeep();
- void Handle_TokenToTransform();
+ void Handle_Hotkey();
+ void Handle_TokenToKeep();
+ void Handle_TokenToTransform();
// DATA
// Fixed data
- const u_char * sInput;
+ const u_char * sInput;
UINT32 nInputLength;
- const u_char * pInputEnd;
+ const u_char * pInputEnd;
- u_char * sOutput; // DYN
- UINT32 nOutputMaxLength;
+ u_char * sOutput; // DYN
+ UINT32 nOutputMaxLength;
- WTT_Node * dpParsingTreeTop; // DYN
- WTT_Node * pUnknownAlpha;
- u_char cChar2Branch[C_NR_OF_POSSIBLE_CHARS];
- u_char c_AE, c_OE, c_UE, c_ae, c_oe, c_ue;
+ WTT_Node * dpParsingTreeTop; // DYN
+ WTT_Node * pUnknownAlpha;
+ u_char cChar2Branch[C_NR_OF_POSSIBLE_CHARS];
+ u_char c_AE, c_OE, c_UE, c_ae, c_oe, c_ue;
// Working data
- const u_char * pInputCurTokenStart;
- const u_char * pInputPosition;
- u_char * pOutputPosition;
- WTT_Node * pCurParseNode;
+ const u_char * pInputCurTokenStart;
+ const u_char * pInputPosition;
+ u_char * pOutputPosition;
+ WTT_Node * pCurParseNode;
// Data which are valid only after a completed call to TransformNextToken()
- E_Result eCurResult;
- u_char cCurHotkey; // Letter wich is used as hotkey
- u_char cCurHotkeySign; // Letter which is used to assign hotkey ('~'or '&') .
+ E_Result eCurResult;
+ u_char cCurHotkey; // Letter wich is used as hotkey
+ u_char cCurHotkeySign; // Letter which is used to assign hotkey ('~'or '&') .
};
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index ac2252d2cedb..3ad046df062c 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,19 +52,19 @@ using namespace ::rtl;
using namespace std;
#include <hash_map> /* std::hashmap*/
-#include <deque> /* std::deque*/
+#include <deque> /* std::deque*/
#include <iterator> /* std::iterator*/
-#include <list> /* std::list*/
-#include <vector> /* std::vector*/
-#define XML_NODE_TYPE_FILE 0x001
-#define XML_NODE_TYPE_ELEMENT 0x002
-#define XML_NODE_TYPE_DATA 0x003
-#define XML_NODE_TYPE_COMMENT 0x004
-#define XML_NODE_TYPE_DEFAULT 0x005
-#define MAX_LANGUAGES 99
+#include <list> /* std::list*/
+#include <vector> /* std::vector*/
+#define XML_NODE_TYPE_FILE 0x001
+#define XML_NODE_TYPE_ELEMENT 0x002
+#define XML_NODE_TYPE_DATA 0x003
+#define XML_NODE_TYPE_COMMENT 0x004
+#define XML_NODE_TYPE_DEFAULT 0x005
+#define MAX_LANGUAGES 99
-//#define TESTDRIVER /* use xml2gsi testclass */
+//#define TESTDRIVER /* use xml2gsi testclass */
//-------------------------------------------------------------------------
/** Holds data of Attributes
@@ -73,25 +73,25 @@ class XMLAttribute : public String
{
private:
String sValue;
-
+
public:
/// creates an attribute
- XMLAttribute(
- const String &rName, // attributes name
- const String &rValue // attributes data
- )
+ XMLAttribute(
+ const String &rName, // attributes name
+ const String &rValue // attributes data
+ )
: String( rName ), sValue( rValue ) {}
/// getting value of an attribue
const String &GetValue() { return sValue; }
-
+
void setValue(const String &rValue){sValue=rValue;}
/// returns true if two attributes are equal and have the same value
- BOOL IsEqual(
- const XMLAttribute &rAttribute // the attribute which has to be equal
+ BOOL IsEqual(
+ const XMLAttribute &rAttribute // the attribute which has to be equal
)
- {
+ {
return (( rAttribute == *this ) && ( rAttribute.sValue == sValue ));
}
};
@@ -149,18 +149,18 @@ private:
static int dbgcnt;
//int nParentPos;
protected:
- XMLParentNode( XMLParentNode *pPar )
- : XMLChildNode( pPar ), pChildList( NULL )
+ XMLParentNode( XMLParentNode *pPar )
+ : XMLChildNode( pPar ), pChildList( NULL )
{
}
XMLParentNode(): pChildList(NULL){
}
/// Copyconstructor
XMLParentNode( const XMLParentNode& );
-
+
XMLParentNode& operator=(const XMLParentNode& obj);
virtual ~XMLParentNode();
-
+
public:
virtual USHORT GetNodeType() = 0;
@@ -169,21 +169,21 @@ public:
XMLChildNodeList *GetChildList() { return pChildList; }
/// adds a new child
- void AddChild(
- XMLChildNode *pChild /// the new child
+ void AddChild(
+ XMLChildNode *pChild /// the new child
);
- void AddChild(
- XMLChildNode *pChild , int pos /// the new child
+ void AddChild(
+ XMLChildNode *pChild , int pos /// the new child
);
-
+
virtual int GetPosition( ByteString id );
int RemoveChild( XMLElement *pRefElement );
void RemoveAndDeleteAllChilds();
/// returns a child element which matches the given one
XMLElement *GetChildElement(
- XMLElement *pRefElement // the reference elelement
+ XMLElement *pRefElement // the reference elelement
);
};
@@ -191,19 +191,19 @@ public:
DECLARE_LIST( XMLStringList, XMLElement* )
-/// Mapping numeric Language code <-> XML Element
+/// Mapping numeric Language code <-> XML Element
typedef std::hash_map< ByteString ,XMLElement* , hashByteString,equalByteString > LangHashMap;
/// Mapping XML Element string identifier <-> Language Map
-typedef std::hash_map<ByteString , LangHashMap* ,
- hashByteString,equalByteString> XMLHashMap;
+typedef std::hash_map<ByteString , LangHashMap* ,
+ hashByteString,equalByteString> XMLHashMap;
/// Mapping iso alpha string code <-> iso numeric code
-typedef std::hash_map<ByteString, int, hashByteString,equalByteString> HashMap;
+typedef std::hash_map<ByteString, int, hashByteString,equalByteString> HashMap;
-/// Mapping XML tag names <-> have localizable strings
-typedef std::hash_map<ByteString , BOOL ,
- hashByteString,equalByteString> TagMap;
+/// Mapping XML tag names <-> have localizable strings
+typedef std::hash_map<ByteString , BOOL ,
+ hashByteString,equalByteString> TagMap;
/** Holds information of a XML file, is root node of tree
*/
@@ -213,52 +213,52 @@ class XMLFile : public XMLParentNode
{
public:
XMLFile() ;
- XMLFile(
+ XMLFile(
const String &rFileName // the file name, empty if created from memory stream
);
XMLFile( const XMLFile& obj ) ;
~XMLFile();
-
- ByteString* GetGroupID(std::deque<ByteString> &groupid);
- void Print( XMLNode *pCur = NULL, USHORT nLevel = 0 );
+
+ ByteString* GetGroupID(std::deque<ByteString> &groupid);
+ void Print( XMLNode *pCur = NULL, USHORT nLevel = 0 );
virtual void SearchL10NElements( XMLParentNode *pCur, int pos = 0 );
- void Extract( XMLFile *pCur = NULL );
- void View();
-// void static Signal_handler(int signo);//void*,oslSignalInfo * pInfo);
- void showType(XMLParentNode* node);
+ void Extract( XMLFile *pCur = NULL );
+ void View();
+// void static Signal_handler(int signo);//void*,oslSignalInfo * pInfo);
+ void showType(XMLParentNode* node);
XMLHashMap* GetStrings(){return XMLStrings;}
- BOOL Write( ByteString &rFilename );
- BOOL Write( ofstream &rStream , XMLNode *pCur = NULL );
+ BOOL Write( ByteString &rFilename );
+ BOOL Write( ofstream &rStream , XMLNode *pCur = NULL );
bool CheckExportStatus( XMLParentNode *pCur = NULL );// , int pos = 0 );
XMLFile& operator=(const XMLFile& obj);
-
- virtual USHORT GetNodeType();
+
+ virtual USHORT GetNodeType();
/// returns file name
const String &GetName() { return sFileName; }
void SetName( const String &rFilename ) { sFileName = rFilename; }
void SetFullName( const String &rFullFilename ) { sFullName = rFullFilename; }
const std::vector<ByteString> getOrder(){ return order; }
-
+
protected:
// writes a string as UTF8 with dos line ends to a given stream
void WriteString( ofstream &rStream, const String &sString );
-
+
// quotes the given text for writing to a file
- void QuotHTML( String &rString );
+ void QuotHTML( String &rString );
- void InsertL10NElement( XMLElement* pElement);
+ void InsertL10NElement( XMLElement* pElement);
// DATA
- String sFileName;
+ String sFileName;
String sFullName;
const ByteString ID,OLDREF,XML_LANG;
- TagMap nodes_localize;
+ TagMap nodes_localize;
XMLHashMap* XMLStrings;
std::vector <ByteString> order;
@@ -273,31 +273,31 @@ public:
static void QuotHTML( String &rString );
/// UnQuot the XML characters and restore \n \t
- static void UnQuotHTML ( String &rString );
-
- /// Return the numeric iso language code
- //USHORT GetLangByIsoLang( const ByteString &rIsoLang );
+ static void UnQuotHTML ( String &rString );
+ /// Return the numeric iso language code
+ //USHORT GetLangByIsoLang( const ByteString &rIsoLang );
+
/// Return the alpha strings representation
- ByteString GetIsoLangByIndex( USHORT nIndex );
-
- static XMLUtil& Instance();
+ ByteString GetIsoLangByIndex( USHORT nIndex );
+
+ static XMLUtil& Instance();
~XMLUtil();
void dump();
private:
- /// Mapping iso alpha string code <-> iso numeric code
+ /// Mapping iso alpha string code <-> iso numeric code
HashMap lMap;
- /// Mapping iso numeric code <-> iso alpha string code
- ByteString isoArray[MAX_LANGUAGES];
+ /// Mapping iso numeric code <-> iso alpha string code
+ ByteString isoArray[MAX_LANGUAGES];
static void UnQuotData( String &rString );
static void UnQuotTags( String &rString );
- XMLUtil();
- XMLUtil(const XMLUtil&);
+ XMLUtil();
+ XMLUtil(const XMLUtil&);
};
@@ -312,37 +312,37 @@ class XMLElement : public XMLParentNode
private:
String sElementName;
XMLAttributeList *pAttributes;
- ByteString project,
+ ByteString project,
filename,
id,
sOldRef,
resourceType,
languageId;
int nPos;
-
+
protected:
void Print(XMLNode *pCur, OUStringBuffer& buffer , bool rootelement);
public:
/// create a element node
XMLElement(){}
- XMLElement(
- const String &rName, // the element name
- XMLParentNode *Parent // parent node of this element
- ): XMLParentNode( Parent ),
- sElementName( rName ),
+ XMLElement(
+ const String &rName, // the element name
+ XMLParentNode *Parent // parent node of this element
+ ): XMLParentNode( Parent ),
+ sElementName( rName ),
pAttributes( NULL ),
- project(""),
- filename(""),
- id(""),
- sOldRef(""),
- resourceType(""),
+ project(""),
+ filename(""),
+ id(""),
+ sOldRef(""),
+ resourceType(""),
languageId(""),
nPos(0)
{
}
~XMLElement();
XMLElement(const XMLElement&);
-
+
XMLElement& operator=(const XMLElement& obj);
/// returns node type XML_NODE_ELEMENT
virtual USHORT GetNodeType();
@@ -359,15 +359,15 @@ public:
void ChangeLanguageTag( const String &rValue );
// Return a ASCII String representation of this object
OString ToOString();
-
+
// Return a Unicode String representation of this object
OUString ToOUString();
-
- bool Equals(OUString refStr);
+
+ bool Equals(OUString refStr);
/// returns a attribute
XMLAttribute *GetAttribute(
- const String &rName // the attribute name
+ const String &rName // the attribute name
);
void SetProject ( ByteString prj ){ project = prj; }
void SetFileName ( ByteString fn ){ filename = fn; }
@@ -375,10 +375,10 @@ public:
void SetResourceType ( ByteString rt ){ resourceType = rt; }
void SetLanguageId ( ByteString lid ){ languageId = lid; }
void SetPos ( int nPos_in ){ nPos = nPos_in; }
- void SetOldRef ( ByteString sOldRef_in ){ sOldRef = sOldRef_in; }
+ void SetOldRef ( ByteString sOldRef_in ){ sOldRef = sOldRef_in; }
virtual int GetPos() { return nPos; }
- ByteString GetProject() { return project; }
+ ByteString GetProject() { return project; }
ByteString GetFileName() { return filename; }
ByteString GetId() { return id; }
ByteString GetOldref() { return sOldRef; }
@@ -400,20 +400,20 @@ private:
public:
/// create a data node
- XMLData(
- const String &rData, // the initial data
- XMLParentNode *Parent // the parent node of this data, typically a element node
- )
- : XMLChildNode( Parent ), sData( rData ) , isNewCreated ( false ){}
- XMLData(
- const String &rData, // the initial data
- XMLParentNode *Parent, // the parent node of this data, typically a element node
+ XMLData(
+ const String &rData, // the initial data
+ XMLParentNode *Parent // the parent node of this data, typically a element node
+ )
+ : XMLChildNode( Parent ), sData( rData ) , isNewCreated ( false ){}
+ XMLData(
+ const String &rData, // the initial data
+ XMLParentNode *Parent, // the parent node of this data, typically a element node
bool newCreated
- )
- : XMLChildNode( Parent ), sData( rData ) , isNewCreated ( newCreated ){}
-
+ )
+ : XMLChildNode( Parent ), sData( rData ) , isNewCreated ( newCreated ){}
+
XMLData(const XMLData& obj);
-
+
XMLData& operator=(const XMLData& obj);
virtual USHORT GetNodeType();
@@ -422,12 +422,12 @@ public:
bool isNew() { return isNewCreated; }
/// adds new character data to the existing one
- void AddData(
- const String &rData // the new data
- );
-
-
-
+ void AddData(
+ const String &rData // the new data
+ );
+
+
+
};
//-------------------------------------------------------------------------
@@ -442,17 +442,17 @@ private:
public:
/// create a comment node
XMLComment(
- const String &rComment, // the comment
- XMLParentNode *Parent // the parent node of this comemnt, typically a element node
+ const String &rComment, // the comment
+ XMLParentNode *Parent // the parent node of this comemnt, typically a element node
)
: XMLChildNode( Parent ), sComment( rComment ) {}
virtual USHORT GetNodeType();
XMLComment( const XMLComment& obj );
-
+
XMLComment& operator=(const XMLComment& obj);
-
+
/// returns the comment
const String &GetComment() { return sComment; }
};
@@ -469,15 +469,15 @@ private:
public:
/// create a comment node
XMLDefault(
- const String &rDefault, // the comment
- XMLParentNode *Parent // the parent node of this comemnt, typically a element node
+ const String &rDefault, // the comment
+ XMLParentNode *Parent // the parent node of this comemnt, typically a element node
)
: XMLChildNode( Parent ), sDefault( rDefault ) {}
XMLDefault(const XMLDefault& obj);
XMLDefault& operator=(const XMLDefault& obj);
-
+
/// returns node type XML_NODE_TYPE_COMMENT
virtual USHORT GetNodeType();
@@ -490,17 +490,17 @@ public:
/** struct for error information, used by class SimpleXMLParser
*/
struct XMLError {
- XML_Error eCode; // the error code
- ULONG nLine; // error line number
- ULONG nColumn; // error column number
- String sMessage; // readable error message
+ XML_Error eCode; // the error code
+ ULONG nLine; // error line number
+ ULONG nColumn; // error column number
+ String sMessage; // readable error message
};
//-------------------------------------------------------------------------
/** validating xml parser, creates a document tree with xml nodes
*/
-
+
class SimpleXMLParser
{
@@ -511,21 +511,21 @@ private:
XMLFile *pXMLFile;
XMLParentNode *pCurNode;
XMLData *pCurData;
-
-
+
+
static void StartElementHandler( void *userData, const XML_Char *name, const XML_Char **atts );
static void EndElementHandler( void *userData, const XML_Char *name );
static void CharacterDataHandler( void *userData, const XML_Char *s, int len );
static void CommentHandler( void *userData, const XML_Char *data );
static void DefaultHandler( void *userData, const XML_Char *s, int len );
-
-
+
+
void StartElement( const XML_Char *name, const XML_Char **atts );
void EndElement( const XML_Char *name );
void CharacterData( const XML_Char *s, int len );
void Comment( const XML_Char *data );
void Default( const XML_Char *s, int len );
-
+
public:
/// creates a new parser
@@ -533,15 +533,15 @@ public:
~SimpleXMLParser();
/// parse a file, returns NULL on criticall errors
- XMLFile *Execute(
+ XMLFile *Execute(
const String &rFullFileName,
- const String &rFileName, // the file name
+ const String &rFileName, // the file name
XMLFile *pXMLFileIn // the XMLFile
);
/// parse a memory stream, returns NULL on criticall errors
- XMLFile *Execute(
- SvMemoryStream *pStream // the stream
+ XMLFile *Execute(
+ SvMemoryStream *pStream // the stream
);
/// returns an error struct
diff --git a/l10ntools/inc/xmlutil.hxx b/l10ntools/inc/xmlutil.hxx
index 2c131a987edf..375ed11922f9 100644
--- a/l10ntools/inc/xmlutil.hxx
+++ b/l10ntools/inc/xmlutil.hxx
@@ -1,11 +1,11 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#define ENGLISH_US 1
-#define ENGLISH_US_ISO "en-US"
-#define ENGLISH_US_PROPERTY "en_US"
-#define ENGLISH_US_INDEX 1
-#define GERMAN_DE 4
-#define GERMAN_DE_ISO "x-german"
-#define GERMAN_DE_INDEX 3
+#define ENGLISH_US 1
+#define ENGLISH_US_ISO "en-US"
+#define ENGLISH_US_PROPERTY "en_US"
+#define ENGLISH_US_INDEX 1
+#define GERMAN_DE 4
+#define GERMAN_DE_ISO "x-german"
+#define GERMAN_DE_INDEX 3
#define GERMAN_ISO2 "de-DE"
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/l10ntools/inc/xrmmerge.hxx b/l10ntools/inc/xrmmerge.hxx
index 7be4d5dc70d0..c0e61f77b29e 100644
--- a/l10ntools/inc/xrmmerge.hxx
+++ b/l10ntools/inc/xrmmerge.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,7 +81,7 @@ public:
//
// class XRMResOutputParser
-//
+//
class XRMResOutputParser : public XRMResParser
{
@@ -137,7 +137,7 @@ private:
ByteString sFilename;
ResData *pResData;
std::vector<ByteString> aLanguages;
-
+
protected:
void WorkOnText(
const ByteString &rOpenTag,
diff --git a/l10ntools/java/jpropex/build.xml b/l10ntools/java/jpropex/build.xml
index d74fb3975d0f..9dd6555d2723 100755
--- a/l10ntools/java/jpropex/build.xml
+++ b/l10ntools/java/jpropex/build.xml
@@ -2,17 +2,17 @@
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-
+
Copyright 2000, 2010 Oracle and/or its affiliates.
-
+
OpenOffice.org - a multi-platform office productivity suite
-
+
This file is part of OpenOffice.org.
-
+
OpenOffice.org is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
-
+
OpenOffice.org is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -23,7 +23,7 @@
version 3 along with OpenOffice.org. If not, see
<http://www.openoffice.org/license.html>
for a copy of the LGPLv3 License.
-
+
-->
<project name="jpropex" default="main" basedir=".">
diff --git a/l10ntools/java/jpropex/java/Main.java b/l10ntools/java/jpropex/java/Main.java
index 23dc477ddec3..d16d04b0644b 100644
--- a/l10ntools/java/jpropex/java/Main.java
+++ b/l10ntools/java/jpropex/java/Main.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,9 +26,9 @@
************************************************************************/
-class Main
+class Main
{
-
+
public static void main( String args[] )
{
JPropEx jpropex = new JPropEx( args );
diff --git a/l10ntools/java/jpropex/java/NoLocalizeFilter.java b/l10ntools/java/jpropex/java/NoLocalizeFilter.java
index 989ee64bfc86..c6058a46c3b6 100644
--- a/l10ntools/java/jpropex/java/NoLocalizeFilter.java
+++ b/l10ntools/java/jpropex/java/NoLocalizeFilter.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,13 +33,13 @@ import java.util.regex.*;
public class NoLocalizeFilter extends FilterInputStream
{
InputStream in;
- Pattern p = Pattern.compile("#[\\s]*x-no-translate");
+ Pattern p = Pattern.compile("#[\\s]*x-no-translate");
public NoLocalizeFilter( InputStream in ) {
super(in);
this.in = in;
}
- public int read(byte[] b, int off, int len) throws IOException
+ public int read(byte[] b, int off, int len) throws IOException
{
String search = new String( b );
Matcher m = p.matcher( search );
diff --git a/l10ntools/java/jpropex/java/OrderedHashMap.java b/l10ntools/java/jpropex/java/OrderedHashMap.java
index a462d598b307..dd8c87ec57a5 100644
--- a/l10ntools/java/jpropex/java/OrderedHashMap.java
+++ b/l10ntools/java/jpropex/java/OrderedHashMap.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,13 +29,13 @@
import java.util.*;
// LinkedHashMap implrementation
-public class OrderedHashMap
+public class OrderedHashMap
{
private HashMap hm = new HashMap();
private LinkedList list = new LinkedList();
public Iterator iterator() { return list.iterator(); }
-
+
public boolean isEmpty() { return hm.isEmpty(); }
public Object get( Object key ) { return hm.get( key ); }
public Object get( int index ) { return hm.get( list.get( index ) ); }
diff --git a/l10ntools/java/jpropex/java/SdfData.java b/l10ntools/java/jpropex/java/SdfData.java
index 98eddbeca20f..53d1e5767c3d 100644
--- a/l10ntools/java/jpropex/java/SdfData.java
+++ b/l10ntools/java/jpropex/java/SdfData.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@ public class SdfData
private String filename;
private OrderedHashMap ohm;
private LinkedHashSet languagesFound;
-
+
public SdfData()
{
languagesFound = new LinkedHashSet();
@@ -43,7 +43,7 @@ public class SdfData
}
public SdfData( String filename )
{
- this();
+ this();
this.filename = filename;
}
@@ -65,7 +65,7 @@ public class SdfData
public void read()
{
- BufferedReader in;
+ BufferedReader in;
try
{
in = new BufferedReader( new InputStreamReader( new FileInputStream( filename ), "UTF-8" ) );
diff --git a/l10ntools/java/jpropex/java/SdfEntity.java b/l10ntools/java/jpropex/java/SdfEntity.java
index 7723238815e7..26e3cfe18b9a 100644
--- a/l10ntools/java/jpropex/java/SdfEntity.java
+++ b/l10ntools/java/jpropex/java/SdfEntity.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,23 +42,23 @@ public class SdfEntity implements Cloneable{
private String quickhelptext= new String("");
private String title = new String("");
private String date = new String("");
-
- public static int PROJECT_POS = 0;
- public static int SOURCE_FILE_POS = 1;
- public static int DUMMY1_POS = 2;
- public static int RESOURCE_TYPE_POS = 3;
- public static int GID_POS = 4;
- public static int LID_POS = 5;
- public static int HELPID_POS = 6;
- public static int PLATFORM_POS = 7;
- public static int DUMMY2_POS = 8;
- public static int LANGID_POS = 9;
- public static int TEXT_POS = 10;
- public static int HELPTEXT_POS = 11;
- public static int QUICKHELPTEXT_POS = 12;
- public static int TITLE_POS = 13;
- public static int DATE_POS = 14;
-
+
+ public static int PROJECT_POS = 0;
+ public static int SOURCE_FILE_POS = 1;
+ public static int DUMMY1_POS = 2;
+ public static int RESOURCE_TYPE_POS = 3;
+ public static int GID_POS = 4;
+ public static int LID_POS = 5;
+ public static int HELPID_POS = 6;
+ public static int PLATFORM_POS = 7;
+ public static int DUMMY2_POS = 8;
+ public static int LANGID_POS = 9;
+ public static int TEXT_POS = 10;
+ public static int HELPTEXT_POS = 11;
+ public static int QUICKHELPTEXT_POS = 12;
+ public static int TITLE_POS = 13;
+ public static int DATE_POS = 14;
+
public Object clone()
{
try
@@ -79,42 +79,42 @@ public class SdfEntity implements Cloneable{
}
public SdfEntity(String project, String source_file, String dummy1, String resource_type, String gid, String lid, String helpid, String platform, String dummy2, String langid, String text, String helptext, String quickhelptext, String title , String date) {
super();
- this.project = project;
- this.source_file = source_file;
- this.dummy1 = dummy1;
- this.resource_type = resource_type;
- this.gid = gid;
- this.lid = lid;
- this.helpid = helpid;
- this.platform = platform;
- this.dummy2 = dummy2;
- this.langid = langid;
- this.text = text;
- this.helptext = helptext;
- this.quickhelptext = quickhelptext;
- this.title = title;
- this.date = date;
+ this.project = project;
+ this.source_file = source_file;
+ this.dummy1 = dummy1;
+ this.resource_type = resource_type;
+ this.gid = gid;
+ this.lid = lid;
+ this.helpid = helpid;
+ this.platform = platform;
+ this.dummy2 = dummy2;
+ this.langid = langid;
+ this.text = text;
+ this.helptext = helptext;
+ this.quickhelptext = quickhelptext;
+ this.title = title;
+ this.date = date;
}
public void setProperties( String line ){
if( line != null )
{
- String[] splitted = line.split("\t",15);
- setProject( splitted[ SdfEntity.PROJECT_POS ] );
- setSource_file( splitted[ SdfEntity.SOURCE_FILE_POS ] );
- setDummy1( splitted[ SdfEntity.DUMMY1_POS ] );
- setResource_type( splitted[ SdfEntity.RESOURCE_TYPE_POS ] );
- setGid( splitted[ SdfEntity.GID_POS ] );
- setLid( splitted[ SdfEntity.LID_POS ] );
- setHelpid( splitted[ SdfEntity.HELPID_POS ] );
- setPlatform( splitted[ SdfEntity.PLATFORM_POS ] );
- setDummy2( splitted[ SdfEntity.DUMMY2_POS ] );
- setLangid( splitted[ SdfEntity.LANGID_POS ] );
- setText( splitted[ SdfEntity.TEXT_POS ] );
- setHelptext( splitted[ SdfEntity.HELPTEXT_POS ] );
- setQuickhelptext( splitted[ SdfEntity.QUICKHELPTEXT_POS ] );
- setTitle( splitted[ SdfEntity.TITLE_POS ] );
- setDate( splitted[ SdfEntity.DATE_POS ] );
+ String[] splitted = line.split("\t",15);
+ setProject( splitted[ SdfEntity.PROJECT_POS ] );
+ setSource_file( splitted[ SdfEntity.SOURCE_FILE_POS ] );
+ setDummy1( splitted[ SdfEntity.DUMMY1_POS ] );
+ setResource_type( splitted[ SdfEntity.RESOURCE_TYPE_POS ] );
+ setGid( splitted[ SdfEntity.GID_POS ] );
+ setLid( splitted[ SdfEntity.LID_POS ] );
+ setHelpid( splitted[ SdfEntity.HELPID_POS ] );
+ setPlatform( splitted[ SdfEntity.PLATFORM_POS ] );
+ setDummy2( splitted[ SdfEntity.DUMMY2_POS ] );
+ setLangid( splitted[ SdfEntity.LANGID_POS ] );
+ setText( splitted[ SdfEntity.TEXT_POS ] );
+ setHelptext( splitted[ SdfEntity.HELPTEXT_POS ] );
+ setQuickhelptext( splitted[ SdfEntity.QUICKHELPTEXT_POS ] );
+ setTitle( splitted[ SdfEntity.TITLE_POS ] );
+ setDate( splitted[ SdfEntity.DATE_POS ] );
}
}
@@ -132,7 +132,7 @@ public class SdfEntity implements Cloneable{
public String getId(){
return new StringBuffer( project ).append( gid ).append( lid ).append( source_file ).append( resource_type ).append( platform ).append( helpid ).append( langid ).toString();
}
-
+
public String getDummy1() {
return dummy1;
}
@@ -250,6 +250,6 @@ public class SdfEntity implements Cloneable{
public void setDate(String date) {
this.date = date;
}
-
-
+
+
}
diff --git a/l10ntools/java/l10nconv/build.xml b/l10ntools/java/l10nconv/build.xml
index 7103ff05d58f..6667630e8dca 100755
--- a/l10ntools/java/l10nconv/build.xml
+++ b/l10ntools/java/l10nconv/build.xml
@@ -2,23 +2,23 @@
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-
+
Copyright 2000, 2010 Oracle and/or its affiliates.
-
+
OpenOffice.org - a multi-platform office productivity suite
-
+
This file is part of OpenOffice.org.
-
+
OpenOffice.org is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
-
+
OpenOffice.org is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License version 3 for more details
(a copy is included in the LICENSE file that accompanied this code).
-
+
You should have received a copy of the GNU Lesser General Public License
version 3 along with OpenOffice.org. If not, see
<http://www.openoffice.org/license.html>
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapCheck.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapCheck.java
index 7338e8d6a669..7a9b1fed5ebf 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapCheck.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapCheck.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Created on 2005
- * by Christian Schmidt
+ * by Christian Schmidt
*/
package com.sun.star.tooling.DirtyTags;
@@ -42,7 +42,7 @@ public class DirtyTagWrapCheck {
static String line="";
public static void main(String[] args) {
try {
- File fi = new File("D:\\Testfiles\\KID_helpcontent.sdf");//Copy of
+ File fi = new File("D:\\Testfiles\\KID_helpcontent.sdf");//Copy of
FileReader fr = new FileReader(fi);
BufferedReader br = new BufferedReader(fr);
@@ -68,15 +68,15 @@ public class DirtyTagWrapCheck {
}
System.out.println("Fertig "+readCounter+" "+missCounter+" "+lineErrorCounter);
} catch (FileNotFoundException e) {
- //
+ //
e.printStackTrace();
} catch (IOException e) {
- //
+ //
e.printStackTrace();
} catch (DirtyTagWrapper.TagWrapperException e) {
System.out.println(e.getMessage()+"\n"+line+"\n");
-
+
}
-
+
}
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapper.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapper.java
index 6b76b75b75d6..cb64f3381fdc 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapper.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/DirtyTagWrapper.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Created on 2005
- * by Christian Schmidt
+ * by Christian Schmidt
*/
package com.sun.star.tooling.DirtyTags;
@@ -35,12 +35,12 @@ import java.util.ArrayList;
/**
* Solves the problem with translating strings from the
- * Star-Office Help. This Strings contain XML snippets
+ * Star-Office Help. This Strings contain XML snippets
* (that means parts of an xml dokument). I call them 'dirty'
* because the start of a tag (<) and the and of an tag (>)
- * are quoted by a single backslash(\<.....\>). This is done
+ * are quoted by a single backslash(\<.....\>). This is done
* because the text out of th tags should not contain '<' and '>'
- * as Entity references (&lt; or &gt;) but as readable signs.
+ * as Entity references (&lt; or &gt;) but as readable signs.
* This is for translation purposes.
* Because translators get mad while find out the really translatable
* parts between all the markup information, the XLIFF Specification
@@ -48,20 +48,20 @@ import java.util.ArrayList;
* special tags (<ept>, <bpt>).
* This Class has two static methods that do the wrapping and unwrapping
* NOTE: this won't work with not 'dirty' Strings.
- *
+ *
* @author Christian Schmidt 2005
*
*/
public class DirtyTagWrapper {
-
+
private static boolean doWrap=true;
public static void setWrapping(boolean doWrap){
DirtyTagWrapper.doWrap=doWrap;
}
-
+
/**
* Unwraps the 'dirty' parts of a String from ept and bpt tags
- *
+ *
* @param checkString The String to unwrap
* @return the unwrapped String
*/
@@ -85,11 +85,11 @@ public class DirtyTagWrapper {
String returnString = new String(returnBuffer);
return returnString;
}
-
-
+
+
/**
* Wrap the dirty parts of a string
- *
+ *
* @param checkString The String to check if there are dirty Parts to wrap
* @return A String with wrapped dirty parts
* @throws TagWrapperException
@@ -99,11 +99,11 @@ public class DirtyTagWrapper {
// if no wrapping should be done return the given string
if(!doWrap) return checkString;
// let's wrap
- String[] parts=null;
+ String[] parts=null;
int idx=0;
//split the string at tag ends
String[] parts2 = checkString.split("\\\\>");
-
+
ArrayList tagString =new ArrayList();
// put the while splitting lost parts to the end of the single strings
for(int j=0;j<parts2.length-1;j++){
@@ -113,10 +113,10 @@ public class DirtyTagWrapper {
if (checkString.endsWith("\\>")){
parts2[parts2.length-1]+="\\>";
}
- // split the leading text from the real tag string (<...>)
+ // split the leading text from the real tag string (<...>)
for(int j=0;j<parts2.length;j++){
- //is it just a tag
+ //is it just a tag
if(parts2[j].startsWith("\\<")){
tagString.add(parts2[j]);
// or is it a tag with leading text?
@@ -126,12 +126,12 @@ public class DirtyTagWrapper {
tagString.add(parts2[j].substring(0,(parts2[j].indexOf("\\<"))));
// ...and the tag
tagString.add(parts2[j].substring(parts2[j].indexOf("\\<")));
-
+
}else{
//no tag...must be text only
tagString.add(parts2[j]);
}
-
+
}
ArrayList tagNames=new ArrayList();
String item="";
@@ -148,7 +148,7 @@ public class DirtyTagWrapper {
isStandalone=true;
}
item=item.substring(start,end);
-
+
if(item.indexOf(" ")>0){
item=item.substring(0,item.indexOf(" "));
}
@@ -171,9 +171,9 @@ public class DirtyTagWrapper {
}else {
tagType.add("StartTag");
}
-
+
}
-
+
ArrayList tagList=new ArrayList();
for(int i=0;i<tagNames.size();i++){
tagList.add(new Tag(
@@ -190,7 +190,7 @@ public class DirtyTagWrapper {
while(tagList.size()>0){
try{
start=new TagPair(tagList);
- returnBuffer.append(start.getWrapped());
+ returnBuffer.append(start.getWrapped());
}catch(TagPair.TagPairConstructionException e){
throw (new DirtyTagWrapper()).new TagWrapperException(e);
}
@@ -206,43 +206,43 @@ public class DirtyTagWrapper {
/**
* Create a new Instance of TagWrapperException
- *
- *
+ *
+ *
*/
public TagWrapperException() {
super();
- //
+ //
}
/**
* Create a new Instance of TagWrapperException
- *
+ *
* @param arg0
*/
public TagWrapperException(String arg0) {
super(arg0);
- //
+ //
}
/**
* Create a new Instance of TagWrapperException
- *
+ *
* @param arg0
* @param arg1
*/
public TagWrapperException(String arg0, Throwable arg1) {
super(arg0, arg1);
- //
+ //
}
/**
* Create a new Instance of TagWrapperException
- *
+ *
* @param arg0
*/
public TagWrapperException(Throwable arg0) {
super(arg0);
- //
+ //
}
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/Tag.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/Tag.java
index 223885571007..b052289653e2 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/Tag.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/Tag.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Created on 2005
- * by Christian Schmidt
+ * by Christian Schmidt
*/
package com.sun.star.tooling.DirtyTags;
@@ -49,23 +49,23 @@ public class Tag {
/**
* Create a new Instance of Tag
- *
+ *
* @param tagType
* @param tagName
* @param tagString
*/
public Tag(String tagType, String tagName, String tagString) {
-
+
this.tagType=tagType;
this.tagName=tagName;
this.tagString=tagString;
-
+
tagNames=new ExtMap();
tagNames.put("link","name");
tagNames.put("caption","xml-lang");
tagNames.put("alt","xml-lang");
}
-
+
public String getWrappedTagString() throws IOException{
if(this.canHaveTranslateableContent()){
return this.wrapTagStringIntern();
@@ -73,7 +73,7 @@ public class Tag {
return xmlString(this.tagString);
}
}
-
+
private final String xmlString( final String string) throws java.io.IOException {
if (string == null)
return string; // ""
@@ -84,7 +84,7 @@ public class Tag {
str=str.substring(0, i)+"&amp;"+str.substring(i+1);
continue;
}
-
+
if(str.charAt(i)=='<'){
str=str.substring(0, i)+"&lt;"+str.substring(i+1);
continue;
@@ -113,23 +113,23 @@ public class Tag {
*/
private boolean canHaveTranslateableContent() {
return (tagNames.containsKey(this.tagName));
-
+
}
/**
* @throws IOException
- *
+ *
*/
private String wrapTagStringIntern() throws IOException {
-
-
+
+
String[] split=this.tagString.split("=");
int length=split.length;
// no attribute found;
if (length==0) return xmlString(tagString);
else{
int i=0;
-
+
while(i<length-1/*the last part can only contain an attribute value*/){
String attributeName = split[i].trim();
if(split[i]. indexOf("</sub>")<0) split[i]=xmlString(split[i]);
@@ -139,7 +139,7 @@ public class Tag {
if((value=translateableAttributeValue(this.tagName)).equals(attributeName)){
int valueStart=0;
int valueEnd=0;
-
+
// get the value to the found attribute name
// it must either be surrounded by '"'...
if((valueStart=split[i].indexOf('"'))>=0){
@@ -156,7 +156,7 @@ public class Tag {
}
//ok we found the border of a value that might be translated
//now we wrap it with the tags
-
+
split[i]=xmlString(split[i].substring(0,valueStart+1))+"<sub>"+xmlString(split[i].substring(valueStart+1,valueEnd))+"</sub>"+xmlString(split[i].substring(valueEnd));
}
@@ -165,14 +165,14 @@ public class Tag {
// we have the wrapped parts, now we put them together
int j=0;
for(j=0;j<split.length-1;j++){
- wrappedString+=(split[j]+"=");
+ wrappedString+=(split[j]+"=");
}
wrappedString+=split[j];
// System.out.println(this.tagString);
// System.out.println(wrappedString);
return wrappedString;
}
-
+
}
@@ -189,20 +189,20 @@ public class Tag {
/**
* Create a new Instance of Tag
- *
- *
+ *
+ *
*/
public Tag(String tagString) {
this(extractTagType(extractTagName(tagString)),extractTagName(tagString),tagString);
}
-
+
private static String extractTagName(String tagString){
-
+
int start=tagString.indexOf('<')+1;
int end=tagString.lastIndexOf('\\');
if(start>=0&&end>0){
tagString=tagString.substring(start,end);
-
+
if(tagString.indexOf(" ")>0){
tagString=tagString.substring(0,tagString.indexOf(" "));
}
@@ -241,6 +241,6 @@ public class Tag {
public String getTagType() {
return this.tagType;
}
-
+
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/TagPair.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/TagPair.java
index cc362a96e740..d82390161ec2 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/TagPair.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/DirtyTags/TagPair.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Created on 2005
- * by Christian Schmidt
+ * by Christian Schmidt
*/
package com.sun.star.tooling.DirtyTags;
@@ -41,7 +41,7 @@ import java.util.Iterator;
*/
public class TagPair {
-
+
private Tag startTag=Tag.EMPTYTAG;
private Tag endTag=Tag.EMPTYTAG;
private String startingText="";
@@ -58,7 +58,7 @@ public class TagPair {
/**
* Create a new Instance of TagPairConstructionException
- *
+ *
* @param string
*/
public TagPairConstructionException(String string) {
@@ -66,11 +66,11 @@ public class TagPair {
}
}
-
+
/**
* Create a new Instance of TagPair
- *
- *
+ *
+ *
*/
public TagPair() {
@@ -79,14 +79,14 @@ public class TagPair {
/**
* Create a new Instance of TagPair
- *
- * Find matching tags in tagList, create a TagPair of it, create
+ *
+ * Find matching tags in tagList, create a TagPair of it, create
* tagPairs from the content in the tagPair and remove all used
- * tags from tagList. The rest of the tagList starts after the
+ * tags from tagList. The rest of the tagList starts after the
* endTag of this TagPair.
- *
+ *
* @param tagList a List of the tags to check
- *
+ *
* @throws TagPairConstructionException
*/
public TagPair(ArrayList tagList) throws TagPairConstructionException {
@@ -98,12 +98,12 @@ public class TagPair {
Tag tag=(Tag)tagList.get(0);
tagList.remove(0);
-
+
if("Text".equals(tag.getTagType())){
- // is this Text the only content
+ // is this Text the only content
// of this Tag ?
if(tagList.size()==0){
- //yes...then it is the starting Text of this TagPair
+ //yes...then it is the starting Text of this TagPair
this.startingText=tag.getTagString();
return;
}else{
@@ -124,7 +124,7 @@ public class TagPair {
//is this the end tag?
if((tag=(Tag)iter.next()).getTagName().equals('/'+this.startTag.getTagName())&&equivalentTagCounter==0){
//found the corresponding end tag
-
+
//this TagPair is complete
//so it needs an id
this.id=TagPair.ElementCounter++;
@@ -135,8 +135,8 @@ public class TagPair {
break;
}else{
// tag is not the end tag
- // so it is between the start and the end tag
- // and belongs to the content
+ // so it is between the start and the end tag
+ // and belongs to the content
// but first check if it has the same name as the current tag
if(tag.getTagName().equals(this.startTag.getTagName())){
// if this is a start tag like the current start tag
@@ -150,17 +150,17 @@ public class TagPair {
equivalentTagCounter--;
}
}
-
+
contentList.add(tag);
}
}
//found the end tag ?
//no...
if (this.endTag.getTagType()==""){
-
+
throw new TagPairConstructionException("ERROR: Missing end tag ("+
this.startTag.getTagString()+").");
- //...yes
+ //...yes
}else{
//We need to check whether the content is starting or ending with text
//...check starting with text
@@ -186,7 +186,7 @@ public class TagPair {
this.endTag=new Tag("EndOfStandAlone","","");
createEnclosedTags(contentList);
}
-
+
}
/**
@@ -198,9 +198,9 @@ public class TagPair {
//create the inner TagPairs
this.enclosedTags.add(new TagPair(contentList));
}
-
+
}
-
+
public String toString(){
StringBuffer outString= new StringBuffer(this.startTag.toString());
TagPair help=new TagPair();
@@ -217,28 +217,28 @@ public class TagPair {
outString.append(this.endTag.toString());
return new String(outString);
}
-
+
public String getWrapped() throws IOException{
Iterator iter=enclosedTags.iterator();
StringBuffer returnBuffer=new StringBuffer();
-
+
returnBuffer.append(wrap(this.startTag)+xmlString(this.startingText));
while(iter.hasNext()){
returnBuffer.append(((TagPair)iter.next()).getWrapped());
}
returnBuffer.append(xmlString(this.endingText)+wrap(this.endTag));
-
-
-
+
+
+
return new String(returnBuffer);
}
-
+
private String wrap(Tag tag) throws IOException{
String string="";
//can be a start tag
if(tag.getTagType().startsWith("Start")){
return new String("<bpt id='"+this.id+"'>"+tag.getWrappedTagString()+"</bpt>");
- //...or a end tag
+ //...or a end tag
}else if (tag.getTagType().startsWith("End")){
//maybe the end tag of a Start and end tag
// if("EndOfStandAlone".equals(tag.getTagType())){
@@ -247,7 +247,7 @@ public class TagPair {
string=tag.getWrappedTagString();
return new String("<ept id='"+this.id+"'>"+string+"</ept>");
// }
-
+
//...or text
}else{
return xmlString(tag.getTagString());
@@ -255,7 +255,7 @@ public class TagPair {
}
/**
* Replaces all characters that mustn't be in XLIFF PCdata
- *
+ *
* @param string the string to check
* @return the checked string with all characters replaced
* @throws java.io.IOException
@@ -270,7 +270,7 @@ public class TagPair {
str=str.substring(0, i)+"&amp;"+str.substring(i+1);
continue;
}
-
+
if(str.charAt(i)=='<'){
str=str.substring(0, i)+"&lt;"+str.substring(i+1);
continue;
@@ -296,12 +296,12 @@ public class TagPair {
}
/**
- *
+ *
*/
public static void resetCounter() {
- TagPair.ElementCounter=1;
-
+ TagPair.ElementCounter=1;
+
}
-
+
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Convert.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Convert.java
index d6fddfd049ae..0ec343b1f3a8 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Convert.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Convert.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* the main Class
- *
+ *
* Command Line arguments are reviewed
* and a Converter is constructed
*/
@@ -42,32 +42,32 @@ import com.sun.star.tooling.DirtyTags.DirtyTagWrapper;
/**
* The main class of the converter tool
- *
+ *
* The converter tool is command line based.
* Its classes allow the converting between the
* file formats sdf, gsi and <a href="http://www.oasis-open.org/committees/xliff/documents/cs-xliff-core-1.1-20031031.htm">xliff</a>.
- *
+ *
* Those file formats are used in localization
* of Star-Office and Open-Office.
- *
- * Information about the whole localization process can be found in
+ *
+ * Information about the whole localization process can be found in
* <a href="http://ded-1.germany.sun.com/webcontent/guidelines/pdf/L10NSO8.pdf">http://ded-1.germany.sun.com/webcontent/guidelines/pdf/L10NSO8.pdf</a>
- *
+ *
* @author Christian Schmidt 2005
- *
+ *
*/
public class Convert {
private static Calendar cal;
-
+
private static final String EMPTY = "";
-
+
/**
* The name of the file containing the debug information
* that where found while converting (every output goes here too)
*/
private static String dbgName = EMPTY;
-
+
/**
* the character that separates the extension from the file name
*/
@@ -95,7 +95,7 @@ public class Convert {
private static File secondSource;
//private static final char pathSeperator = '\\';
-
+
/**
* The language that should be the source language
* that means the language to translate from
@@ -111,7 +111,7 @@ public class Convert {
* the type of the source file (sdf,xliff,...)
*/
private static String sourceType = EMPTY;
-
+
/**
* The time when converting started
*/
@@ -133,7 +133,7 @@ public class Convert {
private static String targetType = EMPTY;
/**
- * Store the current version ID and number of this tool
+ * Store the current version ID and number of this tool
*/
final static String version = " Prod.20050710:1255 ";
@@ -143,19 +143,19 @@ public class Convert {
private static String secondSourceName=EMPTY;
/**
* Indicate whether strings in xliff files should
- * be wrapped with ept/bpt or sub tags to enable translation tools
+ * be wrapped with ept/bpt or sub tags to enable translation tools
* to synchronize source language string with there translation
- *
+ *
* @see <a href="http://ded-1.germany.sun.com/webcontent/guidelines/pdf/L10NSO8.pdf">http://ded-1.germany.sun.com/webcontent/guidelines/pdf/L10NSO8.pdf</a>
*/
private static boolean doWrap=true;
-
+
public static void main(String[] args) throws IOException, Exception {
try{
-
- //go, parse and check the command line parameters
+
+ //go, parse and check the command line parameters
ParameterChecker.checkClParameters(args);
ParameterChecker.createContentOfClParameters();
//Initialize the tagWrapper
@@ -170,12 +170,12 @@ public class Convert {
printPreamble();
//do the job
conv.convert();
-
+
showStatistic();
-
+
//close log, debug...
OutputHandler.closeAll();
-
+
} catch(Exception e){
System.out.print("An EXCEPTION occured, please check your commad line settings \n"+e.getMessage());
System.exit(-1);
@@ -194,7 +194,7 @@ public class Convert {
final String ls = System.getProperty("line.separator");
System.out
.println(
-
+
"File Converting Tool 'converter' Version "
+ Convert.version
+ ls
@@ -220,13 +220,13 @@ public class Convert {
+ "-nw disable the wrapping with ept/bpt tags." + ls
+ ls
+ "The created files were stored in the SourceFile Path if nothing else is given. " + ls
- + "The extension is '.xliff','.sdf' depending on the source file and '.log' " + ls
+ + "The extension is '.xliff','.sdf' depending on the source file and '.log' " + ls
+ "for the logfile." + ls);
}
/**
* show the parameters the converter starts with
- *
+ *
* @throws IOException
*/
final private static void printPreamble() throws IOException {
@@ -245,7 +245,7 @@ public class Convert {
/**
* show some statistic data
- *
+ *
* @throws IOException
*/
final private static void showStatistic() throws IOException {
@@ -265,9 +265,9 @@ public class Convert {
/**
* Get the extensiion of a file name
* (sdf,xliff,gsi)
- *
+ *
* @param sourceString the file name
- * @return the extension
+ * @return the extension
*/
static protected String extractExtension(String sourceString) {
String ext = sourceString.substring(sourceString
@@ -291,16 +291,16 @@ public class Convert {
// }
/**
- *
+ *
*/
public Convert() {
}
/**
- *
- * Verify a parameter array and create content useable by the programm
+ *
+ * Verify a parameter array and create content useable by the programm
* from the switches and attributes set at command line
- *
+ *
* @author Christian Schmidt 2005
*/
private static class ParameterChecker {
@@ -316,13 +316,13 @@ public class Convert {
/**
* Create a new Instance of ParameterChecker
- *
- *
+ *
+ *
*/
public ParameterChecker(){};
/**
* Checks the command line parameters
- *
+ *
* @param args the parameters to check and to parse
* @throws IOException
*/
@@ -350,54 +350,54 @@ public class Convert {
if (!source.exists())
throw new IOException("ERROR:Can not find Source File '"
+ sourceName + "'. Aborting...");
-
+
// String name=source.getName();
// String parent=source.getParent();
// String path=source.getPath();
-
+
filePath = (source.getParent()==null)?"":source.getParent()+File.separator; //extractPath(sourceName);
fileName = source.getName().substring(0,source.getName().lastIndexOf(extensionSeperator));
-
+
for (int i = 1; i < args.length; i++) {
-
-
+
+
if ("-s".equals(args[i])) {
if (args.length > i + 1) {
sourceLanguage = args[++i];
-
+
} else {
throw new ConverterException(
"missing argument for -s source language");
}
continue;
}
-
+
if ("-S".equals(args[i])) {
if (args.length > i + 1) {
sourceType = args[++i];
if (args.length > i +1 &&!args[i+1].startsWith("-")) {
secondSourceName = args[++i];
}
-
+
} else {
throw new ConverterException(
"missing argument for -S source type");
}
continue;
}
-
+
if ("-T".equals(args[i])) {
if (args.length > i + 1) {
targetType = args[++i];
-
-
+
+
} else {
throw new ConverterException(
"missing argument for -T target type");
}
continue;
}
-
+
if ("-l".equals(args[i])) {
OutputHandler.doLog = true;
if (args.length > i + 1
@@ -408,27 +408,27 @@ public class Convert {
}
continue;
}
-
+
if ("-o".equals(args[i])) {
overwrite = true;
continue;
}
-
+
if ("-nw".equals(args[i])) {
doWrap = false;
continue;
}
-
+
if ("-h".equals(args[i])) {
printHelp();
System.exit(0);
}
-
+
if ("-dbg".equals(args[i])) {
OutputHandler.doDebug = true;
continue;
}
-
+
if ("-t".equals(args[i])) {
if (args.length > i + 1) {
TargetLanguage = args[++i];
@@ -438,7 +438,7 @@ public class Convert {
}
continue;
}
-
+
if (i == 1 && !args[i].startsWith("-")) { //target file
// found
targetName = args[i];
@@ -449,7 +449,7 @@ public class Convert {
throw new ConverterException("unknown Attribute: "
+ args[i]);
-
+
}//end for
} catch (ConverterException e) {
OutputHandler.out("ERROR: "+e.getMessage());
@@ -462,9 +462,9 @@ public class Convert {
}//end checkClParameters
/**
- * Creates the appropriate content of what ever data
+ * Creates the appropriate content of what ever data
* we found in the command line
- *
+ *
* @throws IOException
*/
private static void createContentOfClParameters() throws IOException {
@@ -498,16 +498,16 @@ public class Convert {
throw new ConverterException("Source type is missing");
}
}
-
+
if(sourceType.equalsIgnoreCase("gsi")){
-
+
if(EMPTY.equals(Convert.secondSourceName)){
Convert.secondSourceName=filePath+fileName+".sdf";
}
//secondSource=new File(Convert.secondSourceName);
-
+
}
-
+
if (EMPTY.equals(sourceName)) {
sourceName = filePath + fileName + "." + sourceType;
}
@@ -537,12 +537,12 @@ public class Convert {
OutputHandler.out("ERROR: \nSource '"+Convert.sourceName+"' and \nTarget'"+targetName+"' are the same");
System.exit(0);
}
-
-
+
+
} catch (ConverterException e) {
- OutputHandler.out(e.getMessage());
+ OutputHandler.out(e.getMessage());
}
-
+
}
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Converter.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Converter.java
index ad846ae88295..ff6c20dd99e3 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Converter.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Converter.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,11 +52,11 @@ import org.xml.sax.XMLReader;
import org.xml.sax.helpers.DefaultHandler;
/**
- *
+ *
* This class handles the creating of the source to read from,
* the target to write to and the appropriate DataHandler
- *
- * @author Christian Schmidt 2005
+ *
+ * @author Christian Schmidt 2005
*/
public final class Converter {
@@ -66,7 +66,7 @@ public final class Converter {
private final static String CHARSET = new String("UTF-8");
private static final String EMPTY = new String("");
-
+
/**
* The DataHandler use to connect reader and writer
*/
@@ -76,13 +76,13 @@ public final class Converter {
* Counting the lines written by a writer
*/
private static int lineCounter;
-
+
/**
* The target to write to
*/
private static DataWriter theTargetWriter;
-
-
+
+
/**
* Overwrite existing files
*/
@@ -106,7 +106,7 @@ public final class Converter {
/**
* the Type of the Target file(SDF,GSI,XLIFF)
*/
- private String targetType;
+ private String targetType;
/**
* The writer that handles the output
*/
@@ -116,7 +116,7 @@ public final class Converter {
* The sourceLanguage
*/
String sourceLanguage = "en-US";
-
+
/**
* The targetLanguage
*/
@@ -145,7 +145,7 @@ public final class Converter {
/**
* Creates a new instance of Converter
- *
+ *
* @param sourceType the type of the sourceFile
* @param sourceString the name of the sourceFile
* @param SourceLanguage the ISO Id of the sourceLanguage
@@ -197,7 +197,7 @@ public final class Converter {
/**
* Do the converting from the source file format to the target file format
- *
+ *
* @throws IOException
*/
public final void convert() throws IOException {
@@ -214,12 +214,12 @@ public final class Converter {
}
}
-
+
/**
- *
+ *
* Encapsulate the reading from an GSI file
- *
+ *
* @author Christian Schmidt 2005
*
*/
@@ -227,7 +227,7 @@ public final class Converter {
DataReader theSourceReader;
/**
* Create a new Instance of GSISource
- *
+ *
* @throws IOException
* @throws Exception
*/
@@ -238,7 +238,7 @@ public final class Converter {
}
public void convertTo(Target t) {
-
+
try {
theTargetWriter = t.getWriter();
while (handler.fillDataFrom(theSourceReader)) {
@@ -257,19 +257,19 @@ public final class Converter {
}
/**
- *
+ *
* Encapsulate to write to a GSI file
- *
+ *
* @author Christian Schmidt 2005
*
*/
private class GSITarget implements Target {
File target;
-
+
/**
* Create a new Instance of GSITarget
- *
+ *
* @throws FileNotFoundException
* @throws IOException
*/
@@ -281,17 +281,17 @@ public final class Converter {
}
public DataWriter getWriter() {
-
+
return theTargetWriter;
}
}
/**
- *
+ *
* Encapsulate the reading from an SDF file
- *
+ *
* @author Christian Schmidt 2005
- *
+ *
*/
private final class SDFSource implements Source {
@@ -337,7 +337,7 @@ public final class Converter {
/**
* Create a new Instance of SDFTarget
- *
+ *
* @throws IOException
*/
public SDFTarget() throws IOException {
@@ -358,16 +358,16 @@ public final class Converter {
/**
* The interface for all convertable sources
- *
+ *
* @author Christian Schmidt 2005
*
*/
private interface Source {
-
+
DataReader Source=null;
/**
* Convert this. to the designated target
- * @param target the target of the converting
+ * @param target the target of the converting
* @throws IOException
*/
abstract void convertTo(Target target) throws IOException;
@@ -375,7 +375,7 @@ public final class Converter {
/**
* The interface for all creatable targets
- *
+ *
* @author Christian Schmidt 2005
*
*/
@@ -388,8 +388,8 @@ public final class Converter {
/**
* Get the writer
* this target uses to write the
- * data in the correct format.
- *
+ * data in the correct format.
+ *
* @return the used DataWriter
*/
abstract DataWriter getWriter();
@@ -406,8 +406,8 @@ public final class Converter {
/**
* Create a new Instance of XLIFFSource
- *
- *
+ *
+ *
*/
public XLIFFSource() {
@@ -434,8 +434,8 @@ public final class Converter {
SAXParser parser=factory.newSAXParser();
XMLReader xliffreader=parser.getXMLReader();
-
-
+
+
// XMLReader xliffreader = XMLReaderFactory
// .createXMLReader("org.apache.crimson.parser.XMLReaderImpl");
xliffreader.setErrorHandler(contentHandler);
@@ -445,7 +445,7 @@ public final class Converter {
xliffreader.setEntityResolver(res);
/*
* a second possibility to resolve an extern entity (DTD)
- *
+ *
* xliffreader.setFeature("xml.org/sax/features/validation",true);
* xliffreader.setEntityResolver(new EntityResolver() {
* public InputSource resolveEntity(java.lang.String
@@ -455,7 +455,7 @@ public final class Converter {
* return new InputSource(new ByteArrayInputStream( " <?xml
* version='1.0' encoding='UTF-8'?>" .getBytes())); else
* return null; } });
- *
+ *
*/
xliffreader.parse(sourceString);
@@ -490,7 +490,7 @@ public final class Converter {
}
/**
* Encapsulate writing to a XLIFF file
- *
+ *
* @author Christian Schmidt 2005
*
*/
@@ -499,7 +499,7 @@ public final class Converter {
/**
* Create a new Instance of XLIFFTarget
- *
+ *
* @throws FileNotFoundException
* @throws IOException
*/
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ConverterException.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ConverterException.java
index 0b630978098d..cfa664dcaad8 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ConverterException.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ConverterException.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* a simple exception
- * just to seperate
+ * just to seperate
* it from other
* exceptions
*/
@@ -34,14 +34,14 @@ package com.sun.star.tooling.converter;
/**
* @author Christian Schmidt
- *
+ *
* Thrown if an error occurs during converting from one file format to another
* that does not belong to an other exception
*/
public class ConverterException extends Exception {
/**
- *
+ *
*/
public ConverterException() {
super();
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataHandler.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataHandler.java
index fcc95905d3be..308462c8440b 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataHandler.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataHandler.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,8 +28,8 @@
* DataHandler.java
*
* take the data from the reader
- * and put it to the Writer
- *
+ * and put it to the Writer
+ *
*/
package com.sun.star.tooling.converter;
@@ -37,17 +37,17 @@ package com.sun.star.tooling.converter;
import java.util.*;
/**
- * Handle the Data to get it from the Source
- * readable to the Target
- *
+ * Handle the Data to get it from the Source
+ * readable to the Target
+ *
* @author Christian Schmidt
*/
public class DataHandler {
/**
- * An arrays that holds the names that will be
+ * An arrays that holds the names that will be
* keys for the HashMap containing the data
- *
+ *
*/
private final String[] dataNames = { "BlockNr", "Project",
"SourceFile", "Dummy", "ResType", "GID", "LID", "HID", "Platform",
@@ -58,7 +58,7 @@ public class DataHandler {
private static final String EMPTY = new String("");
/**
- * The HashMap containing the data
+ * The HashMap containing the data
*/
private final Map data = new ExtMap(dataNames, null);
@@ -68,7 +68,7 @@ public class DataHandler {
/**
* fill the data from the desired source
- *
+ *
* @param source where to get the data from
* @return true if data is read and false if null is read
* @throws IOException
@@ -81,20 +81,20 @@ public class DataHandler {
line = source.getData();
if (line == null){
-
+
return false;
- }else{
-
+ }else{
+
this.data.putAll(line);
return true;
}
-
+
}
/**
* fill this data with the inData
- *
+ *
* @param inData the data to handle by this handler
*/
public void fillDataWith(Map inData) {
@@ -109,7 +109,7 @@ public class DataHandler {
/**
* The designated output is filled with the content of this handler
- *
+ *
* @param output an array of Maps [0] should hold the source language data [1] the target language data
* @throws java.io.IOException
*/
@@ -127,7 +127,7 @@ public class DataHandler {
}
/**
* The designated output is filled with the content of this handler
- *
+ *
* @param output a Map that should hold the source language data and the target language data
* @throws java.io.IOException
*/
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataReader.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataReader.java
index d6bb2ed85d73..de23f35a02d0 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataReader.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataReader.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,14 +33,14 @@ import java.util.*;
* Gets Line counting from LineNumberReader all Converter Reader classes inherit
* from this.
* The abstract parent class of all converter reader classes
- *
+ *
* @author Christian Schmidt
*/
abstract public class DataReader extends LineNumberReader {
/**
* Creates a new instance of DataReader
- *
+ *
* @param isr
* InputStreamReader used as Source for this class
*/
@@ -49,22 +49,22 @@ abstract public class DataReader extends LineNumberReader {
}
/**
-
+
* @throws java.io.IOException
* @throws ConverterException
- *
+ *
* TODO this should no longer use an array as return type better a Map
- *
+ *
*/
/**
* The next block of the SDF file is reviewed and the Line including the
* source language and the Line including the target Language are given back
* in an array
- *
- *
+ *
+ *
* @return A Map including the source language
- * and the target Language content are given back
- *
+ * and the target Language content are given back
+ *
* @throws java.io.IOException
* @throws ConverterException
*/
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataWriter.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataWriter.java
index 497bb54bbdb8..9263e1fbaa1e 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataWriter.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/DataWriter.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,12 +39,12 @@ import java.io.OutputStreamWriter;
/**
* The abstract parent class of all converter writer classes
- *
+ *
* @author Christian Schmidt
*/
abstract public class DataWriter extends OutputStreamWriter {
protected final String seperator = new String("|");
-
+
/**
* the char sequence used as line seperator
*/
@@ -54,7 +54,7 @@ abstract public class DataWriter extends OutputStreamWriter {
/** Creates a new instance of DataWriter */
/**
* @param bos the buffered output stream holding the data
- * @param encoding the encoding to use for read from bos
+ * @param encoding the encoding to use for read from bos
* @throws java.io.UnsupportedEncodingException
*/
public DataWriter(BufferedOutputStream bos, String encoding)
@@ -66,16 +66,16 @@ abstract public class DataWriter extends OutputStreamWriter {
/**
* get the data that should be written from the DataHandler
- *
+ *
* @param handler the DataHandler having the data
* @throws java.io.IOException
*/
abstract protected void getDataFrom(DataHandler handler)
throws java.io.IOException;
-
+
/**
* write the Data
- *
+ *
* @throws java.io.IOException
*/
abstract protected void writeData() throws java.io.IOException;
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ExtMap.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ExtMap.java
index a26665e1629e..51bed4c08169 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ExtMap.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ExtMap.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,14 +36,14 @@ import java.util.Map;
/**
* @author Christian Schmidt
- *
+ *
* Create a Hash Map from two Arrays
- *
+ *
*/
public class ExtMap extends HashMap {
/**
- *
+ *
*/
public ExtMap() {
super();
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/FileMaker.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/FileMaker.java
index 600687c41d29..131c10bd8c20 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/FileMaker.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/FileMaker.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,10 +25,10 @@
*
************************************************************************/
/*
- * creates new files
+ * creates new files
* checks if they exist or
* can be overwritten
- *
+ *
*/
package com.sun.star.tooling.converter;
@@ -37,17 +37,17 @@ import java.io.IOException;
/**
* Creates new files only if the file does not yet exist
- * or overwriting is allowed
- *
+ * or overwriting is allowed
+ *
* @author Christian Schmidt 2005
- *
+ *
*/
public final class FileMaker {
/**
* Create a new file if overwriting is not alowed
* ask if existing files should be overwritten
- *
+ *
* @param fileName the files name to overwrite
* @param overwrite indicates wether the file can be overwritten
* @return the File created from the fileName
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIReader.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIReader.java
index 398fcc9b686b..638e61441f23 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIReader.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIReader.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Created on 2005
- * by Christian Schmidt
+ * by Christian Schmidt
*/
package com.sun.star.tooling.converter;
@@ -42,7 +42,7 @@ import com.sun.star.tooling.languageResolver.LanguageResolver.LanguageResolvingE
/**
* @author Christian Schmidt 2005
- *
+ *
*/
public class GSIReader extends DataReader {
/**
@@ -102,7 +102,7 @@ public class GSIReader extends DataReader {
/**
* Create a new Instance of GSIReader
- *
+ *
* @param source
* the file to read from
* @param sourceLanguage
@@ -127,10 +127,10 @@ public class GSIReader extends DataReader {
/**
* Read the next GSIBlock and return the data
- *
- * @return A Map containing the data of the read GSIBlock the keys for the language depending data are the language id (numeric) the
+ *
+ * @return A Map containing the data of the read GSIBlock the keys for the language depending data are the language id (numeric) the
* single language are acessible with the keys "BlockNr", "resType", "languageNr", "status","content".
- *
+ *
* @throws IOException
*/
public Map getGSIData() throws IOException {
@@ -147,7 +147,7 @@ public class GSIReader extends DataReader {
while (useBuffer || (line = readLine()) != null) {
-
+
if (useBuffer) {
GSILine = GSILineBuffer;
@@ -214,7 +214,7 @@ public class GSIReader extends DataReader {
OutputHandler.out("\n\n");
OutputHandler.out("GSI Blocks : " + this.blockCounter);
OutputHandler.out("GSI Lines : " + this.lineCounter);
-
+
return null;
}else{
lastLineFound = true;
@@ -230,7 +230,7 @@ public class GSIReader extends DataReader {
/**
* Split a GSILine to single fields
- *
+ *
* @param line
* The line to split
* @return An array containing the contents of the columns in the given line
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIWriter.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIWriter.java
index 0f7aee811569..b5819f783d1c 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIWriter.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIWriter.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@ import com.sun.star.tooling.languageResolver.LanguageResolver.LanguageResolvingE
*/
public class GSIWriter extends DataWriter {
/**
- * The seperator used to seperate GSI columns
+ * The seperator used to seperate GSI columns
*/
final String seperator=new String("($$)");
@@ -66,7 +66,7 @@ public class GSIWriter extends DataWriter {
* A map holding the content of an GSI Line contianing the source and the target language
*/
private ExtMap outData=new ExtMap(outLineNames, null);
-
+
private static final String EMPTY = new String("");
/**
* The sourceLanguage to use
@@ -76,7 +76,7 @@ public class GSIWriter extends DataWriter {
* The sourceLanguage to use
*/
private String targetLanguage;
-
+
/**
* GSILines have a special Line End
*/
@@ -87,29 +87,29 @@ public class GSIWriter extends DataWriter {
* The blockNr of the current line
*/
private String blockNr;
-
-
-
+
+
+
/**
* Create a new Instance of GSIWriter
- *
+ *
* @param bos the Buffered Output Stream to write to
* @param charset the used charset
* @throws java.io.UnsupportedEncodingException
*/
public GSIWriter(BufferedOutputStream bos,String charset) throws java.io.UnsupportedEncodingException {
super(bos,charset);
+
-
-
+
}
-
+
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataWriter#writeData()
*/
public final void writeData() throws java.io.IOException {
-
+
StringBuffer buffer=new StringBuffer("");
if(this.sourceLanguage==null&&this.targetLanguage==null){
LanguageResolver lang =new LanguageResolver();
@@ -117,13 +117,13 @@ public class GSIWriter extends DataWriter {
this.sourceLanguage=lang.getNrFromISO((String)outData.get("SourceLanguageID"));
this.targetLanguage=lang.getNrFromISO((String)outData.get("TargetLanguageID"));
} catch (LanguageResolvingException e) {
-
+
OutputHandler.out(e.getMessage());
System.exit(0);
}
}
-
-
+
+
this.blockNr=(String)outData.get("BlockNr");
// get the values of the found fields
//create the gsi lines
@@ -133,7 +133,7 @@ public class GSIWriter extends DataWriter {
buffer.append(getSourceLine("HText"));
buffer.append(getSourceLine("QText"));
buffer.append(getSourceLine("Title"));
-
+
//now the target language line
// put them together for output
buffer.append(getTargetLine("Text"));
@@ -142,9 +142,9 @@ public class GSIWriter extends DataWriter {
buffer.append(getTargetLine("Title"));
//ok...put all to disk;
this.write(buffer.toString());
-
+
}
-
+
/**
* Create a line containing the source string from the data
* @param resType
@@ -171,14 +171,14 @@ public class GSIWriter extends DataWriter {
// seperate the fields with ($$)
buffer.append(this.seperator);
buffer.append(outData.get(resString));
-
+
// this line is full
// so close it with '! cr lf'
buffer.append(GSIWriter.lineEnd);
Converter.countLine();
return buffer;
}
-
+
}
/**
* Create a line containing the target string from the data
@@ -205,30 +205,30 @@ public class GSIWriter extends DataWriter {
// seperate the fields with ($$)
buffer.append(this.seperator);
buffer.append(outData.get(resString));
-
+
// this line is full
// so close it with '! cr lf'
buffer.append(GSIWriter.lineEnd);
Converter.countLine();
return buffer;
}
-
+
}
-
+
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataWriter#writeData(java.util.Map[])
*/
protected void writeData(Map[] data) throws IOException {
// TODO redesign DataHandler in the way that this is not nessesary any more
-
+
}
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataWriter#getDataFrom(com.sun.star.tooling.converter.DataHandler)
*/
protected void getDataFrom(DataHandler handler) throws IOException {
-
+
handler.putDataTo(this.outData);
}
@@ -236,8 +236,8 @@ public class GSIWriter extends DataWriter {
* @see com.sun.star.tooling.converter.DataWriter#getDatafrom(com.sun.star.tooling.converter.DataHandler)
*/
protected void getDatafrom(DataHandler handler) throws IOException {
-
+
handler.putDataTo(this.outData);
-
+
}
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIandSDFMerger.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIandSDFMerger.java
index 526f3ca75640..01133229210e 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIandSDFMerger.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/GSIandSDFMerger.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Created on 2005
- * by Christian Schmidt
+ * by Christian Schmidt
*/
package com.sun.star.tooling.converter;
@@ -37,15 +37,15 @@ import java.util.Map;
/**
* Merge GSIFiles back to to the original (!) SDFFile
- *
- *
+ *
+ *
* @author Christian Schmidt 2005
*
*/
public class GSIandSDFMerger extends SDFReader {
-
+
int lineCounter=0;
-
+
GSIReader gsiReader;
private Map temp=new HashMap();
@@ -59,11 +59,11 @@ public class GSIandSDFMerger extends SDFReader {
private int count;
/**
* Merge the GSIFile back to the original(!) SDFFile
- *
+ *
* @param source the file to read from
* @param sourceLanguage the source language in the source file
* @param targetLanguage the target language in the source file
- * @param charset the charset of the files
+ * @param charset the charset of the files
* @throws java.io.IOException
* @throws Exception
*/
@@ -77,7 +77,7 @@ public class GSIandSDFMerger extends SDFReader {
gsiReader=new GSIReader(source,sourceLanguage,targetLanguage,charset);
}
-
+
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataReader#getData()
*/
@@ -90,15 +90,15 @@ public class GSIandSDFMerger extends SDFReader {
OutputHandler.out("Blocks merged : "+this.lineCounter);
}
return temp;
-
+
}
-
+
/**
* Read each block of the GSIFile and check whether there is a matching
- * block in the SDFFile. Match depends on the BlockNr and BlockId.
- *
+ * block in the SDFFile. Match depends on the BlockNr and BlockId.
+ *
* @return A Map that contains the source language content
- * and the target language content.
+ * and the target language content.
* @throws IOException
* @throws ConverterException
*/
@@ -107,7 +107,7 @@ public class GSIandSDFMerger extends SDFReader {
try {
//System.out.println("Start...");
-
+
if (dontLoadGSI||(gsiBlock=gsiReader.getGSIData())!=null){
dontLoadGSI=false;
//check if we must update this block
@@ -115,14 +115,14 @@ public class GSIandSDFMerger extends SDFReader {
if((sdfBlock = super.getData())!=null){
if(((String)sdfBlock.get("BlockNr")).equals((String)gsiBlock.get("BlockNr"))){
-
+
gsiBlock.remove(EMPTY);
//if the target language string is empty this may be caused by an error in the source sdf File
//I don't want to overwrite a possibly correct translation with an empty string
// so remove the target part from the gsiBlock
Map mp=(Map)gsiBlock.get(gsiReader.targetLanguage);
if (mp.size()!=0&&!((String)mp.get("TargetText")).equals("")){
-
+
// target language part in this gsiBlock
// if(((String)mp.get("TargetText")).equals("")){
// gsiBlock.remove(targetLanguage);
@@ -131,16 +131,16 @@ public class GSIandSDFMerger extends SDFReader {
lineCounter++;
Map helpMap = (Map)gsiBlock.get(super.targetLanguage);//"ja"
sdfBlock.putAll(helpMap);
- skip=false;
+ skip=false;
}else{
//no target language part in this gsiBlock
skip=true;
//
// return null;
- }
+ }
}else{
// skip=true;
-//
+//
// // we cant match this gsi block to the current sdf block
// try matching the next sdf block with this gsi line
dontLoadGSI=true;
@@ -148,17 +148,17 @@ public class GSIandSDFMerger extends SDFReader {
}
return sdfBlock;
}
-
+
} catch (IOException e) {
-
+
e.printStackTrace();
}
return null;
}
+
-
-
-
+
+
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/LineErrorException.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/LineErrorException.java
index 26ce5a6518eb..7f87e99fee37 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/LineErrorException.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/LineErrorException.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Exception for errors in
- * SDFLines
+ * SDFLines
*/
package com.sun.star.tooling.converter;
@@ -34,7 +34,7 @@ package com.sun.star.tooling.converter;
/**
* This Exeption is thrown if a DataReader finds an error in a read Line
* f. e. wrong column number
- *
+ *
* @author Christian Schmidt 2005
*
*/
@@ -42,11 +42,11 @@ public class LineErrorException extends Exception {
public int tokenCount;
/**
- *
+ *
*/
public LineErrorException() {
super();
-
+
}
/**
@@ -54,7 +54,7 @@ public class LineErrorException extends Exception {
*/
public LineErrorException(String arg0) {
super(arg0);
-
+
}
/**
@@ -62,7 +62,7 @@ public class LineErrorException extends Exception {
*/
public LineErrorException(Throwable arg0) {
super(arg0);
-
+
}
/**
@@ -71,8 +71,8 @@ public class LineErrorException extends Exception {
*/
public LineErrorException(String arg0, Throwable arg1) {
super(arg0, arg1);
-
+
}
-
+
} \ No newline at end of file
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/OutputHandler.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/OutputHandler.java
index 997a522acedb..a874839a99a7 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/OutputHandler.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/OutputHandler.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Creates logfile and file for debug information
- *
+ *
*/
package com.sun.star.tooling.converter;
@@ -34,11 +34,11 @@ import java.io.BufferedWriter;
import java.io.IOException;
/**
- * Handle the whole output during converting process except the converted files.
- * Write output to logfiles and to screen depending on switches given
+ * Handle the whole output during converting process except the converted files.
+ * Write output to logfiles and to screen depending on switches given
* at command line.
* @author Christian Schmidt 2005
- *
+ *
*/
public class OutputHandler {
@@ -67,7 +67,7 @@ public class OutputHandler {
/**
* Write the data to screen and if the switches were set to
* logfile and debugfile
- *
+ *
* @param out the String to write
*/
final static void out(String out) {
@@ -100,9 +100,9 @@ public class OutputHandler {
}
/**
- * write the data to log file and if the switch is set
+ * write the data to log file and if the switch is set
* to the debug file
- *
+ *
* @param out the String to write
*/
final static void log(String out) {
@@ -127,7 +127,7 @@ public class OutputHandler {
/**
* write the string to the debug file
- *
+ *
* @param out the String to write
* @throws IOException
*/
@@ -145,7 +145,7 @@ public class OutputHandler {
/**
* Set a new value to indicate whether a debug file should be written or not
- *
+ *
* @param doDebug
* The debug value to set.
*/
@@ -153,16 +153,16 @@ public class OutputHandler {
OutputHandler.doDebug = doDebug;
}
- // /**
- // * @return Returns the doDebug.
- // */
- // private static boolean isDebug() {
- // return doDebug;
- // }
+ // /**
+ // * @return Returns the doDebug.
+ // */
+ // private static boolean isDebug() {
+ // return doDebug;
+ // }
/**
- * Set the debug file to write to.
- *
+ * Set the debug file to write to.
+ *
* @param dbgFile
* The debug File to use.
*/
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ResTypeResolver.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ResTypeResolver.java
index 585f69fe2c88..7466660c1a9d 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ResTypeResolver.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/ResTypeResolver.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Created on 2005
- * by Christian Schmidt
+ * by Christian Schmidt
*/
package com.sun.star.tooling.converter;
@@ -35,7 +35,7 @@ import java.util.Map;
/**
* Helps resolving restype descriptors used outside the tool to
* restype descriptors used by this tool
- *
+ *
* @author Christian Schmidt 2005
*
*/
@@ -44,20 +44,20 @@ public class ResTypeResolver {
final static String[] outFields={"res","res-quickhelp","res-help","res-title"};
final static Map internKeys=new ExtMap(inFields,outFields);
final static Map externKeys=new ExtMap(outFields,inFields);
-
+
/**
* Get the intern key depending to the given extern key
- *
+ *
* @param externKey the externKey {"res","res-quickhelp","res-help","title"}
* @return the depending intern key
*/
public static String getInternKey(String externKey){
return (String)externKeys.get(externKey);
}
-
+
/**
* Get the extern key to the given intern key
- *
+ *
* @param internKey the internal key
* @return the external key
*/
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Resolver.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Resolver.java
index 557731fe88f1..88f2235e0995 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Resolver.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/Resolver.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ public class Resolver implements EntityResolver {
/**
* Allow the application to resolve external entities.
- *
+ *
* The Parser will call this method before opening any external entity
* except the top-level document entity (including the external DTD subset,
* external entities referenced within the DTD, and external entities
@@ -59,11 +59,11 @@ public class Resolver implements EntityResolver {
* the parser resolve the entity itself, that it use an alternative URI, or
* that it use an entirely different input source.
*/
-
+
/* (non-Javadoc)
* @see org.xml.sax.EntityResolver#resolveEntity(java.lang.String, java.lang.String)
*/
-
+
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException, IOException {
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFReader.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFReader.java
index 9e47ae73c719..9b5d0ac41c2a 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFReader.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFReader.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
/*
* SDFReader.java
*
- *
+ *
*/
package com.sun.star.tooling.converter;
@@ -39,25 +39,25 @@ import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.*;
-/**
- *
- * SDFReader is a FileReader that knows about
+/**
+ *
+ * SDFReader is a FileReader that knows about
* the content of SDFFiles
- *
- * A SDFBlock is read of the given file. A SDFBlock
- * consists of all SDFLines that are traanslations of the
+ *
+ * A SDFBlock is read of the given file. A SDFBlock
+ * consists of all SDFLines that are traanslations of the
* same String and the SDFLine containing the source string
* itself. SDFFile lines are read and checked whether they
- * have the allowed column count and don't contain illeagal
+ * have the allowed column count and don't contain illeagal
* characters (like most unprintable characters below 0x00df).
- * If the given source language is not found in the first
- * block of SDFLines a ConverterException is thrown at runtime.
+ * If the given source language is not found in the first
+ * block of SDFLines a ConverterException is thrown at runtime.
* If the given target language is "" (that means not given)
- * the first language that is not the given source language
+ * the first language that is not the given source language
* is taken for target language. The found values are returned in HashMaps that
* use the following keys:
* <br/>
- * "BlockNr" originally coming from reading the sdf file, contains 'block nr in sdf file'+'-'+'hash value of the sdf id fields'.<br/>
+ * "BlockNr" originally coming from reading the sdf file, contains 'block nr in sdf file'+'-'+'hash value of the sdf id fields'.<br/>
* "Project" first column in sdf file format.<br/>
* "SourceFile" second column in sdf file format.<br/>
* "Dummy" third column in sdf file format.<br/>
@@ -67,20 +67,20 @@ import java.util.*;
* "HID" 7. column in sdf file format.<br/>
* "Platform" 8. column in sdf file format. <br/>
* "Width", 9. column in sdf file format.<br/>
- * "SourceLanguageID" 10. column in sdf file format(in the line with the source language).<br/>
+ * "SourceLanguageID" 10. column in sdf file format(in the line with the source language).<br/>
* "SourceText" 11. column in sdf file format(in the line with the source language).<br/>
* "SourceHText" 12. column in sdf file format(in the line with the source language).<br/>
* "SourceQText" 13. column in sdf file format(in the line with the source language).<br/>
- * "SourceTitle" 14. column in sdf file format(in the line with the source language).<br/>
+ * "SourceTitle" 14. column in sdf file format(in the line with the source language).<br/>
* "TargetLanguageID" 10. column in sdf file format (in the line with the target language).<br/>
* "TargetText" 11. column in sdf file format (in the line with the target language).<br/>
* "TargetHText" 12. column in sdf file format (in the line with the target language).<br/>
* "TargetQText" 13. column in sdf file format (in the line with the target language).<br/>
* "TargetTitle", 14. column in sdf file format (in the line with the target language).<br/>
* "TimeStamp" 15. column in sdf file format.<br/>
- *
+ *
* @author Christian Schmidt 2005
- *
+ *
*/
public class SDFReader extends DataReader {
@@ -132,7 +132,7 @@ public class SDFReader extends DataReader {
* language line
*/
private Map[] data = { sourceMap, targetMap };
-
+
/**
* The Id of the current SDFBlock
*/
@@ -142,7 +142,7 @@ public class SDFReader extends DataReader {
* The SDF file to read from
*/
private File sourceFile;
-
+
/**
* The language in the source file that should be handelt as source language
*/
@@ -152,12 +152,12 @@ public class SDFReader extends DataReader {
* The language in the source file that should be handelt as target language
*/
protected String targetLanguage;
-
+
/**
* A counter holding the number of blocks just read
* from this file
*/
- private long blockNr = 0;// If we use Integer, more then numbers greater than 128k would be signed
+ private long blockNr = 0;// If we use Integer, more then numbers greater than 128k would be signed
/**
* A counter holding the number of skipped lines that means
@@ -166,18 +166,18 @@ public class SDFReader extends DataReader {
private int skippedLines = 0;
/**
- * This switch is set for indicating that all source file lines
+ * This switch is set for indicating that all source file lines
* are read and no lines remain buffered. Finding this like 'true'
- * means the source file is finished
+ * means the source file is finished
*/
private boolean endIt = false;
/**
- * Indicates whether the targetLanguage is found in this source file so far
+ * Indicates whether the targetLanguage is found in this source file so far
*/
private boolean foundTarget = false;
/**
- * Indicates whether the sourceLanguage is found in this source file so far
+ * Indicates whether the sourceLanguage is found in this source file so far
*/
private boolean foundSource = false;
@@ -213,7 +213,7 @@ public class SDFReader extends DataReader {
* Counts the blocks without targetLanguage
*/
private int targetLangMiss;
-
+
/**
* Counts the blocks without sourceLanguage
*/
@@ -237,12 +237,12 @@ public class SDFReader extends DataReader {
/**
* Create a new Instance of SDFREader
- *
- * @param source the file to read from
+ *
+ * @param source the file to read from
* @param sourceLanguage the sourceLanguage (must not be empty)
* @param targetLanguage the targetLanguage
* @param charset the charset used to read source
- * @throws java.io.IOException
+ * @throws java.io.IOException
* @throws Exception
*/
public SDFReader(File source, String sourceLanguage, String targetLanguage,
@@ -260,7 +260,7 @@ public class SDFReader extends DataReader {
if ((splitLine = split(line)) != null){
this.CurrentBlockId = getSDFBlockId(splitLine);
this.CurrentBlockHash=this.CurrentBlockId.hashCode();
- //found the first
+ //found the first
this.blockNr++;
}
this.splittedLineBuffer = splitLine;
@@ -268,12 +268,12 @@ public class SDFReader extends DataReader {
reset();
}
-
+
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataReader#getData()
*/
public Map getData()throws IOException {
-
+
Map map=new HashMap();
// do {
this.skip=false;
@@ -287,17 +287,17 @@ public class SDFReader extends DataReader {
}else{
map.putAll(help[1]);
map.putAll(help[0]);
-
+
}
-// }while(this.skip=true);
+// }while(this.skip=true);
return map;
}
/**
- * Read a Block from the sdf file and return
+ * Read a Block from the sdf file and return
* @return a Map[] where [0] holds the source and [1] the target language data.
- *
+ *
* @throws java.io.IOException
*/
public Map[] readBlock() throws java.io.IOException {
@@ -317,13 +317,13 @@ public class SDFReader extends DataReader {
line = this.lineBuffer;
splittedLine = this.splittedLineBuffer;
this.SDFMap = new ExtMap(SDFReader.fieldnames, splittedLine);
-
+
try {
checkLanguage(splittedLine);
} catch (ConverterException e) {
throw e;
}finally{
-
+
useBuffer = false;
}
} else {
@@ -358,7 +358,7 @@ public class SDFReader extends DataReader {
* we found the next block , but do we have the
* target text?
*/
-
+
if (!foundTarget) {
createTargetLine();
}
@@ -402,7 +402,7 @@ public class SDFReader extends DataReader {
}
} catch (LineErrorException e) {
-
+
OutputHandler.log(e.getMessage());
this.skippedLines++;
} catch (ConverterException e) {
@@ -442,7 +442,7 @@ public class SDFReader extends DataReader {
}
/**
- *
+ *
*/
private void createTargetLine() {
targetLangMiss++;
@@ -466,7 +466,7 @@ public class SDFReader extends DataReader {
/**
* Show the statistic information got while
* reading the file
- *
+ *
* @throws IOException
*/
private void showStat() throws IOException {
@@ -493,13 +493,13 @@ public class SDFReader extends DataReader {
}
/**
- * Check the current line whether the source language
+ * Check the current line whether the source language
* or target language is in it
- *
+ *
* @throws ConverterException if a not needed language or no target language is found
- * in this block
+ * in this block
* @throws IOException
- *
+ *
*/
final private void checkLanguage(String[] splittedLine)
throws ConverterException, IOException {
@@ -509,7 +509,7 @@ public class SDFReader extends DataReader {
if (!foundSource && this.sourceLanguage.equals(langID)) {
// found the next source language line
this.data[0] = new ExtMap(SDFReader.sourceLineNames, splittedLine);
-
+
// this.data[0].put("BlockNr", Integer.toHexString(blockNr));
// this.data[0].put("BlockHash", Integer.toHexString(this.CurrentBlockHash));
this.data[0].put("BlockNr", blockNrFormatter.format(blockNr)+'-'+Integer.toHexString(this.CurrentBlockHash));
@@ -533,7 +533,7 @@ public class SDFReader extends DataReader {
+ this.sourceLanguage + " ");
OutputHandler.out("Target Language is: "
+ this.targetLanguage + " ");
- OutputHandler.out(EMPTY);
+ OutputHandler.out(EMPTY);
System.out.println("Start");
} else {
@@ -572,8 +572,8 @@ public class SDFReader extends DataReader {
}
/**
- * split the SDFLine in its columns
- *
+ * split the SDFLine in its columns
+ *
* @param line the current SDFLine
* @return the splitted SDFLine as array of String
* or null if an error occours
@@ -592,9 +592,9 @@ public class SDFReader extends DataReader {
/**
* create a block Id from a splitted SDFLine
* the blockId consists of the column one to eight of an SDF File
- *
+ *
* @param splitLine the line to create a block id from
- * @return the blockId as String
+ * @return the blockId as String
*/
private String getSDFBlockId(String[] splitLine) {
StringBuffer BlockId = new StringBuffer("");
@@ -610,11 +610,11 @@ public class SDFReader extends DataReader {
/**
* Check if there are not allowed characters in this line
- *
+ *
* @param line the SDFLine to check
* @return if everything, ok the original
* else the wrong character as String
- *
+ *
* @throws java.io.IOException
*/
private String check(String line) throws java.io.IOException {
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java
index 4c79cd113f6f..d66b21ce90f3 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/SDFWriter.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
/*
* SDFWriter.java
*
- *
+ *
*/
package com.sun.star.tooling.converter;
@@ -35,8 +35,8 @@ import java.io.*;
import java.util.Map;
/**
- * Write data to a SDFFile
- *
+ * Write data to a SDFFile
+ *
* @author Christian Schmidt 2005
*
*/
@@ -57,7 +57,7 @@ public class SDFWriter extends DataWriter {
* an array of the SDF files column names if the source and the target language is in
*/
final static String[] outLineNames= {"BlockNr","Project","SourceFile","Dummy","ResType","GID","LID","HID","Platform","Width","SourceLanguageID","SourceText","SourceHText","SourceQText","SourceTitle","TargetLanguageID","TargetText","TargetHText","TargetQText","TargetTitle","TimeStamp"};
-
+
/**
* A Map holding the source language line content
*/
@@ -80,31 +80,31 @@ public class SDFWriter extends DataWriter {
* The language to translate to
*/
private String targetLanguage;
-
+
// private boolean SourceIsFirst=false;
-
-
-
-
+
+
+
+
/**
* Create a new Instance of SDFWriter
- *
+ *
* @param bos BufferedWriter to write to
* @param charset the charset to use to write
* @throws java.io.UnsupportedEncodingException
*/
public SDFWriter(BufferedOutputStream bos,String charset) throws java.io.UnsupportedEncodingException {
super(bos,charset);
-
+
}
-
+
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataWriter#writeData()
*/
public final void writeData() throws java.io.IOException {
-
+
StringBuffer buffer=new StringBuffer("");
-
+
// get the values of the found fields
//create the two sdf lines
@@ -120,7 +120,7 @@ public class SDFWriter extends DataWriter {
// so close it with lf
buffer.append(lineEnd);
Converter.countLine();
- }
+ }
}
// is there a target line with anything in the strings?
if (!(outData.get("TargetLanguageID")==null||((outData.get("TargetTitle").equals("")&&outData.get("TargetText").equals("")&&outData.get("TargetHText").equals("")&&outData.get("TargetQText").equals(""))))){
@@ -136,13 +136,13 @@ public class SDFWriter extends DataWriter {
//so close it with lf
buffer.append(lineEnd);
Converter.countLine();
- }
+ }
}
}
this.write(buffer.toString());
-
+
}
-
+
/* (non-Javadoc)
@@ -150,14 +150,14 @@ public class SDFWriter extends DataWriter {
*/
protected void writeData(Map[] data) throws IOException {
// TODO redesign DataHandler in the way that this is not nessesary any more
-
+
}
/* (non-Javadoc)
* @see com.sun.star.tooling.converter.DataWriter#getDataFrom(com.sun.star.tooling.converter.DataHandler)
*/
protected void getDataFrom(DataHandler handler) throws IOException {
-
+
handler.putDataTo(this.outData);
}
@@ -165,8 +165,8 @@ public class SDFWriter extends DataWriter {
* @see com.sun.star.tooling.converter.DataWriter#getDatafrom(com.sun.star.tooling.converter.DataHandler)
*/
protected void getDatafrom(DataHandler handler) throws IOException {
-
+
handler.putDataTo(this.outData);
-
+
}
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFReader.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFReader.java
index 76d14bd98569..88242070a538 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFReader.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFReader.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
/*
* XLIFFReader.java
*
- *
+ *
*/
package com.sun.star.tooling.converter;
@@ -47,13 +47,13 @@ import org.xml.sax.helpers.DefaultHandler;
/**
* Parse the given file and extract the content needed.
* <br/>
- * This Reader understands the parts of the
+ * This Reader understands the parts of the
* <a href="http://www.oasis-open.org/committees/xliff/documents/cs-xliff-core-1.1-20031031.htm">xliff</a> spezification used to translate
* the strings in Star-Office and Open-Office.
* <br/>
* The given file is parsed and the content is stored in a HashMap with those keys:
* <br/>
- * "BlockNr" originally coming from reading the sdf file, contains 'block nr in sdf file'+'-'+'hash value of the sdf id fields'.<br/>
+ * "BlockNr" originally coming from reading the sdf file, contains 'block nr in sdf file'+'-'+'hash value of the sdf id fields'.<br/>
* "Project" first column in sdf file format.<br/>
* "SourceFile" second column in sdf file format.<br/>
* "Dummy" third column in sdf file format.<br/>
@@ -63,11 +63,11 @@ import org.xml.sax.helpers.DefaultHandler;
* "HID" 7. column in sdf file format.<br/>
* "Platform" 8. column in sdf file format. <br/>
* "Width", 9. column in sdf file format.<br/>
- * "SourceLanguageID" 10. column in sdf file format(in the line with the source language).<br/>
+ * "SourceLanguageID" 10. column in sdf file format(in the line with the source language).<br/>
* "SourceText" 11. column in sdf file format(in the line with the source language).<br/>
* "SourceHText" 12. column in sdf file format(in the line with the source language).<br/>
* "SourceQText" 13. column in sdf file format(in the line with the source language).<br/>
- * "SourceTitle" 14. column in sdf file format(in the line with the source language).<br/>
+ * "SourceTitle" 14. column in sdf file format(in the line with the source language).<br/>
* "TargetLanguageID" 10. column in sdf file format (in the line with the target language).<br/>
* "TargetText" 11. column in sdf file format (in the line with the target language).<br/>
* "TargetHText" 12. column in sdf file format (in the line with the target language).<br/>
@@ -81,7 +81,7 @@ import org.xml.sax.helpers.DefaultHandler;
public class XLIFFReader extends DefaultHandler {
/**
- * A String array holding the keys used by the HashMap holding the Data
+ * A String array holding the keys used by the HashMap holding the Data
*/
private final String[] dataNames = { "BlockNr", "Project",
"SourceFile", "Dummy", "ResType", "GID", "LID", "HID", "Platform",
@@ -90,7 +90,7 @@ public class XLIFFReader extends DefaultHandler {
"TargetHText", "TargetQText", "TargetTitle", "TimeStamp" };
/**
- * Used to index in the data array
+ * Used to index in the data array
*/
static int index = 0;
@@ -100,7 +100,7 @@ public class XLIFFReader extends DefaultHandler {
private Map moveData = new ExtMap();
/**
- * A Map that holds yet incomplete data
+ * A Map that holds yet incomplete data
* until all depending transunits are found
*/
private Hashtable DataStore = new Hashtable();
@@ -128,7 +128,7 @@ public class XLIFFReader extends DefaultHandler {
/**
* data holds the information created while parsing
- *
+ *
*/
private String[] data = new String[26];
@@ -164,7 +164,7 @@ public class XLIFFReader extends DefaultHandler {
private String targetLanguage;
/**
- * indicates whether this is the first Transunit
+ * indicates whether this is the first Transunit
*/
private boolean isFirst = true;
@@ -269,7 +269,7 @@ public class XLIFFReader extends DefaultHandler {
* Index for the Found Parts Counter in the data array
*/
private static final int FOUND_PARTS_COUNTER_IDX = 18;
-
+
/**
* used to find the matching ISO or RFC3066 language code
*/
@@ -281,8 +281,8 @@ public class XLIFFReader extends DefaultHandler {
/**
* Create a new Instance of XLIFFReader
- *
- * @param handler the DataHandler to use
+ *
+ * @param handler the DataHandler to use
* @param target the target used
* @throws IOException
*/
@@ -291,21 +291,21 @@ public class XLIFFReader extends DefaultHandler {
this.handler = handler;
this.target = target;
}
-
+
/**
* Create a new Instance of XLIFFReader
- *
- * @param handler the DataHandler to use
+ *
+ * @param handler the DataHandler to use
* @param target the target used
* @param doBlockCompleteCheck indicates whether every single transunit should be returned or the whole block data is to be collected
- *
+ *
* @throws IOException
*/
public XLIFFReader(DataHandler handler, DataWriter target,boolean doBlockCompleteCheck) throws IOException {
this(handler, target);
this.languageResolver = new LanguageResolver();
this.doBlockCompleteCheck=doBlockCompleteCheck;
-
+
}
/**
@@ -374,7 +374,7 @@ public class XLIFFReader extends DefaultHandler {
storeIt=true;
return;
-
+
}
if (qName.equals("target")) {
if ((resType = data[RESTYPE_IDX]) == null) {
@@ -382,7 +382,7 @@ public class XLIFFReader extends DefaultHandler {
} else {
if ("res".equals(resType)) {
index = TARGET_TEXT_IDX;
-
+
storeIt = true;
return;
}
@@ -393,13 +393,13 @@ public class XLIFFReader extends DefaultHandler {
// }
if ("res-QuickHelp".equals(resType)) {
index = TARGET_QUICKHELP_TEXT_IDX;
-
+
storeIt = true;
return;
}
if ("res-Title".equals(resType)) {
index = TARGET_TITLE_TEXT_IDX;
-
+
storeIt = true;
return;
}
@@ -412,7 +412,7 @@ public class XLIFFReader extends DefaultHandler {
} else {
if ("res".equals(resType)) {
index = SOURCE_TEXT_IDX;
-
+
storeIt = true;
return;
}
@@ -450,7 +450,7 @@ public class XLIFFReader extends DefaultHandler {
if (qName.equals("trans-unit")) {
String id = attrs.getValue("id");
if ((DataStore.get(id)) != null) {
- //TODO arraycopy might not be nessessary
+ //TODO arraycopy might not be nessessary
System.arraycopy((String[]) DataStore.get(id), 0, data, 0,
data.length);
int help = (new Integer(data[FOUND_PARTS_COUNTER_IDX])).intValue(); //found one more part
@@ -468,7 +468,7 @@ public class XLIFFReader extends DefaultHandler {
}
if (qName.equals("context")) {
-
+
String value = attrs.getValue("context-type");
if ("SourceHelpText".equals(value)) {
@@ -570,7 +570,7 @@ public class XLIFFReader extends DefaultHandler {
* @see org.xml.sax.ErrorHandler#fatalError(org.xml.sax.SAXParseException)
*/
public void fatalError(SAXParseException e) throws SAXParseException {
-
+
OutputHandler.log("PARSE ERROR in line " + e.getLineNumber() + ", "
+ e.getMessage() );
@@ -585,9 +585,9 @@ public class XLIFFReader extends DefaultHandler {
}
/**
- * Put the Data to the DataHandler
+ * Put the Data to the DataHandler
* tell the Writer to write it
- *
+ *
* @throws SAXException
*/
public void showData() throws SAXException {
@@ -627,10 +627,10 @@ public class XLIFFReader extends DefaultHandler {
initData();
}
-
+
/**
* put the data in an Map in the format that
- * DataHandler can handle it
+ * DataHandler can handle it
*/
final public void moveData() {
@@ -685,16 +685,16 @@ public class XLIFFReader extends DefaultHandler {
/**
* complete means all depending parts have been found esp. all res types
* that belong to the same SDF Line
- *
+ *
* @return true if the data is complete
- *
+ *
*/
final public boolean isComplete() {
-
+
if(!doBlockCompleteCheck){
return true;
}
-
+
String sParts;
if (data[FOUND_PARTS_COUNTER_IDX] == EMPTY)
data[FOUND_PARTS_COUNTER_IDX] = "1"; //this is the first part
@@ -713,7 +713,7 @@ public class XLIFFReader extends DefaultHandler {
/**
* show the user that it is going
* on by printing dots on the screen
- *
+ *
*/
private void makeDot() {
int count = 0;
@@ -725,7 +725,7 @@ public class XLIFFReader extends DefaultHandler {
/**
* show the statistic data found while parse this file
- *
+ *
* @throws IOException
*/
final void showStatistic() throws IOException {
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFWriter.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFWriter.java
index d7b6160dcc95..15a618b0d6d6 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFWriter.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/converter/XLIFFWriter.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,11 +25,11 @@
*
************************************************************************/
/*
- *
+ *
/*
* XLIFFWriter.java
*
- *
+ *
*/
package com.sun.star.tooling.converter;
@@ -42,8 +42,8 @@ import com.sun.star.tooling.languageResolver.LanguageResolver;
import com.sun.star.tooling.languageResolver.LanguageResolver.LanguageResolvingException;
/**
- * Write the Data to a wellformed XLIFF File
- *
+ * Write the Data to a wellformed XLIFF File
+ *
* @author Christian Schmidt
*/
public class XLIFFWriter extends DataWriter {
@@ -71,32 +71,32 @@ public class XLIFFWriter extends DataWriter {
"SourceQText", "SourceTitle", "TargetLanguageID", "TargetText",
"TargetHText", "TargetQText", "TargetTitle", "TimeStamp" };
/**
- * An Map holding the source and target content
+ * An Map holding the source and target content
*/
private final Map data = new ExtMap(outLineNames, null);
/**
- * Indicates if this is the first Transunit to write
+ * Indicates if this is the first Transunit to write
*/
boolean isFirst = true;
-
+
LanguageResolver languageResolver;
-
+
/**
* Create a new Instance of XLIFFWriter
- *
+ *
* @param bos the Buffered Output Stream to write to
* @param charset the charset to use
- * @throws IOException
+ * @throws IOException
*/
public XLIFFWriter(BufferedOutputStream bos, String charset)
throws IOException {
super(bos, charset);
this.languageResolver =new LanguageResolver();
-
-
+
+
}
/* (non-Javadoc)
@@ -107,8 +107,8 @@ public class XLIFFWriter extends DataWriter {
}
/**
- * check if the item is an empty String
- *
+ * check if the item is an empty String
+ *
* @param item the string to check
* @return true if it is not empty, false if it is empty
*/
@@ -120,7 +120,7 @@ public class XLIFFWriter extends DataWriter {
/**
* Replaces all characters that mustn't be in XLIFF PCdata
- *
+ *
* @param string the string to check
* @return the checked string with all characters replaced
* @throws java.io.IOException
@@ -129,17 +129,17 @@ public class XLIFFWriter extends DataWriter {
if (string == null)
return string; // ""
String str = string;
-// str = str.replaceAll("&", "&amp;");
-// str = str.replaceAll("<", "&lt;");
-// str = str.replaceAll(">", "&gt;");
-// str = str.replaceAll("\"", "&quot;");
-// str = str.replaceAll("'", "&apos;");
+// str = str.replaceAll("&", "&amp;");
+// str = str.replaceAll("<", "&lt;");
+// str = str.replaceAll(">", "&gt;");
+// str = str.replaceAll("\"", "&quot;");
+// str = str.replaceAll("'", "&apos;");
for(int i=0;i<str.length();i++){
if(str.charAt(i)=='&'){
str=str.substring(0, i)+"&amp;"+str.substring(i+1);
continue;
}
-
+
if(str.charAt(i)=='<'){
str=str.substring(0, i)+"&lt;"+str.substring(i+1);
continue;
@@ -178,30 +178,30 @@ public class XLIFFWriter extends DataWriter {
*/
public void writeData() throws IOException {
if (isFirst) {
-
+
writeHeader();
isFirst = false;
}
try{
writeTransUnit();
}catch(DirtyTagWrapper.TagWrapperException e){
-
+
}
}
/**
* Write the XLIFFFiles header
- *
+ *
* @throws IOException
*/
- private void writeHeader() throws IOException {
+ private void writeHeader() throws IOException {
this.write(getHeader());
}
/**
* Write the XLIFFFiles Trailer
- *
+ *
* @throws IOException
*/
private void writeTrailer() throws IOException {
@@ -210,20 +210,20 @@ public class XLIFFWriter extends DataWriter {
/**
* Write the next TransUnit
- *
+ *
* @throws IOException
*/
private void writeTransUnit() throws IOException, DirtyTagWrapper.TagWrapperException {
try{
StringBuffer writeBuffer = new StringBuffer(1000);
-
+
StringBuffer allLinesEnd = new StringBuffer(200);
String sRessource = "";
int parts = 0;
if (data == null) {
OutputHandler.out("error");// TBD Exception
}
-
+
if (!(this.data.get("SourceText").equals("") || this.data.get(
"SourceText").equals(" "))) {
parts++;
@@ -243,10 +243,10 @@ public class XLIFFWriter extends DataWriter {
if (!(this.data.get("SourceText").equals("") || this.data.get(
"SourceText").equals(" "))) {
sRessource = "res"; // normal TEXT source
-
+
allLinesEnd
.append("\t\t\t\t<context-group name=\"StarOffice Attributes\">\n");
-
+
if (isUsed((String) this.data.get("ResType")))
allLinesEnd
.append("\t\t\t\t\t<context context-type=\"DBType\">"
@@ -299,7 +299,7 @@ public class XLIFFWriter extends DataWriter {
+ "</context>\n");
allLinesEnd.append("\t\t\t\t</context-group>\n"
+ "\t\t\t</trans-unit>\n");
-
+
writeBuffer.append("\t\t\t<trans-unit id=\""
+ this.data.get("BlockNr") + ":" + parts + "\" restype=\""
+ sRessource + "\" translate=\"yes\">\n");
@@ -308,7 +308,7 @@ public class XLIFFWriter extends DataWriter {
+ languageResolver.getRFCFromISO((String)this.data.get("SourceLanguageID")) + "\">"
+ DirtyTagWrapper.wrapString((String) this.data.get("SourceText"))
+ "</source>\n");
-
+
if (isUsed((String) this.data.get("TargetText")))
writeBuffer
.append("\t\t\t\t<target state=\"to_translate\" xml:lang=\""
@@ -318,7 +318,7 @@ public class XLIFFWriter extends DataWriter {
.get("TargetText")) + "</target>\n");
writeBuffer.append(allLinesEnd);
Converter.countLine();
-
+
}
// if(!(this.data.get("SourceHText").equals("")||this.data.get("SourceHText").equals("
// "))){
@@ -336,7 +336,7 @@ public class XLIFFWriter extends DataWriter {
// writeBuffer.append(allLinesEnd);
// Converter.countLine();
// }
-
+
if (!(this.data.get("SourceQText").equals("") || this.data.get(
"SourceQText").equals(" "))) {
sRessource = "res-QuickHelp"; // Source is OuickHelp
@@ -359,11 +359,11 @@ public class XLIFFWriter extends DataWriter {
writeBuffer.append(allLinesEnd);
Converter.countLine();
}
-
+
if (!(this.data.get("SourceTitle").equals("") || this.data.get(
"SourceTitle").equals(" "))) {
sRessource = "res-Title"; // Source is Title
-
+
writeBuffer.append("\t\t\t<trans-unit id=\""
+ this.data.get("BlockNr") + ":" + parts + "\" restype=\""
+ sRessource + "\" translate=\"yes\">\n");// always translate
@@ -389,8 +389,8 @@ public class XLIFFWriter extends DataWriter {
}
/**
- * Create the XLIFFFiles Header
- *
+ * Create the XLIFFFiles Header
+ *
* @return the header as string
* @throws java.io.UnsupportedEncodingException
*/
@@ -399,18 +399,18 @@ public class XLIFFWriter extends DataWriter {
(getProcessingInstructionTag() + getDTDLine()
+ openVersionLine() + openFileLine() + getHeaderTag() + openBodyTag())
.getBytes(), "UTF8");
-
+
}
/**
* Create the XLIFFFiles Trailer
- *
+ *
* @return the trailer as string
*/
private String getTrailer() {
return closeBodyTag() + closeFileLine() + closeVersionLine();
}
-
+
/**
* Create the Processing Instruction Tag used by this XLIFFFile
* @return the Processing Instruction Tag used by this XLIFFFile
@@ -439,7 +439,7 @@ public class XLIFFWriter extends DataWriter {
/**
* Create the beginning of the line holding the version of this XIFFFile
- *
+ *
* @return a string with the beginning of the line holding the version of this XIFFFile
*/
private String openVersionLine() {
@@ -447,7 +447,7 @@ public class XLIFFWriter extends DataWriter {
}
/**
* Create the ending of the line holding the version of this XIFFFile
- *
+ *
* @return a string with the ending of the line holding the version of this XIFFFile
*/
private String closeVersionLine() {
@@ -455,11 +455,11 @@ public class XLIFFWriter extends DataWriter {
}
/**
* Create the beginning of the line holding the file tag of this XIFFFile
- *
+ *
* @return a string with the beginning of the file tag of this XIFFFile
*/
private String openFileLine() {
-
+
String FileTagStart = "\t<file";
String FileDataType = " datatype=\"STAROFFICE\"";
String FileDate = " date=\"" + this.data.get("TimeStamp") + "\"";
@@ -478,11 +478,11 @@ public class XLIFFWriter extends DataWriter {
String FileTagEnd = ">";
return FileTagStart + FileDataType + FileDate + FileOriginal
+ FileSourceLanguage + FileTargetLanguage + FileTagEnd;
-
+
}
/**
* Create the ending of the line holding the file tag of this XIFFFile
- *
+ *
* @return a string with the ending of the file tag of this XIFFFile
*/
private String closeFileLine() {
@@ -497,7 +497,7 @@ public class XLIFFWriter extends DataWriter {
}
/**
* Create the begining of the line holding the body tag of this XIFFFile
- *
+ *
* @return a string with the begining of the body tag of this XIFFFile
*/
private String openBodyTag() {
@@ -505,7 +505,7 @@ public class XLIFFWriter extends DataWriter {
}
/**
* Create the ending of the line holding the body tag of this XIFFFile
- *
+ *
* @return a string with the ending of the body tag of this XIFFFile
*/
private String closeBodyTag() {
@@ -514,7 +514,7 @@ public class XLIFFWriter extends DataWriter {
/*
* (non-Javadoc)
- *
+ *
* @see com.sun.star.tooling.converter.DataWriter#writeData(java.util.Map[])
*/
protected void writeData(Map[] data) throws IOException {
@@ -524,9 +524,9 @@ public class XLIFFWriter extends DataWriter {
/*
* (non-Javadoc)
- *
+ *
* @see com.sun.star.tooling.converter.DataWriter#getDataFrom(com.sun.star.tooling.converter.DataHandler)
*/
- protected void getDataFrom(DataHandler handler) { }
+ protected void getDataFrom(DataHandler handler) { }
}
diff --git a/l10ntools/java/l10nconv/java/com/sun/star/tooling/languageResolver/LanguageResolver.java b/l10ntools/java/l10nconv/java/com/sun/star/tooling/languageResolver/LanguageResolver.java
index 4015c3acd2a7..5dbc8b68b32d 100755
--- a/l10ntools/java/l10nconv/java/com/sun/star/tooling/languageResolver/LanguageResolver.java
+++ b/l10ntools/java/l10nconv/java/com/sun/star/tooling/languageResolver/LanguageResolver.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
************************************************************************/
/*
* Created on 2005
- * by Christian Schmidt
+ * by Christian Schmidt
*/
package com.sun.star.tooling.languageResolver;
@@ -40,7 +40,7 @@ import java.util.ListIterator;
/**
* Translate language codes into another format
* between ISO, RFC3066 and numeric
- *
+ *
* @author Christian Schmidt 2005
*
*/
@@ -49,21 +49,21 @@ public class LanguageResolver {
private final static int LANGID =0;
private final static int LANGNAME =1;
private final static int RFC3066 =3;
-
+
ArrayList languages=new ArrayList();
-
+
// public static void main(String[] args){
// try {
// LanguageResolver lr=new LanguageResolver();
// } catch (IOException e) {
-// //
+// //
// e.printStackTrace();
// }
// }
-
+
/**
* Create a new Instance of LanguageResolver
- *
+ *
* @throws IOException
*/
public LanguageResolver() throws IOException{
@@ -71,16 +71,16 @@ public class LanguageResolver {
ClassLoader cl = this.getClass().getClassLoader();
InputStream in = cl.getResourceAsStream(lang);
BufferedReader languageTable= new BufferedReader(new InputStreamReader(in));
-
+
String line;
-
+
while((line=(languageTable.readLine()))!=null){
languages.add(line.split(","));
}
}
/**
* Get the numeric value of the given ISO Language Code
- *
+ *
* @param isoCode the ISO Language Code to find
* @return numeric value of the given isoCode
* @throws LanguageResolvingException if the Language ISO Code is not known
@@ -94,12 +94,12 @@ public class LanguageResolver {
if(line[ISO].equals(isoCode)) return line[LANGID];
}
throw new LanguageResolvingException("Can not find ISO Code: "+isoCode );
-
+
}
-
+
/**
* Get the ISO Language Code corresponding with the given Language ID
- *
+ *
* @param ID the numeric language id to find
* @return the ISO Language Code corresponding with the given Language ID
* @throws LanguageResolvingException if the Language ID is not known
@@ -114,10 +114,10 @@ public class LanguageResolver {
}
throw new LanguageResolvingException("Can not find Language Id: "+ID );
}
-
+
/**
* Get the RFC3066 value of the given ISO Language Code
- *
+ *
* @param isoCode the ISO Language Code to find
* @return RFC3066 value of the given isoCode
* @throws LanguageResolvingException if the Language ISO Code is not known
@@ -132,10 +132,10 @@ public class LanguageResolver {
}
throw new LanguageResolvingException("Can not find ISO Code: "+isoCode );
}
-
+
/**
* Get the ISO Language Code corresponding with the given RFC3066 code
- *
+ *
* @param RFC RFC3066 language id to find
* @return the ISO Language Code corresponding with the given RFC3066 code
* @throws LanguageResolvingException if the RFC3066 code is not known
@@ -150,22 +150,22 @@ public class LanguageResolver {
}
throw new LanguageResolvingException("Can not find Language Id: "+RFC );
}
-
-
+
+
/**
- * This Exception is thrown if a Language Identfier is unknown
- *
+ * This Exception is thrown if a Language Identfier is unknown
+ *
* @author Christian Schmidt 2005
*
*/
public class LanguageResolvingException extends Exception {
/**
- *
+ *
*/
public LanguageResolvingException() {
super();
- //
+ //
}
/**
@@ -173,7 +173,7 @@ public class LanguageResolver {
*/
public LanguageResolvingException(String arg0) {
super(arg0);
- //
+ //
}
/**
@@ -182,7 +182,7 @@ public class LanguageResolver {
*/
public LanguageResolvingException(String arg0, Throwable arg1) {
super(arg0, arg1);
- //
+ //
}
/**
@@ -190,7 +190,7 @@ public class LanguageResolver {
*/
public LanguageResolvingException(Throwable arg0) {
super(arg0);
- //
+ //
}
}
diff --git a/l10ntools/java/receditor/build.xml b/l10ntools/java/receditor/build.xml
index 4a88f61e4fc5..dacfe8eec1b6 100755
--- a/l10ntools/java/receditor/build.xml
+++ b/l10ntools/java/receditor/build.xml
@@ -2,23 +2,23 @@
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-
+
Copyright 2000, 2010 Oracle and/or its affiliates.
-
+
OpenOffice.org - a multi-platform office productivity suite
-
+
This file is part of OpenOffice.org.
-
+
OpenOffice.org is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
-
+
OpenOffice.org is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License version 3 for more details
(a copy is included in the LICENSE file that accompanied this code).
-
+
You should have received a copy of the GNU Lesser General Public License
version 3 along with OpenOffice.org. If not, see
<http://www.openoffice.org/license.html>
diff --git a/l10ntools/java/receditor/java/transex3/controller/EditorController.java b/l10ntools/java/receditor/java/transex3/controller/EditorController.java
index 38462d665304..1b5f54556836 100644
--- a/l10ntools/java/receditor/java/transex3/controller/EditorController.java
+++ b/l10ntools/java/receditor/java/transex3/controller/EditorController.java
@@ -26,18 +26,18 @@ public class EditorController {
public final String[] RESTYPES = { ".src",".hrc",".xcu",".xrm",".xhp" };
public final String RECFILE = ".recommand";
// Editor View
- static transex3.view.Editor aEditor = null;
+ static transex3.view.Editor aEditor = null;
// Editor Model
- static Vector sdfstrings = new Vector();
- static HashMap hashedsdfstrings = new HashMap();
+ static Vector sdfstrings = new Vector();
+ static HashMap hashedsdfstrings = new HashMap();
int oldindex = 0;
- //HashMap hashedfilenames = new HashMap();
+ //HashMap hashedfilenames = new HashMap();
// Search for source Strings
public String fetchSourceStrings( String rootdir ){
//String outputfile = "h:\\workspace\\recommandEditor\\null2";
File tempfile = null;
-
+
try {
tempfile = File.createTempFile( "receditor" , "tmp" );
} catch (IOException e1) {
@@ -45,7 +45,7 @@ public class EditorController {
System.err.println("Can not create temp file\n");
e1.printStackTrace();
}
-
+
String outputfile = tempfile.getAbsolutePath();
try
{
@@ -78,17 +78,17 @@ public class EditorController {
findRecommandFiles( aFileArray[ cnt ] , list);
else if( aFileArray[ cnt ].isFile() && isRecommandFile( aFileArray[ cnt ] ) )
list.add( aFileArray[ cnt ]);
- }
+ }
}
}
private boolean isResourceType( File aFile ){
- String filename = aFile.getName();
- boolean isResType = false;
+ String filename = aFile.getName();
+ boolean isResType = false;
for(int cnt = 0; cnt < RESTYPES.length ; cnt++){
if( filename.endsWith( RESTYPES[ cnt ] ) )
isResType = true;
}
- return isResType;
+ return isResType;
}
private boolean isRecommandFile( File aFile ){
return aFile.getName().endsWith( RECFILE );
@@ -105,15 +105,15 @@ public class EditorController {
// Add all data to view
void updateData(){
JTable recTable =transex3.controller.EditorController.aEditor.getRectable();
-
+
SdfString aSdfString = (SdfString) sdfstrings.get( oldindex );
Vector newStrings = new Vector();
for ( int n = 1; n < recTable.getRowCount() ; n++ ){
- String lang = (String) recTable.getValueAt(n , 0 );
- String text = (String) recTable.getValueAt(n , 1 );
- String htext = (String) recTable.getValueAt(n , 2 );
- String qhtext = (String) recTable.getValueAt(n , 3 );
- String ttext = (String) recTable.getValueAt(n , 4 );
+ String lang = (String) recTable.getValueAt(n , 0 );
+ String text = (String) recTable.getValueAt(n , 1 );
+ String htext = (String) recTable.getValueAt(n , 2 );
+ String qhtext = (String) recTable.getValueAt(n , 3 );
+ String ttext = (String) recTable.getValueAt(n , 4 );
if( lang != null && text != null ){
//System.out.println("Data "+ lang + " " + text );
SdfEntity aSdfEntity = new SdfEntity();
@@ -129,7 +129,7 @@ public class EditorController {
}
public void initView(){
- Object[][] sourceStringData = new Object[ sdfstrings.size() ][ 4 ];
+ Object[][] sourceStringData = new Object[ sdfstrings.size() ][ 4 ];
Object[][] firstData = new Object[100][5];
// Set the files
Iterator aIter = sdfstrings.iterator();
@@ -161,11 +161,11 @@ public class EditorController {
counter++;
}
// Set the source srtings
-
-
+
+
//aEditor = new transex3.view.Editor( sourceStringData , filedata.toArray() );
aEditor = new transex3.view.Editor( sourceStringData , firstData );
-
+
aEditor.setBounds(100,100,800,900);
aEditor.setDefaultCloseOperation( WindowConstants.DISPOSE_ON_CLOSE );
aEditor.setVisible(true);
@@ -175,7 +175,7 @@ public class EditorController {
System.exit( 0 );
}
});
-
+
aEditor.getMiExit().addActionListener( new ActionListener(){
public void actionPerformed( ActionEvent e ){
System.exit( 0 );
@@ -219,8 +219,8 @@ public class EditorController {
public void tableChanged( TableModelEvent e ){
//System.out.println( e );
}});
-
-
+
+
aEditor.getRectable().getSelectionModel().addListSelectionListener( new ListSelectionListener(){
public void valueChanged( ListSelectionEvent e ){
JTable aTable = aEditor.getRectable();
@@ -237,29 +237,29 @@ public class EditorController {
//System.out.println("Selected = " +e.getFirstIndex()+"\n");
JTable table =transex3.controller.EditorController.aEditor.getTable();
JTable recTable =transex3.controller.EditorController.aEditor.getRectable();
- SdfString aSdfString;
+ SdfString aSdfString;
JTable aTable = aEditor.getRectable();
if( aTable.getSelectedRow() != -1 && aTable.getSelectedColumn() != -1 )
aTable.getCellEditor( aTable.getSelectedRow(), aTable.getSelectedColumn() ).stopCellEditing();
-
+
updateData();
clearAllRows( recTable );
-
+
aSdfString = (SdfString) sdfstrings.get( table.getSelectedRow() );
recTable.setValueAt( "en-US" , 0, 0 );
- recTable.setValueAt( aSdfString.getSourceString().getText() , 0, 1 );
+ recTable.setValueAt( aSdfString.getSourceString().getText() , 0, 1 );
recTable.setValueAt( aSdfString.getSourceString().getHelptext() , 0, 2 );
recTable.setValueAt( aSdfString.getSourceString().getQuickhelptext() , 0, 3 );
- recTable.setValueAt( aSdfString.getSourceString().getTitle() , 0, 4 );
+ recTable.setValueAt( aSdfString.getSourceString().getTitle() , 0, 4 );
Vector values = aSdfString.getLanguageStrings();
for( int n = 0; n < values.size() ; n++ )
{
SdfEntity aEntity = (SdfEntity) values.get( n );
- recTable.setValueAt( aEntity.getLangid() , n+1 , 0 );
- recTable.setValueAt( aEntity.getText() , n+1 , 1 );
- recTable.setValueAt( aEntity.getHelptext() , n+1 , 2 );
- recTable.setValueAt( aEntity.getQuickhelptext() , n+1 , 3 );
- recTable.setValueAt( aEntity.getTitle() , n+1 , 4 );
+ recTable.setValueAt( aEntity.getLangid() , n+1 , 0 );
+ recTable.setValueAt( aEntity.getText() , n+1 , 1 );
+ recTable.setValueAt( aEntity.getHelptext() , n+1 , 2 );
+ recTable.setValueAt( aEntity.getQuickhelptext() , n+1 , 3 );
+ recTable.setValueAt( aEntity.getTitle() , n+1 , 4 );
}
oldindex = table.getSelectedRow();
}
@@ -280,13 +280,13 @@ public class EditorController {
}
// Connect recommand strings with source strings
public void readStrings( String sourcefiles , Vector recfiles ) {
- BufferedReader aBR = null;
+ BufferedReader aBR = null;
try {
//System.out.println("DBG: sourcefiles = " +sourcefiles);
aBR = new BufferedReader( new FileReader( sourcefiles ) );
String current = aBR.readLine();
- SdfString aSdfString = null;
- SdfEntity aSdfEntity = null;
+ SdfString aSdfString = null;
+ SdfEntity aSdfEntity = null;
while( current != null ){
aSdfEntity = new SdfEntity();
aSdfEntity.setProperties( current );
@@ -296,11 +296,11 @@ public class EditorController {
//System.out.println("Put ID '"+aSdfString.getId()+"'");
sdfstrings.add( aSdfString );
current = aBR.readLine();
-
+
}
Iterator aIter=recfiles.iterator();
File aFile;
- BufferedReader aBR2 = null;
+ BufferedReader aBR2 = null;
//System.out.println("Connecting strings");
while( aIter.hasNext() ){
aFile = (File) aIter.next();
@@ -310,13 +310,13 @@ public class EditorController {
while ( current2 != null ){
SdfEntity aEntity = new SdfEntity();
aEntity.setProperties( current2 );
-
+
if( hashedsdfstrings.containsKey( aEntity.getId() ) )
{
aSdfString = (SdfString) hashedsdfstrings.get( aEntity.getId() );
aSdfString.addLanguageString( aEntity );
}
- else
+ else
{
System.out.println("DBG: Can't find source string '"+aEntity.getId()+"'" );
}
@@ -329,6 +329,6 @@ public class EditorController {
} catch ( IOException e){
e.printStackTrace();
}
-
+
}
}
diff --git a/l10ntools/java/receditor/java/transex3/controller/Main.java b/l10ntools/java/receditor/java/transex3/controller/Main.java
index e8dd06ce9f85..3e37eafe8a2f 100644
--- a/l10ntools/java/receditor/java/transex3/controller/Main.java
+++ b/l10ntools/java/receditor/java/transex3/controller/Main.java
@@ -1,7 +1,7 @@
package transex3.controller;
public class Main {
-
+
public static void main( String args[] ){
EditorController aEditor = new EditorController();
aEditor.initInitialStrings();
diff --git a/l10ntools/java/receditor/java/transex3/model/ResourceFile.java b/l10ntools/java/receditor/java/transex3/model/ResourceFile.java
index 51fabb3a4b7a..4d6aad33894b 100644
--- a/l10ntools/java/receditor/java/transex3/model/ResourceFile.java
+++ b/l10ntools/java/receditor/java/transex3/model/ResourceFile.java
@@ -3,13 +3,13 @@ package transex3.model;
import java.util.*;
public class ResourceFile {
- Vector sdfStrings = new Vector();
- HashMap sdfHashMap = new HashMap();
- String filepathid = null;
- String modulename = null;
- String filename = null;
-
-
+ Vector sdfStrings = new Vector();
+ HashMap sdfHashMap = new HashMap();
+ String filepathid = null;
+ String modulename = null;
+ String filename = null;
+
+
public String getModuleName(){
return modulename;
}
@@ -19,7 +19,7 @@ public class ResourceFile {
public String getFileName(){
return filename;
}
-/* public List readSoureStrings( java.io.File aSdfFile ){
+/* public List readSoureStrings( java.io.File aSdfFile ){
List sdfList=null;
return sdfList;
};*/
@@ -33,13 +33,13 @@ public class ResourceFile {
if( filename == null )
filename = aSdfstring.getFileName();
}
-
-
+
+
public void ParseString( String aSourceString ){
- //sourceString = new SdfEntity();
- SdfEntity aSdfEntity = new SdfEntity();
+ //sourceString = new SdfEntity();
+ SdfEntity aSdfEntity = new SdfEntity();
aSdfEntity.setProperties( aSourceString );
- SdfString sdfstring = null;
+ SdfString sdfstring = null;
if( sdfHashMap.containsKey( aSdfEntity.getFileId() ) ){
sdfstring = (SdfString) sdfHashMap.get( aSdfEntity.getFileId() );
}
@@ -49,8 +49,8 @@ public class ResourceFile {
addString( sdfstring );
}
sdfstring.addLanguageString( aSdfEntity );
-
-
+
+
}
/*public void ParseSdfFile( java.util.Vector aSdfList ){
ListIterator aLI = aSdfList.listIterator();
@@ -62,7 +62,7 @@ public class ResourceFile {
aSdfEntity = new SdfEntity();
aSdfEntity.setProperties( (String) aLI.next() );
SdfString aString;
-
+
if( sdfHashMap.containsKey( aSdfEntity.getFileId() ) )
aString = (SdfString) sdfHashMap.get( aSdfEntity.getFileId() );
else
@@ -72,6 +72,6 @@ public class ResourceFile {
}
aString.addLanguageString( aSdfEntity );
}
-
+
}*/
}
diff --git a/l10ntools/java/receditor/java/transex3/model/SdfEntity.java b/l10ntools/java/receditor/java/transex3/model/SdfEntity.java
index 4b293421fd28..222a4627c51f 100644
--- a/l10ntools/java/receditor/java/transex3/model/SdfEntity.java
+++ b/l10ntools/java/receditor/java/transex3/model/SdfEntity.java
@@ -16,62 +16,62 @@ public class SdfEntity {
private String quickhelptext;
private String title;
private String date;
-
- public static int PROJECT_POS = 0;
- public static int SOURCE_FILE_POS = 1;
- public static int DUMMY1_POS = 2;
- public static int RESOURCE_TYPE_POS = 3;
- public static int GID_POS = 4;
- public static int LID_POS = 5;
- public static int HELPID_POS = 6;
- public static int PLATFORM_POS = 7;
- public static int DUMMY2_POS = 8;
- public static int LANGID_POS = 9;
- public static int TEXT_POS = 10;
- public static int HELPTEXT_POS = 11;
- public static int QUICKHELPTEXT_POS = 12;
- public static int TITLE_POS = 13;
- public static int DATE_POS = 14;
-
+
+ public static int PROJECT_POS = 0;
+ public static int SOURCE_FILE_POS = 1;
+ public static int DUMMY1_POS = 2;
+ public static int RESOURCE_TYPE_POS = 3;
+ public static int GID_POS = 4;
+ public static int LID_POS = 5;
+ public static int HELPID_POS = 6;
+ public static int PLATFORM_POS = 7;
+ public static int DUMMY2_POS = 8;
+ public static int LANGID_POS = 9;
+ public static int TEXT_POS = 10;
+ public static int HELPTEXT_POS = 11;
+ public static int QUICKHELPTEXT_POS = 12;
+ public static int TITLE_POS = 13;
+ public static int DATE_POS = 14;
+
public SdfEntity(){}
public SdfEntity(String project, String source_file, String dummy1, String resource_type, String gid, String lid, String helpid, String platform, String dummy2, String langid, String text, String helptext, String quickhelptext, String title , String date) {
super();
- this.project = project;
- this.source_file = source_file;
- this.dummy1 = dummy1;
- this.resource_type = resource_type;
- this.gid = gid;
- this.lid = lid;
- this.helpid = helpid;
- this.platform = platform;
- this.dummy2 = dummy2;
- this.langid = langid;
- this.text = text;
- this.helptext = helptext;
- this.quickhelptext = quickhelptext;
- this.title = title;
- this.date = date;
+ this.project = project;
+ this.source_file = source_file;
+ this.dummy1 = dummy1;
+ this.resource_type = resource_type;
+ this.gid = gid;
+ this.lid = lid;
+ this.helpid = helpid;
+ this.platform = platform;
+ this.dummy2 = dummy2;
+ this.langid = langid;
+ this.text = text;
+ this.helptext = helptext;
+ this.quickhelptext = quickhelptext;
+ this.title = title;
+ this.date = date;
}
public void setProperties( String line ){
-
- String[] splitted = line.split("\t");
-
- setProject( splitted[ SdfEntity.PROJECT_POS ] );
- setSource_file( splitted[ SdfEntity.SOURCE_FILE_POS ] );
- setDummy1( splitted[ SdfEntity.DUMMY1_POS ] );
- setResource_type( splitted[ SdfEntity.RESOURCE_TYPE_POS ] );
- setGid( splitted[ SdfEntity.GID_POS ] );
- setLid( splitted[ SdfEntity.LID_POS ] );
- setHelpid( splitted[ SdfEntity.HELPID_POS ] );
- setPlatform( splitted[ SdfEntity.PLATFORM_POS ] );
- setDummy2( splitted[ SdfEntity.DUMMY2_POS ] );
- setLangid( splitted[ SdfEntity.LANGID_POS ] );
- setText( splitted[ SdfEntity.TEXT_POS ] );
- setHelptext( splitted[ SdfEntity.HELPTEXT_POS ] );
- setQuickhelptext( splitted[ SdfEntity.QUICKHELPTEXT_POS ] );
- setTitle( splitted[ SdfEntity.TITLE_POS ] );
- setDate( splitted[ SdfEntity.DATE_POS ] );
+
+ String[] splitted = line.split("\t");
+
+ setProject( splitted[ SdfEntity.PROJECT_POS ] );
+ setSource_file( splitted[ SdfEntity.SOURCE_FILE_POS ] );
+ setDummy1( splitted[ SdfEntity.DUMMY1_POS ] );
+ setResource_type( splitted[ SdfEntity.RESOURCE_TYPE_POS ] );
+ setGid( splitted[ SdfEntity.GID_POS ] );
+ setLid( splitted[ SdfEntity.LID_POS ] );
+ setHelpid( splitted[ SdfEntity.HELPID_POS ] );
+ setPlatform( splitted[ SdfEntity.PLATFORM_POS ] );
+ setDummy2( splitted[ SdfEntity.DUMMY2_POS ] );
+ setLangid( splitted[ SdfEntity.LANGID_POS ] );
+ setText( splitted[ SdfEntity.TEXT_POS ] );
+ setHelptext( splitted[ SdfEntity.HELPTEXT_POS ] );
+ setQuickhelptext( splitted[ SdfEntity.QUICKHELPTEXT_POS ] );
+ setTitle( splitted[ SdfEntity.TITLE_POS ] );
+ setDate( splitted[ SdfEntity.DATE_POS ] );
}
public String getFileId(){
@@ -88,7 +88,7 @@ public class SdfEntity {
public String getId(){
return project+gid+lid+source_file+resource_type+platform+helpid;
}
-
+
public String getDummy1() {
return dummy1;
}
@@ -206,6 +206,6 @@ public class SdfEntity {
public void setDate(String date) {
this.date = date;
}
-
-
+
+
}
diff --git a/l10ntools/java/receditor/java/transex3/model/SdfString.java b/l10ntools/java/receditor/java/transex3/model/SdfString.java
index 7eec2151b7c3..c61331dac035 100644
--- a/l10ntools/java/receditor/java/transex3/model/SdfString.java
+++ b/l10ntools/java/receditor/java/transex3/model/SdfString.java
@@ -2,26 +2,26 @@ package transex3.model;
import java.util.*;
import java.io.*;
public class SdfString {
- private SdfEntity sourceString = null;
- //private java.util.HashMap languageStrings = new HashMap();
- private Vector languageList = new Vector();
- private String id = null;
- private String fileid = null;
- private String filename = null;
- private String modulename = null;
- private String filepath = null;
-
+ private SdfEntity sourceString = null;
+ //private java.util.HashMap languageStrings = new HashMap();
+ private Vector languageList = new Vector();
+ private String id = null;
+ private String fileid = null;
+ private String filename = null;
+ private String modulename = null;
+ private String filepath = null;
+
/*public HashMap getLanguageStrings() {
return languageStrings;
}*/
public Vector getLanguageStrings() {
return languageList;
}
-
+
public void setLanguageStrings(Vector languageStrings) {
this.languageList = languageStrings;
}
-
+
public void addSourceString( SdfEntity aSdfEntity )
{
if( id == null )
@@ -84,7 +84,7 @@ public class SdfString {
public String getFileName() {
return filename;
- }
+ }
public void setFileName(String filename) {
this.filename = filename;
@@ -125,36 +125,36 @@ public class SdfString {
Iterator aIter = languageList.iterator();
while( aIter.hasNext() ){
SdfEntity aEntity = (SdfEntity)aIter.next();
- aBW.write( sourceString.getProject()+"\t" );
- aBW.write( sourceString.getSource_file()+"\t" );
- aBW.write( sourceString.getDummy1()+"\t" );
+ aBW.write( sourceString.getProject()+"\t" );
+ aBW.write( sourceString.getSource_file()+"\t" );
+ aBW.write( sourceString.getDummy1()+"\t" );
aBW.write( sourceString.getResource_type()+"\t" );
- aBW.write( sourceString.getGid()+"\t" );
- aBW.write( sourceString.getLid()+"\t" );
- aBW.write( sourceString.getHelpid()+"\t" );
+ aBW.write( sourceString.getGid()+"\t" );
+ aBW.write( sourceString.getLid()+"\t" );
+ aBW.write( sourceString.getHelpid()+"\t" );
aBW.write( sourceString.getPlatform()+"\t" );
- aBW.write( sourceString.getDummy2()+"\t" );
- if( aEntity.getLangid() == null )
+ aBW.write( sourceString.getDummy2()+"\t" );
+ if( aEntity.getLangid() == null )
aBW.write( "\t" );
else
aBW.write( aEntity.getLangid()+"\t" );
if( aEntity.getText() == null )
aBW.write( "\t" );
else
- aBW.write( aEntity.getText()+"\t" );
+ aBW.write( aEntity.getText()+"\t" );
if( aEntity.getHelptext() == null )
aBW.write( "\t" );
else
- aBW.write( aEntity.getHelptext()+"\t" );
+ aBW.write( aEntity.getHelptext()+"\t" );
if( aEntity.getQuickhelptext() == null )
aBW.write( "\t" );
else
- aBW.write( aEntity.getQuickhelptext()+"\t" );
+ aBW.write( aEntity.getQuickhelptext()+"\t" );
if( aEntity.getTitle() == null )
aBW.write( "\t" );
- else
- aBW.write( aEntity.getTitle()+"\t" );
- aBW.write( "2002-02-02 02:02:02\n" );
+ else
+ aBW.write( aEntity.getTitle()+"\t" );
+ aBW.write( "2002-02-02 02:02:02\n" );
}
aBW.close();
}
diff --git a/l10ntools/java/receditor/java/transex3/view/Editor.java b/l10ntools/java/receditor/java/transex3/view/Editor.java
index f46a82a11a2b..ca41bd12fb42 100644
--- a/l10ntools/java/receditor/java/transex3/view/Editor.java
+++ b/l10ntools/java/receditor/java/transex3/view/Editor.java
@@ -3,34 +3,34 @@ import javax.swing.*;
import java.awt.*;
public class Editor extends JFrame{
- Object[] columnnames = { "File" , "GID" , "LID" , "String" };
+ Object[] columnnames = { "File" , "GID" , "LID" , "String" };
Object[] stringcolnames = { "Language", "Text", "Helptext" , "Quickhelptext","Title"};
- //Object[][] data = new Object[4][1];//{ { "a " }, { "v " }, { "v " } , { "a " } };
- JTable table = null;
- JTable rectable = null;
- JComboBox cBox = null;
- JMenuBar menubar = null;
- JMenu filemenu = null;
- JMenuItem miNew = null;
- JMenuItem miSave = null;
- JMenuItem miExit = null;
- //JButton button = null;
-
+ //Object[][] data = new Object[4][1];//{ { "a " }, { "v " }, { "v " } , { "a " } };
+ JTable table = null;
+ JTable rectable = null;
+ JComboBox cBox = null;
+ JMenuBar menubar = null;
+ JMenu filemenu = null;
+ JMenuItem miNew = null;
+ JMenuItem miSave = null;
+ JMenuItem miExit = null;
+ //JButton button = null;
+
public Editor( Object[][] tabledata , Object[][] firstdata ){
- table = new JTable( tabledata , columnnames );
- rectable = new SdfTable( firstdata , stringcolnames );
- menubar = new JMenuBar();
- filemenu = new JMenu("File");
- //miNew = new JMenuItem("New");
- miSave = new JMenuItem("Save");
- miExit = new JMenuItem("Exit");
- //button = new JButton("Edit");
+ table = new JTable( tabledata , columnnames );
+ rectable = new SdfTable( firstdata , stringcolnames );
+ menubar = new JMenuBar();
+ filemenu = new JMenu("File");
+ //miNew = new JMenuItem("New");
+ miSave = new JMenuItem("Save");
+ miExit = new JMenuItem("Exit");
+ //button = new JButton("Edit");
//filemenu.add( miNew );
filemenu.add( miSave );
filemenu.add( miExit );
menubar.add( filemenu );
-
- Container contentPane = getContentPane();
+
+ Container contentPane = getContentPane();
//contentPane.add( new ControlPanel() , BorderLayout.NORTH );
contentPane.add( menubar , BorderLayout.NORTH );
//JPanel aPanel = new JPanel( new FlowLayout( FlowLayout.CENTER) );
@@ -44,7 +44,7 @@ public class Editor extends JFrame{
//contentPane.add( new JScrollPane( rectable ), BorderLayout.SOUTH );
//contentPane.add( new JScrollPane( rectable ), BorderLayout.SOUTH );
this.repaint();
-
+
}
public JTable getRectable() {
@@ -86,11 +86,11 @@ public class Editor extends JFrame{
public void setMiSave(JMenuItem miSave) {
this.miSave = miSave;
}
-
+
/*public void setTableData(){
-
+
}*/
-
+
}
//class ControlPanel extends JPanel{}
diff --git a/l10ntools/java/receditor/java/transex3/view/SdfTable.java b/l10ntools/java/receditor/java/transex3/view/SdfTable.java
index f0cc7bd84a34..50a20a3e95b1 100644
--- a/l10ntools/java/receditor/java/transex3/view/SdfTable.java
+++ b/l10ntools/java/receditor/java/transex3/view/SdfTable.java
@@ -9,9 +9,9 @@ class SdfTable extends JTable{
}
//@Override
public boolean isCellEditable(int row, int col) {
- if( row == 0 && col == 0 || row == 0 && col == 1 || row == 0 && col == 2 || row == 0 && col == 3 || row == 0 && col == 4 )
+ if( row == 0 && col == 0 || row == 0 && col == 1 || row == 0 && col == 2 || row == 0 && col == 3 || row == 0 && col == 4 )
return false;
- else
+ else
return true;
}
/*public String getTableId() {
@@ -20,5 +20,5 @@ class SdfTable extends JTable{
public void setTableId(String tableId) {
this.tableId = tableId;
}*/
-
+
} \ No newline at end of file
diff --git a/l10ntools/layout/layoutparse.cxx b/l10ntools/layout/layoutparse.cxx
index e07fcd31b83c..72bbff685cc3 100644
--- a/l10ntools/layout/layoutparse.cxx
+++ b/l10ntools/layout/layoutparse.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,13 +36,13 @@ LayoutXMLFile::LayoutXMLFile( bool mergeMode )
, mMergeMode( mergeMode )
{
}
-
+
void
LayoutXMLFile::SearchL10NElements( XMLParentNode* pCur, int )
{
if ( !pCur )
pCur = this;
-
+
/* Recurse int children, SearchL10NElements does not do that for us. */
if ( XMLChildNodeList* lst = pCur->GetChildList() )
for ( ULONG i = 0; i < lst->Count(); i++ )
@@ -69,7 +69,7 @@ void
LayoutXMLFile::HandleElement( XMLElement* element )
{
std::vector<XMLAttribute*> interesting = interestingAttributes( element->GetAttributeList() );
-
+
if ( interesting.size() )
{
std::vector<XMLAttribute*>::iterator i = interesting.begin();
@@ -122,7 +122,7 @@ BOOL LayoutXMLFile::Write( ByteString &aFilename )
if ( aFilename.Len() )
{
- ofstream aFStream( aFilename.GetBuffer() , ios::out | ios::trunc );
+ ofstream aFStream( aFilename.GetBuffer() , ios::out | ios::trunc );
if ( !aFStream )
fprintf( stderr, "ERROR: cannot open file:%s\n", aFilename.GetBuffer() );
else
diff --git a/l10ntools/layout/layoutparse.hxx b/l10ntools/layout/layoutparse.hxx
index 454ff0926bd0..a19693e41fea 100644
--- a/l10ntools/layout/layoutparse.hxx
+++ b/l10ntools/layout/layoutparse.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/l10ntools/layout/tralay.cxx b/l10ntools/layout/tralay.cxx
index b9a2b383cbcd..f2b16b0c9e82 100644
--- a/l10ntools/layout/tralay.cxx
+++ b/l10ntools/layout/tralay.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ class TranslateLayout : public Application
{
ByteString mGid1;
ByteString mLanguage;
- ByteString mLocalize;
+ ByteString mLocalize;
ByteString mOutput;
ByteString mProject;
ByteString mRoot;
@@ -269,7 +269,7 @@ void TranslateLayout::MergeLanguage( ByteString const& language )
fprintf(stderr, "error: parsing: %s\n", xmlFile.GetBuffer() );
return;
}
-
+
layoutXml->Extract();
insertMarker( layoutXml, xmlFile );
@@ -285,7 +285,7 @@ void TranslateLayout::MergeLanguage( ByteString const& language )
if ( XMLElement* element = ( *languageMap )[ "en-US" ] )
translateElement( element, language, &resData, mergeData );
}
-
+
#ifndef WNT
ByteString outFile = "/dev/stdout";
#else
diff --git a/l10ntools/scripts/fast_merge.pl b/l10ntools/scripts/fast_merge.pl
index 5dc63cf95d79..e9c36d02a11a 100644
--- a/l10ntools/scripts/fast_merge.pl
+++ b/l10ntools/scripts/fast_merge.pl
@@ -4,7 +4,7 @@ eval 'exec perl -wS $0 ${1+"$@"}'
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
@@ -68,7 +68,7 @@ read_sdf_file_names();
init();
my $reference;
my $path ;
-my $localize_file;
+my $localize_file;
while( hasLines() )
{
@current = ();
@@ -76,7 +76,7 @@ while( hasLines() )
{
push @current , $_;
}
-
+
$reference = getNextIdentifier( );
@current = ();
@@ -145,13 +145,13 @@ sub init
print "Open file '$file'\n";
}
}
-
-# get the next module/file
+
+# get the next module/file
sub getNextIdentifier
{
my @sorted = sort {
return $a->module.$a->dir cmp $b->module.$b->dir;
- } @current ;
+ } @current ;
return shift @sorted;
}
@@ -276,7 +276,7 @@ sub write_lines
$last_localize_file = $localize_file;
}
}
-}
+}
sub add_to_buffer
{
my $plainline;
diff --git a/l10ntools/scripts/keyidGen.pl b/l10ntools/scripts/keyidGen.pl
index 53423c2d6f02..12abab59d37f 100644
--- a/l10ntools/scripts/keyidGen.pl
+++ b/l10ntools/scripts/keyidGen.pl
@@ -4,7 +4,7 @@ eval 'exec perl -S $0 ${1+"$@"}'
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
@@ -121,7 +121,7 @@ sub makenumber
$h = int( $h / $order );
}
die "makenumber failed because number is too big (this cannot be so this is a strange error)" if $h > 0;
-
+
return reverse $result;
}
@@ -130,7 +130,7 @@ sub makekidstr
{
$kid = shift;
$str = shift;
-
+
if ( $str ne "" )
{
# special handling for strings starting with font descriptions like {&Tahoma8} (win system integration)
@@ -171,7 +171,7 @@ sub get_options {
while ($arg = shift @ARGV) {
$arg =~ /^-dbimport$/ and $dbimport = 1 and next;
$arg =~ /^-help$/ and $help = 1 and next; #show help
-
+
if ( !$has_infile )
{
$infile = $arg;
diff --git a/l10ntools/scripts/localize.pl b/l10ntools/scripts/localize.pl
index 7249814febc7..46ff4c659f45 100644
--- a/l10ntools/scripts/localize.pl
+++ b/l10ntools/scripts/localize.pl
@@ -2,11 +2,11 @@
eval 'exec perl -wS $0 ${1+"$@"}'
if 0;
-
+
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@ eval 'exec perl -wS $0 ${1+"$@"}'
# for a copy of the LGPLv3 License.
#
#*************************************************************************
-
+
use strict;
use Getopt::Long;
use IO::Handle;
@@ -43,7 +43,7 @@ use Cwd;
my $CVS_BINARY = "/usr/bin/cvs";
# ver 1.1
#
-#### module lookup
+#### module lookup
#use lib ("$ENV{SOLARENV}/bin/modules", "$ENV{COMMON_ENV_TOOLS}/modules");
#### module lookup
@@ -77,7 +77,7 @@ my $force_ooo_module = '0';
my %is_ooo_module;
my %is_so_module;
- # ( leftpart ) ( rightpart )
+ # ( leftpart ) ( rightpart )
# prj file dummy type gid lid helpid pform width lang text helptext qhelptext title timestamp
my $sdf_regex = "((([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*))\t([^\t]*)\t(([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t)([^\t]*))";
my $file_types = "(src|hrc|xcs|xcu|lng|ulf|xrm|xhp|xcd|xgf|xxl|xrb)";
@@ -101,20 +101,20 @@ else
#%sl_modules = fetch_sourcelanguage_dirlist();
-if ( $mode eq "merge" ) {
+if ( $mode eq "merge" ) {
if ( ! $no_gsicheck ){
merge_gsicheck();
}
- splitfile( $sdffile );
+ splitfile( $sdffile );
if ( ! $no_gsicheck ){
unlink $sdffile; # remove temp file!
}
}
-elsif( $mode eq "extract" ) {
+elsif( $mode eq "extract" ) {
collectfiles( $outputfile );
}
-else {
- usage();
+else {
+ usage();
}
exit(0);
@@ -137,13 +137,13 @@ sub splitfile{
#print STDOUT "Open File $sdffile\n";
open MYFILE , "< $sdffile"
or die "Can't open '$sdffile'\n";
-
+
# my %lang_hash;
my %string_hash_ooo;
my %string_hash_so;
my %so_modules;
$so_modules{ "extras_full" } = "TRUE";
-
+
while( <MYFILE>){
if( /$sdf_regex/ ){
my $line = defined $_ ? $_ : '';
@@ -154,17 +154,17 @@ sub splitfile{
my $lid = defined $8 ? $8 : '';
my $lang = defined $12 ? $12 : '';
my $plattform = defined $10 ? $10 : '';
- my $helpid = defined $9 ? $9 : '';
+ my $helpid = defined $9 ? $9 : '';
next if( $prj eq "binfilter" ); # Don't merge strings into binfilter module
chomp( $line );
-
+
if( $force_ooo_module )
{
- $string_hash_ooo { $lang }{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } = $line;
+ $string_hash_ooo { $lang }{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } = $line;
}
else
{
- $string_hash_so{ $lang }{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } = $line;
+ $string_hash_so{ $lang }{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } = $line;
}
}
}
@@ -181,7 +181,7 @@ sub splitfile{
#print "$so_l10n_path\n";
#print "$ooo_l10n_path\n";
-
+
if( $force_ooo_module )
{
write_sdf( \%string_hash_ooo , $ooo_l10n_path );
@@ -195,13 +195,13 @@ sub splitfile{
sub write_sdf
{
my $string_hash = shift;
- my $l10n_file = shift;
-
+ my $l10n_file = shift;
+
foreach my $lang( keys( %{ $string_hash } ) )
{
my @sdf_file;
- next , if( $lang eq "en-US" );
-
+ next , if( $lang eq "en-US" );
+
mkdir $l10n_file."/$lang";
# mkdir!!!!
my $current_l10n_file = $l10n_file."/$lang/localize.sdf";
@@ -217,10 +217,10 @@ sub write_sdf
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
- chomp( $line );
+
+ chomp( $line );
if ( defined $string_hash->{ $lang }{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } )
{
# Changed String!
@@ -237,13 +237,13 @@ sub write_sdf
}
close( DESTFILE );
#Now just append the enw strings
- #FIXME!!! Implement insertion in the correct order
+ #FIXME!!! Implement insertion in the correct order
foreach my $key ( keys ( %{ $string_hash->{ $lang } } ) )
{
push @sdf_file , $string_hash->{ $lang }{ $key } , if ( defined $string_hash->{ $lang }{ $key } );
#print "WARNING: Not defined = ".$string_hash->{ $lang }{ $key }."\n", if( ! defined $string_hash->{ $lang }{ $key } );
}
-
+
# Write the new file
my ( $TMPFILE , $tmpfile ) = File::Temp::tempfile();
if( open DESTFILE , "+> $tmpfile " ){
@@ -253,12 +253,12 @@ sub write_sdf
}
close ( DESTFILE );
if( move( $current_l10n_file , $current_l10n_file.".backup" ) ){
- if( copy( $tmpfile , $current_l10n_file ) ){
- unlink $l10n_file.".backup";
+ if( copy( $tmpfile , $current_l10n_file ) ){
+ unlink $l10n_file.".backup";
} else { print STDERR "Can't open/create '$l10n_file', original file is renamed to $l10n_file.backup\n"; }
} else { print STDERR "Can't open/create '$l10n_file'\n"; }
}else{
- print STDERR "WARNING: Can't open/create '$l10n_file'\n";
+ print STDERR "WARNING: Can't open/create '$l10n_file'\n";
}
unlink $tmpfile;
}
@@ -267,7 +267,7 @@ sub write_sdf
#########################################################
sub get_license_header{
- return
+ return
"#\n".
"# #### ### # # ### ##### ##### #### ##### ##### \n".
"# # # # # ## # # # # # # # # # \n".
@@ -309,7 +309,7 @@ sub merge_gsicheck{
my $command = '';
my ( $TMPHANDLE , $tmpfile ) = File::Temp::tempfile();
close ( $TMPHANDLE );
-
+
$command = "$ENV{WRAPCMD} " if( $ENV{WRAPCMD} );
$command .= "$ENV{SOLARVER}/$ENV{INPATH}/bin/gsicheck";
@@ -323,7 +323,7 @@ sub merge_gsicheck{
print STDOUT "### The file $errfile have been written containing the errors in your sdf file. Those lines will not be merged: ###\n\n";
print STDOUT "$output\n";
print STDOUT "################\n";
-
+
}else{
# Remove the 0 Byte file
unlink $errfile;
@@ -333,10 +333,10 @@ sub merge_gsicheck{
#########################################################
# find search function
sub wanted
-{
+{
my $file = $File::Find::name;
if( -f $file && $file =~ /.*localize.sdf$/ && !( $file =~ /.*\.svn.*/ ) ) {
- push @sdfparticles , $file;
+ push @sdfparticles , $file;
if( $bVerbose eq "1" ) { print STDOUT "$file\n"; }
else { print "."; }
}
@@ -371,19 +371,19 @@ sub add_paths
{
push @sdfparticles , "$ooo_l10n_dir/$lang/localize.sdf";
}
- else { #print "WARNING: $loc_file not found ....\n";
+ else { #print "WARNING: $loc_file not found ....\n";
}
}
-
+
}
}
sub collectfiles{
- print STDOUT "### Localize\n";
- my $localizehash_ref;
+ print STDOUT "### Localize\n";
+ my $localizehash_ref;
my ( $bAll , $bUseLocalize, $langhash_ref , $bHasSourceLanguage , $bFakeEnglish ) = parseLanguages();
-
+
# Enable autoflush on STDOUT
- # $| = 1;
+ # $| = 1;
STDOUT->autoflush( 1 );
my $working_path = getcwd();
@@ -391,19 +391,19 @@ sub collectfiles{
add_paths( $langhash_ref );
my ( $LOCALIZEPARTICLE , $localizeSDF ) = File::Temp::tempfile();
- close( $LOCALIZEPARTICLE );
+ close( $LOCALIZEPARTICLE );
my ( $ALLPARTICLES_MERGED , $particleSDF_merged ) = File::Temp::tempfile();
- close( $ALLPARTICLES_MERGED );
+ close( $ALLPARTICLES_MERGED );
my ( $LOCALIZE_LOG , $my_localize_log ) = File::Temp::tempfile();
close( $LOCALIZE_LOG );
-
+
## Get the localize en-US extract
if( $bAll || $bUseLocalize ){
print "### Fetching source language strings\n";
my $command = "";
my $args = "";
-
+
if( $ENV{WRAPCMD} ){
$command = $ENV{WRAPCMD}.$binpath."localize_sl";
}else{
@@ -423,36 +423,36 @@ sub collectfiles{
push @list , $isokey;
if( $langhash_ref->{ $isokey } ne "" ){
push @list , $langhash_ref->{ $isokey };
- }
+ }
}
remove_duplicates( \@list );
foreach my $isokey ( @list ){
switch :{
- ( $isokey=~ /^en-US$/i )
- && do{
+ ( $isokey=~ /^en-US$/i )
+ && do{
if( $bFlag eq "TRUE" ){ $args .= ",en-US"; }
- else {
- $args .= "en-US"; $bFlag = "TRUE";
+ else {
+ $args .= "en-US"; $bFlag = "TRUE";
}
};
-
+
} #switch
} #foreach
- } # if
+ } # if
} # if
if ( $bVerbose ) { print STDOUT $command.$args."\n"; }
-
+
my $rc = system( $command.$args );
if( $rc < 0 ){ print STDERR "ERROR: localize rc = $rc\n"; exit( -1 ); }
( $localizehash_ref ) = read_file( $localizeSDF , $langhash_ref );
-
+
}
## Get sdf particles
#*****************
- open ALLPARTICLES_MERGED , "+>> $particleSDF_merged"
- or die "Can't open $particleSDF_merged";
-
+ open ALLPARTICLES_MERGED , "+>> $particleSDF_merged"
+ or die "Can't open $particleSDF_merged";
+
## Fill fackback hash
my( $fallbackhashhash_ref ) = fetch_fallback( \@sdfparticles , $localizeSDF , $langhash_ref );
my %block;
@@ -477,9 +477,9 @@ sub collectfiles{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
+
chomp( $line );
if ( $lang eq $cur_lang ){
@@ -495,12 +495,12 @@ sub collectfiles{
}
foreach my $line ( keys( %{$fallbackhashhash_ref->{ $cur_lang } } )) {
- if( #$cur_lang ne "de" &&
+ if( #$cur_lang ne "de" &&
$cur_lang ne "en-US" ){
print ALLPARTICLES_MERGED ( $fallbackhashhash_ref->{ $cur_lang }{ $line }, "\n" );
}
}
- }
+ }
} else {
foreach my $currentfile ( @sdfparticles ){
if ( open MYFILE , "< $currentfile" ) {
@@ -512,17 +512,17 @@ sub collectfiles{
}
}
close ALLPARTICLES_MERGED;
-
+
# Hash of array
my %output;
my @order;
-
+
## Join both
if( $outputfile ){
if( open DESTFILE , "+> $outputfile" ){
- if( !open LOCALIZEPARTICLE , "< $localizeSDF" ) { print STDERR "ERROR: Can't open file $localizeSDF\n"; }
+ if( !open LOCALIZEPARTICLE , "< $localizeSDF" ) { print STDERR "ERROR: Can't open file $localizeSDF\n"; }
if( !open ALLPARTICLES_MERGED , "< $particleSDF_merged" ) { print STDERR "ERROR: Can't open file $particleSDF_merged\n"; }
-
+
# Insert localize
my $extract_date="";
while ( <LOCALIZEPARTICLE> ){
@@ -538,16 +538,16 @@ sub collectfiles{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
#my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
-
+
+
if( $use_default_date )
{
- $extract_date = "$default_date\n" ;
+ $extract_date = "$default_date\n" ;
}
- elsif( $extract_date eq "" ) {
- $extract_date = $timestamp ;
+ elsif( $extract_date eq "" ) {
+ $extract_date = $timestamp ;
$extract_date =~ tr/\r\n//d;
$extract_date .= "\n";
}
@@ -555,18 +555,18 @@ sub collectfiles{
if( $bAll ){ print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date ; }
else {
foreach my $sLang ( keys( %{ $langhash_ref } ) ){
- if( $sLang=~ /all/i ) {
+ if( $sLang=~ /all/i ) {
push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
- #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
+ #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
}
- #if( $sLang eq "de" && $lang eq "de" ) {
+ #if( $sLang eq "de" && $lang eq "de" ) {
# push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
- #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
+ #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
#}
- if( $sLang eq "en-US" && $lang eq "en-US" ) {
+ if( $sLang eq "en-US" && $lang eq "en-US" ) {
push @order , $prj.$gid.$lid.$file.$type.$plattform.$helpid;
if( !$bFakeEnglish ){ push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ; }
- #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
+ #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
}
}
@@ -588,22 +588,22 @@ sub collectfiles{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
#my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
-
+
+
if( $use_default_date )
{
- $extract_date = "$default_date\n" ;
+ $extract_date = "$default_date\n" ;
}
- elsif( $extract_date eq "" )
- {
- $extract_date = $timestamp;
+ elsif( $extract_date eq "" )
+ {
+ $extract_date = $timestamp;
}
- if( ! ( $prj =~ /binfilter/i ) ) {
- push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
- #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
+ if( ! ( $prj =~ /binfilter/i ) ) {
+ push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
+ #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
}
}
}
@@ -615,8 +615,8 @@ sub collectfiles{
print DESTFILE $line;
}
}
- }
-
+ }
+
}else { print STDERR "Can't open $outputfile";}
}
close DESTFILE;
@@ -624,9 +624,9 @@ sub collectfiles{
close ALLPARTICLES_MERGED;
chdir $working_path;
- #print STDOUT "DBG: \$localizeSDF $localizeSDF \$particleSDF_merged $particleSDF_merged\n";
+ #print STDOUT "DBG: \$localizeSDF $localizeSDF \$particleSDF_merged $particleSDF_merged\n";
unlink $localizeSDF , $particleSDF_merged , $my_localize_log;
-
+
#sort_outfile( $outputfile );
#remove_obsolete( $outputfile ) , if $bHasSourceLanguage ne "";
}
@@ -637,7 +637,7 @@ sub remove_obsolete{
my @lines;
my $enusleftpart;
my @good_lines;
-
+
print STDOUT "### Removing obsolete strings\n";
# Kick out all strings without en-US reference
@@ -651,11 +651,11 @@ sub remove_obsolete{
my $type = defined $6 ? $6 : '';
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
+
my $leftpart = $prj.$gid.$lid.$file.$type.$plattform.$helpid;
-
+
if( $language eq "en-US" ){ # source string found, 1. entry
$enusleftpart = $leftpart;
push @good_lines , $line;
@@ -671,12 +671,12 @@ sub remove_obsolete{
#else{
# print STDERR "OUT: \$enusleftpart=$enusleftpart \$leftpart=$leftpart \$line=$line\n";
#}
- }
+ }
}
- }
+ }
close SORTEDFILE;
} else { print STDERR "ERROR: Can't open file $outfile\n";}
-
+
# Write file
if ( open ( SORTEDFILE , "> $outfile" ) ){
foreach my $newline ( @good_lines ) {
@@ -692,24 +692,24 @@ sub sort_outfile{
print STDOUT "### Sorting ... $outfile ...";
my @lines;
my @sorted_lines;
-
-
+
+
#if ( open ( SORTEDFILE , "< $outputfile" ) ){
if ( open ( SORTEDFILE , "< $outfile" ) ){
my $line;
while ( <SORTEDFILE> ){
$line = $_;
- if( $line =~ /^[^\#]/ ){
- push @lines , $line;
+ if( $line =~ /^[^\#]/ ){
+ push @lines , $line;
}
}
close SORTEDFILE;
@sorted_lines = sort {
- my $xa_lang = "";
+ my $xa_lang = "";
my $xa_left_part = "";
my $xa_right_part = "";
my $xa_timestamp = "";
- my $xb_lang = "";
+ my $xb_lang = "";
my $xb_left_part = "";
my $xb_right_part = "";
my $xb_timestamp = "";
@@ -717,7 +717,7 @@ sub sort_outfile{
my $xb = "";
my @alist;
my @blist;
-
+
if( $a=~ /$sdf_regex/ ){
$xa_left_part = defined $2 ? $2 : '';
$xa_lang = defined $12 ? $12 : '';
@@ -732,7 +732,7 @@ sub sort_outfile{
$xb_left_part = remove_last_column( $xb_left_part );
- }
+ }
if( ( $xa_left_part cmp $xb_left_part ) == 0 ){ # Left part equal
if( ( $xa_lang cmp $xb_lang ) == 0 ){ # Lang equal
return ( $xa_right_part cmp $xb_right_part ); # Right part compare
@@ -741,18 +741,18 @@ sub sort_outfile{
elsif( $xb_lang eq "en-US" ) { return 1; } # en-US wins
else { return $xa_lang cmp $xb_lang; } # lang compare
}
- else {
+ else {
return $xa_left_part cmp $xb_left_part; # Left part compare
}
} @lines;
-
+
if ( open ( SORTEDFILE , "> $outfile" ) ){
print SORTEDFILE get_license_header();
foreach my $newline ( @sorted_lines ) {
print SORTEDFILE $newline;
#print STDOUT $newline;
- }
- }
+ }
+ }
close SORTEDFILE;
} else { print STDERR "WARNING: Can't open file $outfile\n";}
print "done\n";
@@ -768,18 +768,18 @@ sub remove_last_column{
#########################################################
sub rename_language{
- my $fallbackhashhash_ref = shift;
+ my $fallbackhashhash_ref = shift;
my $cur_fallback = shift;
my $cur_lang = shift;
my $line;
-
+
foreach my $key( keys ( %{ $fallbackhashhash_ref->{ $cur_fallback } } ) ){
$line = $fallbackhashhash_ref->{ $cur_fallback }{ $key };
if( $line =~ /$sdf_regex/ ){
my $leftpart = defined $2 ? $2 : '';
my $lang = defined $12 ? $12 : '';
my $rightpart = defined $13 ? $13 : '';
-
+
$fallbackhashhash_ref->{ $cur_lang }{ $key } = $leftpart."\t".$cur_lang."\t".$rightpart;
}
}
@@ -797,35 +797,35 @@ sub remove_duplicates{
sub fetch_fallback{
my $sdfparticleslist_ref = shift;
my $localizeSDF = shift;
- my $langhash_ref = shift;
+ my $langhash_ref = shift;
my %fallbackhashhash;
my $cur_lang;
my @langlist;
-
+
foreach my $key ( keys ( %{ $langhash_ref } ) ){
$cur_lang = $langhash_ref->{ $key };
if ( $cur_lang ne "" ) {
push @langlist , $cur_lang;
}
}
- remove_duplicates( \@langlist );
- foreach $cur_lang ( @langlist ){
+ remove_duplicates( \@langlist );
+ foreach $cur_lang ( @langlist ){
if( $cur_lang eq "en-US" ){
read_fallbacks_from_source( $localizeSDF , $cur_lang , \%fallbackhashhash );
}
}
-
+
# remove de / en-US
my @tmplist;
foreach $cur_lang( @langlist ){
if( $cur_lang ne "en-US" ){
push @tmplist , $cur_lang;
-
+
}
}
@langlist = @tmplist;
- if ( $#langlist +1 ){
- read_fallbacks_from_particles( $sdfparticleslist_ref , \@langlist , \%fallbackhashhash );
+ if ( $#langlist +1 ){
+ read_fallbacks_from_particles( $sdfparticleslist_ref , \@langlist , \%fallbackhashhash );
}
return (\%fallbackhashhash);
@@ -833,27 +833,27 @@ sub fetch_fallback{
#########################################################
sub write_file{
-
+
my $localizeFile = shift;
my $index_ref = shift;
-
+
if( open DESTFILE , "+> $localizeFile" ){
foreach my $key( %{ $index_ref } ){
print DESTFILE ($index_ref->{ $key }, "\n" );
}
close DESTFILE;
}else {
- print STDERR "Can't open/create '$localizeFile'";
+ print STDERR "Can't open/create '$localizeFile'";
}
}
#########################################################
sub read_file{
-
+
my $sdffile = shift;
my $langhash_ref = shift;
my %block = ();
-
+
open MYFILE , "< $sdffile"
or die "Can't open '$sdffile'\n";
while( <MYFILE>){
@@ -867,7 +867,7 @@ sub read_file{
my $plattform = defined $10 ? $10 : '';
my $lang = defined $12 ? $12 : '';
my $helpid = defined $9 ? $9 : '';
-
+
foreach my $isolang ( keys ( %{ $langhash_ref } ) ){
if( $isolang=~ /$lang/i || $isolang=~ /all/i ) { $block{$prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ; }
}
@@ -878,7 +878,7 @@ sub read_file{
#########################################################
sub read_fallbacks_from_particles{
-
+
my $sdfparticleslist_ref = shift;
my $isolanglist_ref = shift;
my $fallbackhashhash_ref = shift;
@@ -894,14 +894,14 @@ sub read_fallbacks_from_particles{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
+
chomp( $line );
-
+
foreach my $isolang ( @{$isolanglist_ref} ){
- if( $isolang=~ /$lang/i ) {
- $fallbackhashhash_ref->{ $isolang }{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ;
+ if( $isolang=~ /$lang/i ) {
+ $fallbackhashhash_ref->{ $isolang }{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ;
}
}
}
@@ -912,15 +912,15 @@ sub read_fallbacks_from_particles{
#########################################################
sub read_fallbacks_from_source{
-
+
my $sdffile = shift;
my $isolang = shift;
my $fallbackhashhash_ref = shift;
my $block_ref;
- # read fallback for single file
+ # read fallback for single file
open MYFILE , "< $sdffile"
or die "Can't open '$sdffile'\n";
-
+
while( <MYFILE>){
if( /$sdf_regex/ ){
my $line = defined $_ ? $_ : '';
@@ -932,9 +932,9 @@ sub read_fallbacks_from_source{
my $helpid = defined $9 ? $9 : '';
my $lang = defined $12 ? $12 : '';
my $plattform = defined $10 ? $10 : '';
-
- chomp( $line );
- if( $isolang=~ /$lang/i ) { $fallbackhashhash_ref->{ $isolang }{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ;
+
+ chomp( $line );
+ if( $isolang=~ /$lang/i ) { $fallbackhashhash_ref->{ $isolang }{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ;
}
}
}
@@ -950,7 +950,7 @@ sub parseLanguages{
my %langhash;
my $iso="";
my $fallback="";
-
+
#### -l all
if( $languages=~ /all/ ){
$bAll = "TRUE";
@@ -963,13 +963,13 @@ sub parseLanguages{
if( $lang=~ /([a-zA-Z]{2,3}(-[a-zA-Z\-]*)*)(=([a-zA-Z]{2,3}(-[a-zA-Z\-]*)*))?/ ){
$iso = $1;
$fallback = $4;
-
+
if( ( $iso && $iso=~ /(en-US)/i ) || ( $fallback && $fallback=~ /(en-US)/i ) ) {
$bUseLocalize = "TRUE";
}
if( ( $iso && $iso=~ /(en-US)/i ) ) {
$bHasSourceLanguage = "TRUE";
- }
+ }
if( $fallback ) { $langhash{ $iso } = $fallback; }
else { $langhash{ $iso } = ""; }
}
@@ -987,11 +987,11 @@ sub parseLanguages{
}
if( ( $iso && $iso=~ /(en-US)/i ) ) {
$bHasSourceLanguage = "TRUE";
- }
+ }
if( $fallback ) { $langhash{ $iso } = $fallback; }
else { $langhash{ $iso } = ""; }
- }
+ }
}
# HACK en-US always needed!
if( !$bHasSourceLanguage ){
@@ -1005,15 +1005,15 @@ sub parseLanguages{
#########################################################
sub parse_options{
-
+
my $help;
my $merge;
my $extract;
- my $success = GetOptions('f=s' => \$sdffile , 'l=s' => \$languages , 's=s' => \$srcpath , 'h' => \$help , 'v' => \$bVerbose ,
+ my $success = GetOptions('f=s' => \$sdffile , 'l=s' => \$languages , 's=s' => \$srcpath , 'h' => \$help , 'v' => \$bVerbose ,
'm' => \$merge , 'e' => \$extract , 'x' => \$no_sort , 'd' => \$use_default_date , 'c' => \$create_dirs ,
'n' => \$no_gsicheck , 'o' => \$force_ooo_module );
$outputfile = $sdffile;
-
+
#print STDOUT "DBG: lang = $languages\n";
if( !$srcpath ){
$srcpath = "$ENV{SRC_ROOT}";
@@ -1033,7 +1033,7 @@ sub parse_options{
}
if( $merge && $sdffile && ! ( -r $sdffile)){
print STDERR "Can't open file '$sdffile'\n";
- exit(1);
+ exit(1);
}
if( !( $languages=~ /[a-zA-Z]{2,3}(-[a-zA-Z\-]*)*(=[a-zA-Z]{2,3}(-[a-zA-Z\-]*)*)?(,[a-zA-Z]{2,3}(-[a-zA-Z\-]*)*(=[a-zA-Z]{2,3}(-[a-zA-Z\-]*)*)?)*/ ) ){
print STDERR "Please check the -l iso code\n";
@@ -1057,7 +1057,7 @@ sub usage{
print STDERR "Options:\n";
print STDERR " -h help\n";
print STDERR " -m Merge mode\n";
- print STDERR " -e Extract mode\n";
+ print STDERR " -e Extract mode\n";
print STDERR " -f <sdffile> To split a big SDF file into particles\n";
print STDERR " <outputfile> To collect and join all particles to one big file\n";
print STDERR " -s <sourceroot> Path to the modules, if no \$SRC_ROOT is set\n";
@@ -1066,7 +1066,7 @@ sub usage{
print STDERR " -c Create needed directories\n";
print STDERR " -g Sort sdf file before mergeing\n";
print STDERR " -h File with localize.sdf's\n!";
- print STDERR " -n No gsicheck\n";
+ print STDERR " -n No gsicheck\n";
print STDERR " -i Module to merge\n";
print STDERR " -o force using ooo localization from the l10n module instead of l10n_so; \n";
print STDERR " useful if the type can't be detected by the .svn tags; \n";
diff --git a/l10ntools/scripts/localize_old.pl b/l10ntools/scripts/localize_old.pl
index d6b66d6bb535..e2b5027828f0 100755
--- a/l10ntools/scripts/localize_old.pl
+++ b/l10ntools/scripts/localize_old.pl
@@ -2,11 +2,11 @@
eval 'exec perl -wS $0 ${1+"$@"}'
if 0;
-
+
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@ eval 'exec perl -wS $0 ${1+"$@"}'
# for a copy of the LGPLv3 License.
#
#*************************************************************************
-
+
use strict;
use Getopt::Long;
use IO::Handle;
@@ -41,7 +41,7 @@ use Cwd;
# ver 1.1
#
-#### module lookup
+#### module lookup
#use lib ("$ENV{SOLARENV}/bin/modules", "$ENV{COMMON_ENV_TOOLS}/modules");
#### module lookup
@@ -67,7 +67,7 @@ my $languages;
#my %sl_modules; # Contains all modules where en-US and de is source language
my $use_default_date = '0';
- # ( leftpart ) ( rightpart )
+ # ( leftpart ) ( rightpart )
# prj file dummy type gid lid helpid pform width lang text helptext qhelptext title timestamp
my $sdf_regex = "((([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*))\t([^\t]*)\t(([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t)([^\t]*))";
my $file_types = "(src|hrc|xcs|xcu|lng|ulf|xrm|xhp|xcd|xgf|xxl|xrb)";
@@ -80,16 +80,16 @@ parse_options();
#%sl_modules = fetch_sourcelanguage_dirlist();
-if ( $mode eq "merge" ) {
+if ( $mode eq "merge" ) {
merge_gsicheck();
- splitfile( $sdffile );
+ splitfile( $sdffile );
unlink $sdffile; # remove temp file!
}
-elsif( $mode eq "extract" ) {
+elsif( $mode eq "extract" ) {
collectfiles( $outputfile );
}
-else {
- usage();
+else {
+ usage();
}
exit(0);
@@ -112,7 +112,7 @@ sub splitfile{
#print STDOUT "Open File $sdffile\n";
open MYFILE , "< $sdffile"
or die "Can't open '$sdffile'\n";
-
+
while( <MYFILE>){
if( /$sdf_regex/ ){
my $line = defined $_ ? $_ : '';
@@ -123,32 +123,32 @@ sub splitfile{
my $lid = defined $8 ? $8 : '';
my $lang = defined $12 ? $12 : '';
my $plattform = defined $10 ? $10 : '';
- my $helpid = defined $9 ? $9 : '';
-
+ my $helpid = defined $9 ? $9 : '';
+
next if( $prj eq "binfilter" ); # Don't merge strings into binfilter module
chomp( $line );
$currentFile = $srcpath . '\\' . $prj . '\\' . $file;
$currentFile =~ s/\\/\//g;
-
+
$cur_sdffile = $currentFile;
#if( $cur_sdffile =~ /\.$file_types[\s]*$/ ){
$cur_sdffile =~ s/\/[^\/]*\.$file_types[\s]*$/\/localize.sdf/;
- #}
-
+ #}
+
# Set default date
if( $line =~ /(.*)\t[^\t\$]*$/ ){
$line = $1."\t".$default_date;
}
-
+
if( $start ){
$start='';
$lastFile = $currentFile; # ?
$last_sdffile = $cur_sdffile;
- }
+ }
if( $lang eq "en-US" ){}
elsif( $cur_sdffile eq $last_sdffile )
- {
+ {
$block{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } = $line ;
}
else
@@ -157,8 +157,8 @@ sub splitfile{
$lastFile = $currentFile; #?
$last_sdffile = $cur_sdffile;
%block = ();
- #if( ! $lang eq "en-US" ) {
- $block{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } = $line ;
+ #if( ! $lang eq "en-US" ) {
+ $block{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } = $line ;
#}
}
@@ -173,7 +173,7 @@ sub splitfile{
#########################################################
sub writesdf{
-
+
my $lastFile = shift;
my $blockhash_ref = shift;
my $localizeFile = $lastFile;
@@ -187,7 +187,7 @@ sub writesdf{
}
if( open DESTFILE , "< $localizeFile" ){
- #or die "Can't open/create '\$localizeFile'";
+ #or die "Can't open/create '\$localizeFile'";
#### Build hash
while(<DESTFILE>){
@@ -199,15 +199,15 @@ sub writesdf{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
- chomp( $line );
+
+ chomp( $line );
$index{ "$prj\t$file\t$type\t$gid\t$lid\t$helpid\t$plattform\t$lang" } = $line ;
-
+
} #else { print STDOUT "writesdf REGEX kaputt $_\n";}
- }
+ }
close( DESTFILE );
}
#### Copy new strings
@@ -226,7 +226,7 @@ sub writesdf{
}
}
- #### Write file
+ #### Write file
if( !$bVerbose ){ print STDOUT "."; }
if( $isDirty eq "TRUE" ){
@@ -248,12 +248,12 @@ sub writesdf{
}
close DESTFILE;
if( move( $localizeFile , $localizeFile.".backup" ) ){
- if( copy( $tmpfile , $localizeFile ) ){
+ if( copy( $tmpfile , $localizeFile ) ){
unlink $localizeFile.".backup";
} else { print STDERR "Can't open/create '$localizeFile', original file is renamed to $localizeFile.backup\n"; }
} else { print STDERR "Can't open/create '$localizeFile'\n"; }
}else{
- print STDERR "WARNING: Can't open/create '$localizeFile'\n";
+ print STDERR "WARNING: Can't open/create '$localizeFile'\n";
}
unlink $tmpfile;
}
@@ -264,7 +264,7 @@ sub writesdf{
}
sub get_license_header{
- return
+ return
"#\n".
"# #### ### # # ### ##### ##### #### ##### ##### \n".
"# # # # # ## # # # # # # # # # \n".
@@ -308,7 +308,7 @@ sub merge_gsicheck{
my ( $TMPHANDLE2 , $tmpfile2 ) = File::Temp::tempfile();
close ( $TMPHANDLE );
close ( $TMPHANDLE2 );
-
+
unlink $tmpfile2;
my $output2 = `cat $sdffile | sort > $tmpfile2`;
my $rc2 = $? << 8;
@@ -316,7 +316,7 @@ sub merge_gsicheck{
printf("ERROR: Failed -> cat $sdffile | sort > $tmpfile2\n$output2\n");
exit( -1 );
}
-
+
# if( $ENV{WRAPCMD} ){
# $command = "$ENV{WRAPCMD} gsicheck";
# }else{
@@ -331,7 +331,7 @@ sub merge_gsicheck{
# print STDOUT "### The file $errfile have been written containing the errors in your sdf file. Those lines will not be merged: ###\n\n";
# print STDOUT "$output\n";
# print STDOUT "################\n";
-#
+#
# }else{
# # Remove the 0 Byte file
# unlink $errfile;
@@ -341,47 +341,47 @@ sub merge_gsicheck{
}
#########################################################
sub collectfiles{
- print STDOUT "### Localize\n";
+ print STDOUT "### Localize\n";
my @sdfparticles;
- my $localizehash_ref;
+ my $localizehash_ref;
my ( $bAll , $bUseLocalize, $langhash_ref , $bHasSourceLanguage , $bFakeEnglish ) = parseLanguages();
-
+
# Enable autoflush on STDOUT
- # $| = 1;
+ # $| = 1;
STDOUT->autoflush( 1 );
### Search sdf particles
print STDOUT "### Searching sdf particles\n";
my $working_path = getcwd();
- chdir $srcpath;
- find sub {
+ chdir $srcpath;
+ find sub {
my $file = $File::Find::name;
if( -f && $file =~ /.*localize.sdf$/ ) {
- push @sdfparticles , $file;
+ push @sdfparticles , $file;
if( $bVerbose eq "1" ) { print STDOUT "$file\n"; }
else { print "."; }
-
+
}
} , getcwd() ;#"."; #$srcpath;
chdir $working_path;
- my $nFound = $#sdfparticles +1;
+ my $nFound = $#sdfparticles +1;
print "\n $nFound files found !\n";
my ( $LOCALIZEPARTICLE , $localizeSDF ) = File::Temp::tempfile();
- close( $LOCALIZEPARTICLE );
+ close( $LOCALIZEPARTICLE );
my ( $ALLPARTICLES_MERGED , $particleSDF_merged ) = File::Temp::tempfile();
- close( $ALLPARTICLES_MERGED );
+ close( $ALLPARTICLES_MERGED );
my ( $LOCALIZE_LOG , $my_localize_log ) = File::Temp::tempfile();
close( $LOCALIZE_LOG );
-
+
## Get the localize de,en-US extract
if( $bAll || $bUseLocalize ){
print "### Fetching source language strings\n";
my $command = "";
my $args = "";
-
+
if( $ENV{WRAPCMD} ){
$command = "$ENV{WRAPCMD} localize_sl";
}else{
@@ -401,45 +401,45 @@ sub collectfiles{
push @list , $isokey;
if( $langhash_ref->{ $isokey } ne "" ){
push @list , $langhash_ref->{ $isokey };
- }
+ }
}
remove_duplicates( \@list );
foreach my $isokey ( @list ){
switch :{
- #( $isokey=~ /^de$/i )
+ #( $isokey=~ /^de$/i )
# && do{
# if( $bFlag eq "TRUE" ){ $args .= ",de"; }
- # else {
- # $args .= "de"; $bFlag = "TRUE";
+ # else {
+ # $args .= "de"; $bFlag = "TRUE";
# }
# };
- ( $isokey=~ /^en-US$/i )
- && do{
+ ( $isokey=~ /^en-US$/i )
+ && do{
if( $bFlag eq "TRUE" ){ $args .= ",en-US"; }
- else {
- $args .= "en-US"; $bFlag = "TRUE";
+ else {
+ $args .= "en-US"; $bFlag = "TRUE";
}
};
-
+
} #switch
} #foreach
- } # if
+ } # if
} # if
if ( $bVerbose ) { print STDOUT $command.$args."\n"; }
-
+
my $rc = system( $command.$args );
#my $output = `$command.$args`;
#my $rc = $? << 8;
-
+
if( $rc < 0 ){ print STDERR "ERROR: localize rc = $rc\n"; exit( -1 ); }
( $localizehash_ref ) = read_file( $localizeSDF , $langhash_ref );
-
+
}
## Get sdf particles
- open ALLPARTICLES_MERGED , "+>> $particleSDF_merged"
- or die "Can't open $particleSDF_merged";
-
+ open ALLPARTICLES_MERGED , "+>> $particleSDF_merged"
+ or die "Can't open $particleSDF_merged";
+
## Fill fackback hash
my( $fallbackhashhash_ref ) = fetch_fallback( \@sdfparticles , $localizeSDF , $langhash_ref );
# my( $fallbackhashhash_ref ) = fetch_fallback( \@sdfparticles , $localizeSDF , $langhash_ref );
@@ -465,9 +465,9 @@ sub collectfiles{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
+
chomp( $line );
if ( $lang eq $cur_lang ){
@@ -483,12 +483,12 @@ sub collectfiles{
}
foreach my $line ( keys( %{$fallbackhashhash_ref->{ $cur_lang } } )) {
- if( #$cur_lang ne "de" &&
+ if( #$cur_lang ne "de" &&
$cur_lang ne "en-US" ){
print ALLPARTICLES_MERGED ( $fallbackhashhash_ref->{ $cur_lang }{ $line }, "\n" );
}
}
- }
+ }
} else {
foreach my $currentfile ( @sdfparticles ){
if ( open MYFILE , "< $currentfile" ) {
@@ -500,18 +500,18 @@ sub collectfiles{
}
}
close ALLPARTICLES_MERGED;
-
-
+
+
# Hash of array
my %output;
my @order;
-
+
## Join both
if( $outputfile ){
if( open DESTFILE , "+> $outputfile" ){
- if( !open LOCALIZEPARTICLE , "< $localizeSDF" ) { print STDERR "ERROR: Can't open file $localizeSDF\n"; }
+ if( !open LOCALIZEPARTICLE , "< $localizeSDF" ) { print STDERR "ERROR: Can't open file $localizeSDF\n"; }
if( !open ALLPARTICLES_MERGED , "< $particleSDF_merged" ) { print STDERR "ERROR: Can't open file $particleSDF_merged\n"; }
-
+
# Insert localize
my $extract_date="";
while ( <LOCALIZEPARTICLE> ){
@@ -527,16 +527,16 @@ sub collectfiles{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
#my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
-
+
+
if( $use_default_date )
{
- $extract_date = "$default_date\n" ;
+ $extract_date = "$default_date\n" ;
}
- elsif( $extract_date eq "" ) {
- $extract_date = $timestamp ;
+ elsif( $extract_date eq "" ) {
+ $extract_date = $timestamp ;
$extract_date =~ tr/\r\n//d;
$extract_date .= "\n";
}
@@ -544,18 +544,18 @@ sub collectfiles{
if( $bAll ){ print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date ; }
else {
foreach my $sLang ( keys( %{ $langhash_ref } ) ){
- if( $sLang=~ /all/i ) {
+ if( $sLang=~ /all/i ) {
push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
- #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
+ #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
}
- #if( $sLang eq "de" && $lang eq "de" ) {
+ #if( $sLang eq "de" && $lang eq "de" ) {
# push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
- #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
+ #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
#}
- if( $sLang eq "en-US" && $lang eq "en-US" ) {
+ if( $sLang eq "en-US" && $lang eq "en-US" ) {
push @order , $prj.$gid.$lid.$file.$type.$plattform.$helpid;
if( !$bFakeEnglish ){ push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ; }
- #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
+ #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date;
}
}
@@ -577,22 +577,22 @@ sub collectfiles{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
#my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
-
+
+
if( $use_default_date )
{
- $extract_date = "$default_date\n" ;
+ $extract_date = "$default_date\n" ;
}
- elsif( $extract_date eq "" )
- {
- $extract_date = $timestamp;
+ elsif( $extract_date eq "" )
+ {
+ $extract_date = $timestamp;
}
- if( ! ( $prj =~ /binfilter/i ) ) {
- push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
- #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
+ if( ! ( $prj =~ /binfilter/i ) ) {
+ push @{ $output{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } } , $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
+ #print DESTFILE $leftpart."\t".$lang."\t".$rightpart.$extract_date ;
}
}
}
@@ -604,17 +604,17 @@ sub collectfiles{
print DESTFILE $line;
}
}
- }
-
+ }
+
}else { print STDERR "Can't open $outputfile";}
}
close DESTFILE;
close LOCALIZEPARTICLE;
close ALLPARTICLES_MERGED;
-
- #print STDOUT "DBG: \$localizeSDF $localizeSDF \$particleSDF_merged $particleSDF_merged\n";
+
+ #print STDOUT "DBG: \$localizeSDF $localizeSDF \$particleSDF_merged $particleSDF_merged\n";
unlink $localizeSDF , $particleSDF_merged , $my_localize_log;
-
+
#sort_outfile( $outputfile );
#remove_obsolete( $outputfile ) , if $bHasSourceLanguage ne "";
}
@@ -625,7 +625,7 @@ sub remove_obsolete{
my @lines;
my $enusleftpart;
my @good_lines;
-
+
print STDOUT "### Removing obsolete strings\n";
# Kick out all strings without en-US reference
@@ -639,11 +639,11 @@ sub remove_obsolete{
my $type = defined $6 ? $6 : '';
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
+
my $leftpart = $prj.$gid.$lid.$file.$type.$plattform.$helpid;
-
+
if( $language eq "en-US" ){ # source string found, 1. entry
$enusleftpart = $leftpart;
push @good_lines , $line;
@@ -659,12 +659,12 @@ sub remove_obsolete{
#else{
# print STDERR "OUT: \$enusleftpart=$enusleftpart \$leftpart=$leftpart \$line=$line\n";
#}
- }
+ }
}
- }
+ }
close SORTEDFILE;
} else { print STDERR "ERROR: Can't open file $outfile\n";}
-
+
# Write file
if ( open ( SORTEDFILE , "> $outfile" ) ){
foreach my $newline ( @good_lines ) {
@@ -680,24 +680,24 @@ sub sort_outfile{
print STDOUT "### Sorting ... $outfile ...";
my @lines;
my @sorted_lines;
-
-
+
+
#if ( open ( SORTEDFILE , "< $outputfile" ) ){
if ( open ( SORTEDFILE , "< $outfile" ) ){
my $line;
while ( <SORTEDFILE> ){
$line = $_;
- if( $line =~ /^[^\#]/ ){
- push @lines , $line;
+ if( $line =~ /^[^\#]/ ){
+ push @lines , $line;
}
}
close SORTEDFILE;
@sorted_lines = sort {
- my $xa_lang = "";
+ my $xa_lang = "";
my $xa_left_part = "";
my $xa_right_part = "";
my $xa_timestamp = "";
- my $xb_lang = "";
+ my $xb_lang = "";
my $xb_left_part = "";
my $xb_right_part = "";
my $xb_timestamp = "";
@@ -705,7 +705,7 @@ sub sort_outfile{
my $xb = "";
my @alist;
my @blist;
-
+
if( $a=~ /$sdf_regex/ ){
$xa_left_part = defined $2 ? $2 : '';
$xa_lang = defined $12 ? $12 : '';
@@ -720,7 +720,7 @@ sub sort_outfile{
$xb_left_part = remove_last_column( $xb_left_part );
- }
+ }
if( ( $xa_left_part cmp $xb_left_part ) == 0 ){ # Left part equal
if( ( $xa_lang cmp $xb_lang ) == 0 ){ # Lang equal
return ( $xa_right_part cmp $xb_right_part ); # Right part compare
@@ -729,18 +729,18 @@ sub sort_outfile{
elsif( $xb_lang eq "en-US" ) { return 1; } # en-US wins
else { return $xa_lang cmp $xb_lang; } # lang compare
}
- else {
+ else {
return $xa_left_part cmp $xb_left_part; # Left part compare
}
} @lines;
-
+
if ( open ( SORTEDFILE , "> $outfile" ) ){
print SORTEDFILE get_license_header();
foreach my $newline ( @sorted_lines ) {
print SORTEDFILE $newline;
#print STDOUT $newline;
- }
- }
+ }
+ }
close SORTEDFILE;
} else { print STDERR "WARNING: Can't open file $outfile\n";}
print "done\n";
@@ -756,18 +756,18 @@ sub remove_last_column{
#########################################################
sub rename_language{
- my $fallbackhashhash_ref = shift;
+ my $fallbackhashhash_ref = shift;
my $cur_fallback = shift;
my $cur_lang = shift;
my $line;
-
+
foreach my $key( keys ( %{ $fallbackhashhash_ref->{ $cur_fallback } } ) ){
$line = $fallbackhashhash_ref->{ $cur_fallback }{ $key };
if( $line =~ /$sdf_regex/ ){
my $leftpart = defined $2 ? $2 : '';
my $lang = defined $12 ? $12 : '';
my $rightpart = defined $13 ? $13 : '';
-
+
$fallbackhashhash_ref->{ $cur_lang }{ $key } = $leftpart."\t".$cur_lang."\t".$rightpart;
}
}
@@ -785,35 +785,35 @@ sub remove_duplicates{
sub fetch_fallback{
my $sdfparticleslist_ref = shift;
my $localizeSDF = shift;
- my $langhash_ref = shift;
+ my $langhash_ref = shift;
my %fallbackhashhash;
my $cur_lang;
my @langlist;
-
+
foreach my $key ( keys ( %{ $langhash_ref } ) ){
$cur_lang = $langhash_ref->{ $key };
if ( $cur_lang ne "" ) {
push @langlist , $cur_lang;
}
}
- remove_duplicates( \@langlist );
- foreach $cur_lang ( @langlist ){
+ remove_duplicates( \@langlist );
+ foreach $cur_lang ( @langlist ){
if( $cur_lang eq "en-US" ){
read_fallbacks_from_source( $localizeSDF , $cur_lang , \%fallbackhashhash );
}
}
-
+
# remove de / en-US
my @tmplist;
foreach $cur_lang( @langlist ){
if( $cur_lang ne "en-US" ){
push @tmplist , $cur_lang;
-
+
}
}
@langlist = @tmplist;
- if ( $#langlist +1 ){
- read_fallbacks_from_particles( $sdfparticleslist_ref , \@langlist , \%fallbackhashhash );
+ if ( $#langlist +1 ){
+ read_fallbacks_from_particles( $sdfparticleslist_ref , \@langlist , \%fallbackhashhash );
}
return (\%fallbackhashhash);
@@ -821,27 +821,27 @@ sub fetch_fallback{
#########################################################
sub write_file{
-
+
my $localizeFile = shift;
my $index_ref = shift;
-
+
if( open DESTFILE , "+> $localizeFile" ){
foreach my $key( %{ $index_ref } ){
print DESTFILE ($index_ref->{ $key }, "\n" );
}
close DESTFILE;
}else {
- print STDERR "Can't open/create '$localizeFile'";
+ print STDERR "Can't open/create '$localizeFile'";
}
}
#########################################################
sub read_file{
-
+
my $sdffile = shift;
my $langhash_ref = shift;
my %block = ();
-
+
open MYFILE , "< $sdffile"
or die "Can't open '$sdffile'\n";
while( <MYFILE>){
@@ -855,7 +855,7 @@ sub read_file{
my $plattform = defined $10 ? $10 : '';
my $lang = defined $12 ? $12 : '';
my $helpid = defined $9 ? $9 : '';
-
+
foreach my $isolang ( keys ( %{ $langhash_ref } ) ){
if( $isolang=~ /$lang/i || $isolang=~ /all/i ) { $block{$prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ; }
}
@@ -866,7 +866,7 @@ sub read_file{
#########################################################
sub read_fallbacks_from_particles{
-
+
my $sdfparticleslist_ref = shift;
my $isolanglist_ref = shift;
my $fallbackhashhash_ref = shift;
@@ -882,14 +882,14 @@ sub read_fallbacks_from_particles{
my $gid = defined $7 ? $7 : '';
my $lid = defined $8 ? $8 : '';
my $lang = defined $12 ? $12 : '';
- my $plattform = defined $10 ? $10 : '';
+ my $plattform = defined $10 ? $10 : '';
my $helpid = defined $9 ? $9 : '';
-
+
chomp( $line );
-
+
foreach my $isolang ( @{$isolanglist_ref} ){
- if( $isolang=~ /$lang/i ) {
- $fallbackhashhash_ref->{ $isolang }{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ;
+ if( $isolang=~ /$lang/i ) {
+ $fallbackhashhash_ref->{ $isolang }{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ;
}
}
}
@@ -900,15 +900,15 @@ sub read_fallbacks_from_particles{
#########################################################
sub read_fallbacks_from_source{
-
+
my $sdffile = shift;
my $isolang = shift;
my $fallbackhashhash_ref = shift;
my $block_ref;
- # read fallback for single file
+ # read fallback for single file
open MYFILE , "< $sdffile"
or die "Can't open '$sdffile'\n";
-
+
while( <MYFILE>){
if( /$sdf_regex/ ){
my $line = defined $_ ? $_ : '';
@@ -920,9 +920,9 @@ sub read_fallbacks_from_source{
my $helpid = defined $9 ? $9 : '';
my $lang = defined $12 ? $12 : '';
my $plattform = defined $10 ? $10 : '';
-
- chomp( $line );
- if( $isolang=~ /$lang/i ) { $fallbackhashhash_ref->{ $isolang }{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ;
+
+ chomp( $line );
+ if( $isolang=~ /$lang/i ) { $fallbackhashhash_ref->{ $isolang }{ $prj.$gid.$lid.$file.$type.$plattform.$helpid } = $line ;
}
}
}
@@ -938,7 +938,7 @@ sub parseLanguages{
my %langhash;
my $iso="";
my $fallback="";
-
+
#### -l all
if( $languages=~ /all/ ){
$bAll = "TRUE";
@@ -951,13 +951,13 @@ sub parseLanguages{
if( $lang=~ /([a-zA-Z]{2,3}(-[a-zA-Z\-]*)*)(=([a-zA-Z]{2,3}(-[a-zA-Z\-]*)*))?/ ){
$iso = $1;
$fallback = $4;
-
+
if( ( $iso && $iso=~ /(en-US)/i ) || ( $fallback && $fallback=~ /(en-US)/i ) ) {
$bUseLocalize = "TRUE";
}
if( ( $iso && $iso=~ /(en-US)/i ) ) {
$bHasSourceLanguage = "TRUE";
- }
+ }
if( $fallback ) { $langhash{ $iso } = $fallback; }
else { $langhash{ $iso } = ""; }
}
@@ -975,11 +975,11 @@ sub parseLanguages{
}
if( ( $iso && $iso=~ /(en-US)/i ) ) {
$bHasSourceLanguage = "TRUE";
- }
+ }
if( $fallback ) { $langhash{ $iso } = $fallback; }
else { $langhash{ $iso } = ""; }
- }
+ }
}
# HACK en-US always needed!
if( !$bHasSourceLanguage ){
@@ -993,14 +993,14 @@ sub parseLanguages{
#########################################################
sub parse_options{
-
+
my $help;
my $merge;
my $extract;
- my $success = GetOptions('f=s' => \$sdffile , 'l=s' => \$languages , 's=s' => \$srcpath , 'h' => \$help , 'v' => \$bVerbose ,
+ my $success = GetOptions('f=s' => \$sdffile , 'l=s' => \$languages , 's=s' => \$srcpath , 'h' => \$help , 'v' => \$bVerbose ,
'm' => \$merge , 'e' => \$extract , 'x' => \$no_sort , 'd' => \$use_default_date );
$outputfile = $sdffile;
-
+
#print STDOUT "DBG: lang = $languages\n";
if( !$srcpath ){
#$srcpath = "$ENV{SRC_ROOT}";
@@ -1016,7 +1016,7 @@ sub parse_options{
}
if( $merge && $sdffile && ! ( -r $sdffile)){
print STDERR "Can't open file '$sdffile'\n";
- exit(1);
+ exit(1);
}
if( !( $languages=~ /[a-zA-Z]{2,3}(-[a-zA-Z\-]*)*(=[a-zA-Z]{2,3}(-[a-zA-Z\-]*)*)?(,[a-zA-Z]{2,3}(-[a-zA-Z\-]*)*(=[a-zA-Z]{2,3}(-[a-zA-Z\-]*)*)?)*/ ) ){
print STDERR "Please check the -l iso code\n";
@@ -1037,7 +1037,7 @@ sub usage{
print STDERR "Options:\n";
print STDERR " -h help\n";
print STDERR " -m Merge mode\n";
- print STDERR " -e Extract mode\n";
+ print STDERR " -e Extract mode\n";
print STDERR " -f <sdffile> To split a big SDF file into particles\n";
print STDERR " <outputfile> To collect and join all particles to one big file\n";
print STDERR " -s <sourceroot> Path to the modules, if no \$SRC_ROOT is set\n";
@@ -1067,4 +1067,4 @@ sub usage{
# my $quickhelptext = defined $16 ? $16 : '';
# my $title = defined $17 ? $17 : '';
# my $timestamp = defined $18 ? $18 : '';
-
+
diff --git a/l10ntools/source/cfgmerge.cxx b/l10ntools/source/cfgmerge.cxx
index 9840ee01f80c..e992cf4d6bd9 100644
--- a/l10ntools/source/cfgmerge.cxx
+++ b/l10ntools/source/cfgmerge.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,17 +42,17 @@ extern "C" { int yyerror( char * ); }
extern "C" { int YYWarning( char * ); }
// defines to parse command line
-#define STATE_NON 0x0001
-#define STATE_INPUT 0x0002
-#define STATE_OUTPUT 0x0003
-#define STATE_PRJ 0x0004
-#define STATE_ROOT 0x0005
-#define STATE_MERGESRC 0x0006
-#define STATE_ERRORLOG 0x0007
-#define STATE_UTF8 0x0008
-#define STATE_LANGUAGES 0X0009
-#define STATE_ISOCODE99 0x000A
-#define STATE_FORCE 0x000B
+#define STATE_NON 0x0001
+#define STATE_INPUT 0x0002
+#define STATE_OUTPUT 0x0003
+#define STATE_PRJ 0x0004
+#define STATE_ROOT 0x0005
+#define STATE_MERGESRC 0x0006
+#define STATE_ERRORLOG 0x0007
+#define STATE_UTF8 0x0008
+#define STATE_LANGUAGES 0X0009
+#define STATE_ISOCODE99 0x000A
+#define STATE_FORCE 0x000B
// set of global variables
BOOL bEnableExport;
@@ -95,7 +95,7 @@ extern char *GetOutputFile( int argc, char* argv[])
for( int i = 1; i < argc; i++ ) {
ByteString sSwitch( argv[ i ] );
sSwitch.ToUpperAscii();
-
+
if ( sSwitch == "-I" ) {
nState = STATE_INPUT; // next token specifies source file
}
@@ -136,7 +136,7 @@ extern char *GetOutputFile( int argc, char* argv[])
else {
switch ( nState ) {
case STATE_NON: {
- return NULL; // no valid command line
+ return NULL; // no valid command line
}
case STATE_INPUT: {
sInputFileName = argv[ i ];
@@ -149,7 +149,7 @@ extern char *GetOutputFile( int argc, char* argv[])
break;
case STATE_PRJ: {
sPrj = ByteString( argv[ i ]);
-// sPrj.ToLowerAscii(); // the project
+// sPrj.ToLowerAscii(); // the project
}
break;
case STATE_ROOT: {
@@ -191,9 +191,9 @@ int InitCfgExport( char *pOutput , char* pFilename )
if ( bMergeMode )
pParser = new CfgMerge( sMergeSrc, sOutputFile, sFilename );
- else if ( sOutputFile.Len())
+ else if ( sOutputFile.Len())
pParser = new CfgExport( sOutputFile, sPrj, sActFileName );
-
+
return 1;
}
@@ -214,7 +214,7 @@ void removeTempFile(){
}
extern const char* getFilename()
{
- return sInputFileName.GetBuffer();
+ return sInputFileName.GetBuffer();
}
/*****************************************************************************/
extern FILE *GetCfgFile()
@@ -253,9 +253,9 @@ extern FILE *GetCfgFile()
// create file name, beginnig with project root
// (e.g.: source\ui\src\menue.src)
-// printf("sFullEntry = %s\n",sFullEntry.GetBuffer());
+// printf("sFullEntry = %s\n",sFullEntry.GetBuffer());
sActFileName = sFullEntry.Copy( sPrjEntry.Len() + 1 );
-// printf("sActFileName = %s\n",sActFileName.GetBuffer());
+// printf("sActFileName = %s\n",sActFileName.GetBuffer());
sActFileName.SearchAndReplaceAll( "/", "\\" );
@@ -296,12 +296,12 @@ int GetError()
//
CfgStackData* CfgStack::Push( const ByteString &rTag, const ByteString &rId )
-{
- CfgStackData *pD = new CfgStackData( rTag, rId );
- Insert( pD, LIST_APPEND );
- return pD;
+{
+ CfgStackData *pD = new CfgStackData( rTag, rId );
+ Insert( pD, LIST_APPEND );
+ return pD;
}
-
+
//
// class CfgStack
//
@@ -577,7 +577,7 @@ int CfgParser::Execute( int nToken, char * pToken )
void CfgParser::Error( const ByteString &rError )
/*****************************************************************************/
{
-// ByteString sError( rError );
+// ByteString sError( rError );
// sError.Append("Error: In file ");
// sError.Append( sActFileName );
yyerror(( char * ) rError.GetBuffer());
@@ -658,7 +658,7 @@ void CfgExport::WorkOnRessourceEnd()
ByteString sFallback = pStackData->sText[ ByteString("en-US") ];
//if ( pStackData->sText[ ByteString("en-US") ].Len())
- // sFallback = pStackData->sText[ ByteString("en-US") ];
+ // sFallback = pStackData->sText[ ByteString("en-US") ];
ByteString sLocalId = pStackData->sIdentifier;
ByteString sGroupId;
@@ -730,7 +730,7 @@ CfgMerge::CfgMerge(
{
if ( rMergeSource.Len()){
pMergeDataFile = new MergeDataFile(
- rMergeSource, sInputFileName , bErrorLog, RTL_TEXTENCODING_MS_1252, true );
+ rMergeSource, sInputFileName , bErrorLog, RTL_TEXTENCODING_MS_1252, true );
if( Export::sLanguages.EqualsIgnoreCaseAscii("ALL") ){
Export::SetLanguages( pMergeDataFile->GetLanguages() );
aLanguages = pMergeDataFile->GetLanguages();
@@ -776,7 +776,7 @@ void CfgMerge::WorkOnText(
}
//if ( nLangIndex.EqualsIgnoreCaseAscii("de") )
- // bGerman = TRUE;
+ // bGerman = TRUE;
if (( nLangIndex.EqualsIgnoreCaseAscii("en-US") ))
bEnglish = TRUE;
@@ -784,11 +784,11 @@ void CfgMerge::WorkOnText(
if ( pEntrys ) {
ByteString sContent;
pEntrys->GetText( sContent, STRING_TYP_TEXT, nLangIndex );
-
+
if ( Export::isAllowed( nLangIndex ) &&
( sContent != "-" ) && ( sContent.Len()))
{
-#ifdef MERGE_SOURCE_LANGUAGES
+#ifdef MERGE_SOURCE_LANGUAGES
if( nLangIndex.EqualsIgnoreCaseAscii("de") || nLangIndex.EqualsIgnoreCaseAscii("en-US") )
rText = sContent;
#endif
@@ -807,9 +807,9 @@ void CfgMerge::Output( const ByteString& rOutput )
}
ULONG CfgStack::Push( CfgStackData *pStackData )
-{
- Insert( pStackData, LIST_APPEND );
- return Count() - 1;
+{
+ Insert( pStackData, LIST_APPEND );
+ return Count() - 1;
}
/*****************************************************************************/
@@ -827,13 +827,13 @@ void CfgMerge::WorkOnRessourceEnd()
ByteString sContent;
pEntrys->GetText( sContent, STRING_TYP_TEXT, sCur , TRUE );
- if (
+ if (
// (!sCur.EqualsIgnoreCaseAscii("de") ) &&
( !sCur.EqualsIgnoreCaseAscii("en-US") ) &&
( sContent != "-" ) && ( sContent.Len()))
{
-
+
ByteString sText = sContent;
Export::QuotHTML( sText );
diff --git a/l10ntools/source/directory.cxx b/l10ntools/source/directory.cxx
index bca2e399170c..d83fa8bfedb8 100644
--- a/l10ntools/source/directory.cxx
+++ b/l10ntools/source/directory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#include <vector>
#include <algorithm>
-namespace transex
+namespace transex
{
Directory::Directory( const rtl::OUString sFullpath ) : bSkipLinks( false )
@@ -57,16 +57,16 @@ Directory::Directory( const ByteString sFullPath ) : bSkipLinks( false )
bool Directory::lessDir ( const Directory& rKey1, const Directory& rKey2 )
{
- rtl::OUString sName1( ( static_cast< Directory >( rKey1 ) ).getDirectoryName() );
- rtl::OUString sName2( ( static_cast< Directory >( rKey2 ) ).getDirectoryName() );
-
+ rtl::OUString sName1( ( static_cast< Directory >( rKey1 ) ).getDirectoryName() );
+ rtl::OUString sName2( ( static_cast< Directory >( rKey2 ) ).getDirectoryName() );
+
return sName1.compareTo( sName2 ) < 0 ;
}
void Directory::dump()
{
-
+
for( std::vector< transex::File >::iterator iter = aFileVec.begin() ; iter != aFileVec.end() ; ++iter )
{
std::cout << "FILE " << rtl::OUStringToOString( (*iter).getFullName().getStr() , RTL_TEXTENCODING_UTF8 , (*iter).getFullName().getLength() ).getStr() << "\n";
@@ -76,7 +76,7 @@ void Directory::dump()
{
std::cout << "DIR " << rtl::OUStringToOString( (*iter).getFullName().getStr() , RTL_TEXTENCODING_UTF8 , (*iter).getFullName().getLength() ).getStr() << "\n";
}
-
+
}
void Directory::scanSubDir( int nLevels )
@@ -116,14 +116,14 @@ void Directory::readDirectory ( const rtl::OUString& sFullpath )
rtl::OString sFullpathext = rtl::OUStringToOString( sFullpath , RTL_TEXTENCODING_UTF8 , sFullpath.getLength() );
const char *dirname = sFullpathext.getStr();
-
+
// Get the proper directory path
sprintf(szDir, "%s\\*", dirname);
-
+
// Get the first file
hList = FindFirstFile(szDir, &FileData);
if (hList == INVALID_HANDLE_VALUE)
- {
+ {
//FindClose(hList);
//printf("No files found %s\n", szDir ); return;
}
@@ -132,7 +132,7 @@ void Directory::readDirectory ( const rtl::OUString& sFullpath )
fFinished = FALSE;
while (!fFinished)
{
-
+
sprintf(szSubDir, "%s\\%s", dirname, FileData.cFileName);
rtl::OString myfile( FileData.cFileName );
rtl::OString mydir( szSubDir );
@@ -143,14 +143,14 @@ void Directory::readDirectory ( const rtl::OUString& sFullpath )
(strcmp(FileData.cFileName, "..") != 0 ) )
{
//sprintf(szSubDir, "%s\\%s", dirname, FileData.cFileName);
- transex::Directory aDir( rtl::OStringToOUString( mydir , RTL_TEXTENCODING_UTF8 , mydir.getLength() ),
+ transex::Directory aDir( rtl::OStringToOUString( mydir , RTL_TEXTENCODING_UTF8 , mydir.getLength() ),
rtl::OStringToOUString( myfile , RTL_TEXTENCODING_UTF8 , myfile.getLength() ) );
aDirVec.push_back( aDir );
}
}
else
{
- transex::File aFile( rtl::OStringToOUString( mydir , RTL_TEXTENCODING_UTF8 , mydir.getLength() ),
+ transex::File aFile( rtl::OStringToOUString( mydir , RTL_TEXTENCODING_UTF8 , mydir.getLength() ),
rtl::OStringToOUString( myfile , RTL_TEXTENCODING_UTF8 , myfile.getLength() ) );
aFileVec.push_back( aFile );
}
@@ -165,7 +165,7 @@ void Directory::readDirectory ( const rtl::OUString& sFullpath )
}
FindClose(hList);
-
+
::std::sort( aFileVec.begin() , aFileVec.end() , File::lessFile );
::std::sort( aDirVec.begin() , aDirVec.end() , Directory::lessDir );
}
@@ -193,20 +193,20 @@ void Directory::readDirectory( const rtl::OUString& sFullpath )
rtl::OString sFullpathext = rtl::OUStringToOString( sFullpath , RTL_TEXTENCODING_UTF8 );
const char* path = sFullpathext.getStr();
-
+
// stat
if( stat( path , &statbuf ) < 0 ){ printf("warning: Can not stat %s" , path ); return; }
-
+
if( S_ISDIR(statbuf.st_mode ) == 0 ) { return; }
if( (dir = opendir( path ) ) == NULL ) {printf("readerror 2 in %s \n",path); return; }
dirholder aHolder(dir);
-
+
const rtl::OString sDot ( "." ) ;
const rtl::OString sDDot( ".." );
-
+
if ( chdir( path ) == -1 ) { printf("chdir error in %s \n",path); return; }
-
+
sFullpathext += rtl::OString( "/" );
while( ( dirp = readdir( dir ) ) != NULL )
@@ -215,11 +215,11 @@ void Directory::readDirectory( const rtl::OUString& sFullpath )
if( sEntryName.equals( sDot ) || sEntryName.equals( sDDot ) )
continue;
-
+
// add dir entry
rtl::OString sEntity = sFullpathext;
sEntity += sEntryName;
-
+
// stat new entry
if( lstat( sEntity.getStr() , &statbuf2 ) < 0 )
{
@@ -231,31 +231,31 @@ void Directory::readDirectory( const rtl::OUString& sFullpath )
switch( statbuf2.st_mode & S_IFMT )
{
case S_IFREG:
- {
+ {
rtl::OString sFile = sFullpathext;
sFile += sEntryName ;
- transex::File aFile( rtl::OStringToOUString( sEntity , RTL_TEXTENCODING_UTF8 , sEntity.getLength() ) ,
- rtl::OStringToOUString( sEntryName , RTL_TEXTENCODING_UTF8 , sEntryName.getLength() )
+ transex::File aFile( rtl::OStringToOUString( sEntity , RTL_TEXTENCODING_UTF8 , sEntity.getLength() ) ,
+ rtl::OStringToOUString( sEntryName , RTL_TEXTENCODING_UTF8 , sEntryName.getLength() )
);
- aFileVec.push_back( aFile ) ;
- break;
- }
+ aFileVec.push_back( aFile ) ;
+ break;
+ }
case S_IFLNK:
- {
+ {
if( bSkipLinks ) break;
}
case S_IFDIR:
- {
+ {
rtl::OString sDir = sFullpathext;
sDir += sEntryName ;
- transex::Directory aDir(
+ transex::Directory aDir(
rtl::OStringToOUString( sEntity , RTL_TEXTENCODING_UTF8 , sEntity.getLength() ) ,
- rtl::OStringToOUString( sEntryName , RTL_TEXTENCODING_UTF8 , sEntryName.getLength() )
- ) ;
- aDirVec.push_back( aDir ) ;
- break;
+ rtl::OStringToOUString( sEntryName , RTL_TEXTENCODING_UTF8 , sEntryName.getLength() )
+ ) ;
+ aDirVec.push_back( aDir ) ;
+ break;
}
}
}
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 07adaa5b0433..3f2037049d1f 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,17 +42,17 @@ extern "C" { int YYWarning( char * ); }
Export *pExport = 0L;
// defines to parse command line
-#define STATE_NON 0x0001
-#define STATE_INPUT 0x0002
-#define STATE_OUTPUT 0x0003
-#define STATE_PRJ 0x0004
-#define STATE_ROOT 0x0005
-#define STATE_MERGESRC 0x0006
-#define STATE_ERRORLOG 0x0007
-#define STATE_BREAKHELP 0x0008
-#define STATE_UNMERGE 0x0009
-#define STATE_UTF8 0x000A
-#define STATE_LANGUAGES 0X000B
+#define STATE_NON 0x0001
+#define STATE_INPUT 0x0002
+#define STATE_OUTPUT 0x0003
+#define STATE_PRJ 0x0004
+#define STATE_ROOT 0x0005
+#define STATE_MERGESRC 0x0006
+#define STATE_ERRORLOG 0x0007
+#define STATE_BREAKHELP 0x0008
+#define STATE_UNMERGE 0x0009
+#define STATE_UTF8 0x000A
+#define STATE_LANGUAGES 0X000B
// set of global variables
DECLARE_LIST( FileList, ByteString * )
@@ -104,7 +104,7 @@ extern char *GetOutputFile( int argc, char* argv[])
// parse command line
for( int i = 1; i < argc; i++ ) {
ByteString sSwitch( argv[ i ] );
-
+
if (sSwitch == "-i" || sSwitch == "-I" ) {
nState = STATE_INPUT; // next tokens specifies source files
}
@@ -148,7 +148,7 @@ extern char *GetOutputFile( int argc, char* argv[])
else {
switch ( nState ) {
case STATE_NON: {
- return NULL; // no valid command line
+ return NULL; // no valid command line
}
case STATE_INPUT: {
aInputFileList.Insert( new ByteString( argv[ i ]), LIST_APPEND );
@@ -250,7 +250,7 @@ extern FILE *GetNextFile()
sTempFile = sFileName;
Export::RemoveUTF8ByteOrderMarkerFromFile( sFileName );
-
+
// able to open file?
FILE *pFile = fopen( sFileName.GetBuffer(), "r" );
if ( !pFile )
@@ -275,7 +275,7 @@ extern FILE *GetNextFile()
sActFileName.SearchAndReplaceAll( "/", "\\" );
sFile = sActFileName;
-
+
if ( pExport ) {
// create instance of class export
pExport->Init();
@@ -289,7 +289,7 @@ extern FILE *GetNextFile()
}
int Parse( int nTyp, const char *pTokenText ){
- pExport->Execute( nTyp , pTokenText );
+ pExport->Execute( nTyp , pTokenText );
return 1;
}
void Close(){
@@ -346,12 +346,12 @@ void ResData::Dump(){
ByteString f("sText");
Export::DumpMap( f , sText );
-
- if( pStringList ) Export::DumpExportList( a , *pStringList );
- if( pUIEntries ) Export::DumpExportList( b , *pUIEntries );
- if( pFilterList ) Export::DumpExportList( c , *pFilterList );
- if( pItemList ) Export::DumpExportList( d , *pItemList );
- if( pPairedList ) Export::DumpExportList( e , *pPairedList );
+
+ if( pStringList ) Export::DumpExportList( a , *pStringList );
+ if( pUIEntries ) Export::DumpExportList( b , *pUIEntries );
+ if( pFilterList ) Export::DumpExportList( c , *pFilterList );
+ if( pItemList ) Export::DumpExportList( d , *pItemList );
+ if( pPairedList ) Export::DumpExportList( e , *pPairedList );
printf("\n");
}
@@ -434,7 +434,7 @@ Export::Export( const ByteString &rOutput, BOOL bWrite,
(void) rPrj;
(void) rPrjRoot;
(void) rFile;
-
+
if( !isInitialized ) InitLanguages();
// used when export is enabled
@@ -514,7 +514,7 @@ void Export::Init()
Export::~Export()
/*****************************************************************************/
{
- if( pParseQueue )
+ if( pParseQueue )
delete pParseQueue;
// close output stream
if ( bEnableExport )
@@ -537,10 +537,10 @@ Export::~Export()
int Export::Execute( int nToken, const char * pToken )
/*****************************************************************************/
{
-
+
ByteString sToken( pToken );
ByteString sOrig( sToken );
-/* printf("+---------------\n");
+/* printf("+---------------\n");
printf("sToken = %s\n",sToken.GetBuffer());
printf("nToken = %d\n",nToken);
printf("+---------------\n"); */
@@ -579,11 +579,11 @@ int Export::Execute( int nToken, const char * pToken )
{
// no res. exists at cur. level so return
if ( bMergeMode )
- WriteToMerged( sOrig , false );
+ WriteToMerged( sOrig , false );
return 0;
}
// #define NO_LOCALIZE_EXPORT
- if( bSkipFile ){
+ if( bSkipFile ){
if ( bMergeMode ) {
WriteToMerged( sOrig , false );
}
@@ -630,7 +630,7 @@ int Export::Execute( int nToken, const char * pToken )
USHORT nOpen = 0;
USHORT nClose = 0;
BOOL bReadOver1 = FALSE;
- USHORT i = 0;
+ USHORT i = 0;
for ( i = 0; i < sToken.Len(); i++ ) {
if ( sToken.GetChar( i ) == '\"' )
bReadOver1 = !bReadOver1;
@@ -650,7 +650,7 @@ int Export::Execute( int nToken, const char * pToken )
bExecuteDown = TRUE;
}
switch ( nToken ) {
-
+
case NORMDEFINE:
//printf("sToken = '%s'",sToken.GetBuffer());
while( sToken.SearchAndReplace( "\r", " " ) != STRING_NOTFOUND ) {};
@@ -661,11 +661,11 @@ int Export::Execute( int nToken, const char * pToken )
return 0;
}
if ( bMergeMode )
- WriteToMerged( sOrig , false );
-
+ WriteToMerged( sOrig , false );
+
return 0;
-
-
+
+
case RSCDEFINE:
bDefine = TRUE; // res. defined in macro
@@ -706,7 +706,7 @@ int Export::Execute( int nToken, const char * pToken )
pResData->SetId( sId, ID_LEVEL_IDENTIFIER );
if ( sCondition.Len()) {
ByteString sEmpty( "" );
- Execute( CONDITION, sEmpty.GetBufferAccess()); // execute the
+ Execute( CONDITION, sEmpty.GetBufferAccess()); // execute the
// precomp.
// condition
sEmpty.ReleaseBufferAccess();
@@ -782,7 +782,7 @@ int Export::Execute( int nToken, const char * pToken )
else
nListLevel--;
}
- }
+ }
break;
case ASSIGNMENT: {
bDontWriteOutput = FALSE;
@@ -801,7 +801,7 @@ int Export::Execute( int nToken, const char * pToken )
}
else if ( sKey == "STRINGLIST" ) {
//if ( bUnmerge ){
- // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
+ // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
//}
pResData->bList = TRUE;
@@ -813,7 +813,7 @@ int Export::Execute( int nToken, const char * pToken )
}
else if ( sKey == "FILTERLIST" ) {
//if ( bUnmerge ){
- // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
+ // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
//}
pResData->bList = TRUE;
nList = LIST_FILTER;
@@ -824,7 +824,7 @@ int Export::Execute( int nToken, const char * pToken )
}
else if ( sKey == "UIENTRIES" ) {
//if ( bUnmerge ){
- // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));}
+ // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));}
pResData->bList = TRUE;
nList = LIST_UIENTRIES;
//ByteString sLang("en-US" , RTL_TEXTENCODING_ASCII_US );
@@ -839,7 +839,7 @@ int Export::Execute( int nToken, const char * pToken )
Parse( LEVELUP, "" );
}
//if ( bUnmerge && ( nListLang.EqualsIgnoreCaseAscii("de") || nListLang.EqualsIgnoreCaseAscii("en-US") ) && ListExists( pResData, nList ))
- // bDontWriteOutput = TRUE;
+ // bDontWriteOutput = TRUE;
}
break;
case UIENTRIES:
@@ -852,7 +852,7 @@ int Export::Execute( int nToken, const char * pToken )
nPos = sTmpToken.ToLowerAscii().Search("[en-us]=");
if( nPos != STRING_NOTFOUND ) {
//if ( bUnmerge ){
- // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
+ // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
//}
ByteString sKey = sTmpToken.Copy( 0 , nPos );
sKey.EraseAllChars( ' ' );
@@ -901,7 +901,7 @@ int Export::Execute( int nToken, const char * pToken )
nListIndex = 0;
nListLevel = 0;
}
- /*if ( bUnmerge && ( nListLang.EqualsIgnoreCaseAscii( "de" )
+ /*if ( bUnmerge && ( nListLang.EqualsIgnoreCaseAscii( "de" )
|| nListLang.EqualsIgnoreCaseAscii("en-US" ) )
&& ListExists( pResData, nList ))
bDontWriteOutput = TRUE;*/
@@ -916,7 +916,7 @@ int Export::Execute( int nToken, const char * pToken )
else if ( sKey == "FILTERLIST" )
nList = LIST_FILTER;
else if ( sKey == "PAIREDLIST" )
- nList = LIST_PAIRED; // abcd
+ nList = LIST_PAIRED; // abcd
else if ( sKey == "ITEMLIST" )
nList = LIST_ITEM;
else if ( sKey == "UIENTRIES" )
@@ -983,11 +983,11 @@ int Export::Execute( int nToken, const char * pToken )
( sKey == "UINAME" ))
{
//if ( bUnmerge && sToken.GetToken( 0, '=' ).Search( "[" ) == STRING_NOTFOUND )
- // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
-
+ // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
+
SetChildWithText();
//if ( nLangIndex.EqualsIgnoreCaseAscii("en-US") )
- if ( Export::isSourceLanguage( nLangIndex ) )
+ if ( Export::isSourceLanguage( nLangIndex ) )
pResData->SetId( sText, ID_LEVEL_TEXT );
pResData->bText = TRUE;
@@ -995,7 +995,7 @@ int Export::Execute( int nToken, const char * pToken )
if ( bMergeMode ) {
PrepareTextToMerge( sOrig, STRING_TYP_TEXT, nLangIndex, pResData );
//if ( bUnmerge )
- // pResData->sText[ nLangIndex ] = sText;
+ // pResData->sText[ nLangIndex ] = sText;
}
else {
if ( pResData->sText[ nLangIndex ].Len()) {
@@ -1008,8 +1008,8 @@ int Export::Execute( int nToken, const char * pToken )
}
else if ( sKey == "HELPTEXT" ) {
//if ( bUnmerge && sToken.GetToken( 0, '=' ).Search( "[" ) == STRING_NOTFOUND ){
- // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
- // }
+ // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
+ // }
SetChildWithText();
pResData->bHelpText = TRUE;
if ( bBreakWhenHelpText ) {
@@ -1021,7 +1021,7 @@ int Export::Execute( int nToken, const char * pToken )
if ( bMergeMode )
PrepareTextToMerge( sOrig, STRING_TYP_HELPTEXT, nLangIndex, pResData );
//if ( bUnmerge )
- // pResData->sHelpText[ nLangIndex ] = sText;
+ // pResData->sHelpText[ nLangIndex ] = sText;
else {
if ( pResData->sHelpText[ nLangIndex ].Len()) {
ByteString sError( "Language " );
@@ -1033,14 +1033,14 @@ int Export::Execute( int nToken, const char * pToken )
}
else if ( sKey == "QUICKHELPTEXT" ) {
//if ( bUnmerge && sToken.GetToken( 0, '=' ).Search( "[" ) == STRING_NOTFOUND ){
- // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
- // }
+ // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
+ // }
SetChildWithText();
pResData->bQuickHelpText = TRUE;
if ( bMergeMode )
PrepareTextToMerge( sOrig, STRING_TYP_QUICKHELPTEXT, nLangIndex, pResData );
//if ( bUnmerge )
- // pResData->sQuickHelpText[ nLangIndex ] = sText;
+ // pResData->sQuickHelpText[ nLangIndex ] = sText;
else {
if ( pResData->sQuickHelpText[ nLangIndex ].Len()) {
ByteString sError( "Language " );
@@ -1052,14 +1052,14 @@ int Export::Execute( int nToken, const char * pToken )
}
else if ( sKey == "TITLE" ) {
//if ( bUnmerge && sToken.GetToken( 0, '=' ).Search( "[" ) == STRING_NOTFOUND ){
- // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
- // }
+ // ( sOrig.SearchAndReplace( "=", "[ de ] =" ));
+ // }
SetChildWithText();
pResData->bTitle = TRUE;
if ( bMergeMode )
PrepareTextToMerge( sOrig, STRING_TYP_TITLE, nLangIndex, pResData );
//if ( bUnmerge )
- // pResData->sTitle[ nLangIndex ] = sText;
+ // pResData->sTitle[ nLangIndex ] = sText;
else {
if ( pResData->sTitle[ nLangIndex ].Len()) {
ByteString sError( "Language " );
@@ -1202,10 +1202,10 @@ int Export::Execute( int nToken, const char * pToken )
}
if ( bWriteToMerged ) {
// the current token must be written to dest. without merging
-
+
if( bDefine && sOrig.Len() > 2 ){
for( USHORT n = 0 ; n < sOrig.Len() ; n++ ){
- if( sOrig.GetChar( n ) == '\n' && sOrig.GetChar( n-1 ) != '\\'){
+ if( sOrig.GetChar( n ) == '\n' && sOrig.GetChar( n-1 ) != '\\'){
sOrig.Insert('\\' , n++ );
}
}
@@ -1263,11 +1263,11 @@ BOOL Export::ListExists( ResData *pResData, USHORT nLst )
/*****************************************************************************/
{
switch ( nLst ) {
- case LIST_STRING: return pResData->pStringList != NULL;
+ case LIST_STRING: return pResData->pStringList != NULL;
case LIST_FILTER: return pResData->pFilterList != NULL;
- case LIST_ITEM: return pResData->pItemList != NULL;
- case LIST_PAIRED: return pResData->pPairedList != NULL;
- case LIST_UIENTRIES: return pResData->pUIEntries != NULL;
+ case LIST_ITEM: return pResData->pItemList != NULL;
+ case LIST_PAIRED: return pResData->pPairedList != NULL;
+ case LIST_UIENTRIES: return pResData->pUIEntries != NULL;
}
return FALSE;
}
@@ -1287,23 +1287,23 @@ BOOL Export::WriteData( ResData *pResData, BOOL bCreateNew )
/* ByteStringHashMap::iterator pos3 = pResData->sText.begin();
ByteStringHashMap::iterator end3 = pResData->sText.end();
for(;pos3!=end3;++pos3){
-
+
printf("[%s]=%s\n", pos3->first.GetBuffer(), pos3->second.GetBuffer() );
}*/
- // mandatory to export: en-US
-
+ // mandatory to export: en-US
+
if (( //pResData->sText[ ByteString("de") ].Len() &&
( pResData->sText[ SOURCE_LANGUAGE ].Len()))
||
( //pResData->sHelpText[ ByteString("de") ].Len() &&
- ( pResData->sHelpText[ SOURCE_LANGUAGE ].Len()))
+ ( pResData->sHelpText[ SOURCE_LANGUAGE ].Len()))
||
( //pResData->sQuickHelpText[ ByteString("de") ].Len() &&
( pResData->sQuickHelpText[ SOURCE_LANGUAGE ].Len()))
||
( //pResData->sTitle[ ByteString("de") ].Len() &&
( pResData->sTitle[ SOURCE_LANGUAGE ].Len())))
-
+
{
FillInFallbacks( pResData );
@@ -1388,27 +1388,27 @@ BOOL Export::WriteData( ResData *pResData, BOOL bCreateNew )
sOutput += pResData->sResTyp; sOutput += "\t";
sOutput += sGID; sOutput += "\t";
sOutput += sLID; sOutput += "\t";
- sOutput += pResData->sHelpId; sOutput += "\t";
- sOutput += pResData->sPForm; sOutput += "\t";
+ sOutput += pResData->sHelpId; sOutput += "\t";
+ sOutput += pResData->sPForm; sOutput += "\t";
sOutput += ByteString::CreateFromInt64( pResData->nWidth ); sOutput += "\t";
sOutput += sCur; sOutput += "\t";
+
-
- sOutput += sXText; sOutput += "\t";
+ sOutput += sXText; sOutput += "\t";
sOutput += sXHText; sOutput += "\t";
sOutput += sXQHText; sOutput+= "\t";
sOutput += sXTitle; sOutput += "\t";
sOutput += sTimeStamp;
-
- // if( !sCur.EqualsIgnoreCaseAscii("de") ||( sCur.EqualsIgnoreCaseAscii("de") && !Export::isMergingGermanAllowed( sProject ) ) )
+
+ // if( !sCur.EqualsIgnoreCaseAscii("de") ||( sCur.EqualsIgnoreCaseAscii("de") && !Export::isMergingGermanAllowed( sProject ) ) )
aOutput.WriteLine( sOutput );
}
if ( bCreateNew ) {
- pResData->sText[ sCur ] = "";
- pResData->sHelpText[ sCur ] = "";
+ pResData->sText[ sCur ] = "";
+ pResData->sHelpText[ sCur ] = "";
pResData->sQuickHelpText[ sCur ]= "";
- pResData->sTitle[ sCur ] = "";
+ pResData->sTitle[ sCur ] = "";
}
}
}
@@ -1499,25 +1499,25 @@ BOOL Export::WriteExportList( ResData *pResData, ExportList *pExportList,
//(*pEntry)[ ByteString("de") ].Len() &&
(*pEntry)[ SOURCE_LANGUAGE ].Len() )
//||
- // (*pEntry)[ ByteString("en") ].Len()))
+ // (*pEntry)[ ByteString("en") ].Len()))
{
if ( bEnableExport )
{
ByteString sText((*pEntry)[ SOURCE_LANGUAGE ] );
-
+
// Strip PairList Line String
if( rTyp.EqualsIgnoreCaseAscii("pairedlist") ){
sLID = GetPairedListID( sText );
if ((*pEntry)[ sCur ].Len())
sText = (*pEntry)[ sCur ];
- sText = GetPairedListString( sText );
+ sText = GetPairedListString( sText );
}
else{
//if ((*pEntry)[ sCur ].Len()){
- // if( sCur.EqualsIgnoreCaseAscii("de") ){
- // sText = StripList( (*pEntry)[ sCur ] );
- // }
- // else
+ // if( sCur.EqualsIgnoreCaseAscii("de") ){
+ // sText = StripList( (*pEntry)[ sCur ] );
+ // }
+ // else
sText = StripList( (*pEntry)[ sCur ] );
if( sText == "\\\"" )
sText = "\"";
@@ -1536,7 +1536,7 @@ BOOL Export::WriteExportList( ResData *pResData, ExportList *pExportList,
sOutput += sText; sOutput += "\t\t\t\t";
sOutput += sTimeStamp;
-
+
//if( !sCur.EqualsIgnoreCaseAscii("de") ||( sCur.EqualsIgnoreCaseAscii("de") && !Export::isMergingGermanAllowed( sProject ) ) )
aOutput.WriteLine( sOutput );
@@ -1620,7 +1620,7 @@ void Export::InsertListEntry( const ByteString &rText, const ByteString &rLine )
pList = pResData->pUIEntries;
if ( !pList ) {
pResData->pUIEntries = new ExportList();
- pList = pResData->pUIEntries;
+ pList = pResData->pUIEntries;
nListIndex = 0;
}
}
@@ -1633,13 +1633,13 @@ void Export::InsertListEntry( const ByteString &rText, const ByteString &rLine )
pList->Insert( pNew, LIST_APPEND );
}
ExportListEntry *pCurEntry = pList->GetObject( nListIndex );
-
+
// For paired list use the line to set proper lid
if( nList == LIST_PAIRED ){
(*pCurEntry)[ nListLang ] = rLine;
}else
(*pCurEntry)[ nListLang ] = rText;
-
+
// Remember en-US fallback string, so each list has the same amount of elements
//if ( nListLang.EqualsIgnoreCaseAscii("en-US") ) {
if ( Export::isSourceLanguage( nListLang ) ) {
@@ -1661,7 +1661,7 @@ void Export::InsertListEntry( const ByteString &rText, const ByteString &rLine )
}
// new fallback
}
-
+
//if ( nListLang.EqualsIgnoreCaseAscii("en-US") ) {
if ( Export::isSourceLanguage( nListLang ) ) {
if( nList == LIST_PAIRED ){
@@ -1669,7 +1669,7 @@ void Export::InsertListEntry( const ByteString &rText, const ByteString &rLine )
}
else
(*pCurEntry)[ SOURCE_LANGUAGE ] = rLine;
-
+
pList->NewSourceLanguageListEntry();
}
@@ -1705,9 +1705,9 @@ void Export::CleanValue( ByteString &rValue )
/*****************************************************************************/
ByteString Export::GetText( const ByteString &rSource, int nToken )
/*****************************************************************************/
-#define TXT_STATE_NON 0x000
-#define TXT_STATE_TEXT 0x001
-#define TXT_STATE_MACRO 0x002
+#define TXT_STATE_NON 0x000
+#define TXT_STATE_TEXT 0x001
+#define TXT_STATE_MACRO 0x002
{
ByteString sReturn;
switch ( nToken ) {
@@ -1790,31 +1790,31 @@ void Export::WriteToMerged( const ByteString &rText , bool bSDFContent )
while ( sText.SearchAndReplace( " \n", "\n" ) != STRING_NOTFOUND ) {};
if( pParseQueue->bNextIsM && bSDFContent && sText.Len() > 2 ){
for( USHORT n = 0 ; n < sText.Len() ; n++ ){
- if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
+ if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
sText.Insert('\\' , n++ );
-
+
}
}
}
- else if( pParseQueue->bLastWasM && sText.Len() > 2 ){
+ else if( pParseQueue->bLastWasM && sText.Len() > 2 ){
for( USHORT n = 0 ; n < sText.Len() ; n++ ){
- if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
+ if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
sText.Insert('\\' , n++ );
}
if( sText.GetChar( n ) == '\n' )pParseQueue->bMflag=true;
}
}
- else if( pParseQueue->bCurrentIsM && bSDFContent && sText.Len() > 2 ){
+ else if( pParseQueue->bCurrentIsM && bSDFContent && sText.Len() > 2 ){
for( USHORT n = 0 ; n < sText.Len() ; n++ ){
- if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
+ if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
sText.Insert('\\' , n++ );
pParseQueue->bMflag=true;
}
}
}
- else if( pParseQueue->bMflag ){
+ else if( pParseQueue->bMflag ){
for( USHORT n = 1 ; n < sText.Len() ; n++ ){
- if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
+ if( sText.GetChar( n ) == '\n' && sText.GetChar( n-1 ) != '\\'){
sText.Insert('\\' , n++ );
}
}
@@ -1822,12 +1822,12 @@ void Export::WriteToMerged( const ByteString &rText , bool bSDFContent )
for ( USHORT i = 0; i < sText.Len(); i++ ) {
if ( sText.GetChar( i ) != '\n' ){
aOutput.Write( ByteString( sText.GetChar( i )).GetBuffer(), 1 );
-
+
}
else{
aOutput.WriteLine( ByteString());
}
-
+
}
}
}
@@ -1948,8 +1948,8 @@ BOOL Export::PrepareTextToMerge( ByteString &rText, USHORT nTyp,
//ByteString a("pCurEntry");
//Export::DumpMap( a , *pCurEntry );
rText = (*pCurEntry)[ SOURCE_LANGUAGE ];
- if( nTyp == LIST_PAIRED ){
- pResData->addMergedLanguage( nLangIndex );
+ if( nTyp == LIST_PAIRED ){
+ pResData->addMergedLanguage( nLangIndex );
}
}
}
@@ -1980,10 +1980,10 @@ BOOL Export::PrepareTextToMerge( ByteString &rText, USHORT nTyp,
sLastListLine += sTmp;
}
if ( pResData->sResTyp.EqualsIgnoreCaseAscii( "pairedlist" ) ){
- pResData->sId = GetPairedListID( sLastListLine );
+ pResData->sId = GetPairedListID( sLastListLine );
}
else pResData->sId = ByteString::CreateFromInt32( nListIndex );
-
+
if ( pResData->sGId.Len())
pResData->sGId += ".";
pResData->sGId += sOldId;
@@ -2046,7 +2046,7 @@ BOOL Export::PrepareTextToMerge( ByteString &rText, USHORT nTyp,
// search for merge data
if ( !pMergeDataFile ){
pMergeDataFile = new MergeDataFile( sMergeSrc, sFile , bErrorLog, aCharSet);//, bUTF8 );
-
+
// Init Languages
ByteString sTmp = Export::sLanguages;
if( sTmp.ToUpperAscii().Equals("ALL") )
@@ -2054,12 +2054,12 @@ BOOL Export::PrepareTextToMerge( ByteString &rText, USHORT nTyp,
else if( !isInitialized )InitLanguages();
}
-// printf("*************DUMPING****************\n");
-// printf("%s\n",pMergeDataFile->Dump().GetBuffer());
-// printf("*************DUMPING****************\n");
-
-// printf("Dumping ResData\n");
-// pResData->Dump();
+// printf("*************DUMPING****************\n");
+// printf("%s\n",pMergeDataFile->Dump().GetBuffer());
+// printf("*************DUMPING****************\n");
+
+// printf("Dumping ResData\n");
+// pResData->Dump();
PFormEntrys *pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
//printf("Dumping pEntrys\n");
//if( pEntrys ) pEntrys->Dump();
@@ -2077,7 +2077,7 @@ BOOL Export::PrepareTextToMerge( ByteString &rText, USHORT nTyp,
//if ( !sContent.Len() && ( ! nLangIndex.EqualsIgnoreCaseAscii("en-US") )) {
if ( !sContent.Len() && ( ! Export::isSourceLanguage( nLangIndex ) )) {
rText = sOrigText;
- return FALSE; // no data found
+ return FALSE; // no data found
}
//if ( nLangIndex.EqualsIgnoreCaseAscii("en-US") ) {
@@ -2111,7 +2111,7 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
if ( !pMergeDataFile ){
pMergeDataFile = new MergeDataFile( sMergeSrc, sFile ,bErrorLog, aCharSet);//, bUTF8 );
-
+
// Init Languages
ByteString sTmp = Export::sLanguages;
if( sTmp.ToUpperAscii().Equals("ALL") )
@@ -2122,10 +2122,10 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
switch ( nMode ) {
case MERGE_MODE_NORMAL : {
PFormEntrys *pEntry = pMergeDataFile->GetPFormEntrys( pResData );
-
+
bool bWriteNoSlash = false;
if ( pEntry && pResData->bText ) {
-
+
BOOL bAddSemikolon = FALSE;
BOOL bFirst = TRUE;
ByteString sCur;
@@ -2171,7 +2171,7 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
WriteToMerged( sOutput , true );
}
}
-
+
if ( bAddSemikolon ) {
ByteString sOutput( ";" );
@@ -2277,7 +2277,7 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
if ( pResData->bList ) {
//printf("Dumping ResData\n");
//pResData->Dump();
-
+
bool bPairedList = false;
ByteString sOldId = pResData->sId;
ByteString sOldGId = pResData->sGId;
@@ -2299,17 +2299,17 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
}
ByteString sCur;
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
- sCur = aLanguages[ n ];
+ sCur = aLanguages[ n ];
USHORT nIdx = 1;
-
- // Set matching pairedlist identifier
+
+ // Set matching pairedlist identifier
if( bPairedList && pResData->pPairedList && ( nIdx == 1 ) ){
ExportListEntry* pListE = ( ExportListEntry* ) pResData->pPairedList->GetObject( nIdx-1 );
pResData->sId = GetPairedListID ( (*pListE)[ SOURCE_LANGUAGE ] );
- }
+ }
else
pResData->sId = ByteString("1");
-
+
PFormEntrys *pEntrys;
ULONG nLIndex = 0;
ULONG nMaxIndex = 0;
@@ -2325,24 +2325,24 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
bText = pEntrys->GetTransex3Text( sText , STRING_TYP_TEXT, SOURCE_LANGUAGE , FALSE );
// Use fallback, if data is missing in sdf file
- //if( !bText && pResData->sResTyp.Equals( "pairedlist" ) ){
- if( !bText && bPairedList ){
- if( pResData->isMerged( sCur ) ) break;
+ //if( !bText && pResData->sResTyp.Equals( "pairedlist" ) ){
+ if( !bText && bPairedList ){
+ if( pResData->isMerged( sCur ) ) break;
const ByteString sPlist("pairedlist");
ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sGId , pResData->sId , sFilename );
bText = pResData->getFallbackData( sKey , sText );
}else if ( !bText ){// new fallback
- if( pResData->isMerged( sCur ) ) break;
+ if( pResData->isMerged( sCur ) ) break;
const ByteString sPlist("list");
ByteString sKey = MergeDataFile::CreateKey( sPlist , pResData->sGId , pResData->sId , sFilename );
bText = pResData->getFallbackData( sKey , sText );
} // new fallback
if ( bText && sText.Len()) {
- //if( pEntrys ) pEntrys->Dump();
+ //if( pEntrys ) pEntrys->Dump();
if ( nIdx == 1 ) {
ByteString sHead;
- if ( bNextMustBeDefineEOL )
+ if ( bNextMustBeDefineEOL )
sHead = "\\\n\t";
sHead += sSpace;
switch ( nT ) {
@@ -2369,7 +2369,7 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
WriteToMerged( sHead , true);
}
ByteString sLine;
- if ( pList && pList->GetObject( nLIndex ))
+ if ( pList && pList->GetObject( nLIndex ))
sLine = ( *pList->GetObject( nLIndex ))[ SOURCE_LANGUAGE ];
if ( !sLine.Len())
sLine = sLastListLine;
@@ -2387,7 +2387,7 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
USHORT nStart, nEnd;
nStart = sLine.Search( "\"" );
-
+
ByteString sPostFix;
if( !bPairedList ){
nEnd = sLine.SearchBackward( '\"' );
@@ -2417,8 +2417,8 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
sText1 += "\t";
//printf("Writing '%s'\n",sText1.GetBuffer());
WriteToMerged( sText1 ,true );
-
- // Set matching pairedlist identifier
+
+ // Set matching pairedlist identifier
if ( bPairedList ){
nIdx++;
ExportListEntry* pListE = ( ExportListEntry* ) pResData->pPairedList->GetObject( ( nIdx ) -1 );
@@ -2473,7 +2473,7 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
if ( pList )
nMaxIndex = pList->GetSourceLanguageListEntryCount();
ByteString sLine;
- if ( pList && pList->GetObject( nListIndex ))
+ if ( pList && pList->GetObject( nListIndex ))
sLine = ( *pList->GetObject( nListIndex ))[ SOURCE_LANGUAGE ];
if ( !sLine.Len())
sLine = sLastListLine;
@@ -2489,7 +2489,7 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
}
}
- while( PrepareTextToMerge( sLine, nList, nListLang, pResData ) && ( nListIndex <= nMaxIndex )) {
+ while( PrepareTextToMerge( sLine, nList, nListLang, pResData ) && ( nListIndex <= nMaxIndex )) {
ByteString sText( "\t" );
sText += sLine;
sText += " ;";
@@ -2498,7 +2498,7 @@ void Export::MergeRest( ResData *pResData, USHORT nMode )
sText += "\t";
WriteToMerged( sText ,false );
nListIndex++;
- if ( pList && pList->GetObject( nListIndex ))
+ if ( pList && pList->GetObject( nListIndex ))
sLine = ( *pList->GetObject( nListIndex ))[ SOURCE_LANGUAGE ];
if ( !sLine.Len())
sLine = sLastListLine;
@@ -2590,7 +2590,7 @@ void ParserQueue::Push( const QueueEntry& aEntry ){
aQref = aQueueCur;
aQueueCur = aQueueNext;
aQueueNext = aQref;
- }
+ }
}
}
@@ -2608,19 +2608,19 @@ void ParserQueue::Close(){
};
void ParserQueue::Pop( std::queue<QueueEntry>& aQueue ){
while( !aQueue.empty() ){
- QueueEntry aEntry = aQueue.front();
+ QueueEntry aEntry = aQueue.front();
aQueue.pop();
aExport.Execute( aEntry.nTyp , (char*) aEntry.sLine.GetBuffer() );
}
}
ParserQueue::ParserQueue( Export& aExportObj )
- :
- bCurrentIsM( false ),
- bNextIsM( false ) ,
+ :
+ bCurrentIsM( false ),
+ bNextIsM( false ) ,
bLastWasM( false ),
bMflag( false ) ,
aExport( aExportObj ) ,
- bStart( false ) ,
+ bStart( false ) ,
bStartNext( false )
{
aQueueNext = new std::queue<QueueEntry>;
diff --git a/l10ntools/source/export2.cxx b/l10ntools/source/export2.cxx
index 6369b947bff2..d35a35748f77 100644
--- a/l10ntools/source/export2.cxx
+++ b/l10ntools/source/export2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,7 +109,7 @@ void Export::DumpExportList( ByteString& sListName , ExportList& aList ){
ByteString Export::DumpMap( ByteString& sMapName , ByteStringHashMap& aMap ){
ByteStringHashMap::const_iterator idbg;
ByteString sReturn;
-
+
if( sMapName.Len() )
printf("MapName %s\n", sMapName.GetBuffer());
if( aMap.size() < 1 ) return ByteString();
@@ -129,14 +129,14 @@ void Export::SetLanguages( std::vector<ByteString> val ){
isInitialized = true;
}
/*****************************************************************************/
-std::vector<ByteString> Export::GetLanguages(){
+std::vector<ByteString> Export::GetLanguages(){
/*****************************************************************************/
- return aLanguages;
+ return aLanguages;
}
/*****************************************************************************/
-std::vector<ByteString> Export::GetForcedLanguages(){
+std::vector<ByteString> Export::GetForcedLanguages(){
/*****************************************************************************/
- return aForcedLanguages;
+ return aForcedLanguages;
}
std::vector<ByteString> Export::aLanguages = std::vector<ByteString>();
std::vector<ByteString> Export::aForcedLanguages = std::vector<ByteString>();
@@ -160,7 +160,7 @@ void Export::QuotHTMLXRM( ByteString &rString )
i++;
}
}
-
+
if ( i < rString.Len()) {
switch ( rString.GetChar( i )) {
case '<':
@@ -270,13 +270,13 @@ void Export::RemoveUTF8ByteOrderMarker( ByteString &rString ){
bool Export::hasUTF8ByteOrderMarker( const ByteString &rString ){
// Byte order marker signature
-
+
const unsigned char c1 = 0xEF;
const unsigned char c2 = 0xBB;
const unsigned char c3 = 0xBF;
const char bom[ 3 ] = { c1 , c2 , c3 };
-
+
return rString.Len() >= 3 &&
rString.GetChar( 0 ) == bom[ 0 ] &&
rString.GetChar( 1 ) == bom[ 1 ] &&
@@ -326,15 +326,15 @@ void Export::RemoveUTF8ByteOrderMarkerFromFile( const ByteString &rFilename ){
}
// Merge it into source code!
-//bool Export::isMergingGermanAllowed( const ByteString& rPrj ){
+//bool Export::isMergingGermanAllowed( const ByteString& rPrj ){
// (void) rPrj;
-// return true;
-/* static ByteStringBoolHashMap aHash;
-
+// return true;
+/* static ByteStringBoolHashMap aHash;
+
if( aHash.find( rPrj ) != aHash.end() ){
return aHash[ rPrj ];
}
-
+
ByteString sFile = Export::GetEnv( "SRC_ROOT" ) ;
sFile.Append("/");
sFile.Append( rPrj );
@@ -367,7 +367,7 @@ bool Export::CopyFile( const ByteString& source , const ByteString& dest )
fclose( IN_FILE );
return false;
}
-
+
while( fgets( buf , BUFFERSIZE , IN_FILE ) != NULL )
{
if( fputs( buf , OUT_FILE ) == EOF )
@@ -387,7 +387,7 @@ bool Export::CopyFile( const ByteString& source , const ByteString& dest )
}
fclose ( IN_FILE );
fclose ( OUT_FILE );
-
+
return true;
}
@@ -466,7 +466,7 @@ void Export::InitForcedLanguages( bool bMergeMode ){
for ( USHORT x = 0; x < sForcedLanguages.GetTokenCount( ',' ); x++ ){
sTmp = sForcedLanguages.GetToken( x, ',' ).GetToken( 0, '=' );
sTmp.EraseLeadingAndTrailingChars();
- if( bMergeMode && isAllowed( sTmp ) ){}
+ if( bMergeMode && isAllowed( sTmp ) ){}
else if( !( (sTmp.GetChar(0)=='x' || sTmp.GetChar(0)=='X') && sTmp.GetChar(1)=='-' ) )
aForcedLanguages.push_back( sTmp );
}
@@ -487,8 +487,8 @@ void Export::replaceEncoding( ByteString& rString )
for( xub_StrLen idx = 0; idx <= rString.Len()-8 ; idx++ )
{
- if( rString.GetChar( idx ) == '&' &&
- rString.GetChar( idx+1 ) == '#' &&
+ if( rString.GetChar( idx ) == '&' &&
+ rString.GetChar( idx+1 ) == '#' &&
rString.GetChar( idx+2 ) == 'x' &&
rString.GetChar( idx+7 ) == ';' )
{
@@ -502,7 +502,7 @@ void Export::replaceEncoding( ByteString& rString )
rString = sTmp;
}
}
-}
+}
/*****************************************************************************/
void Export::FillInFallbacks( ResData *pResData )
@@ -512,18 +512,18 @@ void Export::FillInFallbacks( ResData *pResData )
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
sCur = aLanguages[ n ];
if( isAllowed( sCur ) ){
- ByteString nFallbackIndex = GetFallbackLanguage( sCur );
+ ByteString nFallbackIndex = GetFallbackLanguage( sCur );
if( nFallbackIndex.Len() ){
if ( !pResData->sText[ sCur ].Len())
- pResData->sText[ sCur ] =
+ pResData->sText[ sCur ] =
pResData->sText[ nFallbackIndex ];
if ( !pResData->sHelpText[ sCur ].Len())
- pResData->sHelpText[ sCur ] =
+ pResData->sHelpText[ sCur ] =
pResData->sHelpText[ nFallbackIndex ];
if ( !pResData->sQuickHelpText[ sCur ].Len())
- pResData->sQuickHelpText[ sCur ] =
+ pResData->sQuickHelpText[ sCur ] =
pResData->sQuickHelpText[ nFallbackIndex ];
if ( !pResData->sTitle[ sCur ].Len())
@@ -533,11 +533,11 @@ void Export::FillInFallbacks( ResData *pResData )
if ( pResData->pStringList )
FillInListFallbacks(
pResData->pStringList, sCur, nFallbackIndex );
-
+
if ( pResData->pPairedList )
FillInListFallbacks(
pResData->pPairedList, sCur, nFallbackIndex );
-
+
if ( pResData->pFilterList )
FillInListFallbacks(
pResData->pFilterList, sCur, nFallbackIndex );
@@ -552,13 +552,13 @@ void Export::FillInFallbacks( ResData *pResData )
}
}
}
-}
+}
/*****************************************************************************/
void Export::FillInListFallbacks(
ExportList *pList, const ByteString &nSource, const ByteString &nFallback )
/*****************************************************************************/
-{
+{
for ( ULONG i = 0; i < pList->Count(); i++ ) {
ExportListEntry *pEntry = pList->GetObject( i );
@@ -574,10 +574,10 @@ void Export::FillInListFallbacks(
ByteString Export::GetTimeStamp()
/*****************************************************************************/
{
-// return "xx.xx.xx";
+// return "xx.xx.xx";
char buf[20];
Time aTime;
-
+
snprintf(buf, sizeof(buf), "%8d %02d:%02d:%02d", int(Date().GetDate()),
int(aTime.GetHour()), int(aTime.GetMin()), int(aTime.GetSec()));
return ByteString(buf);
@@ -672,15 +672,15 @@ void Export::getRandomName( const ByteString& sPrefix , ByteString& sRandStr , c
static sal_uInt64 value;
char buffer[RAND_NAME_LENGTH];
-
- TimeValue tv;
- sal_uInt64 v;
- int i;
+
+ TimeValue tv;
+ sal_uInt64 v;
+ int i;
osl_getSystemTime( &tv );
- oslProcessInfo proInfo;
+ oslProcessInfo proInfo;
osl_getProcessInfo( 0 , osl_Process_IDENTIFIER , &proInfo );
-
+
value += ((sal_uInt64) ( tv.Nanosec / 1000 ) << 16) ^ ( tv.Nanosec / 1000 ) ^ proInfo.Ident;
v = value;
@@ -690,7 +690,7 @@ void Export::getRandomName( const ByteString& sPrefix , ByteString& sRandStr , c
buffer[i] = LETTERS[v % COUNT_OF_LETTERS];
v /= COUNT_OF_LETTERS;
}
-
+
sRandStr.Append( buffer , RAND_NAME_LENGTH );
sRandStr.Append( sPostfix );
}
@@ -706,23 +706,23 @@ DirEntry Export::GetTempFile()
/*****************************************************************************/
{
rtl::OUString* sTempFilename = new rtl::OUString();
-
+
// Create a temp file
int nRC = osl::FileBase::createTempFile( 0 , 0 , sTempFilename );
if( nRC ) printf(" osl::FileBase::createTempFile RC = %d",nRC);
-
+
String strTmp( *sTempFilename );
-
+
INetURLObject::DecodeMechanism eMechanism = INetURLObject::DECODE_TO_IURI;
- String sDecodedStr = INetURLObject::decode( strTmp , '%' , eMechanism );
+ String sDecodedStr = INetURLObject::decode( strTmp , '%' , eMechanism );
ByteString sTmp( sDecodedStr , RTL_TEXTENCODING_UTF8 );
-
+
#if defined(WNT) || defined(OS2)
sTmp.SearchAndReplace("file:///","");
sTmp.SearchAndReplaceAll('/','\\');
#else
// Set file permission to 644
- const sal_uInt64 nPerm = osl_File_Attribute_OwnRead | osl_File_Attribute_OwnWrite |
+ const sal_uInt64 nPerm = osl_File_Attribute_OwnRead | osl_File_Attribute_OwnWrite |
osl_File_Attribute_GrpRead | osl_File_Attribute_OthRead ;
nRC = osl::File::setAttributes( *sTempFilename , nPerm );
diff --git a/l10ntools/source/file.cxx b/l10ntools/source/file.cxx
index d57c20d92c04..097d1a701c42 100644
--- a/l10ntools/source/file.cxx
+++ b/l10ntools/source/file.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
namespace transex
{
-
+
File::File( const rtl::OUString sFile )
{
sFileName = sFile;
@@ -47,9 +47,9 @@ File::File( const rtl::OUString sFullPath , const rtl::OUString sFile )
bool File::lessFile ( const File& rKey1, const File& rKey2 )
{
- rtl::OUString sName1( ( static_cast< File >( rKey1 ) ).getFileName() );
- rtl::OUString sName2( ( static_cast< File >( rKey2 ) ).getFileName() );
-
+ rtl::OUString sName1( ( static_cast< File >( rKey1 ) ).getFileName() );
+ rtl::OUString sName2( ( static_cast< File >( rKey2 ) ).getFileName() );
+
return sName1.compareTo( sName2 ) < 0 ;
}
diff --git a/l10ntools/source/filter/merge/FCFGMerge.java b/l10ntools/source/filter/merge/FCFGMerge.java
index 2c2f35b66d1b..378f7de05439 100644
--- a/l10ntools/source/filter/merge/FCFGMerge.java
+++ b/l10ntools/source/filter/merge/FCFGMerge.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/l10ntools/source/filter/merge/Merger.java b/l10ntools/source/filter/merge/Merger.java
index 3125732733f8..cb8579ff0647 100644
--- a/l10ntools/source/filter/merge/Merger.java
+++ b/l10ntools/source/filter/merge/Merger.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,7 +79,7 @@ public class Merger
private static final java.lang.String PROP_LANGUAGEPACK = "languagepack" ; // <= cmdline
private static final java.lang.String PROP_ITEMS = "items" ; // <= pkg cfg files!
-
+
//___________________________________________
// member
@@ -109,7 +109,7 @@ public class Merger
private java.util.Vector m_lFilters;
private java.util.Vector m_lLoaders;
private java.util.Vector m_lHandlers;
-
+
//___________________________________________
// interface
@@ -149,7 +149,7 @@ public class Merger
m_lTypes = new java.util.Vector();
//m_aLog.setWarning("Fragment list of types is missing. Parameter \"items\" seems to be invalid.");
}
-
+
try
{
ConfigHelper aFcfg = new ConfigHelper(m_aCfg.getString(PROP_FCFG), null);
@@ -300,10 +300,10 @@ public class Merger
m_aLog.setWarning("List of fragments is empty!? Will be ignored ...");
return;
}
-
+
java.util.Enumeration pFragments = lFragments.elements();
java.lang.String sExtXcu = m_aCfg.getString(PROP_EXTENSION_XCU);
-
+
for (int tabs=0; tabs<nPrettyTabs; ++tabs)
sBuffer.append("\t");
sBuffer.append("<node oor:name=\""+sSetName+"\">\n");
@@ -319,7 +319,7 @@ public class Merger
java.lang.String sEncoding = "UTF-8";
if (bDebug)
sEncoding = "UTF-8Special";
-
+
while(pFragments.hasMoreElements())
{
java.lang.String sFragment = (java.lang.String)pFragments.nextElement();
@@ -349,7 +349,7 @@ public class Merger
// on such errors :-)
m_aLog.setDetailedInfo("merge fragment \""+aFragment.getPath()+"\" ...");
FileHelper.readEncodedBufferFromFile(aFragment, sEncoding, sBuffer);
-
+
sBuffer.append("\n");
}
diff --git a/l10ntools/source/filter/utils/AnalyzeStartupLog.java b/l10ntools/source/filter/utils/AnalyzeStartupLog.java
index 60444338b67b..bbedca3bb700 100644
--- a/l10ntools/source/filter/utils/AnalyzeStartupLog.java
+++ b/l10ntools/source/filter/utils/AnalyzeStartupLog.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/l10ntools/source/filter/utils/Cache.java b/l10ntools/source/filter/utils/Cache.java
index f4120b2140cc..f6f0b25c22f9 100644
--- a/l10ntools/source/filter/utils/Cache.java
+++ b/l10ntools/source/filter/utils/Cache.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -372,7 +372,7 @@ public class Cache
* <li>...</li>
* </ul>
*/
-
+
System.out.println("TODO: must be adapted to java 1.3 :-(");
System.exit(-1);
//TODO_JAVA aFactory.setExpandEntityReferences(false);
@@ -2144,7 +2144,7 @@ public class Cache
java.util.HashMap lFilterUINames = (java.util.HashMap)aFilter.get(PROPNAME_UINAME);
java.util.HashMap lTypeUINames = (java.util.HashMap)aType.get(PROPNAME_UINAME);
java.util.HashMap lPatchUINames = new java.util.HashMap();
-
+
java.util.Iterator pUINames = lTypeUINames.keySet().iterator();
while(pUINames.hasNext())
{
@@ -2152,7 +2152,7 @@ public class Cache
java.lang.String sValue = (java.lang.String)lTypeUINames.get(sLocale);
lPatchUINames.put(sLocale, sValue);
}
-
+
pUINames = lFilterUINames.keySet().iterator();
while(pUINames.hasNext())
{
@@ -2161,7 +2161,7 @@ public class Cache
lPatchUINames.put(sFilter+":"+sLocale, sValue);
}
aType.put(PROPNAME_UINAME, lPatchUINames);
-
+
// set generic filter service wrapper for our own native filters!
// By the way: The format types of such filters can be detected by our
// generic detector too.
@@ -2192,11 +2192,11 @@ public class Cache
int flags1 = ((java.lang.Integer)aFilter.get(PROPNAME_FLAGS)).intValue();
java.lang.String sDocSrv = (java.lang.String)aFilter.get(PROPNAME_DOCUMENTSERVICE);
if (sDocSrv.length()>0)// without a doc service its not a real filter - its a graphic filter!
- {
+ {
boolean preferred1 = ((flags1 & FLAGVAL_PREFERRED) == FLAGVAL_PREFERRED);
if (preferred1)
lPreferredFilters.add(aFilter);
-
+
java.lang.String sAlreadyRegisteredFilter = (java.lang.String)aType.get(PROPNAME_PREFERREDFILTER);
// no registration => set this filter as "any possible one"!
if (sAlreadyRegisteredFilter.length() < 1)
@@ -2206,7 +2206,7 @@ public class Cache
java.util.HashMap aAlreadyRegisteredFilter = (java.util.HashMap)m_lFilters.get(sAlreadyRegisteredFilter);
int flags2 = ((java.lang.Integer)aAlreadyRegisteredFilter.get(PROPNAME_FLAGS)).intValue();
boolean preferred2 = ((flags2 & FLAGVAL_PREFERRED) == FLAGVAL_PREFERRED);
-
+
// two preferred filters for the same type! => error
if (preferred1 && preferred2)
{
@@ -2223,7 +2223,7 @@ public class Cache
aType.put(PROPNAME_PREFERREDFILTER, sFilter);
}
}
-
+
// create the new combined filter flag if required
if (bCreateCombineFilterFlag)
{
diff --git a/l10ntools/source/filter/utils/ConfigHelper.java b/l10ntools/source/filter/utils/ConfigHelper.java
index a357b36fc5d1..af70ef99b731 100644
--- a/l10ntools/source/filter/utils/ConfigHelper.java
+++ b/l10ntools/source/filter/utils/ConfigHelper.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -176,7 +176,7 @@ public class ConfigHelper extends java.util.Properties
throw new java.util.NoSuchElementException("The requested config value \""+sProp+"\" does not exists!");
return new java.lang.Boolean(sValue).booleanValue();
}
-
+
public synchronized boolean getBoolean(java.lang.String sProp ,
boolean bDefault)
{
diff --git a/l10ntools/source/filter/utils/FileHelper.java b/l10ntools/source/filter/utils/FileHelper.java
index 38019cf628df..94b0ee96fe61 100644
--- a/l10ntools/source/filter/utils/FileHelper.java
+++ b/l10ntools/source/filter/utils/FileHelper.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,7 +64,7 @@ public class FileHelper
{
System.out.println("TODO: must be adapted to java 1.3 :-(");
System.exit(-1);
-/*TODO_JAVA
+/*TODO_JAVA
try
{
sFileURL = aSystemPath.toURI().toURL().toString();
@@ -73,7 +73,7 @@ public class FileHelper
{
sFileURL = null;
}
-*/
+*/
java.lang.String sFileURL = null;
// problem of java: file URL's are coded with 1 slash instead of 2 or 3 ones!
@@ -143,7 +143,7 @@ public class FileHelper
{
System.out.println("TODO: must be adapted to java 1.3 :-(");
System.exit(-1);
-
+
java.lang.String sFileURL = FileHelper.getFileURLFromSystemPath(aSystemPath);
java.lang.String sBaseURL = FileHelper.getFileURLFromSystemPath(aBasePath );
@@ -260,7 +260,7 @@ public class FileHelper
public static java.lang.String convertName2FileName(String sName)
{
int i = 0;
- int nLength = sName.length();
+ int nLength = sName.length();
char[] lBuffer = sName.toCharArray();
java.lang.StringBuffer sNewName = new java.lang.StringBuffer(nLength);
@@ -403,7 +403,7 @@ public class FileHelper
FileHelper.readAndCheckUTF8File(aFile,sBuffer);
return;
}
-
+
java.io.FileInputStream aByteStream = new java.io.FileInputStream(aFile.getAbsolutePath());
java.io.InputStreamReader aEncodedReader = new java.io.InputStreamReader(aByteStream, sEncoding);
char[] aEncodedBuffer = new char[4096];
@@ -442,18 +442,18 @@ public class FileHelper
{
return (char)((nByte1*0x40000)+(nByte2*0x1000)+(nByte3*0x40)+nByte4);
}
-
+
//___________________________________________
private static int impl_readAndCheckNextByte(byte[] aBuffer ,
int nBufPos ,
int nBufLength ,
int nMinRange ,
int nMaxRange )
- throws java.lang.Exception
+ throws java.lang.Exception
{
if (nBufPos>=nBufLength)
throw new java.lang.Exception("impl_readAndCheckNextByte()\nEnd of buffer reached.");
-
+
int nByte = aBuffer[nBufPos] & 0xFF;
if (
(nByte < nMinRange) ||
@@ -462,14 +462,14 @@ public class FileHelper
{
throw new java.lang.Exception("impl_readAndCheckNextByte()\nByte does not fit the specified range.");
}
-
+
return nByte;
}
-
+
//___________________________________________
public static void readAndCheckUTF8File(java.io.File aFile ,
java.lang.StringBuffer sBuffer)
- throws java.io.IOException
+ throws java.io.IOException
{
java.io.FileInputStream aByteStream = new java.io.FileInputStream(aFile.getAbsolutePath());
byte[] aBuffer = new byte[4096];
@@ -510,7 +510,7 @@ public class FileHelper
nByte_1 = nByteOrg_1;
/*
Table 3-6. Well-Formed UTF-8 Byte Sequences
-
+
============================================================================
Nr. Code Points 1st Byte 2nd Byte 3rd Byte 4th Byte
============================================================================
@@ -698,26 +698,26 @@ public class FileHelper
// <- DEBUG !
}
}
-
+
}
catch(java.lang.Throwable ex)
{
// -> DEBUG !
FileHelper.logEncodingData(sLog, nUTF8, nByteOrg_1, nByteOrg_2, nByteOrg_3, nByteOrg_4, nByte_1, nByte_2, nByte_3, nByte_4, nEncodingType);
-
+
java.io.File aDir = new java.io.File(aFile.getParent());
java.lang.String sDump = aFile.getName();
java.io.File aDump = FileHelper.createUniqueFile(aDir, sDump, "dump");
FileHelper.writeEncodedBufferToFile(aDump, "UTF-8", false, sLog);
// <- DEBUG !
-
+
java.lang.String sMsg = "File '"+aFile.getPath()+"' is not encoded right as UTF-8.";
throw new java.io.IOException(sMsg);
}
-
+
aByteStream.close();
}
-
+
//___________________________________________
/** writes the given string buffer into the specified file
@@ -753,10 +753,10 @@ public class FileHelper
java.lang.String sTemp = sBuffer.toString();
aEncodedWriter.write(sTemp, 0, sTemp.length());
-
+
aEncodedWriter.flush();
aEncodedWriter.close();
-
+
if (!aFile.exists())
throw new java.io.IOException("File \""+aFile.getAbsolutePath()+"\" not written correctly.");
}
diff --git a/l10ntools/source/filter/utils/Logger.java b/l10ntools/source/filter/utils/Logger.java
index 2d5ed631cd69..4c3112eabd6c 100644
--- a/l10ntools/source/filter/utils/Logger.java
+++ b/l10ntools/source/filter/utils/Logger.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/l10ntools/source/filter/utils/MalformedCommandLineException.java b/l10ntools/source/filter/utils/MalformedCommandLineException.java
index e4ea0f95d99c..601e2d152572 100644
--- a/l10ntools/source/filter/utils/MalformedCommandLineException.java
+++ b/l10ntools/source/filter/utils/MalformedCommandLineException.java
@@ -1,7 +1,7 @@
/*_***********************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/l10ntools/source/filter/utils/XMLHelper.java b/l10ntools/source/filter/utils/XMLHelper.java
index 175d04ebacef..8a262e374bfa 100644
--- a/l10ntools/source/filter/utils/XMLHelper.java
+++ b/l10ntools/source/filter/utils/XMLHelper.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -766,7 +766,7 @@ public class XMLHelper
* @param sPackage
* name of the configuration package.
*
- * @param bLanguagepack
+ * @param bLanguagepack
* force creation of a special header,
* which is needed for language packs only.
*
@@ -811,7 +811,7 @@ public class XMLHelper
sHeader.append(sPackage);
sHeader.append("\">\n");
}
-
+
return sHeader.toString();
}
diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx
index 28f9831cc076..8807c301c9b2 100644
--- a/l10ntools/source/gsicheck.cxx
+++ b/l10ntools/source/gsicheck.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -198,7 +198,7 @@ GSILine::GSILine( const ByteString &rLine, ULONG nLine )
}
if ( nPos != STRING_NOTFOUND )
{
-// ByteString aStatus = sTmp.Copy( nStart, nPos - nStart ); // ext int ...
+// ByteString aStatus = sTmp.Copy( nStart, nPos - nStart ); // ext int ...
nStart = nPos + 4; // + length of the delemiter
}
if ( nPos != STRING_NOTFOUND )
@@ -277,7 +277,7 @@ void GSILine::ReassembleLine()
else
PrintError( "Cannot reassemble GSI line (internal Error).", "Line format", "", FALSE, GetLineNumber(), GetUniqId() );
}
- else
+ else
PrintError( "Cannot reassemble line of unknown type (internal Error).", "Line format", "", FALSE, GetLineNumber(), GetUniqId() );
}
@@ -453,7 +453,7 @@ BOOL GSIBlock::IsUTF8( const ByteString &aTestee, BOOL bFixTags, USHORT &nErrorP
nAfterID = nAfterID + aDelimiter.Len();
}
else if ( ( aID.GetChar(6) == '*' ) && aID.Equals( aDelimiter, 7, aDelimiter.Len() ) )
- { // New KeyId 6 Letters, digits and spechial chars followed by '*delimiter' to indicate translation in progress
+ { // New KeyId 6 Letters, digits and spechial chars followed by '*delimiter' to indicate translation in progress
bNewId = TRUE;
nErrorPos = 1;
aID = aID.Copy( 0, 6 );
@@ -461,7 +461,7 @@ BOOL GSIBlock::IsUTF8( const ByteString &aTestee, BOOL bFixTags, USHORT &nErrorP
nAfterID = nAfterID + aDelimiter.Len();
}
else if ( aID.GetTokenCount( '.' ) > 1 )
- { // test for old KeyIDs 5 to 6 digits followed by a dot '44373.'
+ { // test for old KeyIDs 5 to 6 digits followed by a dot '44373.'
bNewId = FALSE;
nErrorPos = 1;
aID = aID.GetToken( 0, '.' );
@@ -1108,7 +1108,7 @@ int _cdecl main( int argc, char *argv[] )
}
if ( pReferenceLine->GetLineFormat() != FORMAT_UNKNOWN )
{
- if ( pReferenceLine->GetUniqId() == aId && pReferenceLine->GetLanguageId().Equals( aSourceLang ) )
+ if ( pReferenceLine->GetUniqId() == aId && pReferenceLine->GetLanguageId().Equals( aSourceLang ) )
{
pBlock->SetReferenceLine( pReferenceLine );
pReferenceLine = NULL;
@@ -1116,7 +1116,7 @@ int _cdecl main( int argc, char *argv[] )
else if ( pReferenceLine->GetUniqId() > aId )
{
// if ( pGSILine->GetLanguageId() == aSourceLang )
-// PrintError( "No reference line found. Entry is new in source file", "File format", "", bPrintContext, pGSILine->GetLineNumber(), aId );
+// PrintError( "No reference line found. Entry is new in source file", "File format", "", bPrintContext, pGSILine->GetLineNumber(), aId );
bContinueSearching = FALSE;
}
else
diff --git a/l10ntools/source/gsiconv.cxx b/l10ntools/source/gsiconv.cxx
index f06104175c0d..4a7825480764 100644
--- a/l10ntools/source/gsiconv.cxx
+++ b/l10ntools/source/gsiconv.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,9 +35,9 @@
// local includes
#include "utf8conv.hxx"
-#define GSI_FILE_UNKNOWN 0x0000
-#define GSI_FILE_OLDSTYLE 0x0001
-#define GSI_FILE_L10NFRAMEWORK 0x0002
+#define GSI_FILE_UNKNOWN 0x0000
+#define GSI_FILE_OLDSTYLE 0x0001
+#define GSI_FILE_L10NFRAMEWORK 0x0002
/*****************************************************************************/
USHORT GetGSIFileType( SvStream &rStream )
@@ -110,7 +110,7 @@ ByteString GetGSILineLangId( const ByteString &rLine, USHORT nFileType )
/*****************************************************************************/
void ConvertGSILine( BOOL bToUTF8, ByteString &rLine,
- rtl_TextEncoding nEncoding, USHORT nFileType )
+ rtl_TextEncoding nEncoding, USHORT nFileType )
/*****************************************************************************/
{
switch ( nFileType ) {
@@ -315,19 +315,19 @@ int _cdecl main( int argc, char *argv[] )
ByteString sCharset( argv[ 3 ] );
sCharset.ToUpperAscii();
- if ( sCharset == "MS_932" ) nEncoding = RTL_TEXTENCODING_MS_932;
- else if ( sCharset == "MS_936" ) nEncoding = RTL_TEXTENCODING_MS_936;
- else if ( sCharset == "MS_949" ) nEncoding = RTL_TEXTENCODING_MS_949;
- else if ( sCharset == "MS_950" ) nEncoding = RTL_TEXTENCODING_MS_950;
- else if ( sCharset == "MS_1250" ) nEncoding = RTL_TEXTENCODING_MS_1250;
- else if ( sCharset == "MS_1251" ) nEncoding = RTL_TEXTENCODING_MS_1251;
- else if ( sCharset == "MS_1252" ) nEncoding = RTL_TEXTENCODING_MS_1252;
- else if ( sCharset == "MS_1253" ) nEncoding = RTL_TEXTENCODING_MS_1253;
- else if ( sCharset == "MS_1254" ) nEncoding = RTL_TEXTENCODING_MS_1254;
- else if ( sCharset == "MS_1255" ) nEncoding = RTL_TEXTENCODING_MS_1255;
- else if ( sCharset == "MS_1256" ) nEncoding = RTL_TEXTENCODING_MS_1256;
- else if ( sCharset == "MS_1257" ) nEncoding = RTL_TEXTENCODING_MS_1257;
- else if ( sCharset == "UTF8" ) nEncoding = RTL_TEXTENCODING_UTF8;
+ if ( sCharset == "MS_932" ) nEncoding = RTL_TEXTENCODING_MS_932;
+ else if ( sCharset == "MS_936" ) nEncoding = RTL_TEXTENCODING_MS_936;
+ else if ( sCharset == "MS_949" ) nEncoding = RTL_TEXTENCODING_MS_949;
+ else if ( sCharset == "MS_950" ) nEncoding = RTL_TEXTENCODING_MS_950;
+ else if ( sCharset == "MS_1250" ) nEncoding = RTL_TEXTENCODING_MS_1250;
+ else if ( sCharset == "MS_1251" ) nEncoding = RTL_TEXTENCODING_MS_1251;
+ else if ( sCharset == "MS_1252" ) nEncoding = RTL_TEXTENCODING_MS_1252;
+ else if ( sCharset == "MS_1253" ) nEncoding = RTL_TEXTENCODING_MS_1253;
+ else if ( sCharset == "MS_1254" ) nEncoding = RTL_TEXTENCODING_MS_1254;
+ else if ( sCharset == "MS_1255" ) nEncoding = RTL_TEXTENCODING_MS_1255;
+ else if ( sCharset == "MS_1256" ) nEncoding = RTL_TEXTENCODING_MS_1256;
+ else if ( sCharset == "MS_1257" ) nEncoding = RTL_TEXTENCODING_MS_1257;
+ else if ( sCharset == "UTF8" ) nEncoding = RTL_TEXTENCODING_UTF8;
else {
Help();
diff --git a/l10ntools/source/help/HelpCompiler.cxx b/l10ntools/source/help/HelpCompiler.cxx
index 277e9d00f9e7..9ab709e761e2 100644
--- a/l10ntools/source/help/HelpCompiler.cxx
+++ b/l10ntools/source/help/HelpCompiler.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,8 +50,8 @@ static void impl_sleep( sal_uInt32 nSec )
osl::Thread::wait( aTime );
}
-HelpCompiler::HelpCompiler(StreamTable &in_streamTable, const fs::path &in_inputFile,
- const fs::path &in_src, const fs::path &in_resEmbStylesheet,
+HelpCompiler::HelpCompiler(StreamTable &in_streamTable, const fs::path &in_inputFile,
+ const fs::path &in_src, const fs::path &in_resEmbStylesheet,
const std::string &in_module, const std::string &in_lang, bool in_bExtensionMode)
: streamTable(in_streamTable), inputFile(in_inputFile),
src(in_src), module(in_module), lang(in_lang), resEmbStylesheet(in_resEmbStylesheet),
@@ -60,7 +60,7 @@ HelpCompiler::HelpCompiler(StreamTable &in_streamTable, const fs::path &in_input
xmlKeepBlanksDefaultValue = 0;
}
-xmlDocPtr HelpCompiler::getSourceDocument(const fs::path &filePath)
+xmlDocPtr HelpCompiler::getSourceDocument(const fs::path &filePath)
{
static const char *params[4 + 1];
static xsltStylesheetPtr cur = NULL;
@@ -80,7 +80,7 @@ xmlDocPtr HelpCompiler::getSourceDocument(const fs::path &filePath)
{
static std::string fsroot('\'' + src.toUTF8() + '\'');
static std::string esclang('\'' + lang + '\'');
-
+
xmlSubstituteEntitiesDefault(1);
xmlLoadExtDtdDefaultValue = 1;
cur = xsltParseStylesheetFile((const xmlChar *)resEmbStylesheet.native_file_string().c_str());
@@ -158,7 +158,7 @@ xmlNodePtr HelpCompiler::clone(xmlNodePtr node, const std::string& appl)
while (n != NULL)
{
bool isappl = false;
- if ( (!strcmp((const char*)n->name, "switchinline")) ||
+ if ( (!strcmp((const char*)n->name, "switchinline")) ||
(!strcmp((const char*)n->name, "switch")) )
{
xmlChar *select = xmlGetProp(n, (xmlChar*)"select");
@@ -172,7 +172,7 @@ xmlNodePtr HelpCompiler::clone(xmlNodePtr node, const std::string& appl)
if (isappl)
{
xmlNodePtr caseNode = n->xmlChildrenNode;
- if (appl == "DEFAULT")
+ if (appl == "DEFAULT")
{
while (caseNode)
{
@@ -240,7 +240,7 @@ public:
private:
HashSet extendedHelpText;
public:
- myparser(const std::string &indocumentId, const std::string &infileName,
+ myparser(const std::string &indocumentId, const std::string &infileName,
const std::string &intitle) : documentId(indocumentId), fileName(infileName),
title(intitle)
{
@@ -295,7 +295,7 @@ void myparser::traverse( xmlNodePtr parentNode )
xmlNodePtr test ;
for (test = parentNode->xmlChildrenNode; test; test = test->next)
{
- if (fileName.empty() && !strcmp((const char*)test->name, "filename"))
+ if (fileName.empty() && !strcmp((const char*)test->name, "filename"))
{
xmlNodePtr node = test->xmlChildrenNode;
if (xmlNodeIsText(node))
@@ -339,7 +339,7 @@ void myparser::traverse( xmlNodePtr parentNode )
else
continue;
}
- else if (branch.compare("index") == 0)
+ else if (branch.compare("index") == 0)
{
LinkedList ll;
@@ -354,7 +354,7 @@ void myparser::traverse( xmlNodePtr parentNode )
{
embedded = std::string((const char*)embeddedxml);
xmlFree (embeddedxml);
- std::transform (embedded.begin(), embedded.end(),
+ std::transform (embedded.begin(), embedded.end(),
embedded.begin(), tolower);
}
@@ -379,7 +379,7 @@ void myparser::traverse( xmlNodePtr parentNode )
if (!ll.empty())
(*keywords)[anchor] = ll;
}
- else if (branch.compare("contents") == 0)
+ else if (branch.compare("contents") == 0)
{
// currently not used
}
@@ -483,7 +483,7 @@ bool HelpCompiler::compile( void ) throw( HelpProcessingException )
<< "\" in file" << src.native_file_string().c_str() << std::endl;
throw HelpProcessingException( HELPPROCESSING_GENERAL_ERROR, aStrStream.str() );
}
-
+
} // end iteration over all applications
streamTable.document_id = documentId;
@@ -522,8 +522,8 @@ namespace fs
void create_directory(const fs::path indexDirName)
{
HCDBG(
- std::cerr << "creating " <<
- rtl::OUStringToOString(indexDirName.data, RTL_TEXTENCODING_UTF8).getStr()
+ std::cerr << "creating " <<
+ rtl::OUStringToOString(indexDirName.data, RTL_TEXTENCODING_UTF8).getStr()
<< std::endl
);
osl::Directory::createPath(indexDirName.data);
@@ -561,7 +561,7 @@ namespace fs
osl::FileStatus aStatus(osl_FileStatus_Mask_FileName | osl_FileStatus_Mask_Attributes);
while (aDir.getNextItem(aItem) == ::osl::FileBase::E_None)
{
- if (osl::FileBase::E_None == aItem.getFileStatus(aStatus) &&
+ if (osl::FileBase::E_None == aItem.getFileStatus(aStatus) &&
aStatus.isValid(osl_FileStatus_Mask_FileName | osl_FileStatus_Mask_Attributes))
{
rtl::OUString suFilename = aStatus.getFileName();
@@ -569,7 +569,7 @@ namespace fs
suFullFileURL += _suDirURL;
suFullFileURL += rtl::OUString::createFromAscii("/");
suFullFileURL += suFilename;
-
+
if (aStatus.getFileType() == osl::FileStatus::Directory)
removeRecursive(suFullFileURL);
else
diff --git a/l10ntools/source/help/HelpCompiler.hxx b/l10ntools/source/help/HelpCompiler.hxx
index 81b5bde0b182..7328aa554b64 100644
--- a/l10ntools/source/help/HelpCompiler.hxx
+++ b/l10ntools/source/help/HelpCompiler.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -113,13 +113,13 @@ namespace fs
path operator/(const std::string &in) const
{
path ret(*this);
- HCDBG(std::cerr << "orig was " <<
+ HCDBG(std::cerr << "orig was " <<
rtl::OUStringToOString(ret.data, RTL_TEXTENCODING_UTF8).getStr() << std::endl);
rtl::OString tmp(in.c_str());
rtl::OUString ustrSystemPath(rtl::OStringToOUString(tmp, getThreadTextEncoding()));
ret.data += rtl::OUString(sal_Unicode('/'));
ret.data += ustrSystemPath;
- HCDBG(std::cerr << "final is " <<
+ HCDBG(std::cerr << "final is " <<
rtl::OUStringToOString(ret.data, RTL_TEXTENCODING_UTF8).getStr() << std::endl);
return ret;
}
@@ -239,26 +239,26 @@ public:
Stringtable *default_helptexts;
xmlDocPtr default_doc;
- StreamTable() :
- appl_hidlist(NULL), appl_keywords(NULL), appl_helptexts(NULL), appl_doc(NULL),
- default_hidlist(NULL), default_keywords(NULL), default_helptexts(NULL), default_doc(NULL)
+ StreamTable() :
+ appl_hidlist(NULL), appl_keywords(NULL), appl_helptexts(NULL), appl_doc(NULL),
+ default_hidlist(NULL), default_keywords(NULL), default_helptexts(NULL), default_doc(NULL)
{}
void dropdefault()
{
delete default_hidlist;
delete default_keywords;
delete default_helptexts;
- if (default_doc) xmlFreeDoc(default_doc);
+ if (default_doc) xmlFreeDoc(default_doc);
}
void dropappl()
{
delete appl_hidlist;
delete appl_keywords;
delete appl_helptexts;
- if (appl_doc) xmlFreeDoc(appl_doc);
+ if (appl_doc) xmlFreeDoc(appl_doc);
}
~StreamTable()
- {
+ {
dropappl();
dropdefault();
}
@@ -266,10 +266,10 @@ public:
struct HelpProcessingException
{
- HelpProcessingErrorClass m_eErrorClass;
- std::string m_aErrorMsg;
- std::string m_aXMLParsingFile;
- int m_nXMLParsingLine;
+ HelpProcessingErrorClass m_eErrorClass;
+ std::string m_aErrorMsg;
+ std::string m_aXMLParsingFile;
+ int m_nXMLParsingLine;
HelpProcessingException( HelpProcessingErrorClass eErrorClass, const std::string& aErrorMsg )
: m_eErrorClass( eErrorClass )
@@ -285,7 +285,7 @@ struct HelpProcessingException
class HelpCompiler
{
-public:
+public:
HelpCompiler(StreamTable &streamTable,
const fs::path &in_inputFile,
const fs::path &in_src,
@@ -294,7 +294,7 @@ public:
const std::string &in_lang,
bool in_bExtensionMode);
bool compile( void ) throw (HelpProcessingException);
- void addEntryToJarFile(const std::string &prefix,
+ void addEntryToJarFile(const std::string &prefix,
const std::string &entryName, const std::string &bytesToAdd);
void addEntryToJarFile(const std::string &prefix,
const std::string &entryName, const HashSet &bytesToAdd);
diff --git a/l10ntools/source/help/HelpFileDocument.java b/l10ntools/source/help/HelpFileDocument.java
index 15e62d6c6c52..2396be650c8a 100644
--- a/l10ntools/source/help/HelpFileDocument.java
+++ b/l10ntools/source/help/HelpFileDocument.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,14 +54,14 @@ public class HelpFileDocument
}
return aReader;
}
-
+
/** Makes a document for a File.
*/
public static Document Document( String aModule, File aCaptionFile, File aContentFile )
throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException {
Document doc = new Document();
- // Add the path of the file as a field named "path". Use a field that is
+ // Add the path of the file as a field named "path". Use a field that is
// indexed (i.e. searchable), but don't tokenize the field into words.
File aFile = aCaptionFile != null ? aCaptionFile : aContentFile;
if( aFile != null )
@@ -69,7 +69,7 @@ public class HelpFileDocument
String aPath = "#HLP#" + aModule + "/" + aFile.getName();
doc.add(new Field("path", aPath, Field.Store.YES, Field.Index.UN_TOKENIZED));
}
-
+
// Add the caption of the file to a field named "caption". Specify a Reader,
// so that the text of the file is tokenized and indexed, but not stored.
doc.add( new Field( "caption", getReaderForFile( aCaptionFile ) ) );
@@ -77,7 +77,7 @@ public class HelpFileDocument
// Add the contents of the file to a field named "content". Specify a Reader,
// so that the text of the file is tokenized and indexed, but not stored.
doc.add( new Field( "content", getReaderForFile( aContentFile ) ) );
-
+
// return the document
return doc;
}
diff --git a/l10ntools/source/help/HelpLinker.cxx b/l10ntools/source/help/HelpLinker.cxx
index 9a9bfd4d1bbb..7d88db50db10 100644
--- a/l10ntools/source/help/HelpLinker.cxx
+++ b/l10ntools/source/help/HelpLinker.cxx
@@ -55,13 +55,13 @@
class IndexerPreProcessor
{
private:
- std::string m_aModuleName;
- fs::path m_fsIndexBaseDir;
- fs::path m_fsCaptionFilesDirName;
- fs::path m_fsContentFilesDirName;
+ std::string m_aModuleName;
+ fs::path m_fsIndexBaseDir;
+ fs::path m_fsCaptionFilesDirName;
+ fs::path m_fsContentFilesDirName;
- xsltStylesheetPtr m_xsltStylesheetPtrCaption;
- xsltStylesheetPtr m_xsltStylesheetPtrContent;
+ xsltStylesheetPtr m_xsltStylesheetPtrCaption;
+ xsltStylesheetPtr m_xsltStylesheetPtrContent;
public:
IndexerPreProcessor( const std::string& aModuleName, const fs::path& fsIndexBaseDir,
@@ -250,7 +250,7 @@ class HelpLinker
{
public:
void main(std::vector<std::string> &args,
-// std::string* pExtensionPath = NULL, const rtl::OUString* pOfficeHelpPath = NULL )
+// std::string* pExtensionPath = NULL, const rtl::OUString* pOfficeHelpPath = NULL )
std::string* pExtensionPath = NULL,
std::string* pDestination = NULL,
const rtl::OUString* pOfficeHelpPath = NULL )
@@ -683,7 +683,7 @@ void HelpLinker::link() throw( HelpProcessingException )
if( !bExtensionMode )
std::cout << std::endl;
- } // try
+ } // try
catch( HelpProcessingException& )
{
// catch HelpProcessingException to avoid locking data bases
diff --git a/l10ntools/source/help/compilehelp.hxx b/l10ntools/source/help/compilehelp.hxx
index b81ddfbdadf2..49353388e04f 100644
--- a/l10ntools/source/help/compilehelp.hxx
+++ b/l10ntools/source/help/compilehelp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,17 +43,17 @@
enum HelpProcessingErrorClass
{
HELPPROCESSING_NO_ERROR,
- HELPPROCESSING_GENERAL_ERROR, // Missing files, options etc.
- HELPPROCESSING_INTERNAL_ERROR, // Unexpected problems
- HELPPROCESSING_XMLPARSING_ERROR // Errors thrown by libxml
+ HELPPROCESSING_GENERAL_ERROR, // Missing files, options etc.
+ HELPPROCESSING_INTERNAL_ERROR, // Unexpected problems
+ HELPPROCESSING_XMLPARSING_ERROR // Errors thrown by libxml
};
struct HelpProcessingErrorInfo
{
- HelpProcessingErrorClass m_eErrorClass;
- rtl::OUString m_aErrorMsg;
- rtl::OUString m_aXMLParsingFile;
- sal_Int32 m_nXMLParsingLine;
+ HelpProcessingErrorClass m_eErrorClass;
+ rtl::OUString m_aErrorMsg;
+ rtl::OUString m_aXMLParsingFile;
+ sal_Int32 m_nXMLParsingLine;
HelpProcessingErrorInfo( void )
: m_eErrorClass( HELPPROCESSING_NO_ERROR )
diff --git a/l10ntools/source/helpex.cxx b/l10ntools/source/helpex.cxx
index abe5acd41024..753fbff995be 100644
--- a/l10ntools/source/helpex.cxx
+++ b/l10ntools/source/helpex.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,18 +35,18 @@
#include "helpmerge.hxx"
// defines to parse command line
-#define STATE_NON 0x0001
-#define STATE_INPUT 0x0002
-#define STATE_OUTPUT 0x0003
-#define STATE_PRJ 0x0004
-#define STATE_ROOT 0x0005
-#define STATE_SDFFILE 0x0006
-#define STATE_ERRORLOG 0x0007
-#define STATE_BREAKHELP 0x0008
-#define STATE_UNMERGE 0x0009
-#define STATE_UTF8 0x000A
-#define STATE_LANGUAGES 0x000B
-#define STATE_FORCE_LANGUAGES 0x000C
+#define STATE_NON 0x0001
+#define STATE_INPUT 0x0002
+#define STATE_OUTPUT 0x0003
+#define STATE_PRJ 0x0004
+#define STATE_ROOT 0x0005
+#define STATE_SDFFILE 0x0006
+#define STATE_ERRORLOG 0x0007
+#define STATE_BREAKHELP 0x0008
+#define STATE_UNMERGE 0x0009
+#define STATE_UTF8 0x000A
+#define STATE_LANGUAGES 0x000B
+#define STATE_FORCE_LANGUAGES 0x000C
#define STATE_OUTPUTX 0xfe
#define STATE_OUTPUTY 0xff
@@ -97,9 +97,9 @@ BOOL ParseCommandLine( int argc, char* argv[])
nState = STATE_PRJ; // next token specifies the cur. project
}
else if ( ByteString( argv[ i ]).ToUpperAscii() == "-LF" ) {
- nState = STATE_FORCE_LANGUAGES;
+ nState = STATE_FORCE_LANGUAGES;
}
-
+
else if ( ByteString( argv[ i ]).ToUpperAscii() == "-R" ) {
nState = STATE_ROOT; // next token specifies path to project root
}
@@ -124,7 +124,7 @@ BOOL ParseCommandLine( int argc, char* argv[])
else {
switch ( nState ) {
case STATE_NON: {
- return FALSE; // no valid command line
+ return FALSE; // no valid command line
}
//break;
case STATE_INPUT: {
@@ -146,7 +146,7 @@ BOOL ParseCommandLine( int argc, char* argv[])
break;
case STATE_PRJ: {
sPrj = argv[ i ];
-// sPrj.ToLowerAscii(); // the project
+// sPrj.ToLowerAscii(); // the project
}
break;
case STATE_ROOT: {
@@ -217,19 +217,19 @@ int _cdecl main( int argc, char *argv[] )
//sal_uInt32 startfull = Export::startMessure();
bool hasInputList = sInputFile.GetBuffer()[0]=='@';
-// printf("x = %s , y = %s , o = %s\n", sOutputFileX.GetBuffer(), sOutputFileY.GetBuffer() , sOutputFile.GetBuffer() );
+// printf("x = %s , y = %s , o = %s\n", sOutputFileX.GetBuffer(), sOutputFileY.GetBuffer() , sOutputFile.GetBuffer() );
bool hasNoError = true;
-
+
if ( sOutputFile.Len() ){ // Merge single file ?
//printf("DBG: Inputfile = %s\n",sInputFile.GetBuffer());
HelpParser aParser( sInputFile, bUTF8 , false );
-
+
if ( bMergeMode )
{
-
+
//sal_uInt64 startreadloc = Export::startMessure();
- MergeDataFile aMergeDataFile( sSDFFile, sInputFile , FALSE, RTL_TEXTENCODING_MS_1252 );
- //MergeDataFile aMergeDataFile( sSDFFile, sInputFile , FALSE, RTL_TEXTENCODING_MS_1252, false );
+ MergeDataFile aMergeDataFile( sSDFFile, sInputFile , FALSE, RTL_TEXTENCODING_MS_1252 );
+ //MergeDataFile aMergeDataFile( sSDFFile, sInputFile , FALSE, RTL_TEXTENCODING_MS_1252, false );
//Export::stopMessure( ByteString("read localize.sdf") , startreadloc );
hasNoError = aParser.Merge( sSDFFile, sOutputFile , Export::sLanguages , aMergeDataFile );
@@ -238,14 +238,14 @@ int _cdecl main( int argc, char *argv[] )
hasNoError = aParser.CreateSDF( sOutputFile, sPrj, sPrjRoot, sInputFile, new XMLFile( '0' ), "help" );
}else if ( sOutputFileX.Len() && sOutputFileY.Len() && hasInputList ) { // Merge multiple files ?
if ( bMergeMode ){
-
+
ifstream aFStream( sInputFile.Copy( 1 , sInputFile.Len() ).GetBuffer() , ios::in );
-
+
if( !aFStream ){
cerr << "ERROR: - helpex - Can't open the file " << sInputFile.Copy( 1 , sInputFile.Len() ).GetBuffer() << "\n";
exit(-1);
}
-
+
vector<ByteString> filelist;
rtl::OStringBuffer filename;
sal_Char aChar;
@@ -256,24 +256,24 @@ int _cdecl main( int argc, char *argv[] )
else
filename.append( aChar );
}
- if( filename.getLength() > 0 )
+ if( filename.getLength() > 0 )
filelist.push_back( ByteString ( filename.makeStringAndClear().getStr() ) );
-
+
aFStream.close();
ByteString sHelpFile(""); // dummy
//MergeDataFile aMergeDataFile( sSDFFile, sHelpFile , FALSE, RTL_TEXTENCODING_MS_1252, false );
- MergeDataFile aMergeDataFile( sSDFFile, sHelpFile , FALSE, RTL_TEXTENCODING_MS_1252 );
+ MergeDataFile aMergeDataFile( sSDFFile, sHelpFile , FALSE, RTL_TEXTENCODING_MS_1252 );
//aMergeDataFile.Dump();
std::vector<ByteString> aLanguages;
HelpParser::parse_languages( aLanguages , aMergeDataFile );
-
+
bool bCreateDir = true;
for( vector<ByteString>::iterator pos = filelist.begin() ; pos != filelist.end() ; ++pos )
{
- sHelpFile = *pos;
+ sHelpFile = *pos;
cout << ".";cout.flush();
-
+
HelpParser aParser( sHelpFile , bUTF8 , true );
hasNoError = aParser.Merge( sSDFFile , sOutputFileX , sOutputFileY , true , aLanguages , aMergeDataFile , bCreateDir );
bCreateDir = false;
@@ -281,11 +281,11 @@ int _cdecl main( int argc, char *argv[] )
}
} else
cerr << "helpex ERROR: Wrong input parameters!\n";
-
+
//Export::stopMessure( ByteString("full cycle") , startfull );
if( hasNoError )
return 0;
- else
+ else
return 1;
}
#endif
diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx
index 67bc2b856b6b..7ac3db78c25c 100644
--- a/l10ntools/source/helpmerge.cxx
+++ b/l10ntools/source/helpmerge.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -123,14 +123,14 @@ bool HelpParser::CreateSDF(
const ByteString &rSDFFile_in, const ByteString &rPrj_in,const ByteString &rRoot_in,
const ByteString &sHelpFile, XMLFile *pXmlFile, const ByteString &rGsi1){
// GSI File constants
- static const String GSI_SEQUENCE1( String::CreateFromAscii("\t0\t") );
- static const String GSI_SEQUENCE2( String::CreateFromAscii("\t\t\t0\t") );
- static const String GSI_TAB ( String::CreateFromAscii("\t") );
- static const String GSI_SEQUENCE4( String::CreateFromAscii("\t\t\t\t") );
- static const String ret ( String::CreateFromAscii("\n") );
- static const String ret_char ( String::CreateFromAscii("") );
- static const String tab ( String::CreateFromAscii("\t") );
- static const String tab_char ( String::CreateFromAscii("") );
+ static const String GSI_SEQUENCE1( String::CreateFromAscii("\t0\t") );
+ static const String GSI_SEQUENCE2( String::CreateFromAscii("\t\t\t0\t") );
+ static const String GSI_TAB ( String::CreateFromAscii("\t") );
+ static const String GSI_SEQUENCE4( String::CreateFromAscii("\t\t\t\t") );
+ static const String ret ( String::CreateFromAscii("\n") );
+ static const String ret_char ( String::CreateFromAscii("") );
+ static const String tab ( String::CreateFromAscii("\t") );
+ static const String tab_char ( String::CreateFromAscii("") );
SimpleXMLParser aParser;
String sUsedTempFile;
@@ -159,7 +159,7 @@ bool HelpParser::CreateSDF(
String strFullPath( fullFilePath.GetBuffer() , RTL_TEXTENCODING_ASCII_US );
- //printf( "%s\n", fullFilePath.GetBuffer() );
+ //printf( "%s\n", fullFilePath.GetBuffer() );
std::auto_ptr <XMLFile> file ( aParser.Execute( strFullPath , sXmlFile, pXmlFile ) );
if(file.get() == NULL){
@@ -216,7 +216,7 @@ bool HelpParser::CreateSDF(
FillInFallbacks( *pElem , sCur );
}
pXMLElement = (*pElem)[ sCur ];
-
+
if( pXMLElement != NULL )
{
OUString data = pXMLElement->ToOUString();
@@ -226,22 +226,22 @@ bool HelpParser::CreateSDF(
data = OUString( sTmp );
sBuffer.append( sOUPrj );
- sBuffer.append( GSI_TAB ); //"\t";
+ sBuffer.append( GSI_TAB ); //"\t";
if ( rRoot_in.Len())
sBuffer.append( sOUActFileName );
- sBuffer.append( GSI_SEQUENCE1 ); //"\t0\t";
- sBuffer.append( sOUGsi1 ); //"help";
+ sBuffer.append( GSI_SEQUENCE1 ); //"\t0\t";
+ sBuffer.append( sOUGsi1 ); //"help";
sBuffer.append( GSI_TAB ); //"\t";
- ByteString sID = posm->first; // ID
+ ByteString sID = posm->first; // ID
sBuffer.append( OUString( sID.GetBuffer() , sID.Len() , RTL_TEXTENCODING_UTF8 ) );
sBuffer.append( GSI_TAB ); //"\t";
ByteString sOldRef = pXMLElement->GetOldref(); // oldref
sBuffer.append( OUString(sOldRef.GetBuffer() , sOldRef.Len() , RTL_TEXTENCODING_UTF8 ) );
- sBuffer.append( GSI_SEQUENCE2 ); //"\t\t\t0\t";
+ sBuffer.append( GSI_SEQUENCE2 ); //"\t\t\t0\t";
sBuffer.append( OUString( sCur.GetBuffer() , sCur.Len() , RTL_TEXTENCODING_UTF8 ) );
- sBuffer.append( GSI_TAB ); //"\t";
+ sBuffer.append( GSI_TAB ); //"\t";
sBuffer.append( data );
- sBuffer.append( GSI_SEQUENCE4 ); //"\t\t\t\t";
+ sBuffer.append( GSI_SEQUENCE4 ); //"\t\t\t\t";
sBuffer.append( sOUTimeStamp );
ByteString sOut( sBuffer.makeStringAndClear().getStr() , RTL_TEXTENCODING_UTF8 );
//if( !sCur.EqualsIgnoreCaseAscii("de") ||( sCur.EqualsIgnoreCaseAscii("de") && !Export::isMergingGermanAllowed( rPrj_in ) ) )
@@ -251,11 +251,11 @@ bool HelpParser::CreateSDF(
pXMLElement=NULL;
}else fprintf(stdout,"\nDBG: NullPointer in HelpParser::CreateSDF , Language %s\n",sCur.GetBuffer() );
}
-
+
}
//Dump(aXMLStrHM);
aSDFStream.Close();
-
+
if( !sUsedTempFile.EqualsIgnoreCaseAscii( "" ) ){
DirEntry aTempFile( sUsedTempFile );
aTempFile.Kill();
@@ -277,13 +277,13 @@ ByteString HelpParser::makeAbsolutePath( const ByteString& sHelpFile , const Byt
sActFileName.SearchAndReplaceAll( "/", "\\" );
return sActFileName;
}
-bool HelpParser::Merge( const ByteString &rSDFFile, const ByteString &rDestinationFile ,
+bool HelpParser::Merge( const ByteString &rSDFFile, const ByteString &rDestinationFile ,
ByteString& sLanguage , MergeDataFile& aMergeDataFile )
{
(void) rSDFFile;
bool hasNoError = true;
-
+
SimpleXMLParser aParser;
String sUsedTempFile;
@@ -305,7 +305,7 @@ bool HelpParser::Merge( const ByteString &rSDFFile, const ByteString &rDestinati
OUString sOUHelpFile( sXmlFile );
String fullFilePath;
DirEntry aFile( sXmlFile );
-
+
XMLFile* xmlfile = ( aParser.Execute( aFile.GetFull() , sOUHelpFile, new XMLFile( '0' ) ) );
printf("Dest file %s\n",rDestinationFile.GetBuffer());
hasNoError = MergeSingleFile( xmlfile , aMergeDataFile , sLanguage , rDestinationFile );
@@ -326,13 +326,13 @@ bool ByteStringLess( const ByteString& rKey1, const ByteString& rKey2 ) {
void HelpParser::parse_languages( std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile ){
std::vector<ByteString> aTmp;
-
- const ByteString DE ("de");
- const ByteString ENUS ("en-US");
+
+ const ByteString DE ("de");
+ const ByteString ENUS ("en-US");
static const ByteString ALL( "ALL" );
Export::InitLanguages( false );
-
+
if( Export::sLanguages.EqualsIgnoreCaseAscii( ALL ) )
{
aLanguages = aMergeDataFile.GetLanguages();
@@ -363,8 +363,8 @@ bool HelpParser::Merge(
const std::vector<ByteString>& aLanguages , MergeDataFile& aMergeDataFile , bool bCreateDir )
{
-
- (void) rSDFFile ;
+
+ (void) rSDFFile ;
bool hasNoError = true;
SimpleXMLParser aParser;
String sUsedTempFile;
@@ -386,7 +386,7 @@ bool HelpParser::Merge(
sXmlFile = String( sHelpFile , RTL_TEXTENCODING_ASCII_US );
}
-
+
OUString sOUHelpFile( sXmlFile );
String fullFilePath;
DirEntry aFile( sXmlFile );
@@ -405,20 +405,20 @@ bool HelpParser::Merge(
ByteString sCur;
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
sCur = aLanguages[ n ];
-
+
ByteString sFilepath;
- if( bISO ) sFilepath = GetOutpath( rPathX , sCur , rPathY );
+ if( bISO ) sFilepath = GetOutpath( rPathX , sCur , rPathY );
else sFilepath = rPathX;
if( bCreateDir ) MakeDir( sFilepath );
-
+
XMLFile* file = new XMLFile( *xmlfile );
sFilepath.Append( sHelpFile );
- hasNoError = MergeSingleFile( file , aMergeDataFile , sCur , sFilepath );
+ hasNoError = MergeSingleFile( file , aMergeDataFile , sCur , sFilepath );
delete file;
-
- if( !hasNoError ) return false; // Stop on error
+
+ if( !hasNoError ) return false; // Stop on error
}
-
+
if( !sUsedTempFile.EqualsIgnoreCaseAscii( "" ) )
{
DirEntry aTempFile( sUsedTempFile );
@@ -432,47 +432,47 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile
ByteString sPath )
{
file->Extract();
-
+
XMLHashMap* aXMLStrHM = file->GetStrings();
LangHashMap* aLangHM;
- static ResData pResData( "","","");
+ static ResData pResData( "","","");
pResData.sResTyp = "help";
ByteString sTmp = Export::sLanguages;
-
+
sTmp.EraseLeadingAndTrailingChars();
-
+
for(XMLHashMap::iterator pos=aXMLStrHM->begin();pos!=aXMLStrHM->end();++pos) // Merge every l10n related string
{
-
+
aLangHM = pos->second;
//printf("*********************DUMPING HASHMAP***************************************");
//Dump( aXMLStrHM );
//printf("DBG: sHelpFile = %s\n",sHelpFile.GetBuffer() );
-
+
pResData.sGId = pos->first;
pResData.sFilename = sHelpFile;
ProcessHelp( aLangHM , sLanguage, &pResData , aMergeDataFile );
}
-
+
// Init temp and target file
ByteString sTempFile;
ByteString sTargetFile( sPath );
ByteString sTempFileCopy;
-
+
static const ByteString INPATH = Export::GetEnv( "INPATH" );
Export::getRandomName( sPath , sTempFile , INPATH );
Export::getRandomName( sPath , sTempFileCopy , INPATH );
// Write in the temp file
- bool hasNoError = file->Write ( sTempFile );
+ bool hasNoError = file->Write ( sTempFile );
if( !hasNoError )
{
cerr << "ERROR: file->Write failed\n";
return false;
}
-
+
DirEntry aTmp( sTempFile );
DirEntry aTmp2( sTempFileCopy );
DirEntry aTar( sTargetFile );
@@ -490,8 +490,8 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile
return false;
}
}
- //remove( sTargetFile.GetBuffer() );
-
+ //remove( sTargetFile.GetBuffer() );
+
FileStat aFSTest( aTar );
if( aFSTest.GetSize() < 1 )
{
@@ -533,7 +533,7 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile
//cout << "mv2 " << sTempFileCopy.GetBuffer() << " " << sTargetFile.GetBuffer() << "\n";
//cout << "rc -> " << rc << " filesize -> " << aFS.GetSize() << "\n";
-
+
// Windows rename returns -1 if the file already exits
//#ifdef WNT
// if( aFS.GetSize() < 1 )
@@ -547,13 +547,13 @@ bool HelpParser::MergeSingleFile( XMLFile* file , MergeDataFile& aMergeDataFile
if( aFS.GetSize() < 1 )
aTar.Kill();
return false;
- }
+ }
}
aTmp.Kill();
aTmp2.Kill();
-
+
return true;
-}
+}
ByteString HelpParser::GetOutpath( const ByteString& rPathX , const ByteString& sCur , const ByteString& rPathY ){
ByteString testpath = rPathX;
@@ -606,7 +606,7 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const ByteString& sCur , Re
#ifdef MERGE_SOURCE_LANGUAGES
if( true ){ // Merge en-US!
#else
- if( !sCur.EqualsIgnoreCaseAscii("en-US") ){
+ if( !sCur.EqualsIgnoreCaseAscii("en-US") ){
#endif
pXMLElement = (*aLangHM)[ "en-US" ];
if( pXMLElement == NULL )
@@ -620,12 +620,12 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const ByteString& sCur , Re
pResData->sId = sLId;
pEntrys = aMergeDataFile.GetPFormEntrys( pResData );
- if( pEntrys != NULL)
+ if( pEntrys != NULL)
{
ByteString sNewText;
pEntrys->GetText( sNewText, STRING_TYP_TEXT, sCur , true );
sNewdata = String( sNewText , RTL_TEXTENCODING_UTF8 );
- if ( sNewdata.Len())
+ if ( sNewdata.Len())
{
if( pXMLElement != NULL )
{
@@ -634,7 +634,7 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const ByteString& sCur , Re
pXMLElement->AddChild( data );
aLangHM->erase( sCur );
}
- }
+ }
}else if( pResData == NULL ){fprintf(stdout,"Can't find GID=%s LID=%s TYP=%s\n",pResData->sGId.GetBuffer(),pResData->sId.GetBuffer(),pResData->sResTyp.GetBuffer());}
pXMLElement->ChangeLanguageTag( String( sCur , RTL_TEXTENCODING_ASCII_US) );
}
@@ -650,7 +650,7 @@ void HelpParser::Process( LangHashMap* aLangHM , const ByteString& sCur , ResDat
XMLParentNode *parent = NULL;
XMLDefault *xmldefault = NULL;
- short curLang = 0;
+ short curLang = 0;
String sNewdata;
bool isFallback = false;
ByteString sLId;
@@ -661,7 +661,7 @@ void HelpParser::Process( LangHashMap* aLangHM , const ByteString& sCur , ResDat
#ifdef MERGE_SOURCE_LANGUAGES
if( true ){ // Merge en-US!
#else
- if( !sCur.EqualsIgnoreCaseAscii("en-US") ){
+ if( !sCur.EqualsIgnoreCaseAscii("en-US") ){
#endif
pXMLElement = (*aLangHM)[ sCur ];
if( pXMLElement == NULL )
@@ -677,12 +677,12 @@ void HelpParser::Process( LangHashMap* aLangHM , const ByteString& sCur , ResDat
pResData->sId = sLId;
pEntrys = aMergeDataFile.GetPFormEntrys( pResData );
- if( pEntrys != NULL)
+ if( pEntrys != NULL)
{
ByteString sNewText;
pEntrys->GetText( sNewText, STRING_TYP_TEXT, sCur , true );
sNewdata = String( sNewText , RTL_TEXTENCODING_UTF8 );
- if ( sNewdata.Len())
+ if ( sNewdata.Len())
{
printf("Entries found\n");
if( pXMLElement != NULL )
diff --git a/l10ntools/source/inireader.cxx b/l10ntools/source/inireader.cxx
index 003902087469..051059560ef4 100644
--- a/l10ntools/source/inireader.cxx
+++ b/l10ntools/source/inireader.cxx
@@ -12,8 +12,8 @@ namespace transex3
bool INIreader::read( INImap& myMap , string& filename )
{
- ifstream aFStream( filename.c_str() );
- if( aFStream && aFStream.is_open())
+ ifstream aFStream( filename.c_str() );
+ if( aFStream && aFStream.is_open())
{
string line;
string section;
@@ -28,7 +28,7 @@ bool INIreader::read( INImap& myMap , string& filename )
}
else if( is_section( line , section ) )
{
- //cerr << "[" << section << "]\n";
+ //cerr << "[" << section << "]\n";
myvalues = new stringmap();
myMap[ section ] = myvalues ;
}
@@ -48,9 +48,9 @@ bool INIreader::read( INImap& myMap , string& filename )
}
}
- if( aFStream.is_open() )
+ if( aFStream.is_open() )
aFStream.close();
-
+
return true;
}
else
@@ -65,7 +65,7 @@ bool INIreader::is_section( string& line , string& section_str )
// Error in regex ?
check_status( section_status );
UnicodeString target( line.c_str() , line.length() );
-
+
section_match->reset( target );
check_status( section_status );
@@ -75,7 +75,7 @@ bool INIreader::is_section( string& line , string& section_str )
UnicodeString result( section_match->group( 1 , section_status) );
check_status( section_status );
toStlString( result , section_str );
-
+
return true;
}
return false;
@@ -86,21 +86,21 @@ bool INIreader::is_parameter( string& line , string& parameter_key , string& par
// Error in regex ?
check_status( parameter_status );
UnicodeString target( line.c_str() , line.length() );
-
+
parameter_match->reset( target );
check_status( parameter_status );
if( parameter_match->find() )
{
check_status( parameter_status );
-
+
UnicodeString result1( parameter_match->group( 1 , parameter_status) );
check_status( parameter_status );
toStlString( result1 , parameter_key );
UnicodeString result2( parameter_match->group( 2 , parameter_status) );
check_status( parameter_status );
toStlString( result2 , parameter_value );
-
+
return true;
}
return false;
@@ -109,7 +109,7 @@ bool INIreader::is_parameter( string& line , string& parameter_key , string& par
void INIreader::check_status( UErrorCode status )
{
if( U_FAILURE( status) )
- {
+ {
cerr << "Error in or while using regex: " << u_errorName( status ) << "\n";
exit(-1);
}
@@ -117,7 +117,7 @@ void INIreader::check_status( UErrorCode status )
void INIreader::toStlString( const UnicodeString& str , string& stl_str)
{
- // convert to string
+ // convert to string
char* buffer = new char[ str.length()*3 ];
str.extract( 0 , str.length() , buffer );
stl_str = string( buffer );
diff --git a/l10ntools/source/lngex.cxx b/l10ntools/source/lngex.cxx
index cc37c2f553ba..f4ec4b6fcf30 100644
--- a/l10ntools/source/lngex.cxx
+++ b/l10ntools/source/lngex.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,18 +34,18 @@
#include "lngmerge.hxx"
// defines to parse command line
-#define STATE_NON 0x0001
-#define STATE_INPUT 0x0002
-#define STATE_OUTPUT 0x0003
-#define STATE_PRJ 0x0004
-#define STATE_ROOT 0x0005
-#define STATE_MERGESRC 0x0006
-#define STATE_ERRORLOG 0x0007
-#define STATE_BREAKHELP 0x0008
-#define STATE_UNMERGE 0x0009
-#define STATE_UTF8 0x000A
-#define STATE_ULF 0x000B
-#define STATE_LANGUAGES 0x000C
+#define STATE_NON 0x0001
+#define STATE_INPUT 0x0002
+#define STATE_OUTPUT 0x0003
+#define STATE_PRJ 0x0004
+#define STATE_ROOT 0x0005
+#define STATE_MERGESRC 0x0006
+#define STATE_ERRORLOG 0x0007
+#define STATE_BREAKHELP 0x0008
+#define STATE_UNMERGE 0x0009
+#define STATE_UTF8 0x000A
+#define STATE_ULF 0x000B
+#define STATE_LANGUAGES 0x000C
// set of global variables
ByteString sInputFile;
@@ -71,7 +71,7 @@ BOOL ParseCommandLine( int argc, char* argv[])
sPrj = "";
sPrjRoot = "";
Export::sLanguages = "";
-
+
USHORT nState = STATE_NON;
BOOL bInput = FALSE;
@@ -102,11 +102,11 @@ BOOL ParseCommandLine( int argc, char* argv[])
nState = STATE_UTF8;
bUTF8 = TRUE;
}
-/* else if ( sSwitch == "-NOUTF8" ) {
+/* else if ( sSwitch == "-NOUTF8" ) {
nState = STATE_UTF8;
bUTF8 = FALSE;
}*/
-/* else if ( sSwitch == "-ULF" ) {
+/* else if ( sSwitch == "-ULF" ) {
nState = STATE_ULF;
bULF = TRUE;
}*/
@@ -116,7 +116,7 @@ BOOL ParseCommandLine( int argc, char* argv[])
else {
switch ( nState ) {
case STATE_NON: {
- return FALSE; // no valid command line
+ return FALSE; // no valid command line
}
//break;
case STATE_INPUT: {
@@ -130,7 +130,7 @@ BOOL ParseCommandLine( int argc, char* argv[])
break;
case STATE_PRJ: {
sPrj = argv[ i ];
-// sPrj.ToLowerAscii(); // the project
+// sPrj.ToLowerAscii(); // the project
}
break;
case STATE_ROOT: {
@@ -192,7 +192,7 @@ int _cdecl main( int argc, char *argv[] )
return 1;
}
fprintf(stdout, ".");
- fflush( stdout );
+ fflush( stdout );
if ( sOutputFile.Len()) {
LngParser aParser( sInputFile, bUTF8, bULF );
diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx
index 570c295c9cf8..6e17c7f7534b 100644
--- a/l10ntools/source/lngmerge.cxx
+++ b/l10ntools/source/lngmerge.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,15 +54,15 @@ LngParser::LngParser( const ByteString &rLngFile, BOOL bUTF8, BOOL bULFFormat )
SvFileStream aStream( String( sSource, RTL_TEXTENCODING_ASCII_US ), STREAM_STD_READ );
if ( aStream.IsOpen()) {
ByteString sLine;
- bool bFirstLine = true;
+ bool bFirstLine = true;
while ( !aStream.IsEof()) {
aStream.ReadLine( sLine );
-
+
if( bFirstLine ){ // Always remove UTF8 BOM from the first line
Export::RemoveUTF8ByteOrderMarker( sLine );
bFirstLine = false;
}
-
+
pLines->Insert( new ByteString( sLine ), LIST_APPEND );
}
}
@@ -89,7 +89,7 @@ void LngParser::FillInFallbacks( ByteStringHashMap Text )
ByteString sCur;
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
sCur = aLanguages[ n ];
-
+
if( Export::isAllowed( sCur ) ){
ByteString sFallbackLang = Export::GetFallbackLanguage( sCur );
if( sFallbackLang.Len() ){
@@ -113,7 +113,7 @@ BOOL LngParser::CreateSDF(
if ( !aSDFStream.IsOpen()) {
nError = SDF_COULD_NOT_OPEN;
}
- aSDFStream.SetStreamCharSet( RTL_TEXTENCODING_UTF8 );
+ aSDFStream.SetStreamCharSet( RTL_TEXTENCODING_UTF8 );
nError = SDF_OK;
DirEntry aEntry( String( sSource, RTL_TEXTENCODING_ASCII_US ));
aEntry.ToAbs();
@@ -133,11 +133,11 @@ BOOL LngParser::CreateSDF(
ByteString sLine;
while( nPos < pLines->Count() ){
- sLine = *pLines->GetObject( nPos++ );
+ sLine = *pLines->GetObject( nPos++ );
while( nPos < pLines->Count() && !isNextGroup( sGroup , sLine ) ){
ReadLine( sLine , Text );
sID = sGroup;
- sLine = *pLines->GetObject( nPos++ );
+ sLine = *pLines->GetObject( nPos++ );
};
if( bStart ){
bStart = false;
@@ -145,18 +145,18 @@ BOOL LngParser::CreateSDF(
}
else {
- WriteSDF( aSDFStream , Text , rPrj , rRoot , sActFileName , sID );
+ WriteSDF( aSDFStream , Text , rPrj , rRoot , sActFileName , sID );
}
}
aSDFStream.Close();
return true;
}
- void LngParser::WriteSDF( SvFileStream &aSDFStream , ByteStringHashMap &rText_inout ,
+ void LngParser::WriteSDF( SvFileStream &aSDFStream , ByteStringHashMap &rText_inout ,
const ByteString &rPrj , const ByteString &rRoot ,
const ByteString &sActFileName , const ByteString &sID )
{
-
+
BOOL bExport = true;
if ( bExport ) {
ByteString sTimeStamp( Export::GetTimeStamp());
@@ -164,10 +164,10 @@ BOOL LngParser::CreateSDF(
FillInFallbacks( rText_inout );
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
sCur = aLanguages[ n ];
- ByteString sAct = rText_inout[ sCur ];
+ ByteString sAct = rText_inout[ sCur ];
if ( !sAct.Len() && sCur.Len() )
sAct = rText_inout[ ByteString("en-US") ];
-
+
ByteString sOutput( rPrj ); sOutput += "\t";
if ( rRoot.Len())
sOutput += sActFileName;
@@ -201,7 +201,7 @@ BOOL LngParser::CreateSDF(
sLang.EraseTrailingChars( ' ' );
ByteString sText = sLine_in.GetToken( 1, '\"' ).GetToken( 0, '\"' );
if( sLang.Len() )
- rText_inout[ sLang ] = sText;
+ rText_inout[ sLang ] = sText;
}
/*****************************************************************************/
@@ -222,7 +222,7 @@ BOOL LngParser::Merge(
MergeDataFile aMergeDataFile( rSDFFile, sSource , FALSE, RTL_TEXTENCODING_MS_1252);//, bDBIsUTF8 );
ByteString sTmp( Export::sLanguages );
- if( sTmp.ToUpperAscii().Equals("ALL") )
+ if( sTmp.ToUpperAscii().Equals("ALL") )
Export::SetLanguages( aMergeDataFile.GetLanguages() );
aLanguages = Export::GetLanguages();
@@ -295,7 +295,7 @@ BOOL LngParser::Merge(
if ( sNewText.Len()) {
ByteString *pLine = pLines->GetObject( nPos );
-
+
ByteString sText1( sLang );
sText1 += " = \"";
sText1 += sNewText;
@@ -322,10 +322,10 @@ BOOL LngParser::Merge(
if ( nLastLangPos ) {
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
sCur = aLanguages[ n ];
- if( //( !sCur.EqualsIgnoreCaseAscii("de") ||
- //( sCur.EqualsIgnoreCaseAscii("de") && Export::isMergingGermanAllowed( rPrj ) ) )
+ if( //( !sCur.EqualsIgnoreCaseAscii("de") ||
+ //( sCur.EqualsIgnoreCaseAscii("de") && Export::isMergingGermanAllowed( rPrj ) ) )
!sCur.EqualsIgnoreCaseAscii("en-US") && !Text[ sCur ].Len() && pEntrys ){
-
+
ByteString sNewText;
pEntrys->GetText( sNewText, STRING_TYP_TEXT, sCur, TRUE );
if (( sNewText.Len()) &&
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index 940f9e89ae91..76bb0e185ccc 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace transex3
//
// SourceTreeLocalizer
//
-
+
const char *ExeTable[][5] = {
{ "src", "transex3", " -UTF8 -e", "negative", "noiso" },
{ "hrc", "transex3", " -UTF8 -e", "positive", "noiso" },
@@ -126,9 +126,9 @@ const char *PositiveList[] = {
const char PRJ_DIR_NAME[] = "prj";
const char DLIST_NAME[] = "d.lst";
-#define LOCALIZE_NONE 0x0000
-#define LOCALIZE_EXTRACT 0x0001
-#define LOCALIZE_MERGE 0x0002
+#define LOCALIZE_NONE 0x0000
+#define LOCALIZE_EXTRACT 0x0001
+#define LOCALIZE_MERGE 0x0002
class SourceTreeLocalizer : public SourceTreeIterator
{
@@ -137,15 +137,15 @@ private:
USHORT nMode;
ByteString sLanguageRestriction;
-
+
ByteString sOutputFile;
int nFileCnt;
-
+
const ByteString GetProjectName( BOOL bAbs = FALSE );
const ByteString GetProjectRootRel();
-
-
+
+
BOOL CheckNegativeList( const ByteString &rFileName );
BOOL CheckPositiveList( const ByteString &rFileName );
@@ -173,9 +173,9 @@ private:
public:
SourceTreeLocalizer( const ByteString &rRoot, const ByteString &rVersion , bool bLocal , bool skip_links );
~SourceTreeLocalizer();
-
+
ByteString getSourceLanguages( ByteString sLanguageRestriction , ByteString sCommand );
-
+
void SetLanguageRestriction( const ByteString& rRestrictions )
{ sLanguageRestriction = rRestrictions; }
int getFileCnt();
@@ -242,13 +242,13 @@ const ByteString SourceTreeLocalizer::GetProjectRootRel()
if( sCur.SearchAndReplace( sProjectRoot, "" ) == STRING_NOTFOUND )
return "";
- ByteString sDelimiter(
+ ByteString sDelimiter(
DirEntry::GetAccessDelimiter(), RTL_TEXTENCODING_ASCII_US );
sCur.SearchAndReplaceAll( sDelimiter, "/" );
sCur.EraseLeadingChars( '/' );
ULONG nCount = sCur.GetTokenCount( '/' );
-
+
ByteString sProjectRootRel;
for ( ULONG i = 0; i < nCount; i++ ) {
if ( sProjectRootRel.Len())
@@ -268,9 +268,9 @@ bool skipProject( ByteString sPrj )
}
/*****************************************************************************/
-void SourceTreeLocalizer::WorkOnFile(
+void SourceTreeLocalizer::WorkOnFile(
const ByteString &rFileName, const ByteString &rExecutable,
- const ByteString &rParameter )
+ const ByteString &rParameter )
/*****************************************************************************/
{
String sFull( rFileName, RTL_TEXTENCODING_ASCII_US );
@@ -283,7 +283,7 @@ void SourceTreeLocalizer::WorkOnFile(
aPath.SetCWD();
ByteString sPrj( GetProjectName());
- if ( sPrj.Len() && !skipProject( sPrj ) )
+ if ( sPrj.Len() && !skipProject( sPrj ) )
{
ByteString sRoot( GetProjectRootRel());
@@ -309,7 +309,7 @@ void SourceTreeLocalizer::WorkOnFile(
sExecutable += sDel ;
sExecutable += rExecutable ;
-
+
ByteString sCommand( sExecutable );
sCommand += " ";
sCommand += rParameter;
@@ -325,7 +325,7 @@ void SourceTreeLocalizer::WorkOnFile(
sCommand += " -l ";
sCommand += getSourceLanguages( sLanguageRestriction , sCommand );
}
-
+
//printf("DBG: %s\n",sCommand.GetBuffer());
if (system(sCommand.GetBuffer()) == -1)
fprintf(stderr, "%s failed\n", sCommand.GetBuffer());
@@ -344,7 +344,7 @@ void SourceTreeLocalizer::WorkOnFile(
aSDFIn.Close();
aTemp.Kill();
-
+
}
// reset current working directory
aOldCWD.SetCWD();
@@ -358,7 +358,7 @@ ByteString SourceTreeLocalizer::getSourceLanguages( ByteString sLanguageRestrict
}
else if( sCommand.Search("xmlex") != STRING_NOTFOUND ){
sLanguageRestriction_inout.Assign( ByteString("en-US") );
- }
+ }
return sLanguageRestriction_inout;
}
@@ -369,7 +369,7 @@ BOOL SourceTreeLocalizer::CheckNegativeList( const ByteString &rFileName )
ULONG nIndex = 0;
BOOL bReturn = TRUE;
- ByteString sDelimiter(
+ ByteString sDelimiter(
DirEntry::GetAccessDelimiter(), RTL_TEXTENCODING_ASCII_US );
ByteString sFileName( rFileName );
@@ -398,7 +398,7 @@ BOOL SourceTreeLocalizer::CheckPositiveList( const ByteString &rFileName )
ULONG nIndex = 0;
BOOL bReturn = FALSE;
- ByteString sDelimiter(
+ ByteString sDelimiter(
DirEntry::GetAccessDelimiter(), RTL_TEXTENCODING_ASCII_US );
ByteString sFileName( rFileName );
@@ -421,7 +421,7 @@ BOOL SourceTreeLocalizer::CheckPositiveList( const ByteString &rFileName )
}
/*****************************************************************************/
-void SourceTreeLocalizer::WorkOnFileType(
+void SourceTreeLocalizer::WorkOnFileType(
const ByteString &rDirectory, const ByteString &rExtension,
const ByteString &rExecutable, const ByteString &rParameter,
const ByteString &rCollectMode
@@ -464,14 +464,14 @@ void SourceTreeLocalizer::WorkOnDirectory( const ByteString &rDirectory )
ByteString sCollectMode( ExeTable[ nIndex ][ 3 ] );
while( !sExtension.Equals( "NULL" )) {
- WorkOnFileType(
- rDirectory,
+ WorkOnFileType(
+ rDirectory,
sExtension,
sExecutable,
sParameter,
sCollectMode
);
-
+
nIndex++;
sExtension = ExeTable[ nIndex ][ 0 ];
@@ -495,10 +495,10 @@ BOOL SourceTreeLocalizer::Extract( const ByteString &rDestinationFile )
/*****************************************************************************/
{
nMode = LOCALIZE_EXTRACT;
-
+
aSDF.Open( String( rDestinationFile , RTL_TEXTENCODING_ASCII_US ) , STREAM_STD_WRITE );
aSDF.SetLineDelimiter( LINEEND_CRLF );
-
+
BOOL bReturn = aSDF.IsOpen();
if ( bReturn ) {
aSDF.Seek( STREAM_SEEK_TO_END );
@@ -514,10 +514,10 @@ BOOL SourceTreeLocalizer::Extract( const ByteString &rDestinationFile )
}
/*****************************************************************************/
-BOOL SourceTreeLocalizer::MergeSingleFile(
- const ByteString &rPrj,
- const ByteString &rFile,
- const ByteString &rSDFFile
+BOOL SourceTreeLocalizer::MergeSingleFile(
+ const ByteString &rPrj,
+ const ByteString &rFile,
+ const ByteString &rSDFFile
)
/*****************************************************************************/
{
@@ -529,7 +529,7 @@ BOOL SourceTreeLocalizer::MergeSingleFile(
DirEntry aEntry( String( sRoot, RTL_TEXTENCODING_ASCII_US ));
aEntry += DirEntry( String( rPrj, RTL_TEXTENCODING_ASCII_US ));
- ByteString sDelimiter(
+ ByteString sDelimiter(
DirEntry::GetAccessDelimiter(), RTL_TEXTENCODING_ASCII_US );
ByteString sCur( rFile );
@@ -545,7 +545,7 @@ BOOL SourceTreeLocalizer::MergeSingleFile(
ByteString sExtension( aEntry.GetExtension(), RTL_TEXTENCODING_ASCII_US );
ByteString sCandidate( ExeTable[ nIndex ][ 0 ] );
- while( !sCandidate.Equals ("NULL") && !sCandidate.Equals(sExtension) )
+ while( !sCandidate.Equals ("NULL") && !sCandidate.Equals(sExtension) )
sCandidate = ExeTable[ ++nIndex ][ 0 ];
if ( !sCandidate.Equals( "NULL" ) ) {
@@ -564,10 +564,10 @@ BOOL SourceTreeLocalizer::MergeSingleFile(
found=TRUE;
}
}
- if(!found) return TRUE;
-
- }
-
+ if(!found) return TRUE;
+
+ }
+
DirEntry aOut( Export::GetTempFile() );
ByteString sOutput;
if( sOutputFile.Len() == 0 )
@@ -598,8 +598,8 @@ BOOL SourceTreeLocalizer::MergeSingleFile(
printf(".");
SvFileStream aInStream( aOut.GetFull(), STREAM_READ );
if ( !aInStream.IsOpen()) {
- fprintf( stderr,
- "ERROR: Unable to open file %s for reading!\n",
+ fprintf( stderr,
+ "ERROR: Unable to open file %s for reading!\n",
sOutput.GetBuffer());
}
else {
@@ -614,12 +614,12 @@ BOOL SourceTreeLocalizer::MergeSingleFile(
ByteString test2(myStr2,RTL_TEXTENCODING_ASCII_US);
fprintf( stderr,"ERROR: Unable to open file %s for modification!\n", test2.GetBuffer());
aInStream.Close();
- }
-
+ }
+
else {
- ByteString sLine;
+ ByteString sLine;
aOutStream.SetLineDelimiter( LINEEND_LF );
-
+
aInStream.ReadLine( sLine );
while ( !aInStream.IsEof()) {
aOutStream.WriteLine( sLine );
@@ -627,26 +627,26 @@ BOOL SourceTreeLocalizer::MergeSingleFile(
}
aInStream.Close();
aOutStream.Close();
-
-
- DirEntry myTempFile(ByteString(myStr2,RTL_TEXTENCODING_ASCII_US)); // xxx_tmp ->
+
+
+ DirEntry myTempFile(ByteString(myStr2,RTL_TEXTENCODING_ASCII_US)); // xxx_tmp ->
DirEntry myFile(ByteString(aEntry.GetFull(),RTL_TEXTENCODING_ASCII_US));// xxx
DirEntry oldFile(ByteString(aEntry.GetFull(),RTL_TEXTENCODING_ASCII_US));
-
+
if(oldFile.Kill()==ERRCODE_NONE){
if(myTempFile.MoveTo(myFile)!=ERRCODE_NONE){
- fprintf( stderr, "ERROR: Can't rename file %s\n",ByteString(myStr2,RTL_TEXTENCODING_ASCII_US).GetBuffer());
+ fprintf( stderr, "ERROR: Can't rename file %s\n",ByteString(myStr2,RTL_TEXTENCODING_ASCII_US).GetBuffer());
}
- }
+ }
else{
fprintf( stderr, "ERROR: Can't remove file %s\n",ByteString(aEntry.GetFull(),RTL_TEXTENCODING_ASCII_US).GetBuffer());
}
} // else
-
+
aOldCWD.SetCWD();
aOut.Kill();
- } // else
+ } // else
}
return TRUE;
}
@@ -669,7 +669,7 @@ BOOL SourceTreeLocalizer::ExecuteMerge( )
ByteString sInpath(".");
sInpath += Export::GetEnv("INPATH");
ByteString sBlank("");
-
+
sOutputFileName.SearchAndReplaceAll( sInpath , sBlank );
String sDel = DirEntry::GetAccessDelimiter();
@@ -680,7 +680,7 @@ BOOL SourceTreeLocalizer::ExecuteMerge( )
}
ByteStringBoolHashMap aFileHM;
// Read all possible files
- while ( !aSDF.IsEof()) {
+ while ( !aSDF.IsEof()) {
aSDF.ReadLine( sLine );
sFileName = sLine.GetToken( 0, '\t' );
sFileName += "#";
@@ -693,7 +693,7 @@ BOOL SourceTreeLocalizer::ExecuteMerge( )
aSDF.Seek( 0 );
aFile.Open( aEntry.GetFull(), STREAM_STD_WRITE |STREAM_TRUNC );
- while ( !aSDF.IsEof()) {
+ while ( !aSDF.IsEof()) {
aSDF.ReadLine( sLine );
sFileName = sLine.GetToken( 0, '\t' );
sFileName += "#";
@@ -703,19 +703,19 @@ BOOL SourceTreeLocalizer::ExecuteMerge( )
aFile.WriteLine( sLine );
}
}
- if ( aFile.IsOpen())
+ if ( aFile.IsOpen())
aFile.Close();
-
+
ByteString sPrj( sFileKey.GetToken( 0, '#' ));
ByteString sFile( sFileKey.GetToken( 1, '#' ));
ByteString sSDFFile( aFile.GetFileName(), RTL_TEXTENCODING_ASCII_US );
//printf("localize test sPrj = %s , sFile = %s , sSDFFile = %s sOutputFileName = %s\n",sPrj.GetBuffer(), sFile.GetBuffer() , sSDFFile.GetBuffer() , sOutputFileName.GetBuffer() );
-
+
// Test
bLocal = true;
// Test
-
+
if( bLocal ){
USHORT nPos = sFile.SearchBackward( '\\' );
ByteString sTmp = sFile.Copy( nPos+1 , sFile.Len()-nPos-1 );
@@ -725,7 +725,7 @@ BOOL SourceTreeLocalizer::ExecuteMerge( )
if ( !MergeSingleFile( sPrj, sFile, sSDFFile ))
bReturn = FALSE;
}else{
- bMerged = true;
+ bMerged = true;
//printf("MergeSingleFile('%s','%s','%s')\n",sPrj.GetBuffer(),sFile.GetBuffer(),sSDFFile.GetBuffer());
if ( !MergeSingleFile( sPrj, sFile, sSDFFile ))
bReturn = FALSE;
@@ -734,8 +734,8 @@ BOOL SourceTreeLocalizer::ExecuteMerge( )
}
aEntry.Kill();
// If Outputfile not included in the SDF file copy it without merge
-
- if( bLocal && !bMerged ){
+
+ if( bLocal && !bMerged ){
DirEntry aSourceFile( sOutputFileName.GetBuffer() );
FSysError aErr = aSourceFile.CopyTo( DirEntry ( sOutputFile.GetBuffer() ) , FSYS_ACTION_COPYFILE );
if( aErr != FSYS_ERR_OK ){
@@ -754,33 +754,33 @@ BOOL SourceTreeLocalizer::Merge( const ByteString &rSourceFile , const ByteStrin
nMode = LOCALIZE_MERGE;
aSDF.Open( String( rSourceFile, RTL_TEXTENCODING_ASCII_US ),
STREAM_STD_READ );
-
+
BOOL bReturn = aSDF.IsOpen();
if ( bReturn ) {
bReturn = ExecuteMerge();
-// aSDF.Close();
+// aSDF.Close();
}
- aSDF.Close();
+ aSDF.Close();
nMode = LOCALIZE_NONE;
return bReturn;
}
-}
+}
using namespace transex3;
-#define STATE_NONE 0x0000
-#define STATE_EXPORT 0x0001
-#define STATE_MERGE 0x0002
-#define STATE_ISOCODE 0x0003
-#define STATE_LANGUAGES 0x0004
-#define STATE_FILENAME 0x0005
-#define STATE_OUTPUT 0x0006
+#define STATE_NONE 0x0000
+#define STATE_EXPORT 0x0001
+#define STATE_MERGE 0x0002
+#define STATE_ISOCODE 0x0003
+#define STATE_LANGUAGES 0x0004
+#define STATE_FILENAME 0x0005
+#define STATE_OUTPUT 0x0006
/*****************************************************************************/
void Help()
/*****************************************************************************/
{
- fprintf( stdout,
+ fprintf( stdout,
"localize (c)2001 by Sun Microsystems\n"
"====================================\n" );
fprintf( stdout,
@@ -796,7 +796,7 @@ void Help()
fprintf( stdout,
"Valid language codes for l1...ln and f1...fn are:\n" );
fprintf( stdout,
- "\nExample 1:\n"
+ "\nExample 1:\n"
"==========\n"
"localize -e -l en-US -f MyFile\n\n"
"All strings will be extracted for language de and language en-US.\n"
@@ -834,7 +834,7 @@ int _cdecl main( int argc, char *argv[] )
BOOL bExport = FALSE;
BOOL bMerge = FALSE;
bool bSkipLinks = false;
-
+
ByteString sLanguages;
ByteString sFileName;
ByteString sOutput;
@@ -847,7 +847,7 @@ int _cdecl main( int argc, char *argv[] )
if ( sSwitch.Equals( "-E" )) {
nState = STATE_EXPORT;
- if ( bMerge )
+ if ( bMerge )
return Error();
bExport = TRUE;
}
@@ -861,7 +861,7 @@ int _cdecl main( int argc, char *argv[] )
nState = STATE_OUTPUT;
else {
switch ( nState ) {
- case STATE_NONE:
+ case STATE_NONE:
return Error();
case STATE_OUTPUT:
if ( sOutput.Len())
@@ -911,7 +911,7 @@ int _cdecl main( int argc, char *argv[] )
aEntry.ToAbs();
String sFullEntry = aEntry.GetFull();
ByteString sFileABS( aEntry.GetFull(), gsl_getSystemTextEncoding());
- //printf("B %s\nA %s\n",rDestinationFile.GetBuffer(), sFile.GetBuffer());
+ //printf("B %s\nA %s\n",rDestinationFile.GetBuffer(), sFile.GetBuffer());
sFileName = sFileABS;
Treeconfig treeconfig;
@@ -920,8 +920,8 @@ int _cdecl main( int argc, char *argv[] )
if( hasPwd ) cout << "Found special path!\n";
string minor_ext;
- bool has_minor_ext;
-
+ bool has_minor_ext;
+
if( Export::GetEnv("UPDMINOREXT") != NULL )
{
minor_ext = string( Export::GetEnv("UPDMINOREXT") );
@@ -934,13 +934,13 @@ int _cdecl main( int argc, char *argv[] )
for( vector<string>::iterator iter = repos.begin(); iter != repos.end() ; ++iter )
{
string curRepository;
- if( has_minor_ext )
+ if( has_minor_ext )
curRepository = string( Export::GetEnv("SOURCE_ROOT_DIR") ) + "/" + *iter + minor_ext;
else
curRepository = string( Export::GetEnv("SOURCE_ROOT_DIR") ) + "/" + *iter;
cout << "Localizing repository " << curRepository << "\n";
SourceTreeLocalizer aIter( ByteString( curRepository.c_str() ) , sVersion , (sOutput.Len() > 0) , bSkipLinks );
- aIter.SetLanguageRestriction( sLanguages );
+ aIter.SetLanguageRestriction( sLanguages );
if ( bExport ){
fflush( stdout );
if( *iter == "ooo" )
@@ -961,13 +961,13 @@ int _cdecl main( int argc, char *argv[] )
Export::getCurrentDir( pwd );
cout << "Localizing repository " << pwd << "\n";
SourceTreeLocalizer aIter( ByteString( pwd.c_str() ) , sVersion , (sOutput.Len() > 0) , bSkipLinks );
- aIter.SetLanguageRestriction( sLanguages );
+ aIter.SetLanguageRestriction( sLanguages );
if ( bExport ){
fflush( stdout );
aIter.Extract( sFileName );
printf("\n%d files found!\n",aIter.GetFileCnt());
}
-
+
}
return 0;
diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx
index ca0ce7e01776..4be41b294d56 100644
--- a/l10ntools/source/merge.cxx
+++ b/l10ntools/source/merge.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,13 +58,13 @@ BOOL PFormEntrys::GetTransex3Text( ByteString &rReturn,
ByteString test( rReturn );
for( USHORT idx = 0; idx < rReturn.Len(); idx++ )
{
- if( rReturn.GetChar( idx ) == '\"' && ( idx >= 1 ) && rReturn.GetChar( idx-1 ) == '\\' )
- {
+ if( rReturn.GetChar( idx ) == '\"' && ( idx >= 1 ) && rReturn.GetChar( idx-1 ) == '\\' )
+ {
rReturn.Erase( idx-1 , 1 );
}
}
//if( !rReturn.Equals( test ) )
- // printf("*CHANGED******************\n%s\n%s\n",test.GetBuffer(),rReturn.GetBuffer());
+ // printf("*CHANGED******************\n%s\n%s\n",test.GetBuffer(),rReturn.GetBuffer());
return rc;
}
/*****************************************************************************/
@@ -74,7 +74,7 @@ BOOL PFormEntrys::GetText( ByteString &rReturn,
{
/*printf("DBG: PFormEntrys::GetText(nId=%s)\n",nLangIndex.GetBuffer() );
-
+
// DEBUG******************
ByteStringHashMap::const_iterator idbg;
std::cout << "HASHKEYS : \n";
@@ -112,7 +112,7 @@ BOOL PFormEntrys::GetText( ByteString &rReturn,
bTitleFirst[ nLangIndex ] = FALSE;
break;
}
- //printf("Returning '%s'\n",rReturn.GetBuffer());
+ //printf("Returning '%s'\n",rReturn.GetBuffer());
return bReturn;
}
@@ -131,15 +131,15 @@ MergeData::~MergeData()
PFormEntrys* MergeData::GetPFormEntrys( ResData *pResData )
/*****************************************************************************/
{
-
+
(void) pResData; // FIXME
- if( aMap.find( ByteString("HACK") ) != aMap.end() ){
+ if( aMap.find( ByteString("HACK") ) != aMap.end() ){
return aMap[ ByteString("HACK") ];
}
- else{
- return 0;
+ else{
+ return 0;
}
-}
+}
void MergeData::Insert( const ByteString& rPFO , PFormEntrys* pfEntrys ){
(void) rPFO; // FIXME
@@ -148,9 +148,9 @@ void MergeData::Insert( const ByteString& rPFO , PFormEntrys* pfEntrys ){
}
ByteString MergeData::Dump(){
ByteString sRet( "MergeData\n" );
-
+
printf("MergeData sTyp = %s , sGid = %s , sLid =%s , sFilename = %s\n",sTyp.GetBuffer(),sGID.GetBuffer(),sLID.GetBuffer(), sFilename.GetBuffer() );
-
+
PFormEntrysHashMap::const_iterator idbg;
for( idbg = aMap.begin() ; idbg != aMap.end(); ++idbg ){
printf("aMap[ %s ] = " ,idbg->first.GetBuffer());
@@ -160,7 +160,7 @@ ByteString MergeData::Dump(){
printf("\n") ;
return sRet;
}
-
+
PFormEntrys* MergeData::GetPFObject( const ByteString& rPFO ){
if( aMap.find( ByteString("HACK") ) != aMap.end() ){
return aMap[ rPFO ];
@@ -179,7 +179,7 @@ PFormEntrys *MergeData::InsertEntry( const ByteString &rPForm )
aMap.insert( PFormEntrysHashMap::value_type( rPForm , pFEntrys ) );
return pFEntrys;
}
-
+
/*****************************************************************************/
BOOL MergeData::operator==( ResData *pData )
/*****************************************************************************/
@@ -188,7 +188,7 @@ BOOL MergeData::operator==( ResData *pData )
sResTyp_upper.ToUpperAscii();
ByteString sTyp_upper( sTyp );
sTyp_upper.ToUpperAscii();
-
+
return (( pData->sId == sLID ) &&
( pData->sGId == sGID ) &&
( sResTyp_upper == sTyp_upper )
@@ -199,19 +199,19 @@ BOOL MergeData::operator==( ResData *pData )
// class MergeDataFile
//
-#define FFORMAT_UNKNOWN 0x0000
-#define FFORMAT_NEW 0x0001
-#define FFORMAT_OLD 0x0002
+#define FFORMAT_UNKNOWN 0x0000
+#define FFORMAT_NEW 0x0001
+#define FFORMAT_OLD 0x0002
/*****************************************************************************/
MergeDataFile::MergeDataFile( const ByteString &rFileName, const ByteString& sFile ,BOOL bErrLog,
-// CharSet aCharSet, BOOL bUTF8 , bool bCaseSensitive )
+// CharSet aCharSet, BOOL bUTF8 , bool bCaseSensitive )
CharSet aCharSet, bool bCaseSensitive )
/*****************************************************************************/
: bErrorLog( bErrLog )
{
-
+
SvFileStream aInputStream( String( rFileName, RTL_TEXTENCODING_ASCII_US ), STREAM_STD_READ );
aInputStream.SetStreamCharSet( aCharSet );
ByteString sLine;
@@ -225,9 +225,9 @@ MergeDataFile::MergeDataFile( const ByteString &rFileName, const ByteString& sFi
ByteString sQHTEXT;
ByteString sTITLE;
ByteString sHACK("HACK");
-
+
const ByteString sEmpty("");
-
+
if( !aInputStream.IsOpen() ) {
printf("Warning : Can't open %s\n", rFileName.GetBuffer());
//exit( -1 );
@@ -243,9 +243,9 @@ MergeDataFile::MergeDataFile( const ByteString &rFileName, const ByteString& sFi
// Skip all wrong filenames
ByteString filename = sLine.GetToken( 1 , '\t' );
filename = filename.Copy( filename.SearchCharBackward( "\\" )+1 , filename.Len() );
-
+
if( sFile.Equals( sEmpty ) || ( !sFile.Equals( sEmpty ) && filename.Equals( sFile ) ) )
- {
+ {
xub_StrLen rIdx = 0;
sTYP = sLine.GetToken( 3, '\t', rIdx );
sGID = sLine.GetToken( 0, '\t', rIdx ); // 4
@@ -275,7 +275,7 @@ MergeDataFile::MergeDataFile( const ByteString &rFileName, const ByteString& sFi
aLanguageList.push_back( nLANG );
} else
aLANG = lit->first;
-
+
InsertEntry( sTYP, sGID, sLID, sPFO, aLANG, sTEXT, sQHTEXT, sTITLE , filename , bCaseSensitive );
}
}
@@ -334,7 +334,7 @@ void MergeDataFile::WriteError( const ByteString &rLine )
else
fprintf( stderr, "%s\n", rLine.GetBuffer());
}
-std::vector<ByteString> MergeDataFile::GetLanguages(){
+std::vector<ByteString> MergeDataFile::GetLanguages(){
return aLanguageList;
}
@@ -354,7 +354,7 @@ MergeData *MergeDataFile::GetMergeData( ResData *pResData , bool bCaseSensitive
pResData->sId = sLID;
//printf("MergeData:: Search gid=%s lid=%s filename=%s \n", pResData->sGId.GetBuffer(),pResData->sId.GetBuffer(),pResData->sFilename.GetBuffer() );
ByteString sKey = CreateKey( pResData->sResTyp , pResData->sGId , pResData->sId , pResData->sFilename , bCaseSensitive );
-
+
//printf("DBG: Searching [%s]\n",sKey.GetBuffer());
if( aMap.find( sKey ) != aMap.end() ){
pResData->sGId = sOldG;
@@ -412,7 +412,7 @@ void MergeDataFile::InsertEntry(
aFilenames.insert (ByteStringHashMap::value_type (aFilename, aFilename));
} else
aFilename = fit->first;
-
+
// search for MergeData
ByteString sKey = CreateKey( rTYP , rGID , rLID , aFilename , bCaseSensitive );
@@ -420,7 +420,7 @@ void MergeDataFile::InsertEntry(
mit = aMap.find( sKey );
if( mit != aMap.end() ){
pData = mit->second;
- }else{
+ }else{
pData = new MergeData( rTYP, rGID, rLID, aFilename );
aMap.insert( MergeDataHashMap::value_type( sKey, pData ) );
}
@@ -429,22 +429,22 @@ void MergeDataFile::InsertEntry(
PFormEntrys *pFEntrys = 0;
// search for PFormEntrys
-
+
pFEntrys = pData->GetPFObject( rPFO );
if( !pFEntrys ){
// create new PFormEntrys, cause no one exists with current properties
pFEntrys = new PFormEntrys( rPFO );
pData->Insert( rPFO , pFEntrys );
- }
+ }
// finaly insert the cur string
pFEntrys->InsertEntry( nLANG , rTEXT, rQHTEXT, rTITLE );
-
+
//printf("DBG: MergeDataFile::Insert[]=( sKey=%s,nLang=%s,rTEXT=%s)\n",sKey2.GetBuffer(),nLANG.GetBuffer(),rTEXT.GetBuffer());
}
ByteString MergeDataFile::CreateKey( const ByteString& rTYP , const ByteString& rGID , const ByteString& rLID , const ByteString& rFilename , bool bCaseSensitive ){
-
+
ByteString sKey( rTYP );
sKey.Append( '-' );
sKey.Append( rGID );
@@ -452,9 +452,9 @@ ByteString MergeDataFile::CreateKey( const ByteString& rTYP , const ByteString&
sKey.Append( rLID );
sKey.Append( '-' );
sKey.Append( rFilename );
-
+
if( bCaseSensitive ) return sKey; // officecfg case sensitive identifier
- else return sKey.ToUpperAscii();
+ else return sKey.ToUpperAscii();
}
diff --git a/l10ntools/source/srciter.cxx b/l10ntools/source/srciter.cxx
index 12dc8d52d14e..9c9efe295331 100644
--- a/l10ntools/source/srciter.cxx
+++ b/l10ntools/source/srciter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@
SourceTreeIterator::SourceTreeIterator(
const ByteString &rRootDirectory, const ByteString &rVersion , bool bLocal_in )
/*****************************************************************************/
- : bInExecute( FALSE ) , bLocal( bLocal_in )
+ : bInExecute( FALSE ) , bLocal( bLocal_in )
{
(void) rVersion ;
@@ -63,7 +63,7 @@ void SourceTreeIterator::ExecuteDirectory( transex::Directory& aDirectory )
{
if ( bInExecute ) {
rtl::OUString sDirName = aDirectory.getDirectoryName();
-
+
static rtl::OUString WCARD1 ( rtl::OUString::createFromAscii( "unxlng" ) );
static rtl::OUString WCARD2 ( rtl::OUString::createFromAscii( "unxsol" ) );
static rtl::OUString WCARD3 ( rtl::OUString::createFromAscii( "wntmsc" ) );
@@ -72,20 +72,20 @@ void SourceTreeIterator::ExecuteDirectory( transex::Directory& aDirectory )
static rtl::OUString WCARD6 ( rtl::OUString::createFromAscii( "unxubt" ) );
static rtl::OUString WCARD7 ( rtl::OUString::createFromAscii( ".svn" ) );
-
+
if( sDirName.indexOf( WCARD1 , 0 ) > -1 ||
sDirName.indexOf( WCARD2 , 0 ) > -1 ||
sDirName.indexOf( WCARD3 , 0 ) > -1 ||
sDirName.indexOf( WCARD4 , 0 ) > -1 ||
sDirName.indexOf( WCARD5 , 0 ) > -1 ||
sDirName.indexOf( WCARD6 , 0 ) > -1 ||
- sDirName.indexOf( WCARD7 , 0 ) > -1
- ) return;
+ sDirName.indexOf( WCARD7 , 0 ) > -1
+ ) return;
//printf("**** %s \n", OUStringToOString( sDirName , RTL_TEXTENCODING_UTF8 , sDirName.getLength() ).getStr() );
-
+
rtl::OUString sDirNameTmp = aDirectory.getFullName();
ByteString sDirNameTmpB( rtl::OUStringToOString( sDirNameTmp , RTL_TEXTENCODING_UTF8 , sDirName.getLength() ).getStr() );
-
+
#ifdef WNT
sDirNameTmpB.Append( ByteString("\\no_localization") );
#else
@@ -93,13 +93,13 @@ void SourceTreeIterator::ExecuteDirectory( transex::Directory& aDirectory )
#endif
//printf("**** %s \n", OUStringToOString( sDirNameTmp , RTL_TEXTENCODING_UTF8 , sDirName.getLength() ).getStr() );
- DirEntry aDE( sDirNameTmpB.GetBuffer() );
+ DirEntry aDE( sDirNameTmpB.GetBuffer() );
if( aDE.Exists() )
{
//printf("#### no_localization file found ... skipping");
return;
}
-
+
aDirectory.setSkipLinks( bSkipLinks );
aDirectory.readDirectory();
OnExecuteDirectory( aDirectory.getFullName() );
@@ -113,7 +113,7 @@ void SourceTreeIterator::ExecuteDirectory( transex::Directory& aDirectory )
BOOL SourceTreeIterator::StartExecute()
/*****************************************************************************/
{
-
+
bInExecute = TRUE; // FIXME
ExecuteDirectory( aRootDirectory );
diff --git a/l10ntools/source/tagtest.cxx b/l10ntools/source/tagtest.cxx
index 833879ee5ca8..0806319e21ba 100644
--- a/l10ntools/source/tagtest.cxx
+++ b/l10ntools/source/tagtest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,9 +37,9 @@
#include "gsicheck.hxx"
-#define HAS_FLAG( nFlags, nFlag ) ( ( nFlags & nFlag ) != 0 )
-#define SET_FLAG( nFlags, nFlag ) ( nFlags |= nFlag )
-#define RESET_FLAG( nFlags, nFlag ) ( nFlags &= ~nFlag ) // ~ = Bitweises NOT
+#define HAS_FLAG( nFlags, nFlag ) ( ( nFlags & nFlag ) != 0 )
+#define SET_FLAG( nFlags, nFlag ) ( nFlags |= nFlag )
+#define RESET_FLAG( nFlags, nFlag ) ( nFlags &= ~nFlag ) // ~ = Bitweises NOT
@@ -96,7 +96,7 @@ void TokenInfo::SplitTag( ParserMessageList &rErrorList )
String aDelims( String::CreateFromAscii( " \\=>/" ) );
String aPortion;
String aValue; // store the value of a property
- ByteString aName; // store the name of a property/tag
+ ByteString aName; // store the name of a property/tag
BOOL bCheckName = FALSE;
BOOL bCheckEmpty = FALSE;
sal_Unicode cDelim;
@@ -112,7 +112,7 @@ void TokenInfo::SplitTag( ParserMessageList &rErrorList )
aPortion = aTokenString.Copy( nLastPos, nCheckPos-nLastPos );
if ( aTokenString.GetChar( nCheckPos ) == '\\' )
- nCheckPos++;
+ nCheckPos++;
cDelim = aTokenString.GetChar( nCheckPos );
nCheckPos++;
@@ -129,7 +129,7 @@ void TokenInfo::SplitTag( ParserMessageList &rErrorList )
case ' ': aState = TC_HAS_TAG_NAME;
bCheckName = TRUE;
break;
- case '/':
+ case '/':
{
if ( aPortion.Len() == 0 )
{
@@ -216,7 +216,7 @@ void TokenInfo::SplitTag( ParserMessageList &rErrorList )
case TC_INSIDE_STRING:
switch ( cDelim )
{
- case '\"':
+ case '\"':
{
aState = TC_PROP_FINISHED;
aValue += aPortion;
@@ -236,7 +236,7 @@ void TokenInfo::SplitTag( ParserMessageList &rErrorList )
}
}
break;
- default:
+ default:
{
aState = TC_INSIDE_STRING;
aValue += aPortion;
@@ -336,7 +336,7 @@ void TokenInfo::SplitTag( ParserMessageList &rErrorList )
else
{
aName = ByteString( aPortion, RTL_TEXTENCODING_UTF8 );
- // "a-zA-Z_-.0-9"
+ // "a-zA-Z_-.0-9"
xub_StrLen nCount;
BOOL bBroken = FALSE;
const sal_Char* aBuf = aName.GetBuffer();
@@ -396,7 +396,7 @@ BOOL TokenInfo::IsPropertyRelevant( const ByteString &aName, const String &aValu
return FALSE;
if ( aTagName.EqualsAscii( "image" ) && (aName.Equals( "width" ) || aName.Equals( "height" )) )
return FALSE;
-
+
return TRUE;
}
@@ -438,10 +438,10 @@ BOOL TokenInfo::IsPropertyInvariant( const ByteString &aName, const String &aVal
BOOL TokenInfo::IsPropertyFixable( const ByteString &aName ) const
{
// name everything that is allowed to be fixed automatically here
- if ( (aTagName.EqualsAscii( "ahelp" ) && aName.Equals( "hid" ))
- || (aTagName.EqualsAscii( "link" ) && aName.Equals( "href" ))
- || (aTagName.EqualsAscii( "alt" ) && aName.Equals( "id" ))
- || (aTagName.EqualsAscii( "variable" ) && aName.Equals( "id" ))
+ if ( (aTagName.EqualsAscii( "ahelp" ) && aName.Equals( "hid" ))
+ || (aTagName.EqualsAscii( "link" ) && aName.Equals( "href" ))
+ || (aTagName.EqualsAscii( "alt" ) && aName.Equals( "id" ))
+ || (aTagName.EqualsAscii( "variable" ) && aName.Equals( "id" ))
|| (aTagName.EqualsAscii( "image" ) && aName.Equals( "src" ))
|| (aTagName.EqualsAscii( "image" ) && aName.Equals( "id" ) ))
return TRUE;
@@ -514,7 +514,7 @@ BOOL TokenInfo::MatchesTranslation( TokenInfo& rInfo, BOOL bGenErrors, ParserMes
}
}
- // if we reach here eather
+ // if we reach here eather
// the tags match completely or
// the tags match but not the properties and we generated errors for that
return TRUE;
@@ -579,7 +579,7 @@ struct Tag
static const Tag aKnownTags[] =
{
/* commenting oldstyle tags
-// { "<#GROUP_FORMAT>", TAG_GROUP_FORMAT },
+// { "<#GROUP_FORMAT>", TAG_GROUP_FORMAT },
{ "<#BOLD>", TAG_BOLDON },
{ "<#/BOLD>", TAG_BOLDOFF },
{ "<#ITALIC>", TAG_ITALICON },
@@ -587,12 +587,12 @@ static const Tag aKnownTags[] =
{ "<#UNDER>", TAG_UNDERLINEON },
{ "<#/UNDER>", TAG_UNDERLINEOFF },
-// { "<#GROUP_NOTALLOWED>", TAG_GROUP_NOTALLOWED },
+// { "<#GROUP_NOTALLOWED>", TAG_GROUP_NOTALLOWED },
{ "<#HELPID>", TAG_HELPID },
{ "<#MODIFY>", TAG_MODIFY },
{ "<#REFNR>", TAG_REFNR },
-// { "<#GROUP_STRUCTURE>", TAG_GROUP_STRUCTURE },
+// { "<#GROUP_STRUCTURE>", TAG_GROUP_STRUCTURE },
{ "<#NAME>", TAG_NAME },
{ "<#HREF>", TAG_HREF },
{ "<#AVIS>", TAG_AVIS },
@@ -608,13 +608,13 @@ static const Tag aKnownTags[] =
{ "<#GRAPHIC>", TAG_GRAPHIC },
{ "<#NEXTVERSION>", TAG_NEXTVERSION },
- // { "<#GROUP_SYSSWITCH>", TAG_GROUP_SYSSWITCH },
+ // { "<#GROUP_SYSSWITCH>", TAG_GROUP_SYSSWITCH },
{ "<#WIN>", TAG_WIN },
{ "<#UNIX>", TAG_UNIX },
{ "<#MAC>", TAG_MAC },
{ "<#OS2>", TAG_OS2 },
-// { "<#GROUP_PROGSWITCH>", TAG_GROUP_PROGSWITCH },
+// { "<#GROUP_PROGSWITCH>", TAG_GROUP_PROGSWITCH },
{ "<#WRITER>", TAG_WRITER },
{ "<#CALC>", TAG_CALC },
{ "<#DRAW>", TAG_DRAW },
@@ -625,7 +625,7 @@ static const Tag aKnownTags[] =
{ "<#CHART>", TAG_CHART },
{ "<#OFFICE>", TAG_OFFICE },
*/
-// { "<#TAG_GROUP_META>", TAG_GROUP_META },
+// { "<#TAG_GROUP_META>", TAG_GROUP_META },
{ "$[officefullname]", TAG_OFFICEFULLNAME },
{ "$[officename]", TAG_OFFICENAME },
{ "$[officepath]", TAG_OFFICEPATH },
@@ -636,10 +636,10 @@ static const Tag aKnownTags[] =
{ "$[portalversion]", TAG_PORTALVERSION },
{ "$[portalshortname]", TAG_PORTALSHORTNAME },
/* commenting oldstyle tags
-// { "<#TAG_GROUP_SINGLE>", TAG_GROUP_SINGLE },
+// { "<#TAG_GROUP_SINGLE>", TAG_GROUP_SINGLE },
{ "<#REFINSERT>", TAG_REFINSERT },
-// { "<#GROUP_MULTI>", TAG_GROUP_MULTI },
+// { "<#GROUP_MULTI>", TAG_GROUP_MULTI },
{ "<#END>", TAG_END },
{ "<#ELSE>", TAG_ELSE },
{ "<#VERSIONEND>", TAG_VERSIONEND },
@@ -742,7 +742,7 @@ TokenInfo SimpleParser::GetNextToken( ParserMessageList &rErrorList )
String SimpleParser::GetNextTokenString( ParserMessageList &rErrorList, USHORT &rTagStartPos )
{
-// USHORT nStyle1StartPos = aSource.SearchAscii( "<#", nPos );
+// USHORT nStyle1StartPos = aSource.SearchAscii( "<#", nPos );
USHORT nStyle2StartPos = aSource.SearchAscii( "$[", nPos );
USHORT nStyle3StartPos = aSource.SearchAscii( "\\<", nPos );
USHORT nStyle4StartPos = aSource.SearchAscii( "\\\\", nPos ); // this is only to kick out quoted backslashes
@@ -763,8 +763,8 @@ String SimpleParser::GetNextTokenString( ParserMessageList &rErrorList, USHORT &
return GetNextTokenString( rErrorList, rTagStartPos );
}
-/* if ( nStyle1StartPos < nStyle2StartPos && nStyle1StartPos <= nStyle3StartPos ) // <= to make sure our spechial tags are recognized before all others
- { // test for <# ... > style tokens
+/* if ( nStyle1StartPos < nStyle2StartPos && nStyle1StartPos <= nStyle3StartPos ) // <= to make sure our spechial tags are recognized before all others
+ { // test for <# ... > style tokens
USHORT nEndPos = aSource.SearchAscii( ">", nStyle1StartPos );
if ( nEndPos == STRING_NOTFOUND )
{ // Token is incomplete. Skip start and search for better ones
@@ -776,7 +776,7 @@ String SimpleParser::GetNextTokenString( ParserMessageList &rErrorList, USHORT &
return aSource.Copy( nStyle1StartPos, nEndPos-nStyle1StartPos +1 ).ToUpperAscii();
}
else*/ if ( nStyle2StartPos < nStyle3StartPos )
- { // test for $[ ... ] style tokens
+ { // test for $[ ... ] style tokens
USHORT nEndPos = aSource.SearchAscii( "]", nStyle2StartPos);
if ( nEndPos == STRING_NOTFOUND )
{ // Token is incomplete. Skip start and search for better ones
@@ -788,7 +788,7 @@ String SimpleParser::GetNextTokenString( ParserMessageList &rErrorList, USHORT &
return aSource.Copy( nStyle2StartPos, nEndPos-nStyle2StartPos +1 );
}
else
- { // test for \< ... \> style tokens
+ { // test for \< ... \> style tokens
USHORT nEndPos = aSource.SearchAscii( "\\>", nStyle3StartPos);
USHORT nQuotedBackPos = aSource.SearchAscii( "\\\\", nStyle3StartPos ); // this is only to kick out quoted backslashes
while ( nQuotedBackPos <= nEndPos && nQuotedBackPos != STRING_NOTFOUND )
@@ -877,7 +877,7 @@ void TokenParser::Parse( const String &aCode, ParserMessageList* pList )
ParseError( 17, "<#UNDER> expected before <#/UNDER>.", aTag );
}
break;
-/* case TAG_MISSPARENTHESIS:
+/* case TAG_MISSPARENTHESIS:
{
ParseError( 14, "missing closing parenthesis '>'", aTag );
}
@@ -1294,7 +1294,7 @@ void TokenParser::TagRef()
TokenId aThisToken = aTag.nId;
match( aTag, aTag );
if ( aThisToken != TAG_NAME )
- { // TAG_NAME has no TAG_END
+ { // TAG_NAME has no TAG_END
SET_FLAG( nActiveRefTypes, TAG_NOGROUP( aThisToken ) );
Paragraph();
match( aTag, TAG_END );
diff --git a/l10ntools/source/treeconfig.cxx b/l10ntools/source/treeconfig.cxx
index 9f02ff80ddc8..e8e6a4d5483b 100644
--- a/l10ntools/source/treeconfig.cxx
+++ b/l10ntools/source/treeconfig.cxx
@@ -21,7 +21,7 @@ namespace transex3
{
bool Treeconfig::parseConfig(){
-
+
string source_config_file = string( static_cast<ByteString>( Export::GetEnv("SOURCE_ROOT_DIR") ).GetBuffer() );
if( source_config_file.empty() )
{
@@ -44,7 +44,7 @@ bool Treeconfig::parseConfig(){
// if you are in some misc place like /tmp then return true
// => the application can decide what to do in case the function returns true thus how to handle pwd() path
bool Treeconfig::getActiveRepositories( vector<string>& active_repos ){
-
+
bool isPresent = isConfigFilePresent();
bool hasPath = false;
string pwd;
@@ -66,7 +66,7 @@ bool Treeconfig::getActiveRepositories( vector<string>& active_repos ){
}
else // I am NOT within SOURCE_ROOT_DIR
hasPath = true;
-
+
if( isPresent )
{
hasPath = false; // if config_file is present don't care about pwd
@@ -111,11 +111,11 @@ bool Treeconfig::isConfigFilePresent()
{
string config_file = Export::GetEnv( "SOURCE_ROOT_DIR" );
config_file += "/source_config";
-
+
struct stat status;
if( stat( config_file.c_str() , &status ) < 0 )
{
- return false;
+ return false;
}
#ifdef WNT
return ( status.st_mode & _S_IFREG ) && ( _access( config_file.c_str() , 4 ) >= 0 ) ;
diff --git a/l10ntools/source/utf8conv.cxx b/l10ntools/source/utf8conv.cxx
index 72dd18aa7398..9b96b084a721 100644
--- a/l10ntools/source/utf8conv.cxx
+++ b/l10ntools/source/utf8conv.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,13 +34,13 @@
// class UTF8Converter
//
-#define MAX_CONV_BUFFER_SIZE 0xFF00
+#define MAX_CONV_BUFFER_SIZE 0xFF00
-#define TO_CVTFLAGS (RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |\
+#define TO_CVTFLAGS (RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |\
RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT |\
RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT)
-#define FROM_CVTFLAGS (RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT |\
+#define FROM_CVTFLAGS (RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT |\
RTL_UNICODETOTEXT_FLAGS_INVALID_DEFAULT |\
RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACE |\
RTL_UNICODETOTEXT_FLAGS_PRIVATE_MAPTO0)
diff --git a/l10ntools/source/wtranode.cxx b/l10ntools/source/wtranode.cxx
index 1a4e48fd6231..56514ee886e3 100644
--- a/l10ntools/source/wtranode.cxx
+++ b/l10ntools/source/wtranode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,13 +36,13 @@
// NOT FULLY DECLARED SERVICES
-const ByteString sEmptyString("");
+const ByteString sEmptyString("");
-WTT_Node::WTT_Node( UINT8 i_nValue,
+WTT_Node::WTT_Node( UINT8 i_nValue,
WTT_Node * i_pDefaultBranch,
WTT_Node * i_pDefaultBranchForAlphas )
- : nValue(i_nValue),
+ : nValue(i_nValue),
eType(token_to_keep),
sReplaceString(sEmptyString),
// aBranches,
@@ -61,7 +61,7 @@ WTT_Node::WTT_Node( UINT8 i_nValue,
void
WTT_Node::SetBranch( UINT8 i_cBranch,
- WTT_Node * i_pNode )
+ WTT_Node * i_pNode )
{
if (i_cBranch < C_NR_OF_BRANCHES)
{
@@ -80,7 +80,7 @@ WTT_Node::~WTT_Node()
{
// Delete the tree hanging below this node:
- bIsOnDeleting = TRUE; // Avoid double deleting of multiple used nodes.
+ bIsOnDeleting = TRUE; // Avoid double deleting of multiple used nodes.
for (int i = 0; i < C_NR_OF_BRANCHES; i++)
{
diff --git a/l10ntools/source/wtratree.cxx b/l10ntools/source/wtratree.cxx
index 26838e2fb29d..dd5e327b91f7 100644
--- a/l10ntools/source/wtratree.cxx
+++ b/l10ntools/source/wtratree.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,25 +49,25 @@
#include "wtranode.hxx"
-const BRANCH_T BR_END = 0;
-const BRANCH_T BR_NONALPHA = 1;
-const BRANCH_T BR_HOTKEY = 2;
-const BRANCH_T BR_BACKSLASH = 3;
-const BRANCH_T BR_ALPHABASE = 4; /// @ATTENTION All branches not valid for words must be smaller than this value!
-const BRANCH_T BR_AE = 30;
-const BRANCH_T BR_OE = 31;
-const BRANCH_T BR_UE = 32;
-const BRANCH_T BR_SZ = 33;
-const BRANCH_T BR_MAX = 34; /// @ATTENTION Must be updated always!
+const BRANCH_T BR_END = 0;
+const BRANCH_T BR_NONALPHA = 1;
+const BRANCH_T BR_HOTKEY = 2;
+const BRANCH_T BR_BACKSLASH = 3;
+const BRANCH_T BR_ALPHABASE = 4; /// @ATTENTION All branches not valid for words must be smaller than this value!
+const BRANCH_T BR_AE = 30;
+const BRANCH_T BR_OE = 31;
+const BRANCH_T BR_UE = 32;
+const BRANCH_T BR_SZ = 33;
+const BRANCH_T BR_MAX = 34; /// @ATTENTION Must be updated always!
-const BRANCH_T BR_START = 0;
+const BRANCH_T BR_START = 0;
WordTransTree::WordTransTree(CharSet i_nWorkingCharSet)
- : sInput(0),
+ : sInput(0),
nInputLength(0),
pInputEnd(0),
sOutput(0),
@@ -86,7 +86,7 @@ WordTransTree::WordTransTree(CharSet i_nWorkingCharSet)
cCurHotkeySign(u_char('~'))
{
// Initialize parsing tree:
- pUnknownAlpha = new WTT_Node(BR_ALPHABASE,0,0); // This will be deleted as part of the parsing tree.
+ pUnknownAlpha = new WTT_Node(BR_ALPHABASE,0,0); // This will be deleted as part of the parsing tree.
for ( UINT8 i = BR_ALPHABASE; i < C_NR_OF_BRANCHES; i++)
{
pUnknownAlpha->SetBranch(i,pUnknownAlpha);
@@ -163,8 +163,8 @@ WordTransTree::~WordTransTree()
}
void
-WordTransTree::AddWordPair( const ByteString & i_sOldString,
- const ByteString & i_sReplaceString )
+WordTransTree::AddWordPair( const ByteString & i_sOldString,
+ const ByteString & i_sReplaceString )
{
if (i_sOldString.Len() == 0)
return;
@@ -185,14 +185,14 @@ WordTransTree::AddWordPair( const ByteString & i_sOldString,
pCurParseNode->SetBranch(cBranch,pBranch);
}
pCurParseNode = pBranch;
- } // end for
+ } // end for
pCurParseNode->SetAsTokenToReplace(i_sReplaceString);
}
void
-WordTransTree::InitTransformation( const char * i_sInput,
- UINT32 i_nInputLength,
- UINT32 i_nOutputMaxLength )
+WordTransTree::InitTransformation( const char * i_sInput,
+ UINT32 i_nInputLength,
+ UINT32 i_nOutputMaxLength )
{
sInput = (const u_char *)i_sInput;
nInputLength = i_nInputLength;
@@ -211,7 +211,7 @@ WordTransTree::InitTransformation( const char * i_sInput,
pOutputPosition = sOutput;
}
-/** pInputCurTokenStart and CurParseNode are updated just when
+/** pInputCurTokenStart and CurParseNode are updated just when
starting this function. After its end they must not be changed
till this functon is called again.
Outside this function pInputPositon and pOutputPosition are both
@@ -245,20 +245,20 @@ WordTransTree::TransformNextToken()
// Logic of the following. There are 9 possible cases -
// A = alphabetic letter, NA = non alphabetic, TB = token begin,
// Eot = end of text:
- // 1. A~A set hotkey to following letter, continue
- // 2. A~NA token end
- // 3. A~Eot token end
- // 4. NA~A token end
- // 5. NA~NA continue
- // 6. A~Eof continue
- // 7. TB~A set hotkey to following letter, continue
- // 8. TB~NA continue
- // 9. TB~Eot continue
+ // 1. A~A set hotkey to following letter, continue
+ // 2. A~NA token end
+ // 3. A~Eot token end
+ // 4. NA~A token end
+ // 5. NA~NA continue
+ // 6. A~Eof continue
+ // 7. TB~A set hotkey to following letter, continue
+ // 8. TB~NA continue
+ // 9. TB~Eot continue
// bNext and Prev are true, if there are alphabetic letters:
BOOL bNext = pInputPosition + 1 != pInputEnd
? CalculateBranch(pInputPosition[1]) >= BR_ALPHABASE
- : FALSE;
+ : FALSE;
BOOL bPrev = pCurParseNode->Value() >= BR_ALPHABASE;
if ( bNext && (bPrev || pCurParseNode == dpParsingTreeTop) )
@@ -272,7 +272,7 @@ WordTransTree::TransformNextToken()
}
// Case 2.,3.,4. :
- // so this should be handled as an end of a token.
+ // so this should be handled as an end of a token.
}
if (pCurParseNode->TokenType() == WTT_Node::token_to_keep)
{
@@ -283,9 +283,9 @@ WordTransTree::TransformNextToken()
{
Handle_TokenToTransform();
return eCurResult;
- } // endif (pCurParseNode->TokenType() == WTT_Node::token_to_keep)
- } // endif (pBranch == 0) else
- } // end for
+ } // endif (pCurParseNode->TokenType() == WTT_Node::token_to_keep)
+ } // endif (pBranch == 0) else
+ } // end for
// If here, the text end is reached
if (pCurParseNode->TokenType() == WTT_Node::token_to_keep)
@@ -309,7 +309,7 @@ WordTransTree::CurReplacingString() const
void
WordTransTree::Handle_Hotkey()
{
- if (cCurHotkey == 0) // Avoid to replace the first found hotkey by
+ if (cCurHotkey == 0) // Avoid to replace the first found hotkey by
// a later one - though this shouldn't happen anyway.
{
cCurHotkey = (pInputPosition+1) != pInputEnd ? pInputPosition[1] : 0;
@@ -336,8 +336,8 @@ WordTransTree::Handle_TokenToTransform()
// Find position of hotkey in replace-string:
USHORT nHotkeyPos = bHaveHotkey
- ? rReplace.Search(char(cCurHotkey))
- : STRING_NOTFOUND;
+ ? rReplace.Search(char(cCurHotkey))
+ : STRING_NOTFOUND;
if (nHotkeyPos == STRING_NOTFOUND && bHaveHotkey)
{
if (cCurHotkey < 128)
@@ -347,7 +347,7 @@ WordTransTree::Handle_TokenToTransform()
else
nHotkeyPos = rReplace.Search(tolower(char(cCurHotkey)));
}
- else // cCurHotkey >= 128
+ else // cCurHotkey >= 128
{
if (cCurHotkey == c_ae)
nHotkeyPos = rReplace.Search(char(c_AE));
@@ -361,14 +361,14 @@ WordTransTree::Handle_TokenToTransform()
nHotkeyPos = rReplace.Search(char(c_oe));
else if (cCurHotkey == c_UE)
nHotkeyPos = rReplace.Search(char(c_ue));
- } // endif (cCurHotkey < 128) else
+ } // endif (cCurHotkey < 128) else
if (nHotkeyPos == STRING_NOTFOUND)
{
eCurResult = HOTKEY_LOST;
bHaveHotkey = FALSE;
}
- } // endif (nHotkeyPos == STRING_NOT_FOUND && bHaveHotkey)
+ } // endif (nHotkeyPos == STRING_NOT_FOUND && bHaveHotkey)
UINT32 nOutputTokenLength = rReplace.Len() + (bHaveHotkey ? 1 : 0);
@@ -392,15 +392,15 @@ WordTransTree::Handle_TokenToTransform()
// Convert first letter into upper if necessary:
u_char cInStart = CalculateBranch(*pInputCurTokenStart) == BR_HOTKEY
- ? pInputCurTokenStart[1]
- : pInputCurTokenStart[0] ;
+ ? pInputCurTokenStart[1]
+ : pInputCurTokenStart[0] ;
u_char * pOutStart = nHotkeyPos == 0
- ? pOutputPosition + 1
- : pOutputPosition ;
+ ? pOutputPosition + 1
+ : pOutputPosition ;
if (isupper(cInStart) || cInStart > 127)
{ // Possibly cInStart is upper character:
if (isupper(cInStart) || cInStart == c_AE || cInStart == c_OE || cInStart == c_UE)
- { // Surely cInStart is upper character:
+ { // Surely cInStart is upper character:
u_char cOutStart = *pOutStart;
if (cOutStart < 128)
*pOutStart = toupper(cOutStart);
@@ -411,7 +411,7 @@ WordTransTree::Handle_TokenToTransform()
else if (cOutStart == c_ue)
*pOutStart = c_UE;
}
- } // endif (isupper(cInStart) || cInStart > 127)
+ } // endif (isupper(cInStart) || cInStart > 127)
pOutputPosition += nOutputTokenLength;
*pOutputPosition = '\0';
diff --git a/l10ntools/source/xgfconv.cxx b/l10ntools/source/xgfconv.cxx
index 9e1b46d75cbb..80545304de12 100644
--- a/l10ntools/source/xgfconv.cxx
+++ b/l10ntools/source/xgfconv.cxx
@@ -22,7 +22,7 @@ int _cdecl main( int argc, char *argv[] )
ByteString sInput( argv[ 1 ] );
ByteString sOutput( argv[ 2 ] );
-
+
SvFileStream aInput( String( sInput, RTL_TEXTENCODING_ASCII_US ), STREAM_STD_READ );
if ( !aInput.IsOpen()) {
fprintf( stderr, "ERROR: Unable to open input file!\n" );
@@ -48,7 +48,7 @@ int _cdecl main( int argc, char *argv[] )
CharSet aCharSet = Export::GetCharSet( nLangId );
if ( aCharSet != 0xFFFF && sText.Len()) {
sText = UTF8Converter::ConvertToUTF8( sText, aCharSet );
- ByteString sOutput = sFile;
+ ByteString sOutput = sFile;
sOutput += "\t";
sOutput += sText;
if ( !bFirst ) {
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index d93f7ffa3ce9..8267a5df6d0d 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,14 +48,14 @@ using namespace osl;
//
// class XMLChildNode
//
-
+
/*****************************************************************************/
-XMLChildNode::XMLChildNode( XMLParentNode *pPar )
+XMLChildNode::XMLChildNode( XMLParentNode *pPar )
/*****************************************************************************/
- : pParent( pPar )
-{
+ : pParent( pPar )
+{
if ( pParent )
- pParent->AddChild( this );
+ pParent->AddChild( this );
}
@@ -101,13 +101,13 @@ XMLParentNode::XMLParentNode( const XMLParentNode& obj)
pNode = obj.pChildList->GetObject( i );
if( pNode != NULL){
switch(pNode->GetNodeType()){
- case XML_NODE_TYPE_ELEMENT:
- AddChild( new XMLElement( *static_cast<XMLElement* >(pNode) ) ); break;
- case XML_NODE_TYPE_DATA:
+ case XML_NODE_TYPE_ELEMENT:
+ AddChild( new XMLElement( *static_cast<XMLElement* >(pNode) ) ); break;
+ case XML_NODE_TYPE_DATA:
AddChild( new XMLData ( *static_cast<XMLData* > (pNode) ) ); break;
- case XML_NODE_TYPE_COMMENT:
+ case XML_NODE_TYPE_COMMENT:
AddChild( new XMLComment( *static_cast<XMLComment* >(pNode) ) ); break;
- case XML_NODE_TYPE_DEFAULT:
+ case XML_NODE_TYPE_DEFAULT:
AddChild( new XMLDefault( *static_cast<XMLDefault* >(pNode) ) ); break;
default: fprintf(stdout,"XMLParentNode::XMLParentNode( const XMLParentNode& obj) strange obj");
}
@@ -155,11 +155,11 @@ void XMLParentNode::AddChild( XMLChildNode *pChild , int pos )
/*****************************************************************************/
int XMLParentNode::GetPosition( ByteString id ){
/*****************************************************************************/
- XMLElement* a;
+ XMLElement* a;
static const ByteString sEnusStr = ByteString(String::CreateFromAscii(ENGLISH_US_ISO).ToLowerAscii() , RTL_TEXTENCODING_ASCII_US ).ToLowerAscii();
static const ByteString sDeStr = ByteString(String::CreateFromAscii(GERMAN_ISO2).ToLowerAscii() , RTL_TEXTENCODING_ASCII_US ).ToLowerAscii();
-
+
if ( pChildList ){
for ( ULONG i = 0; i < pChildList->Count(); i++ ) {
XMLChildNode *pChild = pChildList->GetObject( i );
@@ -199,24 +199,24 @@ int XMLParentNode::RemoveChild( XMLElement *pRefElement )
elemLID.ToLowerAscii();
ByteString pRefLID( pRefElement->GetLanguageId() );
pRefLID.ToLowerAscii();
- if ( elemid.Equals(pRefElement->GetId())
- && elemLID.Equals( pRefLID ) )
+ if ( elemid.Equals(pRefElement->GetId())
+ && elemLID.Equals( pRefLID ) )
{
if( pRefElement->ToOString().compareTo( a->ToOString() )==0 ){
pChildList->Remove( i );
delete a; // Test
return i;
}
- }
+ }
}
-
+
}
}
return -1;
}
/*****************************************************************************/
-void XMLParentNode::RemoveAndDeleteAllChilds(){
+void XMLParentNode::RemoveAndDeleteAllChilds(){
/*****************************************************************************/
if ( pChildList ) {
for ( ULONG i = 0; i < pChildList->Count(); i++ )
@@ -232,8 +232,8 @@ XMLElement *XMLParentNode::GetChildElement( XMLElement *pRefElement )
for ( ULONG i = 0; i < pChildList->Count(); i++ ) {
XMLChildNode *pChild = pChildList->GetObject( i );
if ( pChild->GetNodeType() == XML_NODE_TYPE_ELEMENT )
- if ((( XMLElement * ) pChild )->GetName() ==
- pRefElement->GetName())
+ if ((( XMLElement * ) pChild )->GetName() ==
+ pRefElement->GetName())
{
XMLAttributeList *pList = pRefElement->GetAttributeList();
if ( !pList )
@@ -242,8 +242,8 @@ XMLElement *XMLParentNode::GetChildElement( XMLElement *pRefElement )
BOOL bMatch = FALSE;
for ( ULONG j = 0; j < pList->Count() && bMatch; j++ ) {
XMLAttribute *pAttribute = pList->GetObject( j );
- XMLAttribute *pCandidate =
- (( XMLElement * ) pChild )->GetAttribute(
+ XMLAttribute *pCandidate =
+ (( XMLElement * ) pChild )->GetAttribute(
*pAttribute );
if ( !pCandidate || !pAttribute->IsEqual( *pCandidate ))
bMatch = FALSE;
@@ -273,11 +273,11 @@ BOOL XMLFile::Write( ByteString &aFilename )
if ( aFilename.Len()) {
// retry harder if there is a NFS problem,
- for( int x = 1 ; x < 3 ; x++ ){ // this looks strange...yes!
- ofstream aFStream( aFilename.GetBuffer() , ios::out | ios::trunc );
+ for( int x = 1 ; x < 3 ; x++ ){ // this looks strange...yes!
+ ofstream aFStream( aFilename.GetBuffer() , ios::out | ios::trunc );
- if( !aFStream ) // From time to time the stream can not be opened the first time on NFS volumes,
- { // I wasn't able to track this down. I think this is an NFS issue .....
+ if( !aFStream ) // From time to time the stream can not be opened the first time on NFS volumes,
+ { // I wasn't able to track this down. I think this is an NFS issue .....
//cerr << "ERROR: - helpex - Can't write to tempfile " << aFilename.GetBuffer() << " No#" << x << "\n";
TimeValue aTime;
aTime.Seconds = 3;
@@ -290,11 +290,11 @@ BOOL XMLFile::Write( ByteString &aFilename )
// write out
Write( aFStream );
aFStream.close();
-
+
// check!
- DirEntry aTarget( aFilename );
- FileStat aFileStat( aTarget );
-
+ DirEntry aTarget( aFilename );
+ FileStat aFileStat( aTarget );
+
if( aFileStat.GetSize() < 1 )
{
//retry
@@ -310,7 +310,7 @@ BOOL XMLFile::Write( ByteString &aFilename )
}
cerr << "ERROR: - helpex - Can't create file " << aFilename.GetBuffer() << "\nPossible reason: Disk full ? Mounted NFS volume broken ? Wrong permissions ?\n";
exit( -1 );
- }
+ }
cerr << "ERROR: - helpex - Empty file name\n";
exit( -1 );
}
@@ -329,7 +329,7 @@ BOOL XMLFile::Write( ofstream &rStream , XMLNode *pCur )
XMLUtil& xmlutil = XMLUtil::Instance();
(void) xmlutil;
- if ( !pCur )
+ if ( !pCur )
Write( rStream, this );
else {
switch( pCur->GetNodeType()) {
@@ -364,7 +364,7 @@ BOOL XMLFile::Write( ofstream &rStream , XMLNode *pCur )
rStream << "</";
WriteString( rStream, pElement->GetName());
rStream << ">";
- }
+ }
}
break;
case XML_NODE_TYPE_DATA: {
@@ -378,24 +378,24 @@ BOOL XMLFile::Write( ofstream &rStream , XMLNode *pCur )
XMLComment *pComment = ( XMLComment * ) pCur;
rStream << "<!--";
WriteString( rStream, pComment->GetComment());
- rStream << "-->";
+ rStream << "-->";
}
- break;
+ break;
case XML_NODE_TYPE_DEFAULT: {
XMLDefault *pDefault = ( XMLDefault * ) pCur;
WriteString( rStream, pDefault->GetDefault());
}
- break;
+ break;
}
}
- return TRUE;
-}
+ return TRUE;
+}
void XMLFile::Print( XMLNode *pCur, USHORT nLevel )
{
- if ( !pCur )
+ if ( !pCur )
Print( this );
else {
switch( pCur->GetNodeType()) {
@@ -412,8 +412,8 @@ void XMLFile::Print( XMLNode *pCur, USHORT nLevel )
if ( pElement->GetAttributeList())
for ( ULONG j = 0; j < pElement->GetAttributeList()->Count(); j++ ){
ByteString aAttrName( *pElement->GetAttributeList()->GetObject( j ), RTL_TEXTENCODING_UTF8 );
- if( !aAttrName.EqualsIgnoreCaseAscii( XML_LANG ) ) {
- fprintf( stdout, " %s=\"%s\"",
+ if( !aAttrName.EqualsIgnoreCaseAscii( XML_LANG ) ) {
+ fprintf( stdout, " %s=\"%s\"",
aAttrName.GetBuffer(),
ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),
RTL_TEXTENCODING_UTF8 ).GetBuffer());
@@ -426,7 +426,7 @@ void XMLFile::Print( XMLNode *pCur, USHORT nLevel )
for ( ULONG k = 0; k < pElement->GetChildList()->Count(); k++ )
Print( pElement->GetChildList()->GetObject( k ), nLevel + 1 );
fprintf( stdout, "</%s>", ByteString( pElement->GetName(), RTL_TEXTENCODING_UTF8 ).GetBuffer());
- }
+ }
}
break;
case XML_NODE_TYPE_DATA: {
@@ -452,8 +452,8 @@ XMLFile::~XMLFile()
{
if( XMLStrings != NULL ){
XMLHashMap::iterator pos = XMLStrings->begin();
- for( ; pos != XMLStrings->end() ; ++pos ){
- delete pos->second; // Check and delete content also ?
+ for( ; pos != XMLStrings->end() ; ++pos ){
+ delete pos->second; // Check and delete content also ?
}
delete XMLStrings;
XMLStrings = NULL;
@@ -462,15 +462,15 @@ XMLFile::~XMLFile()
/*****************************************************************************/
XMLFile::XMLFile( const String &rFileName ) // the file name, empty if created from memory stream
/*****************************************************************************/
- : XMLParentNode( NULL ),
- sFileName ( rFileName ),
+ : XMLParentNode( NULL ),
+ sFileName ( rFileName ),
ID ( "id" ),
OLDREF ( "oldref" ),
XML_LANG ( "xml-lang" ),
XMLStrings ( NULL )
-
+
{
-// nodes_localize.insert( TagMap::value_type(ByteString(String::CreateFromAscii("bookmark_value"),RTL_TEXTENCODING_ASCII_US) , TRUE) );
+// nodes_localize.insert( TagMap::value_type(ByteString(String::CreateFromAscii("bookmark_value"),RTL_TEXTENCODING_ASCII_US) , TRUE) );
nodes_localize.insert( TagMap::value_type(ByteString(String::CreateFromAscii("bookmark"),RTL_TEXTENCODING_ASCII_US) , TRUE) );
nodes_localize.insert( TagMap::value_type(ByteString(String::CreateFromAscii("variable"),RTL_TEXTENCODING_ASCII_US) , TRUE) );
nodes_localize.insert( TagMap::value_type(ByteString(String::CreateFromAscii("paragraph"),RTL_TEXTENCODING_ASCII_US) , TRUE) );
@@ -484,9 +484,9 @@ void XMLFile::Extract( XMLFile *pCur )
/*****************************************************************************/
{
if( XMLStrings != NULL ) delete XMLStrings; // Elements ?
-
+
XMLStrings = new XMLHashMap();
- if ( !pCur )
+ if ( !pCur )
SearchL10NElements( this );
else {
if( pCur->GetNodeType()==XML_NODE_TYPE_FILE) {
@@ -502,11 +502,11 @@ void XMLFile::View(){
for(XMLHashMap::iterator pos=XMLStrings->begin(); pos!=XMLStrings->end();++pos){
fprintf(stdout,"\nid=%s\n",(pos->first).GetBuffer());
LangHashMap* elem=pos->second;
- for(LangHashMap::iterator pos2=elem->begin(); pos2!=elem->end();++pos2){
+ for(LangHashMap::iterator pos2=elem->begin(); pos2!=elem->end();++pos2){
fprintf( stdout,"\nlanguage=%s\n",(pos2->first).GetBuffer() );
cur=pos2->second;
fprintf(stdout,"\n%s\n",((XMLElement*)cur)->ToOString().getStr());
-
+
}
}
}
@@ -520,15 +520,15 @@ void XMLFile::InsertL10NElement( XMLElement* pElement ){
if( pElement->GetAttributeList() != NULL ){
for ( ULONG j = 0; j < pElement->GetAttributeList()->Count(); j++ ){
tmpStr=ByteString( *pElement->GetAttributeList()->GetObject( j ),RTL_TEXTENCODING_UTF8 );
- if( tmpStr.CompareTo(ID)==COMPARE_EQUAL ){ // Get the "id" Attribute
+ if( tmpStr.CompareTo(ID)==COMPARE_EQUAL ){ // Get the "id" Attribute
id = ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UTF8 );
}
- if( tmpStr.CompareTo( XML_LANG ) == COMPARE_EQUAL ){ // Get the "xml-lang" Attribute
+ if( tmpStr.CompareTo( XML_LANG ) == COMPARE_EQUAL ){ // Get the "xml-lang" Attribute
language = ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UTF8 );
}
}
- }else{
+ }else{
fprintf(stdout,"XMLFile::InsertL10NElement: No AttributeList found");
fprintf(stdout,"++++++++++++++++++++++++++++++++++++++++++++++++++");
Print( pElement , 0 );
@@ -536,12 +536,12 @@ void XMLFile::InsertL10NElement( XMLElement* pElement ){
}
XMLHashMap::iterator pos = XMLStrings->find( id );
- if( pos == XMLStrings->end() ){ // No instanze , create new one
+ if( pos == XMLStrings->end() ){ // No instanze , create new one
elem = new LangHashMap();
(*elem)[ language ]=pElement;
XMLStrings->insert( XMLHashMap::value_type( id , elem ) );
order.push_back( id );
- }else{ // Already there
+ }else{ // Already there
elem=pos->second;
if ( (*elem)[ language ] )
{
@@ -560,22 +560,22 @@ void XMLFile::showType(XMLParentNode* node){
case XML_NODE_TYPE_COMMENT: fprintf(stdout,"COMMENT\n") ;break;
case XML_NODE_TYPE_DATA: fprintf(stdout,"DATA\n") ;break;
case XML_NODE_TYPE_DEFAULT: fprintf(stdout,"DEFAULT\n") ;break;
- default: break;
+ default: break;
}
}
-XMLFile::XMLFile()
+XMLFile::XMLFile()
/*****************************************************************************/
- : XMLParentNode( NULL ),
+ : XMLParentNode( NULL ),
ID ( "id" ),
OLDREF ( "oldref" ),
XML_LANG ( "xml-lang" ),
XMLStrings ( NULL ){};
-XMLFile::XMLFile( const XMLFile& obj )
+XMLFile::XMLFile( const XMLFile& obj )
/*****************************************************************************/
- : XMLParentNode( obj ),
- sFileName ( obj.sFileName ),
+ : XMLParentNode( obj ),
+ sFileName ( obj.sFileName ),
ID ( "id" ),
OLDREF ( "oldref" ),
XML_LANG ( "xml-lang" ),
@@ -585,7 +585,7 @@ XMLFile::XMLFile( const XMLFile& obj )
{
nodes_localize =obj.nodes_localize;
order =obj.order;
-
+
}
}
/*****************************************************************************/
@@ -594,26 +594,26 @@ XMLFile& XMLFile::operator=(const XMLFile& obj){
if( this!=&obj ){
XMLParentNode::operator=(obj);
-
+
nodes_localize =obj.nodes_localize;
order =obj.order;
-
+
if( XMLStrings ) delete XMLStrings;
-
+
if( obj.XMLStrings )
{
- XMLStrings = new XMLHashMap();
+ XMLStrings = new XMLHashMap();
for( XMLHashMap::iterator pos = obj.XMLStrings->begin() ; pos != obj.XMLStrings->end() ; ++pos )
{
LangHashMap* elem=pos->second;
LangHashMap* newelem = new LangHashMap();
- for(LangHashMap::iterator pos2=elem->begin(); pos2!=elem->end();++pos2){
+ for(LangHashMap::iterator pos2=elem->begin(); pos2!=elem->end();++pos2){
(*newelem)[ pos2->first ] = new XMLElement( *pos2->second );
printf("*");
}
(*XMLStrings)[ pos->first ] = newelem;
}
- }
+ }
}
printf("done!\n");
return *this;
@@ -626,8 +626,8 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur , int pos)
{
static const ByteString LOCALIZE("localize");
static const ByteString THEID("id");
- bool bInsert = true;
- if ( !pCur )
+ bool bInsert = true;
+ if ( !pCur )
SearchL10NElements( this );
else {
switch( pCur->GetNodeType()) {
@@ -644,21 +644,21 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur , int pos)
case XML_NODE_TYPE_ELEMENT: {
XMLElement *pElement = ( XMLElement * ) pCur;
ByteString sName(pElement->GetName(),RTL_TEXTENCODING_ASCII_US);
- ByteString language,tmpStrVal,oldref;
+ ByteString language,tmpStrVal,oldref;
if ( pElement->GetAttributeList()){
for ( ULONG j = 0 , cnt = pElement->GetAttributeList()->Count(); j < cnt && bInsert; j++ ){
const ByteString tmpStr( *pElement->GetAttributeList()->GetObject( j ),RTL_TEXTENCODING_UTF8 );
- if( tmpStr.CompareTo(THEID)==COMPARE_EQUAL ){ // Get the "id" Attribute
+ if( tmpStr.CompareTo(THEID)==COMPARE_EQUAL ){ // Get the "id" Attribute
tmpStrVal=ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UTF8 );
//printf("Checking id = %s\n",tmpStrVal.GetBuffer() );
}
- if( tmpStr.CompareTo(LOCALIZE)==COMPARE_EQUAL ){ // Get the "localize" Attribute
+ if( tmpStr.CompareTo(LOCALIZE)==COMPARE_EQUAL ){ // Get the "localize" Attribute
bInsert=false;
}
- if( tmpStr.CompareTo(XML_LANG)==COMPARE_EQUAL ){ // Get the "xml-lang" Attribute
+ if( tmpStr.CompareTo(XML_LANG)==COMPARE_EQUAL ){ // Get the "xml-lang" Attribute
language=ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UTF8 );
}
- if( tmpStr.CompareTo(OLDREF)==COMPARE_EQUAL ){ // Get the "oldref" Attribute
+ if( tmpStr.CompareTo(OLDREF)==COMPARE_EQUAL ){ // Get the "oldref" Attribute
oldref=ByteString( pElement->GetAttributeList()->GetObject( j )->GetValue(),RTL_TEXTENCODING_UTF8 );
}
}
@@ -667,13 +667,13 @@ void XMLFile::SearchL10NElements( XMLParentNode *pCur , int pos)
pElement->SetOldRef ( oldref );
pElement->SetPos( pos );
}
-
- if ( bInsert && ( nodes_localize.find( sName.ToLowerAscii() ) != nodes_localize.end() ) )
+
+ if ( bInsert && ( nodes_localize.find( sName.ToLowerAscii() ) != nodes_localize.end() ) )
InsertL10NElement(pElement);
else if ( bInsert && pElement->GetChildList() ){
for ( ULONG k = 0; k < pElement->GetChildList()->Count(); k++ )
SearchL10NElements( (XMLParentNode*) pElement->GetChildList()->GetObject( k ) , k);
- }
+ }
}
break;
case XML_NODE_TYPE_DATA: {
@@ -700,8 +700,8 @@ bool XMLFile::CheckExportStatus( XMLParentNode *pCur )
const ByteString DEPRECATED("DEPRECATED");
const ByteString TOPIC("topic");
- bool bInsert = true;
- if ( !pCur )
+ bool bInsert = true;
+ if ( !pCur )
CheckExportStatus( this );
else {
switch( pCur->GetNodeType()) {
@@ -736,7 +736,7 @@ bool XMLFile::CheckExportStatus( XMLParentNode *pCur )
else if ( pElement->GetChildList() ){
for ( ULONG k = 0; k < pElement->GetChildList()->Count(); k++ )
CheckExportStatus( (XMLParentNode*) pElement->GetChildList()->GetObject( k ) );//, k);
- }
+ }
}
break;
}
@@ -754,18 +754,18 @@ USHORT XMLElement::GetNodeType()
/*****************************************************************************/
XMLElement::XMLElement(const XMLElement& obj)
/*****************************************************************************/
- :
- XMLParentNode ( obj ),
- sElementName ( obj.sElementName ),
+ :
+ XMLParentNode ( obj ),
+ sElementName ( obj.sElementName ),
pAttributes ( NULL ),
- project ( obj.project ),
- filename ( obj.filename ),
- id ( obj.id ),
- sOldRef ( obj.sOldRef ),
- resourceType ( obj.resourceType ),
+ project ( obj.project ),
+ filename ( obj.filename ),
+ id ( obj.id ),
+ sOldRef ( obj.sOldRef ),
+ resourceType ( obj.resourceType ),
languageId ( obj.languageId ),
- nPos ( obj.nPos )
-
+ nPos ( obj.nPos )
+
{
if ( obj.pAttributes ){
pAttributes = new XMLAttributeList();
@@ -779,12 +779,12 @@ XMLElement& XMLElement::operator=(const XMLElement& obj){
/*****************************************************************************/
if( this!=&obj ){
XMLParentNode::operator=(obj);
- sElementName =obj.sElementName;
- project =obj.project;
- filename =obj.filename;
- id =obj.id;
- sOldRef =obj.sOldRef;
- resourceType =obj.resourceType;
+ sElementName =obj.sElementName;
+ project =obj.project;
+ filename =obj.filename;
+ id =obj.id;
+ sOldRef =obj.sOldRef;
+ resourceType =obj.resourceType;
languageId =obj.languageId;
nPos =obj.nPos;
@@ -824,9 +824,9 @@ void XMLElement::ChangeLanguageTag( const String &rValue ){
}
}
XMLChildNode* pNode = NULL;
- XMLElement* pElem = NULL;
+ XMLElement* pElem = NULL;
XMLChildNodeList* pCList = GetChildList();
-
+
if( pCList != NULL ){
for ( ULONG i = 0; i < pCList->Count(); i++ ){
pNode = pCList->GetObject( i );
@@ -842,14 +842,14 @@ void XMLElement::ChangeLanguageTag( const String &rValue ){
}
}
/*****************************************************************************/
-XMLAttribute *XMLElement::GetAttribute( const String &rName )
+XMLAttribute *XMLElement::GetAttribute( const String &rName )
/*****************************************************************************/
{
if ( pAttributes )
for ( ULONG i = 0; i < pAttributes->Count(); i++ )
if ( *pAttributes->GetObject( i ) == rName )
return pAttributes->GetObject( i );
-
+
return NULL;
}
@@ -860,13 +860,13 @@ XMLElement::~XMLElement()
if ( pAttributes ) {
for ( ULONG i = 0; i < pAttributes->Count(); i++ )
delete pAttributes->GetObject( i );
-
+
delete pAttributes;
pAttributes = NULL;
}
}
/*****************************************************************************/
-bool XMLElement::Equals(OUString refStr){
+bool XMLElement::Equals(OUString refStr){
/*****************************************************************************/
return refStr.equals( ToOUString() );
}
@@ -894,7 +894,7 @@ OUString XMLElement::ToOUString(){
delete buffer;
return result;
}
-/*****************************************************************************/
+/*****************************************************************************/
void XMLElement::Print(XMLNode *pCur, OUStringBuffer& buffer , bool rootelement ){
/*****************************************************************************/
//YD FIXME somewhere COMMENT is defined as 4!
@@ -911,7 +911,7 @@ void XMLElement::Print(XMLNode *pCur, OUStringBuffer& buffer , bool rootelement
tmp=pElement->GetChildList()->GetObject( k );
Print( tmp, buffer , false);
}
- }
+ }
}
}
else{
@@ -919,20 +919,20 @@ void XMLElement::Print(XMLNode *pCur, OUStringBuffer& buffer , bool rootelement
switch( pCur->GetNodeType()) {
case XML_NODE_TYPE_ELEMENT: {
XMLElement *pElement = ( XMLElement * ) pCur;
-
+
if( !pElement->GetName().EqualsIgnoreCaseAscii( _COMMENT ) ){
- buffer.append( OUString::createFromAscii("\\<") );
+ buffer.append( OUString::createFromAscii("\\<") );
buffer.append( pElement->GetName() );
if ( pElement->GetAttributeList()){
for ( ULONG j = 0; j < pElement->GetAttributeList()->Count(); j++ ){
-
+
OUString aAttrName( *pElement->GetAttributeList()->GetObject( j ) );
if( !aAttrName.equalsIgnoreAsciiCase( XML_LANG ) ) {
buffer.append( OUString::createFromAscii(" ") );
buffer.append( aAttrName );
buffer.append( OUString::createFromAscii("=") );
buffer.append( OUString::createFromAscii("\\\"") );
- buffer.append( pElement->GetAttributeList()->GetObject( j )->GetValue() );
+ buffer.append( pElement->GetAttributeList()->GetObject( j )->GetValue() );
buffer.append( OUString::createFromAscii("\\\"") );
}
}
@@ -949,8 +949,8 @@ void XMLElement::Print(XMLNode *pCur, OUStringBuffer& buffer , bool rootelement
buffer.append( OUString::createFromAscii("\\</") );
buffer.append( pElement->GetName() );
buffer.append( OUString::createFromAscii("\\>") );
- }
- }
+ }
+ }
}
break;
case XML_NODE_TYPE_DATA: {
@@ -961,7 +961,7 @@ void XMLElement::Print(XMLNode *pCur, OUStringBuffer& buffer , bool rootelement
break;
case XML_NODE_TYPE_COMMENT: {
XMLComment *pComment = ( XMLComment * ) pCur;
- buffer.append( OUString::createFromAscii("<!--") );
+ buffer.append( OUString::createFromAscii("<!--") );
buffer.append( pComment->GetComment() );
buffer.append( OUString::createFromAscii("-->") );
}
@@ -986,10 +986,10 @@ void XMLElement::Print(XMLNode *pCur, OUStringBuffer& buffer , bool rootelement
/*****************************************************************************/
XMLData::XMLData(const XMLData& obj)
/*****************************************************************************/
- : XMLChildNode( obj ),
- sData( obj.sData ) ,
+ : XMLChildNode( obj ),
+ sData( obj.sData ) ,
isNewCreated ( obj.isNewCreated ){}
-
+
/*****************************************************************************/
XMLData& XMLData::operator=(const XMLData& obj){
/*****************************************************************************/
@@ -1001,9 +1001,9 @@ XMLData& XMLData::operator=(const XMLData& obj){
return *this;
}
/*****************************************************************************/
-void XMLData::AddData( const String &rData) {
+void XMLData::AddData( const String &rData) {
/*****************************************************************************/
- sData += rData;
+ sData += rData;
}
/*****************************************************************************/
@@ -1026,12 +1026,12 @@ USHORT XMLComment::GetNodeType()
/*****************************************************************************/
XMLComment::XMLComment(const XMLComment& obj)
/*****************************************************************************/
- : XMLChildNode( obj ),
+ : XMLChildNode( obj ),
sComment( obj.sComment ){}
-
+
/*****************************************************************************/
XMLComment& XMLComment::operator=(const XMLComment& obj){
-/*****************************************************************************/
+/*****************************************************************************/
if( this!=&obj ){
XMLChildNode::operator=( obj );
sComment = obj.sComment;
@@ -1052,9 +1052,9 @@ USHORT XMLDefault::GetNodeType()
/*****************************************************************************/
XMLDefault::XMLDefault(const XMLDefault& obj)
/*****************************************************************************/
- : XMLChildNode( obj ),
+ : XMLChildNode( obj ),
sDefault( obj.sDefault){}
-
+
/*****************************************************************************/
XMLDefault& XMLDefault::operator=(const XMLDefault& obj){
/*****************************************************************************/
@@ -1095,7 +1095,7 @@ SimpleXMLParser::~SimpleXMLParser()
}
/*****************************************************************************/
-void SimpleXMLParser::StartElementHandler(
+void SimpleXMLParser::StartElementHandler(
void *userData, const XML_Char *name, const XML_Char **atts )
/*****************************************************************************/
{
@@ -1104,7 +1104,7 @@ void SimpleXMLParser::StartElementHandler(
/*****************************************************************************/
-void SimpleXMLParser::EndElementHandler(
+void SimpleXMLParser::EndElementHandler(
void *userData, const XML_Char *name )
/*****************************************************************************/
{
@@ -1112,7 +1112,7 @@ void SimpleXMLParser::EndElementHandler(
}
/*****************************************************************************/
-void SimpleXMLParser::CharacterDataHandler(
+void SimpleXMLParser::CharacterDataHandler(
void *userData, const XML_Char *s, int len )
/*****************************************************************************/
{
@@ -1120,7 +1120,7 @@ void SimpleXMLParser::CharacterDataHandler(
}
/*****************************************************************************/
-void SimpleXMLParser::CommentHandler(
+void SimpleXMLParser::CommentHandler(
void *userData, const XML_Char *data )
/*****************************************************************************/
{
@@ -1128,7 +1128,7 @@ void SimpleXMLParser::CommentHandler(
}
/*****************************************************************************/
-void SimpleXMLParser::DefaultHandler(
+void SimpleXMLParser::DefaultHandler(
void *userData, const XML_Char *s, int len )
/*****************************************************************************/
{
@@ -1136,7 +1136,7 @@ void SimpleXMLParser::DefaultHandler(
}
/*****************************************************************************/
-void SimpleXMLParser::StartElement(
+void SimpleXMLParser::StartElement(
const XML_Char *name, const XML_Char **atts )
/*****************************************************************************/
{
@@ -1148,9 +1148,9 @@ void SimpleXMLParser::StartElement(
int i = 0;
while( atts[i] ) {
pElement->AddAttribute(
- String( XML_CHAR_TO_OUSTRING( atts[ i ] )),
- String( XML_CHAR_TO_OUSTRING( atts[ i + 1 ] )));
- i += 2;
+ String( XML_CHAR_TO_OUSTRING( atts[ i ] )),
+ String( XML_CHAR_TO_OUSTRING( atts[ i + 1 ] )));
+ i += 2;
}
}
@@ -1168,7 +1168,7 @@ void SimpleXMLParser::EndElement( const XML_Char *name )
}
/*****************************************************************************/
-void SimpleXMLParser::CharacterData(
+void SimpleXMLParser::CharacterData(
const XML_Char *s, int len )
/*****************************************************************************/
{
@@ -1194,20 +1194,20 @@ void SimpleXMLParser::Comment(
}
/*****************************************************************************/
-void SimpleXMLParser::Default(
+void SimpleXMLParser::Default(
const XML_Char *s, int len )
/*****************************************************************************/
{
pCurData = NULL;
- new XMLDefault(
- String( XML_CHAR_N_TO_OUSTRING( s, len )), pCurNode );
+ new XMLDefault(
+ String( XML_CHAR_N_TO_OUSTRING( s, len )), pCurNode );
}
/*****************************************************************************/
XMLFile *SimpleXMLParser::Execute( const String &rFullFileName , const String &rFileName, XMLFile* pXMLFileIn )
/*****************************************************************************/
{
-// printf("DBG: SimpleXMLParser::Execute( %s )", ByteString( rFileName , RTL_TEXTENCODING_ASCII_US ).GetBuffer() );
+// printf("DBG: SimpleXMLParser::Execute( %s )", ByteString( rFileName , RTL_TEXTENCODING_ASCII_US ).GetBuffer() );
aErrorInformation.eCode = XML_ERROR_NONE;
aErrorInformation.nLine = 0;
aErrorInformation.nColumn = 0;
@@ -1239,8 +1239,8 @@ XMLFile *SimpleXMLParser::Execute( SvMemoryStream *pStream )
if ( !pXMLFile )
pXMLFile = new XMLFile( String());
- pCurNode = pXMLFile;
- pCurData = NULL;
+ pCurNode = pXMLFile;
+ pCurData = NULL;
ULONG nPos = pStream->Tell();
pStream->Seek( STREAM_SEEK_TO_END );
@@ -1264,7 +1264,7 @@ XMLFile *SimpleXMLParser::Execute( SvMemoryStream *pStream )
aErrorInformation.nColumn = XML_GetErrorColumnNumber( aParser );
aErrorInformation.sMessage = String::CreateFromAscii( "ERROR: " );
- if ( pXMLFile->GetName().Len())
+ if ( pXMLFile->GetName().Len())
aErrorInformation.sMessage += pXMLFile->GetName();
else
aErrorInformation.sMessage += String::CreateFromAscii( "XML-File" );
@@ -1339,15 +1339,15 @@ void XMLUtil::QuotHTML( String &rString )
//case '\'': sReturn += "\'";i++;break;
//case '&' : sRetrun += "&";i++;break;
default: sReturn.append( SLASH );break;
-
+
}
}
- break;
-
- case '<':
- sReturn.append( QLT );
+ break;
+
+ case '<':
+ sReturn.append( QLT );
break;
-
+
case '>':
sReturn.append( QGT );
break;
@@ -1356,7 +1356,7 @@ void XMLUtil::QuotHTML( String &rString )
sReturn.append( QQUOT );
break;
-/* case '\'':
+/* case '\'':
sReturn += "&apos;";
break;
*/
@@ -1364,7 +1364,7 @@ void XMLUtil::QuotHTML( String &rString )
if (
( ( i + 4 ) < rString.Len()) &&
( String( rString.Copy( i, 5 ) ).Equals( QAMP ) )
- )
+ )
sReturn.append( rString.GetChar( i ) );
else
sReturn.append( QAMP );
@@ -1380,7 +1380,7 @@ void XMLUtil::QuotHTML( String &rString )
}
void XMLUtil::UnQuotHTML( String &rString ){
- UnQuotData( rString );
+ UnQuotData( rString );
}
void XMLUtil::UnQuotData( String &rString_in ){
@@ -1435,7 +1435,7 @@ void XMLUtil::dump(){
}
}
/*****************************************************************************/
-XMLUtil& XMLUtil::Instance(){
+XMLUtil& XMLUtil::Instance(){
/*****************************************************************************/
static XMLUtil instance;
return instance;
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx
index d62eacb05578..931ba76d73d0 100644
--- a/l10ntools/source/xrmmerge.cxx
+++ b/l10ntools/source/xrmmerge.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,16 +46,16 @@ extern "C" { int yyerror( char * ); }
extern "C" { int YYWarning( char * ); }
// defines to parse command line
-#define STATE_NON 0x0001
-#define STATE_INPUT 0x0002
-#define STATE_OUTPUT 0x0003
-#define STATE_PRJ 0x0004
-#define STATE_ROOT 0x0005
-#define STATE_MERGESRC 0x0006
-#define STATE_ERRORLOG 0x0007
-#define STATE_UTF8 0x000B
-#define STATE_LANGUAGES 0x000C
-#define STATE_ISOCODE99 0x000D
+#define STATE_NON 0x0001
+#define STATE_INPUT 0x0002
+#define STATE_OUTPUT 0x0003
+#define STATE_PRJ 0x0004
+#define STATE_ROOT 0x0005
+#define STATE_MERGESRC 0x0006
+#define STATE_ERRORLOG 0x0007
+#define STATE_UTF8 0x000B
+#define STATE_LANGUAGES 0x000C
+#define STATE_ISOCODE99 0x000D
// set of global variables
BOOL bEnableExport;
@@ -128,7 +128,7 @@ extern char *GetOutputFile( int argc, char* argv[])
else {
switch ( nState ) {
case STATE_NON: {
- return NULL; // no valid command line
+ return NULL; // no valid command line
}
case STATE_INPUT: {
sInputFileName = argv[ i ];
@@ -185,7 +185,7 @@ int InitXrmExport( char *pOutput , char* pFilename)
ByteString sOutput( pOutput );
ByteString sFilename( pFilename );
Export::InitLanguages( false );
-
+
if ( bMergeMode )
pParser = new XRMResMerge( sMergeSrc, sOutputFile, sFilename );
else if ( sOutputFile.Len()) {
@@ -323,7 +323,7 @@ int XRMResParser::Execute( int nToken, char * pToken )
sGID += ".";
sGID += GetAttribute( rToken, "id" );
//sLocalized = "1";
-
+
//sLocalized = "X:";
sLocalized = true;
break;
@@ -336,12 +336,12 @@ int XRMResParser::Execute( int nToken, char * pToken )
sLID = "";
sGID += ".";
sGID += GetAttribute( rToken, "id" );
-// if ( GetAttribute( rToken, "localized" ) == "false" )
-// sLocalized += "0";
+// if ( GetAttribute( rToken, "localized" ) == "false" )
+// sLocalized += "0";
// sLocalized = false;
-// else
-// sLocalized += "1";
- sLocalized = true;
+// else
+// sLocalized += "1";
+ sLocalized = true;
break;
case XRM_PARAGRAPH_END: {
@@ -446,9 +446,9 @@ void XRMResParser::ConvertStringToDBFormat( ByteString &rString )
do {
sResult = rString;
rString.EraseLeadingChars( _LF );
- // rString.EraseLeadingChars( ' ' );
+ // rString.EraseLeadingChars( ' ' );
rString.EraseLeadingChars( '\t' );
- // rString.EraseTrailingChars( ' ' );
+ // rString.EraseTrailingChars( ' ' );
rString.EraseTrailingChars( '\t' );
} while ( sResult != rString );
@@ -554,7 +554,7 @@ void XRMResExport::EndOfText(
)
/*****************************************************************************/
{
-
+
(void) rOpenTag; // FIXME
(void) rCloseTag; // FIXME
@@ -563,7 +563,7 @@ void XRMResExport::EndOfText(
char cSearch = 0x00;
ByteString sSearch( cSearch );
- // if ( !pResData->sText[ ByteString("en-US") ].Len() )
+ // if ( !pResData->sText[ ByteString("en-US") ].Len() )
// pResData->sText[ ByteString("en-US") ] = pResData->sText[ ByteString("de") ];
Export::FillInFallbacks( pResData );
@@ -572,7 +572,7 @@ void XRMResExport::EndOfText(
ByteString sCur;
for( unsigned int n = 0; n < aLanguages.size(); n++ ){
sCur = aLanguages[ n ];
-
+
ByteString sAct = pResData->sText[ sCur ];
//Export::UnquotHTML( sAct );
sAct.EraseAllChars( 0x0A );
@@ -581,15 +581,15 @@ void XRMResExport::EndOfText(
sOutput += sPath;
sOutput += "\t0\t";
sOutput += "readmeitem\t";
- sOutput += pResData->sId;
+ sOutput += pResData->sId;
// USE LID AS GID OR MERGE DON'T WORK
- //sOutput += pResData->sGId;
+ //sOutput += pResData->sGId;
sOutput += "\t";
- sOutput += pResData->sId;
+ sOutput += pResData->sId;
sOutput += "\t\t\t0\t";
sOutput += sCur;
sOutput += "\t";
-
+
sOutput += sAct; sOutput += "\t\t\t\t";
sOutput += sTimeStamp;
@@ -647,7 +647,7 @@ void XRMResMerge::WorkOnText(
if ( pMergeDataFile ) {
if ( !pResData ) {
ByteString sPlatform( "" );
-// pResData = new ResData( sPlatform, GetGID() , sFilename );
+// pResData = new ResData( sPlatform, GetGID() , sFilename );
pResData = new ResData( sPlatform, GetLID() , sFilename );
pResData->sId = GetLID();
@@ -657,7 +657,7 @@ void XRMResMerge::WorkOnText(
PFormEntrys *pEntrys = pMergeDataFile->GetPFormEntrys( pResData );
if ( pEntrys ) {
ByteString sContent;
- if ( Export::isAllowed( sLang ) &&
+ if ( Export::isAllowed( sLang ) &&
( pEntrys->GetText(
sContent, STRING_TYP_TEXT, sLang )) &&
( sContent != "-" ) && ( sContent.Len()))
diff --git a/o3tl/inc/o3tl/cow_wrapper.hxx b/o3tl/inc/o3tl/cow_wrapper.hxx
index 143905a1ab89..88820d6e2952 100644
--- a/o3tl/inc/o3tl/cow_wrapper.hxx
+++ b/o3tl/inc/o3tl/cow_wrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,12 +60,12 @@ namespace o3tl
{
typedef oslInterlockedCount ref_count_t;
static void incrementCount( ref_count_t& rCount ) { osl_incrementInterlockedCount(&rCount); }
- static bool decrementCount( ref_count_t& rCount )
- {
+ static bool decrementCount( ref_count_t& rCount )
+ {
if( rCount == 1 ) // caller is already the only/last reference
return false;
else
- return osl_decrementInterlockedCount(&rCount) != 0;
+ return osl_decrementInterlockedCount(&rCount) != 0;
}
};
@@ -178,13 +178,13 @@ void cow_wrapper_client::queryUnmodified() const
*/
struct impl_t : private boost::noncopyable
{
- impl_t() :
+ impl_t() :
m_value(),
m_ref_count(1)
{
}
- explicit impl_t( const T& v ) :
+ explicit impl_t( const T& v ) :
m_value(v),
m_ref_count(1)
{
@@ -208,14 +208,14 @@ void cow_wrapper_client::queryUnmodified() const
/** Default-construct wrapped type instance
*/
- cow_wrapper() :
+ cow_wrapper() :
m_pimpl( new impl_t() )
{
}
/** Copy-construct wrapped type instance from given object
*/
- explicit cow_wrapper( const value_type& r ) :
+ explicit cow_wrapper( const value_type& r ) :
m_pimpl( new impl_t(r) )
{
}
@@ -241,7 +241,7 @@ void cow_wrapper_client::queryUnmodified() const
release();
m_pimpl = rSrc.m_pimpl;
-
+
return *this;
}
@@ -254,7 +254,7 @@ void cow_wrapper_client::queryUnmodified() const
release();
m_pimpl = pimpl;
}
-
+
return m_pimpl->m_value;
}
@@ -274,14 +274,14 @@ void cow_wrapper_client::queryUnmodified() const
{
std::swap(m_pimpl, r.m_pimpl);
}
-
- pointer operator->() { return &make_unique(); }
+
+ pointer operator->() { return &make_unique(); }
value_type& operator*() { return make_unique(); }
const_pointer operator->() const { return &m_pimpl->m_value; }
const value_type& operator*() const { return m_pimpl->m_value; }
pointer get() { return &make_unique(); }
- const_pointer get() const { return &m_pimpl->m_value; }
+ const_pointer get() const { return &m_pimpl->m_value; }
/// true, if both cow_wrapper internally share the same object
bool same_object( const cow_wrapper& rOther ) const
@@ -294,25 +294,25 @@ void cow_wrapper_client::queryUnmodified() const
};
- template<class T, class P> inline bool operator==( const cow_wrapper<T,P>& a,
+ template<class T, class P> inline bool operator==( const cow_wrapper<T,P>& a,
const cow_wrapper<T,P>& b )
{
return a.same_object(b) ? true : *a == *b;
}
- template<class T, class P> inline bool operator!=( const cow_wrapper<T,P>& a,
+ template<class T, class P> inline bool operator!=( const cow_wrapper<T,P>& a,
const cow_wrapper<T,P>& b )
{
return a.same_object(b) ? false : *a != *b;
}
- template<class A, class B, class P> inline bool operator<( const cow_wrapper<A,P>& a,
+ template<class A, class B, class P> inline bool operator<( const cow_wrapper<A,P>& a,
const cow_wrapper<B,P>& b )
{
return *a < *b;
}
- template<class T, class P> inline void swap( cow_wrapper<T,P>& a,
+ template<class T, class P> inline void swap( cow_wrapper<T,P>& a,
cow_wrapper<T,P>& b )
{
a.swap(b);
diff --git a/o3tl/inc/o3tl/heap_ptr.hxx b/o3tl/inc/o3tl/heap_ptr.hxx
index 3fe1e1c6e541..025666c0bc7d 100644
--- a/o3tl/inc/o3tl/heap_ptr.hxx
+++ b/o3tl/inc/o3tl/heap_ptr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -105,7 +105,7 @@ class heap_ptr
const T & operator*() const;
T & operator*();
const T * operator->() const;
- T * operator->();
+ T * operator->();
/// True, if pHeapObject != 0.
#ifndef __SUNPRO_CC
@@ -123,33 +123,33 @@ class heap_ptr
Such, multiple assignment of the same pointer to the same
instance of heap_ptr<> is possible (though not recommended).
*/
- void reset(
+ void reset(
T * pass_heapObject );
/** @return An object on the heap that must be deleted by the caller,
or 0.
@postcond get() == 0;
*/
- T * release();
+ T * release();
void swap(
self & io_other );
/// True, if pHeapObject != 0.
- bool is() const;
- const T * get() const;
- T * get();
+ bool is() const;
+ const T * get() const;
+ T * get();
private:
// Forbidden functions:
heap_ptr( const self & ); /// Prevent copies.
- self & operator=( const self & ); /// Prevent copies.
+ self & operator=( const self & ); /// Prevent copies.
/// @attention Does not set ->pHeapObject = 0.
- void internal_delete();
+ void internal_delete();
// DATA
/// Will be deleted, when *this is destroyed.
- T * pHeapObject;
+ T * pHeapObject;
};
diff --git a/o3tl/inc/o3tl/lazy_update.hxx b/o3tl/inc/o3tl/lazy_update.hxx
index 08c7b12375c1..c8abfefd9abf 100644
--- a/o3tl/inc/o3tl/lazy_update.hxx
+++ b/o3tl/inc/o3tl/lazy_update.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,13 +103,13 @@ output( myValue.getOutValue() );
void setInValue( input_type const& rIn ) { Functor::m_bCacheDirty = true; m_aInput = rIn; }
input_type const& getInValue() const { return m_aInput; }
output_type const& getOutValue() const { return implUpdateValue(m_aInput); }
-
+
input_type& operator*() { Functor::m_bCacheDirty = true; return m_aInput; }
input_type* operator->() { Functor::m_bCacheDirty = true; return &m_aInput; }
output_type const& operator*() const { return implUpdateValue(m_aInput); }
output_type const* operator->() const { return &implUpdateValue(m_aInput); }
-
+
private:
input_type m_aInput;
};
@@ -180,25 +180,25 @@ output( myValue.getOutValue() );
// -----------------------------------------------------------------------------------------------------
- // partial specializations for the three LAZYUPDATE_* tags
+ // partial specializations for the three LAZYUPDATE_* tags
template< typename InputType, typename OutputType > class LazyUpdate<InputType,
OutputType,
- LAZYUPDATE_DIRECT_TAG> :
- public detail::LazyUpdateImpl<InputType,
- OutputType,
- detail::DefaultFunctor<InputType, OutputType> >
+ LAZYUPDATE_DIRECT_TAG> :
+ public detail::LazyUpdateImpl<InputType,
+ OutputType,
+ detail::DefaultFunctor<InputType, OutputType> >
{
public:
LazyUpdate() {}
- explicit LazyUpdate( InputType const& rIn ) :
- detail::LazyUpdateImpl<InputType,
- OutputType,
- detail::DefaultFunctor<InputType, OutputType> >(
+ explicit LazyUpdate( InputType const& rIn ) :
+ detail::LazyUpdateImpl<InputType,
+ OutputType,
+ detail::DefaultFunctor<InputType, OutputType> >(
rIn,
detail::LazyUpdateImpl<
- InputType,
- OutputType,
+ InputType,
+ OutputType,
detail::DefaultFunctor<InputType, OutputType> >::UNARY_CONSTRUCTOR_TAG )
{}
};
@@ -207,29 +207,29 @@ output( myValue.getOutValue() );
template< typename InputType, typename OutputType > class LazyUpdate<InputType,
OutputType,
- LAZYUPDATE_FUNCTION_TAG> :
- public detail::LazyUpdateImpl<InputType,
- OutputType,
+ LAZYUPDATE_FUNCTION_TAG> :
+ public detail::LazyUpdateImpl<InputType,
+ OutputType,
detail::FunctionPointer<
- InputType,
+ InputType,
OutputType,
OutputType (*)( InputType const& ) > >
{
public:
explicit LazyUpdate( OutputType (*pFunc)( InputType const& ) ) :
- detail::LazyUpdateImpl<InputType,
- OutputType,
+ detail::LazyUpdateImpl<InputType,
+ OutputType,
detail::FunctionPointer<
- InputType,
+ InputType,
OutputType,
OutputType (*)( InputType const& )> >(pFunc)
{}
LazyUpdate( OutputType (*pFunc)( InputType const& ),
InputType const& rIn ) :
- detail::LazyUpdateImpl<InputType,
- OutputType,
+ detail::LazyUpdateImpl<InputType,
+ OutputType,
detail::FunctionPointer<
- InputType,
+ InputType,
OutputType,
OutputType (*)( InputType const& )> >(pFunc,rIn)
{}
@@ -239,29 +239,29 @@ output( myValue.getOutValue() );
template< typename InputType, typename OutputType > class LazyUpdate<InputType,
OutputType,
- LAZYUPDATE_FUNCTOR_TAG> :
- public detail::LazyUpdateImpl<InputType,
- OutputType,
+ LAZYUPDATE_FUNCTOR_TAG> :
+ public detail::LazyUpdateImpl<InputType,
+ OutputType,
detail::FunctionPointer<
- InputType,
+ InputType,
OutputType,
boost::function1<OutputType,InputType> > >
{
public:
explicit LazyUpdate( boost::function1<OutputType,InputType> const& rFunc ) :
- detail::LazyUpdateImpl<InputType,
- OutputType,
+ detail::LazyUpdateImpl<InputType,
+ OutputType,
detail::FunctionPointer<
- InputType,
+ InputType,
OutputType,
boost::function1<OutputType,InputType> > >(rFunc)
{}
LazyUpdate( boost::function1<OutputType,InputType> const& rFunc,
InputType const& rIn ) :
- detail::LazyUpdateImpl<InputType,
- OutputType,
+ detail::LazyUpdateImpl<InputType,
+ OutputType,
detail::FunctionPointer<
- InputType,
+ InputType,
OutputType,
boost::function1<OutputType,InputType> > >(rFunc,rIn)
{}
diff --git a/o3tl/inc/o3tl/range.hxx b/o3tl/inc/o3tl/range.hxx
index 633415ca4b47..e12e3faa6204 100644
--- a/o3tl/inc/o3tl/range.hxx
+++ b/o3tl/inc/o3tl/range.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/o3tl/inc/o3tl/vector_pool.hxx b/o3tl/inc/o3tl/vector_pool.hxx
index da562e3eb000..1198e4e6d79b 100644
--- a/o3tl/inc/o3tl/vector_pool.hxx
+++ b/o3tl/inc/o3tl/vector_pool.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,14 +39,14 @@ namespace o3tl
{
namespace detail
{
- template<typename ValueType, class Container> class simple_pool_impl :
+ template<typename ValueType, class Container> class simple_pool_impl :
public Container
{
typedef typename Container::value_type value_type;
std::ptrdiff_t mnFirstFreeIndex;
public:
- simple_pool_impl() :
+ simple_pool_impl() :
mnFirstFreeIndex(-1)
{}
@@ -103,7 +103,7 @@ namespace o3tl
{}
ValueType value;
- std::ptrdiff_t nextFree;
+ std::ptrdiff_t nextFree;
};
};
}
@@ -124,8 +124,8 @@ myPool[nIdx] = myVal;
myPool.free(nIdx);
</pre>
*/
- template<typename ValueType> struct vector_pool :
- public detail::simple_pool_impl<ValueType,
+ template<typename ValueType> struct vector_pool :
+ public detail::simple_pool_impl<ValueType,
std::vector<typename detail::struct_from_value<ValueType>::type > >
{};
}
diff --git a/o3tl/qa/cow_wrapper_clients.cxx b/o3tl/qa/cow_wrapper_clients.cxx
index dd71e326d7fc..a66995febf06 100644
--- a/o3tl/qa/cow_wrapper_clients.cxx
+++ b/o3tl/qa/cow_wrapper_clients.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ cow_wrapper_client2::cow_wrapper_client2() : maImpl()
{
}
-cow_wrapper_client2::cow_wrapper_client2( int nVal ) :
+cow_wrapper_client2::cow_wrapper_client2( int nVal ) :
maImpl( cow_wrapper_client2_impl(nVal) )
{
}
@@ -59,7 +59,7 @@ cow_wrapper_client2::~cow_wrapper_client2()
{
}
-cow_wrapper_client2::cow_wrapper_client2( const cow_wrapper_client2& rSrc ) :
+cow_wrapper_client2::cow_wrapper_client2( const cow_wrapper_client2& rSrc ) :
maImpl(rSrc.maImpl)
{
}
@@ -81,34 +81,34 @@ int cow_wrapper_client2::queryUnmodified() const
return maImpl->getValue();
}
-void cow_wrapper_client2::makeUnique()
-{
- maImpl.make_unique();
+void cow_wrapper_client2::makeUnique()
+{
+ maImpl.make_unique();
}
-bool cow_wrapper_client2::is_unique() const
-{
- return maImpl.is_unique();
+bool cow_wrapper_client2::is_unique() const
+{
+ return maImpl.is_unique();
}
oslInterlockedCount cow_wrapper_client2::use_count() const
-{
- return maImpl.use_count();
+{
+ return maImpl.use_count();
}
void cow_wrapper_client2::swap( cow_wrapper_client2& r )
-{
- o3tl::swap(maImpl, r.maImpl);
-}
+{
+ o3tl::swap(maImpl, r.maImpl);
+}
bool cow_wrapper_client2::operator==( const cow_wrapper_client2& rRHS ) const
-{
- return maImpl == rRHS.maImpl;
+{
+ return maImpl == rRHS.maImpl;
}
bool cow_wrapper_client2::operator!=( const cow_wrapper_client2& rRHS ) const
-{
- return maImpl != rRHS.maImpl;
+{
+ return maImpl != rRHS.maImpl;
}
-bool cow_wrapper_client2::operator<( const cow_wrapper_client2& rRHS ) const
-{
- return maImpl < rRHS.maImpl;
+bool cow_wrapper_client2::operator<( const cow_wrapper_client2& rRHS ) const
+{
+ return maImpl < rRHS.maImpl;
}
// ---------------------------------------------------------------------------
@@ -117,7 +117,7 @@ cow_wrapper_client3::cow_wrapper_client3() : maImpl()
{
}
-cow_wrapper_client3::cow_wrapper_client3( int nVal ) :
+cow_wrapper_client3::cow_wrapper_client3( int nVal ) :
maImpl( cow_wrapper_client2_impl(nVal) )
{
}
@@ -126,7 +126,7 @@ cow_wrapper_client3::~cow_wrapper_client3()
{
}
-cow_wrapper_client3::cow_wrapper_client3( const cow_wrapper_client3& rSrc ) :
+cow_wrapper_client3::cow_wrapper_client3( const cow_wrapper_client3& rSrc ) :
maImpl(rSrc.maImpl)
{
}
@@ -148,34 +148,34 @@ int cow_wrapper_client3::queryUnmodified() const
return maImpl->getValue();
}
-void cow_wrapper_client3::makeUnique()
-{
- maImpl.make_unique();
+void cow_wrapper_client3::makeUnique()
+{
+ maImpl.make_unique();
}
-bool cow_wrapper_client3::is_unique() const
-{
- return maImpl.is_unique();
+bool cow_wrapper_client3::is_unique() const
+{
+ return maImpl.is_unique();
}
oslInterlockedCount cow_wrapper_client3::use_count() const
-{
- return maImpl.use_count();
+{
+ return maImpl.use_count();
}
void cow_wrapper_client3::swap( cow_wrapper_client3& r )
-{
- o3tl::swap(maImpl, r.maImpl);
-}
+{
+ o3tl::swap(maImpl, r.maImpl);
+}
bool cow_wrapper_client3::operator==( const cow_wrapper_client3& rRHS ) const
-{
- return maImpl == rRHS.maImpl;
+{
+ return maImpl == rRHS.maImpl;
}
bool cow_wrapper_client3::operator!=( const cow_wrapper_client3& rRHS ) const
-{
- return maImpl != rRHS.maImpl;
+{
+ return maImpl != rRHS.maImpl;
}
-bool cow_wrapper_client3::operator<( const cow_wrapper_client3& rRHS ) const
-{
- return maImpl < rRHS.maImpl;
+bool cow_wrapper_client3::operator<( const cow_wrapper_client3& rRHS ) const
+{
+ return maImpl < rRHS.maImpl;
}
} // namespace o3tltests
diff --git a/o3tl/qa/cow_wrapper_clients.hxx b/o3tl/qa/cow_wrapper_clients.hxx
index 88ea03cb9a65..410e0943219a 100644
--- a/o3tl/qa/cow_wrapper_clients.hxx
+++ b/o3tl/qa/cow_wrapper_clients.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ public:
void makeUnique() { maImpl.make_unique(); }
bool is_unique() const { return maImpl.is_unique(); }
oslInterlockedCount use_count() const { return maImpl.use_count(); }
- void swap( cow_wrapper_client1& r ) { o3tl::swap(maImpl, r.maImpl); }
+ void swap( cow_wrapper_client1& r ) { o3tl::swap(maImpl, r.maImpl); }
bool operator==( const cow_wrapper_client1& rRHS ) const { return maImpl == rRHS.maImpl; }
bool operator!=( const cow_wrapper_client1& rRHS ) const { return maImpl != rRHS.maImpl; }
diff --git a/o3tl/qa/export.map b/o3tl/qa/export.map
index 3308588ef6f8..0dbbcc5a7372 100644
--- a/o3tl/qa/export.map
+++ b/o3tl/qa/export.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/o3tl/qa/test-heap_ptr.cxx b/o3tl/qa/test-heap_ptr.cxx
index 5fab1ba12ae6..d2feda2925e6 100644
--- a/o3tl/qa/test-heap_ptr.cxx
+++ b/o3tl/qa/test-heap_ptr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/o3tl/qa/test-range.cxx b/o3tl/qa/test-range.cxx
index 8183e2d06360..abe4ae61ade9 100644
--- a/o3tl/qa/test-range.cxx
+++ b/o3tl/qa/test-range.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/o3tl/qa/test-vector_pool.cxx b/o3tl/qa/test-vector_pool.cxx
index 975dd8b98a82..029db845ca2e 100644
--- a/o3tl/qa/test-vector_pool.cxx
+++ b/o3tl/qa/test-vector_pool.cxx
@@ -58,8 +58,8 @@ public:
CPPUNIT_ASSERT_MESSAGE("allocator value semantics 3 after fragmentation", aPool.get(nIdx3) == 2 );
}
- // Change the following lines only, if you add, remove or rename
- // member functions of the current class,
+ // Change the following lines only, if you add, remove or rename
+ // member functions of the current class,
// because these macros are need by auto register mechanism.
CPPUNIT_TEST_SUITE(vector_pool_test);
diff --git a/padmin/source/adddlg.cxx b/padmin/source/adddlg.cxx
index 453a7668b772..28dca6b79488 100644
--- a/padmin/source/adddlg.cxx
+++ b/padmin/source/adddlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -153,7 +153,7 @@ void APChooseDriverPage::updateDrivers( bool bRefresh, const rtl::OUString& rSel
std::list< rtl::OUString > aDrivers;
psp::PPDParser::getKnownPPDDrivers( aDrivers, bRefresh );
-
+
rtl::OUString aSelectDriver( psp::PPDParser::getPPDPrinterName( rSelectDriver ) );
rtl::OUString aSelectedEntry;
@@ -270,7 +270,7 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton )
std::list< rtl::OUString > aDirs;
// get only psprint's directories, not eventual system dirs
psp::getPrinterPathList( aDirs, NULL );
- std::list< rtl::OUString >::iterator dir;
+ std::list< rtl::OUString >::iterator dir;
for( dir = aDirs.begin(); dir != aDirs.end(); ++dir )
{
::std::list< String > aFiles;
@@ -388,9 +388,9 @@ APCommandPage::APCommandPage( AddPrinterDialog* pParent, DeviceKind::type eKind
}
switch( m_eKind )
{
- case DeviceKind::Printer: CommandStore::getPrintCommands( aCommands );break;
- case DeviceKind::Fax: CommandStore::getFaxCommands( aCommands );break;
- case DeviceKind::Pdf: CommandStore::getPdfCommands( aCommands );break;
+ case DeviceKind::Printer: CommandStore::getPrintCommands( aCommands );break;
+ case DeviceKind::Fax: CommandStore::getFaxCommands( aCommands );break;
+ case DeviceKind::Pdf: CommandStore::getPdfCommands( aCommands );break;
}
// adjust height of command text and help button
Rectangle aPosSize( m_aCommandTxt.GetPosPixel(), m_aCommandTxt.GetSizePixel() );
@@ -433,9 +433,9 @@ APCommandPage::~APCommandPage()
aCommands.push_back( aLastCommand );
switch( m_eKind )
{
- case DeviceKind::Printer: CommandStore::setPrintCommands( aCommands );break;
- case DeviceKind::Fax: CommandStore::setFaxCommands( aCommands );break;
- case DeviceKind::Pdf: CommandStore::setPdfCommands( aCommands );break;
+ case DeviceKind::Printer: CommandStore::setPrintCommands( aCommands );break;
+ case DeviceKind::Fax: CommandStore::setFaxCommands( aCommands );break;
+ case DeviceKind::Pdf: CommandStore::setPdfCommands( aCommands );break;
}
}
@@ -546,11 +546,11 @@ APOldPrinterPage::APOldPrinterPage( AddPrinterDialog* pParent )
String aUPrinter( AddPrinterDialog::uniquePrinterName( String( aPrinter, aEncoding ) ) );
PrinterInfo aInfo;
- aInfo.m_aDriverName = String( aNewDriver, aEncoding );
- aInfo.m_pParser = pParser;
+ aInfo.m_aDriverName = String( aNewDriver, aEncoding );
+ aInfo.m_pParser = pParser;
aInfo.m_aContext.setParser( pParser );
- aInfo.m_aPrinterName = aUPrinter;
- aInfo.m_aCommand = String( aCommand, aEncoding );
+ aInfo.m_aPrinterName = aUPrinter;
+ aInfo.m_aCommand = String( aCommand, aEncoding );
// read the printer settings
ByteString aGroup( aDriver );
diff --git a/padmin/source/adddlg.hxx b/padmin/source/adddlg.hxx
index a8494d26d5d6..98dd93311a67 100644
--- a/padmin/source/adddlg.hxx
+++ b/padmin/source/adddlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
#include "vcl/combobox.hxx"
#include "vcl/printerinfomanager.hxx"
-namespace padmin
+namespace padmin
{
class AddPrinterDialog;
@@ -48,12 +48,12 @@ namespace DeviceKind { enum type { Printer, Fax, Pdf }; }
class APTabPage : public TabPage
{
- String m_aTitle;
+ String m_aTitle;
protected:
- AddPrinterDialog* m_pParent;
+ AddPrinterDialog* m_pParent;
public:
APTabPage( AddPrinterDialog* pParent, const ResId& rResId );
-
+
// returns false if information is incomplete or invalid
virtual bool check() = 0;
virtual void fill( ::psp::PrinterInfo& rInfo ) = 0;
@@ -62,11 +62,11 @@ public:
class APChooseDevicePage : public APTabPage
{
- RadioButton m_aPrinterBtn;
- RadioButton m_aFaxBtn;
- RadioButton m_aPDFBtn;
- RadioButton m_aOldBtn;
- FixedText m_aOverTxt;
+ RadioButton m_aPrinterBtn;
+ RadioButton m_aFaxBtn;
+ RadioButton m_aPDFBtn;
+ RadioButton m_aOldBtn;
+ FixedText m_aOverTxt;
public:
APChooseDevicePage( AddPrinterDialog* pParent );
~APChooseDevicePage();
@@ -75,72 +75,72 @@ public:
bool isFax() { return m_aFaxBtn.IsChecked(); }
bool isPDF() { return m_aPDFBtn.IsChecked(); }
bool isOld() { return m_aOldBtn.IsChecked(); }
-
-
+
+
virtual bool check();
virtual void fill( ::psp::PrinterInfo& rInfo );
};
class APChooseDriverPage : public APTabPage
{
- FixedText m_aDriverTxt;
- DelListBox m_aDriverBox;
- PushButton m_aAddBtn;
- PushButton m_aRemBtn;
+ FixedText m_aDriverTxt;
+ DelListBox m_aDriverBox;
+ PushButton m_aAddBtn;
+ PushButton m_aRemBtn;
- String m_aRemStr;
- String m_aLastPrinterName;
+ String m_aRemStr;
+ String m_aLastPrinterName;
DECL_LINK( ClickBtnHdl, PushButton* );
DECL_LINK( DelPressedHdl, ListBox* );
-
+
void updateDrivers( bool bRefresh = false, const rtl::OUString& rSelectDriver = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SGENPRT" ) ) );
public:
APChooseDriverPage( AddPrinterDialog* pParent );
~APChooseDriverPage();
-
+
virtual bool check();
virtual void fill( ::psp::PrinterInfo& rInfo );
};
class APNamePage : public APTabPage
{
- FixedText m_aNameTxt;
- Edit m_aNameEdt;
- CheckBox m_aDefaultBox;
- CheckBox m_aFaxSwallowBox;
+ FixedText m_aNameTxt;
+ Edit m_aNameEdt;
+ CheckBox m_aDefaultBox;
+ CheckBox m_aFaxSwallowBox;
public:
APNamePage( AddPrinterDialog* pParent, const String& rInitName, DeviceKind::type eKind );
~APNamePage();
- bool isDefault() { return m_aDefaultBox.IsChecked(); }
+ bool isDefault() { return m_aDefaultBox.IsChecked(); }
bool isFaxSwallow() { return m_aFaxSwallowBox.IsChecked(); }
void setText( const String& rText ) { m_aNameEdt.SetText( rText ); }
-
+
virtual bool check();
virtual void fill( ::psp::PrinterInfo& rInfo );
};
class APCommandPage : public APTabPage
{
- FixedText m_aCommandTxt;
- ComboBox m_aCommandBox;
- PushButton m_aHelpBtn;
- String m_aHelpTxt;
- FixedText m_aPdfDirTxt;
- Edit m_aPdfDirEdt;
- PushButton m_aPdfDirBtn;
+ FixedText m_aCommandTxt;
+ ComboBox m_aCommandBox;
+ PushButton m_aHelpBtn;
+ String m_aHelpTxt;
+ FixedText m_aPdfDirTxt;
+ Edit m_aPdfDirEdt;
+ PushButton m_aPdfDirBtn;
- DeviceKind::type m_eKind;
+ DeviceKind::type m_eKind;
DECL_LINK( ClickBtnHdl, PushButton* );
DECL_LINK( ModifyHdl, ComboBox* );
public:
-
+
APCommandPage( AddPrinterDialog* pParent, DeviceKind::type eKind );
~APCommandPage();
-
+
virtual bool check();
virtual void fill( ::psp::PrinterInfo& rInfo );
@@ -149,17 +149,17 @@ public:
class APOldPrinterPage : public APTabPage
{
- FixedText m_aOldPrinterTxt;
- MultiListBox m_aOldPrinterBox;
- PushButton m_aSelectAllBtn;
+ FixedText m_aOldPrinterTxt;
+ MultiListBox m_aOldPrinterBox;
+ PushButton m_aSelectAllBtn;
- ::std::list< ::psp::PrinterInfo > m_aOldPrinters;
+ ::std::list< ::psp::PrinterInfo > m_aOldPrinters;
DECL_LINK( ClickBtnHdl, PushButton* );
public:
APOldPrinterPage( AddPrinterDialog* pParent );
~APOldPrinterPage();
-
+
virtual bool check();
virtual void fill( ::psp::PrinterInfo& rInfo );
@@ -168,9 +168,9 @@ public:
class APFaxDriverPage : public APTabPage
{
- FixedText m_aFaxTxt;
- RadioButton m_aDefBtn;
- RadioButton m_aSelectBtn;
+ FixedText m_aFaxTxt;
+ RadioButton m_aDefBtn;
+ RadioButton m_aSelectBtn;
public:
APFaxDriverPage( AddPrinterDialog* pParent );
~APFaxDriverPage();
@@ -183,10 +183,10 @@ public:
class APPdfDriverPage : public APTabPage
{
- FixedText m_aPdfTxt;
- RadioButton m_aDefBtn;
- RadioButton m_aDistBtn;
- RadioButton m_aSelectBtn;
+ FixedText m_aPdfTxt;
+ RadioButton m_aDefBtn;
+ RadioButton m_aDistBtn;
+ RadioButton m_aSelectBtn;
public:
APPdfDriverPage( AddPrinterDialog* pParent );
~APPdfDriverPage();
@@ -200,37 +200,37 @@ public:
class AddPrinterDialog : public ModalDialog
{
- CancelButton m_aCancelPB;
- PushButton m_aPrevPB;
- PushButton m_aNextPB;
- OKButton m_aFinishPB;
- FixedLine m_aLine;
- TitleImage m_aTitleImage;
-
- ::psp::PrinterInfo m_aPrinter;
-
- APTabPage* m_pCurrentPage;
-
- APChooseDevicePage* m_pChooseDevicePage;
- APCommandPage* m_pCommandPage;
- APChooseDriverPage* m_pChooseDriverPage;
- APNamePage* m_pNamePage;
- APOldPrinterPage* m_pOldPrinterPage;
- APFaxDriverPage* m_pFaxDriverPage;
- APChooseDriverPage* m_pFaxSelectDriverPage;
- APNamePage* m_pFaxNamePage;
- APCommandPage* m_pFaxCommandPage;
- APPdfDriverPage* m_pPdfDriverPage;
- APChooseDriverPage* m_pPdfSelectDriverPage;
- APNamePage* m_pPdfNamePage;
- APCommandPage* m_pPdfCommandPage;
-
+ CancelButton m_aCancelPB;
+ PushButton m_aPrevPB;
+ PushButton m_aNextPB;
+ OKButton m_aFinishPB;
+ FixedLine m_aLine;
+ TitleImage m_aTitleImage;
+
+ ::psp::PrinterInfo m_aPrinter;
+
+ APTabPage* m_pCurrentPage;
+
+ APChooseDevicePage* m_pChooseDevicePage;
+ APCommandPage* m_pCommandPage;
+ APChooseDriverPage* m_pChooseDriverPage;
+ APNamePage* m_pNamePage;
+ APOldPrinterPage* m_pOldPrinterPage;
+ APFaxDriverPage* m_pFaxDriverPage;
+ APChooseDriverPage* m_pFaxSelectDriverPage;
+ APNamePage* m_pFaxNamePage;
+ APCommandPage* m_pFaxCommandPage;
+ APPdfDriverPage* m_pPdfDriverPage;
+ APChooseDriverPage* m_pPdfSelectDriverPage;
+ APNamePage* m_pPdfNamePage;
+ APCommandPage* m_pPdfCommandPage;
+
DECL_LINK( ClickBtnHdl, PushButton* );
void advance();
void back();
void addPrinter();
-
+
void updateSettings();
virtual void DataChanged( const DataChangedEvent& rEv );
diff --git a/padmin/source/cmddlg.cxx b/padmin/source/cmddlg.cxx
index f26ca0293d63..3252ee747898 100644
--- a/padmin/source/cmddlg.cxx
+++ b/padmin/source/cmddlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,8 +53,8 @@ void CommandStore::getSystemPrintCommands( ::std::list< String >& rCommands )
bOnce = true;
PrinterInfoManager::get().getSystemPrintCommands( aSysCommands );
}
-
- ::std::list< OUString >::const_iterator it;
+
+ ::std::list< OUString >::const_iterator it;
for( it = aSysCommands.begin(); it != aSysCommands.end(); ++it )
rCommands.push_back( *it );
}
@@ -71,7 +71,7 @@ void CommandStore::getSystemPdfCommands( ::std::list< String >& rCommands )
FILE* pPipe;
String aCommand;
rtl_TextEncoding aEncoding = osl_getThreadTextEncoding();
-
+
pPipe = popen( "which gs 2>/dev/null", "r" );
if( pPipe )
{
@@ -154,7 +154,7 @@ void CommandStore::setCommands(
rConfig.SetGroup( pGroup );
::std::list< String >::const_iterator it, loop;
::std::list< String > aWriteList;
-
+
int nWritten = 0;
for( it = rCommands.begin(); it != rCommands.end(); ++it )
{
@@ -218,7 +218,7 @@ void CommandStore::setFaxCommands( const ::std::list< String >& rCommands )
::std::list< String > aSysCmds;
setCommands( FAX_PERSISTENCE_GROUP, rCommands, aSysCmds );
}
-
+
RTSCommandPage::RTSCommandPage( RTSDialog* pParent ) :
TabPage( &pParent->m_aTabControl, PaResId( RID_RTS_COMMANDPAGE ) ),
@@ -259,7 +259,7 @@ RTSCommandPage::RTSCommandPage( RTSDialog* pParent ) :
CommandStore::getPdfCommands( m_aPdfCommands );
m_aPrinterName.SetText( m_pParent->m_aPrinter );
-
+
m_aCommandsCB.SetDoubleClickHdl( LINK( this, RTSCommandPage, DoubleClickHdl ) );
m_aCommandsCB.SetSelectHdl( LINK( this, RTSCommandPage, SelectHdl ) );
m_aCommandsCB.SetModifyHdl( LINK( this, RTSCommandPage, ModifyHdl ) );
@@ -307,7 +307,7 @@ RTSCommandPage::RTSCommandPage( RTSDialog* pParent ) :
m_bWasExternalDialog = true;
}
}
-
+
m_aQuickCB.Enable( m_aExternalCB.IsChecked() );
String aString( m_aConnectedTo.GetText() );
@@ -327,14 +327,14 @@ void RTSCommandPage::save()
bool bHaveFax = m_aConfigureBox.GetSelectEntryPos() == m_nFaxEntry ? true : false;
bool bHavePdf = m_aConfigureBox.GetSelectEntryPos() == m_nPdfEntry ? true : false;
::std::list< String >::iterator it;
-
+
String aFeatures;
sal_Int32 nIndex = 0;
String aOldPdfPath;
bool bOldFaxSwallow = false;
bool bFaxSwallow = m_aFaxSwallowBox.IsChecked() ? true : false;
bool bOldExternalDialog = false, bExternalDialog = m_aExternalCB.IsChecked() ? true : false;
-
+
while( nIndex != -1 )
{
OUString aToken( m_pParent->m_aJobData.m_aFeatures.getToken( 0, ',', nIndex ) );
@@ -395,24 +395,24 @@ void RTSCommandPage::save()
;
if( it == pList->end() )
pList->push_back( aCommand );
-
- if( aCommand != String( m_pParent->m_aJobData.m_aCommand ) ||
+
+ if( aCommand != String( m_pParent->m_aJobData.m_aCommand ) ||
aQuickCommand != String( m_pParent->m_aJobData.m_aQuickCommand ) ||
- ( m_bWasFax && ! bHaveFax ) ||
- ( ! m_bWasFax && bHaveFax ) ||
- ( m_bWasPdf && ! bHavePdf ) ||
- ( ! m_bWasPdf && bHavePdf ) ||
+ ( m_bWasFax && ! bHaveFax ) ||
+ ( ! m_bWasFax && bHaveFax ) ||
+ ( m_bWasPdf && ! bHavePdf ) ||
+ ( ! m_bWasPdf && bHavePdf ) ||
( bHavePdf && aOldPdfPath != m_aPdfDirectoryEdit.GetText() ) ||
( bHaveFax && bFaxSwallow != bOldFaxSwallow ) ||
( m_bWasExternalDialog && ! bExternalDialog ) ||
( ! m_bWasExternalDialog && bExternalDialog )
)
{
- m_pParent->m_aJobData.m_aCommand = aCommand;
+ m_pParent->m_aJobData.m_aCommand = aCommand;
m_pParent->m_aJobData.m_aQuickCommand = aQuickCommand;
- m_pParent->m_aJobData.m_aFeatures = aFeatures;
-
- PrinterInfoManager::get().changePrinterInfo( m_pParent->m_aPrinter, m_pParent->m_aJobData );
+ m_pParent->m_aJobData.m_aFeatures = aFeatures;
+
+ PrinterInfoManager::get().changePrinterInfo( m_pParent->m_aPrinter, m_pParent->m_aJobData );
}
CommandStore::setPrintCommands( m_aPrinterCommands );
CommandStore::setFaxCommands( m_aFaxCommands );
@@ -436,7 +436,7 @@ IMPL_LINK( RTSCommandPage, SelectHdl, Control*, pBox )
{
m_aRemovePB.Enable( TRUE );
}
-
+
return 0;
}
@@ -494,7 +494,7 @@ IMPL_LINK( RTSCommandPage, ModifyHdl, Edit*, pEdit )
{
if( pEdit == &m_aCommandsCB )
m_aRemovePB.Enable( m_aCommandsCB.GetEntryPos( m_aCommandsCB.GetText() ) != LISTBOX_ENTRY_NOTFOUND );
-
+
return 0;
}
diff --git a/padmin/source/cmddlg.hxx b/padmin/source/cmddlg.hxx
index 8c47530dab39..4022db905392 100644
--- a/padmin/source/cmddlg.hxx
+++ b/padmin/source/cmddlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,64 +51,64 @@ class CommandStore
static void getSystemPrintCommands( ::std::list< String >& rCommands );
static void getSystemPdfCommands( ::std::list< String >& rCommands );
static void setCommands( const char* pGroup, const ::std::list< String >& rCommands, const ::std::list< String >& rSysCommands );
-
+
public:
static void getPrintCommands( ::std::list< String >& rCommands );
static void getFaxCommands( ::std::list< String >& rCommands );
static void getPdfCommands( ::std::list< String >& rCommands );
-
+
static void setPrintCommands( const ::std::list< String >& rCommands );
static void setFaxCommands( const ::std::list< String >& rCommands );
static void setPdfCommands( const ::std::list< String >& rCommands );
};
-
+
class RTSCommandPage : public TabPage
{
private:
- RTSDialog* m_pParent;
-
- ComboBox m_aCommandsCB;
+ RTSDialog* m_pParent;
+
+ ComboBox m_aCommandsCB;
CheckBox m_aExternalCB;
FixedText m_aQuickFT;
ComboBox m_aQuickCB;
- FixedLine m_aCommandTitle;
- FixedText m_aPrinterName;
- FixedText m_aConnectedTo;
- FixedLine m_aPrinterFL;
-
- FixedText m_aConfigureText;
- ListBox m_aConfigureBox;
- USHORT m_nPrinterEntry;
- USHORT m_nFaxEntry;
- USHORT m_nPdfEntry;
- FixedText m_aPdfDirectoryText;
- PushButton m_aPdfDirectoryButton;
- Edit m_aPdfDirectoryEdit;
- CheckBox m_aFaxSwallowBox;
-
- PushButton m_aHelpButton;
- PushButton m_aRemovePB;
-
- ::std::list< String > m_aPrinterCommands;
- ::std::list< String > m_aFaxCommands;
- ::std::list< String > m_aPdfCommands;
-
- String m_aFaxHelp;
- String m_aPrinterHelp;
- String m_aPdfHelp;
-
- bool m_bWasFax;
- bool m_bWasPdf;
+ FixedLine m_aCommandTitle;
+ FixedText m_aPrinterName;
+ FixedText m_aConnectedTo;
+ FixedLine m_aPrinterFL;
+
+ FixedText m_aConfigureText;
+ ListBox m_aConfigureBox;
+ USHORT m_nPrinterEntry;
+ USHORT m_nFaxEntry;
+ USHORT m_nPdfEntry;
+ FixedText m_aPdfDirectoryText;
+ PushButton m_aPdfDirectoryButton;
+ Edit m_aPdfDirectoryEdit;
+ CheckBox m_aFaxSwallowBox;
+
+ PushButton m_aHelpButton;
+ PushButton m_aRemovePB;
+
+ ::std::list< String > m_aPrinterCommands;
+ ::std::list< String > m_aFaxCommands;
+ ::std::list< String > m_aPdfCommands;
+
+ String m_aFaxHelp;
+ String m_aPrinterHelp;
+ String m_aPdfHelp;
+
+ bool m_bWasFax;
+ bool m_bWasPdf;
bool m_bWasExternalDialog;
-
+
DECL_LINK( DoubleClickHdl, ComboBox* );
DECL_LINK( ClickBtnHdl, Button* );
DECL_LINK( SelectHdl, Control* );
DECL_LINK( ModifyHdl, Edit* );
-
+
void ConnectCommand();
void UpdateCommands();
-
+
public:
RTSCommandPage( RTSDialog* );
~RTSCommandPage();
diff --git a/padmin/source/desktopcontext.cxx b/padmin/source/desktopcontext.cxx
index 3aea19862c2b..9e2db2aa65d4 100644
--- a/padmin/source/desktopcontext.cxx
+++ b/padmin/source/desktopcontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/padmin/source/desktopcontext.hxx b/padmin/source/desktopcontext.hxx
index 2330019f23a5..8bca914b1571 100644
--- a/padmin/source/desktopcontext.hxx
+++ b/padmin/source/desktopcontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/padmin/source/fontentry.cxx b/padmin/source/fontentry.cxx
index 43abfe3b2bac..edd48fca2dc3 100644
--- a/padmin/source/fontentry.cxx
+++ b/padmin/source/fontentry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -102,35 +102,35 @@ String FontNameDlg::fillFontEntry( FastPrintFontInfo& rInfo, const String& rFile
bool bWeight = true, bItalic = true, bWidth = true;
switch( rInfo.m_eWeight )
{
- case weight::Thin: aEntry.AppendAscii( ", " ); aEntry.Append( aThinTxt ); break;
- case weight::UltraLight: aEntry.AppendAscii( ", " ); aEntry.Append( aUltraLightTxt ); break;
- case weight::Light: aEntry.AppendAscii( ", " ); aEntry.Append( aLightTxt ); break;
- case weight::SemiLight: aEntry.AppendAscii( ", " ); aEntry.Append( aSemiLightTxt ); break;
- case weight::SemiBold: aEntry.AppendAscii( ", " ); aEntry.Append( aSemiBoldTxt ); break;
- case weight::Bold: aEntry.AppendAscii( ", " ); aEntry.Append( aBoldTxt ); break;
- case weight::UltraBold: aEntry.AppendAscii( ", " ); aEntry.Append( aUltraBoldTxt ); break;
+ case weight::Thin: aEntry.AppendAscii( ", " ); aEntry.Append( aThinTxt ); break;
+ case weight::UltraLight: aEntry.AppendAscii( ", " ); aEntry.Append( aUltraLightTxt ); break;
+ case weight::Light: aEntry.AppendAscii( ", " ); aEntry.Append( aLightTxt ); break;
+ case weight::SemiLight: aEntry.AppendAscii( ", " ); aEntry.Append( aSemiLightTxt ); break;
+ case weight::SemiBold: aEntry.AppendAscii( ", " ); aEntry.Append( aSemiBoldTxt ); break;
+ case weight::Bold: aEntry.AppendAscii( ", " ); aEntry.Append( aBoldTxt ); break;
+ case weight::UltraBold: aEntry.AppendAscii( ", " ); aEntry.Append( aUltraBoldTxt ); break;
default:
bWeight = false;
break;
}
switch( rInfo.m_eItalic )
{
- case italic::Oblique: aEntry.AppendAscii( ", " ); aEntry.Append( aObliqueTxt ); break;
- case italic::Italic: aEntry.AppendAscii( ", " ); aEntry.Append( aItalicTxt ); break;
+ case italic::Oblique: aEntry.AppendAscii( ", " ); aEntry.Append( aObliqueTxt ); break;
+ case italic::Italic: aEntry.AppendAscii( ", " ); aEntry.Append( aItalicTxt ); break;
default:
bItalic = false;
break;
}
switch( rInfo.m_eWidth )
{
- case width::UltraCondensed: aEntry.AppendAscii( ", " ); aEntry.Append( aUltraCondensedTxt ); break;
- case width::ExtraCondensed: aEntry.AppendAscii( ", " ); aEntry.Append( aExtraCondensedTxt ); break;
- case width::Condensed: aEntry.AppendAscii( ", " ); aEntry.Append( aCondensedTxt ); break;
- case width::SemiCondensed: aEntry.AppendAscii( ", " ); aEntry.Append( aSemiCondensedTxt ); break;
- case width::SemiExpanded: aEntry.AppendAscii( ", " ); aEntry.Append( aSemiExpandedTxt ); break;
- case width::Expanded: aEntry.AppendAscii( ", " ); aEntry.Append( aExpandedTxt ); break;
- case width::ExtraExpanded: aEntry.AppendAscii( ", " ); aEntry.Append( aExtraExpandedTxt ); break;
- case width::UltraExpanded: aEntry.AppendAscii( ", " ); aEntry.Append( aUltraExpandedTxt ); break;
+ case width::UltraCondensed: aEntry.AppendAscii( ", " ); aEntry.Append( aUltraCondensedTxt ); break;
+ case width::ExtraCondensed: aEntry.AppendAscii( ", " ); aEntry.Append( aExtraCondensedTxt ); break;
+ case width::Condensed: aEntry.AppendAscii( ", " ); aEntry.Append( aCondensedTxt ); break;
+ case width::SemiCondensed: aEntry.AppendAscii( ", " ); aEntry.Append( aSemiCondensedTxt ); break;
+ case width::SemiExpanded: aEntry.AppendAscii( ", " ); aEntry.Append( aSemiExpandedTxt ); break;
+ case width::Expanded: aEntry.AppendAscii( ", " ); aEntry.Append( aExpandedTxt ); break;
+ case width::ExtraExpanded: aEntry.AppendAscii( ", " ); aEntry.Append( aExtraExpandedTxt ); break;
+ case width::UltraExpanded: aEntry.AppendAscii( ", " ); aEntry.Append( aUltraExpandedTxt ); break;
default:
bWidth = false;
break;
@@ -422,10 +422,10 @@ bool FontImportDialog::queryOverwriteFile( const ::rtl::OUString& rFile )
int nResult = aQueryBox.Execute();
switch( nResult )
{
- case BUTTONID_YES: bRet = true; break;
- case BUTTONID_NO: bRet = false; break;
- case 20: bRet = m_bOverwriteAll = true; break;
- case 21: bRet = false; m_bOverwriteNone = true; break;
+ case BUTTONID_YES: bRet = true; break;
+ case BUTTONID_NO: bRet = false; break;
+ case 20: bRet = m_bOverwriteAll = true; break;
+ case 21: bRet = false; m_bOverwriteNone = true; break;
}
return bRet;
diff --git a/padmin/source/fontentry.hxx b/padmin/source/fontentry.hxx
index 087927078098..f76300cc9307 100644
--- a/padmin/source/fontentry.hxx
+++ b/padmin/source/fontentry.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,52 +48,52 @@ namespace padmin {
public ModalDialog,
public ::psp::PrintFontManager::ImportFontCallback
{
- OKButton m_aOKBtn;
- CancelButton m_aCancelBtn;
- PushButton m_aSelectAllBtn;
- ListBox m_aNewFontsBox;
- FixedLine m_aFromFL;
- Edit m_aFromDirEdt;
- PushButton m_aFromBtn;
- CheckBox m_aSubDirsBox;
- FixedLine m_aTargetOptFL;
- CheckBox m_aLinkOnlyBox;
- FixedText m_aFixedText;
- bool m_bOverwriteAll;
- bool m_bOverwriteNone;
- ProgressDialog* m_pProgress;
- int m_nFont;
-
- String m_aImportOperation;
- String m_aOverwriteQueryText;
- String m_aOverwriteAllText;
- String m_aOverwriteNoneText;
- String m_aNoAfmText;
- String m_aAfmCopyFailedText;
- String m_aFontCopyFailedText;
- String m_aNoWritableFontsDirText;
- String m_aFontsImportedText;
+ OKButton m_aOKBtn;
+ CancelButton m_aCancelBtn;
+ PushButton m_aSelectAllBtn;
+ ListBox m_aNewFontsBox;
+ FixedLine m_aFromFL;
+ Edit m_aFromDirEdt;
+ PushButton m_aFromBtn;
+ CheckBox m_aSubDirsBox;
+ FixedLine m_aTargetOptFL;
+ CheckBox m_aLinkOnlyBox;
+ FixedText m_aFixedText;
+ bool m_bOverwriteAll;
+ bool m_bOverwriteNone;
+ ProgressDialog* m_pProgress;
+ int m_nFont;
+
+ String m_aImportOperation;
+ String m_aOverwriteQueryText;
+ String m_aOverwriteAllText;
+ String m_aOverwriteNoneText;
+ String m_aNoAfmText;
+ String m_aAfmCopyFailedText;
+ String m_aFontCopyFailedText;
+ String m_aNoWritableFontsDirText;
+ String m_aFontsImportedText;
::std::hash_map< ::rtl::OString, ::std::list< ::psp::FastPrintFontInfo >, ::rtl::OStringHash >
m_aNewFonts;
-
- Timer m_aRefreshTimer;
+
+ Timer m_aRefreshTimer;
DECL_LINK( RefreshTimeoutHdl, void* );
-
- ::psp::PrintFontManager& m_rFontManager;
-
+
+ ::psp::PrintFontManager& m_rFontManager;
+
DECL_LINK( ClickBtnHdl, Button* );
DECL_LINK( ModifyHdl, Edit* );
DECL_LINK( ToggleHdl, CheckBox* );
-
+
// implement ImportFontCallback
virtual void importFontsFailed( ::psp::PrintFontManager::ImportFontCallback::FailCondition eReason );
virtual void progress( const ::rtl::OUString& rFile );
virtual bool queryOverwriteFile( const ::rtl::OUString& rFile );
virtual void importFontFailed( const ::rtl::OUString& rFile, ::psp::PrintFontManager::ImportFontCallback::FailCondition eReason );
virtual bool isCanceled();
-
+
void copyFonts();
void fillFontBox();
public:
@@ -104,19 +104,19 @@ namespace padmin {
class FontNameDlg : public ModalDialog
{
private:
- OKButton m_aOKButton;
- PushButton m_aRenameButton;
- PushButton m_aRemoveButton;
- PushButton m_aImportButton;
+ OKButton m_aOKButton;
+ PushButton m_aRenameButton;
+ PushButton m_aRemoveButton;
+ PushButton m_aImportButton;
+
+ DelListBox m_aFontBox;
+ FixedText m_aFixedText;
- DelListBox m_aFontBox;
- FixedText m_aFixedText;
+ String m_aRenameString;
+ String m_aRenameTTCString;
+ String m_aNoRenameString;
- String m_aRenameString;
- String m_aRenameTTCString;
- String m_aNoRenameString;
-
- ::psp::PrintFontManager& m_rFontManager;
+ ::psp::PrintFontManager& m_rFontManager;
// maps fontID to XLFD
::std::hash_map< ::psp::fontID, String >
@@ -125,7 +125,7 @@ namespace padmin {
public:
FontNameDlg( Window* );
~FontNameDlg();
-
+
DECL_LINK( ClickBtnHdl, Button* );
DECL_LINK( DelPressedHdl, ListBox* );
DECL_LINK( SelectHdl, ListBox* );
diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx
index 3d5d18c596be..9e1fbba1faea 100644
--- a/padmin/source/helper.cxx
+++ b/padmin/source/helper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ using namespace com::sun::star::ui::dialogs;
#define MAX_PATH 1024
/*
- * PaResId
+ * PaResId
*/
ResId padmin::PaResId( sal_uInt32 nId )
@@ -65,8 +65,8 @@ ResId padmin::PaResId( sal_uInt32 nId )
if( ! pPaResMgr )
{
::com::sun::star::lang::Locale aLocale;
-// LanguageType nLang = LANGUAGE_SYSTEM;
-
+// LanguageType nLang = LANGUAGE_SYSTEM;
+
utl::OConfigurationNode aNode =
utl::OConfigurationTreeRoot::tryCreateWithServiceFactory(
vcl::unohelper::GetMultiServiceFactory(),
@@ -96,7 +96,7 @@ ResId padmin::PaResId( sal_uInt32 nId )
}
/*
- * FindFiles
+ * FindFiles
*/
void padmin::FindFiles( const String& rDirectory, ::std::list< String >& rResult, const String& rSuffixes, bool bRecursive )
@@ -111,7 +111,7 @@ void padmin::FindFiles( const String& rDirectory, ::std::list< String >& rResult
DirectoryItem aItem;
while( aDir.getNextItem( aItem ) == FileBase::E_None )
{
- FileStatus aStatus( FileStatusMask_FileName |
+ FileStatus aStatus( FileStatusMask_FileName |
FileStatusMask_Type
);
if( aItem.getFileStatus( aStatus ) == FileBase::E_None )
@@ -149,7 +149,7 @@ void padmin::FindFiles( const String& rDirectory, ::std::list< String >& rResult
aSubFile.appendAscii( "/", 1 );
aSubFile.append( *it );
rResult.push_back( aSubFile.makeStringAndClear() );
- }
+ }
}
}
}
@@ -157,7 +157,7 @@ void padmin::FindFiles( const String& rDirectory, ::std::list< String >& rResult
}
/*
- * DelMultiListBox
+ * DelMultiListBox
*/
long DelMultiListBox::Notify( NotifyEvent& rEvent )
@@ -177,7 +177,7 @@ long DelMultiListBox::Notify( NotifyEvent& rEvent )
}
/*
- * DelListBox
+ * DelListBox
*/
long DelListBox::Notify( NotifyEvent& rEvent )
@@ -197,7 +197,7 @@ long DelListBox::Notify( NotifyEvent& rEvent )
}
/*
- * QueryString
+ * QueryString
*/
QueryString::QueryString( Window* pParent, String& rQuery, String& rRet, const ::std::list< String >& rChoices ) :
@@ -247,7 +247,7 @@ IMPL_LINK( QueryString, ClickBtnHdl, Button*, pButton )
}
/*
- * AreYouSure
+ * AreYouSure
*/
BOOL padmin::AreYouSure( Window* pParent, int nRid )
@@ -260,7 +260,7 @@ BOOL padmin::AreYouSure( Window* pParent, int nRid )
}
/*
- * getPadminRC
+ * getPadminRC
*/
static Config* pRC = NULL;
diff --git a/padmin/source/helper.hxx b/padmin/source/helper.hxx
index 503de2dda960..ad263a6b004e 100644
--- a/padmin/source/helper.hxx
+++ b/padmin/source/helper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,14 +49,14 @@ namespace padmin
{
class DelMultiListBox : public MultiListBox
{
- Link m_aDelPressedLink;
+ Link m_aDelPressedLink;
public:
DelMultiListBox( Window* pParent, const ResId& rResId ) :
MultiListBox( pParent, rResId ) {}
~DelMultiListBox() {}
-
+
virtual long Notify( NotifyEvent& rEvent );
-
+
Link setDelPressedLink( const Link& rLink )
{
Link aOldLink( m_aDelPressedLink );
@@ -68,14 +68,14 @@ public:
class DelListBox : public ListBox
{
- Link m_aDelPressedLink;
+ Link m_aDelPressedLink;
public:
DelListBox( Window* pParent, const ResId& rResId ) :
ListBox( pParent, rResId ) {}
~DelListBox() {}
-
+
virtual long Notify( NotifyEvent& rEvent );
-
+
Link setDelPressedLink( const Link& rLink )
{
Link aOldLink( m_aDelPressedLink );
@@ -92,13 +92,13 @@ private:
CancelButton m_aCancelButton;
FixedText m_aFixedText;
Edit m_aEdit;
- ComboBox m_aComboBox;
-
+ ComboBox m_aComboBox;
+
String& m_rReturnValue;
- bool m_bUseEdit;
-
+ bool m_bUseEdit;
+
DECL_LINK( ClickBtnHdl, Button* );
-
+
public:
QueryString( Window*, String &, String &, const ::std::list< String >& rChoices = ::std::list<String>() );
// parent window, Query text, initial value
diff --git a/padmin/source/newppdlg.cxx b/padmin/source/newppdlg.cxx
index cf52a7e23308..514801792013 100644
--- a/padmin/source/newppdlg.cxx
+++ b/padmin/source/newppdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/padmin/source/newppdlg.hxx b/padmin/source/newppdlg.hxx
index 576a1bf2cb43..860befbac577 100644
--- a/padmin/source/newppdlg.hxx
+++ b/padmin/source/newppdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,38 +39,38 @@
namespace psp { class PPDParser; }
namespace padmin {
-
+
class PPDImportDialog : public ModalDialog
{
- OKButton m_aOKBtn;
- CancelButton m_aCancelBtn;
- FixedText m_aPathTxt;
- ComboBox m_aPathBox;
- PushButton m_aSearchBtn;
- FixedText m_aDriverTxt;
- MultiListBox m_aDriverLB;
-
- FixedLine m_aPathGroup;
- FixedLine m_aDriverGroup;
-
- String m_aLoadingPPD;
-
+ OKButton m_aOKBtn;
+ CancelButton m_aCancelBtn;
+ FixedText m_aPathTxt;
+ ComboBox m_aPathBox;
+ PushButton m_aSearchBtn;
+ FixedText m_aDriverTxt;
+ MultiListBox m_aDriverLB;
+
+ FixedLine m_aPathGroup;
+ FixedLine m_aDriverGroup;
+
+ String m_aLoadingPPD;
+
DECL_LINK( ClickBtnHdl, PushButton* );
DECL_LINK( SelectHdl, ComboBox* );
DECL_LINK( ModifyHdl, ComboBox* );
-
+
void Import();
-
+
std::list< rtl::OUString > m_aImportedFiles;
public:
PPDImportDialog( Window* pParent );
~PPDImportDialog();
-
+
const std::list< rtl::OUString >& getImportedFiles() const
{ return m_aImportedFiles; }
};
-
-} // namespace
+
+} // namespace
#endif // _NEWPPDLG_HXX
diff --git a/padmin/source/padialog.cxx b/padmin/source/padialog.cxx
index 4eb51b4b0b45..36a0e94e0d61 100644
--- a/padmin/source/padialog.cxx
+++ b/padmin/source/padialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -128,7 +128,7 @@ void PADialog::Init()
// #i79787# initially ensure printer discovery has ended
m_rPIManager.checkPrintersChanged( true );
m_aCUPSCB.Check( m_rPIManager.isCUPSDisabled() );
-
+
UpdateDevice();
UpdateText();
@@ -373,7 +373,7 @@ public:
{}
virtual ~SpaPrinterController()
{}
-
+
virtual int getPageCount() const { return 1; }
virtual Sequence< PropertyValue > getPageParameters( int i_nPage ) const;
virtual void printPage( int i_nPage ) const;
@@ -383,22 +383,22 @@ public:
Sequence< PropertyValue > SpaPrinterController::getPageParameters( int ) const
{
Sequence< PropertyValue > aRet( 1 );
-
+
Size aPageSize( getPrinter()->GetPaperSizePixel() );
aPageSize = getPrinter()->PixelToLogic( aPageSize, MapMode( MAP_100TH_MM ) );
-
+
awt::Size aSize;
aSize.Width = aPageSize.Width();
aSize.Height = aPageSize.Height();
aRet[0].Value = makeAny(aSize);
-
+
return aRet;
}
void SpaPrinterController::printPage( int ) const
{
const double DELTA = 5.0;
-
+
boost::shared_ptr<Printer> pPrinter( getPrinter() );
PrinterInfo aInfo( psp::PrinterInfoManager::get().getPrinterInfo( pPrinter->GetName() ) );
@@ -708,7 +708,7 @@ void PADialog::RenameDevice()
void PADialog::UpdateDevice()
{
m_aDevicesLB.Clear();
-
+
m_rPIManager.listPrinters( m_aPrinters );
::std::list< OUString >::iterator it;
for( it = m_aPrinters.begin(); it != m_aPrinters.end(); ++it )
diff --git a/padmin/source/padialog.hrc b/padmin/source/padialog.hrc
index 2f238592231a..bd53ebdeb7b9 100644
--- a/padmin/source/padialog.hrc
+++ b/padmin/source/padialog.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#define RID_PA_BTN_STD 2
#define RID_PA_BTN_DEL 3
#define RID_PA_LB_DEV 4
-#define RID_PA_FL_PRINTERS 5
+#define RID_PA_FL_PRINTERS 5
#define RID_PA_BTN_CONF 6
#define RID_PA_BTN_RENAME 7
#define RID_PA_TESTPAGE 8
@@ -50,7 +50,7 @@
#define RID_PA_BTN_ADD 19
#define RID_PA_BTN_ADDFONTS 20
#define RID_PA_STR_RENAME 21
-#define RID_PA_FL_SEPBUTTON 22
+#define RID_PA_FL_SEPBUTTON 22
#define RID_PA_FL_CUPSUSAGE 23
#define RID_PA_CB_CUPSUSAGE 23
@@ -59,7 +59,7 @@
#define RID_STRQRY_EDT_NEWNAME 2
#define RID_STRQRY_BTN_OK 3
#define RID_STRQRY_BTN_CANCEL 4
-#define RID_STRQRY_BOX_NEWNAME 5
+#define RID_STRQRY_BOX_NEWNAME 5
#define RID_PPDIMPORT_DLG 1004
#define RID_PPDIMP_BTN_OK 1
@@ -103,37 +103,37 @@
#define RID_FNTNM_BTN_REMOVE 3
#define RID_FNTNM_LB_FONTS 4
#define RID_FNTNM_BTN_IMPORT 5
-#define RID_FNTNM_BTN_RENAME 6
-#define RID_FNTNM_STR_RENAME 7
-#define RID_FNTNM_STR_TTCRENAME 8
-#define RID_FNTNM_STR_NOTRENAMABLE 9
-
-#define RID_TXT_REFETCH 1031
-
-#define RID_BXT_TESTPAGE 1034
-#define RID_BXT_ENVIRONMENT 1035
-
-#define RID_YOU_SURE 1040
-
-#define RID_ERR_REMOVEDRIVERFAILED 1041
-
-#define RID_BUTTERFLY 1047
-
-#define RID_COMMAND_TXT_MODIFY 1049
-#define RID_COMMAND_TXT_ADDENTRY 1050
-#define RID_ERR_REMOVESGENPRT 1051
-#define RID_PA_TXT_NOWRITE 1052
-#define RID_DOUBLEFONTFILE 1053
-#define RID_INVALIDFONTPATH 1054
-#define RID_TESTPAGESAVE 1055
-#define RID_FNTNM_FONTNAME_TXT 1056
-#define RID_FNTNM_NOFONT_TXT 1057
-#define RID_QUERY_REMOVEDRIVER 1058
-#define RID_QUERY_REMOVEPRINTER 1059
-#define RID_QUERY_REMOVEFONTFROMLIST 1060
-#define RID_QUERY_DRIVERUSED 1062
-#define RID_ERR_REMOVEDEFAULTDRIVER 1063
-#define RID_ERR_WRITEFONTSDIR 1064
+#define RID_FNTNM_BTN_RENAME 6
+#define RID_FNTNM_STR_RENAME 7
+#define RID_FNTNM_STR_TTCRENAME 8
+#define RID_FNTNM_STR_NOTRENAMABLE 9
+
+#define RID_TXT_REFETCH 1031
+
+#define RID_BXT_TESTPAGE 1034
+#define RID_BXT_ENVIRONMENT 1035
+
+#define RID_YOU_SURE 1040
+
+#define RID_ERR_REMOVEDRIVERFAILED 1041
+
+#define RID_BUTTERFLY 1047
+
+#define RID_COMMAND_TXT_MODIFY 1049
+#define RID_COMMAND_TXT_ADDENTRY 1050
+#define RID_ERR_REMOVESGENPRT 1051
+#define RID_PA_TXT_NOWRITE 1052
+#define RID_DOUBLEFONTFILE 1053
+#define RID_INVALIDFONTPATH 1054
+#define RID_TESTPAGESAVE 1055
+#define RID_FNTNM_FONTNAME_TXT 1056
+#define RID_FNTNM_NOFONT_TXT 1057
+#define RID_QUERY_REMOVEDRIVER 1058
+#define RID_QUERY_REMOVEPRINTER 1059
+#define RID_QUERY_REMOVEFONTFROMLIST 1060
+#define RID_QUERY_DRIVERUSED 1062
+#define RID_ERR_REMOVEDEFAULTDRIVER 1063
+#define RID_ERR_WRITEFONTSDIR 1064
#define RID_FONTIMPORT_DIALOG 1065
#define RID_FIMP_BTN_OK 1
@@ -143,7 +143,7 @@
#define RID_FIMP_FL_FROM 5
#define RID_FIMP_BTN_SELECTALL 6
#define RID_FIMP_BOX_NEWFONTS 7
-#define RID_FIMP_TXT_HELP 8
+#define RID_FIMP_TXT_HELP 8
#define RID_FIMP_STR_IMPORTOP 9
#define RID_FIMP_STR_QUERYOVERWRITE 10
#define RID_FIMP_STR_OVERWRITEALL 11
@@ -153,49 +153,49 @@
#define RID_FIMP_STR_FONTCOPYFAILED 15
#define RID_FIMP_STR_NOWRITEABLEFONTSDIR 16
#define RID_FIMP_STR_NUMBEROFFONTSIMPORTED 17
-#define RID_FIMP_BOX_LINKONLY 18
-#define RID_FIMP_BOX_SUBDIRS 19
-#define RID_FIMP_FL_TARGETOPTS 20
+#define RID_FIMP_BOX_LINKONLY 18
+#define RID_FIMP_BOX_SUBDIRS 19
+#define RID_FIMP_FL_TARGETOPTS 20
-#define RID_TXT_IMPORTTITLE 1066
+#define RID_TXT_IMPORTTITLE 1066
#define RID_TXT_FONTS2IMPORT 1067
-#define RID_TXT_TESTPAGE_MODEL 1068
-#define RID_TXT_TESTPAGE_QUEUE 1069
-#define RID_TXT_TESTPAGE_DATE 1070
-#define RID_TXT_TESTPAGE_TIME 1071
+#define RID_TXT_TESTPAGE_MODEL 1068
+#define RID_TXT_TESTPAGE_QUEUE 1069
+#define RID_TXT_TESTPAGE_DATE 1070
+#define RID_TXT_TESTPAGE_TIME 1071
#define RID_TXT_PRINTERALREADYEXISTS 1072
-#define RID_TXT_PRINTERWITHOUTCOMMAND 1073
+#define RID_TXT_PRINTERWITHOUTCOMMAND 1073
#define RID_TXT_PRINTERADDFAILED 1074
-#define RID_TXT_DRIVERDOESNOTEXIST 1075
+#define RID_TXT_DRIVERDOESNOTEXIST 1075
#define RID_TXT_TESTPAGE_COMMENT 1076
-#define RID_TXT_TESTPAGE_NAME 1077
-
-#define RID_TXT_FONT_ITALIC 1078
-#define RID_TXT_FONT_OBLIQUE 1079
-#define RID_TXT_FONT_THIN 1080
-#define RID_TXT_FONT_ULTRALIGHT 1081
-#define RID_TXT_FONT_LIGHT 1082
-#define RID_TXT_FONT_SEMILIGHT 1083
-#define RID_TXT_FONT_SEMIBOLD 1084
-#define RID_TXT_FONT_BOLD 1085
-#define RID_TXT_FONT_ULTRABOLD 1086
-#define RID_TXT_FONT_ULTRACONDENSED 1087
-#define RID_TXT_FONT_EXTRACONDENSED 1088
-#define RID_TXT_FONT_CONDENSED 1089
+#define RID_TXT_TESTPAGE_NAME 1077
+
+#define RID_TXT_FONT_ITALIC 1078
+#define RID_TXT_FONT_OBLIQUE 1079
+#define RID_TXT_FONT_THIN 1080
+#define RID_TXT_FONT_ULTRALIGHT 1081
+#define RID_TXT_FONT_LIGHT 1082
+#define RID_TXT_FONT_SEMILIGHT 1083
+#define RID_TXT_FONT_SEMIBOLD 1084
+#define RID_TXT_FONT_BOLD 1085
+#define RID_TXT_FONT_ULTRABOLD 1086
+#define RID_TXT_FONT_ULTRACONDENSED 1087
+#define RID_TXT_FONT_EXTRACONDENSED 1088
+#define RID_TXT_FONT_CONDENSED 1089
#define RID_TXT_FONT_SEMICONDENSED 1090
-#define RID_TXT_FONT_SEMIEXPANDED 1091
-#define RID_TXT_FONT_EXPANDED 1092
-#define RID_TXT_FONT_EXTRAEXPANDED 1093
-#define RID_TXT_FONT_ULTRAEXPANDED 1094
-#define RID_TXT_FONT_REGULAR 1095
+#define RID_TXT_FONT_SEMIEXPANDED 1091
+#define RID_TXT_FONT_EXPANDED 1092
+#define RID_TXT_FONT_EXTRAEXPANDED 1093
+#define RID_TXT_FONT_ULTRAEXPANDED 1094
+#define RID_TXT_FONT_REGULAR 1095
-#define RID_BMP_SMALL_PRINTER 1096
+#define RID_BMP_SMALL_PRINTER 1096
#define RID_BMP_SMALL_PRINTER_HC 1097
-#define RID_BMP_SMALL_FAX 1098
+#define RID_BMP_SMALL_FAX 1098
#define RID_BMP_SMALL_FAX_HC 1099
-#define RID_BMP_SMALL_PDF 1100
+#define RID_BMP_SMALL_PDF 1100
#define RID_BMP_SMALL_PDF_HC 1101
-#define RID_BMP_PRINTER 1102
+#define RID_BMP_PRINTER 1102
#define RID_BMP_PRINTER_HC 1103
#define RID_AFMERROR_OK 1300
@@ -229,7 +229,7 @@
#define RID_ADDP_BTN_PREV 4
#define RID_ADDP_LINE 5
#define RID_ADDP_CTRL_TITLE 6
-#define RID_ADDP_STR_TITLE 127
+#define RID_ADDP_STR_TITLE 127
#define RID_ADDP_PAGE_CHOOSEDEV 2001
#define RID_ADDP_CHDEV_TXT_OVER 1
diff --git a/padmin/source/padialog.hxx b/padmin/source/padialog.hxx
index 915158bc6eca..2baa3dd66183 100644
--- a/padmin/source/padialog.hxx
+++ b/padmin/source/padialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,52 +48,52 @@ namespace psp { class PrinterInfoManager; }
class Printer;
namespace padmin {
-
+
class PADialog : public ModalDialog
{
private:
- DelListBox m_aDevicesLB;
- PushButton m_aConfPB;
- PushButton m_aRenamePB;
- PushButton m_aStdPB;
- PushButton m_aRemPB;
- PushButton m_aTestPagePB;
- FixedLine m_aPrintersFL;
- FixedText m_aDriverTxt;
- FixedText m_aDriver;
- FixedText m_aLocationTxt;
- FixedText m_aLocation;
- FixedText m_aCommandTxt;
- FixedText m_aCommand;
- FixedText m_aCommentTxt;
- FixedText m_aComment;
-
+ DelListBox m_aDevicesLB;
+ PushButton m_aConfPB;
+ PushButton m_aRenamePB;
+ PushButton m_aStdPB;
+ PushButton m_aRemPB;
+ PushButton m_aTestPagePB;
+ FixedLine m_aPrintersFL;
+ FixedText m_aDriverTxt;
+ FixedText m_aDriver;
+ FixedText m_aLocationTxt;
+ FixedText m_aLocation;
+ FixedText m_aCommandTxt;
+ FixedText m_aCommand;
+ FixedText m_aCommentTxt;
+ FixedText m_aComment;
+
FixedLine m_aCUPSFL;
CheckBox m_aCUPSCB;
- FixedLine m_aSepButtonFL;
- PushButton m_aAddPB;
- PushButton m_aFontsPB;
- CancelButton m_aCancelButton;
+ FixedLine m_aSepButtonFL;
+ PushButton m_aAddPB;
+ PushButton m_aFontsPB;
+ CancelButton m_aCancelButton;
- String m_aDefPrt;
- String m_aRenameStr;
+ String m_aDefPrt;
+ String m_aRenameStr;
- ::psp::PrinterInfoManager& m_rPIManager;
- ::std::list< ::rtl::OUString > m_aPrinters;
-
- Image m_aPrinterImg;
- Image m_aFaxImg;
- Image m_aPdfImg;
+ ::psp::PrinterInfoManager& m_rPIManager;
+ ::std::list< ::rtl::OUString > m_aPrinters;
+ Image m_aPrinterImg;
+ Image m_aFaxImg;
+ Image m_aPdfImg;
+
DECL_LINK( ClickBtnHdl, PushButton* );
DECL_LINK( DoubleClickHdl, ListBox* );
DECL_LINK( SelectHdl, ListBox* );
DECL_LINK( DelPressedHdl, ListBox* );
-
+
PADialog( Window*, BOOL );
void Init();
-
+
void UpdateDefPrt();
void UpdateText();
void UpdateDevice();
@@ -103,14 +103,14 @@ namespace padmin {
void RenameDevice();
void PrintTestPage();
void updateSettings();
-
+
virtual long Notify( NotifyEvent& rEv );
virtual void DataChanged( const DataChangedEvent& rEv );
-
+
String getSelectedDevice();
public:
~PADialog();
-
+
static PADialog* Create( Window*, BOOL );
};
diff --git a/padmin/source/padialog.src b/padmin/source/padialog.src
index 8834bba3226c..0cd2d40567fb 100644
--- a/padmin/source/padialog.src
+++ b/padmin/source/padialog.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -164,7 +164,7 @@ ModalDialog RID_PADIALOG
Size = MAP_APPFONT( 168, 8 );
Text [ en-US ] = "Disable CUPS Support";
};
-
+
FixedLine RID_PA_FL_SEPBUTTON
{
Pos = MAP_APPFONT( 0, 176 );
@@ -265,7 +265,7 @@ ModalDialog RID_PADIALOG
Size = MAP_APPFONT( 60, 12 );
Text [ en-US ] = "Test ~Page";
};
-
+
PushButton RID_PA_BTN_FONTS
{
Pos = MAP_APPFONT( 80, 181 );
@@ -284,7 +284,7 @@ ModalDialog RID_PADIALOG
Text [ en-US ] = "Default printer";
};
String RID_PA_STR_RENAME
- {
+ {
Text [ en-US ] = "Rename";
};
Text [ en-US ] = "Printer Administration";
@@ -820,19 +820,19 @@ TabPage RID_ADDP_PAGE_CHOOSEDEV
Pos = MAP_APPFONT ( 40, 40 );
Size = MAP_APPFONT( 180, 10 );
Text [ en-US ] = "Add a ~printer";
- };
+ };
RadioButton RID_ADDP_CHDEV_BTN_FAX
{
Pos = MAP_APPFONT ( 40, 50 );
Size = MAP_APPFONT( 180, 10 );
Text [ en-US ] = "Connect a fa~x device";
- };
+ };
RadioButton RID_ADDP_CHDEV_BTN_PDF
{
Pos = MAP_APPFONT ( 40, 60 );
Size = MAP_APPFONT( 180, 10 );
Text [ en-US ] = "Connect a P~DF converter";
- };
+ };
RadioButton RID_ADDP_CHDEV_BTN_OLD
{
Pos = MAP_APPFONT ( 40, 70 );
diff --git a/padmin/source/pamain.cxx b/padmin/source/pamain.cxx
index 16968a843a83..352b54b1bf82 100644
--- a/padmin/source/pamain.cxx
+++ b/padmin/source/pamain.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,9 +59,9 @@ using namespace comphelper;
class MyApp : public Application
{
public:
- void Main();
- virtual USHORT Exception( USHORT nError );
-
+ void Main();
+ virtual USHORT Exception( USHORT nError );
+
static void ReadStringHook( String& );
};
@@ -114,7 +114,7 @@ void MyApp::Main()
catch( com::sun::star::uno::Exception& rExc)
{
}
-
+
if( ! xFactory.is() )
{
fprintf( stderr, "Could not bootstrap UNO, installation must be in disorder. Exiting.\n" );
@@ -126,7 +126,7 @@ void MyApp::Main()
new DesktopContext( com::sun::star::uno::getCurrentContext() ) );
/*
- * Create UCB.
+ * Create UCB.
*/
Sequence< Any > aArgs( 2 );
aArgs[ 0 ] <<= OUString::createFromAscii( UCB_CONFIGURATION_KEY1_LOCAL );
@@ -143,11 +143,11 @@ void MyApp::Main()
exit( 1 );
}
#endif
-
+
/*
- * Initialize the Java UNO AccessBridge if accessibility is turned on
+ * Initialize the Java UNO AccessBridge if accessibility is turned on
*/
-
+
if( Application::GetSettings().GetMiscSettings().GetEnableATToolSupport() )
{
BOOL bQuitApp;
@@ -158,7 +158,7 @@ void MyApp::Main()
// initialize test-tool library (if available)
tools::InitTestToolLib();
-
+
ResMgr::SetReadStringHook( MyApp::ReadStringHook );
pPADialog = PADialog::Create( NULL , FALSE );
diff --git a/padmin/source/progress.cxx b/padmin/source/progress.cxx
index 467541fbb53c..7c6bea85fc87 100644
--- a/padmin/source/progress.cxx
+++ b/padmin/source/progress.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/padmin/source/progress.hxx b/padmin/source/progress.hxx
index 50449ac6d520..6f767099d083 100644
--- a/padmin/source/progress.hxx
+++ b/padmin/source/progress.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,26 +39,26 @@ namespace padmin {
class ProgressDialog : public ModelessDialog
{
- FixedText maOperation;
- FixedText maFilename;
- FixedText maProgressTxt;
- CancelButton maCancelButton;
- ProgressBar maProgressBar;
-
+ FixedText maOperation;
+ FixedText maFilename;
+ FixedText maProgressTxt;
+ CancelButton maCancelButton;
+ ProgressBar maProgressBar;
+
int mnMax, mnMin;
BOOL mbCanceled;
-
+
public:
ProgressDialog( Window*, BOOL bCancelable = TRUE, int nMin = 0, int nMax = 100 );
~ProgressDialog();
-
+
DECL_LINK( ClickBtnHdl, Button* );
-
+
void setValue( int nValue );
void setRange( int nMin, int nMax ) { mnMin = nMin; mnMax = nMax; }
void startOperation( const String& );
void setFilename( const String& );
-
+
BOOL isCanceled() { return mbCanceled; }
};
diff --git a/padmin/source/prtsetup.cxx b/padmin/source/prtsetup.cxx
index 3d9b4e51b0cb..04d58b538167 100644
--- a/padmin/source/prtsetup.cxx
+++ b/padmin/source/prtsetup.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,12 +50,12 @@ void RTSDialog::insertAllPPDValues( ListBox& rBox, const PPDParser* pParser, con
const PPDValue* pValue = NULL;
USHORT nPos = 0;
String aOptionText;
-
+
for( int i = 0; i < pKey->countValues(); i++ )
{
pValue = pKey->getValue( i );
aOptionText = pParser->translateOption( pKey->getKey(), pValue->m_aOption) ;
-
+
if( m_aJobData.m_aContext.checkConstraints( pKey, pValue ) )
{
if( rBox.GetEntryPos( (void*)pValue ) == LISTBOX_ENTRY_NOTFOUND )
@@ -173,8 +173,8 @@ IMPL_LINK( RTSDialog, ActivatePage, TabControl*, pTabCtrl )
{
switch( nId )
{
- case RID_RTS_PAPERPAGE: m_pPaperPage->update();break;
- case RID_RTS_DEVICEPAGE: m_pDevicePage->update();break;
+ case RID_RTS_PAPERPAGE: m_pPaperPage->update();break;
+ case RID_RTS_DEVICEPAGE: m_pDevicePage->update();break;
default: break;
}
}
@@ -196,9 +196,9 @@ IMPL_LINK( RTSDialog, ClickButton, Button*, pButton )
}
if( m_pDevicePage )
{
- m_aJobData.m_nColorDepth = m_pDevicePage->getDepth();
- m_aJobData.m_nColorDevice = m_pDevicePage->getColorDevice();
- m_aJobData.m_nPSLevel = m_pDevicePage->getLevel();
+ m_aJobData.m_nColorDepth = m_pDevicePage->getDepth();
+ m_aJobData.m_nColorDevice = m_pDevicePage->getColorDevice();
+ m_aJobData.m_nPSLevel = m_pDevicePage->getLevel();
}
if( m_pOtherPage )
// write other settings
@@ -206,7 +206,7 @@ IMPL_LINK( RTSDialog, ClickButton, Button*, pButton )
if( m_pCommandPage )
// write command settings
m_pCommandPage->save();
-
+
EndDialog( 1 );
}
else if( pButton == &m_aCancelButton )
@@ -225,7 +225,7 @@ RTSPaperPage::RTSPaperPage( RTSDialog* pParent ) :
TabPage( & pParent->m_aTabControl, PaResId( RID_RTS_PAPERPAGE ) ),
m_pParent( pParent ),
-
+
m_aPaperText( this, PaResId( RID_RTS_PAPER_PAPER_TXT ) ),
m_aPaperBox( this, PaResId( RID_RTS_PAPER_PAPER_BOX ) ),
m_aOrientText( this, PaResId( RID_RTS_PAPER_ORIENTATION_TXT ) ),
@@ -243,7 +243,7 @@ RTSPaperPage::RTSPaperPage( RTSDialog* pParent ) :
FreeResource();
USHORT nPos = 0;
-
+
m_aOrientBox.InsertEntry( PORTRAIT_STRING );
m_aOrientBox.InsertEntry( LSCAPE_STRING );
// duplex
@@ -269,13 +269,13 @@ RTSPaperPage::~RTSPaperPage()
void RTSPaperPage::update()
{
- const PPDKey* pKey = NULL;
-
+ const PPDKey* pKey = NULL;
+
// orientation
m_aOrientBox.SelectEntry(
m_pParent->m_aJobData.m_eOrientation == orientation::Landscape
? LSCAPE_STRING : PORTRAIT_STRING );
-
+
// duplex
if( m_pParent->m_aJobData.m_pParser &&
(pKey = m_pParent->m_aJobData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "Duplex" ) ) )) )
@@ -393,7 +393,7 @@ RTSDevicePage::RTSDevicePage( RTSDialog* pParent ) :
m_aLevelBox.SelectEntry( m_pParent->m_aFromDriverString );
else
m_aLevelBox.SelectEntry( String::CreateFromInt32( m_pParent->m_aJobData.m_nPSLevel ) );
-
+
m_aDepthBox.SelectEntry( String::CreateFromInt32( m_pParent->m_aJobData.m_nColorDepth ).AppendAscii( " Bit" ) );
// fill ppd boxes
@@ -402,10 +402,10 @@ RTSDevicePage::RTSDevicePage( RTSDialog* pParent ) :
for( int i = 0; i < m_pParent->m_aJobData.m_pParser->getKeys(); i++ )
{
const PPDKey* pKey = m_pParent->m_aJobData.m_pParser->getKey( i );
- if( pKey->isUIKey() &&
- ! pKey->getKey().EqualsAscii( "PageSize" ) &&
- ! pKey->getKey().EqualsAscii( "InputSlot" ) &&
- ! pKey->getKey().EqualsAscii( "PageRegion" ) &&
+ if( pKey->isUIKey() &&
+ ! pKey->getKey().EqualsAscii( "PageSize" ) &&
+ ! pKey->getKey().EqualsAscii( "InputSlot" ) &&
+ ! pKey->getKey().EqualsAscii( "PageRegion" ) &&
! pKey->getKey().EqualsAscii( "Duplex" )
)
{
@@ -534,10 +534,10 @@ void RTSOtherPage::initValues()
nMarginBottom );
}
- nMarginLeft += m_pParent->m_aJobData.m_nLeftMarginAdjust;
- nMarginRight += m_pParent->m_aJobData.m_nRightMarginAdjust;
- nMarginTop += m_pParent->m_aJobData.m_nTopMarginAdjust;
- nMarginBottom += m_pParent->m_aJobData.m_nBottomMarginAdjust;
+ nMarginLeft += m_pParent->m_aJobData.m_nLeftMarginAdjust;
+ nMarginRight += m_pParent->m_aJobData.m_nRightMarginAdjust;
+ nMarginTop += m_pParent->m_aJobData.m_nTopMarginAdjust;
+ nMarginBottom += m_pParent->m_aJobData.m_nBottomMarginAdjust;
m_aLeftLB.SetValue( nMarginLeft, FUNIT_POINT );
m_aRightLB.SetValue( nMarginRight, FUNIT_POINT );
@@ -565,10 +565,10 @@ void RTSOtherPage::save()
nMarginBottom );
}
- m_pParent->m_aJobData.m_nLeftMarginAdjust = m_aLeftLB.GetValue( FUNIT_POINT ) - nMarginLeft;
- m_pParent->m_aJobData.m_nRightMarginAdjust = m_aRightLB.GetValue( FUNIT_POINT ) - nMarginRight;
- m_pParent->m_aJobData.m_nTopMarginAdjust = m_aTopLB.GetValue( FUNIT_POINT ) - nMarginTop;
- m_pParent->m_aJobData.m_nBottomMarginAdjust = m_aBottomLB.GetValue( FUNIT_POINT ) - nMarginBottom;
+ m_pParent->m_aJobData.m_nLeftMarginAdjust = m_aLeftLB.GetValue( FUNIT_POINT ) - nMarginLeft;
+ m_pParent->m_aJobData.m_nRightMarginAdjust = m_aRightLB.GetValue( FUNIT_POINT ) - nMarginRight;
+ m_pParent->m_aJobData.m_nTopMarginAdjust = m_aTopLB.GetValue( FUNIT_POINT ) - nMarginTop;
+ m_pParent->m_aJobData.m_nBottomMarginAdjust = m_aBottomLB.GetValue( FUNIT_POINT ) - nMarginBottom;
m_pParent->m_aJobData.m_aComment = m_aCommentEdt.GetText();
}
@@ -583,7 +583,7 @@ IMPL_LINK( RTSOtherPage, ClickBtnHdl, Button*, pButton )
m_pParent->m_aJobData.m_nTopMarginAdjust =
m_pParent->m_aJobData.m_nBottomMarginAdjust = 0;
- initValues();
+ initValues();
}
return 0;
}
@@ -591,7 +591,7 @@ IMPL_LINK( RTSOtherPage, ClickBtnHdl, Button*, pButton )
// ------------------------------------------------------------------
/*
- * RTSFontSubstPage
+ * RTSFontSubstPage
*/
RTSFontSubstPage::RTSFontSubstPage( RTSDialog* pParent ) :
@@ -730,18 +730,18 @@ IMPL_LINK( RTSFontSubstPage, ClickBtnHdl, Button*, pButton )
class RTSPWDialog : public ModalDialog
{
- FixedText m_aText;
- FixedText m_aUserText;
- Edit m_aUserEdit;
- FixedText m_aPassText;
- Edit m_aPassEdit;
-
- OKButton m_aOKButton;
- CancelButton m_aCancelButton;
+ FixedText m_aText;
+ FixedText m_aUserText;
+ Edit m_aUserEdit;
+ FixedText m_aPassText;
+ Edit m_aPassEdit;
+
+ OKButton m_aOKButton;
+ CancelButton m_aCancelButton;
public:
RTSPWDialog( const OString& rServer, const OString& rUserName, Window* pParent );
~RTSPWDialog();
-
+
OString getUserName() const;
OString getPassword() const;
};
@@ -804,7 +804,7 @@ extern "C" {
bool Sal_authenticateQuery( const OString& rServer, OString& rUserName, OString& rPassword )
{
bool bRet = false;
-
+
RTSPWDialog aDialog( rServer, rUserName, NULL );
if( aDialog.Execute() )
{
diff --git a/padmin/source/prtsetup.hxx b/padmin/source/prtsetup.hxx
index 10a7b57e857b..c50205d7cf2b 100644
--- a/padmin/source/prtsetup.hxx
+++ b/padmin/source/prtsetup.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,95 +59,95 @@ class RTSDialog : public TabDialog
friend class RTSOtherPage;
friend class RTSFontSubstPage;
friend class RTSCommandPage;
-
- ::psp::PrinterInfo m_aJobData;
- String m_aPrinter;
-
+
+ ::psp::PrinterInfo m_aJobData;
+ String m_aPrinter;
+
// controls
- TabControl m_aTabControl;
- OKButton m_aOKButton;
- CancelButton m_aCancelButton;
-
+ TabControl m_aTabControl;
+ OKButton m_aOKButton;
+ CancelButton m_aCancelButton;
+
// pages
- RTSPaperPage* m_pPaperPage;
- RTSDevicePage* m_pDevicePage;
- RTSOtherPage* m_pOtherPage;
- RTSFontSubstPage* m_pFontSubstPage;
- RTSCommandPage* m_pCommandPage;
-
+ RTSPaperPage* m_pPaperPage;
+ RTSDevicePage* m_pDevicePage;
+ RTSOtherPage* m_pOtherPage;
+ RTSFontSubstPage* m_pFontSubstPage;
+ RTSCommandPage* m_pCommandPage;
+
// some resources
- String m_aInvalidString;
- String m_aFromDriverString;
-
+ String m_aInvalidString;
+ String m_aFromDriverString;
+
DECL_LINK( ActivatePage, TabControl* );
DECL_LINK( ClickButton, Button* );
-
+
// helper functions
void insertAllPPDValues( ListBox&, const psp::PPDParser*, const psp::PPDKey* );
public:
RTSDialog( const ::psp::PrinterInfo& rJobData, const String& rPrinter, bool bAllPages, Window* pParent = NULL );
~RTSDialog();
-
+
const ::psp::PrinterInfo& getSetup() const { return m_aJobData; }
};
-
+
class RTSPaperPage : public TabPage
{
- RTSDialog* m_pParent;
-
- FixedText m_aPaperText;
- ListBox m_aPaperBox;
-
- FixedText m_aOrientText;
- ListBox m_aOrientBox;
-
- FixedText m_aDuplexText;
- ListBox m_aDuplexBox;
-
- FixedText m_aSlotText;
- ListBox m_aSlotBox;
-
+ RTSDialog* m_pParent;
+
+ FixedText m_aPaperText;
+ ListBox m_aPaperBox;
+
+ FixedText m_aOrientText;
+ ListBox m_aOrientBox;
+
+ FixedText m_aDuplexText;
+ ListBox m_aDuplexBox;
+
+ FixedText m_aSlotText;
+ ListBox m_aSlotBox;
+
DECL_LINK( SelectHdl, ListBox* );
public:
RTSPaperPage( RTSDialog* );
~RTSPaperPage();
-
+
void update();
-
+
String getOrientation() { return m_aOrientBox.GetSelectEntry(); }
};
class RTSDevicePage : public TabPage
{
- RTSDialog* m_pParent;
-
- String m_aSpaceColor;
- String m_aSpaceGray;
-
- FixedText m_aPPDKeyText;
- ListBox m_aPPDKeyBox;
-
- FixedText m_aPPDValueText;
- ListBox m_aPPDValueBox;
-
- FixedText m_aLevelText;
- ListBox m_aLevelBox;
-
- FixedText m_aSpaceText;
- ListBox m_aSpaceBox;
-
- FixedText m_aDepthText;
- ListBox m_aDepthBox;
-
+ RTSDialog* m_pParent;
+
+ String m_aSpaceColor;
+ String m_aSpaceGray;
+
+ FixedText m_aPPDKeyText;
+ ListBox m_aPPDKeyBox;
+
+ FixedText m_aPPDValueText;
+ ListBox m_aPPDValueBox;
+
+ FixedText m_aLevelText;
+ ListBox m_aLevelBox;
+
+ FixedText m_aSpaceText;
+ ListBox m_aSpaceBox;
+
+ FixedText m_aDepthText;
+ ListBox m_aDepthBox;
+
void FillValueBox( const ::psp::PPDKey* );
-
+
DECL_LINK( SelectHdl, ListBox* );
public:
RTSDevicePage( RTSDialog* );
~RTSDevicePage();
-
+
void update();
-
+
ULONG getLevel() { return m_aLevelBox.GetSelectEntry().ToInt32(); }
ULONG getDepth() { return m_aDepthBox.GetSelectEntry().ToInt32(); }
ULONG getColorDevice()
@@ -156,48 +156,48 @@ public:
return aSpace == m_aSpaceColor ? 1 : ( aSpace == m_aSpaceGray ? -1 : 0 );
}
};
-
+
class RTSOtherPage : public TabPage
{
- RTSDialog* m_pParent;
-
- FixedText m_aLeftTxt;
- MetricField m_aLeftLB;
- FixedText m_aTopTxt;
- MetricField m_aTopLB;
- FixedText m_aRightTxt;
- MetricField m_aRightLB;
- FixedText m_aBottomTxt;
- MetricField m_aBottomLB;
- FixedText m_aCommentTxt;
- Edit m_aCommentEdt;
- PushButton m_aDefaultBtn;
-
+ RTSDialog* m_pParent;
+
+ FixedText m_aLeftTxt;
+ MetricField m_aLeftLB;
+ FixedText m_aTopTxt;
+ MetricField m_aTopLB;
+ FixedText m_aRightTxt;
+ MetricField m_aRightLB;
+ FixedText m_aBottomTxt;
+ MetricField m_aBottomLB;
+ FixedText m_aCommentTxt;
+ Edit m_aCommentEdt;
+ PushButton m_aDefaultBtn;
+
void initValues();
-
+
DECL_LINK( ClickBtnHdl, Button *);
-
+
public:
RTSOtherPage( RTSDialog* );
~RTSOtherPage();
-
+
void save();
};
class RTSFontSubstPage : public TabPage
{
- RTSDialog* m_pParent;
+ RTSDialog* m_pParent;
- FixedText m_aSubstitutionsText;
- DelMultiListBox m_aSubstitutionsBox;
- FixedText m_aFromFontText;
- ComboBox m_aFromFontBox;
- FixedText m_aToFontText;
- ListBox m_aToFontBox;
+ FixedText m_aSubstitutionsText;
+ DelMultiListBox m_aSubstitutionsBox;
+ FixedText m_aFromFontText;
+ ComboBox m_aFromFontBox;
+ FixedText m_aToFontText;
+ ListBox m_aToFontBox;
- PushButton m_aAddButton;
- PushButton m_aRemoveButton;
- CheckBox m_aEnableBox;
+ PushButton m_aAddButton;
+ PushButton m_aRemoveButton;
+ CheckBox m_aEnableBox;
DECL_LINK( ClickBtnHdl, Button* );
DECL_LINK( SelectHdl, ListBox* );
@@ -208,8 +208,8 @@ public:
RTSFontSubstPage( RTSDialog* );
~RTSFontSubstPage();
};
-
-} // namespace
+
+} // namespace
#endif // _PAD_PRTSETUP_HXX
diff --git a/padmin/source/rtsetup.hrc b/padmin/source/rtsetup.hrc
index 30439088de8e..9fa500a4a329 100644
--- a/padmin/source/rtsetup.hrc
+++ b/padmin/source/rtsetup.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,93 +28,93 @@
#ifndef _PAD_RTSETUP_HRC_
#define _PAD_RTSETUP_HRC_
-#define RID_RTS_RTSDIALOG 4001
-#define RID_RTS_RTSDIALOG_INVALID_TXT 1
-#define RID_RTS_RTSDIALOG_FROMDRIVER_TXT 2
-#define RID_RTS_RTSDIALOG_TABCONTROL 3
+#define RID_RTS_RTSDIALOG 4001
+#define RID_RTS_RTSDIALOG_INVALID_TXT 1
+#define RID_RTS_RTSDIALOG_FROMDRIVER_TXT 2
+#define RID_RTS_RTSDIALOG_TABCONTROL 3
-#define RID_RTS_OTHERPAGE 4002
-#define RID_RTS_OTHER_LEFTMARGIN_TXT 1
-#define RID_RTS_OTHER_LEFTMARGIN_BOX 2
-#define RID_RTS_OTHER_TOPMARGIN_TXT 3
-#define RID_RTS_OTHER_TOPMARGIN_BOX 4
-#define RID_RTS_OTHER_RIGHTMARGIN_TXT 5
-#define RID_RTS_OTHER_RIGHTMARGIN_BOX 6
-#define RID_RTS_OTHER_BOTTOMMARGIN_TXT 7
-#define RID_RTS_OTHER_BOTTOMMARGIN_BOX 8
-#define RID_RTS_OTHER_COMMENT_TXT 9
-#define RID_RTS_OTHER_COMMENT_EDT 10
-#define RID_RTS_OTHER_DEFAULT_BTN 11
+#define RID_RTS_OTHERPAGE 4002
+#define RID_RTS_OTHER_LEFTMARGIN_TXT 1
+#define RID_RTS_OTHER_LEFTMARGIN_BOX 2
+#define RID_RTS_OTHER_TOPMARGIN_TXT 3
+#define RID_RTS_OTHER_TOPMARGIN_BOX 4
+#define RID_RTS_OTHER_RIGHTMARGIN_TXT 5
+#define RID_RTS_OTHER_RIGHTMARGIN_BOX 6
+#define RID_RTS_OTHER_BOTTOMMARGIN_TXT 7
+#define RID_RTS_OTHER_BOTTOMMARGIN_BOX 8
+#define RID_RTS_OTHER_COMMENT_TXT 9
+#define RID_RTS_OTHER_COMMENT_EDT 10
+#define RID_RTS_OTHER_DEFAULT_BTN 11
-#define RID_RTS_DEVICEPAGE 4003
-#define RID_RTS_DEVICE_COLOR_TXT 1
-#define RID_RTS_DEVICE_GRAY_TXT 2
-#define RID_RTS_DEVICE_PPDKEY_TXT 3
-#define RID_RTS_DEVICE_PPDKEY_BOX 4
-#define RID_RTS_DEVICE_PPDVALUE_TXT 5
-#define RID_RTS_DEVICE_PPDVALUE_BOX 6
-#define RID_RTS_DEVICE_LEVEL_TXT 7
-#define RID_RTS_DEVICE_LEVEL_BOX 8
-#define RID_RTS_DEVICE_SPACE_TXT 9
-#define RID_RTS_DEVICE_SPACE_BOX 10
-#define RID_RTS_DEVICE_DEPTH_TXT 11
-#define RID_RTS_DEVICE_DEPTH_BOX 12
-#define RID_RTS_DEVICE_COMPRESS_BOX 13
+#define RID_RTS_DEVICEPAGE 4003
+#define RID_RTS_DEVICE_COLOR_TXT 1
+#define RID_RTS_DEVICE_GRAY_TXT 2
+#define RID_RTS_DEVICE_PPDKEY_TXT 3
+#define RID_RTS_DEVICE_PPDKEY_BOX 4
+#define RID_RTS_DEVICE_PPDVALUE_TXT 5
+#define RID_RTS_DEVICE_PPDVALUE_BOX 6
+#define RID_RTS_DEVICE_LEVEL_TXT 7
+#define RID_RTS_DEVICE_LEVEL_BOX 8
+#define RID_RTS_DEVICE_SPACE_TXT 9
+#define RID_RTS_DEVICE_SPACE_BOX 10
+#define RID_RTS_DEVICE_DEPTH_TXT 11
+#define RID_RTS_DEVICE_DEPTH_BOX 12
+#define RID_RTS_DEVICE_COMPRESS_BOX 13
-#define RID_RTS_PAPERPAGE 4004
-#define RID_RTS_PAPER_PAPER_TXT 1
-#define RID_RTS_PAPER_PAPER_BOX 2
-#define RID_RTS_PAPER_ORIENTATION_TXT 3
-#define RID_RTS_PAPER_ORIENTATION_BOX 4
-#define RID_RTS_PAPER_DUPLEX_TXT 5
-#define RID_RTS_PAPER_DUPLEX_BOX 6
-#define RID_RTS_PAPER_SLOT_TXT 7
-#define RID_RTS_PAPER_SLOT_BOX 8
+#define RID_RTS_PAPERPAGE 4004
+#define RID_RTS_PAPER_PAPER_TXT 1
+#define RID_RTS_PAPER_PAPER_BOX 2
+#define RID_RTS_PAPER_ORIENTATION_TXT 3
+#define RID_RTS_PAPER_ORIENTATION_BOX 4
+#define RID_RTS_PAPER_DUPLEX_TXT 5
+#define RID_RTS_PAPER_DUPLEX_BOX 6
+#define RID_RTS_PAPER_SLOT_TXT 7
+#define RID_RTS_PAPER_SLOT_BOX 8
-#define RID_RTS_FONTSUBSTPAGE 4005
-#define RID_RTS_FS_SUBST_TXT 1
-#define RID_RTS_FS_SUBST_BOX 2
-#define RID_RTS_FS_FROM_TXT 3
-#define RID_RTS_FS_FROM_BOX 4
-#define RID_RTS_FS_TO_TXT 5
-#define RID_RTS_FS_TO_BOX 6
-#define RID_RTS_FS_ADD_BTN 7
-#define RID_RTS_FS_REMOVE_BTN 8
-#define RID_RTS_FS_ENABLE_BTN 9
+#define RID_RTS_FONTSUBSTPAGE 4005
+#define RID_RTS_FS_SUBST_TXT 1
+#define RID_RTS_FS_SUBST_BOX 2
+#define RID_RTS_FS_FROM_TXT 3
+#define RID_RTS_FS_FROM_BOX 4
+#define RID_RTS_FS_TO_TXT 5
+#define RID_RTS_FS_TO_BOX 6
+#define RID_RTS_FS_ADD_BTN 7
+#define RID_RTS_FS_REMOVE_BTN 8
+#define RID_RTS_FS_ENABLE_BTN 9
#define RID_RTS_COMMANDPAGE 4006
-#define RID_RTS_CMD_TXT_PRTNAME 1
-#define RID_RTS_CMD_TXT_CONNECT 2
-#define RID_RTS_CMD_FL_DEFAULT 3
-#define RID_RTS_CMD_BTN_HELP 4
-#define RID_RTS_CMD_CB_COMMANDS 5
-#define RID_RTS_CMD_FL_INSTALL 6
-#define RID_RTS_CMD_TXT_CONFIGURE 7
-#define RID_RTS_CMD_LB_CONFIGURE 8
-#define RID_RTS_CMD_STR_CONFIGURE_PRINTER 9
-#define RID_RTS_CMD_STR_CONFIGURE_FAX 10
-#define RID_RTS_CMD_STR_CONFIGURE_PDF 11
-#define RID_RTS_CMD_STR_PRINTERHELP 12
-#define RID_RTS_CMD_STR_FAXHELP 13
-#define RID_RTS_CMD_STR_PDFHELP 14
-#define RID_RTS_CMD_BTN_REMOVE 15
-#define RID_RTS_CMD_EDT_PDFDIR 16
-#define RID_RTS_CMD_BTN_PDFDIR 17
-#define RID_RTS_CMD_TXT_PDFDIR 18
-#define RID_RTS_CMD_BOX_SWALLOWFAXNO 19
+#define RID_RTS_CMD_TXT_PRTNAME 1
+#define RID_RTS_CMD_TXT_CONNECT 2
+#define RID_RTS_CMD_FL_DEFAULT 3
+#define RID_RTS_CMD_BTN_HELP 4
+#define RID_RTS_CMD_CB_COMMANDS 5
+#define RID_RTS_CMD_FL_INSTALL 6
+#define RID_RTS_CMD_TXT_CONFIGURE 7
+#define RID_RTS_CMD_LB_CONFIGURE 8
+#define RID_RTS_CMD_STR_CONFIGURE_PRINTER 9
+#define RID_RTS_CMD_STR_CONFIGURE_FAX 10
+#define RID_RTS_CMD_STR_CONFIGURE_PDF 11
+#define RID_RTS_CMD_STR_PRINTERHELP 12
+#define RID_RTS_CMD_STR_FAXHELP 13
+#define RID_RTS_CMD_STR_PDFHELP 14
+#define RID_RTS_CMD_BTN_REMOVE 15
+#define RID_RTS_CMD_EDT_PDFDIR 16
+#define RID_RTS_CMD_BTN_PDFDIR 17
+#define RID_RTS_CMD_TXT_PDFDIR 18
+#define RID_RTS_CMD_BOX_SWALLOWFAXNO 19
#define RID_RTS_CMD_CB_EXTERNAL 20
#define RID_RTS_CMD_FT_QUICKCMD 21
#define RIT_RTS_CMD_CB_QUICKCMD 22
-#define RID_TXT_QUERYFAXNUMBER 4007
+#define RID_TXT_QUERYFAXNUMBER 4007
-#define RID_RTS_PWDIALOG 4008
-#define RID_RTS_PWDIALOG_TXT 1
-#define RID_RTS_PWDIALOG_USER_TXT 2
-#define RID_RTS_PWDIALOG_USER_EDT 3
-#define RID_RTS_PWDIALOG_PASS_TXT 4
-#define RID_RTS_PWDIALOG_PASS_EDT 5
-#define RID_RTS_PWDIALOG_OK_BTN 6
-#define RID_RTS_PWDIALOG_CANCEL_BTN 7
+#define RID_RTS_PWDIALOG 4008
+#define RID_RTS_PWDIALOG_TXT 1
+#define RID_RTS_PWDIALOG_USER_TXT 2
+#define RID_RTS_PWDIALOG_USER_EDT 3
+#define RID_RTS_PWDIALOG_PASS_TXT 4
+#define RID_RTS_PWDIALOG_PASS_EDT 5
+#define RID_RTS_PWDIALOG_OK_BTN 6
+#define RID_RTS_PWDIALOG_CANCEL_BTN 7
#endif
diff --git a/padmin/source/rtsetup.src b/padmin/source/rtsetup.src
index e04374a72245..d439928220ae 100644
--- a/padmin/source/rtsetup.src
+++ b/padmin/source/rtsetup.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -337,7 +337,7 @@ TabPage RID_RTS_COMMANDPAGE
{
Text [ en-US ] = "PDF converter";
};
-
+
ListBox RID_RTS_CMD_LB_CONFIGURE
{
DropDown = true;
diff --git a/padmin/source/spadmin.sh b/padmin/source/spadmin.sh
index 3d8aa73e846b..b57fd63cf894 100644
--- a/padmin/source/spadmin.sh
+++ b/padmin/source/spadmin.sh
@@ -2,7 +2,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@ export SAL_ENABLE_FILE_LOCKING
sd_cwd="`pwd`"
if [ -h "$0" ] ; then
sd_basename=`basename "$0"`
- sd_script=`ls -l "$0" | sed "s/.*${sd_basename} -> //g"`
+ sd_script=`ls -l "$0" | sed "s/.*${sd_basename} -> //g"`
cd "`dirname "$0"`"
cd "`dirname "$sd_script"`"
else
diff --git a/padmin/source/titlectrl.cxx b/padmin/source/titlectrl.cxx
index 1b67939099aa..ccd31fdebef6 100644
--- a/padmin/source/titlectrl.cxx
+++ b/padmin/source/titlectrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/padmin/source/titlectrl.hxx b/padmin/source/titlectrl.hxx
index df5a70bb07c9..c1fa2c1a8865 100644
--- a/padmin/source/titlectrl.hxx
+++ b/padmin/source/titlectrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,13 +37,13 @@ namespace padmin
class TitleImage : public Control
{
- Image m_aImage;
- String m_aText;
- Color m_aBGColor;
- Point m_aImagePos;
- Point m_aTextPos;
+ Image m_aImage;
+ String m_aText;
+ Color m_aBGColor;
+ Point m_aImagePos;
+ Point m_aTextPos;
- bool m_bArranged;
+ bool m_bArranged;
void arrange();
public:
diff --git a/regexp/inc/pch/precompiled_regexp.cxx b/regexp/inc/pch/precompiled_regexp.cxx
index f4eea5e9fbf6..81d5e213c904 100644
--- a/regexp/inc/pch/precompiled_regexp.cxx
+++ b/regexp/inc/pch/precompiled_regexp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/regexp/inc/pch/precompiled_regexp.hxx b/regexp/inc/pch/precompiled_regexp.hxx
index 349242d2b3a3..3e7fcdb68c57 100644
--- a/regexp/inc/pch/precompiled_regexp.hxx
+++ b/regexp/inc/pch/precompiled_regexp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/regexp/source/reclass.cxx b/regexp/source/reclass.cxx
index 244b746be3dd..8b7822069c3b 100644
--- a/regexp/source/reclass.cxx
+++ b/regexp/source/reclass.cxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,11 +96,11 @@
// Macros
-#define INIT_COMPILE_STACK_SIZE 32
-#define INIT_BUF_SIZE ((1 << BYTEWIDTH)/BYTEWIDTH)
-#define MAX_BUF_SIZE 65535L
-#define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH)
-#define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1)
+#define INIT_COMPILE_STACK_SIZE 32
+#define INIT_BUF_SIZE ((1 << BYTEWIDTH)/BYTEWIDTH)
+#define MAX_BUF_SIZE 65535L
+#define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH)
+#define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1)
/* Since we have one byte reserved for the register number argument to
{start,stop}_memory, the maximum number of groups we can report
@@ -146,8 +146,8 @@
# define REGEX_ALLOCATE alloca
/* Assumes a `char *destination' variable. */
-# define REGEX_REALLOCATE(source, osize, nsize) \
- (destination = (char *) alloca (nsize), \
+# define REGEX_REALLOCATE(source, osize, nsize) \
+ (destination = (char *) alloca (nsize), \
memcpy (destination, source, osize))
/* No need to do anything to free, after alloca. */
@@ -168,7 +168,7 @@
# define REGEX_ALLOCATE_STACK alloca
-# define REGEX_REALLOCATE_STACK(source, osize, nsize) \
+# define REGEX_REALLOCATE_STACK(source, osize, nsize) \
REGEX_REALLOCATE (source, osize, nsize)
/* No need to explicitly free anything. */
# define REGEX_FREE_STACK(arg)
@@ -183,7 +183,7 @@
if (addr) RETALLOC((addr), (n), t); else (addr) = TALLOC ((n), t)
#define REGEX_TALLOC(n, t) ((t *) REGEX_ALLOCATE ((n) * sizeof (t)))
-#define BYTEWIDTH 16 /* In bits (assuming sizeof(sal_Unicode)*8) */
+#define BYTEWIDTH 16 /* In bits (assuming sizeof(sal_Unicode)*8) */
#define CHAR_CLASS_MAX_LENGTH 256
@@ -191,7 +191,7 @@
/* Fetch the next character in the uncompiled pattern, with no
translation. */
#define PATFETCH_RAW(c) \
- do { \
+ do { \
if (p == pend) return REG_EEND; \
c = (sal_Unicode) *p++; \
} while (0)
@@ -199,11 +199,11 @@
/* Go backwards one character in the pattern. */
#define PATUNFETCH p--
-#define FREE_STACK_RETURN(value) \
+#define FREE_STACK_RETURN(value) \
return(free(compile_stack.stack), value)
-#define GET_BUFFER_SPACE(n) \
- while ((sal_uInt32)(b - bufp->buffer + (n)) > bufp->allocated) \
+#define GET_BUFFER_SPACE(n) \
+ while ((sal_uInt32)(b - bufp->buffer + (n)) > bufp->allocated) \
EXTEND_BUFFER()
/* Extend the buffer by twice its current size via realloc and
@@ -218,9 +218,9 @@
bufp->allocated <<= 1; \
if (bufp->allocated > MAX_BUF_SIZE) \
bufp->allocated = MAX_BUF_SIZE; \
- bufp->buffer = (sal_Unicode *) realloc(bufp->buffer, \
- bufp->allocated * \
- sizeof(sal_Unicode)); \
+ bufp->buffer = (sal_Unicode *) realloc(bufp->buffer, \
+ bufp->allocated * \
+ sizeof(sal_Unicode)); \
if (bufp->buffer == NULL) \
return REG_ESPACE; \
/* If the buffer moved, move all the pointers into it. */ \
@@ -236,16 +236,16 @@
} \
} while (0)
-#define BUF_PUSH(c) \
- do { \
- GET_BUFFER_SPACE(1); \
- *b++ = (sal_Unicode)(c); \
+#define BUF_PUSH(c) \
+ do { \
+ GET_BUFFER_SPACE(1); \
+ *b++ = (sal_Unicode)(c); \
} while(0)
/* Ensure we have two more bytes of buffer space and then append C1 and C2. */
#define BUF_PUSH_2(c1, c2) \
do { \
- GET_BUFFER_SPACE(2); \
+ GET_BUFFER_SPACE(2); \
*b++ = (sal_Unicode) (c1); \
*b++ = (sal_Unicode) (c2); \
} while (0)
@@ -253,7 +253,7 @@
/* As with BUF_PUSH_2, except for three bytes. */
#define BUF_PUSH_3(c1, c2, c3) \
do { \
- GET_BUFFER_SPACE(3); \
+ GET_BUFFER_SPACE(3); \
*b++ = (sal_Unicode) (c1); \
*b++ = (sal_Unicode) (c2); \
*b++ = (sal_Unicode) (c3); \
@@ -261,11 +261,11 @@
/* Store a jump with opcode OP at LOC to location TO. We store a
relative address offset by the three bytes the jump itself occupies. */
-#define STORE_JUMP(op, loc, to) \
+#define STORE_JUMP(op, loc, to) \
store_op1(op, loc, (int) ((to) - (loc) - 3))
/* Likewise, for a two-argument jump. */
-#define STORE_JUMP2(op, loc, to, arg) \
+#define STORE_JUMP2(op, loc, to, arg) \
store_op2(op, loc, (int) ((to) - (loc) - 3), arg)
/* Store NUMBER in two contiguous sal_Unicode starting at DESTINATION. */
@@ -277,7 +277,7 @@ Regexpr::store_number( sal_Unicode * destination, sal_Int32 number )
(destination)[0] = sal_Unicode((number) & 0xffff);
(destination)[1] = sal_Unicode((number) >> 16);
}
-
+
/* Same as STORE_NUMBER, except increment DESTINATION to
the byte after where the number is stored. Therefore, DESTINATION
must be an lvalue. */
@@ -299,11 +299,11 @@ inline void Regexpr::extract_number( sal_Int32 & dest, sal_Unicode *source )
}
/* Like `STORE_JUMP', but for inserting. Assume `b' is the buffer end. */
-#define INSERT_JUMP(op, loc, to) \
+#define INSERT_JUMP(op, loc, to) \
insert_op1(op, loc, (sal_Int32) ((to) - (loc) - 3), b)
/* Like `STORE_JUMP2', but for inserting. Assume `b' is the buffer end. */
-#define INSERT_JUMP2(op, loc, to, arg) \
+#define INSERT_JUMP2(op, loc, to, arg) \
insert_op2(op, loc, (sal_Int32) ((to) - (loc) - 3), arg, b)
#define STREQ(s1, s2) (rtl_ustr_compare((s1), (s2)) ? (0) : (1))
@@ -317,45 +317,45 @@ inline void Regexpr::extract_number( sal_Int32 & dest, sal_Unicode *source )
/* Get the next unsigned number in the uncompiled pattern. */
#define GET_UNSIGNED_NUMBER(num) { \
if (p != pend) { \
- PATFETCH_RAW(c); \
- while (c >= (sal_Unicode)'0' && c <= (sal_Unicode)'9') { \
+ PATFETCH_RAW(c); \
+ while (c >= (sal_Unicode)'0' && c <= (sal_Unicode)'9') { \
if (num < 0) \
num = 0; \
- num = num * 10 + c - (sal_Unicode)'0'; \
- if (p == pend) \
- break; \
- PATFETCH_RAW(c); \
+ num = num * 10 + c - (sal_Unicode)'0'; \
+ if (p == pend) \
+ break; \
+ PATFETCH_RAW(c); \
} \
} \
}
/* Get the next hex number in the uncompiled pattern. */
-#define GET_HEX_NUMBER(num) { \
+#define GET_HEX_NUMBER(num) { \
if (p != pend) { \
- sal_Bool stop = false; \
- sal_Int16 hexcnt = 1; \
- PATFETCH_RAW(c); \
- while ( (c >= (sal_Unicode)'0' && c <= (sal_Unicode)'9') || (c >= (sal_Unicode)'a' && c <= (sal_Unicode)'f') || (c >= (sal_Unicode)'A' && c <= (sal_Unicode)'F') ) { \
+ sal_Bool stop = false; \
+ sal_Int16 hexcnt = 1; \
+ PATFETCH_RAW(c); \
+ while ( (c >= (sal_Unicode)'0' && c <= (sal_Unicode)'9') || (c >= (sal_Unicode)'a' && c <= (sal_Unicode)'f') || (c >= (sal_Unicode)'A' && c <= (sal_Unicode)'F') ) { \
if (num < 0) \
num = 0; \
if ( c >= (sal_Unicode)'0' && c <= (sal_Unicode)'9' ) \
- num = num * 16 + c - (sal_Unicode)'0'; \
+ num = num * 16 + c - (sal_Unicode)'0'; \
else if ( c >= (sal_Unicode)'a' && c <= (sal_Unicode)'f' ) \
- num = num * 16 + (10 + c - (sal_Unicode)'a'); \
- else \
- num = num * 16 + (10 + c - (sal_Unicode)'A'); \
- if (p == pend || hexcnt == 4) { \
- stop = true; \
- break; \
- } \
- PATFETCH_RAW(c); \
- hexcnt++; \
+ num = num * 16 + (10 + c - (sal_Unicode)'a'); \
+ else \
+ num = num * 16 + (10 + c - (sal_Unicode)'A'); \
+ if (p == pend || hexcnt == 4) { \
+ stop = true; \
+ break; \
+ } \
+ PATFETCH_RAW(c); \
+ hexcnt++; \
} \
\
- if ( ! stop ) { \
- PATUNFETCH; \
- hexcnt--; \
- } \
+ if ( ! stop ) { \
+ PATUNFETCH; \
+ hexcnt--; \
+ } \
if ( hexcnt > 4 || (num < 0 || num > 0xffff) ) num = -1;\
} \
}
@@ -368,16 +368,16 @@ inline void Regexpr::extract_number( sal_Int32 & dest, sal_Unicode *source )
# define INIT_FAILURE_ALLOC 5
#endif
-#define INIT_FAIL_STACK() \
- do { \
- fail_stack.stack = (fail_stack_elt_t *) \
+#define INIT_FAIL_STACK() \
+ do { \
+ fail_stack.stack = (fail_stack_elt_t *) \
REGEX_ALLOCATE_STACK (INIT_FAILURE_ALLOC * sizeof (fail_stack_elt_t)); \
\
- if (fail_stack.stack == NULL) \
- return -2; \
+ if (fail_stack.stack == NULL) \
+ return -2; \
\
- fail_stack.size = INIT_FAILURE_ALLOC; \
- fail_stack.avail = 0; \
+ fail_stack.size = INIT_FAILURE_ALLOC; \
+ fail_stack.avail = 0; \
} while (0)
#define RESET_FAIL_STACK() REGEX_FREE_STACK (fail_stack.stack)
@@ -389,17 +389,17 @@ inline void Regexpr::extract_number( sal_Int32 & dest, sal_Unicode *source )
REGEX_REALLOCATE_STACK requires `destination' be declared. */
-#define DOUBLE_FAIL_STACK(fail_stack) \
- ((fail_stack).size > (sal_uInt32) (re_max_failures * MAX_FAILURE_ITEMS) \
- ? 0 \
- : ((fail_stack).stack = (fail_stack_elt_t *) \
- REGEX_REALLOCATE_STACK ((fail_stack).stack, \
- (fail_stack).size * sizeof (fail_stack_elt_t), \
- ((fail_stack).size << 1) * sizeof (fail_stack_elt_t)), \
+#define DOUBLE_FAIL_STACK(fail_stack) \
+ ((fail_stack).size > (sal_uInt32) (re_max_failures * MAX_FAILURE_ITEMS) \
+ ? 0 \
+ : ((fail_stack).stack = (fail_stack_elt_t *) \
+ REGEX_REALLOCATE_STACK ((fail_stack).stack, \
+ (fail_stack).size * sizeof (fail_stack_elt_t), \
+ ((fail_stack).size << 1) * sizeof (fail_stack_elt_t)), \
\
- (fail_stack).stack == NULL \
- ? 0 \
- : ((fail_stack).size <<= 1, \
+ (fail_stack).stack == NULL \
+ ? 0 \
+ : ((fail_stack).size <<= 1, \
1)))
@@ -415,13 +415,13 @@ inline void Regexpr::extract_number( sal_Int32 & dest, sal_Unicode *source )
for the subexpressions which we are currently inside. Also records
that those subexprs have matched. */
#define SET_REGS_MATCHED() \
- do { \
- if (!set_regs_matched_done) { \
- sal_uInt32 r; \
+ do { \
+ if (!set_regs_matched_done) { \
+ sal_uInt32 r; \
set_regs_matched_done = 1; \
- for (r = lowest_active_reg; r <= highest_active_reg; r++) { \
- MATCHED_SOMETHING(reg_info[r]) \
- = EVER_MATCHED_SOMETHING(reg_info[r]) \
+ for (r = lowest_active_reg; r <= highest_active_reg; r++) { \
+ MATCHED_SOMETHING(reg_info[r]) \
+ = EVER_MATCHED_SOMETHING(reg_info[r]) \
= 1; \
} \
} \
@@ -526,7 +526,7 @@ Regexpr::iswordend(const sal_Unicode *d, sal_Unicode *string, sal_Int32 ssize)
#define PUSH_FAILURE_POINT(pattern_place, string_place, failure_code) \
do { \
- char *destination; \
+ char *destination; \
/* Must be int, so when we don't save any registers, the arithmetic \
of 0 + -1 isn't done as unsigned. */ \
/* Can't be int, since there is not a shred of a guarantee that int \
@@ -702,10 +702,10 @@ Regexpr::at_endline_loc_p(const sal_Unicode *p, const sal_Unicode * /* pend */ )
return(
/* Before a subexpression? */
*next == (sal_Unicode)')'
- // (next_backslash && next_next && *next_next == (sal_Unicode)')')
+ // (next_backslash && next_next && *next_next == (sal_Unicode)')')
/* Before an alternative? */
|| *next == (sal_Unicode)'|' );
- // || (next_backslash && next_next && *next_next == (sal_Unicode)'|'));
+ // || (next_backslash && next_next && *next_next == (sal_Unicode)'|'));
}
reg_errcode_t
@@ -795,7 +795,7 @@ Regexpr::Regexpr( const ::com::sun::star::util::SearchOptions & rOptions,
Regexpr::~Regexpr()
{
- // translit->remove();
+ // translit->remove();
if( bufp )
{
if( bufp->buffer )
@@ -864,10 +864,10 @@ Regexpr::re_search(struct re_registers *regs, sal_Int32 pOffset)
}
// If search match from startpos to startpos+range
- else if (range > 0) { // Forward string search
+ else if (range > 0) { // Forward string search
range--;
startpos++;
- } else { // Reverse string search
+ } else { // Reverse string search
range++;
startpos--;
}
@@ -1424,7 +1424,7 @@ Regexpr::regex_compile()
break;
- case (sal_Unicode)'|': /* `\|'.
+ case (sal_Unicode)'|': /* `\|'.
* */
goto normal_backslash;
handle_alt:
@@ -1628,7 +1628,7 @@ Regexpr::regex_compile()
case (sal_Unicode)'?':
goto normal_backslash;
- case (sal_Unicode)'x': // Unicode char
+ case (sal_Unicode)'x': // Unicode char
{
sal_Int32 UniChar = -1;
@@ -1639,11 +1639,11 @@ Regexpr::regex_compile()
}
// break; // unreachable - see goto above
- case (sal_Unicode)'<': // begin Word boundary
+ case (sal_Unicode)'<': // begin Word boundary
BUF_PUSH(wordbeg);
break;
- case (sal_Unicode)'>': // end Word boundary
+ case (sal_Unicode)'>': // end Word boundary
BUF_PUSH(wordend);
break;
@@ -1962,18 +1962,18 @@ Regexpr::common_op_match_null_string_p(sal_Unicode **p, sal_Unicode *end, regist
/* Free everything we malloc. */
#ifdef MATCH_MAY_ALLOCATE
# define FREE_VAR(var) if (var) REGEX_FREE (var); var = NULL
-# define FREE_VARIABLES() \
- do { \
- REGEX_FREE_STACK (fail_stack.stack); \
- FREE_VAR (regstart); \
- FREE_VAR (regend); \
- FREE_VAR (old_regstart); \
- FREE_VAR (old_regend); \
- FREE_VAR (best_regstart); \
- FREE_VAR (best_regend); \
- FREE_VAR (reg_info); \
- FREE_VAR (reg_dummy); \
- FREE_VAR (reg_info_dummy); \
+# define FREE_VARIABLES() \
+ do { \
+ REGEX_FREE_STACK (fail_stack.stack); \
+ FREE_VAR (regstart); \
+ FREE_VAR (regend); \
+ FREE_VAR (old_regstart); \
+ FREE_VAR (old_regend); \
+ FREE_VAR (best_regstart); \
+ FREE_VAR (best_regend); \
+ FREE_VAR (reg_info); \
+ FREE_VAR (reg_dummy); \
+ FREE_VAR (reg_info_dummy); \
} while (0)
#else
# define FREE_VARIABLES() ((void)0) /* Do nothing! But inhibit gcc warning. */
@@ -2206,7 +2206,7 @@ Regexpr::re_match2(struct re_registers *regs, sal_Int32 pos, sal_Int32 range)
return(-2);
}
}
- } else { // num_regs is negative
+ } else { // num_regs is negative
FREE_VARIABLES ();
return(-2);
}
@@ -2318,7 +2318,7 @@ Regexpr::re_match2(struct re_registers *regs, sal_Int32 pos, sal_Int32 range)
case start_memory:
/* Find out if this group can match the empty string. */
- p1 = p; /* To send to group_match_null_string_p. */
+ p1 = p; /* To send to group_match_null_string_p. */
if (REG_MATCH_NULL_STRING_P(reg_info[*p]) == MATCH_NULL_UNSET_VALUE)
REG_MATCH_NULL_STRING_P(reg_info[*p]) = group_match_null_string_p(&p1, pend, reg_info);
@@ -2548,7 +2548,7 @@ Regexpr::re_match2(struct re_registers *regs, sal_Int32 pos, sal_Int32 range)
/* endline is the dual of begline. */
case endline:
- if (AT_STRINGS_END(d)) {
+ if (AT_STRINGS_END(d)) {
if (!bufp->not_eol) break;
} else if (*d == '\n' && bufp->newline_anchor) {
break;
@@ -2745,7 +2745,7 @@ Regexpr::re_match2(struct re_registers *regs, sal_Int32 pos, sal_Int32 range)
}
}
}
- p -= 2; /* Point at relative address again. */
+ p -= 2; /* Point at relative address again. */
if ((re_opcode_t) p[-1] != pop_failure_jump) {
p[-1] = (sal_Unicode) jump;
goto unconditional_jump;
@@ -2781,8 +2781,8 @@ Regexpr::re_match2(struct re_registers *regs, sal_Int32 pos, sal_Int32 range)
/* Unconditionally jump (without popping any failure points). */
case jump:
- extract_number_and_incr(mcnt, p); /* Get the amount to jump. */
- p += mcnt; /* Do the jump. */
+ extract_number_and_incr(mcnt, p); /* Get the amount to jump. */
+ p += mcnt; /* Do the jump. */
break;
/* We need this opcode so we can detect where alternatives end
@@ -2920,7 +2920,7 @@ Regexpr::re_match2(struct re_registers *regs, sal_Int32 pos, sal_Int32 range)
FREE_VARIABLES ();
- return(-1); /* Failure to match. */
+ return(-1); /* Failure to match. */
} /* re_match2 */
/* Set the bit for character C in a list. */
diff --git a/regexp/source/reclass.hxx b/regexp/source/reclass.hxx
index 34d1c27aa0bd..7ae42c0b38bf 100644
--- a/regexp/source/reclass.hxx
+++ b/regexp/source/reclass.hxx
@@ -302,12 +302,12 @@ typedef union
class Regexpr
{
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::i18n::XExtendedTransliteration > translit;
const sal_Unicode *line; // line to search in
sal_Int32 linelen; // length of search string
-
+
sal_Unicode *pattern; // RE pattern to match
sal_Int32 patsize; // Length of pattern
@@ -328,7 +328,7 @@ class Regexpr
sal_uInt32 num_regs_pushed;
sal_uInt32 re_max_failures;
-
+
/* Registers are set to a sentinel when they haven't yet matched. */
sal_Unicode reg_unset_dummy;
@@ -338,29 +338,29 @@ class Regexpr
inline void extract_number(sal_Int32 & dest, sal_Unicode *source);
inline void extract_number_and_incr(sal_Int32 & destination, sal_Unicode *& source);
- sal_Bool group_match_null_string_p(sal_Unicode **p, sal_Unicode *end,
+ sal_Bool group_match_null_string_p(sal_Unicode **p, sal_Unicode *end,
register_info_type *reg_info);
- sal_Bool alt_match_null_string_p(sal_Unicode *p, sal_Unicode *end,
+ sal_Bool alt_match_null_string_p(sal_Unicode *p, sal_Unicode *end,
register_info_type *reg_info);
- sal_Bool common_op_match_null_string_p(sal_Unicode **p, sal_Unicode *end,
+ sal_Bool common_op_match_null_string_p(sal_Unicode **p, sal_Unicode *end,
register_info_type *reg_info);
- sal_Int32 bcmp_translate(const sal_Unicode *s1,
+ sal_Int32 bcmp_translate(const sal_Unicode *s1,
const sal_Unicode *s2, sal_Int32 len);
sal_Int32 regcomp(void);
sal_Int32 regex_compile(void);
inline void store_op1(re_opcode_t op, sal_Unicode *loc, sal_Int32 arg);
inline void store_op2(re_opcode_t op, sal_Unicode *loc, sal_Int32 arg1, sal_Int32 arg2);
- void insert_op1(re_opcode_t op, sal_Unicode *loc, sal_Int32 arg,
+ void insert_op1(re_opcode_t op, sal_Unicode *loc, sal_Int32 arg,
sal_Unicode *end);
- void insert_op2(re_opcode_t op, sal_Unicode *loc, sal_Int32 arg1,
+ void insert_op2(re_opcode_t op, sal_Unicode *loc, sal_Int32 arg1,
sal_Int32 arg2, sal_Unicode *end);
sal_Bool at_begline_loc_p(const sal_Unicode *local_pattern,
const sal_Unicode *p);
sal_Bool at_endline_loc_p(const sal_Unicode *p, const sal_Unicode *pend);
reg_errcode_t compile_range(sal_Unicode range_begin, sal_Unicode range_end, sal_Unicode *b);
- sal_Bool group_in_compile_stack(compile_stack_type compile_stack,
+ sal_Bool group_in_compile_stack(compile_stack_type compile_stack,
sal_uInt32 regnum);
sal_Int32 re_match2(struct re_registers *regs, sal_Int32 pos, sal_Int32 range);
@@ -370,10 +370,10 @@ class Regexpr
public:
// constructors
- Regexpr( const ::com::sun::star::util::SearchOptions & rOptions,
+ Regexpr( const ::com::sun::star::util::SearchOptions & rOptions,
::com::sun::star::uno::Reference<
::com::sun::star::i18n::XExtendedTransliteration > XTrans );
-
+
// destructor
~Regexpr();
diff --git a/rsc/inc/pch/precompiled_rsc.cxx b/rsc/inc/pch/precompiled_rsc.cxx
index a8edf6962a99..0ae58291bdda 100644
--- a/rsc/inc/pch/precompiled_rsc.cxx
+++ b/rsc/inc/pch/precompiled_rsc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/inc/pch/precompiled_rsc.hxx b/rsc/inc/pch/precompiled_rsc.hxx
index 051d99585bba..6500429d3759 100644
--- a/rsc/inc/pch/precompiled_rsc.hxx
+++ b/rsc/inc/pch/precompiled_rsc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/inc/rscall.h b/rsc/inc/rscall.h
index d66f3aa325d6..673d189213bb 100644
--- a/rsc/inc/rscall.h
+++ b/rsc/inc/rscall.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,74 +36,74 @@
#include <rtl/alloc.h>
/******************* T y p e s *******************************************/
-typedef char * CLASS_DATA; // Zeiger auf die Daten einer Klasse
+typedef char * CLASS_DATA; // Zeiger auf die Daten einer Klasse
-/******************* C l a s s e s F o r w a r d s *********************/
+/******************* C l a s s e s F o r w a r d s *********************/
class RscCompiler;
class RscTop;
class RscTypCont;
class RscIncList;
/******************* G l o b a l V a r i a b l e s *********************/
-extern ByteString* pStdParType;
-extern ByteString* pStdPar1;
-extern ByteString* pStdPar2;
-extern ByteString* pWinParType;
-extern ByteString* pWinPar1;
-extern ByteString* pWinPar2;
-extern sal_uInt32 nRefDeep;
-extern sal_uInt32 nRsc_XYMAPMODEId;
-extern sal_uInt32 nRsc_WHMAPMODEId;
-extern sal_uInt32 nRsc_X;
-extern sal_uInt32 nRsc_Y;
-extern sal_uInt32 nRsc_WIDTH;
-extern sal_uInt32 nRsc_HEIGHT;
-extern sal_uInt32 nRsc_DELTALANG;
-extern sal_uInt32 nRsc_DELTASYSTEM;
-extern sal_uInt32 nRsc_EXTRADATA;
+extern ByteString* pStdParType;
+extern ByteString* pStdPar1;
+extern ByteString* pStdPar2;
+extern ByteString* pWinParType;
+extern ByteString* pWinPar1;
+extern ByteString* pWinPar2;
+extern sal_uInt32 nRefDeep;
+extern sal_uInt32 nRsc_XYMAPMODEId;
+extern sal_uInt32 nRsc_WHMAPMODEId;
+extern sal_uInt32 nRsc_X;
+extern sal_uInt32 nRsc_Y;
+extern sal_uInt32 nRsc_WIDTH;
+extern sal_uInt32 nRsc_HEIGHT;
+extern sal_uInt32 nRsc_DELTALANG;
+extern sal_uInt32 nRsc_DELTASYSTEM;
+extern sal_uInt32 nRsc_EXTRADATA;
extern AtomContainer* pHS;
/******************* D e f i n e s ***************************************/
-#define HELP_FLAG 0x0001 // Hilfe anzeigen
-#define NOPREPRO_FLAG 0x0002 // kein Preprozesor
-#define NOSYNTAX_FLAG 0x0004 // keine Syntaxanalyse
-#define NOLINK_FLAG 0x0008 // nicht linken
-#define NORESFILE_FLAG 0x0010 // keine .res-Datei erzeugen
-#define DEFINE_FLAG 0x0020 // es wurde Definitionen angegeben
-#define INCLUDE_FLAG 0x0040 // der Include-Pfad wurde erweitert
-#define MSCPREPRO_FLAG 0x0080 // spezial Preprozessor
+#define HELP_FLAG 0x0001 // Hilfe anzeigen
+#define NOPREPRO_FLAG 0x0002 // kein Preprozesor
+#define NOSYNTAX_FLAG 0x0004 // keine Syntaxanalyse
+#define NOLINK_FLAG 0x0008 // nicht linken
+#define NORESFILE_FLAG 0x0010 // keine .res-Datei erzeugen
+#define DEFINE_FLAG 0x0020 // es wurde Definitionen angegeben
+#define INCLUDE_FLAG 0x0040 // der Include-Pfad wurde erweitert
+#define MSCPREPRO_FLAG 0x0080 // spezial Preprozessor
#define PRINTSYNTAX_FLAG 0x0100 // Syntax ausgeben
-#define PRELOAD_FLAG 0x0200 // Alle Ressourcen Preloaden
-#define SMART_FLAG 0x0400 // abgekuertze Name
+#define PRELOAD_FLAG 0x0200 // Alle Ressourcen Preloaden
+#define SMART_FLAG 0x0400 // abgekuertze Name
#define SRSDEFAULT_FLAG 0x1000 // immer der Default geschrieben
#define NOSYSRESTEST_FLAG 0x2000 // ueberprueft nicht die Richtigkeit von (bmp, ico, cur)
/******************* T y p e s *******************************************/
-enum RSCCLASS_TYPE { RSCCLASS_BOOL, RSCCLASS_STRING, RSCCLASS_NUMBER,
+enum RSCCLASS_TYPE { RSCCLASS_BOOL, RSCCLASS_STRING, RSCCLASS_NUMBER,
RSCCLASS_CONST, RSCCLASS_COMPLEX, RSCCLASS_ENUMARRAY };
typedef void (* VarEnumCallbackProc)( void * pData, RSCCLASS_TYPE, Atom );
/******************* S t r u c t s ***************************************/
struct RSCINST {
- RscTop * pClass;
- CLASS_DATA pData;
+ RscTop * pClass;
+ CLASS_DATA pData;
RSCINST(){ pClass = NULL; pData = NULL; }
RSCINST( RscTop * pCl, CLASS_DATA pClassData ){
pClass = pCl;
pData = pClassData;
}
- BOOL IsInst() const { return( pData != NULL ); }
+ BOOL IsInst() const { return( pData != NULL ); }
};
/********************** S U B I N F O S T R U C T ************************/
struct SUBINFO_STRUCT {
SUBINFO_STRUCT(){ nPos = 0; pClass = NULL; };
- RscId aId; // Identifier der Resource
- sal_uInt32 nPos; // Position der Resource
+ RscId aId; // Identifier der Resource
+ sal_uInt32 nPos; // Position der Resource
RscTop * pClass; // Klasse des Eintrages
};
diff --git a/rsc/inc/rscarray.hxx b/rsc/inc/rscarray.hxx
index 9a6bba30e987..1c3fc400e23f 100644
--- a/rsc/inc/rscarray.hxx
+++ b/rsc/inc/rscarray.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,17 +37,17 @@ class RscEnum;
/******************* R s c A r r a y ************************************/
class RscInstNode : public IdNode
{
- sal_uInt32 nTypeId;
+ sal_uInt32 nTypeId;
protected:
using NameNode::Search;
public:
- RSCINST aInst;
+ RSCINST aInst;
RscInstNode( sal_uInt32 nId );
~RscInstNode();
- virtual sal_uInt32 GetId() const;
+ virtual sal_uInt32 GetId() const;
RscInstNode * Left() const { return (RscInstNode *)pLeft ; };
RscInstNode * Right() const{ return (RscInstNode *)pRight ; };
- RscInstNode * Search( sal_uInt32 nId ) const
+ RscInstNode * Search( sal_uInt32 nId ) const
{
return (RscInstNode *)IdNode::Search( nId );
}
@@ -55,7 +55,7 @@ public:
struct RscArrayInst
{
- RscInstNode * pNode;
+ RscInstNode * pNode;
};
/* Der Baum wird ueber die Werte des Enums sortiert, nicht ueber
@@ -74,7 +74,7 @@ public:
RscArray( Atom nId, sal_uInt32 nTypId,
RscTop * pSuper, RscEnum * pTypeClass );
~RscArray();
- virtual RSCCLASS_TYPE GetClassType() const;
+ virtual RSCCLASS_TYPE GetClassType() const;
void SetTypeClass( RscEnum * pClass )
{
@@ -94,7 +94,7 @@ public:
sal_uInt32 Size(){ return( nSize ); };
BOOL IsConsistent( const RSCINST & rInst, RscInconsList * pList );
- virtual void SetToDefault( const RSCINST & rInst );
+ virtual void SetToDefault( const RSCINST & rInst );
BOOL IsDefault( const RSCINST & rInst );
BOOL IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
@@ -105,7 +105,7 @@ public:
RscTypCont * pTC, sal_uInt32 nTab, const char * );
ERRTYPE WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
RscTypCont * pTC, sal_uInt32, BOOL bExtra );
- virtual void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ virtual void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
};
@@ -131,7 +131,7 @@ class RscLangArray : public RscArray
public:
RscLangArray( Atom nId, sal_uInt32 nTypId,
RscTop * pSuper, RscEnum * pTypeClass );
- virtual RSCCLASS_TYPE GetClassType() const;
+ virtual RSCCLASS_TYPE GetClassType() const;
};
#endif //_RSCARRAY
diff --git a/rsc/inc/rscclass.hxx b/rsc/inc/rscclass.hxx
index e0c2bdd9953c..fb3c2ef40726 100644
--- a/rsc/inc/rscclass.hxx
+++ b/rsc/inc/rscclass.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -102,9 +102,9 @@ public:
RscTypCont * pTC, sal_uInt32, BOOL bExtra );
void WriteSyntax( FILE * fOutput, RscTypCont * pTC );
- void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
- void WriteRcCtor( FILE * fOutput, RscTypCont * pTC );
+ void WriteRcCtor( FILE * fOutput, RscTypCont * pTC );
};
class RscSysDepend : public RscClass
diff --git a/rsc/inc/rscclobj.hxx b/rsc/inc/rscclobj.hxx
index 46b6ada33d85..7a1109018cc5 100644
--- a/rsc/inc/rscclobj.hxx
+++ b/rsc/inc/rscclobj.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ protected:
public:
using NameNode::Insert;
-
+
ObjNode( const RscId & rId, CLASS_DATA pData, ULONG lKey );
ObjNode * DelObjNode( RscTop * pClass, ULONG lFileKey );
sal_uInt32 GetId() const;
diff --git a/rsc/inc/rscconst.hxx b/rsc/inc/rscconst.hxx
index 6e13728f0448..16e373d909a0 100644
--- a/rsc/inc/rscconst.hxx
+++ b/rsc/inc/rscconst.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,15 +47,15 @@ public:
RscConst( Atom nId, sal_uInt32 nTypId );
~RscConst();
virtual RSCCLASS_TYPE GetClassType() const;
- sal_uInt32 GetEntryCount() const { return nEntries; }
+ sal_uInt32 GetEntryCount() const { return nEntries; }
// Die erlaubten Werte werden gesetzt
ERRTYPE SetConstant( Atom nVarName, INT32 lValue );
Atom GetConstant( sal_uInt32 nPos );
- BOOL GetConstValue( Atom nConstId, INT32 * pVal ) const;
- BOOL GetValueConst( INT32 nValue, Atom * pConstId ) const;
+ BOOL GetConstValue( Atom nConstId, INT32 * pVal ) const;
+ BOOL GetValueConst( INT32 nValue, Atom * pConstId ) const;
sal_uInt32 GetConstPos( Atom nConstId );
- virtual void WriteSyntax( FILE * fOutput, RscTypCont * pTC );
- virtual void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ virtual void WriteSyntax( FILE * fOutput, RscTypCont * pTC );
+ virtual void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
};
@@ -65,13 +65,13 @@ class RscEnum : public RscConst {
sal_uInt32 nValue; // Position der Konstanten im Array
BOOL bDflt; // Ist Default
};
- sal_uInt32 nSize;
+ sal_uInt32 nSize;
public:
RscEnum( Atom nId, sal_uInt32 nTypId );
RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, BOOL );
sal_uInt32 Size(){ return nSize; }
- virtual void SetToDefault( const RSCINST & rInst )
+ virtual void SetToDefault( const RSCINST & rInst )
{
((RscEnumInst*)rInst.pData)->bDflt = TRUE;
}
@@ -104,7 +104,7 @@ public:
RscLangEnum();
void Init( RscNameTable& rNames );
-
+
Atom AddLanguage( const char* pLang, RscNameTable& rNames );
};
diff --git a/rsc/inc/rsccont.hxx b/rsc/inc/rsccont.hxx
index 3126ceb0a1a0..f93da45b10b8 100644
--- a/rsc/inc/rsccont.hxx
+++ b/rsc/inc/rsccont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ protected:
RscTypCont * pTC, sal_uInt32 nTab, const char * );
ERRTYPE ContWriteRc( const RSCINST & rInst, RscWriteRc & aMem,
RscTypCont * pTC, sal_uInt32, BOOL bExtra );
- void ContWriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ void ContWriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char *, BOOL nWriteSize );
public:
RscBaseCont( Atom nId, sal_uInt32 nTypId,
@@ -91,8 +91,8 @@ public:
SUBINFO_STRUCT GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos );
ERRTYPE SetString( const RSCINST &, const char * pStr );
ERRTYPE SetNumber( const RSCINST &, INT32 lValue );
- ERRTYPE SetBool( const RSCINST & rInst, BOOL bValue );
- ERRTYPE SetConst( const RSCINST & rInst, Atom nValueId,
+ ERRTYPE SetBool( const RSCINST & rInst, BOOL bValue );
+ ERRTYPE SetConst( const RSCINST & rInst, Atom nValueId,
INT32 nValue );
ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId );
@@ -100,7 +100,7 @@ public:
sal_uInt32 Size(){ return( nSize ); };
BOOL IsConsistent( const RSCINST & rInst, RscInconsList * pList );
- void SetToDefault( const RSCINST & rInst );
+ void SetToDefault( const RSCINST & rInst );
BOOL IsDefault( const RSCINST & rInst );
BOOL IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
@@ -137,7 +137,7 @@ public:
BOOL bNoId = TRUE );
ERRTYPE WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
RscTypCont * pTC, sal_uInt32, BOOL bExtra );
- void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
};
diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx
index 7ac5e42eca1c..195bf612980e 100644
--- a/rsc/inc/rscdb.hxx
+++ b/rsc/inc/rscdb.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include <rscall.h>
#include <rsckey.hxx>
#include <rscconst.hxx>
-#include <rscflag.hxx>
+#include <rscflag.hxx>
#include <rscrange.hxx>
#include <rscstr.hxx>
#include <rscarray.hxx>
@@ -49,9 +49,9 @@ class RscCmdLine;
struct WriteRcContext
{
- FILE * fOutput;
- rtl::OString aOutputRc;
- rtl::OString aOutputSysList;
+ FILE * fOutput;
+ rtl::OString aOutputRc;
+ rtl::OString aOutputSysList;
RscCmdLine* pCmdLine;
};
@@ -62,300 +62,300 @@ DECLARE_LIST( RscBaseList, RscTop * )
// Tabelle fuer Systemabhaengige Resourcen
struct RscSysEntry
{
- sal_uInt32 nKey;
- sal_uInt32 nRscTyp;
- ByteString aFileName;
- sal_uInt32 nTyp;
- sal_uInt32 nRefId;
+ sal_uInt32 nKey;
+ sal_uInt32 nRscTyp;
+ ByteString aFileName;
+ sal_uInt32 nTyp;
+ sal_uInt32 nRefId;
};
DECLARE_LIST( RscSysList, RscSysEntry * )
class RscTypCont
{
- CharSet nSourceCharSet;
- sal_uInt32 nMachineId; // Globaler Maschinentyp
- RSCBYTEORDER_TYPE nByteOrder; // Intel oder
- ByteString aLanguage; // output language
- std::vector< sal_uInt32 > aLangFallbacks; // language fallback list (entry 0 is language itself)
- ByteString aSearchPath; // Suchen der Bitmap, Icon, Pointer
- ByteString aSysSearchPath; // aSearchPath plus language specific paths
- sal_uInt32 nUniqueId; // eindeutiger Id fuer Systemresourcen
- ULONG nFilePos; // Position in der Datei ( MTF )
- sal_uInt32 nPMId; // eindeutiger Id fuer PM-Rseourcefile
+ CharSet nSourceCharSet;
+ sal_uInt32 nMachineId; // Globaler Maschinentyp
+ RSCBYTEORDER_TYPE nByteOrder; // Intel oder
+ ByteString aLanguage; // output language
+ std::vector< sal_uInt32 > aLangFallbacks; // language fallback list (entry 0 is language itself)
+ ByteString aSearchPath; // Suchen der Bitmap, Icon, Pointer
+ ByteString aSysSearchPath; // aSearchPath plus language specific paths
+ sal_uInt32 nUniqueId; // eindeutiger Id fuer Systemresourcen
+ ULONG nFilePos; // Position in der Datei ( MTF )
+ sal_uInt32 nPMId; // eindeutiger Id fuer PM-Rseourcefile
// muss groesser als RSC_VERSIONCONTROL_ID sein
- RscTop * pRoot; // Zeiger auf die Wurzel vom Typenbaum
- RSCINST aVersion; // Versionskontrollinstanz
+ RscTop * pRoot; // Zeiger auf die Wurzel vom Typenbaum
+ RSCINST aVersion; // Versionskontrollinstanz
- RscBaseList aBaseLst; // Liste der einfachen Resourceklasse
- RscSysList aSysLst; // Liste der Systemresourcen
+ RscBaseList aBaseLst; // Liste der einfachen Resourceklasse
+ RscSysList aSysLst; // Liste der Systemresourcen
- Atom nWinBitVarId; // Name der Winbitvariablen
- Atom nBorderId;
- Atom nHideId;
- Atom nClipChildrenId;
- Atom nSizeableId;
- Atom nMoveableId;
- Atom nMinimizeId;
- Atom nMaximizeId;
- Atom nCloseableId;
- Atom nStdPopupId;
- Atom nAppId;
- Atom nTabstopId;
- Atom nGroupId;
- Atom nSysmodalId;
- Atom nLeftId;
- Atom nCenterId;
- Atom nRightId;
- Atom nTopId;
- Atom nVCenterId;
- Atom nBottomId;
- Atom nHScrollId;
- Atom nVScrollId;
- Atom nSortId;
- Atom nDefaultId;
- Atom nSVLookId;
- Atom nRepeatId;
- Atom nDropDownId;
- Atom nPassWordId;
- Atom nReadOnlyId;
- Atom nAutoSizeId;
- Atom nSpinId;
- Atom nTabControlId;
- Atom nSimpleModeId;
- Atom nDragId;
- Atom nScrollId;
- Atom nZoomableId;
- Atom nHideWhenDeactivateId;
- Atom nAutoHScrollId;
- Atom nAutoVScrollId;
- Atom nDDExtraWidthId;
- Atom nWordBreakId;
- Atom nLeftLabelId;
- Atom nHasLinesId;
- Atom nHasButtonsId;
- Atom nRectStyleId;
- Atom nLineSpacingId;
- Atom nSmallStyleId;
- Atom nEnableResizingId;
- Atom nDockableId;
- Atom nScaleId;
- Atom nIgnoreTabId;
- Atom nNoSplitDrawId;
- Atom nTopImageId;
- Atom nNoLabelId;
- Atom nVertId;
- Atom nSingleLineId;
- Atom nSysWinId;
+ Atom nWinBitVarId; // Name der Winbitvariablen
+ Atom nBorderId;
+ Atom nHideId;
+ Atom nClipChildrenId;
+ Atom nSizeableId;
+ Atom nMoveableId;
+ Atom nMinimizeId;
+ Atom nMaximizeId;
+ Atom nCloseableId;
+ Atom nStdPopupId;
+ Atom nAppId;
+ Atom nTabstopId;
+ Atom nGroupId;
+ Atom nSysmodalId;
+ Atom nLeftId;
+ Atom nCenterId;
+ Atom nRightId;
+ Atom nTopId;
+ Atom nVCenterId;
+ Atom nBottomId;
+ Atom nHScrollId;
+ Atom nVScrollId;
+ Atom nSortId;
+ Atom nDefaultId;
+ Atom nSVLookId;
+ Atom nRepeatId;
+ Atom nDropDownId;
+ Atom nPassWordId;
+ Atom nReadOnlyId;
+ Atom nAutoSizeId;
+ Atom nSpinId;
+ Atom nTabControlId;
+ Atom nSimpleModeId;
+ Atom nDragId;
+ Atom nScrollId;
+ Atom nZoomableId;
+ Atom nHideWhenDeactivateId;
+ Atom nAutoHScrollId;
+ Atom nAutoVScrollId;
+ Atom nDDExtraWidthId;
+ Atom nWordBreakId;
+ Atom nLeftLabelId;
+ Atom nHasLinesId;
+ Atom nHasButtonsId;
+ Atom nRectStyleId;
+ Atom nLineSpacingId;
+ Atom nSmallStyleId;
+ Atom nEnableResizingId;
+ Atom nDockableId;
+ Atom nScaleId;
+ Atom nIgnoreTabId;
+ Atom nNoSplitDrawId;
+ Atom nTopImageId;
+ Atom nNoLabelId;
+ Atom nVertId;
+ Atom nSingleLineId;
+ Atom nSysWinId;
- void Init(); // Initialisiert Klassen und Tabelle
- void SETCONST( RscConst *, const char *, UINT32 );
- void SETCONST( RscConst *, Atom, UINT32 );
- RscEnum * InitLangType();
- RscEnum * InitFieldUnitsType();
- RscEnum * InitTimeFieldFormat();
- RscEnum * InitColor();
- RscEnum * InitMapUnit();
- RscEnum * InitKey();
- RscEnum * InitTriState();
- RscEnum * InitMessButtons();
- RscEnum * InitMessDefButton();
- RscTupel * InitGeometry();
- RscArray * InitLangGeometry( RscTupel * pGeo );
- RscArray * InitSystemGeometry( RscTupel * pGeo );
- RscCont * InitStringList();
- RscArray * InitLangStringList( RscCont * pStrLst );
- RscTupel * InitStringTupel();
- RscTupel * InitStringLongTupel();
- RscCont * InitStringTupelList( RscTupel * pStringTupel );
- RscCont * InitStringLongTupelList( RscTupel * pStringLongTupel );
- RscArray * InitLangStringTupelList( RscCont * pStrTupelLst );
- RscArray * InitLangStringLongTupelList( RscCont * pStrLongTupelLst );
+ void Init(); // Initialisiert Klassen und Tabelle
+ void SETCONST( RscConst *, const char *, UINT32 );
+ void SETCONST( RscConst *, Atom, UINT32 );
+ RscEnum * InitLangType();
+ RscEnum * InitFieldUnitsType();
+ RscEnum * InitTimeFieldFormat();
+ RscEnum * InitColor();
+ RscEnum * InitMapUnit();
+ RscEnum * InitKey();
+ RscEnum * InitTriState();
+ RscEnum * InitMessButtons();
+ RscEnum * InitMessDefButton();
+ RscTupel * InitGeometry();
+ RscArray * InitLangGeometry( RscTupel * pGeo );
+ RscArray * InitSystemGeometry( RscTupel * pGeo );
+ RscCont * InitStringList();
+ RscArray * InitLangStringList( RscCont * pStrLst );
+ RscTupel * InitStringTupel();
+ RscTupel * InitStringLongTupel();
+ RscCont * InitStringTupelList( RscTupel * pStringTupel );
+ RscCont * InitStringLongTupelList( RscTupel * pStringLongTupel );
+ RscArray * InitLangStringTupelList( RscCont * pStrTupelLst );
+ RscArray * InitLangStringLongTupelList( RscCont * pStrLongTupelLst );
- RscTop * InitClassMgr();
- RscTop * InitClassString( RscTop * pSuper );
- RscTop * InitClassBitmap( RscTop * pSuper );
- RscTop * InitClassColor( RscTop * pSuper, RscEnum * pColor );
- RscTop * InitClassImage( RscTop * pSuper, RscTop *pClassBitmap,
+ RscTop * InitClassMgr();
+ RscTop * InitClassString( RscTop * pSuper );
+ RscTop * InitClassBitmap( RscTop * pSuper );
+ RscTop * InitClassColor( RscTop * pSuper, RscEnum * pColor );
+ RscTop * InitClassImage( RscTop * pSuper, RscTop *pClassBitmap,
RscTop * pClassColor );
- RscTop * InitClassImageList( RscTop * pSuper, RscTop *pClassBitmap,
+ RscTop * InitClassImageList( RscTop * pSuper, RscTop *pClassBitmap,
RscTop * pClassColor, RscCont * pStrLst );
- RscTop * InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit,
+ RscTop * InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit,
RscArray * pLangGeo );
- RscTop * InitClassSystemWindow( RscTop * pSuper );
- RscTop * InitClassWorkWindow( RscTop * pSuper );
- RscTop * InitClassModalDialog( RscTop * pSuper );
- RscTop * InitClassModelessDialog( RscTop * pSuper );
- RscTop * InitClassControl( RscTop * pSuper );
- RscTop * InitClassCheckBox( RscTop * pSuper );
- RscTop * InitClassPushButton( RscTop * pSuper );
- RscTop * InitClassTriStateBox( RscTop * pSuper, RscEnum * pTriState );
- RscTop * InitClassMenuButton( RscTop * pSuper, RscTop * pClasMenu );
- RscTop * InitClassImageButton( RscTop * pSuper, RscTop * pClassImage,
+ RscTop * InitClassSystemWindow( RscTop * pSuper );
+ RscTop * InitClassWorkWindow( RscTop * pSuper );
+ RscTop * InitClassModalDialog( RscTop * pSuper );
+ RscTop * InitClassModelessDialog( RscTop * pSuper );
+ RscTop * InitClassControl( RscTop * pSuper );
+ RscTop * InitClassCheckBox( RscTop * pSuper );
+ RscTop * InitClassPushButton( RscTop * pSuper );
+ RscTop * InitClassTriStateBox( RscTop * pSuper, RscEnum * pTriState );
+ RscTop * InitClassMenuButton( RscTop * pSuper, RscTop * pClasMenu );
+ RscTop * InitClassImageButton( RscTop * pSuper, RscTop * pClassImage,
RscEnum * pTriState );
- RscTop * InitClassEdit( RscTop * pSuper );
- RscTop * InitClassMultiLineEdit( RscTop * pSuper );
- RscTop * InitClassScrollBar( RscTop * pSuper );
- RscTop * InitClassListBox( RscTop * pSuper, RscArray * pStrLst );
- RscTop * InitClassMultiListBox( RscTop * pSuper );
- RscTop * InitClassComboBox( RscTop * pSuper, RscArray * pStrLst );
- RscTop * InitClassFixedText( RscTop * pSuper );
- RscTop * InitClassFixedBitmap( RscTop * pSuper, RscTop * pClassBitmap );
- RscTop * InitClassFixedImage( RscTop * pSuper, RscTop * pClassImage );
- RscTop * InitClassRadioButton( RscTop * pSuper );
- RscTop * InitClassImageRadioButton( RscTop * pSuper, RscTop * pClassImage );
- RscTop * InitClassKeyCode( RscTop * pSuper, RscEnum * pKey );
- RscTop * InitClassAccelItem( RscTop * pSuper, RscTop * pKeyCode );
- RscTop * InitClassAccel( RscTop * pSuper, RscTop * pClassAccelItem );
- RscTop * InitClassMenuItem( RscTop * pSuper, RscTop * pClassBitmap,
+ RscTop * InitClassEdit( RscTop * pSuper );
+ RscTop * InitClassMultiLineEdit( RscTop * pSuper );
+ RscTop * InitClassScrollBar( RscTop * pSuper );
+ RscTop * InitClassListBox( RscTop * pSuper, RscArray * pStrLst );
+ RscTop * InitClassMultiListBox( RscTop * pSuper );
+ RscTop * InitClassComboBox( RscTop * pSuper, RscArray * pStrLst );
+ RscTop * InitClassFixedText( RscTop * pSuper );
+ RscTop * InitClassFixedBitmap( RscTop * pSuper, RscTop * pClassBitmap );
+ RscTop * InitClassFixedImage( RscTop * pSuper, RscTop * pClassImage );
+ RscTop * InitClassRadioButton( RscTop * pSuper );
+ RscTop * InitClassImageRadioButton( RscTop * pSuper, RscTop * pClassImage );
+ RscTop * InitClassKeyCode( RscTop * pSuper, RscEnum * pKey );
+ RscTop * InitClassAccelItem( RscTop * pSuper, RscTop * pKeyCode );
+ RscTop * InitClassAccel( RscTop * pSuper, RscTop * pClassAccelItem );
+ RscTop * InitClassMenuItem( RscTop * pSuper, RscTop * pClassBitmap,
RscTop * pClassKeyCode );
- RscTop * InitClassMenu( RscTop * pSuper, RscTop * pMenuItem );
- RscTop * InitClassMessBox( RscTop * pSuper,
+ RscTop * InitClassMenu( RscTop * pSuper, RscTop * pMenuItem );
+ RscTop * InitClassMessBox( RscTop * pSuper,
RscEnum * pMessButtons,
RscEnum * pMessDefButton );
- RscTop * InitClassSplitter( RscTop * pSuper );
- RscTop * InitClassSplitWindow( RscTop * pSuper );
- RscTop * InitClassTime( RscTop * pSuper );
- RscTop * InitClassDate( RscTop * pSuper );
+ RscTop * InitClassSplitter( RscTop * pSuper );
+ RscTop * InitClassSplitWindow( RscTop * pSuper );
+ RscTop * InitClassTime( RscTop * pSuper );
+ RscTop * InitClassDate( RscTop * pSuper );
- RscTop * InitClassPatternFormatter( RscTop * pSuper );
- RscTop * InitClassNumericFormatter( RscTop * pSuper );
- RscTop * InitClassMetricFormatter( RscTop * pSuper,
+ RscTop * InitClassPatternFormatter( RscTop * pSuper );
+ RscTop * InitClassNumericFormatter( RscTop * pSuper );
+ RscTop * InitClassMetricFormatter( RscTop * pSuper,
RscEnum * pFieldUnits );
- RscTop * InitClassCurrencyFormatter( RscTop * pSuper,
+ RscTop * InitClassCurrencyFormatter( RscTop * pSuper,
RscEnum * pFieldUnits );
- RscTop * InitClassDateFormatter( RscTop * pSuper, RscTop * pClassDate );
- RscTop * InitClassTimeFormatter( RscTop * pSuper, RscTop * pClassTime,
+ RscTop * InitClassDateFormatter( RscTop * pSuper, RscTop * pClassDate );
+ RscTop * InitClassTimeFormatter( RscTop * pSuper, RscTop * pClassTime,
RscEnum * pTimeFieldFormat );
- RscTop * InitClassSpinField( RscTop * pSuper );
- RscTop * InitClassPatternField( RscTop * pSuper );
- RscTop * InitClassNumericField( RscTop * pSuper );
- RscTop * InitClassMetricField( RscTop * pSuper );
- RscTop * InitClassCurrencyField( const char * pClassName, sal_uInt32 nRT,
+ RscTop * InitClassSpinField( RscTop * pSuper );
+ RscTop * InitClassPatternField( RscTop * pSuper );
+ RscTop * InitClassNumericField( RscTop * pSuper );
+ RscTop * InitClassMetricField( RscTop * pSuper );
+ RscTop * InitClassCurrencyField( const char * pClassName, sal_uInt32 nRT,
RscTop * pSuper );
- RscTop * InitClassDateField( RscTop * pSuper, RscTop * pClassDate );
- RscTop * InitClassTimeField( RscTop * pSuper, RscTop * pClassTime );
- RscTop * InitClassPatternBox( RscTop * pSuper );
- RscTop * InitClassNumericBox( RscTop * pSuper );
- RscTop * InitClassMetricBox( RscTop * pSuper );
- RscTop * InitClassCurrencyBox( const char * pClassName, sal_uInt32 nRT,
+ RscTop * InitClassDateField( RscTop * pSuper, RscTop * pClassDate );
+ RscTop * InitClassTimeField( RscTop * pSuper, RscTop * pClassTime );
+ RscTop * InitClassPatternBox( RscTop * pSuper );
+ RscTop * InitClassNumericBox( RscTop * pSuper );
+ RscTop * InitClassMetricBox( RscTop * pSuper );
+ RscTop * InitClassCurrencyBox( const char * pClassName, sal_uInt32 nRT,
RscTop * pSuper );
- RscTop * InitClassDateBox( RscTop * pSuper, RscTop * pClassDate );
- RscTop * InitClassTimeBox( RscTop * pSuper, RscTop * pClassTime );
+ RscTop * InitClassDateBox( RscTop * pSuper, RscTop * pClassDate );
+ RscTop * InitClassTimeBox( RscTop * pSuper, RscTop * pClassTime );
- RscTop * InitClassDockingWindow( RscTop * pSuper,
+ RscTop * InitClassDockingWindow( RscTop * pSuper,
RscEnum * pMapUnit );
- RscTop * InitClassToolBoxItem( RscTop * pSuper, RscTop * pClassBitmap,
+ RscTop * InitClassToolBoxItem( RscTop * pSuper, RscTop * pClassBitmap,
RscTop * pClassImage,
RscEnum * pTriState );
- RscTop * InitClassToolBox( RscTop * pSuper, RscTop * pClassToolBoxItem,
+ RscTop * InitClassToolBox( RscTop * pSuper, RscTop * pClassToolBoxItem,
RscTop * pClassImageList );
- RscTop * InitClassStatusBar( RscTop * pSuper );
- RscTop * InitClassMoreButton( RscTop * pSuper, RscEnum * pMapUnit );
- RscTop * InitClassFloatingWindow( RscTop * pSuper,
+ RscTop * InitClassStatusBar( RscTop * pSuper );
+ RscTop * InitClassMoreButton( RscTop * pSuper, RscEnum * pMapUnit );
+ RscTop * InitClassFloatingWindow( RscTop * pSuper,
RscEnum * pMapUnit );
- RscTop * InitClassTabControlItem( RscTop * pSuper,
+ RscTop * InitClassTabControlItem( RscTop * pSuper,
RscTop * pClassTabPage );
- RscTop * InitClassTabControl( RscTop * pSuper,
+ RscTop * InitClassTabControl( RscTop * pSuper,
RscTop * pClassTabControlItem );
- RscTop * InitClassSfxStyleFamilyItem( RscTop * pSuper,
+ RscTop * InitClassSfxStyleFamilyItem( RscTop * pSuper,
RscTop * pClassBitmap,
RscTop * pClassImage,
RscArray * pStrLst );
- RscTop * InitClassSfxTemplateDialog( RscTop * pSuper,
+ RscTop * InitClassSfxTemplateDialog( RscTop * pSuper,
RscTop * pStyleFamily );
- RscTop * InitClassSfxSlotInfo( RscTop * pSuper );
+ RscTop * InitClassSfxSlotInfo( RscTop * pSuper );
- void InsWinBit( RscTop * pClass, const ByteString & rName,
+ void InsWinBit( RscTop * pClass, const ByteString & rName,
Atom nVal );
- void WriteInc( FILE * fOutput, ULONG lKey );
+ void WriteInc( FILE * fOutput, ULONG lKey );
public:
- RscBool aBool;
- RscRange aShort;
- RscRange aUShort;
- RscLongRange aLong;
- RscLongEnumRange aEnumLong;
- RscIdRange aIdUShort;
- RscIdRange aIdNoZeroUShort;
- RscBreakRange aNoZeroShort;
- RscRange a1to12Short;
- RscRange a0to23Short;
- RscRange a1to31Short;
- RscRange a0to59Short;
- RscRange a0to99Short;
- RscRange a0to9999Short;
- RscIdRange aIdLong;
- RscString aString;
- RscFlag aWinBits;
- RscLangEnum aLangType;
- RscLangArray aLangString;
- RscLangArray aLangShort;
+ RscBool aBool;
+ RscRange aShort;
+ RscRange aUShort;
+ RscLongRange aLong;
+ RscLongEnumRange aEnumLong;
+ RscIdRange aIdUShort;
+ RscIdRange aIdNoZeroUShort;
+ RscBreakRange aNoZeroShort;
+ RscRange a1to12Short;
+ RscRange a0to23Short;
+ RscRange a1to31Short;
+ RscRange a0to59Short;
+ RscRange a0to99Short;
+ RscRange a0to9999Short;
+ RscIdRange aIdLong;
+ RscString aString;
+ RscFlag aWinBits;
+ RscLangEnum aLangType;
+ RscLangArray aLangString;
+ RscLangArray aLangShort;
- Atom nAcceleratorType;
+ Atom nAcceleratorType;
- RscError* pEH; // Fehlerhandler
- RscNameTable aNmTb; // Tabelle fuer Namen
- RscFileTab aFileTab; // Tabelle der Dateinamen
- sal_uInt32 nFlags;
- std::map<sal_uInt64, ULONG> aIdTranslator; //Ordnet Resourcetypen und Id's einen Id zu
+ RscError* pEH; // Fehlerhandler
+ RscNameTable aNmTb; // Tabelle fuer Namen
+ RscFileTab aFileTab; // Tabelle der Dateinamen
+ sal_uInt32 nFlags;
+ std::map<sal_uInt64, ULONG> aIdTranslator; //Ordnet Resourcetypen und Id's einen Id zu
//(unter PM), oder eine Dateiposition (MTF)
RscTypCont( RscError *, RSCBYTEORDER_TYPE, const ByteString & rSearchPath, sal_uInt32 nFlags );
~RscTypCont();
-
+
Atom AddLanguage( const char* );
- BOOL IsPreload() const
+ BOOL IsPreload() const
{ return (nFlags & PRELOAD_FLAG) ? TRUE : FALSE; }
- BOOL IsSmart() const
+ BOOL IsSmart() const
{ return (nFlags & SMART_FLAG) ? TRUE : FALSE; }
- BOOL IsSysResTest() const
+ BOOL IsSysResTest() const
{ return (nFlags & NOSYSRESTEST_FLAG) ? FALSE : TRUE; }
- BOOL IsSrsDefault() const
+ BOOL IsSrsDefault() const
{ return (nFlags & SRSDEFAULT_FLAG) ? TRUE : FALSE; }
- ByteString ChangeLanguage( const ByteString& rNewLang );
- const std::vector< sal_uInt32 >& GetFallbacks() const
+ ByteString ChangeLanguage( const ByteString& rNewLang );
+ const std::vector< sal_uInt32 >& GetFallbacks() const
{ return aLangFallbacks; }
RSCBYTEORDER_TYPE GetByteOrder() const { return nByteOrder; }
- CharSet GetSourceCharSet() const { return nSourceCharSet; }
- CharSet SetSourceCharSet( CharSet aCharSet )
+ CharSet GetSourceCharSet() const { return nSourceCharSet; }
+ CharSet SetSourceCharSet( CharSet aCharSet )
{
CharSet aOld = nSourceCharSet;
nSourceCharSet = aCharSet;
return aOld;
}
- void SetSearchPath( const ByteString & rStr) { aSearchPath = rStr; }
- ByteString GetSearchPath() const { return aSearchPath; }
- void SetSysSearchPath( const ByteString& rStr ) { aSysSearchPath = rStr; }
- ByteString GetSysSearchPath() const { return aSysSearchPath; }
- void InsertType( RscTop * pType )
+ void SetSearchPath( const ByteString & rStr) { aSearchPath = rStr; }
+ ByteString GetSearchPath() const { return aSearchPath; }
+ void SetSysSearchPath( const ByteString& rStr ) { aSysSearchPath = rStr; }
+ ByteString GetSysSearchPath() const { return aSysSearchPath; }
+ void InsertType( RscTop * pType )
{
aBaseLst.Insert( pType, LIST_APPEND );
}
- RscTop * SearchType( Atom nTypId );
- RscTop * Search( Atom typ );
- CLASS_DATA Search( Atom typ, const RscId & rId );
- void Delete( Atom typ, const RscId & rId );
+ RscTop * SearchType( Atom nTypId );
+ RscTop * Search( Atom typ );
+ CLASS_DATA Search( Atom typ, const RscId & rId );
+ void Delete( Atom typ, const RscId & rId );
// loescht alle Resourceobjekte diese Datei
- void Delete( ULONG lFileKey );
- RscTop * GetRoot() { return( pRoot ); };
- sal_uInt32 PutSysName( sal_uInt32 nRscTyp, char * pName, sal_uInt32 nConst,
+ void Delete( ULONG lFileKey );
+ RscTop * GetRoot() { return( pRoot ); };
+ sal_uInt32 PutSysName( sal_uInt32 nRscTyp, char * pName, sal_uInt32 nConst,
sal_uInt32 nId, BOOL bFirst );
- void ClearSysNames();
- ERRTYPE WriteRc( WriteRcContext& rContext );
- void WriteSrc( FILE * fOutput, ULONG nFileIndex,
+ void ClearSysNames();
+ ERRTYPE WriteRc( WriteRcContext& rContext );
+ void WriteSrc( FILE * fOutput, ULONG nFileIndex,
CharSet nCharSet, BOOL bName = TRUE );
- ERRTYPE WriteHxx( FILE * fOutput, ULONG nFileKey);
- ERRTYPE WriteCxx( FILE * fOutput, ULONG nFileKey,
+ ERRTYPE WriteHxx( FILE * fOutput, ULONG nFileKey);
+ ERRTYPE WriteCxx( FILE * fOutput, ULONG nFileKey,
const ByteString & rHxxName );
- void WriteSyntax( FILE * fOutput );
- void WriteRcCtor( FILE * fOutput );
- void FillNameIdList( REResourceList * pList, ULONG lFileKey );
- BOOL MakeConsistent( RscInconsList * pList );
- sal_uInt32 PutTranslatorKey( sal_uInt64 nKey );
- void IncFilePos( ULONG nOffset ){ nFilePos += nOffset; }
+ void WriteSyntax( FILE * fOutput );
+ void WriteRcCtor( FILE * fOutput );
+ void FillNameIdList( REResourceList * pList, ULONG lFileKey );
+ BOOL MakeConsistent( RscInconsList * pList );
+ sal_uInt32 PutTranslatorKey( sal_uInt64 nKey );
+ void IncFilePos( ULONG nOffset ){ nFilePos += nOffset; }
};
#endif
diff --git a/rsc/inc/rscdef.hxx b/rsc/inc/rscdef.hxx
index 993a54e2c4e9..62174df1951e 100644
--- a/rsc/inc/rscdef.hxx
+++ b/rsc/inc/rscdef.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,27 +37,27 @@ class RscFileTab;
class RscDefine;
/*********** R s c E x p r e s s i o n ***********************************/
-#define RSCEXP_LONG 0
-#define RSCEXP_EXP 1
-#define RSCEXP_DEF 2
-#define RSCEXP_NOTHING 3
+#define RSCEXP_LONG 0
+#define RSCEXP_EXP 1
+#define RSCEXP_DEF 2
+#define RSCEXP_NOTHING 3
class RscExpType
{
public:
union {
RscExpression * pExp;
- RscDefine * pDef;
+ RscDefine * pDef;
struct {
- short nHi;
+ short nHi;
unsigned short nLo;
} aLong;
} aExp;
char cType;
char cUnused;
- BOOL IsNumber() const { return( RSCEXP_LONG == cType ); }
- BOOL IsExpression()const { return( RSCEXP_EXP == cType ); }
- BOOL IsDefinition()const { return( RSCEXP_DEF == cType ); }
+ BOOL IsNumber() const { return( RSCEXP_LONG == cType ); }
+ BOOL IsExpression()const { return( RSCEXP_EXP == cType ); }
+ BOOL IsDefinition()const { return( RSCEXP_DEF == cType ); }
BOOL IsNothing() const { return( RSCEXP_NOTHING == cType ); }
void SetLong( INT32 lValue ){
aExp.aLong.nHi = (short)(lValue >> 16);
@@ -75,21 +75,21 @@ public:
/*********** R s c I d ***************************************************/
class RscId
{
- static BOOL bNames;// FALSE, bei den Namenoperation nur Zahlen
+ static BOOL bNames;// FALSE, bei den Namenoperation nur Zahlen
public:
- RscExpType aExp; // Zahl, Define oder Ausdruck
- INT32 GetNumber() const;
- void Create( const RscExpType & rExpType );
- void Create(){ aExp.cType = RSCEXP_NOTHING; }
+ RscExpType aExp; // Zahl, Define oder Ausdruck
+ INT32 GetNumber() const;
+ void Create( const RscExpType & rExpType );
+ void Create(){ aExp.cType = RSCEXP_NOTHING; }
- RscId() { Create(); }
+ RscId() { Create(); }
RscId( RscDefine * pEle );
RscId( INT32 lNumber )
- { aExp.SetLong( lNumber ); }
+ { aExp.SetLong( lNumber ); }
RscId( const RscExpType & rExpType )
- { Create( rExpType ); }
+ { Create( rExpType ); }
void Destroy();
@@ -103,17 +103,17 @@ public:
static BOOL IsSetNames();
static void SetNames( BOOL bSet = TRUE );
- operator INT32() const; // Gibt Nummer zurueck
- ByteString GetName() const; // Gibt den Namen des Defines zurueck
- ByteString GetMacro() const; // Gibt das Macro zurueck
- BOOL operator < ( const RscId& rRscId ) const;
- BOOL operator > ( const RscId& rRscId ) const;
- BOOL operator == ( const RscId& rRscId ) const;
- BOOL operator <= ( const RscId& rRscId ) const
+ operator INT32() const; // Gibt Nummer zurueck
+ ByteString GetName() const; // Gibt den Namen des Defines zurueck
+ ByteString GetMacro() const; // Gibt das Macro zurueck
+ BOOL operator < ( const RscId& rRscId ) const;
+ BOOL operator > ( const RscId& rRscId ) const;
+ BOOL operator == ( const RscId& rRscId ) const;
+ BOOL operator <= ( const RscId& rRscId ) const
{ return !(operator > ( rRscId )); }
- BOOL operator >= ( const RscId& rRscId ) const
+ BOOL operator >= ( const RscId& rRscId ) const
{ return !(operator < ( rRscId )); }
- BOOL IsId() const { return !aExp.IsNothing(); }
+ BOOL IsId() const { return !aExp.IsNothing(); }
};
/*********** R s c D e f i n e *******************************************/
@@ -124,10 +124,10 @@ friend class RscDefineList;
friend class RscDefTree;
friend class RscExpression;
friend class RscId;
- ULONG lFileKey; // zu welcher Datei gehoert das Define
- sal_uInt32 nRefCount; // Wieviele Referenzen auf dieses Objekt
- INT32 lId; // Identifier
- RscExpression * pExp; // Ausdruck
+ ULONG lFileKey; // zu welcher Datei gehoert das Define
+ sal_uInt32 nRefCount; // Wieviele Referenzen auf dieses Objekt
+ INT32 lId; // Identifier
+ RscExpression * pExp; // Ausdruck
protected:
RscDefine( ULONG lFileKey, const ByteString & rDefName,
@@ -135,21 +135,21 @@ protected:
RscDefine( ULONG lFileKey, const ByteString & rDefName,
RscExpression * pExpression );
~RscDefine();
- void IncRef(){ nRefCount++; }
- sal_uInt32 GetRefCount() const { return nRefCount; }
- void DecRef();
- void DefineToNumber();
- void SetName( const ByteString & rNewName ){ aName = rNewName; }
- void ChangeMacro( RscExpression * pExpression );
- void ChangeMacro( INT32 lIdentifier );
-
+ void IncRef(){ nRefCount++; }
+ sal_uInt32 GetRefCount() const { return nRefCount; }
+ void DecRef();
+ void DefineToNumber();
+ void SetName( const ByteString & rNewName ){ aName = rNewName; }
+ void ChangeMacro( RscExpression * pExpression );
+ void ChangeMacro( INT32 lIdentifier );
+
using StringNode::Search;
public:
RscDefine * Search( const char * );
- ULONG GetFileKey() const { return lFileKey; }
- BOOL Evaluate();
- INT32 GetNumber() const { return lId; }
- ByteString GetMacro();
+ ULONG GetFileKey() const { return lFileKey; }
+ BOOL Evaluate();
+ INT32 GetNumber() const { return lId; }
+ ByteString GetMacro();
};
DECLARE_LIST( RscSubDefList, RscDefine * )
@@ -163,34 +163,34 @@ private:
INT32 lDefId, ULONG lPos );
RscDefine * New( ULONG lFileKey, const ByteString & rDefName,
RscExpression * pExpression, ULONG lPos );
- BOOL Befor( const RscDefine * pFree, const RscDefine * pDepend );
- BOOL Remove( RscDefine * pDef );
- BOOL Remove( ULONG nIndex );
- BOOL Remove();
+ BOOL Befor( const RscDefine * pFree, const RscDefine * pDepend );
+ BOOL Remove( RscDefine * pDef );
+ BOOL Remove( ULONG nIndex );
+ BOOL Remove();
public:
- void WriteAll( FILE * fOutput );
+ void WriteAll( FILE * fOutput );
};
/*********** R s c E x p r e s s i o n ***********************************/
class RscExpression {
friend class RscFileTab;
- char cOperation;
- RscExpType aLeftExp;
- RscExpType aRightExp;
+ char cOperation;
+ RscExpType aLeftExp;
+ RscExpType aRightExp;
public:
RscExpression( RscExpType aLE, char cOp,
RscExpType aRE );
~RscExpression();
- BOOL Evaluate( INT32 * pValue );
- ByteString GetMacro();
+ BOOL Evaluate( INT32 * pValue );
+ ByteString GetMacro();
};
/********************** R S C F I L E ************************************/
class RscDepend {
- ULONG lKey;
+ ULONG lKey;
public:
RscDepend( ULONG lIncKey ){ lKey = lIncKey; };
- ULONG GetFileKey(){ return lKey; }
+ ULONG GetFileKey(){ return lKey; }
};
DECLARE_LIST( RscDependList, RscDepend * )
@@ -198,22 +198,22 @@ DECLARE_LIST( RscDependList, RscDepend * )
class RscFile : public RscDependList
{
friend class RscFileTab;
- BOOL bIncFile; // Ist es eine Include-Datei
+ BOOL bIncFile; // Ist es eine Include-Datei
public:
- BOOL bLoaded; // Ist die Datei geladen
- BOOL bScanned; // Wurde Datei nach Inclide abgesucht
- BOOL bDirty; // Dirty-Flag
- ByteString aFileName; // Name der Datei
- ByteString aPathName; // Pfad und Name der Datei
- RscDefineList aDefLst; // Liste der Defines
+ BOOL bLoaded; // Ist die Datei geladen
+ BOOL bScanned; // Wurde Datei nach Inclide abgesucht
+ BOOL bDirty; // Dirty-Flag
+ ByteString aFileName; // Name der Datei
+ ByteString aPathName; // Pfad und Name der Datei
+ RscDefineList aDefLst; // Liste der Defines
RscFile();
~RscFile();
- BOOL InsertDependFile( ULONG lDepFile, ULONG lPos );
- void RemoveDependFile( ULONG lDepFile );
- BOOL Depend( ULONG lDepend, ULONG lFree );
- void SetIncFlag(){ bIncFile = TRUE; };
- BOOL IsIncFile(){ return bIncFile; };
+ BOOL InsertDependFile( ULONG lDepFile, ULONG lPos );
+ void RemoveDependFile( ULONG lDepFile );
+ BOOL Depend( ULONG lDepend, ULONG lFree );
+ void SetIncFlag(){ bIncFile = TRUE; };
+ BOOL IsIncFile(){ return bIncFile; };
};
DECLARE_UNIQUEINDEX( RscSubFileTab, RscFile * )
@@ -225,16 +225,16 @@ public:
static BOOL Evaluate( RscDefine * pDef );
RscDefTree(){ pDefRoot = NULL; }
~RscDefTree();
- void Remove();
- BOOL Evaluate();
+ void Remove();
+ BOOL Evaluate();
RscDefine * Search( const char * pName );
- void Insert( RscDefine * pDef );
- void Remove( RscDefine * pDef );
+ void Insert( RscDefine * pDef );
+ void Remove( RscDefine * pDef );
};
class RscFileTab : public RscSubFileTab {
RscDefTree aDefTree;
- ULONG Find( const ByteString & rName );
+ ULONG Find( const ByteString & rName );
public:
RscFileTab();
~RscFileTab();
@@ -243,10 +243,10 @@ public:
RscDefine * FindDef( const ByteString& rStr ) { return FindDef( rStr.GetBuffer() ); }
RscDefine * FindDef( ULONG lKey, const ByteString & );
- BOOL Depend( ULONG lDepend, ULONG lFree );
- BOOL TestDef( ULONG lFileKey, ULONG lPos,
+ BOOL Depend( ULONG lDepend, ULONG lFree );
+ BOOL TestDef( ULONG lFileKey, ULONG lPos,
const RscDefine * pDefDec );
- BOOL TestDef( ULONG lFileKey, ULONG lPos,
+ BOOL TestDef( ULONG lFileKey, ULONG lPos,
const RscExpression * pExpDec );
RscDefine * NewDef( ULONG lKey, const ByteString & rDefName,
@@ -254,8 +254,8 @@ public:
RscDefine * NewDef( ULONG lKey, const ByteString & rDefName,
RscExpression *, ULONG lPos );
- BOOL ChangeDef( const ByteString & rDefName, INT32 lId );
- BOOL ChangeDef( const ByteString & rDefName, RscExpression * );
+ BOOL ChangeDef( const ByteString & rDefName, INT32 lId );
+ BOOL ChangeDef( const ByteString & rDefName, RscExpression * );
BOOL IsDefUsed( const ByteString & );
void DeleteDef( const ByteString & );
diff --git a/rsc/inc/rscerror.h b/rsc/inc/rscerror.h
index b532df468ca4..9ded45309dd9 100644
--- a/rsc/inc/rscerror.h
+++ b/rsc/inc/rscerror.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,85 +33,85 @@
#endif
/****************** D E F I N I T I O N S ********************************/
-/******************* R e t u r n E r r o r s *******************/
-#define ERR_OK 0xFFFFFFFF
-
-#define ERR_ERROR 0x0100
-#define ERR_UNKNOWN_METHOD 0x0101 // Return
-#define ERR_OPENFILE 0x0102 // Return
-#define ERR_NOCHAR 0x0103 // Return
-#define ERR_NORSCINST 0x0104 // Return
-#define ERR_USAGE 0x0105 //
-#define ERR_NOINPUT 0x0106 // Return
-#define ERR_UNKNOWNSW 0x0107 //
-#define ERR_REFTODEEP 0x0108 // Return
-#define ERR_FILEFORMAT 0x0109 // Return
-#define ERR_FILESIZE 0x010A // Return
-#define ERR_RENAMEFILE 0x010B // Return
-#define ERR_NOIMAGE 0x010C // Return
-
-#define ERR_RSCRANGE 0x0200 // Return
-#define ERR_RSCRANGE_OUTDEFSET (ERR_RSCRANGE +1 )
-
-#define ERR_RSCENUM 0x0210 // Return
-#define ERR_RSCFLAG 0x0220 // Return
-#define ERR_RSCCONT 0x0240 // Return
-#define ERR_CONT_INVALIDPOS (ERR_RSCCONT +1 ) // Return
-#define ERR_CONT_INVALIDTYPE (ERR_RSCCONT +2 ) // Return
-
-#define ERR_RSCCMPED 0x0250
-#define ERR_RSCINST 0x0260
-#define ERR_RSCINST_NOVARNAME (ERR_RSCINST +1 ) // Return
+/******************* R e t u r n E r r o r s *******************/
+#define ERR_OK 0xFFFFFFFF
+
+#define ERR_ERROR 0x0100
+#define ERR_UNKNOWN_METHOD 0x0101 // Return
+#define ERR_OPENFILE 0x0102 // Return
+#define ERR_NOCHAR 0x0103 // Return
+#define ERR_NORSCINST 0x0104 // Return
+#define ERR_USAGE 0x0105 //
+#define ERR_NOINPUT 0x0106 // Return
+#define ERR_UNKNOWNSW 0x0107 //
+#define ERR_REFTODEEP 0x0108 // Return
+#define ERR_FILEFORMAT 0x0109 // Return
+#define ERR_FILESIZE 0x010A // Return
+#define ERR_RENAMEFILE 0x010B // Return
+#define ERR_NOIMAGE 0x010C // Return
+
+#define ERR_RSCRANGE 0x0200 // Return
+#define ERR_RSCRANGE_OUTDEFSET (ERR_RSCRANGE +1 )
+
+#define ERR_RSCENUM 0x0210 // Return
+#define ERR_RSCFLAG 0x0220 // Return
+#define ERR_RSCCONT 0x0240 // Return
+#define ERR_CONT_INVALIDPOS (ERR_RSCCONT +1 ) // Return
+#define ERR_CONT_INVALIDTYPE (ERR_RSCCONT +2 ) // Return
+
+#define ERR_RSCCMPED 0x0250
+#define ERR_RSCINST 0x0260
+#define ERR_RSCINST_NOVARNAME (ERR_RSCINST +1 ) // Return
#define ERR_RSCINST_RESERVEDNAME (ERR_RSCINST +2 ) // Return
-#define ERR_LEX 0x0270
-#define ERR_YACC 0x0280 //
-#define ERR_DOUBLEID (ERR_YACC +1 ) //
-#define ERR_FALSETYPE (ERR_YACC +2 ) //
-#define ERR_NOVARIABLENAME (ERR_YACC +3 ) //
-#define ERR_USHORTRANGE (ERR_YACC +4 ) //
-#define ERR_IDRANGE (ERR_YACC +5 ) //
-#define ERR_NOCOPYOBJ (ERR_YACC +6 ) //
-#define ERR_REFNOTALLOWED (ERR_YACC +7 ) // Return
-#define ERR_DOUBLEDEFINE (ERR_YACC +8 ) //
-#define ERR_COPYNOTALLOWED (ERR_YACC +9 ) //
-#define ERR_IDEXPECTED (ERR_YACC +10) //
-#define ERR_ZERODIVISION (ERR_YACC +11) //
-#define ERR_PRAGMA (ERR_YACC +12) //
-#define ERR_DECLAREDEFINE (ERR_YACC +13) //
-#define ERR_NOTUPELNAME (ERR_YACC +14) //
-#define ERR_NOTYPE (ERR_YACC +15) //
-
-#define ERR_RSCARRAY 0x02A0 // Return
-#define ERR_ARRAY_INVALIDINDEX (ERR_RSCARRAY +1 ) // Return
-
-#define ERR_ERROREND 0x1000
-
-#define ERR_WARNINGSTART 0x1001
-#define WRN_LOCALID (ERR_WARNINGSTART +1 )
-#define WRN_GLOBALID (ERR_WARNINGSTART +2 )
-#define WRN_SUBINMEMBER (ERR_WARNINGSTART +3 )
-#define WRN_CONT_NOID (ERR_WARNINGSTART +4 )
-#define WRN_STR_REFNOTFOUND (ERR_WARNINGSTART +5 )
-#define WRN_MGR_REFNOTFOUND (ERR_WARNINGSTART +6 )
-#define WRN_CONT_DOUBLEID (ERR_WARNINGSTART +7 )
-
-#define ERR_WARNINGEND 0x2000
+#define ERR_LEX 0x0270
+#define ERR_YACC 0x0280 //
+#define ERR_DOUBLEID (ERR_YACC +1 ) //
+#define ERR_FALSETYPE (ERR_YACC +2 ) //
+#define ERR_NOVARIABLENAME (ERR_YACC +3 ) //
+#define ERR_USHORTRANGE (ERR_YACC +4 ) //
+#define ERR_IDRANGE (ERR_YACC +5 ) //
+#define ERR_NOCOPYOBJ (ERR_YACC +6 ) //
+#define ERR_REFNOTALLOWED (ERR_YACC +7 ) // Return
+#define ERR_DOUBLEDEFINE (ERR_YACC +8 ) //
+#define ERR_COPYNOTALLOWED (ERR_YACC +9 ) //
+#define ERR_IDEXPECTED (ERR_YACC +10) //
+#define ERR_ZERODIVISION (ERR_YACC +11) //
+#define ERR_PRAGMA (ERR_YACC +12) //
+#define ERR_DECLAREDEFINE (ERR_YACC +13) //
+#define ERR_NOTUPELNAME (ERR_YACC +14) //
+#define ERR_NOTYPE (ERR_YACC +15) //
+
+#define ERR_RSCARRAY 0x02A0 // Return
+#define ERR_ARRAY_INVALIDINDEX (ERR_RSCARRAY +1 ) // Return
+
+#define ERR_ERROREND 0x1000
+
+#define ERR_WARNINGSTART 0x1001
+#define WRN_LOCALID (ERR_WARNINGSTART +1 )
+#define WRN_GLOBALID (ERR_WARNINGSTART +2 )
+#define WRN_SUBINMEMBER (ERR_WARNINGSTART +3 )
+#define WRN_CONT_NOID (ERR_WARNINGSTART +4 )
+#define WRN_STR_REFNOTFOUND (ERR_WARNINGSTART +5 )
+#define WRN_MGR_REFNOTFOUND (ERR_WARNINGSTART +6 )
+#define WRN_CONT_DOUBLEID (ERR_WARNINGSTART +7 )
+
+#define ERR_WARNINGEND 0x2000
class ERRTYPE {
- sal_uInt32 nError;
+ sal_uInt32 nError;
public:
- ERRTYPE() { nError = ERR_OK; }
- ERRTYPE( sal_uInt32 nErr ) { nError = nErr; }
+ ERRTYPE() { nError = ERR_OK; }
+ ERRTYPE( sal_uInt32 nErr ) { nError = nErr; }
ERRTYPE( const ERRTYPE & rErr ) { nError = rErr.nError; };
ERRTYPE& operator = ( const ERRTYPE & rError );
operator sal_uInt32() const { return( nError ); }
- BOOL IsError() const { return( nError <= ERR_ERROREND ); }
- BOOL IsOk() const { return( !IsError() ); }
- BOOL IsWarning() const {
+ BOOL IsError() const { return( nError <= ERR_ERROREND ); }
+ BOOL IsOk() const { return( !IsError() ); }
+ BOOL IsWarning() const {
return( nError >= ERR_WARNINGSTART && nError <= ERR_WARNINGEND );
};
- void Clear(){ nError = ERR_OK; }
+ void Clear(){ nError = ERR_OK; }
};
/****************** R s c E r r o r **************************************/
@@ -127,7 +127,7 @@ enum RscVerbosity
class RscError
{
- FILE * fListing;
+ FILE * fListing;
RscVerbosity m_verbosity;
void WriteError( const ERRTYPE& rError, const char * pMessage );
@@ -136,27 +136,27 @@ class RscError
void ErrorFormat( const ERRTYPE& rError, RscTop * pClass,
const RscId & aId );
public:
- sal_uInt32 nErrors;// Anzahl der Fehler
+ sal_uInt32 nErrors;// Anzahl der Fehler
RscError( RscVerbosity _verbosity ) {
fListing = NULL;
nErrors = 0;
m_verbosity = _verbosity;
};
- void SetListFile( FILE * fList ){
+ void SetListFile( FILE * fList ){
fListing = fList;
};
- FILE * GetListFile(){
+ FILE * GetListFile(){
return fListing;
};
RscVerbosity GetVerbosity() const { return m_verbosity; }
- virtual void StdOut( const char *, const RscVerbosity _verbosityLevel = RscVerbosityNormal );
- virtual void StdErr( const char * );
- virtual void LstOut( const char * );
- virtual void Error( const ERRTYPE& rError, RscTop* pClass, const RscId &aId,
+ virtual void StdOut( const char *, const RscVerbosity _verbosityLevel = RscVerbosityNormal );
+ virtual void StdErr( const char * );
+ virtual void LstOut( const char * );
+ virtual void Error( const ERRTYPE& rError, RscTop* pClass, const RscId &aId,
const char * pMessage = NULL );
// Dieser Fehler sollte nur im Compilermodus auftreten,
// das Programm wird mit exit() verlassen
- virtual void FatalError( const ERRTYPE& rError, const RscId &aId,
+ virtual void FatalError( const ERRTYPE& rError, const RscId &aId,
const char * pMessage = NULL );
};
diff --git a/rsc/inc/rscflag.hxx b/rsc/inc/rscflag.hxx
index a176a4f14114..cf0c7cc465fe 100644
--- a/rsc/inc/rscflag.hxx
+++ b/rsc/inc/rscflag.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ public:
BOOL bOwnClass, Atom nConsId );
sal_uInt32 Size();
- virtual void SetToDefault( const RSCINST & rInst );
+ virtual void SetToDefault( const RSCINST & rInst );
BOOL IsDefault( const RSCINST & rInst );
BOOL IsDefault( const RSCINST & rInst, Atom nConstId );
diff --git a/rsc/inc/rschash.hxx b/rsc/inc/rschash.hxx
index 5d5f8ca73def..28fb79f71ae9 100644
--- a/rsc/inc/rschash.hxx
+++ b/rsc/inc/rschash.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,14 +41,14 @@ class AtomContainer
Atom m_nNextID;
std::hash_map< rtl::OString, Atom, rtl::OStringHash > m_aStringToID;
std::hash_map< Atom, rtl::OString > m_aIDToString;
-
+
public:
AtomContainer();
~AtomContainer();
-
+
Atom getID( const rtl::OString& rStr, bool bOnlyIfExists = false );
- const rtl::OString& getString( Atom nAtom );
-
+ const rtl::OString& getString( Atom nAtom );
+
};
#endif // _RSCHASH_HXX
diff --git a/rsc/inc/rscinst.hxx b/rsc/inc/rscinst.hxx
index 962444dd27ab..b6f08bc23e6b 100644
--- a/rsc/inc/rscinst.hxx
+++ b/rsc/inc/rscinst.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include <rscerror.h>
#include <rsctools.hxx>
-/******************* C l a s s e s F o r w a r d s *********************/
+/******************* C l a s s e s F o r w a r d s *********************/
class RscTypCont;
class RscCmdLine;
class REResourceList;
@@ -40,7 +40,7 @@ class RscTop;
class RscInstCopy;
/******************* F u n c t i o n F o r w a r d s *******************/
-Atom HashId( const char * ); // Gibt zu einem String eine HashId
+Atom HashId( const char * ); // Gibt zu einem String eine HashId
const char * GetHashString( Atom ); // Gibt zu einer Atom einen String
// NULL, wenn kein Eintrag vorhanden
@@ -49,81 +49,81 @@ const char * GetHashString( Atom ); // Gibt zu einer Atom einen String
/****************** C L A S S E S ****************************************/
class RscInst
{
- void MakeCopy( RSCINST aCopyInst );
- static RSCINST GetSysLangInst( RSCINST & rInst );
+ void MakeCopy( RSCINST aCopyInst );
+ static RSCINST GetSysLangInst( RSCINST & rInst );
public:
- RSCINST aInst;
+ RSCINST aInst;
RscInst();
RscInst( const RscInst & rInst );
RscInst( RSCINST aTmpI );
- RscInst& operator = ( const RscInst& rRscInst );
+ RscInst& operator = ( const RscInst& rRscInst );
~RscInst();
- void OverWrite( RscInstCopy & rInst );
- BOOL IsInst() const { return( aInst.IsInst() ); }
+ void OverWrite( RscInstCopy & rInst );
+ BOOL IsInst() const { return( aInst.IsInst() ); }
// Listen Methoden
- ERRTYPE SetElement( const RscId & rName, RscInstCopy & rInst );
- ERRTYPE SetPosEle( sal_uInt32 nPos, RscInstCopy & rInst );
- ERRTYPE SetPosRscId( sal_uInt32 nPos, const RscId & rId );
- SUBINFO_STRUCT GetInfoEle( sal_uInt32 nPos );
- sal_uInt32 GetCount();
- RscInst GetElement( RscTop * pClass, const RscId & rName );
- RscInst GetPosEle( sal_uInt32 nPos );
- ERRTYPE MovePosEle( sal_uInt32 nDestPos, sal_uInt32 nSourcePos );
- ERRTYPE DeleteElement( RscTop * pClass, const RscId & rName );
- ERRTYPE DeletePosEle( sal_uInt32 nPos );
-
- ERRTYPE SetVar( Atom nVarName, RscInstCopy & rInst );
- ERRTYPE SetConst( Atom nVarName, Atom nConstId );
- ERRTYPE SetBool( Atom nVarName, BOOL );
+ ERRTYPE SetElement( const RscId & rName, RscInstCopy & rInst );
+ ERRTYPE SetPosEle( sal_uInt32 nPos, RscInstCopy & rInst );
+ ERRTYPE SetPosRscId( sal_uInt32 nPos, const RscId & rId );
+ SUBINFO_STRUCT GetInfoEle( sal_uInt32 nPos );
+ sal_uInt32 GetCount();
+ RscInst GetElement( RscTop * pClass, const RscId & rName );
+ RscInst GetPosEle( sal_uInt32 nPos );
+ ERRTYPE MovePosEle( sal_uInt32 nDestPos, sal_uInt32 nSourcePos );
+ ERRTYPE DeleteElement( RscTop * pClass, const RscId & rName );
+ ERRTYPE DeletePosEle( sal_uInt32 nPos );
+
+ ERRTYPE SetVar( Atom nVarName, RscInstCopy & rInst );
+ ERRTYPE SetConst( Atom nVarName, Atom nConstId );
+ ERRTYPE SetBool( Atom nVarName, BOOL );
// Hack fuer X, Y, Width, Height
static ERRTYPE SetCorrectValues( RSCINST & rInst, RSCINST & rVarInst,
INT32 lValue, sal_uInt32 nTupelIdx );
- ERRTYPE SetNumber( Atom nVarName, INT32 );
+ ERRTYPE SetNumber( Atom nVarName, INT32 );
- ERRTYPE SetString( Atom nVarName, const char * );
- ERRTYPE SetConst( Atom nConstId );
- ERRTYPE SetBool( BOOL );
- ERRTYPE SetNumber( INT32 );
- ERRTYPE SetString( const char * );
- ERRTYPE SetRef( const RscId & rRscId );
- ERRTYPE SetDefault( Atom nVarName );
+ ERRTYPE SetString( Atom nVarName, const char * );
+ ERRTYPE SetConst( Atom nConstId );
+ ERRTYPE SetBool( BOOL );
+ ERRTYPE SetNumber( INT32 );
+ ERRTYPE SetString( const char * );
+ ERRTYPE SetRef( const RscId & rRscId );
+ ERRTYPE SetDefault( Atom nVarName );
- RscInst GetVar( Atom nVarName );
- Atom GetConst( Atom nVarName = InvalidAtom );
- sal_uInt32 GetConstPos( Atom nVarName = InvalidAtom );
- BOOL GetBool( Atom nVarName = InvalidAtom );
+ RscInst GetVar( Atom nVarName );
+ Atom GetConst( Atom nVarName = InvalidAtom );
+ sal_uInt32 GetConstPos( Atom nVarName = InvalidAtom );
+ BOOL GetBool( Atom nVarName = InvalidAtom );
// Hack fuer X, Y, Width, Height
static INT32 GetCorrectValues( RSCINST & rInst, RSCINST & rVarInst,
sal_uInt32 nTupelIdx );
- INT32 GetNumber( Atom nVarName = InvalidAtom );
+ INT32 GetNumber( Atom nVarName = InvalidAtom );
const char *GetString( Atom nVarName = InvalidAtom );
- RscId GetRef();
- BOOL IsDefault( Atom nVarName );
- BOOL IsConsistent( RscInconsList * pList );
-
- Atom GetClassEnum( Atom nVarName, sal_uInt32 nPos );
- Atom GetClassEnum( sal_uInt32 nPos );
- RscTop * GetClassType(){ return aInst.pClass; };
- Atom GetClassName();
- void EnumClassVariables( void * pData, VarEnumCallbackProc ) const;
- ERRTYPE WriteRc( RscWriteRc & aMem );
+ RscId GetRef();
+ BOOL IsDefault( Atom nVarName );
+ BOOL IsConsistent( RscInconsList * pList );
+
+ Atom GetClassEnum( Atom nVarName, sal_uInt32 nPos );
+ Atom GetClassEnum( sal_uInt32 nPos );
+ RscTop * GetClassType(){ return aInst.pClass; };
+ Atom GetClassName();
+ void EnumClassVariables( void * pData, VarEnumCallbackProc ) const;
+ ERRTYPE WriteRc( RscWriteRc & aMem );
};
class RscInstCopy : public RscInst {
- void MakeCopy( RSCINST aCopyInst );
+ void MakeCopy( RSCINST aCopyInst );
public:
RscInstCopy();
RscInstCopy( const RscInstCopy & rInst );
RscInstCopy( const RscInst & rInst );
RscInstCopy( RSCINST aTmpI );
RscInstCopy( RscTop * pNewType, const RscInst & rInst );
- RscInstCopy& operator = ( const RscInstCopy & rRscInst );
- RscInstCopy& operator = ( const RscInst & rRscInst );
+ RscInstCopy& operator = ( const RscInstCopy & rRscInst );
+ RscInstCopy& operator = ( const RscInst & rRscInst );
~RscInstCopy();
};
@@ -133,44 +133,44 @@ friend class RscHrc;
friend class RscSrc;
friend class RscInst;
- RscCmdLine * pCmdLine;
- RscTypCont * pTC;
+ RscCmdLine * pCmdLine;
+ RscTypCont * pTC;
LanguageType nLangType;
public:
RscDataBase( RscError * );
~RscDataBase();
-// void SetLanguage( LanguageType nTyp ) { nLangType = nTyp; }
- void SetLanguage( Atom nId );
- Atom GetLanguage() const;
+// void SetLanguage( LanguageType nTyp ) { nLangType = nTyp; }
+ void SetLanguage( Atom nId );
+ Atom GetLanguage() const;
- ByteString GetPath() const;
- void SetPath( const ByteString & rPath );
+ ByteString GetPath() const;
+ void SetPath( const ByteString & rPath );
// Konvertiert einen Namen in einen Typ
- RscTop* GetClassType( Atom nClassName );
+ RscTop* GetClassType( Atom nClassName );
// Instanz einer Klasse erzeugen
- BOOL MakeConsistent( RscInconsList * pList );
+ BOOL MakeConsistent( RscInconsList * pList );
// Array mit Dateinamen
RscFileTab* GetFileTab();
// Eine Dateinamen-Instanz holen
- RscFile * GetFileStruct( ULONG lKey );
+ RscFile * GetFileStruct( ULONG lKey );
- ULONG AddSrcFile( const ByteString & rFileName );
- ULONG AddHrcFile( const ByteString & rFileName );
+ ULONG AddSrcFile( const ByteString & rFileName );
+ ULONG AddHrcFile( const ByteString & rFileName );
// Traegt die Include-Dateien in die Abhaengigkeitsliste
// von lFileKey ein
- void ScanForIncFiles( ULONG lFileKey );
- void RemoveFile( ULONG lKey );
+ void ScanForIncFiles( ULONG lFileKey );
+ void RemoveFile( ULONG lKey );
// Suche ueber alle DEFINES
RscDefine * FindDef( const ByteString & rName );
- ULONG GetFileKey( const ByteString & rFileName );
+ ULONG GetFileKey( const ByteString & rFileName );
};
class RscHrc
{
protected:
- ULONG lFileKey; // Index der Instanz
+ ULONG lFileKey; // Index der Instanz
RscDataBase * pDataBase;// Datenbasis
public:
@@ -179,43 +179,43 @@ public:
~RscHrc();
// Daten von Datei uebernehmen
- ERRTYPE ReadFile();
+ ERRTYPE ReadFile();
- ULONG GetFileKey() const { return lFileKey; }
+ ULONG GetFileKey() const { return lFileKey; }
- void SetDirty( BOOL bSet );
- BOOL IsDirty();
- void SetPathName( const ByteString & );
- ByteString GetPathName();
- void SetFileName( const ByteString & );
- ByteString GetFileName();
+ void SetDirty( BOOL bSet );
+ BOOL IsDirty();
+ void SetPathName( const ByteString & );
+ ByteString GetPathName();
+ void SetFileName( const ByteString & );
+ ByteString GetFileName();
//Depend-Datei anhaengen
- void InsertDepend( ULONG lKey, ULONG lPos );
+ void InsertDepend( ULONG lKey, ULONG lPos );
// DefineList holen
RscDefineList * GetDefineList();
// Suche ueber all DEFINES im Zugriff
RscDefine * FindDef( const ByteString & rName );
- ERRTYPE NewDef( const ByteString & rMacroName, INT32 lValue,
+ ERRTYPE NewDef( const ByteString & rMacroName, INT32 lValue,
ULONG lPos );
- ERRTYPE NewDef( const ByteString & rMacroName, const ByteString & rMacro,
+ ERRTYPE NewDef( const ByteString & rMacroName, const ByteString & rMacro,
ULONG lPos );
- ERRTYPE ChangeDef( const ByteString & rMacroName, INT32 lValue );
- ERRTYPE ChangeDef( const ByteString & rMacroName,
+ ERRTYPE ChangeDef( const ByteString & rMacroName, INT32 lValue );
+ ERRTYPE ChangeDef( const ByteString & rMacroName,
const ByteString & rMacro );
- BOOL IsDefUsed( const ByteString & );
- void DeleteDef( const ByteString & rMacroName );
- ERRTYPE ChangeDefName( const ByteString & rMacroName,
+ BOOL IsDefUsed( const ByteString & );
+ void DeleteDef( const ByteString & rMacroName );
+ ERRTYPE ChangeDefName( const ByteString & rMacroName,
const ByteString & rNewName );
// Dateinamen-Instanz holen
- RscFile * GetFileStruct();
+ RscFile * GetFileStruct();
//Abhaengigkeitsliste holen holen
RscDependList * GetDependList();
// Datei schreiben
- ERRTYPE WriteFile();
+ ERRTYPE WriteFile();
};
class RscSrc : public RscHrc {
@@ -227,7 +227,7 @@ public:
RscInstCopy CreateRscInst( RscTop * pClass );
// Instanz loeschen
- ERRTYPE DeleteRscInst( RscTop * pClass, const RscId & rInstName );
+ ERRTYPE DeleteRscInst( RscTop * pClass, const RscId & rInstName );
// Datenbasis nach Define Veraenderung wiederherstellen
//Instanz global zur Verfuegung stellen
ERRTYPE SetRscInst( const RscId & rInstName, RscInstCopy & );
@@ -235,11 +235,11 @@ public:
RscInst GetRscInst( RscTop* pClass, const RscId & rInstName );
// Namen und Identifier Liste fuellen
- void FillNameIdList( REResourceList * pList );
+ void FillNameIdList( REResourceList * pList );
// C++ Resourcekonstruktor schreiben
ERRTYPE WriteCxxFile( const ByteString &, const ByteString & rHxxName );
- ERRTYPE WriteHxxFile( const ByteString & ); // C++ Klasskopf schreiben
+ ERRTYPE WriteHxxFile( const ByteString & ); // C++ Klasskopf schreiben
};
#endif //_RSCINST_HXX
diff --git a/rsc/inc/rsckey.hxx b/rsc/inc/rsckey.hxx
index 6548601f0cc5..7a3f82cf038b 100644
--- a/rsc/inc/rsckey.hxx
+++ b/rsc/inc/rsckey.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/inc/rsclst.hxx b/rsc/inc/rsclst.hxx
index 3cbf4b25b77a..c848f1b65481 100644
--- a/rsc/inc/rsclst.hxx
+++ b/rsc/inc/rsclst.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,27 +40,27 @@ class REResourceList : public RESubResourceList
{
protected:
REResourceList* pParent;
- RscId aRscId; //Id und Name des Resourceobjektes
- ByteString aClassName;
- BOOL bVisible;
+ RscId aRscId; //Id und Name des Resourceobjektes
+ ByteString aClassName;
+ BOOL bVisible;
public:
REResourceList();
REResourceList( REResourceList * pParentList,
ByteString& rClassName,
const RscId & rResourceID,
- BOOL bVisible = FALSE );
+ BOOL bVisible = FALSE );
~REResourceList();
- REResourceList* GetParent() { return pParent; }
- ByteString GetObjName() { return aRscId.GetName(); }
- ByteString GetClassName() { return aClassName; }
- RscId GetRscId() { return aRscId; }
- void SetRscId( const RscId & rId ){ aRscId = rId; }
+ REResourceList* GetParent() { return pParent; }
+ ByteString GetObjName() { return aRscId.GetName(); }
+ ByteString GetClassName() { return aClassName; }
+ RscId GetRscId() { return aRscId; }
+ void SetRscId( const RscId & rId ){ aRscId = rId; }
- void SetVisible( BOOL bVis )
+ void SetVisible( BOOL bVis )
{ bVisible = bVis; }
- BOOL IsVisible() { return bVisible; }
+ BOOL IsVisible() { return bVisible; }
};
#endif // _RSCLST_HXX
diff --git a/rsc/inc/rscmgr.hxx b/rsc/inc/rscmgr.hxx
index da8e72304926..a8e81f2f59b4 100644
--- a/rsc/inc/rscmgr.hxx
+++ b/rsc/inc/rscmgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,11 +42,11 @@ class RscMgr : public RscClass {
void Create(){ aRefId.Create(); bDflt = TRUE; }
void Destroy(){ aRefId.Destroy(); }
};
- ERRTYPE IsToDeep( const RSCINST & rInst, sal_uInt32 nDeep = 0 );
+ ERRTYPE IsToDeep( const RSCINST & rInst, sal_uInt32 nDeep = 0 );
public:
RscMgr( Atom nId, sal_uInt32 nTypId, RscTop * pSuperCl );
- void SetToDefault( const RSCINST & rInst );
+ void SetToDefault( const RSCINST & rInst );
BOOL IsDefault( const RSCINST & rInst );
BOOL IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
@@ -72,7 +72,7 @@ public:
RscTypCont * pTC, const RscId & rId );
ERRTYPE WriteCxx( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, const RscId & rId );
- BOOL IsConsistent( const RSCINST & rInst,
+ BOOL IsConsistent( const RSCINST & rInst,
RscInconsList * pList = NULL );
ERRTYPE GetRef( const RSCINST & rInst, RscId * );
ERRTYPE SetRef( const RSCINST & rInst, const RscId & rRefId );
diff --git a/rsc/inc/rscpar.hxx b/rsc/inc/rscpar.hxx
index b235a48a12b0..263b8df03669 100644
--- a/rsc/inc/rscpar.hxx
+++ b/rsc/inc/rscpar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,53 +36,53 @@ class RscTypCont;
class RscExpression;
/*********** R s c F i l e I n s t ***************************************/
-#define READBUFFER_MAX 256
+#define READBUFFER_MAX 256
class RscFileInst
{
- ERRTYPE aFirstError;// Erster Fehler
- sal_uInt32 nErrorLine; // Zeile des ersten Fehlers
- sal_uInt32 nErrorPos; // Position des ersten Fehlers
- BOOL bIncLine; // Muss Zeilennummer incrementiert werden
- sal_uInt32 nLineNo; // Zeile in der Eingabedatei
- ULONG lFileIndex; // Index auf Eingabedatei
- ULONG lSrcIndex; // Index auf Basisdatei
- FILE * fInputFile; // Eingabedatei
- char * pInput; // Lesepuffer
- sal_uInt32 nInputBufLen; // Laenge des Lesepuffers
- sal_uInt32 nInputPos; // Position im Lesepuffer
- sal_uInt32 nInputEndPos;// Ende im Lesepuffer
- char * pLine; // Zeile
- sal_uInt32 nLineBufLen;//Lange des Zeilenpuffres
- sal_uInt32 nScanPos; // Position in der Zeile
- int cLastChar;
- BOOL bEof;
+ ERRTYPE aFirstError;// Erster Fehler
+ sal_uInt32 nErrorLine; // Zeile des ersten Fehlers
+ sal_uInt32 nErrorPos; // Position des ersten Fehlers
+ BOOL bIncLine; // Muss Zeilennummer incrementiert werden
+ sal_uInt32 nLineNo; // Zeile in der Eingabedatei
+ ULONG lFileIndex; // Index auf Eingabedatei
+ ULONG lSrcIndex; // Index auf Basisdatei
+ FILE * fInputFile; // Eingabedatei
+ char * pInput; // Lesepuffer
+ sal_uInt32 nInputBufLen; // Laenge des Lesepuffers
+ sal_uInt32 nInputPos; // Position im Lesepuffer
+ sal_uInt32 nInputEndPos;// Ende im Lesepuffer
+ char * pLine; // Zeile
+ sal_uInt32 nLineBufLen;//Lange des Zeilenpuffres
+ sal_uInt32 nScanPos; // Position in der Zeile
+ int cLastChar;
+ BOOL bEof;
public:
- RscTypCont * pTypCont;
- void Init(); // ctor initialisieren
+ RscTypCont * pTypCont;
+ void Init(); // ctor initialisieren
RscFileInst( RscTypCont * pTC, ULONG lIndexSrc,
ULONG lFileIndex, FILE * fFile );
RscFileInst( RscTypCont * pTC, ULONG lIndexSrc,
ULONG lFileIndex, const ByteString & );
~RscFileInst();
- BOOL IsEof() const { return bEof; }
- void SetFileIndex( ULONG lFIndex ) { lFileIndex = lFIndex; }
- ULONG GetFileIndex() { return( lFileIndex ); }
- ULONG GetSrcIndex() { return( lSrcIndex ); }
- void SetLineNo( sal_uInt32 nLine ) { nLineNo = nLine; }
- sal_uInt32 GetLineNo() { return( nLineNo ); }
- sal_uInt32 GetScanPos() { return( nScanPos ); }
- char * GetLine() { return( pLine ); }
- int GetChar();
- int GetFastChar() { return pLine[ nScanPos ] ?
+ BOOL IsEof() const { return bEof; }
+ void SetFileIndex( ULONG lFIndex ) { lFileIndex = lFIndex; }
+ ULONG GetFileIndex() { return( lFileIndex ); }
+ ULONG GetSrcIndex() { return( lSrcIndex ); }
+ void SetLineNo( sal_uInt32 nLine ) { nLineNo = nLine; }
+ sal_uInt32 GetLineNo() { return( nLineNo ); }
+ sal_uInt32 GetScanPos() { return( nScanPos ); }
+ char * GetLine() { return( pLine ); }
+ int GetChar();
+ int GetFastChar() { return pLine[ nScanPos ] ?
pLine[ nScanPos++ ] : GetChar();
}
- void GetNewLine();
+ void GetNewLine();
// Fehlerbehandlung
- void SetError( ERRTYPE aError );
- ERRTYPE GetError() { return aFirstError; }
- sal_uInt32 GetErrorLine() { return nErrorLine; }
- sal_uInt32 GetErrorPos() { return nErrorPos; }
+ void SetError( ERRTYPE aError );
+ ERRTYPE GetError() { return aFirstError; }
+ sal_uInt32 GetErrorLine() { return nErrorLine; }
+ sal_uInt32 GetErrorPos() { return nErrorPos; }
};
/******************* F u n c t i o n *************************************/
diff --git a/rsc/inc/rscrange.hxx b/rsc/inc/rscrange.hxx
index 6f36c47ed200..d493fad37a59 100644
--- a/rsc/inc/rscrange.hxx
+++ b/rsc/inc/rscrange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ public:
RscTypCont * pTC, sal_uInt32 nTab, const char * );
ERRTYPE WriteRc( const RSCINST &, RscWriteRc & aMem,
RscTypCont * pTC, sal_uInt32, BOOL bExtra );
- void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
};
@@ -110,7 +110,7 @@ public:
RscTypCont * pTC, sal_uInt32 nTab, const char * );
ERRTYPE WriteRc( const RSCINST &, RscWriteRc & aMem,
RscTypCont * pTC, sal_uInt32, BOOL bExtra );
- void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
};
@@ -165,7 +165,7 @@ public:
ERRTYPE WriteRc( const RSCINST &, RscWriteRc & aMem,
RscTypCont * pTC, sal_uInt32, BOOL bExtra );
BOOL IsConsistent( const RSCINST & rInst, RscInconsList * pList );
- void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
};
@@ -191,7 +191,7 @@ public:
};
void WriteSrc( const RSCINST &, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab, const char * );
- void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
};
diff --git a/rsc/inc/rscrsc.hxx b/rsc/inc/rscrsc.hxx
index bbbf65e4bc04..465c08814ef5 100644
--- a/rsc/inc/rscrsc.hxx
+++ b/rsc/inc/rscrsc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,49 +39,49 @@ class DirEntry;
/****************** T Y P E S ********************************************/
-#define MAX_INPUTFILES 100
-#define MAX_SYMBOLS 10
-#define MAX_INCLUDES 10
+#define MAX_INPUTFILES 100
+#define MAX_SYMBOLS 10
+#define MAX_INCLUDES 10
/****************** R s c C m d L i n e **********************************/
class RscCmdLine
{
- void Init();
+ void Init();
public:
-
- RscStrList aInputList; // Liste der Quelldateien
- RscStrList aSymbolList; // Liste der Symbole
- ByteString aPath; // Liste der Pfade
- RSCBYTEORDER_TYPE nByteOrder;
- unsigned short nCommands; // Steuerbits
- ByteString aOutputLst; // Name der List-Ausgabedatei
- ByteString aOutputSrs; // Name der Srs-Ausgabedatei
- ByteString aOutputSrc; // Name der Src-Ausgabedatei
- ByteString aOutputRcCtor; // Name der Ctor-Ausgabedatei
- ByteString aOutputCxx; // Name der Cxx-Ausgabedatei
- ByteString aOutputHxx; // Name der Hxx-Ausgabedatei
- ByteString aTouchFile; // create this file when done in rsc2
- ByteString aILDir;
+
+ RscStrList aInputList; // Liste der Quelldateien
+ RscStrList aSymbolList; // Liste der Symbole
+ ByteString aPath; // Liste der Pfade
+ RSCBYTEORDER_TYPE nByteOrder;
+ unsigned short nCommands; // Steuerbits
+ ByteString aOutputLst; // Name der List-Ausgabedatei
+ ByteString aOutputSrs; // Name der Srs-Ausgabedatei
+ ByteString aOutputSrc; // Name der Src-Ausgabedatei
+ ByteString aOutputRcCtor; // Name der Ctor-Ausgabedatei
+ ByteString aOutputCxx; // Name der Cxx-Ausgabedatei
+ ByteString aOutputHxx; // Name der Hxx-Ausgabedatei
+ ByteString aTouchFile; // create this file when done in rsc2
+ ByteString aILDir;
struct OutputFile
{
- ByteString aLangName; // language name
- ByteString aOutputRc; // target file
- ByteString aLangSearchPath; // language specific search path
- ::std::list< ByteString > aSysSearchDirs; // pathes to search for images
-
+ ByteString aLangName; // language name
+ ByteString aOutputRc; // target file
+ ByteString aLangSearchPath; // language specific search path
+ ::std::list< ByteString > aSysSearchDirs; // pathes to search for images
+
OutputFile() {}
};
-
- std::list<OutputFile> m_aOutputFiles;
+
+ std::list<OutputFile> m_aOutputFiles;
std::list< std::pair< rtl::OString, rtl::OString > > m_aReplacements;
RscCmdLine( int argc, char ** argv, RscError * pEH );
RscCmdLine();
~RscCmdLine();
-
+
::rtl::OString substitutePaths( const ::rtl::OString& rIn );
};
/****************** R s c ************************************************/
@@ -91,43 +91,43 @@ struct WriteRcContext;
class RscCompiler
{
private:
- RscStrList aTmpFileList; // Liste der Tmp-Dateien
- ByteString aTmpOutputHxx; // Name der TempHxx-Ausgabedatei
- ByteString aTmpOutputCxx; // Name der TempCxx-Ausgabedatei
- ByteString aTmpOutputRcCtor; // Name der Temp Ctor-Ausgabedatei
- ByteString aTmpOutputSrc; // Name der TempSrc-Ausgabedatei
-
- void CreateResFile( const char * pRc );
- void Append( const ByteString& rOutputSrs, const ByteString& rTmpFile );
- void OpenInput( const ByteString& rInput );
-
- bool GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile,
+ RscStrList aTmpFileList; // Liste der Tmp-Dateien
+ ByteString aTmpOutputHxx; // Name der TempHxx-Ausgabedatei
+ ByteString aTmpOutputCxx; // Name der TempCxx-Ausgabedatei
+ ByteString aTmpOutputRcCtor; // Name der Temp Ctor-Ausgabedatei
+ ByteString aTmpOutputSrc; // Name der TempSrc-Ausgabedatei
+
+ void CreateResFile( const char * pRc );
+ void Append( const ByteString& rOutputSrs, const ByteString& rTmpFile );
+ void OpenInput( const ByteString& rInput );
+
+ bool GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile,
const WriteRcContext& rContext,
- const ByteString& rBaseFileName,
+ const ByteString& rBaseFileName,
ByteString& rImagePath,
FILE* pSysListFile );
- void PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile,
+ void PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile,
const WriteRcContext& rContext,
- const DirEntry& rSrsInPath,
+ const DirEntry& rSrsInPath,
const DirEntry& rSrsOutPath );
public:
- RscTypCont* pTC; // String und Id-Verwalter
- RscCmdLine* pCL; // Kommandozeile
- FILE * fListing; // Ausgabedatei fuer Listings
- FILE * fExitFile; // bei Abbruch muss diese Datei geschlossen werden
+ RscTypCont* pTC; // String und Id-Verwalter
+ RscCmdLine* pCL; // Kommandozeile
+ FILE * fListing; // Ausgabedatei fuer Listings
+ FILE * fExitFile; // bei Abbruch muss diese Datei geschlossen werden
RscCompiler( RscCmdLine *, RscTypCont * );
~RscCompiler();
- ERRTYPE Start();
- ByteString GetTmpFileName(); // Die Dateien werden geloescht
+ ERRTYPE Start();
+ ByteString GetTmpFileName(); // Die Dateien werden geloescht
// Include Statements lesen
- ERRTYPE IncludeParser( ULONG lFileKey );
- ERRTYPE ParseOneFile( ULONG lFileKey, const RscCmdLine::OutputFile* pOutputFile, const WriteRcContext* pContext );
- ERRTYPE Link();
- void EndCompile();
+ ERRTYPE IncludeParser( ULONG lFileKey );
+ ERRTYPE ParseOneFile( ULONG lFileKey, const RscCmdLine::OutputFile* pOutputFile, const WriteRcContext* pContext );
+ ERRTYPE Link();
+ void EndCompile();
};
#endif //_RSCRSC_HXX
diff --git a/rsc/inc/rscsfx.hxx b/rsc/inc/rscsfx.hxx
index 36babfb8c520..96c931b44ff2 100644
--- a/rsc/inc/rscsfx.hxx
+++ b/rsc/inc/rscsfx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,13 +28,13 @@
#ifndef _RSCSFX_HXX
#define _RSCSFX_HXX
-// StarView (RSC_NOTYPE) bis (RSC_NOTYPE + 0x190)
-// Sfx (RSC_NOTYPE + 0x200) bis (RSC_NOTYPE + 0x20F)
+// StarView (RSC_NOTYPE) bis (RSC_NOTYPE + 0x190)
+// Sfx (RSC_NOTYPE + 0x200) bis (RSC_NOTYPE + 0x20F)
#define RSC_SFX_STYLE_FAMILIES (0x100 + 0x201)
#define RSC_SFX_STYLE_FAMILY_ITEM (0x100 + 0x202)
#define RSC_SFX_SLOT_INFO (0x100 + 0x203)
-// StarMoney (RSC_NOTYPE + 0x210) bis (RSC_NOTYPE + 0x22F)
-// Public (RSC_NOTYPE + 0x300) bis (RSC_NOTYPE + 0x3FF)
+// StarMoney (RSC_NOTYPE + 0x210) bis (RSC_NOTYPE + 0x22F)
+// Public (RSC_NOTYPE + 0x300) bis (RSC_NOTYPE + 0x3FF)
//========== S F X =======================================
enum SfxStyleFamily { SFX_STYLE_FAMILY_CHAR = 1,
diff --git a/rsc/inc/rscstr.hxx b/rsc/inc/rscstr.hxx
index 3d3127f2ab5a..78b544cf2d5a 100644
--- a/rsc/inc/rscstr.hxx
+++ b/rsc/inc/rscstr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ class RscString : public RscTop
BOOL bDflt; // Ist Default
RscId aRefId; // ReferenzName
};
- sal_uInt32 nSize;
+ sal_uInt32 nSize;
public:
RscString( Atom nId, sal_uInt32 nTypId );
virtual RSCCLASS_TYPE GetClassType() const;
@@ -55,7 +55,7 @@ public:
// Der zulaessige Bereich wird gesetzt
void Destroy( const RSCINST & rInst );
sal_uInt32 Size(){ return nSize; }
- void SetToDefault( const RSCINST & rInst )
+ void SetToDefault( const RSCINST & rInst )
{
((RscStringInst*)rInst.pData)->bDflt = TRUE;
}
@@ -73,7 +73,7 @@ public:
RscTypCont * pTC, sal_uInt32 nTab, const char * );
ERRTYPE WriteRc( const RSCINST &, RscWriteRc & aMem,
RscTypCont * pTC, sal_uInt32, BOOL bExtra );
- virtual void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ virtual void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
};
diff --git a/rsc/inc/rsctools.hxx b/rsc/inc/rsctools.hxx
index 2bc039109f9c..9558826b4898 100644
--- a/rsc/inc/rsctools.hxx
+++ b/rsc/inc/rsctools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ enum COMPARE { LESS = -1, EQUAL = 0, GREATER = 1 };
enum RSCBYTEORDER_TYPE { RSC_BIGENDIAN, RSC_LITTLEENDIAN, RSC_SYSTEMENDIAN };
/******************* M A K R O S *****************************************/
-#define ALIGNED_SIZE( nSize ) \
+#define ALIGNED_SIZE( nSize ) \
(nSize + sizeof( void * ) -1) / sizeof( void * ) * sizeof( void * )
/******************* F u n c t i o n F o r w a r d s *******************/
ByteString GetTmpFileName();
@@ -74,38 +74,38 @@ public:
/****************** R s c P t r P t r ************************************/
class RscPtrPtr
{
- sal_uInt32 nCount;
- void ** pMem;
+ sal_uInt32 nCount;
+ void ** pMem;
public:
RscPtrPtr();
~RscPtrPtr();
- void Reset();
- sal_uInt32 Append( void * );
- sal_uInt32 Append( char * pStr ){
+ void Reset();
+ sal_uInt32 Append( void * );
+ sal_uInt32 Append( char * pStr ){
return( Append( (void *)pStr ) );
};
- sal_uInt32 GetCount(){ return( nCount ); };
- void * GetEntry( sal_uInt32 nEle );
- void ** GetBlock(){ return( pMem ); };
+ sal_uInt32 GetCount(){ return( nCount ); };
+ void * GetEntry( sal_uInt32 nEle );
+ void ** GetBlock(){ return( pMem ); };
};
/****************** R s c W r i t e R c **********************************/
class RscWriteRc
{
- sal_uInt32 nLen;
- BOOL bSwap;
- RSCBYTEORDER_TYPE nByteOrder;
- char * pMem;
- char * GetPointer( sal_uInt32 nSize );
+ sal_uInt32 nLen;
+ BOOL bSwap;
+ RSCBYTEORDER_TYPE nByteOrder;
+ char * pMem;
+ char * GetPointer( sal_uInt32 nSize );
public:
RscWriteRc( RSCBYTEORDER_TYPE nOrder = RSC_SYSTEMENDIAN );
~RscWriteRc();
- sal_uInt32 IncSize( sal_uInt32 nSize );// gibt die vorherige Groesse
- void * GetBuffer()
+ sal_uInt32 IncSize( sal_uInt32 nSize );// gibt die vorherige Groesse
+ void * GetBuffer()
{
return GetPointer( 0 );
}
- sal_uInt16 GetShort( sal_uInt32 nPos )
+ sal_uInt16 GetShort( sal_uInt32 nPos )
{
sal_uInt16 nVal = 0;
char* pFrom = GetPointer(nPos);
@@ -114,7 +114,7 @@ public:
*pTo++ = *pFrom++;
return bSwap ? SWAPSHORT( nVal ) : nVal;
}
- sal_uInt32 GetLong( sal_uInt32 nPos )
+ sal_uInt32 GetLong( sal_uInt32 nPos )
{
sal_uInt32 nVal = 0;
char* pFrom = GetPointer(nPos);
@@ -125,14 +125,14 @@ public:
*pTo++ = *pFrom++;
return bSwap ? SWAPLONG( nVal ) : nVal;
}
- char * GetUTF8( sal_uInt32 nPos )
+ char * GetUTF8( sal_uInt32 nPos )
{
return GetPointer( nPos );
}
RSCBYTEORDER_TYPE GetByteOrder() const { return nByteOrder; }
- sal_uInt32 Size(){ return( nLen ); };
+ sal_uInt32 Size(){ return( nLen ); };
void Put( sal_uInt64 lVal )
{
union
@@ -152,7 +152,7 @@ public:
Put( aVal32[1] );
}
}
- void Put( sal_Int32 lVal )
+ void Put( sal_Int32 lVal )
{
union
{
@@ -172,14 +172,14 @@ public:
Put( aVal16[1] );
}
}
- void Put( sal_uInt32 nValue )
+ void Put( sal_uInt32 nValue )
{ Put( (sal_Int32)nValue ); }
- void Put( sal_uInt16 nValue );
- void Put( sal_Int16 nValue )
+ void Put( sal_uInt16 nValue );
+ void Put( sal_Int16 nValue )
{ Put( (sal_uInt16)nValue ); }
- void PutUTF8( char * pData );
+ void PutUTF8( char * pData );
- void PutAt( sal_uInt32 nPos, INT32 lVal )
+ void PutAt( sal_uInt32 nPos, INT32 lVal )
{
union
{
@@ -203,11 +203,11 @@ public:
{
PutAt( nPos, (INT32)lVal);
}
- void PutAt( sal_uInt32 nPos, short nVal )
+ void PutAt( sal_uInt32 nPos, short nVal )
{
PutAt( nPos, (sal_uInt16)nVal );
}
- void PutAt( sal_uInt32 nPos, sal_uInt16 nVal )
+ void PutAt( sal_uInt32 nPos, sal_uInt16 nVal )
{
if( bSwap )
nVal = SWAPSHORT( nVal );
diff --git a/rsc/inc/rsctop.hxx b/rsc/inc/rsctop.hxx
index e382164eef97..3ee249192bd2 100644
--- a/rsc/inc/rsctop.hxx
+++ b/rsc/inc/rsctop.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,50 +35,50 @@
/****************** T Y P E S ********************************************/
typedef sal_uInt32 RSCVAR;
-#define VAR_POINTER 0x0001
-#define VAR_HIDDEN 0x0002
-#define VAR_NODATAINST 0x0004
-#define VAR_NORC 0x0008
-#define VAR_SVDYNAMIC 0x0010
-#define VAR_NOENUM 0x0020
-#define VAR_EXTENDABLE 0x0040 /* Auch die Ableitung einer Klasse kann angegeben werden */
+#define VAR_POINTER 0x0001
+#define VAR_HIDDEN 0x0002
+#define VAR_NODATAINST 0x0004
+#define VAR_NORC 0x0008
+#define VAR_SVDYNAMIC 0x0010
+#define VAR_NOENUM 0x0020
+#define VAR_EXTENDABLE 0x0040 /* Auch die Ableitung einer Klasse kann angegeben werden */
/****************** C L A S S E S ****************************************/
/******************* R s c C l a s s *************************************/
class RscTop : public RefNode
{
- RscTop * pSuperClass;
- RSCINST aDfltInst;
- sal_uInt32 nTypId;
- RscTop * pRefClass;
+ RscTop * pSuperClass;
+ RSCINST aDfltInst;
+ sal_uInt32 nTypId;
+ RscTop * pRefClass;
protected:
RscTop( Atom nId, sal_uInt32 nTypIdent,
RscTop * pSuperCl = NULL );
public:
- ByteString aCallPar1; // Klassenaufruf ohne Typen bis ResId
- ByteString aCallPar2; // Klassenaufruf ohne Typen ab ResId
- ByteString aCallParType; // Klassenaufruf mit Typen
+ ByteString aCallPar1; // Klassenaufruf ohne Typen bis ResId
+ ByteString aCallPar2; // Klassenaufruf ohne Typen ab ResId
+ ByteString aCallParType; // Klassenaufruf mit Typen
- void SetSuperClass( RscTop * pClass )
+ void SetSuperClass( RscTop * pClass )
{
pSuperClass = pClass;
}
RscTop* GetSuperClass() const
{ return pSuperClass; }
// Gibt den Typidentifier zurueck
- sal_uInt32 GetTypId() const
+ sal_uInt32 GetTypId() const
{ return nTypId; };
// Gibt die Oberklasse zurueck
- BOOL InHierarchy( RscTop * pClass );
- BOOL IsCodeWriteable() const
+ BOOL InHierarchy( RscTop * pClass );
+ BOOL IsCodeWriteable() const
{
return( 0 != aCallParType.Len() );
}
- void SetCallPar( const ByteString & rPar1, const ByteString & rPar2,
+ void SetCallPar( const ByteString & rPar1, const ByteString & rPar2,
const ByteString & rParType );
- void SetRefClass( RscTop * pRef ) { pRefClass = pRef; }
+ void SetRefClass( RscTop * pRef ) { pRefClass = pRef; }
RscTop* GetRefClass() const { return pRefClass; }
virtual RSCCLASS_TYPE GetClassType() const = 0;
RSCINST GetDefault();
@@ -87,14 +87,14 @@ public:
// Da die Klassen gegenseitige Abhaengigkeiten
// aufweisen koennen, kann man im dtor nicht davon
// ausgehen, dass alle Klassenzeiger noch gueltig sind
- virtual void Pre_dtor();
+ virtual void Pre_dtor();
- virtual Atom GetConstant( sal_uInt32 );
+ virtual Atom GetConstant( sal_uInt32 );
- virtual RscTop * GetTypeClass() const;
+ virtual RscTop * GetTypeClass() const;
// Gibt die Groesse der Klasse in Bytes
- virtual sal_uInt32 Size();
+ virtual sal_uInt32 Size();
// Gibt die Referenz zurueck
virtual ERRTYPE GetRef( const RSCINST & rInst, RscId * );
@@ -109,7 +109,7 @@ public:
Atom nDataBaseName = InvalidAtom );
// Zaehlt alle Variablen auf
- virtual void EnumVariables( void * pData, VarEnumCallbackProc );
+ virtual void EnumVariables( void * pData, VarEnumCallbackProc );
// Liefert Instanz der Variablen zurueck
// pData, pClass im return koennen NULL sein
@@ -188,38 +188,38 @@ public:
const RSCINST & rDefInst, BOOL bOwnClass = FALSE );
// Instanz zerstoeren
- virtual void Destroy( const RSCINST & rInst );
+ virtual void Destroy( const RSCINST & rInst );
// prueft auf konsistenz
- virtual BOOL IsConsistent( const RSCINST & rInst,
+ virtual BOOL IsConsistent( const RSCINST & rInst,
RscInconsList * pList = NULL );
// Alles auf Default setzen
- virtual void SetToDefault( const RSCINST & rInst );
+ virtual void SetToDefault( const RSCINST & rInst );
// Ist Eingabe = Default
- virtual BOOL IsDefault( const RSCINST & rInst );
+ virtual BOOL IsDefault( const RSCINST & rInst );
// Gleiche Werte auf Default setzen
- virtual BOOL IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
+ virtual BOOL IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef );
// Instanz auf Default setzen
- virtual void SetDefault( const RSCINST & rInst, Atom nVarId );
+ virtual void SetDefault( const RSCINST & rInst, Atom nVarId );
// Default zu einer Variablen holen
virtual RSCINST GetDefault( Atom nVarId );
- virtual void Delete( const RSCINST & rInst, RscTop * pClass,
+ virtual void Delete( const RSCINST & rInst, RscTop * pClass,
const RscId & rId );
- virtual void DeletePos( const RSCINST & rInst, sal_uInt32 nPos );
+ virtual void DeletePos( const RSCINST & rInst, sal_uInt32 nPos );
// Schreibt den Kopf und das Ende einer Resource
// Script Datei
- virtual void WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
+ virtual void WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab,
const RscId & aId, const char * );
- virtual void WriteSrc( const RSCINST & rInst, FILE * fOutput,
+ virtual void WriteSrc( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab,const char * );
virtual ERRTYPE WriteRcHeader( const RSCINST & rInst, RscWriteRc & aMem,
RscTypCont * pTC, const RscId & aId,
@@ -240,9 +240,9 @@ public:
void WriteSyntaxHeader( FILE * fOutput, RscTypCont * pTC );
virtual void WriteSyntax( FILE * fOutput, RscTypCont * pTC );
- virtual void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
+ virtual void WriteRcAccess( FILE * fOutput, RscTypCont * pTC,
const char * );
- virtual void WriteRcCtor( FILE * fOutput, RscTypCont * pTC );
+ virtual void WriteRcCtor( FILE * fOutput, RscTypCont * pTC );
};
#endif //_RSCTOP_HXX
diff --git a/rsc/inc/rsctree.hxx b/rsc/inc/rsctree.hxx
index 0ab86dda7fca..43709fca339a 100644
--- a/rsc/inc/rsctree.hxx
+++ b/rsc/inc/rsctree.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,51 +35,51 @@
class BiNode
{
protected:
- BiNode* pLeft; // left subtree
- BiNode* pRight; // right subtree
+ BiNode* pLeft; // left subtree
+ BiNode* pRight; // right subtree
public:
// Wandelt eine doppelt verkettete Liste in
// einen binaeren Baum um
- BiNode * ChangeDLListBTree( BiNode * pList );
+ BiNode * ChangeDLListBTree( BiNode * pList );
BiNode();
- virtual ~BiNode();
+ virtual ~BiNode();
// Wandelt einen binaeren Baum in eine doppelt
// verkettete Liste um
BiNode* ChangeBTreeDLList();
- BiNode * Left() const { return pLeft ; };
- BiNode * Right() const{ return pRight ; };
- void EnumNodes( Link aLink ) const;
+ BiNode * Left() const { return pLeft ; };
+ BiNode * Right() const{ return pRight ; };
+ void EnumNodes( Link aLink ) const;
};
/*************************************************************************/
class NameNode : public BiNode
{
- void SubOrderTree( NameNode * pOrderNode );
+ void SubOrderTree( NameNode * pOrderNode );
protected:
// pCmp ist Zeiger auf Namen
- NameNode* Search( const void * pCmp ) const;
+ NameNode* Search( const void * pCmp ) const;
public:
- NameNode* Left() const { return (NameNode *)pLeft ; };
- NameNode* Right() const{ return (NameNode *)pRight ; };
- NameNode* Search( const NameNode * pName ) const;
+ NameNode* Left() const { return (NameNode *)pLeft ; };
+ NameNode* Right() const{ return (NameNode *)pRight ; };
+ NameNode* Search( const NameNode * pName ) const;
// insert a new node in the b-tree
- BOOL Insert( NameNode * pTN, sal_uInt32 * nDepth );
- BOOL Insert( NameNode* pTN );
- virtual COMPARE Compare( const NameNode * ) const;
- virtual COMPARE Compare( const void * ) const;
- NameNode* SearchParent( const NameNode * ) const;
+ BOOL Insert( NameNode * pTN, sal_uInt32 * nDepth );
+ BOOL Insert( NameNode* pTN );
+ virtual COMPARE Compare( const NameNode * ) const;
+ virtual COMPARE Compare( const void * ) const;
+ NameNode* SearchParent( const NameNode * ) const;
// return ist neue Root
- NameNode* Remove( NameNode * );
- void OrderTree();
- BOOL IsOrderTree() const;
+ NameNode* Remove( NameNode * );
+ void OrderTree();
+ BOOL IsOrderTree() const;
};
@@ -93,8 +93,8 @@ protected:
public:
- IdNode* Search( sal_uInt32 nTypName ) const;
- virtual sal_uInt32 GetId() const;
+ IdNode* Search( sal_uInt32 nTypName ) const;
+ virtual sal_uInt32 GetId() const;
};
/*************************************************************************/
@@ -106,14 +106,14 @@ class StringNode : public NameNode
protected:
using NameNode::Search;
- ByteString aName;
+ ByteString aName;
public:
StringNode(){};
StringNode( const ByteString & rStr ) { aName = rStr; }
- StringNode* Search( const char * ) const;
- ByteString GetName() const { return aName; }
+ StringNode* Search( const char * ) const;
+ ByteString GetName() const { return aName; }
};
#endif // _RSCTREE_HXX
diff --git a/rsc/inc/vclrsc.hxx b/rsc/inc/vclrsc.hxx
index d529a70c6d64..61bf01c39678 100644
--- a/rsc/inc/vclrsc.hxx
+++ b/rsc/inc/vclrsc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,137 +40,137 @@
typedef sal_Int64 WinBits;
// Window-Bits fuer Window
-#define WB_CLIPCHILDREN ((WinBits)0x00000001)
-#define WB_DIALOGCONTROL ((WinBits)0x00000002)
-#define WB_NODIALOGCONTROL ((WinBits)0x00000004)
-#define WB_BORDER ((WinBits)0x00000008)
-#define WB_NOBORDER ((WinBits)0x00000010)
-#define WB_SIZEABLE ((WinBits)0x00000020)
-#define WB_3DLOOK ((WinBits)0x00000040)
-#define WB_AUTOSIZE ((WinBits)0x00000080)
+#define WB_CLIPCHILDREN ((WinBits)0x00000001)
+#define WB_DIALOGCONTROL ((WinBits)0x00000002)
+#define WB_NODIALOGCONTROL ((WinBits)0x00000004)
+#define WB_BORDER ((WinBits)0x00000008)
+#define WB_NOBORDER ((WinBits)0x00000010)
+#define WB_SIZEABLE ((WinBits)0x00000020)
+#define WB_3DLOOK ((WinBits)0x00000040)
+#define WB_AUTOSIZE ((WinBits)0x00000080)
// Window-Bits fuer SystemWindows
-#define WB_MOVEABLE ((WinBits)0x00000100)
-#define WB_ROLLABLE ((WinBits)0x00000200)
-#define WB_CLOSEABLE ((WinBits)0x00000400)
-#define WB_STANDALONE ((WinBits)0x00000800)
-#define WB_APP ((WinBits)0x00001000)
-#define WB_PINABLE ((WinBits)0x00002000)
-#define WB_SYSTEMWINDOW ((WinBits)0x40000000)
-#define WB_SIZEMOVE (WB_SIZEABLE | WB_MOVEABLE)
+#define WB_MOVEABLE ((WinBits)0x00000100)
+#define WB_ROLLABLE ((WinBits)0x00000200)
+#define WB_CLOSEABLE ((WinBits)0x00000400)
+#define WB_STANDALONE ((WinBits)0x00000800)
+#define WB_APP ((WinBits)0x00001000)
+#define WB_PINABLE ((WinBits)0x00002000)
+#define WB_SYSTEMWINDOW ((WinBits)0x40000000)
+#define WB_SIZEMOVE (WB_SIZEABLE | WB_MOVEABLE)
// Standard-Window-Bits fuer ChildWindows
-#define WB_TABSTOP ((WinBits)0x00000100)
-#define WB_NOTABSTOP ((WinBits)0x00000200)
-#define WB_GROUP ((WinBits)0x00000400)
-#define WB_NOGROUP ((WinBits)0x00000800)
-#define WB_HORZ ((WinBits)0x00001000)
-#define WB_VERT ((WinBits)0x00002000)
-#define WB_LEFT ((WinBits)0x00004000)
-#define WB_CENTER ((WinBits)0x00008000)
-#define WB_RIGHT ((WinBits)0x00010000)
-#define WB_TOP ((WinBits)0x00020000)
-#define WB_VCENTER ((WinBits)0x00040000)
-#define WB_BOTTOM ((WinBits)0x00080000)
-#define WB_DRAG ((WinBits)0x00100000)
-#define WB_SPIN ((WinBits)0x00200000)
-#define WB_REPEAT ((WinBits)0x00400000)
-#define WB_NOPOINTERFOCUS ((WinBits)0x00800000)
-#define WB_WORDBREAK ((WinBits)0x01000000)
-#define WB_NOLABEL ((WinBits)0x02000000)
-#define WB_SORT ((WinBits)0x04000000)
-#define WB_DROPDOWN ((WinBits)0x08000000)
-#define WB_AUTOHSCROLL ((WinBits)0x10000000)
-#define WB_DOCKABLE ((WinBits)0x20000000)
+#define WB_TABSTOP ((WinBits)0x00000100)
+#define WB_NOTABSTOP ((WinBits)0x00000200)
+#define WB_GROUP ((WinBits)0x00000400)
+#define WB_NOGROUP ((WinBits)0x00000800)
+#define WB_HORZ ((WinBits)0x00001000)
+#define WB_VERT ((WinBits)0x00002000)
+#define WB_LEFT ((WinBits)0x00004000)
+#define WB_CENTER ((WinBits)0x00008000)
+#define WB_RIGHT ((WinBits)0x00010000)
+#define WB_TOP ((WinBits)0x00020000)
+#define WB_VCENTER ((WinBits)0x00040000)
+#define WB_BOTTOM ((WinBits)0x00080000)
+#define WB_DRAG ((WinBits)0x00100000)
+#define WB_SPIN ((WinBits)0x00200000)
+#define WB_REPEAT ((WinBits)0x00400000)
+#define WB_NOPOINTERFOCUS ((WinBits)0x00800000)
+#define WB_WORDBREAK ((WinBits)0x01000000)
+#define WB_NOLABEL ((WinBits)0x02000000)
+#define WB_SORT ((WinBits)0x04000000)
+#define WB_DROPDOWN ((WinBits)0x08000000)
+#define WB_AUTOHSCROLL ((WinBits)0x10000000)
+#define WB_DOCKABLE ((WinBits)0x20000000)
#define WB_AUTOVSCROLL ((WinBits)0x40000000)
-#define WB_HIDE ((WinBits)0x80000000)
+#define WB_HIDE ((WinBits)0x80000000)
// system floating window
#define WB_POPUP ((WinBits)0x20000000)
-#define WB_HSCROLL WB_HORZ
-#define WB_VSCROLL WB_VERT
-#define WB_TOPIMAGE WB_TOP
+#define WB_HSCROLL WB_HORZ
+#define WB_VSCROLL WB_VERT
+#define WB_TOPIMAGE WB_TOP
// Window-Bits for PushButtons
-#define WB_DEFBUTTON ((WinBits)0x10000000)
-#define WB_NOLIGHTBORDER ((WinBits)0x20000000)
-#define WB_RECTSTYLE ((WinBits)0x08000000)
-#define WB_SMALLSTYLE ((WinBits)0x04000000)
+#define WB_DEFBUTTON ((WinBits)0x10000000)
+#define WB_NOLIGHTBORDER ((WinBits)0x20000000)
+#define WB_RECTSTYLE ((WinBits)0x08000000)
+#define WB_SMALLSTYLE ((WinBits)0x04000000)
// Window-Bits for FixedText
-#define WB_INFO ((WinBits)0x20000000)
-#define WB_PATHELLIPSIS ((WinBits)0x00100000)
+#define WB_INFO ((WinBits)0x20000000)
+#define WB_PATHELLIPSIS ((WinBits)0x00100000)
// Window-Bits for Edit
-#define WB_PASSWORD ((WinBits)0x01000000)
-#define WB_READONLY ((WinBits)0x02000000)
-#define WB_NOHIDESELECTION ((WinBits)SAL_CONST_INT64(0x1000000000))
+#define WB_PASSWORD ((WinBits)0x01000000)
+#define WB_READONLY ((WinBits)0x02000000)
+#define WB_NOHIDESELECTION ((WinBits)SAL_CONST_INT64(0x1000000000))
// Window-Bits for MultiLineEdit
-#define WB_IGNORETAB ((WinBits)0x20000000)
+#define WB_IGNORETAB ((WinBits)0x20000000)
// Window-Bits for ListBox and MultiListBox
-#define WB_SIMPLEMODE ((WinBits)0x20000000)
+#define WB_SIMPLEMODE ((WinBits)0x20000000)
// Window-Bits for FixedBitmap
-#define WB_FAST ((WinBits)0x04000000)
-#define WB_SCALE ((WinBits)0x08000000)
-#define WB_TOPLEFTVISIBLE ((WinBits)0x10000000)
+#define WB_FAST ((WinBits)0x04000000)
+#define WB_SCALE ((WinBits)0x08000000)
+#define WB_TOPLEFTVISIBLE ((WinBits)0x10000000)
// Window-Bits for ToolBox
-#define WB_LINESPACING ((WinBits)0x01000000)
-#define WB_SCROLL ((WinBits)0x02000000)
+#define WB_LINESPACING ((WinBits)0x01000000)
+#define WB_SCROLL ((WinBits)0x02000000)
// Window-Bits for TabControl
-#define WB_SINGLELINE ((WinBits)0x02000000)
+#define WB_SINGLELINE ((WinBits)0x02000000)
// Window-Bits for DockingWindows
-#define WB_DOCKBORDER ((WinBits)0x00001000)
+#define WB_DOCKBORDER ((WinBits)0x00001000)
// Window-Bits for SplitWindow
-#define WB_NOSPLITDRAW ((WinBits)0x01000000)
-#define WB_FLATSPLITDRAW ((WinBits)0x02000000)
+#define WB_NOSPLITDRAW ((WinBits)0x01000000)
+#define WB_FLATSPLITDRAW ((WinBits)0x02000000)
// Window-Bits for MessageBoxen
-#define WB_OK ((WinBits)0x00100000)
-#define WB_OK_CANCEL ((WinBits)0x00200000)
-#define WB_YES_NO ((WinBits)0x00400000)
-#define WB_YES_NO_CANCEL ((WinBits)0x00800000)
-#define WB_RETRY_CANCEL ((WinBits)0x01000000)
-#define WB_DEF_OK ((WinBits)0x02000000)
-#define WB_DEF_CANCEL ((WinBits)0x04000000)
-#define WB_DEF_RETRY ((WinBits)0x08000000)
-#define WB_DEF_YES ((WinBits)0x10000000)
-#define WB_DEF_NO ((WinBits)0x20000000)
+#define WB_OK ((WinBits)0x00100000)
+#define WB_OK_CANCEL ((WinBits)0x00200000)
+#define WB_YES_NO ((WinBits)0x00400000)
+#define WB_YES_NO_CANCEL ((WinBits)0x00800000)
+#define WB_RETRY_CANCEL ((WinBits)0x01000000)
+#define WB_DEF_OK ((WinBits)0x02000000)
+#define WB_DEF_CANCEL ((WinBits)0x04000000)
+#define WB_DEF_RETRY ((WinBits)0x08000000)
+#define WB_DEF_YES ((WinBits)0x10000000)
+#define WB_DEF_NO ((WinBits)0x20000000)
#define WB_ABORT_RETRY_IGNORE ((WinBits)SAL_CONST_INT64(0x1000000000))
#define WB_DEF_IGNORE ((WinBits)SAL_CONST_INT64(0x2000000000))
// Standard-WinBits
-#define WB_STDWORK (WB_SIZEMOVE | WB_CLOSEABLE)
-#define WB_STDMDI (WB_CLOSEABLE)
-#define WB_STDDOCKWIN (WB_DOCKABLE | WB_MOVEABLE | WB_CLOSEABLE)
-#define WB_STDFLOATWIN (WB_SIZEMOVE | WB_CLOSEABLE | WB_ROLLABLE)
-#define WB_STDDIALOG (WB_MOVEABLE | WB_CLOSEABLE)
-#define WB_STDMODELESS (WB_STDDIALOG)
-#define WB_STDMODAL (WB_STDDIALOG)
-#define WB_STDTABDIALOG (WB_STDDIALOG)
-#define WB_STDTABCONTROL 0
-#define WB_STDPOPUP (WB_BORDER | WB_POPUP | WB_SYSTEMWINDOW | WB_3DLOOK | WB_DIALOGCONTROL)
+#define WB_STDWORK (WB_SIZEMOVE | WB_CLOSEABLE)
+#define WB_STDMDI (WB_CLOSEABLE)
+#define WB_STDDOCKWIN (WB_DOCKABLE | WB_MOVEABLE | WB_CLOSEABLE)
+#define WB_STDFLOATWIN (WB_SIZEMOVE | WB_CLOSEABLE | WB_ROLLABLE)
+#define WB_STDDIALOG (WB_MOVEABLE | WB_CLOSEABLE)
+#define WB_STDMODELESS (WB_STDDIALOG)
+#define WB_STDMODAL (WB_STDDIALOG)
+#define WB_STDTABDIALOG (WB_STDDIALOG)
+#define WB_STDTABCONTROL 0
+#define WB_STDPOPUP (WB_BORDER | WB_POPUP | WB_SYSTEMWINDOW | WB_3DLOOK | WB_DIALOGCONTROL)
// For TreeListBox
-#define WB_HASBUTTONS ((WinBits)0x00800000)
-#define WB_HASLINES ((WinBits)0x01000000)
-#define WB_HASLINESATROOT ((WinBits)0x02000000)
+#define WB_HASBUTTONS ((WinBits)0x00800000)
+#define WB_HASLINES ((WinBits)0x01000000)
+#define WB_HASLINESATROOT ((WinBits)0x02000000)
// --------------
// - Help-Types -
// --------------
// from vcl/inc/help.hxx
-#define OOO_HELP_INDEX ((ULONG)0xFFFFFFFF)
-#define OOO_HELP_HELPONHELP ((ULONG)0xFFFFFFFE)
+#define OOO_HELP_INDEX ((ULONG)0xFFFFFFFF)
+#define OOO_HELP_HELPONHELP ((ULONG)0xFFFFFFFE)
// --------------
// - FieldTypes -
@@ -197,15 +197,15 @@ enum TimeFieldFormat {TIMEF_NONE, TIMEF_SEC, TIMEF_100TH_SEC, TIMEF_SEC_CS, Time
#include <com/sun/star/awt/Key.hpp>
#include <com/sun/star/awt/KeyGroup.hpp>
-#define KEY_CODE ((sal_uInt16)0x0FFF)
+#define KEY_CODE ((sal_uInt16)0x0FFF)
// Modifier-Tasten
-#define KEY_SHIFT ((sal_uInt16)0x1000)
-#define KEY_MOD1 ((sal_uInt16)0x2000)
-#define KEY_MOD2 ((sal_uInt16)0x4000)
-#define KEY_MOD3 ((sal_uInt16)0x8000)
-#define KEY_MODTYPE ((sal_uInt16)0xF000)
-#define KEY_ALLMODTYPE ((sal_uInt16)0xF000)
+#define KEY_SHIFT ((sal_uInt16)0x1000)
+#define KEY_MOD1 ((sal_uInt16)0x2000)
+#define KEY_MOD2 ((sal_uInt16)0x4000)
+#define KEY_MOD3 ((sal_uInt16)0x8000)
+#define KEY_MODTYPE ((sal_uInt16)0xF000)
+#define KEY_ALLMODTYPE ((sal_uInt16)0xF000)
// from vcl/inc/vclenum.hxx
@@ -248,13 +248,13 @@ enum MapUnit { MAP_100TH_MM, MAP_10TH_MM, MAP_MM, MAP_CM,
// from vcl/inc/toolbox.hxx
typedef sal_uInt16 ToolBoxItemBits;
-#define TIB_CHECKABLE ((ToolBoxItemBits)0x0001)
-#define TIB_RADIOCHECK ((ToolBoxItemBits)0x0002)
-#define TIB_AUTOCHECK ((ToolBoxItemBits)0x0004)
-#define TIB_LEFT ((ToolBoxItemBits)0x0008)
-#define TIB_AUTOSIZE ((ToolBoxItemBits)0x0010)
-#define TIB_DROPDOWN ((ToolBoxItemBits)0x0020)
-#define TIB_REPEAT ((ToolBoxItemBits)0x0040)
+#define TIB_CHECKABLE ((ToolBoxItemBits)0x0001)
+#define TIB_RADIOCHECK ((ToolBoxItemBits)0x0002)
+#define TIB_AUTOCHECK ((ToolBoxItemBits)0x0004)
+#define TIB_LEFT ((ToolBoxItemBits)0x0008)
+#define TIB_AUTOSIZE ((ToolBoxItemBits)0x0010)
+#define TIB_DROPDOWN ((ToolBoxItemBits)0x0020)
+#define TIB_REPEAT ((ToolBoxItemBits)0x0040)
enum ButtonType { BUTTON_SYMBOL, BUTTON_TEXT, BUTTON_SYMBOLTEXT };
@@ -294,12 +294,12 @@ enum MenuItemType { MENUITEM_DONTKNOW, MENUITEM_STRING, MENUITEM_IMAGE,
typedef sal_uInt16 MenuItemBits;
-#define MIB_CHECKABLE ((MenuItemBits)0x0001)
-#define MIB_RADIOCHECK ((MenuItemBits)0x0002)
-#define MIB_AUTOCHECK ((MenuItemBits)0x0004)
-#define MIB_ABOUT ((MenuItemBits)0x0008)
-#define MIB_HELP ((MenuItemBits)0x0010)
-#define MIB_POPUPSELECT ((MenuItemBits)0x0020)
+#define MIB_CHECKABLE ((MenuItemBits)0x0001)
+#define MIB_RADIOCHECK ((MenuItemBits)0x0002)
+#define MIB_AUTOCHECK ((MenuItemBits)0x0004)
+#define MIB_ABOUT ((MenuItemBits)0x0008)
+#define MIB_HELP ((MenuItemBits)0x0010)
+#define MIB_POPUPSELECT ((MenuItemBits)0x0020)
// ----------------
// - Symbol-Types -
@@ -307,46 +307,46 @@ typedef sal_uInt16 MenuItemBits;
// from vcl/inc/symbol.hxx
typedef sal_uInt16 SymbolType;
-#define SYMBOL_DONTKNOW ((SymbolType)0)
-#define SYMBOL_IMAGE ((SymbolType)1)
-#define SYMBOL_ARROW_UP ((SymbolType)2)
-#define SYMBOL_ARROW_DOWN ((SymbolType)3)
-#define SYMBOL_ARROW_LEFT ((SymbolType)4)
-#define SYMBOL_ARROW_RIGHT ((SymbolType)5)
-#define SYMBOL_SPIN_UP ((SymbolType)6)
-#define SYMBOL_SPIN_DOWN ((SymbolType)7)
-#define SYMBOL_SPIN_LEFT ((SymbolType)8)
-#define SYMBOL_SPIN_RIGHT ((SymbolType)9)
-#define SYMBOL_FIRST ((SymbolType)10)
-#define SYMBOL_LAST ((SymbolType)11)
-#define SYMBOL_PREV ((SymbolType)12)
-#define SYMBOL_NEXT ((SymbolType)13)
-#define SYMBOL_PAGEUP ((SymbolType)14)
-#define SYMBOL_PAGEDOWN ((SymbolType)15)
-#define SYMBOL_PLAY ((SymbolType)16)
-#define SYMBOL_REVERSEPLAY ((SymbolType)17)
-#define SYMBOL_RECORD ((SymbolType)18)
-#define SYMBOL_STOP ((SymbolType)19)
-#define SYMBOL_PAUSE ((SymbolType)20)
-#define SYMBOL_WINDSTART ((SymbolType)21)
-#define SYMBOL_WINDEND ((SymbolType)22)
-#define SYMBOL_WINDBACKWARD ((SymbolType)23)
-#define SYMBOL_WINDFORWARD ((SymbolType)24)
-#define SYMBOL_CLOSE ((SymbolType)25)
-#define SYMBOL_ROLLUP ((SymbolType)26)
-#define SYMBOL_ROLLDOWN ((SymbolType)27)
-#define SYMBOL_CHECKMARK ((SymbolType)28)
-#define SYMBOL_RADIOCHECKMARK ((SymbolType)29)
-#define SYMBOL_SPIN_UPDOWN ((SymbolType)30)
-#define SYMBOL_FLOAT ((SymbolType)31)
-#define SYMBOL_DOCK ((SymbolType)32)
-#define SYMBOL_HIDE ((SymbolType)33)
-#define SYMBOL_HELP ((SymbolType)34)
-#define SYMBOL_OS2CLOSE ((SymbolType)35)
-#define SYMBOL_OS2FLOAT ((SymbolType)36)
-#define SYMBOL_OS2HIDE ((SymbolType)37)
-
-#define SYMBOL_NOSYMBOL (SYMBOL_DONTKNOW)
+#define SYMBOL_DONTKNOW ((SymbolType)0)
+#define SYMBOL_IMAGE ((SymbolType)1)
+#define SYMBOL_ARROW_UP ((SymbolType)2)
+#define SYMBOL_ARROW_DOWN ((SymbolType)3)
+#define SYMBOL_ARROW_LEFT ((SymbolType)4)
+#define SYMBOL_ARROW_RIGHT ((SymbolType)5)
+#define SYMBOL_SPIN_UP ((SymbolType)6)
+#define SYMBOL_SPIN_DOWN ((SymbolType)7)
+#define SYMBOL_SPIN_LEFT ((SymbolType)8)
+#define SYMBOL_SPIN_RIGHT ((SymbolType)9)
+#define SYMBOL_FIRST ((SymbolType)10)
+#define SYMBOL_LAST ((SymbolType)11)
+#define SYMBOL_PREV ((SymbolType)12)
+#define SYMBOL_NEXT ((SymbolType)13)
+#define SYMBOL_PAGEUP ((SymbolType)14)
+#define SYMBOL_PAGEDOWN ((SymbolType)15)
+#define SYMBOL_PLAY ((SymbolType)16)
+#define SYMBOL_REVERSEPLAY ((SymbolType)17)
+#define SYMBOL_RECORD ((SymbolType)18)
+#define SYMBOL_STOP ((SymbolType)19)
+#define SYMBOL_PAUSE ((SymbolType)20)
+#define SYMBOL_WINDSTART ((SymbolType)21)
+#define SYMBOL_WINDEND ((SymbolType)22)
+#define SYMBOL_WINDBACKWARD ((SymbolType)23)
+#define SYMBOL_WINDFORWARD ((SymbolType)24)
+#define SYMBOL_CLOSE ((SymbolType)25)
+#define SYMBOL_ROLLUP ((SymbolType)26)
+#define SYMBOL_ROLLDOWN ((SymbolType)27)
+#define SYMBOL_CHECKMARK ((SymbolType)28)
+#define SYMBOL_RADIOCHECKMARK ((SymbolType)29)
+#define SYMBOL_SPIN_UPDOWN ((SymbolType)30)
+#define SYMBOL_FLOAT ((SymbolType)31)
+#define SYMBOL_DOCK ((SymbolType)32)
+#define SYMBOL_HIDE ((SymbolType)33)
+#define SYMBOL_HELP ((SymbolType)34)
+#define SYMBOL_OS2CLOSE ((SymbolType)35)
+#define SYMBOL_OS2FLOAT ((SymbolType)36)
+#define SYMBOL_OS2HIDE ((SymbolType)37)
+
+#define SYMBOL_NOSYMBOL (SYMBOL_DONTKNOW)
#endif
diff --git a/rsc/source/misc/rscdbl.cxx b/rsc/source/misc/rscdbl.cxx
index 3029b734e646..38abd37ea515 100644
--- a/rsc/source/misc/rscdbl.cxx
+++ b/rsc/source/misc/rscdbl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,18 +39,18 @@
/*************************************************************************
|*
-|* RscTypCont::FillNameIdList()
+|* RscTypCont::FillNameIdList()
|*
-|* Beschreibung
-|* Ersterstellung MM 07.05.91
-|* Letzte Aenderung MM 30.05.91
+|* Beschreibung
+|* Ersterstellung MM 07.05.91
+|* Letzte Aenderung MM 30.05.91
|*
*************************************************************************/
REResourceList * InsertList( Atom nClassName, const RscId& rId,
REResourceList * pList ){
- REResourceList * pSubList;
- const char * pStrClass;
- ByteString aStrClass;
+ REResourceList * pSubList;
+ const char * pStrClass;
+ ByteString aStrClass;
pStrClass = pHS->getString( nClassName ).getStr();
if( pStrClass )
@@ -66,10 +66,10 @@ REResourceList * InsertList( Atom nClassName, const RscId& rId,
void FillSubList( RSCINST & rInst, REResourceList * pList )
{
- sal_uInt32 nCount, i;
- SUBINFO_STRUCT aInfo;
+ sal_uInt32 nCount, i;
+ SUBINFO_STRUCT aInfo;
REResourceList* pSubList;
- RSCINST aTmpI;
+ RSCINST aTmpI;
nCount = rInst.pClass->GetCount( rInst );
for( i = 0; i < nCount; i++ ){
@@ -86,7 +86,7 @@ void FillListObj( ObjNode * pObjNode, RscTop * pRscTop,
{
if( pObjNode ){
if( pObjNode->GetFileKey() == lFileKey ){
- RSCINST aTmpI;
+ RSCINST aTmpI;
REResourceList* pSubList;
FillListObj( (ObjNode*)pObjNode->Left(), pRscTop,
diff --git a/rsc/source/misc/rsclst.cxx b/rsc/source/misc/rsclst.cxx
index 422ed80c489f..39006d22fa63 100644
--- a/rsc/source/misc/rsclst.cxx
+++ b/rsc/source/misc/rsclst.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ REResourceList :: REResourceList( REResourceList* pParentList,
{
pParent = pParentList;
aClassName = rClassName;
- aRscId = rResourceID;
+ aRscId = rResourceID;
bVisible = bVis;
}
diff --git a/rsc/source/parser/erscerr.cxx b/rsc/source/parser/erscerr.cxx
index bea83c62113a..5628e2091620 100644
--- a/rsc/source/parser/erscerr.cxx
+++ b/rsc/source/parser/erscerr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,11 +42,11 @@
/*************************************************************************
|*
-|* ERRTYPE::operator = ;
+|* ERRTYPE::operator = ;
|*
-|* Beschreibung
-|* Ersterstellung MM 25.09.91
-|* Letzte Aenderung MM 25.09.91
+|* Beschreibung
+|* Ersterstellung MM 25.09.91
+|* Letzte Aenderung MM 25.09.91
|*
*************************************************************************/
ERRTYPE& ERRTYPE::operator = ( const ERRTYPE & rError )
@@ -60,11 +60,11 @@ ERRTYPE& ERRTYPE::operator = ( const ERRTYPE & rError )
/*************************************************************************
|*
-|* RscError::StdOut();
+|* RscError::StdOut();
|*
-|* Beschreibung
-|* Ersterstellung MM 06.05.91
-|* Letzte Aenderung MM 06.05.91
+|* Beschreibung
+|* Ersterstellung MM 06.05.91
+|* Letzte Aenderung MM 06.05.91
|*
*************************************************************************/
void RscError::StdOut( const char * pStr, const RscVerbosity _verbosityLevel )
@@ -80,11 +80,11 @@ void RscError::StdOut( const char * pStr, const RscVerbosity _verbosityLevel )
/*************************************************************************
|*
-|* RscError::StdErr();
+|* RscError::StdErr();
|*
-|* Beschreibung
-|* Ersterstellung PL 11/07/2001
-|* Letzte Aenderung PL 11/07/2001
+|* Beschreibung
+|* Ersterstellung PL 11/07/2001
+|* Letzte Aenderung PL 11/07/2001
|*
*************************************************************************/
void RscError::StdErr( const char * pStr )
@@ -97,11 +97,11 @@ void RscError::StdErr( const char * pStr )
/*************************************************************************
|*
-|* RscError::LstOut();
+|* RscError::LstOut();
|*
-|* Beschreibung
-|* Ersterstellung MM 06.05.91
-|* Letzte Aenderung MM 06.05.91
+|* Beschreibung
+|* Ersterstellung MM 06.05.91
+|* Letzte Aenderung MM 06.05.91
|*
*************************************************************************/
void RscError::LstOut( const char * pStr ){
@@ -111,11 +111,11 @@ void RscError::LstOut( const char * pStr ){
/*************************************************************************
|*
-|* RscError::StdLstOut();
+|* RscError::StdLstOut();
|*
-|* Beschreibung
-|* Ersterstellung MM 06.05.91
-|* Letzte Aenderung MM 06.05.91
+|* Beschreibung
+|* Ersterstellung MM 06.05.91
+|* Letzte Aenderung MM 06.05.91
|*
*************************************************************************/
void RscError::StdLstOut( const char * pStr ){
@@ -125,11 +125,11 @@ void RscError::StdLstOut( const char * pStr ){
/*************************************************************************
|*
-|* RscError::StdLstErr();
+|* RscError::StdLstErr();
|*
-|* Beschreibung
-|* Ersterstellung PL 11/07/2001
-|* Letzte Aenderung PL 11/07/2001
+|* Beschreibung
+|* Ersterstellung PL 11/07/2001
+|* Letzte Aenderung PL 11/07/2001
|*
*************************************************************************/
void RscError::StdLstErr( const char * pStr ){
@@ -139,11 +139,11 @@ void RscError::StdLstErr( const char * pStr ){
/*************************************************************************
|*
-|* RscError::WriteError();
+|* RscError::WriteError();
|*
-|* Beschreibung
-|* Ersterstellung MM 06.05.91
-|* Letzte Aenderung MM 06.05.91
+|* Beschreibung
+|* Ersterstellung MM 06.05.91
+|* Letzte Aenderung MM 06.05.91
|*
*************************************************************************/
void RscError::WriteError( const ERRTYPE& rError, const char * pMessage )
@@ -203,7 +203,7 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage )
case ERR_USAGE:
StdLstOut( "Copyright (C) 2000, 2010 Oracle and/or its affiliates.\n" );
{
- char buf[40];
+ char buf[40];
StdLstOut( "DataVersion: " );
sprintf( buf, "%d.%d\n\n",
@@ -408,11 +408,11 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage )
/*************************************************************************
|*
-|* RscErrorFormat()
+|* RscErrorFormat()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.05.91
-|* Letzte Aenderung MM 06.05.91
+|* Beschreibung
+|* Ersterstellung MM 06.05.91
+|* Letzte Aenderung MM 06.05.91
|*
*************************************************************************/
void RscError::ErrorFormat( const ERRTYPE& rError, RscTop * pClass,
@@ -470,11 +470,11 @@ void RscError::ErrorFormat( const ERRTYPE& rError, RscTop * pClass,
/*************************************************************************
|*
-|* RscError::Error()
+|* RscError::Error()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.05.91
-|* Letzte Aenderung MM 06.05.91
+|* Beschreibung
+|* Ersterstellung MM 06.05.91
+|* Letzte Aenderung MM 06.05.91
|*
*************************************************************************/
void RscError::Error( const ERRTYPE& rError, RscTop * pClass,
@@ -493,11 +493,11 @@ void RscError::Error( const ERRTYPE& rError, RscTop * pClass,
/*************************************************************************
|*
-|* RscError::FatalError();
+|* RscError::FatalError();
|*
-|* Beschreibung
-|* Ersterstellung MM 06.05.91
-|* Letzte Aenderung MM 06.05.91
+|* Beschreibung
+|* Ersterstellung MM 06.05.91
+|* Letzte Aenderung MM 06.05.91
|*
*************************************************************************/
void RscError::FatalError( const ERRTYPE& rError, const RscId &aId,
diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx
index 326120c3d085..263a409e750d 100644
--- a/rsc/source/parser/rscdb.cxx
+++ b/rsc/source/parser/rscdb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_rsc.hxx"
/****************** I N C L U D E S **************************************/
// C and C++ Includes.
-#include <ctype.h> // isdigit(), isalpha()
+#include <ctype.h> // isdigit(), isalpha()
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -52,11 +52,11 @@ using namespace rtl;
/*************************************************************************
|*
-|* RscTypCont :: RscTypCont
+|* RscTypCont :: RscTypCont
|*
-|* Beschreibung RES.DOC
-|* Ersterstellung MM 22.03.90
-|* Letzte Aenderung MM 27.06.90
+|* Beschreibung RES.DOC
+|* Ersterstellung MM 22.03.90
+|* Letzte Aenderung MM 27.06.90
|*
*************************************************************************/
RscTypCont :: RscTypCont( RscError * pErrHdl,
@@ -145,7 +145,7 @@ ByteString RscTypCont::ChangeLanguage( const ByteString& rNewLang )
aCountry = aLang.getToken( 0, '-', nIndex );
if( nIndex != -1 )
aVariant = aLang.copy( nIndex );
-
+
bool bAppendEnUsFallback =
! (rNewLang.EqualsIgnoreCaseAscii( "en-US" ) ||
rNewLang.EqualsIgnoreCaseAscii( "x-no-translate" ) );
@@ -159,7 +159,7 @@ ByteString RscTypCont::ChangeLanguage( const ByteString& rNewLang )
{
aLangFallbacks.push_back(getLangIdAndShortenLocale( this, aLg, aCountry, aVariant ) );
} while( aLg.getLength() );
-
+
if( bAppendEnUsFallback )
{
aLg = "en";
@@ -183,11 +183,11 @@ Atom RscTypCont::AddLanguage( const char* pLang )
/*************************************************************************
|*
-|* RscTypCont :: ~RscTypCont
+|* RscTypCont :: ~RscTypCont
|*
-|* Beschreibung RES.DOC
-|* Ersterstellung MM 22.03.90
-|* Letzte Aenderung MM 27.06.90
+|* Beschreibung RES.DOC
+|* Ersterstellung MM 22.03.90
+|* Letzte Aenderung MM 27.06.90
|*
*************************************************************************/
void DestroyNode( RscTop * pRscTop, ObjNode * pObjNode ){
@@ -232,7 +232,7 @@ void Pre_dtorTree( RscTop * pRscTop ){
}
RscTypCont :: ~RscTypCont(){
- RscTop * pRscTmp;
+ RscTop * pRscTmp;
RscSysEntry * pSysEntry;
// Alle Unterbaeume loeschen
@@ -283,7 +283,7 @@ void RscTypCont::ClearSysNames()
//=======================================================================
RscTop * RscTypCont::SearchType( Atom nId )
-/* [Beschreibung]
+/* [Beschreibung]
Sucht eine Basistyp nId;
*/
@@ -291,9 +291,9 @@ RscTop * RscTypCont::SearchType( Atom nId )
if( nId == InvalidAtom )
return NULL;
-#define ELSE_IF( a ) \
- else if( a.GetId() == nId ) \
- return &a; \
+#define ELSE_IF( a ) \
+ else if( a.GetId() == nId ) \
+ return &a; \
if( aBool.GetId() == nId )
return &aBool;
@@ -329,11 +329,11 @@ RscTop * RscTypCont::SearchType( Atom nId )
/*************************************************************************
|*
-|* RscTypCont :: Search
+|* RscTypCont :: Search
|*
-|* Beschreibung RES.DOC
-|* Ersterstellung MM 22.03.90
-|* Letzte Aenderung MM 27.06.90
+|* Beschreibung RES.DOC
+|* Ersterstellung MM 22.03.90
+|* Letzte Aenderung MM 27.06.90
|*
*************************************************************************/
RscTop * RscTypCont :: Search( Atom nRT ){
@@ -342,7 +342,7 @@ RscTop * RscTypCont :: Search( Atom nRT ){
CLASS_DATA RscTypCont :: Search( Atom nRT, const RscId & rId ){
ObjNode *pObjNode;
- RscTop *pRscTop;
+ RscTop *pRscTop;
if( NULL != (pRscTop = Search( nRT )) ){
if( NULL != (pObjNode = pRscTop->GetObjNode( rId )) ){
@@ -354,16 +354,16 @@ CLASS_DATA RscTypCont :: Search( Atom nRT, const RscId & rId ){
/*************************************************************************
|*
-|* RscTypCont :: Delete()
+|* RscTypCont :: Delete()
|*
-|* Beschreibung
-|* Ersterstellung MM 10.07.91
-|* Letzte Aenderung MM 10.07.91
+|* Beschreibung
+|* Ersterstellung MM 10.07.91
+|* Letzte Aenderung MM 10.07.91
|*
*************************************************************************/
void RscTypCont :: Delete( Atom nRT, const RscId & rId ){
- ObjNode * pObjNode;
- RscTop * pRscTop;
+ ObjNode * pObjNode;
+ RscTop * pRscTop;
if( NULL != (pRscTop = Search( nRT )) ){
if( NULL != (pObjNode = pRscTop->GetObjNode()) ){
@@ -387,18 +387,18 @@ void RscTypCont :: Delete( Atom nRT, const RscId & rId ){
/*************************************************************************
|*
-|* RscTypCont :: PutSysName()
+|* RscTypCont :: PutSysName()
|*
-|* Beschreibung RES.DOC
-|* Ersterstellung MM 22.03.90
-|* Letzte Aenderung MM 27.06.90
+|* Beschreibung RES.DOC
+|* Ersterstellung MM 22.03.90
+|* Letzte Aenderung MM 27.06.90
|*
*************************************************************************/
sal_uInt32 RscTypCont :: PutSysName( sal_uInt32 nRscTyp, char * pFileName,
sal_uInt32 nConst, sal_uInt32 nId, BOOL bFirst )
{
- RscSysEntry * pSysEntry;
- BOOL bId1 = FALSE;
+ RscSysEntry * pSysEntry;
+ BOOL bId1 = FALSE;
pSysEntry = aSysLst.First();
while( pSysEntry )
@@ -435,11 +435,11 @@ sal_uInt32 RscTypCont :: PutSysName( sal_uInt32 nRscTyp, char * pFileName,
/*************************************************************************
|*
-|* RscTypCont :: WriteInc
+|* RscTypCont :: WriteInc
|*
-|* Beschreibung RES.DOC
-|* Ersterstellung MM 21.06.90
-|* Letzte Aenderung MM 21.06.90
+|* Beschreibung RES.DOC
+|* Ersterstellung MM 21.06.90
+|* Letzte Aenderung MM 21.06.90
|*
*************************************************************************/
void RscTypCont :: WriteInc( FILE * fOutput, ULONG lFileKey )
@@ -462,8 +462,8 @@ void RscTypCont :: WriteInc( FILE * fOutput, ULONG lFileKey )
}
else
{
- RscDepend * pDep;
- RscFile * pFile;
+ RscDepend * pDep;
+ RscFile * pFile;
pFName = aFileTab.Get( lFileKey );
if( pFName )
@@ -489,11 +489,11 @@ void RscTypCont :: WriteInc( FILE * fOutput, ULONG lFileKey )
/*************************************************************************
|*
-|* RscTypCont :: Methoden die ueber all Knoten laufen
+|* RscTypCont :: Methoden die ueber all Knoten laufen
|*
-|* Beschreibung RES.DOC
-|* Ersterstellung MM 22.03.90
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung RES.DOC
+|* Ersterstellung MM 22.03.90
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
@@ -501,11 +501,11 @@ class RscEnumerateObj
{
friend class RscEnumerateRef;
private:
- ERRTYPE aError; // Enthaelt den ersten Fehler
+ ERRTYPE aError; // Enthaelt den ersten Fehler
RscTypCont* pTypCont;
- FILE * fOutput; // AusgabeDatei
- ULONG lFileKey; // Welche src-Datei
- RscTop * pClass;
+ FILE * fOutput; // AusgabeDatei
+ ULONG lFileKey; // Welche src-Datei
+ RscTop * pClass;
DECL_LINK( CallBackWriteRc, ObjNode * );
DECL_LINK( CallBackWriteSrc, ObjNode * );
@@ -543,16 +543,16 @@ public:
/*************************************************************************
|*
-|* RscEnumerateObj :: CallBackWriteRc
+|* RscEnumerateObj :: CallBackWriteRc
|*
-|* Beschreibung
-|* Ersterstellung MM 09.12.91
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung
+|* Ersterstellung MM 09.12.91
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
IMPL_LINK( RscEnumerateObj, CallBackWriteRc, ObjNode *, pObjNode )
{
- RscWriteRc aMem( pTypCont->GetByteOrder() );
+ RscWriteRc aMem( pTypCont->GetByteOrder() );
aError = pClass->WriteRcHeader( RSCINST( pClass, pObjNode->GetRscObj() ),
aMem, pTypCont,
@@ -566,11 +566,11 @@ IMPL_LINK( RscEnumerateObj, CallBackWriteRc, ObjNode *, pObjNode )
/*************************************************************************
|*
-|* RscEnumerateObj :: CallBackWriteSrc
+|* RscEnumerateObj :: CallBackWriteSrc
|*
-|* Beschreibung
-|* Ersterstellung MM 09.12.91
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung
+|* Ersterstellung MM 09.12.91
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
IMPL_LINK_INLINE_START( RscEnumerateObj, CallBackWriteSrc, ObjNode *, pObjNode )
@@ -587,11 +587,11 @@ IMPL_LINK_INLINE_END( RscEnumerateObj, CallBackWriteSrc, ObjNode *, pObjNode )
/*************************************************************************
|*
-|* RscEnumerateObj :: CallBackWriteCxx
+|* RscEnumerateObj :: CallBackWriteCxx
|*
-|* Beschreibung
-|* Ersterstellung MM 09.12.91
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung
+|* Ersterstellung MM 09.12.91
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
IMPL_LINK_INLINE_START( RscEnumerateObj, CallBackWriteCxx, ObjNode *, pObjNode )
@@ -606,11 +606,11 @@ IMPL_LINK_INLINE_END( RscEnumerateObj, CallBackWriteCxx, ObjNode *, pObjNode )
/*************************************************************************
|*
-|* RscEnumerateObj :: CallBackWriteHxx
+|* RscEnumerateObj :: CallBackWriteHxx
|*
-|* Beschreibung
-|* Ersterstellung MM 09.12.91
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung
+|* Ersterstellung MM 09.12.91
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
IMPL_LINK_INLINE_START( RscEnumerateObj, CallBackWriteHxx, ObjNode *, pObjNode )
@@ -625,21 +625,21 @@ IMPL_LINK_INLINE_END( RscEnumerateObj, CallBackWriteHxx, ObjNode *, pObjNode )
/*************************************************************************
|*
-|* RscEnumerateObj :: WriteRcFile
+|* RscEnumerateObj :: WriteRcFile
|*
-|* Beschreibung
-|* Ersterstellung MM 09.12.91
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung
+|* Ersterstellung MM 09.12.91
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
void RscEnumerateObj :: WriteRcFile( RscWriteRc & rMem, FILE * fOut ){
// Definition der Struktur, aus denen die Resource aufgebaut ist
/*
struct RSHEADER_TYPE{
- sal_uInt32 nId; // Identifier der Resource
- sal_uInt32 nRT; // Resource Typ
- sal_uInt32 nGlobOff; // Globaler Offset
- sal_uInt32 nLocalOff; // Lokaler Offset
+ sal_uInt32 nId; // Identifier der Resource
+ sal_uInt32 nRT; // Resource Typ
+ sal_uInt32 nGlobOff; // Globaler Offset
+ sal_uInt32 nLocalOff; // Lokaler Offset
} aHeader;
*/
@@ -679,7 +679,7 @@ void RscEnumerateObj :: WriteRcFile( RscWriteRc & rMem, FILE * fOut ){
class RscEnumerateRef
{
private:
- RscTop * pRoot;
+ RscTop * pRoot;
DECL_LINK( CallBackWriteRc, RscTop * );
DECL_LINK( CallBackWriteSrc, RscTop * );
@@ -695,7 +695,7 @@ public:
{
aEnumObj.pTypCont = pTC;
aEnumObj.fOutput = fOutput;
- pRoot = pR;
+ pRoot = pR;
}
ERRTYPE WriteRc()
{
@@ -731,13 +731,13 @@ public:
return aEnumObj.aError;
}
- void WriteSyntax()
+ void WriteSyntax()
{
pRoot->EnumNodes( LINK( this, RscEnumerateRef,
CallBackWriteSyntax ) );
}
- void WriteRcCtor()
+ void WriteRcCtor()
{
pRoot->EnumNodes( LINK( this, RscEnumerateRef,
CallBackWriteRcCtor ) );
@@ -746,11 +746,11 @@ public:
/*************************************************************************
|*
-|* RscRscEnumerateRef :: CallBack...
+|* RscRscEnumerateRef :: CallBack...
|*
-|* Beschreibung
-|* Ersterstellung MM 09.12.91
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung
+|* Ersterstellung MM 09.12.91
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
IMPL_LINK_INLINE_START( RscEnumerateRef, CallBackWriteRc, RscTop *, pRef )
@@ -794,17 +794,17 @@ IMPL_LINK_INLINE_END( RscEnumerateRef, CallBackWriteRcCtor, RscTop *, pRef )
/*************************************************************************
|*
-|* RscTypCont :: WriteRc
+|* RscTypCont :: WriteRc
|*
-|* Beschreibung RES.DOC
-|* Ersterstellung MM 22.03.90
-|* Letzte Aenderung MM 22.07.91
+|* Beschreibung RES.DOC
+|* Ersterstellung MM 22.03.90
+|* Letzte Aenderung MM 22.07.91
|*
*************************************************************************/
ERRTYPE RscTypCont::WriteRc( WriteRcContext& rContext )
{
- ERRTYPE aError;
+ ERRTYPE aError;
RscEnumerateRef aEnumRef( this, pRoot, rContext.fOutput );
aIdTranslator.clear();
@@ -817,23 +817,23 @@ ERRTYPE RscTypCont::WriteRc( WriteRcContext& rContext )
RscWriteRc aMem( nByteOrder );
aVersion.pClass->WriteRcHeader( aVersion, aMem, this, RscId( RSCVERSION_ID ), 0, TRUE );
aEnumRef.aEnumObj.WriteRcFile( aMem, rContext.fOutput );
-
+
return aError;
}
/*************************************************************************
|*
-|* RscTypCont :: WriteSrc
+|* RscTypCont :: WriteSrc
|*
-|* Beschreibung RES.DOC
-|* Ersterstellung MM 22.03.90
-|* Letzte Aenderung MM 27.06.90
+|* Beschreibung RES.DOC
+|* Ersterstellung MM 22.03.90
+|* Letzte Aenderung MM 27.06.90
|*
*************************************************************************/
void RscTypCont :: WriteSrc( FILE * fOutput, ULONG nFileKey,
CharSet /*nCharSet*/, BOOL bName )
{
- RscFile * pFName;
+ RscFile * pFName;
RscEnumerateRef aEnumRef( this, pRoot, fOutput );
unsigned char aUTF8BOM[3] = { 0xef, 0xbb, 0xbf };
@@ -881,11 +881,11 @@ void RscTypCont :: WriteSrc( FILE * fOutput, ULONG nFileKey,
/*************************************************************************
|*
-|* RscTypCont :: WriteHxx
+|* RscTypCont :: WriteHxx
|*
-|* Beschreibung
-|* Ersterstellung MM 30.05.91
-|* Letzte Aenderung MM 30.05.91
+|* Beschreibung
+|* Ersterstellung MM 30.05.91
+|* Letzte Aenderung MM 30.05.91
|*
*************************************************************************/
ERRTYPE RscTypCont :: WriteHxx( FILE * fOutput, ULONG nFileKey )
@@ -926,11 +926,11 @@ ERRTYPE RscTypCont :: WriteHxx( FILE * fOutput, ULONG nFileKey )
fprintf( fOutput, "#include <svtools/svmedit.hxx>\n" );
RscEnumerateRef aEnumRef( this, pRoot, fOutput );
- ERRTYPE aError;
+ ERRTYPE aError;
if( NOFILE_INDEX == nFileKey )
{
- RscFile * pFName;
+ RscFile * pFName;
pFName = aFileTab.First();
while( pFName )
@@ -947,18 +947,18 @@ ERRTYPE RscTypCont :: WriteHxx( FILE * fOutput, ULONG nFileKey )
/*************************************************************************
|*
-|* RscTypCont :: WriteCxx
+|* RscTypCont :: WriteCxx
|*
-|* Beschreibung
-|* Ersterstellung MM 30.05.91
-|* Letzte Aenderung MM 30.05.91
+|* Beschreibung
+|* Ersterstellung MM 30.05.91
+|* Letzte Aenderung MM 30.05.91
|*
*************************************************************************/
ERRTYPE RscTypCont::WriteCxx( FILE * fOutput, ULONG nFileKey,
const ByteString & rHxxName )
{
RscEnumerateRef aEnumRef( this, pRoot, fOutput );
- ERRTYPE aError;
+ ERRTYPE aError;
fprintf( fOutput, "#include <string.h>\n" );
WriteInc( fOutput, nFileKey );
if( rHxxName.Len() )
@@ -967,7 +967,7 @@ ERRTYPE RscTypCont::WriteCxx( FILE * fOutput, ULONG nFileKey,
if( NOFILE_INDEX == nFileKey )
{
- RscFile * pFName;
+ RscFile * pFName;
pFName = aFileTab.First();
while( pFName )
@@ -984,11 +984,11 @@ ERRTYPE RscTypCont::WriteCxx( FILE * fOutput, ULONG nFileKey,
/*************************************************************************
|*
-|* RscTypCont :: WriteSyntax
+|* RscTypCont :: WriteSyntax
|*
-|* Beschreibung
-|* Ersterstellung MM 30.05.91
-|* Letzte Aenderung MM 30.05.91
+|* Beschreibung
+|* Ersterstellung MM 30.05.91
+|* Letzte Aenderung MM 30.05.91
|*
*************************************************************************/
void RscTypCont::WriteSyntax( FILE * fOutput )
@@ -1011,11 +1011,11 @@ void RscTypCont::WriteRcCtor
/*************************************************************************
|*
-|* RscTypCont :: Delete()
+|* RscTypCont :: Delete()
|*
-|* Beschreibung
-|* Ersterstellung MM 09.12.91
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung
+|* Ersterstellung MM 09.12.91
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
class RscDel
@@ -1050,11 +1050,11 @@ void RscTypCont :: Delete( ULONG lFileKey ){
/*************************************************************************
|*
-|* RscTypCont :: MakeConsistent()
+|* RscTypCont :: MakeConsistent()
|*
-|* Beschreibung
-|* Ersterstellung MM 23.09.91
-|* Letzte Aenderung MM 23.09.91
+|* Beschreibung
+|* Ersterstellung MM 23.09.91
+|* Letzte Aenderung MM 23.09.91
|*
*************************************************************************/
BOOL IsInstConsistent( ObjNode * pObjNode, RscTop * pRscTop,
diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx
index 9931392f4508..f8829f1aab9c 100644
--- a/rsc/source/parser/rscibas.cxx
+++ b/rsc/source/parser/rscibas.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,9 +73,9 @@ void RscTypCont::SETCONST( RscConst * pClass, Atom nName, UINT32 nVal )
/****************** C O D E **********************************************/
/*************************************************************************
-|* RscTypCont::InitLangType()
+|* RscTypCont::InitLangType()
|*
-|* Beschreibung
+|* Beschreibung
*************************************************************************/
typedef std::hash_map< rtl::OString, sal_uInt32, rtl::OStringHash > langmap;
@@ -93,13 +93,13 @@ void RscLangEnum::Init( RscNameTable& rNames )
{
SetConstant( rNames.Put( "SYSTEM", CONSTNAME, (long)LANGUAGE_SYSTEM ), LANGUAGE_SYSTEM );
SetConstant( rNames.Put( "DONTKNOW", CONSTNAME, LANGUAGE_DONTKNOW ), LANGUAGE_DONTKNOW );
-
+
sal_Int32 nIndex = 0;
mnLangId = 0x400; // stay away from selfdefined...
char csep = '-';
const MsLangId::IsoLangEntry* pLangEntry;
ByteString aCountry, aLang;
-
+
while ( NULL != ( pLangEntry = MsLangId::getIsoLangEntry( nIndex )) && ( pLangEntry->mnLang != LANGUAGE_DONTKNOW ))
{
#if OSL_DEBUG_LEVEL > 2
@@ -174,7 +174,7 @@ void RscLangEnum::Init( RscNameTable& rNames )
nTokenCounter++;
}
}
-
+
SetConstant( rNames.Put( "LANGUAGE_USER1", CONSTNAME, LANGUAGE_USER1 ), LANGUAGE_USER1 );
SetConstant( rNames.Put( "LANGUAGE_USER2", CONSTNAME, LANGUAGE_USER2 ), LANGUAGE_USER2 );
SetConstant( rNames.Put( "LANGUAGE_USER3", CONSTNAME, LANGUAGE_USER3 ), LANGUAGE_USER3 );
@@ -214,11 +214,11 @@ RscEnum * RscTypCont::InitLangType()
/*************************************************************************
|*
-|* RscTypCont::InitFieldUnitsType()
+|* RscTypCont::InitFieldUnitsType()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.03.91
-|* Letzte Aenderung MM 27.06.91
+|* Beschreibung
+|* Ersterstellung MM 22.03.91
+|* Letzte Aenderung MM 27.06.91
|*
*************************************************************************/
RscEnum * RscTypCont::InitFieldUnitsType()
@@ -248,11 +248,11 @@ RscEnum * RscTypCont::InitFieldUnitsType()
/*************************************************************************
|*
-|* RscTypCont::InitTimeFieldFormat()
+|* RscTypCont::InitTimeFieldFormat()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.03.91
-|* Letzte Aenderung MM 27.06.91
+|* Beschreibung
+|* Ersterstellung MM 22.03.91
+|* Letzte Aenderung MM 27.06.91
|*
*************************************************************************/
RscEnum * RscTypCont::InitTimeFieldFormat()
@@ -270,11 +270,11 @@ RscEnum * RscTypCont::InitTimeFieldFormat()
/*************************************************************************
|*
-|* RscTypCont::InitColor()
+|* RscTypCont::InitColor()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscEnum * RscTypCont::InitColor(){
@@ -303,11 +303,11 @@ RscEnum * RscTypCont::InitColor(){
/*************************************************************************
|*
-|* RscTypCont::InitMapUnit()
+|* RscTypCont::InitMapUnit()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscEnum * RscTypCont::InitMapUnit(){
@@ -333,11 +333,11 @@ RscEnum * RscTypCont::InitMapUnit(){
/*************************************************************************
|*
-|* RscTypCont::InitKey()
+|* RscTypCont::InitKey()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscEnum * RscTypCont::InitKey(){
@@ -457,11 +457,11 @@ RscEnum * RscTypCont::InitKey(){
/*************************************************************************
|*
-|* RscTypCont::InitTriState()
+|* RscTypCont::InitTriState()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.11.91
-|* Letzte Aenderung MM 26.11.91
+|* Beschreibung
+|* Ersterstellung MM 26.11.91
+|* Letzte Aenderung MM 26.11.91
|*
*************************************************************************/
RscEnum * RscTypCont::InitTriState(){
@@ -477,11 +477,11 @@ RscEnum * RscTypCont::InitTriState(){
/*************************************************************************
|*
-|* RscTypCont::InitMessButtons()
+|* RscTypCont::InitMessButtons()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscEnum * RscTypCont::InitMessButtons()
@@ -499,11 +499,11 @@ RscEnum * RscTypCont::InitMessButtons()
/*************************************************************************
|*
-|* RscTypCont::InitMessDefButton()
+|* RscTypCont::InitMessDefButton()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscEnum * RscTypCont::InitMessDefButton(){
@@ -522,17 +522,17 @@ RscEnum * RscTypCont::InitMessDefButton(){
/*************************************************************************
|*
-|* RscTypCont::InitGeometry()
+|* RscTypCont::InitGeometry()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscTupel * RscTypCont::InitGeometry()
{
- RscTop * pTupel;
- Atom nId;
+ RscTop * pTupel;
+ Atom nId;
// Clientvariablen einfuegen
pTupel = new RscTupel( pHS->getID( "TupelDeltaSystem" ),
@@ -551,11 +551,11 @@ RscTupel * RscTypCont::InitGeometry()
/*************************************************************************
|*
-|* RscTypCont::InitLangGeometry()
+|* RscTypCont::InitLangGeometry()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscArray * RscTypCont::InitLangGeometry( RscTupel * pGeo )
@@ -565,11 +565,11 @@ RscArray * RscTypCont::InitLangGeometry( RscTupel * pGeo )
/*************************************************************************
|*
-|* RscTypCont::InitStringList()
+|* RscTypCont::InitStringList()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscCont * RscTypCont::InitStringList()
@@ -584,11 +584,11 @@ RscCont * RscTypCont::InitStringList()
/*************************************************************************
|*
-|* RscTypCont::InitLangStringList()
+|* RscTypCont::InitLangStringList()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscArray * RscTypCont::InitLangStringList( RscCont * pStrLst )
@@ -599,17 +599,17 @@ RscArray * RscTypCont::InitLangStringList( RscCont * pStrLst )
/*************************************************************************
|*
-|* RscTypCont::InitStringTupel()
+|* RscTypCont::InitStringTupel()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscTupel * RscTypCont::InitStringTupel()
{
- RscTop * pTupel;
- Atom nId;
+ RscTop * pTupel;
+ Atom nId;
// Clientvariablen einfuegen
pTupel = new RscTupel( pHS->getID( "CharsTupel" ), RSC_NOTYPE, NULL );
@@ -623,17 +623,17 @@ RscTupel * RscTypCont::InitStringTupel()
/*************************************************************************
|*
-|* RscTypCont::InitStringLongTupel()
+|* RscTypCont::InitStringLongTupel()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.07.94
-|* Letzte Aenderung MM 18.07.94
+|* Beschreibung
+|* Ersterstellung MM 18.07.94
+|* Letzte Aenderung MM 18.07.94
|*
*************************************************************************/
RscTupel * RscTypCont::InitStringLongTupel()
{
- RscTop * pTupel;
- Atom nId;
+ RscTop * pTupel;
+ Atom nId;
// Clientvariablen einfuegen
pTupel = new RscTupel( pHS->getID( "CharsLongTupel" ), RSC_NOTYPE, NULL );
@@ -647,11 +647,11 @@ RscTupel * RscTypCont::InitStringLongTupel()
/*************************************************************************
|*
-|* RscTypCont::InitStringTupelList()
+|* RscTypCont::InitStringTupelList()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscCont * RscTypCont::InitStringTupelList( RscTupel * pTupelString )
@@ -666,11 +666,11 @@ RscCont * RscTypCont::InitStringTupelList( RscTupel * pTupelString )
/*************************************************************************
|*
-|* RscTypCont::InitStringLongTupelList()
+|* RscTypCont::InitStringLongTupelList()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscCont * RscTypCont::InitStringLongTupelList( RscTupel * pStringLong )
@@ -685,11 +685,11 @@ RscCont * RscTypCont::InitStringLongTupelList( RscTupel * pStringLong )
/*************************************************************************
|*
-|* RscTypCont::InitLangStringTupelList()
+|* RscTypCont::InitLangStringTupelList()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscArray * RscTypCont::InitLangStringTupelList( RscCont * pStrTupelLst )
@@ -700,11 +700,11 @@ RscArray * RscTypCont::InitLangStringTupelList( RscCont * pStrTupelLst )
/*************************************************************************
|*
-|* RscTypCont::InitLangStringLongTupelList()
+|* RscTypCont::InitLangStringLongTupelList()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.05.91
-|* Letzte Aenderung MM 24.05.91
+|* Beschreibung
+|* Ersterstellung MM 24.05.91
+|* Letzte Aenderung MM 24.05.91
|*
*************************************************************************/
RscArray * RscTypCont::InitLangStringLongTupelList( RscCont * pStrLongTupelLst )
diff --git a/rsc/source/parser/rscicpx.cxx b/rsc/source/parser/rscicpx.cxx
index 97046f60fb85..eb4e8b5940d9 100644
--- a/rsc/source/parser/rscicpx.cxx
+++ b/rsc/source/parser/rscicpx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@
#include <yyrscyacc.hxx>
/*************************************************************************
-|* RscTypCont::InsWinBit()
+|* RscTypCont::InsWinBit()
*************************************************************************/
void RscTypCont::InsWinBit( RscTop * pClass, const ByteString & rName,
Atom nVal )
@@ -64,17 +64,17 @@ void RscTypCont::InsWinBit( RscTop * pClass, const ByteString & rName,
VAR_NODATAINST, 0, nWinBitVarId );
}
-#define INS_WINBIT( pClass, WinBit ) \
+#define INS_WINBIT( pClass, WinBit ) \
InsWinBit( pClass, #WinBit, n##WinBit##Id );
/*************************************************************************
-|* RscTypCont::InitClassMgr()
+|* RscTypCont::InitClassMgr()
*************************************************************************/
RscTop * RscTypCont::InitClassMgr()
{
- RscTop * pClassMgr;
- RscBaseCont * pClass;
- Atom nId;
+ RscTop * pClassMgr;
+ RscBaseCont * pClass;
+ Atom nId;
aBaseLst.Insert( pClass =
new RscBaseCont( InvalidAtom, RSC_NOTYPE, NULL, FALSE ),
@@ -87,7 +87,7 @@ RscTop * RscTypCont::InitClassMgr()
// Variablen anlegen
{
- RscContWriteSrc * pCont;
+ RscContWriteSrc * pCont;
// Variablen anlegen
aBaseLst.Insert(
@@ -107,11 +107,11 @@ RscTop * RscTypCont::InitClassMgr()
}
/*************************************************************************
-|* RscTypCont::InitClassString()
+|* RscTypCont::InitClassString()
*************************************************************************/
RscTop * RscTypCont::InitClassString( RscTop * pSuper ){
- Atom nId;
- RscTop * pClassString;
+ Atom nId;
+ RscTop * pClassString;
nId = pHS->getID( "String" );
pClassString = new RscClass( nId, RSC_STRING, pSuper );
@@ -125,11 +125,11 @@ RscTop * RscTypCont::InitClassString( RscTop * pSuper ){
}
/*************************************************************************
-|* RscTypCont::InitClassBitmap()
+|* RscTypCont::InitClassBitmap()
*************************************************************************/
RscTop * RscTypCont::InitClassBitmap( RscTop * pSuper ){
- Atom nId;
- RscTop * pClassBitmap;
+ Atom nId;
+ RscTop * pClassBitmap;
nId = pHS->getID( "Bitmap" );
pClassBitmap = new RscSysDepend( nId, RSC_BITMAP, pSuper );
@@ -145,11 +145,11 @@ RscTop * RscTypCont::InitClassBitmap( RscTop * pSuper ){
}
/*************************************************************************
-|* RscTypCont::InitClassColor()
+|* RscTypCont::InitClassColor()
*************************************************************************/
RscTop * RscTypCont::InitClassColor( RscTop * pSuper, RscEnum * pColor ){
- Atom nId;
- RscTop * pClassColor;
+ Atom nId;
+ RscTop * pClassColor;
// Klasse anlegen
nId = pHS->getID( "Color" );
@@ -171,13 +171,13 @@ RscTop * RscTypCont::InitClassColor( RscTop * pSuper, RscEnum * pColor ){
}
/*************************************************************************
-|* RscTypCont::InitClassImage()
+|* RscTypCont::InitClassImage()
*************************************************************************/
RscTop * RscTypCont::InitClassImage( RscTop * pSuper, RscTop * pClassBitmap,
RscTop * pClassColor )
{
- Atom nId;
- RscTop * pClassImage;
+ Atom nId;
+ RscTop * pClassImage;
// Klasse anlegen
nId = pHS->getID( "Image" );
@@ -198,13 +198,13 @@ RscTop * RscTypCont::InitClassImage( RscTop * pSuper, RscTop * pClassBitmap,
}
/*************************************************************************
-|* RscTypCont::InitClassImageList()
+|* RscTypCont::InitClassImageList()
*************************************************************************/
RscTop * RscTypCont::InitClassImageList( RscTop * pSuper, RscTop * /*pClassBitmap*/,
RscTop * pClassColor, RscCont * pStrLst )
{
- Atom nId;
- RscTop * pClassImageList;
+ Atom nId;
+ RscTop * pClassImageList;
// Klasse anlegen
nId = pHS->getID( "ImageList" );
@@ -218,14 +218,14 @@ RscTop * RscTypCont::InitClassImageList( RscTop * pSuper, RscTop * /*pClassBitma
nId = aNmTb.Put( "MaskColor", VARNAME );
pClassImageList->SetVariable( nId, pClassColor, NULL,
VAR_SVDYNAMIC, RSC_IMAGELIST_MASKCOLOR );
-
+
RscCont * pCont = new RscCont( pHS->getID( "USHORT *" ), RSC_NOTYPE );
pCont->SetTypeClass( &aIdUShort );
aBaseLst.Insert( pCont, LIST_APPEND );
nId = aNmTb.Put( "IdList", VARNAME );
pClassImageList->SetVariable( nId, pCont, NULL, 0,
RSC_IMAGELIST_IDLIST );
-
+
nId = aNmTb.Put( "FileList", VARNAME );
pClassImageList->SetVariable( nId, pStrLst );
@@ -236,13 +236,13 @@ RscTop * RscTypCont::InitClassImageList( RscTop * pSuper, RscTop * /*pClassBitma
}
/*************************************************************************
-|* RscTypCont::InitClassWindow()
+|* RscTypCont::InitClassWindow()
*************************************************************************/
RscTop * RscTypCont::InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit,
RscArray * pLangGeo )
{
- Atom nId;
- RscTop * pClassWindow;
+ Atom nId;
+ RscTop * pClassWindow;
// Klasse anlegen
nId = pHS->getID( "Window" );
@@ -252,9 +252,9 @@ RscTop * RscTypCont::InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit,
// Variablen anlegen
{
- RscFlag * pFlag;
+ RscFlag * pFlag;
RscClient * pClient;
- Atom nVarId, nDisableId, nOutputSizeId;
+ Atom nVarId, nDisableId, nOutputSizeId;
aBaseLst.Insert( pFlag = new RscFlag( pHS->getID( "FlagWndExtra" ),
RSC_NOTYPE ),
@@ -313,7 +313,7 @@ RscTop * RscTypCont::InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit,
nRsc_WIDTH = nId = aNmTb.Put( "_Width", VARNAME );
pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_WIDTH );
nRsc_HEIGHT = nId = aNmTb.Put( "_Height", VARNAME );
- pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_HEIGHT );
+ pClassWindow->SetVariable( nId, &aLong, NULL, 0, WINDOW_HEIGHT );
nRsc_DELTALANG = nId = aNmTb.Put( "DeltaLang", VARNAME );
pClassWindow->SetVariable( nId, pLangGeo, NULL, VAR_NORC | VAR_NOENUM);
@@ -350,12 +350,12 @@ RscTop * RscTypCont::InitClassWindow( RscTop * pSuper, RscEnum * pMapUnit,
}
/*************************************************************************
-|* RscTypCont::InitClassSystemWindow()
+|* RscTypCont::InitClassSystemWindow()
*************************************************************************/
RscTop * RscTypCont::InitClassSystemWindow( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassSystemWindow;
+ Atom nId;
+ RscTop * pClassSystemWindow;
// Klasse anlegen
nId = pHS->getID( "SystemWindow" );
@@ -375,12 +375,12 @@ RscTop * RscTypCont::InitClassSystemWindow( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassWorkWindow()
+|* RscTypCont::InitClassWorkWindow()
*************************************************************************/
RscTop * RscTypCont::InitClassWorkWindow( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassWorkWindow;
+ Atom nId;
+ RscTop * pClassWorkWindow;
// Klasse anlegen
nId = pHS->getID( "WorkWindow" );
@@ -391,7 +391,7 @@ RscTop * RscTypCont::InitClassWorkWindow( RscTop * pSuper )
// Variablen anlegen
{
- Atom nVarId;
+ Atom nVarId;
RscEnum * pShow;
aBaseLst.Insert( pShow = new RscEnum( pHS->getID( "EnumShowState" ),
@@ -412,12 +412,12 @@ RscTop * RscTypCont::InitClassWorkWindow( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassDialogBox()
+|* RscTypCont::InitClassDialogBox()
*************************************************************************/
RscTop * RscTypCont::InitClassModalDialog( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassDialog;
+ Atom nId;
+ RscTop * pClassDialog;
// Klasse anlegen
nId = pHS->getID( "ModalDialog" );
@@ -431,12 +431,12 @@ RscTop * RscTypCont::InitClassModalDialog( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassModelessDialog()
+|* RscTypCont::InitClassModelessDialog()
*************************************************************************/
RscTop * RscTypCont::InitClassModelessDialog( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassDialog;
+ Atom nId;
+ RscTop * pClassDialog;
// Klasse anlegen
nId = pHS->getID( "ModelessDialog" );
@@ -448,12 +448,12 @@ RscTop * RscTypCont::InitClassModelessDialog( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassControl()
+|* RscTypCont::InitClassControl()
*************************************************************************/
RscTop * RscTypCont::InitClassControl( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassControl;
+ Atom nId;
+ RscTop * pClassControl;
// Klasse anlegen
nId = pHS->getID( "Control" );
@@ -468,12 +468,12 @@ RscTop * RscTypCont::InitClassControl( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassCheckBox()
+|* RscTypCont::InitClassCheckBox()
*************************************************************************/
RscTop * RscTypCont::InitClassCheckBox( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassCheckBox;
+ Atom nId;
+ RscTop * pClassCheckBox;
// Klasse anlegen
nId = pHS->getID( "CheckBox" );
@@ -486,7 +486,7 @@ RscTop * RscTypCont::InitClassCheckBox( RscTop * pSuper )
INS_WINBIT( pClassCheckBox, Top )
INS_WINBIT( pClassCheckBox, VCenter )
INS_WINBIT( pClassCheckBox, Bottom )
-
+
nId = aNmTb.Put( "Check", VARNAME );
pClassCheckBox->SetVariable( nId, &aBool );
@@ -494,12 +494,12 @@ RscTop * RscTypCont::InitClassCheckBox( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassPushButton()
+|* RscTypCont::InitClassPushButton()
*************************************************************************/
RscTop * RscTypCont::InitClassPushButton( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassPushButton;
+ Atom nId;
+ RscTop * pClassPushButton;
// Klasse anlegen
nId = pHS->getID( "PushButton" );
@@ -516,13 +516,13 @@ RscTop * RscTypCont::InitClassPushButton( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassTriStateBox()
+|* RscTypCont::InitClassTriStateBox()
*************************************************************************/
RscTop * RscTypCont::InitClassTriStateBox( RscTop * pSuper,
RscEnum * pTriState )
{
- Atom nId;
- RscTop * pClassTriStateBox;
+ Atom nId;
+ RscTop * pClassTriStateBox;
nId = pHS->getID( "TriStateBox" );
pClassTriStateBox = new RscClass( nId, RSC_TRISTATEBOX, pSuper );
@@ -539,13 +539,13 @@ RscTop * RscTypCont::InitClassTriStateBox( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassMenuButton()
+|* RscTypCont::InitClassMenuButton()
*************************************************************************/
RscTop * RscTypCont::InitClassMenuButton( RscTop * pSuper,
RscTop * pClassMenu )
{
- Atom nId;
- RscTop * pClassMenuButton;
+ Atom nId;
+ RscTop * pClassMenuButton;
nId = pHS->getID( "MenuButton" );
pClassMenuButton = new RscClass( nId, RSC_MENUBUTTON, pSuper );
@@ -562,14 +562,14 @@ RscTop * RscTypCont::InitClassMenuButton( RscTop * pSuper,
/*************************************************************************
-|* RscTypCont::InitClassImageButton()
+|* RscTypCont::InitClassImageButton()
*************************************************************************/
RscTop * RscTypCont::InitClassImageButton( RscTop * pSuper,
RscTop * pClassImage,
RscEnum * pTriState )
{
- Atom nId;
- RscTop * pClassImageButton;
+ Atom nId;
+ RscTop * pClassImageButton;
// Klasse anlegen
nId = pHS->getID( "ImageButton" );
@@ -585,7 +585,7 @@ RscTop * RscTypCont::InitClassImageButton( RscTop * pSuper,
}
// Variablen anlegen
{
- Atom nVarId;
+ Atom nVarId;
RscEnum * pSymbol;
aBaseLst.Insert( pSymbol = new RscEnum( pHS->getID( "EnumSymbolButton" ),
@@ -633,15 +633,15 @@ RscTop * RscTypCont::InitClassImageButton( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassEdit()
+|* RscTypCont::InitClassEdit()
*************************************************************************/
RscTop * RscTypCont::InitClassEdit( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassEdit;
+ Atom nId;
+ RscTop * pClassEdit;
// Klasse anlegen
- nId = pHS->getID( "Edit" );
+ nId = pHS->getID( "Edit" );
pClassEdit = new RscClass( nId, RSC_EDIT, pSuper );
pClassEdit->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
aNmTb.Put( nId, CLASSNAME, pClassEdit );
@@ -659,12 +659,12 @@ RscTop * RscTypCont::InitClassEdit( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassMultiLineedit()
+|* RscTypCont::InitClassMultiLineedit()
*************************************************************************/
RscTop * RscTypCont::InitClassMultiLineEdit( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassMultiLineEdit;
+ Atom nId;
+ RscTop * pClassMultiLineEdit;
// Klasse anlegen
nId = pHS->getID( "MultiLineEdit" );
@@ -682,12 +682,12 @@ RscTop * RscTypCont::InitClassMultiLineEdit( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassScrollBar()
+|* RscTypCont::InitClassScrollBar()
*************************************************************************/
RscTop * RscTypCont::InitClassScrollBar( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassScrollBar;
+ Atom nId;
+ RscTop * pClassScrollBar;
// Klasse anlegen
nId = pHS->getID( "ScrollBar" );
@@ -699,11 +699,11 @@ RscTop * RscTypCont::InitClassScrollBar( RscTop * pSuper )
nId = aNmTb.Put( "MinPos", VARNAME );
pClassScrollBar->SetVariable( nId, &aShort );
{
- RSCINST aDfltI;
+ RSCINST aDfltI;
aDfltI = aShort.Create( NULL, RSCINST(), FALSE );
aDfltI.pClass->SetNumber( aDfltI, 100 );
-// aDfltI.pClass->MakeDefault( aDfltI );
+// aDfltI.pClass->MakeDefault( aDfltI );
nId = aNmTb.Put( "MaxPos", VARNAME );
pClassScrollBar->SetVariable( nId, &aShort, &aDfltI );
@@ -711,21 +711,21 @@ RscTop * RscTypCont::InitClassScrollBar( RscTop * pSuper )
nId = aNmTb.Put( "ThumbPos", VARNAME );
pClassScrollBar->SetVariable( nId, &aShort );
{
- RSCINST aDfltI;
+ RSCINST aDfltI;
aDfltI = aShort.Create( NULL, RSCINST(), FALSE );
aDfltI.pClass->SetNumber( aDfltI, 1 );
-// aDfltI.pClass->MakeDefault( aDfltI );
+// aDfltI.pClass->MakeDefault( aDfltI );
nId = aNmTb.Put( "PageSize", VARNAME);
pClassScrollBar->SetVariable( nId, &aShort, &aDfltI );
}
{
- RSCINST aDfltI;
+ RSCINST aDfltI;
aDfltI = aShort.Create( NULL, RSCINST(), FALSE );
aDfltI.pClass->SetNumber( aDfltI, 1 );
-// aDfltI.pClass->MakeDefault( aDfltI );
+// aDfltI.pClass->MakeDefault( aDfltI );
nId = aNmTb.Put( "LineSize", VARNAME );
pClassScrollBar->SetVariable( nId, &aShort, &aDfltI );
}
@@ -740,12 +740,12 @@ RscTop * RscTypCont::InitClassScrollBar( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassListBox()
+|* RscTypCont::InitClassListBox()
*************************************************************************/
RscTop * RscTypCont::InitClassListBox( RscTop * pSuper, RscArray * pStrLst )
{
- Atom nId;
- RscTop * pClassListBox;
+ Atom nId;
+ RscTop * pClassListBox;
// Klasse anlegen
nId = pHS->getID( "ListBox" );
@@ -775,12 +775,12 @@ RscTop * RscTypCont::InitClassListBox( RscTop * pSuper, RscArray * pStrLst )
}
/*************************************************************************
-|* RscTypCont::InitClassMultiListBox()
+|* RscTypCont::InitClassMultiListBox()
*************************************************************************/
RscTop * RscTypCont::InitClassMultiListBox( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassMultiListBox;
+ Atom nId;
+ RscTop * pClassMultiListBox;
// Klasse anlegen
nId = pHS->getID( "MultiListBox" );
@@ -794,12 +794,12 @@ RscTop * RscTypCont::InitClassMultiListBox( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassComboBox()
+|* RscTypCont::InitClassComboBox()
*************************************************************************/
RscTop * RscTypCont::InitClassComboBox( RscTop * pSuper, RscArray * pStrLst )
{
- Atom nId;
- RscTop * pClassComboBox;
+ Atom nId;
+ RscTop * pClassComboBox;
// Klasse anlegen
nId = pHS->getID( "ComboBox" );
@@ -823,12 +823,12 @@ RscTop * RscTypCont::InitClassComboBox( RscTop * pSuper, RscArray * pStrLst )
}
/*************************************************************************
-|* RscTypCont::InitClassFixedText()
+|* RscTypCont::InitClassFixedText()
*************************************************************************/
RscTop * RscTypCont::InitClassFixedText( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassFixedText;
+ Atom nId;
+ RscTop * pClassFixedText;
// Klasse anlegen
nId = pHS->getID( "FixedText" );
@@ -851,12 +851,12 @@ RscTop * RscTypCont::InitClassFixedText( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassFixedBitmap()
+|* RscTypCont::InitClassFixedBitmap()
*************************************************************************/
RscTop * RscTypCont::InitClassFixedBitmap( RscTop * pSuper, RscTop * pClassBitmap )
{
- Atom nId;
- RscTop * pClassFixedBitmap;
+ Atom nId;
+ RscTop * pClassFixedBitmap;
// Klasse anlegen
nId = pHS->getID( "FixedBitmap" );
@@ -874,12 +874,12 @@ RscTop * RscTypCont::InitClassFixedBitmap( RscTop * pSuper, RscTop * pClassBitma
}
/*************************************************************************
-|* RscTypCont::InitClassFixedImage()
+|* RscTypCont::InitClassFixedImage()
*************************************************************************/
RscTop * RscTypCont::InitClassFixedImage( RscTop * pSuper, RscTop * pClassImage )
{
- Atom nId;
- RscTop * pClassFixedImage;
+ Atom nId;
+ RscTop * pClassFixedImage;
// Klasse anlegen
nId = pHS->getID( "FixedImage" );
@@ -895,12 +895,12 @@ RscTop * RscTypCont::InitClassFixedImage( RscTop * pSuper, RscTop * pClassImage
}
/*************************************************************************
-|* RscTypCont::InitClassImageRadioButton()
+|* RscTypCont::InitClassImageRadioButton()
*************************************************************************/
RscTop * RscTypCont::InitClassRadioButton( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassRadioButton;
+ Atom nId;
+ RscTop * pClassRadioButton;
// Klasse anlegen
nId = pHS->getID( "RadioButton" );
@@ -913,7 +913,7 @@ RscTop * RscTypCont::InitClassRadioButton( RscTop * pSuper )
INS_WINBIT( pClassRadioButton, Top )
INS_WINBIT( pClassRadioButton, VCenter )
INS_WINBIT( pClassRadioButton, Bottom )
-
+
nId = aNmTb.Put( "Check", VARNAME );
pClassRadioButton->SetVariable( nId, &aBool );
@@ -921,12 +921,12 @@ RscTop * RscTypCont::InitClassRadioButton( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassImageRadioButton()
+|* RscTypCont::InitClassImageRadioButton()
*************************************************************************/
RscTop * RscTypCont::InitClassImageRadioButton( RscTop * pSuper, RscTop * pClassImage )
{
- Atom nId;
- RscTop * pClassImageRadioButton;
+ Atom nId;
+ RscTop * pClassImageRadioButton;
// Klasse anlegen
nId = pHS->getID( "ImageRadioButton" );
@@ -943,12 +943,12 @@ RscTop * RscTypCont::InitClassImageRadioButton( RscTop * pSuper, RscTop * pClass
}
/*************************************************************************
-|* RscTypCont::InitClassKeyCode()
+|* RscTypCont::InitClassKeyCode()
*************************************************************************/
RscTop * RscTypCont::InitClassKeyCode( RscTop * pSuper, RscEnum * pKey )
{
- Atom nId;
- RscTop * pClassKeyCode;
+ Atom nId;
+ RscTop * pClassKeyCode;
// Klasse anlegen
nId = pHS->getID( "KeyCode" );
@@ -960,9 +960,9 @@ RscTop * RscTypCont::InitClassKeyCode( RscTop * pSuper, RscEnum * pKey )
pClassKeyCode->SetVariable( nId, pKey );
{
- RscFlag * pFlag;
+ RscFlag * pFlag;
RscClient * pClient;
- Atom nVarId, nShiftId, nMod1Id, nMod2Id;
+ Atom nVarId, nShiftId, nMod1Id, nMod2Id;
aBaseLst.Insert( pFlag = new RscFlag( pHS->getID( "FlagKeyModifier" ),
RSC_NOTYPE ),
@@ -1008,7 +1008,7 @@ RscTop * RscTypCont::InitClassKeyCode( RscTop * pSuper, RscEnum * pKey )
VAR_NODATAINST, 0, nVarId );
}
{
- Atom nVarId;
+ Atom nVarId;
RscEnum * pKeyFunc;
aBaseLst.Insert( pKeyFunc = new RscEnum( pHS->getID( "EnumKeyFunc" ),
@@ -1043,13 +1043,13 @@ RscTop * RscTypCont::InitClassKeyCode( RscTop * pSuper, RscEnum * pKey )
}
/*************************************************************************
-|* RscTypCont::InitClassAccelItem()
+|* RscTypCont::InitClassAccelItem()
*************************************************************************/
RscTop * RscTypCont::InitClassAccelItem( RscTop * pSuper,
RscTop * pClassKeyCode )
{
- Atom nId;
- RscTop * pClassAccelItem;
+ Atom nId;
+ RscTop * pClassAccelItem;
// Klasse anlegen
nId = pHS->getID( "AcceleratorItem" );
@@ -1069,12 +1069,12 @@ RscTop * RscTypCont::InitClassAccelItem( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassAccelm()
+|* RscTypCont::InitClassAccelm()
*************************************************************************/
RscTop * RscTypCont::InitClassAccel( RscTop * pSuper, RscTop * pClassAccelItem )
{
- Atom nId;
- RscTop * pClassAccel;
+ Atom nId;
+ RscTop * pClassAccel;
// Klasse anlegen
nId = pHS->getID( "Accelerator" );
@@ -1101,14 +1101,14 @@ RscTop * RscTypCont::InitClassAccel( RscTop * pSuper, RscTop * pClassAccelItem )
}
/*************************************************************************
-|* RscTypCont::InitClassMenuItem()
+|* RscTypCont::InitClassMenuItem()
*************************************************************************/
RscTop * RscTypCont::InitClassMenuItem( RscTop * pSuper,
RscTop * pClassBitmap,
RscTop * pClassKeyCode )
{
- Atom nId;
- RscTop * pClassMenuItem;
+ Atom nId;
+ RscTop * pClassMenuItem;
// Klasse anlegen
nId = pHS->getID( "MenuItem" );
@@ -1123,10 +1123,10 @@ RscTop * RscTypCont::InitClassMenuItem( RscTop * pSuper,
pClassMenuItem->SetVariable( nId, &aIdNoZeroUShort, NULL, 0,
RSC_MENUITEM_ID );
{
- RscFlag * pFlag;
+ RscFlag * pFlag;
RscClient * pClient;
- Atom nVarId, nAutoCheckId, nRadioCheckId;
- Atom nCheckableId, nAboutId, nHelpId;
+ Atom nVarId, nAutoCheckId, nRadioCheckId;
+ Atom nCheckableId, nAboutId, nHelpId;
aBaseLst.Insert( pFlag = new RscFlag( pHS->getID( "FlagMenuState" ),
RSC_NOTYPE ),
@@ -1221,13 +1221,13 @@ RscTop * RscTypCont::InitClassMenuItem( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassMenu()
+|* RscTypCont::InitClassMenu()
*************************************************************************/
RscTop * RscTypCont::InitClassMenu( RscTop * pSuper,
RscTop * pClassMenuItem )
{
- Atom nId;
- RscTop * pClassMenu;
+ Atom nId;
+ RscTop * pClassMenu;
// Klasse anlegen
nId = pHS->getID( "Menu" );
@@ -1256,14 +1256,14 @@ RscTop * RscTypCont::InitClassMenu( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassMessageBox()
+|* RscTypCont::InitClassMessageBox()
*************************************************************************/
RscTop * RscTypCont::InitClassMessBox( RscTop * pSuper,
RscEnum * pMessButtons,
RscEnum * pMessDefButton )
{
- Atom nId;
- RscTop * pClassMessBox;
+ Atom nId;
+ RscTop * pClassMessBox;
// Klasse anlegen
nId = pHS->getID( "MessBox" );
@@ -1291,12 +1291,12 @@ RscTop * RscTypCont::InitClassMessBox( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassSplitter()
+|* RscTypCont::InitClassSplitter()
*************************************************************************/
RscTop * RscTypCont::InitClassSplitter( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassSplitter;
+ Atom nId;
+ RscTop * pClassSplitter;
// Klasse anlegen
nId = pHS->getID( "Splitter" );
@@ -1312,12 +1312,12 @@ RscTop * RscTypCont::InitClassSplitter( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassSplitWindow()
+|* RscTypCont::InitClassSplitWindow()
*************************************************************************/
RscTop * RscTypCont::InitClassSplitWindow( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassSplitWindow;
+ Atom nId;
+ RscTop * pClassSplitWindow;
// Klasse anlegen
nId = pHS->getID( "SplitWindow" );
@@ -1333,12 +1333,12 @@ RscTop * RscTypCont::InitClassSplitWindow( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassTime()
+|* RscTypCont::InitClassTime()
*************************************************************************/
RscTop * RscTypCont::InitClassTime( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassTime;
+ Atom nId;
+ RscTop * pClassTime;
// Klasse anlegen
nId = pHS->getID( "Time" );
@@ -1349,7 +1349,7 @@ RscTop * RscTypCont::InitClassTime( RscTop * pSuper )
// Variablen anlegen
nId = aNmTb.Put( "Hour", VARNAME );
- pClassTime->SetVariable( nId, &a0to23Short, NULL, 0, TIME_HOUR );
+ pClassTime->SetVariable( nId, &a0to23Short, NULL, 0, TIME_HOUR );
nId = aNmTb.Put( "Minute", VARNAME );
pClassTime->SetVariable( nId, &a0to59Short, NULL, 0, TIME_MINUTE );
@@ -1364,12 +1364,12 @@ RscTop * RscTypCont::InitClassTime( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassDate()
+|* RscTypCont::InitClassDate()
*************************************************************************/
RscTop * RscTypCont::InitClassDate( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassDate;
+ Atom nId;
+ RscTop * pClassDate;
// Klasse anlegen
nId = pHS->getID( "Date" );
@@ -1392,12 +1392,12 @@ RscTop * RscTypCont::InitClassDate( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassPatternFormatter()
+|* RscTypCont::InitClassPatternFormatter()
*************************************************************************/
RscTop * RscTypCont::InitClassPatternFormatter( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassPattern;
+ Atom nId;
+ RscTop * pClassPattern;
// Klasse anlegen
nId = pHS->getID( "PatternFormatter" );
@@ -1419,12 +1419,12 @@ RscTop * RscTypCont::InitClassPatternFormatter( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassNumericFormatter()
+|* RscTypCont::InitClassNumericFormatter()
*************************************************************************/
RscTop * RscTypCont::InitClassNumericFormatter( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassNumeric;
+ Atom nId;
+ RscTop * pClassNumeric;
// Klasse anlegen
nId = pHS->getID( "NumericFormatter" );
@@ -1455,13 +1455,13 @@ RscTop * RscTypCont::InitClassNumericFormatter( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassMetricFormatter()
+|* RscTypCont::InitClassMetricFormatter()
*************************************************************************/
RscTop * RscTypCont::InitClassMetricFormatter( RscTop * pSuper,
RscEnum * pFieldUnits )
{
- Atom nId;
- RscTop * pClassMetric;
+ Atom nId;
+ RscTop * pClassMetric;
// Klasse anlegen
nId = pHS->getID( "MetricFormatter" );
@@ -1480,15 +1480,15 @@ RscTop * RscTypCont::InitClassMetricFormatter( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassCurrencyFormatter()
+|* RscTypCont::InitClassCurrencyFormatter()
*************************************************************************/
RscTop * RscTypCont::InitClassCurrencyFormatter
(
RscTop * pSuper,
RscEnum * /* pFieldUnits */)
{
- Atom nId;
- RscTop * pClassCurrency;
+ Atom nId;
+ RscTop * pClassCurrency;
// Klasse anlegen
nId = pHS->getID( "CurrencyFormatter" );
@@ -1499,13 +1499,13 @@ RscTop * RscTypCont::InitClassCurrencyFormatter
}
/*************************************************************************
-|* RscTypCont::InitClassDateFormatter()
+|* RscTypCont::InitClassDateFormatter()
*************************************************************************/
RscTop * RscTypCont::InitClassDateFormatter( RscTop * pSuper,
RscTop * pClassDate )
{
- Atom nId;
- RscTop * pClassDateF;
+ Atom nId;
+ RscTop * pClassDateF;
// Klasse anlegen
nId = pHS->getID( "DateFormatter" );
@@ -1533,14 +1533,14 @@ RscTop * RscTypCont::InitClassDateFormatter( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassTimeFormatter()
+|* RscTypCont::InitClassTimeFormatter()
*************************************************************************/
RscTop * RscTypCont::InitClassTimeFormatter( RscTop * pSuper,
RscTop * pClassTime,
RscEnum * pTimeFieldFormat )
{
- Atom nId;
- RscTop * pClassTimeF;
+ Atom nId;
+ RscTop * pClassTimeF;
// Klasse anlegen
nId = pHS->getID( "TimeFormatter" );
@@ -1571,12 +1571,12 @@ RscTop * RscTypCont::InitClassTimeFormatter( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassSpinField()
+|* RscTypCont::InitClassSpinField()
*************************************************************************/
RscTop * RscTypCont::InitClassSpinField( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassSpinField;
+ Atom nId;
+ RscTop * pClassSpinField;
// Klasse anlegen
nId = pHS->getID( "SpinField" );
@@ -1592,12 +1592,12 @@ RscTop * RscTypCont::InitClassSpinField( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassPatternField()
+|* RscTypCont::InitClassPatternField()
*************************************************************************/
RscTop * RscTypCont::InitClassPatternField( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassPatternField;
+ Atom nId;
+ RscTop * pClassPatternField;
// Klasse anlegen
nId = pHS->getID( "PatternField" );
@@ -1610,12 +1610,12 @@ RscTop * RscTypCont::InitClassPatternField( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassNumericField()
+|* RscTypCont::InitClassNumericField()
*************************************************************************/
RscTop * RscTypCont::InitClassNumericField( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassNumericField;
+ Atom nId;
+ RscTop * pClassNumericField;
// Klasse anlegen
nId = pHS->getID( "NumericField" );
@@ -1638,12 +1638,12 @@ RscTop * RscTypCont::InitClassNumericField( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassMetricField()
+|* RscTypCont::InitClassMetricField()
*************************************************************************/
RscTop * RscTypCont::InitClassMetricField( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassMetricField;
+ Atom nId;
+ RscTop * pClassMetricField;
// Klasse anlegen
nId = pHS->getID( "MetricField" );
@@ -1667,7 +1667,7 @@ RscTop * RscTypCont::InitClassMetricField( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassCurrencyField()
+|* RscTypCont::InitClassCurrencyField()
*************************************************************************/
RscTop * RscTypCont::InitClassCurrencyField
(
@@ -1676,8 +1676,8 @@ RscTop * RscTypCont::InitClassCurrencyField
RscTop * pSuper
)
{
- Atom nId;
- RscTop * pClassCurrencyField;
+ Atom nId;
+ RscTop * pClassCurrencyField;
// Klasse anlegen
nId = pHS->getID( pClassName );
@@ -1701,12 +1701,12 @@ RscTop * RscTypCont::InitClassCurrencyField
}
/*************************************************************************
-|* RscTypCont::InitClassDateField()
+|* RscTypCont::InitClassDateField()
*************************************************************************/
RscTop * RscTypCont::InitClassDateField( RscTop * pSuper, RscTop * pClassDate )
{
- Atom nId;
- RscTop * pClassDateField;
+ Atom nId;
+ RscTop * pClassDateField;
// Klasse anlegen
nId = pHS->getID( "DateField" );
@@ -1725,12 +1725,12 @@ RscTop * RscTypCont::InitClassDateField( RscTop * pSuper, RscTop * pClassDate )
}
/*************************************************************************
-|* RscTypCont::InitClassTimeField()
+|* RscTypCont::InitClassTimeField()
*************************************************************************/
RscTop * RscTypCont::InitClassTimeField( RscTop * pSuper, RscTop * pClassTime )
{
- Atom nId;
- RscTop * pClassTimeField;
+ Atom nId;
+ RscTop * pClassTimeField;
// Klasse anlegen
nId = pHS->getID( "TimeField" );
@@ -1749,12 +1749,12 @@ RscTop * RscTypCont::InitClassTimeField( RscTop * pSuper, RscTop * pClassTime )
}
/*************************************************************************
-|* RscTypCont::InitClassPatternBox()
+|* RscTypCont::InitClassPatternBox()
*************************************************************************/
RscTop * RscTypCont::InitClassPatternBox( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassPatternBox;
+ Atom nId;
+ RscTop * pClassPatternBox;
// Klasse anlegen
nId = pHS->getID( "PatternBox" );
@@ -1767,12 +1767,12 @@ RscTop * RscTypCont::InitClassPatternBox( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassNumericBox()
+|* RscTypCont::InitClassNumericBox()
*************************************************************************/
RscTop * RscTypCont::InitClassNumericBox( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassNumericBox;
+ Atom nId;
+ RscTop * pClassNumericBox;
// Klasse anlegen
nId = pHS->getID( "NumericBox" );
@@ -1787,12 +1787,12 @@ RscTop * RscTypCont::InitClassNumericBox( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassMetricBox()
+|* RscTypCont::InitClassMetricBox()
*************************************************************************/
RscTop * RscTypCont::InitClassMetricBox( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassMetricBox;
+ Atom nId;
+ RscTop * pClassMetricBox;
// Klasse anlegen
nId = pHS->getID( "MetricBox" );
@@ -1807,7 +1807,7 @@ RscTop * RscTypCont::InitClassMetricBox( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassCurrencyBox()
+|* RscTypCont::InitClassCurrencyBox()
*************************************************************************/
RscTop * RscTypCont::InitClassCurrencyBox
(
@@ -1816,8 +1816,8 @@ RscTop * RscTypCont::InitClassCurrencyBox
RscTop * pSuper
)
{
- Atom nId;
- RscTop * pClassCurrencyBox;
+ Atom nId;
+ RscTop * pClassCurrencyBox;
// Klasse anlegen
nId = pHS->getID( pClassName );
@@ -1832,13 +1832,13 @@ RscTop * RscTypCont::InitClassCurrencyBox
}
/*************************************************************************
-|* RscTypCont::InitClassDateBox()
+|* RscTypCont::InitClassDateBox()
*************************************************************************/
RscTop * RscTypCont::InitClassDateBox( RscTop * pSuper,
RscTop * /*pClassDate*/ )
{
- Atom nId;
- RscTop * pClassDateBox;
+ Atom nId;
+ RscTop * pClassDateBox;
// Klasse anlegen
nId = pHS->getID( "DateBox" );
@@ -1853,13 +1853,13 @@ RscTop * RscTypCont::InitClassDateBox( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassTimeBox()
+|* RscTypCont::InitClassTimeBox()
*************************************************************************/
RscTop * RscTypCont::InitClassTimeBox( RscTop * pSuper,
RscTop * /*pClassTime*/ )
{
- Atom nId;
- RscTop * pClassTimeBox;
+ Atom nId;
+ RscTop * pClassTimeBox;
// Klasse anlegen
nId = pHS->getID( "TimeBox" );
@@ -1874,13 +1874,13 @@ RscTop * RscTypCont::InitClassTimeBox( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassDockWindow()
+|* RscTypCont::InitClassDockWindow()
*************************************************************************/
RscTop * RscTypCont::InitClassDockingWindow( RscTop * pSuper,
RscEnum * pMapUnit )
{
- Atom nId;
- RscTop * pClassDockWindow;
+ Atom nId;
+ RscTop * pClassDockWindow;
// Klasse anlegen
nId = pHS->getID( "DockingWindow" );
@@ -1891,7 +1891,7 @@ RscTop * RscTypCont::InitClassDockingWindow( RscTop * pSuper,
// Variablen anlegen
nId = aNmTb.Put( "_FloatingPosMapMode", VARNAME );
pClassDockWindow->SetVariable( nId, pMapUnit, NULL, 0,
- RSC_DOCKINGWINDOW_XYMAPMODE );
+ RSC_DOCKINGWINDOW_XYMAPMODE );
nId = aNmTb.Put( "_FloatingPosX", VARNAME );
pClassDockWindow->SetVariable( nId, &aShort, NULL, 0,
RSC_DOCKINGWINDOW_X );
@@ -1914,15 +1914,15 @@ RscTop * RscTypCont::InitClassDockingWindow( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassToolBoxItem()
+|* RscTypCont::InitClassToolBoxItem()
*************************************************************************/
RscTop * RscTypCont::InitClassToolBoxItem( RscTop * pSuper,
RscTop * pClassBitmap,
RscTop * pClassImage,
RscEnum * pTriState )
{
- Atom nId;
- RscTop * pClassToolBoxItem;
+ Atom nId;
+ RscTop * pClassToolBoxItem;
// Klasse anlegen
nId = pHS->getID( "ToolBoxItem" );
@@ -1947,12 +1947,12 @@ RscTop * RscTypCont::InitClassToolBoxItem( RscTop * pSuper,
// Variable einfuegen
nId = aNmTb.Put( "Type", VARNAME );
pClassToolBoxItem->SetVariable( nId, pEnum, NULL, 0,
- RSC_TOOLBOXITEM_TYPE );
+ RSC_TOOLBOXITEM_TYPE );
}
{
- RscFlag * pFlag;
+ RscFlag * pFlag;
RscClient * pClient;
- Atom l_nVarId, l_nAutoCheckId, l_nRadioCheckId, l_nCheckableId, l_nLeftId, l_nAutoSizeId, l_nDropDownId;
+ Atom l_nVarId, l_nAutoCheckId, l_nRadioCheckId, l_nCheckableId, l_nLeftId, l_nAutoSizeId, l_nDropDownId;
aBaseLst.Insert( pFlag = new RscFlag( pHS->getID( "FlagToolBoxState" ),
RSC_NOTYPE ),
@@ -2017,7 +2017,7 @@ RscTop * RscTypCont::InitClassToolBoxItem( RscTop * pSuper,
}
nId = aNmTb.Put( "HelpID", VARNAME );
pClassToolBoxItem->SetVariable( nId, &aIdLong, NULL, 0,
- RSC_TOOLBOXITEM_HELPID );
+ RSC_TOOLBOXITEM_HELPID );
nId = aNmTb.Put( "Text", VARNAME );
pClassToolBoxItem->SetVariable( nId, &aLangString, NULL, 0,
RSC_TOOLBOXITEM_TEXT );
@@ -2051,14 +2051,14 @@ RscTop * RscTypCont::InitClassToolBoxItem( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassToolBox()
+|* RscTypCont::InitClassToolBox()
*************************************************************************/
RscTop * RscTypCont::InitClassToolBox( RscTop * pSuper,
RscTop * pClassToolBoxItem,
RscTop * pClassImageList )
{
- Atom nId;
- RscTop * pClassToolBox;
+ Atom nId;
+ RscTop * pClassToolBox;
// Klasse anlegen
nId = pHS->getID( "ToolBox" );
@@ -2103,7 +2103,7 @@ RscTop * RscTypCont::InitClassToolBox( RscTop * pSuper,
RSC_TOOLBOX_LINECOUNT );
nId = aNmTb.Put( "FloatingLines", VARNAME );
pClassToolBox->SetVariable( nId, &aUShort, NULL, 0,
- RSC_TOOLBOX_FLOATLINES );
+ RSC_TOOLBOX_FLOATLINES );
nId = aNmTb.Put( "Customize", VARNAME );
pClassToolBox->SetVariable( nId, &aBool, NULL, 0,
RSC_TOOLBOX_CUSTOMIZE );
@@ -2139,12 +2139,12 @@ RscTop * RscTypCont::InitClassToolBox( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassStatusBar()
+|* RscTypCont::InitClassStatusBar()
*************************************************************************/
RscTop * RscTypCont::InitClassStatusBar( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassStatusBar;
+ Atom nId;
+ RscTop * pClassStatusBar;
// Klasse anlegen
nId = pHS->getID( "StatusBar" );
@@ -2160,12 +2160,12 @@ RscTop * RscTypCont::InitClassStatusBar( RscTop * pSuper )
}
/*************************************************************************
-|* RscTypCont::InitClassMoreButton()
+|* RscTypCont::InitClassMoreButton()
*************************************************************************/
RscTop * RscTypCont::InitClassMoreButton( RscTop * pSuper, RscEnum * pMapUnit )
{
- Atom nId;
- RscTop * pClassMoreButton;
+ Atom nId;
+ RscTop * pClassMoreButton;
// Klasse anlegen
nId = pHS->getID( "MoreButton" );
@@ -2188,13 +2188,13 @@ RscTop * RscTypCont::InitClassMoreButton( RscTop * pSuper, RscEnum * pMapUnit )
}
/*************************************************************************
-|* RscTypCont::InitClassFloatingWindow()
+|* RscTypCont::InitClassFloatingWindow()
*************************************************************************/
RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper,
RscEnum * pMapUnit )
{
- Atom nId;
- RscTop * pClassFloatingWindow;
+ Atom nId;
+ RscTop * pClassFloatingWindow;
// Klasse anlegen
nId = pHS->getID( "FloatingWindow" );
@@ -2225,13 +2225,13 @@ RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassTabControlItem()
+|* RscTypCont::InitClassTabControlItem()
*************************************************************************/
RscTop * RscTypCont::InitClassTabControlItem( RscTop * pSuper,
RscTop * /*pClassTabPage*/ )
{
- Atom nId;
- RscTop * pClassTabControlItem;
+ Atom nId;
+ RscTop * pClassTabControlItem;
// Klasse anlegen
nId = pHS->getID( "PageItem" );
@@ -2253,13 +2253,13 @@ RscTop * RscTypCont::InitClassTabControlItem( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassTabControl()
+|* RscTypCont::InitClassTabControl()
*************************************************************************/
RscTop * RscTypCont::InitClassTabControl( RscTop * pSuper,
RscTop * pClassTabControlItem )
{
- Atom nId;
- RscTop * pClassTabControl;
+ Atom nId;
+ RscTop * pClassTabControl;
// Klasse anlegen
nId = pHS->getID( "TabControl" );
@@ -2287,15 +2287,15 @@ RscTop * RscTypCont::InitClassTabControl( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassSfxFamilyStyleItem()
+|* RscTypCont::InitClassSfxFamilyStyleItem()
*************************************************************************/
RscTop * RscTypCont::InitClassSfxStyleFamilyItem( RscTop * pSuper,
RscTop * pClassBitmap,
RscTop * pClassImage,
RscArray * pStrLst )
{
- Atom nId;
- RscTop * pClassSfxFamilyStyleItem;
+ Atom nId;
+ RscTop * pClassSfxFamilyStyleItem;
// Klasse anlegen
nId = pHS->getID( "SfxStyleFamilyItem" );
@@ -2337,13 +2337,13 @@ RscTop * RscTypCont::InitClassSfxStyleFamilyItem( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassSfxTemplateDialogm()
+|* RscTypCont::InitClassSfxTemplateDialogm()
*************************************************************************/
RscTop * RscTypCont::InitClassSfxTemplateDialog( RscTop * pSuper,
RscTop * pClassFamilyStyleItem )
{
- Atom nId;
- RscTop * pClassSfxTemplateDialog;
+ Atom nId;
+ RscTop * pClassSfxTemplateDialog;
// Klasse anlegen
nId = pHS->getID( "SfxStyleFamilies" );
@@ -2367,12 +2367,12 @@ RscTop * RscTypCont::InitClassSfxTemplateDialog( RscTop * pSuper,
}
/*************************************************************************
-|* RscTypCont::InitClassSfxSlotInfo()
+|* RscTypCont::InitClassSfxSlotInfo()
*************************************************************************/
RscTop * RscTypCont::InitClassSfxSlotInfo( RscTop * pSuper )
{
- Atom nId;
- RscTop * pClassSfxSlotInfo;
+ Atom nId;
+ RscTop * pClassSfxSlotInfo;
// Klasse anlegen
nId = pHS->getID( "SfxSlotInfo" );
diff --git a/rsc/source/parser/rscinit.cxx b/rsc/source/parser/rscinit.cxx
index 12ca4d692e21..72a1f6889086 100644
--- a/rsc/source/parser/rscinit.cxx
+++ b/rsc/source/parser/rscinit.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@
#include <yyrscyacc.hxx>
/****************** M a c r o s ******************************************/
-#define INS_WINBIT( pClass, WinBit ) \
+#define INS_WINBIT( pClass, WinBit ) \
InsWinBit( pClass, #WinBit, n##WinBit##Id );
/****************** C O D E **********************************************/
@@ -83,117 +83,117 @@ void NameToVerCtrl( RSCINST & aVersion, RscTop * pClass,
/*************************************************************************
|*
-|* RscTypCont::Init()
+|* RscTypCont::Init()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.03.91
-|* Letzte Aenderung MM 27.06.91
+|* Beschreibung
+|* Ersterstellung MM 22.03.91
+|* Letzte Aenderung MM 27.06.91
|*
*************************************************************************/
void RscTypCont::Init()
{
- RscEnum * pFieldUnits;
- RscEnum * pTimeFieldFormat;
- RscEnum * pColor;
- RscEnum * pMapUnit;
- RscEnum * pKey;
- RscEnum * pTriState;
- RscEnum * pMessButtons;
- RscEnum * pMessDefButton;
- RscTupel * pGeometry;
- RscArray * pLangGeometry;
- RscCont * pStringList;
- RscArray * pLangStringList;
- RscTupel * pStringTupel;
- RscTupel * pStringLongTupel;
- RscCont * pStringTupelList;
- RscCont * pStringLongTupelList;
- RscArray * pLangStringTupelList;
- RscArray * pLangStringLongTupelList;
-
- RscTop * pClassMgr;
- RscTop * pClassString;
- RscTop * pClassStringArray;
- RscTop * pClassBitmap;
- RscTop * pClassColor;
- RscTop * pClassImage;
- RscTop * pClassImageList;
- RscTop * pClassWindow;
- RscTop * pClassSystemWindow;
- RscTop * pClassWorkWindow;
- RscTop * pClassDialog;
- RscTop * pClassModalDialog;
- RscTop * pClassModelessDialog;
- RscTop * pClassControl;
- RscTop * pClassButton;
- RscTop * pClassCheckBox;
- RscTop * pClassPushButton;
- RscTop * pClassOKButton;
- RscTop * pClassCancelButton;
- RscTop * pClassHelpButton;
- RscTop * pClassRadioButton;
- RscTop * pClassImageRadioButton;
- RscTop * pClassImageButton;
- RscTop * pClassTriStateBox;
- RscTop * pClassEdit;
- RscTop * pClassMultiLineEdit;
- RscTop * pClassScrollBar;
- RscTop * pClassListBox;
- RscTop * pClassMultiListBox;
- RscTop * pClassComboBox;
- RscTop * pClassFixedText;
- RscTop * pClassFixedBitmap;
- RscTop * pClassFixedImage;
- RscTop * pClassGroupBox;
- RscTop * pClassKeyCode;
- RscTop * pLangClassKeyCode;
- RscTop * pClassAccelItem;
- RscTop * pClassAccel;
- RscTop * pClassMenuItem;
- RscTop * pClassMenu;
- RscTop * pClassMenuButton;
- RscTop * pClassMessBox;
- RscTop * pClassInfoBox;
- RscTop * pClassWarningBox;
- RscTop * pClassErrorBox;
- RscTop * pClassQueryBox;
- RscTop * pClassSplitter;
- RscTop * pClassSplitWindow;
- RscTop * pClassSpinButton;
- RscTop * pClassTime;
- RscTop * pClassDate;
- RscTop * pClassSpinField;
- RscTop * pClassPatternField;
- RscTop * pClassNumericField;
- RscTop * pClassMetricField;
- RscTop * pClassCurrencyField;
- RscTop * pClassLongCurrencyField;
- RscTop * pClassDateField;
- RscTop * pClassTimeField;
- RscTop * pClassPatternBox;
- RscTop * pClassNumericBox;
- RscTop * pClassMetricBox;
- RscTop * pClassCurrencyBox;
- RscTop * pClassLongCurrencyBox;
- RscTop * pClassDateBox;
- RscTop * pClassTimeBox;
- RscTop * pClassDockingWindow;
- RscTop * pClassToolBoxItem;
- RscTop * pClassToolBox;
- RscTop * pClassStatusBar;
- RscTop * pClassMoreButton;
- RscTop * pClassFloatingWindow;
- RscTop * pClassTabPage;
- RscTop * pClassTabDialog;
- RscTop * pClassTabControlItem;
- RscTop * pClassTabControl;
- RscTop * pClassFixedLine;
- RscTop * pClassScrollBarBox;
- RscTop * pClassSfxStyleFamilyItem;
- RscTop * pClassSfxTemplateDialog;
- RscTop * pClassSfxSlotInfo;
-
- Atom nId;
+ RscEnum * pFieldUnits;
+ RscEnum * pTimeFieldFormat;
+ RscEnum * pColor;
+ RscEnum * pMapUnit;
+ RscEnum * pKey;
+ RscEnum * pTriState;
+ RscEnum * pMessButtons;
+ RscEnum * pMessDefButton;
+ RscTupel * pGeometry;
+ RscArray * pLangGeometry;
+ RscCont * pStringList;
+ RscArray * pLangStringList;
+ RscTupel * pStringTupel;
+ RscTupel * pStringLongTupel;
+ RscCont * pStringTupelList;
+ RscCont * pStringLongTupelList;
+ RscArray * pLangStringTupelList;
+ RscArray * pLangStringLongTupelList;
+
+ RscTop * pClassMgr;
+ RscTop * pClassString;
+ RscTop * pClassStringArray;
+ RscTop * pClassBitmap;
+ RscTop * pClassColor;
+ RscTop * pClassImage;
+ RscTop * pClassImageList;
+ RscTop * pClassWindow;
+ RscTop * pClassSystemWindow;
+ RscTop * pClassWorkWindow;
+ RscTop * pClassDialog;
+ RscTop * pClassModalDialog;
+ RscTop * pClassModelessDialog;
+ RscTop * pClassControl;
+ RscTop * pClassButton;
+ RscTop * pClassCheckBox;
+ RscTop * pClassPushButton;
+ RscTop * pClassOKButton;
+ RscTop * pClassCancelButton;
+ RscTop * pClassHelpButton;
+ RscTop * pClassRadioButton;
+ RscTop * pClassImageRadioButton;
+ RscTop * pClassImageButton;
+ RscTop * pClassTriStateBox;
+ RscTop * pClassEdit;
+ RscTop * pClassMultiLineEdit;
+ RscTop * pClassScrollBar;
+ RscTop * pClassListBox;
+ RscTop * pClassMultiListBox;
+ RscTop * pClassComboBox;
+ RscTop * pClassFixedText;
+ RscTop * pClassFixedBitmap;
+ RscTop * pClassFixedImage;
+ RscTop * pClassGroupBox;
+ RscTop * pClassKeyCode;
+ RscTop * pLangClassKeyCode;
+ RscTop * pClassAccelItem;
+ RscTop * pClassAccel;
+ RscTop * pClassMenuItem;
+ RscTop * pClassMenu;
+ RscTop * pClassMenuButton;
+ RscTop * pClassMessBox;
+ RscTop * pClassInfoBox;
+ RscTop * pClassWarningBox;
+ RscTop * pClassErrorBox;
+ RscTop * pClassQueryBox;
+ RscTop * pClassSplitter;
+ RscTop * pClassSplitWindow;
+ RscTop * pClassSpinButton;
+ RscTop * pClassTime;
+ RscTop * pClassDate;
+ RscTop * pClassSpinField;
+ RscTop * pClassPatternField;
+ RscTop * pClassNumericField;
+ RscTop * pClassMetricField;
+ RscTop * pClassCurrencyField;
+ RscTop * pClassLongCurrencyField;
+ RscTop * pClassDateField;
+ RscTop * pClassTimeField;
+ RscTop * pClassPatternBox;
+ RscTop * pClassNumericBox;
+ RscTop * pClassMetricBox;
+ RscTop * pClassCurrencyBox;
+ RscTop * pClassLongCurrencyBox;
+ RscTop * pClassDateBox;
+ RscTop * pClassTimeBox;
+ RscTop * pClassDockingWindow;
+ RscTop * pClassToolBoxItem;
+ RscTop * pClassToolBox;
+ RscTop * pClassStatusBar;
+ RscTop * pClassMoreButton;
+ RscTop * pClassFloatingWindow;
+ RscTop * pClassTabPage;
+ RscTop * pClassTabDialog;
+ RscTop * pClassTabControlItem;
+ RscTop * pClassTabControl;
+ RscTop * pClassFixedLine;
+ RscTop * pClassScrollBarBox;
+ RscTop * pClassSfxStyleFamilyItem;
+ RscTop * pClassSfxTemplateDialog;
+ RscTop * pClassSfxSlotInfo;
+
+ Atom nId;
aNmTb.SetSort( FALSE );
{
@@ -224,7 +224,7 @@ void RscTypCont::Init()
aNmTb.Put( "ZoomInOutputSize", INZOOMOUTPUTSIZE,(long)0 );
aNmTb.Put( "FloatingPos", FLOATINGPOS, (long)0 );
}
- /********** B A S I S T Y P E N ************************************/
+ /********** B A S I S T Y P E N ************************************/
{
/********** S H O R T ************************************************/
aShort.SetRange( -32768, 32767 );
@@ -263,119 +263,119 @@ void RscTypCont::Init()
nWinBitVarId = aNmTb.Put( "_WinBits", VARNAME );
// Windows
- nBorderId = pHS->getID( "WB_BORDER" );
+ nBorderId = pHS->getID( "WB_BORDER" );
aWinBits.SetConstant( nBorderId, sal::static_int_cast<INT32>(WB_BORDER) );
- nHideId = pHS->getID( "WB_HIDE" );
+ nHideId = pHS->getID( "WB_HIDE" );
aWinBits.SetConstant( nHideId, sal::static_int_cast<INT32>(WB_HIDE) );
nClipChildrenId = pHS->getID( "WB_CLIPCHILDREN" );
aWinBits.SetConstant( nClipChildrenId, sal::static_int_cast<INT32>(WB_CLIPCHILDREN) );
- nSizeableId = pHS->getID( "WB_SIZEABLE" );
+ nSizeableId = pHS->getID( "WB_SIZEABLE" );
aWinBits.SetConstant( nSizeableId, sal::static_int_cast<INT32>(WB_SIZEABLE) );
- nMoveableId = pHS->getID( "WB_MOVEABLE" );
+ nMoveableId = pHS->getID( "WB_MOVEABLE" );
aWinBits.SetConstant( nMoveableId, sal::static_int_cast<INT32>(WB_MOVEABLE) );
- nMinimizeId = pHS->getID( "WB_MINABLE" );
+ nMinimizeId = pHS->getID( "WB_MINABLE" );
aWinBits.SetConstant( nMinimizeId, 0 /*WB_MINABLE*/ );
- nMaximizeId = pHS->getID( "WB_MAXABLE" );
+ nMaximizeId = pHS->getID( "WB_MAXABLE" );
aWinBits.SetConstant( nMaximizeId, 0 /*WB_MAXABLE*/ );
- nCloseableId = pHS->getID( "WB_CLOSEABLE" );
+ nCloseableId = pHS->getID( "WB_CLOSEABLE" );
aWinBits.SetConstant( nCloseableId, sal::static_int_cast<INT32>(WB_CLOSEABLE) );
- nAppId = pHS->getID( "WB_APP" );
+ nAppId = pHS->getID( "WB_APP" );
aWinBits.SetConstant( nAppId, sal::static_int_cast<INT32>(WB_APP) );
- nTabstopId = pHS->getID( "WB_TABSTOP" );
+ nTabstopId = pHS->getID( "WB_TABSTOP" );
aWinBits.SetConstant( nTabstopId, sal::static_int_cast<INT32>(WB_TABSTOP) );
- nGroupId = pHS->getID( "WB_GROUP" );
+ nGroupId = pHS->getID( "WB_GROUP" );
aWinBits.SetConstant( nGroupId, sal::static_int_cast<INT32>(WB_GROUP) );
- nSysmodalId = pHS->getID( "WB_SYSMODAL" );
+ nSysmodalId = pHS->getID( "WB_SYSMODAL" );
aWinBits.SetConstant( nSysmodalId, 0 /*WB_SYSMODAL*/ );
}
{
- nLeftId = pHS->getID( "WB_LEFT" );
+ nLeftId = pHS->getID( "WB_LEFT" );
aWinBits.SetConstant( nLeftId, sal::static_int_cast<INT32>(WB_LEFT) );
- nCenterId = pHS->getID( "WB_CENTER" );
+ nCenterId = pHS->getID( "WB_CENTER" );
aWinBits.SetConstant( nCenterId, sal::static_int_cast<INT32>(WB_CENTER) );
- nRightId = pHS->getID( "WB_RIGHT" );
+ nRightId = pHS->getID( "WB_RIGHT" );
aWinBits.SetConstant( nRightId, sal::static_int_cast<INT32>(WB_RIGHT) );
- nTopId = pHS->getID( "WB_TOP" );
+ nTopId = pHS->getID( "WB_TOP" );
aWinBits.SetConstant( nTopId, sal::static_int_cast<INT32>(WB_TOP) );
- nVCenterId = pHS->getID( "WB_VCENTER" );
+ nVCenterId = pHS->getID( "WB_VCENTER" );
aWinBits.SetConstant( nVCenterId, sal::static_int_cast<INT32>(WB_VCENTER) );
- nBottomId = pHS->getID( "WB_BOTTOM" );
+ nBottomId = pHS->getID( "WB_BOTTOM" );
aWinBits.SetConstant( nBottomId, sal::static_int_cast<INT32>(WB_BOTTOM) );
- nHScrollId = pHS->getID( "WB_HSCROLL" );
+ nHScrollId = pHS->getID( "WB_HSCROLL" );
aWinBits.SetConstant( nHScrollId, sal::static_int_cast<INT32>(WB_HSCROLL) );
- nVScrollId = pHS->getID( "WB_VSCROLL" );
+ nVScrollId = pHS->getID( "WB_VSCROLL" );
aWinBits.SetConstant( nVScrollId, sal::static_int_cast<INT32>(WB_VSCROLL) );
- nSortId = pHS->getID( "WB_SORT" );
+ nSortId = pHS->getID( "WB_SORT" );
aWinBits.SetConstant( nSortId, sal::static_int_cast<INT32>(WB_SORT) );
- nDefaultId = pHS->getID( "WB_DEFBUTTON" );
+ nDefaultId = pHS->getID( "WB_DEFBUTTON" );
aWinBits.SetConstant( nDefaultId, sal::static_int_cast<INT32>(WB_DEFBUTTON) );
- nRepeatId = pHS->getID( "WB_REPEAT" );
+ nRepeatId = pHS->getID( "WB_REPEAT" );
aWinBits.SetConstant( nRepeatId, sal::static_int_cast<INT32>(WB_REPEAT) );
- nSVLookId = pHS->getID( "WB_SVLOOK" );
+ nSVLookId = pHS->getID( "WB_SVLOOK" );
aWinBits.SetConstant( nSVLookId, sal::static_int_cast<INT32>(WB_3DLOOK) );
- nDropDownId = pHS->getID( "WB_DROPDOWN" );
+ nDropDownId = pHS->getID( "WB_DROPDOWN" );
aWinBits.SetConstant( nDropDownId, sal::static_int_cast<INT32>(WB_DROPDOWN) );
- nPassWordId = pHS->getID( "WB_PASSWORD" );
+ nPassWordId = pHS->getID( "WB_PASSWORD" );
aWinBits.SetConstant( nPassWordId, sal::static_int_cast<INT32>(WB_PASSWORD) );
- nReadOnlyId = pHS->getID( "WB_READONLY" );
+ nReadOnlyId = pHS->getID( "WB_READONLY" );
aWinBits.SetConstant( nReadOnlyId, sal::static_int_cast<INT32>(WB_READONLY) );
- nAutoSizeId = pHS->getID( "WB_AUTOSIZE" );
+ nAutoSizeId = pHS->getID( "WB_AUTOSIZE" );
aWinBits.SetConstant( nAutoSizeId, sal::static_int_cast<INT32>(WB_AUTOSIZE) );
- nSpinId = pHS->getID( "WB_SPIN" );
+ nSpinId = pHS->getID( "WB_SPIN" );
aWinBits.SetConstant( nSpinId, sal::static_int_cast<INT32>(WB_SPIN) );
- nTabControlId = pHS->getID( "WB_DIALOGCONTROL" );
+ nTabControlId = pHS->getID( "WB_DIALOGCONTROL" );
aWinBits.SetConstant( nTabControlId, sal::static_int_cast<INT32>(WB_DIALOGCONTROL) );
- nSimpleModeId = pHS->getID( "WB_SIMPLEMODE" );
+ nSimpleModeId = pHS->getID( "WB_SIMPLEMODE" );
aWinBits.SetConstant( nSimpleModeId, sal::static_int_cast<INT32>(WB_SIMPLEMODE) );
- nDragId = pHS->getID( "WB_DRAG" );
+ nDragId = pHS->getID( "WB_DRAG" );
aWinBits.SetConstant( nDragId, sal::static_int_cast<INT32>(WB_DRAG) );
- nScrollId = pHS->getID( "WB_SCROLL" );
+ nScrollId = pHS->getID( "WB_SCROLL" );
aWinBits.SetConstant( nScrollId, sal::static_int_cast<INT32>(WB_SCROLL) );
- nZoomableId = pHS->getID( "WB_ZOOMABLE" );
+ nZoomableId = pHS->getID( "WB_ZOOMABLE" );
aWinBits.SetConstant( nZoomableId, sal::static_int_cast<INT32>(WB_ROLLABLE) );
nHideWhenDeactivateId = pHS->getID( "WB_HIDEWHENDEACTIVATE" );
aWinBits.SetConstant( nHideWhenDeactivateId, 0 /*WB_HIDEWHENDEACTIVATE*/ );
- nAutoHScrollId = pHS->getID( "WB_AUTOHSCROLL" );
+ nAutoHScrollId = pHS->getID( "WB_AUTOHSCROLL" );
aWinBits.SetConstant( nAutoHScrollId, sal::static_int_cast<INT32>(WB_AUTOHSCROLL) );
- nAutoVScrollId = pHS->getID( "WB_AUTOVSCROLL" );
+ nAutoVScrollId = pHS->getID( "WB_AUTOVSCROLL" );
aWinBits.SetConstant( nAutoVScrollId, sal::static_int_cast<INT32>(WB_AUTOVSCROLL) );
- nDDExtraWidthId = pHS->getID( "WB_DDEXTRAWIDTH" );
+ nDDExtraWidthId = pHS->getID( "WB_DDEXTRAWIDTH" );
aWinBits.SetConstant( nDDExtraWidthId, 0 /*WB_DDEXTRAWIDTH*/ );
- nWordBreakId = pHS->getID( "WB_WORDBREAK" );
+ nWordBreakId = pHS->getID( "WB_WORDBREAK" );
aWinBits.SetConstant( nWordBreakId, sal::static_int_cast<INT32>(WB_WORDBREAK) );
- nLeftLabelId = pHS->getID( "WB_LEFTLABEL" );
+ nLeftLabelId = pHS->getID( "WB_LEFTLABEL" );
aWinBits.SetConstant( nLeftLabelId, 0 /*WB_LEFTLABEL*/ );
- nHasLinesId = pHS->getID( "WB_HASLINES" );
+ nHasLinesId = pHS->getID( "WB_HASLINES" );
aWinBits.SetConstant( nHasLinesId, sal::static_int_cast<INT32>(WB_HASLINES) );
- nHasButtonsId = pHS->getID( "WB_HASBUTTONS" );
+ nHasButtonsId = pHS->getID( "WB_HASBUTTONS" );
aWinBits.SetConstant( nHasButtonsId, sal::static_int_cast<INT32>(WB_HASBUTTONS) );
- nRectStyleId = pHS->getID( "WB_RECTSTYLE" );
+ nRectStyleId = pHS->getID( "WB_RECTSTYLE" );
aWinBits.SetConstant( nRectStyleId, sal::static_int_cast<INT32>(WB_RECTSTYLE) );
- nLineSpacingId = pHS->getID( "WB_LINESPACING" );
+ nLineSpacingId = pHS->getID( "WB_LINESPACING" );
aWinBits.SetConstant( nLineSpacingId, sal::static_int_cast<INT32>(WB_LINESPACING) );
- nSmallStyleId = pHS->getID( "WB_SMALLSTYLE" );
+ nSmallStyleId = pHS->getID( "WB_SMALLSTYLE" );
aWinBits.SetConstant( nSmallStyleId, sal::static_int_cast<INT32>(WB_SMALLSTYLE) );
- nEnableResizingId = pHS->getID( "WB_ENABLERESIZING" );
+ nEnableResizingId = pHS->getID( "WB_ENABLERESIZING" );
aWinBits.SetConstant( nEnableResizingId, 0 /*WB_ENABLERESIZING*/ );
- nDockableId = pHS->getID( "WB_DOCKABLE" );
+ nDockableId = pHS->getID( "WB_DOCKABLE" );
aWinBits.SetConstant( nDockableId, sal::static_int_cast<INT32>(WB_DOCKABLE) );
- nScaleId = pHS->getID( "WB_SCALE" );
+ nScaleId = pHS->getID( "WB_SCALE" );
aWinBits.SetConstant( nScaleId, sal::static_int_cast<INT32>(WB_SCALE) );
- nIgnoreTabId = pHS->getID( "WB_IGNORETAB" );
+ nIgnoreTabId = pHS->getID( "WB_IGNORETAB" );
aWinBits.SetConstant( nIgnoreTabId, sal::static_int_cast<INT32>(WB_IGNORETAB) );
- nNoSplitDrawId = pHS->getID( "WB_NOSPLITDRAW" );
+ nNoSplitDrawId = pHS->getID( "WB_NOSPLITDRAW" );
aWinBits.SetConstant( nNoSplitDrawId, sal::static_int_cast<INT32>(WB_NOSPLITDRAW) );
- nTopImageId = pHS->getID( "WB_TOPIMAGE" );
+ nTopImageId = pHS->getID( "WB_TOPIMAGE" );
aWinBits.SetConstant( nTopImageId, sal::static_int_cast<INT32>(WB_TOPIMAGE) );
- nNoLabelId = pHS->getID( "WB_NOLABEL" );
+ nNoLabelId = pHS->getID( "WB_NOLABEL" );
aWinBits.SetConstant( nNoLabelId, sal::static_int_cast<INT32>(WB_NOLABEL) );
- nVertId = pHS->getID( "WB_VERT" );
+ nVertId = pHS->getID( "WB_VERT" );
aWinBits.SetConstant( nVertId, sal::static_int_cast<INT32>(WB_VERT) );
- nSingleLineId = pHS->getID( "WB_SINGLELINE" );
+ nSingleLineId = pHS->getID( "WB_SINGLELINE" );
aWinBits.SetConstant( nSingleLineId, sal::static_int_cast<INT32>(WB_SINGLELINE) );
nSysWinId = pHS->getID( "WB_SYSTEMWINDOW" );
aWinBits.SetConstant( nSysWinId, sal::static_int_cast<INT32>(WB_SYSTEMWINDOW) );
- nStdPopupId = pHS->getID( "WB_STDPOPUP" );
+ nStdPopupId = pHS->getID( "WB_STDPOPUP" );
aWinBits.SetConstant( nStdPopupId, sal::static_int_cast<INT32>(WB_STDPOPUP) );
}
{
@@ -383,14 +383,14 @@ void RscTypCont::Init()
InitLangType();
aBaseLst.Insert( pFieldUnits = InitFieldUnitsType(), LIST_APPEND );
aBaseLst.Insert( pTimeFieldFormat = InitTimeFieldFormat(), LIST_APPEND );
- aBaseLst.Insert( pColor = InitColor(), LIST_APPEND );
- aBaseLst.Insert( pMapUnit = InitMapUnit(), LIST_APPEND );
- aBaseLst.Insert( pKey = InitKey(), LIST_APPEND );
- aBaseLst.Insert( pTriState = InitTriState(), LIST_APPEND );
- aBaseLst.Insert( pMessButtons = InitMessButtons(), LIST_APPEND );
+ aBaseLst.Insert( pColor = InitColor(), LIST_APPEND );
+ aBaseLst.Insert( pMapUnit = InitMapUnit(), LIST_APPEND );
+ aBaseLst.Insert( pKey = InitKey(), LIST_APPEND );
+ aBaseLst.Insert( pTriState = InitTriState(), LIST_APPEND );
+ aBaseLst.Insert( pMessButtons = InitMessButtons(), LIST_APPEND );
aBaseLst.Insert( pMessDefButton = InitMessDefButton(), LIST_APPEND );
- aBaseLst.Insert( pGeometry = InitGeometry(), LIST_APPEND );
+ aBaseLst.Insert( pGeometry = InitGeometry(), LIST_APPEND );
aBaseLst.Insert( pLangGeometry = InitLangGeometry( pGeometry ),
LIST_APPEND );
aBaseLst.Insert( pStringList = InitStringList(), LIST_APPEND );
@@ -907,7 +907,7 @@ void RscTypCont::Init()
pClassFixedLine->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
INS_WINBIT(pClassFixedLine,Vert)
-
+
aNmTb.Put( nId, CLASSNAME, pClassFixedLine );
pRoot->Insert( pClassFixedLine );
diff --git a/rsc/source/parser/rsckey.cxx b/rsc/source/parser/rsckey.cxx
index 8ed7855bb247..e15f2e256eb7 100644
--- a/rsc/source/parser/rsckey.cxx
+++ b/rsc/source/parser/rsckey.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index ae7c9ad9dfdb..da6d97a20084 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,13 +64,13 @@ const char* StringContainer::putString( const char* pString )
}
/*************************************************************************/
-int c;
-BOOL bLastInclude;// War letztes Symbol INCLUDE
-RscFileInst* pFI;
-RscTypCont* pTC;
+int c;
+BOOL bLastInclude;// War letztes Symbol INCLUDE
+RscFileInst* pFI;
+RscTypCont* pTC;
RscExpression * pExp;
struct KeyVal {
- int nKeyWord;
+ int nKeyWord;
YYSTYPE aYYSType;
} aKeyVal[ 1 ];
BOOL bTargetDefined;
@@ -80,8 +80,8 @@ StringContainer* pStringContainer = NULL;
/****************** C O D E **********************************************/
UINT32 GetNumber(){
- UINT32 l = 0;
- UINT32 nLog = 10;
+ UINT32 l = 0;
+ UINT32 nLog = 10;
if( '0' == c ){
c = pFI->GetFastChar();
@@ -117,10 +117,10 @@ UINT32 GetNumber(){
}
int MakeToken( YYSTYPE * pTokenVal ){
- int c1;
- char * pStr;
+ int c1;
+ char * pStr;
- while( TRUE ){ // Kommentare und Leerzeichen ueberlesen
+ while( TRUE ){ // Kommentare und Leerzeichen ueberlesen
while( isspace( c ) )
c = pFI->GetFastChar();
if( '/' == c ){
@@ -204,7 +204,7 @@ int MakeToken( YYSTYPE * pTokenVal ){
}
if( isalpha (c) || (c == '_') ){
- Atom nHashId;
+ Atom nHashId;
OStringBuffer aBuf( 256 );
while( isalnum (c) || (c == '_') || (c == '-') )
@@ -216,12 +216,12 @@ int MakeToken( YYSTYPE * pTokenVal ){
nHashId = pHS->getID( aBuf.getStr(), true );
if( InvalidAtom != nHashId )
{
- KEY_STRUCT aKey;
-
+ KEY_STRUCT aKey;
+
// Suche nach dem Schluesselwort
if( pTC->aNmTb.Get( nHashId, &aKey ) )
{
-
+
// Schluesselwort gefunden
switch( aKey.nTyp )
{
@@ -243,7 +243,7 @@ int MakeToken( YYSTYPE * pTokenVal ){
default:
pTokenVal->value = aKey.yylval;
};
-
+
return( aKey.nTyp );
}
else
@@ -252,16 +252,16 @@ int MakeToken( YYSTYPE * pTokenVal ){
return( SYMBOL );
}
}
- else{ // Symbol
+ else{ // Symbol
RscDefine * pDef;
-
+
pDef = pTC->aFileTab.FindDef( aBuf.getStr() );
if( pDef ){
pTokenVal->defineele = pDef;
-
+
return( RSCDEFINE );
}
-
+
pTokenVal->string = const_cast<char*>(pStringContainer->putString( aBuf.getStr() ));
return( SYMBOL );
}
@@ -327,10 +327,10 @@ void yyerror( char* pMessage )
/****************** parser start function ********************************/
void InitParser( RscFileInst * pFileInst )
{
- pTC = pFileInst->pTypCont; // Datenkontainer setzten
+ pTC = pFileInst->pTypCont; // Datenkontainer setzten
pFI = pFileInst;
pStringContainer = new StringContainer();
- pExp = NULL; //fuer MacroParser
+ pExp = NULL; //fuer MacroParser
bTargetDefined = FALSE;
// Anfangszeichen initialisieren
@@ -349,19 +349,19 @@ void EndParser(){
if( pExp )
delete pExp;
- pTC = NULL;
- pFI = NULL;
- pExp = NULL;
+ pTC = NULL;
+ pFI = NULL;
+ pExp = NULL;
}
void IncludeParser( RscFileInst * pFileInst )
{
- int nToken; // Wert des Tokens
- YYSTYPE aYYSType; // Daten des Tokens
- RscFile * pFName; // Filestruktur
- ULONG lKey; // Fileschluessel
- RscTypCont * pTypCon = pFileInst->pTypCont;
+ int nToken; // Wert des Tokens
+ YYSTYPE aYYSType; // Daten des Tokens
+ RscFile * pFName; // Filestruktur
+ ULONG lKey; // Fileschluessel
+ RscTypCont * pTypCon = pFileInst->pTypCont;
pFName = pTypCon->aFileTab.Get( pFileInst->GetFileIndex() );
InitParser( pFileInst );
@@ -409,7 +409,7 @@ ERRTYPE parser( RscFileInst * pFileInst )
RscExpression * MacroParser( RscFileInst & rFileInst )
{
- ERRTYPE aError;
+ ERRTYPE aError;
RscExpression * pExpression;
InitParser( &rFileInst );
diff --git a/rsc/source/parser/rsclex.hxx b/rsc/source/parser/rsclex.hxx
index 06b2cb4d27ed..510a13eb3a1d 100644
--- a/rsc/source/parser/rsclex.hxx
+++ b/rsc/source/parser/rsclex.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
// a buffer for unique strings
class StringContainer
{
- std::hash_set< rtl::OString, rtl::OStringHash > m_aStrings;
+ std::hash_set< rtl::OString, rtl::OStringHash > m_aStrings;
public:
StringContainer() {}
~StringContainer() {}
@@ -78,9 +78,9 @@ class ObjectStack {
const RSCINST & Top () { return pRoot->aInst; }
BOOL IsEmpty() { return( pRoot == NULL ); }
- void IncTupelRec() { pRoot->nTupelRec++; }
- void DecTupelRec() { pRoot->nTupelRec--; }
- sal_uInt32 TupelRecCount() const { return pRoot->nTupelRec; }
+ void IncTupelRec() { pRoot->nTupelRec++; }
+ void DecTupelRec() { pRoot->nTupelRec--; }
+ sal_uInt32 TupelRecCount() const { return pRoot->nTupelRec; }
void Push( RSCINST aInst )
{
Node* pTmp;
@@ -126,6 +126,6 @@ extern RscTypCont* pTC;
extern RscFileInst * pFI;
extern RscExpression * pExp;
extern ObjectStack S;
-extern StringContainer* pStringContainer;
+extern StringContainer* pStringContainer;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/rsc/source/parser/rscpar.cxx b/rsc/source/parser/rscpar.cxx
index 61573b84c5a2..445d381c885c 100644
--- a/rsc/source/parser/rscpar.cxx
+++ b/rsc/source/parser/rscpar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,11 +38,11 @@
/****************** C O D E **********************************************/
/*************************************************************************
|*
-|* RscFileInst::Init()
+|* RscFileInst::Init()
|*
-|* Beschreibung
-|* Ersterstellung MM 05.11.91
-|* Letzte Aenderung MM 17.02.93
+|* Beschreibung
+|* Ersterstellung MM 05.11.91
+|* Letzte Aenderung MM 17.02.93
|*
*************************************************************************/
void RscFileInst::Init()
@@ -58,11 +58,11 @@ void RscFileInst::Init()
/*************************************************************************
|*
-|* RscFileInst::RscFileInst()
+|* RscFileInst::RscFileInst()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.06.91
-|* Letzte Aenderung MM 06.06.91
+|* Beschreibung
+|* Ersterstellung MM 06.06.91
+|* Letzte Aenderung MM 06.06.91
|*
*************************************************************************/
RscFileInst::RscFileInst( RscTypCont * pTC, ULONG lIndexSrc,
@@ -77,33 +77,33 @@ RscFileInst::RscFileInst( RscTypCont * pTC, ULONG lIndexSrc,
//Status: Zeiger am Ende des Lesepuffers
nInputPos = nInputEndPos = nInputBufLen = READBUFFER_MAX;
- pInput = (char *)rtl_allocateMemory( nInputBufLen );
+ pInput = (char *)rtl_allocateMemory( nInputBufLen );
}
RscFileInst::RscFileInst( RscTypCont * pTC, ULONG lIndexSrc,
ULONG lFIndex, const ByteString& rBuf )
{
- pTypCont = pTC;
+ pTypCont = pTC;
Init();
- lFileIndex = lFIndex;
- lSrcIndex = lIndexSrc;
- fInputFile = NULL;
- nInputPos = 0;
+ lFileIndex = lFIndex;
+ lSrcIndex = lIndexSrc;
+ fInputFile = NULL;
+ nInputPos = 0;
nInputEndPos = rBuf.Len();
// Muss groesser sein wegen Eingabeende bei nInputBufLen < nInputEndPos
nInputBufLen = nInputEndPos +1;
- pInput = (char *)rtl_allocateMemory( nInputBufLen +100 );
+ pInput = (char *)rtl_allocateMemory( nInputBufLen +100 );
memcpy( pInput, rBuf.GetBuffer(), nInputEndPos );
}
/*************************************************************************
|*
-|* RscFileInst::~RscFileInst()
+|* RscFileInst::~RscFileInst()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.06.91
-|* Letzte Aenderung MM 06.06.91
+|* Beschreibung
+|* Ersterstellung MM 06.06.91
+|* Letzte Aenderung MM 06.06.91
|*
*************************************************************************/
RscFileInst::~RscFileInst(){
@@ -115,11 +115,11 @@ RscFileInst::~RscFileInst(){
/*************************************************************************
|*
-|* RscFileInst::GetChar()
+|* RscFileInst::GetChar()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.06.91
-|* Letzte Aenderung MM 09.08.91
+|* Beschreibung
+|* Ersterstellung MM 01.06.91
+|* Letzte Aenderung MM 09.08.91
|*
*************************************************************************/
int RscFileInst::GetChar()
@@ -141,11 +141,11 @@ int RscFileInst::GetChar()
/*************************************************************************
|*
-|* RscFileInst::GetNewLine()
+|* RscFileInst::GetNewLine()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.06.91
-|* Letzte Aenderung MM 06.06.91
+|* Beschreibung
+|* Ersterstellung MM 06.06.91
+|* Letzte Aenderung MM 06.06.91
|*
*************************************************************************/
void RscFileInst::GetNewLine()
@@ -222,11 +222,11 @@ END:
/*************************************************************************
|*
-|* RscFileInst::SetError()
+|* RscFileInst::SetError()
|*
-|* Beschreibung
-|* Ersterstellung MM 05.11.91
-|* Letzte Aenderung MM 05.11.91
+|* Beschreibung
+|* Ersterstellung MM 05.11.91
+|* Letzte Aenderung MM 05.11.91
|*
*************************************************************************/
void RscFileInst::SetError( ERRTYPE aError )
@@ -234,8 +234,8 @@ void RscFileInst::SetError( ERRTYPE aError )
if( aError.IsOk() )
{
aFirstError = aError;
- nErrorLine = GetLineNo();
- nErrorPos = GetScanPos() -1;
+ nErrorLine = GetLineNo();
+ nErrorPos = GetScanPos() -1;
};
};
diff --git a/rsc/source/parser/rscyacc.cxx b/rsc/source/parser/rscyacc.cxx
index e899570e85ed..dad66013d35c 100644
--- a/rsc/source/parser/rscyacc.cxx
+++ b/rsc/source/parser/rscyacc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,10 +45,10 @@
#include "rsclex.hxx"
/************** V a r i a b l e n ****************************************/
-ObjectStack S;
-RscTop * pCurClass;
-sal_uInt32 nCurMask;
-char szErrBuf[ 100 ];
+ObjectStack S;
+RscTop * pCurClass;
+sal_uInt32 nCurMask;
+char szErrBuf[ 100 ];
/************** H i l f s F u n k t i o n e n ****************************/
RSCINST GetVarInst( const RSCINST & rInst, const char * pVarName )
@@ -112,7 +112,7 @@ void SetString( const RSCINST & rInst, const char * pVarName, const char * pStr
RscId MakeRscId( RscExpType aExpType )
{
if( !aExpType.IsNothing() ){
- INT32 lValue;
+ INT32 lValue;
if( !aExpType.Evaluate( &lValue ) )
pTC->pEH->Error( ERR_ZERODIVISION, NULL, RscId() );
@@ -248,16 +248,16 @@ RSCINST GetFirstTupelEle( const RSCINST & rTop )
/************** Y a c c C o d e ****************************************/
//#define YYDEBUG 1
-#define TYPE_Atom 0
-#define TYPE_RESID 1
+#define TYPE_Atom 0
+#define TYPE_RESID 1
#ifdef UNX
-#define YYMAXDEPTH 2000
+#define YYMAXDEPTH 2000
#else
#ifdef W30
-#define YYMAXDEPTH 300
+#define YYMAXDEPTH 300
#else
-#define YYMAXDEPTH 800
+#define YYMAXDEPTH 800
#endif
#endif
diff --git a/rsc/source/prj/gui.cxx b/rsc/source/prj/gui.cxx
index ff2ebce8c1ab..7564b9cb05f2 100644
--- a/rsc/source/prj/gui.cxx
+++ b/rsc/source/prj/gui.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,13 +35,13 @@
#include <rscrsc.hxx>
#include <rscdb.hxx>
-/*************** G l o b a l e V a r i a b l e n **********************/
+/*************** G l o b a l e V a r i a b l e n **********************/
static RscCompiler * pRscCompiler = NULL;
/****************************************************************/
-/* */
-/* Function : ExitProgram() */
-/* */
-/* Description : Gibt die Temporaeren Dateien frei. */
+/* */
+/* Function : ExitProgram() */
+/* */
+/* Description : Gibt die Temporaeren Dateien frei. */
/****************************************************************/
#if defined( UNX ) || ( defined( OS2 ) && ( defined( TCPP ) || defined ( GCC )) ) || defined (WTC) || defined (MTW) || defined(__MINGW32__)
void ExitProgram( void ){
@@ -82,10 +82,10 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
fprintf( stderr, "debugging %s\n", argv[0] );
#endif
- ERRTYPE aError;
+ ERRTYPE aError;
InitRscCompiler();
- RscError* pErrHdl = new RscError( lcl_determineVerbosity( argc, argv ) );
+ RscError* pErrHdl = new RscError( lcl_determineVerbosity( argc, argv ) );
#ifdef MTW
RscCmdLine* pCmdLine = new RscCmdLine( argc, (char **)argv, pErrHdl );
#else
diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx
index ab4278027967..0517af73b0f7 100644
--- a/rsc/source/prj/start.cxx
+++ b/rsc/source/prj/start.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,9 +60,9 @@
/*************** C O D E ************************************************/
/****************************************************************/
-/* */
-/* Function : fuer Ansi kompatibilitaet */
-/* */
+/* */
+/* Function : fuer Ansi kompatibilitaet */
+/* */
/****************************************************************/
#ifdef UNX
#define P_WAIT 0
@@ -86,9 +86,9 @@
#endif
/*************************************************************************
-|* CallPrePro()
+|* CallPrePro()
|*
-|* Beschreibung
+|* Beschreibung
*************************************************************************/
static BOOL CallPrePro( const ByteString& rPrePro,
const ByteString& rInput,
@@ -96,12 +96,12 @@ static BOOL CallPrePro( const ByteString& rPrePro,
RscPtrPtr * pCmdLine,
BOOL bResponse )
{
- RscPtrPtr aNewCmdL; // Kommandozeile
- RscPtrPtr aRespCmdL; // Kommandozeile
- RscPtrPtr * pCmdL = &aNewCmdL;
- int i, nExit;
- FILE* fRspFile = NULL;
- ByteString aRspFileName;
+ RscPtrPtr aNewCmdL; // Kommandozeile
+ RscPtrPtr aRespCmdL; // Kommandozeile
+ RscPtrPtr * pCmdL = &aNewCmdL;
+ int i, nExit;
+ FILE* fRspFile = NULL;
+ ByteString aRspFileName;
if( bResponse )
{
@@ -201,19 +201,19 @@ static BOOL CallPrePro( const ByteString& rPrePro,
/*************************************************************************
-|* CallRsc2
+|* CallRsc2
|*
-|* Beschreibung
+|* Beschreibung
*************************************************************************/
static BOOL CallRsc2( ByteString aRsc2Name,
RscStrList * pInputList,
ByteString aSrsName,
RscPtrPtr * pCmdLine )
{
- int i, nExit;
- ByteString* pString;
- ByteString aRspFileName; // Response-Datei
- FILE * fRspFile; // Response-Datei
+ int i, nExit;
+ ByteString* pString;
+ ByteString aRspFileName; // Response-Datei
+ FILE * fRspFile; // Response-Datei
aRspFileName = ::GetTmpFileName();
fRspFile = fopen( aRspFileName.GetBuffer(), "w" );
@@ -276,7 +276,7 @@ static BOOL CallRsc2( ByteString aRsc2Name,
fclose( fRspFile );
};
- RscPtrPtr aNewCmdL; // Kommandozeile
+ RscPtrPtr aNewCmdL; // Kommandozeile
aNewCmdL.Append( rsc_strdup( aRsc2Name.GetBuffer() ) );
ByteString aTmpStr( '@' );
aTmpStr += aRspFileName;
@@ -317,33 +317,33 @@ static BOOL CallRsc2( ByteString aRsc2Name,
/*************************************************************************
|*
-|* main()
+|* main()
|*
-|* Beschreibung
-|* Ersterstellung MM 05.09.91
-|* Letzte Aenderung MM 05.09.91
+|* Beschreibung
+|* Ersterstellung MM 05.09.91
+|* Letzte Aenderung MM 05.09.91
|*
*************************************************************************/
SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
{
- BOOL bPrePro = TRUE;
- BOOL bResFile = TRUE;
- BOOL bHelp = FALSE;
- BOOL bError = FALSE;
- BOOL bResponse = FALSE;
- ByteString aSolarbin(getenv("SOLARBINDIR"));
- ByteString aDelim("/");
- ByteString aPrePro; //( aSolarbin + aDelim + ByteString("rscpp"));
- ByteString aRsc2Name; //( aSolarbin + aDelim + ByteString("rsc2"));
- ByteString aSrsName;
- ByteString aResName;
- RscStrList aInputList;
- RscStrList aTmpList;
- char * pStr;
- char ** ppStr;
- RscPtrPtr aCmdLine; // Kommandozeile
- sal_uInt32 i;
- ByteString* pString;
+ BOOL bPrePro = TRUE;
+ BOOL bResFile = TRUE;
+ BOOL bHelp = FALSE;
+ BOOL bError = FALSE;
+ BOOL bResponse = FALSE;
+ ByteString aSolarbin(getenv("SOLARBINDIR"));
+ ByteString aDelim("/");
+ ByteString aPrePro; //( aSolarbin + aDelim + ByteString("rscpp"));
+ ByteString aRsc2Name; //( aSolarbin + aDelim + ByteString("rsc2"));
+ ByteString aSrsName;
+ ByteString aResName;
+ RscStrList aInputList;
+ RscStrList aTmpList;
+ char * pStr;
+ char ** ppStr;
+ RscPtrPtr aCmdLine; // Kommandozeile
+ sal_uInt32 i;
+ ByteString* pString;
aPrePro = aSolarbin;
aPrePro += aDelim;
@@ -415,7 +415,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if( aInputList.Count() )
{
- /* build the output file names */
+ /* build the output file names */
if( ! aResName.Len() )
aResName = OutputFile( *aInputList.First(), "res" );
if( ! bSetSrs )
diff --git a/rsc/source/res/rscall.cxx b/rsc/source/res/rscall.cxx
index 4bd3db7b9aae..7d0c7a8b655e 100644
--- a/rsc/source/res/rscall.cxx
+++ b/rsc/source/res/rscall.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,26 +38,26 @@
#include <rscall.h>
#include <rsckey.hxx>
-Atom nRsc_XYMAPMODEId = InvalidAtom;
-Atom nRsc_WHMAPMODEId = InvalidAtom;
-Atom nRsc_X = InvalidAtom;
-Atom nRsc_Y = InvalidAtom;
-Atom nRsc_WIDTH = InvalidAtom;
-Atom nRsc_HEIGHT = InvalidAtom;
-Atom nRsc_DELTALANG = InvalidAtom;
-Atom nRsc_DELTASYSTEM = InvalidAtom;
-Atom nRsc_EXTRADATA = InvalidAtom;
+Atom nRsc_XYMAPMODEId = InvalidAtom;
+Atom nRsc_WHMAPMODEId = InvalidAtom;
+Atom nRsc_X = InvalidAtom;
+Atom nRsc_Y = InvalidAtom;
+Atom nRsc_WIDTH = InvalidAtom;
+Atom nRsc_HEIGHT = InvalidAtom;
+Atom nRsc_DELTALANG = InvalidAtom;
+Atom nRsc_DELTASYSTEM = InvalidAtom;
+Atom nRsc_EXTRADATA = InvalidAtom;
void InitRscCompiler()
{
- pStdParType = new ByteString( "( const ResId & rResId, BOOL" );
- pStdPar1 = new ByteString( '(' );
- pStdPar2 = new ByteString( '(' );
+ pStdParType = new ByteString( "( const ResId & rResId, BOOL" );
+ pStdPar1 = new ByteString( '(' );
+ pStdPar2 = new ByteString( '(' );
- pWinParType = new ByteString( "( Window * pParent, const ResId & rResId, BOOL" );
- pWinPar1 = new ByteString( "( pParent," );
- pWinPar2 = new ByteString( "( this," );
- nRefDeep = 10;
+ pWinParType = new ByteString( "( Window * pParent, const ResId & rResId, BOOL" );
+ pWinPar1 = new ByteString( "( pParent," );
+ pWinPar2 = new ByteString( "( this," );
+ nRefDeep = 10;
nRsc_XYMAPMODEId = InvalidAtom;
nRsc_WHMAPMODEId = InvalidAtom;
pHS = new AtomContainer();
diff --git a/rsc/source/res/rscarray.cxx b/rsc/source/res/rscarray.cxx
index 3d0cba38da1d..793c3b0bae6b 100644
--- a/rsc/source/res/rscarray.cxx
+++ b/rsc/source/res/rscarray.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/source/res/rscclass.cxx b/rsc/source/res/rscclass.cxx
index 8aed3865fda1..4fe41f43ebaa 100644
--- a/rsc/source/res/rscclass.cxx
+++ b/rsc/source/res/rscclass.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,11 +47,11 @@
/****************** R s c C l a s s **************************************/
/*************************************************************************
|*
-|* RscClass::RscClass()
+|* RscClass::RscClass()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.05.91
-|* Letzte Aenderung MM 25.05.91
+|* Beschreibung
+|* Ersterstellung MM 25.05.91
+|* Letzte Aenderung MM 25.05.91
|*
*************************************************************************/
RscClass::RscClass( Atom nId, sal_uInt32 nTypeId, RscTop * pSuperCl )
@@ -65,16 +65,16 @@ RscClass::RscClass( Atom nId, sal_uInt32 nTypeId, RscTop * pSuperCl )
/*************************************************************************
|*
-|* RscClass::Pre_dtor()
+|* RscClass::Pre_dtor()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.05.91
-|* Letzte Aenderung MM 25.05.91
+|* Beschreibung
+|* Ersterstellung MM 25.05.91
+|* Letzte Aenderung MM 25.05.91
|*
*************************************************************************/
void RscClass::Pre_dtor()
{
- sal_uInt32 i;
+ sal_uInt32 i;
RscTop::Pre_dtor();
@@ -93,11 +93,11 @@ void RscClass::Pre_dtor()
/*************************************************************************
|*
-|* RscClass::~RscClass()
+|* RscClass::~RscClass()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.05.91
-|* Letzte Aenderung MM 25.05.91
+|* Beschreibung
+|* Ersterstellung MM 25.05.91
+|* Letzte Aenderung MM 25.05.91
|*
*************************************************************************/
RscClass::~RscClass()
@@ -108,11 +108,11 @@ RscClass::~RscClass()
/*************************************************************************
|*
-|* RscClass::GetClassType()
+|* RscClass::GetClassType()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.05.91
-|* Letzte Aenderung MM 25.05.91
+|* Beschreibung
+|* Ersterstellung MM 25.05.91
+|* Letzte Aenderung MM 25.05.91
|*
*************************************************************************/
RSCCLASS_TYPE RscClass::GetClassType() const
@@ -122,11 +122,11 @@ RSCCLASS_TYPE RscClass::GetClassType() const
/*************************************************************************
|*
-|* RscClass::GetInstData()
+|* RscClass::GetInstData()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
RSCINST RscClass::GetInstData
@@ -176,9 +176,9 @@ RSCINST RscClass::GetInstData
/*************************************************************************
|*
-|* RscClass::GetInstDflt()
+|* RscClass::GetInstDflt()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
CLASS_DATA RscClass::GetDfltData( sal_uInt32 nEle )
@@ -191,11 +191,11 @@ CLASS_DATA RscClass::GetDfltData( sal_uInt32 nEle )
/*************************************************************************
|*
-|* RscClass::SetVarDflt()
+|* RscClass::SetVarDflt()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.07.91
-|* Letzte Aenderung MM 22.07.91
+|* Beschreibung
+|* Ersterstellung MM 22.07.91
+|* Letzte Aenderung MM 22.07.91
|*
*************************************************************************/
void RscClass::SetVarDflt( CLASS_DATA pData, sal_uInt32 nEle, BOOL bSet )
@@ -211,24 +211,24 @@ void RscClass::SetVarDflt( CLASS_DATA pData, sal_uInt32 nEle, BOOL bSet )
/*************************************************************************
|*
-|* RscClass::IsDflt()
+|* RscClass::IsDflt()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.07.91
-|* Letzte Aenderung MM 08.01.92
+|* Beschreibung
+|* Ersterstellung MM 22.07.91
+|* Letzte Aenderung MM 08.01.92
|*
*************************************************************************/
BOOL RscClass::IsDflt( CLASS_DATA pData, sal_uInt32 nEle )
{
- RscClassInst * pClass;
- BOOL bRet;
+ RscClassInst * pClass;
+ BOOL bRet;
pClass = (RscClassInst *)(pData + nSuperSize );
if( pClass->nVarDflt & ((ULONG)1 << nEle) )
bRet = TRUE;
else
bRet = FALSE;
-/* {
+/* {
//Variablenname ist Default
RSCINST aTmpI;
@@ -242,11 +242,11 @@ BOOL RscClass::IsDflt( CLASS_DATA pData, sal_uInt32 nEle )
/*************************************************************************
|*
-|* RscClass::Create()
+|* RscClass::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
RSCINST RscClass::Create
@@ -256,8 +256,8 @@ RSCINST RscClass::Create
BOOL bOwnClass
)
{
- sal_uInt32 i;
- CLASS_DATA * ppData;
+ sal_uInt32 i;
+ CLASS_DATA * ppData;
RSCINST aInst;
RSCINST aMemInst, aDfltI;
@@ -315,14 +315,14 @@ RSCINST RscClass::Create
/*************************************************************************
|*
-|* RscClass::Destroy()
+|* RscClass::Destroy()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
void RscClass::Destroy( const RSCINST & rInst )
{
- sal_uInt32 i;
+ sal_uInt32 i;
RscTop::Destroy( rInst );
@@ -349,9 +349,9 @@ void RscClass::Destroy( const RSCINST & rInst )
/*************************************************************************
|*
-|* RscClass::SetVariable()
+|* RscClass::SetVariable()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
ERRTYPE RscClass::SetVariable
@@ -373,11 +373,11 @@ ERRTYPE RscClass::SetVariable
rtl_allocateMemory( ((nEntries +1)
* sizeof( VARTYPE_STRUCT )) );
- pVarTypeList[ nEntries ].nVarName = nVarName;
- pVarTypeList[ nEntries ].nMask = nMask;
- pVarTypeList[ nEntries ].pClass = pClass;
- pVarTypeList[ nEntries ].nOffset = nSize;
- pVarTypeList[ nEntries ].nDataBaseName = nDataBaseName;
+ pVarTypeList[ nEntries ].nVarName = nVarName;
+ pVarTypeList[ nEntries ].nMask = nMask;
+ pVarTypeList[ nEntries ].pClass = pClass;
+ pVarTypeList[ nEntries ].nOffset = nSize;
+ pVarTypeList[ nEntries ].nDataBaseName = nDataBaseName;
if( pDflt )
pVarTypeList[ nEntries ].pDefault = pDflt->pData;
else
@@ -411,9 +411,9 @@ ERRTYPE RscClass::SetVariable
/*************************************************************************
|*
-|* RscClass::EnumVariable()
+|* RscClass::EnumVariable()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
void RscClass::EnumVariables( void * pData, VarEnumCallbackProc pProc )
@@ -431,9 +431,9 @@ void RscClass::EnumVariables( void * pData, VarEnumCallbackProc pProc )
/*************************************************************************
|*
-|* RscClass::GetVariable()
+|* RscClass::GetVariable()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
RSCINST RscClass::GetVariable
@@ -445,7 +445,7 @@ RSCINST RscClass::GetVariable
RscTop * pCreateClass
)
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RSCINST aTmpI;
while( i < nEntries && pVarTypeList[ i ].nVarName != nVarName )
@@ -493,7 +493,7 @@ RSCINST RscClass::GetVariable
}
else
{
- CLASS_DATA * ppData
+ CLASS_DATA * ppData
= (CLASS_DATA *)(rInst.pData + pVarTypeList[ i ].nOffset);
aTmpI = aTmpI.pClass->Create( NULL, aDefInst );
*ppData = aTmpI.pData;
@@ -511,9 +511,9 @@ RSCINST RscClass::GetVariable
/*************************************************************************
|*
-|* RscClass::GetCopyVar()
+|* RscClass::GetCopyVar()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
RSCINST RscClass::GetCopyVar
@@ -522,7 +522,7 @@ RSCINST RscClass::GetCopyVar
Atom nVarName
)
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RSCINST aVarI;
while( i < nEntries && pVarTypeList[ i ].nVarName != nVarName )
@@ -555,16 +555,16 @@ RSCINST RscClass::GetCopyVar
/*************************************************************************
|*
-|* RscClass::IsConsistent()
+|* RscClass::IsConsistent()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
BOOL RscClass::IsConsistent( const RSCINST & rInst, RscInconsList * pList )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RSCINST aTmpI;
- BOOL bRet;
+ BOOL bRet;
bRet = RscTop::IsConsistent( rInst, pList );
@@ -585,16 +585,16 @@ BOOL RscClass::IsConsistent( const RSCINST & rInst, RscInconsList * pList )
/*************************************************************************
|*
-|* RscClass::SetToDefault()
+|* RscClass::SetToDefault()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
void RscClass::SetToDefault( const RSCINST & rInst )
{
- sal_uInt32 i;
+ sal_uInt32 i;
RSCINST aTmpI;
- RscClassInst * pClass;
+ RscClassInst * pClass;
pClass = (RscClassInst *)(rInst.pData + nSuperSize );
@@ -616,14 +616,14 @@ void RscClass::SetToDefault( const RSCINST & rInst )
/*************************************************************************
|*
-|* RscClass::IsDefault()
+|* RscClass::IsDefault()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
BOOL RscClass::IsDefault( const RSCINST & rInst )
{
- sal_uInt32 i;
+ sal_uInt32 i;
RSCINST aTmpI;
for( i = 0; i < nEntries; i++ )
@@ -640,14 +640,14 @@ BOOL RscClass::IsDefault( const RSCINST & rInst )
/*************************************************************************
|*
-|* RscClass::GetDefault()
+|* RscClass::GetDefault()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
RSCINST RscClass::GetDefault( Atom nVarId )
{
- sal_uInt32 i;
+ sal_uInt32 i;
i = 0;
while( i < nEntries && pVarTypeList[ i ].nVarName != nVarId )
@@ -666,9 +666,9 @@ RSCINST RscClass::GetDefault( Atom nVarId )
/*************************************************************************
|*
-|* RscClass::IsValueDflt()
+|* RscClass::IsValueDflt()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
BOOL RscClass::IsValueDflt( CLASS_DATA pData, sal_uInt32 nEle )
@@ -693,14 +693,14 @@ BOOL RscClass::IsValueDflt( CLASS_DATA pData, sal_uInt32 nEle )
/*************************************************************************
|*
-|* RscClass::IsValueDefault()
+|* RscClass::IsValueDefault()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
BOOL RscClass::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RSCINST aTmpI;
RSCINST aDfltI;
@@ -735,14 +735,14 @@ BOOL RscClass::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef )
/*************************************************************************
|*
-|* RscClass::SetDefault()
+|* RscClass::SetDefault()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
void RscClass::SetDefault( const RSCINST & rInst, Atom nVarName )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RSCINST aTmpI;
while( i < nEntries && pVarTypeList[ i ].nVarName != nVarName )
@@ -766,9 +766,9 @@ void RscClass::SetDefault( const RSCINST & rInst, Atom nVarName )
/*************************************************************************
|*
-|* RscClass::WriteSrc()
+|* RscClass::WriteSrc()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
void RscClass::WriteSrc
@@ -780,7 +780,7 @@ void RscClass::WriteSrc
const char * pVarName
)
{
- sal_uInt32 i = 0, n = 0;
+ sal_uInt32 i = 0, n = 0;
RSCINST aTmpI;
RscTop::WriteSrc( rInst, fOutput, pTC, nTab, pVarName );
@@ -793,7 +793,7 @@ void RscClass::WriteSrc
if( nRsc_XYMAPMODEId == pVarTypeList[ i ].nVarName
|| nRsc_WHMAPMODEId == pVarTypeList[ i ].nVarName )
{
- if( !IsDflt( rInst.pData, i ) //MapUnit
+ if( !IsDflt( rInst.pData, i ) //MapUnit
|| !IsDflt( rInst.pData, i+1 ) //X, Width
|| !IsDflt( rInst.pData, i+2 ) )//Y, Height
{// ein Wert ist nicht Default
@@ -854,9 +854,9 @@ void RscClass::WriteSrc
/*************************************************************************
|*
-|* RscClass::WriteInstRc()
+|* RscClass::WriteInstRc()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
INT32 RscClass::GetCorrectValues
@@ -898,7 +898,7 @@ ERRTYPE RscClass::WriteInstRc
sal_uInt32 i = 0;
ERRTYPE aError;
RSCINST aTmpI;
- sal_uInt32 nMaskOff = 0;// Offset um Maskenfeld zu addressieren
+ sal_uInt32 nMaskOff = 0;// Offset um Maskenfeld zu addressieren
// Wenn eine Variable Maskierung hat, dann Maskenfeld
for( i = 0; i < nEntries; i++ )
@@ -981,9 +981,9 @@ ERRTYPE RscClass::WriteInstRc
/*************************************************************************
|*
-|* RscClass::WriteRc()
+|* RscClass::WriteRc()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
ERRTYPE RscClass::WriteRc
@@ -1006,9 +1006,9 @@ ERRTYPE RscClass::WriteRc
/*************************************************************************
|*
-|* RscClass::WriteSyntax()
+|* RscClass::WriteSyntax()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
void RscClass::WriteSyntax( FILE * fOutput, RscTypCont * pTC )
@@ -1095,9 +1095,9 @@ void RscClass::WriteRcCtor( FILE * fOutput, RscTypCont * pTC )
/*************************************************************************
|*
-|* RscSysDepend::RscSysDepend()
+|* RscSysDepend::RscSysDepend()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
RscSysDepend::RscSysDepend( Atom nId, sal_uInt32 nTypeId, RscTop * pSuper )
@@ -1106,17 +1106,17 @@ RscSysDepend::RscSysDepend( Atom nId, sal_uInt32 nTypeId, RscTop * pSuper )
/*************************************************************************
|*
-|* RscSysDepend::WriteRc()
+|* RscSysDepend::WriteRc()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
ERRTYPE RscSysDepend::WriteSysDependRc( const RSCINST & rInst, RscWriteRc & rMem,
RscTypCont * pTC, sal_uInt32 nDeep, BOOL bExtra, BOOL bFirst )
{
- sal_uInt32 nId = 0xFFFFFFFF;
- ERRTYPE aError;
- RSCINST aFileName;
+ sal_uInt32 nId = 0xFFFFFFFF;
+ ERRTYPE aError;
+ RSCINST aFileName;
//Instanz mit dem Dateinamen "FILENAME" holen
aFileName = RscClass::GetCopyVar( rInst, pHS->getID( "FILE", true ) );
@@ -1147,15 +1147,15 @@ ERRTYPE RscSysDepend::WriteSysDependRc( const RSCINST & rInst, RscWriteRc & rMem
/*************************************************************************
|*
-|* RscSysDepend::WriteRc()
+|* RscSysDepend::WriteRc()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
ERRTYPE RscSysDepend::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
RscTypCont * pTC, sal_uInt32 nDeep, BOOL bExtra )
{
- ERRTYPE aError = RscClass::WriteRc( rInst, rMem, pTC, nDeep, bExtra );
+ ERRTYPE aError = RscClass::WriteRc( rInst, rMem, pTC, nDeep, bExtra );
if( this == rInst.pClass )
// nur wenn es eigen Klasse ist
@@ -1165,9 +1165,9 @@ ERRTYPE RscSysDepend::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
/*************************************************************************
|*
-|* RscFirstSysDepend::RscFirstSysDepend()
+|* RscFirstSysDepend::RscFirstSysDepend()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
RscFirstSysDepend::RscFirstSysDepend( Atom nId, sal_uInt32 nTypeId,
@@ -1177,9 +1177,9 @@ RscFirstSysDepend::RscFirstSysDepend( Atom nId, sal_uInt32 nTypeId,
/*************************************************************************
|*
-|* RscFirstSysDepend::WriteRc()
+|* RscFirstSysDepend::WriteRc()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
ERRTYPE RscFirstSysDepend::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
@@ -1192,9 +1192,9 @@ ERRTYPE RscFirstSysDepend::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
/*************************************************************************
|*
-|* RscTupel::RscTupel()
+|* RscTupel::RscTupel()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
RscTupel::RscTupel( Atom nId, sal_uInt32 nTypeId, RscTop * pSuper )
@@ -1203,9 +1203,9 @@ RscTupel::RscTupel( Atom nId, sal_uInt32 nTypeId, RscTop * pSuper )
/*************************************************************************
|*
-|* RscTupel::GetTupelVar()
+|* RscTupel::GetTupelVar()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
RSCINST RscTupel::GetTupelVar( const RSCINST & rInst, sal_uInt32 nPos,
@@ -1221,16 +1221,16 @@ RSCINST RscTupel::GetTupelVar( const RSCINST & rInst, sal_uInt32 nPos,
/*************************************************************************
|*
-|* RscTupel::WriteSrc()
+|* RscTupel::WriteSrc()
|*
-|* Beschreibung
+|* Beschreibung
|*
*************************************************************************/
void RscTupel::WriteSrc( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab,
const char * pVarName )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RSCINST aTmpI;
RscTop::WriteSrc( rInst, fOutput, pTC, nTab, pVarName );
diff --git a/rsc/source/res/rscclobj.cxx b/rsc/source/res/rscclobj.cxx
index 48de99eaba4d..d63336c12061 100644
--- a/rsc/source/res/rscclobj.cxx
+++ b/rsc/source/res/rscclobj.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/source/res/rscconst.cxx b/rsc/source/res/rscconst.cxx
index 7a2bb986539a..011e08e4ed0e 100644
--- a/rsc/source/res/rscconst.cxx
+++ b/rsc/source/res/rscconst.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -409,7 +409,7 @@ ERRTYPE RscEnum::WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
return( ERR_OK );
}
-RscLangEnum::RscLangEnum()
+RscLangEnum::RscLangEnum()
: RscEnum( pHS->getID( "LangEnum" ), RSC_NOTYPE ),
mnLangId( 0x400 )
{
diff --git a/rsc/source/res/rsccont.cxx b/rsc/source/res/rsccont.cxx
index b1e2e7fde4af..27e94aebc994 100644
--- a/rsc/source/res/rsccont.cxx
+++ b/rsc/source/res/rsccont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,11 +44,11 @@
/****************** E N T R Y S T R U C T ********************************/
/*************************************************************************
|*
-|* ENTRYSTRUCT::Destroy()
+|* ENTRYSTRUCT::Destroy()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.08.91
-|* Letzte Aenderung MM 06.08.91
+|* Beschreibung
+|* Ersterstellung MM 06.08.91
+|* Letzte Aenderung MM 06.08.91
|*
*************************************************************************/
void ENTRY_STRUCT::Destroy()
@@ -63,11 +63,11 @@ void ENTRY_STRUCT::Destroy()
/****************** R s c B a s e C o n t ********************************/
/*************************************************************************
|*
-|* RscBaseCont::RscBaseCont()
+|* RscBaseCont::RscBaseCont()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.05.91
-|* Letzte Aenderung MM 25.05.91
+|* Beschreibung
+|* Ersterstellung MM 25.05.91
+|* Letzte Aenderung MM 25.05.91
|*
*************************************************************************/
RscBaseCont::RscBaseCont( Atom nId, sal_uInt32 nTypeId, RscTop * pSuper,
@@ -84,11 +84,11 @@ RscBaseCont::RscBaseCont( Atom nId, sal_uInt32 nTypeId, RscTop * pSuper,
/*************************************************************************
|*
-|* RscBaseCont::~RscBaseCont()
+|* RscBaseCont::~RscBaseCont()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.05.91
-|* Letzte Aenderung MM 25.05.91
+|* Beschreibung
+|* Ersterstellung MM 25.05.91
+|* Letzte Aenderung MM 25.05.91
|*
*************************************************************************/
RscBaseCont::~RscBaseCont()
@@ -97,11 +97,11 @@ RscBaseCont::~RscBaseCont()
/*************************************************************************
|*
-|* RscBaseCont::GetClassType()
+|* RscBaseCont::GetClassType()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.05.91
-|* Letzte Aenderung MM 25.05.91
+|* Beschreibung
+|* Ersterstellung MM 25.05.91
+|* Letzte Aenderung MM 25.05.91
|*
*************************************************************************/
RSCCLASS_TYPE RscBaseCont::GetClassType() const
@@ -111,16 +111,16 @@ RSCCLASS_TYPE RscBaseCont::GetClassType() const
/*************************************************************************
|*
-|* DestroyElements()
+|* DestroyElements()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
void RscBaseCont::DestroyElements( RscBaseContInst * pClassData )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
if( pClassData->nEntries ){
for( i = 0; i < pClassData->nEntries; i++ ){
@@ -134,17 +134,17 @@ void RscBaseCont::DestroyElements( RscBaseContInst * pClassData )
/*************************************************************************
|*
-|* RscBaseCont::Create()
+|* RscBaseCont::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
RSCINST RscBaseCont::Create( RSCINST * pInst, const RSCINST & rDflt,
BOOL bOwnClass )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RSCINST aInst;
RscBaseContInst * pClassData;
@@ -165,8 +165,8 @@ RSCINST RscBaseCont::Create( RSCINST * pInst, const RSCINST & rDflt,
pClassData->bDflt = TRUE;
if( bOwnClass ){
- RscBaseContInst * pDfltClassData;
- RSCINST aDfltI;
+ RscBaseContInst * pDfltClassData;
+ RSCINST aDfltI;
pDfltClassData = (RscBaseContInst *)(rDflt.pData + nOffInstData);
@@ -191,11 +191,11 @@ RSCINST RscBaseCont::Create( RSCINST * pInst, const RSCINST & rDflt,
/*************************************************************************
|*
-|* RscBaseCont::Destroy()
+|* RscBaseCont::Destroy()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.05.91
-|* Letzte Aenderung MM 25.05.91
+|* Beschreibung
+|* Ersterstellung MM 25.05.91
+|* Letzte Aenderung MM 25.05.91
|*
*************************************************************************/
void RscBaseCont::Destroy( const RSCINST & rInst ){
@@ -209,17 +209,17 @@ void RscBaseCont::Destroy( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscBaseCont::SearchEle()
+|* RscBaseCont::SearchEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 17.05.91
-|* Letzte Aenderung MM 17.05.91
+|* Beschreibung
+|* Ersterstellung MM 17.05.91
+|* Letzte Aenderung MM 17.05.91
|*
*************************************************************************/
RSCINST RscBaseCont::SearchElePos( const RSCINST & rInst, const RscId & rEleName,
RscTop * pClass, sal_uInt32 nPos )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RscBaseContInst * pClassData;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -240,11 +240,11 @@ RSCINST RscBaseCont::SearchElePos( const RSCINST & rInst, const RscId & rEleName
/*************************************************************************
|*
-|* RscBaseCont::SearchEle()
+|* RscBaseCont::SearchEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 17.05.91
-|* Letzte Aenderung MM 17.05.91
+|* Beschreibung
+|* Ersterstellung MM 17.05.91
+|* Letzte Aenderung MM 17.05.91
|*
*************************************************************************/
RSCINST RscBaseCont::SearchEle( const RSCINST & rInst, const RscId & rEleName,
@@ -255,11 +255,11 @@ RSCINST RscBaseCont::SearchEle( const RSCINST & rInst, const RscId & rEleName,
/*************************************************************************
|*
-|* RscBaseCont::GetElement()
+|* RscBaseCont::GetElement()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::GetElement( const RSCINST & rInst, const RscId & rEleName,
@@ -267,8 +267,8 @@ ERRTYPE RscBaseCont::GetElement( const RSCINST & rInst, const RscId & rEleName,
const RSCINST & rCreateInst, RSCINST * pGetInst )
{
RscBaseContInst * pClassData;
- RSCINST aTmpI;
- ERRTYPE aError;
+ RSCINST aTmpI;
+ ERRTYPE aError;
if( !bNoId && !rEleName.IsId() )
aError = WRN_CONT_NOID;
@@ -337,11 +337,11 @@ ERRTYPE RscBaseCont::GetElement( const RSCINST & rInst, const RscId & rEleName,
/*************************************************************************
|*
-|* RscBaseCont::GetCount()
+|* RscBaseCont::GetCount()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
sal_uInt32 RscBaseCont::GetCount( const RSCINST & rInst ){
@@ -353,11 +353,11 @@ sal_uInt32 RscBaseCont::GetCount( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscBaseCont::GetPosEle()
+|* RscBaseCont::GetPosEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
RSCINST RscBaseCont::GetPosEle( const RSCINST & rInst, sal_uInt32 nPos ){
@@ -372,11 +372,11 @@ RSCINST RscBaseCont::GetPosEle( const RSCINST & rInst, sal_uInt32 nPos ){
/*************************************************************************
|*
-|* RscBaseCont::MovePosEle()
+|* RscBaseCont::MovePosEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 23.10.91
-|* Letzte Aenderung MM 23.10.91
+|* Beschreibung
+|* Ersterstellung MM 23.10.91
+|* Letzte Aenderung MM 23.10.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
@@ -389,8 +389,8 @@ ERRTYPE RscBaseCont::MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
if( (nDestPos < pClassData->nEntries) && (nSourcePos < pClassData->nEntries) ){
ENTRY_STRUCT aEntry;
- int nInc = 1;
- sal_uInt32 i = 0;
+ int nInc = 1;
+ sal_uInt32 i = 0;
// Quelle Merken
aEntry = pClassData->pEntries[ nSourcePos ];
@@ -411,18 +411,18 @@ ERRTYPE RscBaseCont::MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
/*************************************************************************
|*
-|* RscBaseCont::SetPosRscId()
+|* RscBaseCont::SetPosRscId()
|*
-|* Beschreibung
-|* Ersterstellung MM 30.09.91
-|* Letzte Aenderung MM 30.09.91
+|* Beschreibung
+|* Ersterstellung MM 30.09.91
+|* Letzte Aenderung MM 30.09.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::SetPosRscId( const RSCINST & rInst, sal_uInt32 nPos,
const RscId & rId ){
RscBaseContInst * pClassData;
- RSCINST aTmpI;
- ERRTYPE aError;
+ RSCINST aTmpI;
+ ERRTYPE aError;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -442,22 +442,22 @@ ERRTYPE RscBaseCont::SetPosRscId( const RSCINST & rInst, sal_uInt32 nPos,
/*************************************************************************
|*
-|* RscBaseCont::GetInfoEle()
+|* RscBaseCont::GetInfoEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
SUBINFO_STRUCT RscBaseCont::GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos ){
RscBaseContInst * pClassData;
- SUBINFO_STRUCT aInfo;
+ SUBINFO_STRUCT aInfo;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
if( nPos < pClassData->nEntries ){
- aInfo.aId = pClassData->pEntries[ nPos ].aName;
- aInfo.nPos = nPos;
+ aInfo.aId = pClassData->pEntries[ nPos ].aName;
+ aInfo.nPos = nPos;
aInfo.pClass = pClassData->pEntries[ nPos ].aInst.pClass;
}
return( aInfo );
@@ -465,11 +465,11 @@ SUBINFO_STRUCT RscBaseCont::GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos )
/*************************************************************************
|*
-|* RscBaseCont::SetString()
+|* RscBaseCont::SetString()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.04.91
-|* Letzte Aenderung MM 29.04.91
+|* Beschreibung
+|* Ersterstellung MM 29.04.91
+|* Letzte Aenderung MM 29.04.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::SetString( const RSCINST & rInst, const char * pStr )
@@ -477,7 +477,7 @@ ERRTYPE RscBaseCont::SetString( const RSCINST & rInst, const char * pStr )
RscBaseContInst * pClassData;
RSCINST aTmpI;
ERRTYPE aError;
- char *pTmpStr;
+ char *pTmpStr;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -507,18 +507,18 @@ else
/*************************************************************************
|*
-|* RscBaseCont::SetNumber()
+|* RscBaseCont::SetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.06.91
-|* Letzte Aenderung MM 12.06.91
+|* Beschreibung
+|* Ersterstellung MM 12.06.91
+|* Letzte Aenderung MM 12.06.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::SetNumber( const RSCINST & rInst, INT32 lValue ){
RscBaseContInst * pClassData;
RSCINST aTmpI;
ERRTYPE aError;
- INT32 lNumber;
+ INT32 lNumber;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -556,7 +556,7 @@ ERRTYPE RscBaseCont::SetBool
RscBaseContInst * pClassData;
RSCINST aTmpI;
ERRTYPE aError;
- BOOL bBool;
+ BOOL bBool;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -596,7 +596,7 @@ ERRTYPE RscBaseCont::SetConst
RscBaseContInst * pClassData;
RSCINST aTmpI;
ERRTYPE aError;
- Atom nConst;
+ Atom nConst;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -626,18 +626,18 @@ else
/*************************************************************************
|*
-|* RscBaseCont::SetRef()
+|* RscBaseCont::SetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 02.12.91
-|* Letzte Aenderung MM 02.12.91
+|* Beschreibung
+|* Ersterstellung MM 02.12.91
+|* Letzte Aenderung MM 02.12.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::SetRef( const RSCINST & rInst, const RscId & rRefId ){
RscBaseContInst * pClassData;
RSCINST aTmpI;
ERRTYPE aError;
- RscId aId;
+ RscId aId;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -667,17 +667,17 @@ else
/*************************************************************************
|*
-|* RscBaseCont::IsConsistent()
+|* RscBaseCont::IsConsistent()
|*
-|* Beschreibung
-|* Ersterstellung MM 23.09.91
-|* Letzte Aenderung MM 23.09.91
+|* Beschreibung
+|* Ersterstellung MM 23.09.91
+|* Letzte Aenderung MM 23.09.91
|*
*************************************************************************/
BOOL RscBaseCont::IsConsistent( const RSCINST & rInst, RscInconsList * pList ){
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RscBaseContInst * pClassData;
- BOOL bRet;
+ BOOL bRet;
bRet = RscTop::IsConsistent( rInst, pList );
@@ -701,7 +701,7 @@ BOOL RscBaseCont::IsConsistent( const RSCINST & rInst, RscInconsList * pList ){
bRet = FALSE;
if( pList )
pList->Insert( new RscInconsistent(
- pClassData->pEntries[ i ].aName,
+ pClassData->pEntries[ i ].aName,
pClassData->pEntries[ i +1 ].aName ) );
};
}
@@ -715,16 +715,16 @@ BOOL RscBaseCont::IsConsistent( const RSCINST & rInst, RscInconsList * pList ){
/*************************************************************************
|*
-|* RscBaseCont::SetToDefault()
+|* RscBaseCont::SetToDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 25.04.91
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 25.04.91
|*
*************************************************************************/
void RscBaseCont::SetToDefault( const RSCINST & rInst )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RscBaseContInst * pClassData;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -740,15 +740,15 @@ void RscBaseCont::SetToDefault( const RSCINST & rInst )
/*************************************************************************
|*
-|* RscBaseCont::IsDefault()
+|* RscBaseCont::IsDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 25.04.91
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 25.04.91
|*
*************************************************************************/
BOOL RscBaseCont::IsDefault( const RSCINST & rInst ){
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RscBaseContInst * pClassData;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -769,11 +769,11 @@ BOOL RscBaseCont::IsDefault( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscBaseCont::IsValueDefault()
+|* RscBaseCont::IsValueDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 15.01.92
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 15.01.92
|*
*************************************************************************/
BOOL RscBaseCont::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef )
@@ -793,17 +793,17 @@ BOOL RscBaseCont::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef )
/*************************************************************************
|*
-|* RscBaseCont::Delete()
+|* RscBaseCont::Delete()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.06.91
-|* Letzte Aenderung MM 12.06.91
+|* Beschreibung
+|* Ersterstellung MM 12.06.91
+|* Letzte Aenderung MM 12.06.91
|*
*************************************************************************/
void RscBaseCont::Delete( const RSCINST & rInst, RscTop * pClass,
const RscId & rId )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RscBaseContInst * pClassData;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -822,16 +822,16 @@ void RscBaseCont::Delete( const RSCINST & rInst, RscTop * pClass,
/*************************************************************************
|*
-|* RscBaseCont::DeletePos()
+|* RscBaseCont::DeletePos()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.06.91
-|* Letzte Aenderung MM 12.06.91
+|* Beschreibung
+|* Ersterstellung MM 12.06.91
+|* Letzte Aenderung MM 12.06.91
|*
*************************************************************************/
void RscBaseCont::DeletePos( const RSCINST & rInst, sal_uInt32 nPos ){
- RscBaseContInst * pClassData;
- sal_uInt32 i = 0;
+ RscBaseContInst * pClassData;
+ sal_uInt32 i = 0;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -849,18 +849,18 @@ void RscBaseCont::DeletePos( const RSCINST & rInst, sal_uInt32 nPos ){
/*************************************************************************
|*
-|* RscBaseCont::ContWriteSrc()
+|* RscBaseCont::ContWriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
void RscBaseCont::ContWriteSrc( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab,
const char * pVarName )
{
- sal_uInt32 i = 0, t = 0;
+ sal_uInt32 i = 0, t = 0;
RscBaseContInst * pClassData;
pClassData = (RscBaseContInst *)(rInst.pData + nOffInstData);
@@ -879,19 +879,19 @@ void RscBaseCont::ContWriteSrc( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscBaseCont::ContWriteRc()
+|* RscBaseCont::ContWriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::ContWriteRc( const RSCINST & rInst, RscWriteRc & rMem,
RscTypCont * pTC, sal_uInt32 nDeep, BOOL bExtra )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RscBaseContInst * pClassData;
- ERRTYPE aError;
+ ERRTYPE aError;
if( bExtra || bNoId )
{ // Nur Subresourcen schreiben, wenn bExtra == TRUE
@@ -941,11 +941,11 @@ void RscBaseCont::ContWriteRcAccess
/*************************************************************************
|*
-|* RscBaseCont::WriteSrc()
+|* RscBaseCont::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
void RscBaseCont::WriteSrc( const RSCINST & rInst, FILE * fOutput,
@@ -958,17 +958,17 @@ void RscBaseCont::WriteSrc( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscBaseCont::WriteRc()
+|* RscBaseCont::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
RscTypCont * pTC, sal_uInt32 nDeep, BOOL bExtra )
{
- ERRTYPE aError;
+ ERRTYPE aError;
aError = RscTop::WriteRc( rInst, rMem, pTC, nDeep, bExtra );
if( aError.IsOk() )
@@ -979,19 +979,19 @@ ERRTYPE RscBaseCont::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
/*************************************************************************
|*
-|* RscBaseCont::WriteHxx()
+|* RscBaseCont::WriteHxx()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::WriteHxx( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, const RscId & rRscId )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RscBaseContInst * pClassData;
- ERRTYPE aError;
+ ERRTYPE aError;
aError = RscTop::WriteHxx( rInst, fOutput, pTC, rRscId );
@@ -1014,19 +1014,19 @@ ERRTYPE RscBaseCont::WriteHxx( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscBaseCont::WriteCxx()
+|* RscBaseCont::WriteCxx()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
ERRTYPE RscBaseCont::WriteCxx( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, const RscId & rRscId )
{
- sal_uInt32 i = 0;
+ sal_uInt32 i = 0;
RscBaseContInst * pClassData;
- ERRTYPE aError;
+ ERRTYPE aError;
aError = RscTop::WriteCxx( rInst, fOutput, pTC, rRscId );
@@ -1050,11 +1050,11 @@ ERRTYPE RscBaseCont::WriteCxx( const RSCINST & rInst, FILE * fOutput,
/*************** R s c C o n t W r i t e S r c ***************************/
/*************************************************************************
|*
-|* RscContWriteSrc::RscContWriteSrc()
+|* RscContWriteSrc::RscContWriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
RscContWriteSrc::RscContWriteSrc( Atom nId, sal_uInt32 nTypeId,
@@ -1064,18 +1064,18 @@ RscContWriteSrc::RscContWriteSrc( Atom nId, sal_uInt32 nTypeId,
/*************************************************************************
|*
-|* RscContWriteSrc::WriteSrc()
+|* RscContWriteSrc::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
void RscContWriteSrc::WriteSrc( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, sal_uInt32 nTab,
const char * pVarName )
{
- sal_uInt32 i;
+ sal_uInt32 i;
RscTop::WriteSrc( rInst, fOutput, pTC, nTab, pVarName );
@@ -1094,11 +1094,11 @@ void RscContWriteSrc::WriteSrc( const RSCINST & rInst, FILE * fOutput,
/*************** R s c C o n t *******************************************/
/*************************************************************************
|*
-|* RscCont::RscCont()
+|* RscCont::RscCont()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
RscCont::RscCont( Atom nId, sal_uInt32 nTypeId, RscTop * pSuper, BOOL bNoIdent )
@@ -1107,11 +1107,11 @@ RscCont::RscCont( Atom nId, sal_uInt32 nTypeId, RscTop * pSuper, BOOL bNoIdent )
/*************************************************************************
|*
-|* RscCont::WriteRc()
+|* RscCont::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
ERRTYPE RscCont::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
@@ -1145,11 +1145,11 @@ void RscCont::WriteRcAccess
/*************************************************************************
|*
-|* RscContExtraData::RscContExtraData()
+|* RscContExtraData::RscContExtraData()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
RscContExtraData::RscContExtraData( Atom nId, sal_uInt32 nTypeId,
@@ -1159,11 +1159,11 @@ RscContExtraData::RscContExtraData( Atom nId, sal_uInt32 nTypeId,
/*************************************************************************
|*
-|* RscContExtraData::WriteRc()
+|* RscContExtraData::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.05.91
-|* Letzte Aenderung MM 08.05.91
+|* Beschreibung
+|* Ersterstellung MM 08.05.91
+|* Letzte Aenderung MM 08.05.91
|*
*************************************************************************/
ERRTYPE RscContExtraData::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
diff --git a/rsc/source/res/rscflag.cxx b/rsc/source/res/rscflag.cxx
index b5c3f496b563..ea39a159fdce 100644
--- a/rsc/source/res/rscflag.cxx
+++ b/rsc/source/res/rscflag.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -384,7 +384,7 @@ void RscFlag::WriteSrc( const RSCINST & rInst, FILE * fOutput,
ERRTYPE RscFlag::WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
RscTypCont *, sal_uInt32, BOOL )
{
- INT32 lVal = 0;
+ INT32 lVal = 0;
sal_uInt32 i = 0, Flag = 0, nIndex = 0;
Flag = 1;
diff --git a/rsc/source/res/rscmgr.cxx b/rsc/source/res/rscmgr.cxx
index 676d7b27bec2..c159aa69b69f 100644
--- a/rsc/source/res/rscmgr.cxx
+++ b/rsc/source/res/rscmgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,11 +44,11 @@
/****************** R s c M g r ******************************************/
/*************************************************************************
|*
-|* RscMgr::RscMgr()
+|* RscMgr::RscMgr()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
RscMgr::RscMgr( Atom nId, sal_uInt32 nTypeId, RscTop * pSuperCl )
@@ -58,11 +58,11 @@ RscMgr::RscMgr( Atom nId, sal_uInt32 nTypeId, RscTop * pSuperCl )
/*************************************************************************
|*
-|* RscMgr::Size()
+|* RscMgr::Size()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
sal_uInt32 RscMgr::Size()
@@ -72,11 +72,11 @@ sal_uInt32 RscMgr::Size()
/*************************************************************************
|*
-|* RscMgr::Create()
+|* RscMgr::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
RSCINST RscMgr::Create( RSCINST * pInst, const RSCINST & rDflt, BOOL bOwnClass ){
@@ -107,11 +107,11 @@ RSCINST RscMgr::Create( RSCINST * pInst, const RSCINST & rDflt, BOOL bOwnClass )
/*************************************************************************
|*
-|* RscMgr::Destroy()
+|* RscMgr::Destroy()
|*
-|* Beschreibung
-|* Ersterstellung MM 21.06.91
-|* Letzte Aenderung MM 21.06.91
+|* Beschreibung
+|* Ersterstellung MM 21.06.91
+|* Letzte Aenderung MM 21.06.91
|*
*************************************************************************/
void RscMgr::Destroy( const RSCINST & rInst ){
@@ -125,11 +125,11 @@ void RscMgr::Destroy( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscMgr::SetToDefault()
+|* RscMgr::SetToDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.06.91
-|* Letzte Aenderung MM 12.06.91
+|* Beschreibung
+|* Ersterstellung MM 12.06.91
+|* Letzte Aenderung MM 12.06.91
|*
*************************************************************************/
void RscMgr::SetToDefault( const RSCINST & rInst )
@@ -144,11 +144,11 @@ void RscMgr::SetToDefault( const RSCINST & rInst )
/*************************************************************************
|*
-|* RscMgr::IsDefault()
+|* RscMgr::IsDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.06.91
-|* Letzte Aenderung MM 12.06.91
+|* Beschreibung
+|* Ersterstellung MM 12.06.91
+|* Letzte Aenderung MM 12.06.91
|*
*************************************************************************/
BOOL RscMgr::IsDefault( const RSCINST & rInst ){
@@ -163,11 +163,11 @@ BOOL RscMgr::IsDefault( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscMgr::IsValueDefault()
+|* RscMgr::IsValueDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.06.91
-|* Letzte Aenderung MM 12.06.91
+|* Beschreibung
+|* Ersterstellung MM 12.06.91
+|* Letzte Aenderung MM 12.06.91
|*
*************************************************************************/
BOOL RscMgr::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
@@ -192,11 +192,11 @@ BOOL RscMgr::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
/*************************************************************************
|*
-|* RscMgr::WriteSrcHeader()
+|* RscMgr::WriteSrcHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.04.91
-|* Letzte Aenderung MM 08.04.91
+|* Beschreibung
+|* Ersterstellung MM 08.04.91
+|* Letzte Aenderung MM 08.04.91
|*
*************************************************************************/
void RscMgr::WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
@@ -204,7 +204,7 @@ void RscMgr::WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
const RscId & rId, const char * pVarName )
{
RscMgrInst * pClassData;
- sal_uInt32 i;
+ sal_uInt32 i;
pClassData = (RscMgrInst *)(rInst.pData + RscClass::Size());
@@ -232,11 +232,11 @@ void RscMgr::WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscMgr::WriteSrc()
+|* RscMgr::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.04.91
-|* Letzte Aenderung MM 08.04.91
+|* Beschreibung
+|* Ersterstellung MM 08.04.91
+|* Letzte Aenderung MM 08.04.91
|*
*************************************************************************/
void RscMgr::WriteSrc( const RSCINST &, FILE *, RscTypCont *, sal_uInt32,
@@ -246,20 +246,20 @@ void RscMgr::WriteSrc( const RSCINST &, FILE *, RscTypCont *, sal_uInt32,
/*************************************************************************
|*
-|* RscMgr::WriteRcHeader()
+|* RscMgr::WriteRcHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
ERRTYPE RscMgr::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem,
RscTypCont * pTC, const RscId &rId,
sal_uInt32 nDeep, BOOL bExtra )
{
- RscMgrInst * pClassData;
- ERRTYPE aError;
- ObjNode * pObjNode = NULL;
+ RscMgrInst * pClassData;
+ ERRTYPE aError;
+ ObjNode * pObjNode = NULL;
pClassData = (RscMgrInst *)(rInst.pData + RscClass::Size());
@@ -286,8 +286,8 @@ ERRTYPE RscMgr::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem,
{
if( pObjNode )
{
- RSCINST aRefI;
- RscTop * pTmpRefClass = rInst.pClass->GetRefClass();
+ RSCINST aRefI;
+ RscTop * pTmpRefClass = rInst.pClass->GetRefClass();
aRefI = RSCINST( rInst.pClass, pObjNode->GetRscObj() );
if( pTmpRefClass == rInst.pClass )
@@ -305,8 +305,8 @@ ERRTYPE RscMgr::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem,
}
else
{
- sal_uInt32 nOldSize;
- sal_uInt32 nLocalSize;
+ sal_uInt32 nOldSize;
+ sal_uInt32 nLocalSize;
nOldSize = rMem.IncSize( 16 /*sizeof( RSHEADER_TYPE )*/ );
@@ -324,10 +324,10 @@ ERRTYPE RscMgr::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem,
/*
// Definition der Struktur, aus denen die Resource aufgebaut ist
struct RSHEADER_TYPE{
- RESOURCE_TYPE nRT; // Resource Typ
- sal_uInt32 nRT; // Resource Typ
- sal_uInt32 nGlobOff; // Globaler Offset
- sal_uInt32 nLocalOff; // Lokaler Offset
+ RESOURCE_TYPE nRT; // Resource Typ
+ sal_uInt32 nRT; // Resource Typ
+ sal_uInt32 nGlobOff; // Globaler Offset
+ sal_uInt32 nLocalOff; // Lokaler Offset
};
*/
sal_uInt32 nID = rId;
@@ -343,11 +343,11 @@ ERRTYPE RscMgr::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem,
/*************************************************************************
|*
-|* RscMgr::WriteRc()
+|* RscMgr::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.04.91
-|* Letzte Aenderung MM 26.04.91
+|* Beschreibung
+|* Ersterstellung MM 26.04.91
+|* Letzte Aenderung MM 26.04.91
|*
*************************************************************************/
ERRTYPE RscMgr::WriteRc( const RSCINST &, RscWriteRc &,
@@ -397,19 +397,19 @@ static ByteString MakeName( RscTypCont * pTypCon, RscTop * pClass,
/*************************************************************************
|*
-|* RscMgr::WriteHxxHeader()
+|* RscMgr::WriteHxxHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
ERRTYPE RscMgr::WriteHxxHeader( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, const RscId &rId )
{
- RscMgrInst * pClassData;
- ERRTYPE aError;
- ObjNode * pObjNode = NULL;
+ RscMgrInst * pClassData;
+ ERRTYPE aError;
+ ObjNode * pObjNode = NULL;
pClassData = (RscMgrInst *)(rInst.pData + RscClass::Size());
@@ -418,7 +418,7 @@ ERRTYPE RscMgr::WriteHxxHeader( const RSCINST & rInst, FILE * fOutput,
pObjNode = rInst.pClass->GetObjNode( pClassData->aRefId );
if( !pObjNode && pTC )
{
- ByteString aMsg( pHS->getString( rInst.pClass->GetId() ).getStr() );
+ ByteString aMsg( pHS->getString( rInst.pClass->GetId() ).getStr() );
aMsg += ' ';
aMsg += pClassData->aRefId.GetName();
aError = WRN_MGR_REFNOTFOUND;
@@ -428,7 +428,7 @@ ERRTYPE RscMgr::WriteHxxHeader( const RSCINST & rInst, FILE * fOutput,
if( pObjNode )
{
- RSCINST aRefI;
+ RSCINST aRefI;
aRefI = RSCINST( rInst.pClass, pObjNode->GetRscObj() );
aError = aRefI.pClass->WriteHxxHeader( aRefI, fOutput, pTC,
@@ -466,11 +466,11 @@ ERRTYPE RscMgr::WriteHxxHeader( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscMgr::WriteHxx()
+|* RscMgr::WriteHxx()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
ERRTYPE RscMgr::WriteHxx( const RSCINST & rInst, FILE * fOutput,
@@ -485,19 +485,19 @@ ERRTYPE RscMgr::WriteHxx( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscClass::WriteCxxHeader()
+|* RscClass::WriteCxxHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
ERRTYPE RscMgr::WriteCxxHeader( const RSCINST & rInst, FILE * fOutput,
RscTypCont * pTC, const RscId & rId )
{
- RscMgrInst * pClassData;
- ERRTYPE aError;
- ObjNode * pObjNode = NULL;
+ RscMgrInst * pClassData;
+ ERRTYPE aError;
+ ObjNode * pObjNode = NULL;
pClassData = (RscMgrInst *)(rInst.pData + RscClass::Size());
@@ -506,7 +506,7 @@ ERRTYPE RscMgr::WriteCxxHeader( const RSCINST & rInst, FILE * fOutput,
pObjNode = rInst.pClass->GetObjNode( pClassData->aRefId );
if( !pObjNode && pTC )
{
- ByteString aMsg( pHS->getString( rInst.pClass->GetId() ).getStr() );
+ ByteString aMsg( pHS->getString( rInst.pClass->GetId() ).getStr() );
aMsg += ' ';
aMsg += pClassData->aRefId.GetName();
aError = WRN_MGR_REFNOTFOUND;
@@ -516,7 +516,7 @@ ERRTYPE RscMgr::WriteCxxHeader( const RSCINST & rInst, FILE * fOutput,
if( pObjNode )
{
- RSCINST aRefI;
+ RSCINST aRefI;
aRefI = RSCINST( rInst.pClass, pObjNode->GetRscObj() );
aError = aRefI.pClass->WriteCxxHeader( aRefI, fOutput, pTC,
@@ -567,11 +567,11 @@ ERRTYPE RscMgr::WriteCxxHeader( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscClass::WriteCxx()
+|* RscClass::WriteCxx()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
ERRTYPE RscMgr::WriteCxx( const RSCINST & rInst, FILE * fOutput,
@@ -587,16 +587,16 @@ ERRTYPE RscMgr::WriteCxx( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscArray::IsConsistent()
+|* RscArray::IsConsistent()
|*
-|* Beschreibung
-|* Ersterstellung MM 23.09.91
-|* Letzte Aenderung MM 23.09.91
+|* Beschreibung
+|* Ersterstellung MM 23.09.91
+|* Letzte Aenderung MM 23.09.91
|*
*************************************************************************/
BOOL RscMgr::IsConsistent( const RSCINST & rInst, RscInconsList * pList )
{
- BOOL bRet;
+ BOOL bRet;
RscMgrInst * pClassData;
bRet = RscClass::IsConsistent( rInst, pList );
@@ -619,11 +619,11 @@ BOOL RscMgr::IsConsistent( const RSCINST & rInst, RscInconsList * pList )
/*************************************************************************
|*
-|* RscMgr::GetRef()
+|* RscMgr::GetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.05.91
-|* Letzte Aenderung MM 15.05.91
+|* Beschreibung
+|* Ersterstellung MM 15.05.91
+|* Letzte Aenderung MM 15.05.91
|*
*************************************************************************/
ERRTYPE RscMgr::GetRef( const RSCINST & rInst, RscId * pRscId ){
@@ -636,20 +636,20 @@ ERRTYPE RscMgr::GetRef( const RSCINST & rInst, RscId * pRscId ){
/*************************************************************************
|*
-|* RscMgr::IsToDeep()
+|* RscMgr::IsToDeep()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.05.91
-|* Letzte Aenderung MM 15.05.91
+|* Beschreibung
+|* Ersterstellung MM 15.05.91
+|* Letzte Aenderung MM 15.05.91
|*
*************************************************************************/
ERRTYPE RscMgr::IsToDeep( const RSCINST & rInst, sal_uInt32 nDeep )
{
- RscMgrInst * pClassData;
- RscId aOldId, aId;
- ERRTYPE aError;
- RSCINST aTmpI = rInst;
- ObjNode * pObjNode;
+ RscMgrInst * pClassData;
+ RscId aOldId, aId;
+ ERRTYPE aError;
+ RSCINST aTmpI = rInst;
+ ObjNode * pObjNode;
pClassData = (RscMgrInst *)(rInst.pData + RscClass::Size());
@@ -672,7 +672,7 @@ ERRTYPE RscMgr::IsToDeep( const RSCINST & rInst, sal_uInt32 nDeep )
if( nDeep >= nRefDeep )
{
pClassData->aRefId = aOldId;
- aError = ERR_REFTODEEP;
+ aError = ERR_REFTODEEP;
}
return( aError );
@@ -680,19 +680,19 @@ ERRTYPE RscMgr::IsToDeep( const RSCINST & rInst, sal_uInt32 nDeep )
/*************************************************************************
|*
-|* RscMgr::SetRef()
+|* RscMgr::SetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.05.91
-|* Letzte Aenderung MM 15.05.91
+|* Beschreibung
+|* Ersterstellung MM 15.05.91
+|* Letzte Aenderung MM 15.05.91
|*
*************************************************************************/
ERRTYPE RscMgr::SetRef( const RSCINST & rInst, const RscId & rRefId )
{
- RscMgrInst * pClassData;
- RscId aOldId, aId;
- ERRTYPE aError;
- RSCINST aTmpI = rInst;
+ RscMgrInst * pClassData;
+ RscId aOldId, aId;
+ ERRTYPE aError;
+ RSCINST aTmpI = rInst;
if( rRefId.IsId() &&
((rRefId.GetNumber() < 1) || (rRefId.GetNumber() > 0x7FFF)) )
diff --git a/rsc/source/res/rscrange.cxx b/rsc/source/res/rscrange.cxx
index 38c38455e99a..5ee347bb0f68 100644
--- a/rsc/source/res/rscrange.cxx
+++ b/rsc/source/res/rscrange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,11 +46,11 @@
/****************** R s c R a n g e **************************************/
/*************************************************************************
|*
-|* RscRange::RscRange()
+|* RscRange::RscRange()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
RscRange::RscRange( Atom nId, sal_uInt32 nTypeId )
@@ -62,11 +62,11 @@ RscRange::RscRange( Atom nId, sal_uInt32 nTypeId )
/*************************************************************************
|*
-|* RscRange::GetClassType()
+|* RscRange::GetClassType()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
RSCCLASS_TYPE RscRange::GetClassType() const
@@ -76,11 +76,11 @@ RSCCLASS_TYPE RscRange::GetClassType() const
/*************************************************************************
|*
-|* RscRange::SetRange()
+|* RscRange::SetRange()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
ERRTYPE RscRange::SetRange( INT32 nMinimum, INT32 nMaximum )
@@ -101,11 +101,11 @@ ERRTYPE RscRange::SetRange( INT32 nMinimum, INT32 nMaximum )
/*************************************************************************
|*
-|* RscRange::IsValueDefault()
+|* RscRange::IsValueDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.02.92
-|* Letzte Aenderung MM 15.02.92
+|* Beschreibung
+|* Ersterstellung MM 15.02.92
+|* Letzte Aenderung MM 15.02.92
|*
*************************************************************************/
BOOL RscRange::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef )
@@ -124,11 +124,11 @@ BOOL RscRange::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef )
/*************************************************************************
|*
-|* RscRange::SetNumber()
+|* RscRange::SetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
ERRTYPE RscRange::SetNumber( const RSCINST & rInst, INT32 nValue )
@@ -142,11 +142,11 @@ ERRTYPE RscRange::SetNumber( const RSCINST & rInst, INT32 nValue )
/*************************************************************************
|*
-|* RscRange::GetNumber()
+|* RscRange::GetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.04.91
-|* Letzte Aenderung MM 22.04.91
+|* Beschreibung
+|* Ersterstellung MM 22.04.91
+|* Letzte Aenderung MM 22.04.91
|*
*************************************************************************/
ERRTYPE RscRange::GetNumber( const RSCINST & rInst, INT32 * pN )
@@ -157,11 +157,11 @@ ERRTYPE RscRange::GetNumber( const RSCINST & rInst, INT32 * pN )
/*************************************************************************
|*
-|* RscRange::Create()
+|* RscRange::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
RSCINST RscRange::Create( RSCINST * pInst, const RSCINST & rDflt,
@@ -196,11 +196,11 @@ RSCINST RscRange::Create( RSCINST * pInst, const RSCINST & rDflt,
/*************************************************************************
|*
-|* RscRange::WriteSrc()
+|* RscRange::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.04.91
-|* Letzte Aenderung MM 08.04.91
+|* Beschreibung
+|* Ersterstellung MM 08.04.91
+|* Letzte Aenderung MM 08.04.91
|*
*************************************************************************/
void RscRange::WriteSrc( const RSCINST & rInst, FILE * fOutput,
@@ -211,11 +211,11 @@ void RscRange::WriteSrc( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscRange::WriteRc()
+|* RscRange::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
ERRTYPE RscRange::WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
@@ -256,11 +256,11 @@ void RscRange::WriteRcAccess
/****************** R s c L o n g R a n g e ******************************/
/*************************************************************************
|*
-|* RscLongRange::RscLongRange()
+|* RscLongRange::RscLongRange()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.07.94
-|* Letzte Aenderung MM 18.07.94
+|* Beschreibung
+|* Ersterstellung MM 18.07.94
+|* Letzte Aenderung MM 18.07.94
|*
*************************************************************************/
RscLongRange::RscLongRange( Atom nId, sal_uInt32 nTypeId )
@@ -272,11 +272,11 @@ RscLongRange::RscLongRange( Atom nId, sal_uInt32 nTypeId )
/*************************************************************************
|*
-|* RscLongRange::GetClassType()
+|* RscLongRange::GetClassType()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.07.94
-|* Letzte Aenderung MM 18.07.94
+|* Beschreibung
+|* Ersterstellung MM 18.07.94
+|* Letzte Aenderung MM 18.07.94
|*
*************************************************************************/
RSCCLASS_TYPE RscLongRange::GetClassType() const
@@ -286,11 +286,11 @@ RSCCLASS_TYPE RscLongRange::GetClassType() const
/*************************************************************************
|*
-|* RscLongRange::SetRange()
+|* RscLongRange::SetRange()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.07.94
-|* Letzte Aenderung MM 18.07.94
+|* Beschreibung
+|* Ersterstellung MM 18.07.94
+|* Letzte Aenderung MM 18.07.94
|*
*************************************************************************/
ERRTYPE RscLongRange::SetRange( INT32 nMinimum, INT32 nMaximum )
@@ -311,11 +311,11 @@ ERRTYPE RscLongRange::SetRange( INT32 nMinimum, INT32 nMaximum )
/*************************************************************************
|*
-|* RscLongRange::IsValueDefault()
+|* RscLongRange::IsValueDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.02.92
-|* Letzte Aenderung MM 15.02.92
+|* Beschreibung
+|* Ersterstellung MM 15.02.92
+|* Letzte Aenderung MM 15.02.92
|*
*************************************************************************/
BOOL RscLongRange::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef )
@@ -330,11 +330,11 @@ BOOL RscLongRange::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef )
/*************************************************************************
|*
-|* RscLongRange::SetNumber()
+|* RscLongRange::SetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.07.94
-|* Letzte Aenderung MM 18.07.94
+|* Beschreibung
+|* Ersterstellung MM 18.07.94
+|* Letzte Aenderung MM 18.07.94
|*
*************************************************************************/
ERRTYPE RscLongRange::SetNumber( const RSCINST & rInst, INT32 nValue )
@@ -349,11 +349,11 @@ ERRTYPE RscLongRange::SetNumber( const RSCINST & rInst, INT32 nValue )
/*************************************************************************
|*
-|* RscLongRange::GetNumber()
+|* RscLongRange::GetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.04.91
-|* Letzte Aenderung MM 22.04.91
+|* Beschreibung
+|* Ersterstellung MM 22.04.91
+|* Letzte Aenderung MM 22.04.91
|*
*************************************************************************/
ERRTYPE RscLongRange::GetNumber( const RSCINST & rInst, INT32 * pN )
@@ -365,11 +365,11 @@ ERRTYPE RscLongRange::GetNumber( const RSCINST & rInst, INT32 * pN )
/*************************************************************************
|*
-|* RscLongRange::Create()
+|* RscLongRange::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.07.94
-|* Letzte Aenderung MM 18.07.94
+|* Beschreibung
+|* Ersterstellung MM 18.07.94
+|* Letzte Aenderung MM 18.07.94
|*
*************************************************************************/
RSCINST RscLongRange::Create( RSCINST * pInst, const RSCINST & rDflt,
@@ -392,7 +392,7 @@ RSCINST RscLongRange::Create( RSCINST * pInst, const RSCINST & rDflt,
memmove( aInst.pData, rDflt.pData, sizeof( RscLongRangeInst ) );
else
{
- INT32 lDflt;
+ INT32 lDflt;
if( 0L >= nMin && 0L <= nMax )
lDflt = 0;
else
@@ -407,11 +407,11 @@ RSCINST RscLongRange::Create( RSCINST * pInst, const RSCINST & rDflt,
/*************************************************************************
|*
-|* RscLongRange::WriteSrc()
+|* RscLongRange::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.07.94
-|* Letzte Aenderung MM 18.07.94
+|* Beschreibung
+|* Ersterstellung MM 18.07.94
+|* Letzte Aenderung MM 18.07.94
|*
*************************************************************************/
void RscLongRange::WriteSrc( const RSCINST & rInst, FILE * fOutput,
@@ -424,11 +424,11 @@ void RscLongRange::WriteSrc( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscLongRange::WriteRc()
+|* RscLongRange::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.07.94
-|* Letzte Aenderung MM 18.04.94
+|* Beschreibung
+|* Ersterstellung MM 18.07.94
+|* Letzte Aenderung MM 18.04.94
|*
*************************************************************************/
ERRTYPE RscLongRange::WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
@@ -457,9 +457,9 @@ void RscLongRange::WriteRcAccess
/****************** R s c L o n g E n u m R a n g e *********************/
/*************************************************************************
-|* RscLongEnumRange::RscLongEnumRange()
+|* RscLongEnumRange::RscLongEnumRange()
|*
-|* Beschreibung
+|* Beschreibung
*************************************************************************/
RscLongEnumRange::RscLongEnumRange( Atom nId, sal_uInt32 nTypeId )
: RscLongRange( nId, nTypeId )
@@ -467,9 +467,9 @@ RscLongEnumRange::RscLongEnumRange( Atom nId, sal_uInt32 nTypeId )
}
/*************************************************************************
-|* RscLongEnumRange::SetConst()
+|* RscLongEnumRange::SetConst()
|*
-|* Beschreibung
+|* Beschreibung
*************************************************************************/
ERRTYPE RscLongEnumRange::SetConst( const RSCINST & rInst, Atom /*nConst*/,
INT32 nValue )
@@ -480,11 +480,11 @@ ERRTYPE RscLongEnumRange::SetConst( const RSCINST & rInst, Atom /*nConst*/,
/****************** R s c I d R a n g e **********************************/
/*************************************************************************
|*
-|* RscIdRange::RscIdRange()
+|* RscIdRange::RscIdRange()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
RscIdRange::RscIdRange( Atom nId, sal_uInt32 nTypeId )
@@ -496,11 +496,11 @@ RscIdRange::RscIdRange( Atom nId, sal_uInt32 nTypeId )
/*************************************************************************
|*
-|* RscIdRange::RscIdRange()
+|* RscIdRange::RscIdRange()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
RSCCLASS_TYPE RscIdRange::GetClassType() const
@@ -510,11 +510,11 @@ RSCCLASS_TYPE RscIdRange::GetClassType() const
/*************************************************************************
|*
-|* RscIdRange::Create()
+|* RscIdRange::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.04.91
-|* Letzte Aenderung MM 03.04.91
+|* Beschreibung
+|* Ersterstellung MM 03.04.91
+|* Letzte Aenderung MM 03.04.91
|*
*************************************************************************/
RSCINST RscIdRange::Create( RSCINST * pInst, const RSCINST & rDflt, BOOL bOwnClass ){
@@ -552,11 +552,11 @@ RSCINST RscIdRange::Create( RSCINST * pInst, const RSCINST & rDflt, BOOL bOwnCla
/*************************************************************************
|*
-|* RscIdRange::Destroy()
+|* RscIdRange::Destroy()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.11.91
-|* Letzte Aenderung MM 22.11.91
+|* Beschreibung
+|* Ersterstellung MM 22.11.91
+|* Letzte Aenderung MM 22.11.91
|*
*************************************************************************/
void RscIdRange :: Destroy( const RSCINST & rInst ){
@@ -565,11 +565,11 @@ void RscIdRange :: Destroy( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscIdRange::IsValueDefault()
+|* RscIdRange::IsValueDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.01.92
-|* Letzte Aenderung MM 15.01.92
+|* Beschreibung
+|* Ersterstellung MM 15.01.92
+|* Letzte Aenderung MM 15.01.92
|*
*************************************************************************/
BOOL RscIdRange::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
@@ -590,11 +590,11 @@ BOOL RscIdRange::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
/*************************************************************************
|*
-|* RscIdRange::SetNumber()
+|* RscIdRange::SetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.11.91
-|* Letzte Aenderung MM 25.11.91
+|* Beschreibung
+|* Ersterstellung MM 25.11.91
+|* Letzte Aenderung MM 25.11.91
|*
*************************************************************************/
ERRTYPE RscIdRange::SetNumber( const RSCINST & rInst, INT32 nValue )
@@ -609,11 +609,11 @@ ERRTYPE RscIdRange::SetNumber( const RSCINST & rInst, INT32 nValue )
/*************************************************************************
|*
-|* RscIdRange::GetNumber()
+|* RscIdRange::GetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.11.91
-|* Letzte Aenderung MM 25.11.91
+|* Beschreibung
+|* Ersterstellung MM 25.11.91
+|* Letzte Aenderung MM 25.11.91
|*
*************************************************************************/
ERRTYPE RscIdRange::GetNumber( const RSCINST & rInst, INT32 * plValue ){
@@ -623,11 +623,11 @@ ERRTYPE RscIdRange::GetNumber( const RSCINST & rInst, INT32 * plValue ){
/*************************************************************************
|*
-|* RscIdRange::SetRef()
+|* RscIdRange::SetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.11.91
-|* Letzte Aenderung MM 22.11.91
+|* Beschreibung
+|* Ersterstellung MM 22.11.91
+|* Letzte Aenderung MM 22.11.91
|*
*************************************************************************/
ERRTYPE RscIdRange::SetRef( const RSCINST & rInst, const RscId & rRscId ){
@@ -647,11 +647,11 @@ ERRTYPE RscIdRange::SetRef( const RSCINST & rInst, const RscId & rRscId ){
/*************************************************************************
|*
-|* RscIdRange::GetRef()
+|* RscIdRange::GetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.11.91
-|* Letzte Aenderung MM 22.11.91
+|* Beschreibung
+|* Ersterstellung MM 22.11.91
+|* Letzte Aenderung MM 22.11.91
|*
*************************************************************************/
ERRTYPE RscIdRange::GetRef( const RSCINST & rInst, RscId * pRscId ){
@@ -662,11 +662,11 @@ ERRTYPE RscIdRange::GetRef( const RSCINST & rInst, RscId * pRscId ){
/*************************************************************************
|*
-|* RscIdRange::WriteSrc()
+|* RscIdRange::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.11.91
-|* Letzte Aenderung MM 25.11.91
+|* Beschreibung
+|* Ersterstellung MM 22.11.91
+|* Letzte Aenderung MM 25.11.91
|*
*************************************************************************/
void RscIdRange::WriteSrc( const RSCINST & rInst, FILE * fOutput,
@@ -677,11 +677,11 @@ void RscIdRange::WriteSrc( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscIdRange::WriteRc()
+|* RscIdRange::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.11.91
-|* Letzte Aenderung MM 25.11.91
+|* Beschreibung
+|* Ersterstellung MM 25.11.91
+|* Letzte Aenderung MM 25.11.91
|*
*************************************************************************/
ERRTYPE RscIdRange::WriteRc( const RSCINST & rInst, RscWriteRc & aMem,
@@ -709,11 +709,11 @@ void RscIdRange::WriteRcAccess
/*************************************************************************
|*
-|* RscIdRange::IsConsistent()
+|* RscIdRange::IsConsistent()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.11.91
-|* Letzte Aenderung MM 22.11.91
+|* Beschreibung
+|* Ersterstellung MM 22.11.91
+|* Letzte Aenderung MM 22.11.91
|*
*************************************************************************/
BOOL RscIdRange::IsConsistent( const RSCINST & rInst, RscInconsList * pList )
@@ -732,11 +732,11 @@ BOOL RscIdRange::IsConsistent( const RSCINST & rInst, RscInconsList * pList )
/****************** R s c B o o l ****************************************/
/*************************************************************************
|*
-|* RscBool::RscBool()
+|* RscBool::RscBool()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.04.91
-|* Letzte Aenderung MM 29.04.91
+|* Beschreibung
+|* Ersterstellung MM 29.04.91
+|* Letzte Aenderung MM 29.04.91
|*
*************************************************************************/
RscBool::RscBool( Atom nId, sal_uInt32 nTypeId )
@@ -747,11 +747,11 @@ RscBool::RscBool( Atom nId, sal_uInt32 nTypeId )
/*************************************************************************
|*
-|* RscBool::GetClassType()
+|* RscBool::GetClassType()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.04.91
-|* Letzte Aenderung MM 29.04.91
+|* Beschreibung
+|* Ersterstellung MM 29.04.91
+|* Letzte Aenderung MM 29.04.91
|*
*************************************************************************/
RSCCLASS_TYPE RscBool::GetClassType() const
@@ -761,11 +761,11 @@ RSCCLASS_TYPE RscBool::GetClassType() const
/*************************************************************************
|*
-|* RscBool::WriteSrc()
+|* RscBool::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.04.91
-|* Letzte Aenderung MM 29.04.91
+|* Beschreibung
+|* Ersterstellung MM 29.04.91
+|* Letzte Aenderung MM 29.04.91
|*
*************************************************************************/
void RscBool::WriteSrc( const RSCINST & rInst, FILE * fOutput,
@@ -796,11 +796,11 @@ void RscBool::WriteRcAccess
/****************** R s c B r e a k R a n g e ****************************/
/*************************************************************************
|*
-|* RscBreakRange::SetNumber()
+|* RscBreakRange::SetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.06.91
-|* Letzte Aenderung MM 24.06.91
+|* Beschreibung
+|* Ersterstellung MM 24.06.91
+|* Letzte Aenderung MM 24.06.91
|*
*************************************************************************/
RscBreakRange :: RscBreakRange( Atom nId, sal_uInt32 nTypeId )
@@ -811,11 +811,11 @@ RscBreakRange :: RscBreakRange( Atom nId, sal_uInt32 nTypeId )
/*************************************************************************
|*
-|* RscBreakRange::SetNumber()
+|* RscBreakRange::SetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.06.91
-|* Letzte Aenderung MM 24.06.91
+|* Beschreibung
+|* Ersterstellung MM 24.06.91
+|* Letzte Aenderung MM 24.06.91
|*
*************************************************************************/
ERRTYPE RscBreakRange::SetNumber( const RSCINST & rInst, INT32 nValue ){
@@ -827,18 +827,18 @@ ERRTYPE RscBreakRange::SetNumber( const RSCINST & rInst, INT32 nValue ){
/*************************************************************************
|*
-|* RscBreakRange::Create()
+|* RscBreakRange::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 24.06.91
-|* Letzte Aenderung MM 24.06.91
+|* Beschreibung
+|* Ersterstellung MM 24.06.91
+|* Letzte Aenderung MM 24.06.91
|*
*************************************************************************/
RSCINST RscBreakRange::Create( RSCINST * pInst, const RSCINST & rDflt,
BOOL bOwnClass )
{
RSCINST aInst;
- INT32 l;
+ INT32 l;
aInst = RscRange::Create( pInst, rDflt, bOwnClass );
diff --git a/rsc/source/res/rscstr.cxx b/rsc/source/res/rscstr.cxx
index e830b89ec4e3..079a6b19f6bf 100644
--- a/rsc/source/res/rscstr.cxx
+++ b/rsc/source/res/rscstr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,11 +46,11 @@
/****************** R s c S t r i n g ************************************/
/*************************************************************************
|*
-|* RscString::RscString()
+|* RscString::RscString()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 25.04.91
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 25.04.91
|*
*************************************************************************/
RscString::RscString( Atom nId, sal_uInt32 nTypeId )
@@ -62,11 +62,11 @@ RscString::RscString( Atom nId, sal_uInt32 nTypeId )
/*************************************************************************
|*
-|* RscString::GetClassType()
+|* RscString::GetClassType()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 25.04.91
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 25.04.91
|*
*************************************************************************/
RSCCLASS_TYPE RscString::GetClassType() const
@@ -76,15 +76,15 @@ RSCCLASS_TYPE RscString::GetClassType() const
/*************************************************************************
|*
-|* RscString::SetNumber()
+|* RscString::SetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 25.04.91
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 25.04.91
|*
*************************************************************************/
ERRTYPE RscString::SetString( const RSCINST & rInst, const char * pStr ){
- char * pTmp;
+ char * pTmp;
ERRTYPE aError;
if( aError.IsOk() ){
@@ -97,7 +97,7 @@ ERRTYPE RscString::SetString( const RSCINST & rInst, const char * pStr ){
}
if( pStr ){
- sal_uInt32 nLen = strlen( pStr ) +1;
+ sal_uInt32 nLen = strlen( pStr ) +1;
pTmp = (char *)rtl_allocateMemory( nLen );
memcpy( pTmp, pStr, nLen );
};
@@ -110,11 +110,11 @@ ERRTYPE RscString::SetString( const RSCINST & rInst, const char * pStr ){
/*************************************************************************
|*
-|* RscString::GetString()
+|* RscString::GetString()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 25.04.91
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 25.04.91
|*
*************************************************************************/
ERRTYPE RscString::GetString( const RSCINST & rInst, char ** ppStr ){
@@ -124,11 +124,11 @@ ERRTYPE RscString::GetString( const RSCINST & rInst, char ** ppStr ){
/*************************************************************************
|*
-|* RscString::GetRef()
+|* RscString::GetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.07.91
-|* Letzte Aenderung MM 22.07.91
+|* Beschreibung
+|* Ersterstellung MM 22.07.91
+|* Letzte Aenderung MM 22.07.91
|*
*************************************************************************/
ERRTYPE RscString::GetRef( const RSCINST & rInst, RscId * pRscId ){
@@ -138,11 +138,11 @@ ERRTYPE RscString::GetRef( const RSCINST & rInst, RscId * pRscId ){
/*************************************************************************
|*
-|* RscString::SetRef()
+|* RscString::SetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.05.91
-|* Letzte Aenderung MM 15.05.91
+|* Beschreibung
+|* Ersterstellung MM 15.05.91
+|* Letzte Aenderung MM 15.05.91
|*
*************************************************************************/
ERRTYPE RscString::SetRef( const RSCINST & rInst, const RscId & rRefId ){
@@ -158,11 +158,11 @@ ERRTYPE RscString::SetRef( const RSCINST & rInst, const RscId & rRefId ){
/*************************************************************************
|*
-|* RscString::Create()
+|* RscString::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 25.04.91
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 25.04.91
|*
*************************************************************************/
RSCINST RscString::Create( RSCINST * pInst, const RSCINST & rDflt,
@@ -197,11 +197,11 @@ RSCINST RscString::Create( RSCINST * pInst, const RSCINST & rDflt,
/*************************************************************************
|*
-|* RscString::Destroy()
+|* RscString::Destroy()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.05.91
-|* Letzte Aenderung MM 15.05.91
+|* Beschreibung
+|* Ersterstellung MM 15.05.91
+|* Letzte Aenderung MM 15.05.91
|*
*************************************************************************/
void RscString::Destroy( const RSCINST & rInst ){
@@ -212,15 +212,15 @@ void RscString::Destroy( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscString::IsValueDefault()
+|* RscString::IsValueDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.01.92
-|* Letzte Aenderung MM 15.01.92
+|* Beschreibung
+|* Ersterstellung MM 15.01.92
+|* Letzte Aenderung MM 15.01.92
|*
*************************************************************************/
BOOL RscString::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
- RscStringInst * pData = (RscStringInst*)rInst.pData;
+ RscStringInst * pData = (RscStringInst*)rInst.pData;
RscStringInst * pDefData = (RscStringInst*)pDef;
if( pDef ){
@@ -264,11 +264,11 @@ BOOL RscString::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
/*************************************************************************
|*
-|* RscString::WriteSrc()
+|* RscString::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 25.04.91
-|* Letzte Aenderung MM 25.04.91
+|* Beschreibung
+|* Ersterstellung MM 25.04.91
+|* Letzte Aenderung MM 25.04.91
|*
*************************************************************************/
void RscString::WriteSrc( const RSCINST & rInst, FILE * fOutput,
@@ -284,8 +284,8 @@ void RscString::WriteSrc( const RSCINST & rInst, FILE * fOutput,
RscStringInst * pStrI = ((RscStringInst *)rInst.pData);
if( pStrI->pStr ){
//char * pChangeTab = RscChar::GetChangeTab();
- sal_uInt32 n = 0;
- sal_uInt32 nPos, nSlashPos;
+ sal_uInt32 n = 0;
+ sal_uInt32 nPos, nSlashPos;
do {
fputc( '\"', fOutput );
@@ -312,22 +312,22 @@ void RscString::WriteSrc( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscString::WriteRc()
+|* RscString::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
ERRTYPE RscString::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
RscTypCont * pTC, sal_uInt32 nDeep, BOOL bExtra )
{
ERRTYPE aError;
- ObjNode * pObjNode = NULL;
+ ObjNode * pObjNode = NULL;
if( ((RscStringInst *)rInst.pData)->aRefId.IsId() ){
- RscId aId( ((RscStringInst *)rInst.pData)->aRefId );
+ RscId aId( ((RscStringInst *)rInst.pData)->aRefId );
RSCINST aTmpI;
aTmpI.pClass = pRefClass;
@@ -349,7 +349,7 @@ ERRTYPE RscString::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
{
if( pTC )
{
- ByteString aMsg( pHS->getString( pRefClass->GetId() ).getStr() );
+ ByteString aMsg( pHS->getString( pRefClass->GetId() ).getStr() );
aMsg += ' ';
aMsg += aId.GetName();
aError = WRN_STR_REFNOTFOUND;
@@ -366,7 +366,7 @@ ERRTYPE RscString::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
{
if( pObjNode )
{
- RSCINST aRefI;
+ RSCINST aRefI;
aRefI = RSCINST( pRefClass, pObjNode->GetRscObj() );
aError = aRefI.pClass->WriteRc( aRefI, rMem, pTC, nDeep, bExtra );
diff --git a/rsc/source/res/rsctop.cxx b/rsc/source/res/rsctop.cxx
index 7b6ae4c06410..6f1e5e7c2949 100644
--- a/rsc/source/res/rsctop.cxx
+++ b/rsc/source/res/rsctop.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,11 +41,11 @@
/****************** R s c T o p ******************************************/
/*************************************************************************
|*
-|* RscTop::RscTop()
+|* RscTop::RscTop()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.06.91
-|* Letzte Aenderung MM 03.06.91
+|* Beschreibung
+|* Ersterstellung MM 03.06.91
+|* Letzte Aenderung MM 03.06.91
|*
*************************************************************************/
RscTop::RscTop( Atom nId, sal_uInt32 nTypIdent, RscTop * pSuperCl )
@@ -61,11 +61,11 @@ RscTop::RscTop( Atom nId, sal_uInt32 nTypIdent, RscTop * pSuperCl )
/*************************************************************************
|*
-|* RscTop::SetCallPar()
+|* RscTop::SetCallPar()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
void RscTop::SetCallPar( const ByteString & rPar1, const ByteString & rPar2,
@@ -78,11 +78,11 @@ void RscTop::SetCallPar( const ByteString & rPar1, const ByteString & rPar2,
/*************************************************************************
|*
-|* RscTop::GetDefault()
+|* RscTop::GetDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
RSCINST RscTop::GetDefault()
@@ -94,11 +94,11 @@ RSCINST RscTop::GetDefault()
/*************************************************************************
|*
-|* RscTop::Pre_dtor()
+|* RscTop::Pre_dtor()
|*
-|* Beschreibung
-|* Ersterstellung MM 19.06.91
-|* Letzte Aenderung MM 19.06.91
+|* Beschreibung
+|* Ersterstellung MM 19.06.91
+|* Letzte Aenderung MM 19.06.91
|*
*************************************************************************/
void RscTop :: Pre_dtor(){
@@ -111,24 +111,24 @@ void RscTop :: Pre_dtor(){
/*************************************************************************
|*
-|* RscTop::GetConstant()
+|* RscTop::GetConstant()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-Atom RscTop :: GetConstant( sal_uInt32 ){
+Atom RscTop :: GetConstant( sal_uInt32 ){
return InvalidAtom;
}
/*************************************************************************
|*
-|* RscTop::GetIndexType()
+|* RscTop::GetIndexType()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
RscTop * RscTop::GetTypeClass() const
@@ -141,11 +141,11 @@ RscTop * RscTop::GetTypeClass() const
/*************************************************************************
|*
-|* RscTop::Size()
+|* RscTop::Size()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
sal_uInt32 RscTop :: Size()
@@ -158,11 +158,11 @@ sal_uInt32 RscTop :: Size()
/*************************************************************************
|*
-|* RscTop::GetRef()
+|* RscTop::GetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop :: GetRef( const RSCINST & rInst, RscId * pRscId ){
@@ -174,11 +174,11 @@ ERRTYPE RscTop :: GetRef( const RSCINST & rInst, RscId * pRscId ){
/*************************************************************************
|*
-|* RscTop::InHierarchy()
+|* RscTop::InHierarchy()
|*
-|* Beschreibung
-|* Ersterstellung MM 17.05.91
-|* Letzte Aenderung MM 17.05.91
+|* Beschreibung
+|* Ersterstellung MM 17.05.91
+|* Letzte Aenderung MM 17.05.91
|*
*************************************************************************/
BOOL RscTop::InHierarchy( RscTop * pClass ){
@@ -191,11 +191,11 @@ BOOL RscTop::InHierarchy( RscTop * pClass ){
/*************************************************************************
|*
-|* RscTop::SetVariable()
+|* RscTop::SetVariable()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::SetVariable( Atom nVarName, RscTop * pClass,
@@ -212,11 +212,11 @@ ERRTYPE RscTop::SetVariable( Atom nVarName, RscTop * pClass,
/*************************************************************************
|*
-|* RscTop::EnumVariable()
+|* RscTop::EnumVariable()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.02.93
-|* Letzte Aenderung MM 03.02.93
+|* Beschreibung
+|* Ersterstellung MM 03.02.93
+|* Letzte Aenderung MM 03.02.93
|*
*************************************************************************/
void RscTop::EnumVariables( void * pData, VarEnumCallbackProc pProc )
@@ -227,11 +227,11 @@ void RscTop::EnumVariables( void * pData, VarEnumCallbackProc pProc )
/*************************************************************************
|*
-|* RscTop::GetVariable()
+|* RscTop::GetVariable()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
RSCINST RscTop::GetVariable
@@ -252,11 +252,11 @@ RSCINST RscTop::GetVariable
/*************************************************************************
|*
-|* RscTop::GetCopyVar()
+|* RscTop::GetCopyVar()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
RSCINST RscTop::GetCopyVar( const RSCINST & rInst, Atom nVarName )
@@ -270,11 +270,11 @@ RSCINST RscTop::GetCopyVar( const RSCINST & rInst, Atom nVarName )
/*************************************************************************
|*
-|* RscTop::GetTupelVar()
+|* RscTop::GetTupelVar()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
RSCINST RscTop::GetTupelVar( const RSCINST & rInst, sal_uInt32 nPos,
@@ -288,11 +288,11 @@ RSCINST RscTop::GetTupelVar( const RSCINST & rInst, sal_uInt32 nPos,
/*************************************************************************
|*
-|* RscTop::GetElement()
+|* RscTop::GetElement()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::GetElement( const RSCINST & rInst, const RscId & rEleName,
@@ -310,11 +310,11 @@ ERRTYPE RscTop::GetElement( const RSCINST & rInst, const RscId & rEleName,
/*************************************************************************
|*
-|* RscTop::GetArrayEle()
+|* RscTop::GetArrayEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::GetArrayEle
@@ -333,11 +333,11 @@ ERRTYPE RscTop::GetArrayEle
/*************************************************************************
|*
-|* RscTop::GetValueEle()
+|* RscTop::GetValueEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::GetValueEle
@@ -356,11 +356,11 @@ ERRTYPE RscTop::GetValueEle
/*************************************************************************
|*
-|* RscTop::SearchEle()
+|* RscTop::SearchEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
RSCINST RscTop::SearchEle( const RSCINST & rInst, const RscId & rEleName,
@@ -375,11 +375,11 @@ RSCINST RscTop::SearchEle( const RSCINST & rInst, const RscId & rEleName,
/*************************************************************************
|*
-|* RscTop::GetPosEle()
+|* RscTop::GetPosEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
RSCINST RscTop::GetPosEle( const RSCINST & rInst, sal_uInt32 nPos ){
@@ -392,11 +392,11 @@ RSCINST RscTop::GetPosEle( const RSCINST & rInst, sal_uInt32 nPos ){
/*************************************************************************
|*
-|* RscTop::MovePosEle()
+|* RscTop::MovePosEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
@@ -411,11 +411,11 @@ ERRTYPE RscTop::MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos,
/*************************************************************************
|*
-|* RscTop::SetPosRscId()
+|* RscTop::SetPosRscId()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::SetPosRscId( const RSCINST & rInst, sal_uInt32 nPos,
@@ -430,11 +430,11 @@ ERRTYPE RscTop::SetPosRscId( const RSCINST & rInst, sal_uInt32 nPos,
/*************************************************************************
|*
-|* RscTop::GetInfoEle()
+|* RscTop::GetInfoEle()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
SUBINFO_STRUCT RscTop::GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos ){
@@ -447,14 +447,14 @@ SUBINFO_STRUCT RscTop::GetInfoEle( const RSCINST & rInst, sal_uInt32 nPos ){
/*************************************************************************
|*
-|* RscTop::GetCount()
+|* RscTop::GetCount()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-sal_uInt32 RscTop::GetCount( const RSCINST & rInst ){
+sal_uInt32 RscTop::GetCount( const RSCINST & rInst ){
if( pSuperClass )
return pSuperClass->GetCount( rInst );
else
@@ -463,11 +463,11 @@ sal_uInt32 RscTop::GetCount( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscTop::SetNumber()
+|* RscTop::SetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::SetNumber( const RSCINST & rInst, INT32 lValue ){
@@ -480,11 +480,11 @@ ERRTYPE RscTop::SetNumber( const RSCINST & rInst, INT32 lValue ){
/*************************************************************************
|*
-|* RscTop::SetBool()
+|* RscTop::SetBool()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::SetBool( const RSCINST & rInst, BOOL bValue ){
@@ -497,11 +497,11 @@ ERRTYPE RscTop::SetBool( const RSCINST & rInst, BOOL bValue ){
/*************************************************************************
|*
-|* RscTop::SetConst()
+|* RscTop::SetConst()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::SetConst( const RSCINST & rInst, Atom nId, INT32 nVal )
@@ -514,11 +514,11 @@ ERRTYPE RscTop::SetConst( const RSCINST & rInst, Atom nId, INT32 nVal )
/*************************************************************************
|*
-|* RscTop::SetNotConst()
+|* RscTop::SetNotConst()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::SetNotConst( const RSCINST & rInst, Atom nId ){
@@ -531,11 +531,11 @@ ERRTYPE RscTop::SetNotConst( const RSCINST & rInst, Atom nId ){
/*************************************************************************
|*
-|* RscTop::SetString()
+|* RscTop::SetString()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::SetString( const RSCINST & rInst, const char * pStr ){
@@ -548,11 +548,11 @@ ERRTYPE RscTop::SetString( const RSCINST & rInst, const char * pStr ){
/*************************************************************************
|*
-|* RscTop::GetNumber()
+|* RscTop::GetNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::GetNumber( const RSCINST & rInst, INT32 * pN ){
@@ -565,11 +565,11 @@ ERRTYPE RscTop::GetNumber( const RSCINST & rInst, INT32 * pN ){
/*************************************************************************
|*
-|* RscTop::GetBool()
+|* RscTop::GetBool()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::GetBool( const RSCINST & rInst, BOOL * pB ){
@@ -582,11 +582,11 @@ ERRTYPE RscTop::GetBool( const RSCINST & rInst, BOOL * pB ){
/*************************************************************************
|*
-|* RscTop::GetCont()
+|* RscTop::GetCont()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::GetConst( const RSCINST & rInst, Atom * pH ){
@@ -599,11 +599,11 @@ ERRTYPE RscTop::GetConst( const RSCINST & rInst, Atom * pH ){
/*************************************************************************
|*
-|* RscTop::GetString()
+|* RscTop::GetString()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
ERRTYPE RscTop::GetString( const RSCINST & rInst, char ** ppStr ){
@@ -616,11 +616,11 @@ ERRTYPE RscTop::GetString( const RSCINST & rInst, char ** ppStr ){
/*************************************************************************
|*
-|* RscTop::Create()
+|* RscTop::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 17.05.91
-|* Letzte Aenderung MM 17.07.91
+|* Beschreibung
+|* Ersterstellung MM 17.05.91
+|* Letzte Aenderung MM 17.07.91
|*
*************************************************************************/
RSCINST RscTop::Create( RSCINST * pInst, const RSCINST & rDefInst, BOOL bOwnRange )
@@ -637,28 +637,28 @@ RSCINST RscTop::Create( RSCINST * pInst, const RSCINST & rDefInst, BOOL bOwnRang
/*************************************************************************
|*
-|* RscTop::Destroy()
+|* RscTop::Destroy()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-void RscTop::Destroy( const RSCINST & rInst ){
+void RscTop::Destroy( const RSCINST & rInst ){
if( pSuperClass )
pSuperClass->Destroy( rInst );
}
/*************************************************************************
|*
-|* RscTop::IsConsistent()
+|* RscTop::IsConsistent()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-BOOL RscTop::IsConsistent( const RSCINST & rInst,
+BOOL RscTop::IsConsistent( const RSCINST & rInst,
RscInconsList * pList )
{
if( pSuperClass )
@@ -669,14 +669,14 @@ BOOL RscTop::IsConsistent( const RSCINST & rInst,
/*************************************************************************
|*
-|* RscTop::SetToDefault()
+|* RscTop::SetToDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-void RscTop::SetToDefault( const RSCINST & rInst )
+void RscTop::SetToDefault( const RSCINST & rInst )
{
if( pSuperClass )
pSuperClass->SetToDefault( rInst );
@@ -684,14 +684,14 @@ void RscTop::SetToDefault( const RSCINST & rInst )
/*************************************************************************
|*
-|* RscTop::IsDefault()
+|* RscTop::IsDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-BOOL RscTop::IsDefault( const RSCINST & rInst ){
+BOOL RscTop::IsDefault( const RSCINST & rInst ){
if( pSuperClass )
return pSuperClass->IsDefault( rInst );
else
@@ -700,14 +700,14 @@ BOOL RscTop::IsDefault( const RSCINST & rInst ){
/*************************************************************************
|*
-|* RscTop::IsValueDefault()
+|* RscTop::IsValueDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-BOOL RscTop::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
+BOOL RscTop::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
if( pSuperClass )
return pSuperClass->IsValueDefault( rInst, pDef );
else
@@ -716,25 +716,25 @@ BOOL RscTop::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ){
/*************************************************************************
|*
-|* RscTop::SetDefault()
+|* RscTop::SetDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-void RscTop::SetDefault( const RSCINST & rInst, Atom nVarId ){
+void RscTop::SetDefault( const RSCINST & rInst, Atom nVarId ){
if( pSuperClass )
pSuperClass->SetDefault( rInst, nVarId );
}
/*************************************************************************
|*
-|* RscTop::GetDefault()
+|* RscTop::GetDefault()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
RSCINST RscTop::GetDefault( Atom nVarId ){
@@ -747,14 +747,14 @@ RSCINST RscTop::GetDefault( Atom nVarId ){
/*************************************************************************
|*
-|* RscTop::Delete()
+|* RscTop::Delete()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-void RscTop::Delete( const RSCINST & rInst, RscTop * pClass,
+void RscTop::Delete( const RSCINST & rInst, RscTop * pClass,
const RscId & rId )
{
if( pSuperClass )
@@ -763,14 +763,14 @@ void RscTop::Delete( const RSCINST & rInst, RscTop * pClass,
/*************************************************************************
|*
-|* RscTop::DeletePos()
+|* RscTop::DeletePos()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.10.91
-|* Letzte Aenderung MM 29.10.91
+|* Beschreibung
+|* Ersterstellung MM 29.10.91
+|* Letzte Aenderung MM 29.10.91
|*
*************************************************************************/
-void RscTop::DeletePos( const RSCINST & rInst, sal_uInt32 nPos )
+void RscTop::DeletePos( const RSCINST & rInst, sal_uInt32 nPos )
{
if( pSuperClass )
pSuperClass->DeletePos( rInst, nPos );
@@ -778,11 +778,11 @@ void RscTop::DeletePos( const RSCINST & rInst, sal_uInt32 nPos )
/*************************************************************************
|*
-|* RscTop::SetRef()
+|* RscTop::SetRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.09.91
-|* Letzte Aenderung MM 18.09.91
+|* Beschreibung
+|* Ersterstellung MM 18.09.91
+|* Letzte Aenderung MM 18.09.91
|*
*************************************************************************/
ERRTYPE RscTop::SetRef( const RSCINST & rInst, const RscId & rRefId ){
@@ -794,11 +794,11 @@ ERRTYPE RscTop::SetRef( const RSCINST & rInst, const RscId & rRefId ){
/*************************************************************************
|*
-|* RscTop::WriteHxxHeader()
+|* RscTop::WriteHxxHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
ERRTYPE RscTop::WriteHxxHeader( const RSCINST & rInst, FILE * fOutput,
@@ -812,11 +812,11 @@ ERRTYPE RscTop::WriteHxxHeader( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscTop::WriteHxx()
+|* RscTop::WriteHxx()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
ERRTYPE RscTop::WriteHxx( const RSCINST & rInst, FILE * fOutput,
@@ -829,11 +829,11 @@ ERRTYPE RscTop::WriteHxx( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscTop::WriteCxxHeader()
+|* RscTop::WriteCxxHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
ERRTYPE RscTop::WriteCxxHeader( const RSCINST & rInst, FILE * fOutput,
@@ -847,11 +847,11 @@ ERRTYPE RscTop::WriteCxxHeader( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscTop::WriteCxx()
+|* RscTop::WriteCxx()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
ERRTYPE RscTop::WriteCxx( const RSCINST & rInst, FILE * fOutput,
@@ -864,11 +864,11 @@ ERRTYPE RscTop::WriteCxx( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscTop::WriteSrcHeader()
+|* RscTop::WriteSrcHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.04.91
-|* Letzte Aenderung MM 08.04.91
+|* Beschreibung
+|* Ersterstellung MM 08.04.91
+|* Letzte Aenderung MM 08.04.91
|*
*************************************************************************/
void RscTop::WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
@@ -883,11 +883,11 @@ void RscTop::WriteSrcHeader( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscTop::WriteSrc()
+|* RscTop::WriteSrc()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.04.91
-|* Letzte Aenderung MM 08.04.91
+|* Beschreibung
+|* Ersterstellung MM 08.04.91
+|* Letzte Aenderung MM 08.04.91
|*
*************************************************************************/
void RscTop::WriteSrc( const RSCINST & rInst, FILE * fOutput,
@@ -899,11 +899,11 @@ void RscTop::WriteSrc( const RSCINST & rInst, FILE * fOutput,
/*************************************************************************
|*
-|* RscTop::WriteRcHeader()
+|* RscTop::WriteRcHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.04.91
-|* Letzte Aenderung MM 12.04.91
+|* Beschreibung
+|* Ersterstellung MM 12.04.91
+|* Letzte Aenderung MM 12.04.91
|*
*************************************************************************/
ERRTYPE RscTop::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem,
@@ -919,11 +919,11 @@ ERRTYPE RscTop::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem,
/*************************************************************************
|*
-|* RscTop::WriteRc()
+|* RscTop::WriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.04.91
-|* Letzte Aenderung MM 08.04.91
+|* Beschreibung
+|* Ersterstellung MM 08.04.91
+|* Letzte Aenderung MM 08.04.91
|*
*************************************************************************/
ERRTYPE RscTop::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
@@ -938,11 +938,11 @@ ERRTYPE RscTop::WriteRc( const RSCINST & rInst, RscWriteRc & rMem,
/*************************************************************************
|*
-|* RscTop::WriteSyntaxHeader()
+|* RscTop::WriteSyntaxHeader()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
void RscTop::WriteSyntaxHeader( FILE * fOutput, RscTypCont * pTC )
@@ -957,11 +957,11 @@ void RscTop::WriteSyntaxHeader( FILE * fOutput, RscTypCont * pTC )
/*************************************************************************
|*
-|* RscTop::WriteSyntax()
+|* RscTop::WriteSyntax()
|*
-|* Beschreibung
-|* Ersterstellung MM 29.05.91
-|* Letzte Aenderung MM 29.05.91
+|* Beschreibung
+|* Ersterstellung MM 29.05.91
+|* Letzte Aenderung MM 29.05.91
|*
*************************************************************************/
void RscTop::WriteSyntax( FILE * fOutput, RscTypCont * pTC )
diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx
index b0bc9e0ef59d..a1c97e01266d 100644
--- a/rsc/source/rsc/rsc.cxx
+++ b/rsc/source/rsc/rsc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_rsc.hxx"
/****************************************************************/
-/* Include File */
+/* Include File */
/****************************************************************/
#include <stdlib.h>
@@ -72,37 +72,37 @@
#include <rtl/tencinfo.h>
#include <rtl/textenc.h>
-#include <vector>
+#include <vector>
using namespace rtl;
/*************** F o r w a r d s *****************************************/
-/*************** G l o b a l e V a r i a b l e n **********************/
-ByteString* pStdParType = NULL;
-ByteString* pStdPar1 = NULL;
-ByteString* pStdPar2 = NULL;
-ByteString* pWinParType = NULL;
-ByteString* pWinPar1 = NULL;
-ByteString* pWinPar2 = NULL;
-sal_uInt32 nRefDeep = 10;
+/*************** G l o b a l e V a r i a b l e n **********************/
+ByteString* pStdParType = NULL;
+ByteString* pStdPar1 = NULL;
+ByteString* pStdPar2 = NULL;
+ByteString* pWinParType = NULL;
+ByteString* pWinPar1 = NULL;
+ByteString* pWinPar2 = NULL;
+sal_uInt32 nRefDeep = 10;
AtomContainer* pHS = NULL;
/*************** R s c C m d L i n e ************************************/
/*************************************************************************
|*
-|* RscCmdLine::Init()
+|* RscCmdLine::Init()
|*
-|* Beschreibung Kommandozeile interpretierten
-|* Ersterstellung MM 03.05.91
-|* Letzte Aenderung MM 03.05.91
+|* Beschreibung Kommandozeile interpretierten
+|* Ersterstellung MM 03.05.91
+|* Letzte Aenderung MM 03.05.91
|*
*************************************************************************/
void RscCmdLine::Init()
{
- nCommands = 0;
- nByteOrder = RSC_BIGENDIAN;
+ nCommands = 0;
+ nByteOrder = RSC_BIGENDIAN;
DirEntry aEntry;
aPath = ByteString( aEntry.GetFull(), RTL_TEXTENCODING_ASCII_US ); //Immer im Aktuellen Pfad suchen
@@ -112,11 +112,11 @@ void RscCmdLine::Init()
/*************************************************************************
|*
-|* RscCmdLine::RscCmdLine()
+|* RscCmdLine::RscCmdLine()
|*
-|* Beschreibung Kommandozeile interpretierten
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Kommandozeile interpretierten
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
RscCmdLine::RscCmdLine()
@@ -126,21 +126,21 @@ RscCmdLine::RscCmdLine()
/*************************************************************************
|*
-|* RscCmdLine::RscCmdLine()
+|* RscCmdLine::RscCmdLine()
|*
-|* Beschreibung Kommandozeile interpretierten
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Kommandozeile interpretierten
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH )
{
- char * pStr;
- char ** ppStr;
- RscPtrPtr aCmdLine; // Kommandozeile
- ByteString aString;
- sal_uInt32 i;
- BOOL bOutputSrsIsSet = FALSE;
+ char * pStr;
+ char ** ppStr;
+ RscPtrPtr aCmdLine; // Kommandozeile
+ ByteString aString;
+ sal_uInt32 i;
+ BOOL bOutputSrsIsSet = FALSE;
Init(); // Defaults setzen
@@ -148,7 +148,7 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH )
if( pStr )
pEH->FatalError( ERR_OPENFILE, RscId(), pStr );
- /* check the inputted switches */
+ /* check the inputted switches */
ppStr = (char **)aCmdLine.GetBlock();
ppStr++;
i = 1;
@@ -196,10 +196,10 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH )
;
if( *pEqual )
{
- const ByteString aSPath( pEqual + 1 );
- DirEntry aSDir( String( aSPath, RTL_TEXTENCODING_ASCII_US ) );
-
- m_aReplacements.push_back( std::pair< OString, OString >( OString( (*ppStr)+4, pEqual - *ppStr - 4 ),
+ const ByteString aSPath( pEqual + 1 );
+ DirEntry aSDir( String( aSPath, RTL_TEXTENCODING_ASCII_US ) );
+
+ m_aReplacements.push_back( std::pair< OString, OString >( OString( (*ppStr)+4, pEqual - *ppStr - 4 ),
ByteString( aSDir.GetFull(), RTL_TEXTENCODING_ASCII_US ) ) );
}
}
@@ -239,14 +239,14 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH )
}
else if( !rsc_strnicmp( (*ppStr) + 1, "lip=", 4 ) )
{ // additional language specific include for system dependent files
- const ByteString aSysSearchDir( (*ppStr)+5 );
- DirEntry aSysDir( String( aSysSearchDir, RTL_TEXTENCODING_ASCII_US ) );
-
+ const ByteString aSysSearchDir( (*ppStr)+5 );
+ DirEntry aSysDir( String( aSysSearchDir, RTL_TEXTENCODING_ASCII_US ) );
+
m_aOutputFiles.back().aSysSearchDirs.push_back( ByteString( aSysDir.GetFull(), RTL_TEXTENCODING_ASCII_US ) );
-
+
if( m_aOutputFiles.back().aLangSearchPath.Len() )
m_aOutputFiles.back().aLangSearchPath.Append( ByteString( DirEntry::GetSearchDelimiter(), RTL_TEXTENCODING_ASCII_US ) );
-
+
m_aOutputFiles.back().aLangSearchPath.Append( aSysSearchDir );
}
else if( !rsc_strnicmp( (*ppStr) + 1, "fp=", 3 ) )
@@ -336,16 +336,16 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH )
/*************************************************************************
|*
-|* RscCmdLine::~RscCmdLine()
+|* RscCmdLine::~RscCmdLine()
|*
-|* Beschreibung dtor
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung dtor
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
RscCmdLine::~RscCmdLine()
{
- ByteString *pString;
+ ByteString *pString;
while( NULL != (pString = aInputList.Remove( (ULONG)0 )) )
delete pString;
@@ -355,7 +355,7 @@ RscCmdLine::~RscCmdLine()
/*************************************************************************
|*
-|* RscCmdLine::substitutePaths()
+|* RscCmdLine::substitutePaths()
|*
*************************************************************************/
@@ -391,21 +391,21 @@ OString RscCmdLine::substitutePaths( const OString& rIn )
/*************** R s c C o m p i l e r **********************************/
/****************************************************************/
-/* */
-/* RscCompiler :: RscCompiler(int argc, char **argv) */
-/* */
-/* Parameters : argc - number of parameters on command line */
-/* argv - arry of pointers to input parameters */
-/* */
-/* Description : main calling routine. Calls functions to */
-/* check and assign the input parameters. It then builds the */
-/* command line to call the Glockenspiel preprocessor */
+/* */
+/* RscCompiler :: RscCompiler(int argc, char **argv) */
+/* */
+/* Parameters : argc - number of parameters on command line */
+/* argv - arry of pointers to input parameters */
+/* */
+/* Description : main calling routine. Calls functions to */
+/* check and assign the input parameters. It then builds the */
+/* command line to call the Glockenspiel preprocessor */
/****************************************************************/
RscCompiler::RscCompiler( RscCmdLine * pLine, RscTypCont * pTypCont )
{
- fListing = NULL;
- fExitFile = NULL;
+ fListing = NULL;
+ fExitFile = NULL;
//Kommandozeile setzen, TypContainer setzen
pCL = pLine;
@@ -421,11 +421,11 @@ RscCompiler::RscCompiler( RscCmdLine * pLine, RscTypCont * pTypCont )
/*************************************************************************
|*
-|* RscCompiler :: RscCompiler()
+|* RscCompiler :: RscCompiler()
|*
-|* Beschreibung
-|* Ersterstellung MM 07.02.91
-|* Letzte Aenderung MM 07.02.91
+|* Beschreibung
+|* Ersterstellung MM 07.02.91
+|* Letzte Aenderung MM 07.02.91
|*
*************************************************************************/
RscCompiler::~RscCompiler()
@@ -460,18 +460,18 @@ RscCompiler::~RscCompiler()
/*************************************************************************
|*
-|* RscCompiler::Start()
+|* RscCompiler::Start()
|*
-|* Beschreibung Datei in Kommandozeile aendern
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Datei in Kommandozeile aendern
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
ERRTYPE RscCompiler::Start()
{
- ERRTYPE aError;
- ByteString* pString;
- RscFile* pFName;
+ ERRTYPE aError;
+ ByteString* pString;
+ RscFile* pFName;
if( PRINTSYNTAX_FLAG & pCL->nCommands )
{
@@ -544,11 +544,11 @@ printf( "khg\n" );
}
/*************************************************************************
|*
-|* RscCmdLine::EndCompile()
+|* RscCmdLine::EndCompile()
|*
-|* Beschreibung Datei in Kommandozeile aendern
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Datei in Kommandozeile aendern
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
void RscCompiler::EndCompile()
@@ -560,11 +560,11 @@ void RscCompiler::EndCompile()
pTC->pEH->StdOut( ".\n", RscVerbosityVerbose );
// kopiere von TMP auf richtigen Namen
- unlink( pCL->aOutputSrs.GetBuffer() ); // Zieldatei loeschen
+ unlink( pCL->aOutputSrs.GetBuffer() ); // Zieldatei loeschen
if( !(pCL->nCommands & NOSYNTAX_FLAG) )
{
- FILE * foutput;
- RscFile * pFN;
+ FILE * foutput;
+ RscFile * pFN;
if( NULL == (foutput = fopen( pCL->aOutputSrs.GetBuffer(), "w" )) )
pTC->pEH->FatalError( ERR_OPENFILE, RscId(), pCL->aOutputSrs.GetBuffer() );
@@ -594,7 +594,7 @@ void RscCompiler::EndCompile()
pTC->pEH->StdOut( ".\n", RscVerbosityVerbose );
// kopiere von TMP auf richtigen Namen
- unlink( pCL->aOutputHxx.GetBuffer() ); // Zieldatei loeschen
+ unlink( pCL->aOutputHxx.GetBuffer() ); // Zieldatei loeschen
Append( pCL->aOutputHxx, aTmpOutputHxx );
unlink( aTmpOutputHxx.GetBuffer() );// TempDatei loeschen
aTmpOutputHxx = ByteString();
@@ -607,7 +607,7 @@ void RscCompiler::EndCompile()
pTC->pEH->StdOut( ".\n", RscVerbosityVerbose );
// kopiere von TMP auf richtigen Namen
- unlink( pCL->aOutputCxx.GetBuffer() ); // Zieldatei loeschen
+ unlink( pCL->aOutputCxx.GetBuffer() ); // Zieldatei loeschen
Append( pCL->aOutputCxx, aTmpOutputCxx );
unlink( aTmpOutputCxx.GetBuffer() );// TempDatei loeschen
aTmpOutputCxx = ByteString();
@@ -620,7 +620,7 @@ void RscCompiler::EndCompile()
pTC->pEH->StdOut( ".\n", RscVerbosityVerbose );
// kopiere von TMP auf richtigen Namen
- unlink( pCL->aOutputRcCtor.GetBuffer() ); // Zieldatei loeschen
+ unlink( pCL->aOutputRcCtor.GetBuffer() ); // Zieldatei loeschen
Append( pCL->aOutputRcCtor, aTmpOutputRcCtor );
unlink( aTmpOutputRcCtor.GetBuffer() );// TempDatei loeschen
aTmpOutputRcCtor = ByteString();
@@ -629,7 +629,7 @@ void RscCompiler::EndCompile()
if( aTmpOutputSrc.Len() )
{
// kopiere von TMP auf richtigen Namen
- unlink( pCL->aOutputSrc.GetBuffer() ); // Zieldatei loeschen
+ unlink( pCL->aOutputSrc.GetBuffer() ); // Zieldatei loeschen
Append( pCL->aOutputSrc, aTmpOutputSrc );
unlink( aTmpOutputSrc.GetBuffer() );// TempDatei loeschen
aTmpOutputSrc = ByteString();
@@ -650,18 +650,18 @@ void RscCompiler::EndCompile()
/*************************************************************************
|*
-|* RscCompiler::IncludeParser()
+|* RscCompiler::IncludeParser()
|*
-|* Beschreibung
-|* Ersterstellung MM 21.06.91
-|* Letzte Aenderung MM 21.06.91
+|* Beschreibung
+|* Ersterstellung MM 21.06.91
+|* Letzte Aenderung MM 21.06.91
|*
*************************************************************************/
ERRTYPE RscCompiler :: IncludeParser( ULONG lFileKey )
{
- FILE * finput;
- RscFile * pFName;
- ERRTYPE aError;
+ FILE * finput;
+ RscFile * pFName;
+ ERRTYPE aError;
pFName = pTC->aFileTab.Get( lFileKey );
if( !pFName )
@@ -677,10 +677,10 @@ ERRTYPE RscCompiler :: IncludeParser( ULONG lFileKey )
}
else
{
- RscFile * pFNTmp;
- ByteString aPathName;
- RscDepend * pDep;
- RscFileInst aFileInst( pTC, lFileKey, lFileKey, finput );
+ RscFile * pFNTmp;
+ ByteString aPathName;
+ RscDepend * pDep;
+ RscFileInst aFileInst( pTC, lFileKey, lFileKey, finput );
pFName->bScanned = TRUE;
::IncludeParser( &aFileInst );
@@ -718,20 +718,20 @@ ERRTYPE RscCompiler :: IncludeParser( ULONG lFileKey )
/*************************************************************************
|*
-|* RscCompiler :: ParseOneFile()
+|* RscCompiler :: ParseOneFile()
|*
-|* Beschreibung
-|* Ersterstellung MM 26.06.91
-|* Letzte Aenderung MM 26.06.91
+|* Beschreibung
+|* Ersterstellung MM 26.06.91
+|* Letzte Aenderung MM 26.06.91
|*
*************************************************************************/
-ERRTYPE RscCompiler :: ParseOneFile( ULONG lFileKey,
+ERRTYPE RscCompiler :: ParseOneFile( ULONG lFileKey,
const RscCmdLine::OutputFile* pOutputFile,
const WriteRcContext* pContext )
{
- FILE * finput = NULL;
- ERRTYPE aError;
- RscFile * pFName;
+ FILE * finput = NULL;
+ ERRTYPE aError;
+ RscFile * pFName;
pFName = pTC->aFileTab.Get( lFileKey );
if( !pFName )
@@ -754,20 +754,20 @@ ERRTYPE RscCompiler :: ParseOneFile( ULONG lFileKey,
pFName->bLoaded = FALSE; //bei Fehler nicht geladenen
else
{
- String aTmpName( ::GetTmpFileName(), RTL_TEXTENCODING_ASCII_US );
- DirEntry aTmpPath( aTmpName ), aSrsPath( String( pFName->aPathName.GetBuffer(), RTL_TEXTENCODING_ASCII_US ) );
-
+ String aTmpName( ::GetTmpFileName(), RTL_TEXTENCODING_ASCII_US );
+ DirEntry aTmpPath( aTmpName ), aSrsPath( String( pFName->aPathName.GetBuffer(), RTL_TEXTENCODING_ASCII_US ) );
+
aTmpPath.ToAbs();
aSrsPath.ToAbs();
-
+
if( pContext && pOutputFile )
PreprocessSrsFile( *pOutputFile, *pContext, aSrsPath, aTmpPath );
else
aSrsPath.CopyTo( aTmpPath, FSYS_ACTION_COPYFILE );
-
+
ByteString aParseFile( aTmpPath.GetFull(), RTL_TEXTENCODING_ASCII_US );
finput = fopen( aParseFile.GetBuffer(), "r" );
-
+
if( !finput )
{
pTC->pEH->Error( ERR_OPENFILE, NULL, RscId(), pFName->aPathName.GetBuffer() );
@@ -776,18 +776,18 @@ ERRTYPE RscCompiler :: ParseOneFile( ULONG lFileKey,
else
{
RscFileInst aFileInst( pTC, lFileKey, lFileKey, finput );
-
+
pTC->pEH->StdOut( "reading file ", RscVerbosityVerbose );
pTC->pEH->StdOut( aParseFile.GetBuffer(), RscVerbosityVerbose );
pTC->pEH->StdOut( " ", RscVerbosityVerbose );
-
+
aError = ::parser( &aFileInst );
if( aError.IsError() )
pTC->Delete( lFileKey );//Resourceobjekte loeschen
pTC->pEH->StdOut( "\n", RscVerbosityVerbose );
fclose( finput );
};
-
+
aTmpPath.Kill();
};
};
@@ -797,11 +797,11 @@ ERRTYPE RscCompiler :: ParseOneFile( ULONG lFileKey,
/*************************************************************************
|*
-|* RscCompiler :: Link()
+|* RscCompiler :: Link()
|*
-|* Beschreibung
-|* Ersterstellung MM 07.02.91
-|* Letzte Aenderung MM 07.02.91
+|* Beschreibung
+|* Ersterstellung MM 07.02.91
+|* Letzte Aenderung MM 07.02.91
|*
*************************************************************************/
@@ -816,9 +816,9 @@ static OString do_prefix( const char* pPrefix, const OUString& rFile )
ERRTYPE RscCompiler::Link()
{
- FILE * foutput;
- ERRTYPE aError;
- RscFile* pFName;
+ FILE * foutput;
+ ERRTYPE aError;
+ RscFile* pFName;
#ifdef UNX
#define PATHSEP '/'
@@ -829,7 +829,7 @@ ERRTYPE RscCompiler::Link()
if( !(pCL->nCommands & NOLINK_FLAG) )
{
::std::list<RscCmdLine::OutputFile>::const_iterator it;
-
+
for( it = pCL->m_aOutputFiles.begin(); it != pCL->m_aOutputFiles.end(); ++it )
{
// cleanup nodes
@@ -842,7 +842,7 @@ ERRTYPE RscCompiler::Link()
pFName->bLoaded = FALSE;
}
}
-
+
// rc-Datei schreiben
ByteString aDir( it->aOutputRc );
aDir.SetToken( aDir.GetTokenCount( PATHSEP )-1, PATHSEP, ByteString() );
@@ -858,7 +858,7 @@ ERRTYPE RscCompiler::Link()
// work dir for absolute Urls
OUString aCWD, aTmpUrl;
osl_getProcessWorkingDir( &aCWD.pData );
-
+
// get two temp file urls
OString aRcTmp, aSysListTmp, aSysList;
OUString aSysPath, aUrlDir;
@@ -891,7 +891,7 @@ ERRTYPE RscCompiler::Link()
if( osl_getAbsoluteFileURL( aCWD.pData, aTmpUrl.pData, &aUrlDir.pData ) != osl_File_E_None )
pTC->pEH->FatalError( ERR_OPENFILE, RscId(), do_prefix( "absolute url", aTmpUrl ) );
}
-
+
if( osl_getSystemPathFromFileURL( aUrlDir.pData, &aSysPath.pData ) != osl_File_E_None )
pTC->pEH->FatalError( ERR_OPENFILE, RscId(), do_prefix( "sys path conversion", aUrlDir ) );
@@ -944,8 +944,8 @@ ERRTYPE RscCompiler::Link()
#endif
pTC->SetSysSearchPath( aSysSearchPath );
- WriteRcContext aContext;
-
+ WriteRcContext aContext;
+
aContext.fOutput = foutput;
aContext.aOutputRc = it->aOutputRc;
aContext.aOutputSysList = aSysListTmp;
@@ -955,11 +955,11 @@ ERRTYPE RscCompiler::Link()
if( aContext.aOutputSysList.getLength() )
{
FILE* pSysListFile = fopen( aContext.aOutputSysList.getStr(), "wb" );
-
+
if( !pSysListFile )
pTC->pEH->FatalError( ERR_OPENFILE, RscId(), aContext.aOutputSysList.getStr() );
else
- fclose( pSysListFile );
+ fclose( pSysListFile );
}
// parse files for specific language
@@ -971,9 +971,9 @@ ERRTYPE RscCompiler::Link()
pTC->aFileTab.Seek( pFName );
}
};
-
+
aError = pTC->WriteRc( aContext );
-
+
fclose( foutput );
fExitFile = NULL;
unlink( it->aOutputRc.GetBuffer() );
@@ -987,11 +987,11 @@ ERRTYPE RscCompiler::Link()
}
else
{
-#ifdef UNX
+#ifdef UNX
chmod( it->aOutputRc.GetBuffer(), S_IRWXU | S_IRWXG | S_IROTH );
#endif
}
-
+
unlink( aSysList.getStr() );
if( rename( aSysListTmp.getStr(), aSysList.getStr() ) )
{
@@ -1003,7 +1003,7 @@ ERRTYPE RscCompiler::Link()
}
else
{
-#ifdef UNX
+#ifdef UNX
chmod( aSysList.getStr(), S_IRWXU | S_IRWXG | S_IROTH );
#endif
}
@@ -1096,12 +1096,12 @@ ERRTYPE RscCompiler::Link()
}
/********************************************************************/
-/* */
-/* Function : Append( ) */
-/* */
-/* Parameters : psw - pointer to a preprocessor switch */
-/* */
-/* Description : appends text files */
+/* */
+/* Function : Append( ) */
+/* */
+/* Parameters : psw - pointer to a preprocessor switch */
+/* */
+/* Description : appends text files */
/********************************************************************/
void RscCompiler::Append( const ByteString& rOutputSrs,
const ByteString& rTmpFile )
@@ -1116,11 +1116,11 @@ void RscCompiler::Append( const ByteString& rOutputSrs,
}
/********************************************************************/
-/* */
-/* Function : GetTmpFileName() */
-/* */
-/* Description : Packt einen Dateinamen in Tmp-Dateiliste. */
-/* */
+/* */
+/* Function : GetTmpFileName() */
+/* */
+/* Description : Packt einen Dateinamen in Tmp-Dateiliste. */
+/* */
/********************************************************************/
ByteString RscCompiler::GetTmpFileName()
{
@@ -1132,17 +1132,17 @@ ByteString RscCompiler::GetTmpFileName()
}
/********************************************************************/
-/* */
-/* Function : BOOL openinput() */
-/* */
-/* Description : Check to see if the input file exists and can */
-/* be opened for reading. */
+/* */
+/* Function : BOOL openinput() */
+/* */
+/* Description : Check to see if the input file exists and can */
+/* be opened for reading. */
/********************************************************************/
void RscCompiler::OpenInput( const ByteString& rInput )
{
FILE *fp;
- /* try to open the input file */
+ /* try to open the input file */
if( NULL == (fp = fopen( rInput.GetBuffer(), "r")))
pTC->pEH->FatalError( ERR_OPENFILE, RscId(), rInput.GetBuffer() );
@@ -1151,22 +1151,22 @@ void RscCompiler::OpenInput( const ByteString& rInput )
/*************************************************************************
|*
-|* GetImageFilePath()
+|* GetImageFilePath()
|*
|*************************************************************************/
bool RscCompiler::GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile,
const WriteRcContext& rContext,
- const ByteString& rBaseFileName,
+ const ByteString& rBaseFileName,
ByteString& rImagePath,
FILE* pSysListFile )
{
- ::std::list< ByteString > aFileNames;
- bool bFound = false;
-
- ByteString aFileName( rBaseFileName );
+ ::std::list< ByteString > aFileNames;
+ bool bFound = false;
+
+ ByteString aFileName( rBaseFileName );
aFileNames.push_back( aFileName += ".png" );
-
+
aFileName = rBaseFileName;
aFileNames.push_back( aFileName += ".bmp" );
@@ -1175,26 +1175,26 @@ bool RscCompiler::GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile,
while( ( aFileIter != aFileNames.end() ) && !bFound )
{
::std::list< ByteString >::const_iterator aDirIter( rOutputFile.aSysSearchDirs.begin() );
-
+
while( ( aDirIter != rOutputFile.aSysSearchDirs.end() ) && !bFound )
{
- const DirEntry aPath( String( *aDirIter, RTL_TEXTENCODING_ASCII_US ) );
- DirEntry aRelPath( aPath );
- DirEntry aAbsPath( aRelPath += DirEntry( String( *aFileIter, RTL_TEXTENCODING_ASCII_US ) ) );
-
+ const DirEntry aPath( String( *aDirIter, RTL_TEXTENCODING_ASCII_US ) );
+ DirEntry aRelPath( aPath );
+ DirEntry aAbsPath( aRelPath += DirEntry( String( *aFileIter, RTL_TEXTENCODING_ASCII_US ) ) );
+
aAbsPath.ToAbs();
const FileStat aFS( aAbsPath.GetFull() );
-
+
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "Searching image: %s\n", ByteString( aRelPath.GetFull(), RTL_TEXTENCODING_ASCII_US ).GetBuffer() );
#endif
if( aFS.IsKind( FSYS_KIND_FILE ) )
{
- std::list< std::pair< OString, OString > >::const_iterator aReplIter( rContext.pCmdLine->m_aReplacements.begin() );
- String aStr( aRelPath.GetFull() );
- OString aRelPathStr( aStr.GetBuffer(), aStr.Len(), RTL_TEXTENCODING_ASCII_US );
-
+ std::list< std::pair< OString, OString > >::const_iterator aReplIter( rContext.pCmdLine->m_aReplacements.begin() );
+ String aStr( aRelPath.GetFull() );
+ OString aRelPathStr( aStr.GetBuffer(), aStr.Len(), RTL_TEXTENCODING_ASCII_US );
+
while( ( aReplIter != rContext.pCmdLine->m_aReplacements.end() ) && !bFound )
{
ByteString aSearch( aReplIter->second );
@@ -1203,43 +1203,43 @@ bool RscCompiler::GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile,
aSearchIn.ToLowerAscii();
if( aSearchIn.Search( aSearch ) == 0 )
{
- sal_Int32 nCopyPos = aReplIter->second.getLength(), nLength = aRelPathStr.getLength();
- const sal_Char* pChars = aRelPathStr.getStr();
-
+ sal_Int32 nCopyPos = aReplIter->second.getLength(), nLength = aRelPathStr.getLength();
+ const sal_Char* pChars = aRelPathStr.getStr();
+
while( ( nCopyPos < nLength ) && ( pChars[ nCopyPos ] == '/' || pChars[ nCopyPos ] == '\\' || pChars[ nCopyPos ] == ':' ) )
{
++nCopyPos;
}
-
+
if( nCopyPos < nLength )
rImagePath = aRelPathStr.copy( nCopyPos ).replace( '\\', '/' );
-
+
bFound = true;
}
-
+
++aReplIter;
}
-
+
if( bFound && pSysListFile )
{
- DirEntry aSysPath( String( *aDirIter, RTL_TEXTENCODING_ASCII_US ) );
- String aSysPathFull( ( aSysPath += DirEntry( String( *aFileIter, RTL_TEXTENCODING_ASCII_US ) ) ).GetFull() );
- OString aSysPathStr( aSysPathFull.GetBuffer(), aSysPathFull.Len(), RTL_TEXTENCODING_ASCII_US );
-
+ DirEntry aSysPath( String( *aDirIter, RTL_TEXTENCODING_ASCII_US ) );
+ String aSysPathFull( ( aSysPath += DirEntry( String( *aFileIter, RTL_TEXTENCODING_ASCII_US ) ) ).GetFull() );
+ OString aSysPathStr( aSysPathFull.GetBuffer(), aSysPathFull.Len(), RTL_TEXTENCODING_ASCII_US );
+
fprintf( pSysListFile, "%s\n", rContext.pCmdLine->substitutePaths( aSysPathStr ).getStr() );
}
-
+
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "ImagePath to add: %s\n", rImagePath.GetBuffer() );
#endif
}
-
+
++aDirIter;
}
-
+
++aFileIter;
}
-
+
return bFound;
}
@@ -1247,60 +1247,60 @@ bool RscCompiler::GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile,
void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile,
const WriteRcContext& rContext,
- const DirEntry& rSrsInPath,
+ const DirEntry& rSrsInPath,
const DirEntry& rSrsOutPath )
{
- SvFileStream aIStm( rSrsInPath.GetFull(), STREAM_READ );
- SvFileStream aOStm( rSrsOutPath.GetFull(), STREAM_WRITE | STREAM_TRUNC );
+ SvFileStream aIStm( rSrsInPath.GetFull(), STREAM_READ );
+ SvFileStream aOStm( rSrsOutPath.GetFull(), STREAM_WRITE | STREAM_TRUNC );
::std::vector< ByteString > aMissingImages;
- FILE* pSysListFile = rContext.aOutputSysList.getLength() ? fopen( rContext.aOutputSysList.getStr(), "ab" ) : NULL;
- bool bRet = true;
+ FILE* pSysListFile = rContext.aOutputSysList.getLength() ? fopen( rContext.aOutputSysList.getStr(), "ab" ) : NULL;
+ bool bRet = true;
if( !aIStm.GetError() && !aOStm.GetError() )
{
ByteString aLine, aFilePath;
-
+
while( aIStm.ReadLine( aLine ) )
{
if( ( aLine.GetTokenCount( '=' ) == 2 ) &&
( aLine.GetToken( 0, '=' ).Search( "File" ) != STRING_NOTFOUND ) )
{
ByteString aBaseFileName( aLine.GetToken( 1, '"' ).GetToken( 0, '.' ) );
-
+
if( GetImageFilePath( rOutputFile, rContext, aBaseFileName, aFilePath, pSysListFile ) )
( ( aLine = "File = \"" ) += aFilePath ) += "\";";
else
aMissingImages.push_back( aBaseFileName );
-
+
aOStm.WriteLine( aLine );
}
else if( aLine.Search( "ImageList" ) != STRING_NOTFOUND )
{
::std::vector< ::std::pair< ByteString, sal_Int32 > > aEntryVector;
-
+
aOStm.WriteLine( aLine );
-
+
if( aLine.Search( ';' ) == STRING_NOTFOUND )
{
const sal_uInt32 nImgListStartPos = aIStm.Tell();
-
+
do
{
if( !aIStm.ReadLine( aLine ) )
break;
}
while( aLine.Search( "Prefix" ) == STRING_NOTFOUND );
-
+
const ByteString aPrefix( aLine.GetToken( 1, '"' ) );
aIStm.Seek( nImgListStartPos );
-
+
do
{
if (!aIStm.ReadLine( aLine ) )
break;
}
while( aLine.Search( "IdList" ) == STRING_NOTFOUND );
-
+
// scan all ids and collect images
while( aLine.Search( '}' ) == STRING_NOTFOUND )
{
@@ -1313,25 +1313,25 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile,
if( aLine.IsNumericAscii() )
{
- ByteString aBaseFileName( aPrefix );
- sal_Int32 nNumber = atoi( aLine.GetBuffer() );
+ ByteString aBaseFileName( aPrefix );
+ sal_Int32 nNumber = atoi( aLine.GetBuffer() );
if( nNumber < 10000 )
aBaseFileName += ByteString::CreateFromInt32( 0 );
-
+
if( GetImageFilePath( rOutputFile, rContext, aBaseFileName += aLine , aFilePath, pSysListFile ) )
aEntryVector.push_back( ::std::make_pair< ByteString, sal_Int32 >( aFilePath, nNumber ) );
else
aMissingImages.push_back( aBaseFileName );
}
}
-
+
const sal_uInt32 nImgListEndPos = aIStm.Tell();
aIStm.Seek( nImgListStartPos );
while( aIStm.Tell() < nImgListEndPos )
{
aIStm.ReadLine( aLine );
-
+
if( aLine.Search( "IdList" ) != STRING_NOTFOUND )
{
while( aLine.Search( '}' ) == STRING_NOTFOUND )
@@ -1340,21 +1340,21 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile,
else
aOStm.WriteLine( aLine );
}
-
+
aOStm.WriteLine( "FileList = {" );
-
+
for( sal_uInt32 i = 0; i < aEntryVector.size(); ++i )
{
ByteString aEntryString( "< \"" );
-
+
aEntryString += aEntryVector[ i ].first;
aEntryString += "\"; ";
aEntryString += ByteString::CreateFromInt32( aEntryVector[ i ].second );
aEntryString += "; >;";
-
+
aOStm.WriteLine( aEntryString );
}
-
+
aOStm.WriteLine( "};" );
}
else
@@ -1366,22 +1366,22 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile,
}
else
bRet = false;
-
+
if( aMissingImages.size() > 0 )
{
ByteString aImagesStr;
-
+
for( sal_uInt32 i = 0; i < aMissingImages.size(); ++i )
{
if( i )
aImagesStr += ' ';
-
+
aImagesStr += aMissingImages[ i ];
}
-
+
pTC->pEH->FatalError( ERR_NOIMAGE, RscId(), aImagesStr.GetBuffer() );
}
-
+
if( pSysListFile )
fclose( pSysListFile );
}
diff --git a/rsc/source/rscpp/cpp.h b/rsc/source/rscpp/cpp.h
index 8ec451ab9d3d..d25e83671a93 100644
--- a/rsc/source/rscpp/cpp.h
+++ b/rsc/source/rscpp/cpp.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,12 +38,12 @@ extern FILE *pCppOut; /* BP */
#if OSL_DEBUG_LEVEL > 1
extern FILE *pDefOut; /* ER */
#ifdef EVALDEFS
-#define NEVALBUF 2048
+#define NEVALBUF 2048
#endif
#endif
/* limit for reading commandfiles */
-#define PARALIMIT 100
+#define PARALIMIT 100
#ifndef EOS
/*
@@ -62,20 +62,20 @@ extern FILE *pDefOut; /* ER */
#define TOK_SEP 0x1E /* Token concatenation delim. */
#define COM_SEP 0x1F /* Magic comment separator */
-#ifdef EBCDIC
-#define HT 0x05 /* horizontal tab */
-#define NL 0x15 /* new line */
-#define CR 0x0D /* carriage return */
-#define DEL 0x07
+#ifdef EBCDIC
+#define HT 0x05 /* horizontal tab */
+#define NL 0x15 /* new line */
+#define CR 0x0D /* carriage return */
+#define DEL 0x07
#else
-#define HT 0x09 /* horizontal tab */
-#define NL 0x0A /* new line */
-#define CR 0x0D /* carriage return */
-#define DEL 0x7F
+#define HT 0x09 /* horizontal tab */
+#define NL 0x0A /* new line */
+#define CR 0x0D /* carriage return */
+#define DEL 0x7F
#endif
-#ifdef SOLAR
+#ifdef SOLAR
#define MAC_PARM 0x01 /* Macro formals start here */
#else
/*
@@ -85,7 +85,7 @@ extern FILE *pDefOut; /* ER */
* value is reserved for string substitution.
*/
-#define MAC_PARM DEL /* Macro formals start here */
+#define MAC_PARM DEL /* Macro formals start here */
#if PAR_MAC >= 33
assertion fails -- PAR_MAC is not less than 33
#endif
@@ -278,11 +278,11 @@ extern char *workp; /* Free space in work */
#if OSL_DEBUG_LEVEL > 1
extern int debug; /* Debug level */
/* ER dump & evaluate #define's */
-extern int bDumpDefs; /* TRUE if #define's dump req. */
-extern int bIsInEval; /* TRUE if #define dumping now */
+extern int bDumpDefs; /* TRUE if #define's dump req. */
+extern int bIsInEval; /* TRUE if #define dumping now */
#ifdef EVALDEFS
-extern char EvalBuf[NEVALBUF + 1]; /* evaluation buffer */
-extern int nEvalOff; /* offset to free buffer pos */
+extern char EvalBuf[NEVALBUF + 1]; /* evaluation buffer */
+extern int nEvalOff; /* offset to free buffer pos */
#endif
#endif
extern int keepcomments; /* Don't remove comments if set */
diff --git a/rsc/source/rscpp/cpp1.c b/rsc/source/rscpp/cpp1.c
index d02467a939b9..dce39fdbb0f1 100644
--- a/rsc/source/rscpp/cpp1.c
+++ b/rsc/source/rscpp/cpp1.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@ FILE *pCppOut = NULL;
FILE *pCppIn = NULL;
#if OSL_DEBUG_LEVEL > 1
-FILE *pDefOut = NULL; /* ER evtl. #define's dump */
+FILE *pDefOut = NULL; /* ER evtl. #define's dump */
#endif
#ifdef B200
@@ -70,9 +70,9 @@ FILEINFO *infile = NULL; /* Current input file */
int debug; /* TRUE if debugging now */
int bDumpDefs; /* TRUE if #define's dump req. */
#ifdef EVALDEFS
-int bIsInEval; /* TRUE if #define eval now */
-char EvalBuf[NEVALBUF + 1]; /* evaluation buffer */
-int nEvalOff = 0; /* offset to free buffer pos */
+int bIsInEval; /* TRUE if #define eval now */
+char EvalBuf[NEVALBUF + 1]; /* evaluation buffer */
+int nEvalOff = 0; /* offset to free buffer pos */
#endif
#endif
/*
@@ -349,7 +349,7 @@ nRunde++;
default:
exit(IO_ERROR); /* Can't happen */
}
-/* if ( pfargv )
+/* if ( pfargv )
{
for ( j=0;j++;j < PARALIMIT )
{
diff --git a/rsc/source/rscpp/cpp2.c b/rsc/source/rscpp/cpp2.c
index ccc49a37ba8f..41aaa28366b8 100644
--- a/rsc/source/rscpp/cpp2.c
+++ b/rsc/source/rscpp/cpp2.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/source/rscpp/cpp3.c b/rsc/source/rscpp/cpp3.c
index 0eec69a50ba3..f81be48ab0f1 100644
--- a/rsc/source/rscpp/cpp3.c
+++ b/rsc/source/rscpp/cpp3.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/source/rscpp/cpp4.c b/rsc/source/rscpp/cpp4.c
index 5a17a101cf0c..0f77a1900d02 100644
--- a/rsc/source/rscpp/cpp4.c
+++ b/rsc/source/rscpp/cpp4.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/source/rscpp/cpp5.c b/rsc/source/rscpp/cpp5.c
index afe5a2fe7d3c..9b4484fbcc9c 100644
--- a/rsc/source/rscpp/cpp5.c
+++ b/rsc/source/rscpp/cpp5.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,16 +26,16 @@
*
************************************************************************/
-#include <stdio.h>
-#include <ctype.h>
-#include "cppdef.h"
-#include "cpp.h"
+#include <stdio.h>
+#include <ctype.h>
+#include "cppdef.h"
+#include "cpp.h"
/*
* Evaluate an #if expression.
*/
-static char *opname[] = { /* For debug and error messages */
+static char *opname[] = { /* For debug and error messages */
"end of expression", "val", "id",
"+", "-", "*", "/", "%",
"<<", ">>", "&", "|", "^",
@@ -47,133 +47,133 @@ static char *opname[] = { /* For debug and error messages */
/*
* opdope[] has the operator precedence:
* Bits
- * 7 Unused (so the value is always positive)
- * 6-2 Precedence (000x .. 017x)
- * 1-0 Binary op. flags:
- * 01 The binop flag should be set/cleared when this op is seen.
- * 10 The new value of the binop flag.
+ * 7 Unused (so the value is always positive)
+ * 6-2 Precedence (000x .. 017x)
+ * 1-0 Binary op. flags:
+ * 01 The binop flag should be set/cleared when this op is seen.
+ * 10 The new value of the binop flag.
* Note: Expected, New binop
- * constant 0 1 Binop, end, or ) should follow constants
- * End of line 1 0 End may not be preceeded by an operator
- * binary 1 0 Binary op follows a value, value follows.
- * unary 0 0 Unary op doesn't follow a value, value follows
- * ( 0 0 Doesn't follow value, value or unop follows
- * ) 1 1 Follows value. Op follows.
+ * constant 0 1 Binop, end, or ) should follow constants
+ * End of line 1 0 End may not be preceeded by an operator
+ * binary 1 0 Binary op follows a value, value follows.
+ * unary 0 0 Unary op doesn't follow a value, value follows
+ * ( 0 0 Doesn't follow value, value or unop follows
+ * ) 1 1 Follows value. Op follows.
*/
-static char opdope[OP_MAX] = {
- 0001, /* End of expression */
- 0002, /* Digit */
- 0000, /* Letter (identifier) */
- 0141, 0141, 0151, 0151, 0151, /* ADD, SUB, MUL, DIV, MOD */
- 0131, 0131, 0101, 0071, 0071, /* ASL, ASR, AND, OR, XOR */
- 0111, 0111, 0121, 0121, 0121, 0121, /* EQ, NE, LT, LE, GE, GT */
- 0061, 0051, 0041, 0041, 0031, /* ANA, ORO, QUE, COL, CMA */
+static char opdope[OP_MAX] = {
+ 0001, /* End of expression */
+ 0002, /* Digit */
+ 0000, /* Letter (identifier) */
+ 0141, 0141, 0151, 0151, 0151, /* ADD, SUB, MUL, DIV, MOD */
+ 0131, 0131, 0101, 0071, 0071, /* ASL, ASR, AND, OR, XOR */
+ 0111, 0111, 0121, 0121, 0121, 0121, /* EQ, NE, LT, LE, GE, GT */
+ 0061, 0051, 0041, 0041, 0031, /* ANA, ORO, QUE, COL, CMA */
/*
* Unary op's follow
*/
- 0160, 0160, 0160, 0160, /* NEG, PLU, COM, NOT */
- 0170, 0013, 0023, /* LPA, RPA, END */
+ 0160, 0160, 0160, 0160, /* NEG, PLU, COM, NOT */
+ 0170, 0013, 0023, /* LPA, RPA, END */
};
/*
* OP_QUE and OP_RPA have alternate precedences:
*/
-#define OP_RPA_PREC 0013
-#define OP_QUE_PREC 0034
+#define OP_RPA_PREC 0013
+#define OP_QUE_PREC 0034
/*
* S_ANDOR and S_QUEST signal "short-circuit" boolean evaluation, so that
- * #if FOO != 0 && 10 / FOO ...
+ * #if FOO != 0 && 10 / FOO ...
* doesn't generate an error message. They are stored in optab.skip.
*/
-#define S_ANDOR 2
-#define S_QUEST 1
+#define S_ANDOR 2
+#define S_QUEST 1
typedef struct optab {
- char op; /* Operator */
- char prec; /* Its precedence */
- char skip; /* Short-circuit: TRUE to skip */
+ char op; /* Operator */
+ char prec; /* Its precedence */
+ char skip; /* Short-circuit: TRUE to skip */
} OPTAB;
-static int evalue; /* Current value from evallex() */
+static int evalue; /* Current value from evallex() */
-#ifdef nomacargs
+#ifdef nomacargs
FILE_LOCAL int
isbinary(op)
-register int op;
+register int op;
{
return (op >= FIRST_BINOP && op <= LAST_BINOP);
}
FILE_LOCAL int
isunary(op)
-register int op;
+register int op;
{
return (op >= FIRST_UNOP && op <= LAST_UNOP);
}
#else
-#define isbinary(op) (op >= FIRST_BINOP && op <= LAST_BINOP)
-#define isunary(op) (op >= FIRST_UNOP && op <= LAST_UNOP)
+#define isbinary(op) (op >= FIRST_BINOP && op <= LAST_BINOP)
+#define isunary(op) (op >= FIRST_UNOP && op <= LAST_UNOP)
#endif
/*
* The following definitions are used to specify basic variable sizes.
*/
-#ifndef S_CHAR
-#define S_CHAR (sizeof (char))
+#ifndef S_CHAR
+#define S_CHAR (sizeof (char))
#endif
-#ifndef S_SINT
-#define S_SINT (sizeof (short int))
+#ifndef S_SINT
+#define S_SINT (sizeof (short int))
#endif
-#ifndef S_INT
-#define S_INT (sizeof (int))
+#ifndef S_INT
+#define S_INT (sizeof (int))
#endif
-#ifndef S_LINT
-#define S_LINT (sizeof (long int))
+#ifndef S_LINT
+#define S_LINT (sizeof (long int))
#endif
-#ifndef S_FLOAT
-#define S_FLOAT (sizeof (float))
+#ifndef S_FLOAT
+#define S_FLOAT (sizeof (float))
#endif
-#ifndef S_DOUBLE
-#define S_DOUBLE (sizeof (double))
+#ifndef S_DOUBLE
+#define S_DOUBLE (sizeof (double))
#endif
-#ifndef S_PCHAR
-#define S_PCHAR (sizeof (char *))
+#ifndef S_PCHAR
+#define S_PCHAR (sizeof (char *))
#endif
-#ifndef S_PSINT
-#define S_PSINT (sizeof (short int *))
+#ifndef S_PSINT
+#define S_PSINT (sizeof (short int *))
#endif
-#ifndef S_PINT
-#define S_PINT (sizeof (int *))
+#ifndef S_PINT
+#define S_PINT (sizeof (int *))
#endif
-#ifndef S_PLINT
-#define S_PLINT (sizeof (long int *))
+#ifndef S_PLINT
+#define S_PLINT (sizeof (long int *))
#endif
-#ifndef S_PFLOAT
-#define S_PFLOAT (sizeof (float *))
+#ifndef S_PFLOAT
+#define S_PFLOAT (sizeof (float *))
#endif
-#ifndef S_PDOUBLE
-#define S_PDOUBLE (sizeof (double *))
+#ifndef S_PDOUBLE
+#define S_PDOUBLE (sizeof (double *))
#endif
-#ifndef S_PFPTR
-#define S_PFPTR (sizeof (int (*)()))
+#ifndef S_PFPTR
+#define S_PFPTR (sizeof (int (*)()))
#endif
typedef struct types {
- short type; /* This is the bit if */
- char *name; /* this is the token word */
+ short type; /* This is the bit if */
+ char *name; /* this is the token word */
} TYPES;
static TYPES basic_types[] = {
- { T_CHAR, "char", },
- { T_INT, "int", },
- { T_FLOAT, "float", },
- { T_DOUBLE, "double", },
- { T_SHORT, "short", },
- { T_LONG, "long", },
- { T_SIGNED, "signed", },
- { T_UNSIGNED, "unsigned", },
- { 0, NULL, }, /* Signal end */
+ { T_CHAR, "char", },
+ { T_INT, "int", },
+ { T_FLOAT, "float", },
+ { T_DOUBLE, "double", },
+ { T_SHORT, "short", },
+ { T_LONG, "long", },
+ { T_SIGNED, "signed", },
+ { T_UNSIGNED, "unsigned", },
+ { 0, NULL, }, /* Signal end */
};
/*
@@ -184,24 +184,24 @@ static short test_table[] = {
T_FLOAT | T_DOUBLE | T_CHAR | T_INT,
T_FLOAT | T_DOUBLE | T_SIGNED | T_UNSIGNED,
T_LONG | T_SHORT | T_CHAR,
- 0 /* end marker */
+ 0 /* end marker */
};
/*
* The order of this table is important -- it is also referenced by
* the command line processor to allow run-time overriding of the
* built-in size values. The order must not be changed:
- * char, short, int, long, float, double (func pointer)
+ * char, short, int, long, float, double (func pointer)
*/
SIZES size_table[] = {
- { T_CHAR, S_CHAR, S_PCHAR }, /* char */
- { T_SHORT, S_SINT, S_PSINT }, /* short int */
- { T_INT, S_INT, S_PINT }, /* int */
- { T_LONG, S_LINT, S_PLINT }, /* long */
- { T_FLOAT, S_FLOAT, S_PFLOAT }, /* float */
- { T_DOUBLE, S_DOUBLE, S_PDOUBLE }, /* double */
- { T_FPTR, 0, S_PFPTR }, /* int (*()) */
- { 0, 0, 0 }, /* End of table */
+ { T_CHAR, S_CHAR, S_PCHAR }, /* char */
+ { T_SHORT, S_SINT, S_PSINT }, /* short int */
+ { T_INT, S_INT, S_PINT }, /* int */
+ { T_LONG, S_LINT, S_PLINT }, /* long */
+ { T_FLOAT, S_FLOAT, S_PFLOAT }, /* float */
+ { T_DOUBLE, S_DOUBLE, S_PDOUBLE }, /* double */
+ { T_FPTR, 0, S_PFPTR }, /* int (*()) */
+ { 0, 0, 0 }, /* End of table */
};
@@ -218,49 +218,49 @@ eval()
* Evaluate an expression. Straight-forward operator precedence.
* This is called from control() on encountering an #if statement.
* It calls the following routines:
- * evallex Lexical analyser -- returns the type and value of
- * the next input token.
- * evaleval Evaluate the current operator, given the values on
- * the value stack. Returns a pointer to the (new)
- * value stack.
+ * evallex Lexical analyser -- returns the type and value of
+ * the next input token.
+ * evaleval Evaluate the current operator, given the values on
+ * the value stack. Returns a pointer to the (new)
+ * value stack.
* For compatiblity with older cpp's, this return returns 1 (TRUE)
* if a syntax error is detected.
*/
{
- register int op; /* Current operator */
- register int *valp; /* -> value vector */
- register OPTAB *opp; /* Operator stack */
- int prec; /* Op precedence */
- int binop; /* Set if binary op. needed */
- int op1; /* Operand from stack */
- int skip; /* For short-circuit testing */
- int value[NEXP]; /* Value stack */
- OPTAB opstack[NEXP]; /* Operand stack */
+ register int op; /* Current operator */
+ register int *valp; /* -> value vector */
+ register OPTAB *opp; /* Operator stack */
+ int prec; /* Op precedence */
+ int binop; /* Set if binary op. needed */
+ int op1; /* Operand from stack */
+ int skip; /* For short-circuit testing */
+ int value[NEXP]; /* Value stack */
+ OPTAB opstack[NEXP]; /* Operand stack */
#ifndef ZTC /* BP */
extern int *evaleval(); /* Does actual evaluation */
#endif
valp = value;
opp = opstack;
- opp->op = OP_END; /* Mark bottom of stack */
- opp->prec = opdope[OP_END]; /* And its precedence */
- opp->skip = 0; /* Not skipping now */
+ opp->op = OP_END; /* Mark bottom of stack */
+ opp->prec = opdope[OP_END]; /* And its precedence */
+ opp->skip = 0; /* Not skipping now */
binop = 0;
-again: ;
-#ifdef DEBUG_EVAL
+again: ;
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "In #if at again: skip = %d, binop = %d, line is: %s",
opp->skip, binop, infile->bptr);
#endif
if ((op = evallex(opp->skip)) == OP_SUB && binop == 0)
- op = OP_NEG; /* Unary minus */
+ op = OP_NEG; /* Unary minus */
else if (op == OP_ADD && binop == 0)
- op = OP_PLU; /* Unary plus */
+ op = OP_PLU; /* Unary plus */
else if (op == OP_FAIL)
- return (1); /* Error in evallex */
-#ifdef DEBUG_EVAL
+ return (1); /* Error in evallex */
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "op = %s, opdope = %03o, binop = %d, skip = %d\n",
opname[op], opdope[op], binop, opp->skip);
#endif
- if (op == DIG) { /* Value? */
+ if (op == DIG) { /* Value? */
if (binop != 0) {
cerror("misplaced constant in #if", NULLST);
return (1);
@@ -270,7 +270,7 @@ again: ;
return (1);
}
else {
-#ifdef DEBUG_EVAL
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "pushing %d onto value stack[%d]\n",
evalue, valp - value);
#endif
@@ -290,7 +290,7 @@ again: ;
}
binop = (prec & 2) >> 1;
for (;;) {
-#ifdef DEBUG_EVAL
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "op %s, prec %d., stacked op %s, prec %d, skip %d\n",
opname[op], prec, opname[opp->op], opp->prec, opp->skip);
#endif
@@ -299,7 +299,7 @@ again: ;
prec = OP_RPA_PREC;
else if (op == OP_QUE)
prec = OP_QUE_PREC;
- op1 = opp->skip; /* Save skip for test */
+ op1 = opp->skip; /* Save skip for test */
/*
* Push operator onto op. stack.
*/
@@ -311,24 +311,24 @@ again: ;
}
opp->op = (char)op;
opp->prec = (char)prec;
- skip = (valp[-1] != 0); /* Short-circuit tester */
+ skip = (valp[-1] != 0); /* Short-circuit tester */
/*
* Do the short-circuit stuff here. Short-circuiting
* stops automagically when operators are evaluated.
*/
if ((op == OP_ANA && !skip)
|| (op == OP_ORO && skip))
- opp->skip = S_ANDOR; /* And/or skip starts */
- else if (op == OP_QUE) /* Start of ?: operator */
+ opp->skip = S_ANDOR; /* And/or skip starts */
+ else if (op == OP_QUE) /* Start of ?: operator */
opp->skip = (char)((op1 & S_ANDOR) | ((!skip) ? S_QUEST : 0));
- else if (op == OP_COL) { /* : inverts S_QUEST */
+ else if (op == OP_COL) { /* : inverts S_QUEST */
opp->skip = (char)((op1 & S_ANDOR)
| (((op1 & S_QUEST) != 0) ? 0 : S_QUEST));
}
- else { /* Other ops leave */
- opp->skip = (char)op1; /* skipping unchanged. */
+ else { /* Other ops leave */
+ opp->skip = (char)op1; /* skipping unchanged. */
}
-#ifdef DEBUG_EVAL
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "stacking %s, valp[-1] == %d at %s",
opname[op], valp[-1], infile->bptr);
dumpstack(opstack, opp, value, valp);
@@ -339,27 +339,27 @@ again: ;
* Pop operator from op. stack and evaluate it.
* End of stack and '(' are specials.
*/
- skip = opp->skip; /* Remember skip value */
- switch ((op1 = opp->op)) { /* Look at stacked op */
- case OP_END: /* Stack end marker */
+ skip = opp->skip; /* Remember skip value */
+ switch ((op1 = opp->op)) { /* Look at stacked op */
+ case OP_END: /* Stack end marker */
if (op == OP_EOE)
- return (valp[-1]); /* Finished ok. */
- goto again; /* Read another op. */
+ return (valp[-1]); /* Finished ok. */
+ goto again; /* Read another op. */
- case OP_LPA: /* ( on stack */
- if (op != OP_RPA) { /* Matches ) on input */
+ case OP_LPA: /* ( on stack */
+ if (op != OP_RPA) { /* Matches ) on input */
cerror("unbalanced paren's, op is \"%s\"", opname[op]);
return (1);
}
- opp--; /* Unstack it */
- /* goto again; -- Fall through */
+ opp--; /* Unstack it */
+ /* goto again; -- Fall through */
case OP_QUE:
- goto again; /* Evaluate true expr. */
+ goto again; /* Evaluate true expr. */
- case OP_COL: /* : on stack. */
- opp--; /* Unstack : */
- if (opp->op != OP_QUE) { /* Matches ? on stack? */
+ case OP_COL: /* : on stack. */
+ opp--; /* Unstack : */
+ if (opp->op != OP_QUE) { /* Matches ? on stack? */
cerror("Misplaced '?' or ':', previous operator is %s",
opname[(int)opp->op]);
return (1);
@@ -367,19 +367,19 @@ again: ;
/*
* Evaluate op1.
*/
- default: /* Others: */
- opp--; /* Unstack the operator */
-#ifdef DEBUG_EVAL
+ default: /* Others: */
+ opp--; /* Unstack the operator */
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "Stack before evaluation of %s\n", opname[op1]);
dumpstack(opstack, opp, value, valp);
#endif
valp = evaleval(valp, op1, skip);
-#ifdef DEBUG_EVAL
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "Stack after evaluation\n");
dumpstack(opstack, opp, value, valp);
#endif
- } /* op1 switch end */
- } /* Stack unwind loop */
+ } /* op1 switch end */
+ } /* Stack unwind loop */
}
FILE_LOCAL int
@@ -388,20 +388,20 @@ evallex(int skip)
* Return next eval operator or value. Called from eval(). It
* calls a special-purpose routines for 'char' strings and
* numeric values:
- * evalchar called to evaluate 'x'
- * evalnum called to evaluate numbers.
+ * evalchar called to evaluate 'x'
+ * evalnum called to evaluate numbers.
*/
{
- register int c, c1, t;
+ register int c, c1, t;
-again: do { /* Collect the token */
+again: do { /* Collect the token */
c = skipws();
if ((c = macroid(c)) == EOF_CHAR || c == '\n') {
unget();
- return (OP_EOE); /* End of expression */
+ return (OP_EOE); /* End of expression */
}
} while ((t = type[c]) == LET && catenate());
- if (t == INV) { /* Total nonsense */
+ if (t == INV) { /* Total nonsense */
if (!skip) {
if (isascii(c) && isprint(c))
cierror("illegal character '%c' in #if", c);
@@ -410,38 +410,38 @@ again: do { /* Collect the token */
}
return (OP_FAIL);
}
- else if (t == QUO) { /* ' or " */
- if (c == '\'') { /* Character constant */
- evalue = evalchar(skip); /* Somewhat messy */
-#ifdef DEBUG_EVAL
+ else if (t == QUO) { /* ' or " */
+ if (c == '\'') { /* Character constant */
+ evalue = evalchar(skip); /* Somewhat messy */
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "evalchar returns %d.\n", evalue);
#endif
- return (DIG); /* Return a value */
+ return (DIG); /* Return a value */
}
cerror("Can't use a string in an #if", NULLST);
return (OP_FAIL);
}
- else if (t == LET) { /* ID must be a macro */
- if (streq(token, "defined")) { /* Or defined name */
+ else if (t == LET) { /* ID must be a macro */
+ if (streq(token, "defined")) { /* Or defined name */
c1 = c = skipws();
- if (c == '(') /* Allow defined(name) */
+ if (c == '(') /* Allow defined(name) */
c = skipws();
if (type[c] == LET) {
evalue = (lookid(c) != NULL);
- if (c1 != '(' /* Need to balance */
- || skipws() == ')') /* Did we balance? */
- return (DIG); /* Parsed ok */
+ if (c1 != '(' /* Need to balance */
+ || skipws() == ')') /* Did we balance? */
+ return (DIG); /* Parsed ok */
}
cerror("Bad #if ... defined() syntax", NULLST);
return (OP_FAIL);
}
- else if (streq(token, "sizeof")) /* New sizeof hackery */
- return (dosizeof()); /* Gets own routine */
+ else if (streq(token, "sizeof")) /* New sizeof hackery */
+ return (dosizeof()); /* Gets own routine */
/*
* The Draft ANSI C Standard says that an undefined symbol
* in an #if has the value zero. We are a bit pickier,
* warning except where the programmer was careful to write
- * #if defined(foo) ? foo : 0
+ * #if defined(foo) ? foo : 0
*/
#ifdef STRICT_UNDEF
if (!skip)
@@ -450,9 +450,9 @@ again: do { /* Collect the token */
evalue = 0;
return (DIG);
}
- else if (t == DIG) { /* Numbers are harder */
+ else if (t == DIG) { /* Numbers are harder */
evalue = evalnum(c);
-#ifdef DEBUG_EVAL
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "evalnum returns %d.\n", evalue);
#endif
}
@@ -460,7 +460,7 @@ again: do { /* Collect the token */
/*
* Process a possible multi-byte lexeme.
*/
- c1 = cget(); /* Peek at next char */
+ c1 = cget(); /* Peek at next char */
switch (c) {
case '!':
if (c1 == '=')
@@ -468,7 +468,7 @@ again: do { /* Collect the token */
break;
case '=':
- if (c1 != '=') { /* Can't say a=b in #if */
+ if (c1 != '=') { /* Can't say a=b in #if */
unget();
cerror("= not allowed in #if", NULLST);
return (OP_FAIL);
@@ -490,7 +490,7 @@ again: do { /* Collect the token */
break;
case '\\':
- if (c1 == '\n') /* Multi-line if */
+ if (c1 == '\n') /* Multi-line if */
goto again;
cerror("Unexpected \\ in #if", NULLST);
return (OP_FAIL);
@@ -505,15 +505,15 @@ dosizeof()
/*
* Process the sizeof (basic type) operation in an #if string.
* Sets evalue to the size and returns
- * DIG success
- * OP_FAIL bad parse or something.
+ * DIG success
+ * OP_FAIL bad parse or something.
*/
{
- register int c;
- register TYPES *tp;
- register SIZES *sizp;
- register short *testp;
- short typecode;
+ register int c;
+ register TYPES *tp;
+ register SIZES *sizp;
+ register short *testp;
+ short typecode;
if ((c = skipws()) != '(')
goto nogood;
@@ -523,23 +523,23 @@ dosizeof()
typecode = 0;
while (0 != (c = skipws())) {
if ((c = macroid(c)) == EOF_CHAR || c == '\n')
- goto nogood; /* End of line is a bug */
- else if (c == '(') { /* thing (*)() func ptr */
+ goto nogood; /* End of line is a bug */
+ else if (c == '(') { /* thing (*)() func ptr */
if (skipws() == '*'
- && skipws() == ')') { /* We found (*) */
- if (skipws() != '(') /* Let () be optional */
+ && skipws() == ')') { /* We found (*) */
+ if (skipws() != '(') /* Let () be optional */
unget();
else if (skipws() != ')')
goto nogood;
- typecode |= T_FPTR; /* Function pointer */
+ typecode |= T_FPTR; /* Function pointer */
}
- else { /* Junk is a bug */
+ else { /* Junk is a bug */
goto nogood;
}
}
- else if (type[c] != LET) /* Exit if not a type */
+ else if (type[c] != LET) /* Exit if not a type */
break;
- else if (!catenate()) { /* Maybe combine tokens */
+ else if (!catenate()) { /* Maybe combine tokens */
/*
* Look for this unexpandable token in basic_types.
* The code accepts "int long" as well as "long int"
@@ -554,7 +554,7 @@ dosizeof()
cerror("#if sizeof, unknown type \"%s\"", token);
return (OP_FAIL);
}
- typecode |= tp->type; /* Or in the type bit */
+ typecode |= tp->type; /* Or in the type bit */
}
}
/*
@@ -564,7 +564,7 @@ dosizeof()
typecode |= T_PTR;
c = skipws();
}
- if (c == ')') { /* Last syntax check */
+ if (c == ')') { /* Last syntax check */
for (testp = test_table; *testp != 0; testp++) {
if (!bittest(typecode & *testp)) {
cerror("#if ... sizeof: illegal type combination", NULLST);
@@ -573,13 +573,13 @@ dosizeof()
}
/*
* We assume that all function pointers are the same size:
- * sizeof (int (*)()) == sizeof (float (*)())
+ * sizeof (int (*)()) == sizeof (float (*)())
* We assume that signed and unsigned don't change the size:
- * sizeof (signed int) == (sizeof unsigned int)
+ * sizeof (signed int) == (sizeof unsigned int)
*/
- if ((typecode & T_FPTR) != 0) /* Function pointer */
+ if ((typecode & T_FPTR) != 0) /* Function pointer */
typecode = T_FPTR | T_PTR;
- else { /* Var or var * datum */
+ else { /* Var or var * datum */
typecode &= ~(T_SIGNED | T_UNSIGNED);
if ((typecode & (T_SHORT | T_LONG)) != 0)
typecode &= ~T_INT;
@@ -597,12 +597,12 @@ dosizeof()
? sizp->psize : sizp->size;
return (DIG);
}
- } /* We shouldn't fail */
+ } /* We shouldn't fail */
cierror("#if ... sizeof: bug, unknown type code 0x%x", typecode);
return (OP_FAIL);
}
-nogood: unget();
+nogood: unget();
cerror("#if ... sizeof() syntax error", NULLST);
return (OP_FAIL);
}
@@ -630,9 +630,9 @@ evalnum(int c)
* the unsigned suffix, but only returns a signed int value.
*/
{
- register int value;
- register int base;
- register int c1;
+ register int value;
+ register int base;
+ register int c1;
if (c != '0')
base = 10;
@@ -647,7 +647,7 @@ evalnum(int c)
if (isascii(c) && isupper(c1))
c1 = tolower(c1);
#ifdef EBCDIC
- if (c1 <= 'f')
+ if (c1 <= 'f')
#else
if (c1 >= 'a')
#endif
@@ -659,7 +659,7 @@ evalnum(int c)
value += c1;
c = cget();
}
- if (c == 'u' || c == 'U') /* Unsigned nonsense */
+ if (c == 'u' || c == 'U') /* Unsigned nonsense */
c = cget();
unget();
return (value);
@@ -671,18 +671,18 @@ evalchar(int skip)
* Get a character constant
*/
{
- register int c;
- register int value;
- register int count;
+ register int c;
+ register int value;
+ register int count;
instring = TRUE;
if ((c = cget()) == '\\') {
switch ((c = cget())) {
- case 'a': /* New in Standard */
+ case 'a': /* New in Standard */
#if ('a' == '\a' || '\a' == ALERT)
- value = ALERT; /* Use predefined value */
+ value = ALERT; /* Use predefined value */
#else
- value = '\a'; /* Use compiler's value */
+ value = '\a'; /* Use compiler's value */
#endif
break;
@@ -706,15 +706,15 @@ evalchar(int skip)
value = '\t';
break;
- case 'v': /* New in Standard */
+ case 'v': /* New in Standard */
#if ('v' == '\v' || '\v' == VT)
- value = VT; /* Use predefined value */
+ value = VT; /* Use predefined value */
#else
- value = '\v'; /* Use compiler's value */
+ value = '\v'; /* Use compiler's value */
#endif
break;
- case 'x': /* '\xFF' */
+ case 'x': /* '\xFF' */
count = 3;
value = 0;
while ((((c = get()) >= '0' && c <= '9')
@@ -783,12 +783,12 @@ evaleval(int* valp, int op, int skip)
* evaleval() returns the new pointer to the top of the value stack.
*/
{
- register int v1, v2 = 0;
+ register int v1, v2 = 0;
if (isbinary(op))
v2 = *--valp;
v1 = *--valp;
-#ifdef DEBUG_EVAL
+#ifdef DEBUG_EVAL
fprintf( pCppOut, "%s op %s", (isbinary(op)) ? "binary" : "unary",
opname[op]);
if (isbinary(op))
@@ -909,12 +909,12 @@ evaleval(int* valp, int op, int skip)
return (valp);
}
-#ifdef DEBUG_EVAL
+#ifdef DEBUG_EVAL
dumpstack(opstack, opp, value, valp)
-OPTAB opstack[NEXP]; /* Operand stack */
-register OPTAB *opp; /* Operator stack */
-int value[NEXP]; /* Value stack */
-register int *valp; /* -> value vector */
+OPTAB opstack[NEXP]; /* Operand stack */
+register OPTAB *opp; /* Operator stack */
+int value[NEXP]; /* Value stack */
+register int *valp; /* -> value vector */
{
fprintf( pCppOut, "index op prec skip name -- op stack at %s", infile->bptr);
while (opp > opstack) {
diff --git a/rsc/source/rscpp/cpp6.c b/rsc/source/rscpp/cpp6.c
index 1f142051b653..2bbf161c7a42 100644
--- a/rsc/source/rscpp/cpp6.c
+++ b/rsc/source/rscpp/cpp6.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -661,7 +661,7 @@ void dumpdef(char *why)
register DEFBUF **syp;
FILE *pRememberOut = NULL;
- if ( bDumpDefs ) /*ER */
+ if ( bDumpDefs ) /*ER */
{
pRememberOut = pCppOut;
pCppOut = pDefOut;
@@ -731,7 +731,7 @@ void dumpadef(char *why, register DEFBUF *dp)
EVALTYPE valEval;
bIsInEval = 1;
- infile = NULL; /* start from scrap */
+ infile = NULL; /* start from scrap */
line = 0;
wrongline = 0;
*token = EOS;
@@ -741,7 +741,7 @@ void dumpadef(char *why, register DEFBUF *dp)
strcpy( file->buffer, dp->repl );
fprintf( pCppOut, " ===> ");
nEvalOff = 0;
- cppmain(); /* get() frees also *file */
+ cppmain(); /* get() frees also *file */
valEval = 0;
if ( 0 == evaluate( EvalBuf, &valEval ) )
{
@@ -869,8 +869,8 @@ newline:
}
}
#if (HOST == SYS_UNIX)
-/*ER*/ if (c == '\r')
-/*ER*/ return get(); /* DOS fuck */
+/*ER*/ if (c == '\r')
+/*ER*/ return get(); /* DOS fuck */
#endif
if (c == '\n') /* Maintain current */
++line; /* line counter */
@@ -980,7 +980,7 @@ newline:
}
else if (c == '\f' || c == VT) /* Form Feed, Vertical */
c = ' '; /* Tab are whitespace */
- else if (c == 0xef) /* eat up UTF-8 BOM */
+ else if (c == 0xef) /* eat up UTF-8 BOM */
{
if((c = get()) == 0xbb)
{
diff --git a/rsc/source/rscpp/cppdef.h b/rsc/source/rscpp/cppdef.h
index b3adecbc41cb..d725e5f94694 100644
--- a/rsc/source/rscpp/cppdef.h
+++ b/rsc/source/rscpp/cppdef.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -293,7 +293,7 @@
* NINCLUDE The number of directories that may be specified
* on a per-system basis, or by the -I option.
* BLK_NEST The number of nested #if's permitted.
- * NFWORK FileNameWorkBuffer (added by erAck, was NWORK)
+ * NFWORK FileNameWorkBuffer (added by erAck, was NWORK)
*/
#ifndef IDMAX
@@ -313,7 +313,7 @@
da wir bald 10 Sprachen haben werden gleich ordentlich reingehauen.. */
#define NWORK 128000
#define NBUFF NWORK
-#define NFWORK 1024
+#define NFWORK 1024
#define NEXP 128
#define NINCLUDE 100
#define NPARMWORK (NWORK * 2)
@@ -322,7 +322,7 @@
#ifndef ALERT
#ifdef EBCDIC
-#define ALERT '\057'
+#define ALERT '\057'
#else
#define ALERT '\007' /* '\a' is "Bell" */
#endif
diff --git a/rsc/source/rscpp/cppmain.c b/rsc/source/rscpp/cppmain.c
index 4dc2d72bd4a9..598fded7248f 100644
--- a/rsc/source/rscpp/cppmain.c
+++ b/rsc/source/rscpp/cppmain.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/rsc/source/tools/rscchar.cxx b/rsc/source/tools/rscchar.cxx
index 7c72d1c8df2c..f6c6651d79e1 100644
--- a/rsc/source/tools/rscchar.cxx
+++ b/rsc/source/tools/rscchar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,9 +54,9 @@
*************************************************************************/
char * RscChar::MakeUTF8( char * pStr, UINT16 nTextEncoding )
{
- sal_Size nMaxUniCodeBuf = strlen( pStr ) + 1;
- char * pOrgStr = new char[ nMaxUniCodeBuf ];
- sal_uInt32 nOrgLen = 0;
+ sal_Size nMaxUniCodeBuf = strlen( pStr ) + 1;
+ char * pOrgStr = new char[ nMaxUniCodeBuf ];
+ sal_uInt32 nOrgLen = 0;
if( nMaxUniCodeBuf * 6 > 0x0FFFFF )
RscExit( 10 );
@@ -157,12 +157,12 @@ char * RscChar::MakeUTF8( char * pStr, UINT16 nTextEncoding )
pStr++;
}
- sal_Unicode * pUniCode = new sal_Unicode[ nMaxUniCodeBuf ];
+ sal_Unicode * pUniCode = new sal_Unicode[ nMaxUniCodeBuf ];
rtl_TextToUnicodeConverter hConv = rtl_createTextToUnicodeConverter( nTextEncoding );
sal_uInt32 nInfo;
sal_Size nSrcCvtBytes;
- sal_Size nUniSize = rtl_convertTextToUnicode( hConv, 0,
+ sal_Size nUniSize = rtl_convertTextToUnicode( hConv, 0,
pOrgStr, nOrgLen,
pUniCode, nMaxUniCodeBuf,
RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_DEFAULT
@@ -175,9 +175,9 @@ char * RscChar::MakeUTF8( char * pStr, UINT16 nTextEncoding )
rtl_destroyTextToUnicodeConverter( hConv );
hConv = rtl_createUnicodeToTextConverter( RTL_TEXTENCODING_UTF8 );
- // factor fo 6 is the maximum size of an UNICODE character as utf8
+ // factor fo 6 is the maximum size of an UNICODE character as utf8
char * pUtf8 = (char *)rtl_allocateMemory( nUniSize * 6 );
- rtl_convertUnicodeToText( hConv, 0,
+ rtl_convertUnicodeToText( hConv, 0,
pUniCode, nUniSize,
pUtf8, nUniSize * 6,
RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT
diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx
index 8c11dc13f9ab..b1c0a0483994 100644
--- a/rsc/source/tools/rscdef.cxx
+++ b/rsc/source/tools/rscdef.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,24 +39,24 @@ BOOL RscId::bNames = TRUE;
/*************************************************************************
|*
-|* static RscId::SetNames
-|* static RscId::SetNoNames
+|* static RscId::SetNames
+|* static RscId::SetNoNames
|*
-|* Beschreibung
-|* Ersterstellung MM 26.06.91
-|* Letzte Aenderung MM 26.06.91
+|* Beschreibung
+|* Ersterstellung MM 26.06.91
+|* Letzte Aenderung MM 26.06.91
|*
*************************************************************************/
void RscId::SetNames( BOOL bSet ) { bNames = bSet; }
-BOOL RscId::IsSetNames() { return bNames; }
+BOOL RscId::IsSetNames() { return bNames; }
/*************************************************************************
|*
-|* RscId::GetNumber
+|* RscId::GetNumber
|*
-|* Beschreibung
-|* Ersterstellung MM 17.05.91
-|* Letzte Aenderung MM 17.05.91
+|* Beschreibung
+|* Ersterstellung MM 17.05.91
+|* Letzte Aenderung MM 17.05.91
|*
*************************************************************************/
INT32 RscId::GetNumber() const{
@@ -67,11 +67,11 @@ INT32 RscId::GetNumber() const{
/*************************************************************************
|*
-|* RscId::Create()
+|* RscId::Create()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
void RscId::Create( const RscExpType & rExpType )
@@ -89,11 +89,11 @@ void RscId::Create( const RscExpType & rExpType )
/*************************************************************************
|*
-|* RscId::Destroy()
+|* RscId::Destroy()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
void RscId::Destroy(){
@@ -104,11 +104,11 @@ void RscId::Destroy(){
/*************************************************************************
|*
-|* RscId::RscId()
+|* RscId::RscId()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
RscId::RscId( const RscId& rRscId ){
@@ -119,11 +119,11 @@ RscId::RscId( const RscId& rRscId ){
/*************************************************************************
|*
-|* RscId::RscId()
+|* RscId::RscId()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 25.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 25.11.91
|*
*************************************************************************/
RscId::RscId( RscDefine * pDef ){
@@ -136,11 +136,11 @@ RscId::RscId( RscDefine * pDef ){
/*************************************************************************
|*
-|* RscId:: =
+|* RscId:: =
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
RscId& RscId::operator = ( const RscId& rRscId ){
@@ -153,11 +153,11 @@ RscId& RscId::operator = ( const RscId& rRscId ){
/*************************************************************************
|*
-|* RscId::operator ==
+|* RscId::operator ==
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 16.05.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 16.05.91
|*
*************************************************************************/
BOOL RscId::operator == ( const RscId& rRscId ) const
@@ -167,11 +167,11 @@ BOOL RscId::operator == ( const RscId& rRscId ) const
/*************************************************************************
|*
-|* RscId::operator <
+|* RscId::operator <
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 16.05.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 16.05.91
|*
*************************************************************************/
BOOL RscId::operator < ( const RscId& rRscId ) const
@@ -181,11 +181,11 @@ BOOL RscId::operator < ( const RscId& rRscId ) const
/*************************************************************************
|*
-|* RscId::operator >
+|* RscId::operator >
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 16.05.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 16.05.91
|*
*************************************************************************/
BOOL RscId::operator > ( const RscId& rRscId ) const
@@ -195,11 +195,11 @@ BOOL RscId::operator > ( const RscId& rRscId ) const
/*************************************************************************
|*
-|* RscId::INT32()
+|* RscId::INT32()
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 16.05.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 16.05.91
|*
*************************************************************************/
RscId::operator INT32() const
@@ -209,11 +209,11 @@ RscId::operator INT32() const
/*************************************************************************
|*
-|* RscId::GetNames()
+|* RscId::GetNames()
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 25.11.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 25.11.91
|*
*************************************************************************/
ByteString RscId::GetName() const
@@ -233,11 +233,11 @@ ByteString RscId::GetName() const
/*************************************************************************
|*
-|* RscId::GetMacro()
+|* RscId::GetMacro()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 25.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 25.11.91
|*
*************************************************************************/
ByteString RscId::GetMacro() const
@@ -255,11 +255,11 @@ ByteString RscId::GetMacro() const
/****************** R s c D e f i n e ************************************/
/*************************************************************************
|*
-|* RscDefine::RscDefine()
+|* RscDefine::RscDefine()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
RscDefine::RscDefine( ULONG lKey, const ByteString & rDefName, INT32 lDefId )
@@ -267,8 +267,8 @@ RscDefine::RscDefine( ULONG lKey, const ByteString & rDefName, INT32 lDefId )
{
nRefCount = 0;
lFileKey = lKey;
- lId = lDefId;
- pExp = NULL;
+ lId = lDefId;
+ pExp = NULL;
}
RscDefine::RscDefine( ULONG lKey, const ByteString & rDefName,
@@ -278,16 +278,16 @@ RscDefine::RscDefine( ULONG lKey, const ByteString & rDefName,
nRefCount = 0;
lFileKey = lKey;
pExpression->Evaluate( &lId );
- pExp = pExpression;
+ pExp = pExpression;
}
/*************************************************************************
|*
-|* RscDefine::~RscDefine()
+|* RscDefine::~RscDefine()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
RscDefine::~RscDefine(){
@@ -299,11 +299,11 @@ RscDefine::~RscDefine(){
/*************************************************************************
|*
-|* RscDefine::DecRef()
+|* RscDefine::DecRef()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
void RscDefine::DecRef(){
@@ -315,11 +315,11 @@ void RscDefine::DecRef(){
/*************************************************************************
|*
-|* RscDefine::DefineToNumber()
+|* RscDefine::DefineToNumber()
|*
-|* Beschreibung
-|* Ersterstellung MM 07.11.91
-|* Letzte Aenderung MM 07.11.91
+|* Beschreibung
+|* Ersterstellung MM 07.11.91
+|* Letzte Aenderung MM 07.11.91
|*
*************************************************************************/
void RscDefine::DefineToNumber()
@@ -332,11 +332,11 @@ void RscDefine::DefineToNumber()
/*************************************************************************
|*
-|* RscDefine::ChangeMacro()
+|* RscDefine::ChangeMacro()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
void RscDefine::ChangeMacro( RscExpression * pExpression ){
@@ -356,15 +356,15 @@ void RscDefine::ChangeMacro( INT32 lIdentifier ){
/*************************************************************************
|*
-|* RscDefine::Evaluate()
+|* RscDefine::Evaluate()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
BOOL RscDefine::Evaluate(){
- BOOL bRet = TRUE;
+ BOOL bRet = TRUE;
if( pExp )
bRet = !pExp->Evaluate( &lId );
@@ -374,11 +374,11 @@ BOOL RscDefine::Evaluate(){
/*************************************************************************
|*
-|* RscDefine::Search()
+|* RscDefine::Search()
|*
-|* Beschreibung
-|* Ersterstellung MM 11.11.91
-|* Letzte Aenderung MM 11.11.91
+|* Beschreibung
+|* Ersterstellung MM 11.11.91
+|* Letzte Aenderung MM 11.11.91
|*
*************************************************************************/
RscDefine * RscDefine::Search( const char * pStr ){
@@ -387,11 +387,11 @@ RscDefine * RscDefine::Search( const char * pStr ){
/*************************************************************************
|*
-|* RscDefine::GetMacro()
+|* RscDefine::GetMacro()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
ByteString RscDefine::GetMacro()
@@ -404,11 +404,11 @@ ByteString RscDefine::GetMacro()
/****************** R s c D e f i n e L i s t ****************************/
/*************************************************************************
|*
-|* RscDefineList::New()
+|* RscDefineList::New()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
RscDefine * RscDefineList::New( ULONG lFileKey, const ByteString & rDefName,
@@ -436,11 +436,11 @@ RscDefine * RscDefineList::New( ULONG lFileKey, const ByteString & rDefName,
/*************************************************************************
|*
-|* RscDefineList::Remove()
+|* RscDefineList::Remove()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
BOOL RscDefineList::Remove( RscDefine * pDef ){
@@ -477,11 +477,11 @@ BOOL RscDefineList::Remove(){
/*************************************************************************
|*
-|* RscDefineList::Befor()
+|* RscDefineList::Befor()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.11.91
-|* Letzte Aenderung MM 12.11.91
+|* Beschreibung
+|* Ersterstellung MM 12.11.91
+|* Letzte Aenderung MM 12.11.91
|*
*************************************************************************/
BOOL RscDefineList::Befor( const RscDefine * pFree,
@@ -506,11 +506,11 @@ BOOL RscDefineList::Befor( const RscDefine * pFree,
/*************************************************************************
|*
-|* RscDefineList::WriteAll()
+|* RscDefineList::WriteAll()
|*
-|* Beschreibung
-|* Ersterstellung MM 28.10.91
-|* Letzte Aenderung MM 28.10.91
+|* Beschreibung
+|* Ersterstellung MM 28.10.91
+|* Letzte Aenderung MM 28.10.91
|*
*************************************************************************/
void RscDefineList::WriteAll( FILE * fOutput )
@@ -529,11 +529,11 @@ void RscDefineList::WriteAll( FILE * fOutput )
/****************** R s c E x p T y p e **********************************/
/*************************************************************************
|*
-|* RscExpType::Evaluate()
+|* RscExpType::Evaluate()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
BOOL RscExpType::Evaluate( INT32 * plValue ) const{
@@ -554,11 +554,11 @@ BOOL RscExpType::Evaluate( INT32 * plValue ) const{
/*************************************************************************
|*
-|* RscExpType::GetMacro()
+|* RscExpType::GetMacro()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
void RscExpType::GetMacro( ByteString & rStr ) const
@@ -579,11 +579,11 @@ void RscExpType::GetMacro( ByteString & rStr ) const
/****************** R s c E x p r e s s i o n ****************************/
/*************************************************************************
|*
-|* RscExpression::RscExpression()
+|* RscExpression::RscExpression()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
RscExpression::RscExpression( RscExpType aLE, char cOp, RscExpType aRE )
@@ -599,11 +599,11 @@ RscExpression::RscExpression( RscExpType aLE, char cOp, RscExpType aRE )
/*************************************************************************
|*
-|* RscExpression::~RscExpression()
+|* RscExpression::~RscExpression()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
RscExpression::~RscExpression(){
@@ -620,11 +620,11 @@ RscExpression::~RscExpression(){
/*************************************************************************
|*
-|* RscExpression::Evaluate()
+|* RscExpression::Evaluate()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
BOOL RscExpression::Evaluate( INT32 * plValue ){
@@ -659,11 +659,11 @@ BOOL RscExpression::Evaluate( INT32 * plValue ){
/*************************************************************************
|*
-|* RscExpression::GetMacro()
+|* RscExpression::GetMacro()
|*
-|* Beschreibung
-|* Ersterstellung MM 01.11.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 01.11.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
ByteString RscExpression::GetMacro()
@@ -705,27 +705,27 @@ ByteString RscExpression::GetMacro()
/****************** R s c F i l e ****************************************/
/*************************************************************************
|*
-|* RscFile::RscFile()
+|* RscFile::RscFile()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
RscFile :: RscFile(){
bLoaded = FALSE;
bIncFile = FALSE;
- bDirty = FALSE;
+ bDirty = FALSE;
bScanned = FALSE;
}
/*************************************************************************
|*
-|* RscFile::~RscFile()
+|* RscFile::~RscFile()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
RscFile :: ~RscFile(){
@@ -744,13 +744,13 @@ RscFile :: ~RscFile(){
/*************************************************************************
|*
-|* RscFile::Depend()
+|* RscFile::Depend()
|*
-|* Beschreibung Diese Methode gibt TRUE zurueck, wenn lDepend
-|* existiert und hinter lFree steht, oder wenn
-|* lDepend nicht existiert.
-|* Ersterstellung MM 12.11.91
-|* Letzte Aenderung MM 12.11.91
+|* Beschreibung Diese Methode gibt TRUE zurueck, wenn lDepend
+|* existiert und hinter lFree steht, oder wenn
+|* lDepend nicht existiert.
+|* Ersterstellung MM 12.11.91
+|* Letzte Aenderung MM 12.11.91
|*
*************************************************************************/
BOOL RscFile::Depend( ULONG lDepend, ULONG lFree ){
@@ -774,11 +774,11 @@ BOOL RscFile::Depend( ULONG lDepend, ULONG lFree ){
/*************************************************************************
|*
-|* RscFile::InsertDependFile()
+|* RscFile::InsertDependFile()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.01.92
-|* Letzte Aenderung MM 06.01.92
+|* Beschreibung
+|* Ersterstellung MM 06.01.92
+|* Letzte Aenderung MM 06.01.92
|*
*************************************************************************/
BOOL RscFile :: InsertDependFile( ULONG lIncFile, ULONG lPos )
@@ -805,11 +805,11 @@ BOOL RscFile :: InsertDependFile( ULONG lIncFile, ULONG lPos )
/*************************************************************************
|*
-|* RscFile::RemoveDependFile()
+|* RscFile::RemoveDependFile()
|*
-|* Beschreibung
-|* Ersterstellung MM 18.11.91
-|* Letzte Aenderung MM 18.11.91
+|* Beschreibung
+|* Ersterstellung MM 18.11.91
+|* Letzte Aenderung MM 18.11.91
|*
*************************************************************************/
void RscFile :: RemoveDependFile( ULONG lDepFile )
@@ -829,11 +829,11 @@ void RscFile :: RemoveDependFile( ULONG lDepFile )
/****************** R s c D e f T r e e **********************************/
/*************************************************************************
|*
-|* RscDefTree::~RscDefTree()
+|* RscDefTree::~RscDefTree()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.11.91
-|* Letzte Aenderung MM 12.11.91
+|* Beschreibung
+|* Ersterstellung MM 12.11.91
+|* Letzte Aenderung MM 12.11.91
|*
*************************************************************************/
RscDefTree::~RscDefTree(){
@@ -842,11 +842,11 @@ RscDefTree::~RscDefTree(){
/*************************************************************************
|*
-|* RscDefTree::Remove()
+|* RscDefTree::Remove()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.11.91
-|* Letzte Aenderung MM 12.11.91
+|* Beschreibung
+|* Ersterstellung MM 12.11.91
+|* Letzte Aenderung MM 12.11.91
|*
*************************************************************************/
void RscDefTree::Remove(){
@@ -860,11 +860,11 @@ void RscDefTree::Remove(){
/*************************************************************************
|*
-|* RscDefTree::~Search()
+|* RscDefTree::~Search()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.11.91
-|* Letzte Aenderung MM 12.11.91
+|* Beschreibung
+|* Ersterstellung MM 12.11.91
+|* Letzte Aenderung MM 12.11.91
|*
*************************************************************************/
RscDefine * RscDefTree::Search( const char * pName ){
@@ -875,11 +875,11 @@ RscDefine * RscDefTree::Search( const char * pName ){
/*************************************************************************
|*
-|* RscDefTree::Insert()
+|* RscDefTree::Insert()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.11.91
-|* Letzte Aenderung MM 12.11.91
+|* Beschreibung
+|* Ersterstellung MM 12.11.91
+|* Letzte Aenderung MM 12.11.91
|*
*************************************************************************/
void RscDefTree::Insert( RscDefine * pDef ){
@@ -892,11 +892,11 @@ void RscDefTree::Insert( RscDefine * pDef ){
/*************************************************************************
|*
-|* RscDefTree::Remove()
+|* RscDefTree::Remove()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.11.91
-|* Letzte Aenderung MM 12.11.91
+|* Beschreibung
+|* Ersterstellung MM 12.11.91
+|* Letzte Aenderung MM 12.11.91
|*
*************************************************************************/
void RscDefTree::Remove( RscDefine * pDef ){
@@ -909,11 +909,11 @@ void RscDefTree::Remove( RscDefine * pDef ){
/*************************************************************************
|*
-|* RscDefTree::Evaluate()
+|* RscDefTree::Evaluate()
|*
-|* Beschreibung
-|* Ersterstellung MM 12.11.91
-|* Letzte Aenderung MM 12.11.91
+|* Beschreibung
+|* Ersterstellung MM 12.11.91
+|* Letzte Aenderung MM 12.11.91
|*
*************************************************************************/
BOOL RscDefTree::Evaluate( RscDefine * pDef ){
@@ -933,11 +933,11 @@ BOOL RscDefTree::Evaluate(){
/****************** R s c F i l e T a b **********************************/
/*************************************************************************
|*
-|* RscFileTab::RscFileTab()
+|* RscFileTab::RscFileTab()
|*
-|* Beschreibung
-|* Ersterstellung MM 07.11.91
-|* Letzte Aenderung MM 07.11.91
+|* Beschreibung
+|* Ersterstellung MM 07.11.91
+|* Letzte Aenderung MM 07.11.91
|*
*************************************************************************/
RscFileTab::RscFileTab(){
@@ -945,11 +945,11 @@ RscFileTab::RscFileTab(){
/*************************************************************************
|*
-|* RscFileTab::~RscFileTab()
+|* RscFileTab::~RscFileTab()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
RscFileTab :: ~RscFileTab(){
@@ -967,11 +967,11 @@ RscFileTab :: ~RscFileTab(){
/*************************************************************************
|*
-|* RscFileTab::Find()
+|* RscFileTab::Find()
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 16.05.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 16.05.91
|*
*************************************************************************/
ULONG RscFileTab :: Find( const ByteString & rName )
@@ -990,11 +990,11 @@ ULONG RscFileTab :: Find( const ByteString & rName )
/*************************************************************************
|*
-|* RscFileTab::FindDef()
+|* RscFileTab::FindDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 30.10.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 30.10.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
RscDefine * RscFileTab::FindDef( const char * pName ){
@@ -1003,16 +1003,16 @@ RscDefine * RscFileTab::FindDef( const char * pName ){
/*************************************************************************
|*
-|* RscFileTab::FindDef()
+|* RscFileTab::FindDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 30.10.91
-|* Letzte Aenderung MM 01.11.91
+|* Beschreibung
+|* Ersterstellung MM 30.10.91
+|* Letzte Aenderung MM 01.11.91
|*
*************************************************************************/
RscDefine * RscFileTab::FindDef( ULONG lFileKey, const ByteString & rName )
{
- RscDefine * pDef = FindDef( rName );
+ RscDefine * pDef = FindDef( rName );
if( pDef )
//befindet sich das DEFINE in einer Include-Datei in der
@@ -1024,11 +1024,11 @@ RscDefine * RscFileTab::FindDef( ULONG lFileKey, const ByteString & rName )
/*************************************************************************
|*
-|* RscFileTab::Depend()
+|* RscFileTab::Depend()
|*
-|* Beschreibung
-|* Ersterstellung MM 08.11.91
-|* Letzte Aenderung MM 08.11.91
+|* Beschreibung
+|* Ersterstellung MM 08.11.91
+|* Letzte Aenderung MM 08.11.91
|*
*************************************************************************/
BOOL RscFileTab::Depend( ULONG lDepend, ULONG lFree ){
@@ -1049,11 +1049,11 @@ BOOL RscFileTab::Depend( ULONG lDepend, ULONG lFree ){
/*************************************************************************
|*
-|* RscFileTab::TestDef()
+|* RscFileTab::TestDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 14.01.92
-|* Letzte Aenderung MM 14.01.92
+|* Beschreibung
+|* Ersterstellung MM 14.01.92
+|* Letzte Aenderung MM 14.01.92
|*
*************************************************************************/
BOOL RscFileTab::TestDef( ULONG lFileKey, ULONG lPos,
@@ -1073,11 +1073,11 @@ BOOL RscFileTab::TestDef( ULONG lFileKey, ULONG lPos,
/*************************************************************************
|*
-|* RscFileTab::TestDef()
+|* RscFileTab::TestDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 14.01.92
-|* Letzte Aenderung MM 14.01.92
+|* Beschreibung
+|* Ersterstellung MM 14.01.92
+|* Letzte Aenderung MM 14.01.92
|*
*************************************************************************/
BOOL RscFileTab::TestDef( ULONG lFileKey, ULONG lPos,
@@ -1107,11 +1107,11 @@ BOOL RscFileTab::TestDef( ULONG lFileKey, ULONG lPos,
/*************************************************************************
|*
-|* RscFileTab::NewDef()
+|* RscFileTab::NewDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
RscDefine * RscFileTab::NewDef( ULONG lFileKey, const ByteString & rDefName,
@@ -1135,11 +1135,11 @@ RscDefine * RscFileTab::NewDef( ULONG lFileKey, const ByteString & rDefName,
/*************************************************************************
|*
-|* RscFileTab::NewDef()
+|* RscFileTab::NewDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
RscDefine * RscFileTab::NewDef( ULONG lFileKey, const ByteString & rDefName,
@@ -1171,11 +1171,11 @@ RscDefine * RscFileTab::NewDef( ULONG lFileKey, const ByteString & rDefName,
/*************************************************************************
|*
-|* RscFileTab::IsDefUsed()
+|* RscFileTab::IsDefUsed()
|*
-|* Beschreibung
-|* Ersterstellung MM 22.11.91
-|* Letzte Aenderung MM 22.11.91
+|* Beschreibung
+|* Ersterstellung MM 22.11.91
+|* Letzte Aenderung MM 22.11.91
|*
*************************************************************************/
BOOL RscFileTab::IsDefUsed( const ByteString & rDefName )
@@ -1190,11 +1190,11 @@ BOOL RscFileTab::IsDefUsed( const ByteString & rDefName )
/*************************************************************************
|*
-|* RscFileTab::DeleteDef()
+|* RscFileTab::DeleteDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 11.11.91
-|* Letzte Aenderung MM 11.11.91
+|* Beschreibung
+|* Ersterstellung MM 11.11.91
+|* Letzte Aenderung MM 11.11.91
|*
*************************************************************************/
void RscFileTab::DeleteDef( const ByteString & rDefName )
@@ -1213,11 +1213,11 @@ void RscFileTab::DeleteDef( const ByteString & rDefName )
/*************************************************************************
|*
-|* RscFileTab::ChangeDef()
+|* RscFileTab::ChangeDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 11.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 11.11.91
|*
*************************************************************************/
BOOL RscFileTab::ChangeDef( const ByteString & rDefName, INT32 lId )
@@ -1234,11 +1234,11 @@ BOOL RscFileTab::ChangeDef( const ByteString & rDefName, INT32 lId )
/*************************************************************************
|*
-|* RscFileTab::ChangeDef()
+|* RscFileTab::ChangeDef()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 11.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 11.11.91
|*
*************************************************************************/
BOOL RscFileTab::ChangeDef( const ByteString & rDefName,
@@ -1246,7 +1246,7 @@ BOOL RscFileTab::ChangeDef( const ByteString & rDefName,
{
RscDefine * pDef = FindDef( rDefName );
RscFile * pFile;
- ULONG lPos = 0;
+ ULONG lPos = 0;
if( pDef ){
pFile = GetFile( pDef->GetFileKey() );
@@ -1269,11 +1269,11 @@ BOOL RscFileTab::ChangeDef( const ByteString & rDefName,
/*************************************************************************
|*
-|* RscFileTab::ChangeDefName()
+|* RscFileTab::ChangeDefName()
|*
-|* Beschreibung
-|* Ersterstellung MM 04.11.91
-|* Letzte Aenderung MM 04.11.91
+|* Beschreibung
+|* Ersterstellung MM 04.11.91
+|* Letzte Aenderung MM 04.11.91
|*
*************************************************************************/
BOOL RscFileTab::ChangeDefName( const ByteString & rDefName,
@@ -1297,15 +1297,15 @@ BOOL RscFileTab::ChangeDefName( const ByteString & rDefName,
/*************************************************************************
|*
-|* RscFileTab::DeleteFileContext()
+|* RscFileTab::DeleteFileContext()
|*
-|* Beschreibung
-|* Ersterstellung MM 09.12.91
-|* Letzte Aenderung MM 09.12.91
+|* Beschreibung
+|* Ersterstellung MM 09.12.91
+|* Letzte Aenderung MM 09.12.91
|*
*************************************************************************/
void RscFileTab :: DeleteFileContext( ULONG lFileKey ){
- RscFile * pFName;
+ RscFile * pFName;
pFName = GetFile( lFileKey );
if( pFName ){
@@ -1322,15 +1322,15 @@ void RscFileTab :: DeleteFileContext( ULONG lFileKey ){
/*************************************************************************
|*
-|* RscFileTab::DeleteFile()
+|* RscFileTab::DeleteFile()
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 16.05.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 16.05.91
|*
*************************************************************************/
void RscFileTab :: DeleteFile( ULONG lFileKey ){
- RscFile * pFName;
+ RscFile * pFName;
//Defines freigeben
DeleteFileContext( lFileKey );
@@ -1349,17 +1349,17 @@ void RscFileTab :: DeleteFile( ULONG lFileKey ){
/*************************************************************************
|*
-|* RscFileTab::NewCodeFile()
+|* RscFileTab::NewCodeFile()
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 16.05.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 16.05.91
|*
*************************************************************************/
ULONG RscFileTab :: NewCodeFile( const ByteString & rName )
{
- ULONG lKey;
- RscFile * pFName;
+ ULONG lKey;
+ RscFile * pFName;
lKey = Find( rName );
if( UNIQUEINDEX_ENTRY_NOTFOUND == lKey )
@@ -1375,17 +1375,17 @@ ULONG RscFileTab :: NewCodeFile( const ByteString & rName )
/*************************************************************************
|*
-|* RscFileTab::NewIncFile()
+|* RscFileTab::NewIncFile()
|*
-|* Beschreibung
-|* Ersterstellung MM 16.05.91
-|* Letzte Aenderung MM 16.05.91
+|* Beschreibung
+|* Ersterstellung MM 16.05.91
+|* Letzte Aenderung MM 16.05.91
|*
*************************************************************************/
ULONG RscFileTab :: NewIncFile( const ByteString & rName,
const ByteString & rPath )
{
- ULONG lKey;
+ ULONG lKey;
RscFile * pFName;
lKey = Find( rName );
diff --git a/rsc/source/tools/rschash.cxx b/rsc/source/tools/rschash.cxx
index ad496dfb3753..18e30a339f00 100644
--- a/rsc/source/tools/rschash.cxx
+++ b/rsc/source/tools/rschash.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,10 +50,10 @@ Atom AtomContainer::getID( const OString& rStr, bool bOnlyIfExists )
m_aStringToID.find( aKey );
if( it != m_aStringToID.end() )
return it->second;
-
+
if( bOnlyIfExists )
return InvalidAtom;
-
+
Atom aRet = m_nNextID;
m_aStringToID[ aKey ] = m_nNextID;
m_aIDToString[ m_nNextID ] = rStr;
diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx
index 91f88fa2c75c..eb9764899140 100644
--- a/rsc/source/tools/rsctools.cxx
+++ b/rsc/source/tools/rsctools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,12 +61,12 @@ using namespace rtl;
/****************** C o d e **********************************************/
/*************************************************************************
|*
-|* rsc_strnicmp()
+|* rsc_strnicmp()
|*
-|* Beschreibung Vergleicht zwei Strings Case-Unabhaengig bis zu
-|* einer bestimmten Laenge
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Vergleicht zwei Strings Case-Unabhaengig bis zu
+|* einer bestimmten Laenge
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
int rsc_strnicmp( const char *string1, const char *string2, size_t count )
@@ -91,11 +91,11 @@ int rsc_strnicmp( const char *string1, const char *string2, size_t count )
/*************************************************************************
|*
-|* rsc_strnicmp()
+|* rsc_strnicmp()
|*
-|* Beschreibung Vergleicht zwei Strings Case-Unabhaengig
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Vergleicht zwei Strings Case-Unabhaengig
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
int rsc_stricmp( const char *string1, const char *string2 ){
@@ -124,13 +124,13 @@ char* rsc_strdup( const char* pStr )
/*************************************************************************
|*
-|* GetTmpFileName()
+|* GetTmpFileName()
|*
-|* Beschreibung Gibt einen String eines eindeutigen Dateinamens
-|* zurueck. Der Speicher fuer den String wird mit
-|* malloc allokiert
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MH 13.10.97
+|* Beschreibung Gibt einen String eines eindeutigen Dateinamens
+|* zurueck. Der Speicher fuer den String wird mit
+|* malloc allokiert
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MH 13.10.97
|*
*************************************************************************/
ByteString GetTmpFileName()
@@ -142,19 +142,19 @@ ByteString GetTmpFileName()
}
/********************************************************************/
-/* */
-/* Function : Append( ) */
-/* */
-/* Parameters : psw - pointer to a preprocessor switch */
-/* */
-/* Description : appends text files */
+/* */
+/* Function : Append( ) */
+/* */
+/* Parameters : psw - pointer to a preprocessor switch */
+/* */
+/* Description : appends text files */
/********************************************************************/
BOOL Append( FILE * fDest, ByteString aTmpFile )
{
#define MAX_BUF 4096
- char szBuf[ MAX_BUF ];
- int nItems;
- FILE *fSource;
+ char szBuf[ MAX_BUF ];
+ int nItems;
+ FILE *fSource;
fSource = fopen( aTmpFile.GetBuffer(), "rb" );
if( !fDest || !fSource ){
@@ -187,13 +187,13 @@ BOOL Append( ByteString aOutputSrs, ByteString aTmpFile )
/*************************************************************************
|*
-|* InputFile
+|* InputFile
|*
-|* Beschreibung Haengt Extension an, wenn keine da ist
-|* Parameter: pInput, der Input-Dateiname.
-|* pExt, die Extension des Ausgabenamens
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 28.06.91
+|* Beschreibung Haengt Extension an, wenn keine da ist
+|* Parameter: pInput, der Input-Dateiname.
+|* pExt, die Extension des Ausgabenamens
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 28.06.91
|*
*************************************************************************/
ByteString InputFile ( const char * pInput, const char * pExt )
@@ -212,19 +212,19 @@ ByteString InputFile ( const char * pInput, const char * pExt )
/*************************************************************************
|*
-|* OutputFile
+|* OutputFile
|*
-|* Beschreibung Ersetzt Extension durch eine andere
-|* Parameter: input, der Input-Dateiname.
-|* pExt, die Extension des Ausgabenamens
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 28.06.91
+|* Beschreibung Ersetzt Extension durch eine andere
+|* Parameter: input, der Input-Dateiname.
+|* pExt, die Extension des Ausgabenamens
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 28.06.91
|*
*************************************************************************/
ByteString OutputFile ( ByteString aInput, const char * pExt )
{
- UniString aUniInput( aInput, RTL_TEXTENCODING_ASCII_US );
- DirEntry aFileName( aUniInput );
+ UniString aUniInput( aInput, RTL_TEXTENCODING_ASCII_US );
+ DirEntry aFileName( aUniInput );
UniString aExt( pExt, RTL_TEXTENCODING_ASCII_US );
aFileName.SetExtension( aExt );
@@ -234,19 +234,19 @@ ByteString OutputFile ( ByteString aInput, const char * pExt )
/*************************************************************************
|*
-|* ::ResonseFile()
+|* ::ResonseFile()
|*
-|* Beschreibung Kommandozeile aufbereiten
-|* Ersterstellung MM 05.09.91
-|* Letzte Aenderung MM 05.09.91
+|* Beschreibung Kommandozeile aufbereiten
+|* Ersterstellung MM 05.09.91
+|* Letzte Aenderung MM 05.09.91
|*
*************************************************************************/
char * ResponseFile( RscPtrPtr * ppCmd, char ** ppArgv, sal_uInt32 nArgc )
{
- FILE *fFile;
- int nItems;
- char szBuffer[4096]; // file buffer
- sal_uInt32 i;
+ FILE *fFile;
+ int nItems;
+ char szBuffer[4096]; // file buffer
+ sal_uInt32 i;
bool bInQuotes = false;
// Programmname
@@ -296,11 +296,11 @@ char * ResponseFile( RscPtrPtr * ppCmd, char ** ppArgv, sal_uInt32 nArgc )
/*************** R s c P t r P t r **************************************/
/*************************************************************************
|*
-|* RscPtrPtr :: RscPtrPtr()
+|* RscPtrPtr :: RscPtrPtr()
|*
-|* Beschreibung Eine Tabelle mit Zeigern
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Eine Tabelle mit Zeigern
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
RscPtrPtr :: RscPtrPtr(){
@@ -310,12 +310,12 @@ RscPtrPtr :: RscPtrPtr(){
/*************************************************************************
|*
-|* RscPtrPtr :: ~RscPtrPtr()
+|* RscPtrPtr :: ~RscPtrPtr()
|*
-|* Beschreibung Zerst�rt eine Tabelle mit Zeigern, die Zeiger werde
-|* ebenfalls freigegebn
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Zerst�rt eine Tabelle mit Zeigern, die Zeiger werde
+|* ebenfalls freigegebn
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
RscPtrPtr :: ~RscPtrPtr(){
@@ -324,11 +324,11 @@ RscPtrPtr :: ~RscPtrPtr(){
/*************************************************************************
|*
-|* RscPtrPtr :: Reset()
+|* RscPtrPtr :: Reset()
|*
-|* Beschreibung
-|* Ersterstellung MM 03.05.91
-|* Letzte Aenderung MM 03.05.91
+|* Beschreibung
+|* Ersterstellung MM 03.05.91
+|* Letzte Aenderung MM 03.05.91
|*
*************************************************************************/
void RscPtrPtr :: Reset(){
@@ -347,11 +347,11 @@ void RscPtrPtr :: Reset(){
/*************************************************************************
|*
-|* RscPtrPtr :: Append()
+|* RscPtrPtr :: Append()
|*
-|* Beschreibung Haengt einen Eintrag an.
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Haengt einen Eintrag an.
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
sal_uInt32 RscPtrPtr :: Append( void * pBuffer ){
@@ -367,11 +367,11 @@ sal_uInt32 RscPtrPtr :: Append( void * pBuffer ){
/*************************************************************************
|*
-|* RscPtrPtr :: GetEntry()
+|* RscPtrPtr :: GetEntry()
|*
-|* Beschreibung Liefert einen Eintrag, NULL wenn nicht vorhanden.
-|* Ersterstellung MM 13.02.91
-|* Letzte Aenderung MM 13.02.91
+|* Beschreibung Liefert einen Eintrag, NULL wenn nicht vorhanden.
+|* Ersterstellung MM 13.02.91
+|* Letzte Aenderung MM 13.02.91
|*
*************************************************************************/
void * RscPtrPtr :: GetEntry( sal_uInt32 nEntry ){
@@ -383,17 +383,17 @@ void * RscPtrPtr :: GetEntry( sal_uInt32 nEntry ){
/****************** R S C W R I T E R C **********************************/
/*************************************************************************
|*
-|* RscWriteRc :: RscWriteRc()
+|* RscWriteRc :: RscWriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
RscWriteRc::RscWriteRc( RSCBYTEORDER_TYPE nOrder )
{
- short nSwapTest = 1;
- RSCBYTEORDER_TYPE nMachineOrder;
+ short nSwapTest = 1;
+ RSCBYTEORDER_TYPE nMachineOrder;
bSwap = FALSE;
if( nOrder != RSC_SYSTEMENDIAN )
@@ -411,11 +411,11 @@ RscWriteRc::RscWriteRc( RSCBYTEORDER_TYPE nOrder )
/*************************************************************************
|*
-|* RscWriteRc :: ~RscWriteRc()
+|* RscWriteRc :: ~RscWriteRc()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
RscWriteRc :: ~RscWriteRc()
@@ -426,11 +426,11 @@ RscWriteRc :: ~RscWriteRc()
/*************************************************************************
|*
-|* RscWriteRc :: IncSize()
+|* RscWriteRc :: IncSize()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize )
@@ -443,11 +443,11 @@ sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize )
/*************************************************************************
|*
-|* RscWriteRc :: GetPointer()
+|* RscWriteRc :: GetPointer()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
char * RscWriteRc :: GetPointer( sal_uInt32 nSize )
@@ -460,16 +460,16 @@ char * RscWriteRc :: GetPointer( sal_uInt32 nSize )
/*************************************************************************
|*
-|* RscWriteRc :: Put()
+|* RscWriteRc :: Put()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.04.91
-|* Letzte Aenderung MM 15.04.91
+|* Beschreibung
+|* Ersterstellung MM 15.04.91
+|* Letzte Aenderung MM 15.04.91
|*
*************************************************************************/
void RscWriteRc :: Put( sal_uInt16 nVal )
{
- sal_uInt32 nOldLen;
+ sal_uInt32 nOldLen;
nOldLen = IncSize( sizeof( nVal ) );
PutAt( nOldLen, nVal );
@@ -481,12 +481,12 @@ void RscWriteRc :: PutUTF8( char * pStr )
if( pStr )
nStrLen = strlen( pStr );
- sal_uInt32 n = nStrLen +1;
+ sal_uInt32 n = nStrLen +1;
if( n % 2 )
// align to 2
n++;
- sal_uInt32 nOldLen = IncSize( n );
+ sal_uInt32 nOldLen = IncSize( n );
rtl_copyMemory( GetPointer( nOldLen ), pStr, nStrLen );
// 0 terminated
pMem[ nOldLen + nStrLen ] = '\0';
diff --git a/rsc/source/tools/rsctree.cxx b/rsc/source/tools/rsctree.cxx
index 5dad0d2130df..d44554393a72 100644
--- a/rsc/source/tools/rsctree.cxx
+++ b/rsc/source/tools/rsctree.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,11 +44,11 @@
/****************** B i N o d e ******************************************/
/*************************************************************************
|*
-|* BiNode::BiNode()
+|* BiNode::BiNode()
|*
-|* Beschreibung NAME.DOC
-|* Ersterstellung MM 07.02.91
-|* Letzte Aenderung MM 07.02.91
+|* Beschreibung NAME.DOC
+|* Ersterstellung MM 07.02.91
+|* Letzte Aenderung MM 07.02.91
|*
*************************************************************************/
BiNode::BiNode(){
@@ -57,11 +57,11 @@ BiNode::BiNode(){
/*************************************************************************
|*
-|* BiNode::~BiNode()
+|* BiNode::~BiNode()
|*
-|* Beschreibung
-|* Ersterstellung MM 07.02.91
-|* Letzte Aenderung MM 07.02.91
+|* Beschreibung
+|* Ersterstellung MM 07.02.91
+|* Letzte Aenderung MM 07.02.91
|*
*************************************************************************/
BiNode::~BiNode(){
@@ -69,11 +69,11 @@ BiNode::~BiNode(){
/*************************************************************************
|*
-|* BiNode::EnumNodes()
+|* BiNode::EnumNodes()
|*
-|* Beschreibung
-|* Ersterstellung MM 07.02.91
-|* Letzte Aenderung MM 07.02.91
+|* Beschreibung
+|* Ersterstellung MM 07.02.91
+|* Letzte Aenderung MM 07.02.91
|*
*************************************************************************/
void BiNode::EnumNodes( Link aLink ) const{
@@ -86,11 +86,11 @@ void BiNode::EnumNodes( Link aLink ) const{
/*************************************************************************
|*
-|* BiNode::ChangeDLListBTree()
+|* BiNode::ChangeDLListBTree()
|*
-|* Beschreibung
-|* Ersterstellung MM 11.01.91
-|* Letzte Aenderung MM 11.01.91
+|* Beschreibung
+|* Ersterstellung MM 11.01.91
+|* Letzte Aenderung MM 11.01.91
|*
*************************************************************************/
BiNode * BiNode::ChangeDLListBTree( BiNode * pList ){
@@ -112,7 +112,7 @@ BiNode * BiNode::ChangeDLListBTree( BiNode * pList ){
else
pList = (BiNode *)0;
- if( NULL != (pTmp = pMiddle->Left()) ) // rechten Zeiger auf Null
+ if( NULL != (pTmp = pMiddle->Left()) ) // rechten Zeiger auf Null
pTmp->pRight = (BiNode *)0;
// linken Zeiger auf Null
@@ -129,16 +129,16 @@ BiNode * BiNode::ChangeDLListBTree( BiNode * pList ){
/*************************************************************************
|*
-|* BiNode::ChangeBTreeDLList()
+|* BiNode::ChangeBTreeDLList()
|*
-|* Beschreibung
-|* Ersterstellung MM 11.01.91
-|* Letzte Aenderung MM 11.01.91
+|* Beschreibung
+|* Ersterstellung MM 11.01.91
+|* Letzte Aenderung MM 11.01.91
|*
*************************************************************************/
BiNode * BiNode::ChangeBTreeDLList(){
BiNode * pList;
- BiNode * pLL_RN; // linke Liste rechter Knoten
+ BiNode * pLL_RN; // linke Liste rechter Knoten
if( Right() ){
pList = Right()->ChangeBTreeDLList();
@@ -159,11 +159,11 @@ BiNode * BiNode::ChangeBTreeDLList(){
/****************** N a m e N o d e **************************************/
/*************************************************************************
|*
-|* NameNode::Remove()
+|* NameNode::Remove()
|*
-|* Beschreibung
-|* Ersterstellung MM 10.07.91
-|* Letzte Aenderung MM 10.07.91
+|* Beschreibung
+|* Ersterstellung MM 10.07.91
+|* Letzte Aenderung MM 10.07.91
|*
*************************************************************************/
NameNode * NameNode::Remove( NameNode * pRemove ){
@@ -202,11 +202,11 @@ NameNode * NameNode::Remove( NameNode * pRemove ){
/*************************************************************************
|*
-|* NameNode::Compare
+|* NameNode::Compare
|*
-|* Beschreibung
-|* Ersterstellung MM 10.07.91
-|* Letzte Aenderung MM 13.07.91
+|* Beschreibung
+|* Ersterstellung MM 10.07.91
+|* Letzte Aenderung MM 13.07.91
|*
*************************************************************************/
COMPARE NameNode::Compare( const NameNode * pCompare ) const{
@@ -229,11 +229,11 @@ COMPARE NameNode::Compare( const void * pCompare ) const{
/*************************************************************************
|*
-|* NameNode::SearchParent
+|* NameNode::SearchParent
|*
-|* Beschreibung
-|* Ersterstellung MM 10.07.91
-|* Letzte Aenderung MM 10.07.91
+|* Beschreibung
+|* Ersterstellung MM 10.07.91
+|* Letzte Aenderung MM 10.07.91
|*
*************************************************************************/
NameNode* NameNode::SearchParent( const NameNode * pSearch ) const{
@@ -261,11 +261,11 @@ NameNode* NameNode::SearchParent( const NameNode * pSearch ) const{
/*************************************************************************
|*
-|* NameNode::Search
+|* NameNode::Search
|*
-|* Beschreibung
-|* Ersterstellung MM 21.03.90
-|* Letzte Aenderung MM 27.06.90
+|* Beschreibung
+|* Ersterstellung MM 21.03.90
+|* Letzte Aenderung MM 27.06.90
|*
*************************************************************************/
NameNode* NameNode::Search( const NameNode * pSearch ) const{
@@ -310,11 +310,11 @@ NameNode* NameNode::Search( const void * pSearch ) const{
/*************************************************************************
|*
-|* NameNode::Insert()
+|* NameNode::Insert()
|*
-|* Beschreibung NAME.DOC
-|* Ersterstellung MM 11.01.91
-|* Letzte Aenderung MM 11.01.91
+|* Beschreibung NAME.DOC
+|* Ersterstellung MM 11.01.91
+|* Letzte Aenderung MM 11.01.91
|*
*************************************************************************/
BOOL NameNode::Insert( NameNode * pTN, sal_uInt32* pnDepth ){
@@ -328,7 +328,7 @@ BOOL NameNode::Insert( NameNode * pTN, sal_uInt32* pnDepth ){
*pnDepth += 1;
if( nCmp == GREATER ){
if( Left() )
- bRet = ((NameNode *)Left())->Insert( pTN, pnDepth );
+ bRet = ((NameNode *)Left())->Insert( pTN, pnDepth );
else
pLeft = pTN;
}
@@ -345,19 +345,19 @@ BOOL NameNode::Insert( NameNode * pTN, sal_uInt32* pnDepth ){
/*************************************************************************
|*
-|* NameNode::Insert()
+|* NameNode::Insert()
|*
-|* Beschreibung NAME.DOC
-|* Ersterstellung MM 21.03.90
-|* Letzte Aenderung MM 11.01.91
+|* Beschreibung NAME.DOC
+|* Ersterstellung MM 21.03.90
+|* Letzte Aenderung MM 11.01.91
|*
*************************************************************************/
BOOL NameNode::Insert( NameNode * pTN ){
// insert a node in the tree.
// if the node with the same name is in, return FALSE and no insert.
// if not return true.
- sal_uInt32 nDepth = 0;
- BOOL bRet;
+ sal_uInt32 nDepth = 0;
+ BOOL bRet;
bRet = Insert( pTN, &nDepth );
if( bRet ){
@@ -374,11 +374,11 @@ BOOL NameNode::Insert( NameNode * pTN ){
/*************************************************************************
|*
-|* NameNode::OrderTree()
+|* NameNode::OrderTree()
|*
-|* Beschreibung
-|* Ersterstellung MM 23.09.91
-|* Letzte Aenderung MM 23.09.91
+|* Beschreibung
+|* Ersterstellung MM 23.09.91
+|* Letzte Aenderung MM 23.09.91
|*
*************************************************************************/
void NameNode::OrderTree(){
@@ -405,20 +405,20 @@ void NameNode::SubOrderTree( NameNode * pOrderNode ){
/*************************************************************************
|*
-|* NameNode::IdOrderTree()
+|* NameNode::IdOrderTree()
|*
-|* Beschreibung
-|* Ersterstellung MM 15.11.91
-|* Letzte Aenderung MM 15.11.91
+|* Beschreibung
+|* Ersterstellung MM 15.11.91
+|* Letzte Aenderung MM 15.11.91
|*
*************************************************************************/
class OrderCtrl {
- BOOL bOrder;
+ BOOL bOrder;
NameNode * pName;
DECL_LINK( CallBackFunc, NameNode * );
public:
OrderCtrl() { bOrder = FALSE; pName = NULL; }
- BOOL IsOrder( const NameNode * pRoot )
+ BOOL IsOrder( const NameNode * pRoot )
{
bOrder = TRUE;
pName = NULL;
@@ -444,11 +444,11 @@ BOOL NameNode::IsOrderTree() const{
/****************** I d N o d e ******************************************/
/*************************************************************************
|*
-|* IdNode::Search()
+|* IdNode::Search()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.11.91
-|* Letzte Aenderung MM 06.11.91
+|* Beschreibung
+|* Ersterstellung MM 06.11.91
+|* Letzte Aenderung MM 06.11.91
|*
*************************************************************************/
IdNode * IdNode::Search( sal_uInt32 nTypeName ) const{
@@ -457,11 +457,11 @@ IdNode * IdNode::Search( sal_uInt32 nTypeName ) const{
/*************************************************************************
|*
-|* IdNode::Compare()
+|* IdNode::Compare()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.11.91
-|* Letzte Aenderung MM 06.11.91
+|* Beschreibung
+|* Ersterstellung MM 06.11.91
+|* Letzte Aenderung MM 06.11.91
|*
*************************************************************************/
COMPARE IdNode::Compare( const NameNode * pSearch ) const
@@ -487,11 +487,11 @@ COMPARE IdNode::Compare( const void * pSearch ) const{
/*************************************************************************
|*
-|* IdNode::GetId()
+|* IdNode::GetId()
|*
-|* Beschreibung
-|* Ersterstellung MM 23.09.91
-|* Letzte Aenderung MM 23.09.91
+|* Beschreibung
+|* Ersterstellung MM 23.09.91
+|* Letzte Aenderung MM 23.09.91
|*
*************************************************************************/
sal_uInt32 IdNode::GetId() const
@@ -501,11 +501,11 @@ sal_uInt32 IdNode::GetId() const
/*************************************************************************
|*
-|* StringNode::Search()
+|* StringNode::Search()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.11.91
-|* Letzte Aenderung MM 06.11.91
+|* Beschreibung
+|* Ersterstellung MM 06.11.91
+|* Letzte Aenderung MM 06.11.91
|*
*************************************************************************/
StringNode * StringNode::Search( const char * pSearch ) const{
@@ -514,11 +514,11 @@ StringNode * StringNode::Search( const char * pSearch ) const{
/*************************************************************************
|*
-|* StringNode::Compare()
+|* StringNode::Compare()
|*
-|* Beschreibung
-|* Ersterstellung MM 06.11.91
-|* Letzte Aenderung MM 06.11.91
+|* Beschreibung
+|* Ersterstellung MM 06.11.91
+|* Letzte Aenderung MM 06.11.91
|*
*************************************************************************/
COMPARE StringNode::Compare( const NameNode * pSearch ) const
diff --git a/sax/inc/sax/dllapi.h b/sax/inc/sax/dllapi.h
index 1e4904718776..442fbdad7fa3 100644
--- a/sax/inc/sax/dllapi.h
+++ b/sax/inc/sax/dllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sax/inc/sax/fastattribs.hxx b/sax/inc/sax/fastattribs.hxx
index 6759b58c1c74..5704f005ba27 100644
--- a/sax/inc/sax/fastattribs.hxx
+++ b/sax/inc/sax/fastattribs.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ struct UnknownAttribute
typedef std::map< sal_Int32, ::rtl::OString > FastAttributeMap;
typedef std::vector< UnknownAttribute > UnknownAttributeList;
-class SAX_DLLPUBLIC FastAttributeList : public ::cppu::WeakImplHelper1< ::com::sun::star::xml::sax::XFastAttributeList >
+class SAX_DLLPUBLIC FastAttributeList : public ::cppu::WeakImplHelper1< ::com::sun::star::xml::sax::XFastAttributeList >
{
public:
FastAttributeList( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler >& xTokenHandler );
diff --git a/sax/inc/sax/fshelper.hxx b/sax/inc/sax/fshelper.hxx
index f34576022378..36a19a9dd602 100644
--- a/sax/inc/sax/fshelper.hxx
+++ b/sax/inc/sax/fshelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,16 +53,16 @@ class SAX_DLLPUBLIC FastSerializerHelper
public:
FastSerializerHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& xOutputStream );
-
+
~FastSerializerHelper();
-
+
void startElement(const char* elementName, ...);
void singleElement(const char* elementName, ...);
void endElement(const char* elementName);
void startElementV(sal_Int32 elementTokenId, va_list args);
void singleElementV(sal_Int32 elementTokenId, va_list args);
-
+
inline void startElement(sal_Int32 elementTokenId, ...)
{ va_list args; va_start( args, elementTokenId ); startElementV( elementTokenId, args ); va_end( args ); }
inline void singleElement(sal_Int32 elementTokenId, ...)
@@ -74,7 +74,7 @@ public:
void endElement(sal_Int32 elementTokenId);
inline void endElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId)
{ endElement( FSNS( namespaceTokenId, elementTokenId ) ); }
-
+
void singleElement(const char* elementName, XFastAttributeListRef xAttrList);
inline void singleElement(sal_Int32 elementTokenId, XFastAttributeListRef xAttrList)
{ singleElementV(elementTokenId, xAttrList); }
@@ -83,7 +83,7 @@ public:
{ singleElementV(FSNS( namespaceTokenId, elementTokenId), xAttrList); }
void startElementV(sal_Int32 elementTokenId, XFastAttributeListRef xAttrList);
- inline void startElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId, XFastAttributeListRef xAttrList)
+ inline void startElementNS(sal_Int32 namespaceTokenId, sal_Int32 elementTokenId, XFastAttributeListRef xAttrList)
{ startElementV( FSNS( namespaceTokenId, elementTokenId ), xAttrList ); }
FastSerializerHelper* write(const char* value);
@@ -99,7 +99,7 @@ public:
FastSerializerHelper* writeId(sal_Int32 tokenId);
::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > getOutputStream();
-
+
FastAttributeList *createAttrList();
void mark();
diff --git a/sax/inc/sax/parser/saxparser.hxx b/sax/inc/sax/parser/saxparser.hxx
index 16bd1a3446e3..172294b5217a 100644
--- a/sax/inc/sax/parser/saxparser.hxx
+++ b/sax/inc/sax/parser/saxparser.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ public:
const SaxParserRef& getParser() const { return mxParser; }
private:
- SaxParserRef mxParser;
+ SaxParserRef mxParser;
};
// --------------------------------------------------------------------
@@ -117,7 +117,7 @@ public:
/** is called for characters betwen elements in the xml stream.
Default implementation calls Characters() on the topmost contex.
- @param pCharacters The characters in utf-8 encoding
+ @param pCharacters The characters in utf-8 encoding
@param nLength the size in bytes of the utf-8 string
*/
virtual void Characters( const sal_Char *pCharacters, sal_uInt32 nLength );
diff --git a/sax/inc/sax/tools/attributemap.hxx b/sax/inc/sax/tools/attributemap.hxx
index 7a867c932a9d..4ab186f3d1b8 100644
--- a/sax/inc/sax/tools/attributemap.hxx
+++ b/sax/inc/sax/tools/attributemap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sax/inc/sax/tools/converter.hxx b/sax/inc/sax/tools/converter.hxx
index 13fb189d8429..b1801ac7ae45 100644
--- a/sax/inc/sax/tools/converter.hxx
+++ b/sax/inc/sax/tools/converter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ class SAX_DLLPUBLIC Converter
{
public:
/** convert string to measure using optional min and max values*/
- static bool convertMeasure( sal_Int32& rValue,
+ static bool convertMeasure( sal_Int32& rValue,
const ::rtl::OUString& rString,
sal_Int16 nTargetUnit = ::com::sun::star::util::MeasureUnit::MM_100TH,
sal_Int32 nMin = SAL_MIN_INT32,
@@ -132,7 +132,7 @@ public:
/** convert string to double number (using ::rtl::math) and DO convert from
source unit to target unit. */
- static bool convertDouble( double& rValue,
+ static bool convertDouble( double& rValue,
const ::rtl::OUString& rString,
sal_Int16 nSourceUnit,
sal_Int16 nTargetUnit );
@@ -206,6 +206,6 @@ public:
}
-#endif // _SAX_CONVERTER_HXX
+#endif // _SAX_CONVERTER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sax/inc/sax/tools/saxobject.hxx b/sax/inc/sax/tools/saxobject.hxx
index ee72ceeac983..f5ebd21b5956 100644
--- a/sax/inc/sax/tools/saxobject.hxx
+++ b/sax/inc/sax/tools/saxobject.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sax/inc/sax/tools/tokenmap.hxx b/sax/inc/sax/tools/tokenmap.hxx
index 8749a6587b1c..7aaef238c894 100644
--- a/sax/inc/sax/tools/tokenmap.hxx
+++ b/sax/inc/sax/tools/tokenmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sax/inc/xml2utf.hxx b/sax/inc/xml2utf.hxx
index 175894a9874b..a714aaabc1f5 100644
--- a/sax/inc/xml2utf.hxx
+++ b/sax/inc/xml2utf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,17 +27,17 @@
************************************************************************/
// TODO: Woher?
-#define Max( a, b ) (((a)>(b)) ? (a) : (b) )
-#define Min( a, b ) (((a)<(b)) ? (a) : (b) )
+#define Max( a, b ) (((a)>(b)) ? (a) : (b) )
+#define Min( a, b ) (((a)<(b)) ? (a) : (b) )
/*
-*
+*
* Text2UnicodeConverter
*
**/
namespace sax_expatwrap {
-
-class Text2UnicodeConverter
+
+class Text2UnicodeConverter
{
public:
@@ -50,11 +50,11 @@ public:
private:
void init( rtl_TextEncoding encoding );
- rtl_TextToUnicodeConverter m_convText2Unicode;
- rtl_TextToUnicodeContext m_contextText2Unicode;
- sal_Bool m_bCanContinue;
- sal_Bool m_bInitialized;
- rtl_TextEncoding m_rtlEncoding;
+ rtl_TextToUnicodeConverter m_convText2Unicode;
+ rtl_TextToUnicodeContext m_contextText2Unicode;
+ sal_Bool m_bCanContinue;
+ sal_Bool m_bInitialized;
+ rtl_TextEncoding m_rtlEncoding;
::com::sun::star::uno::Sequence<sal_Int8> m_seqSource;
};
@@ -63,7 +63,7 @@ private:
* Unicode2TextConverter
*
**-----------------------------------------*/
-class Unicode2TextConverter
+class Unicode2TextConverter
{
public:
Unicode2TextConverter( rtl_TextEncoding encoding );
@@ -79,12 +79,12 @@ public:
private:
void init( rtl_TextEncoding encoding );
- rtl_UnicodeToTextConverter m_convUnicode2Text;
- rtl_UnicodeToTextContext m_contextUnicode2Text;
- sal_Bool m_bCanContinue;
- sal_Bool m_bInitialized;
- rtl_TextEncoding m_rtlEncoding;
- ::com::sun::star::uno::Sequence<sal_Unicode> m_seqSource;
+ rtl_UnicodeToTextConverter m_convUnicode2Text;
+ rtl_UnicodeToTextContext m_contextUnicode2Text;
+ sal_Bool m_bCanContinue;
+ sal_Bool m_bInitialized;
+ rtl_TextEncoding m_rtlEncoding;
+ ::com::sun::star::uno::Sequence<sal_Unicode> m_seqSource;
};
@@ -104,15 +104,15 @@ public:
{}
~XMLFile2UTFConverter();
-
+
void setInputStream( ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > &r ) { m_in = r; }
void setEncoding( const ::rtl::OString &s ) { m_sEncoding = s; }
-
+
// @param nMaxToRead The number of chars, that should be read. Note that this is no exact number. There
// may be returned less or more bytes than ordered.
- sal_Int32 readAndConvert( ::com::sun::star::uno::Sequence<sal_Int8> &seq , sal_Int32 nMaxToRead )
+ sal_Int32 readAndConvert( ::com::sun::star::uno::Sequence<sal_Int8> &seq , sal_Int32 nMaxToRead )
throw ( ::com::sun::star::io::IOException,
::com::sun::star::io::NotConnectedException ,
::com::sun::star::io::BufferSizeExceededException ,
@@ -133,17 +133,17 @@ private:
// When encoding attribute is within the text (in the first line), it is removed.
void removeEncoding( ::com::sun::star::uno::Sequence<sal_Int8> &seq );
-
+
// Initializes decoding depending on m_sEncoding setting
void initializeDecoding();
private:
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_in;
-
+
sal_Bool m_bStarted;
::rtl::OString m_sEncoding;
Text2UnicodeConverter *m_pText2Unicode;
- Unicode2TextConverter *m_pUnicode2Text;
+ Unicode2TextConverter *m_pUnicode2Text;
};
}
diff --git a/sax/qa/cppunit/version.map b/sax/qa/cppunit/version.map
index 3308588ef6f8..0dbbcc5a7372 100644
--- a/sax/qa/cppunit/version.map
+++ b/sax/qa/cppunit/version.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/sax/source/expatwrap/attrlistimpl.cxx b/sax/source/expatwrap/attrlistimpl.cxx
index a355658fee28..7d4cc19d95f6 100644
--- a/sax/source/expatwrap/attrlistimpl.cxx
+++ b/sax/source/expatwrap/attrlistimpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,9 +47,9 @@ struct TagAttribute
{}
TagAttribute( const OUString &aName, const OUString &aType , const OUString &aValue )
{
- this->sName = aName;
- this->sType = aType;
- this->sValue = aValue;
+ this->sName = aName;
+ this->sType = aType;
+ this->sValue = aValue;
}
OUString sName;
@@ -154,7 +154,7 @@ AttributeList::~AttributeList()
}
-void AttributeList::addAttribute( const OUString &sName ,
+void AttributeList::addAttribute( const OUString &sName ,
const OUString &sType ,
const OUString &sValue )
{
diff --git a/sax/source/expatwrap/attrlistimpl.hxx b/sax/source/expatwrap/attrlistimpl.hxx
index 870f4dd258ac..95e54f5e5112 100644
--- a/sax/source/expatwrap/attrlistimpl.hxx
+++ b/sax/source/expatwrap/attrlistimpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,7 +73,7 @@ public:
// XCloneable
virtual ::com::sun::star::uno::Reference< XCloneable > SAL_CALL
- createClone() throw(::com::sun::star::uno::RuntimeException);
+ createClone() throw(::com::sun::star::uno::RuntimeException);
private:
struct AttributeList_impl *m_pImpl;
diff --git a/sax/source/expatwrap/factory.hxx b/sax/source/expatwrap/factory.hxx
index 169788a02bfe..0a4a760be039 100644
--- a/sax/source/expatwrap/factory.hxx
+++ b/sax/source/expatwrap/factory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@ Reference< XInterface > SAL_CALL SaxWriter_CreateInstance(
const Reference< XMultiServiceFactory > & rSMgr ) throw (Exception);
OUString SaxWriter_getServiceName() throw();
OUString SaxWriter_getImplementationName() throw();
-Sequence< OUString > SaxWriter_getSupportedServiceNames(void) throw();
+Sequence< OUString > SaxWriter_getSupportedServiceNames(void) throw();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index 704b51f5cceb..cb070ab9f574 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ using namespace ::com::sun::star::io;
#include "xml2utf.hxx"
namespace sax_expatwrap {
-
+
// Useful macros for correct String conversion depending on the choosen expat-mode
#ifdef XML_UNICODE
OUString XmlNChar2OUString( const XML_Char *p , int nLen )
@@ -96,7 +96,7 @@ OUString XmlChar2OUString( const XML_Char *p )
}
else return OUString();
}
-
+
#define XML_CHAR_TO_OUSTRING(x) XmlChar2OUString(x)
#define XML_CHAR_N_TO_USTRING(x,n) XmlNChar2OUString(x,n)
@@ -107,9 +107,9 @@ OUString XmlChar2OUString( const XML_Char *p )
/*
-* The following macro encapsulates any call to an event handler.
+* The following macro encapsulates any call to an event handler.
* It ensures, that exceptions thrown by the event handler are
-* treated properly.
+* treated properly.
*/
#define CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS(pThis,call) \
if( ! pThis->bExceptionWasThrown ) { \
@@ -138,8 +138,8 @@ OUString XmlChar2OUString( const XML_Char *p )
}\
((void)0)
-#define IMPLEMENTATION_NAME "com.sun.star.comp.extensions.xml.sax.ParserExpat"
-#define SERVICE_NAME "com.sun.star.xml.sax.Parser"
+#define IMPLEMENTATION_NAME "com.sun.star.comp.extensions.xml.sax.ParserExpat"
+#define SERVICE_NAME "com.sun.star.xml.sax.Parser"
class SaxExpatParser_Impl;
@@ -151,25 +151,25 @@ class SaxExpatParser :
XServiceInfo
>
{
-
-public:
+
+public:
SaxExpatParser();
~SaxExpatParser();
-
+
public:
// The implementation details
- static Sequence< OUString > getSupportedServiceNames_Static(void) throw ();
+ static Sequence< OUString > getSupportedServiceNames_Static(void) throw ();
public:
// The SAX-Parser-Interface
- virtual void SAL_CALL parseStream( const InputSource& structSource)
- throw ( SAXException,
- IOException,
+ virtual void SAL_CALL parseStream( const InputSource& structSource)
+ throw ( SAXException,
+ IOException,
RuntimeException);
- virtual void SAL_CALL setDocumentHandler(const Reference< XDocumentHandler > & xHandler)
+ virtual void SAL_CALL setDocumentHandler(const Reference< XDocumentHandler > & xHandler)
throw (RuntimeException);
-
+
virtual void SAL_CALL setErrorHandler(const Reference< XErrorHandler > & xHandler)
throw (RuntimeException);
virtual void SAL_CALL setDTDHandler(const Reference < XDTDHandler > & xHandler)
@@ -177,8 +177,8 @@ public:
virtual void SAL_CALL setEntityResolver(const Reference< XEntityResolver >& xResolver)
throw (RuntimeException);
- virtual void SAL_CALL setLocale( const Locale &locale ) throw (RuntimeException);
-
+ virtual void SAL_CALL setLocale( const Locale &locale ) throw (RuntimeException);
+
public: // XServiceInfo
OUString SAL_CALL getImplementationName() throw ();
Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw ();
@@ -186,16 +186,16 @@ public: // XServiceInfo
private:
- SaxExpatParser_Impl *m_pImpl;
-
+ SaxExpatParser_Impl *m_pImpl;
+
};
//--------------------------------------
-// the extern interface
+// the extern interface
//---------------------------------------
Reference< XInterface > SAL_CALL SaxExpatParser_CreateInstance(
const Reference< XMultiServiceFactory > & ) throw(Exception)
-{
+{
SaxExpatParser *p = new SaxExpatParser;
return Reference< XInterface > ( (OWeakObject * ) p );
@@ -203,7 +203,7 @@ Reference< XInterface > SAL_CALL SaxExpatParser_CreateInstance(
-Sequence< OUString > SaxExpatParser::getSupportedServiceNames_Static(void) throw ()
+Sequence< OUString > SaxExpatParser::getSupportedServiceNames_Static(void) throw ()
{
Sequence<OUString> aRet(1);
aRet.getArray()[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(SERVICE_NAME) );
@@ -219,8 +219,8 @@ Sequence< OUString > SaxExpatParser::getSupportedServiceNames_Static(void) th
// Entity binds all information neede for a single file
struct Entity
{
- InputSource structSource;
- XML_Parser pParser;
+ InputSource structSource;
+ XML_Parser pParser;
XMLFile2UTFConverter converter;
};
@@ -228,22 +228,22 @@ struct Entity
class SaxExpatParser_Impl
{
public: // module scope
- Mutex aMutex;
+ Mutex aMutex;
- Reference< XDocumentHandler > rDocumentHandler;
+ Reference< XDocumentHandler > rDocumentHandler;
Reference< XExtendedDocumentHandler > rExtendedDocumentHandler;
-
- Reference< XErrorHandler > rErrorHandler;
- Reference< XDTDHandler > rDTDHandler;
+
+ Reference< XErrorHandler > rErrorHandler;
+ Reference< XDTDHandler > rDTDHandler;
Reference< XEntityResolver > rEntityResolver;
- Reference < XLocator > rDocumentLocator;
+ Reference < XLocator > rDocumentLocator;
- Reference < XAttributeList > rAttrList;
- AttributeList *pAttrList;
+ Reference < XAttributeList > rAttrList;
+ AttributeList *pAttrList;
- // External entity stack
- vector<struct Entity> vecEntity;
+ // External entity stack
+ vector<struct Entity> vecEntity;
void pushEntity( const struct Entity &entity )
{ vecEntity.push_back( entity ); }
void popEntity()
@@ -252,38 +252,38 @@ public: // module scope
{ return vecEntity.back(); }
- // Exception cannot be thrown through the C-XmlParser (possible resource leaks),
+ // Exception cannot be thrown through the C-XmlParser (possible resource leaks),
// therefor the exception must be saved somewhere.
- SAXParseException exception;
+ SAXParseException exception;
RuntimeException rtexception;
- sal_Bool bExceptionWasThrown;
+ sal_Bool bExceptionWasThrown;
sal_Bool bRTExceptionWasThrown;
- Locale locale;
+ Locale locale;
-public:
+public:
// the C-Callbacks for the expat parser
void static callbackStartElement(void *userData, const XML_Char *name , const XML_Char **atts);
void static callbackEndElement(void *userData, const XML_Char *name);
void static callbackCharacters( void *userData , const XML_Char *s , int nLen );
- void static callbackProcessingInstruction( void *userData ,
- const XML_Char *sTarget ,
+ void static callbackProcessingInstruction( void *userData ,
+ const XML_Char *sTarget ,
const XML_Char *sData );
- void static callbackUnparsedEntityDecl( void *userData ,
+ void static callbackUnparsedEntityDecl( void *userData ,
const XML_Char *entityName,
const XML_Char *base,
const XML_Char *systemId,
const XML_Char *publicId,
const XML_Char *notationName);
-
- void static callbackNotationDecl( void *userData,
+
+ void static callbackNotationDecl( void *userData,
const XML_Char *notationName,
const XML_Char *base,
const XML_Char *systemId,
const XML_Char *publicId);
- int static callbackExternalEntityRef( XML_Parser parser,
+ int static callbackExternalEntityRef( XML_Parser parser,
const XML_Char *openEntityNames,
const XML_Char *base,
const XML_Char *systemId,
@@ -322,7 +322,7 @@ extern "C"
{
SaxExpatParser_Impl::callbackProcessingInstruction(userData,sTarget,sData );
}
- static void call_callbackUnparsedEntityDecl(void *userData ,
+ static void call_callbackUnparsedEntityDecl(void *userData ,
const XML_Char *entityName,
const XML_Char *base,
const XML_Char *systemId,
@@ -382,9 +382,9 @@ class LocatorImpl :
public:
LocatorImpl( SaxExpatParser_Impl *p )
{
- m_pParser = p;
+ m_pParser = p;
}
-
+
public: //XLocator
virtual sal_Int32 SAL_CALL getColumnNumber(void) throw ()
{
@@ -420,7 +420,7 @@ public: //XLocator
private:
SaxExpatParser_Impl *m_pParser;
-};
+};
@@ -431,19 +431,19 @@ SaxExpatParser::SaxExpatParser( )
LocatorImpl *pLoc = new LocatorImpl( m_pImpl );
m_pImpl->rDocumentLocator = Reference< XLocator > ( pLoc );
-
+
// performance-Improvment. Reference is needed when calling the startTag callback.
// Handing out the same object with every call is allowed (see sax-specification)
m_pImpl->pAttrList = new AttributeList;
m_pImpl->rAttrList = Reference< XAttributeList > ( m_pImpl->pAttrList );
-
+
m_pImpl->bExceptionWasThrown = sal_False;
m_pImpl->bRTExceptionWasThrown = sal_False;
}
SaxExpatParser::~SaxExpatParser()
{
- delete m_pImpl;
+ delete m_pImpl;
}
@@ -451,17 +451,17 @@ SaxExpatParser::~SaxExpatParser()
*
* parseStream does Parser-startup initializations. The SaxExpatParser_Impl::parse() method does
* the file-specific initialization work. (During a parser run, external files may be opened)
-*
+*
****************/
-void SaxExpatParser::parseStream( const InputSource& structSource)
- throw (SAXException,
- IOException,
+void SaxExpatParser::parseStream( const InputSource& structSource)
+ throw (SAXException,
+ IOException,
RuntimeException)
{
// Only one text at one time
MutexGuard guard( m_pImpl->aMutex );
-
-
+
+
struct Entity entity;
entity.structSource = structSource;
@@ -475,9 +475,9 @@ void SaxExpatParser::parseStream( const InputSource& structSource)
if( entity.structSource.sEncoding.getLength() )
{
entity.converter.setEncoding(
- OUStringToOString( entity.structSource.sEncoding , RTL_TEXTENCODING_ASCII_US ) );
+ OUStringToOString( entity.structSource.sEncoding , RTL_TEXTENCODING_ASCII_US ) );
}
-
+
// create parser with proper encoding
entity.pParser = XML_ParserCreate( 0 );
if( ! entity.pParser )
@@ -486,28 +486,28 @@ void SaxExpatParser::parseStream( const InputSource& structSource)
Reference< XInterface > (), Any() );
}
- // set all necessary C-Callbacks
+ // set all necessary C-Callbacks
XML_SetUserData( entity.pParser , m_pImpl );
- XML_SetElementHandler( entity.pParser ,
- call_callbackStartElement ,
+ XML_SetElementHandler( entity.pParser ,
+ call_callbackStartElement ,
call_callbackEndElement );
XML_SetCharacterDataHandler( entity.pParser , call_callbackCharacters );
- XML_SetProcessingInstructionHandler(entity.pParser ,
+ XML_SetProcessingInstructionHandler(entity.pParser ,
call_callbackProcessingInstruction );
- XML_SetUnparsedEntityDeclHandler( entity.pParser,
+ XML_SetUnparsedEntityDeclHandler( entity.pParser,
call_callbackUnparsedEntityDecl );
XML_SetNotationDeclHandler( entity.pParser, call_callbackNotationDecl );
- XML_SetExternalEntityRefHandler( entity.pParser,
- call_callbackExternalEntityRef);
- XML_SetUnknownEncodingHandler( entity.pParser, call_callbackUnknownEncoding ,0);
-
+ XML_SetExternalEntityRefHandler( entity.pParser,
+ call_callbackExternalEntityRef);
+ XML_SetUnknownEncodingHandler( entity.pParser, call_callbackUnknownEncoding ,0);
+
if( m_pImpl->rExtendedDocumentHandler.is() ) {
// These handlers just delegate calls to the ExtendedHandler. If no extended handler is
// given, these callbacks can be ignored
XML_SetDefaultHandlerExpand( entity.pParser, call_callbackDefault );
XML_SetCommentHandler( entity.pParser, call_callbackComment );
- XML_SetCdataSectionHandler( entity.pParser ,
+ XML_SetCdataSectionHandler( entity.pParser ,
call_callbackStartCDATA ,
call_callbackEndCDATA );
}
@@ -527,17 +527,17 @@ void SaxExpatParser::parseStream( const InputSource& structSource)
// finish document
if( m_pImpl->rDocumentHandler.is() ) {
- m_pImpl->rDocumentHandler->endDocument();
+ m_pImpl->rDocumentHandler->endDocument();
}
}
-// catch( SAXParseException &e )
-// {
-// m_pImpl->popEntity();
-// XML_ParserFree( entity.pParser );
+// catch( SAXParseException &e )
+// {
+// m_pImpl->popEntity();
+// XML_ParserFree( entity.pParser );
// Any aAny;
// aAny <<= e;
-// throw SAXException( e.Message, e.Context, aAny );
-// }
+// throw SAXException( e.Message, e.Context, aAny );
+// }
catch( SAXException & )
{
m_pImpl->popEntity();
@@ -560,15 +560,15 @@ void SaxExpatParser::parseStream( const InputSource& structSource)
m_pImpl->popEntity();
XML_ParserFree( entity.pParser );
}
-
-void SaxExpatParser::setDocumentHandler(const Reference< XDocumentHandler > & xHandler)
+
+void SaxExpatParser::setDocumentHandler(const Reference< XDocumentHandler > & xHandler)
throw (RuntimeException)
{
m_pImpl->rDocumentHandler = xHandler;
m_pImpl->rExtendedDocumentHandler =
Reference< XExtendedDocumentHandler >( xHandler , UNO_QUERY );
}
-
+
void SaxExpatParser::setErrorHandler(const Reference< XErrorHandler > & xHandler)
throw (RuntimeException)
{
@@ -588,9 +588,9 @@ void SaxExpatParser::setEntityResolver(const Reference < XEntityResolver > & xRe
}
-void SaxExpatParser::setLocale( const Locale & locale ) throw (RuntimeException)
+void SaxExpatParser::setLocale( const Locale & locale ) throw (RuntimeException)
{
- m_pImpl->locale = locale;
+ m_pImpl->locale = locale;
}
// XServiceInfo
@@ -615,7 +615,7 @@ sal_Bool SaxExpatParser::supportsService(const OUString& ServiceName) throw ()
// XServiceInfo
Sequence< OUString > SaxExpatParser::getSupportedServiceNames(void) throw ()
{
-
+
Sequence<OUString> seq(1);
seq.getArray()[0] = OUString::createFromAscii( SERVICE_NAME );
return seq;
@@ -698,7 +698,7 @@ OUString getErrorMessage( XML_Error xmlE, OUString sSystemId , sal_Int32 nLine )
Message = OUString::createFromAscii( "external entity reference" );
}
else if( XML_ERROR_NOT_STANDALONE == xmlE ) {
- Message = OUString::createFromAscii( "not standalone" );
+ Message = OUString::createFromAscii( "not standalone" );
}
OUString str = OUString::createFromAscii( "[" );
@@ -724,21 +724,21 @@ void SaxExpatParser_Impl::parse( )
while( nRead ) {
nRead = getEntity().converter.readAndConvert( seqOut , nBufSize );
- if( ! nRead ) {
- XML_Parse( getEntity().pParser ,
- ( const char * ) seqOut.getArray() ,
- 0 ,
- 1 );
+ if( ! nRead ) {
+ XML_Parse( getEntity().pParser ,
+ ( const char * ) seqOut.getArray() ,
+ 0 ,
+ 1 );
break;
- }
+ }
sal_Bool bContinue = ( XML_Parse( getEntity().pParser ,
(const char *) seqOut.getArray(),
nRead,
0 ) != 0 );
-
+
if( ! bContinue || this->bExceptionWasThrown ) {
-
+
if ( this->bRTExceptionWasThrown )
throw rtexception;
@@ -747,16 +747,16 @@ void SaxExpatParser_Impl::parse( )
OUString sSystemId = rDocumentLocator->getSystemId();
sal_Int32 nLine = rDocumentLocator->getLineNumber();
- SAXParseException aExcept(
- getErrorMessage(xmlE , sSystemId, nLine) ,
- Reference< XInterface >(),
+ SAXParseException aExcept(
+ getErrorMessage(xmlE , sSystemId, nLine) ,
+ Reference< XInterface >(),
Any( &exception , getCppuType( &exception) ),
rDocumentLocator->getPublicId(),
rDocumentLocator->getSystemId(),
rDocumentLocator->getLineNumber(),
rDocumentLocator->getColumnNumber()
);
-
+
if( rErrorHandler.is() ) {
// error handler is set, so the handler may throw the exception
@@ -777,33 +777,33 @@ void SaxExpatParser_Impl::parse( )
// The C-Callbacks
//
//-----------------------------------------
-void SaxExpatParser_Impl::callbackStartElement( void *pvThis ,
- const XML_Char *pwName ,
+void SaxExpatParser_Impl::callbackStartElement( void *pvThis ,
+ const XML_Char *pwName ,
const XML_Char **awAttributes )
{
// in case of two concurrent threads, there is only the danger of an leak,
// which is neglectable for one string
static OUString g_CDATA( RTL_CONSTASCII_USTRINGPARAM( "CDATA" ) );
-
+
SaxExpatParser_Impl *pImpl = ((SaxExpatParser_Impl*)pvThis);
-
+
if( pImpl->rDocumentHandler.is() ) {
int i = 0;
- pImpl->pAttrList->clear();
-
+ pImpl->pAttrList->clear();
+
while( awAttributes[i] ) {
OSL_ASSERT( awAttributes[i+1] );
pImpl->pAttrList->addAttribute(
- XML_CHAR_TO_OUSTRING( awAttributes[i] ) ,
+ XML_CHAR_TO_OUSTRING( awAttributes[i] ) ,
g_CDATA , // expat doesn't know types
XML_CHAR_TO_OUSTRING( awAttributes[i+1] ) );
- i +=2;
+ i +=2;
}
CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS(
- pImpl ,
- rDocumentHandler->startElement( XML_CHAR_TO_OUSTRING( pwName ) ,
+ pImpl ,
+ rDocumentHandler->startElement( XML_CHAR_TO_OUSTRING( pwName ) ,
pImpl->rAttrList ) );
}
}
@@ -811,7 +811,7 @@ void SaxExpatParser_Impl::callbackStartElement( void *pvThis ,
void SaxExpatParser_Impl::callbackEndElement( void *pvThis , const XML_Char *pwName )
{
SaxExpatParser_Impl *pImpl = ((SaxExpatParser_Impl*)pvThis);
-
+
if( pImpl->rDocumentHandler.is() ) {
CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS( pImpl,
rDocumentHandler->endElement( XML_CHAR_TO_OUSTRING( pwName ) ) );
@@ -824,22 +824,22 @@ void SaxExpatParser_Impl::callbackCharacters( void *pvThis , const XML_Char *s ,
SaxExpatParser_Impl *pImpl = ((SaxExpatParser_Impl*)pvThis);
if( pImpl->rDocumentHandler.is() ) {
- CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS( pImpl ,
+ CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS( pImpl ,
rDocumentHandler->characters( XML_CHAR_N_TO_USTRING(s,nLen) ) );
}
}
-void SaxExpatParser_Impl::callbackProcessingInstruction( void *pvThis,
- const XML_Char *sTarget ,
+void SaxExpatParser_Impl::callbackProcessingInstruction( void *pvThis,
+ const XML_Char *sTarget ,
const XML_Char *sData )
{
SaxExpatParser_Impl *pImpl = ((SaxExpatParser_Impl*)pvThis);
if( pImpl->rDocumentHandler.is() ) {
- CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS(
+ CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS(
pImpl ,
rDocumentHandler->processingInstruction( XML_CHAR_TO_OUSTRING( sTarget ),
XML_CHAR_TO_OUSTRING( sData ) ) );
- }
+ }
}
@@ -853,30 +853,30 @@ void SaxExpatParser_Impl::callbackUnparsedEntityDecl(void *pvThis ,
SaxExpatParser_Impl *pImpl = ((SaxExpatParser_Impl*)pvThis);
if( pImpl->rDTDHandler.is() ) {
CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS(
- pImpl ,
+ pImpl ,
rDTDHandler->unparsedEntityDecl(
- XML_CHAR_TO_OUSTRING( entityName ),
+ XML_CHAR_TO_OUSTRING( entityName ),
XML_CHAR_TO_OUSTRING( publicId ) ,
XML_CHAR_TO_OUSTRING( systemId ) ,
XML_CHAR_TO_OUSTRING( notationName ) ) );
}
}
-
-void SaxExpatParser_Impl::callbackNotationDecl( void *pvThis,
+
+void SaxExpatParser_Impl::callbackNotationDecl( void *pvThis,
const XML_Char *notationName,
const XML_Char * /*base*/,
const XML_Char *systemId,
const XML_Char *publicId)
{
SaxExpatParser_Impl *pImpl = ((SaxExpatParser_Impl*)pvThis);
- if( pImpl->rDTDHandler.is() ) {
+ if( pImpl->rDTDHandler.is() ) {
CALL_ELEMENT_HANDLER_AND_CARE_FOR_EXCEPTIONS( pImpl,
- rDTDHandler->notationDecl( XML_CHAR_TO_OUSTRING( notationName ) ,
+ rDTDHandler->notationDecl( XML_CHAR_TO_OUSTRING( notationName ) ,
XML_CHAR_TO_OUSTRING( publicId ) ,
XML_CHAR_TO_OUSTRING( systemId ) ) );
}
-}
+}
@@ -891,7 +891,7 @@ int SaxExpatParser_Impl::callbackExternalEntityRef( XML_Parser parser,
SaxExpatParser_Impl *pImpl = ((SaxExpatParser_Impl*)XML_GetUserData( parser ));
struct Entity entity;
-
+
if( pImpl->rEntityResolver.is() ) {
try
{
@@ -946,7 +946,7 @@ int SaxExpatParser_Impl::callbackExternalEntityRef( XML_Parser parser,
}
pImpl->popEntity();
-
+
XML_ParserFree( entity.pParser );
}
@@ -958,7 +958,7 @@ int SaxExpatParser_Impl::callbackUnknownEncoding(void * /*encodingHandlerData*/,
XML_Encoding * /*info*/)
{
return 0;
-}
+}
void SaxExpatParser_Impl::callbackDefault( void *pvThis, const XML_Char *s, int len)
{
@@ -1003,9 +1003,9 @@ void SaxExpatParser_Impl::callErrorHandler( SaxExpatParser_Impl *pImpl ,
pImpl->bExceptionWasThrown = sal_True;
}
catch( SAXException & ex ) {
- pImpl->exception = SAXParseException(
- ex.Message,
- ex.Context,
+ pImpl->exception = SAXParseException(
+ ex.Message,
+ ex.Context,
ex.WrappedException,
pImpl->rDocumentLocator->getPublicId(),
pImpl->rDocumentLocator->getSystemId(),
@@ -1013,7 +1013,7 @@ void SaxExpatParser_Impl::callErrorHandler( SaxExpatParser_Impl *pImpl ,
pImpl->rDocumentLocator->getColumnNumber()
);
pImpl->bExceptionWasThrown = sal_True;
- }
+ }
}
void SaxExpatParser_Impl::callbackEndCDATA( void *pvThis )
@@ -1026,7 +1026,7 @@ void SaxExpatParser_Impl::callbackEndCDATA( void *pvThis )
}
using namespace sax_expatwrap;
-extern "C"
+extern "C"
{
void SAL_CALL component_getImplementationEnvironment(
@@ -1045,16 +1045,16 @@ sal_Bool SAL_CALL component_writeInfo(
{
Reference< XRegistryKey > xKey(
reinterpret_cast< XRegistryKey * >( pRegistryKey ) );
-
+
Reference< XRegistryKey > xNewKey = xKey->createKey(
OUString::createFromAscii( "/" IMPLEMENTATION_NAME "/UNO/SERVICES" ) );
xNewKey->createKey( OUString::createFromAscii( SERVICE_NAME ) );
-
+
xNewKey = xKey->createKey( OUString::createFromAscii("/") +
SaxWriter_getImplementationName()+
OUString::createFromAscii( "/UNO/SERVICES" ) );
xNewKey->createKey( SaxWriter_getServiceName() );
-
+
return sal_True;
}
catch (InvalidRegistryException &)
@@ -1070,15 +1070,15 @@ void * SAL_CALL component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
void * pRet = 0;
-
+
if (pServiceManager )
{
Reference< XSingleServiceFactory > xRet;
Reference< XMultiServiceFactory > xSMgr =
reinterpret_cast< XMultiServiceFactory * > ( pServiceManager );
-
+
OUString aImplementationName = OUString::createFromAscii( pImplName );
-
+
if (aImplementationName ==
OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) ) )
{
@@ -1099,10 +1099,10 @@ void * SAL_CALL component_getFactory(
pRet = xRet.get();
}
}
-
+
return pRet;
}
-
+
}
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx
index d947a50b0ff9..ad443e239344 100644
--- a/sax/source/expatwrap/saxwriter.cxx
+++ b/sax/source/expatwrap/saxwriter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,40 +84,40 @@ namespace sax_expatwrap {
****/
// inline sal_Int32 CalcXMLLen( const Sequence<sal_Int8> & seq , sal_Bool bConvertAll ) throw()
// {
-// sal_Int32 nLen = 0;
-// const sal_Int8 *pArray = seq.getConstArray();
-
-// for( int i = 0 ; i < seq.getLength() ; i ++ ) {
-
-// sal_Int8 c = pArray[i];
-// switch( c )
-// {
-// case '&': // resemble to &amp;
-// nLen +=5;
-// break;
-// case '<': // &lt;
-// case '>': // &gt;
-// nLen +=4;
-// break;
-// case 39: // 39 == ''', &apos;
-// case '"': // &quot;
-// case 13: // &#x0d;
-// nLen += 6;
-// break;
-
-// case 10: // &#x0a;
-// case 9: // &#x09;
-// if( bConvertAll )
-// {
-// nLen += 6; //
-// }
-// break;
-// default:
-// nLen ++;
-// }
-// }
-
-// return nLen;
+// sal_Int32 nLen = 0;
+// const sal_Int8 *pArray = seq.getConstArray();
+
+// for( int i = 0 ; i < seq.getLength() ; i ++ ) {
+
+// sal_Int8 c = pArray[i];
+// switch( c )
+// {
+// case '&': // resemble to &amp;
+// nLen +=5;
+// break;
+// case '<': // &lt;
+// case '>': // &gt;
+// nLen +=4;
+// break;
+// case 39: // 39 == ''', &apos;
+// case '"': // &quot;
+// case 13: // &#x0d;
+// nLen += 6;
+// break;
+
+// case 10: // &#x0a;
+// case 9: // &#x09;
+// if( bConvertAll )
+// {
+// nLen += 6; //
+// }
+// break;
+// default:
+// nLen ++;
+// }
+// }
+
+// return nLen;
// }
enum SaxInvalidCharacterError
@@ -129,13 +129,13 @@ enum SaxInvalidCharacterError
class SaxWriterHelper
{
- Reference< XOutputStream > m_out;
- Sequence < sal_Int8 > m_Sequence;
- sal_Int8* mp_Sequence;
+ Reference< XOutputStream > m_out;
+ Sequence < sal_Int8 > m_Sequence;
+ sal_Int8* mp_Sequence;
- sal_Int32 nLastLineFeedPos; // is negative after writing a sequence
- sal_uInt32 nCurrentPos;
- sal_Bool m_bStartElementFinished;
+ sal_Int32 nLastLineFeedPos; // is negative after writing a sequence
+ sal_uInt32 nCurrentPos;
+ sal_Bool m_bStartElementFinished;
inline sal_uInt32 writeSequence() throw( SAXException );
@@ -352,7 +352,7 @@ inline sal_Bool SaxWriterHelper::convertToXML( const sal_Unicode * pStr,
else
{
memcpy( &(pTarget[rPos]) , "&quot;" , 6 );
- rPos += 6; // &quot;
+ rPos += 6; // &quot;
}
}
break;
@@ -636,7 +636,7 @@ inline SaxInvalidCharacterError SaxWriterHelper::startElement(const rtl::OUStrin
nCurrentPos = writeSequence();
}
- m_bStartElementFinished = sal_False; // because the '>' character is not added,
+ m_bStartElementFinished = sal_False; // because the '>' character is not added,
// because it is possible, that the "/>"
// characters have to add
return eRet;
@@ -839,7 +839,7 @@ inline sal_Int32 calcXMLByteLength( const sal_Unicode *pStr, sal_Int32 nStrLen,
case 9: // &#x09;
if( bNormalizeWhitespace )
{
- nOutputLength += 6; //
+ nOutputLength += 6; //
}
else
{
@@ -1004,9 +1004,9 @@ private:
void writeSequence( const Sequence<sal_Int8> & seq );
sal_Int32 getIndentPrefixLength( sal_Int32 nFirstLineBreakOccurence ) throw();
- Reference< XOutputStream > m_out;
- Sequence < sal_Int8 > m_seqStartElement;
- SaxWriterHelper* mp_SaxWriterHelper;
+ Reference< XOutputStream > m_out;
+ Sequence < sal_Int8 > m_seqStartElement;
+ SaxWriterHelper* mp_SaxWriterHelper;
// Status information
sal_Bool m_bDocStarted : 1;
@@ -1038,7 +1038,7 @@ OUString SaxWriter_getImplementationName() throw()
return OUString::createFromAscii( "com.sun.star.extensions.xml.sax.Writer" );
}
-Sequence< OUString > SaxWriter_getSupportedServiceNames(void) throw()
+Sequence< OUString > SaxWriter_getSupportedServiceNames(void) throw()
{
Sequence<OUString> aRet(1);
aRet.getArray()[0] = SaxWriter_getServiceName();
@@ -1096,7 +1096,7 @@ Sequence< OUString > SAXWriter::getSupportedServiceNames(void) throw ()
-void SAXWriter::startDocument() throw(SAXException, RuntimeException )
+void SAXWriter::startDocument() throw(SAXException, RuntimeException )
{
if( m_bDocStarted || ! m_out.is() || !mp_SaxWriterHelper ) {
throw SAXException();
@@ -1106,7 +1106,7 @@ void SAXWriter::startDocument() throw(SAXException, RuntimeE
}
-void SAXWriter::endDocument(void) throw(SAXException, RuntimeException)
+void SAXWriter::endDocument(void) throw(SAXException, RuntimeException)
{
if( ! m_bDocStarted )
{
@@ -1205,7 +1205,7 @@ void SAXWriter::startElement(const OUString& aName, const Reference< XAttributeL
}
}
-void SAXWriter::endElement(const OUString& aName) throw (SAXException, RuntimeException)
+void SAXWriter::endElement(const OUString& aName) throw (SAXException, RuntimeException)
{
if( ! m_bDocStarted ) {
throw SAXException ();
@@ -1241,7 +1241,7 @@ void SAXWriter::endElement(const OUString& aName) throw (SAXException, Runtime
}
}
-void SAXWriter::characters(const OUString& aChars) throw(SAXException, RuntimeException)
+void SAXWriter::characters(const OUString& aChars) throw(SAXException, RuntimeException)
{
if( ! m_bDocStarted )
{
@@ -1411,7 +1411,7 @@ void SAXWriter::comment(const OUString& sComment) throw(SAXException, RuntimeExc
}
-void SAXWriter::allowLineBreak( ) throw ( SAXException , RuntimeException)
+void SAXWriter::allowLineBreak( ) throw ( SAXException , RuntimeException)
{
if( ! m_bDocStarted || m_bAllowLineBreak ) {
throw SAXException();
diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx
index 421220ec8c5e..05c2a9b5d81e 100644
--- a/sax/source/expatwrap/xml2utf.cxx
+++ b/sax/source/expatwrap/xml2utf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ sal_Int32 XMLFile2UTFConverter::readAndConvert( Sequence<sal_Int8> &seq , sal_In
throw NotConnectedException();
}
if( ! m_bStarted ) {
- nMaxToRead = Max( 512 , nMaxToRead ); // it should be possible to find the encoding attribute
+ nMaxToRead = Max( 512 , nMaxToRead ); // it should be possible to find the encoding attribute
// within the first 512 bytes == 128 chars in UCS-4
}
@@ -105,7 +105,7 @@ sal_Int32 XMLFile2UTFConverter::readAndConvert( Sequence<sal_Int8> &seq , sal_In
m_pText2Unicode->canContinue() && m_pUnicode2Text->canContinue() ) {
Sequence<sal_Unicode> seqUnicode = m_pText2Unicode->convert( seq );
- seq = m_pUnicode2Text->convert( seqUnicode.getConstArray(), seqUnicode.getLength() );
+ seq = m_pUnicode2Text->convert( seqUnicode.getConstArray(), seqUnicode.getLength() );
}
if( ! m_bStarted )
@@ -173,7 +173,7 @@ void XMLFile2UTFConverter::removeEncoding( Sequence<sal_Int8> &seq )
&( seq.getArray()[nStop+1]) ,
seq.getLength() - nStop -1);
seq.realloc( seq.getLength() - ( nStop+1 - nFound ) );
-// str = String( (char * ) seq.getArray() , seq.getLen() );
+// str = String( (char * ) seq.getArray() , seq.getLen() );
}
}
}
@@ -303,7 +303,7 @@ sal_Bool XMLFile2UTFConverter::scanForEncoding( Sequence< sal_Int8 > &seq )
m_sEncoding = "utf-16";
}
- else if( 0xEF == pSource[0] &&
+ else if( 0xEF == pSource[0] &&
0xBB == pSource[1] &&
0xBF == pSource[2] )
{
@@ -384,7 +384,7 @@ void Text2UnicodeConverter::init( rtl_TextEncoding encoding )
m_bCanContinue = sal_True;
m_bInitialized = sal_True;
- m_convText2Unicode = rtl_createTextToUnicodeConverter(encoding);
+ m_convText2Unicode = rtl_createTextToUnicodeConverter(encoding);
m_contextText2Unicode = rtl_createTextToUnicodeContext( m_convText2Unicode );
m_rtlEncoding = encoding;
}
@@ -393,13 +393,13 @@ void Text2UnicodeConverter::init( rtl_TextEncoding encoding )
Sequence<sal_Unicode> Text2UnicodeConverter::convert( const Sequence<sal_Int8> &seqText )
{
sal_uInt32 uiInfo;
- sal_Size nSrcCvtBytes = 0;
- sal_Size nTargetCount = 0;
+ sal_Size nSrcCvtBytes = 0;
+ sal_Size nTargetCount = 0;
sal_Size nSourceCount = 0;
// the whole source size
- sal_Int32 nSourceSize = seqText.getLength() + m_seqSource.getLength();
- Sequence<sal_Unicode> seqUnicode ( nSourceSize );
+ sal_Int32 nSourceSize = seqText.getLength() + m_seqSource.getLength();
+ Sequence<sal_Unicode> seqUnicode ( nSourceSize );
const sal_Int8 *pbSource = seqText.getConstArray();
sal_Int8 *pbTempMem = 0;
@@ -418,7 +418,7 @@ Sequence<sal_Unicode> Text2UnicodeConverter::convert( const Sequence<sal_Int8> &
while( sal_True ) {
/* All invalid characters are transformed to the unicode undefined char */
- nTargetCount += rtl_convertTextToUnicode(
+ nTargetCount += rtl_convertTextToUnicode(
m_convText2Unicode,
m_contextText2Unicode,
( const sal_Char * ) &( pbSource[nSourceCount] ),
@@ -513,7 +513,7 @@ Sequence<sal_Int8> Unicode2TextConverter::convert(const sal_Unicode *puSource ,
// which most often used as the target.
sal_Int32 nSeqSize = nSourceSize * 3;
- Sequence<sal_Int8> seqText( nSeqSize );
+ Sequence<sal_Int8> seqText( nSeqSize );
sal_Char *pTarget = (sal_Char *) seqText.getArray();
while( sal_True ) {
@@ -562,7 +562,7 @@ void Unicode2TextConverter::init( rtl_TextEncoding encoding )
m_bCanContinue = sal_True;
m_bInitialized = sal_True;
- m_convUnicode2Text = rtl_createUnicodeToTextConverter( encoding );
+ m_convUnicode2Text = rtl_createUnicodeToTextConverter( encoding );
m_contextUnicode2Text = rtl_createUnicodeToTextContext( m_convUnicode2Text );
m_rtlEncoding = encoding;
};
diff --git a/sax/source/fastparser/facreg.cxx b/sax/source/fastparser/facreg.cxx
index 7d968ad1b219..3f9900c212d5 100644
--- a/sax/source/fastparser/facreg.cxx
+++ b/sax/source/fastparser/facreg.cxx
@@ -17,16 +17,16 @@ namespace sax_fastparser
{
//--------------------------------------
-// the extern interface
+// the extern interface
//---------------------------------------
Reference< XInterface > SAL_CALL FastSaxParser_CreateInstance( const Reference< XMultiServiceFactory > & ) throw(Exception)
-{
+{
FastSaxParser *p = new FastSaxParser;
return Reference< XInterface > ( (OWeakObject * ) p );
}
Reference< XInterface > SAL_CALL FastSaxSerializer_CreateInstance( const Reference< XMultiServiceFactory > & ) throw(Exception)
-{
+{
FastSaxSerializer *p = new FastSaxSerializer;
return Reference< XInterface > ( (OWeakObject * ) p );
}
@@ -58,7 +58,7 @@ sal_Bool SAL_CALL component_writeInfo(
Reference< XRegistryKey > xNewKey1( xKey->createKey(
OUString::createFromAscii( "/" SERIALIZER_IMPLEMENTATION_NAME "/UNO/SERVICES" ) ) );
xNewKey1->createKey( OUString::createFromAscii( SERIALIZER_SERVICE_NAME ) );
-
+
return sal_True;
}
catch (InvalidRegistryException &)
@@ -79,7 +79,7 @@ void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServic
Reference< XMultiServiceFactory > xSMgr( reinterpret_cast< XMultiServiceFactory * > ( pServiceManager ) );
OUString aImplementationName( OUString::createFromAscii( pImplName ) );
-
+
if (aImplementationName == OUString( RTL_CONSTASCII_USTRINGPARAM( PARSER_IMPLEMENTATION_NAME ) ) )
{
xRet = createSingleFactory( xSMgr, aImplementationName,
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 90596009c617..d4c653769a65 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,11 +58,11 @@ namespace sax_fastparser {
struct SaxContextImpl
{
- Reference< XFastContextHandler > mxContext;
- sal_uInt32 mnNamespaceCount;
- sal_Int32 mnElementToken;
- OUString maNamespace;
- OUString maElementName;
+ Reference< XFastContextHandler > mxContext;
+ sal_uInt32 mnNamespaceCount;
+ sal_Int32 mnElementToken;
+ OUString maNamespace;
+ OUString maElementName;
SaxContextImpl() { mnNamespaceCount = 0; mnElementToken = 0; }
SaxContextImpl( const SaxContextImplPtr& p ) { mnNamespaceCount = p->mnNamespaceCount; mnElementToken = p->mnElementToken; maNamespace = p->maNamespace; }
@@ -72,9 +72,9 @@ struct SaxContextImpl
struct NamespaceDefine
{
- OString maPrefix;
- sal_Int32 mnToken;
- OUString maNamespaceURL;
+ OString maPrefix;
+ sal_Int32 mnToken;
+ OUString maNamespaceURL;
NamespaceDefine( const OString& rPrefix, sal_Int32 nToken, const OUString& rNamespaceURL ) : maPrefix( rPrefix ), mnToken( nToken ), maNamespaceURL( rNamespaceURL ) {}
};
@@ -435,7 +435,7 @@ void FastSaxParser::splitName( const XML_Char *pwName, const XML_Char *&rpPrefix
* the file-specific initialization work. (During a parser run, external files may be opened)
*
****************/
-void FastSaxParser::parseStream( const InputSource& maStructSource) throw (SAXException, IOException, RuntimeException)
+void FastSaxParser::parseStream( const InputSource& maStructSource) throw (SAXException, IOException, RuntimeException)
{
// Only one text at one time
MutexGuard guard( maMutex );
@@ -448,7 +448,7 @@ void FastSaxParser::parseStream( const InputSource& maStructSource) throw (SAXEx
entity.maConverter.setInputStream( entity.maStructSource.aInputStream );
if( entity.maStructSource.sEncoding.getLength() )
- entity.maConverter.setEncoding( OUStringToOString( entity.maStructSource.sEncoding, RTL_TEXTENCODING_ASCII_US ) );
+ entity.maConverter.setEncoding( OUStringToOString( entity.maStructSource.sEncoding, RTL_TEXTENCODING_ASCII_US ) );
// create parser with proper encoding
entity.mpParser = XML_ParserCreate( 0 );
@@ -457,7 +457,7 @@ void FastSaxParser::parseStream( const InputSource& maStructSource) throw (SAXEx
// set all necessary C-Callbacks
XML_SetUserData( entity.mpParser, this );
- XML_SetElementHandler( entity.mpParser, call_callbackStartElement, call_callbackEndElement );
+ XML_SetElementHandler( entity.mpParser, call_callbackStartElement, call_callbackEndElement );
XML_SetCharacterDataHandler( entity.mpParser, call_callbackCharacters );
XML_SetExternalEntityRefHandler( entity.mpParser, call_callbackExternalEntityRef );
diff --git a/sax/source/fastparser/fastparser.hxx b/sax/source/fastparser/fastparser.hxx
index f9fa83099a6e..7d5e9f758317 100644
--- a/sax/source/fastparser/fastparser.hxx
+++ b/sax/source/fastparser/fastparser.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ struct Entity : public ParserData
::std::stack< SaxContextImplPtr > maContextStack;
::std::vector< NamespaceDefineRef > maNamespaceDefines;
-
+
explicit Entity( const ParserData& rData );
~Entity();
};
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx
index 5dee77ea41d5..91f37b0bfd59 100644
--- a/sax/source/tools/converter.cxx
+++ b/sax/source/tools/converter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ const sal_Int8 XML_MAXDIGITSCOUNT_DATETIME = 6;
#define XML_NULLDATE "NullDate"
/** convert string to measure using optional min and max values*/
-bool Converter::convertMeasure( sal_Int32& rValue,
+bool Converter::convertMeasure( sal_Int32& rValue,
const OUString& rString,
sal_Int16 nTargetUnit /* = MeasureUnit::MM_100TH */,
sal_Int32 nMin /* = SAL_MIN_INT32 */,
@@ -386,7 +386,7 @@ void Converter::convertNumber( OUStringBuffer& rBuffer, sal_Int32 nNumber )
}
/** convert string to number with optional min and max values */
-bool Converter::convertNumber( sal_Int32& rValue,
+bool Converter::convertNumber( sal_Int32& rValue,
const OUString& rString,
sal_Int32 nMin, sal_Int32 nMax )
{
@@ -1452,7 +1452,7 @@ const
const
sal_uInt8 aBase64DecodeTable[] =
- { 62,255,255,255, 63, // 43-47
+ { 62,255,255,255, 63, // 43-47
// + /
52, 53, 54, 55, 56, 57, 58, 59, 60, 61,255,255,255, 0,255,255, // 48-63
@@ -1626,9 +1626,9 @@ void Converter::clearUndefinedChars(rtl::OUString& rTarget, const rtl::OUString&
{
sal_Unicode cChar = rSource[i];
if (!(cChar < 0x0020) ||
- (cChar == 0x0009) || // TAB
- (cChar == 0x000A) || // LF
- (cChar == 0x000D)) // legal character
+ (cChar == 0x0009) || // TAB
+ (cChar == 0x000A) || // LF
+ (cChar == 0x000D)) // legal character
sBuffer.append(cChar);
}
rTarget = sBuffer.makeStringAndClear();
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index ba9ee4dce7d3..07e1975977c3 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx
index b475f6d2342c..b97381d8068d 100644
--- a/sax/source/tools/fastserializer.cxx
+++ b/sax/source/tools/fastserializer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -104,12 +104,12 @@ namespace sax_fastparser {
}
return sBuf.makeStringAndClear();
}
-
+
void FastSaxSerializer::write( const OUString& s )
{
OString sOutput( OUStringToOString( s, RTL_TEXTENCODING_UTF8 ) );
- writeBytes( Sequence< sal_Int8 >(
- reinterpret_cast< const sal_Int8*>( sOutput.getStr() ),
+ writeBytes( Sequence< sal_Int8 >(
+ reinterpret_cast< const sal_Int8*>( sOutput.getStr() ),
sOutput.getLength() ) );
}
@@ -118,7 +118,7 @@ namespace sax_fastparser {
if (!mxOutputStream.is())
return;
}
-
+
void SAL_CALL FastSaxSerializer::writeId( ::sal_Int32 nElement )
{
if( HAS_NAMESPACE( nElement ) ) {
@@ -156,11 +156,11 @@ namespace sax_fastparser {
write(Namespace);
writeBytes(toUnoSequence(aColon));
}
-
+
write(Name);
-
+
writeFastAttributeList(Attribs);
-
+
writeBytes(toUnoSequence(aClosingBracket));
}
@@ -190,9 +190,9 @@ namespace sax_fastparser {
write(Namespace);
writeBytes(toUnoSequence(aColon));
}
-
+
write(Name);
-
+
writeBytes(toUnoSequence(aClosingBracket));
}
@@ -223,11 +223,11 @@ namespace sax_fastparser {
write(Namespace);
writeBytes(toUnoSequence(aColon));
}
-
+
write(Name);
writeFastAttributeList(Attribs);
-
+
writeBytes(toUnoSequence(aSlashAndClosingBracket));
}
@@ -239,7 +239,7 @@ namespace sax_fastparser {
write( aChars );
}
-
+
void SAL_CALL FastSaxSerializer::setOutputStream( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& xOutputStream )
throw (::com::sun::star::uno::RuntimeException)
{
@@ -265,7 +265,7 @@ namespace sax_fastparser {
write(escapeXml(pAttr[i].Value));
writeBytes(toUnoSequence(aQuote));
}
-
+
Sequence< FastAttribute > aFastAttrSeq = Attribs->getFastAttributes();
const FastAttribute *pFastAttr = aFastAttrSeq.getConstArray();
sal_Int32 nFastAttrLength = aFastAttrSeq.getLength();
@@ -275,11 +275,11 @@ namespace sax_fastparser {
sal_Int32 nToken = pFastAttr[j].Token;
writeId(nToken);
-
+
writeBytes(toUnoSequence(aEqualSignAndQuote));
-
+
write(escapeXml(Attribs->getValue(pFastAttr[j].Token)));
-
+
writeBytes(toUnoSequence(aQuote));
}
}
@@ -385,7 +385,7 @@ namespace sax_fastparser {
{
merge( maData, maPostponed, true );
maPostponed.realloc( 0 );
-
+
return maData;
}
diff --git a/sax/source/tools/fastserializer.hxx b/sax/source/tools/fastserializer.hxx
index cb57be1f61fb..07a6ed5690ec 100644
--- a/sax/source/tools/fastserializer.hxx
+++ b/sax/source/tools/fastserializer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,8 +40,8 @@
#include "sax/dllapi.h"
#include "sax/fshelper.hxx"
-#define SERIALIZER_IMPLEMENTATION_NAME "com.sun.star.comp.extensions.xml.sax.FastSerializer"
-#define SERIALIZER_SERVICE_NAME "com.sun.star.xml.sax.FastSerializer"
+#define SERIALIZER_IMPLEMENTATION_NAME "com.sun.star.comp.extensions.xml.sax.FastSerializer"
+#define SERIALIZER_SERVICE_NAME "com.sun.star.xml.sax.FastSerializer"
namespace sax_fastparser {
@@ -54,8 +54,8 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > getOutputStream() {return mxOutputStream;}
// The implementation details
- static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void);
- static ::rtl::OUString getImplementationName_Static();
+ static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void);
+ static ::rtl::OUString getImplementationName_Static();
// XFastSerializer
virtual void SAL_CALL startDocument( ) throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException);
@@ -142,7 +142,7 @@ private:
void prepend( const Int8Sequence &rWhat );
void append( const Int8Sequence &rWhat );
void postpone( const Int8Sequence &rWhat );
-
+
private:
static void merge( Int8Sequence &rTop, const Int8Sequence &rMerge, bool bAppend );
};
diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx
index 16b3acb3e021..c9df02140c5e 100644
--- a/sax/source/tools/fshelper.cxx
+++ b/sax/source/tools/fshelper.cxx
@@ -73,7 +73,7 @@ void FastSerializerHelper::endElement(const char* elementName)
{
mpSerializer->endUnknownElement(::rtl::OUString(), ::rtl::OUString::createFromAscii(elementName));
}
-
+
void FastSerializerHelper::startElementV(sal_Int32 elementTokenId, va_list args)
{
FastAttributeList* pAttrList = new FastAttributeList( mxTokenHandler );
@@ -102,8 +102,8 @@ void FastSerializerHelper::singleElementV(sal_Int32 elementTokenId, va_list args
if (nName == FSEND)
break;
const char* pValue = va_arg(args, const char*);
- if (pValue)
- pAttrList->add(nName, pValue);
+ if (pValue)
+ pAttrList->add(nName, pValue);
}
const com::sun::star::uno::Reference<com::sun::star::xml::sax::XFastAttributeList> xAttrList(pAttrList);
@@ -123,7 +123,7 @@ void FastSerializerHelper::startElementV(sal_Int32 elementTokenId, XFastAttribut
void FastSerializerHelper::singleElement(const char* elementName, XFastAttributeListRef xAttrList)
{
- mpSerializer->singleUnknownElement(::rtl::OUString(), ::rtl::OUString::createFromAscii(elementName), xAttrList);
+ mpSerializer->singleUnknownElement(::rtl::OUString(), ::rtl::OUString::createFromAscii(elementName), xAttrList);
}
void FastSerializerHelper::singleElementV(sal_Int32 elementTokenId, XFastAttributeListRef xAttrList)
@@ -197,7 +197,7 @@ FastAttributeList * FastSerializerHelper::createAttrList()
{
return new FastAttributeList( mxTokenHandler );
}
-
+
}
diff --git a/sax/test/sax/factory.hxx b/sax/test/sax/factory.hxx
index e40f1c491431..7a0c1152de4d 100644
--- a/sax/test/sax/factory.hxx
+++ b/sax/test/sax/factory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@ namespace sax_test {
Reference< XInterface > SAL_CALL OSaxWriterTest_CreateInstance(
const Reference< XMultiServiceFactory > & rSMgr ) throw ( Exception );
OUString OSaxWriterTest_getServiceName( ) throw();
-OUString OSaxWriterTest_getImplementationName( ) throw();
+OUString OSaxWriterTest_getImplementationName( ) throw();
Sequence<OUString> OSaxWriterTest_getSupportedServiceNames( ) throw();
}
#define BUILD_ERROR(expr, Message)\
@@ -52,7 +52,7 @@ Sequence<OUString> OSaxWriterTest_getSupportedServiceNames( ) throw();
OStringToOUString( str.makeStringAndClear() , RTL_TEXTENCODING_ASCII_US ); \
}\
((void)0)
-
+
#define WARNING_ASSERT(expr, Message) \
if( ! (expr) ) { \
diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx
index fcc083e4fda4..4c9c224d897d 100644
--- a/sax/test/sax/testsax.cxx
+++ b/sax/test/sax/testsax.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,18 +75,18 @@ public:
virtual void SAL_CALL testInvariant(
const OUString& TestName,
const Reference < XInterface >& TestObject)
- throw ( IllegalArgumentException, RuntimeException);
+ throw ( IllegalArgumentException, RuntimeException);
virtual sal_Int32 SAL_CALL test(
const OUString& TestName,
const Reference < XInterface >& TestObject,
sal_Int32 hTestHandle)
- throw ( IllegalArgumentException,RuntimeException);
+ throw ( IllegalArgumentException,RuntimeException);
- virtual sal_Bool SAL_CALL testPassed(void) throw ( RuntimeException);
- virtual Sequence< OUString > SAL_CALL getErrors(void) throw (RuntimeException);
- virtual Sequence< Any > SAL_CALL getErrorExceptions(void) throw (RuntimeException);
- virtual Sequence< OUString > SAL_CALL getWarnings(void) throw (RuntimeException);
+ virtual sal_Bool SAL_CALL testPassed(void) throw ( RuntimeException);
+ virtual Sequence< OUString > SAL_CALL getErrors(void) throw (RuntimeException);
+ virtual Sequence< Any > SAL_CALL getErrorExceptions(void) throw (RuntimeException);
+ virtual Sequence< OUString > SAL_CALL getWarnings(void) throw (RuntimeException);
private:
void testSimple( const Reference < XParser > &r );
@@ -96,9 +96,9 @@ private:
void testPerformance( const Reference < XParser > &rParser );
private:
- Sequence<Any> m_seqExceptions;
- Sequence<OUString> m_seqErrors;
- Sequence<OUString> m_seqWarnings;
+ Sequence<Any> m_seqExceptions;
+ Sequence<OUString> m_seqErrors;
+ Sequence<OUString> m_seqWarnings;
Reference < XMultiServiceFactory > m_rFactory;
};
@@ -121,7 +121,7 @@ OUString OSaxParserTest_getServiceName( ) throw ()
return OUString( RTL_CONSTASCII_USTRINGPARAM("test.com.sun.star.xml.sax.Parser" ));
}
-OUString OSaxParserTest_getImplementationName( ) throw ()
+OUString OSaxParserTest_getImplementationName( ) throw ()
{
return OUString( RTL_CONSTASCII_USTRINGPARAM("test.extensions.xml.sax.Parser"));
}
@@ -141,7 +141,7 @@ Sequence<OUString> OSaxParserTest_getSupportedServiceNames( ) throw ()
void OSaxParserTest::testInvariant(
const OUString& TestName,
const Reference < XInterface >& TestObject )
- throw ( IllegalArgumentException, RuntimeException)
+ throw ( IllegalArgumentException, RuntimeException)
{
if( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Parser")) == TestName ) {
Reference < XParser > parser( TestObject , UNO_QUERY );
@@ -155,7 +155,7 @@ sal_Int32 OSaxParserTest::test(
const OUString& TestName,
const Reference < XInterface >& TestObject,
sal_Int32 hTestHandle)
- throw ( IllegalArgumentException, RuntimeException)
+ throw ( IllegalArgumentException, RuntimeException)
{
if( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Parser")) == TestName ) {
try
@@ -209,25 +209,25 @@ sal_Int32 OSaxParserTest::test(
-sal_Bool OSaxParserTest::testPassed(void) throw (RuntimeException)
+sal_Bool OSaxParserTest::testPassed(void) throw (RuntimeException)
{
return m_seqErrors.getLength() == 0;
}
-Sequence< OUString > OSaxParserTest::getErrors(void) throw (RuntimeException)
+Sequence< OUString > OSaxParserTest::getErrors(void) throw (RuntimeException)
{
return m_seqErrors;
}
-Sequence< Any > OSaxParserTest::getErrorExceptions(void) throw (RuntimeException)
+Sequence< Any > OSaxParserTest::getErrorExceptions(void) throw (RuntimeException)
{
return m_seqExceptions;
}
-Sequence< OUString > OSaxParserTest::getWarnings(void) throw (RuntimeException)
+Sequence< OUString > OSaxParserTest::getWarnings(void) throw (RuntimeException)
{
return m_seqWarnings;
}
@@ -473,19 +473,19 @@ public:
int m_iWhitespaceCount;
int m_iCharCount;
sal_Bool m_bPrint;
-
+
Reference < XMultiServiceFactory > m_xSMgr;
Reference < XLocator > m_rLocator;
};
-
-
-void OSaxParserTest::testSimple( const Reference < XParser > &rParser )
+
+
+void OSaxParserTest::testSimple( const Reference < XParser > &rParser )
{
char TestString[] = "<!DOCTYPE personnel [\n"
"<!ENTITY testInternal \"internal Test!\">\n"
"<!ENTITY test SYSTEM \"external_entity.xml\">\n"
- "]>\n"
+ "]>\n"
"<personnel>\n"
"<person> fjklsfdklsdfkl\n"
"fjklsfdklsdfkl\n"
@@ -501,37 +501,37 @@ void OSaxParserTest::testSimple( const Reference < XParser > &rParser )
"</HUHU>\n"
"</person>\n"
"</personnel>\n\n\n";
-
+
Sequence< sal_Int8> seqBytes( strlen( TestString ) );
memcpy( seqBytes.getArray() , TestString , strlen( TestString ) );
-
+
Reference< XInputStream > rInStream;
OUString sInput;
rInStream = createStreamFromSequence( seqBytes , m_rFactory );
sInput = OUString( OUString( RTL_CONSTASCII_USTRINGPARAM("internal")) );
-
+
if( rParser.is() ) {
InputSource source;
source.aInputStream = rInStream;
- source.sSystemId = sInput;
-
+ source.sSystemId = sInput;
+
TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , sal_False );
Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler , UNO_QUERY );
Reference< XEntityResolver >
rEntityResolver( (XEntityResolver *) pDocHandler , UNO_QUERY );
-
+
rParser->setDocumentHandler( rDocHandler );
rParser->setEntityResolver( rEntityResolver );
try
{
rParser->parseStream( source );
- ERROR_ASSERT( pDocHandler->m_iElementCount == 4 , "wrong element count" );
- ERROR_ASSERT( pDocHandler->m_iAttributeCount == 2 , "wrong attribut count" );
- ERROR_ASSERT( pDocHandler->m_iCharCount == 130 , "wrong char count" );
- ERROR_ASSERT( pDocHandler->m_iWhitespaceCount == 0, "wrong whitespace count" );
+ ERROR_ASSERT( pDocHandler->m_iElementCount == 4 , "wrong element count" );
+ ERROR_ASSERT( pDocHandler->m_iAttributeCount == 2 , "wrong attribut count" );
+ ERROR_ASSERT( pDocHandler->m_iCharCount == 130 , "wrong char count" );
+ ERROR_ASSERT( pDocHandler->m_iWhitespaceCount == 0, "wrong whitespace count" );
}
catch( SAXParseException & e )
{
@@ -540,8 +540,8 @@ void OSaxParserTest::testSimple( const Reference < XParser > &rParser )
}
catch( SAXException & e )
{
- OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
- BUILD_ERROR( 1 , o1.getStr() );
+ OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
+ BUILD_ERROR( 1 , o1.getStr() );
}
catch( Exception & e )
{
@@ -558,7 +558,7 @@ void OSaxParserTest::testSimple( const Reference < XParser > &rParser )
void OSaxParserTest::testNamespaces( const Reference < XParser > &rParser )
{
- char TestString[] =
+ char TestString[] =
"<?xml version='1.0'?>\n"
"<!-- all elements here are explicitly in the HTML namespace -->\n"
"<html:html xmlns:html='http://www.w3.org/TR/REC-html40'>\n"
@@ -570,49 +570,49 @@ void OSaxParserTest::testNamespaces( const Reference < XParser > &rParser )
Sequence<sal_Int8> seqBytes( strlen( TestString ) );
memcpy( seqBytes.getArray() , TestString , strlen( TestString ) );
-
+
Reference< XInputStream > rInStream;
OUString sInput;
rInStream = createStreamFromSequence( seqBytes , m_rFactory );
sInput = OUString( RTL_CONSTASCII_USTRINGPARAM( "internal" ));
-
+
if( rParser.is() ) {
InputSource source;
source.aInputStream = rInStream;
- source.sSystemId = sInput;
-
+ source.sSystemId = sInput;
+
TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , sal_False );
Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler , UNO_QUERY );
- Reference< XEntityResolver > rEntityResolver(
+ Reference< XEntityResolver > rEntityResolver(
(XEntityResolver *) pDocHandler , UNO_QUERY );
-
+
rParser->setDocumentHandler( rDocHandler );
rParser->setEntityResolver( rEntityResolver );
try
{
rParser->parseStream( source );
- ERROR_ASSERT( pDocHandler->m_iElementCount == 6 , "wrong element count" );
- ERROR_ASSERT( pDocHandler->m_iAttributeCount == 2 , "wrong attribut count" );
- ERROR_ASSERT( pDocHandler->m_iCharCount == 33, "wrong char count" );
- ERROR_ASSERT( pDocHandler->m_iWhitespaceCount == 0 , "wrong whitespace count" );
+ ERROR_ASSERT( pDocHandler->m_iElementCount == 6 , "wrong element count" );
+ ERROR_ASSERT( pDocHandler->m_iAttributeCount == 2 , "wrong attribut count" );
+ ERROR_ASSERT( pDocHandler->m_iCharCount == 33, "wrong char count" );
+ ERROR_ASSERT( pDocHandler->m_iWhitespaceCount == 0 , "wrong whitespace count" );
}
catch( Exception & e ) {
- OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
- BUILD_ERROR( 1 , o1.getStr() );
+ OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
+ BUILD_ERROR( 1 , o1.getStr() );
}
catch( ... )
{
BUILD_ERROR( 1 , "unknown exception" );
}
- }
+ }
}
void OSaxParserTest::testEncoding( const Reference < XParser > &rParser )
{
- char TestString[] =
+ char TestString[] =
"<?xml version='1.0' encoding=\"iso-8859-1\"?>\n"
"<!-- all elements here are explicitly in the HTML namespace -->\n"
"<html:html xmlns:html='http://www.w3.org/TR/REC-html40'>\n"
@@ -624,23 +624,23 @@ void OSaxParserTest::testEncoding( const Reference < XParser > &rParser )
Sequence<sal_Int8> seqBytes( strlen( TestString ) );
memcpy( seqBytes.getArray() , TestString , strlen( TestString ) );
-
+
Reference< XInputStream > rInStream;
OUString sInput;
rInStream = createStreamFromSequence( seqBytes , m_rFactory );
sInput = OUString( RTL_CONSTASCII_USTRINGPARAM("internal") );
-
+
if( rParser.is() ) {
InputSource source;
source.aInputStream = rInStream;
- source.sSystemId = sInput;
-
+ source.sSystemId = sInput;
+
TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , sal_False );
Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler , UNO_QUERY );
Reference< XEntityResolver > rEntityResolver( (XEntityResolver *) pDocHandler , UNO_QUERY );
-
+
rParser->setDocumentHandler( rDocHandler );
rParser->setEntityResolver( rEntityResolver );
try
@@ -649,8 +649,8 @@ void OSaxParserTest::testEncoding( const Reference < XParser > &rParser )
}
catch( Exception & e )
{
- OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
- BUILD_ERROR( 1 , o1.getStr() );
+ OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
+ BUILD_ERROR( 1 , o1.getStr() );
}
catch ( ... )
{
@@ -659,24 +659,24 @@ void OSaxParserTest::testEncoding( const Reference < XParser > &rParser )
}
}
-void OSaxParserTest::testFile( const Reference < XParser > & rParser )
+void OSaxParserTest::testFile( const Reference < XParser > & rParser )
{
-
+
Reference< XInputStream > rInStream = createStreamFromFile( "testsax.xml" , m_rFactory );
OUString sInput = OUString( RTL_CONSTASCII_USTRINGPARAM( "testsax.xml" ) );
-
+
if( rParser.is() && rInStream.is() ) {
InputSource source;
source.aInputStream = rInStream;
- source.sSystemId = sInput;
-
+ source.sSystemId = sInput;
+
TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , sal_True );
Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler , UNO_QUERY );
- Reference < XEntityResolver > rEntityResolver( (XEntityResolver *) pDocHandler , UNO_QUERY );
- Reference < XErrorHandler > rErrorHandler( ( XErrorHandler * )pDocHandler , UNO_QUERY );
-
+ Reference < XEntityResolver > rEntityResolver( (XEntityResolver *) pDocHandler , UNO_QUERY );
+ Reference < XErrorHandler > rErrorHandler( ( XErrorHandler * )pDocHandler , UNO_QUERY );
+
rParser->setDocumentHandler( rDocHandler );
rParser->setEntityResolver( rEntityResolver );
rParser->setErrorHandler( rErrorHandler );
@@ -693,34 +693,34 @@ void OSaxParserTest::testFile( const Reference < XParser > & rParser )
SAXParseException *pEx;
if( any.getValueType() == getCppuType( &e ) ) {
pEx = ( SAXParseException * ) any.getValue();
- OString o1 = OUStringToOString(pEx->Message, RTL_TEXTENCODING_UTF8 );
- printf( "%s\n" , o1.getStr() );
+ OString o1 = OUStringToOString(pEx->Message, RTL_TEXTENCODING_UTF8 );
+ printf( "%s\n" , o1.getStr() );
any = pEx->WrappedException;
}
else {
- break;
+ break;
}
}
}
catch( SAXException & e )
{
- OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
+ OString o1 = OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8 );
BUILD_ERROR( 1 , o1.getStr() );
-
+
}
catch( Exception & e ) {
printf( "normal exception ! %s\n", e.Message );
}
catch ( ... )
{
- printf( "any exception !!!!\n" );
+ printf( "any exception !!!!\n" );
}
- }
+ }
}
-void OSaxParserTest::testPerformance( const Reference < XParser > & rParser )
+void OSaxParserTest::testPerformance( const Reference < XParser > & rParser )
{
-
+
Reference < XInputStream > rInStream =
createStreamFromFile( "testPerformance.xml" , m_rFactory );
OUString sInput = OUString( RTL_CONSTASCII_USTRINGPARAM( "testperformance.xml") );
@@ -729,13 +729,13 @@ void OSaxParserTest::testPerformance( const Reference < XParser > & rParser )
InputSource source;
source.aInputStream = rInStream;
- source.sSystemId = sInput;
-
+ source.sSystemId = sInput;
+
TestDocumentHandler *pDocHandler = new TestDocumentHandler( m_rFactory , sal_False );
Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler , UNO_QUERY );
Reference < XEntityResolver > rEntityResolver( (XEntityResolver *) pDocHandler , UNO_QUERY );
- Reference < XErrorHandler > rErrorHandler( ( XErrorHandler * )pDocHandler , UNO_QUERY );
-
+ Reference < XErrorHandler > rErrorHandler( ( XErrorHandler * )pDocHandler , UNO_QUERY );
+
rParser->setDocumentHandler( rDocHandler );
rParser->setEntityResolver( rEntityResolver );
rParser->setErrorHandler( rErrorHandler );
@@ -746,12 +746,12 @@ void OSaxParserTest::testPerformance( const Reference < XParser > & rParser )
osl_getSystemTime( &aStartTime );
rParser->parseStream( source );
osl_getSystemTime( &aEndTime );
-
+
double fStart = (double)aStartTime.Seconds + ((double)aStartTime.Nanosec / 1000000000.0);
double fEnd = (double)aEndTime.Seconds + ((double)aEndTime.Nanosec / 1000000000.0);
-
+
printf( "Performance reading : %g s\n" , fEnd - fStart );
-
+
}
catch( SAXParseException &e ) {
Any any;
@@ -761,24 +761,24 @@ void OSaxParserTest::testPerformance( const Reference < XParser > & rParser )
SAXParseException ex;
any >>= ex;
OString o = OUStringToOString( ex.Message , RTL_TEXTENCODING_ASCII_US );
- printf( "%s\n" , o.getStr() );
+ printf( "%s\n" , o.getStr() );
any <<= ex.WrappedException;
}
else {
- break;
+ break;
}
}
}
catch( SAXException &e ) {
OString o = OUStringToOString( e.Message , RTL_TEXTENCODING_ASCII_US );
- printf( "%s\n" , o.getStr() );
-
+ printf( "%s\n" , o.getStr() );
+
}
catch( ... )
{
- printf( "any exception !!!!\n" );
+ printf( "any exception !!!!\n" );
}
- }
+ }
}
}
using namespace sax_test;
@@ -826,7 +826,7 @@ sal_Bool SAL_CALL component_writeInfo(
OSL_ENSURE( sal_False, "### InvalidRegistryException!" );
}
}
-
+
return sal_False;
}
@@ -834,13 +834,13 @@ void * SAL_CALL component_getFactory(
const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
{
void * pRet = 0;
-
+
if (pServiceManager )
{
Reference< XSingleServiceFactory > xRet;
Reference< XMultiServiceFactory > xSMgr =
reinterpret_cast< XMultiServiceFactory * > ( pServiceManager );
-
+
OUString aImplementationName = OUString::createFromAscii( pImplName );
@@ -862,7 +862,7 @@ void * SAL_CALL component_getFactory(
pRet = xRet.get();
}
}
-
+
return pRet;
}
diff --git a/sax/test/sax/testwriter.cxx b/sax/test/sax/testwriter.cxx
index 68df101bde23..d70224191718 100644
--- a/sax/test/sax/testwriter.cxx
+++ b/sax/test/sax/testwriter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -118,20 +118,20 @@ public:
virtual void SAL_CALL testInvariant(
const OUString& TestName,
const Reference < XInterface >& TestObject)
- throw ( IllegalArgumentException,
+ throw ( IllegalArgumentException,
RuntimeException);
virtual sal_Int32 SAL_CALL test(
const OUString& TestName,
const Reference < XInterface >& TestObject,
sal_Int32 hTestHandle)
- throw ( IllegalArgumentException,RuntimeException);
+ throw ( IllegalArgumentException,RuntimeException);
virtual sal_Bool SAL_CALL testPassed(void)
- throw ( RuntimeException);
- virtual Sequence< OUString > SAL_CALL getErrors(void) throw (RuntimeException);
- virtual Sequence< Any > SAL_CALL getErrorExceptions(void) throw (RuntimeException);
- virtual Sequence< OUString > SAL_CALL getWarnings(void) throw (RuntimeException);
+ throw ( RuntimeException);
+ virtual Sequence< OUString > SAL_CALL getErrors(void) throw (RuntimeException);
+ virtual Sequence< Any > SAL_CALL getErrorExceptions(void) throw (RuntimeException);
+ virtual Sequence< OUString > SAL_CALL getWarnings(void) throw (RuntimeException);
private:
void testSimple( const Reference< XExtendedDocumentHandler > &r );
@@ -141,9 +141,9 @@ private:
void writeParagraph( const Reference< XExtendedDocumentHandler > &r , const OUString & s);
private:
- Sequence<Any> m_seqExceptions;
- Sequence<OUString> m_seqErrors;
- Sequence<OUString> m_seqWarnings;
+ Sequence<Any> m_seqExceptions;
+ Sequence<OUString> m_seqErrors;
+ Sequence<OUString> m_seqWarnings;
Reference < XMultiServiceFactory > m_rFactory;
};
@@ -152,7 +152,7 @@ private:
/*----------------------------------------
*
-* Attributlist implementation
+* Attributlist implementation
*
*----------------------------------------*/
struct AttributeListImpl_impl;
@@ -189,9 +189,9 @@ struct TagAttribute
const OUString &sType ,
const OUString &sValue )
{
- this->sName = sName;
- this->sType = sType;
- this->sValue = sValue;
+ this->sName = sName;
+ this->sType = sType;
+ this->sValue = sValue;
}
OUString sName;
@@ -288,7 +288,7 @@ AttributeListImpl::~AttributeListImpl()
}
-void AttributeListImpl::addAttribute( const OUString &sName ,
+void AttributeListImpl::addAttribute( const OUString &sName ,
const OUString &sType ,
const OUString &sValue )
{
@@ -328,7 +328,7 @@ OUString OSaxWriterTest_getServiceName( ) throw ()
return OUString( RTL_CONSTASCII_USTRINGPARAM("test.com.sun.star.xml.sax.Writer"));
}
-OUString OSaxWriterTest_getImplementationName( ) throw ()
+OUString OSaxWriterTest_getImplementationName( ) throw ()
{
return OUString( RTL_CONSTASCII_USTRINGPARAM("test.extensions.xml.sax.Writer"));
}
@@ -346,7 +346,7 @@ Sequence<OUString> OSaxWriterTest_getSupportedServiceNames( ) throw ()
void OSaxWriterTest::testInvariant( const OUString& TestName,
const Reference < XInterface >& TestObject )
- throw ( IllegalArgumentException, RuntimeException)
+ throw ( IllegalArgumentException, RuntimeException)
{
if( OUString::createFromAscii("com.sun.star.xml.sax.Writer") == TestName ) {
Reference< XDocumentHandler > doc( TestObject , UNO_QUERY );
@@ -367,7 +367,7 @@ sal_Int32 OSaxWriterTest::test(
const OUString& TestName,
const Reference < XInterface >& TestObject,
sal_Int32 hTestHandle)
- throw ( IllegalArgumentException,RuntimeException)
+ throw ( IllegalArgumentException,RuntimeException)
{
if( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.xml.sax.Writer")) == TestName )
{
@@ -419,7 +419,7 @@ sal_Int32 OSaxWriterTest::test(
-sal_Bool OSaxWriterTest::testPassed(void) throw (RuntimeException)
+sal_Bool OSaxWriterTest::testPassed(void) throw (RuntimeException)
{
return m_seqErrors.getLength() == 0;
}
@@ -431,13 +431,13 @@ Sequence< OUString > OSaxWriterTest::getErrors(void) throw (RuntimeException)
}
-Sequence< Any > OSaxWriterTest::getErrorExceptions(void) throw (RuntimeException)
+Sequence< Any > OSaxWriterTest::getErrorExceptions(void) throw (RuntimeException)
{
return m_seqExceptions;
}
-Sequence< OUString > OSaxWriterTest::getWarnings(void) throw (RuntimeException)
+Sequence< OUString > OSaxWriterTest::getWarnings(void) throw (RuntimeException)
{
return m_seqWarnings;
}
@@ -489,7 +489,7 @@ void OSaxWriterTest::testSimple( const Reference< XExtendedDocumentHandler > &r
pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("Arg1" )),
OUString( RTL_CONSTASCII_USTRINGPARAM("CDATA")) ,
- OUString( RTL_CONSTASCII_USTRINGPARAM("bla\n u")) );
+ OUString( RTL_CONSTASCII_USTRINGPARAM("bla\n u")) );
pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("Arg2")) ,
OUString( RTL_CONSTASCII_USTRINGPARAM("CDATA")) ,
OUString( RTL_CONSTASCII_USTRINGPARAM("blub")) );
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index 18715609a4c0..43d311171fd2 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -293,9 +293,9 @@ struct TagAttribute
const OUString &sType ,
const OUString &sValue )
{
- this->sName = sName;
- this->sType = sType;
- this->sValue = sValue;
+ this->sName = sName;
+ this->sType = sType;
+ this->sValue = sValue;
}
OUString sName;
@@ -392,7 +392,7 @@ AttributeListImpl::~AttributeListImpl()
}
-void AttributeListImpl::addAttribute( const OUString &sName ,
+void AttributeListImpl::addAttribute( const OUString &sName ,
const OUString &sType ,
const OUString &sValue )
{
@@ -549,7 +549,7 @@ int main (int argc, char **argv)
// create and connect the document handler to the parser
TestDocumentHandler *pDocHandler = new TestDocumentHandler( );
- Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler );
+ Reference < XDocumentHandler > rDocHandler( (XDocumentHandler *) pDocHandler );
Reference< XEntityResolver > rEntityResolver( (XEntityResolver *) pDocHandler );
rParser->setDocumentHandler( rDocHandler );
@@ -558,7 +558,7 @@ int main (int argc, char **argv)
// create the input stream
InputSource source;
source.aInputStream = createStreamFromFile( argv[1] );
- source.sSystemId = OUString::createFromAscii( argv[1] );
+ source.sSystemId = OUString::createFromAscii( argv[1] );
try
{
@@ -598,7 +598,7 @@ int main (int argc, char **argv)
pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("Arg1" )),
OUString( RTL_CONSTASCII_USTRINGPARAM("CDATA")) ,
- OUString( RTL_CONSTASCII_USTRINGPARAM("foo\n u")) );
+ OUString( RTL_CONSTASCII_USTRINGPARAM("foo\n u")) );
pList->addAttribute( OUString( RTL_CONSTASCII_USTRINGPARAM("Arg2")) ,
OUString( RTL_CONSTASCII_USTRINGPARAM("CDATA")) ,
OUString( RTL_CONSTASCII_USTRINGPARAM("foo2")) );
diff --git a/sax/test/testcomponent.cxx b/sax/test/testcomponent.cxx
index c92e416fc791..263dcb901adc 100644
--- a/sax/test/testcomponent.cxx
+++ b/sax/test/testcomponent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/inc/absdev.hxx b/sot/inc/absdev.hxx
index a464ce1f3c55..8d65e7e76a61 100644
--- a/sot/inc/absdev.hxx
+++ b/sot/inc/absdev.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,8 +38,8 @@ protected:
JobSetup * pJobSetup;
public:
virtual ~AbstractDeviceData() {}
- virtual AbstractDeviceData * Copy() const = 0;
- virtual BOOL Equals( const AbstractDeviceData & ) const = 0;
+ virtual AbstractDeviceData * Copy() const = 0;
+ virtual BOOL Equals( const AbstractDeviceData & ) const = 0;
JobSetup * GetJobSetup() const { return pJobSetup; }
};
diff --git a/sot/inc/agg.hxx b/sot/inc/agg.hxx
index 2521e4701f64..d6e4dcbeaf51 100644
--- a/sot/inc/agg.hxx
+++ b/sot/inc/agg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,10 +40,10 @@ struct SvAggregate
union
{
SotFactory * pFact;
- SotObject * pObj;
+ SotObject * pObj;
};
- BOOL bFactory;
- BOOL bMainObj; // TRUE, das Objekt, welches das casting steuert
+ BOOL bFactory;
+ BOOL bMainObj; // TRUE, das Objekt, welches das casting steuert
SvAggregate()
: pFact( NULL )
diff --git a/sot/inc/clsids.hxx b/sot/inc/clsids.hxx
index 56030d778f5c..51cf11aa60d4 100644
--- a/sot/inc/clsids.hxx
+++ b/sot/inc/clsids.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/inc/filelist.hxx b/sot/inc/filelist.hxx
index bf9aa3e4084d..0bfdbfa10911 100644
--- a/sot/inc/filelist.hxx
+++ b/sot/inc/filelist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,34 +36,34 @@ class FileStringList;
class SOT_DLLPUBLIC FileList : public SvDataCopyStream
{
- FileStringList* pStrList;
+ FileStringList* pStrList;
protected:
// SvData-Methoden
- virtual void Load( SvStream& );
- virtual void Save( SvStream& );
- virtual void Assign( const SvDataCopyStream& );
+ virtual void Load( SvStream& );
+ virtual void Save( SvStream& );
+ virtual void Assign( const SvDataCopyStream& );
// Liste loeschen;
void ClearAll( void );
public:
-
+
TYPEINFO();
FileList();
~FileList();
// Zuweisungsoperator
- FileList& operator=( const FileList& rFileList );
+ FileList& operator=( const FileList& rFileList );
// Im-/Export
- SOT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const FileList& rFileList );
- SOT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, FileList& rFileList );
+ SOT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const FileList& rFileList );
+ SOT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, FileList& rFileList );
// Clipboard, D&D usw.
- static ULONG GetFormat();
+ static ULONG GetFormat();
// Liste fuellen/abfragen
@@ -71,7 +71,7 @@ public:
String GetFile( ULONG i ) const;
ULONG Count( void ) const;
-};
+};
#endif // _FILELIST_HXX
diff --git a/sot/inc/pch/precompiled_sot.cxx b/sot/inc/pch/precompiled_sot.cxx
index 1e18a81180e2..9e42d2542c6c 100644
--- a/sot/inc/pch/precompiled_sot.cxx
+++ b/sot/inc/pch/precompiled_sot.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/inc/pch/precompiled_sot.hxx b/sot/inc/pch/precompiled_sot.hxx
index dc9d2de5a192..9c6279066cf6 100644
--- a/sot/inc/pch/precompiled_sot.hxx
+++ b/sot/inc/pch/precompiled_sot.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/inc/sot/exchange.hxx b/sot/inc/sot/exchange.hxx
index 9e0e39f96306..5a72c79a3829 100644
--- a/sot/inc/sot/exchange.hxx
+++ b/sot/inc/sot/exchange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ struct DataFlavorEx : public ::com::sun::star::datatransfer::DataFlavor
};
typedef ::std::vector< ::com::sun::star::datatransfer::DataFlavor > DataFlavorVector;
-typedef ::std::vector< DataFlavorEx > _DataFlavorExVector;
+typedef ::std::vector< DataFlavorEx > _DataFlavorExVector;
// JP 23.03.2001 - this struct is only for "hide" the STD of the vetor,
// because our makefile filter all this symbols and so nowbody can use
@@ -72,8 +72,8 @@ struct DataFlavorExVector : public _DataFlavorExVector
{
};
-typedef ::std::list< ::com::sun::star::datatransfer::DataFlavor > DataFlavorList;
-typedef ::std::list< DataFlavorEx > DataFlavorExList;
+typedef ::std::list< ::com::sun::star::datatransfer::DataFlavor > DataFlavorList;
+typedef ::std::list< DataFlavorEx > DataFlavorExList;
SOT_DLLPUBLIC sal_Bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector,
ULONG nId );
@@ -96,73 +96,73 @@ SOT_DLLPUBLIC sal_Bool IsFormatSupported( const DataFlavorExVector& rDataFlavorE
#define FORMAT_RTF 10
// Source-Options
-#define EXCHG_SOURCE_MOVEABLE ((USHORT)0x0001)
-#define EXCHG_SOURCE_COPYABLE ((USHORT)0x0002)
-#define EXCHG_SOURCE_LINKABLE ((USHORT)0x0004)
-#define EXCHG_SOURCE_PRINTABLE ((USHORT)0x0008)
-#define EXCHG_SOURCE_DISCARDABLE ((USHORT)0x0010)
-#define EXCHG_SOURCE_ALL ((USHORT)0x001F)
-#define EXCHG_SOURCE_DEF_COPYABLE ((USHORT)0x0020)
+#define EXCHG_SOURCE_MOVEABLE ((USHORT)0x0001)
+#define EXCHG_SOURCE_COPYABLE ((USHORT)0x0002)
+#define EXCHG_SOURCE_LINKABLE ((USHORT)0x0004)
+#define EXCHG_SOURCE_PRINTABLE ((USHORT)0x0008)
+#define EXCHG_SOURCE_DISCARDABLE ((USHORT)0x0010)
+#define EXCHG_SOURCE_ALL ((USHORT)0x001F)
+#define EXCHG_SOURCE_DEF_COPYABLE ((USHORT)0x0020)
// Aktionen
-#define EXCHG_ACTION_MASK ((USHORT)0x00FF)
+#define EXCHG_ACTION_MASK ((USHORT)0x00FF)
#define EXCHG_INOUT_ACTION_NONE ((USHORT)com::sun::star::datatransfer::dnd::DNDConstants::ACTION_NONE)
-#define EXCHG_IN_ACTION_DEFAULT EXCHG_INOUT_ACTION_NONE
+#define EXCHG_IN_ACTION_DEFAULT EXCHG_INOUT_ACTION_NONE
#define EXCHG_IN_ACTION_MOVE ((USHORT)com::sun::star::datatransfer::dnd::DNDConstants::ACTION_MOVE)
#define EXCHG_IN_ACTION_COPY ((USHORT)com::sun::star::datatransfer::dnd::DNDConstants::ACTION_COPY)
#define EXCHG_IN_ACTION_LINK ((USHORT)com::sun::star::datatransfer::dnd::DNDConstants::ACTION_LINK)
-#define EXCHG_INOUT_ACTION_PRINT ((USHORT)8)
-#define EXCHG_INOUT_ACTION_DISCARD ((USHORT)16)
-#define EXCHG_OUT_ACTION_INSERT_OBJ ((USHORT)17)
-#define EXCHG_OUT_ACTION_INSERT_BOOKMARK ((USHORT)18)
-#define EXCHG_OUT_ACTION_INSERT_FILELINK ((USHORT)19)
-#define EXCHG_OUT_ACTION_INSERT_FILE ((USHORT)20)
+#define EXCHG_INOUT_ACTION_PRINT ((USHORT)8)
+#define EXCHG_INOUT_ACTION_DISCARD ((USHORT)16)
+#define EXCHG_OUT_ACTION_INSERT_OBJ ((USHORT)17)
+#define EXCHG_OUT_ACTION_INSERT_BOOKMARK ((USHORT)18)
+#define EXCHG_OUT_ACTION_INSERT_FILELINK ((USHORT)19)
+#define EXCHG_OUT_ACTION_INSERT_FILE ((USHORT)20)
#define EXCHG_OUT_ACTION_INSERT_FILELIST ((USHORT)21)
#define EXCHG_OUT_ACTION_INSERT_IMAGEMAP ((USHORT)22)
-#define EXCHG_OUT_ACTION_INSERT_OLE ((USHORT)23)
+#define EXCHG_OUT_ACTION_INSERT_OLE ((USHORT)23)
#define EXCHG_OUT_ACTION_INSERT_INTERACTIVE ((USHORT)24)
-#define EXCHG_OUT_ACTION_INSERT_URLBUTTON ((USHORT)25)
-#define EXCHG_OUT_ACTION_INSERT_CHAOSOBJ ((USHORT)26) // OBSOLET ab 500.b ?
-#define EXCHG_OUT_ACTION_REPLACE_OBJ ((USHORT)27)
+#define EXCHG_OUT_ACTION_INSERT_URLBUTTON ((USHORT)25)
+#define EXCHG_OUT_ACTION_INSERT_CHAOSOBJ ((USHORT)26) // OBSOLET ab 500.b ?
+#define EXCHG_OUT_ACTION_REPLACE_OBJ ((USHORT)27)
#define EXCHG_OUT_ACTION_REPLACE_LINK ((USHORT)28)
#define EXCHG_OUT_ACTION_REPLACE_IMAGEMAP ((USHORT)29)
#define EXCHG_OUT_ACTION_GET_ATTRIBUTES ((USHORT)30)
-#define EXCHG_OUT_ACTION_UPLOAD ((USHORT)31) // OBSOLET ab 500.b ?
-#define EXCHG_OUT_ACTION_MOVE_FILE ((USHORT)32)
-#define EXCHG_OUT_ACTION_MOVE_FILELIST ((USHORT)33)
-#define EXCHG_OUT_ACTION_UPDATE_RANGE ((USHORT)34)
-#define EXCHG_OUT_ACTION_INSERT_PRIVATE ((USHORT)35)
-#define EXCHG_OUT_ACTION_INSERT_HTML ((USHORT)36)
-#define EXCHG_OUT_ACTION_MOVE_PRIVATE ((USHORT)37)
-#define EXCHG_OUT_ACTION_INSERT_STRING ((USHORT)38)
-#define EXCHG_OUT_ACTION_INSERT_DRAWOBJ ((USHORT)39)
-#define EXCHG_OUT_ACTION_INSERT_SVXB ((USHORT)40)
-#define EXCHG_OUT_ACTION_INSERT_GDIMETAFILE ((USHORT)41)
-#define EXCHG_OUT_ACTION_INSERT_BITMAP ((USHORT)42)
-#define EXCHG_OUT_ACTION_INSERT_DDE ((USHORT)43)
-#define EXCHG_OUT_ACTION_INSERT_HYPERLINK ((USHORT)44)
-#define EXCHG_OUT_ACTION_REPLACE_DRAWOBJ ((USHORT)45)
-#define EXCHG_OUT_ACTION_REPLACE_SVXB ((USHORT)46)
+#define EXCHG_OUT_ACTION_UPLOAD ((USHORT)31) // OBSOLET ab 500.b ?
+#define EXCHG_OUT_ACTION_MOVE_FILE ((USHORT)32)
+#define EXCHG_OUT_ACTION_MOVE_FILELIST ((USHORT)33)
+#define EXCHG_OUT_ACTION_UPDATE_RANGE ((USHORT)34)
+#define EXCHG_OUT_ACTION_INSERT_PRIVATE ((USHORT)35)
+#define EXCHG_OUT_ACTION_INSERT_HTML ((USHORT)36)
+#define EXCHG_OUT_ACTION_MOVE_PRIVATE ((USHORT)37)
+#define EXCHG_OUT_ACTION_INSERT_STRING ((USHORT)38)
+#define EXCHG_OUT_ACTION_INSERT_DRAWOBJ ((USHORT)39)
+#define EXCHG_OUT_ACTION_INSERT_SVXB ((USHORT)40)
+#define EXCHG_OUT_ACTION_INSERT_GDIMETAFILE ((USHORT)41)
+#define EXCHG_OUT_ACTION_INSERT_BITMAP ((USHORT)42)
+#define EXCHG_OUT_ACTION_INSERT_DDE ((USHORT)43)
+#define EXCHG_OUT_ACTION_INSERT_HYPERLINK ((USHORT)44)
+#define EXCHG_OUT_ACTION_REPLACE_DRAWOBJ ((USHORT)45)
+#define EXCHG_OUT_ACTION_REPLACE_SVXB ((USHORT)46)
#define EXCHG_OUT_ACTION_REPLACE_GDIMETAFILE ((USHORT)47)
-#define EXCHG_OUT_ACTION_REPLACE_BITMAP ((USHORT)48)
-#define EXCHG_OUT_ACTION_REPLACE_GRAPH ((USHORT)49)
-#define EXCHG_OUT_ACTION_INSERT_GRAPH ((USHORT)50)
-#define EXCHG_OUT_ACTION_INSERT_MSGATTACH ((USHORT)51) // obsolet ab 500.b ?
-#define EXCHG_OUT_ACTION_COPY_CHAOSOBJ ((USHORT)52)
-#define EXCHG_OUT_ACTION_MOVE_CHAOSOBJ ((USHORT)53)
-#define EXCHG_OUT_ACTION_COPY_MSGATTACH ((USHORT)54)
-#define EXCHG_OUT_ACTION_COPY_BOOKMARK ((USHORT)55)
-#define EXCHG_OUT_ACTION_COPY_FILE ((USHORT)56)
-
-#define EXCHG_OUT_ACTION_FLAG_CREATE_THEME ((USHORT)0x0100)
-#define EXCHG_OUT_ACTION_FLAG_KEEP_POSSIZE ((USHORT)0x0200)
-#define EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP ((USHORT)0x0400)
-#define EXCHG_OUT_ACTION_FLAG_REPLACE_IMAGEMAP ((USHORT)0x0800)
-#define EXCHG_OUT_ACTION_FLAG_FILL ((USHORT)0x1000)
-#define EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL ((USHORT)0x2000)
+#define EXCHG_OUT_ACTION_REPLACE_BITMAP ((USHORT)48)
+#define EXCHG_OUT_ACTION_REPLACE_GRAPH ((USHORT)49)
+#define EXCHG_OUT_ACTION_INSERT_GRAPH ((USHORT)50)
+#define EXCHG_OUT_ACTION_INSERT_MSGATTACH ((USHORT)51) // obsolet ab 500.b ?
+#define EXCHG_OUT_ACTION_COPY_CHAOSOBJ ((USHORT)52)
+#define EXCHG_OUT_ACTION_MOVE_CHAOSOBJ ((USHORT)53)
+#define EXCHG_OUT_ACTION_COPY_MSGATTACH ((USHORT)54)
+#define EXCHG_OUT_ACTION_COPY_BOOKMARK ((USHORT)55)
+#define EXCHG_OUT_ACTION_COPY_FILE ((USHORT)56)
+
+#define EXCHG_OUT_ACTION_FLAG_CREATE_THEME ((USHORT)0x0100)
+#define EXCHG_OUT_ACTION_FLAG_KEEP_POSSIZE ((USHORT)0x0200)
+#define EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP ((USHORT)0x0400)
+#define EXCHG_OUT_ACTION_FLAG_REPLACE_IMAGEMAP ((USHORT)0x0800)
+#define EXCHG_OUT_ACTION_FLAG_FILL ((USHORT)0x1000)
+#define EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL ((USHORT)0x2000)
// Ziele
-#define EXCHG_DEST_DOC_OLEOBJ 1
+#define EXCHG_DEST_DOC_OLEOBJ 1
#define EXCHG_DEST_CHARTDOC_OLEOBJ 2
#define EXCHG_DEST_DOC_TEXTFRAME 3
#define EXCHG_DEST_DOC_GRAPHOBJ 4
@@ -187,21 +187,21 @@ class SvGlobalName;
class SOT_DLLPUBLIC SotExchange
{
public:
- static ULONG RegisterFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- static ULONG RegisterFormatName( const String& rName );
- static ULONG RegisterFormatMimeType( const String& rMimeType );
-
- static ULONG GetFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- static String GetFormatName( ULONG nFormat );
- static sal_Bool GetFormatDataFlavor( ULONG nFormat, ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- static String GetFormatMimeType( ULONG nFormat );
+ static ULONG RegisterFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ static ULONG RegisterFormatName( const String& rName );
+ static ULONG RegisterFormatMimeType( const String& rMimeType );
+
+ static ULONG GetFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ static String GetFormatName( ULONG nFormat );
+ static sal_Bool GetFormatDataFlavor( ULONG nFormat, ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ static String GetFormatMimeType( ULONG nFormat );
static BOOL IsInternal( const SvGlobalName& );
- static ULONG GetFormatIdFromMimeType( const String& rMimeType );
+ static ULONG GetFormatIdFromMimeType( const String& rMimeType );
// bestimme die SotFormatStringId von dem registrierten Format
//JP 12.11.98: diese 3 Methoden sind ab sofort ueberfluessig, da
- // die ClipboardIds statisch sind und aequivalent zur
- // SotFormatStringId ist!
+ // die ClipboardIds statisch sind und aequivalent zur
+ // SotFormatStringId ist!
static SotFormatStringId GetFormatStringId( ULONG nFormat )
{ return nFormat; }
static SotFormatStringId GetFormatStringId( const String& rName )
@@ -210,7 +210,7 @@ public:
{ return nId; }
// same for XTransferable interface
- static USHORT GetExchangeAction(
+ static USHORT GetExchangeAction(
// XTransferable
const DataFlavorExVector& rDataFlavorExVector,
// Ziel der Aktion (EXCHG_DEST_*)
@@ -229,7 +229,7 @@ public:
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >* pxTransferable = NULL );
// same for XTransferable interface
- static USHORT GetExchangeAction(
+ static USHORT GetExchangeAction(
// XTransferable
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable,
// Ziel der Aktion (EXCHG_DEST_*)
diff --git a/sot/inc/sot/factory.hxx b/sot/inc/sot/factory.hxx
index e2b32c6aa65c..b216c9ddc459 100644
--- a/sot/inc/sot/factory.hxx
+++ b/sot/inc/sot/factory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,22 +55,22 @@ protected:
virtual ~SotFactory();
public:
TYPEINFO();
- static void DeInit();
+ static void DeInit();
static void IncSvObjectCount( SotObject * = NULL );
static void DecSvObjectCount( SotObject * = NULL );
static UINT32 GetSvObjectCount();
static void TestInvariant();
- static const SotFactory * Find( const SvGlobalName & );
- static const SotFactoryList * GetFactoryList();
+ static const SotFactory * Find( const SvGlobalName & );
+ static const SotFactoryList * GetFactoryList();
SotFactory( const SvGlobalName &,
const String & rClassName, CreateInstanceType );
void PutSuperClass( const SotFactory * );
virtual void * CreateInstance( SotObject ** ppObj = NULL ) const;
- void * CastAndAddRef( SotObject * ) const;
- void * AggCastAndAddRef( SotObject * ) const;
+ void * CastAndAddRef( SotObject * ) const;
+ void * AggCastAndAddRef( SotObject * ) const;
BOOL Is( const SotFactory * pSuperClass ) const;
const SotFactory * GetSuper( USHORT nPos ) const
diff --git a/sot/inc/sot/formats.hxx b/sot/inc/sot/formats.hxx
index 03b0b17cd8f8..7068b047ef24 100644
--- a/sot/inc/sot/formats.hxx
+++ b/sot/inc/sot/formats.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,111 +47,111 @@
#endif
#include <sot/exchange.hxx>
-#define SOT_FORMAT_SYSTEM_START ((ULONG)0)
-#define SOT_FORMAT_STRING ((ULONG)FORMAT_STRING)
-#define SOT_FORMAT_BITMAP ((ULONG)FORMAT_BITMAP)
-#define SOT_FORMAT_GDIMETAFILE ((ULONG)FORMAT_GDIMETAFILE)
-#define SOT_FORMAT_PRIVATE ((ULONG)FORMAT_PRIVATE)
-#define SOT_FORMAT_FILE ((ULONG)FORMAT_FILE)
-#define SOT_FORMAT_FILE_LIST ((ULONG)FORMAT_FILE_LIST)
-#define SOT_FORMAT_RTF ((ULONG)FORMAT_RTF)
+#define SOT_FORMAT_SYSTEM_START ((ULONG)0)
+#define SOT_FORMAT_STRING ((ULONG)FORMAT_STRING)
+#define SOT_FORMAT_BITMAP ((ULONG)FORMAT_BITMAP)
+#define SOT_FORMAT_GDIMETAFILE ((ULONG)FORMAT_GDIMETAFILE)
+#define SOT_FORMAT_PRIVATE ((ULONG)FORMAT_PRIVATE)
+#define SOT_FORMAT_FILE ((ULONG)FORMAT_FILE)
+#define SOT_FORMAT_FILE_LIST ((ULONG)FORMAT_FILE_LIST)
+#define SOT_FORMAT_RTF ((ULONG)FORMAT_RTF)
-#define SOT_FORMATSTR_ID_DRAWING ((ULONG)11)
-#define SOT_FORMATSTR_ID_SVXB ((ULONG)12)
-#define SOT_FORMATSTR_ID_SVIM ((ULONG)13)
-#define SOT_FORMATSTR_ID_XFA ((ULONG)14)
-#define SOT_FORMATSTR_ID_EDITENGINE ((ULONG)15)
-#define SOT_FORMATSTR_ID_INTERNALLINK_STATE ((ULONG)16)
-#define SOT_FORMATSTR_ID_SOLK ((ULONG)17)
-#define SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK ((ULONG)18)
-#define SOT_FORMATSTR_ID_TREELISTBOX ((ULONG)19)
-#define SOT_FORMATSTR_ID_NATIVE ((ULONG)20)
-#define SOT_FORMATSTR_ID_OWNERLINK ((ULONG)21)
-#define SOT_FORMATSTR_ID_STARSERVER ((ULONG)22)
-#define SOT_FORMATSTR_ID_STAROBJECT ((ULONG)23)
-#define SOT_FORMATSTR_ID_APPLETOBJECT ((ULONG)24)
-#define SOT_FORMATSTR_ID_PLUGIN_OBJECT ((ULONG)25)
-#define SOT_FORMATSTR_ID_STARWRITER_30 ((ULONG)26)
-#define SOT_FORMATSTR_ID_STARWRITER_40 ((ULONG)27)
-#define SOT_FORMATSTR_ID_STARWRITER_50 ((ULONG)28)
-#define SOT_FORMATSTR_ID_STARWRITERWEB_40 ((ULONG)29)
-#define SOT_FORMATSTR_ID_STARWRITERWEB_50 ((ULONG)30)
-#define SOT_FORMATSTR_ID_STARWRITERGLOB_40 ((ULONG)31)
-#define SOT_FORMATSTR_ID_STARWRITERGLOB_50 ((ULONG)32)
-#define SOT_FORMATSTR_ID_STARDRAW ((ULONG)33)
-#define SOT_FORMATSTR_ID_STARDRAW_40 ((ULONG)34)
-#define SOT_FORMATSTR_ID_STARIMPRESS_50 ((ULONG)35)
-#define SOT_FORMATSTR_ID_STARDRAW_50 ((ULONG)36)
-#define SOT_FORMATSTR_ID_STARCALC ((ULONG)37)
-#define SOT_FORMATSTR_ID_STARCALC_40 ((ULONG)38)
-#define SOT_FORMATSTR_ID_STARCALC_50 ((ULONG)39)
-#define SOT_FORMATSTR_ID_STARCHART ((ULONG)40)
-#define SOT_FORMATSTR_ID_STARCHART_40 ((ULONG)41)
-#define SOT_FORMATSTR_ID_STARCHART_50 ((ULONG)42)
-#define SOT_FORMATSTR_ID_STARIMAGE ((ULONG)43)
-#define SOT_FORMATSTR_ID_STARIMAGE_40 ((ULONG)44)
-#define SOT_FORMATSTR_ID_STARIMAGE_50 ((ULONG)45)
-#define SOT_FORMATSTR_ID_STARMATH ((ULONG)46)
-#define SOT_FORMATSTR_ID_STARMATH_40 ((ULONG)47)
-#define SOT_FORMATSTR_ID_STARMATH_50 ((ULONG)48)
-#define SOT_FORMATSTR_ID_STAROBJECT_PAINTDOC ((ULONG)49)
-#define SOT_FORMATSTR_ID_FILLED_AREA ((ULONG)50)
-#define SOT_FORMATSTR_ID_HTML ((ULONG)51)
-#define SOT_FORMATSTR_ID_HTML_SIMPLE ((ULONG)52)
-#define SOT_FORMATSTR_ID_CHAOS ((ULONG)53)
-#define SOT_FORMATSTR_ID_CNT_MSGATTACHFILE ((ULONG)54)
-#define SOT_FORMATSTR_ID_BIFF_5 ((ULONG)55)
-#define SOT_FORMATSTR_ID_BIFF__5 ((ULONG)56)
-#define SOT_FORMATSTR_ID_SYLK ((ULONG)57)
-#define SOT_FORMATSTR_ID_SYLK_BIGCAPS ((ULONG)58)
-#define SOT_FORMATSTR_ID_LINK ((ULONG)59)
-#define SOT_FORMATSTR_ID_DIF ((ULONG)60)
-#define SOT_FORMATSTR_ID_STARDRAW_TABBAR ((ULONG)61)
-#define SOT_FORMATSTR_ID_SONLK ((ULONG)62)
-#define SOT_FORMATSTR_ID_MSWORD_DOC ((ULONG)63)
-#define SOT_FORMATSTR_ID_STAR_FRAMESET_DOC ((ULONG)64)
-#define SOT_FORMATSTR_ID_OFFICE_DOC ((ULONG)65)
-#define SOT_FORMATSTR_ID_NOTES_DOCINFO ((ULONG)66)
-#define SOT_FORMATSTR_ID_NOTES_HNOTE ((ULONG)67)
-#define SOT_FORMATSTR_ID_NOTES_NATIVE ((ULONG)68)
-#define SOT_FORMATSTR_ID_SFX_DOC ((ULONG)69)
-#define SOT_FORMATSTR_ID_EVDF ((ULONG)70)
-#define SOT_FORMATSTR_ID_ESDF ((ULONG)71)
-#define SOT_FORMATSTR_ID_IDF ((ULONG)72)
-#define SOT_FORMATSTR_ID_EFTP ((ULONG)73)
-#define SOT_FORMATSTR_ID_EFD ((ULONG)74)
-#define SOT_FORMATSTR_ID_SVX_FORMFIELDEXCH ((ULONG)75)
-#define SOT_FORMATSTR_ID_EXTENDED_TABBAR ((ULONG)76)
-#define SOT_FORMATSTR_ID_SBA_DATAEXCHANGE ((ULONG)77)
-#define SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE ((ULONG)78)
-#define SOT_FORMATSTR_ID_SBA_PRIVATE_URL ((ULONG)79)
-#define SOT_FORMATSTR_ID_SBA_TABED ((ULONG)80)
-#define SOT_FORMATSTR_ID_SBA_TABID ((ULONG)81)
-#define SOT_FORMATSTR_ID_SBA_JOIN ((ULONG)82)
-#define SOT_FORMATSTR_ID_OBJECTDESCRIPTOR ((ULONG)83)
-#define SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR ((ULONG)84)
-#define SOT_FORMATSTR_ID_EMBED_SOURCE ((ULONG)85)
-#define SOT_FORMATSTR_ID_LINK_SOURCE ((ULONG)86)
-#define SOT_FORMATSTR_ID_EMBEDDED_OBJ ((ULONG)87)
-#define SOT_FORMATSTR_ID_FILECONTENT ((ULONG)88)
-#define SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR ((ULONG)89)
-#define SOT_FORMATSTR_ID_FILENAME ((ULONG)90)
-#define SOT_FORMATSTR_ID_SD_OLE ((ULONG)91)
-#define SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE ((ULONG)92)
-#define SOT_FORMATSTR_ID_EMBED_SOURCE_OLE ((ULONG)93)
-#define SOT_FORMATSTR_ID_OBJECTDESCRIPTOR_OLE ((ULONG)94)
-#define SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR_OLE ((ULONG)95)
-#define SOT_FORMATSTR_ID_LINK_SOURCE_OLE ((ULONG)96)
-#define SOT_FORMATSTR_ID_SBA_CTRLDATAEXCHANGE ((ULONG)97)
-#define SOT_FORMATSTR_ID_OUTPLACE_OBJ ((ULONG)98)
-#define SOT_FORMATSTR_ID_CNT_OWN_CLIP ((ULONG)99)
-#define SOT_FORMATSTR_ID_INET_IMAGE ((ULONG)100)
-#define SOT_FORMATSTR_ID_NETSCAPE_IMAGE ((ULONG)101)
-#define SOT_FORMATSTR_ID_SBA_FORMEXCHANGE ((ULONG)102)
-#define SOT_FORMATSTR_ID_SBA_REPORTEXCHANGE ((ULONG)103)
+#define SOT_FORMATSTR_ID_DRAWING ((ULONG)11)
+#define SOT_FORMATSTR_ID_SVXB ((ULONG)12)
+#define SOT_FORMATSTR_ID_SVIM ((ULONG)13)
+#define SOT_FORMATSTR_ID_XFA ((ULONG)14)
+#define SOT_FORMATSTR_ID_EDITENGINE ((ULONG)15)
+#define SOT_FORMATSTR_ID_INTERNALLINK_STATE ((ULONG)16)
+#define SOT_FORMATSTR_ID_SOLK ((ULONG)17)
+#define SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK ((ULONG)18)
+#define SOT_FORMATSTR_ID_TREELISTBOX ((ULONG)19)
+#define SOT_FORMATSTR_ID_NATIVE ((ULONG)20)
+#define SOT_FORMATSTR_ID_OWNERLINK ((ULONG)21)
+#define SOT_FORMATSTR_ID_STARSERVER ((ULONG)22)
+#define SOT_FORMATSTR_ID_STAROBJECT ((ULONG)23)
+#define SOT_FORMATSTR_ID_APPLETOBJECT ((ULONG)24)
+#define SOT_FORMATSTR_ID_PLUGIN_OBJECT ((ULONG)25)
+#define SOT_FORMATSTR_ID_STARWRITER_30 ((ULONG)26)
+#define SOT_FORMATSTR_ID_STARWRITER_40 ((ULONG)27)
+#define SOT_FORMATSTR_ID_STARWRITER_50 ((ULONG)28)
+#define SOT_FORMATSTR_ID_STARWRITERWEB_40 ((ULONG)29)
+#define SOT_FORMATSTR_ID_STARWRITERWEB_50 ((ULONG)30)
+#define SOT_FORMATSTR_ID_STARWRITERGLOB_40 ((ULONG)31)
+#define SOT_FORMATSTR_ID_STARWRITERGLOB_50 ((ULONG)32)
+#define SOT_FORMATSTR_ID_STARDRAW ((ULONG)33)
+#define SOT_FORMATSTR_ID_STARDRAW_40 ((ULONG)34)
+#define SOT_FORMATSTR_ID_STARIMPRESS_50 ((ULONG)35)
+#define SOT_FORMATSTR_ID_STARDRAW_50 ((ULONG)36)
+#define SOT_FORMATSTR_ID_STARCALC ((ULONG)37)
+#define SOT_FORMATSTR_ID_STARCALC_40 ((ULONG)38)
+#define SOT_FORMATSTR_ID_STARCALC_50 ((ULONG)39)
+#define SOT_FORMATSTR_ID_STARCHART ((ULONG)40)
+#define SOT_FORMATSTR_ID_STARCHART_40 ((ULONG)41)
+#define SOT_FORMATSTR_ID_STARCHART_50 ((ULONG)42)
+#define SOT_FORMATSTR_ID_STARIMAGE ((ULONG)43)
+#define SOT_FORMATSTR_ID_STARIMAGE_40 ((ULONG)44)
+#define SOT_FORMATSTR_ID_STARIMAGE_50 ((ULONG)45)
+#define SOT_FORMATSTR_ID_STARMATH ((ULONG)46)
+#define SOT_FORMATSTR_ID_STARMATH_40 ((ULONG)47)
+#define SOT_FORMATSTR_ID_STARMATH_50 ((ULONG)48)
+#define SOT_FORMATSTR_ID_STAROBJECT_PAINTDOC ((ULONG)49)
+#define SOT_FORMATSTR_ID_FILLED_AREA ((ULONG)50)
+#define SOT_FORMATSTR_ID_HTML ((ULONG)51)
+#define SOT_FORMATSTR_ID_HTML_SIMPLE ((ULONG)52)
+#define SOT_FORMATSTR_ID_CHAOS ((ULONG)53)
+#define SOT_FORMATSTR_ID_CNT_MSGATTACHFILE ((ULONG)54)
+#define SOT_FORMATSTR_ID_BIFF_5 ((ULONG)55)
+#define SOT_FORMATSTR_ID_BIFF__5 ((ULONG)56)
+#define SOT_FORMATSTR_ID_SYLK ((ULONG)57)
+#define SOT_FORMATSTR_ID_SYLK_BIGCAPS ((ULONG)58)
+#define SOT_FORMATSTR_ID_LINK ((ULONG)59)
+#define SOT_FORMATSTR_ID_DIF ((ULONG)60)
+#define SOT_FORMATSTR_ID_STARDRAW_TABBAR ((ULONG)61)
+#define SOT_FORMATSTR_ID_SONLK ((ULONG)62)
+#define SOT_FORMATSTR_ID_MSWORD_DOC ((ULONG)63)
+#define SOT_FORMATSTR_ID_STAR_FRAMESET_DOC ((ULONG)64)
+#define SOT_FORMATSTR_ID_OFFICE_DOC ((ULONG)65)
+#define SOT_FORMATSTR_ID_NOTES_DOCINFO ((ULONG)66)
+#define SOT_FORMATSTR_ID_NOTES_HNOTE ((ULONG)67)
+#define SOT_FORMATSTR_ID_NOTES_NATIVE ((ULONG)68)
+#define SOT_FORMATSTR_ID_SFX_DOC ((ULONG)69)
+#define SOT_FORMATSTR_ID_EVDF ((ULONG)70)
+#define SOT_FORMATSTR_ID_ESDF ((ULONG)71)
+#define SOT_FORMATSTR_ID_IDF ((ULONG)72)
+#define SOT_FORMATSTR_ID_EFTP ((ULONG)73)
+#define SOT_FORMATSTR_ID_EFD ((ULONG)74)
+#define SOT_FORMATSTR_ID_SVX_FORMFIELDEXCH ((ULONG)75)
+#define SOT_FORMATSTR_ID_EXTENDED_TABBAR ((ULONG)76)
+#define SOT_FORMATSTR_ID_SBA_DATAEXCHANGE ((ULONG)77)
+#define SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE ((ULONG)78)
+#define SOT_FORMATSTR_ID_SBA_PRIVATE_URL ((ULONG)79)
+#define SOT_FORMATSTR_ID_SBA_TABED ((ULONG)80)
+#define SOT_FORMATSTR_ID_SBA_TABID ((ULONG)81)
+#define SOT_FORMATSTR_ID_SBA_JOIN ((ULONG)82)
+#define SOT_FORMATSTR_ID_OBJECTDESCRIPTOR ((ULONG)83)
+#define SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR ((ULONG)84)
+#define SOT_FORMATSTR_ID_EMBED_SOURCE ((ULONG)85)
+#define SOT_FORMATSTR_ID_LINK_SOURCE ((ULONG)86)
+#define SOT_FORMATSTR_ID_EMBEDDED_OBJ ((ULONG)87)
+#define SOT_FORMATSTR_ID_FILECONTENT ((ULONG)88)
+#define SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR ((ULONG)89)
+#define SOT_FORMATSTR_ID_FILENAME ((ULONG)90)
+#define SOT_FORMATSTR_ID_SD_OLE ((ULONG)91)
+#define SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE ((ULONG)92)
+#define SOT_FORMATSTR_ID_EMBED_SOURCE_OLE ((ULONG)93)
+#define SOT_FORMATSTR_ID_OBJECTDESCRIPTOR_OLE ((ULONG)94)
+#define SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR_OLE ((ULONG)95)
+#define SOT_FORMATSTR_ID_LINK_SOURCE_OLE ((ULONG)96)
+#define SOT_FORMATSTR_ID_SBA_CTRLDATAEXCHANGE ((ULONG)97)
+#define SOT_FORMATSTR_ID_OUTPLACE_OBJ ((ULONG)98)
+#define SOT_FORMATSTR_ID_CNT_OWN_CLIP ((ULONG)99)
+#define SOT_FORMATSTR_ID_INET_IMAGE ((ULONG)100)
+#define SOT_FORMATSTR_ID_NETSCAPE_IMAGE ((ULONG)101)
+#define SOT_FORMATSTR_ID_SBA_FORMEXCHANGE ((ULONG)102)
+#define SOT_FORMATSTR_ID_SBA_REPORTEXCHANGE ((ULONG)103)
#define SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR ((ULONG)104)
-#define SOT_FORMATSTR_ID_STARCHARTDOCUMENT_50 ((ULONG)105)
-#define SOT_FORMATSTR_ID_GRAPHOBJ ((ULONG)106)
+#define SOT_FORMATSTR_ID_STARCHARTDOCUMENT_50 ((ULONG)105)
+#define SOT_FORMATSTR_ID_GRAPHOBJ ((ULONG)106)
#define SOT_FORMATSTR_ID_STARWRITER_60 ((ULONG)107)
#define SOT_FORMATSTR_ID_STARWRITERWEB_60 ((ULONG)108)
#define SOT_FORMATSTR_ID_STARWRITERGLOB_60 ((ULONG)109)
@@ -160,12 +160,12 @@
#define SOT_FORMATSTR_ID_STARCALC_60 ((ULONG)112)
#define SOT_FORMATSTR_ID_STARCHART_60 ((ULONG)113)
#define SOT_FORMATSTR_ID_STARMATH_60 ((ULONG)114)
-#define SOT_FORMATSTR_ID_WMF ((ULONG)115)
+#define SOT_FORMATSTR_ID_WMF ((ULONG)115)
#define SOT_FORMATSTR_ID_DBACCESS_QUERY ((ULONG)116)
#define SOT_FORMATSTR_ID_DBACCESS_TABLE ((ULONG)117)
#define SOT_FORMATSTR_ID_DBACCESS_COMMAND ((ULONG)118)
#define SOT_FORMATSTR_ID_DIALOG_60 ((ULONG)119)
-#define SOT_FORMATSTR_ID_EMF ((ULONG)120)
+#define SOT_FORMATSTR_ID_EMF ((ULONG)120)
#define SOT_FORMATSTR_ID_BIFF_8 ((ULONG)121)
#define SOT_FORMATSTR_ID_BMP ((ULONG)122)
#define SOT_FORMATSTR_ID_HTML_NO_COMMENT ((ULONG)123)
diff --git a/sot/inc/sot/object.hxx b/sot/inc/sot/object.hxx
index cb876fedcab1..c59fc901ecaa 100644
--- a/sot/inc/sot/object.hxx
+++ b/sot/inc/sot/object.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -167,7 +167,7 @@ SotFactory * ClassName::ClassFactory() \
{ \
*ppFactory = new FactoryName( GlobalName, \
String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( #ClassName ) ), \
- ClassName::CreateInstance ); \
+ ClassName::CreateInstance ); \
} \
return *ppFactory; \
} \
@@ -204,7 +204,7 @@ SotFactory * ClassName::ClassFactory() \
{ \
*ppFactory = new FactoryName( GlobalName, \
String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( #ClassName ) ), \
- ClassName::CreateInstance ); \
+ ClassName::CreateInstance ); \
(*ppFactory)->PutSuperClass( Super1::ClassFactory() ); \
} \
return *ppFactory; \
@@ -246,7 +246,7 @@ SotFactory * ClassName::ClassFactory() \
{ \
*ppFactory = new FactoryName( GlobalName, \
String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( #ClassName ) ), \
- ClassName::CreateInstance ); \
+ ClassName::CreateInstance ); \
(*ppFactory)->PutSuperClass( Super1::ClassFactory() ); \
(*ppFactory)->PutSuperClass( Super2::ClassFactory() ); \
} \
diff --git a/sot/inc/sot/sotdata.hxx b/sot/inc/sot/sotdata.hxx
index 7bf2e0eec1e3..18a001880370 100644
--- a/sot/inc/sot/sotdata.hxx
+++ b/sot/inc/sot/sotdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,13 +44,13 @@ class SotObjectList;
struct SotData_Impl
{
- UINT32 nSvObjCount;
- SotObjectList * pObjectList;
- SotFactoryList * pFactoryList;
- SotFactory * pSotObjectFactory;
- SotFactory * pSotStorageStreamFactory;
- SotFactory * pSotStorageFactory;
- List* pDataFlavorList;
+ UINT32 nSvObjCount;
+ SotObjectList * pObjectList;
+ SotFactoryList * pFactoryList;
+ SotFactory * pSotObjectFactory;
+ SotFactory * pSotStorageStreamFactory;
+ SotFactory * pSotStorageFactory;
+ List* pDataFlavorList;
SotData_Impl();
};
diff --git a/sot/inc/sot/sotdllapi.h b/sot/inc/sot/sotdllapi.h
index 092e55d629cb..2c124b69e1ed 100644
--- a/sot/inc/sot/sotdllapi.h
+++ b/sot/inc/sot/sotdllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,16 +28,16 @@
#ifndef INCLUDED_SOTDLLAPI_H
#define INCLUDED_SOTDLLAPI_H
-
+
#include "sal/types.h"
-
+
#if defined(SOT_DLLIMPLEMENTATION)
#define SOT_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define SOT_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define SOT_DLLPRIVATE SAL_DLLPRIVATE
-
+
#endif /* INCLUDED_SOTDLLAPI_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sot/inc/sot/sotref.hxx b/sot/inc/sot/sotref.hxx
index cb1a991320ab..fc889c060750 100644
--- a/sot/inc/sot/sotref.hxx
+++ b/sot/inc/sot/sotref.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ class ClassName##Ref \
SV_IMPL_REF(ClassName) \
inline ClassName##Ref::ClassName##Ref( const SotObjectRef & r ) \
{ \
- pObj = (ClassName *)ClassName::ClassFactory()->CastAndAddRef( &r ); \
+ pObj = (ClassName *)ClassName::ClassFactory()->CastAndAddRef( &r ); \
} \
inline ClassName##Ref::ClassName##Ref( SotObject * pObjP ) \
{ \
diff --git a/sot/inc/sot/storage.hxx b/sot/inc/sot/storage.hxx
index 893837abac88..ef3a5f80c2a5 100644
--- a/sot/inc/sot/storage.hxx
+++ b/sot/inc/sot/storage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,11 +40,11 @@
#include <tools/errcode.hxx>
#include "sot/sotdllapi.h"
-#define STORAGE_FAILIFTHERE 0x02
-#define STORAGE_TRANSACTED 0x04
-#define STORAGE_PRIORITY 0x08
-#define STORAGE_DELETEONRELEASE 0x10
-#define STORAGE_CONVERT 0x20
+#define STORAGE_FAILIFTHERE 0x02
+#define STORAGE_TRANSACTED 0x04
+#define STORAGE_PRIORITY 0x08
+#define STORAGE_DELETEONRELEASE 0x10
+#define STORAGE_CONVERT 0x20
#define STORAGE_UNPACKED_MODE 0x40
#define STORAGE_DISKSPANNED_MODE 0x80
#define STORAGE_CREATE_UNPACKED 0x44
@@ -81,14 +81,14 @@ public:
SO2_DECL_INVARIANT()
using SvStream::SyncSvStream;
- virtual void SyncSvStream();
- void SyncSysStream() { SvStream::SyncSysStream(); }
+ virtual void SyncSvStream();
+ void SyncSysStream() { SvStream::SyncSysStream(); }
virtual void ResetError();
virtual void SetSize( ULONG nNewSize );
- UINT32 GetSize() const;
- BOOL CopyTo( SotStorageStream * pDestStm );
+ UINT32 GetSize() const;
+ BOOL CopyTo( SotStorageStream * pDestStm );
virtual BOOL Commit();
virtual BOOL Revert();
BOOL SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue );
@@ -125,11 +125,11 @@ friend class ::binfilter::SvStorage;
BOOL m_bIsRoot:1, // z.B.: File-Storage
m_bDelStm:1;
ByteString m_aKey; // aKey.Len != 0 -> Verschluesselung
- long m_nVersion;
+ long m_nVersion;
protected:
~SotStorage();
- void CreateStorage( BOOL bUCBStorage, StreamMode, StorageMode );
+ void CreateStorage( BOOL bUCBStorage, StreamMode, StorageMode );
public:
SotStorage( const String &,
StreamMode = STREAM_STD_READWRITE,
@@ -149,7 +149,7 @@ public:
SO2_DECL_INVARIANT()
SvMemoryStream * CreateMemoryStream();
- const SvStream * GetSvStream();
+ const SvStream * GetSvStream();
static BOOL IsStorageFile( const String & rFileName );
static BOOL IsStorageFile( SvStream* pStream );
@@ -161,11 +161,11 @@ public:
void SetKey( const ByteString& rKey );
const ByteString & GetKey() const { return m_aKey; }
- void SetVersion( long nVers )
+ void SetVersion( long nVers )
{
m_nVersion = nVers;
}
- long GetVersion() const
+ long GetVersion() const
{
return m_nVersion;
}
@@ -181,7 +181,7 @@ public:
BOOL IsRoot() const { return m_bIsRoot; }
void SignAsRoot( BOOL b = TRUE ) { m_bIsRoot = b; }
- void SetDeleteStream( BOOL bDelete ) { m_bDelStm = bDelete; }
+ void SetDeleteStream( BOOL bDelete ) { m_bDelStm = bDelete; }
// eigener Datenbereich
virtual void SetClass( const SvGlobalName & rClass,
@@ -211,10 +211,10 @@ public:
SotStorageStream * OpenEncryptedSotStream( const String & rEleName, const ByteString& rKey,
StreamMode = STREAM_STD_READWRITE,
StorageMode = 0 );
- SotStorage * OpenSotStorage( const String & rEleName,
+ SotStorage * OpenSotStorage( const String & rEleName,
StreamMode = STREAM_STD_READWRITE,
StorageMode = STORAGE_TRANSACTED );
- SotStorage * OpenUCBStorage( const String & rEleName,
+ SotStorage * OpenUCBStorage( const String & rEleName,
StreamMode = STREAM_STD_READWRITE,
StorageMode = STORAGE_TRANSACTED );
SotStorage * OpenOLEStorage( const String & rEleName,
@@ -234,23 +234,23 @@ public:
virtual BOOL MoveTo( const String & rEleName, SotStorage * pDest,
const String & rNewName );
- SvStream* GetTargetSvStream() const;
+ SvStream* GetTargetSvStream() const;
BOOL SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue );
BOOL GetProperty( const String& rName, ::com::sun::star::uno::Any& rValue );
BOOL GetProperty( const String& rEleName, const String& rName, ::com::sun::star::uno::Any& rValue );
- BOOL IsOLEStorage() const;
+ BOOL IsOLEStorage() const;
static BOOL IsOLEStorage( const String & rFileName );
static BOOL IsOLEStorage( SvStream* pStream );
// this is temporary HACK, _MUST_ be removed before release
::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >
GetUNOAPIDuplicate( const String& rEleName, sal_Int32 nUNOStorageMode );
- void RemoveUNOStorageHolder( UNOStorageHolder* pHolder );
+ void RemoveUNOStorageHolder( UNOStorageHolder* pHolder );
static SotStorage* OpenOLEStorage( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage,
const String& rEleName, StreamMode = STREAM_STD_READWRITE );
static sal_Int32 GetFormatID( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );
- static sal_Int32 GetVersion( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );
+ static sal_Int32 GetVersion( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& xStorage );
};
#ifndef SOT_DECL_SOTSTORAGE_DEFINED
diff --git a/sot/inc/stg.hxx b/sot/inc/stg.hxx
index a64390521d57..bde729c1c2a0 100644
--- a/sot/inc/stg.hxx
+++ b/sot/inc/stg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,9 +56,9 @@ class StgStrm;
class SvGlobalName;
struct ClsId
{
- INT32 n1;
- INT16 n2, n3;
- UINT8 n4, n5, n6, n7, n8, n9, n10, n11;
+ INT32 n1;
+ INT16 n2, n3;
+ UINT8 n4, n5, n6, n7, n8, n9, n10, n11;
};
class SOT_DLLPUBLIC StorageBase : public SvRefBase
@@ -79,7 +79,7 @@ public:
ULONG GetError() const;
BOOL Good() const { return BOOL( m_nError == SVSTREAM_OK ); }
StreamMode GetMode() const { return m_nMode; }
- void SetAutoCommit( BOOL bSet )
+ void SetAutoCommit( BOOL bSet )
{ m_bAutoCommit = bSet; }
};
@@ -281,7 +281,7 @@ public:
BOOL SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue );
BOOL GetProperty( const String& rName, ::com::sun::star::uno::Any& rValue );
- SvStream* GetModifySvStream();
+ SvStream* GetModifySvStream();
::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetXInputStream() const;
};
@@ -303,21 +303,21 @@ public:
static BOOL IsStorageFile( SvStream* );
static BOOL IsStorageFile( const String& rName );
static BOOL IsDiskSpannedFile( SvStream* );
- static String GetLinkedFile( SvStream& );
- static String CreateLinkFile( const String& rName );
+ static String GetLinkedFile( SvStream& );
+ static String CreateLinkFile( const String& rName );
UCBStorage( const ::ucbhelper::Content& rContent, const String& rName, StreamMode nMode, BOOL bDirect = TRUE, BOOL bIsRoot = TRUE );
- UCBStorage( const String& rName,
- StreamMode nMode,
- BOOL bDirect = TRUE,
+ UCBStorage( const String& rName,
+ StreamMode nMode,
+ BOOL bDirect = TRUE,
BOOL bIsRoot = TRUE );
- UCBStorage( const String& rName,
- StreamMode nMode,
- BOOL bDirect,
- BOOL bIsRoot,
- BOOL bIsRepair,
- ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XProgressHandler >
+ UCBStorage( const String& rName,
+ StreamMode nMode,
+ BOOL bDirect,
+ BOOL bIsRoot,
+ BOOL bIsRepair,
+ ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XProgressHandler >
xProgressHandler );
UCBStorage( UCBStorage_Impl* );
@@ -369,17 +369,17 @@ public:
virtual BOOL Equals( const BaseStorage& rStream ) const;
BOOL SetProperty( const String& rName, const ::com::sun::star::uno::Any& rValue );
BOOL GetProperty( const String& rName, ::com::sun::star::uno::Any& rValue );
- BOOL GetProperty( const String& rEleName, const String& rName, ::com::sun::star::uno::Any& rValue );
+ BOOL GetProperty( const String& rEleName, const String& rName, ::com::sun::star::uno::Any& rValue );
// HACK to avoid incompatible build, can be done since this feature is only for development
// should be removed before release
UNOStorageHolderList* GetUNOStorageHolderList();
-
+
//#if _SOLAR__PRIVATE
UCBStorageElement_Impl* FindElement_Impl( const String& rName ) const;
BOOL CopyStorageElement_Impl( UCBStorageElement_Impl& rElement,
BaseStorage* pDest, const String& rNew ) const;
- BaseStorage* OpenStorage_Impl( const String & rEleName,
+ BaseStorage* OpenStorage_Impl( const String & rEleName,
StreamMode, BOOL bDirect, BOOL bForceUCBStorage );
//#endif
diff --git a/sot/inc/storinfo.hxx b/sot/inc/storinfo.hxx
index af3c0ca15b95..334df7cca153 100644
--- a/sot/inc/storinfo.hxx
+++ b/sot/inc/storinfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java b/sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java
index 054480d377d1..7a05078f6a6b 100644
--- a/sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java
+++ b/sot/qa/complex/olesimplestorage/OLESimpleStorageUnitTest.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,12 +35,12 @@ import com.sun.star.uno.UnoRuntime;
public class OLESimpleStorageUnitTest extends ComplexTestCase {
private XMultiServiceFactory m_xMSF = null;
-
+
public String[] getTestMethodNames() {
return new String[] {
"ExecuteTest01"};
}
-
+
public String getTestObjectName() {
return "OLESimpleStorageUnitTest";
}
@@ -55,11 +55,11 @@ public class OLESimpleStorageUnitTest extends ComplexTestCase {
failed ( "Cannot create service factory!" );
}
}
-
+
public void after () {
m_xMSF = null;
}
-
+
public void ExecuteTest01() {
OLESimpleStorageTest aTest = new Test01( m_xMSF, log );
assure( "Test01 failed!", aTest.test() );
diff --git a/sot/qa/complex/olesimplestorage/Test01.java b/sot/qa/complex/olesimplestorage/Test01.java
index c9010e61231a..b1dc4f86c2e5 100644
--- a/sot/qa/complex/olesimplestorage/Test01.java
+++ b/sot/qa/complex/olesimplestorage/Test01.java
@@ -18,13 +18,13 @@ public class Test01 implements OLESimpleStorageTest
TestHelper m_aTestHelper = null;
final int pStreamCnt = 5;
final int pBytesCnt = 10;
-
+
public Test01 ( XMultiServiceFactory xMSF, LogWriter aLogWriter )
{
m_xMSF = xMSF;
m_aTestHelper = new TestHelper (aLogWriter, "Test01: ");
}
-
+
public boolean test ()
{
try
@@ -33,7 +33,7 @@ public class Test01 implements OLESimpleStorageTest
Object oTempFile = m_xMSF.createInstance ( "com.sun.star.io.TempFile" );
XTempFile xTempFile = (XTempFile) UnoRuntime.queryInterface ( XTempFile.class, oTempFile );
m_aTestHelper.Message ( "A new temporary stream created." );
-
+
//create OLESimpleStorage based on it
Object pArgs[] = new Object[2];
pArgs[0] = (Object) xTempFile;
@@ -41,7 +41,7 @@ public class Test01 implements OLESimpleStorageTest
Object oOLESimpleStorage = m_xMSF.createInstanceWithArguments ( "com.sun.star.embed.OLESimpleStorage", pArgs );
XOLESimpleStorage xOLESimpleStorage = (XOLESimpleStorage) UnoRuntime.queryInterface ( XOLESimpleStorage.class, oOLESimpleStorage );
m_aTestHelper.Message ( "OLESimpleStorage based on XStream created." );
-
+
//fill it with some streams
Object oStream[] = new Object[pStreamCnt];
byte pBytesIn[][][] = new byte [pStreamCnt][1][pBytesCnt];
@@ -67,7 +67,7 @@ public class Test01 implements OLESimpleStorageTest
m_aTestHelper.Message ( "Substream " + i + " inserted." );
}
}
-
+
//commit the storage and close it
xOLESimpleStorage.commit ();
m_aTestHelper.Message ( "Storage commited." );
@@ -79,20 +79,20 @@ public class Test01 implements OLESimpleStorageTest
xTempStream[i].getOutputStream ().closeOutput ();
}
m_aTestHelper.Message ( "Storage closed." );
-
+
//open the same stream with the constructor for inputstream
pArgs[0] = (Object)xTempFile.getInputStream ();
oOLESimpleStorage = m_xMSF.createInstanceWithArguments ( "com.sun.star.embed.OLESimpleStorage", pArgs );
xOLESimpleStorage = (XOLESimpleStorage)UnoRuntime.queryInterface ( XOLESimpleStorage.class, oOLESimpleStorage );
m_aTestHelper.Message ( "Storage reopened, based on XInputStream." );
-
+
//check that all the streams contain correct information
m_aTestHelper.Message ( "Checking data contained in all the substreams..." );
for ( int i = 0; i < pStreamCnt; ++i )
{
if ( xOLESimpleStorage.hasByName (sSubStreamPrefix + i) )
{
- xTempStream[i] = (XTempFile)UnoRuntime.queryInterface (
+ xTempStream[i] = (XTempFile)UnoRuntime.queryInterface (
XTempFile.class, xOLESimpleStorage.getByName (sSubStreamPrefix + i) );
xTempStream[i].seek (0);
xTempStream[i].getInputStream ().readBytes (pBytesIn[i], pBytesIn[i][0].length + 1 );
@@ -103,7 +103,7 @@ public class Test01 implements OLESimpleStorageTest
m_aTestHelper.Error ( "Stream " + i + " byte " + j + ": INCORRECT DATA!");
return false;
}
- else
+ else
{
m_aTestHelper.Message ( "Stream " + i + " byte " + j + ": CORRECT." );
}
diff --git a/sot/qa/complex/olesimplestorage/TestHelper.java b/sot/qa/complex/olesimplestorage/TestHelper.java
index 4b29ed15e393..090da15c84c1 100644
--- a/sot/qa/complex/olesimplestorage/TestHelper.java
+++ b/sot/qa/complex/olesimplestorage/TestHelper.java
@@ -6,19 +6,19 @@ public class TestHelper
{
LogWriter m_aLogWriter;
String m_sTestPrefix;
-
+
/** Creates a new instance of TestHelper */
public TestHelper ( LogWriter aLogWriter, String sTestPrefix )
{
m_aLogWriter = aLogWriter;
m_sTestPrefix = sTestPrefix;
}
-
+
public void Error ( String sError )
{
m_aLogWriter.println ( m_sTestPrefix + "Error: " + sError );
}
-
+
public void Message ( String sMessage )
{
m_aLogWriter.println ( m_sTestPrefix + sMessage );
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index a34ed2c83537..4b34b9816bc3 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,9 +56,9 @@ using namespace::com::sun::star::datatransfer;
*/
struct DataFlavorRepresentation
{
- const char* pMimeType;
- const char* pName;
- const ::com::sun::star::uno::Type* pType;
+ const char* pMimeType;
+ const char* pName;
+ const ::com::sun::star::uno::Type* pType;
};
// -----------------------------------------------------------------------------
@@ -71,113 +71,113 @@ namespace
{
static const DataFlavorRepresentation aInstance[] =
{
- /* 0 SOT_FORMAT_SYSTEM_START*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 1 SOT_FORMAT_STRING*/ { "text/plain;charset=utf-16", "Text", &::getCppuType( (const ::rtl::OUString*) 0 ) },
- /* 2 SOT_FORMAT_BITMAP*/ { "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"", "Bitmap", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 3 SOT_FORMAT_GDIMETAFILE*/ { "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"", "GDIMetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 4 SOT_FORMAT_PRIVATE*/ { "application/x-openoffice-private;windows_formatname=\"Private\"", "Private", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 5 SOT_FORMAT_FILE*/ { "application/x-openoffice-file;windows_formatname=\"FileName\"", "FileName", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 6 SOT_FORMAT_FILE_LIST*/ { "application/x-openoffice-filelist;windows_formatname=\"FileList\"", "FileList", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 7 EMPTY*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 8 EMPTY*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 9 EMPTY*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 10 SOT_FORMAT_RTF*/ { "text/richtext", "Rich Text Format", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 11 SOT_FORMATSTR_ID_DRAWING*/ { "application/x-openoffice-drawing;windows_formatname=\"Drawing Format\"", "Drawing Format", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 12 SOT_FORMATSTR_ID_SVXB*/ { "application/x-openoffice-svxb;windows_formatname=\"SVXB (StarView Bitmap/Animation)\"", "SVXB (StarView Bitmap/Animation)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 13 SOT_FORMATSTR_ID_SVIM*/ { "application/x-openoffice-svim;windows_formatname=\"SVIM (StarView ImageMap)\"", "SVIM (StarView ImageMap)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 14 SOT_FORMATSTR_ID_XFA*/ { "application/x-openoffice-xfa;windows_formatname=\"XFA (XOutDev FillAttr)\"", "XFA (XOutDev FillAttr)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 15 SOT_FORMATSTR_ID_EDITENGINE*/ { "application/x-openoffice-editengine;windows_formatname=\"EditEngineFormat\"", "EditEngineFormat", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 16 SOT_FORMATSTR_ID_INTERNALLINK_STATE*/ { "application/x-openoffice-internallink-state;windows_formatname=\"StatusInfo vom SvxInternalLink\"", "StatusInfo vom SvxInternalLink", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 17 SOT_FORMATSTR_ID_SOLK*/ { "application/x-openoffice-solk;windows_formatname=\"SOLK (StarOffice Link)\"", "SOLK (StarOffice Link)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 18 SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK*/ { "application/x-openoffice-netscape-bookmark;windows_formatname=\"Netscape Bookmark\"", "Netscape Bookmark", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 19 SOT_FORMATSTR_ID_TREELISTBOX*/ { "application/x-openoffice-treelistbox;windows_formatname=\"SV_LBOX_DD_FORMAT\"", "SV_LBOX_DD_FORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 20 SOT_FORMATSTR_ID_NATIVE*/ { "application/x-openoffice-native;windows_formatname=\"Native\"", "Native", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 21 SOT_FORMATSTR_ID_OWNERLINK*/ { "application/x-openoffice-ownerlink;windows_formatname=\"OwnerLink\"", "OwnerLink", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 22 SOT_FORMATSTR_ID_STARSERVER*/ { "application/x-openoffice-starserver;windows_formatname=\"StarServerFormat\"", "StarServerFormat", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 23 SOT_FORMATSTR_ID_STAROBJECT*/ { "application/x-openoffice-starobject;windows_formatname=\"StarObjectFormat\"", "StarObjectFormat", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 24 SOT_FORMATSTR_ID_APPLETOBJECT*/ { "application/x-openoffice-appletobject;windows_formatname=\"Applet Object\"", "Applet Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 25 SOT_FORMATSTR_ID_PLUGIN_OBJECT*/ { "application/x-openoffice-plugin-object;windows_formatname=\"PlugIn Object\"", "PlugIn Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 26 SOT_FORMATSTR_ID_STARWRITER_30*/ { "application/x-openoffice-starwriter-30;windows_formatname=\"StarWriter 3.0\"", "StarWriter 3.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 27 SOT_FORMATSTR_ID_STARWRITER_40*/ { "application/x-openoffice-starwriter-40;windows_formatname=\"StarWriter 4.0\"", "StarWriter 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 28 SOT_FORMATSTR_ID_STARWRITER_50*/ { "application/x-openoffice-starwriter-50;windows_formatname=\"StarWriter 5.0\"", "StarWriter 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 29 SOT_FORMATSTR_ID_STARWRITERWEB_40*/ { "application/x-openoffice-starwriterweb-40;windows_formatname=\"StarWriter/Web 4.0\"", "StarWriter/Web 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 30 SOT_FORMATSTR_ID_STARWRITERWEB_50*/ { "application/x-openoffice-starwriterweb-50;windows_formatname=\"StarWriter/Web 5.0\"", "StarWriter/Web 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 31 SOT_FORMATSTR_ID_STARWRITERGLOB_40*/ { "application/x-openoffice-starwriterglob-40;windows_formatname=\"StarWriter/Global 4.0\"", "StarWriter/Global 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 32 SOT_FORMATSTR_ID_STARWRITERGLOB_50*/ { "application/x-openoffice-starwriterglob-50;windows_formatname=\"StarWriter/Global 5.0\"", "StarWriter/Global 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 33 SOT_FORMATSTR_ID_STARDRAW*/ { "application/x-openoffice-stardraw;windows_formatname=\"StarDrawDocument\"", "StarDrawDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 34 SOT_FORMATSTR_ID_STARDRAW_40*/ { "application/x-openoffice-stardraw-40;windows_formatname=\"StarDrawDocument 4.0\"", "StarDrawDocument 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 35 SOT_FORMATSTR_ID_STARIMPRESS_50*/ { "application/x-openoffice-starimpress-50;windows_formatname=\"StarImpress 5.0\"", "StarImpress 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 36 SOT_FORMATSTR_ID_STARDRAW_50*/ { "application/x-openoffice-stardraw-50;windows_formatname=\"StarDraw 5.0\"", "StarDraw 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 37 SOT_FORMATSTR_ID_STARCALC*/ { "application/x-openoffice-starcalc;windows_formatname=\"StarCalcDocument\"", "StarCalcDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 38 SOT_FORMATSTR_ID_STARCALC_40*/ { "application/x-openoffice-starcalc-40;windows_formatname=\"StarCalc 4.0\"", "StarCalc 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 39 SOT_FORMATSTR_ID_STARCALC_50*/ { "application/x-openoffice-starcalc-50;windows_formatname=\"StarCalc 5.0\"", "StarCalc 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 40 SOT_FORMATSTR_ID_STARCHART*/ { "application/x-openoffice-starchart;windows_formatname=\"StarChartDocument\"", "StarChartDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 41 SOT_FORMATSTR_ID_STARCHART_40*/ { "application/x-openoffice-starchart-40;windows_formatname=\"StarChartDocument 4.0\"", "StarChartDocument 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 42 SOT_FORMATSTR_ID_STARCHART_50*/ { "application/x-openoffice-starchart-50;windows_formatname=\"StarChart 5.0\"", "StarChart 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 43 SOT_FORMATSTR_ID_STARIMAGE*/ { "application/x-openoffice-starimage;windows_formatname=\"StarImageDocument\"", "StarImageDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 44 SOT_FORMATSTR_ID_STARIMAGE_40*/ { "application/x-openoffice-starimage-40;windows_formatname=\"StarImageDocument 4.0\"", "StarImageDocument 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 45 SOT_FORMATSTR_ID_STARIMAGE_50*/ { "application/x-openoffice-starimage-50;windows_formatname=\"StarImage 5.0\"", "StarImage 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 46 SOT_FORMATSTR_ID_STARMATH*/ { "application/x-openoffice-starmath;windows_formatname=\"StarMath\"", "StarMath", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 47 SOT_FORMATSTR_ID_STARMATH_40*/ { "application/x-openoffice-starmath-40;windows_formatname=\"StarMathDocument 4.0\"", "StarMathDocument 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 48 SOT_FORMATSTR_ID_STARMATH_50*/ { "application/x-openoffice-starmath-50;windows_formatname=\"StarMath 5.0\"", "StarMath 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 49 SOT_FORMATSTR_ID_STAROBJECT_PAINTDOC*/ { "application/x-openoffice-starobject-paintdoc;windows_formatname=\"StarObjectPaintDocument\"", "StarObjectPaintDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 50 SOT_FORMATSTR_ID_FILLED_AREA*/ { "application/x-openoffice-filled-area;windows_formatname=\"FilledArea\"", "FilledArea", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 51 SOT_FORMATSTR_ID_HTML*/ { "text/html", "HTML (HyperText Markup Language)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 52 SOT_FORMATSTR_ID_HTML_SIMPLE*/ { "application/x-openoffice-html-simple;windows_formatname=\"HTML Format\"", "HTML Format", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 53 SOT_FORMATSTR_ID_CHAOS*/ { "application/x-openoffice-chaos;windows_formatname=\"FORMAT_CHAOS\"", "FORMAT_CHAOS", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 54 SOT_FORMATSTR_ID_CNT_MSGATTACHFILE*/ { "application/x-openoffice-cnt-msgattachfile;windows_formatname=\"CNT_MSGATTACHFILE_FORMAT\"", "CNT_MSGATTACHFILE_FORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 55 SOT_FORMATSTR_ID_BIFF_5*/ { "application/x-openoffice-biff5;windows_formatname=\"Biff5\"", "Biff5", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 56 SOT_FORMATSTR_ID_BIFF__5*/ { "application/x-openoffice-biff-5;windows_formatname=\"Biff 5\"", "Biff 5", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 57 SOT_FORMATSTR_ID_SYLK*/ { "application/x-openoffice-sylk;windows_formatname=\"Sylk\"", "Sylk", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 58 SOT_FORMATSTR_ID_SYLK_BIGCAPS*/ { "application/x-openoffice-sylk-bigcaps;windows_formatname=\"SYLK\"", "SYLK", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 59 SOT_FORMATSTR_ID_LINK*/ { "application/x-openoffice-link;windows_formatname=\"Link\"", "Link", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 60 SOT_FORMATSTR_ID_DIF*/ { "application/x-openoffice-dif;windows_formatname=\"DIF\"", "DIF", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 61 SOT_FORMATSTR_ID_STARDRAW_TABBAR*/ { "application/x-openoffice-stardraw-tabbar;windows_formatname=\"StarDraw TabBar\"", "StarDraw TabBar", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 62 SOT_FORMATSTR_ID_SONLK*/ { "application/x-openoffice-sonlk;windows_formatname=\"SONLK (StarOffice Navi Link)\"", "SONLK (StarOffice Navi Link)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 63 SOT_FORMATSTR_ID_MSWORD_DOC*/ { "application/msword", "MSWordDoc", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 64 SOT_FORMATSTR_ID_STAR_FRAMESET_DOC*/ { "application/x-openoffice-star-frameset-doc;windows_formatname=\"StarFrameSetDocument\"", "StarFrameSetDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 65 SOT_FORMATSTR_ID_OFFICE_DOC*/ { "application/x-openoffice-office-doc;windows_formatname=\"OfficeDocument\"", "OfficeDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 66 SOT_FORMATSTR_ID_NOTES_DOCINFO*/ { "application/x-openoffice-notes-docinfo;windows_formatname=\"NotesDocInfo\"", "NotesDocInfo", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 67 SOT_FORMATSTR_ID_NOTES_HNOTE*/ { "application/x-openoffice-notes-hnote;windows_formatname=\"NoteshNote\"", "NoteshNote", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 68 SOT_FORMATSTR_ID_NOTES_NATIVE*/ { "application/x-openoffice-notes-native;windows_formatname=\"Native\"", "Native", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 69 SOT_FORMATSTR_ID_SFX_DOC*/ { "application/x-openoffice-sfx-doc;windows_formatname=\"SfxDocument\"", "SfxDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 70 SOT_FORMATSTR_ID_EVDF*/ { "application/x-openoffice-evdf;windows_formatname=\"EVDF (Explorer View Dummy Format)\"", "EVDF (Explorer View Dummy Format)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 71 SOT_FORMATSTR_ID_ESDF*/ { "application/x-openoffice-esdf;windows_formatname=\"ESDF (Explorer Search Dummy Format)\"", "ESDF (Explorer Search Dummy Format)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 72 SOT_FORMATSTR_ID_IDF*/ { "application/x-openoffice-idf;windows_formatname=\"IDF (Iconview Dummy Format)\"", "IDF (Iconview Dummy Format)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 73 SOT_FORMATSTR_ID_EFTP*/ { "application/x-openoffice-eftp;windows_formatname=\"EFTP (Explorer Ftp File)\"", "EFTP (Explorer Ftp File)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 74 SOT_FORMATSTR_ID_EFD*/ { "application/x-openoffice-efd;windows_formatname=\"EFD (Explorer Ftp Dir)\"", "EFD (Explorer Ftp Dir)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 75 SOT_FORMATSTR_ID_SVX_FORMFIELDEXCH*/ { "application/x-openoffice-svx-formfieldexch;windows_formatname=\"SvxFormFieldExch\"", "SvxFormFieldExch", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 76 SOT_FORMATSTR_ID_EXTENDED_TABBAR*/ { "application/x-openoffice-extended-tabbar;windows_formatname=\"ExtendedTabBar\"", "ExtendedTabBar", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 77 SOT_FORMATSTR_ID_SBA_DATAEXCHANGE*/ { "application/x-openoffice-sba-dataexchange;windows_formatname=\"SBA-DATAFORMAT\"", "SBA-DATAFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 78 SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE*/ { "application/x-openoffice-sba-fielddataexchange;windows_formatname=\"SBA-FIELDFORMAT\"", "SBA-FIELDFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 79 SOT_FORMATSTR_ID_SBA_PRIVATE_URL*/ { "application/x-openoffice-sba-private-url;windows_formatname=\"SBA-PRIVATEURLFORMAT\"", "SBA-PRIVATEURLFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 80 SOT_FORMATSTR_ID_SBA_TABED*/ { "application/x-openofficesba-tabed;windows_formatname=\"Tabed\"", "Tabed", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 81 SOT_FORMATSTR_ID_SBA_TABID*/ { "application/x-openoffice-sba-tabid;windows_formatname=\"Tabid\"", "Tabid", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 82 SOT_FORMATSTR_ID_SBA_JOIN*/ { "application/x-openoffice-sba-join;windows_formatname=\"SBA-JOINFORMAT\"", "SBA-JOINFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 83 SOT_FORMATSTR_ID_OBJECTDESCRIPTOR*/ { "application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star Object Descriptor (XML)\"", "Star Object Descriptor (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 84 SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR*/ { "application/x-openoffice-linksrcdescriptor-xml;windows_formatname=\"Star Link Source Descriptor (XML)\"", "Star Link Source Descriptor (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 85 SOT_FORMATSTR_ID_EMBED_SOURCE*/ { "application/x-openoffice-embed-source-xml;windows_formatname=\"Star Embed Source (XML)\"", "Star Embed Source (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 86 SOT_FORMATSTR_ID_LINK_SOURCE*/ { "application/x-openoffice-link-source-xml;windows_formatname=\"Star Link Source (XML)\"", "Star Link Source (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 87 SOT_FORMATSTR_ID_EMBEDDED_OBJ*/ { "application/x-openoffice-embedded-obj-xml;windows_formatname=\"Star Embedded Object (XML)\"", "Star Embedded Object (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 88 SOT_FORMATSTR_ID_FILECONTENT*/ { "application/x-openoffice-filecontent;windows_formatname=\"FileContents\"", "FileContents", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 89 SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR*/ { "application/x-openoffice-filegrpdescriptor;windows_formatname=\"FileGroupDescriptor\"", "FileGroupDescriptor", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 90 SOT_FORMATSTR_ID_FILENAME*/ { "application/x-openoffice-filename;windows_formatname=\"FileName\"", "FileName", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 91 SOT_FORMATSTR_ID_SD_OLE*/ { "application/x-openoffice-sd-ole;windows_formatname=\"SD-OLE\"", "SD-OLE", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 92 SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE*/ { "application/x-openoffice-embedded-obj-ole;windows_formatname=\"Embedded Object\"", "Embedded Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 93 SOT_FORMATSTR_ID_EMBED_SOURCE_OLE*/ { "application/x-openoffice-embed-source-ole;windows_formatname=\"Embed Source\"", "Embed Source", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 94 SOT_FORMATSTR_ID_OBJECTDESCRIPTOR_OLE*/ { "application/x-openoffice-objectdescriptor-ole;windows_formatname=\"Object Descriptor\"", "Object Descriptor", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 95 SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR_OLE*/ { "application/x-openoffice-linkdescriptor-ole;windows_formatname=\"Link Source Descriptor\"", "Link Source Descriptor", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 96 SOT_FORMATSTR_ID_LINK_SOURCE_OLE*/ { "application/x-openoffice-link-source-ole;windows_formatname=\"Link Source\"", "Link Source", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 97 SOT_FORMATSTR_ID_SBA_CTRLDATAEXCHANGE*/ { "application/x-openoffice-sba-ctrldataexchange;windows_formatname=\"SBA-CTRLFORMAT\"", "SBA-CTRLFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 98 SOT_FORMATSTR_ID_OUTPLACE_OBJ*/ { "application/x-openoffice-outplace-obj;windows_formatname=\"OutPlace Object\"", "OutPlace Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /* 99 SOT_FORMATSTR_ID_CNT_OWN_CLIP*/ { "application/x-openoffice-cnt-own-clip;windows_formatname=\"CntOwnClipboard\"", "CntOwnClipboard", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*100 SOT_FORMATSTR_ID_INET_IMAGE*/ { "application/x-openoffice-inet-image;windows_formatname=\"SO-INet-Image\"", "SO-INet-Image", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*101 SOT_FORMATSTR_ID_NETSCAPE_IMAGE*/ { "application/x-openoffice-netscape-image;windows_formatname=\"Netscape Image Format\"", "Netscape Image Format", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*102 SOT_FORMATSTR_ID_SBA_FORMEXCHANGE*/ { "application/x-openoffice-sba-formexchange;windows_formatname=\"SBA_FORMEXCHANGE\"", "SBA_FORMEXCHANGE", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*103 SOT_FORMATSTR_ID_SBA_REPORTEXCHANGE*/ { "application/x-openoffice-sba-reportexchange;windows_formatname=\"SBA_REPORTEXCHANGE\"", "SBA_REPORTEXCHANGE", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*104 SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR*/ { "application/x-openoffice-uniformresourcelocator;windows_formatname=\"UniformResourceLocator\"", "UniformResourceLocator", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*105 SOT_FORMATSTR_ID_STARCHARTDOCUMENT_50*/ { "application/x-openoffice-starchartdocument-50;windows_formatname=\"StarChartDocument 5.0\"", "StarChartDocument 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*106 SOT_FORMATSTR_ID_GRAPHOBJ*/ { "application/x-openoffice-graphobj;windows_formatname=\"Graphic Object\"", "Graphic Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 0 SOT_FORMAT_SYSTEM_START*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 1 SOT_FORMAT_STRING*/ { "text/plain;charset=utf-16", "Text", &::getCppuType( (const ::rtl::OUString*) 0 ) },
+ /* 2 SOT_FORMAT_BITMAP*/ { "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"", "Bitmap", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 3 SOT_FORMAT_GDIMETAFILE*/ { "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"", "GDIMetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 4 SOT_FORMAT_PRIVATE*/ { "application/x-openoffice-private;windows_formatname=\"Private\"", "Private", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 5 SOT_FORMAT_FILE*/ { "application/x-openoffice-file;windows_formatname=\"FileName\"", "FileName", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 6 SOT_FORMAT_FILE_LIST*/ { "application/x-openoffice-filelist;windows_formatname=\"FileList\"", "FileList", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 7 EMPTY*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 8 EMPTY*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 9 EMPTY*/ { "", "", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 10 SOT_FORMAT_RTF*/ { "text/richtext", "Rich Text Format", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 11 SOT_FORMATSTR_ID_DRAWING*/ { "application/x-openoffice-drawing;windows_formatname=\"Drawing Format\"", "Drawing Format", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 12 SOT_FORMATSTR_ID_SVXB*/ { "application/x-openoffice-svxb;windows_formatname=\"SVXB (StarView Bitmap/Animation)\"", "SVXB (StarView Bitmap/Animation)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 13 SOT_FORMATSTR_ID_SVIM*/ { "application/x-openoffice-svim;windows_formatname=\"SVIM (StarView ImageMap)\"", "SVIM (StarView ImageMap)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 14 SOT_FORMATSTR_ID_XFA*/ { "application/x-openoffice-xfa;windows_formatname=\"XFA (XOutDev FillAttr)\"", "XFA (XOutDev FillAttr)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 15 SOT_FORMATSTR_ID_EDITENGINE*/ { "application/x-openoffice-editengine;windows_formatname=\"EditEngineFormat\"", "EditEngineFormat", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 16 SOT_FORMATSTR_ID_INTERNALLINK_STATE*/ { "application/x-openoffice-internallink-state;windows_formatname=\"StatusInfo vom SvxInternalLink\"", "StatusInfo vom SvxInternalLink", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 17 SOT_FORMATSTR_ID_SOLK*/ { "application/x-openoffice-solk;windows_formatname=\"SOLK (StarOffice Link)\"", "SOLK (StarOffice Link)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 18 SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK*/ { "application/x-openoffice-netscape-bookmark;windows_formatname=\"Netscape Bookmark\"", "Netscape Bookmark", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 19 SOT_FORMATSTR_ID_TREELISTBOX*/ { "application/x-openoffice-treelistbox;windows_formatname=\"SV_LBOX_DD_FORMAT\"", "SV_LBOX_DD_FORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 20 SOT_FORMATSTR_ID_NATIVE*/ { "application/x-openoffice-native;windows_formatname=\"Native\"", "Native", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 21 SOT_FORMATSTR_ID_OWNERLINK*/ { "application/x-openoffice-ownerlink;windows_formatname=\"OwnerLink\"", "OwnerLink", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 22 SOT_FORMATSTR_ID_STARSERVER*/ { "application/x-openoffice-starserver;windows_formatname=\"StarServerFormat\"", "StarServerFormat", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 23 SOT_FORMATSTR_ID_STAROBJECT*/ { "application/x-openoffice-starobject;windows_formatname=\"StarObjectFormat\"", "StarObjectFormat", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 24 SOT_FORMATSTR_ID_APPLETOBJECT*/ { "application/x-openoffice-appletobject;windows_formatname=\"Applet Object\"", "Applet Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 25 SOT_FORMATSTR_ID_PLUGIN_OBJECT*/ { "application/x-openoffice-plugin-object;windows_formatname=\"PlugIn Object\"", "PlugIn Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 26 SOT_FORMATSTR_ID_STARWRITER_30*/ { "application/x-openoffice-starwriter-30;windows_formatname=\"StarWriter 3.0\"", "StarWriter 3.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 27 SOT_FORMATSTR_ID_STARWRITER_40*/ { "application/x-openoffice-starwriter-40;windows_formatname=\"StarWriter 4.0\"", "StarWriter 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 28 SOT_FORMATSTR_ID_STARWRITER_50*/ { "application/x-openoffice-starwriter-50;windows_formatname=\"StarWriter 5.0\"", "StarWriter 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 29 SOT_FORMATSTR_ID_STARWRITERWEB_40*/ { "application/x-openoffice-starwriterweb-40;windows_formatname=\"StarWriter/Web 4.0\"", "StarWriter/Web 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 30 SOT_FORMATSTR_ID_STARWRITERWEB_50*/ { "application/x-openoffice-starwriterweb-50;windows_formatname=\"StarWriter/Web 5.0\"", "StarWriter/Web 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 31 SOT_FORMATSTR_ID_STARWRITERGLOB_40*/ { "application/x-openoffice-starwriterglob-40;windows_formatname=\"StarWriter/Global 4.0\"", "StarWriter/Global 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 32 SOT_FORMATSTR_ID_STARWRITERGLOB_50*/ { "application/x-openoffice-starwriterglob-50;windows_formatname=\"StarWriter/Global 5.0\"", "StarWriter/Global 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 33 SOT_FORMATSTR_ID_STARDRAW*/ { "application/x-openoffice-stardraw;windows_formatname=\"StarDrawDocument\"", "StarDrawDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 34 SOT_FORMATSTR_ID_STARDRAW_40*/ { "application/x-openoffice-stardraw-40;windows_formatname=\"StarDrawDocument 4.0\"", "StarDrawDocument 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 35 SOT_FORMATSTR_ID_STARIMPRESS_50*/ { "application/x-openoffice-starimpress-50;windows_formatname=\"StarImpress 5.0\"", "StarImpress 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 36 SOT_FORMATSTR_ID_STARDRAW_50*/ { "application/x-openoffice-stardraw-50;windows_formatname=\"StarDraw 5.0\"", "StarDraw 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 37 SOT_FORMATSTR_ID_STARCALC*/ { "application/x-openoffice-starcalc;windows_formatname=\"StarCalcDocument\"", "StarCalcDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 38 SOT_FORMATSTR_ID_STARCALC_40*/ { "application/x-openoffice-starcalc-40;windows_formatname=\"StarCalc 4.0\"", "StarCalc 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 39 SOT_FORMATSTR_ID_STARCALC_50*/ { "application/x-openoffice-starcalc-50;windows_formatname=\"StarCalc 5.0\"", "StarCalc 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 40 SOT_FORMATSTR_ID_STARCHART*/ { "application/x-openoffice-starchart;windows_formatname=\"StarChartDocument\"", "StarChartDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 41 SOT_FORMATSTR_ID_STARCHART_40*/ { "application/x-openoffice-starchart-40;windows_formatname=\"StarChartDocument 4.0\"", "StarChartDocument 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 42 SOT_FORMATSTR_ID_STARCHART_50*/ { "application/x-openoffice-starchart-50;windows_formatname=\"StarChart 5.0\"", "StarChart 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 43 SOT_FORMATSTR_ID_STARIMAGE*/ { "application/x-openoffice-starimage;windows_formatname=\"StarImageDocument\"", "StarImageDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 44 SOT_FORMATSTR_ID_STARIMAGE_40*/ { "application/x-openoffice-starimage-40;windows_formatname=\"StarImageDocument 4.0\"", "StarImageDocument 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 45 SOT_FORMATSTR_ID_STARIMAGE_50*/ { "application/x-openoffice-starimage-50;windows_formatname=\"StarImage 5.0\"", "StarImage 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 46 SOT_FORMATSTR_ID_STARMATH*/ { "application/x-openoffice-starmath;windows_formatname=\"StarMath\"", "StarMath", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 47 SOT_FORMATSTR_ID_STARMATH_40*/ { "application/x-openoffice-starmath-40;windows_formatname=\"StarMathDocument 4.0\"", "StarMathDocument 4.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 48 SOT_FORMATSTR_ID_STARMATH_50*/ { "application/x-openoffice-starmath-50;windows_formatname=\"StarMath 5.0\"", "StarMath 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 49 SOT_FORMATSTR_ID_STAROBJECT_PAINTDOC*/ { "application/x-openoffice-starobject-paintdoc;windows_formatname=\"StarObjectPaintDocument\"", "StarObjectPaintDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 50 SOT_FORMATSTR_ID_FILLED_AREA*/ { "application/x-openoffice-filled-area;windows_formatname=\"FilledArea\"", "FilledArea", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 51 SOT_FORMATSTR_ID_HTML*/ { "text/html", "HTML (HyperText Markup Language)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 52 SOT_FORMATSTR_ID_HTML_SIMPLE*/ { "application/x-openoffice-html-simple;windows_formatname=\"HTML Format\"", "HTML Format", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 53 SOT_FORMATSTR_ID_CHAOS*/ { "application/x-openoffice-chaos;windows_formatname=\"FORMAT_CHAOS\"", "FORMAT_CHAOS", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 54 SOT_FORMATSTR_ID_CNT_MSGATTACHFILE*/ { "application/x-openoffice-cnt-msgattachfile;windows_formatname=\"CNT_MSGATTACHFILE_FORMAT\"", "CNT_MSGATTACHFILE_FORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 55 SOT_FORMATSTR_ID_BIFF_5*/ { "application/x-openoffice-biff5;windows_formatname=\"Biff5\"", "Biff5", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 56 SOT_FORMATSTR_ID_BIFF__5*/ { "application/x-openoffice-biff-5;windows_formatname=\"Biff 5\"", "Biff 5", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 57 SOT_FORMATSTR_ID_SYLK*/ { "application/x-openoffice-sylk;windows_formatname=\"Sylk\"", "Sylk", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 58 SOT_FORMATSTR_ID_SYLK_BIGCAPS*/ { "application/x-openoffice-sylk-bigcaps;windows_formatname=\"SYLK\"", "SYLK", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 59 SOT_FORMATSTR_ID_LINK*/ { "application/x-openoffice-link;windows_formatname=\"Link\"", "Link", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 60 SOT_FORMATSTR_ID_DIF*/ { "application/x-openoffice-dif;windows_formatname=\"DIF\"", "DIF", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 61 SOT_FORMATSTR_ID_STARDRAW_TABBAR*/ { "application/x-openoffice-stardraw-tabbar;windows_formatname=\"StarDraw TabBar\"", "StarDraw TabBar", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 62 SOT_FORMATSTR_ID_SONLK*/ { "application/x-openoffice-sonlk;windows_formatname=\"SONLK (StarOffice Navi Link)\"", "SONLK (StarOffice Navi Link)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 63 SOT_FORMATSTR_ID_MSWORD_DOC*/ { "application/msword", "MSWordDoc", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 64 SOT_FORMATSTR_ID_STAR_FRAMESET_DOC*/ { "application/x-openoffice-star-frameset-doc;windows_formatname=\"StarFrameSetDocument\"", "StarFrameSetDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 65 SOT_FORMATSTR_ID_OFFICE_DOC*/ { "application/x-openoffice-office-doc;windows_formatname=\"OfficeDocument\"", "OfficeDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 66 SOT_FORMATSTR_ID_NOTES_DOCINFO*/ { "application/x-openoffice-notes-docinfo;windows_formatname=\"NotesDocInfo\"", "NotesDocInfo", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 67 SOT_FORMATSTR_ID_NOTES_HNOTE*/ { "application/x-openoffice-notes-hnote;windows_formatname=\"NoteshNote\"", "NoteshNote", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 68 SOT_FORMATSTR_ID_NOTES_NATIVE*/ { "application/x-openoffice-notes-native;windows_formatname=\"Native\"", "Native", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 69 SOT_FORMATSTR_ID_SFX_DOC*/ { "application/x-openoffice-sfx-doc;windows_formatname=\"SfxDocument\"", "SfxDocument", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 70 SOT_FORMATSTR_ID_EVDF*/ { "application/x-openoffice-evdf;windows_formatname=\"EVDF (Explorer View Dummy Format)\"", "EVDF (Explorer View Dummy Format)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 71 SOT_FORMATSTR_ID_ESDF*/ { "application/x-openoffice-esdf;windows_formatname=\"ESDF (Explorer Search Dummy Format)\"", "ESDF (Explorer Search Dummy Format)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 72 SOT_FORMATSTR_ID_IDF*/ { "application/x-openoffice-idf;windows_formatname=\"IDF (Iconview Dummy Format)\"", "IDF (Iconview Dummy Format)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 73 SOT_FORMATSTR_ID_EFTP*/ { "application/x-openoffice-eftp;windows_formatname=\"EFTP (Explorer Ftp File)\"", "EFTP (Explorer Ftp File)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 74 SOT_FORMATSTR_ID_EFD*/ { "application/x-openoffice-efd;windows_formatname=\"EFD (Explorer Ftp Dir)\"", "EFD (Explorer Ftp Dir)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 75 SOT_FORMATSTR_ID_SVX_FORMFIELDEXCH*/ { "application/x-openoffice-svx-formfieldexch;windows_formatname=\"SvxFormFieldExch\"", "SvxFormFieldExch", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 76 SOT_FORMATSTR_ID_EXTENDED_TABBAR*/ { "application/x-openoffice-extended-tabbar;windows_formatname=\"ExtendedTabBar\"", "ExtendedTabBar", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 77 SOT_FORMATSTR_ID_SBA_DATAEXCHANGE*/ { "application/x-openoffice-sba-dataexchange;windows_formatname=\"SBA-DATAFORMAT\"", "SBA-DATAFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 78 SOT_FORMATSTR_ID_SBA_FIELDDATAEXCHANGE*/ { "application/x-openoffice-sba-fielddataexchange;windows_formatname=\"SBA-FIELDFORMAT\"", "SBA-FIELDFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 79 SOT_FORMATSTR_ID_SBA_PRIVATE_URL*/ { "application/x-openoffice-sba-private-url;windows_formatname=\"SBA-PRIVATEURLFORMAT\"", "SBA-PRIVATEURLFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 80 SOT_FORMATSTR_ID_SBA_TABED*/ { "application/x-openofficesba-tabed;windows_formatname=\"Tabed\"", "Tabed", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 81 SOT_FORMATSTR_ID_SBA_TABID*/ { "application/x-openoffice-sba-tabid;windows_formatname=\"Tabid\"", "Tabid", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 82 SOT_FORMATSTR_ID_SBA_JOIN*/ { "application/x-openoffice-sba-join;windows_formatname=\"SBA-JOINFORMAT\"", "SBA-JOINFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 83 SOT_FORMATSTR_ID_OBJECTDESCRIPTOR*/ { "application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star Object Descriptor (XML)\"", "Star Object Descriptor (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 84 SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR*/ { "application/x-openoffice-linksrcdescriptor-xml;windows_formatname=\"Star Link Source Descriptor (XML)\"", "Star Link Source Descriptor (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 85 SOT_FORMATSTR_ID_EMBED_SOURCE*/ { "application/x-openoffice-embed-source-xml;windows_formatname=\"Star Embed Source (XML)\"", "Star Embed Source (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 86 SOT_FORMATSTR_ID_LINK_SOURCE*/ { "application/x-openoffice-link-source-xml;windows_formatname=\"Star Link Source (XML)\"", "Star Link Source (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 87 SOT_FORMATSTR_ID_EMBEDDED_OBJ*/ { "application/x-openoffice-embedded-obj-xml;windows_formatname=\"Star Embedded Object (XML)\"", "Star Embedded Object (XML)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 88 SOT_FORMATSTR_ID_FILECONTENT*/ { "application/x-openoffice-filecontent;windows_formatname=\"FileContents\"", "FileContents", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 89 SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR*/ { "application/x-openoffice-filegrpdescriptor;windows_formatname=\"FileGroupDescriptor\"", "FileGroupDescriptor", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 90 SOT_FORMATSTR_ID_FILENAME*/ { "application/x-openoffice-filename;windows_formatname=\"FileName\"", "FileName", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 91 SOT_FORMATSTR_ID_SD_OLE*/ { "application/x-openoffice-sd-ole;windows_formatname=\"SD-OLE\"", "SD-OLE", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 92 SOT_FORMATSTR_ID_EMBEDDED_OBJ_OLE*/ { "application/x-openoffice-embedded-obj-ole;windows_formatname=\"Embedded Object\"", "Embedded Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 93 SOT_FORMATSTR_ID_EMBED_SOURCE_OLE*/ { "application/x-openoffice-embed-source-ole;windows_formatname=\"Embed Source\"", "Embed Source", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 94 SOT_FORMATSTR_ID_OBJECTDESCRIPTOR_OLE*/ { "application/x-openoffice-objectdescriptor-ole;windows_formatname=\"Object Descriptor\"", "Object Descriptor", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 95 SOT_FORMATSTR_ID_LINKSRCDESCRIPTOR_OLE*/ { "application/x-openoffice-linkdescriptor-ole;windows_formatname=\"Link Source Descriptor\"", "Link Source Descriptor", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 96 SOT_FORMATSTR_ID_LINK_SOURCE_OLE*/ { "application/x-openoffice-link-source-ole;windows_formatname=\"Link Source\"", "Link Source", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 97 SOT_FORMATSTR_ID_SBA_CTRLDATAEXCHANGE*/ { "application/x-openoffice-sba-ctrldataexchange;windows_formatname=\"SBA-CTRLFORMAT\"", "SBA-CTRLFORMAT", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 98 SOT_FORMATSTR_ID_OUTPLACE_OBJ*/ { "application/x-openoffice-outplace-obj;windows_formatname=\"OutPlace Object\"", "OutPlace Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /* 99 SOT_FORMATSTR_ID_CNT_OWN_CLIP*/ { "application/x-openoffice-cnt-own-clip;windows_formatname=\"CntOwnClipboard\"", "CntOwnClipboard", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*100 SOT_FORMATSTR_ID_INET_IMAGE*/ { "application/x-openoffice-inet-image;windows_formatname=\"SO-INet-Image\"", "SO-INet-Image", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*101 SOT_FORMATSTR_ID_NETSCAPE_IMAGE*/ { "application/x-openoffice-netscape-image;windows_formatname=\"Netscape Image Format\"", "Netscape Image Format", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*102 SOT_FORMATSTR_ID_SBA_FORMEXCHANGE*/ { "application/x-openoffice-sba-formexchange;windows_formatname=\"SBA_FORMEXCHANGE\"", "SBA_FORMEXCHANGE", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*103 SOT_FORMATSTR_ID_SBA_REPORTEXCHANGE*/ { "application/x-openoffice-sba-reportexchange;windows_formatname=\"SBA_REPORTEXCHANGE\"", "SBA_REPORTEXCHANGE", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*104 SOT_FORMATSTR_ID_UNIFORMRESOURCELOCATOR*/ { "application/x-openoffice-uniformresourcelocator;windows_formatname=\"UniformResourceLocator\"", "UniformResourceLocator", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*105 SOT_FORMATSTR_ID_STARCHARTDOCUMENT_50*/ { "application/x-openoffice-starchartdocument-50;windows_formatname=\"StarChartDocument 5.0\"", "StarChartDocument 5.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*106 SOT_FORMATSTR_ID_GRAPHOBJ*/ { "application/x-openoffice-graphobj;windows_formatname=\"Graphic Object\"", "Graphic Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*107 SOT_FORMATSTR_ID_STARWRITER_60*/ { MIMETYPE_VND_SUN_XML_WRITER_ASCII, "Writer 6.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*108 SOT_FORMATSTR_ID_STARWRITERWEB_60*/ { MIMETYPE_VND_SUN_XML_WRITER_WEB_ASCII, "Writer/Web 6.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*109 SOT_FORMATSTR_ID_STARWRITERGLOB_60*/ { MIMETYPE_VND_SUN_XML_WRITER_GLOBAL_ASCII, "Writer/Global 6.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
@@ -186,12 +186,12 @@ namespace
/*112 SOT_FORMATSTR_ID_STARCALC_60*/ { MIMETYPE_VND_SUN_XML_CALC_ASCII, "Calc 6.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*113 SOT_FORMATSTR_ID_STARCHART_60*/ { MIMETYPE_VND_SUN_XML_CHART_ASCII, "Chart 6.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*114 SOT_FORMATSTR_ID_STARMATH_60*/ { MIMETYPE_VND_SUN_XML_MATH_ASCII, "Math 6.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*115 SOT_FORMATSTR_ID_WMF*/ { "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"", "Windows MetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*115 SOT_FORMATSTR_ID_WMF*/ { "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"", "Windows MetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*116 SOT_FORMATSTR_ID_DBACCESS_QUERY*/ { "application/x-openoffice-dbaccess-query;windows_formatname=\"Data source Query Object\"", "Data source Query Object", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*117 SOT_FORMATSTR_ID_DBACCESS_TABLE*/ { "application/x-openoffice-dbaccess-table;windows_formatname=\"Data source Table\"", "Data source Table", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*118 SOT_FORMATSTR_ID_DBACCESS_COMMAND*/ { "application/x-openoffice-dbaccess-command;windows_formatname=\"SQL query\"", "SQL query", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*119 SOT_FORMATSTR_ID_DIALOG_60*/ { "application/vnd.sun.xml.dialog", "Dialog 6.0", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*120 SOT_FORMATSTR_ID_EMF*/ { "application/x-openoffice-emf;windows_formatname=\"Image EMF\"", "Windows Enhanced MetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*120 SOT_FORMATSTR_ID_EMF*/ { "application/x-openoffice-emf;windows_formatname=\"Image EMF\"", "Windows Enhanced MetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*121 SOT_FORMATSTR_ID_BIFF_8*/ { "application/x-openoffice-biff-8;windows_formatname=\"Biff8\"", "Biff8", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*122 SOT_FORMATSTR_ID_BMP*/ { "image/bmp", "Windows Bitmap", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*123 SOT_FORMATSTR_ID_HTML_NO_COMMENT */ { "application/x-openoffice-html-no-comment;windows_formatname=\"HTML Format\"", "HTML (no comment)", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
@@ -211,7 +211,7 @@ namespace
/*137 SOT_FORMATSTR_ID_STARCHART_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_CHART_TEMPLATE_ASCII, "Chart 8 Template", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*138 SOT_FORMATSTR_ID_STARMATH_8_TEMPLATE*/ { MIMETYPE_OASIS_OPENDOCUMENT_FORMULA_TEMPLATE_ASCII, "Math 8 Template", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
/*139 SOT_FORMATSTR_ID_STARBASE_8*/ { MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII, "StarBase 8", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
- /*140 SOT_FORMAT_GDIMETAFILE*/ { "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\"", "High Contrast GDIMetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
+ /*140 SOT_FORMAT_GDIMETAFILE*/ { "application/x-openoffice-highcontrast-gdimetafile;windows_formatname=\"GDIMetaFile\"", "High Contrast GDIMetaFile", &::getCppuType( (const Sequence< sal_Int8 >*) 0 ) },
};
return &aInstance[0];
}
@@ -485,8 +485,8 @@ ULONG SotExchange::GetFormat( const DataFlavor& rFlavor )
*************************************************************************/
String SotExchange::GetFormatName( ULONG nFormat )
{
- DataFlavor aFlavor;
- String aRet;
+ DataFlavor aFlavor;
+ String aRet;
if( GetFormatDataFlavor( nFormat, aFlavor ) )
aRet = aFlavor.HumanPresentableName;
diff --git a/sot/source/base/factory.cxx b/sot/source/base/factory.cxx
index f80c55b6e4bb..c3462d76ac97 100644
--- a/sot/source/base/factory.cxx
+++ b/sot/source/base/factory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/source/base/filelist.cxx b/sot/source/base/filelist.cxx
index a35b2ecb80e3..593158e72075 100644
--- a/sot/source/base/filelist.cxx
+++ b/sot/source/base/filelist.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -102,7 +102,7 @@ ULONG FileList::GetFormat()
/******************************************************************************
|*
-|* virtuelle SvData-Methoden
+|* virtuelle SvData-Methoden
|*
\******************************************************************************/
@@ -123,7 +123,7 @@ void FileList::Assign( const SvDataCopyStream& rCopyStream )
/******************************************************************************
|*
-|* Stream-Operatoren
+|* Stream-Operatoren
|*
\******************************************************************************/
@@ -134,24 +134,24 @@ void FileList::Assign( const SvDataCopyStream& rCopyStream )
SvStream& operator<<( SvStream& rOStm, const FileList& /*rFileList*/ )
{
- OSL_ENSURE(false, "Not implemented!");
+ OSL_ENSURE(false, "Not implemented!");
return rOStm;
}
-/* #i28176#
+/* #i28176#
The Windows clipboard bridge now provides a double '\0'
- terminated list of file names for format SOT_FORMAT_FILE_LIST
+ terminated list of file names for format SOT_FORMAT_FILE_LIST
instead of the original Windows Sv_DROPFILES structure. All strings
- in this list are UTF16 strings. Shell link files will be already
+ in this list are UTF16 strings. Shell link files will be already
resolved by the Windows clipboard bridge.*/
SvStream& operator>>( SvStream& rIStm, FileList& rFileList )
{
rFileList.ClearAll();
rFileList.pStrList = new FileStringList();
-
+
String aStr;
sal_uInt16 c;
-
+
while (!rIStm.IsEof())
{
aStr.Erase();
@@ -170,13 +170,13 @@ SvStream& operator>>( SvStream& rIStm, FileList& rFileList )
// append the filepath
rFileList.AppendFile(aStr);
- }
+ }
return rIStm;
}
/******************************************************************************
|*
-|* Liste fuellen/abfragen
+|* Liste fuellen/abfragen
|*
\******************************************************************************/
diff --git a/sot/source/base/formats.cxx b/sot/source/base/formats.cxx
index 25003852709c..2faba6dd0da3 100644
--- a/sot/source/base/formats.cxx
+++ b/sot/source/base/formats.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,14 +47,14 @@ using namespace::com::sun::star::datatransfer;
struct SotAction_Impl
{
- ULONG nFormatId; // Clipboard Id
- USHORT nAction; // Action Id
- BYTE nContextCheckId; // additional check of content in clipboard
+ ULONG nFormatId; // Clipboard Id
+ USHORT nAction; // Action Id
+ BYTE nContextCheckId; // additional check of content in clipboard
};
// define a context check Id for every formatid
-#define FILEGRPDSC_ONLY_URL 1
+#define FILEGRPDSC_ONLY_URL 1
/*
Fuer jedes Ziel existiert in der Tabelle genau ein SotDestinationEntry_Impl.
@@ -69,11 +69,11 @@ struct SotAction_Impl
struct SotDestinationEntry_Impl
{
- USHORT nDestination;
- const SotAction_Impl* aDefaultActions;
- const SotAction_Impl* aMoveActions;
- const SotAction_Impl* aCopyActions;
- const SotAction_Impl* aLinkActions;
+ USHORT nDestination;
+ const SotAction_Impl* aDefaultActions;
+ const SotAction_Impl* aMoveActions;
+ const SotAction_Impl* aCopyActions;
+ const SotAction_Impl* aLinkActions;
};
@@ -93,7 +93,7 @@ struct SotDestinationEntry_Impl
*/
#define EXCHG_EMPYT_ARRAY \
-static SotAction_Impl __READONLY_DATA aEmptyArr[] = \
+static SotAction_Impl __READONLY_DATA aEmptyArr[] = \
{ \
{ 0xffff, 0, 0 } \
};
@@ -173,8 +173,8 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_DOC_TEXTFRAME_Def[] = \
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_SONLK, EXCHG_IN_ACTION_COPY, 0 }, \
- { SOT_FORMATSTR_ID_INET_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
+ { SOT_FORMATSTR_ID_INET_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_FILE_LIST, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_FILE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_SOLK, EXCHG_IN_ACTION_COPY, 0 }, \
@@ -203,7 +203,7 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_DOC_TEXTFRAME_Move[] = \
{ SOT_FORMATSTR_ID_HTML_NO_COMMENT, EXCHG_OUT_ACTION_INSERT_HTML| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_OUT_ACTION_INSERT_HTML| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_RTF, EXCHG_IN_ACTION_COPY| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_OUT_ACTION_INSERT_STRING| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_GDIMETAFILE, EXCHG_OUT_ACTION_INSERT_GDIMETAFILE| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_BITMAP, EXCHG_OUT_ACTION_INSERT_BITMAP| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
@@ -232,7 +232,7 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_DOC_TEXTFRAME_Copy[] = \
{ SOT_FORMATSTR_ID_HTML_NO_COMMENT, EXCHG_OUT_ACTION_INSERT_HTML| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_OUT_ACTION_INSERT_HTML| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_RTF, EXCHG_IN_ACTION_COPY| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_OUT_ACTION_INSERT_STRING| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK, EXCHG_OUT_ACTION_INSERT_HYPERLINK | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR, EXCHG_OUT_ACTION_INSERT_HYPERLINK | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, FILEGRPDSC_ONLY_URL },\
@@ -275,8 +275,8 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_DOC_TEXTFRAME_WEB_Def[] =
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_SONLK, EXCHG_IN_ACTION_COPY, 0 }, \
- { SOT_FORMATSTR_ID_INET_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
+ { SOT_FORMATSTR_ID_INET_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_FILE_LIST, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_FILE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_SOLK, EXCHG_IN_ACTION_COPY, 0 }, \
@@ -296,7 +296,7 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_DOC_TEXTFRAME_WEB_Move[] =
{ SOT_FORMATSTR_ID_HTML_NO_COMMENT, EXCHG_OUT_ACTION_INSERT_HTML| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_OUT_ACTION_INSERT_HTML| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_RTF, EXCHG_IN_ACTION_COPY| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_OUT_ACTION_INSERT_STRING| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_GDIMETAFILE, EXCHG_OUT_ACTION_INSERT_GDIMETAFILE| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_BITMAP, EXCHG_OUT_ACTION_INSERT_BITMAP| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
@@ -319,7 +319,7 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_DOC_TEXTFRAME_WEB_Copy[] =
{ SOT_FORMATSTR_ID_HTML_NO_COMMENT, EXCHG_OUT_ACTION_INSERT_HTML| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_OUT_ACTION_INSERT_HTML| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_RTF, EXCHG_IN_ACTION_COPY| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_OUT_ACTION_INSERT_STRING| EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK, EXCHG_OUT_ACTION_INSERT_HYPERLINK | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR, EXCHG_OUT_ACTION_INSERT_HYPERLINK | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, FILEGRPDSC_ONLY_URL },\
@@ -793,7 +793,7 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_SWDOC_FREE_AREA_Def[] = \
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_RTF, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_SVIM, EXCHG_IN_ACTION_COPY, 0 }, \
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR, EXCHG_IN_ACTION_COPY, FILEGRPDSC_ONLY_URL }, \
@@ -854,7 +854,7 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_SWDOC_FREE_AREA_Copy[] = \
{ SOT_FORMATSTR_ID_HTML_NO_COMMENT, EXCHG_OUT_ACTION_INSERT_HTML | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_OUT_ACTION_INSERT_HTML | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_RTF, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_OUT_ACTION_INSERT_STRING | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
{ SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK, EXCHG_OUT_ACTION_INSERT_HYPERLINK | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR, EXCHG_OUT_ACTION_INSERT_HYPERLINK | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, FILEGRPDSC_ONLY_URL },\
@@ -898,7 +898,7 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_SWDOC_FREE_AREA_WEB_Def[] =
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_RTF, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_SVIM, EXCHG_IN_ACTION_COPY, 0 }, \
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK, EXCHG_IN_ACTION_COPY, 0 }, \
{ SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR, EXCHG_IN_ACTION_COPY, FILEGRPDSC_ONLY_URL }, \
@@ -938,7 +938,7 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_SWDOC_FREE_AREA_WEB_Copy[] =
{ SOT_FORMATSTR_ID_HTML_NO_COMMENT, EXCHG_OUT_ACTION_INSERT_HTML | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_HTML_SIMPLE, EXCHG_OUT_ACTION_INSERT_HTML | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMAT_RTF, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
- { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
+ { SOT_FORMATSTR_ID_NETSCAPE_IMAGE, EXCHG_IN_ACTION_COPY | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
{ SOT_FORMAT_STRING, EXCHG_OUT_ACTION_INSERT_STRING | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 }, \
{ SOT_FORMATSTR_ID_NETSCAPE_BOOKMARK, EXCHG_OUT_ACTION_INSERT_HYPERLINK | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, 0 },\
{ SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR, EXCHG_OUT_ACTION_INSERT_HYPERLINK | EXCHG_OUT_ACTION_FLAG_INSERT_IMAGEMAP | EXCHG_OUT_ACTION_FLAG_INSERT_TARGETURL, FILEGRPDSC_ONLY_URL },\
@@ -1145,16 +1145,16 @@ static SotAction_Impl __READONLY_DATA aEXCHG_DEST_SDDOC_FREE_AREA_Link[] = \
/* */
-#define IMPL_DATA_ARRAY_1 \
+#define IMPL_DATA_ARRAY_1 \
EXCHG_EMPYT_ARRAY \
EXCHG_DEST_DOC_OLEOBJ_ARRAY \
EXCHG_DEST_CHARTDOC_OLEOBJ_ARRAY \
EXCHG_DEST_DOC_TEXTFRAME_ARRAY \
EXCHG_DEST_DOC_GRAPHOBJ_ARRAY \
-EXCHG_DEST_DOC_LNKD_GRAPHOBJ_ARRAY \
+EXCHG_DEST_DOC_LNKD_GRAPHOBJ_ARRAY \
EXCHG_DEST_DOC_TEXTFRAME_WEB_ARRAY
-#define IMPL_DATA_ARRAY_2 \
+#define IMPL_DATA_ARRAY_2 \
EXCHG_DEST_DOC_GRAPH_W_IMAP_ARRAY \
EXCHG_DEST_DOC_LNKD_GRAPH_W_IMAP_ARRAY \
EXCHG_DEST_DOC_IMAPREGION_ARRAY \
@@ -1165,9 +1165,9 @@ EXCHG_DEST_DOC_GROUPOBJ_ARRAY \
EXCHG_DEST_SWDOC_FREE_AREA_ARRAY \
EXCHG_DEST_SCDOC_FREE_AREA_ARRAY \
EXCHG_DEST_SDDOC_FREE_AREA_ARRAY \
-EXCHG_DEST_SWDOC_FREE_AREA_WEB_ARRAY \
+EXCHG_DEST_SWDOC_FREE_AREA_WEB_ARRAY \
-#define IMPL_DATA_ARRAY_3 \
+#define IMPL_DATA_ARRAY_3 \
static SotDestinationEntry_Impl __READONLY_DATA aDestinationArray[] = \
{ \
{ EXCHG_DEST_DOC_OLEOBJ, \
@@ -1260,18 +1260,18 @@ static SotDestinationEntry_Impl __READONLY_DATA aDestinationArray[] = \
aEXCHG_DEST_SDDOC_FREE_AREA_Copy, \
aEXCHG_DEST_SDDOC_FREE_AREA_Link \
}, \
- { EXCHG_DEST_DOC_TEXTFRAME_WEB, \
+ { EXCHG_DEST_DOC_TEXTFRAME_WEB, \
aEXCHG_DEST_DOC_TEXTFRAME_WEB_Def, \
aEXCHG_DEST_DOC_TEXTFRAME_WEB_Move, \
aEXCHG_DEST_DOC_TEXTFRAME_WEB_Copy, \
- aEXCHG_DEST_DOC_TEXTFRAME_WEB_Link \
- }, \
- { EXCHG_DEST_SWDOC_FREE_AREA_WEB, \
- aEXCHG_DEST_SWDOC_FREE_AREA_WEB_Def, \
+ aEXCHG_DEST_DOC_TEXTFRAME_WEB_Link \
+ }, \
+ { EXCHG_DEST_SWDOC_FREE_AREA_WEB, \
+ aEXCHG_DEST_SWDOC_FREE_AREA_WEB_Def, \
aEXCHG_DEST_SWDOC_FREE_AREA_WEB_Move, \
aEXCHG_DEST_SWDOC_FREE_AREA_WEB_Copy, \
aEXCHG_DEST_SWDOC_FREE_AREA_WEB_Link \
- }, \
+ }, \
{ \
0xffff, 0, 0, 0, 0 \
} \
@@ -1286,9 +1286,9 @@ static SotDestinationEntry_Impl __READONLY_DATA aDestinationArray[] = \
sal_Bool IsFormatSupported( const DataFlavorExVector& rDataFlavorExVector, ULONG nId )
{
- DataFlavorExVector::iterator aIter( ( (DataFlavorExVector&) rDataFlavorExVector ).begin() );
- DataFlavorExVector::iterator aEnd( ( (DataFlavorExVector&) rDataFlavorExVector ).end() );
- sal_Bool bRet = sal_False;
+ DataFlavorExVector::iterator aIter( ( (DataFlavorExVector&) rDataFlavorExVector ).begin() );
+ DataFlavorExVector::iterator aEnd( ( (DataFlavorExVector&) rDataFlavorExVector ).end() );
+ sal_Bool bRet = sal_False;
while( aIter != aEnd )
{
@@ -1310,8 +1310,8 @@ rEntry
#endif
)
{
- DataFlavor aFlavor;
- BOOL bRet = TRUE;
+ DataFlavor aFlavor;
+ BOOL bRet = TRUE;
try
{
@@ -1326,7 +1326,7 @@ rEntry
{
bRet = FALSE;
- if( SotExchange::GetFormatDataFlavor( SOT_FORMATSTR_ID_FILECONTENT, aFlavor ) &&
+ if( SotExchange::GetFormatDataFlavor( SOT_FORMATSTR_ID_FILECONTENT, aFlavor ) &&
(*pxTransferable)->isDataFlavorSupported( aFlavor ) &&
SotExchange::GetFormatDataFlavor( rEntry.nFormatId, aFlavor ) &&
(*pxTransferable)->isDataFlavorSupported( aFlavor ) )
@@ -1379,9 +1379,9 @@ static USHORT GetTransferableAction_Impl(
{
if( rDataFlavorExVector.size() )
{
- DataFlavor aFlavor;
- const SotAction_Impl* pArrayStart = pArray;
- ULONG nId = pArray->nFormatId;
+ DataFlavor aFlavor;
+ const SotAction_Impl* pArrayStart = pArray;
+ ULONG nId = pArray->nFormatId;
#if OSL_DEBUG_LEVEL > 1
// used for testing a specific format - change in the debugger the value
@@ -1405,7 +1405,7 @@ static USHORT GetTransferableAction_Impl(
{
if( pxTransferable && (*pxTransferable).is() && ( SOT_FORMAT_FILE_LIST == rFormat ) )
{
- if( IsFormatSupported( rDataFlavorExVector, SOT_FORMAT_FILE ) )
+ if( IsFormatSupported( rDataFlavorExVector, SOT_FORMAT_FILE ) )
{
DataFlavor aFileListFlavor;
SotExchange::GetFormatDataFlavor( SOT_FORMAT_FILE_LIST, aFileListFlavor );
@@ -1413,9 +1413,9 @@ static USHORT GetTransferableAction_Impl(
if( aAny.hasValue() )
{
- Sequence< sal_Int8 > aSeq; aAny >>= aSeq;
- SvMemoryStream aMemStm( (void*) aSeq.getConstArray(), aSeq.getLength(), STREAM_READ );
- FileList aFileList;
+ Sequence< sal_Int8 > aSeq; aAny >>= aSeq;
+ SvMemoryStream aMemStm( (void*) aSeq.getConstArray(), aSeq.getLength(), STREAM_READ );
+ FileList aFileList;
aMemStm >> aFileList;
@@ -1514,7 +1514,7 @@ USHORT SotExchange::GetExchangeAction( const DataFlavorExVector& rDataFlavorExVe
rFormat, nOnlyTestFormat, pxTransferable );
if ( nUserAction )
return nUserAction;
- }
+ }
rDefaultAction = (EXCHG_IN_ACTION_LINK & nSourceOptions);
if( rDefaultAction )
{
@@ -1585,8 +1585,8 @@ USHORT SotExchange::GetExchangeAction(
for( sal_Int32 i = 0; i < aFlavors.getLength(); i++ )
{
- DataFlavorEx aFlavorEx;
- const DataFlavor& rFlavor = aFlavors[ i ];
+ DataFlavorEx aFlavorEx;
+ const DataFlavor& rFlavor = aFlavors[ i ];
aFlavorEx.MimeType = rFlavor.MimeType;
aFlavorEx.HumanPresentableName = rFlavor.HumanPresentableName;
@@ -1629,9 +1629,9 @@ USHORT SotExchange::GetExchangeAction(
USHORT SotExchange::IsChart( const SvGlobalName& rName )
{
USHORT nRet=0;
-// if ( rName == SvGlobalName( SO3_SCH_CLASSID_8 ) )
-// nRet = SOFFICE_FILEFORMAT_8;
-// else
+// if ( rName == SvGlobalName( SO3_SCH_CLASSID_8 ) )
+// nRet = SOFFICE_FILEFORMAT_8;
+// else
if ( rName == SvGlobalName( SO3_SCH_CLASSID_60 ) )
nRet = SOFFICE_FILEFORMAT_60;
else if ( rName == SvGlobalName( SO3_SCH_CLASSID_50 ) )
@@ -1647,9 +1647,9 @@ USHORT SotExchange::IsChart( const SvGlobalName& rName )
USHORT SotExchange::IsMath( const SvGlobalName& rName )
{
USHORT nRet=0;
-// if ( rName == SvGlobalName( SO3_SM_CLASSID_8 ) )
-// nRet = SOFFICE_FILEFORMAT_8;
-// else
+// if ( rName == SvGlobalName( SO3_SM_CLASSID_8 ) )
+// nRet = SOFFICE_FILEFORMAT_8;
+// else
if ( rName == SvGlobalName( SO3_SM_CLASSID_60 ) )
nRet = SOFFICE_FILEFORMAT_60;
else if ( rName == SvGlobalName( SO3_SM_CLASSID_50 ) )
diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx
index b193dc33d4b9..49a8b37f9f0b 100644
--- a/sot/source/base/object.cxx
+++ b/sot/source/base/object.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ SO2_IMPL_INVARIANT(SotObject)
/*************************************************************************
|* SotObject::TestMemberObjRef()
|*
-|* Beschreibung:
+|* Beschreibung:
*************************************************************************/
void SotObject::TestMemberObjRef( BOOL /*bFree*/ )
{
@@ -71,7 +71,7 @@ void SotObject::TestMemberObjRef( BOOL /*bFree*/ )
/*************************************************************************
|* SotObject::TestMemberObjRef()
|*
-|* Beschreibung:
+|* Beschreibung:
*************************************************************************/
#ifdef TEST_INVARIANT
void SotObject::TestMemberInvariant( BOOL /*bPrint*/ )
@@ -90,7 +90,7 @@ SotObject::SotObject()
, nOwnerLockCount( 0 )
, bOwner ( TRUE )
, bSVObject ( FALSE )
- , bInClose ( FALSE )
+ , bInClose ( FALSE )
{
SotFactory::IncSvObjectCount( this );
}
@@ -132,12 +132,12 @@ BOOL SotObject::IsSvObject() const
/*************************************************************************
|* SotObject::QueryDelete()
|*
-|* Beschreibung: Bei allen aggregierten Objekte muss der RefCount auf
-|* 0 gehen, damit das Gesammt-Objekt zerstoert wird. Das
-|* zerst�ren von Teilen ist verboten. Da der Aggregator
-|* (oder Cast-Verwalter) den Zaehler der aggregierten
-|* Objekte um 1 erhoeht, muss dies bei der Berechnung
-|* des 0-RefCounts beruecksichtigt werden.
+|* Beschreibung: Bei allen aggregierten Objekte muss der RefCount auf
+|* 0 gehen, damit das Gesammt-Objekt zerstoert wird. Das
+|* zerst�ren von Teilen ist verboten. Da der Aggregator
+|* (oder Cast-Verwalter) den Zaehler der aggregierten
+|* Objekte um 1 erhoeht, muss dies bei der Berechnung
+|* des 0-RefCounts beruecksichtigt werden.
*************************************************************************/
BOOL SotObject::ShouldDelete()
{
@@ -385,21 +385,21 @@ SotObject * SotObject::GetMainObj() const
//=========================================================================
USHORT SotObject::FuzzyLock
(
- BOOL bLock, /* TRUE, lock. FALSE, unlock. */
- BOOL /*bIntern*/, /* TRUE, es handelt sich um einen internen Lock.
+ BOOL bLock, /* TRUE, lock. FALSE, unlock. */
+ BOOL /*bIntern*/, /* TRUE, es handelt sich um einen internen Lock.
FALSE, der Lock kam von aussen (Ole2, Ipc2) */
- BOOL bClose /* TRUE, Close aufrufen wenn letzte Lock */
+ BOOL bClose /* TRUE, Close aufrufen wenn letzte Lock */
)
-/* [Beschreibung]
+/* [Beschreibung]
Erlaubte Parameterkombinationen:
- ( TRUE, TRUE, * ) -> interner Lock.
- ( FALSE, TRUE, TRUE ) -> interner Unlock mit Close,
+ ( TRUE, TRUE, * ) -> interner Lock.
+ ( FALSE, TRUE, TRUE ) -> interner Unlock mit Close,
wenn LockCount() == 0
- ( TRUE, FALSE, * ) -> externer Lock.
- ( FALSE, FALSE, TRUE ) -> externer Unlock mit Close,
+ ( TRUE, FALSE, * ) -> externer Lock.
+ ( FALSE, FALSE, TRUE ) -> externer Unlock mit Close,
wenn LockCount() == 0
- ( FALSE, FALSE, FALSE ) -> externer Unlock
+ ( FALSE, FALSE, FALSE ) -> externer Unlock
F"ur !Owner() wird der Aufruf an das externe Objekt weitergeleitet.
F"ur diese muss das <IOleItemContainer>-Interface zur Vef"ugung stehen.
@@ -432,9 +432,9 @@ USHORT SotObject::FuzzyLock
//=========================================================================
void SotObject::OwnerLock
(
- BOOL bLock /* TRUE, lock. FALSE, unlock. */
+ BOOL bLock /* TRUE, lock. FALSE, unlock. */
)
-/* [Beschreibung]
+/* [Beschreibung]
Wenn der OwnerLock auf Null dekrementiert, dann wird die Methode
DoClose gerufen. Dies geschieht unabh"angig vom Lock. bzw. RefCount.
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx
index 2c4b8e977dad..f27e1366aca1 100644
--- a/sot/source/sdstor/stg.cxx
+++ b/sot/source/sdstor/stg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -437,7 +437,7 @@ Storage::Storage( UCBStorageStream& rStrm, BOOL bDirect )
pEntry = NULL;
return;
}
-
+
if( pStream->IsWritable() )
m_nMode = STREAM_READ | STREAM_WRITE;
diff --git a/sot/source/sdstor/stgavl.cxx b/sot/source/sdstor/stgavl.cxx
index 643c7893f15a..c8a8f297677b 100644
--- a/sot/source/sdstor/stgavl.cxx
+++ b/sot/source/sdstor/stgavl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -343,7 +343,7 @@ BOOL StgAvlNode::Remove( StgAvlNode** pRoot, StgAvlNode* pDel, BOOL bDel )
delete pDel;
// Rebalance the tree the hard way
// OS 22.09.95: Auf MD's Wunsch auskommentiert wg. Absturz
-/* StgAvlNode* pNew = NULL;
+/* StgAvlNode* pNew = NULL;
while( *pRoot )
{
StgAvlNode* p = Rem( pRoot, *pRoot, FALSE );
diff --git a/sot/source/sdstor/stgavl.hxx b/sot/source/sdstor/stgavl.hxx
index 0c2f75d3d2be..705a8c321caa 100644
--- a/sot/source/sdstor/stgavl.hxx
+++ b/sot/source/sdstor/stgavl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,9 +47,9 @@ private:
void StgEnum( short& );
static StgAvlNode* Rem( StgAvlNode**, StgAvlNode*, BOOL );
protected:
- short nId; // iterator ID
- short nBalance; // indicates tree balance
- StgAvlNode* pLeft, *pRight; // leaves
+ short nId; // iterator ID
+ short nBalance; // indicates tree balance
+ StgAvlNode* pLeft, *pRight; // leaves
StgAvlNode();
public:
virtual ~StgAvlNode();
@@ -63,9 +63,9 @@ public:
// The iterator class provides single stepping through an AVL tree.
class StgAvlIterator {
- StgAvlNode* pRoot; // root entry (parent)
- short nCount; // tree size
- short nCur; // current element
+ StgAvlNode* pRoot; // root entry (parent)
+ short nCount; // tree size
+ short nCur; // current element
StgAvlNode* Find( short );
public:
StgAvlIterator( StgAvlNode* );
diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx
index b3eca5aac8bf..b5a5ca0ebe5d 100644
--- a/sot/source/sdstor/stgcache.cxx
+++ b/sot/source/sdstor/stgcache.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,8 +61,8 @@ typedef std::hash_map
#pragma warning( disable: 4786 )
#endif
-//#define CHECK_DIRTY 1
-//#define READ_AFTER_WRITE 1
+//#define CHECK_DIRTY 1
+//#define READ_AFTER_WRITE 1
////////////////////////////// class StgPage /////////////////////////////
// This class implements buffer functionality. The cache will always return
diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx
index 38e8e3428331..b34fe4523667 100644
--- a/sot/source/sdstor/stgcache.hxx
+++ b/sot/source/sdstor/stgcache.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,40 +42,40 @@ class StgDirEntry;
class StorageBase;
class StgCache {
- StgPage* pCur; // top of LRU list
- StgPage* pElem1; // top of ordered list
- ULONG nError; // error code
- INT32 nPages; // size of data area in pages
- USHORT nRef; // reference count
- void * pLRUCache; // hash table of cached objects
- short nPageSize; // page size of the file
- UCBStorageStream* pStorageStream; // holds reference to UCB storage stream
-
- void Erase( StgPage* ); // delete a cache element
- void InsertToLRU( StgPage* ); // insert into LRU list
- void InsertToOrdered( StgPage* ); // insert into ordered list
- StgPage* Create( INT32 ); // create a cached page
+ StgPage* pCur; // top of LRU list
+ StgPage* pElem1; // top of ordered list
+ ULONG nError; // error code
+ INT32 nPages; // size of data area in pages
+ USHORT nRef; // reference count
+ void * pLRUCache; // hash table of cached objects
+ short nPageSize; // page size of the file
+ UCBStorageStream* pStorageStream; // holds reference to UCB storage stream
+
+ void Erase( StgPage* ); // delete a cache element
+ void InsertToLRU( StgPage* ); // insert into LRU list
+ void InsertToOrdered( StgPage* ); // insert into ordered list
+ StgPage* Create( INT32 ); // create a cached page
protected:
- SvStream* pStrm; // physical stream
- BOOL bMyStream; // TRUE: delete stream in dtor
- BOOL bFile; // TRUE: file stream
- INT32 Page2Pos( INT32 ); // page address --> file position
- INT32 Pos2Page( INT32 ); // file position --> page address
+ SvStream* pStrm; // physical stream
+ BOOL bMyStream; // TRUE: delete stream in dtor
+ BOOL bFile; // TRUE: file stream
+ INT32 Page2Pos( INT32 ); // page address --> file position
+ INT32 Pos2Page( INT32 ); // file position --> page address
public:
StgCache();
~StgCache();
- void IncRef() { nRef++; }
- USHORT DecRef() { return --nRef; }
+ void IncRef() { nRef++; }
+ USHORT DecRef() { return --nRef; }
void SetPhysPageSize( short );
- INT32 GetPhysPages() { return nPages; }
- short GetPhysPageSize() { return nPageSize; }
- SvStream* GetStrm() { return pStrm; }
+ INT32 GetPhysPages() { return nPages; }
+ short GetPhysPageSize() { return nPageSize; }
+ SvStream* GetStrm() { return pStrm; }
void SetStrm( SvStream*, BOOL );
void SetStrm( UCBStorageStream* );
- BOOL IsWritable() { return pStrm->IsWritable(); }
- BOOL Good() { return BOOL( nError == SVSTREAM_OK ); }
+ BOOL IsWritable() { return pStrm->IsWritable(); }
+ BOOL Good() { return BOOL( nError == SVSTREAM_OK ); }
BOOL Bad() { return BOOL( nError != SVSTREAM_OK ); }
- ULONG GetError() { return nError; }
+ ULONG GetError() { return nError; }
void MoveError( StorageBase& );
void SetError( ULONG );
void ResetError();
@@ -84,32 +84,32 @@ public:
BOOL Read( INT32 nPage, void* pBuf, INT32 nPages );
BOOL Write( INT32 nPage, void* pBuf, INT32 nPages );
BOOL SetSize( INT32 nPages );
- StgPage* Find( INT32 ); // find a cached page
- StgPage* Get( INT32, BOOL ); // get a cached page
- StgPage* Copy( INT32, INT32=STG_FREE ); // copy a page
- BOOL Commit( StgDirEntry* = NULL ); // flush all pages
- void Revert( StgDirEntry* = NULL ); // revert dirty pages
- void Clear(); // clear the cache
+ StgPage* Find( INT32 ); // find a cached page
+ StgPage* Get( INT32, BOOL ); // get a cached page
+ StgPage* Copy( INT32, INT32=STG_FREE ); // copy a page
+ BOOL Commit( StgDirEntry* = NULL ); // flush all pages
+ void Revert( StgDirEntry* = NULL ); // revert dirty pages
+ void Clear(); // clear the cache
};
class StgPage {
friend class StgCache;
- StgCache* pCache; // the cache
- StgPage *pNext1, *pLast1; // LRU chain
- StgPage *pNext2, *pLast2; // ordered chain
- StgDirEntry* pOwner; // owner
- INT32 nPage; // page #
- BYTE* pData; // nPageSize characters
- short nData; // size of this page
- BOOL bDirty; // dirty flag
+ StgCache* pCache; // the cache
+ StgPage *pNext1, *pLast1; // LRU chain
+ StgPage *pNext2, *pLast2; // ordered chain
+ StgDirEntry* pOwner; // owner
+ INT32 nPage; // page #
+ BYTE* pData; // nPageSize characters
+ short nData; // size of this page
+ BOOL bDirty; // dirty flag
StgPage( StgCache*, short );
~StgPage();
public:
- void SetDirty() { bDirty = TRUE; }
- INT32 GetPage() { return nPage; }
- void* GetData() { return pData; }
- short GetSize() { return nData; }
- void SetOwner( StgDirEntry* p ) { pOwner = p; }
+ void SetDirty() { bDirty = TRUE; }
+ INT32 GetPage() { return nPage; }
+ void* GetData() { return pData; }
+ short GetSize() { return nData; }
+ void SetOwner( StgDirEntry* p ) { pOwner = p; }
// routines for accessing FAT pages
// Assume that the data is a FAT page and get/put FAT data.
INT32 GetPage( short nOff )
@@ -123,7 +123,7 @@ public:
return n;
#endif
}
- void SetPage( short, INT32 ); // put an element
+ void SetPage( short, INT32 ); // put an element
};
#endif
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index 21711c67b71a..0e618550b6bb 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,24 +71,24 @@ StgDirEntry::StgDirEntry( const StgEntry& r ) : StgAvlNode(), aEntry( r )
void StgDirEntry::InitMembers()
{
- aSave = aEntry;
- pUp =
- pDown = NULL;
- ppRoot = NULL;
- pStgStrm = NULL;
- pCurStrm =
- pTmpStrm = NULL;
- nPos =
- nEntry =
- nRefCnt = 0;
- nMode = STREAM_READ;
- bDirect = TRUE;
- bInvalid =
- bCreated =
- bRenamed =
- bRemoved =
- bTemp =
- bDirty =
+ aSave = aEntry;
+ pUp =
+ pDown = NULL;
+ ppRoot = NULL;
+ pStgStrm = NULL;
+ pCurStrm =
+ pTmpStrm = NULL;
+ nPos =
+ nEntry =
+ nRefCnt = 0;
+ nMode = STREAM_READ;
+ bDirect = TRUE;
+ bInvalid =
+ bCreated =
+ bRenamed =
+ bRemoved =
+ bTemp =
+ bDirty =
bZombie = FALSE;
}
@@ -272,7 +272,7 @@ void StgDirEntry::OpenStream( StgIo& rIo, BOOL bForceBig )
{
// This entry has invalid data, so delete that data
SetSize( 0L );
-// bRemoved = bInvalid = FALSE;
+// bRemoved = bInvalid = FALSE;
}
nPos = 0;
}
@@ -286,7 +286,7 @@ void StgDirEntry::Close()
{
delete pTmpStrm;
pTmpStrm = NULL;
-// nRefCnt = 0;
+// nRefCnt = 0;
bInvalid = bTemp;
}
@@ -626,7 +626,7 @@ BOOL StgDirEntry::Strm2Tmp()
pTmpStrm = new StgTmpStrm;
if( pTmpStrm->GetError() == SVSTREAM_OK && pTmpStrm->Copy( *pCurStrm ) )
return TRUE;
- n = 1; // indicates error
+ n = 1; // indicates error
}
else
{
@@ -751,7 +751,7 @@ BOOL StgDirEntry::IsContained( StgDirEntry* pStg )
void StgDirEntry::Invalidate( BOOL bDel )
{
-// nRefCnt = 0;
+// nRefCnt = 0;
if( bDel )
bRemoved = bInvalid = TRUE;
switch( aEntry.GetType() )
@@ -827,7 +827,7 @@ void StgDirStrm::SetupEntry( INT32 n, StgDirEntry* pUpper )
// better it is
if( !pUpper )
pCur->aEntry.SetType( STG_ROOT );
-
+
INT32 nLeft = pCur->aEntry.GetLeaf( STG_LEFT );
INT32 nRight = pCur->aEntry.GetLeaf( STG_RIGHT );
// substorage?
diff --git a/sot/source/sdstor/stgdir.hxx b/sot/source/sdstor/stgdir.hxx
index d0ed802be683..d3b76084a4f4 100644
--- a/sot/source/sdstor/stgdir.hxx
+++ b/sot/source/sdstor/stgdir.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,43 +43,43 @@ class StgDirEntry : public StgAvlNode
{
friend class StgIterator;
friend class StgDirStrm;
- StgEntry aSave; // original dir entry
- StgDirEntry* pUp; // parent directory
- StgDirEntry* pDown; // child directory for storages
- StgDirEntry** ppRoot; // root of TOC tree
- StgStrm* pStgStrm; // storage stream
- StgTmpStrm* pTmpStrm; // temporary stream
- StgTmpStrm* pCurStrm; // temp stream after commit
- INT32 nEntry; // entry # in TOC stream (temp)
- INT32 nPos; // current position
- BOOL bDirty; // dirty directory entry
- BOOL bCreated; // newly created entry
- BOOL bRemoved; // removed per Invalidate()
- BOOL bRenamed; // renamed
- void InitMembers(); // ctor helper
+ StgEntry aSave; // original dir entry
+ StgDirEntry* pUp; // parent directory
+ StgDirEntry* pDown; // child directory for storages
+ StgDirEntry** ppRoot; // root of TOC tree
+ StgStrm* pStgStrm; // storage stream
+ StgTmpStrm* pTmpStrm; // temporary stream
+ StgTmpStrm* pCurStrm; // temp stream after commit
+ INT32 nEntry; // entry # in TOC stream (temp)
+ INT32 nPos; // current position
+ BOOL bDirty; // dirty directory entry
+ BOOL bCreated; // newly created entry
+ BOOL bRemoved; // removed per Invalidate()
+ BOOL bRenamed; // renamed
+ void InitMembers(); // ctor helper
virtual short Compare( const StgAvlNode* ) const;
- BOOL StoreStream( StgIo& ); // store the stream
- BOOL StoreStreams( StgIo& ); // store all streams
- void RevertAll(); // revert the whole tree
- BOOL Strm2Tmp(); // copy stgstream to temp file
- BOOL Tmp2Strm(); // copy temp file to stgstream
+ BOOL StoreStream( StgIo& ); // store the stream
+ BOOL StoreStreams( StgIo& ); // store all streams
+ void RevertAll(); // revert the whole tree
+ BOOL Strm2Tmp(); // copy stgstream to temp file
+ BOOL Tmp2Strm(); // copy temp file to stgstream
public:
- StgEntry aEntry; // entry data
- INT32 nRefCnt; // reference count
- StreamMode nMode; // open mode
- BOOL bTemp; // TRUE: delete on dir flush
- BOOL bDirect; // TRUE: direct mode
+ StgEntry aEntry; // entry data
+ INT32 nRefCnt; // reference count
+ StreamMode nMode; // open mode
+ BOOL bTemp; // TRUE: delete on dir flush
+ BOOL bDirect; // TRUE: direct mode
BOOL bZombie; // TRUE: Removed From StgIo
- BOOL bInvalid; // TRUE: invalid entry
+ BOOL bInvalid; // TRUE: invalid entry
StgDirEntry( const void*, BOOL * pbOk );
StgDirEntry( const StgEntry& );
~StgDirEntry();
- void Invalidate( BOOL=FALSE ); // invalidate all open entries
- void Enum( INT32& ); // enumerate entries for iteration
- void DelTemp( BOOL ); // delete temporary entries
- BOOL Store( StgDirStrm& ); // save entry into dir strm
- BOOL IsContained( StgDirEntry* ); // check if subentry
+ void Invalidate( BOOL=FALSE ); // invalidate all open entries
+ void Enum( INT32& ); // enumerate entries for iteration
+ void DelTemp( BOOL ); // delete temporary entries
+ BOOL Store( StgDirStrm& ); // save entry into dir strm
+ BOOL IsContained( StgDirEntry* ); // check if subentry
void SetDirty() { bDirty = TRUE; }
BOOL IsDirty();
@@ -88,7 +88,7 @@ public:
BOOL Commit();
BOOL Revert();
- void OpenStream( StgIo&, BOOL=FALSE ); // set up an approbiate stream
+ void OpenStream( StgIo&, BOOL=FALSE ); // set up an approbiate stream
void Close();
INT32 GetSize();
BOOL SetSize( INT32 );
@@ -103,15 +103,15 @@ public:
class StgDirStrm : public StgDataStrm
{
friend class StgIterator;
- StgDirEntry* pRoot; // root of dir tree
- short nEntries; // entries per page
- void SetupEntry( INT32, StgDirEntry* );
+ StgDirEntry* pRoot; // root of dir tree
+ short nEntries; // entries per page
+ void SetupEntry( INT32, StgDirEntry* );
public:
StgDirStrm( StgIo& );
~StgDirStrm();
- virtual BOOL SetSize( INT32 ); // change the size
- BOOL Store();
- void* GetEntry( INT32 n, BOOL=FALSE );// get an entry
+ virtual BOOL SetSize( INT32 ); // change the size
+ BOOL Store();
+ void* GetEntry( INT32 n, BOOL=FALSE );// get an entry
StgDirEntry* GetRoot() { return pRoot; }
StgDirEntry* Find( StgDirEntry&, const String& );
StgDirEntry* Create( StgDirEntry&, const String&, StgEntryType );
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx
index df373898e219..014d87b54235 100644
--- a/sot/source/sdstor/stgelem.cxx
+++ b/sot/source/sdstor/stgelem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -111,20 +111,20 @@ BOOL StgHeader::Load( SvStream& r )
{
r.Seek( 0L );
r.Read( cSignature, 8 );
- r >> aClsId // 08 Class ID
- >> nVersion // 1A version number
- >> nByteOrder // 1C Unicode byte order indicator
- >> nPageSize // 1E 1 << nPageSize = block size
- >> nDataPageSize; // 20 1 << this size == data block size
+ r >> aClsId // 08 Class ID
+ >> nVersion // 1A version number
+ >> nByteOrder // 1C Unicode byte order indicator
+ >> nPageSize // 1E 1 << nPageSize = block size
+ >> nDataPageSize; // 20 1 << this size == data block size
r.SeekRel( 10 );
- r >> nFATSize // 2C total number of FAT pages
- >> nTOCstrm // 30 starting page for the TOC stream
- >> nReserved // 34
- >> nThreshold // 38 minimum file size for big data
- >> nDataFAT // 3C page # of 1st data FAT block
- >> nDataFATSize // 40 # of data FATpages
- >> nMasterChain // 44 chain to the next master block
- >> nMaster; // 48 # of additional master blocks
+ r >> nFATSize // 2C total number of FAT pages
+ >> nTOCstrm // 30 starting page for the TOC stream
+ >> nReserved // 34
+ >> nThreshold // 38 minimum file size for big data
+ >> nDataFAT // 3C page # of 1st data FAT block
+ >> nDataFATSize // 40 # of data FATpages
+ >> nMasterChain // 44 chain to the next master block
+ >> nMaster; // 48 # of additional master blocks
for( short i = 0; i < 109; i++ )
r >> nMasterFAT[ i ];
return r.GetErrorCode() == ERRCODE_NONE;
@@ -137,19 +137,19 @@ BOOL StgHeader::Store( StgIo& rIo )
SvStream& r = *rIo.GetStrm();
r.Seek( 0L );
r.Write( cSignature, 8 + 16 );
- r << nVersion // 1A version number
- << nByteOrder // 1C Unicode byte order indicator
- << nPageSize // 1E 1 << nPageSize = block size
- << nDataPageSize // 20 1 << this size == data block size
+ r << nVersion // 1A version number
+ << nByteOrder // 1C Unicode byte order indicator
+ << nPageSize // 1E 1 << nPageSize = block size
+ << nDataPageSize // 20 1 << this size == data block size
<< (INT32) 0 << (INT32) 0 << (INT16) 0
- << nFATSize // 2C total number of FAT pages
- << nTOCstrm // 30 starting page for the TOC stream
- << nReserved // 34
- << nThreshold // 38 minimum file size for big data
- << nDataFAT // 3C page # of 1st data FAT block
- << nDataFATSize // 40 # of data FAT pages
- << nMasterChain // 44 chain to the next master block
- << nMaster; // 48 # of additional master blocks
+ << nFATSize // 2C total number of FAT pages
+ << nTOCstrm // 30 starting page for the TOC stream
+ << nReserved // 34
+ << nThreshold // 38 minimum file size for big data
+ << nDataFAT // 3C page # of 1st data FAT block
+ << nDataFATSize // 40 # of data FAT pages
+ << nMasterChain // 44 chain to the next master block
+ << nMaster; // 48 # of additional master blocks
for( short i = 0; i < 109; i++ )
r << nMasterFAT[ i ];
bDirty = !rIo.Good();
@@ -284,7 +284,7 @@ BOOL StgEntry::SetName( const String& rName )
// I don't know the locale, so en_US is hopefully fine
aName = ToUpperUnicode( rName );
aName.Erase( 31 );
-
+
int i;
for( i = 0; i < aName.Len() && i < 32; i++ )
nName[ i ] = rName.GetChar( sal_uInt16( i ));
@@ -354,7 +354,7 @@ short StgEntry::Compare( const StgEntry& r ) const
else return nRes;
*/
sal_Int32 nRes = r.nNameLen - nNameLen;
- if( !nRes )
+ if( !nRes )
nRes = r.aName.CompareTo( aName );
return (short)nRes;
//return aName.CompareTo( r.aName );
@@ -367,22 +367,22 @@ BOOL StgEntry::Load( const void* pFrom )
{
SvMemoryStream r( (sal_Char*) pFrom, 128, STREAM_READ );
for( short i = 0; i < 32; i++ )
- r >> nName[ i ]; // 00 name as WCHAR
- r >> nNameLen // 40 size of name in bytes including 00H
- >> cType // 42 entry type
- >> cFlags // 43 0 or 1 (tree balance?)
- >> nLeft // 44 left node entry
- >> nRight // 48 right node entry
- >> nChild // 4C 1st child entry if storage
- >> aClsId // 50 class ID (optional)
- >> nFlags // 60 state flags(?)
- >> nMtime[ 0 ] // 64 modification time
- >> nMtime[ 1 ] // 64 modification time
- >> nAtime[ 0 ] // 6C creation and access time
- >> nAtime[ 1 ] // 6C creation and access time
- >> nPage1 // 74 starting block (either direct or translated)
- >> nSize // 78 file size
- >> nUnknown; // 7C unknown
+ r >> nName[ i ]; // 00 name as WCHAR
+ r >> nNameLen // 40 size of name in bytes including 00H
+ >> cType // 42 entry type
+ >> cFlags // 43 0 or 1 (tree balance?)
+ >> nLeft // 44 left node entry
+ >> nRight // 48 right node entry
+ >> nChild // 4C 1st child entry if storage
+ >> aClsId // 50 class ID (optional)
+ >> nFlags // 60 state flags(?)
+ >> nMtime[ 0 ] // 64 modification time
+ >> nMtime[ 1 ] // 64 modification time
+ >> nAtime[ 0 ] // 6C creation and access time
+ >> nAtime[ 1 ] // 6C creation and access time
+ >> nPage1 // 74 starting block (either direct or translated)
+ >> nSize // 78 file size
+ >> nUnknown; // 7C unknown
UINT16 n = nNameLen;
if( n )
@@ -406,22 +406,22 @@ void StgEntry::Store( void* pTo )
{
SvMemoryStream r( (sal_Char *)pTo, 128, STREAM_WRITE );
for( short i = 0; i < 32; i++ )
- r << nName[ i ]; // 00 name as WCHAR
- r << nNameLen // 40 size of name in bytes including 00H
- << cType // 42 entry type
- << cFlags // 43 0 or 1 (tree balance?)
- << nLeft // 44 left node entry
- << nRight // 48 right node entry
- << nChild // 4C 1st child entry if storage;
- << aClsId // 50 class ID (optional)
- << nFlags // 60 state flags(?)
- << nMtime[ 0 ] // 64 modification time
- << nMtime[ 1 ] // 64 modification time
- << nAtime[ 0 ] // 6C creation and access time
- << nAtime[ 1 ] // 6C creation and access time
- << nPage1 // 74 starting block (either direct or translated)
- << nSize // 78 file size
- << nUnknown; // 7C unknown
+ r << nName[ i ]; // 00 name as WCHAR
+ r << nNameLen // 40 size of name in bytes including 00H
+ << cType // 42 entry type
+ << cFlags // 43 0 or 1 (tree balance?)
+ << nLeft // 44 left node entry
+ << nRight // 48 right node entry
+ << nChild // 4C 1st child entry if storage;
+ << aClsId // 50 class ID (optional)
+ << nFlags // 60 state flags(?)
+ << nMtime[ 0 ] // 64 modification time
+ << nMtime[ 1 ] // 64 modification time
+ << nAtime[ 0 ] // 6C creation and access time
+ << nAtime[ 1 ] // 6C creation and access time
+ << nPage1 // 74 starting block (either direct or translated)
+ << nSize // 78 file size
+ << nUnknown; // 7C unknown
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sot/source/sdstor/stgelem.hxx b/sot/source/sdstor/stgelem.hxx
index 314852e3dd06..e4cf177e3f51 100644
--- a/sot/source/sdstor/stgelem.hxx
+++ b/sot/source/sdstor/stgelem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,122 +45,122 @@ SvStream& operator<<( SvStream&, const ClsId& );
class StgHeader
{
- BYTE cSignature[ 8 ]; // 00 signature (see below)
- ClsId aClsId; // 08 Class ID
- INT32 nVersion; // 18 version number
- UINT16 nByteOrder; // 1C Unicode byte order indicator
- INT16 nPageSize; // 1E 1 << nPageSize = block size
- INT16 nDataPageSize; // 20 1 << this size == data block size
- BYTE bDirty; // 22 internal dirty flag
- BYTE cReserved[ 9 ]; // 23
- INT32 nFATSize; // 2C total number of FAT pages
- INT32 nTOCstrm; // 30 starting page for the TOC stream
- INT32 nReserved; // 34
- INT32 nThreshold; // 38 minimum file size for big data
- INT32 nDataFAT; // 3C page # of 1st data FAT block
- INT32 nDataFATSize; // 40 # of data fat blocks
- INT32 nMasterChain; // 44 chain to the next master block
- INT32 nMaster; // 48 # of additional master blocks
- INT32 nMasterFAT[ 109 ]; // 4C first 109 master FAT pages
+ BYTE cSignature[ 8 ]; // 00 signature (see below)
+ ClsId aClsId; // 08 Class ID
+ INT32 nVersion; // 18 version number
+ UINT16 nByteOrder; // 1C Unicode byte order indicator
+ INT16 nPageSize; // 1E 1 << nPageSize = block size
+ INT16 nDataPageSize; // 20 1 << this size == data block size
+ BYTE bDirty; // 22 internal dirty flag
+ BYTE cReserved[ 9 ]; // 23
+ INT32 nFATSize; // 2C total number of FAT pages
+ INT32 nTOCstrm; // 30 starting page for the TOC stream
+ INT32 nReserved; // 34
+ INT32 nThreshold; // 38 minimum file size for big data
+ INT32 nDataFAT; // 3C page # of 1st data FAT block
+ INT32 nDataFATSize; // 40 # of data fat blocks
+ INT32 nMasterChain; // 44 chain to the next master block
+ INT32 nMaster; // 48 # of additional master blocks
+ INT32 nMasterFAT[ 109 ]; // 4C first 109 master FAT pages
public:
StgHeader();
- void Init(); // initialize the header
+ void Init(); // initialize the header
BOOL Load( StgIo& );
BOOL Load( SvStream& );
BOOL Store( StgIo& );
- BOOL Check(); // check the signature and version
- short GetByteOrder() const { return nByteOrder; }
- INT32 GetTOCStart() const { return nTOCstrm; }
+ BOOL Check(); // check the signature and version
+ short GetByteOrder() const { return nByteOrder; }
+ INT32 GetTOCStart() const { return nTOCstrm; }
void SetTOCStart( INT32 n );
- INT32 GetDataFATStart() const { return nDataFAT; }
+ INT32 GetDataFATStart() const { return nDataFAT; }
void SetDataFATStart( INT32 n );
- INT32 GetDataFATSize() const { return nDataFATSize; }
+ INT32 GetDataFATSize() const { return nDataFATSize; }
void SetDataFATSize( INT32 n );
- INT32 GetThreshold() const { return nThreshold; }
- short GetPageSize() const { return nPageSize; }
- short GetDataPageSize() const { return nDataPageSize; }
- INT32 GetFATSize() const { return nFATSize; }
+ INT32 GetThreshold() const { return nThreshold; }
+ short GetPageSize() const { return nPageSize; }
+ short GetDataPageSize() const { return nDataPageSize; }
+ INT32 GetFATSize() const { return nFATSize; }
void SetFATSize( INT32 n );
- INT32 GetFATChain() const { return nMasterChain; }
+ INT32 GetFATChain() const { return nMasterChain; }
void SetFATChain( INT32 n );
- INT32 GetMasters() const { return nMaster; }
+ INT32 GetMasters() const { return nMaster; }
void SetMasters( INT32 n );
- short GetFAT1Size() const { return 109; }
- const ClsId& GetClassId() const { return aClsId; }
+ short GetFAT1Size() const { return 109; }
+ const ClsId& GetClassId() const { return aClsId; }
void SetClassId( const ClsId& );
INT32 GetFATPage( short ) const;
void SetFATPage( short, INT32 );
};
-enum StgEntryType { // dir entry types:
- STG_EMPTY = 0,
+enum StgEntryType { // dir entry types:
+ STG_EMPTY = 0,
STG_STORAGE = 1,
STG_STREAM = 2,
STG_LOCKBYTES = 3,
STG_PROPERTY = 4,
- STG_ROOT = 5
+ STG_ROOT = 5
};
-enum StgEntryRef { // reference blocks:
- STG_LEFT = 0, // left
- STG_RIGHT = 1, // right
- STG_CHILD = 2, // child
- STG_DATA = 3 // data start
+enum StgEntryRef { // reference blocks:
+ STG_LEFT = 0, // left
+ STG_RIGHT = 1, // right
+ STG_CHILD = 2, // child
+ STG_DATA = 3 // data start
};
-enum StgEntryTime { // time codes:
- STG_MODIFIED = 0, // last modification
- STG_ACCESSED = 1 // last access
+enum StgEntryTime { // time codes:
+ STG_MODIFIED = 0, // last modification
+ STG_ACCESSED = 1 // last access
};
class StgStream;
#define STGENTRY_SIZE 128
-class StgEntry { // directory enty
- UINT16 nName[ 32 ]; // 00 name as WCHAR
- INT16 nNameLen; // 40 size of name in bytes including 00H
- BYTE cType; // 42 entry type
- BYTE cFlags; // 43 0 or 1 (tree balance?)
- INT32 nLeft; // 44 left node entry
- INT32 nRight; // 48 right node entry
- INT32 nChild; // 4C 1st child entry if storage
- ClsId aClsId; // 50 class ID (optional)
- INT32 nFlags; // 60 state flags(?)
- INT32 nMtime[ 2 ]; // 64 modification time
- INT32 nAtime[ 2 ]; // 6C creation and access time
- INT32 nPage1; // 74 starting block (either direct or translated)
- INT32 nSize; // 78 file size
- INT32 nUnknown; // 7C unknown
- String aName; // Name as Compare String (ascii, upper)
+class StgEntry { // directory enty
+ UINT16 nName[ 32 ]; // 00 name as WCHAR
+ INT16 nNameLen; // 40 size of name in bytes including 00H
+ BYTE cType; // 42 entry type
+ BYTE cFlags; // 43 0 or 1 (tree balance?)
+ INT32 nLeft; // 44 left node entry
+ INT32 nRight; // 48 right node entry
+ INT32 nChild; // 4C 1st child entry if storage
+ ClsId aClsId; // 50 class ID (optional)
+ INT32 nFlags; // 60 state flags(?)
+ INT32 nMtime[ 2 ]; // 64 modification time
+ INT32 nAtime[ 2 ]; // 6C creation and access time
+ INT32 nPage1; // 74 starting block (either direct or translated)
+ INT32 nSize; // 78 file size
+ INT32 nUnknown; // 7C unknown
+ String aName; // Name as Compare String (ascii, upper)
public:
- BOOL Init(); // initialize the data
- BOOL SetName( const String& ); // store a name (ASCII, up to 32 chars)
- void GetName( String& rName ) const;
+ BOOL Init(); // initialize the data
+ BOOL SetName( const String& ); // store a name (ASCII, up to 32 chars)
+ void GetName( String& rName ) const;
// fill in the name
- short Compare( const StgEntry& ) const; // compare two entries
- BOOL Load( const void* );
+ short Compare( const StgEntry& ) const; // compare two entries
+ BOOL Load( const void* );
void Store( void* );
- StgEntryType GetType() const { return (StgEntryType) cType; }
+ StgEntryType GetType() const { return (StgEntryType) cType; }
INT32 GetStartPage() const { return nPage1; }
- void SetType( StgEntryType t ) { cType = (BYTE) t; }
- BYTE GetFlags() const { return cFlags; }
- void SetFlags( BYTE c ) { cFlags = c; }
- INT32 GetSize() const { return nSize; }
- void SetSize( INT32 n ) { nSize = n; }
- const ClsId& GetClassId() const { return aClsId; }
- void SetClassId( const ClsId& );
- INT32 GetLeaf( StgEntryRef ) const;
- void SetLeaf( StgEntryRef, INT32 );
- const INT32* GetTime( StgEntryTime ) const;
- void SetTime( StgEntryTime, INT32* );
+ void SetType( StgEntryType t ) { cType = (BYTE) t; }
+ BYTE GetFlags() const { return cFlags; }
+ void SetFlags( BYTE c ) { cFlags = c; }
+ INT32 GetSize() const { return nSize; }
+ void SetSize( INT32 n ) { nSize = n; }
+ const ClsId& GetClassId() const { return aClsId; }
+ void SetClassId( const ClsId& );
+ INT32 GetLeaf( StgEntryRef ) const;
+ void SetLeaf( StgEntryRef, INT32 );
+ const INT32* GetTime( StgEntryTime ) const;
+ void SetTime( StgEntryTime, INT32* );
};
-#define STG_FREE -1L // page is free
-#define STG_EOF -2L // page is last page in chain
-#define STG_FAT -3L // page is FAT page
-#define STG_MASTER -4L // page is master FAT page
+#define STG_FREE -1L // page is free
+#define STG_EOF -2L // page is last page in chain
+#define STG_FAT -3L // page is FAT page
+#define STG_MASTER -4L // page is master FAT page
#endif
diff --git a/sot/source/sdstor/stgio.cxx b/sot/source/sdstor/stgio.cxx
index a78ef489113d..93a3422c4a20 100644
--- a/sot/source/sdstor/stgio.cxx
+++ b/sot/source/sdstor/stgio.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -257,11 +257,11 @@ Validator::Validator( StgIo &rIoP )
{
ULONG nErr = nError = FAT_OK;
- if( ( nErr = ValidateMasterFATs() ) != FAT_OK )
+ if( ( nErr = ValidateMasterFATs() ) != FAT_OK )
nError = nErr;
- else if( ( nErr = ValidateDirectoryEntries() ) != FAT_OK )
+ else if( ( nErr = ValidateDirectoryEntries() ) != FAT_OK )
nError = nErr;
- else if( ( nErr = FindUnrefedChains()) != FAT_OK )
+ else if( ( nErr = FindUnrefedChains()) != FAT_OK )
nError = nErr;
}
@@ -325,7 +325,7 @@ ULONG Validator::ValidateDirectoryEntries()
return nErr;
// TOC
nErr = aFat.Mark(
- rIo.aHdr.GetTOCStart(), -1, -2 );
+ rIo.aHdr.GetTOCStart(), -1, -2 );
return nErr;
}
@@ -380,10 +380,10 @@ ULONG StgIo::ValidateFATs()
ErrorLink::get().Call( &aArg );
bCopied = TRUE;
}
-// DBG_ASSERT( nErr == FAT_OK ,"Storage kaputt");
+// DBG_ASSERT( nErr == FAT_OK ,"Storage kaputt");
return nErr;
}
-// DBG_ERROR("Validiere nicht (kein FileStorage)");
+// DBG_ERROR("Validiere nicht (kein FileStorage)");
return FAT_OK;
}
diff --git a/sot/source/sdstor/stgio.hxx b/sot/source/sdstor/stgio.hxx
index d307eb6454af..342743089c4c 100644
--- a/sot/source/sdstor/stgio.hxx
+++ b/sot/source/sdstor/stgio.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,21 +58,21 @@ struct StgLinkArg
};
class StgIo : public StgCache {
- void SetupStreams(); // load all internal streams
+ void SetupStreams(); // load all internal streams
BOOL bCopied;
public:
StgIo();
~StgIo();
- StgHeader aHdr; // storage file header
- StgFATStrm* pFAT; // FAT stream
- StgDirStrm* pTOC; // TOC stream
- StgDataStrm* pDataFAT; // small data FAT stream
- StgDataStrm* pDataStrm; // small data stream
- short GetDataPageSize(); // get the logical data page size
- BOOL Load(); // load a storage file
- BOOL Init(); // set up an empty file
- BOOL CommitAll(); // commit everything (root commit)
-
+ StgHeader aHdr; // storage file header
+ StgFATStrm* pFAT; // FAT stream
+ StgDirStrm* pTOC; // TOC stream
+ StgDataStrm* pDataFAT; // small data FAT stream
+ StgDataStrm* pDataStrm; // small data stream
+ short GetDataPageSize(); // get the logical data page size
+ BOOL Load(); // load a storage file
+ BOOL Init(); // set up an empty file
+ BOOL CommitAll(); // commit everything (root commit)
+
static void SetErrorLink( const Link& );
static const Link& GetErrorLink();
ULONG ValidateFATs( );
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx
index 69ecac37c67b..c2172ccffa8a 100644
--- a/sot/source/sdstor/stgole.cxx
+++ b/sot/source/sdstor/stgole.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include "rtl/string.h"
#include "rtl/string.h"
#include "stgole.hxx"
-#include "storinfo.hxx" // Read/WriteClipboardFormat()
+#include "storinfo.hxx" // Read/WriteClipboardFormat()
#include <tools/debug.hxx>
#if defined(_MSC_VER) && (_MSC_VER>=1400)
@@ -119,7 +119,7 @@ BOOL StgCompObjStream::Load()
aUserName.Erase();
if( GetError() != SVSTREAM_OK )
return FALSE;
- Seek( 8L ); // skip the first part
+ Seek( 8L ); // skip the first part
INT32 nMarker = 0;
*this >> nMarker;
if( nMarker == -1L )
@@ -133,7 +133,7 @@ BOOL StgCompObjStream::Load()
if( Read( p, nLen1 ) == (ULONG) nLen1 )
{
aUserName = nLen1 ? String( p, gsl_getSystemTextEncoding() ) : String();
-/* // Now we can read the CB format
+/* // Now we can read the CB format
INT32 nLen2 = 0;
*this >> nLen2;
if( nLen2 > 0 )
@@ -168,15 +168,15 @@ BOOL StgCompObjStream::Store()
return FALSE;
Seek( 0L );
ByteString aAsciiUserName( aUserName, RTL_TEXTENCODING_ASCII_US );
- *this << (INT16) 1 // Version?
+ *this << (INT16) 1 // Version?
<< (INT16) -2 // 0xFFFE = Byte Order Indicator
- << (INT32) 0x0A03 // Windows 3.10
+ << (INT32) 0x0A03 // Windows 3.10
<< (INT32) -1L
- << aClsId // Class ID
+ << aClsId // Class ID
<< (INT32) (aAsciiUserName.Len() + 1)
<< (const char *)aAsciiUserName.GetBuffer()
- << (UINT8) 0; // string terminator
-/* // determine the clipboard format string
+ << (UINT8) 0; // string terminator
+/* // determine the clipboard format string
String aCbFmt;
if( nCbFormat > FORMAT_GDIMETAFILE )
aCbFmt = Exchange::GetFormatName( nCbFormat );
@@ -185,13 +185,13 @@ BOOL StgCompObjStream::Store()
<< (const char*) aCbFmt
<< (UINT8) 0;
else if( nCbFormat )
- *this << (INT32) -1 // for Windows
+ *this << (INT32) -1 // for Windows
<< (INT32) nCbFormat;
else
- *this << (INT32) 0; // no clipboard format
+ *this << (INT32) 0; // no clipboard format
*/
WriteClipboardFormat( *this, nCbFormat );
- *this << (INT32) 0; // terminator
+ *this << (INT32) 0; // terminator
Commit();
return BOOL( GetError() == SVSTREAM_OK );
}
@@ -220,11 +220,11 @@ BOOL StgOleStream::Store()
if( GetError() != SVSTREAM_OK )
return FALSE;
Seek( 0L );
- *this << (INT32) 0x02000001 // OLE version, format
- << (INT32) nFlags // Object flags
- << (INT32) 0 // Update Options
- << (INT32) 0 // reserved
- << (INT32) 0; // Moniker 1
+ *this << (INT32) 0x02000001 // OLE version, format
+ << (INT32) nFlags // Object flags
+ << (INT32) 0 // Update Options
+ << (INT32) 0 // reserved
+ << (INT32) 0; // Moniker 1
Commit();
return BOOL( GetError() == SVSTREAM_OK );
}
diff --git a/sot/source/sdstor/stgole.hxx b/sot/source/sdstor/stgole.hxx
index 7883ac7fa1c9..b2b3c21590f9 100644
--- a/sot/source/sdstor/stgole.hxx
+++ b/sot/source/sdstor/stgole.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index 4974879e5d5e..d94e92e2f77a 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -107,7 +107,7 @@ INT32 StgFAT::FindBlock( INT32& nPgs )
INT32 nMaxStart = STG_EOF, nMaxLen = 0x7FFFFFFFL;
INT32 nTmpStart = STG_EOF, nTmpLen = 0;
INT32 nPages = rStrm.GetSize() >> 2;
- BOOL bFound = FALSE;
+ BOOL bFound = FALSE;
StgPage* pPg = NULL;
short nEntry = 0;
for( INT32 i = 0; i < nPages; i++, nEntry++ )
@@ -526,7 +526,7 @@ INT32 StgFATStrm::GetPage( short nOff, BOOL bMake, USHORT *pnMasterAlloc )
USHORT nBlocks = nOff / nMasterCount;
// Offset in letzter Masterpage
nOff = nOff % nMasterCount;
-
+
StgPage* pOldPage = 0;
StgPage* pMaster = 0;
INT32 nFAT = rIo.aHdr.GetFATChain();
diff --git a/sot/source/sdstor/stgstrms.hxx b/sot/source/sdstor/stgstrms.hxx
index 47301a90f9f6..fb2a4acf1126 100644
--- a/sot/source/sdstor/stgstrms.hxx
+++ b/sot/source/sdstor/stgstrms.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,14 +41,14 @@ class StgDirEntry;
// storage stream, which then holds the FAT for small data allocations.
class StgFAT
-{ // FAT allocator
- StgStrm& rStrm; // underlying stream
- INT32 nMaxPage; // highest page allocated so far
- short nPageSize; // physical page size
- short nEntries; // FAT entries per page
- short nOffset; // current offset within page
- INT32 nLimit; // search limit recommendation
- BOOL bPhys; // TRUE: physical FAT
+{ // FAT allocator
+ StgStrm& rStrm; // underlying stream
+ INT32 nMaxPage; // highest page allocated so far
+ short nPageSize; // physical page size
+ short nEntries; // FAT entries per page
+ short nOffset; // current offset within page
+ INT32 nLimit; // search limit recommendation
+ BOOL bPhys; // TRUE: physical FAT
StgPage* GetPhysPage( INT32 nPage );
BOOL MakeChain( INT32 nStart, INT32 nPages );
BOOL InitNew( INT32 nPage1 );
@@ -66,33 +66,33 @@ public:
// and accessing the data on a physical basis. It uses the built-in
// FAT class for the page allocations.
-class StgStrm { // base class for all streams
+class StgStrm { // base class for all streams
protected:
- StgIo& rIo; // I/O system
- StgFAT* pFat; // FAT stream for allocations
- StgDirEntry* pEntry; // dir entry (for ownership)
- INT32 nStart; // 1st data page
- INT32 nSize; // stream size in bytes
- INT32 nPos; // current byte position
- INT32 nPage; // current logical page
- short nOffset; // offset into current page
- short nPageSize; // logical page size
+ StgIo& rIo; // I/O system
+ StgFAT* pFat; // FAT stream for allocations
+ StgDirEntry* pEntry; // dir entry (for ownership)
+ INT32 nStart; // 1st data page
+ INT32 nSize; // stream size in bytes
+ INT32 nPos; // current byte position
+ INT32 nPage; // current logical page
+ short nOffset; // offset into current page
+ short nPageSize; // logical page size
BOOL Copy( INT32 nFrom, INT32 nBytes );
StgStrm( StgIo& );
public:
virtual ~StgStrm();
- StgIo& GetIo() { return rIo; }
- INT32 GetPos() { return nPos; }
- INT32 GetStart() { return nStart; }
- INT32 GetSize() { return nSize; }
- INT32 GetPage() { return nPage; }
+ StgIo& GetIo() { return rIo; }
+ INT32 GetPos() { return nPos; }
+ INT32 GetStart() { return nStart; }
+ INT32 GetSize() { return nSize; }
+ INT32 GetPage() { return nPage; }
short GetPageSize() { return nPageSize; }
- INT32 GetPages();
- short GetOffset() { return nOffset;}
+ INT32 GetPages();
+ short GetOffset() { return nOffset;}
void SetEntry( StgDirEntry& );
virtual BOOL SetSize( INT32 );
virtual BOOL Pos2Page( INT32 nBytePos );
- virtual INT32 Read( void*, INT32 ) { return 0; }
+ virtual INT32 Read( void*, INT32 ) { return 0; }
virtual INT32 Write( const void*, INT32 ) { return 0; }
virtual StgPage* GetPhysPage( INT32 nBytePos, BOOL bForce = FALSE );
virtual BOOL IsSmallStrm() { return FALSE; }
@@ -102,7 +102,7 @@ public:
// Since this access is implemented as a StgStrm, we can use the
// FAT allocator.
-class StgFATStrm : public StgStrm { // the master FAT stream
+class StgFATStrm : public StgStrm { // the master FAT stream
virtual BOOL Pos2Page( INT32 nBytePos );
BOOL SetPage( short, INT32 );
public:
@@ -117,9 +117,9 @@ public:
// The stream has a size increment which normally is 1, but which can be
// set to any value is you want the size to be incremented by certain values.
-class StgDataStrm : public StgStrm // a physical data stream
+class StgDataStrm : public StgStrm // a physical data stream
{
- short nIncr; // size adjust increment
+ short nIncr; // size adjust increment
void Init( INT32 nBgn, INT32 nLen );
public:
StgDataStrm( StgIo&, INT32 nBgn, INT32 nLen=-1 );
@@ -136,9 +136,9 @@ public:
// is also a StgStream. The start of the FAT is in the header at DataRootPage,
// the stream itself is pointed to by the root entry (it holds start & size).
-class StgSmallStrm : public StgStrm // a logical data stream
+class StgSmallStrm : public StgStrm // a logical data stream
{
- StgStrm* pData; // the data stream
+ StgStrm* pData; // the data stream
void Init( INT32 nBgn, INT32 nLen );
public:
StgSmallStrm( StgIo&, INT32 nBgn, INT32 nLen );
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx
index 2ee6c6f78361..cab2834e376f 100644
--- a/sot/source/sdstor/storage.cxx
+++ b/sot/source/sdstor/storage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -165,7 +165,7 @@ SotStorageStream::~SotStorageStream()
|* SotStorageStream::SyncSvStream()
|*
|* Beschreibung: Der SvStream wird auf den Zustand des Standard-Streams
-|* gesetzt. Der Puffer des SvStreams wird weggeworfen.
+|* gesetzt. Der Puffer des SvStreams wird weggeworfen.
*************************************************************************/
void SotStorageStream::SyncSvStream()
{
@@ -486,12 +486,12 @@ void SotStorage::TestMemberInvariant( BOOL /*bPrint*/ )
|* Letzte Aenderung MM 23.06.94
|*
*************************************************************************/
-#define INIT_SotStorage() \
+#define INIT_SotStorage() \
: m_pOwnStg( NULL ) \
, m_pStorStm( NULL ) \
- , m_nError( SVSTREAM_OK ) \
- , m_bIsRoot( FALSE ) \
- , m_bDelStm( FALSE ) \
+ , m_nError( SVSTREAM_OK ) \
+ , m_bIsRoot( FALSE ) \
+ , m_bDelStm( FALSE ) \
, m_nVersion( SOFFICE_FILEFORMAT_CURRENT )
SotStorage::SotStorage()
diff --git a/sot/source/sdstor/storinfo.cxx b/sot/source/sdstor/storinfo.cxx
index 3859bcd5ee6c..a93bbf41f126 100644
--- a/sot/source/sdstor/storinfo.cxx
+++ b/sot/source/sdstor/storinfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 487b5421ddd7..2eeda2503f19 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sot/source/sdstor/unostorageholder.cxx b/sot/source/sdstor/unostorageholder.cxx
index 55e3e2db4105..199a1310f6c2 100644
--- a/sot/source/sdstor/unostorageholder.cxx
+++ b/sot/source/sdstor/unostorageholder.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -127,7 +127,7 @@ void SAL_CALL UNOStorageHolder::commited( const lang::EventObject& /*aEvent*/ )
throw uno::RuntimeException();
m_xStorage->copyToStorage( xTempStorage );
-
+
uno::Reference< lang::XComponent > xComp( xTempStorage, uno::UNO_QUERY );
if ( !xComp.is() )
throw uno::RuntimeException();
@@ -157,7 +157,7 @@ void SAL_CALL UNOStorageHolder::commited( const lang::EventObject& /*aEvent*/ )
uno::Any aMediaType;
if ( rTempStorage->GetProperty( ::rtl::OUString::createFromAscii( "MediaType" ), aMediaType ) )
m_rSotStorage->SetProperty( ::rtl::OUString::createFromAscii( "MediaType" ), aMediaType );
-
+
m_rSotStorage->Commit();
}
@@ -186,7 +186,7 @@ void SAL_CALL UNOStorageHolder::disposing( const lang::EventObject& /*Source*/ )
if ( m_rSotStorage.Is() )
m_rSotStorage = NULL;
-
+
if ( m_pParentStorage )
{
SotStorage* pTmp = m_pParentStorage;
diff --git a/sot/source/sdstor/unostorageholder.hxx b/sot/source/sdstor/unostorageholder.hxx
index 13743c64447e..0fdab8b88453 100644
--- a/sot/source/sdstor/unostorageholder.hxx
+++ b/sot/source/sdstor/unostorageholder.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,14 +36,14 @@
#include <sot/storage.hxx>
class SotStorage;
-class UNOStorageHolder : public ::cppu::WeakImplHelper1<
+class UNOStorageHolder : public ::cppu::WeakImplHelper1<
::com::sun::star::embed::XTransactionListener >
{
- SotStorage* m_pParentStorage; // parent storage
- SotStorageRef m_rSotStorage; // original substorage
- ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xStorage; // duplicate storage
- ::utl::TempFile* m_pTempFile; // temporary file used by duplicate storage
+ SotStorage* m_pParentStorage; // parent storage
+ SotStorageRef m_rSotStorage; // original substorage
+ ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xStorage; // duplicate storage
+ ::utl::TempFile* m_pTempFile; // temporary file used by duplicate storage
public:
UNOStorageHolder( SotStorage& aParentStorage,
diff --git a/sot/source/unoolestorage/register.cxx b/sot/source/unoolestorage/register.cxx
index a3676da700d3..6c56eee29696 100644
--- a/sot/source/unoolestorage/register.cxx
+++ b/sot/source/unoolestorage/register.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( const
SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ )
{
void * pRet = 0;
-
+
::rtl::OUString aImplName( ::rtl::OUString::createFromAscii( pImplName ) );
uno::Reference< lang::XSingleServiceFactory > xFactory;
@@ -60,13 +60,13 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImp
OLESimpleStorage::impl_staticCreateSelfInstance,
OLESimpleStorage::impl_staticGetSupportedServiceNames() );
}
-
+
if ( xFactory.is() )
{
xFactory->acquire();
pRet = xFactory.get();
}
-
+
return pRet;
}
@@ -80,7 +80,7 @@ SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo( void * /*pServiceMan
uno::Reference< registry::XRegistryKey > xNewKey;
- xNewKey = xKey->createKey( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
+ xNewKey = xKey->createKey( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
OLESimpleStorage::impl_staticGetImplementationName() +
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) );
diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx
index 6851bfc8f5f4..086bb7cfb475 100644
--- a/sot/source/unoolestorage/xolesimplestorage.cxx
+++ b/sot/source/unoolestorage/xolesimplestorage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ OLESimpleStorage::~OLESimpleStorage()
dispose();
} catch( uno::Exception& )
{}
-
+
if ( m_pListenersContainer )
{
delete m_pListenersContainer;
@@ -190,7 +190,7 @@ void OLESimpleStorage::InsertNameAccessToStorage_Impl( BaseStorage* pStorage, ::
pStorage->ResetError();
throw io::IOException(); // TODO
}
-
+
try
{
uno::Sequence< ::rtl::OUString > aElements = xNameAccess->getElementNames();
@@ -217,7 +217,7 @@ void OLESimpleStorage::InsertNameAccessToStorage_Impl( BaseStorage* pStorage, ::
}
//____________________________________________________________________________________________________
-// XInitialization
+// XInitialization
//____________________________________________________________________________________________________
void SAL_CALL OLESimpleStorage::initialize( const uno::Sequence< uno::Any >& aArguments )
@@ -243,7 +243,7 @@ void SAL_CALL OLESimpleStorage::initialize( const uno::Sequence< uno::Any >& aAr
if ( !( aArguments[1] >>= m_bNoTemporaryCopy ) )
throw lang::IllegalArgumentException(); // TODO:
}
-
+
if ( m_bNoTemporaryCopy )
{
// TODO: ???
@@ -266,14 +266,14 @@ void SAL_CALL OLESimpleStorage::initialize( const uno::Sequence< uno::Any >& aAr
}
else
{
- uno::Reference < io::XStream > xTempFile(
+ uno::Reference < io::XStream > xTempFile(
m_xFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.io.TempFile" ) ),
uno::UNO_QUERY_THROW );
uno::Reference < io::XSeekable > xTempSeek( xTempFile, uno::UNO_QUERY_THROW );
uno::Reference< io::XOutputStream > xTempOut = xTempFile->getOutputStream();
if ( !xTempOut.is() )
throw uno::RuntimeException();
-
+
if ( xInputStream.is() )
{
try
@@ -295,7 +295,7 @@ void SAL_CALL OLESimpleStorage::initialize( const uno::Sequence< uno::Any >& aAr
// not sure that the storage flashes the stream on commit
m_xStream = xStream;
m_xTempStream = xTempFile;
-
+
uno::Reference< io::XSeekable > xSeek( xStream, uno::UNO_QUERY_THROW );
xSeek->seek( 0 );
uno::Reference< io::XInputStream > xInpStream = xStream->getInputStream();
@@ -305,7 +305,7 @@ void SAL_CALL OLESimpleStorage::initialize( const uno::Sequence< uno::Any >& aAr
::comphelper::OStorageHelper::CopyInputToOutput( xInpStream, xTempOut );
xTempOut->flush();
xTempSeek->seek( 0 );
-
+
m_pStream = ::utl::UcbStreamHelper::CreateStream( xTempFile, sal_False );
}
else
@@ -320,7 +320,7 @@ void SAL_CALL OLESimpleStorage::initialize( const uno::Sequence< uno::Any >& aAr
//____________________________________________________________________________________________________
-// XNameContainer
+// XNameContainer
//____________________________________________________________________________________________________
// --------------------------------------------------------------------------------
@@ -364,7 +364,7 @@ void SAL_CALL OLESimpleStorage::insertByName( const ::rtl::OUString& aName, cons
throw;
}
catch( container::ElementExistException& )
- {
+ {
throw;
}
catch( uno::Exception& e )
@@ -391,7 +391,7 @@ void SAL_CALL OLESimpleStorage::removeByName( const ::rtl::OUString& aName )
if ( !m_bNoTemporaryCopy && !m_xStream.is() )
throw lang::WrappedTargetException(); // io::IOException(); // TODO
-
+
if ( !m_pStorage->IsContained( aName ) )
throw container::NoSuchElementException(); // TODO:
@@ -464,7 +464,7 @@ uno::Any SAL_CALL OLESimpleStorage::getByName( const ::rtl::OUString& aName )
{
BaseStorage* pStrg = m_pStorage->OpenStorage( aName );
m_pStorage->ResetError();
- if ( !pStrg )
+ if ( !pStrg )
throw io::IOException();
SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( xTempFile, sal_False ); // do not close the original stream
@@ -481,7 +481,7 @@ uno::Any SAL_CALL OLESimpleStorage::getByName( const ::rtl::OUString& aName )
if ( !bSuccess )
throw uno::RuntimeException();
-
+
uno::Sequence< uno::Any > aArgs( 2 );
aArgs[0] <<= xInputStream; // allow readonly access only
aArgs[1] <<= (sal_Bool)sal_True; // do not create copy
@@ -556,7 +556,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL OLESimpleStorage::getElementNames()
if ( !m_pStorage )
throw uno::RuntimeException();
-
+
SvStorageInfoList aList;
m_pStorage->FillInfoList( &aList );
@@ -633,7 +633,7 @@ sal_Bool SAL_CALL OLESimpleStorage::hasElements()
}
//____________________________________________________________________________________________________
-// XComponent
+// XComponent
//____________________________________________________________________________________________________
// --------------------------------------------------------------------------------
@@ -691,7 +691,7 @@ void SAL_CALL OLESimpleStorage::removeEventListener(
}
//____________________________________________________________________________________________________
-// XTransactedObject
+// XTransactedObject
//____________________________________________________________________________________________________
// --------------------------------------------------------------------------------
@@ -710,7 +710,7 @@ void SAL_CALL OLESimpleStorage::commit()
if ( !m_bNoTemporaryCopy && !m_xStream.is() )
throw io::IOException(); // TODO
-
+
if ( !m_pStorage->Commit() || m_pStorage->GetError() )
{
m_pStorage->ResetError();
@@ -736,18 +736,18 @@ void SAL_CALL OLESimpleStorage::revert()
if ( !m_bNoTemporaryCopy && !m_xStream.is() )
throw io::IOException(); // TODO
-
+
if ( !m_pStorage->Revert() || m_pStorage->GetError() )
{
m_pStorage->ResetError();
throw io::IOException(); // TODO
}
-
+
UpdateOriginal_Impl();
}
//____________________________________________________________________________________________________
-// XClassifiedObject
+// XClassifiedObject
//____________________________________________________________________________________________________
uno::Sequence< sal_Int8 > SAL_CALL OLESimpleStorage::getClassID()
@@ -779,7 +779,7 @@ void SAL_CALL OLESimpleStorage::setClassInfo( const uno::Sequence< sal_Int8 >& /
}
//____________________________________________________________________________________________________
-// XServiceInfo
+// XServiceInfo
//____________________________________________________________________________________________________
// --------------------------------------------------------------------------------
diff --git a/sot/source/unoolestorage/xolesimplestorage.hxx b/sot/source/unoolestorage/xolesimplestorage.hxx
index 816119f844ad..5221a723f92e 100644
--- a/sot/source/unoolestorage/xolesimplestorage.hxx
+++ b/sot/source/unoolestorage/xolesimplestorage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@
#include <stg.hxx>
-class OLESimpleStorage : public ::cppu::WeakImplHelper3
+class OLESimpleStorage : public ::cppu::WeakImplHelper3
< ::com::sun::star::embed::XOLESimpleStorage
, ::com::sun::star::lang::XInitialization
, ::com::sun::star::lang::XServiceInfo >
@@ -65,7 +65,7 @@ class OLESimpleStorage : public ::cppu::WeakImplHelper3
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
sal_Bool m_bNoTemporaryCopy;
-
+
void UpdateOriginal_Impl();
static void InsertInputStreamToStorage_Impl( BaseStorage* pStorage, ::rtl::OUString aName, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInputStream )
@@ -88,7 +88,7 @@ public:
//____________________________________________________________________________________________________
- // XInitialization
+ // XInitialization
//____________________________________________________________________________________________________
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments )
@@ -96,7 +96,7 @@ public:
::com::sun::star::uno::RuntimeException);
//____________________________________________________________________________________________________
- // XNameContainer
+ // XNameContainer
//____________________________________________________________________________________________________
virtual void SAL_CALL insertByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement )
@@ -134,7 +134,7 @@ public:
throw ( ::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XComponent
+ // XComponent
//____________________________________________________________________________________________________
virtual void SAL_CALL dispose()
@@ -149,7 +149,7 @@ public:
throw ( ::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XTransactedObject
+ // XTransactedObject
//____________________________________________________________________________________________________
virtual void SAL_CALL commit()
@@ -163,7 +163,7 @@ public:
::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XClassifiedObject
+ // XClassifiedObject
//____________________________________________________________________________________________________
virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getClassID()
@@ -178,7 +178,7 @@ public:
::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XServiceInfo
+ // XServiceInfo
//____________________________________________________________________________________________________
virtual ::rtl::OUString SAL_CALL getImplementationName()
diff --git a/sot/workben/testsot.cxx b/sot/workben/testsot.cxx
index eae0bb9f7acf..82677d344282 100644
--- a/sot/workben/testsot.cxx
+++ b/sot/workben/testsot.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/PasswordHelper.hxx b/svl/inc/PasswordHelper.hxx
index 29f092f5fc9d..ec85f2b40686 100644
--- a/svl/inc/PasswordHelper.hxx
+++ b/svl/inc/PasswordHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/adrparse.hxx b/svl/inc/adrparse.hxx
index 2c69dff81102..57b31c66d5e3 100644
--- a/svl/inc/adrparse.hxx
+++ b/svl/inc/adrparse.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/broadcast.hxx b/svl/inc/broadcast.hxx
index a1cde13a2483..287aa898ec4f 100644
--- a/svl/inc/broadcast.hxx
+++ b/svl/inc/broadcast.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,23 +44,23 @@ friend class SvtListenerBase;
friend class SvtListenerIter;
SvtListenerBase* pRoot;
- const SvtBroadcaster& operator=(const SvtBroadcaster &); // verboten
+ const SvtBroadcaster& operator=(const SvtBroadcaster &); // verboten
protected:
- void Forward( SvtBroadcaster& rBC,
+ void Forward( SvtBroadcaster& rBC,
const SfxHint& rHint );
- virtual void ListenersGone();
+ virtual void ListenersGone();
public:
TYPEINFO();
SvtBroadcaster();
SvtBroadcaster( const SvtBroadcaster &rBC );
- virtual ~SvtBroadcaster();
+ virtual ~SvtBroadcaster();
- void Broadcast( const SfxHint &rHint );
+ void Broadcast( const SfxHint &rHint );
- BOOL HasListeners() const { return 0 != pRoot; }
+ BOOL HasListeners() const { return 0 != pRoot; }
};
diff --git a/svl/inc/cntnrsrt.hxx b/svl/inc/cntnrsrt.hxx
index fd31ded8456c..636fff1250e7 100644
--- a/svl/inc/cntnrsrt.hxx
+++ b/svl/inc/cntnrsrt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,86 +30,86 @@
/***********************************************************************
*
-* Hier folgt die Beschreibung fuer die exportierten Makros:
+* Hier folgt die Beschreibung fuer die exportierten Makros:
*
-* DECLARE_CONTAINER_SORT( ClassName, Type )
-* IMPL_CONTAINER_SORT( ClassName, Type, SortFunc )
+* DECLARE_CONTAINER_SORT( ClassName, Type )
+* IMPL_CONTAINER_SORT( ClassName, Type, SortFunc )
*
-* Definiert eine von Container abgeleitete Klasse "ClassName",
-* in der die Elemente des Typs "Type" sortiert enthalten sind.
-* Dazu muss einer Funktion "SortFunc" definiert sein, die als
-* Paramter zwei "const Type&" erwartet und 0 zurueckgibt, wenn
-* beide gleich sind, -1 wenn der erste Paramter kleiner ist als
-* der zweite und +1 wenn der erste Paramter groesser ist als
-* der zweite.
+* Definiert eine von Container abgeleitete Klasse "ClassName",
+* in der die Elemente des Typs "Type" sortiert enthalten sind.
+* Dazu muss einer Funktion "SortFunc" definiert sein, die als
+* Paramter zwei "const Type&" erwartet und 0 zurueckgibt, wenn
+* beide gleich sind, -1 wenn der erste Paramter kleiner ist als
+* der zweite und +1 wenn der erste Paramter groesser ist als
+* der zweite.
*
-* Die Zugriffs-Methoden entsprechen in etwa denen der Container-
-* Klasse, mit Ausnahme von Insert, DeleteAndDestroy und Seek_Entry,
-* der den SV-Pointer-Arrays entsprechen.
+* Die Zugriffs-Methoden entsprechen in etwa denen der Container-
+* Klasse, mit Ausnahme von Insert, DeleteAndDestroy und Seek_Entry,
+* der den SV-Pointer-Arrays entsprechen.
*
-* DECLARE_CONTAINER_SORT_DEL( ClassName, Type )
-* IMPL_CONTAINER_SORT( ClassName, Type, SortFunc )
+* DECLARE_CONTAINER_SORT_DEL( ClassName, Type )
+* IMPL_CONTAINER_SORT( ClassName, Type, SortFunc )
*
-* Wie DECLARE_CONTAINER_SORT, nur dass beim Aufruf des Destruktors
-* alle im Conatiner vorhandenen Objekte geloescht werden.
+* Wie DECLARE_CONTAINER_SORT, nur dass beim Aufruf des Destruktors
+* alle im Conatiner vorhandenen Objekte geloescht werden.
*/
#include <tools/contnr.hxx>
-#define DECLARE_CONTAINER_SORT_COMMON( ClassName, Type ) \
- ClassName( const ClassName& ); \
- ClassName& operator =( const ClassName& ); \
-public: \
- using Container::Count; \
+#define DECLARE_CONTAINER_SORT_COMMON( ClassName, Type ) \
+ ClassName( const ClassName& ); \
+ ClassName& operator =( const ClassName& ); \
+public: \
+ using Container::Count; \
\
- ClassName( USHORT InitSize, USHORT ReSize ) : \
- Container( CONTAINER_MAXBLOCKSIZE, InitSize, ReSize ) {} \
+ ClassName( USHORT InitSize, USHORT ReSize ) : \
+ Container( CONTAINER_MAXBLOCKSIZE, InitSize, ReSize ) {} \
\
- BOOL Insert( Type* pObj ); \
+ BOOL Insert( Type* pObj ); \
\
- Type *Remove( ULONG nPos ) \
- { return (Type *)Container::Remove( nPos ); } \
+ Type *Remove( ULONG nPos ) \
+ { return (Type *)Container::Remove( nPos ); } \
\
- Type *Remove( Type* pObj ); \
+ Type *Remove( Type* pObj ); \
\
- void DeleteAndDestroy( ULONG nPos ) \
- { \
- Type *pObj = Remove( nPos ); \
- if( pObj ) \
- delete pObj; \
- } \
+ void DeleteAndDestroy( ULONG nPos ) \
+ { \
+ Type *pObj = Remove( nPos ); \
+ if( pObj ) \
+ delete pObj; \
+ } \
\
- void DeleteAndDestroy() \
- { while( Count() ) DeleteAndDestroy( 0 ); } \
+ void DeleteAndDestroy() \
+ { while( Count() ) DeleteAndDestroy( 0 ); } \
\
- Type* GetObject( ULONG nPos ) const \
- { return (Type *)Container::GetObject( nPos ); } \
+ Type* GetObject( ULONG nPos ) const \
+ { return (Type *)Container::GetObject( nPos ); } \
\
- Type* operator[]( ULONG nPos ) const \
- { return GetObject(nPos); } \
+ Type* operator[]( ULONG nPos ) const \
+ { return GetObject(nPos); } \
\
- BOOL Seek_Entry( const Type *pObj, ULONG* pPos ) const; \
+ BOOL Seek_Entry( const Type *pObj, ULONG* pPos ) const; \
\
- ULONG GetPos( const Type* pObj ) const; \
+ ULONG GetPos( const Type* pObj ) const; \
-#define DECLARE_CONTAINER_SORT( ClassName, Type ) \
-class ClassName : private Container \
-{ \
- DECLARE_CONTAINER_SORT_COMMON( ClassName, Type ) \
- ~ClassName() {} \
-}; \
+#define DECLARE_CONTAINER_SORT( ClassName, Type ) \
+class ClassName : private Container \
+{ \
+ DECLARE_CONTAINER_SORT_COMMON( ClassName, Type ) \
+ ~ClassName() {} \
+}; \
-#define DECLARE_CONTAINER_SORT_DEL( ClassName, Type ) \
-class ClassName : private Container \
-{ \
- DECLARE_CONTAINER_SORT_COMMON( ClassName, Type ) \
- ~ClassName() { DeleteAndDestroy(); } \
-}; \
+#define DECLARE_CONTAINER_SORT_DEL( ClassName, Type ) \
+class ClassName : private Container \
+{ \
+ DECLARE_CONTAINER_SORT_COMMON( ClassName, Type ) \
+ ~ClassName() { DeleteAndDestroy(); } \
+}; \
-#define IMPL_CONTAINER_SORT( ClassName, Type, SortFunc ) \
+#define IMPL_CONTAINER_SORT( ClassName, Type, SortFunc ) \
BOOL ClassName::Insert( Type *pObj ) \
{ \
ULONG nPos; \
@@ -148,14 +148,14 @@ BOOL ClassName::Seek_Entry( const Type* pObj, ULONG* pPos ) const \
while( nU <= nO ) \
{ \
nM = nU + ( nO - nU ) / 2; \
- int nCmp = SortFunc( *GetObject(nM), *pObj ); \
+ int nCmp = SortFunc( *GetObject(nM), *pObj ); \
\
- if( 0 == nCmp ) \
+ if( 0 == nCmp ) \
{ \
if( pPos ) *pPos = nM; \
return TRUE; \
} \
- else if( nCmp < 0 ) \
+ else if( nCmp < 0 ) \
nU = nM + 1; \
else if( nM == 0 ) \
{ \
diff --git a/svl/inc/cntwids.hrc b/svl/inc/cntwids.hrc
index 01a965c38652..90986e3aa6c6 100644
--- a/svl/inc/cntwids.hrc
+++ b/svl/inc/cntwids.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,8 +40,8 @@
#define WID_CHAOS_START 500
//FUNC MSG
-#define WID_MARK_THREAD_MARKED (499)
-#define WID_MARK_THREAD_UNMARKED (498)
+#define WID_MARK_THREAD_MARKED (499)
+#define WID_MARK_THREAD_UNMARKED (498)
// ARGS
#define WID_DUMMY_ARG1 (WID_CHAOS_START + 0)
@@ -295,7 +295,7 @@
#define WID_TRANSFER (WID_CHAOS_START + 149)
// PROP ALL
-#define WID_KEYWORDS (WID_CHAOS_START + 150)
+#define WID_KEYWORDS (WID_CHAOS_START + 150)
#define WID_IS_PROTECTED (WID_CHAOS_START + 151)
// PROP SEARCH
@@ -412,7 +412,7 @@
#define WID_ALL_START2 (WID_CHAOS_START + 212)
#define WID_REAL_NAME (WID_CHAOS_START + 212)
#define WID_FLAG_UPDATE_ON_OPEN (WID_CHAOS_START + 213)
-#define WID_ACTION_LIST (WID_CHAOS_START + 214)
+#define WID_ACTION_LIST (WID_CHAOS_START + 214)
#define WID_EDIT_STRING (WID_CHAOS_START + 215)
#define WID_SET_AS_DEFAULT (WID_CHAOS_START + 216)
#define WID_ALL_END2 (WID_CHAOS_START + 216)
@@ -434,7 +434,7 @@
#define WID_FSYS_START (WID_CHAOS_START + 224)
#define WID_FSYS_VALUE_FOLDER (WID_CHAOS_START + 224)
#define WID_FSYS_SHOW_EXTENSION (WID_CHAOS_START + 225)
-#define WID_VALUE_ADDED_MODE (WID_CHAOS_START + 226)
+#define WID_VALUE_ADDED_MODE (WID_CHAOS_START + 226)
#define WID_FSYS_DUMMY3 (WID_CHAOS_START + 227)
#define WID_FSYS_DUMMY4 (WID_CHAOS_START + 228)
#define WID_FSYS_END (WID_CHAOS_START + 228)
@@ -452,11 +452,11 @@
//////////////////////////////////////////////////////////////////////////
// PROP FOLDER
-#define WID_FOLDER_START2 (WID_CHAOS_START + 233)
+#define WID_FOLDER_START2 (WID_CHAOS_START + 233)
#define WID_USER_SORT_CRITERIUM (WID_CHAOS_START + 233)
#define WID_HEADER_CONFIG (WID_CHAOS_START + 234)
#define WID_GROUPVIEW_CONFIG (WID_CHAOS_START + 235)
-#define WID_FLD_WEBVIEW_TEMPLATE (WID_CHAOS_START + 236)
+#define WID_FLD_WEBVIEW_TEMPLATE (WID_CHAOS_START + 236)
// eigene Iconpositionen fuer den Explorer, da er noch
// keinen eigenen View-Storage hat
#define WID_VIEW_ICON_POS_GRPWIN (WID_CHAOS_START + 237)
@@ -467,36 +467,36 @@
// PROP FOLDER (VIEW)
#define WID_VIEW3_START (WID_CHAOS_START + 239)
-#define WID_FLD_FONT (WID_CHAOS_START + 239)
+#define WID_FLD_FONT (WID_CHAOS_START + 239)
#define WID_FLD_WEBVIEW_USE_GLOBAL (WID_CHAOS_START + 240)
#define WID_VIEW3_DUMMY2 (WID_CHAOS_START + 241)
#define WID_VIEW3_DUMMY3 (WID_CHAOS_START + 242)
#define WID_VIEW3_END (WID_CHAOS_START + 242)
// PROP FTP
-#define WID_FTP_ACCOUNT (WID_CHAOS_START + 243)
+#define WID_FTP_ACCOUNT (WID_CHAOS_START + 243)
// PROP FOLDER
-#define WID_STORE_MARKED (WID_CHAOS_START + 244)
+#define WID_STORE_MARKED (WID_CHAOS_START + 244)
// REPLICATION ( Currently only here to have file compatibility between
// SO51 Client and SO51 Server, for which the functionality
// first shall be implemented ).
-#define WID_REPLICATION_1 (WID_CHAOS_START + 245)
-#define WID_REPLICATION_2 (WID_CHAOS_START + 246)
-#define WID_REPLICATION_3 (WID_CHAOS_START + 247)
-#define WID_REPLICATION_4 (WID_CHAOS_START + 248)
-#define WID_REPLICATION_5 (WID_CHAOS_START + 249)
+#define WID_REPLICATION_1 (WID_CHAOS_START + 245)
+#define WID_REPLICATION_2 (WID_CHAOS_START + 246)
+#define WID_REPLICATION_3 (WID_CHAOS_START + 247)
+#define WID_REPLICATION_4 (WID_CHAOS_START + 248)
+#define WID_REPLICATION_5 (WID_CHAOS_START + 249)
// PROP SEARCH
-#define WID_SEARCH_INDIRECTIONS (WID_CHAOS_START + 250)
+#define WID_SEARCH_INDIRECTIONS (WID_CHAOS_START + 250)
// PROP ALL
-#define WID_SEND_FORMATS (WID_CHAOS_START + 251)
-#define WID_SEND_COPY_TARGET (WID_CHAOS_START + 252)
+#define WID_SEND_FORMATS (WID_CHAOS_START + 251)
+#define WID_SEND_COPY_TARGET (WID_CHAOS_START + 252)
// FUNC ALL
-#define WID_TRANSFER_RESULT (WID_CHAOS_START + 253)
+#define WID_TRANSFER_RESULT (WID_CHAOS_START + 253)
// END
#define WID_CHAOS_END (WID_CHAOS_START + 253)
diff --git a/svl/inc/converter.hxx b/svl/inc/converter.hxx
index 1a9411656839..29dd7f268ef0 100644
--- a/svl/inc/converter.hxx
+++ b/svl/inc/converter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@ class SvDbaseConverter
{
public:
SVL_DLLPUBLIC static INT32 ConvertPrecisionToDbase(INT32 _nLen, INT32 _nScale);
- SVL_DLLPUBLIC static INT32 ConvertPrecisionToOdbc(INT32 _nLen, INT32 _nScale);
+ SVL_DLLPUBLIC static INT32 ConvertPrecisionToOdbc(INT32 _nLen, INT32 _nScale);
};
#endif //_CONVERTER_HXX_
diff --git a/svl/inc/filenotation.hxx b/svl/inc/filenotation.hxx
index b339282fc96a..f892894dfba7 100644
--- a/svl/inc/filenotation.hxx
+++ b/svl/inc/filenotation.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,8 +43,8 @@ namespace svt
class SVL_DLLPUBLIC OFileNotation
{
protected:
- ::rtl::OUString m_sSystem;
- ::rtl::OUString m_sFileURL;
+ ::rtl::OUString m_sSystem;
+ ::rtl::OUString m_sFileURL;
public:
enum NOTATION
@@ -59,13 +59,13 @@ namespace svt
::rtl::OUString get(NOTATION _eOutputNotation);
private:
- SVL_DLLPRIVATE void construct( const ::rtl::OUString& _rUrlOrPath );
+ SVL_DLLPRIVATE void construct( const ::rtl::OUString& _rUrlOrPath );
SVL_DLLPRIVATE bool implInitWithSystemNotation( const ::rtl::OUString& _rSystemPath );
SVL_DLLPRIVATE bool implInitWithURLNotation( const ::rtl::OUString& _rURL );
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // SVTOOLS_FILENOTATION_HXX
diff --git a/svl/inc/folderrestriction.hxx b/svl/inc/folderrestriction.hxx
index e39c5aeb84d3..5f1a3b7f0bf8 100644
--- a/svl/inc/folderrestriction.hxx
+++ b/svl/inc/folderrestriction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/fstathelper.hxx b/svl/inc/fstathelper.hxx
index fcc71502e639..ba4b85cac8ff 100644
--- a/svl/inc/fstathelper.hxx
+++ b/svl/inc/fstathelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,13 +40,13 @@ namespace FStatHelper {
/** Return the modified time and date stamp for this URL.
- @param URL the asking URL
+ @param URL the asking URL
@param pDate if unequal 0, the function set the date stamp
@param pTime if unequal 0, the function set the time stamp
- @return it was be able to get the date/time stamp
+ @return it was be able to get the date/time stamp
*/
SVL_DLLPUBLIC sal_Bool GetModifiedDateTimeOfFile( const UniString& rURL,
Date* pDate, Time* pTime );
diff --git a/svl/inc/inetdef.hxx b/svl/inc/inetdef.hxx
index 3984dcced8f6..f2c599ef84bf 100644
--- a/svl/inc/inetdef.hxx
+++ b/svl/inc/inetdef.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/inetmsg.hxx b/svl/inc/inetmsg.hxx
index 049c54219bb1..b3be08653792 100644
--- a/svl/inc/inetmsg.hxx
+++ b/svl/inc/inetmsg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/inetstrm.hxx b/svl/inc/inetstrm.hxx
index f1d7812f623f..b5ef7a4d530f 100644
--- a/svl/inc/inetstrm.hxx
+++ b/svl/inc/inetstrm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/instrm.hxx b/svl/inc/instrm.hxx
index 566ef4fb02e7..3727dac0546c 100644
--- a/svl/inc/instrm.hxx
+++ b/svl/inc/instrm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/listener.hxx b/svl/inc/listener.hxx
index bb35150c8afd..ec8f81f40393 100644
--- a/svl/inc/listener.hxx
+++ b/svl/inc/listener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,23 +42,23 @@ class SVL_DLLPUBLIC SvtListener
friend class SvtListenerBase;
SvtListenerBase *pBrdCastLst;
- const SvtListener& operator=(const SvtListener &); // n.i., ist verboten
+ const SvtListener& operator=(const SvtListener &); // n.i., ist verboten
public:
TYPEINFO();
SvtListener();
SvtListener( const SvtListener &rCopy );
- virtual ~SvtListener();
+ virtual ~SvtListener();
- BOOL StartListening( SvtBroadcaster& rBroadcaster );
- BOOL EndListening( SvtBroadcaster& rBroadcaster );
- void EndListeningAll();
- BOOL IsListening( SvtBroadcaster& rBroadcaster ) const;
+ BOOL StartListening( SvtBroadcaster& rBroadcaster );
+ BOOL EndListening( SvtBroadcaster& rBroadcaster );
+ void EndListeningAll();
+ BOOL IsListening( SvtBroadcaster& rBroadcaster ) const;
- BOOL HasBroadcaster() const { return 0 != pBrdCastLst; }
+ BOOL HasBroadcaster() const { return 0 != pBrdCastLst; }
- virtual void Notify( SvtBroadcaster& rBC, const SfxHint& rHint );
+ virtual void Notify( SvtBroadcaster& rBC, const SfxHint& rHint );
};
diff --git a/svl/inc/listeneriter.hxx b/svl/inc/listeneriter.hxx
index 0dcdec811250..7b67e3e8b3fc 100644
--- a/svl/inc/listeneriter.hxx
+++ b/svl/inc/listeneriter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ class SVL_DLLPUBLIC SvtListenerIter
// at the same time.
static SvtListenerIter *pListenerIters;
SvtListenerIter *pNxtIter;
- TypeId aSrchId; // fuer First/Next - suche diesen Type
+ TypeId aSrchId; // fuer First/Next - suche diesen Type
SVL_DLLPRIVATE static void RemoveListener( SvtListenerBase& rDel,
SvtListenerBase* pNext );
@@ -57,19 +57,19 @@ public:
SvtListenerIter( SvtBroadcaster& );
~SvtListenerIter();
- const SvtBroadcaster& GetBroadcaster() const { return rRoot; }
- SvtBroadcaster& GetBroadcaster() { return rRoot; }
+ const SvtBroadcaster& GetBroadcaster() const { return rRoot; }
+ SvtBroadcaster& GetBroadcaster() { return rRoot; }
- SvtListener* GoNext(); // to the next
- SvtListener* GoPrev(); // to the previous
+ SvtListener* GoNext(); // to the next
+ SvtListener* GoPrev(); // to the previous
- SvtListener* GoStart(); // to the start of the list
- SvtListener* GoEnd(); // to the end of the list
+ SvtListener* GoStart(); // to the start of the list
+ SvtListener* GoEnd(); // to the end of the list
- SvtListener* GoRoot(); // to the root
- SvtListener* GetCurr() const; // returns the current
+ SvtListener* GoRoot(); // to the root
+ SvtListener* GetCurr() const; // returns the current
- int IsChanged() const { return pDelNext != pAkt; }
+ int IsChanged() const { return pDelNext != pAkt; }
SvtListener* First( TypeId nType );
SvtListener* Next();
diff --git a/svl/inc/lngmisc.hxx b/svl/inc/lngmisc.hxx
index b4da28604721..f39d2d4e202b 100644
--- a/svl/inc/lngmisc.hxx
+++ b/svl/inc/lngmisc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,8 +36,8 @@
///////////////////////////////////////////////////////////////////////////
-#define SVT_SOFT_HYPHEN ((sal_Unicode) 0x00AD)
-#define SVT_HARD_HYPHEN ((sal_Unicode) 0x2011)
+#define SVT_SOFT_HYPHEN ((sal_Unicode) 0x00AD)
+#define SVT_HARD_HYPHEN ((sal_Unicode) 0x2011)
// the non-breaking space
#define SVT_HARD_SPACE ((sal_Unicode) 0x00A0)
@@ -59,13 +59,13 @@ inline BOOL IsControlChar( sal_Unicode cChar )
inline BOOL HasHyphens( const rtl::OUString &rTxt )
{
- return rTxt.indexOf( SVT_SOFT_HYPHEN ) != -1 ||
+ return rTxt.indexOf( SVT_SOFT_HYPHEN ) != -1 ||
rTxt.indexOf( SVT_HARD_HYPHEN ) != -1;
}
-SVL_DLLPUBLIC INT32 GetNumControlChars( const rtl::OUString &rTxt );
-SVL_DLLPUBLIC BOOL RemoveHyphens( rtl::OUString &rTxt );
-SVL_DLLPUBLIC BOOL RemoveControlChars( rtl::OUString &rTxt );
+SVL_DLLPUBLIC INT32 GetNumControlChars( const rtl::OUString &rTxt );
+SVL_DLLPUBLIC BOOL RemoveHyphens( rtl::OUString &rTxt );
+SVL_DLLPUBLIC BOOL RemoveControlChars( rtl::OUString &rTxt );
SVL_DLLPUBLIC BOOL ReplaceControlChars( rtl::OUString &rTxt, sal_Char aRplcChar = ' ' );
diff --git a/svl/inc/nfsymbol.hxx b/svl/inc/nfsymbol.hxx
index a21ffcaa34d6..675720b545cd 100644
--- a/svl/inc/nfsymbol.hxx
+++ b/svl/inc/nfsymbol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/numuno.hxx b/svl/inc/numuno.hxx
index 85db8c5906b9..68a9abf6c4ed 100644
--- a/svl/inc/numuno.hxx
+++ b/svl/inc/numuno.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace comphelper
//------------------------------------------------------------------
-// SvNumberFormatterServiceObj must be registered as service somewhere
+// SvNumberFormatterServiceObj must be registered as service somewhere
com::sun::star::uno::Reference<com::sun::star::uno::XInterface> SAL_CALL
SvNumberFormatterServiceObj_NewInstance(
@@ -52,28 +52,28 @@ com::sun::star::uno::Reference<com::sun::star::uno::XInterface> SAL_CALL
//------------------------------------------------------------------
-// SvNumberFormatsSupplierObj: aggregate to document,
-// construct with SvNumberFormatter
+// SvNumberFormatsSupplierObj: aggregate to document,
+// construct with SvNumberFormatter
class SVL_DLLPUBLIC SvNumberFormatsSupplierObj : public cppu::WeakAggImplHelper2<
com::sun::star::util::XNumberFormatsSupplier,
com::sun::star::lang::XUnoTunnel>
{
private:
- SvNumFmtSuppl_Impl* pImpl;
+ SvNumFmtSuppl_Impl* pImpl;
public:
SvNumberFormatsSupplierObj();
SvNumberFormatsSupplierObj(SvNumberFormatter* pForm);
- virtual ~SvNumberFormatsSupplierObj();
+ virtual ~SvNumberFormatsSupplierObj();
- void SetNumberFormatter(SvNumberFormatter* pNew);
- SvNumberFormatter* GetNumberFormatter() const;
+ void SetNumberFormatter(SvNumberFormatter* pNew);
+ SvNumberFormatter* GetNumberFormatter() const;
// ueberladen, um Attribute im Dokument anzupassen
- virtual void NumberFormatDeleted(sal_uInt32 nKey);
+ virtual void NumberFormatDeleted(sal_uInt32 nKey);
// ueberladen, um evtl. neu zu formatieren
- virtual void SettingsChanged();
+ virtual void SettingsChanged();
// XNumberFormatsSupplier
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
@@ -84,7 +84,7 @@ public:
throw(::com::sun::star::uno::RuntimeException);
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
+ virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
sal_Int8 >& aIdentifier )
throw(::com::sun::star::uno::RuntimeException);
diff --git a/svl/inc/outstrm.hxx b/svl/inc/outstrm.hxx
index d147d2741700..0071cfff0fa4 100644
--- a/svl/inc/outstrm.hxx
+++ b/svl/inc/outstrm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/pch/precompiled_svl.cxx b/svl/inc/pch/precompiled_svl.cxx
index 1280dea3545d..a3282d5ab5ee 100644
--- a/svl/inc/pch/precompiled_svl.cxx
+++ b/svl/inc/pch/precompiled_svl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/pickerhelper.hxx b/svl/inc/pickerhelper.hxx
index bf877722f541..362268a65b2a 100644
--- a/svl/inc/pickerhelper.hxx
+++ b/svl/inc/pickerhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/pickerhistory.hxx b/svl/inc/pickerhistory.hxx
index 45f9ab15c33b..bbaa3d8ce088 100644
--- a/svl/inc/pickerhistory.hxx
+++ b/svl/inc/pickerhistory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ namespace svt
GetTopMostFilePicker( );
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // SVTOOLS_PICKERHISTORY_HXX
diff --git a/svl/inc/pickerhistoryaccess.hxx b/svl/inc/pickerhistoryaccess.hxx
index 392933a431a4..c086f8124b31 100644
--- a/svl/inc/pickerhistoryaccess.hxx
+++ b/svl/inc/pickerhistoryaccess.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace svt
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxPicker );
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // SVTOOLS_PICKERHISTORYACCESS_HXX
diff --git a/svl/inc/poolcach.hxx b/svl/inc/poolcach.hxx
index 7552d697f5ad..a4e51f51ef8e 100644
--- a/svl/inc/poolcach.hxx
+++ b/svl/inc/poolcach.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,10 +39,10 @@ class SfxSetItem;
class SVL_DLLPUBLIC SfxItemPoolCache
{
- SfxItemPool *pPool;
- SfxItemModifyArr_Impl *pCache;
- const SfxItemSet *pSetToPut;
- const SfxPoolItem *pItemToPut;
+ SfxItemPool *pPool;
+ SfxItemModifyArr_Impl *pCache;
+ const SfxItemSet *pSetToPut;
+ const SfxPoolItem *pItemToPut;
public:
SfxItemPoolCache( SfxItemPool *pPool,
@@ -51,7 +51,7 @@ public:
const SfxItemSet *pPutSet );
~SfxItemPoolCache();
- const SfxSetItem& ApplyTo( const SfxSetItem& rSetItem, BOOL bNew = FALSE );
+ const SfxSetItem& ApplyTo( const SfxSetItem& rSetItem, BOOL bNew = FALSE );
};
diff --git a/svl/inc/strmadpt.hxx b/svl/inc/strmadpt.hxx
index 8505bd0f786d..81a70b610f2c 100644
--- a/svl/inc/strmadpt.hxx
+++ b/svl/inc/strmadpt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/stylepool.hxx b/svl/inc/stylepool.hxx
index c6db7d42c707..0689775095ce 100644
--- a/svl/inc/stylepool.hxx
+++ b/svl/inc/stylepool.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/aeitem.hxx b/svl/inc/svl/aeitem.hxx
index 373316882829..0362355fb1ad 100644
--- a/svl/inc/svl/aeitem.hxx
+++ b/svl/inc/svl/aeitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,11 +37,11 @@ class SvUShorts;
class SVL_DLLPUBLIC SfxAllEnumItem: public SfxEnumItem
{
- SfxAllEnumValueArr* pValues;
- SvUShorts* pDisabledValues;
+ SfxAllEnumValueArr* pValues;
+ SvUShorts* pDisabledValues;
protected:
- USHORT _GetPosByValue( USHORT nValue ) const;
+ USHORT _GetPosByValue( USHORT nValue ) const;
public:
TYPEINFO();
@@ -54,19 +54,19 @@ public:
~SfxAllEnumItem();
void InsertValue( USHORT nValue );
- void InsertValue( USHORT nValue, const XubString &rText );
+ void InsertValue( USHORT nValue, const XubString &rText );
void RemoveValue( USHORT nValue );
- void RemoveAllValues();
+ void RemoveAllValues();
- USHORT GetPosByValue( USHORT nValue ) const;
+ USHORT GetPosByValue( USHORT nValue ) const;
- virtual USHORT GetValueCount() const;
- virtual USHORT GetValueByPos( USHORT nPos ) const;
- virtual XubString GetValueTextByPos( USHORT nPos ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT nVersion) const;
- virtual BOOL IsEnabled( USHORT ) const;
- void DisableValue( USHORT );
+ virtual USHORT GetValueCount() const;
+ virtual USHORT GetValueByPos( USHORT nPos ) const;
+ virtual XubString GetValueTextByPos( USHORT nPos ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT nVersion) const;
+ virtual BOOL IsEnabled( USHORT ) const;
+ void DisableValue( USHORT );
};
#endif
diff --git a/svl/inc/svl/asiancfg.hxx b/svl/inc/svl/asiancfg.hxx
index a646b26733b3..46cfee73c4e8 100644
--- a/svl/inc/svl/asiancfg.hxx
+++ b/svl/inc/svl/asiancfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/brdcst.hxx b/svl/inc/svl/brdcst.hxx
index 03c5a8316ee1..3aeba2aeedde 100644
--- a/svl/inc/svl/brdcst.hxx
+++ b/svl/inc/svl/brdcst.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,31 +45,31 @@ class SVL_DLLPUBLIC SfxBroadcaster
{
friend class SfxListener;
- SfxListenerArr_Impl aListeners;
+ SfxListenerArr_Impl aListeners;
private:
- BOOL AddListener( SfxListener& rListener );
- void RemoveListener( SfxListener& rListener );
- const SfxBroadcaster& operator=(const SfxBroadcaster &); // verboten
+ BOOL AddListener( SfxListener& rListener );
+ void RemoveListener( SfxListener& rListener );
+ const SfxBroadcaster& operator=(const SfxBroadcaster &); // verboten
protected:
- void Forward(SfxBroadcaster& rBC, const SfxHint& rHint);
- virtual void ListenersGone();
+ void Forward(SfxBroadcaster& rBC, const SfxHint& rHint);
+ virtual void ListenersGone();
public:
TYPEINFO();
SfxBroadcaster();
SfxBroadcaster( const SfxBroadcaster &rBC );
- virtual ~SfxBroadcaster();
+ virtual ~SfxBroadcaster();
- void Broadcast( const SfxHint &rHint );
- void BroadcastDelayed( const SfxHint& rHint );
- void BroadcastInIdle( const SfxHint& rHint );
+ void Broadcast( const SfxHint &rHint );
+ void BroadcastDelayed( const SfxHint& rHint );
+ void BroadcastInIdle( const SfxHint& rHint );
- BOOL HasListeners() const;
- USHORT GetListenerCount() const { return aListeners.Count(); }
- SfxListener* GetListener( USHORT nNo ) const
+ BOOL HasListeners() const;
+ USHORT GetListenerCount() const { return aListeners.Count(); }
+ SfxListener* GetListener( USHORT nNo ) const
{ return (SfxListener*) aListeners[nNo]; }
};
diff --git a/svl/inc/svl/cancel.hxx b/svl/inc/svl/cancel.hxx
index d893cc552a82..409f4ccc67f7 100644
--- a/svl/inc/svl/cancel.hxx
+++ b/svl/inc/svl/cancel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ typedef SvPtrarr SfxCancellables_Impl;
class SVL_DLLPUBLIC SfxCancelManager: public SfxBroadcaster
, public SvWeakBase
-/* [Beschreibung]
+/* [Beschreibung]
An Instanzen dieser Klasse k"onnen nebenl"aufige Prozesse angemeldet
werden, um vom Benutzer abbrechbar zu sein. Werden abbrechbare
@@ -71,22 +71,22 @@ class SVL_DLLPUBLIC SfxCancelManager: public SfxBroadcaster
*/
{
- SfxCancelManager* _pParent;
- SfxCancellables_Impl _aJobs;
+ SfxCancelManager* _pParent;
+ SfxCancellables_Impl _aJobs;
public:
SfxCancelManager( SfxCancelManager *pParent = 0 );
~SfxCancelManager();
BOOL CanCancel() const;
- void Cancel( BOOL bDeep );
- SfxCancelManager* GetParent() const { return _pParent; }
+ void Cancel( BOOL bDeep );
+ SfxCancelManager* GetParent() const { return _pParent; }
- void InsertCancellable( SfxCancellable *pJob );
- void RemoveCancellable( SfxCancellable *pJob );
- USHORT GetCancellableCount() const
+ void InsertCancellable( SfxCancellable *pJob );
+ void RemoveCancellable( SfxCancellable *pJob );
+ USHORT GetCancellableCount() const
{ return _aJobs.Count(); }
- SfxCancellable* GetCancellable( USHORT nPos ) const
+ SfxCancellable* GetCancellable( USHORT nPos ) const
{ return (SfxCancellable*) _aJobs[nPos]; }
};
@@ -95,7 +95,7 @@ SV_DECL_WEAK( SfxCancelManager )
class SVL_DLLPUBLIC SfxCancellable
-/* [Beschreibung]
+/* [Beschreibung]
Instanzen dieser Klasse werden immer an einem Cancel-Manager angemeldet,
der dadurch dem Benutzer signalisieren kann, ob abbrechbare Prozesse
@@ -116,27 +116,27 @@ class SVL_DLLPUBLIC SfxCancellable
*/
{
- SfxCancelManager* _pMgr;
- BOOL _bCancelled;
- String _aTitle;
+ SfxCancelManager* _pMgr;
+ BOOL _bCancelled;
+ String _aTitle;
public:
SfxCancellable( SfxCancelManager *pMgr,
const String &rTitle )
- : _pMgr( pMgr ),
+ : _pMgr( pMgr ),
_bCancelled( FALSE ),
_aTitle( rTitle )
{ pMgr->InsertCancellable( this ); }
- virtual ~SfxCancellable();
+ virtual ~SfxCancellable();
- void SetManager( SfxCancelManager *pMgr );
+ void SetManager( SfxCancelManager *pMgr );
SfxCancelManager* GetManager() const { return _pMgr; }
- virtual void Cancel();
- BOOL IsCancelled() const { return _bCancelled; }
- operator BOOL() const { return _bCancelled; }
- const String& GetTitle() const { return _aTitle; }
+ virtual void Cancel();
+ BOOL IsCancelled() const { return _bCancelled; }
+ operator BOOL() const { return _bCancelled; }
+ const String& GetTitle() const { return _aTitle; }
};
#endif
diff --git a/svl/inc/svl/cenumitm.hxx b/svl/inc/svl/cenumitm.hxx
index 785adccfb8e2..572415408038 100644
--- a/svl/inc/svl/cenumitm.hxx
+++ b/svl/inc/svl/cenumitm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,9 +55,9 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue(com::sun::star::uno::Any & rVal, BYTE = 0) const;
+ virtual bool QueryValue(com::sun::star::uno::Any & rVal, BYTE = 0) const;
- virtual bool PutValue(const com::sun::star::uno::Any & rVal, BYTE = 0);
+ virtual bool PutValue(const com::sun::star::uno::Any & rVal, BYTE = 0);
virtual USHORT GetValueCount() const = 0;
@@ -155,9 +155,9 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue(com::sun::star::uno::Any& rVal, BYTE = 0) const;
+ virtual bool QueryValue(com::sun::star::uno::Any& rVal, BYTE = 0) const;
- virtual bool PutValue(const com::sun::star::uno::Any& rVal, BYTE = 0);
+ virtual bool PutValue(const com::sun::star::uno::Any& rVal, BYTE = 0);
virtual SfxPoolItem * Create(SvStream & rStream, USHORT) const;
diff --git a/svl/inc/svl/cintitem.hxx b/svl/inc/svl/cintitem.hxx
index 91cb08344b22..21dd29d9a198 100644
--- a/svl/inc/svl/cintitem.hxx
+++ b/svl/inc/svl/cintitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,10 +65,10 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue(com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue(com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0) const;
- virtual bool PutValue(const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue(const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0);
virtual SfxPoolItem * Create(SvStream & rStream, USHORT) const;
@@ -127,10 +127,10 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue(com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue(com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0) const;
- virtual bool PutValue(const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue(const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0);
virtual SfxPoolItem * Create(SvStream & rStream, USHORT) const;
@@ -189,10 +189,10 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue(com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue(com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0) const;
- virtual bool PutValue(const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue(const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0);
virtual SfxPoolItem * Create(SvStream & rStream, USHORT) const;
@@ -251,10 +251,10 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue(com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue(com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0) const;
- virtual bool PutValue(const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue(const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0);
virtual SfxPoolItem * Create(SvStream & rStream, USHORT) const;
diff --git a/svl/inc/svl/cjkoptions.hxx b/svl/inc/svl/cjkoptions.hxx
index 430c8e57b045..ff7a6813a344 100644
--- a/svl/inc/svl/cjkoptions.hxx
+++ b/svl/inc/svl/cjkoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/cnclhint.hxx b/svl/inc/svl/cnclhint.hxx
index a375322ed643..d287c96f7c30 100644
--- a/svl/inc/svl/cnclhint.hxx
+++ b/svl/inc/svl/cnclhint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,13 +32,13 @@
#include <svl/cancel.hxx>
#include <tools/rtti.hxx>
-#define SFXCANCELHINT_REMOVED 1
+#define SFXCANCELHINT_REMOVED 1
class SfxCancelHint: public SfxHint
{
private:
SfxCancellable* pCancellable;
- USHORT nAction;
+ USHORT nAction;
public:
TYPEINFO();
SfxCancelHint( SfxCancellable*, USHORT nAction );
diff --git a/svl/inc/svl/cntwall.hxx b/svl/inc/svl/cntwall.hxx
index dc36880daa1b..97db1f2014f1 100644
--- a/svl/inc/svl/cntwall.hxx
+++ b/svl/inc/svl/cntwall.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,9 +40,9 @@ class SvStream;
class SVL_DLLPUBLIC CntWallpaperItem : public SfxPoolItem
{
private:
- UniString _aURL;
- Color _nColor;
- USHORT _nStyle;
+ UniString _aURL;
+ Color _nColor;
+ USHORT _nStyle;
public:
TYPEINFO();
@@ -54,23 +54,23 @@ public:
virtual USHORT GetVersion(USHORT) const;
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT nItemVersion ) const;
- virtual SvStream& Store( SvStream&, USHORT nItemVersion ) const;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Create( SvStream&, USHORT nItemVersion ) const;
+ virtual SvStream& Store( SvStream&, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
- virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
- void SetBitmapURL( const UniString& rURL ) { _aURL = rURL; }
- void SetColor( Color nColor ) { _nColor = nColor; }
- void SetStyle( USHORT nStyle ) { _nStyle = nStyle; }
+ void SetBitmapURL( const UniString& rURL ) { _aURL = rURL; }
+ void SetColor( Color nColor ) { _nColor = nColor; }
+ void SetStyle( USHORT nStyle ) { _nStyle = nStyle; }
- const UniString& GetBitmapURL() const { return _aURL; }
- Color GetColor() const { return _nColor; }
- USHORT GetStyle() const { return _nStyle; }
+ const UniString& GetBitmapURL() const { return _aURL; }
+ Color GetColor() const { return _nColor; }
+ USHORT GetStyle() const { return _nStyle; }
};
////////////////////////////////////////////////////////////////////////////////
diff --git a/svl/inc/svl/ctloptions.hxx b/svl/inc/svl/ctloptions.hxx
index 0ef1952d90b9..a47a75d65cc8 100644
--- a/svl/inc/svl/ctloptions.hxx
+++ b/svl/inc/svl/ctloptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,13 +50,13 @@ public:
virtual ~SvtCTLOptions();
void SetCTLFontEnabled( sal_Bool _bEnabled );
- sal_Bool IsCTLFontEnabled() const;
+ sal_Bool IsCTLFontEnabled() const;
- void SetCTLSequenceChecking( sal_Bool _bEnabled );
- sal_Bool IsCTLSequenceChecking() const;
+ void SetCTLSequenceChecking( sal_Bool _bEnabled );
+ sal_Bool IsCTLSequenceChecking() const;
- void SetCTLSequenceCheckingRestricted( sal_Bool _bEnable );
- sal_Bool IsCTLSequenceCheckingRestricted( void ) const;
+ void SetCTLSequenceCheckingRestricted( sal_Bool _bEnable );
+ sal_Bool IsCTLSequenceCheckingRestricted( void ) const;
void SetCTLSequenceCheckingTypeAndReplace( sal_Bool _bEnable );
sal_Bool IsCTLSequenceCheckingTypeAndReplace() const;
@@ -66,8 +66,8 @@ public:
MOVEMENT_LOGICAL = 0,
MOVEMENT_VISUAL
};
- void SetCTLCursorMovement( CursorMovement _eMovement );
- CursorMovement GetCTLCursorMovement() const;
+ void SetCTLCursorMovement( CursorMovement _eMovement );
+ CursorMovement GetCTLCursorMovement() const;
enum TextNumerals
{
@@ -76,8 +76,8 @@ public:
NUMERALS_SYSTEM,
NUMERALS_CONTEXT
};
- void SetCTLTextNumerals( TextNumerals _eNumerals );
- TextNumerals GetCTLTextNumerals() const;
+ void SetCTLTextNumerals( TextNumerals _eNumerals );
+ TextNumerals GetCTLTextNumerals() const;
enum EOption
{
diff --git a/svl/inc/svl/ctypeitm.hxx b/svl/inc/svl/ctypeitm.hxx
index 03a10d99d951..357ba87f53bf 100644
--- a/svl/inc/svl/ctypeitm.hxx
+++ b/svl/inc/svl/ctypeitm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,14 +37,14 @@ class CntContentTypeItem : public CntUnencodedStringItem
{
private:
INetContentType _eType;
- XubString _aPresentation;
+ XubString _aPresentation;
public:
TYPEINFO();
CntContentTypeItem();
- CntContentTypeItem( USHORT nWhich, const XubString& rType );
- CntContentTypeItem( USHORT nWhich, const INetContentType eType );
+ CntContentTypeItem( USHORT nWhich, const XubString& rType );
+ CntContentTypeItem( USHORT nWhich, const INetContentType eType );
CntContentTypeItem( const CntContentTypeItem& rOrig );
virtual SfxPoolItem* Create( SvStream& rStream,
@@ -69,14 +69,14 @@ public:
XubString &rText,
const IntlWrapper* pIntlWrapper = 0 ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
- virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0);
INetContentType GetEnumValue() const;
- void SetValue( const INetContentType eType );
+ void SetValue( const INetContentType eType );
};
#endif /* !_SVTOOLS_CTYPEITM_HXX */
diff --git a/svl/inc/svl/custritm.hxx b/svl/inc/svl/custritm.hxx
index b84d8a8ee29b..2966c420048f 100644
--- a/svl/inc/svl/custritm.hxx
+++ b/svl/inc/svl/custritm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,10 +69,10 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue(com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue(com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0) const;
- virtual bool PutValue(const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue(const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0);
virtual SfxPoolItem * Clone(SfxItemPool * = 0) const;
diff --git a/svl/inc/svl/dateitem.hxx b/svl/inc/svl/dateitem.hxx
index 51770ab651a4..b5048d440d54 100644
--- a/svl/inc/svl/dateitem.hxx
+++ b/svl/inc/svl/dateitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ DBG_NAMEEX(SfxDateTimeItem)
class SfxDateTimeItem : public SfxPoolItem
{
private:
- DateTime aDateTime;
+ DateTime aDateTime;
public:
TYPEINFO();
@@ -55,12 +55,12 @@ public:
~SfxDateTimeItem() {
DBG_DTOR(SfxDateTimeItem, 0); }
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
using SfxPoolItem::Compare;
- virtual int Compare( const SfxPoolItem &rWith ) const;
- virtual SfxPoolItem* Create( SvStream&, USHORT nItemVersion ) const;
- virtual SvStream& Store( SvStream&, USHORT nItemVersion ) const;
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
+ virtual int Compare( const SfxPoolItem &rWith ) const;
+ virtual SfxPoolItem* Create( SvStream&, USHORT nItemVersion ) const;
+ virtual SvStream& Store( SvStream&, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -69,15 +69,15 @@ public:
const IntlWrapper * pIntlWrapper = 0 )
const;
- const DateTime& GetDateTime() const { return aDateTime; }
- void SetDateTime( const DateTime& rDT ) {
+ const DateTime& GetDateTime() const { return aDateTime; }
+ void SetDateTime( const DateTime& rDT ) {
DBG_ASSERT( GetRefCount() == 0,
"SetDateTime() with pooled item" );
aDateTime = rDT; }
- virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
};
@@ -93,7 +93,7 @@ public:
~SfxColumnDateTimeItem() {}
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/svl/inc/svl/documentlockfile.hxx b/svl/inc/svl/documentlockfile.hxx
index 3be029425c18..62ac1020dc0c 100644
--- a/svl/inc/svl/documentlockfile.hxx
+++ b/svl/inc/svl/documentlockfile.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/eitem.hxx b/svl/inc/svl/eitem.hxx
index c678ec9ab30a..c0374cf6154f 100644
--- a/svl/inc/svl/eitem.hxx
+++ b/svl/inc/svl/eitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/filerec.hxx b/svl/inc/svl/filerec.hxx
index 78f1e5933c05..42644dadd59b 100644
--- a/svl/inc/svl/filerec.hxx
+++ b/svl/inc/svl/filerec.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,29 +40,29 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
//------------------------------------------------------------------------
-#define SFX_BOOL_DONTCARE BOOL(2) // Don't-Care-Wert f"ur BOOLs
+#define SFX_BOOL_DONTCARE BOOL(2) // Don't-Care-Wert f"ur BOOLs
-#define SFX_REC_PRETAG_EXT BYTE(0x00) // Pre-Tag f"ur Extended-Records
-#define SFX_REC_PRETAG_EOR BYTE(0xFF) // Pre-Tag f"ur End-Of-Records
+#define SFX_REC_PRETAG_EXT BYTE(0x00) // Pre-Tag f"ur Extended-Records
+#define SFX_REC_PRETAG_EOR BYTE(0xFF) // Pre-Tag f"ur End-Of-Records
-#define SFX_REC_TYPE_NONE BYTE(0x00) // unbekannter Record-Typ
-#define SFX_REC_TYPE_FIRST BYTE(0x01)
-#define SFX_REC_TYPE_SINGLE BYTE(0x01) // Single-Content-Record
-#define SFX_REC_TYPE_FIXSIZE BYTE(0x02) // Fix-Size-Multi-Content-Record
-#define SFX_REC_TYPE_VARSIZE_RELOC BYTE(0x03) // variable Rec-Size
-#define SFX_REC_TYPE_VARSIZE BYTE(0x04) // alt (nicht verschiebbar)
-#define SFX_REC_TYPE_MIXTAGS_RELOC BYTE(0x07) // Mixed Tag Content-Record
-#define SFX_REC_TYPE_MIXTAGS BYTE(0x08) // alt (nicht verschiebbar)
-#define SFX_REC_TYPE_LAST BYTE(0x08)
-#define SFX_REC_TYPE_MINI 0x100 // Mini-Record
-#define SFX_REC_TYPE_DRAWENG 0x400 // Drawing-Engine-Record
-#define SFX_REC_TYPE_EOR 0xF00 // End-Of-Records
+#define SFX_REC_TYPE_NONE BYTE(0x00) // unbekannter Record-Typ
+#define SFX_REC_TYPE_FIRST BYTE(0x01)
+#define SFX_REC_TYPE_SINGLE BYTE(0x01) // Single-Content-Record
+#define SFX_REC_TYPE_FIXSIZE BYTE(0x02) // Fix-Size-Multi-Content-Record
+#define SFX_REC_TYPE_VARSIZE_RELOC BYTE(0x03) // variable Rec-Size
+#define SFX_REC_TYPE_VARSIZE BYTE(0x04) // alt (nicht verschiebbar)
+#define SFX_REC_TYPE_MIXTAGS_RELOC BYTE(0x07) // Mixed Tag Content-Record
+#define SFX_REC_TYPE_MIXTAGS BYTE(0x08) // alt (nicht verschiebbar)
+#define SFX_REC_TYPE_LAST BYTE(0x08)
+#define SFX_REC_TYPE_MINI 0x100 // Mini-Record
+#define SFX_REC_TYPE_DRAWENG 0x400 // Drawing-Engine-Record
+#define SFX_REC_TYPE_EOR 0xF00 // End-Of-Records
//------------------------------------------------------------------------
-#define SFX_REC_HEADERSIZE_MINI 4 // Gr"o\se des Mini-Record-Headers
-#define SFX_REC_HEADERSIZE_SINGLE 4 // zzgl. HEADERSIZE_MINI => 8
-#define SFX_REC_HEADERSIZE_MULTI 6 // zzgl. HEADERSIZE_SINGLE => 14
+#define SFX_REC_HEADERSIZE_MINI 4 // Gr"o\se des Mini-Record-Headers
+#define SFX_REC_HEADERSIZE_SINGLE 4 // zzgl. HEADERSIZE_MINI => 8
+#define SFX_REC_HEADERSIZE_MULTI 6 // zzgl. HEADERSIZE_SINGLE => 14
//------------------------------------------------------------------------
@@ -76,7 +76,7 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
//------------------------------------------------------------------------
-/* [Fileformat]
+/* [Fileformat]
Jeder Record beginnt mit einem Byte, dem sogenannten 'Pre-Tag'.
@@ -84,14 +84,14 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
Record, dessen Typ durch ein weiteres Byte an Position 5 n�her
beschrieben wird:
- 0x01: SfxSingleRecord
- 0x02: SfxMultiFixRecord
- 0x03+0x04: SfxMultiVarRecord
- 0x07+0x08: SfxMultiMixRecord
+ 0x01: SfxSingleRecord
+ 0x02: SfxMultiFixRecord
+ 0x03+0x04: SfxMultiVarRecord
+ 0x07+0x08: SfxMultiMixRecord
(Alle weiteren Record-Typ-Kennungen sind reserviert.)
I.d.R. werden File-Formate schon aus Performance-Gr"unden so aufgebaut,
- da\s beim Lesen jeweils vorher schon feststeht, welcher Record-Typ
+ da\s beim Lesen jeweils vorher schon feststeht, welcher Record-Typ
vorliegt. Diese Kennung dient daher hautps"achlich der "Uberpr"ufung
und File-Viewern, die das genaue File-Format (unterhalb der Records)
nicht kennen.
@@ -125,9 +125,9 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
Struktur des Mini-Records:
- 1 BYTE Pre-Tag
- 3 BYTE OffsetToEndOfRec
- OffsetToEndOfRec* 1 BYTE Content
+ 1 BYTE Pre-Tag
+ 3 BYTE OffsetToEndOfRec
+ OffsetToEndOfRec* 1 BYTE Content
Bei den Extended-Reords folgt auf diesen 4-Byte-Header ein erweiterter
Header, der zun"achst den o.g. Record-Typ, dann eine Versions-Kennung
@@ -135,13 +135,13 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
Struktur des Extended-Records:
- 1 BYTE Pre-Tag (==0x00)
- 3 BYTE OffsetToEndOfRec
- OffsetToEndOfRec* 1 BYTE Content
- 1 BYTE Record-Type
- 1 BYTE Version
- 2 BYTE Tag
- ContentSize* 1 BYTE Content
+ 1 BYTE Pre-Tag (==0x00)
+ 3 BYTE OffsetToEndOfRec
+ OffsetToEndOfRec* 1 BYTE Content
+ 1 BYTE Record-Type
+ 1 BYTE Version
+ 2 BYTE Tag
+ ContentSize* 1 BYTE Content
(ContentSize = OffsetToEndOfRec - 8)
@@ -152,24 +152,24 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
Der SW-Record-Typ war zuerst vorhanden, mu\ste also 1:1 "ubernommen
werden. Zum Gl"uck wurden einige Record-Tags nicht verwendet, (Z.B.
0x00 und 0xFF).
- => 1. Byte 0x00 kann als Kennung f"ur erweiterten Record verwendet werden
- => 1. Byte 0xFF kann f"ur besondere Zwecke verwendet werden
+ => 1. Byte 0x00 kann als Kennung f"ur erweiterten Record verwendet werden
+ => 1. Byte 0xFF kann f"ur besondere Zwecke verwendet werden
- Egal welcher Record-Typ vorliegt, sollte eine Erkennung des Typs, ein
+ Egal welcher Record-Typ vorliegt, sollte eine Erkennung des Typs, ein
Auslesen des Headers und ein "uberpspringen des Records m"oglich sein,
ohne zu"uck-seeken zu m"ussen und ohne "uberfl"ussige Daten lesen zu
m"ussen.
- => die Bytes 2-4 werden bei allen Records als Offset zum Ende des
+ => die Bytes 2-4 werden bei allen Records als Offset zum Ende des
Records interpretiert, so da\s die Gesamt-Recors-Size sich wie
folgt berechnet: sizeof(UINT32) + OffsetToEndOfRec
Die Records sollten einfach zu parsen un einheitlich aufgebaut sein.
- => Sie bauen aufeinander auf, so ist z.B. der SfxMiniRecord in jedem
+ => Sie bauen aufeinander auf, so ist z.B. der SfxMiniRecord in jedem
anderen enthalten.
Die Records sollten auch von denen der Drawing Enginge unterscheidbar
sein. Diese beginnen mit 'DRMD' und 'DRVW'.
- => Mini-Records mit dem Pre-Tag 'D' d"urfen maximal 4MB gro\s sein,
+ => Mini-Records mit dem Pre-Tag 'D' d"urfen maximal 4MB gro\s sein,
um nicht in diesen Kennungs-Bereich zu reichen.
[Erweiterungen]
@@ -189,7 +189,7 @@ SV_DECL_VARARR( SfxUINT32s, UINT32, 8, 8 )
class SVL_DLLPUBLIC SfxMiniRecordWriter
-/* [Beschreibung]
+/* [Beschreibung]
Mit Instanzen dieser Klasse kann ein einfacher Record in einen Stream
geschrieben werden, der sich durch ein BYTE-Tag identifiziert, sowie
@@ -207,9 +207,9 @@ class SVL_DLLPUBLIC SfxMiniRecordWriter
[Fileformat]
- 1* BYTE Content-Tag (!= 0)
- 1* 3-BYTE OffsetToEndOfRec in Bytes
- SizeOfContent* BYTE Content
+ 1* BYTE Content-Tag (!= 0)
+ 1* 3-BYTE OffsetToEndOfRec in Bytes
+ SizeOfContent* BYTE Content
[Beispiel]
@@ -222,25 +222,25 @@ class SVL_DLLPUBLIC SfxMiniRecordWriter
{
protected:
- SvStream* _pStream; // <SvStream>, in dem der Record liegt
- UINT32 _nStartPos; // Start-Position des Gesamt-Records im Stream
+ SvStream* _pStream; // <SvStream>, in dem der Record liegt
+ UINT32 _nStartPos; // Start-Position des Gesamt-Records im Stream
bool _bHeaderOk; /* TRUE, wenn der Header schon geschrieben ist;
bei DBG_UTIL wird SFX_BOOL_DONTCARE ver-
wendet, um die Gr"o\se von Fix-Sized-Records
zu pr"ufen. */
- BYTE _nPreTag; // in den Header zu schreibendes 'Pre-Tag'
+ BYTE _nPreTag; // in den Header zu schreibendes 'Pre-Tag'
public:
- inline SfxMiniRecordWriter( SvStream *pStream,
+ inline SfxMiniRecordWriter( SvStream *pStream,
BYTE nTag );
- inline SfxMiniRecordWriter( SvStream *pStream, BYTE nTag,
+ inline SfxMiniRecordWriter( SvStream *pStream, BYTE nTag,
UINT32 nSize );
- inline ~SfxMiniRecordWriter();
+ inline ~SfxMiniRecordWriter();
inline SvStream& operator*() const;
- inline void Reset();
+ inline void Reset();
UINT32 Close( bool bSeekToEndOfRec = true );
@@ -254,7 +254,7 @@ private:
class SVL_DLLPUBLIC SfxMiniRecordReader
-/* [Beschreibung]
+/* [Beschreibung]
Mit Instanzen dieser Klasse kann ein einfacher Record aus einem Stream
gelesen werden, der mit der Klasse <SfxRecordWriter> geschrieben wurde.
@@ -280,14 +280,14 @@ class SVL_DLLPUBLIC SfxMiniRecordReader
{
protected:
- SvStream* _pStream; // <SvStream>, aus dem gelesen wird
- UINT32 _nEofRec; // Position direkt hinter dem Record
+ SvStream* _pStream; // <SvStream>, aus dem gelesen wird
+ UINT32 _nEofRec; // Position direkt hinter dem Record
bool _bSkipped; // TRUE: der Record wurde explizit geskippt
- BYTE _nPreTag; // aus dem Header gelesenes Pre-Tag
+ BYTE _nPreTag; // aus dem Header gelesenes Pre-Tag
// Drei-Phasen-Ctor f"ur Subklassen
SfxMiniRecordReader() {}
- void Construct_Impl( SvStream *pStream, BYTE nTag )
+ void Construct_Impl( SvStream *pStream, BYTE nTag )
{
_pStream = pStream;
_bSkipped = FALSE;
@@ -296,25 +296,25 @@ protected:
inline bool SetHeader_Impl( UINT32 nHeader );
// als ung"ultig markieren und zur"uck-seeken
- void SetInvalid_Impl( UINT32 nRecordStartPos )
+ void SetInvalid_Impl( UINT32 nRecordStartPos )
{
_nPreTag = SFX_REC_PRETAG_EOR;
_pStream->Seek( nRecordStartPos );
}
public:
- static USHORT ScanRecordType( SvStream *pStream );
+ static USHORT ScanRecordType( SvStream *pStream );
SfxMiniRecordReader( SvStream *pStream );
SfxMiniRecordReader( SvStream *pStream, BYTE nTag );
- inline ~SfxMiniRecordReader();
+ inline ~SfxMiniRecordReader();
- inline BYTE GetTag() const;
+ inline BYTE GetTag() const;
inline bool IsValid() const;
- inline SvStream& operator*() const;
+ inline SvStream& operator*() const;
- inline void Skip();
+ inline void Skip();
private:
// not implementend, not allowed
@@ -326,7 +326,7 @@ private:
class SVL_DLLPUBLIC SfxSingleRecordWriter: public SfxMiniRecordWriter
-/* [Beschreibung]
+/* [Beschreibung]
Mit Instanzen dieser Klasse kann ein Record in einen Stream geschrieben
werden, dessen einziger Inhalt sich durch ein UINT16-Tag und eine
@@ -344,12 +344,12 @@ class SVL_DLLPUBLIC SfxSingleRecordWriter: public SfxMiniRecordWriter
[Fileformat]
- 1* BYTE Pre-Tag (!= 0)
- 1* 3-BYTE OffsetToEndOfRec in Bytes
- 1* BYTE Record-Type (==SFX_REC_TYPE_SINGLE)
- 1* BYTE Content-Version
- 1* USHORT Content-Tag
- SizeOfContent* BYTE Content
+ 1* BYTE Pre-Tag (!= 0)
+ 1* 3-BYTE OffsetToEndOfRec in Bytes
+ 1* BYTE Record-Type (==SFX_REC_TYPE_SINGLE)
+ 1* BYTE Content-Version
+ 1* USHORT Content-Tag
+ SizeOfContent* BYTE Content
[Beispiel]
@@ -373,7 +373,7 @@ public:
UINT16 nTag, BYTE nCurVer,
UINT32 nSize );
- inline void Reset();
+ inline void Reset();
UINT32 Close( bool bSeekToEndOfRec = true );
};
@@ -382,7 +382,7 @@ public:
class SVL_DLLPUBLIC SfxSingleRecordReader: public SfxMiniRecordReader
-/* [Beschreibung]
+/* [Beschreibung]
Mit Instanzen dieser Klasse kann ein einfacher Record aus einem Stream
gelesen werden, der mit der Klasse <SfxSingleRecordWriter> geschrieben
@@ -410,13 +410,13 @@ class SVL_DLLPUBLIC SfxSingleRecordReader: public SfxMiniRecordReader
{
protected:
- UINT16 _nRecordTag; // Art des Gesamt-Inhalts
- BYTE _nRecordVer; // Version des Gesamt-Inhalts
- BYTE _nRecordType; // Record Type aus dem Header
+ UINT16 _nRecordTag; // Art des Gesamt-Inhalts
+ BYTE _nRecordVer; // Version des Gesamt-Inhalts
+ BYTE _nRecordType; // Record Type aus dem Header
// Drei-Phasen-Ctor f"ur Subklassen
SfxSingleRecordReader() {}
- void Construct_Impl( SvStream *pStream )
+ void Construct_Impl( SvStream *pStream )
{
SfxMiniRecordReader::Construct_Impl(
pStream, SFX_REC_PRETAG_EXT );
@@ -428,9 +428,9 @@ public:
SfxSingleRecordReader( SvStream *pStream );
SfxSingleRecordReader( SvStream *pStream, USHORT nTag );
- inline UINT16 GetTag() const;
+ inline UINT16 GetTag() const;
- inline BYTE GetVersion() const;
+ inline BYTE GetVersion() const;
inline bool HasVersion( USHORT nVersion ) const;
};
@@ -438,10 +438,10 @@ public:
class SVL_DLLPUBLIC SfxMultiFixRecordWriter: public SfxSingleRecordWriter
-/* [Beschreibung]
+/* [Beschreibung]
Mit Instanzen dieser Klasse kann ein Record in einen Stream geschrieben
- werden, der seine eigene L"ange speichert und somit auch von "alteren
+ werden, der seine eigene L"ange speichert und somit auch von "alteren
Versionen bzw. Readern, die diesen Record-Type (Tag) nicht kennen,
"ubersprungen werden kann.
@@ -459,15 +459,15 @@ class SVL_DLLPUBLIC SfxMultiFixRecordWriter: public SfxSingleRecordWriter
[Fileformat]
- 1* BYTE Pre-Tag (==0)
- 1* 3-BYTE OffsetToEndOfRec in Bytes
- 1* BYTE Record-Type (==SFX_REC_TYPE_FIXSIZE)
- 1* BYTE Content-Version
- 1* UINT16 Content-Tag
- 1* UINT16 NumberOfContents
- 1* UINT32 SizeOfEachContent
- NumberOfContents* (
- SizeOfEachContent BYTE Content
+ 1* BYTE Pre-Tag (==0)
+ 1* 3-BYTE OffsetToEndOfRec in Bytes
+ 1* BYTE Record-Type (==SFX_REC_TYPE_FIXSIZE)
+ 1* BYTE Content-Version
+ 1* UINT16 Content-Tag
+ 1* UINT16 NumberOfContents
+ 1* UINT32 SizeOfEachContent
+ NumberOfContents* (
+ SizeOfEachContent BYTE Content
)
[Beispiel]
@@ -485,11 +485,11 @@ class SVL_DLLPUBLIC SfxMultiFixRecordWriter: public SfxSingleRecordWriter
{
protected:
- UINT32 _nContentStartPos; /* Startposition des jeweiligen
+ UINT32 _nContentStartPos; /* Startposition des jeweiligen
Contents - nur bei DBG_UTIL
und f"ur Subklassen */
- UINT32 _nContentSize; // Gr"o\se jedes Contents
- UINT16 _nContentCount; // jeweilige Anzahl der Contents
+ UINT32 _nContentSize; // Gr"o\se jedes Contents
+ UINT16 _nContentCount; // jeweilige Anzahl der Contents
SfxMultiFixRecordWriter( BYTE nRecordType,
SvStream *pStream,
@@ -500,11 +500,11 @@ public:
SfxMultiFixRecordWriter( SvStream *pStream,
UINT16 nTag, BYTE nCurVer,
UINT32 nContentSize );
- inline ~SfxMultiFixRecordWriter();
+ inline ~SfxMultiFixRecordWriter();
- inline void NewContent();
+ inline void NewContent();
- inline void Reset();
+ inline void Reset();
UINT32 Close( bool bSeekToEndOfRec = true );
};
@@ -513,10 +513,10 @@ public:
class SVL_DLLPUBLIC SfxMultiVarRecordWriter: public SfxMultiFixRecordWriter
-/* [Beschreibung]
+/* [Beschreibung]
Mit Instanzen dieser Klasse kann ein Record in einen Stream geschrieben
- werden, der seine eigene L"ange speichert und somit auch von "alteren
+ werden, der seine eigene L"ange speichert und somit auch von "alteren
Versionen bzw. Readern, die diesen Record-Type (Tag) nicht kennen,
"ubersprungen werden kann.
@@ -532,17 +532,17 @@ class SVL_DLLPUBLIC SfxMultiVarRecordWriter: public SfxMultiFixRecordWriter
[Fileformat]
- 1* BYTE Pre-Tag (==0)
- 1* 3-BYTE OffsetToEndOfRec in Bytes
- 1* BYTE Record-Type (==SFX_FILETYPE_TYPE_VARSIZE)
- 1* BYTE Content-Version
- 1* USHORT Content-Tag
- 1* UINT16 NumberOfContents
- 1* UINT32 OffsetToOfsTable
- NumberOfContents* (
- ContentSize* BYTE Content
+ 1* BYTE Pre-Tag (==0)
+ 1* 3-BYTE OffsetToEndOfRec in Bytes
+ 1* BYTE Record-Type (==SFX_FILETYPE_TYPE_VARSIZE)
+ 1* BYTE Content-Version
+ 1* USHORT Content-Tag
+ 1* UINT16 NumberOfContents
+ 1* UINT32 OffsetToOfsTable
+ NumberOfContents* (
+ ContentSize* BYTE Content
)
- NumberOfContents* UINT32 ContentOfs (je per <<8 verschoben)
+ NumberOfContents* UINT32 ContentOfs (je per <<8 verschoben)
[Beispiel]
@@ -559,7 +559,7 @@ class SVL_DLLPUBLIC SfxMultiVarRecordWriter: public SfxMultiFixRecordWriter
{
protected:
- SfxUINT32s _aContentOfs;
+ SfxUINT32s _aContentOfs;
USHORT _nContentVer; // nur f"ur SfxMultiMixRecordWriter
SfxMultiVarRecordWriter( BYTE nRecordType,
@@ -573,9 +573,9 @@ public:
SfxMultiVarRecordWriter( SvStream *pStream,
USHORT nRecordTag,
BYTE nRecordVer );
- virtual ~SfxMultiVarRecordWriter();
+ virtual ~SfxMultiVarRecordWriter();
- void NewContent();
+ void NewContent();
virtual UINT32 Close( bool bSeekToEndOfRec = true );
};
@@ -584,10 +584,10 @@ public:
class SVL_DLLPUBLIC SfxMultiMixRecordWriter: public SfxMultiVarRecordWriter
-/* [Beschreibung]
+/* [Beschreibung]
Mit Instanzen dieser Klasse kann ein Record in einen Stream geschrieben
- werden, der seine eigene L"ange speichert und somit auch von "alteren
+ werden, der seine eigene L"ange speichert und somit auch von "alteren
Versionen bzw. Readern, die diesen Record-Type (Tag) nicht kennen,
"ubersprungen werden kann.
@@ -602,27 +602,27 @@ class SVL_DLLPUBLIC SfxMultiMixRecordWriter: public SfxMultiVarRecordWriter
[Fileformat]
- 1* BYTE Pre-Tag (==0)
- 1* 3-BYTE OffsetToEndOfRec in Bytes
- 1* BYTE Record-Type (==SFX_REC_TYPE_MIXTAGS)
- 1* BYTE Content-Version
- 1* USHORT Record-Tag
- 1* UINT16 NumberOfContents
- 1* UINT32 OffsetToOfsTable
+ 1* BYTE Pre-Tag (==0)
+ 1* 3-BYTE OffsetToEndOfRec in Bytes
+ 1* BYTE Record-Type (==SFX_REC_TYPE_MIXTAGS)
+ 1* BYTE Content-Version
+ 1* USHORT Record-Tag
+ 1* UINT16 NumberOfContents
+ 1* UINT32 OffsetToOfsTable
NumberOfContents* (
1* USHORT Content-Tag
ContentSize* BYTE Content
)
- NumberOfContents* UINT32 ( ContentOfs << 8 + Version )
+ NumberOfContents* UINT32 ( ContentOfs << 8 + Version )
*/
{
public:
- inline SfxMultiMixRecordWriter( SvStream *pStream,
+ inline SfxMultiMixRecordWriter( SvStream *pStream,
USHORT nRecordTag,
BYTE nRecordVer );
- void NewContent( USHORT nTag, BYTE nVersion );
+ void NewContent( USHORT nTag, BYTE nVersion );
// private: geht nicht, da einige Compiler dann auch vorherige privat machen
void NewContent()
@@ -633,7 +633,7 @@ public:
class SVL_DLLPUBLIC SfxMultiRecordReader: public SfxSingleRecordReader
-/* [Beschreibung]
+/* [Beschreibung]
Mit Instanzen dieser Klasse kann ein aus mehreren Contents bestehender
Record aus einem Stream gelesen werden, der mit einer der Klassen
@@ -666,16 +666,16 @@ class SVL_DLLPUBLIC SfxMultiRecordReader: public SfxSingleRecordReader
*/
{
- UINT32 _nStartPos; // Start-Position des Records
- UINT32* _pContentOfs; // Offsets der Startpositionen
- UINT32 _nContentSize; // Size jedes einzelnen / Tabellen-Pos
- UINT16 _nContentCount; // Anzahl der Contents im Record
- UINT16 _nContentNo; /* der Index des aktuellen Contents
+ UINT32 _nStartPos; // Start-Position des Records
+ UINT32* _pContentOfs; // Offsets der Startpositionen
+ UINT32 _nContentSize; // Size jedes einzelnen / Tabellen-Pos
+ UINT16 _nContentCount; // Anzahl der Contents im Record
+ UINT16 _nContentNo; /* der Index des aktuellen Contents
enth"alt jeweils den Index des
Contents, der beim n"achsten
GetContent() geholt wird */
- UINT16 _nContentTag; // Art-Kennung des aktuellen Contents
- BYTE _nContentVer; // Versions-Kennung des akt. Contents
+ UINT16 _nContentTag; // Art-Kennung des aktuellen Contents
+ BYTE _nContentVer; // Versions-Kennung des akt. Contents
bool ReadHeader_Impl();
@@ -685,11 +685,11 @@ public:
~SfxMultiRecordReader();
bool GetContent();
- inline UINT16 GetContentTag();
- inline BYTE GetContentVersion() const;
+ inline UINT16 GetContentTag();
+ inline BYTE GetContentVersion() const;
inline bool HasContentVersion( USHORT nVersion ) const;
- inline UINT32 ContentCount() const;
+ inline UINT32 ContentCount() const;
};
//=========================================================================
@@ -722,12 +722,12 @@ inline SfxMiniRecordWriter::SfxMiniRecordWriter
inline SfxMiniRecordWriter::SfxMiniRecordWriter
(
- SvStream* pStream, // Stream, in dem der Record angelegt wird
- BYTE nTag, // Record-Tag zwischen 0x01 und 0xFE
- UINT32 nSize // Gr"o\se der Daten in Bytes
+ SvStream* pStream, // Stream, in dem der Record angelegt wird
+ BYTE nTag, // Record-Tag zwischen 0x01 und 0xFE
+ UINT32 nSize // Gr"o\se der Daten in Bytes
)
-/* [Beschreibung]
+/* [Beschreibung]
Legt in 'pStream' einen 'SfxMiniRecord' an, dessen Content-Gr"o\se
von vornherein bekannt ist.
@@ -749,7 +749,7 @@ inline SfxMiniRecordWriter::SfxMiniRecordWriter
inline SfxMiniRecordWriter::~SfxMiniRecordWriter()
-/* [Beschreibung]
+/* [Beschreibung]
Der Dtor der Klasse <SfxMiniRecordWriter> schlie\st den Record
automatisch, falls <SfxMiniRecordWriter::Close()> nicht bereits
@@ -766,7 +766,7 @@ inline SfxMiniRecordWriter::~SfxMiniRecordWriter()
inline SvStream& SfxMiniRecordWriter::operator*() const
-/* [Beschreibung]
+/* [Beschreibung]
Dieser Operator liefert den Stream, in dem der Record liegt.
Der Record darf noch nicht geschlossen worden sein.
@@ -779,7 +779,7 @@ inline SvStream& SfxMiniRecordWriter::operator*() const
//-------------------------------------------------------------------------
-inline void SfxMiniRecordWriter::Reset()
+inline void SfxMiniRecordWriter::Reset()
{
_pStream->Seek( _nStartPos + SFX_REC_HEADERSIZE_MINI );
_bHeaderOk = FALSE;
@@ -821,7 +821,7 @@ inline void SfxMiniRecordReader::Skip()
inline BYTE SfxMiniRecordReader::GetTag() const
-/* [Beschreibung]
+/* [Beschreibung]
Liefert des aus dem Header gelesene Pre-Tag des Records. Dieses kann
auch SFX_REC_PRETAG_EXT oder SFX_REC_PRETAG_EOR sein, im
@@ -838,7 +838,7 @@ inline BYTE SfxMiniRecordReader::GetTag() const
inline bool SfxMiniRecordReader::IsValid() const
-/* [Beschreibung]
+/* [Beschreibung]
Hiermit kann abgefragt werden, ob der Record erfolgreich aus dem
Stream konstruiert werden konnte, der Header also f"ur diesen Record-Typ
@@ -853,7 +853,7 @@ inline bool SfxMiniRecordReader::IsValid() const
inline SvStream& SfxMiniRecordReader::operator*() const
-/* [Beschreibung]
+/* [Beschreibung]
Dieser Operator liefert den Stream in dem der Record liegt.
Die aktuelle Position des Streams mu\s innerhalb des Records liegen.
@@ -868,7 +868,7 @@ inline SvStream& SfxMiniRecordReader::operator*() const
inline UINT32 SfxSingleRecordWriter::Close( bool bSeekToEndOfRec )
-// siehe <SfxMiniRecordWriter::Close(bool)>
+// siehe <SfxMiniRecordWriter::Close(bool)>
{
UINT32 nRet = 0;
@@ -891,13 +891,13 @@ inline UINT32 SfxSingleRecordWriter::Close( bool bSeekToEndOfRec )
#endif
// Record war bereits geschlossen
-// nRet = 0;
+// nRet = 0;
return nRet;
}
//-------------------------------------------------------------------------
-inline void SfxSingleRecordWriter::Reset()
+inline void SfxSingleRecordWriter::Reset()
{
_pStream->Seek( _nStartPos + SFX_REC_HEADERSIZE_MINI +
SFX_REC_HEADERSIZE_SINGLE );
@@ -921,7 +921,7 @@ inline UINT16 SfxSingleRecordReader::GetTag() const
inline BYTE SfxSingleRecordReader::GetVersion() const
-/* [Beschreibung]
+/* [Beschreibung]
Liefert die Version des aus dem Stream gelesenen Records.
*/
@@ -934,7 +934,7 @@ inline BYTE SfxSingleRecordReader::GetVersion() const
inline bool SfxSingleRecordReader::HasVersion( USHORT nVersion ) const
-/* [Beschreibung]
+/* [Beschreibung]
Stellt fest, ob der aus dem Stream gelese Record in der Version
'nVersion' oder h"oher vorliegt.
@@ -948,7 +948,7 @@ inline bool SfxSingleRecordReader::HasVersion( USHORT nVersion ) const
inline SfxMultiFixRecordWriter::~SfxMultiFixRecordWriter()
-/* [Beschreibung]
+/* [Beschreibung]
Der Dtor der Klasse <SfxMultiFixRecordWriter> schlie\st den Record
automatisch, falls <SfxMutiFixRecordWriter::Close()> nicht bereits
@@ -965,7 +965,7 @@ inline SfxMultiFixRecordWriter::~SfxMultiFixRecordWriter()
inline void SfxMultiFixRecordWriter::NewContent()
-/* [Beschreibung]
+/* [Beschreibung]
Mit dieser Methode wird in den Record ein neuer Content eingef"ugt.
Jeder, auch der 1. Record mu\s durch Aufruf dieser Methode eingeleitet
@@ -998,9 +998,9 @@ inline void SfxMultiFixRecordWriter::NewContent()
inline SfxMultiMixRecordWriter::SfxMultiMixRecordWriter
(
- SvStream* pStream, // Stream, in dem der Record angelegt wird
- USHORT nRecordTag, // Gesamt-Record-Art-Kennung
- BYTE nRecordVer // Gesamt-Record-Versions-Kennung
+ SvStream* pStream, // Stream, in dem der Record angelegt wird
+ USHORT nRecordTag, // Gesamt-Record-Art-Kennung
+ BYTE nRecordVer // Gesamt-Record-Versions-Kennung
)
/* [Beschreibung]
@@ -1010,14 +1010,14 @@ inline SfxMultiMixRecordWriter::SfxMultiMixRecordWriter
Die Gr"o\sen der einzelnen Contents werden automatisch ermittelt.
*/
-: SfxMultiVarRecordWriter( SFX_REC_TYPE_MIXTAGS,
+: SfxMultiVarRecordWriter( SFX_REC_TYPE_MIXTAGS,
pStream, nRecordTag, nRecordVer )
{
}
//=========================================================================
-inline void SfxMultiFixRecordWriter::Reset()
+inline void SfxMultiFixRecordWriter::Reset()
{
_pStream->Seek( _nStartPos + SFX_REC_HEADERSIZE_MINI +
SFX_REC_HEADERSIZE_SINGLE +
@@ -1029,7 +1029,7 @@ inline void SfxMultiFixRecordWriter::Reset()
inline UINT16 SfxMultiRecordReader::GetContentTag()
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode liefert die Art-Kennung des zuletzt mit der Methode
<SfxMultiRecordReder::GetContent()> ge"offneten Contents.
@@ -1072,7 +1072,7 @@ inline bool SfxMultiRecordReader::HasContentVersion( USHORT nVersion ) const
inline UINT32 SfxMultiRecordReader::ContentCount() const
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode liefert die Anzahl im Record befindlichen Contents.
*/
diff --git a/svl/inc/svl/flagitem.hxx b/svl/inc/svl/flagitem.hxx
index e424372d52c9..885f05550757 100644
--- a/svl/inc/svl/flagitem.hxx
+++ b/svl/inc/svl/flagitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ DBG_NAMEEX_VISIBILITY(SfxFlagItem, SVL_DLLPUBLIC)
class SVL_DLLPUBLIC SfxFlagItem: public SfxPoolItem
{
- USHORT nVal;
+ USHORT nVal;
public:
TYPEINFO();
@@ -55,27 +55,27 @@ public:
~SfxFlagItem() {
DBG_DTOR(SfxFlagItem, 0); }
- virtual BYTE GetFlagCount() const;
- virtual XubString GetFlagText( BYTE nFlag ) const;
+ virtual BYTE GetFlagCount() const;
+ virtual XubString GetFlagText( BYTE nFlag ) const;
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Create(SvStream &, USHORT nVersion) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
XubString &rText,
const IntlWrapper * = 0 ) const;
USHORT GetValue() const { return nVal; }
- void SetValue( USHORT nNewVal ) {
+ void SetValue( USHORT nNewVal ) {
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
nVal = nNewVal;
}
- int GetFlag( BYTE nFlag ) const {
+ int GetFlag( BYTE nFlag ) const {
return ( (nVal & nSfxFlagVal[nFlag]) != 0 ); }
- void SetFlag( BYTE nFlag, int bVal );
+ void SetFlag( BYTE nFlag, int bVal );
};
#endif
diff --git a/svl/inc/svl/globalnameitem.hxx b/svl/inc/svl/globalnameitem.hxx
index 2db51b22999e..9941407b6210 100644
--- a/svl/inc/svl/globalnameitem.hxx
+++ b/svl/inc/svl/globalnameitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@
class SVL_DLLPUBLIC SfxGlobalNameItem: public SfxPoolItem
{
- SvGlobalName m_aName;
+ SvGlobalName m_aName;
public:
TYPEINFO();
@@ -46,13 +46,13 @@ public:
SfxGlobalNameItem( USHORT nWhich, const SvGlobalName& );
~SfxGlobalNameItem();
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- SvGlobalName GetValue() const { return m_aName; }
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ SvGlobalName GetValue() const { return m_aName; }
- virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
};
diff --git a/svl/inc/svl/hint.hxx b/svl/inc/svl/hint.hxx
index 49ab106e45e3..9c80d770e28d 100644
--- a/svl/inc/svl/hint.hxx
+++ b/svl/inc/svl/hint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,13 +57,13 @@ public:
}
#define IMPL_PTRHINT_AUTODELETE(Name, Type) \
- TYPEINIT1(Name, SfxHint); \
+ TYPEINIT1(Name, SfxHint); \
Name::Name( Type* pObject, BOOL bOwnedByHint ) \
{ pObj = pObject; bIsOwner = bOwnedByHint; } \
Name::~Name() { if ( bIsOwner ) delete pObj; }
#define IMPL_PTRHINT(Name, Type) \
- TYPEINIT1(Name, SfxHint); \
+ TYPEINIT1(Name, SfxHint); \
Name::Name( Type* pObject, BOOL bOwnedByHint ) \
{ pObj = pObject; bIsOwner = bOwnedByHint; } \
Name::~Name() {}
diff --git a/svl/inc/svl/httpcook.hxx b/svl/inc/svl/httpcook.hxx
index ab5dc857ef7f..26dafe693ca7 100644
--- a/svl/inc/svl/httpcook.hxx
+++ b/svl/inc/svl/httpcook.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -134,10 +134,10 @@ enum CntHTTPCookieRequestType
struct CntHTTPCookieRequest
{
- const String& m_rURL;
- List& m_rCookieList;
+ const String& m_rURL;
+ List& m_rCookieList;
CntHTTPCookieRequestType m_eType;
- USHORT m_nRet;
+ USHORT m_nRet;
CntHTTPCookieRequest (
const String& rURL,
diff --git a/svl/inc/svl/ilstitem.hxx b/svl/inc/svl/ilstitem.hxx
index abe4100407ce..2e37697d9127 100644
--- a/svl/inc/svl/ilstitem.hxx
+++ b/svl/inc/svl/ilstitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ public:
void GetList( SvULongs& rList ) const;
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual bool PutValue ( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
diff --git a/svl/inc/svl/imageitm.hxx b/svl/inc/svl/imageitm.hxx
index 7e6bbf3d0a1e..6f988d06afc8 100644
--- a/svl/inc/svl/imageitm.hxx
+++ b/svl/inc/svl/imageitm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ public:
SfxImageItem( const SfxImageItem& );
virtual ~SfxImageItem();
- virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
diff --git a/svl/inc/svl/inethist.hxx b/svl/inc/svl/inethist.hxx
index 8dbc20c51324..ebbbf9842176 100644
--- a/svl/inc/svl/inethist.hxx
+++ b/svl/inc/svl/inethist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/inettype.hxx b/svl/inc/svl/inettype.hxx
index 13f7997b680d..debf11b51f56 100644
--- a/svl/inc/svl/inettype.hxx
+++ b/svl/inc/svl/inettype.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -237,7 +237,7 @@ enum INetContentType
CONTENT_TYPE_IMAGE_JPEG,
CONTENT_TYPE_IMAGE_PCX,
CONTENT_TYPE_IMAGE_PNG,
- CONTENT_TYPE_IMAGE_TIFF,
+ CONTENT_TYPE_IMAGE_TIFF,
CONTENT_TYPE_IMAGE_BMP,
CONTENT_TYPE_TEXT_HTML,
CONTENT_TYPE_TEXT_PLAIN,
diff --git a/svl/inc/svl/intitem.hxx b/svl/inc/svl/intitem.hxx
index d6f7239df0ce..843e5df252a1 100644
--- a/svl/inc/svl/intitem.hxx
+++ b/svl/inc/svl/intitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,10 +83,10 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
virtual SfxPoolItem * Create(SvStream & rStream, USHORT) const;
diff --git a/svl/inc/svl/isethint.hxx b/svl/inc/svl/isethint.hxx
index d03cd6942960..95c0d5c24496 100644
--- a/svl/inc/svl/isethint.hxx
+++ b/svl/inc/svl/isethint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,16 +38,16 @@ class SfxItemSet;
class SVL_DLLPUBLIC SfxItemSetHint: public SfxHint
{
- SfxItemSet* _pItemSet;
+ SfxItemSet* _pItemSet;
public:
TYPEINFO();
SfxItemSetHint( SfxItemSet *pItemSet );
SfxItemSetHint( const SfxItemSet &rItemSet );
- virtual ~SfxItemSetHint();
+ virtual ~SfxItemSetHint();
- const SfxItemSet& GetItemSet() const { return *_pItemSet; }
+ const SfxItemSet& GetItemSet() const { return *_pItemSet; }
};
#endif
diff --git a/svl/inc/svl/itemiter.hxx b/svl/inc/svl/itemiter.hxx
index a98f2da24d55..627b51087b25 100644
--- a/svl/inc/svl/itemiter.hxx
+++ b/svl/inc/svl/itemiter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,8 +39,8 @@ class SfxItemPool;
class SVL_DLLPUBLIC SfxItemIter
{
// Item-Feld - Start & Ende
- const SfxItemSet& _rSet;
- USHORT _nStt, _nEnd, _nAkt;
+ const SfxItemSet& _rSet;
+ USHORT _nStt, _nEnd, _nAkt;
public:
SfxItemIter( const SfxItemSet& rSet );
@@ -58,7 +58,7 @@ public:
const SfxPoolItem* NextItem();
const SfxPoolItem* PrevItem();
- BOOL IsAtStart() const { return _nAkt == _nStt; }
+ BOOL IsAtStart() const { return _nAkt == _nStt; }
BOOL IsAtEnd() const { return _nAkt == _nEnd; }
USHORT GetCurPos() const { return _nAkt; }
diff --git a/svl/inc/svl/itempool.hxx b/svl/inc/svl/itempool.hxx
index 04ae4f07d29b..82be869fa13c 100644
--- a/svl/inc/svl/itempool.hxx
+++ b/svl/inc/svl/itempool.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,27 +51,27 @@ DBG_NAMEEX(SfxItemPool)
//====================================================================
-#define SFX_ITEM_POOLABLE 0x0001
-#define SFX_ITEM_NOT_POOLABLE 0x0002
-
-#define SFX_ITEM_USERFLAG0 0x0100
-#define SFX_ITEM_USERFLAG1 0x0200
-#define SFX_ITEM_USERFLAG2 0x0400
-#define SFX_ITEM_USERFLAG3 0x0800
-#define SFX_ITEM_USERFLAG4 0x1000
-#define SFX_ITEM_USERFLAG5 0x2000
-#define SFX_ITEM_USERFLAG6 0x4000
-#define SFX_ITEM_USERFLAG7 0x8000
-#define SFX_ITEM_USERFLAG8 0x0010
-#define SFX_ITEM_USERFLAG9 0x0020
-#define SFX_ITEM_USERFLAGA 0x0040
-#define SFX_ITEM_USERFLAGB 0x0080
+#define SFX_ITEM_POOLABLE 0x0001
+#define SFX_ITEM_NOT_POOLABLE 0x0002
+
+#define SFX_ITEM_USERFLAG0 0x0100
+#define SFX_ITEM_USERFLAG1 0x0200
+#define SFX_ITEM_USERFLAG2 0x0400
+#define SFX_ITEM_USERFLAG3 0x0800
+#define SFX_ITEM_USERFLAG4 0x1000
+#define SFX_ITEM_USERFLAG5 0x2000
+#define SFX_ITEM_USERFLAG6 0x4000
+#define SFX_ITEM_USERFLAG7 0x8000
+#define SFX_ITEM_USERFLAG8 0x0010
+#define SFX_ITEM_USERFLAG9 0x0020
+#define SFX_ITEM_USERFLAGA 0x0040
+#define SFX_ITEM_USERFLAGB 0x0080
//====================================================================
struct SfxItemInfo
{
- USHORT _nSID;
+ USHORT _nSID;
USHORT _nFlags;
};
@@ -91,7 +91,7 @@ typedef ::std::vector< SfxItemPoolUser* > SfxItemPoolUserVector;
class SVL_DLLPUBLIC SfxItemPool
-/* [Beschreibung]
+/* [Beschreibung]
Die von dieser Klasse abgeleiteten Klassen dienen der Bereitstellung von
Defaults von SfxPoolItems und halten konkrete (konstante) Instanzen, die
@@ -108,20 +108,20 @@ class SVL_DLLPUBLIC SfxItemPool
SVL_DLLPRIVATE void readTheItems(SvStream & rStream, USHORT nCount, USHORT nVersion,
SfxPoolItem * pDefItem, SfxPoolItemArray_Impl ** pArr);
- UniString aName;
- USHORT nStart, nEnd;
- USHORT _nFileFormatVersion;
+ UniString aName;
+ USHORT nStart, nEnd;
+ USHORT _nFileFormatVersion;
#ifdef TF_POOLABLE
- const SfxItemInfo* pItemInfos;
+ const SfxItemInfo* pItemInfos;
#else
- USHORT* pSlotIds;
+ USHORT* pSlotIds;
#endif
- SfxItemPool_Impl* pImp;
- SfxPoolItem** ppStaticDefaults;
- SfxPoolItem** ppPoolDefaults;
- SfxItemPool* pSecondary;
- SfxItemPool* pMaster;
- USHORT* _pPoolRanges;
+ SfxItemPool_Impl* pImp;
+ SfxPoolItem** ppStaticDefaults;
+ SfxPoolItem** ppPoolDefaults;
+ SfxItemPool* pSecondary;
+ SfxItemPool* pMaster;
+ USHORT* _pPoolRanges;
bool bPersistentRefCounts;
private:
@@ -138,16 +138,16 @@ public:
friend class SfxPoolWhichMap;
private:
- inline USHORT GetIndex_Impl(USHORT nWhich) const;
- inline USHORT GetSize_Impl() const { return nEnd - nStart + 1; }
+ inline USHORT GetIndex_Impl(USHORT nWhich) const;
+ inline USHORT GetSize_Impl() const { return nEnd - nStart + 1; }
SVL_DLLPRIVATE SvStream& Load1_Impl( SvStream &rStream );
SVL_DLLPRIVATE bool IsItemFlag_Impl( USHORT nWhich, USHORT nFlag ) const;
public:
// fuer dflt. SfxItemSet::CTOR, setze dflt. WhichRanges
- void FillItemIdRanges_Impl( USHORT*& pWhichRanges ) const;
- const USHORT* GetFrozenIdRanges() const
+ void FillItemIdRanges_Impl( USHORT*& pWhichRanges ) const;
+ const USHORT* GetFrozenIdRanges() const
{ return _pPoolRanges; }
bool IsVer2_Impl() const;
@@ -155,9 +155,9 @@ public:
//---------------------------------------------------------------------
protected:
- static inline void SetRefCount( SfxPoolItem& rItem, ULONG n );
- static inline ULONG AddRef( const SfxPoolItem& rItem, ULONG n = 1 );
- static inline ULONG ReleaseRef( const SfxPoolItem& rItem, ULONG n = 1);
+ static inline void SetRefCount( SfxPoolItem& rItem, ULONG n );
+ static inline ULONG AddRef( const SfxPoolItem& rItem, ULONG n = 1 );
+ static inline ULONG ReleaseRef( const SfxPoolItem& rItem, ULONG n = 1);
public:
SfxItemPool( const SfxItemPool &rPool,
@@ -173,74 +173,74 @@ public:
#endif
bool bLoadRefCounts = true );
protected:
- virtual ~SfxItemPool();
+ virtual ~SfxItemPool();
public:
static void Free(SfxItemPool* pPool);
- SfxBroadcaster& BC();
+ SfxBroadcaster& BC();
- void SetPoolDefaultItem( const SfxPoolItem& );
- const SfxPoolItem* GetPoolDefaultItem( USHORT nWhich ) const;
+ void SetPoolDefaultItem( const SfxPoolItem& );
+ const SfxPoolItem* GetPoolDefaultItem( USHORT nWhich ) const;
void ResetPoolDefaultItem( USHORT nWhich );
void SetDefaults( SfxPoolItem **pDefaults );
- void ReleaseDefaults( BOOL bDelete = FALSE );
- static void ReleaseDefaults( SfxPoolItem **pDefaults, USHORT nCount, BOOL bDelete = FALSE );
+ void ReleaseDefaults( BOOL bDelete = FALSE );
+ static void ReleaseDefaults( SfxPoolItem **pDefaults, USHORT nCount, BOOL bDelete = FALSE );
- virtual SfxMapUnit GetMetric( USHORT nWhich ) const;
- void SetDefaultMetric( SfxMapUnit eNewMetric );
- virtual SfxItemPresentation GetPresentation( const SfxPoolItem& rItem,
+ virtual SfxMapUnit GetMetric( USHORT nWhich ) const;
+ void SetDefaultMetric( SfxMapUnit eNewMetric );
+ virtual SfxItemPresentation GetPresentation( const SfxPoolItem& rItem,
SfxItemPresentation ePresentation,
- SfxMapUnit ePresentationMetric,
- XubString& rText,
+ SfxMapUnit ePresentationMetric,
+ XubString& rText,
const IntlWrapper * pIntlWrapper
= 0 ) const;
- virtual SfxItemPool* Clone() const;
- UniString const & GetName() const { return aName; }
+ virtual SfxItemPool* Clone() const;
+ UniString const & GetName() const { return aName; }
- virtual const SfxPoolItem& Put( const SfxPoolItem&, USHORT nWhich = 0 );
- virtual void Remove( const SfxPoolItem& );
- virtual const SfxPoolItem& GetDefaultItem( USHORT nWhich ) const;
+ virtual const SfxPoolItem& Put( const SfxPoolItem&, USHORT nWhich = 0 );
+ virtual void Remove( const SfxPoolItem& );
+ virtual const SfxPoolItem& GetDefaultItem( USHORT nWhich ) const;
- const SfxPoolItem* LoadItem( SvStream &rStream,
+ const SfxPoolItem* LoadItem( SvStream &rStream,
bool bDirect = false,
const SfxItemPool *pRefPool = 0 );
bool StoreItem( SvStream &rStream,
const SfxPoolItem &rItem,
bool bDirect = false ) const;
- USHORT GetSurrogate(const SfxPoolItem *) const;
- const SfxPoolItem * GetItem(USHORT nWhich, USHORT nSurrogate) const;
- USHORT GetItemCount(USHORT nWhich) const;
- const SfxPoolItem* LoadSurrogate(SvStream& rStream,
+ USHORT GetSurrogate(const SfxPoolItem *) const;
+ const SfxPoolItem * GetItem(USHORT nWhich, USHORT nSurrogate) const;
+ USHORT GetItemCount(USHORT nWhich) const;
+ const SfxPoolItem* LoadSurrogate(SvStream& rStream,
USHORT &rWhich, USHORT nSlotId,
const SfxItemPool* pRefPool = 0 );
bool StoreSurrogate(SvStream& rStream,
const SfxPoolItem *pItem ) const;
- virtual SvStream & Load(SvStream &);
- virtual SvStream & Store(SvStream &) const;
- int HasPersistentRefCounts() const {
+ virtual SvStream & Load(SvStream &);
+ virtual SvStream & Store(SvStream &) const;
+ int HasPersistentRefCounts() const {
return bPersistentRefCounts; }
- void LoadCompleted();
+ void LoadCompleted();
- USHORT GetFirstWhich() const { return nStart; }
- USHORT GetLastWhich() const { return nEnd; }
+ USHORT GetFirstWhich() const { return nStart; }
+ USHORT GetLastWhich() const { return nEnd; }
bool IsInRange( USHORT nWhich ) const {
return nWhich >= nStart &&
nWhich <= nEnd; }
bool IsInVersionsRange( USHORT nWhich ) const;
bool IsInStoringRange( USHORT nWhich ) const;
- void SetStoringRange( USHORT nFrom, USHORT nTo );
- void SetSecondaryPool( SfxItemPool *pPool );
- SfxItemPool* GetSecondaryPool() const {
+ void SetStoringRange( USHORT nFrom, USHORT nTo );
+ void SetSecondaryPool( SfxItemPool *pPool );
+ SfxItemPool* GetSecondaryPool() const {
return pSecondary; }
- SfxItemPool* GetMasterPool() const {
+ SfxItemPool* GetMasterPool() const {
return pMaster; }
- void FreezeIdRanges();
+ void FreezeIdRanges();
- void Cleanup();
- void Delete();
+ void Cleanup();
+ void Delete();
#ifdef TF_POOLABLE
bool IsItemFlag( USHORT nWhich, USHORT nFlag ) const;
@@ -249,36 +249,36 @@ public:
void SetItemInfos( const SfxItemInfo *pInfos )
{ pItemInfos = pInfos; }
#else
- int HasMap() const { return 0 != pSlotIds; }
+ int HasMap() const { return 0 != pSlotIds; }
void SetMap( USHORT *pNewSlotIds )
{ pSlotIds = pNewSlotIds; }
#endif
USHORT GetWhich( USHORT nSlot, BOOL bDeep = TRUE ) const;
- USHORT GetSlotId( USHORT nWhich, BOOL bDeep = TRUE ) const;
- USHORT GetTrueWhich( USHORT nSlot, BOOL bDeep = TRUE ) const;
- USHORT GetTrueSlotId( USHORT nWhich, BOOL bDeep = TRUE ) const;
+ USHORT GetSlotId( USHORT nWhich, BOOL bDeep = TRUE ) const;
+ USHORT GetTrueWhich( USHORT nSlot, BOOL bDeep = TRUE ) const;
+ USHORT GetTrueSlotId( USHORT nWhich, BOOL bDeep = TRUE ) const;
- void SetVersionMap( USHORT nVer,
+ void SetVersionMap( USHORT nVer,
USHORT nOldStart, USHORT nOldEnd,
USHORT *pWhichIdTab );
- USHORT GetNewWhich( USHORT nOldWhich ) const;
- USHORT GetVersion() const;
- USHORT GetFileFormatVersion() const
+ USHORT GetNewWhich( USHORT nOldWhich ) const;
+ USHORT GetVersion() const;
+ USHORT GetFileFormatVersion() const
{ return _nFileFormatVersion; }
- void SetFileFormatVersion( USHORT nFileFormatVersion );
- USHORT GetLoadingVersion() const;
+ void SetFileFormatVersion( USHORT nFileFormatVersion );
+ USHORT GetLoadingVersion() const;
bool IsCurrentVersionLoading() const;
- static int IsWhich(USHORT nId) {
+ static int IsWhich(USHORT nId) {
return nId && nId <= SFX_WHICH_MAX; }
- static int IsSlot(USHORT nId) {
+ static int IsSlot(USHORT nId) {
return nId && nId > SFX_WHICH_MAX; }
- static const SfxItemPool* GetStoringPool();
+ static const SfxItemPool* GetStoringPool();
static void SetStoringPool( const SfxItemPool * );
private:
- const SfxItemPool& operator=(const SfxItemPool &); // n.i.!!
+ const SfxItemPool& operator=(const SfxItemPool &); // n.i.!!
};
// --------------- Inline Implementierungen ------------------------------
diff --git a/svl/inc/svl/itemprop.hxx b/svl/inc/svl/itemprop.hxx
index e494277c3824..636fe4ea3c5c 100644
--- a/svl/inc/svl/itemprop.hxx
+++ b/svl/inc/svl/itemprop.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,13 +66,13 @@ struct SfxItemPropertySimpleEntry
nFlags( 0 ),
nMemberId( 0 ){}
- SfxItemPropertySimpleEntry(USHORT _nWID, const com::sun::star::uno::Type* _pType,
+ SfxItemPropertySimpleEntry(USHORT _nWID, const com::sun::star::uno::Type* _pType,
long _nFlags, BYTE _nMemberId) :
nWID( _nWID ),
pType( _pType ),
nFlags( _nFlags ),
nMemberId( _nMemberId ){}
-
+
SfxItemPropertySimpleEntry( const SfxItemPropertyMapEntry* pMapEntry ) :
nWID( pMapEntry->nWID ),
pType( pMapEntry->pType ),
@@ -87,20 +87,20 @@ struct SfxItemPropertyNamedEntry : public SfxItemPropertySimpleEntry
SfxItemPropertySimpleEntry( rSimpleEntry ),
sName( rName ){}
-};
+};
typedef std::vector< SfxItemPropertyNamedEntry > PropertyEntryVector_t;
class SfxItemPropertyMap_Impl;
class SVL_DLLPUBLIC SfxItemPropertyMap
{
SfxItemPropertyMap_Impl* m_pImpl;
-public:
+public:
SfxItemPropertyMap( const SfxItemPropertyMapEntry* pEntries );
SfxItemPropertyMap( const SfxItemPropertyMap* pSource );
~SfxItemPropertyMap();
-
+
const SfxItemPropertySimpleEntry* getByName( const ::rtl::OUString &rName ) const;
com::sun::star::uno::Sequence< com::sun::star::beans::Property > getProperties() const;
- com::sun::star::beans::Property getPropertyByName( const ::rtl::OUString rName ) const
+ com::sun::star::beans::Property getPropertyByName( const ::rtl::OUString rName ) const
throw( ::com::sun::star::beans::UnknownPropertyException );
sal_Bool hasPropertyByName( const ::rtl::OUString& rName ) const;
@@ -108,7 +108,7 @@ public:
PropertyEntryVector_t getPropertyEntries() const;
sal_uInt32 getSize() const;
-};
+};
/* -----------------------------21.02.00 11:19--------------------------------
---------------------------------------------------------------------------*/
@@ -117,7 +117,7 @@ class SVL_DLLPUBLIC SfxItemPropertySet
SfxItemPropertyMap m_aMap;
mutable com::sun::star::uno::Reference<com::sun::star::beans::XPropertySetInfo> m_xInfo;
protected:
- virtual BOOL FillItem(SfxItemSet& rSet, USHORT nWhich, BOOL bGetProperty) const;
+ virtual BOOL FillItem(SfxItemSet& rSet, USHORT nWhich, BOOL bGetProperty) const;
public:
SfxItemPropertySet( const SfxItemPropertyMapEntry *pMap ) :
@@ -143,7 +143,7 @@ public:
SfxItemSet& rSet ) const
throw(::com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException);
- void setPropertyValue( const ::rtl::OUString& rPropertyName,
+ void setPropertyValue( const ::rtl::OUString& rPropertyName,
const com::sun::star::uno::Any& aVal,
SfxItemSet& rSet ) const
throw(::com::sun::star::uno::RuntimeException,
diff --git a/svl/inc/svl/itemset.hxx b/svl/inc/svl/itemset.hxx
index b736d21a7fcd..22983b75f8bf 100644
--- a/svl/inc/svl/itemset.hxx
+++ b/svl/inc/svl/itemset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#if STLPORT_VERSION<321
#include <stdarg.h>
#else
-#include <cstdarg> // std::va_list and friends
+#include <cstdarg> // std::va_list and friends
#endif
#include <svl/poolitem.hxx>
#include <tools/rtti.hxx>
@@ -52,8 +52,8 @@ typedef SfxPoolItem const** SfxItemArray;
#ifdef DBG_UTILx
#define DBG(s) s
#define _pChildCount(THIS) ( *(USHORT**)SfxPointerServer::GetServer()->GetPointer(THIS) )
-#define _pChildCountCtor ( (*(USHORT**)SfxPointerServer::GetServer()->CreatePointer(this)) = new USHORT )
-#define _pChildCountDtor ( SfxPointerServer::GetServer()->ReleasePointer(this) )
+#define _pChildCountCtor ( (*(USHORT**)SfxPointerServer::GetServer()->CreatePointer(this)) = new USHORT )
+#define _pChildCountDtor ( SfxPointerServer::GetServer()->ReleasePointer(this) )
#else
#define DBG(s)
#endif
@@ -77,7 +77,7 @@ class SVL_DLLPUBLIC SfxItemSet
{
friend class SfxItemIter;
- SfxItemPool* _pPool; // der verwendete Pool
+ SfxItemPool* _pPool; // der verwendete Pool
const SfxItemSet* _pParent; // Ableitung
SfxItemArray _aItems; // Item-Feld
USHORT* _pWhichRanges; // Array von Which-Bereichen
@@ -91,25 +91,25 @@ friend class SfxAllItemSet;
friend const char *DbgCheckItemSet( const void* );
private:
- SVL_DLLPRIVATE void InitRanges_Impl(const USHORT *nWhichPairTable);
- SVL_DLLPRIVATE void InitRanges_Impl(va_list pWhich, USHORT n1, USHORT n2, USHORT n3);
- SVL_DLLPRIVATE void InitRanges_Impl(USHORT nWh1, USHORT nWh2);
+ SVL_DLLPRIVATE void InitRanges_Impl(const USHORT *nWhichPairTable);
+ SVL_DLLPRIVATE void InitRanges_Impl(va_list pWhich, USHORT n1, USHORT n2, USHORT n3);
+ SVL_DLLPRIVATE void InitRanges_Impl(USHORT nWh1, USHORT nWh2);
public:
- SfxItemArray GetItems_Impl() const { return _aItems; }
+ SfxItemArray GetItems_Impl() const { return _aItems; }
#endif
//---------------------------------------------------------------------
private:
- const SfxItemSet& operator=(const SfxItemSet &); // n.i.!!
+ const SfxItemSet& operator=(const SfxItemSet &); // n.i.!!
protected:
// Notification-Callback
- virtual void Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew );
+ virtual void Changed( const SfxPoolItem& rOld, const SfxPoolItem& rNew );
// direkte Put-Methode
- int PutDirect(const SfxPoolItem &rItem);
+ int PutDirect(const SfxPoolItem &rItem);
public:
SfxItemSet( const SfxItemSet& );
@@ -120,54 +120,54 @@ public:
SfxItemSet( SfxItemPool&, const USHORT* nWhichPairTable );
virtual ~SfxItemSet();
- virtual SfxItemSet * Clone(BOOL bItems = TRUE, SfxItemPool *pToPool = 0) const;
+ virtual SfxItemSet * Clone(BOOL bItems = TRUE, SfxItemPool *pToPool = 0) const;
// Items erfragen
- USHORT Count() const { return _nCount; }
- USHORT TotalCount() const;
+ USHORT Count() const { return _nCount; }
+ USHORT TotalCount() const;
- virtual const SfxPoolItem& Get( USHORT nWhich, BOOL bSrchInParent = TRUE ) const;
- const SfxPoolItem* GetItem( USHORT nWhich, BOOL bSrchInParent = TRUE,
+ virtual const SfxPoolItem& Get( USHORT nWhich, BOOL bSrchInParent = TRUE ) const;
+ const SfxPoolItem* GetItem( USHORT nWhich, BOOL bSrchInParent = TRUE,
TypeId aItemType = 0 ) const;
// Which-Wert des Items an der Position nPos erfragen
- USHORT GetWhichByPos(USHORT nPos) const;
+ USHORT GetWhichByPos(USHORT nPos) const;
// Item-Status erfragen
- SfxItemState GetItemState( USHORT nWhich,
+ SfxItemState GetItemState( USHORT nWhich,
BOOL bSrchInParent = TRUE,
const SfxPoolItem **ppItem = 0 ) const;
- virtual void DisableItem(USHORT nWhich);
- virtual void InvalidateItem( USHORT nWhich );
+ virtual void DisableItem(USHORT nWhich);
+ virtual void InvalidateItem( USHORT nWhich );
virtual USHORT ClearItem( USHORT nWhich = 0);
- virtual void ClearInvalidItems( BOOL bHardDefault = FALSE );
- void InvalidateAllItems(); HACK(via nWhich = 0)
+ virtual void ClearInvalidItems( BOOL bHardDefault = FALSE );
+ void InvalidateAllItems(); HACK(via nWhich = 0)
- inline void SetParent( const SfxItemSet* pNew );
+ inline void SetParent( const SfxItemSet* pNew );
// Items hinzufuegen, loeschen etc.
- virtual const SfxPoolItem* Put( const SfxPoolItem&, USHORT nWhich );
- const SfxPoolItem* Put( const SfxPoolItem& rItem )
+ virtual const SfxPoolItem* Put( const SfxPoolItem&, USHORT nWhich );
+ const SfxPoolItem* Put( const SfxPoolItem& rItem )
{ return Put(rItem, rItem.Which()); }
- virtual int Put( const SfxItemSet&,
+ virtual int Put( const SfxItemSet&,
BOOL bInvalidAsDefault = TRUE );
- void PutExtended( const SfxItemSet&,
+ void PutExtended( const SfxItemSet&,
SfxItemState eDontCareAs = SFX_ITEM_UNKNOWN,
SfxItemState eDefaultAs = SFX_ITEM_UNKNOWN );
- virtual int Set( const SfxItemSet&, BOOL bDeep = TRUE );
+ virtual int Set( const SfxItemSet&, BOOL bDeep = TRUE );
- virtual void Intersect( const SfxItemSet& rSet );
- virtual void MergeValues( const SfxItemSet& rSet, BOOL bOverwriteDefaults = FALSE );
- virtual void Differentiate( const SfxItemSet& rSet );
- virtual void MergeValue( const SfxPoolItem& rItem, BOOL bOverwriteDefaults = FALSE );
+ virtual void Intersect( const SfxItemSet& rSet );
+ virtual void MergeValues( const SfxItemSet& rSet, BOOL bOverwriteDefaults = FALSE );
+ virtual void Differentiate( const SfxItemSet& rSet );
+ virtual void MergeValue( const SfxPoolItem& rItem, BOOL bOverwriteDefaults = FALSE );
- SfxItemPool* GetPool() const { return _pPool; }
- const USHORT* GetRanges() const { return _pWhichRanges; }
- void SetRanges( const USHORT *pRanges );
- void MergeRange( USHORT nFrom, USHORT nTo );
- const SfxItemSet* GetParent() const { return _pParent; }
+ SfxItemPool* GetPool() const { return _pPool; }
+ const USHORT* GetRanges() const { return _pWhichRanges; }
+ void SetRanges( const USHORT *pRanges );
+ void MergeRange( USHORT nFrom, USHORT nTo );
+ const SfxItemSet* GetParent() const { return _pParent; }
virtual SvStream & Load( SvStream &, bool bDirect = false,
const SfxItemPool *pRefPool = 0 );
@@ -194,19 +194,19 @@ class SVL_DLLPUBLIC SfxAllItemSet: public SfxItemSet
*/
{
- SfxVoidItem aDefault;
- USHORT nFree;
+ SfxVoidItem aDefault;
+ USHORT nFree;
public:
SfxAllItemSet( SfxItemPool &rPool );
SfxAllItemSet( const SfxItemSet & );
SfxAllItemSet( const SfxAllItemSet & );
- virtual SfxItemSet * Clone( BOOL bItems = TRUE, SfxItemPool *pToPool = 0 ) const;
- virtual const SfxPoolItem* Put( const SfxPoolItem&, USHORT nWhich );
- const SfxPoolItem* Put( const SfxPoolItem& rItem )
+ virtual SfxItemSet * Clone( BOOL bItems = TRUE, SfxItemPool *pToPool = 0 ) const;
+ virtual const SfxPoolItem* Put( const SfxPoolItem&, USHORT nWhich );
+ const SfxPoolItem* Put( const SfxPoolItem& rItem )
{ return Put(rItem, rItem.Which()); }
- virtual int Put( const SfxItemSet&,
+ virtual int Put( const SfxItemSet&,
BOOL bInvalidAsDefault = TRUE );
};
diff --git a/svl/inc/svl/languageoptions.hxx b/svl/inc/svl/languageoptions.hxx
index e4d8f23804a1..e909ef769dc6 100644
--- a/svl/inc/svl/languageoptions.hxx
+++ b/svl/inc/svl/languageoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,9 +39,9 @@
// class SvtLanguageOptions ----------------------------------------------------
// these defines can be ored
-#define SCRIPTTYPE_LATIN 0x01
-#define SCRIPTTYPE_ASIAN 0x02
-#define SCRIPTTYPE_COMPLEX 0x04
+#define SCRIPTTYPE_LATIN 0x01
+#define SCRIPTTYPE_ASIAN 0x02
+#define SCRIPTTYPE_COMPLEX 0x04
class SvtCJKOptions;
class SvtCTLOptions;
@@ -49,8 +49,8 @@ class SvtCTLOptions;
class SVL_DLLPUBLIC SvtLanguageOptions : public ::utl::detail::Options
{
private:
- SvtCJKOptions* m_pCJKOptions;
- SvtCTLOptions* m_pCTLOptions;
+ SvtCJKOptions* m_pCJKOptions;
+ SvtCTLOptions* m_pCTLOptions;
public:
enum EOption
@@ -78,21 +78,21 @@ public:
~SvtLanguageOptions();
// CJK options
- sal_Bool IsCJKFontEnabled() const;
- sal_Bool IsVerticalTextEnabled() const;
- sal_Bool IsAsianTypographyEnabled() const;
- sal_Bool IsJapaneseFindEnabled() const;
- sal_Bool IsRubyEnabled() const;
- sal_Bool IsChangeCaseMapEnabled() const;
- sal_Bool IsDoubleLinesEnabled() const;
- sal_Bool IsEmphasisMarksEnabled() const;
- sal_Bool IsVerticalCallOutEnabled() const;
+ sal_Bool IsCJKFontEnabled() const;
+ sal_Bool IsVerticalTextEnabled() const;
+ sal_Bool IsAsianTypographyEnabled() const;
+ sal_Bool IsJapaneseFindEnabled() const;
+ sal_Bool IsRubyEnabled() const;
+ sal_Bool IsChangeCaseMapEnabled() const;
+ sal_Bool IsDoubleLinesEnabled() const;
+ sal_Bool IsEmphasisMarksEnabled() const;
+ sal_Bool IsVerticalCallOutEnabled() const;
void SetAll( sal_Bool _bSet );
sal_Bool IsAnyEnabled() const;
// CTL options
void SetCTLFontEnabled( sal_Bool _bEnabled );
- sal_Bool IsCTLFontEnabled() const;
+ sal_Bool IsCTLFontEnabled() const;
void SetCTLSequenceChecking( sal_Bool _bEnabled );
sal_Bool IsCTLSequenceChecking() const;
@@ -120,7 +120,7 @@ public:
~SvtSystemLanguageOptions();
virtual void Commit();
- virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& rPropertyNames );
+ virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& rPropertyNames );
LanguageType GetWin16SystemLanguage();
};
diff --git a/svl/inc/svl/lckbitem.hxx b/svl/inc/svl/lckbitem.hxx
index 015b72264da2..4caf5d752b81 100644
--- a/svl/inc/svl/lckbitem.hxx
+++ b/svl/inc/svl/lckbitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@
class SVL_DLLPUBLIC SfxLockBytesItem : public SfxPoolItem
{
- SvLockBytesRef _xVal;
+ SvLockBytesRef _xVal;
public:
TYPEINFO();
@@ -49,16 +49,16 @@ public:
SfxLockBytesItem( const SfxLockBytesItem& );
~SfxLockBytesItem();
- virtual int operator==( const SfxPoolItem& ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- SvLockBytes* GetValue() const { return _xVal; }
+ SvLockBytes* GetValue() const { return _xVal; }
- virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
};
diff --git a/svl/inc/svl/lockfilecommon.hxx b/svl/inc/svl/lockfilecommon.hxx
index 9f24f3c9d4bc..609a13b61519 100644
--- a/svl/inc/svl/lockfilecommon.hxx
+++ b/svl/inc/svl/lockfilecommon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@
#define LOCKFILE_LOCALHOST_ID 2
#define LOCKFILE_EDITTIME_ID 3
#define LOCKFILE_USERURL_ID 4
-#define LOCKFILE_ENTRYSIZE 5
+#define LOCKFILE_ENTRYSIZE 5
namespace svt {
diff --git a/svl/inc/svl/lstner.hxx b/svl/inc/svl/lstner.hxx
index a129cf588b91..f63ab9a68bfc 100644
--- a/svl/inc/svl/lstner.hxx
+++ b/svl/inc/svl/lstner.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,27 +49,27 @@ class SVL_DLLPUBLIC SfxListener
SfxBroadcasterArr_Impl aBCs;
private:
- const SfxListener& operator=(const SfxListener &); // n.i., ist verboten
+ const SfxListener& operator=(const SfxListener &); // n.i., ist verboten
public:
TYPEINFO();
SfxListener();
SfxListener( const SfxListener &rCopy );
- virtual ~SfxListener();
+ virtual ~SfxListener();
- BOOL StartListening( SfxBroadcaster& rBroadcaster, BOOL bPreventDups = FALSE );
- BOOL EndListening( SfxBroadcaster& rBroadcaster, BOOL bAllDups = FALSE );
- void EndListening( USHORT nNo );
- void EndListeningAll();
- BOOL IsListening( SfxBroadcaster& rBroadcaster ) const;
+ BOOL StartListening( SfxBroadcaster& rBroadcaster, BOOL bPreventDups = FALSE );
+ BOOL EndListening( SfxBroadcaster& rBroadcaster, BOOL bAllDups = FALSE );
+ void EndListening( USHORT nNo );
+ void EndListeningAll();
+ BOOL IsListening( SfxBroadcaster& rBroadcaster ) const;
- USHORT GetBroadcasterCount() const
+ USHORT GetBroadcasterCount() const
{ return aBCs.Count(); }
- SfxBroadcaster* GetBroadcasterJOE( USHORT nNo ) const
+ SfxBroadcaster* GetBroadcasterJOE( USHORT nNo ) const
{ return (SfxBroadcaster*) aBCs.GetObject(nNo); }
- virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
#ifndef _NOTIFY_HXX
void RemoveBroadcaster_Impl( SfxBroadcaster& rBC );
diff --git a/svl/inc/svl/macitem.hxx b/svl/inc/svl/macitem.hxx
index 35290e6558e4..f9eafa3a759d 100644
--- a/svl/inc/svl/macitem.hxx
+++ b/svl/inc/svl/macitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,15 +84,15 @@ public:
ScriptType eType); // = STARBASIC entfernt
SvxMacro( SjJSbxObjectBase* _pFunctionObject, const String &rSource );
- ~SvxMacro(); // noetig fuer pFunctionObject
+ ~SvxMacro(); // noetig fuer pFunctionObject
- const String &GetLibName() const { return aLibName; }
- const String &GetMacName() const { return aMacName; }
+ const String &GetLibName() const { return aLibName; }
+ const String &GetMacName() const { return aMacName; }
String GetLanguage()const;
- ScriptType GetScriptType() const { return eType; }
+ ScriptType GetScriptType() const { return eType; }
- BOOL HasMacro() const { return aMacName.Len() ? TRUE : FALSE; }
+ BOOL HasMacro() const { return aMacName.Len() ? TRUE : FALSE; }
#ifdef SOLAR_JAVA
// JavaScript-Function-Objekt holen
@@ -116,10 +116,10 @@ inline SvxMacro::SvxMacro( SjJSbxObjectBase* _pFunctionObject, const String &rSo
DECLARE_TABLE( _SvxMacroTableDtor, SvxMacro* )
-#define SVX_MACROTBL_VERSION31 0
-#define SVX_MACROTBL_VERSION40 1
+#define SVX_MACROTBL_VERSION31 0
+#define SVX_MACROTBL_VERSION40 1
-#define SVX_MACROTBL_AKTVERSION SVX_MACROTBL_VERSION40
+#define SVX_MACROTBL_AKTVERSION SVX_MACROTBL_VERSION40
class SVL_DLLPUBLIC SvxMacroTableDtor : public _SvxMacroTableDtor
{
@@ -132,10 +132,10 @@ public:
// loescht alle Eintraege
void DelDtor();
- SvStream& Read( SvStream &, USHORT nVersion = SVX_MACROTBL_AKTVERSION );
- SvStream& Write( SvStream & ) const;
+ SvStream& Read( SvStream &, USHORT nVersion = SVX_MACROTBL_AKTVERSION );
+ SvStream& Write( SvStream & ) const;
- USHORT GetVersion() const { return SVX_MACROTBL_AKTVERSION; }
+ USHORT GetVersion() const { return SVX_MACROTBL_AKTVERSION; }
};
inline SvxMacroTableDtor::SvxMacroTableDtor( const USHORT nInitSz,
@@ -164,8 +164,8 @@ public:
const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
- virtual USHORT GetVersion( USHORT nFileFormatVersion ) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion ) const;
+ virtual USHORT GetVersion( USHORT nFileFormatVersion ) const;
inline const SvxMacroTableDtor& GetMacroTable() const { return aMacroTable;}
inline void SetMacroTable( const SvxMacroTableDtor& rTbl ) { aMacroTable = rTbl; }
diff --git a/svl/inc/svl/mailenum.hxx b/svl/inc/svl/mailenum.hxx
index 1302499f6777..83467dbc9e4d 100644
--- a/svl/inc/svl/mailenum.hxx
+++ b/svl/inc/svl/mailenum.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,21 +75,21 @@ enum MailReceiverRole
enum MailAction
{
- MAIL_ACTION_DYING, // Server stirbt
- MAIL_ACTION_SEND, // Mail wurde versendet
- MAIL_ACTION_READ, // Mail wurde als gelesen gekennzeichnet
- MAIL_ACTION_REMOVED, // Mail wurde gel"oscht
- MAIL_ACTION_UPDATED, // alle Mails wurden neu eingelesen
- MAIL_ACTION_NEXT, // Sprung zur n"achsten Mail
+ MAIL_ACTION_DYING, // Server stirbt
+ MAIL_ACTION_SEND, // Mail wurde versendet
+ MAIL_ACTION_READ, // Mail wurde als gelesen gekennzeichnet
+ MAIL_ACTION_REMOVED, // Mail wurde gel"oscht
+ MAIL_ACTION_UPDATED, // alle Mails wurden neu eingelesen
+ MAIL_ACTION_NEXT, // Sprung zur n"achsten Mail
MAIL_ACTION_PREV // Sprung zur vorherigen Mail
};
// Textformat zum Versenden von Nachrichten ------------------------------
-#define TXTFORMAT_ASCII ((BYTE)0x01)
-#define TXTFORMAT_HTML ((BYTE)0x02)
-#define TXTFORMAT_RTF ((BYTE)0x04)
-#define TXTFORMAT_OFFICE ((BYTE)0x08)
+#define TXTFORMAT_ASCII ((BYTE)0x01)
+#define TXTFORMAT_HTML ((BYTE)0x02)
+#define TXTFORMAT_RTF ((BYTE)0x04)
+#define TXTFORMAT_OFFICE ((BYTE)0x08)
#endif
diff --git a/svl/inc/svl/memberid.hrc b/svl/inc/svl/memberid.hrc
index 7047e0d75e8f..0a5951909886 100644
--- a/svl/inc/svl/memberid.hrc
+++ b/svl/inc/svl/memberid.hrc
@@ -28,11 +28,11 @@
#ifndef _MEMBERID_HRC
#define _MEMBERID_HRC
-#define SFX_MEMBERID(nUserData) ( ( (nUserData) >> 20 ) & 0xFF )
-#define SFX_SLOTID(nUserData) ( (nUserData) & 0xFFFF )
+#define SFX_MEMBERID(nUserData) ( ( (nUserData) >> 20 ) & 0xFF )
+#define SFX_SLOTID(nUserData) ( (nUserData) & 0xFFFF )
-#define MID_X 1
-#define MID_Y 2
+#define MID_X 1
+#define MID_Y 2
#define MID_RECT_LEFT 3
#define MID_RECT_TOP 4
#define MID_WIDTH 5
diff --git a/svl/inc/svl/metitem.hxx b/svl/inc/svl/metitem.hxx
index e53008c12f35..ed84c9c8ea61 100644
--- a/svl/inc/svl/metitem.hxx
+++ b/svl/inc/svl/metitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ public:
DBG_DTOR(SfxMetricItem, 0); }
virtual bool ScaleMetrics( long lMult, long lDiv );
- virtual bool HasMetrics() const;
+ virtual bool HasMetrics() const;
};
diff --git a/svl/inc/svl/nfkeytab.hxx b/svl/inc/svl/nfkeytab.hxx
index 68acf61ebb1f..af2509e6713f 100644
--- a/svl/inc/svl/nfkeytab.hxx
+++ b/svl/inc/svl/nfkeytab.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/nfversi.hxx b/svl/inc/svl/nfversi.hxx
index fbe4d3d72a91..38644939c4c9 100644
--- a/svl/inc/svl/nfversi.hxx
+++ b/svl/inc/svl/nfversi.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,35 +29,35 @@
#ifndef NF_NFVERSI_HXX
#define NF_NFVERSI_HXX
-// file ID's
+// file ID's
-#define SV_NUMBERFORMATTER_VERSION_SYSTORE 0x0004
-#define SV_NUMBERFORMATTER_VERSION_KEYWORDS 0x0005
-#define SV_NUMBERFORMATTER_VERSION_NEWSTANDARD 0x0006
-#define SV_NUMBERFORMATTER_VERSION_NF_TIME_HH_MMSS00 0x0007
-#define SV_NUMBERFORMATTER_VERSION_NF_DATE_WW 0x0008
-#define SV_NUMBERFORMATTER_VERSION_NEW_CURR 0x0009
-#define SV_NUMBERFORMATTER_VERSION_YEAR2000 0x000a
-#define SV_NUMBERFORMATTER_VERSION_TWODIGITYEAR 0x000b
-#define SV_NUMBERFORMATTER_VERSION_NF_DATETIME_SYS_DDMMYYYY_HHMMSS 0x000c
-#define SV_NUMBERFORMATTER_VERSION_CALENDAR 0x000d
-#define SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS 0x000e
+#define SV_NUMBERFORMATTER_VERSION_SYSTORE 0x0004
+#define SV_NUMBERFORMATTER_VERSION_KEYWORDS 0x0005
+#define SV_NUMBERFORMATTER_VERSION_NEWSTANDARD 0x0006
+#define SV_NUMBERFORMATTER_VERSION_NF_TIME_HH_MMSS00 0x0007
+#define SV_NUMBERFORMATTER_VERSION_NF_DATE_WW 0x0008
+#define SV_NUMBERFORMATTER_VERSION_NEW_CURR 0x0009
+#define SV_NUMBERFORMATTER_VERSION_YEAR2000 0x000a
+#define SV_NUMBERFORMATTER_VERSION_TWODIGITYEAR 0x000b
+#define SV_NUMBERFORMATTER_VERSION_NF_DATETIME_SYS_DDMMYYYY_HHMMSS 0x000c
+#define SV_NUMBERFORMATTER_VERSION_CALENDAR 0x000d
+#define SV_NUMBERFORMATTER_VERSION_ADDITIONAL_I18N_FORMATS 0x000e
-#define SV_NUMBERFORMATTER_VERSION 0x000e
+#define SV_NUMBERFORMATTER_VERSION 0x000e
// 1 bis 18.01.96
// 2 ab 19.01.96, TT.MM.JJJJ dazu
// 3 ab 13.02.96 (nicht emergency) #.##0,00 CCC dazu
// 4 ab 30.07.97 364i speichern, was SYSTEM wirklich war (vorhandenes
-// Dummy-Feld wird benutzt, keine File-Format Aenderung)
+// Dummy-Feld wird benutzt, keine File-Format Aenderung)
// 5 ab 07.08.97 nicht-deutsch ist nicht immer englisch
-// aeltere nicht-deutsche benutzerdefinierte Formate onLoad
-// konvertieren
+// aeltere nicht-deutsche benutzerdefinierte Formate onLoad
+// konvertieren
// 6 ab 17.10.97 neu: Keyword NNN fuer langen Wochentag ohne Separator,
-// wird in aelteren Versionen nicht ausgewertet!
-// Neue Standard Datumformate, DIN etc.
+// wird in aelteren Versionen nicht ausgewertet!
+// Neue Standard Datumformate, DIN etc.
// 7 ab 25.05.98 StandardFormat [HH]:MM:SS,00 (NF_TIME_HH_MMSS00) fuer
-// automatische Eingabe-Erkennung von 100stel Sekunden mit Stunden
+// automatische Eingabe-Erkennung von 100stel Sekunden mit Stunden
// 8 ab 19.06.98 StandardFormat WW (NF_DATE_WW) fuer Kalenderwoche
// 9 ab 17.12.98 neue Waehrungsformate [$DM-xxx]
// A ab 25.01.99 Year2000 speichern/laden
diff --git a/svl/inc/svl/nranges.hxx b/svl/inc/svl/nranges.hxx
index f9548bc78cbb..758ff51b0324 100644
--- a/svl/inc/svl/nranges.hxx
+++ b/svl/inc/svl/nranges.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,12 +36,12 @@
#ifndef NUMTYPE
-#define NUMTYPE USHORT
+#define NUMTYPE USHORT
#define SfxNumRanges SfxUShortRanges
#include <svl/nranges.hxx>
#undef NUMTYPE
-#define NUMTYPE ULONG
+#define NUMTYPE ULONG
#define SfxNumRanges SfxULongRanges
#include <svl/nranges.hxx>
@@ -52,11 +52,11 @@
//========================================================================
-#define NUMTYPE_ARG int
+#define NUMTYPE_ARG int
class SfxNumRanges
{
- NUMTYPE* _pRanges; // 0-terminated array of NUMTYPE-pairs
+ NUMTYPE* _pRanges; // 0-terminated array of NUMTYPE-pairs
public:
SfxNumRanges() : _pRanges( 0 ) {}
@@ -67,21 +67,21 @@ public:
~SfxNumRanges()
{ delete [] _pRanges; }
- BOOL operator == ( const SfxNumRanges & ) const;
- BOOL operator != ( const SfxNumRanges & rRanges ) const
+ BOOL operator == ( const SfxNumRanges & ) const;
+ BOOL operator != ( const SfxNumRanges & rRanges ) const
{ return !( *this == rRanges ); }
- SfxNumRanges& operator = ( const SfxNumRanges & );
+ SfxNumRanges& operator = ( const SfxNumRanges & );
- SfxNumRanges& operator += ( const SfxNumRanges & );
- SfxNumRanges& operator -= ( const SfxNumRanges & );
- SfxNumRanges& operator /= ( const SfxNumRanges & );
+ SfxNumRanges& operator += ( const SfxNumRanges & );
+ SfxNumRanges& operator -= ( const SfxNumRanges & );
+ SfxNumRanges& operator /= ( const SfxNumRanges & );
- NUMTYPE Count() const;
- BOOL IsEmpty() const
+ NUMTYPE Count() const;
+ BOOL IsEmpty() const
{ return !_pRanges || 0 == *_pRanges; }
- BOOL Contains( NUMTYPE n ) const;
- BOOL Intersects( const SfxNumRanges & ) const;
+ BOOL Contains( NUMTYPE n ) const;
+ BOOL Intersects( const SfxNumRanges & ) const;
operator const NUMTYPE* () const
{ return _pRanges; }
diff --git a/svl/inc/svl/ondemand.hxx b/svl/inc/svl/ondemand.hxx
index be5849a3995f..b3c0e1c07a7b 100644
--- a/svl/inc/svl/ondemand.hxx
+++ b/svl/inc/svl/ondemand.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/ownlist.hxx b/svl/inc/svl/ownlist.hxx
index 051cf18bf9e4..1ae8e172aa21 100644
--- a/svl/inc/svl/ownlist.hxx
+++ b/svl/inc/svl/ownlist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace com { namespace sun { namespace star {
//=========================================================================
class SvCommand
-/* [Beschreibung]
+/* [Beschreibung]
Enth"alt einen String, welcher das Kommando angibt und eine weiteren
String, der das Argument des Kommandos bildet. W"urde solch ein
@@ -50,8 +50,8 @@ class SvCommand
aus: Kommando = Argument.
*/
{
- String aCommand;
- String aArgument;
+ String aCommand;
+ String aArgument;
public:
SvCommand() {}
SvCommand( const String & rCommand, const String & rArg )
@@ -78,7 +78,7 @@ public:
//=========================================================================
class SVL_DLLPUBLIC SvCommandList
-/* [Beschreibung]
+/* [Beschreibung]
Die Liste enth"alt Objekte vom Typ SvCommand. Wird ein Objekt
eingef"ugt, dann wird es kopiert und das neue Objekt wird
@@ -86,9 +86,9 @@ class SVL_DLLPUBLIC SvCommandList
*/
{
PRV_SV_DECL_OWNER_LIST(SvCommandList,SvCommand);
- SvCommand & Append( const String & rCommand, const String & rArg );
- BOOL AppendCommands( const String & rCmd, USHORT * pEaten );
- String GetCommands() const;
+ SvCommand & Append( const String & rCommand, const String & rArg );
+ BOOL AppendCommands( const String & rCmd, USHORT * pEaten );
+ String GetCommands() const;
BOOL FillFromSequence( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& );
void FillSequence( com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& );
diff --git a/svl/inc/svl/poolitem.hxx b/svl/inc/svl/poolitem.hxx
index eb922a99fe25..5419791045a3 100644
--- a/svl/inc/svl/poolitem.hxx
+++ b/svl/inc/svl/poolitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,9 +60,9 @@ namespace com { namespace sun { namespace star { namespace uno { class Any; } }
#define SFX_ITEMS_OLD_MAXREF 0xffef
#define SFX_ITEMS_MAXREF 0xfffffffe
-#define SFX_ITEMS_SPECIAL 0xffffffff
+#define SFX_ITEMS_SPECIAL 0xffffffff
-#define CONVERT_TWIPS 0x80 //Uno-Konvertierung fuer Massangaben (fuer MemberId)
+#define CONVERT_TWIPS 0x80 //Uno-Konvertierung fuer Massangaben (fuer MemberId)
// -----------------------------------------------------------------------
@@ -145,19 +145,19 @@ enum SfxItemPresentation
typedef USHORT SfxItemState;
-#define SFX_ITEM_UNKNOWN 0x0000
+#define SFX_ITEM_UNKNOWN 0x0000
-#define SFX_ITEM_DISABLED 0x0001
-#define SFX_ITEM_READONLY 0x0002
+#define SFX_ITEM_DISABLED 0x0001
+#define SFX_ITEM_READONLY 0x0002
#define SFX_ITEM_DONTCARE 0x0010
-#define SFX_ITEM_DEFAULT 0x0020
-#define SFX_ITEM_SET 0x0030
+#define SFX_ITEM_DEFAULT 0x0020
+#define SFX_ITEM_SET 0x0030
// old stuff - dont use!!!
-#define SFX_ITEM_AVAILABLE SFX_ITEM_DEFAULT
-#define SFX_ITEM_OFF SFX_ITEM_DEFAULT
-#define SFX_ITEM_ON SFX_ITEM_SET
+#define SFX_ITEM_AVAILABLE SFX_ITEM_DEFAULT
+#define SFX_ITEM_OFF SFX_ITEM_DEFAULT
+#define SFX_ITEM_ON SFX_ITEM_SET
DBG_NAMEEX_VISIBILITY(SfxPoolItem, SVL_DLLPUBLIC)
DBG_NAMEEX(SfxVoidItem)
@@ -185,11 +185,11 @@ friend class SfxVoidItem;
ULONG nRefCount; // Referenzzaehler
USHORT nWhich;
- USHORT nKind;
+ USHORT nKind;
private:
inline void SetRefCount( ULONG n );
- inline void SetKind( USHORT n );
+ inline void SetKind( USHORT n );
public:
inline ULONG AddRef( ULONG n = 1 ) const;
private:
@@ -213,7 +213,7 @@ public:
virtual int operator==( const SfxPoolItem& ) const = 0;
int operator!=( const SfxPoolItem& rItem ) const
{ return !(*this == rItem); }
- virtual int Compare( const SfxPoolItem &rWith ) const;
+ virtual int Compare( const SfxPoolItem &rWith ) const;
virtual int Compare( const SfxPoolItem &rWith, const IntlWrapper& rIntlWrapper ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePresentation,
@@ -226,15 +226,15 @@ public:
virtual bool ScaleMetrics( long lMult, long lDiv );
virtual bool HasMetrics() const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
virtual SfxPoolItem* Create( SvStream &, USHORT nItemVersion ) const;
virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const = 0;
ULONG GetRefCount() const { return nRefCount; }
- inline USHORT GetKind() const { return nKind; }
+ inline USHORT GetKind() const { return nKind; }
/** Read in a Unicode string from a streamed byte string representation.
diff --git a/svl/inc/svl/ptitem.hxx b/svl/inc/svl/ptitem.hxx
index ce613d582909..012a931e0c5d 100644
--- a/svl/inc/svl/ptitem.hxx
+++ b/svl/inc/svl/ptitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ DBG_NAMEEX_VISIBILITY(SfxPointItem, SVL_DLLPUBLIC)
class SVL_DLLPUBLIC SfxPointItem: public SfxPoolItem
{
- Point aVal;
+ Point aVal;
public:
TYPEINFO();
@@ -57,21 +57,21 @@ public:
XubString &rText,
const IntlWrapper * = 0 ) const;
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- const Point& GetValue() const { return aVal; }
- void SetValue( const Point& rNewVal ) {
+ const Point& GetValue() const { return aVal; }
+ void SetValue( const Point& rNewVal ) {
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
aVal = rNewVal;
}
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
};
diff --git a/svl/inc/svl/rectitem.hxx b/svl/inc/svl/rectitem.hxx
index 6e4f1132ebf6..8e07fed08857 100644
--- a/svl/inc/svl/rectitem.hxx
+++ b/svl/inc/svl/rectitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ DBG_NAMEEX_VISIBILITY(SfxRectangleItem, SVL_DLLPUBLIC)
class SVL_DLLPUBLIC SfxRectangleItem: public SfxPoolItem
{
- Rectangle aVal;
+ Rectangle aVal;
public:
TYPEINFO();
@@ -58,19 +58,19 @@ public:
XubString &rText,
const IntlWrapper * = 0 ) const;
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- const Rectangle& GetValue() const { return aVal; }
- void SetValue( const Rectangle& rNewVal ) {
+ const Rectangle& GetValue() const { return aVal; }
+ void SetValue( const Rectangle& rNewVal ) {
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
aVal = rNewVal;
}
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
};
diff --git a/svl/inc/svl/restrictedpaths.hxx b/svl/inc/svl/restrictedpaths.hxx
index 29263af43415..b01d7840662d 100644
--- a/svl/inc/svl/restrictedpaths.hxx
+++ b/svl/inc/svl/restrictedpaths.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/rngitem.hxx b/svl/inc/svl/rngitem.hxx
index 0962f3bc8370..6aa6d35e9ee8 100644
--- a/svl/inc/svl/rngitem.hxx
+++ b/svl/inc/svl/rngitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#ifndef NUMTYPE
-#define NUMTYPE USHORT
+#define NUMTYPE USHORT
#define SfxXRangeItem SfxRangeItem
#define SfxXRangesItem SfxUShortRangesItem
#include <svl/rngitem.hxx>
@@ -39,7 +39,7 @@
#undef SfxXRangesItem
#ifndef _SFXITEMS_HXX
-#define NUMTYPE ULONG
+#define NUMTYPE ULONG
#define SfxXRangeItem SfxULongRangeItem
#define SfxXRangesItem SfxULongRangesItem
#include <svl/rngitem.hxx>
@@ -61,28 +61,28 @@ class SvStream;
class SVL_DLLPUBLIC SfxXRangeItem : public SfxPoolItem
{
private:
- NUMTYPE nFrom;
- NUMTYPE nTo;
+ NUMTYPE nFrom;
+ NUMTYPE nTo;
public:
TYPEINFO();
SfxXRangeItem();
SfxXRangeItem( USHORT nWID, NUMTYPE nFrom, NUMTYPE nTo );
SfxXRangeItem( USHORT nWID, SvStream &rStream );
SfxXRangeItem( const SfxXRangeItem& rItem );
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
XubString &rText,
const IntlWrapper * = 0 ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- inline NUMTYPE& From() { return nFrom; }
- inline NUMTYPE From() const { return nFrom; }
- inline NUMTYPE& To() { return nTo; }
- inline NUMTYPE To() const { return nTo; }
- inline BOOL HasRange() const { return nTo>nFrom; }
- virtual SfxPoolItem* Create( SvStream &, USHORT nVersion ) const;
- virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ inline NUMTYPE& From() { return nFrom; }
+ inline NUMTYPE From() const { return nFrom; }
+ inline NUMTYPE& To() { return nTo; }
+ inline NUMTYPE To() const { return nTo; }
+ inline BOOL HasRange() const { return nTo>nFrom; }
+ virtual SfxPoolItem* Create( SvStream &, USHORT nVersion ) const;
+ virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
};
// -----------------------------------------------------------------------
@@ -90,7 +90,7 @@ public:
class SVL_DLLPUBLIC SfxXRangesItem : public SfxPoolItem
{
private:
- NUMTYPE* _pRanges;
+ NUMTYPE* _pRanges;
public:
TYPEINFO();
@@ -98,17 +98,17 @@ public:
SfxXRangesItem( USHORT nWID, const NUMTYPE *pRanges );
SfxXRangesItem( USHORT nWID, SvStream &rStream );
SfxXRangesItem( const SfxXRangesItem& rItem );
- virtual ~SfxXRangesItem();
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual ~SfxXRangesItem();
+ virtual int operator==( const SfxPoolItem& ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
XubString &rText,
const IntlWrapper * = 0 ) const;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- inline const NUMTYPE* GetRanges() const { return _pRanges; }
- virtual SfxPoolItem* Create( SvStream &, USHORT nVersion ) const;
- virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
+ virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
+ inline const NUMTYPE* GetRanges() const { return _pRanges; }
+ virtual SfxPoolItem* Create( SvStream &, USHORT nVersion ) const;
+ virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
};
#endif
diff --git a/svl/inc/svl/sfontitm.hxx b/svl/inc/svl/sfontitm.hxx
index 92201e9ad9dd..0fc74e4978dc 100644
--- a/svl/inc/svl/sfontitm.hxx
+++ b/svl/inc/svl/sfontitm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ public:
inline SfxFontItem(USHORT nWhich);
- virtual int operator ==(const SfxPoolItem & rItem) const;
+ virtual int operator ==(const SfxPoolItem & rItem) const;
virtual SfxPoolItem * Create(SvStream & rStream, USHORT) const;
diff --git a/svl/inc/svl/sharecontrolfile.hxx b/svl/inc/svl/sharecontrolfile.hxx
index 245a2b3a89d4..59fd769e1e51 100644
--- a/svl/inc/svl/sharecontrolfile.hxx
+++ b/svl/inc/svl/sharecontrolfile.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/slstitm.hxx b/svl/inc/svl/slstitm.hxx
index f946d29faf88..a58bf957ef9d 100644
--- a/svl/inc/svl/slstitm.hxx
+++ b/svl/inc/svl/slstitm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ class SfxImpStringList;
class SVL_DLLPUBLIC SfxStringListItem : public SfxPoolItem
{
protected:
- SfxImpStringList* pImp;
+ SfxImpStringList* pImp;
public:
TYPEINFO();
@@ -50,36 +50,36 @@ public:
SfxStringListItem( const SfxStringListItem& rItem );
~SfxStringListItem();
- List * GetList();
+ List * GetList();
- const List * GetList() const
+ const List * GetList() const
{ return SAL_CONST_CAST(SfxStringListItem *, this)->GetList(); }
#ifndef TF_POOLABLE
- virtual int IsPoolable() const;
+ virtual int IsPoolable() const;
#endif
// String-Separator: \n
- virtual void SetString( const XubString& );
- virtual XubString GetString();
+ virtual void SetString( const XubString& );
+ virtual XubString GetString();
void SetStringList( const com::sun::star::uno::Sequence< rtl::OUString >& rList );
void GetStringList( com::sun::star::uno::Sequence< rtl::OUString >& rList ) const;
- virtual int operator==( const SfxPoolItem& ) const;
+ virtual int operator==( const SfxPoolItem& ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
SfxMapUnit ePresMetric,
XubString &rText,
const IntlWrapper * = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create( SvStream &, USHORT nVersion ) const;
- virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
- void Sort( BOOL bAscending = TRUE, List* pParallelList = 0 );
+ virtual SfxPoolItem* Create( SvStream &, USHORT nVersion ) const;
+ virtual SvStream& Store( SvStream &, USHORT nItemVersion ) const;
+ void Sort( BOOL bAscending = TRUE, List* pParallelList = 0 );
- virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue ( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
};
#endif
diff --git a/svl/inc/svl/smplhint.hxx b/svl/inc/svl/smplhint.hxx
index 0d3cc374a02e..115e5f168fb8 100644
--- a/svl/inc/svl/smplhint.hxx
+++ b/svl/inc/svl/smplhint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,39 +32,39 @@
#include <svl/hint.hxx>
#include <tools/rtti.hxx>
-#define SFX_HINT_DYING 0x00000001
-#define SFX_HINT_NAMECHANGED 0x00000002
-#define SFX_HINT_TITLECHANGED 0x00000004
-#define SFX_HINT_DATACHANGED 0x00000008
-#define SFX_HINT_DOCCHANGED 0x00000010
-#define SFX_HINT_UPDATEDONE 0x00000020
-#define SFX_HINT_DEINITIALIZING 0x00000040
-#define SFX_HINT_MODECHANGED 0x00000080
+#define SFX_HINT_DYING 0x00000001
+#define SFX_HINT_NAMECHANGED 0x00000002
+#define SFX_HINT_TITLECHANGED 0x00000004
+#define SFX_HINT_DATACHANGED 0x00000008
+#define SFX_HINT_DOCCHANGED 0x00000010
+#define SFX_HINT_UPDATEDONE 0x00000020
+#define SFX_HINT_DEINITIALIZING 0x00000040
+#define SFX_HINT_MODECHANGED 0x00000080
// unused, formerly SFX_HINT_CANCELLABLE
// unused, formerly SFX_HINT_DATAAVAILABLE
// unused, formerly SFX_HINT_SAVECOMPLETED
// unused, formerly SFX_HINT_RELEASEREF
#define SFX_HINT_COLORS_CHANGED 0x00001000
#define SFX_HINT_CTL_SETTINGS_CHANGED 0x00002000
-#define SFX_HINT_ACCESSIBILITY_CHANGED 0x00004000
+#define SFX_HINT_ACCESSIBILITY_CHANGED 0x00004000
// unused, formerly SFX_HINT_VIEWCREATED
-#define SFX_HINT_USER00 0x00010000
-#define SFX_HINT_USER01 0x00020000
-#define SFX_HINT_USER02 0x00040000
-#define SFX_HINT_USER03 0x00080000
-#define SFX_HINT_USER04 0x00100000
-#define SFX_HINT_USER05 0x00200000
-#define SFX_HINT_USER06 0x00400000
-#define SFX_HINT_USER07 0x00800000
-#define SFX_HINT_USER08 0x01000000
-#define SFX_HINT_USER09 0x02000000
-#define SFX_HINT_USER10 0x04000000
-#define SFX_HINT_USER11 0x08000000
-#define SFX_HINT_USER12 0x10000000
-#define SFX_HINT_USER13 0x20000000
+#define SFX_HINT_USER00 0x00010000
+#define SFX_HINT_USER01 0x00020000
+#define SFX_HINT_USER02 0x00040000
+#define SFX_HINT_USER03 0x00080000
+#define SFX_HINT_USER04 0x00100000
+#define SFX_HINT_USER05 0x00200000
+#define SFX_HINT_USER06 0x00400000
+#define SFX_HINT_USER07 0x00800000
+#define SFX_HINT_USER08 0x01000000
+#define SFX_HINT_USER09 0x02000000
+#define SFX_HINT_USER10 0x04000000
+#define SFX_HINT_USER11 0x08000000
+#define SFX_HINT_USER12 0x10000000
+#define SFX_HINT_USER13 0x20000000
#define SFX_HINT_UNDO_OPTIONS_CHANGED 0x40000000
#define SFX_HINT_USER_OPTIONS_CHANGED 0x80000000
-#define SFX_HINT_ALL 0xFFFFFFFF
+#define SFX_HINT_ALL 0xFFFFFFFF
class SVL_DLLPUBLIC SfxSimpleHint: public SfxHint
{
@@ -91,7 +91,7 @@ public:
}
#define IMPL_OBJHINT(Name, Type) \
- TYPEINIT1(Name, SfxSimpleHint); \
+ TYPEINIT1(Name, SfxSimpleHint); \
Name::Name( USHORT nID, const Type& rObject ): \
SfxSimpleHint( nID ), aObj(rObject) \
{ } \
diff --git a/svl/inc/svl/solar.hrc b/svl/inc/svl/solar.hrc
index 6d13d46ec759..127bad54d562 100644
--- a/svl/inc/svl/solar.hrc
+++ b/svl/inc/svl/solar.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,10 +30,10 @@
// defines ------------------------------------------------------------------
-#define OWN_ATTR_VALUE_START 3900
+#define OWN_ATTR_VALUE_START 3900
#define OWN_ATTR_VALUE_END 3988
-#define CREATERESMGR_NAME( Name ) #Name
+#define CREATERESMGR_NAME( Name ) #Name
#define CREATERESMGR( Name ) ResMgr::CreateResMgr( CREATERESMGR_NAME( Name ) )
#define RID_SFX_START 260
@@ -51,8 +51,8 @@
#define RID_BASIC_START (RID_LIB_START+3000)
#define RID_BASIC_END (RID_LIB_START+4499)
-#define RID_UUI_START (RID_LIB_START+4500)
-#define RID_UUI_END (RID_LIB_START+4599)
+#define RID_UUI_START (RID_LIB_START+4500)
+#define RID_UUI_END (RID_LIB_START+4599)
#define RID_HELP_START (RID_LIB_START+4600)
#define RID_HELP_END (RID_LIB_START+4799)
@@ -108,20 +108,20 @@
#define RID_FORMS_START (RID_LIB_START+8000)
#define RID_FORMS_END (RID_LIB_START+8999)
-#define RID_FORMLAYER_START (RID_LIB_START+9000)
-#define RID_FORMLAYER_END (RID_LIB_START+9199)
+#define RID_FORMLAYER_START (RID_LIB_START+9000)
+#define RID_FORMLAYER_END (RID_LIB_START+9199)
-#define RID_DBACCESS_START (RID_LIB_START+9200)
-#define RID_DBACCESS_END (RID_LIB_START+9699)
+#define RID_DBACCESS_START (RID_LIB_START+9200)
+#define RID_DBACCESS_END (RID_LIB_START+9699)
-#define RID_MORE_EXTENSIONS_START (RID_LIB_START+9700)
-#define RID_MORE_EXTENSIONS_END (RID_LIB_START+9999)
+#define RID_MORE_EXTENSIONS_START (RID_LIB_START+9700)
+#define RID_MORE_EXTENSIONS_END (RID_LIB_START+9999)
-#define RID_DB_EXTENSIONS_START (RID_LIB_START+10000)
-#define RID_DB_EXTENSIONS_END (RID_LIB_START+10199)
+#define RID_DB_EXTENSIONS_START (RID_LIB_START+10000)
+#define RID_DB_EXTENSIONS_END (RID_LIB_START+10199)
-#define RID_FILTER_START (RID_LIB_START+10200)
-#define RID_FILTER_END (RID_LIB_START+10299)
+#define RID_FILTER_START (RID_LIB_START+10200)
+#define RID_FILTER_END (RID_LIB_START+10299)
// do *NOT* add more ranges here, RID_LIB_END is (RID_LIB_START + 10000)
@@ -149,11 +149,11 @@
#define RID_SCH_START (RID_OBJ_START+ 512)
#define RID_SCH_END (RID_OBJ_START+ 767)
-#define RID_RPT_START (RID_OBJ_START+768)
-#define RID_RPT_END (RID_OBJ_START+1000)
+#define RID_RPT_START (RID_OBJ_START+768)
+#define RID_RPT_END (RID_OBJ_START+1000)
-#define RID_FORMULA_START (RID_OBJ_START+1001)
-#define RID_FORMULA_END (RID_OBJ_START+1200)
+#define RID_FORMULA_START (RID_OBJ_START+1001)
+#define RID_FORMULA_END (RID_OBJ_START+1200)
// Help-Ids --------------------------------------------------------------
#define HID_OK_BUTTON 0
@@ -165,8 +165,8 @@
#define HID_VCL_START (HID_START+100)
#define HID_VCL_END (HID_START+150)
-#define HID_SVTOOLS_START (HID_START+200)
-#define HID_SVTOOLS_END (HID_START+299)
+#define HID_SVTOOLS_START (HID_START+200)
+#define HID_SVTOOLS_END (HID_START+299)
#define HID_SFX_START (HID_START+300)
#define HID_SFX_END (HID_START+999)
@@ -189,17 +189,17 @@
#define HID_OFA_START (HID_LIB_START+1760)
#define HID_OFA_END (HID_LIB_START+1999)
-#define HID_HELP_START (HID_LIB_START+2000)
-#define HID_HELP_END (HID_LIB_START+2050)
+#define HID_HELP_START (HID_LIB_START+2000)
+#define HID_HELP_END (HID_LIB_START+2050)
-#define HID_CHAOS_START (HID_LIB_START+2051)
-#define HID_CHAOS_END (HID_LIB_START+2069)
+#define HID_CHAOS_START (HID_LIB_START+2051)
+#define HID_CHAOS_END (HID_LIB_START+2069)
-#define HID_UUI_START (HID_LIB_START+2070)
-#define HID_UUI_END (HID_LIB_START+2099)
+#define HID_UUI_START (HID_LIB_START+2070)
+#define HID_UUI_END (HID_LIB_START+2099)
-#define HID_GOODIES_START (HID_LIB_START+2100)
-#define HID_GOODIES_END (HID_LIB_START+2199)
+#define HID_GOODIES_START (HID_LIB_START+2100)
+#define HID_GOODIES_END (HID_LIB_START+2199)
#define HID_EDIT_START (HID_LIB_START+2200)
#define HID_EDIT_END (HID_LIB_START+3399)
@@ -207,26 +207,26 @@
#define HID_CHANNEL_START (HID_LIB_START+3400)
#define HID_CHANNEL_END (HID_LIB_START+3499)
-#define HID_SBA_START (HID_LIB_START+ 3500)
-#define HID_SBA_END (HID_LIB_START+ 3999)
+#define HID_SBA_START (HID_LIB_START+ 3500)
+#define HID_SBA_END (HID_LIB_START+ 3999)
-#define HID_FORMS_START (HID_LIB_START+4000)
-#define HID_FORMS_END (HID_LIB_START+4999)
+#define HID_FORMS_START (HID_LIB_START+4000)
+#define HID_FORMS_END (HID_LIB_START+4999)
-#define HID_DBACCESS_START (HID_LIB_START+5000)
-#define HID_DBACCESS_END (HID_LIB_START+5299)
+#define HID_DBACCESS_START (HID_LIB_START+5000)
+#define HID_DBACCESS_END (HID_LIB_START+5299)
-#define HID_PORTAL_START (HID_LIB_START+5300)
-#define HID_PORTAL_END (HID_LIB_START+5599)
+#define HID_PORTAL_START (HID_LIB_START+5300)
+#define HID_PORTAL_END (HID_LIB_START+5599)
-#define HID_PORTAL_ADMIN_START (HID_LIB_START+5600)
-#define HID_PORTAL_ADMIN_END (HID_LIB_START+5999)
+#define HID_PORTAL_ADMIN_START (HID_LIB_START+5600)
+#define HID_PORTAL_ADMIN_END (HID_LIB_START+5999)
#define HID_SYNCACCESS_START (HID_LIB_START+6000)
#define HID_SYNCACCESS_END (HID_LIB_START+6099)
-#define HID_SVX_EXT0_START (HID_LIB_START+6100)
-#define HID_SVX_EXT0_END (HID_LIB_START+6599)
+#define HID_SVX_EXT0_START (HID_LIB_START+6100)
+#define HID_SVX_EXT0_END (HID_LIB_START+6599)
#define HID_FRAMEWORK_START (HID_LIB_START+6600)
#define HID_FRAMEWORK_END (HID_LIB_START+6999)
@@ -243,47 +243,47 @@
#define HID_APP_START (HID_START+20000)
#define HID_APP_END (HID_START+29999)
-#define HID_SW_START (HID_START+20000)
-#define HID_SW_END (HID_START+24999)
+#define HID_SW_START (HID_START+20000)
+#define HID_SW_END (HID_START+24999)
-#define HID_SC_START (HID_START+25000)
-#define HID_SC_END (HID_START+26999)
+#define HID_SC_START (HID_START+25000)
+#define HID_SC_END (HID_START+26999)
-#define HID_SD_START (HID_START+27000)
-#define HID_SD_END (HID_START+27999)
+#define HID_SD_START (HID_START+27000)
+#define HID_SD_END (HID_START+27999)
-#define HID_Sa_START (HID_START+28000)
-#define HID_Sa_END (HID_START+28999)
+#define HID_Sa_START (HID_START+28000)
+#define HID_Sa_END (HID_START+28999)
-#define HID_Sb_START (HID_START+29000)
-#define HID_Sb_END (HID_START+29999)
+#define HID_Sb_START (HID_START+29000)
+#define HID_Sb_END (HID_START+29999)
#define HID_OBJ_START (HID_START+30000)
#define HID_OBJ_END (HID_START+32767)
-#define HID_CUI3_START (HID_OBJ_START+ 0)
-#define HID_CUI3_END (HID_OBJ_START+ 239)
+#define HID_CUI3_START (HID_OBJ_START+ 0)
+#define HID_CUI3_END (HID_OBJ_START+ 239)
-#define HID_AVMEDIA_START (HID_OBJ_START+ 240)
-#define HID_AVMEDIA_END (HID_OBJ_START+ 255)
+#define HID_AVMEDIA_START (HID_OBJ_START+ 240)
+#define HID_AVMEDIA_END (HID_OBJ_START+ 255)
-#define HID_SMA_START (HID_OBJ_START+ 256)
-#define HID_SMA_END (HID_OBJ_START+ 511)
+#define HID_SMA_START (HID_OBJ_START+ 256)
+#define HID_SMA_END (HID_OBJ_START+ 511)
-#define HID_SCH_START (HID_OBJ_START+ 512)
-#define HID_SCH_END (HID_OBJ_START+ 767)
+#define HID_SCH_START (HID_OBJ_START+ 512)
+#define HID_SCH_END (HID_OBJ_START+ 767)
-#define HID_BASICIDE_START (HID_OBJ_START+ 768)
-#define HID_BASICIDE_END (HID_OBJ_START+1023)
+#define HID_BASICIDE_START (HID_OBJ_START+ 768)
+#define HID_BASICIDE_END (HID_OBJ_START+1023)
-#define HID_SMA2_START (HID_OBJ_START+1024)
-#define HID_SMA2_END (HID_OBJ_START+1280)
+#define HID_SMA2_START (HID_OBJ_START+1024)
+#define HID_SMA2_END (HID_OBJ_START+1280)
-#define HID_FILTER_START (HID_OBJ_START+1281)
-#define HID_FILTER_END (HID_OBJ_START+1580)
+#define HID_FILTER_START (HID_OBJ_START+1281)
+#define HID_FILTER_END (HID_OBJ_START+1580)
-#define HID_LICENSING_START (HID_OBJ_START+1581)
-#define HID_LICENSING_END (HID_OBJ_START+1680)
+#define HID_LICENSING_START (HID_OBJ_START+1581)
+#define HID_LICENSING_END (HID_OBJ_START+1680)
#define HID_RPT_START (HID_OBJ_START+1681)
#define HID_RPT_END (HID_OBJ_START+2080)
@@ -291,14 +291,14 @@
#define HID_FORMULA_START (HID_OBJ_START+2081)
#define HID_FORMULA_END (HID_OBJ_START+2280)
-#define HID_EXTENSIONS_START (HID_OBJ_START+2281)
-#define HID_EXTENSIONS_END (HID_OBJ_START+2800)
+#define HID_EXTENSIONS_START (HID_OBJ_START+2281)
+#define HID_EXTENSIONS_END (HID_OBJ_START+2800)
// Slot Ids
#define SID_SFX_START 5000
#define SID_SFX_END 8999
-#define SID_DOCKWIN_START 9800
+#define SID_DOCKWIN_START 9800
#define SID_DOCKWIN_END 9999
#define SID_LIB_START 10000
@@ -320,20 +320,20 @@
#define SID_OBJ3_START (SID_OBJ_START + 768)
#define SID_SMA_START SID_OBJ2_START
-#define SID_SMA_END (SID_SMA_START + 255 )
+#define SID_SMA_END (SID_SMA_START + 255 )
#define SID_BASICIDE_START (SID_OBJ3_START)
-#define SID_BASICIDE_END (SID_BASICIDE_START + 255)
+#define SID_BASICIDE_END (SID_BASICIDE_START + 255)
-#define SID_SVX_START SID_LIB_START // 10000
-#define SID_SVX_END (SID_SVX_START + 1499)
+#define SID_SVX_START SID_LIB_START // 10000
+#define SID_SVX_END (SID_SVX_START + 1499)
#define SID_EDIT_START (SID_SVX_END + 1) // 11500
-#define SID_EDIT_END (SID_EDIT_START + 499)
+#define SID_EDIT_END (SID_EDIT_START + 499)
#define SID_OPTIONS_START (SID_EDIT_END + 1) // 12000
#define SID_OPTIONS_END (SID_OPTIONS_START + 100)
#define SID_SBA_START (SID_OPTIONS_END + 1) // 12101
#define SID_SBA_END (SID_SBA_START + 149)
-#define SID_DBACCESS_START (SID_SBA_END + 1) // 12251
-#define SID_DBACCESS_END (SID_DBACCESS_START + 200)
+#define SID_DBACCESS_START (SID_SBA_END + 1) // 12251
+#define SID_DBACCESS_END (SID_DBACCESS_START + 200)
#define SID_RPTUI_START (SID_DBACCESS_END + 1) // 12452
#define SID_RPTUI_END (SID_RPTUI_START + 199)
diff --git a/svl/inc/svl/srchcfg.hxx b/svl/inc/svl/srchcfg.hxx
index bf4760c04b0b..a1da41615125 100644
--- a/svl/inc/svl/srchcfg.hxx
+++ b/svl/inc/svl/srchcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,9 +68,9 @@ public:
SvxSearchConfig(sal_Bool bEnableNotify = sal_True);
virtual ~SvxSearchConfig();
- void Load();
- virtual void Commit();
- virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
+ void Load();
+ virtual void Commit();
+ virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
sal_uInt16 Count();
const SvxSearchEngineData& GetData(sal_uInt16 nPos);
diff --git a/svl/inc/svl/srchdefs.hxx b/svl/inc/svl/srchdefs.hxx
index 55aa25e5afe4..9ade68807f87 100644
--- a/svl/inc/svl/srchdefs.hxx
+++ b/svl/inc/svl/srchdefs.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,9 +41,9 @@
#define SEARCH_OPTIONS_SELECTION ((sal_uInt16)0x0100)
#define SEARCH_OPTIONS_FAMILIES ((sal_uInt16)0x0200)
#define SEARCH_OPTIONS_FORMAT ((sal_uInt16)0x0400)
-#define SEARCH_OPTIONS_MORE ((sal_uInt16)0x0800)
-#define SEARCH_OPTIONS_SIMILARITY ((sal_uInt16)0x1000)
-#define SEARCH_OPTIONS_CONTENT ((sal_uInt16)0x2000)
+#define SEARCH_OPTIONS_MORE ((sal_uInt16)0x0800)
+#define SEARCH_OPTIONS_SIMILARITY ((sal_uInt16)0x1000)
+#define SEARCH_OPTIONS_CONTENT ((sal_uInt16)0x2000)
#endif
diff --git a/svl/inc/svl/srchitem.hxx b/svl/inc/svl/srchitem.hxx
index 01e7250c9f6d..45c8f9027b5f 100644
--- a/svl/inc/svl/srchitem.hxx
+++ b/svl/inc/svl/srchitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,19 +43,19 @@
// defines ---------------------------------------------------------------
// commands
-#define SVX_SEARCHCMD_FIND ((sal_uInt16)0)
-#define SVX_SEARCHCMD_FIND_ALL ((sal_uInt16)1)
-#define SVX_SEARCHCMD_REPLACE ((sal_uInt16)2)
-#define SVX_SEARCHCMD_REPLACE_ALL ((sal_uInt16)3)
+#define SVX_SEARCHCMD_FIND ((sal_uInt16)0)
+#define SVX_SEARCHCMD_FIND_ALL ((sal_uInt16)1)
+#define SVX_SEARCHCMD_REPLACE ((sal_uInt16)2)
+#define SVX_SEARCHCMD_REPLACE_ALL ((sal_uInt16)3)
// search flags
-#define SVX_SEARCHIN_FORMULA ((sal_uInt16)0)
-#define SVX_SEARCHIN_VALUE ((sal_uInt16)1)
-#define SVX_SEARCHIN_NOTE ((sal_uInt16)2)
-#define SVX_SEARCHAPP_WRITER ((sal_uInt16)0)
-#define SVX_SEARCHAPP_CALC ((sal_uInt16)1)
-#define SVX_SEARCHAPP_DRAW ((sal_uInt16)2)
-#define SVX_SEARCHAPP_BASE ((sal_uInt16)3)
+#define SVX_SEARCHIN_FORMULA ((sal_uInt16)0)
+#define SVX_SEARCHIN_VALUE ((sal_uInt16)1)
+#define SVX_SEARCHIN_NOTE ((sal_uInt16)2)
+#define SVX_SEARCHAPP_WRITER ((sal_uInt16)0)
+#define SVX_SEARCHAPP_CALC ((sal_uInt16)1)
+#define SVX_SEARCHAPP_DRAW ((sal_uInt16)2)
+#define SVX_SEARCHAPP_BASE ((sal_uInt16)3)
// class SvxSearchItem ---------------------------------------------------
@@ -63,26 +63,26 @@ class SVL_DLLPUBLIC SvxSearchItem :
public SfxPoolItem,
public utl::ConfigItem
{
- com::sun::star::util::SearchOptions aSearchOpt;
+ com::sun::star::util::SearchOptions aSearchOpt;
- SfxStyleFamily eFamily; // Vorlagen-Familie
+ SfxStyleFamily eFamily; // Vorlagen-Familie
- sal_uInt16 nCommand; // Kommando (Suchen, Alle Suchen, Ersetzen, Alle Ersetzen)
+ sal_uInt16 nCommand; // Kommando (Suchen, Alle Suchen, Ersetzen, Alle Ersetzen)
// Calc-Spezifische Daten
- sal_uInt16 nCellType; // Suche in Formeln/Werten/Notizen
- sal_uInt16 nAppFlag; // Fuer welche Applikation ist der Dialog ueberhaupt
- sal_Bool bRowDirection; // Suchrichtung Zeilenweise/Spaltenweise
- sal_Bool bAllTables; // in alle Tabellen suchen
+ sal_uInt16 nCellType; // Suche in Formeln/Werten/Notizen
+ sal_uInt16 nAppFlag; // Fuer welche Applikation ist der Dialog ueberhaupt
+ sal_Bool bRowDirection; // Suchrichtung Zeilenweise/Spaltenweise
+ sal_Bool bAllTables; // in alle Tabellen suchen
sal_Bool bSearchFiltered; // search filtered cells.
// Writer-spezifisch
- sal_Bool bNotes;
+ sal_Bool bNotes;
- sal_Bool bBackward; // Suche Rueckwaerts
- sal_Bool bPattern; // Suche nach Vorlagen
- sal_Bool bContent; // Suche im Inhalt
- sal_Bool bAsianOptions; // use asian options?
+ sal_Bool bBackward; // Suche Rueckwaerts
+ sal_Bool bPattern; // Suche nach Vorlagen
+ sal_Bool bContent; // Suche im Inhalt
+ sal_Bool bAsianOptions; // use asian options?
public:
TYPEINFO();
@@ -91,9 +91,9 @@ public:
SvxSearchItem( const SvxSearchItem& rItem );
virtual ~SvxSearchItem();
- virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
- virtual int operator == ( const SfxPoolItem& ) const;
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
+ virtual int operator == ( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
@@ -101,91 +101,91 @@ public:
String &rText, const IntlWrapper * = 0 ) const;
// ConfigItem
- virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString > &rPropertyNames );
- virtual void Commit();
+ virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString > &rPropertyNames );
+ virtual void Commit();
- sal_uInt16 GetCommand() const { return nCommand; }
- void SetCommand(sal_uInt16 nNewCommand) { nCommand = nNewCommand; }
+ sal_uInt16 GetCommand() const { return nCommand; }
+ void SetCommand(sal_uInt16 nNewCommand) { nCommand = nNewCommand; }
- inline const String GetSearchString() const;
- inline void SetSearchString(const String& rNewString);
+ inline const String GetSearchString() const;
+ inline void SetSearchString(const String& rNewString);
- inline const String GetReplaceString() const;
- inline void SetReplaceString(const String& rNewString);
+ inline const String GetReplaceString() const;
+ inline void SetReplaceString(const String& rNewString);
- inline sal_Bool GetWordOnly() const;
- void SetWordOnly(sal_Bool bNewWordOnly);
+ inline sal_Bool GetWordOnly() const;
+ void SetWordOnly(sal_Bool bNewWordOnly);
- inline sal_Bool GetExact() const;
- void SetExact(sal_Bool bNewExact);
+ inline sal_Bool GetExact() const;
+ void SetExact(sal_Bool bNewExact);
- sal_Bool GetBackward() const { return bBackward; }
- void SetBackward(sal_Bool bNewBackward) { bBackward = bNewBackward; }
+ sal_Bool GetBackward() const { return bBackward; }
+ void SetBackward(sal_Bool bNewBackward) { bBackward = bNewBackward; }
- inline sal_Bool GetSelection() const;
- void SetSelection(sal_Bool bNewSelection);
+ inline sal_Bool GetSelection() const;
+ void SetSelection(sal_Bool bNewSelection);
- inline sal_Bool GetRegExp() const;
- void SetRegExp( sal_Bool bVal );
+ inline sal_Bool GetRegExp() const;
+ void SetRegExp( sal_Bool bVal );
- sal_Bool GetPattern() const { return bPattern; }
- void SetPattern(sal_Bool bNewPattern) { bPattern = bNewPattern; }
+ sal_Bool GetPattern() const { return bPattern; }
+ void SetPattern(sal_Bool bNewPattern) { bPattern = bNewPattern; }
- sal_Bool IsContent() const { return bContent; }
- void SetContent( sal_Bool bNew ) { bContent = bNew; }
+ sal_Bool IsContent() const { return bContent; }
+ void SetContent( sal_Bool bNew ) { bContent = bNew; }
- SfxStyleFamily GetFamily() const { return eFamily; }
- void SetFamily( SfxStyleFamily eNewFamily )
+ SfxStyleFamily GetFamily() const { return eFamily; }
+ void SetFamily( SfxStyleFamily eNewFamily )
{ eFamily = eNewFamily; }
- sal_Bool GetRowDirection() const { return bRowDirection; }
- void SetRowDirection(sal_Bool bNewRowDirection) { bRowDirection = bNewRowDirection; }
+ sal_Bool GetRowDirection() const { return bRowDirection; }
+ void SetRowDirection(sal_Bool bNewRowDirection) { bRowDirection = bNewRowDirection; }
- sal_Bool IsAllTables() const { return bAllTables; }
- void SetAllTables(sal_Bool bNew) { bAllTables = bNew; }
+ sal_Bool IsAllTables() const { return bAllTables; }
+ void SetAllTables(sal_Bool bNew) { bAllTables = bNew; }
sal_Bool IsSearchFiltered() const { return bSearchFiltered; }
void SetSearchFiltered(sal_Bool b) { bSearchFiltered = b; }
- sal_uInt16 GetCellType() const { return nCellType; }
- void SetCellType(sal_uInt16 nNewCellType) { nCellType = nNewCellType; }
+ sal_uInt16 GetCellType() const { return nCellType; }
+ void SetCellType(sal_uInt16 nNewCellType) { nCellType = nNewCellType; }
- sal_Bool GetNotes() const { return bNotes; }
- void SetNotes(sal_Bool bNew) { bNotes = bNew; }
+ sal_Bool GetNotes() const { return bNotes; }
+ void SetNotes(sal_Bool bNew) { bNotes = bNew; }
- sal_uInt16 GetAppFlag() const { return nAppFlag; }
- void SetAppFlag(sal_uInt16 nNewAppFlag) { nAppFlag = nNewAppFlag; }
+ sal_uInt16 GetAppFlag() const { return nAppFlag; }
+ void SetAppFlag(sal_uInt16 nNewAppFlag) { nAppFlag = nNewAppFlag; }
- inline sal_Bool IsLevenshtein() const;
- void SetLevenshtein( sal_Bool bVal );
+ inline sal_Bool IsLevenshtein() const;
+ void SetLevenshtein( sal_Bool bVal );
- inline sal_Bool IsLEVRelaxed() const;
- void SetLEVRelaxed(sal_Bool bSet);
+ inline sal_Bool IsLEVRelaxed() const;
+ void SetLEVRelaxed(sal_Bool bSet);
- inline sal_uInt16 GetLEVOther() const;
- inline void SetLEVOther(sal_uInt16 nSet);
+ inline sal_uInt16 GetLEVOther() const;
+ inline void SetLEVOther(sal_uInt16 nSet);
- inline sal_uInt16 GetLEVShorter() const;
- inline void SetLEVShorter(sal_uInt16 nSet);
+ inline sal_uInt16 GetLEVShorter() const;
+ inline void SetLEVShorter(sal_uInt16 nSet);
- inline sal_uInt16 GetLEVLonger() const;
- inline void SetLEVLonger(sal_uInt16 nSet);
+ inline sal_uInt16 GetLEVLonger() const;
+ inline void SetLEVLonger(sal_uInt16 nSet);
- void GetFromDescriptor( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XSearchDescriptor > & rDescr );
- void SetToDescriptor( ::com::sun::star::uno::Reference< ::com::sun::star::util::XSearchDescriptor > & rDescr );
+ void GetFromDescriptor( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XSearchDescriptor > & rDescr );
+ void SetToDescriptor( ::com::sun::star::uno::Reference< ::com::sun::star::util::XSearchDescriptor > & rDescr );
inline const com::sun::star::util::SearchOptions &
GetSearchOptions() const;
- inline void SetSearchOptions( const com::sun::star::util::SearchOptions &rOpt );
+ inline void SetSearchOptions( const com::sun::star::util::SearchOptions &rOpt );
- inline sal_Int32 GetTransliterationFlags() const;
- void SetTransliterationFlags( sal_Int32 nFlags );
+ inline sal_Int32 GetTransliterationFlags() const;
+ void SetTransliterationFlags( sal_Int32 nFlags );
- inline sal_Bool IsMatchFullHalfWidthForms() const;
- void SetMatchFullHalfWidthForms( sal_Bool bVal );
+ inline sal_Bool IsMatchFullHalfWidthForms() const;
+ void SetMatchFullHalfWidthForms( sal_Bool bVal );
- inline sal_Bool IsUseAsianOptions() const { return bAsianOptions; }
- inline void SetUseAsianOptions( sal_Bool bVal ) { bAsianOptions = bVal; }
+ inline sal_Bool IsUseAsianOptions() const { return bAsianOptions; }
+ inline void SetUseAsianOptions( sal_Bool bVal ) { bAsianOptions = bVal; }
};
const String SvxSearchItem::GetSearchString() const
diff --git a/svl/inc/svl/stritem.hxx b/svl/inc/svl/stritem.hxx
index fd20b9719a9e..4f085c1f179e 100644
--- a/svl/inc/svl/stritem.hxx
+++ b/svl/inc/svl/stritem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/style.hrc b/svl/inc/svl/style.hrc
index f49a95e48f67..0dfe5f7c2e7b 100644
--- a/svl/inc/svl/style.hrc
+++ b/svl/inc/svl/style.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,11 +28,11 @@
#ifndef _SFX_STYLE_HRC
#define _SFX_STYLE_HRC
-#define SFXSTYLEBIT_AUTO 0x0000 // automatisch; Flags kommen von der Applikation
-#define SFXSTYLEBIT_READONLY 0x2000 // benutzte Vorlage (als Suchmaske)
-#define SFXSTYLEBIT_USED 0x4000 // benutzte Vorlage (als Suchmaske)
-#define SFXSTYLEBIT_USERDEF 0x8000 // benutzerdefinierte Vorlage
-#define SFXSTYLEBIT_ALL 0xFFFF // alle Vorlagen
+#define SFXSTYLEBIT_AUTO 0x0000 // automatisch; Flags kommen von der Applikation
+#define SFXSTYLEBIT_READONLY 0x2000 // benutzte Vorlage (als Suchmaske)
+#define SFXSTYLEBIT_USED 0x4000 // benutzte Vorlage (als Suchmaske)
+#define SFXSTYLEBIT_USERDEF 0x8000 // benutzerdefinierte Vorlage
+#define SFXSTYLEBIT_ALL 0xFFFF // alle Vorlagen
#endif
diff --git a/svl/inc/svl/style.hxx b/svl/inc/svl/style.hxx
index 7950915fb38d..e2c61b733cb1 100644
--- a/svl/inc/svl/style.hxx
+++ b/svl/inc/svl/style.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,18 +92,18 @@ class SVL_DLLPUBLIC SfxStyleSheetBase : public comphelper::OWeakTypeObject
friend class SfxStyleSheetBasePool;
protected:
- SfxStyleSheetBasePool& rPool; // zugehoeriger Pool
- SfxStyleFamily nFamily; // Familie
+ SfxStyleSheetBasePool& rPool; // zugehoeriger Pool
+ SfxStyleFamily nFamily; // Familie
- UniString aName, aParent, aFollow;
- rtl::OUString maDisplayName;
- String aHelpFile; // Name der Hilfedatei
- SfxItemSet* pSet; // ItemSet
- USHORT nMask; // Flags
+ UniString aName, aParent, aFollow;
+ rtl::OUString maDisplayName;
+ String aHelpFile; // Name der Hilfedatei
+ SfxItemSet* pSet; // ItemSet
+ USHORT nMask; // Flags
- ULONG nHelpId; // Hilfe-ID
+ ULONG nHelpId; // Hilfe-ID
- BOOL bMySet; // TRUE: Set loeschen im dtor
+ BOOL bMySet; // TRUE: Set loeschen im dtor
SfxStyleSheetBase(); // do not use!
SfxStyleSheetBase( const UniString&, SfxStyleSheetBasePool&, SfxStyleFamily eFam, USHORT mask );
@@ -132,19 +132,19 @@ public:
virtual BOOL SetParent( const UniString& );
virtual const UniString& GetFollow() const;
virtual BOOL SetFollow( const UniString& );
- virtual BOOL HasFollowSupport() const; // Default TRUE
- virtual BOOL HasParentSupport() const; // Default TRUE
- virtual BOOL HasClearParentSupport() const; // Default FALSE
- virtual BOOL IsUsed() const; // Default TRUE
+ virtual BOOL HasFollowSupport() const; // Default TRUE
+ virtual BOOL HasParentSupport() const; // Default TRUE
+ virtual BOOL HasClearParentSupport() const; // Default FALSE
+ virtual BOOL IsUsed() const; // Default TRUE
// Default aus dem Itemset; entweder dem uebergebenen
// oder aus dem per GetItemSet() zurueckgelieferten Set
virtual UniString GetDescription();
- virtual UniString GetDescription( SfxMapUnit eMetric );
+ virtual UniString GetDescription( SfxMapUnit eMetric );
SfxStyleSheetBasePool& GetPool() { return rPool; }
SfxStyleFamily GetFamily() const { return nFamily; }
- USHORT GetMask() const { return nMask; }
- void SetMask( USHORT mask) { nMask = mask; }
+ USHORT GetMask() const { return nMask; }
+ void SetMask( USHORT mask) { nMask = mask; }
BOOL IsUserDefined() const
{ return BOOL( ( nMask & SFXSTYLEBIT_USERDEF) != 0 ); }
@@ -163,7 +163,7 @@ typedef std::vector< rtl::Reference< SfxStyleSheetBase > > SfxStyles;
class SVL_DLLPUBLIC SfxStyleSheetIterator
-/* [Beschreibung]
+/* [Beschreibung]
Klasse zum Iterieren und Suchen auf einem SfxStyleSheetBasePool.
@@ -184,20 +184,20 @@ public:
protected:
- SfxStyleSheetBasePool* pBasePool;
- SfxStyleFamily nSearchFamily;
- USHORT nMask;
+ SfxStyleSheetBasePool* pBasePool;
+ SfxStyleFamily nSearchFamily;
+ USHORT nMask;
BOOL SearchUsed() const { return bSearchUsed; }
private:
- USHORT GetPos(){return nAktPosition;}
- SVL_DLLPRIVATE BOOL IsTrivialSearch();
- SVL_DLLPRIVATE BOOL DoesStyleMatch(SfxStyleSheetBase *pStyle);
+ USHORT GetPos(){return nAktPosition;}
+ SVL_DLLPRIVATE BOOL IsTrivialSearch();
+ SVL_DLLPRIVATE BOOL DoesStyleMatch(SfxStyleSheetBase *pStyle);
- void* pImp;
- SfxStyleSheetBase* pAktStyle;
- USHORT nAktPosition;
- BOOL bSearchUsed;
+ void* pImp;
+ SfxStyleSheetBase* pAktStyle;
+ USHORT nAktPosition;
+ BOOL bSearchUsed;
friend class SfxStyleSheetBasePool;
};
@@ -214,19 +214,19 @@ friend class SfxStyleSheetBase;
SfxStyleSheetBasePool_Impl *pImp;
private:
- SVL_DLLPRIVATE BOOL Load1_Impl( SvStream& );
+ SVL_DLLPRIVATE BOOL Load1_Impl( SvStream& );
SVL_DLLPRIVATE SfxStyleSheetIterator& GetIterator_Impl();
protected:
- String aAppName;
- SfxItemPool& rPool;
- SfxStyles aStyles;
- SfxStyleFamily nSearchFamily;
- USHORT nMask;
+ String aAppName;
+ SfxItemPool& rPool;
+ SfxStyles aStyles;
+ SfxStyleFamily nSearchFamily;
+ USHORT nMask;
- SfxStyleSheetBase& Add( SfxStyleSheetBase& );
- void ChangeParent( const UniString&, const UniString&, BOOL bVirtual = TRUE );
- virtual SfxStyleSheetBase* Create( const UniString&, SfxStyleFamily, USHORT );
- virtual SfxStyleSheetBase* Create( const SfxStyleSheetBase& );
+ SfxStyleSheetBase& Add( SfxStyleSheetBase& );
+ void ChangeParent( const UniString&, const UniString&, BOOL bVirtual = TRUE );
+ virtual SfxStyleSheetBase* Create( const UniString&, SfxStyleFamily, USHORT );
+ virtual SfxStyleSheetBase* Create( const SfxStyleSheetBase& );
~SfxStyleSheetBasePool();
@@ -234,51 +234,51 @@ public:
SfxStyleSheetBasePool( SfxItemPool& );
SfxStyleSheetBasePool( const SfxStyleSheetBasePool& );
- static String GetStreamName();
+ static String GetStreamName();
- const String& GetAppName() const { return aAppName; }
+ const String& GetAppName() const { return aAppName; }
- SfxItemPool& GetPool();
- const SfxItemPool& GetPool() const;
+ SfxItemPool& GetPool();
+ const SfxItemPool& GetPool() const;
virtual SfxStyleSheetIterator* CreateIterator(SfxStyleFamily, USHORT nMask);
- virtual USHORT Count();
- virtual SfxStyleSheetBase* operator[](USHORT nIdx);
+ virtual USHORT Count();
+ virtual SfxStyleSheetBase* operator[](USHORT nIdx);
- virtual SfxStyleSheetBase& Make(const UniString&,
+ virtual SfxStyleSheetBase& Make(const UniString&,
SfxStyleFamily eFam,
USHORT nMask = 0xffff ,
USHORT nPos = 0xffff);
virtual void Replace(
SfxStyleSheetBase& rSource, SfxStyleSheetBase& rTarget );
+
+ virtual void Remove( SfxStyleSheetBase* );
+ virtual void Insert( SfxStyleSheetBase* );
- virtual void Remove( SfxStyleSheetBase* );
- virtual void Insert( SfxStyleSheetBase* );
-
- virtual void Clear();
+ virtual void Clear();
- SfxStyleSheetBasePool& operator=( const SfxStyleSheetBasePool& );
- SfxStyleSheetBasePool& operator+=( const SfxStyleSheetBasePool& );
+ SfxStyleSheetBasePool& operator=( const SfxStyleSheetBasePool& );
+ SfxStyleSheetBasePool& operator+=( const SfxStyleSheetBasePool& );
- const SfxStyles& GetStyles();
- virtual SfxStyleSheetBase* First();
- virtual SfxStyleSheetBase* Next();
- virtual SfxStyleSheetBase* Find( const UniString&, SfxStyleFamily eFam, USHORT n=0xFFFF );
+ const SfxStyles& GetStyles();
+ virtual SfxStyleSheetBase* First();
+ virtual SfxStyleSheetBase* Next();
+ virtual SfxStyleSheetBase* Find( const UniString&, SfxStyleFamily eFam, USHORT n=0xFFFF );
virtual BOOL SetParent(SfxStyleFamily eFam,
const UniString &rStyle,
const UniString &rParent);
- SfxStyleSheetBase* Find(const UniString& rStr)
+ SfxStyleSheetBase* Find(const UniString& rStr)
{ return Find(rStr, nSearchFamily, nMask); }
- void SetSearchMask(SfxStyleFamily eFam, USHORT n=0xFFFF );
- USHORT GetSearchMask() const;
- SfxStyleFamily GetSearchFamily() const { return nSearchFamily; }
+ void SetSearchMask(SfxStyleFamily eFam, USHORT n=0xFFFF );
+ USHORT GetSearchMask() const;
+ SfxStyleFamily GetSearchFamily() const { return nSearchFamily; }
- BOOL Load( SvStream& );
- BOOL Store( SvStream&, BOOL bUsed = TRUE );
+ BOOL Load( SvStream& );
+ BOOL Store( SvStream&, BOOL bUsed = TRUE );
};
//=========================================================================
@@ -292,12 +292,12 @@ public:
SfxStyleSheet( const UniString&, const SfxStyleSheetBasePool&, SfxStyleFamily, USHORT );
SfxStyleSheet( const SfxStyleSheet& );
- virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
- virtual BOOL SetParent( const UniString& );
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+ virtual BOOL SetParent( const UniString& );
protected:
SfxStyleSheet(); // do not use!
- virtual ~SfxStyleSheet();
+ virtual ~SfxStyleSheet();
};
//=========================================================================
@@ -312,16 +312,16 @@ protected:
public:
SfxStyleSheetPool( SfxItemPool const& );
-// virtual BOOL CopyTo(SfxStyleSheetPool &rDest, const String &rSourceName);
+// virtual BOOL CopyTo(SfxStyleSheetPool &rDest, const String &rSourceName);
};
//=========================================================================
-#define SFX_STYLESHEET_CREATED 1 // neu
-#define SFX_STYLESHEET_MODIFIED 2 // ver"andert
-#define SFX_STYLESHEET_CHANGED 3 // gel"oscht und neu (ausgetauscht)
-#define SFX_STYLESHEET_ERASED 4 // gel"oscht
-#define SFX_STYLESHEET_INDESTRUCTION 5 // wird gerade entfernt
+#define SFX_STYLESHEET_CREATED 1 // neu
+#define SFX_STYLESHEET_MODIFIED 2 // ver"andert
+#define SFX_STYLESHEET_CHANGED 3 // gel"oscht und neu (ausgetauscht)
+#define SFX_STYLESHEET_ERASED 4 // gel"oscht
+#define SFX_STYLESHEET_INDESTRUCTION 5 // wird gerade entfernt
#define SFX_STYLESHEETPOOL_CHANGES 1 // Aenderungen, die den Zustand
// des Pools anedern, aber nicht
@@ -338,7 +338,7 @@ public:
TYPEINFO();
SfxStyleSheetPoolHint(USHORT nArgHint) : nHint(nArgHint){}
- USHORT GetHint() const
+ USHORT GetHint() const
{ return nHint; }
};
@@ -346,7 +346,7 @@ public:
class SVL_DLLPUBLIC SfxStyleSheetHint: public SfxHint
{
- SfxStyleSheetBase* pStyleSh;
+ SfxStyleSheetBase* pStyleSh;
USHORT nHint;
public:
@@ -354,9 +354,9 @@ public:
SfxStyleSheetHint( USHORT );
SfxStyleSheetHint( USHORT, SfxStyleSheetBase& );
- SfxStyleSheetBase* GetStyleSheet() const
+ SfxStyleSheetBase* GetStyleSheet() const
{ return pStyleSh; }
- USHORT GetHint() const
+ USHORT GetHint() const
{ return nHint; }
};
diff --git a/svl/inc/svl/svarray.hxx b/svl/inc/svl/svarray.hxx
index 7f1f2ada2f02..91c37fcbb03b 100644
--- a/svl/inc/svl/svarray.hxx
+++ b/svl/inc/svl/svarray.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,81 +31,81 @@
/***********************************************************************
*
-* Hier folgt die Beschreibung fuer die exportierten Makros:
+* Hier folgt die Beschreibung fuer die exportierten Makros:
*
-* SV_DECL_VARARR(nm, AE, IS, GS)
-* SV_IMPL_VARARR( nm, AE )
-* definiere/implementiere ein Array das einfache Objecte
-* enthaelt. (Sie werden im Speicher verschoben, koennen also
-* z.B. keine String sein)
+* SV_DECL_VARARR(nm, AE, IS, GS)
+* SV_IMPL_VARARR( nm, AE )
+* definiere/implementiere ein Array das einfache Objecte
+* enthaelt. (Sie werden im Speicher verschoben, koennen also
+* z.B. keine String sein)
*
-* SV_DECL_OBJARR(nm, AE, IS, GS)
-* SV_IMPL_OBJARR( nm, AE )
-* definiere/implementiere ein Array das Objecte enthaelt.
-* (Hier koennen es auch Strings sein)
+* SV_DECL_OBJARR(nm, AE, IS, GS)
+* SV_IMPL_OBJARR( nm, AE )
+* definiere/implementiere ein Array das Objecte enthaelt.
+* (Hier koennen es auch Strings sein)
*
*
-* SV_DECL_PTRARR(nm, AE, IS, GS)
-* SV_IMPL_PTRARR(nm, AE)
-* definiere/implementiere ein Array das Pointer haelt. Diese
-* werden von aussen angelegt und zerstoert. Das IMPL-Makro
-* wird nur benoetigt, wenn die DeleteAndDestroy Methode genutzt
-* wird, diese loescht dann die Pointer und ruft deren Destruktoren
+* SV_DECL_PTRARR(nm, AE, IS, GS)
+* SV_IMPL_PTRARR(nm, AE)
+* definiere/implementiere ein Array das Pointer haelt. Diese
+* werden von aussen angelegt und zerstoert. Das IMPL-Makro
+* wird nur benoetigt, wenn die DeleteAndDestroy Methode genutzt
+* wird, diese loescht dann die Pointer und ruft deren Destruktoren
*
-* SV_DECL_PTRARR_DEL(nm, AE, IS, GS)
-* SV_IMPL_PTRARR(nm, AE)
-* definiere/implementiere ein Array das Pointer haelt. Diese
-* werden von aussen angelegt und im Destructor zerstoert.
+* SV_DECL_PTRARR_DEL(nm, AE, IS, GS)
+* SV_IMPL_PTRARR(nm, AE)
+* definiere/implementiere ein Array das Pointer haelt. Diese
+* werden von aussen angelegt und im Destructor zerstoert.
*
*
-* SV_DECL_PTRARR_SORT(nm, AE, IS, GS)
-* SV_IMPL_PTRARR_SORT( nm,AE )
-* defieniere/implementiere ein Sort-Array mit Pointern, das nach
-* Pointern sortiert ist. Basiert auf einem PTRARR
+* SV_DECL_PTRARR_SORT(nm, AE, IS, GS)
+* SV_IMPL_PTRARR_SORT( nm,AE )
+* defieniere/implementiere ein Sort-Array mit Pointern, das nach
+* Pointern sortiert ist. Basiert auf einem PTRARR
*
-* SV_DECL_PTRARR_SORT_DEL(nm, AE, IS, GS)
-* SV_IMPL_PTRARR_SORT( nm,AE )
-* defieniere/implementiere ein Sort-Array mit Pointern, das nach
-* Pointern sortiert ist. Basiert auf einem PTRARR_DEL
+* SV_DECL_PTRARR_SORT_DEL(nm, AE, IS, GS)
+* SV_IMPL_PTRARR_SORT( nm,AE )
+* defieniere/implementiere ein Sort-Array mit Pointern, das nach
+* Pointern sortiert ist. Basiert auf einem PTRARR_DEL
*
-* SV_DECL_PTRARR_SORT(nm, AE, IS, GS)
-* SV_IMPL_OP_PTRARR_SORT( nm,AE )
-* defieniere/implementiere ein Sort-Array mit Pointern, das nach
-* Objecten sortiert ist. Basiert auf einem PTRARR.
-* Sortierung mit Hilfe der Object-operatoren "<" und "=="
+* SV_DECL_PTRARR_SORT(nm, AE, IS, GS)
+* SV_IMPL_OP_PTRARR_SORT( nm,AE )
+* defieniere/implementiere ein Sort-Array mit Pointern, das nach
+* Objecten sortiert ist. Basiert auf einem PTRARR.
+* Sortierung mit Hilfe der Object-operatoren "<" und "=="
*
-* SV_DECL_PTRARR_SORT_DEL(nm, AE, IS, GS)
-* SV_IMPL_OP_PTRARR_SORT( nm,AE )
-* defieniere/implementiere ein Sort-Array mit Pointern, das nach
-* Objecten sortiert ist. Basiert auf einem PTRARR_DEL.
-* Sortierung mit Hilfe der Object-operatoren "<" und "=="
+* SV_DECL_PTRARR_SORT_DEL(nm, AE, IS, GS)
+* SV_IMPL_OP_PTRARR_SORT( nm,AE )
+* defieniere/implementiere ein Sort-Array mit Pointern, das nach
+* Objecten sortiert ist. Basiert auf einem PTRARR_DEL.
+* Sortierung mit Hilfe der Object-operatoren "<" und "=="
*
-* SV_DECL_VARARR_SORT(nm, AE, IS, GS)
-* SV_IMPL_VARARR_SORT( nm,AE )
-* defieniere/implementiere ein Sort-Array mit einfachen Objecten.
-* Basiert auf einem VARARR.
-* Sortierung mit Hilfe der Object-operatoren "<" und "=="
+* SV_DECL_VARARR_SORT(nm, AE, IS, GS)
+* SV_IMPL_VARARR_SORT( nm,AE )
+* defieniere/implementiere ein Sort-Array mit einfachen Objecten.
+* Basiert auf einem VARARR.
+* Sortierung mit Hilfe der Object-operatoren "<" und "=="
*
* JP 23.12.94 neu:
-* SV_DECL_PTRARR_STACK(nm, AE, IS, GS)
-* ein Stack mit einem PtrArray als Grundlage.
+* SV_DECL_PTRARR_STACK(nm, AE, IS, GS)
+* ein Stack mit einem PtrArray als Grundlage.
*
* JP 09.10.96: vordefinierte Arrays:
-* VarArr: SvBools, SvULongs, SvUShorts, SvLongs, SvShorts
-* PtrArr: SvStrings, SvStringsDtor
-* SortArr: SvStringsSort, SvStringsSortDtor,
-* SvStringsISort, SvStringsISortDtor
+* VarArr: SvBools, SvULongs, SvUShorts, SvLongs, SvShorts
+* PtrArr: SvStrings, SvStringsDtor
+* SortArr: SvStringsSort, SvStringsSortDtor,
+* SvStringsISort, SvStringsISortDtor
***********************************************************************/
#include "svl/svldllapi.h"
#ifndef INCLUDED_STRING_H
-#include <string.h> // memmove()
+#include <string.h> // memmove()
#define INCLUDED_STRING_H
#endif
#ifndef INCLUDED_LIMITS_H
-#include <limits.h> // USHRT_MAX
+#include <limits.h> // USHRT_MAX
#define INCLUDED_LIMITS_H
#endif
#include <rtl/alloc.h>
@@ -685,7 +685,7 @@ public:\
void Insert( const AE *pE, USHORT nL );\
void Remove( USHORT nP, USHORT nL = 1 );\
void Remove( const AE& aE, USHORT nL = 1 );\
- USHORT Count() const { return nm##_SAR::Count(); }\
+ USHORT Count() const { return nm##_SAR::Count(); }\
const AE* GetData() const { return (const AE*)pData; }\
\
/* Das Ende stehe im DECL-Makro !!! */
@@ -853,7 +853,7 @@ void nm::Remove( const AE &aE, USHORT nL )\
return SvPtrarr::GetPos((const VoidPtr&)aE);\
}\
void Remove( AE& aE, USHORT nL = 1 ) { \
- Remove( (const AE&) aE, nL );\
+ Remove( (const AE&) aE, nL );\
}
#else
@@ -901,7 +901,7 @@ _SV_DECL_PTRARR_SORT(nm, AE, IS, GS, )
#define SV_DECL_PTRARR_SORT_VISIBILITY(nm, AE, IS, GS, vis)\
_SV_DECL_PTRARR_SORT(nm, AE, IS, GS, vis)
-
+
#define _SV_DECL_PTRARR_SORT_DEL(nm, AE, IS, GS, vis)\
_SV_DECL_PTRARR_SORT_ALG(nm, AE, IS, GS, vis)\
@@ -1043,6 +1043,6 @@ public:\
#endif
#endif
-#endif //_SVARRAY_HXX
+#endif //_SVARRAY_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/inc/svl/svdde.hxx b/svl/inc/svl/svdde.hxx
index 9ed45a146be8..d5832e090a06 100644
--- a/svl/inc/svl/svdde.hxx
+++ b/svl/inc/svl/svdde.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ class SVL_DLLPUBLIC DdeData
SVL_DLLPRIVATE void Lock();
- void SetFormat( ULONG nFmt );
+ void SetFormat( ULONG nFmt );
public:
DdeData();
diff --git a/svl/inc/svl/svl.hrc b/svl/inc/svl/svl.hrc
index 4dc74a7f83b7..dff670ce1e81 100644
--- a/svl/inc/svl/svl.hrc
+++ b/svl/inc/svl/svl.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,135 +28,135 @@
*
************************************************************************/
#ifndef _SVL_HRC
-#define _SVL_HRC
+#define _SVL_HRC
#include <svl/solar.hrc>
-#define STR_SVT_MIMETYPE_START (RID_SVL_START)
-#define STR_SVT_MIMETYPE_APP_OCTSTREAM (STR_SVT_MIMETYPE_START+0)
-#define STR_SVT_MIMETYPE_APP_PDF (STR_SVT_MIMETYPE_START+1)
-#define STR_SVT_MIMETYPE_APP_RTF (STR_SVT_MIMETYPE_START+2)
-#define STR_SVT_MIMETYPE_APP_MSWORD (STR_SVT_MIMETYPE_START+3)
-#define STR_SVT_MIMETYPE_APP_STARCALC (STR_SVT_MIMETYPE_START+4)
-#define STR_SVT_MIMETYPE_APP_STARCHART (STR_SVT_MIMETYPE_START+5)
-#define STR_SVT_MIMETYPE_APP_STARDRAW (STR_SVT_MIMETYPE_START+6)
-#define STR_SVT_MIMETYPE_APP_STARIMAGE (STR_SVT_MIMETYPE_START+7)
-#define STR_SVT_MIMETYPE_APP_STARMATH (STR_SVT_MIMETYPE_START+8)
-#define STR_SVT_MIMETYPE_APP_STARWRITER (STR_SVT_MIMETYPE_START+9)
-#define STR_SVT_MIMETYPE_APP_ZIP (STR_SVT_MIMETYPE_START+10)
-#define STR_SVT_MIMETYPE_AUDIO_AIFF (STR_SVT_MIMETYPE_START+11)
-#define STR_SVT_MIMETYPE_AUDIO_BASIC (STR_SVT_MIMETYPE_START+12)
-#define STR_SVT_MIMETYPE_AUDIO_VORBIS (STR_SVT_MIMETYPE_START+13)
-#define STR_SVT_MIMETYPE_AUDIO_MIDI (STR_SVT_MIMETYPE_START+14)
-#define STR_SVT_MIMETYPE_AUDIO_WAV (STR_SVT_MIMETYPE_START+15)
-#define STR_SVT_MIMETYPE_IMAGE_GIF (STR_SVT_MIMETYPE_START+16)
-#define STR_SVT_MIMETYPE_IMAGE_JPEG (STR_SVT_MIMETYPE_START+17)
-#define STR_SVT_MIMETYPE_IMAGE_PCX (STR_SVT_MIMETYPE_START+18)
-#define STR_SVT_MIMETYPE_IMAGE_BMP (STR_SVT_MIMETYPE_START+19)
-#define STR_SVT_MIMETYPE_TEXT_HTML (STR_SVT_MIMETYPE_START+20)
-#define STR_SVT_MIMETYPE_TEXT_PLAIN (STR_SVT_MIMETYPE_START+21)
-#define STR_SVT_MIMETYPE_TEXT_URL (STR_SVT_MIMETYPE_START+22)
-#define STR_SVT_MIMETYPE_TEXT_VCARD (STR_SVT_MIMETYPE_START+23)
-#define STR_SVT_MIMETYPE_VIDEO_THEORA (STR_SVT_MIMETYPE_START+24)
-#define STR_SVT_MIMETYPE_VIDEO_VDO (STR_SVT_MIMETYPE_START+25)
-#define STR_SVT_MIMETYPE_VIDEO_MSVIDEO (STR_SVT_MIMETYPE_START+26)
-#define STR_SVT_MIMETYPE_X_STARMAIL (STR_SVT_MIMETYPE_START+27)
-#define STR_SVT_MIMETYPE_X_VRML (STR_SVT_MIMETYPE_START+28)
-#define STR_SVT_MIMETYPE_APP_STARHELP (STR_SVT_MIMETYPE_START+29)
-#define STR_SVT_MIMETYPE_APP_STARIMPRESS (STR_SVT_MIMETYPE_START+30)
-#define STR_SVT_MIMETYPE_APP_SCHED_CMB (STR_SVT_MIMETYPE_START+31)
-#define STR_SVT_MIMETYPE_APP_SCHED_EVT (STR_SVT_MIMETYPE_START+32)
-#define STR_SVT_MIMETYPE_APP_SCHED_TASK (STR_SVT_MIMETYPE_START+33)
-#define STR_SVT_MIMETYPE_APP_SCHED_TVIEW (STR_SVT_MIMETYPE_START+34)
+#define STR_SVT_MIMETYPE_START (RID_SVL_START)
+#define STR_SVT_MIMETYPE_APP_OCTSTREAM (STR_SVT_MIMETYPE_START+0)
+#define STR_SVT_MIMETYPE_APP_PDF (STR_SVT_MIMETYPE_START+1)
+#define STR_SVT_MIMETYPE_APP_RTF (STR_SVT_MIMETYPE_START+2)
+#define STR_SVT_MIMETYPE_APP_MSWORD (STR_SVT_MIMETYPE_START+3)
+#define STR_SVT_MIMETYPE_APP_STARCALC (STR_SVT_MIMETYPE_START+4)
+#define STR_SVT_MIMETYPE_APP_STARCHART (STR_SVT_MIMETYPE_START+5)
+#define STR_SVT_MIMETYPE_APP_STARDRAW (STR_SVT_MIMETYPE_START+6)
+#define STR_SVT_MIMETYPE_APP_STARIMAGE (STR_SVT_MIMETYPE_START+7)
+#define STR_SVT_MIMETYPE_APP_STARMATH (STR_SVT_MIMETYPE_START+8)
+#define STR_SVT_MIMETYPE_APP_STARWRITER (STR_SVT_MIMETYPE_START+9)
+#define STR_SVT_MIMETYPE_APP_ZIP (STR_SVT_MIMETYPE_START+10)
+#define STR_SVT_MIMETYPE_AUDIO_AIFF (STR_SVT_MIMETYPE_START+11)
+#define STR_SVT_MIMETYPE_AUDIO_BASIC (STR_SVT_MIMETYPE_START+12)
+#define STR_SVT_MIMETYPE_AUDIO_VORBIS (STR_SVT_MIMETYPE_START+13)
+#define STR_SVT_MIMETYPE_AUDIO_MIDI (STR_SVT_MIMETYPE_START+14)
+#define STR_SVT_MIMETYPE_AUDIO_WAV (STR_SVT_MIMETYPE_START+15)
+#define STR_SVT_MIMETYPE_IMAGE_GIF (STR_SVT_MIMETYPE_START+16)
+#define STR_SVT_MIMETYPE_IMAGE_JPEG (STR_SVT_MIMETYPE_START+17)
+#define STR_SVT_MIMETYPE_IMAGE_PCX (STR_SVT_MIMETYPE_START+18)
+#define STR_SVT_MIMETYPE_IMAGE_BMP (STR_SVT_MIMETYPE_START+19)
+#define STR_SVT_MIMETYPE_TEXT_HTML (STR_SVT_MIMETYPE_START+20)
+#define STR_SVT_MIMETYPE_TEXT_PLAIN (STR_SVT_MIMETYPE_START+21)
+#define STR_SVT_MIMETYPE_TEXT_URL (STR_SVT_MIMETYPE_START+22)
+#define STR_SVT_MIMETYPE_TEXT_VCARD (STR_SVT_MIMETYPE_START+23)
+#define STR_SVT_MIMETYPE_VIDEO_THEORA (STR_SVT_MIMETYPE_START+24)
+#define STR_SVT_MIMETYPE_VIDEO_VDO (STR_SVT_MIMETYPE_START+25)
+#define STR_SVT_MIMETYPE_VIDEO_MSVIDEO (STR_SVT_MIMETYPE_START+26)
+#define STR_SVT_MIMETYPE_X_STARMAIL (STR_SVT_MIMETYPE_START+27)
+#define STR_SVT_MIMETYPE_X_VRML (STR_SVT_MIMETYPE_START+28)
+#define STR_SVT_MIMETYPE_APP_STARHELP (STR_SVT_MIMETYPE_START+29)
+#define STR_SVT_MIMETYPE_APP_STARIMPRESS (STR_SVT_MIMETYPE_START+30)
+#define STR_SVT_MIMETYPE_APP_SCHED_CMB (STR_SVT_MIMETYPE_START+31)
+#define STR_SVT_MIMETYPE_APP_SCHED_EVT (STR_SVT_MIMETYPE_START+32)
+#define STR_SVT_MIMETYPE_APP_SCHED_TASK (STR_SVT_MIMETYPE_START+33)
+#define STR_SVT_MIMETYPE_APP_SCHED_TVIEW (STR_SVT_MIMETYPE_START+34)
-#define STR_SVT_MIMETYPE_CNT_MSG (STR_SVT_MIMETYPE_START+35)
-#define STR_SVT_MIMETYPE_CNT_DOCUMENT (STR_SVT_MIMETYPE_START+36)
-#define STR_SVT_MIMETYPE_CNT_POP3BOX (STR_SVT_MIMETYPE_START+37)
-#define STR_SVT_MIMETYPE_CNT_IMAPBOX (STR_SVT_MIMETYPE_START+38)
-#define STR_SVT_MIMETYPE_CNT_IMAPFLD (STR_SVT_MIMETYPE_START+39)
-#define STR_SVT_MIMETYPE_CNT_VIMBOX (STR_SVT_MIMETYPE_START+40)
-#define STR_SVT_MIMETYPE_CNT_VIMINBOX (STR_SVT_MIMETYPE_START+41)
-#define STR_SVT_MIMETYPE_CNT_BBBOX (STR_SVT_MIMETYPE_START+42)
-#define STR_SVT_MIMETYPE_CNT_VIM_BB (STR_SVT_MIMETYPE_START+43)
-#define STR_SVT_MIMETYPE_CNT_NEWSBOX (STR_SVT_MIMETYPE_START+44)
-#define STR_SVT_MIMETYPE_CNT_NEWSGRP (STR_SVT_MIMETYPE_START+45)
-#define STR_SVT_MIMETYPE_CNT_OUTBOX (STR_SVT_MIMETYPE_START+46)
-#define STR_SVT_MIMETYPE_CNT_FTPBOX (STR_SVT_MIMETYPE_START+47)
-#define STR_SVT_MIMETYPE_CNT_FTPFLD (STR_SVT_MIMETYPE_START+48)
-#define STR_SVT_MIMETYPE_CNT_FTPFILE (STR_SVT_MIMETYPE_START+49)
-#define STR_SVT_MIMETYPE_CNT_FTPLINK (STR_SVT_MIMETYPE_START+50)
-#define STR_SVT_MIMETYPE_CNT_HTTPBOX (STR_SVT_MIMETYPE_START+51)
-#define STR_SVT_MIMETYPE_CNT_FSYSBOX (STR_SVT_MIMETYPE_START+52)
-#define STR_SVT_MIMETYPE_CNT_FSYSFLD (STR_SVT_MIMETYPE_START+53)
-#define STR_SVT_MIMETYPE_CNT_FSYSFILE (STR_SVT_MIMETYPE_START+54)
-#define STR_SVT_MIMETYPE_CNT_FSYSURLFILE (STR_SVT_MIMETYPE_START+55)
-#define STR_SVT_MIMETYPE_CNT_PUBLBOX (STR_SVT_MIMETYPE_START+56)
-#define STR_SVT_MIMETYPE_CNT_SRCHBOX (STR_SVT_MIMETYPE_START+57)
-#define STR_SVT_MIMETYPE_CNT_SUBSCRBOX (STR_SVT_MIMETYPE_START+58)
-#define STR_SVT_MIMETYPE_CNT_BOOKMARK (STR_SVT_MIMETYPE_START+59)
-#define STR_SVT_MIMETYPE_CNT_CDF (STR_SVT_MIMETYPE_START+60)
-#define STR_SVT_MIMETYPE_CNT_CDFSUB (STR_SVT_MIMETYPE_START+61)
-#define STR_SVT_MIMETYPE_CNT_CDFITEM (STR_SVT_MIMETYPE_START+62)
-#define STR_SVT_MIMETYPE_CNT_STARCHANNEL (STR_SVT_MIMETYPE_START+63)
-#define STR_SVT_MIMETYPE_CNT_TRASHBOX (STR_SVT_MIMETYPE_START+64)
-#define STR_SVT_MIMETYPE_CNT_TRASH (STR_SVT_MIMETYPE_START+65)
-#define STR_SVT_MIMETYPE_CNT_REMOV_VOL (STR_SVT_MIMETYPE_START+66)
-#define STR_SVT_MIMETYPE_CNT_FIX_VOL (STR_SVT_MIMETYPE_START+67)
-#define STR_SVT_MIMETYPE_CNT_REM_VOL (STR_SVT_MIMETYPE_START+68)
-#define STR_SVT_MIMETYPE_CNT_RAM_VOL (STR_SVT_MIMETYPE_START+69)
-#define STR_SVT_MIMETYPE_CNT_CDROM (STR_SVT_MIMETYPE_START+70)
-#define STR_SVT_MIMETYPE_CNT_DISK_35 (STR_SVT_MIMETYPE_START+71)
-#define STR_SVT_MIMETYPE_CNT_DISK_525 (STR_SVT_MIMETYPE_START+72)
-#define STR_SVT_MIMETYPE_CNT_TAPEDRIVE (STR_SVT_MIMETYPE_START+73)
-#define STR_SVT_MIMETYPE_APP_GAL (STR_SVT_MIMETYPE_START+74)
-#define STR_SVT_MIMETYPE_APP_GAL_THEME (STR_SVT_MIMETYPE_START+75)
-#define STR_SVT_MIMETYPE_CNT_SEPARATOR (STR_SVT_MIMETYPE_START+76)
-#define STR_SVT_MIMETYPE_APP_STARW_GLOB (STR_SVT_MIMETYPE_START+77)
-#define STR_SVT_MIMETYPE_APP_SDM (STR_SVT_MIMETYPE_START+78)
-#define STR_SVT_MIMETYPE_APP_SMD (STR_SVT_MIMETYPE_START+79)
-#define STR_SVT_MIMETYPE_APP_STARW_WEB (STR_SVT_MIMETYPE_START+80)
-#define STR_SVT_MIMETYPE_SCHEDULE (STR_SVT_MIMETYPE_START+81)
-#define STR_SVT_MIMETYPE_SCHEDULE_EVT (STR_SVT_MIMETYPE_START+82)
-#define STR_SVT_MIMETYPE_SCHEDULE_TASK (STR_SVT_MIMETYPE_START+83)
-#define STR_SVT_MIMETYPE_SCHEDULE_FEVT (STR_SVT_MIMETYPE_START+84)
-#define STR_SVT_MIMETYPE_SCHEDULE_FTASK (STR_SVT_MIMETYPE_START+85)
-#define STR_SVT_MIMETYPE_FRAMESET (STR_SVT_MIMETYPE_START+86)
-#define STR_SVT_MIMETYPE_MACRO (STR_SVT_MIMETYPE_START+87)
-#define STR_SVT_MIMETYPE_CNT_SFSYSFOLDER (STR_SVT_MIMETYPE_START+88)
-#define STR_SVT_MIMETYPE_CNT_SFSYSFILE (STR_SVT_MIMETYPE_START+89)
-#define STR_SVT_MIMETYPE_APP_TEMPLATE (STR_SVT_MIMETYPE_START+90)
-#define STR_SVT_MIMETYPE_IMAGE_GENERIC (STR_SVT_MIMETYPE_START+91)
-#define STR_SVT_MIMETYPE_APP_MSEXCEL (STR_SVT_MIMETYPE_START+92)
-#define STR_SVT_MIMETYPE_APP_MSEXCEL_TEMPL (STR_SVT_MIMETYPE_START+93)
-#define STR_SVT_MIMETYPE_APP_MSPPOINT (STR_SVT_MIMETYPE_START+94)
-#define STR_SVT_MIMETYPE_TEXT_VCALENDAR (STR_SVT_MIMETYPE_START+95)
-#define STR_SVT_MIMETYPE_TEXT_ICALENDAR (STR_SVT_MIMETYPE_START+96)
-#define STR_SVT_MIMETYPE_TEXT_XMLICALENDAR (STR_SVT_MIMETYPE_START+97)
-#define STR_SVT_MIMETYPE_TEXT_CDE_CALENDAR_APP (STR_SVT_MIMETYPE_START+98)
-#define STR_SVT_MIMETYPE_INET_MSG_RFC822 (STR_SVT_MIMETYPE_START+99)
-#define STR_SVT_MIMETYPE_INET_MULTI_ALTERNATIVE (STR_SVT_MIMETYPE_START+100)
-#define STR_SVT_MIMETYPE_INET_MULTI_DIGEST (STR_SVT_MIMETYPE_START+101)
-#define STR_SVT_MIMETYPE_INET_MULTI_PARALLEL (STR_SVT_MIMETYPE_START+102)
-#define STR_SVT_MIMETYPE_INET_MULTI_RELATED (STR_SVT_MIMETYPE_START+103)
-#define STR_SVT_MIMETYPE_INET_MULTI_MIXED (STR_SVT_MIMETYPE_START+104)
-#define STR_SVT_MIMETYPE_APP_IMPRESSPACKED (STR_SVT_MIMETYPE_START+105)
-#define STR_SVT_MIMETYPE_APP_JAR (STR_SVT_MIMETYPE_START+106)
-#define STR_SVT_MIMETYPE_IMAGE_PNG (STR_SVT_MIMETYPE_START+107)
-#define STR_SVT_MIMETYPE_IMAGE_TIFF (STR_SVT_MIMETYPE_START+108)
+#define STR_SVT_MIMETYPE_CNT_MSG (STR_SVT_MIMETYPE_START+35)
+#define STR_SVT_MIMETYPE_CNT_DOCUMENT (STR_SVT_MIMETYPE_START+36)
+#define STR_SVT_MIMETYPE_CNT_POP3BOX (STR_SVT_MIMETYPE_START+37)
+#define STR_SVT_MIMETYPE_CNT_IMAPBOX (STR_SVT_MIMETYPE_START+38)
+#define STR_SVT_MIMETYPE_CNT_IMAPFLD (STR_SVT_MIMETYPE_START+39)
+#define STR_SVT_MIMETYPE_CNT_VIMBOX (STR_SVT_MIMETYPE_START+40)
+#define STR_SVT_MIMETYPE_CNT_VIMINBOX (STR_SVT_MIMETYPE_START+41)
+#define STR_SVT_MIMETYPE_CNT_BBBOX (STR_SVT_MIMETYPE_START+42)
+#define STR_SVT_MIMETYPE_CNT_VIM_BB (STR_SVT_MIMETYPE_START+43)
+#define STR_SVT_MIMETYPE_CNT_NEWSBOX (STR_SVT_MIMETYPE_START+44)
+#define STR_SVT_MIMETYPE_CNT_NEWSGRP (STR_SVT_MIMETYPE_START+45)
+#define STR_SVT_MIMETYPE_CNT_OUTBOX (STR_SVT_MIMETYPE_START+46)
+#define STR_SVT_MIMETYPE_CNT_FTPBOX (STR_SVT_MIMETYPE_START+47)
+#define STR_SVT_MIMETYPE_CNT_FTPFLD (STR_SVT_MIMETYPE_START+48)
+#define STR_SVT_MIMETYPE_CNT_FTPFILE (STR_SVT_MIMETYPE_START+49)
+#define STR_SVT_MIMETYPE_CNT_FTPLINK (STR_SVT_MIMETYPE_START+50)
+#define STR_SVT_MIMETYPE_CNT_HTTPBOX (STR_SVT_MIMETYPE_START+51)
+#define STR_SVT_MIMETYPE_CNT_FSYSBOX (STR_SVT_MIMETYPE_START+52)
+#define STR_SVT_MIMETYPE_CNT_FSYSFLD (STR_SVT_MIMETYPE_START+53)
+#define STR_SVT_MIMETYPE_CNT_FSYSFILE (STR_SVT_MIMETYPE_START+54)
+#define STR_SVT_MIMETYPE_CNT_FSYSURLFILE (STR_SVT_MIMETYPE_START+55)
+#define STR_SVT_MIMETYPE_CNT_PUBLBOX (STR_SVT_MIMETYPE_START+56)
+#define STR_SVT_MIMETYPE_CNT_SRCHBOX (STR_SVT_MIMETYPE_START+57)
+#define STR_SVT_MIMETYPE_CNT_SUBSCRBOX (STR_SVT_MIMETYPE_START+58)
+#define STR_SVT_MIMETYPE_CNT_BOOKMARK (STR_SVT_MIMETYPE_START+59)
+#define STR_SVT_MIMETYPE_CNT_CDF (STR_SVT_MIMETYPE_START+60)
+#define STR_SVT_MIMETYPE_CNT_CDFSUB (STR_SVT_MIMETYPE_START+61)
+#define STR_SVT_MIMETYPE_CNT_CDFITEM (STR_SVT_MIMETYPE_START+62)
+#define STR_SVT_MIMETYPE_CNT_STARCHANNEL (STR_SVT_MIMETYPE_START+63)
+#define STR_SVT_MIMETYPE_CNT_TRASHBOX (STR_SVT_MIMETYPE_START+64)
+#define STR_SVT_MIMETYPE_CNT_TRASH (STR_SVT_MIMETYPE_START+65)
+#define STR_SVT_MIMETYPE_CNT_REMOV_VOL (STR_SVT_MIMETYPE_START+66)
+#define STR_SVT_MIMETYPE_CNT_FIX_VOL (STR_SVT_MIMETYPE_START+67)
+#define STR_SVT_MIMETYPE_CNT_REM_VOL (STR_SVT_MIMETYPE_START+68)
+#define STR_SVT_MIMETYPE_CNT_RAM_VOL (STR_SVT_MIMETYPE_START+69)
+#define STR_SVT_MIMETYPE_CNT_CDROM (STR_SVT_MIMETYPE_START+70)
+#define STR_SVT_MIMETYPE_CNT_DISK_35 (STR_SVT_MIMETYPE_START+71)
+#define STR_SVT_MIMETYPE_CNT_DISK_525 (STR_SVT_MIMETYPE_START+72)
+#define STR_SVT_MIMETYPE_CNT_TAPEDRIVE (STR_SVT_MIMETYPE_START+73)
+#define STR_SVT_MIMETYPE_APP_GAL (STR_SVT_MIMETYPE_START+74)
+#define STR_SVT_MIMETYPE_APP_GAL_THEME (STR_SVT_MIMETYPE_START+75)
+#define STR_SVT_MIMETYPE_CNT_SEPARATOR (STR_SVT_MIMETYPE_START+76)
+#define STR_SVT_MIMETYPE_APP_STARW_GLOB (STR_SVT_MIMETYPE_START+77)
+#define STR_SVT_MIMETYPE_APP_SDM (STR_SVT_MIMETYPE_START+78)
+#define STR_SVT_MIMETYPE_APP_SMD (STR_SVT_MIMETYPE_START+79)
+#define STR_SVT_MIMETYPE_APP_STARW_WEB (STR_SVT_MIMETYPE_START+80)
+#define STR_SVT_MIMETYPE_SCHEDULE (STR_SVT_MIMETYPE_START+81)
+#define STR_SVT_MIMETYPE_SCHEDULE_EVT (STR_SVT_MIMETYPE_START+82)
+#define STR_SVT_MIMETYPE_SCHEDULE_TASK (STR_SVT_MIMETYPE_START+83)
+#define STR_SVT_MIMETYPE_SCHEDULE_FEVT (STR_SVT_MIMETYPE_START+84)
+#define STR_SVT_MIMETYPE_SCHEDULE_FTASK (STR_SVT_MIMETYPE_START+85)
+#define STR_SVT_MIMETYPE_FRAMESET (STR_SVT_MIMETYPE_START+86)
+#define STR_SVT_MIMETYPE_MACRO (STR_SVT_MIMETYPE_START+87)
+#define STR_SVT_MIMETYPE_CNT_SFSYSFOLDER (STR_SVT_MIMETYPE_START+88)
+#define STR_SVT_MIMETYPE_CNT_SFSYSFILE (STR_SVT_MIMETYPE_START+89)
+#define STR_SVT_MIMETYPE_APP_TEMPLATE (STR_SVT_MIMETYPE_START+90)
+#define STR_SVT_MIMETYPE_IMAGE_GENERIC (STR_SVT_MIMETYPE_START+91)
+#define STR_SVT_MIMETYPE_APP_MSEXCEL (STR_SVT_MIMETYPE_START+92)
+#define STR_SVT_MIMETYPE_APP_MSEXCEL_TEMPL (STR_SVT_MIMETYPE_START+93)
+#define STR_SVT_MIMETYPE_APP_MSPPOINT (STR_SVT_MIMETYPE_START+94)
+#define STR_SVT_MIMETYPE_TEXT_VCALENDAR (STR_SVT_MIMETYPE_START+95)
+#define STR_SVT_MIMETYPE_TEXT_ICALENDAR (STR_SVT_MIMETYPE_START+96)
+#define STR_SVT_MIMETYPE_TEXT_XMLICALENDAR (STR_SVT_MIMETYPE_START+97)
+#define STR_SVT_MIMETYPE_TEXT_CDE_CALENDAR_APP (STR_SVT_MIMETYPE_START+98)
+#define STR_SVT_MIMETYPE_INET_MSG_RFC822 (STR_SVT_MIMETYPE_START+99)
+#define STR_SVT_MIMETYPE_INET_MULTI_ALTERNATIVE (STR_SVT_MIMETYPE_START+100)
+#define STR_SVT_MIMETYPE_INET_MULTI_DIGEST (STR_SVT_MIMETYPE_START+101)
+#define STR_SVT_MIMETYPE_INET_MULTI_PARALLEL (STR_SVT_MIMETYPE_START+102)
+#define STR_SVT_MIMETYPE_INET_MULTI_RELATED (STR_SVT_MIMETYPE_START+103)
+#define STR_SVT_MIMETYPE_INET_MULTI_MIXED (STR_SVT_MIMETYPE_START+104)
+#define STR_SVT_MIMETYPE_APP_IMPRESSPACKED (STR_SVT_MIMETYPE_START+105)
+#define STR_SVT_MIMETYPE_APP_JAR (STR_SVT_MIMETYPE_START+106)
+#define STR_SVT_MIMETYPE_IMAGE_PNG (STR_SVT_MIMETYPE_START+107)
+#define STR_SVT_MIMETYPE_IMAGE_TIFF (STR_SVT_MIMETYPE_START+108)
-#define STR_SVT_MIMETYPE_APP_SXCALC (STR_SVT_MIMETYPE_START+109)
-#define STR_SVT_MIMETYPE_APP_SXCHART (STR_SVT_MIMETYPE_START+110)
-#define STR_SVT_MIMETYPE_APP_SXDRAW (STR_SVT_MIMETYPE_START+111)
-#define STR_SVT_MIMETYPE_APP_SXMATH (STR_SVT_MIMETYPE_START+112)
-#define STR_SVT_MIMETYPE_APP_SXWRITER (STR_SVT_MIMETYPE_START+113)
-#define STR_SVT_MIMETYPE_APP_SXIMPRESS (STR_SVT_MIMETYPE_START+114)
-#define STR_SVT_MIMETYPE_APP_SXGLOBAL (STR_SVT_MIMETYPE_START+115)
-#define STR_SVT_MIMETYPE_APP_SXIPACKED (STR_SVT_MIMETYPE_START+116)
-#define STR_SVT_MIMETYPE_END (STR_SVT_MIMETYPE_APP_SXIPACKED)
+#define STR_SVT_MIMETYPE_APP_SXCALC (STR_SVT_MIMETYPE_START+109)
+#define STR_SVT_MIMETYPE_APP_SXCHART (STR_SVT_MIMETYPE_START+110)
+#define STR_SVT_MIMETYPE_APP_SXDRAW (STR_SVT_MIMETYPE_START+111)
+#define STR_SVT_MIMETYPE_APP_SXMATH (STR_SVT_MIMETYPE_START+112)
+#define STR_SVT_MIMETYPE_APP_SXWRITER (STR_SVT_MIMETYPE_START+113)
+#define STR_SVT_MIMETYPE_APP_SXIMPRESS (STR_SVT_MIMETYPE_START+114)
+#define STR_SVT_MIMETYPE_APP_SXGLOBAL (STR_SVT_MIMETYPE_START+115)
+#define STR_SVT_MIMETYPE_APP_SXIPACKED (STR_SVT_MIMETYPE_START+116)
+#define STR_SVT_MIMETYPE_END (STR_SVT_MIMETYPE_APP_SXIPACKED)
-#define STR_COLUM_DT_AUTO (STR_SVT_MIMETYPE_END+1)
+#define STR_COLUM_DT_AUTO (STR_SVT_MIMETYPE_END+1)
-#endif // #ifndef _SVTOOLS_HRC
+#endif // #ifndef _SVTOOLS_HRC
// ******************************************************************* EOF
diff --git a/svl/inc/svl/svldata.hxx b/svl/inc/svl/svldata.hxx
index 952f09db75e0..9cfcf430b23a 100644
--- a/svl/inc/svl/svldata.hxx
+++ b/svl/inc/svl/svldata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ class ImpSvlData
{
public:
const SfxItemPool * pStoringPool;
- void* m_pThreadsafeRMs;
+ void* m_pThreadsafeRMs;
// one SimpleResMgr for each language for which a resource was requested
// (When using the 'non-simple' resmgr, the first request for any language wins, any
// further request for any other language supply the resmgr of the first call.
@@ -51,7 +51,7 @@ private:
~ImpSvlData();
-public:
+public:
SimpleResMgr * GetSimpleRM(const ::com::sun::star::lang::Locale& rLocale);
static ImpSvlData & GetSvlData();
};
@@ -59,7 +59,7 @@ public:
//============================================================================
class SvtSimpleResId
{
- String m_sValue;
+ String m_sValue;
public:
SvtSimpleResId(USHORT nId, const ::com::sun::star::lang::Locale aLocale) : m_sValue(ImpSvlData::GetSvlData().GetSimpleRM(aLocale)->ReadString(nId)) { };
diff --git a/svl/inc/svl/svldllapi.h b/svl/inc/svl/svldllapi.h
index 59f663910896..9ade12e37bea 100644
--- a/svl/inc/svl/svldllapi.h
+++ b/svl/inc/svl/svldllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/svl/svstdarr.hxx b/svl/inc/svl/svstdarr.hxx
index eef4bd868125..c9d107b8ba06 100644
--- a/svl/inc/svl/svstdarr.hxx
+++ b/svl/inc/svl/svstdarr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,11 +32,11 @@
* (die defines setzen sich aus "_SVSTDARR_" und dem Namen des Array
* ohne "Sv" zusammen)
*
-* VarArr: SvBools, SvULongs, SvUShorts, SvLongs, SvShorts
-* PtrArr: SvStrings, SvStringsDtor
-* SortArr: SvStringsSort, SvStringsSortDtor,
-* SvStringsISort, SvStringsISortDtor,
-* SvUShortsSort
+* VarArr: SvBools, SvULongs, SvUShorts, SvLongs, SvShorts
+* PtrArr: SvStrings, SvStringsDtor
+* SortArr: SvStringsSort, SvStringsSortDtor,
+* SvStringsISort, SvStringsISortDtor,
+* SvUShortsSort
***********************************************************************/
#include "svl/svldllapi.h"
@@ -86,7 +86,7 @@ public:
void Remove( const USHORT nP, USHORT nL = 1 );
BOOL Seek_Entry( const USHORT aE, USHORT* pP = 0 ) const;
- USHORT Count() const { return SvUShorts::Count(); }
+ USHORT Count() const { return SvUShorts::Count(); }
const USHORT* GetData() const { return (const USHORT*)pData; }
const USHORT& operator[](USHORT nP) const {
diff --git a/svl/inc/svl/szitem.hxx b/svl/inc/svl/szitem.hxx
index cd8a40d33e55..6c9dfeab9860 100644
--- a/svl/inc/svl/szitem.hxx
+++ b/svl/inc/svl/szitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ DBG_NAMEEX(SfxSizeItem)
class SfxSizeItem : public SfxPoolItem
{
private:
- Size aVal;
+ Size aVal;
public:
TYPEINFO();
@@ -58,18 +58,18 @@ public:
XubString &rText,
const IntlWrapper * = 0 ) const;
- virtual int operator==( const SfxPoolItem& ) const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual int operator==( const SfxPoolItem& ) const;
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
- virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
+ virtual SfxPoolItem* Create(SvStream &, USHORT nItemVersion) const;
+ virtual SvStream& Store(SvStream &, USHORT nItemVersion) const;
- const Size& GetValue() const { return aVal; }
- void SetValue( const Size& rNewVal ) {
+ const Size& GetValue() const { return aVal; }
+ void SetValue( const Size& rNewVal ) {
DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" );
aVal = rNewVal; }
};
diff --git a/svl/inc/svl/undo.hxx b/svl/inc/svl/undo.hxx
index aaf3fa3ce60c..6dc49a3aa9b3 100644
--- a/svl/inc/svl/undo.hxx
+++ b/svl/inc/svl/undo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ class SVL_DLLPUBLIC SfxRepeatTarget
{
public:
TYPEINFO();
- virtual ~SfxRepeatTarget() = 0;
+ virtual ~SfxRepeatTarget() = 0;
};
//====================================================================
@@ -50,23 +50,23 @@ class SVL_DLLPUBLIC SfxUndoAction
public:
TYPEINFO();
SfxUndoAction();
- virtual ~SfxUndoAction();
+ virtual ~SfxUndoAction();
virtual BOOL IsLinked();
virtual void SetLinked( BOOL bIsLinked = TRUE );
- virtual void Undo();
- virtual void Redo();
- virtual void Repeat(SfxRepeatTarget&);
- virtual BOOL CanRepeat(SfxRepeatTarget&) const;
+ virtual void Undo();
+ virtual void Redo();
+ virtual void Repeat(SfxRepeatTarget&);
+ virtual BOOL CanRepeat(SfxRepeatTarget&) const;
- virtual BOOL Merge( SfxUndoAction *pNextAction );
+ virtual BOOL Merge( SfxUndoAction *pNextAction );
- virtual UniString GetComment() const;
- virtual UniString GetRepeatComment(SfxRepeatTarget&) const;
- virtual USHORT GetId() const;
+ virtual UniString GetComment() const;
+ virtual UniString GetRepeatComment(SfxRepeatTarget&) const;
+ virtual USHORT GetId() const;
private:
- SfxUndoAction& operator=( const SfxUndoAction& ); // n.i.!!
+ SfxUndoAction& operator=( const SfxUndoAction& ); // n.i.!!
};
//========================================================================
@@ -80,9 +80,9 @@ SV_DECL_PTRARR( SfxUndoActions, SfxUndoAction*, 20, 8 )
struct SVL_DLLPUBLIC SfxUndoArray
{
SfxUndoActions aUndoActions;
- USHORT nMaxUndoActions;
- USHORT nCurUndoAction;
- SfxUndoArray *pFatherUndoArray;
+ USHORT nMaxUndoActions;
+ USHORT nCurUndoAction;
+ SfxUndoArray *pFatherUndoArray;
SfxUndoArray(USHORT nMax=0):
nMaxUndoActions(nMax), nCurUndoAction(0),
pFatherUndoArray(0) {}
@@ -95,7 +95,7 @@ struct SVL_DLLPUBLIC SfxUndoArray
really really have to! */
class SVL_DLLPUBLIC SfxListUndoAction : public SfxUndoAction, public SfxUndoArray
-/* [Beschreibung]
+/* [Beschreibung]
UndoAction zur Klammerung mehrerer Undos in einer UndoAction.
Diese Actions werden vom SfxUndoManager verwendet. Dort
@@ -111,23 +111,23 @@ class SVL_DLLPUBLIC SfxListUndoAction : public SfxUndoAction, public SfxUndoArra
SfxListUndoAction( const UniString &rComment,
const UniString rRepeatComment, USHORT Id, SfxUndoArray *pFather);
- virtual void Undo();
- virtual void Redo();
- virtual void Repeat(SfxRepeatTarget&);
- virtual BOOL CanRepeat(SfxRepeatTarget&) const;
+ virtual void Undo();
+ virtual void Redo();
+ virtual void Repeat(SfxRepeatTarget&);
+ virtual BOOL CanRepeat(SfxRepeatTarget&) const;
- virtual BOOL Merge( SfxUndoAction *pNextAction );
+ virtual BOOL Merge( SfxUndoAction *pNextAction );
- virtual UniString GetComment() const;
- virtual UniString GetRepeatComment(SfxRepeatTarget&) const;
- virtual USHORT GetId() const;
+ virtual UniString GetComment() const;
+ virtual UniString GetRepeatComment(SfxRepeatTarget&) const;
+ virtual USHORT GetId() const;
void SetComment( const UniString& rComment );
private:
- USHORT nId;
- UniString aComment, aRepeatComment;
+ USHORT nId;
+ UniString aComment, aRepeatComment;
};
@@ -137,67 +137,67 @@ class SVL_DLLPUBLIC SfxUndoManager
{
friend class SfxLinkUndoAction;
- SfxUndoArray *pUndoArray;
- SfxUndoArray *pActUndoArray;
- SfxUndoArray *pFatherUndoArray;
+ SfxUndoArray *pUndoArray;
+ SfxUndoArray *pActUndoArray;
+ SfxUndoArray *pFatherUndoArray;
- bool mbUndoEnabled;
+ bool mbUndoEnabled;
public:
SfxUndoManager( USHORT nMaxUndoActionCount = 20 );
- virtual ~SfxUndoManager();
+ virtual ~SfxUndoManager();
- virtual void SetMaxUndoActionCount( USHORT nMaxUndoActionCount );
- virtual USHORT GetMaxUndoActionCount() const;
- virtual void Clear();
+ virtual void SetMaxUndoActionCount( USHORT nMaxUndoActionCount );
+ virtual USHORT GetMaxUndoActionCount() const;
+ virtual void Clear();
- virtual void AddUndoAction( SfxUndoAction *pAction, BOOL bTryMerg=FALSE );
+ virtual void AddUndoAction( SfxUndoAction *pAction, BOOL bTryMerg=FALSE );
- virtual USHORT GetUndoActionCount() const;
- virtual USHORT GetUndoActionId(USHORT nNo=0) const;
- virtual UniString GetUndoActionComment( USHORT nNo=0 ) const;
+ virtual USHORT GetUndoActionCount() const;
+ virtual USHORT GetUndoActionId(USHORT nNo=0) const;
+ virtual UniString GetUndoActionComment( USHORT nNo=0 ) const;
/** returns the nNo'th undo action from the top */
- SfxUndoAction* GetUndoAction( USHORT nNo=0 ) const;
+ SfxUndoAction* GetUndoAction( USHORT nNo=0 ) const;
- virtual BOOL Undo( USHORT nCount=1 );
- virtual void Undo( SfxUndoAction &rAction );
+ virtual BOOL Undo( USHORT nCount=1 );
+ virtual void Undo( SfxUndoAction &rAction );
- virtual USHORT GetRedoActionCount() const;
- virtual USHORT GetRedoActionId(USHORT nNo=0) const;
- virtual UniString GetRedoActionComment( USHORT nNo=0 ) const;
+ virtual USHORT GetRedoActionCount() const;
+ virtual USHORT GetRedoActionId(USHORT nNo=0) const;
+ virtual UniString GetRedoActionComment( USHORT nNo=0 ) const;
- virtual BOOL Redo( USHORT nCount=1 );
- virtual void Redo( SfxUndoAction &rAction );
- virtual void ClearRedo();
+ virtual BOOL Redo( USHORT nCount=1 );
+ virtual void Redo( SfxUndoAction &rAction );
+ virtual void ClearRedo();
- virtual USHORT GetRepeatActionCount() const;
- virtual UniString GetRepeatActionComment( SfxRepeatTarget &rTarget, USHORT nNo = 0) const;
- virtual BOOL Repeat( SfxRepeatTarget &rTarget, USHORT nFrom=0, USHORT nCount=1 );
- virtual void Repeat( SfxRepeatTarget &rTarget, SfxUndoAction &rAction );
- virtual BOOL CanRepeat( SfxRepeatTarget &rTarget, USHORT nNo = 0 ) const;
- virtual BOOL CanRepeat( SfxRepeatTarget &rTarget, SfxUndoAction &rAction ) const;
+ virtual USHORT GetRepeatActionCount() const;
+ virtual UniString GetRepeatActionComment( SfxRepeatTarget &rTarget, USHORT nNo = 0) const;
+ virtual BOOL Repeat( SfxRepeatTarget &rTarget, USHORT nFrom=0, USHORT nCount=1 );
+ virtual void Repeat( SfxRepeatTarget &rTarget, SfxUndoAction &rAction );
+ virtual BOOL CanRepeat( SfxRepeatTarget &rTarget, USHORT nNo = 0 ) const;
+ virtual BOOL CanRepeat( SfxRepeatTarget &rTarget, SfxUndoAction &rAction ) const;
virtual void EnterListAction(const UniString &rComment, const UniString& rRepeatComment, USHORT nId=0);
- virtual void LeaveListAction();
+ virtual void LeaveListAction();
/** clears the redo stack and removes the top undo action */
- void RemoveLastUndoAction();
+ void RemoveLastUndoAction();
// enables (true) or disables (false) recording of undo actions
// If undo actions are added while undo is disabled, they are deleted.
// Disabling undo does not clear the current undo buffer!
- void EnableUndo( bool bEnable );
+ void EnableUndo( bool bEnable );
// returns true if undo is currently enabled
// This returns false if undo was disabled using EnableUndo( false ) and
// also during the runtime of the Undo() and Redo() methods.
- bool IsUndoEnabled() const { return mbUndoEnabled; }
+ bool IsUndoEnabled() const { return mbUndoEnabled; }
};
//=========================================================================
class SVL_DLLPUBLIC SfxLinkUndoAction : public SfxUndoAction
-/* [Beschreibung]
+/* [Beschreibung]
Die SfxLinkUndoAction dient zur Verbindung zweier SfxUndoManager. Die
im ersten SfxUndoManager eingefuegten SfxUndoAction leiten ihr Undo und Redo
@@ -217,21 +217,21 @@ public:
SfxLinkUndoAction(SfxUndoManager *pManager);
~SfxLinkUndoAction();
- virtual void Undo();
- virtual void Redo();
- virtual BOOL CanRepeat(SfxRepeatTarget& r) const;
+ virtual void Undo();
+ virtual void Redo();
+ virtual BOOL CanRepeat(SfxRepeatTarget& r) const;
- virtual void Repeat(SfxRepeatTarget&r);
+ virtual void Repeat(SfxRepeatTarget&r);
- virtual UniString GetComment() const;
- virtual UniString GetRepeatComment(SfxRepeatTarget&r) const;
- virtual USHORT GetId() const;
+ virtual UniString GetComment() const;
+ virtual UniString GetRepeatComment(SfxRepeatTarget&r) const;
+ virtual USHORT GetId() const;
- SfxUndoAction* GetAction() const { return pAction; }
+ SfxUndoAction* GetAction() const { return pAction; }
protected:
- SfxUndoManager *pUndoManager;
- SfxUndoAction *pAction;
+ SfxUndoManager *pUndoManager;
+ SfxUndoAction *pAction;
};
diff --git a/svl/inc/svl/urlfilter.hxx b/svl/inc/svl/urlfilter.hxx
index a61e5a2f8e95..a6eec96976a7 100644
--- a/svl/inc/svl/urlfilter.hxx
+++ b/svl/inc/svl/urlfilter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ inline IUrlFilter::~IUrlFilter() {}
struct FilterMatch : public ::std::unary_function< bool, WildCard >
{
private:
- const String& m_rCompareString;
+ const String& m_rCompareString;
public:
FilterMatch( const String& _rCompareString ) : m_rCompareString( _rCompareString ) { }
diff --git a/svl/inc/svl/visitem.hxx b/svl/inc/svl/visitem.hxx
index b818376a45db..aeb86933a392 100644
--- a/svl/inc/svl/visitem.hxx
+++ b/svl/inc/svl/visitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ public:
SfxVisibilityItem(USHORT which = 0, sal_Bool bVisible = sal_True):
SfxPoolItem(which)
- {
+ {
m_nValue.bVisible = bVisible;
DBG_CTOR(SfxVisibilityItem, 0);
}
@@ -70,10 +70,10 @@ public:
const IntlWrapper * = 0)
const;
- virtual bool QueryValue( com::sun::star::uno::Any& rVal,
+ virtual bool QueryValue( com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 ) const;
- virtual bool PutValue( const com::sun::star::uno::Any& rVal,
+ virtual bool PutValue( const com::sun::star::uno::Any& rVal,
BYTE nMemberId = 0 );
virtual SfxPoolItem * Create(SvStream & rStream, USHORT) const;
diff --git a/svl/inc/svl/zforlist.hxx b/svl/inc/svl/zforlist.hxx
index afa3183bd88c..c2c46f10aeef 100644
--- a/svl/inc/svl/zforlist.hxx
+++ b/svl/inc/svl/zforlist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,28 +61,28 @@ namespace com { namespace sun { namespace star {
}}}
-#define SV_COUNTRY_LANGUAGE_OFFSET 5000 // Max count of formats per country/language
-#define SV_MAX_ANZ_STANDARD_FORMATE 100 // Max count of builtin default formats per CL
+#define SV_COUNTRY_LANGUAGE_OFFSET 5000 // Max count of formats per country/language
+#define SV_MAX_ANZ_STANDARD_FORMATE 100 // Max count of builtin default formats per CL
// Format types
#ifndef NUMBERFORMAT_ALL
-// also defined in com/sun/star/util/NumberFormat.hpp
-//! => put in single .idl file and include here
-#define NUMBERFORMAT_ALL 0x000 /// Just for Output of total list, not a real format type
-#define NUMBERFORMAT_DEFINED 0x001 /// Format defined by user
-#define NUMBERFORMAT_DATE 0x002 /// Number as date
-#define NUMBERFORMAT_TIME 0x004 /// Number as time
-#define NUMBERFORMAT_CURRENCY 0x008 /// Number as currency
-#define NUMBERFORMAT_NUMBER 0x010 /// Any "normal" number format
-#define NUMBERFORMAT_SCIENTIFIC 0x020 /// Number as scientific
-#define NUMBERFORMAT_FRACTION 0x040 /// Number as fraction
-#define NUMBERFORMAT_PERCENT 0x080 /// Number as percent
-#define NUMBERFORMAT_TEXT 0x100 /// Text format
-#define NUMBERFORMAT_DATETIME 0x006 /// Number as date and time
-#define NUMBERFORMAT_LOGICAL 0x400 /// Number as boolean value
-#define NUMBERFORMAT_UNDEFINED 0x800 /// Format undefined yet in analyzing
+// also defined in com/sun/star/util/NumberFormat.hpp
+//! => put in single .idl file and include here
+#define NUMBERFORMAT_ALL 0x000 /// Just for Output of total list, not a real format type
+#define NUMBERFORMAT_DEFINED 0x001 /// Format defined by user
+#define NUMBERFORMAT_DATE 0x002 /// Number as date
+#define NUMBERFORMAT_TIME 0x004 /// Number as time
+#define NUMBERFORMAT_CURRENCY 0x008 /// Number as currency
+#define NUMBERFORMAT_NUMBER 0x010 /// Any "normal" number format
+#define NUMBERFORMAT_SCIENTIFIC 0x020 /// Number as scientific
+#define NUMBERFORMAT_FRACTION 0x040 /// Number as fraction
+#define NUMBERFORMAT_PERCENT 0x080 /// Number as percent
+#define NUMBERFORMAT_TEXT 0x100 /// Text format
+#define NUMBERFORMAT_DATETIME 0x006 /// Number as date and time
+#define NUMBERFORMAT_LOGICAL 0x400 /// Number as boolean value
+#define NUMBERFORMAT_UNDEFINED 0x800 /// Format undefined yet in analyzing
#endif
-#define NUMBERFORMAT_ENTRY_NOT_FOUND (sal_uInt32)(0xffffffff) /// MAX_ULONG
+#define NUMBERFORMAT_ENTRY_NOT_FOUND (sal_uInt32)(0xffffffff) /// MAX_ULONG
/** enum values for <method>SvNumberFormatter::GetFormatIndex</method>
@@ -105,81 +105,81 @@ enum NfIndexTableOffset
NF_NUMERIC_START = 0,
NF_NUMBER_START = NF_NUMERIC_START,
- NF_NUMBER_STANDARD = NF_NUMBER_START, // Standard/General
- NF_NUMBER_INT, // 0
- NF_NUMBER_DEC2, // 0.00
- NF_NUMBER_1000INT, // #,##0
- NF_NUMBER_1000DEC2, // #,##0.00
- NF_NUMBER_SYSTEM, // #,##0.00 or whatever is set in System Regional Settings
+ NF_NUMBER_STANDARD = NF_NUMBER_START, // Standard/General
+ NF_NUMBER_INT, // 0
+ NF_NUMBER_DEC2, // 0.00
+ NF_NUMBER_1000INT, // #,##0
+ NF_NUMBER_1000DEC2, // #,##0.00
+ NF_NUMBER_SYSTEM, // #,##0.00 or whatever is set in System Regional Settings
NF_NUMBER_END = NF_NUMBER_SYSTEM,
NF_SCIENTIFIC_START,
- NF_SCIENTIFIC_000E000 = NF_SCIENTIFIC_START, // 0.00E+000
- NF_SCIENTIFIC_000E00, // 0.00E+00
+ NF_SCIENTIFIC_000E000 = NF_SCIENTIFIC_START, // 0.00E+000
+ NF_SCIENTIFIC_000E00, // 0.00E+00
NF_SCIENTIFIC_END = NF_SCIENTIFIC_000E00,
NF_PERCENT_START,
- NF_PERCENT_INT = NF_PERCENT_START, // 0%
- NF_PERCENT_DEC2, // 0.00%
+ NF_PERCENT_INT = NF_PERCENT_START, // 0%
+ NF_PERCENT_DEC2, // 0.00%
NF_PERCENT_END = NF_PERCENT_DEC2,
NF_FRACTION_START,
- NF_FRACTION_1 = NF_FRACTION_START, // # ?/?
- NF_FRACTION_2, // # ??/??
+ NF_FRACTION_1 = NF_FRACTION_START, // # ?/?
+ NF_FRACTION_2, // # ??/??
NF_FRACTION_END = NF_FRACTION_2,
NF_NUMERIC_END = NF_FRACTION_END,
NF_CURRENCY_START,
NF_CURRENCY_1000INT = NF_CURRENCY_START,// #,##0 DM
- NF_CURRENCY_1000DEC2, // #,##0.00 DM
- NF_CURRENCY_1000INT_RED, // #,##0 DM negative in red
- NF_CURRENCY_1000DEC2_RED, // #,##0.00 DM negative in red
- NF_CURRENCY_1000DEC2_CCC, // #,##0.00 DEM currency abbreviation
- NF_CURRENCY_1000DEC2_DASHED, // #,##0.-- DM
+ NF_CURRENCY_1000DEC2, // #,##0.00 DM
+ NF_CURRENCY_1000INT_RED, // #,##0 DM negative in red
+ NF_CURRENCY_1000DEC2_RED, // #,##0.00 DM negative in red
+ NF_CURRENCY_1000DEC2_CCC, // #,##0.00 DEM currency abbreviation
+ NF_CURRENCY_1000DEC2_DASHED, // #,##0.-- DM
NF_CURRENCY_END = NF_CURRENCY_1000DEC2_DASHED,
NF_DATE_START,
- NF_DATE_SYSTEM_SHORT = NF_DATE_START, // 08.10.97
- NF_DATE_SYSTEM_LONG, // Wednesday, 8. October 1997
- NF_DATE_SYS_DDMMYY, // 08.10.97
- NF_DATE_SYS_DDMMYYYY, // 08.10.1997
- NF_DATE_SYS_DMMMYY, // 8. Oct 97
- NF_DATE_SYS_DMMMYYYY, // 8. Oct 1997
- NF_DATE_DIN_DMMMYYYY, // 8. Oct. 1997 DIN
- NF_DATE_SYS_DMMMMYYYY, // 8. October 1997
- NF_DATE_DIN_DMMMMYYYY, // 8. October 1997 DIN
- NF_DATE_SYS_NNDMMMYY, // Wed, 8. Okt 97
- NF_DATE_DEF_NNDDMMMYY, // Wed 08.Okt 97
- NF_DATE_SYS_NNDMMMMYYYY, // Wed, 8. Oktober 1997
- NF_DATE_SYS_NNNNDMMMMYYYY, // Wednesday, 8. Oktober 1997
- NF_DATE_DIN_MMDD, // 10-08 DIN
- NF_DATE_DIN_YYMMDD, // 97-10-08 DIN
- NF_DATE_DIN_YYYYMMDD, // 1997-10-08 DIN
- NF_DATE_SYS_MMYY, // 10.97
- NF_DATE_SYS_DDMMM, // 08.Oct
- NF_DATE_MMMM, // October
- NF_DATE_QQJJ, // 4. Quarter 97
- NF_DATE_WW, // week of year
+ NF_DATE_SYSTEM_SHORT = NF_DATE_START, // 08.10.97
+ NF_DATE_SYSTEM_LONG, // Wednesday, 8. October 1997
+ NF_DATE_SYS_DDMMYY, // 08.10.97
+ NF_DATE_SYS_DDMMYYYY, // 08.10.1997
+ NF_DATE_SYS_DMMMYY, // 8. Oct 97
+ NF_DATE_SYS_DMMMYYYY, // 8. Oct 1997
+ NF_DATE_DIN_DMMMYYYY, // 8. Oct. 1997 DIN
+ NF_DATE_SYS_DMMMMYYYY, // 8. October 1997
+ NF_DATE_DIN_DMMMMYYYY, // 8. October 1997 DIN
+ NF_DATE_SYS_NNDMMMYY, // Wed, 8. Okt 97
+ NF_DATE_DEF_NNDDMMMYY, // Wed 08.Okt 97
+ NF_DATE_SYS_NNDMMMMYYYY, // Wed, 8. Oktober 1997
+ NF_DATE_SYS_NNNNDMMMMYYYY, // Wednesday, 8. Oktober 1997
+ NF_DATE_DIN_MMDD, // 10-08 DIN
+ NF_DATE_DIN_YYMMDD, // 97-10-08 DIN
+ NF_DATE_DIN_YYYYMMDD, // 1997-10-08 DIN
+ NF_DATE_SYS_MMYY, // 10.97
+ NF_DATE_SYS_DDMMM, // 08.Oct
+ NF_DATE_MMMM, // October
+ NF_DATE_QQJJ, // 4. Quarter 97
+ NF_DATE_WW, // week of year
NF_DATE_END = NF_DATE_WW,
NF_TIME_START,
- NF_TIME_HHMM = NF_TIME_START, // HH:MM
- NF_TIME_HHMMSS, // HH:MM:SS
- NF_TIME_HHMMAMPM, // HH:MM AM/PM
- NF_TIME_HHMMSSAMPM, // HH:MM:SS AM/PM
- NF_TIME_HH_MMSS, // [HH]:MM:SS
- NF_TIME_MMSS00, // MM:SS,00
- NF_TIME_HH_MMSS00, // [HH]:MM:SS,00
+ NF_TIME_HHMM = NF_TIME_START, // HH:MM
+ NF_TIME_HHMMSS, // HH:MM:SS
+ NF_TIME_HHMMAMPM, // HH:MM AM/PM
+ NF_TIME_HHMMSSAMPM, // HH:MM:SS AM/PM
+ NF_TIME_HH_MMSS, // [HH]:MM:SS
+ NF_TIME_MMSS00, // MM:SS,00
+ NF_TIME_HH_MMSS00, // [HH]:MM:SS,00
NF_TIME_END = NF_TIME_HH_MMSS00,
NF_DATETIME_START,
- NF_DATETIME_SYSTEM_SHORT_HHMM = NF_DATETIME_START, // 08.10.97 01:23
- NF_DATETIME_SYS_DDMMYYYY_HHMMSS, // 08.10.1997 01:23:45
+ NF_DATETIME_SYSTEM_SHORT_HHMM = NF_DATETIME_START, // 08.10.97 01:23
+ NF_DATETIME_SYS_DDMMYYYY_HHMMSS, // 08.10.1997 01:23:45
NF_DATETIME_END = NF_DATETIME_SYS_DDMMYYYY_HHMMSS,
- NF_BOOLEAN, // BOOLEAN
- NF_TEXT, // @
+ NF_BOOLEAN, // BOOLEAN
+ NF_TEXT, // @
NF_INDEX_TABLE_ENTRIES
};
@@ -227,24 +227,24 @@ typedef ::std::map< sal_uInt32, sal_uInt32 > SvNumberFormatterMergeMap;
*/
class SVL_DLLPUBLIC NfCurrencyEntry
{
- String aSymbol; /// currency symbol
- String aBankSymbol; /// currency abbreviation
- LanguageType eLanguage; /// language/country value
- USHORT nPositiveFormat; /// position of symbol
- USHORT nNegativeFormat; /// position of symbol and type and position of negative sign
- USHORT nDigits; /// count of decimal digits
- sal_Unicode cZeroChar; /// which character is used for zeros as last decimal digits
+ String aSymbol; /// currency symbol
+ String aBankSymbol; /// currency abbreviation
+ LanguageType eLanguage; /// language/country value
+ USHORT nPositiveFormat; /// position of symbol
+ USHORT nNegativeFormat; /// position of symbol and type and position of negative sign
+ USHORT nDigits; /// count of decimal digits
+ sal_Unicode cZeroChar; /// which character is used for zeros as last decimal digits
/// not implemented, prevent usage
NfCurrencyEntry( const NfCurrencyEntry& );
/// not implemented, prevent usage
- NfCurrencyEntry& operator=( const NfCurrencyEntry& );
+ NfCurrencyEntry& operator=( const NfCurrencyEntry& );
private:
// nDecimalFormat := 0, 1, 2
// #,##0 or #,##0.00 or #,##0.-- are assigned
- SVL_DLLPRIVATE void Impl_BuildFormatStringNumChars( String&,
+ SVL_DLLPRIVATE void Impl_BuildFormatStringNumChars( String&,
const LocaleDataWrapper&, USHORT nDecimalFormat ) const;
public:
@@ -259,62 +259,62 @@ public:
~NfCurrencyEntry() {}
/// Symbols and language identical
- BOOL operator==( const NfCurrencyEntry& r ) const;
+ BOOL operator==( const NfCurrencyEntry& r ) const;
/// Set this format to be the EURo entry, overwrite other settings
- void SetEuro();
- BOOL IsEuro() const;
+ void SetEuro();
+ BOOL IsEuro() const;
/** Apply format information (nPositiveFormat,
nNegativeFormat, nDigits, cZeroChar) of another format. */
- void ApplyVariableInformation( const NfCurrencyEntry& );
+ void ApplyVariableInformation( const NfCurrencyEntry& );
- const String& GetSymbol() const { return aSymbol; }
- const String& GetBankSymbol() const { return aBankSymbol; }
- LanguageType GetLanguage() const { return eLanguage; }
- USHORT GetPositiveFormat() const { return nPositiveFormat; }
- USHORT GetNegativeFormat() const { return nNegativeFormat; }
- USHORT GetDigits() const { return nDigits; }
- sal_Unicode GetZeroChar() const { return cZeroChar; }
+ const String& GetSymbol() const { return aSymbol; }
+ const String& GetBankSymbol() const { return aBankSymbol; }
+ LanguageType GetLanguage() const { return eLanguage; }
+ USHORT GetPositiveFormat() const { return nPositiveFormat; }
+ USHORT GetNegativeFormat() const { return nNegativeFormat; }
+ USHORT GetDigits() const { return nDigits; }
+ sal_Unicode GetZeroChar() const { return cZeroChar; }
/** [$DM-407] (bBank==FALSE) or [$DEM] (bBank==TRUE)
is assigned to rStr, if bBank==FALSE and
bWithoutExtension==TRUE only [$DM] */
- void BuildSymbolString( String& rStr, BOOL bBank,
+ void BuildSymbolString( String& rStr, BOOL bBank,
BOOL bWithoutExtension = FALSE ) const;
/** #,##0.00 [$DM-407] is assigned to rStr, separators
- from rLoc, incl. minus sign but without [RED] */
- void BuildPositiveFormatString( String& rStr, BOOL bBank,
+ from rLoc, incl. minus sign but without [RED] */
+ void BuildPositiveFormatString( String& rStr, BOOL bBank,
const LocaleDataWrapper&, USHORT nDecimalFormat = 1 ) const;
- void BuildNegativeFormatString( String& rStr, BOOL bBank,
+ void BuildNegativeFormatString( String& rStr, BOOL bBank,
const LocaleDataWrapper&, USHORT nDecimalFormat = 1 ) const;
/** [$DM-407] (or [$DEM] if bBank==TRUE)
is appended/prepended to rStr, incl. minus sign */
- void CompletePositiveFormatString( String& rStr, BOOL bBank,
+ void CompletePositiveFormatString( String& rStr, BOOL bBank,
USHORT nPosiFormat ) const;
- void CompleteNegativeFormatString( String& rStr, BOOL bBank,
+ void CompleteNegativeFormatString( String& rStr, BOOL bBank,
USHORT nNegaFormat ) const;
/// rSymStr is appended/prepended to rStr, incl. minus sign
- static void CompletePositiveFormatString( String& rStr,
+ static void CompletePositiveFormatString( String& rStr,
const String& rSymStr, USHORT nPosiFormat );
- static void CompleteNegativeFormatString( String& rStr,
+ static void CompleteNegativeFormatString( String& rStr,
const String& rSymStr, USHORT nNegaFormat );
/** Representation of a currency (symbol position and
negative sign) in other language settings */
- static USHORT GetEffectivePositiveFormat( USHORT nIntlFormat,
+ static USHORT GetEffectivePositiveFormat( USHORT nIntlFormat,
USHORT nCurrFormat, BOOL bBank );
- static USHORT GetEffectiveNegativeFormat( USHORT nIntlFormat,
+ static USHORT GetEffectiveNegativeFormat( USHORT nIntlFormat,
USHORT nCurrFormat, BOOL bBank );
/// General Unicode Euro symbol
- static inline sal_Unicode GetEuroSymbol() { return sal_Unicode(0x20AC); }
+ static inline sal_Unicode GetEuroSymbol() { return sal_Unicode(0x20AC); }
/** Platform and CharSet dependent Euro symbol,
needed for import/export */
- static sal_Char GetEuroSymbol( rtl_TextEncoding eTextEncoding );
+ static sal_Char GetEuroSymbol( rtl_TextEncoding eTextEncoding );
};
typedef NfCurrencyEntry* NfCurrencyEntryPtr;
@@ -328,15 +328,15 @@ class SvNumberFormatterRegistry_Impl;
class SVL_DLLPUBLIC SvNumberFormatter
{
public:
- /**
- * We can't technically have an "infinite" value, so we use an arbitrary
- * upper precision threshold to represent the "unlimited" precision.
- */
+ /**
+ * We can't technically have an "infinite" value, so we use an arbitrary
+ * upper precision threshold to represent the "unlimited" precision.
+ */
static const sal_uInt16 UNLIMITED_PRECISION;
- /**
- * Precision suitable for numbers displayed in input bar, for instance
- * Calc's formula input bar.
+ /**
+ * Precision suitable for numbers displayed in input bar, for instance
+ * Calc's formula input bar.
*/
static const sal_uInt16 INPUTSTRING_PRECISION;
@@ -654,12 +654,12 @@ public:
The name Year2000 is kept although the actual functionality is now a
TwoDigitYearStart which might be in any century.
*/
- void SetYear2000( USHORT nVal );
- USHORT GetYear2000() const;
- static USHORT GetYear2000Default();
+ void SetYear2000( USHORT nVal );
+ USHORT GetYear2000() const;
+ static USHORT GetYear2000Default();
- USHORT ExpandTwoDigitYear( USHORT nYear ) const;
- inline static USHORT ExpandTwoDigitYear( USHORT nYear, USHORT nTwoDigitYearStart );
+ USHORT ExpandTwoDigitYear( USHORT nYear ) const;
+ inline static USHORT ExpandTwoDigitYear( USHORT nYear, USHORT nTwoDigitYearStart );
/// DEPRICATED: Return first character of the decimal separator of the current language/country
sal_Unicode GetDecSep() const { return GetNumDecimalSep().GetChar(0); }
@@ -724,7 +724,7 @@ public:
@return
position of default format
*/
- USHORT GetCurrencyFormatStrings( NfWSStringsDtor&, const NfCurrencyEntry&,
+ USHORT GetCurrencyFormatStrings( NfWSStringsDtor&, const NfCurrencyEntry&,
BOOL bBank ) const;
/** Whether nFormat is of type NUMBERFORMAT_CURRENCY and the format code
@@ -732,7 +732,7 @@ public:
If ppEntry is not NULL and exactly one entry is found, a [$xxx-nnn] is
returned, even if the format code only contains [$xxx] !
*/
- BOOL GetNewCurrencySymbolString( sal_uInt32 nFormat, String& rSymbol,
+ BOOL GetNewCurrencySymbolString( sal_uInt32 nFormat, String& rSymbol,
const NfCurrencyEntry** ppEntry = NULL, BOOL* pBank = NULL ) const;
/** Look up the corresponding <type>NfCurrencyEntry</type> matching
@@ -779,7 +779,7 @@ public:
void GetCompatibilityCurrency( String& rSymbol, String& rAbbrev ) const;
/// Fill rList with the language/country codes that have been allocated
- void GetUsedLanguages( SvUShorts& rList );
+ void GetUsedLanguages( SvUShorts& rList );
/// Fill a <type>NfKeywordIndex</type> table with keywords of a language/country
void FillKeywordTable( NfKeywordTable& rKeywords, LanguageType eLang );
@@ -799,34 +799,34 @@ public:
private:
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceManager;
::com::sun::star::lang::Locale aLocale;
- SvNumberFormatTable aFTable; // Table of format keys to format entries
- Table aDefaultFormatKeys; // Table of default standard to format keys
- SvNumberFormatTable* pFormatTable; // For the UI dialog
- SvNumberFormatterIndexTable* pMergeTable; // List of indices for merging two formatters
- CharClass* pCharClass; // CharacterClassification
+ SvNumberFormatTable aFTable; // Table of format keys to format entries
+ Table aDefaultFormatKeys; // Table of default standard to format keys
+ SvNumberFormatTable* pFormatTable; // For the UI dialog
+ SvNumberFormatterIndexTable* pMergeTable; // List of indices for merging two formatters
+ CharClass* pCharClass; // CharacterClassification
OnDemandLocaleDataWrapper xLocaleData; // LocaleData switched between SYSTEM, ENGLISH and other
OnDemandTransliterationWrapper xTransliteration; // Transliteration loaded on demand
OnDemandCalendarWrapper xCalendar; // Calendar loaded on demand
OnDemandNativeNumberWrapper xNatNum; // Native number service loaded on demand
- ImpSvNumberInputScan* pStringScanner; // Input string scanner
- ImpSvNumberformatScan* pFormatScanner; // Format code string scanner
+ ImpSvNumberInputScan* pStringScanner; // Input string scanner
+ ImpSvNumberformatScan* pFormatScanner; // Format code string scanner
Link aColorLink; // User defined color table CallBack
- sal_uInt32 MaxCLOffset; // Max language/country offset used
- sal_uInt32 nDefaultSystemCurrencyFormat; // NewCurrency matching SYSTEM locale
+ sal_uInt32 MaxCLOffset; // Max language/country offset used
+ sal_uInt32 nDefaultSystemCurrencyFormat; // NewCurrency matching SYSTEM locale
LanguageType IniLnge; // Initialized setting language/country
LanguageType ActLnge; // Current setting language/country
- NfEvalDateFormat eEvalDateFormat; // DateFormat evaluation
- BOOL bNoZero; // Zero value suppression
+ NfEvalDateFormat eEvalDateFormat; // DateFormat evaluation
+ BOOL bNoZero; // Zero value suppression
// cached locale data items needed almost any time
String aDecimalSep;
String aThousandSep;
String aDateSep;
-#ifdef _ZFORLIST_CXX // ----- private Methoden -----
+#ifdef _ZFORLIST_CXX // ----- private Methoden -----
- SVL_DLLPRIVATE static BOOL bCurrencyTableInitialized;
- SVL_DLLPRIVATE static USHORT nSystemCurrencyPosition;
+ SVL_DLLPRIVATE static BOOL bCurrencyTableInitialized;
+ SVL_DLLPRIVATE static USHORT nSystemCurrencyPosition;
SVL_DLLPRIVATE static SvNumberFormatterRegistry_Impl* pFormatterRegistry;
// get the registry, create one if none exists
@@ -884,15 +884,15 @@ private:
// Return the format index of the currency format of the system locale.
// Format is created if not already present.
- SVL_DLLPRIVATE sal_uInt32 ImpGetDefaultSystemCurrencyFormat();
+ SVL_DLLPRIVATE sal_uInt32 ImpGetDefaultSystemCurrencyFormat();
// Return the format index of the currency format of the current locale.
// Format is created if not already present.
- SVL_DLLPRIVATE sal_uInt32 ImpGetDefaultCurrencyFormat();
+ SVL_DLLPRIVATE sal_uInt32 ImpGetDefaultCurrencyFormat();
// Return the default format for a given type and current locale.
// May ONLY be called from within GetStandardFormat().
- SVL_DLLPRIVATE sal_uInt32 ImpGetDefaultFormat( short nType );
+ SVL_DLLPRIVATE sal_uInt32 ImpGetDefaultFormat( short nType );
// Return the index in a sequence of format codes matching an enum of
// NfIndexTableOffset. If not found 0 is returned. If the sequence doesn't
@@ -1023,6 +1023,6 @@ inline USHORT SvNumberFormatter::ExpandTwoDigitYear(
-#endif // _ZFORLIST_HXX
+#endif // _ZFORLIST_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/inc/svl/zformat.hxx b/svl/inc/svl/zformat.hxx
index 1ecfaa4938f4..a75af1048a8b 100644
--- a/svl/inc/svl/zformat.hxx
+++ b/svl/inc/svl/zformat.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -237,8 +237,8 @@ public:
// in fact that could be any string used in number formats.
static void LoadString( SvStream& rStream, String& rStr );
- /**
- * Get output string from a numeric value that fits the number of
+ /**
+ * Get output string from a numeric value that fits the number of
* characters specified.
*/
bool GetOutputString( double fNumber, sal_uInt16 nCharCount, String& rOutString ) const;
diff --git a/svl/inc/urihelper.hxx b/svl/inc/urihelper.hxx
index 3baab37f7896..36c50222c056 100644
--- a/svl/inc/urihelper.hxx
+++ b/svl/inc/urihelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/inc/urlbmk.hxx b/svl/inc/urlbmk.hxx
index 8922dbb4feb9..972ebf41dd8d 100644
--- a/svl/inc/urlbmk.hxx
+++ b/svl/inc/urlbmk.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@
class INetBookmark
-/* [Beschreibung]
+/* [Beschreibung]
Diese Klasse stellt ein Bookmark dar, welches aus einer URL und
einem dazuge"horigen Beschreibungstext besteht.
@@ -46,13 +46,13 @@ class INetBookmark
*/
{
- String aUrl;
- String aDescr;
+ String aUrl;
+ String aDescr;
protected:
- void SetURL( const String& rS ) { aUrl = rS; }
- void SetDescription( const String& rS ) { aDescr = rS; }
+ void SetURL( const String& rS ) { aUrl = rS; }
+ void SetDescription( const String& rS ) { aDescr = rS; }
public:
INetBookmark( const String &rUrl, const String &rDescr )
@@ -61,8 +61,8 @@ public:
INetBookmark()
{}
- const String& GetURL() const { return aUrl; }
- const String& GetDescription() const { return aDescr; }
+ const String& GetURL() const { return aUrl; }
+ const String& GetDescription() const { return aDescr; }
};
diff --git a/svl/inc/whiter.hxx b/svl/inc/whiter.hxx
index 9e68d24d4e62..9951729acdef 100644
--- a/svl/inc/whiter.hxx
+++ b/svl/inc/whiter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,8 +54,8 @@ public:
USHORT NextWhich();
USHORT PrevWhich();
- USHORT FirstWhich();
- USHORT LastWhich();
+ USHORT FirstWhich();
+ USHORT LastWhich();
};
#endif
diff --git a/svl/inc/xmlement.hxx b/svl/inc/xmlement.hxx
index 779bad3f3c55..14cd57a8ff3b 100644
--- a/svl/inc/xmlement.hxx
+++ b/svl/inc/xmlement.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,6 +38,6 @@ struct SvXMLEnumMapEntry
};
-#endif // _SVTOOLS_XMLEMENT_HXX
+#endif // _SVTOOLS_XMLEMENT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/qa/complex/ConfigItems/CheckConfigItems.java b/svl/qa/complex/ConfigItems/CheckConfigItems.java
index 4afa2bf33f55..bdfb0f570621 100644
--- a/svl/qa/complex/ConfigItems/CheckConfigItems.java
+++ b/svl/qa/complex/ConfigItems/CheckConfigItems.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,25 +44,25 @@ public class CheckConfigItems extends ComplexTestCase
{
//-------------------------------------------
// some const
-
+
//-------------------------------------------
// member
-
+
/** points to the global uno service manager. */
private XMultiServiceFactory m_xSmgr = null;
-
+
/** implements real config item tests in C++. */
private XJob m_xTest = null;
-
+
//-------------------------------------------
// test environment
-
+
//-------------------------------------------
/** @short A function to tell the framework,
which test functions are available.
-
+
@return All test methods.
- @todo Think about selection of tests from outside ...
+ @todo Think about selection of tests from outside ...
*/
public String[] getTestMethodNames()
{
@@ -79,7 +79,7 @@ public class CheckConfigItems extends ComplexTestCase
//-------------------------------------------
/** @short Create the environment for following tests.
-
+
@descr Use either a component loader from desktop or
from frame
*/
@@ -88,12 +88,12 @@ public class CheckConfigItems extends ComplexTestCase
{
// get uno service manager from global test environment
m_xSmgr = (XMultiServiceFactory)param.getMSF();
-
+
// TODO register helper service
-
+
// create module manager
m_xTest = (XJob)UnoRuntime.queryInterface(
- XJob.class,
+ XJob.class,
m_xSmgr.createInstance("com.sun.star.comp.svl.ConfigItemTest"));
}
@@ -104,7 +104,7 @@ public class CheckConfigItems extends ComplexTestCase
throws java.lang.Exception
{
// TODO deregister helper service
-
+
m_xTest = null;
m_xSmgr = null;
}
@@ -144,7 +144,7 @@ public class CheckConfigItems extends ComplexTestCase
{
impl_triggerTest("checkPrintOptions");
}
-
+
//-------------------------------------------
/** @todo document me
*/
diff --git a/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.cxx b/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.cxx
index 63a88e733efb..10bb0f30929e 100644
--- a/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.cxx
+++ b/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#include "AccessibilityOptTest.hxx"
#include "configitems/accessibilityoptions_const.hxx"
@@ -61,14 +61,14 @@ void AccessibilityOptTest::impl_checkGetAutoDetectSystemHC()
sal_Bool bAutoDetectSystemHC;
sal_Bool bAutoDetectSystemHC_;
- bAutoDetectSystemHC = aAccessibilityOpt.GetAutoDetectSystemHC();
- xSet->setPropertyValue( s_sAutoDetectSystemHC, css::uno::makeAny(bAutoDetectSystemHC ? sal_False:sal_True) );
+ bAutoDetectSystemHC = aAccessibilityOpt.GetAutoDetectSystemHC();
+ xSet->setPropertyValue( s_sAutoDetectSystemHC, css::uno::makeAny(bAutoDetectSystemHC ? sal_False:sal_True) );
::comphelper::ConfigurationHelper::flush(m_xCfg);
bAutoDetectSystemHC_ = aAccessibilityOpt.GetAutoDetectSystemHC();
if ( bAutoDetectSystemHC_ == bAutoDetectSystemHC )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetAutoDetectSystemHC() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetAutoDetectSystemHC() error!")), 0);
}
//=============================================================================
@@ -80,13 +80,13 @@ void AccessibilityOptTest::impl_checkGetIsForPagePreviews()
sal_Bool bIsForPagePreviews_;
bIsForPagePreviews = aAccessibilityOpt.GetIsForPagePreviews();
- xSet->setPropertyValue( s_sIsForPagePreviews, css::uno::makeAny(bIsForPagePreviews ? sal_False:sal_True) );
+ xSet->setPropertyValue( s_sIsForPagePreviews, css::uno::makeAny(bIsForPagePreviews ? sal_False:sal_True) );
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsForPagePreviews_ = aAccessibilityOpt.GetIsForPagePreviews();
if ( bIsForPagePreviews_ == bIsForPagePreviews )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsForPagePreviews() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsForPagePreviews() error!")), 0);
}
//=============================================================================
@@ -98,13 +98,13 @@ void AccessibilityOptTest::impl_checkGetIsHelpTipsDisappear()
sal_Bool bIsHelpTipsDisappear_;
bIsHelpTipsDisappear = aAccessibilityOpt.GetIsHelpTipsDisappear();
- xSet->setPropertyValue( s_sIsHelpTipsDisappear, css::uno::makeAny(bIsHelpTipsDisappear ? sal_False:sal_True) );
+ xSet->setPropertyValue( s_sIsHelpTipsDisappear, css::uno::makeAny(bIsHelpTipsDisappear ? sal_False:sal_True) );
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsHelpTipsDisappear_ = aAccessibilityOpt.GetIsHelpTipsDisappear();
if ( bIsHelpTipsDisappear_ == bIsHelpTipsDisappear )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsHelpTipsDisappear() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsHelpTipsDisappear() error!")), 0);
}
//=============================================================================
@@ -116,13 +116,13 @@ void AccessibilityOptTest::impl_checkGetIsAllowAnimatedGraphics()
sal_Bool bIsAllowAnimatedGraphics_;
bIsAllowAnimatedGraphics = aAccessibilityOpt.GetIsAllowAnimatedGraphics();
- xSet->setPropertyValue( s_sIsAllowAnimatedGraphics, css::uno::makeAny(bIsAllowAnimatedGraphics ? sal_False:sal_True) );
+ xSet->setPropertyValue( s_sIsAllowAnimatedGraphics, css::uno::makeAny(bIsAllowAnimatedGraphics ? sal_False:sal_True) );
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsAllowAnimatedGraphics_ = aAccessibilityOpt.GetIsAllowAnimatedGraphics();
if ( bIsAllowAnimatedGraphics_ == bIsAllowAnimatedGraphics )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAllowAnimatedGraphics() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAllowAnimatedGraphics() error!")), 0);
}
//=============================================================================
@@ -134,13 +134,13 @@ void AccessibilityOptTest::impl_checkGetIsAllowAnimatedText()
sal_Bool bIsAllowAnimatedText_;
bIsAllowAnimatedText = aAccessibilityOpt.GetIsAllowAnimatedText();
- xSet->setPropertyValue( s_sIsAllowAnimatedText, css::uno::makeAny(bIsAllowAnimatedText ? sal_False:sal_True) );
+ xSet->setPropertyValue( s_sIsAllowAnimatedText, css::uno::makeAny(bIsAllowAnimatedText ? sal_False:sal_True) );
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsAllowAnimatedText_ = aAccessibilityOpt.GetIsAllowAnimatedText();
if ( bIsAllowAnimatedText_ == bIsAllowAnimatedText )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAllowAnimatedText() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAllowAnimatedText() error!")), 0);
}
//=============================================================================
@@ -152,13 +152,13 @@ void AccessibilityOptTest::impl_checkGetIsAutomaticFontColor()
sal_Bool bIsAutomaticFontColor_;
bIsAutomaticFontColor = aAccessibilityOpt.GetIsAutomaticFontColor();
- xSet->setPropertyValue( s_sIsAutomaticFontColor, css::uno::makeAny(bIsAutomaticFontColor ? sal_False:sal_True) );
+ xSet->setPropertyValue( s_sIsAutomaticFontColor, css::uno::makeAny(bIsAutomaticFontColor ? sal_False:sal_True) );
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsAutomaticFontColor_ = aAccessibilityOpt.GetIsAutomaticFontColor();
if ( bIsAutomaticFontColor_ == bIsAutomaticFontColor )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAutomaticFontColor() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsAutomaticFontColor() error!")), 0);
}
//=============================================================================
@@ -170,13 +170,13 @@ void AccessibilityOptTest::impl_checkGetIsSystemFont()
sal_Bool bIsSystemFont_;
bIsSystemFont = aAccessibilityOpt.GetIsSystemFont();
- xSet->setPropertyValue( s_sIsSystemFont, css::uno::makeAny(bIsSystemFont ? sal_False:sal_True) );
+ xSet->setPropertyValue( s_sIsSystemFont, css::uno::makeAny(bIsSystemFont ? sal_False:sal_True) );
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsSystemFont_ = aAccessibilityOpt.GetIsSystemFont();
if ( bIsSystemFont_ == bIsSystemFont )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsSystemFont() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetIsSystemFont() error!")), 0);
}
//=============================================================================
@@ -194,7 +194,7 @@ void AccessibilityOptTest::impl_checkGetHelpTipSeconds()
if ( nHelpTipSeconds_ == nHelpTipSeconds )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetHelpTipSeconds() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetHelpTipSeconds() error!")), 0);
}
//=============================================================================
@@ -206,13 +206,13 @@ void AccessibilityOptTest::impl_checkIsSelectionInReadonly()
sal_Bool bIsSelectionInReadonly_;
bIsSelectionInReadonly = aAccessibilityOpt.IsSelectionInReadonly();
- xSet->setPropertyValue( s_sIsSelectionInReadonly, css::uno::makeAny(bIsSelectionInReadonly ? sal_False:sal_True) );
+ xSet->setPropertyValue( s_sIsSelectionInReadonly, css::uno::makeAny(bIsSelectionInReadonly ? sal_False:sal_True) );
::comphelper::ConfigurationHelper::flush(m_xCfg);
bIsSelectionInReadonly_ = aAccessibilityOpt.IsSelectionInReadonly();
if ( bIsSelectionInReadonly_ == bIsSelectionInReadonly )//old config item will not throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsSelectionInReadonly() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsSelectionInReadonly() error!")), 0);
}
//=============================================================================
@@ -229,7 +229,7 @@ void AccessibilityOptTest::impl_checkSetAutoDetectSystemHC()
if ( bAutoDetectSystemHC_ == bAutoDetectSystemHC )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetAutoDetectSystemHC() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetAutoDetectSystemHC() error!")), 0);
}
//=============================================================================
@@ -246,7 +246,7 @@ void AccessibilityOptTest::impl_checkSetIsForPagePreviews()
if ( bIsForPagePreviews_ == bIsForPagePreviews )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsForPagePreviews() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsForPagePreviews() error!")), 0);
}
//=============================================================================
@@ -263,7 +263,7 @@ void AccessibilityOptTest::impl_checkSetIsHelpTipsDisappear()
if ( bIsHelpTipsDisappear_ == bIsHelpTipsDisappear )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsHelpTipsDisappear() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsHelpTipsDisappear() error!")), 0);
}
//=============================================================================
@@ -280,7 +280,7 @@ void AccessibilityOptTest::impl_checkSetIsAllowAnimatedGraphics()
if ( bIsAllowAnimatedGraphics_ == bIsAllowAnimatedGraphics )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAllowAnimatedGraphics() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAllowAnimatedGraphics() error!")), 0);
}
//=============================================================================
@@ -297,7 +297,7 @@ void AccessibilityOptTest::impl_checkSetIsAllowAnimatedText()
if ( bIsAllowAnimatedText_ == bIsAllowAnimatedText )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAllowAnimatedText() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAllowAnimatedText() error!")), 0);
}
//=============================================================================
@@ -314,7 +314,7 @@ void AccessibilityOptTest::impl_checkSetIsAutomaticFontColor()
if ( bIsAutomaticFontColor_ == bIsAutomaticFontColor )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAutomaticFontColor() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsAutomaticFontColor() error!")), 0);
}
//=============================================================================
@@ -331,7 +331,7 @@ void AccessibilityOptTest::impl_checkSetIsSystemFont()
if ( bIsSystemFont_ == bIsSystemFont )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsSystemFont() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetIsSystemFont() error!")), 0);
}
//=============================================================================
@@ -348,7 +348,7 @@ void AccessibilityOptTest::impl_checkSetHelpTipSeconds()
if ( nHelpTipSeconds_ == nHelpTipSeconds )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetHelpTipSeconds() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetHelpTipSeconds() error!")), 0);
}
//=============================================================================
@@ -365,12 +365,12 @@ void AccessibilityOptTest::impl_checkSetSelectionInReadonly()
if ( bIsSelectionInReadonly_ == bIsSelectionInReadonly )//old config item will throw error
throw css::uno::RuntimeException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetSelectionInReadonly() error!")), 0);
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("SetSelectionInReadonly() error!")), 0);
}
//=============================================================================
void AccessibilityOptTest::impl_checkAccessibilityOptions()
-{
+{
impl_checkGetAutoDetectSystemHC();
impl_checkGetIsForPagePreviews();
impl_checkGetIsHelpTipsDisappear();
diff --git a/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.hxx b/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.hxx
index 89dce6d2bdd1..242d7be87aa1 100644
--- a/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.hxx
+++ b/svl/qa/complex/ConfigItems/helper/AccessibilityOptTest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ private:
void impl_checkSetHelpTipSeconds();
void impl_checkSetSelectionInReadonly();
-private:
+private:
css::uno::Reference< css::container::XNameAccess > m_xCfg;
SvtAccessibilityOptions aAccessibilityOpt;
};
diff --git a/svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx b/svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx
index 4ee8ce09289f..e948eb550803 100644
--- a/svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx
+++ b/svl/qa/complex/ConfigItems/helper/ConfigItemTest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ static const ::rtl::OUString TEST_HELPBOOKMARKS = ::rtl::OUString::creat
static const ::rtl::OUString TEST_ACCESSIBILITYOPTIONS = ::rtl::OUString::createFromAscii("checkAccessibilityOptions");
static const ::rtl::OUString TEST_PRINTOPTIONS = ::rtl::OUString::createFromAscii("checkPrintOptions");
static const ::rtl::OUString TEST_USEROPTIONS = ::rtl::OUString::createFromAscii("checkUserOptions");
-
+
//=============================================================================
class ConfigItemTest : public ::cppu::WeakImplHelper2< css::task::XJob ,
css::lang::XServiceInfo >
@@ -63,7 +63,7 @@ class ConfigItemTest : public ::cppu::WeakImplHelper2< css::task::XJob ,
// interface
public:
explicit ConfigItemTest(const css::uno::Reference< css::uno::XComponentContext >& xContext);
-
+
// css::task::XJob
virtual css::uno::Any SAL_CALL execute(const css::uno::Sequence< css::beans::NamedValue >& lArguments)
throw (css::uno::RuntimeException ,
@@ -73,27 +73,27 @@ class ConfigItemTest : public ::cppu::WeakImplHelper2< css::task::XJob ,
// css::lang::XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException);
-
+
virtual ::sal_Bool SAL_CALL supportsService(const ::rtl::OUString& sServiceName)
throw (css::uno::RuntimeException);
-
+
virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
throw (css::uno::RuntimeException);
-
+
//-------------------------------------------------------------------------
// internal
private:
ConfigItemTest(ConfigItemTest &); // not defined
virtual ~ConfigItemTest() {}
void operator=(ConfigItemTest &); // not defined
-
+
//-------------------------------------------------------------------------
// helper for registration !
public:
static ::rtl::OUString SAL_CALL st_getImplementationName();
static css::uno::Sequence< ::rtl::OUString > SAL_CALL st_getSupportedServiceNames();
static css::uno::Reference< css::uno::XInterface > SAL_CALL st_create(const css::uno::Reference< css::uno::XComponentContext >& XContext);
-
+
//-------------------------------------------------------------------------
// member
private:
diff --git a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx
index a304a508b3fb..71cb50d27b3e 100644
--- a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx
+++ b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#include "HistoryOptTest.hxx"
#include <unotools/historyoptions_const.hxx>
@@ -131,7 +131,7 @@ void HistoryOptTest::impl_testHistory(EHistoryType eHistory ,
( ! impl_existsItemAtIndex(nFirstItem , 1))
)
throw css::uno::Exception(MESSAGE_WRONG_ORDER, 0);
-
+
for (i=0; i<nSecondItem; ++i)
{
::sal_Int32 nExpectedIndex = (c-1)-i;
@@ -147,10 +147,10 @@ void HistoryOptTest::impl_testHistory(EHistoryType eHistory ,
if ( ! impl_existsItemAtIndex(nNewestItem, 0))
throw css::uno::Exception(MESSAGE_WRONG_ORDER, 0);
-
+
if (impl_existsItem(nOldestItem))
throw css::uno::Exception(MESSAGE_UNEXPECTED_ITEM, 0);
-
+
// e) Check if decreasing list size will remove oldest items.
// Note: impl_setSize() will make sure that 3 items exists only.
// Otherwhise it throws an exception. If we further check
@@ -185,17 +185,17 @@ void HistoryOptTest::impl_clearList()
if (nCount != 0)
throw css::uno::Exception(MESSAGE_CLEAR_FAILED, 0);
-
+
css::uno::Reference< css::container::XNameAccess > xList;
xList = impl_getItemList();
nCount = xList->getElementNames().getLength();
-
+
if (nCount != 0)
throw css::uno::Exception(MESSAGE_CLEAR_FAILED, 0);
-
+
xList = impl_getOrderList();
nCount = xList->getElementNames().getLength();
-
+
if (nCount != 0)
throw css::uno::Exception(MESSAGE_CLEAR_FAILED, 0);
}
@@ -210,7 +210,7 @@ void HistoryOptTest::impl_setSize(::sal_Int32 nSize)
::sal_Int32 nCheck = m_aConfigItem.GetSize(m_eList);
if (nCheck != nSize)
throw css::uno::Exception(MESSAGE_SETSIZE_FAILED, 0);
-
+
// b) current size of used XCU lists reflects the current state of
// history list and not max size. So it can be less then size !
css::uno::Reference< css::container::XNameAccess > xList;
@@ -279,7 +279,7 @@ void HistoryOptTest::impl_appendItem(::sal_Int32 nItem)
{
const ::comphelper::SequenceAsHashMap aItem(lItems[i]);
const ::rtl::OUString& sCheck = aItem.getUnpackedValueOrDefault(s_sURL, ::rtl::OUString());
-
+
bFound = sCheck.equals(sURL);
if (bFound)
break;
@@ -294,12 +294,12 @@ void HistoryOptTest::impl_appendItem(::sal_Int32 nItem)
css::uno::Reference< css::container::XNameAccess > xItemList = impl_getItemList();
css::uno::Reference< css::container::XNameAccess > xItem ;
xItemList->getByName(sURL) >>= xItem;
-
+
bFound = xItem.is();
}
catch(const css::container::NoSuchElementException&)
{}
-
+
return bFound;
}
@@ -328,23 +328,23 @@ void HistoryOptTest::impl_appendItem(::sal_Int32 nItem)
css::uno::Reference< css::container::XNameAccess > xItemList = impl_getItemList();
css::uno::Reference< css::container::XNameAccess > xItem ;
xItemList->getByName(sURL) >>= xItem;
-
+
bFound = xItem.is();
}
catch(const css::container::NoSuchElementException&)
{}
-
+
if ( ! bFound)
return sal_False;
bFound = sal_False;
-
+
try
{
const ::rtl::OUString sOrder = ::rtl::OUString::valueOf(nIndex);
css::uno::Reference< css::container::XNameAccess > xOrderList = impl_getOrderList();
css::uno::Reference< css::container::XNameAccess > xOrder ;
xOrderList->getByName(sOrder) >>= xOrder;
-
+
if (xOrder.is())
{
xOrder->getByName(s_sHistoryItemRef) >>= sCheck;
@@ -353,7 +353,7 @@ void HistoryOptTest::impl_appendItem(::sal_Int32 nItem)
}
catch(const css::container::NoSuchElementException&)
{}
-
+
return bFound;
}
@@ -363,10 +363,10 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getItemL
css::uno::Reference< css::container::XNameAccess > xHistory = impl_getNewHistory();
css::uno::Reference< css::container::XNameAccess > xList ;
xHistory->getByName (s_sItemList) >>= xList;
-
+
if ( ! xList.is())
throw css::uno::Exception(MESSAGE_MISS_ITEMLIST, 0);
-
+
return xList;
}
@@ -376,10 +376,10 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getOrder
css::uno::Reference< css::container::XNameAccess > xHistory = impl_getNewHistory();
css::uno::Reference< css::container::XNameAccess > xList ;
xHistory->getByName (s_sOrderList) >>= xList;
-
+
if ( ! xList.is())
throw css::uno::Exception(MESSAGE_MISS_ORDERLIST, 0);
-
+
return xList;
}
@@ -403,11 +403,11 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getNewHi
case ePICKLIST :
m_xHistoriesXCU->getByName(s_sPickList) >>= xHistory;
break;
-
+
case eHISTORY :
m_xHistoriesXCU->getByName(s_sURLHistory) >>= xHistory;
break;
-
+
case eHELPBOOKMARKS :
m_xHistoriesXCU->getByName(s_sHelpBookmarks) >>= xHistory;
break;
@@ -415,7 +415,7 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getNewHi
if ( ! xHistory.is())
throw css::uno::Exception(MESSAGE_MISS_HISTORY, 0);
-
+
return xHistory;
}
@@ -439,11 +439,11 @@ css::uno::Reference< css::container::XNameAccess > HistoryOptTest::impl_getOldHi
case ePICKLIST :
m_xCommonXCU->getByName(s_sPickList) >>= xHistory;
break;
-
+
case eHISTORY :
m_xCommonXCU->getByName(s_sURLHistory) >>= xHistory;
break;
-
+
case eHELPBOOKMARKS :
m_xCommonXCU->getByName(s_sHelpBookmarks) >>= xHistory;
break;
@@ -476,13 +476,13 @@ void HistoryOptTest::impl_clearList(const ::rtl::OUString& sList)
if (xListAccess.is())
{
- xListAccess->getByName(s_sItemList) >>= xItemOrder ;
- sFileList = xItemOrder->getElementNames();
+ xListAccess->getByName(s_sItemList) >>= xItemOrder ;
+ sFileList = xItemOrder->getElementNames();
for(sal_Int32 i=0; i<sFileList.getLength(); ++i)
xItemOrder->removeByName(sFileList[i]);
xListAccess->getByName(s_sOrderList) >>= xItemOrder ;
- sFileList = xItemOrder->getElementNames();
+ sFileList = xItemOrder->getElementNames();
for(sal_Int32 j=0; j<sFileList.getLength(); ++j)
xItemOrder->removeByName(sFileList[j]);
@@ -494,7 +494,7 @@ void HistoryOptTest::impl_clearList(const ::rtl::OUString& sList)
}
//=============================================================================
-// use configuration API (not ConfigItem!) to verify the results within XML !
+// use configuration API (not ConfigItem!) to verify the results within XML !
sal_Bool HistoryOptTest::impl_isListEmpty(const ::rtl::OUString& sList)
{
css::uno::Reference< css::container::XNameAccess > xListAccess;
@@ -526,7 +526,7 @@ sal_Bool HistoryOptTest::impl_isListEmpty(const ::rtl::OUString& sList)
}
//=============================================================================
-// append a item: use configuration API (not ConfigItem!) to verify the results within XML !
+// append a item: use configuration API (not ConfigItem!) to verify the results within XML !
void HistoryOptTest::impl_appendItem(const ::rtl::OUString& sList)
{//to do...
}
@@ -547,7 +547,7 @@ void HistoryOptTest::impl_checkGetSize(const ::rtl::OUString& sList)
xSet->setPropertyValue(s_sPickListSize, css::uno::makeAny(nSize+1));
::comphelper::ConfigurationHelper::flush(m_xCommonXCU);
- nSize_ = aHistoryOpt.GetSize(ePICKLIST);
+ nSize_ = aHistoryOpt.GetSize(ePICKLIST);
if (nSize_ == nSize)
throw css::uno::RuntimeException(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetSize(ePICKLIST) error!")), 0);
@@ -560,7 +560,7 @@ void HistoryOptTest::impl_checkGetSize(const ::rtl::OUString& sList)
xSet->setPropertyValue(s_sURLHistorySize, css::uno::makeAny(nSize+1));
::comphelper::ConfigurationHelper::flush(m_xCommonXCU);
- nSize_ = aHistoryOpt.GetSize(eHISTORY);
+ nSize_ = aHistoryOpt.GetSize(eHISTORY);
if (nSize_ == nSize)
throw css::uno::RuntimeException(
@@ -574,7 +574,7 @@ void HistoryOptTest::impl_checkGetSize(const ::rtl::OUString& sList)
xSet->setPropertyValue(s_sHelpBookmarksSize, css::uno::makeAny(nSize+1));
::comphelper::ConfigurationHelper::flush(m_xCommonXCU);
- nSize_ = aHistoryOpt.GetSize(eHELPBOOKMARKS);
+ nSize_ = aHistoryOpt.GetSize(eHELPBOOKMARKS);
if (nSize_ == nSize)
throw css::uno::RuntimeException(
@@ -651,7 +651,7 @@ void HistoryOptTest::impl_checkClear(const ::rtl::OUString& sList)
if ( !impl_isListEmpty(s_sHelpBookmarks) )
throw css::uno::RuntimeException(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Clear(eHELPBOOKMARKS) error!")), 0);
- }
+ }
}
//=============================================================================
@@ -661,7 +661,7 @@ void HistoryOptTest::impl_checkGetList(const ::rtl::OUString& sList)
if (sList.equalsAscii("PickList"))
{
impl_clearList(s_sPickList);
- aHistoryOpt.AppendItem( ePICKLIST ,
+ aHistoryOpt.AppendItem( ePICKLIST ,
::rtl::OUString::createFromAscii("file:///c/test1"),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii(""),
@@ -676,7 +676,7 @@ void HistoryOptTest::impl_checkGetList(const ::rtl::OUString& sList)
else if (sList.equalsAscii("URLHistory"))
{
impl_clearList(s_sURLHistory);
- aHistoryOpt.AppendItem( eHISTORY ,
+ aHistoryOpt.AppendItem( eHISTORY ,
::rtl::OUString::createFromAscii("file:///c/test1"),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii(""),
@@ -691,7 +691,7 @@ void HistoryOptTest::impl_checkGetList(const ::rtl::OUString& sList)
else if (sList.equalsAscii("HelpBookmarks"))
{
impl_clearList(s_sHelpBookmarks);
- aHistoryOpt.AppendItem( eHELPBOOKMARKS ,
+ aHistoryOpt.AppendItem( eHELPBOOKMARKS ,
::rtl::OUString::createFromAscii("file:///c/test1"),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii(""),
@@ -701,7 +701,7 @@ void HistoryOptTest::impl_checkGetList(const ::rtl::OUString& sList)
if ( aHistoryList.getLength()==0 )
throw css::uno::RuntimeException(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("GetList(eHELPBOOKMARKS) error!")), 0);
- }
+ }
}
void HistoryOptTest::impl_checkAppendItem(const ::rtl::OUString& sList)
@@ -712,13 +712,13 @@ void HistoryOptTest::impl_checkAppendItem(const ::rtl::OUString& sList)
sal_Int32 nListSize = aHistoryOpt.GetSize(ePICKLIST);
for (sal_Int32 i=0; i<nListSize; ++i)
- aHistoryOpt.AppendItem( ePICKLIST ,
+ aHistoryOpt.AppendItem( ePICKLIST ,
::rtl::OUString::valueOf(i),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii("") );
- aHistoryOpt.AppendItem( ePICKLIST ,
+ aHistoryOpt.AppendItem( ePICKLIST ,
::rtl::OUString::valueOf(nListSize),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii(""),
@@ -731,13 +731,13 @@ void HistoryOptTest::impl_checkAppendItem(const ::rtl::OUString& sList)
sal_Int32 nListSize = aHistoryOpt.GetSize(eHISTORY);
for (sal_Int32 i=0; i<nListSize; ++i)
- aHistoryOpt.AppendItem( eHISTORY ,
+ aHistoryOpt.AppendItem( eHISTORY ,
::rtl::OUString::valueOf(i),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii("") );
- aHistoryOpt.AppendItem( eHISTORY ,
+ aHistoryOpt.AppendItem( eHISTORY ,
::rtl::OUString::valueOf(nListSize),
::rtl::OUString::createFromAscii(""),
::rtl::OUString::createFromAscii(""),
@@ -750,17 +750,17 @@ void HistoryOptTest::impl_checkAppendItem(const ::rtl::OUString& sList)
//sal_Int32 nListSize = aHistoryOpt.GetSize(eHELPBOOKMARKS);
//for (sal_Int32 i=0; i<nListSize; ++i)
- // aHistoryOpt.AppendItem( eHELPBOOKMARKS ,
- // ::rtl::OUString::valueOf(i),
- // ::rtl::OUString::createFromAscii(""),
- // ::rtl::OUString::createFromAscii(""),
- // ::rtl::OUString::createFromAscii("") );
-
- //aHistoryOpt.AppendItem( eHELPBOOKMARKS ,
- // ::rtl::OUString::valueOf(nListSize),
- // ::rtl::OUString::createFromAscii(""),
- // ::rtl::OUString::createFromAscii(""),
- // ::rtl::OUString::createFromAscii("") );
+ // aHistoryOpt.AppendItem( eHELPBOOKMARKS ,
+ // ::rtl::OUString::valueOf(i),
+ // ::rtl::OUString::createFromAscii(""),
+ // ::rtl::OUString::createFromAscii(""),
+ // ::rtl::OUString::createFromAscii("") );
+
+ //aHistoryOpt.AppendItem( eHELPBOOKMARKS ,
+ // ::rtl::OUString::valueOf(nListSize),
+ // ::rtl::OUString::createFromAscii(""),
+ // ::rtl::OUString::createFromAscii(""),
+ // ::rtl::OUString::createFromAscii("") );
}
}
@@ -789,7 +789,7 @@ void HistoryOptTest::impl_checkURLHistory()
//=============================================================================
void HistoryOptTest::impl_checkHelpBookmarks()
{
- impl_checkGetSize(s_sHelpBookmarks);
+ impl_checkGetSize(s_sHelpBookmarks);
impl_checkSetSize(s_sHelpBookmarks);
impl_checkClear(s_sHelpBookmarks);
diff --git a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.hxx b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.hxx
index c73a71e3d81e..1162c07254ff 100644
--- a/svl/qa/complex/ConfigItems/helper/HistoryOptTest.hxx
+++ b/svl/qa/complex/ConfigItems/helper/HistoryOptTest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx b/svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx
index e2ef940cbde6..9075a82a3a33 100644
--- a/svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx
+++ b/svl/qa/complex/ConfigItems/helper/PrintOptTest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#include "PrintOptTest.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -37,10 +37,10 @@ namespace css = ::com::sun::star;
// using test only
#define ROOTNODE_PRINTOPTION rtl::OUString::createFromAscii("org.openoffice.Office.Common/Print/Option")
-#define PROPERTYNAME_REDUCETRANSPARENCY rtl::OUString::createFromAscii("ReduceTransparency")
-#define PROPERTYNAME_REDUCEDTRANSPARENCYMODE rtl::OUString::createFromAscii("ReducedTransparencyMode")
-#define PROPERTYNAME_REDUCEGRADIENTS rtl::OUString::createFromAscii("ReduceGradients")
-#define PROPERTYNAME_REDUCEDGRADIENTMODE rtl::OUString::createFromAscii("ReducedGradientMode")
+#define PROPERTYNAME_REDUCETRANSPARENCY rtl::OUString::createFromAscii("ReduceTransparency")
+#define PROPERTYNAME_REDUCEDTRANSPARENCYMODE rtl::OUString::createFromAscii("ReducedTransparencyMode")
+#define PROPERTYNAME_REDUCEGRADIENTS rtl::OUString::createFromAscii("ReduceGradients")
+#define PROPERTYNAME_REDUCEDGRADIENTMODE rtl::OUString::createFromAscii("ReducedGradientMode")
#define PROPERTYNAME_REDUCEDGRADIENTSTEPCOUNT rtl::OUString::createFromAscii("ReducedGradientStepCount")
#define PROPERTYNAME_REDUCEBITMAPS rtl::OUString::createFromAscii("ReduceBitmaps")
#define PROPERTYNAME_REDUCEDBITMAPMODE rtl::OUString::createFromAscii("ReducedBitmapMode")
@@ -57,7 +57,7 @@ PrintOptTest::PrintOptTest()
::comphelper::ConfigurationHelper::E_STANDARD),
css::uno::UNO_QUERY);
- if (m_xCfg.is())
+ if (m_xCfg.is())
{
//UniString sTmp = UniString("printer");
//xub_StrLen nTokenCount = sTmp.GetTokenCount('/');
@@ -124,7 +124,7 @@ void PrintOptTest::impl_SetReduceTransparency(sal_Bool bState )
}
}
-sal_Bool PrintOptTest::impl_IsReduceGradients() const
+sal_Bool PrintOptTest::impl_IsReduceGradients() const
{
sal_Bool bRet = sal_False;
if (m_xNode.is())
@@ -227,7 +227,7 @@ sal_Bool PrintOptTest::impl_IsReduceBitmaps() const
css::uno::Reference<css::beans::XPropertySet> xSet(m_xNode, css::uno::UNO_QUERY);
if (xSet.is())
{
- xSet->getPropertyValue(PROPERTYNAME_REDUCEBITMAPS) >>= bRet;
+ xSet->getPropertyValue(PROPERTYNAME_REDUCEBITMAPS) >>= bRet;
}
}
return bRet;
@@ -292,7 +292,7 @@ sal_Int16 PrintOptTest::impl_GetReducedBitmapResolution() const
if (xSet.is())
{
xSet->getPropertyValue(PROPERTYNAME_REDUCEDBITMAPRESOLUTION) >>= nRet;
- }
+ }
}
return nRet;
}
@@ -386,7 +386,7 @@ PrintOptTest::~PrintOptTest()
void PrintOptTest::impl_checkPrint()
{
- //test SetReduceTransparency()
+ //test SetReduceTransparency()
sal_Bool bNewValue = sal_False;
sal_Bool bOldValue = sal_False;
bOldValue = PrintOptTest::impl_IsReduceTransparency();
@@ -402,7 +402,7 @@ void PrintOptTest::impl_checkPrint()
"the SetReduceTransparency() error!"),
0);
}
-
+
//test IsReduceTransparemcy()
bNewValue = bOldValue = sal_False;
bOldValue = impl_IsReduceTransparency();
@@ -424,7 +424,7 @@ void PrintOptTest::impl_checkPrint()
nOldMode = nNewMode = 0;
nOldMode = impl_GetReducedTransparencyMode();
nNewMode = nOldMode + 1;
- aPrintOpt.SetReducedTransparencyMode( nNewMode );
+ aPrintOpt.SetReducedTransparencyMode( nNewMode );
nNewMode = impl_GetReducedTransparencyMode();
//if(nNewMode != nOldMode) // test the old source
if ( nNewMode == nOldMode ) // test the new source
@@ -459,7 +459,7 @@ void PrintOptTest::impl_checkPrint()
bNewValue = !bOldValue;
aPrintOpt.SetReduceGradients(bNewValue);
bNewValue = impl_IsReduceGradients();
- //if (bNewValue != bOldValue) //test the old source
+ //if (bNewValue != bOldValue) //test the old source
if (bNewValue == bOldValue) //test the new source
{
throw css::uno::RuntimeException(
@@ -486,7 +486,7 @@ void PrintOptTest::impl_checkPrint()
0);
}
-
+
//test SetRedecedGradientMode()
nOldMode = nNewMode = 0;
nOldMode = this->impl_GetReducedGradientMode();
@@ -519,7 +519,7 @@ void PrintOptTest::impl_checkPrint()
0);
}
-
+
//test the SetReducedGradientStepCount()
sal_Int16 nNewStepCount;
sal_Int16 nOldStepCount;
@@ -554,7 +554,7 @@ void PrintOptTest::impl_checkPrint()
"the GetReduceGradientStepCount() error!"),
0);
}
-
+
// test the SetReduceBitmaps()
bNewValue = bOldValue = sal_False;
bOldValue = this->impl_IsReduceBitmaps();
@@ -586,7 +586,7 @@ void PrintOptTest::impl_checkPrint()
"the IsReduceBitmaps() error!"),
0);
}
-
+
// test the SetReduceBitmap()
nNewMode = nOldMode = 0;
nOldMode = impl_GetReducedBitmapMode();
@@ -602,7 +602,7 @@ void PrintOptTest::impl_checkPrint()
"the SetReduceBitmap() error!"),
0);
}
-
+
// test the SetReduceBitmapMode()
nNewMode = nOldMode = 0;
nOldMode = this->impl_GetReducedBitmapMode();
@@ -701,7 +701,7 @@ void PrintOptTest::impl_checkPrint()
"the IsReducedBitmapIncludesTransparency() error!"),
0);
}
-
+
// test the SetConvertToGreyscales()
bNewValue = bOldValue = sal_False;
bOldValue = this->impl_IsConvertToGreyscales();
@@ -715,10 +715,10 @@ void PrintOptTest::impl_checkPrint()
rtl::OUString::createFromAscii(
"null com.sun.star.configuration."
"the SetConvertToGreyscales() error!"),
- 0);
+ 0);
}
- // test the IsConvertToGreyscales()
+ // test the IsConvertToGreyscales()
bNewValue = bOldValue = sal_False;
bOldValue = this->impl_IsConvertToGreyscales();
bNewValue = !bOldValue;
diff --git a/svl/qa/complex/ConfigItems/helper/PrintOptTest.hxx b/svl/qa/complex/ConfigItems/helper/PrintOptTest.hxx
index 2d43d7057154..84b2cedc7726 100644
--- a/svl/qa/complex/ConfigItems/helper/PrintOptTest.hxx
+++ b/svl/qa/complex/ConfigItems/helper/PrintOptTest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#ifndef SVTOOLS_PRINTOPTTEST_HXX
#define SVTOOLS_PRINTOPTTEST_HXX
@@ -37,17 +37,17 @@ namespace css = ::com::sun::star;
class PrintOptTest
{
public:
-
+
PrintOptTest();
~PrintOptTest();
void impl_checkPrint();
private: //members
-
+
SvtPrinterOptions aPrintOpt;
- css::uno::Reference< css::container::XNameAccess > m_xCfg;
- css::uno::Reference< css::container::XNameAccess > m_xNode;
+ css::uno::Reference< css::container::XNameAccess > m_xCfg;
+ css::uno::Reference< css::container::XNameAccess > m_xNode;
private: // methods
sal_Bool impl_IsReduceTransparency() const ;
@@ -55,17 +55,17 @@ private: // methods
sal_Int16 impl_GetReducedTransparencyMode() const ;
void impl_SetReducedTransparencyMode( sal_Int16 nMode ) ;
-
- sal_Bool impl_IsReduceGradients() const ;
+
+ sal_Bool impl_IsReduceGradients() const ;
void impl_SetReduceGradients( sal_Bool bState ) ;
sal_Int16 impl_GetReducedGradientMode() const ;
void impl_SetReducedGradientMode( sal_Int16 nMode ) ;
sal_Int16 impl_GetReducedGradientStepCount() const ;
- void impl_SetReducedGradientStepCount( sal_Int16 nStepCount );
+ void impl_SetReducedGradientStepCount( sal_Int16 nStepCount );
- sal_Bool impl_IsReduceBitmaps() const ;
+ sal_Bool impl_IsReduceBitmaps() const ;
void impl_SetReduceBitmaps( sal_Bool bState ) ;
sal_Int16 impl_GetReducedBitmapMode() const ;
@@ -73,11 +73,11 @@ private: // methods
sal_Int16 impl_GetReducedBitmapResolution() const ;
void impl_SetReducedBitmapResolution( sal_Int16 nResolution ) ;
-
- sal_Bool impl_IsReducedBitmapIncludesTransparency() const ;
+
+ sal_Bool impl_IsReducedBitmapIncludesTransparency() const ;
void impl_SetReducedBitmapIncludesTransparency( sal_Bool bState ) ;
- sal_Bool impl_IsConvertToGreyscales() const;
+ sal_Bool impl_IsConvertToGreyscales() const;
void impl_SetConvertToGreyscales( sal_Bool bState ) ;
};
diff --git a/svl/qa/complex/ConfigItems/helper/UserOptTest.cxx b/svl/qa/complex/ConfigItems/helper/UserOptTest.cxx
index 571d5bb9e3ed..62bd0ba3851f 100644
--- a/svl/qa/complex/ConfigItems/helper/UserOptTest.cxx
+++ b/svl/qa/complex/ConfigItems/helper/UserOptTest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,41 +65,41 @@ UserOptTest::~UserOptTest()
void UserOptTest::impl_checkUserData()
{
- impl_checkSetCompany( ::rtl::OUString() );
- impl_checkSetFirstName( ::rtl::OUString() );
- impl_checkSetLastName( ::rtl::OUString() );
- impl_checkSetID( ::rtl::OUString() );
- impl_checkSetStreet( ::rtl::OUString() );
- impl_checkSetCity( ::rtl::OUString() );
- impl_checkSetState( ::rtl::OUString() );
- impl_checkSetZip( ::rtl::OUString() );
+ impl_checkSetCompany( ::rtl::OUString() );
+ impl_checkSetFirstName( ::rtl::OUString() );
+ impl_checkSetLastName( ::rtl::OUString() );
+ impl_checkSetID( ::rtl::OUString() );
+ impl_checkSetStreet( ::rtl::OUString() );
+ impl_checkSetCity( ::rtl::OUString() );
+ impl_checkSetState( ::rtl::OUString() );
+ impl_checkSetZip( ::rtl::OUString() );
impl_checkSetCountry( ::rtl::OUString() );
impl_checkSetPosition( ::rtl::OUString() );
- impl_checkSetTitle( ::rtl::OUString() );
+ impl_checkSetTitle( ::rtl::OUString() );
impl_checkSetTelephoneHome( ::rtl::OUString() );
impl_checkSetTelephoneWork( ::rtl::OUString() );
- impl_checkSetFax( ::rtl::OUString() );
+ impl_checkSetFax( ::rtl::OUString() );
impl_checkSetEmail( ::rtl::OUString() );
- //impl_checkSetCustomerNumber( ::rtl::OUString() );
+ //impl_checkSetCustomerNumber( ::rtl::OUString() );
impl_checkSetFathersName( ::rtl::OUString() );
impl_checkSetApartment( ::rtl::OUString() );
- impl_checkSetCompany( ::rtl::OUString::createFromAscii("RedFlag2000") );
- impl_checkSetFirstName( ::rtl::OUString::createFromAscii("Yan") );
- impl_checkSetLastName( ::rtl::OUString::createFromAscii("Wu") );
- impl_checkSetID( ::rtl::OUString::createFromAscii("wuy") );
- impl_checkSetStreet( ::rtl::OUString::createFromAscii("SouthFifthRing") );
- impl_checkSetCity( ::rtl::OUString::createFromAscii("Beijing") );
- impl_checkSetState( ::rtl::OUString::createFromAscii("Beijing") );
- impl_checkSetZip( ::rtl::OUString::createFromAscii("100176") );
+ impl_checkSetCompany( ::rtl::OUString::createFromAscii("RedFlag2000") );
+ impl_checkSetFirstName( ::rtl::OUString::createFromAscii("Yan") );
+ impl_checkSetLastName( ::rtl::OUString::createFromAscii("Wu") );
+ impl_checkSetID( ::rtl::OUString::createFromAscii("wuy") );
+ impl_checkSetStreet( ::rtl::OUString::createFromAscii("SouthFifthRing") );
+ impl_checkSetCity( ::rtl::OUString::createFromAscii("Beijing") );
+ impl_checkSetState( ::rtl::OUString::createFromAscii("Beijing") );
+ impl_checkSetZip( ::rtl::OUString::createFromAscii("100176") );
impl_checkSetCountry( ::rtl::OUString::createFromAscii("China") );
impl_checkSetPosition( ::rtl::OUString::createFromAscii("Engineer") );
- impl_checkSetTitle( ::rtl::OUString::createFromAscii("Software Engineer") );
+ impl_checkSetTitle( ::rtl::OUString::createFromAscii("Software Engineer") );
impl_checkSetTelephoneHome( ::rtl::OUString::createFromAscii("010-51570010") );
impl_checkSetTelephoneWork( ::rtl::OUString::createFromAscii("010-51570010") );
- impl_checkSetFax( ::rtl::OUString::createFromAscii("010-51570010") );
+ impl_checkSetFax( ::rtl::OUString::createFromAscii("010-51570010") );
impl_checkSetEmail( ::rtl::OUString::createFromAscii("wuy@redflag2000.cn") );
- //impl_checkSetCustomerNumber( ::rtl::OUString::createFromAscii("87654321") );
+ //impl_checkSetCustomerNumber( ::rtl::OUString::createFromAscii("87654321") );
impl_checkSetFathersName( ::rtl::OUString::createFromAscii("father") );
impl_checkSetApartment( ::rtl::OUString::createFromAscii("apartment") );
}
diff --git a/svl/qa/complex/ConfigItems/helper/UserOptTest.hxx b/svl/qa/complex/ConfigItems/helper/UserOptTest.hxx
index 11e7de6794c1..ebbde98f63fc 100644
--- a/svl/qa/complex/ConfigItems/helper/UserOptTest.hxx
+++ b/svl/qa/complex/ConfigItems/helper/UserOptTest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/qa/complex/passwordcontainer/MasterPasswdHandler.java b/svl/qa/complex/passwordcontainer/MasterPasswdHandler.java
index bf6159ee38c5..af48cb5c0dc4 100644
--- a/svl/qa/complex/passwordcontainer/MasterPasswdHandler.java
+++ b/svl/qa/complex/passwordcontainer/MasterPasswdHandler.java
@@ -18,14 +18,14 @@ import com.sun.star.task.XInteractionHandler;
import com.sun.star.task.MasterPasswordRequest;
import com.sun.star.uno.UnoRuntime;
-public class MasterPasswdHandler extends WeakBase
+public class MasterPasswdHandler extends WeakBase
implements XInteractionHandler {
XInteractionHandler m_xHandler;
-
+
public MasterPasswdHandler( XInteractionHandler xHandler ) {
m_xHandler = xHandler;
}
-
+
public void handle( XInteractionRequest xRequest ) {
try {
MasterPasswordRequest aMasterPasswordRequest;
diff --git a/svl/qa/complex/passwordcontainer/PasswordContainerTest.java b/svl/qa/complex/passwordcontainer/PasswordContainerTest.java
index 0f4d97f28d56..f0bdf5da6193 100644
--- a/svl/qa/complex/passwordcontainer/PasswordContainerTest.java
+++ b/svl/qa/complex/passwordcontainer/PasswordContainerTest.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/qa/complex/passwordcontainer/PasswordContainerUnitTest.java b/svl/qa/complex/passwordcontainer/PasswordContainerUnitTest.java
index 2e3bada4d1bc..7d2c30a03b0b 100644
--- a/svl/qa/complex/passwordcontainer/PasswordContainerUnitTest.java
+++ b/svl/qa/complex/passwordcontainer/PasswordContainerUnitTest.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@ import com.sun.star.lang.XMultiServiceFactory;
public class PasswordContainerUnitTest extends ComplexTestCase {
private XMultiServiceFactory m_xMSF = null;
-
+
public String[] getTestMethodNames() {
return new String[] {
"ExecuteTest01",
@@ -42,7 +42,7 @@ public class PasswordContainerUnitTest extends ComplexTestCase {
public String getTestObjectName() {
return "PasswordContainerUnitTest";
}
-
+
public void before() {
try {
m_xMSF = (XMultiServiceFactory) param.getMSF();
@@ -53,11 +53,11 @@ public class PasswordContainerUnitTest extends ComplexTestCase {
failed ("Cannot create service factory!");
}
}
-
+
public void after() {
m_xMSF = null;
}
-
+
public void ExecuteTest01() {
PasswordContainerTest aTest = new Test01(m_xMSF, log);
assure("Test01 failed!", aTest.test());
diff --git a/svl/qa/complex/passwordcontainer/Test01.java b/svl/qa/complex/passwordcontainer/Test01.java
index 1ca17c922669..71e887502a86 100644
--- a/svl/qa/complex/passwordcontainer/Test01.java
+++ b/svl/qa/complex/passwordcontainer/Test01.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,23 +42,23 @@ public class Test01 implements PasswordContainerTest {
XMultiServiceFactory m_xMSF = null;
XPasswordContainer m_xPasswordContainer = null;
TestHelper m_aTestHelper = null;
-
+
public Test01 ( XMultiServiceFactory xMSF, LogWriter aLogWriter )
{
m_xMSF = xMSF;
m_aTestHelper = new TestHelper (aLogWriter, "Test01: ");
}
-
+
public boolean test() {
final String sURL = "http://www.openoffice.org";
final String sUserPre = "OOoUser";
final String sPwdPre = "Password";
- final int iUserNum1 = 10;
+ final int iUserNum1 = 10;
final int iUserNum2 = 5;
-
+
UserRecord aInputUserList1[] = new UserRecord[iUserNum1];
for(int i = 0; i < iUserNum1; i++) {
- String sTemp[] = {sPwdPre + "_1_" + i}; // currently one password for one user
+ String sTemp[] = {sPwdPre + "_1_" + i}; // currently one password for one user
aInputUserList1[i] = new UserRecord(sUserPre + "_1_" + i, sTemp);
}
UserRecord aInputUserList2[] = new UserRecord[iUserNum2];
@@ -72,8 +72,8 @@ public class Test01 implements PasswordContainerTest {
Object oHandler = m_xMSF.createInstance( "com.sun.star.task.InteractionHandler" );
XInteractionHandler xHandler = (XInteractionHandler)UnoRuntime.queryInterface(XInteractionHandler.class, oHandler);
MasterPasswdHandler aMHandler = new MasterPasswdHandler( xHandler );
-
- // add a set of users and passwords for the same URL for runtime
+
+ // add a set of users and passwords for the same URL for runtime
for(int i = 0; i < iUserNum1; i++) {
xContainer.add(sURL, aInputUserList1[i].UserName, aInputUserList1[i].Passwords, aMHandler);
}
@@ -81,12 +81,12 @@ public class Test01 implements PasswordContainerTest {
xContainer.add(sURL, aInputUserList2[i].UserName, aInputUserList2[i].Passwords, aMHandler);
}
- // remove some of the passwords
+ // remove some of the passwords
for (int i = 0; i < iUserNum1; i++) {
xContainer.remove(sURL, aInputUserList1[i].UserName);
}
-
- // get the result and check it with the expected one
+
+ // get the result and check it with the expected one
UrlRecord aRecord = xContainer.find(sURL, aMHandler);
if(!aRecord.Url.equals(sURL)) {
m_aTestHelper.Error("URL mismatch. Got " + aRecord.Url + "; should be " + sURL);
@@ -96,7 +96,7 @@ public class Test01 implements PasswordContainerTest {
m_aTestHelper.Error("User list is not the expected");
return false;
}
-
+
// remove the runtime passwords
aRecord = xContainer.find(sURL, aMHandler);
for(int i = 0; i < aRecord.UserList.length; i++) {
diff --git a/svl/qa/complex/passwordcontainer/Test02.java b/svl/qa/complex/passwordcontainer/Test02.java
index b77b0fe9bf48..f06954aa606e 100644
--- a/svl/qa/complex/passwordcontainer/Test02.java
+++ b/svl/qa/complex/passwordcontainer/Test02.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,23 +42,23 @@ public class Test02 implements PasswordContainerTest {
XMultiServiceFactory m_xMSF = null;
XPasswordContainer m_xPasswordContainer = null;
TestHelper m_aTestHelper = null;
-
+
public Test02 ( XMultiServiceFactory xMSF, LogWriter aLogWriter )
{
m_xMSF = xMSF;
m_aTestHelper = new TestHelper (aLogWriter, "Test02: ");
}
-
+
public boolean test() {
final String sURL = "http://www.openoffice.org";
final String sUserPre = "OOoUser";
final String sPwdPre = "Password";
- final int iUserNum1 = 10;
+ final int iUserNum1 = 10;
final int iUserNum2 = 5;
-
+
UserRecord aInputUserList1[] = new UserRecord[iUserNum1];
for(int i = 0; i < iUserNum1; i++) {
- String sTemp[] = {sPwdPre + "_1_" + i}; // currently one password for one user
+ String sTemp[] = {sPwdPre + "_1_" + i}; // currently one password for one user
aInputUserList1[i] = new UserRecord(sUserPre + "_1_" + i, sTemp);
}
UserRecord aInputUserList2[] = new UserRecord[iUserNum2];
@@ -66,7 +66,7 @@ public class Test02 implements PasswordContainerTest {
String sTemp[] = {sPwdPre + "_2_" + i};
aInputUserList2[i] = new UserRecord(sUserPre + "_2_" + i, sTemp);
}
-
+
try {
Object oPasswordContainer = m_xMSF.createInstance("com.sun.star.task.PasswordContainer");
XPasswordContainer xContainer = (XPasswordContainer)UnoRuntime.queryInterface(XPasswordContainer.class, oPasswordContainer);
@@ -74,23 +74,23 @@ public class Test02 implements PasswordContainerTest {
XInteractionHandler xHandler = (XInteractionHandler)UnoRuntime.queryInterface(XInteractionHandler.class, oHandler);
MasterPasswdHandler aMHandler = new MasterPasswdHandler(xHandler);
XMasterPasswordHandling xMHandling = (XMasterPasswordHandling)UnoRuntime.queryInterface(XMasterPasswordHandling.class, oPasswordContainer);
-
- // allow the storing of the passwords
+
+ // allow the storing of the passwords
xMHandling.allowPersistentStoring(true);
-
- // add a set of users and passwords for the same URL persistently
+
+ // add a set of users and passwords for the same URL persistently
for(int i = 0; i < iUserNum1; ++i) {
xContainer.addPersistent(sURL, aInputUserList1[i].UserName, aInputUserList1[i].Passwords, aMHandler);
}
for(int i = 0; i < iUserNum2; ++i) {
xContainer.addPersistent(sURL, aInputUserList2[i].UserName, aInputUserList2[i].Passwords, aMHandler);
}
-
+
// remove some of the passwords
for(int i = 0; i < iUserNum1; ++i) {
xContainer.remove(sURL, aInputUserList1[i].UserName);
}
-
+
// get the result with find() and check it with the expected one
UrlRecord aRecord = xContainer.find(sURL, aMHandler);
if(!aRecord.Url.equals(sURL)) {
@@ -101,7 +101,7 @@ public class Test02 implements PasswordContainerTest {
m_aTestHelper.Error("User list is not the expected");
return false;
}
-
+
// get the result with getAllPersistent() and check
UrlRecord aRecords[] = xContainer.getAllPersistent(aMHandler);
if(!aRecords[0].Url.equals(sURL)) {
@@ -112,16 +112,16 @@ public class Test02 implements PasswordContainerTest {
m_aTestHelper.Error("User list is not the expected");
return false;
}
-
- // remove all the persistent passwords
+
+ // remove all the persistent passwords
xContainer.removeAllPersistent();
-
- // remove the runtime passwords
+
+ // remove the runtime passwords
for(int i = 0; i < aRecords[0].UserList.length; ++i) {
xContainer.remove(sURL, aRecords[0].UserList[i].UserName);
}
-
- // disallow the storing of the passwords
+
+ // disallow the storing of the passwords
xMHandling.allowPersistentStoring(false);
} catch(Exception e) {
m_aTestHelper.Error("Exception: " + e);
diff --git a/svl/qa/complex/passwordcontainer/Test03.java b/svl/qa/complex/passwordcontainer/Test03.java
index 9e38a55893e0..0ebb727b658b 100644
--- a/svl/qa/complex/passwordcontainer/Test03.java
+++ b/svl/qa/complex/passwordcontainer/Test03.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,30 +42,30 @@ public class Test03 implements PasswordContainerTest {
XMultiServiceFactory m_xMSF = null;
XPasswordContainer m_xPasswordContainer = null;
TestHelper m_aTestHelper = null;
-
+
public Test03 ( XMultiServiceFactory xMSF, LogWriter aLogWriter )
{
m_xMSF = xMSF;
m_aTestHelper = new TestHelper (aLogWriter, "Test03: ");
}
-
+
public boolean test() {
final String sURL = "http://www.openoffice.org";
final String sUserPre = "OOoUser";
final String sPwdPre = "Password";
- final int iPersistentUserNum = 10;
+ final int iPersistentUserNum = 10;
final int iRuntimeUserNum = 5;
-
+
UserRecord aInputUserList[] = new UserRecord[iPersistentUserNum+iRuntimeUserNum];
for(int i = 0; i < iPersistentUserNum; i++) {
- String sTemp[] = {sPwdPre + "_1_" + i}; // currently one password for one user
+ String sTemp[] = {sPwdPre + "_1_" + i}; // currently one password for one user
aInputUserList[i] = new UserRecord(sUserPre + "_1_" + i, sTemp);
}
for(int i = 0; i < iRuntimeUserNum; i++) {
String sTemp[] = {sPwdPre + "_2_" + i};
aInputUserList[i+iPersistentUserNum] = new UserRecord(sUserPre + "_2_" + i, sTemp);
}
-
+
try {
Object oPasswordContainer = m_xMSF.createInstance("com.sun.star.task.PasswordContainer");
XPasswordContainer xContainer = (XPasswordContainer)UnoRuntime.queryInterface(XPasswordContainer.class, oPasswordContainer);
@@ -73,20 +73,20 @@ public class Test03 implements PasswordContainerTest {
XInteractionHandler xHandler = (XInteractionHandler)UnoRuntime.queryInterface(XInteractionHandler.class, oHandler);
MasterPasswdHandler aMHandler = new MasterPasswdHandler(xHandler);
XMasterPasswordHandling xMHandling = (XMasterPasswordHandling)UnoRuntime.queryInterface(XMasterPasswordHandling.class, oPasswordContainer);
-
- // allow the storing of the passwords
+
+ // allow the storing of the passwords
xMHandling.allowPersistentStoring(true);
-
- // add a set of users and passwords for the same URL persistently
+
+ // add a set of users and passwords for the same URL persistently
for(int i = 0; i < iPersistentUserNum; i++) {
xContainer.addPersistent(sURL, aInputUserList[i].UserName, aInputUserList[i].Passwords, aMHandler);
}
-
- // add a set of users and passwords for the same URL for runtime
+
+ // add a set of users and passwords for the same URL for runtime
for(int i = 0; i < iRuntimeUserNum; i++) {
xContainer.add(sURL, aInputUserList[i+iPersistentUserNum].UserName, aInputUserList[i+iPersistentUserNum].Passwords, aMHandler);
}
-
+
// get the result for the URL and check that it contains persistent and runtime passwords
UrlRecord aRecord = xContainer.find(sURL, aMHandler);
if(!aRecord.Url.equals(sURL)) {
@@ -97,17 +97,17 @@ public class Test03 implements PasswordContainerTest {
m_aTestHelper.Error("User list is not the expected");
return false;
}
-
- // remove all the persistent passwords
+
+ // remove all the persistent passwords
xContainer.removeAllPersistent();
-
- // remove the runtime passwords
+
+ // remove the runtime passwords
aRecord = xContainer.find(sURL, aMHandler);
for(int i = 0; i < aRecord.UserList.length; i++) {
xContainer.remove(sURL, aRecord.UserList[i].UserName);
}
-
- // disallow the storing of the passwords
+
+ // disallow the storing of the passwords
xMHandling.allowPersistentStoring(false);
}catch(Exception e){
m_aTestHelper.Error("Exception: " + e);
diff --git a/svl/qa/complex/passwordcontainer/TestHelper.java b/svl/qa/complex/passwordcontainer/TestHelper.java
index 1971b61098f5..489f25c468ef 100644
--- a/svl/qa/complex/passwordcontainer/TestHelper.java
+++ b/svl/qa/complex/passwordcontainer/TestHelper.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,32 +34,32 @@ import share.LogWriter;
public class TestHelper {
LogWriter m_aLogWriter;
String m_sTestPrefix;
-
+
public TestHelper( LogWriter aLogWriter, String sTestPrefix ) {
m_aLogWriter = aLogWriter;
m_sTestPrefix = sTestPrefix;
}
-
+
public void Error( String sError ) {
m_aLogWriter.println( m_sTestPrefix + "Error: " + sError );
}
-
+
public void Message( String sMessage ) {
m_aLogWriter.println( m_sTestPrefix + sMessage );
}
-
+
public boolean sameLists(UserRecord aUserList1[], UserRecord aUserList2[]) {
// only works when every name is unique within the list containing it
-
+
if(aUserList1.length != aUserList2.length) {
Message("User list lengths: " + aUserList1.length + " <--> " + aUserList2.length + " respectively ");
return false;
}
-
+
for(int i = 0; i < aUserList1.length; i++) {
int j;
for(j = 0; j < aUserList2.length; j++) {
- if(!aUserList1[i].UserName.equals(aUserList2[j].UserName))
+ if(!aUserList1[i].UserName.equals(aUserList2[j].UserName))
continue;
if(aUserList1[i].Passwords[0].equals(aUserList2[j].Passwords[0])) {
break;
diff --git a/svl/qa/export.map b/svl/qa/export.map
index 7321bbca16ad..f313c44bd7ad 100644
--- a/svl/qa/export.map
+++ b/svl/qa/export.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/qa/test_URIHelper.cxx b/svl/qa/test_URIHelper.cxx
index 06b2eb27d234..5d548f9266e9 100644
--- a/svl/qa/test_URIHelper.cxx
+++ b/svl/qa/test_URIHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/config/asiancfg.cxx b/svl/source/config/asiancfg.cxx
index 000be6d1ff68..77eb62d74198 100644
--- a/svl/source/config/asiancfg.cxx
+++ b/svl/source/config/asiancfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,9 +53,9 @@ const sal_Char sEndCharacters[] = "EndCharacters";
//-----------------------------------------------------------------------------
struct SvxForbiddenStruct_Impl
{
- Locale aLocale;
- OUString sStartChars;
- OUString sEndChars;
+ Locale aLocale;
+ OUString sStartChars;
+ OUString sEndChars;
};
//-----------------------------------------------------------------------------
typedef SvxForbiddenStruct_Impl* SvxForbiddenStruct_ImplPtr;
@@ -64,10 +64,10 @@ SV_IMPL_PTRARR(SvxForbiddenStructArr, SvxForbiddenStruct_ImplPtr);
//-----------------------------------------------------------------------------
struct SvxAsianConfig_Impl
{
- sal_Bool bKerningWesternTextOnly;
- sal_Int16 nCharDistanceCompression;
+ sal_Bool bKerningWesternTextOnly;
+ sal_Int16 nCharDistanceCompression;
- SvxForbiddenStructArr aForbiddenArr;
+ SvxForbiddenStructArr aForbiddenArr;
SvxAsianConfig_Impl() :
bKerningWesternTextOnly(sal_True),
@@ -126,8 +126,8 @@ void SvxAsianConfig::Load()
OUString sStart(sPropPrefix);
sStart += pNodes[nNode];
sStart += C2U("/");
- pNames[nName] = sStart; pNames[nName++] += C2U("StartCharacters");
- pNames[nName] = sStart; pNames[nName++] += C2U("EndCharacters");
+ pNames[nName] = sStart; pNames[nName++] += C2U("StartCharacters");
+ pNames[nName] = sStart; pNames[nName++] += C2U("EndCharacters");
}
Sequence<Any> aNodeValues = GetProperties(aPropNames);
const Any* pNodeValues = aNodeValues.getConstArray();
@@ -147,7 +147,7 @@ void SvxAsianConfig::Load()
/* -----------------------------17.01.01 09:57--------------------------------
---------------------------------------------------------------------------*/
-void SvxAsianConfig::Notify( const Sequence<OUString>& )
+void SvxAsianConfig::Notify( const Sequence<OUString>& )
{
Load();
}
@@ -193,14 +193,14 @@ void SvxAsianConfig::Commit()
/* -----------------------------16.01.01 15:36--------------------------------
---------------------------------------------------------------------------*/
-sal_Bool SvxAsianConfig::IsKerningWesternTextOnly() const
+sal_Bool SvxAsianConfig::IsKerningWesternTextOnly() const
{
return pImpl->bKerningWesternTextOnly;
}
/* -----------------------------16.01.01 15:36--------------------------------
---------------------------------------------------------------------------*/
-void SvxAsianConfig::SetKerningWesternTextOnly(sal_Bool bSet)
+void SvxAsianConfig::SetKerningWesternTextOnly(sal_Bool bSet)
{
pImpl->bKerningWesternTextOnly = bSet;
SetModified();
@@ -208,14 +208,14 @@ void SvxAsianConfig::SetKerningWesternTextOnly(sal_Bool bSet)
/* -----------------------------16.01.01 15:36--------------------------------
---------------------------------------------------------------------------*/
-sal_Int16 SvxAsianConfig::GetCharDistanceCompression() const
+sal_Int16 SvxAsianConfig::GetCharDistanceCompression() const
{
return pImpl->nCharDistanceCompression;
}
/* -----------------------------16.01.01 15:36--------------------------------
---------------------------------------------------------------------------*/
-void SvxAsianConfig::SetCharDistanceCompression(sal_Int16 nSet)
+void SvxAsianConfig::SetCharDistanceCompression(sal_Int16 nSet)
{
DBG_ASSERT(nSet >= 0 && nSet < 3, "compression value illegal");
SetModified();
@@ -237,7 +237,7 @@ uno::Sequence<lang::Locale> SvxAsianConfig::GetStartEndCharLocales()
/* -----------------------------16.01.01 15:36--------------------------------
---------------------------------------------------------------------------*/
-sal_Bool SvxAsianConfig::GetStartEndChars( const Locale& rLocale,
+sal_Bool SvxAsianConfig::GetStartEndChars( const Locale& rLocale,
OUString& rStartChars,
OUString& rEndChars )
{
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx
index 83dfb705c648..f20cb65802f1 100644
--- a/svl/source/config/cjkoptions.cxx
+++ b/svl/source/config/cjkoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,8 +77,8 @@ public:
SvtCJKOptions_Impl();
~SvtCJKOptions_Impl();
- virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& rPropertyNames );
- virtual void Commit();
+ virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& rPropertyNames );
+ virtual void Commit();
void Load();
sal_Bool IsLoaded() { return bIsLoaded; }
@@ -103,9 +103,9 @@ public:
-----------------------------------------------------------------------*/
namespace
-{
- struct PropertyNames
- : public rtl::Static< Sequence<OUString>, PropertyNames > {};
+{
+ struct PropertyNames
+ : public rtl::Static< Sequence<OUString>, PropertyNames > {};
}
SvtCJKOptions_Impl::SvtCJKOptions_Impl() :
@@ -224,7 +224,7 @@ void SvtCJKOptions_Impl::Load()
SvtSystemLanguageOptions aSystemLocaleSettings;
LanguageType eSystemLanguage = aSystemLocaleSettings.GetWin16SystemLanguage();
sal_uInt16 nWinScript = SvtLanguageOptions::GetScriptTypeOfLanguage( eSystemLanguage );
-
+
sal_uInt16 nScriptType = SvtLanguageOptions::GetScriptTypeOfLanguage(LANGUAGE_SYSTEM);
if ( !bCJKFont && (( nScriptType & SCRIPTTYPE_ASIAN )||
((eSystemLanguage != LANGUAGE_SYSTEM) && ( nWinScript & SCRIPTTYPE_ASIAN ))))
diff --git a/svl/source/config/ctloptions.cxx b/svl/source/config/ctloptions.cxx
index 14b95906ddd1..69b4cd83547e 100644
--- a/svl/source/config/ctloptions.cxx
+++ b/svl/source/config/ctloptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
-#define ASCII_STR(s) rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
+#define ASCII_STR(s) rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
#define CFG_READONLY_DEFAULT sal_False
// SvtCJKOptions_Impl ----------------------------------------------------------
@@ -55,17 +55,17 @@ using namespace ::com::sun::star::uno;
class SvtCTLOptions_Impl : public utl::ConfigItem
{
private:
- sal_Bool m_bIsLoaded;
- sal_Bool m_bCTLFontEnabled;
- sal_Bool m_bCTLSequenceChecking;
- sal_Bool m_bCTLRestricted;
+ sal_Bool m_bIsLoaded;
+ sal_Bool m_bCTLFontEnabled;
+ sal_Bool m_bCTLSequenceChecking;
+ sal_Bool m_bCTLRestricted;
sal_Bool m_bCTLTypeAndReplace;
SvtCTLOptions::CursorMovement m_eCTLCursorMovement;
- SvtCTLOptions::TextNumerals m_eCTLTextNumerals;
+ SvtCTLOptions::TextNumerals m_eCTLTextNumerals;
sal_Bool m_bROCTLFontEnabled;
sal_Bool m_bROCTLSequenceChecking;
- sal_Bool m_bROCTLRestricted;
+ sal_Bool m_bROCTLRestricted;
sal_Bool m_bROCTLTypeAndReplace;
sal_Bool m_bROCTLCursorMovement;
sal_Bool m_bROCTLTextNumerals;
@@ -74,19 +74,19 @@ public:
SvtCTLOptions_Impl();
~SvtCTLOptions_Impl();
- virtual void Notify( const Sequence< rtl::OUString >& _aPropertyNames );
- virtual void Commit();
+ virtual void Notify( const Sequence< rtl::OUString >& _aPropertyNames );
+ virtual void Commit();
void Load();
- sal_Bool IsLoaded() { return m_bIsLoaded; }
- void SetCTLFontEnabled( sal_Bool _bEnabled );
- sal_Bool IsCTLFontEnabled() const { return m_bCTLFontEnabled; }
+ sal_Bool IsLoaded() { return m_bIsLoaded; }
+ void SetCTLFontEnabled( sal_Bool _bEnabled );
+ sal_Bool IsCTLFontEnabled() const { return m_bCTLFontEnabled; }
void SetCTLSequenceChecking( sal_Bool _bEnabled );
sal_Bool IsCTLSequenceChecking() const { return m_bCTLSequenceChecking;}
- void SetCTLSequenceCheckingRestricted( sal_Bool _bEnable );
- sal_Bool IsCTLSequenceCheckingRestricted( void ) const { return m_bCTLRestricted; }
+ void SetCTLSequenceCheckingRestricted( sal_Bool _bEnable );
+ sal_Bool IsCTLSequenceCheckingRestricted( void ) const { return m_bCTLRestricted; }
void SetCTLSequenceCheckingTypeAndReplace( sal_Bool _bEnable );
sal_Bool IsCTLSequenceCheckingTypeAndReplace() const { return m_bCTLTypeAndReplace; }
@@ -95,7 +95,7 @@ public:
SvtCTLOptions::CursorMovement
GetCTLCursorMovement() const { return m_eCTLCursorMovement; }
- void SetCTLTextNumerals( SvtCTLOptions::TextNumerals _eNumerals );
+ void SetCTLTextNumerals( SvtCTLOptions::TextNumerals _eNumerals );
SvtCTLOptions::TextNumerals
GetCTLTextNumerals() const { return m_eCTLTextNumerals; }
@@ -104,8 +104,8 @@ public:
//------------------------------------------------------------------------------
namespace
{
- struct PropertyNames
- : public rtl::Static< Sequence< rtl::OUString >, PropertyNames > {};
+ struct PropertyNames
+ : public rtl::Static< Sequence< rtl::OUString >, PropertyNames > {};
}
//------------------------------------------------------------------------------
sal_Bool SvtCTLOptions_Impl::IsReadOnly(SvtCTLOptions::EOption eOption) const
@@ -128,16 +128,16 @@ SvtCTLOptions_Impl::SvtCTLOptions_Impl() :
utl::ConfigItem( ASCII_STR("Office.Common/I18N/CTL") ),
- m_bIsLoaded ( sal_False ),
- m_bCTLFontEnabled ( sal_False ),
- m_bCTLSequenceChecking ( sal_False ),
- m_bCTLRestricted ( sal_False ),
- m_eCTLCursorMovement ( SvtCTLOptions::MOVEMENT_LOGICAL ),
+ m_bIsLoaded ( sal_False ),
+ m_bCTLFontEnabled ( sal_False ),
+ m_bCTLSequenceChecking ( sal_False ),
+ m_bCTLRestricted ( sal_False ),
+ m_eCTLCursorMovement ( SvtCTLOptions::MOVEMENT_LOGICAL ),
m_eCTLTextNumerals ( SvtCTLOptions::NUMERALS_ARABIC ),
m_bROCTLFontEnabled ( CFG_READONLY_DEFAULT ),
m_bROCTLSequenceChecking( CFG_READONLY_DEFAULT ),
- m_bROCTLRestricted ( CFG_READONLY_DEFAULT ),
+ m_bROCTLRestricted ( CFG_READONLY_DEFAULT ),
m_bROCTLCursorMovement ( CFG_READONLY_DEFAULT ),
m_bROCTLTextNumerals ( CFG_READONLY_DEFAULT )
{
@@ -235,9 +235,9 @@ void SvtCTLOptions_Impl::Commit()
pNames[nRealCount] = pOrgNames[nProp];
pValues[nRealCount].setValue( &m_bCTLTypeAndReplace, rType );
++nRealCount;
- }
+ }
}
- break;
+ break;
}
}
aNames.realloc(nRealCount);
@@ -377,8 +377,8 @@ void SvtCTLOptions_Impl::SetCTLTextNumerals( SvtCTLOptions::TextNumerals _eNumer
}
// global ----------------------------------------------------------------
-static SvtCTLOptions_Impl* pCTLOptions = NULL;
-static sal_Int32 nCTLRefCount = 0;
+static SvtCTLOptions_Impl* pCTLOptions = NULL;
+static sal_Int32 nCTLRefCount = 0;
namespace { struct CTLMutex : public rtl::Static< osl::Mutex, CTLMutex > {}; }
// class SvtCTLOptions --------------------------------------------------
diff --git a/svl/source/config/itemholder2.cxx b/svl/source/config/itemholder2.cxx
index 17e9724e8a87..451ce7a10880 100644
--- a/svl/source/config/itemholder2.cxx
+++ b/svl/source/config/itemholder2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/config/itemholder2.hxx b/svl/source/config/itemholder2.hxx
index 884536d89bb0..25a41788ba84 100644
--- a/svl/source/config/itemholder2.hxx
+++ b/svl/source/config/itemholder2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/config/languageoptions.cxx b/svl/source/config/languageoptions.cxx
index 5d9cb63c6fef..e289ae8205a8 100644
--- a/svl/source/config/languageoptions.cxx
+++ b/svl/source/config/languageoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,7 +64,7 @@ SvtLanguageOptions::~SvtLanguageOptions()
m_pCTLOptions->RemoveListener(this);
m_pCJKOptions->RemoveListener(this);
-
+
delete m_pCJKOptions;
delete m_pCTLOptions;
}
@@ -232,7 +232,7 @@ sal_uInt16 SvtLanguageOptions::GetScriptTypeOfLanguage( sal_uInt16 nLang )
/*-- 27.10.2005 08:18:01---------------------------------------------------
-----------------------------------------------------------------------*/
-SvtSystemLanguageOptions::SvtSystemLanguageOptions() :
+SvtSystemLanguageOptions::SvtSystemLanguageOptions() :
utl::ConfigItem( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("System/L10N") ))
{
uno::Sequence< rtl::OUString > aPropertyNames(1);
diff --git a/svl/source/config/srchcfg.cxx b/svl/source/config/srchcfg.cxx
index 533f83cae1c6..3869721aa7b3 100644
--- a/svl/source/config/srchcfg.cxx
+++ b/svl/source/config/srchcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -105,9 +105,9 @@ SvxSearchConfig::SvxSearchConfig(sal_Bool bEnableNotify) :
pImpl(new SvxSearchConfig_Impl)
{
if(bEnableNotify)
- {
+ {
//request notifications from the node
- Sequence<OUString> aEnable(1);
+ Sequence<OUString> aEnable(1);
EnableNotification(aEnable);
}
Load();
diff --git a/svl/source/filepicker/pickerhelper.cxx b/svl/source/filepicker/pickerhelper.cxx
index 6b6bf96a54a6..e217c2994378 100644
--- a/svl/source/filepicker/pickerhelper.cxx
+++ b/svl/source/filepicker/pickerhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,16 +51,16 @@ namespace svt
try
{
// does the dialog haver a help URL property?
- Reference< css::beans::XPropertySet > xDialogProps( _mxFileDlg, css::uno::UNO_QUERY );
- Reference< css::beans::XPropertySetInfo > xInfo;
+ Reference< css::beans::XPropertySet > xDialogProps( _mxFileDlg, css::uno::UNO_QUERY );
+ Reference< css::beans::XPropertySetInfo > xInfo;
if( xDialogProps.is() )
xInfo = xDialogProps->getPropertySetInfo( );
- const OUString sHelpURLPropertyName( RTL_CONSTASCII_USTRINGPARAM( "HelpURL" ) );
+ const OUString sHelpURLPropertyName( RTL_CONSTASCII_USTRINGPARAM( "HelpURL" ) );
if( xInfo.is() && xInfo->hasPropertyByName( sHelpURLPropertyName ) )
- { // yep
- OUString sId( RTL_CONSTASCII_USTRINGPARAM( "HID:" ) );
+ { // yep
+ OUString sId( RTL_CONSTASCII_USTRINGPARAM( "HID:" ) );
sId += OUString::valueOf( _nHelpId );
xDialogProps->setPropertyValue( sHelpURLPropertyName, css::uno::makeAny( sId ) );
}
@@ -77,16 +77,16 @@ namespace svt
try
{
// does the dialog haver a help URL property?
- Reference< css::beans::XPropertySet > xDialogProps( _mxFileDlg, css::uno::UNO_QUERY );
- Reference< css::beans::XPropertySetInfo > xInfo;
+ Reference< css::beans::XPropertySet > xDialogProps( _mxFileDlg, css::uno::UNO_QUERY );
+ Reference< css::beans::XPropertySetInfo > xInfo;
if( xDialogProps.is() )
xInfo = xDialogProps->getPropertySetInfo( );
- const OUString sHelpURLPropertyName( RTL_CONSTASCII_USTRINGPARAM( "HelpURL" ) );
+ const OUString sHelpURLPropertyName( RTL_CONSTASCII_USTRINGPARAM( "HelpURL" ) );
if( xInfo.is() && xInfo->hasPropertyByName( sHelpURLPropertyName ) )
- { // yep
- OUString sId( RTL_CONSTASCII_USTRINGPARAM( "HID:" ) );
+ { // yep
+ OUString sId( RTL_CONSTASCII_USTRINGPARAM( "HID:" ) );
sId += OUString::valueOf( _nHelpId );
xDialogProps->setPropertyValue( sHelpURLPropertyName, css::uno::makeAny( sId ) );
}
diff --git a/svl/source/filepicker/pickerhistory.cxx b/svl/source/filepicker/pickerhistory.cxx
index 0ccbaa94d6bc..d4cc79dbb125 100644
--- a/svl/source/filepicker/pickerhistory.cxx
+++ b/svl/source/filepicker/pickerhistory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@ namespace svt
namespace
{
- typedef ::com::sun::star::uno::WeakReference< XInterface > InterfaceAdapter;
- typedef ::std::vector< InterfaceAdapter > InterfaceArray;
+ typedef ::com::sun::star::uno::WeakReference< XInterface > InterfaceAdapter;
+ typedef ::std::vector< InterfaceAdapter > InterfaceArray;
// ----------------------------------------------------------------
InterfaceArray& getFolderPickerHistory()
@@ -68,7 +68,7 @@ namespace svt
// first, check which of the objects we hold in s_aHistory can be removed
{
InterfaceArray aCleanedHistory;
- for ( InterfaceArray::const_iterator aLoop = _rHistory.begin();
+ for ( InterfaceArray::const_iterator aLoop = _rHistory.begin();
aLoop != _rHistory.end();
++aLoop
)
@@ -97,7 +97,7 @@ namespace svt
//=============================================================
// search the first picker which is still alive ...
- for ( InterfaceArray::const_reverse_iterator aLoop = _rHistory.rbegin();
+ for ( InterfaceArray::const_reverse_iterator aLoop = _rHistory.rbegin();
( aLoop != _rHistory.rend() ) && !xTopMostAlive.is();
++aLoop
)
@@ -134,7 +134,7 @@ namespace svt
}
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/source/filerec/filerec.cxx b/svl/source/filerec/filerec.cxx
index c11c7eae8e7b..3d6a08c011ff 100644
--- a/svl/source/filerec/filerec.cxx
+++ b/svl/source/filerec/filerec.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@ SV_IMPL_VARARR( SfxUINT32s, UINT32 );
//========================================================================
-/* Die folgenden Makros extrahieren Teilbereiche aus einem UINT32 Wert.
+/* Die folgenden Makros extrahieren Teilbereiche aus einem UINT32 Wert.
Diese UINT32-Werte werden anstelle der einzelnen Werte gestreamt,
um Calls zu sparen.
*/
@@ -53,7 +53,7 @@ SV_IMPL_VARARR( SfxUINT32s, UINT32 );
//-------------------------------------------------------------------------
-/* Die folgenden Makros setzen Teilbereiche zu einem UINT32 Wert zusammen.
+/* Die folgenden Makros setzen Teilbereiche zu einem UINT32 Wert zusammen.
Diese UINT32-Werte werden anstelle der einzelnen Werte gestreamt,
um Calls zu sparen.
*/
@@ -86,7 +86,7 @@ UINT32 SfxMiniRecordWriter::Close
*/
)
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode schlie\st den Record. Dabei wird haupts"achlich der
Header geschrieben.
@@ -96,7 +96,7 @@ UINT32 SfxMiniRecordWriter::Close
[R"uckgabewert]
- UINT32 != 0
+ UINT32 != 0
Position im Stream, die direkt hinter dem Record liegt.
'bSeekToEndOfRecord==TRUE'
=> R"uckgabewert == aktuelle Stream-Position nach Aufruf
@@ -148,13 +148,13 @@ UINT32 SfxMiniRecordWriter::Close
USHORT SfxMiniRecordReader::ScanRecordType
(
- SvStream* pStream /* <SvStream> an dessen aktueller Position
+ SvStream* pStream /* <SvStream> an dessen aktueller Position
ein Record liegt, dessen Typ erkannt werden
soll.
*/
)
-/* [Beschreibung]
+/* [Beschreibung]
Mit dieser statischen Methode kann ermittelt werden, ob sich an der
aktuellen Position in einem Stream ein Record befindet, und der Typ
@@ -176,7 +176,7 @@ USHORT SfxMiniRecordReader::ScanRecordType
[R"uckgabewert]
- USHORT SFX_REC_TYPE_EOR
+ USHORT SFX_REC_TYPE_EOR
An der aktuellen Position des Streams
steht eine End-Of-Records-Kennung.
@@ -263,7 +263,7 @@ USHORT SfxMiniRecordReader::ScanRecordType
bool SfxMiniRecordReader::SetHeader_Impl( UINT32 nHeader )
-/* [Beschreibung]
+/* [Beschreibung]
Interne Methode zum nachtr"aglichen Verarbeiten eines extern gelesenen
Headers. Falls der Header eine End-Of-Records-Kennung darstellt,
@@ -292,13 +292,13 @@ bool SfxMiniRecordReader::SetHeader_Impl( UINT32 nHeader )
SfxMiniRecordReader::SfxMiniRecordReader
(
- SvStream* pStream /* <SvStream>, an dessen aktueller
+ SvStream* pStream /* <SvStream>, an dessen aktueller
Position sich ein <SfxMiniRecord>
befindet.
*/
)
-/* [Beschreibung]
+/* [Beschreibung]
Dieser Ctor liest den Header eines <SfxMiniRecord> ab der aktuellen
Position von 'pStream'. Da grunds"atzlich fast 4-Byte Kombination ein
@@ -309,7 +309,7 @@ SfxMiniRecordReader::SfxMiniRecordReader
dann au\serdem unver"andert ist.
*/
-: _pStream( pStream ),
+: _pStream( pStream ),
_bSkipped( FALSE )
{
// Header einlesen
@@ -334,14 +334,14 @@ SfxMiniRecordReader::SfxMiniRecordReader
SfxMiniRecordReader::SfxMiniRecordReader
(
- SvStream* pStream, /* <SvStream>, an dessen aktueller
+ SvStream* pStream, /* <SvStream>, an dessen aktueller
Position sich ein <SfxMiniRecord>
befindet.
*/
- BYTE nTag // Pre-Tag des gew"unschten Records
+ BYTE nTag // Pre-Tag des gew"unschten Records
)
-/* [Beschreibung]
+/* [Beschreibung]
Dieser Ctor interpretiert 'pStream' ab der aktuellen Position als
eine l"uckenlose Folge von, von dieser Klassen-Gruppe interpretierbaren,
@@ -424,18 +424,18 @@ SfxMiniRecordReader::SfxMiniRecordReader
SfxSingleRecordWriter::SfxSingleRecordWriter
(
- BYTE nRecordType, // f"ur Subklassen
- SvStream* pStream, // Stream, in dem der Record angelegt wird
- UINT16 nContentTag, // Inhalts-Art-Kennung
- BYTE nContentVer // Inhalts-Versions-Kennung
+ BYTE nRecordType, // f"ur Subklassen
+ SvStream* pStream, // Stream, in dem der Record angelegt wird
+ UINT16 nContentTag, // Inhalts-Art-Kennung
+ BYTE nContentVer // Inhalts-Versions-Kennung
)
-/* [Beschreibung]
+/* [Beschreibung]
Interner Ctor f"ur Subklassen.
*/
-: SfxMiniRecordWriter( pStream, SFX_REC_PRETAG_EXT )
+: SfxMiniRecordWriter( pStream, SFX_REC_PRETAG_EXT )
{
// Erweiterten Header hiner den des SfxMiniRec schreiben
*pStream << SFX_REC_HEADER(nRecordType, nContentTag, nContentVer);
@@ -445,19 +445,19 @@ SfxSingleRecordWriter::SfxSingleRecordWriter
SfxSingleRecordWriter::SfxSingleRecordWriter
(
- SvStream* pStream, // Stream, in dem der Record angelegt wird
- UINT16 nContentTag, // Inhalts-Art-Kennung
- BYTE nContentVer // Inhalts-Versions-Kennung
+ SvStream* pStream, // Stream, in dem der Record angelegt wird
+ UINT16 nContentTag, // Inhalts-Art-Kennung
+ BYTE nContentVer // Inhalts-Versions-Kennung
)
-/* [Beschreibung]
+/* [Beschreibung]
Legt in 'pStream' einen 'SfxSingleRecord' an, dessen Content-Gr"o\se
nicht bekannt ist, sondern nach dam Streamen des Contents errechnet
werden soll.
*/
-: SfxMiniRecordWriter( pStream, SFX_REC_PRETAG_EXT )
+: SfxMiniRecordWriter( pStream, SFX_REC_PRETAG_EXT )
{
// Erweiterten Header hiner den des SfxMiniRec schreiben
*pStream << SFX_REC_HEADER( SFX_REC_TYPE_SINGLE, nContentTag, nContentVer);
@@ -467,10 +467,10 @@ SfxSingleRecordWriter::SfxSingleRecordWriter
SfxSingleRecordWriter::SfxSingleRecordWriter
(
- SvStream* pStream, // Stream, in dem der Record angelegt wird
- UINT16 nContentTag, // Inhalts-Art-Kennung
- BYTE nContentVer, // Inhalts-Versions-Kennung
- UINT32 nContentSize // Gr"o\se des Inhalts in Bytes
+ SvStream* pStream, // Stream, in dem der Record angelegt wird
+ UINT16 nContentTag, // Inhalts-Art-Kennung
+ BYTE nContentVer, // Inhalts-Versions-Kennung
+ UINT32 nContentSize // Gr"o\se des Inhalts in Bytes
)
/* [Beschreibung]
@@ -479,7 +479,7 @@ SfxSingleRecordWriter::SfxSingleRecordWriter
von vornherein bekannt ist.
*/
-: SfxMiniRecordWriter( pStream, SFX_REC_PRETAG_EXT,
+: SfxMiniRecordWriter( pStream, SFX_REC_PRETAG_EXT,
nContentSize + SFX_REC_HEADERSIZE_SINGLE )
{
// Erweiterten Header hinter den des SfxMiniRec schreiben
@@ -523,7 +523,7 @@ inline bool SfxSingleRecordReader::ReadHeader_Impl( USHORT nTypes )
//-------------------------------------------------------------------------
SfxSingleRecordReader::SfxSingleRecordReader( SvStream *pStream )
-: SfxMiniRecordReader()
+: SfxMiniRecordReader()
{
// Startposition merken, um im Fehlerfall zur"uck-seeken zu k"onnen
#ifdef DBG_UTIL
@@ -564,11 +564,11 @@ SfxSingleRecordReader::SfxSingleRecordReader( SvStream *pStream, USHORT nTag )
bool SfxSingleRecordReader::FindHeader_Impl
(
- UINT16 nTypes, // arithm. Veroderung erlaubter Record-Typen
- UINT16 nTag // zu findende Record-Art-Kennung
+ UINT16 nTypes, // arithm. Veroderung erlaubter Record-Typen
+ UINT16 nTag // zu findende Record-Art-Kennung
)
-/* [Beschreibung]
+/* [Beschreibung]
Interne Methode zum lesen des Headers des ersten Record, der einem
der Typen in 'nTypes' entspricht und mit der Art-Kennung 'nTag'
@@ -630,11 +630,11 @@ bool SfxSingleRecordReader::FindHeader_Impl
SfxMultiFixRecordWriter::SfxMultiFixRecordWriter
(
- BYTE nRecordType, // Subklassen Record-Kennung
- SvStream* pStream, // Stream, in dem der Record angelegt wird
- UINT16 nContentTag, // Content-Art-Kennung
- BYTE nContentVer, // Content-Versions-Kennung
- UINT32 // Gr"o\se jedes einzelnen Contents in Bytes
+ BYTE nRecordType, // Subklassen Record-Kennung
+ SvStream* pStream, // Stream, in dem der Record angelegt wird
+ UINT16 nContentTag, // Content-Art-Kennung
+ BYTE nContentVer, // Content-Versions-Kennung
+ UINT32 // Gr"o\se jedes einzelnen Contents in Bytes
)
/* [Beschreibung]
@@ -653,10 +653,10 @@ SfxMultiFixRecordWriter::SfxMultiFixRecordWriter
SfxMultiFixRecordWriter::SfxMultiFixRecordWriter
(
- SvStream* pStream, // Stream, in dem der Record angelegt wird
- UINT16 nContentTag, // Content-Art-Kennung
- BYTE nContentVer, // Content-Versions-Kennung
- UINT32 // Gr"o\se jedes einzelnen Contents in Bytes
+ SvStream* pStream, // Stream, in dem der Record angelegt wird
+ UINT16 nContentTag, // Content-Art-Kennung
+ BYTE nContentVer, // Content-Versions-Kennung
+ UINT32 // Gr"o\se jedes einzelnen Contents in Bytes
)
/* [Beschreibung]
@@ -677,7 +677,7 @@ SfxMultiFixRecordWriter::SfxMultiFixRecordWriter
UINT32 SfxMultiFixRecordWriter::Close( bool bSeekToEndOfRec )
-// siehe <SfxMiniRecordWriter>
+// siehe <SfxMiniRecordWriter>
{
// Header noch nicht geschrieben?
@@ -704,10 +704,10 @@ UINT32 SfxMultiFixRecordWriter::Close( bool bSeekToEndOfRec )
SfxMultiVarRecordWriter::SfxMultiVarRecordWriter
(
- BYTE nRecordType, // Record-Kennung der Subklasse
+ BYTE nRecordType, // Record-Kennung der Subklasse
SvStream* pStream, // Stream, in dem der Record angelegt wird
- UINT16 nRecordTag, // Gesamt-Art-Kennung
- BYTE nRecordVer // Gesamt-Versions-Kennung
+ UINT16 nRecordTag, // Gesamt-Art-Kennung
+ BYTE nRecordVer // Gesamt-Versions-Kennung
)
/* [Beschreibung]
@@ -725,8 +725,8 @@ SfxMultiVarRecordWriter::SfxMultiVarRecordWriter
SfxMultiVarRecordWriter::SfxMultiVarRecordWriter
(
SvStream* pStream, // Stream, in dem der Record angelegt wird
- UINT16 nRecordTag, // Gesamt-Art-Kennung
- BYTE nRecordVer // Gesamt-Versions-Kennung
+ UINT16 nRecordTag, // Gesamt-Art-Kennung
+ BYTE nRecordVer // Gesamt-Versions-Kennung
)
/* [Beschreibung]
@@ -752,7 +752,7 @@ SfxMultiVarRecordWriter::SfxMultiVarRecordWriter
SfxMultiVarRecordWriter::~SfxMultiVarRecordWriter()
-/* [Beschreibung]
+/* [Beschreibung]
Der Dtor der Klasse <SfxMultiVarRecordWriter> schlie\st den Record
automatisch, falls <SfxMultiVarRecordWriter::Close()> nicht bereits
@@ -769,7 +769,7 @@ SfxMultiVarRecordWriter::~SfxMultiVarRecordWriter()
void SfxMultiVarRecordWriter::FlushContent_Impl()
-/* [Beschreibung]
+/* [Beschreibung]
Interne Methode zum Abschlie\sen eines einzelnen Contents.
*/
@@ -848,11 +848,11 @@ UINT32 SfxMultiVarRecordWriter::Close( bool bSeekToEndOfRec )
void SfxMultiMixRecordWriter::NewContent
(
- UINT16 nContentTag, // Kennung f"ur die Art des Contents
- BYTE nContentVer // Kennung f"ur die Version des Contents
+ UINT16 nContentTag, // Kennung f"ur die Art des Contents
+ BYTE nContentVer // Kennung f"ur die Version des Contents
)
-/* [Beschreibung]
+/* [Beschreibung]
Mit dieser Methode wird in den Record ein neuer Content eingef"ugt
und dessen Content-Tag sowie dessen Content-Version angegeben. Jeder,
@@ -916,7 +916,7 @@ bool SfxMultiRecordReader::ReadHeader_Impl()
//-------------------------------------------------------------------------
SfxMultiRecordReader::SfxMultiRecordReader( SvStream *pStream )
-: _pContentOfs( NULL ), _nContentNo(0)
+: _pContentOfs( NULL ), _nContentNo(0)
{
// Position im Stream merken, um im Fehlerfall zur"uck-seeken zu k"onnen
_nStartPos = pStream->Tell();
@@ -936,7 +936,7 @@ SfxMultiRecordReader::SfxMultiRecordReader( SvStream *pStream )
//-------------------------------------------------------------------------
SfxMultiRecordReader::SfxMultiRecordReader( SvStream *pStream, UINT16 nTag )
-: _nContentNo(0)
+: _nContentNo(0)
{
// Position im Stream merken, um im Fehlerfall zur"uck-seeken zu k"onnen
_nStartPos = pStream->Tell();
@@ -966,7 +966,7 @@ SfxMultiRecordReader::~SfxMultiRecordReader()
bool SfxMultiRecordReader::GetContent()
-/* [Beschreibung]
+/* [Beschreibung]
Positioniert den Stream an den Anfang des n"chsten bzw. beim 1. Aufruf
auf den Anfang des ersten Contents im Record und liest ggf. dessen
@@ -991,7 +991,7 @@ bool SfxMultiRecordReader::GetContent()
// #99366#: correct stream pos in every case;
// the if clause was added by MT a long time ago,
- // maybe to 'repair' other corrupt documents; but this
+ // maybe to 'repair' other corrupt documents; but this
// gives errors when writing with 5.1 and reading with current
// versions, so we decided to remove the if clause (KA-05/17/2002)
// if ( nNewPos > _pStream->Tell() )
diff --git a/svl/source/fsstor/fsfactory.cxx b/svl/source/fsstor/fsfactory.cxx
index 6da26ece8381..0210e6be909e 100644
--- a/svl/source/fsstor/fsfactory.cxx
+++ b/svl/source/fsstor/fsfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,12 +83,12 @@ uno::Reference< uno::XInterface > SAL_CALL FSStorageFactory::createInstance()
if ( !aTempURL.getLength() )
throw uno::RuntimeException(); // TODO: can not create tempfile
- ::ucbhelper::Content aResultContent(
+ ::ucbhelper::Content aResultContent(
aTempURL, uno::Reference< ucb::XCommandEnvironment >() );
- return uno::Reference< uno::XInterface >(
- static_cast< OWeakObject* >(
- new FSStorage( aResultContent,
+ return uno::Reference< uno::XInterface >(
+ static_cast< OWeakObject* >(
+ new FSStorage( aResultContent,
embed::ElementModes::READWRITE,
uno::Sequence< beans::PropertyValue >(),
m_xFactory ) ),
@@ -148,7 +148,7 @@ uno::Reference< uno::XInterface > SAL_CALL FSStorageFactory::createInstanceWithA
// retrieve mediadescriptor and set storage properties
uno::Sequence< beans::PropertyValue > aDescr;
uno::Sequence< beans::PropertyValue > aPropsToSet;
-
+
if ( nArgNum >= 3 )
{
if( aArguments[2] >>= aDescr )
@@ -192,14 +192,14 @@ uno::Reference< uno::XInterface > SAL_CALL FSStorageFactory::createInstanceWithA
else if ( !::utl::UCBContentHelper::IsFolder( aURL ) )
throw io::IOException(); // there is no such folder
- ::ucbhelper::Content aResultContent(
+ ::ucbhelper::Content aResultContent(
aURL, uno::Reference< ucb::XCommandEnvironment >() );
// create storage based on source
- return uno::Reference< uno::XInterface >(
- static_cast< OWeakObject* >( new FSStorage( aResultContent,
- nStorageMode,
- aPropsToSet,
+ return uno::Reference< uno::XInterface >(
+ static_cast< OWeakObject* >( new FSStorage( aResultContent,
+ nStorageMode,
+ aPropsToSet,
m_xFactory ) ),
uno::UNO_QUERY );
}
@@ -251,7 +251,7 @@ SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo (
uno::Reference< registry::XRegistryKey > xNewKey;
xNewKey = xRegistryKey->createKey(
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
FSStorageFactory::impl_staticGetImplementationName() +
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES")));
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index 628bb7563759..d310916488c4 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,16 +100,16 @@ sal_Bool isLocalFile_Impl( ::rtl::OUString aURL )
struct FSStorage_Impl
{
::rtl::OUString m_aURL;
-
+
::ucbhelper::Content* m_pContent;
sal_Int32 m_nMode;
-
+
::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners
::cppu::OTypeCollection* m_pTypeCollection;
uno::Reference< lang::XMultiServiceFactory > m_xFactory;
-
+
FSStorage_Impl( const ::rtl::OUString& aURL, sal_Int32 nMode, uno::Reference< lang::XMultiServiceFactory > xFactory )
: m_aURL( aURL )
, m_pContent( NULL )
@@ -192,7 +192,7 @@ sal_Bool FSStorage::MakeFolderNoUI( const String& rFolder, sal_Bool )
uno::Reference< ucb::XCommandEnvironment >(),
aParent ) )
return ::utl::UCBContentHelper::MakeFolder( aParent, aTitle, aResultContent, sal_False );
-
+
return sal_False;
}
@@ -236,7 +236,7 @@ void FSStorage::CopyStreamToSubStream( const ::rtl::OUString& aSourceURL,
embed::ElementModes::READWRITE | embed::ElementModes::TRUNCATE );
if ( !xSubStream.is() )
throw uno::RuntimeException();
-
+
uno::Reference< io::XOutputStream > xDestOutput = xSubStream->getOutputStream();
if ( !xDestOutput.is() )
throw uno::RuntimeException();
@@ -271,7 +271,7 @@ void FSStorage::CopyContentToStorage_Impl( ::ucbhelper::Content* pContent, const
{
::rtl::OUString aSourceURL( xRow->getString( 1 ) );
sal_Bool bIsFolder( xRow->getBoolean(2) );
-
+
// TODO/LATER: not sure whether the entry name must be encoded
::rtl::OUString aNewEntryName( INetURLObject( aSourceURL ).getName( INetURLObject::LAST_SEGMENT,
true,
@@ -282,7 +282,7 @@ void FSStorage::CopyContentToStorage_Impl( ::ucbhelper::Content* pContent, const
embed::ElementModes::READWRITE );
if ( !xSubStorage.is() )
throw uno::RuntimeException();
-
+
uno::Reference< ucb::XCommandEnvironment > xDummyEnv;
::ucbhelper::Content aSourceContent( aSourceURL, xDummyEnv );
CopyContentToStorage_Impl( &aSourceContent, xSubStorage );
@@ -308,7 +308,7 @@ void FSStorage::CopyContentToStorage_Impl( ::ucbhelper::Content* pContent, const
}
//____________________________________________________________________________________________________
-// XInterface
+// XInterface
//____________________________________________________________________________________________________
//-----------------------------------------------
@@ -317,14 +317,14 @@ uno::Any SAL_CALL FSStorage::queryInterface( const uno::Type& rType )
{
uno::Any aReturn;
aReturn <<= ::cppu::queryInterface
- ( rType
- , static_cast<lang::XTypeProvider*> ( this )
- , static_cast<embed::XStorage*> ( this )
- , static_cast<embed::XHierarchicalStorageAccess*> ( this )
- , static_cast<container::XNameAccess*> ( this )
- , static_cast<container::XElementAccess*> ( this )
- , static_cast<lang::XComponent*> ( this )
- , static_cast<beans::XPropertySet*> ( this ) );
+ ( rType
+ , static_cast<lang::XTypeProvider*> ( this )
+ , static_cast<embed::XStorage*> ( this )
+ , static_cast<embed::XHierarchicalStorageAccess*> ( this )
+ , static_cast<container::XNameAccess*> ( this )
+ , static_cast<container::XElementAccess*> ( this )
+ , static_cast<lang::XComponent*> ( this )
+ , static_cast<beans::XPropertySet*> ( this ) );
if ( aReturn.hasValue() == sal_True )
return aReturn ;
@@ -345,7 +345,7 @@ void SAL_CALL FSStorage::release() throw()
}
//____________________________________________________________________________________________________
-// XTypeProvider
+// XTypeProvider
//____________________________________________________________________________________________________
//-----------------------------------------------
@@ -359,10 +359,10 @@ uno::Sequence< uno::Type > SAL_CALL FSStorage::getTypes()
if ( m_pImpl->m_pTypeCollection == NULL )
{
m_pImpl->m_pTypeCollection = new ::cppu::OTypeCollection
- ( ::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
- , ::getCppuType( ( const uno::Reference< embed::XStorage >* )NULL )
- , ::getCppuType( ( const uno::Reference< embed::XHierarchicalStorageAccess >* )NULL )
- , ::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
+ ( ::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
+ , ::getCppuType( ( const uno::Reference< embed::XStorage >* )NULL )
+ , ::getCppuType( ( const uno::Reference< embed::XHierarchicalStorageAccess >* )NULL )
+ , ::getCppuType( ( const uno::Reference< beans::XPropertySet >* )NULL ) );
}
}
@@ -391,7 +391,7 @@ uno::Sequence< sal_Int8 > SAL_CALL FSStorage::getImplementationId()
}
//____________________________________________________________________________________________________
-// XStorage
+// XStorage
//____________________________________________________________________________________________________
//-----------------------------------------------
@@ -484,7 +484,7 @@ uno::Reference< io::XStream > SAL_CALL FSStorage::openStreamElement(
if ( isLocalFile_Impl( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
{
uno::Reference< ucb::XSimpleFileAccess > xSimpleFileAccess(
- m_pImpl->m_xFactory->createInstance(
+ m_pImpl->m_xFactory->createInstance(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.SimpleFileAccess" ) ) ),
uno::UNO_QUERY_THROW );
xResult = xSimpleFileAccess->openFileReadWrite( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) );
@@ -502,10 +502,10 @@ uno::Reference< io::XStream > SAL_CALL FSStorage::openStreamElement(
delete pStream;
}
}
-
+
if ( !xResult.is() )
throw io::IOException();
-
+
if ( ( nOpenMode & embed::ElementModes::TRUNCATE ) )
{
uno::Reference< io::XTruncate > xTrunc( xResult->getOutputStream(), uno::UNO_QUERY_THROW );
@@ -517,7 +517,7 @@ uno::Reference< io::XStream > SAL_CALL FSStorage::openStreamElement(
if ( ( nOpenMode & embed::ElementModes::TRUNCATE )
|| !::utl::UCBContentHelper::IsDocument( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
throw io::IOException(); // TODO: access denied
-
+
::ucbhelper::Content aResultContent( aFileURL.GetMainURL( INetURLObject::NO_DECODE ), xDummyEnv );
uno::Reference< io::XInputStream > xInStream = aResultContent.openStream();
xResult = static_cast< io::XStream* >( new OFSInputStreamContainer( xInStream ) );
@@ -559,7 +559,7 @@ uno::Reference< io::XStream > SAL_CALL FSStorage::openStreamElement(
}
//-----------------------------------------------
-uno::Reference< io::XStream > SAL_CALL FSStorage::openEncryptedStreamElement(
+uno::Reference< io::XStream > SAL_CALL FSStorage::openEncryptedStreamElement(
const ::rtl::OUString&, sal_Int32, const ::rtl::OUString& )
throw ( embed::InvalidStorageException,
lang::IllegalArgumentException,
@@ -629,8 +629,8 @@ uno::Reference< embed::XStorage > SAL_CALL FSStorage::openStorageElement(
throw io::IOException(); // there is no such folder
::ucbhelper::Content aResultContent( aFolderURL.GetMainURL( INetURLObject::NO_DECODE ), xDummyEnv );
- xResult = uno::Reference< embed::XStorage >(
- static_cast< OWeakObject* >( new FSStorage( aResultContent,
+ xResult = uno::Reference< embed::XStorage >(
+ static_cast< OWeakObject* >( new FSStorage( aResultContent,
nStorageMode,
uno::Sequence< beans::PropertyValue >(),
m_pImpl->m_xFactory ) ),
@@ -939,7 +939,7 @@ void SAL_CALL FSStorage::renameElement( const ::rtl::OUString& aElementName, con
}
//-----------------------------------------------
-void SAL_CALL FSStorage::copyElementTo( const ::rtl::OUString& aElementName,
+void SAL_CALL FSStorage::copyElementTo( const ::rtl::OUString& aElementName,
const uno::Reference< embed::XStorage >& xDest,
const ::rtl::OUString& aNewName )
throw ( embed::InvalidStorageException,
@@ -976,7 +976,7 @@ void SAL_CALL FSStorage::copyElementTo( const ::rtl::OUString& aElementName,
uno::Reference< embed::XStorage > xDestSubStor(
xDest->openStorageElement( aNewName, embed::ElementModes::READWRITE ),
uno::UNO_QUERY_THROW );
-
+
CopyContentToStorage_Impl( &aSourceContent, xDestSubStor );
}
else if ( ::utl::UCBContentHelper::IsDocument( aOwnURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
@@ -1024,7 +1024,7 @@ void SAL_CALL FSStorage::copyElementTo( const ::rtl::OUString& aElementName,
}
//-----------------------------------------------
-void SAL_CALL FSStorage::moveElementTo( const ::rtl::OUString& aElementName,
+void SAL_CALL FSStorage::moveElementTo( const ::rtl::OUString& aElementName,
const uno::Reference< embed::XStorage >& xDest,
const ::rtl::OUString& aNewName )
throw ( embed::InvalidStorageException,
@@ -1045,7 +1045,7 @@ void SAL_CALL FSStorage::moveElementTo( const ::rtl::OUString& aElementName,
}
//____________________________________________________________________________________________________
-// XNameAccess
+// XNameAccess
//____________________________________________________________________________________________________
//-----------------------------------------------
@@ -1234,7 +1234,7 @@ sal_Bool SAL_CALL FSStorage::hasElements()
if ( !GetContent() )
throw io::IOException(); // TODO: error handling
-
+
uno::Sequence< ::rtl::OUString > aProps( 1 );
aProps[0] = ::rtl::OUString::createFromAscii( "TargetURL" );
::ucbhelper::ResultSetInclude eInclude = ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS;
@@ -1252,7 +1252,7 @@ sal_Bool SAL_CALL FSStorage::hasElements()
//____________________________________________________________________________________________________
-// XDisposable
+// XDisposable
//____________________________________________________________________________________________________
//-----------------------------------------------
@@ -1305,7 +1305,7 @@ void SAL_CALL FSStorage::removeEventListener(
}
//____________________________________________________________________________________________________
-// XPropertySet
+// XPropertySet
//____________________________________________________________________________________________________
//-----------------------------------------------
@@ -1430,7 +1430,7 @@ void SAL_CALL FSStorage::removeVetoableChangeListener(
}
//____________________________________________________________________________________________________
-// XHierarchicalStorageAccess
+// XHierarchicalStorageAccess
//____________________________________________________________________________________________________
//-----------------------------------------------
uno::Reference< embed::XExtendedStorageStream > SAL_CALL FSStorage::openStreamElementByHierarchicalName( const ::rtl::OUString& sStreamPath, ::sal_Int32 nOpenMode )
@@ -1476,7 +1476,7 @@ uno::Reference< embed::XExtendedStorageStream > SAL_CALL FSStorage::openStreamEl
if ( isLocalFile_Impl( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
{
uno::Reference< ucb::XSimpleFileAccess > xSimpleFileAccess(
- m_pImpl->m_xFactory->createInstance(
+ m_pImpl->m_xFactory->createInstance(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.ucb.SimpleFileAccess" ) ) ),
uno::UNO_QUERY_THROW );
uno::Reference< io::XStream > xStream =
@@ -1501,10 +1501,10 @@ uno::Reference< embed::XExtendedStorageStream > SAL_CALL FSStorage::openStreamEl
delete pStream;
}
}
-
+
if ( !xResult.is() )
throw io::IOException();
-
+
if ( ( nOpenMode & embed::ElementModes::TRUNCATE ) )
{
uno::Reference< io::XTruncate > xTrunc( xResult->getOutputStream(), uno::UNO_QUERY_THROW );
@@ -1516,7 +1516,7 @@ uno::Reference< embed::XExtendedStorageStream > SAL_CALL FSStorage::openStreamEl
if ( ( nOpenMode & embed::ElementModes::TRUNCATE )
|| !::utl::UCBContentHelper::IsDocument( aFileURL.GetMainURL( INetURLObject::NO_DECODE ) ) )
throw io::IOException(); // TODO: access denied
-
+
::ucbhelper::Content aResultContent( aFileURL.GetMainURL( INetURLObject::NO_DECODE ), xDummyEnv );
uno::Reference< io::XInputStream > xInStream = aResultContent.openStream();
xResult = static_cast< io::XStream* >( new OFSInputStreamContainer( xInStream ) );
diff --git a/svl/source/fsstor/fsstorage.hxx b/svl/source/fsstor/fsstorage.hxx
index 7d8a14489453..c2c616f0395f 100644
--- a/svl/source/fsstor/fsstorage.hxx
+++ b/svl/source/fsstor/fsstorage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@
#include <ucbhelper/content.hxx>
struct FSStorage_Impl;
-class FSStorage : public ::com::sun::star::lang::XTypeProvider
+class FSStorage : public ::com::sun::star::lang::XTypeProvider
, public ::com::sun::star::embed::XStorage
, public ::com::sun::star::embed::XHierarchicalStorageAccess
, public ::com::sun::star::beans::XPropertySet
@@ -59,7 +59,7 @@ protected:
public:
- FSStorage( const ::ucbhelper::Content& aContent,
+ FSStorage( const ::ucbhelper::Content& aContent,
sal_Int32 nMode,
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties,
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xFactory );
@@ -78,10 +78,10 @@ public:
static sal_Bool MakeFolderNoUI( const String& rFolder, sal_Bool bNewOnly );
//____________________________________________________________________________________________________
- // XInterface
+ // XInterface
//____________________________________________________________________________________________________
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL acquire() throw();
@@ -89,7 +89,7 @@ public:
virtual void SAL_CALL release() throw();
//____________________________________________________________________________________________________
- // XTypeProvider
+ // XTypeProvider
//____________________________________________________________________________________________________
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
@@ -99,7 +99,7 @@ public:
throw( ::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XStorage
+ // XStorage
//____________________________________________________________________________________________________
virtual void SAL_CALL copyToStorage( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest )
@@ -109,7 +109,7 @@ public:
::com::sun::star::embed::StorageWrappedTargetException,
::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL openStreamElement(
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL openStreamElement(
const ::rtl::OUString& aStreamName, sal_Int32 nOpenMode )
throw ( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
@@ -118,7 +118,7 @@ public:
::com::sun::star::embed::StorageWrappedTargetException,
::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL openEncryptedStreamElement(
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL openEncryptedStreamElement(
const ::rtl::OUString& aStreamName, sal_Int32 nOpenMode, const ::rtl::OUString& aPass )
throw ( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
@@ -128,7 +128,7 @@ public:
::com::sun::star::embed::StorageWrappedTargetException,
::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > SAL_CALL openStorageElement(
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > SAL_CALL openStorageElement(
const ::rtl::OUString& aStorName, sal_Int32 nStorageMode )
throw ( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
@@ -136,7 +136,7 @@ public:
::com::sun::star::embed::StorageWrappedTargetException,
::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL cloneStreamElement(
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL cloneStreamElement(
const ::rtl::OUString& aStreamName )
throw ( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
@@ -145,7 +145,7 @@ public:
::com::sun::star::embed::StorageWrappedTargetException,
::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL cloneEncryptedStreamElement(
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL cloneEncryptedStreamElement(
const ::rtl::OUString& aStreamName, const ::rtl::OUString& aPass )
throw ( ::com::sun::star::embed::InvalidStorageException,
::com::sun::star::lang::IllegalArgumentException,
@@ -201,7 +201,7 @@ public:
::com::sun::star::embed::StorageWrappedTargetException,
::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL copyElementTo( const ::rtl::OUString& aElementName,
+ virtual void SAL_CALL copyElementTo( const ::rtl::OUString& aElementName,
const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest,
const ::rtl::OUString& aNewName )
throw ( ::com::sun::star::embed::InvalidStorageException,
@@ -212,7 +212,7 @@ public:
::com::sun::star::embed::StorageWrappedTargetException,
::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL moveElementTo( const ::rtl::OUString& aElementName,
+ virtual void SAL_CALL moveElementTo( const ::rtl::OUString& aElementName,
const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest,
const ::rtl::OUString& rNewName )
throw ( ::com::sun::star::embed::InvalidStorageException,
@@ -224,7 +224,7 @@ public:
::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XNameAccess
+ // XNameAccess
//____________________________________________________________________________________________________
virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
@@ -245,7 +245,7 @@ public:
throw ( ::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XComponent
+ // XComponent
//____________________________________________________________________________________________________
virtual void SAL_CALL dispose()
@@ -260,7 +260,7 @@ public:
throw ( ::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XPropertySet
+ // XPropertySet
//____________________________________________________________________________________________________
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo()
@@ -278,7 +278,7 @@ public:
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL addPropertyChangeListener(
+ virtual void SAL_CALL addPropertyChangeListener(
const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener )
throw ( ::com::sun::star::beans::UnknownPropertyException,
@@ -305,7 +305,7 @@ public:
::com::sun::star::uno::RuntimeException );
//____________________________________________________________________________________________________
- // XHierarchicalStorageAccess
+ // XHierarchicalStorageAccess
//____________________________________________________________________________________________________
virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XExtendedStorageStream > SAL_CALL openStreamElementByHierarchicalName( const ::rtl::OUString& sStreamPath, ::sal_Int32 nOpenMode )
diff --git a/svl/source/fsstor/oinputstreamcontainer.cxx b/svl/source/fsstor/oinputstreamcontainer.cxx
index dfa81504ba61..7ed51d7866af 100644
--- a/svl/source/fsstor/oinputstreamcontainer.cxx
+++ b/svl/source/fsstor/oinputstreamcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,7 +96,7 @@ uno::Any SAL_CALL OFSInputStreamContainer::queryInterface( const uno::Type& rTyp
throw( uno::RuntimeException )
{
// Attention:
- // Don't use mutex or guard in this method!!! Is a method of XInterface.
+ // Don't use mutex or guard in this method!!! Is a method of XInterface.
uno::Any aReturn;
if ( m_bSeekable )
@@ -130,7 +130,7 @@ void SAL_CALL OFSInputStreamContainer::release()
}
//-----------------------------------------------
-sal_Int32 SAL_CALL OFSInputStreamContainer::readBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
+sal_Int32 SAL_CALL OFSInputStreamContainer::readBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
@@ -148,7 +148,7 @@ sal_Int32 SAL_CALL OFSInputStreamContainer::readBytes( uno::Sequence< sal_Int8 >
}
//-----------------------------------------------
-sal_Int32 SAL_CALL OFSInputStreamContainer::readSomeBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
+sal_Int32 SAL_CALL OFSInputStreamContainer::readSomeBytes( uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
@@ -166,7 +166,7 @@ sal_Int32 SAL_CALL OFSInputStreamContainer::readSomeBytes( uno::Sequence< sal_In
}
//-----------------------------------------------
-void SAL_CALL OFSInputStreamContainer::skipBytes( sal_Int32 nBytesToSkip )
+void SAL_CALL OFSInputStreamContainer::skipBytes( sal_Int32 nBytesToSkip )
throw ( io::NotConnectedException,
io::BufferSizeExceededException,
io::IOException,
@@ -184,7 +184,7 @@ void SAL_CALL OFSInputStreamContainer::skipBytes( sal_Int32 nBytesToSkip )
}
//-----------------------------------------------
-sal_Int32 SAL_CALL OFSInputStreamContainer::available( )
+sal_Int32 SAL_CALL OFSInputStreamContainer::available( )
throw ( io::NotConnectedException,
io::IOException,
uno::RuntimeException )
@@ -201,7 +201,7 @@ sal_Int32 SAL_CALL OFSInputStreamContainer::available( )
}
//-----------------------------------------------
-void SAL_CALL OFSInputStreamContainer::closeInput( )
+void SAL_CALL OFSInputStreamContainer::closeInput( )
throw ( io::NotConnectedException,
io::IOException,
uno::RuntimeException )
@@ -263,7 +263,7 @@ void SAL_CALL OFSInputStreamContainer::seek( sal_Int64 location )
//-----------------------------------------------
sal_Int64 SAL_CALL OFSInputStreamContainer::getPosition()
- throw ( io::IOException,
+ throw ( io::IOException,
uno::RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/svl/source/fsstor/oinputstreamcontainer.hxx b/svl/source/fsstor/oinputstreamcontainer.hxx
index e417b8e874c2..411890efe41b 100644
--- a/svl/source/fsstor/oinputstreamcontainer.hxx
+++ b/svl/source/fsstor/oinputstreamcontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,15 +66,15 @@ public:
virtual void SAL_CALL release() throw();
// XInputStream
- virtual sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
+ virtual sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual sal_Int32 SAL_CALL readSomeBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
+ virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL available( )
+ virtual sal_Int32 SAL_CALL available( )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL closeInput( )
+ virtual void SAL_CALL closeInput( )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
//XStream
diff --git a/svl/source/fsstor/ostreamcontainer.cxx b/svl/source/fsstor/ostreamcontainer.cxx
index 99c00d83b908..f7a30ae7650f 100644
--- a/svl/source/fsstor/ostreamcontainer.cxx
+++ b/svl/source/fsstor/ostreamcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,11 +83,11 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
uno::Any aReturn;
aReturn <<= ::cppu::queryInterface
- ( rType
- , static_cast<lang::XTypeProvider*> ( this )
- , static_cast<io::XStream*> ( this )
- , static_cast<embed::XExtendedStorageStream*> ( this )
- , static_cast<lang::XComponent*> ( this ) );
+ ( rType
+ , static_cast<lang::XTypeProvider*> ( this )
+ , static_cast<io::XStream*> ( this )
+ , static_cast<embed::XExtendedStorageStream*> ( this )
+ , static_cast<lang::XComponent*> ( this ) );
if ( aReturn.hasValue() == sal_True )
return aReturn ;
@@ -95,8 +95,8 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
if ( m_xSeekable.is() )
{
aReturn <<= ::cppu::queryInterface
- ( rType
- , static_cast<io::XSeekable*> ( this ) );
+ ( rType
+ , static_cast<io::XSeekable*> ( this ) );
if ( aReturn.hasValue() == sal_True )
return aReturn ;
@@ -105,8 +105,8 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
if ( m_xInputStream.is() )
{
aReturn <<= ::cppu::queryInterface
- ( rType
- , static_cast<io::XInputStream*> ( this ) );
+ ( rType
+ , static_cast<io::XInputStream*> ( this ) );
if ( aReturn.hasValue() == sal_True )
return aReturn ;
@@ -114,8 +114,8 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
if ( m_xOutputStream.is() )
{
aReturn <<= ::cppu::queryInterface
- ( rType
- , static_cast<io::XOutputStream*> ( this ) );
+ ( rType
+ , static_cast<io::XOutputStream*> ( this ) );
if ( aReturn.hasValue() == sal_True )
return aReturn ;
@@ -123,8 +123,8 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
if ( m_xTruncate.is() )
{
aReturn <<= ::cppu::queryInterface
- ( rType
- , static_cast<io::XTruncate*> ( this ) );
+ ( rType
+ , static_cast<io::XTruncate*> ( this ) );
if ( aReturn.hasValue() == sal_True )
return aReturn ;
@@ -132,8 +132,8 @@ uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
if ( m_xAsyncOutputMonitor.is() )
{
aReturn <<= ::cppu::queryInterface
- ( rType
- , static_cast<io::XAsyncOutputMonitor*> ( this ) );
+ ( rType
+ , static_cast<io::XAsyncOutputMonitor*> ( this ) );
if ( aReturn.hasValue() == sal_True )
return aReturn ;
@@ -156,7 +156,7 @@ void SAL_CALL OFSStreamContainer::release()
OWeakObject::release();
}
-// XTypeProvider
+// XTypeProvider
//-----------------------------------------------
uno::Sequence< uno::Type > SAL_CALL OFSStreamContainer::getTypes()
throw( uno::RuntimeException )
@@ -168,29 +168,29 @@ uno::Sequence< uno::Type > SAL_CALL OFSStreamContainer::getTypes()
if ( m_pTypeCollection == NULL )
{
::cppu::OTypeCollection aTypeCollection
- ( ::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
- , ::getCppuType( ( const uno::Reference< embed::XExtendedStorageStream >* )NULL ) );
+ ( ::getCppuType( ( const uno::Reference< lang::XTypeProvider >* )NULL )
+ , ::getCppuType( ( const uno::Reference< embed::XExtendedStorageStream >* )NULL ) );
if ( m_xSeekable.is() )
aTypeCollection = ::cppu::OTypeCollection
- ( ::getCppuType( ( const uno::Reference< io::XSeekable >* )NULL ),
+ ( ::getCppuType( ( const uno::Reference< io::XSeekable >* )NULL ),
aTypeCollection.getTypes() );
if ( m_xInputStream.is() )
aTypeCollection = ::cppu::OTypeCollection
- ( ::getCppuType( ( const uno::Reference< io::XInputStream >* )NULL ),
+ ( ::getCppuType( ( const uno::Reference< io::XInputStream >* )NULL ),
aTypeCollection.getTypes() );
if ( m_xOutputStream.is() )
aTypeCollection = ::cppu::OTypeCollection
- ( ::getCppuType( ( const uno::Reference< io::XOutputStream >* )NULL ),
+ ( ::getCppuType( ( const uno::Reference< io::XOutputStream >* )NULL ),
aTypeCollection.getTypes() );
if ( m_xTruncate.is() )
aTypeCollection = ::cppu::OTypeCollection
- ( ::getCppuType( ( const uno::Reference< io::XTruncate >* )NULL ),
+ ( ::getCppuType( ( const uno::Reference< io::XTruncate >* )NULL ),
aTypeCollection.getTypes() );
if ( m_xAsyncOutputMonitor.is() )
aTypeCollection = ::cppu::OTypeCollection
- ( ::getCppuType( ( const uno::Reference< io::XAsyncOutputMonitor >* )NULL ),
+ ( ::getCppuType( ( const uno::Reference< io::XAsyncOutputMonitor >* )NULL ),
aTypeCollection.getTypes() );
m_pTypeCollection = new ::cppu::OTypeCollection( aTypeCollection );
diff --git a/svl/source/fsstor/ostreamcontainer.hxx b/svl/source/fsstor/ostreamcontainer.hxx
index 42c2045a11d2..ad9bd4569a19 100644
--- a/svl/source/fsstor/ostreamcontainer.hxx
+++ b/svl/source/fsstor/ostreamcontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,12 +54,12 @@ class OFSStreamContainer : public cppu::OWeakObject,
{
::osl::Mutex m_aMutex;
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xStream;
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XSeekable > m_xSeekable;
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_xInputStream;
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > m_xOutputStream;
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XTruncate > m_xTruncate;
- ::com::sun::star::uno::Reference< ::com::sun::star::io::XAsyncOutputMonitor > m_xAsyncOutputMonitor;
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xStream;
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XSeekable > m_xSeekable;
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_xInputStream;
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > m_xOutputStream;
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XTruncate > m_xTruncate;
+ ::com::sun::star::uno::Reference< ::com::sun::star::io::XAsyncOutputMonitor > m_xAsyncOutputMonitor;
sal_Bool m_bDisposed;
sal_Bool m_bInputClosed;
@@ -73,12 +73,12 @@ public:
virtual ~OFSStreamContainer();
// XInterface
- virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
+ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL acquire() throw();
virtual void SAL_CALL release() throw();
- // XTypeProvider
+ // XTypeProvider
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
@@ -99,14 +99,14 @@ public:
virtual sal_Int64 SAL_CALL getLength() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
// XInputStream
- virtual sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
+ virtual sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual sal_Int32 SAL_CALL readSomeBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
+ virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- virtual sal_Int32 SAL_CALL available( )
+ virtual sal_Int32 SAL_CALL available( )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL closeInput( )
+ virtual void SAL_CALL closeInput( )
throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
// XOutputStream
diff --git a/svl/source/inc/fsfactory.hxx b/svl/source/inc/fsfactory.hxx
index f0abc4badbf1..58842ed58a4d 100644
--- a/svl/source/inc/fsfactory.hxx
+++ b/svl/source/inc/fsfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ public:
static ::rtl::OUString SAL_CALL impl_staticGetImplementationName();
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
- impl_staticCreateSelfInstance(
+ impl_staticCreateSelfInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager );
diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx
index cbcd596103f4..cd1fb428d387 100644
--- a/svl/source/inc/passwordcontainer.hxx
+++ b/svl/source/inc/passwordcontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,8 +28,8 @@
#ifndef INCLUDED_COMPHELPER_PASSWORDCONTAINER_HXX
#define INCLUDED_COMPHELPER_PASSWORDCONTAINER_HXX
-#include <list>
-#include <vector>
+#include <list>
+#include <vector>
#include <map>
#include <com/sun/star/task/XPasswordContainer.hpp>
#include <com/sun/star/task/XUrlContainer.hpp>
@@ -43,7 +43,7 @@
#include <cppuhelper/typeprovider.hxx>
#include <cppuhelper/queryinterface.hxx>
#include <cppuhelper/factory.hxx>
-
+
#include <tools/stream.hxx>
#include <unotools/configitem.hxx>
#include <ucbhelper/interactionrequest.hxx>
@@ -57,18 +57,18 @@
#define PERSISTENT_RECORD 1
//----------------------------------------------------------------------------------
-
-class NamePassRecord
+
+class NamePassRecord
{
::rtl::OUString m_aName;
// there are two lists of passwords, memory passwords and persistent passwords
sal_Bool m_bHasMemPass;
- ::std::vector< ::rtl::OUString > m_aMemPass;
+ ::std::vector< ::rtl::OUString > m_aMemPass;
// persistent passwords are encrypted in one string
sal_Bool m_bHasPersPass;
- ::rtl::OUString m_aPersPass;
+ ::rtl::OUString m_aPersPass;
void InitArrays( sal_Bool bHasMemoryList, const ::std::vector< ::rtl::OUString >& aMemoryList,
sal_Bool bHasPersistentList, const ::rtl::OUString& aPersistentList )
@@ -116,7 +116,7 @@ public:
{
InitArrays( bHasMemoryList, aMemoryList, bHasPersistentList, aPersistentList );
}
-
+
NamePassRecord( const NamePassRecord& aRecord )
: m_aName( aRecord.m_aName )
, m_bHasMemPass( sal_False )
@@ -124,7 +124,7 @@ public:
{
InitArrays( aRecord.m_bHasMemPass, aRecord.m_aMemPass, aRecord.m_bHasPersPass, aRecord.m_aPersPass );
}
-
+
NamePassRecord& operator=( const NamePassRecord& aRecord )
{
m_aName = aRecord.m_aName;
@@ -140,7 +140,7 @@ public:
{
return m_aName;
}
-
+
sal_Bool HasPasswords( sal_Int8 nStatus ) const
{
if ( nStatus == MEMORY_RECORD )
@@ -209,7 +209,7 @@ class StorageItem : public ::utl::ConfigItem {
sal_Bool hasEncoded;
::rtl::OUString mEncoded;
public:
- StorageItem( PasswordContainer* point, const ::rtl::OUString& path ) :
+ StorageItem( PasswordContainer* point, const ::rtl::OUString& path ) :
ConfigItem( path, CONFIG_MODE_IMMEDIATE_UPDATE ),
mainCont( point ),
hasEncoded( sal_False )
@@ -219,7 +219,7 @@ public:
*aNode.getArray() += ::rtl::OUString::createFromAscii( "/Store" );
EnableNotification( aNode );
}
-
+
PassMap getInfo();
void update( const ::rtl::OUString& url, const NamePassRecord& rec );
void remove( const ::rtl::OUString& url, const ::rtl::OUString& rec );
@@ -229,7 +229,7 @@ public:
void setEncodedMP( const ::rtl::OUString& aResult, sal_Bool bAcceptEnmpty = sal_False );
void setUseStorage( sal_Bool bUse );
sal_Bool useStorage();
-
+
virtual void Notify( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames );
virtual void Commit();
};
@@ -257,33 +257,33 @@ private:
::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > mComponent;
SysCredentialsConfig mUrlContainer;
- ::com::sun::star::uno::Sequence< ::com::sun::star::task::UserRecord > CopyToUserRecordSequence(
- const ::std::list< NamePassRecord >& original,
- const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
+ ::com::sun::star::uno::Sequence< ::com::sun::star::task::UserRecord > CopyToUserRecordSequence(
+ const ::std::list< NamePassRecord >& original,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::task::UserRecord CopyToUserRecord(
+ ::com::sun::star::task::UserRecord CopyToUserRecord(
const NamePassRecord& aRecord,
sal_Bool& io_bTryToDecode,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler );
- ::com::sun::star::uno::Sequence< ::com::sun::star::task::UserRecord > FindUsr(
- const ::std::list< NamePassRecord >& userlist,
- const ::rtl::OUString& name,
+ ::com::sun::star::uno::Sequence< ::com::sun::star::task::UserRecord > FindUsr(
+ const ::std::list< NamePassRecord >& userlist,
+ const ::rtl::OUString& name,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
throw(::com::sun::star::uno::RuntimeException);
-bool createUrlRecord(
- const PassMap::iterator & rIter,
+bool createUrlRecord(
+ const PassMap::iterator & rIter,
bool bName,
const ::rtl::OUString & aName,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler,
- ::com::sun::star::task::UrlRecord & rRec )
+ ::com::sun::star::task::UrlRecord & rRec )
throw( ::com::sun::star::uno::RuntimeException );
-::com::sun::star::task::UrlRecord find(
- const ::rtl::OUString& aURL,
+::com::sun::star::task::UrlRecord find(
+ const ::rtl::OUString& aURL,
const ::rtl::OUString& aName,
- bool bName, // only needed to support empty user names
+ bool bName, // only needed to support empty user names
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& aHandler ) throw(::com::sun::star::uno::RuntimeException);
::rtl::OUString GetDefaultMasterPassword();
@@ -297,9 +297,9 @@ bool createUrlRecord(
void UpdateVector( const ::rtl::OUString& url, ::std::list< NamePassRecord >& toUpdate, NamePassRecord& rec, sal_Bool writeFile )
throw(::com::sun::star::uno::RuntimeException);
-
- void PrivateAdd( const ::rtl::OUString& aUrl,
- const ::rtl::OUString& aUserName,
+
+ void PrivateAdd( const ::rtl::OUString& aUrl,
+ const ::rtl::OUString& aUserName,
const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPasswords,
char aMode,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
@@ -307,51 +307,51 @@ bool createUrlRecord(
::std::vector< ::rtl::OUString > DecodePasswords( const ::rtl::OUString& aLine, const ::rtl::OUString& aMasterPassword )
throw(::com::sun::star::uno::RuntimeException);
-
+
::rtl::OUString EncodePasswords( ::std::vector< ::rtl::OUString > lines, const ::rtl::OUString& aMasterPassword )
throw(::com::sun::star::uno::RuntimeException);
-
+
public:
PasswordContainer( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& );
~PasswordContainer();
- virtual void SAL_CALL add( const ::rtl::OUString& aUrl,
- const ::rtl::OUString& aUserName,
+ virtual void SAL_CALL add( const ::rtl::OUString& aUrl,
+ const ::rtl::OUString& aUserName,
const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPasswords,
- const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
+ const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
throw(::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL addPersistent( const ::rtl::OUString& aUrl,
- const ::rtl::OUString& aUserName,
+
+ virtual void SAL_CALL addPersistent( const ::rtl::OUString& aUrl,
+ const ::rtl::OUString& aUserName,
const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPasswords,
- const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
+ const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
throw(::com::sun::star::uno::RuntimeException);
-
- virtual ::com::sun::star::task::UrlRecord SAL_CALL
+
+ virtual ::com::sun::star::task::UrlRecord SAL_CALL
find( const ::rtl::OUString& aUrl,
- const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
+ const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
throw(::com::sun::star::uno::RuntimeException);
-
- virtual ::com::sun::star::task::UrlRecord SAL_CALL
- findForName( const ::rtl::OUString& aUrl,
+
+ virtual ::com::sun::star::task::UrlRecord SAL_CALL
+ findForName( const ::rtl::OUString& aUrl,
const ::rtl::OUString& aUserName,
- const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
+ const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL remove( const ::rtl::OUString& aUrl,
- const ::rtl::OUString& aUserName )
+ virtual void SAL_CALL remove( const ::rtl::OUString& aUrl,
+ const ::rtl::OUString& aUserName )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePersistent( const ::rtl::OUString& aUrl,
- const ::rtl::OUString& aUserName )
+ virtual void SAL_CALL removePersistent( const ::rtl::OUString& aUrl,
+ const ::rtl::OUString& aUserName )
throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeAllPersistent() throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::task::UrlRecord > SAL_CALL
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::task::UrlRecord > SAL_CALL
getAllPersistent( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) throw(::com::sun::star::uno::RuntimeException);
-
+
// provide factory
static ::rtl::OUString SAL_CALL impl_getStaticImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
@@ -360,7 +360,7 @@ public:
impl_createFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ServiceManager ) throw(::com::sun::star::uno::RuntimeException);
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
impl_createInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager ) throw( ::com::sun::star::uno::RuntimeException );
-
+
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
@@ -371,7 +371,7 @@ public:
// XEventListener
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
throw(::com::sun::star::uno::RuntimeException);
-
+
// XMasterPasswordHandling
virtual ::sal_Bool SAL_CALL authorizateWithMasterPassword( const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& xHandler )
throw (::com::sun::star::uno::RuntimeException);
@@ -405,7 +405,7 @@ public:
const ::rtl::Reference< ucbhelper::InteractionSupplyAuthentication > &
getAuthenticationSupplier() const { return m_xAuthSupplier; }
-
+
};
//----------------------------------------------------------------------------------
diff --git a/svl/source/inc/poolio.hxx b/svl/source/inc/poolio.hxx
index 11be49104a5e..5aa5d99ffa99 100644
--- a/svl/source/inc/poolio.hxx
+++ b/svl/source/inc/poolio.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,19 +35,19 @@
struct SfxPoolVersion_Impl
{
- USHORT _nVer;
- USHORT _nStart, _nEnd;
- USHORT* _pMap;
+ USHORT _nVer;
+ USHORT _nStart, _nEnd;
+ USHORT* _pMap;
SfxPoolVersion_Impl( USHORT nVer, USHORT nStart, USHORT nEnd,
USHORT *pMap )
- : _nVer( nVer ),
+ : _nVer( nVer ),
_nStart( nStart ),
_nEnd( nEnd ),
_pMap( pMap )
{}
SfxPoolVersion_Impl( const SfxPoolVersion_Impl &rOrig )
- : _nVer( rOrig._nVer ),
+ : _nVer( rOrig._nVer ),
_nStart( rOrig._nStart ),
_nEnd( rOrig._nEnd ),
_pMap( rOrig._pMap )
@@ -59,7 +59,7 @@ SV_DECL_PTRARR_DEL( SfxPoolVersionArr_Impl, SfxPoolVersion_Impl*, 0, 2 )
struct SfxPoolItemArray_Impl: public SfxPoolItemArrayBase_Impl
{
- USHORT nFirstFree;
+ USHORT nFirstFree;
SfxPoolItemArray_Impl (USHORT nInitSize = 0)
: SfxPoolItemArrayBase_Impl( nInitSize ),
@@ -71,15 +71,15 @@ class SfxStyleSheetIterator;
struct SfxItemPool_Impl
{
- SfxBroadcaster aBC;
- SfxPoolItemArray_Impl** ppPoolItems;
- SfxPoolVersionArr_Impl aVersions;
- USHORT nVersion;
- USHORT nLoadingVersion;
- USHORT nInitRefCount; // 1, beim Laden ggf. 2
- USHORT nVerStart, nVerEnd; // WhichRange in Versions
- USHORT nStoringStart, nStoringEnd; // zu speichernder Range
- BYTE nMajorVer, nMinorVer; // Pool selbst
+ SfxBroadcaster aBC;
+ SfxPoolItemArray_Impl** ppPoolItems;
+ SfxPoolVersionArr_Impl aVersions;
+ USHORT nVersion;
+ USHORT nLoadingVersion;
+ USHORT nInitRefCount; // 1, beim Laden ggf. 2
+ USHORT nVerStart, nVerEnd; // WhichRange in Versions
+ USHORT nStoringStart, nStoringEnd; // zu speichernder Range
+ BYTE nMajorVer, nMinorVer; // Pool selbst
SfxMapUnit eDefMetric;
bool bInSetItem;
bool bStreaming; // in Load() bzw. Store()
@@ -163,33 +163,33 @@ struct SfxItemPool_Impl
} \
}
-#define SFX_ITEMPOOL_VER_MAJOR BYTE(2)
-#define SFX_ITEMPOOL_VER_MINOR BYTE(0)
-
-#define SFX_ITEMPOOL_TAG_STARTPOOL_4 USHORT(0x1111)
-#define SFX_ITEMPOOL_TAG_STARTPOOL_5 USHORT(0xBBBB)
-#define SFX_ITEMPOOL_TAG_ITEMPOOL USHORT(0xAAAA)
-#define SFX_ITEMPOOL_TAG_ITEMS USHORT(0x2222)
-#define SFX_ITEMPOOL_TAG_ITEM USHORT(0x7777)
-#define SFX_ITEMPOOL_TAG_SIZES USHORT(0x3333)
-#define SFX_ITEMPOOL_TAG_DEFAULTS USHORT(0x4444)
-#define SFX_ITEMPOOL_TAG_VERSIONMAP USHORT(0x5555)
-#define SFX_ITEMPOOL_TAG_HEADER USHORT(0x6666)
-#define SFX_ITEMPOOL_TAG_ENDPOOL USHORT(0xEEEE)
-#define SFX_ITEMPOOL_TAG_TRICK4OLD USHORT(0xFFFF)
-
-#define SFX_ITEMPOOL_REC BYTE(0x01)
-#define SFX_ITEMPOOL_REC_HEADER BYTE(0x10)
-#define SFX_ITEMPOOL_REC_VERSIONMAP USHORT(0x0020)
-#define SFX_ITEMPOOL_REC_WHICHIDS USHORT(0x0030)
-#define SFX_ITEMPOOL_REC_ITEMS USHORT(0x0040)
-#define SFX_ITEMPOOL_REC_DEFAULTS USHORT(0x0050)
-
-#define SFX_ITEMSET_REC BYTE(0x02)
+#define SFX_ITEMPOOL_VER_MAJOR BYTE(2)
+#define SFX_ITEMPOOL_VER_MINOR BYTE(0)
+
+#define SFX_ITEMPOOL_TAG_STARTPOOL_4 USHORT(0x1111)
+#define SFX_ITEMPOOL_TAG_STARTPOOL_5 USHORT(0xBBBB)
+#define SFX_ITEMPOOL_TAG_ITEMPOOL USHORT(0xAAAA)
+#define SFX_ITEMPOOL_TAG_ITEMS USHORT(0x2222)
+#define SFX_ITEMPOOL_TAG_ITEM USHORT(0x7777)
+#define SFX_ITEMPOOL_TAG_SIZES USHORT(0x3333)
+#define SFX_ITEMPOOL_TAG_DEFAULTS USHORT(0x4444)
+#define SFX_ITEMPOOL_TAG_VERSIONMAP USHORT(0x5555)
+#define SFX_ITEMPOOL_TAG_HEADER USHORT(0x6666)
+#define SFX_ITEMPOOL_TAG_ENDPOOL USHORT(0xEEEE)
+#define SFX_ITEMPOOL_TAG_TRICK4OLD USHORT(0xFFFF)
+
+#define SFX_ITEMPOOL_REC BYTE(0x01)
+#define SFX_ITEMPOOL_REC_HEADER BYTE(0x10)
+#define SFX_ITEMPOOL_REC_VERSIONMAP USHORT(0x0020)
+#define SFX_ITEMPOOL_REC_WHICHIDS USHORT(0x0030)
+#define SFX_ITEMPOOL_REC_ITEMS USHORT(0x0040)
+#define SFX_ITEMPOOL_REC_DEFAULTS USHORT(0x0050)
+
+#define SFX_ITEMSET_REC BYTE(0x02)
#define SFX_STYLES_REC BYTE(0x03)
-#define SFX_STYLES_REC_HEADER USHORT(0x0010)
-#define SFX_STYLES_REC_STYLES USHORT(0x0020)
+#define SFX_STYLES_REC_HEADER USHORT(0x0010)
+#define SFX_STYLES_REC_STYLES USHORT(0x0020)
//========================================================================
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx
index 2b541c9c68dc..d375412c7112 100644
--- a/svl/source/items/aeitem.cxx
+++ b/svl/source/items/aeitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -194,7 +194,7 @@ SfxPoolItem* SfxAllEnumItem::Create( SvStream & rStream, USHORT ) const
USHORT SfxAllEnumItem::_GetPosByValue( USHORT nVal ) const
-/* [Beschreibung]
+/* [Beschreibung]
Im Ggs. zu <SfxEnumItemInterface::GetPosByValue(USHORT)const> liefert
diese interne Methode bei nicht vorhandenen Values die Position,
diff --git a/svl/source/items/cenumitm.cxx b/svl/source/items/cenumitm.cxx
index d6aefee3a99a..ffba3057099f 100644
--- a/svl/source/items/cenumitm.cxx
+++ b/svl/source/items/cenumitm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/cintitem.cxx b/svl/source/items/cintitem.cxx
index ae65534f7bf1..7491dd9aedb8 100644
--- a/svl/source/items/cintitem.cxx
+++ b/svl/source/items/cintitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/cntwall.cxx b/svl/source/items/cntwall.cxx
index 6df75aa4e8bd..8b9abfa28c94 100644
--- a/svl/source/items/cntwall.cxx
+++ b/svl/source/items/cntwall.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/cstitem.src b/svl/source/items/cstitem.src
index 009fcb19e3c6..87f77ec273de 100644
--- a/svl/source/items/cstitem.src
+++ b/svl/source/items/cstitem.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/ctypeitm.cxx b/svl/source/items/ctypeitm.cxx
index 64ba76515e06..edcc27c9a640 100644
--- a/svl/source/items/ctypeitm.cxx
+++ b/svl/source/items/ctypeitm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,14 +57,14 @@ CntContentTypeItem::CntContentTypeItem()
}
//----------------------------------------------------------------------------
-CntContentTypeItem::CntContentTypeItem( USHORT which, const XubString& rType )
+CntContentTypeItem::CntContentTypeItem( USHORT which, const XubString& rType )
: CntUnencodedStringItem( which, rType ),
_eType( CONTENT_TYPE_NOT_INIT )
{
}
//----------------------------------------------------------------------------
-CntContentTypeItem::CntContentTypeItem( USHORT which,
+CntContentTypeItem::CntContentTypeItem( USHORT which,
const INetContentType eType )
: CntUnencodedStringItem( which, INetContentTypes::GetContentType( eType ) ),
_eType( eType )
diff --git a/svl/source/items/custritm.cxx b/svl/source/items/custritm.cxx
index eae1882f873f..1cde801da0df 100644
--- a/svl/source/items/custritm.cxx
+++ b/svl/source/items/custritm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/dateitem.cxx b/svl/source/items/dateitem.cxx
index c61d64625ba0..054e11703d24 100644
--- a/svl/source/items/dateitem.cxx
+++ b/svl/source/items/dateitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -143,12 +143,12 @@ SfxPoolItem* SfxDateTimeItem::Clone( SfxItemPool* ) const
SfxItemPresentation SfxDateTimeItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper * pIntlWrapper
-) const
+) const
{
DBG_CHKTHIS(SfxDateTimeItem, 0);
if (aDateTime.IsValid())
@@ -239,12 +239,12 @@ SfxPoolItem* SfxColumnDateTimeItem::Clone( SfxItemPool* ) const
SfxItemPresentation SfxColumnDateTimeItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper * pIntlWrapper
-) const
+) const
{
DBG_ASSERT(pIntlWrapper,
"SfxColumnDateTimeItem::GetPresentation():"
diff --git a/svl/source/items/eitem.cxx b/svl/source/items/eitem.cxx
index 6f6e3bfd2835..19d4040c19c1 100644
--- a/svl/source/items/eitem.cxx
+++ b/svl/source/items/eitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/flagitem.cxx b/svl/source/items/flagitem.cxx
index 4bf226a4d6b4..98ce911689ec 100644
--- a/svl/source/items/flagitem.cxx
+++ b/svl/source/items/flagitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,12 +90,12 @@ SvStream& SfxFlagItem::Store(SvStream &rStream, USHORT) const
SfxItemPresentation SfxFlagItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper *
-) const
+) const
{
DBG_CHKTHIS(SfxFlagItem, 0);
rText.Erase();
diff --git a/svl/source/items/globalnameitem.cxx b/svl/source/items/globalnameitem.cxx
index 57853f6fcfa2..25bb63bf8605 100644
--- a/svl/source/items/globalnameitem.cxx
+++ b/svl/source/items/globalnameitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ SfxGlobalNameItem::SfxGlobalNameItem()
// -----------------------------------------------------------------------
SfxGlobalNameItem::SfxGlobalNameItem( USHORT nW, const SvGlobalName& rName )
-: SfxPoolItem( nW ),
+: SfxPoolItem( nW ),
m_aName( rName )
{
}
diff --git a/svl/source/items/ilstitem.cxx b/svl/source/items/ilstitem.cxx
index 9316cef2ffd3..b2fbfc335c29 100644
--- a/svl/source/items/ilstitem.cxx
+++ b/svl/source/items/ilstitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/imageitm.cxx b/svl/source/items/imageitm.cxx
index f689415f52e4..89ae8a8fd02f 100644
--- a/svl/source/items/imageitm.cxx
+++ b/svl/source/items/imageitm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -106,7 +106,7 @@ bool SfxImageItem::PutValue( const com::sun::star::uno::Any& rVal, BYTE )
if (( rVal >>= aSeq ) && ( aSeq.getLength() == 4 ))
{
sal_Int16 nVal = sal_Int16();
- rtl::OUString aURL;
+ rtl::OUString aURL;
if ( aSeq[0] >>= nVal )
SetValue( nVal );
aSeq[1] >>= pImp->nAngle;
diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx
index 7038d00f1e12..01eb4661326d 100644
--- a/svl/source/items/intitem.cxx
+++ b/svl/source/items/intitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/itemiter.cxx b/svl/source/items/itemiter.cxx
index cd349a8c9321..483b23778789 100644
--- a/svl/source/items/itemiter.cxx
+++ b/svl/source/items/itemiter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ SfxItemIter::SfxItemIter( const SfxItemSet& rItemSet )
for ( _nStt = 0; !*(ppFnd + _nStt ); ++_nStt )
; // empty loop
if ( 1 < _rSet.Count() )
- for( _nEnd = _rSet.TotalCount(); !*( ppFnd + --_nEnd); )
+ for( _nEnd = _rSet.TotalCount(); !*( ppFnd + --_nEnd); )
; // empty loop
else
_nEnd = _nStt;
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 1321014bb894..0dccc018ad8b 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,7 +112,7 @@ SfxBroadcaster& SfxItemPool::BC()
SfxItemPool::SfxItemPool
(
- UniString const & rName, /* Name des Pools zur Idetifikation
+ UniString const & rName, /* Name des Pools zur Idetifikation
im File-Format */
USHORT nStartWhich, /* erste Which-Id des Pools */
USHORT nEndWhich, /* letzte Which-Id des Pools */
@@ -969,7 +969,7 @@ const SfxPoolItem& SfxItemPool::GetDefaultItem( USHORT nWhich ) const
void SfxItemPool::FreezeIdRanges()
-/* [Beschreibung]
+/* [Beschreibung]
This method should be called at the master pool, when all secondary
pools are appended to it.
diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx
index b79bdeac8eda..62bb703e687e 100644
--- a/svl/source/items/itemprop.cxx
+++ b/svl/source/items/itemprop.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ struct equalOUString
return r1.equals( r2 );
}
};
-
+
typedef ::std::hash_map< ::rtl::OUString,
SfxItemPropertySimpleEntry,
::rtl::OUStringHash,
@@ -61,7 +61,7 @@ typedef ::std::hash_map< ::rtl::OUString,
class SfxItemPropertyMap_Impl : public SfxItemPropertyHashMap_t
{
-public:
+public:
mutable uno::Sequence< beans::Property > m_aPropSeq;
SfxItemPropertyMap_Impl(){}
@@ -71,7 +71,7 @@ SfxItemPropertyMap_Impl::SfxItemPropertyMap_Impl( const SfxItemPropertyMap_Impl*
{
this->SfxItemPropertyHashMap_t::operator=( *pSource );
m_aPropSeq = pSource->m_aPropSeq;
-}
+}
/*-- 16.02.2009 10:03:51---------------------------------------------------
@@ -84,7 +84,7 @@ SfxItemPropertyMap::SfxItemPropertyMap( const SfxItemPropertyMapEntry* pEntries
::rtl::OUString sEntry(pEntries->pName, pEntries->nNameLen, RTL_TEXTENCODING_ASCII_US );
(*m_pImpl) [ sEntry ] = pEntries;
++pEntries;
- }
+ }
}
/*-- 16.02.2009 12:46:41---------------------------------------------------
@@ -140,14 +140,14 @@ uno::Sequence<beans::Property> SfxItemPropertyMap::getProperties() const
return m_pImpl->m_aPropSeq;
}
/*-- 16.02.2009 11:04:31---------------------------------------------------
-
+
-----------------------------------------------------------------------*/
-beans::Property SfxItemPropertyMap::getPropertyByName( const ::rtl::OUString rName ) const
+beans::Property SfxItemPropertyMap::getPropertyByName( const ::rtl::OUString rName ) const
throw( beans::UnknownPropertyException )
{
SfxItemPropertyHashMap_t::const_iterator aIter = m_pImpl->find(rName);
if( aIter == m_pImpl->end() )
- throw UnknownPropertyException();
+ throw UnknownPropertyException();
const SfxItemPropertySimpleEntry* pEntry = &aIter->second;
beans::Property aProp;
aProp.Name = rName;
@@ -160,7 +160,7 @@ beans::Property SfxItemPropertyMap::getPropertyByName( const ::rtl::OUString rNa
/*-- 16.02.2009 11:09:16---------------------------------------------------
-----------------------------------------------------------------------*/
-sal_Bool SfxItemPropertyMap::hasPropertyByName( const ::rtl::OUString& rName ) const
+sal_Bool SfxItemPropertyMap::hasPropertyByName( const ::rtl::OUString& rName ) const
{
SfxItemPropertyHashMap_t::const_iterator aIter = m_pImpl->find(rName);
return aIter != m_pImpl->end();
@@ -189,7 +189,7 @@ PropertyEntryVector_t SfxItemPropertyMap::getPropertyEntries() const
{
PropertyEntryVector_t aRet;
aRet.reserve(m_pImpl->size());
-
+
SfxItemPropertyHashMap_t::const_iterator aIt = m_pImpl->begin();
while( aIt != m_pImpl->end() )
{
@@ -198,14 +198,14 @@ PropertyEntryVector_t SfxItemPropertyMap::getPropertyEntries() const
++aIt;
}
return aRet;
-}
+}
/*-- 18.02.2009 15:11:06---------------------------------------------------
-----------------------------------------------------------------------*/
sal_uInt32 SfxItemPropertyMap::getSize() const
{
return m_pImpl->size();
-}
+}
/*-- 16.02.2009 13:44:54---------------------------------------------------
-----------------------------------------------------------------------*/
@@ -264,7 +264,7 @@ void SfxItemPropertySet::getPropertyValue( const rtl::OUString &rName,
const SfxItemSet& rSet, Any& rAny ) const
throw(RuntimeException, UnknownPropertyException)
{
- // detect which-id
+ // detect which-id
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
if ( !pEntry )
throw UnknownPropertyException();
@@ -317,7 +317,7 @@ void SfxItemPropertySet::setPropertyValue( const SfxItemPropertySimpleEntry& rEn
DELETEZ(pNewItem);
throw IllegalArgumentException();
}
- // apply new item
+ // apply new item
rSet.Put( *pNewItem, rEntry.nWID );
delete pNewItem;
}
@@ -359,7 +359,7 @@ PropertyState SfxItemPropertySet::getPropertyState(const SfxItemPropertySimpleEn
}
PropertyState SfxItemPropertySet::getPropertyState(
const rtl::OUString& rName, const SfxItemSet& rSet) const
- throw(UnknownPropertyException)
+ throw(UnknownPropertyException)
{
PropertyState eRet = PropertyState_DIRECT_VALUE;
@@ -428,7 +428,7 @@ Sequence< Property > SAL_CALL
/*-- 16.02.2009 13:49:27---------------------------------------------------
-----------------------------------------------------------------------*/
-const SfxItemPropertyMap* SfxItemPropertySetInfo::getMap() const
+const SfxItemPropertyMap* SfxItemPropertySetInfo::getMap() const
{
return m_pImpl->m_pOwnMap;
}
@@ -468,7 +468,7 @@ SfxExtItemPropertySetInfo::SfxExtItemPropertySetInfo(
aExtMap( pMap )
{
aExtMap.mergeProperties( rPropSeq );
-}
+}
/*-- 16.02.2009 12:06:49---------------------------------------------------
-----------------------------------------------------------------------*/
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index 7b2000e80307..83cc862886fd 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,23 +53,23 @@
static const USHORT nInitCount = 10; // einzelne USHORTs => 5 Paare ohne '0'
#ifdef DBG_UTIL
-static ULONG nRangesCopyCount = 0; // wie oft wurden Ranges kopiert
+static ULONG nRangesCopyCount = 0; // wie oft wurden Ranges kopiert
#endif
DBG_NAME(SfxItemSet)
//========================================================================
-#define NUMTYPE USHORT
-#define SvNums SvUShorts
+#define NUMTYPE USHORT
+#define SvNums SvUShorts
#define SfxNumRanges SfxUShortRanges
#include "nranges.cxx"
#undef NUMTYPE
#undef SvNums
#undef SfxNumRanges
-#define NUMTYPE ULONG
-#define SvNums SvULongs
+#define NUMTYPE ULONG
+#define SvNums SvULongs
#define SfxNumRanges SfxULongRanges
#include "nranges.cxx"
#undef NUMTYPE
@@ -113,19 +113,19 @@ const sal_Char *DbgCheckItemSet( const void* pVoid )
SfxItemSet::SfxItemSet
(
- SfxItemPool& rPool, /* der Pool, in dem die SfxPoolItems,
+ SfxItemPool& rPool, /* der Pool, in dem die SfxPoolItems,
welche in dieses SfxItemSet gelangen,
aufgenommen werden sollen */
BOOL
#ifdef DBG_UTIL
#ifdef SFX_ITEMSET_NO_DEFAULT_CTOR
- bTotalRanges /* komplette Pool-Ranges uebernehmen,
+ bTotalRanges /* komplette Pool-Ranges uebernehmen,
muss auf TRUE gesetzt werden */
#endif
#endif
)
-/* [Beschreibung]
+/* [Beschreibung]
Konstruktor fuer ein SfxItemSet mit genau den Which-Bereichen, welche
dem angegebenen <SfxItemPool> bekannt sind.
@@ -137,15 +137,15 @@ SfxItemSet::SfxItemSet
keinerlei Items mit Slot-Ids als Which-Werte aufnehmen!
*/
-: _pPool( &rPool ),
+: _pPool( &rPool ),
_pParent( 0 ),
_nCount( 0 )
{
DBG_CTOR(SfxItemSet, DbgCheckItemSet);
DBG_ASSERTWARNING( _pPool == _pPool->GetMasterPool(), "kein Master-Pool" );
DBG( _pChildCountCtor; *_pChildCount(this) = 0 );
-// DBG_ASSERT( bTotalRanges || abs( &bTotalRanges - this ) < 1000,
-// "please use suitable ranges" );
+// DBG_ASSERT( bTotalRanges || abs( &bTotalRanges - this ) < 1000,
+// "please use suitable ranges" );
#ifdef DBG_UTIL
#ifdef SFX_ITEMSET_NO_DEFAULT_CTOR
if ( !bTotalRanges )
@@ -298,9 +298,9 @@ SfxItemSet::SfxItemSet( const SfxItemSet& rASet ):
// Attribute kopieren
SfxItemArray ppDst = _aItems, ppSrc = rASet._aItems;
for( USHORT n = nCnt; n; --n, ++ppDst, ++ppSrc )
- if ( 0 == *ppSrc || // aktueller Default?
- IsInvalidItem(*ppSrc) || // Dont Care?
- IsStaticDefaultItem(*ppSrc) ) // nicht zu poolende Defaults
+ if ( 0 == *ppSrc || // aktueller Default?
+ IsInvalidItem(*ppSrc) || // Dont Care?
+ IsStaticDefaultItem(*ppSrc) ) // nicht zu poolende Defaults
// einfach Pointer kopieren
*ppDst = *ppSrc;
else if ( _pPool->IsItemFlag( **ppSrc, SFX_ITEM_POOLABLE ) )
@@ -577,7 +577,7 @@ const SfxPoolItem* SfxItemSet::Put( const SfxPoolItem& rItem, USHORT nWhich )
{
// in diesem Bereich
ppFnd += nWhich - *pPtr;
- if( *ppFnd ) // schon einer vorhanden
+ if( *ppFnd ) // schon einer vorhanden
{
// selbes Item bereits vorhanden?
if ( *ppFnd == &rItem )
@@ -676,12 +676,12 @@ int SfxItemSet::Put( const SfxItemSet& rSet, BOOL bInvalidAsDefault )
void SfxItemSet::PutExtended
(
- const SfxItemSet& rSet, // Quelle der zu puttenden Items
- SfxItemState eDontCareAs, // was mit DontCare-Items passiert
- SfxItemState eDefaultAs // was mit Default-Items passiert
+ const SfxItemSet& rSet, // Quelle der zu puttenden Items
+ SfxItemState eDontCareAs, // was mit DontCare-Items passiert
+ SfxItemState eDefaultAs // was mit Default-Items passiert
)
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode "ubernimmt die Items aus 'rSet' in '*this'. Die
Which-Bereiche in '*this', die in 'rSet' nicht vorkommen bleiben unver-
@@ -691,9 +691,9 @@ void SfxItemSet::PutExtended
(0 Pointer) und Invalid- (-1 Pointer) Items werden je nach Parameter
('eDontCareAs' und 'eDefaultAs' behandelt:
- SFX_ITEM_SET: hart auf Default des Pools gesetzt
- SFX_ITEM_DEFAULT: gel"oscht (0 Pointer)
- SFX_ITEM_DONTCARE: invalidiert (-1 Pointer)
+ SFX_ITEM_SET: hart auf Default des Pools gesetzt
+ SFX_ITEM_DEFAULT: gel"oscht (0 Pointer)
+ SFX_ITEM_DONTCARE: invalidiert (-1 Pointer)
Alle anderen Werte f"ur 'eDontCareAs' und 'eDefaultAs' sind ung"ultig.
*/
@@ -762,7 +762,7 @@ void SfxItemSet::PutExtended
// -----------------------------------------------------------------------
void SfxItemSet::MergeRange( USHORT nFrom, USHORT nTo )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Expands the ranges of settable items by 'nFrom' to 'nTo'. Keeps state of
items which are new ranges too.
@@ -783,7 +783,7 @@ void SfxItemSet::MergeRange( USHORT nFrom, USHORT nTo )
void SfxItemSet::SetRanges( const USHORT *pNewRanges )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Modifies the ranges of settable items. Keeps state of items which
are new ranges too.
@@ -803,9 +803,9 @@ void SfxItemSet::SetRanges( const USHORT *pNewRanges )
}
// create new item-array (by iterating through all new ranges)
- ULONG nSize = Capacity_Impl(pNewRanges);
+ ULONG nSize = Capacity_Impl(pNewRanges);
SfxItemArray aNewItems = new const SfxPoolItem* [ nSize ];
- USHORT n = 0, nNewCount = 0;
+ USHORT n = 0, nNewCount = 0;
if ( _nCount == 0 )
memset( aNewItems, 0, nSize * sizeof( SfxPoolItem* ) );
else
@@ -875,10 +875,10 @@ void SfxItemSet::SetRanges( const USHORT *pNewRanges )
int SfxItemSet::Set
(
- const SfxItemSet& rSet, /* das SfxItemSet, dessen SfxPoolItems
+ const SfxItemSet& rSet, /* das SfxItemSet, dessen SfxPoolItems
"ubernommen werden sollen */
- BOOL bDeep /* TRUE (default)
+ BOOL bDeep /* TRUE (default)
auch die SfxPoolItems aus den ggf. an
rSet vorhandenen Parents werden direkt
in das SfxItemSet "ubernommen
@@ -888,7 +888,7 @@ int SfxItemSet::Set
rSet werden nicht ber"ucksichtigt */
)
-/* [Beschreibung]
+/* [Beschreibung]
Das SfxItemSet nimmt genau die SfxPoolItems an, die auch in
rSet gesetzt sind und im eigenen <Which-Bereich> liegen. Alle
@@ -902,7 +902,7 @@ int SfxItemSet::Set
[R"uckgabewert]
- int TRUE
+ int TRUE
es wurden SfxPoolItems "ubernommen
FALSE
@@ -941,12 +941,12 @@ int SfxItemSet::Set
const SfxPoolItem* SfxItemSet::GetItem
(
- USHORT nId, // Slot-Id oder Which-Id des Items
- BOOL bSrchInParent, // TRUE: auch in Parent-ItemSets suchen
- TypeId aItemType // != 0 => RTTI Pruefung mit Assertion
-) const
+ USHORT nId, // Slot-Id oder Which-Id des Items
+ BOOL bSrchInParent, // TRUE: auch in Parent-ItemSets suchen
+ TypeId aItemType // != 0 => RTTI Pruefung mit Assertion
+) const
-/* [Beschreibung]
+/* [Beschreibung]
Mit dieser Methode wird der Zugriff auf einzelne Items im
SfxItemSet wesentlich vereinfacht. Insbesondere wird die Typpr"ufung
@@ -1021,15 +1021,15 @@ const SfxPoolItem& SfxItemSet::Get( USHORT nWhich, BOOL bSrchInParent) const
#endif
return **ppFnd;
}
- break; // dann beim Parent suchen
+ break; // dann beim Parent suchen
}
ppFnd += *(pPtr+1) - *pPtr + 1;
pPtr += 2;
}
}
// bis zum Ende vom Such-Bereich: was nun ? zum Parent, oder Default ??
-// if( !*pPtr ) // bis zum Ende vom Such-Bereich ?
-// break;
+// if( !*pPtr ) // bis zum Ende vom Such-Bereich ?
+// break;
} while( bSrchInParent && 0 != ( pAktSet = pAktSet->_pParent ));
// dann das Default vom Pool holen und returnen
@@ -1071,13 +1071,13 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
{
DBG_CHKTHIS(SfxItemSet, DbgCheckItemSet);
DBG_ASSERT(_pPool, "nicht implementiert ohne Pool");
- if( !Count() ) // gar keine gesetzt ?
+ if( !Count() ) // gar keine gesetzt ?
return;
// loesche alle Items, die im rSet nicht mehr vorhanden sind
if( !rSet.Count() )
{
- ClearItem(); // alles loeschen
+ ClearItem(); // alles loeschen
return;
}
@@ -1097,7 +1097,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
if( n & 1 )
nSize += ( *(pWh1) - *(pWh1-1) ) + 1;
}
- bEqual = *pWh1 == *pWh2; // auch die 0 abpruefen
+ bEqual = *pWh1 == *pWh2; // auch die 0 abpruefen
// sind die Bereiche identisch, ist es einfacher zu handhaben !
if( bEqual )
@@ -1136,7 +1136,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
? GetWhichByPos( aIter.GetCurPos() )
: pItem->Which();
if( 0 == rSet.GetItemState( nWhich, FALSE ) )
- ClearItem( nWhich ); // loeschen
+ ClearItem( nWhich ); // loeschen
if( aIter.IsAtEnd() )
break;
pItem = aIter.NextItem();
@@ -1168,7 +1168,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet )
if( n & 1 )
nSize += ( *(pWh1) - *(pWh1-1) ) + 1;
}
- bEqual = *pWh1 == *pWh2; // auch die 0 abpruefen
+ bEqual = *pWh1 == *pWh2; // auch die 0 abpruefen
// sind die Bereiche identisch, ist es einfacher zu handhaben !
if( bEqual )
@@ -1207,7 +1207,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet )
? GetWhichByPos( aIter.GetCurPos() )
: pItem->Which();
if( SFX_ITEM_SET == rSet.GetItemState( nWhich, FALSE ) )
- ClearItem( nWhich ); // loeschen
+ ClearItem( nWhich ); // loeschen
if( aIter.IsAtEnd() )
break;
pItem = aIter.NextItem();
@@ -1235,7 +1235,7 @@ default default == FALSE - - -
dontcare default == FALSE - - -
unknown default == FALSE - - -
set dontcare == FALSE 1.-Item -1 -
-default dontcare == FALSE - -1 -
+default dontcare == FALSE - -1 -
dontcare dontcare == FALSE - - -
unknown dontcare == FALSE - - -
set unknown == FALSE 1.-Item -1 -
@@ -1261,7 +1261,7 @@ dontcare unknown != FALSE - - -
unknown unknown != FALSE - - -
set set == TRUE - - -
-default set == TRUE - 2.-Item 2.-Item
+default set == TRUE - 2.-Item 2.-Item
dontcare set == TRUE - - -
unknown set == TRUE - - -
set default == TRUE - - -
@@ -1269,7 +1269,7 @@ default default == TRUE - - -
dontcare default == TRUE - - -
unknown default == TRUE - - -
set dontcare == TRUE - - -
-default dontcare == TRUE - -1 -
+default dontcare == TRUE - -1 -
dontcare dontcare == TRUE - - -
unknown dontcare == TRUE - - -
set unknown == TRUE - - -
@@ -1279,7 +1279,7 @@ unknown unknown == TRUE - - -
set set != TRUE 1.-Item -1 -
default set != TRUE - 2.-Item 2.-Item
-dontcare set != TRUE - - -
+dontcare set != TRUE - - -
unknown set != TRUE - - -
set default != TRUE - - -
default default != TRUE - - -
@@ -1343,7 +1343,7 @@ static void MergeItem_Impl( SfxItemPool *_pPool, USHORT &rCount,
**ppFnd1 != _pPool->GetDefaultItem( (*ppFnd1)->Which()) )
{
// Entscheidungstabelle: set, dontcare, egal, FALSE
- // oder: set, dontcare, !=, TRUE
+ // oder: set, dontcare, !=, TRUE
_pPool->Remove( **ppFnd1 );
*ppFnd1 = (SfxPoolItem*) -1;
}
@@ -1455,9 +1455,9 @@ void SfxItemSet::InvalidateItem( USHORT nWhich )
// in diesem Bereich
ppFnd += nWhich - *pPtr;
- if( *ppFnd ) // bei mir gesetzt
+ if( *ppFnd ) // bei mir gesetzt
{
- if( (SfxPoolItem*)-1 != *ppFnd ) // noch nicht dontcare !
+ if( (SfxPoolItem*)-1 != *ppFnd ) // noch nicht dontcare !
{
_pPool->Remove( **ppFnd );
*ppFnd = (SfxPoolItem*)-1;
@@ -1498,18 +1498,18 @@ USHORT SfxItemSet::GetWhichByPos( USHORT nPos ) const
SvStream &SfxItemSet::Store
(
- SvStream& rStream, // Zielstream f"ur normale Items
+ SvStream& rStream, // Zielstream f"ur normale Items
bool bDirect // TRUE: Items direkt speicher, FALSE: Surrogate
-) const
+) const
-/* [Beschreibung]
+/* [Beschreibung]
Speichert die <SfxItemSet>-Instanz in den angegebenen Stream. Dabei
werden die Surrorage der gesetzten <SfxPoolItem>s bzw. ('bDirect==TRUE')
die gesetzten Items selbst wie folgt im Stream abgelegt:
- USHORT (Count) Anzahl der gesetzten Items
- Count* _pPool->StoreItem() siehe <SfxItemPool::StoreItem()const>
+ USHORT (Count) Anzahl der gesetzten Items
+ Count* _pPool->StoreItem() siehe <SfxItemPool::StoreItem()const>
[Querverweise]
@@ -1564,7 +1564,7 @@ SvStream &SfxItemSet::Store
SvStream &SfxItemSet::Load
(
- SvStream& rStream, // Stream, aus dem geladen werden soll
+ SvStream& rStream, // Stream, aus dem geladen werden soll
bool bDirect, /* TRUE
Items werden direkt aus dem Stream
@@ -1573,11 +1573,11 @@ SvStream &SfxItemSet::Load
FALSE (default)
Items werden "uber Surrogate gelesen */
- const SfxItemPool* pRefPool /* Pool, der die Surrogate aufl"osen kann
+ const SfxItemPool* pRefPool /* Pool, der die Surrogate aufl"osen kann
(z.B. zum Einf"ugen von Dokumenten) */
)
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode l"adt ein <SfxItemSet> aus einem Stream. Falls der
<SfxItemPool> ohne Ref-Counts geladen wurde, werden die geladenen
@@ -1639,7 +1639,7 @@ SvStream &SfxItemSet::Load
// -----------------------------------------------------------------------
-int SfxItemSet::operator==(const SfxItemSet &rCmp) const
+int SfxItemSet::operator==(const SfxItemSet &rCmp) const
{
DBG_CHKTHIS(SfxItemSet, DbgCheckItemSet);
DBG_CHKOBJ(&rCmp, SfxItemSet, DbgCheckItemSet);
@@ -1737,7 +1737,7 @@ SfxItemSet *SfxItemSet::Clone(BOOL bItems, SfxItemPool *pToPool ) const
// -----------------------------------------------------------------------
-int SfxItemSet::PutDirect(const SfxPoolItem &rItem)
+int SfxItemSet::PutDirect(const SfxPoolItem &rItem)
{
DBG_CHKTHIS(SfxItemSet, DbgCheckItemSet);
SfxItemArray ppFnd = _aItems;
@@ -1754,10 +1754,10 @@ int SfxItemSet::PutDirect(const SfxPoolItem &rItem)
// in diesem Bereich
ppFnd += nWhich - *pPtr;
const SfxPoolItem* pOld = *ppFnd;
- if( pOld ) // schon einer vorhanden
+ if( pOld ) // schon einer vorhanden
{
if( rItem == **ppFnd )
- return FALSE; // schon vorhanden !
+ return FALSE; // schon vorhanden !
_pPool->Remove( *pOld );
}
else
@@ -1784,7 +1784,7 @@ int SfxItemSet::PutDirect(const SfxPoolItem &rItem)
// -----------------------------------------------------------------------
SfxAllItemSet::SfxAllItemSet( SfxItemPool &rPool )
-: SfxItemSet(rPool, (const USHORT*) 0),
+: SfxItemSet(rPool, (const USHORT*) 0),
aDefault(0),
nFree(nInitCount)
{
@@ -1815,7 +1815,7 @@ SfxAllItemSet::SfxAllItemSet(const SfxAllItemSet &rCopy)
: SfxItemSet(rCopy),
aDefault(0),
nFree(0)
-/* [Anmerkung]
+/* [Anmerkung]
Der mu\s sein, da sonst vom Compiler einer generiert wird, er nimmt
nicht den Ctor mit der 'const SfxItemSet&'!
@@ -1828,7 +1828,7 @@ SfxAllItemSet::SfxAllItemSet(const SfxAllItemSet &rCopy)
static USHORT *AddRanges_Impl(
USHORT *pUS, std::ptrdiff_t nOldSize, USHORT nIncr)
-/* Diese interne Funktion erzeugt ein neues Which-Range-Array, welches von
+/* Diese interne Funktion erzeugt ein neues Which-Range-Array, welches von
dem 'nOldSize'-USHORTs langen 'pUS' kopiert wird und hinten an Platz
f"ur 'nIncr' neue USHORTs hat. Das terminierende USHORT mit der '0'
wird weder in 'nOldSize' noch in 'nIncr' mitgez"ahlt, sondern implizit
@@ -2019,7 +2019,7 @@ const SfxPoolItem* SfxAllItemSet::Put( const SfxPoolItem& rItem, USHORT nWhich )
// -----------------------------------------------------------------------
-/* Diese Methode wird forwarded, damit sie nicht durch die anderen
+/* Diese Methode wird forwarded, damit sie nicht durch die anderen
Put-Methoden dieser SubClass gehided wird.
*/
diff --git a/svl/source/items/lckbitem.cxx b/svl/source/items/lckbitem.cxx
index 43a931fdacb7..6a36a4854f89 100644
--- a/svl/source/items/lckbitem.cxx
+++ b/svl/source/items/lckbitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ SfxLockBytesItem::SfxLockBytesItem()
// -----------------------------------------------------------------------
SfxLockBytesItem::SfxLockBytesItem( USHORT nW, SvLockBytes *pLockBytes )
-: SfxPoolItem( nW ),
+: SfxPoolItem( nW ),
_xVal( pLockBytes )
{
}
@@ -60,7 +60,7 @@ SfxLockBytesItem::SfxLockBytesItem( USHORT nW, SvLockBytes *pLockBytes )
// -----------------------------------------------------------------------
SfxLockBytesItem::SfxLockBytesItem( USHORT nW, SvStream &rStream )
-: SfxPoolItem( nW )
+: SfxPoolItem( nW )
{
rStream.Seek( 0L );
_xVal = new SvLockBytes( new SvCacheStream(), TRUE );
@@ -72,7 +72,7 @@ SfxLockBytesItem::SfxLockBytesItem( USHORT nW, SvStream &rStream )
// -----------------------------------------------------------------------
SfxLockBytesItem::SfxLockBytesItem( const SfxLockBytesItem& rItem )
-: SfxPoolItem( rItem ),
+: SfxPoolItem( rItem ),
_xVal( rItem._xVal )
{
}
@@ -99,7 +99,7 @@ SfxPoolItem* SfxLockBytesItem::Clone(SfxItemPool *) const
// -----------------------------------------------------------------------
-#define MAX_BUF 32000
+#define MAX_BUF 32000
SfxPoolItem* SfxLockBytesItem::Create( SvStream &rStream, USHORT ) const
{
diff --git a/svl/source/items/macitem.cxx b/svl/source/items/macitem.cxx
index bd0cfd77125d..622d0d7af616 100644
--- a/svl/source/items/macitem.cxx
+++ b/svl/source/items/macitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -208,7 +208,7 @@ int SvxMacroItem::operator==( const SfxPoolItem& rAttr ) const
{
const SvxMacro *pOwnMac = rOwn.GetObject(nNo);
const SvxMacro *pOtherMac = rOther.GetObject(nNo);
- if ( rOwn.GetKey(pOwnMac) != rOther.GetKey(pOtherMac) ||
+ if ( rOwn.GetKey(pOwnMac) != rOther.GetKey(pOtherMac) ||
pOwnMac->GetLibName() != pOtherMac->GetLibName() ||
pOwnMac->GetMacName() != pOtherMac->GetMacName() )
return FALSE;
@@ -229,11 +229,11 @@ SfxPoolItem* SvxMacroItem::Clone( SfxItemPool* ) const
SfxItemPresentation SvxMacroItem::GetPresentation
(
SfxItemPresentation /*ePres*/,
- SfxMapUnit /*eCoreUnit*/,
- SfxMapUnit /*ePresUnit*/,
- XubString& rText,
+ SfxMapUnit /*eCoreUnit*/,
+ SfxMapUnit /*ePresUnit*/,
+ XubString& rText,
const IntlWrapper *
-) const
+) const
{
/*!!!
SvxMacroTableDtor& rTbl = (SvxMacroTableDtor&)GetMacroTable();
diff --git a/svl/source/items/nranges.cxx b/svl/source/items/nranges.cxx
index 3fa078876e2f..9a086cedc128 100644
--- a/svl/source/items/nranges.cxx
+++ b/svl/source/items/nranges.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#ifdef DBG_UTIL
-#define DBG_CHECK_RANGES(NUMTYPE, pArr) \
+#define DBG_CHECK_RANGES(NUMTYPE, pArr) \
for ( const NUMTYPE *pRange = pArr; *pRange; pRange += 2 ) \
{ \
DBG_ASSERT( pRange[0] <= pRange[1], "ranges must be sorted" ); \
@@ -62,7 +62,7 @@ inline void Swap_Impl(const NUMTYPE *& rp1, const NUMTYPE *& rp2)
NUMTYPE InitializeRanges_Impl( NUMTYPE *&rpRanges, va_list pArgs,
NUMTYPE nWh1, NUMTYPE nWh2, NUMTYPE nNull )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Creates an USHORT-ranges-array in 'rpRanges' using 'nWh1' and 'nWh2' as
first range, 'nNull' as terminator or start of 2nd range and 'pArgs' as
@@ -87,7 +87,7 @@ NUMTYPE InitializeRanges_Impl( NUMTYPE *&rpRanges, va_list pArgs,
va_arg( pArgs, NUMTYPE_ARG ) ) ) )
{
aNumArr.Insert( nIns, nCnt++ );
- if ( 0 == (nCnt & 1) ) // 4,6,8, usw.
+ if ( 0 == (nCnt & 1) ) // 4,6,8, usw.
{
DBG_ASSERT( aNumArr[ nCnt-2 ] <= nIns, "Ungueltiger Bereich" );
nSize += nIns - aNumArr[ nCnt-2 ] + 1;
@@ -109,7 +109,7 @@ NUMTYPE InitializeRanges_Impl( NUMTYPE *&rpRanges, va_list pArgs,
NUMTYPE Count_Impl( const NUMTYPE *pRanges )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Determines the number of NUMTYPEs in an 0-terminated array of pairs of
NUMTYPEs. The terminating 0 is not included in the count.
@@ -129,7 +129,7 @@ NUMTYPE Count_Impl( const NUMTYPE *pRanges )
NUMTYPE Capacity_Impl( const NUMTYPE *pRanges )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Determines the total number of NUMTYPEs described in an 0-terminated
array of pairs of NUMTYPEs, each representing an range of NUMTYPEs.
@@ -153,7 +153,7 @@ NUMTYPE Capacity_Impl( const NUMTYPE *pRanges )
SfxNumRanges::SfxNumRanges( const SfxNumRanges &rOrig )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Copy-Ctor.
*/
@@ -173,7 +173,7 @@ SfxNumRanges::SfxNumRanges( const SfxNumRanges &rOrig )
SfxNumRanges::SfxNumRanges( NUMTYPE nWhich1, NUMTYPE nWhich2 )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Constructs an SfxNumRanges-instance from one range of NUMTYPEs.
@@ -192,7 +192,7 @@ SfxNumRanges::SfxNumRanges( NUMTYPE nWhich1, NUMTYPE nWhich2 )
SfxNumRanges::SfxNumRanges( NUMTYPE_ARG nWh0, NUMTYPE_ARG nWh1, NUMTYPE_ARG nNull, ... )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Constructs an SfxNumRanges-instance from more than one sorted ranges of
NUMTYPEs terminated with one 0.
@@ -215,7 +215,7 @@ SfxNumRanges::SfxNumRanges( NUMTYPE_ARG nWh0, NUMTYPE_ARG nWh1, NUMTYPE_ARG nNul
SfxNumRanges::SfxNumRanges( const NUMTYPE* pArr )
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Constcurts an SfxNumRanges-instance from an sorted ranges of NUMTYPEs,
terminates with on 0.
@@ -269,7 +269,7 @@ SfxNumRanges& SfxNumRanges::operator =
const SfxNumRanges &rRanges
)
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Assigns ranges from 'rRanges' to '*this'.
*/
@@ -301,7 +301,7 @@ SfxNumRanges& SfxNumRanges::operator +=
const SfxNumRanges &rRanges
)
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Merges *this with 'rRanges'.
@@ -461,7 +461,7 @@ SfxNumRanges& SfxNumRanges::operator -=
const SfxNumRanges &rRanges
)
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Removes 'rRanges' from '*this'.
@@ -487,10 +487,10 @@ SfxNumRanges& SfxNumRanges::operator -=
NUMTYPE nPos1 = 0, nPos2 = 0, nTargetPos = 0;
while( _pRanges[ nPos1 ] )
{
- NUMTYPE l1 = _pRanges[ nPos1 ]; // lower bound of interval 1
- NUMTYPE u1 = _pRanges[ nPos1+1 ]; // upper bound of interval 1
- NUMTYPE l2 = rRanges._pRanges[ nPos2 ]; // lower bound of interval 2
- NUMTYPE u2 = rRanges._pRanges[ nPos2+1 ]; // upper bound of interval 2
+ NUMTYPE l1 = _pRanges[ nPos1 ]; // lower bound of interval 1
+ NUMTYPE u1 = _pRanges[ nPos1+1 ]; // upper bound of interval 1
+ NUMTYPE l2 = rRanges._pRanges[ nPos2 ]; // lower bound of interval 2
+ NUMTYPE u2 = rRanges._pRanges[ nPos2+1 ]; // upper bound of interval 2
// boundary cases
// * subtrahend is empty -> copy the minuend
@@ -662,7 +662,7 @@ SfxNumRanges& SfxNumRanges::operator /=
const SfxNumRanges &rRanges
)
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Determines intersection of '*this' with 'rRanges'.
@@ -697,10 +697,10 @@ SfxNumRanges& SfxNumRanges::operator /=
NUMTYPE nPos1 = 0, nPos2 = 0, nTargetPos = 0;
while( _pRanges[ nPos1 ] != 0 && rRanges._pRanges[ nPos2 ] != 0 )
{
- NUMTYPE l1 = _pRanges[ nPos1 ]; // lower bound of interval 1
- NUMTYPE u1 = _pRanges[ nPos1+1 ]; // upper bound of interval 1
- NUMTYPE l2 = rRanges._pRanges[ nPos2 ]; // lower bound of interval 2
- NUMTYPE u2 = rRanges._pRanges[ nPos2+1 ]; // upper bound of interval 2
+ NUMTYPE l1 = _pRanges[ nPos1 ]; // lower bound of interval 1
+ NUMTYPE u1 = _pRanges[ nPos1+1 ]; // upper bound of interval 1
+ NUMTYPE l2 = rRanges._pRanges[ nPos2 ]; // lower bound of interval 2
+ NUMTYPE u2 = rRanges._pRanges[ nPos2+1 ]; // upper bound of interval 2
if( u1 < l2 )
{
@@ -779,7 +779,7 @@ SfxNumRanges& SfxNumRanges::operator /=
BOOL SfxNumRanges::Intersects( const SfxNumRanges &rRanges ) const
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Determines if at least one range in 'rRanges' intersects with one
range in '*this'.
@@ -823,7 +823,7 @@ BOOL SfxNumRanges::Intersects( const SfxNumRanges &rRanges ) const
NUMTYPE SfxNumRanges::Count() const
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Determines the number of USHORTs in the set described by the ranges
of USHORTs in '*this'.
@@ -837,7 +837,7 @@ NUMTYPE SfxNumRanges::Count() const
BOOL SfxNumRanges::Contains( NUMTYPE n ) const
-/** <H3>Description</H3>
+/** <H3>Description</H3>
Determines if '*this' contains 'n'.
*/
diff --git a/svl/source/items/poolcach.cxx b/svl/source/items/poolcach.cxx
index 07b0f1a6ddac..2980722a7b47 100644
--- a/svl/source/items/poolcach.cxx
+++ b/svl/source/items/poolcach.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ DBG_NAME(SfxItemPoolCache)
struct SfxItemModifyImpl
{
const SfxSetItem *pOrigItem;
- SfxSetItem *pPoolItem;
+ SfxSetItem *pPoolItem;
};
SV_DECL_VARARR( SfxItemModifyArr_Impl, SfxItemModifyImpl, 8, 8 )
@@ -112,7 +112,7 @@ const SfxSetItem& SfxItemPoolCache::ApplyTo( const SfxSetItem &rOrigItem, BOOL b
{
rMapEntry.pPoolItem->AddRef(2); // einen davon fuer den Cache
if ( bNew )
- pPool->Put( rOrigItem ); //! AddRef??
+ pPool->Put( rOrigItem ); //! AddRef??
}
return *rMapEntry.pPoolItem;
}
@@ -135,7 +135,7 @@ const SfxSetItem& SfxItemPoolCache::ApplyTo( const SfxSetItem &rOrigItem, BOOL b
// Refernzzaehler anpassen, je einen davon fuer den Cache
pNewPoolItem->AddRef( pNewPoolItem != &rOrigItem ? 2 : 1 );
if ( bNew )
- pPool->Put( rOrigItem ); //! AddRef??
+ pPool->Put( rOrigItem ); //! AddRef??
// die Transformation im Cache eintragen
SfxItemModifyImpl aModify;
diff --git a/svl/source/items/poolio.cxx b/svl/source/items/poolio.cxx
index 672bc25b1f98..bf5cc858a937 100644
--- a/svl/source/items/poolio.cxx
+++ b/svl/source/items/poolio.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ DBG_NAME(SfxItemPool);
void SfxItemPool::SetStoringPool( const SfxItemPool *pStoringPool )
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode setzt den <SfxItemPool>, der gerade gespeichert wird.
Sie sollte nur in Notf"allen verwendet werden, um z.B. File-Format-
@@ -69,7 +69,7 @@ void SfxItemPool::SetStoringPool( const SfxItemPool *pStoringPool )
const SfxItemPool* SfxItemPool::GetStoringPool()
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode liefert den <SfxItemPool>, der gerade gespeichert wird.
Sie sollte nur in Notf"allen verwendet werden, um z.B. File-Format-
@@ -86,7 +86,7 @@ const SfxItemPool* SfxItemPool::GetStoringPool()
SvStream &SfxItemPool::Store(SvStream &rStream) const
-/* [Beschreibung]
+/* [Beschreibung]
Der SfxItemPool wird inklusive aller seiner Sekund"arpools mit
Pool-Defaults und gepoolten Items in dem angegebenen Stream gespeichert.
@@ -96,45 +96,45 @@ SvStream &SfxItemPool::Store(SvStream &rStream) const
[Fileformat]
;zun"achst ein Kompatiblit"ats-Header-Block
- Start: 0x1111 SFX_ITEMPOOL_TAG_STARTPOOLS(_4/_5)
- BYTE MAJOR_VER ;SfxItemPool-Version
- BYTE MINOR_VER ;"
- 0xFFFF SFX_ITEMPOOL_TAG_TRICK4OLD ;ex. GetVersion()
- USHORT 0x0000 ;Pseudo-StyleSheetPool
- USHORT 0x0000 ;Pseudo-StyleSheetPool
+ Start: 0x1111 SFX_ITEMPOOL_TAG_STARTPOOLS(_4/_5)
+ BYTE MAJOR_VER ;SfxItemPool-Version
+ BYTE MINOR_VER ;"
+ 0xFFFF SFX_ITEMPOOL_TAG_TRICK4OLD ;ex. GetVersion()
+ USHORT 0x0000 ;Pseudo-StyleSheetPool
+ USHORT 0x0000 ;Pseudo-StyleSheetPool
;den ganzen Pool in einen Record
- record SfxMiniRecod(SFX_ITEMPOOL_REC)
+ record SfxMiniRecod(SFX_ITEMPOOL_REC)
;je ein Header vorweg
- Header: record SfxMiniRecord(SFX_ITEMPOOL_REC_HEADER)
- USHORT GetVersion() ;Which-Ranges etc.
- String GetName() ;Pool-Name
+ Header: record SfxMiniRecord(SFX_ITEMPOOL_REC_HEADER)
+ USHORT GetVersion() ;Which-Ranges etc.
+ String GetName() ;Pool-Name
;die Versions-Map, um WhichIds neuer File-Versionen mappen zu k"onnen
- Versions: record SfxMultiRecord(SFX_ITEMPOOL_REC_VERSIONS, 0)
- USHORT OldVersion
- USHORT OldStartWhich
- USHORT OldEndWhich
+ Versions: record SfxMultiRecord(SFX_ITEMPOOL_REC_VERSIONS, 0)
+ USHORT OldVersion
+ USHORT OldStartWhich
+ USHORT OldEndWhich
USHORT[] NewWhich (OldEndWhich-OldStartWhich+1)
;jetzt die gepoolten Items (zuerst nicht-SfxSetItems)
- Items: record SfxMultiRecord(SFX_ITEMPOOL_REC_WHICHIDS, 0)
- content SlotId, 0
- USHORT WhichId
- USHORT pItem->GetVersion()
- USHORT Array-Size
- record SfxMultiRecord(SFX_, 0)
- content Surrogate
- USHORT RefCount
- unknown pItem->Store()
+ Items: record SfxMultiRecord(SFX_ITEMPOOL_REC_WHICHIDS, 0)
+ content SlotId, 0
+ USHORT WhichId
+ USHORT pItem->GetVersion()
+ USHORT Array-Size
+ record SfxMultiRecord(SFX_, 0)
+ content Surrogate
+ USHORT RefCount
+ unknown pItem->Store()
;jetzt die gesetzten Pool-Defaults
- Defaults: record SfxMultiRecord(SFX_ITEMPOOL_REC_DEFAULTS, 0)
- content SlotId, 0
- USHORT WhichId
- USHORT pPoolDef->GetVersion()
- unknown pPoolDef->Store();
+ Defaults: record SfxMultiRecord(SFX_ITEMPOOL_REC_DEFAULTS, 0)
+ content SlotId, 0
+ USHORT WhichId
+ USHORT pPoolDef->GetVersion()
+ unknown pPoolDef->Store();
;dahinter folgt ggf. der Secondary ohne Kompatiblit"ats-Header-Block
*/
@@ -319,7 +319,7 @@ SvStream &SfxItemPool::Store(SvStream &rStream) const
void SfxItemPool::LoadCompleted()
-/* [Beschreibung]
+/* [Beschreibung]
Wurde der SfxItemPool mit 'bRefCounts' == FALSE geladen, mu\s das
Laden der Dokumentinhalte mit einem Aufruf dieser Methode beendet
@@ -646,9 +646,9 @@ SvStream &SfxItemPool::Load(SvStream &rStream)
rStream >> nVersion;
rStream >> nCount;
//!SFX_ASSERTWARNING( !nSlotId || !HasMap() ||
- //! ( nSlotId == GetSlotId( nWhich, FALSE ) ) ||
- //! !GetSlotId( nWhich, FALSE ),
- //! nWhich, "Slot/Which mismatch" );
+ //! ( nSlotId == GetSlotId( nWhich, FALSE ) ) ||
+ //! !GetSlotId( nWhich, FALSE ),
+ //! nWhich, "Slot/Which mismatch" );
USHORT nIndex = GetIndex_Impl(nWhich);
SfxPoolItemArray_Impl **ppArr = pImp->ppPoolItems + nIndex;
@@ -698,7 +698,7 @@ SvStream &SfxItemPool::Load(SvStream &rStream)
rStream >> nVersion;
//!SFX_ASSERTWARNING( !HasMap() || ( nSlotId == GetSlotId( nWhich, FALSE ) ),
- //! nWhich, "Slot/Which mismatch" );
+ //! nWhich, "Slot/Which mismatch" );
// Pool-Default-Item selbst laden
SfxPoolItem *pItem =
@@ -843,9 +843,9 @@ SvStream &SfxItemPool::Load1_Impl(SvStream &rStream)
nWhich = nMappedWhich;
//!SFX_ASSERTWARNING( !nSlot || !HasMap() ||
- //! ( nSlot == GetSlotId( nWhich, FALSE ) ) ||
- //! !GetSlotId( nWhich, FALSE ),
- //! nWhich, "Slot/Which mismatch" );
+ //! ( nSlot == GetSlotId( nWhich, FALSE ) ) ||
+ //! !GetSlotId( nWhich, FALSE ),
+ //! nWhich, "Slot/Which mismatch" );
USHORT nIndex = GetIndex_Impl(nWhich);
ppArr = pImp->ppPoolItems + nIndex;
@@ -1028,13 +1028,13 @@ SvStream &SfxItemPool::Load1_Impl(SvStream &rStream)
const SfxPoolItem* SfxItemPool::LoadSurrogate
(
- SvStream& rStream, // vor einem Surrogat positionierter Stream
- USHORT& rWhich, // Which-Id des zu ladenden <SfxPoolItem>s
- USHORT nSlotId, // Slot-Id des zu ladenden <SfxPoolItem>s
- const SfxItemPool* pRefPool // <SfxItemPool> in dem das Surrogat gilt
+ SvStream& rStream, // vor einem Surrogat positionierter Stream
+ USHORT& rWhich, // Which-Id des zu ladenden <SfxPoolItem>s
+ USHORT nSlotId, // Slot-Id des zu ladenden <SfxPoolItem>s
+ const SfxItemPool* pRefPool // <SfxItemPool> in dem das Surrogat gilt
)
-/* [Beschreibung]
+/* [Beschreibung]
L"adt Surrogat aus 'rStream' und liefert das dadurch in 'rRefPool'
repr"asentierte SfxPoolItem zu"ruck. Ist das im Stream befindliche
@@ -1051,14 +1051,14 @@ const SfxPoolItem* SfxItemPool::LoadSurrogate
nicht in eine Which-Id dieses Pools gemappt werden, wird ebenfalls 0
zur"uckgeliefert.
- Preconditions: - Pool mu\s geladen sein
+ Preconditions: - Pool mu\s geladen sein
- LoadCompleted darf noch nicht gerufen worden sein
- 'rStream' steht genau an der Position, an der ein
Surrogat f"ur ein Item mit der SlotId 'nSlotId' und
der WhichId 'rWhichId' mit StoreSurrogate gepeichert
wurde
- Postconditions: - 'rStream' ist so positioniert, wie auch StoreSurrogate
+ Postconditions: - 'rStream' ist so positioniert, wie auch StoreSurrogate
sein speichern beendet hatte
- konnte ein Item geladen werden, befindet es sich
in diesem SfxItemPool
@@ -1155,11 +1155,11 @@ const SfxPoolItem* SfxItemPool::LoadSurrogate
bool SfxItemPool::StoreSurrogate
(
- SvStream& rStream,
- const SfxPoolItem* pItem
-) const
+ SvStream& rStream,
+ const SfxPoolItem* pItem
+) const
-/* [Beschreibung]
+/* [Beschreibung]
Speichert ein Surrogat f"ur '*pItem' in 'rStream'.
@@ -1237,7 +1237,7 @@ bool SfxItemPool::IsInStoringRange( USHORT nWhich ) const
void SfxItemPool::SetStoringRange( USHORT nFrom, USHORT nTo )
-/* [Beschreibung]
+/* [Beschreibung]
Mit dieser Methode kann der Which-Bereich eingeengt werden, der
von ItemSets dieses Pool (und dem Pool selbst) gespeichert wird.
@@ -1262,15 +1262,15 @@ void SfxItemPool::SetStoringRange( USHORT nFrom, USHORT nTo )
void SfxItemPool::SetVersionMap
(
- USHORT nVer, /* neue Versionsnummer */
+ USHORT nVer, /* neue Versionsnummer */
USHORT nOldStart, /* alte erste Which-Id */
USHORT nOldEnd, /* alte letzte Which-Id */
- USHORT* pOldWhichIdTab /* Array mit genau dem Aufbau der Which-Ids
+ USHORT* pOldWhichIdTab /* Array mit genau dem Aufbau der Which-Ids
der vorhergehenden Version, in denen
die jeweils neue Which-Id steht. */
)
-/* [Beschreibung]
+/* [Beschreibung]
Mit dieser Methode k"onnen neue, inkompatible Which-Id-Folgen oder
Verteilungen realisiert werden. Pools, die noch mit alten Versionen
@@ -1279,8 +1279,8 @@ void SfxItemPool::SetVersionMap
unter Verlust neuer Attribute geladen werden, da die Map mit dem Pool
gespeichert wird.
- Precondition: Pool darf noch nicht geladen sein
- Postcondition: Which-Ids aus fr"uheren Versionen k"onnen bei Laden auf
+ Precondition: Pool darf noch nicht geladen sein
+ Postcondition: Which-Ids aus fr"uheren Versionen k"onnen bei Laden auf
Version 'nVer' gemappt werden
Laufzeit: 1.5 * new + 10
@@ -1353,10 +1353,10 @@ void SfxItemPool::SetVersionMap
USHORT SfxItemPool::GetNewWhich
(
- USHORT nFileWhich // die aus dem Stream geladene Which-Id
-) const
+ USHORT nFileWhich // die aus dem Stream geladene Which-Id
+) const
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methoden rechnet Which-Ids aus einem File-Format in die der
aktuellen Pool-Version um. Ist das File-Format "alter, werden die vom
@@ -1368,9 +1368,9 @@ USHORT SfxItemPool::GetNewWhich
Die Berechnung ist nur f"ur Which-Ids definiert, die in der betreffenden
File-Version unterst"utzt wurden. Dies ist per Assertion abgesichert.
- Precondition: Pool mu\s geladen sein
- Postcondition: unver"andert
- Laufzeit: linear(Anzahl der Sekund"arpools) +
+ Precondition: Pool mu\s geladen sein
+ Postcondition: unver"andert
+ Laufzeit: linear(Anzahl der Sekund"arpools) +
linear(Differenz zwischen alter und neuer Version)
@@ -1402,7 +1402,7 @@ USHORT SfxItemPool::GetNewWhich
{
SfxPoolVersion_Impl *pVerInfo = pImp->aVersions[nMap-1];
if ( pVerInfo->_nVer > pImp->nVersion )
- { USHORT nOfs;
+ { USHORT nOfs;
USHORT nCount = pVerInfo->_nEnd - pVerInfo->_nStart + 1;
for ( nOfs = 0;
nOfs <= nCount &&
@@ -1453,14 +1453,14 @@ bool SfxItemPool::IsInVersionsRange( USHORT nWhich ) const
bool SfxItemPool::IsCurrentVersionLoading() const
-/* [Beschreibung]
+/* [Beschreibung]
Mit dieser Methode kann festgestellt werden, ob die geladene Pool-Version
dem aktuellen Pool-Aufbau entspricht.
- Precondition: Pool mu\s geladen sein
- Postcondition: unver"andert
- Laufzeit: linear(Anzahl der Sekund"arpools)
+ Precondition: Pool mu\s geladen sein
+ Postcondition: unver"andert
+ Laufzeit: linear(Anzahl der Sekund"arpools)
[Querverweise]
@@ -1480,13 +1480,13 @@ bool SfxItemPool::IsCurrentVersionLoading() const
USHORT SfxItemPool::GetVersion() const
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode liefert die aktuelle Versionsnummer des SfxItemPool-Aufbaus
(also des Which-Bereichs).
- Precondition: keine
- Postcondition: unver"andert
+ Precondition: keine
+ Postcondition: unver"andert
Laufzeit: 2
@@ -1512,13 +1512,13 @@ USHORT SfxItemPool::GetVersion() const
USHORT SfxItemPool::GetLoadingVersion() const
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode liefert die Versionsnummer des SfxItemPool-Aufbaus
(also des Which-Bereichs), die bei Laden vorgefunden wurde.
- Precondition: Pool mu\s geladen sein
- Postcondition: unver"andert
+ Precondition: Pool mu\s geladen sein
+ Postcondition: unver"andert
Laufzeit: 2
@@ -1553,7 +1553,7 @@ bool SfxItemPool::IsVer2_Impl() const
bool SfxItemPool::StoreItem( SvStream &rStream, const SfxPoolItem &rItem,
bool bDirect ) const
-/* [Beschreibung]
+/* [Beschreibung]
Speichert das <SfxPoolItem> 'rItem' in den <SvStream> 'rStream'
entweder als Surrogat ('bDirect == FALSE') oder direkt mit 'rItem.Store()'.
@@ -1563,14 +1563,14 @@ bool SfxItemPool::StoreItem( SvStream &rStream, const SfxPoolItem &rItem,
Das Item wird im Stream wie folgt abgelegt:
- USHORT rItem.Which()
- USHORT GetSlotId( rItem.Which() ) bzw. 0 falls nicht verf"urbar
- USHORT GetSurrogate( &rItem ) bzw. SFX_ITEM_DIRECT bei '!SFX_ITEM_POOLBLE'
+ USHORT rItem.Which()
+ USHORT GetSlotId( rItem.Which() ) bzw. 0 falls nicht verf"urbar
+ USHORT GetSurrogate( &rItem ) bzw. SFX_ITEM_DIRECT bei '!SFX_ITEM_POOLBLE'
optional (falls 'bDirect == TRUE' oder '!rItem.IsPoolable()':
USHORT rItem.GetVersion()
- ULONG Size
+ ULONG Size
Size rItem.Store()
@@ -1601,7 +1601,7 @@ bool SfxItemPool::StoreItem( SvStream &rStream, const SfxPoolItem &rItem,
if ( bDirect || !pPool->StoreSurrogate( rStream, &rItem ) )
{
rStream << nItemVersion;
- rStream << (UINT32) 0L; // Platz fuer Laenge in Bytes
+ rStream << (UINT32) 0L; // Platz fuer Laenge in Bytes
ULONG nIStart = rStream.Tell();
rItem.Store(rStream, nItemVersion);
ULONG nIEnd = rStream.Tell();
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index 83af20cf9b9e..a3e3b9252408 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -123,8 +123,8 @@ SfxPoolItem::SfxPoolItem( USHORT nW )
// -----------------------------------------------------------------------
SfxPoolItem::SfxPoolItem( const SfxPoolItem& rCpy )
- : nRefCount( 0 ), // wird ja ein neues Object!
- nWhich( rCpy.Which() ) // Funktion rufen wg. ChkThis()
+ : nRefCount( 0 ), // wird ja ein neues Object!
+ nWhich( rCpy.Which() ) // Funktion rufen wg. ChkThis()
, nKind( 0 )
{
DBG_CTOR(SfxPoolItem, 0);
@@ -256,14 +256,14 @@ void SfxPoolItem::writeUnicodeString(SvStream & rStream,
// ------------------------------------------------------------------------
SfxItemPresentation SfxPoolItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/, // IN: wie formatiert werden soll
- SfxMapUnit /*eCoreMetric*/, // IN: Ma\seinheit des SfxPoolItems
- SfxMapUnit /*ePresentationMetric*/, // IN: Wunsch-Ma\einheit der Darstellung
- XubString& /*rText*/, // OUT: textuelle Darstellung
+ SfxItemPresentation /*ePresentation*/, // IN: wie formatiert werden soll
+ SfxMapUnit /*eCoreMetric*/, // IN: Ma\seinheit des SfxPoolItems
+ SfxMapUnit /*ePresentationMetric*/, // IN: Wunsch-Ma\einheit der Darstellung
+ XubString& /*rText*/, // OUT: textuelle Darstellung
const IntlWrapper *
-) const
+) const
-/* [Beschreibung]
+/* [Beschreibung]
"Uber diese virtuelle Methode kann von den SfxPoolItem-Subklassen
eine textuelle Datstellung des Wertes erhalten werden. Sie sollte
@@ -280,7 +280,7 @@ SfxItemPresentation SfxPoolItem::GetPresentation
[R"uckgabewert]
- SfxItemPresentation SFX_ITEM_PRESENTATION_NONE
+ SfxItemPresentation SFX_ITEM_PRESENTATION_NONE
es konnte keine Text-Darstellung erzeugt werden
SFX_ITEM_PRESENTATION_NAMELESS
@@ -341,12 +341,12 @@ rCmp
// ------------------------------------------------------------------------
SfxItemPresentation SfxVoidItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper *
-) const
+) const
{
DBG_CHKTHIS(SfxVoidItem, 0);
rText.AssignAscii(RTL_CONSTASCII_STRINGPARAM("Void"));
diff --git a/svl/source/items/ptitem.cxx b/svl/source/items/ptitem.cxx
index fddb153d2ae2..d8e976576920 100644
--- a/svl/source/items/ptitem.cxx
+++ b/svl/source/items/ptitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,12 +87,12 @@ SfxPointItem::SfxPointItem( const SfxPointItem& rItem ) :
SfxItemPresentation SfxPointItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper *
-) const
+) const
{
DBG_CHKTHIS(SfxPointItem, 0);
rText = UniString::CreateFromInt32(aVal.X());
diff --git a/svl/source/items/rectitem.cxx b/svl/source/items/rectitem.cxx
index 6383bafc70ce..c30dc8b92dd8 100644
--- a/svl/source/items/rectitem.cxx
+++ b/svl/source/items/rectitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,12 +84,12 @@ SfxRectangleItem::SfxRectangleItem( const SfxRectangleItem& rItem ) :
SfxItemPresentation SfxRectangleItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper *
-) const
+) const
{
DBG_CHKTHIS(SfxRectangleItem, 0);
rText = UniString::CreateFromInt32(aVal.Top());
diff --git a/svl/source/items/rngitem.cxx b/svl/source/items/rngitem.cxx
index a08329360d2a..6cbab440787e 100644
--- a/svl/source/items/rngitem.cxx
+++ b/svl/source/items/rngitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@
#include <svl/rngitem.hxx>
#include "rngitem_inc.cxx"
-#define NUMTYPE sal_uInt32
+#define NUMTYPE sal_uInt32
#define SfxXRangeItem SfxULongRangeItem
#define SfxXRangesItem SfxULongRangesItem
#include <svl/rngitem.hxx>
diff --git a/svl/source/items/rngitem_inc.cxx b/svl/source/items/rngitem_inc.cxx
index 97a641131b3e..f5c4e410266e 100644
--- a/svl/source/items/rngitem_inc.cxx
+++ b/svl/source/items/rngitem_inc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,12 +83,12 @@ SfxXRangeItem::SfxXRangeItem( const SfxXRangeItem& rItem ) :
SfxItemPresentation SfxXRangeItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper *
-) const
+) const
{
rText = UniString::CreateFromInt64(nFrom);
rText += ':';
@@ -118,7 +118,7 @@ SfxPoolItem* SfxXRangeItem::Clone(SfxItemPool *) const
SfxPoolItem* SfxXRangeItem::Create(SvStream &rStream, USHORT) const
{
- NUMTYPE nVon, nBis;
+ NUMTYPE nVon, nBis;
rStream >> nVon;
rStream >> nBis;
return new SfxXRangeItem( Which(), nVon, nBis );
@@ -136,14 +136,14 @@ SvStream& SfxXRangeItem::Store(SvStream &rStream, USHORT) const
//=========================================================================
SfxXRangesItem::SfxXRangesItem()
-: _pRanges(0)
+: _pRanges(0)
{
}
//-------------------------------------------------------------------------
SfxXRangesItem::SfxXRangesItem( USHORT nWID, const NUMTYPE *pRanges )
-: SfxPoolItem( nWID )
+: SfxPoolItem( nWID )
{
NUMTYPE nCount = Count_Impl(pRanges) + 1;
_pRanges = new NUMTYPE[nCount];
@@ -153,7 +153,7 @@ SfxXRangesItem::SfxXRangesItem( USHORT nWID, const NUMTYPE *pRanges )
//-------------------------------------------------------------------------
SfxXRangesItem::SfxXRangesItem( USHORT nWID, SvStream &rStream )
-: SfxPoolItem( nWID )
+: SfxPoolItem( nWID )
{
NUMTYPE nCount;
rStream >> nCount;
@@ -166,7 +166,7 @@ SfxXRangesItem::SfxXRangesItem( USHORT nWID, SvStream &rStream )
//-------------------------------------------------------------------------
SfxXRangesItem::SfxXRangesItem( const SfxXRangesItem& rItem )
-: SfxPoolItem( rItem )
+: SfxPoolItem( rItem )
{
NUMTYPE nCount = Count_Impl(rItem._pRanges) + 1;
_pRanges = new NUMTYPE[nCount];
diff --git a/svl/source/items/sfontitm.cxx b/svl/source/items/sfontitm.cxx
index 4f41dfe63b39..8ba56f5e03fe 100644
--- a/svl/source/items/sfontitm.cxx
+++ b/svl/source/items/sfontitm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/sitem.cxx b/svl/source/items/sitem.cxx
index 48953164d4d3..14ddc3370326 100644
--- a/svl/source/items/sitem.cxx
+++ b/svl/source/items/sitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/slstitm.cxx b/svl/source/items/slstitm.cxx
index 8177b35b600c..b16e0c97382a 100644
--- a/svl/source/items/slstitm.cxx
+++ b/svl/source/items/slstitm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,12 +46,12 @@ TYPEINIT1_AUTOFACTORY(SfxStringListItem, SfxPoolItem);
class SfxImpStringList
{
public:
- USHORT nRefCount;
- List aList;
+ USHORT nRefCount;
+ List aList;
SfxImpStringList() { nRefCount = 1; }
~SfxImpStringList();
- void Sort( BOOL bAscending, List* );
+ void Sort( BOOL bAscending, List* );
};
//------------------------------------------------------------------------
@@ -224,12 +224,12 @@ int SfxStringListItem::operator==( const SfxPoolItem& rItem ) const
SfxItemPresentation SfxStringListItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper *
-) const
+) const
{
rText.AssignAscii(RTL_CONSTASCII_STRINGPARAM("(List)"));
return SFX_ITEM_PRESENTATION_NONE;
@@ -312,7 +312,7 @@ void SfxStringListItem::SetString( const XubString& rStr )
// String gehoert der Liste
pImp->aList.Insert( pStr, LIST_APPEND );
- nStart += nLen + 1 ; // delimiter ueberspringen
+ nStart += nLen + 1 ; // delimiter ueberspringen
} while( nDelimPos != STRING_NOTFOUND );
// Kein Leerstring am Ende
diff --git a/svl/source/items/srchitem.cxx b/svl/source/items/srchitem.cxx
index 91ca71f180fe..845507057345 100644
--- a/svl/source/items/srchitem.cxx
+++ b/svl/source/items/srchitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,25 +78,25 @@ static Sequence< ::rtl::OUString > lcl_GetNotifyNames()
// names of transliteration relevant properties
static const char* aTranslitNames[] =
{
- "IsMatchCase", // 0
- "Japanese/IsMatchFullHalfWidthForms", // 1
- "Japanese/IsMatchHiraganaKatakana", // 2
- "Japanese/IsMatchContractions", // 3
- "Japanese/IsMatchMinusDashCho-on", // 4
- "Japanese/IsMatchRepeatCharMarks", // 5
- "Japanese/IsMatchVariantFormKanji", // 6
- "Japanese/IsMatchOldKanaForms", // 7
- "Japanese/IsMatch_DiZi_DuZu", // 8
- "Japanese/IsMatch_BaVa_HaFa", // 9
- "Japanese/IsMatch_TsiThiChi_DhiZi", // 10
- "Japanese/IsMatch_HyuIyu_ByuVyu", // 11
- "Japanese/IsMatch_SeShe_ZeJe", // 12
- "Japanese/IsMatch_IaIya", // 13
- "Japanese/IsMatch_KiKu", // 14
- "Japanese/IsIgnorePunctuation", // 15
- "Japanese/IsIgnoreWhitespace", // 16
- "Japanese/IsIgnoreProlongedSoundMark", // 17
- "Japanese/IsIgnoreMiddleDot" // 18
+ "IsMatchCase", // 0
+ "Japanese/IsMatchFullHalfWidthForms", // 1
+ "Japanese/IsMatchHiraganaKatakana", // 2
+ "Japanese/IsMatchContractions", // 3
+ "Japanese/IsMatchMinusDashCho-on", // 4
+ "Japanese/IsMatchRepeatCharMarks", // 5
+ "Japanese/IsMatchVariantFormKanji", // 6
+ "Japanese/IsMatchOldKanaForms", // 7
+ "Japanese/IsMatch_DiZi_DuZu", // 8
+ "Japanese/IsMatch_BaVa_HaFa", // 9
+ "Japanese/IsMatch_TsiThiChi_DhiZi", // 10
+ "Japanese/IsMatch_HyuIyu_ByuVyu", // 11
+ "Japanese/IsMatch_SeShe_ZeJe", // 12
+ "Japanese/IsMatch_IaIya", // 13
+ "Japanese/IsMatch_KiKu", // 14
+ "Japanese/IsIgnorePunctuation", // 15
+ "Japanese/IsIgnoreWhitespace", // 16
+ "Japanese/IsIgnoreProlongedSoundMark", // 17
+ "Japanese/IsIgnoreMiddleDot" // 18
};
const int nCount = SAL_N_ELEMENTS( aTranslitNames );
@@ -121,25 +121,25 @@ SvxSearchItem::SvxSearchItem( const sal_uInt16 nId ) :
Locale(),
2, 2, 2,
TransliterationModules_IGNORE_CASE ),
- eFamily ( SFX_STYLE_FAMILY_PARA ),
- nCommand ( 0 ),
- nCellType ( SVX_SEARCHIN_FORMULA ),
- nAppFlag ( SVX_SEARCHAPP_WRITER ),
- bRowDirection ( sal_True ),
- bAllTables ( sal_False ),
+ eFamily ( SFX_STYLE_FAMILY_PARA ),
+ nCommand ( 0 ),
+ nCellType ( SVX_SEARCHIN_FORMULA ),
+ nAppFlag ( SVX_SEARCHAPP_WRITER ),
+ bRowDirection ( sal_True ),
+ bAllTables ( sal_False ),
bSearchFiltered ( sal_False ),
- bNotes ( sal_False),
- bBackward ( sal_False ),
- bPattern ( sal_False ),
- bContent ( sal_False ),
- bAsianOptions ( FALSE )
+ bNotes ( sal_False),
+ bBackward ( sal_False ),
+ bPattern ( sal_False ),
+ bContent ( sal_False ),
+ bAsianOptions ( FALSE )
{
EnableNotification( lcl_GetNotifyNames() );
SvtSearchOptions aOpt;
- bBackward = aOpt.IsBackwards();
- bAsianOptions = aOpt.IsUseAsianOptions();
+ bBackward = aOpt.IsBackwards();
+ bAsianOptions = aOpt.IsUseAsianOptions();
bNotes = aOpt.IsNotes();
if (aOpt.IsUseRegularExpression())
@@ -199,22 +199,22 @@ SvxSearchItem::SvxSearchItem( const sal_uInt16 nId ) :
SvxSearchItem::SvxSearchItem( const SvxSearchItem& rItem ) :
- SfxPoolItem ( rItem ),
+ SfxPoolItem ( rItem ),
ConfigItem( ::rtl::OUString::createFromAscii( CFG_ROOT_NODE ) ),
- aSearchOpt ( rItem.aSearchOpt ),
- eFamily ( rItem.eFamily ),
- nCommand ( rItem.nCommand ),
- nCellType ( rItem.nCellType ),
- nAppFlag ( rItem.nAppFlag ),
- bRowDirection ( rItem.bRowDirection ),
- bAllTables ( rItem.bAllTables ),
+ aSearchOpt ( rItem.aSearchOpt ),
+ eFamily ( rItem.eFamily ),
+ nCommand ( rItem.nCommand ),
+ nCellType ( rItem.nCellType ),
+ nAppFlag ( rItem.nAppFlag ),
+ bRowDirection ( rItem.bRowDirection ),
+ bAllTables ( rItem.bAllTables ),
bSearchFiltered ( rItem.bSearchFiltered ),
- bNotes ( rItem.bNotes),
- bBackward ( rItem.bBackward ),
- bPattern ( rItem.bPattern ),
- bContent ( rItem.bContent ),
- bAsianOptions ( rItem.bAsianOptions )
+ bNotes ( rItem.bNotes),
+ bBackward ( rItem.bBackward ),
+ bPattern ( rItem.bPattern ),
+ bContent ( rItem.bContent ),
+ bAsianOptions ( rItem.bAsianOptions )
{
EnableNotification( lcl_GetNotifyNames() );
}
@@ -236,15 +236,15 @@ SfxPoolItem* SvxSearchItem::Clone( SfxItemPool *) const
//! used below
static BOOL operator == ( const SearchOptions& rItem1, const SearchOptions& rItem2 )
{
- return rItem1.algorithmType == rItem2.algorithmType &&
- rItem1.searchFlag == rItem2.searchFlag &&
- rItem1.searchString == rItem2.searchString &&
- rItem1.replaceString == rItem2.replaceString &&
- //rItem1.Locale == rItem2.Locale &&
- rItem1.changedChars == rItem2.changedChars &&
- rItem1.deletedChars == rItem2.deletedChars &&
- rItem1.insertedChars == rItem2.insertedChars &&
- rItem1.transliterateFlags == rItem2.transliterateFlags;
+ return rItem1.algorithmType == rItem2.algorithmType &&
+ rItem1.searchFlag == rItem2.searchFlag &&
+ rItem1.searchString == rItem2.searchString &&
+ rItem1.replaceString == rItem2.replaceString &&
+ //rItem1.Locale == rItem2.Locale &&
+ rItem1.changedChars == rItem2.changedChars &&
+ rItem1.deletedChars == rItem2.deletedChars &&
+ rItem1.insertedChars == rItem2.insertedChars &&
+ rItem1.transliterateFlags == rItem2.transliterateFlags;
}
@@ -252,19 +252,19 @@ int SvxSearchItem::operator==( const SfxPoolItem& rItem ) const
{
DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal which or type" );
const SvxSearchItem &rSItem = (SvxSearchItem &) rItem;
- return ( nCommand == rSItem.nCommand ) &&
- ( bBackward == rSItem.bBackward ) &&
- ( bPattern == rSItem.bPattern ) &&
- ( bContent == rSItem.bContent ) &&
- ( eFamily == rSItem.eFamily ) &&
- ( bRowDirection == rSItem.bRowDirection ) &&
- ( bAllTables == rSItem.bAllTables ) &&
+ return ( nCommand == rSItem.nCommand ) &&
+ ( bBackward == rSItem.bBackward ) &&
+ ( bPattern == rSItem.bPattern ) &&
+ ( bContent == rSItem.bContent ) &&
+ ( eFamily == rSItem.eFamily ) &&
+ ( bRowDirection == rSItem.bRowDirection ) &&
+ ( bAllTables == rSItem.bAllTables ) &&
( bSearchFiltered == rSItem.bSearchFiltered ) &&
- ( nCellType == rSItem.nCellType ) &&
- ( nAppFlag == rSItem.nAppFlag ) &&
- ( bAsianOptions == rSItem.bAsianOptions ) &&
- ( aSearchOpt == rSItem.aSearchOpt ) &&
- ( bNotes == rSItem.bNotes );
+ ( nCellType == rSItem.nCellType ) &&
+ ( nAppFlag == rSItem.nAppFlag ) &&
+ ( bAsianOptions == rSItem.bAsianOptions ) &&
+ ( aSearchOpt == rSItem.aSearchOpt ) &&
+ ( bNotes == rSItem.bNotes );
}
@@ -273,11 +273,11 @@ int SvxSearchItem::operator==( const SfxPoolItem& rItem ) const
SfxItemPresentation SvxSearchItem::GetPresentation
(
SfxItemPresentation ,
- SfxMapUnit ,
- SfxMapUnit ,
- XubString& ,
+ SfxMapUnit ,
+ SfxMapUnit ,
+ XubString& ,
const IntlWrapper *
-) const
+) const
{
return SFX_ITEM_PRESENTATION_NONE;
}
diff --git a/svl/source/items/stritem.cxx b/svl/source/items/stritem.cxx
index cc1cd2d4e1e6..ef6fb61a0ebf 100644
--- a/svl/source/items/stritem.cxx
+++ b/svl/source/items/stritem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index 89ba0f886ea8..4530313411a2 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,8 +52,8 @@
#include <unotools/syslocale.hxx>
#include <algorithm>
-#define STYLESTREAM "SfxStyleSheets"
-#define STYLESTREAM_VERSION USHORT(50)
+#define STYLESTREAM "SfxStyleSheets"
+#define STYLESTREAM_VERSION USHORT(50)
#ifdef DBG_UTIL
class DbgStyleSheetReferences
@@ -85,19 +85,19 @@ TYPEINIT1(SfxStyleSheetPoolHint, SfxHint);
SfxStyleSheetHintExtended::SfxStyleSheetHintExtended
(
- USHORT nAction, // SFX_STYLESHEET_... (s.o.)
+ USHORT nAction, // SFX_STYLESHEET_... (s.o.)
const String& rOldName
)
-: SfxStyleSheetHint( nAction ),
+: SfxStyleSheetHint( nAction ),
aName( rOldName )
{}
SfxStyleSheetHintExtended::SfxStyleSheetHintExtended
(
- USHORT nAction, // SFX_STYLESHEET_... (s.o.)
+ USHORT nAction, // SFX_STYLESHEET_... (s.o.)
const String& rOldName,
- SfxStyleSheetBase& rStyleSheet // geh"ort weiterhin dem Aufrufer
+ SfxStyleSheetBase& rStyleSheet // geh"ort weiterhin dem Aufrufer
)
-: SfxStyleSheetHint( nAction, rStyleSheet ),
+: SfxStyleSheetHint( nAction, rStyleSheet ),
aName( rOldName )
{}
@@ -105,18 +105,18 @@ SfxStyleSheetHintExtended::SfxStyleSheetHintExtended
SfxStyleSheetHint::SfxStyleSheetHint
(
- USHORT nAction, // SFX_STYLESHEET_... (s.o.)
- SfxStyleSheetBase& rStyleSheet // geh"ort weiterhin dem Aufrufer
+ USHORT nAction, // SFX_STYLESHEET_... (s.o.)
+ SfxStyleSheetBase& rStyleSheet // geh"ort weiterhin dem Aufrufer
)
-: pStyleSh( &rStyleSheet ),
+: pStyleSh( &rStyleSheet ),
nHint( nAction )
{}
SfxStyleSheetHint::SfxStyleSheetHint
(
- USHORT nAction // SFX_STYLESHEET_... (s.o.)
+ USHORT nAction // SFX_STYLESHEET_... (s.o.)
)
-: pStyleSh( NULL ),
+: pStyleSh( NULL ),
nHint( nAction )
{}
@@ -960,7 +960,7 @@ BOOL SfxStyleSheetBasePool::Load( SvStream& rStream )
// damit eigene ItemSets untergeschoben werden koennen
SfxItemSet& rSet = rSheet.GetItemSet();
rSet.ClearItem();
- //! SfxItemSet aTmpSet( *pTmpPool );
+ //! SfxItemSet aTmpSet( *pTmpPool );
/*!aTmpSet*/ rSet.Load( rStream );
//! rSet.Put( aTmpSet );
}
@@ -973,7 +973,7 @@ BOOL SfxStyleSheetBasePool::Load( SvStream& rStream )
rStream.Seek( nPos );
}
- // #72939# only loop through the styles that were really inserted
+ // #72939# only loop through the styles that were really inserted
ULONG n = aStyles.size();
//! delete pTmpPool;
@@ -1060,7 +1060,7 @@ BOOL SfxStyleSheetBasePool::Load1_Impl( SvStream& rStream )
// damit eigene ItemSets untergeschoben werden koennen
SfxItemSet& rSet = rSheet.GetItemSet();
rSet.ClearItem();
-//! SfxItemSet aTmpSet( *pTmpPool );
+//! SfxItemSet aTmpSet( *pTmpPool );
/*!aTmpSet*/ rSet.Load( rStream );
//! rSet.Put( aTmpSet );
}
diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx
index a2931c1933b5..a931f7d26d5c 100644
--- a/svl/source/items/stylepool.cxx
+++ b/svl/source/items/stylepool.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/szitem.cxx b/svl/source/items/szitem.cxx
index c3dc10a918ee..e7d92617c1d1 100644
--- a/svl/source/items/szitem.cxx
+++ b/svl/source/items/szitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,12 +84,12 @@ SfxSizeItem::SfxSizeItem( const SfxSizeItem& rItem ) :
SfxItemPresentation SfxSizeItem::GetPresentation
(
- SfxItemPresentation /*ePresentation*/,
- SfxMapUnit /*eCoreMetric*/,
- SfxMapUnit /*ePresentationMetric*/,
- XubString& rText,
+ SfxItemPresentation /*ePresentation*/,
+ SfxMapUnit /*eCoreMetric*/,
+ SfxMapUnit /*ePresentationMetric*/,
+ XubString& rText,
const IntlWrapper *
-) const
+) const
{
DBG_CHKTHIS(SfxSizeItem, 0);
rText = UniString::CreateFromInt32(aVal.Width());
diff --git a/svl/source/items/visitem.cxx b/svl/source/items/visitem.cxx
index 97e762773f2a..343146c35dd5 100644
--- a/svl/source/items/visitem.cxx
+++ b/svl/source/items/visitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/items/whassert.hxx b/svl/source/items/whassert.hxx
index d5019a485915..bce34b2ed536 100644
--- a/svl/source/items/whassert.hxx
+++ b/svl/source/items/whassert.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,18 +34,18 @@
//------------------------------------------------------------------------
#ifdef DBG_UTIL
-#define SFX_ASSERT( bCondition, nId, sMessage ) \
-{ \
- if ( DbgIsAssert() ) \
- { \
- if ( !(bCondition) ) \
- { \
- ByteString aMsg( sMessage ); \
+#define SFX_ASSERT( bCondition, nId, sMessage ) \
+{ \
+ if ( DbgIsAssert() ) \
+ { \
+ if ( !(bCondition) ) \
+ { \
+ ByteString aMsg( sMessage ); \
aMsg.Append(RTL_CONSTASCII_STRINGPARAM("\nwith Id/Pos: ")); \
- aMsg += ByteString::CreateFromInt32( nId ); \
- DbgOut( aMsg.GetBuffer(), DBG_OUT_ERROR, __FILE__, __LINE__); \
- } \
- } \
+ aMsg += ByteString::CreateFromInt32( nId ); \
+ DbgOut( aMsg.GetBuffer(), DBG_OUT_ERROR, __FILE__, __LINE__); \
+ } \
+ } \
}
#else
#define SFX_ASSERT( bCondition, nId, sMessage )
diff --git a/svl/source/items/whiter.cxx b/svl/source/items/whiter.cxx
index ba8ddba9559e..eb1f39aeac02 100644
--- a/svl/source/items/whiter.cxx
+++ b/svl/source/items/whiter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/memtools/svarray.cxx b/svl/source/memtools/svarray.cxx
index f1189ce55dfe..92bca4a4077b 100644
--- a/svl/source/memtools/svarray.cxx
+++ b/svl/source/memtools/svarray.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,13 +65,13 @@ SV_IMPL_VARARR(SvPtrarr,VoidPtr)
SV_IMPL_VARARR_PLAIN(SvPtrarrPlain,VoidPtr)
USHORT SvPtrarr::GetPos( const VoidPtr& aElement ) const
-{ USHORT n;
+{ USHORT n;
for( n=0; n < nA && *(GetData()+n) != aElement; ) n++;
return ( n >= nA ? USHRT_MAX : n );
}
USHORT SvPtrarrPlain::GetPos( const VoidPtr aElement ) const
-{ USHORT n;
+{ USHORT n;
for( n=0; n < nA && *(GetData()+n) != aElement; ) n++;
return ( n >= nA ? USHRT_MAX : n );
}
diff --git a/svl/source/misc/PasswordHelper.cxx b/svl/source/misc/PasswordHelper.cxx
index b07cbcf19233..c57e5367710c 100644
--- a/svl/source/misc/PasswordHelper.cxx
+++ b/svl/source/misc/PasswordHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/adrparse.cxx b/svl/source/misc/adrparse.cxx
index 32ca7d920976..fab3cc76de6e 100644
--- a/svl/source/misc/adrparse.cxx
+++ b/svl/source/misc/adrparse.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/documentlockfile.cxx b/svl/source/misc/documentlockfile.cxx
index d595ca585a09..c53fcd672dc2 100644
--- a/svl/source/misc/documentlockfile.cxx
+++ b/svl/source/misc/documentlockfile.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/filenotation.cxx b/svl/source/misc/filenotation.cxx
index 7322ce36e73a..6656dc2888eb 100644
--- a/svl/source/misc/filenotation.cxx
+++ b/svl/source/misc/filenotation.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -140,7 +140,7 @@ namespace svt
}
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/source/misc/folderrestriction.cxx b/svl/source/misc/folderrestriction.cxx
index 687dd443330e..55472ce7fef5 100644
--- a/svl/source/misc/folderrestriction.cxx
+++ b/svl/source/misc/folderrestriction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/fstathelper.cxx b/svl/source/misc/fstathelper.cxx
index 43259f5bad7c..d8a70ed8bc08 100644
--- a/svl/source/misc/fstathelper.cxx
+++ b/svl/source/misc/fstathelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx
index 511873a6adb7..7c65a60c8db2 100644
--- a/svl/source/misc/inethist.cxx
+++ b/svl/source/misc/inethist.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/inettype.cxx b/svl/source/misc/inettype.cxx
index 025fb95dd71d..3e81be3e1962 100644
--- a/svl/source/misc/inettype.cxx
+++ b/svl/source/misc/inettype.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ namespace unnamed_svl_inettype {
struct MediaTypeEntry
{
sal_Char const * m_pTypeName;
- INetContentType m_eTypeID;
+ INetContentType m_eTypeID;
sal_Char const * m_pExtension;
};
@@ -76,7 +76,7 @@ struct TypeNameMapEntry: public UniString
//============================================================================
struct ExtensionMapEntry: public UniString
{
- INetContentType m_eTypeID;
+ INetContentType m_eTypeID;
ExtensionMapEntry(const UniString & rExt):
UniString(rExt), m_eTypeID(CONTENT_TYPE_UNKNOWN) {}
@@ -341,7 +341,7 @@ MediaTypeEntry const aStaticTypeNameMap[CONTENT_TYPE_LAST + 1]
/** A mapping from type IDs to presentation resource IDs. Sorted by type ID.
*/
USHORT const aStaticResourceIDMap[CONTENT_TYPE_LAST + 1]
- = { STR_SVT_MIMETYPE_APP_OCTSTREAM, // CONTENT_TYPE_UNKNOWN
+ = { STR_SVT_MIMETYPE_APP_OCTSTREAM, // CONTENT_TYPE_UNKNOWN
STR_SVT_MIMETYPE_APP_OCTSTREAM, // CONTENT_TYPE_APP_OCTSTREAM
STR_SVT_MIMETYPE_APP_PDF, // CONTENT_TYPE_APP_PDF
STR_SVT_MIMETYPE_APP_RTF, // CONTENT_TYPE_APP_RTF
diff --git a/svl/source/misc/lngmisc.cxx b/svl/source/misc/lngmisc.cxx
index 7aacaba3ae81..5b8feae7303d 100644
--- a/svl/source/misc/lngmisc.cxx
+++ b/svl/source/misc/lngmisc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@ BOOL RemoveControlChars( OUString &rTxt )
INT32 nCtrlChars = GetNumControlChars( rTxt );
if (nCtrlChars)
{
- INT32 nLen = rTxt.getLength();
+ INT32 nLen = rTxt.getLength();
INT32 nSize = nLen - nCtrlChars;
OUStringBuffer aBuf( nSize );
aBuf.setLength( nSize );
diff --git a/svl/source/misc/lockfilecommon.cxx b/svl/source/misc/lockfilecommon.cxx
index c69005cde08a..33c6d482c3ee 100644
--- a/svl/source/misc/lockfilecommon.cxx
+++ b/svl/source/misc/lockfilecommon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/mediatyp.src b/svl/source/misc/mediatyp.src
index 6085155fb0f7..6ed3ffd7c8ac 100644
--- a/svl/source/misc/mediatyp.src
+++ b/svl/source/misc/mediatyp.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/ownlist.cxx b/svl/source/misc/ownlist.cxx
index 83663a17bc5e..1ccfbf386e47 100644
--- a/svl/source/misc/ownlist.cxx
+++ b/svl/source/misc/ownlist.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,17 +79,17 @@ static void eatSpace(const String & rCmd, USHORT * pIndex)
//=========================================================================
BOOL SvCommandList::AppendCommands
(
- const String & rCmd, /* Dieser Text wird in Kommandos umgesetzt */
- USHORT * pEaten /* Anzahl der Zeichen, die gelesen wurden */
+ const String & rCmd, /* Dieser Text wird in Kommandos umgesetzt */
+ USHORT * pEaten /* Anzahl der Zeichen, die gelesen wurden */
)
-/* [Beschreibung]
+/* [Beschreibung]
Es wird eine Text geparsed und die einzelnen Kommandos werden an
die Liste angeh"angt.
[R"uckgabewert]
- BOOL TRUE, der Text wurde korrekt geparsed.
+ BOOL TRUE, der Text wurde korrekt geparsed.
FALSE, der Text wurde nicht korrekt geparsed.
*/
{
@@ -116,78 +116,78 @@ BOOL SvCommandList::AppendCommands
*pEaten = index;
-// USHORT nPos = 0;
-// while( nPos < rCmd.Len() )
-// {
-// // ein Zeichen ? Dann faengt hier eine Option an
-// if( isalpha( rCmd[nPos] ) )
-// {
-// String aValue;
-// USHORT nStt = nPos;
-// register char c;
-
-// while( nPos < rCmd.Len() &&
-// ( isalnum(c=rCmd[nPos]) || '-'==c || '.'==c ) )
-// nPos++;
-
-// String aToken( rCmd.Copy( nStt, nPos-nStt ) );
-
-// while( nPos < rCmd.Len() &&
-// ( !String::IsPrintable( (c=rCmd[nPos]),
-// RTL_TEXTENCODING_MS_1252 ) || isspace(c) ) )
-// nPos++;
-
-// // hat die Option auch einen Wert?
-// if( nPos!=rCmd.Len() && '='==c )
-// {
-// nPos++;
-
-// while( nPos < rCmd.Len() &&
-// ( !String::IsPrintable( (c=rCmd[nPos]),
-// RTL_TEXTENCODING_MS_1252 ) || isspace(c) ) )
-// nPos++;
-
-// if( nPos != rCmd.Len() )
-// {
-// USHORT nLen = 0;
-// nStt = nPos;
-// if( '"' == c )
-// {
-// nPos++; nStt++;
-// while( nPos < rCmd.Len() &&
-// '"' != rCmd[nPos] )
-// nPos++, nLen++;
-// if( nPos!=rCmd.Len() )
-// nPos++;
-// }
-// else
-// // hier sind wir etwas laxer als der
-// // Standard und erlauben alles druckbare
-// while( nPos < rCmd.Len() &&
-// String::IsPrintable( (c=rCmd[nPos]),
-// RTL_TEXTENCODING_MS_1252 ) &&
-// !isspace( c ) )
-// nPos++, nLen++;
-
-// if( nLen )
-// aValue = rCmd( nStt, nLen );
-// }
-// }
-
-// SvCommand * pCmd = new SvCommand( aToken, aValue );
-// aTypes.Insert( pCmd, LIST_APPEND );
-// }
-// else
-// // white space un unerwartete Zeichen ignorieren wie
-// nPos++;
-// }
-// *pEaten = nPos;
+// USHORT nPos = 0;
+// while( nPos < rCmd.Len() )
+// {
+// // ein Zeichen ? Dann faengt hier eine Option an
+// if( isalpha( rCmd[nPos] ) )
+// {
+// String aValue;
+// USHORT nStt = nPos;
+// register char c;
+
+// while( nPos < rCmd.Len() &&
+// ( isalnum(c=rCmd[nPos]) || '-'==c || '.'==c ) )
+// nPos++;
+
+// String aToken( rCmd.Copy( nStt, nPos-nStt ) );
+
+// while( nPos < rCmd.Len() &&
+// ( !String::IsPrintable( (c=rCmd[nPos]),
+// RTL_TEXTENCODING_MS_1252 ) || isspace(c) ) )
+// nPos++;
+
+// // hat die Option auch einen Wert?
+// if( nPos!=rCmd.Len() && '='==c )
+// {
+// nPos++;
+
+// while( nPos < rCmd.Len() &&
+// ( !String::IsPrintable( (c=rCmd[nPos]),
+// RTL_TEXTENCODING_MS_1252 ) || isspace(c) ) )
+// nPos++;
+
+// if( nPos != rCmd.Len() )
+// {
+// USHORT nLen = 0;
+// nStt = nPos;
+// if( '"' == c )
+// {
+// nPos++; nStt++;
+// while( nPos < rCmd.Len() &&
+// '"' != rCmd[nPos] )
+// nPos++, nLen++;
+// if( nPos!=rCmd.Len() )
+// nPos++;
+// }
+// else
+// // hier sind wir etwas laxer als der
+// // Standard und erlauben alles druckbare
+// while( nPos < rCmd.Len() &&
+// String::IsPrintable( (c=rCmd[nPos]),
+// RTL_TEXTENCODING_MS_1252 ) &&
+// !isspace( c ) )
+// nPos++, nLen++;
+
+// if( nLen )
+// aValue = rCmd( nStt, nLen );
+// }
+// }
+
+// SvCommand * pCmd = new SvCommand( aToken, aValue );
+// aTypes.Insert( pCmd, LIST_APPEND );
+// }
+// else
+// // white space un unerwartete Zeichen ignorieren wie
+// nPos++;
+// }
+// *pEaten = nPos;
return TRUE;
}
//=========================================================================
String SvCommandList::GetCommands() const
-/* [Beschreibung]
+/* [Beschreibung]
Die Kommandos in der Liste werden als Text hintereinander, durch ein
Leerzeichen getrennt geschrieben. Der Text muss nicht genauso
@@ -195,7 +195,7 @@ String SvCommandList::GetCommands() const
[R"uckgabewert]
- String Die Kommandos werden zur"uckgegeben.
+ String Die Kommandos werden zur"uckgegeben.
*/
{
String aRet;
@@ -218,17 +218,17 @@ String SvCommandList::GetCommands() const
//=========================================================================
SvCommand & SvCommandList::Append
(
- const String & rCommand, /* das Kommando */
- const String & rArg /* dasArgument des Kommandos */
+ const String & rCommand, /* das Kommando */
+ const String & rArg /* dasArgument des Kommandos */
)
-/* [Beschreibung]
+/* [Beschreibung]
Es wird eine Objekt vom Typ SvCommand erzeugt und an die Liste
angeh"angt.
[R"uckgabewert]
- SvCommand & Das erteugte Objekt wird zur"uckgegeben.
+ SvCommand & Das erteugte Objekt wird zur"uckgegeben.
*/
{
SvCommand * pCmd = new SvCommand( rCommand, rArg );
@@ -239,10 +239,10 @@ SvCommand & SvCommandList::Append
//=========================================================================
SvStream & operator >>
(
- SvStream & rStm, /* Stream aus dem gelesen wird */
- SvCommandList & rThis /* Die zu f"ullende Liste */
+ SvStream & rStm, /* Stream aus dem gelesen wird */
+ SvCommandList & rThis /* Die zu f"ullende Liste */
)
-/* [Beschreibung]
+/* [Beschreibung]
Die Liste mit ihren Elementen wird gelesen. Das Format ist:
1. Anzahl der Elemente
@@ -250,7 +250,7 @@ SvStream & operator >>
[R"uckgabewert]
- SvStream & Der "ubergebene Stream.
+ SvStream & Der "ubergebene Stream.
*/
{
UINT32 nCount = 0;
@@ -270,10 +270,10 @@ SvStream & operator >>
//=========================================================================
SvStream & operator <<
(
- SvStream & rStm, /* Stream in den geschrieben wird */
- const SvCommandList & rThis /* Die zu schreibende Liste */
+ SvStream & rStm, /* Stream in den geschrieben wird */
+ const SvCommandList & rThis /* Die zu schreibende Liste */
)
-/* [Beschreibung]
+/* [Beschreibung]
Die Liste mit ihren Elementen wir geschrieben. Das Format ist:
1. Anzahl der Elemente
@@ -281,7 +281,7 @@ SvStream & operator <<
[R"uckgabewert]
- SvStream & Der "ubergebene Stream.
+ SvStream & Der "ubergebene Stream.
*/
{
UINT32 nCount = rThis.aTypes.Count();
diff --git a/svl/source/misc/restrictedpaths.cxx b/svl/source/misc/restrictedpaths.cxx
index 30fc8c95738b..91042677f3ed 100644
--- a/svl/source/misc/restrictedpaths.cxx
+++ b/svl/source/misc/restrictedpaths.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -126,7 +126,7 @@ namespace svt
xub_StrLen nLenApproved = sApprovedURL.Len();
xub_StrLen nLenChecked = m_sCheckURL.Len();
-
+
if ( nLenApproved > nLenChecked )
{
if ( m_bAllowParent )
diff --git a/svl/source/misc/sharecontrolfile.cxx b/svl/source/misc/sharecontrolfile.cxx
index c00a8f916f2d..e1538a92448c 100644
--- a/svl/source/misc/sharecontrolfile.cxx
+++ b/svl/source/misc/sharecontrolfile.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index a5d464e587ce..89100923915e 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -280,7 +280,7 @@ uno::Any SAL_CALL SvLockBytesInputStream::queryInterface(uno::Type const &
//============================================================================
// virtual
-void SAL_CALL SvLockBytesInputStream::acquire() throw ()
+void SAL_CALL SvLockBytesInputStream::acquire() throw ()
{
OWeakObject::acquire();
}
@@ -805,10 +805,10 @@ USHORT SvOutputStream::IsA() const
bool SvDataPipe_Impl::remove(Page * pPage)
{
if (
- pPage != m_pFirstPage ||
+ pPage != m_pFirstPage ||
m_pReadPage == m_pFirstPage ||
(
- !m_aMarks.empty() &&
+ !m_aMarks.empty() &&
*m_aMarks.begin() < m_pFirstPage->m_nOffset + m_nPageSize
)
)
diff --git a/svl/source/misc/svldata.cxx b/svl/source/misc/svldata.cxx
index eb36f0fc8f64..ca84cbbcb946 100644
--- a/svl/source/misc/svldata.cxx
+++ b/svl/source/misc/svldata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx
index 4923eb1a64cb..0c310e2e2fc1 100644
--- a/svl/source/misc/urihelper.cxx
+++ b/svl/source/misc/urihelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/notify/brdcst.cxx b/svl/source/notify/brdcst.cxx
index 82462a57f430..7eb16584563b 100644
--- a/svl/source/notify/brdcst.cxx
+++ b/svl/source/notify/brdcst.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/notify/broadcast.cxx b/svl/source/notify/broadcast.cxx
index 16220033dbf8..2351afc0e539 100644
--- a/svl/source/notify/broadcast.cxx
+++ b/svl/source/notify/broadcast.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@ SvtBroadcaster::~SvtBroadcaster()
if( pLast )
do {
pLast->EndListening( *this );
- if( !HasListeners() ) // all gone ??
+ if( !HasListeners() ) // all gone ??
break;
} while( 0 != ( pLast = aIter.GoNext() ));
}
@@ -91,20 +91,20 @@ void SvtBroadcaster::Broadcast( const SfxHint &rHint )
// is anybody to notify?
if( HasListeners() /* && !IsModifyLocked()*/ )
{
-// LockModify();
-// bInModify = TRUE;
+// LockModify();
+// bInModify = TRUE;
SvtListenerIter aIter( *this );
SvtListener* pLast = aIter.GoStart();
if( pLast )
do {
pLast->Notify( *this, rHint );
- if( !HasListeners() ) // all gone ??
+ if( !HasListeners() ) // all gone ??
break;
} while( 0 != ( pLast = aIter.GoNext() ));
-// bInModify = FALSE;
-// UnlockModify();
+// bInModify = FALSE;
+// UnlockModify();
}
}
@@ -126,20 +126,20 @@ void SvtBroadcaster::Forward( SvtBroadcaster& rBC, const SfxHint& rHint )
// is anybody to notify?
if( rBC.HasListeners() /* && !IsModifyLocked()*/ )
{
-// LockModify();
-// bInModify = TRUE;
+// LockModify();
+// bInModify = TRUE;
SvtListenerIter aIter( rBC );
SvtListener* pLast = aIter.GoStart();
if( pLast )
do {
pLast->Notify( rBC, rHint );
- if( !rBC.HasListeners() ) // all gone ??
+ if( !rBC.HasListeners() ) // all gone ??
break;
} while( 0 != ( pLast = aIter.GoNext() ));
-// bInModify = FALSE;
-// UnlockModify();
+// bInModify = FALSE;
+// UnlockModify();
}
}
diff --git a/svl/source/notify/cancel.cxx b/svl/source/notify/cancel.cxx
index 76ac32d4211d..7b4e7147c326 100644
--- a/svl/source/notify/cancel.cxx
+++ b/svl/source/notify/cancel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace { struct lclMutex : public rtl::Static< ::osl::Mutex, lclMutex >{}; }
//=========================================================================
SfxCancelManager::SfxCancelManager( SfxCancelManager *pParent )
-: _pParent( pParent )
+: _pParent( pParent )
{
}
@@ -60,7 +60,7 @@ SfxCancelManager::~SfxCancelManager()
BOOL SfxCancelManager::CanCancel() const
-/* [Beschreibung]
+/* [Beschreibung]
Liefert TRUE wenn an diesem CancelManager oder an einem Parent
ein Job l"auft.
@@ -75,7 +75,7 @@ BOOL SfxCancelManager::CanCancel() const
void SfxCancelManager::Cancel( BOOL bDeep )
-/* [Beschreibung]
+/* [Beschreibung]
Diese Methode markiert alle angemeldeten <SfxCancellable>-Instanzen
als suspendiert.
@@ -95,7 +95,7 @@ void SfxCancelManager::Cancel( BOOL bDeep )
void SfxCancelManager::InsertCancellable( SfxCancellable *pJob )
-/* [Beschreibung]
+/* [Beschreibung]
Diese interne Methode tr"agt 'pJob' in die Liste der unterbrechbaren
Jobs ein und Broadcastet dies. Jeder <SfxCancellable> darf nur
@@ -123,7 +123,7 @@ void SfxCancelManager::InsertCancellable( SfxCancellable *pJob )
void SfxCancelManager::RemoveCancellable( SfxCancellable *pJob )
-/* [Beschreibung]
+/* [Beschreibung]
Diese interne Methode tr"agt 'pJob' aus die Liste der unterbrechbaren
Jobs aus und Broadcastet dies. Dieser Aufruf mu\s paarig nach einem
@@ -157,7 +157,7 @@ SfxCancellable::~SfxCancellable()
void SfxCancellable::Cancel()
-/* [Description]
+/* [Description]
This virtual function is called when the user hits the cancel-button.
If you overload it, you can stop your activities. Please always call
diff --git a/svl/source/notify/hint.cxx b/svl/source/notify/hint.cxx
index 268e5e337483..0becff59cfc7 100644
--- a/svl/source/notify/hint.cxx
+++ b/svl/source/notify/hint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/notify/isethint.cxx b/svl/source/notify/isethint.cxx
index f408044bdefb..43ae33a4a1a1 100644
--- a/svl/source/notify/isethint.cxx
+++ b/svl/source/notify/isethint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,13 +40,13 @@ TYPEINIT1(SfxItemSetHint, SfxHint);
SfxItemSetHint::SfxItemSetHint( SfxItemSet *pItemSet )
-/* [Beschreibung]
+/* [Beschreibung]
Dieser Ctor "ubernimmt das als Parameter "ubergeben <SfxItemSet>,
das im Dtor gel"oscht wird.
*/
-: _pItemSet( pItemSet )
+: _pItemSet( pItemSet )
{
}
@@ -54,12 +54,12 @@ SfxItemSetHint::SfxItemSetHint( SfxItemSet *pItemSet )
SfxItemSetHint::SfxItemSetHint( const SfxItemSet &rItemSet )
-/* [Beschreibung]
+/* [Beschreibung]
Dieser Ctor kopiert das als Parameter "ubergeben <SfxItemSet>.
*/
-: _pItemSet( rItemSet.Clone() )
+: _pItemSet( rItemSet.Clone() )
{
}
diff --git a/svl/source/notify/listener.cxx b/svl/source/notify/listener.cxx
index 70a4b2d23cd5..af53dde0b72d 100644
--- a/svl/source/notify/listener.cxx
+++ b/svl/source/notify/listener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/notify/listenerbase.cxx b/svl/source/notify/listenerbase.cxx
index ffc2b1819ea6..5a4598ac4206 100644
--- a/svl/source/notify/listenerbase.cxx
+++ b/svl/source/notify/listenerbase.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/notify/listenerbase.hxx b/svl/source/notify/listenerbase.hxx
index db661afbee94..b0792e7b9129 100644
--- a/svl/source/notify/listenerbase.hxx
+++ b/svl/source/notify/listenerbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,14 +43,14 @@ public:
SvtListenerBase( SvtListener& rLst, SvtBroadcaster& rBroadcaster );
~SvtListenerBase();
- SvtListenerBase* GetNext() const { return pNext; }
- void SetNext( SvtListenerBase* p ) { pNext = p; }
+ SvtListenerBase* GetNext() const { return pNext; }
+ void SetNext( SvtListenerBase* p ) { pNext = p; }
- SvtBroadcaster* GetBroadcaster() const { return pBroadcaster; }
- SvtListener* GetListener() const { return pListener; }
+ SvtBroadcaster* GetBroadcaster() const { return pBroadcaster; }
+ SvtListener* GetListener() const { return pListener; }
- SvtListenerBase* GetLeft() const { return pLeft; }
- SvtListenerBase* GetRight() const { return pRight; }
+ SvtListenerBase* GetLeft() const { return pLeft; }
+ SvtListenerBase* GetRight() const { return pRight; }
};
diff --git a/svl/source/notify/listeneriter.cxx b/svl/source/notify/listeneriter.cxx
index 46646f441fe6..67f399a41e3e 100644
--- a/svl/source/notify/listeneriter.cxx
+++ b/svl/source/notify/listeneriter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,7 +112,7 @@ SvtListener* SvtListenerIter::GoPrev()
}
-SvtListener* SvtListenerIter::GoStart() // zum Anfang des Baums
+SvtListener* SvtListenerIter::GoStart() // zum Anfang des Baums
{
pAkt = rRoot.pRoot;
if( pAkt )
@@ -123,7 +123,7 @@ SvtListener* SvtListenerIter::GoStart() // zum Anfang des Baums
}
-SvtListener* SvtListenerIter::GoEnd() // zum End des Baums
+SvtListener* SvtListenerIter::GoEnd() // zum End des Baums
{
pAkt = pDelNext;
if( !pAkt )
@@ -178,13 +178,13 @@ SvtListener* SvtListenerIter::Next()
}
-SvtListener* SvtListenerIter::GoRoot() // wieder ab Root anfangen
+SvtListener* SvtListenerIter::GoRoot() // wieder ab Root anfangen
{
pDelNext = pAkt = rRoot.pRoot;
return pAkt ? pAkt->GetListener() : 0;
}
-SvtListener* SvtListenerIter::GetCurr() const // returns the current
+SvtListener* SvtListenerIter::GetCurr() const // returns the current
{
return pDelNext ? pDelNext->GetListener() : 0;
}
diff --git a/svl/source/notify/lstner.cxx b/svl/source/notify/lstner.cxx
index 498862e67638..a2a7bc022709 100644
--- a/svl/source/notify/lstner.cxx
+++ b/svl/source/notify/lstner.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/notify/smplhint.cxx b/svl/source/notify/smplhint.cxx
index 784bfb1df170..2b987f7a5fa6 100644
--- a/svl/source/notify/smplhint.cxx
+++ b/svl/source/notify/smplhint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/numbers/nbdll.cxx b/svl/source/numbers/nbdll.cxx
index 340a06c9305f..8a5565612238 100644
--- a/svl/source/numbers/nbdll.cxx
+++ b/svl/source/numbers/nbdll.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx
index cf026acb8a71..12d59785ebbd 100644
--- a/svl/source/numbers/numfmuno.cxx
+++ b/svl/source/numbers/numfmuno.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,52 +48,52 @@ using namespace com::sun::star;
//------------------------------------------------------------------------
-#define SERVICENAME_NUMBERFORMATTER "com.sun.star.util.NumberFormatter"
-#define SERVICENAME_NUMBERSETTINGS "com.sun.star.util.NumberFormatSettings"
-#define SERVICENAME_NUMBERFORMATS "com.sun.star.util.NumberFormats"
-#define SERVICENAME_NUMBERFORMAT "com.sun.star.util.NumberFormatProperties"
+#define SERVICENAME_NUMBERFORMATTER "com.sun.star.util.NumberFormatter"
+#define SERVICENAME_NUMBERSETTINGS "com.sun.star.util.NumberFormatSettings"
+#define SERVICENAME_NUMBERFORMATS "com.sun.star.util.NumberFormats"
+#define SERVICENAME_NUMBERFORMAT "com.sun.star.util.NumberFormatProperties"
//------------------------------------------------------------------------
-#define PROPERTYNAME_FMTSTR "FormatString"
-#define PROPERTYNAME_LOCALE "Locale"
-#define PROPERTYNAME_TYPE "Type"
-#define PROPERTYNAME_COMMENT "Comment"
-#define PROPERTYNAME_CURREXT "CurrencyExtension"
-#define PROPERTYNAME_CURRSYM "CurrencySymbol"
-#define PROPERTYNAME_CURRABB "CurrencyAbbreviation"
-#define PROPERTYNAME_DECIMALS "Decimals"
-#define PROPERTYNAME_LEADING "LeadingZeros"
-#define PROPERTYNAME_NEGRED "NegativeRed"
-#define PROPERTYNAME_STDFORM "StandardFormat"
-#define PROPERTYNAME_THOUS "ThousandsSeparator"
-#define PROPERTYNAME_USERDEF "UserDefined"
-
-#define PROPERTYNAME_NOZERO "NoZero"
-#define PROPERTYNAME_NULLDATE "NullDate"
-#define PROPERTYNAME_STDDEC "StandardDecimals"
-#define PROPERTYNAME_TWODIGIT "TwoDigitDateStart"
+#define PROPERTYNAME_FMTSTR "FormatString"
+#define PROPERTYNAME_LOCALE "Locale"
+#define PROPERTYNAME_TYPE "Type"
+#define PROPERTYNAME_COMMENT "Comment"
+#define PROPERTYNAME_CURREXT "CurrencyExtension"
+#define PROPERTYNAME_CURRSYM "CurrencySymbol"
+#define PROPERTYNAME_CURRABB "CurrencyAbbreviation"
+#define PROPERTYNAME_DECIMALS "Decimals"
+#define PROPERTYNAME_LEADING "LeadingZeros"
+#define PROPERTYNAME_NEGRED "NegativeRed"
+#define PROPERTYNAME_STDFORM "StandardFormat"
+#define PROPERTYNAME_THOUS "ThousandsSeparator"
+#define PROPERTYNAME_USERDEF "UserDefined"
+
+#define PROPERTYNAME_NOZERO "NoZero"
+#define PROPERTYNAME_NULLDATE "NullDate"
+#define PROPERTYNAME_STDDEC "StandardDecimals"
+#define PROPERTYNAME_TWODIGIT "TwoDigitDateStart"
//------------------------------------------------------------------------
-// alles ohne Which-ID, Map nur fuer PropertySetInfo
+// alles ohne Which-ID, Map nur fuer PropertySetInfo
const SfxItemPropertyMapEntry* lcl_GetNumberFormatPropertyMap()
{
static SfxItemPropertyMapEntry aNumberFormatPropertyMap_Impl[] =
{
- {MAP_CHAR_LEN(PROPERTYNAME_FMTSTR), 0, &getCppuType((rtl::OUString*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_LOCALE), 0, &getCppuType((lang::Locale*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_TYPE), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_FMTSTR), 0, &getCppuType((rtl::OUString*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_LOCALE), 0, &getCppuType((lang::Locale*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_TYPE), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
{MAP_CHAR_LEN(PROPERTYNAME_COMMENT), 0, &getCppuType((rtl::OUString*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
{MAP_CHAR_LEN(PROPERTYNAME_CURREXT), 0, &getCppuType((rtl::OUString*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
{MAP_CHAR_LEN(PROPERTYNAME_CURRSYM), 0, &getCppuType((rtl::OUString*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_DECIMALS), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_LEADING), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_NEGRED), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_STDFORM), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_THOUS), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_USERDEF), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_DECIMALS), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_LEADING), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_NEGRED), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_STDFORM), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_THOUS), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_USERDEF), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
{MAP_CHAR_LEN(PROPERTYNAME_CURRABB), 0, &getCppuType((rtl::OUString*)0),beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY, 0},
{0,0,0,0,0,0}
};
@@ -104,10 +104,10 @@ const SfxItemPropertyMapEntry* lcl_GetNumberSettingsPropertyMap()
{
static SfxItemPropertyMapEntry aNumberSettingsPropertyMap_Impl[] =
{
- {MAP_CHAR_LEN(PROPERTYNAME_NOZERO), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_NULLDATE), 0, &getCppuType((util::Date*)0), beans::PropertyAttribute::BOUND, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_STDDEC), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND, 0},
- {MAP_CHAR_LEN(PROPERTYNAME_TWODIGIT), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_NOZERO), 0, &getBooleanCppuType(), beans::PropertyAttribute::BOUND, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_NULLDATE), 0, &getCppuType((util::Date*)0), beans::PropertyAttribute::BOUND, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_STDDEC), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND, 0},
+ {MAP_CHAR_LEN(PROPERTYNAME_TWODIGIT), 0, &getCppuType((sal_Int16*)0), beans::PropertyAttribute::BOUND, 0},
{0,0,0,0,0,0}
};
return aNumberSettingsPropertyMap_Impl;
@@ -117,13 +117,13 @@ const SfxItemPropertyMapEntry* lcl_GetNumberSettingsPropertyMap()
LanguageType lcl_GetLanguage( const lang::Locale& rLocale )
{
- // empty language -> LANGUAGE_SYSTEM
+ // empty language -> LANGUAGE_SYSTEM
if ( rLocale.Language.getLength() == 0 )
return LANGUAGE_SYSTEM;
LanguageType eRet = MsLangId::convertLocaleToLanguage( rLocale );
if ( eRet == LANGUAGE_NONE )
- eRet = LANGUAGE_SYSTEM; //! or throw an exception?
+ eRet = LANGUAGE_SYSTEM; //! or throw an exception?
return eRet;
}
@@ -156,9 +156,9 @@ void SAL_CALL SvNumberFormatterServiceObj::attachNumberFormatsSupplier(
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
- SvNumberFormatsSupplierObj* pNew = SvNumberFormatsSupplierObj::getImplementation( _xSupplier );
+ SvNumberFormatsSupplierObj* pNew = SvNumberFormatsSupplierObj::getImplementation( _xSupplier );
if (!pNew)
- throw uno::RuntimeException(); // wrong object
+ throw uno::RuntimeException(); // wrong object
xAutoReleaseOld = xSupplier;
@@ -248,7 +248,7 @@ util::Color SAL_CALL SvNumberFormatterServiceObj::queryColorForNumber( sal_Int32
{
::osl::MutexGuard aGuard( m_aMutex );
- util::Color nRet = aDefaultColor; // color = INT32
+ util::Color nRet = aDefaultColor; // color = INT32
SvNumberFormatter* pFormatter = xSupplier.is() ? xSupplier->GetNumberFormatter() : NULL;
if (pFormatter)
{
@@ -290,7 +290,7 @@ util::Color SAL_CALL SvNumberFormatterServiceObj::queryColorForString( sal_Int32
{
::osl::MutexGuard aGuard( m_aMutex );
- util::Color nRet = aDefaultColor; // color = INT32
+ util::Color nRet = aDefaultColor; // color = INT32
SvNumberFormatter* pFormatter = xSupplier.is() ? xSupplier->GetNumberFormatter() : NULL;
if (pFormatter)
{
@@ -368,7 +368,7 @@ util::Color SAL_CALL SvNumberFormatterServiceObj::queryPreviewColorForNumber(
{
::osl::MutexGuard aGuard( m_aMutex );
- util::Color nRet = aDefaultColor; // color = INT32
+ util::Color nRet = aDefaultColor; // color = INT32
SvNumberFormatter* pFormatter = xSupplier.is() ? xSupplier->GetNumberFormatter() : NULL;
if (pFormatter)
{
@@ -492,7 +492,7 @@ sal_Int32 SAL_CALL SvNumberFormatsObj::queryKey( const rtl::OUString& aFormat,
LanguageType eLang = lcl_GetLanguage( nLocale );
if (bScan)
{
- //! irgendwas muss hier noch passieren...
+ //! irgendwas muss hier noch passieren...
}
nRet = pFormatter->GetEntryKey( aFormat, eLang );
}
@@ -522,10 +522,10 @@ sal_Int32 SAL_CALL SvNumberFormatsObj::addNew( const rtl::OUString& aFormat,
nRet = nKey;
else if (nCheckPos)
{
- throw util::MalformedNumberFormatException(); // ungueltiges Format
+ throw util::MalformedNumberFormatException(); // ungueltiges Format
}
else
- throw uno::RuntimeException(); // anderer Fehler (z.B. schon vorhanden)
+ throw uno::RuntimeException(); // anderer Fehler (z.B. schon vorhanden)
}
else
throw uno::RuntimeException();
@@ -554,10 +554,10 @@ sal_Int32 SAL_CALL SvNumberFormatsObj::addNewConverted( const rtl::OUString& aFo
nRet = nKey;
else if (nCheckPos)
{
- throw util::MalformedNumberFormatException(); // ungueltiges Format
+ throw util::MalformedNumberFormatException(); // ungueltiges Format
}
else
- throw uno::RuntimeException(); // anderer Fehler (z.B. schon vorhanden)
+ throw uno::RuntimeException(); // anderer Fehler (z.B. schon vorhanden)
}
else
throw uno::RuntimeException();
@@ -573,7 +573,7 @@ void SAL_CALL SvNumberFormatsObj::removeByKey( sal_Int32 nKey ) throw(uno::Runti
if (pFormatter)
{
pFormatter->DeleteEntry(nKey);
- rSupplier.NumberFormatDeleted(nKey); // Benachrichtigung fuers Dokument
+ rSupplier.NumberFormatDeleted(nKey); // Benachrichtigung fuers Dokument
}
}
@@ -627,8 +627,8 @@ sal_Int32 SAL_CALL SvNumberFormatsObj::getStandardFormat( sal_Int16 nType, const
if (pFormatter)
{
LanguageType eLang = lcl_GetLanguage( nLocale );
- // mask out "defined" bit, so type from an existing number format
- // can directly be used for getStandardFormat
+ // mask out "defined" bit, so type from an existing number format
+ // can directly be used for getStandardFormat
nType &= ~NUMBERFORMAT_DEFINED;
nRet = pFormatter->GetStandardFormat(nType, eLang);
}
@@ -744,7 +744,7 @@ void SAL_CALL SvNumberFormatObj::setPropertyValue( const rtl::OUString&,
lang::IllegalArgumentException, lang::WrappedTargetException,
uno::RuntimeException)
{
- throw beans::UnknownPropertyException(); // everything is read-only
+ throw beans::UnknownPropertyException(); // everything is read-only
}
uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const rtl::OUString& aPropertyName )
@@ -782,7 +782,7 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const rtl::OUString& aPro
}
else if (aString.EqualsAscii( PROPERTYNAME_STDFORM ))
{
- //! SvNumberformat Member bStandard rausreichen?
+ //! SvNumberformat Member bStandard rausreichen?
BOOL bStandard = ( ( nKey % SV_COUNTRY_LANGUAGE_OFFSET ) == 0 );
aRet.setValue( &bStandard, getBooleanCppuType() );
}
@@ -898,7 +898,7 @@ uno::Sequence<beans::PropertyValue> SAL_CALL SvNumberFormatObj::getPropertyValue
String aFmtStr = pFormat->GetFormatstring();
String aComment = pFormat->GetComment();
BOOL bStandard = ( ( nKey % SV_COUNTRY_LANGUAGE_OFFSET ) == 0 );
- //! SvNumberformat Member bStandard rausreichen?
+ //! SvNumberformat Member bStandard rausreichen?
BOOL bUserDef = ( ( pFormat->GetType() & NUMBERFORMAT_DEFINED ) != 0 );
BOOL bThousand, bRed;
USHORT nDecimals, nLeading;
@@ -947,7 +947,7 @@ void SAL_CALL SvNumberFormatObj::setPropertyValues( const uno::Sequence<beans::P
lang::IllegalArgumentException, lang::WrappedTargetException,
uno::RuntimeException)
{
- throw beans::UnknownPropertyException(); // everything is read-only
+ throw beans::UnknownPropertyException(); // everything is read-only
}
// XServiceInfo
@@ -1012,7 +1012,7 @@ void SAL_CALL SvNumberFormatSettingsObj::setPropertyValue( const rtl::OUString&
String aString = aPropertyName;
if (aString.EqualsAscii( PROPERTYNAME_NOZERO ))
{
- // operator >>= shouldn't be used for bool (?)
+ // operator >>= shouldn't be used for bool (?)
if ( aValue.getValueTypeClass() == uno::TypeClass_BOOLEAN )
pFormatter->SetNoZero( *(sal_Bool*)aValue.getValue() );
}
diff --git a/svl/source/numbers/numfmuno.hxx b/svl/source/numbers/numfmuno.hxx
index 4e793be42adc..03fc4e763b08 100644
--- a/svl/source/numbers/numfmuno.hxx
+++ b/svl/source/numbers/numfmuno.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ class SvNumberFormatter;
class SvNumberFormatsSupplierObj;
-// SvNumberFormatterServiceObj wird global als Service angemeldet
+// SvNumberFormatterServiceObj wird global als Service angemeldet
class SvNumberFormatterServiceObj : public cppu::WeakImplHelper3<
com::sun::star::util::XNumberFormatter,
@@ -58,7 +58,7 @@ private:
public:
SvNumberFormatterServiceObj();
- virtual ~SvNumberFormatterServiceObj();
+ virtual ~SvNumberFormatterServiceObj();
// XNumberFormatter
virtual void SAL_CALL attachNumberFormatsSupplier(
@@ -122,7 +122,7 @@ private:
public:
SvNumberFormatsObj(SvNumberFormatsSupplierObj& pParent, ::comphelper::SharedMutex& _rMutex);
- virtual ~SvNumberFormatsObj();
+ virtual ~SvNumberFormatsObj();
// XNumberFormats
@@ -183,19 +183,19 @@ class SvNumberFormatObj : public cppu::WeakImplHelper3<
com::sun::star::lang::XServiceInfo>
{
private:
- SvNumberFormatsSupplierObj& rSupplier;
- ULONG nKey;
+ SvNumberFormatsSupplierObj& rSupplier;
+ ULONG nKey;
mutable ::comphelper::SharedMutex m_aMutex;
public:
SvNumberFormatObj( SvNumberFormatsSupplierObj& rParent, ULONG nK, const ::comphelper::SharedMutex& _rMutex );
- virtual ~SvNumberFormatObj();
+ virtual ~SvNumberFormatObj();
// XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
SAL_CALL getPropertySetInfo( )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
+ virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::beans::PropertyVetoException,
@@ -207,25 +207,25 @@ public:
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertyChangeListener >& xListener )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertyChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
+ virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XVetoableChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
+ virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XVetoableChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException,
@@ -235,7 +235,7 @@ public:
// XPropertyAccess
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL
getPropertyValues() throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence<
+ virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence<
::com::sun::star::beans::PropertyValue >& aProps )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::beans::PropertyVetoException,
@@ -263,14 +263,14 @@ private:
public:
SvNumberFormatSettingsObj( SvNumberFormatsSupplierObj& rParent, const ::comphelper::SharedMutex& _rMutex);
- virtual ~SvNumberFormatSettingsObj();
+ virtual ~SvNumberFormatSettingsObj();
// XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
SAL_CALL getPropertySetInfo( )
throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
+ virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Any& aValue )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::beans::PropertyVetoException,
@@ -282,25 +282,25 @@ public:
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertyChangeListener >& xListener )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
+ virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertyChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
+ virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XVetoableChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
+ virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XVetoableChangeListener >& aListener )
throw(::com::sun::star::beans::UnknownPropertyException,
diff --git a/svl/source/numbers/numhead.cxx b/svl/source/numbers/numhead.cxx
index ac91f2978e24..cfc765628804 100644
--- a/svl/source/numbers/numhead.cxx
+++ b/svl/source/numbers/numhead.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,15 +32,15 @@
#include "numhead.hxx"
-// ID's fuer Dateien:
-#define SV_NUMID_SIZES 0x4200
+// ID's fuer Dateien:
+#define SV_NUMID_SIZES 0x4200
// STATIC DATA -----------------------------------------------------------
//SEG_EOFGLOBALS()
// =======================================================================
-/* wird fuer SvNumberformatter nicht gebraucht
+/* wird fuer SvNumberformatter nicht gebraucht
//#pragma SEG_FUNCDEF(numhead_01)
SvNumReadHeader::SvNumReadHeader(SvStream& rNewStream) :
@@ -58,7 +58,7 @@ SvNumReadHeader::~SvNumReadHeader()
ULONG nReadEnd = rStream.Tell();
DBG_ASSERT( nReadEnd <= nDataEnd, "zuviele Bytes gelesen" );
if ( nReadEnd != nDataEnd )
- rStream.Seek(nDataEnd); // Rest ueberspringen
+ rStream.Seek(nDataEnd); // Rest ueberspringen
}
//#pragma SEG_FUNCDEF(numhead_03)
@@ -91,11 +91,11 @@ SvNumWriteHeader::~SvNumWriteHeader()
{
ULONG nPos = rStream.Tell();
- if ( nPos - nDataPos != nDataSize ) // Default getroffen?
+ if ( nPos - nDataPos != nDataSize ) // Default getroffen?
{
nDataSize = nPos - nDataPos;
rStream.Seek(nDataPos - sizeof(sal_uInt32));
- rStream << nDataSize; // Groesse am Anfang eintragen
+ rStream << nDataSize; // Groesse am Anfang eintragen
rStream.Seek(nPos);
}
}
@@ -168,7 +168,7 @@ void ImpSvNumMultipleReadHeader::EndEntry()
ULONG nPos = rStream.Tell();
DBG_ASSERT( nPos <= nEntryEnd, "zuviel gelesen" );
if ( nPos != nEntryEnd )
- rStream.Seek( nEntryEnd ); // Rest ueberspringen
+ rStream.Seek( nEntryEnd ); // Rest ueberspringen
}
//#pragma SEG_FUNCDEF(numhead_0d)
@@ -220,12 +220,12 @@ ImpSvNumMultipleWriteHeader::~ImpSvNumMultipleWriteHeader()
rStream << static_cast<sal_uInt32>(aMemStream.Tell());
rStream.Write( aMemStream.GetData(), aMemStream.Tell() );
- if ( nDataEnd - nDataPos != nDataSize ) // Default getroffen?
+ if ( nDataEnd - nDataPos != nDataSize ) // Default getroffen?
{
nDataSize = nDataEnd - nDataPos;
ULONG nPos = rStream.Tell();
rStream.Seek(nDataPos-sizeof(sal_uInt32));
- rStream << nDataSize; // Groesse am Anfang eintragen
+ rStream << nDataSize; // Groesse am Anfang eintragen
rStream.Seek(nPos);
}
}
diff --git a/svl/source/numbers/numhead.hxx b/svl/source/numbers/numhead.hxx
index c43f1a92f337..f0a52bf794b2 100644
--- a/svl/source/numbers/numhead.hxx
+++ b/svl/source/numbers/numhead.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,28 +33,28 @@
// -----------------------------------------------------------------------
- // "Automatischer" Record-Header mit Groessenangabe
+ // "Automatischer" Record-Header mit Groessenangabe
-/* wird fuer SvNumberFormatter nicht gebraucht
+/* wird fuer SvNumberFormatter nicht gebraucht
class SvNumReadHeader
{
private:
- SvStream& rStream;
- ULONG nDataEnd;
+ SvStream& rStream;
+ ULONG nDataEnd;
public:
SvNumReadHeader(SvStream& rNewStream);
~SvNumReadHeader();
- ULONG BytesLeft() const;
+ ULONG BytesLeft() const;
};
class SvNumWriteHeader
{
private:
- SvStream& rStream;
- ULONG nDataPos;
- ULONG nDataSize;
+ SvStream& rStream;
+ ULONG nDataPos;
+ ULONG nDataSize;
public:
SvNumWriteHeader(SvStream& rNewStream, ULONG nDefault = 0);
@@ -63,43 +63,43 @@ public:
*/
- // Header mit Groessenangaben fuer mehrere Objekte
+ // Header mit Groessenangaben fuer mehrere Objekte
class ImpSvNumMultipleReadHeader
{
private:
- SvStream& rStream;
- char* pBuf;
- SvMemoryStream* pMemStream;
- ULONG nEndPos;
- ULONG nEntryEnd;
+ SvStream& rStream;
+ char* pBuf;
+ SvMemoryStream* pMemStream;
+ ULONG nEndPos;
+ ULONG nEntryEnd;
public:
ImpSvNumMultipleReadHeader(SvStream& rNewStream);
~ImpSvNumMultipleReadHeader();
- void StartEntry();
- void EndEntry();
- ULONG BytesLeft() const;
+ void StartEntry();
+ void EndEntry();
+ ULONG BytesLeft() const;
- static void Skip( SvStream& ); // komplett ueberspringen
+ static void Skip( SvStream& ); // komplett ueberspringen
};
class ImpSvNumMultipleWriteHeader
{
private:
- SvStream& rStream;
- SvMemoryStream aMemStream;
- ULONG nDataPos;
- sal_uInt32 nDataSize;
- ULONG nEntryStart;
+ SvStream& rStream;
+ SvMemoryStream aMemStream;
+ ULONG nDataPos;
+ sal_uInt32 nDataSize;
+ ULONG nEntryStart;
public:
ImpSvNumMultipleWriteHeader(SvStream& rNewStream, ULONG nDefault = 0);
~ImpSvNumMultipleWriteHeader();
- void StartEntry();
- void EndEntry();
+ void StartEntry();
+ void EndEntry();
};
#endif
diff --git a/svl/source/numbers/numuno.cxx b/svl/source/numbers/numuno.cxx
index da0ec77ed7cc..7184819c2022 100644
--- a/svl/source/numbers/numuno.cxx
+++ b/svl/source/numbers/numuno.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -85,18 +85,18 @@ SvNumberFormatter* SvNumberFormatsSupplierObj::GetNumberFormatter() const
void SvNumberFormatsSupplierObj::SetNumberFormatter(SvNumberFormatter* pNew)
{
- // der alte Numberformatter ist ungueltig geworden, nicht mehr darauf zugreifen!
+ // der alte Numberformatter ist ungueltig geworden, nicht mehr darauf zugreifen!
pImpl->pFormatter = pNew;
}
void SvNumberFormatsSupplierObj::NumberFormatDeleted(sal_uInt32)
{
- // Basis-Implementierung tut nix...
+ // Basis-Implementierung tut nix...
}
void SvNumberFormatsSupplierObj::SettingsChanged()
{
- // Basis-Implementierung tut nix...
+ // Basis-Implementierung tut nix...
}
// XNumberFormatsSupplier
@@ -122,8 +122,8 @@ uno::Reference<util::XNumberFormats> SAL_CALL SvNumberFormatsSupplierObj::getNum
sal_Int64 SAL_CALL SvNumberFormatsSupplierObj::getSomething(
const uno::Sequence<sal_Int8 >& rId ) throw(uno::RuntimeException)
{
- if ( rId.getLength() == 16 &&
- 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(),
+ if ( rId.getLength() == 16 &&
+ 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(),
rId.getConstArray(), 16 ) )
{
return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this));
diff --git a/svl/source/numbers/supservs.cxx b/svl/source/numbers/supservs.cxx
index 909a141e018f..01fe7c0ac973 100644
--- a/svl/source/numbers/supservs.cxx
+++ b/svl/source/numbers/supservs.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::util;
using namespace ::utl;
-#define PERSISTENT_SERVICE_NAME ::rtl::OUString::createFromAscii("com.sun.star.util.NumberFormatsSupplier");
+#define PERSISTENT_SERVICE_NAME ::rtl::OUString::createFromAscii("com.sun.star.util.NumberFormatsSupplier");
//-------------------------------------------------------------------------
Reference< XInterface > SAL_CALL SvNumberFormatsSupplierServiceObject_CreateInstance(const Reference< XMultiServiceFactory >& _rxFactory)
@@ -95,7 +95,7 @@ void SAL_CALL SvNumberFormatsSupplierServiceObject::initialize( const Sequence<
// maybe you already called a method which needed the formatter
// you should use XMultiServiceFactory::createInstanceWithArguments to avoid that
if (m_pOwnFormatter)
- { // !!! this is only a emergency handling, normally this should not occur !!!
+ { // !!! this is only a emergency handling, normally this should not occur !!!
delete m_pOwnFormatter;
m_pOwnFormatter = NULL;
SetNumberFormatter(m_pOwnFormatter);
diff --git a/svl/source/numbers/supservs.hxx b/svl/source/numbers/supservs.hxx
index 0b115630c832..c3aaa5d9bdfe 100644
--- a/svl/source/numbers/supservs.hxx
+++ b/svl/source/numbers/supservs.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,25 +37,25 @@
//=========================================================================
//= SvNumberFormatsSupplierServiceObject - a number formats supplier which
-//= - can be instantiated as an service
-//= - supports the ::com::sun::star::io::XPersistObject interface
-//= - works with it's own SvNumberFormatter instance
-//= - can be initialized (::com::sun::star::lang::XInitialization)
-//= with a specific language (i.e. ::com::sun::star::lang::Locale)
+//= - can be instantiated as an service
+//= - supports the ::com::sun::star::io::XPersistObject interface
+//= - works with it's own SvNumberFormatter instance
+//= - can be initialized (::com::sun::star::lang::XInitialization)
+//= with a specific language (i.e. ::com::sun::star::lang::Locale)
//=========================================================================
class SvNumberFormatsSupplierServiceObject
:protected SvNumberFormatsSupplierObj
,public ::com::sun::star::lang::XInitialization
,public ::com::sun::star::io::XPersistObject
,public ::com::sun::star::lang::XServiceInfo
-{ // don't want the Set-/GetNumberFormatter to be accessable from outside
+{ // don't want the Set-/GetNumberFormatter to be accessable from outside
friend ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
SAL_CALL SvNumberFormatsSupplierServiceObject_CreateInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&);
protected:
- SvNumberFormatter* m_pOwnFormatter;
+ SvNumberFormatter* m_pOwnFormatter;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >
m_xORB;
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 54252992d13b..017ef7d3a72a 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx
index ced58e84c2f6..589239db037a 100644
--- a/svl/source/numbers/zforfind.hxx
+++ b/svl/source/numbers/zforfind.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index dc40aa9a1d69..56be63ed6813 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,15 +76,15 @@ using namespace ::com::sun::star::lang;
#define ZF_STANDARD_DATETIME 50
#define ZF_STANDARD_SCIENTIFIC 60
#define ZF_STANDARD_FRACTION 70
-#define ZF_STANDARD_NEWEXTENDED 75
-#define ZF_STANDARD_NEWEXTENDEDMAX SV_MAX_ANZ_STANDARD_FORMATE-2 // 98
+#define ZF_STANDARD_NEWEXTENDED 75
+#define ZF_STANDARD_NEWEXTENDEDMAX SV_MAX_ANZ_STANDARD_FORMATE-2 // 98
#define ZF_STANDARD_LOGICAL SV_MAX_ANZ_STANDARD_FORMATE-1 // 99
#define ZF_STANDARD_TEXT SV_MAX_ANZ_STANDARD_FORMATE // 100
/* Locale that is set if an unknown locale (from another system) is loaded of
* legacy documents. Can not be SYSTEM because else, for example, a German "DM"
* (old currency) is recognized as a date (#53155#). */
-#define UNKNOWN_SUBSTITUTE LANGUAGE_ENGLISH_US
+#define UNKNOWN_SUBSTITUTE LANGUAGE_ENGLISH_US
static BOOL bIndexTableInitialized = FALSE;
static sal_uInt32 __FAR_DATA theIndexTable[NF_INDEX_TABLE_ENTRIES];
@@ -159,13 +159,13 @@ void SvNumberFormatterRegistry_Impl::ConfigurationChanged( utl::ConfigurationBro
SvNumberFormatterRegistry_Impl* SvNumberFormatter::pFormatterRegistry = NULL;
BOOL SvNumberFormatter::bCurrencyTableInitialized = FALSE;
-namespace
+namespace
{
- struct theCurrencyTable :
- public rtl::Static< NfCurrencyTable, theCurrencyTable > {};
+ struct theCurrencyTable :
+ public rtl::Static< NfCurrencyTable, theCurrencyTable > {};
- struct theLegacyOnlyCurrencyTable :
- public rtl::Static< NfCurrencyTable, theLegacyOnlyCurrencyTable > {};
+ struct theLegacyOnlyCurrencyTable :
+ public rtl::Static< NfCurrencyTable, theLegacyOnlyCurrencyTable > {};
}
USHORT SvNumberFormatter::nSystemCurrencyPosition = 0;
SV_IMPL_PTRARR( NfCurrencyTable, NfCurrencyEntry* );
@@ -354,16 +354,16 @@ void SvNumberFormatter::ImpChangeSysCL( LanguageType eLnge, BOOL bLoadingSO5 )
IniLnge = eLnge;
ChangeIntl(eLnge);
SvNumberformat* pEntry = aFTable.First();
- while (pEntry) // delete old formats
+ while (pEntry) // delete old formats
{
pEntry = (SvNumberformat*) aFTable.Remove(aFTable.GetCurKey());
delete pEntry;
pEntry = (SvNumberformat*) aFTable.First();
}
- ImpGenerateFormats( 0, bLoadingSO5 ); // new standard formats
+ ImpGenerateFormats( 0, bLoadingSO5 ); // new standard formats
}
else if ( bLoadingSO5 )
- { // delete additional standard formats
+ { // delete additional standard formats
sal_uInt32 nKey;
aFTable.Seek( SV_MAX_ANZ_STANDARD_FORMATE + 1 );
while ( (nKey = aFTable.GetCurKey()) > SV_MAX_ANZ_STANDARD_FORMATE &&
@@ -478,19 +478,19 @@ BOOL SvNumberFormatter::HasTextFormat(sal_uInt32 F_Index) const
BOOL SvNumberFormatter::PutEntry(String& rString,
xub_StrLen& nCheckPos,
short& nType,
- sal_uInt32& nKey, // Formatnummer
+ sal_uInt32& nKey, // Formatnummer
LanguageType eLnge)
{
nKey = 0;
- if (rString.Len() == 0) // keinen Leerstring
+ if (rString.Len() == 0) // keinen Leerstring
{
- nCheckPos = 1; // -> Fehler
+ nCheckPos = 1; // -> Fehler
return FALSE;
}
if (eLnge == LANGUAGE_DONTKNOW)
eLnge = IniLnge;
- ChangeIntl(eLnge); // ggfs. austauschen
+ ChangeIntl(eLnge); // ggfs. austauschen
LanguageType eLge = eLnge; // Umgehung const fuer ConvertMode
BOOL bCheck = FALSE;
SvNumberformat* p_Entry = new SvNumberformat(rString,
@@ -498,8 +498,8 @@ BOOL SvNumberFormatter::PutEntry(String& rString,
pStringScanner,
nCheckPos,
eLge);
- if (nCheckPos == 0) // Format ok
- { // Typvergleich:
+ if (nCheckPos == 0) // Format ok
+ { // Typvergleich:
short eCheckType = p_Entry->GetType();
if ( eCheckType != NUMBERFORMAT_UNDEFINED)
{
@@ -511,10 +511,10 @@ BOOL SvNumberFormatter::PutEntry(String& rString,
p_Entry->SetType(NUMBERFORMAT_DEFINED);
nType = NUMBERFORMAT_DEFINED;
}
- sal_uInt32 CLOffset = ImpGenerateCL(eLge); // ggfs. neu Standard-
+ sal_uInt32 CLOffset = ImpGenerateCL(eLge); // ggfs. neu Standard-
// formate anlegen
nKey = ImpIsEntry(p_Entry->GetFormatstring(),CLOffset, eLge);
- if (nKey != NUMBERFORMAT_ENTRY_NOT_FOUND) // schon vorhanden
+ if (nKey != NUMBERFORMAT_ENTRY_NOT_FOUND) // schon vorhanden
delete p_Entry;
else
{
@@ -595,13 +595,13 @@ sal_uInt32 SvNumberFormatter::GetIndexPuttingAndConverting( String & rString,
nKey = nOrig; // none avaliable, maybe user-defined
else
nKey = GetFormatForLanguageIfBuiltIn( nOrig, SvtSysLocale().GetLanguage() );
-
+
if (nKey == nOrig)
{
// Not a builtin format, convert.
// The format code string may get modified and adapted to the real
// language and wouldn't match eSysLnge anymore, do that on a copy.
- String aTmp( rString);
+ String aTmp( rString);
rNewInserted = PutandConvertEntrySystem( aTmp, rCheckPos, rType,
nKey, eLnge, SvtSysLocale().GetLanguage());
if (rCheckPos > 0)
@@ -680,8 +680,8 @@ BOOL SvNumberFormatter::Load( SvStream& rStream )
SvNumberformat* pEntry;
sal_uInt32 nPos;
LanguageType eSaveSysLang, eLoadSysLang;
- USHORT nSysOnStore, eLge, eDummy; // Dummy fuer kompatibles Format
- rStream >> nSysOnStore >> eLge; // Systemeinstellung aus
+ USHORT nSysOnStore, eLge, eDummy; // Dummy fuer kompatibles Format
+ rStream >> nSysOnStore >> eLge; // Systemeinstellung aus
// Dokument
eSaveSysLang = (nVersion < SV_NUMBERFORMATTER_VERSION_SYSTORE ?
LANGUAGE_SYSTEM : (LanguageType) nSysOnStore);
@@ -693,9 +693,9 @@ BOOL SvNumberFormatter::Load( SvStream& rStream )
{
rStream >> eDummy >> eLge;
eLnge = (LanguageType) eLge;
- ImpGenerateCL( eLnge, TRUE ); // ggfs. neue Standardformate anlegen
+ ImpGenerateCL( eLnge, TRUE ); // ggfs. neue Standardformate anlegen
- sal_uInt32 nOffset = nPos % SV_COUNTRY_LANGUAGE_OFFSET; // relativIndex
+ sal_uInt32 nOffset = nPos % SV_COUNTRY_LANGUAGE_OFFSET; // relativIndex
BOOL bUserDefined = (nOffset > SV_MAX_ANZ_STANDARD_FORMATE);
//! HACK! ER 29.07.97 15:15
// SaveLang wurde bei SYSTEM nicht gespeichert sondern war auch SYSTEM,
@@ -722,7 +722,7 @@ BOOL SvNumberFormatter::Load( SvStream& rStream )
pEntry = new SvNumberformat(*pFormatScanner, eLnge);
if ( bConversionHack )
- { // SYSTEM
+ { // SYSTEM
// nVersion < SV_NUMBERFORMATTER_VERSION_SYSTORE
// nVersion < SV_NUMBERFORMATTER_VERSION_KEYWORDS
if ( !pConverter )
@@ -763,7 +763,7 @@ BOOL SvNumberFormatter::Load( SvStream& rStream )
if ( bUserDefined )
{
if ( eSaveSysLang != eLoadSysLang )
- { // SYSTEM verschieden
+ { // SYSTEM verschieden
if ( !pConverter )
pConverter = new SvNumberFormatter( xServiceManager, eSysLang );
if ( nVersion < SV_NUMBERFORMATTER_VERSION_KEYWORDS )
@@ -790,7 +790,7 @@ BOOL SvNumberFormatter::Load( SvStream& rStream )
eSaveSysLang, eLoadSysLang, TRUE );
}
else
- { // nicht SYSTEM oder gleiches SYSTEM
+ { // nicht SYSTEM oder gleiches SYSTEM
if ( nVersion < SV_NUMBERFORMATTER_VERSION_KEYWORDS )
{
LanguageType eLoadLang;
@@ -825,7 +825,7 @@ BOOL SvNumberFormatter::Load( SvStream& rStream )
}
}
}
- if ( nOffset == 0 ) // StandardFormat
+ if ( nOffset == 0 ) // StandardFormat
{
SvNumberformat* pEnt = aFTable.Get(nPos);
if (pEnt)
@@ -845,7 +845,7 @@ BOOL SvNumberFormatter::Load( SvStream& rStream )
UINT16 nY2k;
rStream >> nY2k;
if ( nVersion < SV_NUMBERFORMATTER_VERSION_TWODIGITYEAR && nY2k < 100 )
- nY2k += 1901; // war vor src513e: 29, jetzt: 1930
+ nY2k += 1901; // war vor src513e: 29, jetzt: 1930
SetYear2000( nY2k );
}
aHdr.EndEntry();
@@ -899,7 +899,7 @@ BOOL SvNumberFormatter::Save( SvStream& rStream ) const
}
pEntry = (SvNumberformat*) pTable->Next();
}
- rStream << NUMBERFORMAT_ENTRY_NOT_FOUND; // EndeKennung
+ rStream << NUMBERFORMAT_ENTRY_NOT_FOUND; // EndeKennung
// ab SV_NUMBERFORMATTER_VERSION_YEAR2000
aHdr.StartEntry();
@@ -1029,14 +1029,14 @@ SvNumberFormatTable& SvNumberFormatter::GetFirstEntryTable(
LanguageType& rLnge)
{
short eTypetmp = eType;
- if (eType == NUMBERFORMAT_ALL) // Leere Zelle oder don't care
+ if (eType == NUMBERFORMAT_ALL) // Leere Zelle oder don't care
rLnge = IniLnge;
else
{
SvNumberformat* pFormat = (SvNumberformat*) aFTable.Get(FIndex);
if (!pFormat)
{
-// DBG_ERROR("SvNumberFormatter:: Unbekanntes altes Zahlformat (1)");
+// DBG_ERROR("SvNumberFormatter:: Unbekanntes altes Zahlformat (1)");
rLnge = IniLnge;
eType = NUMBERFORMAT_ALL;
eTypetmp = eType;
@@ -1068,7 +1068,7 @@ sal_uInt32 SvNumberFormatter::ImpGenerateCL( LanguageType eLnge, BOOL bLoadingSO
ChangeIntl(eLnge);
sal_uInt32 CLOffset = ImpGetCLOffset(ActLnge);
if (CLOffset > MaxCLOffset)
- { // new CL combination
+ { // new CL combination
if (LocaleDataWrapper::areChecksEnabled())
{
Locale aLoadedLocale = xLocaleData->getLoadedLocale();
@@ -1193,7 +1193,7 @@ BOOL SvNumberFormatter::IsNumberFormat(const String& sString,
const SvNumberformat* pFormat = (SvNumberformat*) aFTable.Get(F_Index);
if (!pFormat)
{
-// DBG_ERROR("SvNumberFormatter:: Unbekanntes altes Zahlformat (2)");
+// DBG_ERROR("SvNumberFormatter:: Unbekanntes altes Zahlformat (2)");
ChangeIntl(IniLnge);
FType = NUMBERFORMAT_NUMBER;
}
@@ -1208,19 +1208,19 @@ BOOL SvNumberFormatter::IsNumberFormat(const String& sString,
short RType = FType;
// Ergebnistyp
// ohne def-Kennung
- if (RType == NUMBERFORMAT_TEXT) // Zahlzelle ->Stringz.
+ if (RType == NUMBERFORMAT_TEXT) // Zahlzelle ->Stringz.
res = FALSE;
else
res = pStringScanner->IsNumberFormat(sString, RType, fOutNumber, pFormat);
- if (res && !IsCompatible(FType, RType)) // unpassender Typ
+ if (res && !IsCompatible(FType, RType)) // unpassender Typ
{
switch ( RType )
{
case NUMBERFORMAT_TIME :
{
if ( pStringScanner->GetDecPos() )
- { // 100stel Sekunden
+ { // 100stel Sekunden
if ( pStringScanner->GetAnzNums() > 3 || fOutNumber < 0.0 )
F_Index = GetFormatIndex( NF_TIME_HH_MMSS00, ActLnge );
else
@@ -1258,7 +1258,7 @@ BOOL SvNumberFormatter::IsCompatible(short eOldType,
case NUMBERFORMAT_CURRENCY:
case NUMBERFORMAT_SCIENTIFIC:
case NUMBERFORMAT_FRACTION:
-// case NUMBERFORMAT_LOGICAL:
+// case NUMBERFORMAT_LOGICAL:
case NUMBERFORMAT_DEFINED:
return TRUE;
default:
@@ -1314,7 +1314,7 @@ sal_uInt32 SvNumberFormatter::ImpGetDefaultFormat( short nType )
sal_uInt32 nSearch;
switch( nType )
{
- case NUMBERFORMAT_DATE :
+ case NUMBERFORMAT_DATE :
nSearch = CLOffset + ZF_STANDARD_DATE;
break;
case NUMBERFORMAT_TIME :
@@ -1336,7 +1336,7 @@ sal_uInt32 SvNumberFormatter::ImpGetDefaultFormat( short nType )
if ( !nDefaultFormat )
nDefaultFormat = NUMBERFORMAT_ENTRY_NOT_FOUND;
if ( nDefaultFormat == NUMBERFORMAT_ENTRY_NOT_FOUND )
- { // look for a defined standard
+ { // look for a defined standard
sal_uInt32 nStopKey = CLOffset + SV_COUNTRY_LANGUAGE_OFFSET;
sal_uInt32 nKey;
aFTable.Seek( CLOffset );
@@ -1348,16 +1348,16 @@ sal_uInt32 SvNumberFormatter::ImpGetDefaultFormat( short nType )
~NUMBERFORMAT_DEFINED) == nType) )
{
nDefaultFormat = nKey;
- break; // while
+ break; // while
}
aFTable.Next();
}
if ( nDefaultFormat == NUMBERFORMAT_ENTRY_NOT_FOUND )
- { // none found, use old fixed standards
+ { // none found, use old fixed standards
switch( nType )
{
- case NUMBERFORMAT_DATE :
+ case NUMBERFORMAT_DATE :
nDefaultFormat = CLOffset + ZF_STANDARD_DATE;
break;
case NUMBERFORMAT_TIME :
@@ -1397,7 +1397,7 @@ sal_uInt32 SvNumberFormatter::GetStandardFormat( short eType, LanguageType eLnge
else
return ImpGetDefaultCurrencyFormat();
}
- case NUMBERFORMAT_DATE :
+ case NUMBERFORMAT_DATE :
case NUMBERFORMAT_TIME :
case NUMBERFORMAT_DATETIME :
case NUMBERFORMAT_PERCENT :
@@ -1406,7 +1406,7 @@ sal_uInt32 SvNumberFormatter::GetStandardFormat( short eType, LanguageType eLnge
case NUMBERFORMAT_FRACTION : return CLOffset + ZF_STANDARD_FRACTION;
case NUMBERFORMAT_LOGICAL : return CLOffset + ZF_STANDARD_LOGICAL;
- case NUMBERFORMAT_TEXT : return CLOffset + ZF_STANDARD_TEXT;
+ case NUMBERFORMAT_TEXT : return CLOffset + ZF_STANDARD_TEXT;
case NUMBERFORMAT_ALL :
case NUMBERFORMAT_DEFINED :
case NUMBERFORMAT_NUMBER :
@@ -1454,7 +1454,7 @@ sal_uInt32 SvNumberFormatter::GetStandardFormat( double fNumber, sal_uInt32 nFIn
bSign = FALSE;
double fSeconds = fNumber * 86400;
if ( floor( fSeconds + 0.5 ) * 100 != floor( fSeconds * 100 + 0.5 ) )
- { // mit 100stel Sekunden
+ { // mit 100stel Sekunden
if ( bSign || fSeconds >= 3600 )
return GetFormatIndex( NF_TIME_HH_MMSS00, eLnge );
else
@@ -1494,14 +1494,14 @@ void SvNumberFormatter::GetInputLineString(const double& fOutNumber,
|| eType == NUMBERFORMAT_SCIENTIFIC
|| eType == NUMBERFORMAT_FRACTION)
{
- if (eType != NUMBERFORMAT_PERCENT) // spaeter Sonderbehandlung %
+ if (eType != NUMBERFORMAT_PERCENT) // spaeter Sonderbehandlung %
eType = NUMBERFORMAT_NUMBER;
ChangeStandardPrec(INPUTSTRING_PRECISION);
bPrecChanged = true;
}
sal_uInt32 nKey = nFIndex;
switch ( eType )
- { // #61619# immer vierstelliges Jahr editieren
+ { // #61619# immer vierstelliges Jahr editieren
case NUMBERFORMAT_DATE :
nKey = GetFormatIndex( NF_DATE_SYS_DDMMYYYY, eLang );
break;
@@ -1569,14 +1569,14 @@ BOOL SvNumberFormatter::GetPreviewString(const String& sFormatString,
Color** ppColor,
LanguageType eLnge)
{
- if (sFormatString.Len() == 0) // keinen Leerstring
+ if (sFormatString.Len() == 0) // keinen Leerstring
return FALSE;
xub_StrLen nCheckPos = STRING_NOTFOUND;
sal_uInt32 nKey;
if (eLnge == LANGUAGE_DONTKNOW)
eLnge = IniLnge;
- ChangeIntl(eLnge); // ggfs. austauschen
+ ChangeIntl(eLnge); // ggfs. austauschen
eLnge = ActLnge;
String sTmpString = sFormatString;
SvNumberformat* p_Entry = new SvNumberformat(sTmpString,
@@ -1584,12 +1584,12 @@ BOOL SvNumberFormatter::GetPreviewString(const String& sFormatString,
pStringScanner,
nCheckPos,
eLnge);
- if (nCheckPos == 0) // String ok
+ if (nCheckPos == 0) // String ok
{
- sal_uInt32 CLOffset = ImpGenerateCL(eLnge); // ggfs. neu Standard-
+ sal_uInt32 CLOffset = ImpGenerateCL(eLnge); // ggfs. neu Standard-
// formate anlegen
nKey = ImpIsEntry(p_Entry->GetFormatstring(),CLOffset, eLnge);
- if (nKey != NUMBERFORMAT_ENTRY_NOT_FOUND) // schon vorhanden
+ if (nKey != NUMBERFORMAT_ENTRY_NOT_FOUND) // schon vorhanden
GetOutputString(fPreviewNumber,nKey,sOutString,ppColor);
else
p_Entry->GetOutputString(fPreviewNumber,sOutString, ppColor);
@@ -1609,7 +1609,7 @@ BOOL SvNumberFormatter::GetPreviewStringGuess( const String& sFormatString,
Color** ppColor,
LanguageType eLnge )
{
- if (sFormatString.Len() == 0) // keinen Leerstring
+ if (sFormatString.Len() == 0) // keinen Leerstring
return FALSE;
if (eLnge == LANGUAGE_DONTKNOW)
@@ -1623,7 +1623,7 @@ BOOL SvNumberFormatter::GetPreviewStringGuess( const String& sFormatString,
sal_uInt32 nCLOffset = ImpGenerateCL( eLnge );
sal_uInt32 nKey = ImpIsEntry( aFormatStringUpper, nCLOffset, eLnge );
if ( nKey != NUMBERFORMAT_ENTRY_NOT_FOUND )
- { // Zielformat vorhanden
+ { // Zielformat vorhanden
GetOutputString( fPreviewNumber, nKey, sOutString, ppColor );
return TRUE;
}
@@ -1657,14 +1657,14 @@ BOOL SvNumberFormatter::GetPreviewStringGuess( const String& sFormatString,
{
if ( nCheckPos > 0 || xTransliteration->isEqual( sFormatString,
pEntry->GetFormatstring() ) )
- { // other Format
+ { // other Format
delete pEntry;
sTmpString = sFormatString;
pEntry = new SvNumberformat( sTmpString, pFormatScanner,
pStringScanner, nCheckPos, eLnge );
}
else
- { // verify english
+ { // verify english
xub_StrLen nCheckPos2 = STRING_NOTFOUND;
// try other --> english
eFormatLang = eLnge;
@@ -1676,7 +1676,7 @@ BOOL SvNumberFormatter::GetPreviewStringGuess( const String& sFormatString,
ChangeIntl( eLnge );
if ( nCheckPos2 == 0 && !xTransliteration->isEqual( sFormatString,
pEntry2->GetFormatstring() ) )
- { // other Format
+ { // other Format
delete pEntry;
sTmpString = sFormatString;
pEntry = new SvNumberformat( sTmpString, pFormatScanner,
@@ -1687,9 +1687,9 @@ BOOL SvNumberFormatter::GetPreviewStringGuess( const String& sFormatString,
}
}
- if (nCheckPos == 0) // String ok
+ if (nCheckPos == 0) // String ok
{
- ImpGenerateCL( eLnge ); // ggfs. neu Standardformate anlegen
+ ImpGenerateCL( eLnge ); // ggfs. neu Standardformate anlegen
pEntry->GetOutputString( fPreviewNumber, sOutString, ppColor );
delete pEntry;
return TRUE;
@@ -1729,8 +1729,8 @@ BOOL SvNumberFormatter::GetPreviewString( const String& sFormatString,
GetOutputString( aNonConstPreview, nKey, sOutString, ppColor);
else
{
- // If the format is valid but not a text format and does not
- // include a text subformat, an empty string would result. Same as
+ // If the format is valid but not a text format and does not
+ // include a text subformat, an empty string would result. Same as
// in SvNumberFormatter::GetOutputString()
if (p_Entry->IsTextFormat() || p_Entry->HasTextFormat())
p_Entry->GetOutputString( aNonConstPreview, sOutString, ppColor);
@@ -1753,13 +1753,13 @@ BOOL SvNumberFormatter::GetPreviewString( const String& sFormatString,
sal_uInt32 SvNumberFormatter::TestNewString(const String& sFormatString,
LanguageType eLnge)
{
- if (sFormatString.Len() == 0) // keinen Leerstring
+ if (sFormatString.Len() == 0) // keinen Leerstring
return NUMBERFORMAT_ENTRY_NOT_FOUND;
xub_StrLen nCheckPos = STRING_NOTFOUND;
if (eLnge == LANGUAGE_DONTKNOW)
eLnge = IniLnge;
- ChangeIntl(eLnge); // ggfs. austauschen
+ ChangeIntl(eLnge); // ggfs. austauschen
eLnge = ActLnge;
sal_uInt32 nRes;
String sTmpString = sFormatString;
@@ -1768,9 +1768,9 @@ sal_uInt32 SvNumberFormatter::TestNewString(const String& sFormatString,
pStringScanner,
nCheckPos,
eLnge);
- if (nCheckPos == 0) // String ok
+ if (nCheckPos == 0) // String ok
{
- sal_uInt32 CLOffset = ImpGenerateCL(eLnge); // ggfs. neu Standard-
+ sal_uInt32 CLOffset = ImpGenerateCL(eLnge); // ggfs. neu Standard-
// formate anlegen
nRes = ImpIsEntry(pEntry->GetFormatstring(),CLOffset, eLnge);
// schon vorhanden ?
@@ -1789,7 +1789,7 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
if ( rCode.Index < NF_INDEX_TABLE_ENTRIES &&
rCode.Usage == ::com::sun::star::i18n::KNumberFormatUsage::CURRENCY &&
rCode.Index != NF_CURRENCY_1000DEC2_CCC )
- { // strip surrounding [$...] on automatic currency
+ { // strip surrounding [$...] on automatic currency
if ( aCodeStr.SearchAscii( "[$" ) != STRING_NOTFOUND )
aCodeStr = SvNumberformat::StripNewCurrencyDelimiters( aCodeStr, FALSE );
else
@@ -1840,13 +1840,13 @@ SvNumberformat* SvNumberFormatter::ImpInsertFormat(
{
// These may be dupes of integer versions for locales where
// currencies have no decimals like Italian Lira.
- case NF_CURRENCY_1000DEC2 : // NF_CURRENCY_1000INT
- case NF_CURRENCY_1000DEC2_RED : // NF_CURRENCY_1000INT_RED
- case NF_CURRENCY_1000DEC2_DASHED : // NF_CURRENCY_1000INT_RED
+ case NF_CURRENCY_1000DEC2 : // NF_CURRENCY_1000INT
+ case NF_CURRENCY_1000DEC2_RED : // NF_CURRENCY_1000INT_RED
+ case NF_CURRENCY_1000DEC2_DASHED : // NF_CURRENCY_1000INT_RED
break;
default:
if ( !bAfterLoadingSO5 )
- { // If bAfterLoadingSO5 there will definitely be some dupes,
+ { // If bAfterLoadingSO5 there will definitely be some dupes,
// don't cry. But we need this test for verification of locale
// data if not loading old SO5 documents.
String aMsg( RTL_CONSTASCII_USTRINGPARAM(
@@ -1975,7 +1975,7 @@ sal_uInt32 SvNumberFormatter::GetFormatSpecialInfo( const String& rFormatString,
xub_StrLen nCheckPos = 0;
if (eLnge == LANGUAGE_DONTKNOW)
eLnge = IniLnge;
- ChangeIntl(eLnge); // ggfs. austauschen
+ ChangeIntl(eLnge); // ggfs. austauschen
eLnge = ActLnge;
String aTmpStr( rFormatString );
SvNumberformat* pFormat = new SvNumberformat( aTmpStr,
@@ -2020,7 +2020,7 @@ sal_Int32 SvNumberFormatter::ImpGetFormatCodeIndex(
|| NF_CURRENCY_END < nTabOff || nTabOff == NF_CURRENCY_1000INT
|| nTabOff == NF_CURRENCY_1000INT_RED
|| nTabOff == NF_CURRENCY_1000DEC2_CCC))
- { // currency entries with decimals might not exist, e.g. Italian Lira
+ { // currency entries with decimals might not exist, e.g. Italian Lira
String aMsg( RTL_CONSTASCII_USTRINGPARAM(
"SvNumberFormatter::ImpGetFormatCodeIndex: not found: "));
aMsg += String::CreateFromInt32( nTabOff );
@@ -2055,7 +2055,7 @@ sal_Int32 SvNumberFormatter::ImpGetFormatCodeIndex(
}
}
else
- { // we need at least _some_ format
+ { // we need at least _some_ format
rSeq.realloc(1);
rSeq[0] = ::com::sun::star::i18n::NumberFormatCode();
String aTmp( '0' );
@@ -2188,7 +2188,7 @@ void SvNumberFormatter::ImpGenerateFormats( sal_uInt32 CLOffset, BOOL bLoadingSO
}
BOOL bOldConvertMode = pFormatScanner->GetConvertMode();
if (bOldConvertMode)
- pFormatScanner->SetConvertMode(FALSE); // switch off for this function
+ pFormatScanner->SetConvertMode(FALSE); // switch off for this function
NumberFormatCodeWrapper aNumberFormatCode( xServiceManager, GetLocale() );
@@ -2242,7 +2242,7 @@ void SvNumberFormatter::ImpGenerateFormats( sal_uInt32 CLOffset, BOOL bLoadingSO
// Boolean
aFormatCode = pFormatScanner->GetBooleanString();
pNewFormat = new SvNumberformat( aFormatCode,
- pFormatScanner, pStringScanner, nCheckPos, ActLnge );
+ pFormatScanner, pStringScanner, nCheckPos, ActLnge );
pNewFormat->SetType(NUMBERFORMAT_LOGICAL);
pNewFormat->SetStandard();
if ( !aFTable.Insert(
@@ -2354,7 +2354,7 @@ void SvNumberFormatter::ImpGenerateFormats( sal_uInt32 CLOffset, BOOL bLoadingSO
pNewFormat = ImpInsertFormat( aFormatSeq[nIdx],
CLOffset + SetIndexTable( NF_CURRENCY_1000DEC2_CCC, ZF_STANDARD_CURRENCY+4 ));
if ( pNewFormat )
- pNewFormat->SetUsed(TRUE); // must be saved for older versions
+ pNewFormat->SetUsed(TRUE); // must be saved for older versions
aFormatSeq[nIdx].Default = bDefault;
// #.##0,-- since number formatter version 6
@@ -2407,7 +2407,7 @@ void SvNumberFormatter::ImpGenerateFormats( sal_uInt32 CLOffset, BOOL bLoadingSO
pNewFormat = ImpInsertFormat( aFormatSeq[nIdx],
CLOffset + SetIndexTable( NF_DATE_SYS_DDMMYYYY, ZF_STANDARD_DATE+6 ));
if ( pNewFormat )
- pNewFormat->SetUsed(TRUE); // must be saved for older versions
+ pNewFormat->SetUsed(TRUE); // must be saved for older versions
// DD.MM.YY def/System, since number formatter version 6
nIdx = ImpGetFormatCodeIndex( aFormatSeq, NF_DATE_SYS_DDMMYY );
@@ -2579,7 +2579,7 @@ void SvNumberFormatter::ImpGenerateFormats( sal_uInt32 CLOffset, BOOL bLoadingSO
// # ?/?
aSingleFormatCode.Code = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "# ?/?" ) );
- String s25( RTL_CONSTASCII_USTRINGPARAM( "# ?/?" ) ); // # ?/?
+ String s25( RTL_CONSTASCII_USTRINGPARAM( "# ?/?" ) ); // # ?/?
ImpInsertFormat( aSingleFormatCode,
CLOffset + SetIndexTable( NF_FRACTION_1, ZF_STANDARD_FRACTION ));
@@ -2640,11 +2640,11 @@ void SvNumberFormatter::ImpGenerateAdditionalFormats( sal_uInt32 CLOffset,
if ( nPos - CLOffset >= SV_COUNTRY_LANGUAGE_OFFSET )
{
DBG_ERRORFILE( "ImpGenerateAdditionalFormats: too many formats" );
- break; // for
+ break; // for
}
if ( pFormatArr[j].Index < NF_INDEX_TABLE_ENTRIES &&
pFormatArr[j].Index != NF_CURRENCY_1000DEC2_CCC )
- { // Insert only if not already inserted, but internal index must be
+ { // Insert only if not already inserted, but internal index must be
// above so ImpInsertFormat can distinguish it.
sal_Int16 nOrgIndex = pFormatArr[j].Index;
pFormatArr[j].Index = sal::static_int_cast< sal_Int16 >(
@@ -2714,7 +2714,7 @@ void SvNumberFormatter::GenerateFormat(String& sString,
eLnge = IniLnge;
short eType = GetType(nIndex);
USHORT i;
- ImpGenerateCL(eLnge); // ggfs. neu Standard-
+ ImpGenerateCL(eLnge); // ggfs. neu Standard-
// formate anlegen
sString.Erase();
@@ -2831,7 +2831,7 @@ BOOL SvNumberFormatter::IsUserDefined(const String& sStr,
{
if (eLnge == LANGUAGE_DONTKNOW)
eLnge = IniLnge;
- sal_uInt32 CLOffset = ImpGenerateCL(eLnge); // ggfs. neu Standard-
+ sal_uInt32 CLOffset = ImpGenerateCL(eLnge); // ggfs. neu Standard-
// formate anlegen
eLnge = ActLnge;
sal_uInt32 nKey = ImpIsEntry(sStr, CLOffset, eLnge);
@@ -2848,7 +2848,7 @@ sal_uInt32 SvNumberFormatter::GetEntryKey(const String& sStr,
{
if (eLnge == LANGUAGE_DONTKNOW)
eLnge = IniLnge;
- sal_uInt32 CLOffset = ImpGenerateCL(eLnge); // ggfs. neu Standard-
+ sal_uInt32 CLOffset = ImpGenerateCL(eLnge); // ggfs. neu Standard-
// formate anlegen
return ImpIsEntry(sStr, CLOffset, eLnge);
}
@@ -2903,30 +2903,30 @@ SvNumberFormatterIndexTable* SvNumberFormatter::MergeFormatter(SvNumberFormatter
while (pFormat)
{
nOldKey = rTable.aFTable.GetCurKey();
- nOffset = nOldKey % SV_COUNTRY_LANGUAGE_OFFSET; // relativIndex
- if (nOffset == 0) // 1. Format von CL
+ nOffset = nOldKey % SV_COUNTRY_LANGUAGE_OFFSET; // relativIndex
+ if (nOffset == 0) // 1. Format von CL
nCLOffset = ImpGenerateCL(pFormat->GetLanguage());
- if (nOffset <= SV_MAX_ANZ_STANDARD_FORMATE) // Std.form.
+ if (nOffset <= SV_MAX_ANZ_STANDARD_FORMATE) // Std.form.
{
nNewKey = nCLOffset + nOffset;
- if (!aFTable.Get(nNewKey)) // noch nicht da
+ if (!aFTable.Get(nNewKey)) // noch nicht da
{
-// pNewEntry = new SvNumberformat(*pFormat); // Copy reicht nicht !!!
+// pNewEntry = new SvNumberformat(*pFormat); // Copy reicht nicht !!!
pNewEntry = new SvNumberformat( *pFormat, *pFormatScanner );
if (!aFTable.Insert(nNewKey, pNewEntry))
delete pNewEntry;
}
- if (nNewKey != nOldKey) // neuer Index
+ if (nNewKey != nOldKey) // neuer Index
{
pNewIndex = new sal_uInt32(nNewKey);
if (!pMergeTable->Insert(nOldKey,pNewIndex))
delete pNewIndex;
}
}
- else // benutzerdef.
+ else // benutzerdef.
{
-// pNewEntry = new SvNumberformat(*pFormat); // Copy reicht nicht !!!
+// pNewEntry = new SvNumberformat(*pFormat); // Copy reicht nicht !!!
pNewEntry = new SvNumberformat( *pFormat, *pFormatScanner );
nNewKey = ImpIsEntry(pNewEntry->GetFormatstring(),
nCLOffset,
@@ -2950,7 +2950,7 @@ SvNumberFormatterIndexTable* SvNumberFormatter::MergeFormatter(SvNumberFormatter
else
pStdFormat->SetLastInsertKey((USHORT) (nNewKey - nCLOffset));
}
- if (nNewKey != nOldKey) // neuer Index
+ if (nNewKey != nOldKey) // neuer Index
{
pNewIndex = new sal_uInt32(nNewKey);
if (!pMergeTable->Insert(nOldKey,pNewIndex))
@@ -2985,11 +2985,11 @@ sal_uInt32 SvNumberFormatter::GetFormatForLanguageIfBuiltIn( sal_uInt32 nFormat,
if ( eLnge == LANGUAGE_DONTKNOW )
eLnge = IniLnge;
if ( nFormat < SV_COUNTRY_LANGUAGE_OFFSET && eLnge == IniLnge )
- return nFormat; // es bleibt wie es ist
- sal_uInt32 nOffset = nFormat % SV_COUNTRY_LANGUAGE_OFFSET; // relativIndex
+ return nFormat; // es bleibt wie es ist
+ sal_uInt32 nOffset = nFormat % SV_COUNTRY_LANGUAGE_OFFSET; // relativIndex
if ( nOffset > SV_MAX_ANZ_STANDARD_FORMATE )
- return nFormat; // kein eingebautes Format
- sal_uInt32 nCLOffset = ImpGenerateCL(eLnge); // ggbf. generieren
+ return nFormat; // kein eingebautes Format
+ sal_uInt32 nCLOffset = ImpGenerateCL(eLnge); // ggbf. generieren
return nCLOffset + nOffset;
}
@@ -3002,22 +3002,22 @@ sal_uInt32 SvNumberFormatter::GetFormatIndex( NfIndexTableOffset nTabOff,
return NUMBERFORMAT_ENTRY_NOT_FOUND;
if ( eLnge == LANGUAGE_DONTKNOW )
eLnge = IniLnge;
- sal_uInt32 nCLOffset = ImpGenerateCL(eLnge); // ggbf. generieren
+ sal_uInt32 nCLOffset = ImpGenerateCL(eLnge); // ggbf. generieren
return nCLOffset + theIndexTable[nTabOff];
}
NfIndexTableOffset SvNumberFormatter::GetIndexTableOffset( sal_uInt32 nFormat ) const
{
- sal_uInt32 nOffset = nFormat % SV_COUNTRY_LANGUAGE_OFFSET; // relativIndex
+ sal_uInt32 nOffset = nFormat % SV_COUNTRY_LANGUAGE_OFFSET; // relativIndex
if ( nOffset > SV_MAX_ANZ_STANDARD_FORMATE )
- return NF_INDEX_TABLE_ENTRIES; // kein eingebautes Format
+ return NF_INDEX_TABLE_ENTRIES; // kein eingebautes Format
for ( USHORT j = 0; j < NF_INDEX_TABLE_ENTRIES; j++ )
{
if ( theIndexTable[j] == nOffset )
return (NfIndexTableOffset) j;
}
- return NF_INDEX_TABLE_ENTRIES; // bad luck
+ return NF_INDEX_TABLE_ENTRIES; // bad luck
}
@@ -3224,13 +3224,13 @@ sal_uInt32 SvNumberFormatter::ImpGetDefaultCurrencyFormat()
if ( pEntry->IsStandard() && (pEntry->GetType() & NUMBERFORMAT_CURRENCY) )
{
nDefaultCurrencyFormat = nKey;
- break; // while
+ break; // while
}
aFTable.Next();
}
if ( nDefaultCurrencyFormat == NUMBERFORMAT_ENTRY_NOT_FOUND )
- { // none found, create one
+ { // none found, create one
xub_StrLen nCheck;
short nType;
NfWSStringsDtor aCurrList;
@@ -3251,7 +3251,7 @@ sal_uInt32 SvNumberFormatter::ImpGetDefaultCurrencyFormat()
if ( nDefaultCurrencyFormat == NUMBERFORMAT_ENTRY_NOT_FOUND )
nDefaultCurrencyFormat = CLOffset + ZF_STANDARD_CURRENCY+3;
else
- { // mark as standard so that it is found next time
+ { // mark as standard so that it is found next time
SvNumberformat* pEntry = aFTable.Get( nDefaultCurrencyFormat );
if ( pEntry )
pEntry->SetStandard();
@@ -3292,13 +3292,13 @@ inline
if ( pFoundEntry && pFoundEntry != pData )
{
pFoundEntry = NULL;
- return FALSE; // break loop, not unique
+ return FALSE; // break loop, not unique
}
if ( nPos == 0 )
- { // first entry is SYSTEM
+ { // first entry is SYSTEM
pFoundEntry = MatchSystemCurrency();
if ( pFoundEntry )
- return FALSE; // break loop
+ return FALSE; // break loop
// even if there are more matching entries
// this one is propably the one we are looking for
else
@@ -3342,7 +3342,7 @@ BOOL SvNumberFormatter::GetNewCurrencySymbolString( sal_uInt32 nFormat,
}
}
if ( !rStr.Len() )
- { // analog zu BuildSymbolString
+ { // analog zu BuildSymbolString
rStr = '[';
rStr += '$';
if ( aSymbol.Search( '-' ) != STRING_NOTFOUND ||
@@ -3479,20 +3479,20 @@ void SvNumberFormatter::GetCompatibilityCurrency( String& rSymbol, String& rAbbr
void lcl_CheckCurrencySymbolPosition( const NfCurrencyEntry& rCurr )
{
- short nPos = -1; // -1:=unknown, 0:=vorne, 1:=hinten
+ short nPos = -1; // -1:=unknown, 0:=vorne, 1:=hinten
short nNeg = -1;
switch ( rCurr.GetPositiveFormat() )
{
- case 0: // $1
+ case 0: // $1
nPos = 0;
break;
- case 1: // 1$
+ case 1: // 1$
nPos = 1;
break;
- case 2: // $ 1
+ case 2: // $ 1
nPos = 0;
break;
- case 3: // 1 $
+ case 3: // 1 $
nPos = 1;
break;
default:
@@ -3502,34 +3502,34 @@ void lcl_CheckCurrencySymbolPosition( const NfCurrencyEntry& rCurr )
}
switch ( rCurr.GetNegativeFormat() )
{
- case 0: // ($1)
+ case 0: // ($1)
nNeg = 0;
break;
- case 1: // -$1
+ case 1: // -$1
nNeg = 0;
break;
- case 2: // $-1
+ case 2: // $-1
nNeg = 0;
break;
- case 3: // $1-
+ case 3: // $1-
nNeg = 0;
break;
- case 4: // (1$)
+ case 4: // (1$)
nNeg = 1;
break;
- case 5: // -1$
+ case 5: // -1$
nNeg = 1;
break;
- case 6: // 1-$
+ case 6: // 1-$
nNeg = 1;
break;
- case 7: // 1$-
+ case 7: // 1$-
nNeg = 1;
break;
- case 8: // -1 $
+ case 8: // -1 $
nNeg = 1;
break;
- case 9: // -$ 1
+ case 9: // -$ 1
nNeg = 0;
break;
case 10: // 1 $-
@@ -3538,16 +3538,16 @@ void lcl_CheckCurrencySymbolPosition( const NfCurrencyEntry& rCurr )
case 11: // $ -1
nNeg = 0;
break;
- case 12 : // $ 1-
+ case 12 : // $ 1-
nNeg = 0;
break;
- case 13 : // 1- $
+ case 13 : // 1- $
nNeg = 1;
break;
- case 14 : // ($ 1)
+ case 14 : // ($ 1)
nNeg = 0;
break;
- case 15 : // (1 $)
+ case 15 : // (1 $)
nNeg = 1;
break;
default:
@@ -3581,7 +3581,7 @@ void SvNumberFormatter::ImpInitCurrencyTable()
// racing condition possible:
// ::osl::MutexGuard aGuard( GetMutex() );
// while ( !bCurrencyTableInitialized )
- // ImpInitCurrencyTable();
+ // ImpInitCurrencyTable();
static BOOL bInitializing = FALSE;
if ( bCurrencyTableInitialized || bInitializing )
return ;
@@ -3726,7 +3726,7 @@ USHORT SvNumberFormatter::GetCurrencyFormatStrings( NfWSStringsDtor& rStrArr,
{
USHORT nDefault = 0;
if ( bBank )
- { // nur Bankensymbole
+ { // nur Bankensymbole
String aPositiveBank, aNegativeBank;
rCurr.BuildPositiveFormatString( aPositiveBank, TRUE, *xLocaleData, 1 );
rCurr.BuildNegativeFormatString( aNegativeBank, TRUE, *xLocaleData, 1 );
@@ -3749,7 +3749,7 @@ USHORT SvNumberFormatter::GetCurrencyFormatStrings( NfWSStringsDtor& rStrArr,
nDefault = rStrArr.Count() - 1;
}
else
- { // gemischte Formate wie in SvNumberFormatter::ImpGenerateFormats
+ { // gemischte Formate wie in SvNumberFormatter::ImpGenerateFormats
// aber keine doppelten, wenn keine Nachkommastellen in Waehrung
String aPositive, aNegative, aPositiveNoDec, aNegativeNoDec,
aPositiveDashed, aNegativeDashed;
@@ -3815,7 +3815,7 @@ USHORT SvNumberFormatter::GetCurrencyFormatStrings( NfWSStringsDtor& rStrArr,
//--- NfCurrencyEntry ----------------------------------------------------
NfCurrencyEntry::NfCurrencyEntry()
- : eLanguage( LANGUAGE_DONTKNOW ),
+ : eLanguage( LANGUAGE_DONTKNOW ),
nPositiveFormat(3),
nNegativeFormat(8),
nDigits(2),
@@ -3826,34 +3826,34 @@ NfCurrencyEntry::NfCurrencyEntry()
NfCurrencyEntry::NfCurrencyEntry( const LocaleDataWrapper& rLocaleData, LanguageType eLang )
{
- aSymbol = rLocaleData.getCurrSymbol();
- aBankSymbol = rLocaleData.getCurrBankSymbol();
- eLanguage = eLang;
- nPositiveFormat = rLocaleData.getCurrPositiveFormat();
- nNegativeFormat = rLocaleData.getCurrNegativeFormat();
- nDigits = rLocaleData.getCurrDigits();
- cZeroChar = rLocaleData.getCurrZeroChar();
+ aSymbol = rLocaleData.getCurrSymbol();
+ aBankSymbol = rLocaleData.getCurrBankSymbol();
+ eLanguage = eLang;
+ nPositiveFormat = rLocaleData.getCurrPositiveFormat();
+ nNegativeFormat = rLocaleData.getCurrNegativeFormat();
+ nDigits = rLocaleData.getCurrDigits();
+ cZeroChar = rLocaleData.getCurrZeroChar();
}
NfCurrencyEntry::NfCurrencyEntry( const ::com::sun::star::i18n::Currency & rCurr,
const LocaleDataWrapper& rLocaleData, LanguageType eLang )
{
- aSymbol = rCurr.Symbol;
- aBankSymbol = rCurr.BankSymbol;
- eLanguage = eLang;
- nPositiveFormat = rLocaleData.getCurrPositiveFormat();
- nNegativeFormat = rLocaleData.getCurrNegativeFormat();
+ aSymbol = rCurr.Symbol;
+ aBankSymbol = rCurr.BankSymbol;
+ eLanguage = eLang;
+ nPositiveFormat = rLocaleData.getCurrPositiveFormat();
+ nNegativeFormat = rLocaleData.getCurrNegativeFormat();
nDigits = rCurr.DecimalPlaces;
- cZeroChar = rLocaleData.getCurrZeroChar();
+ cZeroChar = rLocaleData.getCurrZeroChar();
}
BOOL NfCurrencyEntry::operator==( const NfCurrencyEntry& r ) const
{
- return aSymbol == r.aSymbol
- && aBankSymbol == r.aBankSymbol
- && eLanguage == r.eLanguage
+ return aSymbol == r.aSymbol
+ && aBankSymbol == r.aBankSymbol
+ && eLanguage == r.eLanguage
;
}
@@ -3862,11 +3862,11 @@ void NfCurrencyEntry::SetEuro()
{
aSymbol = NfCurrencyEntry::GetEuroSymbol();
aBankSymbol.AssignAscii( RTL_CONSTASCII_STRINGPARAM( "EUR" ) );
- eLanguage = LANGUAGE_DONTKNOW;
- nPositiveFormat = 3;
- nNegativeFormat = 8;
- nDigits = 2;
- cZeroChar = '0';
+ eLanguage = LANGUAGE_DONTKNOW;
+ nPositiveFormat = 3;
+ nNegativeFormat = 8;
+ nDigits = 2;
+ cZeroChar = '0';
}
@@ -3881,9 +3881,9 @@ BOOL NfCurrencyEntry::IsEuro() const
void NfCurrencyEntry::ApplyVariableInformation( const NfCurrencyEntry& r )
{
- nPositiveFormat = r.nPositiveFormat;
- nNegativeFormat = r.nNegativeFormat;
- cZeroChar = r.cZeroChar;
+ nPositiveFormat = r.nPositiveFormat;
+ nNegativeFormat = r.nNegativeFormat;
+ cZeroChar = r.cZeroChar;
}
@@ -3971,13 +3971,13 @@ void NfCurrencyEntry::CompletePositiveFormatString( String& rStr,
{
switch( nPositiveFormat )
{
- case 0: // $1
+ case 0: // $1
rStr.Insert( rSymStr , 0 );
break;
- case 1: // 1$
+ case 1: // 1$
rStr += rSymStr;
break;
- case 2: // $ 1
+ case 2: // $ 1
{
rStr.Insert( ' ', 0 );
rStr.Insert( rSymStr, 0 );
@@ -4002,64 +4002,64 @@ void NfCurrencyEntry::CompleteNegativeFormatString( String& rStr,
{
switch( nNegativeFormat )
{
- case 0: // ($1)
+ case 0: // ($1)
{
rStr.Insert( rSymStr, 0);
rStr.Insert('(',0);
rStr += ')';
}
break;
- case 1: // -$1
+ case 1: // -$1
{
rStr.Insert( rSymStr, 0);
rStr.Insert('-',0);
}
break;
- case 2: // $-1
+ case 2: // $-1
{
rStr.Insert('-',0);
rStr.Insert( rSymStr, 0);
}
break;
- case 3: // $1-
+ case 3: // $1-
{
rStr.Insert( rSymStr, 0);
rStr += '-';
}
break;
- case 4: // (1$)
+ case 4: // (1$)
{
rStr.Insert('(',0);
rStr += rSymStr;
rStr += ')';
}
break;
- case 5: // -1$
+ case 5: // -1$
{
rStr += rSymStr;
rStr.Insert('-',0);
}
break;
- case 6: // 1-$
+ case 6: // 1-$
{
rStr += '-';
rStr += rSymStr;
}
break;
- case 7: // 1$-
+ case 7: // 1$-
{
rStr += rSymStr;
rStr += '-';
}
break;
- case 8: // -1 $
+ case 8: // -1 $
{
rStr += ' ';
rStr += rSymStr;
rStr.Insert('-',0);
}
break;
- case 9: // -$ 1
+ case 9: // -$ 1
{
rStr.Insert(' ',0);
rStr.Insert( rSymStr, 0);
@@ -4081,21 +4081,21 @@ void NfCurrencyEntry::CompleteNegativeFormatString( String& rStr,
rStr.Insert( aTmp, 0 );
}
break;
- case 12 : // $ 1-
+ case 12 : // $ 1-
{
rStr.Insert(' ', 0);
rStr.Insert( rSymStr, 0);
rStr += '-';
}
break;
- case 13 : // 1- $
+ case 13 : // 1- $
{
rStr += '-';
rStr += ' ';
rStr += rSymStr;
}
break;
- case 14 : // ($ 1)
+ case 14 : // ($ 1)
{
rStr.Insert(' ',0);
rStr.Insert( rSymStr, 0);
@@ -4103,7 +4103,7 @@ void NfCurrencyEntry::CompleteNegativeFormatString( String& rStr,
rStr += ')';
}
break;
- case 15 : // (1 $)
+ case 15 : // (1 $)
{
rStr.Insert('(',0);
rStr += ' ';
@@ -4132,13 +4132,13 @@ USHORT NfCurrencyEntry::GetEffectivePositiveFormat( USHORT
#else
switch ( nIntlFormat )
{
- case 0: // $1
+ case 0: // $1
nIntlFormat = 2; // $ 1
break;
- case 1: // 1$
+ case 1: // 1$
nIntlFormat = 3; // 1 $
break;
- case 2: // $ 1
+ case 2: // $ 1
break;
case 3: // 1 $
break;
@@ -4157,30 +4157,30 @@ USHORT NfCurrencyEntry::GetEffectivePositiveFormat( USHORT
// nur aufrufen, wenn nCurrFormat wirklich mit Klammern ist
USHORT lcl_MergeNegativeParenthesisFormat( USHORT nIntlFormat, USHORT nCurrFormat )
{
- short nSign = 0; // -1:=Klammer 0:=links, 1:=mitte, 2:=rechts
+ short nSign = 0; // -1:=Klammer 0:=links, 1:=mitte, 2:=rechts
switch ( nIntlFormat )
{
- case 0: // ($1)
- case 4: // (1$)
- case 14 : // ($ 1)
- case 15 : // (1 $)
+ case 0: // ($1)
+ case 4: // (1$)
+ case 14 : // ($ 1)
+ case 15 : // (1 $)
return nCurrFormat;
- case 1: // -$1
- case 5: // -1$
- case 8: // -1 $
- case 9: // -$ 1
+ case 1: // -$1
+ case 5: // -1$
+ case 8: // -1 $
+ case 9: // -$ 1
nSign = 0;
break;
- case 2: // $-1
- case 6: // 1-$
- case 11 : // $ -1
- case 13 : // 1- $
+ case 2: // $-1
+ case 6: // 1-$
+ case 11 : // $ -1
+ case 13 : // 1- $
nSign = 1;
break;
- case 3: // $1-
- case 7: // 1$-
+ case 3: // $1-
+ case 7: // 1$-
case 10: // 1 $-
- case 12 : // $ 1-
+ case 12 : // $ 1-
nSign = 2;
break;
default:
@@ -4190,7 +4190,7 @@ USHORT lcl_MergeNegativeParenthesisFormat( USHORT nIntlFormat, USHORT nCurrForma
switch ( nCurrFormat )
{
- case 0: // ($1)
+ case 0: // ($1)
switch ( nSign )
{
case 0:
@@ -4201,7 +4201,7 @@ USHORT lcl_MergeNegativeParenthesisFormat( USHORT nIntlFormat, USHORT nCurrForma
return 3; // $1-
}
break;
- case 4: // (1$)
+ case 4: // (1$)
switch ( nSign )
{
case 0:
@@ -4212,7 +4212,7 @@ USHORT lcl_MergeNegativeParenthesisFormat( USHORT nIntlFormat, USHORT nCurrForma
return 7; // 1$-
}
break;
- case 14 : // ($ 1)
+ case 14 : // ($ 1)
switch ( nSign )
{
case 0:
@@ -4223,7 +4223,7 @@ USHORT lcl_MergeNegativeParenthesisFormat( USHORT nIntlFormat, USHORT nCurrForma
return 12; // $ 1-
}
break;
- case 15 : // (1 $)
+ case 15 : // (1 $)
switch ( nSign )
{
case 0:
@@ -4250,50 +4250,50 @@ USHORT NfCurrencyEntry::GetEffectiveNegativeFormat( USHORT nIntlFormat,
#else
switch ( nIntlFormat )
{
- case 0: // ($1)
-// nIntlFormat = 14; // ($ 1)
+ case 0: // ($1)
+// nIntlFormat = 14; // ($ 1)
nIntlFormat = 9; // -$ 1
break;
- case 1: // -$1
+ case 1: // -$1
nIntlFormat = 9; // -$ 1
break;
- case 2: // $-1
+ case 2: // $-1
nIntlFormat = 11; // $ -1
break;
- case 3: // $1-
+ case 3: // $1-
nIntlFormat = 12; // $ 1-
break;
- case 4: // (1$)
-// nIntlFormat = 15; // (1 $)
+ case 4: // (1$)
+// nIntlFormat = 15; // (1 $)
nIntlFormat = 8; // -1 $
break;
- case 5: // -1$
+ case 5: // -1$
nIntlFormat = 8; // -1 $
break;
- case 6: // 1-$
+ case 6: // 1-$
nIntlFormat = 13; // 1- $
break;
- case 7: // 1$-
+ case 7: // 1$-
nIntlFormat = 10; // 1 $-
break;
- case 8: // -1 $
+ case 8: // -1 $
break;
- case 9: // -$ 1
+ case 9: // -$ 1
break;
case 10: // 1 $-
break;
case 11: // $ -1
break;
- case 12 : // $ 1-
+ case 12 : // $ 1-
break;
- case 13 : // 1- $
+ case 13 : // 1- $
break;
- case 14 : // ($ 1)
-// nIntlFormat = 14; // ($ 1)
+ case 14 : // ($ 1)
+// nIntlFormat = 14; // ($ 1)
nIntlFormat = 9; // -$ 1
break;
- case 15 : // (1 $)
-// nIntlFormat = 15; // (1 $)
+ case 15 : // (1 $)
+// nIntlFormat = 15; // (1 $)
nIntlFormat = 8; // -1 $
break;
default:
@@ -4306,36 +4306,36 @@ USHORT NfCurrencyEntry::GetEffectiveNegativeFormat( USHORT nIntlFormat,
{
switch ( nCurrFormat )
{
- case 0: // ($1)
+ case 0: // ($1)
nIntlFormat = lcl_MergeNegativeParenthesisFormat(
nIntlFormat, nCurrFormat );
break;
- case 1: // -$1
+ case 1: // -$1
nIntlFormat = nCurrFormat;
break;
- case 2: // $-1
+ case 2: // $-1
nIntlFormat = nCurrFormat;
break;
- case 3: // $1-
+ case 3: // $1-
nIntlFormat = nCurrFormat;
break;
- case 4: // (1$)
+ case 4: // (1$)
nIntlFormat = lcl_MergeNegativeParenthesisFormat(
nIntlFormat, nCurrFormat );
break;
- case 5: // -1$
+ case 5: // -1$
nIntlFormat = nCurrFormat;
break;
- case 6: // 1-$
+ case 6: // 1-$
nIntlFormat = nCurrFormat;
break;
- case 7: // 1$-
+ case 7: // 1$-
nIntlFormat = nCurrFormat;
break;
- case 8: // -1 $
+ case 8: // -1 $
nIntlFormat = nCurrFormat;
break;
- case 9: // -$ 1
+ case 9: // -$ 1
nIntlFormat = nCurrFormat;
break;
case 10: // 1 $-
@@ -4344,17 +4344,17 @@ USHORT NfCurrencyEntry::GetEffectiveNegativeFormat( USHORT nIntlFormat,
case 11: // $ -1
nIntlFormat = nCurrFormat;
break;
- case 12 : // $ 1-
+ case 12 : // $ 1-
nIntlFormat = nCurrFormat;
break;
- case 13 : // 1- $
+ case 13 : // 1- $
nIntlFormat = nCurrFormat;
break;
- case 14 : // ($ 1)
+ case 14 : // ($ 1)
nIntlFormat = lcl_MergeNegativeParenthesisFormat(
nIntlFormat, nCurrFormat );
break;
- case 15 : // (1 $)
+ case 15 : // (1 $)
nIntlFormat = lcl_MergeNegativeParenthesisFormat(
nIntlFormat, nCurrFormat );
break;
@@ -4373,23 +4373,23 @@ sal_Char NfCurrencyEntry::GetEuroSymbol( rtl_TextEncoding eTextEncoding )
{
switch ( eTextEncoding )
{
- case RTL_TEXTENCODING_MS_1252 : // WNT Ansi
- case RTL_TEXTENCODING_ISO_8859_1 : // UNX for use with TrueType fonts
+ case RTL_TEXTENCODING_MS_1252 : // WNT Ansi
+ case RTL_TEXTENCODING_ISO_8859_1 : // UNX for use with TrueType fonts
return '\x80';
- case RTL_TEXTENCODING_ISO_8859_15 : // UNX real
+ case RTL_TEXTENCODING_ISO_8859_15 : // UNX real
return '\xA4';
- case RTL_TEXTENCODING_IBM_850 : // OS2
+ case RTL_TEXTENCODING_IBM_850 : // OS2
return '\xD5';
- case RTL_TEXTENCODING_APPLE_ROMAN : // MAC
+ case RTL_TEXTENCODING_APPLE_ROMAN : // MAC
return '\xDB';
- default: // default system
+ default: // default system
#if WNT
return '\x80';
#elif OS2
return '\xD5';
#elif UNX
-// return '\xA4'; // #56121# 0xA4 waere korrekt fuer iso-8859-15
- return '\x80'; // aber Windoze-Code fuer die konvertierten TrueType-Fonts
+// return '\xA4'; // #56121# 0xA4 waere korrekt fuer iso-8859-15
+ return '\x80'; // aber Windoze-Code fuer die konvertierten TrueType-Fonts
#else
#error EuroSymbol is what?
return '\x80';
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 7ee5059a9887..4c1432304706 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -1823,8 +1823,8 @@ void SvNumberformat::ImpGetOutputStdToPrecision(double& rNumber, String& rOutStr
rtl_math_StringFormat_G, -3, '.', sal_True );
}
#endif
-
- // We decided to strip trailing zeros unconditionally, since binary
+
+ // We decided to strip trailing zeros unconditionally, since binary
// double-precision rounding error makes it impossible to determine e.g.
// whether 844.10000000000002273737 is what the user has typed, or the
// user has typed 844.1 but IEEE 754 represents it that way internally.
@@ -2085,7 +2085,7 @@ BOOL SvNumberformat::GetOutputString(double fNumber,
xub_StrLen nLen = OutString.Len();
if (!nLen)
return false;
-
+
// #i112250# With the 10-decimal limit, small numbers are formatted as "0".
// Switch to scientific in that case, too:
if (nLen > 11 || (OutString.EqualsAscii("0") && fNumber != 0.0))
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index 77f5eab0efd1..e0bb022a95a1 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ using namespace svt;
const sal_Unicode cNonBreakingSpace = 0xA0;
-namespace
+namespace
{
struct ImplEnglishColors
{
@@ -82,20 +82,20 @@ ImpSvNumberformatScan::ImpSvNumberformatScan( SvNumberFormatter* pFormatterP )
pFormatter = pFormatterP;
bConvertMode = FALSE;
//! All keywords MUST be UPPERCASE!
- sKeyword[NF_KEY_E].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "E" ) ); // Exponent
- sKeyword[NF_KEY_AMPM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "AM/PM" ) ); // AM/PM
- sKeyword[NF_KEY_AP].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "A/P" ) ); // AM/PM short
- sKeyword[NF_KEY_MI].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "M" ) ); // Minute
- sKeyword[NF_KEY_MMI].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MM" ) ); // Minute 02
- sKeyword[NF_KEY_S].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "S" ) ); // Second
- sKeyword[NF_KEY_SS].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "SS" ) ); // Second 02
- sKeyword[NF_KEY_Q].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "Q" ) ); // Quarter short 'Q'
- sKeyword[NF_KEY_QQ].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "QQ" ) ); // Quarter long
- sKeyword[NF_KEY_NN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "NN" ) ); // Day of week short
- sKeyword[NF_KEY_NNN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "NNN" ) ); // Day of week long
- sKeyword[NF_KEY_NNNN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "NNNN" ) ); // Day of week long incl. separator
- sKeyword[NF_KEY_WW].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "WW" ) ); // Week of year
- sKeyword[NF_KEY_CCC].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "CCC" ) ); // Currency abbreviation
+ sKeyword[NF_KEY_E].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "E" ) ); // Exponent
+ sKeyword[NF_KEY_AMPM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "AM/PM" ) ); // AM/PM
+ sKeyword[NF_KEY_AP].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "A/P" ) ); // AM/PM short
+ sKeyword[NF_KEY_MI].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "M" ) ); // Minute
+ sKeyword[NF_KEY_MMI].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MM" ) ); // Minute 02
+ sKeyword[NF_KEY_S].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "S" ) ); // Second
+ sKeyword[NF_KEY_SS].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "SS" ) ); // Second 02
+ sKeyword[NF_KEY_Q].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "Q" ) ); // Quarter short 'Q'
+ sKeyword[NF_KEY_QQ].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "QQ" ) ); // Quarter long
+ sKeyword[NF_KEY_NN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "NN" ) ); // Day of week short
+ sKeyword[NF_KEY_NNN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "NNN" ) ); // Day of week long
+ sKeyword[NF_KEY_NNNN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "NNNN" ) ); // Day of week long incl. separator
+ sKeyword[NF_KEY_WW].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "WW" ) ); // Week of year
+ sKeyword[NF_KEY_CCC].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "CCC" ) ); // Currency abbreviation
bKeywordsNeedInit = TRUE; // locale dependent keywords
bCompatCurNeedInit = TRUE; // locale dependent compatibility currency strings
@@ -246,15 +246,15 @@ void ImpSvNumberformatScan::SetDependentKeywords()
sKeyword[NF_KEY_GENERAL] = pCharClass->upper( sNameStandardFormat );
// preset new calendar keywords
- sKeyword[NF_KEY_AAA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "AAA" ) );
- sKeyword[NF_KEY_AAAA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "AAAA" ) );
- sKeyword[NF_KEY_EC].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "E" ) );
- sKeyword[NF_KEY_EEC].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "EE" ) );
- sKeyword[NF_KEY_G].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "G" ) );
- sKeyword[NF_KEY_GG].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GG" ) );
- sKeyword[NF_KEY_GGG].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GGG" ) );
- sKeyword[NF_KEY_R].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "R" ) );
- sKeyword[NF_KEY_RR].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "RR" ) );
+ sKeyword[NF_KEY_AAA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "AAA" ) );
+ sKeyword[NF_KEY_AAAA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "AAAA" ) );
+ sKeyword[NF_KEY_EC].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "E" ) );
+ sKeyword[NF_KEY_EEC].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "EE" ) );
+ sKeyword[NF_KEY_G].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "G" ) );
+ sKeyword[NF_KEY_GG].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GG" ) );
+ sKeyword[NF_KEY_GGG].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GGG" ) );
+ sKeyword[NF_KEY_R].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "R" ) );
+ sKeyword[NF_KEY_RR].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "RR" ) );
// Thai T NatNum special. Other locale's small letter 't' results in upper
// case comparison not matching but length does in conversion mode. Ugly.
@@ -272,31 +272,31 @@ void ImpSvNumberformatScan::SetDependentKeywords()
case LANGUAGE_GERMAN_LIECHTENSTEIN:
{
//! all capital letters
- sKeyword[NF_KEY_M].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "M" ) ); // month 1
- sKeyword[NF_KEY_MM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MM" ) ); // month 01
- sKeyword[NF_KEY_MMM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MMM" ) ); // month Jan
- sKeyword[NF_KEY_MMMM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MMMM" ) ); // month Januar
- sKeyword[NF_KEY_MMMMM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MMMMM" ) );// month J
- sKeyword[NF_KEY_H].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "H" ) ); // hour 2
- sKeyword[NF_KEY_HH].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "HH" ) ); // hour 02
- sKeyword[NF_KEY_D].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "T" ) );
- sKeyword[NF_KEY_DD].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "TT" ) );
- sKeyword[NF_KEY_DDD].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "TTT" ) );
- sKeyword[NF_KEY_DDDD].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "TTTT" ) );
- sKeyword[NF_KEY_YY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "JJ" ) );
- sKeyword[NF_KEY_YYYY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "JJJJ" ) );
- sKeyword[NF_KEY_BOOLEAN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "LOGISCH" ) );
- sKeyword[NF_KEY_COLOR].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "FARBE" ) );
- sKeyword[NF_KEY_BLACK].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "SCHWARZ" ) );
- sKeyword[NF_KEY_BLUE].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BLAU" ) );
+ sKeyword[NF_KEY_M].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "M" ) ); // month 1
+ sKeyword[NF_KEY_MM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MM" ) ); // month 01
+ sKeyword[NF_KEY_MMM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MMM" ) ); // month Jan
+ sKeyword[NF_KEY_MMMM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MMMM" ) ); // month Januar
+ sKeyword[NF_KEY_MMMMM].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MMMMM" ) );// month J
+ sKeyword[NF_KEY_H].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "H" ) ); // hour 2
+ sKeyword[NF_KEY_HH].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "HH" ) ); // hour 02
+ sKeyword[NF_KEY_D].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "T" ) );
+ sKeyword[NF_KEY_DD].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "TT" ) );
+ sKeyword[NF_KEY_DDD].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "TTT" ) );
+ sKeyword[NF_KEY_DDDD].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "TTTT" ) );
+ sKeyword[NF_KEY_YY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "JJ" ) );
+ sKeyword[NF_KEY_YYYY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "JJJJ" ) );
+ sKeyword[NF_KEY_BOOLEAN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "LOGISCH" ) );
+ sKeyword[NF_KEY_COLOR].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "FARBE" ) );
+ sKeyword[NF_KEY_BLACK].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "SCHWARZ" ) );
+ sKeyword[NF_KEY_BLUE].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BLAU" ) );
sKeyword[NF_KEY_GREEN] = UniString( "GR" "\xDC" "N", RTL_TEXTENCODING_ISO_8859_1 );
- sKeyword[NF_KEY_CYAN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "CYAN" ) );
- sKeyword[NF_KEY_RED].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "ROT" ) );
- sKeyword[NF_KEY_MAGENTA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MAGENTA" ) );
- sKeyword[NF_KEY_BROWN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BRAUN" ) );
- sKeyword[NF_KEY_GREY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GRAU" ) );
- sKeyword[NF_KEY_YELLOW].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GELB" ) );
- sKeyword[NF_KEY_WHITE].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "WEISS" ) );
+ sKeyword[NF_KEY_CYAN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "CYAN" ) );
+ sKeyword[NF_KEY_RED].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "ROT" ) );
+ sKeyword[NF_KEY_MAGENTA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MAGENTA" ) );
+ sKeyword[NF_KEY_BROWN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BRAUN" ) );
+ sKeyword[NF_KEY_GREY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GRAU" ) );
+ sKeyword[NF_KEY_YELLOW].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GELB" ) );
+ sKeyword[NF_KEY_WHITE].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "WEISS" ) );
}
break;
default:
@@ -320,7 +320,7 @@ void ImpSvNumberformatScan::SetDependentKeywords()
case LANGUAGE_FRENCH_CANADIAN :
case LANGUAGE_FRENCH_SWISS :
case LANGUAGE_FRENCH_LUXEMBOURG :
- case LANGUAGE_FRENCH_MONACO :
+ case LANGUAGE_FRENCH_MONACO :
sKeyword[NF_KEY_D].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "J" ) );
sKeyword[NF_KEY_DD].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "JJ" ) );
sKeyword[NF_KEY_DDD].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "JJJ" ) );
@@ -365,7 +365,7 @@ void ImpSvNumberformatScan::SetDependentKeywords()
case LANGUAGE_FRENCH_CANADIAN :
case LANGUAGE_FRENCH_SWISS :
case LANGUAGE_FRENCH_LUXEMBOURG :
- case LANGUAGE_FRENCH_MONACO :
+ case LANGUAGE_FRENCH_MONACO :
case LANGUAGE_PORTUGUESE :
case LANGUAGE_PORTUGUESE_BRAZILIAN :
case LANGUAGE_SPANISH_MODERN :
@@ -391,8 +391,8 @@ void ImpSvNumberformatScan::SetDependentKeywords()
sKeyword[NF_KEY_YY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "AA" ) );
sKeyword[NF_KEY_YYYY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "AAAA" ) );
// must exchange the day of week name code, same as Xcl
- sKeyword[NF_KEY_AAA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "OOO" ) );
- sKeyword[NF_KEY_AAAA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "OOOO" ) );
+ sKeyword[NF_KEY_AAA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "OOO" ) );
+ sKeyword[NF_KEY_AAAA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "OOOO" ) );
break;
case LANGUAGE_DUTCH :
case LANGUAGE_DUTCH_BELGIAN :
@@ -432,17 +432,17 @@ void ImpSvNumberformatScan::SetDependentKeywords()
// boolean
sKeyword[NF_KEY_BOOLEAN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BOOLEAN" ) );
// colours
- sKeyword[NF_KEY_COLOR].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "COLOR" ) );
- sKeyword[NF_KEY_BLACK].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BLACK" ) );
- sKeyword[NF_KEY_BLUE].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BLUE" ) );
- sKeyword[NF_KEY_GREEN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GREEN" ) );
- sKeyword[NF_KEY_CYAN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "CYAN" ) );
- sKeyword[NF_KEY_RED].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "RED" ) );
- sKeyword[NF_KEY_MAGENTA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MAGENTA" ) );
- sKeyword[NF_KEY_BROWN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BROWN" ) );
- sKeyword[NF_KEY_GREY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GREY" ) );
- sKeyword[NF_KEY_YELLOW].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "YELLOW" ) );
- sKeyword[NF_KEY_WHITE].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "WHITE" ) );
+ sKeyword[NF_KEY_COLOR].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "COLOR" ) );
+ sKeyword[NF_KEY_BLACK].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BLACK" ) );
+ sKeyword[NF_KEY_BLUE].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BLUE" ) );
+ sKeyword[NF_KEY_GREEN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GREEN" ) );
+ sKeyword[NF_KEY_CYAN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "CYAN" ) );
+ sKeyword[NF_KEY_RED].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "RED" ) );
+ sKeyword[NF_KEY_MAGENTA].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "MAGENTA" ) );
+ sKeyword[NF_KEY_BROWN].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "BROWN" ) );
+ sKeyword[NF_KEY_GREY].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "GREY" ) );
+ sKeyword[NF_KEY_YELLOW].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "YELLOW" ) );
+ sKeyword[NF_KEY_WHITE].AssignAscii( RTL_CONSTASCII_STRINGPARAM( "WHITE" ) );
}
break;
}
@@ -487,7 +487,7 @@ Color* ImpSvNumberformatScan::GetColor(String& sStr)
if ( j < NF_MAX_DEFAULT_COLORS )
i = j;
}
-
+
Color* pResult = NULL;
if (i >= NF_MAX_DEFAULT_COLORS)
{
@@ -556,12 +556,12 @@ short ImpSvNumberformatScan::GetKeyWord( const String& sSymbol, xub_StrLen nPos
}
// new keywords take precedence over old keywords
if ( !bFound )
- { // skip the gap of colors et al between new and old keywords and search on
+ { // skip the gap of colors et al between new and old keywords and search on
i = NF_KEY_LASTKEYWORD;
while ( i > 0 && sString.Search(pKeyword[i]) != 0 )
i--;
if ( i > NF_KEY_LASTOLDKEYWORD && sString != pKeyword[i] )
- { // found something, but maybe it's something else?
+ { // found something, but maybe it's something else?
// e.g. new NNN is found in NNNN, for NNNN we must search on
short j = i - 1;
while ( j > 0 && sString.Search(pKeyword[j]) != 0 )
@@ -575,7 +575,7 @@ short ImpSvNumberformatScan::GetKeyWord( const String& sSymbol, xub_StrLen nPos
LANGUAGE_ENGLISH_US && MsLangId::getRealLanguage( eNewLnge) ==
LANGUAGE_THAI)
i = NF_KEY_THAI_T;
- return i; // 0 => not found
+ return i; // 0 => not found
}
//---------------------------------------------------------------------------
@@ -777,13 +777,13 @@ short ImpSvNumberformatScan::Next_Symbol( const String& rStr,
switch ( cNext )
{
case '+' :
- case '-' : // E+ E- combine to one symbol
+ case '-' : // E+ E- combine to one symbol
sSymbol += cNext;
eType = NF_KEY_E;
nPos++;
break;
case '0' :
- case '#' : // scientific E without sign
+ case '#' : // scientific E without sign
eType = NF_KEY_E;
break;
}
@@ -829,7 +829,7 @@ short ImpSvNumberformatScan::Next_Symbol( const String& rStr,
{
short nTmpType = GetKeyWord( rStr, nPos-1 );
if ( nTmpType )
- { // beginning of keyword, stop scan and put back
+ { // beginning of keyword, stop scan and put back
eType = NF_SYMBOLTYPE_STRING;
eState = SsStop;
nPos--;
@@ -842,7 +842,7 @@ short ImpSvNumberformatScan::Next_Symbol( const String& rStr,
BOOL bDontStop = FALSE;
switch (cToken)
{
- case '/': // AM/PM, A/P
+ case '/': // AM/PM, A/P
{
sal_Unicode cNext = rStr.GetChar(nPos);
if ( cNext == 'P' || cNext == 'p' )
@@ -875,7 +875,7 @@ short ImpSvNumberformatScan::Next_Symbol( const String& rStr,
{
eState = SsStop;
sSymbol += cToken;
- nRepPos = (nPos - nStart) - 1; // everytime > 0!!
+ nRepPos = (nPos - nStart) - 1; // everytime > 0!!
}
break;
case SsGetBlank:
@@ -886,8 +886,8 @@ short ImpSvNumberformatScan::Next_Symbol( const String& rStr,
break;
default:
break;
- } // of switch
- } // of while
+ } // of switch
+ } // of while
if (eState == SsGetWord)
eType = NF_SYMBOLTYPE_STRING;
return eType;
@@ -911,20 +911,20 @@ xub_StrLen ImpSvNumberformatScan::Symbol_Division(const String& rString)
sal_Unicode c;
if ( nCPos == 0 ||
((c = sString.GetChar(xub_StrLen(nCPos-1))) != '"'
- && c != '\\') ) // dm kann durch "dm
- { // \d geschuetzt werden
+ && c != '\\') ) // dm kann durch "dm
+ { // \d geschuetzt werden
nCurrPos = nCPos;
- nCPos = STRING_NOTFOUND; // Abbruch
+ nCPos = STRING_NOTFOUND; // Abbruch
}
else
- nCPos++; // weitersuchen
+ nCPos++; // weitersuchen
}
else
- nCPos = nQ + 1; // weitersuchen
+ nCPos = nQ + 1; // weitersuchen
}
}
nAnzStrings = 0;
- BOOL bStar = FALSE; // wird bei '*'Detektion gesetzt
+ BOOL bStar = FALSE; // wird bei '*'Detektion gesetzt
Reset();
xub_StrLen nPos = 0;
@@ -933,16 +933,16 @@ xub_StrLen ImpSvNumberformatScan::Symbol_Division(const String& rString)
{
nTypeArray[nAnzStrings] = Next_Symbol(rString, nPos, sStrArray[nAnzStrings]);
if (nTypeArray[nAnzStrings] == NF_SYMBOLTYPE_STAR)
- { // Ueberwachung des '*'
+ { // Ueberwachung des '*'
if (bStar)
- return nPos; // Fehler: doppelter '*'
+ return nPos; // Fehler: doppelter '*'
else
bStar = TRUE;
}
nAnzStrings++;
}
- return 0; // 0 => ok
+ return 0; // 0 => ok
}
void ImpSvNumberformatScan::SkipStrings(USHORT& i, xub_StrLen& nPos)
@@ -1004,7 +1004,7 @@ sal_Unicode ImpSvNumberformatScan::PreviousChar(USHORT i)
if (i > 0 && i < nAnzStrings)
{
i--;
- while (i > 0 && ( nTypeArray[i] == NF_SYMBOLTYPE_EMPTY
+ while (i > 0 && ( nTypeArray[i] == NF_SYMBOLTYPE_EMPTY
|| nTypeArray[i] == NF_SYMBOLTYPE_STRING
|| nTypeArray[i] == NF_SYMBOLTYPE_STAR
|| nTypeArray[i] == NF_SYMBOLTYPE_BLANK ) )
@@ -1050,11 +1050,11 @@ BOOL ImpSvNumberformatScan::IsLastBlankBeforeFrac(USHORT i)
sStrArray[i].GetChar(0) == ' ')
res = FALSE;
}
- if (!bStop) // kein '/'
+ if (!bStop) // kein '/'
res = FALSE;
}
else
- res = FALSE; // kein '/' mehr
+ res = FALSE; // kein '/' mehr
return res;
}
@@ -1116,66 +1116,66 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
{ // keyword
switch (nTypeArray[i])
{
- case NF_KEY_E: // E
+ case NF_KEY_E: // E
eNewType = NUMBERFORMAT_SCIENTIFIC;
break;
- case NF_KEY_AMPM: // AM,A,PM,P
+ case NF_KEY_AMPM: // AM,A,PM,P
case NF_KEY_AP:
- case NF_KEY_H: // H
- case NF_KEY_HH: // HH
- case NF_KEY_S: // S
- case NF_KEY_SS: // SS
+ case NF_KEY_H: // H
+ case NF_KEY_HH: // HH
+ case NF_KEY_S: // S
+ case NF_KEY_SS: // SS
eNewType = NUMBERFORMAT_TIME;
break;
- case NF_KEY_M: // M
- case NF_KEY_MM: // MM
+ case NF_KEY_M: // M
+ case NF_KEY_MM: // MM
{ // minute or month
USHORT nIndexPre = PreviousKeyword(i);
USHORT nIndexNex = NextKeyword(i);
sal_Unicode cChar = PreviousChar(i);
- if (nIndexPre == NF_KEY_H || // H
- nIndexPre == NF_KEY_HH || // HH
- nIndexNex == NF_KEY_S || // S
- nIndexNex == NF_KEY_SS || // SS
+ if (nIndexPre == NF_KEY_H || // H
+ nIndexPre == NF_KEY_HH || // HH
+ nIndexNex == NF_KEY_S || // S
+ nIndexNex == NF_KEY_SS || // SS
cChar == '[' ) // [M
{
eNewType = NUMBERFORMAT_TIME;
- nTypeArray[i] -= 2; // 6 -> 4, 7 -> 5
+ nTypeArray[i] -= 2; // 6 -> 4, 7 -> 5
}
else
eNewType = NUMBERFORMAT_DATE;
}
break;
- case NF_KEY_MMM: // MMM
- case NF_KEY_MMMM: // MMMM
- case NF_KEY_MMMMM: // MMMMM
- case NF_KEY_Q: // Q
- case NF_KEY_QQ: // QQ
- case NF_KEY_D: // D
- case NF_KEY_DD: // DD
- case NF_KEY_DDD: // DDD
- case NF_KEY_DDDD: // DDDD
- case NF_KEY_YY: // YY
- case NF_KEY_YYYY: // YYYY
- case NF_KEY_NN: // NN
- case NF_KEY_NNN: // NNN
- case NF_KEY_NNNN: // NNNN
- case NF_KEY_WW : // WW
- case NF_KEY_AAA : // AAA
- case NF_KEY_AAAA : // AAAA
- case NF_KEY_EC : // E
- case NF_KEY_EEC : // EE
- case NF_KEY_G : // G
- case NF_KEY_GG : // GG
- case NF_KEY_GGG : // GGG
- case NF_KEY_R : // R
- case NF_KEY_RR : // RR
+ case NF_KEY_MMM: // MMM
+ case NF_KEY_MMMM: // MMMM
+ case NF_KEY_MMMMM: // MMMMM
+ case NF_KEY_Q: // Q
+ case NF_KEY_QQ: // QQ
+ case NF_KEY_D: // D
+ case NF_KEY_DD: // DD
+ case NF_KEY_DDD: // DDD
+ case NF_KEY_DDDD: // DDDD
+ case NF_KEY_YY: // YY
+ case NF_KEY_YYYY: // YYYY
+ case NF_KEY_NN: // NN
+ case NF_KEY_NNN: // NNN
+ case NF_KEY_NNNN: // NNNN
+ case NF_KEY_WW : // WW
+ case NF_KEY_AAA : // AAA
+ case NF_KEY_AAAA : // AAAA
+ case NF_KEY_EC : // E
+ case NF_KEY_EEC : // EE
+ case NF_KEY_G : // G
+ case NF_KEY_GG : // GG
+ case NF_KEY_GGG : // GGG
+ case NF_KEY_R : // R
+ case NF_KEY_RR : // RR
eNewType = NUMBERFORMAT_DATE;
break;
- case NF_KEY_CCC: // CCC
+ case NF_KEY_CCC: // CCC
eNewType = NUMBERFORMAT_CURRENCY;
break;
- case NF_KEY_GENERAL: // Standard
+ case NF_KEY_GENERAL: // Standard
eNewType = NUMBERFORMAT_NUMBER;
bHaveGeneral = true;
break;
@@ -1219,26 +1219,26 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
if ( i < nAnzStrings-1 &&
nTypeArray[i+1] == NF_SYMBOLTYPE_STRING &&
sStrArray[i+1].GetChar(0) == '$' )
- { // as of SV_NUMBERFORMATTER_VERSION_NEW_CURR
+ { // as of SV_NUMBERFORMATTER_VERSION_NEW_CURR
eNewType = NUMBERFORMAT_CURRENCY;
bMatchBracket = TRUE;
}
else if ( i < nAnzStrings-1 &&
nTypeArray[i+1] == NF_SYMBOLTYPE_STRING &&
sStrArray[i+1].GetChar(0) == '~' )
- { // as of SV_NUMBERFORMATTER_VERSION_CALENDAR
+ { // as of SV_NUMBERFORMATTER_VERSION_CALENDAR
eNewType = NUMBERFORMAT_DATE;
bMatchBracket = TRUE;
}
else
{
USHORT nIndexNex = NextKeyword(i);
- if (nIndexNex == NF_KEY_H || // H
- nIndexNex == NF_KEY_HH || // HH
- nIndexNex == NF_KEY_M || // M
- nIndexNex == NF_KEY_MM || // MM
- nIndexNex == NF_KEY_S || // S
- nIndexNex == NF_KEY_SS ) // SS
+ if (nIndexNex == NF_KEY_H || // H
+ nIndexNex == NF_KEY_HH || // HH
+ nIndexNex == NF_KEY_M || // M
+ nIndexNex == NF_KEY_MM || // MM
+ nIndexNex == NF_KEY_S || // S
+ nIndexNex == NF_KEY_SS ) // SS
eNewType = NUMBERFORMAT_TIME;
else
return nPos; // Error
@@ -1258,9 +1258,9 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
if (eScannedType == NUMBERFORMAT_UNDEFINED)
eScannedType = eNewType;
else if (eScannedType == NUMBERFORMAT_TEXT || eNewType == NUMBERFORMAT_TEXT)
- eScannedType = NUMBERFORMAT_TEXT; // Text bleibt immer Text
+ eScannedType = NUMBERFORMAT_TEXT; // Text bleibt immer Text
else if (eNewType == NUMBERFORMAT_UNDEFINED)
- { // bleibt wie bisher
+ { // bleibt wie bisher
}
else if (eScannedType != eNewType)
{
@@ -1273,7 +1273,7 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
case NUMBERFORMAT_TIME:
eScannedType = NUMBERFORMAT_DATETIME;
break;
- case NUMBERFORMAT_FRACTION: // DD/MM
+ case NUMBERFORMAT_FRACTION: // DD/MM
break;
default:
{
@@ -1292,7 +1292,7 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
case NUMBERFORMAT_DATE:
eScannedType = NUMBERFORMAT_DATETIME;
break;
- case NUMBERFORMAT_FRACTION: // MM/SS
+ case NUMBERFORMAT_FRACTION: // MM/SS
break;
default:
{
@@ -1311,7 +1311,7 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
case NUMBERFORMAT_TIME:
case NUMBERFORMAT_DATE:
break;
- case NUMBERFORMAT_FRACTION: // DD/MM
+ case NUMBERFORMAT_FRACTION: // DD/MM
break;
default:
{
@@ -1328,7 +1328,7 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
{
switch (eNewType)
{
- case NUMBERFORMAT_NUMBER: // nur Zahl nach Prozent
+ case NUMBERFORMAT_NUMBER: // nur Zahl nach Prozent
break;
default:
return nPos;
@@ -1339,7 +1339,7 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
{
switch (eNewType)
{
- case NUMBERFORMAT_NUMBER: // nur Zahl nach E
+ case NUMBERFORMAT_NUMBER: // nur Zahl nach E
break;
default:
return nPos;
@@ -1368,7 +1368,7 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
{
switch (eNewType)
{
- case NUMBERFORMAT_NUMBER: // nur Zahl nach Bruch
+ case NUMBERFORMAT_NUMBER: // nur Zahl nach Bruch
break;
default:
return nPos;
@@ -1379,7 +1379,7 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
break;
}
}
- nPos = nPos + sStrArray[i].Len(); // Korrekturposition
+ nPos = nPos + sStrArray[i].Len(); // Korrekturposition
i++;
if ( bMatchBracket )
{ // no type detection inside of matching brackets if [$...], [~...]
@@ -1401,10 +1401,10 @@ xub_StrLen ImpSvNumberformatScan::ScanType(const String&)
if ((eScannedType == NUMBERFORMAT_NUMBER || eScannedType == NUMBERFORMAT_UNDEFINED)
&& nCurrPos != STRING_NOTFOUND && !bHaveGeneral)
- eScannedType = NUMBERFORMAT_CURRENCY; // old "automatic" currency
+ eScannedType = NUMBERFORMAT_CURRENCY; // old "automatic" currency
if (eScannedType == NUMBERFORMAT_UNDEFINED)
eScannedType = NUMBERFORMAT_DEFINED;
- return 0; // Alles ok
+ return 0; // Alles ok
}
@@ -1437,19 +1437,19 @@ int ImpSvNumberformatScan::FinalScanGetCalendar( xub_StrLen& nPos, USHORT& i,
i < nAnzStrings-1 &&
nTypeArray[i+1] == NF_SYMBOLTYPE_STRING &&
sStrArray[i+1].GetChar(0) == '~' )
- { // [~calendarID]
+ { // [~calendarID]
// as of SV_NUMBERFORMATTER_VERSION_CALENDAR
- nPos = nPos + sStrArray[i].Len(); // [
+ nPos = nPos + sStrArray[i].Len(); // [
nTypeArray[i] = NF_SYMBOLTYPE_CALDEL;
- nPos = nPos + sStrArray[++i].Len(); // ~
- sStrArray[i-1] += sStrArray[i]; // [~
+ nPos = nPos + sStrArray[++i].Len(); // ~
+ sStrArray[i-1] += sStrArray[i]; // [~
nTypeArray[i] = NF_SYMBOLTYPE_EMPTY;
rAnzResStrings--;
if ( ++i >= nAnzStrings )
- return -1; // error
- nPos = nPos + sStrArray[i].Len(); // calendarID
+ return -1; // error
+ nPos = nPos + sStrArray[i].Len(); // calendarID
String& rStr = sStrArray[i];
- nTypeArray[i] = NF_SYMBOLTYPE_CALENDAR; // convert
+ nTypeArray[i] = NF_SYMBOLTYPE_CALENDAR; // convert
i++;
while ( i < nAnzStrings &&
sStrArray[i].GetChar(0) != ']' )
@@ -1468,7 +1468,7 @@ int ImpSvNumberformatScan::FinalScanGetCalendar( xub_StrLen& nPos, USHORT& i,
i++;
}
else
- return -1; // error
+ return -1; // error
return 1;
}
return 0;
@@ -1482,7 +1482,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
String sOldDecSep = pFormatter->GetNumDecimalSep();
String sOldThousandSep = pFormatter->GetNumThousandSep();
String sOldDateSep = pFormatter->GetDateSep();
- String sOldTimeSep = pLoc->getTimeSep();
+ String sOldTimeSep = pLoc->getTimeSep();
String sOldTime100SecSep= pLoc->getTime100SecSep();
String sOldCurSymbol = GetCurSymbol();
String sOldCurString = GetCurString();
@@ -1537,7 +1537,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
nAnzResStrings--;
}
break;
- case NF_KEY_GENERAL : // #77026# "General" is the same as "@"
+ case NF_KEY_GENERAL : // #77026# "General" is the same as "@"
break;
default:
{
@@ -1549,7 +1549,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
}
nPos = nPos + sStrArray[i].Len();
i++;
- } // of while
+ } // of while
}
break;
case NUMBERFORMAT_NUMBER:
@@ -1561,21 +1561,21 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
sal_Unicode cThousandFill = ' ';
while (i < nAnzStrings)
{
- if (eScannedType == NUMBERFORMAT_FRACTION && // special case
- nTypeArray[i] == NF_SYMBOLTYPE_DEL && // # ### #/#
+ if (eScannedType == NUMBERFORMAT_FRACTION && // special case
+ nTypeArray[i] == NF_SYMBOLTYPE_DEL && // # ### #/#
StringEqualsChar( sOldThousandSep, ' ' ) && // e.g. France or Sweden
StringEqualsChar( sStrArray[i], ' ' ) &&
!bFrac &&
IsLastBlankBeforeFrac(i) )
{
- nTypeArray[i] = NF_SYMBOLTYPE_STRING; // del->string
+ nTypeArray[i] = NF_SYMBOLTYPE_STRING; // del->string
} // kein Taus.p.
- if (nTypeArray[i] == NF_SYMBOLTYPE_BLANK ||
- nTypeArray[i] == NF_SYMBOLTYPE_STAR ||
- nTypeArray[i] == NF_KEY_CCC || // CCC
- nTypeArray[i] == NF_KEY_GENERAL ) // Standard
+ if (nTypeArray[i] == NF_SYMBOLTYPE_BLANK ||
+ nTypeArray[i] == NF_SYMBOLTYPE_STAR ||
+ nTypeArray[i] == NF_KEY_CCC || // CCC
+ nTypeArray[i] == NF_KEY_GENERAL ) // Standard
{
if (nTypeArray[i] == NF_KEY_GENERAL)
{
@@ -1587,12 +1587,12 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
i++;
}
else if (nTypeArray[i] == NF_SYMBOLTYPE_STRING || // Strings oder
- nTypeArray[i] > 0) // Keywords
+ nTypeArray[i] > 0) // Keywords
{
if (eScannedType == NUMBERFORMAT_SCIENTIFIC &&
- nTypeArray[i] == NF_KEY_E) // E+
+ nTypeArray[i] == NF_KEY_E) // E+
{
- if (bExp) // doppelt
+ if (bExp) // doppelt
return nPos;
bExp = TRUE;
nExpPos = i;
@@ -1606,10 +1606,10 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
else if (eScannedType == NUMBERFORMAT_FRACTION &&
sStrArray[i].GetChar(0) == ' ')
{
- if (!bBlank && !bFrac) // nicht doppelt oder hinter /
+ if (!bBlank && !bFrac) // nicht doppelt oder hinter /
{
- if (bDecSep && nCounter > 0) // Nachkommastellen
- return nPos; // Fehler
+ if (bDecSep && nCounter > 0) // Nachkommastellen
+ return nPos; // Fehler
bBlank = TRUE;
nBlankPos = i;
nCntPre = nCounter;
@@ -1644,10 +1644,10 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
case '0':
case '?':
{
- if (nThousand > 0) // #... #
- return nPos; // Fehler
+ if (nThousand > 0) // #... #
+ return nPos; // Fehler
else if (bFrac && cHere == '0')
- return nPos; // 0 im Nenner
+ return nPos; // 0 im Nenner
nTypeArray[i] = NF_SYMBOLTYPE_DIGIT;
String& rStr = sStrArray[i];
nPos = nPos + rStr.Len();
@@ -1709,20 +1709,20 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
case '\'':
case ' ':
{
- sal_Unicode cSep = cHere; // remember
+ sal_Unicode cSep = cHere; // remember
if ( StringEqualsChar( sOldThousandSep, cSep ) )
{
// previous char with skip empty
sal_Unicode cPre = PreviousChar(i);
sal_Unicode cNext;
if (bExp || bBlank || bFrac)
- { // after E, / or ' '
+ { // after E, / or ' '
if ( !StringEqualsChar( sOldThousandSep, ' ' ) )
{
nPos = nPos + sStrArray[i].Len();
nTypeArray[i] = NF_SYMBOLTYPE_EMPTY;
nAnzResStrings--;
- i++; // eat it
+ i++; // eat it
}
else
nTypeArray[i] = NF_SYMBOLTYPE_STRING;
@@ -1730,10 +1730,10 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
else if (i > 0 && i < nAnzStrings-1 &&
(cPre == '#' || cPre == '0') &&
((cNext = NextChar(i)) == '#' || cNext == '0')
- ) // #,#
+ ) // #,#
{
nPos = nPos + sStrArray[i].Len();
- if (!bThousand) // only once
+ if (!bThousand) // only once
{
bThousand = TRUE;
cThousandFill = sStrArray[i+1].GetChar(0);
@@ -1747,9 +1747,9 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
else if (i > 0 && (cPre == '#' || cPre == '0')
&& PreviousType(i) == NF_SYMBOLTYPE_DIGIT
&& nThousand < FLAG_STANDARD_IN_FORMAT )
- { // #,,,,
+ { // #,,,,
if ( StringEqualsChar( sOldThousandSep, ' ' ) )
- { // strange, those French..
+ { // strange, those French..
BOOL bFirst = TRUE;
String& rStr = sStrArray[i];
// set a hard Non-Breaking Space or ConvertMode
@@ -1757,7 +1757,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
while ( i < nAnzStrings
&& sStrArray[i] == sOldThousandSep
&& StringEqualsChar( sOldThousandSep, NextChar(i) ) )
- { // last was a space or another space
+ { // last was a space or another space
// is following => separator
nPos = nPos + sStrArray[i].Len();
if ( bFirst )
@@ -1777,7 +1777,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
}
if ( i < nAnzStrings-1
&& sStrArray[i] == sOldThousandSep )
- { // something following last space
+ { // something following last space
// => space if currency contained,
// else separator
nPos = nPos + sStrArray[i].Len();
@@ -1822,7 +1822,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
sStrArray[i] == sOldThousandSep);
}
}
- else // any grsep
+ else // any grsep
{
nTypeArray[i] = NF_SYMBOLTYPE_STRING;
String& rStr = sStrArray[i];
@@ -1842,15 +1842,15 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
else if ( StringEqualsChar( sOldDecSep, cSep ) )
{
if (bBlank || bFrac) // . behind / or ' '
- return nPos; // error
- else if (bExp) // behind E
+ return nPos; // error
+ else if (bExp) // behind E
{
nPos = nPos + sStrArray[i].Len();
nTypeArray[i] = NF_SYMBOLTYPE_EMPTY;
nAnzResStrings--;
- i++; // eat it
+ i++; // eat it
}
- else if (bDecSep) // any .
+ else if (bDecSep) // any .
{
nTypeArray[i] = NF_SYMBOLTYPE_STRING;
String& rStr = sStrArray[i];
@@ -1878,17 +1878,17 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
i++;
}
- } // of else = DecSep
- else // . without meaning
+ } // of else = DecSep
+ else // . without meaning
{
if (cSep == ' ' &&
eScannedType == NUMBERFORMAT_FRACTION &&
StringEqualsChar( sStrArray[i], ' ' ) )
{
- if (!bBlank && !bFrac) // no dups
- { // or behind /
+ if (!bBlank && !bFrac) // no dups
+ { // or behind /
if (bDecSep && nCounter > 0)// dec.
- return nPos; // error
+ return nPos; // error
bBlank = TRUE;
nBlankPos = i;
nCntPre = nCounter;
@@ -1923,7 +1923,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
if ( i == 0 ||
(nTypeArray[i-1] != NF_SYMBOLTYPE_DIGIT &&
nTypeArray[i-1] != NF_SYMBOLTYPE_EMPTY) )
- return nPos ? nPos : 1; // /? not allowed
+ return nPos ? nPos : 1; // /? not allowed
else if (!bFrac || (bDecSep && nCounter > 0))
{
bFrac = TRUE;
@@ -1933,8 +1933,8 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
nPos = nPos + sStrArray[i].Len();
i++;
}
- else // / doppelt od. , imZaehl
- return nPos; // Fehler
+ else // / doppelt od. , imZaehl
+ return nPos; // Fehler
}
else
{
@@ -1950,20 +1950,20 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
i < nAnzStrings-1 &&
nTypeArray[i+1] == NF_SYMBOLTYPE_STRING &&
sStrArray[i+1].GetChar(0) == '$' )
- { // [$DM-xxx]
+ { // [$DM-xxx]
// ab SV_NUMBERFORMATTER_VERSION_NEW_CURR
- nPos = nPos + sStrArray[i].Len(); // [
+ nPos = nPos + sStrArray[i].Len(); // [
nTypeArray[i] = NF_SYMBOLTYPE_CURRDEL;
- nPos = nPos + sStrArray[++i].Len(); // $
- sStrArray[i-1] += sStrArray[i]; // [$
+ nPos = nPos + sStrArray[++i].Len(); // $
+ sStrArray[i-1] += sStrArray[i]; // [$
nTypeArray[i] = NF_SYMBOLTYPE_EMPTY;
nAnzResStrings--;
if ( ++i >= nAnzStrings )
- return nPos; // Fehler
- nPos = nPos + sStrArray[i].Len(); // DM
+ return nPos; // Fehler
+ nPos = nPos + sStrArray[i].Len(); // DM
String& rStr = sStrArray[i];
String* pStr = &sStrArray[i];
- nTypeArray[i] = NF_SYMBOLTYPE_CURRENCY; // wandeln
+ nTypeArray[i] = NF_SYMBOLTYPE_CURRENCY; // wandeln
BOOL bHadDash = FALSE;
i++;
while ( i < nAnzStrings &&
@@ -2001,7 +2001,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
i++;
}
else
- return nPos; // Fehler
+ return nPos; // Fehler
}
else
{
@@ -2011,7 +2011,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
}
}
break;
- default: // andere Dels
+ default: // andere Dels
{
if (eScannedType == NUMBERFORMAT_PERCENT &&
cHere == '%')
@@ -2022,8 +2022,8 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
i++;
}
break;
- } // of switch (Del)
- } // of else Del
+ } // of switch (Del)
+ } // of else Del
else if ( nTypeArray[i] == NF_SYMBOLTYPE_COMMENT )
{
String& rStr = sStrArray[i];
@@ -2040,7 +2040,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
nPos = nPos + sStrArray[i].Len();
i++;
}
- } // of while
+ } // of while
if (eScannedType == NUMBERFORMAT_FRACTION)
{
if (bFrac)
@@ -2067,13 +2067,13 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
if (bBlank)
nMaxPos = nBlankPos;
else
- nMaxPos = 0; // no grouping
+ nMaxPos = 0; // no grouping
}
- else if (bDecSep) // decimal separator present
+ else if (bDecSep) // decimal separator present
nMaxPos = nDecPos;
- else if (bExp) // 'E' exponent present
+ else if (bExp) // 'E' exponent present
nMaxPos = nExpPos;
- else // up to end
+ else // up to end
nMaxPos = i;
// Insert separators at proper positions.
xub_StrLen nCount = 0;
@@ -2127,7 +2127,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
}
}
}
- break; // of NUMBERFORMAT_NUMBER
+ break; // of NUMBERFORMAT_NUMBER
case NUMBERFORMAT_DATE:
{
while (i < nAnzStrings)
@@ -2165,7 +2165,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
else if ( (nCalRet = FinalScanGetCalendar( nPos, i, nAnzResStrings )) != 0 )
{
if ( nCalRet < 0 )
- return nPos; // error
+ return nPos; // error
}
else
{
@@ -2178,45 +2178,45 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
case NF_KEY_THAI_T :
bThaiT = true;
// fall thru
- case NF_KEY_M: // M
- case NF_KEY_MM: // MM
- case NF_KEY_MMM: // MMM
- case NF_KEY_MMMM: // MMMM
- case NF_KEY_MMMMM: // MMMMM
- case NF_KEY_Q: // Q
- case NF_KEY_QQ: // QQ
- case NF_KEY_D: // D
- case NF_KEY_DD: // DD
- case NF_KEY_DDD: // DDD
- case NF_KEY_DDDD: // DDDD
- case NF_KEY_YY: // YY
- case NF_KEY_YYYY: // YYYY
- case NF_KEY_NN: // NN
- case NF_KEY_NNN: // NNN
- case NF_KEY_NNNN: // NNNN
- case NF_KEY_WW : // WW
- case NF_KEY_AAA : // AAA
- case NF_KEY_AAAA : // AAAA
- case NF_KEY_EC : // E
- case NF_KEY_EEC : // EE
- case NF_KEY_G : // G
- case NF_KEY_GG : // GG
- case NF_KEY_GGG : // GGG
- case NF_KEY_R : // R
- case NF_KEY_RR : // RR
- sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
+ case NF_KEY_M: // M
+ case NF_KEY_MM: // MM
+ case NF_KEY_MMM: // MMM
+ case NF_KEY_MMMM: // MMMM
+ case NF_KEY_MMMMM: // MMMMM
+ case NF_KEY_Q: // Q
+ case NF_KEY_QQ: // QQ
+ case NF_KEY_D: // D
+ case NF_KEY_DD: // DD
+ case NF_KEY_DDD: // DDD
+ case NF_KEY_DDDD: // DDDD
+ case NF_KEY_YY: // YY
+ case NF_KEY_YYYY: // YYYY
+ case NF_KEY_NN: // NN
+ case NF_KEY_NNN: // NNN
+ case NF_KEY_NNNN: // NNNN
+ case NF_KEY_WW : // WW
+ case NF_KEY_AAA : // AAA
+ case NF_KEY_AAAA : // AAAA
+ case NF_KEY_EC : // E
+ case NF_KEY_EEC : // EE
+ case NF_KEY_G : // G
+ case NF_KEY_GG : // GG
+ case NF_KEY_GGG : // GGG
+ case NF_KEY_R : // R
+ case NF_KEY_RR : // RR
+ sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
nPos = nPos + sStrArray[i].Len();
i++;
break;
- default: // andere Keywords
+ default: // andere Keywords
nTypeArray[i] = NF_SYMBOLTYPE_STRING;
nPos = nPos + sStrArray[i].Len();
i++;
break;
}
- } // of while
+ } // of while
}
- break; // of NUMBERFORMAT_DATE
+ break; // of NUMBERFORMAT_DATE
case NUMBERFORMAT_TIME:
{
while (i < nAnzStrings)
@@ -2264,16 +2264,16 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
return nPos;
case '[':
{
- if (bThousand) // doppelt
+ if (bThousand) // doppelt
return nPos;
- bThousand = TRUE; // bei Time frei
+ bThousand = TRUE; // bei Time frei
sal_Unicode cChar = pChrCls->upper( NextChar(i) ).GetChar(0);
if ( cChar == cOldKeyH )
- nThousand = 1; // H
+ nThousand = 1; // H
else if ( cChar == cOldKeyMI )
- nThousand = 2; // M
+ nThousand = 2; // M
else if ( cChar == cOldKeyS )
- nThousand = 3; // S
+ nThousand = 3; // S
else
return nPos;
nPos = nPos + sStrArray[i].Len();
@@ -2282,7 +2282,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
break;
case ']':
{
- if (!bThousand) // kein [ vorher
+ if (!bThousand) // kein [ vorher
return nPos;
nPos = nPos + sStrArray[i].Len();
i++;
@@ -2329,11 +2329,11 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
i++;
}
break;
- case NF_KEY_AMPM: // AM/PM
- case NF_KEY_AP: // A/P
+ case NF_KEY_AMPM: // AM/PM
+ case NF_KEY_AP: // A/P
{
- bExp = TRUE; // missbraucht fuer A/P
- sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
+ bExp = TRUE; // missbraucht fuer A/P
+ sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
nPos = nPos + sStrArray[i].Len();
i++;
}
@@ -2341,19 +2341,19 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
case NF_KEY_THAI_T :
bThaiT = true;
// fall thru
- case NF_KEY_MI: // M
- case NF_KEY_MMI: // MM
- case NF_KEY_H: // H
- case NF_KEY_HH: // HH
- case NF_KEY_S: // S
- case NF_KEY_SS: // SS
+ case NF_KEY_MI: // M
+ case NF_KEY_MMI: // MM
+ case NF_KEY_H: // H
+ case NF_KEY_HH: // HH
+ case NF_KEY_S: // S
+ case NF_KEY_SS: // SS
{
- sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
+ sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
nPos = nPos + sStrArray[i].Len();
i++;
}
break;
- default: // andere Keywords
+ default: // andere Keywords
{
nTypeArray[i] = NF_SYMBOLTYPE_STRING;
nPos = nPos + sStrArray[i].Len();
@@ -2361,12 +2361,12 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
}
break;
}
- } // of while
- nCntPost = nCounter; // Zaehler der Nullen
+ } // of while
+ nCntPost = nCounter; // Zaehler der Nullen
if (bExp)
- nCntExp = 1; // merkt AM/PM
+ nCntExp = 1; // merkt AM/PM
}
- break; // of NUMBERFORMAT_TIME
+ break; // of NUMBERFORMAT_TIME
case NUMBERFORMAT_DATETIME:
{
BOOL bTimePart = FALSE;
@@ -2397,7 +2397,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
if ( (nCalRet = FinalScanGetCalendar( nPos, i, nAnzResStrings )) != 0 )
{
if ( nCalRet < 0 )
- return nPos; // error
+ return nPos; // error
}
else
{
@@ -2469,55 +2469,55 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
}
}
break;
- case NF_KEY_AMPM: // AM/PM
- case NF_KEY_AP: // A/P
+ case NF_KEY_AMPM: // AM/PM
+ case NF_KEY_AP: // A/P
{
bTimePart = TRUE;
- bExp = TRUE; // missbraucht fuer A/P
- sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
+ bExp = TRUE; // missbraucht fuer A/P
+ sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
nPos = nPos + sStrArray[i].Len();
i++;
}
break;
- case NF_KEY_MI: // M
- case NF_KEY_MMI: // MM
- case NF_KEY_H: // H
- case NF_KEY_HH: // HH
- case NF_KEY_S: // S
- case NF_KEY_SS: // SS
+ case NF_KEY_MI: // M
+ case NF_KEY_MMI: // MM
+ case NF_KEY_H: // H
+ case NF_KEY_HH: // HH
+ case NF_KEY_S: // S
+ case NF_KEY_SS: // SS
bTimePart = TRUE;
- sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
+ sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
nPos = nPos + sStrArray[i].Len();
i++;
break;
- case NF_KEY_M: // M
- case NF_KEY_MM: // MM
- case NF_KEY_MMM: // MMM
- case NF_KEY_MMMM: // MMMM
- case NF_KEY_MMMMM: // MMMMM
- case NF_KEY_Q: // Q
- case NF_KEY_QQ: // QQ
- case NF_KEY_D: // D
- case NF_KEY_DD: // DD
- case NF_KEY_DDD: // DDD
- case NF_KEY_DDDD: // DDDD
- case NF_KEY_YY: // YY
- case NF_KEY_YYYY: // YYYY
- case NF_KEY_NN: // NN
- case NF_KEY_NNN: // NNN
- case NF_KEY_NNNN: // NNNN
- case NF_KEY_WW : // WW
- case NF_KEY_AAA : // AAA
- case NF_KEY_AAAA : // AAAA
- case NF_KEY_EC : // E
- case NF_KEY_EEC : // EE
- case NF_KEY_G : // G
- case NF_KEY_GG : // GG
- case NF_KEY_GGG : // GGG
- case NF_KEY_R : // R
- case NF_KEY_RR : // RR
+ case NF_KEY_M: // M
+ case NF_KEY_MM: // MM
+ case NF_KEY_MMM: // MMM
+ case NF_KEY_MMMM: // MMMM
+ case NF_KEY_MMMMM: // MMMMM
+ case NF_KEY_Q: // Q
+ case NF_KEY_QQ: // QQ
+ case NF_KEY_D: // D
+ case NF_KEY_DD: // DD
+ case NF_KEY_DDD: // DDD
+ case NF_KEY_DDDD: // DDDD
+ case NF_KEY_YY: // YY
+ case NF_KEY_YYYY: // YYYY
+ case NF_KEY_NN: // NN
+ case NF_KEY_NNN: // NNN
+ case NF_KEY_NNNN: // NNNN
+ case NF_KEY_WW : // WW
+ case NF_KEY_AAA : // AAA
+ case NF_KEY_AAAA : // AAAA
+ case NF_KEY_EC : // E
+ case NF_KEY_EEC : // EE
+ case NF_KEY_G : // G
+ case NF_KEY_GG : // GG
+ case NF_KEY_GGG : // GGG
+ case NF_KEY_R : // R
+ case NF_KEY_RR : // RR
bTimePart = FALSE;
- sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
+ sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT
nPos = nPos + sStrArray[i].Len();
i++;
break;
@@ -2527,18 +2527,18 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
nPos = nPos + sStrArray[i].Len();
i++;
break;
- default: // andere Keywords
+ default: // andere Keywords
nTypeArray[i] = NF_SYMBOLTYPE_STRING;
nPos = nPos + sStrArray[i].Len();
i++;
break;
}
- } // of while
+ } // of while
nCntPost = nCounter; // decimals (100th seconds)
if (bExp)
- nCntExp = 1; // merkt AM/PM
+ nCntExp = 1; // merkt AM/PM
}
- break; // of NUMBERFORMAT_DATETIME
+ break; // of NUMBERFORMAT_DATETIME
default:
break;
}
@@ -2552,7 +2552,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
SetNatNumModifier(1);
if ( bConvertMode )
- { // strings containing keywords of the target locale must be quoted, so
+ { // strings containing keywords of the target locale must be quoted, so
// the user sees the difference and is able to edit the format string
for ( i=0; i < nAnzStrings; i++ )
{
@@ -2560,9 +2560,9 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
sStrArray[i].GetChar(0) != '\"' )
{
if ( bConvertSystemToSystem && eScannedType == NUMBERFORMAT_CURRENCY )
- { // don't stringize automatic currency, will be converted
+ { // don't stringize automatic currency, will be converted
if ( sStrArray[i] == sOldCurSymbol )
- continue; // for
+ continue; // for
// DM might be splitted into D and M
if ( sStrArray[i].Len() < sOldCurSymbol.Len() &&
pChrCls->toUpper( sStrArray[i], 0, 1 ).GetChar(0) ==
@@ -2585,7 +2585,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
nAnzResStrings--;
}
i = j - 1;
- continue; // for
+ continue; // for
}
}
}
@@ -2597,7 +2597,7 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
{
rStr.Insert( '\"', 0 );
rStr += '\"';
- break; // for
+ break; // for
}
}
}
@@ -2667,9 +2667,9 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
else
rString += sStrArray[i];
if ( RemoveQuotes( sStrArray[i] ) > 0 )
- { // update currency up to quoted string
+ { // update currency up to quoted string
if ( eScannedType == NUMBERFORMAT_CURRENCY )
- { // dM -> DM or DM -> $ in old automatic
+ { // dM -> DM or DM -> $ in old automatic
// currency formats, oh my ..., why did we ever
// introduce them?
String aTmp( pChrCls->toUpper(
@@ -2702,9 +2702,9 @@ xub_StrLen ImpSvNumberformatScan::FinalScan( String& rString, String& rComment )
i++;
} while ( i < nAnzStrings && nTypeArray[i] == NF_SYMBOLTYPE_STRING );
if ( i < nAnzStrings )
- i--; // enter switch on next symbol again
+ i--; // enter switch on next symbol again
if ( eScannedType == NUMBERFORMAT_CURRENCY && nStringPos < rString.Len() )
- { // same as above, since last RemoveQuotes
+ { // same as above, since last RemoveQuotes
String aTmp( pChrCls->toUpper(
sStrArray[iPos], nArrPos,
sStrArray[iPos].Len()-nArrPos ) );
@@ -2773,12 +2773,12 @@ xub_StrLen ImpSvNumberformatScan::RemoveQuotes( String& rStr )
xub_StrLen ImpSvNumberformatScan::ScanFormat( String& rString, String& rComment )
{
- xub_StrLen res = Symbol_Division(rString); //lexikalische Analyse
+ xub_StrLen res = Symbol_Division(rString); //lexikalische Analyse
if (!res)
res = ScanType(rString); // Erkennung des Formattyps
if (!res)
- res = FinalScan( rString, rComment ); // Typabhaengige Endanalyse
- return res; // res = Kontrollposition
+ res = FinalScan( rString, rComment ); // Typabhaengige Endanalyse
+ return res; // res = Kontrollposition
// res = 0 => Format ok
}
diff --git a/svl/source/numbers/zforscan.hxx b/svl/source/numbers/zforscan.hxx
index 1a46b06d697d..5fa952c5589f 100644
--- a/svl/source/numbers/zforscan.hxx
+++ b/svl/source/numbers/zforscan.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,21 +51,21 @@ public:
ImpSvNumberformatScan( SvNumberFormatter* pFormatter );
~ImpSvNumberformatScan();
- void ChangeIntl(); // tauscht Keywords aus
+ void ChangeIntl(); // tauscht Keywords aus
void ChangeNullDate(USHORT nDay, USHORT nMonth, USHORT nYear);
// tauscht Referenzdatum aus
void ChangeStandardPrec(sal_uInt16 nPrec); // tauscht Standardprecision aus
- xub_StrLen ScanFormat( String& rString, String& rComment ); // Aufruf der Scan-Analyse
+ xub_StrLen ScanFormat( String& rString, String& rComment ); // Aufruf der Scan-Analyse
void CopyInfo(ImpSvNumberformatInfo* pInfo,
- USHORT nAnz); // Kopiert die FormatInfo
- USHORT GetAnzResStrings() const { return nAnzResStrings; }
+ USHORT nAnz); // Kopiert die FormatInfo
+ USHORT GetAnzResStrings() const { return nAnzResStrings; }
- const CharClass& GetChrCls() const { return *pFormatter->GetCharClass(); }
- const LocaleDataWrapper& GetLoc() const { return *pFormatter->GetLocaleData(); }
- CalendarWrapper& GetCal() const { return *pFormatter->GetCalendar(); }
+ const CharClass& GetChrCls() const { return *pFormatter->GetCharClass(); }
+ const LocaleDataWrapper& GetLoc() const { return *pFormatter->GetLocaleData(); }
+ CalendarWrapper& GetCal() const { return *pFormatter->GetCalendar(); }
const String* GetKeywords() const
{
@@ -85,9 +85,9 @@ public:
const String& GetColorString() const { return GetKeywords()[NF_KEY_COLOR]; }
const String& GetRedString() const { return GetKeywords()[NF_KEY_RED]; }
const String& GetBooleanString() const { return GetKeywords()[NF_KEY_BOOLEAN]; }
- const String& GetErrorString() const { return sErrStr; }
+ const String& GetErrorString() const { return sErrStr; }
- Date* GetNullDate() const { return pNullDate; }
+ Date* GetNullDate() const { return pNullDate; }
const String& GetStandardName() const
{
if ( bKeywordsNeedInit )
@@ -95,8 +95,8 @@ public:
return sNameStandardFormat;
}
sal_uInt16 GetStandardPrec() const { return nStandardPrec; }
- const Color& GetRedColor() const { return StandardColor[4]; }
- Color* GetColor(String& sStr); // Setzt Hauptfarben oder
+ const Color& GetRedColor() const { return StandardColor[4]; }
+ Color* GetColor(String& sStr); // Setzt Hauptfarben oder
// definierte Farben
// the compatibility currency symbol for old automatic currency formats
@@ -153,39 +153,39 @@ public:
// (fuer zformat.cxx)
-private: // ---- privater Teil
- NfKeywordTable sKeyword; // Schluesselworte der Syntax
+private: // ---- privater Teil
+ NfKeywordTable sKeyword; // Schluesselworte der Syntax
Color StandardColor[NF_MAX_DEFAULT_COLORS];
// Array der Standardfarben
- Date* pNullDate; // 30Dec1899
- String sNameStandardFormat; // "Standard"
+ Date* pNullDate; // 30Dec1899
+ String sNameStandardFormat; // "Standard"
sal_uInt16 nStandardPrec; // default Precision for Standardformat
- SvNumberFormatter* pFormatter; // Pointer auf die Formatliste
+ SvNumberFormatter* pFormatter; // Pointer auf die Formatliste
String sStrArray[NF_MAX_FORMAT_SYMBOLS]; // Array der Symbole
short nTypeArray[NF_MAX_FORMAT_SYMBOLS]; // Array der Infos
// externe Infos:
- USHORT nAnzResStrings; // Anzahl der Ergebnissymbole
+ USHORT nAnzResStrings; // Anzahl der Ergebnissymbole
#if !(defined SOLARIS && defined X86)
- short eScannedType; // Typ gemaess Scan
+ short eScannedType; // Typ gemaess Scan
#else
- int eScannedType; // wg. Optimierung
+ int eScannedType; // wg. Optimierung
#endif
- BOOL bThousand; // Mit Tausenderpunkt
- USHORT nThousand; // Zaehlt ....-Folgen
- USHORT nCntPre; // Zaehlt Vorkommastellen
- USHORT nCntPost; // Zaehlt Nachkommastellen
- USHORT nCntExp; // Zaehlt Exp.Stellen, AM/PM
+ BOOL bThousand; // Mit Tausenderpunkt
+ USHORT nThousand; // Zaehlt ....-Folgen
+ USHORT nCntPre; // Zaehlt Vorkommastellen
+ USHORT nCntPost; // Zaehlt Nachkommastellen
+ USHORT nCntExp; // Zaehlt Exp.Stellen, AM/PM
// interne Infos:
- USHORT nAnzStrings; // Anzahl der Symbole
- USHORT nRepPos; // Position eines '*'
- USHORT nExpPos; // interne Position des E
- USHORT nBlankPos; // interne Position des Blank
- short nDecPos; // interne Pos. des ,
- BOOL bExp; // wird bei Lesen des E gesetzt
- BOOL bFrac; // wird bei Lesen des / gesetzt
- BOOL bBlank; // wird bei ' '(Fraction) ges.
- BOOL bDecSep; // Wird beim ersten , gesetzt
+ USHORT nAnzStrings; // Anzahl der Symbole
+ USHORT nRepPos; // Position eines '*'
+ USHORT nExpPos; // interne Position des E
+ USHORT nBlankPos; // interne Position des Blank
+ short nDecPos; // interne Pos. des ,
+ BOOL bExp; // wird bei Lesen des E gesetzt
+ BOOL bFrac; // wird bei Lesen des / gesetzt
+ BOOL bBlank; // wird bei ' '(Fraction) ges.
+ BOOL bDecSep; // Wird beim ersten , gesetzt
mutable BOOL bKeywordsNeedInit; // Locale dependent keywords need to be initialized
mutable BOOL bCompatCurNeedInit; // Locale dependent compatibility currency need to be initialized
String sCurSymbol; // Currency symbol for compatibility format codes
@@ -193,21 +193,21 @@ private: // ---- privater Teil
String sCurAbbrev; // Currency abbreviation
String sErrStr; // String fuer Fehlerausgaben
- BOOL bConvertMode; // Wird im Convert-Mode gesetzt
+ BOOL bConvertMode; // Wird im Convert-Mode gesetzt
// Land/Sprache, in die der
- LanguageType eNewLnge; // gescannte String konvertiert
+ LanguageType eNewLnge; // gescannte String konvertiert
// wird (fuer Excel Filter)
// Land/Sprache, aus der der
- LanguageType eTmpLnge; // gescannte String konvertiert
+ LanguageType eTmpLnge; // gescannte String konvertiert
// wird (fuer Excel Filter)
- BOOL bConvertSystemToSystem; // Whether the conversion is
+ BOOL bConvertSystemToSystem; // Whether the conversion is
// from one system locale to
// another system locale (in
// this case the automatic
// currency symbol is converted
// too).
- xub_StrLen nCurrPos; // Position des Waehrungssymbols
+ xub_StrLen nCurrPos; // Position des Waehrungssymbols
BYTE nNatNumModifier; // Thai T speciality
@@ -215,28 +215,28 @@ private: // ---- privater Teil
void InitSpecialKeyword( NfKeywordIndex eIdx ) const;
void InitCompatCur() const;
-#ifdef _ZFORSCAN_CXX // ----- private Methoden -----
+#ifdef _ZFORSCAN_CXX // ----- private Methoden -----
void SetDependentKeywords();
// Setzt die Sprachabh. Keyw.
void SkipStrings(USHORT& i,xub_StrLen& nPos);// Ueberspringt StringSymbole
- USHORT PreviousKeyword(USHORT i); // Gibt Index des vorangeh.
+ USHORT PreviousKeyword(USHORT i); // Gibt Index des vorangeh.
// Schluesselworts oder 0
- USHORT NextKeyword(USHORT i); // Gibt Index des naechsten
+ USHORT NextKeyword(USHORT i); // Gibt Index des naechsten
// Schluesselworts oder 0
- sal_Unicode PreviousChar(USHORT i); // Gibt letzten Buchstaben
+ sal_Unicode PreviousChar(USHORT i); // Gibt letzten Buchstaben
// vor der Position,
// skipt EMPTY, STRING, STAR, BLANK
- sal_Unicode NextChar(USHORT i); // Gibt ersten Buchst. danach
- short PreviousType( USHORT i ); // Gibt Typ vor Position,
+ sal_Unicode NextChar(USHORT i); // Gibt ersten Buchst. danach
+ short PreviousType( USHORT i ); // Gibt Typ vor Position,
// skipt EMPTY
- BOOL IsLastBlankBeforeFrac(USHORT i); // True <=> es kommt kein ' '
+ BOOL IsLastBlankBeforeFrac(USHORT i); // True <=> es kommt kein ' '
// mehr bis zum '/'
- void Reset(); // Reset aller Variablen
+ void Reset(); // Reset aller Variablen
// vor Analysestart
- short GetKeyWord( const String& sSymbol, // determine keyword at nPos
+ short GetKeyWord( const String& sSymbol, // determine keyword at nPos
xub_StrLen nPos ); // return 0 <=> not found
- inline BOOL IsAmbiguousE( short nKey ) // whether nKey is ambiguous E of NF_KEY_E/NF_KEY_EC
+ inline BOOL IsAmbiguousE( short nKey ) // whether nKey is ambiguous E of NF_KEY_E/NF_KEY_EC
{
return (nKey == NF_KEY_EC || nKey == NF_KEY_E) &&
(GetKeywords()[NF_KEY_EC] == GetKeywords()[NF_KEY_E]);
@@ -249,8 +249,8 @@ private: // ---- privater Teil
xub_StrLen& nPos,
String& sSymbol); // Naechstes Symbol
xub_StrLen Symbol_Division(const String& rString);// lexikalische Voranalyse
- xub_StrLen ScanType(const String& rString); // Analyse des Formattyps
- xub_StrLen FinalScan( String& rString, String& rComment ); // Endanalyse mit Vorgabe
+ xub_StrLen ScanType(const String& rString); // Analyse des Formattyps
+ xub_StrLen FinalScan( String& rString, String& rComment ); // Endanalyse mit Vorgabe
// des Typs
// -1:= error, return nPos in FinalScan; 0:= no calendar, 1:= calendar found
int FinalScanGetCalendar( xub_StrLen& nPos, USHORT& i, USHORT& nAnzResStrings );
@@ -273,6 +273,6 @@ private: // ---- privater Teil
-#endif // _ZFORSCAN_HXX
+#endif // _ZFORSCAN_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index 1d315c2d264f..6e8559f4c2e9 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/passwordcontainer/syscreds.cxx b/svl/source/passwordcontainer/syscreds.cxx
index 4ba6d78a660e..9149d42c127b 100644
--- a/svl/source/passwordcontainer/syscreds.cxx
+++ b/svl/source/passwordcontainer/syscreds.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,9 +31,9 @@
using namespace com::sun::star;
-SysCredentialsConfigItem::SysCredentialsConfigItem(
- SysCredentialsConfig * pOwner )
-: utl::ConfigItem( rtl::OUString::createFromAscii( "Office.Common/Passwords" ),
+SysCredentialsConfigItem::SysCredentialsConfigItem(
+ SysCredentialsConfig * pOwner )
+: utl::ConfigItem( rtl::OUString::createFromAscii( "Office.Common/Passwords" ),
CONFIG_MODE_IMMEDIATE_UPDATE ),
m_bInited( false ),
m_pOwner( pOwner )
@@ -44,8 +44,8 @@ SysCredentialsConfigItem::SysCredentialsConfigItem(
EnableNotification( aNode );
}
-//virtual
-void SysCredentialsConfigItem::Notify(
+//virtual
+void SysCredentialsConfigItem::Notify(
const uno::Sequence< rtl::OUString > & /*seqPropertyNames*/ )
{
{
@@ -62,7 +62,7 @@ void SysCredentialsConfigItem::Commit()
// does nothing
}
-uno::Sequence< rtl::OUString >
+uno::Sequence< rtl::OUString >
SysCredentialsConfigItem::getSystemCredentialsURLs()
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -70,18 +70,18 @@ SysCredentialsConfigItem::getSystemCredentialsURLs()
{
// read config item
uno::Sequence< ::rtl::OUString > aPropNames( 1 );
- aPropNames[ 0 ] = rtl::OUString::createFromAscii(
+ aPropNames[ 0 ] = rtl::OUString::createFromAscii(
"AuthenticateUsingSystemCredentials" );
- uno::Sequence< uno::Any > aAnyValues(
+ uno::Sequence< uno::Any > aAnyValues(
utl::ConfigItem::GetProperties( aPropNames ) );
- OSL_ENSURE(
- aAnyValues.getLength() == 1,
+ OSL_ENSURE(
+ aAnyValues.getLength() == 1,
"SysCredentialsConfigItem::getSystemCredentialsURLs: "
"Error reading config item!" );
uno::Sequence< rtl::OUString > aValues;
- if ( ( aAnyValues[ 0 ] >>= aValues ) ||
+ if ( ( aAnyValues[ 0 ] >>= aValues ) ||
( !aAnyValues[ 0 ].hasValue() ) )
{
m_seqURLs = aValues;
@@ -91,7 +91,7 @@ SysCredentialsConfigItem::getSystemCredentialsURLs()
return m_seqURLs;
}
-void SysCredentialsConfigItem::setSystemCredentialsURLs(
+void SysCredentialsConfigItem::setSystemCredentialsURLs(
const uno::Sequence< rtl::OUString > & seqURLList )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -99,8 +99,8 @@ void SysCredentialsConfigItem::setSystemCredentialsURLs(
// write config item.
uno::Sequence< rtl::OUString > aPropNames( 1 );
uno::Sequence< uno::Any > aPropValues( 1 );
- aPropNames[ 0 ]
- = ::rtl::OUString::createFromAscii(
+ aPropNames[ 0 ]
+ = ::rtl::OUString::createFromAscii(
"AuthenticateUsingSystemCredentials" );
aPropValues[ 0 ] <<= seqURLList;
@@ -113,17 +113,17 @@ void SysCredentialsConfigItem::setSystemCredentialsURLs(
//============================================================================
-namespace
+namespace
{
// TODO: This code is actually copied from svl/source/passwordcontainer.cxx
bool removeLastSegment( ::rtl::OUString & aURL )
{
sal_Int32 aInd = aURL.lastIndexOf( sal_Unicode( '/' ) );
-
+
if( aInd > 0 )
{
sal_Int32 aPrevInd = aURL.lastIndexOf( sal_Unicode( '/' ), aInd );
- if ( aURL.indexOf( ::rtl::OUString::createFromAscii( "://" ) )
+ if ( aURL.indexOf( ::rtl::OUString::createFromAscii( "://" ) )
!= aPrevInd - 2 ||
aInd != aURL.getLength() - 1 )
{
@@ -142,8 +142,8 @@ namespace
{
::rtl::OUString aUrl( aURL );
- // each iteration remove last '/...' section from the aUrl
- // while it's possible, up to the most left '://'
+ // each iteration remove last '/...' section from the aUrl
+ // while it's possible, up to the most left '://'
do
{
// first look for <url>/somename and then look for <url>/somename/...
@@ -186,7 +186,7 @@ void SysCredentialsConfig::initCfg()
osl::MutexGuard aGuard( m_aMutex );
if ( !m_bCfgInited )
{
- uno::Sequence< rtl::OUString > aURLs(
+ uno::Sequence< rtl::OUString > aURLs(
m_aConfigItem.getSystemCredentialsURLs() );
for ( sal_Int32 n = 0; n < aURLs.getLength(); ++n )
m_aCfgContainer.insert( aURLs[ n ] );
@@ -229,7 +229,7 @@ rtl::OUString SysCredentialsConfig::find( rtl::OUString const & aURL )
return rtl::OUString();
}
-
+
void SysCredentialsConfig::add( rtl::OUString const & rURL, bool bPersistent )
{
::osl::MutexGuard aGuard( m_aMutex );
@@ -264,7 +264,7 @@ void SysCredentialsConfig::remove( rtl::OUString const & rURL )
uno::Sequence< rtl::OUString > SysCredentialsConfig::list( bool bOnlyPersistent )
{
initCfg();
- sal_Int32 nCount = m_aCfgContainer.size()
+ sal_Int32 nCount = m_aCfgContainer.size()
+ ( bOnlyPersistent ? 0 : m_aMemContainer.size() );
uno::Sequence< rtl::OUString > aResult( nCount );
diff --git a/svl/source/passwordcontainer/syscreds.hxx b/svl/source/passwordcontainer/syscreds.hxx
index f4b13bd80b64..a81b6d3e2788 100644
--- a/svl/source/passwordcontainer/syscreds.hxx
+++ b/svl/source/passwordcontainer/syscreds.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,16 +44,16 @@ class SysCredentialsConfigItem : public utl::ConfigItem
SysCredentialsConfigItem( SysCredentialsConfig * pOwner );
//virtual ~SysCredentialsConfigItem();
- virtual void Notify(
- const com::sun::star::uno::Sequence< rtl::OUString > &
+ virtual void Notify(
+ const com::sun::star::uno::Sequence< rtl::OUString > &
seqPropertyNames );
virtual void Commit();
- com::sun::star::uno::Sequence< rtl::OUString >
+ com::sun::star::uno::Sequence< rtl::OUString >
getSystemCredentialsURLs();
-
- void setSystemCredentialsURLs(
- const com::sun::star::uno::Sequence< rtl::OUString > &
+
+ void setSystemCredentialsURLs(
+ const com::sun::star::uno::Sequence< rtl::OUString > &
seqURLList );
//bool isSystemCredentialsURL( const rtl::OUString & rURL ) const;
diff --git a/svl/source/svdde/ddecli.cxx b/svl/source/svdde/ddecli.cxx
index 0dc3196250f3..14afb9f208ff 100644
--- a/svl/source/svdde/ddecli.cxx
+++ b/svl/source/svdde/ddecli.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -307,7 +307,7 @@ void DdeTransaction::Execute()
HSZ hItem = *pName;
void* pData = (void*)(const void *)aDdeData;
DWORD nData = (DWORD)(long)aDdeData;
- ULONG nIntFmt = aDdeData.pImp->nFmt;
+ ULONG nIntFmt = aDdeData.pImp->nFmt;
UINT nExtFmt = DdeData::GetExternalFormat( nIntFmt );
DdeInstData* pInst = ImpGetInstData();
@@ -441,7 +441,7 @@ DdePoke::DdePoke( DdeConnection& d, const String& i, const String& rData,
long n ) :
DdeTransaction( d, i, n )
{
-// ByteString aByteStr( rData, osl_getThreadTextEncoding() );
+// ByteString aByteStr( rData, osl_getThreadTextEncoding() );
aDdeData = DdeData( (void*) rData.GetBuffer(), sizeof(sal_Unicode) * (rData.Len()), CF_TEXT );
nType = XTYP_POKE;
}
@@ -461,7 +461,7 @@ DdePoke::DdePoke( DdeConnection& d, const String& i, const DdeData& rData,
DdeExecute::DdeExecute( DdeConnection& d, const String& rData, long n ) :
DdeTransaction( d, String(), n )
{
-// ByteString aByteStr( rData, osl_getThreadTextEncoding() );
+// ByteString aByteStr( rData, osl_getThreadTextEncoding() );
aDdeData = DdeData( (void*)rData.GetBuffer(), sizeof(sal_Unicode) * (rData.Len() + 1), CF_TEXT );
nType = XTYP_EXECUTE;
}
diff --git a/svl/source/svdde/ddedata.cxx b/svl/source/svdde/ddedata.cxx
index 6754c2324adb..001ba1d0d7a3 100644
--- a/svl/source/svdde/ddedata.cxx
+++ b/svl/source/svdde/ddedata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/svdde/ddedll.cxx b/svl/source/svdde/ddedll.cxx
index 764b9713bf24..bf2502e12fcc 100644
--- a/svl/source/svdde/ddedll.cxx
+++ b/svl/source/svdde/ddedll.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
#ifdef WIN
-#include <sysdep.hxx> // included svwin.h
+#include <sysdep.hxx> // included svwin.h
// Statische DLL-Verwaltungs-Variablen
static HINSTANCE hDLLInst = 0; // HANDLE der DLL
diff --git a/svl/source/svdde/ddeimp.hxx b/svl/source/svdde/ddeimp.hxx
index 2c75311f8d38..61be1701f084 100644
--- a/svl/source/svdde/ddeimp.hxx
+++ b/svl/source/svdde/ddeimp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -141,10 +141,10 @@ public:
struct DdeDataImp
{
- HDDEDATA hData;
- LPBYTE pData;
- long nData;
- ULONG nFmt;
+ HDDEDATA hData;
+ LPBYTE pData;
+ long nData;
+ ULONG nFmt;
};
class DdeConnections;
@@ -152,20 +152,20 @@ class DdeServices;
struct DdeInstData
{
- USHORT nRefCount;
- DdeConnections* pConnections;
+ USHORT nRefCount;
+ DdeConnections* pConnections;
// Server
- long hCurConvSvr;
- ULONG hDdeInstSvr;
- short nInstanceSvr;
- DdeServices* pServicesSvr;
+ long hCurConvSvr;
+ ULONG hDdeInstSvr;
+ short nInstanceSvr;
+ DdeServices* pServicesSvr;
// Client
- ULONG hDdeInstCli;
- short nInstanceCli;
+ ULONG hDdeInstCli;
+ short nInstanceCli;
};
#ifndef SHL_SVDDE
-#define SHL_SVDDE SHL_SHL2
+#define SHL_SVDDE SHL_SHL2
#endif
inline DdeInstData* ImpGetInstData()
diff --git a/svl/source/svdde/ddeinf.cxx b/svl/source/svdde/ddeinf.cxx
index 8dd6e5374073..a6ff306011e6 100644
--- a/svl/source/svdde/ddeinf.cxx
+++ b/svl/source/svdde/ddeinf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/svdde/ddeml1.cxx b/svl/source/svdde/ddeml1.cxx
index de2c89907a7e..5663ca7ca565 100644
--- a/svl/source/svdde/ddeml1.cxx
+++ b/svl/source/svdde/ddeml1.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -125,16 +125,16 @@ inline HDDEDATA ImpDdeMgr::Callback( USHORT nTransactionType,
ImpDdeMgr::ImpDdeMgr()
{
- nLastErrInstance = DMLERR_NO_ERROR;
- pCallback = 0;
- nTransactFilter = 0;
- nServiceCount = 0;
- pServices = 0;
- pAppTable = 0;
- pConvTable = 0;
- pTransTable = 0;
- bServFilterOn = TRUE;
- bInSyncTrans = FALSE;
+ nLastErrInstance = DMLERR_NO_ERROR;
+ pCallback = 0;
+ nTransactFilter = 0;
+ nServiceCount = 0;
+ pServices = 0;
+ pAppTable = 0;
+ pConvTable = 0;
+ pTransTable = 0;
+ bServFilterOn = TRUE;
+ bInSyncTrans = FALSE;
CreateServerWnd();
pData = InitAll();
@@ -151,8 +151,8 @@ ImpDdeMgr::~ImpDdeMgr()
// Named Shared Mem vom BS loeschen lassen, da nicht bekannt ist,
// wieviele DDEML-Instanzen die App erzeugt hat, und OS/2
// keinen App-Referenzzaehler fuer shared mem fuehrt.
-// if ( pData )
-// DosFreeMem( pData );
+// if ( pData )
+// DosFreeMem( pData );
}
@@ -314,7 +314,7 @@ HWND ImpDdeMgr::NextFrameWin( HENUM hEnum )
{
WinQueryClassName( hWnd, sizeof(aBuf)-1, (PCH)aBuf );
// Frame-Window ?
- if( !strcmp( aBuf, "#1" ) ) // #define WC_FRAME ((PSZ)0xffff0001L)
+ if( !strcmp( aBuf, "#1" ) ) // #define WC_FRAME ((PSZ)0xffff0001L)
break;
hWnd = WinGetNextWindow( hEnum );
}
@@ -420,9 +420,9 @@ HCONVLIST ImpDdeMgr::DdeConnectList( HSZ hszService, HSZ hszTopic,
{
HCONV hLastConvInList;
- hCurListId = hConvList;
+ hCurListId = hConvList;
ImpHCONV* pConv = pConvTable;
- pConv += (USHORT)hConvList;
+ pConv += (USHORT)hConvList;
if( (USHORT)hConvList >= pData->nMaxConvCount ||pConv->hWndThis==0 )
{
nLastErrInstance = DMLERR_INVALIDPARAMETER;
@@ -501,7 +501,7 @@ DDEINIT* ImpDdeMgr::CreateDDEInitData( HWND hWndDestination, HSZ hszService,
void ImpDdeMgr::MyInitiateDde( HWND hWndSrv, HWND hWndClient,
HSZ hszService, HSZ hszTopic, CONVCONTEXT* pCC )
{
- DDEINIT* pBuf = CreateDDEInitData( hWndSrv, hszService, hszTopic, pCC );
+ DDEINIT* pBuf = CreateDDEInitData( hWndSrv, hszService, hszTopic, pCC );
if( pBuf )
{
PID pid; TID tid;
@@ -528,7 +528,7 @@ ImpHCONV* ImpDdeMgr::GetFirstServer(ImpDdeMgrData* pData, HCONVLIST hConvList,
// Startposition
pPtr += (USHORT)rhConv;
hConv = rhConv;
- pPtr++; hConv++; // auf den naechsten
+ pPtr++; hConv++; // auf den naechsten
}
while( hConv < pData->nMaxConvCount )
{
@@ -570,12 +570,12 @@ ImpHCONV* ImpDdeMgr::GetLastServer(ImpDdeMgrData* pData, HCONVLIST hConvList,
// static
BOOL ImpDdeMgr::CheckConvListId( HCONVLIST hConvListId )
{
- HAB hAB = WinQueryAnchorBlock( (HWND)hConvListId );
+ HAB hAB = WinQueryAnchorBlock( (HWND)hConvListId );
if( hAB )
return WinIsWindow( hAB, (HWND)hConvListId );
return FALSE;
/*
- HAB hAB = WinQueryAnchorBlock( (HWND)hConvListId );
+ HAB hAB = WinQueryAnchorBlock( (HWND)hConvListId );
if( hAB )
{
char aBuf[ 16 ];
@@ -650,7 +650,7 @@ BOOL ImpDdeMgr::DdeDisconnect( HCONV hConv )
pConv->nStatus |= ST_TERMINATED;
- HAB hAB = WinQueryAnchorBlock( pConv->hWndThis );
+ HAB hAB = WinQueryAnchorBlock( pConv->hWndThis );
// um die MessageQueue inne Gaenge zu halten
ULONG nTimerId = WinStartTimer( hAB, 0, 0, 50 );
@@ -782,21 +782,21 @@ USHORT ImpDdeMgr::DdeQueryConvInfo(HCONV hConv, ULONG nTransId, CONVINFO* pCI)
nSize = sizeof(CONVINFO);
CONVINFO aTempInfo;
memset( &aTempInfo, 0, sizeof(CONVINFO) );
- aTempInfo.nSize = pCI->nSize;
- aTempInfo.hConvPartner = pConv->hConvPartner;
- aTempInfo.hszPartner = pConv->hszPartner;
- aTempInfo.hszServiceReq = pConv->hszServiceReq;
- aTempInfo.hszTopic = pConv->hszTopic;
- aTempInfo.nStatus = pConv->nStatus;
- aTempInfo.hConvList = pConv->hConvList;
- aTempInfo.aConvCtxt = pConv->aConvContext;
+ aTempInfo.nSize = pCI->nSize;
+ aTempInfo.hConvPartner = pConv->hConvPartner;
+ aTempInfo.hszPartner = pConv->hszPartner;
+ aTempInfo.hszServiceReq = pConv->hszServiceReq;
+ aTempInfo.hszTopic = pConv->hszTopic;
+ aTempInfo.nStatus = pConv->nStatus;
+ aTempInfo.hConvList = pConv->hConvList;
+ aTempInfo.aConvCtxt = pConv->aConvContext;
if( pTrans )
{
- aTempInfo.nUser = pTrans->nUser;
- aTempInfo.hszItem = pTrans->hszItem;
- aTempInfo.nFormat = pTrans->nFormat;
- aTempInfo.nType = pTrans->nType;
- aTempInfo.nConvst = pTrans->nConvst;
+ aTempInfo.nUser = pTrans->nUser;
+ aTempInfo.hszItem = pTrans->hszItem;
+ aTempInfo.nFormat = pTrans->nFormat;
+ aTempInfo.nType = pTrans->nType;
+ aTempInfo.nConvst = pTrans->nConvst;
aTempInfo.nLastError= pTrans->nLastError;
}
memcpy( pCI, &aTempInfo, nSize );
@@ -985,7 +985,7 @@ BOOL ImpDdeMgr::DdePostAdvise( HSZ hszTopic, HSZ hszItem)
{
// todo: FACK_REQ in Out-Data setzen, wenn pTrans->nType & XTYPF_ACKREQ
////WRITELOG("DdePostAdvise:Sending data/notification")
- BOOL bSuccess = MyWinDdePostMsg( hWndClient,
+ BOOL bSuccess = MyWinDdePostMsg( hWndClient,
hWndServer,WM_DDE_DATA, pOutDDEData, DDEPM_RETRY);
if( bSuccess )
{
@@ -1374,9 +1374,9 @@ HDDEDATA ImpDdeMgr::DdeClientTransaction(void* pDdeData, ULONG cbData,
// WRITELOG("DdeClientTransaction:Starting sync. trans.")
pThis->hSyncResponseData = (HDDEDATA)0;
- pThis->nSyncResponseMsg = 0;
- pThis->bInSyncTrans = TRUE;
- pThis->nSyncTransId = nTransId;
+ pThis->nSyncResponseMsg = 0;
+ pThis->bInSyncTrans = TRUE;
+ pThis->nSyncTransId = nTransId;
pThis->bSyncAbandonTrans = FALSE;
if ( !MyWinDdePostMsg( hWndServer, hWndClient, nMsg, pOutDDEData,
@@ -1393,7 +1393,7 @@ HDDEDATA ImpDdeMgr::DdeClientTransaction(void* pDdeData, ULONG cbData,
}
return FALSE;
}
- HAB hAB = WinQueryAnchorBlock( hWndClient );
+ HAB hAB = WinQueryAnchorBlock( hWndClient );
ULONG nDummyTimer = WinStartTimer( hAB, 0, 0, 50 );
ULONG nTimeoutId = TID_USERMAX - nTransId;
WinStartTimer( hAB, hWndClient, nTimeoutId, nTimeout );
@@ -1432,8 +1432,8 @@ HDDEDATA ImpDdeMgr::DdeClientTransaction(void* pDdeData, ULONG cbData,
nMsg = pThis->nSyncResponseMsg;
pThis->hSyncResponseData= 0;
pThis->nSyncResponseMsg = 0;
- pThis->bInSyncTrans = FALSE;
- pThis->nSyncTransId = 0;
+ pThis->bInSyncTrans = FALSE;
+ pThis->nSyncTransId = 0;
if( !pDDEInData && nMsg != WM_TIMER )
{
DBG_ASSERT(0,"Dde:No data!");
@@ -1726,14 +1726,14 @@ MRESULT ImpDdeMgr::DdeTerminate( ImpWndProcParams* pParams )
Client: GetConvHandle( HWNDClient, HWNDSender )
*/
-MRESULT ImpDdeMgr::ConvWndProc( HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2 )
+MRESULT ImpDdeMgr::ConvWndProc( HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2 )
{
- ImpWndProcParams aParams;
+ ImpWndProcParams aParams;
- MRESULT nRet = (MRESULT)0;
+ MRESULT nRet = (MRESULT)0;
aParams.hWndReceiver= hWnd;
- aParams.nPar1 = nPar1;
- aParams.nPar2 = nPar2;
+ aParams.nPar1 = nPar1;
+ aParams.nPar2 = nPar2;
switch( nMsg )
{
@@ -1745,40 +1745,40 @@ MRESULT ImpDdeMgr::ConvWndProc( HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2 )
break;
#endif
- case WM_DDE_INITIATEACK : nRet = DdeInitiateAck(&aParams); break;
- case WM_DDE_ACK : nRet = DdeAck( &aParams ); break;
- case WM_DDE_ADVISE : nRet = DdeAdvise( &aParams ); break;
- case WM_DDE_DATA : nRet = DdeData( &aParams ); break;
- case WM_DDE_EXECUTE : nRet = DdeExecute( &aParams ); break;
- case WM_DDE_POKE : nRet = DdePoke( &aParams ); break;
- case WM_DDE_REQUEST : nRet = DdeRequest( &aParams ); break;
- case WM_DDE_TERMINATE : nRet = DdeTerminate( &aParams ); break;
- case WM_DDE_UNADVISE : nRet = DdeUnadvise( &aParams ); break;
- case WM_TIMER : nRet = DdeTimeout( &aParams ); break;
+ case WM_DDE_INITIATEACK : nRet = DdeInitiateAck(&aParams); break;
+ case WM_DDE_ACK : nRet = DdeAck( &aParams ); break;
+ case WM_DDE_ADVISE : nRet = DdeAdvise( &aParams ); break;
+ case WM_DDE_DATA : nRet = DdeData( &aParams ); break;
+ case WM_DDE_EXECUTE : nRet = DdeExecute( &aParams ); break;
+ case WM_DDE_POKE : nRet = DdePoke( &aParams ); break;
+ case WM_DDE_REQUEST : nRet = DdeRequest( &aParams ); break;
+ case WM_DDE_TERMINATE : nRet = DdeTerminate( &aParams ); break;
+ case WM_DDE_UNADVISE : nRet = DdeUnadvise( &aParams ); break;
+ case WM_TIMER : nRet = DdeTimeout( &aParams ); break;
}
return nRet;
}
-MRESULT ImpDdeMgr::SrvWndProc( HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2 )
+MRESULT ImpDdeMgr::SrvWndProc( HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2 )
{
MRESULT nRet = (MRESULT)0;
ImpWndProcParams aParams;
aParams.hWndReceiver= hWnd;
- aParams.nPar1 = nPar1;
- aParams.nPar2 = nPar2;
+ aParams.nPar1 = nPar1;
+ aParams.nPar2 = nPar2;
switch( nMsg )
{
#ifdef DBG_UTIL
- case WM_DDE_ACK :
+ case WM_DDE_ACK :
case WM_DDE_ADVISE :
case WM_DDE_EXECUTE :
case WM_DDE_POKE :
case WM_DDE_REQUEST :
case WM_DDE_UNADVISE :
case WM_DDE_DATA :
- case WM_DDE_INITIATEACK :
+ case WM_DDE_INITIATEACK :
DBG_ASSERT(0,"dde:unexpected msg");
nRet = (MRESULT)TRUE;
break;
@@ -1805,7 +1805,7 @@ MRESULT ImpDdeMgr::SrvWndProc( HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2 )
}
-MRESULT ImpDdeMgr::DdeAck( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdeAck( ImpWndProcParams* pParams )
{
//WRITELOG("DdeAck:Start")
HSZ hszItem;
@@ -1971,7 +1971,7 @@ USHORT ImpDdeMgr::SendUnadvises(HCONV hConvServer,USHORT nFormat,BOOL bFree)
HCONV ImpDdeMgr::CheckIncoming( ImpWndProcParams* pParams, ULONG nTransMask,
HSZ& rhszItem )
{
-// ////WRITELOG("CheckIncoming")
+// ////WRITELOG("CheckIncoming")
rhszItem = 0;
DDESTRUCT* pInDDEData = (DDESTRUCT*)(pParams->nPar2);
if( !pInDDEData )
@@ -1998,14 +1998,14 @@ HCONV ImpDdeMgr::CheckIncoming( ImpWndProcParams* pParams, ULONG nTransMask,
}
-MRESULT ImpDdeMgr::DdeAdvise( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdeAdvise( ImpWndProcParams* pParams )
{
////WRITELOG("DdeAdvise:Received")
HSZ hszItem;
- HCONV hConv = CheckIncoming(pParams, CBF_FAIL_ADVISES, hszItem);
+ HCONV hConv = CheckIncoming(pParams, CBF_FAIL_ADVISES, hszItem);
DDESTRUCT* pInDDEData = (DDESTRUCT*)(pParams->nPar2);
- HWND hWndThis = pParams->hWndReceiver;
- HWND hWndClient = (HWND)pParams->nPar1;
+ HWND hWndThis = pParams->hWndReceiver;
+ HWND hWndClient = (HWND)pParams->nPar1;
if( !hConv )
{
////WRITELOG("DdeAdvise:Conversation not found")
@@ -2104,13 +2104,13 @@ MRESULT ImpDdeMgr::DdeAdvise( ImpWndProcParams* pParams )
return (MRESULT)0;
}
-MRESULT ImpDdeMgr::DdeData( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdeData( ImpWndProcParams* pParams )
{
WRITELOG("DdeData:Received")
HSZ hszItem;
- HCONV hConv = CheckIncoming(pParams, 0, hszItem);
- HWND hWndThis = pParams->hWndReceiver;
- HWND hWndClient = (HWND)pParams->nPar1;
+ HCONV hConv = CheckIncoming(pParams, 0, hszItem);
+ HWND hWndThis = pParams->hWndReceiver;
+ HWND hWndClient = (HWND)pParams->nPar1;
DDESTRUCT* pInDDEData = (DDESTRUCT*)(pParams->nPar2);
#if 0 && defined( OV_DEBUG )
{
@@ -2239,7 +2239,7 @@ MRESULT ImpDdeMgr::DdeData( ImpWndProcParams* pParams )
return (MRESULT)0;
}
-MRESULT ImpDdeMgr::DdeExecute( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdeExecute( ImpWndProcParams* pParams )
{
////WRITELOG("DdeExecute:Received")
DDESTRUCT* pInDDEData = (DDESTRUCT*)(pParams->nPar2);
@@ -2292,7 +2292,7 @@ HCONV ImpDdeMgr::ConnectWithClient( HWND hWndClient,
WinQueryWindowProcess( hWndClient, &pid, &tid );
DosGiveSharedMem( pDDEData, pid, PAG_READ | PAG_WRITE);
}
- HAB hAB = WinQueryAnchorBlock( hWndSrv );
+ HAB hAB = WinQueryAnchorBlock( hWndSrv );
WinGetLastError( hAB ); // fehlercode zuruecksetzen
WinSendMsg(hWndClient,WM_DDE_INITIATEACK,(MPARAM)hWndSrv,(MPARAM)pDDEData);
if( WinGetLastError( hAB ) )
@@ -2332,11 +2332,11 @@ HCONV ImpDdeMgr::ConnectWithClient( HWND hWndClient,
return hConv;
}
-MRESULT ImpDdeMgr::DdeInitiate( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdeInitiate( ImpWndProcParams* pParams )
{
////WRITELOG("DdeInitiate:Received")
HWND hWndClient = (HWND)(pParams->nPar1);
-// BOOL bSameInst = IsSameInstance( hWndClient );
+// BOOL bSameInst = IsSameInstance( hWndClient );
BOOL bSameInst = (BOOL)(hWndClient==hWndServer);
DDEINIT* pDDEData = (DDEINIT*)pParams->nPar2;
@@ -2415,7 +2415,7 @@ MRESULT ImpDdeMgr::DdeInitiate( ImpWndProcParams* pParams )
return (MRESULT)TRUE;
}
-MRESULT ImpDdeMgr::DdeInitiateAck( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdeInitiateAck( ImpWndProcParams* pParams )
{
////WRITELOG("DdeInitiateAck:Received")
DDEINIT* pDDEData = (DDEINIT*)(pParams->nPar2);
@@ -2432,10 +2432,10 @@ MRESULT ImpDdeMgr::DdeInitiateAck( ImpWndProcParams* pParams )
// Referenz-Count unseres Client-Windows inkrementieren
IncConversationWndRefCount( hWndThis );
- HWND hWndSrv = (HWND)(pParams->nPar1);
- HSZ hszService = DdeCreateStringHandle( pDDEData->pszAppName, 850 );
- HSZ hszTopic = DdeCreateStringHandle( pDDEData->pszTopic, 850 );
- HSZ hszPartnerApp = GetAppName( hWndSrv );
+ HWND hWndSrv = (HWND)(pParams->nPar1);
+ HSZ hszService = DdeCreateStringHandle( pDDEData->pszAppName, 850 );
+ HSZ hszTopic = DdeCreateStringHandle( pDDEData->pszTopic, 850 );
+ HSZ hszPartnerApp = GetAppName( hWndSrv );
hCurConv = CreateConvHandle( pData, pidThis, hWndThis, hWndSrv,
hszPartnerApp, hszService, hszTopic, 0 );
@@ -2474,7 +2474,7 @@ MRESULT ImpDdeMgr::DdeInitiateAck( ImpWndProcParams* pParams )
return (MRESULT)TRUE;
}
-MRESULT ImpDdeMgr::DdePoke( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdePoke( ImpWndProcParams* pParams )
{
////WRITELOG("DdePoke:Received")
HSZ hszItem = 0;
@@ -2510,7 +2510,7 @@ MRESULT ImpDdeMgr::DdePoke( ImpWndProcParams* pParams )
return (MRESULT)0;
}
-MRESULT ImpDdeMgr::DdeRequest( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdeRequest( ImpWndProcParams* pParams )
{
////WRITELOG("DdeRequest:Received")
HSZ hszItem = 0;
@@ -2555,15 +2555,15 @@ MRESULT ImpDdeMgr::DdeRequest( ImpWndProcParams* pParams )
}
-MRESULT ImpDdeMgr::DdeUnadvise( ImpWndProcParams* pParams )
+MRESULT ImpDdeMgr::DdeUnadvise( ImpWndProcParams* pParams )
{
////WRITELOG("DdeUnadvise:Received")
HSZ hszItem;
- HCONV hConv = CheckIncoming( pParams, 0, hszItem );
+ HCONV hConv = CheckIncoming( pParams, 0, hszItem );
DDESTRUCT* pInDDEData = (DDESTRUCT*)(pParams->nPar2);
- HWND hWndThis = pParams->hWndReceiver;
- HWND hWndClient = (HWND)pParams->nPar1;
+ HWND hWndThis = pParams->hWndReceiver;
+ HWND hWndClient = (HWND)pParams->nPar1;
USHORT nClosedTransactions = 0;
if( hConv )
{
@@ -2622,16 +2622,16 @@ BOOL ImpDdeMgr::WaitTransState( Transaction* pTrans, ULONG nTransId,
////WRITELOG("WaitTransState:Start")
ImpHCONV* pConv = pConvTable;
pConv += pTrans->hConvOwner;
- HAB hAB = WinQueryAnchorBlock( pConv->hWndThis );
+ HAB hAB = WinQueryAnchorBlock( pConv->hWndThis );
ULONG nTimerId = WinStartTimer( hAB, 0, 0, 50 );
QMSG aQueueMsg;
-// while( WinGetMsg( hAB, &aQueueMsg, 0, 0, 0 ) &&
-// WinIsWindow( hAB, pConv->hWndPartner) &&
-// pTrans->nConvst != nNewState )
-// {
-// WinDispatchMsg( hAB, &aQueueMsg );
-// }
+// while( WinGetMsg( hAB, &aQueueMsg, 0, 0, 0 ) &&
+// WinIsWindow( hAB, pConv->hWndPartner) &&
+// pTrans->nConvst != nNewState )
+// {
+// WinDispatchMsg( hAB, &aQueueMsg );
+// }
BOOL bContinue = TRUE;
while( bContinue )
diff --git a/svl/source/svdde/ddeml2.cxx b/svl/source/svdde/ddeml2.cxx
index bb7d171c4e68..b920e34c17a8 100644
--- a/svl/source/svdde/ddeml2.cxx
+++ b/svl/source/svdde/ddeml2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,9 +73,9 @@ PSZ ImpDdeMgr::AllocAtomName( ATOM hString, ULONG& rBufLen )
PDDESTRUCT ImpDdeMgr::MakeDDEObject( HWND hwnd, ATOM hItemName,
USHORT fsStatus, USHORT usFormat, PVOID pabData, ULONG usDataLen )
{
- PDDESTRUCT pddes = 0;
- ULONG usItemLen;
- PULONG pulSharedObj;
+ PDDESTRUCT pddes = 0;
+ ULONG usItemLen;
+ PULONG pulSharedObj;
//WRITELOG("MakeDDEObject: Start")
PSZ pItemName = 0;
@@ -126,7 +126,7 @@ APIRET ImpDdeMgr::AllocNamedSharedMem( PPVOID ppBaseAddress, PSZ pName,
ULONG nElementSize, ULONG nElementCount )
{
ULONG nObjSize = (ULONG)(nElementSize * nElementCount );
- nObjSize += sizeof( ULONG ); // fuer ElementCount am Anfang des Blocks
+ nObjSize += sizeof( ULONG ); // fuer ElementCount am Anfang des Blocks
*ppBaseAddress = 0;
APIRET nRet = MyDosAllocSharedMem( ppBaseAddress, pName, nObjSize,
@@ -294,9 +294,9 @@ ImpDdeMgrData* ImpDdeMgr::InitAll()
if( pBase )
{
- pConvTable = ImpDdeMgr::GetConvTable( pBase );
+ pConvTable = ImpDdeMgr::GetConvTable( pBase );
pTransTable = ImpDdeMgr::GetTransTable( pBase );
- pAppTable = ImpDdeMgr::GetAppTable( pBase );
+ pAppTable = ImpDdeMgr::GetAppTable( pBase );
}
memset( &aDefaultContext, 0, sizeof(CONVCONTEXT) );
@@ -339,17 +339,17 @@ HCONV ImpDdeMgr::CreateConvHandle( ImpDdeMgrData* pData,
DdeKeepStringHandle( hszPartner );
DdeKeepStringHandle( hszServiceReq );
DdeKeepStringHandle( hszTopic );
- pPtr->hszPartner = hszPartner;
+ pPtr->hszPartner = hszPartner;
pPtr->hszServiceReq = hszServiceReq;
- pPtr->hszTopic = hszTopic;
+ pPtr->hszTopic = hszTopic;
- pPtr->hWndThis = hWndMe;
- pPtr->hWndPartner = hWndPartner;
- pPtr->pidOwner = pidOwner;
- pPtr->hConvPartner = (HCONV)0;
- pPtr->nPrevHCONV = (USHORT)hPrevHCONV;
- pPtr->nNextHCONV = 0;
- pPtr->nStatus = ST_CONNECTED;
+ pPtr->hWndThis = hWndMe;
+ pPtr->hWndPartner = hWndPartner;
+ pPtr->pidOwner = pidOwner;
+ pPtr->hConvPartner = (HCONV)0;
+ pPtr->nPrevHCONV = (USHORT)hPrevHCONV;
+ pPtr->nNextHCONV = 0;
+ pPtr->nStatus = ST_CONNECTED;
pData->nCurConvCount++;
@@ -398,7 +398,7 @@ void ImpDdeMgr::FreeConvHandle( ImpDdeMgrData* pBase, HCONV hConv,
DdeFreeStringHandle( pPtr->hszPartner );
DdeFreeStringHandle( pPtr->hszServiceReq );
- DdeFreeStringHandle( pPtr->hszTopic );
+ DdeFreeStringHandle( pPtr->hszTopic );
if( bDestroyHWndThis )
DestroyConversationWnd( pPtr->hWndThis );
memset( pPtr, 0, sizeof(ImpHCONV) );
@@ -545,8 +545,8 @@ ULONG ImpDdeMgr::GetTransaction( ImpDdeMgrData* pBase,
if( pTrans->hConvOwner )
{
if(( pTrans->hConvOwner == hOwner ||
- pTrans->hConvOwner == hConvPartner) &&
- pTrans->nFormat == nFormat &&
+ pTrans->hConvOwner == hConvPartner) &&
+ pTrans->nFormat == nFormat &&
pTrans->hszItem == hszItem )
{
// gefunden!
@@ -641,7 +641,7 @@ HDDEDATA ImpDdeMgr::DdeCreateDataHandle( void* pSrc, ULONG cb,
else
nStatus = 0;
PDDESTRUCT hData=MakeDDEObject(0,(ATOM)hszItem,nStatus,wFmt,pData,cb);
-// WRITEDATA(hData)
+// WRITEDATA(hData)
if ( !hData )
ImpDdeMgr::nLastErrInstance = DMLERR_INVALIDPARAMETER;
return (HDDEDATA)hData;
@@ -753,7 +753,7 @@ void ImpDdeMgr::FreeTransactions( ImpDdeMgrData* pData, HCONV hConvOwner )
return;
Transaction* pTrans = GetTransTable( pData );
-// ImpHCONV* pConvTable = GetConvTable( pData );
+// ImpHCONV* pConvTable = GetConvTable( pData );
pTrans++;
for( USHORT nPos=1; nPos < pData->nMaxTransCount; nPos++, pTrans++ )
{
diff --git a/svl/source/svdde/ddemldeb.cxx b/svl/source/svdde/ddemldeb.cxx
index 271527bd9aa9..a5e0d73bdea2 100644
--- a/svl/source/svdde/ddemldeb.cxx
+++ b/svl/source/svdde/ddemldeb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/svdde/ddemldeb.hxx b/svl/source/svdde/ddemldeb.hxx
index 0351dc58c1a6..3a6fb819491b 100644
--- a/svl/source/svdde/ddemldeb.hxx
+++ b/svl/source/svdde/ddemldeb.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/svdde/ddemlimp.hxx b/svl/source/svdde/ddemlimp.hxx
index fc147d77bb7d..94cef6574c78 100644
--- a/svl/source/svdde/ddemlimp.hxx
+++ b/svl/source/svdde/ddemlimp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,31 +34,31 @@
#include <ctype.h>
#include "ddemlos2.h"
-#define DDEMLSERVICETABLE_INISIZE 8
+#define DDEMLSERVICETABLE_INISIZE 8
// Bezeichner der systemglobalen DDEML-Tabelle
-#define DDEMLDATA "\\SHAREMEM\\OV_DDEML.DAT"
+#define DDEMLDATA "\\SHAREMEM\\OV_DDEML.DAT"
// vorlaeufig konstante Tabellengroessen
#define CONVTABLECOUNT 2048 /* max count conversations */
#define TRANSTABLECOUNT 2048 /* transactions */
-#define DDEMLAPPCOUNT 16 /* max count simultaniously running */
+#define DDEMLAPPCOUNT 16 /* max count simultaniously running */
/* ddeml (StarDivision) applications */
-#define ST_TERMACKREC 0x8000 /* wird im Conversationhandle gesetzt, */
+#define ST_TERMACKREC 0x8000 /* wird im Conversationhandle gesetzt, */
/* wenn die Partner-App DDE_TERMINATE */
/* bestaetigt hat */
-#define XST_TIMEOUT 17 /* Trans. hat Timeout ueberschritten */
-#define XST_WAITING_ACK 18 /* Trans. wartet auf Acknowledge */
-#define XST_WAITING_ADVDATA 19 /* Trans. wartet auf Advise-Daten */
-#define XST_WAITING_REQDATA 20 /* Trans. wartet auf angeforderte Daten */
+#define XST_TIMEOUT 17 /* Trans. hat Timeout ueberschritten */
+#define XST_WAITING_ACK 18 /* Trans. wartet auf Acknowledge */
+#define XST_WAITING_ADVDATA 19 /* Trans. wartet auf Advise-Daten */
+#define XST_WAITING_REQDATA 20 /* Trans. wartet auf angeforderte Daten */
/* User-Flags DDESTRUCT */
-#define IMP_HDATAAPPOWNED 0x8000
+#define IMP_HDATAAPPOWNED 0x8000
-#define CONVLISTNAME "DdeConvListId"
+#define CONVLISTNAME "DdeConvListId"
#define XTYPF_MASK (XTYPF_NOBLOCK | XTYPF_NODATA | XTYPF_ACKREQ)
@@ -71,14 +71,14 @@
// eines neuen Services gesendet
// Params: nPar1: hszBaseServName
// nPar2: hszInstServName
-#define WM_DDEML_REGISTER WM_USER+1
+#define WM_DDEML_REGISTER WM_USER+1
// Msg: WM_DDEML_UNREGISTER
// Empfaenger: wird allen DDEML-Applikationen nach Deregistrierung
// eines Services gesendet
// Params: nPar1: hszBaseServName
// nPar2: hszInstServName
-#define WM_DDEML_UNREGISTER WM_USER+2
+#define WM_DDEML_UNREGISTER WM_USER+2
//
//
@@ -86,58 +86,58 @@
struct ImpHCONV
{
- HCONV hConvPartner;
- HSZ hszPartner; // Name of partner application
- HSZ hszServiceReq; // Service name
- HSZ hszTopic; // Topic name
- USHORT nStatus; // ST_* of conversation
- HCONVLIST hConvList; // ConvListId , wenn in ConvList
- CONVCONTEXT aConvContext; // Conversation context
+ HCONV hConvPartner;
+ HSZ hszPartner; // Name of partner application
+ HSZ hszServiceReq; // Service name
+ HSZ hszTopic; // Topic name
+ USHORT nStatus; // ST_* of conversation
+ HCONVLIST hConvList; // ConvListId , wenn in ConvList
+ CONVCONTEXT aConvContext; // Conversation context
// private
- HWND hWndThis; // 0 == Handle not used
- HWND hWndPartner;
- PID pidOwner; // PID des DdeManagers, der
+ HWND hWndThis; // 0 == Handle not used
+ HWND hWndPartner;
+ PID pidOwner; // PID des DdeManagers, der
// den Conv-Handle erzeugt hat.
- USHORT nPrevHCONV; // 0 == no previous hConv or not in list
- USHORT nNextHCONV; // 0 == no next hconv or not in list
+ USHORT nPrevHCONV; // 0 == no previous hConv or not in list
+ USHORT nNextHCONV; // 0 == no next hconv or not in list
};
struct Transaction
{
- HSZ hszItem; // Item name
- USHORT nFormat; // Data format
- USHORT nType; // Transaction type (XTYP_*)
+ HSZ hszItem; // Item name
+ USHORT nFormat; // Data format
+ USHORT nType; // Transaction type (XTYP_*)
// XTYP_ADVREQ [|XTYPF_NODATA] == Advise-Loop
- // [|XTYPF_ACKREQ]
+ // [|XTYPF_ACKREQ]
// XTYP_EXECUTE == laufendes Execute
// XTYP_REQUEST
// XTYP_POKE
// XTYP_ADVSTOP
// XTYP_ADVSTART
- USHORT nConvst; // Conversation state (XST_*)
+ USHORT nConvst; // Conversation state (XST_*)
// 0 == idle
// XST_REQSENT (fuer XTYP_ADVREQ)
// XST_TIMEOUT (fuer alle Typen!)
// XST_WAITING (alle ausser XTYP_ADVREQ)
- USHORT nLastError; // last err in transaction
- ULONG nUser; // Userhandle
+ USHORT nLastError; // last err in transaction
+ ULONG nUser; // Userhandle
// private
- HCONV hConvOwner; // 0 == Transaction not used
+ HCONV hConvOwner; // 0 == Transaction not used
};
struct ImpWndProcParams
{
- HWND hWndReceiver;
- MPARAM nPar1;
- MPARAM nPar2;
+ HWND hWndReceiver;
+ MPARAM nPar1;
+ MPARAM nPar2;
};
struct ImpService
{
- HSZ hBaseServName; // Basis-Name des Service
- HSZ hInstServName; // Basis-Name + DDEML-Server-HWND der App
+ HSZ hBaseServName; // Basis-Name des Service
+ HSZ hInstServName; // Basis-Name + DDEML-Server-HWND der App
};
class ImpDdeMgr;
@@ -146,27 +146,27 @@ class ImpDdeMgr;
struct ImpConvWndData
{
ImpDdeMgr* pThis;
- USHORT nRefCount; // Zahl Conversations auf diesem Window
+ USHORT nRefCount; // Zahl Conversations auf diesem Window
};
// systemglobale Daten der Library (liegen in named shared memory)
struct ImpDdeMgrData
{
- ULONG nTotalSize;
- ULONG nOffsAppTable;
- ULONG nOffsConvTable;
- ULONG nOffsTransTable;
- USHORT nMaxAppCount;
- USHORT nMaxConvCount;
- USHORT nMaxTransCount;
- USHORT nLastErr;
- USHORT nReserved;
- USHORT nCurTransCount;
- USHORT nCurConvCount;
- HWND aAppTable[ 1 ]; // fuer Broadcast-Messages
- ImpHCONV aConvTable[ 1 ];
- Transaction aTransTable[ 1 ];
+ ULONG nTotalSize;
+ ULONG nOffsAppTable;
+ ULONG nOffsConvTable;
+ ULONG nOffsTransTable;
+ USHORT nMaxAppCount;
+ USHORT nMaxConvCount;
+ USHORT nMaxTransCount;
+ USHORT nLastErr;
+ USHORT nReserved;
+ USHORT nCurTransCount;
+ USHORT nCurConvCount;
+ HWND aAppTable[ 1 ]; // fuer Broadcast-Messages
+ ImpHCONV aConvTable[ 1 ];
+ Transaction aTransTable[ 1 ];
};
@@ -178,67 +178,67 @@ class ImpDdeMgr
friend void ImpWriteDdeStatus(char*,char*);
friend void ImpAddHSZ( HSZ, String& );
- static PSZ AllocAtomName( ATOM hString, ULONG& rBufLen );
+ static PSZ AllocAtomName( ATOM hString, ULONG& rBufLen );
static PDDESTRUCT MakeDDEObject( HWND hwnd, ATOM hItemName,
USHORT fsStatus, USHORT usFormat, PVOID pabData, ULONG usDataLen );
- static APIRET AllocNamedSharedMem( PPVOID ppBaseAddress, PSZ pName,
+ static APIRET AllocNamedSharedMem( PPVOID ppBaseAddress, PSZ pName,
ULONG nElementSize, ULONG nElementCount );
- HWND hWndServer;
- PID pidThis;
- PFNCALLBACK pCallback;
- ULONG nTransactFilter;
- CONVCONTEXT aDefaultContext;
- ImpDdeMgrData* pData;
- ImpService* pServices;
- USHORT nServiceCount;
+ HWND hWndServer;
+ PID pidThis;
+ PFNCALLBACK pCallback;
+ ULONG nTransactFilter;
+ CONVCONTEXT aDefaultContext;
+ ImpDdeMgrData* pData;
+ ImpService* pServices;
+ USHORT nServiceCount;
- ImpHCONV* pConvTable; // liegt in pData (nicht deleten!)
- Transaction* pTransTable; // liegt in pData (nicht deleten!)
- HWND* pAppTable; // liegt in pData (nicht deleten!)
+ ImpHCONV* pConvTable; // liegt in pData (nicht deleten!)
+ Transaction* pTransTable; // liegt in pData (nicht deleten!)
+ HWND* pAppTable; // liegt in pData (nicht deleten!)
- static ImpHCONV* GetConvTable( ImpDdeMgrData* );
+ static ImpHCONV* GetConvTable( ImpDdeMgrData* );
static Transaction* GetTransTable( ImpDdeMgrData* );
- static HWND* GetAppTable( ImpDdeMgrData* );
+ static HWND* GetAppTable( ImpDdeMgrData* );
- static HWND NextFrameWin( HENUM hEnum );
- void CreateServerWnd();
- void DestroyServerWnd();
- HWND CreateConversationWnd();
+ static HWND NextFrameWin( HENUM hEnum );
+ void CreateServerWnd();
+ void DestroyServerWnd();
+ HWND CreateConversationWnd();
// Fktn. duerfen nur fuer HCONVs aufgerufen werden, die
// in der eigenen Applikation erzeugt wurden
- static void DestroyConversationWnd( HWND hWndConv );
- static USHORT GetConversationWndRefCount( HWND hWndConv );
- static USHORT IncConversationWndRefCount( HWND hWndConv );
-
- MRESULT SrvWndProc(HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2);
- MRESULT ConvWndProc(HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2);
- void RegisterDDEMLApp();
- void UnregisterDDEMLApp();
- void CleanUp();
- ImpDdeMgrData* InitAll();
- static BOOL MyWinDdePostMsg( HWND, HWND, USHORT, PDDESTRUCT, ULONG );
- void MyInitiateDde( HWND hWndServer, HWND hWndClient,
+ static void DestroyConversationWnd( HWND hWndConv );
+ static USHORT GetConversationWndRefCount( HWND hWndConv );
+ static USHORT IncConversationWndRefCount( HWND hWndConv );
+
+ MRESULT SrvWndProc(HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2);
+ MRESULT ConvWndProc(HWND hWnd,ULONG nMsg,MPARAM nPar1,MPARAM nPar2);
+ void RegisterDDEMLApp();
+ void UnregisterDDEMLApp();
+ void CleanUp();
+ ImpDdeMgrData* InitAll();
+ static BOOL MyWinDdePostMsg( HWND, HWND, USHORT, PDDESTRUCT, ULONG );
+ void MyInitiateDde( HWND hWndServer, HWND hWndClient,
HSZ hszService, HSZ hszTopic, CONVCONTEXT* pCC );
- DDEINIT* CreateDDEInitData( HWND hWndDest, HSZ hszService,
+ DDEINIT* CreateDDEInitData( HWND hWndDest, HSZ hszService,
HSZ hszTopic, CONVCONTEXT* pCC );
// wenn pDDEData==0, muss pCC gesetzt sein
- HCONV ConnectWithClient( HWND hWndClient, HSZ hszPartner,
+ HCONV ConnectWithClient( HWND hWndClient, HSZ hszPartner,
HSZ hszService, HSZ hszTopic, BOOL bSameInst,
DDEINIT* pDDEData, CONVCONTEXT* pCC = 0);
- HCONV CheckIncoming( ImpWndProcParams*, ULONG nTransMask,
+ HCONV CheckIncoming( ImpWndProcParams*, ULONG nTransMask,
HSZ& rhszItem );
// fuer Serverbetrieb. Ruft Callback-Fkt fuer alle offenen Advises
// auf, deren Owner der uebergebene HCONV ist.
// bFreeTransactions==TRUE: loescht die Transaktionen
// gibt Anzahl der getrennten Transaktionen zurueck
- USHORT SendUnadvises( HCONV hConv,
+ USHORT SendUnadvises( HCONV hConv,
USHORT nFormat, // 0==alle
BOOL bFreeTransactions );
- BOOL WaitTransState(
+ BOOL WaitTransState(
Transaction* pTrans, ULONG nTransId,
USHORT nNewState,
ULONG nTimeout );
@@ -246,142 +246,142 @@ class ImpDdeMgr
// DDEML ruft Callback mit XTYP_CONNECT-Transaction nur auf,
// wenn die App den angeforderten Service registriert hat
// Standardeinstellung: TRUE
- BOOL bServFilterOn;
+ BOOL bServFilterOn;
// Fehlercode muss noch systemglobal werden (Atom o. ae.)
- static USHORT nLastErrInstance; // wenn 0, dann gilt globaler Fehlercode
+ static USHORT nLastErrInstance; // wenn 0, dann gilt globaler Fehlercode
static ImpDdeMgrData* AccessMgrData();
- static HCONV CreateConvHandle( ImpDdeMgrData* pBase,
+ static HCONV CreateConvHandle( ImpDdeMgrData* pBase,
PID pidOwner,
HWND hWndThis, HWND hWndPartner,
HSZ hszPartner, HSZ hszServiceReq, HSZ hszTopic,
HCONV hPrevHCONV = 0 );
- static HCONV IsConvHandleAvailable( ImpDdeMgrData* pBase );
- static HCONV GetConvHandle( ImpDdeMgrData* pBase,
+ static HCONV IsConvHandleAvailable( ImpDdeMgrData* pBase );
+ static HCONV GetConvHandle( ImpDdeMgrData* pBase,
HWND hWndThis, HWND hWndPartner );
- static void FreeConvHandle( ImpDdeMgrData*, HCONV,
+ static void FreeConvHandle( ImpDdeMgrData*, HCONV,
BOOL bDestroyHWndThis = TRUE );
- static ULONG CreateTransaction( ImpDdeMgrData* pBase,
+ static ULONG CreateTransaction( ImpDdeMgrData* pBase,
HCONV hOwner, HSZ hszItem, USHORT nFormat,
USHORT nTransactionType );
- static ULONG GetTransaction( ImpDdeMgrData* pBase,
+ static ULONG GetTransaction( ImpDdeMgrData* pBase,
HCONV hOwner, HSZ hszItem, USHORT nFormat );
- static void FreeTransaction( ImpDdeMgrData*, ULONG nTransId );
+ static void FreeTransaction( ImpDdeMgrData*, ULONG nTransId );
- BOOL DisconnectAll();
+ BOOL DisconnectAll();
// Transaktionen muessen _vor_ den Konversationen geloescht werden!
- static void FreeTransactions( ImpDdeMgrData*, HWND hWndThis,
+ static void FreeTransactions( ImpDdeMgrData*, HWND hWndThis,
HWND hWndPartner );
- static void FreeTransactions( ImpDdeMgrData*, HCONV hConvOwner );
+ static void FreeTransactions( ImpDdeMgrData*, HCONV hConvOwner );
- static void FreeConversations( ImpDdeMgrData*,HWND hWndThis,
+ static void FreeConversations( ImpDdeMgrData*,HWND hWndThis,
HWND hWndPartner );
- ImpService* GetService( HSZ hszService );
- ImpService* PutService( HSZ hszService );
- void BroadcastService( ImpService*, BOOL bRegistered );
+ ImpService* GetService( HSZ hszService );
+ ImpService* PutService( HSZ hszService );
+ void BroadcastService( ImpService*, BOOL bRegistered );
// rh: Startposition(!) & gefundener Handle
static ImpHCONV* GetFirstServer( ImpDdeMgrData*, HCONVLIST, HCONV& rh);
static ImpHCONV* GetLastServer( ImpDdeMgrData*, HCONVLIST, HCONV& );
- static BOOL CheckConvListId( HCONVLIST hConvListId );
+ static BOOL CheckConvListId( HCONVLIST hConvListId );
- BOOL IsSameInstance( HWND hWnd );
- HSZ GetAppName( HWND hWnd );
+ BOOL IsSameInstance( HWND hWnd );
+ HSZ GetAppName( HWND hWnd );
// Transactions
- MRESULT DdeAck( ImpWndProcParams* pParams );
- MRESULT DdeAdvise( ImpWndProcParams* pParams );
- MRESULT DdeData( ImpWndProcParams* pParams );
- MRESULT DdeExecute( ImpWndProcParams* pParams );
- MRESULT DdeInitiate( ImpWndProcParams* pParams );
- MRESULT DdeInitiateAck( ImpWndProcParams* pParams );
- MRESULT DdePoke( ImpWndProcParams* pParams );
- MRESULT DdeRequest( ImpWndProcParams* pParams );
- MRESULT DdeTerminate( ImpWndProcParams* pParams );
- MRESULT DdeUnadvise( ImpWndProcParams* pParams );
- MRESULT DdeRegister( ImpWndProcParams* pParams );
- MRESULT DdeUnregister( ImpWndProcParams* pParams );
- MRESULT DdeTimeout( ImpWndProcParams* pParams );
-
- HDDEDATA Callback(
- USHORT nTransactionType,
- USHORT nClipboardFormat,
- HCONV hConversationHandle,
- HSZ hsz1,
- HSZ hsz2,
+ MRESULT DdeAck( ImpWndProcParams* pParams );
+ MRESULT DdeAdvise( ImpWndProcParams* pParams );
+ MRESULT DdeData( ImpWndProcParams* pParams );
+ MRESULT DdeExecute( ImpWndProcParams* pParams );
+ MRESULT DdeInitiate( ImpWndProcParams* pParams );
+ MRESULT DdeInitiateAck( ImpWndProcParams* pParams );
+ MRESULT DdePoke( ImpWndProcParams* pParams );
+ MRESULT DdeRequest( ImpWndProcParams* pParams );
+ MRESULT DdeTerminate( ImpWndProcParams* pParams );
+ MRESULT DdeUnadvise( ImpWndProcParams* pParams );
+ MRESULT DdeRegister( ImpWndProcParams* pParams );
+ MRESULT DdeUnregister( ImpWndProcParams* pParams );
+ MRESULT DdeTimeout( ImpWndProcParams* pParams );
+
+ HDDEDATA Callback(
+ USHORT nTransactionType,
+ USHORT nClipboardFormat,
+ HCONV hConversationHandle,
+ HSZ hsz1,
+ HSZ hsz2,
HDDEDATA hData,
- ULONG nData1,
- ULONG nData2 );
+ ULONG nData1,
+ ULONG nData2 );
- HCONV DdeConnectImp( HSZ hszService,HSZ hszTopic,CONVCONTEXT* pCC);
+ HCONV DdeConnectImp( HSZ hszService,HSZ hszTopic,CONVCONTEXT* pCC);
// connection data
- HCONV hCurConv; // wird im DdeInitiateAck gesetzt
- HCONVLIST hCurListId; // fuer DdeConnectList
- USHORT nPrevConv; // .... "" ....
- BOOL bListConnect;
+ HCONV hCurConv; // wird im DdeInitiateAck gesetzt
+ HCONVLIST hCurListId; // fuer DdeConnectList
+ USHORT nPrevConv; // .... "" ....
+ BOOL bListConnect;
// synchr. transaction data
- BOOL bInSyncTrans;
- ULONG nSyncTransId;
- HDDEDATA hSyncResponseData;
- ULONG nSyncResponseMsg; // WM_DDE_ACK, WM_DDE_DATA, WM_TIMER
+ BOOL bInSyncTrans;
+ ULONG nSyncTransId;
+ HDDEDATA hSyncResponseData;
+ ULONG nSyncResponseMsg; // WM_DDE_ACK, WM_DDE_DATA, WM_TIMER
// TRUE==nach Ende der synchronen Transaktion eine evtl. benutzte
// asynchrone Transaktion beenden (typisch synchroner Request auf
// Advise-Loop)
- BOOL bSyncAbandonTrans;
+ BOOL bSyncAbandonTrans;
public:
ImpDdeMgr();
~ImpDdeMgr();
- USHORT DdeInitialize( PFNCALLBACK pCallbackProc, ULONG nTransactionFilter );
- USHORT DdeGetLastError();
+ USHORT DdeInitialize( PFNCALLBACK pCallbackProc, ULONG nTransactionFilter );
+ USHORT DdeGetLastError();
- HCONV DdeConnect( HSZ hszService, HSZ hszTopic, CONVCONTEXT* );
- HCONVLIST DdeConnectList( HSZ hszService, HSZ hszTopic,
+ HCONV DdeConnect( HSZ hszService, HSZ hszTopic, CONVCONTEXT* );
+ HCONVLIST DdeConnectList( HSZ hszService, HSZ hszTopic,
HCONVLIST hConvList, CONVCONTEXT* );
- static BOOL DdeDisconnect( HCONV hConv );
- static BOOL DdeDisconnectList( HCONVLIST hConvList );
- static HCONV DdeReconnect(HCONV hConv);
- static HCONV DdeQueryNextServer(HCONVLIST hConvList, HCONV hConvPrev);
- static USHORT DdeQueryConvInfo(HCONV hConv, ULONG idTrans,CONVINFO* pCI);
- static BOOL DdeSetUserHandle(HCONV hConv, ULONG id, ULONG hUser);
- BOOL DdeAbandonTransaction( HCONV hConv, ULONG idTransaction);
+ static BOOL DdeDisconnect( HCONV hConv );
+ static BOOL DdeDisconnectList( HCONVLIST hConvList );
+ static HCONV DdeReconnect(HCONV hConv);
+ static HCONV DdeQueryNextServer(HCONVLIST hConvList, HCONV hConvPrev);
+ static USHORT DdeQueryConvInfo(HCONV hConv, ULONG idTrans,CONVINFO* pCI);
+ static BOOL DdeSetUserHandle(HCONV hConv, ULONG id, ULONG hUser);
+ BOOL DdeAbandonTransaction( HCONV hConv, ULONG idTransaction);
- BOOL DdePostAdvise( HSZ hszTopic, HSZ hszItem);
- BOOL DdeEnableCallback( HCONV hConv, USHORT wCmd);
+ BOOL DdePostAdvise( HSZ hszTopic, HSZ hszItem);
+ BOOL DdeEnableCallback( HCONV hConv, USHORT wCmd);
- HDDEDATA DdeNameService( HSZ hszService, USHORT afCmd);
+ HDDEDATA DdeNameService( HSZ hszService, USHORT afCmd);
- static HDDEDATA DdeClientTransaction(void* pData, ULONG cbData,
+ static HDDEDATA DdeClientTransaction(void* pData, ULONG cbData,
HCONV hConv, HSZ hszItem, USHORT wFmt, USHORT wType,
ULONG dwTimeout, ULONG* pdwResult);
// Data handles
- HDDEDATA DdeCreateDataHandle( void* pSrc, ULONG cb, ULONG cbOff,
+ HDDEDATA DdeCreateDataHandle( void* pSrc, ULONG cb, ULONG cbOff,
HSZ hszItem, USHORT wFmt, USHORT afCmd);
- static BYTE* DdeAccessData(HDDEDATA hData, ULONG* pcbDataSize);
- static BOOL DdeUnaccessData(HDDEDATA hData);
- static BOOL DdeFreeDataHandle(HDDEDATA hData);
+ static BYTE* DdeAccessData(HDDEDATA hData, ULONG* pcbDataSize);
+ static BOOL DdeUnaccessData(HDDEDATA hData);
+ static BOOL DdeFreeDataHandle(HDDEDATA hData);
static HDDEDATA DdeAddData(HDDEDATA hData,void* pSrc,ULONG cb,ULONG cbOff);
- static ULONG DdeGetData(HDDEDATA hData,void* pDst,ULONG cbMax,ULONG cbOff);
+ static ULONG DdeGetData(HDDEDATA hData,void* pDst,ULONG cbMax,ULONG cbOff);
// String handles
- static HSZ DdeCreateStringHandle( PSZ pStr, int iCodePage);
- static ULONG DdeQueryString(HSZ hsz,PSZ pStr,ULONG cchMax,int iCPage);
- static BOOL DdeFreeStringHandle( HSZ hsz );
- static BOOL DdeKeepStringHandle( HSZ hsz );
- static int DdeCmpStringHandles(HSZ hsz1, HSZ hsz2);
+ static HSZ DdeCreateStringHandle( PSZ pStr, int iCodePage);
+ static ULONG DdeQueryString(HSZ hsz,PSZ pStr,ULONG cchMax,int iCPage);
+ static BOOL DdeFreeStringHandle( HSZ hsz );
+ static BOOL DdeKeepStringHandle( HSZ hsz );
+ static int DdeCmpStringHandles(HSZ hsz1, HSZ hsz2);
// mit dieser Funktion kann geprueft werden, ob eine
// Applikation schon eine DDEML-Instanz angelegt hat.
@@ -391,7 +391,7 @@ public:
// gibt TRUE zurueck, wenn mind. ein lebender HCONV
// von diesem DdeMgr erzeugt wurde
- BOOL OwnsConversationHandles();
+ BOOL OwnsConversationHandles();
};
// static
diff --git a/svl/source/svdde/ddemlos2.h b/svl/source/svdde/ddemlos2.h
index a31c14994353..97a0c1e3b585 100644
--- a/svl/source/svdde/ddemlos2.h
+++ b/svl/source/svdde/ddemlos2.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,27 +43,27 @@ typedef LHANDLE HSTR;
#endif
-typedef ULONG HCONVLIST;
-typedef ULONG HCONV;
-typedef ATOM HSZ;
-typedef DDESTRUCT* HDDEDATA;
+typedef ULONG HCONVLIST;
+typedef ULONG HCONV;
+typedef ATOM HSZ;
+typedef DDESTRUCT* HDDEDATA;
struct CONVINFO
{
- USHORT nSize; // sizeof(CONVINFO)
- ULONG nUser; // Userhandle
- HCONV hConvPartner; //
- HSZ hszPartner; // Name der Partnerapp
- HSZ hszServiceReq; // Name des angeforderten Services
- HSZ hszTopic; // -- " -- Topics
- HSZ hszItem; // -- " -- Items
- USHORT nFormat; // Datenformat der akt. Transaktion
- USHORT nType; // Typ der akt. Transaktion (XTYP_*)
- USHORT nStatus; // ST_* der Konversation
- USHORT nConvst; // XST_* der akt. Transaktion
- USHORT nLastError; // letzter Fehler der Transaktion
- HCONVLIST hConvList; // ConvListId , wenn in ConvList
- CONVCONTEXT aConvCtxt; // conversation context
+ USHORT nSize; // sizeof(CONVINFO)
+ ULONG nUser; // Userhandle
+ HCONV hConvPartner; //
+ HSZ hszPartner; // Name der Partnerapp
+ HSZ hszServiceReq; // Name des angeforderten Services
+ HSZ hszTopic; // -- " -- Topics
+ HSZ hszItem; // -- " -- Items
+ USHORT nFormat; // Datenformat der akt. Transaktion
+ USHORT nType; // Typ der akt. Transaktion (XTYP_*)
+ USHORT nStatus; // ST_* der Konversation
+ USHORT nConvst; // XST_* der akt. Transaktion
+ USHORT nLastError; // letzter Fehler der Transaktion
+ HCONVLIST hConvList; // ConvListId , wenn in ConvList
+ CONVCONTEXT aConvCtxt; // conversation context
};
/* the following structure is for use with XTYP_WILDCONNECT processing. */
@@ -325,50 +325,50 @@ int DdeCmpStringHandles(HSZ hsz1, HSZ hsz2);
/* von OS/2 nicht unterstuetzte Win3.1 Clipboard-Formate */
-#define CF_NOTSUPPORTED_BASE 0xff00
+#define CF_NOTSUPPORTED_BASE 0xff00
#ifndef CF_DIB
-#define CF_DIB CF_NOTSUPPORTED_BASE+1
+#define CF_DIB CF_NOTSUPPORTED_BASE+1
#endif
#ifndef CF_DIF
-#define CF_DIF CF_NOTSUPPORTED_BASE+2
+#define CF_DIF CF_NOTSUPPORTED_BASE+2
#endif
#ifndef CF_DSPMETAFILEPICT
-#define CF_DSPMETAFILEPICT CF_NOTSUPPORTED_BASE+3
+#define CF_DSPMETAFILEPICT CF_NOTSUPPORTED_BASE+3
#endif
#ifndef CF_METAFILEPICT
-#define CF_METAFILEPICT CF_NOTSUPPORTED_BASE+4
+#define CF_METAFILEPICT CF_NOTSUPPORTED_BASE+4
#endif
#ifndef CF_OEMTEXT
-#define CF_OEMTEXT CF_NOTSUPPORTED_BASE+5
+#define CF_OEMTEXT CF_NOTSUPPORTED_BASE+5
#endif
#ifndef CF_OWNERDISPLAY
-#define CF_OWNERDISPLAY CF_NOTSUPPORTED_BASE+6
+#define CF_OWNERDISPLAY CF_NOTSUPPORTED_BASE+6
#endif
#ifndef CF_PENDATA
-#define CF_PENDATA CF_NOTSUPPORTED_BASE+7
+#define CF_PENDATA CF_NOTSUPPORTED_BASE+7
#endif
#ifndef CF_RIFF
-#define CF_RIFF CF_NOTSUPPORTED_BASE+8
+#define CF_RIFF CF_NOTSUPPORTED_BASE+8
#endif
#ifndef CF_SYLK
-#define CF_SYLK CF_NOTSUPPORTED_BASE+9
+#define CF_SYLK CF_NOTSUPPORTED_BASE+9
#endif
#ifndef CF_TIFF
-#define CF_TIFF CF_NOTSUPPORTED_BASE+10
+#define CF_TIFF CF_NOTSUPPORTED_BASE+10
#endif
#ifndef CF_WAVE
-#define CF_WAVE CF_NOTSUPPORTED_BASE+11
+#define CF_WAVE CF_NOTSUPPORTED_BASE+11
#endif
diff --git a/svl/source/svdde/ddestrg.cxx b/svl/source/svdde/ddestrg.cxx
index 98aac8369d68..fd0f2abd1e40 100644
--- a/svl/source/svdde/ddestrg.cxx
+++ b/svl/source/svdde/ddestrg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx
index 93f7f1b5ce04..50f294517d7e 100644
--- a/svl/source/svdde/ddesvr.cxx
+++ b/svl/source/svdde/ddesvr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -1015,7 +1015,7 @@ String DdeService::Formats()
String s;
long f;
TCHAR buf[128];
- LPCTSTR p;
+ LPCTSTR p;
short n = 0;
for ( f = aFormats.First(); f; f = aFormats.Next(), n++ )
diff --git a/svl/source/svdde/ddewrap.cxx b/svl/source/svdde/ddewrap.cxx
index 8673dfbab4d1..f59897b15e7a 100644
--- a/svl/source/svdde/ddewrap.cxx
+++ b/svl/source/svdde/ddewrap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,9 +44,9 @@
HSZ WINAPI DdeCreateStringHandleW_9x( DWORD idInst, LPCWSTR pszString, int )
{
- HSZ hszResult;
- LPSTR pszANSIString;
- int nSize;
+ HSZ hszResult;
+ LPSTR pszANSIString;
+ int nSize;
nSize = pszString ? WideCharToMultiByte( CP_ACP, 0, pszString, -1, NULL, 0, NULL, NULL ) : 0;
pszANSIString = nSize ? (LPSTR)HeapAlloc( GetProcessHeap(), 0, nSize * sizeof(CHAR) ) : NULL;
@@ -66,8 +66,8 @@ HSZ WINAPI DdeCreateStringHandleW_9x( DWORD idInst, LPCWSTR pszString, int )
DWORD WINAPI DdeQueryStringW_9x( DWORD idInst, HSZ hsz, LPWSTR pszString, DWORD cchMax, int )
{
- DWORD dwResult;
- LPSTR pszANSIString;
+ DWORD dwResult;
+ LPSTR pszANSIString;
pszANSIString = cchMax ? (LPSTR)HeapAlloc( GetProcessHeap(), 0, cchMax * sizeof(CHAR) ) : NULL;
diff --git a/svl/source/svdde/ddewrap.hxx b/svl/source/svdde/ddewrap.hxx
index 75945383a55b..36a480f6935c 100644
--- a/svl/source/svdde/ddewrap.hxx
+++ b/svl/source/svdde/ddewrap.hxx
@@ -16,9 +16,9 @@ DECLARE_WAPI_FUNC( DdeInitializeW );
#ifndef _SVTOOLS_SVDDE_DDEWRAP_CXX_
-#define DdeCreateStringHandleW lpfnDdeCreateStringHandleW
-#define DdeQueryStringW lpfnDdeQueryStringW
-#define DdeInitializeW lpfnDdeInitializeW
+#define DdeCreateStringHandleW lpfnDdeCreateStringHandleW
+#define DdeQueryStringW lpfnDdeQueryStringW
+#define DdeInitializeW lpfnDdeInitializeW
#endif
diff --git a/svl/source/svsql/converter.cxx b/svl/source/svsql/converter.cxx
index a68d617d8918..a10702a156de 100644
--- a/svl/source/svsql/converter.cxx
+++ b/svl/source/svsql/converter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 8e77cde327da..046f9e92e8e3 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -185,7 +185,7 @@ void SfxUndoManager::SetMaxUndoActionCount( USHORT nMaxUndoActionCount )
// the number of entries due to a lower nMaxUndoActionCount.
// Both redo and undo action entries will be removed until we reached the
// new nMaxUndoActionCount.
-
+
long nNumToDelete = pActUndoArray->aUndoActions.Count() - nMaxUndoActionCount;
if ( nNumToDelete > 0 )
{
@@ -212,7 +212,7 @@ void SfxUndoManager::SetMaxUndoActionCount( USHORT nMaxUndoActionCount )
--nNumToDelete;
}
}
-
+
if ( nPos == pActUndoArray->aUndoActions.Count() )
break; // Cannot delete more entries
}
@@ -378,9 +378,9 @@ void SfxUndoManager::RemoveLastUndoAction()
BOOL SfxUndoManager::Undo( USHORT )
{
- bool bUndoWasEnabled = mbUndoEnabled;
+ bool bUndoWasEnabled = mbUndoEnabled;
mbUndoEnabled = false;
-
+
BOOL bRet = FALSE;
try
@@ -405,7 +405,7 @@ BOOL SfxUndoManager::Undo( USHORT )
void SfxUndoManager::Undo( SfxUndoAction &rAction )
{
- bool bUndoWasEnabled = mbUndoEnabled;
+ bool bUndoWasEnabled = mbUndoEnabled;
mbUndoEnabled = false;
try
{
@@ -445,9 +445,9 @@ USHORT SfxUndoManager::GetRedoActionId( USHORT nNo ) const
BOOL SfxUndoManager::Redo( USHORT )
{
- bool bUndoWasEnabled = mbUndoEnabled;
+ bool bUndoWasEnabled = mbUndoEnabled;
mbUndoEnabled = false;
-
+
BOOL bRet = FALSE;
try
@@ -472,7 +472,7 @@ BOOL SfxUndoManager::Redo( USHORT )
void SfxUndoManager::Redo( SfxUndoAction &rAction )
{
- bool bUndoWasEnabled = mbUndoEnabled;
+ bool bUndoWasEnabled = mbUndoEnabled;
mbUndoEnabled = false;
try
@@ -549,7 +549,7 @@ BOOL SfxUndoManager::CanRepeat( SfxRepeatTarget &rTarget, USHORT nNo ) const
void SfxUndoManager::EnterListAction(
const XubString& rComment, const XubString &rRepeatComment, USHORT nId )
-/* [Beschreibung]
+/* [Beschreibung]
Fuegt eine ListUndoAction ein und setzt dessen UndoArray als aktuelles.
*/
@@ -572,7 +572,7 @@ void SfxUndoManager::EnterListAction(
void SfxUndoManager::LeaveListAction()
-/* [Beschreibung]
+/* [Beschreibung]
Verlaesst die aktuelle ListAction und geht eine Ebene nach oben.
*/
@@ -658,7 +658,7 @@ SfxListUndoAction::SfxListUndoAction
USHORT Id,
SfxUndoArray *pFather
)
-: nId(Id), aComment(rComment), aRepeatComment(rRepeatComment)
+: nId(Id), aComment(rComment), aRepeatComment(rRepeatComment)
{
pFatherUndoArray = pFather;
nMaxUndoActions = USHRT_MAX;
@@ -710,7 +710,7 @@ BOOL SfxListUndoAction::Merge( SfxUndoAction *pNextAction )
//------------------------------------------------------------------------
SfxLinkUndoAction::SfxLinkUndoAction(SfxUndoManager *pManager)
-/* [Beschreibung]
+/* [Beschreibung]
Richtet eine LinkAction ein, die auf einen weiteren UndoManager zeigt.
Holt sich als zugehoerige Action des weiteren UndoManagers dessen
diff --git a/svl/source/uno/pathservice.cxx b/svl/source/uno/pathservice.cxx
index a7a932435d24..bfd730265011 100644
--- a/svl/source/uno/pathservice.cxx
+++ b/svl/source/uno/pathservice.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svl/source/uno/registerservices.cxx b/svl/source/uno/registerservices.cxx
index 679f79898d79..3b7d52a75c42 100644
--- a/svl/source/uno/registerservices.cxx
+++ b/svl/source/uno/registerservices.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -148,6 +148,6 @@ SVL_DLLPUBLIC void* SAL_CALL component_getFactory (
return pResult;
}
-} // "C"
+} // "C"
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/unx/inc/convert.hxx b/svl/unx/inc/convert.hxx
index 751d25dfe083..f516b35256e1 100644
--- a/svl/unx/inc/convert.hxx
+++ b/svl/unx/inc/convert.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,27 +36,27 @@
class Convert
{
public:
- static void Swap( long & nValue )
+ static void Swap( long & nValue )
{ nValue = SWAPLONG( nValue ); }
- static void Swap( ULONG & nValue )
+ static void Swap( ULONG & nValue )
{ nValue = SWAPLONG( nValue ); }
- static void Swap( short & nValue )
+ static void Swap( short & nValue )
{ nValue = SWAPSHORT( nValue ); }
- static void Swap( USHORT & nValue )
+ static void Swap( USHORT & nValue )
{ nValue = SWAPSHORT( nValue ); }
- static void Swap( Point & aPtr )
+ static void Swap( Point & aPtr )
{ Swap( aPtr.X() ); Swap( aPtr.Y() ); }
- static void Swap( Size & aSize )
+ static void Swap( Size & aSize )
{ Swap( aSize.Width() ); Swap( aSize.Height() ); }
- static void Swap( Rectangle & rRect )
+ static void Swap( Rectangle & rRect )
{ Swap( rRect.Top() ); Swap( rRect.Bottom() );
Swap( rRect.Left() ); Swap( rRect.Right() ); }
/*
- static USHORT AnsiFloatSize() const { return 6; }
- static float AnsiToFloat( void * pAnsiFloat )
+ static USHORT AnsiFloatSize() const { return 6; }
+ static float AnsiToFloat( void * pAnsiFloat )
{ return 0; }
- static USHORT AnsiDoubleSize() const { return 12; }
- static double AnsiToDouble( void * pAnsiDouble )
+ static USHORT AnsiDoubleSize() const { return 12; }
+ static double AnsiToDouble( void * pAnsiDouble )
{ return 0; }
*/
};
diff --git a/svl/unx/source/svdde/ddedummy.cxx b/svl/unx/source/svdde/ddedummy.cxx
index aa5b75e2f350..08a145be74f8 100644
--- a/svl/unx/source/svdde/ddedummy.cxx
+++ b/svl/unx/source/svdde/ddedummy.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -269,10 +269,10 @@ const String& DdeService::GetName() const
return String::EmptyString();
}
-namespace
-{
- struct theDdeServices
- : public rtl::Static< DdeServices, theDdeServices > {};
+namespace
+{
+ struct theDdeServices
+ : public rtl::Static< DdeServices, theDdeServices > {};
}
DdeServices& DdeService::GetServices()
diff --git a/svtools/bmpmaker/bmp.cxx b/svtools/bmpmaker/bmp.cxx
index 670f09431009..a7423395b049 100644
--- a/svtools/bmpmaker/bmp.cxx
+++ b/svtools/bmpmaker/bmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,13 +52,13 @@ class BmpApp : public BmpCreator
{
private:
- String aOutputFileName;
- BYTE cExitCode;
-
- BOOL GetCommandOption( const ::std::vector< String >& rArgs, const String& rSwitch, String& rSwitchParam );
- BOOL GetCommandOptions( const ::std::vector< String >& rArgs, const String& rSwitch, ::std::vector< String >& rSwitchParams );
+ String aOutputFileName;
+ BYTE cExitCode;
+
+ BOOL GetCommandOption( const ::std::vector< String >& rArgs, const String& rSwitch, String& rSwitchParam );
+ BOOL GetCommandOptions( const ::std::vector< String >& rArgs, const String& rSwitch, ::std::vector< String >& rSwitchParams );
- void SetExitCode( BYTE cExit )
+ void SetExitCode( BYTE cExit )
{
if( ( EXIT_NOERROR == cExitCode ) || ( cExit != EXIT_NOERROR ) )
cExitCode = cExit;
@@ -95,7 +95,7 @@ BOOL BmpApp::GetCommandOption( const ::std::vector< String >& rArgs, const Strin
for( int i = 0, nCount = rArgs.size(); ( i < nCount ) && !bRet; i++ )
{
- String aTestStr( '-' );
+ String aTestStr( '-' );
for( int n = 0; ( n < 2 ) && !bRet; n++ )
{
@@ -127,7 +127,7 @@ BOOL BmpApp::GetCommandOptions( const ::std::vector< String >& rArgs, const Stri
for( int i = 0, nCount = rArgs.size(); ( i < nCount ); i++ )
{
- String aTestStr( '-' );
+ String aTestStr( '-' );
for( int n = 0; ( n < 2 ) && !bRet; n++ )
{
@@ -139,7 +139,7 @@ BOOL BmpApp::GetCommandOptions( const ::std::vector< String >& rArgs, const Stri
rParams.push_back( rArgs[ i + 1 ] );
else
rParams.push_back( String() );
-
+
break;
}
@@ -166,7 +166,7 @@ void BmpApp::Message( const String& rText, BYTE cExit )
// -----------------------------------------------------------------------------
void BmpApp::ShowUsage()
-{
+{
Message( String( RTL_CONSTASCII_USTRINGPARAM( "Usage:" ) ), EXIT_NOERROR );
Message( String( RTL_CONSTASCII_USTRINGPARAM( " bmp srs_inputfile output_dir lang_dir lang_num -i input_dir [-i input_dir ][-f err_file]" ) ), EXIT_NOERROR );
Message( String( RTL_CONSTASCII_USTRINGPARAM( "Options:" ) ), EXIT_NOERROR );
@@ -187,13 +187,13 @@ int BmpApp::Start( const ::std::vector< String >& rArgs )
if( rArgs.size() >= 6 )
{
LangInfo aLangInfo;
- USHORT nCurCmd = 0;
+ USHORT nCurCmd = 0;
const String aSrsName( rArgs[ nCurCmd++ ] );
::std::vector< String > aInDirVector;
- ByteString aLangDir;
-
+ ByteString aLangDir;
+
aOutName = rArgs[ nCurCmd++ ];
-
+
aLangDir = ByteString( rArgs[ nCurCmd++ ], RTL_TEXTENCODING_ASCII_US );
aLangInfo.mnLangNum = static_cast< sal_uInt16 >( rArgs[ nCurCmd++ ].ToInt32() );
@@ -209,11 +209,11 @@ int BmpApp::Start( const ::std::vector< String >& rArgs )
ShowUsage();
cExitCode = EXIT_COMMONERROR;
}
-
+
if( ( EXIT_NOERROR == cExitCode ) && aOutputFileName.Len() && aOutName.Len() )
{
- SvFileStream aOStm( aOutputFileName, STREAM_WRITE | STREAM_TRUNC );
- ByteString aStr( "Successfully generated ImageList(s) in: " );
+ SvFileStream aOStm( aOutputFileName, STREAM_WRITE | STREAM_TRUNC );
+ ByteString aStr( "Successfully generated ImageList(s) in: " );
aOStm.WriteLine( aStr.Append( ByteString( aOutName, RTL_TEXTENCODING_UTF8 ) ) );
aOStm.Close();
@@ -234,7 +234,7 @@ int main( int nArgCount, char* ppArgs[] )
strcpy( aDisplayVar, "DISPLAY=" );
putenv( aDisplayVar );
#endif
-
+
::std::vector< String > aArgs;
BmpApp aBmpApp;
@@ -242,7 +242,7 @@ int main( int nArgCount, char* ppArgs[] )
for( int i = 1; i < nArgCount; i++ )
aArgs.push_back( String( ppArgs[ i ], RTL_TEXTENCODING_ASCII_US ) );
-
+
return aBmpApp.Start( aArgs );
}
diff --git a/svtools/bmpmaker/bmp.hrc b/svtools/bmpmaker/bmp.hrc
index 528b3e4462d9..caf2ad556595 100644
--- a/svtools/bmpmaker/bmp.hrc
+++ b/svtools/bmpmaker/bmp.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,20 +25,20 @@
*
************************************************************************/
-#define DLG_PATH 256
+#define DLG_PATH 256
-#define GRP_PATH 1
-#define FT_SRS 1
-#define FT_RES 2
-#define FT_OUT 3
-#define EDT_SRS 1
-#define EDT_RES 2
-#define EDT_OUT 3
-#define BTN_SRS 1
-#define BTN_RES 2
-#define BTN_OUT 3
-#define BTN_OK 1
-#define BTN_CANCEL 1
+#define GRP_PATH 1
+#define FT_SRS 1
+#define FT_RES 2
+#define FT_OUT 3
+#define EDT_SRS 1
+#define EDT_RES 2
+#define EDT_OUT 3
+#define BTN_SRS 1
+#define BTN_RES 2
+#define BTN_OUT 3
+#define BTN_OK 1
+#define BTN_CANCEL 1
-#define GRP_LANG 2
-#define LB_LANG 1
+#define GRP_LANG 2
+#define LB_LANG 1
diff --git a/svtools/bmpmaker/bmp.src b/svtools/bmpmaker/bmp.src
index 7431d2e335a4..40ceed6a8989 100644
--- a/svtools/bmpmaker/bmp.src
+++ b/svtools/bmpmaker/bmp.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/bmpmaker/bmpcore.cxx b/svtools/bmpmaker/bmpcore.cxx
index 2a23cab8fa4a..0e4d6e684f17 100644
--- a/svtools/bmpmaker/bmpcore.cxx
+++ b/svtools/bmpmaker/bmpcore.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,10 +95,10 @@ void BmpCreator::ImplCreate( const ::std::vector< DirEntry >& rInDirs,
if( rInDirs.size() )
{
ByteString aLine;
- String aInfo, aPrefix, aName( rName ), aString;
- SvFileStream aOutStream;
- BitmapEx aTotalBmpEx;
- DirEntry aOutFile( rOut );
+ String aInfo, aPrefix, aName( rName ), aString;
+ SvFileStream aOutStream;
+ BitmapEx aTotalBmpEx;
+ DirEntry aOutFile( rOut );
::std::vector< DirEntry > aInFiles( rInDirs );
::std::vector< String > aNameVector;
sal_uInt32 i;
@@ -328,9 +328,9 @@ void BmpCreator::Create( const String& rSRSName,
const String& rOutName,
const LangInfo& rLang )
{
- DirEntry aFileName( ImplGetSystemFileName( rSRSName ) ), aOutDir( ImplGetSystemFileName( rOutName ) );
+ DirEntry aFileName( ImplGetSystemFileName( rSRSName ) ), aOutDir( ImplGetSystemFileName( rOutName ) );
::std::vector< DirEntry > aInDirs;
- BOOL bDone = FALSE;
+ BOOL bDone = FALSE;
aFileName.ToAbs();
aOutDir.ToAbs();
@@ -360,9 +360,9 @@ void BmpCreator::Create( const String& rSRSName,
Message( String( RTL_CONSTASCII_USTRINGPARAM( "ERROR: Kein SRS file!" ) ), EXIT_NOSRSFILE );
else
{
- String aText;
- ByteString aByteText;
- BOOL bLangDep = FALSE;
+ String aText;
+ ByteString aByteText;
+ BOOL bLangDep = FALSE;
do
{
@@ -405,7 +405,7 @@ void BmpCreator::Create( const String& rSRSName,
bDone = TRUE;
ImplCreate( aInDirs, aOutDir, aName, rLang );
}
-/* else if( ( rLang.mnLangNum != 49 ) && !bLangDep )
+/* else if( ( rLang.mnLangNum != 49 ) && !bLangDep )
{
Message( String( RTL_CONSTASCII_USTRINGPARAM( "INFO: ImageList is not language dependent! Nothing to do for this language." ) ) );
bDone = TRUE;
diff --git a/svtools/bmpmaker/bmpcore.hxx b/svtools/bmpmaker/bmpcore.hxx
index b5d0c2919c75..ca0b76f1e17b 100644
--- a/svtools/bmpmaker/bmpcore.hxx
+++ b/svtools/bmpmaker/bmpcore.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,18 +35,18 @@
#include <vector>
// --------------
-// - Exit codes -
+// - Exit codes -
// --------------
-#define EXIT_NOERROR 0
-#define EXIT_MISSING_BITMAP 1
-#define EXIT_NOSRSFILE 2
-#define EXIT_NOIMGLIST 3
-#define EXIT_DIMENSIONERROR 4
-#define EXIT_IOERROR 5
-#define EXIT_COMMONERROR 6
-#define EXIT_MISSING_RESOURCE 7
-#define EXIT_COLORDEPTHERROR 8
+#define EXIT_NOERROR 0
+#define EXIT_MISSING_BITMAP 1
+#define EXIT_NOSRSFILE 2
+#define EXIT_NOIMGLIST 3
+#define EXIT_DIMENSIONERROR 4
+#define EXIT_IOERROR 5
+#define EXIT_COMMONERROR 6
+#define EXIT_MISSING_RESOURCE 7
+#define EXIT_COLORDEPTHERROR 8
#define EXIT_MISSING_SOLARSRC_ENV 9
// ------------
@@ -56,7 +56,7 @@
struct LangInfo
{
char maLangDir[ 257 ];
- USHORT mnLangNum;
+ USHORT mnLangNum;
};
// --------------
@@ -67,17 +67,17 @@ class BmpCreator
{
private:
- Bitmap aOutBmp;
- Size aOneSize;
- Size aTotSize;
- Point aPos;
- SvFileStream* pSRS;
- ULONG nTotCount;
- USHORT nPos;
-
- void ImplCreate( const ::std::vector< DirEntry >& rInDirs,
- const DirEntry& rOut,
- const String& rName,
+ Bitmap aOutBmp;
+ Size aOneSize;
+ Size aTotSize;
+ Point aPos;
+ SvFileStream* pSRS;
+ ULONG nTotCount;
+ USHORT nPos;
+
+ void ImplCreate( const ::std::vector< DirEntry >& rInDirs,
+ const DirEntry& rOut,
+ const String& rName,
const LangInfo& rLang );
protected:
@@ -89,9 +89,9 @@ public:
BmpCreator();
virtual ~BmpCreator();
- void Create( const String& rSRSName,
+ void Create( const String& rSRSName,
const ::std::vector< String >& rInDirs,
- const String& rOutName,
+ const String& rOutName,
const LangInfo& rLang );
};
diff --git a/svtools/bmpmaker/bmpsum.cxx b/svtools/bmpmaker/bmpsum.cxx
index 26245b97affb..467d7290cbb6 100644
--- a/svtools/bmpmaker/bmpsum.cxx
+++ b/svtools/bmpmaker/bmpsum.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,10 +59,10 @@ private:
sal_uInt32 cExitCode;
- BOOL GetCommandOption( const ::std::vector< String >& rArgs, const String& rSwitch, String& rSwitchParam );
- BOOL GetCommandOptions( const ::std::vector< String >& rArgs, const String& rSwitch, ::std::vector< String >& rSwitchParams );
+ BOOL GetCommandOption( const ::std::vector< String >& rArgs, const String& rSwitch, String& rSwitchParam );
+ BOOL GetCommandOptions( const ::std::vector< String >& rArgs, const String& rSwitch, ::std::vector< String >& rSwitchParams );
- void SetExitCode( BYTE cExit )
+ void SetExitCode( BYTE cExit )
{
if( ( EXIT_NOERROR == cExitCode ) || ( cExit != EXIT_NOERROR ) )
cExitCode = cExit;
@@ -103,7 +103,7 @@ BOOL BmpSum::GetCommandOption( const ::std::vector< String >& rArgs, const Strin
for( int i = 0, nCount = rArgs.size(); ( i < nCount ) && !bRet; i++ )
{
- String aTestStr( '-' );
+ String aTestStr( '-' );
for( int n = 0; ( n < 2 ) && !bRet; n++ )
{
@@ -135,7 +135,7 @@ BOOL BmpSum::GetCommandOptions( const ::std::vector< String >& rArgs, const Stri
for( int i = 0, nCount = rArgs.size(); ( i < nCount ); i++ )
{
- String aTestStr( '-' );
+ String aTestStr( '-' );
for( int n = 0; ( n < 2 ) && !bRet; n++ )
{
diff --git a/svtools/bmpmaker/g2g.cxx b/svtools/bmpmaker/g2g.cxx
index 34b37ab43211..331843281d97 100644
--- a/svtools/bmpmaker/g2g.cxx
+++ b/svtools/bmpmaker/g2g.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,11 +57,11 @@ class G2GApp
{
private:
- BYTE cExitCode;
+ BYTE cExitCode;
void ShowUsage();
- BOOL GetCommandOption( const ::std::vector< String >& rArgs, const String& rSwitch, String& rParam );
- void SetExitCode( BYTE cExit ) { if( ( EXIT_NOERROR == cExitCode ) || ( cExit != EXIT_NOERROR ) ) cExitCode = cExit; }
+ BOOL GetCommandOption( const ::std::vector< String >& rArgs, const String& rSwitch, String& rParam );
+ void SetExitCode( BYTE cExit ) { if( ( EXIT_NOERROR == cExitCode ) || ( cExit != EXIT_NOERROR ) ) cExitCode = cExit; }
virtual void Message( const String& rText, BYTE cExitCode = EXIT_NOERROR );
@@ -69,7 +69,7 @@ public:
G2GApp();
virtual ~G2GApp();
-
+
int Start( const ::std::vector< String >& rArgs );
};
@@ -93,7 +93,7 @@ BOOL G2GApp::GetCommandOption( const ::std::vector< String >& rArgs, const Strin
for( int i = 0, nCount = rArgs.size(); ( i < nCount ) && !bRet; i++ )
{
- String aTestStr( '-' );
+ String aTestStr( '-' );
for( int n = 0; ( n < 2 ) && !bRet; n++ )
{
@@ -132,7 +132,7 @@ void G2GApp::Message( const String& rText, BYTE nExitCode )
// -----------------------------------------------------------------------------
void G2GApp::ShowUsage()
-{
+{
Message( String( RTL_CONSTASCII_USTRINGPARAM( "Usage:" ) ) );
Message( String( RTL_CONSTASCII_USTRINGPARAM( " g2g inputfile outputfile -format exportformat -filterpath path [ -# RRGGBB ]" ) ) );
Message( String( RTL_CONSTASCII_USTRINGPARAM( "Options:" ) ) );
@@ -148,16 +148,16 @@ void G2GApp::ShowUsage()
int G2GApp::Start( const ::std::vector< String >& rArgs )
{
- int nCmdCount = rArgs.size();
- USHORT nCurCmd = 0;
+ int nCmdCount = rArgs.size();
+ USHORT nCurCmd = 0;
cExitCode = EXIT_NOERROR;
if( nCmdCount >= 6 )
{
GraphicFilter aFilter( sal_False );
- String aInFile, aOutFile, aFilterStr, aFilterPath, aTransColStr;
-
+ String aInFile, aOutFile, aFilterStr, aFilterPath, aTransColStr;
+
aInFile = rArgs[ nCurCmd++ ];
aOutFile = rArgs[ nCurCmd++ ];
GetCommandOption( rArgs, String( RTL_CONSTASCII_USTRINGPARAM( "format" ) ), aFilterStr );
@@ -181,7 +181,7 @@ int G2GApp::Start( const ::std::vector< String >& rArgs )
const GfxLink aGfxLink;
aGraphic.SetLink( aGfxLink );
-
+
if( aFilter.ImportGraphic( aGraphic, aInFile, aInStm ) == GRFILTER_OK )
{
SvFileStream aOutStm( aOutFile, STREAM_WRITE | STREAM_TRUNC );
@@ -226,14 +226,14 @@ int G2GApp::Start( const ::std::vector< String >& rArgs )
else
Message( String( RTL_CONSTASCII_USTRINGPARAM( "invalid file(s)" ) ), EXIT_INVALID_FILE );
}
- }
+ }
}
else
ShowUsage();
return cExitCode;
}
-
+
// --------
// - Main -
// --------
@@ -247,7 +247,7 @@ int main( int nArgCount, char* ppArgs[] )
for( int i = 1; i < nArgCount; i++ )
aArgs.push_back( String( ppArgs[ i ], RTL_TEXTENCODING_ASCII_US ) );
-
+
return aG2GApp.Start( aArgs );
}
diff --git a/svtools/inc/DocumentInfoPreview.hxx b/svtools/inc/DocumentInfoPreview.hxx
index b42cbfcf9756..2f2cf73e34a5 100644
--- a/svtools/inc/DocumentInfoPreview.hxx
+++ b/svtools/inc/DocumentInfoPreview.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,20 +40,20 @@ namespace svtools
{
class SVT_DLLPUBLIC ODocumentInfoPreview : public Window
{
- SvtExtendedMultiLineEdit_Impl* m_pEditWin;
- SvtDocInfoTable_Impl* m_pInfoTable;
- com::sun::star::lang::Locale m_aLocale;
+ SvtExtendedMultiLineEdit_Impl* m_pEditWin;
+ SvtDocInfoTable_Impl* m_pInfoTable;
+ com::sun::star::lang::Locale m_aLocale;
public:
ODocumentInfoPreview( Window* pParent ,WinBits _nBits);
virtual ~ODocumentInfoPreview();
virtual void Resize();
- void Clear();
- void fill(const ::com::sun::star::uno::Reference<
+ void Clear();
+ void fill(const ::com::sun::star::uno::Reference<
::com::sun::star::document::XDocumentProperties>& i_xDocProps
,const String& i_rURL);
- void InsertEntry( const String& rTitle, const String& rValue );
+ void InsertEntry( const String& rTitle, const String& rValue );
void SetAutoScroll(BOOL _bAutoScroll);
};
}
diff --git a/svtools/inc/QueryFolderName.hxx b/svtools/inc/QueryFolderName.hxx
index b9762717d3cd..881e773bab67 100644
--- a/svtools/inc/QueryFolderName.hxx
+++ b/svtools/inc/QueryFolderName.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,21 +43,21 @@ namespace svtools {
class QueryFolderNameDialog : public ModalDialog
{
private:
- FixedText aNameText;
- Edit aNameEdit;
- FixedLine aNameLine;
- OKButton aOKBtn;
- CancelButton aCancelBtn;
+ FixedText aNameText;
+ Edit aNameEdit;
+ FixedLine aNameLine;
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
DECL_LINK( OKHdl, Button * );
DECL_LINK( NameHdl, Edit * );
public:
- QueryFolderNameDialog( Window* _pParent,
+ QueryFolderNameDialog( Window* _pParent,
const String& rTitle,
const String& rDefaultText,
String* pGroupName = NULL );
- String GetName() const { return aNameEdit.GetText(); }
+ String GetName() const { return aNameEdit.GetText(); }
};
}
diff --git a/svtools/inc/acceleratorexecute.hxx b/svtools/inc/acceleratorexecute.hxx
index 6bea581e5d78..40f8ca0c1337 100644
--- a/svtools/inc/acceleratorexecute.hxx
+++ b/svtools/inc/acceleratorexecute.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,14 +73,14 @@ namespace svt
struct TMutexInit
{
::osl::Mutex m_aLock;
-};
-
+};
+
//===============================================
/**
@descr implements a helper, which can be used to
convert vcl key codes into awt key codes ...
and reverse.
-
+
Further such key code can be triggered.
Doing so different accelerator
configurations are merged together; a suitable
diff --git a/svtools/inc/addresstemplate.hxx b/svtools/inc/addresstemplate.hxx
index 5fe7aaa57681..b8532deba1a9 100644
--- a/svtools/inc/addresstemplate.hxx
+++ b/svtools/inc/addresstemplate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,23 +56,23 @@ namespace svt
{
protected:
// Controls
- FixedLine m_aDatasourceFrame;
- FixedText m_aDatasourceLabel;
- ComboBox m_aDatasource;
- PushButton m_aAdministrateDatasources;
- FixedText m_aTableLabel;
- ComboBox m_aTable;
+ FixedLine m_aDatasourceFrame;
+ FixedText m_aDatasourceLabel;
+ ComboBox m_aDatasource;
+ PushButton m_aAdministrateDatasources;
+ FixedText m_aTableLabel;
+ ComboBox m_aTable;
- FixedText m_aFieldsTitle;
- Window m_aFieldsFrame;
+ FixedText m_aFieldsTitle;
+ Window m_aFieldsFrame;
- ScrollBar m_aFieldScroller;
- OKButton m_aOK;
- CancelButton m_aCancel;
- HelpButton m_aHelp;
+ ScrollBar m_aFieldScroller;
+ OKButton m_aOK;
+ CancelButton m_aCancel;
+ HelpButton m_aHelp;
// string to display for "no selection"
- const String m_sNoFieldSelection;
+ const String m_sNoFieldSelection;
/// the DatabaseContext for selecting data sources
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >
@@ -120,28 +120,28 @@ namespace svt
~AddressBookSourceDialog();
// to be used if the object was constructed for editing a field mapping only
- void getFieldMapping(
+ void getFieldMapping(
::com::sun::star::uno::Sequence< ::com::sun::star::util::AliasProgrammaticPair >& _rMapping) const;
protected:
- void implConstruct();
+ void implConstruct();
// Window overridables
- virtual long PreNotify( NotifyEvent& _rNEvt );
+ virtual long PreNotify( NotifyEvent& _rNEvt );
// implementations
- void implScrollFields(sal_Int32 _nPos, sal_Bool _bAdjustFocus, sal_Bool _bAdjustScrollbar);
- void implSelectField(ListBox* _pBox, const String& _rText);
+ void implScrollFields(sal_Int32 _nPos, sal_Bool _bAdjustFocus, sal_Bool _bAdjustScrollbar);
+ void implSelectField(ListBox* _pBox, const String& _rText);
- void initalizeListBox(ListBox* _pList);
- void resetTables();
- void resetFields();
+ void initalizeListBox(ListBox* _pList);
+ void resetTables();
+ void resetFields();
// fill in the data sources listbox
- void initializeDatasources();
+ void initializeDatasources();
// initialize the dialog from the configuration data
- void loadConfiguration();
+ void loadConfiguration();
DECL_LINK(OnFieldScroll, ScrollBar*);
DECL_LINK(OnFieldSelect, ListBox*);
@@ -155,7 +155,7 @@ namespace svt
// .......................................................................
-} // namespace svt
+} // namespace svt
// .......................................................................
#endif // _SVT_ADDRESSTEMPLATE_HXX_
diff --git a/svtools/inc/apearcfg.hxx b/svtools/inc/apearcfg.hxx
index f9f588abb9a9..b0e6ff2aad0b 100644
--- a/svtools/inc/apearcfg.hxx
+++ b/svtools/inc/apearcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,20 +60,20 @@ typedef enum { // MUST match the order chosen in ListBox LB_DRAG_MODE in optgdlg
class SVT_DLLPUBLIC SvtTabAppearanceCfg : public utl::ConfigItem
{
- short nLookNFeel ;
- short nDragMode ;
- short nScaleFactor ;
- short nSnapMode ;
+ short nLookNFeel ;
+ short nDragMode ;
+ short nScaleFactor ;
+ short nSnapMode ;
short nMiddleMouse;
#if defined( UNX ) || defined ( FS_PRIV_DEBUG )
- short nAAMinPixelHeight ;
+ short nAAMinPixelHeight ;
#endif
BOOL bMenuMouseFollow ;
BOOL bSingleLineTabCtrl ;
BOOL bColoredTabCtrl ;
#if defined( UNX ) || defined ( FS_PRIV_DEBUG )
- BOOL bFontAntialiasing ;
+ BOOL bFontAntialiasing ;
#endif
static sal_Bool bInitialized ;
@@ -87,17 +87,17 @@ public:
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& _rPropertyNames);
- USHORT GetLookNFeel () const { return nLookNFeel; }
- void SetLookNFeel ( USHORT nSet );
+ USHORT GetLookNFeel () const { return nLookNFeel; }
+ void SetLookNFeel ( USHORT nSet );
- USHORT GetDragMode () const { return nDragMode; }
- void SetDragMode ( USHORT nSet );
+ USHORT GetDragMode () const { return nDragMode; }
+ void SetDragMode ( USHORT nSet );
- USHORT GetScaleFactor () const { return nScaleFactor; }
- void SetScaleFactor ( USHORT nSet );
+ USHORT GetScaleFactor () const { return nScaleFactor; }
+ void SetScaleFactor ( USHORT nSet );
- USHORT GetSnapMode () const { return nSnapMode; }
- void SetSnapMode ( USHORT nSet );
+ USHORT GetSnapMode () const { return nSnapMode; }
+ void SetSnapMode ( USHORT nSet );
USHORT GetMiddleMouseButton () const { return nMiddleMouse; }
void SetMiddleMouseButton ( USHORT nSet );
@@ -105,24 +105,24 @@ public:
void SetApplicationDefaults ( Application* pApp );
void SetMenuMouseFollow(BOOL bSet) {bMenuMouseFollow = bSet; SetModified();}
- BOOL IsMenuMouseFollow() const{return bMenuMouseFollow;}
+ BOOL IsMenuMouseFollow() const{return bMenuMouseFollow;}
void SetSingleLineTabCtrl(BOOL bSet) {bSingleLineTabCtrl = bSet; SetModified();}
BOOL IsSingleLineTabCtrl()const {return bSingleLineTabCtrl;}
#if defined( UNX ) || defined ( FS_PRIV_DEBUG )
- void SetFontAntiAliasing( BOOL bSet ) { bFontAntialiasing = bSet; SetModified(); }
- BOOL IsFontAntiAliasing() const { return bFontAntialiasing; }
+ void SetFontAntiAliasing( BOOL bSet ) { bFontAntialiasing = bSet; SetModified(); }
+ BOOL IsFontAntiAliasing() const { return bFontAntialiasing; }
- USHORT GetFontAntialiasingMinPixelHeight( ) const { return nAAMinPixelHeight; }
- void SetFontAntialiasingMinPixelHeight( USHORT _nMinHeight ) { nAAMinPixelHeight = _nMinHeight; SetModified(); }
+ USHORT GetFontAntialiasingMinPixelHeight( ) const { return nAAMinPixelHeight; }
+ void SetFontAntialiasingMinPixelHeight( USHORT _nMinHeight ) { nAAMinPixelHeight = _nMinHeight; SetModified(); }
#endif
void SetColoredTabCtrl(BOOL bSet) {bColoredTabCtrl = bSet; SetModified();};
BOOL IsColoredTabCtrl()const {return bColoredTabCtrl;}
static sal_Bool IsInitialized() { return bInitialized; }
- static void SetInitialized() { bInitialized = sal_True; }
+ static void SetInitialized() { bInitialized = sal_True; }
};
#endif // _OFA_APEARCFG_HXX
diff --git a/svtools/inc/asynclink.hxx b/svtools/inc/asynclink.hxx
index 6758222fe552..c9842b8c1f89 100644
--- a/svtools/inc/asynclink.hxx
+++ b/svtools/inc/asynclink.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/calendar.hxx b/svtools/inc/calendar.hxx
index feb4a3df58b1..674b4efc2b0a 100644
--- a/svtools/inc/calendar.hxx
+++ b/svtools/inc/calendar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,20 +67,20 @@ zwischen den Monaten wechseln.
WinBits
-WB_BORDER Um das Fenster wird ein Border gezeichnet.
-WB_TABSTOP Tastatursteuerung ist moeglich. Der Focus wird
+WB_BORDER Um das Fenster wird ein Border gezeichnet.
+WB_TABSTOP Tastatursteuerung ist moeglich. Der Focus wird
sich geholt, wenn mit der Maus in das
Control geklickt wird.
-WB_QUICKHELPSHOWSDATEINFO DateInfo auch bei QuickInfo als BalloonHelp zeigen
-WB_BOLDTEXT Formatiert wird nach fetten Texten und
+WB_QUICKHELPSHOWSDATEINFO DateInfo auch bei QuickInfo als BalloonHelp zeigen
+WB_BOLDTEXT Formatiert wird nach fetten Texten und
DIB_BOLD wird bei AddDateInfo() ausgewertet
-WB_FRAMEINFO Formatiert wird so, das Frame-Info angezeigt
+WB_FRAMEINFO Formatiert wird so, das Frame-Info angezeigt
werden kann und die FrameColor bei AddDateInfo()
ausgewertet wird
-WB_RANGESELECT Es koennen mehrere Tage selektiert werden, die
+WB_RANGESELECT Es koennen mehrere Tage selektiert werden, die
jedoch alle zusammenhaengend sein muessen
-WB_MULTISELECT Es koennen mehrere Tage selektiert werden
-WB_WEEKNUMBER Es werden die Wochentage mit angezeigt
+WB_MULTISELECT Es koennen mehrere Tage selektiert werden
+WB_WEEKNUMBER Es werden die Wochentage mit angezeigt
--------------------------------------------------------------------------
@@ -151,20 +151,20 @@ oder durch Beendigung einer Selektion ausgeloest.
// - Calendar-Types -
// ------------------
-#define WB_QUICKHELPSHOWSDATEINFO ((WinBits)0x00004000)
-#define WB_BOLDTEXT ((WinBits)0x00008000)
-#define WB_FRAMEINFO ((WinBits)0x00010000)
-#define WB_WEEKNUMBER ((WinBits)0x00020000)
+#define WB_QUICKHELPSHOWSDATEINFO ((WinBits)0x00004000)
+#define WB_BOLDTEXT ((WinBits)0x00008000)
+#define WB_FRAMEINFO ((WinBits)0x00010000)
+#define WB_WEEKNUMBER ((WinBits)0x00020000)
// Muss mit den WinBits beim TabBar uebereinstimmen oder mal
// nach \vcl\inc\wintypes.hxx verlagert werden
#ifndef WB_RANGESELECT
-#define WB_RANGESELECT ((WinBits)0x00200000)
+#define WB_RANGESELECT ((WinBits)0x00200000)
#endif
#ifndef WB_MULTISELECT
-#define WB_MULTISELECT ((WinBits)0x00400000)
+#define WB_MULTISELECT ((WinBits)0x00400000)
#endif
-#define DIB_BOLD ((USHORT)0x0001)
+#define DIB_BOLD ((USHORT)0x0001)
// ------------
// - Calendar -
@@ -173,50 +173,50 @@ oder durch Beendigung einer Selektion ausgeloest.
class SVT_DLLPUBLIC Calendar : public Control
{
private:
- ImplDateTable* mpDateTable;
- Table* mpSelectTable;
- Table* mpOldSelectTable;
- Table* mpRestoreSelectTable;
- XubString* mpDayText[31];
- XubString maDayText;
- XubString maWeekText;
+ ImplDateTable* mpDateTable;
+ Table* mpSelectTable;
+ Table* mpOldSelectTable;
+ Table* mpRestoreSelectTable;
+ XubString* mpDayText[31];
+ XubString maDayText;
+ XubString maWeekText;
CalendarWrapper maCalendarWrapper;
- Rectangle maPrevRect;
- Rectangle maNextRect;
- String maDayOfWeekText;
- sal_Int32 mnDayOfWeekAry[7];
- Date maOldFormatFirstDate;
- Date maOldFormatLastDate;
- Date maFirstDate;
- Date maOldFirstDate;
- Date maCurDate;
- Date maOldCurDate;
- Date maAnchorDate;
- Date maDropDate;
- Color maSelColor;
- Color maOtherColor;
- Color* mpStandardColor;
- Color* mpSaturdayColor;
- Color* mpSundayColor;
- ULONG mnDayCount;
- long mnDaysOffX;
- long mnWeekDayOffY;
- long mnDaysOffY;
- long mnMonthHeight;
- long mnMonthWidth;
- long mnMonthPerLine;
- long mnLines;
- long mnDayWidth;
- long mnDayHeight;
- long mnWeekWidth;
- long mnDummy2;
- long mnDummy3;
- long mnDummy4;
- WinBits mnWinStyle;
- USHORT mnFirstYear;
- USHORT mnLastYear;
- USHORT mnRequestYear;
- BOOL mbCalc:1,
+ Rectangle maPrevRect;
+ Rectangle maNextRect;
+ String maDayOfWeekText;
+ sal_Int32 mnDayOfWeekAry[7];
+ Date maOldFormatFirstDate;
+ Date maOldFormatLastDate;
+ Date maFirstDate;
+ Date maOldFirstDate;
+ Date maCurDate;
+ Date maOldCurDate;
+ Date maAnchorDate;
+ Date maDropDate;
+ Color maSelColor;
+ Color maOtherColor;
+ Color* mpStandardColor;
+ Color* mpSaturdayColor;
+ Color* mpSundayColor;
+ ULONG mnDayCount;
+ long mnDaysOffX;
+ long mnWeekDayOffY;
+ long mnDaysOffY;
+ long mnMonthHeight;
+ long mnMonthWidth;
+ long mnMonthPerLine;
+ long mnLines;
+ long mnDayWidth;
+ long mnDayHeight;
+ long mnWeekWidth;
+ long mnDummy2;
+ long mnDummy3;
+ long mnDummy4;
+ WinBits mnWinStyle;
+ USHORT mnFirstYear;
+ USHORT mnLastYear;
+ USHORT mnRequestYear;
+ BOOL mbCalc:1,
mbFormat:1,
mbDrag:1,
mbSelection:1,
@@ -234,47 +234,47 @@ private:
mbSelLeft:1,
mbAllSel:1,
mbDropPos:1;
- Link maSelectionChangingHdl;
- Link maDateRangeChangedHdl;
- Link maRequestDateInfoHdl;
- Link maDoubleClickHdl;
- Link maSelectHdl;
- Timer maDragScrollTimer;
- USHORT mnDragScrollHitTest;
+ Link maSelectionChangingHdl;
+ Link maDateRangeChangedHdl;
+ Link maRequestDateInfoHdl;
+ Link maDoubleClickHdl;
+ Link maSelectHdl;
+ Timer maDragScrollTimer;
+ USHORT mnDragScrollHitTest;
#ifdef _SV_CALENDAR_CXX
using Control::ImplInitSettings;
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle );
- SVT_DLLPRIVATE void ImplInitSettings();
- SVT_DLLPRIVATE void ImplGetWeekFont( Font& rFont ) const;
- SVT_DLLPRIVATE void ImplFormat();
+ SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle );
+ SVT_DLLPRIVATE void ImplInitSettings();
+ SVT_DLLPRIVATE void ImplGetWeekFont( Font& rFont ) const;
+ SVT_DLLPRIVATE void ImplFormat();
using Window::ImplHitTest;
- SVT_DLLPRIVATE USHORT ImplHitTest( const Point& rPos, Date& rDate ) const;
- SVT_DLLPRIVATE void ImplDrawSpin( BOOL bDrawPrev = TRUE, BOOL bDrawNext = TRUE );
- SVT_DLLPRIVATE void ImplDrawDate( long nX, long nY,
+ SVT_DLLPRIVATE USHORT ImplHitTest( const Point& rPos, Date& rDate ) const;
+ SVT_DLLPRIVATE void ImplDrawSpin( BOOL bDrawPrev = TRUE, BOOL bDrawNext = TRUE );
+ SVT_DLLPRIVATE void ImplDrawDate( long nX, long nY,
USHORT nDay, USHORT nMonth, USHORT nYear,
DayOfWeek eDayOfWeek,
BOOL bBack = TRUE, BOOL bOther = FALSE,
ULONG nToday = 0 );
- SVT_DLLPRIVATE void ImplDraw( BOOL bPaint = FALSE );
- SVT_DLLPRIVATE void ImplUpdateDate( const Date& rDate );
- SVT_DLLPRIVATE void ImplUpdateSelection( Table* pOld );
- SVT_DLLPRIVATE void ImplMouseSelect( const Date& rDate, USHORT nHitTest,
+ SVT_DLLPRIVATE void ImplDraw( BOOL bPaint = FALSE );
+ SVT_DLLPRIVATE void ImplUpdateDate( const Date& rDate );
+ SVT_DLLPRIVATE void ImplUpdateSelection( Table* pOld );
+ SVT_DLLPRIVATE void ImplMouseSelect( const Date& rDate, USHORT nHitTest,
BOOL bMove, BOOL bExpand, BOOL bExtended );
- SVT_DLLPRIVATE void ImplUpdate( BOOL bCalcNew = FALSE );
+ SVT_DLLPRIVATE void ImplUpdate( BOOL bCalcNew = FALSE );
using Window::ImplScroll;
- SVT_DLLPRIVATE void ImplScroll( BOOL bPrev );
- SVT_DLLPRIVATE void ImplInvertDropPos();
- SVT_DLLPRIVATE void ImplShowMenu( const Point& rPos, const Date& rDate );
- SVT_DLLPRIVATE void ImplTracking( const Point& rPos, BOOL bRepeat );
- SVT_DLLPRIVATE void ImplEndTracking( BOOL bCancel );
+ SVT_DLLPRIVATE void ImplScroll( BOOL bPrev );
+ SVT_DLLPRIVATE void ImplInvertDropPos();
+ SVT_DLLPRIVATE void ImplShowMenu( const Point& rPos, const Date& rDate );
+ SVT_DLLPRIVATE void ImplTracking( const Point& rPos, BOOL bRepeat );
+ SVT_DLLPRIVATE void ImplEndTracking( BOOL bCancel );
SVT_DLLPRIVATE DayOfWeek ImplGetWeekStart() const;
#endif
protected:
- BOOL ShowDropPos( const Point& rPos, Date& rDate );
- void HideDropPos();
+ BOOL ShowDropPos( const Point& rPos, Date& rDate );
+ void HideDropPos();
DECL_STATIC_LINK( Calendar, ScrollHdl, Timer *);
@@ -283,25 +283,25 @@ public:
Calendar( Window* pParent, const ResId& rResId );
~Calendar();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rMEvt );
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Resize();
- virtual void GetFocus();
- virtual void LoseFocus();
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void Command( const CommandEvent& rCEvt );
- virtual void StateChanged( StateChangedType nStateChange );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
-
- virtual void SelectionChanging();
- virtual void DateRangeChanged();
- virtual void RequestDateInfo();
- virtual void DoubleClick();
- virtual void Select();
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rMEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Resize();
+ virtual void GetFocus();
+ virtual void LoseFocus();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ virtual void SelectionChanging();
+ virtual void DateRangeChanged();
+ virtual void RequestDateInfo();
+ virtual void DoubleClick();
+ virtual void Select();
const CalendarWrapper& GetCalendarWrapper() const { return maCalendarWrapper; }
@@ -311,68 +311,68 @@ public:
/// Set how many days of a week must reside in the first week of a year.
void SetMinimumNumberOfDaysInWeek( sal_Int16 nDays );
- void SelectDate( const Date& rDate, BOOL bSelect = TRUE );
- void SelectDateRange( const Date& rStartDate, const Date& rEndDate,
+ void SelectDate( const Date& rDate, BOOL bSelect = TRUE );
+ void SelectDateRange( const Date& rStartDate, const Date& rEndDate,
BOOL bSelect = TRUE );
- void SetNoSelection();
- BOOL IsDateSelected( const Date& rDate ) const;
- ULONG GetSelectDateCount() const;
- Date GetSelectDate( ULONG nIndex = 0 ) const;
- void EnableCallEverySelect( BOOL bEvery = TRUE ) { mbAllSel = bEvery; }
- BOOL IsCallEverySelectEnabled() const { return mbAllSel; }
-
- USHORT GetRequestYear() const { return mnRequestYear; }
- void SetCurDate( const Date& rNewDate );
- Date GetCurDate() const { return maCurDate; }
- void SetFirstDate( const Date& rNewFirstDate );
- Date GetFirstDate() const { return maFirstDate; }
- Date GetLastDate() const { return GetFirstDate() + mnDayCount; }
- ULONG GetDayCount() const { return mnDayCount; }
- Date GetFirstMonth() const;
- Date GetLastMonth() const;
- USHORT GetMonthCount() const;
- BOOL GetDate( const Point& rPos, Date& rDate ) const;
- Rectangle GetDateRect( const Date& rDate ) const;
- BOOL GetDropDate( Date& rDate ) const;
-
- long GetCurMonthPerLine() const { return mnMonthPerLine; }
- long GetCurLines() const { return mnLines; }
-
- void SetStandardColor( const Color& rColor );
- const Color& GetStandardColor() const;
- void SetSaturdayColor( const Color& rColor );
- const Color& GetSaturdayColor() const;
- void SetSundayColor( const Color& rColor );
- const Color& GetSundayColor() const;
-
- void AddDateInfo( const Date& rDate, const XubString& rText,
+ void SetNoSelection();
+ BOOL IsDateSelected( const Date& rDate ) const;
+ ULONG GetSelectDateCount() const;
+ Date GetSelectDate( ULONG nIndex = 0 ) const;
+ void EnableCallEverySelect( BOOL bEvery = TRUE ) { mbAllSel = bEvery; }
+ BOOL IsCallEverySelectEnabled() const { return mbAllSel; }
+
+ USHORT GetRequestYear() const { return mnRequestYear; }
+ void SetCurDate( const Date& rNewDate );
+ Date GetCurDate() const { return maCurDate; }
+ void SetFirstDate( const Date& rNewFirstDate );
+ Date GetFirstDate() const { return maFirstDate; }
+ Date GetLastDate() const { return GetFirstDate() + mnDayCount; }
+ ULONG GetDayCount() const { return mnDayCount; }
+ Date GetFirstMonth() const;
+ Date GetLastMonth() const;
+ USHORT GetMonthCount() const;
+ BOOL GetDate( const Point& rPos, Date& rDate ) const;
+ Rectangle GetDateRect( const Date& rDate ) const;
+ BOOL GetDropDate( Date& rDate ) const;
+
+ long GetCurMonthPerLine() const { return mnMonthPerLine; }
+ long GetCurLines() const { return mnLines; }
+
+ void SetStandardColor( const Color& rColor );
+ const Color& GetStandardColor() const;
+ void SetSaturdayColor( const Color& rColor );
+ const Color& GetSaturdayColor() const;
+ void SetSundayColor( const Color& rColor );
+ const Color& GetSundayColor() const;
+
+ void AddDateInfo( const Date& rDate, const XubString& rText,
const Color* pTextColor = NULL,
const Color* pFrameColor = NULL,
USHORT nFlags = 0 );
- void RemoveDateInfo( const Date& rDate );
- void ClearDateInfo();
- XubString GetDateInfoText( const Date& rDate );
+ void RemoveDateInfo( const Date& rDate );
+ void ClearDateInfo();
+ XubString GetDateInfoText( const Date& rDate );
- void StartSelection();
- void EndSelection();
+ void StartSelection();
+ void EndSelection();
- BOOL IsTravelSelect() const { return mbTravelSelect; }
- BOOL IsScrollDateRangeChanged() const { return mbScrollDateRange; }
- BOOL IsSelectLeft() const { return mbSelLeft; }
+ BOOL IsTravelSelect() const { return mbTravelSelect; }
+ BOOL IsScrollDateRangeChanged() const { return mbScrollDateRange; }
+ BOOL IsSelectLeft() const { return mbSelLeft; }
- Size CalcWindowSizePixel( long nCalcMonthPerLine = 1,
+ Size CalcWindowSizePixel( long nCalcMonthPerLine = 1,
long nCalcLines = 1 ) const;
- void SetSelectionChangingHdl( const Link& rLink ) { maSelectionChangingHdl = rLink; }
- const Link& GetSelectionChangingHdl() const { return maSelectionChangingHdl; }
- void SetDateRangeChangedHdl( const Link& rLink ) { maDateRangeChangedHdl = rLink; }
- const Link& GetDateRangeChangedHdl() const { return maDateRangeChangedHdl; }
- void SetRequestDateInfoHdl( const Link& rLink ) { maRequestDateInfoHdl = rLink; }
- const Link& GetRequestDateInfoHdl() const { return maRequestDateInfoHdl; }
- void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
- const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetSelectionChangingHdl( const Link& rLink ) { maSelectionChangingHdl = rLink; }
+ const Link& GetSelectionChangingHdl() const { return maSelectionChangingHdl; }
+ void SetDateRangeChangedHdl( const Link& rLink ) { maDateRangeChangedHdl = rLink; }
+ const Link& GetDateRangeChangedHdl() const { return maDateRangeChangedHdl; }
+ void SetRequestDateInfoHdl( const Link& rLink ) { maRequestDateInfoHdl = rLink; }
+ const Link& GetRequestDateInfoHdl() const { return maRequestDateInfoHdl; }
+ void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
+ const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
};
inline const Color& Calendar::GetStandardColor() const
@@ -449,14 +449,14 @@ class SVT_DLLPUBLIC CalendarField : public DateField
{
private:
ImplCFieldFloatWin* mpFloatWin;
- Calendar* mpCalendar;
- WinBits mnCalendarStyle;
- PushButton* mpTodayBtn;
- PushButton* mpNoneBtn;
- Date maDefaultDate;
- BOOL mbToday;
- BOOL mbNone;
- Link maSelectHdl;
+ Calendar* mpCalendar;
+ WinBits mnCalendarStyle;
+ PushButton* mpTodayBtn;
+ PushButton* mpNoneBtn;
+ Date maDefaultDate;
+ BOOL mbToday;
+ BOOL mbNone;
+ Link maSelectHdl;
#ifdef _SV_CALENDAR_CXX
DECL_DLLPRIVATE_LINK( ImplSelectHdl, Calendar* );
@@ -469,30 +469,30 @@ public:
CalendarField( Window* pParent, const ResId& rResId );
~CalendarField();
- virtual void Select();
+ virtual void Select();
- virtual BOOL ShowDropDown( BOOL bShow );
- virtual Calendar* CreateCalendar( Window* pParent );
- Calendar* GetCalendar();
+ virtual BOOL ShowDropDown( BOOL bShow );
+ virtual Calendar* CreateCalendar( Window* pParent );
+ Calendar* GetCalendar();
- void SetDefaultDate( const Date& rDate ) { maDefaultDate = rDate; }
- Date GetDefaultDate() const { return maDefaultDate; }
+ void SetDefaultDate( const Date& rDate ) { maDefaultDate = rDate; }
+ Date GetDefaultDate() const { return maDefaultDate; }
- void EnableToday( BOOL bToday = TRUE ) { mbToday = bToday; }
- BOOL IsTodayEnabled() const { return mbToday; }
- void EnableNone( BOOL bNone = TRUE ) { mbNone = bNone; }
- BOOL IsNoneEnabled() const { return mbNone; }
+ void EnableToday( BOOL bToday = TRUE ) { mbToday = bToday; }
+ BOOL IsTodayEnabled() const { return mbToday; }
+ void EnableNone( BOOL bNone = TRUE ) { mbNone = bNone; }
+ BOOL IsNoneEnabled() const { return mbNone; }
- void SetCalendarStyle( WinBits nStyle ) { mnCalendarStyle = nStyle; }
- WinBits GetCalendarStyle() const { return mnCalendarStyle; }
+ void SetCalendarStyle( WinBits nStyle ) { mnCalendarStyle = nStyle; }
+ WinBits GetCalendarStyle() const { return mnCalendarStyle; }
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
protected:
- virtual void StateChanged( StateChangedType nStateChange );
+ virtual void StateChanged( StateChangedType nStateChange );
};
-#endif // _CALENDAR_HXX
+#endif // _CALENDAR_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/cliplistener.hxx b/svtools/inc/cliplistener.hxx
index 40d44a4cdcab..afd07ca5a187 100644
--- a/svtools/inc/cliplistener.hxx
+++ b/svtools/inc/cliplistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,15 +40,15 @@ class Window;
class SVT_DLLPUBLIC TransferableClipboardListener : public ::cppu::WeakImplHelper1<
::com::sun::star::datatransfer::clipboard::XClipboardListener >
{
- Link aLink;
+ Link aLink;
public:
// Link is called with a TransferableDataHelper pointer
TransferableClipboardListener( const Link& rCallback );
~TransferableClipboardListener();
- void AddRemoveListener( Window* pWin, BOOL bAdd );
- void ClearCallbackLink();
+ void AddRemoveListener( Window* pWin, BOOL bAdd );
+ void ClearCallbackLink();
// XEventListener
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
diff --git a/svtools/inc/collatorres.hxx b/svtools/inc/collatorres.hxx
index 467e8b7103f1..49737b2d62b0 100644
--- a/svtools/inc/collatorres.hxx
+++ b/svtools/inc/collatorres.hxx
@@ -8,7 +8,7 @@
class CollatorRessourceData;
-class SVT_DLLPUBLIC CollatorRessource
+class SVT_DLLPUBLIC CollatorRessource
{
private:
@@ -17,7 +17,7 @@ class SVT_DLLPUBLIC CollatorRessource
public:
CollatorRessource ();
~CollatorRessource ();
- const String& GetTranslation (const String& r_Algorithm);
+ const String& GetTranslation (const String& r_Algorithm);
};
#endif /* SVTOOLS_COLLATORRESSOURCE_HXX */
diff --git a/svtools/inc/contextmenuhelper.hxx b/svtools/inc/contextmenuhelper.hxx
index c0a9826367f5..1bcf1c168fa5 100644
--- a/svtools/inc/contextmenuhelper.hxx
+++ b/svtools/inc/contextmenuhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,12 +46,12 @@ namespace svt
/**
Context menu helper class.
- Fills images and labels for a provided popup menu or
- com.sun.star.awt.XPopupMenu.
-
+ Fills images and labels for a provided popup menu or
+ com.sun.star.awt.XPopupMenu.
+
PRECONDITION:
- All commands must be set via SetItemCommand and are part
- of the configuration files
+ All commands must be set via SetItemCommand and are part
+ of the configuration files
(see org.openoffice.Office.UI.[Module]Commands.xcu)
*/
struct ExecuteInfo;
@@ -72,29 +72,29 @@ class SVT_DLLPUBLIC ContextMenuHelper
// methods to create a popup menu referenced by resource URL
// NOT IMPLEMENTED YET!
::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu > create( const ::rtl::OUString& aPopupMenuResourceURL );
-
+
// method to create and execute a popup menu referenced by a resource URL
// NOT IMPLEMENTED YET!
bool createAndExecute( const Point& aPos, const ::rtl::OUString& aPopupMenuResourceURL );
private:
// asynchronous link to prevent destruction while on stack
- DECL_STATIC_LINK( ContextMenuHelper, ExecuteHdl_Impl, ExecuteInfo* );
-
+ DECL_STATIC_LINK( ContextMenuHelper, ExecuteHdl_Impl, ExecuteInfo* );
+
// no copy-ctor and operator=
ContextMenuHelper( const ContextMenuHelper& );
const ContextMenuHelper& operator=( const ContextMenuHelper& );
// show context menu and dispatch command automatically
void executePopupMenu( const Point& aPos, PopupMenu* pMenu );
-
+
// fill image and label for every menu item on the provided menu
void completeMenuProperties( Menu* pMenu );
// dispatch provided command
bool dispatchCommand( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame, const ::rtl::OUString& aCommandURL );
-
+
// methods to retrieve a single command URL dependent value from a
// ui configuratin manager
Image getImageFromCommandURL( const ::rtl::OUString& aCmdURL, bool bHiContrast ) const;
@@ -103,7 +103,7 @@ class SVT_DLLPUBLIC ContextMenuHelper
// creates an association between current module/controller bound to the
// provided frame and their ui configuration managers.
bool associateUIConfigurationManagers();
-
+
// resets associations to create associations again on-demand.
// Usefull for implementations which recycle frames. Normal
// implementations can profit from caching and should set
diff --git a/svtools/inc/controldims.hrc b/svtools/inc/controldims.hrc
index 5e26f132897d..f7a5595e982d 100644
--- a/svtools/inc/controldims.hrc
+++ b/svtools/inc/controldims.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,62 +41,62 @@
//
// Base
-#define RSC_BS_CHARHEIGHT 8
-#define RSC_BS_CHARWIDTH 4
+#define RSC_BS_CHARHEIGHT 8
+#define RSC_BS_CHARWIDTH 4
// control dimensions
-#define RSC_CD_PUSHBUTTON_WIDTH 50
-#define RSC_CD_PUSHBUTTON_HEIGHT 14
+#define RSC_CD_PUSHBUTTON_WIDTH 50
+#define RSC_CD_PUSHBUTTON_HEIGHT 14
-#define RSC_CD_FIXEDTEXT_HEIGHT RSC_BS_CHARHEIGHT
-#define RSC_CD_FIXEDLINE_HEIGHT RSC_BS_CHARHEIGHT
-#define RSC_CD_FIXEDLINE_WIDTH RSC_BS_CHARWIDTH // for vertical FixedLines
+#define RSC_CD_FIXEDTEXT_HEIGHT RSC_BS_CHARHEIGHT
+#define RSC_CD_FIXEDLINE_HEIGHT RSC_BS_CHARHEIGHT
+#define RSC_CD_FIXEDLINE_WIDTH RSC_BS_CHARWIDTH // for vertical FixedLines
-#define RSC_CD_DROPDOWN_HEIGHT 12 // also combobox and dropdown list
-#define RSC_CD_TEXTBOX_HEIGHT 12 // also numeric fields etc.
+#define RSC_CD_DROPDOWN_HEIGHT 12 // also combobox and dropdown list
+#define RSC_CD_TEXTBOX_HEIGHT 12 // also numeric fields etc.
-#define RSC_CD_CHECKBOX_HEIGHT 10 // also tristate
-#define RSC_CD_RADIOBUTTON_HEIGHT 10
+#define RSC_CD_CHECKBOX_HEIGHT 10 // also tristate
+#define RSC_CD_RADIOBUTTON_HEIGHT 10
// spacings
-#define RSC_SP_CTRL_X 6 // controls that are unrelated
-#define RSC_SP_CTRL_Y 7
-#define RSC_SP_CTRL_GROUP_X 3 // related controls, or controls in a groupbox
-#define RSC_SP_CTRL_GROUP_Y 4
-#define RSC_SP_CTRL_DESC_X 3 // between description text and related control
-#define RSC_SP_CTRL_DESC_Y 3
+#define RSC_SP_CTRL_X 6 // controls that are unrelated
+#define RSC_SP_CTRL_Y 7
+#define RSC_SP_CTRL_GROUP_X 3 // related controls, or controls in a groupbox
+#define RSC_SP_CTRL_GROUP_Y 4
+#define RSC_SP_CTRL_DESC_X 3 // between description text and related control
+#define RSC_SP_CTRL_DESC_Y 3
// overruled spacings between certain controls
-#define RSC_SP_FLGR_SPACE_X 6 // between groupings made with FixedLine
-#define RSC_SP_FLGR_SPACE_Y 4
-#define RSC_SP_GRP_SPACE_X 6 // between groupings made with GroupBox
-#define RSC_SP_GRP_SPACE_Y 6
-#define RSC_SP_TXT_SPACE_X 5 // spacing between text paragraphs
-#define RSC_SP_TXT_SPACE_Y 7
-#define RSC_SP_CHK_TEXTINDENT 8 // x indent of text aligned to checkbox title
+#define RSC_SP_FLGR_SPACE_X 6 // between groupings made with FixedLine
+#define RSC_SP_FLGR_SPACE_Y 4
+#define RSC_SP_GRP_SPACE_X 6 // between groupings made with GroupBox
+#define RSC_SP_GRP_SPACE_Y 6
+#define RSC_SP_TXT_SPACE_X 5 // spacing between text paragraphs
+#define RSC_SP_TXT_SPACE_Y 7
+#define RSC_SP_CHK_TEXTINDENT 8 // x indent of text aligned to checkbox title
// dialog inner border
-#define RSC_SP_DLG_INNERBORDER_LEFT 6
-#define RSC_SP_DLG_INNERBORDER_TOP 6
-#define RSC_SP_DLG_INNERBORDER_RIGHT 6
-#define RSC_SP_DLG_INNERBORDER_BOTTOM 6
+#define RSC_SP_DLG_INNERBORDER_LEFT 6
+#define RSC_SP_DLG_INNERBORDER_TOP 6
+#define RSC_SP_DLG_INNERBORDER_RIGHT 6
+#define RSC_SP_DLG_INNERBORDER_BOTTOM 6
// tab page inner border
-#define RSC_SP_TBPG_INNERBORDER_LEFT 6 // for tabpage groupings
-#define RSC_SP_TBPG_INNERBORDER_TOP 3
-#define RSC_SP_TBPG_INNERBORDER_RIGHT 6
-#define RSC_SP_TBPG_INNERBORDER_BOTTOM 6
+#define RSC_SP_TBPG_INNERBORDER_LEFT 6 // for tabpage groupings
+#define RSC_SP_TBPG_INNERBORDER_TOP 3
+#define RSC_SP_TBPG_INNERBORDER_RIGHT 6
+#define RSC_SP_TBPG_INNERBORDER_BOTTOM 6
// FixedLine group inner border
-#define RSC_SP_FLGR_INNERBORDER_LEFT 6 // for FixedLine groupings
-#define RSC_SP_FLGR_INNERBORDER_TOP 3
-#define RSC_SP_FLGR_INNERBORDER_RIGHT 0
-#define RSC_SP_FLGR_INNERBORDER_BOTTOM 0
+#define RSC_SP_FLGR_INNERBORDER_LEFT 6 // for FixedLine groupings
+#define RSC_SP_FLGR_INNERBORDER_TOP 3
+#define RSC_SP_FLGR_INNERBORDER_RIGHT 0
+#define RSC_SP_FLGR_INNERBORDER_BOTTOM 0
// GroupBox inner border
-#define RSC_SP_GRP_INNERBORDER_LEFT 6 // for GroupBox groupings
-#define RSC_SP_GRP_INNERBORDER_TOP 6
-#define RSC_SP_GRP_INNERBORDER_RIGHT 6
-#define RSC_SP_GRP_INNERBORDER_BOTTOM 6
+#define RSC_SP_GRP_INNERBORDER_LEFT 6 // for GroupBox groupings
+#define RSC_SP_GRP_INNERBORDER_TOP 6
+#define RSC_SP_GRP_INNERBORDER_RIGHT 6
+#define RSC_SP_GRP_INNERBORDER_BOTTOM 6
#endif // _SVT_CONTROLDIMS_HRC_
diff --git a/svtools/inc/ctrlbox.hxx b/svtools/inc/ctrlbox.hxx
index 19ff2b87ba00..08bff11ba4b7 100644
--- a/svtools/inc/ctrlbox.hxx
+++ b/svtools/inc/ctrlbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -157,56 +157,56 @@ FontList; FontNameBox; FontStyleBox; FontSizeMenu
class SVT_DLLPUBLIC ColorListBox : public ListBox
{
- ImpColorList* pColorList; // Separate Liste, falls UserDaten von aussen verwendet werden.
- Size aImageSize;
+ ImpColorList* pColorList; // Separate Liste, falls UserDaten von aussen verwendet werden.
+ Size aImageSize;
#ifdef _CTRLBOX_CXX
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit();
- SVT_DLLPRIVATE void ImplDestroyColorEntries();
+ SVT_DLLPRIVATE void ImplInit();
+ SVT_DLLPRIVATE void ImplDestroyColorEntries();
#endif
public:
ColorListBox( Window* pParent,
WinBits nWinStyle = WB_BORDER );
ColorListBox( Window* pParent, const ResId& rResId );
- virtual ~ColorListBox();
+ virtual ~ColorListBox();
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
using ListBox::InsertEntry;
- virtual USHORT InsertEntry( const XubString& rStr,
+ virtual USHORT InsertEntry( const XubString& rStr,
USHORT nPos = LISTBOX_APPEND );
- virtual USHORT InsertEntry( const Color& rColor, const XubString& rStr,
+ virtual USHORT InsertEntry( const Color& rColor, const XubString& rStr,
USHORT nPos = LISTBOX_APPEND );
- void InsertAutomaticEntry();
+ void InsertAutomaticEntry();
using ListBox::RemoveEntry;
- virtual void RemoveEntry( USHORT nPos );
- virtual void Clear();
- void CopyEntries( const ColorListBox& rBox );
+ virtual void RemoveEntry( USHORT nPos );
+ virtual void Clear();
+ void CopyEntries( const ColorListBox& rBox );
using ListBox::GetEntryPos;
- virtual USHORT GetEntryPos( const Color& rColor ) const;
- virtual Color GetEntryColor( USHORT nPos ) const;
- Size GetImageSize() const { return aImageSize; }
+ virtual USHORT GetEntryPos( const Color& rColor ) const;
+ virtual Color GetEntryColor( USHORT nPos ) const;
+ Size GetImageSize() const { return aImageSize; }
- void SelectEntry( const XubString& rStr, BOOL bSelect = TRUE )
+ void SelectEntry( const XubString& rStr, BOOL bSelect = TRUE )
{ ListBox::SelectEntry( rStr, bSelect ); }
- void SelectEntry( const Color& rColor, BOOL bSelect = TRUE );
- XubString GetSelectEntry( USHORT nSelIndex = 0 ) const
+ void SelectEntry( const Color& rColor, BOOL bSelect = TRUE );
+ XubString GetSelectEntry( USHORT nSelIndex = 0 ) const
{ return ListBox::GetSelectEntry( nSelIndex ); }
- Color GetSelectEntryColor( USHORT nSelIndex = 0 ) const;
- BOOL IsEntrySelected( const XubString& rStr ) const
+ Color GetSelectEntryColor( USHORT nSelIndex = 0 ) const;
+ BOOL IsEntrySelected( const XubString& rStr ) const
{ return ListBox::IsEntrySelected( rStr ); }
- BOOL IsEntrySelected( const Color& rColor ) const;
+ BOOL IsEntrySelected( const Color& rColor ) const;
private:
// declared as private because some compilers would generate the default functions
ColorListBox( const ColorListBox& );
- ColorListBox& operator =( const ColorListBox& );
+ ColorListBox& operator =( const ColorListBox& );
- void SetEntryData( USHORT nPos, void* pNewData );
- void* GetEntryData( USHORT nPos ) const;
+ void SetEntryData( USHORT nPos, void* pNewData );
+ void* GetEntryData( USHORT nPos ) const;
};
inline void ColorListBox::SelectEntry( const Color& rColor, BOOL bSelect )
@@ -240,69 +240,69 @@ inline Color ColorListBox::GetSelectEntryColor( USHORT nSelIndex ) const
class SVT_DLLPUBLIC LineListBox : public ListBox
{
- ImpLineList* pLineList;
- VirtualDevice aVirDev;
- Size aTxtSize;
- Color aColor;
- Color maPaintCol;
- FieldUnit eUnit;
- FieldUnit eSourceUnit;
-
- SVT_DLLPRIVATE void ImpGetLine( long nLine1, long nLine2, long nDistance,
+ ImpLineList* pLineList;
+ VirtualDevice aVirDev;
+ Size aTxtSize;
+ Color aColor;
+ Color maPaintCol;
+ FieldUnit eUnit;
+ FieldUnit eSourceUnit;
+
+ SVT_DLLPRIVATE void ImpGetLine( long nLine1, long nLine2, long nDistance,
USHORT nStyle, Bitmap& rBmp, XubString& rStr );
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit();
- void UpdateLineColors( void );
- BOOL UpdatePaintLineColor( void ); // returns TRUE if maPaintCol has changed
- inline const Color& GetPaintColor( void ) const;
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ SVT_DLLPRIVATE void ImplInit();
+ void UpdateLineColors( void );
+ BOOL UpdatePaintLineColor( void ); // returns TRUE if maPaintCol has changed
+ inline const Color& GetPaintColor( void ) const;
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
public:
LineListBox( Window* pParent, WinBits nWinStyle = WB_BORDER );
LineListBox( Window* pParent, const ResId& rResId );
- virtual ~LineListBox();
+ virtual ~LineListBox();
using ListBox::InsertEntry;
- virtual USHORT InsertEntry( const XubString& rStr, USHORT nPos = LISTBOX_APPEND );
- virtual USHORT InsertEntry( long nLine1, long nLine2 = 0, long nDistance = 0,
+ virtual USHORT InsertEntry( const XubString& rStr, USHORT nPos = LISTBOX_APPEND );
+ virtual USHORT InsertEntry( long nLine1, long nLine2 = 0, long nDistance = 0,
USHORT nStyle = STYLE_SOLID, USHORT nPos = LISTBOX_APPEND );
using ListBox::RemoveEntry;
- virtual void RemoveEntry( USHORT nPos );
- virtual void Clear();
+ virtual void RemoveEntry( USHORT nPos );
+ virtual void Clear();
using ListBox::GetEntryPos;
- USHORT GetEntryPos( long nLine1, long nLine2 = 0, long nDistance = 0,
+ USHORT GetEntryPos( long nLine1, long nLine2 = 0, long nDistance = 0,
USHORT nStyle = STYLE_SOLID ) const;
- long GetEntryLine1( USHORT nPos ) const;
- long GetEntryLine2( USHORT nPos ) const;
- long GetEntryDistance( USHORT nPos ) const;
+ long GetEntryLine1( USHORT nPos ) const;
+ long GetEntryLine2( USHORT nPos ) const;
+ long GetEntryDistance( USHORT nPos ) const;
USHORT GetEntryStyle( USHORT nPos ) const;
- inline void SelectEntry( const XubString& rStr, BOOL bSelect = TRUE ) { ListBox::SelectEntry( rStr, bSelect ); }
- void SelectEntry( long nLine1, long nLine2 = 0, long nDistance = 0,
+ inline void SelectEntry( const XubString& rStr, BOOL bSelect = TRUE ) { ListBox::SelectEntry( rStr, bSelect ); }
+ void SelectEntry( long nLine1, long nLine2 = 0, long nDistance = 0,
USHORT nStyle = STYLE_SOLID, BOOL bSelect = TRUE );
- long GetSelectEntryLine1( USHORT nSelIndex = 0 ) const;
- long GetSelectEntryLine2( USHORT nSelIndex = 0 ) const;
- long GetSelectEntryDistance( USHORT nSelIndex = 0 ) const;
- USHORT GetSelectEntryStyle( USHORT nSelIndex = 0 ) const;
- inline BOOL IsEntrySelected( const XubString& rStr ) const { return ListBox::IsEntrySelected( rStr ); }
- BOOL IsEntrySelected( long nLine1, long nLine2 = 0, long nDistance = 0,
+ long GetSelectEntryLine1( USHORT nSelIndex = 0 ) const;
+ long GetSelectEntryLine2( USHORT nSelIndex = 0 ) const;
+ long GetSelectEntryDistance( USHORT nSelIndex = 0 ) const;
+ USHORT GetSelectEntryStyle( USHORT nSelIndex = 0 ) const;
+ inline BOOL IsEntrySelected( const XubString& rStr ) const { return ListBox::IsEntrySelected( rStr ); }
+ BOOL IsEntrySelected( long nLine1, long nLine2 = 0, long nDistance = 0,
USHORT nStyle1 = STYLE_SOLID ) const;
- inline void SetUnit( FieldUnit eNewUnit ) { eUnit = eNewUnit; }
- inline FieldUnit GetUnit() const { return eUnit; }
- inline void SetSourceUnit( FieldUnit eNewUnit ) { eSourceUnit = eNewUnit; }
- inline FieldUnit GetSourceUnit() const { return eSourceUnit; }
+ inline void SetUnit( FieldUnit eNewUnit ) { eUnit = eNewUnit; }
+ inline FieldUnit GetUnit() const { return eUnit; }
+ inline void SetSourceUnit( FieldUnit eNewUnit ) { eSourceUnit = eNewUnit; }
+ inline FieldUnit GetSourceUnit() const { return eSourceUnit; }
- void SetColor( const Color& rColor );
- inline Color GetColor( void ) const;
+ void SetColor( const Color& rColor );
+ inline Color GetColor( void ) const;
private:
// declared as private because some compilers would generate the default methods
LineListBox( const LineListBox& );
- LineListBox& operator =( const LineListBox& );
- void SetEntryData( USHORT nPos, void* pNewData );
- void* GetEntryData( USHORT nPos ) const;
+ LineListBox& operator =( const LineListBox& );
+ void SetEntryData( USHORT nPos, void* pNewData );
+ void* GetEntryData( USHORT nPos ) const;
};
inline void LineListBox::SelectEntry( long nLine1, long nLine2, long nDistance, USHORT nStyle, BOOL bSelect )
@@ -378,41 +378,41 @@ inline Color LineListBox::GetColor( void ) const
class SVT_DLLPUBLIC FontNameBox : public ComboBox
{
private:
- ImplFontList* mpFontList;
- Image maImagePrinterFont;
- Image maImageBitmapFont;
- Image maImageScalableFont;
- BOOL mbWYSIWYG;
- BOOL mbSymbols;
+ ImplFontList* mpFontList;
+ Image maImagePrinterFont;
+ Image maImageBitmapFont;
+ Image maImageScalableFont;
+ BOOL mbWYSIWYG;
+ BOOL mbSymbols;
#ifdef _CTRLBOX_CXX
- SVT_DLLPRIVATE void ImplCalcUserItemSize();
- SVT_DLLPRIVATE void ImplDestroyFontList();
+ SVT_DLLPRIVATE void ImplCalcUserItemSize();
+ SVT_DLLPRIVATE void ImplDestroyFontList();
#endif
- void InitBitmaps( void );
+ void InitBitmaps( void );
protected:
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
public:
FontNameBox( Window* pParent,
WinBits nWinStyle = WB_SORT );
FontNameBox( Window* pParent, const ResId& rResId );
- virtual ~FontNameBox();
+ virtual ~FontNameBox();
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
- void Fill( const FontList* pList );
+ void Fill( const FontList* pList );
- void EnableWYSIWYG( BOOL bEnable = TRUE );
- BOOL IsWYSIWYGEnabled() const { return mbWYSIWYG; }
+ void EnableWYSIWYG( BOOL bEnable = TRUE );
+ BOOL IsWYSIWYGEnabled() const { return mbWYSIWYG; }
- void EnableSymbols( BOOL bEnable = TRUE );
- BOOL IsSymbolsEnabled() const { return mbSymbols; }
+ void EnableSymbols( BOOL bEnable = TRUE );
+ BOOL IsSymbolsEnabled() const { return mbSymbols; }
private:
// declared as private because some compilers would generate the default functions
FontNameBox( const FontNameBox& );
- FontNameBox& operator =( const FontNameBox& );
+ FontNameBox& operator =( const FontNameBox& );
};
// ----------------
@@ -421,26 +421,26 @@ private:
class SVT_DLLPUBLIC FontStyleBox : public ComboBox
{
- XubString aLastStyle;
+ XubString aLastStyle;
private:
using ComboBox::SetText;
public:
FontStyleBox( Window* pParent, WinBits nWinStyle = 0 );
FontStyleBox( Window* pParent, const ResId& rResId );
- virtual ~FontStyleBox();
+ virtual ~FontStyleBox();
- virtual void Select();
- virtual void LoseFocus();
- virtual void Modify();
+ virtual void Select();
+ virtual void LoseFocus();
+ virtual void Modify();
- void SetText( const XubString& rText );
- void Fill( const XubString& rName, const FontList* pList );
+ void SetText( const XubString& rText );
+ void Fill( const XubString& rName, const FontList* pList );
private:
// declared as private because some compilers would generate the default functions
FontStyleBox( const FontStyleBox& );
- FontStyleBox& operator =( const FontStyleBox& );
+ FontStyleBox& operator =( const FontStyleBox& );
};
inline void FontStyleBox::SetText( const XubString& rText )
@@ -455,22 +455,22 @@ inline void FontStyleBox::SetText( const XubString& rText )
class SVT_DLLPUBLIC FontSizeBox : public MetricBox
{
- FontInfo aFontInfo;
+ FontInfo aFontInfo;
const FontList* pFontList;
- USHORT nRelMin;
- USHORT nRelMax;
- USHORT nRelStep;
- short nPtRelMin;
- short nPtRelMax;
- short nPtRelStep;
- BOOL bRelativeMode:1,
+ USHORT nRelMin;
+ USHORT nRelMax;
+ USHORT nRelStep;
+ short nPtRelMin;
+ short nPtRelMax;
+ short nPtRelStep;
+ BOOL bRelativeMode:1,
bRelative:1,
bPtRelative:1,
bStdSize:1;
#ifdef _CTRLBOX_CXX
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit();
+ SVT_DLLPRIVATE void ImplInit();
#endif
protected:
@@ -479,38 +479,38 @@ protected:
public:
FontSizeBox( Window* pParent, WinBits nWinStyle = 0 );
FontSizeBox( Window* pParent, const ResId& rResId );
- virtual ~FontSizeBox();
+ virtual ~FontSizeBox();
- void Reformat();
- void Modify();
+ void Reformat();
+ void Modify();
- void Fill( const FontInfo* pInfo, const FontList* pList );
+ void Fill( const FontInfo* pInfo, const FontList* pList );
- void EnableRelativeMode( USHORT nMin = 50, USHORT nMax = 150,
+ void EnableRelativeMode( USHORT nMin = 50, USHORT nMax = 150,
USHORT nStep = 5 );
- void EnablePtRelativeMode( short nMin = -200, short nMax = 200,
+ void EnablePtRelativeMode( short nMin = -200, short nMax = 200,
short nStep = 10 );
- BOOL IsRelativeMode() const { return bRelativeMode; }
- void SetRelative( BOOL bRelative = FALSE );
- BOOL IsRelative() const { return bRelative; }
- void SetPtRelative( BOOL bPtRel = TRUE )
+ BOOL IsRelativeMode() const { return bRelativeMode; }
+ void SetRelative( BOOL bRelative = FALSE );
+ BOOL IsRelative() const { return bRelative; }
+ void SetPtRelative( BOOL bPtRel = TRUE )
{ bPtRelative = bPtRel; SetRelative( TRUE ); }
- BOOL IsPtRelative() const { return bPtRelative; }
+ BOOL IsPtRelative() const { return bPtRelative; }
- virtual void SetValue( sal_Int64 nNewValue, FieldUnit eInUnit );
- virtual void SetValue( sal_Int64 nNewValue );
- virtual sal_Int64 GetValue( FieldUnit eOutUnit ) const;
- virtual sal_Int64 GetValue() const;
- sal_Int64 GetValue( USHORT nPos, FieldUnit eOutUnit ) const;
- void SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit );
- void SetUserValue( sal_Int64 nNewValue ) { SetUserValue( nNewValue, FUNIT_NONE ); }
+ virtual void SetValue( sal_Int64 nNewValue, FieldUnit eInUnit );
+ virtual void SetValue( sal_Int64 nNewValue );
+ virtual sal_Int64 GetValue( FieldUnit eOutUnit ) const;
+ virtual sal_Int64 GetValue() const;
+ sal_Int64 GetValue( USHORT nPos, FieldUnit eOutUnit ) const;
+ void SetUserValue( sal_Int64 nNewValue, FieldUnit eInUnit );
+ void SetUserValue( sal_Int64 nNewValue ) { SetUserValue( nNewValue, FUNIT_NONE ); }
private:
// declared as private because some compilers would generate the default functions
FontSizeBox( const FontSizeBox& );
- FontSizeBox& operator =( const FontSizeBox& );
+ FontSizeBox& operator =( const FontSizeBox& );
};
-#endif // _CTRLBOX_HXX
+#endif // _CTRLBOX_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/ctrltool.hxx b/svtools/inc/ctrltool.hxx
index 857471948228..ee85ae162198 100644
--- a/svtools/inc/ctrltool.hxx
+++ b/svtools/inc/ctrltool.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -144,37 +144,37 @@ von der FontList, sollte deshalb das Array nicht mehr referenziert werden.
// - FontList -
// ------------
-#define FONTLIST_FONTINFO_NOTFOUND ((USHORT)0xFFFF)
+#define FONTLIST_FONTINFO_NOTFOUND ((USHORT)0xFFFF)
-#define FONTLIST_FONTNAMETYPE_PRINTER ((USHORT)0x0001)
-#define FONTLIST_FONTNAMETYPE_SCREEN ((USHORT)0x0002)
-#define FONTLIST_FONTNAMETYPE_SCALABLE ((USHORT)0x0004)
+#define FONTLIST_FONTNAMETYPE_PRINTER ((USHORT)0x0001)
+#define FONTLIST_FONTNAMETYPE_SCREEN ((USHORT)0x0002)
+#define FONTLIST_FONTNAMETYPE_SCALABLE ((USHORT)0x0004)
class SVT_DLLPUBLIC FontList : private List
{
private:
- XubString maMapBoth;
- XubString maMapPrinterOnly;
- XubString maMapScreenOnly;
- XubString maMapSizeNotAvailable;
- XubString maMapStyleNotAvailable;
- XubString maMapNotAvailable;
- XubString maLight;
- XubString maLightItalic;
- XubString maNormal;
- XubString maNormalItalic;
- XubString maBold;
- XubString maBoldItalic;
- XubString maBlack;
- XubString maBlackItalic;
- long* mpSizeAry;
- OutputDevice* mpDev;
- OutputDevice* mpDev2;
+ XubString maMapBoth;
+ XubString maMapPrinterOnly;
+ XubString maMapScreenOnly;
+ XubString maMapSizeNotAvailable;
+ XubString maMapStyleNotAvailable;
+ XubString maMapNotAvailable;
+ XubString maLight;
+ XubString maLightItalic;
+ XubString maNormal;
+ XubString maNormalItalic;
+ XubString maBold;
+ XubString maBoldItalic;
+ XubString maBlack;
+ XubString maBlackItalic;
+ long* mpSizeAry;
+ OutputDevice* mpDev;
+ OutputDevice* mpDev2;
#ifdef CTRLTOOL_CXX
- SVT_DLLPRIVATE ImplFontListNameInfo* ImplFind( const XubString& rSearchName, ULONG* pIndex ) const;
- SVT_DLLPRIVATE ImplFontListNameInfo* ImplFindByName( const XubString& rStr ) const;
- SVT_DLLPRIVATE void ImplInsertFonts( OutputDevice* pDev, BOOL bAll,
+ SVT_DLLPRIVATE ImplFontListNameInfo* ImplFind( const XubString& rSearchName, ULONG* pIndex ) const;
+ SVT_DLLPRIVATE ImplFontListNameInfo* ImplFindByName( const XubString& rStr ) const;
+ SVT_DLLPRIVATE void ImplInsertFonts( OutputDevice* pDev, BOOL bAll,
BOOL bInsertData );
#endif
@@ -185,40 +185,40 @@ public:
~FontList();
FontList* Clone() const;
-
+
OutputDevice* GetDevice() const { return mpDev; }
- OutputDevice* GetDevice2() const { return mpDev2; }
- XubString GetFontMapText( const FontInfo& rInfo ) const;
- USHORT GetFontNameType( const XubString& rFontName ) const;
-
- const XubString& GetNormalStr() const { return maNormal; }
- const XubString& GetItalicStr() const { return maNormalItalic; }
- const XubString& GetBoldStr() const { return maBold; }
- const XubString& GetBoldItalicStr() const { return maBoldItalic; }
- const XubString& GetStyleName( FontWeight eWeight, FontItalic eItalic ) const;
- XubString GetStyleName( const FontInfo& rInfo ) const;
-
- FontInfo Get( const XubString& rName,
+ OutputDevice* GetDevice2() const { return mpDev2; }
+ XubString GetFontMapText( const FontInfo& rInfo ) const;
+ USHORT GetFontNameType( const XubString& rFontName ) const;
+
+ const XubString& GetNormalStr() const { return maNormal; }
+ const XubString& GetItalicStr() const { return maNormalItalic; }
+ const XubString& GetBoldStr() const { return maBold; }
+ const XubString& GetBoldItalicStr() const { return maBoldItalic; }
+ const XubString& GetStyleName( FontWeight eWeight, FontItalic eItalic ) const;
+ XubString GetStyleName( const FontInfo& rInfo ) const;
+
+ FontInfo Get( const XubString& rName,
const XubString& rStyleName ) const;
- FontInfo Get( const XubString& rName,
+ FontInfo Get( const XubString& rName,
FontWeight eWeight,
FontItalic eItalic ) const;
- BOOL IsAvailable( const XubString& rName ) const;
- USHORT GetFontNameCount() const
+ BOOL IsAvailable( const XubString& rName ) const;
+ USHORT GetFontNameCount() const
{ return (USHORT)List::Count(); }
- const FontInfo& GetFontName( USHORT nFont ) const;
- USHORT GetFontNameType( USHORT nFont ) const;
- sal_Handle GetFirstFontInfo( const XubString& rName ) const;
- sal_Handle GetNextFontInfo( sal_Handle hFontInfo ) const;
- const FontInfo& GetFontInfo( sal_Handle hFontInfo ) const;
+ const FontInfo& GetFontName( USHORT nFont ) const;
+ USHORT GetFontNameType( USHORT nFont ) const;
+ sal_Handle GetFirstFontInfo( const XubString& rName ) const;
+ sal_Handle GetNextFontInfo( sal_Handle hFontInfo ) const;
+ const FontInfo& GetFontInfo( sal_Handle hFontInfo ) const;
- const long* GetSizeAry( const FontInfo& rInfo ) const;
- static const long* GetStdSizeAry();
+ const long* GetSizeAry( const FontInfo& rInfo ) const;
+ static const long* GetStdSizeAry();
private:
FontList( const FontList& );
- FontList& operator =( const FontList& );
+ FontList& operator =( const FontList& );
};
@@ -229,22 +229,22 @@ private:
class SVT_DLLPUBLIC FontSizeNames
{
private:
- struct ImplFSNameItem* mpArray;
- ULONG mnElem;
+ struct ImplFSNameItem* mpArray;
+ ULONG mnElem;
public:
FontSizeNames( LanguageType eLanguage /* = LANGUAGE_DONTKNOW */ );
- ULONG Count() const { return mnElem; }
- BOOL IsEmpty() const { return !mnElem; }
+ ULONG Count() const { return mnElem; }
+ BOOL IsEmpty() const { return !mnElem; }
- long Name2Size( const String& ) const;
- String Size2Name( long ) const;
+ long Name2Size( const String& ) const;
+ String Size2Name( long ) const;
- String GetIndexName( ULONG nIndex ) const;
- long GetIndexSize( ULONG nIndex ) const;
+ String GetIndexName( ULONG nIndex ) const;
+ long GetIndexSize( ULONG nIndex ) const;
};
-#endif // _CTRLTOOL_HXX
+#endif // _CTRLTOOL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/dialogclosedlistener.hxx b/svtools/inc/dialogclosedlistener.hxx
index 7b80ed6b449d..43e843b31e85 100644
--- a/svtools/inc/dialogclosedlistener.hxx
+++ b/svtools/inc/dialogclosedlistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/dialogcontrolling.hxx b/svtools/inc/dialogcontrolling.hxx
index d0bb6646ba85..1fa55af284be 100644
--- a/svtools/inc/dialogcontrolling.hxx
+++ b/svtools/inc/dialogcontrolling.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/expander.hxx b/svtools/inc/expander.hxx
index 55b339ba9dfc..33e45dd10f50 100644
--- a/svtools/inc/expander.hxx
+++ b/svtools/inc/expander.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,62 +34,62 @@
enum SvExpanderStateType
{
- EST_MIN=1,
- EST_PLUS=2,
- EST_MIN_DOWN=3,
- EST_PLUS_DOWN=4,
- EST_NONE=5,
- EST_MIN_DIS=6,
- EST_PLUS_DIS=7,
- EST_MIN_DOWN_DIS=8,
+ EST_MIN=1,
+ EST_PLUS=2,
+ EST_MIN_DOWN=3,
+ EST_PLUS_DOWN=4,
+ EST_NONE=5,
+ EST_MIN_DIS=6,
+ EST_PLUS_DIS=7,
+ EST_MIN_DOWN_DIS=8,
EST_PLUS_DOWN_DIS=9
};
class SvExpander: public Control
{
private:
- Point aImagePos;
- Point aTextPos;
- Image aActiveImage;
- Rectangle maFocusRect;
- ImageList maExpanderImages;
- BOOL mbIsExpanded;
- BOOL mbHasFocusRect;
- BOOL mbIsInMouseDown;
- Link maToggleHdl;
- SvExpanderStateType eType;
+ Point aImagePos;
+ Point aTextPos;
+ Image aActiveImage;
+ Rectangle maFocusRect;
+ ImageList maExpanderImages;
+ BOOL mbIsExpanded;
+ BOOL mbHasFocusRect;
+ BOOL mbIsInMouseDown;
+ Link maToggleHdl;
+ SvExpanderStateType eType;
protected:
-
- virtual long PreNotify( NotifyEvent& rNEvt );
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void KeyUp( const KeyEvent& rKEvt );
-
- virtual void Click();
- virtual void Resize();
+
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void KeyUp( const KeyEvent& rKEvt );
+
+ virtual void Click();
+ virtual void Resize();
public:
- SvExpander( Window* pParent, WinBits nStyle = 0 );
+ SvExpander( Window* pParent, WinBits nStyle = 0 );
SvExpander( Window* pParent, const ResId& rResId );
- BOOL IsExpanded() {return mbIsExpanded;}
+ BOOL IsExpanded() {return mbIsExpanded;}
- void SetToExpanded(BOOL bFlag=TRUE);
+ void SetToExpanded(BOOL bFlag=TRUE);
- void SetExpanderImage( SvExpanderStateType eType);
- Image GetExpanderImage(SvExpanderStateType eType);
- Size GetMinSize() const;
+ void SetExpanderImage( SvExpanderStateType eType);
+ Image GetExpanderImage(SvExpanderStateType eType);
+ Size GetMinSize() const;
- void SetToggleHdl( const Link& rLink ) { maToggleHdl = rLink; }
- const Link& GetToggleHdl() const { return maToggleHdl; }
+ void SetToggleHdl( const Link& rLink ) { maToggleHdl = rLink; }
+ const Link& GetToggleHdl() const { return maToggleHdl; }
};
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/extcolorcfg.hxx b/svtools/inc/extcolorcfg.hxx
index e7cfbd65b626..66a6945d96d9 100644
--- a/svtools/inc/extcolorcfg.hxx
+++ b/svtools/inc/extcolorcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,26 +45,26 @@ class ExtendedColorConfigValue
{
::rtl::OUString m_sName;
::rtl::OUString m_sDisplayName;
- sal_Int32 m_nColor;
- sal_Int32 m_nDefaultColor;
+ sal_Int32 m_nColor;
+ sal_Int32 m_nDefaultColor;
public:
ExtendedColorConfigValue() : m_nColor(0),m_nDefaultColor(0){}
ExtendedColorConfigValue(const ::rtl::OUString& _sName
,const ::rtl::OUString& _sDisplayName
- ,sal_Int32 _nColor
- ,sal_Int32 _nDefaultColor)
+ ,sal_Int32 _nColor
+ ,sal_Int32 _nDefaultColor)
: m_sName(_sName)
,m_sDisplayName(_sDisplayName)
,m_nColor(_nColor)
- ,m_nDefaultColor(_nDefaultColor)
+ ,m_nDefaultColor(_nDefaultColor)
{}
inline ::rtl::OUString getName() const { return m_sName; }
inline ::rtl::OUString getDisplayName() const { return m_sDisplayName; }
- inline sal_Int32 getColor() const { return m_nColor; }
- inline sal_Int32 getDefaultColor() const { return m_nDefaultColor; }
+ inline sal_Int32 getColor() const { return m_nColor; }
+ inline sal_Int32 getDefaultColor() const { return m_nDefaultColor; }
- inline void setColor(sal_Int32 _nColor) { m_nColor = _nColor; }
+ inline void setColor(sal_Int32 _nColor) { m_nColor = _nColor; }
sal_Bool operator !=(const ExtendedColorConfigValue& rCmp) const
{ return m_nColor != rCmp.m_nColor;}
@@ -85,11 +85,11 @@ public:
// get the configured value
ExtendedColorConfigValue GetColorValue(const ::rtl::OUString& _sComponentName,const ::rtl::OUString& _sName)const;
- sal_Int32 GetComponentCount() const;
- ::rtl::OUString GetComponentName(sal_uInt32 _nPos) const;
- ::rtl::OUString GetComponentDisplayName(const ::rtl::OUString& _sComponentName) const;
- sal_Int32 GetComponentColorCount(const ::rtl::OUString& _sName) const;
- ExtendedColorConfigValue GetComponentColorConfigValue(const ::rtl::OUString& _sComponentName,sal_uInt32 _nPos) const;
+ sal_Int32 GetComponentCount() const;
+ ::rtl::OUString GetComponentName(sal_uInt32 _nPos) const;
+ ::rtl::OUString GetComponentDisplayName(const ::rtl::OUString& _sComponentName) const;
+ sal_Int32 GetComponentColorCount(const ::rtl::OUString& _sName) const;
+ ExtendedColorConfigValue GetComponentColorConfigValue(const ::rtl::OUString& _sComponentName,sal_uInt32 _nPos) const;
};
/* -----------------------------22.03.2002 15:31------------------------------
@@ -110,19 +110,19 @@ public:
void SetCurrentSchemeName(const ::rtl::OUString& rScheme);
ExtendedColorConfigValue GetColorValue(const ::rtl::OUString& _sComponentName,const ::rtl::OUString& _sName)const;
- sal_Int32 GetComponentCount() const;
- ::rtl::OUString GetComponentName(sal_uInt32 _nPos) const;
- ::rtl::OUString GetComponentDisplayName(const ::rtl::OUString& _sComponentName) const;
- sal_Int32 GetComponentColorCount(const ::rtl::OUString& _sName) const;
- ExtendedColorConfigValue GetComponentColorConfigValue(const ::rtl::OUString& _sName,sal_uInt32 _nPos) const;
+ sal_Int32 GetComponentCount() const;
+ ::rtl::OUString GetComponentName(sal_uInt32 _nPos) const;
+ ::rtl::OUString GetComponentDisplayName(const ::rtl::OUString& _sComponentName) const;
+ sal_Int32 GetComponentColorCount(const ::rtl::OUString& _sName) const;
+ ExtendedColorConfigValue GetComponentColorConfigValue(const ::rtl::OUString& _sName,sal_uInt32 _nPos) const;
void SetColorValue(const ::rtl::OUString& _sComponentName, const ExtendedColorConfigValue& rValue);
void SetModified();
void ClearModified(){m_bModified = sal_False;}
sal_Bool IsModified()const{return m_bModified;}
void Commit();
- void DisableBroadcast();
- void EnableBroadcast();
+ void DisableBroadcast();
+ void EnableBroadcast();
};
}//namespace svtools
#endif
diff --git a/svtools/inc/filectrl.hxx b/svtools/inc/filectrl.hxx
index 87d05eb20bb2..195b0b522720 100644
--- a/svtools/inc/filectrl.hxx
+++ b/svtools/inc/filectrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,39 +35,39 @@
#include <vcl/button.hxx>
-#define STR_FILECTRL_BUTTONTEXT 333 // ID-Range?!
+#define STR_FILECTRL_BUTTONTEXT 333 // ID-Range?!
// Flags for FileControl
typedef USHORT FileControlMode;
-#define FILECTRL_RESIZEBUTTONBYPATHLEN ((USHORT)0x0001)//if this is set, the button will become small as soon as the Text in the Edit Field is to long to be shown completely
+#define FILECTRL_RESIZEBUTTONBYPATHLEN ((USHORT)0x0001)//if this is set, the button will become small as soon as the Text in the Edit Field is to long to be shown completely
// Flags for internal use of FileControl
typedef USHORT FileControlMode_Internal;
-#define FILECTRL_INRESIZE ((USHORT)0x0001)
-#define FILECTRL_ORIGINALBUTTONTEXT ((USHORT)0x0002)
+#define FILECTRL_INRESIZE ((USHORT)0x0001)
+#define FILECTRL_ORIGINALBUTTONTEXT ((USHORT)0x0002)
class SVT_DLLPUBLIC FileControl : public Window
{
private:
- Edit maEdit;
- PushButton maButton;
+ Edit maEdit;
+ PushButton maButton;
- String maButtonText;
- BOOL mbOpenDlg;
+ String maButtonText;
+ BOOL mbOpenDlg;
- Link maDialogCreatedHdl;
+ Link maDialogCreatedHdl;
- FileControlMode mnFlags;
- FileControlMode_Internal mnInternalFlags;
+ FileControlMode mnFlags;
+ FileControlMode_Internal mnInternalFlags;
private:
- SVT_DLLPRIVATE void ImplBrowseFile( );
+ SVT_DLLPRIVATE void ImplBrowseFile( );
protected:
- SVT_DLLPRIVATE void Resize();
- SVT_DLLPRIVATE void GetFocus();
+ SVT_DLLPRIVATE void Resize();
+ SVT_DLLPRIVATE void GetFocus();
SVT_DLLPRIVATE void StateChanged( StateChangedType nType );
SVT_DLLPRIVATE WinBits ImplInitStyle( WinBits nStyle );
DECL_DLLPRIVATE_LINK( ButtonHdl, PushButton* );
@@ -76,34 +76,34 @@ public:
FileControl( Window* pParent, WinBits nStyle, FileControlMode = 0 );
~FileControl();
- Edit& GetEdit() { return maEdit; }
- PushButton& GetButton() { return maButton; }
+ Edit& GetEdit() { return maEdit; }
+ PushButton& GetButton() { return maButton; }
- void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- void SetOpenDialog( BOOL bOpen ) { mbOpenDlg = bOpen; }
- BOOL IsOpenDialog() const { return mbOpenDlg; }
+ void SetOpenDialog( BOOL bOpen ) { mbOpenDlg = bOpen; }
+ BOOL IsOpenDialog() const { return mbOpenDlg; }
- void SetText( const XubString& rStr );
- XubString GetText() const;
- UniString GetSelectedText() const { return maEdit.GetSelected(); }
+ void SetText( const XubString& rStr );
+ XubString GetText() const;
+ UniString GetSelectedText() const { return maEdit.GetSelected(); }
- void SetSelection( const Selection& rSelection ) { maEdit.SetSelection( rSelection ); }
- Selection GetSelection() const { return maEdit.GetSelection(); }
+ void SetSelection( const Selection& rSelection ) { maEdit.SetSelection( rSelection ); }
+ Selection GetSelection() const { return maEdit.GetSelection(); }
- void SetReadOnly( BOOL bReadOnly = TRUE ) { maEdit.SetReadOnly( bReadOnly ); }
- BOOL IsReadOnly() const { return maEdit.IsReadOnly(); }
+ void SetReadOnly( BOOL bReadOnly = TRUE ) { maEdit.SetReadOnly( bReadOnly ); }
+ BOOL IsReadOnly() const { return maEdit.IsReadOnly(); }
//------
//manipulate the Button-Text:
- XubString GetButtonText() const { return maButtonText; }
- void SetButtonText( const XubString& rStr );
- void ResetButtonText();
-
+ XubString GetButtonText() const { return maButtonText; }
+ void SetButtonText( const XubString& rStr );
+ void ResetButtonText();
+
//------
//use this to manipulate the dialog bevore executing it:
- void SetDialogCreatedHdl( const Link& rLink ) { maDialogCreatedHdl = rLink; }
- const Link& GetDialogCreatedHdl() const { return maDialogCreatedHdl; }
+ void SetDialogCreatedHdl( const Link& rLink ) { maDialogCreatedHdl = rLink; }
+ const Link& GetDialogCreatedHdl() const { return maDialogCreatedHdl; }
};
#endif
diff --git a/svtools/inc/filedlg.hxx b/svtools/inc/filedlg.hxx
index 7f9452573fe1..2bd8246fab4a 100644
--- a/svtools/inc/filedlg.hxx
+++ b/svtools/inc/filedlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,28 +43,28 @@ class ImpSvFileDlg;
class SVT_DLLPUBLIC PathDialog : public ModalDialog
{
private:
- friend class FileDialog; // Imp...
+ friend class FileDialog; // Imp...
- ImpSvFileDlg* pImpFileDlg; // Implementation
- Link aOKHdlLink; // Link zum OK-Handler
+ ImpSvFileDlg* pImpFileDlg; // Implementation
+ Link aOKHdlLink; // Link zum OK-Handler
protected:
- UniString aDfltExt; // Default - Extension
+ UniString aDfltExt; // Default - Extension
public:
PathDialog( Window* pParent, WinBits nWinStyle = 0, BOOL bCreateDir = TRUE );
~PathDialog();
- virtual long OK();
+ virtual long OK();
- void SetPath( const UniString& rNewPath );
- void SetPath( const Edit& rEdit );
- UniString GetPath() const;
+ void SetPath( const UniString& rNewPath );
+ void SetPath( const Edit& rEdit );
+ UniString GetPath() const;
- void SetOKHdl( const Link& rLink ) { aOKHdlLink = rLink; }
- const Link& GetOKHdl() const { return aOKHdlLink; }
+ void SetOKHdl( const Link& rLink ) { aOKHdlLink = rLink; }
+ const Link& GetOKHdl() const { return aOKHdlLink; }
- virtual short Execute();
+ virtual short Execute();
};
// --------------
@@ -74,36 +74,36 @@ public:
class SVT_DLLPUBLIC FileDialog : public PathDialog
{
private:
- Link aFileHdlLink; // Link zum FileSelect-Handler
- Link aFilterHdlLink; // Link zum FilterSelect-Handler
+ Link aFileHdlLink; // Link zum FileSelect-Handler
+ Link aFilterHdlLink; // Link zum FilterSelect-Handler
public:
FileDialog( Window* pParent, WinBits nWinStyle );
~FileDialog();
- virtual void FileSelect();
- virtual void FilterSelect();
-
- void SetDefaultExt( const UniString& rExt ) { aDfltExt = rExt; }
- const UniString& GetDefaultExt() const { return aDfltExt; }
- void AddFilter( const UniString& rFilter, const UniString& rType );
- void RemoveFilter( const UniString& rFilter );
- void RemoveAllFilter();
- void SetCurFilter( const UniString& rFilter );
- UniString GetCurFilter() const;
- USHORT GetFilterCount() const;
- UniString GetFilterName( USHORT nPos ) const;
- UniString GetFilterType( USHORT nPos ) const;
-
- void SetFileSelectHdl( const Link& rLink ) { aFileHdlLink = rLink; }
- const Link& GetFileSelectHdl() const { return aFileHdlLink; }
- void SetFilterSelectHdl( const Link& rLink ) { aFilterHdlLink = rLink; }
- const Link& GetFilterSelectHdl() const { return aFilterHdlLink; }
-
- void SetOkButtonText( const UniString& rText );
- void SetCancelButtonText( const UniString& rText );
+ virtual void FileSelect();
+ virtual void FilterSelect();
+
+ void SetDefaultExt( const UniString& rExt ) { aDfltExt = rExt; }
+ const UniString& GetDefaultExt() const { return aDfltExt; }
+ void AddFilter( const UniString& rFilter, const UniString& rType );
+ void RemoveFilter( const UniString& rFilter );
+ void RemoveAllFilter();
+ void SetCurFilter( const UniString& rFilter );
+ UniString GetCurFilter() const;
+ USHORT GetFilterCount() const;
+ UniString GetFilterName( USHORT nPos ) const;
+ UniString GetFilterType( USHORT nPos ) const;
+
+ void SetFileSelectHdl( const Link& rLink ) { aFileHdlLink = rLink; }
+ const Link& GetFileSelectHdl() const { return aFileHdlLink; }
+ void SetFilterSelectHdl( const Link& rLink ) { aFilterHdlLink = rLink; }
+ const Link& GetFilterSelectHdl() const { return aFilterHdlLink; }
+
+ void SetOkButtonText( const UniString& rText );
+ void SetCancelButtonText( const UniString& rText );
};
-#endif // _FILEDLG_HXX
+#endif // _FILEDLG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/filedlg2.hrc b/svtools/inc/filedlg2.hrc
index a87bd6ebcad0..dff3413c5d2b 100644
--- a/svtools/inc/filedlg2.hrc
+++ b/svtools/inc/filedlg2.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -24,18 +24,18 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-#define STR_FILEDLG_SELECT 1000
-#define STR_FILEDLG_CANTCHDIR 1001
-#define STR_FILEDLG_OPEN 1002
-#define STR_FILEDLG_FILE 1003
-#define STR_FILEDLG_DIR 1004
-#define STR_FILEDLG_TYPE 1005
-#define STR_FILEDLG_CANTOPENFILE 1006
-#define STR_FILEDLG_CANTOPENDIR 1007
-#define STR_FILEDLG_OVERWRITE 1008
-#define STR_FILEDLG_GOUP 1009
-#define STR_FILEDLG_SAVE 1010
-#define STR_FILEDLG_DRIVES 1011
-#define STR_FILEDLG_HOME 1012
-#define STR_FILEDLG_NEWDIR 1013
-#define STR_FILEDLG_ASKNEWDIR 1014
+#define STR_FILEDLG_SELECT 1000
+#define STR_FILEDLG_CANTCHDIR 1001
+#define STR_FILEDLG_OPEN 1002
+#define STR_FILEDLG_FILE 1003
+#define STR_FILEDLG_DIR 1004
+#define STR_FILEDLG_TYPE 1005
+#define STR_FILEDLG_CANTOPENFILE 1006
+#define STR_FILEDLG_CANTOPENDIR 1007
+#define STR_FILEDLG_OVERWRITE 1008
+#define STR_FILEDLG_GOUP 1009
+#define STR_FILEDLG_SAVE 1010
+#define STR_FILEDLG_DRIVES 1011
+#define STR_FILEDLG_HOME 1012
+#define STR_FILEDLG_NEWDIR 1013
+#define STR_FILEDLG_ASKNEWDIR 1014
diff --git a/svtools/inc/fileview.hxx b/svtools/inc/fileview.hxx
index 31137017389e..162d9f32e4fb 100644
--- a/svtools/inc/fileview.hxx
+++ b/svtools/inc/fileview.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
*
************************************************************************/
#ifndef _SVT_FILEVIEW_HXX
-#define _SVT_FILEVIEW_HXX
+#define _SVT_FILEVIEW_HXX
#include "svtools/svtdllapi.h"
#include <com/sun/star/uno/Sequence.h>
@@ -40,13 +40,13 @@
// class SvtFileView -----------------------------------------------------
-#define FILEVIEW_ONLYFOLDER 0x0001
-#define FILEVIEW_MULTISELECTION 0x0002
+#define FILEVIEW_ONLYFOLDER 0x0001
+#define FILEVIEW_MULTISELECTION 0x0002
-#define FILEVIEW_SHOW_TITLE 0x0010
-#define FILEVIEW_SHOW_SIZE 0x0020
-#define FILEVIEW_SHOW_DATE 0x0040
-#define FILEVIEW_SHOW_ALL 0x0070
+#define FILEVIEW_SHOW_TITLE 0x0010
+#define FILEVIEW_SHOW_SIZE 0x0020
+#define FILEVIEW_SHOW_DATE 0x0040
+#define FILEVIEW_SHOW_ALL 0x0070
class ViewTabListBox_Impl;
class SvtFileView_Impl;
@@ -80,13 +80,13 @@ class SVT_DLLPUBLIC SvtFileView : public Control
{
private:
SvtFileView_Impl* mpImp;
-
+
::com::sun::star::uno::Sequence< ::rtl::OUString > mpBlackList;
- SVT_DLLPRIVATE void OpenFolder( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aContents );
+ SVT_DLLPRIVATE void OpenFolder( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aContents );
- DECL_DLLPRIVATE_LINK( HeaderSelect_Impl, HeaderBar * );
- DECL_DLLPRIVATE_LINK( HeaderEndDrag_Impl, HeaderBar * );
+ DECL_DLLPRIVATE_LINK( HeaderSelect_Impl, HeaderBar * );
+ DECL_DLLPRIVATE_LINK( HeaderEndDrag_Impl, HeaderBar * );
protected:
virtual void GetFocus();
@@ -97,17 +97,17 @@ public:
~SvtFileView();
const String& GetViewURL() const;
- String GetURL( SvLBoxEntry* pEntry ) const;
- String GetCurrentURL() const;
+ String GetURL( SvLBoxEntry* pEntry ) const;
+ String GetCurrentURL() const;
- sal_Bool GetParentURL( String& _rParentURL ) const;
- sal_Bool CreateNewFolder( const String& rNewFolder );
+ sal_Bool GetParentURL( String& _rParentURL ) const;
+ sal_Bool CreateNewFolder( const String& rNewFolder );
- void SetHelpId( sal_uInt32 nHelpId );
- sal_uInt32 GetHelpId( ) const;
- void SetSizePixel( const Size& rNewSize );
+ void SetHelpId( sal_uInt32 nHelpId );
+ sal_uInt32 GetHelpId( ) const;
+ void SetSizePixel( const Size& rNewSize );
using Window::SetPosSizePixel;
- virtual void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize );
+ virtual void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize );
/** initialize the view with the content of a folder given by URL, and aply an immediate filter
@@ -139,7 +139,7 @@ public:
/** initializes the view with the content of a folder given by an UCB content
*/
- sal_Bool Initialize( const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>& _xContent,
+ sal_Bool Initialize( const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent>& _xContent,
const String& rFilter );
/** reads the current content of the current folder again, and applies the given filter to it
@@ -181,28 +181,28 @@ public:
const FileViewAsyncAction* pAsyncDescriptor
);
- void SetNoSelection();
- void ResetCursor();
+ void SetNoSelection();
+ void ResetCursor();
- void SetSelectHdl( const Link& rHdl );
- void SetDoubleClickHdl( const Link& rHdl );
+ void SetSelectHdl( const Link& rHdl );
+ void SetDoubleClickHdl( const Link& rHdl );
void SetOpenDoneHdl( const Link& rHdl );
- ULONG GetSelectionCount() const;
- SvLBoxEntry* FirstSelected() const;
- SvLBoxEntry* NextSelected( SvLBoxEntry* pEntry ) const;
- void EnableAutoResize();
- void SetFocus();
+ ULONG GetSelectionCount() const;
+ SvLBoxEntry* FirstSelected() const;
+ SvLBoxEntry* NextSelected( SvLBoxEntry* pEntry ) const;
+ void EnableAutoResize();
+ void SetFocus();
void EnableContextMenu( sal_Bool bEnable );
void EnableDelete( sal_Bool bEnable );
- void EnableNameReplacing( sal_Bool bEnable = sal_True );
+ void EnableNameReplacing( sal_Bool bEnable = sal_True );
// translate folder names or display doc-title instead of file name
// EnableContextMenu( TRUE )/EnableDelete(TRUE) disable name replacing!
// save and load column size and sort order
String GetConfigString() const;
- void SetConfigString( const String& rCfgStr );
+ void SetConfigString( const String& rCfgStr );
void SetUrlFilter( const IUrlFilter* _pFilter );
const IUrlFilter* GetUrlFilter( ) const;
@@ -217,8 +217,8 @@ protected:
struct SvtContentEntry
{
- sal_Bool mbIsFolder;
- UniString maURL;
+ sal_Bool mbIsFolder;
+ UniString maURL;
SvtContentEntry( const UniString& rURL, sal_Bool bIsFolder ) :
mbIsFolder( bIsFolder ), maURL( rURL ) {}
diff --git a/svtools/inc/fltdefs.hxx b/svtools/inc/fltdefs.hxx
index 665945d6d3b2..aaf79885be54 100644
--- a/svtools/inc/fltdefs.hxx
+++ b/svtools/inc/fltdefs.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,20 +37,20 @@
#if defined ( WIN ) || defined ( WNT )
-#define RGBQUAD RGBQUADWIN
+#define RGBQUAD RGBQUADWIN
typedef struct RGBQUAD
{
- BYTE rgbBlue;
- BYTE rgbGreen;
- BYTE rgbRed;
- BYTE rgbReserved;
+ BYTE rgbBlue;
+ BYTE rgbGreen;
+ BYTE rgbRed;
+ BYTE rgbReserved;
RGBQUAD( const BYTE cRed = 0, const BYTE cGreen = 0, const BYTE cBlue = 0 ) :
- rgbBlue ( cBlue ),
- rgbGreen ( cGreen ),
- rgbRed ( cRed ),
- rgbReserved ( 0 ) {};
+ rgbBlue ( cBlue ),
+ rgbGreen ( cGreen ),
+ rgbRed ( cRed ),
+ rgbReserved ( 0 ) {};
} RGBQUAD;
@@ -60,11 +60,11 @@ typedef BYTE huge* PDIBBYTE;
#define GLOBALALLOC(nSize) ((PDIBBYTE)GlobalLock(GlobalAlloc(GHND,(nSize))))
#define GLOBALHANDLE(pPointer) ((HGLOBAL)GlobalHandle((*((size_t*)&(pPointer)+1))))
#define GLOBALFREE(pPointer) (GlobalUnlock(GLOBALHANDLE((pPointer))))
-#define MEMSET( pDst, cByte, nCount ) \
-{ \
- PDIBBYTE pTmp = (PDIBBYTE) pDst; \
+#define MEMSET( pDst, cByte, nCount ) \
+{ \
+ PDIBBYTE pTmp = (PDIBBYTE) pDst; \
for ( ULONG i = 0; i < nCount; i++ )\
- *pTmp++ = cByte; \
+ *pTmp++ = cByte; \
}
#else
@@ -93,59 +93,59 @@ void ReadBitmap( SvStream& rIStream, Bitmap& rBmp, USHORT nDefaultHeight = 0, UL
void ReplaceInfoHeader( SvStream& rStm, BYTE* pBuffer );
#ifdef OS2
-#define RGBQUAD RGBQUADOS2
-#define BITMAPFILEHEADER BITMAPFILEHEADEROS2
-#define PBITMAPFILEHEADER PBITMAPFILEHEADEROS2
-#define BITMAPINFOHEADER BITMAPINFOHEADEROS2
-#define PBITMAPINFOHEADER PBITMAPINFOHEADEROS2
-#define BITMAPINFO BITMAPINFOOS2
-#define PBITMAPINFO PBITMAPINFOOS2
+#define RGBQUAD RGBQUADOS2
+#define BITMAPFILEHEADER BITMAPFILEHEADEROS2
+#define PBITMAPFILEHEADER PBITMAPFILEHEADEROS2
+#define BITMAPINFOHEADER BITMAPINFOHEADEROS2
+#define PBITMAPINFOHEADER PBITMAPINFOHEADEROS2
+#define BITMAPINFO BITMAPINFOOS2
+#define PBITMAPINFO PBITMAPINFOOS2
#endif
typedef struct RGBQUAD
{
- BYTE rgbBlue;
- BYTE rgbGreen;
- BYTE rgbRed;
- BYTE rgbReserved;
+ BYTE rgbBlue;
+ BYTE rgbGreen;
+ BYTE rgbRed;
+ BYTE rgbReserved;
RGBQUAD( const BYTE cRed = 0, const BYTE cGreen = 0, const BYTE cBlue = 0 ) :
- rgbBlue ( cBlue ),
- rgbGreen ( cGreen ),
- rgbRed ( cRed ),
- rgbReserved ( 0 ) {};
+ rgbBlue ( cBlue ),
+ rgbGreen ( cGreen ),
+ rgbRed ( cRed ),
+ rgbReserved ( 0 ) {};
} RGBQUAD;
typedef struct BITMAPFILEHEADER
{
- UINT16 bfType;
- UINT32 bfSize;
- UINT16 bfReserved1;
- UINT16 bfReserved2;
- UINT32 bfOffBits;
+ UINT16 bfType;
+ UINT32 bfSize;
+ UINT16 bfReserved1;
+ UINT16 bfReserved2;
+ UINT32 bfOffBits;
} BITMAPFILEHEADER;
typedef BITMAPFILEHEADER* PBITMAPFILEHEADER;
typedef struct BITMAPINFOHEADER
{
- UINT32 biSize;
- UINT32 biWidth;
- UINT32 biHeight;
- UINT16 biPlanes;
- UINT16 biBitCount;
- UINT32 biCompression;
- UINT32 biSizeImage;
- UINT32 biXPelsPerMeter;
- UINT32 biYPelsPerMeter;
- UINT32 biClrUsed;
- UINT32 biClrImportant;
+ UINT32 biSize;
+ UINT32 biWidth;
+ UINT32 biHeight;
+ UINT16 biPlanes;
+ UINT16 biBitCount;
+ UINT32 biCompression;
+ UINT32 biSizeImage;
+ UINT32 biXPelsPerMeter;
+ UINT32 biYPelsPerMeter;
+ UINT32 biClrUsed;
+ UINT32 biClrImportant;
} BITMAPINFOHEADER;
typedef BITMAPINFOHEADER* PBITMAPINFOHEADER;
typedef struct BITMAPINFO
{
- BITMAPINFOHEADER bmiHeader;
- RGBQUAD bmiColors[1];
+ BITMAPINFOHEADER bmiHeader;
+ RGBQUAD bmiColors[1];
} BITMAPINFO;
typedef BITMAPINFO* PBITMAPINFO;
diff --git a/svtools/inc/fontsubstconfig.hxx b/svtools/inc/fontsubstconfig.hxx
index f7bce249e2a3..38a87fc3cadb 100644
--- a/svtools/inc/fontsubstconfig.hxx
+++ b/svtools/inc/fontsubstconfig.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,31 +36,31 @@ struct SvtFontSubstConfig_Impl;
//-----------------------------------------------------------------------------
struct SubstitutionStruct
{
- rtl::OUString sFont;
- rtl::OUString sReplaceBy;
- sal_Bool bReplaceAlways;
- sal_Bool bReplaceOnScreenOnly;
+ rtl::OUString sFont;
+ rtl::OUString sReplaceBy;
+ sal_Bool bReplaceAlways;
+ sal_Bool bReplaceOnScreenOnly;
};
//-----------------------------------------------------------------------------
class SVT_DLLPUBLIC SvtFontSubstConfig : public utl::ConfigItem
{
- sal_Bool bIsEnabled;
- SvtFontSubstConfig_Impl* pImpl;
+ sal_Bool bIsEnabled;
+ SvtFontSubstConfig_Impl* pImpl;
public:
SvtFontSubstConfig();
virtual ~SvtFontSubstConfig();
- virtual void Commit();
+ virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& _rPropertyNames);
- sal_Bool IsEnabled() const {return bIsEnabled;}
- void Enable(sal_Bool bSet) {bIsEnabled = bSet; SetModified();}
+ sal_Bool IsEnabled() const {return bIsEnabled;}
+ void Enable(sal_Bool bSet) {bIsEnabled = bSet; SetModified();}
- sal_Int32 SubstitutionCount() const;
- void ClearSubstitutions();
- const SubstitutionStruct* GetSubstitution(sal_Int32 nPos);
- void AddSubstitution(const SubstitutionStruct& rToAdd);
- void Apply();
+ sal_Int32 SubstitutionCount() const;
+ void ClearSubstitutions();
+ const SubstitutionStruct* GetSubstitution(sal_Int32 nPos);
+ void AddSubstitution(const SubstitutionStruct& rToAdd);
+ void Apply();
};
#endif
diff --git a/svtools/inc/framestatuslistener.hxx b/svtools/inc/framestatuslistener.hxx
index cedb4032d25f..fb524da93b44 100644
--- a/svtools/inc/framestatuslistener.hxx
+++ b/svtools/inc/framestatuslistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,12 +58,12 @@ class SVT_DLLPUBLIC FrameStatusListener : public ::com::sun::star::frame::XStatu
FrameStatusListener( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame );
virtual ~FrameStatusListener();
-
+
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > getFrameInterface() const;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getServiceManager() const;
-
+
void updateStatus( const rtl::OUString aCommandURL );
-
+
// methods to support status forwarder, known by the old sfx2 toolbox controller implementation
void addStatusListener( const rtl::OUString& aCommandURL );
void removeStatusListener( const rtl::OUString& aCommandURL );
@@ -80,22 +80,22 @@ class SVT_DLLPUBLIC FrameStatusListener : public ::com::sun::star::frame::XStatu
virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
-
+
// XEventListener
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ) = 0;
// XFrameActionListener
virtual void SAL_CALL frameAction( const com::sun::star::frame::FrameActionEvent& Action ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
protected:
struct Listener
{
Listener( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >& rDispatch ) :
aURL( rURL ), xDispatch( rDispatch ) {}
-
+
::com::sun::star::util::URL aURL;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > xDispatch;
};
@@ -104,7 +104,7 @@ class SVT_DLLPUBLIC FrameStatusListener : public ::com::sun::star::frame::XStatu
com::sun::star::uno::Reference< com::sun::star::frame::XDispatch >,
::rtl::OUStringHash,
::std::equal_to< ::rtl::OUString > > URLToDispatchMap;
-
+
sal_Bool m_bInitialized : 1,
m_bDisposed : 1;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
diff --git a/svtools/inc/helpagentwindow.hxx b/svtools/inc/helpagentwindow.hxx
index 7d2987eb6f96..5556a0e48216 100644
--- a/svtools/inc/helpagentwindow.hxx
+++ b/svtools/inc/helpagentwindow.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,10 +54,10 @@ namespace svt
class SVT_DLLPUBLIC HelpAgentWindow : public FloatingWindow
{
protected:
- Window* m_pCloser;
- IHelpAgentCallback* m_pCallback;
- Size m_aPreferredSize;
- Image m_aPicture;
+ Window* m_pCloser;
+ IHelpAgentCallback* m_pCallback;
+ Size m_aPreferredSize;
+ Image m_aPicture;
public:
HelpAgentWindow( Window* _pParent );
@@ -67,8 +67,8 @@ namespace svt
const Size& getPreferredSizePixel() const { return m_aPreferredSize; }
// callback handler maintainance
- void setCallback(IHelpAgentCallback* _pCB) { m_pCallback = _pCB; }
- IHelpAgentCallback* getCallback() const { return m_pCallback; }
+ void setCallback(IHelpAgentCallback* _pCB) { m_pCallback = _pCB; }
+ IHelpAgentCallback* getCallback() const { return m_pCallback; }
protected:
virtual void Resize();
@@ -78,13 +78,13 @@ namespace svt
DECL_LINK( OnButtonClicked, Window* );
private:
- SVT_DLLPRIVATE Size implOptimalButtonSize( const Image& _rButtonImage );
+ SVT_DLLPRIVATE Size implOptimalButtonSize( const Image& _rButtonImage );
};
//........................................................................
-} // namespace svt
+} // namespace svt
//........................................................................
-#endif // _SVTOOLS_HELPAGENTWIDNOW_HXX_
+#endif // _SVTOOLS_HELPAGENTWIDNOW_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/htmlkywd.hxx b/svtools/inc/htmlkywd.hxx
index 999ee21d236c..1bafd7ea5b44 100644
--- a/svtools/inc/htmlkywd.hxx
+++ b/svtools/inc/htmlkywd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/htmltokn.h b/svtools/inc/htmltokn.h
index 29169d6959fe..9ef12c830d47 100644
--- a/svtools/inc/htmltokn.h
+++ b/svtools/inc/htmltokn.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,13 +50,13 @@ int GetHTMLOption( const String& rName );
SVT_DLLPUBLIC ULONG GetHTMLColor( const String& rName );
// beginnen immer ab 256, groesser als ein char
-const int HTML_TOKEN_START = 0x100;
-const int HTML_TOKEN_ONOFF = 0x200;
-const int HTML_TOKEN_MICROSOFT = 0x1000;
+const int HTML_TOKEN_START = 0x100;
+const int HTML_TOKEN_ONOFF = 0x200;
+const int HTML_TOKEN_MICROSOFT = 0x1000;
enum HTML_TOKEN_IDS
{
- HTML_TEXTTOKEN = HTML_TOKEN_START,
+ HTML_TEXTTOKEN = HTML_TOKEN_START,
HTML_SINGLECHAR,
HTML_NEWPARA,
HTML_TABCHAR,
@@ -68,22 +68,22 @@ enum HTML_TOKEN_IDS
HTML_BASE, // HTML 3.0
HTML_COMMENT,
HTML_DOCTYPE,
- HTML_EMBED, // Netscape 2.0 </EMBED> ignorieren
+ HTML_EMBED, // Netscape 2.0 </EMBED> ignorieren
HTML_FIGUREOVERLAY, // HTML 3.0
- HTML_HORZRULE, // </HR> ignorieren
+ HTML_HORZRULE, // </HR> ignorieren
HTML_HORZTAB, // HTML 3.0
- HTML_IMAGE, // </IMG> ignorieren
- HTML_INPUT, // </INPUT> ignorieren
+ HTML_IMAGE, // </IMG> ignorieren
+ HTML_INPUT, // </INPUT> ignorieren
HTML_ISINDEX, // HTML 3.0
- HTML_LINEBREAK, // </BR> -> <BR>
+ HTML_LINEBREAK, // </BR> -> <BR>
HTML_LINK, // HTML 3.0
- HTML_META, // HTML 3.0 </META> ignorieren
+ HTML_META, // HTML 3.0 </META> ignorieren
HTML_NEXTID, // HTML 3.0
HTML_OF, // HTML 3.0
- HTML_OPTION, // </OPTION> ignorieren
+ HTML_OPTION, // </OPTION> ignorieren
HTML_PARAM, // HotJava
HTML_RANGE, // HTML 3.0
- HTML_SPACER, // Netscape 3.0b5 // </SPACER> ignorieren
+ HTML_SPACER, // Netscape 3.0b5 // </SPACER> ignorieren
HTML_WBR, // Netscape
// Tokens, die ueber HTML-Charakter erkannt werden
@@ -91,7 +91,7 @@ enum HTML_TOKEN_IDS
HTML_SOFTHYPH,
// diese werden wieder abgeschaltet,
- // der off-Wert liegt immer dahinter (+1) !!
+ // der off-Wert liegt immer dahinter (+1) !!
HTML_ABBREVIATION_ON = HTML_TOKEN_ONOFF, // HTML 3.0
HTML_ABBREVIATION_OFF, // HTML 3.0
HTML_ABOVE_ON, // HTML 3.0
@@ -250,8 +250,8 @@ enum HTML_TOKEN_IDS
HTML_ROW_OFF, // HTML 3.0
HTML_SAMPLE_ON,
HTML_SAMPLE_OFF,
- HTML_SCRIPT_ON, // HTML 3.2
- HTML_SCRIPT_OFF, // HTML 3.2
+ HTML_SCRIPT_ON, // HTML 3.2
+ HTML_SCRIPT_OFF, // HTML 3.2
HTML_SELECT_ON,
HTML_SELECT_OFF,
HTML_SHORTQUOTE_ON, // HTML 3.0
@@ -338,14 +338,14 @@ enum HTML_TOKEN_IDS
// HTML Attribut-Token (=Optionen)
// beginnen immer ab 256, groesser als ein char
-const int HTML_OPTION_START = 0x100;
+const int HTML_OPTION_START = 0x100;
enum HTML_OPTION_IDS
{
-HTML_OPTION_BOOL_START = HTML_OPTION_START,
+HTML_OPTION_BOOL_START = HTML_OPTION_START,
// Attribute ohne Wert
- HTML_O_BOX = HTML_OPTION_BOOL_START,
+ HTML_O_BOX = HTML_OPTION_BOOL_START,
HTML_O_CHECKED,
HTML_O_COMPACT,
HTML_O_CONTINUE,
@@ -368,8 +368,8 @@ HTML_OPTION_BOOL_START = HTML_OPTION_START,
HTML_OPTION_BOOL_END,
// Attribute mit einem String als Wert
-HTML_OPTION_STRING_START = HTML_OPTION_BOOL_END,
- HTML_O_ABOVE = HTML_OPTION_STRING_START,
+HTML_OPTION_STRING_START = HTML_OPTION_BOOL_END,
+ HTML_O_ABOVE = HTML_OPTION_STRING_START,
HTML_O_ACCEPT,
HTML_O_ACCESSKEY,
HTML_O_ADD_DATE, // Netscape internal
@@ -411,8 +411,8 @@ HTML_OPTION_STRING_START = HTML_OPTION_BOOL_END,
HTML_OPTION_STRING_END,
// Attribute mit einem SGML-Identifier als Wert
-HTML_OPTION_SGMLID_START = HTML_OPTION_STRING_END,
- HTML_O_FROM = HTML_OPTION_SGMLID_START,
+HTML_OPTION_SGMLID_START = HTML_OPTION_STRING_END,
+ HTML_O_FROM = HTML_OPTION_SGMLID_START,
HTML_O_ID,
HTML_O_TARGET, // Netscape 2.0
HTML_O_TO,
@@ -420,8 +420,8 @@ HTML_OPTION_SGMLID_START = HTML_OPTION_STRING_END,
HTML_OPTION_SGMLID_END,
// Attribute mit einem URI als Wert
-HTML_OPTION_URI_START = HTML_OPTION_SGMLID_END,
- HTML_O_ACTION = HTML_OPTION_URI_START,
+HTML_OPTION_URI_START = HTML_OPTION_SGMLID_END,
+ HTML_O_ACTION = HTML_OPTION_URI_START,
HTML_O_ARCHIVE,
HTML_O_BACKGROUND,
HTML_O_CLASSID,
@@ -438,14 +438,14 @@ HTML_OPTION_URI_START = HTML_OPTION_SGMLID_END,
HTML_OPTION_URI_END,
// Attribute mit Entity-Namen als Wert
-HTML_OPTION_ENTITY_START = HTML_OPTION_URI_END,
- HTML_O_DINGBAT = HTML_OPTION_ENTITY_START,
+HTML_OPTION_ENTITY_START = HTML_OPTION_URI_END,
+ HTML_O_DINGBAT = HTML_OPTION_ENTITY_START,
HTML_O_SYM,
HTML_OPTION_ENTITY_END,
// Attribute mit einer Farbe als Wert (alle Netscape)
-HTML_OPTION_COLOR_START = HTML_OPTION_ENTITY_END,
- HTML_O_ALINK = HTML_OPTION_COLOR_START,
+HTML_OPTION_COLOR_START = HTML_OPTION_ENTITY_END,
+ HTML_O_ALINK = HTML_OPTION_COLOR_START,
HTML_O_BGCOLOR,
HTML_O_BORDERCOLOR, // IExplorer 2.0
HTML_O_BORDERCOLORLIGHT, // IExplorer 2.0
@@ -457,8 +457,8 @@ HTML_OPTION_COLOR_START = HTML_OPTION_ENTITY_END,
HTML_OPTION_COLOR_END,
// Attribute mit einem numerischen Wert
-HTML_OPTION_NUMBER_START = HTML_OPTION_COLOR_END,
- HTML_O_BORDER = HTML_OPTION_NUMBER_START,
+HTML_OPTION_NUMBER_START = HTML_OPTION_COLOR_END,
+ HTML_O_BORDER = HTML_OPTION_NUMBER_START,
HTML_O_CELLSPACING, // HTML3 Table Model Draft
HTML_O_CELLPADDING, // HTML3 Table Model Draft
HTML_O_CHAROFF, // HTML3 Table Model Draft
@@ -467,7 +467,7 @@ HTML_OPTION_NUMBER_START = HTML_OPTION_COLOR_END,
HTML_O_GUTTER, // Netscape 3.0b5
HTML_O_INDENT,
HTML_O_HEIGHT,
- HTML_O_HSPACE, // Netscape
+ HTML_O_HSPACE, // Netscape
HTML_O_LEFT,
HTML_O_LEFTMARGIN, // IExplorer 2.0
HTML_O_LOOP, // IExplorer 2.0
@@ -488,7 +488,7 @@ HTML_OPTION_NUMBER_START = HTML_OPTION_COLOR_END,
HTML_O_TABINDEX,
HTML_O_TOP,
HTML_O_TOPMARGIN, // IExplorer 2.0
- HTML_O_VSPACE, // Netscape
+ HTML_O_VSPACE, // Netscape
HTML_O_WEIGHT,
HTML_O_WIDTH,
HTML_O_X,
@@ -497,8 +497,8 @@ HTML_OPTION_NUMBER_START = HTML_OPTION_COLOR_END,
HTML_OPTION_NUMBER_END,
// Attribute mit Enum-Werten
-HTML_OPTION_ENUM_START = HTML_OPTION_NUMBER_END,
- HTML_O_BEHAVIOR = HTML_OPTION_ENUM_START, // IExplorer 2.0
+HTML_OPTION_ENUM_START = HTML_OPTION_NUMBER_END,
+ HTML_O_BEHAVIOR = HTML_OPTION_ENUM_START, // IExplorer 2.0
HTML_O_BGPROPERTIES, // IExplorer 2.0
HTML_O_CLEAR,
HTML_O_DIR,
@@ -522,39 +522,39 @@ HTML_OPTION_ENUM_START = HTML_OPTION_NUMBER_END,
HTML_OPTION_ENUM_END,
// Attribute mit Script-Code als Wert
-HTML_OPTION_SCRIPT_START = HTML_OPTION_ENUM_END,
- HTML_O_ONABORT = HTML_OPTION_SCRIPT_START, // JavaScaript
- HTML_O_ONBLUR, // JavaScript
- HTML_O_ONCHANGE, // JavaScript
- HTML_O_ONCLICK, // JavaScript
- HTML_O_ONERROR, // JavaScript
- HTML_O_ONFOCUS, // JavaScript
- HTML_O_ONLOAD, // JavaScript
- HTML_O_ONMOUSEOUT, // JavaScript
- HTML_O_ONMOUSEOVER, // JavaScript
- HTML_O_ONRESET, // JavaScript
- HTML_O_ONSELECT, // JavaScript
- HTML_O_ONSUBMIT, // JavaScript
- HTML_O_ONUNLOAD, // JavaScript
-
- HTML_O_SDONABORT, // StarBasic
- HTML_O_SDONBLUR, // StarBasic
- HTML_O_SDONCHANGE, // StarBasic
- HTML_O_SDONCLICK, // StarBasic
- HTML_O_SDONERROR, // StarBasic
- HTML_O_SDONFOCUS, // StarBasic
- HTML_O_SDONLOAD, // StarBasic
- HTML_O_SDONMOUSEOUT, // StarBasic
- HTML_O_SDONMOUSEOVER, // StarBasic
- HTML_O_SDONRESET, // StarBasic
- HTML_O_SDONSELECT, // StarBasic
- HTML_O_SDONSUBMIT, // StarBasic
- HTML_O_SDONUNLOAD, // StarBasic
+HTML_OPTION_SCRIPT_START = HTML_OPTION_ENUM_END,
+ HTML_O_ONABORT = HTML_OPTION_SCRIPT_START, // JavaScaript
+ HTML_O_ONBLUR, // JavaScript
+ HTML_O_ONCHANGE, // JavaScript
+ HTML_O_ONCLICK, // JavaScript
+ HTML_O_ONERROR, // JavaScript
+ HTML_O_ONFOCUS, // JavaScript
+ HTML_O_ONLOAD, // JavaScript
+ HTML_O_ONMOUSEOUT, // JavaScript
+ HTML_O_ONMOUSEOVER, // JavaScript
+ HTML_O_ONRESET, // JavaScript
+ HTML_O_ONSELECT, // JavaScript
+ HTML_O_ONSUBMIT, // JavaScript
+ HTML_O_ONUNLOAD, // JavaScript
+
+ HTML_O_SDONABORT, // StarBasic
+ HTML_O_SDONBLUR, // StarBasic
+ HTML_O_SDONCHANGE, // StarBasic
+ HTML_O_SDONCLICK, // StarBasic
+ HTML_O_SDONERROR, // StarBasic
+ HTML_O_SDONFOCUS, // StarBasic
+ HTML_O_SDONLOAD, // StarBasic
+ HTML_O_SDONMOUSEOUT, // StarBasic
+ HTML_O_SDONMOUSEOVER, // StarBasic
+ HTML_O_SDONRESET, // StarBasic
+ HTML_O_SDONSELECT, // StarBasic
+ HTML_O_SDONSUBMIT, // StarBasic
+ HTML_O_SDONUNLOAD, // StarBasic
HTML_OPTION_SCRIPT_END,
// Attribute mit Kontext-abhaengigen Werten
-HTML_OPTION_CONTEXT_START = HTML_OPTION_SCRIPT_END,
- HTML_O_ALIGN = HTML_OPTION_CONTEXT_START,
+HTML_OPTION_CONTEXT_START = HTML_OPTION_SCRIPT_END,
+ HTML_O_ALIGN = HTML_OPTION_CONTEXT_START,
HTML_O_COLS, // Netscape 2.0 vs HTML 2.0
HTML_O_ROWS, // Netscape 2.0 vs HTML 2.0
HTML_O_SIZE,
@@ -563,10 +563,10 @@ HTML_OPTION_CONTEXT_START = HTML_OPTION_SCRIPT_END,
HTML_OPTION_CONTEXT_END,
// eine unbekannte Option
-HTML_O_UNKNOWN = HTML_OPTION_CONTEXT_END,
+HTML_O_UNKNOWN = HTML_OPTION_CONTEXT_END,
HTML_OPTION_END
};
-#endif // _HTMLTOKN_H
+#endif // _HTMLTOKN_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/imagemgr.hrc b/svtools/inc/imagemgr.hrc
index 19cc2942d6f4..0354d8d3fc9e 100644
--- a/svtools/inc/imagemgr.hrc
+++ b/svtools/inc/imagemgr.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,8 +100,8 @@
#define IMG_RELATION (IMAGELIST_START + 163)
#define IMG_IMPRESSPACKED (IMAGELIST_START + 165)
#define IMG_NEWFROMTEMPLATE (IMAGELIST_START + 166)
-#define IMG_POWERPOINT (IMAGELIST_START + 167)
-#define IMG_POWERPOINTTEMPLATE (IMAGELIST_START + 168)
+#define IMG_POWERPOINT (IMAGELIST_START + 167)
+#define IMG_POWERPOINTTEMPLATE (IMAGELIST_START + 168)
#define IMG_OO_DATABASE_DOC (IMAGELIST_START + 169)
#define IMG_OO_DRAW_DOC (IMAGELIST_START + 170)
#define IMG_OO_MATH_DOC (IMAGELIST_START + 171)
@@ -156,13 +156,13 @@
#define STR_DESCRIPTION_DRAW_TEMPLATE (RID_DESCRIPTION_START + 36)
#define STR_DESCRIPTION_IMPRESS_TEMPLATE (RID_DESCRIPTION_START + 37)
#define STR_DESCRIPTION_WRITER_TEMPLATE (RID_DESCRIPTION_START + 38)
-#define STR_DESCRIPTION_LOCALE_VOLUME (RID_DESCRIPTION_START + 39)
-#define STR_DESCRIPTION_FLOPPY_VOLUME (RID_DESCRIPTION_START + 40)
+#define STR_DESCRIPTION_LOCALE_VOLUME (RID_DESCRIPTION_START + 39)
+#define STR_DESCRIPTION_FLOPPY_VOLUME (RID_DESCRIPTION_START + 40)
#define STR_DESCRIPTION_CDROM_VOLUME (RID_DESCRIPTION_START + 41)
#define STR_DESCRIPTION_REMOTE_VOLUME (RID_DESCRIPTION_START + 42)
-#define STR_DESCRIPTION_POWERPOINT (RID_DESCRIPTION_START + 43)
-#define STR_DESCRIPTION_POWERPOINT_TEMPLATE (RID_DESCRIPTION_START + 44)
-#define STR_DESCRIPTION_POWERPOINT_SHOW (RID_DESCRIPTION_START + 45)
+#define STR_DESCRIPTION_POWERPOINT (RID_DESCRIPTION_START + 43)
+#define STR_DESCRIPTION_POWERPOINT_TEMPLATE (RID_DESCRIPTION_START + 44)
+#define STR_DESCRIPTION_POWERPOINT_SHOW (RID_DESCRIPTION_START + 45)
#define STR_DESCRIPTION_SXMATH_DOC (RID_DESCRIPTION_START + 46)
#define STR_DESCRIPTION_SXCHART_DOC (RID_DESCRIPTION_START + 47)
#define STR_DESCRIPTION_SXDRAW_DOC (RID_DESCRIPTION_START + 48)
diff --git a/svtools/inc/imagemgr.hxx b/svtools/inc/imagemgr.hxx
index a99aa44b749d..0f584d2c7a82 100644
--- a/svtools/inc/imagemgr.hxx
+++ b/svtools/inc/imagemgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,17 +42,17 @@ namespace svtools {
struct VolumeInfo
{
- sal_Bool m_bIsVolume;
- sal_Bool m_bIsRemote;
- sal_Bool m_bIsRemoveable;
- sal_Bool m_bIsFloppy;
- sal_Bool m_bIsCompactDisc;
+ sal_Bool m_bIsVolume;
+ sal_Bool m_bIsRemote;
+ sal_Bool m_bIsRemoveable;
+ sal_Bool m_bIsFloppy;
+ sal_Bool m_bIsCompactDisc;
VolumeInfo() :
- m_bIsVolume ( sal_False ),
- m_bIsRemote ( sal_False ),
- m_bIsRemoveable ( sal_False ),
- m_bIsFloppy ( sal_False ),
+ m_bIsVolume ( sal_False ),
+ m_bIsRemote ( sal_False ),
+ m_bIsRemoveable ( sal_False ),
+ m_bIsFloppy ( sal_False ),
m_bIsCompactDisc( sal_False ) {}
VolumeInfo( sal_Bool _bIsVolume,
@@ -60,10 +60,10 @@ struct VolumeInfo
sal_Bool _bIsRemoveable,
sal_Bool _bIsFloppy,
sal_Bool _bIsCompactDisc ) :
- m_bIsVolume ( _bIsVolume ),
- m_bIsRemote ( _bIsRemote ),
- m_bIsRemoveable ( _bIsRemoveable ),
- m_bIsFloppy ( _bIsFloppy ),
+ m_bIsVolume ( _bIsVolume ),
+ m_bIsRemote ( _bIsRemote ),
+ m_bIsRemoveable ( _bIsRemoveable ),
+ m_bIsFloppy ( _bIsFloppy ),
m_bIsCompactDisc( _bIsCompactDisc ) {}
};
@@ -72,24 +72,24 @@ struct VolumeInfo
class SvFileInformationManager
{
private:
- SVT_DLLPRIVATE static String GetDescription_Impl( const INetURLObject& rObject, sal_Bool bDetectFolder );
+ SVT_DLLPRIVATE static String GetDescription_Impl( const INetURLObject& rObject, sal_Bool bDetectFolder );
public:
// depricated, because no high contrast mode
- SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
- static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
- static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig = sal_False );
- SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig = sal_False );
+ SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
+ static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig = sal_False );
+ static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig = sal_False );
+ SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig = sal_False );
// now with high contrast mode
- SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
- SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
- SVT_DLLPUBLIC static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
- SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig, sal_Bool bHighContrast );
+ SVT_DLLPUBLIC static Image GetImage( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
+ SVT_DLLPUBLIC static Image GetFileImage( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
+ SVT_DLLPUBLIC static Image GetImageNoDefault( const INetURLObject& rURL, sal_Bool bBig, sal_Bool bHighContrast );
+ SVT_DLLPUBLIC static Image GetFolderImage( const svtools::VolumeInfo& rInfo, sal_Bool bBig, sal_Bool bHighContrast );
- SVT_DLLPUBLIC static String GetDescription( const INetURLObject& rObject );
- SVT_DLLPUBLIC static String GetFileDescription( const INetURLObject& rObject );
- SVT_DLLPUBLIC static String GetFolderDescription( const svtools::VolumeInfo& rInfo );
+ SVT_DLLPUBLIC static String GetDescription( const INetURLObject& rObject );
+ SVT_DLLPUBLIC static String GetFileDescription( const INetURLObject& rObject );
+ SVT_DLLPUBLIC static String GetFolderDescription( const svtools::VolumeInfo& rInfo );
};
#endif
diff --git a/svtools/inc/imageresourceaccess.hxx b/svtools/inc/imageresourceaccess.hxx
index 3999ce908be5..7a5068f8b614 100644
--- a/svtools/inc/imageresourceaccess.hxx
+++ b/svtools/inc/imageresourceaccess.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/imgdef.hxx b/svtools/inc/imgdef.hxx
index d10585a73caa..133b0bb4ff55 100644
--- a/svtools/inc/imgdef.hxx
+++ b/svtools/inc/imgdef.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,9 +36,9 @@ enum SfxSymbolsSize
SFX_SYMBOLS_SIZE_AUTO
};
-#define SFX_TOOLBOX_CHANGESYMBOLSET 0x0001
-#define SFX_TOOLBOX_CHANGEOUTSTYLE 0x0002
-#define SFX_TOOLBOX_CHANGEBUTTONTYPE 0x0004
+#define SFX_TOOLBOX_CHANGESYMBOLSET 0x0001
+#define SFX_TOOLBOX_CHANGEOUTSTYLE 0x0002
+#define SFX_TOOLBOX_CHANGEBUTTONTYPE 0x0004
#endif // _SVTOOLS_IMGDEF_HXX
diff --git a/svtools/inc/indexentryres.hxx b/svtools/inc/indexentryres.hxx
index 56424cc00c7e..3d49694471de 100644
--- a/svtools/inc/indexentryres.hxx
+++ b/svtools/inc/indexentryres.hxx
@@ -8,7 +8,7 @@
class IndexEntryRessourceData;
-class SVT_DLLPUBLIC IndexEntryRessource
+class SVT_DLLPUBLIC IndexEntryRessource
{
private:
IndexEntryRessourceData *mp_Data;
diff --git a/svtools/inc/inetimg.hxx b/svtools/inc/inetimg.hxx
index 22a4af175ca9..ce941b55f202 100644
--- a/svtools/inc/inetimg.hxx
+++ b/svtools/inc/inetimg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,21 +39,21 @@ class SotDataMemberObject;
class INetImage
{
- String aImageURL;
- String aTargetURL;
- String aTargetFrame;
- String aAlternateText;
- Size aSizePixel;
+ String aImageURL;
+ String aTargetURL;
+ String aTargetFrame;
+ String aAlternateText;
+ Size aSizePixel;
protected:
- String CopyExchange() const;
- void PasteExchange( const String& rString );
+ String CopyExchange() const;
+ void PasteExchange( const String& rString );
- void SetImageURL( const String& rS ) { aImageURL = rS; }
- void SetTargetURL( const String& rS ) { aTargetURL = rS; }
- void SetTargetFrame( const String& rS ) { aTargetFrame = rS; }
- void SetAlternateText( const String& rS ){ aAlternateText = rS; }
- void SetSizePixel( const Size& rSize ) { aSizePixel = rSize; }
+ void SetImageURL( const String& rS ) { aImageURL = rS; }
+ void SetTargetURL( const String& rS ) { aTargetURL = rS; }
+ void SetTargetFrame( const String& rS ) { aTargetFrame = rS; }
+ void SetAlternateText( const String& rS ){ aAlternateText = rS; }
+ void SetSizePixel( const Size& rSize ) { aSizePixel = rSize; }
public:
INetImage(
@@ -62,7 +62,7 @@ public:
const String& rTargetFrame,
const String& rAlternateText,
const Size& rSizePixel )
- : aImageURL( rImageURL ),
+ : aImageURL( rImageURL ),
aTargetURL( rTargetURL ),
aTargetFrame( rTargetFrame ),
aAlternateText( rAlternateText ),
@@ -71,11 +71,11 @@ public:
INetImage()
{}
- const String& GetImageURL() const { return aImageURL; }
- const String& GetTargetURL() const { return aTargetURL; }
- const String& GetTargetFrame() const { return aTargetFrame; }
- const String& GetAlternateText() const { return aAlternateText; }
- const Size& GetSizePixel() const { return aSizePixel; }
+ const String& GetImageURL() const { return aImageURL; }
+ const String& GetTargetURL() const { return aTargetURL; }
+ const String& GetTargetFrame() const { return aTargetFrame; }
+ const String& GetAlternateText() const { return aAlternateText; }
+ const Size& GetSizePixel() const { return aSizePixel; }
// Im-/Export
sal_Bool Write( SvStream& rOStm, ULONG nFormat ) const;
diff --git a/svtools/inc/itemdel.hxx b/svtools/inc/itemdel.hxx
index 2ceb73a781b9..650e073c4ff4 100644
--- a/svtools/inc/itemdel.hxx
+++ b/svtools/inc/itemdel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/ivctrl.hxx b/svtools/inc/ivctrl.hxx
index f2214fec8570..73b7dd3fa90a 100644
--- a/svtools/inc/ivctrl.hxx
+++ b/svtools/inc/ivctrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,31 +42,31 @@ class Point;
class SvxIconChoiceCtrl_Impl;
class Image;
-#define ICNVIEW_FLAG_POS_LOCKED 0x0001
-#define ICNVIEW_FLAG_SELECTED 0x0002
-#define ICNVIEW_FLAG_FOCUSED 0x0004
-#define ICNVIEW_FLAG_IN_USE 0x0008
-#define ICNVIEW_FLAG_CURSORED 0x0010 // Rahmen um Image
-#define ICNVIEW_FLAG_POS_MOVED 0x0020 // per D&D verschoben aber nicht gelockt
-#define ICNVIEW_FLAG_DROP_TARGET 0x0040 // im QueryDrop gesetzt
-#define ICNVIEW_FLAG_BLOCK_EMPHASIS 0x0080 // Emphasis nicht painten
-#define ICNVIEW_FLAG_USER1 0x0100
-#define ICNVIEW_FLAG_USER2 0x0200
-#define ICNVIEW_FLAG_PRED_SET 0x0400 // Predecessor wurde umgesetzt
+#define ICNVIEW_FLAG_POS_LOCKED 0x0001
+#define ICNVIEW_FLAG_SELECTED 0x0002
+#define ICNVIEW_FLAG_FOCUSED 0x0004
+#define ICNVIEW_FLAG_IN_USE 0x0008
+#define ICNVIEW_FLAG_CURSORED 0x0010 // Rahmen um Image
+#define ICNVIEW_FLAG_POS_MOVED 0x0020 // per D&D verschoben aber nicht gelockt
+#define ICNVIEW_FLAG_DROP_TARGET 0x0040 // im QueryDrop gesetzt
+#define ICNVIEW_FLAG_BLOCK_EMPHASIS 0x0080 // Emphasis nicht painten
+#define ICNVIEW_FLAG_USER1 0x0100
+#define ICNVIEW_FLAG_USER2 0x0200
+#define ICNVIEW_FLAG_PRED_SET 0x0400 // Predecessor wurde umgesetzt
enum SvxIconChoiceCtrlTextMode
{
- IcnShowTextFull = 1, // BoundRect nach unten aufplustern
- IcnShowTextShort, // Abkuerzung mit "..."
- IcnShowTextSmart, // Text komplett anzeigen, wenn moeglich (n.i.)
- IcnShowTextDontKnow // Einstellung der View
+ IcnShowTextFull = 1, // BoundRect nach unten aufplustern
+ IcnShowTextShort, // Abkuerzung mit "..."
+ IcnShowTextSmart, // Text komplett anzeigen, wenn moeglich (n.i.)
+ IcnShowTextDontKnow // Einstellung der View
};
enum SvxIconChoiceCtrlPositionMode
{
- IcnViewPositionModeFree = 0, // freies pixelgenaues Positionieren
+ IcnViewPositionModeFree = 0, // freies pixelgenaues Positionieren
IcnViewPositionModeAutoArrange = 1, // automatisches Ausrichten
- IcnViewPositionModeAutoAdjust = 2, // automatisches Anordnen
+ IcnViewPositionModeAutoAdjust = 2, // automatisches Anordnen
IcnViewPositionModeLast = IcnViewPositionModeAutoAdjust
};
@@ -84,35 +84,35 @@ class SvxIconChoiceCtrlEntry
friend class EntryList_Impl;
friend class IcnGridMap_Impl;
- Rectangle aRect; // Bounding-Rect des Entries
- Rectangle aGridRect; // nur gesetzt im Grid-Modus
- ULONG nPos;
+ Rectangle aRect; // Bounding-Rect des Entries
+ Rectangle aGridRect; // nur gesetzt im Grid-Modus
+ ULONG nPos;
// die Eintragsposition in der Eintragsliste entspricht der beim Insert vorgegebenen
// [Sortier-]Reihenfolge (->Reihenfolge der Anker in der Ankerliste!). Im AutoArrange-Modus
// kann die sichtbare Reihenfolge aber anders sein. Die Eintraege werden deshalb dann
// verkettet
- SvxIconChoiceCtrlEntry* pblink; // backward (linker Nachbar)
- SvxIconChoiceCtrlEntry* pflink; // forward (rechter Nachbar)
+ SvxIconChoiceCtrlEntry* pblink; // backward (linker Nachbar)
+ SvxIconChoiceCtrlEntry* pflink; // forward (rechter Nachbar)
- SvxIconChoiceCtrlTextMode eTextMode;
- USHORT nX,nY; // fuer Tastatursteuerung
- USHORT nFlags;
+ SvxIconChoiceCtrlTextMode eTextMode;
+ USHORT nX,nY; // fuer Tastatursteuerung
+ USHORT nFlags;
- void ClearFlags( USHORT nMask ) { nFlags &= (~nMask); }
- void SetFlags( USHORT nMask ) { nFlags |= nMask; }
- void AssignFlags( USHORT _nFlags ) { nFlags = _nFlags; }
+ void ClearFlags( USHORT nMask ) { nFlags &= (~nMask); }
+ void SetFlags( USHORT nMask ) { nFlags |= nMask; }
+ void AssignFlags( USHORT _nFlags ) { nFlags = _nFlags; }
// setzt den linken Nachbarn (A <-> B ==> A <-> this <-> B)
- void SetBacklink( SvxIconChoiceCtrlEntry* pA )
+ void SetBacklink( SvxIconChoiceCtrlEntry* pA )
{
- pA->pflink->pblink = this; // X <- B
- this->pflink = pA->pflink; // X -> B
- this->pblink = pA; // A <- X
- pA->pflink = this; // A -> X
+ pA->pflink->pblink = this; // X <- B
+ this->pflink = pA->pflink; // X -> B
+ this->pblink = pA; // A <- X
+ pA->pflink = this; // A -> X
}
// loest eine Verbindung (A <-> this <-> B ==> A <-> B)
- void Unlink()
+ void Unlink()
{
this->pblink->pflink = this->pflink;
this->pflink->pblink = this->pblink;
@@ -126,40 +126,40 @@ public:
SvxIconChoiceCtrlEntry( const String& rText, const Image& rImage, const Image& rImageHC, USHORT nFlags = 0 );
~SvxIconChoiceCtrlEntry () {}
- void SetImage ( const Image& rImage ) { aImage = rImage; }
- void SetImageHC ( const Image& rImage ) { aImageHC = rImage; }
- Image GetImage () const { return aImage; }
- Image GetImageHC () const { return aImageHC; }
- void SetText ( const String& rText ) { aText = rText; }
- String GetText () const { return aText; }
+ void SetImage ( const Image& rImage ) { aImage = rImage; }
+ void SetImageHC ( const Image& rImage ) { aImageHC = rImage; }
+ Image GetImage () const { return aImage; }
+ Image GetImageHC () const { return aImageHC; }
+ void SetText ( const String& rText ) { aText = rText; }
+ String GetText () const { return aText; }
String SVT_DLLPUBLIC GetDisplayText() const;
- void SetQuickHelpText( const String& rText ) { aQuickHelpText = rText; }
- String GetQuickHelpText() const { return aQuickHelpText; }
- void SetUserData ( void* _pUserData ) { pUserData = _pUserData; }
- void* GetUserData () { return pUserData; }
+ void SetQuickHelpText( const String& rText ) { aQuickHelpText = rText; }
+ String GetQuickHelpText() const { return aQuickHelpText; }
+ void SetUserData ( void* _pUserData ) { pUserData = _pUserData; }
+ void* GetUserData () { return pUserData; }
const Rectangle & GetBoundRect() const { return aRect; }
- void SetFocus ( BOOL bSet )
+ void SetFocus ( BOOL bSet )
{ nFlags = ( bSet ? nFlags | ICNVIEW_FLAG_FOCUSED : nFlags & ~ICNVIEW_FLAG_FOCUSED ); }
- SvxIconChoiceCtrlTextMode GetTextMode() const { return eTextMode; }
- USHORT GetFlags() const { return nFlags; }
- BOOL IsSelected() const { return (BOOL)((nFlags & ICNVIEW_FLAG_SELECTED) !=0); }
- BOOL IsFocused() const { return (BOOL)((nFlags & ICNVIEW_FLAG_FOCUSED) !=0); }
- BOOL IsInUse() const { return (BOOL)((nFlags & ICNVIEW_FLAG_IN_USE) !=0); }
- BOOL IsCursored() const { return (BOOL)((nFlags & ICNVIEW_FLAG_CURSORED) !=0); }
- BOOL IsDropTarget() const { return (BOOL)((nFlags & ICNVIEW_FLAG_DROP_TARGET) !=0); }
- BOOL IsBlockingEmphasis() const { return (BOOL)((nFlags & ICNVIEW_FLAG_BLOCK_EMPHASIS) !=0); }
- BOOL WasMoved() const { return (BOOL)((nFlags & ICNVIEW_FLAG_POS_MOVED) !=0); }
- void SetMoved( BOOL bMoved );
- BOOL IsPosLocked() const { return (BOOL)((nFlags & ICNVIEW_FLAG_POS_LOCKED) !=0); }
- void LockPos( BOOL bLock );
+ SvxIconChoiceCtrlTextMode GetTextMode() const { return eTextMode; }
+ USHORT GetFlags() const { return nFlags; }
+ BOOL IsSelected() const { return (BOOL)((nFlags & ICNVIEW_FLAG_SELECTED) !=0); }
+ BOOL IsFocused() const { return (BOOL)((nFlags & ICNVIEW_FLAG_FOCUSED) !=0); }
+ BOOL IsInUse() const { return (BOOL)((nFlags & ICNVIEW_FLAG_IN_USE) !=0); }
+ BOOL IsCursored() const { return (BOOL)((nFlags & ICNVIEW_FLAG_CURSORED) !=0); }
+ BOOL IsDropTarget() const { return (BOOL)((nFlags & ICNVIEW_FLAG_DROP_TARGET) !=0); }
+ BOOL IsBlockingEmphasis() const { return (BOOL)((nFlags & ICNVIEW_FLAG_BLOCK_EMPHASIS) !=0); }
+ BOOL WasMoved() const { return (BOOL)((nFlags & ICNVIEW_FLAG_POS_MOVED) !=0); }
+ void SetMoved( BOOL bMoved );
+ BOOL IsPosLocked() const { return (BOOL)((nFlags & ICNVIEW_FLAG_POS_LOCKED) !=0); }
+ void LockPos( BOOL bLock );
// Nur bei AutoArrange gesetzt. Den Kopf der Liste gibts per SvxIconChoiceCtrl::GetPredecessorHead
- SvxIconChoiceCtrlEntry* GetSuccessor() const { return pflink; }
- SvxIconChoiceCtrlEntry* GetPredecessor() const { return pblink; }
+ SvxIconChoiceCtrlEntry* GetSuccessor() const { return pflink; }
+ SvxIconChoiceCtrlEntry* GetPredecessor() const { return pblink; }
-// sal_Unicode GetMnemonicChar() const;
+// sal_Unicode GetMnemonicChar() const;
};
enum SvxIconChoiceCtrlColumnAlign
@@ -171,11 +171,11 @@ enum SvxIconChoiceCtrlColumnAlign
class SvxIconChoiceCtrlColumnInfo
{
- String aColText;
- Image aColImage;
- long nWidth;
- SvxIconChoiceCtrlColumnAlign eAlignment;
- USHORT nSubItem;
+ String aColText;
+ Image aColImage;
+ long nWidth;
+ SvxIconChoiceCtrlColumnAlign eAlignment;
+ USHORT nSubItem;
public:
SvxIconChoiceCtrlColumnInfo( USHORT nSub, long nWd,
@@ -183,53 +183,53 @@ public:
nWidth( nWd ), eAlignment( eAlign ), nSubItem( nSub ) {}
SvxIconChoiceCtrlColumnInfo( const SvxIconChoiceCtrlColumnInfo& );
- void SetText( const String& rText ) { aColText = rText; }
- void SetImage( const Image& rImg ) { aColImage = rImg; }
- void SetWidth( long nWd ) { nWidth = nWd; }
- void SetAlignment( SvxIconChoiceCtrlColumnAlign eAlign ) { eAlignment = eAlign; }
- void SetSubItem( USHORT nSub) { nSubItem = nSub; }
-
- const String& GetText() const { return aColText; }
- const Image& GetImage() const { return aColImage; }
- long GetWidth() const { return nWidth; }
- SvxIconChoiceCtrlColumnAlign GetAlignment() const { return eAlignment; }
- USHORT GetSubItem() const { return nSubItem; }
+ void SetText( const String& rText ) { aColText = rText; }
+ void SetImage( const Image& rImg ) { aColImage = rImg; }
+ void SetWidth( long nWd ) { nWidth = nWd; }
+ void SetAlignment( SvxIconChoiceCtrlColumnAlign eAlign ) { eAlignment = eAlign; }
+ void SetSubItem( USHORT nSub) { nSubItem = nSub; }
+
+ const String& GetText() const { return aColText; }
+ const Image& GetImage() const { return aColImage; }
+ long GetWidth() const { return nWidth; }
+ SvxIconChoiceCtrlColumnAlign GetAlignment() const { return eAlignment; }
+ USHORT GetSubItem() const { return nSubItem; }
};
//###################################################################################################################################
/*
Window-Bits:
- WB_ICON // Text unter dem Icon
- WB_SMALL_ICON // Text rechts neben Icon, beliebige Positionierung
- WB_DETAILS // Text rechts neben Icon, eingeschraenkte Posit.
+ WB_ICON // Text unter dem Icon
+ WB_SMALL_ICON // Text rechts neben Icon, beliebige Positionierung
+ WB_DETAILS // Text rechts neben Icon, eingeschraenkte Posit.
WB_BORDER
- WB_NOHIDESELECTION // Selektion inaktiv zeichnen, wenn kein Fokus
+ WB_NOHIDESELECTION // Selektion inaktiv zeichnen, wenn kein Fokus
WB_NOHSCROLL
WB_NOVSCROLL
WB_NOSELECTION
- WB_SMART_ARRANGE // im Arrange die Vis-Area beibehalten
- WB_ALIGN_TOP // Anordnung zeilenweise von links nach rechts
- WB_ALIGN_LEFT // Anordnung spaltenweise von oben nach unten
- WB_NODRAGSELECTION // Keine Selektion per Tracking-Rect
- WB_NOCOLUMNHEADER // keine Headerbar in Detailsview (Headerbar not implemented)
- WB_NOPOINTERFOCUS // Kein GrabFocus im MouseButtonDown
- WB_HIGHLIGHTFRAME // der unter der Maus befindliche Eintrag wird hervorgehoben
- WB_NOASYNCSELECTHDL // Selektionshandler synchron aufrufen, d.h. Events nicht sammeln
+ WB_SMART_ARRANGE // im Arrange die Vis-Area beibehalten
+ WB_ALIGN_TOP // Anordnung zeilenweise von links nach rechts
+ WB_ALIGN_LEFT // Anordnung spaltenweise von oben nach unten
+ WB_NODRAGSELECTION // Keine Selektion per Tracking-Rect
+ WB_NOCOLUMNHEADER // keine Headerbar in Detailsview (Headerbar not implemented)
+ WB_NOPOINTERFOCUS // Kein GrabFocus im MouseButtonDown
+ WB_HIGHLIGHTFRAME // der unter der Maus befindliche Eintrag wird hervorgehoben
+ WB_NOASYNCSELECTHDL // Selektionshandler synchron aufrufen, d.h. Events nicht sammeln
*/
-#define WB_ICON WB_RECTSTYLE
-#define WB_SMALLICON WB_SMALLSTYLE
-#define WB_DETAILS WB_VCENTER
-#define WB_NOHSCROLL WB_SPIN
-#define WB_NOVSCROLL WB_DRAG
-#define WB_NOSELECTION WB_REPEAT
-#define WB_NODRAGSELECTION WB_PATHELLIPSIS
-#define WB_SMART_ARRANGE WB_PASSWORD
-#define WB_ALIGN_TOP WB_TOP
-#define WB_ALIGN_LEFT WB_LEFT
-#define WB_NOCOLUMNHEADER WB_CENTER
-#define WB_HIGHLIGHTFRAME WB_INFO
-#define WB_NOASYNCSELECTHDL WB_NOLABEL
+#define WB_ICON WB_RECTSTYLE
+#define WB_SMALLICON WB_SMALLSTYLE
+#define WB_DETAILS WB_VCENTER
+#define WB_NOHSCROLL WB_SPIN
+#define WB_NOVSCROLL WB_DRAG
+#define WB_NOSELECTION WB_REPEAT
+#define WB_NODRAGSELECTION WB_PATHELLIPSIS
+#define WB_SMART_ARRANGE WB_PASSWORD
+#define WB_ALIGN_TOP WB_TOP
+#define WB_ALIGN_LEFT WB_LEFT
+#define WB_NOCOLUMNHEADER WB_CENTER
+#define WB_HIGHLIGHTFRAME WB_INFO
+#define WB_NOASYNCSELECTHDL WB_NOLABEL
class MnemonicGenerator;
@@ -237,84 +237,84 @@ class SVT_DLLPUBLIC SvtIconChoiceCtrl : public Control
{
friend class SvxIconChoiceCtrl_Impl;
- Link _aClickIconHdl;
- Link _aDocRectChangedHdl;
- Link _aVisRectChangedHdl;
- KeyEvent* _pCurKeyEvent;
- SvxIconChoiceCtrl_Impl* _pImp;
- BOOL _bAutoFontColor;
+ Link _aClickIconHdl;
+ Link _aDocRectChangedHdl;
+ Link _aVisRectChangedHdl;
+ KeyEvent* _pCurKeyEvent;
+ SvxIconChoiceCtrl_Impl* _pImp;
+ BOOL _bAutoFontColor;
protected:
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual BOOL EditedEntry( SvxIconChoiceCtrlEntry*, const XubString& rNewText, BOOL bCancelled );
- virtual void DocumentRectChanged();
- virtual void VisibleRectChanged();
- virtual BOOL EditingEntry( SvxIconChoiceCtrlEntry* pEntry );
- virtual void Command( const CommandEvent& rCEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Resize();
- virtual void GetFocus();
- virtual void LoseFocus();
- virtual void ClickIcon();
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void DrawEntryImage(
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual BOOL EditedEntry( SvxIconChoiceCtrlEntry*, const XubString& rNewText, BOOL bCancelled );
+ virtual void DocumentRectChanged();
+ virtual void VisibleRectChanged();
+ virtual BOOL EditingEntry( SvxIconChoiceCtrlEntry* pEntry );
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Resize();
+ virtual void GetFocus();
+ virtual void LoseFocus();
+ virtual void ClickIcon();
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void DrawEntryImage(
SvxIconChoiceCtrlEntry* pEntry,
const Point& rPos,
OutputDevice& rDev );
- virtual String GetEntryText(
+ virtual String GetEntryText(
SvxIconChoiceCtrlEntry* pEntry,
BOOL bInplaceEdit );
- virtual void FillLayoutData() const;
+ virtual void FillLayoutData() const;
- void CallImplEventListeners(ULONG nEvent, void* pData);
+ void CallImplEventListeners(ULONG nEvent, void* pData);
public:
SvtIconChoiceCtrl( Window* pParent, WinBits nWinStyle = WB_ICON | WB_BORDER );
SvtIconChoiceCtrl( Window* pParent, const ResId& rResId );
- virtual ~SvtIconChoiceCtrl();
+ virtual ~SvtIconChoiceCtrl();
- void SetStyle( WinBits nWinStyle );
- WinBits GetStyle() const;
+ void SetStyle( WinBits nWinStyle );
+ WinBits GetStyle() const;
- BOOL SetChoiceWithCursor ( BOOL bDo = TRUE );
+ BOOL SetChoiceWithCursor ( BOOL bDo = TRUE );
- void SetUpdateMode( BOOL bUpdateMode );
- void SetFont( const Font& rFont );
- void SetPointFont( const Font& rFont );
+ void SetUpdateMode( BOOL bUpdateMode );
+ void SetFont( const Font& rFont );
+ void SetPointFont( const Font& rFont );
- void SetClickHdl( const Link& rLink ) { _aClickIconHdl = rLink; }
- const Link& GetClickHdl() const { return _aClickIconHdl; }
+ void SetClickHdl( const Link& rLink ) { _aClickIconHdl = rLink; }
+ const Link& GetClickHdl() const { return _aClickIconHdl; }
using OutputDevice::SetBackground;
- void SetBackground( const Wallpaper& rWallpaper );
+ void SetBackground( const Wallpaper& rWallpaper );
- void ArrangeIcons();
+ void ArrangeIcons();
- SvxIconChoiceCtrlEntry* InsertEntry( ULONG nPos = LIST_APPEND,
+ SvxIconChoiceCtrlEntry* InsertEntry( ULONG nPos = LIST_APPEND,
const Point* pPos = 0,
USHORT nFlags = 0 );
- SvxIconChoiceCtrlEntry* InsertEntry( const String& rText, const Image& rImage,
+ SvxIconChoiceCtrlEntry* InsertEntry( const String& rText, const Image& rImage,
ULONG nPos = LIST_APPEND,
const Point* pPos = 0,
USHORT nFlags = 0 );
- SvxIconChoiceCtrlEntry* InsertEntry( const String& rText, const Image& rImage, const Image& rImageHC,
+ SvxIconChoiceCtrlEntry* InsertEntry( const String& rText, const Image& rImage, const Image& rImageHC,
ULONG nPos = LIST_APPEND,
const Point* pPos = 0,
USHORT nFlags = 0 );
/** creates automatic mnemonics for all icon texts in the control
*/
- void CreateAutoMnemonics( void );
+ void CreateAutoMnemonics( void );
/** creates automatic mnemonics for all icon texts in the control
@@ -323,62 +323,62 @@ public:
This can be used if the control needs to share the "mnemonic space" with other elements,
such as a menu bar.
*/
- void CreateAutoMnemonics( MnemonicGenerator& _rUsedMnemonics );
+ void CreateAutoMnemonics( MnemonicGenerator& _rUsedMnemonics );
- void RemoveEntry( SvxIconChoiceCtrlEntry* pEntry );
+ void RemoveEntry( SvxIconChoiceCtrlEntry* pEntry );
- BOOL DoKeyInput( const KeyEvent& rKEvt );
+ BOOL DoKeyInput( const KeyEvent& rKEvt );
- BOOL IsEntryEditing() const;
- void Clear();
+ BOOL IsEntryEditing() const;
+ void Clear();
- ULONG GetEntryCount() const;
- SvxIconChoiceCtrlEntry* GetEntry( ULONG nPos ) const;
- ULONG GetEntryListPos( SvxIconChoiceCtrlEntry* pEntry ) const;
+ ULONG GetEntryCount() const;
+ SvxIconChoiceCtrlEntry* GetEntry( ULONG nPos ) const;
+ ULONG GetEntryListPos( SvxIconChoiceCtrlEntry* pEntry ) const;
using Window::SetCursor;
- void SetCursor( SvxIconChoiceCtrlEntry* pEntry );
- SvxIconChoiceCtrlEntry* GetCursor() const;
+ void SetCursor( SvxIconChoiceCtrlEntry* pEntry );
+ SvxIconChoiceCtrlEntry* GetCursor() const;
// Neu-Berechnung gecachter View-Daten und Invalidierung im Fenster
- void InvalidateEntry( SvxIconChoiceCtrlEntry* pEntry );
+ void InvalidateEntry( SvxIconChoiceCtrlEntry* pEntry );
// bHit==FALSE: Eintrag gilt als getroffen, wenn Position im BoundRect liegt
// ==TRUE : Bitmap oder Text muss getroffen sein
- SvxIconChoiceCtrlEntry* GetEntry( const Point& rPosPixel, BOOL bHit = FALSE ) const;
+ SvxIconChoiceCtrlEntry* GetEntry( const Point& rPosPixel, BOOL bHit = FALSE ) const;
// Gibt den naechsten ueber pCurEntry liegenden Eintrag (ZOrder)
- SvxIconChoiceCtrlEntry* GetNextEntry( const Point& rPosPixel, SvxIconChoiceCtrlEntry* pCurEntry, BOOL ) const;
+ SvxIconChoiceCtrlEntry* GetNextEntry( const Point& rPosPixel, SvxIconChoiceCtrlEntry* pCurEntry, BOOL ) const;
// Gibt den naechsten unter pCurEntry liegenden Eintrag (ZOrder)
- SvxIconChoiceCtrlEntry* GetPrevEntry( const Point& rPosPixel, SvxIconChoiceCtrlEntry* pCurEntry, BOOL ) const;
+ SvxIconChoiceCtrlEntry* GetPrevEntry( const Point& rPosPixel, SvxIconChoiceCtrlEntry* pCurEntry, BOOL ) const;
// in dem ULONG wird die Position in der Liste des gefunden Eintrags zurueckgegeben
- SvxIconChoiceCtrlEntry* GetSelectedEntry( ULONG& rPos ) const;
+ SvxIconChoiceCtrlEntry* GetSelectedEntry( ULONG& rPos ) const;
- void SetEntryTextMode( SvxIconChoiceCtrlTextMode eMode, SvxIconChoiceCtrlEntry* pEntry = 0 );
- SvxIconChoiceCtrlTextMode GetEntryTextMode( const SvxIconChoiceCtrlEntry* pEntry = 0 ) const;
+ void SetEntryTextMode( SvxIconChoiceCtrlTextMode eMode, SvxIconChoiceCtrlEntry* pEntry = 0 );
+ SvxIconChoiceCtrlTextMode GetEntryTextMode( const SvxIconChoiceCtrlEntry* pEntry = 0 ) const;
// offene asynchron abzuarbeitende Aktionen ausfuehren. Muss vor dem Speichern von
// Eintragspositionen etc. gerufen werden
- void Flush();
+ void Flush();
- virtual BOOL HasBackground() const;
- virtual BOOL HasFont() const;
- virtual BOOL HasFontTextColor() const;
- virtual BOOL HasFontFillColor() const;
+ virtual BOOL HasBackground() const;
+ virtual BOOL HasFont() const;
+ virtual BOOL HasFontTextColor() const;
+ virtual BOOL HasFontFillColor() const;
- void SetFontColorToBackground ( BOOL bDo = TRUE ) { _bAutoFontColor = bDo; }
- BOOL AutoFontColor () { return _bAutoFontColor; }
+ void SetFontColorToBackground ( BOOL bDo = TRUE ) { _bAutoFontColor = bDo; }
+ BOOL AutoFontColor () { return _bAutoFontColor; }
- Point GetLogicPos( const Point& rPosPixel ) const;
- Point GetPixelPos( const Point& rPosLogic ) const;
- void SetSelectionMode( SelectionMode eMode );
+ Point GetLogicPos( const Point& rPosPixel ) const;
+ Point GetPixelPos( const Point& rPosLogic ) const;
+ void SetSelectionMode( SelectionMode eMode );
- BOOL HandleShortCutKey( const KeyEvent& rKeyEvent );
+ BOOL HandleShortCutKey( const KeyEvent& rKeyEvent );
- Rectangle GetBoundingBox( SvxIconChoiceCtrlEntry* pEntry ) const;
- Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const;
+ Rectangle GetBoundingBox( SvxIconChoiceCtrlEntry* pEntry ) const;
+ Rectangle GetEntryCharacterBounds( const sal_Int32 _nEntryPos, const sal_Int32 _nCharacterIndex ) const;
- void SetNoSelection();
+ void SetNoSelection();
// ACCESSIBILITY ==========================================================
diff --git a/svtools/inc/localresaccess.hxx b/svtools/inc/localresaccess.hxx
index 30f986d2e002..18e0c6ea647b 100644
--- a/svtools/inc/localresaccess.hxx
+++ b/svtools/inc/localresaccess.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace svt
class OLocalResourceAccess : public Resource
{
protected:
- ResMgr* m_pManager;
+ ResMgr* m_pManager;
public:
OLocalResourceAccess( const ResId& _rId )
@@ -76,7 +76,7 @@ namespace svt
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // _SVTOOLS_LOCALRESACCESS_HXX_
diff --git a/svtools/inc/pch/precompiled_svtools.cxx b/svtools/inc/pch/precompiled_svtools.cxx
index e19db906595e..7044e67e7a6d 100644
--- a/svtools/inc/pch/precompiled_svtools.cxx
+++ b/svtools/inc/pch/precompiled_svtools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/pch/precompiled_svtools.hxx b/svtools/inc/pch/precompiled_svtools.hxx
index 07c0e3a23382..22f4ac14a427 100644
--- a/svtools/inc/pch/precompiled_svtools.hxx
+++ b/svtools/inc/pch/precompiled_svtools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/prgsbar.hxx b/svtools/inc/prgsbar.hxx
index 88ce944174b7..196e513f1795 100644
--- a/svtools/inc/prgsbar.hxx
+++ b/svtools/inc/prgsbar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ Diese Klasse dient zur Anzeige einer Progress-Anzeige.
WinBits
-WB_BORDER Border um das Fenster
-WB_3DLOOK 3D-Darstellung
+WB_BORDER Border um das Fenster
+WB_3DLOOK 3D-Darstellung
--------------------------------------------------------------------------
@@ -61,7 +61,7 @@ groesser 100 gesetzt werden, faengt das letzte Rechteck an zu blinken.
// - WinBits -
// -----------
-#define WB_STDPROGRESSBAR WB_BORDER
+#define WB_STDPROGRESSBAR WB_BORDER
// ---------------
// - ProgressBar -
@@ -70,18 +70,18 @@ groesser 100 gesetzt werden, faengt das letzte Rechteck an zu blinken.
class SVT_DLLPUBLIC ProgressBar : public Window
{
private:
- Point maPos;
- long mnPrgsWidth;
- long mnPrgsHeight;
- USHORT mnPercent;
- USHORT mnPercentCount;
- BOOL mbCalcNew;
+ Point maPos;
+ long mnPrgsWidth;
+ long mnPrgsHeight;
+ USHORT mnPercent;
+ USHORT mnPercentCount;
+ BOOL mbCalcNew;
#ifdef _SV_PRGSBAR_CXX
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit();
- SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
- SVT_DLLPRIVATE void ImplDrawProgress( USHORT nOldPerc, USHORT nNewPerc );
+ SVT_DLLPRIVATE void ImplInit();
+ SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ SVT_DLLPRIVATE void ImplDrawProgress( USHORT nOldPerc, USHORT nNewPerc );
#endif
public:
@@ -89,15 +89,15 @@ public:
ProgressBar( Window* pParent, const ResId& rResId );
~ProgressBar();
- virtual void Paint( const Rectangle& rRect );
- virtual void Resize();
- virtual void StateChanged( StateChangedType nStateChange );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Resize();
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
- void SetValue( USHORT nNewPercent );
- USHORT GetValue() const { return mnPercent; }
+ void SetValue( USHORT nNewPercent );
+ USHORT GetValue() const { return mnPercent; }
};
-#endif // _PRGSBAR_HXX
+#endif // _PRGSBAR_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/roadmap.hxx b/svtools/inc/roadmap.hxx
index 988af84294c0..c82b711c88f9 100644
--- a/svtools/inc/roadmap.hxx
+++ b/svtools/inc/roadmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,9 +59,9 @@ namespace svt
class SVT_DLLPUBLIC ORoadmap : public Control, public RoadmapTypes
{
protected:
- RoadmapImpl* m_pImpl;
+ RoadmapImpl* m_pImpl;
// Window overridables
- void Paint( const Rectangle& _rRect );
+ void Paint( const Rectangle& _rRect );
void implInit();
public:
@@ -69,8 +69,8 @@ namespace svt
ORoadmap( Window* _pParent, WinBits _nWinStyle = 0 );
~ORoadmap( );
- void SetRoadmapBitmap( const BitmapEx& maBitmap, sal_Bool _bInvalidate = sal_True );
- const BitmapEx& GetRoadmapBitmap( ) const;
+ void SetRoadmapBitmap( const BitmapEx& maBitmap, sal_Bool _bInvalidate = sal_True );
+ const BitmapEx& GetRoadmapBitmap( ) const;
void EnableRoadmapItem( ItemId _nItemId, sal_Bool _bEnable, ItemIndex _nStartIndex = 0 );
sal_Bool IsRoadmapItemEnabled( ItemId _nItemId, ItemIndex _nStartIndex = 0 ) const;
@@ -98,12 +98,12 @@ namespace svt
void SetItemSelectHdl( const Link& _rHdl );
Link GetItemSelectHdl( ) const;
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
virtual void GetFocus();
protected:
- long PreNotify( NotifyEvent& rNEvt );
+ long PreNotify( NotifyEvent& rNEvt );
protected:
/// called when an item has been selected by any means
@@ -117,19 +117,19 @@ namespace svt
RoadmapItem* GetByID( ItemId _nID, ItemIndex _nStartIndex = 0 );
const RoadmapItem* GetByID( ItemId _nID, ItemIndex _nStartIndex = 0 ) const;
- RoadmapItem* GetPreviousHyperLabel( ItemIndex _Index);
+ RoadmapItem* GetPreviousHyperLabel( ItemIndex _Index);
- void DrawHeadline();
- void DeselectOldRoadmapItems();
- ItemId GetNextAvailableItemId( ItemIndex _NewIndex );
- ItemId GetPreviousAvailableItemId( ItemIndex _NewIndex );
+ void DrawHeadline();
+ void DeselectOldRoadmapItems();
+ ItemId GetNextAvailableItemId( ItemIndex _NewIndex );
+ ItemId GetPreviousAvailableItemId( ItemIndex _NewIndex );
RoadmapItem* GetByPointer(Window* pWindow);
RoadmapItem* InsertHyperLabel( ItemIndex _Index, const ::rtl::OUString& _aStr, ItemId _RMID, sal_Bool _bEnabled = sal_True );
- void UpdatefollowingHyperLabels( ItemIndex _Index );
+ void UpdatefollowingHyperLabels( ItemIndex _Index );
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif
diff --git a/svtools/inc/rtfkeywd.hxx b/svtools/inc/rtfkeywd.hxx
index b9ad75ae8e32..b701c3a1a2ed 100644
--- a/svtools/inc/rtfkeywd.hxx
+++ b/svtools/inc/rtfkeywd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/rtfout.hxx b/svtools/inc/rtfout.hxx
index b266aecd1bb3..7b3ad55dd159 100644
--- a/svtools/inc/rtfout.hxx
+++ b/svtools/inc/rtfout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,9 +41,9 @@ class SVT_DLLPUBLIC RTFOutFuncs
{
public:
#if defined(MAC) || defined(UNX)
- static const sal_Char sNewLine; // nur \012 oder \015
+ static const sal_Char sNewLine; // nur \012 oder \015
#else
- static const sal_Char __FAR_DATA sNewLine[]; // \015\012
+ static const sal_Char __FAR_DATA sNewLine[]; // \015\012
#endif
static SvStream& Out_Char( SvStream&, sal_Unicode cChar,
diff --git a/svtools/inc/rtftoken.h b/svtools/inc/rtftoken.h
index d7dda804a8d7..56db78b89f17 100644
--- a/svtools/inc/rtftoken.h
+++ b/svtools/inc/rtftoken.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,31 +35,31 @@ class String;
int GetRTFToken( const String& rSearch );
enum RTF_TOKEN_RANGES {
- RTF_NOGROUP = 0x0100,
- RTF_DOCFMT = 0x0200,
- RTF_SECTFMT = 0x0300,
- RTF_PARFMT = 0x0400,
- RTF_TABSTOPDEF = 0x0500,
- RTF_BRDRDEF = 0x0600,
- RTF_CHRFMT = 0x0700,
- RTF_SPECCHAR = 0x0800,
- RTF_APOCTL = 0x0900,
- RTF_SHADINGDEF = 0x0A00,
- // free = 0x0B00,
- RTF_DRAWOBJECTS = 0x0C00,
- RTF_OBJECTS = 0x0D00,
- RTF_NUMBULLETS = 0x0E00,
+ RTF_NOGROUP = 0x0100,
+ RTF_DOCFMT = 0x0200,
+ RTF_SECTFMT = 0x0300,
+ RTF_PARFMT = 0x0400,
+ RTF_TABSTOPDEF = 0x0500,
+ RTF_BRDRDEF = 0x0600,
+ RTF_CHRFMT = 0x0700,
+ RTF_SPECCHAR = 0x0800,
+ RTF_APOCTL = 0x0900,
+ RTF_SHADINGDEF = 0x0A00,
+ // free = 0x0B00,
+ RTF_DRAWOBJECTS = 0x0C00,
+ RTF_OBJECTS = 0x0D00,
+ RTF_NUMBULLETS = 0x0E00,
// !!! kann hinein verodert werden (Border/Background) !!!!
- RTF_TABLEDEF = 0x1000,
+ RTF_TABLEDEF = 0x1000,
// !!! kann hinein verodert werden (Border/Tab) !!!!
- RTF_SWGDEFS = 0x4000
+ RTF_SWGDEFS = 0x4000
};
enum RTF_TOKEN_IDS {
- RTF_TEXTTOKEN = RTF_NOGROUP,
+ RTF_TEXTTOKEN = RTF_NOGROUP,
RTF_SINGLECHAR,
RTF_UNKNOWNCONTROL,
RTF_UNKNOWNDATA,
@@ -152,7 +152,7 @@ enum RTF_TOKEN_IDS {
RTF_BKMKSTART,
RTF_BKMKEND,
- RTF_PICT, // Bitmaps
+ RTF_PICT, // Bitmaps
RTF_PICW,
RTF_PICH,
RTF_WBMBITSPIXEL,
@@ -186,7 +186,7 @@ enum RTF_TOKEN_IDS {
RTF_BLIPUID,
RTF_BLIPUPI,
- RTF_FIELD, // Felder
+ RTF_FIELD, // Felder
RTF_FLDDIRTY,
RTF_FLDEDIT,
RTF_FLDLOCK,
@@ -242,13 +242,13 @@ enum RTF_TOKEN_IDS {
RTF_TCN,
RTF_XEF,
- RTF_UD, // Unicode
+ RTF_UD, // Unicode
RTF_UPR,
RTF_U,
RTF_UC,
RTF_ANSICPG,
- RTF_FFEXITMCR, // Form Fields
+ RTF_FFEXITMCR, // Form Fields
RTF_FFENTRYMCR,
RTF_FFDEFTEXT,
RTF_FFFORMAT,
@@ -274,7 +274,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_DEFTAB = RTF_DOCFMT,
+ RTF_DEFTAB = RTF_DOCFMT,
RTF_HYPHHOTZ,
RTF_LINESTART,
RTF_FRACWIDTH,
@@ -442,7 +442,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_SECTD = RTF_SECTFMT,
+ RTF_SECTD = RTF_SECTFMT,
RTF_ENDNHERE,
RTF_BINFSXN,
RTF_BINSXN,
@@ -528,7 +528,7 @@ enum RTF_TOKEN_IDS {
RTF_SECTSPECIFYL,
// Swg-Header/Footer-Tokens
- RTF_HEADER_YB = (RTF_SECTFMT|RTF_SWGDEFS),
+ RTF_HEADER_YB = (RTF_SECTFMT|RTF_SWGDEFS),
RTF_HEADER_XL,
RTF_HEADER_XR,
RTF_FOOTER_YT,
@@ -541,7 +541,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_PARD = RTF_PARFMT,
+ RTF_PARD = RTF_PARFMT,
RTF_S,
RTF_INTBL,
RTF_KEEP,
@@ -624,7 +624,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_TX = RTF_TABSTOPDEF,
+ RTF_TX = RTF_TABSTOPDEF,
RTF_TB,
RTF_TQL,
RTF_TQR,
@@ -641,7 +641,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_BRDRT = RTF_BRDRDEF,
+ RTF_BRDRT = RTF_BRDRDEF,
RTF_BRDRB,
RTF_BRDRL,
RTF_BRDRR,
@@ -661,7 +661,7 @@ enum RTF_TOKEN_IDS {
RTF_BRDRFRAME,
// Swg-Border-Tokens
- RTF_BRDBOX = (RTF_BRDRDEF|RTF_SWGDEFS),
+ RTF_BRDBOX = (RTF_BRDRDEF|RTF_SWGDEFS),
RTF_BRDLINE_COL,
RTF_BRDLINE_IN,
RTF_BRDLINE_OUT,
@@ -669,7 +669,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_PLAIN = RTF_CHRFMT,
+ RTF_PLAIN = RTF_CHRFMT,
RTF_B,
RTF_CAPS,
RTF_DN,
@@ -799,7 +799,7 @@ enum RTF_TOKEN_IDS {
RTF_HORZVERT,
// Swg-Border-Tokens
- RTF_SWG_ESCPROP = (RTF_CHRFMT|RTF_SWGDEFS),
+ RTF_SWG_ESCPROP = (RTF_CHRFMT|RTF_SWGDEFS),
RTF_HYPHEN,
RTF_HYPHLEAD,
RTF_HYPHTRAIL,
@@ -808,7 +808,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_CHDATE = RTF_SPECCHAR,
+ RTF_CHDATE = RTF_SPECCHAR,
RTF_CHDATEL,
RTF_CHDATEA,
RTF_CHTIME,
@@ -907,7 +907,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_SHADING = RTF_SHADINGDEF,
+ RTF_SHADING = RTF_SHADINGDEF,
RTF_CFPAT,
RTF_CBPAT,
RTF_BGHORIZ,
@@ -925,7 +925,7 @@ enum RTF_TOKEN_IDS {
/* */
- RTF_TROWD = RTF_TABLEDEF,
+ RTF_TROWD = RTF_TABLEDEF,
RTF_TRGAPH,
RTF_TRLEFT,
RTF_TRRH,
@@ -1257,11 +1257,11 @@ enum RTF_TOKEN_IDS {
RTF_SOUTLVL,
// shapes
- RTF_SHP, RTF_SN, RTF_SV, RTF_SP
+ RTF_SHP, RTF_SN, RTF_SV, RTF_SP
/*
- RTF_SHPLEFT,
- RTF_SHPTOP,
- RTF_SHPBOTTOM,
+ RTF_SHPLEFT,
+ RTF_SHPTOP,
+ RTF_SHPBOTTOM,
RTF_SHPRIGHT
*/
diff --git a/svtools/inc/ruler.hxx b/svtools/inc/ruler.hxx
index f2438b7ec7fd..7576e0fa0ad7 100644
--- a/svtools/inc/ruler.hxx
+++ b/svtools/inc/ruler.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -592,7 +592,7 @@ struct RulerBorder
long nWidth;
USHORT nStyle;
//minimum/maximum position, supported for table borders/rows
- long nMinPos;
+ long nMinPos;
long nMaxPos;
};
@@ -736,9 +736,9 @@ private:
SVT_DLLPRIVATE void ImplDrawExtra( BOOL bPaint = FALSE );
SVT_DLLPRIVATE void ImplUpdate( BOOL bMustCalc = FALSE );
using Window::ImplHitTest;
- SVT_DLLPRIVATE BOOL ImplHitTest( const Point& rPos,
- ImplRulerHitTest* pHitTest,
- BOOL bRequiredStyle = FALSE,
+ SVT_DLLPRIVATE BOOL ImplHitTest( const Point& rPos,
+ ImplRulerHitTest* pHitTest,
+ BOOL bRequiredStyle = FALSE,
USHORT nRequiredStyle = 0 ) const;
SVT_DLLPRIVATE BOOL ImplDocHitTest( const Point& rPos, RulerType eDragType, ImplRulerHitTest* pHitTest ) const;
SVT_DLLPRIVATE BOOL ImplStartDrag( ImplRulerHitTest* pHitTest, USHORT nModifier );
diff --git a/svtools/inc/scriptedtext.hxx b/svtools/inc/scriptedtext.hxx
index bbca120ef017..5f2f1e8f4795 100644
--- a/svtools/inc/scriptedtext.hxx
+++ b/svtools/inc/scriptedtext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/scrwin.hxx b/svtools/inc/scrwin.hxx
index ba5291c7f8c7..572dbf9179bb 100644
--- a/svtools/inc/scrwin.hxx
+++ b/svtools/inc/scrwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,9 +42,9 @@ class DataChangedEvent;
typedef USHORT ScrollableWindowFlags;
#define SCRWIN_THUMBDRAGGING 1
-#define SCRWIN_VCENTER 2
-#define SCRWIN_HCENTER 4
-#define SCRWIN_DEFAULT (SCRWIN_THUMBDRAGGING | SCRWIN_VCENTER | SCRWIN_HCENTER)
+#define SCRWIN_VCENTER 2
+#define SCRWIN_HCENTER 4
+#define SCRWIN_DEFAULT (SCRWIN_THUMBDRAGGING | SCRWIN_VCENTER | SCRWIN_HCENTER)
// --------------------
// - ScrollableWindow -
@@ -53,21 +53,21 @@ typedef USHORT ScrollableWindowFlags;
class SVT_DLLPUBLIC ScrollableWindow: public Window
{
private:
- Point aPixOffset; // offset to virtual window (pixel)
- Size aTotPixSz; // total size of virtual window (pixel)
- long nLinePixH; // size of a line/column (pixel)
- long nColumnPixW;
-
- ScrollBar aVScroll; // the scrollbars
- ScrollBar aHScroll;
- ScrollBarBox aCornerWin; // window in the bottom right corner
- BOOL bScrolling:1, // user controlled scrolling
- bHandleDragging:1, // scroll window while dragging
+ Point aPixOffset; // offset to virtual window (pixel)
+ Size aTotPixSz; // total size of virtual window (pixel)
+ long nLinePixH; // size of a line/column (pixel)
+ long nColumnPixW;
+
+ ScrollBar aVScroll; // the scrollbars
+ ScrollBar aHScroll;
+ ScrollBarBox aCornerWin; // window in the bottom right corner
+ BOOL bScrolling:1, // user controlled scrolling
+ bHandleDragging:1, // scroll window while dragging
bHCenter:1,
bVCenter:1;
#ifdef _SVT_SCRWIN_CXX
- SVT_DLLPRIVATE void ImpInitialize( ScrollableWindowFlags nFlags );
+ SVT_DLLPRIVATE void ImpInitialize( ScrollableWindowFlags nFlags );
DECL_DLLPRIVATE_LINK( ScrollHdl, ScrollBar * );
DECL_DLLPRIVATE_LINK( EndScrollHdl, ScrollBar * );
#endif
@@ -78,34 +78,34 @@ public:
ScrollableWindow( Window* pParent, const ResId& rId,
ScrollableWindowFlags = SCRWIN_DEFAULT );
- virtual void Resize();
- virtual void Command( const CommandEvent& rCEvt );
- virtual void DataChanged( const DataChangedEvent& rDEvt );
+ virtual void Resize();
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void DataChanged( const DataChangedEvent& rDEvt );
- virtual void StartScroll();
- virtual void EndScroll( long nDeltaX, long nDeltaY );
+ virtual void StartScroll();
+ virtual void EndScroll( long nDeltaX, long nDeltaY );
using OutputDevice::SetMapMode;
- virtual void SetMapMode( const MapMode& rNewMapMode );
- virtual MapMode GetMapMode() const;
+ virtual void SetMapMode( const MapMode& rNewMapMode );
+ virtual MapMode GetMapMode() const;
- void SetTotalSize( const Size& rNewSize );
- Size GetTotalSize() { return PixelToLogic( aTotPixSz ); }
+ void SetTotalSize( const Size& rNewSize );
+ Size GetTotalSize() { return PixelToLogic( aTotPixSz ); }
- void SetVisibleSize( const Size& rNewSize );
- BOOL MakeVisible( const Rectangle& rTarget, BOOL bSloppy = FALSE );
- Rectangle GetVisibleArea() const;
+ void SetVisibleSize( const Size& rNewSize );
+ BOOL MakeVisible( const Rectangle& rTarget, BOOL bSloppy = FALSE );
+ Rectangle GetVisibleArea() const;
- void SetLineSize( ULONG nHorz, ULONG nVert );
+ void SetLineSize( ULONG nHorz, ULONG nVert );
using Window::Scroll;
- virtual void Scroll( long nDeltaX, long nDeltaY, USHORT nFlags = 0 );
- void ScrollLines( long nLinesX, long nLinesY );
- void ScrollPages( long nPagesX, ULONG nOverlapX,
+ virtual void Scroll( long nDeltaX, long nDeltaY, USHORT nFlags = 0 );
+ void ScrollLines( long nLinesX, long nLinesY );
+ void ScrollPages( long nPagesX, ULONG nOverlapX,
long nPagesY, ULONG nOverlapY );
private:
- SVT_DLLPRIVATE Size GetOutputSizePixel() const;
- SVT_DLLPRIVATE Size GetOutputSize() const;
+ SVT_DLLPRIVATE Size GetOutputSizePixel() const;
+ SVT_DLLPRIVATE Size GetOutputSize() const;
};
#endif
diff --git a/svtools/inc/sfxecode.hxx b/svtools/inc/sfxecode.hxx
index 1ac67e909b69..b9f03f2ec666 100644
--- a/svtools/inc/sfxecode.hxx
+++ b/svtools/inc/sfxecode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,54 +30,54 @@
#include <tools/errcode.hxx>
-#define ERRCODE_SFX_NOSTDTEMPLATE (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|1)
-#define ERRCODE_SFX_NOTATEMPLATE (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|2)
-#define ERRCODE_SFX_GENERAL (ERRCODE_AREA_SFX|ERRCODE_CLASS_GENERAL|3)
-#define ERRCODE_SFX_DOLOADFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_READ|4)
-#define ERRCODE_SFX_DOSAVECOMPLETEDFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_WRITE|5)
-#define ERRCODE_SFX_COMMITFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_WRITE|6)
-#define ERRCODE_SFX_HANDSOFFFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_GENERAL|7)
-#define ERRCODE_SFX_DOINITNEWFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|8)
-#define ERRCODE_SFX_CANTREADDOCINFO (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|9)
-#define ERRCODE_SFX_ALREADYOPEN (ERRCODE_AREA_SFX|ERRCODE_CLASS_ALREADYEXISTS|10)
-#define ERRCODE_SFX_WRONGPASSWORD (ERRCODE_AREA_SFX|ERRCODE_CLASS_READ|11)
-#define ERRCODE_SFX_DOCUMENTREADONLY (ERRCODE_AREA_SFX|ERRCODE_CLASS_WRITE|12)
-#define ERRCODE_SFX_OLEGENERAL (ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|14)
-#define ERRCODE_SFXMSG_STYLEREPLACE (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|13)
-#define ERRCODE_SFX_TEMPLATENOTFOUND (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|15)
-#define ERRCODE_SFX_ISRELATIVE (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|16)
-#define ERRCODE_SFX_FORCEDOCLOAD (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|17)
+#define ERRCODE_SFX_NOSTDTEMPLATE (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|1)
+#define ERRCODE_SFX_NOTATEMPLATE (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|2)
+#define ERRCODE_SFX_GENERAL (ERRCODE_AREA_SFX|ERRCODE_CLASS_GENERAL|3)
+#define ERRCODE_SFX_DOLOADFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_READ|4)
+#define ERRCODE_SFX_DOSAVECOMPLETEDFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_WRITE|5)
+#define ERRCODE_SFX_COMMITFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_WRITE|6)
+#define ERRCODE_SFX_HANDSOFFFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_GENERAL|7)
+#define ERRCODE_SFX_DOINITNEWFAILED (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|8)
+#define ERRCODE_SFX_CANTREADDOCINFO (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|9)
+#define ERRCODE_SFX_ALREADYOPEN (ERRCODE_AREA_SFX|ERRCODE_CLASS_ALREADYEXISTS|10)
+#define ERRCODE_SFX_WRONGPASSWORD (ERRCODE_AREA_SFX|ERRCODE_CLASS_READ|11)
+#define ERRCODE_SFX_DOCUMENTREADONLY (ERRCODE_AREA_SFX|ERRCODE_CLASS_WRITE|12)
+#define ERRCODE_SFX_OLEGENERAL (ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|14)
+#define ERRCODE_SFXMSG_STYLEREPLACE (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|13)
+#define ERRCODE_SFX_TEMPLATENOTFOUND (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|15)
+#define ERRCODE_SFX_ISRELATIVE (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|16)
+#define ERRCODE_SFX_FORCEDOCLOAD (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|17)
-#define ERRCODE_SFX_CANTFINDORIGINAL (ERRCODE_AREA_SFX|ERRCODE_CLASS_GENERAL|19)
-#define ERRCODE_SFX_RESTART (ERRCODE_AREA_SFX|ERRCODE_CLASS_GENERAL|20)
-#define ERRCODE_SFX_CANTCREATECONTENT (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|21)
-#define ERRCODE_SFX_CANTCREATELINK (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|22)
-#define ERRCODE_SFX_WRONGBMKFORMAT (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|23)
-#define ERRCODE_SFX_WRONGICONFILE (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|24)
-#define ERRCODE_SFX_CANTDELICONFILE (ERRCODE_AREA_SFX|ERRCODE_CLASS_ACCESS|25)
-#define ERRCODE_SFX_CANTWRITEICONFILE (ERRCODE_AREA_SFX|ERRCODE_CLASS_ACCESS|26)
-#define ERRCODE_SFX_CANTRENAMECONTENT (ERRCODE_AREA_SFX|ERRCODE_CLASS_ACCESS|27)
-#define ERRCODE_SFX_INVALIDBMKPATH (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|28)
-#define ERRCODE_SFX_CANTWRITEURLCFGFILE (ERRCODE_AREA_SFX|ERRCODE_CLASS_ACCESS|29)
-#define ERRCODE_SFX_WRONGURLCFGFORMAT (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|30)
-#define ERRCODE_SFX_NODOCUMENT (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|31)
-#define ERRCODE_SFX_INVALIDLINK (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|32)
-#define ERRCODE_SFX_INVALIDTRASHPATH (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|33)
-#define ERRCODE_SFX_NOTRESTORABLE (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|34)
-#define ERRCODE_SFX_NOTRASH (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|35)
-#define ERRCODE_SFX_INVALIDSYNTAX (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|36)
-#define ERRCODE_SFX_CANTCREATEFOLDER (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|37)
-#define ERRCODE_SFX_CANTRENAMEFOLDER (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|38)
-#define ERRCODE_SFX_WRONG_CDF_FORMAT (ERRCODE_AREA_SFX| ERRCODE_CLASS_READ | 39)
-#define ERRCODE_SFX_EMPTY_SERVER (ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|40)
-#define ERRCODE_SFX_NO_ABOBOX (ERRCODE_AREA_SFX| ERRCODE_CLASS_READ | 41)
-#define ERRCODE_SFX_CANTGETPASSWD (ERRCODE_AREA_SFX| ERRCODE_CLASS_READ | 42)
-#define ERRCODE_SFX_TARGETFILECORRUPTED (ERRCODE_AREA_SFX| ERRCODE_CLASS_READ | 43)
+#define ERRCODE_SFX_CANTFINDORIGINAL (ERRCODE_AREA_SFX|ERRCODE_CLASS_GENERAL|19)
+#define ERRCODE_SFX_RESTART (ERRCODE_AREA_SFX|ERRCODE_CLASS_GENERAL|20)
+#define ERRCODE_SFX_CANTCREATECONTENT (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|21)
+#define ERRCODE_SFX_CANTCREATELINK (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|22)
+#define ERRCODE_SFX_WRONGBMKFORMAT (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|23)
+#define ERRCODE_SFX_WRONGICONFILE (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|24)
+#define ERRCODE_SFX_CANTDELICONFILE (ERRCODE_AREA_SFX|ERRCODE_CLASS_ACCESS|25)
+#define ERRCODE_SFX_CANTWRITEICONFILE (ERRCODE_AREA_SFX|ERRCODE_CLASS_ACCESS|26)
+#define ERRCODE_SFX_CANTRENAMECONTENT (ERRCODE_AREA_SFX|ERRCODE_CLASS_ACCESS|27)
+#define ERRCODE_SFX_INVALIDBMKPATH (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|28)
+#define ERRCODE_SFX_CANTWRITEURLCFGFILE (ERRCODE_AREA_SFX|ERRCODE_CLASS_ACCESS|29)
+#define ERRCODE_SFX_WRONGURLCFGFORMAT (ERRCODE_AREA_SFX|ERRCODE_CLASS_FORMAT|30)
+#define ERRCODE_SFX_NODOCUMENT (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|31)
+#define ERRCODE_SFX_INVALIDLINK (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|32)
+#define ERRCODE_SFX_INVALIDTRASHPATH (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|33)
+#define ERRCODE_SFX_NOTRESTORABLE (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|34)
+#define ERRCODE_SFX_NOTRASH (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|35)
+#define ERRCODE_SFX_INVALIDSYNTAX (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|36)
+#define ERRCODE_SFX_CANTCREATEFOLDER (ERRCODE_AREA_SFX|ERRCODE_CLASS_CREATE|37)
+#define ERRCODE_SFX_CANTRENAMEFOLDER (ERRCODE_AREA_SFX|ERRCODE_CLASS_PATH|38)
+#define ERRCODE_SFX_WRONG_CDF_FORMAT (ERRCODE_AREA_SFX| ERRCODE_CLASS_READ | 39)
+#define ERRCODE_SFX_EMPTY_SERVER (ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|40)
+#define ERRCODE_SFX_NO_ABOBOX (ERRCODE_AREA_SFX| ERRCODE_CLASS_READ | 41)
+#define ERRCODE_SFX_CANTGETPASSWD (ERRCODE_AREA_SFX| ERRCODE_CLASS_READ | 42)
+#define ERRCODE_SFX_TARGETFILECORRUPTED (ERRCODE_AREA_SFX| ERRCODE_CLASS_READ | 43)
#define ERRCODE_SFX_NOMOREDOCUMENTSALLOWED (ERRCODE_WARNING_MASK | ERRCODE_AREA_SFX | ERRCODE_CLASS_NONE | 44)
-#define ERRCODE_SFX_NOFILTER (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|45)
-#define ERRCODE_SFX_FORCEQUIET (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|47)
-#define ERRCODE_SFX_CONSULTUSER (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|48)
-#define ERRCODE_SFX_NEVERCHECKCONTENT (ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|49)
+#define ERRCODE_SFX_NOFILTER (ERRCODE_AREA_SFX|ERRCODE_CLASS_NOTEXISTS|45)
+#define ERRCODE_SFX_FORCEQUIET (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|47)
+#define ERRCODE_SFX_CONSULTUSER (ERRCODE_WARNING_MASK|ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|48)
+#define ERRCODE_SFX_NEVERCHECKCONTENT (ERRCODE_AREA_SFX|ERRCODE_CLASS_NONE|49)
#define ERRCODE_SFX_CANTCREATEBACKUP (ERRCODE_AREA_SFX | ERRCODE_CLASS_CREATE | 50)
#define ERRCODE_SFX_MACROS_SUPPORT_DISABLED (ERRCODE_WARNING_MASK | ERRCODE_AREA_SFX | ERRCODE_CLASS_NONE | 51)
#define ERRCODE_SFX_DOCUMENT_MACRO_DISABLED (ERRCODE_WARNING_MASK | ERRCODE_AREA_SFX | ERRCODE_CLASS_NONE | 52)
@@ -88,31 +88,31 @@
//Dies und das
-#define ERRCTX_ERROR 21
-#define ERRCTX_WARNING 22
+#define ERRCTX_ERROR 21
+#define ERRCTX_WARNING 22
//Documentkontexte
-#define ERRCTX_SFX_LOADTEMPLATE 1
-#define ERRCTX_SFX_SAVEDOC 2
-#define ERRCTX_SFX_SAVEASDOC 3
-#define ERRCTX_SFX_DOCINFO 4
-#define ERRCTX_SFX_DOCTEMPLATE 5
-#define ERRCTX_SFX_MOVEORCOPYCONTENTS 6
+#define ERRCTX_SFX_LOADTEMPLATE 1
+#define ERRCTX_SFX_SAVEDOC 2
+#define ERRCTX_SFX_SAVEASDOC 3
+#define ERRCTX_SFX_DOCINFO 4
+#define ERRCTX_SFX_DOCTEMPLATE 5
+#define ERRCTX_SFX_MOVEORCOPYCONTENTS 6
//Appkontexte
-#define ERRCTX_SFX_DOCMANAGER 50
-#define ERRCTX_SFX_OPENDOC 51
-#define ERRCTX_SFX_NEWDOCDIRECT 52
-#define ERRCTX_SFX_NEWDOC 53
+#define ERRCTX_SFX_DOCMANAGER 50
+#define ERRCTX_SFX_OPENDOC 51
+#define ERRCTX_SFX_NEWDOCDIRECT 52
+#define ERRCTX_SFX_NEWDOC 53
//Organizerkontexte
-#define ERRCTX_SFX_CREATEOBJSH 70
+#define ERRCTX_SFX_CREATEOBJSH 70
//BASIC-Kontexte
-#define ERRCTX_SFX_LOADBASIC 80
+#define ERRCTX_SFX_LOADBASIC 80
//Addressbook contexts
-#define ERRCTX_SFX_SEARCHADDRESS 90
+#define ERRCTX_SFX_SEARCHADDRESS 90
#endif // #ifndef _SFXECODE_HXX
diff --git a/svtools/inc/soerr.hxx b/svtools/inc/soerr.hxx
index 05d3100f8f4e..fb3d8a73b8ed 100644
--- a/svtools/inc/soerr.hxx
+++ b/svtools/inc/soerr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,50 +31,50 @@
#include <tools/errcode.hxx>
// Fehler Codes
-#define RID_SO_ERROR_HANDLER 32000
+#define RID_SO_ERROR_HANDLER 32000
#define SO_ERR() (ERRCODE_AREA_SO | ERRCODE_CLASS_SO)
#define SO_WRN() (ERRCODE_AREA_SO | ERRCODE_CLASS_SO | ERRCODE_WARNING_MASK)
-#define ERRCODE_SO_GENERALERROR (SO_ERR() | 1)
-#define ERRCODE_SO_CANT_BINDTOSOURCE (SO_ERR() | 2)
-#define ERRCODE_SO_NOCACHE_UPDATED (SO_ERR() | 3)
-#define ERRCODE_SO_SOMECACHES_NOTUPDATED (SO_WRN() | 4)
-#define ERRCODE_SO_MK_UNAVAILABLE (SO_ERR() | 5)
-#define ERRCODE_SO_E_CLASSDIFF (SO_ERR() | 6)
-#define ERRCODE_SO_MK_NO_OBJECT (SO_ERR() | 7)
-#define ERRCODE_SO_MK_EXCEEDED_DEADLINE (SO_ERR() | 8)
-#define ERRCODE_SO_MK_CONNECT_MANUALLY (SO_ERR() | 9)
-#define ERRCODE_SO_MK_INTERMEDIATE_INTERFACE_NOT_SUPPORTED (SO_ERR() | 10)
-#define ERRCODE_SO_NO_INTERFACE (SO_ERR() | 11)
-#define ERRCODE_SO_OUT_OF_MEMORY (SO_ERR() | 12)
-#define ERRCODE_SO_MK_SYNTAX (SO_ERR() | 13)
-#define ERRCODE_SO_MK_REDUCED_TO_SELF (SO_WRN() | 14)
+#define ERRCODE_SO_GENERALERROR (SO_ERR() | 1)
+#define ERRCODE_SO_CANT_BINDTOSOURCE (SO_ERR() | 2)
+#define ERRCODE_SO_NOCACHE_UPDATED (SO_ERR() | 3)
+#define ERRCODE_SO_SOMECACHES_NOTUPDATED (SO_WRN() | 4)
+#define ERRCODE_SO_MK_UNAVAILABLE (SO_ERR() | 5)
+#define ERRCODE_SO_E_CLASSDIFF (SO_ERR() | 6)
+#define ERRCODE_SO_MK_NO_OBJECT (SO_ERR() | 7)
+#define ERRCODE_SO_MK_EXCEEDED_DEADLINE (SO_ERR() | 8)
+#define ERRCODE_SO_MK_CONNECT_MANUALLY (SO_ERR() | 9)
+#define ERRCODE_SO_MK_INTERMEDIATE_INTERFACE_NOT_SUPPORTED (SO_ERR() | 10)
+#define ERRCODE_SO_NO_INTERFACE (SO_ERR() | 11)
+#define ERRCODE_SO_OUT_OF_MEMORY (SO_ERR() | 12)
+#define ERRCODE_SO_MK_SYNTAX (SO_ERR() | 13)
+#define ERRCODE_SO_MK_REDUCED_TO_SELF (SO_WRN() | 14)
#define ERRCODE_SO_MK_NO_INVERSE (SO_ERR() | 15)
-#define ERRCODE_SO_MK_NO_PREFIX (SO_ERR() | 16)
-#define ERRCODE_SO_MK_HIM (SO_WRN() | 17)
-#define ERRCODE_SO_MK_US (SO_WRN() | 18)
-#define ERRCODE_SO_MK_ME (SO_WRN() | 19)
-#define ERRCODE_SO_MK_NOT_BINDABLE (SO_ERR() | 20)
-#define ERRCODE_SO_NOT_IMPLEMENTED (SO_ERR() | 21)
-#define ERRCODE_SO_MK_NO_STORAGE (SO_ERR() | 22)
-#define ERRCODE_SO_FALSE (SO_WRN() | 23)
-#define ERRCODE_SO_MK_NEED_GENERIC (SO_ERR() | 24)
-#define ERRCODE_SO_PENDING (SO_ERR() | 25)
-#define ERRCODE_SO_NOT_INPLACEACTIVE (SO_ERR() | 26)
-#define ERRCODE_SO_LINDEX (SO_ERR() | 27)
-#define ERRCODE_SO_CANNOT_DOVERB_NOW (SO_WRN() | 28)
-#define ERRCODE_SO_OLEOBJ_INVALIDHWND (SO_WRN() | 29)
-#define ERRCODE_SO_NOVERBS (SO_ERR() | 30)
-#define ERRCODE_SO_INVALIDVERB (SO_WRN() | 31)
-#define ERRCODE_SO_MK_CONNECT (SO_ERR() | 32)
-#define ERRCODE_SO_NOTIMPL (SO_ERR() | 33)
+#define ERRCODE_SO_MK_NO_PREFIX (SO_ERR() | 16)
+#define ERRCODE_SO_MK_HIM (SO_WRN() | 17)
+#define ERRCODE_SO_MK_US (SO_WRN() | 18)
+#define ERRCODE_SO_MK_ME (SO_WRN() | 19)
+#define ERRCODE_SO_MK_NOT_BINDABLE (SO_ERR() | 20)
+#define ERRCODE_SO_NOT_IMPLEMENTED (SO_ERR() | 21)
+#define ERRCODE_SO_MK_NO_STORAGE (SO_ERR() | 22)
+#define ERRCODE_SO_FALSE (SO_WRN() | 23)
+#define ERRCODE_SO_MK_NEED_GENERIC (SO_ERR() | 24)
+#define ERRCODE_SO_PENDING (SO_ERR() | 25)
+#define ERRCODE_SO_NOT_INPLACEACTIVE (SO_ERR() | 26)
+#define ERRCODE_SO_LINDEX (SO_ERR() | 27)
+#define ERRCODE_SO_CANNOT_DOVERB_NOW (SO_WRN() | 28)
+#define ERRCODE_SO_OLEOBJ_INVALIDHWND (SO_WRN() | 29)
+#define ERRCODE_SO_NOVERBS (SO_ERR() | 30)
+#define ERRCODE_SO_INVALIDVERB (SO_WRN() | 31)
+#define ERRCODE_SO_MK_CONNECT (SO_ERR() | 32)
+#define ERRCODE_SO_NOTIMPL (SO_ERR() | 33)
#define ERRCODE_SO_MK_CANTOPENFILE (SO_ERR() | 34)
// Fehler Contexte
-#define RID_SO_ERRCTX 32001
+#define RID_SO_ERRCTX 32001
-#define ERRCTX_SO_DOVERB 1
+#define ERRCTX_SO_DOVERB 1
diff --git a/svtools/inc/sores.hxx b/svtools/inc/sores.hxx
index 1b19a2c8144c..dcb49f43e0c8 100644
--- a/svtools/inc/sores.hxx
+++ b/svtools/inc/sores.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,156 +27,156 @@
************************************************************************/
// Strings
-#define STR_INS_OBJECT 32000
-#define STR_INS_OBJECT_ICON 32001
-#define STR_INS_FILE 32002
-#define STR_INS_FILE_ICON 32003
-#define STR_INS_FILE_LINK 32004
-#define STR_INS_FILE_ICON_LINK 32005
-#define STR_PASTE 32012
-#define STR_ERROR_DDE 32013
-#define STR_ERROR_OBJNOCREATE 32014
-#define STR_ERROR_OBJNOCREATE_FROM_FILE 32015
-#define STR_VERB_OPEN 32016
-#define STR_PLUGIN_CANT_SHOW 32017
-#define STR_ERROR_OBJNOCREATE_PLUGIN 32018
-#define STR_INS_PLUGIN 32019
-#define STR_CONVERT_TO 32010
-#define STR_ACTIVATE_AS 32021
-#define STR_QUERYUPDATELINKS 32022
-#define STR_INS_APPLET 32023
-#define STR_VERB_PROPS 32025
-#define STR_FURTHER_OBJECT 32026
-#define STR_EDIT_APPLET 32029
-#define STR_UNKNOWN_SOURCE 32027
+#define STR_INS_OBJECT 32000
+#define STR_INS_OBJECT_ICON 32001
+#define STR_INS_FILE 32002
+#define STR_INS_FILE_ICON 32003
+#define STR_INS_FILE_LINK 32004
+#define STR_INS_FILE_ICON_LINK 32005
+#define STR_PASTE 32012
+#define STR_ERROR_DDE 32013
+#define STR_ERROR_OBJNOCREATE 32014
+#define STR_ERROR_OBJNOCREATE_FROM_FILE 32015
+#define STR_VERB_OPEN 32016
+#define STR_PLUGIN_CANT_SHOW 32017
+#define STR_ERROR_OBJNOCREATE_PLUGIN 32018
+#define STR_INS_PLUGIN 32019
+#define STR_CONVERT_TO 32010
+#define STR_ACTIVATE_AS 32021
+#define STR_QUERYUPDATELINKS 32022
+#define STR_INS_APPLET 32023
+#define STR_VERB_PROPS 32025
+#define STR_FURTHER_OBJECT 32026
+#define STR_EDIT_APPLET 32029
+#define STR_UNKNOWN_SOURCE 32027
-#define BMP_PLUGIN 32000
-#define BMP_OLEOBJ 32001
-#define MB_PLUGIN 32000
-#define MI_PLUGIN 32000
-#define MI_PLUGIN_DEACTIVATE 1
+#define BMP_PLUGIN 32000
+#define BMP_OLEOBJ 32001
+#define MB_PLUGIN 32000
+#define MI_PLUGIN 32000
+#define MI_PLUGIN_DEACTIVATE 1
// Sot Format Strings
-#define STR_FORMAT_START 32100
-#define STR_FORMAT_STRING (STR_FORMAT_START + 1)
-#define STR_FORMAT_BITMAP (STR_FORMAT_START + 2)
-#define STR_FORMAT_GDIMETAFILE (STR_FORMAT_START + 3)
- // #define STR_FORMAT_PRIVATE (STR_FORMAT_START + 4)
- // #define STR_FORMAT_FILE (STR_FORMAT_START + 5)
- // #define STR_FORMAT_FILE_LIST (STR_FORMAT_START + 6)
-#define STR_FORMAT_RTF (STR_FORMAT_START + 7)
-#define STR_FORMAT_ID_DRAWING (STR_FORMAT_START + 8)
-#define STR_FORMAT_ID_SVXB (STR_FORMAT_START + 9)
- // #define STR_FORMAT_ID_SVIM (STR_FORMAT_START + 10)
- // #define STR_FORMAT_ID_XFA (STR_FORMAT_START + 11)
- // #define STR_FORMAT_ID_EDITENGINE (STR_FORMAT_START + 12)
-#define STR_FORMAT_ID_INTERNALLINK_STATE (STR_FORMAT_START + 13)
-#define STR_FORMAT_ID_SOLK (STR_FORMAT_START + 14)
-#define STR_FORMAT_ID_NETSCAPE_BOOKMARK (STR_FORMAT_START + 15)
- // #define STR_FORMAT_ID_TREELISTBOX (STR_FORMAT_START + 16)
- // #define STR_FORMAT_ID_NATIVE (STR_FORMAT_START + 17)
- // #define STR_FORMAT_ID_OWNERLINK (STR_FORMAT_START + 18)
-#define STR_FORMAT_ID_STARSERVER (STR_FORMAT_START + 19)
-#define STR_FORMAT_ID_STAROBJECT (STR_FORMAT_START + 20)
-#define STR_FORMAT_ID_APPLETOBJECT (STR_FORMAT_START + 21)
-#define STR_FORMAT_ID_PLUGIN_OBJECT (STR_FORMAT_START + 22)
-#define STR_FORMAT_ID_STARWRITER_30 (STR_FORMAT_START + 23)
-#define STR_FORMAT_ID_STARWRITER_40 (STR_FORMAT_START + 24)
-#define STR_FORMAT_ID_STARWRITER_50 (STR_FORMAT_START + 25)
-#define STR_FORMAT_ID_STARWRITERWEB_40 (STR_FORMAT_START + 26)
-#define STR_FORMAT_ID_STARWRITERWEB_50 (STR_FORMAT_START + 27)
-#define STR_FORMAT_ID_STARWRITERGLOB_40 (STR_FORMAT_START + 28)
-#define STR_FORMAT_ID_STARWRITERGLOB_50 (STR_FORMAT_START + 29)
-#define STR_FORMAT_ID_STARDRAW (STR_FORMAT_START + 30)
-#define STR_FORMAT_ID_STARDRAW_40 (STR_FORMAT_START + 31)
-#define STR_FORMAT_ID_STARIMPRESS_50 (STR_FORMAT_START + 32)
-#define STR_FORMAT_ID_STARDRAW_50 (STR_FORMAT_START + 33)
-#define STR_FORMAT_ID_STARCALC (STR_FORMAT_START + 34)
-#define STR_FORMAT_ID_STARCALC_40 (STR_FORMAT_START + 35)
-#define STR_FORMAT_ID_STARCALC_50 (STR_FORMAT_START + 36)
-#define STR_FORMAT_ID_STARCHART (STR_FORMAT_START + 37)
-#define STR_FORMAT_ID_STARCHART_40 (STR_FORMAT_START + 38)
-#define STR_FORMAT_ID_STARCHART_50 (STR_FORMAT_START + 39)
-#define STR_FORMAT_ID_STARIMAGE (STR_FORMAT_START + 40)
-#define STR_FORMAT_ID_STARIMAGE_40 (STR_FORMAT_START + 41)
-#define STR_FORMAT_ID_STARIMAGE_50 (STR_FORMAT_START + 42)
-#define STR_FORMAT_ID_STARMATH (STR_FORMAT_START + 43)
-#define STR_FORMAT_ID_STARMATH_40 (STR_FORMAT_START + 44)
-#define STR_FORMAT_ID_STARMATH_50 (STR_FORMAT_START + 45)
-#define STR_FORMAT_ID_STAROBJECT_PAINTDOC (STR_FORMAT_START + 46)
- // #define STR_FORMAT_ID_FILLED_AREA (STR_FORMAT_START + 47)
-#define STR_FORMAT_ID_HTML (STR_FORMAT_START + 48)
-#define STR_FORMAT_ID_HTML_SIMPLE (STR_FORMAT_START + 49)
- // #define STR_FORMAT_ID_CHAOS (STR_FORMAT_START + 50)
- // #define STR_FORMAT_ID_CNT_MSGATTACHFILE (STR_FORMAT_START + 51)
-#define STR_FORMAT_ID_BIFF_5 (STR_FORMAT_START + 52)
+#define STR_FORMAT_START 32100
+#define STR_FORMAT_STRING (STR_FORMAT_START + 1)
+#define STR_FORMAT_BITMAP (STR_FORMAT_START + 2)
+#define STR_FORMAT_GDIMETAFILE (STR_FORMAT_START + 3)
+ // #define STR_FORMAT_PRIVATE (STR_FORMAT_START + 4)
+ // #define STR_FORMAT_FILE (STR_FORMAT_START + 5)
+ // #define STR_FORMAT_FILE_LIST (STR_FORMAT_START + 6)
+#define STR_FORMAT_RTF (STR_FORMAT_START + 7)
+#define STR_FORMAT_ID_DRAWING (STR_FORMAT_START + 8)
+#define STR_FORMAT_ID_SVXB (STR_FORMAT_START + 9)
+ // #define STR_FORMAT_ID_SVIM (STR_FORMAT_START + 10)
+ // #define STR_FORMAT_ID_XFA (STR_FORMAT_START + 11)
+ // #define STR_FORMAT_ID_EDITENGINE (STR_FORMAT_START + 12)
+#define STR_FORMAT_ID_INTERNALLINK_STATE (STR_FORMAT_START + 13)
+#define STR_FORMAT_ID_SOLK (STR_FORMAT_START + 14)
+#define STR_FORMAT_ID_NETSCAPE_BOOKMARK (STR_FORMAT_START + 15)
+ // #define STR_FORMAT_ID_TREELISTBOX (STR_FORMAT_START + 16)
+ // #define STR_FORMAT_ID_NATIVE (STR_FORMAT_START + 17)
+ // #define STR_FORMAT_ID_OWNERLINK (STR_FORMAT_START + 18)
+#define STR_FORMAT_ID_STARSERVER (STR_FORMAT_START + 19)
+#define STR_FORMAT_ID_STAROBJECT (STR_FORMAT_START + 20)
+#define STR_FORMAT_ID_APPLETOBJECT (STR_FORMAT_START + 21)
+#define STR_FORMAT_ID_PLUGIN_OBJECT (STR_FORMAT_START + 22)
+#define STR_FORMAT_ID_STARWRITER_30 (STR_FORMAT_START + 23)
+#define STR_FORMAT_ID_STARWRITER_40 (STR_FORMAT_START + 24)
+#define STR_FORMAT_ID_STARWRITER_50 (STR_FORMAT_START + 25)
+#define STR_FORMAT_ID_STARWRITERWEB_40 (STR_FORMAT_START + 26)
+#define STR_FORMAT_ID_STARWRITERWEB_50 (STR_FORMAT_START + 27)
+#define STR_FORMAT_ID_STARWRITERGLOB_40 (STR_FORMAT_START + 28)
+#define STR_FORMAT_ID_STARWRITERGLOB_50 (STR_FORMAT_START + 29)
+#define STR_FORMAT_ID_STARDRAW (STR_FORMAT_START + 30)
+#define STR_FORMAT_ID_STARDRAW_40 (STR_FORMAT_START + 31)
+#define STR_FORMAT_ID_STARIMPRESS_50 (STR_FORMAT_START + 32)
+#define STR_FORMAT_ID_STARDRAW_50 (STR_FORMAT_START + 33)
+#define STR_FORMAT_ID_STARCALC (STR_FORMAT_START + 34)
+#define STR_FORMAT_ID_STARCALC_40 (STR_FORMAT_START + 35)
+#define STR_FORMAT_ID_STARCALC_50 (STR_FORMAT_START + 36)
+#define STR_FORMAT_ID_STARCHART (STR_FORMAT_START + 37)
+#define STR_FORMAT_ID_STARCHART_40 (STR_FORMAT_START + 38)
+#define STR_FORMAT_ID_STARCHART_50 (STR_FORMAT_START + 39)
+#define STR_FORMAT_ID_STARIMAGE (STR_FORMAT_START + 40)
+#define STR_FORMAT_ID_STARIMAGE_40 (STR_FORMAT_START + 41)
+#define STR_FORMAT_ID_STARIMAGE_50 (STR_FORMAT_START + 42)
+#define STR_FORMAT_ID_STARMATH (STR_FORMAT_START + 43)
+#define STR_FORMAT_ID_STARMATH_40 (STR_FORMAT_START + 44)
+#define STR_FORMAT_ID_STARMATH_50 (STR_FORMAT_START + 45)
+#define STR_FORMAT_ID_STAROBJECT_PAINTDOC (STR_FORMAT_START + 46)
+ // #define STR_FORMAT_ID_FILLED_AREA (STR_FORMAT_START + 47)
+#define STR_FORMAT_ID_HTML (STR_FORMAT_START + 48)
+#define STR_FORMAT_ID_HTML_SIMPLE (STR_FORMAT_START + 49)
+ // #define STR_FORMAT_ID_CHAOS (STR_FORMAT_START + 50)
+ // #define STR_FORMAT_ID_CNT_MSGATTACHFILE (STR_FORMAT_START + 51)
+#define STR_FORMAT_ID_BIFF_5 (STR_FORMAT_START + 52)
#define STR_FORMAT_ID_BIFF_8 (STR_FORMAT_START + 53)
-#define STR_FORMAT_ID_SYLK (STR_FORMAT_START + 54)
- // #define STR_FORMAT_ID_SYLK_BIGCAPS (STR_FORMAT_START + 55)
-#define STR_FORMAT_ID_LINK (STR_FORMAT_START + 56)
-#define STR_FORMAT_ID_DIF (STR_FORMAT_START + 57)
- // #define STR_FORMAT_ID_STARDRAW_TABBAR (STR_FORMAT_START + 58)
- // #define STR_FORMAT_ID_SONLK (STR_FORMAT_START + 59)
-#define STR_FORMAT_ID_MSWORD_DOC (STR_FORMAT_START + 60)
-#define STR_FORMAT_ID_STAR_FRAMESET_DOC (STR_FORMAT_START + 61)
-#define STR_FORMAT_ID_OFFICE_DOC (STR_FORMAT_START + 62)
-#define STR_FORMAT_ID_NOTES_DOCINFO (STR_FORMAT_START + 63)
- // #define STR_FORMAT_ID_NOTES_HNOTE (STR_FORMAT_START + 64)
- // #define STR_FORMAT_ID_NOTES_NATIVE (STR_FORMAT_START + 65)
-#define STR_FORMAT_ID_SFX_DOC (STR_FORMAT_START + 66)
- // #define STR_FORMAT_ID_EVDF (STR_FORMAT_START + 67)
- // #define STR_FORMAT_ID_ESDF (STR_FORMAT_START + 68)
- // #define STR_FORMAT_ID_IDF (STR_FORMAT_START + 69)
- // #define STR_FORMAT_ID_EFTP (STR_FORMAT_START + 70)
- // #define STR_FORMAT_ID_EFD (STR_FORMAT_START + 71)
- // #define STR_FORMAT_ID_SVX_FORMFIELDEXCH (STR_FORMAT_START + 72)
- // #define STR_FORMAT_ID_EXTENDED_TABBAR (STR_FORMAT_START + 73)
- // #define STR_FORMAT_ID_SBA_DATAEXCHANGE (STR_FORMAT_START + 74)
- // #define STR_FORMAT_ID_SBA_FIELDDATAEXCHANGE (STR_FORMAT_START + 75)
- // #define STR_FORMAT_ID_SBA_PRIVATE_URL (STR_FORMAT_START + 76)
- // #define STR_FORMAT_ID_SBA_TABED (STR_FORMAT_START + 77)
- // #define STR_FORMAT_ID_SBA_TABID (STR_FORMAT_START + 78)
- // #define STR_FORMAT_ID_SBA_JOIN (STR_FORMAT_START + 79)
- // #define STR_FORMAT_ID_OBJECTDESCRIPTOR (STR_FORMAT_START + 80)
- // #define STR_FORMAT_ID_LINKSRCDESCRIPTOR (STR_FORMAT_START + 81)
- // #define STR_FORMAT_ID_EMBED_SOURCE (STR_FORMAT_START + 82)
- // #define STR_FORMAT_ID_LINK_SOURCE (STR_FORMAT_START + 83)
- // #define STR_FORMAT_ID_EMBEDDED_OBJ (STR_FORMAT_START + 84)
- // #define STR_FORMAT_ID_FILECONTENT (STR_FORMAT_START + 85)
-#define STR_FORMAT_ID_FILEGRPDESCRIPTOR (STR_FORMAT_START + 86)
- // #define STR_FORMAT_ID_FILENAME (STR_FORMAT_START + 87)
- // #define STR_FORMAT_ID_SD_OLE (STR_FORMAT_START + 88)
- // #define STR_FORMAT_ID_EMBEDDED_OBJ_OLE (STR_FORMAT_START + 89)
- // #define STR_FORMAT_ID_EMBED_SOURCE_OLE (STR_FORMAT_START + 90)
- // #define STR_FORMAT_ID_OBJECTDESCRIPTOR_OLE (STR_FORMAT_START + 91)
- // #define STR_FORMAT_ID_LINKSRCDESCRIPTOR_OLE (STR_FORMAT_START + 92)
- // #define STR_FORMAT_ID_LINK_SOURCE_OLE (STR_FORMAT_START + 93)
- // #define STR_FORMAT_ID_SBA_CTRLDATAEXCHANGE (STR_FORMAT_START + 94)
- // #define STR_FORMAT_ID_OUTPLACE_OBJ (STR_FORMAT_START + 95)
- // #define STR_FORMAT_ID_CNT_OWN_CLIP (STR_FORMAT_START + 96)
- // #define STR_FORMAT_ID_INET_IMAGE (STR_FORMAT_START + 97)
- // #define STR_FORMAT_ID_NETSCAPE_IMAGE (STR_FORMAT_START + 98)
- // #define STR_FORMAT_ID_SBA_FORMEXCHANGE (STR_FORMAT_START + 99)
- // #define STR_FORMAT_ID_SBA_REPORTEXCHANGE (STR_FORMAT_START + 100)
- // #define STR_FORMAT_ID_UNIFORMRESOURCELOCATOR (STR_FORMAT_START + 101)
-#define STR_FORMAT_ID_STARCHARTDOCUMENT_50 (STR_FORMAT_START + 102)
-#define STR_FORMAT_ID_GRAPHOBJ (STR_FORMAT_START + 103)
-#define STR_FORMAT_ID_STARWRITER_60 (STR_FORMAT_START + 104)
-#define STR_FORMAT_ID_STARWRITERWEB_60 (STR_FORMAT_START + 105)
-#define STR_FORMAT_ID_STARWRITERGLOB_60 (STR_FORMAT_START + 106)
-#define STR_FORMAT_ID_STARDRAW_60 (STR_FORMAT_START + 107)
-#define STR_FORMAT_ID_STARIMPRESS_60 (STR_FORMAT_START + 108)
-#define STR_FORMAT_ID_STARCALC_60 (STR_FORMAT_START + 109)
-#define STR_FORMAT_ID_STARCHART_60 (STR_FORMAT_START + 110)
-#define STR_FORMAT_ID_STARMATH_60 (STR_FORMAT_START + 111)
-#define STR_FORMAT_ID_WMF (STR_FORMAT_START + 112)
-#define STR_FORMAT_ID_DBACCESS_QUERY (STR_FORMAT_START + 113)
-#define STR_FORMAT_ID_DBACCESS_TABLE (STR_FORMAT_START + 114)
-#define STR_FORMAT_ID_DBACCESS_COMMAND (STR_FORMAT_START + 115)
-#define STR_FORMAT_ID_DIALOG_60 (STR_FORMAT_START + 116)
+#define STR_FORMAT_ID_SYLK (STR_FORMAT_START + 54)
+ // #define STR_FORMAT_ID_SYLK_BIGCAPS (STR_FORMAT_START + 55)
+#define STR_FORMAT_ID_LINK (STR_FORMAT_START + 56)
+#define STR_FORMAT_ID_DIF (STR_FORMAT_START + 57)
+ // #define STR_FORMAT_ID_STARDRAW_TABBAR (STR_FORMAT_START + 58)
+ // #define STR_FORMAT_ID_SONLK (STR_FORMAT_START + 59)
+#define STR_FORMAT_ID_MSWORD_DOC (STR_FORMAT_START + 60)
+#define STR_FORMAT_ID_STAR_FRAMESET_DOC (STR_FORMAT_START + 61)
+#define STR_FORMAT_ID_OFFICE_DOC (STR_FORMAT_START + 62)
+#define STR_FORMAT_ID_NOTES_DOCINFO (STR_FORMAT_START + 63)
+ // #define STR_FORMAT_ID_NOTES_HNOTE (STR_FORMAT_START + 64)
+ // #define STR_FORMAT_ID_NOTES_NATIVE (STR_FORMAT_START + 65)
+#define STR_FORMAT_ID_SFX_DOC (STR_FORMAT_START + 66)
+ // #define STR_FORMAT_ID_EVDF (STR_FORMAT_START + 67)
+ // #define STR_FORMAT_ID_ESDF (STR_FORMAT_START + 68)
+ // #define STR_FORMAT_ID_IDF (STR_FORMAT_START + 69)
+ // #define STR_FORMAT_ID_EFTP (STR_FORMAT_START + 70)
+ // #define STR_FORMAT_ID_EFD (STR_FORMAT_START + 71)
+ // #define STR_FORMAT_ID_SVX_FORMFIELDEXCH (STR_FORMAT_START + 72)
+ // #define STR_FORMAT_ID_EXTENDED_TABBAR (STR_FORMAT_START + 73)
+ // #define STR_FORMAT_ID_SBA_DATAEXCHANGE (STR_FORMAT_START + 74)
+ // #define STR_FORMAT_ID_SBA_FIELDDATAEXCHANGE (STR_FORMAT_START + 75)
+ // #define STR_FORMAT_ID_SBA_PRIVATE_URL (STR_FORMAT_START + 76)
+ // #define STR_FORMAT_ID_SBA_TABED (STR_FORMAT_START + 77)
+ // #define STR_FORMAT_ID_SBA_TABID (STR_FORMAT_START + 78)
+ // #define STR_FORMAT_ID_SBA_JOIN (STR_FORMAT_START + 79)
+ // #define STR_FORMAT_ID_OBJECTDESCRIPTOR (STR_FORMAT_START + 80)
+ // #define STR_FORMAT_ID_LINKSRCDESCRIPTOR (STR_FORMAT_START + 81)
+ // #define STR_FORMAT_ID_EMBED_SOURCE (STR_FORMAT_START + 82)
+ // #define STR_FORMAT_ID_LINK_SOURCE (STR_FORMAT_START + 83)
+ // #define STR_FORMAT_ID_EMBEDDED_OBJ (STR_FORMAT_START + 84)
+ // #define STR_FORMAT_ID_FILECONTENT (STR_FORMAT_START + 85)
+#define STR_FORMAT_ID_FILEGRPDESCRIPTOR (STR_FORMAT_START + 86)
+ // #define STR_FORMAT_ID_FILENAME (STR_FORMAT_START + 87)
+ // #define STR_FORMAT_ID_SD_OLE (STR_FORMAT_START + 88)
+ // #define STR_FORMAT_ID_EMBEDDED_OBJ_OLE (STR_FORMAT_START + 89)
+ // #define STR_FORMAT_ID_EMBED_SOURCE_OLE (STR_FORMAT_START + 90)
+ // #define STR_FORMAT_ID_OBJECTDESCRIPTOR_OLE (STR_FORMAT_START + 91)
+ // #define STR_FORMAT_ID_LINKSRCDESCRIPTOR_OLE (STR_FORMAT_START + 92)
+ // #define STR_FORMAT_ID_LINK_SOURCE_OLE (STR_FORMAT_START + 93)
+ // #define STR_FORMAT_ID_SBA_CTRLDATAEXCHANGE (STR_FORMAT_START + 94)
+ // #define STR_FORMAT_ID_OUTPLACE_OBJ (STR_FORMAT_START + 95)
+ // #define STR_FORMAT_ID_CNT_OWN_CLIP (STR_FORMAT_START + 96)
+ // #define STR_FORMAT_ID_INET_IMAGE (STR_FORMAT_START + 97)
+ // #define STR_FORMAT_ID_NETSCAPE_IMAGE (STR_FORMAT_START + 98)
+ // #define STR_FORMAT_ID_SBA_FORMEXCHANGE (STR_FORMAT_START + 99)
+ // #define STR_FORMAT_ID_SBA_REPORTEXCHANGE (STR_FORMAT_START + 100)
+ // #define STR_FORMAT_ID_UNIFORMRESOURCELOCATOR (STR_FORMAT_START + 101)
+#define STR_FORMAT_ID_STARCHARTDOCUMENT_50 (STR_FORMAT_START + 102)
+#define STR_FORMAT_ID_GRAPHOBJ (STR_FORMAT_START + 103)
+#define STR_FORMAT_ID_STARWRITER_60 (STR_FORMAT_START + 104)
+#define STR_FORMAT_ID_STARWRITERWEB_60 (STR_FORMAT_START + 105)
+#define STR_FORMAT_ID_STARWRITERGLOB_60 (STR_FORMAT_START + 106)
+#define STR_FORMAT_ID_STARDRAW_60 (STR_FORMAT_START + 107)
+#define STR_FORMAT_ID_STARIMPRESS_60 (STR_FORMAT_START + 108)
+#define STR_FORMAT_ID_STARCALC_60 (STR_FORMAT_START + 109)
+#define STR_FORMAT_ID_STARCHART_60 (STR_FORMAT_START + 110)
+#define STR_FORMAT_ID_STARMATH_60 (STR_FORMAT_START + 111)
+#define STR_FORMAT_ID_WMF (STR_FORMAT_START + 112)
+#define STR_FORMAT_ID_DBACCESS_QUERY (STR_FORMAT_START + 113)
+#define STR_FORMAT_ID_DBACCESS_TABLE (STR_FORMAT_START + 114)
+#define STR_FORMAT_ID_DBACCESS_COMMAND (STR_FORMAT_START + 115)
+#define STR_FORMAT_ID_DIALOG_60 (STR_FORMAT_START + 116)
// #define STR_FORMAT_ID_EMF (STR_FORMAT_START + 117)
// #define STR_FORMAT_ID_BIFF_8 (STR_FORMAT_START + 118)
#define STR_FORMAT_ID_HTML_NO_COMMENT (STR_FORMAT_START + 119)
-#define STR_FORMAT_END (STR_FORMAT_ID_HTML_NO_COMMENT)
+#define STR_FORMAT_END (STR_FORMAT_ID_HTML_NO_COMMENT)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/statusbarcontroller.hxx b/svtools/inc/statusbarcontroller.hxx
index f84cbd6abaec..62abbab48b6f 100644
--- a/svtools/inc/statusbarcontroller.hxx
+++ b/svtools/inc/statusbarcontroller.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,8 +67,8 @@ class SVT_DLLPUBLIC StatusbarController : public ::com::sun::star::frame::XStatu
const rtl::OUString& aCommandURL,
unsigned short nID );
StatusbarController();
- virtual ~StatusbarController();
-
+ virtual ~StatusbarController();
+
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > getFrameInterface() const;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getServiceManager() const;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > getLayoutManager() const;
@@ -78,7 +78,7 @@ class SVT_DLLPUBLIC StatusbarController : public ::com::sun::star::frame::XStatu
void updateStatus();
::Rectangle getControlRect() const;
-
+
// XInterface
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL acquire() throw ();
@@ -86,18 +86,18 @@ class SVT_DLLPUBLIC StatusbarController : public ::com::sun::star::frame::XStatu
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
+
// XUpdatable
virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException);
-
+
// XComponent
virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
-
+
// XEventListener
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
@@ -105,22 +105,22 @@ class SVT_DLLPUBLIC StatusbarController : public ::com::sun::star::frame::XStatu
virtual ::sal_Bool SAL_CALL mouseButtonDown( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
virtual ::sal_Bool SAL_CALL mouseMove( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
virtual ::sal_Bool SAL_CALL mouseButtonUp( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL command( const ::com::sun::star::awt::Point& aPos,
- ::sal_Int32 nCommand,
- ::sal_Bool bMouseEvent,
+ virtual void SAL_CALL command( const ::com::sun::star::awt::Point& aPos,
+ ::sal_Int32 nCommand,
+ ::sal_Bool bMouseEvent,
const ::com::sun::star::uno::Any& aData ) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL paint( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics,
- const ::com::sun::star::awt::Rectangle& rOutputRectangle,
+ virtual void SAL_CALL paint( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics,
+ const ::com::sun::star::awt::Rectangle& rOutputRectangle,
::sal_Int32 nItemId, ::sal_Int32 nStyle ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL click() throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL doubleClick() throw (::com::sun::star::uno::RuntimeException);
-
+
protected:
struct Listener
{
Listener( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >& rDispatch ) :
aURL( rURL ), xDispatch( rDispatch ) {}
-
+
::com::sun::star::util::URL aURL;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > xDispatch;
};
@@ -129,19 +129,19 @@ class SVT_DLLPUBLIC StatusbarController : public ::com::sun::star::frame::XStatu
com::sun::star::uno::Reference< com::sun::star::frame::XDispatch >,
::rtl::OUStringHash,
::std::equal_to< ::rtl::OUString > > URLToDispatchMap;
-
+
// methods to support status forwarder, known by the old sfx2 toolbox controller implementation
void addStatusListener( const rtl::OUString& aCommandURL );
void removeStatusListener( const rtl::OUString& aCommandURL );
void bindListener();
void unbindListener();
sal_Bool isBound() const;
-
+
// execute methods
// execute bound status bar controller command/execute various commands
void execute( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs );
void execute( const rtl::OUString& aCommand, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs );
-
+
sal_Bool m_bInitialized : 1,
m_bDisposed : 1;
unsigned short m_nID;
diff --git a/svtools/inc/stdmenu.hxx b/svtools/inc/stdmenu.hxx
index 2ccb6cd59605..86fa03013599 100644
--- a/svtools/inc/stdmenu.hxx
+++ b/svtools/inc/stdmenu.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -152,59 +152,59 @@ FontList; FontNameMenu; FontStyleMenu; FontSizeBox
class SVT_DLLPUBLIC FontNameMenu : public PopupMenu
{
private:
- XubString maCurName;
- Link maSelectHdl;
- Link maHighlightHdl;
+ XubString maCurName;
+ Link maSelectHdl;
+ Link maHighlightHdl;
public:
FontNameMenu();
- virtual ~FontNameMenu();
+ virtual ~FontNameMenu();
- virtual void Select();
- virtual void Highlight();
+ virtual void Select();
+ virtual void Highlight();
- void Fill( const FontList* pList );
+ void Fill( const FontList* pList );
- void SetCurName( const XubString& rName );
+ void SetCurName( const XubString& rName );
const XubString& GetCurName() const { return maCurName; }
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
- void SetHighlightHdl( const Link& rLink ) { maHighlightHdl = rLink; }
- const Link& GetHighlightHdl() const { return maHighlightHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetHighlightHdl( const Link& rLink ) { maHighlightHdl = rLink; }
+ const Link& GetHighlightHdl() const { return maHighlightHdl; }
};
// -----------------
// - FontStyleMenu -
// -----------------
-#define FONTSTYLEMENU_FIRSTID 62000
-#define FONTSTYLEMENU_LASTID 62999
+#define FONTSTYLEMENU_FIRSTID 62000
+#define FONTSTYLEMENU_LASTID 62999
class SVT_DLLPUBLIC FontStyleMenu : public PopupMenu
{
private:
- XubString maCurStyle;
- Link maSelectHdl;
- Link maHighlightHdl;
+ XubString maCurStyle;
+ Link maSelectHdl;
+ Link maHighlightHdl;
- SVT_DLLPRIVATE BOOL ImplIsAlreadyInserted( const XubString& rStyleName, USHORT nCount );
+ SVT_DLLPRIVATE BOOL ImplIsAlreadyInserted( const XubString& rStyleName, USHORT nCount );
public:
FontStyleMenu();
- virtual ~FontStyleMenu();
+ virtual ~FontStyleMenu();
- virtual void Select();
- virtual void Highlight();
+ virtual void Select();
+ virtual void Highlight();
- void Fill( const XubString& rName, const FontList* pList );
- void SetCurStyle( const XubString& rStyle );
+ void Fill( const XubString& rName, const FontList* pList );
+ void SetCurStyle( const XubString& rStyle );
const XubString& GetCurStyle() const { return maCurStyle; }
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
- void SetHighlightHdl( const Link& rLink ) { maHighlightHdl = rLink; }
- const Link& GetHighlightHdl() const { return maHighlightHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetHighlightHdl( const Link& rLink ) { maHighlightHdl = rLink; }
+ const Link& GetHighlightHdl() const { return maHighlightHdl; }
};
// ----------------
@@ -214,29 +214,29 @@ public:
class SVT_DLLPUBLIC FontSizeMenu : public PopupMenu
{
private:
- long* mpHeightAry;
- long mnCurHeight;
- Link maSelectHdl;
- Link maHighlightHdl;
+ long* mpHeightAry;
+ long mnCurHeight;
+ Link maSelectHdl;
+ Link maHighlightHdl;
public:
FontSizeMenu();
~FontSizeMenu();
- virtual void Select();
- virtual void Highlight();
+ virtual void Select();
+ virtual void Highlight();
- void Fill( const FontInfo& rInfo, const FontList* pList );
+ void Fill( const FontInfo& rInfo, const FontList* pList );
- void SetCurHeight( long nHeight );
- long GetCurHeight() const { return mnCurHeight; }
+ void SetCurHeight( long nHeight );
+ long GetCurHeight() const { return mnCurHeight; }
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
- void SetHighlightHdl( const Link& rLink ) { maHighlightHdl = rLink; }
- const Link& GetHighlightHdl() const { return maHighlightHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetHighlightHdl( const Link& rLink ) { maHighlightHdl = rLink; }
+ const Link& GetHighlightHdl() const { return maHighlightHdl; }
};
-#endif // _STDMENU_HXX
+#endif // _STDMENU_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx b/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx
index d17e7ef241cd..83c91616cf38 100644
--- a/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx
+++ b/svtools/inc/svtools/AccessibleBrowseBoxObjType.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/FilterConfigItem.hxx b/svtools/inc/svtools/FilterConfigItem.hxx
index 06988af9704b..cd2402940879 100644
--- a/svtools/inc/svtools/FilterConfigItem.hxx
+++ b/svtools/inc/svtools/FilterConfigItem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,18 +42,18 @@
class SVT_DLLPUBLIC FilterConfigItem
{
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xUpdatableView;
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xUpdatableView;
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPropSet;
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aFilterData;
- sal_Bool bModified;
+ sal_Bool bModified;
- SVT_DLLPRIVATE sal_Bool ImplGetPropertyValue( ::com::sun::star::uno::Any& rAny,
+ SVT_DLLPRIVATE sal_Bool ImplGetPropertyValue( ::com::sun::star::uno::Any& rAny,
const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& rXPropSet,
const ::rtl::OUString& rPropName,
sal_Bool bTestPropertyAvailability );
- SVT_DLLPRIVATE void ImpInitTree( const String& rTree );
+ SVT_DLLPRIVATE void ImpInitTree( const String& rTree );
SVT_DLLPRIVATE static ::com::sun::star::beans::PropertyValue* GetPropertyValue(
@@ -74,9 +74,9 @@ class SVT_DLLPUBLIC FilterConfigItem
// 1. FilterData PropertySequence
// 2. configuration
// 3. given default
- sal_Bool ReadBool( const ::rtl::OUString& rKey, sal_Bool bDefault );
- sal_Int32 ReadInt32( const ::rtl::OUString& rKey, sal_Int32 nDefault );
- ::com::sun::star::awt::Size
+ sal_Bool ReadBool( const ::rtl::OUString& rKey, sal_Bool bDefault );
+ sal_Int32 ReadInt32( const ::rtl::OUString& rKey, sal_Int32 nDefault );
+ ::com::sun::star::awt::Size
ReadSize( const ::rtl::OUString& rKey, const ::com::sun::star::awt::Size& rDefault );
::rtl::OUString
ReadString( const ::rtl::OUString& rKey, const ::rtl::OUString& rDefault );
@@ -85,11 +85,11 @@ class SVT_DLLPUBLIC FilterConfigItem
// try to store to configuration
// and always stores into the FilterData sequence
- void WriteBool( const ::rtl::OUString& rKey, sal_Bool bValue );
- void WriteInt32( const ::rtl::OUString& rKey, sal_Int32 nValue );
- void WriteSize( const ::rtl::OUString& rKey, const ::com::sun::star::awt::Size& rSize );
- void WriteString( const ::rtl::OUString& rKey, const ::rtl::OUString& rString );
- void WriteAny( const rtl::OUString& rKey, const ::com::sun::star::uno::Any& rAny );
+ void WriteBool( const ::rtl::OUString& rKey, sal_Bool bValue );
+ void WriteInt32( const ::rtl::OUString& rKey, sal_Int32 nValue );
+ void WriteSize( const ::rtl::OUString& rKey, const ::com::sun::star::awt::Size& rSize );
+ void WriteString( const ::rtl::OUString& rKey, const ::rtl::OUString& rString );
+ void WriteAny( const rtl::OUString& rKey, const ::com::sun::star::uno::Any& rAny );
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > GetFilterData() const;
@@ -97,6 +97,6 @@ class SVT_DLLPUBLIC FilterConfigItem
::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator > GetStatusIndicator() const;
};
-#endif // _FILTER_CONFIG_ITEM_HXX_
+#endif // _FILTER_CONFIG_ITEM_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/accessibilityoptions.hxx b/svtools/inc/svtools/accessibilityoptions.hxx
index 2f964c5e2069..65ef44f2accb 100644
--- a/svtools/inc/svtools/accessibilityoptions.hxx
+++ b/svtools/inc/svtools/accessibilityoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,41 +42,41 @@ class SVT_DLLPUBLIC SvtAccessibilityOptions:
{
private:
static SvtAccessibilityOptions_Impl* volatile sm_pSingleImplConfig;
- static sal_Int32 volatile sm_nAccessibilityRefCount;
+ static sal_Int32 volatile sm_nAccessibilityRefCount;
public:
SvtAccessibilityOptions();
virtual ~SvtAccessibilityOptions();
// get & set config entries
- sal_Bool GetIsForDrawings() const; // obsolete!
- sal_Bool GetIsForBorders() const; // obsolete!
+ sal_Bool GetIsForDrawings() const; // obsolete!
+ sal_Bool GetIsForBorders() const; // obsolete!
sal_Bool GetIsForPagePreviews() const;
- sal_Bool GetIsHelpTipsDisappear() const;
- sal_Bool GetIsAllowAnimatedGraphics() const;
- sal_Bool GetIsAllowAnimatedText() const;
- sal_Bool GetIsAutomaticFontColor() const;
- sal_Bool GetIsSystemFont() const;
- sal_Int16 GetHelpTipSeconds() const;
+ sal_Bool GetIsHelpTipsDisappear() const;
+ sal_Bool GetIsAllowAnimatedGraphics() const;
+ sal_Bool GetIsAllowAnimatedText() const;
+ sal_Bool GetIsAutomaticFontColor() const;
+ sal_Bool GetIsSystemFont() const;
+ sal_Int16 GetHelpTipSeconds() const;
sal_Bool IsSelectionInReadonly() const;
- sal_Bool GetAutoDetectSystemHC() const;
+ sal_Bool GetAutoDetectSystemHC() const;
void SetIsForPagePreviews(sal_Bool bSet);
- void SetIsHelpTipsDisappear(sal_Bool bSet);
- void SetIsAllowAnimatedGraphics(sal_Bool bSet);
- void SetIsAllowAnimatedText(sal_Bool bSet);
- void SetIsAutomaticFontColor(sal_Bool bSet);
- void SetIsSystemFont(sal_Bool bSet);
- void SetHelpTipSeconds(sal_Int16 nSet);
+ void SetIsHelpTipsDisappear(sal_Bool bSet);
+ void SetIsAllowAnimatedGraphics(sal_Bool bSet);
+ void SetIsAllowAnimatedText(sal_Bool bSet);
+ void SetIsAutomaticFontColor(sal_Bool bSet);
+ void SetIsSystemFont(sal_Bool bSet);
+ void SetHelpTipSeconds(sal_Int16 nSet);
void SetSelectionInReadonly(sal_Bool bSet);
void SetAutoDetectSystemHC(sal_Bool bSet);
sal_Bool IsModified() const;
- void Commit();
+ void Commit();
//SfxListener:
- virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
- void SetVCLSettings();
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+ void SetVCLSettings();
};
#endif // #ifndef INCLUDED_SVTOOLS_ACCESSIBILITYOPTIONS_HXX
diff --git a/svtools/inc/svtools/accessiblefactory.hxx b/svtools/inc/svtools/accessiblefactory.hxx
index d95a99560549..918d422621a8 100644
--- a/svtools/inc/svtools/accessiblefactory.hxx
+++ b/svtools/inc/svtools/accessiblefactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/accessibletable.hxx b/svtools/inc/svtools/accessibletable.hxx
index f29e83365b95..febe7d0f0a87 100644
--- a/svtools/inc/svtools/accessibletable.hxx
+++ b/svtools/inc/svtools/accessibletable.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ enum AccessibleTableControlObjType
// ============================================================================
-#define XACC ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
+#define XACC ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
/** This abstract class provides methods to implement an accessible table object.
*/
@@ -73,21 +73,21 @@ class IAccessibleTable
{
public:
/** @return The position of the current row. */
- virtual sal_Int32 GetCurrentRow() const = 0;
+ virtual sal_Int32 GetCurrentRow() const = 0;
/** @return The position of the current column. */
- virtual sal_Int32 GetCurrentColumn() const = 0;
+ virtual sal_Int32 GetCurrentColumn() const = 0;
/** Creates and returns the accessible object of the whole GridControl. */
virtual XACC CreateAccessible()= 0;
virtual XACC CreateAccessibleControl( sal_Int32 _nIndex )= 0;
virtual ::rtl::OUString GetAccessibleObjectName(AccessibleTableControlObjType eObjType, sal_Int32 _nRow, sal_Int32 _nCol) const= 0;
- virtual sal_Bool GoToCell( sal_Int32 _nColumnPos, sal_Int32 _nRow )= 0;
- virtual sal_Bool HasColHeader() = 0;
- virtual sal_Bool HasRowHeader() = 0;
+ virtual sal_Bool GoToCell( sal_Int32 _nColumnPos, sal_Int32 _nRow )= 0;
+ virtual sal_Bool HasColHeader() = 0;
+ virtual sal_Bool HasRowHeader() = 0;
/** return the description of the specified object.
- @param eObjType
+ @param eObjType
The type to ask for
- @param _nPosition
+ @param _nPosition
The position of a tablecell (index position), header bar colum/row cell
@return
The description of the specified object.
@@ -103,12 +103,12 @@ public:
virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const = 0;
virtual void GrabFocus()= 0;
virtual XACC GetAccessible( BOOL bCreate = TRUE )= 0;
- virtual Window* GetAccessibleParentWindow() const= 0;
- virtual Window* GetWindowInstance()= 0;
+ virtual Window* GetAccessibleParentWindow() const= 0;
+ virtual Window* GetWindowInstance()= 0;
virtual sal_Int32 GetAccessibleControlCount() const = 0;
virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint )= 0;
- virtual long GetRowCount() const= 0;
- virtual long GetColumnCount() const= 0;
+ virtual long GetRowCount() const= 0;
+ virtual long GetColumnCount() const= 0;
virtual sal_Bool HasRowHeader() const= 0;
virtual sal_Int32 GetSelectedRowCount() const= 0;
virtual bool IsRowSelected( long _nRow ) const= 0;
@@ -118,10 +118,10 @@ public:
virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex)= 0;
virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint)= 0;
virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const= 0;
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const = 0;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const = 0;
virtual ::rtl::OUString GetRowName(sal_Int32 _nIndex) const = 0;
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0;
- virtual ::rtl::OUString GetColumnName( sal_Int32 _nIndex ) const = 0;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0;
+ virtual ::rtl::OUString GetColumnName( sal_Int32 _nIndex ) const = 0;
virtual ::com::sun::star::uno::Any GetCellContent( sal_Int32 _nRowPos, sal_Int32 _nColPos) const = 0;
virtual std::vector<sal_Int32>& GetSelectedRows() = 0;
virtual void RemoveSelectedRow(sal_Int32 _nRowPos) = 0;
diff --git a/svtools/inc/svtools/accessibletableprovider.hxx b/svtools/inc/svtools/accessibletableprovider.hxx
index 1e06a36a5f86..e3ca62d4458a 100644
--- a/svtools/inc/svtools/accessibletableprovider.hxx
+++ b/svtools/inc/svtools/accessibletableprovider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ enum AccessibleTableChildIndex
// ============================================================================
-#define XACC ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
+#define XACC ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
/** This abstract class provides methods to implement an accessible table object.
*/
@@ -68,79 +68,79 @@ class IAccessibleTableProvider
{
public:
/** @return The count of the rows. */
- virtual long GetRowCount() const = 0;
+ virtual long GetRowCount() const = 0;
/** @return The count of the columns. */
- virtual sal_uInt16 GetColumnCount() const = 0;
+ virtual sal_uInt16 GetColumnCount() const = 0;
/** @return The position of the current row. */
- virtual sal_Int32 GetCurrRow() const = 0;
+ virtual sal_Int32 GetCurrRow() const = 0;
/** @return The position of the current column. */
- virtual sal_uInt16 GetCurrColumn() const = 0;
+ virtual sal_uInt16 GetCurrColumn() const = 0;
/** @return The description of a row.
@param _nRow The row which description is in demand. */
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const = 0;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const = 0;
/** @return The description of a column.
@param _nColumn The column which description is in demand. */
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const = 0;
/** @return <TRUE/>, if the object has a row header. */
- virtual sal_Bool HasRowHeader() const = 0; //GetColumnId
+ virtual sal_Bool HasRowHeader() const = 0; //GetColumnId
/** @return <TRUE/>, if the object can focus a cell. */
- virtual sal_Bool IsCellFocusable() const = 0;
+ virtual sal_Bool IsCellFocusable() const = 0;
virtual BOOL GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) = 0;
- virtual void SetNoSelection() = 0;
- virtual void SelectAll() = 0;
- virtual void SelectRow( long _nRow, BOOL _bSelect = TRUE, BOOL bExpand = TRUE ) = 0;
- virtual void SelectColumn( sal_uInt16 _nColumnPos, sal_Bool _bSelect = sal_True ) = 0;
- virtual sal_Int32 GetSelectedRowCount() const = 0;
- virtual sal_Int32 GetSelectedColumnCount() const = 0;
+ virtual void SetNoSelection() = 0;
+ virtual void SelectAll() = 0;
+ virtual void SelectRow( long _nRow, BOOL _bSelect = TRUE, BOOL bExpand = TRUE ) = 0;
+ virtual void SelectColumn( sal_uInt16 _nColumnPos, sal_Bool _bSelect = sal_True ) = 0;
+ virtual sal_Int32 GetSelectedRowCount() const = 0;
+ virtual sal_Int32 GetSelectedColumnCount() const = 0;
/** @return <TRUE/>, if the row is selected. */
- virtual bool IsRowSelected( long _nRow ) const = 0;
- virtual sal_Bool IsColumnSelected( long _nColumnPos ) const = 0;
- virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const = 0;
- virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const = 0;
+ virtual bool IsRowSelected( long _nRow ) const = 0;
+ virtual sal_Bool IsColumnSelected( long _nColumnPos ) const = 0;
+ virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const = 0;
+ virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const = 0;
/** @return <TRUE/>, if the cell is visible. */
- virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0;
- virtual String GetAccessibleCellText( long _nRow, USHORT _nColumnPos ) const = 0;
+ virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0;
+ virtual String GetAccessibleCellText( long _nRow, USHORT _nColumnPos ) const = 0;
- virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, BOOL _bOnScreen = TRUE ) = 0;
- virtual Rectangle calcTableRect( BOOL _bOnScreen = TRUE ) = 0;
- virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumnPos, BOOL _bIsHeader, BOOL _bOnScreen = TRUE ) = 0;
+ virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, BOOL _bOnScreen = TRUE ) = 0;
+ virtual Rectangle calcTableRect( BOOL _bOnScreen = TRUE ) = 0;
+ virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumnPos, BOOL _bIsHeader, BOOL _bOnScreen = TRUE ) = 0;
- virtual XACC CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) = 0;
- virtual XACC CreateAccessibleRowHeader( sal_Int32 _nRow ) = 0;
- virtual XACC CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos ) = 0;
+ virtual XACC CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumnPos ) = 0;
+ virtual XACC CreateAccessibleRowHeader( sal_Int32 _nRow ) = 0;
+ virtual XACC CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos ) = 0;
- virtual sal_Int32 GetAccessibleControlCount() const = 0;
- virtual XACC CreateAccessibleControl( sal_Int32 _nIndex ) = 0;
- virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) = 0;
+ virtual sal_Int32 GetAccessibleControlCount() const = 0;
+ virtual XACC CreateAccessibleControl( sal_Int32 _nIndex ) = 0;
+ virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint ) = 0;
- virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint ) = 0;
- virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint ) = 0;
- virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint ) = 0;
+ virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint ) = 0;
+ virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint ) = 0;
+ virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint ) = 0;
- virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0;
- virtual ::rtl::OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0;
+ virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0;
+ virtual ::rtl::OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const = 0;
- virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const = 0;
- virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0;
- virtual void GrabTableFocus() = 0;
+ virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const = 0;
+ virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const = 0;
+ virtual void GrabTableFocus() = 0;
// OutputDevice
- virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) = 0;
+ virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector ) = 0;
// Window
- virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const = 0;
- virtual void GrabFocus() = 0;
- virtual XACC GetAccessible( BOOL bCreate = TRUE ) = 0;
- virtual Window* GetAccessibleParentWindow() const = 0;
- virtual Window* GetWindowInstance() = 0;
-
- virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex) = 0;
- virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint) = 0;
+ virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const = 0;
+ virtual void GrabFocus() = 0;
+ virtual XACC GetAccessible( BOOL bCreate = TRUE ) = 0;
+ virtual Window* GetAccessibleParentWindow() const = 0;
+ virtual Window* GetWindowInstance() = 0;
+
+ virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex) = 0;
+ virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint) = 0;
};
// ----------------------------------------------------------------------------
diff --git a/svtools/inc/svtools/brwbox.hxx b/svtools/inc/svtools/brwbox.hxx
index 6d15b186d931..6dbaba2dacb8 100644
--- a/svtools/inc/svtools/brwbox.hxx
+++ b/svtools/inc/svtools/brwbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,7 +74,7 @@ typedef ULONG BrowserMode;
#define BROWSER_MULTISELECTION 0x0002
#define BROWSER_THUMBDRAGGING 0x0004
#define BROWSER_KEEPHIGHLIGHT 0x0008
-#define BROWSER_KEEPSELECTION BROWSER_KEEPHIGHLIGHT // old, dont use!
+#define BROWSER_KEEPSELECTION BROWSER_KEEPHIGHLIGHT // old, dont use!
#define BROWSER_HLINES 0x0010
#define BROWSER_VLINES 0x0020
#define BROWSER_HLINESFULL BROWSER_HLINES // old, dont use!
@@ -82,25 +82,25 @@ typedef ULONG BrowserMode;
#define BROWSER_HLINESDOTS 0x0000 // old => dont use!
#define BROWSER_VLINESDOTS 0x0000 // old => dont use!
-#define BROWSER_HIDESELECT 0x0100 // old => dont use!
+#define BROWSER_HIDESELECT 0x0100 // old => dont use!
#define BROWSER_HIDECURSOR 0x0200
#define BROWSER_NO_HSCROLL 0x0400
#define BROWSER_NO_SCROLLBACK 0x0800
-#define BROWSER_AUTO_VSCROLL 0x1000
-#define BROWSER_AUTO_HSCROLL 0x2000
+#define BROWSER_AUTO_VSCROLL 0x1000
+#define BROWSER_AUTO_HSCROLL 0x2000
-#define BROWSER_TRACKING_TIPS 0x4000
+#define BROWSER_TRACKING_TIPS 0x4000
#define BROWSER_NO_VSCROLL 0x8000
#define BROWSER_HIGHLIGHT_NONE 0x0100 // == BROWSER_HIDESELECT
#define BROWSER_HIGHLIGHT_TOGGLE 0x00000000 // old default => NULL, dont use!
-#define BROWSER_HEADERBAR_NEW 0x00040000
+#define BROWSER_HEADERBAR_NEW 0x00040000
#define BROWSER_AUTOSIZE_LASTCOL 0x00080000
-#define BROWSER_OWN_DATACHANGED 0x00100000
+#define BROWSER_OWN_DATACHANGED 0x00100000
#define BROWSER_CURSOR_WO_FOCUS 0x00200000
// Allows a cursor which is shown even if the control does not have the focus. This does not affect other
@@ -114,7 +114,7 @@ typedef ULONG BrowserMode;
typedef int BrowserColumnMode;
#define BROWSER_COLUMN_TITLEABBREVATION 1
-#define BROWSER_COLUMN_STANDARD BROWSER_COLUMN_TITLEABBREVATION
+#define BROWSER_COLUMN_STANDARD BROWSER_COLUMN_TITLEABBREVATION
#define BROWSER_NONE 0
#define BROWSER_SELECT 720
@@ -139,11 +139,11 @@ typedef int BrowserColumnMode;
#define BROWSER_CURSOREND 746
#define BROWSER_SCROLLDOWN 751
#define BROWSER_SCROLLUP 752
-#define BROWSER_SELECTHOME 753
-#define BROWSER_SELECTEND 754
-#define BROWSER_SELECTCOLUMN 755
-#define BROWSER_MOVECOLUMNLEFT 756
-#define BROWSER_MOVECOLUMNRIGHT 757
+#define BROWSER_SELECTHOME 753
+#define BROWSER_SELECTEND 754
+#define BROWSER_SELECTCOLUMN 755
+#define BROWSER_MOVECOLUMNLEFT 756
+#define BROWSER_MOVECOLUMNRIGHT 757
// ---------------
// - BrowseEvent -
@@ -234,9 +234,9 @@ class SVT_DLLPUBLIC BrowseBox
,public DropTargetHelper
,public svt::IAccessibleTableProvider
{
- #define NO_CURSOR_HIDE 0
- #define HARD_CURSOR_HIDE 1
- #define SMART_CURSOR_HIDE 2
+ #define NO_CURSOR_HIDE 0
+ #define HARD_CURSOR_HIDE 1
+ #define SMART_CURSOR_HIDE 2
friend class BrowserDataWin;
friend class ::svt::BrowseBoxImpl;
@@ -265,7 +265,7 @@ class SVT_DLLPUBLIC BrowseBox
BOOL bVLines; // draw lines between columns
BOOL bHDots; // draw lines between rows dotted
BOOL bVDots; // draw lines between columns dotted
- Color aGridLineColor; // color for lines, default dark grey
+ Color aGridLineColor; // color for lines, default dark grey
BOOL bBootstrapped; // child windows resized etc.
long nTopRow; // no. of first visible row (0...)
long nCurRow; // no. of row with cursor
@@ -273,7 +273,7 @@ class SVT_DLLPUBLIC BrowseBox
USHORT nFirstCol; // no. of first visible scrollable column
USHORT nCurColId; // column id of cursor
- BOOL bSelecting;
+ BOOL bSelecting;
BOOL bRowDividerDrag;
BOOL bHit;
BOOL mbInteractiveRowHeight;
@@ -293,7 +293,7 @@ class SVT_DLLPUBLIC BrowseBox
BOOL bHasFocus; // set/unset in Get/LoseFocus
BOOL bHideSelect; // hide selection (highlight)
BOOL bHideCursor; // hide cursor (frame)
- Range aSelRange; // for selection expansion
+ Range aSelRange; // for selection expansion
BrowserColumns* pCols; // array of column-descriptions
union
@@ -303,11 +303,11 @@ class SVT_DLLPUBLIC BrowseBox
} uRow;
MultiSelection* pColSel; // selected column-ids
- ::std::auto_ptr< ::svt::BrowseBoxImpl > m_pImpl; // impl structure of the BrowseBox object
+ ::std::auto_ptr< ::svt::BrowseBoxImpl > m_pImpl; // impl structure of the BrowseBox object
- BOOL m_bFocusOnlyCursor; // hide cursor if we don't have the focus
- Color m_aCursorColor; // special color for cursor, COL_TRANSPARENT for usual (VCL-painted) "inverted" cursor
- BrowserMode m_nCurrentMode; // last argument of SetMode (redundant, as our other members represent the current settings, too)
+ BOOL m_bFocusOnlyCursor; // hide cursor if we don't have the focus
+ Color m_aCursorColor; // special color for cursor, COL_TRANSPARENT for usual (VCL-painted) "inverted" cursor
+ BrowserMode m_nCurrentMode; // last argument of SetMode (redundant, as our other members represent the current settings, too)
private:
SVT_DLLPRIVATE void ConstructImpl(BrowserMode nMode);
@@ -323,9 +323,9 @@ private:
SVT_DLLPRIVATE void ColumnInserted( USHORT nPos );
- DECL_DLLPRIVATE_LINK( ScrollHdl, ScrollBar * );
- DECL_DLLPRIVATE_LINK( EndScrollHdl, ScrollBar * );
- DECL_DLLPRIVATE_LINK( StartDragHdl, HeaderBar * );
+ DECL_DLLPRIVATE_LINK( ScrollHdl, ScrollBar * );
+ DECL_DLLPRIVATE_LINK( EndScrollHdl, ScrollBar * );
+ DECL_DLLPRIVATE_LINK( StartDragHdl, HeaderBar * );
SVT_DLLPRIVATE long GetFrozenWidth() const;
//#endif
@@ -337,12 +337,12 @@ private:
void SelectColumnId( USHORT nColId, BOOL _bSelect, BOOL bMakeVisible)
{ SelectColumnPos( GetColumnPos(nColId), _bSelect, bMakeVisible); }
- void ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, BOOL _bForeignDevice, BOOL _bDrawSelections);
+ void ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, BOOL _bForeignDevice, BOOL _bDrawSelections);
- BOOL PaintCursorIfHiddenOnce() const { return !m_bFocusOnlyCursor && !HasFocus(); }
+ BOOL PaintCursorIfHiddenOnce() const { return !m_bFocusOnlyCursor && !HasFocus(); }
- USHORT ToggleSelectedColumn();
- void SetToggledSelectedColumn(USHORT _nSelectedColumnId);
+ USHORT ToggleSelectedColumn();
+ void SetToggledSelectedColumn(USHORT _nSelectedColumnId);
protected:
/// retrieves the XAccessible implementation associated with the BrowseBox instance
@@ -360,7 +360,7 @@ public:
protected:
// fuer Anzeige im VScrollBar z.B. auf "?" oder setzen
- void SetRealRowCount( const String &rRealRowCount );
+ void SetRealRowCount( const String &rRealRowCount );
// Return Value muss immer TRUE sein - SeekRow *muss* klappen!
// (sonst ASSERT) MI: wer hat das eingebaut? Das darf nicht so sein!
@@ -371,7 +371,7 @@ protected:
*/
virtual sal_Bool SeekRow( long nRow ) = 0;
virtual void DrawCursor();
- virtual void PaintRow( OutputDevice &rDev, const Rectangle &rRect );
+ virtual void PaintRow( OutputDevice &rDev, const Rectangle &rRect );
virtual void PaintData( Window& rWin, const Rectangle& rRect );
virtual void PaintField( OutputDevice& rDev, const Rectangle& rRect,
USHORT nColumnId ) const = 0;
@@ -398,34 +398,34 @@ protected:
USHORT GetVisibleRows()
{ return (USHORT)((pDataWin->GetOutputSizePixel().Height() - 1 )/ GetDataRowHeight() + 1); }
long GetTopRow() { return nTopRow; }
- USHORT GetFirstVisibleColNumber() const { return nFirstCol; }
+ USHORT GetFirstVisibleColNumber() const { return nFirstCol; }
// Focus-Rect ein-/ausschalten
- void DoShowCursor( const char *pWhoLog );
- void DoHideCursor( const char *pWhoLog );
- short GetCursorHideCount() const;
+ void DoShowCursor( const char *pWhoLog );
+ void DoHideCursor( const char *pWhoLog );
+ short GetCursorHideCount() const;
- virtual BrowserHeader* CreateHeaderBar( BrowseBox* pParent );
+ virtual BrowserHeader* CreateHeaderBar( BrowseBox* pParent );
// HACK(virtuelles Create wird im Ctor nicht gerufen)
- void SetHeaderBar( BrowserHeader* );
+ void SetHeaderBar( BrowserHeader* );
- long CalcReverseZoom(long nVal);
+ long CalcReverseZoom(long nVal);
- HeaderBar* GetHeaderBar() const;
+ HeaderBar* GetHeaderBar() const;
// header bar access for derived classes
inline const DataFlavorExVector&
GetDataFlavors() const;
- sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ); // need this because the base class' IsDropFormatSupported is not const ...
- sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ) const;
+ sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ); // need this because the base class' IsDropFormatSupported is not const ...
+ sal_Bool IsDropFormatSupported( SotFormatStringId nFormat ) const;
- sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor ); // need this because the base class' IsDropFormatSupported is not const ...
- sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor ) const;
+ sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor ); // need this because the base class' IsDropFormatSupported is not const ...
+ sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor ) const;
private:
- void* implGetDataFlavors() const;
+ void* implGetDataFlavors() const;
// with this we can make GetDataFlavors() inline, which is strongly needed as SVTOOLS does not export
// any sysbols containing an "_STL", so a non-inlined method would not be exported ....
@@ -443,7 +443,7 @@ public:
~BrowseBox();
// ererbte ueberladene Handler
- virtual void StateChanged( StateChangedType nStateChange );
+ virtual void StateChanged( StateChangedType nStateChange );
virtual void MouseButtonDown( const MouseEvent& rEvt );
virtual void MouseMove( const MouseEvent& rEvt );
virtual void MouseButtonUp( const MouseEvent& rEvt );
@@ -452,12 +452,12 @@ public:
virtual void GetFocus();
virtual void Resize();
virtual void Paint( const Rectangle& rRect );
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
virtual void Command( const CommandEvent& rEvt );
- virtual void StartDrag( sal_Int8 _nAction, const Point& _rPosPixel );
+ virtual void StartDrag( sal_Int8 _nAction, const Point& _rPosPixel );
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); // will forward everything got to the second AcceptDrop method
- virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); // will forward everything got to the second ExecuteDrop method
+ virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); // will forward everything got to the second AcceptDrop method
+ virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ); // will forward everything got to the second ExecuteDrop method
virtual sal_Int8 AcceptDrop( const BrowserAcceptDropEvent& rEvt );
virtual sal_Int8 ExecuteDrop( const BrowserExecuteDropEvent& rEvt );
@@ -491,18 +491,18 @@ public:
const Font& GetTitleFont() const { return Control::GetFont(); }
// color for line painting
- void SetGridLineColor(const Color& rColor) {aGridLineColor = rColor;}
- const Color& GetGridLineColor() const {return aGridLineColor;}
+ void SetGridLineColor(const Color& rColor) {aGridLineColor = rColor;}
+ const Color& GetGridLineColor() const {return aGridLineColor;}
// inserting, changing, removing and freezing of columns
void InsertHandleColumn( ULONG nWidth );
- void InsertDataColumn( USHORT nItemId, const Image& rImage,
+ void InsertDataColumn( USHORT nItemId, const Image& rImage,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void InsertDataColumn( USHORT nItemId, const XubString& rText,
+ void InsertDataColumn( USHORT nItemId, const XubString& rText,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void InsertDataColumn( USHORT nItemId,
+ void InsertDataColumn( USHORT nItemId,
const Image& rImage, const XubString& rText,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND,
@@ -522,7 +522,7 @@ public:
long GetDataRowHeight() const;
void SetTitleLines( USHORT nLines );
USHORT GetTitleLines() const { return nTitleLines; }
- virtual long GetTitleHeight() const;
+ virtual long GetTitleHeight() const;
// access to dynamic values of cursor row
String GetColumnTitle( USHORT nColumnId ) const;
@@ -538,13 +538,13 @@ public:
long ScrollColumns( long nColumns );
long ScrollRows( long nRows );
long ScrollPages( long nPagesY );
- BOOL MakeFieldVisible( long nRow, USHORT nColId, BOOL bComplete = FALSE );
+ BOOL MakeFieldVisible( long nRow, USHORT nColId, BOOL bComplete = FALSE );
// access and movement of cursor
long GetCurRow() const { return nCurRow; }
USHORT GetCurColumnId() const { return nCurColId; }
BOOL GoToRow( long nRow );
- BOOL GoToRowAndDoNotModifySelection( long nRow );
+ BOOL GoToRowAndDoNotModifySelection( long nRow );
BOOL GoToColumnId( USHORT nColId );
BOOL GoToRowColumnId( long nRow, USHORT nColId );
@@ -568,12 +568,12 @@ public:
const MultiSelection* GetColumnSelection() const { return pColSel; }
const MultiSelection* GetSelection() const
{ return bMultiSelection ? uRow.pSel : 0; }
- void SetSelection( const MultiSelection &rSelection );
+ void SetSelection( const MultiSelection &rSelection );
- long FirstSelectedColumn( ) const;
- long NextSelectedColumn( ) const;
+ long FirstSelectedColumn( ) const;
+ long NextSelectedColumn( ) const;
- BOOL IsResizing() const { return bResizing; }
+ BOOL IsResizing() const { return bResizing; }
// access to positions of fields, column and rows
Window& GetEventWindow() const;
@@ -598,15 +598,15 @@ public:
// miscellanous
void ReserveControlArea( USHORT nWidth = USHRT_MAX );
Rectangle GetControlArea() const;
- BOOL ProcessKey( const KeyEvent& rEvt );
+ BOOL ProcessKey( const KeyEvent& rEvt );
void Dispatch( USHORT nId );
void SetMode( BrowserMode nMode = 0 );
- BrowserMode GetMode( ) const { return m_nCurrentMode; }
- bool IsInCommandEvent() const;
+ BrowserMode GetMode( ) const { return m_nCurrentMode; }
+ bool IsInCommandEvent() const;
- void SetCursorColor(const Color& _rCol);
- Color GetCursorColor() const { return m_aCursorColor; }
- void ResetSelecting() { bSelecting = FALSE; }
+ void SetCursorColor(const Color& _rCol);
+ Color GetCursorColor() const { return m_aCursorColor; }
+ void ResetSelecting() { bSelecting = FALSE; }
/** specifies that the user is allowed to interactively change the height of a row,
by simply dragging an arbitrary row separator.
@@ -631,14 +631,14 @@ public:
ULONG GetDefaultColumnWidth( const String& _rText ) const;
/** GetCellText returns the text at the given position
- @param _nRow
+ @param _nRow
the number of the row
- @param _nColId
+ @param _nColId
the ID of the column
@return
the text out of the cell
*/
- virtual String GetCellText(long _nRow, USHORT _nColId) const;
+ virtual String GetCellText(long _nRow, USHORT _nColId) const;
/** @return
the current column count
@@ -685,9 +685,9 @@ public:
);
/** returns the Rectangle for either the column header bar ot the row header bar
- @param _bIsColumnBar
+ @param _bIsColumnBar
<TRUE/> when column header bar is used
- @param _bOnScreen
+ @param _bOnScreen
<TRUE/> when the rectangle should be calculated OnScreen
@return
the Rectangle
@@ -695,7 +695,7 @@ public:
virtual Rectangle calcHeaderRect(sal_Bool _bIsColumnBar,BOOL _bOnScreen = TRUE);
/** calculates the Rectangle of the table
- @param _bOnScreen
+ @param _bOnScreen
<TRUE/> when the rectangle should be calculated OnScreen
@return
the Rectangle
@@ -703,11 +703,11 @@ public:
virtual Rectangle calcTableRect(BOOL _bOnScreen = TRUE);
/**
- @param _nRowId
+ @param _nRowId
the current row
- @param _nColId
+ @param _nColId
teh column id
- @param _bOnScreen
+ @param _bOnScreen
<TRUE/> when the rectangle should be calculated OnScreen
@return
the Rectangle
@@ -791,9 +791,9 @@ public:
// Object data and state --------------------------------------------------
/** return the name of the specified object.
- @param eObjType
+ @param eObjType
The type to ask for
- @param _nPosition
+ @param _nPosition
The position of a tablecell (index position), header bar colum/row cell
@return
The name of the specified object.
@@ -801,9 +801,9 @@ public:
virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType eObjType,sal_Int32 _nPosition = -1) const;
/** return the description of the specified object.
- @param eObjType
+ @param eObjType
The type to ask for
- @param _nPosition
+ @param _nPosition
The position of a tablecell (index position), header bar colum/row cell
@return
The description of the specified object.
@@ -814,7 +814,7 @@ public:
virtual ::rtl::OUString GetRowDescription( sal_Int32 nRow ) const;
/** @return The header text of the specified column. */
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumn ) const;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumn ) const;
/** Fills the StateSet with all states (except DEFUNC and SHOWING, done by
the accessible object), depending on the specified object type. */
@@ -832,25 +832,25 @@ public:
virtual void GrabTableFocus();
// IAccessibleTableProvider
- virtual sal_Int32 GetCurrRow() const;
- virtual sal_uInt16 GetCurrColumn() const;
- virtual sal_Bool HasRowHeader() const;
- virtual sal_Bool IsCellFocusable() const;
- virtual BOOL GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
- virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True );
- virtual sal_Bool IsColumnSelected( long _nColumn ) const;
- virtual sal_Int32 GetSelectedRowCount() const;
- virtual sal_Int32 GetSelectedColumnCount() const;
- virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const;
- virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const;
- virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
- virtual String GetAccessibleCellText(long _nRow, USHORT _nColPos) const;
- virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector );
- virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
- virtual void GrabFocus();
- virtual XACC GetAccessible( BOOL bCreate = TRUE );
- virtual Window* GetAccessibleParentWindow() const;
- virtual Window* GetWindowInstance();
+ virtual sal_Int32 GetCurrRow() const;
+ virtual sal_uInt16 GetCurrColumn() const;
+ virtual sal_Bool HasRowHeader() const;
+ virtual sal_Bool IsCellFocusable() const;
+ virtual BOOL GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
+ virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True );
+ virtual sal_Bool IsColumnSelected( long _nColumn ) const;
+ virtual sal_Int32 GetSelectedRowCount() const;
+ virtual sal_Int32 GetSelectedColumnCount() const;
+ virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const;
+ virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const;
+ virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
+ virtual String GetAccessibleCellText(long _nRow, USHORT _nColPos) const;
+ virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector );
+ virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
+ virtual void GrabFocus();
+ virtual XACC GetAccessible( BOOL bCreate = TRUE );
+ virtual Window* GetAccessibleParentWindow() const;
+ virtual Window* GetWindowInstance();
private:
// the following declares some Window/OutputDevice methods private. This happened in the course
diff --git a/svtools/inc/svtools/brwhead.hxx b/svtools/inc/svtools/brwhead.hxx
index ecd8d563f102..3fa93644e2b8 100644
--- a/svtools/inc/svtools/brwhead.hxx
+++ b/svtools/inc/svtools/brwhead.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,10 +38,10 @@ class BrowseBox;
class SVT_DLLPUBLIC BrowserHeader: public HeaderBar
{
- BrowseBox* _pBrowseBox;
+ BrowseBox* _pBrowseBox;
protected:
- virtual void Command( const CommandEvent& rCEvt );
+ virtual void Command( const CommandEvent& rCEvt );
virtual void Select();
virtual void EndDrag();
diff --git a/svtools/inc/svtools/chartprettypainter.hxx b/svtools/inc/svtools/chartprettypainter.hxx
index 23aacc6b7144..8181935913d3 100644
--- a/svtools/inc/svtools/chartprettypainter.hxx
+++ b/svtools/inc/svtools/chartprettypainter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
namespace svt { class EmbeddedObjectRef; }
/** use this class for a correct view representation of charts
-see issues #i82893#, #i75867#: charts must be painted resolution dependent!!
+see issues #i82893#, #i75867#: charts must be painted resolution dependent!!
example usage when painting ole objects:
if( ChartPrettyPainter::IsChart(xObjRef) && ChartPrettyPainter::ShouldPrettyPaintChartOnThisDevice( pOutDev )
diff --git a/svtools/inc/svtools/colctrl.hxx b/svtools/inc/svtools/colctrl.hxx
index 69a372e07bb3..809c43c9e430 100644
--- a/svtools/inc/svtools/colctrl.hxx
+++ b/svtools/inc/svtools/colctrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,16 +44,16 @@ class ColorHSB;
class SvColorControl : public Control
{
private:
- Bitmap* mpBitmap;
+ Bitmap* mpBitmap;
BitmapReadAccess* mpReadAccess;
- Color maColor;
- short mnLuminance;
- Point maPosition;
- Link maModifyHdl;
+ Color maColor;
+ short mnLuminance;
+ Point maPosition;
+ Link maModifyHdl;
- void Initialize();
- void CreateBitmap();
- void ShowPosition( const Point& aPos );
+ void Initialize();
+ void CreateBitmap();
+ void ShowPosition( const Point& aPos );
public:
SvColorControl( Window* pParent, WinBits nStyle = 0 );
@@ -71,12 +71,12 @@ public:
virtual void Modify();
- Color GetColor() const { return maColor; };
- void SetColor( const Color& rCol );
- void SetColor( const ColorHSB& rCol, BOOL bSetColor = TRUE );
+ Color GetColor() const { return maColor; };
+ void SetColor( const Color& rCol );
+ void SetColor( const ColorHSB& rCol, BOOL bSetColor = TRUE );
- short GetLuminance() const { return mnLuminance; };
- void SetLuminance( short nLum );
+ short GetLuminance() const { return mnLuminance; };
+ void SetLuminance( short nLum );
void SetModifyHdl( const Link& rLink ) { maModifyHdl = rLink; }
const Link& GetModifyHdl() const { return maModifyHdl; }
@@ -90,7 +90,7 @@ public:
class ColorPreviewControl : public Control
{
private:
- Color maColor;
+ Color maColor;
public:
ColorPreviewControl( Window* pParent, WinBits nStyle = 0 );
@@ -99,8 +99,8 @@ public:
virtual void Paint( const Rectangle& rRect );
- Color GetColor() const { return maColor; };
- void SetColor( const Color& rCol );
+ Color GetColor() const { return maColor; };
+ void SetColor( const Color& rCol );
};
// -----------------------
@@ -112,15 +112,15 @@ enum CMCPosition { CMC_TOPLEFT, CMC_TOPRIGHT, CMC_BOTTOMLEFT, CMC_BOTTOMRIGHT, C
class ColorMixingControl : public ValueSet
{
private:
- USHORT mnRows;
- USHORT mnColumns;
- Color maColor[4];
+ USHORT mnRows;
+ USHORT mnColumns;
+ Color maColor[4];
- void Initialize();
+ void Initialize();
- Color CalcDifferenceColor( USHORT nCol1, USHORT nCol2, USHORT nSteps );
- void FillRow( USHORT nRow );
- void FillColumn( USHORT nColumn );
+ Color CalcDifferenceColor( USHORT nCol1, USHORT nCol2, USHORT nSteps );
+ void FillRow( USHORT nRow );
+ void FillColumn( USHORT nColumn );
public:
ColorMixingControl( Window* pParent, WinBits nStyle = 0,
@@ -129,18 +129,18 @@ public:
USHORT nRows = 4, USHORT nColumns = 4 );
~ColorMixingControl();
- USHORT GetRows() const { return mnRows; };
- void SetRows( USHORT nRows );
- USHORT GetColumns() const { return mnColumns; };
- void SetColumns( USHORT nColumns );
+ USHORT GetRows() const { return mnRows; };
+ void SetRows( USHORT nRows );
+ USHORT GetColumns() const { return mnColumns; };
+ void SetColumns( USHORT nColumns );
using ValueSet::GetColor;
- Color GetColor( CMCPosition ePos ) const { return maColor[ ePos ]; };
+ Color GetColor( CMCPosition ePos ) const { return maColor[ ePos ]; };
using ValueSet::SetColor;
- void SetColor( CMCPosition ePos, const Color& rCol );
+ void SetColor( CMCPosition ePos, const Color& rCol );
- String GetRGBString( const Color& rColor );
- CMCPosition GetCMCPosition() const;
+ String GetRGBString( const Color& rColor );
+ CMCPosition GetCMCPosition() const;
};
// ------------
@@ -177,10 +177,10 @@ public:
class ColorCMYK
{
private:
- USHORT mnCyan;
- USHORT mnMagenta;
- USHORT mnYellow;
- USHORT mnKey;
+ USHORT mnCyan;
+ USHORT mnMagenta;
+ USHORT mnYellow;
+ USHORT mnKey;
public:
ColorCMYK()
diff --git a/svtools/inc/svtools/colorcfg.hxx b/svtools/inc/svtools/colorcfg.hxx
index d2fd175e7057..76b639b33438 100644
--- a/svtools/inc/svtools/colorcfg.hxx
+++ b/svtools/inc/svtools/colorcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ enum ColorConfigEntry
APPBACKGROUND ,
OBJECTBOUNDARIES ,
TABLEBOUNDARIES ,
- FONTCOLOR ,
+ FONTCOLOR ,
LINKS ,
LINKSVISITED ,
ANCHOR ,
@@ -145,8 +145,8 @@ public:
sal_Bool IsModified()const{return m_bModified;}
void Commit();
- void DisableBroadcast();
- void EnableBroadcast();
+ void DisableBroadcast();
+ void EnableBroadcast();
};
}//namespace svtools
#endif
diff --git a/svtools/inc/svtools/colrdlg.hxx b/svtools/inc/svtools/colrdlg.hxx
index 8197bb81de28..0c1ceedbb062 100644
--- a/svtools/inc/svtools/colrdlg.hxx
+++ b/svtools/inc/svtools/colrdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,50 +43,50 @@
class SVT_DLLPUBLIC SvColorDialog : public ModalDialog
{
private:
- ColorMixingControl maColMixCtrl;
- PushButton maBtn1;
- PushButton maBtn2;
- //PushButton maBtn3;
- //PushButton maBtn4;
- //FixedText maFtRGB;
- SvColorControl maCtlColor;
+ ColorMixingControl maColMixCtrl;
+ PushButton maBtn1;
+ PushButton maBtn2;
+ //PushButton maBtn3;
+ //PushButton maBtn4;
+ //FixedText maFtRGB;
+ SvColorControl maCtlColor;
// CMYK controls.
- FixedText maFtCyan;
- MetricField maNumCyan;
- FixedText maFtMagenta;
- MetricField maNumMagenta;
- FixedText maFtYellow;
- MetricField maNumYellow;
- FixedText maFtKey;
- MetricField maNumKey;
+ FixedText maFtCyan;
+ MetricField maNumCyan;
+ FixedText maFtMagenta;
+ MetricField maNumMagenta;
+ FixedText maFtYellow;
+ MetricField maNumYellow;
+ FixedText maFtKey;
+ MetricField maNumKey;
// RGB controls.
- FixedText maFtRed;
- NumericField maNumRed;
- FixedText maFtGreen;
- NumericField maNumGreen;
- FixedText maFtBlue;
- NumericField maNumBlue;
+ FixedText maFtRed;
+ NumericField maNumRed;
+ FixedText maFtGreen;
+ NumericField maNumGreen;
+ FixedText maFtBlue;
+ NumericField maNumBlue;
// HSL controls.
- FixedText maFtHue;
- NumericField maNumHue;
- FixedText maFtSaturation;
- NumericField maNumSaturation;
- FixedText maFtLuminance;
- NumericField maNumLuminance;
+ FixedText maFtHue;
+ NumericField maNumHue;
+ FixedText maFtSaturation;
+ NumericField maNumSaturation;
+ FixedText maFtLuminance;
+ NumericField maNumLuminance;
- ColorPreviewControl maCtlPreview;
- ColorPreviewControl maCtlPreviewOld;
+ ColorPreviewControl maCtlPreview;
+ ColorPreviewControl maCtlPreviewOld;
- OKButton maBtnOK;
- CancelButton maBtnCancel;
- HelpButton maBtnHelp;
+ OKButton maBtnOK;
+ CancelButton maBtnCancel;
+ HelpButton maBtnHelp;
- Color maColor;
+ Color maColor;
- SVT_DLLPRIVATE void Initialize();
+ SVT_DLLPRIVATE void Initialize();
DECL_DLLPRIVATE_LINK( ColorModifyHdl, void * );
DECL_DLLPRIVATE_LINK( ClickBtnHdl, void * );
@@ -97,10 +97,10 @@ public:
SvColorDialog( Window* pParent );
~SvColorDialog();
- void SetColor( const Color& rColor );
- const Color& GetColor() const;
+ void SetColor( const Color& rColor );
+ const Color& GetColor() const;
- virtual short Execute();
+ virtual short Execute();
};
#endif // _SV_COLRDLG_HXX
diff --git a/svtools/inc/svtools/editbrowsebox.hxx b/svtools/inc/svtools/editbrowsebox.hxx
index 6ccab9ee6b65..5fb993694510 100644
--- a/svtools/inc/svtools/editbrowsebox.hxx
+++ b/svtools/inc/svtools/editbrowsebox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,20 +47,20 @@
//==================================================================
// EditBrowseBoxFlags (EBBF)
-#define EBBF_NONE ((sal_Int32)0x0000)
+#define EBBF_NONE ((sal_Int32)0x0000)
/** if this bit is _not_ set, the handle column will be invalidated upon
changing the row in the browse box. This is for forcing the row picture to
be repainted. If you do not have row pictures or text, you don't need this
invalidation, then you would specify this bit to prevent flicker
*/
-#define EBBF_NO_HANDLE_COLUMN_CONTENT ((sal_Int32)0x0001)
+#define EBBF_NO_HANDLE_COLUMN_CONTENT ((sal_Int32)0x0001)
/** set this bit to activate the cell on a MouseButtonDown, not a MouseButtonUp event
*/
-#define EBBF_ACTIVATE_ON_BUTTONDOWN ((sal_Int32)0x0002)
+#define EBBF_ACTIVATE_ON_BUTTONDOWN ((sal_Int32)0x0002)
/** if this bit is set and EBBF_NO_HANDLE_COLUMN_CONTENT is _not_ set, the handle
column is drawn with the text contained in column 0 instead of an image
*/
-#define EBBF_HANDLE_COLUMN_TEXT ((sal_Int32)0x0004)
+#define EBBF_HANDLE_COLUMN_TEXT ((sal_Int32)0x0004)
/** If this bit is set, tab traveling is somewhat modified<br/>
If the control gets the focus because the user pressed the TAB key, then the
@@ -69,10 +69,10 @@
@see Window::GetGetFocusFlags
@see GETFOCUS_*
*/
-#define EBBF_SMART_TAB_TRAVEL ((sal_Int32)0x0008)
+#define EBBF_SMART_TAB_TRAVEL ((sal_Int32)0x0008)
/// @deprecated
-#define EBBF_NOROWPICTURE EBBF_NO_HANDLE_COLUMN_CONTENT
+#define EBBF_NOROWPICTURE EBBF_NO_HANDLE_COLUMN_CONTENT
//==================================================================
@@ -97,8 +97,8 @@ namespace svt
friend class EditBrowseBox;
protected:
- Control* pWindow;
- sal_Bool bSuspended; // <TRUE> if the window is hidden and disabled
+ Control* pWindow;
+ sal_Bool bSuspended; // <TRUE> if the window is hidden and disabled
public:
TYPEINFO();
@@ -118,9 +118,9 @@ namespace svt
virtual void CommitModifications();
// suspending the controller is not culmulative!
- void suspend( );
- void resume( );
- inline sal_Bool isSuspended( ) const { return bSuspended; }
+ void suspend( );
+ void resume( );
+ inline sal_Bool isSuspended( ) const { return bSuspended; }
protected:
virtual sal_Bool MoveAllowed(const KeyEvent& rEvt) const;
@@ -290,9 +290,9 @@ namespace svt
//==================================================================
class SVT_DLLPUBLIC CheckBoxControl : public Control
{
- CheckBox* pBox;
- Rectangle aFocusRect;
- Link m_aClickLink,m_aModifyLink;
+ CheckBox* pBox;
+ Rectangle aFocusRect;
+ Link m_aClickLink,m_aModifyLink;
public:
CheckBoxControl(Window* pParent, WinBits nWinStyle = 0);
@@ -312,7 +312,7 @@ namespace svt
void SetModifyHdl(const Link& rHdl) {m_aModifyLink = rHdl;}
const Link& GetModifyHdl() const {return m_aModifyLink;}
- CheckBox& GetBox() {return *pBox;};
+ CheckBox& GetBox() {return *pBox;};
private:
DECL_LINK( OnClick, void* );
@@ -438,25 +438,25 @@ namespace svt
enum BrowseInfo
{
- COLSELECT = 1,
- ROWSELECT = 2,
- ROWCHANGE = 4,
- COLCHANGE = 8
+ COLSELECT = 1,
+ ROWSELECT = 2,
+ ROWCHANGE = 4,
+ COLCHANGE = 8
};
public:
enum RowStatus
{
- CLEAN = 0,
- CURRENT = 1,
- CURRENTNEW = 2,
- MODIFIED = 3,
- NEW = 4,
- DELETED = 5,
- PRIMARYKEY = 6,
- CURRENT_PRIMARYKEY = 7,
- FILTER = 8,
- HEADERFOOTER = 9
+ CLEAN = 0,
+ CURRENT = 1,
+ CURRENTNEW = 2,
+ MODIFIED = 3,
+ NEW = 4,
+ DELETED = 5,
+ PRIMARYKEY = 6,
+ CURRENT_PRIMARYKEY = 7,
+ FILTER = 8,
+ HEADERFOOTER = 9
};
private:
@@ -482,27 +482,27 @@ namespace svt
void Set(const BrowserMouseEvent* pEvt, sal_Bool bIsDown);
} aMouseEvent;
- const BrowserMouseEvent* pMouseEvent; // is set during a mouse event
- CellControllerRef aController,
+ const BrowserMouseEvent* pMouseEvent; // is set during a mouse event
+ CellControllerRef aController,
aOldController;
- ULONG nStartEvent, nEndEvent, nCellModifiedEvent; // event ids
- Window* m_pFocusWhileRequest;
+ ULONG nStartEvent, nEndEvent, nCellModifiedEvent; // event ids
+ Window* m_pFocusWhileRequest;
// In ActivateCell, we grab the focus asynchronously, but if between requesting activation
// and the asynchornous event the focus has changed, we won't grab it for ourself.
- long nPaintRow; // row beeing painted
- long nEditRow, nOldEditRow;
- sal_uInt16 nEditCol, nOldEditCol;
+ long nPaintRow; // row beeing painted
+ long nEditRow, nOldEditRow;
+ sal_uInt16 nEditCol, nOldEditCol;
sal_Bool bHasFocus : 1;
- mutable sal_Bool bPaintStatus : 1; // paint a status (image) in the handle column
+ mutable sal_Bool bPaintStatus : 1; // paint a status (image) in the handle column
sal_Bool bActiveBeforeTracking;
CheckBoxControl* pCheckBoxPaint;
- sal_Int32 m_nBrowserFlags;
- ImageList m_aStatusImages;
+ sal_Int32 m_nBrowserFlags;
+ ImageList m_aStatusImages;
::std::auto_ptr< EditBrowseBoxImpl> m_aImpl;
protected:
@@ -515,7 +515,7 @@ namespace svt
BrowserMouseEventPtr& getMouseEvent() { return aMouseEvent; }
protected:
- BrowserHeader* GetHeaderBar() const {return pHeader;}
+ BrowserHeader* GetHeaderBar() const {return pHeader;}
virtual BrowserHeader* CreateHeaderBar(BrowseBox* pParent);
@@ -562,16 +562,16 @@ namespace svt
virtual void ImplEndTracking();
// when changing a row:
- // CursorMoving: cursor is beeing moved, but GetCurRow() still provides the old row
+ // CursorMoving: cursor is beeing moved, but GetCurRow() still provides the old row
virtual sal_Bool CursorMoving(long nNewRow, sal_uInt16 nNewCol);
// cursor has been moved
virtual void CursorMoved();
- virtual void CellModified(); // called whenever a cell has been modified
- virtual sal_Bool SaveModified(); // called whenever a cell should be left, and it's content should be saved
+ virtual void CellModified(); // called whenever a cell has been modified
+ virtual sal_Bool SaveModified(); // called whenever a cell should be left, and it's content should be saved
// return sal_False prevents leaving the cell
- virtual sal_Bool SaveRow(); // commit the current row
+ virtual sal_Bool SaveRow(); // commit the current row
virtual sal_Bool IsModified() const {return aController.Is() && aController->IsModified();}
@@ -597,7 +597,7 @@ namespace svt
virtual sal_Bool IsCursorMoveAllowed(long nNewRow, sal_uInt16 nNewColId) const;
- void PaintTristate(OutputDevice& rDev, const Rectangle& rRect,const TriState& eState,sal_Bool _bEnabled=sal_True) const;
+ void PaintTristate(OutputDevice& rDev, const Rectangle& rRect,const TriState& eState,sal_Bool _bEnabled=sal_True) const;
void AsynchGetFocus();
// secure starting of StartEditHdl
@@ -617,19 +617,19 @@ namespace svt
virtual void Dispatch(sal_uInt16 nId);
CellControllerRef Controller() const { return aController; }
- sal_Int32 GetBrowserFlags() const { return m_nBrowserFlags; }
- void SetBrowserFlags(sal_Int32 nFlags);
+ sal_Int32 GetBrowserFlags() const { return m_nBrowserFlags; }
+ void SetBrowserFlags(sal_Int32 nFlags);
- virtual void ActivateCell(long nRow, sal_uInt16 nCol, sal_Bool bSetCellFocus = sal_True);
+ virtual void ActivateCell(long nRow, sal_uInt16 nCol, sal_Bool bSetCellFocus = sal_True);
virtual void DeactivateCell(sal_Bool bUpdate = sal_True);
// Children ---------------------------------------------------------------
/** Creates the accessible object of a data table cell.
- @param nRow
+ @param nRow
The row index of the cell.
- @param nColumnId
+ @param nColumnId
The column ID of the cell.
- @return
+ @return
The XAccessible interface of the specified cell. */
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible >
@@ -639,18 +639,18 @@ namespace svt
virtual sal_Int32 GetAccessibleControlCount() const;
/** Creates the accessible object of an additional control.
- @param nIndex
+ @param nIndex
The 0-based index of the control.
- @return
+ @return
The XAccessible interface of the specified control. */
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible >
CreateAccessibleControl( sal_Int32 nIndex );
/** Creates the accessible object of a column header.
- @param nColumnId
+ @param nColumnId
The column ID of the header.
- @return
+ @return
The XAccessible interface of the specified column header. */
virtual ::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible >
@@ -666,7 +666,7 @@ namespace svt
::com::sun::star::accessibility::XAccessible > CreateAccessibleCheckBoxCell(long _nRow, USHORT _nColumnPos,const TriState& eState,sal_Bool _bEnabled=sal_True);
protected:
// creates the accessible which wraps the active cell
- void implCreateActiveAccessible( );
+ void implCreateActiveAccessible( );
private:
virtual void PaintField(OutputDevice& rDev, const Rectangle& rRect,
@@ -687,7 +687,7 @@ namespace svt
};
// .......................................................................
-} // namespace svt
+} // namespace svt
// .......................................................................
#undef SVTOOLS_IN_EDITBROWSEBOX_HXX
diff --git a/svtools/inc/svtools/editimplementation.hxx b/svtools/inc/svtools/editimplementation.hxx
index b2515bb6d067..9db0a26677a4 100644
--- a/svtools/inc/svtools/editimplementation.hxx
+++ b/svtools/inc/svtools/editimplementation.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/editsyntaxhighlighter.hxx b/svtools/inc/svtools/editsyntaxhighlighter.hxx
index 265e0bc4110c..9a834101fbf0 100644
--- a/svtools/inc/svtools/editsyntaxhighlighter.hxx
+++ b/svtools/inc/svtools/editsyntaxhighlighter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,16 +37,16 @@
class SVT_DLLPUBLIC MultiLineEditSyntaxHighlight : public MultiLineEdit
{
private:
- bool mbDoBracketHilight;
- SyntaxHighlighter aHighlighter;
+ bool mbDoBracketHilight;
+ SyntaxHighlighter aHighlighter;
svtools::ColorConfig m_aColorConfig;
-
+
private:
virtual void DoBracketHilight(USHORT aKey);
protected:
virtual long PreNotify( NotifyEvent& rNEvt );
-
+
public:
MultiLineEditSyntaxHighlight( Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER , HighlighterLanguage aLanguage = HIGHLIGHT_SQL);
MultiLineEditSyntaxHighlight( Window* pParent, const ResId& rResId , HighlighterLanguage aLanguage = HIGHLIGHT_SQL);
@@ -58,7 +58,7 @@ class SVT_DLLPUBLIC MultiLineEditSyntaxHighlight : public MultiLineEdit
virtual void SetText(const String& rNewText);
virtual void SetText( const XubString& rStr, const Selection& rNewSelection )
{ SetText( rStr ); SetSelection( rNewSelection ); }
-
+
Color GetColorValue(TokenTypes aToken);
};
diff --git a/svtools/inc/svtools/ehdl.hxx b/svtools/inc/svtools/ehdl.hxx
index 835854b2f030..1fd3cfeb5e55 100644
--- a/svtools/inc/svtools/ehdl.hxx
+++ b/svtools/inc/svtools/ehdl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/embedhlp.hxx b/svtools/inc/svtools/embedhlp.hxx
index fc2d12a3b3c3..2e15a7376963 100644
--- a/svtools/inc/svtools/embedhlp.hxx
+++ b/svtools/inc/svtools/embedhlp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,18 +103,18 @@ namespace svt
::rtl::OUString GetPersistName() const;
sal_Int64 GetViewAspect() const;
- void SetViewAspect( sal_Int64 nAspect );
+ void SetViewAspect( sal_Int64 nAspect );
Graphic* GetGraphic( ::rtl::OUString* pMediaType=0 ) const;
// the original size of the object ( size of the icon for iconified object )
// no conversion is done if no target mode is provided
- Size GetSize( MapMode* pTargetMapMode = NULL ) const;
+ Size GetSize( MapMode* pTargetMapMode = NULL ) const;
// the following method tries to get the HC graphic if it is possible, otherwise returns NULL
Graphic* GetHCGraphic() const;
void SetGraphic( const Graphic& rGraphic, const ::rtl::OUString& rMediaType );
- void SetGraphicStream(
+ void SetGraphicStream(
const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInGrStream,
const ::rtl::OUString& rMediaType );
@@ -130,8 +130,8 @@ namespace svt
// #i104867#
// Provides a graphic version number for the fetchable Graphic during this object's lifetime. Internally,
- // that number is incremented at each change of the Graphic. This mechanism is needed to identify if a
- // remembered Graphic (e.g. primitives) has changed compared to the current one, but without actively
+ // that number is incremented at each change of the Graphic. This mechanism is needed to identify if a
+ // remembered Graphic (e.g. primitives) has changed compared to the current one, but without actively
// fetching the Graphic what would be too expensive e.g. for charts
sal_uInt32 getGraphicVersion() const;
void SetDefaultSizeForChart( const Size& rSizeIn_100TH_MM );//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method
diff --git a/svtools/inc/svtools/embedtransfer.hxx b/svtools/inc/svtools/embedtransfer.hxx
index 7c82a7302b84..4725da082dd3 100644
--- a/svtools/inc/svtools/embedtransfer.hxx
+++ b/svtools/inc/svtools/embedtransfer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,9 +44,9 @@ private:
protected:
- virtual void AddSupportedFormats();
- virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- virtual void ObjectReleased();
+ virtual void AddSupportedFormats();
+ virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ virtual void ObjectReleased();
public:
// object, replacement image, and the aspect
diff --git a/svtools/inc/svtools/extensionlistbox.hxx b/svtools/inc/svtools/extensionlistbox.hxx
index a4b2d68198db..9c028f515c49 100644
--- a/svtools/inc/svtools/extensionlistbox.hxx
+++ b/svtools/inc/svtools/extensionlistbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/fileurlbox.hxx b/svtools/inc/svtools/fileurlbox.hxx
index 570c2cb82a2a..7a0f6754ec19 100644
--- a/svtools/inc/svtools/fileurlbox.hxx
+++ b/svtools/inc/svtools/fileurlbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace svt
class SVT_DLLPUBLIC FileURLBox : public SvtURLBox
{
protected:
- String m_sPreservedText;
+ String m_sPreservedText;
public:
FileURLBox( Window* _pParent );
@@ -51,8 +51,8 @@ namespace svt
FileURLBox( Window* _pParent, const ResId& _rId );
protected:
- virtual long PreNotify( NotifyEvent& rNEvt );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
public:
/** transforms the given URL content into a system-dependent notation, if possible, and
@@ -71,7 +71,7 @@ namespace svt
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // SVTOOLS_FILEURLBOX_HXX
diff --git a/svtools/inc/svtools/filter.hxx b/svtools/inc/svtools/filter.hxx
index ceb966ac90ff..492ed852765a 100644
--- a/svtools/inc/svtools/filter.hxx
+++ b/svtools/inc/svtools/filter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,88 +52,88 @@ struct ImplDirEntryHelper
class Window;
class Graphic;
-#define OPT_FILTERSECTION "Graphic"
+#define OPT_FILTERSECTION "Graphic"
-#define GRFILTER_OK 0
-#define GRFILTER_OPENERROR 1
-#define GRFILTER_IOERROR 2
-#define GRFILTER_FORMATERROR 3
-#define GRFILTER_VERSIONERROR 4
-#define GRFILTER_FILTERERROR 5
-#define GRFILTER_ABORT 6
-#define GRFILTER_TOOBIG 7
+#define GRFILTER_OK 0
+#define GRFILTER_OPENERROR 1
+#define GRFILTER_IOERROR 2
+#define GRFILTER_FORMATERROR 3
+#define GRFILTER_VERSIONERROR 4
+#define GRFILTER_FILTERERROR 5
+#define GRFILTER_ABORT 6
+#define GRFILTER_TOOBIG 7
#define GRFILTER_OUTHINT_GREY 1
-#define GRFILTER_FORMAT_NOTFOUND ((USHORT)0xFFFF)
-#define GRFILTER_FORMAT_DONTKNOW ((USHORT)0xFFFF)
+#define GRFILTER_FORMAT_NOTFOUND ((USHORT)0xFFFF)
+#define GRFILTER_FORMAT_DONTKNOW ((USHORT)0xFFFF)
#define GRFILTER_I_FLAGS_SET_LOGSIZE_FOR_JPEG 00000001
#define GRFILTER_I_FLAGS_DONT_SET_LOGSIZE_FOR_JPEG 00000002
#define GRFILTER_I_FLAGS_FOR_PREVIEW 00000004
#define GRFILTER_I_FLAGS_ALLOW_PARTIAL_STREAMREAD 00000010
-#define IMP_BMP "SVBMP"
-#define IMP_SVMETAFILE "SVMETAFILE"
-#define IMP_WMF "SVWMF"
-#define IMP_EMF "SVEMF"
-#define IMP_SVSGF "SVSGF"
-#define IMP_SVSGV "SVSGV"
-#define IMP_GIF "SVIGIF"
-#define IMP_PNG "SVIPNG"
-#define IMP_JPEG "SVIJPEG"
-#define IMP_XBM "SVIXBM"
-#define IMP_XPM "SVIXPM"
-#define EXP_BMP "SVBMP"
-#define EXP_SVMETAFILE "SVMETAFILE"
-#define EXP_WMF "SVWMF"
-#define EXP_EMF "SVEMF"
-#define EXP_JPEG "SVEJPEG"
-#define EXP_SVG "SVESVG"
-#define EXP_PNG "SVEPNG"
-
-#define BMP_SHORTNAME "BMP"
-#define GIF_SHORTNAME "GIF"
-#define JPG_SHORTNAME "JPG"
-#define MET_SHORTNAME "MET"
-#define PCT_SHORTNAME "PCT"
-#define PNG_SHORTNAME "PNG"
-#define SVM_SHORTNAME "SVM"
-#define TIF_SHORTNAME "TIF"
-#define WMF_SHORTNAME "WMF"
-#define EMF_SHORTNAME "EMF"
+#define IMP_BMP "SVBMP"
+#define IMP_SVMETAFILE "SVMETAFILE"
+#define IMP_WMF "SVWMF"
+#define IMP_EMF "SVEMF"
+#define IMP_SVSGF "SVSGF"
+#define IMP_SVSGV "SVSGV"
+#define IMP_GIF "SVIGIF"
+#define IMP_PNG "SVIPNG"
+#define IMP_JPEG "SVIJPEG"
+#define IMP_XBM "SVIXBM"
+#define IMP_XPM "SVIXPM"
+#define EXP_BMP "SVBMP"
+#define EXP_SVMETAFILE "SVMETAFILE"
+#define EXP_WMF "SVWMF"
+#define EXP_EMF "SVEMF"
+#define EXP_JPEG "SVEJPEG"
+#define EXP_SVG "SVESVG"
+#define EXP_PNG "SVEPNG"
+
+#define BMP_SHORTNAME "BMP"
+#define GIF_SHORTNAME "GIF"
+#define JPG_SHORTNAME "JPG"
+#define MET_SHORTNAME "MET"
+#define PCT_SHORTNAME "PCT"
+#define PNG_SHORTNAME "PNG"
+#define SVM_SHORTNAME "SVM"
+#define TIF_SHORTNAME "TIF"
+#define WMF_SHORTNAME "WMF"
+#define EMF_SHORTNAME "EMF"
// ------------------------------------
// - Info-Klasse fuer alle von uns
-// unterstuetzten Grafik-Fileformate
+// unterstuetzten Grafik-Fileformate
// ------------------------------------
-#define GFF_NOT ( (USHORT)0x0000 )
-#define GFF_BMP ( (USHORT)0x0001 )
-#define GFF_GIF ( (USHORT)0x0002 )
-#define GFF_JPG ( (USHORT)0x0003 )
-#define GFF_PCD ( (USHORT)0x0004 )
-#define GFF_PCX ( (USHORT)0x0005 )
-#define GFF_PNG ( (USHORT)0x0006 )
-#define GFF_TIF ( (USHORT)0x0007 )
-#define GFF_XBM ( (USHORT)0x0008 )
-#define GFF_XPM ( (USHORT)0x0009 )
-#define GFF_PBM ( (USHORT)0x000a )
-#define GFF_PGM ( (USHORT)0x000b )
-#define GFF_PPM ( (USHORT)0x000c )
-#define GFF_RAS ( (USHORT)0x000d )
-#define GFF_TGA ( (USHORT)0x000e )
-#define GFF_PSD ( (USHORT)0x000f )
-#define GFF_EPS ( (USHORT)0x0010 )
-#define GFF_DXF ( (USHORT)0x00f1 )
-#define GFF_MET ( (USHORT)0x00f2 )
-#define GFF_PCT ( (USHORT)0x00f3 )
-#define GFF_SGF ( (USHORT)0x00f4 )
-#define GFF_SVM ( (USHORT)0x00f5 )
-#define GFF_WMF ( (USHORT)0x00f6 )
-#define GFF_SGV ( (USHORT)0x00f7 )
-#define GFF_EMF ( (USHORT)0x00f8 )
-#define GFF_XXX ( (USHORT)0xffff )
+#define GFF_NOT ( (USHORT)0x0000 )
+#define GFF_BMP ( (USHORT)0x0001 )
+#define GFF_GIF ( (USHORT)0x0002 )
+#define GFF_JPG ( (USHORT)0x0003 )
+#define GFF_PCD ( (USHORT)0x0004 )
+#define GFF_PCX ( (USHORT)0x0005 )
+#define GFF_PNG ( (USHORT)0x0006 )
+#define GFF_TIF ( (USHORT)0x0007 )
+#define GFF_XBM ( (USHORT)0x0008 )
+#define GFF_XPM ( (USHORT)0x0009 )
+#define GFF_PBM ( (USHORT)0x000a )
+#define GFF_PGM ( (USHORT)0x000b )
+#define GFF_PPM ( (USHORT)0x000c )
+#define GFF_RAS ( (USHORT)0x000d )
+#define GFF_TGA ( (USHORT)0x000e )
+#define GFF_PSD ( (USHORT)0x000f )
+#define GFF_EPS ( (USHORT)0x0010 )
+#define GFF_DXF ( (USHORT)0x00f1 )
+#define GFF_MET ( (USHORT)0x00f2 )
+#define GFF_PCT ( (USHORT)0x00f3 )
+#define GFF_SGF ( (USHORT)0x00f4 )
+#define GFF_SVM ( (USHORT)0x00f5 )
+#define GFF_WMF ( (USHORT)0x00f6 )
+#define GFF_SGV ( (USHORT)0x00f7 )
+#define GFF_EMF ( (USHORT)0x00f8 )
+#define GFF_XXX ( (USHORT)0xffff )
// ---------------
// - RequestInfo -
@@ -141,8 +141,8 @@ class Graphic;
struct RequestInfo
{
- BYTE* pBuffer;
- ULONG nRealBufferSize;
+ BYTE* pBuffer;
+ ULONG nRealBufferSize;
};
// ---------------------
@@ -151,62 +151,62 @@ struct RequestInfo
class SVT_DLLPUBLIC GraphicDescriptor
{
- SvStream* pFileStm;
- Link aReqLink;
- String aPathExt;
- Size aPixSize;
- Size aLogSize;
- SvStream* pMemStm;
- SvStream* pBaseStm;
- ULONG nStmPos;
- USHORT nBitsPerPixel;
- USHORT nPlanes;
- USHORT nFormat;
- BOOL bCompressed;
- BOOL bDataReady;
- BOOL bLinked;
- BOOL bLinkChanged;
- BOOL bWideSearch;
- BOOL bBaseStm;
- long nExtra1;
- long nExtra2;
-
- void ImpConstruct();
-
- BOOL ImpDetectBMP( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectGIF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectJPG( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPCD( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPCX( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPNG( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectTIF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectXBM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectXPM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPBM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPGM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPPM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectRAS( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectTGA( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPSD( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectEPS( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectDXF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectMET( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectPCT( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectSGF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectSVM( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectWMF( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectSGV( SvStream& rStm, BOOL bExtendedInfo );
- BOOL ImpDetectEMF( SvStream& rStm, BOOL bExtendedInfo );
+ SvStream* pFileStm;
+ Link aReqLink;
+ String aPathExt;
+ Size aPixSize;
+ Size aLogSize;
+ SvStream* pMemStm;
+ SvStream* pBaseStm;
+ ULONG nStmPos;
+ USHORT nBitsPerPixel;
+ USHORT nPlanes;
+ USHORT nFormat;
+ BOOL bCompressed;
+ BOOL bDataReady;
+ BOOL bLinked;
+ BOOL bLinkChanged;
+ BOOL bWideSearch;
+ BOOL bBaseStm;
+ long nExtra1;
+ long nExtra2;
+
+ void ImpConstruct();
+
+ BOOL ImpDetectBMP( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectGIF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectJPG( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPCD( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPCX( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPNG( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectTIF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectXBM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectXPM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPBM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPGM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPPM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectRAS( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectTGA( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPSD( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectEPS( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectDXF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectMET( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectPCT( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectSGF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectSVM( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectWMF( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectSGV( SvStream& rStm, BOOL bExtendedInfo );
+ BOOL ImpDetectEMF( SvStream& rStm, BOOL bExtendedInfo );
GraphicDescriptor( const GraphicDescriptor& );
GraphicDescriptor& operator=( const GraphicDescriptor& );
protected:
- BOOL IsDataReady() const;
- BOOL IsWideSearch() const;
- SvStream& GetSearchStream() const;
- const String& GetPathExtension() const;
+ BOOL IsDataReady() const;
+ BOOL IsWideSearch() const;
+ SvStream& GetSearchStream() const;
+ const String& GetPathExtension() const;
public:
@@ -237,26 +237,26 @@ public:
// bei bExtendedInfo == TRUE werden soweit wie moeglich
// Daten aus dem jeweiligen FileHeader ermittelt
// ( Groesse, Farbtiefe usw. )
- virtual BOOL Detect( BOOL bExtendedInfo = FALSE );
+ virtual BOOL Detect( BOOL bExtendedInfo = FALSE );
// liefert das Fileformat nach erfolgreicher Detektion zurueck;
// wenn kein Format erkannt wurde, ist das Formart GFF_NOT
- USHORT GetFileFormat() const { return nFormat; }
+ USHORT GetFileFormat() const { return nFormat; }
// liefert die Pixel-Bildgroesse oder 0-Size zurueck
- const Size& GetSizePixel() const { return (Size&) aPixSize; }
+ const Size& GetSizePixel() const { return (Size&) aPixSize; }
// liefert die logische Bildgroesse in 1/100mm oder 0-Size zurueck
- const Size& GetSize_100TH_MM() const { return (Size&) aLogSize; }
+ const Size& GetSize_100TH_MM() const { return (Size&) aLogSize; }
// liefert die Bits/Pixel oder 0 zurueck
- USHORT GetBitsPerPixel() const { return nBitsPerPixel; }
+ USHORT GetBitsPerPixel() const { return nBitsPerPixel; }
// liefert die Anzahl der Planes oder 0 zurueck
- USHORT GetPlanes() const { return nPlanes; }
+ USHORT GetPlanes() const { return nPlanes; }
// zeigt an, ob das Bild evtl. komprimiert (wie auch immer) ist
- BOOL IsCompressed() const { return bCompressed; }
+ BOOL IsCompressed() const { return bCompressed; }
// setzt den LinkHdl zum Setzen der Bytes;
// der Handler muss einen Pointer auf die RequestInfo-Struktur
@@ -264,14 +264,14 @@ public:
// Daten muss im Handler ueber ::GetRequestedByteCount() erfragt werden;
// die tatsaechlich zur Verfuegung gestellte BYTE-Anzahl
// wird in der RequestInfo-Struktur gesetzt
- void SetRequestHdl( const Link& rRequestHdl );
+ void SetRequestHdl( const Link& rRequestHdl );
// gibt den LinkHdl zum Setzen der Bytes zurueck
- const Link& GetRequestHdl() const { return aReqLink; }
+ const Link& GetRequestHdl() const { return aReqLink; }
// muss im ReqHdl gerufen werden, um zu erfahren, wieviele
// Bytes _mindestens_ bereitgestellt werden muessen
- ULONG GetRequestedByteCount() const;
+ ULONG GetRequestedByteCount() const;
// gibt die Filternummer des Filters zurueck,
// der im GraphicFilter zum Lesen dieses Formats
@@ -285,12 +285,12 @@ public:
struct FilterErrorEx
{
- ULONG nFilterError;
- ULONG nStreamError;
- long nDummy1;
- long nDummy2;
- long nDummy3;
- long nDummy4;
+ ULONG nFilterError;
+ ULONG nStreamError;
+ long nDummy1;
+ long nDummy2;
+ long nDummy3;
+ long nDummy4;
FilterErrorEx() : nFilterError( 0UL ), nStreamError( 0UL ) {}
};
@@ -305,72 +305,72 @@ class SVT_DLLPUBLIC GraphicFilter
private:
- void ImplInit();
- ULONG ImplSetError( ULONG nError, const SvStream* pStm = NULL );
- sal_uInt16 ImpTestOrFindFormat( const String& rPath, SvStream& rStream, sal_uInt16& rFormat );
+ void ImplInit();
+ ULONG ImplSetError( ULONG nError, const SvStream* pStm = NULL );
+ sal_uInt16 ImpTestOrFindFormat( const String& rPath, SvStream& rStream, sal_uInt16& rFormat );
DECL_LINK( FilterCallback, ConvertData* pData );
protected:
- String aFilterPath;
- FilterConfigCache* pConfig;
- FilterErrorEx* pErrorEx;
- sal_Bool bAbort;
- sal_Bool bUseConfig;
- sal_Bool bDummy1;
- sal_Bool bDummy2;
- sal_Bool bDummy3;
- sal_Bool bDummy4;
- long nExpGraphHint;
- long nDummy2;
- void* pDummy1;
- void* pDummy2;
+ String aFilterPath;
+ FilterConfigCache* pConfig;
+ FilterErrorEx* pErrorEx;
+ sal_Bool bAbort;
+ sal_Bool bUseConfig;
+ sal_Bool bDummy1;
+ sal_Bool bDummy2;
+ sal_Bool bDummy3;
+ sal_Bool bDummy4;
+ long nExpGraphHint;
+ long nDummy2;
+ void* pDummy1;
+ void* pDummy2;
public:
GraphicFilter( sal_Bool bUseConfig = sal_True );
~GraphicFilter();
- void SetFilterPath( const String& rFilterPath ) { aFilterPath = rFilterPath; };
+ void SetFilterPath( const String& rFilterPath ) { aFilterPath = rFilterPath; };
USHORT GetImportFormatCount();
USHORT GetImportFormatNumber( const String& rFormatName );
- USHORT GetImportFormatNumberForMediaType( const String& rMediaType );
+ USHORT GetImportFormatNumberForMediaType( const String& rMediaType );
USHORT GetImportFormatNumberForShortName( const String& rShortName );
- sal_uInt16 GetImportFormatNumberForTypeName( const String& rType );
+ sal_uInt16 GetImportFormatNumberForTypeName( const String& rType );
String GetImportFormatName( USHORT nFormat );
String GetImportFormatTypeName( USHORT nFormat );
String GetImportFormatMediaType( USHORT nFormat );
String GetImportFormatShortName( USHORT nFormat );
- String GetImportOSFileType( USHORT nFormat );
- String GetImportWildcard( USHORT nFormat, sal_Int32 nEntry = 0 );
- BOOL IsImportPixelFormat( USHORT nFormat );
+ String GetImportOSFileType( USHORT nFormat );
+ String GetImportWildcard( USHORT nFormat, sal_Int32 nEntry = 0 );
+ BOOL IsImportPixelFormat( USHORT nFormat );
USHORT GetExportFormatCount();
USHORT GetExportFormatNumber( const String& rFormatName );
USHORT GetExportFormatNumberForMediaType( const String& rShortName );
USHORT GetExportFormatNumberForShortName( const String& rShortName );
- sal_uInt16 GetExportFormatNumberForTypeName( const String& rType );
+ sal_uInt16 GetExportFormatNumberForTypeName( const String& rType );
String GetExportFormatName( USHORT nFormat );
String GetExportFormatTypeName( USHORT nFormat );
String GetExportFormatMediaType( USHORT nFormat );
String GetExportFormatShortName( USHORT nFormat );
- String GetExportOSFileType( USHORT nFormat );
- String GetExportWildcard( USHORT nFormat, sal_Int32 nEntry = 0 );
- BOOL IsExportPixelFormat( USHORT nFormat );
+ String GetExportOSFileType( USHORT nFormat );
+ String GetExportWildcard( USHORT nFormat, sal_Int32 nEntry = 0 );
+ BOOL IsExportPixelFormat( USHORT nFormat );
- BOOL HasImportDialog( USHORT nFormat );
- BOOL DoImportDialog( Window* pWindow, USHORT nFormat );
+ BOOL HasImportDialog( USHORT nFormat );
+ BOOL DoImportDialog( Window* pWindow, USHORT nFormat );
- BOOL HasExportDialog( USHORT nFormat );
- BOOL DoExportDialog( Window* pWindow, USHORT nFormat );
- BOOL DoExportDialog( Window* pWindow, USHORT nFormat, FieldUnit eFieldUnit );
+ BOOL HasExportDialog( USHORT nFormat );
+ BOOL DoExportDialog( Window* pWindow, USHORT nFormat );
+ BOOL DoExportDialog( Window* pWindow, USHORT nFormat, FieldUnit eFieldUnit );
- USHORT ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath,
+ USHORT ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath,
USHORT nFormat = GRFILTER_FORMAT_DONTKNOW,
const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >* pFilterData = NULL );
- USHORT ExportGraphic( const Graphic& rGraphic, const String& rPath,
+ USHORT ExportGraphic( const Graphic& rGraphic, const String& rPath,
SvStream& rOStm, USHORT nFormat = GRFILTER_FORMAT_DONTKNOW,
const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >* pFilterData = NULL );
long GetExportGraphicHint() const { return nExpGraphHint; }
@@ -402,12 +402,12 @@ public:
void Abort() { bAbort = TRUE; }
- const FilterErrorEx& GetLastError() const;
- void ResetLastError();
+ const FilterErrorEx& GetLastError() const;
+ void ResetLastError();
const Link GetFilterCallback() const;
- static GraphicFilter* GetGraphicFilter();
- static int LoadGraphic( const String& rPath, const String& rFilter,
+ static GraphicFilter* GetGraphicFilter();
+ static int LoadGraphic( const String& rPath, const String& rFilter,
Graphic& rGraphic,
GraphicFilter* pFilter = NULL,
USHORT* pDeterminedFormat = NULL );
diff --git a/svtools/inc/svtools/fixedhyper.hxx b/svtools/inc/svtools/fixedhyper.hxx
index 6c34526dbb0b..633a67b81fa4 100644
--- a/svtools/inc/svtools/fixedhyper.hxx
+++ b/svtools/inc/svtools/fixedhyper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/fltcall.hxx b/svtools/inc/svtools/fltcall.hxx
index aa973d629e79..09264b5a5993 100644
--- a/svtools/inc/svtools/fltcall.hxx
+++ b/svtools/inc/svtools/fltcall.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,18 +42,18 @@ class Window;
struct FltCallDialogParameter
{
- Window* pWindow;
- ResMgr* pResMgr;
- FieldUnit eFieldUnit;
- String aFilterExt;
+ Window* pWindow;
+ ResMgr* pResMgr;
+ FieldUnit eFieldUnit;
+ String aFilterExt;
// In and Out PropertySequence for all filter dialogs
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > aFilterData;
FltCallDialogParameter( Window* pW, ResMgr* pRsMgr, FieldUnit eFiUni ) :
- pWindow ( pW ),
- pResMgr ( pRsMgr ),
- eFieldUnit ( eFiUni ) {};
+ pWindow ( pW ),
+ pResMgr ( pRsMgr ),
+ eFieldUnit ( eFiUni ) {};
};
typedef BOOL (*PFilterCall)(SvStream & rStream, Graphic & rGraphic,
diff --git a/svtools/inc/svtools/fmtfield.hxx b/svtools/inc/svtools/fmtfield.hxx
index 406c827a7636..531b048e5321 100644
--- a/svtools/inc/svtools/fmtfield.hxx
+++ b/svtools/inc/svtools/fmtfield.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,10 +46,10 @@
#endif
typedef USHORT FORMAT_CHANGE_TYPE;
-#define FCT_KEYONLY 0x00 // only a new key was set
-#define FCT_FORMATTER 0x01 // a new formatter weas set, usually implies a change of the key, too
-#define FCT_PRECISION 0x02 // a new precision was set
-#define FCT_THOUSANDSSEP 0x03 // the thousands separator setting changed
+#define FCT_KEYONLY 0x00 // only a new key was set
+#define FCT_FORMATTER 0x01 // a new formatter weas set, usually implies a change of the key, too
+#define FCT_PRECISION 0x02 // a new precision was set
+#define FCT_THOUSANDSSEP 0x03 // the thousands separator setting changed
//------------------------------------------------------------------------------
class SVT_DLLPUBLIC FormattedField : public SpinField
@@ -60,8 +60,8 @@ private:
// einzige statische.
class StaticFormatter
{
- static SvNumberFormatter* s_cFormatter;
- static ULONG s_nReferences;
+ static SvNumberFormatter* s_cFormatter;
+ static ULONG s_nReferences;
public:
StaticFormatter();
~StaticFormatter();
@@ -71,44 +71,44 @@ private:
};
protected:
- String m_sLastValidText;
+ String m_sLastValidText;
// hat nichts mit dem current value zu tun, ist der letzte Text, der waehrend einer Eingabe als gueltig erkannt
// wurde (also durch CheckText geprueft, nicht durch den Formatter gejagt)
- Selection m_aLastSelection;
+ Selection m_aLastSelection;
- double m_dMinValue;
- double m_dMaxValue;
- BOOL m_bHasMin : 1;
- BOOL m_bHasMax : 1;
+ double m_dMinValue;
+ double m_dMaxValue;
+ BOOL m_bHasMin : 1;
+ BOOL m_bHasMax : 1;
- BOOL m_bStrictFormat : 1;
+ BOOL m_bStrictFormat : 1;
- BOOL m_bValueDirty : 1;
- BOOL m_bEnableEmptyField : 1;
- BOOL m_bAutoColor : 1;
- BOOL m_bEnableNaN : 1;
- double m_dCurrentValue;
- double m_dDefaultValue;
+ BOOL m_bValueDirty : 1;
+ BOOL m_bEnableEmptyField : 1;
+ BOOL m_bAutoColor : 1;
+ BOOL m_bEnableNaN : 1;
+ double m_dCurrentValue;
+ double m_dDefaultValue;
- ULONG m_nFormatKey;
- SvNumberFormatter* m_pFormatter;
- StaticFormatter m_aStaticFormatter;
+ ULONG m_nFormatKey;
+ SvNumberFormatter* m_pFormatter;
+ StaticFormatter m_aStaticFormatter;
- double m_dSpinSize;
- double m_dSpinFirst;
- double m_dSpinLast;
+ double m_dSpinSize;
+ double m_dSpinFirst;
+ double m_dSpinLast;
// es macht einen Unterschied, ob man bei eingestellter Textformatierung beim LostFocus den aktuellen String durch
// den Formatter jagt und das Ergebnis anzeigt oder erst aus dem String ein double macht, das formatiert und dann
// ausgibt
- BOOL m_bTreatAsNumber;
+ BOOL m_bTreatAsNumber;
// und mit den folgenden Members koennen wir das Ganze hier auch zur formatierten Text-Ausgabe benutzen ...
- String m_sCurrentTextValue;
- String m_sDefaultText;
+ String m_sCurrentTextValue;
+ String m_sDefaultText;
// die bei der letzten Ausgabe-Operation vom Formatter gelieferte Farbe (nicht dass wir sie beachten wuerden, aber
// man kann sie von aussen abfragen)
- Color* m_pLastOutputColor;
+ Color* m_pLastOutputColor;
bool m_bUseInputStringForFormatting;
@@ -118,63 +118,63 @@ public:
virtual ~FormattedField();
// Min-/Max-Verwaltung
- BOOL HasMinValue() const { return m_bHasMin; }
- void ClearMinValue() { m_bHasMin = FALSE; }
- void SetMinValue(double dMin);
- double GetMinValue() const { return m_dMinValue; }
+ BOOL HasMinValue() const { return m_bHasMin; }
+ void ClearMinValue() { m_bHasMin = FALSE; }
+ void SetMinValue(double dMin);
+ double GetMinValue() const { return m_dMinValue; }
- BOOL HasMaxValue() const { return m_bHasMax; }
- void ClearMaxValue() { m_bHasMax = FALSE; }
- void SetMaxValue(double dMax);
- double GetMaxValue() const { return m_dMaxValue; }
+ BOOL HasMaxValue() const { return m_bHasMax; }
+ void ClearMaxValue() { m_bHasMax = FALSE; }
+ void SetMaxValue(double dMax);
+ double GetMaxValue() const { return m_dMaxValue; }
// aktueller Wert
- virtual void SetValue(double dVal);
- virtual double GetValue();
+ virtual void SetValue(double dVal);
+ virtual double GetValue();
// die Standard-Implementierung jagt die Eingabe jeweils durch den Formatter, so einer vorhanden ist
- void GetColor() const;
+ void GetColor() const;
- void SetTextValue(const XubString& rText);
+ void SetTextValue(const XubString& rText);
// der String wird in ein double umgewandelt (durch den Formatter) und anschliessen in SetValue gesteckt
- BOOL IsEmptyFieldEnabled() const { return m_bEnableEmptyField; }
- void EnableEmptyField(BOOL bEnable);
+ BOOL IsEmptyFieldEnabled() const { return m_bEnableEmptyField; }
+ void EnableEmptyField(BOOL bEnable);
// wenn nicht enabled, wird beim Verlassen des Feldes der Text auf den letzten gueltigen zurueckgesetzt
- void SetDefaultValue(double dDefault) { m_dDefaultValue = dDefault; m_bValueDirty = TRUE; }
+ void SetDefaultValue(double dDefault) { m_dDefaultValue = dDefault; m_bValueDirty = TRUE; }
// wenn der aktuelle String ungueltig ist, liefert GetValue() diesen Default-Wert
- double GetDefaultValue() const { return m_dDefaultValue; }
+ double GetDefaultValue() const { return m_dDefaultValue; }
// Einstellungen fuer das Format
- ULONG GetFormatKey() const { return m_nFormatKey; }
- void SetFormatKey(ULONG nFormatKey);
+ ULONG GetFormatKey() const { return m_nFormatKey; }
+ void SetFormatKey(ULONG nFormatKey);
- SvNumberFormatter* GetFormatter() const { return m_pFormatter; }
- void SetFormatter(SvNumberFormatter* pFormatter, BOOL bResetFormat = TRUE);
+ SvNumberFormatter* GetFormatter() const { return m_pFormatter; }
+ void SetFormatter(SvNumberFormatter* pFormatter, BOOL bResetFormat = TRUE);
// wenn bResetFormat FALSE ist, wird versucht, das alte eingestellte Format mit 'hinueberzuretten' (teuer, wenn es sich nicht
// um eines der Standard-Formate handelt, die in allen Formattern gleich sind)
// wenn TRUE, wird als neuer FormatKey 0 gesetzt
- BOOL GetThousandsSep() const;
- void SetThousandsSep(BOOL _bUseSeparator);
+ BOOL GetThousandsSep() const;
+ void SetThousandsSep(BOOL _bUseSeparator);
// the is no check if the current format is numeric, so be cautious when calling these functions
- USHORT GetDecimalDigits() const;
- void SetDecimalDigits(USHORT _nPrecision);
+ USHORT GetDecimalDigits() const;
+ void SetDecimalDigits(USHORT _nPrecision);
// the is no check if the current format is numeric, so be cautious when calling these functions
- SvNumberFormatter* StandardFormatter() { return m_aStaticFormatter; }
+ SvNumberFormatter* StandardFormatter() { return m_aStaticFormatter; }
// Wenn man keinen eigenen Formatter explizit anlegen will, kann man diesen hier in SetFormatter stecken ...
// Das hier gelieferte Objekt wird allerdings zwischen allen Instanzen der Klasse geteilt (aus Zeit- und Platzgruenden),
// also ist etwas Vorsicht angebracht ...
- void GetFormat(XubString& rFormatString, LanguageType& eLang) const;
- BOOL SetFormat(const XubString& rFormatString, LanguageType eLang);
+ void GetFormat(XubString& rFormatString, LanguageType& eLang) const;
+ BOOL SetFormat(const XubString& rFormatString, LanguageType eLang);
// FALSE, wenn der FormatString nicht gesetzt werden konnte (also wahrscheinlich ungueltig ist)
- BOOL IsStrictFormat() const { return m_bStrictFormat; }
- void SetStrictFormat(BOOL bEnable) { m_bStrictFormat = bEnable; }
+ BOOL IsStrictFormat() const { return m_bStrictFormat; }
+ void SetStrictFormat(BOOL bEnable) { m_bStrictFormat = bEnable; }
// Formatueberpruefung waehrend der Eingabe ?
// Spin-Handling
@@ -185,50 +185,50 @@ public:
virtual void Last();
// Standard-Implementierung : aktuelles double setzen auf eingestellten first respektive last value
- void SetSpinSize(double dStep) { m_dSpinSize = dStep; }
- double GetSpinSize() const { return m_dSpinSize; }
+ void SetSpinSize(double dStep) { m_dSpinSize = dStep; }
+ double GetSpinSize() const { return m_dSpinSize; }
- void SetSpinFirst(double dFirst) { m_dSpinFirst = dFirst; }
- double GetSpinFirst() const { return m_dSpinFirst; }
+ void SetSpinFirst(double dFirst) { m_dSpinFirst = dFirst; }
+ double GetSpinFirst() const { return m_dSpinFirst; }
- void SetSpinLast(double dLast) { m_dSpinLast = dLast; }
- double GetSpinLast() const { return m_dSpinLast; }
+ void SetSpinLast(double dLast) { m_dSpinLast = dLast; }
+ double GetSpinLast() const { return m_dSpinLast; }
- BOOL TreatingAsNumber() const { return m_bTreatAsNumber; }
- void TreatAsNumber(BOOL bDoSo) { m_bTreatAsNumber = bDoSo; }
+ BOOL TreatingAsNumber() const { return m_bTreatAsNumber; }
+ void TreatAsNumber(BOOL bDoSo) { m_bTreatAsNumber = bDoSo; }
public:
virtual void SetText( const XubString& rStr );
virtual void SetText( const XubString& rStr, const Selection& rNewSelection );
- void SetValidateText(const XubString& rText, const String* pErrorText = NULL);
+ void SetValidateText(const XubString& rText, const String* pErrorText = NULL);
// die folgenden Methoden sind interesant, wenn m_bTreatAsNumber auf FALSE sitzt
- /** nehmen wir mal an, irgendjemand will das ganze schoene double-Handling gar nicht haben, sondern
+ /** nehmen wir mal an, irgendjemand will das ganze schoene double-Handling gar nicht haben, sondern
einfach den Text formatiert ausgeben ...
(der Text wird einfach nur durch den Formatter gejagt und dann gesetzt)
*/
void SetTextFormatted(const XubString& rText);
- String GetTextValue() const;
+ String GetTextValue() const;
- void SetDefaultText(const XubString& rDefault) { m_sDefaultText = rDefault; }
- String GetDefaultText() const { return m_sDefaultText; }
+ void SetDefaultText(const XubString& rDefault) { m_sDefaultText = rDefault; }
+ String GetDefaultText() const { return m_sDefaultText; }
// die bei der letzten Ausgabe-Operation vom Formatter gelieferte Farbe (Ausgabe-Operationen werden getriggert durch
// SetValue, SetTextValue, SetTextFormatted, also indirekt eventuell auch durch SetMin-/-MaxValue)
- Color* GetLastOutputColor() const { return m_pLastOutputColor; }
+ Color* GetLastOutputColor() const { return m_pLastOutputColor; }
/** reformats the current text. Interesting if the user entered some text in an "input format", and
this should be formatted in the "output format" (which may differ, e.g. by additional numeric
digits or such).
*/
- void Commit();
+ void Commit();
// enable automatic coloring. if set to TRUE, and the format the field is working with for any current value
// says that it has to be painted in a special color (e.g. a format where negative numbers should be printed
// red), the text is painted with that color automatically.
// The color used is the same as returned by GetLastOutputColor()
- void SetAutoColor(BOOL _bAutomatic);
- BOOL GetAutoColor() const { return m_bAutoColor; }
+ void SetAutoColor(BOOL _bAutomatic);
+ BOOL GetAutoColor() const { return m_bAutoColor; }
/** enables handling of not-a-number value.
@@ -271,8 +271,8 @@ protected:
void ImplSetFormatKey(ULONG nFormatKey);
// SetFormatKey without FormatChanged notification
- virtual SvNumberFormatter* CreateFormatter() { SetFormatter(StandardFormatter()); return m_pFormatter; }
- SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : ((FormattedField*)this)->CreateFormatter(); }
+ virtual SvNumberFormatter* CreateFormatter() { SetFormatter(StandardFormatter()); return m_pFormatter; }
+ SvNumberFormatter* ImplGetFormatter() const { return m_pFormatter ? m_pFormatter : ((FormattedField*)this)->CreateFormatter(); }
long PreNotify(NotifyEvent& rNEvt);
@@ -284,9 +284,9 @@ class SVT_DLLPUBLIC DoubleNumericField : public FormattedField
{
protected:
#ifdef REGEXP_SUPPORT
- ::utl::TextSearch* m_pConformanceTester;
+ ::utl::TextSearch* m_pConformanceTester;
#else
- validation::NumberValidator* m_pNumberValidator;
+ validation::NumberValidator* m_pNumberValidator;
#endif
public:
@@ -321,25 +321,25 @@ protected:
};
//==============================================================================
-#define FCT_CURRENCY_SYMBOL 0x10
-#define FCT_CURRSYM_POSITION 0x20
+#define FCT_CURRENCY_SYMBOL 0x10
+#define FCT_CURRSYM_POSITION 0x20
//------------------------------------------------------------------------------
class DoubleCurrencyField : public FormattedField
{
- XubString m_sCurrencySymbol;
- BOOL m_bPrependCurrSym;
- BOOL m_bChangingFormat;
+ XubString m_sCurrencySymbol;
+ BOOL m_bPrependCurrSym;
+ BOOL m_bChangingFormat;
public:
DoubleCurrencyField(Window* pParent, WinBits nStyle = 0);
DoubleCurrencyField(Window* pParent, const ResId& rResId);
- XubString getCurrencySymbol() const { return m_sCurrencySymbol; }
- void setCurrencySymbol(const XubString& _sSymbol);
+ XubString getCurrencySymbol() const { return m_sCurrencySymbol; }
+ void setCurrencySymbol(const XubString& _sSymbol);
- BOOL getPrependCurrSym() const { return m_bPrependCurrSym; }
- void setPrependCurrSym(BOOL _bPrepend);
+ BOOL getPrependCurrSym() const { return m_bPrependCurrSym; }
+ void setPrependCurrSym(BOOL _bPrepend);
protected:
virtual void FormatChanged(FORMAT_CHANGE_TYPE nWhat);
diff --git a/svtools/inc/svtools/generictoolboxcontroller.hxx b/svtools/inc/svtools/generictoolboxcontroller.hxx
index 2e1aaa1a0cf1..166d4bfb475b 100644
--- a/svtools/inc/svtools/generictoolboxcontroller.hxx
+++ b/svtools/inc/svtools/generictoolboxcontroller.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#define __SVTOOLS_GENERICTOOLBOXCONTROLLER_HXX_
//_________________________________________________________________________________________________________________
-// includes of other projects
+// includes of other projects
//_________________________________________________________________________________________________________________
#include "svtools/svtdllapi.h"
@@ -44,7 +44,7 @@ struct ExecuteInfo;
class SVT_DLLPUBLIC GenericToolboxController : public svt::ToolboxController
{
public:
- GenericToolboxController( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager,
+ GenericToolboxController( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rServiceManager,
const com::sun::star::uno::Reference< com::sun::star::frame::XFrame >& rFrame,
ToolBox* pToolBox,
USHORT nID,
@@ -55,12 +55,12 @@ class SVT_DLLPUBLIC GenericToolboxController : public svt::ToolboxController
virtual void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException );
// XToolbarController
- virtual void SAL_CALL execute( sal_Int16 KeyModifier ) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL execute( sal_Int16 KeyModifier ) throw (::com::sun::star::uno::RuntimeException);
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
- DECL_STATIC_LINK( GenericToolboxController, ExecuteHdl_Impl, ExecuteInfo* );
+ DECL_STATIC_LINK( GenericToolboxController, ExecuteHdl_Impl, ExecuteInfo* );
private:
ToolBox* m_pToolbox;
diff --git a/svtools/inc/svtools/genericunodialog.hxx b/svtools/inc/svtools/genericunodialog.hxx
index fd4154816402..26fc3fc0946e 100644
--- a/svtools/inc/svtools/genericunodialog.hxx
+++ b/svtools/inc/svtools/genericunodialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,20 +59,20 @@ namespace svt
//.........................................................................
//=========================================================================
-#define UNODIALOG_PROPERTY_ID_TITLE 1
-#define UNODIALOG_PROPERTY_ID_PARENT 2
+#define UNODIALOG_PROPERTY_ID_TITLE 1
+#define UNODIALOG_PROPERTY_ID_PARENT 2
-#define UNODIALOG_PROPERTY_TITLE "Title"
-#define UNODIALOG_PROPERTY_PARENT "ParentWindow"
+#define UNODIALOG_PROPERTY_TITLE "Title"
+#define UNODIALOG_PROPERTY_PARENT "ParentWindow"
//=========================================================================
- typedef ::cppu::WeakImplHelper3 < com::sun::star::ui::dialogs::XExecutableDialog
- , com::sun::star::lang::XServiceInfo
- , com::sun::star::lang::XInitialization
- > OGenericUnoDialogBase;
+ typedef ::cppu::WeakImplHelper3 < com::sun::star::ui::dialogs::XExecutableDialog
+ , com::sun::star::lang::XServiceInfo
+ , com::sun::star::lang::XInitialization
+ > OGenericUnoDialogBase;
- /** abstract base class for implementing UNO objects representing dialogs (<type scope="com.sun.star.awt">XDialog</type>)
+ /** abstract base class for implementing UNO objects representing dialogs (<type scope="com.sun.star.awt">XDialog</type>)
*/
class SVT_DLLPUBLIC OGenericUnoDialog
:public OGenericUnoDialogBase
@@ -80,19 +80,19 @@ namespace svt
,public ::comphelper::OPropertyContainer
{
private:
- ::osl::Mutex m_aExecutionMutex; /// acess safety for execute/cancel
+ ::osl::Mutex m_aExecutionMutex; /// acess safety for execute/cancel
protected:
- Dialog* m_pDialog; /// the dialog to execute
- sal_Bool m_bExecuting : 1; /// we're currently executing the dialog
- sal_Bool m_bCanceled : 1; /// endDialog was called while we were executing
- sal_Bool m_bTitleAmbiguous : 1; /// m_sTitle has not been set yet
+ Dialog* m_pDialog; /// the dialog to execute
+ sal_Bool m_bExecuting : 1; /// we're currently executing the dialog
+ sal_Bool m_bCanceled : 1; /// endDialog was called while we were executing
+ sal_Bool m_bTitleAmbiguous : 1; /// m_sTitle has not been set yet
bool m_bInitialized : 1; /// has "initialize" been called?
bool m_bNeedInitialization : 1; /// do we need to be initialized before any other API call is allowed?
// <properties>
- ::rtl::OUString m_sTitle; /// title of the dialog
- com::sun::star::uno::Reference<com::sun::star::awt::XWindow> m_xParent; /// parent window
+ ::rtl::OUString m_sTitle; /// title of the dialog
+ com::sun::star::uno::Reference<com::sun::star::awt::XWindow> m_xParent; /// parent window
// </properties>
::comphelper::ComponentContext m_aContext;
@@ -133,15 +133,15 @@ namespace svt
protected:
/** create the concret dialog instance. note that m_aMutex is not locked when this method get's called,
but the application-wide solar mutex is (to guard the not thread-safe ctor of the dialog).
- @param pParent the parent window for the new dialog
+ @param pParent the parent window for the new dialog
*/
- virtual Dialog* createDialog(Window* _pParent) = 0;
+ virtual Dialog* createDialog(Window* _pParent) = 0;
/// called to destroy the dialog used. the default implementation just deletes m_pDialog and resets it to NULL
virtual void destroyDialog();
- /** called after the dialog has been executed
- @param _nExecutionResult the execution result as returned by Dialog::Execute
+ /** called after the dialog has been executed
+ @param _nExecutionResult the execution result as returned by Dialog::Execute
*/
virtual void executedDialog(sal_Int16 /*_nExecutionResult*/) { }
@@ -188,7 +188,7 @@ namespace svt
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // _SVT_GENERICUNODIALOG_HXX_
diff --git a/svtools/inc/svtools/grfmgr.hxx b/svtools/inc/svtools/grfmgr.hxx
index 3eee508e5d70..dc833be1aa09 100644
--- a/svtools/inc/svtools/grfmgr.hxx
+++ b/svtools/inc/svtools/grfmgr.hxx
@@ -36,34 +36,34 @@
// - Defines -
// -----------
-#define GRFMGR_DRAW_NOTCACHED 0x00000000UL
-#define GRFMGR_DRAW_CACHED 0x00000001UL
-#define GRFMGR_DRAW_BILINEAR 0x00000002UL
-#define GRFMGR_DRAW_USE_DRAWMODE_SETTINGS 0x00000004UL
-#define GRFMGR_DRAW_SUBSTITUTE 0x00000008UL
-#define GRFMGR_DRAW_NO_SUBSTITUTE 0x00000010UL
-#define GRFMGR_DRAW_STANDARD (GRFMGR_DRAW_CACHED|GRFMGR_DRAW_BILINEAR)
+#define GRFMGR_DRAW_NOTCACHED 0x00000000UL
+#define GRFMGR_DRAW_CACHED 0x00000001UL
+#define GRFMGR_DRAW_BILINEAR 0x00000002UL
+#define GRFMGR_DRAW_USE_DRAWMODE_SETTINGS 0x00000004UL
+#define GRFMGR_DRAW_SUBSTITUTE 0x00000008UL
+#define GRFMGR_DRAW_NO_SUBSTITUTE 0x00000010UL
+#define GRFMGR_DRAW_STANDARD (GRFMGR_DRAW_CACHED|GRFMGR_DRAW_BILINEAR)
// --------------------
// - AutoSwap Defines -
// --------------------
-#define GRFMGR_AUTOSWAPSTREAM_LINK ((SvStream*)0x00000000UL)
-#define GRFMGR_AUTOSWAPSTREAM_LOADED ((SvStream*)0xfffffffdUL)
-#define GRFMGR_AUTOSWAPSTREAM_TEMP ((SvStream*)0xfffffffeUL)
-#define GRFMGR_AUTOSWAPSTREAM_NONE ((SvStream*)0xffffffffUL)
+#define GRFMGR_AUTOSWAPSTREAM_LINK ((SvStream*)0x00000000UL)
+#define GRFMGR_AUTOSWAPSTREAM_LOADED ((SvStream*)0xfffffffdUL)
+#define GRFMGR_AUTOSWAPSTREAM_TEMP ((SvStream*)0xfffffffeUL)
+#define GRFMGR_AUTOSWAPSTREAM_NONE ((SvStream*)0xffffffffUL)
// ----------------------
// - Adjustment Defines -
// ----------------------
-#define ADJUSTMENT_NONE 0x00000000UL
-#define ADJUSTMENT_DRAWMODE 0x00000001UL
-#define ADJUSTMENT_COLORS 0x00000002UL
-#define ADJUSTMENT_MIRROR 0x00000004UL
-#define ADJUSTMENT_ROTATE 0x00000008UL
-#define ADJUSTMENT_TRANSPARENCY 0x00000010UL
-#define ADJUSTMENT_ALL 0xFFFFFFFFUL
+#define ADJUSTMENT_NONE 0x00000000UL
+#define ADJUSTMENT_DRAWMODE 0x00000001UL
+#define ADJUSTMENT_COLORS 0x00000002UL
+#define ADJUSTMENT_MIRROR 0x00000004UL
+#define ADJUSTMENT_ROTATE 0x00000008UL
+#define ADJUSTMENT_TRANSPARENCY 0x00000010UL
+#define ADJUSTMENT_ALL 0xFFFFFFFFUL
// ---------
// - Enums -
@@ -97,87 +97,87 @@ class SVT_DLLPUBLIC GraphicAttr
{
private:
- long mnDummy1;
- long mnDummy2;
- double mfGamma;
- sal_uInt32 mnMirrFlags;
- long mnLeftCrop;
- long mnTopCrop;
- long mnRightCrop;
- long mnBottomCrop;
- USHORT mnRotate10;
- short mnContPercent;
- short mnLumPercent;
- short mnRPercent;
- short mnGPercent;
- short mnBPercent;
- BOOL mbInvert;
- BYTE mcTransparency;
- GraphicDrawMode meDrawMode;
-
- void* mpDummy;
+ long mnDummy1;
+ long mnDummy2;
+ double mfGamma;
+ sal_uInt32 mnMirrFlags;
+ long mnLeftCrop;
+ long mnTopCrop;
+ long mnRightCrop;
+ long mnBottomCrop;
+ USHORT mnRotate10;
+ short mnContPercent;
+ short mnLumPercent;
+ short mnRPercent;
+ short mnGPercent;
+ short mnBPercent;
+ BOOL mbInvert;
+ BYTE mcTransparency;
+ GraphicDrawMode meDrawMode;
+
+ void* mpDummy;
public:
GraphicAttr();
~GraphicAttr();
- BOOL operator==( const GraphicAttr& rAttr ) const;
- BOOL operator!=( const GraphicAttr& rAttr ) const { return !( *this == rAttr ); }
+ BOOL operator==( const GraphicAttr& rAttr ) const;
+ BOOL operator!=( const GraphicAttr& rAttr ) const { return !( *this == rAttr ); }
- void SetDrawMode( GraphicDrawMode eDrawMode ) { meDrawMode = eDrawMode; }
- GraphicDrawMode GetDrawMode() const { return meDrawMode; }
+ void SetDrawMode( GraphicDrawMode eDrawMode ) { meDrawMode = eDrawMode; }
+ GraphicDrawMode GetDrawMode() const { return meDrawMode; }
- void SetMirrorFlags( ULONG nMirrFlags ) { mnMirrFlags = nMirrFlags; }
- ULONG GetMirrorFlags() const { return mnMirrFlags; }
+ void SetMirrorFlags( ULONG nMirrFlags ) { mnMirrFlags = nMirrFlags; }
+ ULONG GetMirrorFlags() const { return mnMirrFlags; }
- void SetCrop( long nLeft_100TH_MM, long nTop_100TH_MM, long nRight_100TH_MM, long nBottom_100TH_MM )
+ void SetCrop( long nLeft_100TH_MM, long nTop_100TH_MM, long nRight_100TH_MM, long nBottom_100TH_MM )
{
mnLeftCrop = nLeft_100TH_MM; mnTopCrop = nTop_100TH_MM;
mnRightCrop = nRight_100TH_MM; mnBottomCrop = nBottom_100TH_MM;
}
- long GetLeftCrop() const { return mnLeftCrop; }
- long GetTopCrop() const { return mnTopCrop; }
- long GetRightCrop() const { return mnRightCrop; }
- long GetBottomCrop() const { return mnBottomCrop; }
+ long GetLeftCrop() const { return mnLeftCrop; }
+ long GetTopCrop() const { return mnTopCrop; }
+ long GetRightCrop() const { return mnRightCrop; }
+ long GetBottomCrop() const { return mnBottomCrop; }
- void SetRotation( USHORT nRotate10 ) { mnRotate10 = nRotate10; }
- USHORT GetRotation() const { return mnRotate10; }
+ void SetRotation( USHORT nRotate10 ) { mnRotate10 = nRotate10; }
+ USHORT GetRotation() const { return mnRotate10; }
- void SetLuminance( short nLuminancePercent ) { mnLumPercent = nLuminancePercent; }
- short GetLuminance() const { return mnLumPercent; }
+ void SetLuminance( short nLuminancePercent ) { mnLumPercent = nLuminancePercent; }
+ short GetLuminance() const { return mnLumPercent; }
- void SetContrast( short nContrastPercent ) { mnContPercent = nContrastPercent; }
- short GetContrast() const { return mnContPercent; }
+ void SetContrast( short nContrastPercent ) { mnContPercent = nContrastPercent; }
+ short GetContrast() const { return mnContPercent; }
- void SetChannelR( short nChannelRPercent ) { mnRPercent = nChannelRPercent; }
- short GetChannelR() const { return mnRPercent; }
+ void SetChannelR( short nChannelRPercent ) { mnRPercent = nChannelRPercent; }
+ short GetChannelR() const { return mnRPercent; }
- void SetChannelG( short nChannelGPercent ) { mnGPercent = nChannelGPercent; }
- short GetChannelG() const { return mnGPercent; }
+ void SetChannelG( short nChannelGPercent ) { mnGPercent = nChannelGPercent; }
+ short GetChannelG() const { return mnGPercent; }
- void SetChannelB( short nChannelBPercent ) { mnBPercent = nChannelBPercent; }
- short GetChannelB() const { return mnBPercent; }
+ void SetChannelB( short nChannelBPercent ) { mnBPercent = nChannelBPercent; }
+ short GetChannelB() const { return mnBPercent; }
- void SetGamma( double fGamma ) { mfGamma = fGamma; }
- double GetGamma() const { return mfGamma; }
+ void SetGamma( double fGamma ) { mfGamma = fGamma; }
+ double GetGamma() const { return mfGamma; }
- void SetInvert( BOOL bInvert ) { mbInvert = bInvert; }
- BOOL IsInvert() const { return mbInvert; }
+ void SetInvert( BOOL bInvert ) { mbInvert = bInvert; }
+ BOOL IsInvert() const { return mbInvert; }
- void SetTransparency( BYTE cTransparency ) { mcTransparency = cTransparency; }
- BYTE GetTransparency() const { return mcTransparency; }
+ void SetTransparency( BYTE cTransparency ) { mcTransparency = cTransparency; }
+ BYTE GetTransparency() const { return mcTransparency; }
- BOOL IsSpecialDrawMode() const { return( meDrawMode != GRAPHICDRAWMODE_STANDARD ); }
- BOOL IsMirrored() const { return( mnMirrFlags != 0UL ); }
- BOOL IsCropped() const
+ BOOL IsSpecialDrawMode() const { return( meDrawMode != GRAPHICDRAWMODE_STANDARD ); }
+ BOOL IsMirrored() const { return( mnMirrFlags != 0UL ); }
+ BOOL IsCropped() const
{
return( mnLeftCrop != 0 || mnTopCrop != 0 ||
mnRightCrop != 0 || mnBottomCrop != 0 );
}
- BOOL IsRotated() const { return( ( mnRotate10 % 3600 ) != 0 ); }
- BOOL IsTransparent() const { return( mcTransparency > 0 ); }
- BOOL IsAdjusted() const
+ BOOL IsRotated() const { return( ( mnRotate10 % 3600 ) != 0 ); }
+ BOOL IsTransparent() const { return( mcTransparency > 0 ); }
+ BOOL IsAdjusted() const
{
return( mnLumPercent != 0 || mnContPercent != 0 || mnRPercent != 0 ||
mnGPercent != 0 || mnBPercent != 0 || mfGamma != 1.0 || mbInvert );
@@ -197,40 +197,40 @@ class SVT_DLLPUBLIC GraphicObject : public SvDataCopyStream
private:
- static GraphicManager* mpGlobalMgr;
-
- Graphic maGraphic;
- GraphicAttr maAttr;
- Size maPrefSize;
- MapMode maPrefMapMode;
- ULONG mnSizeBytes;
- GraphicType meType;
- GraphicManager* mpMgr;
- String* mpLink;
- Link* mpSwapStreamHdl;
- String* mpUserData;
- Timer* mpSwapOutTimer;
- GrfSimpleCacheObj* mpSimpleCache;
+ static GraphicManager* mpGlobalMgr;
+
+ Graphic maGraphic;
+ GraphicAttr maAttr;
+ Size maPrefSize;
+ MapMode maPrefMapMode;
+ ULONG mnSizeBytes;
+ GraphicType meType;
+ GraphicManager* mpMgr;
+ String* mpLink;
+ Link* mpSwapStreamHdl;
+ String* mpUserData;
+ Timer* mpSwapOutTimer;
+ GrfSimpleCacheObj* mpSimpleCache;
ULONG mnAnimationLoopCount;
void* mpDummy1;
void* mpDummy2;
- BOOL mbAutoSwapped : 1;
- BOOL mbTransparent : 1;
- BOOL mbAnimated : 1;
- BOOL mbEPS : 1;
- BOOL mbIsInSwapIn : 1;
- BOOL mbIsInSwapOut : 1;
- BOOL mbAlpha : 1;
- BOOL mbDummyFlag8 : 1;
-
- void SVT_DLLPRIVATE ImplConstruct();
- void SVT_DLLPRIVATE ImplAssignGraphicData();
- void SVT_DLLPRIVATE ImplSetGraphicManager( const GraphicManager* pMgr,
+ BOOL mbAutoSwapped : 1;
+ BOOL mbTransparent : 1;
+ BOOL mbAnimated : 1;
+ BOOL mbEPS : 1;
+ BOOL mbIsInSwapIn : 1;
+ BOOL mbIsInSwapOut : 1;
+ BOOL mbAlpha : 1;
+ BOOL mbDummyFlag8 : 1;
+
+ void SVT_DLLPRIVATE ImplConstruct();
+ void SVT_DLLPRIVATE ImplAssignGraphicData();
+ void SVT_DLLPRIVATE ImplSetGraphicManager( const GraphicManager* pMgr,
const ByteString* pID = NULL,
const GraphicObject* pCopyObj = NULL );
- void SVT_DLLPRIVATE ImplAutoSwapIn();
- BOOL SVT_DLLPRIVATE ImplIsAutoSwapped() const { return mbAutoSwapped; }
- BOOL SVT_DLLPRIVATE ImplGetCropParams( OutputDevice* pOut, Point& rPt, Size& rSz, const GraphicAttr* pAttr,
+ void SVT_DLLPRIVATE ImplAutoSwapIn();
+ BOOL SVT_DLLPRIVATE ImplIsAutoSwapped() const { return mbAutoSwapped; }
+ BOOL SVT_DLLPRIVATE ImplGetCropParams( OutputDevice* pOut, Point& rPt, Size& rSz, const GraphicAttr* pAttr,
PolyPolygon& rClipPolyPoly, BOOL& bRectClipRegion ) const;
/** Render a given number of tiles in an optimized way
@@ -274,47 +274,47 @@ private:
@return true, if everything was successfully rendered.
*/
- bool SVT_DLLPRIVATE ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
+ bool SVT_DLLPRIVATE ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
int nNumTilesX, int nNumTilesY,
const Size& rTileSizePixel,
const GraphicAttr* pAttr, ULONG nFlags );
/// internally called by ImplRenderTempTile()
- bool SVT_DLLPRIVATE ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent, int nMSBFactor,
+ bool SVT_DLLPRIVATE ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent, int nMSBFactor,
int nNumOrigTilesX, int nNumOrigTilesY,
int nRemainderTilesX, int nRemainderTilesY,
const Size& rTileSizePixel, const GraphicAttr* pAttr,
ULONG nFlags, ImplTileInfo& rTileInfo );
- bool SVT_DLLPRIVATE ImplDrawTiled( OutputDevice* pOut, const Rectangle& rArea, const Size& rSizePixel,
+ bool SVT_DLLPRIVATE ImplDrawTiled( OutputDevice* pOut, const Rectangle& rArea, const Size& rSizePixel,
const Size& rOffset, const GraphicAttr* pAttr, ULONG nFlags, int nTileCacheSize1D );
- bool SVT_DLLPRIVATE ImplDrawTiled( OutputDevice& rOut, const Point& rPos,
+ bool SVT_DLLPRIVATE ImplDrawTiled( OutputDevice& rOut, const Point& rPos,
int nNumTilesX, int nNumTilesY,
const Size& rTileSize,
const GraphicAttr* pAttr, ULONG nFlags );
- void SVT_DLLPRIVATE ImplTransformBitmap( BitmapEx& rBmpEx,
+ void SVT_DLLPRIVATE ImplTransformBitmap( BitmapEx& rBmpEx,
const GraphicAttr& rAttr,
- const Size& rCropLeftTop,
- const Size& rCropRightBottom,
- const Rectangle& rCropRect,
- const Size& rDstSize,
- BOOL bEnlarge ) const;
+ const Size& rCropLeftTop,
+ const Size& rCropRightBottom,
+ const Rectangle& rCropRect,
+ const Size& rDstSize,
+ BOOL bEnlarge ) const;
DECL_LINK( ImplAutoSwapOutHdl, void* );
protected:
- virtual void GraphicManagerDestroyed();
- virtual SvStream* GetSwapStream() const;
+ virtual void GraphicManagerDestroyed();
+ virtual SvStream* GetSwapStream() const;
// !!! to be removed
- virtual ULONG GetReleaseFromCache() const;
+ virtual ULONG GetReleaseFromCache() const;
- virtual void Load( SvStream& );
- virtual void Save( SvStream& );
- virtual void Assign( const SvDataCopyStream& );
+ virtual void Load( SvStream& );
+ virtual void Save( SvStream& );
+ virtual void Assign( const SvDataCopyStream& );
public:
@@ -327,29 +327,29 @@ public:
GraphicObject( const ByteString& rUniqueID, const GraphicManager* pMgr = NULL );
~GraphicObject();
- GraphicObject& operator=( const GraphicObject& rCacheObj );
- BOOL operator==( const GraphicObject& rCacheObj ) const;
- BOOL operator!=( const GraphicObject& rCacheObj ) const { return !( *this == rCacheObj ); }
+ GraphicObject& operator=( const GraphicObject& rCacheObj );
+ BOOL operator==( const GraphicObject& rCacheObj ) const;
+ BOOL operator!=( const GraphicObject& rCacheObj ) const { return !( *this == rCacheObj ); }
- BOOL HasSwapStreamHdl() const { return( mpSwapStreamHdl != NULL && mpSwapStreamHdl->IsSet() ); }
- void SetSwapStreamHdl();
- void SetSwapStreamHdl( const Link& rHdl, const ULONG nSwapOutTimeout = 0UL );
- Link GetSwapStreamHdl() const;
- ULONG GetSwapOutTimeout() const { return( mpSwapOutTimer ? mpSwapOutTimer->GetTimeout() : 0 ); }
+ BOOL HasSwapStreamHdl() const { return( mpSwapStreamHdl != NULL && mpSwapStreamHdl->IsSet() ); }
+ void SetSwapStreamHdl();
+ void SetSwapStreamHdl( const Link& rHdl, const ULONG nSwapOutTimeout = 0UL );
+ Link GetSwapStreamHdl() const;
+ ULONG GetSwapOutTimeout() const { return( mpSwapOutTimer ? mpSwapOutTimer->GetTimeout() : 0 ); }
- void FireSwapInRequest();
- void FireSwapOutRequest();
+ void FireSwapInRequest();
+ void FireSwapOutRequest();
- void SetGraphicManager( const GraphicManager& rMgr );
- GraphicManager& GetGraphicManager() const { return *mpMgr; }
+ void SetGraphicManager( const GraphicManager& rMgr );
+ GraphicManager& GetGraphicManager() const { return *mpMgr; }
- BOOL IsCached( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL IsCached( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicAttr* pAttr = NULL, ULONG nFlags = GRFMGR_DRAW_STANDARD) const;
- void ReleaseFromCache();
+ void ReleaseFromCache();
- const Graphic& GetGraphic() const;
- void SetGraphic( const Graphic& rGraphic, const GraphicObject* pCopyObj = 0);
- void SetGraphic( const Graphic& rGraphic, const String& rLink );
+ const Graphic& GetGraphic() const;
+ void SetGraphic( const Graphic& rGraphic, const GraphicObject* pCopyObj = 0);
+ void SetGraphic( const Graphic& rGraphic, const String& rLink );
/** Get graphic transformed according to given attributes
@@ -376,51 +376,51 @@ public:
@return the readily transformed Graphic
*/
- Graphic GetTransformedGraphic( const Size& rDestSize, const MapMode& rDestMap, const GraphicAttr& rAttr ) const;
- Graphic GetTransformedGraphic( const GraphicAttr* pAttr = NULL ) const; // TODO: Change to Impl
-
- void SetAttr( const GraphicAttr& rAttr );
- const GraphicAttr& GetAttr() const { return maAttr; }
-
- BOOL HasLink() const { return( mpLink != NULL && mpLink->Len() > 0 ); }
- void SetLink();
- void SetLink( const String& rLink );
- String GetLink() const;
-
- BOOL HasUserData() const { return( mpUserData != NULL && mpUserData->Len() > 0 ); }
- void SetUserData();
- void SetUserData( const String& rUserData );
- String GetUserData() const;
-
- ByteString GetUniqueID() const;
-
- GraphicType GetType() const { return meType; }
- const Size& GetPrefSize() const { return maPrefSize; }
- const MapMode& GetPrefMapMode() const { return maPrefMapMode; }
- ULONG GetSizeBytes() const { return mnSizeBytes; }
- ULONG GetChecksum() const;
- BOOL IsTransparent() const { return mbTransparent; }
- BOOL IsAlpha() const { return mbAlpha; }
- BOOL IsAnimated() const { return mbAnimated; }
- BOOL IsEPS() const { return mbEPS; }
-
- void ResetAnimationLoopCount();
- List* GetAnimationInfoList() const;
- Link GetAnimationNotifyHdl() const { return maGraphic.GetAnimationNotifyHdl(); }
- void SetAnimationNotifyHdl( const Link& rLink );
-
- BOOL SwapOut();
- BOOL SwapOut( SvStream* pOStm );
- BOOL SwapIn();
- BOOL SwapIn( SvStream* pIStm );
-
- BOOL IsInSwapIn() const { return mbIsInSwapIn; }
- BOOL IsInSwapOut() const { return mbIsInSwapOut; }
- BOOL IsInSwap() const { return( mbIsInSwapOut || mbIsInSwapOut ); }
- BOOL IsSwappedOut() const { return( mbAutoSwapped || maGraphic.IsSwapOut() ); }
- void SetSwapState();
-
- BOOL Draw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ Graphic GetTransformedGraphic( const Size& rDestSize, const MapMode& rDestMap, const GraphicAttr& rAttr ) const;
+ Graphic GetTransformedGraphic( const GraphicAttr* pAttr = NULL ) const; // TODO: Change to Impl
+
+ void SetAttr( const GraphicAttr& rAttr );
+ const GraphicAttr& GetAttr() const { return maAttr; }
+
+ BOOL HasLink() const { return( mpLink != NULL && mpLink->Len() > 0 ); }
+ void SetLink();
+ void SetLink( const String& rLink );
+ String GetLink() const;
+
+ BOOL HasUserData() const { return( mpUserData != NULL && mpUserData->Len() > 0 ); }
+ void SetUserData();
+ void SetUserData( const String& rUserData );
+ String GetUserData() const;
+
+ ByteString GetUniqueID() const;
+
+ GraphicType GetType() const { return meType; }
+ const Size& GetPrefSize() const { return maPrefSize; }
+ const MapMode& GetPrefMapMode() const { return maPrefMapMode; }
+ ULONG GetSizeBytes() const { return mnSizeBytes; }
+ ULONG GetChecksum() const;
+ BOOL IsTransparent() const { return mbTransparent; }
+ BOOL IsAlpha() const { return mbAlpha; }
+ BOOL IsAnimated() const { return mbAnimated; }
+ BOOL IsEPS() const { return mbEPS; }
+
+ void ResetAnimationLoopCount();
+ List* GetAnimationInfoList() const;
+ Link GetAnimationNotifyHdl() const { return maGraphic.GetAnimationNotifyHdl(); }
+ void SetAnimationNotifyHdl( const Link& rLink );
+
+ BOOL SwapOut();
+ BOOL SwapOut( SvStream* pOStm );
+ BOOL SwapIn();
+ BOOL SwapIn( SvStream* pIStm );
+
+ BOOL IsInSwapIn() const { return mbIsInSwapIn; }
+ BOOL IsInSwapOut() const { return mbIsInSwapOut; }
+ BOOL IsInSwap() const { return( mbIsInSwapOut || mbIsInSwapOut ); }
+ BOOL IsSwappedOut() const { return( mbAutoSwapped || maGraphic.IsSwapOut() ); }
+ void SetSwapState();
+
+ BOOL Draw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicAttr* pAttr = NULL, ULONG nFlags = GRFMGR_DRAW_STANDARD );
BOOL DrawWithPDFHandling( OutputDevice& rOutDev,
@@ -461,18 +461,18 @@ public:
@return TRUE, if drawing completed successfully
*/
- BOOL DrawTiled( OutputDevice* pOut, const Rectangle& rArea, const Size& rSize,
+ BOOL DrawTiled( OutputDevice* pOut, const Rectangle& rArea, const Size& rSize,
const Size& rOffset, const GraphicAttr* pAttr = NULL,
ULONG nFlags = GRFMGR_DRAW_STANDARD, int nTileCacheSize1D=128 );
- BOOL StartAnimation( OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData = 0L,
+ BOOL StartAnimation( OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData = 0L,
const GraphicAttr* pAttr = NULL, ULONG nFlags = GRFMGR_DRAW_STANDARD,
OutputDevice* pFirstFrameOutDev = NULL );
- void StopAnimation( OutputDevice* pOut = NULL, long nExtraData = 0L );
+ void StopAnimation( OutputDevice* pOut = NULL, long nExtraData = 0L );
- friend SvStream& operator<<( SvStream& rOStm, const GraphicObject& rGraphicObj );
- friend SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj );
+ friend SvStream& operator<<( SvStream& rOStm, const GraphicObject& rGraphicObj );
+ friend SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj );
static GraphicObject CreateGraphicObjectFromURL( const ::rtl::OUString &rURL );
};
@@ -488,18 +488,18 @@ class SVT_DLLPUBLIC GraphicManager
private:
- List maObjList;
- GraphicCache* mpCache;
+ List maObjList;
+ GraphicCache* mpCache;
GraphicManager( const GraphicManager& ) {}
- GraphicManager& operator=( const GraphicManager& ) { return *this; }
+ GraphicManager& operator=( const GraphicManager& ) { return *this; }
- BOOL SVT_DLLPRIVATE ImplDraw( OutputDevice* pOut, const Point& rPt,
+ BOOL SVT_DLLPRIVATE ImplDraw( OutputDevice* pOut, const Point& rPt,
const Size& rSz, GraphicObject& rObj,
const GraphicAttr& rAttr,
const ULONG nFlags, BOOL& rCached );
- BOOL SVT_DLLPRIVATE ImplCreateOutput( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL SVT_DLLPRIVATE ImplCreateOutput( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const BitmapEx& rBmpEx, const GraphicAttr& rAttr,
const ULONG nFlags, BitmapEx* pBmpEx = NULL );
BOOL SVT_DLLPRIVATE ImplCreateOutput( OutputDevice* pOut,
@@ -507,63 +507,63 @@ private:
const GDIMetaFile& rMtf, const GraphicAttr& rAttr,
const ULONG nFlags, GDIMetaFile& rOutMtf, BitmapEx& rOutBmpEx );
- BOOL SVT_DLLPRIVATE ImplCreateScaled( const BitmapEx& rBmpEx,
+ BOOL SVT_DLLPRIVATE ImplCreateScaled( const BitmapEx& rBmpEx,
long* pMapIX, long* pMapFX, long* pMapIY, long* pMapFY,
long nStartX, long nEndX, long nStartY, long nEndY,
BitmapEx& rOutBmpEx );
- BOOL SVT_DLLPRIVATE ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
+ BOOL SVT_DLLPRIVATE ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
USHORT nRot10, const Size& rOutSzPix, const Size& rUntSzPix,
long* pMapIX, long* pMapFX, long* pMapIY, long* pMapFY,
long nStartX, long nEndX, long nStartY, long nEndY,
BitmapEx& rOutBmpEx );
- static void SVT_DLLPRIVATE ImplAdjust( BitmapEx& rBmpEx, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
- static void SVT_DLLPRIVATE ImplAdjust( GDIMetaFile& rMtf, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
- static void SVT_DLLPRIVATE ImplAdjust( Animation& rAnimation, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
+ static void SVT_DLLPRIVATE ImplAdjust( BitmapEx& rBmpEx, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
+ static void SVT_DLLPRIVATE ImplAdjust( GDIMetaFile& rMtf, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
+ static void SVT_DLLPRIVATE ImplAdjust( Animation& rAnimation, const GraphicAttr& rAttr, ULONG nAdjustmentFlags );
- static void SVT_DLLPRIVATE ImplDraw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ static void SVT_DLLPRIVATE ImplDraw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GDIMetaFile& rMtf, const GraphicAttr& rAttr );
// Only used by GraphicObject's Ctor's and Dtor's
- void SVT_DLLPRIVATE ImplRegisterObj( const GraphicObject& rObj, Graphic& rSubstitute,
+ void SVT_DLLPRIVATE ImplRegisterObj( const GraphicObject& rObj, Graphic& rSubstitute,
const ByteString* pID = NULL,
const GraphicObject* pCopyObj = NULL );
- void SVT_DLLPRIVATE ImplUnregisterObj( const GraphicObject& rObj );
- inline BOOL SVT_DLLPRIVATE ImplHasObjects() const { return( maObjList.Count() > 0UL ); }
+ void SVT_DLLPRIVATE ImplUnregisterObj( const GraphicObject& rObj );
+ inline BOOL SVT_DLLPRIVATE ImplHasObjects() const { return( maObjList.Count() > 0UL ); }
// Only used in swap case by GraphicObject
- void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedOut( const GraphicObject& rObj );
- BOOL SVT_DLLPRIVATE ImplFillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
- void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedIn( const GraphicObject& rObj );
+ void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedOut( const GraphicObject& rObj );
+ BOOL SVT_DLLPRIVATE ImplFillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
+ void SVT_DLLPRIVATE ImplGraphicObjectWasSwappedIn( const GraphicObject& rObj );
- ByteString SVT_DLLPRIVATE ImplGetUniqueID( const GraphicObject& rObj ) const;
+ ByteString SVT_DLLPRIVATE ImplGetUniqueID( const GraphicObject& rObj ) const;
public:
GraphicManager( ULONG nCacheSize = 10000000UL, ULONG nMaxObjCacheSize = 2400000UL );
~GraphicManager();
- void SetMaxCacheSize( ULONG nNewCacheSize );
- ULONG GetMaxCacheSize() const;
+ void SetMaxCacheSize( ULONG nNewCacheSize );
+ ULONG GetMaxCacheSize() const;
- void SetMaxObjCacheSize( ULONG nNewMaxObjSize, BOOL bDestroyGreaterCached = FALSE );
- ULONG GetMaxObjCacheSize() const;
+ void SetMaxObjCacheSize( ULONG nNewMaxObjSize, BOOL bDestroyGreaterCached = FALSE );
+ ULONG GetMaxObjCacheSize() const;
- ULONG GetUsedCacheSize() const;
- ULONG GetFreeCacheSize() const;
+ ULONG GetUsedCacheSize() const;
+ ULONG GetFreeCacheSize() const;
void SetCacheTimeout( ULONG nTimeoutSeconds );
ULONG GetCacheTimeout() const;
- void ClearCache();
+ void ClearCache();
- void ReleaseFromCache( const GraphicObject& rObj );
+ void ReleaseFromCache( const GraphicObject& rObj );
- BOOL IsInCache( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL IsInCache( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr ) const;
- BOOL DrawObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL DrawObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
GraphicObject& rObj, const GraphicAttr& rAttr,
const ULONG nFlags, BOOL& rCached );
};
diff --git a/svtools/inc/svtools/headbar.hxx b/svtools/inc/svtools/headbar.hxx
index 5b994503d611..02a83e4f41f9 100644
--- a/svtools/inc/svtools/headbar.hxx
+++ b/svtools/inc/svtools/headbar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,72 +49,72 @@ dieses Control mit einer SvTabListBox zu verbinden.
WinBits
-WB_BORDER Oben und unten wird ein Border gezeichnet
-WB_BOTTOMBORDER Unten wird ein Border gezeichnet
-WB_BUTTONSTYLE Die Items sehen aus wie Buttons, ansonsten sind sie flach
-WB_3DLOOK 3D-Darstellung
-WB_DRAG Items koennen verschoben werden
-WB_STDHEADERBAR WB_BUTTONSTYLE | WB_BOTTOMBORDER
+WB_BORDER Oben und unten wird ein Border gezeichnet
+WB_BOTTOMBORDER Unten wird ein Border gezeichnet
+WB_BUTTONSTYLE Die Items sehen aus wie Buttons, ansonsten sind sie flach
+WB_3DLOOK 3D-Darstellung
+WB_DRAG Items koennen verschoben werden
+WB_STDHEADERBAR WB_BUTTONSTYLE | WB_BOTTOMBORDER
--------------------------------------------------------------------------
ItemBits
-HIB_LEFT Inhalt wird im Item linksbuendig ausgegeben
-HIB_CENTER Inhalt wird im Item zentriert ausgegeben
-HIB_RIGHT Inhalt wird im Item rechtsbuendig ausgegeben
-HIB_TOP Inhalt wird im Item an der oberen Kante ausgegeben
-HIB_VCENTER Inhalt wird im Item vertikal zentiert ausgegeben
-HIB_BOTTOM Inhalt wird im Item an der unteren Kante ausgegeben
-HIB_LEFTIMAGE Bei Text und Image, wird Image links vom Text ausgegeben
-HIB_RIGHTIMAGE Bei Text und Image, wird Image rechts vom Text ausgegeben
-HIB_FIXED Item laesst sich nicht in der Groesse aendern
-HIB_FIXEDPOS Item laesst sich nicht verschieben
-HIB_CLICKABLE Item laesst sich anklicken
+HIB_LEFT Inhalt wird im Item linksbuendig ausgegeben
+HIB_CENTER Inhalt wird im Item zentriert ausgegeben
+HIB_RIGHT Inhalt wird im Item rechtsbuendig ausgegeben
+HIB_TOP Inhalt wird im Item an der oberen Kante ausgegeben
+HIB_VCENTER Inhalt wird im Item vertikal zentiert ausgegeben
+HIB_BOTTOM Inhalt wird im Item an der unteren Kante ausgegeben
+HIB_LEFTIMAGE Bei Text und Image, wird Image links vom Text ausgegeben
+HIB_RIGHTIMAGE Bei Text und Image, wird Image rechts vom Text ausgegeben
+HIB_FIXED Item laesst sich nicht in der Groesse aendern
+HIB_FIXEDPOS Item laesst sich nicht verschieben
+HIB_CLICKABLE Item laesst sich anklicken
(Select-Handler wird erst bei MouseButtonUp gerufen)
-HIB_FLAT Item wird flach dargestellt, auch wenn WB_BUTTONSTYLE gesetzt ist
-HIB_DOWNARROW Es wird ein Pfeil nach unter hinter dem Text ausgegeben,
+HIB_FLAT Item wird flach dargestellt, auch wenn WB_BUTTONSTYLE gesetzt ist
+HIB_DOWNARROW Es wird ein Pfeil nach unter hinter dem Text ausgegeben,
welcher zum Beispiel angezeigt werden sollte, wenn nach
diesem Item eine dazugehoerende Liste absteigend sortiert
ist. Der Status des Pfeils kann mit SetItemBits()
gesetzt/zurueckgesetzt werden.
-HIB_UPARROW Es wird ein Pfeil nach oben hinter dem Text ausgegeben,
+HIB_UPARROW Es wird ein Pfeil nach oben hinter dem Text ausgegeben,
welcher zum Beispiel angezeigt werden sollte, wenn nach
diesem Item eine dazugehoerende Liste aufsteigend sortiert
ist.Der Status des Pfeils kann mit SetItemBits()
gesetzt/zurueckgesetzt werden.
-HIB_USERDRAW Zu diesem Item wird auch der UserDraw-Handler gerufen.
-HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE)
+HIB_USERDRAW Zu diesem Item wird auch der UserDraw-Handler gerufen.
+HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE)
--------------------------------------------------------------------------
Handler
-Select() Wird gerufen, wenn Item angeklickt wird. Wenn
+Select() Wird gerufen, wenn Item angeklickt wird. Wenn
HIB_CLICKABLE beim Item gesetzt ist und nicht HIB_FLAT,
wird der Handler erst im MouseButtonUp-Handler gerufen,
wenn die Maus ueber dem Item losgelassen wurde. Dann
verhaellt sich der Select-Handler wie bei einem
ToolBox-Button.
-DoubleClick() Dieser Handler wird gerufen, wenn ein Item
+DoubleClick() Dieser Handler wird gerufen, wenn ein Item
doppelt geklickt wird. Ob das Item oder der
Trenner angeklickt wurden, kann mit IsItemMode()
abgefragt werden. Wenn ein Trenner doppelt angeklickt
wird, sollte normalerweise die optimale Spaltenbreite
berechnet werden und diese gesetzt werden.
-StartDrag() Dieser Handler wird gerufen, wenn Draggen gestartet
+StartDrag() Dieser Handler wird gerufen, wenn Draggen gestartet
wird, bzw. wenn ein Item angeklickt wurde.
In diesem Handler sollte spaetestens mit SetDragSize()
die Groesse der Size-Linie gesetzt werden, wenn
IsItemMode() FALSE zurueckliefert.
-Drag() Dieser Handler wird gerufen, wenn gedraggt wird. Wenn
+Drag() Dieser Handler wird gerufen, wenn gedraggt wird. Wenn
mit SetDragSize() keine Groesse gesetzt wird, kann
dieser Handler dafuer benutzt werden, um die
Linie im angrenzenden Fenster selber zu zeichnen. Mit
GetDragPos() kann die aktuelle Drag-Position abgefragt
werden. Mit IsItemMode() sollte in diesem Fall
abgefragt werden, ob auch ein Trenner gedraggt wird.
-EndDrag() Dieser Handler wird gerufen, wenn ein Drag-Vorgang
+EndDrag() Dieser Handler wird gerufen, wenn ein Drag-Vorgang
beendet wurde. Wenn im EndDrag-Handler GetCurItemId()
0 zurueckliefert, wurde der Drag-Vorgang abgebrochen.
Wenn dies nicht der Fall ist und IsItemMode() FALSE
@@ -132,25 +132,25 @@ EndDrag() Dieser Handler wird gerufen, wenn ein Drag-Vorgang
Weitere Methoden, die fuer die Handler wichtig sind.
-GetCurItemId() Liefert die Id vom Item zurueck, fuer welches gerade
+GetCurItemId() Liefert die Id vom Item zurueck, fuer welches gerade
der Handler gerufen wurde. Liefert nur eine gueltige
Id in den Handlern Select(), DoubleClick(), StartDrag(),
Drag() und EndDrag(). Im EndDrag-Handler leifert
diese Methode die Id vom gedraggten Item zurueck oder
0, wenn der Drag-Vorgang abgebrochen wurde.
-GetItemDragPos() Liefert die Position zurueck, an der ein Item verschoben
+GetItemDragPos() Liefert die Position zurueck, an der ein Item verschoben
wird bzw. wurde. HEADERBAR_ITEM_NOTFOUND wird
zurueckgeliefert, wenn der Vorgang abgebrochen wurde
oder wenn kein ItemDrag aktiv ist.
-IsItemMode() Mit dieser Methode kann abgefragt werden, ob fuer ein
+IsItemMode() Mit dieser Methode kann abgefragt werden, ob fuer ein
Item oder einen Trenner der Handler gerufen wurde.
- TRUE - Handler wurde fuer das Item gerufen
- FALSE - Handler wurde fuer den Trenner gerufen
-IsItemDrag() Mit dieser Methode kann abgefragt werden, ob ein
+ TRUE - Handler wurde fuer das Item gerufen
+ FALSE - Handler wurde fuer den Trenner gerufen
+IsItemDrag() Mit dieser Methode kann abgefragt werden, ob ein
Item gedragt oder selektiert wurde.
- TRUE - Item wird verschoben
- FALSE - Item wird selektiert
-SetDragSize() Mit dieser Methode wird gesetzt, wir gross der
+ TRUE - Item wird verschoben
+ FALSE - Item wird selektiert
+SetDragSize() Mit dieser Methode wird gesetzt, wir gross der
Trennstrich sein soll, der vom Control gemalt wird.
Dies sollte so gross sein, wie das angrenzende Fenster
hoch ist. Die Hoehe vom HeaderBar wird automatisch
@@ -160,10 +160,10 @@ SetDragSize() Mit dieser Methode wird gesetzt, wir gross der
Weitere Methoden
-SetOffset() Mit dieser Methode wird der Offset gesetzt, ab dem
+SetOffset() Mit dieser Methode wird der Offset gesetzt, ab dem
die Items ausgegeben werden. Dies wird benoetigt,
wenn das dazugehoerige Fenster gescrollt wird.
-CalcWindowSizePixel() Mit dieser Methode kann man die Hoehe des Fensters
+CalcWindowSizePixel() Mit dieser Methode kann man die Hoehe des Fensters
berechnen, damit der Inhalt der Items ausgegeben
werden kann.
@@ -193,9 +193,9 @@ class ImplHeadItemList;
// - WinBits -
// -----------
-#define WB_BOTTOMBORDER ((WinBits)0x0400)
-#define WB_BUTTONSTYLE ((WinBits)0x0800)
-#define WB_STDHEADERBAR (WB_BUTTONSTYLE | WB_BOTTOMBORDER)
+#define WB_BOTTOMBORDER ((WinBits)0x0400)
+#define WB_BUTTONSTYLE ((WinBits)0x0800)
+#define WB_STDHEADERBAR (WB_BUTTONSTYLE | WB_BOTTOMBORDER)
// ---------------------
// - HeaderBarItemBits -
@@ -207,32 +207,32 @@ typedef USHORT HeaderBarItemBits;
// - Bits fuer HeaderBarItems -
// ----------------------------
-#define HIB_LEFT ((HeaderBarItemBits)0x0001)
-#define HIB_CENTER ((HeaderBarItemBits)0x0002)
-#define HIB_RIGHT ((HeaderBarItemBits)0x0004)
-#define HIB_TOP ((HeaderBarItemBits)0x0008)
-#define HIB_VCENTER ((HeaderBarItemBits)0x0010)
-#define HIB_BOTTOM ((HeaderBarItemBits)0x0020)
-#define HIB_LEFTIMAGE ((HeaderBarItemBits)0x0040)
-#define HIB_RIGHTIMAGE ((HeaderBarItemBits)0x0080)
-#define HIB_FIXED ((HeaderBarItemBits)0x0100)
-#define HIB_FIXEDPOS ((HeaderBarItemBits)0x0200)
-#define HIB_CLICKABLE ((HeaderBarItemBits)0x0400)
-#define HIB_FLAT ((HeaderBarItemBits)0x0800)
-#define HIB_DOWNARROW ((HeaderBarItemBits)0x1000)
-#define HIB_UPARROW ((HeaderBarItemBits)0x2000)
-#define HIB_USERDRAW ((HeaderBarItemBits)0x4000)
-#define HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE)
+#define HIB_LEFT ((HeaderBarItemBits)0x0001)
+#define HIB_CENTER ((HeaderBarItemBits)0x0002)
+#define HIB_RIGHT ((HeaderBarItemBits)0x0004)
+#define HIB_TOP ((HeaderBarItemBits)0x0008)
+#define HIB_VCENTER ((HeaderBarItemBits)0x0010)
+#define HIB_BOTTOM ((HeaderBarItemBits)0x0020)
+#define HIB_LEFTIMAGE ((HeaderBarItemBits)0x0040)
+#define HIB_RIGHTIMAGE ((HeaderBarItemBits)0x0080)
+#define HIB_FIXED ((HeaderBarItemBits)0x0100)
+#define HIB_FIXEDPOS ((HeaderBarItemBits)0x0200)
+#define HIB_CLICKABLE ((HeaderBarItemBits)0x0400)
+#define HIB_FLAT ((HeaderBarItemBits)0x0800)
+#define HIB_DOWNARROW ((HeaderBarItemBits)0x1000)
+#define HIB_UPARROW ((HeaderBarItemBits)0x2000)
+#define HIB_USERDRAW ((HeaderBarItemBits)0x4000)
+#define HIB_STDSTYLE (HIB_LEFT | HIB_LEFTIMAGE | HIB_VCENTER | HIB_CLICKABLE)
// -------------------
// - HeaderBar-Types -
// -------------------
-#define HEADERBAR_APPEND ((USHORT)0xFFFF)
-#define HEADERBAR_ITEM_NOTFOUND ((USHORT)0xFFFF)
-#define HEADERBAR_FULLSIZE ((long)1000000000)
+#define HEADERBAR_APPEND ((USHORT)0xFFFF)
+#define HEADERBAR_ITEM_NOTFOUND ((USHORT)0xFFFF)
+#define HEADERBAR_FULLSIZE ((long)1000000000)
-#define HEADERBAR_TEXTOFF 2
+#define HEADERBAR_TEXTOFF 2
// -------------
// - HeaderBar -
@@ -241,30 +241,30 @@ typedef USHORT HeaderBarItemBits;
class SVT_DLLPUBLIC HeaderBar : public Window
{
private:
- ImplHeadItemList* mpItemList;
- long mnBorderOff1;
- long mnBorderOff2;
- long mnOffset;
- long mnDX;
- long mnDY;
- long mnDragSize;
- long mnStartPos;
- long mnDragPos;
- long mnMouseOff;
- USHORT mnCurItemId;
- USHORT mnItemDragPos;
- BOOL mbDragable;
- BOOL mbDrag;
- BOOL mbItemDrag;
- BOOL mbOutDrag;
- BOOL mbButtonStyle;
- BOOL mbItemMode;
- Link maStartDragHdl;
- Link maDragHdl;
- Link maEndDragHdl;
- Link maSelectHdl;
- Link maDoubleClickHdl;
- Link maCreateAccessibleHdl;
+ ImplHeadItemList* mpItemList;
+ long mnBorderOff1;
+ long mnBorderOff2;
+ long mnOffset;
+ long mnDX;
+ long mnDY;
+ long mnDragSize;
+ long mnStartPos;
+ long mnDragPos;
+ long mnMouseOff;
+ USHORT mnCurItemId;
+ USHORT mnItemDragPos;
+ BOOL mbDragable;
+ BOOL mbDrag;
+ BOOL mbItemDrag;
+ BOOL mbOutDrag;
+ BOOL mbButtonStyle;
+ BOOL mbItemMode;
+ Link maStartDragHdl;
+ Link maDragHdl;
+ Link maEndDragHdl;
+ Link maSelectHdl;
+ Link maDoubleClickHdl;
+ Link maCreateAccessibleHdl;
::com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessible >
@@ -272,26 +272,26 @@ private:
#ifdef _SV_HEADBAR_CXX
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle );
- SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
- SVT_DLLPRIVATE long ImplGetItemPos( USHORT nPos ) const;
- SVT_DLLPRIVATE Rectangle ImplGetItemRect( USHORT nPos ) const;
+ SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle );
+ SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ SVT_DLLPRIVATE long ImplGetItemPos( USHORT nPos ) const;
+ SVT_DLLPRIVATE Rectangle ImplGetItemRect( USHORT nPos ) const;
using Window::ImplHitTest;
- SVT_DLLPRIVATE USHORT ImplHitTest( const Point& rPos, long& nMouseOff, USHORT& nPos ) const;
- SVT_DLLPRIVATE void ImplInvertDrag( USHORT nStartPos, USHORT nEndPos );
- SVT_DLLPRIVATE void ImplDrawItem( OutputDevice* pDev,
+ SVT_DLLPRIVATE USHORT ImplHitTest( const Point& rPos, long& nMouseOff, USHORT& nPos ) const;
+ SVT_DLLPRIVATE void ImplInvertDrag( USHORT nStartPos, USHORT nEndPos );
+ SVT_DLLPRIVATE void ImplDrawItem( OutputDevice* pDev,
USHORT nPos, BOOL bHigh, BOOL bDrag,
const Rectangle& rItemRect,
const Rectangle* pRect,
ULONG nFlags );
- SVT_DLLPRIVATE void ImplDrawItem( USHORT nPos, BOOL bHigh = FALSE,
+ SVT_DLLPRIVATE void ImplDrawItem( USHORT nPos, BOOL bHigh = FALSE,
BOOL bDrag = FALSE,
const Rectangle* pRect = NULL );
- SVT_DLLPRIVATE void ImplUpdate( USHORT nPos,
+ SVT_DLLPRIVATE void ImplUpdate( USHORT nPos,
BOOL bEnd = FALSE, BOOL bDirect = FALSE );
- SVT_DLLPRIVATE void ImplStartDrag( const Point& rPos, BOOL bCommand );
- SVT_DLLPRIVATE void ImplDrag( const Point& rPos );
- SVT_DLLPRIVATE void ImplEndDrag( BOOL bCancel );
+ SVT_DLLPRIVATE void ImplStartDrag( const Point& rPos, BOOL bCommand );
+ SVT_DLLPRIVATE void ImplDrag( const Point& rPos );
+ SVT_DLLPRIVATE void ImplEndDrag( BOOL bCancel );
#endif
public:
@@ -299,99 +299,99 @@ public:
HeaderBar( Window* pParent, const ResId& rResId );
~HeaderBar();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rTEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- virtual void Resize();
- virtual void Command( const CommandEvent& rCEvt );
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void StateChanged( StateChangedType nStateChange );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
-
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
- virtual void StartDrag();
- virtual void Drag();
- virtual void EndDrag();
- virtual void Select();
- virtual void DoubleClick();
-
- void InsertItem( USHORT nItemId, const Image& rImage,
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void Resize();
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+ virtual void StartDrag();
+ virtual void Drag();
+ virtual void EndDrag();
+ virtual void Select();
+ virtual void DoubleClick();
+
+ void InsertItem( USHORT nItemId, const Image& rImage,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void InsertItem( USHORT nItemId, const XubString& rText,
+ void InsertItem( USHORT nItemId, const XubString& rText,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
const Image& rImage, const XubString& rText,
long nSize, HeaderBarItemBits nBits = HIB_STDSTYLE,
USHORT nPos = HEADERBAR_APPEND );
- void RemoveItem( USHORT nItemId );
- void MoveItem( USHORT nItemId, USHORT nNewPos );
- void Clear();
-
- void SetOffset( long nNewOffset = 0 );
- long GetOffset() const { return mnOffset; }
- inline void SetDragSize( long nNewSize = 0 ) { mnDragSize = nNewSize; }
- long GetDragSize() const { return mnDragSize; }
-
- USHORT GetItemCount() const;
- USHORT GetItemPos( USHORT nItemId ) const;
- USHORT GetItemId( USHORT nPos ) const;
- USHORT GetItemId( const Point& rPos ) const;
- Rectangle GetItemRect( USHORT nItemId ) const;
- USHORT GetCurItemId() const { return mnCurItemId; }
- long GetDragPos() const { return mnDragPos; }
- USHORT GetItemDragPos() const { return mnItemDragPos; }
- BOOL IsItemMode() const { return mbItemMode; }
- BOOL IsItemDrag() const { return mbItemDrag; }
-
- void SetItemSize( USHORT nItemId, long nNewSize );
- long GetItemSize( USHORT nItemId ) const;
- void SetItemBits( USHORT nItemId, HeaderBarItemBits nNewBits );
- HeaderBarItemBits GetItemBits( USHORT nItemId ) const;
- void SetItemData( USHORT nItemId, void* pNewData );
- void* GetItemData( USHORT nItemId ) const;
-
- void SetItemImage( USHORT nItemId, const Image& rImage );
- Image GetItemImage( USHORT nItemId ) const;
- void SetItemText( USHORT nItemId, const XubString& rText );
- XubString GetItemText( USHORT nItemId ) const;
-
- void SetHelpText( USHORT nItemId, const XubString& rText );
- XubString GetHelpText( USHORT nItemId ) const;
- void SetHelpId( USHORT nItemId, ULONG nHelpId );
- ULONG GetHelpId( USHORT nItemId ) const;
-
- Size CalcWindowSizePixel() const;
-
- inline void SetHelpText( const String& rText ) { Window::SetHelpText( rText ); }
- inline const String& GetHelpText() const { return Window::GetHelpText(); }
- inline void SetHelpId( ULONG nId ) { Window::SetHelpId( nId ); }
- inline ULONG GetHelpId() const { return Window::GetHelpId(); }
-
- inline void SetStartDragHdl( const Link& rLink ) { maStartDragHdl = rLink; }
- inline const Link& GetStartDragHdl() const { return maStartDragHdl; }
- inline void SetDragHdl( const Link& rLink ) { maDragHdl = rLink; }
- inline const Link& GetDragHdl() const { return maDragHdl; }
- inline void SetEndDragHdl( const Link& rLink ) { maEndDragHdl = rLink; }
- inline const Link& GetEndDragHdl() const { return maEndDragHdl; }
- inline void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- inline const Link& GetSelectHdl() const { return maSelectHdl; }
- inline void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
- inline const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- inline void SetCreateAccessibleHdl( const Link& rLink ) { maCreateAccessibleHdl = rLink; }
- inline const Link& GetCreateAccessibleHdl() const { return maCreateAccessibleHdl; }
-
- inline BOOL IsDragable() const { return mbDragable; }
+ void RemoveItem( USHORT nItemId );
+ void MoveItem( USHORT nItemId, USHORT nNewPos );
+ void Clear();
+
+ void SetOffset( long nNewOffset = 0 );
+ long GetOffset() const { return mnOffset; }
+ inline void SetDragSize( long nNewSize = 0 ) { mnDragSize = nNewSize; }
+ long GetDragSize() const { return mnDragSize; }
+
+ USHORT GetItemCount() const;
+ USHORT GetItemPos( USHORT nItemId ) const;
+ USHORT GetItemId( USHORT nPos ) const;
+ USHORT GetItemId( const Point& rPos ) const;
+ Rectangle GetItemRect( USHORT nItemId ) const;
+ USHORT GetCurItemId() const { return mnCurItemId; }
+ long GetDragPos() const { return mnDragPos; }
+ USHORT GetItemDragPos() const { return mnItemDragPos; }
+ BOOL IsItemMode() const { return mbItemMode; }
+ BOOL IsItemDrag() const { return mbItemDrag; }
+
+ void SetItemSize( USHORT nItemId, long nNewSize );
+ long GetItemSize( USHORT nItemId ) const;
+ void SetItemBits( USHORT nItemId, HeaderBarItemBits nNewBits );
+ HeaderBarItemBits GetItemBits( USHORT nItemId ) const;
+ void SetItemData( USHORT nItemId, void* pNewData );
+ void* GetItemData( USHORT nItemId ) const;
+
+ void SetItemImage( USHORT nItemId, const Image& rImage );
+ Image GetItemImage( USHORT nItemId ) const;
+ void SetItemText( USHORT nItemId, const XubString& rText );
+ XubString GetItemText( USHORT nItemId ) const;
+
+ void SetHelpText( USHORT nItemId, const XubString& rText );
+ XubString GetHelpText( USHORT nItemId ) const;
+ void SetHelpId( USHORT nItemId, ULONG nHelpId );
+ ULONG GetHelpId( USHORT nItemId ) const;
+
+ Size CalcWindowSizePixel() const;
+
+ inline void SetHelpText( const String& rText ) { Window::SetHelpText( rText ); }
+ inline const String& GetHelpText() const { return Window::GetHelpText(); }
+ inline void SetHelpId( ULONG nId ) { Window::SetHelpId( nId ); }
+ inline ULONG GetHelpId() const { return Window::GetHelpId(); }
+
+ inline void SetStartDragHdl( const Link& rLink ) { maStartDragHdl = rLink; }
+ inline const Link& GetStartDragHdl() const { return maStartDragHdl; }
+ inline void SetDragHdl( const Link& rLink ) { maDragHdl = rLink; }
+ inline const Link& GetDragHdl() const { return maDragHdl; }
+ inline void SetEndDragHdl( const Link& rLink ) { maEndDragHdl = rLink; }
+ inline const Link& GetEndDragHdl() const { return maEndDragHdl; }
+ inline void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ inline const Link& GetSelectHdl() const { return maSelectHdl; }
+ inline void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
+ inline const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
+ inline void SetCreateAccessibleHdl( const Link& rLink ) { maCreateAccessibleHdl = rLink; }
+ inline const Link& GetCreateAccessibleHdl() const { return maCreateAccessibleHdl; }
+
+ inline BOOL IsDragable() const { return mbDragable; }
/** Creates and returns the accessible object of the header bar. */
virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessible > CreateAccessible();
+ ::com::sun::star::accessibility::XAccessible > CreateAccessible();
void SetAccessible( ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > );
};
-#endif // _HEADBAR_HXX
+#endif // _HEADBAR_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/helpid.hrc b/svtools/inc/svtools/helpid.hrc
index 1ffb7a99fb32..8f4c7329df9b 100644
--- a/svtools/inc/svtools/helpid.hrc
+++ b/svtools/inc/svtools/helpid.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,42 +34,42 @@
// Help-Ids --------------------------------------------------------------
-#define HID_FILEDLG_OPENDLG (HID_SVTOOLS_START + 0)
-#define HID_FILEDLG_PATHDLG (HID_SVTOOLS_START + 1)
-#define HID_FILEDLG_DIR (HID_SVTOOLS_START + 2)
-#define HID_FILEDLG_EDIT (HID_SVTOOLS_START + 3)
-#define HID_FILEDLG_DIRS (HID_SVTOOLS_START + 4)
-#define HID_FILEDLG_DRIVE (HID_SVTOOLS_START + 5)
-#define HID_FILEDLG_DRIVES (HID_SVTOOLS_START + 6)
-#define HID_FILEDLG_NEWDIR (HID_SVTOOLS_START + 7)
-#define HID_FILEDLG_HOME (HID_SVTOOLS_START + 8)
-#define HID_FILEDLG_FILE (HID_SVTOOLS_START + 9)
-#define HID_FILEDLG_FILES (HID_SVTOOLS_START + 10)
-#define HID_FILEDLG_PATH (HID_SVTOOLS_START + 11)
-#define HID_FILEDLG_TYPE (HID_SVTOOLS_START + 12)
-#define HID_FILEDLG_TYPES (HID_SVTOOLS_START + 13)
+#define HID_FILEDLG_OPENDLG (HID_SVTOOLS_START + 0)
+#define HID_FILEDLG_PATHDLG (HID_SVTOOLS_START + 1)
+#define HID_FILEDLG_DIR (HID_SVTOOLS_START + 2)
+#define HID_FILEDLG_EDIT (HID_SVTOOLS_START + 3)
+#define HID_FILEDLG_DIRS (HID_SVTOOLS_START + 4)
+#define HID_FILEDLG_DRIVE (HID_SVTOOLS_START + 5)
+#define HID_FILEDLG_DRIVES (HID_SVTOOLS_START + 6)
+#define HID_FILEDLG_NEWDIR (HID_SVTOOLS_START + 7)
+#define HID_FILEDLG_HOME (HID_SVTOOLS_START + 8)
+#define HID_FILEDLG_FILE (HID_SVTOOLS_START + 9)
+#define HID_FILEDLG_FILES (HID_SVTOOLS_START + 10)
+#define HID_FILEDLG_PATH (HID_SVTOOLS_START + 11)
+#define HID_FILEDLG_TYPE (HID_SVTOOLS_START + 12)
+#define HID_FILEDLG_TYPES (HID_SVTOOLS_START + 13)
// HelpID's fuer die Textkomponente
-#define HID_TEXTCPNT_OPEN_LINK (HID_SVTOOLS_START + 14)
-#define HID_TEXTCPNT_OPEN_LINK_NEW (HID_SVTOOLS_START + 15)
-#define HID_TEXTCPNT_DOWNLOAD (HID_SVTOOLS_START + 16)
-#define HID_TEXTCPNT_ADD_BOOKMARK (HID_SVTOOLS_START + 17)
-#define HID_TEXTCPNT_COPY_LINK (HID_SVTOOLS_START + 18)
+#define HID_TEXTCPNT_OPEN_LINK (HID_SVTOOLS_START + 14)
+#define HID_TEXTCPNT_OPEN_LINK_NEW (HID_SVTOOLS_START + 15)
+#define HID_TEXTCPNT_DOWNLOAD (HID_SVTOOLS_START + 16)
+#define HID_TEXTCPNT_ADD_BOOKMARK (HID_SVTOOLS_START + 17)
+#define HID_TEXTCPNT_COPY_LINK (HID_SVTOOLS_START + 18)
// HelpID's fuer RegisterDialog
-#define HID_LIMITED_DIALOG (HID_SVTOOLS_START + 20)
+#define HID_LIMITED_DIALOG (HID_SVTOOLS_START + 20)
// Help ids of template dialog
-#define HID_TEMPLATEDLG_DIALOG (HID_SVTOOLS_START + 21)
-#define HID_TEMPLATEDLG_ICONCTRL (HID_SVTOOLS_START + 22)
-#define HID_TEMPLATEDLG_FILEVIEW (HID_SVTOOLS_START + 23)
-#define HID_TEMPLATEDLG_TB_BACK (HID_SVTOOLS_START + 24)
-#define HID_TEMPLATEDLG_TB_PREV (HID_SVTOOLS_START + 25)
-#define HID_TEMPLATEDLG_TB_PRINT (HID_SVTOOLS_START + 26)
-#define HID_TEMPLATEDLG_TB_DOCINFO (HID_SVTOOLS_START + 27)
-#define HID_TEMPLATEDLG_TB_PREVIEW (HID_SVTOOLS_START + 28)
+#define HID_TEMPLATEDLG_DIALOG (HID_SVTOOLS_START + 21)
+#define HID_TEMPLATEDLG_ICONCTRL (HID_SVTOOLS_START + 22)
+#define HID_TEMPLATEDLG_FILEVIEW (HID_SVTOOLS_START + 23)
+#define HID_TEMPLATEDLG_TB_BACK (HID_SVTOOLS_START + 24)
+#define HID_TEMPLATEDLG_TB_PREV (HID_SVTOOLS_START + 25)
+#define HID_TEMPLATEDLG_TB_PRINT (HID_SVTOOLS_START + 26)
+#define HID_TEMPLATEDLG_TB_DOCINFO (HID_SVTOOLS_START + 27)
+#define HID_TEMPLATEDLG_TB_PREVIEW (HID_SVTOOLS_START + 28)
-#define HID_ADDRTEMPL_FIELD_ASSIGNMENT (HID_SVTOOLS_START + 29)
+#define HID_ADDRTEMPL_FIELD_ASSIGNMENT (HID_SVTOOLS_START + 29)
// Help ids for the filepicker dialogs
#define HID_EXPLORERDLG_FILE (HID_SVTOOLS_START + 30)
@@ -80,38 +80,38 @@
// help ids for the different modi of the file picker dialog
// FREE
-#define HID_FILESAVE_LEVELUP (HID_SVTOOLS_START + 34)
-#define HID_FILESAVE_CREATEDIRECTORY (HID_SVTOOLS_START + 35)
-#define HID_FILESAVE_DEFAULTDIRECTORY (HID_SVTOOLS_START + 36)
-#define HID_FILESAVE_FILEVIEW (HID_SVTOOLS_START + 37)
-#define HID_FILESAVE_TEMPLATE (HID_SVTOOLS_START + 38)
-#define HID_FILESAVE_FILEURL (HID_SVTOOLS_START + 39)
-#define HID_FILESAVE_FILETYPE (HID_SVTOOLS_START + 40)
-#define HID_FILESAVE_DOSAVE (HID_SVTOOLS_START + 41)
-#define HID_FILESAVE_AUTOEXTENSION (HID_SVTOOLS_START + 42)
-#define HID_FILESAVE_SAVEWITHPASSWORD (HID_SVTOOLS_START + 43)
-#define HID_FILESAVE_CUSTOMIZEFILTER (HID_SVTOOLS_START + 44)
-#define HID_FILESAVE_SELECTION (HID_SVTOOLS_START + 45)
-#define HID_FILESAVE_DIALOG (HID_SVTOOLS_START + 46)
-#define HID_FILESAVE_DOPLAY (HID_SVTOOLS_START + 47)
-
-#define HID_FILEOPEN_READONLY (HID_SVTOOLS_START + 48)
-#define HID_FILEOPEN_VERSION (HID_SVTOOLS_START + 49)
-#define HID_FILEOPEN_IMAGE_TEMPLATE (HID_SVTOOLS_START + 50)
-
-#define HID_FILEDLG_LINK_CB (HID_SFX_START + 276)
-#define HID_FILEDLG_PREVIEW_CB (HID_SFX_START + 277)
+#define HID_FILESAVE_LEVELUP (HID_SVTOOLS_START + 34)
+#define HID_FILESAVE_CREATEDIRECTORY (HID_SVTOOLS_START + 35)
+#define HID_FILESAVE_DEFAULTDIRECTORY (HID_SVTOOLS_START + 36)
+#define HID_FILESAVE_FILEVIEW (HID_SVTOOLS_START + 37)
+#define HID_FILESAVE_TEMPLATE (HID_SVTOOLS_START + 38)
+#define HID_FILESAVE_FILEURL (HID_SVTOOLS_START + 39)
+#define HID_FILESAVE_FILETYPE (HID_SVTOOLS_START + 40)
+#define HID_FILESAVE_DOSAVE (HID_SVTOOLS_START + 41)
+#define HID_FILESAVE_AUTOEXTENSION (HID_SVTOOLS_START + 42)
+#define HID_FILESAVE_SAVEWITHPASSWORD (HID_SVTOOLS_START + 43)
+#define HID_FILESAVE_CUSTOMIZEFILTER (HID_SVTOOLS_START + 44)
+#define HID_FILESAVE_SELECTION (HID_SVTOOLS_START + 45)
+#define HID_FILESAVE_DIALOG (HID_SVTOOLS_START + 46)
+#define HID_FILESAVE_DOPLAY (HID_SVTOOLS_START + 47)
+
+#define HID_FILEOPEN_READONLY (HID_SVTOOLS_START + 48)
+#define HID_FILEOPEN_VERSION (HID_SVTOOLS_START + 49)
+#define HID_FILEOPEN_IMAGE_TEMPLATE (HID_SVTOOLS_START + 50)
+
+#define HID_FILEDLG_LINK_CB (HID_SFX_START + 276)
+#define HID_FILEDLG_PREVIEW_CB (HID_SFX_START + 277)
// uniqueid for the helpagent window (testtool)
-#define HID_HELPAGENT_WINDOW (HID_SVTOOLS_START + 51)
+#define HID_HELPAGENT_WINDOW (HID_SVTOOLS_START + 51)
// registration dialog
-#define HID_REGISTRATION_DIALOG (HID_SVTOOLS_START + 52)
+#define HID_REGISTRATION_DIALOG (HID_SVTOOLS_START + 52)
-#define HID_PRINTDIALOG_TOFILE (HID_SVTOOLS_START + 53)
+#define HID_PRINTDIALOG_TOFILE (HID_SVTOOLS_START + 53)
-#define HID_WIZARD_NEXT (HID_SVTOOLS_START + 54)
-#define HID_WIZARD_PREVIOUS (HID_SVTOOLS_START + 55)
+#define HID_WIZARD_NEXT (HID_SVTOOLS_START + 54)
+#define HID_WIZARD_PREVIOUS (HID_SVTOOLS_START + 55)
#endif
diff --git a/svtools/inc/svtools/helpopt.hxx b/svtools/inc/svtools/helpopt.hxx
index 5947b8d034b1..3b62a95fc9fd 100644
--- a/svtools/inc/svtools/helpopt.hxx
+++ b/svtools/inc/svtools/helpopt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,31 +56,31 @@ public:
void SetHelpAgentAutoStartMode( sal_Bool b );
sal_Bool IsHelpAgentAutoStartMode() const;
- void SetHelpAgentTimeoutPeriod( sal_Int32 _nSeconds );
- sal_Int32 GetHelpAgentTimeoutPeriod( ) const;
- void SetHelpAgentRetryLimit( sal_Int32 _nTrials );
- sal_Int32 GetHelpAgentRetryLimit( ) const;
+ void SetHelpAgentTimeoutPeriod( sal_Int32 _nSeconds );
+ sal_Int32 GetHelpAgentTimeoutPeriod( ) const;
+ void SetHelpAgentRetryLimit( sal_Int32 _nTrials );
+ sal_Int32 GetHelpAgentRetryLimit( ) const;
const String& GetHelpStyleSheet()const;
void SetHelpStyleSheet(const String& rStyleSheet);
/** retrieves the help agent's ignore counter for the given URL.
- <p> If the counter returned 0, the agent should silently drop any requests for this URL.<br/>
+ <p> If the counter returned 0, the agent should silently drop any requests for this URL.<br/>
If the counter is greater 0, the agent should display the URL and, if the user ignores it,
decrement the counter by 1.
</p>
*/
- sal_Int32 getAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ sal_Int32 getAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
/** decrements the help agent's ignore counter for the given URL
@see getAgentIgnoreURLCounter
*/
- void decAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ void decAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
/** resets the help agent's ignore counter for the given URL
*/
- void resetAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ void resetAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
/** resets the help agent's ignore counter for all URL's
*/
- void resetAgentIgnoreURLCounter();
+ void resetAgentIgnoreURLCounter();
void SetWelcomeScreen( sal_Bool b );
sal_Bool IsWelcomeScreen() const;
@@ -89,8 +89,8 @@ public:
void AddToPIStarterList( sal_Int32 nId );
void RemoveFromPIStarterList( sal_Int32 nId );
- String GetLocale() const;
- String GetSystem() const;
+ String GetLocale() const;
+ String GetSystem() const;
};
#endif
diff --git a/svtools/inc/svtools/htmlcfg.hxx b/svtools/inc/svtools/htmlcfg.hxx
index 3f57d275a705..e049101a62e1 100644
--- a/svtools/inc/svtools/htmlcfg.hxx
+++ b/svtools/inc/svtools/htmlcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,8 +37,8 @@
#define HTML_FONT_COUNT 7
// !!!be aware!!!: the following defines are _not_ used as values in the configuration file
-// this is because of compatibility reasons
-#define HTML_CFG_HTML32 0 // Html 3.2
+// this is because of compatibility reasons
+#define HTML_CFG_HTML32 0 // Html 3.2
#define HTML_CFG_MSIE_40 1 // Internet Explorer 4.0
#define HTML_CFG_MSIE HTML_CFG_MSIE_40
#define HTML_CFG_WRITER 2 // Writer
@@ -65,38 +65,38 @@ public:
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& _rPropertyNames);
- USHORT GetFontSize(USHORT nPos) const;
- void SetFontSize(USHORT nPos, USHORT nSize);
+ USHORT GetFontSize(USHORT nPos) const;
+ void SetFontSize(USHORT nPos, USHORT nSize);
- BOOL IsImportUnknown() const;
- void SetImportUnknown(BOOL bSet);
+ BOOL IsImportUnknown() const;
+ void SetImportUnknown(BOOL bSet);
- USHORT GetExportMode() const;
- void SetExportMode(USHORT nSet);
+ USHORT GetExportMode() const;
+ void SetExportMode(USHORT nSet);
- BOOL IsStarBasic() const;
- void SetStarBasic(BOOL bSet);
+ BOOL IsStarBasic() const;
+ void SetStarBasic(BOOL bSet);
- BOOL IsStarBasicWarning() const;
- void SetStarBasicWarning(BOOL bSet);
+ BOOL IsStarBasicWarning() const;
+ void SetStarBasicWarning(BOOL bSet);
- BOOL IsSaveGraphicsLocal() const;
- void SetSaveGraphicsLocal(BOOL bSet);
+ BOOL IsSaveGraphicsLocal() const;
+ void SetSaveGraphicsLocal(BOOL bSet);
- BOOL IsPrintLayoutExtension() const;
- void SetPrintLayoutExtension(BOOL bSet);
+ BOOL IsPrintLayoutExtension() const;
+ void SetPrintLayoutExtension(BOOL bSet);
- BOOL IsIgnoreFontFamily() const;
- void SetIgnoreFontFamily(BOOL bSet);
+ BOOL IsIgnoreFontFamily() const;
+ void SetIgnoreFontFamily(BOOL bSet);
sal_Bool IsDefaultTextEncoding() const;
rtl_TextEncoding GetTextEncoding() const;
- void SetTextEncoding( rtl_TextEncoding );
+ void SetTextEncoding( rtl_TextEncoding );
static SvxHtmlOptions* Get();
- BOOL IsNumbersEnglishUS() const;
- void SetNumbersEnglishUS(BOOL bSet);
-
+ BOOL IsNumbersEnglishUS() const;
+ void SetNumbersEnglishUS(BOOL bSet);
+
void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink );
};
diff --git a/svtools/inc/svtools/htmlout.hxx b/svtools/inc/svtools/htmlout.hxx
index c882d970946d..c73f307a5793 100644
--- a/svtools/inc/svtools/htmlout.hxx
+++ b/svtools/inc/svtools/htmlout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,9 +62,9 @@ struct SVT_DLLPUBLIC HTMLOutContext
struct HTMLOutFuncs
{
#if defined(MAC) || defined(UNX)
- static const sal_Char sNewLine; // nur \012 oder \015
+ static const sal_Char sNewLine; // nur \012 oder \015
#else
- static const sal_Char __FAR_DATA sNewLine[]; // \015\012
+ static const sal_Char __FAR_DATA sNewLine[]; // \015\012
#endif
SVT_DLLPUBLIC static void ConvertStringToHTML( const String& sSrc, ByteString& rDest,
@@ -75,7 +75,7 @@ struct HTMLOutFuncs
BOOL bOn = TRUE,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252);
SVT_DLLPUBLIC static SvStream& Out_Char( SvStream&, sal_Unicode cChar,
- HTMLOutContext& rContext,
+ HTMLOutContext& rContext,
String *pNonConvertableChars = 0 );
SVT_DLLPUBLIC static SvStream& Out_String( SvStream&, const String&,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
@@ -113,7 +113,7 @@ struct HTMLOutFuncs
String *pNonConvertableChars = 0 );
// <TD SDVAL="..." SDNUM="...">
- SVT_DLLPUBLIC static ByteString& CreateTableDataOptionsValNum( ByteString& aStrTD,
+ SVT_DLLPUBLIC static ByteString& CreateTableDataOptionsValNum( ByteString& aStrTD,
BOOL bValue, double fVal, ULONG nFormat,
SvNumberFormatter& rFormatter,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
diff --git a/svtools/inc/svtools/hyperlabel.hxx b/svtools/inc/svtools/hyperlabel.hxx
index a94a5ea99168..2cb89901a7a8 100644
--- a/svtools/inc/svtools/hyperlabel.hxx
+++ b/svtools/inc/svtools/hyperlabel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,11 +42,11 @@ namespace svt
//.........................................................................
class HyperLabelImpl;
-
+
class HyperLabel : public FixedText
{
protected:
- HyperLabelImpl* m_pImpl;
+ HyperLabelImpl* m_pImpl;
Link maClickHdl;
virtual void MouseMove( const MouseEvent& rMEvt );
@@ -64,8 +64,8 @@ namespace svt
HyperLabel( Window* _pParent, const ResId& _rId );
HyperLabel( Window* _pParent, WinBits _nWinStyle = 0 );
~HyperLabel( );
-
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
void SetID( sal_Int16 _ID );
sal_Int16 GetID() const;
@@ -74,11 +74,11 @@ namespace svt
sal_Int32 GetIndex() const;
void SetLabel( const ::rtl::OUString& _rText );
- sal_Int32 GetLogicWidth();
+ sal_Int32 GetLogicWidth();
::rtl::OUString GetLabel( );
-
- void ToggleBackgroundColor( const Color& _rGBColor );
+
+ void ToggleBackgroundColor( const Color& _rGBColor );
void SetInteractive( sal_Bool _bInteractive );
void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; }
@@ -87,7 +87,7 @@ namespace svt
Size CalcMinimumSize( long nMaxWidth = 0 ) const;
private:
-
+
DECL_LINK(ImplClickHdl, HyperLabel*);
private:
diff --git a/svtools/inc/svtools/imap.hxx b/svtools/inc/svtools/imap.hxx
index 043900e4c377..f47b303b6d3c 100644
--- a/svtools/inc/svtools/imap.hxx
+++ b/svtools/inc/svtools/imap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,8 +47,8 @@ class IMapObject;
class SVT_DLLPUBLIC ImageMap
{
- List maList;
- String aName;
+ List maList;
+ String aName;
protected:
@@ -63,15 +63,15 @@ protected:
ULONG ImpReadNCSA( SvStream& rOStm, const String& rBaseURL );
void ImpReadCERNLine( const ByteString& rLine, const String& rBaseURL );
- Point ImpReadCERNCoords( const char** ppStr );
- long ImpReadCERNRadius( const char** ppStr );
+ Point ImpReadCERNCoords( const char** ppStr );
+ long ImpReadCERNRadius( const char** ppStr );
String ImpReadCERNURL( const char** ppStr, const String& rBaseURL );
void ImpReadNCSALine( const ByteString& rLine, const String& rBaseURL );
String ImpReadNCSAURL( const char** ppStr, const String& rBaseURL );
- Point ImpReadNCSACoords( const char** ppStr );
+ Point ImpReadNCSACoords( const char** ppStr );
- ULONG ImpDetectFormat( SvStream& rIStm );
+ ULONG ImpDetectFormat( SvStream& rIStm );
public:
@@ -84,25 +84,25 @@ public:
// Der Dtor gibt den intern belegten
// Speicher wieder frei;
// alle IMapObjekte werden im Dtor zerstoert;
- virtual ~ImageMap();
+ virtual ~ImageMap();
// Zuweisungsoperator
- ImageMap& operator=( const ImageMap& rImageMap );
+ ImageMap& operator=( const ImageMap& rImageMap );
// Vergleichsoperator (es wird alles auf Gleichheit geprueft)
- BOOL operator==( const ImageMap& rImageMap );
- BOOL operator!=( const ImageMap& rImageMap );
+ BOOL operator==( const ImageMap& rImageMap );
+ BOOL operator!=( const ImageMap& rImageMap );
// In die Map wird ein neues IMap-Obkekt ans Ende eingefuegt
- void InsertIMapObject( const IMapObject& rIMapObject );
+ void InsertIMapObject( const IMapObject& rIMapObject );
// Zugriff auf einzelne IMapObjekte; die Objekte
// duerfen von aussen _nicht_ zerstoert werden
- IMapObject* GetFirstIMapObject() { return (IMapObject*) maList.First(); }
- IMapObject* GetNextIMapObject() { return (IMapObject*) maList.Next(); }
- IMapObject* GetLastIMapObject() { return (IMapObject*) maList.Last(); }
- IMapObject* GetPrevIMapObject() { return (IMapObject*) maList.Prev(); }
- IMapObject* GetIMapObject( USHORT nPos ) const { return (IMapObject*) maList.GetObject( nPos ); }
+ IMapObject* GetFirstIMapObject() { return (IMapObject*) maList.First(); }
+ IMapObject* GetNextIMapObject() { return (IMapObject*) maList.Next(); }
+ IMapObject* GetLastIMapObject() { return (IMapObject*) maList.Last(); }
+ IMapObject* GetPrevIMapObject() { return (IMapObject*) maList.Prev(); }
+ IMapObject* GetIMapObject( USHORT nPos ) const { return (IMapObject*) maList.GetObject( nPos ); }
// Gibt das Objekt zurueck, das zuerst getroffen wurde oder NULL;
// Groessen- und Positionsangaben sind in 1/100mm;
@@ -110,29 +110,29 @@ public:
// rDisplaySize die aktuelle Darstellungsgroesse;
// rRelPoint bezieht sich auf die Darstellungsgroesse
// und die linke oebere Ecke des Bildes
- IMapObject* GetHitIMapObject( const Size& rOriginalSize,
+ IMapObject* GetHitIMapObject( const Size& rOriginalSize,
const Size& rDisplaySize,
const Point& rRelHitPoint,
ULONG nFlags = 0 );
// Gibt die Gesamtanzahl der IMap-Objekte zurueck
- UINT16 GetIMapObjectCount() const { return (UINT16) maList.Count(); }
+ UINT16 GetIMapObjectCount() const { return (UINT16) maList.Count(); }
// Loescht alle internen Objekte
- void ClearImageMap();
+ void ClearImageMap();
// liefert die aktuelle Versionsnummer
- UINT16 GetVersion() const;
+ UINT16 GetVersion() const;
// liefert / setzt den Namen der ImageMap
- const String& GetName() const { return aName; }
- void SetName( const String& rName ) { aName = rName; }
+ const String& GetName() const { return aName; }
+ void SetName( const String& rName ) { aName = rName; }
// gibt das BoundRect aller IMap-Objekte in 1/100mm zurueck
- Rectangle GetBoundRect() const;
+ Rectangle GetBoundRect() const;
// skaliert alle Objekte der ImageMap entpr. dem uebergebenen Faktor
- void Scale( const Fraction& rFractX, const Fraction& rFracY );
+ void Scale( const Fraction& rFractX, const Fraction& rFracY );
// Im-/Export
void Write ( SvStream& rOStm, const String& rBaseURL ) const;
@@ -150,15 +150,15 @@ public:
class IMapCompat
{
- SvStream* pRWStm;
- ULONG nCompatPos;
- ULONG nTotalSize;
- USHORT nStmMode;
+ SvStream* pRWStm;
+ ULONG nCompatPos;
+ ULONG nTotalSize;
+ USHORT nStmMode;
IMapCompat() {}
IMapCompat( const IMapCompat& ) {}
- IMapCompat& operator=( const IMapCompat& ) { return *this; }
- BOOL operator==( const IMapCompat& ) { return FALSE; }
+ IMapCompat& operator=( const IMapCompat& ) { return *this; }
+ BOOL operator==( const IMapCompat& ) { return FALSE; }
public:
diff --git a/svtools/inc/svtools/imapcirc.hxx b/svtools/inc/svtools/imapcirc.hxx
index 4181d8a4f7c5..4a4739a0691f 100644
--- a/svtools/inc/svtools/imapcirc.hxx
+++ b/svtools/inc/svtools/imapcirc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,16 +42,16 @@ class Fraction;
class SVT_DLLPUBLIC IMapCircleObject : public IMapObject
{
- Point aCenter;
- ULONG nRadius;
+ Point aCenter;
+ ULONG nRadius;
- void ImpConstruct( const Point& rCenter, ULONG nRad, BOOL bPixel );
+ void ImpConstruct( const Point& rCenter, ULONG nRad, BOOL bPixel );
protected:
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const;
- virtual void ReadIMapObject( SvStream& rIStm );
+ virtual void WriteIMapObject( SvStream& rOStm ) const;
+ virtual void ReadIMapObject( SvStream& rIStm );
public:
@@ -64,21 +64,21 @@ public:
const String& rName,
BOOL bActive = TRUE,
BOOL bPixelCoords = TRUE );
- virtual ~IMapCircleObject() {};
+ virtual ~IMapCircleObject() {};
- virtual UINT16 GetType() const;
- virtual BOOL IsHit( const Point& rPoint ) const;
+ virtual UINT16 GetType() const;
+ virtual BOOL IsHit( const Point& rPoint ) const;
- Point GetCenter( BOOL bPixelCoords = TRUE ) const;
- ULONG GetRadius( BOOL bPixelCoords = TRUE ) const;
+ Point GetCenter( BOOL bPixelCoords = TRUE ) const;
+ ULONG GetRadius( BOOL bPixelCoords = TRUE ) const;
// liefert das BoundRect des Kreis-Objektes in 1/100mm
- virtual Rectangle GetBoundRect() const;
+ virtual Rectangle GetBoundRect() const;
- void Scale( const Fraction& rFractX, const Fraction& rFracY );
+ void Scale( const Fraction& rFractX, const Fraction& rFracY );
using IMapObject::IsEqual;
- BOOL IsEqual( const IMapCircleObject& rEqObj );
+ BOOL IsEqual( const IMapCircleObject& rEqObj );
// Im-/Export
void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const;
diff --git a/svtools/inc/svtools/imapobj.hxx b/svtools/inc/svtools/imapobj.hxx
index 6929e4d21291..2176782256a5 100644
--- a/svtools/inc/svtools/imapobj.hxx
+++ b/svtools/inc/svtools/imapobj.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,26 +37,26 @@ class Point;
class Rectangle;
class SvStream;
-#define IMAP_OBJ_NONE ((UINT16)0x0000)
-#define IMAP_OBJ_RECTANGLE ((UINT16)0x0001)
-#define IMAP_OBJ_CIRCLE ((UINT16)0x0002)
-#define IMAP_OBJ_POLYGON ((UINT16)0x0003)
-#define IMAP_OBJ_VERSION ((UINT16)0x0005)
+#define IMAP_OBJ_NONE ((UINT16)0x0000)
+#define IMAP_OBJ_RECTANGLE ((UINT16)0x0001)
+#define IMAP_OBJ_CIRCLE ((UINT16)0x0002)
+#define IMAP_OBJ_POLYGON ((UINT16)0x0003)
+#define IMAP_OBJ_VERSION ((UINT16)0x0005)
-#define IMAGE_MAP_VERSION ((UINT16)0x0001)
+#define IMAGE_MAP_VERSION ((UINT16)0x0001)
-#define IMAPMAGIC "SDIMAP"
+#define IMAPMAGIC "SDIMAP"
-#define IMAP_MIRROR_HORZ 0x00000001L
-#define IMAP_MIRROR_VERT 0x00000002L
+#define IMAP_MIRROR_HORZ 0x00000001L
+#define IMAP_MIRROR_VERT 0x00000002L
-#define IMAP_FORMAT_BIN 0x00000001L
-#define IMAP_FORMAT_CERN 0x00000002L
-#define IMAP_FORMAT_NCSA 0x00000004L
-#define IMAP_FORMAT_DETECT 0xffffffffL
+#define IMAP_FORMAT_BIN 0x00000001L
+#define IMAP_FORMAT_CERN 0x00000002L
+#define IMAP_FORMAT_NCSA 0x00000004L
+#define IMAP_FORMAT_DETECT 0xffffffffL
-#define IMAP_ERR_OK 0x00000000L
-#define IMAP_ERR_FORMAT 0x00000001L
+#define IMAP_ERR_OK 0x00000000L
+#define IMAP_ERR_FORMAT 0x00000001L
/******************************************************************************
|*
@@ -66,33 +66,33 @@ class SvStream;
class SVT_DLLPUBLIC IMapObject
{
- friend class ImageMap;
+ friend class ImageMap;
- String aURL;
- String aAltText;
- String aDesc;
- String aTarget;
- String aName;
- SvxMacroTableDtor aEventList;
- BOOL bActive;
+ String aURL;
+ String aAltText;
+ String aDesc;
+ String aTarget;
+ String aName;
+ SvxMacroTableDtor aEventList;
+ BOOL bActive;
protected:
- UINT16 nReadVersion;
+ UINT16 nReadVersion;
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const = 0;
- virtual void ReadIMapObject( SvStream& rIStm ) = 0;
+ virtual void WriteIMapObject( SvStream& rOStm ) const = 0;
+ virtual void ReadIMapObject( SvStream& rIStm ) = 0;
// Hilfsmethoden
- void AppendCERNCoords( const Point& rPoint100, ByteString& rStr ) const;
+ void AppendCERNCoords( const Point& rPoint100, ByteString& rStr ) const;
void AppendCERNURL( ByteString& rStr, const String& rBaseURL ) const;
- void AppendNCSACoords( const Point& rPoint100, ByteString& rStr ) const;
+ void AppendNCSACoords( const Point& rPoint100, ByteString& rStr ) const;
void AppendNCSAURL( ByteString& rStr, const String& rBaseURL ) const;
public:
- static rtl_TextEncoding nActualTextEncoding;
+ static rtl_TextEncoding nActualTextEncoding;
IMapObject();
IMapObject( const String& rURL,
@@ -101,48 +101,48 @@ public:
const String& rTarget,
const String& rName,
BOOL bActive );
- virtual ~IMapObject() {};
+ virtual ~IMapObject() {};
- virtual UINT16 GetVersion() const;
- virtual UINT16 GetType() const = 0;
- virtual BOOL IsHit( const Point& rPoint ) const = 0;
+ virtual UINT16 GetVersion() const;
+ virtual UINT16 GetType() const = 0;
+ virtual BOOL IsHit( const Point& rPoint ) const = 0;
void Write ( SvStream& rOStm, const String& rBaseURL ) const;
void Read( SvStream& rIStm, const String& rBaseURL );
- virtual Rectangle GetBoundRect() const = 0;
+ virtual Rectangle GetBoundRect() const = 0;
- const String& GetURL() const { return aURL; }
- void SetURL( const String& rURL ) { aURL = rURL; }
+ const String& GetURL() const { return aURL; }
+ void SetURL( const String& rURL ) { aURL = rURL; }
- const String& GetAltText() const { return aAltText; }
- void SetAltText( const String& rAltText) { aAltText = rAltText; }
+ const String& GetAltText() const { return aAltText; }
+ void SetAltText( const String& rAltText) { aAltText = rAltText; }
- const String& GetDesc() const { return aDesc; }
- void SetDesc( const String& rDesc ) { aDesc = rDesc; }
+ const String& GetDesc() const { return aDesc; }
+ void SetDesc( const String& rDesc ) { aDesc = rDesc; }
- const String& GetTarget() const { return aTarget; }
- void SetTarget( const String& rTarget ) { aTarget = rTarget; }
+ const String& GetTarget() const { return aTarget; }
+ void SetTarget( const String& rTarget ) { aTarget = rTarget; }
- const String& GetName() const { return aName; }
- void SetName( const String& rName ) { aName = rName; }
+ const String& GetName() const { return aName; }
+ void SetName( const String& rName ) { aName = rName; }
- BOOL IsActive() const { return bActive; }
- void SetActive( BOOL bSetActive = TRUE ) { bActive = bSetActive; }
+ BOOL IsActive() const { return bActive; }
+ void SetActive( BOOL bSetActive = TRUE ) { bActive = bSetActive; }
- static Point GetPixelPoint( const Point& rLogPoint );
- static Point GetLogPoint( const Point& rPixelPoint );
+ static Point GetPixelPoint( const Point& rLogPoint );
+ static Point GetLogPoint( const Point& rPixelPoint );
- BOOL IsEqual( const IMapObject& rEqObj );
+ BOOL IsEqual( const IMapObject& rEqObj );
// IMap-Events
inline const SvxMacroTableDtor& GetMacroTable() const { return aEventList;}
inline void SetMacroTable( const SvxMacroTableDtor& rTbl ) { aEventList = rTbl; }
- inline const SvxMacro& GetEvent( USHORT nEvent ) const;
- inline BOOL HasEvent( USHORT nEvent ) const;
- void SetEvent( USHORT nEvent, const SvxMacro& );
- inline BOOL DelEvent( USHORT nEvent );
+ inline const SvxMacro& GetEvent( USHORT nEvent ) const;
+ inline BOOL HasEvent( USHORT nEvent ) const;
+ void SetEvent( USHORT nEvent, const SvxMacro& );
+ inline BOOL DelEvent( USHORT nEvent );
};
inline BOOL IMapObject::HasEvent( USHORT nEvent ) const
diff --git a/svtools/inc/svtools/imappoly.hxx b/svtools/inc/svtools/imappoly.hxx
index 655d180f6613..c8d0f2d93bd0 100644
--- a/svtools/inc/svtools/imappoly.hxx
+++ b/svtools/inc/svtools/imappoly.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,19 +43,19 @@ class Fraction;
class SVT_DLLPUBLIC IMapPolygonObject : public IMapObject
{
- Polygon aPoly;
- Rectangle aEllipse;
- BOOL bEllipse;
+ Polygon aPoly;
+ Rectangle aEllipse;
+ BOOL bEllipse;
- SVT_DLLPRIVATE void ImpConstruct( const Polygon& rPoly, BOOL bPixel );
+ SVT_DLLPRIVATE void ImpConstruct( const Polygon& rPoly, BOOL bPixel );
protected:
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const;
- virtual void ReadIMapObject( SvStream& rIStm );
+ virtual void WriteIMapObject( SvStream& rOStm ) const;
+ virtual void ReadIMapObject( SvStream& rIStm );
- BOOL ReadPreProLine( SvStream& rIStm, String& rStr );
+ BOOL ReadPreProLine( SvStream& rIStm, String& rStr );
public:
IMapPolygonObject() {};
@@ -67,24 +67,24 @@ public:
const String& rName,
BOOL bActive = TRUE,
BOOL bPixelCoords = TRUE );
- virtual ~IMapPolygonObject() {};
+ virtual ~IMapPolygonObject() {};
- virtual UINT16 GetType() const;
- virtual BOOL IsHit( const Point& rPoint ) const;
+ virtual UINT16 GetType() const;
+ virtual BOOL IsHit( const Point& rPoint ) const;
- Polygon GetPolygon( BOOL bPixelCoords = TRUE ) const;
+ Polygon GetPolygon( BOOL bPixelCoords = TRUE ) const;
// liefert das BoundRect des Polygon-Objektes in 1/100mm
- virtual Rectangle GetBoundRect() const { return aPoly.GetBoundRect(); }
+ virtual Rectangle GetBoundRect() const { return aPoly.GetBoundRect(); }
- BOOL HasExtraEllipse() const { return bEllipse; }
- const Rectangle& GetExtraEllipse() const { return aEllipse; }
- void SetExtraEllipse( const Rectangle& rEllipse );
+ BOOL HasExtraEllipse() const { return bEllipse; }
+ const Rectangle& GetExtraEllipse() const { return aEllipse; }
+ void SetExtraEllipse( const Rectangle& rEllipse );
- void Scale( const Fraction& rFractX, const Fraction& rFracY );
+ void Scale( const Fraction& rFractX, const Fraction& rFracY );
using IMapObject::IsEqual;
- BOOL IsEqual( const IMapPolygonObject& rEqObj );
+ BOOL IsEqual( const IMapPolygonObject& rEqObj );
// Im-/Export
void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const;
diff --git a/svtools/inc/svtools/imaprect.hxx b/svtools/inc/svtools/imaprect.hxx
index f10000de3e92..c13e3e0c1cfd 100644
--- a/svtools/inc/svtools/imaprect.hxx
+++ b/svtools/inc/svtools/imaprect.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,15 +42,15 @@ class Fraction;
class SVT_DLLPUBLIC IMapRectangleObject : public IMapObject
{
- Rectangle aRect;
+ Rectangle aRect;
- SVT_DLLPRIVATE void ImpConstruct( const Rectangle& rRect, BOOL bPixel );
+ SVT_DLLPRIVATE void ImpConstruct( const Rectangle& rRect, BOOL bPixel );
protected:
// Binaer-Im-/Export
- virtual void WriteIMapObject( SvStream& rOStm ) const;
- virtual void ReadIMapObject( SvStream& rIStm );
+ virtual void WriteIMapObject( SvStream& rOStm ) const;
+ virtual void ReadIMapObject( SvStream& rIStm );
public:
@@ -63,20 +63,20 @@ public:
const String& rName,
BOOL bActive = TRUE,
BOOL bPixelCoords = TRUE );
- virtual ~IMapRectangleObject() {};
+ virtual ~IMapRectangleObject() {};
- virtual UINT16 GetType() const;
- virtual BOOL IsHit( const Point& rPoint ) const;
+ virtual UINT16 GetType() const;
+ virtual BOOL IsHit( const Point& rPoint ) const;
- Rectangle GetRectangle( BOOL bPixelCoords = TRUE ) const;
+ Rectangle GetRectangle( BOOL bPixelCoords = TRUE ) const;
// liefert das BoundRect des Rechteck-Objektes in 1/100mm
- virtual Rectangle GetBoundRect() const { return aRect; }
+ virtual Rectangle GetBoundRect() const { return aRect; }
- void Scale( const Fraction& rFractX, const Fraction& rFracY );
+ void Scale( const Fraction& rFractX, const Fraction& rFracY );
using IMapObject::IsEqual;
- BOOL IsEqual( const IMapRectangleObject& rEqObj );
+ BOOL IsEqual( const IMapRectangleObject& rEqObj );
// Im-/Export
void WriteCERN( SvStream& rOStm, const String& rBaseURL ) const;
diff --git a/svtools/inc/svtools/inettbc.hxx b/svtools/inc/svtools/inettbc.hxx
index ccf1848a0094..50bf33f08454 100644
--- a/svtools/inc/svtools/inettbc.hxx
+++ b/svtools/inc/svtools/inettbc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,33 +44,33 @@ class SVT_DLLPUBLIC SvtURLBox : public ComboBox
{
friend class SvtMatchContext_Impl;
friend class SvtURLBox_Impl;
- Link aOpenHdl;
- String aBaseURL;
- String aPlaceHolder;
- SvtMatchContext_Impl* pCtx;
- SvtURLBox_Impl* pImp;
- INetProtocol eSmartProtocol;
- BOOL bAutoCompleteMode : 1;
- BOOL bOnlyDirectories : 1;
- BOOL bModified : 1;
+ Link aOpenHdl;
+ String aBaseURL;
+ String aPlaceHolder;
+ SvtMatchContext_Impl* pCtx;
+ SvtURLBox_Impl* pImp;
+ INetProtocol eSmartProtocol;
+ BOOL bAutoCompleteMode : 1;
+ BOOL bOnlyDirectories : 1;
+ BOOL bModified : 1;
BOOL bTryAutoComplete : 1;
- BOOL bCtrlClick : 1;
- BOOL bHistoryDisabled : 1;
- BOOL bNoSelection : 1;
+ BOOL bCtrlClick : 1;
+ BOOL bHistoryDisabled : 1;
+ BOOL bNoSelection : 1;
BOOL bIsAutoCompleteEnabled : 1;
- SVT_DLLPRIVATE BOOL ProcessKey( const KeyCode& rCode );
- SVT_DLLPRIVATE void TryAutoComplete( BOOL bForce );
+ SVT_DLLPRIVATE BOOL ProcessKey( const KeyCode& rCode );
+ SVT_DLLPRIVATE void TryAutoComplete( BOOL bForce );
SVT_DLLPRIVATE void UpdatePicklistForSmartProtocol_Impl();
DECL_DLLPRIVATE_LINK( AutoCompleteHdl_Impl, void* );
using Window::ImplInit;
SVT_DLLPRIVATE void ImplInit();
protected:
- virtual long Notify( NotifyEvent& rNEvt );
- virtual void Select();
- virtual void Modify();
- virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
+ virtual void Select();
+ virtual void Modify();
+ virtual long PreNotify( NotifyEvent& rNEvt );
public:
SvtURLBox( Window* pParent, INetProtocol eSmart = INET_PROT_NOT_VALID );
@@ -78,24 +78,24 @@ public:
SvtURLBox( Window* pParent, const ResId& _rResId, INetProtocol eSmart = INET_PROT_NOT_VALID );
~SvtURLBox();
- void SetBaseURL( const String& rURL );
- const String& GetBaseURL() const { return aBaseURL; }
- void SetOpenHdl( const Link& rLink ) { aOpenHdl = rLink; }
- const Link& GetOpenHdl() const { return aOpenHdl; }
- void SetOnlyDirectories( BOOL bDir = TRUE );
- void SetNoURLSelection( BOOL bSet = TRUE );
- INetProtocol GetSmartProtocol() const { return eSmartProtocol; }
+ void SetBaseURL( const String& rURL );
+ const String& GetBaseURL() const { return aBaseURL; }
+ void SetOpenHdl( const Link& rLink ) { aOpenHdl = rLink; }
+ const Link& GetOpenHdl() const { return aOpenHdl; }
+ void SetOnlyDirectories( BOOL bDir = TRUE );
+ void SetNoURLSelection( BOOL bSet = TRUE );
+ INetProtocol GetSmartProtocol() const { return eSmartProtocol; }
void SetSmartProtocol( INetProtocol eProt );
BOOL IsCtrlOpen()
{ return bCtrlClick; }
String GetURL();
- void DisableHistory();
+ void DisableHistory();
- void UpdatePickList( );
+ void UpdatePickList( );
static String ParseSmart( String aText, String aBaseURL, String aWorkDir );
- void SetFilter(const String& _sFilter);
+ void SetFilter(const String& _sFilter);
void SetUrlFilter( const IUrlFilter* _pFilter );
const IUrlFilter* GetUrlFilter( ) const;
diff --git a/svtools/inc/svtools/insdlg.hxx b/svtools/inc/svtools/insdlg.hxx
index e7d894122243..3e26d0f57ccc 100644
--- a/svtools/inc/svtools/insdlg.hxx
+++ b/svtools/inc/svtools/insdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ class SVT_DLLPUBLIC SvObjectServerList
const SvObjectServer * Get( const String & rHumanName ) const;
const SvObjectServer * Get( const SvGlobalName & ) const;
void Remove( const SvGlobalName & );
- void FillInsertObjects();
+ void FillInsertObjects();
};
class SVT_DLLPUBLIC SvPasteObjectHelper
diff --git a/svtools/inc/svtools/javacontext.hxx b/svtools/inc/svtools/javacontext.hxx
index 7c32a49448b3..adde966c4d38 100644
--- a/svtools/inc/svtools/javacontext.hxx
+++ b/svtools/inc/svtools/javacontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,10 +42,10 @@ namespace svt
// We cannot derive from cppu::WeakImplHelper because we would export the inline
//generated class. This conflicts with other libraries if they use the same inline
//class.
- class SVT_DLLPUBLIC JavaContext :
+ class SVT_DLLPUBLIC JavaContext :
public com::sun::star::uno::XCurrentContext
{
-
+
public:
/** The parameter bShowErrorsOnce controls whether a message box is
only displayed once for a reocurring Java error. That is only
@@ -75,8 +75,8 @@ namespace svt
SVT_DLLPRIVATE JavaContext(); //not implemented
SVT_DLLPRIVATE JavaContext(JavaContext&); //not implemented
SVT_DLLPRIVATE JavaContext& operator = (JavaContext&); //not implemented
-
- oslInterlockedCount m_aRefCount;
+
+ oslInterlockedCount m_aRefCount;
com::sun::star::uno::Reference<
com::sun::star::uno::XCurrentContext > m_xNextContext;
diff --git a/svtools/inc/svtools/javainteractionhandler.hxx b/svtools/inc/svtools/javainteractionhandler.hxx
index e3137f7bed2b..28391ca8fc08 100644
--- a/svtools/inc/svtools/javainteractionhandler.hxx
+++ b/svtools/inc/svtools/javainteractionhandler.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ namespace svt
//class.
class SVT_DLLPUBLIC JavaInteractionHandler:
- public com::sun::star::task::XInteractionHandler
+ public com::sun::star::task::XInteractionHandler
{
public:
JavaInteractionHandler(bool bReportErrorOnce = true);
@@ -65,7 +65,7 @@ public:
throw (com::sun::star::uno::RuntimeException);
private:
- oslInterlockedCount m_aRefCount;
+ oslInterlockedCount m_aRefCount;
SVT_DLLPRIVATE JavaInteractionHandler(JavaInteractionHandler const&); //not implemented
SVT_DLLPRIVATE JavaInteractionHandler& operator = (JavaInteractionHandler const &); //not implemented
SVT_DLLPRIVATE virtual ~JavaInteractionHandler();
diff --git a/svtools/inc/svtools/langhelp.hxx b/svtools/inc/svtools/langhelp.hxx
index ccc946c305b6..37a5b37d09fa 100644
--- a/svtools/inc/svtools/langhelp.hxx
+++ b/svtools/inc/svtools/langhelp.hxx
@@ -32,7 +32,7 @@
namespace rtl { class OUString; }
/** Localize a URI to one of the foundation's webservices
-
+
@param io_rURI
URI to localize - depending on your UI locale, a country local
part is appended to the URI (like "en", or "fr", or "es")
diff --git a/svtools/inc/svtools/langtab.hxx b/svtools/inc/svtools/langtab.hxx
index 9b38297433bf..d4212ba278af 100644
--- a/svtools/inc/svtools/langtab.hxx
+++ b/svtools/inc/svtools/langtab.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,12 +43,12 @@ public:
SvtLanguageTable();
~SvtLanguageTable();
- const String& GetString( const LanguageType eType ) const;
- LanguageType GetType( const String& rStr ) const;
+ const String& GetString( const LanguageType eType ) const;
+ LanguageType GetType( const String& rStr ) const;
- sal_uInt32 GetEntryCount() const;
- LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const;
- static String GetLanguageString( const LanguageType eType );
+ sal_uInt32 GetEntryCount() const;
+ LanguageType GetTypeAtIndex( sal_uInt32 nIndex ) const;
+ static String GetLanguageString( const LanguageType eType );
};
// Add LRE or RLE embedding characters to the string based on the
diff --git a/svtools/inc/svtools/menuoptions.hxx b/svtools/inc/svtools/menuoptions.hxx
index eb0f83df22c0..1e985aaa2a9b 100644
--- a/svtools/inc/svtools/menuoptions.hxx
+++ b/svtools/inc/svtools/menuoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_SVTOOLS_MENUOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "svtools/svtdllapi.h"
@@ -38,12 +38,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -52,45 +52,45 @@ class Link;
class SvtMenuOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about menu features
+ @short collect informations about menu features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtMenuOptions();
@@ -99,23 +99,23 @@ class SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options
void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink );
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Menu/..."
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Menu/..."
@descr These options describe internal states to enable/disable features of installed office.
IsEntryHidingEnabled()
- SetEntryHidingState() => Activate this field for viewing all deactivated menu entries.
+ SetEntryHidingState() => Activate this field for viewing all deactivated menu entries.
Menu commands that are normally not necessary are hidden by default.
Default=false
IsFollowMouseEnabled()
- SetFollowMouseState() => Automatic selection while moving the mouse on a menu.
+ SetFollowMouseState() => Automatic selection while moving the mouse on a menu.
Default=true
- @seealso configuration package "org.openoffice.Office.Common/View/Menu"
+ @seealso configuration package "org.openoffice.Office.Common/View/Menu"
*//*-*****************************************************************************************************/
sal_Bool IsEntryHidingEnabled() const;
@@ -127,29 +127,29 @@ class SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options
void SetMenuIconsState( sal_Int16 bState );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SVT_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -162,11 +162,11 @@ class SVT_DLLPUBLIC SvtMenuOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtMenuOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtMenuOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtMenuOptions
+}; // class SvtMenuOptions
-#endif // #ifndef INCLUDED_SVTOOLS_MENUOPTIONS_HXX
+#endif // #ifndef INCLUDED_SVTOOLS_MENUOPTIONS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/miscopt.hxx b/svtools/inc/svtools/miscopt.hxx
index eeabc624deff..3c2646af6b49 100644
--- a/svtools/inc/svtools/miscopt.hxx
+++ b/svtools/inc/svtools/miscopt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_SVTOOLS_MISCOPT_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "svtools/svtdllapi.h"
@@ -40,12 +40,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -54,47 +54,47 @@ class SvtMiscOptions_Impl;
class Link;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about misc group
+ @short collect informations about misc group
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @ATTENTION This class is partially threadsafe.
+ @ATTENTION This class is partially threadsafe.
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtMiscOptions();
@@ -104,7 +104,7 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
void RemoveListenerLink( const Link& rLink );
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
sal_Bool UseSystemFileDialog() const;
@@ -154,29 +154,29 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
sal_Bool IsExperimentalMode() const;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -189,11 +189,11 @@ class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtMiscOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtMiscOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtMiscOptions
+}; // class SvtMiscOptions
-#endif // #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
+#endif // #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/optionsdrawinglayer.hxx b/svtools/inc/svtools/optionsdrawinglayer.hxx
index d788c4d3e340..c8badca956a8 100644
--- a/svtools/inc/svtools/optionsdrawinglayer.hxx
+++ b/svtools/inc/svtools/optionsdrawinglayer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#define INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "svtools/svtdllapi.h"
@@ -40,12 +40,12 @@
#include <tools/color.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -53,103 +53,103 @@
class SvtOptionsDrawinglayer_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about startup features
+ @short collect informations about startup features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class SVT_DLLPUBLIC SvtOptionsDrawinglayer
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtOptionsDrawinglayer();
~SvtOptionsDrawinglayer();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/Drawinglayer/..."
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/Drawinglayer/..."
@descr These options describe internal states to enable/disable features of installed office.
IsOverlayBuffer()
- SetOverlayBuffer() => Activate this field for letting Overlay use a buffer
+ SetOverlayBuffer() => Activate this field for letting Overlay use a buffer
IsPaintBuffer()
- SetPaintBuffer() => Activate this field for letting Paint use a prerender buffer
+ SetPaintBuffer() => Activate this field for letting Paint use a prerender buffer
GetStripeColorA()
- SetStripeColorA() => Set first of two colors which overlay uses to draw stripes
+ SetStripeColorA() => Set first of two colors which overlay uses to draw stripes
GetStripeColorB()
- SetStripeColorB() => Set second of two colors which overlay uses to draw stripes
+ SetStripeColorB() => Set second of two colors which overlay uses to draw stripes
GetStripeLength()
- SetStripeLength() => Set length of a single stripe in pixels
+ SetStripeLength() => Set length of a single stripe in pixels
- @seealso configuration package "org.openoffice.Office.Common/Drawinglayer"
+ @seealso configuration package "org.openoffice.Office.Common/Drawinglayer"
*//*-*****************************************************************************************************/
- sal_Bool IsOverlayBuffer() const;
- sal_Bool IsPaintBuffer() const;
- Color GetStripeColorA() const;
- Color GetStripeColorB() const;
- sal_uInt16 GetStripeLength() const;
+ sal_Bool IsOverlayBuffer() const;
+ sal_Bool IsPaintBuffer() const;
+ Color GetStripeColorA() const;
+ Color GetStripeColorB() const;
+ sal_uInt16 GetStripeLength() const;
- void SetOverlayBuffer( sal_Bool bState );
- void SetPaintBuffer( sal_Bool bState );
- void SetStripeColorA( Color aColor );
- void SetStripeColorB( Color aColor );
- void SetStripeLength( sal_uInt16 nLength );
+ void SetOverlayBuffer( sal_Bool bState );
+ void SetPaintBuffer( sal_Bool bState );
+ void SetStripeColorA( Color aColor );
+ void SetStripeColorB( Color aColor );
+ void SetStripeLength( sal_uInt16 nLength );
// #i73602#
- sal_Bool IsOverlayBuffer_Calc() const;
- sal_Bool IsOverlayBuffer_Writer() const;
- sal_Bool IsOverlayBuffer_DrawImpress() const;
- void SetOverlayBuffer_Calc( sal_Bool bState );
- void SetOverlayBuffer_Writer( sal_Bool bState );
- void SetOverlayBuffer_DrawImpress( sal_Bool bState );
+ sal_Bool IsOverlayBuffer_Calc() const;
+ sal_Bool IsOverlayBuffer_Writer() const;
+ sal_Bool IsOverlayBuffer_DrawImpress() const;
+ void SetOverlayBuffer_Calc( sal_Bool bState );
+ void SetOverlayBuffer_Writer( sal_Bool bState );
+ void SetOverlayBuffer_DrawImpress( sal_Bool bState );
// #i74769#, #i75172#
- sal_Bool IsPaintBuffer_Calc() const;
- sal_Bool IsPaintBuffer_Writer() const;
- sal_Bool IsPaintBuffer_DrawImpress() const;
- void SetPaintBuffer_Calc( sal_Bool bState );
- void SetPaintBuffer_Writer( sal_Bool bState );
- void SetPaintBuffer_DrawImpress( sal_Bool bState );
+ sal_Bool IsPaintBuffer_Calc() const;
+ sal_Bool IsPaintBuffer_Writer() const;
+ sal_Bool IsPaintBuffer_DrawImpress() const;
+ void SetPaintBuffer_Calc( sal_Bool bState );
+ void SetPaintBuffer_Writer( sal_Bool bState );
+ void SetPaintBuffer_DrawImpress( sal_Bool bState );
// #i4219#
sal_uInt32 GetMaximumPaperWidth() const;
@@ -158,7 +158,7 @@ class SVT_DLLPUBLIC SvtOptionsDrawinglayer
sal_uInt32 GetMaximumPaperRightMargin() const;
sal_uInt32 GetMaximumPaperTopMargin() const;
sal_uInt32 GetMaximumPaperBottomMargin() const;
-
+
void SetMaximumPaperWidth(sal_uInt32 nNew);
void SetMaximumPaperHeight(sal_uInt32 nNew);
void SetMaximumPaperLeftMargin(sal_uInt32 nNew);
@@ -166,59 +166,59 @@ class SVT_DLLPUBLIC SvtOptionsDrawinglayer
void SetMaximumPaperTopMargin(sal_uInt32 nNew);
void SetMaximumPaperBottomMargin(sal_uInt32 nNew);
- // #i95644# helper to check if AA is allowed on this system. Currently, for WIN its disabled
- // and OutDevSupport_TransparentRect is checked (this hits XRenderExtension, e.g.
+ // #i95644# helper to check if AA is allowed on this system. Currently, for WIN its disabled
+ // and OutDevSupport_TransparentRect is checked (this hits XRenderExtension, e.g.
// currently for SunRay as long as not supported there)
sal_Bool IsAAPossibleOnThisSystem() const;
// primitives
- sal_Bool IsAntiAliasing() const;
- sal_Bool IsSnapHorVerLinesToDiscrete() const;
- sal_Bool IsSolidDragCreate() const;
- sal_Bool IsRenderDecoratedTextDirect() const;
- sal_Bool IsRenderSimpleTextDirect() const;
+ sal_Bool IsAntiAliasing() const;
+ sal_Bool IsSnapHorVerLinesToDiscrete() const;
+ sal_Bool IsSolidDragCreate() const;
+ sal_Bool IsRenderDecoratedTextDirect() const;
+ sal_Bool IsRenderSimpleTextDirect() const;
sal_uInt32 GetQuadratic3DRenderLimit() const;
sal_uInt32 GetQuadraticFormControlRenderLimit() const;
- void SetAntiAliasing( sal_Bool bState );
- void SetSnapHorVerLinesToDiscrete( sal_Bool bState );
- void SetSolidDragCreate( sal_Bool bState );
- void SetRenderDecoratedTextDirect( sal_Bool bState );
- void SetRenderSimpleTextDirect( sal_Bool bState );
+ void SetAntiAliasing( sal_Bool bState );
+ void SetSnapHorVerLinesToDiscrete( sal_Bool bState );
+ void SetSolidDragCreate( sal_Bool bState );
+ void SetRenderDecoratedTextDirect( sal_Bool bState );
+ void SetRenderSimpleTextDirect( sal_Bool bState );
void SetQuadratic3DRenderLimit(sal_uInt32 nNew);
void SetQuadraticFormControlRenderLimit(sal_uInt32 nNew);
// #i97672# selection settings
- sal_Bool IsTransparentSelection() const;
- sal_uInt16 GetTransparentSelectionPercent() const;
- sal_uInt16 GetSelectionMaximumLuminancePercent() const;
+ sal_Bool IsTransparentSelection() const;
+ sal_uInt16 GetTransparentSelectionPercent() const;
+ sal_uInt16 GetSelectionMaximumLuminancePercent() const;
- void SetTransparentSelection( sal_Bool bState );
- void SetTransparentSelectionPercent( sal_uInt16 nPercent );
- void SetSelectionMaximumLuminancePercent( sal_uInt16 nPercent );
+ void SetTransparentSelection( sal_Bool bState );
+ void SetTransparentSelectionPercent( sal_uInt16 nPercent );
+ void SetSelectionMaximumLuminancePercent( sal_uInt16 nPercent );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class use his own static mutex to be threadsafe.
+ @short return a reference to a static mutex
+ @descr These class use his own static mutex to be threadsafe.
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SVT_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -231,11 +231,11 @@ class SVT_DLLPUBLIC SvtOptionsDrawinglayer
Do it in your source only.
*/
- static SvtOptionsDrawinglayer_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtOptionsDrawinglayer_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtOptionsDrawinglayer
+}; // class SvtOptionsDrawinglayer
-#endif // #ifndef INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX
+#endif // #ifndef INCLUDED_SVTOOLS_OPTIONSDRAWINGLAYER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/parhtml.hxx b/svtools/inc/svtools/parhtml.hxx
index ddf0352c558a..087c605fbab9 100644
--- a/svtools/inc/svtools/parhtml.hxx
+++ b/svtools/inc/svtools/parhtml.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,18 +63,18 @@ enum HTMLTableRules { HTML_TR_NONE, HTML_TR_GROUPS, HTML_TR_ROWS,
enum HTMLInputType
{
- HTML_IT_TEXT = 0x01,
- HTML_IT_PASSWORD = 0x02,
- HTML_IT_CHECKBOX = 0x03,
- HTML_IT_RADIO = 0x04,
- HTML_IT_RANGE = 0x05,
- HTML_IT_SCRIBBLE = 0x06,
- HTML_IT_FILE = 0x07,
- HTML_IT_HIDDEN = 0x08,
- HTML_IT_SUBMIT = 0x09,
- HTML_IT_IMAGE = 0x0a,
- HTML_IT_RESET = 0x0b,
- HTML_IT_BUTTON = 0x0c
+ HTML_IT_TEXT = 0x01,
+ HTML_IT_PASSWORD = 0x02,
+ HTML_IT_CHECKBOX = 0x03,
+ HTML_IT_RADIO = 0x04,
+ HTML_IT_RANGE = 0x05,
+ HTML_IT_SCRIBBLE = 0x06,
+ HTML_IT_FILE = 0x07,
+ HTML_IT_HIDDEN = 0x08,
+ HTML_IT_SUBMIT = 0x09,
+ HTML_IT_IMAGE = 0x0a,
+ HTML_IT_RESET = 0x0b,
+ HTML_IT_BUTTON = 0x0c
};
enum HTMLScriptLanguage
@@ -86,8 +86,8 @@ enum HTMLScriptLanguage
struct HTMLOptionEnum
{
- const sal_Char *pName; // Wert einer HTML-Option
- sal_uInt16 nValue; // und der dazugehoerige Wert eines Enums
+ const sal_Char *pName; // Wert einer HTML-Option
+ sal_uInt16 nValue; // und der dazugehoerige Wert eines Enums
};
// Repraesentation einer HTML-Option (=Atrribut in einem Start-Tag)
@@ -97,26 +97,26 @@ struct HTMLOptionEnum
class SVT_DLLPUBLIC HTMLOption
{
- String aValue; // der Wert der Option (immer als String)
- String aToken; // der Name der Option als String
- sal_uInt16 nToken; // und das entsprechende Token
+ String aValue; // der Wert der Option (immer als String)
+ String aToken; // der Name der Option als String
+ sal_uInt16 nToken; // und das entsprechende Token
public:
HTMLOption( sal_uInt16 nTyp, const String& rToken, const String& rValue );
// der Name der Option ...
- sal_uInt16 GetToken() const { return nToken; } // ... als Enum
+ sal_uInt16 GetToken() const { return nToken; } // ... als Enum
const String& GetTokenString() const { return aToken; } // ... als String
// der Wert der Option ...
- const String& GetString() const { return aValue; } // ... als String
+ const String& GetString() const { return aValue; } // ... als String
- sal_uInt32 GetNumber() const; // ... als Zahl
- sal_Int32 GetSNumber() const; // ... als Zahl
- void GetNumbers( SvULongs &rLongs, // ... als Zahlen
+ sal_uInt32 GetNumber() const; // ... als Zahl
+ sal_Int32 GetSNumber() const; // ... als Zahl
+ void GetNumbers( SvULongs &rLongs, // ... als Zahlen
sal_Bool bSpaceDelim=sal_False ) const;
- void GetColor( Color& ) const; // ... als Farbe
+ void GetColor( Color& ) const; // ... als Farbe
// ... als Enum pOptEnums ist ein HTMLOptionEnum-Array
sal_uInt16 GetEnum( const HTMLOptionEnum *pOptEnums,
@@ -124,10 +124,10 @@ public:
BOOL GetEnum( sal_uInt16 &rEnum, const HTMLOptionEnum *pOptEnums ) const;
// ... und als ein par spezielle Enums
- HTMLInputType GetInputType() const; // <INPUT TYPE=...>
- HTMLTableFrame GetTableFrame() const; // <TABLE FRAME=...>
- HTMLTableRules GetTableRules() const; // <TABLE RULES=...>
- //SvxAdjust GetAdjust() const; // <P,TH,TD ALIGN=>
+ HTMLInputType GetInputType() const; // <INPUT TYPE=...>
+ HTMLTableFrame GetTableFrame() const; // <TABLE FRAME=...>
+ HTMLTableRules GetTableRules() const; // <TABLE RULES=...>
+ //SvxAdjust GetAdjust() const; // <P,TH,TD ALIGN=>
};
typedef HTMLOption* HTMLOptionPtr;
@@ -135,28 +135,28 @@ SV_DECL_PTRARR(HTMLOptions,HTMLOptionPtr,16,16)
class SVT_DLLPUBLIC HTMLParser : public SvParser
{
- BOOL bNewDoc : 1; // neues Doc lesen ?
- BOOL bIsInHeader : 1; // scanne Header-Bereich
- BOOL bIsInBody : 1; // scanne Body-Bereich
- BOOL bReadListing : 1; // Lese Listings
- BOOL bReadXMP : 1; // Lese XMP
- BOOL bReadPRE : 1; // Lese preformatted Text
- BOOL bReadTextArea : 1; // Lese TEXTAREA
- BOOL bReadScript : 1; // Lesen von <SCRIPT>
- BOOL bReadStyle : 1; // Lesen von <STYLE>
- BOOL bEndTokenFound : 1; // </SCRIPT> oder </STYLE> gefunden
-
- BOOL bPre_IgnoreNewPara : 1; // Flags fuers lesen von PRE-Absaetzen
- BOOL bReadNextChar : 1; // TRUE: NextChar nochmals lesen (JavaScript!)
- BOOL bReadComment : 1; // TRUE: NextChar nochmals lesen (JavaScript!)
-
- sal_uInt32 nPre_LinePos; // Pos in der Line im PRE-Tag
-
- HTMLOptions *pOptions; // die Optionen des Start-Tags
+ BOOL bNewDoc : 1; // neues Doc lesen ?
+ BOOL bIsInHeader : 1; // scanne Header-Bereich
+ BOOL bIsInBody : 1; // scanne Body-Bereich
+ BOOL bReadListing : 1; // Lese Listings
+ BOOL bReadXMP : 1; // Lese XMP
+ BOOL bReadPRE : 1; // Lese preformatted Text
+ BOOL bReadTextArea : 1; // Lese TEXTAREA
+ BOOL bReadScript : 1; // Lesen von <SCRIPT>
+ BOOL bReadStyle : 1; // Lesen von <STYLE>
+ BOOL bEndTokenFound : 1; // </SCRIPT> oder </STYLE> gefunden
+
+ BOOL bPre_IgnoreNewPara : 1; // Flags fuers lesen von PRE-Absaetzen
+ BOOL bReadNextChar : 1; // TRUE: NextChar nochmals lesen (JavaScript!)
+ BOOL bReadComment : 1; // TRUE: NextChar nochmals lesen (JavaScript!)
+
+ sal_uInt32 nPre_LinePos; // Pos in der Line im PRE-Tag
+
+ HTMLOptions *pOptions; // die Optionen des Start-Tags
String aEndToken;
protected:
- String sSaveToken; // das gelesene Tag als String
+ String sSaveToken; // das gelesene Tag als String
int ScanText( const sal_Unicode cBreak = 0U );
@@ -174,17 +174,17 @@ public:
virtual SvParserState CallParser(); // Aufruf des Parsers
- BOOL IsNewDoc() const { return bNewDoc; }
- BOOL IsInHeader() const { return bIsInHeader; }
- BOOL IsInBody() const { return bIsInBody; }
- BOOL IsValidSyntax() const { return TRUE; }
- BOOL IsReadListing() const { return bReadListing; }
- BOOL IsReadXMP() const { return bReadXMP; }
- BOOL IsReadPRE() const { return bReadPRE; }
- BOOL IsReadScript() const { return bReadScript; }
- BOOL IsReadStyle() const { return bReadStyle; }
+ BOOL IsNewDoc() const { return bNewDoc; }
+ BOOL IsInHeader() const { return bIsInHeader; }
+ BOOL IsInBody() const { return bIsInBody; }
+ BOOL IsValidSyntax() const { return TRUE; }
+ BOOL IsReadListing() const { return bReadListing; }
+ BOOL IsReadXMP() const { return bReadXMP; }
+ BOOL IsReadPRE() const { return bReadPRE; }
+ BOOL IsReadScript() const { return bReadScript; }
+ BOOL IsReadStyle() const { return bReadStyle; }
- void SetReadNextChar() { bReadNextChar = TRUE; }
+ void SetReadNextChar() { bReadNextChar = TRUE; }
// PRE-/LISTING oder XMP-Modus starten/beenden oder Tags entsprechend
// filtern
@@ -226,8 +226,8 @@ public:
const HTMLOptions *GetOptions( sal_uInt16 *pNoConvertToken=0 ) const;
// fuers asynchrone lesen aus dem SvStream
-// virtual void SaveState( int nToken );
-// virtual void RestoreState();
+// virtual void SaveState( int nToken );
+// virtual void RestoreState();
virtual void Continue( int nToken );
diff --git a/svtools/inc/svtools/parrtf.hxx b/svtools/inc/svtools/parrtf.hxx
index 7bab3233f454..2cad738a867d 100644
--- a/svtools/inc/svtools/parrtf.hxx
+++ b/svtools/inc/svtools/parrtf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,11 +70,11 @@ protected:
virtual ~SvRTFParser();
- rtl_TextEncoding GetCodeSet() const { return eCodeSet; }
+ rtl_TextEncoding GetCodeSet() const { return eCodeSet; }
void SetEncoding( rtl_TextEncoding eEnc );
- rtl_TextEncoding GetUNICodeSet() const { return eUNICodeSet; }
- void SetUNICodeSet( rtl_TextEncoding eSet ) { eUNICodeSet = eSet; }
+ rtl_TextEncoding GetUNICodeSet() const { return eUNICodeSet; }
+ void SetUNICodeSet( rtl_TextEncoding eSet ) { eUNICodeSet = eSet; }
public:
SvRTFParser( SvStream& rIn, BYTE nStackSize = 3 );
@@ -84,8 +84,8 @@ public:
int GetOpenBrakets() const { return nOpenBrakets; }
// fuers asynchrone lesen aus dem SvStream
-// virtual void SaveState( int nToken );
-// virtual void RestoreState();
+// virtual void SaveState( int nToken );
+// virtual void RestoreState();
virtual void Continue( int nToken );
};
diff --git a/svtools/inc/svtools/popupmenucontrollerbase.hxx b/svtools/inc/svtools/popupmenucontrollerbase.hxx
index 5bd15cf68d25..cb1554d9f804 100644
--- a/svtools/inc/svtools/popupmenucontrollerbase.hxx
+++ b/svtools/inc/svtools/popupmenucontrollerbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include "svtools/svtdllapi.h"
//_________________________________________________________________________________________________________________
-// interface includes
+// interface includes
//_________________________________________________________________________________________________________________
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XTypeProvider.hpp>
@@ -47,7 +47,7 @@
#include <com/sun/star/uri/XUriReference.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
//_________________________________________________________________________________________________________________
-// includes of other projects
+// includes of other projects
//_________________________________________________________________________________________________________________
#include <toolkit/awt/vclxmenu.hxx>
#include <cppuhelper/compbase7.hxx>
@@ -59,8 +59,8 @@ namespace svt
{
struct PopupMenuControllerBaseDispatchInfo;
- typedef ::cppu::WeakComponentImplHelper7<
- com::sun::star::lang::XServiceInfo ,
+ typedef ::cppu::WeakComponentImplHelper7<
+ com::sun::star::lang::XServiceInfo ,
com::sun::star::frame::XPopupMenuController ,
com::sun::star::lang::XInitialization ,
com::sun::star::frame::XStatusListener ,
@@ -68,7 +68,7 @@ namespace svt
com::sun::star::frame::XDispatchProvider ,
com::sun::star::frame::XDispatch > PopupMenuControllerBaseType;
- class SVT_DLLPUBLIC PopupMenuControllerBase : protected ::comphelper::OBaseMutex, // Struct for right initalization of mutex member! Must be first of baseclasses.
+ class SVT_DLLPUBLIC PopupMenuControllerBase : protected ::comphelper::OBaseMutex, // Struct for right initalization of mutex member! Must be first of baseclasses.
public PopupMenuControllerBaseType
{
public:
@@ -79,14 +79,14 @@ namespace svt
virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException) = 0;
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException) = 0;
-
+
// XPopupMenuController
virtual void SAL_CALL setPopupMenu( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu >& PopupMenu ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL updatePopupMenu() throw (::com::sun::star::uno::RuntimeException);
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
+
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ) = 0;
@@ -101,13 +101,13 @@ namespace svt
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > > SAL_CALL queryDispatches( const ::com::sun::star::uno::Sequence< ::com::sun::star::frame::DispatchDescriptor >& lDescriptor ) throw( ::com::sun::star::uno::RuntimeException );
// XDispatch
- virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& seqProperties ) throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& seqProperties ) throw( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL addStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL removeStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw( ::com::sun::star::uno::RuntimeException );
-
+ virtual void SAL_CALL removeStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw( ::com::sun::star::uno::RuntimeException );
+
// XEventListener
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
void dispatchCommand( const ::rtl::OUString& sCommandURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rArgs );
protected:
diff --git a/svtools/inc/svtools/popupwindowcontroller.hxx b/svtools/inc/svtools/popupwindowcontroller.hxx
index 1d9c2b4ba407..c5f0f15fbdf1 100644
--- a/svtools/inc/svtools/popupwindowcontroller.hxx
+++ b/svtools/inc/svtools/popupwindowcontroller.hxx
@@ -61,7 +61,7 @@ public:
virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException ) = 0;
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException ) = 0;
-
+
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
@@ -78,7 +78,7 @@ public:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL createPopupWindow() throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL createItemWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& Parent ) throw (::com::sun::star::uno::RuntimeException);
private:
- boost::scoped_ptr< PopupWindowControllerImpl > mpImpl;
+ boost::scoped_ptr< PopupWindowControllerImpl > mpImpl;
};
} // namespace svt
diff --git a/svtools/inc/svtools/printdlg.hxx b/svtools/inc/svtools/printdlg.hxx
index 575dc2830134..e4fdbe1d6f7a 100644
--- a/svtools/inc/svtools/printdlg.hxx
+++ b/svtools/inc/svtools/printdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,24 +66,24 @@ enum PrintSheetRange
class SVT_DLLPUBLIC PrintDialog : public ModalDialog
{
private:
- FixedLine maFlPrinter;
- FixedText maFtName;
- ListBox maLbName;
- PushButton maBtnProperties;
- FixedText maFtStatus;
- FixedInfo maFiStatus;
- FixedText maFtType;
- FixedInfo maFiType;
- FixedText maFtLocation;
- FixedInfo maFiLocation;
- FixedText maFtComment;
- FixedInfo maFiComment;
+ FixedLine maFlPrinter;
+ FixedText maFtName;
+ ListBox maLbName;
+ PushButton maBtnProperties;
+ FixedText maFtStatus;
+ FixedInfo maFiStatus;
+ FixedText maFtType;
+ FixedInfo maFiType;
+ FixedText maFtLocation;
+ FixedInfo maFiLocation;
+ FixedText maFtComment;
+ FixedInfo maFiComment;
// "Print to file" or "Fax number"
CheckBox maCbxFilePrint;
- FixedInfo maFiPrintFile;
- FixedText maFiFaxNo;
- Edit maEdtFaxNo;
+ FixedInfo maFiPrintFile;
+ FixedText maFiFaxNo;
+ Edit maEdtFaxNo;
//PushButton maBtnBrowse_nomore;
// "Print"
@@ -94,8 +94,8 @@ private:
// "Print range"
FixedLine maFlPrintRange;
- RadioButton maRbtAll;
- RadioButton maRbtPages;
+ RadioButton maRbtAll;
+ RadioButton maRbtPages;
RadioButton maRbtSelection;
Edit maEdtPages;
@@ -103,41 +103,41 @@ private:
// "Copies"
FixedLine maFlCopies;
- FixedText maFtCopies;
- NumericField maNumCopies;
- FixedImage maImgCollate;
- FixedImage maImgNotCollate;
- CheckBox maCbxCollate;
+ FixedText maFtCopies;
+ NumericField maNumCopies;
+ FixedImage maImgCollate;
+ FixedImage maImgNotCollate;
+ CheckBox maCbxCollate;
FixedLine maFlSepButtonLine;
PushButton maBtnOptions;
- OKButton maBtnOK;
- CancelButton maBtnCancel;
- HelpButton maBtnHelp;
+ OKButton maBtnOK;
+ CancelButton maBtnCancel;
+ HelpButton maBtnHelp;
AutoTimer maStatusTimer;
- Printer* mpPrinter;
+ Printer* mpPrinter;
SvtPrinterImpl* mpPrinterImpl;
- XubString maRangeText;
- USHORT mnCopyCount;
- USHORT mnFirstPage;
- USHORT mnLastPage;
- USHORT mnMinPage;
- USHORT mnMaxPage;
- PrintDialogRange meCheckRange;
- BOOL mbAll;
- BOOL mbSelection;
- BOOL mbFromTo;
- BOOL mbRange;
- BOOL mbCollate;
- BOOL mbCollateCheck;
- BOOL mbOptions;
+ XubString maRangeText;
+ USHORT mnCopyCount;
+ USHORT mnFirstPage;
+ USHORT mnLastPage;
+ USHORT mnMinPage;
+ USHORT mnMaxPage;
+ PrintDialogRange meCheckRange;
+ BOOL mbAll;
+ BOOL mbSelection;
+ BOOL mbFromTo;
+ BOOL mbRange;
+ BOOL mbCollate;
+ BOOL mbCollateCheck;
+ BOOL mbOptions;
bool mbWithSheetsAndCells;
- Link maOptionsHdlLink; // Link zum Options-Handler
- Link maOKHdlLink; // Link zum OK-Handler
+ Link maOptionsHdlLink; // Link zum Options-Handler
+ Link maOKHdlLink; // Link zum OK-Handler
- String maAllFilterStr;
+ String maAllFilterStr;
SVT_DLLPRIVATE void ImplCheckOK();
SVT_DLLPRIVATE void ImplInitControls();
@@ -155,11 +155,11 @@ public:
PrintDialog( Window* pWindow, bool bWithSheetsAndCells );
~PrintDialog();
- virtual long OK();
- virtual long ClickOptionsHdl();
+ virtual long OK();
+ virtual long ClickOptionsHdl();
- void SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
- Printer* GetPrinter() const { return mpPrinter; }
+ void SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
+ Printer* GetPrinter() const { return mpPrinter; }
inline bool IsSheetRangeAvailable() const { return mbWithSheetsAndCells; }
void EnableSheetRange( bool bEnable, PrintSheetRange eRange );
@@ -169,53 +169,53 @@ public:
bool IsSheetRangeChecked( PrintSheetRange eRange ) const;
void EnableRange( PrintDialogRange eRange );
- void DisableRange( PrintDialogRange eRange );
- BOOL IsRangeEnabled( PrintDialogRange eRange ) const;
+ void DisableRange( PrintDialogRange eRange );
+ BOOL IsRangeEnabled( PrintDialogRange eRange ) const;
- void CheckRange( PrintDialogRange eRange = PRINTDIALOG_ALL )
+ void CheckRange( PrintDialogRange eRange = PRINTDIALOG_ALL )
{ meCheckRange = eRange; }
- PrintDialogRange GetCheckedRange() const { return meCheckRange; }
- BOOL IsRangeChecked( PrintDialogRange eRange ) const;
+ PrintDialogRange GetCheckedRange() const { return meCheckRange; }
+ BOOL IsRangeChecked( PrintDialogRange eRange ) const;
- void SetRangeText( const XubString& rRange ) { maRangeText = rRange; }
- const XubString& GetRangeText() const { return maRangeText; }
+ void SetRangeText( const XubString& rRange ) { maRangeText = rRange; }
+ const XubString& GetRangeText() const { return maRangeText; }
- void SetFirstPage( USHORT nPage = 0 );
- USHORT GetFirstPage() const { return mnFirstPage; }
- void SetLastPage( USHORT nPage = 0 );
- USHORT GetLastPage() const { return mnLastPage; }
+ void SetFirstPage( USHORT nPage = 0 );
+ USHORT GetFirstPage() const { return mnFirstPage; }
+ void SetLastPage( USHORT nPage = 0 );
+ USHORT GetLastPage() const { return mnLastPage; }
- void SetMinPage( USHORT nPage = 1 ) { mnMinPage = nPage; }
- USHORT GetMinPage() const { return mnMinPage; }
- void SetMaxPage( USHORT nPage = 65535 ) { mnMaxPage = nPage; }
- USHORT GetMaxPage() const { return mnMaxPage; }
+ void SetMinPage( USHORT nPage = 1 ) { mnMinPage = nPage; }
+ USHORT GetMinPage() const { return mnMinPage; }
+ void SetMaxPage( USHORT nPage = 65535 ) { mnMaxPage = nPage; }
+ USHORT GetMaxPage() const { return mnMaxPage; }
- void SetCopyCount( USHORT nCopies = 1 ) { mnCopyCount = nCopies; }
- USHORT GetCopyCount() const { return mnCopyCount; }
+ void SetCopyCount( USHORT nCopies = 1 ) { mnCopyCount = nCopies; }
+ USHORT GetCopyCount() const { return mnCopyCount; }
- void EnableCollate( BOOL bEnable = TRUE )
+ void EnableCollate( BOOL bEnable = TRUE )
{ mbCollate = bEnable; }
- BOOL IsCollateEnabled() const { return mbCollate; }
- void CheckCollate( BOOL bCheck = TRUE )
+ BOOL IsCollateEnabled() const { return mbCollate; }
+ void CheckCollate( BOOL bCheck = TRUE )
{ mbCollateCheck = bCheck; }
- BOOL IsCollateChecked() const { return mbCollateCheck; }
+ BOOL IsCollateChecked() const { return mbCollateCheck; }
- void ShowOptionsButton( BOOL bShow = TRUE )
+ void ShowOptionsButton( BOOL bShow = TRUE )
{ mbOptions = bShow; }
- BOOL IsOptionsButtonVisible() const { return mbOptions; }
+ BOOL IsOptionsButtonVisible() const { return mbOptions; }
- void SetOptionsHdl( const Link& rLink ) { maOptionsHdlLink = rLink; }
- const Link& GetOptionsHdl() const { return maOptionsHdlLink; }
+ void SetOptionsHdl( const Link& rLink ) { maOptionsHdlLink = rLink; }
+ const Link& GetOptionsHdl() const { return maOptionsHdlLink; }
- void SetOKHdl( const Link& rLink ) { maOKHdlLink = rLink; }
- const Link& GetOKHdl() const { return maOKHdlLink; }
+ void SetOKHdl( const Link& rLink ) { maOKHdlLink = rLink; }
+ const Link& GetOKHdl() const { return maOKHdlLink; }
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
- virtual short Execute();
+ virtual short Execute();
- void DisableHelp();
+ void DisableHelp();
};
inline void PrintDialog::EnableRange( PrintDialogRange eRange )
diff --git a/svtools/inc/svtools/printoptions.hxx b/svtools/inc/svtools/printoptions.hxx
index cf0be185c23a..fe1e1791ba4c 100644
--- a/svtools/inc/svtools/printoptions.hxx
+++ b/svtools/inc/svtools/printoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,18 +60,18 @@ public:
SvtBasePrintOptions();
virtual ~SvtBasePrintOptions();
- sal_Bool IsReduceTransparency() const;
+ sal_Bool IsReduceTransparency() const;
sal_Int16 GetReducedTransparencyMode() const;
- sal_Bool IsReduceGradients() const;
+ sal_Bool IsReduceGradients() const;
sal_Int16 GetReducedGradientMode() const;
sal_Int16 GetReducedGradientStepCount() const;
- sal_Bool IsReduceBitmaps() const;
+ sal_Bool IsReduceBitmaps() const;
sal_Int16 GetReducedBitmapMode() const;
sal_Int16 GetReducedBitmapResolution() const;
- sal_Bool IsReducedBitmapIncludesTransparency() const;
- sal_Bool IsConvertToGreyscales() const;
+ sal_Bool IsReducedBitmapIncludesTransparency() const;
+ sal_Bool IsConvertToGreyscales() const;
- void SetReduceTransparency( sal_Bool bState );
+ void SetReduceTransparency( sal_Bool bState );
void SetReducedTransparencyMode( sal_Int16 nMode );
void SetReduceGradients( sal_Bool bState );
void SetReducedGradientMode( sal_Int16 nMode );
@@ -96,8 +96,8 @@ class SVT_DLLPUBLIC SvtPrinterOptions : public SvtBasePrintOptions
{
private:
- static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount; /// internal ref count mechanism
+ static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount; /// internal ref count mechanism
public:
@@ -113,8 +113,8 @@ class SVT_DLLPUBLIC SvtPrintFileOptions : public SvtBasePrintOptions
{
private:
- static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount; /// internal ref count mechanism
+ static SvtPrintOptions_Impl* m_pStaticDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount; /// internal ref count mechanism
public:
diff --git a/svtools/inc/svtools/prnsetup.hxx b/svtools/inc/svtools/prnsetup.hxx
index 46542b9081e9..a8968b2def03 100644
--- a/svtools/inc/svtools/prnsetup.hxx
+++ b/svtools/inc/svtools/prnsetup.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,28 +49,28 @@ class QueueInfo;
class SVT_DLLPUBLIC PrinterSetupDialog : public ModalDialog
{
private:
- FixedLine maFlPrinter;
- FixedText maFtName;
- ListBox maLbName;
- PushButton maBtnProperties;
+ FixedLine maFlPrinter;
+ FixedText maFtName;
+ ListBox maLbName;
+ PushButton maBtnProperties;
PushButton maBtnOptions;
- FixedText maFtStatus;
- FixedInfo maFiStatus;
- FixedText maFtType;
- FixedInfo maFiType;
- FixedText maFtLocation;
- FixedInfo maFiLocation;
- FixedText maFtComment;
- FixedInfo maFiComment;
- FixedLine maFlSepButton;
- OKButton maBtnOK;
- CancelButton maBtnCancel;
- HelpButton maBtnHelp;
- AutoTimer maStatusTimer;
- Printer* mpPrinter;
- Printer* mpTempPrinter;
-
- SVT_DLLPRIVATE void ImplSetInfo();
+ FixedText maFtStatus;
+ FixedInfo maFiStatus;
+ FixedText maFtType;
+ FixedInfo maFiType;
+ FixedText maFtLocation;
+ FixedInfo maFiLocation;
+ FixedText maFtComment;
+ FixedInfo maFiComment;
+ FixedLine maFlSepButton;
+ OKButton maBtnOK;
+ CancelButton maBtnCancel;
+ HelpButton maBtnHelp;
+ AutoTimer maStatusTimer;
+ Printer* mpPrinter;
+ Printer* mpTempPrinter;
+
+ SVT_DLLPRIVATE void ImplSetInfo();
DECL_DLLPRIVATE_LINK( ImplPropertiesHdl, void* );
DECL_DLLPRIVATE_LINK( ImplOptionsHdl, void* );
@@ -81,23 +81,23 @@ public:
PrinterSetupDialog( Window* pWindow );
~PrinterSetupDialog();
- void SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
- Printer* GetPrinter() const { return mpPrinter; }
+ void SetPrinter( Printer* pNewPrinter ) { mpPrinter = pNewPrinter; }
+ Printer* GetPrinter() const { return mpPrinter; }
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
- virtual short Execute();
+ virtual short Execute();
- void SetOptionsHdl( const Link& rLink );
- const Link& GetOptionsHdl() const;
+ void SetOptionsHdl( const Link& rLink );
+ const Link& GetOptionsHdl() const;
};
// --------------------------------------
// - Hilfsfunktionen fuer Print-Dialoge -
// --------------------------------------
-#define IMPL_PRINTDLG_STATUS_UPDATE 15000
+#define IMPL_PRINTDLG_STATUS_UPDATE 15000
void ImplFillPrnDlgListBox( const Printer* pPrinter,
ListBox* pBox, PushButton* pPropBtn );
diff --git a/svtools/inc/svtools/roadmapwizard.hxx b/svtools/inc/svtools/roadmapwizard.hxx
index 6dd2b5302987..e4adbc0d0289 100644
--- a/svtools/inc/svtools/roadmapwizard.hxx
+++ b/svtools/inc/svtools/roadmapwizard.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,8 +88,8 @@ namespace svt
);
~RoadmapWizard( );
- void SetRoadmapBitmap( const BitmapEx& _rBitmap );
- const BitmapEx& GetRoadmapBitmap( ) const;
+ void SetRoadmapBitmap( const BitmapEx& _rBitmap );
+ const BitmapEx& GetRoadmapBitmap( ) const;
void SetRoadmapSmartHelpId( const SmartId& _rId, SmartIdUpdateMode _aMode = SMART_SET_SMART );
SmartId GetRoadmapSmartHelpId() const;
@@ -97,7 +97,7 @@ namespace svt
void SetRoadmapInteractive( sal_Bool _bInteractive );
sal_Bool IsRoadmapInteractive();
virtual void Resize();
- virtual void StateChanged( StateChangedType nStateChange );
+ virtual void StateChanged( StateChangedType nStateChange );
// returns whether a given state is enabled
bool isStateEnabled( WizardState _nState ) const;
@@ -224,7 +224,7 @@ protected:
This member is inherited from OWizardMachine, and default-implemented in this class
for all states which have been described using describeState.
*/
- virtual TabPage* createPage( WizardState _nState );
+ virtual TabPage* createPage( WizardState _nState );
/** asks for a new label of the wizard page
diff --git a/svtools/inc/svtools/stdctrl.hxx b/svtools/inc/svtools/stdctrl.hxx
index b8f6a12019cd..9582943b3130 100644
--- a/svtools/inc/svtools/stdctrl.hxx
+++ b/svtools/inc/svtools/stdctrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/stringtransfer.hxx b/svtools/inc/svtools/stringtransfer.hxx
index 7295dec2a261..06ace6e803c2 100644
--- a/svtools/inc/svtools/stringtransfer.hxx
+++ b/svtools/inc/svtools/stringtransfer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,15 +43,15 @@ namespace svt
class SVT_DLLPUBLIC OStringTransferable : public TransferableHelper
{
protected:
- ::rtl::OUString m_sContent;
+ ::rtl::OUString m_sContent;
public:
OStringTransferable(const ::rtl::OUString& _rContent);
protected:
// TransferableHelper overridables
- virtual void AddSupportedFormats();
- virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor );
+ virtual void AddSupportedFormats();
+ virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& _rFlavor );
};
//====================================================================
@@ -64,20 +64,20 @@ namespace svt
<p>Beware: In opposite to the old DragServer::CopyString, this method does not <em>add</em> the string
to the clipboard, instead the old clipboard content is <em>replaced</em>!</p>
*/
- SVT_DLLPUBLIC static void CopyString( const ::rtl::OUString& _rContent, Window* _pWindow = NULL );
+ SVT_DLLPUBLIC static void CopyString( const ::rtl::OUString& _rContent, Window* _pWindow = NULL );
/** extracts a string from the system clipboard given
@return <TRUE/> if the extraction was successfull, i.e. if the clipboard contained a string content
*/
- SVT_DLLPUBLIC static sal_Bool PasteString( ::rtl::OUString& _rContent, Window* _pWindow = NULL );
+ SVT_DLLPUBLIC static sal_Bool PasteString( ::rtl::OUString& _rContent, Window* _pWindow = NULL );
/** starts dragging a simple string
*/
- SVT_DLLPUBLIC static void StartStringDrag( const ::rtl::OUString& _rContent, Window* _pWindow, sal_Int8 _nDragSourceActions );
+ SVT_DLLPUBLIC static void StartStringDrag( const ::rtl::OUString& _rContent, Window* _pWindow, sal_Int8 _nDragSourceActions );
};
//........................................................................
-} // namespace svt
+} // namespace svt
//........................................................................
#endif // _SVTOOLS_STRINGTRANSFER_HXX_
diff --git a/svtools/inc/svtools/svicnvw.hxx b/svtools/inc/svtools/svicnvw.hxx
index ea09cbf62c6d..c63bf82325c6 100644
--- a/svtools/inc/svtools/svicnvw.hxx
+++ b/svtools/inc/svtools/svicnvw.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,43 +39,43 @@ class SvLBoxString;
class SvLBoxContextBmp;
class SvPtrarr;
-#define WB_ICON 0x0001
-#define WB_NAME 0x0002
-#define WB_TEXT 0x0004
-#define WB_FLOW 0x0008
+#define WB_ICON 0x0001
+#define WB_NAME 0x0002
+#define WB_TEXT 0x0004
+#define WB_FLOW 0x0008
-#define ICNVW_FLAG_POS_LOCKED 0x0001
-#define ICNVW_FLAG_USER1 0x1000
-#define ICNVW_FLAG_USER2 0x2000
-#define ICNVW_FLAG_USER3 0x4000
-#define ICNVW_FLAG_USER4 0x8000
+#define ICNVW_FLAG_POS_LOCKED 0x0001
+#define ICNVW_FLAG_USER1 0x1000
+#define ICNVW_FLAG_USER2 0x2000
+#define ICNVW_FLAG_USER3 0x4000
+#define ICNVW_FLAG_USER4 0x8000
enum SvIconViewTextMode
{
ShowTextFull = 1,
ShowTextShort,
- ShowTextSmart, // not implemented
- ShowTextDontKnow // nur fuer Eintraege (->Einstellung der View
+ ShowTextSmart, // not implemented
+ ShowTextDontKnow // nur fuer Eintraege (->Einstellung der View
// wird genommen)
};
class SvIcnVwDataEntry : public SvViewDataEntry
{
friend class SvImpIconView;
- USHORT nIcnVwFlags;
+ USHORT nIcnVwFlags;
SvIconViewTextMode eTextMode;
public:
- Rectangle aRect; // Bounding-Rect des Entries
- Rectangle aGridRect; // gesetzt im Grid-Modus
- Size aTextSize; // nur gesetzt im Grid-Modus
- USHORT nX,nY; // fuer Tastatursteuerung
+ Rectangle aRect; // Bounding-Rect des Entries
+ Rectangle aGridRect; // gesetzt im Grid-Modus
+ Size aTextSize; // nur gesetzt im Grid-Modus
+ USHORT nX,nY; // fuer Tastatursteuerung
SvIcnVwDataEntry();
- virtual ~SvIcnVwDataEntry();
+ virtual ~SvIcnVwDataEntry();
- BOOL IsEntryPosLocked() const { return (BOOL)((nIcnVwFlags & ICNVW_FLAG_POS_LOCKED) !=0); }
- void ClearVwFlags( USHORT nMask ) { nIcnVwFlags &= (~nMask); }
- void SetVwFlags( USHORT nMask ) { nIcnVwFlags |= nMask; }
- USHORT GetVwFlags() const { return nIcnVwFlags; }
+ BOOL IsEntryPosLocked() const { return (BOOL)((nIcnVwFlags & ICNVW_FLAG_POS_LOCKED) !=0); }
+ void ClearVwFlags( USHORT nMask ) { nIcnVwFlags &= (~nMask); }
+ void SetVwFlags( USHORT nMask ) { nIcnVwFlags |= nMask; }
+ USHORT GetVwFlags() const { return nIcnVwFlags; }
SvIconViewTextMode GetTextMode() const { return eTextMode; }
};
@@ -85,31 +85,31 @@ class SvIconView : public SvLBox
{
friend class SvImpIconView;
- SvImpIconView* pImp;
- Image aCollapsedEntryBmp;
- Image aExpandedEntryBmp;
- WinBits nWinBits;
- USHORT nIcnVwFlags;
- void SetModel( SvLBoxTreeList* );
+ SvImpIconView* pImp;
+ Image aCollapsedEntryBmp;
+ Image aExpandedEntryBmp;
+ WinBits nWinBits;
+ USHORT nIcnVwFlags;
+ void SetModel( SvLBoxTreeList* );
protected:
using SvLBox::CreateEntry;
- SvLBoxEntry* CreateEntry( const XubString&, const Image&, const Image&);
- void ViewDataInitialized( SvLBoxEntry* );
- virtual SvViewData* CreateViewData( SvListEntry* );
- virtual void InitViewData( SvViewData* pData, SvListEntry* pEntry );
-
- void EditingRequest(SvLBoxEntry*,SvLBoxItem*,const Point& );
- void EditedText( const XubString& );
- void EditItemText( SvLBoxEntry*,SvLBoxItem*,const Selection& );
- SvLBoxEntry* pCurEdEntry;
- SvLBoxItem* pCurEdItem;
-
- virtual void WriteDragServerInfo( const Point&, SvLBoxDDInfo* );
- virtual void ReadDragServerInfo( const Point&, SvLBoxDDInfo* );
+ SvLBoxEntry* CreateEntry( const XubString&, const Image&, const Image&);
+ void ViewDataInitialized( SvLBoxEntry* );
+ virtual SvViewData* CreateViewData( SvListEntry* );
+ virtual void InitViewData( SvViewData* pData, SvListEntry* pEntry );
+
+ void EditingRequest(SvLBoxEntry*,SvLBoxItem*,const Point& );
+ void EditedText( const XubString& );
+ void EditItemText( SvLBoxEntry*,SvLBoxItem*,const Selection& );
+ SvLBoxEntry* pCurEdEntry;
+ SvLBoxItem* pCurEdItem;
+
+ virtual void WriteDragServerInfo( const Point&, SvLBoxDDInfo* );
+ virtual void ReadDragServerInfo( const Point&, SvLBoxDDInfo* );
virtual void Command( const CommandEvent& rCEvt );
- virtual void PreparePaint( SvLBoxEntry* );
+ virtual void PreparePaint( SvLBoxEntry* );
public:
@@ -119,35 +119,35 @@ public:
void DisconnectFromModel();
- SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
+ SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
BOOL bChildsOnDemand = FALSE,
ULONG nPos=LIST_APPEND );
- SvLBoxEntry* InsertEntry( const XubString& rText,
+ SvLBoxEntry* InsertEntry( const XubString& rText,
const Image& rExpandedEntryBmp,
const Image& rCollapsedEntryBmp,
SvLBoxEntry* pParent = 0,
BOOL bChildsOnDemand = FALSE,
ULONG nPos = LIST_APPEND );
- const Image& GetDefaultExpandedEntryBmp() const { return aExpandedEntryBmp;}
- const Image& GetDefaultCollapsedEntryBmp() const { return aCollapsedEntryBmp;}
- void SetDefaultExpandedEntryBmp( const Image& rBmp) { aExpandedEntryBmp=rBmp;}
- void SetDefaultCollapsedEntryBmp( const Image& rBmp ) { aCollapsedEntryBmp=rBmp;}
+ const Image& GetDefaultExpandedEntryBmp() const { return aExpandedEntryBmp;}
+ const Image& GetDefaultCollapsedEntryBmp() const { return aCollapsedEntryBmp;}
+ void SetDefaultExpandedEntryBmp( const Image& rBmp) { aExpandedEntryBmp=rBmp;}
+ void SetDefaultCollapsedEntryBmp( const Image& rBmp ) { aCollapsedEntryBmp=rBmp;}
- void SetEntryText(SvLBoxEntry*, const XubString& );
- void SetExpandedEntryBmp(SvLBoxEntry*, const Image& );
- void SetCollapsedEntryBmp(SvLBoxEntry*, const Image& );
+ void SetEntryText(SvLBoxEntry*, const XubString& );
+ void SetExpandedEntryBmp(SvLBoxEntry*, const Image& );
+ void SetCollapsedEntryBmp(SvLBoxEntry*, const Image& );
- XubString GetEntryText(SvLBoxEntry*) const;
- Image GetExpandedEntryBmp(SvLBoxEntry*) const;
- Image GetCollapsedEntryBmp(SvLBoxEntry*) const;
+ XubString GetEntryText(SvLBoxEntry*) const;
+ Image GetExpandedEntryBmp(SvLBoxEntry*) const;
+ Image GetCollapsedEntryBmp(SvLBoxEntry*) const;
virtual SvLBoxEntry* CloneEntry( SvLBoxEntry* pSource );
- virtual USHORT IsA();
+ virtual USHORT IsA();
- virtual void RequestingChilds( SvLBoxEntry* pParent );
+ virtual void RequestingChilds( SvLBoxEntry* pParent );
virtual void Paint( const Rectangle& rRect );
virtual void MouseButtonDown( const MouseEvent& rMEvt );
@@ -157,117 +157,117 @@ public:
virtual void Resize();
virtual void GetFocus();
virtual void LoseFocus();
- void SetUpdateMode( BOOL );
+ void SetUpdateMode( BOOL );
using SvListView::SetModel;
- virtual void SetModel( SvLBoxTreeList*, SvLBoxEntry* pParent );
- virtual void ModelHasCleared();
- virtual void ModelHasInserted( SvListEntry* pEntry );
- virtual void ModelHasInsertedTree( SvListEntry* pEntry );
- virtual void ModelIsMoving(SvListEntry* pSource,
+ virtual void SetModel( SvLBoxTreeList*, SvLBoxEntry* pParent );
+ virtual void ModelHasCleared();
+ virtual void ModelHasInserted( SvListEntry* pEntry );
+ virtual void ModelHasInsertedTree( SvListEntry* pEntry );
+ virtual void ModelIsMoving(SvListEntry* pSource,
SvListEntry* pTargetParent, ULONG nChildPos );
- virtual void ModelHasMoved(SvListEntry* pSource );
- virtual void ModelIsRemoving( SvListEntry* pEntry );
- virtual void ModelHasRemoved( SvListEntry* pEntry );
- virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
+ virtual void ModelHasMoved(SvListEntry* pSource );
+ virtual void ModelIsRemoving( SvListEntry* pEntry );
+ virtual void ModelHasRemoved( SvListEntry* pEntry );
+ virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
- virtual void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
+ virtual void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
using Window::GetDropTarget;
virtual SvLBoxEntry* GetDropTarget( const Point& );
- virtual Region GetDragRegion() const;
+ virtual Region GetDragRegion() const;
// NotifyMoving/Copying ueberladen, da wir bei GetDropTarget
// einen "magic pointer" zurueckgeben, falls in einen leeren
// Bereich auf der IconView gedroppt wird.
- virtual BOOL NotifyMoving( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
+ virtual BOOL NotifyMoving( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
SvLBoxEntry*& rpNewParent, ULONG& rNewChildPos);
- virtual BOOL NotifyCopying( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
+ virtual BOOL NotifyCopying( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
SvLBoxEntry*& rpNewParent, ULONG& rNewChildPos);
// gibt TopLeft des BoundingRects zurueck
// Konvertierung in Fensterposition: MapMode.Origin addieren
- Point GetEntryPosition( SvLBoxEntry* ) const;
- void SetEntryPosition( SvLBoxEntry*, const Point& rDocPos);
- void SetEntryPosition( SvLBoxEntry*, const Point& rDocPos,
+ Point GetEntryPosition( SvLBoxEntry* ) const;
+ void SetEntryPosition( SvLBoxEntry*, const Point& rDocPos);
+ void SetEntryPosition( SvLBoxEntry*, const Point& rDocPos,
BOOL bAdjustAtGrid );
- void SetFont( const Font& rFont );
- void SetDefaultFont();
+ void SetFont( const Font& rFont );
+ void SetDefaultFont();
using SvLBox::GetEntry;
- SvLBoxEntry* GetEntry( const Point& rPixPos, BOOL ) const;
+ SvLBoxEntry* GetEntry( const Point& rPixPos, BOOL ) const;
// Gibt den naechsten ueber pCurEntry liegenden Eintrag (ZOrder)
- SvLBoxEntry* GetNextEntry( const Point& rPixPos, SvLBoxEntry* pCurEntry, BOOL ) const;
+ SvLBoxEntry* GetNextEntry( const Point& rPixPos, SvLBoxEntry* pCurEntry, BOOL ) const;
// Gibt den naechsten unter pCurEntry liegenden Eintrag (ZOrder)
- SvLBoxEntry* GetPrevEntry( const Point& rPixPos, SvLBoxEntry* pCurEntry, BOOL ) const;
+ SvLBoxEntry* GetPrevEntry( const Point& rPixPos, SvLBoxEntry* pCurEntry, BOOL ) const;
- SvLBoxEntry* GetEntryFromLogicPos( const Point& rDocPos ) const;
+ SvLBoxEntry* GetEntryFromLogicPos( const Point& rDocPos ) const;
- void SetWindowBits( WinBits nWinStyle );
- virtual void PaintEntry( SvLBoxEntry* );
- virtual void PaintEntry( SvLBoxEntry*, const Point& rDocPos );
- Rectangle GetFocusRect( SvLBoxEntry* );
- void InvalidateEntry( SvLBoxEntry* );
- void MakeVisible( SvLBoxEntry* );
+ void SetWindowBits( WinBits nWinStyle );
+ virtual void PaintEntry( SvLBoxEntry* );
+ virtual void PaintEntry( SvLBoxEntry*, const Point& rDocPos );
+ Rectangle GetFocusRect( SvLBoxEntry* );
+ void InvalidateEntry( SvLBoxEntry* );
+ void MakeVisible( SvLBoxEntry* );
- void SetDragDropMode( DragDropMode );
- void SetSelectionMode( SelectionMode );
+ void SetDragDropMode( DragDropMode );
+ void SetSelectionMode( SelectionMode );
using SvListView::Select;
BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
- void SelectAll( BOOL bSelect, BOOL bPaint=TRUE );
+ void SelectAll( BOOL bSelect, BOOL bPaint=TRUE );
virtual void SetCurEntry( SvLBoxEntry* _pEntry );
virtual SvLBoxEntry*
GetCurEntry() const;
// logische Koordinaten
- void SelectRect(
+ void SelectRect(
const Rectangle& rRect,
BOOL bAdd = FALSE,
// die Schnittmenge mit rRect wird invertiert
// wird bei bAdd == FALSE ignoriert
SvPtrarr* pOtherRects = 0,
short nBorderOffs = -5 );
- ULONG GetSelectionCount() const;
+ ULONG GetSelectionCount() const;
- virtual void Arrange();
- void SetSpaceBetweenEntries( long nHor, long Ver );
- long GetHorSpaceBetweenEntries();
- long GetVerSpaceBetweenEntries();
+ virtual void Arrange();
+ void SetSpaceBetweenEntries( long nHor, long Ver );
+ long GetHorSpaceBetweenEntries();
+ long GetVerSpaceBetweenEntries();
- void EnableInplaceEditing( BOOL bEnable );
- void EditEntry( SvLBoxEntry* pEntry = 0 );
- virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
- virtual BOOL EditedEntry( SvLBoxEntry*, const XubString& rNewText );
+ void EnableInplaceEditing( BOOL bEnable );
+ void EditEntry( SvLBoxEntry* pEntry = 0 );
+ virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
+ virtual BOOL EditedEntry( SvLBoxEntry*, const XubString& rNewText );
- void SetCurParent( SvLBoxEntry* pNewParent );
- SvLBoxEntry* GetCurParent() const;
+ void SetCurParent( SvLBoxEntry* pNewParent );
+ SvLBoxEntry* GetCurParent() const;
- virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
+ virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
SvListEntry* pEntry2, ULONG nPos );
// 0,0: Grid-Modus ausschalten
- void SetGrid( long nDX, long nDY );
+ void SetGrid( long nDX, long nDY );
// nDeltaY < 0 : View bewegt sich auf dem Doc nach oben
// nDeltaY > 0 : View bewegt sich auf dem Doc nach unten
// nDeltaX < 0 : View bewegt sich auf dem Doc nach links
// nDeltaX > 0 : View bewegt sich auf dem Doc nach rechts
using Window::Scroll;
- virtual void Scroll( long nDeltaX, long nDeltaY, USHORT nFlags = 0 );
+ virtual void Scroll( long nDeltaX, long nDeltaY, USHORT nFlags = 0 );
- virtual void PrepareCommandEvent( const CommandEvent& );
- virtual void StartDrag( sal_Int8 nAction, const Point& );
- virtual void DragFinished( sal_Int8 );
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
+ virtual void PrepareCommandEvent( const CommandEvent& );
+ virtual void StartDrag( sal_Int8 nAction, const Point& );
+ virtual void DragFinished( sal_Int8 );
+ virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
using SvLBox::ExecuteDrop;
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
- void ShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
- void HideDDIcon();
- void HideShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
+ void ShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
+ void HideDDIcon();
+ void HideShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
// fuers Scrollen beim D&D
- void CalcScrollOffsets(
+ void CalcScrollOffsets(
const Point& rRefPosPixel,
long& rScrollX,
long& rScrollY,
@@ -275,15 +275,15 @@ public:
USHORT nBorderWidth = 10 );
using Window::EndTracking;
- void EndTracking();
- void AdjustAtGrid( SvLBoxEntry* pEntry = 0 );
- void LockEntryPos( SvLBoxEntry* pEntry, BOOL bLock = TRUE );
- BOOL IsEntryPosLocked( const SvLBoxEntry* pEntry ) const;
+ void EndTracking();
+ void AdjustAtGrid( SvLBoxEntry* pEntry = 0 );
+ void LockEntryPos( SvLBoxEntry* pEntry, BOOL bLock = TRUE );
+ BOOL IsEntryPosLocked( const SvLBoxEntry* pEntry ) const;
- void SetTextMode( SvIconViewTextMode, SvLBoxEntry* pEntry = 0 );
+ void SetTextMode( SvIconViewTextMode, SvLBoxEntry* pEntry = 0 );
SvIconViewTextMode GetTextMode( const SvLBoxEntry* pEntry = 0 ) const;
- void ShowFocusRect( const SvLBoxEntry* pEntry );
+ void ShowFocusRect( const SvLBoxEntry* pEntry );
};
#endif
diff --git a/svtools/inc/svtools/svlbitm.hxx b/svtools/inc/svtools/svlbitm.hxx
index f84c457abc4d..bdc2e2e78d01 100644
--- a/svtools/inc/svtools/svlbitm.hxx
+++ b/svtools/inc/svtools/svlbitm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,19 +39,19 @@
class SvLBoxEntry;
-#define SV_ITEM_ID_LBOXSTRING 1
-#define SV_ITEM_ID_LBOXBMP 2
-#define SV_ITEM_ID_LBOXBUTTON 3
-#define SV_ITEM_ID_LBOXCONTEXTBMP 4
+#define SV_ITEM_ID_LBOXSTRING 1
+#define SV_ITEM_ID_LBOXBMP 2
+#define SV_ITEM_ID_LBOXBUTTON 3
+#define SV_ITEM_ID_LBOXCONTEXTBMP 4
enum SvButtonState { SV_BUTTON_UNCHECKED, SV_BUTTON_CHECKED, SV_BUTTON_TRISTATE };
-#define SV_BMP_UNCHECKED 0
-#define SV_BMP_CHECKED 1
-#define SV_BMP_TRISTATE 2
-#define SV_BMP_HIUNCHECKED 3
-#define SV_BMP_HICHECKED 4
-#define SV_BMP_HITRISTATE 5
+#define SV_BMP_UNCHECKED 0
+#define SV_BMP_CHECKED 1
+#define SV_BMP_TRISTATE 2
+#define SV_BMP_HIUNCHECKED 3
+#define SV_BMP_HICHECKED 4
+#define SV_BMP_HITRISTATE 5
#define SV_BMP_STATICIMAGE 6
struct SvLBoxButtonData_Impl;
@@ -59,15 +59,15 @@ struct SvLBoxButtonData_Impl;
class SVT_DLLPUBLIC SvLBoxButtonData
{
private:
- Link aLink;
- long nWidth;
- long nHeight;
- SvLBoxButtonData_Impl* pImpl;
- BOOL bDataOk;
- SvButtonState eState;
-
- SVT_DLLPRIVATE void SetWidthAndHeight();
- SVT_DLLPRIVATE void InitData( BOOL bImagesFromDefault,
+ Link aLink;
+ long nWidth;
+ long nHeight;
+ SvLBoxButtonData_Impl* pImpl;
+ BOOL bDataOk;
+ SvButtonState eState;
+
+ SVT_DLLPRIVATE void SetWidthAndHeight();
+ SVT_DLLPRIVATE void InitData( BOOL bImagesFromDefault,
bool _bRadioBtn, const Control* pControlForSettings = NULL );
public:
// include creating default images (CheckBox or RadioButton)
@@ -77,27 +77,27 @@ public:
SvLBoxButtonData();
~SvLBoxButtonData();
- USHORT GetIndex( USHORT nItemState );
- inline long Width();
- inline long Height();
- void SetLink( const Link& rLink) { aLink=rLink; }
- const Link& GetLink() const { return aLink; }
- BOOL IsRadio();
+ USHORT GetIndex( USHORT nItemState );
+ inline long Width();
+ inline long Height();
+ void SetLink( const Link& rLink) { aLink=rLink; }
+ const Link& GetLink() const { return aLink; }
+ BOOL IsRadio();
// weil Buttons nicht von LinkHdl abgeleitet sind
- void CallLink();
+ void CallLink();
- void StoreButtonState( SvLBoxEntry* pEntry, USHORT nItemFlags );
- SvButtonState ConvertToButtonState( USHORT nItemFlags ) const;
+ void StoreButtonState( SvLBoxEntry* pEntry, USHORT nItemFlags );
+ SvButtonState ConvertToButtonState( USHORT nItemFlags ) const;
- inline SvButtonState GetActButtonState() const;
- SvLBoxEntry* GetActEntry() const;
+ inline SvButtonState GetActButtonState() const;
+ SvLBoxEntry* GetActEntry() const;
Image aBmps[24]; // Indizes siehe Konstanten BMP_ ....
- void SetDefaultImages( const Control* pControlForSettings = NULL );
+ void SetDefaultImages( const Control* pControlForSettings = NULL );
// set images acording to the color scheeme of the Control
// pControlForSettings == NULL: settings are taken from Application
- BOOL HasDefaultImages( void ) const;
+ BOOL HasDefaultImages( void ) const;
};
inline long SvLBoxButtonData::Width()
@@ -127,14 +127,14 @@ class SVT_DLLPUBLIC SvLBoxString : public SvLBoxItem
public:
SvLBoxString( SvLBoxEntry*,USHORT nFlags,const XubString& rStr);
SvLBoxString();
- virtual ~SvLBoxString();
- virtual USHORT IsA();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- XubString GetText() const { return aStr; }
- void SetText( SvLBoxEntry*, const XubString& rStr );
- void Paint( const Point&, SvLBox& rDev, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
+ virtual ~SvLBoxString();
+ virtual USHORT IsA();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ XubString GetText() const { return aStr; }
+ void SetText( SvLBoxEntry*, const XubString& rStr );
+ void Paint( const Point&, SvLBox& rDev, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
};
class SvLBoxBmp : public SvLBoxItem
@@ -143,20 +143,20 @@ class SvLBoxBmp : public SvLBoxItem
public:
SvLBoxBmp( SvLBoxEntry*, USHORT nFlags, Image );
SvLBoxBmp();
- virtual ~SvLBoxBmp();
- virtual USHORT IsA();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- void SetBitmap( SvLBoxEntry*, Image );
- void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
+ virtual ~SvLBoxBmp();
+ virtual USHORT IsA();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ void SetBitmap( SvLBoxEntry*, Image );
+ void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
};
-#define SV_ITEMSTATE_UNCHECKED 0x0001
-#define SV_ITEMSTATE_CHECKED 0x0002
-#define SV_ITEMSTATE_TRISTATE 0x0004
-#define SV_ITEMSTATE_HILIGHTED 0x0008
+#define SV_ITEMSTATE_UNCHECKED 0x0001
+#define SV_ITEMSTATE_CHECKED 0x0002
+#define SV_ITEMSTATE_TRISTATE 0x0004
+#define SV_ITEMSTATE_HILIGHTED 0x0008
#define SV_STATE_MASK 0xFFF8 // zum Loeschen von UNCHECKED,CHECKED,TRISTATE
enum SvLBoxButtonKind
@@ -168,7 +168,7 @@ enum SvLBoxButtonKind
class SVT_DLLPUBLIC SvLBoxButton : public SvLBoxItem
{
- SvLBoxButtonData* pData;
+ SvLBoxButtonData* pData;
SvLBoxButtonKind eKind;
USHORT nItemFlags;
USHORT nImgArrOffs;
@@ -183,45 +183,45 @@ public:
SvLBoxButtonKind eTheKind, USHORT nFlags,
SvLBoxButtonData* pBData );
SvLBoxButton();
- virtual ~SvLBoxButton();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- virtual USHORT IsA();
- void Check( SvLBox* pView, SvLBoxEntry*, BOOL bCheck );
- virtual BOOL ClickHdl(SvLBox* pView, SvLBoxEntry* );
- void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
- USHORT GetButtonFlags() const { return nItemFlags; }
- BOOL IsStateChecked() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_CHECKED)!=0; }
- BOOL IsStateUnchecked() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_UNCHECKED)!=0; }
- BOOL IsStateTristate() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_TRISTATE)!=0; }
- BOOL IsStateHilighted() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_HILIGHTED)!=0; }
- void SetStateChecked();
- void SetStateUnchecked();
- void SetStateTristate();
- void SetStateHilighted( BOOL bHilight );
+ virtual ~SvLBoxButton();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ virtual USHORT IsA();
+ void Check( SvLBox* pView, SvLBoxEntry*, BOOL bCheck );
+ virtual BOOL ClickHdl(SvLBox* pView, SvLBoxEntry* );
+ void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
+ USHORT GetButtonFlags() const { return nItemFlags; }
+ BOOL IsStateChecked() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_CHECKED)!=0; }
+ BOOL IsStateUnchecked() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_UNCHECKED)!=0; }
+ BOOL IsStateTristate() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_TRISTATE)!=0; }
+ BOOL IsStateHilighted() const { return (BOOL)(nItemFlags & SV_ITEMSTATE_HILIGHTED)!=0; }
+ void SetStateChecked();
+ void SetStateUnchecked();
+ void SetStateTristate();
+ void SetStateHilighted( BOOL bHilight );
SvLBoxButtonKind GetKind() const { return eKind; }
- void SetBaseOffs( USHORT nOffs ) { nBaseOffs = nOffs; }
- USHORT GetBaseOffs() const { return nBaseOffs; }
+ void SetBaseOffs( USHORT nOffs ) { nBaseOffs = nOffs; }
+ USHORT GetBaseOffs() const { return nBaseOffs; }
// Check whether this button can be modified via UI, sounding a beep if it
// cannot be modified:
bool CheckModification() const;
};
-inline void SvLBoxButton::SetStateChecked()
+inline void SvLBoxButton::SetStateChecked()
{
nItemFlags &= SV_STATE_MASK;
nItemFlags |= SV_ITEMSTATE_CHECKED;
}
-inline void SvLBoxButton::SetStateUnchecked()
+inline void SvLBoxButton::SetStateUnchecked()
{
nItemFlags &= SV_STATE_MASK;
nItemFlags |= SV_ITEMSTATE_UNCHECKED;
}
-inline void SvLBoxButton::SetStateTristate()
+inline void SvLBoxButton::SetStateTristate()
{
nItemFlags &= SV_STATE_MASK;
nItemFlags |= SV_ITEMSTATE_TRISTATE;
@@ -238,26 +238,26 @@ inline void SvLBoxButton::SetStateHilighted( BOOL bHilight )
struct SvLBoxContextBmp_Impl;
class SVT_DLLPUBLIC SvLBoxContextBmp : public SvLBoxItem
{
- SvLBoxContextBmp_Impl* m_pImpl;
+ SvLBoxContextBmp_Impl* m_pImpl;
public:
SvLBoxContextBmp( SvLBoxEntry*,USHORT nFlags,Image,Image,
USHORT nEntryFlagsBmp1);
SvLBoxContextBmp();
- virtual ~SvLBoxContextBmp();
- virtual USHORT IsA();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
+ virtual ~SvLBoxContextBmp();
+ virtual USHORT IsA();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ void Paint( const Point&, SvLBox& rView, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
- BOOL SetModeImages( const Image& _rBitmap1, const Image& _rBitmap2, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void GetModeImages( Image& _rBitmap1, Image& _rBitmap2, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ BOOL SetModeImages( const Image& _rBitmap1, const Image& _rBitmap2, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void GetModeImages( Image& _rBitmap1, Image& _rBitmap2, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- inline void SetBitmap1( const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline void SetBitmap2( const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline const Image& GetBitmap1( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- inline const Image& GetBitmap2( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ inline void SetBitmap1( const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline void SetBitmap2( const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline const Image& GetBitmap1( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ inline const Image& GetBitmap2( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
private:
Image& implGetImageStore( sal_Bool _bFirst, BmpColorMode _eMode );
@@ -268,12 +268,12 @@ inline void SvLBoxContextBmp::SetBitmap1( const Image& _rImage, BmpColorMode _eM
implGetImageStore( sal_True, _eMode ) = _rImage;
}
-inline void SvLBoxContextBmp::SetBitmap2( const Image& _rImage, BmpColorMode _eMode )
+inline void SvLBoxContextBmp::SetBitmap2( const Image& _rImage, BmpColorMode _eMode )
{
implGetImageStore( sal_False, _eMode ) = _rImage;
}
-inline const Image& SvLBoxContextBmp::GetBitmap1( BmpColorMode _eMode ) const
+inline const Image& SvLBoxContextBmp::GetBitmap1( BmpColorMode _eMode ) const
{
Image& rImage = const_cast< SvLBoxContextBmp* >( this )->implGetImageStore( sal_True, _eMode );
if ( !rImage )
@@ -282,7 +282,7 @@ inline const Image& SvLBoxContextBmp::GetBitmap1( BmpColorMode _eMode ) const
return rImage;
}
-inline const Image& SvLBoxContextBmp::GetBitmap2( BmpColorMode _eMode ) const
+inline const Image& SvLBoxContextBmp::GetBitmap2( BmpColorMode _eMode ) const
{
Image& rImage = const_cast< SvLBoxContextBmp* >( this )->implGetImageStore( sal_False, _eMode );
if ( !rImage )
diff --git a/svtools/inc/svtools/svlbox.hxx b/svtools/inc/svtools/svlbox.hxx
index bd58c3e0735d..b247519e6131 100644
--- a/svtools/inc/svtools/svlbox.hxx
+++ b/svtools/inc/svtools/svlbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,23 +68,23 @@ namespace utl {
// *************************** Tabulatoren *****************************
// *********************************************************************
-#define SV_LBOXTAB_DYNAMIC 0x0001 // Ausgabespalte des Items verschiebt
+#define SV_LBOXTAB_DYNAMIC 0x0001 // Ausgabespalte des Items verschiebt
// sich entsprechend Child-Tiefe
-#define SV_LBOXTAB_ADJUST_RIGHT 0x0002 // rechter Rand des Items am Tabulator
-#define SV_LBOXTAB_ADJUST_LEFT 0x0004 // linker Rand ...
-#define SV_LBOXTAB_ADJUST_CENTER 0x0008 // Item am Tabulator zentrieren
-#define SV_LBOXTAB_ADJUST_NUMERIC 0x0010 // Dezimalpunkt am Tabulator (Strings)
+#define SV_LBOXTAB_ADJUST_RIGHT 0x0002 // rechter Rand des Items am Tabulator
+#define SV_LBOXTAB_ADJUST_LEFT 0x0004 // linker Rand ...
+#define SV_LBOXTAB_ADJUST_CENTER 0x0008 // Item am Tabulator zentrieren
+#define SV_LBOXTAB_ADJUST_NUMERIC 0x0010 // Dezimalpunkt am Tabulator (Strings)
// wird nicht mehr unterstuetzt! Fokus richtet sich jetzt nach Selektion!
-#define SV_LBOXTAB_SHOW_FOCUS 0x0020 // Fokus visualisieren
+#define SV_LBOXTAB_SHOW_FOCUS 0x0020 // Fokus visualisieren
-#define SV_LBOXTAB_SHOW_SELECTION 0x0040 // Selektionszustand visualisieren
+#define SV_LBOXTAB_SHOW_SELECTION 0x0040 // Selektionszustand visualisieren
// Item muss umschliessendes Polygon
// zurueckgeben koennen (D&D-Cursor)
-#define SV_LBOXTAB_EDITABLE 0x0100 // Item an Tabulator editierbar
-#define SV_LBOXTAB_PUSHABLE 0x0200 // Item verhaelt sich wie ein Button
-#define SV_LBOXTAB_INV_ALWAYS 0x0400 // Hintergrund immer loeschen
-#define SV_LBOXTAB_FORCE 0x0800 // Default-Berechnung des ersten Tabulators
+#define SV_LBOXTAB_EDITABLE 0x0100 // Item an Tabulator editierbar
+#define SV_LBOXTAB_PUSHABLE 0x0200 // Item verhaelt sich wie ein Button
+#define SV_LBOXTAB_INV_ALWAYS 0x0400 // Hintergrund immer loeschen
+#define SV_LBOXTAB_FORCE 0x0800 // Default-Berechnung des ersten Tabulators
// (auf die sich Abo-Tabpage, Extras/Optionen/Anpassen,
// etc. verlassen) ausschalten. Die Position des ersten
// Tabs entspricht jetzt exakt den eingestellten Flags &
@@ -92,25 +92,25 @@ namespace utl {
class SvLBoxTab
{
- long nPos;
- void* pUserData;
+ long nPos;
+ void* pUserData;
public:
SvLBoxTab();
SvLBoxTab( long nPos, USHORT nFlags=SV_LBOXTAB_ADJUST_LEFT );
SvLBoxTab( const SvLBoxTab& );
~SvLBoxTab();
- USHORT nFlags;
-
- void SetUserData( void* pPtr ) { pUserData = pPtr; }
- void* GetUserData() const { return pUserData; }
- BOOL IsDynamic() const { return (BOOL)((nFlags & SV_LBOXTAB_DYNAMIC)!=0); }
- void SetPos( long nNewPos) { nPos = nNewPos; }
- long GetPos() const { return nPos; }
- long CalcOffset( long nItemLength, long nTabWidth );
- // long CalcOffset( const String&, const OutputDevice& );
- BOOL IsEditable() const { return (BOOL)((nFlags & SV_LBOXTAB_EDITABLE)!=0); }
- BOOL IsPushable() const { return (BOOL)((nFlags & SV_LBOXTAB_PUSHABLE)!=0); }
+ USHORT nFlags;
+
+ void SetUserData( void* pPtr ) { pUserData = pPtr; }
+ void* GetUserData() const { return pUserData; }
+ BOOL IsDynamic() const { return (BOOL)((nFlags & SV_LBOXTAB_DYNAMIC)!=0); }
+ void SetPos( long nNewPos) { nPos = nNewPos; }
+ long GetPos() const { return nPos; }
+ long CalcOffset( long nItemLength, long nTabWidth );
+ // long CalcOffset( const String&, const OutputDevice& );
+ BOOL IsEditable() const { return (BOOL)((nFlags & SV_LBOXTAB_EDITABLE)!=0); }
+ BOOL IsPushable() const { return (BOOL)((nFlags & SV_LBOXTAB_PUSHABLE)!=0); }
};
// *********************************************************************
@@ -120,7 +120,7 @@ public:
class SvViewDataItem
{
public:
- Size aSize;
+ Size aSize;
SvViewDataItem();
~SvViewDataItem();
};
@@ -132,10 +132,10 @@ class SvViewDataEntry : public SvViewData
{
public:
SvViewDataItem* pItemData; // ein Array von SvViewDataItems
- USHORT nItmCnt; // Anzahl Items fuer delete-operator
+ USHORT nItmCnt; // Anzahl Items fuer delete-operator
SvViewDataEntry();
- virtual ~SvViewDataEntry();
+ virtual ~SvViewDataEntry();
};
// *********************************************************************
@@ -147,101 +147,101 @@ class SVT_DLLPUBLIC SvLBoxItem
public:
SvLBoxItem( SvLBoxEntry*, USHORT nFlags );
SvLBoxItem();
- virtual ~SvLBoxItem();
- virtual USHORT IsA() = 0;
- const Size& GetSize( SvLBox* pView, SvLBoxEntry* pEntry );
- const Size& GetSize( SvLBoxEntry*, SvViewDataEntry* );
- const Size& GetSize( SvViewDataEntry* pData, USHORT nItemPos )
+ virtual ~SvLBoxItem();
+ virtual USHORT IsA() = 0;
+ const Size& GetSize( SvLBox* pView, SvLBoxEntry* pEntry );
+ const Size& GetSize( SvLBoxEntry*, SvViewDataEntry* );
+ const Size& GetSize( SvViewDataEntry* pData, USHORT nItemPos )
{
SvViewDataItem* pIData=pData->pItemData+nItemPos;
return pIData->aSize;
}
- virtual void Paint( const Point& rPos, SvLBox& rOutDev,
+ virtual void Paint( const Point& rPos, SvLBox& rOutDev,
USHORT nViewDataEntryFlags,
SvLBoxEntry* pEntry ) = 0;
- virtual void InitViewData( SvLBox* pView, SvLBoxEntry* pEntry,
+ virtual void InitViewData( SvLBox* pView, SvLBoxEntry* pEntry,
// wenn != 0 muss dieser Pointer benutzt werden!
// wenn == 0 muss er ueber die View geholt werden
SvViewDataItem* pViewData = 0) = 0;
virtual SvLBoxItem* Create() const = 0;
// view-abhaengige Daten werden nicht geklont
- virtual void Clone( SvLBoxItem* pSource ) = 0;
+ virtual void Clone( SvLBoxItem* pSource ) = 0;
};
// Flags, die am Model haengen
-#define SV_ENTRYFLAG_CHILDS_ON_DEMAND 0x0001
-#define SV_ENTRYFLAG_DISABLE_DROP 0x0002
-#define SV_ENTRYFLAG_IN_USE 0x0004
+#define SV_ENTRYFLAG_CHILDS_ON_DEMAND 0x0001
+#define SV_ENTRYFLAG_DISABLE_DROP 0x0002
+#define SV_ENTRYFLAG_IN_USE 0x0004
// wird gesetzt, wenn RequestingChilds keine Childs gestzt hat
-#define SV_ENTRYFLAG_NO_NODEBMP 0x0008
+#define SV_ENTRYFLAG_NO_NODEBMP 0x0008
// Eintrag hatte oder hat Kinder
-#define SV_ENTRYFLAG_HAD_CHILDREN 0x0010
+#define SV_ENTRYFLAG_HAD_CHILDREN 0x0010
-#define SV_ENTRYFLAG_USER_FLAGS 0xF000
-#define SV_ENTRYFLAG_SEMITRANSPARENT 0x8000 // draw semi-transparent entry bitmaps
+#define SV_ENTRYFLAG_USER_FLAGS 0xF000
+#define SV_ENTRYFLAG_SEMITRANSPARENT 0x8000 // draw semi-transparent entry bitmaps
class SVT_DLLPUBLIC SvLBoxEntry : public SvListEntry
{
friend class SvLBox;
- SvPtrarr aItems;
- void* pUserData;
- USHORT nEntryFlags;
- SVT_DLLPRIVATE void DeleteItems_Impl();
+ SvPtrarr aItems;
+ void* pUserData;
+ USHORT nEntryFlags;
+ SVT_DLLPRIVATE void DeleteItems_Impl();
public:
SvLBoxEntry();
- virtual ~SvLBoxEntry();
+ virtual ~SvLBoxEntry();
- USHORT ItemCount() const { return (USHORT)aItems.Count(); }
+ USHORT ItemCount() const { return (USHORT)aItems.Count(); }
// DARF NUR GERUFEN WERDEN, WENN DER EINTRAG NOCH NICHT IM MODEL
// EINGEFUEGT IST, DA SONST FUER DAS ITEM KEINE VIEW-ABHAENGIGEN
// DATEN ALLOZIERT WERDEN!
- void AddItem( SvLBoxItem* pItem );
- void ReplaceItem( SvLBoxItem* pNewItem, USHORT nPos );
- SvLBoxItem* GetItem( USHORT nPos ) const { return (SvLBoxItem*)aItems.GetObject(nPos ); }
+ void AddItem( SvLBoxItem* pItem );
+ void ReplaceItem( SvLBoxItem* pNewItem, USHORT nPos );
+ SvLBoxItem* GetItem( USHORT nPos ) const { return (SvLBoxItem*)aItems.GetObject(nPos ); }
SvLBoxItem* GetFirstItem( USHORT nId );
- USHORT GetPos( SvLBoxItem* pItem ) const { return aItems.GetPos( pItem ); }
- void* GetUserData() const { return pUserData; }
- void SetUserData( void* pPtr ) { pUserData = pPtr; }
+ USHORT GetPos( SvLBoxItem* pItem ) const { return aItems.GetPos( pItem ); }
+ void* GetUserData() const { return pUserData; }
+ void SetUserData( void* pPtr ) { pUserData = pPtr; }
virtual void Clone( SvListEntry* pSource );
- void EnableChildsOnDemand( BOOL bEnable=TRUE );
- BOOL HasChildsOnDemand() const { return (BOOL)((nEntryFlags & SV_ENTRYFLAG_CHILDS_ON_DEMAND)!=0); }
- BOOL HasInUseEmphasis() const { return (BOOL)((nEntryFlags & SV_ENTRYFLAG_IN_USE)!=0); }
+ void EnableChildsOnDemand( BOOL bEnable=TRUE );
+ BOOL HasChildsOnDemand() const { return (BOOL)((nEntryFlags & SV_ENTRYFLAG_CHILDS_ON_DEMAND)!=0); }
+ BOOL HasInUseEmphasis() const { return (BOOL)((nEntryFlags & SV_ENTRYFLAG_IN_USE)!=0); }
- USHORT GetFlags() const { return nEntryFlags; }
- void SetFlags( USHORT nFlags ) { nEntryFlags = nFlags; }
+ USHORT GetFlags() const { return nEntryFlags; }
+ void SetFlags( USHORT nFlags ) { nEntryFlags = nFlags; }
};
// *********************************************************************
// ****************************** SvLBox *******************************
// *********************************************************************
-#define WB_FORCE_SELECTION ((WinBits)0x8000)
+#define WB_FORCE_SELECTION ((WinBits)0x8000)
#define DragDropMode USHORT
-#define SV_DRAGDROP_NONE (DragDropMode)0x0000
-#define SV_DRAGDROP_CTRL_MOVE (DragDropMode)0x0001
-#define SV_DRAGDROP_CTRL_COPY (DragDropMode)0x0002
-#define SV_DRAGDROP_APP_MOVE (DragDropMode)0x0004
-#define SV_DRAGDROP_APP_COPY (DragDropMode)0x0008
-#define SV_DRAGDROP_APP_DROP (DragDropMode)0x0010
+#define SV_DRAGDROP_NONE (DragDropMode)0x0000
+#define SV_DRAGDROP_CTRL_MOVE (DragDropMode)0x0001
+#define SV_DRAGDROP_CTRL_COPY (DragDropMode)0x0002
+#define SV_DRAGDROP_APP_MOVE (DragDropMode)0x0004
+#define SV_DRAGDROP_APP_COPY (DragDropMode)0x0008
+#define SV_DRAGDROP_APP_DROP (DragDropMode)0x0010
// Entries duerfen ueber den obersten Eintrag gedroppt werden.
// Das Drop-Target ist in diesem Fall 0
-#define SV_DRAGDROP_ENABLE_TOP (DragDropMode)0x0020
+#define SV_DRAGDROP_ENABLE_TOP (DragDropMode)0x0020
DECLARE_SVTREELIST(SvLBoxTreeList, SvLBoxEntry*)
#define SVLISTBOX_ID_LBOX 0 // fuer SvLBox::IsA()
-#define SVLBOX_IN_EDT 0x0001
-#define SVLBOX_EDT_ENABLED 0x0002
-#define SVLBOX_IS_EXPANDING 0x0004
-#define SVLBOX_IS_TRAVELSELECT 0x0008
-#define SVLBOX_TARGEMPH_VIS 0x0010
-#define SVLBOX_EDTEND_CALLED 0x0020
+#define SVLBOX_IN_EDT 0x0001
+#define SVLBOX_EDT_ENABLED 0x0002
+#define SVLBOX_IS_EXPANDING 0x0004
+#define SVLBOX_IS_TRAVELSELECT 0x0008
+#define SVLBOX_TARGEMPH_VIS 0x0010
+#define SVLBOX_EDTEND_CALLED 0x0020
class SvLBox;
struct SvLBox_Impl
@@ -281,29 +281,29 @@ class SVT_DLLPUBLIC SvLBox
protected:
- WinBits nWindowStyle;
- Link aExpandedHdl;
- Link aExpandingHdl;
- Link aSelectHdl;
- Link aDeselectHdl;
- Link aDoubleClickHdl;
- SvLBoxEntry* pHdlEntry;
- SvLBoxItem* pHdlItem;
- SvLBoxEntry* pTargetEntry;
+ WinBits nWindowStyle;
+ Link aExpandedHdl;
+ Link aExpandingHdl;
+ Link aSelectHdl;
+ Link aDeselectHdl;
+ Link aDoubleClickHdl;
+ SvLBoxEntry* pHdlEntry;
+ SvLBoxItem* pHdlItem;
+ SvLBoxEntry* pTargetEntry;
SvLBox_Impl* pLBoxImpl;
- USHORT nImpFlags;
+ USHORT nImpFlags;
// Move/CopySelection: Position des aktuellen Eintrags in Selektionsliste
- USHORT nCurEntrySelPos;
+ USHORT nCurEntrySelPos;
- DragDropMode nDragDropMode;
- SelectionMode eSelMode;
- sal_Int8 nDragOptions;
+ DragDropMode nDragDropMode;
+ SelectionMode eSelMode;
+ sal_Int8 nDragOptions;
- BOOL CheckDragAndDropMode( SvLBox* pSource, sal_Int8 );
- void ImplShowTargetEmphasis( SvLBoxEntry* pEntry, BOOL bShow);
- void EnableSelectionAsDropTarget( BOOL bEnable = TRUE,
+ BOOL CheckDragAndDropMode( SvLBox* pSource, sal_Int8 );
+ void ImplShowTargetEmphasis( SvLBoxEntry* pEntry, BOOL bShow);
+ void EnableSelectionAsDropTarget( BOOL bEnable = TRUE,
BOOL bWithChilds = TRUE );
// standard impl gibt 0 zurueck; muss von abgeleiteten Klassen, die
// D&D unterstuetzen, ueberladen werden
@@ -318,43 +318,43 @@ protected:
// invalidate children on enable/disable
virtual void StateChanged( StateChangedType );
-
+
virtual ULONG Insert( SvLBoxEntry* pEnt,SvLBoxEntry* pPar,ULONG nPos=LIST_APPEND);
virtual ULONG Insert( SvLBoxEntry* pEntry,ULONG nRootPos = LIST_APPEND );
- void InsertTree( SvLBoxEntry* pTree, SvLBoxEntry* pTarget) {pModel->InsertTree( pTree, pTarget ); }
+ void InsertTree( SvLBoxEntry* pTree, SvLBoxEntry* pTarget) {pModel->InsertTree( pTree, pTarget ); }
// Inplace-Editing
SvInplaceEdit2* pEdCtrl;
- void EnableInplaceEditing( BOOL bEnable){if(bEnable)nImpFlags|=SVLBOX_EDT_ENABLED; else nImpFlags&=~SVLBOX_EDT_ENABLED;}
- BOOL IsInplaceEditingEnabled() const { return (BOOL)((nImpFlags&SVLBOX_EDT_ENABLED)!=0); }
- virtual void EditingRequest( SvLBoxEntry* pEntry, SvLBoxItem* pItem,
+ void EnableInplaceEditing( BOOL bEnable){if(bEnable)nImpFlags|=SVLBOX_EDT_ENABLED; else nImpFlags&=~SVLBOX_EDT_ENABLED;}
+ BOOL IsInplaceEditingEnabled() const { return (BOOL)((nImpFlags&SVLBOX_EDT_ENABLED)!=0); }
+ virtual void EditingRequest( SvLBoxEntry* pEntry, SvLBoxItem* pItem,
const Point& rMousePos );
- void EditText( const String&, const Rectangle&,const Selection&);
- void EditText( const String&, const Rectangle&,const Selection&, BOOL bMulti);
- void EditTextMultiLine( const String&, const Rectangle&,const Selection&);
- void CancelTextEditing();
- BOOL IsEditingActive() const { return (BOOL)((nImpFlags & SVLBOX_IN_EDT)!=0); }
- BOOL EditingCanceled() const;
- void EndEditing( BOOL bCancel = FALSE );
+ void EditText( const String&, const Rectangle&,const Selection&);
+ void EditText( const String&, const Rectangle&,const Selection&, BOOL bMulti);
+ void EditTextMultiLine( const String&, const Rectangle&,const Selection&);
+ void CancelTextEditing();
+ BOOL IsEditingActive() const { return (BOOL)((nImpFlags & SVLBOX_IN_EDT)!=0); }
+ BOOL EditingCanceled() const;
+ void EndEditing( BOOL bCancel = FALSE );
bool IsEmptyTextAllowed() const;
void ForbidEmptyText();
// Callback EditText
- virtual void EditedText( const String& );
+ virtual void EditedText( const String& );
// Rueckgabewert muss von SvViewDataEntry abgeleitet sein!
- virtual SvViewData* CreateViewData( SvListEntry* );
+ virtual SvViewData* CreateViewData( SvListEntry* );
// InitViewData wird direkt nach CreateViewData aufgerufen
// In InitViewData ist der Entry noch nicht in die View eingefuegt!
virtual void InitViewData( SvViewData*, SvListEntry* pEntry );
// ruft fuer Items aller Entries InitViewData auf
- void RecalcViewData();
+ void RecalcViewData();
// Callback von RecalcViewData
- virtual void ViewDataInitialized( SvLBoxEntry* );
+ virtual void ViewDataInitialized( SvLBoxEntry* );
virtual void Command( const CommandEvent& rCEvt );
- virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
virtual SvLBoxEntry* GetEntry( const Point& rPos, BOOL bHit=FALSE ) const;
- virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
+ virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
// handler and methods for Drag - finished handler. This link can be set
// to the TransferDataContainer. The AddBox/RemoveBox methods must be
@@ -365,74 +365,74 @@ protected:
Link GetDragFinishedHdl() const;
// for asynchronous D&D
- sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt, SvLBox* pSourceView );
+ sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt, SvLBox* pSourceView );
// IMnemonicEntryList
virtual const void* FirstSearchEntry( String& _rEntryText );
virtual const void* NextSearchEntry( const void* _pCurrentSearchEntry, String& _rEntryText );
virtual void SelectSearchEntry( const void* _pEntry );
virtual void ExecuteSearchEntry( const void* _pEntry );
-
+
public:
SvLBox( Window* pParent, WinBits nWinStyle=0 );
SvLBox( Window* pParent, const ResId& rResId );
~SvLBox();
- SvLBoxTreeList* GetModel() const { return (SvLBoxTreeList*)pModel; }
+ SvLBoxTreeList* GetModel() const { return (SvLBoxTreeList*)pModel; }
using SvListView::SetModel;
- void SetModel( SvLBoxTreeList* );
- void DisconnectFromModel();
+ void SetModel( SvLBoxTreeList* );
+ void DisconnectFromModel();
- virtual USHORT IsA();
- ULONG GetEntryCount() const {return pModel->GetEntryCount();}
+ virtual USHORT IsA();
+ ULONG GetEntryCount() const {return pModel->GetEntryCount();}
SvLBoxEntry* First() const { return (SvLBoxEntry*)(pModel->First()); }
SvLBoxEntry* Next( SvLBoxEntry* pEntry, USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Next(pEntry,pDepth));}
- SvLBoxEntry* Prev( SvLBoxEntry* pEntry, USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Prev(pEntry,pDepth));}
- SvLBoxEntry* Last( USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Last(pDepth));}
+ SvLBoxEntry* Prev( SvLBoxEntry* pEntry, USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Prev(pEntry,pDepth));}
+ SvLBoxEntry* Last( USHORT* pDepth=0 ) const { return (SvLBoxEntry*)(pModel->Last(pDepth));}
- SvLBoxEntry* FirstChild(SvLBoxEntry* pParent ) const { return (SvLBoxEntry*)(pModel->FirstChild(pParent)); }
- SvLBoxEntry* NextSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->NextSibling( pEntry )); }
- SvLBoxEntry* PrevSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->PrevSibling( pEntry )); }
+ SvLBoxEntry* FirstChild(SvLBoxEntry* pParent ) const { return (SvLBoxEntry*)(pModel->FirstChild(pParent)); }
+ SvLBoxEntry* NextSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->NextSibling( pEntry )); }
+ SvLBoxEntry* PrevSibling(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->PrevSibling( pEntry )); }
- SvLBoxEntry* FirstSelected() const { return (SvLBoxEntry*)SvListView::FirstSelected(); }
+ SvLBoxEntry* FirstSelected() const { return (SvLBoxEntry*)SvListView::FirstSelected(); }
using SvListView::NextSelected;
SvLBoxEntry* NextSelected( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(SvListView::NextSelected(pEntry)); }
using SvListView::PrevSelected;
- SvLBoxEntry* PrevSelected( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(SvListView::PrevSelected(pEntry)); }
- SvLBoxEntry* LastSelected() const { return (SvLBoxEntry*)(SvListView::LastSelected()); }
+ SvLBoxEntry* PrevSelected( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(SvListView::PrevSelected(pEntry)); }
+ SvLBoxEntry* LastSelected() const { return (SvLBoxEntry*)(SvListView::LastSelected()); }
- BOOL CopySelection( SvLBox* pSource, SvLBoxEntry* pTarget );
- BOOL MoveSelection( SvLBox* pSource, SvLBoxEntry* pTarget );
- BOOL MoveSelectionCopyFallbackPossible( SvLBox* pSource, SvLBoxEntry* pTarget, sal_Bool bAllowCopyFallback );
- void RemoveSelection();
+ BOOL CopySelection( SvLBox* pSource, SvLBoxEntry* pTarget );
+ BOOL MoveSelection( SvLBox* pSource, SvLBoxEntry* pTarget );
+ BOOL MoveSelectionCopyFallbackPossible( SvLBox* pSource, SvLBoxEntry* pTarget, sal_Bool bAllowCopyFallback );
+ void RemoveSelection();
- DragDropMode GetDragDropMode() const { return nDragDropMode; }
- virtual void SetDragDropMode( DragDropMode );
- SelectionMode GetSelectionMode() const { return eSelMode; }
- virtual void SetSelectionMode( SelectionMode );
+ DragDropMode GetDragDropMode() const { return nDragDropMode; }
+ virtual void SetDragDropMode( DragDropMode );
+ SelectionMode GetSelectionMode() const { return eSelMode; }
+ virtual void SetSelectionMode( SelectionMode );
// pParent==0 -> Root-Ebene
- SvLBoxEntry* GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(pParent,nPos)); }
- SvLBoxEntry* GetEntry( ULONG nRootPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(nRootPos)); }
+ SvLBoxEntry* GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(pParent,nPos)); }
+ SvLBoxEntry* GetEntry( ULONG nRootPos ) const { return (SvLBoxEntry*)(pModel->GetEntry(nRootPos)); }
- SvLBoxEntry* GetEntryFromPath( const ::std::deque< sal_Int32 >& _rPath ) const;
- void FillEntryPath( SvLBoxEntry* pEntry, ::std::deque< sal_Int32 >& _rPath ) const;
- virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
+ SvLBoxEntry* GetEntryFromPath( const ::std::deque< sal_Int32 >& _rPath ) const;
+ void FillEntryPath( SvLBoxEntry* pEntry, ::std::deque< sal_Int32 >& _rPath ) const;
+ virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
using Window::GetParent;
- SvLBoxEntry* GetParent( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetParent(pEntry)); }
- SvLBoxEntry* GetRootLevelParent(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetRootLevelParent( pEntry ));}
+ SvLBoxEntry* GetParent( SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetParent(pEntry)); }
+ SvLBoxEntry* GetRootLevelParent(SvLBoxEntry* pEntry ) const { return (SvLBoxEntry*)(pModel->GetRootLevelParent( pEntry ));}
using Window::GetChildCount;
- ULONG GetChildCount( SvLBoxEntry* pParent ) const { return pModel->GetChildCount(pParent); }
- ULONG GetLevelChildCount( SvLBoxEntry* pParent ) const;
+ ULONG GetChildCount( SvLBoxEntry* pParent ) const { return pModel->GetChildCount(pParent); }
+ ULONG GetLevelChildCount( SvLBoxEntry* pParent ) const;
SvViewDataEntry* GetViewDataEntry( SvListEntry* pEntry ) const { return (SvViewDataEntry*)SvListView::GetViewData(pEntry); }
- SvViewDataItem* GetViewDataItem( SvListEntry*, SvLBoxItem* ) const;
+ SvViewDataItem* GetViewDataItem( SvListEntry*, SvLBoxItem* ) const;
- virtual void MakeVisible( SvLBoxEntry* pEntry );
- void Clear();
+ virtual void MakeVisible( SvLBoxEntry* pEntry );
+ void Clear();
/** enables or disables mnemonic characters in the entry texts.
@@ -472,37 +472,37 @@ public:
virtual BOOL Expand( SvLBoxEntry* pParent );
virtual BOOL Collapse( SvLBoxEntry* pParent );
virtual BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
- virtual ULONG SelectChilds( SvLBoxEntry* pParent, BOOL bSelect );
- virtual void SelectAll( BOOL bSelect, BOOL bPaint=TRUE );
+ virtual ULONG SelectChilds( SvLBoxEntry* pParent, BOOL bSelect );
+ virtual void SelectAll( BOOL bSelect, BOOL bPaint=TRUE );
virtual void SetCurEntry( SvLBoxEntry* _pEntry ) = 0;
virtual SvLBoxEntry*
GetCurEntry() const = 0;
// Model
- void SetInUseEmphasis( SvLBoxEntry* pEntry, BOOL bInUse=TRUE);
+ void SetInUseEmphasis( SvLBoxEntry* pEntry, BOOL bInUse=TRUE);
// View
- void SetCursorEmphasis( SvLBoxEntry* pEntry, BOOL bCursored=TRUE);
- BOOL HasCursorEmphasis( SvLBoxEntry* pEntry ) const;
+ void SetCursorEmphasis( SvLBoxEntry* pEntry, BOOL bCursored=TRUE);
+ BOOL HasCursorEmphasis( SvLBoxEntry* pEntry ) const;
void SetSelectHdl( const Link& rNewHdl ) {aSelectHdl=rNewHdl; }
void SetDeselectHdl( const Link& rNewHdl ) {aDeselectHdl=rNewHdl; }
- void SetDoubleClickHdl(const Link& rNewHdl) {aDoubleClickHdl=rNewHdl;}
+ void SetDoubleClickHdl(const Link& rNewHdl) {aDoubleClickHdl=rNewHdl;}
const Link& GetSelectHdl() const { return aSelectHdl; }
const Link& GetDeselectHdl() const { return aDeselectHdl; }
- const Link& GetDoubleClickHdl() const { return aDoubleClickHdl; }
+ const Link& GetDoubleClickHdl() const { return aDoubleClickHdl; }
void SetExpandingHdl(const Link& rNewHdl){aExpandingHdl=rNewHdl;}
- void SetExpandedHdl(const Link& rNewHdl){aExpandedHdl=rNewHdl;}
+ void SetExpandedHdl(const Link& rNewHdl){aExpandedHdl=rNewHdl;}
const Link& GetExpandingHdl() const { return aExpandingHdl; }
- virtual void ExpandedHdl();
- virtual long ExpandingHdl();
- virtual void SelectHdl();
- virtual void DeselectHdl();
- virtual BOOL DoubleClickHdl();
- BOOL IsTravelSelect() const { return (BOOL)((nImpFlags&SVLBOX_IS_TRAVELSELECT)!=0);}
- SvLBoxEntry* GetHdlEntry() const { return pHdlEntry; }
- SvLBoxItem* GetHdlItem() const;
+ virtual void ExpandedHdl();
+ virtual long ExpandingHdl();
+ virtual void SelectHdl();
+ virtual void DeselectHdl();
+ virtual BOOL DoubleClickHdl();
+ BOOL IsTravelSelect() const { return (BOOL)((nImpFlags&SVLBOX_IS_TRAVELSELECT)!=0);}
+ SvLBoxEntry* GetHdlEntry() const { return pHdlEntry; }
+ SvLBoxItem* GetHdlItem() const;
// wird aufgerufen, wenn ein Eintrag mit gesetztem
// ENTRYFLAG_CHILDS_ON_DEMAND expandiert wird.
@@ -511,40 +511,40 @@ public:
// Drag & Drop
//JP 28.3.2001: new Drag & Drop API
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
+ virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
- virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
- virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData,
+ virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
+ virtual DragDropMode NotifyStartDrag( TransferDataContainer& rData,
SvLBoxEntry* );
- virtual void DragFinished( sal_Int8 nDropAction );
- virtual BOOL NotifyAcceptDrop( SvLBoxEntry* );
+ virtual void DragFinished( sal_Int8 nDropAction );
+ virtual BOOL NotifyAcceptDrop( SvLBoxEntry* );
- void SetDragOptions( sal_Int8 nOptions ) { nDragOptions = nOptions; }
- sal_Int8 GetDragOptions() const { return nDragOptions; }
+ void SetDragOptions( sal_Int8 nOptions ) { nDragOptions = nOptions; }
+ sal_Int8 GetDragOptions() const { return nDragOptions; }
- SvLBox* GetSourceView() const;
- SvLBox* GetTargetView() const;
+ SvLBox* GetSourceView() const;
+ SvLBox* GetTargetView() const;
- virtual void NotifyRemoving( SvLBoxEntry* );
- virtual void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
+ virtual void NotifyRemoving( SvLBoxEntry* );
+ virtual void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
virtual SvLBoxEntry* CloneEntry( SvLBoxEntry* pSource );
virtual SvLBoxEntry* CreateEntry() const; // zum 'new'en von Entries
// Rueckgabe: TRUE==Ok, FALSE==Abbrechen
- virtual BOOL NotifyMoving(
- SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
- SvLBoxEntry* pEntry, // Zu verschiebender Entry aus
+ virtual BOOL NotifyMoving(
+ SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
+ SvLBoxEntry* pEntry, // Zu verschiebender Entry aus
// GetSourceListBox()->GetModel()
SvLBoxEntry*& rpNewParent, // Neuer Target-Parent
- ULONG& rNewChildPos); // Position in Childlist des Target-Parents
+ ULONG& rNewChildPos); // Position in Childlist des Target-Parents
// Rueckgabe: TRUE==Ok, FALSE==Abbrechen
- virtual BOOL NotifyCopying(
- SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
- SvLBoxEntry* pEntry, // Zu kopierender Entry aus
+ virtual BOOL NotifyCopying(
+ SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
+ SvLBoxEntry* pEntry, // Zu kopierender Entry aus
// GetSourceListBox()->GetModel()
SvLBoxEntry*& rpNewParent, // Neuer Target-Parent
- ULONG& rNewChildPos); // Position in Childlist des Target-Parents
+ ULONG& rNewChildPos); // Position in Childlist des Target-Parents
// ACCESSIBILITY ==========================================================
@@ -559,7 +559,7 @@ public:
@param pEntry
The entry.
@return The bounding rectangle of an entry. */
- virtual Rectangle GetBoundingRect( SvLBoxEntry* pEntry );
+ virtual Rectangle GetBoundingRect( SvLBoxEntry* pEntry );
protected:
using SvListView::Expand;
@@ -572,24 +572,24 @@ protected:
#define SV_LBOX_DD_FORMAT "SV_LBOX_DD_FORMAT"
struct SvLBoxDDInfo
{
- Application* pApp;
- SvLBox* pSource;
- SvLBoxEntry* pDDStartEntry;
+ Application* pApp;
+ SvLBox* pSource;
+ SvLBoxEntry* pDDStartEntry;
// relative Position im Eintrag bei Drag-Beginn (IconView)
- long nMouseRelX,nMouseRelY;
- ULONG nRes1,nRes2,nRes3,nRes4;
+ long nMouseRelX,nMouseRelY;
+ ULONG nRes1,nRes2,nRes3,nRes4;
};
class SvInplaceEdit : public Edit
{
- Link aCallBackHdl;
+ Link aCallBackHdl;
Accelerator aAccReturn;
Accelerator aAccEscape;
- Timer aTimer;
- BOOL bCanceled;
- BOOL bAlreadyInCallBack;
+ Timer aTimer;
+ BOOL bCanceled;
+ BOOL bAlreadyInCallBack;
- void CallCallBackHdl_Impl();
+ void CallCallBackHdl_Impl();
DECL_LINK( Timeout_Impl, Timer * );
DECL_LINK( ReturnHdl_Impl, Accelerator * );
DECL_LINK( EscapeHdl_Impl, Accelerator * );
@@ -600,25 +600,25 @@ public:
const Selection& );
~SvInplaceEdit();
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void LoseFocus();
- BOOL EditingCanceled() const { return bCanceled; }
- String GetText() const { return Edit::GetText(); }
- void StopEditing( BOOL bCancel = FALSE );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void LoseFocus();
+ BOOL EditingCanceled() const { return bCanceled; }
+ String GetText() const { return Edit::GetText(); }
+ void StopEditing( BOOL bCancel = FALSE );
};
class SvInplaceEdit2
{
- Link aCallBackHdl;
+ Link aCallBackHdl;
Accelerator aAccReturn;
Accelerator aAccEscape;
- Timer aTimer;
- Edit* pEdit;
- BOOL bCanceled;
- BOOL bAlreadyInCallBack;
- BOOL bMultiLine;
+ Timer aTimer;
+ Edit* pEdit;
+ BOOL bCanceled;
+ BOOL bAlreadyInCallBack;
+ BOOL bMultiLine;
- void CallCallBackHdl_Impl();
+ void CallCallBackHdl_Impl();
DECL_LINK( Timeout_Impl, Timer * );
DECL_LINK( ReturnHdl_Impl, Accelerator * );
DECL_LINK( EscapeHdl_Impl, Accelerator * );
@@ -628,13 +628,13 @@ public:
const String& rData, const Link& rNotifyEditEnd,
const Selection&, BOOL bMultiLine = FALSE );
~SvInplaceEdit2();
- BOOL KeyInput( const KeyEvent& rKEvt );
- void LoseFocus();
- BOOL EditingCanceled() const { return bCanceled; }
- String GetText() const;
- String GetSavedValue() const;
- void StopEditing( BOOL bCancel = FALSE );
- void Hide();
+ BOOL KeyInput( const KeyEvent& rKEvt );
+ void LoseFocus();
+ BOOL EditingCanceled() const { return bCanceled; }
+ String GetText() const;
+ String GetSavedValue() const;
+ void StopEditing( BOOL bCancel = FALSE );
+ void Hide();
};
inline SvViewDataItem* SvLBox::GetViewDataItem( SvListEntry* pEntry,
diff --git a/svtools/inc/svtools/svmedit.hxx b/svtools/inc/svtools/svmedit.hxx
index 7deaa8e1a93a..420a72fac997 100644
--- a/svtools/inc/svtools/svmedit.hxx
+++ b/svtools/inc/svtools/svmedit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,29 +44,29 @@ class ExtTextView;
class SVT_DLLPUBLIC MultiLineEdit : public Edit
{
private:
- ImpSvMEdit* pImpSvMEdit;
+ ImpSvMEdit* pImpSvMEdit;
- XubString aSaveValue;
- Link aModifyHdlLink;
+ XubString aSaveValue;
+ Link aModifyHdlLink;
- Timer* pUpdateDataTimer;
- Link aUpdateDataHdlLink;
+ Timer* pUpdateDataTimer;
+ Link aUpdateDataHdlLink;
protected:
- DECL_LINK( ImpUpdateDataHdl, Timer* );
- void StateChanged( StateChangedType nType );
- void DataChanged( const DataChangedEvent& rDCEvt );
- virtual long PreNotify( NotifyEvent& rNEvt );
- long Notify( NotifyEvent& rNEvt );
+ DECL_LINK( ImpUpdateDataHdl, Timer* );
+ void StateChanged( StateChangedType nType );
+ void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ long Notify( NotifyEvent& rNEvt );
using Control::ImplInitSettings;
- void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
- WinBits ImplInitStyle( WinBits nStyle );
+ void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ WinBits ImplInitStyle( WinBits nStyle );
- ExtTextEngine* GetTextEngine() const;
- ExtTextView* GetTextView() const;
- ScrollBar* GetHScrollBar() const;
- ScrollBar* GetVScrollBar() const;
+ ExtTextEngine* GetTextEngine() const;
+ ExtTextView* GetTextView() const;
+ ScrollBar* GetHScrollBar() const;
+ ScrollBar* GetVScrollBar() const;
public:
MultiLineEdit( Window* pParent, WinBits nWinStyle = WB_LEFT | WB_BORDER );
@@ -74,71 +74,71 @@ public:
~MultiLineEdit();
- virtual void Modify();
- virtual void UpdateData();
+ virtual void Modify();
+ virtual void UpdateData();
- virtual void SetModifyFlag();
- virtual void ClearModifyFlag();
- virtual BOOL IsModified() const;
+ virtual void SetModifyFlag();
+ virtual void ClearModifyFlag();
+ virtual BOOL IsModified() const;
- virtual void EnableUpdateData( ULONG nTimeout = EDIT_UPDATEDATA_TIMEOUT );
- virtual void DisableUpdateData() { delete pUpdateDataTimer; pUpdateDataTimer = NULL; }
- virtual ULONG IsUpdateDataEnabled() const;
+ virtual void EnableUpdateData( ULONG nTimeout = EDIT_UPDATEDATA_TIMEOUT );
+ virtual void DisableUpdateData() { delete pUpdateDataTimer; pUpdateDataTimer = NULL; }
+ virtual ULONG IsUpdateDataEnabled() const;
- virtual void SetReadOnly( BOOL bReadOnly = TRUE );
- virtual BOOL IsReadOnly() const;
+ virtual void SetReadOnly( BOOL bReadOnly = TRUE );
+ virtual BOOL IsReadOnly() const;
- void EnableFocusSelectionHide( BOOL bHide );
- BOOL IsFocusSelectionHideEnabled() const;
+ void EnableFocusSelectionHide( BOOL bHide );
+ BOOL IsFocusSelectionHideEnabled() const;
- virtual void SetMaxTextLen( xub_StrLen nMaxLen = 0 );
+ virtual void SetMaxTextLen( xub_StrLen nMaxLen = 0 );
virtual xub_StrLen GetMaxTextLen() const;
- virtual void SetSelection( const Selection& rSelection );
+ virtual void SetSelection( const Selection& rSelection );
virtual const Selection& GetSelection() const;
- virtual void ReplaceSelected( const XubString& rStr );
- virtual void DeleteSelected();
- virtual XubString GetSelected() const;
- virtual XubString GetSelected( LineEnd aSeparator ) const;
+ virtual void ReplaceSelected( const XubString& rStr );
+ virtual void DeleteSelected();
+ virtual XubString GetSelected() const;
+ virtual XubString GetSelected( LineEnd aSeparator ) const;
- virtual void Cut();
- virtual void Copy();
- virtual void Paste();
+ virtual void Cut();
+ virtual void Copy();
+ virtual void Paste();
virtual void SetText( const XubString& rStr );
virtual void SetText( const XubString& rStr, const Selection& rNewSelection )
{ SetText( rStr ); SetSelection( rNewSelection ); }
- String GetText() const;
- String GetText( LineEnd aSeparator ) const;
- String GetTextLines() const;
- String GetTextLines( LineEnd aSeparator ) const;
+ String GetText() const;
+ String GetText( LineEnd aSeparator ) const;
+ String GetTextLines() const;
+ String GetTextLines( LineEnd aSeparator ) const;
void SetRightToLeft( BOOL bRightToLeft );
BOOL IsRightToLeft() const;
- void SaveValue() { aSaveValue = GetText(); }
- const XubString& GetSavedValue() const { return aSaveValue; }
+ void SaveValue() { aSaveValue = GetText(); }
+ const XubString& GetSavedValue() const { return aSaveValue; }
- void SetModifyHdl( const Link& rLink ) { aModifyHdlLink = rLink; }
- const Link& GetModifyHdl() const { return aModifyHdlLink; }
+ void SetModifyHdl( const Link& rLink ) { aModifyHdlLink = rLink; }
+ const Link& GetModifyHdl() const { return aModifyHdlLink; }
- void SetUpdateDataHdl( const Link& rLink ) { aUpdateDataHdlLink = rLink; }
- const Link& GetUpdateDataHdl() const { return aUpdateDataHdlLink; }
+ void SetUpdateDataHdl( const Link& rLink ) { aUpdateDataHdlLink = rLink; }
+ const Link& GetUpdateDataHdl() const { return aUpdateDataHdlLink; }
- virtual void Resize();
- virtual void GetFocus();
+ virtual void Resize();
+ virtual void GetFocus();
- Size CalcMinimumSize() const;
- Size CalcAdjustedSize( const Size& rPrefSize ) const;
+ Size CalcMinimumSize() const;
+ Size CalcAdjustedSize( const Size& rPrefSize ) const;
using Edit::CalcSize;
- Size CalcSize( USHORT nColumns, USHORT nLines ) const;
- void GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const;
+ Size CalcSize( USHORT nColumns, USHORT nLines ) const;
+ void GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const;
- void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- void SetLeftMargin( USHORT n );
- USHORT GetLeftMargin() const;
+ void SetLeftMargin( USHORT n );
+ USHORT GetLeftMargin() const;
virtual
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >
diff --git a/svtools/inc/svtools/svmedit2.hxx b/svtools/inc/svtools/svmedit2.hxx
index 5df3669c5656..2391cdf999af 100644
--- a/svtools/inc/svtools/svmedit2.hxx
+++ b/svtools/inc/svtools/svmedit2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,14 +41,14 @@ public:
~ExtMultiLineEdit();
// methods of TextView
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
- void SetAutoScroll( BOOL bAutoScroll );
- void EnableCursor( BOOL bEnable );
+ void InsertText( const String& rNew, BOOL bSelect = FALSE );
+ void SetAutoScroll( BOOL bAutoScroll );
+ void EnableCursor( BOOL bEnable );
// methods of TextEngine
- void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd );
- void SetLeftMargin( USHORT nLeftMargin );
- ULONG GetParagraphCount() const;
+ void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd );
+ void SetLeftMargin( USHORT nLeftMargin );
+ ULONG GetParagraphCount() const;
};
#endif
diff --git a/svtools/inc/svtools/svparser.hxx b/svtools/inc/svtools/svparser.hxx
index 182c77878490..3a403b26cb3d 100644
--- a/svtools/inc/svtools/svparser.hxx
+++ b/svtools/inc/svtools/svparser.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,55 +55,55 @@ class SVT_DLLPUBLIC SvParser : public SvRefBase
DECL_STATIC_LINK( SvParser, NewDataRead, void* );
protected:
- SvStream& rInput;
- String aToken; // gescanntes Token
- ULONG nlLineNr; // akt. Zeilen Nummer
- ULONG nlLinePos; // akt. Spalten Nummer
+ SvStream& rInput;
+ String aToken; // gescanntes Token
+ ULONG nlLineNr; // akt. Zeilen Nummer
+ ULONG nlLinePos; // akt. Spalten Nummer
- SvParser_Impl *pImplData; // interne Daten
- long nTokenValue; // zusaetzlicher Wert (RTF)
+ SvParser_Impl *pImplData; // interne Daten
+ long nTokenValue; // zusaetzlicher Wert (RTF)
BOOL bTokenHasValue; // indicates whether nTokenValue is valid
- SvParserState eState; // Status auch in abgl. Klassen
+ SvParserState eState; // Status auch in abgl. Klassen
- rtl_TextEncoding eSrcEnc; // Source encoding
+ rtl_TextEncoding eSrcEnc; // Source encoding
ULONG nNextChPos;
- sal_Unicode nNextCh; // Akt. Zeichen fuer die "lex"
+ sal_Unicode nNextCh; // Akt. Zeichen fuer die "lex"
- BOOL bDownloadingFile : 1;// TRUE: Es wird gerade ein externes
- // File geladen. d.h. alle
- // DataAvailable Links muessen
- // ignoriert werden.
+ BOOL bDownloadingFile : 1;// TRUE: Es wird gerade ein externes
+ // File geladen. d.h. alle
+ // DataAvailable Links muessen
+ // ignoriert werden.
// Wenn keibes der folgenden
// Flags gesetzt ist, wird der
// Stream als ANSI gelesen,
// aber als CharSet DONTKNOW
// zurueckgegeben.
- BOOL bUCS2BSrcEnc : 1; // oder als big-endian UCS2
- BOOL bSwitchToUCS2 : 1; // Umschalten des ist erlaubt
+ BOOL bUCS2BSrcEnc : 1; // oder als big-endian UCS2
+ BOOL bSwitchToUCS2 : 1; // Umschalten des ist erlaubt
- BOOL bRTF_InTextRead : 1; // only for RTF-Parser!!!
+ BOOL bRTF_InTextRead : 1; // only for RTF-Parser!!!
struct TokenStackType
{
- String sToken;
- long nTokenValue;
- BOOL bTokenHasValue;
- int nTokenId;
+ String sToken;
+ long nTokenValue;
+ BOOL bTokenHasValue;
+ int nTokenId;
inline TokenStackType() { nTokenId = 0; }
inline ~TokenStackType() { }
};
// Methoden fuer Token-Stack
- int SkipToken( short nCnt = -1 ); // n Tokens zurueck "skippen"
+ int SkipToken( short nCnt = -1 ); // n Tokens zurueck "skippen"
TokenStackType* GetStackPtr( short nCnt );
inline BYTE GetStackPos() const;
// scanne das naechste Token:
- // Tokenstack abarbeiten und ggfs. _GetNextToken() rufen. Diese
- // ist fuers erkennen von neuen Token verantwortlich
+ // Tokenstack abarbeiten und ggfs. _GetNextToken() rufen. Diese
+ // ist fuers erkennen von neuen Token verantwortlich
int GetNextToken();
virtual int _GetNextToken() = 0;
@@ -111,7 +111,7 @@ protected:
virtual void NextToken( int nToken );
// zu Zeiten der SvRefBase-Ableitung darf nicht jeder loeschen
- virtual ~SvParser();
+ virtual ~SvParser();
void ClearTxtConvContext();
@@ -124,21 +124,21 @@ public:
// Konstruktor
SvParser( SvStream& rIn, BYTE nStackSize = 3 );
- virtual SvParserState CallParser() = 0; // Aufruf des Parsers
+ virtual SvParserState CallParser() = 0; // Aufruf des Parsers
- inline SvParserState GetStatus() const { return eState; } // StatusInfo
+ inline SvParserState GetStatus() const { return eState; } // StatusInfo
- inline ULONG GetLineNr() const { return nlLineNr; }
- inline ULONG GetLinePos() const { return nlLinePos; }
- inline ULONG IncLineNr() { return ++nlLineNr; }
- inline ULONG IncLinePos() { return ++nlLinePos; }
- inline ULONG SetLineNr( ULONG nlNum ); // inline unten
- inline ULONG SetLinePos( ULONG nlPos ); // inline unten
+ inline ULONG GetLineNr() const { return nlLineNr; }
+ inline ULONG GetLinePos() const { return nlLinePos; }
+ inline ULONG IncLineNr() { return ++nlLineNr; }
+ inline ULONG IncLinePos() { return ++nlLinePos; }
+ inline ULONG SetLineNr( ULONG nlNum ); // inline unten
+ inline ULONG SetLinePos( ULONG nlPos ); // inline unten
- sal_Unicode GetNextChar();
+ sal_Unicode GetNextChar();
void RereadLookahead();
- inline int IsParserWorking() const { return SVPAR_WORKING == eState; }
+ inline int IsParserWorking() const { return SVPAR_WORKING == eState; }
Link GetAsynchCallLink() const
{ return STATIC_LINK( this, SvParser, NewDataRead ); }
@@ -189,13 +189,13 @@ SV_IMPL_REF(SvParser)
inline ULONG SvParser::SetLineNr( ULONG nlNum )
-{ ULONG nlOld = nlLineNr; nlLineNr = nlNum; return nlOld; }
+{ ULONG nlOld = nlLineNr; nlLineNr = nlNum; return nlOld; }
inline ULONG SvParser::SetLinePos( ULONG nlPos )
-{ ULONG nlOld = nlLinePos; nlLinePos = nlPos; return nlOld; }
+{ ULONG nlOld = nlLinePos; nlLinePos = nlPos; return nlOld; }
inline BYTE SvParser::GetStackPos() const
-{ return nTokenStackPos; }
+{ return nTokenStackPos; }
inline USHORT SvParser::GetCharSize() const
{
diff --git a/svtools/inc/svtools/svtabbx.hxx b/svtools/inc/svtools/svtabbx.hxx
index e47d64f8ceed..5825164075fb 100644
--- a/svtools/inc/svtools/svtabbx.hxx
+++ b/svtools/inc/svtools/svtabbx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,41 +58,41 @@ struct TabListBoxEventData
class SVT_DLLPUBLIC SvTabListBox : public SvTreeListBox
{
private:
- SvLBoxTab* pTabList;
- USHORT nTabCount;
- XubString aCurEntry;
- ULONG nDummy1;
- ULONG nDummy2;
+ SvLBoxTab* pTabList;
+ USHORT nTabCount;
+ XubString aCurEntry;
+ ULONG nDummy1;
+ ULONG nDummy2;
protected:
- SvLBoxEntry* pViewParent;
+ SvLBoxEntry* pViewParent;
- static const xub_Unicode* GetToken( const xub_Unicode* pPtr, USHORT& rLen );
+ static const xub_Unicode* GetToken( const xub_Unicode* pPtr, USHORT& rLen );
- virtual void SetTabs();
- virtual void InitEntry( SvLBoxEntry*, const XubString&, const Image&, const Image&, SvLBoxButtonKind );
+ virtual void SetTabs();
+ virtual void InitEntry( SvLBoxEntry*, const XubString&, const Image&, const Image&, SvLBoxButtonKind );
- String GetTabEntryText( ULONG nPos, USHORT nCol ) const;
- SvLBoxEntry* GetEntryOnPos( ULONG _nEntryPos ) const;
- SvLBoxEntry* GetChildOnPos( SvLBoxEntry* _pParent, ULONG _nEntryPos, ULONG& _rPos ) const;
+ String GetTabEntryText( ULONG nPos, USHORT nCol ) const;
+ SvLBoxEntry* GetEntryOnPos( ULONG _nEntryPos ) const;
+ SvLBoxEntry* GetChildOnPos( SvLBoxEntry* _pParent, ULONG _nEntryPos, ULONG& _rPos ) const;
public:
SvTabListBox( Window* pParent, WinBits = WB_BORDER );
SvTabListBox( Window* pParent, const ResId& );
~SvTabListBox();
- void SetTabs( long* pTabs, MapUnit = MAP_APPFONT );
- USHORT TabCount() const { return (USHORT)nTabCount; }
+ void SetTabs( long* pTabs, MapUnit = MAP_APPFONT );
+ USHORT TabCount() const { return (USHORT)nTabCount; }
using SvTreeListBox::GetTab;
- long GetTab( USHORT nTab ) const;
- void SetTab( USHORT nTab, long nValue, MapUnit = MAP_APPFONT );
- long GetLogicTab( USHORT nTab );
+ long GetTab( USHORT nTab ) const;
+ void SetTab( USHORT nTab, long nValue, MapUnit = MAP_APPFONT );
+ long GetLogicTab( USHORT nTab );
- virtual SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
+ virtual SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
BOOL bChildsOnDemand = FALSE,
ULONG nPos=LIST_APPEND, void* pUserData = 0,
SvLBoxButtonKind eButtonKind = SvLBoxButtonKind_enabledCheckbox );
- virtual SvLBoxEntry* InsertEntry( const XubString& rText,
+ virtual SvLBoxEntry* InsertEntry( const XubString& rText,
const Image& rExpandedEntryBmp,
const Image& rCollapsedEntryBmp,
SvLBoxEntry* pParent = 0,
@@ -108,19 +108,19 @@ public:
const Image& rCollapsedEntryBmp, SvLBoxEntry* pParent = NULL,
ULONG nPos = LIST_APPEND, USHORT nCol = 0xffff, void* pUserData = NULL );
- virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
- String GetEntryText( SvLBoxEntry*, USHORT nCol ) const;
- String GetEntryText( ULONG nPos, USHORT nCol = 0xffff ) const;
+ virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
+ String GetEntryText( SvLBoxEntry*, USHORT nCol ) const;
+ String GetEntryText( ULONG nPos, USHORT nCol = 0xffff ) const;
using SvTreeListBox::SetEntryText;
- void SetEntryText( const XubString&, ULONG, USHORT nCol=0xffff );
- void SetEntryText(const XubString&,SvLBoxEntry*,USHORT nCol=0xffff);
+ void SetEntryText( const XubString&, ULONG, USHORT nCol=0xffff );
+ void SetEntryText(const XubString&,SvLBoxEntry*,USHORT nCol=0xffff);
String GetCellText( ULONG nPos, USHORT nCol ) const;
- ULONG GetEntryPos( const XubString&, USHORT nCol = 0xffff );
- ULONG GetEntryPos( const SvLBoxEntry* pEntry ) const;
+ ULONG GetEntryPos( const XubString&, USHORT nCol = 0xffff );
+ ULONG GetEntryPos( const SvLBoxEntry* pEntry ) const;
- virtual void Resize();
- void SetTabJustify( USHORT nTab, SvTabJustify );
- SvTabJustify GetTabJustify( USHORT nTab ) const;
+ virtual void Resize();
+ void SetTabJustify( USHORT nTab, SvTabJustify );
+ SvTabJustify GetTabJustify( USHORT nTab ) const;
};
inline long SvTabListBox::GetTab( USHORT nTab ) const
@@ -141,12 +141,12 @@ namespace svt {
class SVT_DLLPUBLIC SvHeaderTabListBox : public SvTabListBox, public svt::IAccessibleTableProvider
{
private:
- typedef ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > > AccessibleChildren;
+ typedef ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > > AccessibleChildren;
- sal_Bool m_bFirstPaint;
+ sal_Bool m_bFirstPaint;
::svt::SvHeaderTabListBoxImpl* m_pImpl;
::svt::IAccessibleTabListBox* m_pAccessible;
- AccessibleChildren m_aAccessibleChildren;
+ AccessibleChildren m_aAccessibleChildren;
DECL_DLLPRIVATE_LINK( ScrollHdl_Impl, SvTabListBox* );
DECL_DLLPRIVATE_LINK( CreateAccessibleHdl_Impl, HeaderBar* );
@@ -158,9 +158,9 @@ public:
SvHeaderTabListBox( Window* pParent, const ResId& );
~SvHeaderTabListBox();
- virtual void Paint( const Rectangle& );
+ virtual void Paint( const Rectangle& );
- void InitHeaderBar( HeaderBar* pHeaderBar );
+ void InitHeaderBar( HeaderBar* pHeaderBar );
sal_Bool IsItemChecked( SvLBoxEntry* pEntry, USHORT nCol ) const;
virtual SvLBoxEntry* InsertEntryToColumn( const XubString&, ULONG nPos = LIST_APPEND,
@@ -183,85 +183,85 @@ public:
sal_Bool IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, TriState& _rState );
/** @return The count of the rows. */
- virtual long GetRowCount() const;
+ virtual long GetRowCount() const;
/** @return The count of the columns. */
- virtual sal_uInt16 GetColumnCount() const;
+ virtual sal_uInt16 GetColumnCount() const;
/** @return The position of the current row. */
- virtual sal_Int32 GetCurrRow() const;
+ virtual sal_Int32 GetCurrRow() const;
/** @return The position of the current column. */
- virtual sal_uInt16 GetCurrColumn() const;
+ virtual sal_uInt16 GetCurrColumn() const;
/** @return The description of a row.
@param _nRow The row which description is in demand. */
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
/** @return The description of a column.
@param _nColumn The column which description is in demand. */
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumn ) const;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumn ) const;
/** @return <TRUE/>, if the object has a row header. */
- virtual sal_Bool HasRowHeader() const; //GetColumnId
+ virtual sal_Bool HasRowHeader() const; //GetColumnId
/** @return <TRUE/>, if the object can focus a cell. */
- virtual sal_Bool IsCellFocusable() const;
+ virtual sal_Bool IsCellFocusable() const;
virtual BOOL GoToCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
- virtual void SetNoSelection();
+ virtual void SetNoSelection();
using SvListView::SelectAll;
- virtual void SelectAll();
- virtual void SelectAll( BOOL bSelect, BOOL bPaint = TRUE );
- virtual void SelectRow( long _nRow, BOOL _bSelect = TRUE, BOOL bExpand = TRUE );
- virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True );
- virtual sal_Int32 GetSelectedRowCount() const;
- virtual sal_Int32 GetSelectedColumnCount() const;
+ virtual void SelectAll();
+ virtual void SelectAll( BOOL bSelect, BOOL bPaint = TRUE );
+ virtual void SelectRow( long _nRow, BOOL _bSelect = TRUE, BOOL bExpand = TRUE );
+ virtual void SelectColumn( sal_uInt16 _nColumn, sal_Bool _bSelect = sal_True );
+ virtual sal_Int32 GetSelectedRowCount() const;
+ virtual sal_Int32 GetSelectedColumnCount() const;
/** @return <TRUE/>, if the row is selected. */
- virtual bool IsRowSelected( long _nRow ) const;
- virtual sal_Bool IsColumnSelected( long _nColumn ) const;
- virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const;
- virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const;
+ virtual bool IsRowSelected( long _nRow ) const;
+ virtual sal_Bool IsColumnSelected( long _nColumn ) const;
+ virtual void GetAllSelectedRows( ::com::sun::star::uno::Sequence< sal_Int32 >& _rRows ) const;
+ virtual void GetAllSelectedColumns( ::com::sun::star::uno::Sequence< sal_Int32 >& _rColumns ) const;
/** @return <TRUE/>, if the cell is visible. */
- virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
- virtual String GetAccessibleCellText( long _nRow, USHORT _nColumnPos ) const;
+ virtual sal_Bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
+ virtual String GetAccessibleCellText( long _nRow, USHORT _nColumnPos ) const;
- virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, BOOL _bOnScreen = TRUE );
- virtual Rectangle calcTableRect( BOOL _bOnScreen = TRUE );
- virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumn, BOOL _bIsHeader, BOOL _bOnScreen = TRUE );
+ virtual Rectangle calcHeaderRect( sal_Bool _bIsColumnBar, BOOL _bOnScreen = TRUE );
+ virtual Rectangle calcTableRect( BOOL _bOnScreen = TRUE );
+ virtual Rectangle GetFieldRectPixelAbs( sal_Int32 _nRow, sal_uInt16 _nColumn, BOOL _bIsHeader, BOOL _bOnScreen = TRUE );
- virtual XACC CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
- virtual XACC CreateAccessibleRowHeader( sal_Int32 _nRow );
- virtual XACC CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos );
+ virtual XACC CreateAccessibleCell( sal_Int32 _nRow, sal_uInt16 _nColumn );
+ virtual XACC CreateAccessibleRowHeader( sal_Int32 _nRow );
+ virtual XACC CreateAccessibleColumnHeader( sal_uInt16 _nColumnPos );
- virtual sal_Int32 GetAccessibleControlCount() const;
- virtual XACC CreateAccessibleControl( sal_Int32 _nIndex );
- virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint );
+ virtual sal_Int32 GetAccessibleControlCount() const;
+ virtual XACC CreateAccessibleControl( sal_Int32 _nIndex );
+ virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint );
- virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint );
- virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint );
- virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint );
+ virtual sal_Bool ConvertPointToCellAddress( sal_Int32& _rnRow, sal_uInt16& _rnColPos, const Point& _rPoint );
+ virtual sal_Bool ConvertPointToRowHeader( sal_Int32& _rnRow, const Point& _rPoint );
+ virtual sal_Bool ConvertPointToColumnHeader( sal_uInt16& _rnColPos, const Point& _rPoint );
- virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const;
- virtual ::rtl::OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const;
- virtual Window* GetWindowInstance();
+ virtual ::rtl::OUString GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const;
+ virtual ::rtl::OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const;
+ virtual Window* GetWindowInstance();
using SvTreeListBox::FillAccessibleStateSet;
- virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const;
- virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
- virtual void GrabTableFocus();
+ virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& _rStateSet, ::svt::AccessibleBrowseBoxObjType _eType ) const;
+ virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumn ) const;
+ virtual void GrabTableFocus();
// OutputDevice
- virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector );
+ virtual BOOL GetGlyphBoundRects( const Point& rOrigin, const String& rStr, int nIndex, int nLen, int nBase, MetricVector& rVector );
// Window
- virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
- virtual void GrabFocus();
- virtual XACC GetAccessible( BOOL bCreate = TRUE );
- virtual Window* GetAccessibleParentWindow() const;
+ virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
+ virtual void GrabFocus();
+ virtual XACC GetAccessible( BOOL bCreate = TRUE );
+ virtual Window* GetAccessibleParentWindow() const;
/** Creates and returns the accessible object of the whole BrowseBox. */
- virtual XACC CreateAccessible();
+ virtual XACC CreateAccessible();
- virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex);
- virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint);
+ virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex);
+ virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint);
};
#endif // #ifndef _SVTABBX_HXX
diff --git a/svtools/inc/svtools/svtdata.hxx b/svtools/inc/svtools/svtdata.hxx
index 5c1900b2493a..458068685018 100644
--- a/svtools/inc/svtools/svtdata.hxx
+++ b/svtools/inc/svtools/svtdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,8 +40,8 @@ class ImpSvtData
{
public:
SfxItemDesruptorList_Impl * pItemDesruptList;
- ResMgr * pResMgr;
- ResMgr * pPatchResMgr;
+ ResMgr * pResMgr;
+ ResMgr * pPatchResMgr;
private:
ImpSvtData():
diff --git a/svtools/inc/svtools/svtdllapi.h b/svtools/inc/svtools/svtdllapi.h
index 5a15b20c2020..3fe56747fea8 100644
--- a/svtools/inc/svtools/svtdllapi.h
+++ b/svtools/inc/svtools/svtdllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/svtools.hrc b/svtools/inc/svtools/svtools.hrc
index 107c3655ed84..d6e679a9f2fa 100644
--- a/svtools/inc/svtools/svtools.hrc
+++ b/svtools/inc/svtools/svtools.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,29 +32,29 @@
#include <svl/solar.hrc>
-#define RID_SVTOOLS_BITMAP_START (RID_SVTOOLS_START + 0)
-#define RID_SVTOOLS_IMAGELIST_START (RID_SVTOOLS_START + 0)
+#define RID_SVTOOLS_BITMAP_START (RID_SVTOOLS_START + 0)
+#define RID_SVTOOLS_IMAGELIST_START (RID_SVTOOLS_START + 0)
//.............................................................................
// various unsorted stuff
-#define DLG_EXPORT_PIX (RID_SVTOOLS_START+1)
-#define DLG_EXPORT_VEC (RID_SVTOOLS_START+2)
-#define DLG_TWAIN_SOURCE (RID_SVTOOLS_START+3)
+#define DLG_EXPORT_PIX (RID_SVTOOLS_START+1)
+#define DLG_EXPORT_VEC (RID_SVTOOLS_START+2)
+#define DLG_TWAIN_SOURCE (RID_SVTOOLS_START+3)
#define DLG_SVT_EXPLORERFILE (RID_SVTOOLS_START+4)
#define DLG_SVT_QUERYFOLDERNAME (RID_SVTOOLS_START+5)
#define DLG_SVT_QUERYDELETE (RID_SVTOOLS_START+6)
-#define EXPORT_DIALOG_TITLE (RID_SVTOOLS_START+4)
-#define KEY_MODE (RID_SVTOOLS_START+5)
-#define KEY_RES (RID_SVTOOLS_START+6)
-#define KEY_SIZE (RID_SVTOOLS_START+7)
+#define EXPORT_DIALOG_TITLE (RID_SVTOOLS_START+4)
+#define KEY_MODE (RID_SVTOOLS_START+5)
+#define KEY_RES (RID_SVTOOLS_START+6)
+#define KEY_SIZE (RID_SVTOOLS_START+7)
-#define KEY_COLORS (RID_SVTOOLS_START+9)
-#define KEY_RLE_CODING (RID_SVTOOLS_START+10)
+#define KEY_COLORS (RID_SVTOOLS_START+9)
+#define KEY_RLE_CODING (RID_SVTOOLS_START+10)
-#define STR_SVT_AUTOMATIC_COLOR (RID_SVTOOLS_START+16)
+#define STR_SVT_AUTOMATIC_COLOR (RID_SVTOOLS_START+16)
#define STR_SVT_FILEVIEW_COLUMN_TITLE (RID_SVTOOLS_START + 20)
#define STR_SVT_FILEVIEW_COLUMN_SIZE (RID_SVTOOLS_START + 21)
@@ -69,219 +69,219 @@
#define STR_SVT_NEW_FOLDER (RID_SVTOOLS_START + 30)
#define STR_SVT_ALREADYEXISTOVERWRITE (RID_SVTOOLS_START + 31)
#define STR_SVT_FILEVIEW_COLUMN_TYPE (RID_SVTOOLS_START + 32)
-#define RID_FILEVIEW_CONTEXTMENU (RID_SVTOOLS_START + 33)
-#define RID_FILEOPEN_INVALIDFOLDER (RID_SVTOOLS_START + 34)
-#define RID_FILEOPEN_NOTEXISTENTFILE (RID_SVTOOLS_START + 35)
+#define RID_FILEVIEW_CONTEXTMENU (RID_SVTOOLS_START + 33)
+#define RID_FILEOPEN_INVALIDFOLDER (RID_SVTOOLS_START + 34)
+#define RID_FILEOPEN_NOTEXISTENTFILE (RID_SVTOOLS_START + 35)
#define STR_SVT_NOREMOVABLEDEVICE (RID_SVTOOLS_START + 36)
-#define STR_SVT_ALLFORMATS (RID_SVTOOLS_START + 37)
+#define STR_SVT_ALLFORMATS (RID_SVTOOLS_START + 37)
// doc template dialog
-#define DLG_DOCTEMPLATE (RID_SVTOOLS_START+50)
-#define CTRL_FILEVIEW (RID_SVTOOLS_START+51)
-#define STR_SVT_NEWDOC (RID_SVTOOLS_START+52)
-#define STR_SVT_MYDOCS (RID_SVTOOLS_START+53)
-#define STR_SVT_TEMPLATES (RID_SVTOOLS_START+54)
-#define STR_SVT_SAMPLES (RID_SVTOOLS_START+55)
-#define TB_SVT_FILEVIEW (RID_SVTOOLS_START+56)
-#define TB_SVT_FRAMEWIN (RID_SVTOOLS_START+57)
-#define STRARY_SVT_DOCINFO (RID_SVTOOLS_START+58)
-#define STR_SVT_NEWDOC_HELP (RID_SVTOOLS_START+63)
-#define STR_SVT_MYDOCS_HELP (RID_SVTOOLS_START+64)
-#define STR_SVT_TEMPLATES_HELP (RID_SVTOOLS_START+65)
-#define STR_SVT_SAMPLES_HELP (RID_SVTOOLS_START+66)
-
-#define STR_WARNING_ITEM (RID_SVTOOLS_START+90)
-
-#define CONFIG_BASIC_FORMAT_START (RID_SVTOOLS_START+102)
-#define STR_BASICKEY_FORMAT_ON (RID_SVTOOLS_START+103)
-#define STR_BASICKEY_FORMAT_OFF (RID_SVTOOLS_START+104)
-#define STR_BASICKEY_FORMAT_YES (RID_SVTOOLS_START+105)
-#define STR_BASICKEY_FORMAT_NO (RID_SVTOOLS_START+106)
-#define STR_BASICKEY_FORMAT_TRUE (RID_SVTOOLS_START+107)
-#define STR_BASICKEY_FORMAT_FALSE (RID_SVTOOLS_START+108)
-#define CONFIG_BASIC_FORMAT_END (RID_SVTOOLS_START+109)
-
-#define STR_INVALIDTRYBUY (RID_SVTOOLS_START+120)
-#define STR_OLDTRYBUY (RID_SVTOOLS_START+121)
-#define STR_TRYBUY (RID_SVTOOLS_START+122)
-#define STR_PVER_LANGUAGECODE (RID_SVTOOLS_START+124)
-#define STR_PVER_LONG_LANGUAGECODE (RID_SVTOOLS_START+125)
-#define STR_INVALIDPUFF (RID_SVTOOLS_START+126)
-#define STR_LIMITEDPUFF (RID_SVTOOLS_START+127)
-#define STR_OLDLIMITEDPUFF (RID_SVTOOLS_START+128)
-#define RID_REGISTER_DIALOG (RID_SVTOOLS_START+129)
-#define STR_BASICKEY_FORMAT_CURRENCY (RID_SVTOOLS_START+130)
-#define STR_KEYERR_GENERAL_HELP (RID_SVTOOLS_START+131)
-#define STR_KEYERR_INVALID_KEY (RID_SVTOOLS_START+132)
-#define STR_KEYERR_INVALID_USERDATA (RID_SVTOOLS_START+133)
-#define STR_KEYERR_INVALID_ADDRESSDATA (RID_SVTOOLS_START+134)
-#define STR_KEYERR_INVALID_LICENSE (RID_SVTOOLS_START+135)
-#define STR_KEYERR_INVALID_LANGUAGE (RID_SVTOOLS_START+136)
-#define STR_KEYERR_INVALID_OS (RID_SVTOOLS_START+137)
-#define STR_KEYERR_INVALID_NO_CNR (RID_SVTOOLS_START+138)
-#define STR_KEYERR_INVALID_CNR (RID_SVTOOLS_START+139)
-#define RID_LIMITED_DIALOG (RID_SVTOOLS_START+140)
-
-#define STR_SVT_PRNDLG_START (RID_SVTOOLS_START+141)
-#define DLG_SVT_PRNDLG_PRNSETUPDLG (STR_SVT_PRNDLG_START+0)
-#define DLG_SVT_PRNDLG_PRINTDLG (STR_SVT_PRNDLG_START+1)
-#define STR_SVT_PRNDLG_READY (STR_SVT_PRNDLG_START+2)
-#define STR_SVT_PRNDLG_PAUSED (STR_SVT_PRNDLG_START+3)
-#define STR_SVT_PRNDLG_PENDING (STR_SVT_PRNDLG_START+4)
-#define STR_SVT_PRNDLG_BUSY (STR_SVT_PRNDLG_START+5)
-#define STR_SVT_PRNDLG_INITIALIZING (STR_SVT_PRNDLG_START+6)
-#define STR_SVT_PRNDLG_WAITING (STR_SVT_PRNDLG_START+7)
-#define STR_SVT_PRNDLG_WARMING_UP (STR_SVT_PRNDLG_START+8)
-#define STR_SVT_PRNDLG_PROCESSING (STR_SVT_PRNDLG_START+9)
-#define STR_SVT_PRNDLG_PRINTING (STR_SVT_PRNDLG_START+10)
-#define STR_SVT_PRNDLG_OFFLINE (STR_SVT_PRNDLG_START+11)
-#define STR_SVT_PRNDLG_ERROR (STR_SVT_PRNDLG_START+12)
-#define STR_SVT_PRNDLG_SERVER_UNKNOWN (STR_SVT_PRNDLG_START+13)
-#define STR_SVT_PRNDLG_PAPER_JAM (STR_SVT_PRNDLG_START+14)
-#define STR_SVT_PRNDLG_PAPER_OUT (STR_SVT_PRNDLG_START+15)
-#define STR_SVT_PRNDLG_MANUAL_FEED (STR_SVT_PRNDLG_START+16)
-#define STR_SVT_PRNDLG_PAPER_PROBLEM (STR_SVT_PRNDLG_START+17)
-#define STR_SVT_PRNDLG_IO_ACTIVE (STR_SVT_PRNDLG_START+18)
-#define STR_SVT_PRNDLG_OUTPUT_BIN_FULL (STR_SVT_PRNDLG_START+19)
-#define STR_SVT_PRNDLG_TONER_LOW (STR_SVT_PRNDLG_START+20)
-#define STR_SVT_PRNDLG_NO_TONER (STR_SVT_PRNDLG_START+21)
-#define STR_SVT_PRNDLG_PAGE_PUNT (STR_SVT_PRNDLG_START+22)
-#define STR_SVT_PRNDLG_USER_INTERVENTION (STR_SVT_PRNDLG_START+23)
-#define STR_SVT_PRNDLG_OUT_OF_MEMORY (STR_SVT_PRNDLG_START+24)
-#define STR_SVT_PRNDLG_DOOR_OPEN (STR_SVT_PRNDLG_START+25)
-#define STR_SVT_PRNDLG_POWER_SAVE (STR_SVT_PRNDLG_START+26)
-#define STR_SVT_PRNDLG_DEFPRINTER (STR_SVT_PRNDLG_START+27)
-#define STR_SVT_PRNDLG_JOBCOUNT (STR_SVT_PRNDLG_START+28)
-#define STR_SVT_PRNDLG_END (RID_IMG_PRNDLG_NOCOLLATE_HC)
-
-#define STR_SVT_CALENDAR_START (STR_SVT_PRNDLG_END+1)
-#define STR_SVT_CALENDAR_DAY (STR_SVT_CALENDAR_START+0)
-#define STR_SVT_CALENDAR_WEEK (STR_SVT_CALENDAR_START+1)
-#define STR_SVT_CALENDAR_TODAY (STR_SVT_CALENDAR_START+2)
-#define STR_SVT_CALENDAR_NONE (STR_SVT_CALENDAR_START+3)
-#define STR_SVT_CALENDAR_END (STR_SVT_CALENDAR_NONE)
-
-#define STR_SVT_PVER_START (STR_SVT_CALENDAR_END+1)
-#define STR_SVT_PVER_INTERNAL (STR_SVT_PVER_START+0)
-#define STR_SVT_PVER_PERSONAL_DELUXE (STR_SVT_PVER_START+1)
-#define STR_SVT_PVER_PERSONAL (STR_SVT_PVER_START+2)
-#define STR_SVT_PVER_PROFESSIONAL (STR_SVT_PVER_START+3)
-#define STR_SVT_PVER_BUSINESS (STR_SVT_PVER_START+4)
-#define STR_SVT_PVER_ENTERPRICE (STR_SVT_PVER_START+5)
-#define STR_SVT_PVER_EDUCATION (STR_SVT_PVER_START+6)
-#define STR_SVT_PVER_DEMO (STR_SVT_PVER_START+7)
-#define STR_SVT_PVER_BETA (STR_SVT_PVER_START+8)
-#define STR_SVT_PVER_OEM (STR_SVT_PVER_START+9)
-#define STR_SVT_PVER_NOT_REGISTERED (STR_SVT_PVER_START+10)
-#define STR_SVT_PVER_PILOT (STR_SVT_PVER_START+11)
-#define STR_SVT_PVER_CAMPUS (STR_SVT_PVER_START+12)
-#define STR_SVT_PVER_EVALUATION (STR_SVT_PVER_START+13)
-#define STR_SVT_PVER_PARTNER (STR_SVT_PVER_START+14)
-#define STR_SVT_PVER_SMALLBUSINESS (STR_SVT_PVER_START+15)
-#define STR_SVT_PVER_OEM_PROFESSIONAL (STR_SVT_PVER_START+16)
-#define STR_SVT_PVER_END (STR_SVT_PVER_OEM_PROFESSIONAL)
-
-#define STR_SVT_STYLE_START (STR_SVT_PVER_END+1)
-#define STR_SVT_STYLE_LIGHT (STR_SVT_STYLE_START+0)
-#define STR_SVT_STYLE_LIGHT_ITALIC (STR_SVT_STYLE_START+1)
-#define STR_SVT_STYLE_NORMAL (STR_SVT_STYLE_START+2)
-#define STR_SVT_STYLE_NORMAL_ITALIC (STR_SVT_STYLE_START+3)
-#define STR_SVT_STYLE_BOLD (STR_SVT_STYLE_START+4)
-#define STR_SVT_STYLE_BOLD_ITALIC (STR_SVT_STYLE_START+5)
-#define STR_SVT_STYLE_BLACK (STR_SVT_STYLE_START+6)
-#define STR_SVT_STYLE_BLACK_ITALIC (STR_SVT_STYLE_START+7)
-#define STR_SVT_STYLE_END (STR_SVT_STYLE_BLACK_ITALIC)
-
-#define STR_SVT_FONTMAP_START (STR_SVT_STYLE_END+1)
-#define STR_SVT_FONTMAP_BOTH (STR_SVT_FONTMAP_START+0)
-#define STR_SVT_FONTMAP_PRINTERONLY (STR_SVT_FONTMAP_START+1)
-#define STR_SVT_FONTMAP_SCREENONLY (STR_SVT_FONTMAP_START+2)
-#define STR_SVT_FONTMAP_SIZENOTAVAILABLE (STR_SVT_FONTMAP_START+3)
-#define STR_SVT_FONTMAP_STYLENOTAVAILABLE (STR_SVT_FONTMAP_START+4)
-#define STR_SVT_FONTMAP_NOTAVAILABLE (STR_SVT_FONTMAP_START+5)
-#define STR_SVT_FONTMAP_END (STR_SVT_FONTMAP_NOTAVAILABLE)
-
-#define STR_SVT_ERRORCONTEXT_START (STR_SVT_FONTMAP_END+1)
-#define STR_ERR_HDLMESS (STR_SVT_ERRORCONTEXT_START+0)
-#define RID_ERRHDL_CLASS (STR_SVT_ERRORCONTEXT_START+1)
+#define DLG_DOCTEMPLATE (RID_SVTOOLS_START+50)
+#define CTRL_FILEVIEW (RID_SVTOOLS_START+51)
+#define STR_SVT_NEWDOC (RID_SVTOOLS_START+52)
+#define STR_SVT_MYDOCS (RID_SVTOOLS_START+53)
+#define STR_SVT_TEMPLATES (RID_SVTOOLS_START+54)
+#define STR_SVT_SAMPLES (RID_SVTOOLS_START+55)
+#define TB_SVT_FILEVIEW (RID_SVTOOLS_START+56)
+#define TB_SVT_FRAMEWIN (RID_SVTOOLS_START+57)
+#define STRARY_SVT_DOCINFO (RID_SVTOOLS_START+58)
+#define STR_SVT_NEWDOC_HELP (RID_SVTOOLS_START+63)
+#define STR_SVT_MYDOCS_HELP (RID_SVTOOLS_START+64)
+#define STR_SVT_TEMPLATES_HELP (RID_SVTOOLS_START+65)
+#define STR_SVT_SAMPLES_HELP (RID_SVTOOLS_START+66)
+
+#define STR_WARNING_ITEM (RID_SVTOOLS_START+90)
+
+#define CONFIG_BASIC_FORMAT_START (RID_SVTOOLS_START+102)
+#define STR_BASICKEY_FORMAT_ON (RID_SVTOOLS_START+103)
+#define STR_BASICKEY_FORMAT_OFF (RID_SVTOOLS_START+104)
+#define STR_BASICKEY_FORMAT_YES (RID_SVTOOLS_START+105)
+#define STR_BASICKEY_FORMAT_NO (RID_SVTOOLS_START+106)
+#define STR_BASICKEY_FORMAT_TRUE (RID_SVTOOLS_START+107)
+#define STR_BASICKEY_FORMAT_FALSE (RID_SVTOOLS_START+108)
+#define CONFIG_BASIC_FORMAT_END (RID_SVTOOLS_START+109)
+
+#define STR_INVALIDTRYBUY (RID_SVTOOLS_START+120)
+#define STR_OLDTRYBUY (RID_SVTOOLS_START+121)
+#define STR_TRYBUY (RID_SVTOOLS_START+122)
+#define STR_PVER_LANGUAGECODE (RID_SVTOOLS_START+124)
+#define STR_PVER_LONG_LANGUAGECODE (RID_SVTOOLS_START+125)
+#define STR_INVALIDPUFF (RID_SVTOOLS_START+126)
+#define STR_LIMITEDPUFF (RID_SVTOOLS_START+127)
+#define STR_OLDLIMITEDPUFF (RID_SVTOOLS_START+128)
+#define RID_REGISTER_DIALOG (RID_SVTOOLS_START+129)
+#define STR_BASICKEY_FORMAT_CURRENCY (RID_SVTOOLS_START+130)
+#define STR_KEYERR_GENERAL_HELP (RID_SVTOOLS_START+131)
+#define STR_KEYERR_INVALID_KEY (RID_SVTOOLS_START+132)
+#define STR_KEYERR_INVALID_USERDATA (RID_SVTOOLS_START+133)
+#define STR_KEYERR_INVALID_ADDRESSDATA (RID_SVTOOLS_START+134)
+#define STR_KEYERR_INVALID_LICENSE (RID_SVTOOLS_START+135)
+#define STR_KEYERR_INVALID_LANGUAGE (RID_SVTOOLS_START+136)
+#define STR_KEYERR_INVALID_OS (RID_SVTOOLS_START+137)
+#define STR_KEYERR_INVALID_NO_CNR (RID_SVTOOLS_START+138)
+#define STR_KEYERR_INVALID_CNR (RID_SVTOOLS_START+139)
+#define RID_LIMITED_DIALOG (RID_SVTOOLS_START+140)
+
+#define STR_SVT_PRNDLG_START (RID_SVTOOLS_START+141)
+#define DLG_SVT_PRNDLG_PRNSETUPDLG (STR_SVT_PRNDLG_START+0)
+#define DLG_SVT_PRNDLG_PRINTDLG (STR_SVT_PRNDLG_START+1)
+#define STR_SVT_PRNDLG_READY (STR_SVT_PRNDLG_START+2)
+#define STR_SVT_PRNDLG_PAUSED (STR_SVT_PRNDLG_START+3)
+#define STR_SVT_PRNDLG_PENDING (STR_SVT_PRNDLG_START+4)
+#define STR_SVT_PRNDLG_BUSY (STR_SVT_PRNDLG_START+5)
+#define STR_SVT_PRNDLG_INITIALIZING (STR_SVT_PRNDLG_START+6)
+#define STR_SVT_PRNDLG_WAITING (STR_SVT_PRNDLG_START+7)
+#define STR_SVT_PRNDLG_WARMING_UP (STR_SVT_PRNDLG_START+8)
+#define STR_SVT_PRNDLG_PROCESSING (STR_SVT_PRNDLG_START+9)
+#define STR_SVT_PRNDLG_PRINTING (STR_SVT_PRNDLG_START+10)
+#define STR_SVT_PRNDLG_OFFLINE (STR_SVT_PRNDLG_START+11)
+#define STR_SVT_PRNDLG_ERROR (STR_SVT_PRNDLG_START+12)
+#define STR_SVT_PRNDLG_SERVER_UNKNOWN (STR_SVT_PRNDLG_START+13)
+#define STR_SVT_PRNDLG_PAPER_JAM (STR_SVT_PRNDLG_START+14)
+#define STR_SVT_PRNDLG_PAPER_OUT (STR_SVT_PRNDLG_START+15)
+#define STR_SVT_PRNDLG_MANUAL_FEED (STR_SVT_PRNDLG_START+16)
+#define STR_SVT_PRNDLG_PAPER_PROBLEM (STR_SVT_PRNDLG_START+17)
+#define STR_SVT_PRNDLG_IO_ACTIVE (STR_SVT_PRNDLG_START+18)
+#define STR_SVT_PRNDLG_OUTPUT_BIN_FULL (STR_SVT_PRNDLG_START+19)
+#define STR_SVT_PRNDLG_TONER_LOW (STR_SVT_PRNDLG_START+20)
+#define STR_SVT_PRNDLG_NO_TONER (STR_SVT_PRNDLG_START+21)
+#define STR_SVT_PRNDLG_PAGE_PUNT (STR_SVT_PRNDLG_START+22)
+#define STR_SVT_PRNDLG_USER_INTERVENTION (STR_SVT_PRNDLG_START+23)
+#define STR_SVT_PRNDLG_OUT_OF_MEMORY (STR_SVT_PRNDLG_START+24)
+#define STR_SVT_PRNDLG_DOOR_OPEN (STR_SVT_PRNDLG_START+25)
+#define STR_SVT_PRNDLG_POWER_SAVE (STR_SVT_PRNDLG_START+26)
+#define STR_SVT_PRNDLG_DEFPRINTER (STR_SVT_PRNDLG_START+27)
+#define STR_SVT_PRNDLG_JOBCOUNT (STR_SVT_PRNDLG_START+28)
+#define STR_SVT_PRNDLG_END (RID_IMG_PRNDLG_NOCOLLATE_HC)
+
+#define STR_SVT_CALENDAR_START (STR_SVT_PRNDLG_END+1)
+#define STR_SVT_CALENDAR_DAY (STR_SVT_CALENDAR_START+0)
+#define STR_SVT_CALENDAR_WEEK (STR_SVT_CALENDAR_START+1)
+#define STR_SVT_CALENDAR_TODAY (STR_SVT_CALENDAR_START+2)
+#define STR_SVT_CALENDAR_NONE (STR_SVT_CALENDAR_START+3)
+#define STR_SVT_CALENDAR_END (STR_SVT_CALENDAR_NONE)
+
+#define STR_SVT_PVER_START (STR_SVT_CALENDAR_END+1)
+#define STR_SVT_PVER_INTERNAL (STR_SVT_PVER_START+0)
+#define STR_SVT_PVER_PERSONAL_DELUXE (STR_SVT_PVER_START+1)
+#define STR_SVT_PVER_PERSONAL (STR_SVT_PVER_START+2)
+#define STR_SVT_PVER_PROFESSIONAL (STR_SVT_PVER_START+3)
+#define STR_SVT_PVER_BUSINESS (STR_SVT_PVER_START+4)
+#define STR_SVT_PVER_ENTERPRICE (STR_SVT_PVER_START+5)
+#define STR_SVT_PVER_EDUCATION (STR_SVT_PVER_START+6)
+#define STR_SVT_PVER_DEMO (STR_SVT_PVER_START+7)
+#define STR_SVT_PVER_BETA (STR_SVT_PVER_START+8)
+#define STR_SVT_PVER_OEM (STR_SVT_PVER_START+9)
+#define STR_SVT_PVER_NOT_REGISTERED (STR_SVT_PVER_START+10)
+#define STR_SVT_PVER_PILOT (STR_SVT_PVER_START+11)
+#define STR_SVT_PVER_CAMPUS (STR_SVT_PVER_START+12)
+#define STR_SVT_PVER_EVALUATION (STR_SVT_PVER_START+13)
+#define STR_SVT_PVER_PARTNER (STR_SVT_PVER_START+14)
+#define STR_SVT_PVER_SMALLBUSINESS (STR_SVT_PVER_START+15)
+#define STR_SVT_PVER_OEM_PROFESSIONAL (STR_SVT_PVER_START+16)
+#define STR_SVT_PVER_END (STR_SVT_PVER_OEM_PROFESSIONAL)
+
+#define STR_SVT_STYLE_START (STR_SVT_PVER_END+1)
+#define STR_SVT_STYLE_LIGHT (STR_SVT_STYLE_START+0)
+#define STR_SVT_STYLE_LIGHT_ITALIC (STR_SVT_STYLE_START+1)
+#define STR_SVT_STYLE_NORMAL (STR_SVT_STYLE_START+2)
+#define STR_SVT_STYLE_NORMAL_ITALIC (STR_SVT_STYLE_START+3)
+#define STR_SVT_STYLE_BOLD (STR_SVT_STYLE_START+4)
+#define STR_SVT_STYLE_BOLD_ITALIC (STR_SVT_STYLE_START+5)
+#define STR_SVT_STYLE_BLACK (STR_SVT_STYLE_START+6)
+#define STR_SVT_STYLE_BLACK_ITALIC (STR_SVT_STYLE_START+7)
+#define STR_SVT_STYLE_END (STR_SVT_STYLE_BLACK_ITALIC)
+
+#define STR_SVT_FONTMAP_START (STR_SVT_STYLE_END+1)
+#define STR_SVT_FONTMAP_BOTH (STR_SVT_FONTMAP_START+0)
+#define STR_SVT_FONTMAP_PRINTERONLY (STR_SVT_FONTMAP_START+1)
+#define STR_SVT_FONTMAP_SCREENONLY (STR_SVT_FONTMAP_START+2)
+#define STR_SVT_FONTMAP_SIZENOTAVAILABLE (STR_SVT_FONTMAP_START+3)
+#define STR_SVT_FONTMAP_STYLENOTAVAILABLE (STR_SVT_FONTMAP_START+4)
+#define STR_SVT_FONTMAP_NOTAVAILABLE (STR_SVT_FONTMAP_START+5)
+#define STR_SVT_FONTMAP_END (STR_SVT_FONTMAP_NOTAVAILABLE)
+
+#define STR_SVT_ERRORCONTEXT_START (STR_SVT_FONTMAP_END+1)
+#define STR_ERR_HDLMESS (STR_SVT_ERRORCONTEXT_START+0)
+#define RID_ERRHDL_CLASS (STR_SVT_ERRORCONTEXT_START+1)
#define RID_ERRCTX (STR_SVT_ERRORCONTEXT_START+2)
#define RID_ERRHDL (STR_SVT_ERRORCONTEXT_START+3)
-#define STR_SVT_ERRORCONTEXT_END (RID_ERRHDL)
+#define STR_SVT_ERRORCONTEXT_END (RID_ERRHDL)
-#define STR_WIZARDDIALOG_START (STR_SVT_ERRORCONTEXT_END + 1)
-#define STR_WIZDLG_FINISH (STR_WIZARDDIALOG_START + 0)
-#define STR_WIZDLG_NEXT (STR_WIZARDDIALOG_START + 1)
-#define STR_WIZDLG_PREVIOUS (STR_WIZARDDIALOG_START + 2)
+#define STR_WIZARDDIALOG_START (STR_SVT_ERRORCONTEXT_END + 1)
+#define STR_WIZDLG_FINISH (STR_WIZARDDIALOG_START + 0)
+#define STR_WIZDLG_NEXT (STR_WIZARDDIALOG_START + 1)
+#define STR_WIZDLG_PREVIOUS (STR_WIZARDDIALOG_START + 2)
#define STR_WIZDLG_ROADMAP_TITLE (STR_WIZARDDIALOG_START + 3)
-#define STR_WIZARDDIALOG_END (STR_WIZDLG_ROADMAP_TITLE)
-
-#define STR_SVT_COLLATE_START (STR_WIZARDDIALOG_END+1)
-#define STR_SVT_COLLATE_NORMAL (STR_SVT_COLLATE_START+0)
-#define STR_SVT_COLLATE_DICTIONARY (STR_SVT_COLLATE_START+1)
-#define STR_SVT_COLLATE_PINYIN (STR_SVT_COLLATE_START+2)
-#define STR_SVT_COLLATE_STROKE (STR_SVT_COLLATE_START+3)
-#define STR_SVT_COLLATE_RADICAL (STR_SVT_COLLATE_START+4)
-#define STR_SVT_COLLATE_CHARSET (STR_SVT_COLLATE_START+5)
-#define STR_SVT_COLLATE_ZHUYIN (STR_SVT_COLLATE_START+6)
-#define STR_SVT_COLLATE_ALPHANUMERIC (STR_SVT_COLLATE_START+7)
-#define STR_SVT_COLLATE_UNICODE (STR_SVT_COLLATE_START+8)
-#define STR_SVT_COLLATE_PHONEBOOK (STR_SVT_COLLATE_START+9)
-#define STR_SVT_COLLATE_PHONETIC_F (STR_SVT_COLLATE_START+10)
-#define STR_SVT_COLLATE_PHONETIC_L (STR_SVT_COLLATE_START+11)
-#define STR_SVT_COLLATE_END (STR_SVT_COLLATE_PHONETIC_L)
-
-#define STR_SVT_FILEPICKER_START (STR_SVT_COLLATE_END+1)
-#define STR_SVT_FILEPICKER_AUTO_EXTENSION (STR_SVT_FILEPICKER_START+ 0)
-#define STR_SVT_FILEPICKER_PASSWORD (STR_SVT_FILEPICKER_START+ 1)
-#define STR_SVT_FILEPICKER_FILTER_OPTIONS (STR_SVT_FILEPICKER_START+ 2)
-#define STR_SVT_FILEPICKER_READONLY (STR_SVT_FILEPICKER_START+ 3)
-#define STR_SVT_FILEPICKER_INSERT_AS_LINK (STR_SVT_FILEPICKER_START+ 4)
-#define STR_SVT_FILEPICKER_SHOW_PREVIEW (STR_SVT_FILEPICKER_START+ 5)
-#define STR_SVT_FILEPICKER_PLAY (STR_SVT_FILEPICKER_START+ 6)
-#define STR_SVT_FILEPICKER_VERSION (STR_SVT_FILEPICKER_START+ 7)
-#define STR_SVT_FILEPICKER_TEMPLATES (STR_SVT_FILEPICKER_START+ 8)
-#define STR_SVT_FILEPICKER_IMAGE_TEMPLATE (STR_SVT_FILEPICKER_START+ 9)
-#define STR_SVT_FILEPICKER_SELECTION (STR_SVT_FILEPICKER_START+10)
-#define STR_SVT_FILEPICKER_FILTER_TITLE (STR_SVT_FILEPICKER_START+11)
-#define STR_SVT_FOLDERPICKER_DEFAULT_TITLE (STR_SVT_FILEPICKER_START+12)
-#define STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION (STR_SVT_FILEPICKER_START+13)
-#define STR_SVT_FILEPICKER_END (STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION)
+#define STR_WIZARDDIALOG_END (STR_WIZDLG_ROADMAP_TITLE)
+
+#define STR_SVT_COLLATE_START (STR_WIZARDDIALOG_END+1)
+#define STR_SVT_COLLATE_NORMAL (STR_SVT_COLLATE_START+0)
+#define STR_SVT_COLLATE_DICTIONARY (STR_SVT_COLLATE_START+1)
+#define STR_SVT_COLLATE_PINYIN (STR_SVT_COLLATE_START+2)
+#define STR_SVT_COLLATE_STROKE (STR_SVT_COLLATE_START+3)
+#define STR_SVT_COLLATE_RADICAL (STR_SVT_COLLATE_START+4)
+#define STR_SVT_COLLATE_CHARSET (STR_SVT_COLLATE_START+5)
+#define STR_SVT_COLLATE_ZHUYIN (STR_SVT_COLLATE_START+6)
+#define STR_SVT_COLLATE_ALPHANUMERIC (STR_SVT_COLLATE_START+7)
+#define STR_SVT_COLLATE_UNICODE (STR_SVT_COLLATE_START+8)
+#define STR_SVT_COLLATE_PHONEBOOK (STR_SVT_COLLATE_START+9)
+#define STR_SVT_COLLATE_PHONETIC_F (STR_SVT_COLLATE_START+10)
+#define STR_SVT_COLLATE_PHONETIC_L (STR_SVT_COLLATE_START+11)
+#define STR_SVT_COLLATE_END (STR_SVT_COLLATE_PHONETIC_L)
+
+#define STR_SVT_FILEPICKER_START (STR_SVT_COLLATE_END+1)
+#define STR_SVT_FILEPICKER_AUTO_EXTENSION (STR_SVT_FILEPICKER_START+ 0)
+#define STR_SVT_FILEPICKER_PASSWORD (STR_SVT_FILEPICKER_START+ 1)
+#define STR_SVT_FILEPICKER_FILTER_OPTIONS (STR_SVT_FILEPICKER_START+ 2)
+#define STR_SVT_FILEPICKER_READONLY (STR_SVT_FILEPICKER_START+ 3)
+#define STR_SVT_FILEPICKER_INSERT_AS_LINK (STR_SVT_FILEPICKER_START+ 4)
+#define STR_SVT_FILEPICKER_SHOW_PREVIEW (STR_SVT_FILEPICKER_START+ 5)
+#define STR_SVT_FILEPICKER_PLAY (STR_SVT_FILEPICKER_START+ 6)
+#define STR_SVT_FILEPICKER_VERSION (STR_SVT_FILEPICKER_START+ 7)
+#define STR_SVT_FILEPICKER_TEMPLATES (STR_SVT_FILEPICKER_START+ 8)
+#define STR_SVT_FILEPICKER_IMAGE_TEMPLATE (STR_SVT_FILEPICKER_START+ 9)
+#define STR_SVT_FILEPICKER_SELECTION (STR_SVT_FILEPICKER_START+10)
+#define STR_SVT_FILEPICKER_FILTER_TITLE (STR_SVT_FILEPICKER_START+11)
+#define STR_SVT_FOLDERPICKER_DEFAULT_TITLE (STR_SVT_FILEPICKER_START+12)
+#define STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION (STR_SVT_FILEPICKER_START+13)
+#define STR_SVT_FILEPICKER_END (STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION)
// String-Ids for accessibility
-#define STR_SVT_ACC_BEGIN (STR_SVT_FILEPICKER_END+1)
+#define STR_SVT_ACC_BEGIN (STR_SVT_FILEPICKER_END+1)
#define STR_SVT_TOOL_PANEL_BUTTON_FWD (STR_SVT_ACC_BEGIN+0)
#define STR_SVT_TOOL_PANEL_BUTTON_BACK (STR_SVT_ACC_BEGIN+1)
-#define STR_SVT_ACC_DESC_TABLISTBOX (STR_SVT_ACC_BEGIN+2)
-#define STR_SVT_ACC_DESC_FILEVIEW (STR_SVT_ACC_BEGIN+3)
-#define STR_SVT_ACC_DESC_FOLDER (STR_SVT_ACC_BEGIN+4)
-#define STR_SVT_ACC_DESC_FILE (STR_SVT_ACC_BEGIN+5)
-#define STR_SVT_ACC_EMPTY_FIELD (STR_SVT_ACC_BEGIN+6)
-#define STR_SVT_ACC_END (STR_SVT_ACC_EMPTY_FIELD)
-
-#define STR_SVT_INDEXENTRY_START (STR_SVT_ACC_END + 1)
-#define STR_SVT_INDEXENTRY_ALPHANUMERIC (STR_SVT_INDEXENTRY_START+0)
-#define STR_SVT_INDEXENTRY_DICTIONARY (STR_SVT_INDEXENTRY_START+1)
-#define STR_SVT_INDEXENTRY_PINYIN (STR_SVT_INDEXENTRY_START+2)
-#define STR_SVT_INDEXENTRY_RADICAL (STR_SVT_INDEXENTRY_START+3)
-#define STR_SVT_INDEXENTRY_STROKE (STR_SVT_INDEXENTRY_START+4)
-#define STR_SVT_INDEXENTRY_ZHUYIN (STR_SVT_INDEXENTRY_START+5)
-#define STR_SVT_INDEXENTRY_PHONETIC_FS (STR_SVT_INDEXENTRY_START+6)
-#define STR_SVT_INDEXENTRY_PHONETIC_FC (STR_SVT_INDEXENTRY_START+7)
-#define STR_SVT_INDEXENTRY_PHONETIC_LS (STR_SVT_INDEXENTRY_START+8)
-#define STR_SVT_INDEXENTRY_PHONETIC_LC (STR_SVT_INDEXENTRY_START+9)
-#define STR_SVT_INDEXENTRY_END (STR_SVT_INDEXENTRY_PHONETIC_LC)
+#define STR_SVT_ACC_DESC_TABLISTBOX (STR_SVT_ACC_BEGIN+2)
+#define STR_SVT_ACC_DESC_FILEVIEW (STR_SVT_ACC_BEGIN+3)
+#define STR_SVT_ACC_DESC_FOLDER (STR_SVT_ACC_BEGIN+4)
+#define STR_SVT_ACC_DESC_FILE (STR_SVT_ACC_BEGIN+5)
+#define STR_SVT_ACC_EMPTY_FIELD (STR_SVT_ACC_BEGIN+6)
+#define STR_SVT_ACC_END (STR_SVT_ACC_EMPTY_FIELD)
+
+#define STR_SVT_INDEXENTRY_START (STR_SVT_ACC_END + 1)
+#define STR_SVT_INDEXENTRY_ALPHANUMERIC (STR_SVT_INDEXENTRY_START+0)
+#define STR_SVT_INDEXENTRY_DICTIONARY (STR_SVT_INDEXENTRY_START+1)
+#define STR_SVT_INDEXENTRY_PINYIN (STR_SVT_INDEXENTRY_START+2)
+#define STR_SVT_INDEXENTRY_RADICAL (STR_SVT_INDEXENTRY_START+3)
+#define STR_SVT_INDEXENTRY_STROKE (STR_SVT_INDEXENTRY_START+4)
+#define STR_SVT_INDEXENTRY_ZHUYIN (STR_SVT_INDEXENTRY_START+5)
+#define STR_SVT_INDEXENTRY_PHONETIC_FS (STR_SVT_INDEXENTRY_START+6)
+#define STR_SVT_INDEXENTRY_PHONETIC_FC (STR_SVT_INDEXENTRY_START+7)
+#define STR_SVT_INDEXENTRY_PHONETIC_LS (STR_SVT_INDEXENTRY_START+8)
+#define STR_SVT_INDEXENTRY_PHONETIC_LC (STR_SVT_INDEXENTRY_START+9)
+#define STR_SVT_INDEXENTRY_END (STR_SVT_INDEXENTRY_PHONETIC_LC)
//String - Ids for Java errors, messages
//These strings come from project desktop
//There was no time for translation, therefore the defines needed to
//remain the same.
#define STR_SVT_JAVAERROR_START (STR_SVT_INDEXENTRY_END + 1)
-#define STR_QUESTION_JAVADISABLED (STR_SVT_JAVAERROR_START+0)
-#define STR_ERROR_JVMCREATIONFAILED (STR_SVT_JAVAERROR_START+1)
+#define STR_QUESTION_JAVADISABLED (STR_SVT_JAVAERROR_START+0)
+#define STR_ERROR_JVMCREATIONFAILED (STR_SVT_JAVAERROR_START+1)
#define STR_WARNING_JAVANOTFOUND (STR_SVT_JAVAERROR_START+2)
#define STR_WARNING_INVALIDJAVASETTINGS (STR_SVT_JAVAERROR_START+3)
#define STR_ERROR_RESTARTREQUIRED (STR_SVT_JAVAERROR_START+4)
-#define STR_SVT_JAVAERROR_END (STR_ERROR_RESTARTREQUIRED)
+#define STR_SVT_JAVAERROR_END (STR_ERROR_RESTARTREQUIRED)
// String array to match UI language names to LanguageType values and vice versa
#define STR_ARR_SVT_LANGUAGE_TABLE_START (STR_SVT_JAVAERROR_END + 1)
@@ -291,112 +291,112 @@
//.............................................................................
// dialogs
-#define DLG_EXPORT_JPG_START (RID_SVTOOLS_START+110)
-#define DLG_EXPORT_JPG (RID_SVTOOLS_START+111)
-#define DLG_EXPORT_JPG_END (RID_SVTOOLS_START+112)
+#define DLG_EXPORT_JPG_START (RID_SVTOOLS_START+110)
+#define DLG_EXPORT_JPG (RID_SVTOOLS_START+111)
+#define DLG_EXPORT_JPG_END (RID_SVTOOLS_START+112)
-#define DLG_LOGIN (RID_SVTOOLS_START+113)
-#define DLG_ADDRESSBOOKSOURCE (RID_SVTOOLS_START+114)
+#define DLG_LOGIN (RID_SVTOOLS_START+113)
+#define DLG_ADDRESSBOOKSOURCE (RID_SVTOOLS_START+114)
-#define DLG_REGISTRATION_REQUEST (RID_SVTOOLS_START+115)
+#define DLG_REGISTRATION_REQUEST (RID_SVTOOLS_START+115)
-#define DLG_EXPORT_EPNG (RID_SVTOOLS_START+116)
+#define DLG_EXPORT_EPNG (RID_SVTOOLS_START+116)
//.............................................................................
// bitmaps
-#define BMP_DEMO_FINGER (RID_SVTOOLS_BITMAP_START + 0)
-#define BMP_HELP_AGENT_IMAGE (RID_SVTOOLS_BITMAP_START + 1)
-#define BMP_HELP_AGENT_CLOSER (RID_SVTOOLS_BITMAP_START + 2)
+#define BMP_DEMO_FINGER (RID_SVTOOLS_BITMAP_START + 0)
+#define BMP_HELP_AGENT_IMAGE (RID_SVTOOLS_BITMAP_START + 1)
+#define BMP_HELP_AGENT_CLOSER (RID_SVTOOLS_BITMAP_START + 2)
#define BMP_PLUGIN (RID_SVTOOLS_BITMAP_START + 3)
#define BMP_LIST_ADD (RID_SVTOOLS_BITMAP_START + 4)
//.............................................................................
// image lists
-#define RID_IMG_EXPANDER (RID_SVTOOLS_IMAGELIST_START + 0)
-#define RID_SVTOOLS_IMAGELIST_BIG (RID_SVTOOLS_IMAGELIST_START + 1)
-#define RID_SVTOOLS_IMAGELIST_SMALL (RID_SVTOOLS_IMAGELIST_START + 2)
-#define RID_SVTOOLS_IMAGELIST_EDITBROWSEBOX (RID_SVTOOLS_IMAGELIST_START + 3)
-#define RID_SVTOOLS_IMAGELIST_BIG_HIGHCONTRAST (RID_SVTOOLS_IMAGELIST_START + 4)
-#define RID_SVTOOLS_IMAGELIST_SMALL_HIGHCONTRAST (RID_SVTOOLS_IMAGELIST_START + 5)
-#define RID_SVTOOLS_IMAGELIST_EDITBWSEBOX_H (RID_SVTOOLS_IMAGELIST_START + 6)
-#define RID_FILEPICKER_IMAGES (RID_SVTOOLS_IMAGELIST_START + 7)
-#define RID_FILEPICKER_IMAGES_HC (RID_SVTOOLS_IMAGELIST_START + 8)
+#define RID_IMG_EXPANDER (RID_SVTOOLS_IMAGELIST_START + 0)
+#define RID_SVTOOLS_IMAGELIST_BIG (RID_SVTOOLS_IMAGELIST_START + 1)
+#define RID_SVTOOLS_IMAGELIST_SMALL (RID_SVTOOLS_IMAGELIST_START + 2)
+#define RID_SVTOOLS_IMAGELIST_EDITBROWSEBOX (RID_SVTOOLS_IMAGELIST_START + 3)
+#define RID_SVTOOLS_IMAGELIST_BIG_HIGHCONTRAST (RID_SVTOOLS_IMAGELIST_START + 4)
+#define RID_SVTOOLS_IMAGELIST_SMALL_HIGHCONTRAST (RID_SVTOOLS_IMAGELIST_START + 5)
+#define RID_SVTOOLS_IMAGELIST_EDITBWSEBOX_H (RID_SVTOOLS_IMAGELIST_START + 6)
+#define RID_FILEPICKER_IMAGES (RID_SVTOOLS_IMAGELIST_START + 7)
+#define RID_FILEPICKER_IMAGES_HC (RID_SVTOOLS_IMAGELIST_START + 8)
//.............................................................................
// error boxes
-#define ERRBOX_REG_NOSYSBROWSER ( RID_SVTOOLS_START + 0 )
-#define ERRBOX_CHECK_PLZ ( RID_SVTOOLS_START + 11 )
+#define ERRBOX_REG_NOSYSBROWSER ( RID_SVTOOLS_START + 0 )
+#define ERRBOX_CHECK_PLZ ( RID_SVTOOLS_START + 11 )
// Java message boxes
//These strings come from project desktop
//There was no time for translation, therefore the defines needed to
//remain the same.
-#define QBX_JAVADISABLED (RID_SVTOOLS_START+20)
-#define ERRORBOX_JVMCREATIONFAILED (RID_SVTOOLS_START+21)
+#define QBX_JAVADISABLED (RID_SVTOOLS_START+20)
+#define ERRORBOX_JVMCREATIONFAILED (RID_SVTOOLS_START+21)
#define WARNINGBOX_JAVANOTFOUND (RID_SVTOOLS_START+22)
#define WARNINGBOX_INVALIDJAVASETTINGS (RID_SVTOOLS_START+23)
#define ERRORBOX_RESTARTREQUIRED (RID_SVTOOLS_START+24)
//.............................................................................
// images
-#define RID_IMG_TREENODE_COLLAPSED (RID_SVTOOLS_START + 0)
-#define RID_IMG_TREENODE_EXPANDED (RID_SVTOOLS_START + 1)
-#define RID_IMG_TREENODE_COLLAPSED_HC (RID_SVTOOLS_START + 2)
-#define RID_IMG_TREENODE_EXPANDED_HC (RID_SVTOOLS_START + 3)
-
-#define RID_IMG_PRINTERFONT (RID_SVTOOLS_START + 12)
-#define RID_IMG_BITMAPFONT (RID_SVTOOLS_START + 13)
-#define RID_IMG_SCALABLEFONT (RID_SVTOOLS_START + 14)
-#define RID_IMG_PRINTERFONT_HC (RID_SVTOOLS_START + 15)
-#define RID_IMG_BITMAPFONT_HC (RID_SVTOOLS_START + 16)
-#define RID_IMG_SCALABLEFONT_HC (RID_SVTOOLS_START + 17)
+#define RID_IMG_TREENODE_COLLAPSED (RID_SVTOOLS_START + 0)
+#define RID_IMG_TREENODE_EXPANDED (RID_SVTOOLS_START + 1)
+#define RID_IMG_TREENODE_COLLAPSED_HC (RID_SVTOOLS_START + 2)
+#define RID_IMG_TREENODE_EXPANDED_HC (RID_SVTOOLS_START + 3)
+
+#define RID_IMG_PRINTERFONT (RID_SVTOOLS_START + 12)
+#define RID_IMG_BITMAPFONT (RID_SVTOOLS_START + 13)
+#define RID_IMG_SCALABLEFONT (RID_SVTOOLS_START + 14)
+#define RID_IMG_PRINTERFONT_HC (RID_SVTOOLS_START + 15)
+#define RID_IMG_BITMAPFONT_HC (RID_SVTOOLS_START + 16)
+#define RID_IMG_SCALABLEFONT_HC (RID_SVTOOLS_START + 17)
#define IMG_TRIANGLE_RIGHT (RID_SVTOOLS_START + 18)
#define IMG_TRIANGLE_RIGHT_HC (RID_SVTOOLS_START + 19)
#define IMG_TRIANGLE_DOWN (RID_SVTOOLS_START + 20)
#define IMG_TRIANGLE_DOWN_HC (RID_SVTOOLS_START + 21)
-#define IMG_SVT_FOLDER (RID_SVTOOLS_START + 40)
-
-#define IMG_SVT_NEWDOC (RID_SVTOOLS_START + 52)
-#define IMG_SVT_MYDOCS (RID_SVTOOLS_START + 53)
-#define IMG_SVT_TEMPLATES (RID_SVTOOLS_START + 54)
-#define IMG_SVT_SAMPLES (RID_SVTOOLS_START + 55)
-
-#define IMG_SVT_NEWDOC_HC (RID_SVTOOLS_START + 59)
-#define IMG_SVT_MYDOCS_HC (RID_SVTOOLS_START + 60)
-#define IMG_SVT_TEMPLATES_HC (RID_SVTOOLS_START + 61)
-#define IMG_SVT_SAMPLES_HC (RID_SVTOOLS_START + 62)
-
-#define IMG_SVT_DOCTEMPLATE_BACK_SMALL (RID_SVTOOLS_START + 70)
-#define IMG_SVT_DOCTEMPLATE_BACK_LARGE (RID_SVTOOLS_START + 71)
-#define IMG_SVT_DOCTEMPLATE_PREV_SMALL (RID_SVTOOLS_START + 72)
-#define IMG_SVT_DOCTEMPLATE_PREV_LARGE (RID_SVTOOLS_START + 73)
-#define IMG_SVT_DOCTEMPLATE_PRINT_SMALL (RID_SVTOOLS_START + 74)
-#define IMG_SVT_DOCTEMPLATE_PRINT_LARGE (RID_SVTOOLS_START + 75)
-#define IMG_SVT_DOCTEMPLATE_DOCINFO_SMALL (RID_SVTOOLS_START + 76)
-#define IMG_SVT_DOCTEMPLATE_DOCINFO_LARGE (RID_SVTOOLS_START + 77)
-#define IMG_SVT_DOCTEMPLATE_PREVIEW_SMALL (RID_SVTOOLS_START + 78)
-#define IMG_SVT_DOCTEMPLATE_PREVIEW_LARGE (RID_SVTOOLS_START + 79)
-
-#define IMG_SVT_DOCTEMPL_HC_BACK_SMALL (RID_SVTOOLS_START + 80)
-#define IMG_SVT_DOCTEMPL_HC_BACK_LARGE (RID_SVTOOLS_START + 81)
-#define IMG_SVT_DOCTEMPL_HC_PREV_SMALL (RID_SVTOOLS_START + 82)
-#define IMG_SVT_DOCTEMPL_HC_PREV_LARGE (RID_SVTOOLS_START + 83)
-#define IMG_SVT_DOCTEMPL_HC_PRINT_SMALL (RID_SVTOOLS_START + 84)
-#define IMG_SVT_DOCTEMPL_HC_PRINT_LARGE (RID_SVTOOLS_START + 85)
-#define IMG_SVT_DOCTEMPL_HC_DOCINFO_SMALL (RID_SVTOOLS_START + 86)
-#define IMG_SVT_DOCTEMPL_HC_DOCINFO_LARGE (RID_SVTOOLS_START + 87)
-#define IMG_SVT_DOCTEMPL_HC_PREVIEW_SMALL (RID_SVTOOLS_START + 88)
-#define IMG_SVT_DOCTEMPL_HC_PREVIEW_LARGE (RID_SVTOOLS_START + 89)
+#define IMG_SVT_FOLDER (RID_SVTOOLS_START + 40)
+
+#define IMG_SVT_NEWDOC (RID_SVTOOLS_START + 52)
+#define IMG_SVT_MYDOCS (RID_SVTOOLS_START + 53)
+#define IMG_SVT_TEMPLATES (RID_SVTOOLS_START + 54)
+#define IMG_SVT_SAMPLES (RID_SVTOOLS_START + 55)
+
+#define IMG_SVT_NEWDOC_HC (RID_SVTOOLS_START + 59)
+#define IMG_SVT_MYDOCS_HC (RID_SVTOOLS_START + 60)
+#define IMG_SVT_TEMPLATES_HC (RID_SVTOOLS_START + 61)
+#define IMG_SVT_SAMPLES_HC (RID_SVTOOLS_START + 62)
+
+#define IMG_SVT_DOCTEMPLATE_BACK_SMALL (RID_SVTOOLS_START + 70)
+#define IMG_SVT_DOCTEMPLATE_BACK_LARGE (RID_SVTOOLS_START + 71)
+#define IMG_SVT_DOCTEMPLATE_PREV_SMALL (RID_SVTOOLS_START + 72)
+#define IMG_SVT_DOCTEMPLATE_PREV_LARGE (RID_SVTOOLS_START + 73)
+#define IMG_SVT_DOCTEMPLATE_PRINT_SMALL (RID_SVTOOLS_START + 74)
+#define IMG_SVT_DOCTEMPLATE_PRINT_LARGE (RID_SVTOOLS_START + 75)
+#define IMG_SVT_DOCTEMPLATE_DOCINFO_SMALL (RID_SVTOOLS_START + 76)
+#define IMG_SVT_DOCTEMPLATE_DOCINFO_LARGE (RID_SVTOOLS_START + 77)
+#define IMG_SVT_DOCTEMPLATE_PREVIEW_SMALL (RID_SVTOOLS_START + 78)
+#define IMG_SVT_DOCTEMPLATE_PREVIEW_LARGE (RID_SVTOOLS_START + 79)
+
+#define IMG_SVT_DOCTEMPL_HC_BACK_SMALL (RID_SVTOOLS_START + 80)
+#define IMG_SVT_DOCTEMPL_HC_BACK_LARGE (RID_SVTOOLS_START + 81)
+#define IMG_SVT_DOCTEMPL_HC_PREV_SMALL (RID_SVTOOLS_START + 82)
+#define IMG_SVT_DOCTEMPL_HC_PREV_LARGE (RID_SVTOOLS_START + 83)
+#define IMG_SVT_DOCTEMPL_HC_PRINT_SMALL (RID_SVTOOLS_START + 84)
+#define IMG_SVT_DOCTEMPL_HC_PRINT_LARGE (RID_SVTOOLS_START + 85)
+#define IMG_SVT_DOCTEMPL_HC_DOCINFO_SMALL (RID_SVTOOLS_START + 86)
+#define IMG_SVT_DOCTEMPL_HC_DOCINFO_LARGE (RID_SVTOOLS_START + 87)
+#define IMG_SVT_DOCTEMPL_HC_PREVIEW_SMALL (RID_SVTOOLS_START + 88)
+#define IMG_SVT_DOCTEMPL_HC_PREVIEW_LARGE (RID_SVTOOLS_START + 89)
#define RID_IMG_PRNDLG_COLLATE (STR_SVT_PRNDLG_START + 29)
#define RID_IMG_PRNDLG_NOCOLLATE (STR_SVT_PRNDLG_START + 30)
#define RID_IMG_PRNDLG_COLLATE_HC (STR_SVT_PRNDLG_START + 31)
#define RID_IMG_PRNDLG_NOCOLLATE_HC (STR_SVT_PRNDLG_START + 32)
-#endif // #ifndef _SVTOOLS_HRC
+#endif // #ifndef _SVTOOLS_HRC
// ******************************************************************* EOF
diff --git a/svtools/inc/svtools/svtreebx.hxx b/svtools/inc/svtools/svtreebx.hxx
index cc7520d0ef8c..a9326c51d0c5 100644
--- a/svtools/inc/svtools/svtreebx.hxx
+++ b/svtools/inc/svtools/svtreebx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,17 +41,17 @@ class TabBar;
#define SV_TAB_BORDER 8
#define WB_HASBUTTONSATROOT ((WinBits)0x0800)
-#define WB_NOINITIALSELECTION WB_DROPDOWN
-#define WB_HIDESELECTION WB_NOHIDESELECTION
-#define WB_FORCE_MAKEVISIBLE WB_SPIN
+#define WB_NOINITIALSELECTION WB_DROPDOWN
+#define WB_HIDESELECTION WB_NOHIDESELECTION
+#define WB_FORCE_MAKEVISIBLE WB_SPIN
#define SV_LISTBOX_ID_TREEBOX 1 // fuer SvLBox::IsA()
#define SV_ENTRYHEIGHTOFFS_PIXEL 2
-#define TREEFLAG_CHKBTN 0x0001
-#define TREEFLAG_USESEL 0x0002
-#define TREEFLAG_MANINS 0x0004
-#define TREEFLAG_RECALCTABS 0x0008
+#define TREEFLAG_CHKBTN 0x0001
+#define TREEFLAG_USESEL 0x0002
+#define TREEFLAG_MANINS 0x0004
+#define TREEFLAG_RECALCTABS 0x0008
typedef sal_Int64 ExtendedWinBits;
@@ -66,106 +66,106 @@ class SVT_DLLPUBLIC SvTreeListBox : public SvLBox
friend class ImpLBSelEng;
friend class TreeControlPeer;
- SvImpLBox* pImp;
- Link aCheckButtonHdl;
- Link aScrolledHdl;
- Accelerator aInpEditAcc;
- Image aPrevInsertedExpBmp;
- Image aPrevInsertedColBmp;
- Image aCurInsertedExpBmp;
- Image aCurInsertedColBmp;
-
- short nContextBmpWidthMax;
- USHORT nFirstSelTab, nLastSelTab;
- short nEntryHeight;
- short nEntryHeightOffs;
- short nIndent;
- short nFocusWidth;
- USHORT aContextBmpMode;
+ SvImpLBox* pImp;
+ Link aCheckButtonHdl;
+ Link aScrolledHdl;
+ Accelerator aInpEditAcc;
+ Image aPrevInsertedExpBmp;
+ Image aPrevInsertedColBmp;
+ Image aCurInsertedExpBmp;
+ Image aCurInsertedColBmp;
+
+ short nContextBmpWidthMax;
+ USHORT nFirstSelTab, nLastSelTab;
+ short nEntryHeight;
+ short nEntryHeightOffs;
+ short nIndent;
+ short nFocusWidth;
+ USHORT aContextBmpMode;
#ifdef _SVTREEBX_CXX
DECL_DLLPRIVATE_LINK( CheckButtonClick, SvLBoxButtonData * );
- SVT_DLLPRIVATE short GetHeightOffset( const Image& rBmp, Size& rLogicSize);
- SVT_DLLPRIVATE short GetHeightOffset( const Font& rFont, Size& rLogicSize);
+ SVT_DLLPRIVATE short GetHeightOffset( const Image& rBmp, Size& rLogicSize);
+ SVT_DLLPRIVATE short GetHeightOffset( const Font& rFont, Size& rLogicSize);
- SVT_DLLPRIVATE void SetEntryHeight( SvLBoxEntry* pEntry );
- SVT_DLLPRIVATE void AdjustEntryHeight( const Image& rBmp );
- SVT_DLLPRIVATE void AdjustEntryHeight( const Font& rFont );
+ SVT_DLLPRIVATE void SetEntryHeight( SvLBoxEntry* pEntry );
+ SVT_DLLPRIVATE void AdjustEntryHeight( const Image& rBmp );
+ SVT_DLLPRIVATE void AdjustEntryHeight( const Font& rFont );
- SVT_DLLPRIVATE void ImpEntryInserted( SvLBoxEntry* pEntry );
- SVT_DLLPRIVATE long PaintEntry1( SvLBoxEntry*, long nLine,
+ SVT_DLLPRIVATE void ImpEntryInserted( SvLBoxEntry* pEntry );
+ SVT_DLLPRIVATE long PaintEntry1( SvLBoxEntry*, long nLine,
USHORT nTabFlagMask=0xffff,
BOOL bHasClipRegion=FALSE );
- SVT_DLLPRIVATE void InitTreeView( WinBits nWinStyle );
- SVT_DLLPRIVATE SvLBoxItem* GetItem_Impl( SvLBoxEntry*, long nX, SvLBoxTab** ppTab,
+ SVT_DLLPRIVATE void InitTreeView( WinBits nWinStyle );
+ SVT_DLLPRIVATE SvLBoxItem* GetItem_Impl( SvLBoxEntry*, long nX, SvLBoxTab** ppTab,
USHORT nEmptyWidth );
#endif
protected:
- SvLBoxButtonData* pCheckButtonData;
- USHORT nTreeFlags;
+ SvLBoxButtonData* pCheckButtonData;
+ USHORT nTreeFlags;
- SvLBoxEntry* pEdEntry;
- SvLBoxItem* pEdItem;
+ SvLBoxEntry* pEdEntry;
+ SvLBoxItem* pEdItem;
- void EditItemText( SvLBoxEntry* pEntry, SvLBoxString* pItem,
+ void EditItemText( SvLBoxEntry* pEntry, SvLBoxString* pItem,
const Selection& );
- void EditedText( const XubString& );
- void EditingRequest( SvLBoxEntry* pEntry, SvLBoxItem* pItem,
+ void EditedText( const XubString& );
+ void EditingRequest( SvLBoxEntry* pEntry, SvLBoxItem* pItem,
const Point& rMousePos );
- SvPtrarr aTabs;
+ SvPtrarr aTabs;
// berechnet abhaengig von TreeList-Style & Bitmap-Groessen
// alle Tabulatoren neu; wird beim Einfuegen/Austauschen von
// Bitmaps, beim Wechsel des Models usw. automatisch gerufen
- virtual void SetTabs();
- void SetTabs_Impl();
- void AddTab( long nPos,USHORT nFlags=SV_LBOXTAB_ADJUST_LEFT,
+ virtual void SetTabs();
+ void SetTabs_Impl();
+ void AddTab( long nPos,USHORT nFlags=SV_LBOXTAB_ADJUST_LEFT,
void* pUserData = 0 );
- USHORT TabCount() const { return aTabs.Count(); }
- SvLBoxTab* GetFirstDynamicTab() const;
- SvLBoxTab* GetFirstDynamicTab( USHORT& rTabPos ) const;
- SvLBoxTab* GetFirstTab( USHORT nFlagMask, USHORT& rTabPos );
- SvLBoxTab* GetLastTab( USHORT nFlagMask, USHORT& rTabPos );
- SvLBoxTab* GetTab( SvLBoxEntry*, SvLBoxItem* ) const;
- void ClearTabList();
+ USHORT TabCount() const { return aTabs.Count(); }
+ SvLBoxTab* GetFirstDynamicTab() const;
+ SvLBoxTab* GetFirstDynamicTab( USHORT& rTabPos ) const;
+ SvLBoxTab* GetFirstTab( USHORT nFlagMask, USHORT& rTabPos );
+ SvLBoxTab* GetLastTab( USHORT nFlagMask, USHORT& rTabPos );
+ SvLBoxTab* GetTab( SvLBoxEntry*, SvLBoxItem* ) const;
+ void ClearTabList();
virtual void InitEntry(SvLBoxEntry*,const XubString&,const Image&,const Image&,SvLBoxButtonKind);
- virtual void NotifyBeginScroll();
- virtual void NotifyEndScroll();
+ virtual void NotifyBeginScroll();
+ virtual void NotifyEndScroll();
// nLines == 0 => horizontales Scrolling
- virtual void NotifyScrolling( long nLines );
- virtual void NotifyScrolled();
- void SetScrolledHdl( const Link& rLink ) { aScrolledHdl = rLink; }
- const Link& GetScrolledHdl() const { return aScrolledHdl; }
- long GetXOffset() const { return GetMapMode().GetOrigin().X(); }
+ virtual void NotifyScrolling( long nLines );
+ virtual void NotifyScrolled();
+ void SetScrolledHdl( const Link& rLink ) { aScrolledHdl = rLink; }
+ const Link& GetScrolledHdl() const { return aScrolledHdl; }
+ long GetXOffset() const { return GetMapMode().GetOrigin().X(); }
// wird aufgerufen, _bevor_ Bereiche im Control invalidiert werden,
// kann zum Hiden von Elementen benutzt werden, die von aussen
// in das Control hineingezeichnet werden
- virtual void NotifyInvalidating();
+ virtual void NotifyInvalidating();
- virtual ULONG GetAscInsertionPos( SvLBoxEntry*, SvLBoxEntry* pParent );
- virtual ULONG GetDescInsertionPos( SvLBoxEntry*, SvLBoxEntry* pParent );
+ virtual ULONG GetAscInsertionPos( SvLBoxEntry*, SvLBoxEntry* pParent );
+ virtual ULONG GetDescInsertionPos( SvLBoxEntry*, SvLBoxEntry* pParent );
virtual void Command( const CommandEvent& rCEvt );
virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void CursorMoved( SvLBoxEntry* pNewCursor );
- virtual void PreparePaint( SvLBoxEntry* );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void CursorMoved( SvLBoxEntry* pNewCursor );
+ virtual void PreparePaint( SvLBoxEntry* );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
virtual void StateChanged( StateChangedType nStateChange );
- void InitSettings(BOOL bFont,BOOL bForeground,BOOL bBackground);
- BOOL IsCellFocusEnabled() const;
- bool SetCurrentTabPos( USHORT _nNewPos );
- USHORT GetCurrentTabPos() const;
- void CallImplEventListeners(ULONG nEvent, void* pData);
+ void InitSettings(BOOL bFont,BOOL bForeground,BOOL bBackground);
+ BOOL IsCellFocusEnabled() const;
+ bool SetCurrentTabPos( USHORT _nNewPos );
+ USHORT GetCurrentTabPos() const;
+ void CallImplEventListeners(ULONG nEvent, void* pData);
- void ImplEditEntry( SvLBoxEntry* pEntry );
+ void ImplEditEntry( SvLBoxEntry* pEntry );
sal_Bool AreChildrenTransient() const;
void SetChildrenNotTransient();
@@ -178,37 +178,37 @@ public:
void SetExtendedWinBits( ExtendedWinBits _nBits );
ExtendedWinBits GetExtendedWinBits() const;
- void DisconnectFromModel();
+ void DisconnectFromModel();
- void EnableCheckButton( SvLBoxButtonData* );
- void SetCheckButtonData( SvLBoxButtonData* );
- void SetNodeBitmaps( const Image& rCollapsedNodeBmp, const Image& rExpandedNodeBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetDontKnowNodeBitmap( const Image& rDontKnowBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void EnableCheckButton( SvLBoxButtonData* );
+ void SetCheckButtonData( SvLBoxButtonData* );
+ void SetNodeBitmaps( const Image& rCollapsedNodeBmp, const Image& rExpandedNodeBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetDontKnowNodeBitmap( const Image& rDontKnowBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
/** returns the default image which clients should use for expanded nodes, to have a consistent user
interface experience in the whole product.
*/
- static const Image& GetDefaultExpandedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ static const Image& GetDefaultExpandedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
/** returns the default image which clients should use for expanded nodes, to have a consistent user
interface experience in the whole product.
*/
- static const Image& GetDefaultCollapsedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ static const Image& GetDefaultCollapsedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
/** sets default bitmaps for collapsed and expanded nodes.
*/
- inline void SetNodeDefaultImages( )
+ inline void SetNodeDefaultImages( )
{
SetNodeBitmaps( GetDefaultCollapsedNodeImage( BMP_COLOR_NORMAL ), GetDefaultExpandedNodeImage( BMP_COLOR_NORMAL ), BMP_COLOR_NORMAL );
SetNodeBitmaps( GetDefaultCollapsedNodeImage( BMP_COLOR_HIGHCONTRAST ), GetDefaultExpandedNodeImage( BMP_COLOR_HIGHCONTRAST ), BMP_COLOR_HIGHCONTRAST );
}
- virtual SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
+ virtual SvLBoxEntry* InsertEntry( const XubString& rText, SvLBoxEntry* pParent = 0,
BOOL bChildsOnDemand = FALSE,
ULONG nPos=LIST_APPEND, void* pUserData = 0,
SvLBoxButtonKind eButtonKind = SvLBoxButtonKind_enabledCheckbox );
- virtual SvLBoxEntry* InsertEntry( const XubString& rText,
+ virtual SvLBoxEntry* InsertEntry( const XubString& rText,
const Image& rExpandedEntryBmp,
const Image& rCollapsedEntryBmp,
SvLBoxEntry* pParent = 0,
@@ -217,52 +217,52 @@ public:
SvLBoxButtonKind eButtonKind = SvLBoxButtonKind_enabledCheckbox );
const Image& GetDefaultExpandedEntryBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- const Image& GetDefaultCollapsedEntryBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ const Image& GetDefaultCollapsedEntryBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- void SetDefaultExpandedEntryBmp( const Image& rBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetDefaultCollapsedEntryBmp( const Image& rBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetDefaultExpandedEntryBmp( const Image& rBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetDefaultCollapsedEntryBmp( const Image& rBmp, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetCheckButtonState( SvLBoxEntry*, SvButtonState );
- SvButtonState GetCheckButtonState( SvLBoxEntry* ) const;
+ void SetCheckButtonState( SvLBoxEntry*, SvButtonState );
+ SvButtonState GetCheckButtonState( SvLBoxEntry* ) const;
void ShowExpandBitmapOnCursor( BOOL );
- BOOL IsExpandBitmapOnCursor() const { return (BOOL)(aContextBmpMode & SVLISTENTRYFLAG_FOCUSED)!=0; }
+ BOOL IsExpandBitmapOnCursor() const { return (BOOL)(aContextBmpMode & SVLISTENTRYFLAG_FOCUSED)!=0; }
- void SetEntryText(SvLBoxEntry*, const XubString& );
- void SetExpandedEntryBmp( SvLBoxEntry* _pEntry, const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetCollapsedEntryBmp( SvLBoxEntry* _pEntry, const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetEntryText(SvLBoxEntry*, const XubString& );
+ void SetExpandedEntryBmp( SvLBoxEntry* _pEntry, const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetCollapsedEntryBmp( SvLBoxEntry* _pEntry, const Image& _rImage, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
- String SearchEntryText( SvLBoxEntry* pEntry ) const;
- const Image& GetExpandedEntryBmp(SvLBoxEntry* _pEntry, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- const Image& GetCollapsedEntryBmp(SvLBoxEntry* _pEntry, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ virtual String GetEntryText( SvLBoxEntry* pEntry ) const;
+ String SearchEntryText( SvLBoxEntry* pEntry ) const;
+ const Image& GetExpandedEntryBmp(SvLBoxEntry* _pEntry, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ const Image& GetCollapsedEntryBmp(SvLBoxEntry* _pEntry, BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- void SetCheckButtonHdl( const Link& rLink ) { aCheckButtonHdl=rLink; }
- Link GetCheckButtonHdl() const { return aCheckButtonHdl; }
- virtual void CheckButtonHdl();
+ void SetCheckButtonHdl( const Link& rLink ) { aCheckButtonHdl=rLink; }
+ Link GetCheckButtonHdl() const { return aCheckButtonHdl; }
+ virtual void CheckButtonHdl();
- virtual SvLBoxEntry* CloneEntry( SvLBoxEntry* pSource );
+ virtual SvLBoxEntry* CloneEntry( SvLBoxEntry* pSource );
- virtual USHORT IsA();
+ virtual USHORT IsA();
- void SetSublistOpenWithReturn( BOOL bMode = TRUE ); // open/close sublist with return/enter
- BOOL IsSublistOpenWithReturn() const;
- void SetSublistOpenWithLeftRight( BOOL bMode = TRUE ); // open/close sublist with cursor left/right
- BOOL IsSublistOpenWithLeftRight() const;
+ void SetSublistOpenWithReturn( BOOL bMode = TRUE ); // open/close sublist with return/enter
+ BOOL IsSublistOpenWithReturn() const;
+ void SetSublistOpenWithLeftRight( BOOL bMode = TRUE ); // open/close sublist with cursor left/right
+ BOOL IsSublistOpenWithLeftRight() const;
- void EnableInplaceEditing( BOOL bEnable );
- BOOL IsInplaceEditingEnabled() const { return SvLBox::IsInplaceEditingEnabled(); }
+ void EnableInplaceEditing( BOOL bEnable );
+ BOOL IsInplaceEditingEnabled() const { return SvLBox::IsInplaceEditingEnabled(); }
inline void ForbidEmptyText() { SvLBox::ForbidEmptyText(); }
// Editiert das erste StringItem des Entries, 0==Cursor
- void EditEntry( SvLBoxEntry* pEntry = NULL );
- void CancelEditing();
- virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
- virtual BOOL EditedEntry( SvLBoxEntry* pEntry, const XubString& rNewText );
- BOOL IsEditingActive() const { return SvLBox::IsEditingActive(); }
- void EndEditing( BOOL bCancel = FALSE ) { SvLBox::EndEditing( bCancel ); }
- BOOL EditingCanceled() const { return SvLBox::EditingCanceled(); }
+ void EditEntry( SvLBoxEntry* pEntry = NULL );
+ void CancelEditing();
+ virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
+ virtual BOOL EditedEntry( SvLBoxEntry* pEntry, const XubString& rNewText );
+ BOOL IsEditingActive() const { return SvLBox::IsEditingActive(); }
+ void EndEditing( BOOL bCancel = FALSE ) { SvLBox::EndEditing( bCancel ); }
+ BOOL EditingCanceled() const { return SvLBox::EditingCanceled(); }
- virtual void RequestingChilds( SvLBoxEntry* pParent );
+ virtual void RequestingChilds( SvLBoxEntry* pParent );
virtual void Paint( const Rectangle& rRect );
virtual void MouseButtonDown( const MouseEvent& rMEvt );
@@ -272,121 +272,121 @@ public:
virtual void Resize();
virtual void GetFocus();
virtual void LoseFocus();
- void SetUpdateMode( BOOL );
+ void SetUpdateMode( BOOL );
// aktualisiert nicht die vertikale ScrollBar
- void SetUpdateModeFast( BOOL );
+ void SetUpdateModeFast( BOOL );
using SvListView::SetModel;
- void SetModel( SvLBoxTreeList* );
- virtual void ModelHasCleared();
- virtual void ModelHasInserted( SvListEntry* pEntry );
- virtual void ModelHasInsertedTree( SvListEntry* pEntry );
- virtual void ModelIsMoving(SvListEntry* pSource,
+ void SetModel( SvLBoxTreeList* );
+ virtual void ModelHasCleared();
+ virtual void ModelHasInserted( SvListEntry* pEntry );
+ virtual void ModelHasInsertedTree( SvListEntry* pEntry );
+ virtual void ModelIsMoving(SvListEntry* pSource,
SvListEntry* pTargetParent, ULONG nChildPos );
- virtual void ModelHasMoved(SvListEntry* pSource );
- virtual void ModelIsRemoving( SvListEntry* pEntry );
- virtual void ModelHasRemoved( SvListEntry* pEntry );
- virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
+ virtual void ModelHasMoved(SvListEntry* pSource );
+ virtual void ModelIsRemoving( SvListEntry* pEntry );
+ virtual void ModelHasRemoved( SvListEntry* pEntry );
+ virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
- void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
+ void ShowTargetEmphasis( SvLBoxEntry*, BOOL bShow );
using Window::GetDropTarget;
- SvLBoxEntry* GetDropTarget( const Point& );
- void ScrollOutputArea( short nDeltaEntries );
-
- short GetEntryHeight() const { return nEntryHeight; }
- void SetEntryHeight( short nHeight, BOOL bAlways = FALSE );
- Size GetOutputSizePixel() const;
- short GetIndent() const { return nIndent; }
- void SetIndent( short nIndent );
- void SetSpaceBetweenEntries( short nSpace );
- short GetSpaceBetweenEntries() const {return nEntryHeightOffs;}
- Point GetEntryPosition( SvLBoxEntry* ) const;
- void ShowEntry( SvLBoxEntry* ); // !!!OBSOLETE, use MakeVisible
- virtual void MakeVisible( SvLBoxEntry* );
- void MakeVisible( SvLBoxEntry*, BOOL bMoveToTop );
-
- void SetCollapsedNodeBmp( const Image&, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- void SetExpandedNodeBmp( const Image&, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- Image GetCollapsedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- Image GetExpandedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
-
- void SetFont( const Font& rFont );
+ SvLBoxEntry* GetDropTarget( const Point& );
+ void ScrollOutputArea( short nDeltaEntries );
+
+ short GetEntryHeight() const { return nEntryHeight; }
+ void SetEntryHeight( short nHeight, BOOL bAlways = FALSE );
+ Size GetOutputSizePixel() const;
+ short GetIndent() const { return nIndent; }
+ void SetIndent( short nIndent );
+ void SetSpaceBetweenEntries( short nSpace );
+ short GetSpaceBetweenEntries() const {return nEntryHeightOffs;}
+ Point GetEntryPosition( SvLBoxEntry* ) const;
+ void ShowEntry( SvLBoxEntry* ); // !!!OBSOLETE, use MakeVisible
+ virtual void MakeVisible( SvLBoxEntry* );
+ void MakeVisible( SvLBoxEntry*, BOOL bMoveToTop );
+
+ void SetCollapsedNodeBmp( const Image&, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ void SetExpandedNodeBmp( const Image&, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ Image GetCollapsedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ Image GetExpandedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+
+ void SetFont( const Font& rFont );
using Window::SetCursor;
- void SetCursor( SvLBoxEntry* pEntry, BOOL bForceNoSelect = FALSE );
+ void SetCursor( SvLBoxEntry* pEntry, BOOL bForceNoSelect = FALSE );
- SvLBoxEntry* GetEntry( const Point& rPos, BOOL bHit = FALSE ) const;
- SvLBoxEntry* GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return SvLBox::GetEntry(pParent,nPos); }
- SvLBoxEntry* GetEntry( ULONG nRootPos ) const { return SvLBox::GetEntry(nRootPos);}
+ SvLBoxEntry* GetEntry( const Point& rPos, BOOL bHit = FALSE ) const;
+ SvLBoxEntry* GetEntry( SvLBoxEntry* pParent, ULONG nPos ) const { return SvLBox::GetEntry(pParent,nPos); }
+ SvLBoxEntry* GetEntry( ULONG nRootPos ) const { return SvLBox::GetEntry(nRootPos);}
- void SetWindowBits( WinBits nWinStyle );
- WinBits GetWindowBits() const { return nWindowStyle; }
+ void SetWindowBits( WinBits nWinStyle );
+ WinBits GetWindowBits() const { return nWindowStyle; }
- void PaintEntry( SvLBoxEntry* );
- long PaintEntry( SvLBoxEntry*, long nLine,
+ void PaintEntry( SvLBoxEntry* );
+ long PaintEntry( SvLBoxEntry*, long nLine,
USHORT nTabFlagMask=0xffff );
virtual Rectangle GetFocusRect( SvLBoxEntry*, long nLine );
// Beruecksichtigt Einrueckung
- virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
- void InvalidateEntry( SvLBoxEntry* );
- SvLBoxItem* GetItem( SvLBoxEntry*, long nX, SvLBoxTab** ppTab);
- SvLBoxItem* GetItem( SvLBoxEntry*, long nX );
- SvLBoxItem* GetFirstDynamicItem( SvLBoxEntry* pEntry );
+ virtual long GetTabPos( SvLBoxEntry*, SvLBoxTab* );
+ void InvalidateEntry( SvLBoxEntry* );
+ SvLBoxItem* GetItem( SvLBoxEntry*, long nX, SvLBoxTab** ppTab);
+ SvLBoxItem* GetItem( SvLBoxEntry*, long nX );
+ SvLBoxItem* GetFirstDynamicItem( SvLBoxEntry* pEntry );
- void SetDragDropMode( DragDropMode );
- void SetSelectionMode( SelectionMode );
- void SetAddMode( BOOL bAdd );
- BOOL IsAddMode() const;
+ void SetDragDropMode( DragDropMode );
+ void SetSelectionMode( SelectionMode );
+ void SetAddMode( BOOL bAdd );
+ BOOL IsAddMode() const;
virtual BOOL Expand( SvLBoxEntry* pParent );
virtual BOOL Collapse( SvLBoxEntry* pParent );
virtual BOOL Select( SvLBoxEntry* pEntry, BOOL bSelect=TRUE );
- virtual ULONG SelectChilds( SvLBoxEntry* pParent, BOOL bSelect );
- virtual void SelectAll( BOOL bSelect, BOOL bPaint = TRUE );
+ virtual ULONG SelectChilds( SvLBoxEntry* pParent, BOOL bSelect );
+ virtual void SelectAll( BOOL bSelect, BOOL bPaint = TRUE );
virtual void SetCurEntry( SvLBoxEntry* _pEntry );
virtual SvLBoxEntry*
GetCurEntry() const;
using Window::Invalidate;
- virtual void Invalidate( USHORT nFlags = 0);
- virtual void Invalidate( const Rectangle&, USHORT nFlags = 0 );
+ virtual void Invalidate( USHORT nFlags = 0);
+ virtual void Invalidate( const Rectangle&, USHORT nFlags = 0 );
- void SetHighlightRange(USHORT nFirstTab=0,USHORT nLastTab=0xffff);
- void RemoveHighlightRange();
+ void SetHighlightRange(USHORT nFirstTab=0,USHORT nLastTab=0xffff);
+ void RemoveHighlightRange();
- virtual Region GetDragRegion() const;
+ virtual Region GetDragRegion() const;
// Childs des Parents werden Childs des naechstoberen Parents
- void RemoveParentKeepChilds( SvLBoxEntry* pParent );
+ void RemoveParentKeepChilds( SvLBoxEntry* pParent );
DECL_LINK( DefaultCompare, SvSortData* );
- virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
+ virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
SvListEntry* pEntry2, ULONG nPos );
- long GetTextOffset() const;
- void EndSelection();
- BOOL IsNodeButton( const Point& rPos ) const;
- void RepaintScrollBars() const;
- ScrollBar* GetVScroll();
- ScrollBar* GetHScroll();
- void EnableAsyncDrag( BOOL b );
+ long GetTextOffset() const;
+ void EndSelection();
+ BOOL IsNodeButton( const Point& rPos ) const;
+ void RepaintScrollBars() const;
+ ScrollBar* GetVScroll();
+ ScrollBar* GetHScroll();
+ void EnableAsyncDrag( BOOL b );
- SvLBoxEntry* GetFirstEntryInView() const;
- SvLBoxEntry* GetNextEntryInView(SvLBoxEntry*) const;
+ SvLBoxEntry* GetFirstEntryInView() const;
+ SvLBoxEntry* GetNextEntryInView(SvLBoxEntry*) const;
- void ShowFocusRect( const SvLBoxEntry* pEntry );
- void SetTabBar( TabBar* pTabBar );
- void InitStartEntry();
+ void ShowFocusRect( const SvLBoxEntry* pEntry );
+ void SetTabBar( TabBar* pTabBar );
+ void InitStartEntry();
// reset all what could lead to editingText in e.g. a contextmenu call
- void CancelPendingEdit();
+ void CancelPendingEdit();
virtual PopupMenu* CreateContextMenu( void );
- virtual void ExcecuteContextMenuAction( USHORT nSelectedPopupEntry );
+ virtual void ExcecuteContextMenuAction( USHORT nSelectedPopupEntry );
- void EnableContextMenuHandling( void );
- void EnableContextMenuHandling( BOOL bEnable );
- BOOL IsContextMenuHandlingEnabled( void ) const;
+ void EnableContextMenuHandling( void );
+ void EnableContextMenuHandling( BOOL bEnable );
+ BOOL IsContextMenuHandlingEnabled( void ) const;
void EnableList( bool _bEnable );
@@ -406,10 +406,10 @@ public:
@param pEntry
The entry.
@return The bounding rectangle of an entry. */
- virtual Rectangle GetBoundingRect( SvLBoxEntry* pEntry );
+ virtual Rectangle GetBoundingRect( SvLBoxEntry* pEntry );
/** Enables, that one cell of a tablistbox entry can be focused */
- void EnableCellFocus();
+ void EnableCellFocus();
protected:
using SvListView::Expand;
diff --git a/svtools/inc/svtools/svxbox.hxx b/svtools/inc/svtools/svxbox.hxx
index 271213bda9fc..d7c163bbc5c1 100644
--- a/svtools/inc/svtools/svxbox.hxx
+++ b/svtools/inc/svtools/svxbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,12 +55,12 @@ public:
SvxBoxEntry( const SvxBoxEntry& rOrg );
SvxBoxEntry();
- String aName;
- USHORT nId;
+ String aName;
+ USHORT nId;
private:
- BOOL bModified;
- BOOL bNew;
+ BOOL bModified;
+ BOOL bNew;
};
// class SvxListBox ------------------------------------------------------
@@ -78,45 +78,45 @@ public:
SvxListBox( Window* pParent, const ResId& rId );
~SvxListBox();
- void InsertNewEntry( const SvxBoxEntry& rEntry );
- void InsertEntry( const SvxBoxEntry& rEntry,
+ void InsertNewEntry( const SvxBoxEntry& rEntry );
+ void InsertEntry( const SvxBoxEntry& rEntry,
USHORT nId = LISTBOX_ENTRY_NOTFOUND );
- void RemoveEntry( USHORT nPos );
- void RemoveEntry( const SvxBoxEntry& rEntry );
+ void RemoveEntry( USHORT nPos );
+ void RemoveEntry( const SvxBoxEntry& rEntry );
- void Clear();
+ void Clear();
- USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
+ USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
const SvxBoxEntry& GetSvxBoxEntry( USHORT nIdx ) const;
- inline BOOL IsEntrySelected( const SvxBoxEntry& rEntry ) const;
+ inline BOOL IsEntrySelected( const SvxBoxEntry& rEntry ) const;
const SvxBoxEntry& GetSelectSvxBoxEntry( USHORT nIdx = 0 ) const;
- inline void SelectEntry( const SvxBoxEntry& rEntry,
+ inline void SelectEntry( const SvxBoxEntry& rEntry,
BOOL bSelect = TRUE );
- void ModifyEntry( USHORT nPos, const String& aName );
- USHORT GetModifiedCount() const;
- const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
+ void ModifyEntry( USHORT nPos, const String& aName );
+ USHORT GetModifiedCount() const;
+ const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
- USHORT GetRemovedCount() const;
- const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
+ USHORT GetRemovedCount() const;
+ const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
- USHORT GetNewCount() const;
- const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
+ USHORT GetNewCount() const;
+ const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
private:
- SvxEntryLst aEntryLst;
- SvxEntryLst aDelEntryLst;
- SvxBoxEntry aDefault;
+ SvxEntryLst aEntryLst;
+ SvxEntryLst aDelEntryLst;
+ SvxBoxEntry aDefault;
- void InitListBox();
- void InsertSorted( SvxBoxEntry* pEntry );
+ void InitListBox();
+ void InsertSorted( SvxBoxEntry* pEntry );
};
// inlines ---------------------------------------------------------------
-inline BOOL SvxListBox::IsEntrySelected( const SvxBoxEntry& aEntry ) const
+inline BOOL SvxListBox::IsEntrySelected( const SvxBoxEntry& aEntry ) const
{ return ListBox::IsEntrySelected( aEntry.aName ); }
inline void SvxListBox::SelectEntry( const SvxBoxEntry& aEntry, BOOL bSelect )
@@ -126,10 +126,10 @@ inline void SvxListBox::SelectEntry( const SvxBoxEntry& aEntry, BOOL bSelect )
enum SvxComboBoxStyle
{
- SVX_CBS_UPPER = 0x01,
- SVX_CBS_LOWER = 0x02,
- SVX_CBS_ALL = 0x04,
- SVX_CBS_FILENAME = 0x08,
+ SVX_CBS_UPPER = 0x01,
+ SVX_CBS_LOWER = 0x02,
+ SVX_CBS_ALL = 0x04,
+ SVX_CBS_FILENAME = 0x08,
#ifdef WIN
SVX_CBS_SW_FILENAME = SVX_CBS_FILENAME | SVX_CBS_LOWER
#else
@@ -152,42 +152,42 @@ public:
SvxComboBox( Window* pParent, const ResId& rId, USHORT nStyleBits = SVX_CBS_ALL );
~SvxComboBox();
- void InsertNewEntry( const SvxBoxEntry& );
- void InsertEntry( const SvxBoxEntry& );
+ void InsertNewEntry( const SvxBoxEntry& );
+ void InsertEntry( const SvxBoxEntry& );
- void RemoveEntry( USHORT nPos );
- void RemoveEntry( const SvxBoxEntry& rEntry );
+ void RemoveEntry( USHORT nPos );
+ void RemoveEntry( const SvxBoxEntry& rEntry );
- void Clear();
+ void Clear();
- USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
+ USHORT GetEntryPos( const SvxBoxEntry& rEntry ) const;
const SvxBoxEntry& GetEntry( USHORT nIdx ) const;
- void ModifyEntry( USHORT nPos, const String& aName );
- USHORT GetModifiedCount() const;
- const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
+ void ModifyEntry( USHORT nPos, const String& aName );
+ USHORT GetModifiedCount() const;
+ const SvxBoxEntry& GetModifiedEntry( USHORT nPos ) const;
- USHORT GetRemovedCount() const;
- const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
+ USHORT GetRemovedCount() const;
+ const SvxBoxEntry& GetRemovedEntry( USHORT nPos ) const;
- USHORT GetNewCount() const;
- const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
+ USHORT GetNewCount() const;
+ const SvxBoxEntry& GetNewEntry( USHORT nPos ) const;
- USHORT GetStyle() const { return nStyle; }
- void SetStyle( const USHORT nSt ) { nStyle = nSt; }
+ USHORT GetStyle() const { return nStyle; }
+ void SetStyle( const USHORT nSt ) { nStyle = nSt; }
- String GetText() const;
+ String GetText() const;
private:
- SvxEntryLst aEntryLst;
- SvxEntryLst aDelEntryLst;
- SvxBoxEntry aDefault;
- USHORT nStyle;
+ SvxEntryLst aEntryLst;
+ SvxEntryLst aDelEntryLst;
+ SvxBoxEntry aDefault;
+ USHORT nStyle;
- virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
- void InitComboBox();
- void InsertSorted( SvxBoxEntry* pEntry );
+ void InitComboBox();
+ void InsertSorted( SvxBoxEntry* pEntry );
};
#endif
diff --git a/svtools/inc/svtools/syntaxhighlight.hxx b/svtools/inc/svtools/syntaxhighlight.hxx
index 75af1ccd5bdd..146bf59c042c 100644
--- a/svtools/inc/svtools/syntaxhighlight.hxx
+++ b/svtools/inc/svtools/syntaxhighlight.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,19 +86,19 @@ SV_DECL_VARARR(HighlightPortions, HighlightPortion, 0, 16)
// Hilfsklasse zur Untersuchung von JavaScript-Modulen, zunaechst zum
// Heraussuchen der Funktionen, spaeter auch zum Syntax-Highlighting verwenden
-// Flags fuer Zeichen-Eigenschaften
-#define CHAR_START_IDENTIFIER 0x0001
-#define CHAR_IN_IDENTIFIER 0x0002
-#define CHAR_START_NUMBER 0x0004
-#define CHAR_IN_NUMBER 0x0008
-#define CHAR_IN_HEX_NUMBER 0x0010
-#define CHAR_IN_OCT_NUMBER 0x0020
-#define CHAR_START_STRING 0x0040
-#define CHAR_OPERATOR 0x0080
-#define CHAR_SPACE 0x0100
-#define CHAR_EOL 0x0200
+// Flags fuer Zeichen-Eigenschaften
+#define CHAR_START_IDENTIFIER 0x0001
+#define CHAR_IN_IDENTIFIER 0x0002
+#define CHAR_START_NUMBER 0x0004
+#define CHAR_IN_NUMBER 0x0008
+#define CHAR_IN_HEX_NUMBER 0x0010
+#define CHAR_IN_OCT_NUMBER 0x0020
+#define CHAR_START_STRING 0x0040
+#define CHAR_OPERATOR 0x0080
+#define CHAR_SPACE 0x0100
+#define CHAR_EOL 0x0200
-#define CHAR_EOF 0x00
+#define CHAR_EOF 0x00
// Sprachmodus des HighLighters (spaeter eventuell feiner
@@ -122,8 +122,8 @@ class SimpleTokenizer_Impl
UINT32 nLine;
UINT32 nCol;
- sal_Unicode peekChar( void ) { return *mpActualPos; }
- sal_Unicode getChar( void ) { nCol++; return *mpActualPos++; }
+ sal_Unicode peekChar( void ) { return *mpActualPos; }
+ sal_Unicode getChar( void ) { nCol++; return *mpActualPos++; }
// Hilfsfunktion: Zeichen-Flag Testen
BOOL testCharFlags( sal_Unicode c, USHORT nTestFlags );
@@ -168,7 +168,7 @@ class SVT_DLLPUBLIC SyntaxHighlighter
char* m_pKeyWords;
UINT16 m_nKeyWordCount;
-// void initializeKeyWords( HighlighterLanguage eLanguage );
+// void initializeKeyWords( HighlighterLanguage eLanguage );
public:
SyntaxHighlighter( void );
diff --git a/svtools/inc/svtools/table/abstracttablecontrol.hxx b/svtools/inc/svtools/table/abstracttablecontrol.hxx
index dbe9e0a86346..bd7139d23f9f 100644
--- a/svtools/inc/svtools/table/abstracttablecontrol.hxx
+++ b/svtools/inc/svtools/table/abstracttablecontrol.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -98,7 +98,7 @@ namespace svt { namespace table
virtual void hideCursor() = 0;
/** shows the cell cursor
-
+
@see hideCursor
*/
virtual void showCursor() = 0;
diff --git a/svtools/inc/svtools/table/defaultinputhandler.hxx b/svtools/inc/svtools/table/defaultinputhandler.hxx
index 5b035b041a8d..ec219500d236 100644
--- a/svtools/inc/svtools/table/defaultinputhandler.hxx
+++ b/svtools/inc/svtools/table/defaultinputhandler.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ namespace svt { namespace table
friend class TableDataWindow;
private:
DefaultInputHandler_Impl* m_pImpl;
- bool m_bResize;
+ bool m_bResize;
public:
DefaultInputHandler();
diff --git a/svtools/inc/svtools/table/gridtablerenderer.hxx b/svtools/inc/svtools/table/gridtablerenderer.hxx
index 5430e6859c60..468fd70e176c 100644
--- a/svtools/inc/svtools/table/gridtablerenderer.hxx
+++ b/svtools/inc/svtools/table/gridtablerenderer.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ namespace svt { namespace table
public:
/** creates a table renderer associated with the given model
-
+
@param _rModel
the model which should be rendered. The caller is responsible
for lifetime control, that is, the model instance must live
diff --git a/svtools/inc/svtools/table/tablecontrol.hxx b/svtools/inc/svtools/table/tablecontrol.hxx
index 9ef8d583f273..57405c193d22 100644
--- a/svtools/inc/svtools/table/tablecontrol.hxx
+++ b/svtools/inc/svtools/table/tablecontrol.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -110,7 +110,7 @@ namespace svt { namespace table
/** returns the row, which contains the input point*/
- ColPos GetCurrentRow (const Point& rPoint);
+ ColPos GetCurrentRow (const Point& rPoint);
/** retrieves the current column
@@ -158,11 +158,11 @@ namespace svt { namespace table
{
return GoTo( GetCurrentColumn(), _nRow );
}
- SVT_DLLPRIVATE virtual void Resize();
+ SVT_DLLPRIVATE virtual void Resize();
virtual void Select();
- SVT_DLLPRIVATE void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return m_aSelectHdl; }
-
+ SVT_DLLPRIVATE void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return m_aSelectHdl; }
+
/**invalidates the table if table has been changed e.g. new row added
*/
void InvalidateDataWindow(RowPos _nRowStart, RowPos _nRowEnd, bool _bRemoved);
@@ -178,9 +178,9 @@ namespace svt { namespace table
// Window overridables
virtual void GetFocus();
virtual void LoseFocus();
- virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
virtual void StateChanged( StateChangedType i_nStateChange );
-
+
/** Creates and returns the accessible object of the whole GridControl. */
SVT_DLLPRIVATE virtual XACC CreateAccessible();
SVT_DLLPRIVATE virtual XACC CreateAccessibleControl( sal_Int32 _nIndex );
@@ -194,12 +194,12 @@ namespace svt { namespace table
virtual Rectangle GetWindowExtentsRelative( Window *pRelativeWindow ) const;
virtual void GrabFocus();
virtual XACC GetAccessible( BOOL bCreate = TRUE );
- virtual Window* GetAccessibleParentWindow() const;
- virtual Window* GetWindowInstance();
+ virtual Window* GetAccessibleParentWindow() const;
+ virtual Window* GetWindowInstance();
virtual sal_Int32 GetAccessibleControlCount() const;
virtual sal_Bool ConvertPointToControlIndex( sal_Int32& _rnIndex, const Point& _rPoint );
- virtual long GetRowCount() const;
- virtual long GetColumnCount() const;
+ virtual long GetRowCount() const;
+ virtual long GetColumnCount() const;
virtual sal_Bool HasRowHeader() const;
virtual sal_Int32 GetSelectedRowCount() const;
virtual bool IsRowSelected( long _nRow ) const;
@@ -209,10 +209,10 @@ namespace svt { namespace table
virtual Rectangle GetFieldCharacterBounds(sal_Int32 _nRow,sal_Int32 _nColumnPos,sal_Int32 nIndex);
virtual sal_Int32 GetFieldIndexAtPoint(sal_Int32 _nRow,sal_Int32 _nColumnPos,const Point& _rPoint);
virtual void FillAccessibleStateSetForCell( ::utl::AccessibleStateSetHelper& _rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumnPos ) const;
- virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
+ virtual ::rtl::OUString GetRowDescription( sal_Int32 _nRow ) const;
virtual ::rtl::OUString GetRowName(sal_Int32 _nIndex) const;
- virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const;
- virtual ::rtl::OUString GetColumnName( sal_Int32 _nIndex ) const;
+ virtual ::rtl::OUString GetColumnDescription( sal_uInt16 _nColumnPos ) const;
+ virtual ::rtl::OUString GetColumnName( sal_Int32 _nIndex ) const;
virtual ::com::sun::star::uno::Any GetCellContent( sal_Int32 _nRowPos, sal_Int32 _nColPos) const;
virtual sal_Bool HasRowHeader();
virtual sal_Bool HasColHeader();
diff --git a/svtools/inc/svtools/table/tabledatawindow.hxx b/svtools/inc/svtools/table/tabledatawindow.hxx
index ea59e05f4e97..b0bca8bf9106 100644
--- a/svtools/inc/svtools/table/tabledatawindow.hxx
+++ b/svtools/inc/svtools/table/tabledatawindow.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,32 +51,32 @@ namespace svt { namespace table
friend class TableFunctionSet;
private:
TableControl_Impl& m_rTableControl;
- Link m_aMouseButtonDownHdl;
- Link m_aMouseButtonUpHdl;
- Link m_aSelectHdl;
+ Link m_aMouseButtonDownHdl;
+ Link m_aMouseButtonUpHdl;
+ Link m_aSelectHdl;
public:
TableDataWindow( TableControl_Impl& _rTableControl );
- inline void SetMouseButtonDownHdl( const Link& rLink ) { m_aMouseButtonDownHdl = rLink; }
- inline const Link& GetMouseButtonDownHdl() const { return m_aMouseButtonDownHdl; }
- inline void SetMouseButtonUpHdl( const Link& rLink ) { m_aMouseButtonUpHdl = rLink; }
- inline const Link& GetMouseButtonUpHdl() const { return m_aMouseButtonUpHdl; }
- inline void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
- inline const Link& GetSelectHdl() const { return m_aSelectHdl; }
+ inline void SetMouseButtonDownHdl( const Link& rLink ) { m_aMouseButtonDownHdl = rLink; }
+ inline const Link& GetMouseButtonDownHdl() const { return m_aMouseButtonDownHdl; }
+ inline void SetMouseButtonUpHdl( const Link& rLink ) { m_aMouseButtonUpHdl = rLink; }
+ inline const Link& GetMouseButtonUpHdl() const { return m_aMouseButtonUpHdl; }
+ inline void SetSelectHdl( const Link& rLink ) { m_aSelectHdl = rLink; }
+ inline const Link& GetSelectHdl() const { return m_aSelectHdl; }
// Window overridables
virtual void Paint( const Rectangle& rRect );
- virtual void MouseMove( const MouseEvent& rMEvt);
- virtual void MouseButtonDown( const MouseEvent& rMEvt);
- virtual void MouseButtonUp( const MouseEvent& rMEvt);
- virtual void SetPointer( const Pointer& rPointer );
- virtual void CaptureMouse();
- virtual void ReleaseMouse();
- virtual long Notify(NotifyEvent& rNEvt);
- virtual void SetControlBackground(const Color& rColor);
- virtual void SetControlBackground();
+ virtual void MouseMove( const MouseEvent& rMEvt);
+ virtual void MouseButtonDown( const MouseEvent& rMEvt);
+ virtual void MouseButtonUp( const MouseEvent& rMEvt);
+ virtual void SetPointer( const Pointer& rPointer );
+ virtual void CaptureMouse();
+ virtual void ReleaseMouse();
+ virtual long Notify(NotifyEvent& rNEvt);
+ virtual void SetControlBackground(const Color& rColor);
+ virtual void SetControlBackground();
- void SetBackground(const Wallpaper& rColor);
- void SetBackground();
+ void SetBackground(const Wallpaper& rColor);
+ void SetBackground();
};
//........................................................................
} } // namespace svt::table
diff --git a/svtools/inc/svtools/table/tableinputhandler.hxx b/svtools/inc/svtools/table/tableinputhandler.hxx
index 32d7f06b6482..3bda1092b292 100644
--- a/svtools/inc/svtools/table/tableinputhandler.hxx
+++ b/svtools/inc/svtools/table/tableinputhandler.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/table/tablemodel.hxx b/svtools/inc/svtools/table/tablemodel.hxx
index c463b8da91ab..b2efac8c6c11 100644
--- a/svtools/inc/svtools/table/tablemodel.hxx
+++ b/svtools/inc/svtools/table/tablemodel.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,14 +44,14 @@ namespace svt { namespace table
{
//........................................................................
-
+
//====================================================================
- //= cell data
+ //= cell data
//====================================================================
struct TableContentType
{
- ::rtl::OUString sContent;
- Image* pImage;
+ ::rtl::OUString sContent;
+ Image* pImage;
TableContentType() :
sContent(),
pImage( )
@@ -85,7 +85,7 @@ namespace svt { namespace table
class SAL_NO_VTABLE ITableModelListener
{
public:
- //virtual void onTableModelChanged(PTableModel pTableModel) = 0;
+ //virtual void onTableModelChanged(PTableModel pTableModel) = 0;
/** notifies the listener that one or more rows have been inserted into
the table
@@ -220,7 +220,7 @@ namespace svt { namespace table
/** returns the width of the column, in 1/100 millimeters
The returned value must be a positive ->TableMetrics value.
-
+
It can also be COLWIDTH_FIT_TO_VIEW, to indicate that the width of the column
should automatically be adjusted to completely fit the view. For instance, a
model's last column could return this value, to indicate that it is to occupy
@@ -285,7 +285,7 @@ namespace svt { namespace table
virtual void setMaxWidth( TableMetrics _nMaxWidth ) = 0;
/** returns the preferred width of the column, or 0 if the column
- does not have a preferred width.
+ does not have a preferred width.
@see setMaxWidth
@see getMinWidth
@@ -323,8 +323,8 @@ namespace svt { namespace table
*/
virtual TableSize getRowCount() const = 0;
- SVT_DLLPRIVATE virtual void setColumnCount(TableSize _nColCount) = 0;
- SVT_DLLPRIVATE virtual void setRowCount(TableSize _nRowCount) = 0;
+ SVT_DLLPRIVATE virtual void setColumnCount(TableSize _nColCount) = 0;
+ SVT_DLLPRIVATE virtual void setRowCount(TableSize _nRowCount) = 0;
/** determines whether the table has column headers
@@ -337,12 +337,12 @@ namespace svt { namespace table
/** sets whether the table should have row headers
@see IColumnRenderer
*/
- SVT_DLLPRIVATE virtual void setRowHeaders( bool rowHeaders) = 0;
-
+ SVT_DLLPRIVATE virtual void setRowHeaders( bool rowHeaders) = 0;
+
/** sets whether the table should have column headers
@see IColumnRenderer
*/
- SVT_DLLPRIVATE virtual void setColumnHeaders( bool columnHeaders) = 0;
+ SVT_DLLPRIVATE virtual void setColumnHeaders( bool columnHeaders) = 0;
/** determines whether the table has row headers
@@ -354,7 +354,7 @@ namespace svt { namespace table
virtual bool hasRowHeaders() const = 0;
/** determines whether the given cell is editable
-
+
@see ICellEditor
@todo
*/
@@ -410,7 +410,7 @@ namespace svt { namespace table
*/
SVT_DLLPRIVATE virtual TableMetrics getRowHeight() const = 0;
- SVT_DLLPRIVATE virtual void setRowHeight(TableMetrics _nRowHeight) = 0;
+ SVT_DLLPRIVATE virtual void setRowHeight(TableMetrics _nRowHeight) = 0;
/** determines the height of the column header row
@@ -452,7 +452,7 @@ namespace svt { namespace table
virtual void setCellContent(const std::vector< std::vector< ::com::sun::star::uno::Any > >& cellContent)=0;
/** gets the content of the cells
*/
- virtual std::vector< std::vector< ::com::sun::star::uno::Any > >& getCellContent() = 0;
+ virtual std::vector< std::vector< ::com::sun::star::uno::Any > >& getCellContent() = 0;
/**sets title of header rows
*/
SVT_DLLPRIVATE virtual void setRowHeaderName(const std::vector<rtl::OUString>& cellColumnContent)=0;
@@ -475,7 +475,7 @@ namespace svt { namespace table
/// destroys the table model instance
virtual ~ITableModel() { }
};
- typedef ::boost::shared_ptr< ITableModel > PTableModel;
+ typedef ::boost::shared_ptr< ITableModel > PTableModel;
//........................................................................
} } // namespace svt::table
diff --git a/svtools/inc/svtools/table/tablerenderer.hxx b/svtools/inc/svtools/table/tablerenderer.hxx
index a875f435d9eb..548d42ee2f94 100644
--- a/svtools/inc/svtools/table/tablerenderer.hxx
+++ b/svtools/inc/svtools/table/tablerenderer.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -215,7 +215,7 @@ namespace svt { namespace table
bool _bActive, bool _bSelected,
OutputDevice& _rDevice, const Rectangle& _rArea,
const StyleSettings& _rStyle, Image* _pCellData ) = 0;
-
+
/** paints a certain cell
The row to be painted is denoted by the most recent call to
diff --git a/svtools/inc/svtools/table/tabletypes.hxx b/svtools/inc/svtools/table/tabletypes.hxx
index d8ef737b388c..19b209f3915b 100644
--- a/svtools/inc/svtools/table/tabletypes.hxx
+++ b/svtools/inc/svtools/table/tabletypes.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/textdata.hxx b/svtools/inc/svtools/textdata.hxx
index 7b0a81cd2da1..392ee0f5bb37 100644
--- a/svtools/inc/svtools/textdata.hxx
+++ b/svtools/inc/svtools/textdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,49 +34,49 @@
#include <svl/smplhint.hxx>
#include <tools/string.hxx>
-#define TEXTUNDO_START 100
-#define TEXTUNDO_REMOVECHARS 100
-#define TEXTUNDO_CONNECTPARAS 101
-#define TEXTUNDO_SPLITPARA 102
-#define TEXTUNDO_INSERTCHARS 103
-#define TEXTUNDO_DELCONTENT 104
-#define TEXTUNDO_DELETE 105
-#define TEXTUNDO_CUT 106
-#define TEXTUNDO_PASTE 107
-#define TEXTUNDO_INSERT 108
-#define TEXTUNDO_ATTRIBS 109
-#define TEXTUNDO_DRAGANDDROP 110
-#define TEXTUNDO_READ 111
-#define TEXTUNDO_END 149
-
-#define XTEXTUNDO_START 150
-#define XTEXTUNDO_END 199
-
-#define TEXTUNDO_USER 200
+#define TEXTUNDO_START 100
+#define TEXTUNDO_REMOVECHARS 100
+#define TEXTUNDO_CONNECTPARAS 101
+#define TEXTUNDO_SPLITPARA 102
+#define TEXTUNDO_INSERTCHARS 103
+#define TEXTUNDO_DELCONTENT 104
+#define TEXTUNDO_DELETE 105
+#define TEXTUNDO_CUT 106
+#define TEXTUNDO_PASTE 107
+#define TEXTUNDO_INSERT 108
+#define TEXTUNDO_ATTRIBS 109
+#define TEXTUNDO_DRAGANDDROP 110
+#define TEXTUNDO_READ 111
+#define TEXTUNDO_END 149
+
+#define XTEXTUNDO_START 150
+#define XTEXTUNDO_END 199
+
+#define TEXTUNDO_USER 200
// Fuer Notify, wenn alle Absaetze geloescht wurden...
-#define TEXT_PARA_ALL 0xFFFFFFFF
+#define TEXT_PARA_ALL 0xFFFFFFFF
class TextPaM
{
private:
- ULONG mnPara;
- USHORT mnIndex;
+ ULONG mnPara;
+ USHORT mnIndex;
public:
- TextPaM() { mnPara = 0, mnIndex = 0; }
- TextPaM( ULONG nPara, USHORT nIndex ) { mnPara = nPara, mnIndex = nIndex; }
+ TextPaM() { mnPara = 0, mnIndex = 0; }
+ TextPaM( ULONG nPara, USHORT nIndex ) { mnPara = nPara, mnIndex = nIndex; }
- ULONG GetPara() const { return mnPara; }
- ULONG& GetPara() { return mnPara; }
+ ULONG GetPara() const { return mnPara; }
+ ULONG& GetPara() { return mnPara; }
- USHORT GetIndex() const { return mnIndex; }
- USHORT& GetIndex() { return mnIndex; }
+ USHORT GetIndex() const { return mnIndex; }
+ USHORT& GetIndex() { return mnIndex; }
- inline BOOL operator == ( const TextPaM& rPaM ) const;
- inline BOOL operator != ( const TextPaM& rPaM ) const;
- inline BOOL operator < ( const TextPaM& rPaM ) const;
- inline BOOL operator > ( const TextPaM& rPaM ) const;
+ inline BOOL operator == ( const TextPaM& rPaM ) const;
+ inline BOOL operator != ( const TextPaM& rPaM ) const;
+ inline BOOL operator < ( const TextPaM& rPaM ) const;
+ inline BOOL operator > ( const TextPaM& rPaM ) const;
};
inline BOOL TextPaM::operator == ( const TextPaM& rPaM ) const
@@ -104,26 +104,26 @@ inline BOOL TextPaM::operator > ( const TextPaM& rPaM ) const
class SVT_DLLPUBLIC TextSelection
{
private:
- TextPaM maStartPaM;
- TextPaM maEndPaM;
+ TextPaM maStartPaM;
+ TextPaM maEndPaM;
public:
TextSelection();
TextSelection( const TextPaM& rPaM );
TextSelection( const TextPaM& rStart, const TextPaM& rEnd );
- const TextPaM& GetStart() const { return maStartPaM; }
- TextPaM& GetStart() { return maStartPaM; }
+ const TextPaM& GetStart() const { return maStartPaM; }
+ TextPaM& GetStart() { return maStartPaM; }
- const TextPaM& GetEnd() const { return maEndPaM; }
- TextPaM& GetEnd() { return maEndPaM; }
+ const TextPaM& GetEnd() const { return maEndPaM; }
+ TextPaM& GetEnd() { return maEndPaM; }
- void Justify();
+ void Justify();
- BOOL HasRange() const { return maStartPaM != maEndPaM; }
+ BOOL HasRange() const { return maStartPaM != maEndPaM; }
- inline BOOL operator == ( const TextSelection& rSel ) const;
- inline BOOL operator != ( const TextSelection& rSel ) const;
+ inline BOOL operator == ( const TextSelection& rSel ) const;
+ inline BOOL operator != ( const TextSelection& rSel ) const;
};
inline BOOL TextSelection::operator == ( const TextSelection& rSel ) const
@@ -136,49 +136,49 @@ inline BOOL TextSelection::operator != ( const TextSelection& rSel ) const
return !( *this == rSel );
}
-#define TEXT_HINT_PARAINSERTED 1
-#define TEXT_HINT_PARAREMOVED 2
-#define TEXT_HINT_PARACONTENTCHANGED 3
-#define TEXT_HINT_TEXTHEIGHTCHANGED 4
-#define TEXT_HINT_FORMATPARA 5
-#define TEXT_HINT_TEXTFORMATTED 6
-#define TEXT_HINT_MODIFIED 7
-#define TEXT_HINT_BLOCKNOTIFICATION_START 8
-#define TEXT_HINT_BLOCKNOTIFICATION_END 9
-#define TEXT_HINT_INPUT_START 10
-#define TEXT_HINT_INPUT_END 11
-
-#define TEXT_HINT_VIEWSCROLLED 100
+#define TEXT_HINT_PARAINSERTED 1
+#define TEXT_HINT_PARAREMOVED 2
+#define TEXT_HINT_PARACONTENTCHANGED 3
+#define TEXT_HINT_TEXTHEIGHTCHANGED 4
+#define TEXT_HINT_FORMATPARA 5
+#define TEXT_HINT_TEXTFORMATTED 6
+#define TEXT_HINT_MODIFIED 7
+#define TEXT_HINT_BLOCKNOTIFICATION_START 8
+#define TEXT_HINT_BLOCKNOTIFICATION_END 9
+#define TEXT_HINT_INPUT_START 10
+#define TEXT_HINT_INPUT_END 11
+
+#define TEXT_HINT_VIEWSCROLLED 100
#define TEXT_HINT_VIEWSELECTIONCHANGED 101
class SVT_DLLPUBLIC TextHint : public SfxSimpleHint
{
private:
- ULONG mnValue;
+ ULONG mnValue;
public:
TYPEINFO();
TextHint( ULONG nId );
TextHint( ULONG nId, ULONG nValue );
- ULONG GetValue() const { return mnValue; }
- void SetValue( ULONG n ) { mnValue = n; }
+ ULONG GetValue() const { return mnValue; }
+ void SetValue( ULONG n ) { mnValue = n; }
};
struct TEIMEInfos
{
String aOldTextAfterStartPos;
- USHORT* pAttribs;
- TextPaM aPos;
- USHORT nLen;
- BOOL bCursor;
- BOOL bWasCursorOverwrite;
+ USHORT* pAttribs;
+ TextPaM aPos;
+ USHORT nLen;
+ BOOL bCursor;
+ BOOL bWasCursorOverwrite;
TEIMEInfos( const TextPaM& rPos, const String& rOldTextAfterStartPos );
~TEIMEInfos();
- void CopyAttribs( const USHORT* pA, USHORT nL );
- void DestroyAttribs();
+ void CopyAttribs( const USHORT* pA, USHORT nL );
+ void DestroyAttribs();
};
// ----------------- Wrapper for old Tools List -------------------
@@ -196,11 +196,11 @@ struct TEIMEInfos
template <class T> class ToolsList : public ::std::vector< T >
{
public:
- ULONG Count() const { return static_cast<ULONG>(::std::vector< T >::size()); }
- ULONG GetPos( T pObject ) const { return ( ::std::find( this->begin(), this->end(), pObject ) ) - this->begin(); }
- T GetObject( ULONG nIndex ) const { return (*this)[nIndex]; }
- void Insert( T pObject, ULONG nPos ) { ::std::vector< T >::insert( this->begin()+nPos, pObject ); }
- void Remove( ULONG nPos ) { ::std::vector< T >::erase( this->begin()+nPos ); }
+ ULONG Count() const { return static_cast<ULONG>(::std::vector< T >::size()); }
+ ULONG GetPos( T pObject ) const { return ( ::std::find( this->begin(), this->end(), pObject ) ) - this->begin(); }
+ T GetObject( ULONG nIndex ) const { return (*this)[nIndex]; }
+ void Insert( T pObject, ULONG nPos ) { ::std::vector< T >::insert( this->begin()+nPos, pObject ); }
+ void Remove( ULONG nPos ) { ::std::vector< T >::erase( this->begin()+nPos ); }
};
#endif // _TEXTDATA_HXX
diff --git a/svtools/inc/svtools/texteng.hxx b/svtools/inc/svtools/texteng.hxx
index 09c7b042bde3..3825db428bd1 100644
--- a/svtools/inc/svtools/texteng.hxx
+++ b/svtools/inc/svtools/texteng.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,83 +78,83 @@ enum TxtAlign { TXTALIGN_LEFT, TXTALIGN_CENTER, TXTALIGN_RIGHT };
class SVT_DLLPUBLIC TextEngine : public SfxBroadcaster
{
- friend class TextView;
- friend class TextSelFunctionSet;
- friend class ExtTextEngine;
- friend class ExtTextView;
-
- friend class TextUndo;
- friend class TextUndoManager;
- friend class TextUndoDelPara;
- friend class TextUndoConnectParas;
- friend class TextUndoSplitPara;
- friend class TextUndoInsertChars;
- friend class TextUndoRemoveChars;
- friend class TextUndoSetAttribs;
+ friend class TextView;
+ friend class TextSelFunctionSet;
+ friend class ExtTextEngine;
+ friend class ExtTextView;
+
+ friend class TextUndo;
+ friend class TextUndoManager;
+ friend class TextUndoDelPara;
+ friend class TextUndoConnectParas;
+ friend class TextUndoSplitPara;
+ friend class TextUndoInsertChars;
+ friend class TextUndoRemoveChars;
+ friend class TextUndoSetAttribs;
private:
- TextDoc* mpDoc;
- TEParaPortions* mpTEParaPortions;
- OutputDevice* mpRefDev;
+ TextDoc* mpDoc;
+ TEParaPortions* mpTEParaPortions;
+ OutputDevice* mpRefDev;
- TextViews* mpViews;
- TextView* mpActiveView;
+ TextViews* mpViews;
+ TextView* mpActiveView;
- TextUndoManager* mpUndoManager;
+ TextUndoManager* mpUndoManager;
- IdleFormatter* mpIdleFormatter;
+ IdleFormatter* mpIdleFormatter;
- TEIMEInfos* mpIMEInfos;
+ TEIMEInfos* mpIMEInfos;
::com::sun::star::lang::Locale maLocale;
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > mxBreakIterator;
- Rectangle maInvalidRec;
- Range maInvalidRange;
+ Rectangle maInvalidRec;
+ Range maInvalidRange;
LocaleDataWrapper* mpLocaleDataWrapper;
- Font maFont;
+ Font maFont;
Color maTextColor;
- USHORT mnCharHeight;
- USHORT mnFixCharWidth100;
-
- ULONG mnMaxTextLen;
- ULONG mnMaxTextWidth;
- ULONG mnCurTextWidth;
- ULONG mnCurTextHeight;
- ULONG mnDefTab;
-
- TxtAlign meAlign;
-
- BOOL mbIsFormatting : 1; // Semaphore wegen der Hook's
- BOOL mbFormatted : 1;
- BOOL mbUpdate : 1;
- BOOL mbModified : 1;
- BOOL mbUndoEnabled : 1;
- BOOL mbIsInUndo : 1;
- BOOL mbDowning : 1;
- BOOL mbRightToLeft : 1;
- BOOL mbHasMultiLineParas : 1;
-
- TextEngine( const TextEngine& ) : SfxBroadcaster() {}
- TextEngine& operator=( const TextEngine& ) { return *this; }
+ USHORT mnCharHeight;
+ USHORT mnFixCharWidth100;
+
+ ULONG mnMaxTextLen;
+ ULONG mnMaxTextWidth;
+ ULONG mnCurTextWidth;
+ ULONG mnCurTextHeight;
+ ULONG mnDefTab;
+
+ TxtAlign meAlign;
+
+ BOOL mbIsFormatting : 1; // Semaphore wegen der Hook's
+ BOOL mbFormatted : 1;
+ BOOL mbUpdate : 1;
+ BOOL mbModified : 1;
+ BOOL mbUndoEnabled : 1;
+ BOOL mbIsInUndo : 1;
+ BOOL mbDowning : 1;
+ BOOL mbRightToLeft : 1;
+ BOOL mbHasMultiLineParas : 1;
+
+ TextEngine( const TextEngine& ) : SfxBroadcaster() {}
+ TextEngine& operator=( const TextEngine& ) { return *this; }
protected:
- void CursorMoved( ULONG nNode );
- void TextModified();
-
- void ImpInitDoc();
- void ImpRemoveText();
- TextPaM ImpDeleteText( const TextSelection& rSel );
- TextPaM ImpInsertText( const TextSelection& rSel, sal_Unicode c, BOOL bOverwrite = FALSE );
- TextPaM ImpInsertText( const TextSelection& rSel, const String& rText );
- TextPaM ImpInsertParaBreak( const TextSelection& rTextSelection, BOOL bKeepEndingAttribs = TRUE );
- TextPaM ImpInsertParaBreak( const TextPaM& rPaM, BOOL bKeepEndingAttribs = TRUE );
- void ImpRemoveChars( const TextPaM& rPaM, USHORT nChars, SfxUndoAction* pCurUndo = 0 );
- TextPaM ImpConnectParagraphs( ULONG nLeft, ULONG nRight );
- void ImpRemoveParagraph( ULONG nPara );
+ void CursorMoved( ULONG nNode );
+ void TextModified();
+
+ void ImpInitDoc();
+ void ImpRemoveText();
+ TextPaM ImpDeleteText( const TextSelection& rSel );
+ TextPaM ImpInsertText( const TextSelection& rSel, sal_Unicode c, BOOL bOverwrite = FALSE );
+ TextPaM ImpInsertText( const TextSelection& rSel, const String& rText );
+ TextPaM ImpInsertParaBreak( const TextSelection& rTextSelection, BOOL bKeepEndingAttribs = TRUE );
+ TextPaM ImpInsertParaBreak( const TextPaM& rPaM, BOOL bKeepEndingAttribs = TRUE );
+ void ImpRemoveChars( const TextPaM& rPaM, USHORT nChars, SfxUndoAction* pCurUndo = 0 );
+ TextPaM ImpConnectParagraphs( ULONG nLeft, ULONG nRight );
+ void ImpRemoveParagraph( ULONG nPara );
void ImpInitWritingDirections( ULONG nPara );
LocaleDataWrapper* ImpGetLocaleDataWrapper();
@@ -167,161 +167,161 @@ protected:
SAL_DLLPRIVATE BOOL IsInputSequenceCheckingRequired( sal_Unicode c, const TextSelection& rCurSel ) const;
// Broadcasten bzw. Selektionen anpassen:
- void ImpParagraphInserted( ULONG nPara );
- void ImpParagraphRemoved( ULONG nPara );
- void ImpCharsRemoved( ULONG nPara, USHORT nPos, USHORT nChars );
- void ImpCharsInserted( ULONG nPara, USHORT nPos, USHORT nChars );
- void ImpFormattingParagraph( ULONG nPara );
- void ImpTextHeightChanged();
- void ImpTextFormatted();
-
- DECL_LINK( IdleFormatHdl, Timer * );
- void CheckIdleFormatter();
- void IdleFormatAndUpdate( TextView* pCurView = 0, USHORT nMaxTimerRestarts = 5 );
-
- BOOL CreateLines( ULONG nPara );
- void CreateAndInsertEmptyLine( ULONG nPara );
- void ImpBreakLine( ULONG nPara, TextLine* pLine, TETextPortion* pPortion, USHORT nPortionStart, long nRemainingWidth );
- USHORT SplitTextPortion( ULONG nPara, USHORT nPos );
- void CreateTextPortions( ULONG nPara, USHORT nStartPos );
- void RecalcTextPortion( ULONG nPara, USHORT nStartPos, short nNewChars );
- void SeekCursor( ULONG nNode, USHORT nPos, Font& rFont, OutputDevice* pOutDev );
-
- void FormatDoc();
- void FormatFullDoc();
- void FormatAndUpdate( TextView* pCurView = 0 );
- BOOL IsFormatting() const { return mbIsFormatting; }
- void UpdateViews( TextView* pCurView = 0 );
- void SetUpdateMode( BOOL bUp, TextView* pCurView, BOOL bForceUpdate );
-
- void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 );
-
- void UpdateSelections();
-
- BOOL IsFormatted() const { return mbFormatted; }
-
- USHORT GetCharPos( ULONG nPara, USHORT nLine, long nDocPosX, BOOL bSmart = FALSE );
- Rectangle GetEditCursor( const TextPaM& rPaM, BOOL bSpecial, BOOL bPreferPortionStart = FALSE );
- USHORT ImpFindIndex( ULONG nPortion, const Point& rPosInPara, BOOL bSmart );
+ void ImpParagraphInserted( ULONG nPara );
+ void ImpParagraphRemoved( ULONG nPara );
+ void ImpCharsRemoved( ULONG nPara, USHORT nPos, USHORT nChars );
+ void ImpCharsInserted( ULONG nPara, USHORT nPos, USHORT nChars );
+ void ImpFormattingParagraph( ULONG nPara );
+ void ImpTextHeightChanged();
+ void ImpTextFormatted();
+
+ DECL_LINK( IdleFormatHdl, Timer * );
+ void CheckIdleFormatter();
+ void IdleFormatAndUpdate( TextView* pCurView = 0, USHORT nMaxTimerRestarts = 5 );
+
+ BOOL CreateLines( ULONG nPara );
+ void CreateAndInsertEmptyLine( ULONG nPara );
+ void ImpBreakLine( ULONG nPara, TextLine* pLine, TETextPortion* pPortion, USHORT nPortionStart, long nRemainingWidth );
+ USHORT SplitTextPortion( ULONG nPara, USHORT nPos );
+ void CreateTextPortions( ULONG nPara, USHORT nStartPos );
+ void RecalcTextPortion( ULONG nPara, USHORT nStartPos, short nNewChars );
+ void SeekCursor( ULONG nNode, USHORT nPos, Font& rFont, OutputDevice* pOutDev );
+
+ void FormatDoc();
+ void FormatFullDoc();
+ void FormatAndUpdate( TextView* pCurView = 0 );
+ BOOL IsFormatting() const { return mbIsFormatting; }
+ void UpdateViews( TextView* pCurView = 0 );
+ void SetUpdateMode( BOOL bUp, TextView* pCurView, BOOL bForceUpdate );
+
+ void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 );
+
+ void UpdateSelections();
+
+ BOOL IsFormatted() const { return mbFormatted; }
+
+ USHORT GetCharPos( ULONG nPara, USHORT nLine, long nDocPosX, BOOL bSmart = FALSE );
+ Rectangle GetEditCursor( const TextPaM& rPaM, BOOL bSpecial, BOOL bPreferPortionStart = FALSE );
+ USHORT ImpFindIndex( ULONG nPortion, const Point& rPosInPara, BOOL bSmart );
long ImpGetPortionXOffset( ULONG nPara, TextLine* pLine, USHORT nTextPortion );
long ImpGetXPos( ULONG nPara, TextLine* pLine, USHORT nIndex, BOOL bPreferPortionStart = FALSE );
long ImpGetOutputOffset( ULONG nPara, TextLine* pLine, USHORT nIndex, USHORT nIndex2 );
BYTE ImpGetRightToLeft( ULONG nPara, USHORT nPos, USHORT* pStart = NULL, USHORT* pEnd = NULL );
void ImpInitLayoutMode( OutputDevice* pOutDev, BOOL bDrawingR2LPortion = FALSE );
- TxtAlign ImpGetAlign() const;
+ TxtAlign ImpGetAlign() const;
- ULONG CalcTextHeight();
- ULONG CalcParaHeight( ULONG nParagraph ) const;
- ULONG CalcTextWidth( ULONG nPara );
- ULONG CalcTextWidth( ULONG nPara, USHORT nPortionStart, USHORT nPortionLen, const Font* pFont = 0 );
- Range GetInvalidYOffsets( ULONG nPortion );
+ ULONG CalcTextHeight();
+ ULONG CalcParaHeight( ULONG nParagraph ) const;
+ ULONG CalcTextWidth( ULONG nPara );
+ ULONG CalcTextWidth( ULONG nPara, USHORT nPortionStart, USHORT nPortionLen, const Font* pFont = 0 );
+ Range GetInvalidYOffsets( ULONG nPortion );
// Fuer Undo/Redo
- void InsertContent( TextNode* pNode, ULONG nPara );
- TextPaM SplitContent( ULONG nNode, USHORT nSepPos );
- TextPaM ConnectContents( ULONG nLeftNode );
+ void InsertContent( TextNode* pNode, ULONG nPara );
+ TextPaM SplitContent( ULONG nNode, USHORT nSepPos );
+ TextPaM ConnectContents( ULONG nLeftNode );
// Ans API uebergebene PaM's und Selektionen auf einen gueltigen Bereich einstellen
- void ValidateSelection( TextSelection& rSel ) const;
- void ValidatePaM( TextPaM& rPaM ) const;
+ void ValidateSelection( TextSelection& rSel ) const;
+ void ValidatePaM( TextPaM& rPaM ) const;
public:
TextEngine();
~TextEngine();
- void SetText( const String& rStr );
- String GetText( LineEnd aSeparator = LINEEND_LF ) const;
- String GetText( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
- String GetTextLines( LineEnd aSeparator = LINEEND_LF ) const;
+ void SetText( const String& rStr );
+ String GetText( LineEnd aSeparator = LINEEND_LF ) const;
+ String GetText( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
+ String GetTextLines( LineEnd aSeparator = LINEEND_LF ) const;
void ReplaceText(const TextSelection& rSel, const String& rText);
- ULONG GetTextLen( LineEnd aSeparator = LINEEND_LF ) const;
- ULONG GetTextLen( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
+ ULONG GetTextLen( LineEnd aSeparator = LINEEND_LF ) const;
+ ULONG GetTextLen( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
- void SetFont( const Font& rFont );
- const Font& GetFont() const { return maFont; }
+ void SetFont( const Font& rFont );
+ const Font& GetFont() const { return maFont; }
- void SetDefTab( USHORT nDefTab );
- USHORT GetDefTab() const;
+ void SetDefTab( USHORT nDefTab );
+ USHORT GetDefTab() const;
- void SetLeftMargin( USHORT n );
- USHORT GetLeftMargin() const;
+ void SetLeftMargin( USHORT n );
+ USHORT GetLeftMargin() const;
- void SetUpdateMode( BOOL bUpdate );
- BOOL GetUpdateMode() const { return mbUpdate; }
+ void SetUpdateMode( BOOL bUpdate );
+ BOOL GetUpdateMode() const { return mbUpdate; }
- USHORT GetViewCount() const;
- TextView* GetView( USHORT nView ) const;
- void InsertView( TextView* pTextView );
- void RemoveView( TextView* pTextView );
- TextView* GetActiveView() const;
- void SetActiveView( TextView* pView );
+ USHORT GetViewCount() const;
+ TextView* GetView( USHORT nView ) const;
+ void InsertView( TextView* pTextView );
+ void RemoveView( TextView* pTextView );
+ TextView* GetActiveView() const;
+ void SetActiveView( TextView* pView );
- void SetMaxTextLen( ULONG nLen );
- ULONG GetMaxTextLen() const { return mnMaxTextLen; }
+ void SetMaxTextLen( ULONG nLen );
+ ULONG GetMaxTextLen() const { return mnMaxTextLen; }
- void SetMaxTextWidth( ULONG nWidth );
- ULONG GetMaxTextWidth() const { return mnMaxTextWidth; }
+ void SetMaxTextWidth( ULONG nWidth );
+ ULONG GetMaxTextWidth() const { return mnMaxTextWidth; }
- ULONG GetTextHeight() const;
- ULONG CalcTextWidth();
- USHORT GetCharHeight() const { return mnCharHeight; }
+ ULONG GetTextHeight() const;
+ ULONG CalcTextWidth();
+ USHORT GetCharHeight() const { return mnCharHeight; }
- ULONG GetParagraphCount() const;
- String GetText( ULONG nParagraph ) const;
- USHORT GetTextLen( ULONG nParagraph ) const;
- ULONG GetTextHeight( ULONG nParagraph ) const;
+ ULONG GetParagraphCount() const;
+ String GetText( ULONG nParagraph ) const;
+ USHORT GetTextLen( ULONG nParagraph ) const;
+ ULONG GetTextHeight( ULONG nParagraph ) const;
- USHORT GetLineCount( ULONG nParagraph ) const;
- USHORT GetLineLen( ULONG nParagraph, USHORT nLine ) const;
+ USHORT GetLineCount( ULONG nParagraph ) const;
+ USHORT GetLineLen( ULONG nParagraph, USHORT nLine ) const;
void SetRightToLeft( BOOL bR2L );
BOOL IsRightToLeft() const { return mbRightToLeft; }
- BOOL HasUndoManager() const { return mpUndoManager ? TRUE : FALSE; }
- SfxUndoManager& GetUndoManager();
- void UndoActionStart( USHORT nId );
- void UndoActionEnd( USHORT nId );
- void InsertUndo( TextUndo* pUndo, BOOL bTryMerge = FALSE );
- BOOL IsInUndo() { return mbIsInUndo; }
- void SetIsInUndo( BOOL bInUndo ) { mbIsInUndo = bInUndo; }
- void ResetUndo();
+ BOOL HasUndoManager() const { return mpUndoManager ? TRUE : FALSE; }
+ SfxUndoManager& GetUndoManager();
+ void UndoActionStart( USHORT nId );
+ void UndoActionEnd( USHORT nId );
+ void InsertUndo( TextUndo* pUndo, BOOL bTryMerge = FALSE );
+ BOOL IsInUndo() { return mbIsInUndo; }
+ void SetIsInUndo( BOOL bInUndo ) { mbIsInUndo = bInUndo; }
+ void ResetUndo();
- void EnableUndo( BOOL bEnable );
- BOOL IsUndoEnabled() { return mbUndoEnabled; }
+ void EnableUndo( BOOL bEnable );
+ BOOL IsUndoEnabled() { return mbUndoEnabled; }
- void SetModified( BOOL bModified ) { mbModified = bModified; }
- BOOL IsModified() const { return mbModified; }
+ void SetModified( BOOL bModified ) { mbModified = bModified; }
+ BOOL IsModified() const { return mbModified; }
- BOOL Read( SvStream& rInput, const TextSelection* pSel = NULL );
+ BOOL Read( SvStream& rInput, const TextSelection* pSel = NULL );
- BOOL Write( SvStream& rOutput, const TextSelection* pSel = NULL, BOOL bHTML = FALSE );
+ BOOL Write( SvStream& rOutput, const TextSelection* pSel = NULL, BOOL bHTML = FALSE );
- TextPaM GetPaM( const Point& rDocPos, BOOL bSmart = TRUE );
- Rectangle PaMtoEditCursor( const TextPaM& rPaM, BOOL bSpecial = FALSE );
- String GetWord( const TextPaM& rCursorPos, TextPaM* pStartOfWord = 0 );
+ TextPaM GetPaM( const Point& rDocPos, BOOL bSmart = TRUE );
+ Rectangle PaMtoEditCursor( const TextPaM& rPaM, BOOL bSpecial = FALSE );
+ String GetWord( const TextPaM& rCursorPos, TextPaM* pStartOfWord = 0 );
- BOOL HasAttrib( USHORT nWhich ) const;
- const TextAttrib* FindAttrib( const TextPaM& rPaM, USHORT nWhich ) const;
- const TextCharAttrib* FindCharAttrib( const TextPaM& rPaM, USHORT nWhich ) const;
+ BOOL HasAttrib( USHORT nWhich ) const;
+ const TextAttrib* FindAttrib( const TextPaM& rPaM, USHORT nWhich ) const;
+ const TextCharAttrib* FindCharAttrib( const TextPaM& rPaM, USHORT nWhich ) const;
void RemoveAttribs( ULONG nPara, USHORT nWhich, BOOL bIdleFormatAndUpdate );
void RemoveAttrib( ULONG nPara, const TextCharAttrib& rAttrib );
- void RemoveAttribs( ULONG nPara, BOOL bIdleFormatAndUpdate = TRUE );
- void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd, BOOL bIdleFormatAndUpdate = TRUE );
+ void RemoveAttribs( ULONG nPara, BOOL bIdleFormatAndUpdate = TRUE );
+ void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd, BOOL bIdleFormatAndUpdate = TRUE );
- TxtAlign GetTextAlign() const { return meAlign; }
- void SetTextAlign( TxtAlign eAlign );
+ TxtAlign GetTextAlign() const { return meAlign; }
+ void SetTextAlign( TxtAlign eAlign );
- void Draw( OutputDevice* pDev, const Point& rPos );
+ void Draw( OutputDevice* pDev, const Point& rPos );
void SetLocale( const ::com::sun::star::lang::Locale& rLocale );
::com::sun::star::lang::Locale GetLocale();
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XBreakIterator > GetBreakIterator();
- static BOOL DoesKeyChangeText( const KeyEvent& rKeyEvent );
- static BOOL DoesKeyMoveCursor( const KeyEvent& rKeyEvent );
- static BOOL IsSimpleCharInput( const KeyEvent& rKeyEvent );
+ static BOOL DoesKeyChangeText( const KeyEvent& rKeyEvent );
+ static BOOL DoesKeyMoveCursor( const KeyEvent& rKeyEvent );
+ static BOOL IsSimpleCharInput( const KeyEvent& rKeyEvent );
};
#endif // _TEXTENG_HXX
diff --git a/svtools/inc/svtools/textview.hxx b/svtools/inc/svtools/textview.hxx
index 8348c584ba58..2935485c7445 100644
--- a/svtools/inc/svtools/textview.hxx
+++ b/svtools/inc/svtools/textview.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,43 +58,43 @@ struct ImpTextView;
class SVT_DLLPUBLIC TextView : public vcl::unohelper::DragAndDropClient
{
- friend class TextEngine;
- friend class TextUndo;
- friend class TextUndoManager;
- friend class TextSelFunctionSet;
- friend class ExtTextView;
+ friend class TextEngine;
+ friend class TextUndo;
+ friend class TextUndoManager;
+ friend class TextSelFunctionSet;
+ friend class ExtTextView;
private:
ImpTextView* mpImpl;
- TextView( const TextView& ) : vcl::unohelper::DragAndDropClient() {}
- TextView& operator=( const TextView& ) { return *this; }
+ TextView( const TextView& ) : vcl::unohelper::DragAndDropClient() {}
+ TextView& operator=( const TextView& ) { return *this; }
protected:
- void ShowSelection();
- void HideSelection();
- void ShowSelection( const TextSelection& rSel );
+ void ShowSelection();
+ void HideSelection();
+ void ShowSelection( const TextSelection& rSel );
void ImpShowHideSelection( BOOL bShow, const TextSelection* pRange = NULL );
- TextSelection ImpMoveCursor( const KeyEvent& rKeyEvent );
- TextPaM ImpDelete( BYTE nMode, BYTE nDelMode );
- void ImpSetSelection( const TextSelection& rNewSel, BOOL bUI );
- BOOL IsInSelection( const TextPaM& rPaM );
+ TextSelection ImpMoveCursor( const KeyEvent& rKeyEvent );
+ TextPaM ImpDelete( BYTE nMode, BYTE nDelMode );
+ void ImpSetSelection( const TextSelection& rNewSel, BOOL bUI );
+ BOOL IsInSelection( const TextPaM& rPaM );
- void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 );
- void ImpPaint( const Rectangle& rRect, BOOL bUseVirtDev );
- void ImpShowCursor( BOOL bGotoCursor, BOOL bForceVisCursor, BOOL bEndKey );
- void ImpHighlight( const TextSelection& rSel );
+ void ImpPaint( OutputDevice* pOut, const Point& rStartPos, Rectangle const* pPaintArea, TextSelection const* pPaintRange = 0, TextSelection const* pSelection = 0 );
+ void ImpPaint( const Rectangle& rRect, BOOL bUseVirtDev );
+ void ImpShowCursor( BOOL bGotoCursor, BOOL bForceVisCursor, BOOL bEndKey );
+ void ImpHighlight( const TextSelection& rSel );
void ImpSetSelection( const TextSelection& rSelection );
Point ImpGetOutputStartPos( const Point& rStartDocPos ) const;
- void ImpHideDDCursor();
- void ImpShowDDCursor();
+ void ImpHideDDCursor();
+ void ImpShowDDCursor();
bool ImplTruncateNewText( rtl::OUString& rNewText ) const;
- BOOL ImplCheckTextLen( const String& rNewText );
+ BOOL ImplCheckTextLen( const String& rNewText );
- VirtualDevice* GetVirtualDevice();
+ VirtualDevice* GetVirtualDevice();
// DragAndDropClient
virtual void dragGestureRecognized( const ::com::sun::star::datatransfer::dnd::DragGestureEvent& dge ) throw (::com::sun::star::uno::RuntimeException);
@@ -110,107 +110,107 @@ protected:
public:
TextView( TextEngine* pEng, Window* pWindow );
- virtual ~TextView();
+ virtual ~TextView();
TextEngine* GetTextEngine() const;
Window* GetWindow() const;
- void Invalidate();
- void Scroll( long nHorzScroll, long nVertScroll );
+ void Invalidate();
+ void Scroll( long nHorzScroll, long nVertScroll );
- void ShowCursor( BOOL bGotoCursor = TRUE, BOOL bForceVisCursor = TRUE );
- void HideCursor();
+ void ShowCursor( BOOL bGotoCursor = TRUE, BOOL bForceVisCursor = TRUE );
+ void HideCursor();
void EnableCursor( BOOL bEnable );
- BOOL IsCursorEnabled() const;
+ BOOL IsCursorEnabled() const;
- const TextSelection& GetSelection() const;
+ const TextSelection& GetSelection() const;
TextSelection& GetSelection();
void SetSelection( const TextSelection& rNewSel );
- void SetSelection( const TextSelection& rNewSel, BOOL bGotoCursor );
+ void SetSelection( const TextSelection& rNewSel, BOOL bGotoCursor );
BOOL HasSelection() const;
- String GetSelected();
- String GetSelected( LineEnd aSeparator );
- void DeleteSelected();
+ String GetSelected();
+ String GetSelected( LineEnd aSeparator );
+ void DeleteSelected();
- void InsertNewText( const rtl::OUString& rNew, BOOL bSelect = FALSE );
+ void InsertNewText( const rtl::OUString& rNew, BOOL bSelect = FALSE );
// deprecated: use InsertNewText instead
- void InsertText( const String& rNew, BOOL bSelect = FALSE );
+ void InsertText( const String& rNew, BOOL bSelect = FALSE );
- BOOL KeyInput( const KeyEvent& rKeyEvent );
- void Paint( const Rectangle& rRect );
- void MouseButtonUp( const MouseEvent& rMouseEvent );
- void MouseButtonDown( const MouseEvent& rMouseEvent );
- void MouseMove( const MouseEvent& rMouseEvent );
- void Command( const CommandEvent& rCEvt );
+ BOOL KeyInput( const KeyEvent& rKeyEvent );
+ void Paint( const Rectangle& rRect );
+ void MouseButtonUp( const MouseEvent& rMouseEvent );
+ void MouseButtonDown( const MouseEvent& rMouseEvent );
+ void MouseMove( const MouseEvent& rMouseEvent );
+ void Command( const CommandEvent& rCEvt );
- void Cut();
- void Copy();
- void Paste();
+ void Cut();
+ void Copy();
+ void Paste();
void Copy( ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& rxClipboard );
void Paste( ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& rxClipboard );
- void Undo();
- void Redo();
+ void Undo();
+ void Redo();
- BOOL Read( SvStream& rInput );
- BOOL Write( SvStream& rOutput );
+ BOOL Read( SvStream& rInput );
+ BOOL Write( SvStream& rOutput );
void SetStartDocPos( const Point& rPos );
const Point& GetStartDocPos() const;
- Point GetDocPos( const Point& rWindowPos ) const;
- Point GetWindowPos( const Point& rDocPos ) const;
+ Point GetDocPos( const Point& rWindowPos ) const;
+ Point GetWindowPos( const Point& rDocPos ) const;
- void SetInsertMode( BOOL bInsert );
+ void SetInsertMode( BOOL bInsert );
BOOL IsInsertMode() const;
void SetAutoIndentMode( BOOL bAutoIndent );
BOOL IsAutoIndentMode() const;
- void SetReadOnly( BOOL bReadOnly );
+ void SetReadOnly( BOOL bReadOnly );
BOOL IsReadOnly() const;
void SetAutoScroll( BOOL bAutoScroll );
BOOL IsAutoScroll() const;
- BOOL SetCursorAtPoint( const Point& rPointPixel );
- BOOL IsSelectionAtPoint( const Point& rPointPixel );
+ BOOL SetCursorAtPoint( const Point& rPointPixel );
+ BOOL IsSelectionAtPoint( const Point& rPointPixel );
- void SetPaintSelection( BOOL bPaint);
+ void SetPaintSelection( BOOL bPaint);
BOOL IsPaintSelection() const;
- void SetHighlightSelection( BOOL bSelectByHighlight );
+ void SetHighlightSelection( BOOL bSelectByHighlight );
BOOL IsHighlightSelection() const;
- void EraseVirtualDevice();
+ void EraseVirtualDevice();
// aus dem protected Teil hierher verschoben
// F�r 'SvtXECTextCursor' (TL). Mu� ggf nochmal anders gel�st werden.
- TextPaM PageUp( const TextPaM& rPaM );
- TextPaM PageDown( const TextPaM& rPaM );
- TextPaM CursorUp( const TextPaM& rPaM );
- TextPaM CursorDown( const TextPaM& rPaM );
- TextPaM CursorLeft( const TextPaM& rPaM, USHORT nCharacterIteratorMode );
- TextPaM CursorRight( const TextPaM& rPaM, USHORT nCharacterIteratorMode );
- TextPaM CursorWordLeft( const TextPaM& rPaM );
- TextPaM CursorWordRight( const TextPaM& rPaM );
- TextPaM CursorStartOfLine( const TextPaM& rPaM );
- TextPaM CursorEndOfLine( const TextPaM& rPaM );
- TextPaM CursorStartOfParagraph( const TextPaM& rPaM );
- TextPaM CursorEndOfParagraph( const TextPaM& rPaM );
- TextPaM CursorStartOfDoc();
- TextPaM CursorEndOfDoc();
+ TextPaM PageUp( const TextPaM& rPaM );
+ TextPaM PageDown( const TextPaM& rPaM );
+ TextPaM CursorUp( const TextPaM& rPaM );
+ TextPaM CursorDown( const TextPaM& rPaM );
+ TextPaM CursorLeft( const TextPaM& rPaM, USHORT nCharacterIteratorMode );
+ TextPaM CursorRight( const TextPaM& rPaM, USHORT nCharacterIteratorMode );
+ TextPaM CursorWordLeft( const TextPaM& rPaM );
+ TextPaM CursorWordRight( const TextPaM& rPaM );
+ TextPaM CursorStartOfLine( const TextPaM& rPaM );
+ TextPaM CursorEndOfLine( const TextPaM& rPaM );
+ TextPaM CursorStartOfParagraph( const TextPaM& rPaM );
+ TextPaM CursorEndOfParagraph( const TextPaM& rPaM );
+ TextPaM CursorStartOfDoc();
+ TextPaM CursorEndOfDoc();
// Old, remove!
- TextPaM CursorLeft( const TextPaM& rPaM, BOOL bWordMode = FALSE );
- TextPaM CursorRight( const TextPaM& rPaM, BOOL bWordMode = FALSE );
+ TextPaM CursorLeft( const TextPaM& rPaM, BOOL bWordMode = FALSE );
+ TextPaM CursorRight( const TextPaM& rPaM, BOOL bWordMode = FALSE );
/**
- Drag and Drop, deleting and selection regards all text that has an attribute
- TEXTATTR_PROTECTED set as one entitity. Drag and dropped text is automatically
+ Drag and Drop, deleting and selection regards all text that has an attribute
+ TEXTATTR_PROTECTED set as one entitity. Drag and dropped text is automatically
attibuted as protected.
*/
void SupportProtectAttribute(sal_Bool bSupport);
diff --git a/svtools/inc/svtools/textwindowpeer.hxx b/svtools/inc/svtools/textwindowpeer.hxx
index a01af5bf4c58..fd4cee274a7e 100644
--- a/svtools/inc/svtools/textwindowpeer.hxx
+++ b/svtools/inc/svtools/textwindowpeer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolbarmenu.hxx b/svtools/inc/svtools/toolbarmenu.hxx
index 362a57c21f96..5f257bd7f629 100644
--- a/svtools/inc/svtools/toolbarmenu.hxx
+++ b/svtools/inc/svtools/toolbarmenu.hxx
@@ -58,11 +58,11 @@ public:
ToolbarMenu( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
Window* pParentWindow,
WinBits nBits );
-
+
ToolbarMenu( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
Window* pParentWindow,
const ResId& rResId );
-
+
~ToolbarMenu();
virtual void MouseMove( const MouseEvent& rMEvt );
@@ -72,39 +72,39 @@ public:
virtual void Command( const CommandEvent& rCEvt );
virtual void Paint( const Rectangle& rRect );
virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void GetFocus();
- virtual void LoseFocus();
+ virtual void GetFocus();
+ virtual void LoseFocus();
- void appendEntry( int nEntryId, const String& rStr, MenuItemBits nItemBits = 0 );
- void appendEntry( int nEntryId, const Image& rImage, MenuItemBits nItemBits = 0 );
- void appendEntry( int nEntryId, const String& rStr, const Image& rImage, MenuItemBits nItemBits = 0 );
- void appendEntry( int nEntryId, Control* pControl, MenuItemBits nItemBits = 0 );
- void appendSeparator();
+ void appendEntry( int nEntryId, const String& rStr, MenuItemBits nItemBits = 0 );
+ void appendEntry( int nEntryId, const Image& rImage, MenuItemBits nItemBits = 0 );
+ void appendEntry( int nEntryId, const String& rStr, const Image& rImage, MenuItemBits nItemBits = 0 );
+ void appendEntry( int nEntryId, Control* pControl, MenuItemBits nItemBits = 0 );
+ void appendSeparator();
/** creates an empty ValueSet that is initialized and can be inserted with appendEntry. */
- ValueSet* createEmptyValueSetControl();
+ ValueSet* createEmptyValueSetControl();
- void checkEntry( int nEntryId, bool bCheck = true );
- bool isEntryChecked( int nEntryId ) const;
+ void checkEntry( int nEntryId, bool bCheck = true );
+ bool isEntryChecked( int nEntryId ) const;
- void enableEntry( int nEntryId, bool bEnable = true );
- bool isEntryEnabled( int nEntryId ) const;
+ void enableEntry( int nEntryId, bool bEnable = true );
+ bool isEntryEnabled( int nEntryId ) const;
- void setEntryText( int nEntryId, const String& rStr );
- const String& getEntryText( int nEntryId ) const;
+ void setEntryText( int nEntryId, const String& rStr );
+ const String& getEntryText( int nEntryId ) const;
- void setEntryImage( int nEntryId, const Image& rImage );
- const Image& getEntryImage( int nEntryId ) const;
+ void setEntryImage( int nEntryId, const Image& rImage );
+ const Image& getEntryImage( int nEntryId ) const;
- const Size& getMenuSize() const;
+ const Size& getMenuSize() const;
- void SetSelectHdl( const Link& rLink );
- const Link& GetSelectHdl() const;
+ void SetSelectHdl( const Link& rLink );
+ const Link& GetSelectHdl() const;
- int getSelectedEntryId() const;
- int getHighlightedEntryId() const;
+ int getSelectedEntryId() const;
+ int getHighlightedEntryId() const;
- void highlightFirstEntry();
+ void highlightFirstEntry();
protected:
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
@@ -122,33 +122,33 @@ protected:
void StateChanged( StateChangedType nType );
void DataChanged( const DataChangedEvent& rDCEvt );
-
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > GetFrame() const;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > GetFrame() const;
private:
DECL_LINK( HighlightHdl, Control * );
void initStatusListener();
- void implInit( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame );
- void initWindow();
-
- Size implCalcSize();
+ void implInit( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame );
+ void initWindow();
- void appendEntry( ToolbarMenuEntry* pEntry );
+ Size implCalcSize();
- void implPaint( ToolbarMenuEntry* pThisOnly = NULL, bool bHighlight = false );
+ void appendEntry( ToolbarMenuEntry* pEntry );
- void implHighlightEntry( int nHighlightEntry, bool bHighlight );
- void implHighlightEntry( const MouseEvent& rMEvt, bool bMBDown );
+ void implPaint( ToolbarMenuEntry* pThisOnly = NULL, bool bHighlight = false );
+
+ void implHighlightEntry( int nHighlightEntry, bool bHighlight );
+ void implHighlightEntry( const MouseEvent& rMEvt, bool bMBDown );
- void implChangeHighlightEntry( int nEntry );
- void implSelectEntry( int nSelectedEntry );
+ void implChangeHighlightEntry( int nEntry );
+ void implSelectEntry( int nSelectedEntry );
- ToolbarMenuEntry* implCursorUpDown( bool bUp, bool bHomeEnd );
- ToolbarMenuEntry* implGetEntry( int nEntry ) const;
- ToolbarMenuEntry* implSearchEntry( int nEntryId ) const;
+ ToolbarMenuEntry* implCursorUpDown( bool bUp, bool bHomeEnd );
+ ToolbarMenuEntry* implGetEntry( int nEntry ) const;
+ ToolbarMenuEntry* implSearchEntry( int nEntryId ) const;
- ToolbarMenu_Impl* mpImpl;
+ ToolbarMenu_Impl* mpImpl;
};
} // namespace svtools
diff --git a/svtools/inc/svtools/toolboxcontroller.hxx b/svtools/inc/svtools/toolboxcontroller.hxx
index 61bd7b7889f4..e79123dafde7 100644
--- a/svtools/inc/svtools/toolboxcontroller.hxx
+++ b/svtools/inc/svtools/toolboxcontroller.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,15 +78,15 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame,
const rtl::OUString& aCommandURL );
ToolboxController();
- virtual ~ToolboxController();
-
+ virtual ~ToolboxController();
+
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > getFrameInterface() const;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > getServiceManager() const;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XLayoutManager > getLayoutManager() const;
void updateStatus( const rtl::OUString aCommandURL );
void updateStatus();
-
+
// XInterface
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL acquire() throw ();
@@ -94,19 +94,19 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
// XInitialization
virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
-
+
// XUpdatable
virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException);
-
+
// XComponent
virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
-
+
// XEventListener
using cppu::OPropertySetHelper::disposing;
virtual void SAL_CALL disposing( const com::sun::star::lang::EventObject& Source ) throw ( ::com::sun::star::uno::RuntimeException );
-
+
// XStatusListener
virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ) = 0;
@@ -124,7 +124,7 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
// OPropertyArrayUsageHelper //shizhoubo
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
-
+
const rtl::OUString& getCommandURL() const { return m_aCommandURL; }
const rtl::OUString& getModuleName() const;
@@ -140,7 +140,7 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
{
Listener( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch >& rDispatch ) :
aURL( rURL ), xDispatch( rDispatch ) {}
-
+
::com::sun::star::util::URL aURL;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > xDispatch;
};
@@ -149,7 +149,7 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
com::sun::star::uno::Reference< com::sun::star::frame::XDispatch >,
::rtl::OUStringHash,
::std::equal_to< ::rtl::OUString > > URLToDispatchMap;
-
+
// methods to support status forwarder, known by the old sfx2 toolbox controller implementation
void addStatusListener( const rtl::OUString& aCommandURL );
void removeStatusListener( const rtl::OUString& aCommandURL );
@@ -163,8 +163,8 @@ class SVT_DLLPUBLIC ToolboxController : public ::com::sun::star::frame::XStatusL
sal_Bool m_bInitialized : 1,
m_bDisposed : 1;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
- ToolboxController_Impl* m_pImpl;
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
+ ToolboxController_Impl* m_pImpl;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager;
rtl::OUString m_aCommandURL;
URLToDispatchMap m_aListenerMap;
diff --git a/svtools/inc/svtools/toolpanel/decklayouter.hxx b/svtools/inc/svtools/toolpanel/decklayouter.hxx
index 7c5d7062c51d..993586279465 100644
--- a/svtools/inc/svtools/toolpanel/decklayouter.hxx
+++ b/svtools/inc/svtools/toolpanel/decklayouter.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolpanel/drawerlayouter.hxx b/svtools/inc/svtools/toolpanel/drawerlayouter.hxx
index 4a196909a178..f2fcb2d976c7 100644
--- a/svtools/inc/svtools/toolpanel/drawerlayouter.hxx
+++ b/svtools/inc/svtools/toolpanel/drawerlayouter.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolpanel/paneltabbar.hxx b/svtools/inc/svtools/toolpanel/paneltabbar.hxx
index 555ecb45ed8f..c6e7f8d0f242 100644
--- a/svtools/inc/svtools/toolpanel/paneltabbar.hxx
+++ b/svtools/inc/svtools/toolpanel/paneltabbar.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolpanel/refbase.hxx b/svtools/inc/svtools/toolpanel/refbase.hxx
index 4ca3ff32bb55..d798b3039e3a 100644
--- a/svtools/inc/svtools/toolpanel/refbase.hxx
+++ b/svtools/inc/svtools/toolpanel/refbase.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolpanel/tabalignment.hxx b/svtools/inc/svtools/toolpanel/tabalignment.hxx
index 708e4c9255c7..37414c387d1d 100644
--- a/svtools/inc/svtools/toolpanel/tabalignment.hxx
+++ b/svtools/inc/svtools/toolpanel/tabalignment.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolpanel/tabitemcontent.hxx b/svtools/inc/svtools/toolpanel/tabitemcontent.hxx
index b7aa7e52c0e5..12c9552a8778 100644
--- a/svtools/inc/svtools/toolpanel/tabitemcontent.hxx
+++ b/svtools/inc/svtools/toolpanel/tabitemcontent.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolpanel/tablayouter.hxx b/svtools/inc/svtools/toolpanel/tablayouter.hxx
index 18051d636108..4ae86c786df3 100644
--- a/svtools/inc/svtools/toolpanel/tablayouter.hxx
+++ b/svtools/inc/svtools/toolpanel/tablayouter.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolpanel/toolpanel.hxx b/svtools/inc/svtools/toolpanel/toolpanel.hxx
index 6d1b6d2fed46..12e4328c281c 100644
--- a/svtools/inc/svtools/toolpanel/toolpanel.hxx
+++ b/svtools/inc/svtools/toolpanel/toolpanel.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/toolpanel/toolpaneldeck.hxx b/svtools/inc/svtools/toolpanel/toolpaneldeck.hxx
index 9be60324b5b8..079e78db306d 100644
--- a/svtools/inc/svtools/toolpanel/toolpaneldeck.hxx
+++ b/svtools/inc/svtools/toolpanel/toolpaneldeck.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/transfer.hxx b/svtools/inc/svtools/transfer.hxx
index 262b9a12a2f5..4fe7fea92c5e 100644
--- a/svtools/inc/svtools/transfer.hxx
+++ b/svtools/inc/svtools/transfer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,14 +67,14 @@ class Link;
// - Drag&Drop defines -
// ---------------------
-#define DND_ACTION_NONE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_NONE
-#define DND_ACTION_COPY ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_COPY
-#define DND_ACTION_MOVE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_MOVE
+#define DND_ACTION_NONE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_NONE
+#define DND_ACTION_COPY ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_COPY
+#define DND_ACTION_MOVE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_MOVE
#define DND_ACTION_COPYMOVE ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_COPY_OR_MOVE
-#define DND_ACTION_LINK ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_LINK
+#define DND_ACTION_LINK ::com::sun::star::datatransfer::dnd::DNDConstants::ACTION_LINK
-#define DND_POINTER_NONE 0
-#define DND_IMAGE_NONE 0
+#define DND_POINTER_NONE 0
+#define DND_IMAGE_NONE 0
// --------------------------------
// - TransferableObjectDescriptor -
@@ -82,20 +82,20 @@ class Link;
struct TransferableObjectDescriptor
{
- SvGlobalName maClassName;
- sal_uInt16 mnViewAspect;
- Point maDragStartPos;
- Size maSize;
- sal_uInt32 mnOle2Misc;
- String maTypeName;
- String maDisplayName;
- sal_Bool mbCanLink;
- void* mpDummy1;
- void* mpDummy2;
- sal_Bool mbDummy1;
-
- SVT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, TransferableObjectDescriptor& rObjDesc );
- SVT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc );
+ SvGlobalName maClassName;
+ sal_uInt16 mnViewAspect;
+ Point maDragStartPos;
+ Size maSize;
+ sal_uInt32 mnOle2Misc;
+ String maTypeName;
+ String maDisplayName;
+ sal_Bool mbCanLink;
+ void* mpDummy1;
+ void* mpDummy2;
+ sal_Bool mbDummy1;
+
+ SVT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, TransferableObjectDescriptor& rObjDesc );
+ SVT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc );
};
// -------------------
@@ -104,10 +104,10 @@ struct TransferableObjectDescriptor
struct AcceptDropEvent
{
- sal_Int8 mnAction;
- Point maPosPixel;
- const ::com::sun::star::datatransfer::dnd::DropTargetDragEvent maDragEvent;
- sal_Bool mbLeaving;
+ sal_Int8 mnAction;
+ Point maPosPixel;
+ const ::com::sun::star::datatransfer::dnd::DropTargetDragEvent maDragEvent;
+ sal_Bool mbLeaving;
sal_Bool mbDefault;
sal_Bool mbDummy1;
sal_Bool mbDummy2;
@@ -135,9 +135,9 @@ struct AcceptDropEvent
struct ExecuteDropEvent
{
- sal_Int8 mnAction;
- Point maPosPixel;
- const ::com::sun::star::datatransfer::dnd::DropTargetDropEvent maDropEvent;
+ sal_Int8 mnAction;
+ Point maPosPixel;
+ const ::com::sun::star::datatransfer::dnd::DropTargetDropEvent maDropEvent;
sal_Bool mbDefault;
sal_Bool mbDummy1;
sal_Bool mbDummy2;
@@ -172,8 +172,8 @@ private:
{
private:
- TransferableHelper& mrParent;
- void* mpDummy;
+ TransferableHelper& mrParent;
+ void* mpDummy;
private:
@@ -187,21 +187,21 @@ private:
public:
TerminateListener( TransferableHelper& rDropTargetHelper );
- virtual ~TerminateListener();
+ virtual ~TerminateListener();
};
friend class TransferableHelper::TerminateListener;
private:
- DataFlavorExList maDummy;
- ::com::sun::star::uno::Any maAny;
- ::rtl::OUString maLastFormat;
- mutable ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTerminateListener > mxTerminateListener;
- DataFlavorExVector* mpFormats;
+ DataFlavorExList maDummy;
+ ::com::sun::star::uno::Any maAny;
+ ::rtl::OUString maLastFormat;
+ mutable ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XTerminateListener > mxTerminateListener;
+ DataFlavorExVector* mpFormats;
TransferableObjectDescriptor* mpObjDesc;
- void* mpDummy1;
+ void* mpDummy1;
protected:
inline const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >&
@@ -210,7 +210,7 @@ protected:
private:
// XTransferable
- virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) throw(::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) throw(::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors() throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) throw(::com::sun::star::uno::RuntimeException);
@@ -233,7 +233,7 @@ protected:
// derivees need to access lostOwnership in case hey override it
// on windows, changing the access rights to a method gives unresolved externals, so we introduce
// this impl-method here 'til the next incompatible update
- inline void implCallOwnLostOwnership(
+ inline void implCallOwnLostOwnership(
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard >& _rxClipboard,
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _rxTrans
)
@@ -244,41 +244,41 @@ protected:
private:
- SVT_DLLPRIVATE void ImplFlush();
+ SVT_DLLPRIVATE void ImplFlush();
protected:
- virtual ~TransferableHelper();
-
- void AddFormat( SotFormatStringId nFormat );
- void AddFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- void RemoveFormat( SotFormatStringId nFormat );
- void RemoveFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool HasFormat( SotFormatStringId nFormat );
- inline sal_Bool HasFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) { return isDataFlavorSupported( rFlavor ); }
- void ClearFormats();
-
- sal_Bool SetAny( const ::com::sun::star::uno::Any& rAny, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetString( const ::rtl::OUString& rString, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetBitmap( const Bitmap& rBitmap, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetGDIMetaFile( const GDIMetaFile& rMtf, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetGraphic( const Graphic& rGraphic, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ virtual ~TransferableHelper();
+
+ void AddFormat( SotFormatStringId nFormat );
+ void AddFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ void RemoveFormat( SotFormatStringId nFormat );
+ void RemoveFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool HasFormat( SotFormatStringId nFormat );
+ inline sal_Bool HasFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) { return isDataFlavorSupported( rFlavor ); }
+ void ClearFormats();
+
+ sal_Bool SetAny( const ::com::sun::star::uno::Any& rAny, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetString( const ::rtl::OUString& rString, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetBitmap( const Bitmap& rBitmap, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetGDIMetaFile( const GDIMetaFile& rMtf, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetGraphic( const Graphic& rGraphic, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
sal_Bool SetImageMap( const ImageMap& rIMap, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetTransferableObjectDescriptor( const TransferableObjectDescriptor& rDesc, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetINetBookmark( const INetBookmark& rBmk, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetINetImage( const INetImage& rINtImg, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetFileList( const FileList& rFileList, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetObject( void* pUserObject, sal_uInt32 nUserObjectId, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- sal_Bool SetInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf,
+ sal_Bool SetTransferableObjectDescriptor( const TransferableObjectDescriptor& rDesc, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetINetBookmark( const INetBookmark& rBmk, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetINetImage( const INetImage& rINtImg, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetFileList( const FileList& rFileList, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetObject( void* pUserObject, sal_uInt32 nUserObjectId, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool SetInterface( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf,
const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
protected:
- virtual void AddSupportedFormats() = 0;
+ virtual void AddSupportedFormats() = 0;
virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) = 0;
virtual sal_Bool WriteObject( SotStorageStreamRef& rxOStm, void* pUserObject, sal_uInt32 nUserObjectId, const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- virtual void DragFinished( sal_Int8 nDropAction );
- virtual void ObjectReleased();
+ virtual void DragFinished( sal_Int8 nDropAction );
+ virtual void ObjectReleased();
public:
@@ -286,13 +286,13 @@ public:
void PrepareOLE( const TransferableObjectDescriptor& rObjDesc );
- void CopyToClipboard( Window *pWindow ) const;
- void CopyToSelection( Window *pWindow ) const;
- void StartDrag( Window* pWindow, sal_Int8 nDragSourceActions,
+ void CopyToClipboard( Window *pWindow ) const;
+ void CopyToSelection( Window *pWindow ) const;
+ void StartDrag( Window* pWindow, sal_Int8 nDragSourceActions,
sal_Int32 nDragPointer = DND_POINTER_NONE,
sal_Int32 nDragImage = DND_IMAGE_NONE );
- static void ClearSelection( Window *pWindow );
+ static void ClearSelection( Window *pWindow );
static ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > GetSystemClipboard();
static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId();
@@ -314,15 +314,15 @@ class SVT_DLLPUBLIC TransferableDataHelper
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > mxTransfer;
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
- DataFlavorExVector* mpFormats;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > mxTransfer;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
+ DataFlavorExVector* mpFormats;
TransferableObjectDescriptor* mpObjDesc;
TransferableDataHelper_Impl* mpImpl;
- void* mpDummy4;
+ void* mpDummy4;
protected:
- void InitFormats();
+ void InitFormats();
public:
@@ -334,78 +334,78 @@ public:
TransferableDataHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& rxTransferable );
~TransferableDataHelper();
- TransferableDataHelper& operator=( const TransferableDataHelper& rDataHelper );
+ TransferableDataHelper& operator=( const TransferableDataHelper& rDataHelper );
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& GetTransferable() const { return mxTransfer; }
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > GetXTransferable() const;
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& GetTransferable() const { return mxTransfer; }
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > GetXTransferable() const;
- sal_Bool HasFormat( SotFormatStringId nFormat ) const;
- sal_Bool HasFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) const;
+ sal_Bool HasFormat( SotFormatStringId nFormat ) const;
+ sal_Bool HasFormat( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) const;
- sal_uInt32 GetFormatCount() const;
+ sal_uInt32 GetFormatCount() const;
- SotFormatStringId GetFormat( sal_uInt32 nFormat ) const;
- ::com::sun::star::datatransfer::DataFlavor GetFormatDataFlavor( sal_uInt32 nFormat ) const;
+ SotFormatStringId GetFormat( sal_uInt32 nFormat ) const;
+ ::com::sun::star::datatransfer::DataFlavor GetFormatDataFlavor( sal_uInt32 nFormat ) const;
- DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; }
+ DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; }
- sal_Bool StartClipboardListening( );
- void StopClipboardListening( );
+ sal_Bool StartClipboardListening( );
+ void StopClipboardListening( );
- void Rebind( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _rxNewData );
+ void Rebind( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& _rxNewData );
public:
- ::com::sun::star::uno::Any GetAny( SotFormatStringId nFormat ) const;
- ::com::sun::star::uno::Any GetAny( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) const;
+ ::com::sun::star::uno::Any GetAny( SotFormatStringId nFormat ) const;
+ ::com::sun::star::uno::Any GetAny( const ::com::sun::star::datatransfer::DataFlavor& rFlavor ) const;
- sal_Bool GetString( SotFormatStringId nFormat, String& rStr );
- sal_Bool GetString( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, String& rStr );
+ sal_Bool GetString( SotFormatStringId nFormat, String& rStr );
+ sal_Bool GetString( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, String& rStr );
- sal_Bool GetString( SotFormatStringId nFormat, ::rtl::OUString& rStr );
- sal_Bool GetString( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::rtl::OUString& rStr );
+ sal_Bool GetString( SotFormatStringId nFormat, ::rtl::OUString& rStr );
+ sal_Bool GetString( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::rtl::OUString& rStr );
- sal_Bool GetBitmap( SotFormatStringId nFormat, Bitmap& rBmp );
- sal_Bool GetBitmap( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Bitmap& rBmp );
+ sal_Bool GetBitmap( SotFormatStringId nFormat, Bitmap& rBmp );
+ sal_Bool GetBitmap( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Bitmap& rBmp );
- sal_Bool GetGDIMetaFile( SotFormatStringId nFormat, GDIMetaFile& rMtf );
- sal_Bool GetGDIMetaFile( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, GDIMetaFile& rMtf );
+ sal_Bool GetGDIMetaFile( SotFormatStringId nFormat, GDIMetaFile& rMtf );
+ sal_Bool GetGDIMetaFile( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, GDIMetaFile& rMtf );
- sal_Bool GetGraphic( SotFormatStringId nFormat, Graphic& rGraphic );
- sal_Bool GetGraphic( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Graphic& rGraphic );
+ sal_Bool GetGraphic( SotFormatStringId nFormat, Graphic& rGraphic );
+ sal_Bool GetGraphic( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Graphic& rGraphic );
sal_Bool GetImageMap( SotFormatStringId nFormat, ImageMap& rIMap );
sal_Bool GetImageMap( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ImageMap& rImap );
- sal_Bool GetTransferableObjectDescriptor( SotFormatStringId nFormat, TransferableObjectDescriptor& rDesc );
- sal_Bool GetTransferableObjectDescriptor( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, TransferableObjectDescriptor& rDesc );
+ sal_Bool GetTransferableObjectDescriptor( SotFormatStringId nFormat, TransferableObjectDescriptor& rDesc );
+ sal_Bool GetTransferableObjectDescriptor( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, TransferableObjectDescriptor& rDesc );
- sal_Bool GetINetBookmark( SotFormatStringId nFormat, INetBookmark& rBmk );
- sal_Bool GetINetBookmark( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, INetBookmark& rBmk );
+ sal_Bool GetINetBookmark( SotFormatStringId nFormat, INetBookmark& rBmk );
+ sal_Bool GetINetBookmark( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, INetBookmark& rBmk );
- sal_Bool GetINetImage( SotFormatStringId nFormat, INetImage& rINtImg );
- sal_Bool GetINetImage( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, INetImage& rINtImg );
+ sal_Bool GetINetImage( SotFormatStringId nFormat, INetImage& rINtImg );
+ sal_Bool GetINetImage( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, INetImage& rINtImg );
- sal_Bool GetFileList( SotFormatStringId nFormat, FileList& rFileList );
- sal_Bool GetFileList( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, FileList& rFileList );
+ sal_Bool GetFileList( SotFormatStringId nFormat, FileList& rFileList );
+ sal_Bool GetFileList( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, FileList& rFileList );
- sal_Bool GetSequence( SotFormatStringId nFormat, ::com::sun::star::uno::Sequence< sal_Int8 >& rSeq );
- sal_Bool GetSequence( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Sequence< sal_Int8 >& rSeq );
+ sal_Bool GetSequence( SotFormatStringId nFormat, ::com::sun::star::uno::Sequence< sal_Int8 >& rSeq );
+ sal_Bool GetSequence( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Sequence< sal_Int8 >& rSeq );
- sal_Bool GetSotStorageStream( SotFormatStringId nFormat, SotStorageStreamRef& rStreamRef );
- sal_Bool GetSotStorageStream( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, SotStorageStreamRef& rStreamRef );
+ sal_Bool GetSotStorageStream( SotFormatStringId nFormat, SotStorageStreamRef& rStreamRef );
+ sal_Bool GetSotStorageStream( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, SotStorageStreamRef& rStreamRef );
sal_Bool GetInputStream( SotFormatStringId nFormat, ::com::sun::star::uno::Reference < com::sun::star::io::XInputStream >& xStream );
sal_Bool GetInputStream( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Reference < com::sun::star::io::XInputStream >& xStream );
- sal_Bool GetInterface( SotFormatStringId nFormat, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf );
- sal_Bool GetInterface( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf );
+ sal_Bool GetInterface( SotFormatStringId nFormat, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf );
+ sal_Bool GetInterface( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rIf );
public:
- static TransferableDataHelper CreateFromSystemClipboard( Window * pWindow );
- static TransferableDataHelper CreateFromSelection( Window * pWindow );
- static sal_Bool IsEqual( const ::com::sun::star::datatransfer::DataFlavor& rInternalFlavor,
+ static TransferableDataHelper CreateFromSystemClipboard( Window * pWindow );
+ static TransferableDataHelper CreateFromSelection( Window * pWindow );
+ static sal_Bool IsEqual( const ::com::sun::star::datatransfer::DataFlavor& rInternalFlavor,
const ::com::sun::star::datatransfer::DataFlavor& rRequestFlavor,
sal_Bool bCompareParameters = sal_False );
};
@@ -423,9 +423,9 @@ private:
{
private:
- DragSourceHelper& mrParent;
- void* mpDummy1;
- void* mpDummy2;
+ DragSourceHelper& mrParent;
+ void* mpDummy1;
+ void* mpDummy2;
private:
@@ -445,23 +445,23 @@ private:
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureRecognizer > mxDragGestureRecognizer;
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureListener > mxDragGestureListener;
- void* mpDummy1;
- void* mpDummy2;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureRecognizer > mxDragGestureRecognizer;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureListener > mxDragGestureListener;
+ void* mpDummy1;
+ void* mpDummy2;
// not available
DragSourceHelper();
- DragSourceHelper& operator=( const DragSourceHelper& rDragSourceHelper );
- sal_Bool operator==( const DragSourceHelper& rDragSourceHelper ) const;
+ DragSourceHelper& operator=( const DragSourceHelper& rDragSourceHelper );
+ sal_Bool operator==( const DragSourceHelper& rDragSourceHelper ) const;
public:
// to be overridden by the application
- virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
+ virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel );
DragSourceHelper( Window* pWindow );
- virtual ~DragSourceHelper();
+ virtual ~DragSourceHelper();
};
// --------------------
@@ -477,11 +477,11 @@ private:
{
private:
- DropTargetHelper& mrParent;
+ DropTargetHelper& mrParent;
AcceptDropEvent* mpLastDragOverEvent;
- void* mpDummy2;
- void* mpDummy3;
- void* mpDummy4;
+ void* mpDummy2;
+ void* mpDummy3;
+ void* mpDummy4;
private:
@@ -505,41 +505,41 @@ private:
private:
- DataFlavorExList maDummy;
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget > mxDropTarget;
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener > mxDropTargetListener;
- DataFlavorExVector* mpFormats;
- void* mpDummy1;
- void* mpDummy2;
- void* mpDummy3;
+ DataFlavorExList maDummy;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget > mxDropTarget;
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener > mxDropTargetListener;
+ DataFlavorExVector* mpFormats;
+ void* mpDummy1;
+ void* mpDummy2;
+ void* mpDummy3;
// not available
DropTargetHelper();
- DropTargetHelper& operator=( const DropTargetHelper& rDropTargetHelper );
- sal_Bool operator==( const DropTargetHelper& rDropTargetHelper ) const;
+ DropTargetHelper& operator=( const DropTargetHelper& rDropTargetHelper );
+ sal_Bool operator==( const DropTargetHelper& rDropTargetHelper ) const;
- void ImplConstruct();
+ void ImplConstruct();
// called by our own implementation of XDropTargetListener (DropTargetListener instance)
- void ImplBeginDrag( const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& rSupportedDataFlavors );
- void ImplEndDrag();
+ void ImplBeginDrag( const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& rSupportedDataFlavors );
+ void ImplEndDrag();
public:
// to be overridden by the application
- virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
- virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
+ virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
+ virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
DropTargetHelper( Window* pWindow );
DropTargetHelper( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget >& rxDropTarget );
- virtual ~DropTargetHelper();
+ virtual ~DropTargetHelper();
// typically called by the application in ::AcceptDrop and ::ExecuteDrop and (see above)
- sal_Bool IsDropFormatSupported( SotFormatStringId nFormat );
- sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ sal_Bool IsDropFormatSupported( SotFormatStringId nFormat );
+ sal_Bool IsDropFormatSupported( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; }
+ DataFlavorExVector& GetDataFlavorExVector() const {return *mpFormats; }
};
@@ -556,9 +556,9 @@ class SVT_DLLPUBLIC TransferDataContainer : public TransferableHelper
protected:
- virtual void AddSupportedFormats();
- virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
- virtual void DragFinished( sal_Int8 nDropAction );
+ virtual void AddSupportedFormats();
+ virtual sal_Bool GetData( const ::com::sun::star::datatransfer::DataFlavor& rFlavor );
+ virtual void DragFinished( sal_Int8 nDropAction );
public:
diff --git a/svtools/inc/svtools/treelist.hxx b/svtools/inc/svtools/treelist.hxx
index e8c0c075121b..3b308dc8c15e 100644
--- a/svtools/inc/svtools/treelist.hxx
+++ b/svtools/inc/svtools/treelist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,27 +38,27 @@
#include <tools/string.hxx>
#include <tools/debug.hxx>
-#define LISTACTION_INSERTED 1
+#define LISTACTION_INSERTED 1
#define LISTACTION_REMOVING 2
#define LISTACTION_REMOVED 3
-#define LISTACTION_MOVING 4
-#define LISTACTION_MOVED 5
-#define LISTACTION_CLEARING 6
-#define LISTACTION_INSERTED_TREE 7
-#define LISTACTION_INVALIDATE_ENTRY 8
-#define LISTACTION_RESORTING 9
-#define LISTACTION_RESORTED 10
-#define LISTACTION_CLEARED 11
+#define LISTACTION_MOVING 4
+#define LISTACTION_MOVED 5
+#define LISTACTION_CLEARING 6
+#define LISTACTION_INSERTED_TREE 7
+#define LISTACTION_INVALIDATE_ENTRY 8
+#define LISTACTION_RESORTING 9
+#define LISTACTION_RESORTED 10
+#define LISTACTION_CLEARED 11
#define SV_TREELIST_ROOT_ENTRY (SvListEntry*)0
-#define SV_TREELIST_ERROR 0xFFFFFFFF
+#define SV_TREELIST_ERROR 0xFFFFFFFF
// Entryflags, die an der View haengen
-#define SVLISTENTRYFLAG_SELECTED 0x0001
-#define SVLISTENTRYFLAG_EXPANDED 0x0002
-#define SVLISTENTRYFLAG_FOCUSED 0x0004
-#define SVLISTENTRYFLAG_CURSORED 0x0008
-#define SVLISTENTRYFLAG_NOT_SELECTABLE 0x0010
+#define SVLISTENTRYFLAG_SELECTED 0x0001
+#define SVLISTENTRYFLAG_EXPANDED 0x0002
+#define SVLISTENTRYFLAG_FOCUSED 0x0004
+#define SVLISTENTRYFLAG_CURSORED 0x0008
+#define SVLISTENTRYFLAG_NOT_SELECTABLE 0x0010
class SvListEntry;
@@ -81,34 +81,34 @@ friend class SvTreeList;
friend class SvListView;
private:
- SvListEntry* pParent;
- SvTreeEntryList* pChilds;
- ULONG nAbsPos;
- ULONG nListPos;
+ SvListEntry* pParent;
+ SvTreeEntryList* pChilds;
+ ULONG nAbsPos;
+ ULONG nListPos;
- void SetListPositions();
- void InvalidateChildrensListPositions()
+ void SetListPositions();
+ void InvalidateChildrensListPositions()
{
nListPos |= 0x80000000;
}
public:
SvListEntry();
SvListEntry( const SvListEntry& );
- virtual ~SvListEntry();
- BOOL HasChilds() { return (BOOL)(pChilds!=0); }
- BOOL HasChildListPos() const
+ virtual ~SvListEntry();
+ BOOL HasChilds() { return (BOOL)(pChilds!=0); }
+ BOOL HasChildListPos() const
{
if( pParent && !(pParent->nListPos & 0x80000000) )
return TRUE;
else return FALSE;
}
- ULONG GetChildListPos() const
+ ULONG GetChildListPos() const
{
if( pParent && (pParent->nListPos & 0x80000000) )
pParent->SetListPositions();
return ( nListPos & 0x7fffffff );
}
- virtual void Clone( SvListEntry* pSource );
+ virtual void Clone( SvListEntry* pSource );
};
class SvListView;
@@ -118,9 +118,9 @@ class SvViewData
friend class SvTreeList;
friend class SvListView;
- ULONG nVisPos;
+ ULONG nVisPos;
protected:
- USHORT nFlags;
+ USHORT nFlags;
public:
SvViewData();
SvViewData( const SvViewData& );
@@ -172,53 +172,53 @@ class SVT_DLLPUBLIC SvTreeList
{
friend class SvListView;
- List aViewList;
+ List aViewList;
ULONG nEntryCount;
- Link aCloneLink;
- Link aCompareLink;
- SvSortMode eSortMode;
+ Link aCloneLink;
+ Link aCompareLink;
+ SvSortMode eSortMode;
- USHORT nRefCount;
+ USHORT nRefCount;
- BOOL bAbsPositionsValid;
+ BOOL bAbsPositionsValid;
SvListEntry* FirstVisible() const { return First(); }
SvListEntry* NextVisible( const SvListView*,SvListEntry* pEntry, USHORT* pDepth=0 ) const;
- SvListEntry* PrevVisible( const SvListView*,SvListEntry* pEntry, USHORT* pDepth=0 ) const;
- SvListEntry* LastVisible( const SvListView*,USHORT* pDepth=0 ) const;
- SvListEntry* NextVisible( const SvListView*,SvListEntry* pEntry, USHORT& rDelta ) const;
- SvListEntry* PrevVisible( const SvListView*,SvListEntry* pEntry, USHORT& rDelta ) const;
+ SvListEntry* PrevVisible( const SvListView*,SvListEntry* pEntry, USHORT* pDepth=0 ) const;
+ SvListEntry* LastVisible( const SvListView*,USHORT* pDepth=0 ) const;
+ SvListEntry* NextVisible( const SvListView*,SvListEntry* pEntry, USHORT& rDelta ) const;
+ SvListEntry* PrevVisible( const SvListView*,SvListEntry* pEntry, USHORT& rDelta ) const;
- BOOL IsEntryVisible( const SvListView*,SvListEntry* pEntry ) const;
- SvListEntry* GetEntryAtVisPos( const SvListView*,ULONG nVisPos ) const;
- ULONG GetVisiblePos( const SvListView*,SvListEntry* pEntry ) const;
- ULONG GetVisibleCount( const SvListView* ) const;
- ULONG GetVisibleChildCount( const SvListView*,SvListEntry* pParent ) const;
+ BOOL IsEntryVisible( const SvListView*,SvListEntry* pEntry ) const;
+ SvListEntry* GetEntryAtVisPos( const SvListView*,ULONG nVisPos ) const;
+ ULONG GetVisiblePos( const SvListView*,SvListEntry* pEntry ) const;
+ ULONG GetVisibleCount( const SvListView* ) const;
+ ULONG GetVisibleChildCount( const SvListView*,SvListEntry* pParent ) const;
SvListEntry* FirstSelected( const SvListView*) const;
SvListEntry* NextSelected( const SvListView*,SvListEntry* pEntry ) const;
- SvListEntry* PrevSelected( const SvListView*,SvListEntry* pEntry ) const;
- SvListEntry* LastSelected( const SvListView*) const;
+ SvListEntry* PrevSelected( const SvListView*,SvListEntry* pEntry ) const;
+ SvListEntry* LastSelected( const SvListView*) const;
BOOL Select( SvListView*,SvListEntry* pEntry, BOOL bSelect=TRUE );
- ULONG SelectChilds( SvListView*,SvListEntry* pParent, BOOL bSelect );
- void SelectAll( SvListView*,BOOL bSelect ); // ruft nicht Select-Hdl
- ULONG GetChildSelectionCount( const SvListView*,SvListEntry* pParent ) const;
+ ULONG SelectChilds( SvListView*,SvListEntry* pParent, BOOL bSelect );
+ void SelectAll( SvListView*,BOOL bSelect ); // ruft nicht Select-Hdl
+ ULONG GetChildSelectionCount( const SvListView*,SvListEntry* pParent ) const;
void Expand( SvListView*,SvListEntry* pParent );
void Collapse( SvListView*,SvListEntry* pParent );
- SVT_DLLPRIVATE void SetAbsolutePositions();
+ SVT_DLLPRIVATE void SetAbsolutePositions();
SVT_DLLPRIVATE SvTreeEntryList*CloneChilds( SvTreeEntryList* pChilds,
SvListEntry* pNewParent,
ULONG& nCloneCount ) const;
- SVT_DLLPRIVATE void SetListPositions( SvTreeEntryList* );
+ SVT_DLLPRIVATE void SetListPositions( SvTreeEntryList* );
// rPos wird bei SortModeNone nicht geaendert
- SVT_DLLPRIVATE void GetInsertionPos( SvListEntry* pEntry, SvListEntry* pParent,
+ SVT_DLLPRIVATE void GetInsertionPos( SvListEntry* pEntry, SvListEntry* pParent,
ULONG& rPos );
- SVT_DLLPRIVATE void ResortChilds( SvListEntry* pParent );
+ SVT_DLLPRIVATE void ResortChilds( SvListEntry* pParent );
protected:
@@ -229,59 +229,59 @@ public:
SvTreeList();
virtual ~SvTreeList();
- void InsertView( SvListView* );
- void RemoveView( SvListView* );
- ULONG GetViewCount() const { return aViewList.Count(); }
- SvListView* GetView(ULONG nPos) const {return (SvListView*)aViewList.GetObject(nPos);}
- void Broadcast( USHORT nActionId, SvListEntry* pEntry1=0,
+ void InsertView( SvListView* );
+ void RemoveView( SvListView* );
+ ULONG GetViewCount() const { return aViewList.Count(); }
+ SvListView* GetView(ULONG nPos) const {return (SvListView*)aViewList.GetObject(nPos);}
+ void Broadcast( USHORT nActionId, SvListEntry* pEntry1=0,
SvListEntry* pEntry2=0, ULONG nPos=0 );
// informiert alle Listener
- void InvalidateEntry( SvListEntry* );
+ void InvalidateEntry( SvListEntry* );
- ULONG GetEntryCount() const { return nEntryCount; }
+ ULONG GetEntryCount() const { return nEntryCount; }
SvListEntry* First() const;
SvListEntry* Next( SvListEntry* pEntry, USHORT* pDepth=0 ) const;
- SvListEntry* Prev( SvListEntry* pEntry, USHORT* pDepth=0 ) const;
- SvListEntry* Last( USHORT* pDepth=0 ) const;
-
- SvListEntry* FirstChild( SvListEntry* pParent ) const;
- SvListEntry* NextSibling( SvListEntry* pEntry ) const;
- SvListEntry* PrevSibling( SvListEntry* pEntry ) const;
- SvListEntry* LastSibling( SvListEntry* pEntry ) const;
-
- ULONG Insert( SvListEntry* pEntry,SvListEntry* pPar,ULONG nPos=LIST_APPEND);
- ULONG Insert( SvListEntry* pEntry,ULONG nRootPos = LIST_APPEND ) { return Insert(pEntry, pRootItem, nRootPos ); }
- void InsertTree( SvListEntry* pTree, SvListEntry* pTarget );
- void InsertTree( SvListEntry* pTree, SvListEntry* pTargetParent,
+ SvListEntry* Prev( SvListEntry* pEntry, USHORT* pDepth=0 ) const;
+ SvListEntry* Last( USHORT* pDepth=0 ) const;
+
+ SvListEntry* FirstChild( SvListEntry* pParent ) const;
+ SvListEntry* NextSibling( SvListEntry* pEntry ) const;
+ SvListEntry* PrevSibling( SvListEntry* pEntry ) const;
+ SvListEntry* LastSibling( SvListEntry* pEntry ) const;
+
+ ULONG Insert( SvListEntry* pEntry,SvListEntry* pPar,ULONG nPos=LIST_APPEND);
+ ULONG Insert( SvListEntry* pEntry,ULONG nRootPos = LIST_APPEND ) { return Insert(pEntry, pRootItem, nRootPos ); }
+ void InsertTree( SvListEntry* pTree, SvListEntry* pTarget );
+ void InsertTree( SvListEntry* pTree, SvListEntry* pTargetParent,
ULONG nListPos );
// Entries muessen im gleichen Model stehen!
void Move( SvListEntry* pSource, SvListEntry* pTarget );
// erzeugt ggf. Child-List
- ULONG Move( SvListEntry* pSource, SvListEntry* pTargetParent,
+ ULONG Move( SvListEntry* pSource, SvListEntry* pTargetParent,
ULONG nListPos);
- void Copy( SvListEntry* pSource, SvListEntry* pTarget );
- ULONG Copy( SvListEntry* pSource, SvListEntry* pTargetParent,
+ void Copy( SvListEntry* pSource, SvListEntry* pTarget );
+ ULONG Copy( SvListEntry* pSource, SvListEntry* pTargetParent,
ULONG nListPos);
BOOL Remove( SvListEntry* pEntry );
void Clear();
- BOOL HasChilds( SvListEntry* pEntry ) const;
- BOOL HasParent( SvListEntry* pEntry ) const { return (BOOL)(pEntry->pParent!=pRootItem); }
- BOOL IsChild( SvListEntry* pParent, SvListEntry* pChild ) const;
- BOOL IsInChildList( SvListEntry* pParent, SvListEntry* pChild) const;
- SvListEntry* GetEntry( SvListEntry* pParent, ULONG nPos ) const;
- SvListEntry* GetEntry( ULONG nRootPos ) const;
- SvListEntry* GetEntryAtAbsPos( ULONG nAbsPos ) const;
- SvListEntry* GetParent( SvListEntry* pEntry ) const;
- SvListEntry* GetRootLevelParent( SvListEntry* pEntry ) const;
+ BOOL HasChilds( SvListEntry* pEntry ) const;
+ BOOL HasParent( SvListEntry* pEntry ) const { return (BOOL)(pEntry->pParent!=pRootItem); }
+ BOOL IsChild( SvListEntry* pParent, SvListEntry* pChild ) const;
+ BOOL IsInChildList( SvListEntry* pParent, SvListEntry* pChild) const;
+ SvListEntry* GetEntry( SvListEntry* pParent, ULONG nPos ) const;
+ SvListEntry* GetEntry( ULONG nRootPos ) const;
+ SvListEntry* GetEntryAtAbsPos( ULONG nAbsPos ) const;
+ SvListEntry* GetParent( SvListEntry* pEntry ) const;
+ SvListEntry* GetRootLevelParent( SvListEntry* pEntry ) const;
SvTreeEntryList* GetChildList( SvListEntry* pParent ) const;
- ULONG GetAbsPos( SvListEntry* pEntry ) const;
- ULONG GetRelPos( SvListEntry* pChild ) const { return pChild->GetChildListPos(); }
- ULONG GetChildCount( SvListEntry* pParent ) const;
+ ULONG GetAbsPos( SvListEntry* pEntry ) const;
+ ULONG GetRelPos( SvListEntry* pChild ) const { return pChild->GetChildListPos(); }
+ ULONG GetChildCount( SvListEntry* pParent ) const;
USHORT GetDepth( SvListEntry* pEntry ) const;
- BOOL IsAtRootDepth( SvListEntry* pEntry ) const { return (BOOL)(pEntry->pParent==pRootItem); }
+ BOOL IsAtRootDepth( SvListEntry* pEntry ) const { return (BOOL)(pEntry->pParent==pRootItem); }
// das Model ruft zum Clonen von Entries den Clone-Link auf,
// damit man sich nicht vom Model ableiten muss, wenn man
@@ -289,23 +289,23 @@ public:
// Deklaration des Clone-Handlers:
// DECL_LINK(CloneHdl,SvListEntry*);
// der Handler muss einen SvListEntry* zurueckgeben
- SvListEntry* Clone( SvListEntry* pEntry, ULONG& nCloneCount ) const;
- void SetCloneLink( const Link& rLink ) { aCloneLink=rLink; }
- const Link& GetCloneLink() const { return aCloneLink; }
+ SvListEntry* Clone( SvListEntry* pEntry, ULONG& nCloneCount ) const;
+ void SetCloneLink( const Link& rLink ) { aCloneLink=rLink; }
+ const Link& GetCloneLink() const { return aCloneLink; }
virtual SvListEntry* CloneEntry( SvListEntry* ) const; // ruft den Clone-Link
virtual SvListEntry* CreateEntry() const; // zum 'new'en von Entries
- USHORT GetRefCount() const { return nRefCount; }
- void SetRefCount( USHORT nRef ) { nRefCount = nRef; }
+ USHORT GetRefCount() const { return nRefCount; }
+ void SetRefCount( USHORT nRef ) { nRefCount = nRef; }
- void SetSortMode( SvSortMode eMode ) { eSortMode = eMode; }
- SvSortMode GetSortMode() const { return eSortMode; }
+ void SetSortMode( SvSortMode eMode ) { eSortMode = eMode; }
+ SvSortMode GetSortMode() const { return eSortMode; }
virtual StringCompare Compare( SvListEntry*, SvListEntry* ) const;
- void SetCompareHdl( const Link& rLink ) { aCompareLink = rLink; }
- const Link& GetCompareHdl() const { return aCompareLink; }
- void Resort();
+ void SetCompareHdl( const Link& rLink ) { aCompareLink = rLink; }
+ const Link& GetCompareHdl() const { return aCompareLink; }
+ void Resort();
- void CheckIntegrity() const;
+ void CheckIntegrity() const;
};
class SVT_DLLPUBLIC SvListView
@@ -313,16 +313,16 @@ class SVT_DLLPUBLIC SvListView
friend class SvTreeList;
ULONG nVisibleCount;
- ULONG nSelectionCount;
+ ULONG nSelectionCount;
BOOL bVisPositionsValid;
- SVT_DLLPRIVATE void InitTable();
- SVT_DLLPRIVATE void ClearTable();
- SVT_DLLPRIVATE void RemoveViewData( SvListEntry* pParent );
+ SVT_DLLPRIVATE void InitTable();
+ SVT_DLLPRIVATE void ClearTable();
+ SVT_DLLPRIVATE void RemoveViewData( SvListEntry* pParent );
protected:
- Table aDataTable; // Mapping SvListEntry -> ViewData
- SvTreeList* pModel;
+ Table aDataTable; // Mapping SvListEntry -> ViewData
+ SvTreeList* pModel;
void ActionMoving( SvListEntry* pEntry,SvListEntry* pTargetPrnt,ULONG nChildPos);
void ActionMoved( SvListEntry* pEntry,SvListEntry* pTargetPrnt,ULONG nChildPos);
@@ -338,54 +338,54 @@ public:
SvListView( SvTreeList* pModel );
virtual ~SvListView();
void Clear();
- SvTreeList* GetModel() const { return pModel; }
- virtual void SetModel( SvTreeList* );
- virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
+ SvTreeList* GetModel() const { return pModel; }
+ virtual void SetModel( SvTreeList* );
+ virtual void ModelNotification( USHORT nActionId, SvListEntry* pEntry1,
SvListEntry* pEntry2, ULONG nPos );
- ULONG GetVisibleCount() const { return pModel->GetVisibleCount( (SvListView*)this );}
+ ULONG GetVisibleCount() const { return pModel->GetVisibleCount( (SvListView*)this );}
SvListEntry* FirstVisible() const { return pModel->FirstVisible(); }
SvListEntry* NextVisible( SvListEntry* pEntry, USHORT* pDepth=0 ) const {return pModel->NextVisible(this,pEntry,pDepth); }
- SvListEntry* PrevVisible( SvListEntry* pEntry, USHORT* pDepth=0 ) const {return pModel->PrevVisible(this,pEntry,pDepth); }
- SvListEntry* LastVisible( USHORT* pDepth=0 ) const { return pModel->LastVisible(this,pDepth);}
- SvListEntry* NextVisible( SvListEntry* pEntry, USHORT& rDelta ) const { return pModel->NextVisible(this,pEntry,rDelta); }
- SvListEntry* PrevVisible( SvListEntry* pEntry, USHORT& rDelta ) const { return pModel->PrevVisible(this,pEntry,rDelta); }
+ SvListEntry* PrevVisible( SvListEntry* pEntry, USHORT* pDepth=0 ) const {return pModel->PrevVisible(this,pEntry,pDepth); }
+ SvListEntry* LastVisible( USHORT* pDepth=0 ) const { return pModel->LastVisible(this,pDepth);}
+ SvListEntry* NextVisible( SvListEntry* pEntry, USHORT& rDelta ) const { return pModel->NextVisible(this,pEntry,rDelta); }
+ SvListEntry* PrevVisible( SvListEntry* pEntry, USHORT& rDelta ) const { return pModel->PrevVisible(this,pEntry,rDelta); }
ULONG GetSelectionCount() const { return nSelectionCount; }
- SvListEntry* FirstSelected() const { return pModel->FirstSelected(this);}
+ SvListEntry* FirstSelected() const { return pModel->FirstSelected(this);}
SvListEntry* NextSelected( SvListEntry* pEntry ) const { return pModel->NextSelected(this,pEntry); }
- SvListEntry* PrevSelected( SvListEntry* pEntry ) const { return pModel->PrevSelected(this,pEntry); }
- SvListEntry* LastSelected() const { return pModel->LastSelected(this); }
- SvListEntry* GetEntryAtVisPos( ULONG nVisPos ) const { return pModel->GetEntryAtVisPos((SvListView*)this,nVisPos); }
- ULONG GetVisiblePos( SvListEntry* pEntry ) const { return pModel->GetVisiblePos((SvListView*)this,pEntry); }
+ SvListEntry* PrevSelected( SvListEntry* pEntry ) const { return pModel->PrevSelected(this,pEntry); }
+ SvListEntry* LastSelected() const { return pModel->LastSelected(this); }
+ SvListEntry* GetEntryAtVisPos( ULONG nVisPos ) const { return pModel->GetEntryAtVisPos((SvListView*)this,nVisPos); }
+ ULONG GetVisiblePos( SvListEntry* pEntry ) const { return pModel->GetVisiblePos((SvListView*)this,pEntry); }
- ULONG GetVisibleChildCount(SvListEntry* pParent ) const { return pModel->GetVisibleChildCount((SvListView*)this,pParent); }
- ULONG GetChildSelectionCount( SvListEntry* pParent ) const { return pModel->GetChildSelectionCount((SvListView*)this,pParent); }
+ ULONG GetVisibleChildCount(SvListEntry* pParent ) const { return pModel->GetVisibleChildCount((SvListView*)this,pParent); }
+ ULONG GetChildSelectionCount( SvListEntry* pParent ) const { return pModel->GetChildSelectionCount((SvListView*)this,pParent); }
void Expand( SvListEntry* pParent ) { pModel->Expand((SvListView*)this,pParent); }
void Collapse( SvListEntry* pParent ) { pModel->Collapse((SvListView*)this,pParent); }
BOOL Select( SvListEntry* pEntry, BOOL bSelect=TRUE ) { return pModel->Select((SvListView*)this,pEntry,bSelect); }
- ULONG SelectChilds( SvListEntry* pParent, BOOL bSelect ) { return pModel->SelectChilds((SvListView*)this,pParent, bSelect); }
+ ULONG SelectChilds( SvListEntry* pParent, BOOL bSelect ) { return pModel->SelectChilds((SvListView*)this,pParent, bSelect); }
// ruft nicht Select-Hdl
- virtual void SelectAll( BOOL bSelect, BOOL ) { pModel->SelectAll((SvListView*)this, bSelect); }
- BOOL IsEntryVisible( SvListEntry* pEntry ) const { return pModel->IsEntryVisible((SvListView*)this,pEntry); }
- BOOL IsExpanded( SvListEntry* pEntry ) const;
- BOOL IsSelected( SvListEntry* pEntry ) const;
- BOOL HasEntryFocus( SvListEntry* pEntry ) const;
- void SetEntryFocus( SvListEntry* pEntry, BOOL bFocus ) const;
- SvViewData* GetViewData( SvListEntry* pEntry ) const;
- BOOL HasViewData() const { return aDataTable.Count() > 1;} // eine ROOT gibts immer
- virtual SvViewData* CreateViewData( SvListEntry* pEntry );
- virtual void InitViewData( SvViewData*, SvListEntry* pEntry );
-
- virtual void ModelHasCleared();
- virtual void ModelHasInserted( SvListEntry* pEntry );
- virtual void ModelHasInsertedTree( SvListEntry* pEntry );
- virtual void ModelIsMoving( SvListEntry* pSource, SvListEntry* pTargetParent,
- ULONG nPos );
- virtual void ModelHasMoved( SvListEntry* pSource );
- virtual void ModelIsRemoving( SvListEntry* pEntry );
- virtual void ModelHasRemoved( SvListEntry* pEntry );
- virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
+ virtual void SelectAll( BOOL bSelect, BOOL ) { pModel->SelectAll((SvListView*)this, bSelect); }
+ BOOL IsEntryVisible( SvListEntry* pEntry ) const { return pModel->IsEntryVisible((SvListView*)this,pEntry); }
+ BOOL IsExpanded( SvListEntry* pEntry ) const;
+ BOOL IsSelected( SvListEntry* pEntry ) const;
+ BOOL HasEntryFocus( SvListEntry* pEntry ) const;
+ void SetEntryFocus( SvListEntry* pEntry, BOOL bFocus ) const;
+ SvViewData* GetViewData( SvListEntry* pEntry ) const;
+ BOOL HasViewData() const { return aDataTable.Count() > 1;} // eine ROOT gibts immer
+ virtual SvViewData* CreateViewData( SvListEntry* pEntry );
+ virtual void InitViewData( SvViewData*, SvListEntry* pEntry );
+
+ virtual void ModelHasCleared();
+ virtual void ModelHasInserted( SvListEntry* pEntry );
+ virtual void ModelHasInsertedTree( SvListEntry* pEntry );
+ virtual void ModelIsMoving( SvListEntry* pSource, SvListEntry* pTargetParent,
+ ULONG nPos );
+ virtual void ModelHasMoved( SvListEntry* pSource );
+ virtual void ModelIsRemoving( SvListEntry* pEntry );
+ virtual void ModelHasRemoved( SvListEntry* pEntry );
+ virtual void ModelHasEntryInvalidated( SvListEntry* pEntry );
};
inline BOOL SvListView::IsExpanded( SvListEntry* pEntry ) const
@@ -469,41 +469,41 @@ inline SvListEntry* SvTreeList::GetParent( SvListEntry* pEntry ) const
return pParent;
}
-#define DECLARE_SVTREELIST( ClassName, Type ) \
-class ClassName : public SvTreeList \
+#define DECLARE_SVTREELIST( ClassName, Type ) \
+class ClassName : public SvTreeList \
{ \
public: \
- Type First() const \
+ Type First() const \
{ return (Type)SvTreeList::First(); } \
- Type Next( SvListEntry* pEntry, USHORT* pDepth=0 ) const \
+ Type Next( SvListEntry* pEntry, USHORT* pDepth=0 ) const \
{ return (Type)SvTreeList::Next(pEntry,pDepth); } \
- Type Prev( SvListEntry* pEntry, USHORT* pDepth=0 ) const \
+ Type Prev( SvListEntry* pEntry, USHORT* pDepth=0 ) const \
{ return (Type)SvTreeList::Prev(pEntry,pDepth); } \
- Type Last( USHORT* pDepth=0 ) const \
- { return (Type)SvTreeList::Last(pDepth); } \
+ Type Last( USHORT* pDepth=0 ) const \
+ { return (Type)SvTreeList::Last(pDepth); } \
\
- Type Clone( SvListEntry* pEntry, ULONG& nCloneCount ) const \
+ Type Clone( SvListEntry* pEntry, ULONG& nCloneCount ) const \
{ return (Type)SvTreeList::Clone(pEntry,nCloneCount); } \
- Type GetEntry( SvListEntry* pParent, ULONG nPos ) const \
+ Type GetEntry( SvListEntry* pParent, ULONG nPos ) const \
{ return (Type)SvTreeList::GetEntry(pParent,nPos); } \
- Type GetEntry( ULONG nRootPos ) const \
+ Type GetEntry( ULONG nRootPos ) const \
{ return (Type)SvTreeList::GetEntry(nRootPos); } \
- Type GetParent( SvListEntry* pEntry ) const \
+ Type GetParent( SvListEntry* pEntry ) const \
{ return (Type)SvTreeList::GetParent(pEntry); } \
using SvTreeList::FirstChild; \
- Type FirstChild( Type pParent ) const \
- { return (Type)SvTreeList::FirstChild(pParent); } \
+ Type FirstChild( Type pParent ) const \
+ { return (Type)SvTreeList::FirstChild(pParent); } \
using SvTreeList::NextSibling; \
- Type NextSibling( Type pEntry ) const \
- { return (Type)SvTreeList::NextSibling(pEntry); } \
+ Type NextSibling( Type pEntry ) const \
+ { return (Type)SvTreeList::NextSibling(pEntry); } \
using SvTreeList::PrevSibling; \
- Type PrevSibling( Type pEntry ) const \
- { return (Type)SvTreeList::PrevSibling(pEntry); } \
+ Type PrevSibling( Type pEntry ) const \
+ { return (Type)SvTreeList::PrevSibling(pEntry); } \
using SvTreeList::LastSibling; \
- Type LastSibling( Type pEntry ) const \
- { return (Type)SvTreeList::LastSibling(pEntry); } \
- Type GetEntryAtAbsPos( ULONG nAbsPos ) const \
- { return (Type)SvTreeList::GetEntryAtAbsPos( nAbsPos); } \
+ Type LastSibling( Type pEntry ) const \
+ { return (Type)SvTreeList::LastSibling(pEntry); } \
+ Type GetEntryAtAbsPos( ULONG nAbsPos ) const \
+ { return (Type)SvTreeList::GetEntryAtAbsPos( nAbsPos); } \
};
#endif
diff --git a/svtools/inc/svtools/ttprops.hxx b/svtools/inc/svtools/ttprops.hxx
index 5c417e887aee..50877d98e0e2 100644
--- a/svtools/inc/svtools/ttprops.hxx
+++ b/svtools/inc/svtools/ttprops.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,30 +38,30 @@ class SfxPoolItem;
class Bitmap;
// Defines zur Steuerung der Ausführung von Slots
-#define EXECUTE_NO 0
-#define EXECUTE_POSSIBLE 1
-#define EXECUTE_YES 2
-#define EXECUTEMODE_ASYNCHRON 1
-#define EXECUTEMODE_DIALOGASYNCHRON 2
+#define EXECUTE_NO 0
+#define EXECUTE_POSSIBLE 1
+#define EXECUTE_YES 2
+#define EXECUTEMODE_ASYNCHRON 1
+#define EXECUTEMODE_DIALOGASYNCHRON 2
-#define SFX_USE_BINDINGS 0x8000
+#define SFX_USE_BINDINGS 0x8000
// Property Requests(PR)
-#define TT_PR_ONCE 0x100
+#define TT_PR_ONCE 0x100
-#define TT_PR_SLOTS ( 0x001 | TT_PR_ONCE )
+#define TT_PR_SLOTS ( 0x001 | TT_PR_ONCE )
#define TT_PR_DISPATCHER (0x002 )
-#define TT_PR_IMG ( 0x004 )
+#define TT_PR_IMG ( 0x004 )
-#define TT_PR_ERR_NODISPATCHER 01
-#define TT_PR_ERR_NOEXECUTE 02
+#define TT_PR_ERR_NODISPATCHER 01
+#define TT_PR_ERR_NOEXECUTE 02
-/// To detect inconsistencies
-#define TT_PROPERTIES_VERSION 1
+/// To detect inconsistencies
+#define TT_PROPERTIES_VERSION 1
class SVT_DLLPUBLIC TTProperties : public ApplicationProperty
{
- USHORT nDonePRs; // Verwaltung für die Properties, die nur einmal gerufen werden mussen.
+ USHORT nDonePRs; // Verwaltung für die Properties, die nur einmal gerufen werden mussen.
SVT_DLLPRIVATE BOOL RequestProperty( USHORT nRequest );
BOOL HasSlots(){ return nPropertyVersion == TT_PROPERTIES_VERSION; }
@@ -100,7 +100,7 @@ public:
ULONG nSidReferer;
USHORT nActualPR;
- USHORT nPropertyVersion; // Wird bei jedem call gesetzt.
+ USHORT nPropertyVersion; // Wird bei jedem call gesetzt.
};
#endif // _SVTOOLS_TTPROPS_HXX
diff --git a/svtools/inc/svtools/unitconv.hxx b/svtools/inc/svtools/unitconv.hxx
index 184ba1d58084..c4630e9e97e1 100644
--- a/svtools/inc/svtools/unitconv.hxx
+++ b/svtools/inc/svtools/unitconv.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,27 +44,27 @@ typedef long (*FUNC_CONVERT)(long);
// Functions -------------------------------------------------------------
-SVT_DLLPUBLIC void SetFieldUnit( MetricField& rCtrl, FieldUnit eUnit, BOOL bAll = FALSE );
-SVT_DLLPUBLIC void SetFieldUnit( MetricBox& rCtrl, FieldUnit eUnit, BOOL bAll = FALSE );
+SVT_DLLPUBLIC void SetFieldUnit( MetricField& rCtrl, FieldUnit eUnit, BOOL bAll = FALSE );
+SVT_DLLPUBLIC void SetFieldUnit( MetricBox& rCtrl, FieldUnit eUnit, BOOL bAll = FALSE );
-SVT_DLLPUBLIC long CalcToUnit( float nIn, SfxMapUnit eUnit );
-SVT_DLLPUBLIC long CalcToPoint( long nIn, SfxMapUnit eUnit, USHORT nFaktor );
+SVT_DLLPUBLIC long CalcToUnit( float nIn, SfxMapUnit eUnit );
+SVT_DLLPUBLIC long CalcToPoint( long nIn, SfxMapUnit eUnit, USHORT nFaktor );
-SVT_DLLPUBLIC long ItemToControl( long nIn, SfxMapUnit eItem, SfxFieldUnit eCtrl );
-SVT_DLLPUBLIC long ControlToItem( long nIn, SfxFieldUnit eCtrl, SfxMapUnit eItem );
+SVT_DLLPUBLIC long ItemToControl( long nIn, SfxMapUnit eItem, SfxFieldUnit eCtrl );
+SVT_DLLPUBLIC long ControlToItem( long nIn, SfxFieldUnit eCtrl, SfxMapUnit eItem );
-SVT_DLLPUBLIC FieldUnit MapToFieldUnit( const SfxMapUnit eUnit );
-SVT_DLLPUBLIC MapUnit FieldToMapUnit( const SfxFieldUnit eUnit );
+SVT_DLLPUBLIC FieldUnit MapToFieldUnit( const SfxMapUnit eUnit );
+SVT_DLLPUBLIC MapUnit FieldToMapUnit( const SfxFieldUnit eUnit );
-SVT_DLLPUBLIC long ConvertValueToMap( long nVal, SfxMapUnit eUnit );
-SVT_DLLPUBLIC long ConvertValueToUnit( long nVal, SfxMapUnit eUnit );
+SVT_DLLPUBLIC long ConvertValueToMap( long nVal, SfxMapUnit eUnit );
+SVT_DLLPUBLIC long ConvertValueToUnit( long nVal, SfxMapUnit eUnit );
-SVT_DLLPUBLIC void SetMetricValue( MetricField& rField, long lCoreValue, SfxMapUnit eUnit );
-SVT_DLLPUBLIC long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit );
+SVT_DLLPUBLIC void SetMetricValue( MetricField& rField, long lCoreValue, SfxMapUnit eUnit );
+SVT_DLLPUBLIC long GetCoreValue( const MetricField& rField, SfxMapUnit eUnit );
-SVT_DLLPUBLIC long PointToTwips( long nIn );
+SVT_DLLPUBLIC long PointToTwips( long nIn );
-SVT_DLLPUBLIC long TransformMetric( long nVal, FieldUnit aOld, FieldUnit aNew );
+SVT_DLLPUBLIC long TransformMetric( long nVal, FieldUnit aOld, FieldUnit aNew );
#endif
diff --git a/svtools/inc/svtools/urlcontrol.hxx b/svtools/inc/svtools/urlcontrol.hxx
index f5fd8df8150b..6449781fdcf2 100644
--- a/svtools/inc/svtools/urlcontrol.hxx
+++ b/svtools/inc/svtools/urlcontrol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,19 +43,19 @@ namespace svt
class SVT_DLLPUBLIC OFileURLControl : public SvtURLBox
{
protected:
- String m_sPreservedText;
+ String m_sPreservedText;
public:
OFileURLControl(Window* _pParent);
OFileURLControl(Window* _pParent, const ResId& _rId);
protected:
- virtual long PreNotify( NotifyEvent& rNEvt );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // SVTOOLS_URLCONTROL_HXX
diff --git a/svtools/inc/svtools/valueset.hxx b/svtools/inc/svtools/valueset.hxx
index 3efc512728eb..98072c2da792 100644
--- a/svtools/inc/svtools/valueset.hxx
+++ b/svtools/inc/svtools/valueset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,24 +76,24 @@ class ListBox
WinBits
-WB_RADIOSEL Wenn dieses Flag gesetzt wird, wird im ValueSet die
+WB_RADIOSEL Wenn dieses Flag gesetzt wird, wird im ValueSet die
Selektion so gezeichnet, wie bei einem ImageRadioButton.
Dies ist jedoch nur sinnvoll, wenn die Images min. 8 Pixel
in horizontaler und vertikaler Richtung kleiner sind
als der Item-Bereich, WB_DOUBLEBORDER gesetzt ist und
als Color COL_WINDOWWORKSPACE gesetzt ist.
-WB_FLATVALUESET Flat Look (if you set WB_ITEMBORDER or WB_DOUBLEBORDER,
+WB_FLATVALUESET Flat Look (if you set WB_ITEMBORDER or WB_DOUBLEBORDER,
then you get extra border space, but the Borders
aren't painted),
-WB_ITEMBORDER Die Items werden umrandet
-WB_DOUBLEBORDER Die Items werden doppelt umrandet. Zusaetzlich muss
+WB_ITEMBORDER Die Items werden umrandet
+WB_DOUBLEBORDER Die Items werden doppelt umrandet. Zusaetzlich muss
WB_ITEMBORDER gesetzt werden, ansonsten hat dieses
WinBit keine Auswirkung. Gebraucht wird dies, wenn man
Items mit weissem Hintergrund hat, da sonst der 3D Effekt
nicht mehr sichtbar ist.
-WB_NAMEFIELD Es gibt ein Namensfeld, wo der Name eines Items
+WB_NAMEFIELD Es gibt ein Namensfeld, wo der Name eines Items
mit angezeigt wird
-WB_NONEFIELD Es gibt ein NoSelection-Feld. Dieses kann selektiert
+WB_NONEFIELD Es gibt ein NoSelection-Feld. Dieses kann selektiert
werden, wenn bei SelectItem 0 uebergeben wird. Bei
GetSelectItemId() wird entsprechend 0 zurueckgegeben
wenn dieses Feld selektiert ist, bzw. keines selektiert
@@ -101,14 +101,14 @@ WB_NONEFIELD Es gibt ein NoSelection-Feld. Dieses kann selektiert
gesetzt wurde, bzw. keinen, wenn kein Text gesetzt
wurde. Mit SetNoSelection() kann die Selektion ganz
ausgeschaltet werden.
-WB_VSCROLL Es wird immer ein ScrollBar angezeigt. Wenn dieses Flag
+WB_VSCROLL Es wird immer ein ScrollBar angezeigt. Wenn dieses Flag
gesetzt wird, muss auch immer mit SetLineCount() die
sichtbare Anzahl der Zeilen eingestellt werden.
-WB_BORDER Um das Fenster wird ein Border gezeichnet.
-WB_NOPOINTERFOCUS Der Focus wird sich nicht geholt, wenn mit der Maus in
+WB_BORDER Um das Fenster wird ein Border gezeichnet.
+WB_NOPOINTERFOCUS Der Focus wird sich nicht geholt, wenn mit der Maus in
das Control geklickt wird.
-WB_TABSTOP Mit der TabTaste kann in das ValueSet gesprungen werden.
-WB_NOTABSTOP Mit der TabTaste kann nicht in das ValueSet gesprungen
+WB_TABSTOP Mit der TabTaste kann in das ValueSet gesprungen werden.
+WB_NOTABSTOP Mit der TabTaste kann nicht in das ValueSet gesprungen
werden.
WB_NO_DIRECTSELECT Cursor travelling doesn't call select immediately. To
execute the selection <RETURN> has to be pressed.
@@ -199,7 +199,7 @@ wird, sollte in jedem Fall HideDropPos() gerufen werden.
Mit SetItemBits() koennen Flags an einem Item gesetzt werden. Folgende
Flags sind zur Zeit vorgesehen:
-VIB_NODOUBLECLICK Jeder Klick fuehrt zu einer Select-Aktion. Der
+VIB_NODOUBLECLICK Jeder Klick fuehrt zu einer Select-Aktion. Der
Doppelklick-Handler wird in diesem Fall nie
gerufen.
@@ -215,94 +215,94 @@ gewuenschten WinBits (vor Show) mit SetStyle() gesetzt werden.
// - ValueSet-Item-Typen -
// -----------------------
-#define VIB_NODOUBLECLICK ((USHORT)0x0080)
+#define VIB_NODOUBLECLICK ((USHORT)0x0080)
// ------------------
// - ValueSet-Typen -
// ------------------
-#define WB_RADIOSEL ((WinBits)0x00008000)
-#define WB_ITEMBORDER ((WinBits)0x00010000)
-#define WB_DOUBLEBORDER ((WinBits)0x00020000)
-#define WB_NAMEFIELD ((WinBits)0x00040000)
-#define WB_NONEFIELD ((WinBits)0x00080000)
-#define WB_FLATVALUESET ((WinBits)0x02000000)
+#define WB_RADIOSEL ((WinBits)0x00008000)
+#define WB_ITEMBORDER ((WinBits)0x00010000)
+#define WB_DOUBLEBORDER ((WinBits)0x00020000)
+#define WB_NAMEFIELD ((WinBits)0x00040000)
+#define WB_NONEFIELD ((WinBits)0x00080000)
+#define WB_FLATVALUESET ((WinBits)0x02000000)
#define WB_NO_DIRECTSELECT ((WinBits)0x04000000)
-#define WB_MENUSTYLEVALUESET ((WinBits)0x08000000)
+#define WB_MENUSTYLEVALUESET ((WinBits)0x08000000)
// ------------
// - ValueSet -
// ------------
-#define VALUESET_APPEND ((USHORT)0xFFFF)
-#define VALUESET_ITEM_NOTFOUND ((USHORT)0xFFFF)
+#define VALUESET_APPEND ((USHORT)0xFFFF)
+#define VALUESET_ITEM_NOTFOUND ((USHORT)0xFFFF)
class SVT_DLLPUBLIC ValueSet : public Control
{
private:
- VirtualDevice maVirDev;
- Timer maTimer;
+ VirtualDevice maVirDev;
+ Timer maTimer;
ValueSet_Impl* mpImpl;
- ValueSetItem* mpNoneItem;
- ScrollBar* mpScrBar;
- long mnTextOffset;
- long mnVisLines;
- long mnLines;
- long mnUserItemWidth;
- long mnUserItemHeight;
- USHORT mnOldItemId;
- USHORT mnSelItemId;
- USHORT mnHighItemId;
- USHORT mnDropPos;
- USHORT mnCols;
- USHORT mnCurCol;
- USHORT mnUserCols;
- USHORT mnUserVisLines;
- USHORT mnFirstLine;
- USHORT mnSpacing;
- USHORT mnFrameStyle;
- BOOL mbFormat;
- BOOL mbHighlight;
- BOOL mbSelection;
- BOOL mbNoSelection;
- BOOL mbDrawSelection;
- BOOL mbBlackSel;
- BOOL mbDoubleSel;
- BOOL mbScroll;
- BOOL mbDropPos;
- BOOL mbFullMode;
- Color maColor;
- Link maDoubleClickHdl;
- Link maSelectHdl;
+ ValueSetItem* mpNoneItem;
+ ScrollBar* mpScrBar;
+ long mnTextOffset;
+ long mnVisLines;
+ long mnLines;
+ long mnUserItemWidth;
+ long mnUserItemHeight;
+ USHORT mnOldItemId;
+ USHORT mnSelItemId;
+ USHORT mnHighItemId;
+ USHORT mnDropPos;
+ USHORT mnCols;
+ USHORT mnCurCol;
+ USHORT mnUserCols;
+ USHORT mnUserVisLines;
+ USHORT mnFirstLine;
+ USHORT mnSpacing;
+ USHORT mnFrameStyle;
+ BOOL mbFormat;
+ BOOL mbHighlight;
+ BOOL mbSelection;
+ BOOL mbNoSelection;
+ BOOL mbDrawSelection;
+ BOOL mbBlackSel;
+ BOOL mbDoubleSel;
+ BOOL mbScroll;
+ BOOL mbDropPos;
+ BOOL mbFullMode;
+ Color maColor;
+ Link maDoubleClickHdl;
+ Link maSelectHdl;
#ifdef _SV_VALUESET_CXX
friend class ValueSetAcc;
friend class ValueItemAcc;
using Control::ImplInitSettings;
using Window::ImplInit;
- SVT_DLLPRIVATE void ImplInit();
- SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
- SVT_DLLPRIVATE void ImplInitScrollBar();
+ SVT_DLLPRIVATE void ImplInit();
+ SVT_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ SVT_DLLPRIVATE void ImplInitScrollBar();
SVT_DLLPRIVATE void ImplDeleteItems();
- SVT_DLLPRIVATE void ImplFormatItem( ValueSetItem* pItem );
- SVT_DLLPRIVATE void ImplDrawItemText( const XubString& rStr );
- SVT_DLLPRIVATE void ImplDrawSelect();
- SVT_DLLPRIVATE void ImplHideSelect( USHORT nItemId );
- SVT_DLLPRIVATE void ImplHighlightItem( USHORT nItemId, BOOL bIsSelection = TRUE );
- SVT_DLLPRIVATE void ImplDrawDropPos( BOOL bShow );
- SVT_DLLPRIVATE void ImplDraw();
+ SVT_DLLPRIVATE void ImplFormatItem( ValueSetItem* pItem );
+ SVT_DLLPRIVATE void ImplDrawItemText( const XubString& rStr );
+ SVT_DLLPRIVATE void ImplDrawSelect();
+ SVT_DLLPRIVATE void ImplHideSelect( USHORT nItemId );
+ SVT_DLLPRIVATE void ImplHighlightItem( USHORT nItemId, BOOL bIsSelection = TRUE );
+ SVT_DLLPRIVATE void ImplDrawDropPos( BOOL bShow );
+ SVT_DLLPRIVATE void ImplDraw();
using Window::ImplScroll;
- SVT_DLLPRIVATE BOOL ImplScroll( const Point& rPos );
- SVT_DLLPRIVATE USHORT ImplGetItem( const Point& rPoint, BOOL bMove = FALSE ) const;
- SVT_DLLPRIVATE ValueSetItem* ImplGetItem( USHORT nPos );
- SVT_DLLPRIVATE ValueSetItem* ImplGetFirstItem();
+ SVT_DLLPRIVATE BOOL ImplScroll( const Point& rPos );
+ SVT_DLLPRIVATE USHORT ImplGetItem( const Point& rPoint, BOOL bMove = FALSE ) const;
+ SVT_DLLPRIVATE ValueSetItem* ImplGetItem( USHORT nPos );
+ SVT_DLLPRIVATE ValueSetItem* ImplGetFirstItem();
SVT_DLLPRIVATE USHORT ImplGetVisibleItemCount() const;
- SVT_DLLPRIVATE ValueSetItem* ImplGetVisibleItem( USHORT nVisiblePos );
+ SVT_DLLPRIVATE ValueSetItem* ImplGetVisibleItem( USHORT nVisiblePos );
SVT_DLLPRIVATE void ImplFireAccessibleEvent( short nEventId, const ::com::sun::star::uno::Any& rOldValue, const ::com::sun::star::uno::Any& rNewValue );
SVT_DLLPRIVATE BOOL ImplHasAccessibleListeners();
- SVT_DLLPRIVATE void ImplTracking( const Point& rPos, BOOL bRepeat );
- SVT_DLLPRIVATE void ImplEndTracking( const Point& rPos, BOOL bCancel );
+ SVT_DLLPRIVATE void ImplTracking( const Point& rPos, BOOL bRepeat );
+ SVT_DLLPRIVATE void ImplEndTracking( const Point& rPos, BOOL bCancel );
DECL_DLLPRIVATE_LINK( ImplScrollHdl, ScrollBar* );
DECL_DLLPRIVATE_LINK( ImplTimerHdl, Timer* );
#endif
@@ -313,9 +313,9 @@ private:
protected:
- BOOL StartDrag( const CommandEvent& rCEvt, Region& rRegion );
- USHORT ShowDropPos( const Point& rPos );
- void HideDropPos();
+ BOOL StartDrag( const CommandEvent& rCEvt, Region& rRegion );
+ USHORT ShowDropPos( const Point& rPos );
+ void HideDropPos();
protected:
@@ -326,105 +326,105 @@ public:
ValueSet( Window* pParent, const ResId& rResId, bool bDisableTransientChildren = false );
~ValueSet();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rMEvt );
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void Command( const CommandEvent& rCEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void GetFocus();
- virtual void LoseFocus();
- virtual void Resize();
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void StateChanged( StateChangedType nStateChange );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
-
- virtual void Select();
- virtual void DoubleClick();
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
-
- void InsertItem( USHORT nItemId, const Image& rImage,
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rMEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void GetFocus();
+ virtual void LoseFocus();
+ virtual void Resize();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ virtual void Select();
+ virtual void DoubleClick();
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+
+ void InsertItem( USHORT nItemId, const Image& rImage,
USHORT nPos = VALUESET_APPEND );
- void InsertItem( USHORT nItemId, const Color& rColor,
+ void InsertItem( USHORT nItemId, const Color& rColor,
USHORT nPos = VALUESET_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
const Image& rImage, const XubString& rStr,
USHORT nPos = VALUESET_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
const Color& rColor, const XubString& rStr,
USHORT nPos = VALUESET_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
USHORT nPos = VALUESET_APPEND );
- void InsertSpace( USHORT nItemId,
+ void InsertSpace( USHORT nItemId,
USHORT nPos = VALUESET_APPEND );
- void RemoveItem( USHORT nItemId );
-
- void CopyItems( const ValueSet& rValueSet );
- void Clear();
-
- USHORT GetItemCount() const;
- USHORT GetItemPos( USHORT nItemId ) const;
- USHORT GetItemId( USHORT nPos ) const;
- USHORT GetItemId( const Point& rPos ) const;
- Rectangle GetItemRect( USHORT nItemId ) const;
-
- void EnableFullItemMode( BOOL bFullMode = TRUE );
- BOOL IsFullItemModeEnabled() const { return mbFullMode; }
- void SetColCount( USHORT nNewCols = 1 );
- USHORT GetColCount() const { return mnUserCols; }
- void SetLineCount( USHORT nNewLines = 0 );
- USHORT GetLineCount() const { return mnUserVisLines; }
- void SetItemWidth( long nItemWidth = 0 );
- long GetItemWidth() const { return mnUserItemWidth; }
- void SetItemHeight( long nLineHeight = 0 );
- long GetItemHeight() const { return mnUserItemHeight; }
- void SetFirstLine( USHORT nNewLine = 0 );
- USHORT GetFirstLine() const { return mnFirstLine; }
-
- void SelectItem( USHORT nItemId );
- USHORT GetSelectItemId() const { return mnSelItemId; }
- BOOL IsItemSelected( USHORT nItemId ) const
+ void RemoveItem( USHORT nItemId );
+
+ void CopyItems( const ValueSet& rValueSet );
+ void Clear();
+
+ USHORT GetItemCount() const;
+ USHORT GetItemPos( USHORT nItemId ) const;
+ USHORT GetItemId( USHORT nPos ) const;
+ USHORT GetItemId( const Point& rPos ) const;
+ Rectangle GetItemRect( USHORT nItemId ) const;
+
+ void EnableFullItemMode( BOOL bFullMode = TRUE );
+ BOOL IsFullItemModeEnabled() const { return mbFullMode; }
+ void SetColCount( USHORT nNewCols = 1 );
+ USHORT GetColCount() const { return mnUserCols; }
+ void SetLineCount( USHORT nNewLines = 0 );
+ USHORT GetLineCount() const { return mnUserVisLines; }
+ void SetItemWidth( long nItemWidth = 0 );
+ long GetItemWidth() const { return mnUserItemWidth; }
+ void SetItemHeight( long nLineHeight = 0 );
+ long GetItemHeight() const { return mnUserItemHeight; }
+ void SetFirstLine( USHORT nNewLine = 0 );
+ USHORT GetFirstLine() const { return mnFirstLine; }
+
+ void SelectItem( USHORT nItemId );
+ USHORT GetSelectItemId() const { return mnSelItemId; }
+ BOOL IsItemSelected( USHORT nItemId ) const
{ return ((!mbNoSelection && (nItemId == mnSelItemId)) ? TRUE : FALSE); }
- void SetNoSelection();
- BOOL IsNoSelection() const { return mbNoSelection; }
-
- void SetItemBits( USHORT nItemId, USHORT nBits );
- USHORT GetItemBits( USHORT nItemId ) const;
- void SetItemImage( USHORT nItemId, const Image& rImage );
- Image GetItemImage( USHORT nItemId ) const;
- void SetItemColor( USHORT nItemId, const Color& rColor );
- Color GetItemColor( USHORT nItemId ) const;
- void SetItemData( USHORT nItemId, void* pData );
- void* GetItemData( USHORT nItemId ) const;
- void SetItemText( USHORT nItemId, const XubString& rStr );
- XubString GetItemText( USHORT nItemId ) const;
- void SetColor( const Color& rColor );
- void SetColor() { SetColor( Color( COL_TRANSPARENT ) ); }
- Color GetColor() const { return maColor; }
- BOOL IsColor() const { return maColor.GetTransparency() == 0; }
-
- void SetExtraSpacing( USHORT nNewSpacing );
- USHORT GetExtraSpacing() { return mnSpacing; }
-
- void Format();
-
- void StartSelection();
- void EndSelection();
-
- Size CalcWindowSizePixel( const Size& rItemSize,
+ void SetNoSelection();
+ BOOL IsNoSelection() const { return mbNoSelection; }
+
+ void SetItemBits( USHORT nItemId, USHORT nBits );
+ USHORT GetItemBits( USHORT nItemId ) const;
+ void SetItemImage( USHORT nItemId, const Image& rImage );
+ Image GetItemImage( USHORT nItemId ) const;
+ void SetItemColor( USHORT nItemId, const Color& rColor );
+ Color GetItemColor( USHORT nItemId ) const;
+ void SetItemData( USHORT nItemId, void* pData );
+ void* GetItemData( USHORT nItemId ) const;
+ void SetItemText( USHORT nItemId, const XubString& rStr );
+ XubString GetItemText( USHORT nItemId ) const;
+ void SetColor( const Color& rColor );
+ void SetColor() { SetColor( Color( COL_TRANSPARENT ) ); }
+ Color GetColor() const { return maColor; }
+ BOOL IsColor() const { return maColor.GetTransparency() == 0; }
+
+ void SetExtraSpacing( USHORT nNewSpacing );
+ USHORT GetExtraSpacing() { return mnSpacing; }
+
+ void Format();
+
+ void StartSelection();
+ void EndSelection();
+
+ Size CalcWindowSizePixel( const Size& rItemSize,
USHORT nCalcCols = 0,
USHORT nCalcLines = 0 );
- Size CalcItemSizePixel( const Size& rSize, BOOL bOut = TRUE ) const;
- long GetScrollWidth() const;
+ Size CalcItemSizePixel( const Size& rSize, BOOL bOut = TRUE ) const;
+ long GetScrollWidth() const;
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
- void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
- const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
+ const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- void SetHighlightHdl( const Link& rLink );
- const Link& GetHighlightHdl() const;
+ void SetHighlightHdl( const Link& rLink );
+ const Link& GetHighlightHdl() const;
private:
/** Determine whether RTL (right to left writing) is active. For this
@@ -439,6 +439,6 @@ private:
SVT_DLLPRIVATE bool IsRTLActive (void);
};
-#endif // _VALUESET_HXX
+#endif // _VALUESET_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/wizardmachine.hxx b/svtools/inc/svtools/wizardmachine.hxx
index ce5275d3c252..45291277fcf1 100644
--- a/svtools/inc/svtools/wizardmachine.hxx
+++ b/svtools/inc/svtools/wizardmachine.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,14 +42,14 @@ namespace svt
// wizard buttons
#define WZB_NONE 0x0000
-#define WZB_NEXT 0x0001
-#define WZB_PREVIOUS 0x0002
-#define WZB_FINISH 0x0004
-#define WZB_CANCEL 0x0008
-#define WZB_HELP 0x0010
+#define WZB_NEXT 0x0001
+#define WZB_PREVIOUS 0x0002
+#define WZB_FINISH 0x0004
+#define WZB_CANCEL 0x0008
+#define WZB_HELP 0x0010
// wizard states
-#define WZS_INVALID_STATE ((WizardState)-1)
+#define WZS_INVALID_STATE ((WizardState)-1)
//=====================================================================
//= WizardTypes
@@ -76,12 +76,12 @@ namespace svt
// We may have situations where the next page depends on the state of the current, which needs
// to be committed for this.
// So initializePage and commitPage are designated to initialitzing/committing data on the page.
- virtual void initializePage() = 0;
- virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason ) = 0;
+ virtual void initializePage() = 0;
+ virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason ) = 0;
/** determines whether or not it is allowed to advance to a next page
- You should make this dependent on the current state of the page only, not on
+ You should make this dependent on the current state of the page only, not on
states on other pages of the whole dialog.
The default implementation always returns <TRUE/>.
@@ -98,7 +98,7 @@ namespace svt
class SVT_DLLPUBLIC OWizardPage : public TabPage, public IWizardPageController
{
private:
- WizardPageImplData* m_pImpl;
+ WizardPageImplData* m_pImpl;
public:
/** @param _pParent
@@ -110,13 +110,13 @@ namespace svt
~OWizardPage();
// IWizardPageController overridables
- virtual void initializePage();
- virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason );
+ virtual void initializePage();
+ virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason );
virtual bool canAdvance() const;
protected:
// TabPage overridables
- virtual void ActivatePage();
+ virtual void ActivatePage();
/** updates the travel-related UI elements of the OWizardMachine we live in (if any)
@@ -150,10 +150,10 @@ namespace svt
{
private:
// restrict access to some aspects of our base class
- SVT_DLLPRIVATE void AddPage( TabPage* pPage ) { WizardDialog::AddPage(pPage); }
- SVT_DLLPRIVATE void RemovePage( TabPage* pPage ) { WizardDialog::RemovePage(pPage); }
- SVT_DLLPRIVATE void SetPage( USHORT nLevel, TabPage* pPage ) { WizardDialog::SetPage(nLevel, pPage); }
- // TabPage* GetPage( USHORT nLevel ) const { return WizardDialog::GetPage(nLevel); }
+ SVT_DLLPRIVATE void AddPage( TabPage* pPage ) { WizardDialog::AddPage(pPage); }
+ SVT_DLLPRIVATE void RemovePage( TabPage* pPage ) { WizardDialog::RemovePage(pPage); }
+ SVT_DLLPRIVATE void SetPage( USHORT nLevel, TabPage* pPage ) { WizardDialog::SetPage(nLevel, pPage); }
+ // TabPage* GetPage( USHORT nLevel ) const { return WizardDialog::GetPage(nLevel); }
// TODO: probably the complete page handling (next, previous etc.) should be prohibited ...
// IMPORTANT:
@@ -162,11 +162,11 @@ namespace svt
// So use the travelXXX methods if you need to travel
protected:
- OKButton* m_pFinish;
- CancelButton* m_pCancel;
- PushButton* m_pNextPage;
- PushButton* m_pPrevPage;
- HelpButton* m_pHelp;
+ OKButton* m_pFinish;
+ CancelButton* m_pCancel;
+ PushButton* m_pNextPage;
+ PushButton* m_pPrevPage;
+ HelpButton* m_pHelp;
private:
WizardMachineImplData*
@@ -188,15 +188,15 @@ namespace svt
~OWizardMachine();
/// enable (or disable) buttons
- void enableButtons(sal_uInt32 _nWizardButtonFlags, sal_Bool _bEnable);
+ void enableButtons(sal_uInt32 _nWizardButtonFlags, sal_Bool _bEnable);
/// set the default style for a button
- void defaultButton(sal_uInt32 _nWizardButtonFlags);
+ void defaultButton(sal_uInt32 _nWizardButtonFlags);
/// set the default style for a button
- void defaultButton(PushButton* _pNewDefButton);
+ void defaultButton(PushButton* _pNewDefButton);
/// set the base of the title to use - the title of the current page is appended
- void setTitleBase(const String& _rTitleBase);
- const String& getTitleBase() const;
+ void setTitleBase(const String& _rTitleBase);
+ const String& getTitleBase() const;
/// determines whether there is a next state to which we can advance
virtual bool canAdvance() const;
@@ -211,16 +211,16 @@ namespace svt
protected:
// WizardDialog overridables
- virtual void ActivatePage();
- virtual long DeactivatePage();
+ virtual void ActivatePage();
+ virtual long DeactivatePage();
// our own overridables
/// to override to create new pages
- virtual TabPage* createPage(WizardState _nState) = 0;
+ virtual TabPage* createPage(WizardState _nState) = 0;
/// will be called when a new page is about to be displayed
- virtual void enterState(WizardState _nState);
+ virtual void enterState(WizardState _nState);
/** will be called when the current state is about to be left for the given reason
@@ -246,7 +246,7 @@ namespace svt
@return
<TRUE/> if and only if the page is allowed to be left
*/
- virtual sal_Bool leaveState( WizardState _nState );
+ virtual sal_Bool leaveState( WizardState _nState );
/** determine the next state to travel from the given one
@@ -262,10 +262,10 @@ namespace svt
virtual sal_Bool onFinish();
/// travel to the next state
- sal_Bool travelNext();
+ sal_Bool travelNext();
/// travel to the previous state
- sal_Bool travelPrevious();
+ sal_Bool travelPrevious();
/** enables the automatic enabled/disabled state of the "Next" button
@@ -296,7 +296,7 @@ namespace svt
@see skipUntil
@see skipBackwardUntil
*/
- sal_Bool skip( sal_Int32 _nSteps = 1 );
+ sal_Bool skip( sal_Int32 _nSteps = 1 );
/** skips one or more states, until a given state is reached
@@ -312,7 +312,7 @@ namespace svt
@see skip
@see skipBackwardUntil
*/
- sal_Bool skipUntil( WizardState _nTargetState );
+ sal_Bool skipUntil( WizardState _nTargetState );
/** moves back one or more states, until a given state is reached
@@ -336,7 +336,7 @@ namespace svt
Vulgo, this is the identifier of the current tab page :)
*/
- WizardState getCurrentState() const { return WizardDialog::GetCurLevel(); }
+ WizardState getCurrentState() const { return WizardDialog::GetCurLevel(); }
virtual IWizardPageController*
getPageController( TabPage* _pCurrentPage ) const;
@@ -361,8 +361,8 @@ namespace svt
DECL_DLLPRIVATE_LINK(OnPrevPage, PushButton*);
DECL_DLLPRIVATE_LINK(OnFinish, PushButton*);
- SVT_DLLPRIVATE void implResetDefault(Window* _pWindow);
- SVT_DLLPRIVATE void implUpdateTitle();
+ SVT_DLLPRIVATE void implResetDefault(Window* _pWindow);
+ SVT_DLLPRIVATE void implUpdateTitle();
SVT_DLLPRIVATE void implConstruct( const sal_uInt32 _nButtonFlags );
};
@@ -386,7 +386,7 @@ namespace svt
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // _SVTOOLS_WIZARDMACHINE_HXX_
diff --git a/svtools/inc/svtools/wizdlg.hxx b/svtools/inc/svtools/wizdlg.hxx
index bbd050b39ea2..0e967bc03e5d 100644
--- a/svtools/inc/svtools/wizdlg.hxx
+++ b/svtools/inc/svtools/wizdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -209,9 +209,9 @@ IMPL_LINK( MyWizardDlg, ImplNextHdl, PushButton*, pBtn )
// - WizardDialog-Types -
// ----------------------
-#define WIZARDDIALOG_BUTTON_STDOFFSET_X 6
+#define WIZARDDIALOG_BUTTON_STDOFFSET_X 6
#define WIZARDDIALOG_BUTTON_SMALLSTDOFFSET_X 3
-#define WIZARDDIALOG_BUTTON_STDOFFSETLEFT_X -10
+#define WIZARDDIALOG_BUTTON_STDOFFSETLEFT_X -10
// ----------------
// - WizardDialog -
@@ -220,18 +220,18 @@ IMPL_LINK( MyWizardDlg, ImplNextHdl, PushButton*, pBtn )
class SVT_DLLPUBLIC WizardDialog : public ModalDialog
{
private:
- Size maPageSize;
- ImplWizPageData* mpFirstPage;
- ImplWizButtonData* mpFirstBtn;
- FixedLine* mpFixedLine;
- TabPage* mpCurTabPage;
- PushButton* mpPrevBtn;
- PushButton* mpNextBtn;
- Window* mpViewWindow;
- USHORT mnCurLevel;
- WindowAlign meViewAlign;
- Link maActivateHdl;
- Link maDeactivateHdl;
+ Size maPageSize;
+ ImplWizPageData* mpFirstPage;
+ ImplWizButtonData* mpFirstBtn;
+ FixedLine* mpFixedLine;
+ TabPage* mpCurTabPage;
+ PushButton* mpPrevBtn;
+ PushButton* mpNextBtn;
+ Window* mpViewWindow;
+ USHORT mnCurLevel;
+ WindowAlign meViewAlign;
+ Link maActivateHdl;
+ Link maDeactivateHdl;
sal_Int16 mnLeftAlignCount;
bool mbEmptyViewMargin;
@@ -251,12 +251,12 @@ protected:
#ifdef _SVT_WIZDLG_CXX
private:
- SVT_DLLPRIVATE void ImplInitData();
- SVT_DLLPRIVATE void ImplCalcSize( Size& rSize );
- SVT_DLLPRIVATE void ImplPosCtrls();
- SVT_DLLPRIVATE void ImplPosTabPage();
- SVT_DLLPRIVATE void ImplShowTabPage( TabPage* pPage );
- SVT_DLLPRIVATE TabPage* ImplGetPage( USHORT nLevel ) const;
+ SVT_DLLPRIVATE void ImplInitData();
+ SVT_DLLPRIVATE void ImplCalcSize( Size& rSize );
+ SVT_DLLPRIVATE void ImplPosCtrls();
+ SVT_DLLPRIVATE void ImplPosTabPage();
+ SVT_DLLPRIVATE void ImplShowTabPage( TabPage* pPage );
+ SVT_DLLPRIVATE TabPage* ImplGetPage( USHORT nLevel ) const;
#endif
public:
@@ -264,49 +264,49 @@ public:
WizardDialog( Window* pParent, const ResId& rResId );
~WizardDialog();
- virtual void Resize();
- virtual void StateChanged( StateChangedType nStateChange );
- virtual long Notify( NotifyEvent& rNEvt );
+ virtual void Resize();
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual long Notify( NotifyEvent& rNEvt );
- virtual void ActivatePage();
- virtual long DeactivatePage();
+ virtual void ActivatePage();
+ virtual long DeactivatePage();
- BOOL ShowPrevPage();
- BOOL ShowNextPage();
- BOOL ShowPage( USHORT nLevel );
- BOOL Finnish( long nResult = 0 );
- USHORT GetCurLevel() const { return mnCurLevel; }
+ BOOL ShowPrevPage();
+ BOOL ShowNextPage();
+ BOOL ShowPage( USHORT nLevel );
+ BOOL Finnish( long nResult = 0 );
+ USHORT GetCurLevel() const { return mnCurLevel; }
- void AddPage( TabPage* pPage );
- void RemovePage( TabPage* pPage );
- void SetPage( USHORT nLevel, TabPage* pPage );
- TabPage* GetPage( USHORT nLevel ) const;
+ void AddPage( TabPage* pPage );
+ void RemovePage( TabPage* pPage );
+ void SetPage( USHORT nLevel, TabPage* pPage );
+ TabPage* GetPage( USHORT nLevel ) const;
- void AddButton( Button* pButton, long nOffset = 0 );
- void RemoveButton( Button* pButton );
+ void AddButton( Button* pButton, long nOffset = 0 );
+ void RemoveButton( Button* pButton );
- void SetPrevButton( PushButton* pButton ) { mpPrevBtn = pButton; }
- PushButton* GetPrevButton() const { return mpPrevBtn; }
- void SetNextButton( PushButton* pButton ) { mpNextBtn = pButton; }
- PushButton* GetNextButton() const { return mpNextBtn; }
+ void SetPrevButton( PushButton* pButton ) { mpPrevBtn = pButton; }
+ PushButton* GetPrevButton() const { return mpPrevBtn; }
+ void SetNextButton( PushButton* pButton ) { mpNextBtn = pButton; }
+ PushButton* GetNextButton() const { return mpNextBtn; }
- void ShowButtonFixedLine( BOOL bVisible );
- BOOL IsButtonFixedLineVisible();
+ void ShowButtonFixedLine( BOOL bVisible );
+ BOOL IsButtonFixedLineVisible();
- void SetViewWindow( Window* pWindow ) { mpViewWindow = pWindow; }
- Window* GetViewWindow() const { return mpViewWindow; }
- void SetViewAlign( WindowAlign eAlign ) { meViewAlign = eAlign; }
- WindowAlign GetViewAlign() const { return meViewAlign; }
+ void SetViewWindow( Window* pWindow ) { mpViewWindow = pWindow; }
+ Window* GetViewWindow() const { return mpViewWindow; }
+ void SetViewAlign( WindowAlign eAlign ) { meViewAlign = eAlign; }
+ WindowAlign GetViewAlign() const { return meViewAlign; }
- void SetPageSizePixel( const Size& rSize ) { maPageSize = rSize; }
- const Size& GetPageSizePixel() const { return maPageSize; }
+ void SetPageSizePixel( const Size& rSize ) { maPageSize = rSize; }
+ const Size& GetPageSizePixel() const { return maPageSize; }
- void SetActivatePageHdl( const Link& rLink ) { maActivateHdl = rLink; }
- const Link& GetActivatePageHdl() const { return maActivateHdl; }
- void SetDeactivatePageHdl( const Link& rLink ) { maDeactivateHdl = rLink; }
- const Link& GetDeactivatePageHdl() const { return maDeactivateHdl; }
+ void SetActivatePageHdl( const Link& rLink ) { maActivateHdl = rLink; }
+ const Link& GetActivatePageHdl() const { return maActivateHdl; }
+ void SetDeactivatePageHdl( const Link& rLink ) { maDeactivateHdl = rLink; }
+ const Link& GetDeactivatePageHdl() const { return maDeactivateHdl; }
};
-#endif // _SVT_WIZDLG_HXX
+#endif // _SVT_WIZDLG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/inc/svtools/wmf.hxx b/svtools/inc/svtools/wmf.hxx
index 05461cc84ffb..52944ddb110e 100644
--- a/svtools/inc/svtools/wmf.hxx
+++ b/svtools/inc/svtools/wmf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/svtools/xtextedt.hxx b/svtools/inc/svtools/xtextedt.hxx
index cd2b5117150a..6c06cf686a85 100644
--- a/svtools/inc/svtools/xtextedt.hxx
+++ b/svtools/inc/svtools/xtextedt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,9 +32,9 @@
#include <svtools/texteng.hxx>
#include <svtools/textview.hxx>
-#define XTEXTUNDO_REPLACEALL (XTEXTUNDO_START+1)
-#define XTEXTUNDO_INDENTBLOCK 122
-#define XTEXTUNDO_UNINDENTBLOCK 123
+#define XTEXTUNDO_REPLACEALL (XTEXTUNDO_START+1)
+#define XTEXTUNDO_INDENTBLOCK 122
+#define XTEXTUNDO_UNINDENTBLOCK 123
namespace com {
namespace sun {
@@ -46,35 +46,35 @@ namespace util {
class SVT_DLLPUBLIC ExtTextEngine : public TextEngine
{
private:
- String maGroupChars;
+ String maGroupChars;
public:
ExtTextEngine();
~ExtTextEngine();
- const String& GetGroupChars() const { return maGroupChars; }
- void SetGroupChars( const String& r ) { maGroupChars = r; }
- TextSelection MatchGroup( const TextPaM& rCursor ) const;
+ const String& GetGroupChars() const { return maGroupChars; }
+ void SetGroupChars( const String& r ) { maGroupChars = r; }
+ TextSelection MatchGroup( const TextPaM& rCursor ) const;
- BOOL Search( TextSelection& rSel, const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bForward = TRUE );
+ BOOL Search( TextSelection& rSel, const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bForward = TRUE );
};
class SVT_DLLPUBLIC ExtTextView : public TextView
{
protected:
- BOOL ImpIndentBlock( BOOL bRight );
+ BOOL ImpIndentBlock( BOOL bRight );
public:
ExtTextView( ExtTextEngine* pEng, Window* pWindow );
~ExtTextView();
- BOOL MatchGroup();
+ BOOL MatchGroup();
- BOOL Search( const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bForward );
- USHORT Replace( const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bAll, BOOL bForward );
+ BOOL Search( const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bForward );
+ USHORT Replace( const ::com::sun::star::util::SearchOptions& rSearchOptions, BOOL bAll, BOOL bForward );
- BOOL IndentBlock();
- BOOL UnindentBlock();
+ BOOL IndentBlock();
+ BOOL UnindentBlock();
};
#endif // _XTEXTEDT_HXX
diff --git a/svtools/inc/svtools/xwindowitem.hxx b/svtools/inc/svtools/xwindowitem.hxx
index 8fd4184e55af..1aa5ad0b9366 100644
--- a/svtools/inc/svtools/xwindowitem.hxx
+++ b/svtools/inc/svtools/xwindowitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/sychconv.hxx b/svtools/inc/sychconv.hxx
index a7fbcf560e7c..002b1d376f92 100644
--- a/svtools/inc/sychconv.hxx
+++ b/svtools/inc/sychconv.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ class SymCharConverter
{
public:
- static BOOL Convert( Font& rFont, UniString& rString, OutputDevice* pDev = NULL );
+ static BOOL Convert( Font& rFont, UniString& rString, OutputDevice* pDev = NULL );
};
#endif // _CHARCONV_HXX
diff --git a/svtools/inc/tabbar.hxx b/svtools/inc/tabbar.hxx
index 9d5d9d4cc630..f676c113b23f 100644
--- a/svtools/inc/tabbar.hxx
+++ b/svtools/inc/tabbar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -395,9 +395,9 @@ private:
SVT_DLLPRIVATE USHORT ImplGetLastFirstPos();
SVT_DLLPRIVATE void ImplInitControls();
SVT_DLLPRIVATE void ImplEnableControls();
- SVT_DLLPRIVATE void ImplSelect();
- SVT_DLLPRIVATE void ImplActivatePage();
- SVT_DLLPRIVATE long ImplDeactivatePage();
+ SVT_DLLPRIVATE void ImplSelect();
+ SVT_DLLPRIVATE void ImplActivatePage();
+ SVT_DLLPRIVATE long ImplDeactivatePage();
SVT_DLLPRIVATE void ImplPrePaint();
SVT_DLLPRIVATE ImplTabBarItem* ImplGetLastTabBarItem( USHORT nItemCount ) const;
SVT_DLLPRIVATE Rectangle ImplGetInsertTabRect(ImplTabBarItem* pItem) const;
@@ -454,7 +454,7 @@ public:
USHORT GetPageId( const Point& rPos, bool bCheckInsTab = false ) const;
Rectangle GetPageRect( USHORT nPageId ) const;
// returns the rectangle in which page tabs are drawn
- Rectangle GetPageArea() const;
+ Rectangle GetPageArea() const;
void SetCurPageId( USHORT nPageId );
USHORT GetCurPageId() const { return mnCurPageId; }
diff --git a/svtools/inc/taskbar.hxx b/svtools/inc/taskbar.hxx
index 132fcffca546..f831010740c5 100644
--- a/svtools/inc/taskbar.hxx
+++ b/svtools/inc/taskbar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/templatefoldercache.hxx b/svtools/inc/templatefoldercache.hxx
index 9be90a0eaad6..0d7c58290449 100644
--- a/svtools/inc/templatefoldercache.hxx
+++ b/svtools/inc/templatefoldercache.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ namespace svt
class SVT_DLLPUBLIC TemplateFolderCache
{
private:
- TemplateFolderCacheImpl* m_pImpl;
+ TemplateFolderCacheImpl* m_pImpl;
public:
/** ctor.
@@ -91,7 +91,7 @@ namespace svt
@return
<TRUE/> if the template configuration needs to be updated
*/
- sal_Bool needsUpdate( sal_Bool _bForceCheck = sal_False );
+ sal_Bool needsUpdate( sal_Bool _bForceCheck = sal_False );
/** stores the current state of the template folders in the cache
@param _bForceRetrieval
@@ -99,11 +99,11 @@ namespace svt
Usually, you set this to <FALSE/>: After calling <method>needsUpdate</method>, the state is know and does not
need to be read again.
*/
- void storeState( sal_Bool _bForceRetrieval = sal_False );
+ void storeState( sal_Bool _bForceRetrieval = sal_False );
};
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
#endif // SFX2_TEMPLATEFOLDERCACHE_HXX
diff --git a/svtools/inc/templdlg.hxx b/svtools/inc/templdlg.hxx
index ba62c3ec5a89..d0a20b483d8a 100644
--- a/svtools/inc/templdlg.hxx
+++ b/svtools/inc/templdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,22 +45,22 @@ class SVT_DLLPUBLIC SvtDocumentTemplateDialog : public ModalDialog
{
private:
svt::FixedHyperlink aMoreTemplatesLink;
- FixedLine aLine;
- PushButton aManageBtn;
- PushButton aEditBtn;
- OKButton aOKBtn;
- CancelButton aCancelBtn;
- HelpButton aHelpBtn;
-
- SvtTmplDlg_Impl* pImpl;
-
- DECL_DLLPRIVATE_LINK( SelectHdl_Impl, SvtTemplateWindow* );
- DECL_DLLPRIVATE_LINK( DoubleClickHdl_Impl, SvtTemplateWindow* );
- DECL_DLLPRIVATE_LINK( NewFolderHdl_Impl, SvtTemplateWindow* );
- DECL_DLLPRIVATE_LINK( SendFocusHdl_Impl, SvtTemplateWindow* );
- DECL_DLLPRIVATE_LINK( OKHdl_Impl, PushButton* );
- DECL_DLLPRIVATE_LINK( OrganizerHdl_Impl, PushButton* );
- DECL_DLLPRIVATE_LINK( UpdateHdl_Impl, Timer* );
+ FixedLine aLine;
+ PushButton aManageBtn;
+ PushButton aEditBtn;
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
+
+ SvtTmplDlg_Impl* pImpl;
+
+ DECL_DLLPRIVATE_LINK( SelectHdl_Impl, SvtTemplateWindow* );
+ DECL_DLLPRIVATE_LINK( DoubleClickHdl_Impl, SvtTemplateWindow* );
+ DECL_DLLPRIVATE_LINK( NewFolderHdl_Impl, SvtTemplateWindow* );
+ DECL_DLLPRIVATE_LINK( SendFocusHdl_Impl, SvtTemplateWindow* );
+ DECL_DLLPRIVATE_LINK( OKHdl_Impl, PushButton* );
+ DECL_DLLPRIVATE_LINK( OrganizerHdl_Impl, PushButton* );
+ DECL_DLLPRIVATE_LINK( UpdateHdl_Impl, Timer* );
DECL_DLLPRIVATE_LINK( OpenLinkHdl_Impl, svt::FixedHyperlink* );
public:
@@ -79,8 +79,8 @@ public:
~SvtDocumentTemplateDialog();
- sal_Bool IsFileSelected( ) const;
- String GetSelectedFileURL( ) const;
+ sal_Bool IsFileSelected( ) const;
+ String GetSelectedFileURL( ) const;
void SelectTemplateFolder();
diff --git a/svtools/inc/testtool.hxx b/svtools/inc/testtool.hxx
index 5837bfaaa232..a1328cbe3579 100644
--- a/svtools/inc/testtool.hxx
+++ b/svtools/inc/testtool.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/tooltiplbox.hxx b/svtools/inc/tooltiplbox.hxx
index af01de65c316..23f1c3d090ee 100644
--- a/svtools/inc/tooltiplbox.hxx
+++ b/svtools/inc/tooltiplbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/txtattr.hxx b/svtools/inc/txtattr.hxx
index 4a1d4ea3f42e..9206374ccc5c 100644
--- a/svtools/inc/txtattr.hxx
+++ b/svtools/inc/txtattr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,10 +37,10 @@
class Font;
-#define TEXTATTR_INVALID 0
-#define TEXTATTR_FONTCOLOR 1
-#define TEXTATTR_HYPERLINK 2
-#define TEXTATTR_FONTWEIGHT 3
+#define TEXTATTR_INVALID 0
+#define TEXTATTR_FONTCOLOR 1
+#define TEXTATTR_HYPERLINK 2
+#define TEXTATTR_FONTWEIGHT 3
#define TEXTATTR_USER_START 1000 //start id for user defined text attributes
#define TEXTATTR_PROTECTED 4
@@ -49,7 +49,7 @@ class Font;
class SVT_DLLPUBLIC TextAttrib
{
private:
- USHORT mnWhich;
+ USHORT mnWhich;
protected:
TextAttrib( USHORT nWhich ) { mnWhich = nWhich; }
@@ -57,14 +57,14 @@ protected:
public:
- virtual ~TextAttrib();
+ virtual ~TextAttrib();
- USHORT Which() const { return mnWhich; }
+ USHORT Which() const { return mnWhich; }
- virtual void SetFont( Font& rFont ) const = 0;
- virtual TextAttrib* Clone() const = 0;
- virtual int operator==( const TextAttrib& rAttr ) const = 0;
- int operator!=( const TextAttrib& rAttr ) const
+ virtual void SetFont( Font& rFont ) const = 0;
+ virtual TextAttrib* Clone() const = 0;
+ virtual int operator==( const TextAttrib& rAttr ) const = 0;
+ int operator!=( const TextAttrib& rAttr ) const
{ return !(*this == rAttr ); }
};
@@ -73,34 +73,34 @@ public:
class SVT_DLLPUBLIC TextAttribFontColor : public TextAttrib
{
private:
- Color maColor;
+ Color maColor;
public:
TextAttribFontColor( const Color& rColor );
TextAttribFontColor( const TextAttribFontColor& rAttr );
~TextAttribFontColor();
-
+
const Color& GetColor() const { return maColor; }
-
- virtual void SetFont( Font& rFont ) const;
- virtual TextAttrib* Clone() const;
- virtual int operator==( const TextAttrib& rAttr ) const;
+
+ virtual void SetFont( Font& rFont ) const;
+ virtual TextAttrib* Clone() const;
+ virtual int operator==( const TextAttrib& rAttr ) const;
};
class SVT_DLLPUBLIC TextAttribFontWeight : public TextAttrib
{
private:
- FontWeight meWeight;
+ FontWeight meWeight;
public:
TextAttribFontWeight( FontWeight eWeight );
TextAttribFontWeight( const TextAttribFontWeight& rAttr );
~TextAttribFontWeight();
- virtual void SetFont( Font& rFont ) const;
- virtual TextAttrib* Clone() const;
- virtual int operator==( const TextAttrib& rAttr ) const;
+ virtual void SetFont( Font& rFont ) const;
+ virtual TextAttrib* Clone() const;
+ virtual int operator==( const TextAttrib& rAttr ) const;
inline FontWeight getFontWeight() const { return meWeight; }
};
@@ -109,9 +109,9 @@ public:
class TextAttribHyperLink : public TextAttrib
{
private:
- XubString maURL;
- XubString maDescription;
- Color maColor;
+ XubString maURL;
+ XubString maDescription;
+ Color maColor;
public:
TextAttribHyperLink( const XubString& rURL );
@@ -119,18 +119,18 @@ public:
TextAttribHyperLink( const TextAttribHyperLink& rAttr );
~TextAttribHyperLink();
- void SetURL( const XubString& rURL ) { maURL = rURL; }
- const XubString& GetURL() const { return maURL; }
+ void SetURL( const XubString& rURL ) { maURL = rURL; }
+ const XubString& GetURL() const { return maURL; }
- void SetDescription( const XubString& rDescr ) { maDescription = rDescr; }
- const XubString& GetDescription() const { return maDescription; }
+ void SetDescription( const XubString& rDescr ) { maDescription = rDescr; }
+ const XubString& GetDescription() const { return maDescription; }
- void SetColor( const Color& rColor ) { maColor = rColor; }
- const Color& GetColor() const { return maColor; }
+ void SetColor( const Color& rColor ) { maColor = rColor; }
+ const Color& GetColor() const { return maColor; }
- virtual void SetFont( Font& rFont ) const;
- virtual TextAttrib* Clone() const;
- virtual int operator==( const TextAttrib& rAttr ) const;
+ virtual void SetFont( Font& rFont ) const;
+ virtual TextAttrib* Clone() const;
+ virtual int operator==( const TextAttrib& rAttr ) const;
};
class SVT_DLLPUBLIC TextAttribProtect : public TextAttrib
@@ -139,7 +139,7 @@ public:
TextAttribProtect();
TextAttribProtect( const TextAttribProtect& rAttr );
~TextAttribProtect();
-
+
virtual void SetFont( Font& rFont ) const;
virtual TextAttrib* Clone() const;
virtual int operator==( const TextAttrib& rAttr ) const;
@@ -150,9 +150,9 @@ public:
class TextCharAttrib
{
private:
- TextAttrib* mpAttr;
- USHORT mnStart;
- USHORT mnEnd;
+ TextAttrib* mpAttr;
+ USHORT mnStart;
+ USHORT mnEnd;
protected:
@@ -162,27 +162,27 @@ public:
TextCharAttrib( const TextCharAttrib& rTextCharAttrib );
~TextCharAttrib();
- const TextAttrib& GetAttr() const { return *mpAttr; }
+ const TextAttrib& GetAttr() const { return *mpAttr; }
- USHORT Which() const { return mpAttr->Which(); }
+ USHORT Which() const { return mpAttr->Which(); }
- USHORT GetStart() const { return mnStart; }
- USHORT& GetStart() { return mnStart; }
+ USHORT GetStart() const { return mnStart; }
+ USHORT& GetStart() { return mnStart; }
- USHORT GetEnd() const { return mnEnd; }
- USHORT& GetEnd() { return mnEnd; }
+ USHORT GetEnd() const { return mnEnd; }
+ USHORT& GetEnd() { return mnEnd; }
- inline USHORT GetLen() const;
+ inline USHORT GetLen() const;
- inline void MoveForward( USHORT nDiff );
- inline void MoveBackward( USHORT nDiff );
+ inline void MoveForward( USHORT nDiff );
+ inline void MoveBackward( USHORT nDiff );
- inline void Expand( USHORT nDiff );
- inline void Collaps( USHORT nDiff );
+ inline void Expand( USHORT nDiff );
+ inline void Collaps( USHORT nDiff );
- inline BOOL IsIn( USHORT nIndex );
- inline BOOL IsInside( USHORT nIndex );
- inline BOOL IsEmpty();
+ inline BOOL IsIn( USHORT nIndex );
+ inline BOOL IsInside( USHORT nIndex );
+ inline BOOL IsEmpty();
};
@@ -206,13 +206,13 @@ inline void TextCharAttrib::MoveBackward( USHORT nDiff )
mnEnd = mnEnd - nDiff;
}
-inline void TextCharAttrib::Expand( USHORT nDiff )
+inline void TextCharAttrib::Expand( USHORT nDiff )
{
DBG_ASSERT( ( ((long)mnEnd + nDiff) <= (long)0xFFFF ), "TextCharAttrib: Expand?!" );
mnEnd = mnEnd + nDiff;
}
-inline void TextCharAttrib::Collaps( USHORT nDiff )
+inline void TextCharAttrib::Collaps( USHORT nDiff )
{
DBG_ASSERT( (long)mnEnd - nDiff >= (long)mnStart, "TextCharAttrib: Collaps?!" );
mnEnd = mnEnd - nDiff;
diff --git a/svtools/inc/txtcmp.hxx b/svtools/inc/txtcmp.hxx
index e53a40dca7e7..601566f8a801 100644
--- a/svtools/inc/txtcmp.hxx
+++ b/svtools/inc/txtcmp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/unoevent.hxx b/svtools/inc/unoevent.hxx
index 8bf8898d6b2a..c01ed8cc6373 100644
--- a/svtools/inc/unoevent.hxx
+++ b/svtools/inc/unoevent.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,10 +38,10 @@ class SvxMacroTableDtor;
class SvxMacroItem;
class SvxMacro;
-/** SvEventDescription: Description of a single event.
+/** SvEventDescription: Description of a single event.
mnEvent is the id used by SvxMacroItem
mpEventName is the api name for this event
-
+
the last event in an array is indicated by mnEvent && mpEventName == 0
*/
struct SvEventDescription
@@ -50,12 +50,12 @@ struct SvEventDescription
const sal_Char* mpEventName;
};
-/**
+/**
* SvBaseEventDescriptor: Abstract class that implements the basics
* of an XNameReplace that is delivered by the
- * XEventsSupplier::getEvents() method.
+ * XEventsSupplier::getEvents() method.
*
- * The functionality this class provides is:
+ * The functionality this class provides is:
* 1) Which elements are in the XNameReplace?
* 2) Mapping from Api names to item IDs.
* 3) conversion from SvxMacroItem to Any and vice versa.
@@ -97,45 +97,45 @@ public:
// XNameReplace
/// calls replaceByName(const sal_uInt16, const SvxMacro&)
- virtual void SAL_CALL replaceByName(
- const ::rtl::OUString& rName, /// API name of event
+ virtual void SAL_CALL replaceByName(
+ const ::rtl::OUString& rName, /// API name of event
const ::com::sun::star::uno::Any& rElement ) /// event (PropertyValues)
throw(
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
// XNameAccess (via XNameReplace)
/// calls getByName(sal_uInt16)
- virtual ::com::sun::star::uno::Any SAL_CALL getByName(
- const ::rtl::OUString& rName ) /// API name of event
+ virtual ::com::sun::star::uno::Any SAL_CALL getByName(
+ const ::rtl::OUString& rName ) /// API name of event
throw(
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
// XNameAxcess (via XNameReplace)
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
- getElementNames()
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
+ getElementNames()
throw(::com::sun::star::uno::RuntimeException);
// XNameAccess (via XNameReplace)
- virtual sal_Bool SAL_CALL hasByName(
- const ::rtl::OUString& rName )
+ virtual sal_Bool SAL_CALL hasByName(
+ const ::rtl::OUString& rName )
throw(::com::sun::star::uno::RuntimeException);
// XElementAccess (via XNameReplace)
- virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
+ virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
throw(::com::sun::star::uno::RuntimeException);
// XElementAccess (via XNameReplace)
- virtual sal_Bool SAL_CALL hasElements()
+ virtual sal_Bool SAL_CALL hasElements()
throw(::com::sun::star::uno::RuntimeException);
// XServiceInfo
/// must be implemented in subclass
- virtual rtl::OUString SAL_CALL getImplementationName(void)
+ virtual rtl::OUString SAL_CALL getImplementationName(void)
throw( ::com::sun::star::uno::RuntimeException ) = 0;
// XServiceInfo
@@ -143,29 +143,29 @@ public:
throw( ::com::sun::star::uno::RuntimeException );
// XServiceInfo
- virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
- getSupportedServiceNames(void)
+ virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
+ getSupportedServiceNames(void)
throw( ::com::sun::star::uno::RuntimeException );
protected:
/// Must be implemented in subclass.
- virtual void replaceByName(
- const sal_uInt16 nEvent, /// item ID of event
- const SvxMacro& rMacro) /// event (will be copied)
+ virtual void replaceByName(
+ const sal_uInt16 nEvent, /// item ID of event
+ const SvxMacro& rMacro) /// event (will be copied)
throw(
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException) = 0;
/// Must be implemented in subclass.
- virtual void getByName(
+ virtual void getByName(
SvxMacro& rMacro,
- const sal_uInt16 nEvent )
+ const sal_uInt16 nEvent )
throw(
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException) = 0;
/// convert an API event name to the event ID as used by SvxMacroItem
@@ -179,12 +179,12 @@ protected:
/// create PropertyValues and Any from macro
void getAnyFromMacro(
- ::com::sun::star::uno::Any& aAny, // Any to be filled by Macro values
+ ::com::sun::star::uno::Any& aAny, // Any to be filled by Macro values
const SvxMacro& rMacro);
/// create macro from PropertyValues (in an Any)
void getMacroFromAny(
- SvxMacro& aMacro, // reference to be filled by Any
+ SvxMacro& aMacro, // reference to be filled by Any
const ::com::sun::star::uno::Any& rAny)
throw (
::com::sun::star::lang::IllegalArgumentException);
@@ -194,11 +194,11 @@ protected:
-/**
+/**
* SvEventDescriptor: Implement the XNameReplace that is delivered by
* the XEventsSupplier::getEvents() method. The SvEventDescriptor has
* to be subclassed to implement the events for a specific
- * objects. The subclass has to
+ * objects. The subclass has to
* 1) supply the super class constructor with a list of known events (item IDs)
* 2) supply the super class constructor with a reference of it's parent object
* (to prevent destruction)
@@ -210,7 +210,7 @@ protected:
class SVT_DLLPUBLIC SvEventDescriptor : public SvBaseEventDescriptor
{
/// keep reference to parent to prevent it from being destroyed
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::uno::XInterface > xParentRef;
public:
@@ -225,22 +225,22 @@ protected:
using SvBaseEventDescriptor::replaceByName;
- virtual void replaceByName(
- const sal_uInt16 nEvent, /// item ID of event
- const SvxMacro& rMacro) /// event (will be copied)
+ virtual void replaceByName(
+ const sal_uInt16 nEvent, /// item ID of event
+ const SvxMacro& rMacro) /// event (will be copied)
throw(
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
using SvBaseEventDescriptor::getByName;
- virtual void getByName(
- SvxMacro& rMacros, /// macro to be filled with values
- const sal_uInt16 nEvent ) /// item ID of event
+ virtual void getByName(
+ SvxMacro& rMacros, /// macro to be filled with values
+ const sal_uInt16 nEvent ) /// item ID of event
throw(
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
@@ -275,7 +275,7 @@ public:
virtual ~SvDetachedEventDescriptor();
//XServiceInfo
- virtual rtl::OUString SAL_CALL getImplementationName(void)
+ virtual rtl::OUString SAL_CALL getImplementationName(void)
throw( ::com::sun::star::uno::RuntimeException );
protected:
@@ -283,22 +283,22 @@ protected:
sal_Int16 getIndex(const sal_uInt16 nID) const;
using SvBaseEventDescriptor::replaceByName;
- virtual void replaceByName(
- const sal_uInt16 nEvent, /// item ID of event
- const SvxMacro& rMacro) /// event (will be copied)
+ virtual void replaceByName(
+ const sal_uInt16 nEvent, /// item ID of event
+ const SvxMacro& rMacro) /// event (will be copied)
throw(
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
using SvBaseEventDescriptor::getByName;
- virtual void getByName(
- SvxMacro& rMacro, /// macro to be filled
- const sal_uInt16 nEvent ) /// item ID of event
+ virtual void getByName(
+ SvxMacro& rMacro, /// macro to be filled
+ const sal_uInt16 nEvent ) /// item ID of event
throw(
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
/// do we have an event?
@@ -306,8 +306,8 @@ protected:
/// return sal_False: no macro; getByName() will return an empty macro
/// IllegalArgumentException: the event is not supported
using SvBaseEventDescriptor::hasByName;
- virtual sal_Bool hasByName(
- const sal_uInt16 nEvent ) const /// item ID of event
+ virtual sal_Bool hasByName(
+ const sal_uInt16 nEvent ) const /// item ID of event
throw(
::com::sun::star::lang::IllegalArgumentException);
diff --git a/svtools/inc/unoimap.hxx b/svtools/inc/unoimap.hxx
index adf8b7d0c9b9..f03dfabc6db3 100644
--- a/svtools/inc/unoimap.hxx
+++ b/svtools/inc/unoimap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/inc/wallitem.hxx b/svtools/inc/wallitem.hxx
index 99d1ec4461a8..5f5568e91ba0 100644
--- a/svtools/inc/wallitem.hxx
+++ b/svtools/inc/wallitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ class Window;
class SfxItemSet;
typedef void* (*CreateSvxBrushTabPage)(Window *pParent, const SfxItemSet &rAttrSet);
-typedef USHORT* (*GetSvxBrushTabPageRanges)();
+typedef USHORT* (*GetSvxBrushTabPageRanges)();
class Graphic;
class String;
@@ -55,10 +55,10 @@ public:
virtual Graphic GetGraphic( const String& rLink, const String& rFilter) = 0;
virtual CreateSvxBrushTabPage GetBackgroundTabpageCreateFunc() = 0;
virtual GetSvxBrushTabPageRanges GetBackgroundTabpageRanges() = 0;
- static SfxBrushItemLink* Get() { return *(SfxBrushItemLink**)GetAppData(SHL_BRUSHITEM); }
+ static SfxBrushItemLink* Get() { return *(SfxBrushItemLink**)GetAppData(SHL_BRUSHITEM); }
static void Set( SfxBrushItemLink* pLink );
};
-#endif // _SFX_BRUSHITEMLINK_DECLARED
+#endif // _SFX_BRUSHITEMLINK_DECLARED
#endif // _WALLITEM_HXX
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index 4262c4f1a6a3..ea459daab3a7 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -655,7 +655,7 @@ void BrowseBox::SetColumnTitle( USHORT nItemId, const String& rTitle )
if ( isAccessibleAlive() )
{
- commitTableEvent( TABLE_COLUMN_DESCRIPTION_CHANGED,
+ commitTableEvent( TABLE_COLUMN_DESCRIPTION_CHANGED,
makeAny( sNew ),
makeAny( sOld )
);
@@ -849,7 +849,7 @@ void BrowseBox::RemoveColumn( USHORT nItemId )
{
commitTableEvent(
TABLE_MODEL_CHANGED,
- makeAny( AccessibleTableModelChange( DELETE,
+ makeAny( AccessibleTableModelChange( DELETE,
0,
GetRowCount(),
nPos,
@@ -1439,7 +1439,7 @@ void BrowseBox::RowRemoved( long nRow, long nNumRows, BOOL bDoPaint )
uRow.nSel = BROWSER_ENDOFSELECTION;
// adjust the cursor
- if ( nRowCount == 0 ) // don't compare nRowCount with nNumRows as nNumRows already was subtracted from nRowCount
+ if ( nRowCount == 0 ) // don't compare nRowCount with nNumRows as nNumRows already was subtracted from nRowCount
nCurRow = BROWSER_ENDOFSELECTION;
else if ( nRow < nCurRow )
{
@@ -1930,13 +1930,13 @@ void BrowseBox::SelectRow( long nRow, BOOL _bSelect, BOOL bExpand )
}
// set new selection
- if ( !bHideSelect
- && ( ( bMultiSelection
- && uRow.pSel->GetTotalRange().Max() >= nRow
- && uRow.pSel->Select( nRow, _bSelect )
+ if ( !bHideSelect
+ && ( ( bMultiSelection
+ && uRow.pSel->GetTotalRange().Max() >= nRow
+ && uRow.pSel->Select( nRow, _bSelect )
)
- || ( !bMultiSelection
- && ( uRow.nSel = nRow ) != BROWSER_ENDOFSELECTION )
+ || ( !bMultiSelection
+ && ( uRow.nSel = nRow ) != BROWSER_ENDOFSELECTION )
)
)
{
@@ -2142,12 +2142,12 @@ sal_Bool BrowseBox::IsAllSelected() const
BOOL BrowseBox::MakeFieldVisible
(
- long nRow, // Zeilen-Nr des Feldes (beginnend mit 0)
- USHORT nColId, // Spalten-Id des Feldes
- BOOL bComplete // (== FALSE), TRUE => vollst"andig sichtbar machen
+ long nRow, // Zeilen-Nr des Feldes (beginnend mit 0)
+ USHORT nColId, // Spalten-Id des Feldes
+ BOOL bComplete // (== FALSE), TRUE => vollst"andig sichtbar machen
)
-/* [Beschreibung]
+/* [Beschreibung]
Macht das durch 'nRow' und 'nColId' beschriebene Feld durch
entsprechendes scrollen sichtbar. Ist 'bComplete' gesetzt, dann wird
@@ -2155,7 +2155,7 @@ BOOL BrowseBox::MakeFieldVisible
[R"uckgabewert]
- BOOL TRUE
+ BOOL TRUE
Das angegebene Feld wurde sichtbar gemacht, bzw. war
bereits sichtbar.
@@ -2416,21 +2416,21 @@ void BrowseBox::SetMode( BrowserMode nMode )
#ifdef DBG_MIx
Sound::Beep();
nMode =
-// BROWSER_COLUMNSELECTION |
-// BROWSER_MULTISELECTION |
+// BROWSER_COLUMNSELECTION |
+// BROWSER_MULTISELECTION |
BROWSER_THUMBDRAGGING |
BROWSER_KEEPHIGHLIGHT |
BROWSER_HLINES |
BROWSER_VLINES |
-// BROWSER_HIDECURSOR |
-// BROWSER_NO_HSCROLL |
-// BROWSER_NO_SCROLLBACK |
+// BROWSER_HIDECURSOR |
+// BROWSER_NO_HSCROLL |
+// BROWSER_NO_SCROLLBACK |
BROWSER_AUTO_VSCROLL |
BROWSER_AUTO_HSCROLL |
BROWSER_TRACKING_TIPS |
-// BROWSER_HIGHLIGHT_NONE |
+// BROWSER_HIGHLIGHT_NONE |
BROWSER_HEADERBAR_NEW |
-// BROWSER_AUTOSIZE_LASTCOL |
+// BROWSER_AUTOSIZE_LASTCOL |
0;
#endif
@@ -2472,7 +2472,7 @@ void BrowseBox::SetMode( BrowserMode nMode )
bHideCursor = NO_CURSOR_HIDE;
if ( BROWSER_SMART_HIDECURSOR == ( nMode & BROWSER_SMART_HIDECURSOR ) )
- { // smart cursor hide overrules hard cursor hide
+ { // smart cursor hide overrules hard cursor hide
bHideCursor = SMART_CURSOR_HIDE;
}
else if ( BROWSER_HIDECURSOR == ( nMode & BROWSER_HIDECURSOR ) )
@@ -2579,7 +2579,7 @@ void BrowseBox::VisibleRowsChanged( long, USHORT )
sal_Bool BrowseBox::IsCursorMoveAllowed( long, USHORT ) const
-/* [Beschreibung]
+/* [Beschreibung]
Diese virtuelle Methode wird immer gerufen bevor der Cursor direkt
bewegt werden soll. Durch 'return FALSE' kann verhindert werden, da\s
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index 45fc1834ef25..cec50fc811e4 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -217,13 +217,13 @@ void BrowseBox::StateChanged( StateChangedType nStateChange )
else if (STATE_CHANGE_ENABLE == nStateChange)
{
// do we have a handle column?
- sal_Bool bHandleCol = pCols->Count() && (0 == pCols->GetObject(0)->GetId());
+ sal_Bool bHandleCol = pCols->Count() && (0 == pCols->GetObject(0)->GetId());
// do we have a header bar
sal_Bool bHeaderBar = (NULL != static_cast<BrowserDataWin&>(GetDataWindow()).pHeaderBar);
- if ( nTitleLines
- && ( !bHeaderBar
- || bHandleCol
+ if ( nTitleLines
+ && ( !bHeaderBar
+ || bHandleCol
)
)
// we draw the text in our header bar in a color dependent on the enabled state. So if this state changed
@@ -680,7 +680,7 @@ void BrowseBox::Paint( const Rectangle& rRect )
return;
BrowserColumn *pFirstCol = pCols->GetObject(0);
- BOOL bHandleCol = pFirstCol && pFirstCol->GetId() == 0;
+ BOOL bHandleCol = pFirstCol && pFirstCol->GetId() == 0;
BOOL bHeaderBar = getDataWindow()->pHeaderBar != NULL;
// draw delimitational lines
@@ -1000,7 +1000,7 @@ void BrowseBox::ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, BOOL
nCol = nFirstCol;
pCol = pCols->GetObject(nCol);
if (!pCol)
- { // FS - 21.05.99 - 66325
+ { // FS - 21.05.99 - 66325
// ist zwar eigentlich woanders (an der richtigen Stelle) gefixt, aber sicher ist sicher ...
DBG_ERROR("BrowseBox::PaintData : nFirstCol is probably invalid !");
break;
@@ -1008,9 +1008,9 @@ void BrowseBox::ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, BOOL
}
// prepare Column-AutoHighlight
- BOOL bColAutoHighlight = _bDrawSelections
- && bColumnCursor
- && IsColumnSelected( pCol->GetId() );
+ BOOL bColAutoHighlight = _bDrawSelections
+ && bColumnCursor
+ && IsColumnSelected( pCol->GetId() );
if ( bColAutoHighlight )
{
_rOut.SetClipRegion();
@@ -1031,7 +1031,7 @@ void BrowseBox::ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, BOOL
{
// clip the column's output to the field area
if (_bForeignDevice)
- { // (not neccessary if painting onto the data window)
+ { // (not neccessary if painting onto the data window)
Size aFieldSize(pCol->Width(), nDataRowHeigt);
if (aPos.X() + aFieldSize.Width() > aOverallAreaBRPos.X())
@@ -1084,7 +1084,7 @@ void BrowseBox::ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, BOOL
_rOut.SetLineColor( aDelimiterLineColor );
long nY = aPos.Y() + nDataRowHeigt - 1;
if (nY <= aOverallAreaBRPos.Y())
- _rOut.DrawLine( Point( nHLineX, nY ),
+ _rOut.DrawLine( Point( nHLineX, nY ),
Point( bVLines
? std::min(long(long(aPos.X()) - 1), aOverallAreaBRPos.X())
: aOverallAreaBRPos.X(),
@@ -2016,7 +2016,7 @@ void BrowseBox::Dispatch( USHORT nId )
{
USHORT nNewPos = GetColumnPos( GetCurColumnId() ) + 1;
USHORT nNewId = GetColumnId( nNewPos );
- if (nNewId != 0) // Am Zeilenende ?
+ if (nNewId != 0) // Am Zeilenende ?
bDone = GoToColumnId( nNewId );
else
{
diff --git a/svtools/source/brwbox/brwbox3.cxx b/svtools/source/brwbox/brwbox3.cxx
index 18c169d0c44a..5779afbfa896 100644
--- a/svtools/source/brwbox/brwbox3.cxx
+++ b/svtools/source/brwbox/brwbox3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ namespace svt
using namespace ::com::sun::star::lang;
using namespace utl;
- Reference< XAccessible > getHeaderCell( BrowseBoxImpl::THeaderCellMap& _raHeaderCells,
+ Reference< XAccessible > getHeaderCell( BrowseBoxImpl::THeaderCellMap& _raHeaderCells,
sal_Int32 _nPos,
AccessibleBrowseBoxObjType _eType,
const Reference< XAccessible >& _rParent,
@@ -107,7 +107,7 @@ Reference< XAccessible > BrowseBox::CreateAccessible()
Reference< XAccessible > xAccParent = pParent->GetAccessible();
if( xAccParent.is() )
{
- m_pImpl->m_pAccessible = getAccessibleFactory().createAccessibleBrowseBox(
+ m_pImpl->m_pAccessible = getAccessibleFactory().createAccessibleBrowseBox(
xAccParent, *this
);
}
@@ -193,7 +193,7 @@ sal_Bool BrowseBox::ConvertPointToCellAddress(
sal_Bool BrowseBox::ConvertPointToRowHeader( sal_Int32& rnRow, const Point& rPoint )
{
rnRow = GetRowAtYPosPixel(rPoint.Y());
- // USHORT nColumnId = GetColumnAtXPosPixel(rPoint.X());
+ // USHORT nColumnId = GetColumnAtXPosPixel(rPoint.X());
return rnRow != BROWSER_INVALIDID;// && nColumnId == 0;
}
// -----------------------------------------------------------------------------
@@ -245,7 +245,7 @@ OUString BrowseBox::GetAccessibleObjectName( ::svt::AccessibleBrowseBoxObjType e
aRetText += OUString( RTL_CONSTASCII_USTRINGPARAM( "," ) );
aRetText += OUString::valueOf(sal_Int32(GetCurColumnId()));
aRetText += OUString( RTL_CONSTASCII_USTRINGPARAM( "]" ) );
-#endif
+#endif
break;
case ::svt::BBTYPE_ROWHEADERCELL:
aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "RowHeaderCell" ) );
@@ -283,22 +283,22 @@ OUString BrowseBox::GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxOb
aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "BrowseBox description" ) );
break;
case ::svt::BBTYPE_TABLE:
- // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "TABLE description" ) );
+ // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "TABLE description" ) );
break;
case ::svt::BBTYPE_ROWHEADERBAR:
- // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "ROWHEADERBAR description" ) );
+ // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "ROWHEADERBAR description" ) );
break;
case ::svt::BBTYPE_COLUMNHEADERBAR:
- // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "COLUMNHEADERBAR description" ) );
+ // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "COLUMNHEADERBAR description" ) );
break;
case ::svt::BBTYPE_TABLECELL:
- // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "TABLECELL description" ) );
+ // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "TABLECELL description" ) );
break;
case ::svt::BBTYPE_ROWHEADERCELL:
- // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "ROWHEADERCELL description" ) );
+ // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "ROWHEADERCELL description" ) );
break;
case ::svt::BBTYPE_COLUMNHEADERCELL:
- // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "COLUMNHEADERCELL description" ) );
+ // aRetText = OUString( RTL_CONSTASCII_USTRINGPARAM( "COLUMNHEADERCELL description" ) );
break;
case ::svt::BBTYPE_CHECKBOXCELL:
break;
diff --git a/svtools/source/brwbox/brwhead.cxx b/svtools/source/brwbox/brwhead.cxx
index d1fcaec5e9be..d6c2fc28483d 100644
--- a/svtools/source/brwbox/brwhead.cxx
+++ b/svtools/source/brwbox/brwhead.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -99,7 +99,7 @@ void BrowserHeader::EndDrag()
USHORT nOldPos = _pBrowseBox->GetColumnPos(nId),
nNewPos = GetItemPos( nId );
- if (!_pBrowseBox->GetColumnId(0)) // Handle
+ if (!_pBrowseBox->GetColumnId(0)) // Handle
nNewPos++;
if (nOldPos != nNewPos)
diff --git a/svtools/source/brwbox/brwimpl.hxx b/svtools/source/brwbox/brwimpl.hxx
index d14716aa6b7b..70f45974ba37 100644
--- a/svtools/source/brwbox/brwimpl.hxx
+++ b/svtools/source/brwbox/brwimpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace svt
typedef ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > AccessibleRef;
typedef ::std::map< sal_Int32, AccessibleRef > THeaderCellMap;
- struct THeaderCellMapFunctorDispose : ::std::unary_function<THeaderCellMap::value_type,void>
+ struct THeaderCellMapFunctorDispose : ::std::unary_function<THeaderCellMap::value_type,void>
{
inline void operator()(const THeaderCellMap::value_type& _aType)
{
@@ -72,7 +72,7 @@ namespace svt
BrowseBoxImpl() : m_pAccessible(NULL)
{
}
-
+
/// @see AccessibleBrowseBox::getHeaderBar
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx
index 36a70672f7e3..c0b8352a5cdb 100644
--- a/svtools/source/brwbox/datwin.cxx
+++ b/svtools/source/brwbox/datwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -118,7 +118,7 @@ void ButtonFrame::Draw( OutputDevice& rDev )
BrowserColumn::BrowserColumn( USHORT nItemId, const class Image &rImage,
const String& rTitle, ULONG nWidthPixel, const Fraction& rCurrentZoom,
HeaderBarItemBits nFlags )
-: _nId( nItemId ),
+: _nId( nItemId ),
_nWidth( nWidthPixel ),
_aImage( rImage ),
_aTitle( rTitle ),
diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx
index 006ebe8a1433..2e655130427f 100644
--- a/svtools/source/brwbox/datwin.hxx
+++ b/svtools/source/brwbox/datwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,13 +47,13 @@ DECLARE_LIST( RectangleList, Rectangle* )
class ButtonFrame
{
- Rectangle aRect;
- Rectangle aInnerRect;
- String aText;
- BOOL bPressed;
- BOOL bCurs;
- BOOL bAbbr;
- BOOL m_bDrawDisabled;
+ Rectangle aRect;
+ Rectangle aInnerRect;
+ String aText;
+ BOOL bPressed;
+ BOOL bCurs;
+ BOOL bAbbr;
+ BOOL m_bDrawDisabled;
public:
ButtonFrame( const Point& rPt, const Size& rSz,
@@ -80,13 +80,13 @@ public:
class BrowserColumn
{
- USHORT _nId;
- ULONG _nOriginalWidth;
- ULONG _nWidth;
- Image _aImage;
- String _aTitle;
- BOOL _bFrozen;
- HeaderBarItemBits _nFlags;
+ USHORT _nId;
+ ULONG _nOriginalWidth;
+ ULONG _nWidth;
+ Image _aImage;
+ String _aTitle;
+ BOOL _bFrozen;
+ HeaderBarItemBits _nFlags;
public:
BrowserColumn( USHORT nItemId, const Image &rImage,
@@ -94,21 +94,21 @@ public:
HeaderBarItemBits nFlags );
virtual ~BrowserColumn();
- USHORT GetId() const { return _nId; }
+ USHORT GetId() const { return _nId; }
- ULONG Width() { return _nWidth; }
- Image& GetImage() { return _aImage; }
- String& Title() { return _aTitle; }
- HeaderBarItemBits& Flags() { return _nFlags; }
+ ULONG Width() { return _nWidth; }
+ Image& GetImage() { return _aImage; }
+ String& Title() { return _aTitle; }
+ HeaderBarItemBits& Flags() { return _nFlags; }
- BOOL IsFrozen() const { return _bFrozen; }
- void Freeze( BOOL bFreeze = TRUE ) { _bFrozen = bFreeze; }
+ BOOL IsFrozen() const { return _bFrozen; }
+ void Freeze( BOOL bFreeze = TRUE ) { _bFrozen = bFreeze; }
- virtual void Draw( BrowseBox& rBox, OutputDevice& rDev,
+ virtual void Draw( BrowseBox& rBox, OutputDevice& rDev,
const Point& rPos, BOOL bCurs );
- void SetWidth(ULONG nNewWidthPixel, const Fraction& rCurrentZoom);
- void ZoomChanged(const Fraction& rNewZoom);
+ void SetWidth(ULONG nNewWidthPixel, const Fraction& rCurrentZoom);
+ void ZoomChanged(const Fraction& rNewZoom);
};
//===================================================================
@@ -119,15 +119,15 @@ class BrowserDataWin
,public DropTargetHelper
{
public:
- BrowserHeader* pHeaderBar; // only for BROWSER_HEADERBAR_NEW
- Window* pEventWin; // Window of forwarded events
- ScrollBarBox* pCornerWin; // Window in the corner btw the ScrollBars
- BOOL* pDtorNotify;
+ BrowserHeader* pHeaderBar; // only for BROWSER_HEADERBAR_NEW
+ Window* pEventWin; // Window of forwarded events
+ ScrollBarBox* pCornerWin; // Window in the corner btw the ScrollBars
+ BOOL* pDtorNotify;
AutoTimer aMouseTimer; // recalls MouseMove on dragging out
MouseEvent aRepeatEvt; // a MouseEvent to repeat
- Point aLastMousePos; // verhindert pseudo-MouseMoves
+ Point aLastMousePos; // verhindert pseudo-MouseMoves
- String aRealRowCount; // zur Anzeige im VScrollBar
+ String aRealRowCount; // zur Anzeige im VScrollBar
RectangleList aInvalidRegion; // invalidated Rectangles during !UpdateMode
bool bInPaint; // TRUE while in Paint
@@ -145,8 +145,8 @@ public:
bool bHadRecursion; // Rekursion war aufgetreten
bool bOwnDataChangedHdl; // dont change colors in DataChanged
bool bCallingDropCallback; // we're in a callback to AcceptDrop or ExecuteDrop curently
- USHORT nUpdateLock; // lock count, dont call Control::Update()!
- short nCursorHidden; // new conuter for DoHide/ShowCursor
+ USHORT nUpdateLock; // lock count, dont call Control::Update()!
+ short nCursorHidden; // new conuter for DoHide/ShowCursor
long m_nDragRowDividerLimit;
long m_nDragRowDividerOffset;
@@ -155,9 +155,9 @@ public:
BrowserDataWin( BrowseBox* pParent );
~BrowserDataWin();
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
virtual void Paint( const Rectangle& rRect );
- virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
virtual void Command( const CommandEvent& rEvt );
virtual void MouseButtonDown( const MouseEvent& rEvt );
virtual void MouseMove( const MouseEvent& rEvt );
@@ -172,19 +172,19 @@ public:
virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
// DragSourceHelper overridables
- virtual void StartDrag( sal_Int8 _nAction, const Point& _rPosPixel );
+ virtual void StartDrag( sal_Int8 _nAction, const Point& _rPosPixel );
- BrowseEvent CreateBrowseEvent( const Point& rPosPixel );
+ BrowseEvent CreateBrowseEvent( const Point& rPosPixel );
void Repaint();
BrowseBox* GetParent() const
{ return (BrowseBox*) Window::GetParent(); }
- const String& GetRealRowCount() const { return aRealRowCount; }
+ const String& GetRealRowCount() const { return aRealRowCount; }
void SetUpdateMode( BOOL bMode );
bool GetUpdateMode() const { return bUpdateMode; }
- void EnterUpdateLock() { ++nUpdateLock; }
- void LeaveUpdateLock();
+ void EnterUpdateLock() { ++nUpdateLock; }
+ void LeaveUpdateLock();
void Update();
void DoOutstandingInvalidations();
void Invalidate( USHORT nFlags = 0 );
@@ -210,14 +210,14 @@ inline void BrowserDataWin::Repaint()
class BrowserScrollBar: public ScrollBar
{
- ULONG _nTip;
- ULONG _nLastPos;
- BrowserDataWin* _pDataWin;
+ ULONG _nTip;
+ ULONG _nLastPos;
+ BrowserDataWin* _pDataWin;
public:
BrowserScrollBar( Window* pParent, WinBits nStyle,
BrowserDataWin *pDataWin )
- : ScrollBar( pParent, nStyle ),
+ : ScrollBar( pParent, nStyle ),
_nTip( 0 ),
_nLastPos( ULONG_MAX ),
_pDataWin( pDataWin )
@@ -225,7 +225,7 @@ public:
//ScrollBar( Window* pParent, const ResId& rResId );
virtual void Tracking( const TrackingEvent& rTEvt );
- virtual void EndScroll();
+ virtual void EndScroll();
};
//===================================================================
diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx
index 4dbf729de3ae..aeb03c2f28c4 100644
--- a/svtools/source/brwbox/ebbcontrols.cxx
+++ b/svtools/source/brwbox/ebbcontrols.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -189,7 +189,7 @@ namespace svt
if (nPos >= GetEntryCount())
nPos = GetEntryCount() - 1;
SelectEntryPos(sal::static_int_cast< USHORT >(nPos));
- Select(); // for calling Modify
+ Select(); // for calling Modify
return 1;
}
else if (GetParent()->PreNotify(rNEvt))
@@ -450,13 +450,13 @@ namespace svt
{
Selection aSel = m_pEditImplementation->GetSelection();
bResult = !aSel && aSel.Max() == m_pEditImplementation->GetText( LINEEND_LF ).Len();
- } break;
+ } break;
case KEY_HOME:
case KEY_LEFT:
{
Selection aSel = m_pEditImplementation->GetSelection();
bResult = !aSel && aSel.Min() == 0;
- } break;
+ } break;
default:
bResult = sal_True;
}
@@ -507,13 +507,13 @@ namespace svt
{
Selection aSel = GetSpinWindow().GetSelection();
bResult = !aSel && aSel.Max() == GetSpinWindow().GetText().Len();
- } break;
+ } break;
case KEY_HOME:
case KEY_LEFT:
{
Selection aSel = GetSpinWindow().GetSelection();
bResult = !aSel && aSel.Min() == 0;
- } break;
+ } break;
default:
bResult = sal_True;
}
@@ -623,7 +623,7 @@ namespace svt
}
// .......................................................................
-} // namespace svt
+} // namespace svt
// .......................................................................
diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx
index d9dac2ece56b..05b3bd6e7b32 100644
--- a/svtools/source/brwbox/editbrowsebox.cxx
+++ b/svtools/source/brwbox/editbrowsebox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ namespace svt
sal_Bool isHiContrast(Window* _pWindow)
{
OSL_ENSURE(_pWindow,"Window must be not null!");
- return _pWindow && _pWindow->GetSettings().GetStyleSettings().GetHighContrastMode();
+ return _pWindow && _pWindow->GetSettings().GetStyleSettings().GetHighContrastMode();
}
//..............................................................
@@ -81,7 +81,7 @@ namespace svt
using com::sun::star::accessibility::XAccessible;
//==================================================================
- #define HANDLE_ID 0
+ #define HANDLE_ID 0
//==================================================================
//= EditBrowserHeader
@@ -167,7 +167,7 @@ namespace svt
{
DBG_CTOR(EditBrowseBox,NULL);
- impl_construct();
+ impl_construct();
}
//==================================================================
@@ -262,7 +262,7 @@ namespace svt
nPaintRow = nRow;
return sal_True;
}
-
+
//------------------------------------------------------------------------------
IMPL_LINK(EditBrowseBox, StartEditHdl, void*, EMPTYARG)
{
@@ -496,7 +496,7 @@ namespace svt
void EditBrowseBox::MouseButtonDown(const BrowserMouseEvent& rEvt)
{
sal_uInt16 nColPos = GetColumnPos( rEvt.GetColumnId() );
- long nRow = rEvt.GetRow();
+ long nRow = rEvt.GetRow();
// absorb double clicks
if (rEvt.GetClicks() > 1 && rEvt.GetRow() >= 0)
@@ -520,7 +520,7 @@ namespace svt
}
if (0 == rEvt.GetColumnId())
- { // it was the handle column. save the current cell content if necessary
+ { // it was the handle column. save the current cell content if necessary
// (clicking on the handle column results in selecting the current row)
// 23.01.2001 - 82797 - FS
if (IsEditing() && aController->IsModified())
@@ -567,7 +567,7 @@ namespace svt
AsynchGetFocus();
if (IsEditing() && aController->GetWindow().IsEnabled() && aController->WantMouseEvent())
- { // forwards the event to the control
+ { // forwards the event to the control
// If the field has been moved previously, we have to adjust the position
@@ -610,7 +610,7 @@ namespace svt
void EditBrowseBox::Dispatch( sal_uInt16 _nId )
{
if ( _nId == BROWSER_ENHANCESELECTION )
- { // this is a workaround for the bug in the base class:
+ { // this is a workaround for the bug in the base class:
// if the row selection is to be extended (which is what BROWSER_ENHANCESELECTION tells us)
// then the base class does not revert any column selections, while, for doing a "simple"
// selection (BROWSER_SELECT), it does. In fact, it does not only revert the col selection then,
@@ -636,18 +636,18 @@ namespace svt
switch (rEvt.GetType())
{
case EVENT_KEYINPUT:
- if ( (IsEditing() && Controller()->GetWindow().HasChildPathFocus())
- || rEvt.GetWindow() == &GetDataWindow()
- || (!IsEditing() && HasChildPathFocus())
+ if ( (IsEditing() && Controller()->GetWindow().HasChildPathFocus())
+ || rEvt.GetWindow() == &GetDataWindow()
+ || (!IsEditing() && HasChildPathFocus())
)
{
- const KeyEvent* pKeyEvent = rEvt.GetKeyEvent();
+ const KeyEvent* pKeyEvent = rEvt.GetKeyEvent();
sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode();
sal_Bool bShift = pKeyEvent->GetKeyCode().IsShift();
sal_Bool bCtrl = pKeyEvent->GetKeyCode().IsMod1();
- sal_Bool bAlt = pKeyEvent->GetKeyCode().IsMod2();
- sal_Bool bLocalSelect= sal_False;
- sal_Bool bNonEditOnly = sal_False;
+ sal_Bool bAlt = pKeyEvent->GetKeyCode().IsMod2();
+ sal_Bool bLocalSelect= sal_False;
+ sal_Bool bNonEditOnly = sal_False;
sal_uInt16 nId = BROWSER_NONE;
if (!bAlt && !bCtrl && !bShift )
@@ -701,7 +701,7 @@ namespace svt
if ( !bAlt && bCtrl && bShift )
switch ( nCode )
{
- case KEY_SPACE: nId = BROWSER_SELECTCOLUMN; bLocalSelect = sal_True; break;
+ case KEY_SPACE: nId = BROWSER_SELECTCOLUMN; bLocalSelect = sal_True; break;
}
@@ -718,10 +718,10 @@ namespace svt
}
- if ( ( nId != BROWSER_NONE )
- && ( !IsEditing()
- || ( !bNonEditOnly
- && aController->MoveAllowed( *pKeyEvent )
+ if ( ( nId != BROWSER_NONE )
+ && ( !IsEditing()
+ || ( !bNonEditOnly
+ && aController->MoveAllowed( *pKeyEvent )
)
)
)
@@ -824,13 +824,13 @@ namespace svt
{
BrowseBox::DataChanged( rDCEvt );
- if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
- ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
- ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
+ if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
+ ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
+ ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
{
ImplInitSettings( sal_True, sal_True, sal_True );
Invalidate();
- }
+ }
}
//------------------------------------------------------------------------------
@@ -898,7 +898,7 @@ namespace svt
if (!nInfo && nNewColId != nEditCol)
nInfo |= COLCHANGE;
- if (nInfo == 0) // nothing happened
+ if (nInfo == 0) // nothing happened
return sal_True;
// save the cell content
@@ -940,9 +940,9 @@ namespace svt
{
Window& rWindow = GetDataWindow();
// don't paint too much
- // update the status immediatly if possible
+ // update the status immediatly if possible
if ((nEditRow >= 0) && (GetBrowserFlags() & EBBF_NO_HANDLE_COLUMN_CONTENT) == 0)
- {
+ {
Rectangle aRect = GetFieldRectPixel(nEditRow, 0, sal_False );
// status cell should be painted if and only if text is displayed
// note: bPaintStatus is mutable, but Solaris has problems with assigning
@@ -950,16 +950,16 @@ namespace svt
pTHIS->bPaintStatus = static_cast< sal_Bool >
(( GetBrowserFlags() & EBBF_HANDLE_COLUMN_TEXT ) == EBBF_HANDLE_COLUMN_TEXT );
rWindow.Paint(aRect);
- pTHIS->bPaintStatus = sal_True;
- }
-
+ pTHIS->bPaintStatus = sal_True;
+ }
+
// don't paint during row change
- rWindow.EnablePaint(sal_False);
+ rWindow.EnablePaint(sal_False);
// the last veto chance for derived classes
if (!pTHIS->CursorMoving(nNewRow, nNewColId))
{
- pTHIS->InvalidateStatusCell(nEditRow);
+ pTHIS->InvalidateStatusCell(nEditRow);
rWindow.EnablePaint(sal_True);
return sal_False;
}
@@ -968,7 +968,7 @@ namespace svt
rWindow.EnablePaint(sal_True);
return sal_True;
}
- }
+ }
else
return pTHIS->CursorMoving(nNewRow, nNewColId);
}
@@ -1006,7 +1006,7 @@ namespace svt
if (nEditRow != nNewRow)
{
if ((GetBrowserFlags() & EBBF_NO_HANDLE_COLUMN_CONTENT) == 0)
- InvalidateStatusCell(nNewRow);
+ InvalidateStatusCell(nNewRow);
nEditRow = nNewRow;
}
ActivateCell();
@@ -1132,8 +1132,8 @@ namespace svt
ReleaseController(aOldController, nOldEditRow, nOldEditCol);
aOldController = CellControllerRef();
- nOldEditRow = -1;
- nOldEditCol = 0;
+ nOldEditRow = -1;
+ nOldEditCol = 0;
return 0;
}
@@ -1269,17 +1269,17 @@ namespace svt
sal_uInt32 EditBrowseBox::GetAutoColumnWidth(sal_uInt16 nColId)
{
sal_uInt32 nCurColWidth = GetColumnWidth(nColId);
- sal_uInt32 nMinColWidth = CalcZoom(20); // minimum
+ sal_uInt32 nMinColWidth = CalcZoom(20); // minimum
sal_uInt32 nNewColWidth = nMinColWidth;
- long nMaxRows = Min(long(GetVisibleRows()), GetRowCount());
+ long nMaxRows = Min(long(GetVisibleRows()), GetRowCount());
long nLastVisRow = GetTopRow() + nMaxRows - 1;
- if (GetTopRow() <= nLastVisRow) // calc the column with using the cell contents
+ if (GetTopRow() <= nLastVisRow) // calc the column with using the cell contents
{
for (long i = GetTopRow(); i <= nLastVisRow; ++i)
nNewColWidth = std::max(nNewColWidth,GetTotalCellWidth(i,nColId) + 12);
- if (nNewColWidth == nCurColWidth) // size has not changed
+ if (nNewColWidth == nCurColWidth) // size has not changed
nNewColWidth = GetDefaultColumnWidth(GetColumnTitle(nColId));
}
else
@@ -1312,7 +1312,7 @@ namespace svt
// an update for the parent is done (because it's in the queue already)
// which may lead to hiding this window immediately
// #95598# comment out OJ
-/* if (pCheckBoxPaint->GetParent())
+/* if (pCheckBoxPaint->GetParent())
pCheckBoxPaint->GetParent()->Update();
*/
pCheckBoxPaint->GetBox().Enable(_bEnabled);
@@ -1425,7 +1425,7 @@ namespace svt
return sal_True;
}
// .......................................................................
-} // namespace svt
+} // namespace svt
// .......................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/brwbox/editbrowsebox.hrc b/svtools/source/brwbox/editbrowsebox.hrc
index 5902365b1b05..f16e32a7b8a5 100644
--- a/svtools/source/brwbox/editbrowsebox.hrc
+++ b/svtools/source/brwbox/editbrowsebox.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,15 +28,15 @@
#ifndef _SVTOOLS_EDITBROWSEBOX_HRC_
#define _SVTOOLS_EDITBROWSEBOX_HRC_
-#define IMG_EBB_CURRENT 1
-#define IMG_EBB_MODIFIED 2
-#define IMG_EBB_NEW 3
-#define IMG_EBB_DELETED 4
-#define IMG_EBB_CURRENTNEW 5
-#define IMG_EBB_PRIMARYKEY 6
-#define IMG_EBB_CURRENT_PRIMARYKEY 7
-#define IMG_EBB_FILTER 8
-#define IMG_EBB_HEADERFOOTER 9
+#define IMG_EBB_CURRENT 1
+#define IMG_EBB_MODIFIED 2
+#define IMG_EBB_NEW 3
+#define IMG_EBB_DELETED 4
+#define IMG_EBB_CURRENTNEW 5
+#define IMG_EBB_PRIMARYKEY 6
+#define IMG_EBB_CURRENT_PRIMARYKEY 7
+#define IMG_EBB_FILTER 8
+#define IMG_EBB_HEADERFOOTER 9
#endif // _SVTOOLS_EDITBROWSEBOX_HRC_
diff --git a/svtools/source/brwbox/editbrowsebox.src b/svtools/source/brwbox/editbrowsebox.src
index 6511d97ea86a..c189f7033dde 100644
--- a/svtools/source/brwbox/editbrowsebox.src
+++ b/svtools/source/brwbox/editbrowsebox.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/brwbox/editbrowsebox2.cxx b/svtools/source/brwbox/editbrowsebox2.cxx
index 4add5d5a9094..cf07dbf2499d 100644
--- a/svtools/source/brwbox/editbrowsebox2.cxx
+++ b/svtools/source/brwbox/editbrowsebox2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ namespace svt
using namespace com::sun::star::accessibility;
using namespace com::sun::star::uno;
using namespace ::com::sun::star::accessibility::AccessibleEventId;
-
+
// -----------------------------------------------------------------------------
Reference< XAccessible > EditBrowseBox::CreateAccessibleCheckBoxCell(long _nRow, USHORT _nColumnPos,const TriState& eState,sal_Bool _bEnabled)
{
@@ -89,10 +89,10 @@ void EditBrowseBox::implCreateActiveAccessible( )
if ( xMy.is() && xCont.is() )
{
m_aImpl->m_xActiveCell = getAccessibleFactory().createEditBrowseBoxTableCellAccess(
- xMy, // parent accessible
- xCont, // control accessible
- VCLUnoHelper::GetInterface( &aController->GetWindow() ), // focus window (for notifications)
- *this, // the browse box
+ xMy, // parent accessible
+ xCont, // control accessible
+ VCLUnoHelper::GetInterface( &aController->GetWindow() ), // focus window (for notifications)
+ *this, // the browse box
GetCurRow(),
GetColumnPos( GetCurColumnId() )
);
@@ -159,8 +159,8 @@ void EditBrowseBox::DetermineFocus( const sal_uInt16 _nGetFocusFlags )
if ( GetBrowserFlags( ) & EBBF_SMART_TAB_TRAVEL )
{
- if ( bHasFocus // we got the focus
- && ( _nGetFocusFlags & GETFOCUS_TAB ) // using the TAB key
+ if ( bHasFocus // we got the focus
+ && ( _nGetFocusFlags & GETFOCUS_TAB ) // using the TAB key
)
{
long nRows = GetRowCount();
@@ -175,7 +175,7 @@ void EditBrowseBox::DetermineFocus( const sal_uInt16 _nGetFocusFlags )
GoToRowColumnId( 0, GetColumnId( 0 ) );
}
else
- { // the first column is the handle column -> not focussable
+ { // the first column is the handle column -> not focussable
if ( nCols > 1 )
GoToRowColumnId( 0, GetColumnId( 1 ) );
}
diff --git a/svtools/source/brwbox/editbrowseboximpl.hxx b/svtools/source/brwbox/editbrowseboximpl.hxx
index c58a117d65a7..c649594df690 100644
--- a/svtools/source/brwbox/editbrowseboximpl.hxx
+++ b/svtools/source/brwbox/editbrowseboximpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,7 +26,7 @@
*
************************************************************************/
#ifndef SVTOOLS_EDITBROWSEBOX_IMPL_HXX
-#define SVTOOLS_EDITBROWSEBOX_IMPL_HXX
+#define SVTOOLS_EDITBROWSEBOX_IMPL_HXX
#include <com/sun/star/accessibility/XAccessible.hpp>
diff --git a/svtools/source/config/accessibilityoptions.cxx b/svtools/source/config/accessibilityoptions.cxx
index 53243d1933fc..226d02c1b5f5 100644
--- a/svtools/source/config/accessibilityoptions.cxx
+++ b/svtools/source/config/accessibilityoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,40 +65,40 @@ class SvtAccessibilityOptions_Impl
{
private:
css::uno::Reference< css::container::XNameAccess > m_xCfg;
- sal_Bool bIsModified;
+ sal_Bool bIsModified;
public:
SvtAccessibilityOptions_Impl();
~SvtAccessibilityOptions_Impl();
- void SetVCLSettings();
- sal_Bool GetAutoDetectSystemHC();
- sal_Bool GetIsForPagePreviews() const;
- sal_Bool GetIsHelpTipsDisappear() const;
- sal_Bool GetIsAllowAnimatedGraphics() const;
- sal_Bool GetIsAllowAnimatedText() const;
- sal_Bool GetIsAutomaticFontColor() const;
- sal_Bool GetIsSystemFont() const;
- sal_Int16 GetHelpTipSeconds() const;
- sal_Bool IsSelectionInReadonly() const;
-
- void SetAutoDetectSystemHC(sal_Bool bSet);
- void SetIsForPagePreviews(sal_Bool bSet);
- void SetIsHelpTipsDisappear(sal_Bool bSet);
- void SetIsAllowAnimatedGraphics(sal_Bool bSet);
- void SetIsAllowAnimatedText(sal_Bool bSet);
- void SetIsAutomaticFontColor(sal_Bool bSet);
- void SetIsSystemFont(sal_Bool bSet);
- void SetHelpTipSeconds(sal_Int16 nSet);
- void SetSelectionInReadonly(sal_Bool bSet);
-
- sal_Bool IsModified() const { return bIsModified; };
+ void SetVCLSettings();
+ sal_Bool GetAutoDetectSystemHC();
+ sal_Bool GetIsForPagePreviews() const;
+ sal_Bool GetIsHelpTipsDisappear() const;
+ sal_Bool GetIsAllowAnimatedGraphics() const;
+ sal_Bool GetIsAllowAnimatedText() const;
+ sal_Bool GetIsAutomaticFontColor() const;
+ sal_Bool GetIsSystemFont() const;
+ sal_Int16 GetHelpTipSeconds() const;
+ sal_Bool IsSelectionInReadonly() const;
+
+ void SetAutoDetectSystemHC(sal_Bool bSet);
+ void SetIsForPagePreviews(sal_Bool bSet);
+ void SetIsHelpTipsDisappear(sal_Bool bSet);
+ void SetIsAllowAnimatedGraphics(sal_Bool bSet);
+ void SetIsAllowAnimatedText(sal_Bool bSet);
+ void SetIsAutomaticFontColor(sal_Bool bSet);
+ void SetIsSystemFont(sal_Bool bSet);
+ void SetHelpTipSeconds(sal_Int16 nSet);
+ void SetSelectionInReadonly(sal_Bool bSet);
+
+ sal_Bool IsModified() const { return bIsModified; };
};
// initialization of static members --------------------------------------
-SvtAccessibilityOptions_Impl* volatile SvtAccessibilityOptions::sm_pSingleImplConfig =NULL;
-sal_Int32 volatile SvtAccessibilityOptions::sm_nAccessibilityRefCount(0);
+SvtAccessibilityOptions_Impl* volatile SvtAccessibilityOptions::sm_pSingleImplConfig =NULL;
+sal_Int32 volatile SvtAccessibilityOptions::sm_nAccessibilityRefCount(0);
namespace
{
@@ -137,7 +137,7 @@ SvtAccessibilityOptions_Impl::~SvtAccessibilityOptions_Impl()
sal_Bool SvtAccessibilityOptions_Impl::GetAutoDetectSystemHC()
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Bool bRet = sal_True;
+ sal_Bool bRet = sal_True;
try
{
@@ -155,7 +155,7 @@ sal_Bool SvtAccessibilityOptions_Impl::GetAutoDetectSystemHC()
sal_Bool SvtAccessibilityOptions_Impl::GetIsForPagePreviews() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Bool bRet = sal_True;
+ sal_Bool bRet = sal_True;
try
{
@@ -172,7 +172,7 @@ sal_Bool SvtAccessibilityOptions_Impl::GetIsForPagePreviews() const
sal_Bool SvtAccessibilityOptions_Impl::GetIsHelpTipsDisappear() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Bool bRet = sal_True;
+ sal_Bool bRet = sal_True;
try
{
@@ -190,7 +190,7 @@ sal_Bool SvtAccessibilityOptions_Impl::GetIsHelpTipsDisappear() const
sal_Bool SvtAccessibilityOptions_Impl::GetIsAllowAnimatedGraphics() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Bool bRet = sal_True;
+ sal_Bool bRet = sal_True;
try
{
@@ -208,7 +208,7 @@ sal_Bool SvtAccessibilityOptions_Impl::GetIsAllowAnimatedGraphics() const
sal_Bool SvtAccessibilityOptions_Impl::GetIsAllowAnimatedText() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Bool bRet = sal_True;
+ sal_Bool bRet = sal_True;
try
{
@@ -226,7 +226,7 @@ sal_Bool SvtAccessibilityOptions_Impl::GetIsAllowAnimatedText() const
sal_Bool SvtAccessibilityOptions_Impl::GetIsAutomaticFontColor() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Bool bRet = sal_False;
+ sal_Bool bRet = sal_False;
try
{
@@ -244,7 +244,7 @@ sal_Bool SvtAccessibilityOptions_Impl::GetIsAutomaticFontColor() const
sal_Bool SvtAccessibilityOptions_Impl::GetIsSystemFont() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Bool bRet = sal_True;
+ sal_Bool bRet = sal_True;
try
{
@@ -262,7 +262,7 @@ sal_Bool SvtAccessibilityOptions_Impl::GetIsSystemFont() const
sal_Int16 SvtAccessibilityOptions_Impl::GetHelpTipSeconds() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Int16 nRet = 4;
+ sal_Int16 nRet = 4;
try
{
@@ -280,7 +280,7 @@ sal_Int16 SvtAccessibilityOptions_Impl::GetHelpTipSeconds() const
sal_Bool SvtAccessibilityOptions_Impl::IsSelectionInReadonly() const
{
css::uno::Reference< css::beans::XPropertySet > xNode(m_xCfg, css::uno::UNO_QUERY);
- sal_Bool bRet = sal_False;
+ sal_Bool bRet = sal_False;
try
{
@@ -518,7 +518,7 @@ SvtAccessibilityOptions::~SvtAccessibilityOptions()
if( !--sm_nAccessibilityRefCount )
{
//if( sm_pSingleImplConfig->IsModified() )
- // sm_pSingleImplConfig->Commit();
+ // sm_pSingleImplConfig->Commit();
DELETEZ( sm_pSingleImplConfig );
}
}
diff --git a/svtools/source/config/apearcfg.cxx b/svtools/source/config/apearcfg.cxx
index cadbb3c7da6f..b30c676a9db3 100644
--- a/svtools/source/config/apearcfg.cxx
+++ b/svtools/source/config/apearcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@
#define DEFAULT_DRAGMODE 2
#define DEFAULT_SNAPMODE 0
#define DEFAULT_SCALEFACTOR 100
-#define DEFAULT_AAMINHEIGHT 8
+#define DEFAULT_AAMINHEIGHT 8
using namespace ::rtl;
using namespace ::com::sun::star::uno;
@@ -54,23 +54,23 @@ sal_Bool SvtTabAppearanceCfg::bInitialized = sal_False;
--------------------------------------------------------------------*/
SvtTabAppearanceCfg::SvtTabAppearanceCfg()
:ConfigItem(OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/View")))
- ,nLookNFeel ( DEFAULT_LOOKNFEEL )
- ,nDragMode ( DEFAULT_DRAGMODE )
+ ,nLookNFeel ( DEFAULT_LOOKNFEEL )
+ ,nDragMode ( DEFAULT_DRAGMODE )
,nScaleFactor ( DEFAULT_SCALEFACTOR )
- ,nSnapMode ( DEFAULT_SNAPMODE )
+ ,nSnapMode ( DEFAULT_SNAPMODE )
,nMiddleMouse ( MOUSE_MIDDLE_AUTOSCROLL )
#if defined( UNX ) || defined ( FS_PRIV_DEBUG )
- ,nAAMinPixelHeight ( DEFAULT_AAMINHEIGHT )
+ ,nAAMinPixelHeight ( DEFAULT_AAMINHEIGHT )
#endif
,bMenuMouseFollow(FALSE)
,bSingleLineTabCtrl(FALSE)
,bColoredTabCtrl(FALSE)
#if defined( UNX ) || defined ( FS_PRIV_DEBUG )
- ,bFontAntialiasing ( TRUE )
+ ,bFontAntialiasing ( TRUE )
#endif
{
RTL_LOGFILE_CONTEXT(aLog, "svtools SvtTabAppearanceCfg::SvtTabAppearanceCfg()");
-
+
const Sequence<OUString>& rNames = GetPropertyNames();
Sequence<Any> aValues = GetProperties(rNames);
const Any* pValues = aValues.getConstArray();
@@ -240,20 +240,20 @@ void SvtTabAppearanceCfg::SetApplicationDefaults ( Application* pApp )
switch ( nLookNFeel )
{
case LookMotif:
- hAppStyle.SetStandardUnixStyles(); break;
+ hAppStyle.SetStandardUnixStyles(); break;
case LookOSTwo:
- hAppStyle.SetStandardOS2Styles(); break;
+ hAppStyle.SetStandardOS2Styles(); break;
case LookMacintosh:
- hAppStyle.SetStandardMacStyles(); break;
+ hAppStyle.SetStandardMacStyles(); break;
case LookWindows:
- hAppStyle.SetStandardWinStyles(); break;
+ hAppStyle.SetStandardWinStyles(); break;
case LookStardivision:
default:
- hAppStyle.SetStandardStyles(); break;
+ hAppStyle.SetStandardStyles(); break;
}
// and set it here
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index e537c5682622..4f833e81adb9 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,10 +64,10 @@ namespace svtools
static const sal_Char cColor[] = "/Color";
static const sal_Char cColorSchemes[] = "ColorSchemes/";
sal_Int32 nColorRefCount_Impl = 0;
-namespace
+namespace
{
- struct ColorMutex_Impl
- : public rtl::Static< ::osl::Mutex, ColorMutex_Impl > {};
+ struct ColorMutex_Impl
+ : public rtl::Static< ::osl::Mutex, ColorMutex_Impl > {};
}
ColorConfig_Impl* ColorConfig::m_pImpl = NULL;
@@ -135,7 +135,7 @@ uno::Sequence< OUString> ColorConfig_Impl::GetPropertyNames(const rtl::OUString&
{ RTL_CONSTASCII_USTRINGPARAM("/AppBackground") ,sal_False },
{ RTL_CONSTASCII_USTRINGPARAM("/ObjectBoundaries"),sal_True },
{ RTL_CONSTASCII_USTRINGPARAM("/TableBoundaries") ,sal_True },
- { RTL_CONSTASCII_USTRINGPARAM("/FontColor") ,sal_False },
+ { RTL_CONSTASCII_USTRINGPARAM("/FontColor") ,sal_False },
{ RTL_CONSTASCII_USTRINGPARAM("/Links") ,sal_True },
{ RTL_CONSTASCII_USTRINGPARAM("/LinksVisited") ,sal_True },
{ RTL_CONSTASCII_USTRINGPARAM("/Anchor") ,sal_False },
@@ -495,7 +495,7 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry eEntry)
0x000000, // SQLOPERATOR
0x0000E6, // SQLKEYWORD
0x259D9D, // SQLPARAMTER
- 0x969696,// SQLCOMMENT
+ 0x969696,// SQLCOMMENT
};
Color aRet;
switch(eEntry)
@@ -510,7 +510,7 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry eEntry)
case SPELL :
case DRAWDRAWING :
- case SMARTTAGS :
+ case SMARTTAGS :
{
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
aRet = rStyleSettings.GetHighContrastMode() ?
@@ -520,7 +520,7 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry eEntry)
case DRAWFILL :
aRet = /*rStyleSettings.GetHighContrastMode() ?
- rStyleSettings.OutlineMode??? : */ aAutoColors[eEntry];
+ rStyleSettings.OutlineMode??? : */ aAutoColors[eEntry];
break;
case FONTCOLOR :
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx
index 7610554612c6..fa6c2ae6c24e 100644
--- a/svtools/source/config/extcolorcfg.cxx
+++ b/svtools/source/config/extcolorcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,10 +62,10 @@ namespace svtools
#define C2U(cChar) OUString::createFromAscii(cChar)
sal_Int32 nExtendedColorRefCount_Impl = 0;
-namespace
+namespace
{
- struct ColorMutex_Impl
- : public rtl::Static< ::osl::Mutex, ColorMutex_Impl > {};
+ struct ColorMutex_Impl
+ : public rtl::Static< ::osl::Mutex, ColorMutex_Impl > {};
}
ExtendedColorConfig_Impl* ExtendedColorConfig::m_pImpl = NULL;
@@ -79,13 +79,13 @@ class ExtendedColorConfig_Impl : public utl::ConfigItem, public SfxBroadcaster
typedef ::std::vector<TConfigValues::iterator> TMapPos;
typedef ::std::pair< TConfigValues, TMapPos > TComponentMapping;
DECLARE_STL_USTRINGACCESS_MAP(TComponentMapping,TComponents);
- TComponents m_aConfigValues;
- TDisplayNames m_aComponentDisplayNames;
- ::std::vector<TComponents::iterator> m_aConfigValuesPos;
+ TComponents m_aConfigValues;
+ TDisplayNames m_aComponentDisplayNames;
+ ::std::vector<TComponents::iterator> m_aConfigValuesPos;
sal_Bool m_bEditMode;
rtl::OUString m_sLoadedScheme;
- sal_Bool m_bIsBroadcastEnabled;
+ sal_Bool m_bIsBroadcastEnabled;
static sal_Bool m_bLockBroadcast;
static sal_Bool m_bBroadcastWhenUnlocked;
@@ -99,15 +99,15 @@ public:
void CommitCurrentSchemeName();
//changes the name of the current scheme but doesn't load it!
void SetCurrentSchemeName(const rtl::OUString& rSchemeName) {m_sLoadedScheme = rSchemeName;}
- sal_Bool ExistsScheme(const ::rtl::OUString& _sSchemeName);
+ sal_Bool ExistsScheme(const ::rtl::OUString& _sSchemeName);
virtual void Commit();
virtual void Notify( const uno::Sequence<rtl::OUString>& aPropertyNames);
- sal_Int32 GetComponentCount() const;
- ::rtl::OUString GetComponentName(sal_uInt32 _nPos) const;
- ::rtl::OUString GetComponentDisplayName(const ::rtl::OUString& _sComponentName) const;
- sal_Int32 GetComponentColorCount(const ::rtl::OUString& _sName) const;
- ExtendedColorConfigValue GetComponentColorConfigValue(const ::rtl::OUString& _sName,sal_uInt32 _nPos) const;
+ sal_Int32 GetComponentCount() const;
+ ::rtl::OUString GetComponentName(sal_uInt32 _nPos) const;
+ ::rtl::OUString GetComponentDisplayName(const ::rtl::OUString& _sComponentName) const;
+ sal_Int32 GetComponentColorCount(const ::rtl::OUString& _sName) const;
+ ExtendedColorConfigValue GetComponentColorConfigValue(const ::rtl::OUString& _sName,sal_uInt32 _nPos) const;
ExtendedColorConfigValue GetColorConfigValue(const ::rtl::OUString& _sComponentName,const ::rtl::OUString& _sName)
{
@@ -141,9 +141,9 @@ public:
void ClearModified(){ConfigItem::ClearModified();}
void SettingsChanged();
- static void DisableBroadcast();
- static void EnableBroadcast();
- static sal_Bool IsEnableBroadcast();
+ static void DisableBroadcast();
+ static void EnableBroadcast();
+ static sal_Bool IsEnableBroadcast();
static void LockBroadcast();
static void UnlockBroadcast();
@@ -159,7 +159,7 @@ uno::Sequence< OUString> ExtendedColorConfig_Impl::GetPropertyNames(const rtl::O
{
uno::Sequence< OUString> aNames(GetNodeNames(rScheme));
::rtl::OUString* pIter = aNames.getArray();
- ::rtl::OUString* pEnd = pIter + aNames.getLength();
+ ::rtl::OUString* pEnd = pIter + aNames.getLength();
::rtl::OUString sSep(RTL_CONSTASCII_USTRINGPARAM("/"));
for(;pIter != pEnd;++pIter)
{
@@ -197,7 +197,7 @@ ExtendedColorConfigValue ExtendedColorConfig_Impl::GetComponentColorConfigValue(
return ExtendedColorConfigValue();
}
// -----------------------------------------------------------------------------
-::rtl::OUString ExtendedColorConfig_Impl::GetComponentDisplayName(const ::rtl::OUString& _sComponentName) const
+::rtl::OUString ExtendedColorConfig_Impl::GetComponentDisplayName(const ::rtl::OUString& _sComponentName) const
{
::rtl::OUString sRet;
TDisplayNames::const_iterator aFind = m_aComponentDisplayNames.find(_sComponentName);
@@ -257,8 +257,8 @@ void ExtendedColorConfig_Impl::EnableBroadcast()
ExtendedColorConfig::m_pImpl->m_bIsBroadcastEnabled = sal_True;
}
// -----------------------------------------------------------------------------
-sal_Bool ExtendedColorConfig_Impl::IsEnableBroadcast()
-{
+sal_Bool ExtendedColorConfig_Impl::IsEnableBroadcast()
+{
return ExtendedColorConfig::m_pImpl ? ExtendedColorConfig::m_pImpl->m_bIsBroadcastEnabled : sal_False;
}
/* -----------------------------22.03.2002 14:38------------------------------
@@ -303,7 +303,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
lcl_addString(aDisplayNames,sDisplayName);
uno::Sequence< uno::Any > aDisplayNamesValue = GetProperties( aDisplayNames );
-
+
const ::rtl::OUString* pDispIter = aDisplayNames.getConstArray();
const ::rtl::OUString* pDispEnd = pDispIter + aDisplayNames.getLength();
for(sal_Int32 j = 0;pDispIter != pDispEnd;++pDispIter,++j)
@@ -315,12 +315,12 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
::rtl::OUString sCurrentDisplayName;
aDisplayNamesValue[j] >>= sCurrentDisplayName;
aDisplayNameMap.insert(TDisplayNames::value_type(sName,sCurrentDisplayName));
- }
+ }
}
// load color settings
rtl::OUString sScheme(rScheme);
-
+
if(!sScheme.getLength())
{
//detect current scheme name
@@ -329,7 +329,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
uno::Sequence< uno::Any > aCurrentVal = GetProperties( aCurrent );
aCurrentVal.getConstArray()[0] >>= sScheme;
} // if(!sScheme.getLength())
-
+
m_sLoadedScheme = sScheme;
::rtl::OUString sBase(RTL_CONSTASCII_USTRINGPARAM("ExtendedColorScheme/ColorSchemes/"));
sBase += sScheme;
@@ -343,7 +343,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
if ( !m_sLoadedScheme.getLength() )
m_sLoadedScheme = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("default"));
-
+
if ( !sScheme.equalsAscii("default") )
{
::rtl::OUString sDefault(RTL_CONSTASCII_USTRINGPARAM("default"));
@@ -390,7 +390,7 @@ void ExtendedColorConfig_Impl::FillComponentColors(uno::Sequence < ::rtl::OUStri
::rtl::OUString* pColorIter = aColorNames.getArray();
::rtl::OUString* pColorEnd = pColorIter + aColorNames.getLength();
-
+
m_aConfigValuesPos.push_back(m_aConfigValues.insert(TComponents::value_type(sComponentName,TComponentMapping(TConfigValues(),TMapPos()))).first);
TConfigValues& aConfigValues = (*m_aConfigValuesPos.rbegin())->second.first;
TMapPos& aConfigValuesPos = (*m_aConfigValuesPos.rbegin())->second.second;
@@ -402,14 +402,14 @@ void ExtendedColorConfig_Impl::FillComponentColors(uno::Sequence < ::rtl::OUStri
pColorIter->getToken(2,'/',nIndex);
::rtl::OUString sName(pColorIter->copy(nIndex)),sDisplayName;
::rtl::OUString sTemp = sName.copy(0,sName.lastIndexOf(sColor));
-
+
TDisplayNames::const_iterator aFind = _rDisplayNames.find(sTemp);
nIndex = 0;
sName = sName.getToken(2,'/',nIndex);
OSL_ENSURE(aFind != _rDisplayNames.end(),"DisplayName is not in EntryNames config list!");
if ( aFind != _rDisplayNames.end() )
sDisplayName = aFind->second;
-
+
OSL_ENSURE(pColors[i].hasValue(),"Color config entry has NIL as color value set!");
OSL_ENSURE(pDefaultColors[i].hasValue(),"Color config entry has NIL as color value set!");
sal_Int32 nColor = 0,nDefaultColor = 0;
@@ -487,7 +487,7 @@ void ExtendedColorConfig_Impl::Commit()
::rtl::OUString s(RTL_CONSTASCII_USTRINGPARAM("ExtendedColorScheme/ColorSchemes"));
SetSetProperties(s, aPropValues);
}
- }
+ }
CommitCurrentSchemeName();
}
@@ -507,11 +507,11 @@ void ExtendedColorConfig_Impl::CommitCurrentSchemeName()
sal_Bool ExtendedColorConfig_Impl::ExistsScheme(const ::rtl::OUString& _sSchemeName)
{
::rtl::OUString sBase(RTL_CONSTASCII_USTRINGPARAM("ExtendedColorScheme/ColorSchemes"));
-
+
uno::Sequence < ::rtl::OUString > aComponentNames = GetPropertyNames(sBase);
sBase += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/")) + _sSchemeName;
const ::rtl::OUString* pCompIter = aComponentNames.getConstArray();
- const ::rtl::OUString* pCompEnd = pCompIter + aComponentNames.getLength();
+ const ::rtl::OUString* pCompEnd = pCompIter + aComponentNames.getLength();
for(;pCompIter != pCompEnd && *pCompIter != sBase;++pCompIter)
;
return pCompIter != pCompEnd;
diff --git a/svtools/source/config/fontsubstconfig.cxx b/svtools/source/config/fontsubstconfig.cxx
index 4202ffa45a52..53a8ae2879d2 100644
--- a/svtools/source/config/fontsubstconfig.cxx
+++ b/svtools/source/config/fontsubstconfig.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,10 +50,10 @@ using namespace com::sun::star::beans;
const sal_Char cReplacement[] = "Replacement";
const sal_Char cFontPairs[] = "FontPairs";
-const sal_Char cReplaceFont[] = "ReplaceFont";
+const sal_Char cReplaceFont[] = "ReplaceFont";
const sal_Char cSubstituteFont[]= "SubstituteFont";
-const sal_Char cOnScreenOnly[] = "OnScreenOnly";
-const sal_Char cAlways[] = "Always";
+const sal_Char cOnScreenOnly[] = "OnScreenOnly";
+const sal_Char cAlways[] = "Always";
//-----------------------------------------------------------------------------
typedef SubstitutionStruct* SubstitutionStructPtr;
@@ -62,7 +62,7 @@ SV_IMPL_PTRARR(SubstitutionStructArr, SubstitutionStructPtr);
//-----------------------------------------------------------------------------
struct SvtFontSubstConfig_Impl
{
- SubstitutionStructArr aSubstArr;
+ SubstitutionStructArr aSubstArr;
};
/* -----------------------------18.01.01 12:04--------------------------------
@@ -73,7 +73,7 @@ SvtFontSubstConfig::SvtFontSubstConfig() :
pImpl(new SvtFontSubstConfig_Impl)
{
RTL_LOGFILE_CONTEXT(aLog, "svtools SvtFontSubstConfig::SvtFontSubstConfig()");
-
+
Sequence<OUString> aNames(1);
aNames.getArray()[0] = C2U(cReplacement);
Sequence<Any> aValues = GetProperties(aNames);
@@ -94,10 +94,10 @@ SvtFontSubstConfig::SvtFontSubstConfig() :
OUString sStart(sPropPrefix);
sStart += pNodeNames[nNode];
sStart += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/"));
- pNames[nName] = sStart; pNames[nName++] += C2U(cReplaceFont);
- pNames[nName] = sStart; pNames[nName++] += C2U(cSubstituteFont);
- pNames[nName] = sStart; pNames[nName++] += C2U(cAlways);
- pNames[nName] = sStart; pNames[nName++] += C2U(cOnScreenOnly);
+ pNames[nName] = sStart; pNames[nName++] += C2U(cReplaceFont);
+ pNames[nName] = sStart; pNames[nName++] += C2U(cSubstituteFont);
+ pNames[nName] = sStart; pNames[nName++] += C2U(cAlways);
+ pNames[nName] = sStart; pNames[nName++] += C2U(cOnScreenOnly);
}
Sequence<Any> aNodeValues = GetProperties(aPropNames);
const Any* pNodeValues = aNodeValues.getConstArray();
diff --git a/svtools/source/config/helpopt.cxx b/svtools/source/config/helpopt.cxx
index 6e1f817ad622..b9bf4f005e03 100644
--- a/svtools/source/config/helpopt.cxx
+++ b/svtools/source/config/helpopt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,31 +50,31 @@ using namespace com::sun::star;
static SvtHelpOptions_Impl* pOptions = NULL;
static sal_Int32 nRefCount = 0;
-#define EXTENDEDHELP 0
-#define HELPTIPS 1
-#define AGENT_ENABLED 2
-#define AGENT_TIMEOUT 3
-#define AGENT_RETRYLIMIT 4
-#define LOCALE 5
-#define SYSTEM 6
+#define EXTENDEDHELP 0
+#define HELPTIPS 1
+#define AGENT_ENABLED 2
+#define AGENT_TIMEOUT 3
+#define AGENT_RETRYLIMIT 4
+#define LOCALE 5
+#define SYSTEM 6
#define STYLESHEET 7
class SvtHelpOptions_Impl : public utl::ConfigItem
{
IdList* pList;
- sal_Int32 nHelpAgentTimeoutPeriod;
- sal_Int32 nHelpAgentRetryLimit;
+ sal_Int32 nHelpAgentTimeoutPeriod;
+ sal_Int32 nHelpAgentRetryLimit;
sal_Bool bExtendedHelp;
sal_Bool bHelpTips;
sal_Bool bHelpAgentEnabled;
sal_Bool bWelcomeScreen;
- String aLocale;
- String aSystem;
+ String aLocale;
+ String aSystem;
String sHelpStyleSheet;
DECLARE_STL_USTRINGACCESS_MAP( sal_Int32, MapString2Int );
- MapString2Int aURLIgnoreCounters;
- ::osl::Mutex aIgnoreCounterSafety;
+ MapString2Int aURLIgnoreCounters;
+ ::osl::Mutex aIgnoreCounterSafety;
Sequence< OUString > GetPropertyNames();
@@ -90,25 +90,25 @@ public:
void SetHelpTips( sal_Bool b ) { bHelpTips = b; SetModified(); }
sal_Bool IsHelpTips() const { return bHelpTips; }
- void SetHelpAgentEnabled( sal_Bool b ) { bHelpAgentEnabled = b; SetModified(); }
- sal_Bool IsHelpAgentEnabled() const { return bHelpAgentEnabled; }
- void SetHelpAgentTimeoutPeriod( sal_Int32 _nSeconds ) { nHelpAgentTimeoutPeriod = _nSeconds; SetModified(); }
- sal_Int32 GetHelpAgentTimeoutPeriod( ) const { return nHelpAgentTimeoutPeriod; }
- void SetHelpAgentRetryLimit( sal_Int32 _nTrials ) { nHelpAgentRetryLimit = _nTrials; SetModified(); }
- sal_Int32 GetHelpAgentRetryLimit( ) const { return nHelpAgentRetryLimit; }
+ void SetHelpAgentEnabled( sal_Bool b ) { bHelpAgentEnabled = b; SetModified(); }
+ sal_Bool IsHelpAgentEnabled() const { return bHelpAgentEnabled; }
+ void SetHelpAgentTimeoutPeriod( sal_Int32 _nSeconds ) { nHelpAgentTimeoutPeriod = _nSeconds; SetModified(); }
+ sal_Int32 GetHelpAgentTimeoutPeriod( ) const { return nHelpAgentTimeoutPeriod; }
+ void SetHelpAgentRetryLimit( sal_Int32 _nTrials ) { nHelpAgentRetryLimit = _nTrials; SetModified(); }
+ sal_Int32 GetHelpAgentRetryLimit( ) const { return nHelpAgentRetryLimit; }
- sal_Int32 getAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
- void decAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
- void resetAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
- void resetAgentIgnoreURLCounter();
+ sal_Int32 getAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ void decAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ void resetAgentIgnoreURLCounter( const ::rtl::OUString& _rURL );
+ void resetAgentIgnoreURLCounter();
void SetWelcomeScreen( sal_Bool b ) { bWelcomeScreen = b; SetModified(); }
sal_Bool IsWelcomeScreen() const { return bWelcomeScreen; }
IdList* GetPIStarterList() { return pList; }
void AddToPIStarterList( sal_Int32 nId );
void RemoveFromPIStarterList( sal_Int32 nId );
- String GetLocale() const { return aLocale; }
- String GetSystem() const { return aSystem; }
+ String GetLocale() const { return aLocale; }
+ String GetSystem() const { return aSystem; }
const String& GetHelpStyleSheet()const{return sHelpStyleSheet;}
void SetHelpStyleSheet(const String& rStyleSheet){sHelpStyleSheet = rStyleSheet; SetModified();}
@@ -116,10 +116,10 @@ public:
static ::osl::Mutex & getInitMutex();
protected:
- void implLoadURLCounters();
- void implSaveURLCounters();
+ void implLoadURLCounters();
+ void implSaveURLCounters();
// to be called with aIgnoreCounterSafety locked
- void implGetURLCounters( Sequence< ::rtl::OUString >& _rNodeNames, Sequence< Any >& _rURLs, Sequence< Any >& _rCounter );
+ void implGetURLCounters( Sequence< ::rtl::OUString >& _rNodeNames, Sequence< Any >& _rURLs, Sequence< Any >& _rCounter );
};
Sequence< OUString > SvtHelpOptions_Impl::GetPropertyNames()
@@ -134,7 +134,7 @@ Sequence< OUString > SvtHelpOptions_Impl::GetPropertyNames()
"Locale",
"System",
"HelpStyleSheet",
-// "HowTo/Show"
+// "HowTo/Show"
};
const int nCount = sizeof( aPropNames ) / sizeof( const char* );
@@ -184,11 +184,11 @@ static int lcl_MapPropertyName( const ::rtl::OUString rCompare,
const uno::Sequence< ::rtl::OUString>& aInternalPropertyNames)
{
for(int nProp = 0; nProp < aInternalPropertyNames.getLength(); ++nProp)
- {
+ {
if( aInternalPropertyNames[nProp] == rCompare )
return nProp;
}
- return -1;
+ return -1;
}
void SvtHelpOptions_Impl::Load(const uno::Sequence< ::rtl::OUString>& rPropertyNames)
@@ -345,27 +345,27 @@ void SvtHelpOptions_Impl::implSaveURLCounters()
const ::rtl::OUString sCounterLocalPath = ::rtl::OUString::createFromAscii("/Counter");
// get the current URL/counter pairs (as they're persistent at the moment)
- Sequence< ::rtl::OUString > aNodeNames;
- Sequence< Any > aURLs;
- Sequence< Any > aCounters;
+ Sequence< ::rtl::OUString > aNodeNames;
+ Sequence< Any > aURLs;
+ Sequence< Any > aCounters;
implGetURLCounters(aNodeNames, aURLs, aCounters);
sal_Int32 nKnownURLs = aURLs.getLength();
- const ::rtl::OUString* pNodeNames = aNodeNames.getConstArray();
- const Any* pURLs = aURLs.getConstArray();
- const Any* pCounters = aCounters.getConstArray();
+ const ::rtl::OUString* pNodeNames = aNodeNames.getConstArray();
+ const Any* pURLs = aURLs.getConstArray();
+ const Any* pCounters = aCounters.getConstArray();
// check which of them must be deleted/modified
- Sequence< ::rtl::OUString > aDeleteFromConfig(nKnownURLs); // names of nodes to be deleted
- ::rtl::OUString* pDeleteFromConfig = aDeleteFromConfig.getArray();
- ::std::set< ::rtl::OUString > aAlreadyPresent; // URLs currently persistent
+ Sequence< ::rtl::OUString > aDeleteFromConfig(nKnownURLs); // names of nodes to be deleted
+ ::rtl::OUString* pDeleteFromConfig = aDeleteFromConfig.getArray();
+ ::std::set< ::rtl::OUString > aAlreadyPresent; // URLs currently persistent
// for modifying already existent nodes
- Sequence< ::rtl::OUString > aNewCounterNodePaths(nKnownURLs);
- Sequence< Any > aNewCounterValues(nKnownURLs);
- ::rtl::OUString* pNewCounterNodePaths = aNewCounterNodePaths.getArray();
- Any* pNewCounterValues = aNewCounterValues.getArray();
+ Sequence< ::rtl::OUString > aNewCounterNodePaths(nKnownURLs);
+ Sequence< Any > aNewCounterValues(nKnownURLs);
+ ::rtl::OUString* pNewCounterNodePaths = aNewCounterNodePaths.getArray();
+ Any* pNewCounterValues = aNewCounterValues.getArray();
// temporaries needed inside the loop
::rtl::OUString sCurrentURL, sCurrentURLNodeName;
@@ -377,13 +377,13 @@ void SvtHelpOptions_Impl::implSaveURLCounters()
ConstMapString2IntIterator aThisURLNewCounter = aURLIgnoreCounters.find(sCurrentURL);
if (aURLIgnoreCounters.end() == aThisURLNewCounter)
- { // we do not know anything about this URL anymore.
+ { // we do not know anything about this URL anymore.
// -> have to removed it from the configuration later on
*pDeleteFromConfig = *pNodeNames;
++pDeleteFromConfig;
}
else
- { // we know this URL
+ { // we know this URL
sCurrentURLNodeName = sIgnoreListNodePath;
sCurrentURLNodeName += sPathSeparator;
sCurrentURLNodeName += *pNodeNames;
@@ -395,7 +395,7 @@ void SvtHelpOptions_Impl::implSaveURLCounters()
(*pCounters) >>= nThisURLPersistentCounter;
if (aThisURLNewCounter->second != nThisURLPersistentCounter)
- { // the counter changed
+ { // the counter changed
// -> remember the path and the new counter for the adjustment below
*pNewCounterNodePaths = sCurrentURLNodeName;
*pNewCounterNodePaths += sCounterLocalPath;
@@ -425,15 +425,15 @@ void SvtHelpOptions_Impl::implSaveURLCounters()
// and for the new ones ...
::rtl::OUString sNewNodeName;
Sequence< ::rtl::OUString > aNewCounterDataNodeNames(2);
- Sequence< Any > aNewCounterDataValues(2);
+ Sequence< Any > aNewCounterDataValues(2);
const ::rtl::OUString sNodeNameBase = ::rtl::OUString::createFromAscii("URL");
- for ( ConstMapString2IntIterator aCollectNew = aURLIgnoreCounters.begin();
+ for ( ConstMapString2IntIterator aCollectNew = aURLIgnoreCounters.begin();
aCollectNew != aURLIgnoreCounters.end();
++aCollectNew
)
{
if (aAlreadyPresent.end() == aAlreadyPresent.find(aCollectNew->first))
- { // this URL is not persistent, yet
+ { // this URL is not persistent, yet
// -> add a new node
sNewNodeName = sNodeNameBase;
if (!getUniqueSetElementName(sIgnoreListNodePath, sNewNodeName))
@@ -448,13 +448,13 @@ void SvtHelpOptions_Impl::implSaveURLCounters()
aNewCounterDataNodeNames[0] += sPathSeparator;
aNewCounterDataNodeNames[0] += sNewNodeName;
aNewCounterDataNodeNames[0] += sURLLocalPath;
- aNewCounterDataValues[0] <<= aCollectNew->first;
+ aNewCounterDataValues[0] <<= aCollectNew->first;
aNewCounterDataNodeNames[1] = sIgnoreListNodePath;
aNewCounterDataNodeNames[1] += sPathSeparator;
aNewCounterDataNodeNames[1] += sNewNodeName;
aNewCounterDataNodeNames[1] += sCounterLocalPath;
- aNewCounterDataValues[1] <<= aCollectNew->second;
+ aNewCounterDataValues[1] <<= aCollectNew->second;
PutProperties(aNewCounterDataNodeNames, aNewCounterDataValues);
}
@@ -467,9 +467,9 @@ void SvtHelpOptions_Impl::implLoadURLCounters()
{
::osl::MutexGuard aGuard(aIgnoreCounterSafety);
- Sequence< ::rtl::OUString > aNodeNames;
- Sequence< Any > aURLs;
- Sequence< Any > aCounters;
+ Sequence< ::rtl::OUString > aNodeNames;
+ Sequence< Any > aURLs;
+ Sequence< Any > aCounters;
implGetURLCounters(aNodeNames, aURLs, aCounters);
sal_Int32 nKnownURLs = aURLs.getLength();
@@ -554,7 +554,7 @@ SvtHelpOptions::SvtHelpOptions()
{
RTL_LOGFILE_CONTEXT(aLog, "svtools ( ??? ) ::SvtHelpOptions_Impl::ctor()");
pOptions = new SvtHelpOptions_Impl;
-
+
ItemHolder2::holdConfigItem(E_HELPOPTIONS);
}
pImp = pOptions;
@@ -578,7 +578,7 @@ void SvtHelpOptions_Impl::decAgentIgnoreURLCounter( const ::rtl::OUString& _rURL
::osl::MutexGuard aGuard(aIgnoreCounterSafety);
MapString2IntIterator aMapPos = aURLIgnoreCounters.find(_rURL);
if (aURLIgnoreCounters.end() == aMapPos)
- { // nothing known about this URL 'til now
+ { // nothing known about this URL 'til now
sal_Int32 nLimit = GetHelpAgentRetryLimit();
sal_Int32 nIgnoreAgain = nLimit > 0 ? nLimit - 1 : 0;
aURLIgnoreCounters[_rURL] = nIgnoreAgain;
diff --git a/svtools/source/config/htmlcfg.cxx b/svtools/source/config/htmlcfg.cxx
index 77b9083c2481..9952d3e70052 100644
--- a/svtools/source/config/htmlcfg.cxx
+++ b/svtools/source/config/htmlcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,14 +38,14 @@
#include <sal/macros.h>
// -----------------------------------------------------------------------
-#define HTMLCFG_UNKNOWN_TAGS 0x01
-//#define HTMLCFG_STYLE_SHEETS 0x02
-//#define HTMLCFG_NETSCAPE3 0x04
-#define HTMLCFG_STAR_BASIC 0x08
-#define HTMLCFG_LOCAL_GRF 0x10
-#define HTMLCFG_PRINT_LAYOUT_EXTENSION 0x20
-#define HTMLCFG_IGNORE_FONT_FAMILY 0x40
-#define HTMLCFG_IS_BASIC_WARNING 0x80
+#define HTMLCFG_UNKNOWN_TAGS 0x01
+//#define HTMLCFG_STYLE_SHEETS 0x02
+//#define HTMLCFG_NETSCAPE3 0x04
+#define HTMLCFG_STAR_BASIC 0x08
+#define HTMLCFG_LOCAL_GRF 0x10
+#define HTMLCFG_PRINT_LAYOUT_EXTENSION 0x20
+#define HTMLCFG_IGNORE_FONT_FAMILY 0x40
+#define HTMLCFG_IS_BASIC_WARNING 0x80
#define HTMLCFG_NUMBERS_ENGLISH_US 0x100
using namespace utl;
@@ -63,10 +63,10 @@ DECLARE_LIST( LinkList, Link * )
struct HtmlOptions_Impl
{
LinkList aList;
- sal_Int32 nFlags;
- sal_Int32 nExportMode;
- sal_Int32 aFontSizeArr[HTML_FONT_COUNT];
- sal_Int32 eEncoding;
+ sal_Int32 nFlags;
+ sal_Int32 nExportMode;
+ sal_Int32 aFontSizeArr[HTML_FONT_COUNT];
+ sal_Int32 eEncoding;
sal_Bool bIsEncodingDefault;
HtmlOptions_Impl() :
@@ -95,21 +95,21 @@ const Sequence<OUString>& SvxHtmlOptions::GetPropertyNames()
{
static const char* aPropNames[] =
{
- "Import/UnknownTag", // 0
- "Import/FontSetting", // 1
- "Import/FontSize/Size_1", // 2
- "Import/FontSize/Size_2", // 3
- "Import/FontSize/Size_3", // 4
- "Import/FontSize/Size_4", // 5
- "Import/FontSize/Size_5", // 6
- "Import/FontSize/Size_6", // 7
- "Import/FontSize/Size_7", // 8
- "Export/Browser", // 9
- "Export/Basic", // 0
- "Export/PrintLayout", // 11
- "Export/LocalGraphic", // 12
- "Export/Warning", // 13
- "Export/Encoding", // 14
+ "Import/UnknownTag", // 0
+ "Import/FontSetting", // 1
+ "Import/FontSize/Size_1", // 2
+ "Import/FontSize/Size_2", // 3
+ "Import/FontSize/Size_3", // 4
+ "Import/FontSize/Size_4", // 5
+ "Import/FontSize/Size_5", // 6
+ "Import/FontSize/Size_6", // 7
+ "Import/FontSize/Size_7", // 8
+ "Export/Browser", // 9
+ "Export/Basic", // 0
+ "Export/PrintLayout", // 11
+ "Export/LocalGraphic", // 12
+ "Export/Warning", // 13
+ "Export/Encoding", // 14
"Import/NumbersEnglishUS" // 15
};
const int nCount = SAL_N_ELEMENTS(aPropNames);
@@ -166,17 +166,17 @@ void SvxHtmlOptions::Load( const Sequence< OUString >& aNames )
case 9://"Export/Browser",
{
sal_Int32 nExpMode = 0;
-// pValues[nProp] >>= pImp->nExportMode;
+// pValues[nProp] >>= pImp->nExportMode;
pValues[nProp] >>= nExpMode;
switch( nExpMode )
{
- case 0: nExpMode = HTML_CFG_HTML32; break;
- case 1: nExpMode = HTML_CFG_MSIE_40; break;
-// case 2: nExpMode = HTML_CFG_NS30; break; depricated
- case 3: nExpMode = HTML_CFG_WRITER; break;
- case 4: nExpMode = HTML_CFG_NS40; break;
- case 5: nExpMode = HTML_CFG_MSIE_40_OLD;break;
- default: nExpMode = HTML_CFG_NS40; break;
+ case 0: nExpMode = HTML_CFG_HTML32; break;
+ case 1: nExpMode = HTML_CFG_MSIE_40; break;
+// case 2: nExpMode = HTML_CFG_NS30; break; depricated
+ case 3: nExpMode = HTML_CFG_WRITER; break;
+ case 4: nExpMode = HTML_CFG_NS40; break;
+ case 5: nExpMode = HTML_CFG_MSIE_40_OLD;break;
+ default: nExpMode = HTML_CFG_NS40; break;
}
pImp->nExportMode = nExpMode;
@@ -214,15 +214,15 @@ void SvxHtmlOptions::Load( const Sequence< OUString >& aNames )
}
// -----------------------------------------------------------------------
-void SvxHtmlOptions::Commit()
+void SvxHtmlOptions::Commit()
{
const Sequence<OUString>& aNames = GetPropertyNames();
-// const OUString* pNames = aNames.getConstArray();
+// const OUString* pNames = aNames.getConstArray();
Sequence<Any> aValues(aNames.getLength());
Any* pValues = aValues.getArray();
-// const Type& rType = ::getBooleanCppuType();
+// const Type& rType = ::getBooleanCppuType();
for(int nProp = 0; nProp < aNames.getLength(); nProp++)
{
sal_Bool bSet = sal_False;
@@ -237,19 +237,19 @@ void SvxHtmlOptions::Commit()
case 6: pValues[nProp] <<= pImp->aFontSizeArr[4];break;//"Import/FontSize/Size_5",
case 7: pValues[nProp] <<= pImp->aFontSizeArr[5];break;//"Import/FontSize/Size_6",
case 8: pValues[nProp] <<= pImp->aFontSizeArr[6];break;//"Import/FontSize/Size_7",
- case 9: //"Export/Browser",
+ case 9: //"Export/Browser",
{
sal_Int32 nExpMode = pImp->nExportMode;
switch( nExpMode )
{
- case HTML_CFG_HTML32: nExpMode = 0; break;
- case HTML_CFG_MSIE_40: nExpMode = 1; break;
-// case HTML_CFG_NS30: nExpMode = 2; break; depricated
- case HTML_CFG_WRITER: nExpMode = 3; break;
- case HTML_CFG_NS40: nExpMode = 4; break;
- case HTML_CFG_MSIE_40_OLD: nExpMode = 5; break;
- default: nExpMode = 4; break; // NS40
+ case HTML_CFG_HTML32: nExpMode = 0; break;
+ case HTML_CFG_MSIE_40: nExpMode = 1; break;
+// case HTML_CFG_NS30: nExpMode = 2; break; depricated
+ case HTML_CFG_WRITER: nExpMode = 3; break;
+ case HTML_CFG_NS40: nExpMode = 4; break;
+ case HTML_CFG_MSIE_40_OLD: nExpMode = 5; break;
+ default: nExpMode = 4; break; // NS40
}
pValues[nProp] <<= nExpMode;
@@ -302,7 +302,7 @@ void SvxHtmlOptions::Notify( const com::sun::star::uno::Sequence< rtl::OUString
}
// -----------------------------------------------------------------------
-USHORT SvxHtmlOptions::GetFontSize(USHORT nPos) const
+USHORT SvxHtmlOptions::GetFontSize(USHORT nPos) const
{
if(nPos < HTML_FONT_COUNT)
return (USHORT)pImp->aFontSizeArr[nPos];
@@ -343,7 +343,7 @@ void SvxHtmlOptions::SetImportUnknown(BOOL bSet)
// -----------------------------------------------------------------------
-USHORT SvxHtmlOptions::GetExportMode() const
+USHORT SvxHtmlOptions::GetExportMode() const
{
return (USHORT)pImp->nExportMode;
}
@@ -405,7 +405,7 @@ void SvxHtmlOptions::SetSaveGraphicsLocal(BOOL bSet)
--------------------------------------------------*/
-BOOL SvxHtmlOptions::IsPrintLayoutExtension() const
+BOOL SvxHtmlOptions::IsPrintLayoutExtension() const
{
BOOL bRet = 0 != (pImp->nFlags & HTMLCFG_PRINT_LAYOUT_EXTENSION);
switch( pImp->nExportMode )
@@ -422,7 +422,7 @@ BOOL SvxHtmlOptions::IsPrintLayoutExtension() const
/*-----------------10/21/97 08:34am-----------------
--------------------------------------------------*/
-void SvxHtmlOptions::SetPrintLayoutExtension(BOOL bSet)
+void SvxHtmlOptions::SetPrintLayoutExtension(BOOL bSet)
{
if(bSet)
pImp->nFlags |= HTMLCFG_PRINT_LAYOUT_EXTENSION;
diff --git a/svtools/source/config/itemholder2.cxx b/svtools/source/config/itemholder2.cxx
index 2c0b250934b5..8508ea9b629f 100644
--- a/svtools/source/config/itemholder2.cxx
+++ b/svtools/source/config/itemholder2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/config/itemholder2.hxx b/svtools/source/config/itemholder2.hxx
index 884536d89bb0..25a41788ba84 100644
--- a/svtools/source/config/itemholder2.hxx
+++ b/svtools/source/config/itemholder2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/config/menuoptions.cxx b/svtools/source/config/menuoptions.cxx
index cb497a1ea6eb..e0b57c58bef2 100644
--- a/svtools/source/config/menuoptions.cxx
+++ b/svtools/source/config/menuoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,30 +41,30 @@
#include "itemholder2.hxx"
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_MENU OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/View/Menu" ))
-#define DEFAULT_DONTHIDEDISABLEDENTRIES sal_False
-#define DEFAULT_FOLLOWMOUSE sal_True
-#define DEFAULT_MENUICONS 2
+#define ROOTNODE_MENU OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/View/Menu" ))
+#define DEFAULT_DONTHIDEDISABLEDENTRIES sal_False
+#define DEFAULT_FOLLOWMOUSE sal_True
+#define DEFAULT_MENUICONS 2
-#define PROPERTYNAME_DONTHIDEDISABLEDENTRIES OUString(RTL_CONSTASCII_USTRINGPARAM("DontHideDisabledEntry" ))
-#define PROPERTYNAME_FOLLOWMOUSE OUString(RTL_CONSTASCII_USTRINGPARAM("FollowMouse" ))
+#define PROPERTYNAME_DONTHIDEDISABLEDENTRIES OUString(RTL_CONSTASCII_USTRINGPARAM("DontHideDisabledEntry" ))
+#define PROPERTYNAME_FOLLOWMOUSE OUString(RTL_CONSTASCII_USTRINGPARAM("FollowMouse" ))
#define PROPERTYNAME_SHOWICONSINMENUES OUString(RTL_CONSTASCII_USTRINGPARAM("ShowIconsInMenues" ))
#define PROPERTYNAME_SYSTEMICONSINMENUES OUString(RTL_CONSTASCII_USTRINGPARAM("IsSystemIconsInMenus" ))
-#define PROPERTYHANDLE_DONTHIDEDISABLEDENTRIES 0
-#define PROPERTYHANDLE_FOLLOWMOUSE 1
+#define PROPERTYHANDLE_DONTHIDEDISABLEDENTRIES 0
+#define PROPERTYHANDLE_FOLLOWMOUSE 1
#define PROPERTYHANDLE_SHOWICONSINMENUES 2
#define PROPERTYHANDLE_SYSTEMICONSINMENUES 3
@@ -75,29 +75,29 @@ using namespace ::com::sun::star::uno ;
DECLARE_LIST( LinkList, Link * )
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
class SvtMenuOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
LinkList aList;
- sal_Bool m_bDontHideDisabledEntries ; /// cache "DontHideDisabledEntries" of Menu section
- sal_Bool m_bFollowMouse ; /// cache "FollowMouse" of Menu section
- sal_Int16 m_nMenuIcons ; /// cache "MenuIcons" of Menu section
+ sal_Bool m_bDontHideDisabledEntries ; /// cache "DontHideDisabledEntries" of Menu section
+ sal_Bool m_bFollowMouse ; /// cache "FollowMouse" of Menu section
+ sal_Int16 m_nMenuIcons ; /// cache "MenuIcons" of Menu section
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtMenuOptions_Impl();
@@ -107,67 +107,67 @@ class SvtMenuOptions_Impl : public ConfigItem
void RemoveListenerLink( const Link& rLink );
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& seqPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short access method to get internal values
- @descr These method give us a chance to regulate acces to ouer internal values.
+ @short access method to get internal values
+ @descr These method give us a chance to regulate acces to ouer internal values.
It's not used in the moment - but it's possible for the feature!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- sal_Bool IsEntryHidingEnabled() const
+ sal_Bool IsEntryHidingEnabled() const
{ return m_bDontHideDisabledEntries; }
- sal_Bool IsFollowMouseEnabled() const
+ sal_Bool IsFollowMouseEnabled() const
{ return m_bFollowMouse; }
- sal_Int16 GetMenuIconsState() const
+ sal_Int16 GetMenuIconsState() const
{ return m_nMenuIcons; }
- void SetEntryHidingState ( sal_Bool bState )
+ void SetEntryHidingState ( sal_Bool bState )
{
m_bDontHideDisabledEntries = bState;
SetModified();
@@ -176,7 +176,7 @@ class SvtMenuOptions_Impl : public ConfigItem
Commit();
}
- void SetFollowMouseState ( sal_Bool bState )
+ void SetFollowMouseState ( sal_Bool bState )
{
m_bFollowMouse = bState;
SetModified();
@@ -185,7 +185,7 @@ class SvtMenuOptions_Impl : public ConfigItem
Commit();
}
- void SetMenuIconsState ( sal_Int16 nState )
+ void SetMenuIconsState ( sal_Int16 nState )
{
m_nMenuIcons = nState;
SetModified();
@@ -195,45 +195,45 @@ class SvtMenuOptions_Impl : public ConfigItem
}
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return list of fix key names of ouer configuration management which represent oue module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of fix key names of ouer configuration management which represent oue module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management.
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
static Sequence< OUString > impl_GetPropertyNames();
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtMenuOptions_Impl::SvtMenuOptions_Impl()
// Init baseclasses first
- : ConfigItem ( ROOTNODE_MENU )
+ : ConfigItem ( ROOTNODE_MENU )
// Init member then.
- , m_bDontHideDisabledEntries ( DEFAULT_DONTHIDEDISABLEDENTRIES )
- , m_bFollowMouse ( DEFAULT_FOLLOWMOUSE )
- , m_nMenuIcons ( DEFAULT_MENUICONS )
+ , m_bDontHideDisabledEntries ( DEFAULT_DONTHIDEDISABLEDENTRIES )
+ , m_bFollowMouse ( DEFAULT_FOLLOWMOUSE )
+ , m_nMenuIcons ( DEFAULT_MENUICONS )
{
// Use our static list of configuration keys to get his values.
- Sequence< OUString > seqNames = impl_GetPropertyNames();
- Sequence< Any > seqValues = GetProperties( seqNames ) ;
+ Sequence< OUString > seqNames = impl_GetPropertyNames();
+ Sequence< Any > seqValues = GetProperties( seqNames ) ;
// Safe impossible cases.
// We need values from ALL configuration keys.
@@ -251,8 +251,8 @@ SvtMenuOptions_Impl::SvtMenuOptions_Impl()
}
// Copy values from list in right order to ouer internal member.
- sal_Int32 nPropertyCount = seqValues.getLength() ;
- sal_Int32 nProperty = 0 ;
+ sal_Int32 nPropertyCount = seqValues.getLength() ;
+ sal_Int32 nProperty = 0 ;
for( nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
// Safe impossible cases.
@@ -260,13 +260,13 @@ SvtMenuOptions_Impl::SvtMenuOptions_Impl()
DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtMenuOptions_Impl::SvtMenuOptions_Impl()\nInvalid property value for property detected!\n" );
switch( nProperty )
{
- case PROPERTYHANDLE_DONTHIDEDISABLEDENTRIES : {
+ case PROPERTYHANDLE_DONTHIDEDISABLEDENTRIES : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtMenuOptions_Impl::SvtMenuOptions_Impl()\nWho has changed the value type of \"Office.Common\\View\\Menu\\DontHideDisabledEntry\"?" );
seqValues[nProperty] >>= m_bDontHideDisabledEntries;
}
break;
- case PROPERTYHANDLE_FOLLOWMOUSE : {
+ case PROPERTYHANDLE_FOLLOWMOUSE : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtMenuOptions_Impl::SvtMenuOptions_Impl()\nWho has changed the value type of \"Office.Common\\View\\Menu\\FollowMouse\"?" );
seqValues[nProperty] >>= m_bFollowMouse;
}
@@ -276,7 +276,7 @@ SvtMenuOptions_Impl::SvtMenuOptions_Impl()
seqValues[nProperty] >>= bMenuIcons;
}
break;
- case PROPERTYHANDLE_SYSTEMICONSINMENUES : {
+ case PROPERTYHANDLE_SYSTEMICONSINMENUES : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtMenuOptions_Impl::SvtMenuOptions_Impl()\nWho has changed the value type of \"Office.Common\\View\\Menu\\IsSystemIconsInMenus\"?" );
seqValues[nProperty] >>= bSystemMenuIcons;
}
@@ -290,7 +290,7 @@ SvtMenuOptions_Impl::SvtMenuOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtMenuOptions_Impl::~SvtMenuOptions_Impl()
{
@@ -306,7 +306,7 @@ SvtMenuOptions_Impl::~SvtMenuOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtMenuOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
{
@@ -358,24 +358,24 @@ void SvtMenuOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtMenuOptions_Impl::Commit()
{
// Get names of supported properties, create a list for values and copy current values to it.
- Sequence< OUString > seqNames = impl_GetPropertyNames();
- sal_Int32 nCount = seqNames.getLength();
- Sequence< Any > seqValues ( nCount );
+ Sequence< OUString > seqNames = impl_GetPropertyNames();
+ sal_Int32 nCount = seqNames.getLength();
+ Sequence< Any > seqValues ( nCount );
for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty )
{
switch( nProperty )
{
- case PROPERTYHANDLE_DONTHIDEDISABLEDENTRIES : {
+ case PROPERTYHANDLE_DONTHIDEDISABLEDENTRIES : {
seqValues[nProperty] <<= m_bDontHideDisabledEntries;
}
break;
- case PROPERTYHANDLE_FOLLOWMOUSE : {
+ case PROPERTYHANDLE_FOLLOWMOUSE : {
seqValues[nProperty] <<= m_bFollowMouse;
}
break;
@@ -385,7 +385,7 @@ void SvtMenuOptions_Impl::Commit()
seqValues[nProperty] <<= bValue;
}
break;
- case PROPERTYHANDLE_SYSTEMICONSINMENUES : {
+ case PROPERTYHANDLE_SYSTEMICONSINMENUES : {
sal_Bool bValue = (m_nMenuIcons == 2 ? sal_True : sal_False) ;
seqValues[nProperty] <<= bValue;
}
@@ -397,16 +397,16 @@ void SvtMenuOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtMenuOptions_Impl::impl_GetPropertyNames()
{
// Build static list of configuration key names.
static const OUString pProperties[] =
{
- PROPERTYNAME_DONTHIDEDISABLEDENTRIES ,
- PROPERTYNAME_FOLLOWMOUSE ,
- PROPERTYNAME_SHOWICONSINMENUES ,
+ PROPERTYNAME_DONTHIDEDISABLEDENTRIES ,
+ PROPERTYNAME_FOLLOWMOUSE ,
+ PROPERTYNAME_SHOWICONSINMENUES ,
PROPERTYNAME_SYSTEMICONSINMENUES
};
// Initialize return sequence with these list ...
@@ -433,15 +433,15 @@ void SvtMenuOptions_Impl::RemoveListenerLink( const Link& rLink )
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtMenuOptions_Impl* SvtMenuOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtMenuOptions::m_nRefCount = 0 ;
+SvtMenuOptions_Impl* SvtMenuOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtMenuOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtMenuOptions::SvtMenuOptions()
{
@@ -460,7 +460,7 @@ SvtMenuOptions::SvtMenuOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtMenuOptions::~SvtMenuOptions()
{
@@ -478,7 +478,7 @@ SvtMenuOptions::~SvtMenuOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtMenuOptions::IsEntryHidingEnabled() const
{
@@ -487,7 +487,7 @@ sal_Bool SvtMenuOptions::IsEntryHidingEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtMenuOptions::IsFollowMouseEnabled() const
{
@@ -496,7 +496,7 @@ sal_Bool SvtMenuOptions::IsFollowMouseEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtMenuOptions::SetEntryHidingState( sal_Bool bState )
{
@@ -505,7 +505,7 @@ void SvtMenuOptions::SetEntryHidingState( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtMenuOptions::SetFollowMouseState( sal_Bool bState )
{
@@ -514,7 +514,7 @@ void SvtMenuOptions::SetFollowMouseState( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int16 SvtMenuOptions::GetMenuIconsState() const
{
@@ -523,7 +523,7 @@ sal_Int16 SvtMenuOptions::GetMenuIconsState() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtMenuOptions::SetMenuIconsState( sal_Int16 bState )
{
@@ -532,7 +532,7 @@ void SvtMenuOptions::SetMenuIconsState( sal_Int16 bState )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtMenuOptions::GetOwnStaticMutex()
{
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index 8d481799789f..7ec66b1f1329 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_svtools.hxx"
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <svtools/miscopt.hxx>
@@ -50,41 +50,41 @@
#include <vcl/svapp.hxx>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
-#define ROOTNODE_MISC ASCII_STR("Office.Common/Misc")
-#define DEFAULT_PLUGINSENABLED sal_True;
-
-#define PROPERTYNAME_PLUGINSENABLED ASCII_STR("PluginsEnabled")
-#define PROPERTYHANDLE_PLUGINSENABLED 0
-#define PROPERTYNAME_SYMBOLSET ASCII_STR("SymbolSet")
-#define PROPERTYHANDLE_SYMBOLSET 1
-#define PROPERTYNAME_TOOLBOXSTYLE ASCII_STR("ToolboxStyle")
-#define PROPERTYHANDLE_TOOLBOXSTYLE 2
-#define PROPERTYNAME_USESYSTEMFILEDIALOG ASCII_STR("UseSystemFileDialog")
-#define PROPERTYHANDLE_USESYSTEMFILEDIALOG 3
-#define PROPERTYNAME_SYMBOLSTYLE ASCII_STR("SymbolStyle")
-#define PROPERTYHANDLE_SYMBOLSTYLE 4
-#define PROPERTYNAME_USESYSTEMPRINTDIALOG ASCII_STR("UseSystemPrintDialog")
-#define PROPERTYHANDLE_USESYSTEMPRINTDIALOG 5
+#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
+#define ROOTNODE_MISC ASCII_STR("Office.Common/Misc")
+#define DEFAULT_PLUGINSENABLED sal_True;
+
+#define PROPERTYNAME_PLUGINSENABLED ASCII_STR("PluginsEnabled")
+#define PROPERTYHANDLE_PLUGINSENABLED 0
+#define PROPERTYNAME_SYMBOLSET ASCII_STR("SymbolSet")
+#define PROPERTYHANDLE_SYMBOLSET 1
+#define PROPERTYNAME_TOOLBOXSTYLE ASCII_STR("ToolboxStyle")
+#define PROPERTYHANDLE_TOOLBOXSTYLE 2
+#define PROPERTYNAME_USESYSTEMFILEDIALOG ASCII_STR("UseSystemFileDialog")
+#define PROPERTYHANDLE_USESYSTEMFILEDIALOG 3
+#define PROPERTYNAME_SYMBOLSTYLE ASCII_STR("SymbolStyle")
+#define PROPERTYHANDLE_SYMBOLSTYLE 4
+#define PROPERTYNAME_USESYSTEMPRINTDIALOG ASCII_STR("UseSystemPrintDialog")
+#define PROPERTYHANDLE_USESYSTEMPRINTDIALOG 5
#define PROPERTYNAME_TRYODMADIALOG ASCII_STR("TryODMADialog")
#define PROPERTYHANDLE_TRYODMADIALOG 6
-#define PROPERTYNAME_SHOWLINKWARNINGDIALOG ASCII_STR("ShowLinkWarningDialog")
+#define PROPERTYNAME_SHOWLINKWARNINGDIALOG ASCII_STR("ShowLinkWarningDialog")
#define PROPERTYHANDLE_SHOWLINKWARNINGDIALOG 7
-#define PROPERTYNAME_DISABLEUICUSTOMIZATION ASCII_STR("DisableUICustomization")
-#define PROPERTYHANDLE_DISABLEUICUSTOMIZATION 8
+#define PROPERTYNAME_DISABLEUICUSTOMIZATION ASCII_STR("DisableUICustomization")
+#define PROPERTYHANDLE_DISABLEUICUSTOMIZATION 8
#define PROPERTYNAME_ALWAYSALLOWSAVE ASCII_STR("AlwaysAllowSave")
#define PROPERTYHANDLE_ALWAYSALLOWSAVE 9
#define PROPERTYNAME_EXPERIMENTALMODE ASCII_STR("ExperimentalMode")
@@ -92,18 +92,18 @@ using namespace ::com::sun::star;
#define PROPERTYCOUNT 11
-#define VCL_TOOLBOX_STYLE_FLAT ((USHORT)0x0004) // from <vcl/toolbox.hxx>
+#define VCL_TOOLBOX_STYLE_FLAT ((USHORT)0x0004) // from <vcl/toolbox.hxx>
DECLARE_LIST( LinkList, Link * )
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
class SvtMiscOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -128,34 +128,34 @@ class SvtMiscOptions_Impl : public ConfigItem
sal_Bool m_bExperimentalMode;
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtMiscOptions_Impl();
~SvtMiscOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& seqPropertyNames );
@@ -167,22 +167,22 @@ class SvtMiscOptions_Impl : public ConfigItem
void Load( const Sequence< OUString >& rPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
inline sal_Bool UseSystemFileDialog() const
@@ -280,22 +280,22 @@ class SvtMiscOptions_Impl : public ConfigItem
void CallListeners();
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return list of key names of ouer configuration management which represent oue module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of key names of ouer configuration management which represent oue module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management.
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
static Sequence< OUString > GetPropertyNames();
@@ -305,7 +305,7 @@ class SvtMiscOptions_Impl : public ConfigItem
};
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtMiscOptions_Impl::SvtMiscOptions_Impl()
// Init baseclasses first
@@ -331,7 +331,7 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl()
{
// Use our static list of configuration keys to get his values.
- Sequence< OUString > seqNames = GetPropertyNames ( );
+ Sequence< OUString > seqNames = GetPropertyNames ( );
Load( seqNames );
Sequence< Any > seqValues = GetProperties ( seqNames );
Sequence< sal_Bool > seqRO = GetReadOnlyStates ( seqNames );
@@ -460,7 +460,7 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtMiscOptions_Impl::~SvtMiscOptions_Impl()
{
@@ -664,7 +664,7 @@ void SvtMiscOptions_Impl::SetPluginsEnabled( sal_Bool bEnable )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtMiscOptions_Impl::Notify( const Sequence< OUString >& rPropertyNames )
{
@@ -673,14 +673,14 @@ void SvtMiscOptions_Impl::Notify( const Sequence< OUString >& rPropertyNames )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtMiscOptions_Impl::Commit()
{
// Get names of supported properties, create a list for values and copy current values to it.
- Sequence< OUString > seqNames = GetPropertyNames ();
- sal_Int32 nCount = seqNames.getLength();
- Sequence< Any > seqValues ( nCount );
+ Sequence< OUString > seqNames = GetPropertyNames ();
+ sal_Int32 nCount = seqNames.getLength();
+ Sequence< Any > seqValues ( nCount );
for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty )
{
switch( nProperty )
@@ -763,7 +763,7 @@ void SvtMiscOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtMiscOptions_Impl::GetPropertyNames()
{
@@ -790,15 +790,15 @@ Sequence< OUString > SvtMiscOptions_Impl::GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtMiscOptions_Impl* SvtMiscOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtMiscOptions::m_nRefCount = 0 ;
+SvtMiscOptions_Impl* SvtMiscOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtMiscOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtMiscOptions::SvtMiscOptions()
{
@@ -816,7 +816,7 @@ SvtMiscOptions::SvtMiscOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtMiscOptions::~SvtMiscOptions()
{
@@ -1007,7 +1007,7 @@ sal_Bool SvtMiscOptions::IsExperimentalMode() const
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex & SvtMiscOptions::GetInitMutex()
{
diff --git a/svtools/source/config/optionsdrawinglayer.cxx b/svtools/source/config/optionsdrawinglayer.cxx
index 546212bebc45..60df691ab8b9 100644
--- a/svtools/source/config/optionsdrawinglayer.cxx
+++ b/svtools/source/config/optionsdrawinglayer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#endif
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <svtools/optionsdrawinglayer.hxx>
@@ -46,189 +46,189 @@
#include <vcl/outdev.hxx>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Drawinglayer" ))
-#define DEFAULT_OVERLAYBUFFER sal_True
-#define DEFAULT_PAINTBUFFER sal_True
-#define DEFAULT_STRIPE_COLOR_A 0
-#define DEFAULT_STRIPE_COLOR_B 16581375
-#define DEFAULT_STRIPE_LENGTH 4
+#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Drawinglayer" ))
+#define DEFAULT_OVERLAYBUFFER sal_True
+#define DEFAULT_PAINTBUFFER sal_True
+#define DEFAULT_STRIPE_COLOR_A 0
+#define DEFAULT_STRIPE_COLOR_B 16581375
+#define DEFAULT_STRIPE_LENGTH 4
// #i73602#
// #i74769#, #i75172# : Change default for Calc and Writer to True
-#define DEFAULT_OVERLAYBUFFER_CALC sal_True
-#define DEFAULT_OVERLAYBUFFER_WRITER sal_True
-#define DEFAULT_OVERLAYBUFFER_DRAWIMPRESS sal_True
+#define DEFAULT_OVERLAYBUFFER_CALC sal_True
+#define DEFAULT_OVERLAYBUFFER_WRITER sal_True
+#define DEFAULT_OVERLAYBUFFER_DRAWIMPRESS sal_True
// #i74769#, #i75172#
-#define DEFAULT_PAINTBUFFER_CALC sal_True
-#define DEFAULT_PAINTBUFFER_WRITER sal_True
-#define DEFAULT_PAINTBUFFER_DRAWIMPRESS sal_True
+#define DEFAULT_PAINTBUFFER_CALC sal_True
+#define DEFAULT_PAINTBUFFER_WRITER sal_True
+#define DEFAULT_PAINTBUFFER_DRAWIMPRESS sal_True
// #i4219#
-#define DEFAULT_MAXIMUMPAPERWIDTH 300
-#define DEFAULT_MAXIMUMPAPERHEIGHT 300
-#define DEFAULT_MAXIMUMPAPERLEFTMARGIN 9999
-#define DEFAULT_MAXIMUMPAPERRIGHTMARGIN 9999
-#define DEFAULT_MAXIMUMPAPERTOPMARGIN 9999
-#define DEFAULT_MAXIMUMPAPERBOTTOMMARGIN 9999
+#define DEFAULT_MAXIMUMPAPERWIDTH 300
+#define DEFAULT_MAXIMUMPAPERHEIGHT 300
+#define DEFAULT_MAXIMUMPAPERLEFTMARGIN 9999
+#define DEFAULT_MAXIMUMPAPERRIGHTMARGIN 9999
+#define DEFAULT_MAXIMUMPAPERTOPMARGIN 9999
+#define DEFAULT_MAXIMUMPAPERBOTTOMMARGIN 9999
// primitives
-#define DEFAULT_ANTIALIASING sal_True
-#define DEFAULT_SNAPHORVERLINESTODISCRETE sal_True
-#define DEFAULT_SOLIDDRAGCREATE sal_True
-#define DEFAULT_RENDERDECORATEDTEXTDIRECT sal_True
-#define DEFAULT_RENDERSIMPLETEXTDIRECT sal_True
-#define DEFAULT_QUADRATIC3DRENDERLIMIT 1000000
-#define DEFAULT_QUADRATICFORMCONTROLRENDERLIMIT 45000
+#define DEFAULT_ANTIALIASING sal_True
+#define DEFAULT_SNAPHORVERLINESTODISCRETE sal_True
+#define DEFAULT_SOLIDDRAGCREATE sal_True
+#define DEFAULT_RENDERDECORATEDTEXTDIRECT sal_True
+#define DEFAULT_RENDERSIMPLETEXTDIRECT sal_True
+#define DEFAULT_QUADRATIC3DRENDERLIMIT 1000000
+#define DEFAULT_QUADRATICFORMCONTROLRENDERLIMIT 45000
// #i97672# selection settings
-#define DEFAULT_TRANSPARENTSELECTION sal_True
-#define DEFAULT_TRANSPARENTSELECTIONPERCENT 75
+#define DEFAULT_TRANSPARENTSELECTION sal_True
+#define DEFAULT_TRANSPARENTSELECTIONPERCENT 75
#define DEFAULT_SELECTIONMAXIMUMLUMINANCEPERCENT 70
-#define PROPERTYNAME_OVERLAYBUFFER OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer" ))
-#define PROPERTYNAME_PAINTBUFFER OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer" ))
-#define PROPERTYNAME_STRIPE_COLOR_A OUString(RTL_CONSTASCII_USTRINGPARAM("StripeColorA" ))
-#define PROPERTYNAME_STRIPE_COLOR_B OUString(RTL_CONSTASCII_USTRINGPARAM("StripeColorB" ))
-#define PROPERTYNAME_STRIPE_LENGTH OUString(RTL_CONSTASCII_USTRINGPARAM("StripeLength" ))
+#define PROPERTYNAME_OVERLAYBUFFER OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer" ))
+#define PROPERTYNAME_PAINTBUFFER OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer" ))
+#define PROPERTYNAME_STRIPE_COLOR_A OUString(RTL_CONSTASCII_USTRINGPARAM("StripeColorA" ))
+#define PROPERTYNAME_STRIPE_COLOR_B OUString(RTL_CONSTASCII_USTRINGPARAM("StripeColorB" ))
+#define PROPERTYNAME_STRIPE_LENGTH OUString(RTL_CONSTASCII_USTRINGPARAM("StripeLength" ))
// #i73602#
-#define PROPERTYNAME_OVERLAYBUFFER_CALC OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_Calc"))
-#define PROPERTYNAME_OVERLAYBUFFER_WRITER OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_Writer"))
-#define PROPERTYNAME_OVERLAYBUFFER_DRAWIMPRESS OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_DrawImpress"))
+#define PROPERTYNAME_OVERLAYBUFFER_CALC OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_Calc"))
+#define PROPERTYNAME_OVERLAYBUFFER_WRITER OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_Writer"))
+#define PROPERTYNAME_OVERLAYBUFFER_DRAWIMPRESS OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_DrawImpress"))
// #i74769#, #i75172#
-#define PROPERTYNAME_PAINTBUFFER_CALC OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_Calc"))
-#define PROPERTYNAME_PAINTBUFFER_WRITER OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_Writer"))
-#define PROPERTYNAME_PAINTBUFFER_DRAWIMPRESS OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_DrawImpress"))
+#define PROPERTYNAME_PAINTBUFFER_CALC OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_Calc"))
+#define PROPERTYNAME_PAINTBUFFER_WRITER OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_Writer"))
+#define PROPERTYNAME_PAINTBUFFER_DRAWIMPRESS OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_DrawImpress"))
// #i4219#
-#define PROPERTYNAME_MAXIMUMPAPERWIDTH OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperWidth"))
-#define PROPERTYNAME_MAXIMUMPAPERHEIGHT OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperHeight"))
-#define PROPERTYNAME_MAXIMUMPAPERLEFTMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperLeftMargin"))
-#define PROPERTYNAME_MAXIMUMPAPERRIGHTMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperRightMargin"))
-#define PROPERTYNAME_MAXIMUMPAPERTOPMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperTopMargin"))
-#define PROPERTYNAME_MAXIMUMPAPERBOTTOMMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperBottomMargin"))
+#define PROPERTYNAME_MAXIMUMPAPERWIDTH OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperWidth"))
+#define PROPERTYNAME_MAXIMUMPAPERHEIGHT OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperHeight"))
+#define PROPERTYNAME_MAXIMUMPAPERLEFTMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperLeftMargin"))
+#define PROPERTYNAME_MAXIMUMPAPERRIGHTMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperRightMargin"))
+#define PROPERTYNAME_MAXIMUMPAPERTOPMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperTopMargin"))
+#define PROPERTYNAME_MAXIMUMPAPERBOTTOMMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperBottomMargin"))
// primitives
-#define PROPERTYNAME_ANTIALIASING OUString(RTL_CONSTASCII_USTRINGPARAM("AntiAliasing"))
-#define PROPERTYNAME_SNAPHORVERLINESTODISCRETE OUString(RTL_CONSTASCII_USTRINGPARAM("SnapHorVerLinesToDiscrete"))
-#define PROPERTYNAME_SOLIDDRAGCREATE OUString(RTL_CONSTASCII_USTRINGPARAM("SolidDragCreate"))
-#define PROPERTYNAME_RENDERDECORATEDTEXTDIRECT OUString(RTL_CONSTASCII_USTRINGPARAM("RenderDecoratedTextDirect"))
-#define PROPERTYNAME_RENDERSIMPLETEXTDIRECT OUString(RTL_CONSTASCII_USTRINGPARAM("RenderSimpleTextDirect"))
-#define PROPERTYNAME_QUADRATIC3DRENDERLIMIT OUString(RTL_CONSTASCII_USTRINGPARAM("Quadratic3DRenderLimit"))
-#define PROPERTYNAME_QUADRATICFORMCONTROLRENDERLIMIT OUString(RTL_CONSTASCII_USTRINGPARAM("QuadraticFormControlRenderLimit"))
+#define PROPERTYNAME_ANTIALIASING OUString(RTL_CONSTASCII_USTRINGPARAM("AntiAliasing"))
+#define PROPERTYNAME_SNAPHORVERLINESTODISCRETE OUString(RTL_CONSTASCII_USTRINGPARAM("SnapHorVerLinesToDiscrete"))
+#define PROPERTYNAME_SOLIDDRAGCREATE OUString(RTL_CONSTASCII_USTRINGPARAM("SolidDragCreate"))
+#define PROPERTYNAME_RENDERDECORATEDTEXTDIRECT OUString(RTL_CONSTASCII_USTRINGPARAM("RenderDecoratedTextDirect"))
+#define PROPERTYNAME_RENDERSIMPLETEXTDIRECT OUString(RTL_CONSTASCII_USTRINGPARAM("RenderSimpleTextDirect"))
+#define PROPERTYNAME_QUADRATIC3DRENDERLIMIT OUString(RTL_CONSTASCII_USTRINGPARAM("Quadratic3DRenderLimit"))
+#define PROPERTYNAME_QUADRATICFORMCONTROLRENDERLIMIT OUString(RTL_CONSTASCII_USTRINGPARAM("QuadraticFormControlRenderLimit"))
// #i97672# selection settings
-#define PROPERTYNAME_TRANSPARENTSELECTION OUString(RTL_CONSTASCII_USTRINGPARAM("TransparentSelection"))
-#define PROPERTYNAME_TRANSPARENTSELECTIONPERCENT OUString(RTL_CONSTASCII_USTRINGPARAM("TransparentSelectionPercent"))
-#define PROPERTYNAME_SELECTIONMAXIMUMLUMINANCEPERCENT OUString(RTL_CONSTASCII_USTRINGPARAM("SelectionMaximumLuminancePercent"))
+#define PROPERTYNAME_TRANSPARENTSELECTION OUString(RTL_CONSTASCII_USTRINGPARAM("TransparentSelection"))
+#define PROPERTYNAME_TRANSPARENTSELECTIONPERCENT OUString(RTL_CONSTASCII_USTRINGPARAM("TransparentSelectionPercent"))
+#define PROPERTYNAME_SELECTIONMAXIMUMLUMINANCEPERCENT OUString(RTL_CONSTASCII_USTRINGPARAM("SelectionMaximumLuminancePercent"))
-#define PROPERTYHANDLE_OVERLAYBUFFER 0
-#define PROPERTYHANDLE_PAINTBUFFER 1
-#define PROPERTYHANDLE_STRIPE_COLOR_A 2
-#define PROPERTYHANDLE_STRIPE_COLOR_B 3
-#define PROPERTYHANDLE_STRIPE_LENGTH 4
+#define PROPERTYHANDLE_OVERLAYBUFFER 0
+#define PROPERTYHANDLE_PAINTBUFFER 1
+#define PROPERTYHANDLE_STRIPE_COLOR_A 2
+#define PROPERTYHANDLE_STRIPE_COLOR_B 3
+#define PROPERTYHANDLE_STRIPE_LENGTH 4
// #i73602#
-#define PROPERTYHANDLE_OVERLAYBUFFER_CALC 5
-#define PROPERTYHANDLE_OVERLAYBUFFER_WRITER 6
-#define PROPERTYHANDLE_OVERLAYBUFFER_DRAWIMPRESS 7
+#define PROPERTYHANDLE_OVERLAYBUFFER_CALC 5
+#define PROPERTYHANDLE_OVERLAYBUFFER_WRITER 6
+#define PROPERTYHANDLE_OVERLAYBUFFER_DRAWIMPRESS 7
// #i74769#, #i75172#
-#define PROPERTYHANDLE_PAINTBUFFER_CALC 8
-#define PROPERTYHANDLE_PAINTBUFFER_WRITER 9
-#define PROPERTYHANDLE_PAINTBUFFER_DRAWIMPRESS 10
+#define PROPERTYHANDLE_PAINTBUFFER_CALC 8
+#define PROPERTYHANDLE_PAINTBUFFER_WRITER 9
+#define PROPERTYHANDLE_PAINTBUFFER_DRAWIMPRESS 10
// #i4219#
-#define PROPERTYHANDLE_MAXIMUMPAPERWIDTH 11
-#define PROPERTYHANDLE_MAXIMUMPAPERHEIGHT 12
-#define PROPERTYHANDLE_MAXIMUMPAPERLEFTMARGIN 13
-#define PROPERTYHANDLE_MAXIMUMPAPERRIGHTMARGIN 14
-#define PROPERTYHANDLE_MAXIMUMPAPERTOPMARGIN 15
-#define PROPERTYHANDLE_MAXIMUMPAPERBOTTOMMARGIN 16
+#define PROPERTYHANDLE_MAXIMUMPAPERWIDTH 11
+#define PROPERTYHANDLE_MAXIMUMPAPERHEIGHT 12
+#define PROPERTYHANDLE_MAXIMUMPAPERLEFTMARGIN 13
+#define PROPERTYHANDLE_MAXIMUMPAPERRIGHTMARGIN 14
+#define PROPERTYHANDLE_MAXIMUMPAPERTOPMARGIN 15
+#define PROPERTYHANDLE_MAXIMUMPAPERBOTTOMMARGIN 16
// primitives
-#define PROPERTYHANDLE_ANTIALIASING 17
-#define PROPERTYHANDLE_SNAPHORVERLINESTODISCRETE 18
-#define PROPERTYHANDLE_SOLIDDRAGCREATE 19
-#define PROPERTYHANDLE_RENDERDECORATEDTEXTDIRECT 20
-#define PROPERTYHANDLE_RENDERSIMPLETEXTDIRECT 21
-#define PROPERTYHANDLE_QUADRATIC3DRENDERLIMIT 22
-#define PROPERTYHANDLE_QUADRATICFORMCONTROLRENDERLIMIT 23
+#define PROPERTYHANDLE_ANTIALIASING 17
+#define PROPERTYHANDLE_SNAPHORVERLINESTODISCRETE 18
+#define PROPERTYHANDLE_SOLIDDRAGCREATE 19
+#define PROPERTYHANDLE_RENDERDECORATEDTEXTDIRECT 20
+#define PROPERTYHANDLE_RENDERSIMPLETEXTDIRECT 21
+#define PROPERTYHANDLE_QUADRATIC3DRENDERLIMIT 22
+#define PROPERTYHANDLE_QUADRATICFORMCONTROLRENDERLIMIT 23
// #i97672# selection settings
-#define PROPERTYHANDLE_TRANSPARENTSELECTION 24
-#define PROPERTYHANDLE_TRANSPARENTSELECTIONPERCENT 25
-#define PROPERTYHANDLE_SELECTIONMAXIMUMLUMINANCEPERCENT 26
+#define PROPERTYHANDLE_TRANSPARENTSELECTION 24
+#define PROPERTYHANDLE_TRANSPARENTSELECTIONPERCENT 25
+#define PROPERTYHANDLE_SELECTIONMAXIMUMLUMINANCEPERCENT 26
-#define PROPERTYCOUNT 27
+#define PROPERTYCOUNT 27
class SvtOptionsDrawinglayer_Impl : public ConfigItem
{
public:
//---------------------------------------------------------------------------------------------------------
-// constructor / destructor
+// constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtOptionsDrawinglayer_Impl();
~SvtOptionsDrawinglayer_Impl();
//---------------------------------------------------------------------------------------------------------
-// overloaded methods of baseclass
+// overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
//---------------------------------------------------------------------------------------------------------
-// public interface
+// public interface
//---------------------------------------------------------------------------------------------------------
- sal_Bool IsOverlayBuffer() const;
- sal_Bool IsPaintBuffer() const;
- Color GetStripeColorA() const;
- Color GetStripeColorB() const;
- sal_uInt16 GetStripeLength() const;
+ sal_Bool IsOverlayBuffer() const;
+ sal_Bool IsPaintBuffer() const;
+ Color GetStripeColorA() const;
+ Color GetStripeColorB() const;
+ sal_uInt16 GetStripeLength() const;
// #i73602#
- sal_Bool IsOverlayBuffer_Calc() const;
- sal_Bool IsOverlayBuffer_Writer() const;
- sal_Bool IsOverlayBuffer_DrawImpress() const;
+ sal_Bool IsOverlayBuffer_Calc() const;
+ sal_Bool IsOverlayBuffer_Writer() const;
+ sal_Bool IsOverlayBuffer_DrawImpress() const;
// #i74769#, #i75172#
- sal_Bool IsPaintBuffer_Calc() const;
- sal_Bool IsPaintBuffer_Writer() const;
- sal_Bool IsPaintBuffer_DrawImpress() const;
+ sal_Bool IsPaintBuffer_Calc() const;
+ sal_Bool IsPaintBuffer_Writer() const;
+ sal_Bool IsPaintBuffer_DrawImpress() const;
- void SetOverlayBuffer( sal_Bool bState );
- void SetPaintBuffer( sal_Bool bState );
- void SetStripeColorA( Color aColor );
- void SetStripeColorB( Color aColor );
- void SetStripeLength( sal_uInt16 nLength );
+ void SetOverlayBuffer( sal_Bool bState );
+ void SetPaintBuffer( sal_Bool bState );
+ void SetStripeColorA( Color aColor );
+ void SetStripeColorB( Color aColor );
+ void SetStripeLength( sal_uInt16 nLength );
// #i73602#
- void SetOverlayBuffer_Calc( sal_Bool bState );
- void SetOverlayBuffer_Writer( sal_Bool bState );
- void SetOverlayBuffer_DrawImpress( sal_Bool bState );
+ void SetOverlayBuffer_Calc( sal_Bool bState );
+ void SetOverlayBuffer_Writer( sal_Bool bState );
+ void SetOverlayBuffer_DrawImpress( sal_Bool bState );
// #i74769#, #i75172#
- void SetPaintBuffer_Calc( sal_Bool bState );
- void SetPaintBuffer_Writer( sal_Bool bState );
- void SetPaintBuffer_DrawImpress( sal_Bool bState );
+ void SetPaintBuffer_Calc( sal_Bool bState );
+ void SetPaintBuffer_Writer( sal_Bool bState );
+ void SetPaintBuffer_DrawImpress( sal_Bool bState );
// #i4219#
sal_uInt32 GetMaximumPaperWidth() const;
@@ -249,33 +249,33 @@ public:
sal_Bool IsAAPossibleOnThisSystem() const;
// primitives
- sal_Bool IsAntiAliasing() const;
- sal_Bool IsSnapHorVerLinesToDiscrete() const;
- sal_Bool IsSolidDragCreate() const;
- sal_Bool IsRenderDecoratedTextDirect() const;
- sal_Bool IsRenderSimpleTextDirect() const;
+ sal_Bool IsAntiAliasing() const;
+ sal_Bool IsSnapHorVerLinesToDiscrete() const;
+ sal_Bool IsSolidDragCreate() const;
+ sal_Bool IsRenderDecoratedTextDirect() const;
+ sal_Bool IsRenderSimpleTextDirect() const;
sal_uInt32 GetQuadratic3DRenderLimit() const;
sal_uInt32 GetQuadraticFormControlRenderLimit() const;
- void SetAntiAliasing( sal_Bool bState );
- void SetSnapHorVerLinesToDiscrete( sal_Bool bState );
- void SetSolidDragCreate( sal_Bool bState );
- void SetRenderDecoratedTextDirect( sal_Bool bState );
- void SetRenderSimpleTextDirect( sal_Bool bState );
+ void SetAntiAliasing( sal_Bool bState );
+ void SetSnapHorVerLinesToDiscrete( sal_Bool bState );
+ void SetSolidDragCreate( sal_Bool bState );
+ void SetRenderDecoratedTextDirect( sal_Bool bState );
+ void SetRenderSimpleTextDirect( sal_Bool bState );
void SetQuadratic3DRenderLimit(sal_uInt32 nNew);
void SetQuadraticFormControlRenderLimit(sal_uInt32 nNew);
// #i97672# selection settings
- sal_Bool IsTransparentSelection() const;
- sal_uInt16 GetTransparentSelectionPercent() const;
- sal_uInt16 GetSelectionMaximumLuminancePercent() const;
+ sal_Bool IsTransparentSelection() const;
+ sal_uInt16 GetTransparentSelectionPercent() const;
+ sal_uInt16 GetSelectionMaximumLuminancePercent() const;
- void SetTransparentSelection( sal_Bool bState );
- void SetTransparentSelectionPercent( sal_uInt16 nPercent );
- void SetSelectionMaximumLuminancePercent( sal_uInt16 nPercent );
+ void SetTransparentSelection( sal_Bool bState );
+ void SetTransparentSelectionPercent( sal_uInt16 nPercent );
+ void SetSelectionMaximumLuminancePercent( sal_uInt16 nPercent );
//-------------------------------------------------------------------------------------------------------------
-// private methods
+// private methods
//-------------------------------------------------------------------------------------------------------------
private:
@@ -283,48 +283,48 @@ private:
static Sequence< OUString > impl_GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
-// private member
+// private member
//-------------------------------------------------------------------------------------------------------------
private:
- sal_Bool m_bOverlayBuffer;
- sal_Bool m_bPaintBuffer;
- Color m_bStripeColorA;
- Color m_bStripeColorB;
- sal_uInt16 m_nStripeLength;
+ sal_Bool m_bOverlayBuffer;
+ sal_Bool m_bPaintBuffer;
+ Color m_bStripeColorA;
+ Color m_bStripeColorB;
+ sal_uInt16 m_nStripeLength;
// #i73602#
- sal_Bool m_bOverlayBuffer_Calc;
- sal_Bool m_bOverlayBuffer_Writer;
- sal_Bool m_bOverlayBuffer_DrawImpress;
+ sal_Bool m_bOverlayBuffer_Calc;
+ sal_Bool m_bOverlayBuffer_Writer;
+ sal_Bool m_bOverlayBuffer_DrawImpress;
// #i74769#, #i75172#
- sal_Bool m_bPaintBuffer_Calc;
- sal_Bool m_bPaintBuffer_Writer;
- sal_Bool m_bPaintBuffer_DrawImpress;
+ sal_Bool m_bPaintBuffer_Calc;
+ sal_Bool m_bPaintBuffer_Writer;
+ sal_Bool m_bPaintBuffer_DrawImpress;
// #i4219#
- sal_uInt32 m_nMaximumPaperWidth;
- sal_uInt32 m_nMaximumPaperHeight;
- sal_uInt32 m_nMaximumPaperLeftMargin;
- sal_uInt32 m_nMaximumPaperRightMargin;
- sal_uInt32 m_nMaximumPaperTopMargin;
- sal_uInt32 m_nMaximumPaperBottomMargin;
+ sal_uInt32 m_nMaximumPaperWidth;
+ sal_uInt32 m_nMaximumPaperHeight;
+ sal_uInt32 m_nMaximumPaperLeftMargin;
+ sal_uInt32 m_nMaximumPaperRightMargin;
+ sal_uInt32 m_nMaximumPaperTopMargin;
+ sal_uInt32 m_nMaximumPaperBottomMargin;
// primitives
- sal_Bool m_bAntiAliasing;
- sal_Bool m_bSnapHorVerLinesToDiscrete;
- sal_Bool m_bSolidDragCreate;
- sal_Bool m_bRenderDecoratedTextDirect;
- sal_Bool m_bRenderSimpleTextDirect;
- sal_uInt32 m_nQuadratic3DRenderLimit;
- sal_uInt32 m_nQuadraticFormControlRenderLimit;
+ sal_Bool m_bAntiAliasing;
+ sal_Bool m_bSnapHorVerLinesToDiscrete;
+ sal_Bool m_bSolidDragCreate;
+ sal_Bool m_bRenderDecoratedTextDirect;
+ sal_Bool m_bRenderSimpleTextDirect;
+ sal_uInt32 m_nQuadratic3DRenderLimit;
+ sal_uInt32 m_nQuadraticFormControlRenderLimit;
// #i97672# selection settings
- sal_uInt16 m_nTransparentSelectionPercent;
- sal_uInt16 m_nSelectionMaximumLuminancePercent;
- sal_Bool m_bTransparentSelection;
+ sal_uInt16 m_nTransparentSelectionPercent;
+ sal_uInt16 m_nSelectionMaximumLuminancePercent;
+ sal_Bool m_bTransparentSelection;
// local values
bool m_bAllowAA : 1;
@@ -332,14 +332,14 @@ private:
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl() :
- ConfigItem( ROOTNODE_START ),
+ ConfigItem( ROOTNODE_START ),
m_bOverlayBuffer( DEFAULT_OVERLAYBUFFER ),
m_bPaintBuffer( DEFAULT_PAINTBUFFER ),
m_bStripeColorA(Color(DEFAULT_STRIPE_COLOR_A)),
@@ -382,14 +382,14 @@ SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl() :
m_bAllowAA(true),
m_bAllowAAChecked(false)
{
- Sequence< OUString > seqNames( impl_GetPropertyNames() );
- Sequence< Any > seqValues = GetProperties( seqNames ) ;
+ Sequence< OUString > seqNames( impl_GetPropertyNames() );
+ Sequence< Any > seqValues = GetProperties( seqNames ) ;
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl()\nI miss some values of configuration keys!\n" );
// Copy values from list in right order to ouer internal member.
sal_Int32 nPropertyCount = seqValues.getLength();
- sal_Int32 nProperty = 0;
+ sal_Int32 nProperty = 0;
for( nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
@@ -581,13 +581,13 @@ SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl() :
seqValues[nProperty] >>= m_bTransparentSelection;
}
break;
-
+
case PROPERTYHANDLE_TRANSPARENTSELECTIONPERCENT:
{
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_SHORT), "SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl()\nWho has changed the value type of \"Office.Common\\Drawinglayer\\TransparentSelectionPercent\"?" );
seqValues[nProperty] >>= m_nTransparentSelectionPercent;
}
-
+
case PROPERTYHANDLE_SELECTIONMAXIMUMLUMINANCEPERCENT:
{
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_SHORT), "SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl()\nWho has changed the value type of \"Office.Common\\Drawinglayer\\SelectionMaximumLuminancePercent\"?" );
@@ -599,7 +599,7 @@ SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl() :
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtOptionsDrawinglayer_Impl::~SvtOptionsDrawinglayer_Impl()
{
@@ -608,12 +608,12 @@ SvtOptionsDrawinglayer_Impl::~SvtOptionsDrawinglayer_Impl()
}
//*****************************************************************************************************************
-// Commit
+// Commit
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::Commit()
{
- Sequence< OUString > aSeqNames( impl_GetPropertyNames() );
- Sequence< Any > aSeqValues( aSeqNames.getLength() );
+ Sequence< OUString > aSeqNames( impl_GetPropertyNames() );
+ Sequence< Any > aSeqValues( aSeqNames.getLength() );
for( sal_Int32 nProperty = 0, nCount = aSeqNames.getLength(); nProperty < nCount; ++nProperty )
{
@@ -742,7 +742,7 @@ void SvtOptionsDrawinglayer_Impl::Notify( const com::sun::star::uno::Sequence<rt
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtOptionsDrawinglayer_Impl::IsOverlayBuffer() const
{
@@ -750,7 +750,7 @@ sal_Bool SvtOptionsDrawinglayer_Impl::IsOverlayBuffer() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtOptionsDrawinglayer_Impl::IsPaintBuffer() const
{
@@ -758,7 +758,7 @@ sal_Bool SvtOptionsDrawinglayer_Impl::IsPaintBuffer() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Color SvtOptionsDrawinglayer_Impl::GetStripeColorA() const
{
@@ -766,7 +766,7 @@ Color SvtOptionsDrawinglayer_Impl::GetStripeColorA() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Color SvtOptionsDrawinglayer_Impl::GetStripeColorB() const
{
@@ -774,7 +774,7 @@ Color SvtOptionsDrawinglayer_Impl::GetStripeColorB() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_uInt16 SvtOptionsDrawinglayer_Impl::GetStripeLength() const
{
@@ -845,7 +845,7 @@ sal_uInt32 SvtOptionsDrawinglayer_Impl::GetMaximumPaperBottomMargin() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetOverlayBuffer( sal_Bool bState )
{
@@ -857,7 +857,7 @@ void SvtOptionsDrawinglayer_Impl::SetOverlayBuffer( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetPaintBuffer( sal_Bool bState )
{
@@ -869,7 +869,7 @@ void SvtOptionsDrawinglayer_Impl::SetPaintBuffer( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetStripeColorA( Color aColor )
{
@@ -881,7 +881,7 @@ void SvtOptionsDrawinglayer_Impl::SetStripeColorA( Color aColor )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetStripeColorB( Color aColor )
{
@@ -893,7 +893,7 @@ void SvtOptionsDrawinglayer_Impl::SetStripeColorB( Color aColor )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetStripeLength( sal_uInt16 nLength )
{
@@ -1183,18 +1183,18 @@ sal_uInt16 SvtOptionsDrawinglayer_Impl::GetSelectionMaximumLuminancePercent() co
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtOptionsDrawinglayer_Impl::impl_GetPropertyNames()
{
// Build static list of configuration key names.
static const OUString pProperties[] =
{
- PROPERTYNAME_OVERLAYBUFFER ,
- PROPERTYNAME_PAINTBUFFER ,
- PROPERTYNAME_STRIPE_COLOR_A ,
- PROPERTYNAME_STRIPE_COLOR_B ,
- PROPERTYNAME_STRIPE_LENGTH ,
+ PROPERTYNAME_OVERLAYBUFFER ,
+ PROPERTYNAME_PAINTBUFFER ,
+ PROPERTYNAME_STRIPE_COLOR_A ,
+ PROPERTYNAME_STRIPE_COLOR_B ,
+ PROPERTYNAME_STRIPE_LENGTH ,
// #i73602#
PROPERTYNAME_OVERLAYBUFFER_CALC,
@@ -1222,7 +1222,7 @@ Sequence< OUString > SvtOptionsDrawinglayer_Impl::impl_GetPropertyNames()
PROPERTYNAME_RENDERSIMPLETEXTDIRECT,
PROPERTYNAME_QUADRATIC3DRENDERLIMIT,
PROPERTYNAME_QUADRATICFORMCONTROLRENDERLIMIT,
-
+
// #i97672# selection settings
PROPERTYNAME_TRANSPARENTSELECTION,
PROPERTYNAME_TRANSPARENTSELECTIONPERCENT,
@@ -1236,15 +1236,15 @@ Sequence< OUString > SvtOptionsDrawinglayer_Impl::impl_GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
SvtOptionsDrawinglayer_Impl* SvtOptionsDrawinglayer::m_pDataContainer = NULL;
sal_Int32 SvtOptionsDrawinglayer::m_nRefCount = 0;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtOptionsDrawinglayer::SvtOptionsDrawinglayer()
{
@@ -1260,7 +1260,7 @@ SvtOptionsDrawinglayer::SvtOptionsDrawinglayer()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtOptionsDrawinglayer::~SvtOptionsDrawinglayer()
{
@@ -1278,7 +1278,7 @@ SvtOptionsDrawinglayer::~SvtOptionsDrawinglayer()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtOptionsDrawinglayer::IsOverlayBuffer() const
{
@@ -1287,7 +1287,7 @@ sal_Bool SvtOptionsDrawinglayer::IsOverlayBuffer() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtOptionsDrawinglayer::IsPaintBuffer() const
{
@@ -1296,7 +1296,7 @@ sal_Bool SvtOptionsDrawinglayer::IsPaintBuffer() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Color SvtOptionsDrawinglayer::GetStripeColorA() const
{
@@ -1305,7 +1305,7 @@ Color SvtOptionsDrawinglayer::GetStripeColorA() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Color SvtOptionsDrawinglayer::GetStripeColorB() const
{
@@ -1314,7 +1314,7 @@ Color SvtOptionsDrawinglayer::GetStripeColorB() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_uInt16 SvtOptionsDrawinglayer::GetStripeLength() const
{
@@ -1398,7 +1398,7 @@ sal_uInt32 SvtOptionsDrawinglayer::GetMaximumPaperBottomMargin() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetOverlayBuffer( sal_Bool bState )
{
@@ -1407,7 +1407,7 @@ void SvtOptionsDrawinglayer::SetOverlayBuffer( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetPaintBuffer( sal_Bool bState )
{
@@ -1416,7 +1416,7 @@ void SvtOptionsDrawinglayer::SetPaintBuffer( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetStripeColorA( Color aColor )
{
@@ -1425,7 +1425,7 @@ void SvtOptionsDrawinglayer::SetStripeColorA( Color aColor )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetStripeColorB( Color aColor )
{
@@ -1434,7 +1434,7 @@ void SvtOptionsDrawinglayer::SetStripeColorB( Color aColor )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetStripeLength( sal_uInt16 nLength )
{
@@ -1686,7 +1686,7 @@ void SvtOptionsDrawinglayer::SetSelectionMaximumLuminancePercent( sal_uInt16 nPe
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtOptionsDrawinglayer::GetOwnStaticMutex()
{
diff --git a/svtools/source/config/printoptions.cxx b/svtools/source/config/printoptions.cxx
index f76104c132c8..fc032ff5b68f 100644
--- a/svtools/source/config/printoptions.cxx
+++ b/svtools/source/config/printoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_svtools.hxx"
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <svtools/printoptions.hxx>
@@ -70,13 +70,13 @@ static USHORT aDPIArray[] = { 72, 96, 150, 200, 300, 600 };
// - Defines -
// -----------
-#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Print/Option"))
+#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Print/Option"))
#define ROOTNODE_PRINTOPTION OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.Office.Common/Print/Option"))
-#define PROPERTYNAME_REDUCETRANSPARENCY OUString(RTL_CONSTASCII_USTRINGPARAM("ReduceTransparency"))
-#define PROPERTYNAME_REDUCEDTRANSPARENCYMODE OUString(RTL_CONSTASCII_USTRINGPARAM("ReducedTransparencyMode"))
-#define PROPERTYNAME_REDUCEGRADIENTS OUString(RTL_CONSTASCII_USTRINGPARAM("ReduceGradients"))
-#define PROPERTYNAME_REDUCEDGRADIENTMODE OUString(RTL_CONSTASCII_USTRINGPARAM("ReducedGradientMode"))
+#define PROPERTYNAME_REDUCETRANSPARENCY OUString(RTL_CONSTASCII_USTRINGPARAM("ReduceTransparency"))
+#define PROPERTYNAME_REDUCEDTRANSPARENCYMODE OUString(RTL_CONSTASCII_USTRINGPARAM("ReducedTransparencyMode"))
+#define PROPERTYNAME_REDUCEGRADIENTS OUString(RTL_CONSTASCII_USTRINGPARAM("ReduceGradients"))
+#define PROPERTYNAME_REDUCEDGRADIENTMODE OUString(RTL_CONSTASCII_USTRINGPARAM("ReducedGradientMode"))
#define PROPERTYNAME_REDUCEDGRADIENTSTEPCOUNT OUString(RTL_CONSTASCII_USTRINGPARAM("ReducedGradientStepCount"))
#define PROPERTYNAME_REDUCEBITMAPS OUString(RTL_CONSTASCII_USTRINGPARAM("ReduceBitmaps"))
#define PROPERTYNAME_REDUCEDBITMAPMODE OUString(RTL_CONSTASCII_USTRINGPARAM("ReducedBitmapMode"))
@@ -102,10 +102,10 @@ static SvtPrintOptions_Impl* pPrinterOptionsDataContainer = NULL;
static SvtPrintOptions_Impl* pPrintFileOptionsDataContainer = NULL;
SvtPrintOptions_Impl* SvtPrinterOptions::m_pStaticDataContainer = NULL;
-sal_Int32 SvtPrinterOptions::m_nRefCount = 0;
+sal_Int32 SvtPrinterOptions::m_nRefCount = 0;
SvtPrintOptions_Impl* SvtPrintFileOptions::m_pStaticDataContainer = NULL;
-sal_Int32 SvtPrintFileOptions::m_nRefCount = 0;
+sal_Int32 SvtPrintFileOptions::m_nRefCount = 0;
// ------------------------
// - SvtPrintOptions_Impl -
@@ -116,28 +116,28 @@ class SvtPrintOptions_Impl
public:
//---------------------------------------------------------------------------------------------------------
-// constructor / destructor
+// constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtPrintOptions_Impl( const OUString& rConfigRoot );
~SvtPrintOptions_Impl();
//---------------------------------------------------------------------------------------------------------
-// public interface
+// public interface
//---------------------------------------------------------------------------------------------------------
- sal_Bool IsReduceTransparency() const ;
+ sal_Bool IsReduceTransparency() const ;
sal_Int16 GetReducedTransparencyMode() const ;
- sal_Bool IsReduceGradients() const ;
+ sal_Bool IsReduceGradients() const ;
sal_Int16 GetReducedGradientMode() const ;
sal_Int16 GetReducedGradientStepCount() const ;
- sal_Bool IsReduceBitmaps() const ;
+ sal_Bool IsReduceBitmaps() const ;
sal_Int16 GetReducedBitmapMode() const ;
sal_Int16 GetReducedBitmapResolution() const ;
- sal_Bool IsReducedBitmapIncludesTransparency() const ;
- sal_Bool IsConvertToGreyscales() const;
+ sal_Bool IsReducedBitmapIncludesTransparency() const ;
+ sal_Bool IsConvertToGreyscales() const;
- void SetReduceTransparency( sal_Bool bState ) ;
+ void SetReduceTransparency( sal_Bool bState ) ;
void SetReducedTransparencyMode( sal_Int16 nMode ) ;
void SetReduceGradients( sal_Bool bState ) ;
void SetReducedGradientMode( sal_Int16 nMode ) ;
@@ -149,7 +149,7 @@ public:
void SetConvertToGreyscales( sal_Bool bState ) ;
//-------------------------------------------------------------------------------------------------------------
-// private API
+// private API
//-------------------------------------------------------------------------------------------------------------
private:
@@ -159,7 +159,7 @@ private:
::sal_Int16 nNew );
//-------------------------------------------------------------------------------------------------------------
-// private member
+// private member
//-------------------------------------------------------------------------------------------------------------
private:
diff --git a/svtools/source/config/test/test.cxx b/svtools/source/config/test/test.cxx
index dc0256f5a134..47772a6d51e1 100644
--- a/svtools/source/config/test/test.cxx
+++ b/svtools/source/config/test/test.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,13 +37,13 @@
#define TEST_DYNAMICMENUOPTIONS
//_________________________________________________________________________________________________________________
-// my own includes
+// my own includes
//_________________________________________________________________________________________________________________
#include <unotools/dynamicmenuoptions.hxx>
//_________________________________________________________________________________________________________________
-// interface includes
+// interface includes
//_________________________________________________________________________________________________________________
#include <cppuhelper/bootstrap.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
@@ -51,7 +51,7 @@
#include <com/sun/star/registry/XSimpleRegistry.hpp>
//_________________________________________________________________________________________________________________
-// other includes
+// other includes
//_________________________________________________________________________________________________________________
#include <comphelper/regpathhelper.hxx>
@@ -79,23 +79,23 @@
#include <stdio.h>
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
//_________________________________________________________________________________________________________________
-// namespace
+// namespace
//_________________________________________________________________________________________________________________
-using namespace ::rtl ;
+using namespace ::rtl ;
using namespace ::osl ;
-using namespace ::comphelper ;
-using namespace ::com::sun::star::uno ;
+using namespace ::comphelper ;
+using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star::lang ;
using namespace ::com::sun::star::beans ;
using namespace ::com::sun::star::registry ;
//_________________________________________________________________________________________________________________
-// defines
+// defines
//_________________________________________________________________________________________________________________
#define ASCII( STEXT ) OUString( RTL_CONSTASCII_USTRINGPARAM( STEXT ))
@@ -104,7 +104,7 @@ using namespace ::com::sun::star::registry ;
#define SERVICENAME_NESTEDREGISTRY OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.registry.NestedRegistry" ))
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
class TestApplication : public Application
@@ -132,16 +132,16 @@ class TestApplication : public Application
//*************************************************************************************************************
private:
-}; // class TestApplication
+}; // class TestApplication
//_________________________________________________________________________________________________________________
-// global variables
+// global variables
//_________________________________________________________________________________________________________________
-TestApplication aTestApplication ;
+TestApplication aTestApplication ;
//_________________________________________________________________________________________________________________
-// main
+// main
//_________________________________________________________________________________________________________________
void TestApplication::Main()
@@ -163,7 +163,7 @@ void TestApplication::Main()
impl_testDynamicMenuOptions();
#endif
-// Execute();
+// Execute();
OSL_ENSURE( sal_False, "Test was successful!\n" );
}
diff --git a/svtools/source/contnr/cont_pch.cxx b/svtools/source/contnr/cont_pch.cxx
index 3abdd131677a..b0cb4baac918 100644
--- a/svtools/source/contnr/cont_pch.cxx
+++ b/svtools/source/contnr/cont_pch.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/contnr/contentenumeration.cxx b/svtools/source/contnr/contentenumeration.cxx
index 0f40bf0fbb18..1a7a1bae0045 100644
--- a/svtools/source/contnr/contentenumeration.cxx
+++ b/svtools/source/contnr/contentenumeration.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,12 +60,12 @@ namespace svt
#define ROW_DATE_CREATE 4
#define ROW_IS_FOLDER 5
#define ROW_TARGET_URL 6
-#define ROW_IS_HIDDEN 7
-#define ROW_IS_VOLUME 8
-#define ROW_IS_REMOTE 9
-#define ROW_IS_REMOVEABLE 10
-#define ROW_IS_FLOPPY 11
-#define ROW_IS_COMPACTDISC 12
+#define ROW_IS_HIDDEN 7
+#define ROW_IS_VOLUME 8
+#define ROW_IS_REMOTE 9
+#define ROW_IS_REMOVEABLE 10
+#define ROW_IS_FLOPPY 11
+#define ROW_IS_COMPACTDISC 12
#define CONVERT_DATETIME( aUnoDT, aToolsDT ) \
aToolsDT = ::DateTime( Date( aUnoDT.Day, aUnoDT.Month, aUnoDT.Year ), \
@@ -103,7 +103,7 @@ namespace svt
,m_pFilter ( NULL )
,m_pTranslator ( _pTranslator )
,m_bCancelled ( false )
- ,m_rBlackList ( ::com::sun::star::uno::Sequence< ::rtl::OUString >() )
+ ,m_rBlackList ( ::com::sun::star::uno::Sequence< ::rtl::OUString >() )
{
}
@@ -125,9 +125,9 @@ namespace svt
}
//--------------------------------------------------------------------
- EnumerationResult FileViewContentEnumerator::enumerateFolderContentSync(
- const FolderDescriptor& _rFolder,
- const IUrlFilter* _pFilter,
+ EnumerationResult FileViewContentEnumerator::enumerateFolderContentSync(
+ const FolderDescriptor& _rFolder,
+ const IUrlFilter* _pFilter,
const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rBlackList )
{
{
@@ -170,7 +170,7 @@ namespace svt
{
return osl_incrementInterlockedCount( &m_refCount );
}
-
+
//--------------------------------------------------------------------
oslInterlockedCount SAL_CALL FileViewContentEnumerator::release()
{
@@ -188,7 +188,7 @@ namespace svt
EnumerationResult eResult = ERROR;
try
{
-
+
Reference< XResultSet > xResultSet;
Sequence< OUString > aProps(12);
@@ -403,7 +403,7 @@ namespace svt
if ( entryName.equals( m_rBlackList[i] ) )
return true;
}
-
+
return false;
}
diff --git a/svtools/source/contnr/contentenumeration.hxx b/svtools/source/contnr/contentenumeration.hxx
index 70e9a2a0fbc9..ca90ec8be85f 100644
--- a/svtools/source/contnr/contentenumeration.hxx
+++ b/svtools/source/contnr/contentenumeration.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ namespace svt
::rtl::OUString maFilename; // only filename in upper case - for compare purposes
::rtl::OUString maTitle; // -> be carefull when changing maTitle to update maFilename only when new
::rtl::OUString maLowerTitle;
-
+
public:
::rtl::OUString maType;
diff --git a/svtools/source/contnr/ctrdll.cxx b/svtools/source/contnr/ctrdll.cxx
index 32f9af349fa2..ceb78f537375 100644
--- a/svtools/source/contnr/ctrdll.cxx
+++ b/svtools/source/contnr/ctrdll.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/contnr/fileview.hrc b/svtools/source/contnr/fileview.hrc
index bbf340148fc9..23f620158401 100644
--- a/svtools/source/contnr/fileview.hrc
+++ b/svtools/source/contnr/fileview.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,8 +25,8 @@
*
************************************************************************/
-#define MID_FILEVIEW_DELETE 1
-#define MID_FILEVIEW_RENAME 2
+#define MID_FILEVIEW_DELETE 1
+#define MID_FILEVIEW_RENAME 2
// DLG_SFX_QUERYDELETE ********************************************************
diff --git a/svtools/source/contnr/fileview.src b/svtools/source/contnr/fileview.src
index f40530c10347..a1d80474afb4 100644
--- a/svtools/source/contnr/fileview.src
+++ b/svtools/source/contnr/fileview.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx
index 4a7b54c6fed3..6b085d43fcd3 100644
--- a/svtools/source/contnr/imivctl.hxx
+++ b/svtools/source/contnr/imivctl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,42 +51,42 @@ class IcnGridMap_Impl;
//
// some defines
//
-#define PAINTFLAG_HOR_CENTERED 0x0001
-#define PAINTFLAG_VER_CENTERED 0x0002
-
-#define F_VER_SBARSIZE_WITH_HBAR 0x0001
-#define F_HOR_SBARSIZE_WITH_VBAR 0x0002
-#define F_PAINTED 0x0004 // TRUE nach erstem Paint
-#define F_ADD_MODE 0x0008
-#define F_SELECTING_RECT 0x0020
-#define F_DOWN_CTRL 0x0080
-#define F_DOWN_DESELECT 0x0100
-#define F_START_EDITTIMER_IN_MOUSEUP 0x0400
-#define F_MOVED_ENTRIES 0x0800
-#define F_ENTRYLISTPOS_VALID 0x1000
-#define F_CLEARING_SELECTION 0x2000
-#define F_ARRANGING 0x4000
+#define PAINTFLAG_HOR_CENTERED 0x0001
+#define PAINTFLAG_VER_CENTERED 0x0002
+
+#define F_VER_SBARSIZE_WITH_HBAR 0x0001
+#define F_HOR_SBARSIZE_WITH_VBAR 0x0002
+#define F_PAINTED 0x0004 // TRUE nach erstem Paint
+#define F_ADD_MODE 0x0008
+#define F_SELECTING_RECT 0x0020
+#define F_DOWN_CTRL 0x0080
+#define F_DOWN_DESELECT 0x0100
+#define F_START_EDITTIMER_IN_MOUSEUP 0x0400
+#define F_MOVED_ENTRIES 0x0800
+#define F_ENTRYLISTPOS_VALID 0x1000
+#define F_CLEARING_SELECTION 0x2000
+#define F_ARRANGING 0x4000
// alle Angaben in Pixel
// Abstaende von Fensterraendern
-#define LROFFS_WINBORDER 4
-#define TBOFFS_WINBORDER 4
+#define LROFFS_WINBORDER 4
+#define TBOFFS_WINBORDER 4
// fuer das Bounding-Rectangle
-#define LROFFS_BOUND 2
-#define TBOFFS_BOUND 2
+#define LROFFS_BOUND 2
+#define TBOFFS_BOUND 2
// Abstand Fokusrechteck - Icon
-#define LROFFS_ICON 2
-#define TBOFFS_ICON 2
+#define LROFFS_ICON 2
+#define TBOFFS_ICON 2
// Abstaende Icon - Text
-#define HOR_DIST_BMP_STRING 3
-#define VER_DIST_BMP_STRING 3
+#define HOR_DIST_BMP_STRING 3
+#define VER_DIST_BMP_STRING 3
// Breitenoffset Highlight-Rect bei Text
-#define LROFFS_TEXT 2
+#define LROFFS_TEXT 2
-#define DEFAULT_MAX_VIRT_WIDTH 200
-#define DEFAULT_MAX_VIRT_HEIGHT 200
+#define DEFAULT_MAX_VIRT_WIDTH 200
+#define DEFAULT_MAX_VIRT_HEIGHT 200
-#define VIEWMODE_MASK (WB_ICON | WB_SMALLICON | WB_DETAILS)
+#define VIEWMODE_MASK (WB_ICON | WB_SMALLICON | WB_DETAILS)
///////////////////////////////////////////////////////////////////////////////
//
@@ -105,9 +105,9 @@ enum IcnViewFieldType
//
struct LocalFocus
{
- BOOL bOn;
- Rectangle aRect;
- Color aPenColor;
+ BOOL bOn;
+ Rectangle aRect;
+ Color aPenColor;
LocalFocus() { bOn = FALSE; }
};
@@ -122,9 +122,9 @@ private:
using List::Replace;
- SvxIconChoiceCtrl_Impl* _pOwner;
+ SvxIconChoiceCtrl_Impl* _pOwner;
- void Removed_Impl( SvxIconChoiceCtrlEntry* pEntry );
+ void Removed_Impl( SvxIconChoiceCtrlEntry* pEntry );
public:
EntryList_Impl(
@@ -138,10 +138,10 @@ public:
USHORT _nReSize );
~EntryList_Impl();
- void Clear();
- void Insert( SvxIconChoiceCtrlEntry* pEntry, ULONG nPos );
- SvxIconChoiceCtrlEntry* Remove( ULONG nPos );
- void Remove( SvxIconChoiceCtrlEntry* pEntry );
+ void Clear();
+ void Insert( SvxIconChoiceCtrlEntry* pEntry, ULONG nPos );
+ SvxIconChoiceCtrlEntry* Remove( ULONG nPos );
+ void Remove( SvxIconChoiceCtrlEntry* pEntry );
};
@@ -155,72 +155,72 @@ class SvxIconChoiceCtrl_Impl
friend class EntryList_Impl;
friend class IcnGridMap_Impl;
- BOOL bChooseWithCursor;
- EntryList_Impl aEntries;
- ScrollBar aVerSBar;
- ScrollBar aHorSBar;
- ScrollBarBox aScrBarBox;
- Rectangle aCurSelectionRect;
- SvPtrarr aSelectedRectList;
- Timer aEditTimer; // fuer Inplace-Editieren
- Timer aAutoArrangeTimer;
- Timer aDocRectChangedTimer;
- Timer aVisRectChangedTimer;
- Timer aCallSelectHdlTimer;
- Size aVirtOutputSize;
- Size aImageSize;
- Size aDefaultTextSize;
- Size aOutputSize; // Pixel
- Point aDDLastEntryPos;
- Point aDDLastRectPos;
- Point aDDPaintOffs;
- Point aDDStartPos;
- SvtIconChoiceCtrl* pView;
- IcnCursor_Impl* pImpCursor;
+ BOOL bChooseWithCursor;
+ EntryList_Impl aEntries;
+ ScrollBar aVerSBar;
+ ScrollBar aHorSBar;
+ ScrollBarBox aScrBarBox;
+ Rectangle aCurSelectionRect;
+ SvPtrarr aSelectedRectList;
+ Timer aEditTimer; // fuer Inplace-Editieren
+ Timer aAutoArrangeTimer;
+ Timer aDocRectChangedTimer;
+ Timer aVisRectChangedTimer;
+ Timer aCallSelectHdlTimer;
+ Size aVirtOutputSize;
+ Size aImageSize;
+ Size aDefaultTextSize;
+ Size aOutputSize; // Pixel
+ Point aDDLastEntryPos;
+ Point aDDLastRectPos;
+ Point aDDPaintOffs;
+ Point aDDStartPos;
+ SvtIconChoiceCtrl* pView;
+ IcnCursor_Impl* pImpCursor;
IcnGridMap_Impl* pGridMap;
- long nMaxVirtWidth; // max. Breite aVirtOutputSize bei ALIGN_TOP
- long nMaxVirtHeight; // max. Hoehe aVirtOutputSize bei ALIGN_LEFT
- List* pZOrderList;
- SvPtrarr* pColumns;
+ long nMaxVirtWidth; // max. Breite aVirtOutputSize bei ALIGN_TOP
+ long nMaxVirtHeight; // max. Hoehe aVirtOutputSize bei ALIGN_LEFT
+ List* pZOrderList;
+ SvPtrarr* pColumns;
IcnViewEdit_Impl* pEdit;
- WinBits nWinBits;
- long nMaxBoundHeight; // Hoehe des hoechsten BoundRects
- USHORT nFlags;
- USHORT nCurTextDrawFlags;
- ULONG nUserEventAdjustScrBars;
- ULONG nUserEventShowCursor;
- SvxIconChoiceCtrlEntry* pCurHighlightFrame;
- BOOL bHighlightFramePressed;
- SvxIconChoiceCtrlEntry* pHead; // Eintrag oben links
+ WinBits nWinBits;
+ long nMaxBoundHeight; // Hoehe des hoechsten BoundRects
+ USHORT nFlags;
+ USHORT nCurTextDrawFlags;
+ ULONG nUserEventAdjustScrBars;
+ ULONG nUserEventShowCursor;
+ SvxIconChoiceCtrlEntry* pCurHighlightFrame;
+ BOOL bHighlightFramePressed;
+ SvxIconChoiceCtrlEntry* pHead; // Eintrag oben links
SvxIconChoiceCtrlEntry* pCursor;
- SvxIconChoiceCtrlEntry* pPrevDropTarget;
- SvxIconChoiceCtrlEntry* pHdlEntry;
- SvxIconChoiceCtrlEntry* pDDRefEntry;
- VirtualDevice* pDDDev;
- VirtualDevice* pDDBufDev;
+ SvxIconChoiceCtrlEntry* pPrevDropTarget;
+ SvxIconChoiceCtrlEntry* pHdlEntry;
+ SvxIconChoiceCtrlEntry* pDDRefEntry;
+ VirtualDevice* pDDDev;
+ VirtualDevice* pDDBufDev;
VirtualDevice* pDDTempDev;
- VirtualDevice* pEntryPaintDev;
- SvxIconChoiceCtrlEntry* pAnchor; // fuer Selektion
- LocalFocus aFocus; // Data for focusrect
+ VirtualDevice* pEntryPaintDev;
+ SvxIconChoiceCtrlEntry* pAnchor; // fuer Selektion
+ LocalFocus aFocus; // Data for focusrect
::svt::AccessibleFactoryAccess aAccFactory;
- List* pDraggedSelection;
- SvxIconChoiceCtrlEntry* pCurEditedEntry;
+ List* pDraggedSelection;
+ SvxIconChoiceCtrlEntry* pCurEditedEntry;
SvxIconChoiceCtrlTextMode eTextMode;
- SelectionMode eSelectionMode;
- ULONG nSelectionCount;
+ SelectionMode eSelectionMode;
+ ULONG nSelectionCount;
SvxIconChoiceCtrlPositionMode ePositionMode;
- BOOL bBoundRectsDirty;
- BOOL bUpdateMode;
- BOOL bEntryEditingEnabled;
- BOOL bInDragDrop;
+ BOOL bBoundRectsDirty;
+ BOOL bUpdateMode;
+ BOOL bEntryEditingEnabled;
+ BOOL bInDragDrop;
- void ShowCursor( BOOL bShow );
+ void ShowCursor( BOOL bShow );
- void ImpArrange( BOOL bKeepPredecessors = FALSE );
- void AdjustVirtSize( const Rectangle& );
- void ResetVirtSize();
- void CheckScrollBars();
+ void ImpArrange( BOOL bKeepPredecessors = FALSE );
+ void AdjustVirtSize( const Rectangle& );
+ void ResetVirtSize();
+ void CheckScrollBars();
DECL_LINK( ScrollUpDownHdl, ScrollBar * );
DECL_LINK( ScrollLeftRightHdl, ScrollBar * );
@@ -232,67 +232,67 @@ class SvxIconChoiceCtrl_Impl
DECL_LINK( VisRectChangedHdl, void* );
DECL_LINK( CallSelectHdlHdl, void* );
- void AdjustScrollBars( BOOL bVirtSizeGrowedOnly = FALSE);
- void PositionScrollBars( long nRealWidth, long nRealHeight );
- long GetScrollBarPageSize( long nVisibleRange ) const { return ((nVisibleRange*75)/100); }
- long GetScrollBarLineSize() const { return nMaxBoundHeight / 2; }
- BOOL HandleScrollCommand( const CommandEvent& rCmd );
- void ToDocPos( Point& rPosPixel ) { rPosPixel -= pView->GetMapMode().GetOrigin(); }
- void InitScrollBarBox();
- SvxIconChoiceCtrlEntry* FindNewCursor();
- void ToggleSelection( SvxIconChoiceCtrlEntry* );
- void DeselectAllBut( SvxIconChoiceCtrlEntry*, BOOL bPaintSync=FALSE );
- void Center( SvxIconChoiceCtrlEntry* pEntry ) const;
- void StopEditTimer() { aEditTimer.Stop(); }
- void StartEditTimer() { aEditTimer.Start(); }
- void ImpHideDDIcon();
- void CallSelectHandler( SvxIconChoiceCtrlEntry* );
- void SelectRect(
+ void AdjustScrollBars( BOOL bVirtSizeGrowedOnly = FALSE);
+ void PositionScrollBars( long nRealWidth, long nRealHeight );
+ long GetScrollBarPageSize( long nVisibleRange ) const { return ((nVisibleRange*75)/100); }
+ long GetScrollBarLineSize() const { return nMaxBoundHeight / 2; }
+ BOOL HandleScrollCommand( const CommandEvent& rCmd );
+ void ToDocPos( Point& rPosPixel ) { rPosPixel -= pView->GetMapMode().GetOrigin(); }
+ void InitScrollBarBox();
+ SvxIconChoiceCtrlEntry* FindNewCursor();
+ void ToggleSelection( SvxIconChoiceCtrlEntry* );
+ void DeselectAllBut( SvxIconChoiceCtrlEntry*, BOOL bPaintSync=FALSE );
+ void Center( SvxIconChoiceCtrlEntry* pEntry ) const;
+ void StopEditTimer() { aEditTimer.Stop(); }
+ void StartEditTimer() { aEditTimer.Start(); }
+ void ImpHideDDIcon();
+ void CallSelectHandler( SvxIconChoiceCtrlEntry* );
+ void SelectRect(
SvxIconChoiceCtrlEntry* pEntry1,
SvxIconChoiceCtrlEntry* pEntry2,
BOOL bAdd = TRUE,
SvPtrarr* pOtherRects = 0 );
- void SelectRange(
+ void SelectRange(
SvxIconChoiceCtrlEntry* pStart,
SvxIconChoiceCtrlEntry* pEnd,
BOOL bAdd = TRUE );
- void AddSelectedRect( const Rectangle& );
- void AddSelectedRect(
+ void AddSelectedRect( const Rectangle& );
+ void AddSelectedRect(
SvxIconChoiceCtrlEntry* pEntry1,
SvxIconChoiceCtrlEntry* pEntry2 );
- void ClearSelectedRectList();
- void ClearColumnList();
- Rectangle CalcMaxTextRect( const SvxIconChoiceCtrlEntry* pEntry ) const;
+ void ClearSelectedRectList();
+ void ClearColumnList();
+ Rectangle CalcMaxTextRect( const SvxIconChoiceCtrlEntry* pEntry ) const;
- void ClipAtVirtOutRect( Rectangle& rRect ) const;
- void AdjustAtGrid( const SvPtrarr& rRow, SvxIconChoiceCtrlEntry* pStart=0 );
- Point AdjustAtGrid(
+ void ClipAtVirtOutRect( Rectangle& rRect ) const;
+ void AdjustAtGrid( const SvPtrarr& rRow, SvxIconChoiceCtrlEntry* pStart=0 );
+ Point AdjustAtGrid(
const Rectangle& rCenterRect, // "Schwerpunkt" des Objekts (typ. Bmp-Rect)
const Rectangle& rBoundRect ) const;
- ULONG GetPredecessorGrid( const Point& rDocPos) const;
+ ULONG GetPredecessorGrid( const Point& rDocPos) const;
- void InitPredecessors();
- void ClearPredecessors();
+ void InitPredecessors();
+ void ClearPredecessors();
- BOOL CheckVerScrollBar();
- BOOL CheckHorScrollBar();
- void CancelUserEvents();
- void EntrySelected( SvxIconChoiceCtrlEntry* pEntry, BOOL bSelect,
+ BOOL CheckVerScrollBar();
+ BOOL CheckHorScrollBar();
+ void CancelUserEvents();
+ void EntrySelected( SvxIconChoiceCtrlEntry* pEntry, BOOL bSelect,
BOOL bSyncPaint );
- void SaveSelection( List** );
- void RepaintEntries( USHORT nEntryFlagsMask );
- void SetListPositions();
- void SetDefaultTextSize();
- BOOL IsAutoArrange() const {
+ void SaveSelection( List** );
+ void RepaintEntries( USHORT nEntryFlagsMask );
+ void SetListPositions();
+ void SetDefaultTextSize();
+ BOOL IsAutoArrange() const {
return (BOOL)(ePositionMode == IcnViewPositionModeAutoArrange); }
- BOOL IsAutoAdjust() const {
+ BOOL IsAutoAdjust() const {
return (BOOL)(ePositionMode == IcnViewPositionModeAutoAdjust); }
- void DocRectChanged() { aDocRectChangedTimer.Start(); }
- void VisRectChanged() { aVisRectChangedTimer.Start(); }
- void SetOrigin( const Point&, BOOL bDoNotUpdateWallpaper = FALSE );
+ void DocRectChanged() { aDocRectChangedTimer.Start(); }
+ void VisRectChanged() { aVisRectChangedTimer.Start(); }
+ void SetOrigin( const Point&, BOOL bDoNotUpdateWallpaper = FALSE );
DECL_LINK( TextEditEndedHdl, IcnViewEdit_Impl* );
@@ -300,112 +300,112 @@ class SvxIconChoiceCtrl_Impl
void HideFocus ();
void DrawFocusRect ( OutputDevice* pOut );
- BOOL IsMnemonicChar( sal_Unicode cChar, ULONG& rPos ) const;
+ BOOL IsMnemonicChar( sal_Unicode cChar, ULONG& rPos ) const;
public:
- long nGridDX,
+ long nGridDX,
nGridDY;
- long nHorSBarHeight,
+ long nHorSBarHeight,
nVerSBarWidth;
SvxIconChoiceCtrl_Impl( SvtIconChoiceCtrl* pView, WinBits nWinStyle );
~SvxIconChoiceCtrl_Impl();
- BOOL SetChoiceWithCursor ( BOOL bDo = TRUE ) { BOOL bOld=bChooseWithCursor; bChooseWithCursor = bDo; return bOld; }
- void Clear( BOOL bInCtor = FALSE );
- void SetStyle( WinBits nWinStyle );
- WinBits GetStyle() const { return nWinBits; }
- void InsertEntry( SvxIconChoiceCtrlEntry*, ULONG nPos, const Point* pPos=0 );
- void CreateAutoMnemonics( MnemonicGenerator* _pGenerator = NULL );
- void RemoveEntry( SvxIconChoiceCtrlEntry* pEntry );
- void FontModified();
- void SelectAll( BOOL bSelect = TRUE, BOOL bPaint = TRUE );
- void SelectEntry(
+ BOOL SetChoiceWithCursor ( BOOL bDo = TRUE ) { BOOL bOld=bChooseWithCursor; bChooseWithCursor = bDo; return bOld; }
+ void Clear( BOOL bInCtor = FALSE );
+ void SetStyle( WinBits nWinStyle );
+ WinBits GetStyle() const { return nWinBits; }
+ void InsertEntry( SvxIconChoiceCtrlEntry*, ULONG nPos, const Point* pPos=0 );
+ void CreateAutoMnemonics( MnemonicGenerator* _pGenerator = NULL );
+ void RemoveEntry( SvxIconChoiceCtrlEntry* pEntry );
+ void FontModified();
+ void SelectAll( BOOL bSelect = TRUE, BOOL bPaint = TRUE );
+ void SelectEntry(
SvxIconChoiceCtrlEntry*,
BOOL bSelect,
BOOL bCallHdl = TRUE,
BOOL bAddToSelection = FALSE,
BOOL bSyncPaint = FALSE );
- void Paint( const Rectangle& rRect );
- BOOL MouseButtonDown( const MouseEvent& );
- BOOL MouseButtonUp( const MouseEvent& );
- BOOL MouseMove( const MouseEvent&);
- BOOL RequestHelp( const HelpEvent& rHEvt );
- void SetCursor_Impl(
+ void Paint( const Rectangle& rRect );
+ BOOL MouseButtonDown( const MouseEvent& );
+ BOOL MouseButtonUp( const MouseEvent& );
+ BOOL MouseMove( const MouseEvent&);
+ BOOL RequestHelp( const HelpEvent& rHEvt );
+ void SetCursor_Impl(
SvxIconChoiceCtrlEntry* pOldCursor,
SvxIconChoiceCtrlEntry* pNewCursor,
BOOL bMod1,
BOOL bShift,
BOOL bPaintSync = FALSE);
- BOOL KeyInput( const KeyEvent& );
- void Resize();
- void GetFocus();
- void LoseFocus();
- void SetUpdateMode( BOOL bUpdate );
- BOOL GetUpdateMode() const { return bUpdateMode; }
- void PaintEntry( SvxIconChoiceCtrlEntry* pEntry, BOOL bIsBackgroundPainted=FALSE );
- void PaintEntry(
+ BOOL KeyInput( const KeyEvent& );
+ void Resize();
+ void GetFocus();
+ void LoseFocus();
+ void SetUpdateMode( BOOL bUpdate );
+ BOOL GetUpdateMode() const { return bUpdateMode; }
+ void PaintEntry( SvxIconChoiceCtrlEntry* pEntry, BOOL bIsBackgroundPainted=FALSE );
+ void PaintEntry(
SvxIconChoiceCtrlEntry*,
const Point&,
OutputDevice* pOut = 0,
BOOL bIsBackgroundPainted = FALSE);
- void PaintEntryVirtOutDev( SvxIconChoiceCtrlEntry* );
+ void PaintEntryVirtOutDev( SvxIconChoiceCtrlEntry* );
- void SetEntryPos(
+ void SetEntryPos(
SvxIconChoiceCtrlEntry* pEntry,
const Point& rPos,
BOOL bAdjustRow = FALSE,
BOOL bCheckScrollBars = FALSE,
BOOL bKeepGridMap = FALSE );
- void InvalidateEntry( SvxIconChoiceCtrlEntry* );
- IcnViewFieldType GetItem( SvxIconChoiceCtrlEntry*, const Point& rAbsPos );
+ void InvalidateEntry( SvxIconChoiceCtrlEntry* );
+ IcnViewFieldType GetItem( SvxIconChoiceCtrlEntry*, const Point& rAbsPos );
- void SetNoSelection();
+ void SetNoSelection();
SvxIconChoiceCtrlEntry* GetCurEntry() const { return pCursor; }
- void SetCursor(
+ void SetCursor(
SvxIconChoiceCtrlEntry*,
// TRUE == bei Single-Selection die Sel. mitfuehren
BOOL bSyncSingleSelection = TRUE,
BOOL bShowFocusAsync = FALSE );
SvxIconChoiceCtrlEntry* GetEntry( const Point& rDocPos, BOOL bHit = FALSE );
- SvxIconChoiceCtrlEntry* GetNextEntry( const Point& rDocPos, SvxIconChoiceCtrlEntry* pCurEntry );
- SvxIconChoiceCtrlEntry* GetPrevEntry( const Point& rDocPos, SvxIconChoiceCtrlEntry* pCurEntry );
+ SvxIconChoiceCtrlEntry* GetNextEntry( const Point& rDocPos, SvxIconChoiceCtrlEntry* pCurEntry );
+ SvxIconChoiceCtrlEntry* GetPrevEntry( const Point& rDocPos, SvxIconChoiceCtrlEntry* pCurEntry );
- Point GetEntryPos( SvxIconChoiceCtrlEntry* );
- void MakeEntryVisible( SvxIconChoiceCtrlEntry* pEntry, BOOL bBound = TRUE );
+ Point GetEntryPos( SvxIconChoiceCtrlEntry* );
+ void MakeEntryVisible( SvxIconChoiceCtrlEntry* pEntry, BOOL bBound = TRUE );
- void Arrange(BOOL bKeepPredecessors = FALSE, long nSetMaxVirtWidth =0, long nSetMaxVirtHeight =0 );
+ void Arrange(BOOL bKeepPredecessors = FALSE, long nSetMaxVirtWidth =0, long nSetMaxVirtHeight =0 );
- Rectangle CalcFocusRect( SvxIconChoiceCtrlEntry* );
- Rectangle CalcBmpRect( SvxIconChoiceCtrlEntry*, const Point* pPos = 0 );
- Rectangle CalcTextRect(
+ Rectangle CalcFocusRect( SvxIconChoiceCtrlEntry* );
+ Rectangle CalcBmpRect( SvxIconChoiceCtrlEntry*, const Point* pPos = 0 );
+ Rectangle CalcTextRect(
SvxIconChoiceCtrlEntry*,
const Point* pPos = 0,
BOOL bForInplaceEdit = FALSE,
const String* pStr = 0 );
- long CalcBoundingWidth( SvxIconChoiceCtrlEntry* ) const;
- long CalcBoundingHeight( SvxIconChoiceCtrlEntry* ) const;
- Size CalcBoundingSize( SvxIconChoiceCtrlEntry* ) const;
- void FindBoundingRect( SvxIconChoiceCtrlEntry* pEntry );
- void SetBoundingRect_Impl(
+ long CalcBoundingWidth( SvxIconChoiceCtrlEntry* ) const;
+ long CalcBoundingHeight( SvxIconChoiceCtrlEntry* ) const;
+ Size CalcBoundingSize( SvxIconChoiceCtrlEntry* ) const;
+ void FindBoundingRect( SvxIconChoiceCtrlEntry* pEntry );
+ void SetBoundingRect_Impl(
SvxIconChoiceCtrlEntry* pEntry,
const Point& rPos,
const Size& rBoundingSize );
// berechnet alle BoundRects neu
- void RecalcAllBoundingRects();
+ void RecalcAllBoundingRects();
// berechnet alle ungueltigen BoundRects neu
- void RecalcAllBoundingRectsSmart();
+ void RecalcAllBoundingRectsSmart();
const Rectangle& GetEntryBoundRect( SvxIconChoiceCtrlEntry* );
- void InvalidateBoundingRect( SvxIconChoiceCtrlEntry* );
- void InvalidateBoundingRect( Rectangle& rRect ) { rRect.Right() = LONG_MAX; bBoundRectsDirty = TRUE; }
- BOOL IsBoundingRectValid( const Rectangle& rRect ) const { return (BOOL)( rRect.Right() != LONG_MAX ); }
+ void InvalidateBoundingRect( SvxIconChoiceCtrlEntry* );
+ void InvalidateBoundingRect( Rectangle& rRect ) { rRect.Right() = LONG_MAX; bBoundRectsDirty = TRUE; }
+ BOOL IsBoundingRectValid( const Rectangle& rRect ) const { return (BOOL)( rRect.Right() != LONG_MAX ); }
- void PaintEmphasis(
+ void PaintEmphasis(
const Rectangle& rRect1,
const Rectangle& rRect2,
BOOL bSelected,
@@ -414,7 +414,7 @@ public:
OutputDevice* pOut,
BOOL bIsBackgroundPainted = FALSE);
- void PaintItem(
+ void PaintItem(
const Rectangle& rRect,
IcnViewFieldType eItem,
SvxIconChoiceCtrlEntry* pEntry,
@@ -424,116 +424,116 @@ public:
::vcl::ControlLayoutData* _pLayoutData = NULL );
// berechnet alle BoundingRects neu, wenn bMustRecalcBoundingRects == TRUE
- void CheckBoundingRects() { if (bBoundRectsDirty) RecalcAllBoundingRectsSmart(); }
+ void CheckBoundingRects() { if (bBoundRectsDirty) RecalcAllBoundingRectsSmart(); }
// berechnet alle invalidierten BoundingRects neu
- void UpdateBoundingRects();
- void ShowTargetEmphasis( SvxIconChoiceCtrlEntry* pEntry, BOOL bShow );
- void PrepareCommandEvent( const CommandEvent& );
- void Command( const CommandEvent& rCEvt );
- void ToTop( SvxIconChoiceCtrlEntry* );
-
- ULONG GetSelectionCount() const;
- void SetGrid( const Size& );
- Size GetMinGrid() const;
- ULONG GetGridCount(
+ void UpdateBoundingRects();
+ void ShowTargetEmphasis( SvxIconChoiceCtrlEntry* pEntry, BOOL bShow );
+ void PrepareCommandEvent( const CommandEvent& );
+ void Command( const CommandEvent& rCEvt );
+ void ToTop( SvxIconChoiceCtrlEntry* );
+
+ ULONG GetSelectionCount() const;
+ void SetGrid( const Size& );
+ Size GetMinGrid() const;
+ ULONG GetGridCount(
const Size& rSize,
BOOL bCheckScrBars,
BOOL bSmartScrBar ) const;
- void Scroll( long nDeltaX, long nDeltaY, BOOL bScrollBar = FALSE );
- const Size& GetItemSize( SvxIconChoiceCtrlEntry*, IcnViewFieldType ) const;
+ void Scroll( long nDeltaX, long nDeltaY, BOOL bScrollBar = FALSE );
+ const Size& GetItemSize( SvxIconChoiceCtrlEntry*, IcnViewFieldType ) const;
- void HideDDIcon();
- void ShowDDIcon( SvxIconChoiceCtrlEntry* pRefEntry, const Point& rPos );
- void HideShowDDIcon(
+ void HideDDIcon();
+ void ShowDDIcon( SvxIconChoiceCtrlEntry* pRefEntry, const Point& rPos );
+ void HideShowDDIcon(
SvxIconChoiceCtrlEntry* pRefEntry,
const Point& rPos );
- BOOL IsOver(
+ BOOL IsOver(
SvPtrarr* pSelectedRectList,
const Rectangle& rEntryBoundRect ) const;
- void SelectRect(
+ void SelectRect(
const Rectangle&,
BOOL bAdd = TRUE,
SvPtrarr* pOtherRects = 0 );
- void CalcScrollOffsets(
+ void CalcScrollOffsets(
const Point& rRefPosPixel,
long& rX,
long& rY,
BOOL bDragDrop = FALSE,
USHORT nBorderWidth = 10 );
- BOOL IsTextHit( SvxIconChoiceCtrlEntry* pEntry, const Point& rDocPos );
- void MakeVisible(
+ BOOL IsTextHit( SvxIconChoiceCtrlEntry* pEntry, const Point& rDocPos );
+ void MakeVisible(
const Rectangle& rDocPos,
BOOL bInScrollBarEvent=FALSE,
BOOL bCallRectChangedHdl = TRUE );
- void AdjustEntryAtGrid( SvxIconChoiceCtrlEntry* pStart = 0 );
- void SetEntryTextMode( SvxIconChoiceCtrlTextMode, SvxIconChoiceCtrlEntry* pEntry = 0 );
+ void AdjustEntryAtGrid( SvxIconChoiceCtrlEntry* pStart = 0 );
+ void SetEntryTextMode( SvxIconChoiceCtrlTextMode, SvxIconChoiceCtrlEntry* pEntry = 0 );
SvxIconChoiceCtrlTextMode GetTextMode( const SvxIconChoiceCtrlEntry* pEntry = 0 ) const;
- void ShowEntryFocusRect( const SvxIconChoiceCtrlEntry* pEntry );
- void EnableEntryEditing( BOOL bEnable ) { bEntryEditingEnabled = bEnable; }
- BOOL IsEntryEditingEnabled() const { return bEntryEditingEnabled; }
- BOOL IsEntryEditing() const { return (BOOL)(pCurEditedEntry!=0); }
- void EditEntry( SvxIconChoiceCtrlEntry* pEntry );
- void StopEntryEditing( BOOL bCancel );
- void LockEntryPos( SvxIconChoiceCtrlEntry* pEntry, BOOL bLock );
- ULONG GetEntryCount() const { return aEntries.Count(); }
- SvxIconChoiceCtrlEntry* GetEntry( ULONG nPos ) const { return (SvxIconChoiceCtrlEntry*)aEntries.GetObject(nPos); }
- SvxIconChoiceCtrlEntry* GetFirstSelectedEntry( ULONG& ) const;
- SvxIconChoiceCtrlEntry* GetNextSelectedEntry( ULONG& ) const;
+ void ShowEntryFocusRect( const SvxIconChoiceCtrlEntry* pEntry );
+ void EnableEntryEditing( BOOL bEnable ) { bEntryEditingEnabled = bEnable; }
+ BOOL IsEntryEditingEnabled() const { return bEntryEditingEnabled; }
+ BOOL IsEntryEditing() const { return (BOOL)(pCurEditedEntry!=0); }
+ void EditEntry( SvxIconChoiceCtrlEntry* pEntry );
+ void StopEntryEditing( BOOL bCancel );
+ void LockEntryPos( SvxIconChoiceCtrlEntry* pEntry, BOOL bLock );
+ ULONG GetEntryCount() const { return aEntries.Count(); }
+ SvxIconChoiceCtrlEntry* GetEntry( ULONG nPos ) const { return (SvxIconChoiceCtrlEntry*)aEntries.GetObject(nPos); }
+ SvxIconChoiceCtrlEntry* GetFirstSelectedEntry( ULONG& ) const;
+ SvxIconChoiceCtrlEntry* GetNextSelectedEntry( ULONG& ) const;
SvxIconChoiceCtrlEntry* GetHdlEntry() const { return pHdlEntry; }
- void SetHdlEntry( SvxIconChoiceCtrlEntry* pEntry ) { pHdlEntry = pEntry; }
+ void SetHdlEntry( SvxIconChoiceCtrlEntry* pEntry ) { pHdlEntry = pEntry; }
SvxIconChoiceCtrlTextMode GetEntryTextModeSmart( const SvxIconChoiceCtrlEntry* pEntry ) const;
- void SetSelectionMode( SelectionMode eMode ) { eSelectionMode=eMode; }
- SelectionMode GetSelectionMode() const { return eSelectionMode; }
- BOOL AreEntriesMoved() const { return (BOOL)((nFlags & F_MOVED_ENTRIES)!=0); }
- void SetEntriesMoved( BOOL bMoved )
+ void SetSelectionMode( SelectionMode eMode ) { eSelectionMode=eMode; }
+ SelectionMode GetSelectionMode() const { return eSelectionMode; }
+ BOOL AreEntriesMoved() const { return (BOOL)((nFlags & F_MOVED_ENTRIES)!=0); }
+ void SetEntriesMoved( BOOL bMoved )
{
if( bMoved ) nFlags |= F_MOVED_ENTRIES;
else nFlags &= ~(F_MOVED_ENTRIES);
}
- ULONG GetEntryListPos( SvxIconChoiceCtrlEntry* ) const;
- void SetEntryListPos( SvxIconChoiceCtrlEntry* pEntry, ULONG nNewPos );
- void SetEntryImageSize( const Size& rSize ) { aImageSize = rSize; }
- void SetEntryFlags( SvxIconChoiceCtrlEntry* pEntry, USHORT nFlags );
+ ULONG GetEntryListPos( SvxIconChoiceCtrlEntry* ) const;
+ void SetEntryListPos( SvxIconChoiceCtrlEntry* pEntry, ULONG nNewPos );
+ void SetEntryImageSize( const Size& rSize ) { aImageSize = rSize; }
+ void SetEntryFlags( SvxIconChoiceCtrlEntry* pEntry, USHORT nFlags );
SvxIconChoiceCtrlEntry* GoLeftRight( SvxIconChoiceCtrlEntry*, BOOL bRight );
SvxIconChoiceCtrlEntry* GoUpDown( SvxIconChoiceCtrlEntry*, BOOL bDown );
- void InitSettings();
- Rectangle GetOutputRect() const;
+ void InitSettings();
+ Rectangle GetOutputRect() const;
- BOOL ArePredecessorsSet() const { return (BOOL)(pHead != 0); }
+ BOOL ArePredecessorsSet() const { return (BOOL)(pHead != 0); }
SvxIconChoiceCtrlEntry* GetPredecessorHead() const { return pHead; }
- void SetEntryPredecessor(SvxIconChoiceCtrlEntry* pEntry,SvxIconChoiceCtrlEntry* pPredecessor);
- BOOL GetEntryPredecessor(SvxIconChoiceCtrlEntry* pEntry,SvxIconChoiceCtrlEntry** ppPredecessor);
+ void SetEntryPredecessor(SvxIconChoiceCtrlEntry* pEntry,SvxIconChoiceCtrlEntry* pPredecessor);
+ BOOL GetEntryPredecessor(SvxIconChoiceCtrlEntry* pEntry,SvxIconChoiceCtrlEntry** ppPredecessor);
// liefert gueltige Ergebnisse nur im AutoArrange-Modus!
- SvxIconChoiceCtrlEntry* FindEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry, const Point& );
+ SvxIconChoiceCtrlEntry* FindEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry, const Point& );
- void SetPositionMode( SvxIconChoiceCtrlPositionMode );
+ void SetPositionMode( SvxIconChoiceCtrlPositionMode );
SvxIconChoiceCtrlPositionMode GetPositionMode() const { return ePositionMode;}
- void Flush();
- void SetColumn( USHORT nIndex, const SvxIconChoiceCtrlColumnInfo& );
+ void Flush();
+ void SetColumn( USHORT nIndex, const SvxIconChoiceCtrlColumnInfo& );
const SvxIconChoiceCtrlColumnInfo* GetColumn( USHORT nIndex ) const;
const SvxIconChoiceCtrlColumnInfo* GetItemColumn( USHORT nSubItem, long& rLeft ) const;
- Rectangle GetDocumentRect() const { return Rectangle( Point(), aVirtOutputSize ); }
- Rectangle GetVisibleRect() const { return GetOutputRect(); }
+ Rectangle GetDocumentRect() const { return Rectangle( Point(), aVirtOutputSize ); }
+ Rectangle GetVisibleRect() const { return GetOutputRect(); }
- void SetEntryHighlightFrame( SvxIconChoiceCtrlEntry* pEntry,BOOL bKeepHighlightFlags=FALSE );
- void HideEntryHighlightFrame();
- void DrawHighlightFrame( OutputDevice* pOut,
+ void SetEntryHighlightFrame( SvxIconChoiceCtrlEntry* pEntry,BOOL bKeepHighlightFlags=FALSE );
+ void HideEntryHighlightFrame();
+ void DrawHighlightFrame( OutputDevice* pOut,
const Rectangle& rBmpRect, BOOL bHide );
- void StopSelectTimer() { aCallSelectHdlTimer.Stop(); }
- void Tracking( const TrackingEvent& rTEvt );
- Point GetPopupMenuPosPixel() const;
+ void StopSelectTimer() { aCallSelectHdlTimer.Stop(); }
+ void Tracking( const TrackingEvent& rTEvt );
+ Point GetPopupMenuPosPixel() const;
- BOOL HandleShortCutKey( const KeyEvent& rKeyEvent );
+ BOOL HandleShortCutKey( const KeyEvent& rKeyEvent );
- void CallEventListeners( ULONG nEvent, void* pData = NULL );
+ void CallEventListeners( ULONG nEvent, void* pData = NULL );
inline ::svt::IAccessibleFactory&
GetAccessibleFactory() { return aAccFactory.getFactory(); }
@@ -543,19 +543,19 @@ public:
class IcnCursor_Impl
{
- SvxIconChoiceCtrl_Impl* pView;
- SvPtrarr* pColumns;
- SvPtrarr* pRows;
- long nCols;
- long nRows;
- short nDeltaWidth;
- short nDeltaHeight;
+ SvxIconChoiceCtrl_Impl* pView;
+ SvPtrarr* pColumns;
+ SvPtrarr* pRows;
+ long nCols;
+ long nRows;
+ short nDeltaWidth;
+ short nDeltaHeight;
SvxIconChoiceCtrlEntry* pCurEntry;
- void SetDeltas();
- void ImplCreate();
- void Create() { if( !pColumns ) ImplCreate(); }
+ void SetDeltas();
+ void ImplCreate();
+ void Create() { if( !pColumns ) ImplCreate(); }
- USHORT GetSortListPos( SvPtrarr* pList, long nValue, int bVertical);
+ USHORT GetSortListPos( SvPtrarr* pList, long nValue, int bVertical);
SvxIconChoiceCtrlEntry* SearchCol(USHORT nCol,USHORT nTop,USHORT nBottom,USHORT nPref,
BOOL bDown, BOOL bSimple );
@@ -565,7 +565,7 @@ class IcnCursor_Impl
public:
IcnCursor_Impl( SvxIconChoiceCtrl_Impl* pOwner );
~IcnCursor_Impl();
- void Clear();
+ void Clear();
// fuer Cursortravelling usw.
SvxIconChoiceCtrlEntry* GoLeftRight( SvxIconChoiceCtrlEntry*, BOOL bRight );
@@ -576,53 +576,53 @@ public:
// sortierte Liste der Eintraege, die in ihr stehen. Eine Liste kann
// leer sein. Die Listen gehen in das Eigentum des Rufenden ueber und
// muessen mit DestroyGridAdjustData geloescht werden
- void CreateGridAjustData( SvPtrarr& pLists, SvxIconChoiceCtrlEntry* pRow=0);
- static void DestroyGridAdjustData( SvPtrarr& rLists );
+ void CreateGridAjustData( SvPtrarr& pLists, SvxIconChoiceCtrlEntry* pRow=0);
+ static void DestroyGridAdjustData( SvPtrarr& rLists );
};
// ----------------------------------------------------------------------------------------------
typedef ULONG GridId;
-#define GRID_NOT_FOUND ((GridId)ULONG_MAX)
+#define GRID_NOT_FOUND ((GridId)ULONG_MAX)
class IcnGridMap_Impl
{
- Rectangle _aLastOccupiedGrid;
- SvxIconChoiceCtrl_Impl* _pView;
- BOOL* _pGridMap;
- USHORT _nGridCols, _nGridRows;
+ Rectangle _aLastOccupiedGrid;
+ SvxIconChoiceCtrl_Impl* _pView;
+ BOOL* _pGridMap;
+ USHORT _nGridCols, _nGridRows;
- void Expand();
- void Create_Impl();
- void Create() { if(!_pGridMap) Create_Impl(); }
+ void Expand();
+ void Create_Impl();
+ void Create() { if(!_pGridMap) Create_Impl(); }
- void GetMinMapSize( USHORT& rDX, USHORT& rDY ) const;
+ void GetMinMapSize( USHORT& rDX, USHORT& rDY ) const;
public:
- IcnGridMap_Impl(SvxIconChoiceCtrl_Impl* pView);
+ IcnGridMap_Impl(SvxIconChoiceCtrl_Impl* pView);
~IcnGridMap_Impl();
- void Clear();
+ void Clear();
- GridId GetGrid( const Point& rDocPos, BOOL* pbClipped = 0 );
- GridId GetGrid( USHORT nGridX, USHORT nGridY );
- GridId GetUnoccupiedGrid( BOOL bOccupyFound=TRUE );
+ GridId GetGrid( const Point& rDocPos, BOOL* pbClipped = 0 );
+ GridId GetGrid( USHORT nGridX, USHORT nGridY );
+ GridId GetUnoccupiedGrid( BOOL bOccupyFound=TRUE );
- void OccupyGrids( const Rectangle&, BOOL bOccupy = TRUE );
- void OccupyGrids( const SvxIconChoiceCtrlEntry*, BOOL bOccupy = TRUE );
- void OccupyGrid( GridId nId, BOOL bOccupy = TRUE )
+ void OccupyGrids( const Rectangle&, BOOL bOccupy = TRUE );
+ void OccupyGrids( const SvxIconChoiceCtrlEntry*, BOOL bOccupy = TRUE );
+ void OccupyGrid( GridId nId, BOOL bOccupy = TRUE )
{
DBG_ASSERT(!_pGridMap || nId<(ULONG)(_nGridCols*_nGridRows),"OccupyGrid: Bad GridId");
if(_pGridMap && nId < (ULONG)(_nGridCols *_nGridRows) )
_pGridMap[ nId ] = bOccupy;
}
- Rectangle GetGridRect( GridId );
- void GetGridCoord( GridId, USHORT& rGridX, USHORT& rGridY );
- static ULONG GetGridCount( const Size& rSizePixel, USHORT nGridWidth, USHORT nGridHeight );
+ Rectangle GetGridRect( GridId );
+ void GetGridCoord( GridId, USHORT& rGridX, USHORT& rGridY );
+ static ULONG GetGridCount( const Size& rSizePixel, USHORT nGridWidth, USHORT nGridHeight );
- void OutputSizeChanged();
+ void OutputSizeChanged();
};
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 29b1e9dfbd76..58b1fdbb03c3 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,13 +58,13 @@
#define DRAWTEXT_FLAGS_SMALLICON (TEXT_DRAW_LEFT|TEXT_DRAW_ENDELLIPSIS|TEXT_DRAW_CLIP)
-#define EVENTID_SHOW_CURSOR ((void*)1)
-#define EVENTID_ADJUST_SCROLLBARS ((void*)2)
+#define EVENTID_SHOW_CURSOR ((void*)1)
+#define EVENTID_ADJUST_SCROLLBARS ((void*)2)
struct SvxIconChoiceCtrlEntry_Impl
{
- SvxIconChoiceCtrlEntry* _pEntry;
- Point _aPos;
+ SvxIconChoiceCtrlEntry* _pEntry;
+ Point _aPos;
SvxIconChoiceCtrlEntry_Impl( SvxIconChoiceCtrlEntry* pEntry, const Rectangle& rBoundRect )
: _pEntry( pEntry), _aPos( rBoundRect.TopLeft()) {}
};
@@ -73,15 +73,15 @@ static BOOL bEndScrollInvalidate = TRUE;
class IcnViewEdit_Impl : public MultiLineEdit
{
- Link aCallBackHdl;
- Accelerator aAccReturn;
- Accelerator aAccEscape;
- Timer aTimer;
- BOOL bCanceled;
- BOOL bAlreadyInCallback;
- BOOL bGrabFocus;
+ Link aCallBackHdl;
+ Accelerator aAccReturn;
+ Accelerator aAccEscape;
+ Timer aTimer;
+ BOOL bCanceled;
+ BOOL bAlreadyInCallback;
+ BOOL bGrabFocus;
- void CallCallBackHdl_Impl();
+ void CallCallBackHdl_Impl();
DECL_LINK( Timeout_Impl, Timer * );
DECL_LINK( ReturnHdl_Impl, Accelerator * );
DECL_LINK( EscapeHdl_Impl, Accelerator * );
@@ -96,11 +96,11 @@ public:
const Link& rNotifyEditEnd );
~IcnViewEdit_Impl();
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual long PreNotify( NotifyEvent& rNEvt );
- BOOL EditingCanceled() const { return bCanceled; }
- void StopEditing( BOOL bCancel = FALSE );
- BOOL IsGrabFocus() const { return bGrabFocus; }
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ BOOL EditingCanceled() const { return bCanceled; }
+ void StopEditing( BOOL bCancel = FALSE );
+ BOOL IsGrabFocus() const { return bGrabFocus; }
};
SvxIconChoiceCtrl_Impl::SvxIconChoiceCtrl_Impl( SvtIconChoiceCtrl* pCurView,
@@ -304,7 +304,7 @@ void SvxIconChoiceCtrl_Impl::InsertEntry( SvxIconChoiceCtrlEntry* pEntry, ULONG
pZOrderList->Insert( (void*)pEntry, LIST_APPEND ); //pZOrderList->Count() );
pImpCursor->Clear();
-// pGridMap->Clear();
+// pGridMap->Clear();
if( pPos )
{
Size aSize( CalcBoundingSize( pEntry ) );
@@ -325,7 +325,7 @@ void SvxIconChoiceCtrl_Impl::InsertEntry( SvxIconChoiceCtrlEntry* pEntry, ULONG
Rectangle aOutputArea( GetOutputRect() );
pGridMap->OccupyGrids( pEntry );
if( !aOutputArea.IsOver( pEntry->aRect ) )
- return; // ist nicht sichtbar
+ return; // ist nicht sichtbar
pView->Invalidate( pEntry->aRect );
}
else
@@ -356,8 +356,8 @@ void SvxIconChoiceCtrl_Impl::CreateAutoMnemonics( MnemonicGenerator* _pGenerator
// exchange texts with generated mnemonics
for( i = 0; i < nEntryCount; ++i )
{
- SvxIconChoiceCtrlEntry* pEntry = GetEntry( i );
- String aTxt = pEntry->GetText();
+ SvxIconChoiceCtrlEntry* pEntry = GetEntry( i );
+ String aTxt = pEntry->GetText();
if( _pGenerator->CreateMnemonic( aTxt ) )
pEntry->SetText( aTxt );
@@ -1706,8 +1706,8 @@ void SvxIconChoiceCtrl_Impl::LoseFocus()
pCursor->ClearFlags( ICNVIEW_FLAG_FOCUSED );
ShowCursor( FALSE );
-// HideFocus ();
-// pView->Invalidate ( aFocus.aRect );
+// HideFocus ();
+// pView->Invalidate ( aFocus.aRect );
RepaintEntries( ICNVIEW_FLAG_SELECTED );
}
@@ -1809,8 +1809,8 @@ void SvxIconChoiceCtrl_Impl::PaintEmphasis(
}
// die Emphasis des Images muss von der abgeleiteten Klasse gezeichnet werden
// (in der virtuellen Funktion DrawEntryImage)
-// else
-// pOut->DrawRect( rImageRect );
+// else
+// pOut->DrawRect( rImageRect );
pOut->SetFillColor( aOldFillColor );
}
@@ -1946,12 +1946,12 @@ void SvxIconChoiceCtrl_Impl::PaintEntry( SvxIconChoiceCtrlEntry* pEntry, const P
Rectangle aTextRect( CalcTextRect(pEntry,&rPos,FALSE,&aEntryText));
Rectangle aBmpRect( CalcBmpRect(pEntry, &rPos ) );
- sal_Bool bShowSelection =
- ( ( ( bSelected && !bCursored )
- || bDropTarget
+ sal_Bool bShowSelection =
+ ( ( ( bSelected && !bCursored )
+ || bDropTarget
)
- && !bNoEmphasis
- && ( eSelectionMode != NO_SELECTION )
+ && !bNoEmphasis
+ && ( eSelectionMode != NO_SELECTION )
);
sal_Bool bActiveSelection = ( 0 != ( nWinBits & WB_NOHIDESELECTION ) ) || pView->HasFocus();
@@ -2087,7 +2087,7 @@ void SvxIconChoiceCtrl_Impl::SetEntryPos( SvxIconChoiceCtrlEntry* pEntry, const
}
else
{
- SvxIconChoiceCtrlEntry* pPrev = FindEntryPredecessor( pEntry, rPos );
+ SvxIconChoiceCtrlEntry* pPrev = FindEntryPredecessor( pEntry, rPos );
SetEntryPredecessor( pEntry, pPrev );
aAutoArrangeTimer.Start();
}
@@ -2299,7 +2299,7 @@ Rectangle SvxIconChoiceCtrl_Impl::CalcTextRect( SvxIconChoiceCtrlEntry* pEntry,
long SvxIconChoiceCtrl_Impl::CalcBoundingWidth( SvxIconChoiceCtrlEntry* pEntry ) const
{
long nStringWidth = GetItemSize( pEntry, IcnViewFieldTypeText ).Width();
-// nStringWidth += 2*LROFFS_TEXT;
+// nStringWidth += 2*LROFFS_TEXT;
long nWidth = 0;
switch( nWinBits & (VIEWMODE_MASK) )
@@ -2353,7 +2353,7 @@ Size SvxIconChoiceCtrl_Impl::CalcBoundingSize( SvxIconChoiceCtrlEntry* pEntry )
void SvxIconChoiceCtrl_Impl::RecalcAllBoundingRects()
{
- nMaxBoundHeight = 0;
+ nMaxBoundHeight = 0;
pZOrderList->Clear();
ULONG nCount = aEntries.Count();
ULONG nCur;
@@ -2387,7 +2387,7 @@ void SvxIconChoiceCtrl_Impl::RecalcAllBoundingRects()
void SvxIconChoiceCtrl_Impl::RecalcAllBoundingRectsSmart()
{
- nMaxBoundHeight = 0;
+ nMaxBoundHeight = 0;
pZOrderList->Clear();
ULONG nCur;
SvxIconChoiceCtrlEntry* pEntry;
@@ -2682,7 +2682,7 @@ void SvxIconChoiceCtrl_Impl::InvalidateBoundingRect( SvxIconChoiceCtrlEntry* pEn
BOOL SvxIconChoiceCtrl_Impl::HandleScrollCommand( const CommandEvent& rCmd )
{
- Rectangle aDocRect( GetDocumentRect() );
+ Rectangle aDocRect( GetDocumentRect() );
Rectangle aVisRect( GetVisibleRect() );
if( aVisRect.IsInside( aDocRect ))
return FALSE;
@@ -2812,7 +2812,7 @@ void SvxIconChoiceCtrl_Impl::MakeVisible( const Rectangle& rRect, BOOL bScrBar,
aOrigin *= -1;
Rectangle aOutputArea( GetOutputRect() );
if( aOutputArea.IsInside( aVirtRect ) )
- return; // ist schon sichtbar
+ return; // ist schon sichtbar
long nDy;
if( aVirtRect.Top() < aOutputArea.Top() )
@@ -2967,7 +2967,7 @@ Size SvxIconChoiceCtrl_Impl::GetMinGrid() const
{
Size aMinSize( aImageSize );
aMinSize.Width() += 2 * LROFFS_BOUND;
- aMinSize.Height() += TBOFFS_BOUND; // PB: einmal Offset reicht (FileDlg)
+ aMinSize.Height() += TBOFFS_BOUND; // PB: einmal Offset reicht (FileDlg)
String aStrDummy( RTL_CONSTASCII_USTRINGPARAM( "XXX" ) );
Size aTextSize( pView->GetTextWidth( aStrDummy ), pView->GetTextHeight() );
if( nWinBits & WB_ICON )
@@ -3258,9 +3258,9 @@ void SvxIconChoiceCtrl_Impl::SelectRange(
BOOL bAdd )
{
ULONG nFront = GetEntryListPos( pStart );
- ULONG nBack = GetEntryListPos( pEnd );
+ ULONG nBack = GetEntryListPos( pEnd );
ULONG nFirst = std::min( nFront, nBack );
- ULONG nLast = std::max( nFront, nBack );
+ ULONG nLast = std::max( nFront, nBack );
ULONG i;
SvxIconChoiceCtrlEntry* pEntry;
@@ -4296,7 +4296,7 @@ BOOL SvxIconChoiceCtrl_Impl::GetEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry
return TRUE;
}
-SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::FindEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry,
+SvxIconChoiceCtrlEntry* SvxIconChoiceCtrl_Impl::FindEntryPredecessor( SvxIconChoiceCtrlEntry* pEntry,
const Point& rPosTopLeft )
{
Point aPos( rPosTopLeft ); //TopLeft
@@ -4615,12 +4615,12 @@ BOOL SvxIconChoiceCtrl_Impl::HandleShortCutKey( const KeyEvent& rKEvt )
{
StopEditTimer();
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
DBG_ASSERT( rKEvt.GetKeyCode().IsMod2(), "*SvxIconChoiceCtrl_Impl::HandleShortCutKey(): no <ALT> pressed!?" );
- sal_Unicode cChar = rKEvt.GetCharCode();
- ULONG nPos = (ULONG)-1;
+ sal_Unicode cChar = rKEvt.GetCharCode();
+ ULONG nPos = (ULONG)-1;
if( cChar && IsMnemonicChar( cChar, nPos ) )
{
diff --git a/svtools/source/contnr/imivctl2.cxx b/svtools/source/contnr/imivctl2.cxx
index 43b03f569d5d..fbd7869df61d 100644
--- a/svtools/source/contnr/imivctl2.cxx
+++ b/svtools/source/contnr/imivctl2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,14 +32,14 @@
IcnCursor_Impl::IcnCursor_Impl( SvxIconChoiceCtrl_Impl* pOwner )
{
- pView = pOwner;
- pColumns = 0;
- pRows = 0;
- pCurEntry = 0;
+ pView = pOwner;
+ pColumns = 0;
+ pRows = 0;
+ pCurEntry = 0;
nDeltaWidth = 0;
nDeltaHeight= 0;
- nCols = 0;
- nRows = 0;
+ nCols = 0;
+ nRows = 0;
}
IcnCursor_Impl::~IcnCursor_Impl()
@@ -347,7 +347,7 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::GoLeftRight( SvxIconChoiceCtrlEntry* pCt
SvxIconChoiceCtrlEntry* IcnCursor_Impl::GoPageUpDown( SvxIconChoiceCtrlEntry* pStart, BOOL bDown)
{
- if( pView->IsAutoArrange() && !(pView->nWinBits & WB_ALIGN_TOP) )
+ if( pView->IsAutoArrange() && !(pView->nWinBits & WB_ALIGN_TOP) )
{
const long nPos = (long)pView->GetEntryListPos( pStart );
long nEntriesInView = (pView->aOutputSize.Height() / pView->nGridDY);
@@ -407,7 +407,7 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::GoPageUpDown( SvxIconChoiceCtrlEntry* pS
SvxIconChoiceCtrlEntry* IcnCursor_Impl::GoUpDown( SvxIconChoiceCtrlEntry* pCtrlEntry, BOOL bDown)
{
- if( pView->IsAutoArrange() && !(pView->nWinBits & WB_ALIGN_TOP) )
+ if( pView->IsAutoArrange() && !(pView->nWinBits & WB_ALIGN_TOP) )
{
ULONG nPos = pView->GetEntryListPos( pCtrlEntry );
if( bDown && nPos < (pView->aEntries.Count() - 1) )
diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx
index 6eeb469cf543..38949282f42b 100644
--- a/svtools/source/contnr/ivctrl.cxx
+++ b/svtools/source/contnr/ivctrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -129,9 +129,9 @@ SvtIconChoiceCtrl::SvtIconChoiceCtrl( Window* pParent, WinBits nWinStyle ) :
// WB_CLIPCHILDREN an, da ScrollBars auf dem Fenster liegen!
Control( pParent, nWinStyle | WB_CLIPCHILDREN ),
- _pCurKeyEvent ( NULL ),
- _pImp ( new SvxIconChoiceCtrl_Impl( this, nWinStyle ) ),
- _bAutoFontColor ( FALSE )
+ _pCurKeyEvent ( NULL ),
+ _pImp ( new SvxIconChoiceCtrl_Impl( this, nWinStyle ) ),
+ _bAutoFontColor ( FALSE )
{
SetLineColor();
@@ -144,9 +144,9 @@ SvtIconChoiceCtrl::SvtIconChoiceCtrl( Window* pParent, const ResId& rResId ) :
Control( pParent, rResId ),
- _pCurKeyEvent ( NULL ),
- _pImp ( new SvxIconChoiceCtrl_Impl( this, WB_BORDER ) ),
- _bAutoFontColor ( FALSE )
+ _pCurKeyEvent ( NULL ),
+ _pImp ( new SvxIconChoiceCtrl_Impl( this, WB_BORDER ) ),
+ _bAutoFontColor ( FALSE )
{
SetLineColor();
diff --git a/svtools/source/contnr/svcontnr.src b/svtools/source/contnr/svcontnr.src
index bcd1e060664f..aaf134383562 100644
--- a/svtools/source/contnr/svcontnr.src
+++ b/svtools/source/contnr/svcontnr.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/contnr/svicnvw.cxx b/svtools/source/contnr/svicnvw.cxx
index 7aaf2314b8a3..825db6d99370 100644
--- a/svtools/source/contnr/svicnvw.cxx
+++ b/svtools/source/contnr/svicnvw.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
#include <svimpicn.hxx>
#include <svtools/svlbitm.hxx>
-#define ICNVW_BLOCK_ENTRYINS 0x0001
+#define ICNVW_BLOCK_ENTRYINS 0x0001
SvIcnVwDataEntry::SvIcnVwDataEntry()
: nIcnVwFlags(0),eTextMode(ShowTextDontKnow)
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx
index 86c5146d9dec..a7a7bb615a8b 100644
--- a/svtools/source/contnr/svimpbox.cxx
+++ b/svtools/source/contnr/svimpbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,15 +50,15 @@
// #102891# --------------------
#include <comphelper/processfactory.hxx>
-#define NODE_BMP_TABDIST_NOTVALID -2000000
-#define FIRST_ENTRY_TAB 1
+#define NODE_BMP_TABDIST_NOTVALID -2000000
+#define FIRST_ENTRY_TAB 1
// #i27063# (pl), #i32300# (pb) never access VCL after DeInitVCL - also no destructors
-Image* SvImpLBox::s_pDefCollapsed = NULL;
-Image* SvImpLBox::s_pDefExpanded = NULL;
-Image* SvImpLBox::s_pDefCollapsedHC = NULL;
-Image* SvImpLBox::s_pDefExpandedHC = NULL;
-sal_Int32 SvImpLBox::s_nImageRefCount = 0;
+Image* SvImpLBox::s_pDefCollapsed = NULL;
+Image* SvImpLBox::s_pDefExpanded = NULL;
+Image* SvImpLBox::s_pDefCollapsedHC = NULL;
+Image* SvImpLBox::s_pDefExpandedHC = NULL;
+sal_Int32 SvImpLBox::s_nImageRefCount = 0;
SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvLBoxTreeList* pLBTree, WinBits nWinStyle) :
@@ -95,15 +95,15 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvLBoxTreeList* pLBTree, WinBits n
nHorSBarHeight = (short)aHorSBar.GetSizePixel().Height();
nVerSBarWidth = (short)aVerSBar.GetSizePixel().Width();
- pStartEntry = 0;
- pCursor = 0;
- pAnchor = 0;
- nVisibleCount = 0; // Anzahl Daten-Zeilen im Control
+ pStartEntry = 0;
+ pCursor = 0;
+ pAnchor = 0;
+ nVisibleCount = 0; // Anzahl Daten-Zeilen im Control
nNodeBmpTabDistance = NODE_BMP_TABDIST_NOTVALID;
- nYoffsNodeBmp = 0;
- nNodeBmpWidth = 0;
+ nYoffsNodeBmp = 0;
+ nNodeBmpWidth = 0;
- bAsyncBeginDrag = FALSE;
+ bAsyncBeginDrag = FALSE;
aAsyncBeginDragTimer.SetTimeout( 0 );
aAsyncBeginDragTimer.SetTimeoutHdl( LINK(this,SvImpLBox,BeginDragHdl));
// Button-Animation in Listbox
@@ -264,7 +264,7 @@ void SvImpLBox::SetExtendedWindowBits( ExtendedWinBits _nBits )
void SvImpLBox::Clear()
{
StopUserEvent();
- pStartEntry = 0;
+ pStartEntry = 0;
pAnchor = 0;
pActiveButton = 0;
@@ -1061,10 +1061,10 @@ void SvImpLBox::DrawNet()
//for platforms who don't have nets, DrawNativeControl does nothing and return true
//so that SvImpLBox::DrawNet() doesn't draw anything too
if(pView->IsNativeControlSupported( CTRL_LISTNET, PART_ENTIRE_CONTROL)) {
- ImplControlValue aControlValue;
+ ImplControlValue aControlValue;
Point aTemp(0,0); // temporary needed for g++ 3.3.5
Rectangle aCtrlRegion( aTemp, Size( 0, 0 ) );
- ControlState nState = CTRL_STATE_ENABLED;
+ ControlState nState = CTRL_STATE_ENABLED;
if( pView->DrawNativeControl( CTRL_LISTNET, PART_ENTIRE_CONTROL,
aCtrlRegion, nState, aControlValue, rtl::OUString() ) )
{
@@ -1422,7 +1422,7 @@ void SvImpLBox::FillView()
if( bFound )
{
aVerSBar.SetThumbPos( nThumb );
- ShowCursor( TRUE ); // Focusrect neu berechnen
+ ShowCursor( TRUE ); // Focusrect neu berechnen
pView->Invalidate();
}
}
@@ -1744,7 +1744,7 @@ void SvImpLBox::RemovingEntry( SvLBoxEntry* pEntry )
{
if( bSimpleTravel )
pView->Select( pCursor, FALSE );
- ShowCursor( FALSE ); // Focus-Rect weg
+ ShowCursor( FALSE ); // Focus-Rect weg
// NextSibling, weil auch Childs des Cursors geloescht werden
pTemp = pView->NextSibling( pCursor );
if( !pTemp )
@@ -1906,8 +1906,8 @@ void SvImpLBox::EntryInserted( SvLBoxEntry* pEntry )
SelAllDestrAnch( FALSE, TRUE );
else
DestroyAnchor();
- // nFlags &= (~F_DESEL_ALL);
-// ShowCursor( FALSE ); // falls sich Cursor nach unten verschiebt
+ // nFlags &= (~F_DESEL_ALL);
+// ShowCursor( FALSE ); // falls sich Cursor nach unten verschiebt
long nY = GetEntryLine( pEntry );
BOOL bEntryVisible = IsLineVisible( nY );
if( bEntryVisible )
@@ -1972,7 +1972,7 @@ void SvImpLBox::EntryInserted( SvLBoxEntry* pEntry )
// ****** Steuerung der Controlanimation
BOOL SvImpLBox::ButtonDownCheckCtrl(const MouseEvent& rMEvt, SvLBoxEntry* pEntry,
- long nY )
+ long nY )
{
SvLBoxItem* pItem = pView->GetItem(pEntry,rMEvt.GetPosPixel().X(),&pActiveTab);
if( pItem && (pItem->IsA()==SV_ITEM_ID_LBOXBUTTON))
@@ -2229,7 +2229,7 @@ void SvImpLBox::MouseMove( const MouseEvent& rMEvt)
BOOL SvImpLBox::KeyInput( const KeyEvent& rKEvt)
{
aEditTimer.Stop();
- const KeyCode& rKeyCode = rKEvt.GetKeyCode();
+ const KeyCode& rKeyCode = rKEvt.GetKeyCode();
if( rKeyCode.IsMod2() )
return FALSE; // Alt-Taste nicht auswerten
@@ -2276,7 +2276,7 @@ BOOL SvImpLBox::KeyInput( const KeyEvent& rKEvt)
if( pNewCursor )
{
aSelEng.CursorPosChanging( bShift, bMod1 );
- SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on
+ SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on
if( !IsEntryInView( pNewCursor ) )
KeyUp( FALSE );
}
@@ -2307,13 +2307,13 @@ BOOL SvImpLBox::KeyInput( const KeyEvent& rKEvt)
{
aSelEng.CursorPosChanging( bShift, bMod1 );
if( IsEntryInView( pNewCursor ) )
- SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on
+ SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on
else
{
if( pCursor )
pView->Select( pCursor, FALSE );
KeyDown( FALSE );
- SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on
+ SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on
}
}
else
@@ -2336,9 +2336,9 @@ BOOL SvImpLBox::KeyInput( const KeyEvent& rKEvt)
}
else if( pView->nWindowStyle & WB_HSCROLL )
{
- long nThumb = aHorSBar.GetThumbPos();
+ long nThumb = aHorSBar.GetThumbPos();
nThumb += aHorSBar.GetLineSize();
- long nOldThumb = aHorSBar.GetThumbPos();
+ long nOldThumb = aHorSBar.GetThumbPos();
aHorSBar.SetThumbPos( nThumb );
nThumb = nOldThumb;
nThumb -= aHorSBar.GetThumbPos();
@@ -2367,9 +2367,9 @@ BOOL SvImpLBox::KeyInput( const KeyEvent& rKEvt)
}
else if ( pView->nWindowStyle & WB_HSCROLL )
{
- long nThumb = aHorSBar.GetThumbPos();
+ long nThumb = aHorSBar.GetThumbPos();
nThumb -= aHorSBar.GetLineSize();
- long nOldThumb = aHorSBar.GetThumbPos();
+ long nOldThumb = aHorSBar.GetThumbPos();
aHorSBar.SetThumbPos( nThumb );
nThumb = nOldThumb;
nThumb -= aHorSBar.GetThumbPos();
@@ -2554,8 +2554,8 @@ BOOL SvImpLBox::KeyInput( const KeyEvent& rKEvt)
case KEY_A:
if( bMod1 )
SelAllDestrAnch( TRUE );
-// else
-// bKeyUsed = FALSE; #105907# assume user wants to use quicksearch with key "a", so key is handled!
+// else
+// bKeyUsed = FALSE; #105907# assume user wants to use quicksearch with key "a", so key is handled!
break;
case KEY_SUBTRACT:
@@ -2626,7 +2626,7 @@ BOOL SvImpLBox::KeyInput( const KeyEvent& rKEvt)
if( pNewCursor && pNewCursor != pCursor )
{
-// SelAllDestrAnch( FALSE );
+// SelAllDestrAnch( FALSE );
aSelEng.CursorPosChanging( bShift, bMod1 );
SetCursor( pNewCursor );
if( !IsEntryInView( pNewCursor ) )
@@ -2646,7 +2646,7 @@ BOOL SvImpLBox::KeyInput( const KeyEvent& rKEvt)
if( pNewCursor && pNewCursor != pCursor)
{
-// SelAllDestrAnch( FALSE );
+// SelAllDestrAnch( FALSE );
aSelEng.CursorPosChanging( bShift, bMod1 );
SetCursor( pNewCursor );
if( !IsEntryInView( pNewCursor ) )
@@ -2681,8 +2681,8 @@ void __EXPORT SvImpLBox::GetFocus()
pView->SetEntryFocus( pCursor, TRUE );
ShowCursor( TRUE );
// auskommentiert wg. deselectall
-// if( bSimpleTravel && !pView->IsSelected(pCursor) )
-// pView->Select( pCursor, TRUE );
+// if( bSimpleTravel && !pView->IsSelected(pCursor) )
+// pView->Select( pCursor, TRUE );
}
if( nWinBits & WB_HIDESELECTION )
{
@@ -2792,7 +2792,7 @@ BOOL __EXPORT ImpLBSelEng::SetCursorAtPoint(const Point& rPoint, BOOL bDontSelec
// bei SimpleTravel wird in SetCursor selektiert und
// der Select-Handler gerufen
//if( !bDontSelectAtCursor && !pImp->bSimpleTravel )
- // pImp->SelectEntry( pNewCursor, TRUE );
+ // pImp->SelectEntry( pNewCursor, TRUE );
pImp->SetCursor( pNewCursor, bDontSelectAtCursor );
return TRUE;
}
@@ -3095,7 +3095,7 @@ void lcl_DeleteSubPopups(PopupMenu* pPopup)
bool SvImpLBox::Command( const CommandEvent& rCEvt )
{
- USHORT nCommand = rCEvt.GetCommand();
+ USHORT nCommand = rCEvt.GetCommand();
if( nCommand == COMMAND_CONTEXTMENU )
aEditTimer.Stop();
@@ -3120,22 +3120,22 @@ bool SvImpLBox::Command( const CommandEvent& rCEvt )
if( bContextMenuHandling && nCommand == COMMAND_CONTEXTMENU )
{
- Point aPopupPos;
- BOOL bClickedIsFreePlace = FALSE;
+ Point aPopupPos;
+ BOOL bClickedIsFreePlace = FALSE;
std::stack<SvLBoxEntry*> aSelRestore;
if( rCEvt.IsMouseEvent() )
- { // change selection, if mouse pos doesn't fit to selection
+ { // change selection, if mouse pos doesn't fit to selection
aPopupPos = rCEvt.GetMousePosPixel();
- SvLBoxEntry* pClickedEntry = GetEntry( aPopupPos );
+ SvLBoxEntry* pClickedEntry = GetEntry( aPopupPos );
if( pClickedEntry )
- { // mouse in non empty area
- BOOL bClickedIsSelected = FALSE;
+ { // mouse in non empty area
+ BOOL bClickedIsSelected = FALSE;
// collect the currently selected entries
- SvLBoxEntry* pSelected = pView->FirstSelected();
+ SvLBoxEntry* pSelected = pView->FirstSelected();
while( pSelected )
{
bClickedIsSelected |= ( pClickedEntry == pSelected );
@@ -3144,7 +3144,7 @@ bool SvImpLBox::Command( const CommandEvent& rCEvt )
// if the entry which the user clicked at is not selected
if( !bClickedIsSelected )
- { // deselect all other and select the clicked one
+ { // deselect all other and select the clicked one
pView->SelectAll( FALSE );
pView->SetCursor( pClickedEntry );
}
@@ -3152,8 +3152,8 @@ bool SvImpLBox::Command( const CommandEvent& rCEvt )
else if( aSelEng.GetSelectionMode() == SINGLE_SELECTION )
{//modified by BerryJia for fixing Bug102739 2002-9-9 17:00(Beijing Time)
bClickedIsFreePlace = TRUE;
- INT32 nSelectedEntries = pView->GetSelectionCount();
- SvLBoxEntry* pSelected = pView->FirstSelected();
+ INT32 nSelectedEntries = pView->GetSelectionCount();
+ SvLBoxEntry* pSelected = pView->FirstSelected();
for(USHORT nSel = 0; nSel < nSelectedEntries; nSel++ )
{
aSelRestore.push(pSelected);
@@ -3162,17 +3162,17 @@ bool SvImpLBox::Command( const CommandEvent& rCEvt )
pView->SelectAll( FALSE );
}
else
- { // deselect all
+ { // deselect all
pView->SelectAll( FALSE );
}
}
else
- { // key event (or at least no mouse event)
- INT32 nSelectionCount = pView->GetSelectionCount();
+ { // key event (or at least no mouse event)
+ INT32 nSelectionCount = pView->GetSelectionCount();
if( nSelectionCount )
- { // now allways take first visible as base for positioning the menu
- SvLBoxEntry* pSelected = pView->FirstSelected();
+ { // now allways take first visible as base for positioning the menu
+ SvLBoxEntry* pSelected = pView->FirstSelected();
while( pSelected )
{
if( IsEntryInView( pSelected ) )
@@ -3194,7 +3194,7 @@ bool SvImpLBox::Command( const CommandEvent& rCEvt )
aPopupPos = Point( 0, 0 );
}
- PopupMenu* pPopup = pView->CreateContextMenu();
+ PopupMenu* pPopup = pView->CreateContextMenu();
if( pPopup )
{
@@ -3291,8 +3291,8 @@ IMPL_LINK( SvImpLBox, EditTimerCall, Timer *, EMPTYARG )
if ( bIsMouseTriggered )
{
Point aCurrentMousePos = pView->GetPointerPosPixel();
- if ( ( abs( aCurrentMousePos.X() - aEditClickPos.X() ) > 5 )
- || ( abs( aCurrentMousePos.Y() - aEditClickPos.Y() ) > 5 )
+ if ( ( abs( aCurrentMousePos.X() - aEditClickPos.X() ) > 5 )
+ || ( abs( aCurrentMousePos.Y() - aEditClickPos.Y() ) > 5 )
)
{
return 0L;
@@ -3346,7 +3346,7 @@ BOOL SvImpLBox::RequestHelp( const HelpEvent& rHEvt )
{
// rechten Item-Rand am View-Rand clippen
//if( aItemRect.Right() > aViewRect.Right() )
- // aItemRect.Right() = aViewRect.Right();
+ // aItemRect.Right() = aViewRect.Right();
Point aPt = pView->OutputToScreenPixel( aItemRect.TopLeft() );
aItemRect.Left() = aPt.X();
diff --git a/svtools/source/contnr/svimpicn.cxx b/svtools/source/contnr/svimpicn.cxx
index 95e1e2835a54..43e3289deb24 100644
--- a/svtools/source/contnr/svimpicn.cxx
+++ b/svtools/source/contnr/svimpicn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,32 +44,32 @@
-#define VIEWMODE_ICON 0x0001 // Text unter Bitmap
-#define VIEWMODE_NAME 0x0002 // Text rechts neben Bitmap
-#define VIEWMODE_TEXT 0x0004 // Text ohne Bitmap
+#define VIEWMODE_ICON 0x0001 // Text unter Bitmap
+#define VIEWMODE_NAME 0x0002 // Text rechts neben Bitmap
+#define VIEWMODE_TEXT 0x0004 // Text ohne Bitmap
#define DD_SCROLL_PIXEL 10
// alle Angaben in Pixel
-#define ICONVIEW_OFFS_BMP_STRING 3
+#define ICONVIEW_OFFS_BMP_STRING 3
// fuer das Bounding-Rectangle
-#define LROFFS_BOUND 2
-#define TBOFFS_BOUND 2
+#define LROFFS_BOUND 2
+#define TBOFFS_BOUND 2
// fuer das Focus-Rectangle um Icons
-#define LROFFS_ICON 2
-#define TBOFFS_ICON 2
+#define LROFFS_ICON 2
+#define TBOFFS_ICON 2
-#define NAMEVIEW_OFFS_BMP_STRING 3
+#define NAMEVIEW_OFFS_BMP_STRING 3
// Abstaende von Fensterraendern
-#define LROFFS_WINBORDER 4
-#define TBOFFS_WINBORDER 4
+#define LROFFS_WINBORDER 4
+#define TBOFFS_WINBORDER 4
// Breitenoffset Highlight-Rect bei Text
-#define LROFFS_TEXT 2
+#define LROFFS_TEXT 2
#define ICNVIEWDATA(xPtr) (SvIcnVwDataEntry*)(pView->GetViewDataEntry(xPtr))
@@ -643,62 +643,62 @@ void DrawText( OutputDevice* pDev, const Rectangle& rRect,
class ImpIcnCursor
{
- SvImpIconView* pView;
- SvPtrarr* pColumns;
- SvPtrarr* pRows;
- BOOL* pGridMap;
- long nGridDX, nGridDY;
- long nGridCols, nGridRows;
- long nCols;
- long nRows;
- short nDeltaWidth;
- short nDeltaHeight;
- SvLBoxEntry* pCurEntry;
- void SetDeltas();
- void ImplCreate();
- void Create() { if( !pColumns ) ImplCreate(); }
-
- USHORT GetSortListPos( SvPtrarr* pList, long nValue, int bVertical);
- SvLBoxEntry* SearchCol(USHORT nCol,USHORT nTop,USHORT nBottom,USHORT nPref,
+ SvImpIconView* pView;
+ SvPtrarr* pColumns;
+ SvPtrarr* pRows;
+ BOOL* pGridMap;
+ long nGridDX, nGridDY;
+ long nGridCols, nGridRows;
+ long nCols;
+ long nRows;
+ short nDeltaWidth;
+ short nDeltaHeight;
+ SvLBoxEntry* pCurEntry;
+ void SetDeltas();
+ void ImplCreate();
+ void Create() { if( !pColumns ) ImplCreate(); }
+
+ USHORT GetSortListPos( SvPtrarr* pList, long nValue, int bVertical);
+ SvLBoxEntry* SearchCol(USHORT nCol,USHORT nTop,USHORT nBottom,USHORT nPref,
BOOL bDown, BOOL bSimple );
- SvLBoxEntry* SearchRow(USHORT nRow,USHORT nRight,USHORT nLeft,USHORT nPref,
+ SvLBoxEntry* SearchRow(USHORT nRow,USHORT nRight,USHORT nLeft,USHORT nPref,
BOOL bRight, BOOL bSimple );
- void ExpandGrid();
- void CreateGridMap();
+ void ExpandGrid();
+ void CreateGridMap();
// Rueckgabe FALSE: Eintrag liegt nicht in der GridMap. rGridx,y werden
// dann an nGridCols, nGridRows geclippt
- BOOL GetGrid( const Point& rDocPos, USHORT& rGridX, USHORT& rGridY ) const;
- void SetGridUsed( USHORT nDX, USHORT nDY, BOOL bUsed )
+ BOOL GetGrid( const Point& rDocPos, USHORT& rGridX, USHORT& rGridY ) const;
+ void SetGridUsed( USHORT nDX, USHORT nDY, BOOL bUsed )
{
pGridMap[ (nDY * nGridCols) + nDX ] = bUsed;
}
- BOOL IsGridUsed( USHORT nDX, USHORT nDY )
+ BOOL IsGridUsed( USHORT nDX, USHORT nDY )
{
return pGridMap[ (nDY * nGridCols) + nDX ];
}
public:
ImpIcnCursor( SvImpIconView* pOwner );
~ImpIcnCursor();
- void Clear( BOOL bGridToo = TRUE );
+ void Clear( BOOL bGridToo = TRUE );
// fuer Cursortravelling usw.
- SvLBoxEntry* GoLeftRight( SvLBoxEntry*, BOOL bRight );
- SvLBoxEntry* GoUpDown( SvLBoxEntry*, BOOL bDown );
+ SvLBoxEntry* GoLeftRight( SvLBoxEntry*, BOOL bRight );
+ SvLBoxEntry* GoUpDown( SvLBoxEntry*, BOOL bDown );
// Rueckgaebe: FALSE == Das leere Rect steht hinter dem letzten
// Eintrag; d.h. beim naechsten Einfuegen ergibt sich das naechste
// leere Rechteck durch Addition. Hinweis: Das Rechteck kann dann
// ausserhalb des View-Space liegen
- BOOL FindEmptyGridRect( Rectangle& rRect );
+ BOOL FindEmptyGridRect( Rectangle& rRect );
// Erzeugt fuer jede Zeile (Hoehe=nGridDY) eine nach BoundRect.Left()
// sortierte Liste der Eintraege, die in ihr stehen. Eine Liste kann
// leer sein. Die Listen gehen in das Eigentum des Rufenden ueber und
// muessen mit DestroyGridAdjustData geloescht werden
- void CreateGridAjustData( SvPtrarr& pLists, SvLBoxEntry* pRow=0);
- static void DestroyGridAdjustData( SvPtrarr& rLists );
- void SetGridUsed( const Rectangle&, BOOL bUsed = TRUE );
+ void CreateGridAjustData( SvPtrarr& pLists, SvLBoxEntry* pRow=0);
+ static void DestroyGridAdjustData( SvPtrarr& rLists );
+ void SetGridUsed( const Rectangle&, BOOL bUsed = TRUE );
};
@@ -876,7 +876,7 @@ void SvImpIconView::EntryInserted( SvLBoxEntry* pEntry )
StopEditTimer();
DBG_ASSERT(pZOrderList->GetPos(pEntry)==0xffff,"EntryInserted:ZOrder?");
pZOrderList->Insert( pEntry, pZOrderList->Count() );
- if( nFlags & F_GRIDMODE )
+ if( nFlags & F_GRIDMODE )
pImpCursor->Clear( FALSE );
else
pImpCursor->Clear( TRUE );
@@ -1044,7 +1044,7 @@ void SvImpIconView::EntrySelected( SvLBoxEntry* pEntry, BOOL bSelect )
void SvImpIconView::SetNextEntryPos(const Point& rPos)
{
aPrevBoundRect.SetPos( rPos );
- aPrevBoundRect.Right() = LONG_MAX; // dont know
+ aPrevBoundRect.Right() = LONG_MAX; // dont know
}
Point SvImpIconView::FindNextEntryPos( const Size& rBoundSize )
@@ -2092,8 +2092,8 @@ void SvImpIconView::PaintEntry( SvLBoxEntry* pEntry, const Point& rPos,
SvLBoxString* pStringItem = (SvLBoxString*)(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING));
- BOOL bSelected = pViewData->IsSelected();
- BOOL bCursored = pViewData->IsCursored();
+ BOOL bSelected = pViewData->IsSelected();
+ BOOL bCursored = pViewData->IsCursored();
Font aTempFont( pOut->GetFont() );
// waehrend D&D nicht die Fontfarbe wechseln, da sonst auch die
@@ -2416,7 +2416,7 @@ Rectangle SvImpIconView::CalcTextRect( SvLBoxEntry* pEntry,
Rectangle aRect( aPos, aTextSize );
// KNALLT BEIM D&D, WENN GECLIPPT WIRD (In DrawText von Thomas)
-// ClipAtVirtOutRect( aRect );
+// ClipAtVirtOutRect( aRect );
return aRect;
}
@@ -2497,7 +2497,7 @@ Size SvImpIconView::CalcBoundingSize( SvLBoxEntry* pEntry,
void SvImpIconView::RecalcAllBoundingRects()
{
- nMaxBoundHeight = 0;
+ nMaxBoundHeight = 0;
pZOrderList->Remove(0, pZOrderList->Count() );
SvLBoxEntry* pEntry = pModel->FirstChild( pCurParent );
while( pEntry )
@@ -2512,7 +2512,7 @@ void SvImpIconView::RecalcAllBoundingRects()
void SvImpIconView::RecalcAllBoundingRectsSmart()
{
- nMaxBoundHeight = 0;
+ nMaxBoundHeight = 0;
pZOrderList->Remove(0, pZOrderList->Count() );
SvLBoxEntry* pEntry = pModel->FirstChild( pCurParent );
while( pEntry )
@@ -2917,7 +2917,7 @@ void SvImpIconView::MakeVisible( const Rectangle& rRect, BOOL bScrBar )
Rectangle aOutputArea( aOrigin, aOutputSize );
if( aOutputArea.IsInside( aRect ) )
- return; // ist schon sichtbar
+ return; // ist schon sichtbar
long nDy;
if( aRect.Top() < aOutputArea.Top() )
@@ -3039,22 +3039,22 @@ void SvImpIconView::DeselectAllBut( SvLBoxEntry* pThisEntryNot )
}
}
-#define ICN_ROWS 50
-#define ICN_COLS 30
+#define ICN_ROWS 50
+#define ICN_COLS 30
ImpIcnCursor::ImpIcnCursor( SvImpIconView* pOwner )
{
- pView = pOwner;
- pColumns = 0;
- pRows = 0;
- pCurEntry = 0;
+ pView = pOwner;
+ pColumns = 0;
+ pRows = 0;
+ pCurEntry = 0;
nDeltaWidth = 0;
nDeltaHeight= 0;
- nCols = 0;
- nRows = 0;
- nGridCols = 0;
- nGridRows = 0;
- pGridMap = 0;
+ nCols = 0;
+ nRows = 0;
+ nGridCols = 0;
+ nGridRows = 0;
+ pGridMap = 0;
}
ImpIcnCursor::~ImpIcnCursor()
@@ -3587,7 +3587,7 @@ BOOL ImpIcnCursor::FindEmptyGridRect( Rectangle& rRect )
//XXX
//if( nRow + 5 > nGridRows )
- // ExpandGrid();
+ // ExpandGrid();
DBG_ASSERT(pGridMap[nCur],"SetGridUsed failed");
return TRUE;
}
diff --git a/svtools/source/contnr/svlbitm.cxx b/svtools/source/contnr/svlbitm.cxx
index 39a62ade19fa..0803be345ee3 100644
--- a/svtools/source/contnr/svlbitm.cxx
+++ b/svtools/source/contnr/svlbitm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,9 +42,9 @@
struct SvLBoxButtonData_Impl
{
- SvLBoxEntry* pEntry;
- BOOL bDefaultImages;
- BOOL bShowRadioButton;
+ SvLBoxEntry* pEntry;
+ BOOL bDefaultImages;
+ BOOL bShowRadioButton;
SvLBoxButtonData_Impl() : pEntry( NULL ), bDefaultImages( FALSE ), bShowRadioButton( FALSE ) {}
};
@@ -177,21 +177,21 @@ void SvLBoxButtonData::SetDefaultImages( const Control* pCtrl )
if ( pImpl->bShowRadioButton )
{
- aBmps[ SV_BMP_UNCHECKED ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_DEFAULT );
- aBmps[ SV_BMP_CHECKED ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_CHECKED );
- aBmps[ SV_BMP_HICHECKED ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_CHECKED | BUTTON_DRAW_PRESSED );
- aBmps[ SV_BMP_HIUNCHECKED ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_DEFAULT | BUTTON_DRAW_PRESSED );
- aBmps[ SV_BMP_TRISTATE ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_DONTKNOW );
- aBmps[ SV_BMP_HITRISTATE ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_DONTKNOW | BUTTON_DRAW_PRESSED );
+ aBmps[ SV_BMP_UNCHECKED ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_DEFAULT );
+ aBmps[ SV_BMP_CHECKED ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_CHECKED );
+ aBmps[ SV_BMP_HICHECKED ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_CHECKED | BUTTON_DRAW_PRESSED );
+ aBmps[ SV_BMP_HIUNCHECKED ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_DEFAULT | BUTTON_DRAW_PRESSED );
+ aBmps[ SV_BMP_TRISTATE ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_DONTKNOW );
+ aBmps[ SV_BMP_HITRISTATE ] = RadioButton::GetRadioImage( rSettings, BUTTON_DRAW_DONTKNOW | BUTTON_DRAW_PRESSED );
}
else
{
- aBmps[ SV_BMP_UNCHECKED ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_DEFAULT );
- aBmps[ SV_BMP_CHECKED ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_CHECKED );
- aBmps[ SV_BMP_HICHECKED ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_CHECKED | BUTTON_DRAW_PRESSED );
- aBmps[ SV_BMP_HIUNCHECKED ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_DEFAULT | BUTTON_DRAW_PRESSED );
- aBmps[ SV_BMP_TRISTATE ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_DONTKNOW );
- aBmps[ SV_BMP_HITRISTATE ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_DONTKNOW | BUTTON_DRAW_PRESSED );
+ aBmps[ SV_BMP_UNCHECKED ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_DEFAULT );
+ aBmps[ SV_BMP_CHECKED ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_CHECKED );
+ aBmps[ SV_BMP_HICHECKED ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_CHECKED | BUTTON_DRAW_PRESSED );
+ aBmps[ SV_BMP_HIUNCHECKED ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_DEFAULT | BUTTON_DRAW_PRESSED );
+ aBmps[ SV_BMP_TRISTATE ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_DONTKNOW );
+ aBmps[ SV_BMP_HITRISTATE ] = CheckBox::GetCheckImage( rSettings, BUTTON_DRAW_DONTKNOW | BUTTON_DRAW_PRESSED );
}
}
@@ -201,7 +201,7 @@ BOOL SvLBoxButtonData::HasDefaultImages( void ) const
}
BOOL SvLBoxButtonData::IsRadio() {
- return pImpl->bShowRadioButton;
+ return pImpl->bShowRadioButton;
}
// ***************************************************************
@@ -246,7 +246,7 @@ void SvLBoxString::Paint( const Point& rPos, SvLBox& rDev, USHORT /* nFlags */,
}
else
rDev.DrawText( rPos, aStr);
-
+
}
SvLBoxItem* SvLBoxString::Create() const
@@ -412,7 +412,7 @@ void SvLBoxButton::Paint( const Point& rPos, SvLBox& rDev, USHORT /* nFlags */,
? SV_BMP_STATICIMAGE : pData->GetIndex( nItemFlags );
USHORT nStyle = eKind != SvLBoxButtonKind_disabledCheckbox &&
rDev.IsEnabled() ? 0 : IMAGE_DRAW_DISABLE;
-
+
///
//Native drawing
///
@@ -420,16 +420,16 @@ void SvLBoxButton::Paint( const Point& rPos, SvLBox& rDev, USHORT /* nFlags */,
Window *pWin = NULL;
if( rDev.GetOutDevType() == OUTDEV_WINDOW )
pWin = (Window*) &rDev;
-
+
if ( nIndex != SV_BMP_STATICIMAGE && pWin && pWin->IsNativeControlSupported( (pData->IsRadio())? CTRL_RADIOBUTTON : CTRL_CHECKBOX, PART_ENTIRE_CONTROL) )
{
ImplControlValue aControlValue;
Rectangle aCtrlRegion( rPos, Size(pData->Width(), pData->Height()) );
ControlState nState = 0;
-
+
//states CTRL_STATE_DEFAULT, CTRL_STATE_PRESSED and CTRL_STATE_ROLLOVER are not implemented
- if ( IsStateHilighted() ) nState |= CTRL_STATE_FOCUSED;
- if ( nStyle != IMAGE_DRAW_DISABLE ) nState |= CTRL_STATE_ENABLED;
+ if ( IsStateHilighted() ) nState |= CTRL_STATE_FOCUSED;
+ if ( nStyle != IMAGE_DRAW_DISABLE ) nState |= CTRL_STATE_ENABLED;
if ( IsStateChecked() )
aControlValue.setTristateVal( BUTTONVALUE_ON );
@@ -442,7 +442,7 @@ void SvLBoxButton::Paint( const Point& rPos, SvLBox& rDev, USHORT /* nFlags */,
aCtrlRegion, nState, aControlValue, rtl::OUString() );
}
- if( !bNativeOK)
+ if( !bNativeOK)
rDev.DrawImage( rPos, pData->aBmps[nIndex + nBaseOffs] ,nStyle);
}
@@ -480,13 +480,13 @@ bool SvLBoxButton::CheckModification() const
struct SvLBoxContextBmp_Impl
{
- Image m_aImage1;
- Image m_aImage2;
+ Image m_aImage1;
+ Image m_aImage2;
- Image m_aImage1_hc;
- Image m_aImage2_hc;
+ Image m_aImage1_hc;
+ Image m_aImage2_hc;
- USHORT m_nB2IndicatorFlags;
+ USHORT m_nB2IndicatorFlags;
};
// ***************************************************************
@@ -585,7 +585,7 @@ void SvLBoxContextBmp::Paint( const Point& _rPos, SvLBox& _rDev,
// determine the image set
BmpColorMode eMode( BMP_COLOR_NORMAL );
if ( !!m_pImpl->m_aImage1_hc )
- { // we really have HC images
+ { // we really have HC images
if ( _rDev.GetSettings().GetStyleSettings().GetHighContrastMode() )
eMode = BMP_COLOR_HIGHCONTRAST;
}
diff --git a/svtools/source/contnr/svlbox.cxx b/svtools/source/contnr/svlbox.cxx
index 1b1552a707aa..b192d9836803 100644
--- a/svtools/source/contnr/svlbox.cxx
+++ b/svtools/source/contnr/svlbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,19 +65,19 @@ DBG_NAME(SvInplaceEdit2)
SvInplaceEdit::SvInplaceEdit
(
- Window* pParent,
- const Point& rPos,
- const Size& rSize,
- const String& rData,
- const Link& rNotifyEditEnd,
- const Selection& rSelection
+ Window* pParent,
+ const Point& rPos,
+ const Size& rSize,
+ const String& rData,
+ const Link& rNotifyEditEnd,
+ const Selection& rSelection
) :
Edit( pParent, WB_LEFT ),
- aCallBackHdl ( rNotifyEditEnd ),
- bCanceled ( FALSE ),
- bAlreadyInCallBack ( FALSE )
+ aCallBackHdl ( rNotifyEditEnd ),
+ bCanceled ( FALSE ),
+ bAlreadyInCallBack ( FALSE )
{
DBG_CTOR(SvInplaceEdit,0);
@@ -270,10 +270,10 @@ SvInplaceEdit2::SvInplaceEdit2
BOOL bMulti
) :
- aCallBackHdl ( rNotifyEditEnd ),
- bCanceled ( FALSE ),
- bAlreadyInCallBack ( FALSE ),
- bMultiLine ( bMulti )
+ aCallBackHdl ( rNotifyEditEnd ),
+ bCanceled ( FALSE ),
+ bAlreadyInCallBack ( FALSE ),
+ bMultiLine ( bMulti )
{
DBG_CTOR(SvInplaceEdit2,0);
@@ -535,7 +535,7 @@ SvLBoxItem::~SvLBoxItem()
const Size& SvLBoxItem::GetSize( SvLBox* pView,SvLBoxEntry* pEntry )
{
DBG_CHKTHIS(SvLBoxItem,0);
- SvViewDataItem* pViewData = pView->GetViewDataItem( pEntry, this );
+ SvViewDataItem* pViewData = pView->GetViewDataItem( pEntry, this );
return pViewData->aSize;
}
@@ -693,7 +693,7 @@ SvLBox_Impl::SvLBox_Impl( SvLBox& _rBox )
DBG_NAME(SvLBox);
-SvLBox::SvLBox( Window* pParent, WinBits nWinStyle ) :
+SvLBox::SvLBox( Window* pParent, WinBits nWinStyle ) :
Control( pParent, nWinStyle | WB_CLIPCHILDREN ),
DropTargetHelper( this ), DragSourceHelper( this ), eSelMode( NO_SELECTION )
{
@@ -777,7 +777,7 @@ void SvLBox::DisconnectFromModel()
{
DBG_CHKTHIS(SvLBox,0);
SvLBoxTreeList* pNewModel = new SvLBoxTreeList;
- pNewModel->SetRefCount( 0 ); // else this will never be deleted
+ pNewModel->SetRefCount( 0 ); // else this will never be deleted
SvListView::SetModel( pNewModel );
}
@@ -920,18 +920,18 @@ void SvLBox::NotifyRemoving( SvLBoxEntry* )
*/
#ifdef DBG_UTIL
BOOL SvLBox::NotifyMoving(
- SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
- SvLBoxEntry* pEntry, // Zu verschiebender Entry aus
+ SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
+ SvLBoxEntry* pEntry, // Zu verschiebender Entry aus
// GetSourceListBox()->GetModel()
SvLBoxEntry*& rpNewParent, // Neuer Target-Parent
- ULONG& rNewChildPos) // Position in Childlist des Target-Parents
+ ULONG& rNewChildPos) // Position in Childlist des Target-Parents
#else
BOOL SvLBox::NotifyMoving(
- SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
- SvLBoxEntry*, // Zu verschiebender Entry aus
+ SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
+ SvLBoxEntry*, // Zu verschiebender Entry aus
// GetSourceListBox()->GetModel()
SvLBoxEntry*& rpNewParent, // Neuer Target-Parent
- ULONG& rNewChildPos) // Position in Childlist des Target-Parents
+ ULONG& rNewChildPos) // Position in Childlist des Target-Parents
#endif
{
DBG_CHKTHIS(SvLBox,0);
@@ -963,11 +963,11 @@ BOOL SvLBox::NotifyMoving(
}
BOOL SvLBox::NotifyCopying(
- SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
- SvLBoxEntry* pEntry, // Zu kopierender Entry aus
+ SvLBoxEntry* pTarget, // D&D-Drop-Position in this->GetModel()
+ SvLBoxEntry* pEntry, // Zu kopierender Entry aus
// GetSourceListBox()->GetModel()
SvLBoxEntry*& rpNewParent, // Neuer Target-Parent
- ULONG& rNewChildPos) // Position in Childlist des Target-Parents
+ ULONG& rNewChildPos) // Position in Childlist des Target-Parents
{
DBG_CHKTHIS(SvLBox,0);
return NotifyMoving(pTarget,pEntry,rpNewParent,rNewChildPos);
@@ -1604,7 +1604,7 @@ void SvLBox::ModelHasEntryInvalidated( SvListEntry* pEntry )
USHORT nCount = ((SvLBoxEntry*)pEntry)->ItemCount();
for( USHORT nIdx = 0; nIdx < nCount; nIdx++ )
{
- SvLBoxItem* pItem = ((SvLBoxEntry*)pEntry)->GetItem( nIdx );
+ SvLBoxItem* pItem = ((SvLBoxEntry*)pEntry)->GetItem( nIdx );
pItem->InitViewData( this, (SvLBoxEntry*)pEntry, 0 );
}
}
diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx
index 955d8215e13a..0440afa226ca 100644
--- a/svtools/source/contnr/svtabbx.cxx
+++ b/svtools/source/contnr/svtabbx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -114,7 +114,7 @@ SvTabListBox::SvTabListBox( Window* pParent, WinBits nBits )
pTabList = 0;
nTabCount = 0;
pViewParent = 0;
- SetHighlightRange(); // ueber volle Breite selektieren
+ SetHighlightRange(); // ueber volle Breite selektieren
}
SvTabListBox::SvTabListBox( Window* pParent, const ResId& rResId )
@@ -230,7 +230,7 @@ SvLBoxEntry* SvTabListBox::InsertEntryToColumn(const XubString& rStr,SvLBoxEntry
}
SvLBoxEntry* SvTabListBox::InsertEntryToColumn( const XubString& rStr,
- const Image& rExpandedEntryBmp, const Image& rCollapsedEntryBmp,
+ const Image& rExpandedEntryBmp, const Image& rCollapsedEntryBmp,
SvLBoxEntry* pParent,ULONG nPos,USHORT nCol, void* pUser )
{
XubString aStr;
@@ -580,9 +580,9 @@ SvHeaderTabListBox::SvHeaderTabListBox( Window* pParent, WinBits nWinStyle ) :
SvTabListBox( pParent, nWinStyle ),
- m_bFirstPaint ( TRUE ),
+ m_bFirstPaint ( TRUE ),
m_pImpl ( new ::svt::SvHeaderTabListBoxImpl ),
- m_pAccessible ( NULL )
+ m_pAccessible ( NULL )
{
}
@@ -592,9 +592,9 @@ SvHeaderTabListBox::SvHeaderTabListBox( Window* pParent, const ResId& rResId ) :
SvTabListBox( pParent, rResId ),
- m_bFirstPaint ( TRUE ),
+ m_bFirstPaint ( TRUE ),
m_pImpl ( new ::svt::SvHeaderTabListBoxImpl ),
- m_pAccessible ( NULL )
+ m_pAccessible ( NULL )
{
}
@@ -1018,7 +1018,7 @@ Reference< XAccessible > SvHeaderTabListBox::CreateAccessibleColumnHeader( sal_u
if ( m_aAccessibleChildren.empty() )
{
const sal_uInt16 nColumnCount = GetColumnCount();
- sal_Int32 nCount = AreChildrenTransient() ?
+ sal_Int32 nCount = AreChildrenTransient() ?
nColumnCount : ( GetRowCount() + 1 ) * nColumnCount;
m_aAccessibleChildren.assign( nCount, Reference< XAccessible >() );
}
diff --git a/svtools/source/contnr/svtreebx.cxx b/svtools/source/contnr/svtreebx.cxx
index fb364d34be4d..1b457e51519a 100644
--- a/svtools/source/contnr/svtreebx.cxx
+++ b/svtools/source/contnr/svtreebx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ using namespace ::com::sun::star::accessibility;
beruecksichtigt
*/
-#define TREEFLAG_FIXEDHEIGHT 0x0010
+#define TREEFLAG_FIXEDHEIGHT 0x0010
DBG_NAME(SvTreeListBox)
@@ -214,7 +214,7 @@ void SvTreeListBox::Resize()
SV_LBOXTAB_ADJUST_CENTER | \
SV_LBOXTAB_PUSHABLE)
-#define TAB_STARTPOS 2
+#define TAB_STARTPOS 2
// bei Aenderungen GetTextOffset beruecksichtigen
void SvTreeListBox::SetTabs()
@@ -1019,7 +1019,7 @@ BOOL SvTreeListBox::Collapse( SvLBoxEntry* pParent )
pHdlEntry = pParent;
BOOL bCollapsed = FALSE;
- if( ExpandingHdl() )
+ if( ExpandingHdl() )
{
bCollapsed = TRUE;
pImp->CollapsingEntry( pParent );
@@ -1081,8 +1081,8 @@ void SvTreeListBox::SelectAll( BOOL bSelect, BOOL )
DBG_CHKTHIS(SvTreeListBox,0);
pImp->SelAllDestrAnch(
bSelect,
- TRUE, // Anker loeschen,
- TRUE ); // auch bei SINGLE_SELECTION den Cursor deselektieren
+ TRUE, // Anker loeschen,
+ TRUE ); // auch bei SINGLE_SELECTION den Cursor deselektieren
}
void SvTreeListBox::ModelHasInsertedTree( SvListEntry* pEntry )
@@ -1511,7 +1511,7 @@ void SvTreeListBox::InvalidateEntry( SvLBoxEntry* pEntry )
if( pEntry )
{
GetModel()->InvalidateEntry( pEntry );
- // pImp->InvalidateEntry( pEntry );
+ // pImp->InvalidateEntry( pEntry );
}
}
@@ -1793,11 +1793,11 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
BOOL bNativeOK = FALSE;
if ( IsNativeControlSupported( CTRL_LISTNODE, PART_ENTIRE_CONTROL) )
{
- ImplControlValue aControlValue;
+ ImplControlValue aControlValue;
Rectangle aCtrlRegion( aPos, pImg->GetSizePixel() );
- ControlState nState = 0;
+ ControlState nState = 0;
- if ( IsEnabled() ) nState |= CTRL_STATE_ENABLED;
+ if ( IsEnabled() ) nState |= CTRL_STATE_ENABLED;
if ( IsExpanded(pEntry) )
aControlValue.setTristateVal( BUTTONVALUE_ON );//expanded node
@@ -2486,8 +2486,8 @@ void SvTreeListBox::DataChanged( const DataChangedEvent& rDCEvt )
{
if( (rDCEvt.GetType()==DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE) )
{
- nEntryHeight = 0; // _together_ with TRUE of 1. par (bFont) of InitSettings() a zero-height
- // forces complete recalc of heights!
+ nEntryHeight = 0; // _together_ with TRUE of 1. par (bFont) of InitSettings() a zero-height
+ // forces complete recalc of heights!
InitSettings( TRUE, TRUE, TRUE );
Invalidate();
}
diff --git a/svtools/source/contnr/templwin.cxx b/svtools/source/contnr/templwin.cxx
index 5dff290c20c1..51c81cb69ecd 100644
--- a/svtools/source/contnr/templwin.cxx
+++ b/svtools/source/contnr/templwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,28 +103,28 @@ using namespace svtools;
extern ::rtl::OUString CreateExactSizeText_Impl( sal_Int64 nSize ); // fileview.cxx
-#define SPLITSET_ID 0
-#define COLSET_ID 1
-#define ICONWIN_ID 2
-#define FILEWIN_ID 3
-#define FRAMEWIN_ID 4
+#define SPLITSET_ID 0
+#define COLSET_ID 1
+#define ICONWIN_ID 2
+#define FILEWIN_ID 3
+#define FRAMEWIN_ID 4
-#define ICON_POS_NEWDOC 0
-#define ICON_POS_TEMPLATES 1
-#define ICON_POS_MYDOCS 2
-#define ICON_POS_SAMPLES 3
+#define ICON_POS_NEWDOC 0
+#define ICON_POS_TEMPLATES 1
+#define ICON_POS_MYDOCS 2
+#define ICON_POS_SAMPLES 3
-#define ASCII_STR(s) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
-#define VIEWSETTING_NEWFROMTEMPLATE ASCII_STR("NewFromTemplate")
-#define VIEWSETTING_SELECTEDGROUP ASCII_STR("SelectedGroup")
-#define VIEWSETTING_SELECTEDVIEW ASCII_STR("SelectedView")
-#define VIEWSETTING_SPLITRATIO ASCII_STR("SplitRatio")
-#define VIEWSETTING_LASTFOLDER ASCII_STR("LastFolder")
+#define ASCII_STR(s) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
+#define VIEWSETTING_NEWFROMTEMPLATE ASCII_STR("NewFromTemplate")
+#define VIEWSETTING_SELECTEDGROUP ASCII_STR("SelectedGroup")
+#define VIEWSETTING_SELECTEDVIEW ASCII_STR("SelectedView")
+#define VIEWSETTING_SPLITRATIO ASCII_STR("SplitRatio")
+#define VIEWSETTING_LASTFOLDER ASCII_STR("LastFolder")
struct FolderHistory
{
- String m_sURL;
- ULONG m_nGroup;
+ String m_sURL;
+ ULONG m_nGroup;
FolderHistory( const String& _rURL, sal_Int32 _nGroup ) :
m_sURL( _rURL ), m_nGroup( _nGroup ) {}
@@ -307,7 +307,7 @@ void SvtDummyHeaderBar_Impl::UpdateBackgroundColor()
SvtDummyHeaderBar_Impl::SvtDummyHeaderBar_Impl( Window* pPar ) : Window( pPar )
{
- SetSizePixel( HeaderBar( this, 0 ).CalcWindowSizePixel() ); // HeaderBar used only to calculate size
+ SetSizePixel( HeaderBar( this, 0 ).CalcWindowSizePixel() ); // HeaderBar used only to calculate size
UpdateBackgroundColor();
}
@@ -366,7 +366,7 @@ SvtIconWindow_Impl::SvtIconWindow_Impl( Window* pParent ) :
Image aImage( SvtResId( bHiContrast ? IMG_SVT_NEWDOC_HC : IMG_SVT_NEWDOC ) );
nMaxTextLength = aImage.GetSizePixel().Width();
String aEntryStr = String( SvtResId( STR_SVT_NEWDOC ) );
- SvxIconChoiceCtrlEntry* pEntry =
+ SvxIconChoiceCtrlEntry* pEntry =
aIconCtrl.InsertEntry( aEntryStr, aImage, ICON_POS_NEWDOC );
pEntry->SetUserData( new String( aNewDocumentRootURL ) );
pEntry->SetQuickHelpText( String( SvtResId( STR_SVT_NEWDOC_HELP ) ) );
@@ -423,7 +423,7 @@ SvtIconWindow_Impl::~SvtIconWindow_Impl()
}
}
-SvxIconChoiceCtrlEntry* SvtIconWindow_Impl::GetEntry( const String& rURL ) const
+SvxIconChoiceCtrlEntry* SvtIconWindow_Impl::GetEntry( const String& rURL ) const
{
SvxIconChoiceCtrlEntry* pEntry = NULL;
for ( ULONG i = 0; i < aIconCtrl.GetEntryCount(); ++i )
@@ -513,7 +513,7 @@ ULONG SvtIconWindow_Impl::GetSelectEntryPos() const
void SvtIconWindow_Impl::SetCursorPos( ULONG nPos )
{
- SvxIconChoiceCtrlEntry* pEntry = aIconCtrl.GetEntry( nPos );
+ SvxIconChoiceCtrlEntry* pEntry = aIconCtrl.GetEntry( nPos );
aIconCtrl.SetCursor( pEntry );
aIconCtrl.Invalidate();
aIconCtrl.Update();
@@ -541,7 +541,7 @@ long SvtIconWindow_Impl::CalcHeight() const
sal_Bool SvtIconWindow_Impl::IsRootURL( const String& rURL ) const
{
- return rURL == aNewDocumentRootURL ||
+ return rURL == aNewDocumentRootURL ||
rURL == aTemplateRootURL ||
rURL == aMyDocumentsRootURL ||
rURL == aSamplesFolderRootURL;
@@ -599,9 +599,9 @@ SvtFileViewWindow_Impl::SvtFileViewWindow_Impl( SvtTemplateWindow* pParent ) :
Window( pParent, WB_DIALOGCONTROL | WB_TABSTOP | WB_BORDER | WB_3DLOOK ),
- rParent ( *pParent ),
- aFileView ( this, SvtResId( CTRL_FILEVIEW ), FILEVIEW_SHOW_TITLE ),
- bIsTemplateFolder ( sal_False )
+ rParent ( *pParent ),
+ aFileView ( this, SvtResId( CTRL_FILEVIEW ), FILEVIEW_SHOW_TITLE ),
+ bIsTemplateFolder ( sal_False )
{
aFileView.SetStyle( aFileView.GetStyle() | WB_DIALOGCONTROL | WB_TABSTOP );
@@ -704,8 +704,8 @@ void SvtFileViewWindow_Impl::Resize()
{
Size aWinSize = GetOutputSizePixel();
- static int x = 0;
- static int y = 0;
+ static int x = 0;
+ static int y = 0;
aWinSize.nA += x;
aWinSize.nB += y;
@@ -974,13 +974,13 @@ void SvtFrameWindow_Impl::OpenFile( const String& rURL, sal_Bool bPreview, sal_B
pTextWin->EnableInput( FALSE, TRUE );
if ( pTextWin->IsReallyVisible() )
{
- sal_Bool b = sal_True;
+ sal_Bool b = sal_True;
Sequence < PropertyValue > aArgs( 4 );
aArgs[0].Name = ASCII_STR("Preview");
aArgs[0].Value.setValue( &b, ::getBooleanCppuType() );
aArgs[1].Name = ASCII_STR("ReadOnly");
aArgs[1].Value.setValue( &b, ::getBooleanCppuType() );
- aArgs[2].Name = ASCII_STR("AsTemplate"); // prevents getting an empty URL with getURL()!
+ aArgs[2].Name = ASCII_STR("AsTemplate"); // prevents getting an empty URL with getURL()!
uno::Reference < task::XInteractionHandler > xInteractionHandler( ::comphelper::getProcessServiceFactory()->createInstance(
::rtl::OUString::createFromAscii("com.sun.star.task.InteractionHandler") ), uno::UNO_QUERY );
@@ -991,11 +991,11 @@ void SvtFrameWindow_Impl::OpenFile( const String& rURL, sal_Bool bPreview, sal_B
aArgs[2].Value.setValue( &b, ::getBooleanCppuType() );
xDisp->dispatch( aURL, aArgs );
- ::rtl::OUString aDispURL;
- Reference< ::com::sun::star::frame::XController > xCtrl = xFrame->getController();
+ ::rtl::OUString aDispURL;
+ Reference< ::com::sun::star::frame::XController > xCtrl = xFrame->getController();
if( xCtrl.is() )
{
- Reference< ::com::sun::star::frame::XModel > xMdl = xCtrl->getModel();
+ Reference< ::com::sun::star::frame::XModel > xMdl = xCtrl->getModel();
if( xMdl.is() )
aDispURL = xMdl->getURL();
}
@@ -1051,10 +1051,10 @@ SvtTemplateWindow::SvtTemplateWindow( Window* pParent ) :
Window( pParent, WB_DIALOGCONTROL ),
- aFileViewTB ( this, SvtResId( TB_SVT_FILEVIEW ) ),
- aFrameWinTB ( this, SvtResId( TB_SVT_FRAMEWIN ) ),
- aSplitWin ( this, WB_DIALOGCONTROL | WB_NOSPLITDRAW ),
- pHistoryList ( NULL )
+ aFileViewTB ( this, SvtResId( TB_SVT_FILEVIEW ) ),
+ aFrameWinTB ( this, SvtResId( TB_SVT_FRAMEWIN ) ),
+ aSplitWin ( this, WB_DIALOGCONTROL | WB_NOSPLITDRAW ),
+ pHistoryList ( NULL )
{
// create windows
@@ -1072,7 +1072,7 @@ SvtTemplateWindow::SvtTemplateWindow( Window* pParent ) :
// create the split items
aSplitWin.SetAlign( WINDOWALIGN_LEFT );
- long nWidth = pIconWin->GetMaxTextLength() * 8 / 7 + 1; // extra space for border
+ long nWidth = pIconWin->GetMaxTextLength() * 8 / 7 + 1; // extra space for border
aSplitWin.InsertItem( ICONWIN_ID, pIconWin, nWidth, SPLITWINDOW_APPEND, 0, SWIB_FIXED );
aSplitWin.InsertItem( FILEWIN_ID, pFileWin, 50, SPLITWINDOW_APPEND, 0, SWIB_PERCENTSIZE );
aSplitWin.InsertItem( FRAMEWIN_ID, pFrameWin, 50, SPLITWINDOW_APPEND, 0, SWIB_PERCENTSIZE );
@@ -1400,7 +1400,7 @@ void SvtTemplateWindow::DataChanged( const DataChangedEvent& rDCEvt )
{
Window::DataChanged( rDCEvt );
- if ( ( ( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
+ if ( ( ( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
( rDCEvt.GetType() == DATACHANGED_DISPLAY ) ) &&
( rDCEvt.GetFlags() & SETTINGS_STYLE ) )
{
@@ -1547,9 +1547,9 @@ long SvtTemplateWindow::CalcHeight() const
void SvtTemplateWindow::ReadViewSettings()
{
// defaults
- sal_Int32 nSelectedGroup = ICON_POS_TEMPLATES;
- sal_Int32 nSelectedView = TI_DOCTEMPLATE_DOCINFO;
- double nSplitRatio = 0.5;
+ sal_Int32 nSelectedGroup = ICON_POS_TEMPLATES;
+ sal_Int32 nSelectedView = TI_DOCTEMPLATE_DOCINFO;
+ double nSplitRatio = 0.5;
::rtl::OUString sLastFolder;
SvtViewOptions aViewSettings( E_DIALOG, VIEWSETTING_NEWFROMTEMPLATE );
@@ -1564,8 +1564,8 @@ void SvtTemplateWindow::ReadViewSettings()
aViewSettings.GetUserItem( VIEWSETTING_LASTFOLDER ) >>= sLastFolder;
}
// normalize
- if ( nSelectedGroup < ICON_POS_NEWDOC ) nSelectedGroup = ICON_POS_NEWDOC;
- if ( nSelectedGroup > ICON_POS_SAMPLES ) nSelectedGroup = ICON_POS_SAMPLES;
+ if ( nSelectedGroup < ICON_POS_NEWDOC ) nSelectedGroup = ICON_POS_NEWDOC;
+ if ( nSelectedGroup > ICON_POS_SAMPLES ) nSelectedGroup = ICON_POS_SAMPLES;
if ( ( TI_DOCTEMPLATE_DOCINFO != nSelectedView ) && ( TI_DOCTEMPLATE_PREVIEW != nSelectedView ) )
nSelectedView = TI_DOCTEMPLATE_DOCINFO;
@@ -1605,23 +1605,23 @@ void SvtTemplateWindow::WriteViewSettings()
Sequence< NamedValue > aSettings(4);
// the selected group
- aSettings[0].Name = VIEWSETTING_SELECTEDGROUP;
+ aSettings[0].Name = VIEWSETTING_SELECTEDGROUP;
pIconWin->SetFocus();
- aSettings[0].Value <<= (sal_Int32)pIconWin->GetCursorPos( );
+ aSettings[0].Value <<= (sal_Int32)pIconWin->GetCursorPos( );
// the selected view mode
- aSettings[1].Name = VIEWSETTING_SELECTEDVIEW;
- aSettings[1].Value <<= sal_Int32( aFrameWinTB.IsItemChecked( TI_DOCTEMPLATE_DOCINFO ) ? TI_DOCTEMPLATE_DOCINFO : TI_DOCTEMPLATE_PREVIEW );
+ aSettings[1].Name = VIEWSETTING_SELECTEDVIEW;
+ aSettings[1].Value <<= sal_Int32( aFrameWinTB.IsItemChecked( TI_DOCTEMPLATE_DOCINFO ) ? TI_DOCTEMPLATE_DOCINFO : TI_DOCTEMPLATE_PREVIEW );
// the split ratio
- aSettings[2].Name = VIEWSETTING_SPLITRATIO;
+ aSettings[2].Name = VIEWSETTING_SPLITRATIO;
sal_Int32 nSplitFileSize = aSplitWin.GetItemSize( FILEWIN_ID );
sal_Int32 nSplitFileAndFrameSize = nSplitFileSize + aSplitWin.GetItemSize( FRAMEWIN_ID );
- aSettings[2].Value <<= double( 1.0 * nSplitFileSize / nSplitFileAndFrameSize );
+ aSettings[2].Value <<= double( 1.0 * nSplitFileSize / nSplitFileAndFrameSize );
// last folder
- aSettings[3].Name = VIEWSETTING_LASTFOLDER;
- aSettings[3].Value <<= ::rtl::OUString( pFileWin->GetFolderURL() );
+ aSettings[3].Name = VIEWSETTING_LASTFOLDER;
+ aSettings[3].Value <<= ::rtl::OUString( pFileWin->GetFolderURL() );
// write
SvtViewOptions aViewSettings( E_DIALOG, VIEWSETTING_NEWFROMTEMPLATE );
@@ -1639,10 +1639,10 @@ void SvtTemplateWindow::SelectFolder(sal_Int32 nFolderPosition)
struct SvtTmplDlg_Impl
{
- SvtTemplateWindow* pWin;
- String aTitle;
- Timer aUpdateTimer;
- sal_Bool bSelectNoOpen;
+ SvtTemplateWindow* pWin;
+ String aTitle;
+ Timer aUpdateTimer;
+ sal_Bool bSelectNoOpen;
uno::Reference< util::XOfficeInstallationDirectories > m_xOfficeInstDirs;
@@ -1954,7 +1954,7 @@ IMPL_LINK ( SvtDocumentTemplateDialog, UpdateHdl_Impl, Timer*, _pEventSource )
if ( xTemplates.is() )
{
if ( _pEventSource )
- { // it was no direct call, which means it was triggered by the timer, which means we alread checked the necessity
+ { // it was no direct call, which means it was triggered by the timer, which means we alread checked the necessity
WaitObject aWaitCursor( this );
xTemplates->update();
if ( pImpl->pWin->IsTemplateFolderOpen() )
@@ -1968,7 +1968,7 @@ IMPL_LINK ( SvtDocumentTemplateDialog, UpdateHdl_Impl, Timer*, _pEventSource )
// check if we really need to do the update
::svt::TemplateFolderCache aCache;
if ( aCache.needsUpdate() )
- { // yes -> do it asynchronous (it will take a noticeable time)
+ { // yes -> do it asynchronous (it will take a noticeable time)
// (but first store the current state)
aCache.storeState();
diff --git a/svtools/source/contnr/templwin.hrc b/svtools/source/contnr/templwin.hrc
index 5a0d84f1d377..80eceb20744a 100644
--- a/svtools/source/contnr/templwin.hrc
+++ b/svtools/source/contnr/templwin.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,33 +27,33 @@
#ifndef _SVTOOLS_TEMPLWIN_HRC
#define _SVTOOLS_TEMPLWIN_HRC
-#define FL_DOCTEMPLATE 10
-#define BTN_DOCTEMPLATE_MANAGE 11
-#define BTN_DOCTEMPLATE_EDIT 12
-#define BTN_DOCTEMPLATE_OPEN 13
-#define BTN_DOCTEMPLATE_CANCEL 14
-#define BTN_DOCTEMPLATE_HELP 15
+#define FL_DOCTEMPLATE 10
+#define BTN_DOCTEMPLATE_MANAGE 11
+#define BTN_DOCTEMPLATE_EDIT 12
+#define BTN_DOCTEMPLATE_OPEN 13
+#define BTN_DOCTEMPLATE_CANCEL 14
+#define BTN_DOCTEMPLATE_HELP 15
#define FT_DOCTEMPLATE_LINK 16
-#define TI_DOCTEMPLATE_BACK 1
-#define TI_DOCTEMPLATE_PREV 2
-#define TI_DOCTEMPLATE_PRINT 3
-#define TI_DOCTEMPLATE_DOCINFO 4
-#define TI_DOCTEMPLATE_PREVIEW 5
+#define TI_DOCTEMPLATE_BACK 1
+#define TI_DOCTEMPLATE_PREV 2
+#define TI_DOCTEMPLATE_PRINT 3
+#define TI_DOCTEMPLATE_DOCINFO 4
+#define TI_DOCTEMPLATE_PREVIEW 5
-#define HBI_CATEGORY 1
+#define HBI_CATEGORY 1
-#define DI_TITLE 1
-#define DI_FROM 2
-#define DI_DATE 3
-#define DI_KEYWORDS 4
-#define DI_DESCRIPTION 5
-#define DI_MIMETYPE 6
-#define DI_MODIFIEDDATE 7
-#define DI_MODIFIEDBY 8
-#define DI_PRINTDATE 9
-#define DI_PRINTBY 10
-#define DI_THEME 11
-#define DI_SIZE 12
+#define DI_TITLE 1
+#define DI_FROM 2
+#define DI_DATE 3
+#define DI_KEYWORDS 4
+#define DI_DESCRIPTION 5
+#define DI_MIMETYPE 6
+#define DI_MODIFIEDDATE 7
+#define DI_MODIFIEDBY 8
+#define DI_PRINTDATE 9
+#define DI_PRINTBY 10
+#define DI_THEME 11
+#define DI_SIZE 12
#endif // _SVTOOLS_TEMPLWIN_HRC
diff --git a/svtools/source/contnr/templwin.hxx b/svtools/source/contnr/templwin.hxx
index aa2766fbe104..17c5c1e56700 100644
--- a/svtools/source/contnr/templwin.hxx
+++ b/svtools/source/contnr/templwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ namespace svtools
class SvtDummyHeaderBar_Impl : public Window
{
private:
- void UpdateBackgroundColor();
+ void UpdateBackgroundColor();
public:
SvtDummyHeaderBar_Impl( Window* pParent );
@@ -69,46 +69,46 @@ public:
class SvtIconWindow_Impl : public Window
{
private:
- SvtDummyHeaderBar_Impl aDummyHeaderBar; // spaceholder instead of HeaderBar
- SvtIconChoiceCtrl aIconCtrl;
+ SvtDummyHeaderBar_Impl aDummyHeaderBar; // spaceholder instead of HeaderBar
+ SvtIconChoiceCtrl aIconCtrl;
- String aNewDocumentRootURL;
- String aTemplateRootURL;
- String aMyDocumentsRootURL;
- String aSamplesFolderRootURL;
+ String aNewDocumentRootURL;
+ String aTemplateRootURL;
+ String aMyDocumentsRootURL;
+ String aSamplesFolderRootURL;
- long nMaxTextLength;
+ long nMaxTextLength;
- SvxIconChoiceCtrlEntry* GetEntry( const String& rURL ) const;
+ SvxIconChoiceCtrlEntry* GetEntry( const String& rURL ) const;
public:
SvtIconWindow_Impl( Window* pParent );
~SvtIconWindow_Impl();
- virtual void Resize();
+ virtual void Resize();
- inline long GetMaxTextLength() const { return nMaxTextLength; }
- inline void SetClickHdl( const Link& rLink ) { aIconCtrl.SetClickHdl( rLink ); }
+ inline long GetMaxTextLength() const { return nMaxTextLength; }
+ inline void SetClickHdl( const Link& rLink ) { aIconCtrl.SetClickHdl( rLink ); }
- String GetSelectedIconURL() const;
- String GetSelectedIconText() const;
- String GetCursorPosIconURL() const;
- String GetIconText( const String& rURL ) const;
- void InvalidateIconControl();
- void SetCursorPos( ULONG nPos );
- ULONG GetCursorPos() const;
- ULONG GetSelectEntryPos() const;
- void SetFocus();
- long CalcHeight() const;
- sal_Bool IsRootURL( const String& rURL ) const;
- ULONG GetRootPos( const String& rURL ) const;
- void UpdateIcons( sal_Bool _bHiContrast );
+ String GetSelectedIconURL() const;
+ String GetSelectedIconText() const;
+ String GetCursorPosIconURL() const;
+ String GetIconText( const String& rURL ) const;
+ void InvalidateIconControl();
+ void SetCursorPos( ULONG nPos );
+ ULONG GetCursorPos() const;
+ ULONG GetSelectEntryPos() const;
+ void SetFocus();
+ long CalcHeight() const;
+ sal_Bool IsRootURL( const String& rURL ) const;
+ ULONG GetRootPos( const String& rURL ) const;
+ void UpdateIcons( sal_Bool _bHiContrast );
- inline sal_Bool ProcessKeyEvent( const KeyEvent& rKEvt );
+ inline sal_Bool ProcessKeyEvent( const KeyEvent& rKEvt );
- inline const String& GetTemplateRootURL() const { return aTemplateRootURL; }
- inline const String& GetMyDocumentsRootURL() const { return aMyDocumentsRootURL; }
- inline const String& GetSamplesFolderURL() const { return aSamplesFolderRootURL; }
+ inline const String& GetTemplateRootURL() const { return aTemplateRootURL; }
+ inline const String& GetMyDocumentsRootURL() const { return aMyDocumentsRootURL; }
+ inline const String& GetSamplesFolderURL() const { return aSamplesFolderRootURL; }
void SelectFolder(sal_Int32 nFolderPos);
};
@@ -125,17 +125,17 @@ class SvtTemplateWindow;
class SvtFileViewWindow_Impl : public Window
{
private:
- SvtTemplateWindow& rParent;
- SvtFileView aFileView;
- Link aNewFolderLink;
- String aCurrentRootURL;
- String aFolderURL;
- String aMyDocumentsURL;
- String aSamplesFolderURL;
+ SvtTemplateWindow& rParent;
+ SvtFileView aFileView;
+ Link aNewFolderLink;
+ String aCurrentRootURL;
+ String aFolderURL;
+ String aMyDocumentsURL;
+ String aSamplesFolderURL;
::svt::RestrictedPaths
aURLFilter;
- sal_Bool bIsTemplateFolder;
+ sal_Bool bIsTemplateFolder;
::com::sun::star::uno::Sequence< ::rtl::OUString >
GetNewDocContents() const;
@@ -144,25 +144,25 @@ public:
SvtFileViewWindow_Impl( SvtTemplateWindow* pParent );
~SvtFileViewWindow_Impl();
- virtual void Resize();
+ virtual void Resize();
- inline void SetSelectHdl( const Link& rLink ) { aFileView.SetSelectHdl( rLink ); }
- inline void SetDoubleClickHdl( const Link& rLink ) { aFileView.SetDoubleClickHdl( rLink ); }
- inline void SetNewFolderHdl( const Link& rLink ) { aNewFolderLink = rLink; }
- inline void ResetCursor() { aFileView.ResetCursor(); }
- inline sal_Bool IsTemplateFolder() const { return bIsTemplateFolder; }
- inline String GetFolderURL() const { return aFolderURL; }
- inline String GetRootURL() const { return aCurrentRootURL; }
- inline void OpenRoot( const String& rRootURL )
+ inline void SetSelectHdl( const Link& rLink ) { aFileView.SetSelectHdl( rLink ); }
+ inline void SetDoubleClickHdl( const Link& rLink ) { aFileView.SetDoubleClickHdl( rLink ); }
+ inline void SetNewFolderHdl( const Link& rLink ) { aNewFolderLink = rLink; }
+ inline void ResetCursor() { aFileView.ResetCursor(); }
+ inline sal_Bool IsTemplateFolder() const { return bIsTemplateFolder; }
+ inline String GetFolderURL() const { return aFolderURL; }
+ inline String GetRootURL() const { return aCurrentRootURL; }
+ inline void OpenRoot( const String& rRootURL )
{ aCurrentRootURL = rRootURL; OpenFolder( rRootURL ); }
- inline void SetMyDocumentsURL( const String& _rNewURL ) { aMyDocumentsURL = _rNewURL; }
- inline void SetSamplesFolderURL( const String& _rNewURL ) { aSamplesFolderURL = _rNewURL; }
-
- String GetSelectedFile() const;
- void OpenFolder( const String& rURL );
- sal_Bool HasPreviousLevel( String& rURL ) const;
- String GetFolderTitle() const;
- void SetFocus();
+ inline void SetMyDocumentsURL( const String& _rNewURL ) { aMyDocumentsURL = _rNewURL; }
+ inline void SetSamplesFolderURL( const String& _rNewURL ) { aSamplesFolderURL = _rNewURL; }
+
+ String GetSelectedFile() const;
+ void OpenFolder( const String& rURL );
+ sal_Bool HasPreviousLevel( String& rURL ) const;
+ String GetFolderTitle() const;
+ void SetFocus();
};
// class SvtFrameWindow_Impl ---------------------------------------------
@@ -170,12 +170,12 @@ public:
class SvtDocInfoTable_Impl : public ResStringArray
{
private:
- String aEmptyString;
+ String aEmptyString;
public:
SvtDocInfoTable_Impl();
- const String& GetString( long nId ) const;
+ const String& GetString( long nId ) const;
};
class SvtExtendedMultiLineEdit_Impl : public ExtMultiLineEdit
@@ -184,8 +184,8 @@ public:
SvtExtendedMultiLineEdit_Impl( Window* pParent,WinBits _nBits );
inline ~SvtExtendedMultiLineEdit_Impl() {}
- inline void Clear() { SetText( String() ); }
- void InsertEntry( const String& rTitle, const String& rValue );
+ inline void Clear() { SetText( String() ); }
+ void InsertEntry( const String& rTitle, const String& rValue );
};
class SvtFrameWindow_Impl : public Window
@@ -200,19 +200,19 @@ private:
::svtools::ODocumentInfoPreview*
pEditWin;
- Window* pTextWin;
- Window* pEmptyWin;
- ::com::sun::star::lang::Locale aLocale;
- SvtDocInfoTable_Impl aInfoTable;
- String aCurrentURL;
- ::rtl::OUString m_aOpenURL;
- sal_Bool bDocInfo;
-
- void ShowDocInfo( const String& rURL );
- void ViewEditWin();
- void ViewTextWin();
- void ViewEmptyWin();
- void ViewNonEmptyWin(); // views depending on bDocInfo
+ Window* pTextWin;
+ Window* pEmptyWin;
+ ::com::sun::star::lang::Locale aLocale;
+ SvtDocInfoTable_Impl aInfoTable;
+ String aCurrentURL;
+ ::rtl::OUString m_aOpenURL;
+ sal_Bool bDocInfo;
+
+ void ShowDocInfo( const String& rURL );
+ void ViewEditWin();
+ void ViewTextWin();
+ void ViewEmptyWin();
+ void ViewNonEmptyWin(); // views depending on bDocInfo
struct SvtExecuteInfo
{
@@ -226,10 +226,10 @@ public:
SvtFrameWindow_Impl( Window* pParent );
~SvtFrameWindow_Impl();
- virtual void Resize();
+ virtual void Resize();
- void OpenFile( const String& rURL, sal_Bool bPreview, sal_Bool bIsTemplate, sal_Bool bAsTemplate );
- void ToggleView( sal_Bool bDocInfo );
+ void OpenFile( const String& rURL, sal_Bool bPreview, sal_Bool bIsTemplate, sal_Bool bAsTemplate );
+ void ToggleView( sal_Bool bDocInfo );
};
// class SvtTemplateWindow -----------------------------------------------
@@ -239,69 +239,69 @@ class HistoryList_Impl;
class SvtTemplateWindow : public Window
{
private:
- ToolBox aFileViewTB;
- ToolBox aFrameWinTB;
- SplitWindow aSplitWin;
-
- SvtIconWindow_Impl* pIconWin;
- SvtFileViewWindow_Impl* pFileWin;
- SvtFrameWindow_Impl* pFrameWin;
- HistoryList_Impl* pHistoryList;
-
- Link aSelectHdl;
- Link aDoubleClickHdl;
- Link aNewFolderHdl;
- Link aSendFocusHdl;
-
- Timer aSelectTimer;
-
- String aFolderTitle;
-
- virtual void Resize();
-
- DECL_LINK( IconClickHdl_Impl, SvtIconChoiceCtrl* );
- DECL_LINK( FileSelectHdl_Impl, SvtFileView* );
- DECL_LINK( FileDblClickHdl_Impl, SvtFileView* );
- DECL_LINK( NewFolderHdl_Impl, SvtFileView* );
- DECL_LINK( TimeoutHdl_Impl, Timer* );
- DECL_LINK( ClickHdl_Impl, ToolBox* );
- DECL_LINK( ResizeHdl_Impl, SplitWindow* ); // used for split and initial setting of toolbar pos
-
- void PrintFile( const String& rURL );
- void AppendHistoryURL( const String& rURL, ULONG nGroup );
- void OpenHistory();
- void DoAction( USHORT nAction );
- void InitToolBoxes();
- void InitToolBoxImages();
- void UpdateIcons();
+ ToolBox aFileViewTB;
+ ToolBox aFrameWinTB;
+ SplitWindow aSplitWin;
+
+ SvtIconWindow_Impl* pIconWin;
+ SvtFileViewWindow_Impl* pFileWin;
+ SvtFrameWindow_Impl* pFrameWin;
+ HistoryList_Impl* pHistoryList;
+
+ Link aSelectHdl;
+ Link aDoubleClickHdl;
+ Link aNewFolderHdl;
+ Link aSendFocusHdl;
+
+ Timer aSelectTimer;
+
+ String aFolderTitle;
+
+ virtual void Resize();
+
+ DECL_LINK( IconClickHdl_Impl, SvtIconChoiceCtrl* );
+ DECL_LINK( FileSelectHdl_Impl, SvtFileView* );
+ DECL_LINK( FileDblClickHdl_Impl, SvtFileView* );
+ DECL_LINK( NewFolderHdl_Impl, SvtFileView* );
+ DECL_LINK( TimeoutHdl_Impl, Timer* );
+ DECL_LINK( ClickHdl_Impl, ToolBox* );
+ DECL_LINK( ResizeHdl_Impl, SplitWindow* ); // used for split and initial setting of toolbar pos
+
+ void PrintFile( const String& rURL );
+ void AppendHistoryURL( const String& rURL, ULONG nGroup );
+ void OpenHistory();
+ void DoAction( USHORT nAction );
+ void InitToolBoxes();
+ void InitToolBoxImages();
+ void UpdateIcons();
protected:
virtual long PreNotify( NotifyEvent& rNEvt );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
public:
SvtTemplateWindow( Window* pParent );
~SvtTemplateWindow();
- inline void SetSelectHdl( const Link& rLink ) { aSelectHdl = rLink; }
- inline void SetDoubleClickHdl( const Link& rLink ) { aDoubleClickHdl = rLink; }
- inline void SetNewFolderHdl( const Link& rLink ) { aNewFolderHdl = rLink; }
- inline void SetSendFocusHdl( const Link& rLink ) { aSendFocusHdl = rLink; }
- inline sal_Bool IsTemplateFolderOpen() const { return pFileWin->IsTemplateFolder(); }
- inline sal_Bool HasIconWinFocus() const { return pIconWin->HasChildPathFocus(); }
-
- void ReadViewSettings( );
- void WriteViewSettings( );
- sal_Bool IsFileSelected() const;
- String GetSelectedFile() const;
- void OpenFile( sal_Bool bNotAsTemplate );
- String GetFolderTitle() const;
- String GetFolderURL() const;
- void SetFocus( sal_Bool bIconWin );
- void OpenTemplateRoot();
- void SetPrevLevelButtonState( const String& rURL ); // sets state (enable/disable) for previous level button
- void ClearHistory();
- long CalcHeight() const;
+ inline void SetSelectHdl( const Link& rLink ) { aSelectHdl = rLink; }
+ inline void SetDoubleClickHdl( const Link& rLink ) { aDoubleClickHdl = rLink; }
+ inline void SetNewFolderHdl( const Link& rLink ) { aNewFolderHdl = rLink; }
+ inline void SetSendFocusHdl( const Link& rLink ) { aSendFocusHdl = rLink; }
+ inline sal_Bool IsTemplateFolderOpen() const { return pFileWin->IsTemplateFolder(); }
+ inline sal_Bool HasIconWinFocus() const { return pIconWin->HasChildPathFocus(); }
+
+ void ReadViewSettings( );
+ void WriteViewSettings( );
+ sal_Bool IsFileSelected() const;
+ String GetSelectedFile() const;
+ void OpenFile( sal_Bool bNotAsTemplate );
+ String GetFolderTitle() const;
+ String GetFolderURL() const;
+ void SetFocus( sal_Bool bIconWin );
+ void OpenTemplateRoot();
+ void SetPrevLevelButtonState( const String& rURL ); // sets state (enable/disable) for previous level button
+ void ClearHistory();
+ long CalcHeight() const;
void SelectFolder(sal_Int32 nFolderPosition);
};
diff --git a/svtools/source/contnr/templwin.src b/svtools/source/contnr/templwin.src
index 048d052c18d8..b0208503ccfe 100644
--- a/svtools/source/contnr/templwin.src
+++ b/svtools/source/contnr/templwin.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#include <svtools/svtools.hrc>
// Magenta and Grey as mask colors
-#define MASK_COL_MAGENTA Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; };
+#define MASK_COL_MAGENTA Color { Red = 0xFFFF ; Green = 0x0000 ; Blue = 0xFFFF ; };
Control CTRL_FILEVIEW
{
diff --git a/svtools/source/contnr/tooltiplbox.cxx b/svtools/source/contnr/tooltiplbox.cxx
index 9a148336adbe..67b3f37c2d6c 100644
--- a/svtools/source/contnr/tooltiplbox.cxx
+++ b/svtools/source/contnr/tooltiplbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index 6fb03eba73fb..698ac18dc478 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,15 +74,15 @@ void SvListEntry::Clone( SvListEntry* pSource)
DBG_CHKTHIS(SvListEntry,0);
nListPos &= 0x80000000;
nListPos |= ( pSource->nListPos & 0x7fffffff);
- nAbsPos = pSource->nAbsPos;
+ nAbsPos = pSource->nAbsPos;
}
void SvListEntry::SetListPositions()
{
if( pChilds )
{
- SvListEntry *pEntry = (SvListEntry*)pChilds->First();
- ULONG nCur = 0;
+ SvListEntry *pEntry = (SvListEntry*)pChilds->First();
+ ULONG nCur = 0;
while ( pEntry )
{
pEntry->nListPos &= 0x80000000;
@@ -107,9 +107,9 @@ SvViewData::SvViewData()
SvViewData::SvViewData( const SvViewData& rData )
{
DBG_CTOR(SvViewData,0);
- nFlags = rData.nFlags;
+ nFlags = rData.nFlags;
nFlags &= ~( SVLISTENTRYFLAG_SELECTED | SVLISTENTRYFLAG_FOCUSED );
- nVisPos = rData.nVisPos;
+ nVisPos = rData.nVisPos;
}
SvViewData::~SvViewData()
@@ -390,7 +390,7 @@ ULONG SvTreeList::Copy(SvListEntry* pSrcEntry,SvListEntry* pTargetParent,ULONG n
nEntryCount += nCloneCount;
SvTreeEntryList* pDstList = pTargetParent->pChilds;
- pClonedEntry->pParent = pTargetParent; // Parent umsetzen
+ pClonedEntry->pParent = pTargetParent; // Parent umsetzen
pDstList->Insert( pClonedEntry, nListPos ); // Einfuegen
SetListPositions( pDstList ); // Listenpositionen in Zielliste korrigieren
@@ -663,7 +663,7 @@ ULONG SvTreeList::GetChildSelectionCount(const SvListView* pView,SvListEntry* pP
if( pParent && pView->IsSelected( pParent ) && nRefDepth < nActDepth)
nCount++;
} while( pParent && nRefDepth < nActDepth );
-// nCount--;
+// nCount--;
return nCount;
}
@@ -815,15 +815,15 @@ SvListEntry* SvTreeList::Prev( SvListEntry* pActEntry, USHORT* pDepth ) const
SvListEntry* SvTreeList::Last( USHORT* /* nDepth */ ) const
{
SvTreeEntryList* pActList = pRootItem->pChilds;
-// if ( pActList->Count() == 0 )
-// return 0;
+// if ( pActList->Count() == 0 )
+// return 0;
SvListEntry* pEntry = 0;
while( pActList )
{
pEntry = (SvListEntry*)(pActList->Last());
pActList = pEntry->pChilds;
-// if ( pActList->Count() == 0 )
-// pActList = 0;
+// if ( pActList->Count() == 0 )
+// pActList = 0;
}
return pEntry;
}
@@ -1141,7 +1141,7 @@ SvListEntry* SvTreeList::NextSibling( SvListEntry* pEntry ) const
if( !pEntry )
return 0;
SvTreeEntryList* pList = pEntry->pParent->pChilds;
-// ULONG nPos = pList->GetPos( pEntry );
+// ULONG nPos = pList->GetPos( pEntry );
ULONG nPos = pEntry->GetChildListPos();
nPos++;
pEntry = (SvListEntry*)(pList->GetObject( nPos ));
@@ -1474,9 +1474,9 @@ BOOL SvTreeList::Remove( SvListEntry* pEntry )
pList->Remove( (void*) pEntry );
}
-
+
// moved to end of method because it is used later with Broadcast
- // delete pEntry; // loescht auch alle Childs
+ // delete pEntry; // loescht auch alle Childs
if ( pList->Count() == 0 )
{
@@ -1494,7 +1494,7 @@ BOOL SvTreeList::Remove( SvListEntry* pEntry )
CheckIntegrity();
#endif
Broadcast( LISTACTION_REMOVED, pEntry );
-
+
delete pEntry; // loescht auch alle Childs
return TRUE;
}
@@ -1810,7 +1810,7 @@ void SvListView::ModelHasInsertedTree( SvListEntry* )
}
void SvListView::ModelIsMoving( SvListEntry* /* pSource */ ,
- SvListEntry* /* pTargetParent */ , ULONG /* nPos */ )
+ SvListEntry* /* pTargetParent */ , ULONG /* nPos */ )
{
DBG_CHKTHIS(SvListView,0);
}
diff --git a/svtools/source/control/asynclink.cxx b/svtools/source/control/asynclink.cxx
index 758999d61dcd..f83d9add50f2 100644
--- a/svtools/source/control/asynclink.cxx
+++ b/svtools/source/control/asynclink.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index 0fba66e132a8..242af6124d07 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,29 +50,29 @@
// =======================================================================
-#define DAY_OFFX 4
-#define DAY_OFFY 2
-#define MONTH_BORDERX 4
-#define MONTH_OFFY 3
-#define WEEKNUMBER_OFFX 4
-#define WEEKDAY_OFFY 3
-#define TITLE_OFFY 3
-#define TITLE_BORDERY 2
-#define SPIN_OFFX 4
-#define SPIN_OFFY TITLE_BORDERY
+#define DAY_OFFX 4
+#define DAY_OFFY 2
+#define MONTH_BORDERX 4
+#define MONTH_OFFY 3
+#define WEEKNUMBER_OFFX 4
+#define WEEKDAY_OFFY 3
+#define TITLE_OFFY 3
+#define TITLE_BORDERY 2
+#define SPIN_OFFX 4
+#define SPIN_OFFY TITLE_BORDERY
-#define WEEKNUMBER_HEIGHT 85
+#define WEEKNUMBER_HEIGHT 85
-#define CALENDAR_HITTEST_DAY ((USHORT)0x0001)
-#define CALENDAR_HITTEST_WEEK ((USHORT)0x0002)
-#define CALENDAR_HITTEST_MONTHTITLE ((USHORT)0x0004)
-#define CALENDAR_HITTEST_PREV ((USHORT)0x0008)
-#define CALENDAR_HITTEST_NEXT ((USHORT)0x0010)
-#define CALENDAR_HITTEST_OUTSIDE ((USHORT)0x1000)
+#define CALENDAR_HITTEST_DAY ((USHORT)0x0001)
+#define CALENDAR_HITTEST_WEEK ((USHORT)0x0002)
+#define CALENDAR_HITTEST_MONTHTITLE ((USHORT)0x0004)
+#define CALENDAR_HITTEST_PREV ((USHORT)0x0008)
+#define CALENDAR_HITTEST_NEXT ((USHORT)0x0010)
+#define CALENDAR_HITTEST_OUTSIDE ((USHORT)0x1000)
-#define MENU_YEAR_COUNT 3
+#define MENU_YEAR_COUNT 3
-#define TABLE_DATE_SELECTED ((void*)0x00000001)
+#define TABLE_DATE_SELECTED ((void*)0x00000001)
using namespace ::com::sun::star;
@@ -80,10 +80,10 @@ using namespace ::com::sun::star;
struct ImplDateInfo
{
- XubString maText;
- Color* mpTextColor;
- Color* mpFrameColor;
- USHORT mnFlags;
+ XubString maText;
+ Color* mpTextColor;
+ Color* mpFrameColor;
+ USHORT mnFlags;
ImplDateInfo( const XubString& rText ) :
maText( rText )
@@ -197,36 +197,36 @@ inline void ImplCalendarClearSelectDate( Table* pTable )
void Calendar::ImplInit( WinBits nWinStyle )
{
- mpDateTable = NULL;
- mpSelectTable = new Table;
- mpOldSelectTable = NULL;
- mpRestoreSelectTable = NULL;
- mpStandardColor = NULL;
- mpSaturdayColor = NULL;
- mpSundayColor = NULL;
- mnDayCount = 0;
- mnWinStyle = nWinStyle;
- mnFirstYear = 0;
- mnLastYear = 0;
- mnRequestYear = 0;
- mbCalc = TRUE;
- mbFormat = TRUE;
- mbDrag = FALSE;
- mbSelection = FALSE;
- mbMultiSelection = FALSE;
- mbWeekSel = FALSE;
- mbUnSel = FALSE;
- mbMenuDown = FALSE;
- mbSpinDown = FALSE;
- mbPrevIn = FALSE;
- mbNextIn = FALSE;
- mbDirect = FALSE;
- mbInSelChange = FALSE;
- mbTravelSelect = FALSE;
- mbScrollDateRange = FALSE;
- mbSelLeft = FALSE;
- mbAllSel = FALSE;
- mbDropPos = FALSE;
+ mpDateTable = NULL;
+ mpSelectTable = new Table;
+ mpOldSelectTable = NULL;
+ mpRestoreSelectTable = NULL;
+ mpStandardColor = NULL;
+ mpSaturdayColor = NULL;
+ mpSundayColor = NULL;
+ mnDayCount = 0;
+ mnWinStyle = nWinStyle;
+ mnFirstYear = 0;
+ mnLastYear = 0;
+ mnRequestYear = 0;
+ mbCalc = TRUE;
+ mbFormat = TRUE;
+ mbDrag = FALSE;
+ mbSelection = FALSE;
+ mbMultiSelection = FALSE;
+ mbWeekSel = FALSE;
+ mbUnSel = FALSE;
+ mbMenuDown = FALSE;
+ mbSpinDown = FALSE;
+ mbPrevIn = FALSE;
+ mbNextIn = FALSE;
+ mbDirect = FALSE;
+ mbInSelChange = FALSE;
+ mbTravelSelect = FALSE;
+ mbScrollDateRange = FALSE;
+ mbSelLeft = FALSE;
+ mbAllSel = FALSE;
+ mbDropPos = FALSE;
::rtl::OUString aGregorian( RTL_CONSTASCII_USTRINGPARAM( "gregorian"));
maCalendarWrapper.loadCalendar( aGregorian,
@@ -466,39 +466,39 @@ void Calendar::ImplFormat()
long nTextHeight = GetTextHeight();
// Breiten und X-Positionen berechnen
- mnDayWidth = n99TextWidth+DAY_OFFX;
- mnMonthWidth = mnDayWidth*7;
+ mnDayWidth = n99TextWidth+DAY_OFFX;
+ mnMonthWidth = mnDayWidth*7;
mnMonthWidth += mnWeekWidth;
mnMonthWidth += MONTH_BORDERX*2;
- mnMonthPerLine = aOutSize.Width() / mnMonthWidth;
+ mnMonthPerLine = aOutSize.Width() / mnMonthWidth;
if ( !mnMonthPerLine )
mnMonthPerLine = 1;
- long nOver = ((aOutSize.Width()-(mnMonthPerLine*mnMonthWidth)) / mnMonthPerLine);
+ long nOver = ((aOutSize.Width()-(mnMonthPerLine*mnMonthWidth)) / mnMonthPerLine);
mnMonthWidth += nOver;
- mnDaysOffX = MONTH_BORDERX;
- mnDaysOffX += nOver/2;
- mnDaysOffX += mnWeekWidth;
+ mnDaysOffX = MONTH_BORDERX;
+ mnDaysOffX += nOver/2;
+ mnDaysOffX += mnWeekWidth;
// Hoehen und Y-Positionen berechnen
- mnDayHeight = nTextHeight + DAY_OFFY;
- mnWeekDayOffY = nTextHeight + TITLE_OFFY + (TITLE_BORDERY*2);
- mnDaysOffY = mnWeekDayOffY + nTextHeight + WEEKDAY_OFFY;
- mnMonthHeight = (mnDayHeight*6) + mnDaysOffY;
+ mnDayHeight = nTextHeight + DAY_OFFY;
+ mnWeekDayOffY = nTextHeight + TITLE_OFFY + (TITLE_BORDERY*2);
+ mnDaysOffY = mnWeekDayOffY + nTextHeight + WEEKDAY_OFFY;
+ mnMonthHeight = (mnDayHeight*6) + mnDaysOffY;
mnMonthHeight += MONTH_OFFY;
- mnLines = aOutSize.Height() / mnMonthHeight;
+ mnLines = aOutSize.Height() / mnMonthHeight;
if ( !mnLines )
mnLines = 1;
mnMonthHeight += (aOutSize.Height()-(mnLines*mnMonthHeight)) / mnLines;
// Spinfelder berechnen
- long nSpinSize = nTextHeight+TITLE_BORDERY-SPIN_OFFY;
- maPrevRect.Left() = SPIN_OFFX;
- maPrevRect.Top() = SPIN_OFFY;
- maPrevRect.Right() = maPrevRect.Left()+nSpinSize;
+ long nSpinSize = nTextHeight+TITLE_BORDERY-SPIN_OFFY;
+ maPrevRect.Left() = SPIN_OFFX;
+ maPrevRect.Top() = SPIN_OFFY;
+ maPrevRect.Right() = maPrevRect.Left()+nSpinSize;
maPrevRect.Bottom() = maPrevRect.Top()+nSpinSize;
- maNextRect.Left() = aOutSize.Width()-SPIN_OFFX-nSpinSize-1;
- maNextRect.Top() = SPIN_OFFY;
- maNextRect.Right() = maNextRect.Left()+nSpinSize;
+ maNextRect.Left() = aOutSize.Width()-SPIN_OFFX-nSpinSize-1;
+ maNextRect.Top() = SPIN_OFFY;
+ maNextRect.Right() = maNextRect.Left()+nSpinSize;
maNextRect.Bottom() = maNextRect.Top()+nSpinSize;
if ( mnWinStyle & WB_BOLDTEXT )
@@ -616,12 +616,12 @@ USHORT Calendar::ImplHitTest( const Point& rPos, Date& rDate ) const
else if ( maNextRect.IsInside( rPos ) )
return CALENDAR_HITTEST_NEXT;
- long nX;
- long nY;
- long nOffX;
- long nYMonth;
- USHORT nDay;
- DayOfWeek eStartDay = ImplGetWeekStart();
+ long nX;
+ long nY;
+ long nOffX;
+ long nYMonth;
+ USHORT nDay;
+ DayOfWeek eStartDay = ImplGetWeekStart();
rDate = GetFirstMonth();
nY = 0;
@@ -740,11 +740,11 @@ USHORT Calendar::ImplHitTest( const Point& rPos, Date& rDate ) const
static void ImplDrawSpinArrow( OutputDevice* pDev, const Rectangle& rRect,
BOOL bPrev )
{
- long i;
- long n;
- long nLines;
- long nHeight = rRect.GetHeight();
- long nWidth = rRect.GetWidth();
+ long i;
+ long n;
+ long nLines;
+ long nHeight = rRect.GetHeight();
+ long nWidth = rRect.GetWidth();
if ( nWidth < nHeight )
n = nWidth;
else
@@ -794,7 +794,7 @@ void Calendar::ImplDrawSpin( BOOL bDrawPrev, BOOL bDrawNext )
{
Rectangle aOutRect = maPrevRect;
aOutRect.Left() += 3;
- aOutRect.Top() += 3;
+ aOutRect.Top() += 3;
aOutRect.Right() -= 3;
aOutRect.Bottom() -= 3;
ImplDrawSpinArrow( this, aOutRect, TRUE );
@@ -803,7 +803,7 @@ void Calendar::ImplDrawSpin( BOOL bDrawPrev, BOOL bDrawNext )
{
Rectangle aOutRect = maNextRect;
aOutRect.Left() += 3;
- aOutRect.Top() += 3;
+ aOutRect.Top() += 3;
aOutRect.Right() -= 3;
aOutRect.Bottom() -= 3;
ImplDrawSpinArrow( this, aOutRect, FALSE );
@@ -817,15 +817,15 @@ void Calendar::ImplDrawDate( long nX, long nY,
DayOfWeek eDayOfWeek,
BOOL bBack, BOOL bOther, ULONG nToday )
{
- ImplDateInfo* pDateInfo;
- Color* pTextColor = NULL;
- const String& rDay = *(mpDayText[nDay-1]);
- Rectangle aDateRect( nX, nY, nX+mnDayWidth-1, nY+mnDayHeight-1 );
+ ImplDateInfo* pDateInfo;
+ Color* pTextColor = NULL;
+ const String& rDay = *(mpDayText[nDay-1]);
+ Rectangle aDateRect( nX, nY, nX+mnDayWidth-1, nY+mnDayHeight-1 );
BOOL bSel = FALSE;
BOOL bFocus = FALSE;
// Aktueller Tag
- if ( (nDay == maCurDate.GetDay()) &&
+ if ( (nDay == maCurDate.GetDay()) &&
(nMonth == maCurDate.GetMonth()) &&
(nYear == maCurDate.GetYear()) )
bFocus = TRUE;
@@ -916,7 +916,7 @@ void Calendar::ImplDrawDate( long nX, long nY,
aTodayDate.SetDate( nToday );
else
aTodayDate = Date();
- if ( (nDay == aTodayDate.GetDay()) &&
+ if ( (nDay == aTodayDate.GetDay()) &&
(nMonth == aTodayDate.GetMonth()) &&
(nYear == aTodayDate.GetYear()) )
{
@@ -971,21 +971,21 @@ void Calendar::ImplDraw( BOOL bPaint )
ImplFormat();
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- Size aOutSize = GetOutputSizePixel();
- long i;
- long j;
- long nX;
- long nY;
- long nDeltaX;
- long nDeltaY;
- long nDayX;
- long nDayY;
- ULONG nToday = Date().GetDate();
- USHORT nDay;
- USHORT nMonth;
- USHORT nYear;
- Date aDate = GetFirstMonth();
- DayOfWeek eStartDay = ImplGetWeekStart();
+ Size aOutSize = GetOutputSizePixel();
+ long i;
+ long j;
+ long nX;
+ long nY;
+ long nDeltaX;
+ long nDeltaY;
+ long nDayX;
+ long nDayY;
+ ULONG nToday = Date().GetDate();
+ USHORT nDay;
+ USHORT nMonth;
+ USHORT nYear;
+ Date aDate = GetFirstMonth();
+ DayOfWeek eStartDay = ImplGetWeekStart();
HideFocus();
@@ -1043,8 +1043,8 @@ void Calendar::ImplDraw( BOOL bPaint )
nX = 0;
for ( j = 0; j < mnMonthPerLine; j++ )
{
- nMonth = aDate.GetMonth();
- nYear = aDate.GetYear();
+ nMonth = aDate.GetMonth();
+ nYear = aDate.GetYear();
// Monat in der Titleleiste ausgeben
nDeltaX = nX;
@@ -1123,9 +1123,9 @@ void Calendar::ImplDraw( BOOL bPaint )
for ( USHORT nWeekCount = 0; nWeekCount < 6; nWeekCount++ )
{
sal_Int16 nWeek = maCalendarWrapper.getValue( i18n::CalendarFieldIndex::WEEK_OF_YEAR);
- String aWeekText( String::CreateFromInt32( nWeek));
- long nOffX = (mnWeekWidth-WEEKNUMBER_OFFX)-GetTextWidth( aWeekText );
- long nOffY = (mnDayHeight-GetTextHeight())/2;
+ String aWeekText( String::CreateFromInt32( nWeek));
+ long nOffX = (mnWeekWidth-WEEKNUMBER_OFFX)-GetTextWidth( aWeekText );
+ long nOffY = (mnDayHeight-GetTextHeight())/2;
DrawText( Point( nDayX+nOffX, nDayY+nOffY ), aWeekText );
nDayY += mnDayHeight;
maCalendarWrapper.addValue( i18n::CalendarFieldIndex::DAY_OF_MONTH, 7);
@@ -1228,9 +1228,9 @@ void Calendar::ImplUpdateDate( const Date& rDate )
void Calendar::ImplUpdateSelection( Table* pOld )
{
- Table* pNew = mpSelectTable;
- void* p;
- ULONG nKey;
+ Table* pNew = mpSelectTable;
+ void* p;
+ ULONG nKey;
p = pOld->First();
while ( p )
@@ -1264,9 +1264,9 @@ void Calendar::ImplUpdateSelection( Table* pOld )
void Calendar::ImplMouseSelect( const Date& rDate, USHORT nHitTest,
BOOL bMove, BOOL bExpand, BOOL bExtended )
{
- Table* pOldSel = new Table( *mpSelectTable );
- Date aOldDate = maCurDate;
- Date aTempDate = rDate;
+ Table* pOldSel = new Table( *mpSelectTable );
+ Date aOldDate = maCurDate;
+ Date aTempDate = rDate;
if ( !(nHitTest & CALENDAR_HITTEST_DAY) )
aTempDate--;
@@ -1430,15 +1430,15 @@ void Calendar::ImplShowMenu( const Point& rPos, const Date& rDate )
{
EndSelection();
- Date aOldFirstDate = GetFirstMonth();
- PopupMenu aPopupMenu;
- PopupMenu* pYearPopupMenus[MENU_YEAR_COUNT];
- USHORT nMonthOff;
- USHORT nCurItemId;
- USHORT nYear = rDate.GetYear()-1;
- USHORT i;
- USHORT j;
- USHORT nYearIdCount = 1000;
+ Date aOldFirstDate = GetFirstMonth();
+ PopupMenu aPopupMenu;
+ PopupMenu* pYearPopupMenus[MENU_YEAR_COUNT];
+ USHORT nMonthOff;
+ USHORT nCurItemId;
+ USHORT nYear = rDate.GetYear()-1;
+ USHORT i;
+ USHORT j;
+ USHORT nYearIdCount = 1000;
nMonthOff = (rDate.GetYear()-aOldFirstDate.GetYear())*12;
if ( aOldFirstDate.GetMonth() < rDate.GetMonth() )
@@ -1493,8 +1493,8 @@ void Calendar::ImplShowMenu( const Point& rPos, const Date& rDate )
void Calendar::ImplTracking( const Point& rPos, BOOL bRepeat )
{
- Date aTempDate = maCurDate;
- USHORT nHitTest = ImplHitTest( rPos, aTempDate );
+ Date aTempDate = maCurDate;
+ USHORT nHitTest = ImplHitTest( rPos, aTempDate );
if ( mbSpinDown )
{
@@ -1519,13 +1519,13 @@ void Calendar::ImplEndTracking( BOOL bCancel )
BOOL bSelection = mbSelection;
BOOL bSpinDown = mbSpinDown;
- mbDrag = FALSE;
- mbSelection = FALSE;
- mbMultiSelection = FALSE;
- mbUnSel = FALSE;
- mbSpinDown = FALSE;
- mbPrevIn = FALSE;
- mbNextIn = FALSE;
+ mbDrag = FALSE;
+ mbSelection = FALSE;
+ mbMultiSelection = FALSE;
+ mbUnSel = FALSE;
+ mbSpinDown = FALSE;
+ mbPrevIn = FALSE;
+ mbNextIn = FALSE;
if ( bCancel )
{
@@ -1534,10 +1534,10 @@ void Calendar::ImplEndTracking( BOOL bCancel )
if ( !bSpinDown )
{
- Table* pOldSel = new Table( *mpSelectTable );
- Date aOldDate = maCurDate;
- maCurDate = maOldCurDate;
- *mpSelectTable = *mpOldSelectTable;
+ Table* pOldSel = new Table( *mpSelectTable );
+ Date aOldDate = maCurDate;
+ maCurDate = maOldCurDate;
+ *mpSelectTable = *mpOldSelectTable;
HideFocus();
ImplUpdateSelection( pOldSel );
if ( !pOldSel->Get( aOldDate.GetDate() ) )
@@ -1601,8 +1601,8 @@ void Calendar::MouseButtonDown( const MouseEvent& rMEvt )
{
if ( rMEvt.IsLeft() && !mbMenuDown )
{
- Date aTempDate = maCurDate;
- USHORT nHitTest = ImplHitTest( rMEvt.GetPosPixel(), aTempDate );
+ Date aTempDate = maCurDate;
+ USHORT nHitTest = ImplHitTest( rMEvt.GetPosPixel(), aTempDate );
if ( nHitTest )
{
if ( nHitTest & CALENDAR_HITTEST_MONTHTITLE )
@@ -1694,10 +1694,10 @@ void Calendar::Tracking( const TrackingEvent& rTEvt )
void Calendar::KeyInput( const KeyEvent& rKEvt )
{
- Date aNewDate = maCurDate;
- BOOL bMultiSel = (mnWinStyle & (WB_RANGESELECT | WB_MULTISELECT)) != 0;
- BOOL bExpand = rKEvt.GetKeyCode().IsShift();
- BOOL bExtended = rKEvt.GetKeyCode().IsMod1();
+ Date aNewDate = maCurDate;
+ BOOL bMultiSel = (mnWinStyle & (WB_RANGESELECT | WB_MULTISELECT)) != 0;
+ BOOL bExpand = rKEvt.GetKeyCode().IsShift();
+ BOOL bExtended = rKEvt.GetKeyCode().IsMod1();
switch ( rKEvt.GetKeyCode().GetCode() )
{
@@ -1882,8 +1882,8 @@ void Calendar::RequestHelp( const HelpEvent& rHEvt )
{
maCalendarWrapper.setGregorianDateTime( aDate);
USHORT nWeek = (USHORT) maCalendarWrapper.getValue( i18n::CalendarFieldIndex::WEEK_OF_YEAR);
- USHORT nMonth = aDate.GetMonth();
- XubString aStr( maDayText );
+ USHORT nMonth = aDate.GetMonth();
+ XubString aStr( maDayText );
aStr.AppendAscii( ": " );
aStr.Append( XubString::CreateFromInt32( aDate.GetDayOfYear() ) );
aStr.AppendAscii( " / " );
@@ -1918,8 +1918,8 @@ void Calendar::Command( const CommandEvent& rCEvt )
{
if ( !mbSelection && rCEvt.IsMouseEvent() )
{
- Date aTempDate = maCurDate;
- USHORT nHitTest = ImplHitTest( rCEvt.GetMousePosPixel(), aTempDate );
+ Date aTempDate = maCurDate;
+ USHORT nHitTest = ImplHitTest( rCEvt.GetMousePosPixel(), aTempDate );
if ( nHitTest & CALENDAR_HITTEST_MONTHTITLE )
{
ImplShowMenu( rCEvt.GetMousePosPixel(), aTempDate );
@@ -2121,10 +2121,10 @@ void Calendar::SetCurDate( const Date& rNewDate )
if ( maCurDate != rNewDate )
{
- BOOL bUpdate = IsVisible() && IsUpdateMode();
- Date aOldDate = maCurDate;
- maCurDate = rNewDate;
- maAnchorDate = maCurDate;
+ BOOL bUpdate = IsVisible() && IsUpdateMode();
+ Date aOldDate = maCurDate;
+ maCurDate = rNewDate;
+ maAnchorDate = maCurDate;
if ( !(mnWinStyle & (WB_RANGESELECT | WB_MULTISELECT)) )
{
@@ -2235,8 +2235,8 @@ BOOL Calendar::GetDropDate( Date& rDate ) const
BOOL Calendar::GetDate( const Point& rPos, Date& rDate ) const
{
- Date aDate = maCurDate;
- USHORT nHitTest = ImplHitTest( rPos, aDate );
+ Date aDate = maCurDate;
+ USHORT nHitTest = ImplHitTest( rPos, aDate );
if ( nHitTest & CALENDAR_HITTEST_DAY )
{
rDate = aDate;
@@ -2255,11 +2255,11 @@ Rectangle Calendar::GetDateRect( const Date& rDate ) const
if ( mbFormat || (rDate < maFirstDate) || (rDate > (maFirstDate+mnDayCount)) )
return aRect;
- long nX;
- long nY;
- ULONG nDaysOff;
- USHORT nDayIndex;
- Date aDate = GetFirstMonth();
+ long nX;
+ long nY;
+ ULONG nDaysOff;
+ USHORT nDayIndex;
+ Date aDate = GetFirstMonth();
if ( rDate < aDate )
{
@@ -2322,10 +2322,10 @@ Rectangle Calendar::GetDateRect( const Date& rDate ) const
{
if ( nDay == rDate.GetDay() )
{
- aRect.Left() = nDayX + (nDayIndex*mnDayWidth);
- aRect.Top() = nDayY;
- aRect.Right() = aRect.Left()+mnDayWidth;
- aRect.Bottom() = aRect.Top()+mnDayHeight;
+ aRect.Left() = nDayX + (nDayIndex*mnDayWidth);
+ aRect.Top() = nDayY;
+ aRect.Right() = aRect.Left()+mnDayWidth;
+ aRect.Bottom() = aRect.Top()+mnDayHeight;
break;
}
if ( nDayIndex == 6 )
@@ -2390,9 +2390,9 @@ void Calendar::AddDateInfo( const Date& rDate, const String& rText,
if ( !mpDateTable )
mpDateTable = new ImplDateTable( 256, 256 );
- BOOL bChanged = FALSE;
- ULONG nKey = rDate.GetDate();
- ImplDateInfo* pDateInfo = mpDateTable->Get( nKey );
+ BOOL bChanged = FALSE;
+ ULONG nKey = rDate.GetDate();
+ ImplDateInfo* pDateInfo = mpDateTable->Get( nKey );
if ( pDateInfo )
pDateInfo->maText = rText;
else
@@ -2503,8 +2503,8 @@ XubString Calendar::GetDateInfoText( const Date& rDate )
XubString aRet;
if ( mpDateTable )
{
- ULONG nKey = rDate.GetDate();
- ImplDateInfo* pDateInfo = mpDateTable->Get( nKey );
+ ULONG nKey = rDate.GetDate();
+ ImplDateInfo* pDateInfo = mpDateTable->Get( nKey );
if ( pDateInfo )
aRet = pDateInfo->maText;
}
@@ -2515,7 +2515,7 @@ XubString Calendar::GetDateInfoText( const Date& rDate )
BOOL Calendar::ShowDropPos( const Point& rPos, Date& rDate )
{
- Date aTempDate = maCurDate;
+ Date aTempDate = maCurDate;
mnDragScrollHitTest = ImplHitTest( rPos, aTempDate );
if ( mnDragScrollHitTest )
@@ -2583,12 +2583,12 @@ void Calendar::EndSelection()
if ( !mbSelection )
ReleaseMouse();
- mbDrag = FALSE;
- mbSelection = FALSE;
- mbMultiSelection = FALSE;
- mbSpinDown = FALSE;
- mbPrevIn = FALSE;
- mbNextIn = FALSE;
+ mbDrag = FALSE;
+ mbSelection = FALSE;
+ mbMultiSelection = FALSE;
+ mbSpinDown = FALSE;
+ mbPrevIn = FALSE;
+ mbNextIn = FALSE;
}
}
@@ -2597,8 +2597,8 @@ void Calendar::EndSelection()
Size Calendar::CalcWindowSizePixel( long nCalcMonthPerLine,
long nCalcLines ) const
{
- XubString a99Text( XubString( RTL_CONSTASCII_USTRINGPARAM( "99" ) ) );
- Font aOldFont = GetFont();
+ XubString a99Text( XubString( RTL_CONSTASCII_USTRINGPARAM( "99" ) ) );
+ Font aOldFont = GetFont();
// Wochenanzeige beruecksichtigen
long nWeekWidth;
@@ -2623,9 +2623,9 @@ Size Calendar::CalcWindowSizePixel( long nCalcMonthPerLine,
((Calendar*)this)->SetFont( aFont );
}
- Size aSize;
- long n99TextWidth = GetTextWidth( a99Text );
- long nTextHeight = GetTextHeight();
+ Size aSize;
+ long n99TextWidth = GetTextWidth( a99Text );
+ long nTextHeight = GetTextHeight();
if ( mnWinStyle & WB_BOLDTEXT )
((Calendar*)this)->SetFont( aOldFont );
@@ -2634,7 +2634,7 @@ Size Calendar::CalcWindowSizePixel( long nCalcMonthPerLine,
aSize.Width() += MONTH_BORDERX*2;
aSize.Width() *= nCalcMonthPerLine;
- aSize.Height() = nTextHeight + TITLE_OFFY + (TITLE_BORDERY*2);
+ aSize.Height() = nTextHeight + TITLE_OFFY + (TITLE_BORDERY*2);
aSize.Height() += nTextHeight + WEEKDAY_OFFY;
aSize.Height() += ((nTextHeight+DAY_OFFY)*6);
aSize.Height() += MONTH_OFFY;
@@ -2645,35 +2645,35 @@ Size Calendar::CalcWindowSizePixel( long nCalcMonthPerLine,
// =======================================================================
-#define CALFIELD_EXTRA_BUTTON_WIDTH 14
-#define CALFIELD_EXTRA_BUTTON_HEIGHT 8
-#define CALFIELD_SEP_X 6
-#define CALFIELD_BORDERLINE_X 5
-#define CALFIELD_BORDER_YTOP 4
-#define CALFIELD_BORDER_Y 5
+#define CALFIELD_EXTRA_BUTTON_WIDTH 14
+#define CALFIELD_EXTRA_BUTTON_HEIGHT 8
+#define CALFIELD_SEP_X 6
+#define CALFIELD_BORDERLINE_X 5
+#define CALFIELD_BORDER_YTOP 4
+#define CALFIELD_BORDER_Y 5
// =======================================================================
class ImplCFieldFloatWin : public FloatingWindow
{
private:
- Calendar* mpCalendar;
- PushButton* mpTodayBtn;
- PushButton* mpNoneBtn;
- FixedLine* mpFixedLine;
+ Calendar* mpCalendar;
+ PushButton* mpTodayBtn;
+ PushButton* mpNoneBtn;
+ FixedLine* mpFixedLine;
public:
ImplCFieldFloatWin( Window* pParent );
~ImplCFieldFloatWin();
- void SetCalendar( Calendar* pCalendar )
+ void SetCalendar( Calendar* pCalendar )
{ mpCalendar = pCalendar; }
- PushButton* EnableTodayBtn( BOOL bEnable );
- PushButton* EnableNoneBtn( BOOL bEnable );
- void ArrangeButtons();
+ PushButton* EnableTodayBtn( BOOL bEnable );
+ PushButton* EnableNoneBtn( BOOL bEnable );
+ void ArrangeButtons();
- long Notify( NotifyEvent& rNEvt );
+ long Notify( NotifyEvent& rNEvt );
};
// -----------------------------------------------------------------------
@@ -2681,9 +2681,9 @@ public:
ImplCFieldFloatWin::ImplCFieldFloatWin( Window* pParent ) :
FloatingWindow( pParent, WB_BORDER | WB_SYSTEMWINDOW | WB_NOSHADOW )
{
- mpCalendar = NULL;
- mpTodayBtn = NULL;
- mpNoneBtn = NULL;
+ mpCalendar = NULL;
+ mpTodayBtn = NULL;
+ mpNoneBtn = NULL;
mpFixedLine = NULL;
}
@@ -2708,8 +2708,8 @@ PushButton* ImplCFieldFloatWin::EnableTodayBtn( BOOL bEnable )
XubString aTodayText( SvtResId( STR_SVT_CALENDAR_TODAY ) );
mpTodayBtn->SetText( aTodayText );
Size aSize;
- aSize.Width() = mpTodayBtn->GetCtrlTextWidth( mpTodayBtn->GetText() );
- aSize.Height() = mpTodayBtn->GetTextHeight();
+ aSize.Width() = mpTodayBtn->GetCtrlTextWidth( mpTodayBtn->GetText() );
+ aSize.Height() = mpTodayBtn->GetTextHeight();
aSize.Width() += CALFIELD_EXTRA_BUTTON_WIDTH;
aSize.Height() += CALFIELD_EXTRA_BUTTON_HEIGHT;
mpTodayBtn->SetSizePixel( aSize );
@@ -2740,8 +2740,8 @@ PushButton* ImplCFieldFloatWin::EnableNoneBtn( BOOL bEnable )
XubString aNoneText( SvtResId( STR_SVT_CALENDAR_NONE ) );
mpNoneBtn->SetText( aNoneText );
Size aSize;
- aSize.Width() = mpNoneBtn->GetCtrlTextWidth( mpNoneBtn->GetText() );
- aSize.Height() = mpNoneBtn->GetTextHeight();
+ aSize.Width() = mpNoneBtn->GetCtrlTextWidth( mpNoneBtn->GetText() );
+ aSize.Height() = mpNoneBtn->GetTextHeight();
aSize.Width() += CALFIELD_EXTRA_BUTTON_WIDTH;
aSize.Height() += CALFIELD_EXTRA_BUTTON_HEIGHT;
mpNoneBtn->SetSizePixel( aSize );
@@ -2765,8 +2765,8 @@ PushButton* ImplCFieldFloatWin::EnableNoneBtn( BOOL bEnable )
void ImplCFieldFloatWin::ArrangeButtons()
{
long nBtnHeight = 0;
- long nBtnWidth = 0;
- Size aOutSize = GetOutputSizePixel();
+ long nBtnWidth = 0;
+ Size aOutSize = GetOutputSizePixel();
if ( mpTodayBtn && mpNoneBtn )
{
Size aTodayBtnSize = mpTodayBtn->GetSizePixel();
@@ -2846,11 +2846,11 @@ CalendarField::CalendarField( Window* pParent, WinBits nWinStyle ) :
DateField( pParent, nWinStyle ),
maDefaultDate( 0, 0, 0 )
{
- mpFloatWin = NULL;
- mpCalendar = NULL;
+ mpFloatWin = NULL;
+ mpCalendar = NULL;
mnCalendarStyle = 0;
- mbToday = FALSE;
- mbNone = FALSE;
+ mbToday = FALSE;
+ mbNone = FALSE;
}
// -----------------------------------------------------------------------
@@ -2859,11 +2859,11 @@ CalendarField::CalendarField( Window* pParent, const ResId& rResId ) :
DateField( pParent, rResId ),
maDefaultDate( 0, 0, 0 )
{
- mpFloatWin = NULL;
- mpCalendar = NULL;
+ mpFloatWin = NULL;
+ mpCalendar = NULL;
mnCalendarStyle = 0;
- mbToday = FALSE;
- mbNone = FALSE;
+ mbToday = FALSE;
+ mbNone = FALSE;
}
// -----------------------------------------------------------------------
@@ -2969,8 +2969,8 @@ BOOL CalendarField::ShowDropDown( BOOL bShow )
pCalendar->SelectDate( aDate );
}
pCalendar->SetCurDate( aDate );
- Point aPos( GetParent()->OutputToScreenPixel( GetPosPixel() ) );
- Rectangle aRect( aPos, GetSizePixel() );
+ Point aPos( GetParent()->OutputToScreenPixel( GetPosPixel() ) );
+ Rectangle aRect( aPos, GetSizePixel() );
aRect.Bottom() -= 1;
mpCalendar->SetOutputSizePixel( mpCalendar->CalcWindowSizePixel() );
mpFloatWin->SetOutputSizePixel( mpCalendar->GetSizePixel() );
diff --git a/svtools/source/control/calendar.src b/svtools/source/control/calendar.src
index 4dd31765a5c1..82f8bb0f4ef4 100755
--- a/svtools/source/control/calendar.src
+++ b/svtools/source/control/calendar.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/collatorres.cxx b/svtools/source/control/collatorres.cxx
index 20b7865db569..fb5566607cdd 100644
--- a/svtools/source/control/collatorres.cxx
+++ b/svtools/source/control/collatorres.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,31 +45,31 @@ class CollatorRessourceData
{
friend class CollatorRessource;
private: /* data */
- String ma_Name;
- String ma_Translation;
+ String ma_Name;
+ String ma_Translation;
private: /* member functions */
CollatorRessourceData () {}
public:
CollatorRessourceData ( const String &r_Algorithm, const String &r_Translation)
: ma_Name (r_Algorithm), ma_Translation (r_Translation) {}
- const String& GetAlgorithm () const { return ma_Name; }
+ const String& GetAlgorithm () const { return ma_Name; }
- const String& GetTranslation () const { return ma_Translation; }
+ const String& GetTranslation () const { return ma_Translation; }
~CollatorRessourceData () {}
CollatorRessourceData& operator= (const CollatorRessourceData& r_From)
- {
- ma_Name = r_From.GetAlgorithm();
- ma_Translation = r_From.GetTranslation();
+ {
+ ma_Name = r_From.GetAlgorithm();
+ ma_Translation = r_From.GetTranslation();
return *this;
}
};
// -------------------------------------------------------------------------
//
-// implementation of the collator-algorithm-name translation
+// implementation of the collator-algorithm-name translation
//
// -------------------------------------------------------------------------
@@ -117,12 +117,12 @@ CollatorRessource::GetTranslation (const String &r_Algorithm)
nIndex += 1;
aLocaleFreeAlgorithm = String(r_Algorithm, nIndex, r_Algorithm.Len() - nIndex);
}
-
+
for (sal_uInt32 i = 0; i < COLLATOR_RESSOURCE_COUNT; i++)
{
if (aLocaleFreeAlgorithm == mp_Data[i].GetAlgorithm())
return mp_Data[i].GetTranslation();
- }
+ }
return r_Algorithm;
}
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 0dce36d4a5d8..37b01f3d30a4 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -643,20 +643,20 @@ void LineListBox::UpdateLineColors( void )
{
if( UpdatePaintLineColor() )
{
- ULONG nCount = pLineList->Count();
+ ULONG nCount = pLineList->Count();
if( !nCount )
return;
- XubString aStr;
- Bitmap aBmp;
+ XubString aStr;
+ Bitmap aBmp;
// exchange entries which containing lines
SetUpdateMode( FALSE );
- USHORT nSelEntry = GetSelectEntryPos();
+ USHORT nSelEntry = GetSelectEntryPos();
for( ULONG n = 0 ; n < nCount ; ++n )
{
- ImpLineListData* pData = pLineList->GetObject( n );
+ ImpLineListData* pData = pLineList->GetObject( n );
if( pData )
{
// exchange listbox data
@@ -679,9 +679,9 @@ void LineListBox::UpdateLineColors( void )
BOOL LineListBox::UpdatePaintLineColor( void )
{
- BOOL bRet = TRUE;
- const StyleSettings& rSettings = GetSettings().GetStyleSettings();
- Color aNewCol( rSettings.GetWindowColor().IsDark()? rSettings.GetLabelTextColor() : aColor );
+ BOOL bRet = TRUE;
+ const StyleSettings& rSettings = GetSettings().GetStyleSettings();
+ Color aNewCol( rSettings.GetWindowColor().IsDark()? rSettings.GetLabelTextColor() : aColor );
bRet = aNewCol != maPaintCol;
diff --git a/svtools/source/control/ctrlbox.src b/svtools/source/control/ctrlbox.src
index 95440c905d89..5ddedbe4098f 100755
--- a/svtools/source/control/ctrlbox.src
+++ b/svtools/source/control/ctrlbox.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/ctrldll.cxx b/svtools/source/control/ctrldll.cxx
index e9ecfaf7b550..4ba19c9de22e 100644
--- a/svtools/source/control/ctrldll.cxx
+++ b/svtools/source/control/ctrldll.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx
index 3e5d3e16cc39..674113e14097 100644
--- a/svtools/source/control/ctrltool.cxx
+++ b/svtools/source/control/ctrltool.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,8 +93,8 @@ class ImplFontListFontInfo : public FontInfo
friend class FontList;
private:
- OutputDevice* mpDevice;
- ImplFontListFontInfo* mpNext;
+ OutputDevice* mpDevice;
+ ImplFontListFontInfo* mpNext;
public:
ImplFontListFontInfo( const FontInfo& rInfo,
@@ -104,7 +104,7 @@ public:
mpDevice = pDev;
}
- OutputDevice* GetDevice() const { return mpDevice; }
+ OutputDevice* GetDevice() const { return mpDevice; }
};
// ------------------------------
@@ -116,15 +116,15 @@ class ImplFontListNameInfo
friend class FontList;
private:
- XubString maSearchName;
- ImplFontListFontInfo* mpFirst;
- USHORT mnType;
+ XubString maSearchName;
+ ImplFontListFontInfo* mpFirst;
+ USHORT mnType;
ImplFontListNameInfo( const XubString& rSearchName ) :
maSearchName( rSearchName )
{}
- const XubString& GetSearchName() const { return maSearchName; }
+ const XubString& GetSearchName() const { return maSearchName; }
};
// =======================================================================
@@ -196,11 +196,11 @@ ImplFontListNameInfo* FontList::ImplFind( const XubString& rSearchName, ULONG* p
}
// Fonts in der Liste suchen
- ImplFontListNameInfo* pCompareData;
- ImplFontListNameInfo* pFoundData = NULL;
- ULONG nLow = 0;
- ULONG nHigh = nCnt-1;
- ULONG nMid;
+ ImplFontListNameInfo* pCompareData;
+ ImplFontListNameInfo* pFoundData = NULL;
+ ULONG nLow = 0;
+ ULONG nHigh = nCnt-1;
+ ULONG nMid;
do
{
@@ -262,7 +262,7 @@ void FontList::ImplInsertFonts( OutputDevice* pDevice, BOOL bAll,
// Alle Fonts vom Device abfragen
int n = pDevice->GetDevFontCount();
- USHORT i;
+ USHORT i;
for( i = 0; i < n; i++ )
{
FontInfo aFontInfo = pDevice->GetDevFont( i );
@@ -272,9 +272,9 @@ void FontList::ImplInsertFonts( OutputDevice* pDevice, BOOL bAll,
if ( !bAll && (aFontInfo.GetType() == TYPE_RASTER) )
continue;
- XubString aSearchName = aFontInfo.GetName();
- ImplFontListNameInfo* pData;
- ULONG nIndex;
+ XubString aSearchName = aFontInfo.GetName();
+ ImplFontListNameInfo* pData;
+ ULONG nIndex;
ImplMakeSearchString( aSearchName );
pData = ImplFind( aSearchName, &nIndex );
@@ -284,9 +284,9 @@ void FontList::ImplInsertFonts( OutputDevice* pDevice, BOOL bAll,
{
ImplFontListFontInfo* pNewInfo = new ImplFontListFontInfo( aFontInfo, pDevice );
pData = new ImplFontListNameInfo( aSearchName );
- pData->mpFirst = pNewInfo;
- pNewInfo->mpNext = NULL;
- pData->mnType = 0;
+ pData->mpFirst = pNewInfo;
+ pNewInfo->mpNext = NULL;
+ pData->mnType = 0;
Insert( (void*)pData, nIndex );
}
}
@@ -294,10 +294,10 @@ void FontList::ImplInsertFonts( OutputDevice* pDevice, BOOL bAll,
{
if ( bInsertData )
{
- BOOL bInsert = TRUE;
- ImplFontListFontInfo* pPrev = NULL;
- ImplFontListFontInfo* pTemp = pData->mpFirst;
- ImplFontListFontInfo* pNewInfo = new ImplFontListFontInfo( aFontInfo, pDevice );
+ BOOL bInsert = TRUE;
+ ImplFontListFontInfo* pPrev = NULL;
+ ImplFontListFontInfo* pTemp = pData->mpFirst;
+ ImplFontListFontInfo* pNewInfo = new ImplFontListFontInfo( aFontInfo, pDevice );
while ( pTemp )
{
StringCompare eComp = ImplCompareFontInfo( pNewInfo, pTemp );
@@ -356,14 +356,14 @@ FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2, BOOL bAll ) :
mpSizeAry = NULL;
// Stylenamen festlegen
- maLight = XubString( SvtResId( STR_SVT_STYLE_LIGHT ) );
- maLightItalic = XubString( SvtResId( STR_SVT_STYLE_LIGHT_ITALIC ) );
- maNormal = XubString( SvtResId( STR_SVT_STYLE_NORMAL ) );
- maNormalItalic = XubString( SvtResId( STR_SVT_STYLE_NORMAL_ITALIC ) );
- maBold = XubString( SvtResId( STR_SVT_STYLE_BOLD ) );
- maBoldItalic = XubString( SvtResId( STR_SVT_STYLE_BOLD_ITALIC ) );
- maBlack = XubString( SvtResId( STR_SVT_STYLE_BLACK ) );
- maBlackItalic = XubString( SvtResId( STR_SVT_STYLE_BLACK_ITALIC ) );
+ maLight = XubString( SvtResId( STR_SVT_STYLE_LIGHT ) );
+ maLightItalic = XubString( SvtResId( STR_SVT_STYLE_LIGHT_ITALIC ) );
+ maNormal = XubString( SvtResId( STR_SVT_STYLE_NORMAL ) );
+ maNormalItalic = XubString( SvtResId( STR_SVT_STYLE_NORMAL_ITALIC ) );
+ maBold = XubString( SvtResId( STR_SVT_STYLE_BOLD ) );
+ maBoldItalic = XubString( SvtResId( STR_SVT_STYLE_BOLD_ITALIC ) );
+ maBlack = XubString( SvtResId( STR_SVT_STYLE_BLACK ) );
+ maBlackItalic = XubString( SvtResId( STR_SVT_STYLE_BLACK_ITALIC ) );
ImplInsertFonts( pDevice, bAll, TRUE );
@@ -412,7 +412,7 @@ FontList* FontList::Clone() const
FontList* pReturn = new FontList(
mpDev, mpDev2, GetFontNameCount() == mpDev->GetDevFontCount());
return pReturn;
-}
+}
// -----------------------------------------------------------------------
@@ -459,9 +459,9 @@ const XubString& FontList::GetStyleName( FontWeight eWeight, FontItalic eItalic
XubString FontList::GetStyleName( const FontInfo& rInfo ) const
{
- XubString aStyleName = rInfo.GetStyleName();
- FontWeight eWeight = rInfo.GetWeight();
- FontItalic eItalic = rInfo.GetItalic();
+ XubString aStyleName = rInfo.GetStyleName();
+ FontWeight eWeight = rInfo.GetWeight();
+ FontItalic eItalic = rInfo.GetItalic();
// Nur wenn kein StyleName gesetzt ist, geben wir einen syntetischen
// Namen zurueck
@@ -530,15 +530,15 @@ XubString FontList::GetFontMapText( const FontInfo& rInfo ) const
}
// search for synthetic style
- USHORT nType = pData->mnType;
- const XubString& rStyleName = rInfo.GetStyleName();
+ USHORT nType = pData->mnType;
+ const XubString& rStyleName = rInfo.GetStyleName();
if ( rStyleName.Len() )
{
- BOOL bNotSynthetic = FALSE;
- BOOL bNoneAvailable = FALSE;
- FontWeight eWeight = rInfo.GetWeight();
- FontItalic eItalic = rInfo.GetItalic();
- ImplFontListFontInfo* pFontInfo = pData->mpFirst;
+ BOOL bNotSynthetic = FALSE;
+ BOOL bNoneAvailable = FALSE;
+ FontWeight eWeight = rInfo.GetWeight();
+ FontItalic eItalic = rInfo.GetItalic();
+ ImplFontListFontInfo* pFontInfo = pData->mpFirst;
while ( pFontInfo )
{
if ( (eWeight == pFontInfo->GetWeight()) &&
@@ -584,7 +584,7 @@ XubString FontList::GetFontMapText( const FontInfo& rInfo ) const
return maMapPrinterOnly;
}
// Only Screen-Font?
- else if ( (nType & (FONTLIST_FONTNAMETYPE_PRINTER | FONTLIST_FONTNAMETYPE_SCREEN)) == FONTLIST_FONTNAMETYPE_SCREEN
+ else if ( (nType & (FONTLIST_FONTNAMETYPE_PRINTER | FONTLIST_FONTNAMETYPE_SCREEN)) == FONTLIST_FONTNAMETYPE_SCREEN
&& rInfo.GetType() == TYPE_RASTER )
{
if ( !maMapScreenOnly.Len() )
@@ -818,8 +818,8 @@ const long* FontList::GetSizeAry( const FontInfo& rInfo ) const
// Zuerst nach dem Fontnamen suchen um das Device dann von dem
// entsprechenden Font zu nehmen
- OutputDevice* pDevice = mpDev;
- ImplFontListNameInfo* pData = ImplFindByName( rInfo.GetName() );
+ OutputDevice* pDevice = mpDev;
+ ImplFontListNameInfo* pData = ImplFindByName( rInfo.GetName() );
if ( pData )
pDevice = pData->mpFirst->GetDevice();
@@ -832,9 +832,9 @@ const long* FontList::GetSizeAry( const FontInfo& rInfo ) const
MapMode aMap( MAP_10TH_INCH, Point(), Fraction( 1, 72 ), Fraction( 1, 72 ) );
pDevice->SetMapMode( aMap );
- USHORT i;
- USHORT nRealCount = 0;
- long nOldHeight = 0;
+ USHORT i;
+ USHORT nRealCount = 0;
+ long nOldHeight = 0;
((FontList*)this)->mpSizeAry = new long[nDevSizeCount+1];
for ( i = 0; i < nDevSizeCount; i++ )
{
@@ -867,7 +867,7 @@ const long* FontList::GetStdSizeAry()
struct ImplFSNameItem
{
- long mnSize;
+ long mnSize;
const char* mszUtf8Name;
};
diff --git a/svtools/source/control/ctrltool.src b/svtools/source/control/ctrltool.src
index 72420af4908e..75e039708e75 100755
--- a/svtools/source/control/ctrltool.src
+++ b/svtools/source/control/ctrltool.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/filectrl.cxx b/svtools/source/control/filectrl.cxx
index 1a1d539d0120..a97fb4ceef6e 100644
--- a/svtools/source/control/filectrl.cxx
+++ b/svtools/source/control/filectrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/filectrl.src b/svtools/source/control/filectrl.src
index dc8bbb5905d6..3ac29f94da89 100644
--- a/svtools/source/control/filectrl.src
+++ b/svtools/source/control/filectrl.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/filectrl2.cxx b/svtools/source/control/filectrl2.cxx
index a45014d7d13e..cbb40c1b6be7 100644
--- a/svtools/source/control/filectrl2.cxx
+++ b/svtools/source/control/filectrl2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/fileurlbox.cxx b/svtools/source/control/fileurlbox.cxx
index f2880feef2d0..51fddf787acc 100644
--- a/svtools/source/control/fileurlbox.cxx
+++ b/svtools/source/control/fileurlbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -120,7 +120,7 @@ namespace svt
}
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/control/fixedhyper.cxx b/svtools/source/control/fixedhyper.cxx
index c5500bd691ea..1c9ab29f40c9 100644
--- a/svtools/source/control/fixedhyper.cxx
+++ b/svtools/source/control/fixedhyper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/fmtfield.cxx b/svtools/source/control/fmtfield.cxx
index 8a2c4767794a..7c7d3d4247ff 100644
--- a/svtools/source/control/fmtfield.cxx
+++ b/svtools/source/control/fmtfield.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,35 +76,35 @@ namespace validation
// the states of our automat.
enum State
{
- START, // at the very start of the string
- NUM_START, // the very start of the number
+ START, // at the very start of the string
+ NUM_START, // the very start of the number
- DIGIT_PRE_COMMA, // some pre-comma digits are read, perhaps including some thousand separators
+ DIGIT_PRE_COMMA, // some pre-comma digits are read, perhaps including some thousand separators
- DIGIT_POST_COMMA, // reading digits after the comma
- EXPONENT_START, // at the very start of the exponent value
+ DIGIT_POST_COMMA, // reading digits after the comma
+ EXPONENT_START, // at the very start of the exponent value
// (means: not including the "e" which denotes the exponent)
- EXPONENT_DIGIT, // currently reading the digits of the exponent
+ EXPONENT_DIGIT, // currently reading the digits of the exponent
- END // reached the end of the string
+ END // reached the end of the string
};
// a row in the transition table (means the set of states to be reached from a given state)
- typedef ::std::map< sal_Unicode, State > StateTransitions;
+ typedef ::std::map< sal_Unicode, State > StateTransitions;
// a single transition
- typedef StateTransitions::value_type Transition;
+ typedef StateTransitions::value_type Transition;
// the complete transition table
- typedef ::std::map< State, StateTransitions > TransitionTable;
+ typedef ::std::map< State, StateTransitions > TransitionTable;
// the validator class
class NumberValidator
{
private:
- TransitionTable m_aTransitions;
- const sal_Unicode m_cThSep;
- const sal_Unicode m_cDecSep;
+ TransitionTable m_aTransitions;
+ const sal_Unicode m_cThSep;
+ const sal_Unicode m_cDecSep;
public:
NumberValidator( const sal_Unicode _cThSep, const sal_Unicode _cDecSep );
@@ -342,25 +342,25 @@ FormattedField::StaticFormatter::~StaticFormatter()
//==============================================================================
DBG_NAME(FormattedField);
-#define INIT_MEMBERS() \
- m_aLastSelection(0,0) \
- ,m_dMinValue(0) \
- ,m_dMaxValue(0) \
- ,m_bHasMin(FALSE) \
- ,m_bHasMax(FALSE) \
- ,m_bStrictFormat(TRUE) \
- ,m_bValueDirty(TRUE) \
- ,m_bEnableEmptyField(TRUE) \
- ,m_bAutoColor(FALSE) \
+#define INIT_MEMBERS() \
+ m_aLastSelection(0,0) \
+ ,m_dMinValue(0) \
+ ,m_dMaxValue(0) \
+ ,m_bHasMin(FALSE) \
+ ,m_bHasMax(FALSE) \
+ ,m_bStrictFormat(TRUE) \
+ ,m_bValueDirty(TRUE) \
+ ,m_bEnableEmptyField(TRUE) \
+ ,m_bAutoColor(FALSE) \
,m_bEnableNaN(FALSE) \
- ,m_dCurrentValue(0) \
- ,m_dDefaultValue(0) \
- ,m_nFormatKey(0) \
- ,m_pFormatter(NULL) \
- ,m_dSpinSize(1) \
- ,m_dSpinFirst(-1000000) \
- ,m_dSpinLast(1000000) \
- ,m_bTreatAsNumber(TRUE) \
+ ,m_dCurrentValue(0) \
+ ,m_dDefaultValue(0) \
+ ,m_nFormatKey(0) \
+ ,m_pFormatter(NULL) \
+ ,m_dSpinSize(1) \
+ ,m_dSpinFirst(-1000000) \
+ ,m_dSpinLast(1000000) \
+ ,m_bTreatAsNumber(TRUE) \
,m_pLastOutputColor(NULL) \
,m_bUseInputStringForFormatting(false)
@@ -459,22 +459,22 @@ void FormattedField::SetTextFormatted(const XubString& rStr)
USHORT nNewLen = sFormatted.Len();
USHORT nCurrentLen = GetText().Len();
if ((nNewLen > nCurrentLen) && (aNewSel.Max() == nCurrentLen))
- { // the new text is longer and the cursor was behind the last char (of the old text)
+ { // the new text is longer and the cursor was behind the last char (of the old text)
if (aNewSel.Min() == 0)
- { // the whole text was selected -> select the new text on the whole, too
+ { // the whole text was selected -> select the new text on the whole, too
aNewSel.Max() = nNewLen;
if (!nCurrentLen)
- { // there wasn't really a previous selection (as there was no previous text), we're setting a new one -> check the selection options
+ { // there wasn't really a previous selection (as there was no previous text), we're setting a new one -> check the selection options
ULONG nSelOptions = GetSettings().GetStyleSettings().GetSelectionOptions();
if (nSelOptions & SELECTION_OPTION_SHOWFIRST)
- { // selection should be from right to left -> swap min and max
+ { // selection should be from right to left -> swap min and max
aNewSel.Min() = aNewSel.Max();
aNewSel.Max() = 0;
}
}
}
else if (aNewSel.Max() == aNewSel.Min())
- { // there was no selection -> set the cursor behind the new last char
+ { // there was no selection -> set the cursor behind the new last char
aNewSel.Max() = nNewLen;
aNewSel.Min() = nNewLen;
}
@@ -482,7 +482,7 @@ void FormattedField::SetTextFormatted(const XubString& rStr)
else if (aNewSel.Max() > nNewLen)
aNewSel.Max() = nNewLen;
else
- aNewSel = aSel; // don't use the justified version
+ aNewSel = aSel; // don't use the justified version
SpinField::SetText(sFormatted, aNewSel);
m_bValueDirty = FALSE;
}
@@ -515,7 +515,7 @@ void FormattedField::SetAutoColor(BOOL _bAutomatic)
m_bAutoColor = _bAutomatic;
if (m_bAutoColor)
- { // if auto color is switched on, adjust the current text color, too
+ { // if auto color is switched on, adjust the current text color, too
if (m_pLastOutputColor)
SetControlForeground(*m_pLastOutputColor);
else
@@ -574,22 +574,22 @@ void FormattedField::ImplSetTextImpl(const XubString& rNew, Selection* pNewSel)
USHORT nCurrentLen = GetText().Len();
if ((nNewLen > nCurrentLen) && (aSel.Max() == nCurrentLen))
- { // new new text is longer and the cursor is behind the last char
+ { // new new text is longer and the cursor is behind the last char
if (aSel.Min() == 0)
- { // the whole text was selected -> select the new text on the whole, too
+ { // the whole text was selected -> select the new text on the whole, too
aSel.Max() = nNewLen;
if (!nCurrentLen)
- { // there wasn't really a previous selection (as there was no previous text), we're setting a new one -> check the selection options
+ { // there wasn't really a previous selection (as there was no previous text), we're setting a new one -> check the selection options
ULONG nSelOptions = GetSettings().GetStyleSettings().GetSelectionOptions();
if (nSelOptions & SELECTION_OPTION_SHOWFIRST)
- { // selection should be from right to left -> swap min and max
+ { // selection should be from right to left -> swap min and max
aSel.Min() = aSel.Max();
aSel.Max() = 0;
}
}
}
else if (aSel.Max() == aSel.Min())
- { // there was no selection -> set the cursor behind the new last char
+ { // there was no selection -> set the cursor behind the new last char
aSel.Max() = nNewLen;
aSel.Min() = nNewLen;
}
@@ -621,7 +621,7 @@ void FormattedField::ImplSetFormatKey(ULONG nFormatKey)
BOOL bNeedFormatter = (m_pFormatter == NULL) && (nFormatKey != 0);
if (bNeedFormatter)
{
- ImplGetFormatter(); // damit wird ein Standard-Formatter angelegt
+ ImplGetFormatter(); // damit wird ein Standard-Formatter angelegt
m_nFormatKey = nFormatKey;
// kann sein, dass das in dem Standard-Formatter keinen Sinn macht, aber der nimmt dann ein Default-Format an.
@@ -826,10 +826,10 @@ void FormattedField::Commit()
// do the reformat
ReFormat();
-
+
// did the text change?
if ( GetText() != sOld )
- { // consider the field as modified
+ { // consider the field as modified
Modify();
// but we have the most recent value now
m_bValueDirty = FALSE;
@@ -1024,7 +1024,7 @@ BOOL FormattedField::ImplGetValue(double& dNewVal)
DBG_ASSERT(ImplGetFormatter() != NULL, "FormattedField::ImplGetValue : can't give you a current value without a formatter !");
- sal_uInt32 nFormatKey = m_nFormatKey; // IsNumberFormat veraendert den FormatKey ...
+ sal_uInt32 nFormatKey = m_nFormatKey; // IsNumberFormat veraendert den FormatKey ...
if (ImplGetFormatter()->IsTextFormat(nFormatKey) && m_bTreatAsNumber)
// damit wir in einem als Text formatierten Feld trotzdem eine Eingabe wie '1,1' erkennen ...
diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx
index 284338e0fb76..6f041cae4635 100644
--- a/svtools/source/control/headbar.cxx
+++ b/svtools/source/control/headbar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,54 +43,54 @@
struct ImplHeadItem
{
- USHORT mnId;
- HeaderBarItemBits mnBits;
- long mnSize;
- ULONG mnHelpId;
- Image maImage;
- XubString maOutText;
- XubString maText;
- XubString maHelpText;
- void* mpUserData;
+ USHORT mnId;
+ HeaderBarItemBits mnBits;
+ long mnSize;
+ ULONG mnHelpId;
+ Image maImage;
+ XubString maOutText;
+ XubString maText;
+ XubString maHelpText;
+ void* mpUserData;
};
DECLARE_LIST( ImplHeadItemList, ImplHeadItem* )
// =======================================================================
-#define HEAD_ARROWSIZE1 4
-#define HEAD_ARROWSIZE2 7
+#define HEAD_ARROWSIZE1 4
+#define HEAD_ARROWSIZE2 7
-#define HEADERBAR_TEXTOFF 2
-#define HEADERBAR_ARROWOFF 5
-#define HEADERBAR_SPLITOFF 3
+#define HEADERBAR_TEXTOFF 2
+#define HEADERBAR_ARROWOFF 5
+#define HEADERBAR_SPLITOFF 3
-#define HEADERBAR_DRAGOFF 4
-#define HEADERBAR_DRAGOUTOFF 15
+#define HEADERBAR_DRAGOFF 4
+#define HEADERBAR_DRAGOUTOFF 15
-#define HEAD_HITTEST_ITEM ((USHORT)0x0001)
-#define HEAD_HITTEST_DIVIDER ((USHORT)0x0002)
+#define HEAD_HITTEST_ITEM ((USHORT)0x0001)
+#define HEAD_HITTEST_DIVIDER ((USHORT)0x0002)
// =======================================================================
void HeaderBar::ImplInit( WinBits nWinStyle )
{
- mpItemList = new ImplHeadItemList;
- mnBorderOff1 = 0;
- mnBorderOff2 = 0;
- mnOffset = 0;
- mnDX = 0;
- mnDY = 0;
- mnDragSize = 0;
- mnStartPos = 0;
- mnDragPos = 0;
- mnMouseOff = 0;
- mnCurItemId = 0;
- mnItemDragPos = HEADERBAR_ITEM_NOTFOUND;
- mbDrag = FALSE;
- mbItemDrag = FALSE;
- mbOutDrag = FALSE;
- mbItemMode = FALSE;
+ mpItemList = new ImplHeadItemList;
+ mnBorderOff1 = 0;
+ mnBorderOff2 = 0;
+ mnOffset = 0;
+ mnDX = 0;
+ mnDY = 0;
+ mnDragSize = 0;
+ mnStartPos = 0;
+ mnDragPos = 0;
+ mnMouseOff = 0;
+ mnCurItemId = 0;
+ mnItemDragPos = HEADERBAR_ITEM_NOTFOUND;
+ mbDrag = FALSE;
+ mbItemDrag = FALSE;
+ mbOutDrag = FALSE;
+ mbItemMode = FALSE;
// StyleBits auswerten
if ( nWinStyle & WB_DRAG )
@@ -212,10 +212,10 @@ Rectangle HeaderBar::ImplGetItemRect( USHORT nPos ) const
USHORT HeaderBar::ImplHitTest( const Point& rPos,
long& nMouseOff, USHORT& nPos ) const
{
- ImplHeadItem* pItem;
- USHORT nCount = (USHORT)mpItemList->Count();
- BOOL bLastFixed = TRUE;
- long nX = -mnOffset;
+ ImplHeadItem* pItem;
+ USHORT nCount = (USHORT)mpItemList->Count();
+ BOOL bLastFixed = TRUE;
+ long nX = -mnOffset;
for ( USHORT i = 0; i < nCount; i++ )
{
@@ -278,8 +278,8 @@ void HeaderBar::ImplInvertDrag( USHORT nStartPos, USHORT nEndPos )
{
Rectangle aRect1 = ImplGetItemRect( nStartPos );
Rectangle aRect2 = ImplGetItemRect( nEndPos );
- Point aStartPos = aRect1.Center();
- Point aEndPos = aStartPos;
+ Point aStartPos = aRect1.Center();
+ Point aEndPos = aStartPos;
Rectangle aStartRect( aStartPos.X()-2, aStartPos.Y()-2,
aStartPos.X()+2, aStartPos.Y()+2 );
@@ -350,13 +350,13 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
return;
}
- ImplHeadItem* pItem = mpItemList->GetObject( nPos );
- HeaderBarItemBits nBits = pItem->mnBits;
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ ImplHeadItem* pItem = mpItemList->GetObject( nPos );
+ HeaderBarItemBits nBits = pItem->mnBits;
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
// Border muss nicht gemalt werden
- aRect.Top() += mnBorderOff1;
- aRect.Bottom() -= mnBorderOff2;
+ aRect.Top() += mnBorderOff1;
+ aRect.Bottom() -= mnBorderOff2;
// Hintergrund loeschen
if ( !pRect || bDrag )
@@ -651,8 +651,8 @@ void HeaderBar::ImplUpdate( USHORT nPos, BOOL bEnd, BOOL bDirect )
{
if ( !bDirect )
{
- Rectangle aRect;
- USHORT nItemCount = (USHORT)(mpItemList->Count());
+ Rectangle aRect;
+ USHORT nItemCount = (USHORT)(mpItemList->Count());
if ( nPos < nItemCount )
aRect = ImplGetItemRect( nPos );
else
@@ -663,8 +663,8 @@ void HeaderBar::ImplUpdate( USHORT nPos, BOOL bEnd, BOOL bDirect )
}
if ( bEnd )
aRect.Right() = mnDX-1;
- aRect.Top() += mnBorderOff1;
- aRect.Bottom() -= mnBorderOff2;
+ aRect.Top() += mnBorderOff1;
+ aRect.Bottom() -= mnBorderOff2;
Invalidate( aRect );
}
else
@@ -678,8 +678,8 @@ void HeaderBar::ImplUpdate( USHORT nPos, BOOL bEnd, BOOL bDirect )
aRect.Right() = mnDX-1;
if ( aRect.Left() < aRect.Right() )
{
- aRect.Top() += mnBorderOff1;
- aRect.Bottom() -= mnBorderOff2;
+ aRect.Top() += mnBorderOff1;
+ aRect.Bottom() -= mnBorderOff2;
Erase( aRect );
}
}
@@ -691,8 +691,8 @@ void HeaderBar::ImplUpdate( USHORT nPos, BOOL bEnd, BOOL bDirect )
void HeaderBar::ImplStartDrag( const Point& rMousePos, BOOL bCommand )
{
- USHORT nPos;
- USHORT nHitTest = ImplHitTest( rMousePos, mnMouseOff, nPos );
+ USHORT nPos;
+ USHORT nHitTest = ImplHitTest( rMousePos, mnMouseOff, nPos );
if ( nHitTest )
{
mbDrag = FALSE;
@@ -754,8 +754,8 @@ void HeaderBar::ImplStartDrag( const Point& rMousePos, BOOL bCommand )
void HeaderBar::ImplDrag( const Point& rMousePos )
{
- BOOL bNewOutDrag;
- USHORT nPos = GetItemPos( mnCurItemId );
+ BOOL bNewOutDrag;
+ USHORT nPos = GetItemPos( mnCurItemId );
mnDragPos = rMousePos.X()-mnMouseOff;
if ( mbItemMode )
@@ -909,13 +909,13 @@ void HeaderBar::ImplEndDrag( BOOL bCancel )
}
}
- mbDrag = FALSE;
+ mbDrag = FALSE;
EndDrag();
- mnCurItemId = 0;
- mnItemDragPos = HEADERBAR_ITEM_NOTFOUND;
- mbOutDrag = FALSE;
- mbItemMode = FALSE;
- mbItemDrag = FALSE;
+ mnCurItemId = 0;
+ mnItemDragPos = HEADERBAR_ITEM_NOTFOUND;
+ mbOutDrag = FALSE;
+ mbItemMode = FALSE;
+ mbItemDrag = FALSE;
}
// -----------------------------------------------------------------------
@@ -926,9 +926,9 @@ void HeaderBar::MouseButtonDown( const MouseEvent& rMEvt )
{
if ( rMEvt.GetClicks() == 2 )
{
- long nTemp;
- USHORT nPos;
- USHORT nHitTest = ImplHitTest( rMEvt.GetPosPixel(), nTemp, nPos );
+ long nTemp;
+ USHORT nPos;
+ USHORT nHitTest = ImplHitTest( rMEvt.GetPosPixel(), nTemp, nPos );
if ( nHitTest )
{
ImplHeadItem* pItem = mpItemList->GetObject( nPos );
@@ -951,10 +951,10 @@ void HeaderBar::MouseButtonDown( const MouseEvent& rMEvt )
void HeaderBar::MouseMove( const MouseEvent& rMEvt )
{
- long nTemp1;
- USHORT nTemp2;
- PointerStyle eStyle = POINTER_ARROW;
- USHORT nHitTest = ImplHitTest( rMEvt.GetPosPixel(), nTemp1, nTemp2 );
+ long nTemp1;
+ USHORT nTemp2;
+ PointerStyle eStyle = POINTER_ARROW;
+ USHORT nHitTest = ImplHitTest( rMEvt.GetPosPixel(), nTemp1, nTemp2 );
if ( nHitTest & HEAD_HITTEST_DIVIDER )
eStyle = POINTER_HSIZEBAR;
@@ -1008,10 +1008,10 @@ void HeaderBar::Paint( const Rectangle& rRect )
void HeaderBar::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
ULONG nFlags )
{
- Point aPos = pDev->LogicToPixel( rPos );
- Size aSize = pDev->LogicToPixel( rSize );
- Rectangle aRect( aPos, aSize );
- Font aFont = GetDrawPixelFont( pDev );
+ Point aPos = pDev->LogicToPixel( rPos );
+ Size aSize = pDev->LogicToPixel( rSize );
+ Rectangle aRect( aPos, aSize );
+ Font aFont = GetDrawPixelFont( pDev );
pDev->Push();
pDev->SetMapMode();
@@ -1036,13 +1036,13 @@ void HeaderBar::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
if ( mnBorderOff1 && mnBorderOff2 )
{
pDev->DrawLine( aRect.TopLeft(), Point( aRect.Left(), aRect.Bottom() ) );
- pDev->DrawLine( Point( aRect.Right(), aRect.Top() ), Point( aRect.Right(), aRect.Bottom() ) );
+ pDev->DrawLine( Point( aRect.Right(), aRect.Top() ), Point( aRect.Right(), aRect.Bottom() ) );
}
}
}
Rectangle aItemRect( aRect );
-// aItemRect.Bottom()--;
+// aItemRect.Bottom()--;
USHORT nItemCount = (USHORT)mpItemList->Count();
for ( USHORT i = 0; i < nItemCount; i++ )
{
@@ -1234,11 +1234,11 @@ void HeaderBar::InsertItem( USHORT nItemId, const Image& rImage,
// Item anlegen und in die Liste einfuegen
ImplHeadItem* pItem = new ImplHeadItem;
- pItem->mnId = nItemId;
- pItem->mnBits = nBits;
- pItem->mnSize = nSize;
- pItem->maImage = rImage;
- pItem->mpUserData = 0;
+ pItem->mnId = nItemId;
+ pItem->mnBits = nBits;
+ pItem->mnSize = nSize;
+ pItem->maImage = rImage;
+ pItem->mpUserData = 0;
mpItemList->Insert( pItem, nPos );
// Ausgabe updaten
@@ -1256,12 +1256,12 @@ void HeaderBar::InsertItem( USHORT nItemId, const XubString& rText,
// Item anlegen und in die Liste einfuegen
ImplHeadItem* pItem = new ImplHeadItem;
- pItem->mnId = nItemId;
- pItem->mnBits = nBits;
- pItem->mnSize = nSize;
- pItem->mnHelpId = 0;
- pItem->maText = rText;
- pItem->mpUserData = 0;
+ pItem->mnId = nItemId;
+ pItem->mnBits = nBits;
+ pItem->mnSize = nSize;
+ pItem->mnHelpId = 0;
+ pItem->maText = rText;
+ pItem->mpUserData = 0;
mpItemList->Insert( pItem, nPos );
// Ausgabe updaten
@@ -1281,13 +1281,13 @@ void HeaderBar::InsertItem( USHORT nItemId,
// Item anlegen und in die Liste einfuegen
ImplHeadItem* pItem = new ImplHeadItem;
- pItem->mnId = nItemId;
- pItem->mnBits = nBits;
- pItem->mnSize = nSize;
- pItem->mnHelpId = 0;
- pItem->maImage = rImage;
- pItem->maText = rText;
- pItem->mpUserData = 0;
+ pItem->mnId = nItemId;
+ pItem->mnBits = nBits;
+ pItem->mnSize = nSize;
+ pItem->mnHelpId = 0;
+ pItem->maImage = rImage;
+ pItem->maText = rText;
+ pItem->mpUserData = 0;
mpItemList->Insert( pItem, nPos );
// Ausgabe updaten
diff --git a/svtools/source/control/hyperlabel.cxx b/svtools/source/control/hyperlabel.cxx
index ab42a891a1ed..f0c8e8613627 100644
--- a/svtools/source/control/hyperlabel.cxx
+++ b/svtools/source/control/hyperlabel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace svt
class FontChanger
{
protected:
- OutputDevice* m_pDev;
+ OutputDevice* m_pDev;
public:
FontChanger( OutputDevice* _pDev, const Font& _rNewFont )
@@ -70,7 +70,7 @@ namespace svt
sal_Bool bInteractive;
Size m_aMinSize;
sal_Bool m_bHyperMode;
-
+
HyperLabelImpl();
};
@@ -85,7 +85,7 @@ namespace svt
{
implInit();
}
-
+
HyperLabel::HyperLabel( Window* _pParent, WinBits _nWinStyle )
:FixedText( _pParent, _nWinStyle )
,m_pImpl( new HyperLabelImpl )
@@ -97,7 +97,7 @@ namespace svt
sal_Int32 HyperLabel::GetLogicWidth()
{
Size rLogicLocSize = PixelToLogic( m_pImpl->m_aMinSize, MAP_APPFONT );
- return rLogicLocSize.Width();
+ return rLogicLocSize.Width();
}
@@ -106,7 +106,7 @@ namespace svt
m_pImpl->m_aMinSize = FixedText::CalcMinimumSize( nMaxWidth );
// the MinimumSize is used to size the FocusRectangle
// and for the MouseMove method
- m_pImpl->m_aMinSize.Height() += 2;
+ m_pImpl->m_aMinSize.Height() += 2;
m_pImpl->m_aMinSize.Width() += 1;
return m_pImpl->m_aMinSize;
}
@@ -122,14 +122,14 @@ namespace svt
Show();
}
- void HyperLabel::ToggleBackgroundColor( const Color& _rGBColor )
- {
+ void HyperLabel::ToggleBackgroundColor( const Color& _rGBColor )
+ {
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- SetControlBackground( _rGBColor );
+ SetControlBackground( _rGBColor );
if (_rGBColor == COL_TRANSPARENT)
- SetTextColor( rStyleSettings.GetFieldTextColor( ) );
+ SetTextColor( rStyleSettings.GetFieldTextColor( ) );
else
- SetTextColor( rStyleSettings.GetHighlightTextColor( ) );
+ SetTextColor( rStyleSettings.GetHighlightTextColor( ) );
}
@@ -137,7 +137,7 @@ namespace svt
{
Font aFont = GetControlFont( );
const Color aColor = GetTextColor();
-
+
if (rMEvt.IsLeaveWindow())
{
DeactivateHyperMode(aFont, aColor);
@@ -155,7 +155,7 @@ namespace svt
}
DeactivateHyperMode(aFont, aColor);
}
- }
+ }
void HyperLabel::ActivateHyperMode(Font aFont, const Color aColor)
{
@@ -163,7 +163,7 @@ namespace svt
m_pImpl->m_bHyperMode = sal_True;
SetPointer( POINTER_REFHAND );
SetControlFont( aFont);
- SetTextColor( aColor);
+ SetTextColor( aColor);
}
@@ -173,7 +173,7 @@ namespace svt
aFont.SetUnderline(UNDERLINE_NONE);
SetPointer( POINTER_ARROW );
SetControlFont( aFont);
- SetTextColor( aColor);
+ SetTextColor( aColor);
}
void HyperLabel::MouseButtonDown( const MouseEvent& )
@@ -182,7 +182,7 @@ namespace svt
{
maClickHdl.Call( this );
}
- }
+ }
void HyperLabel::GetFocus()
{
@@ -245,24 +245,24 @@ namespace svt
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
FixedText::DataChanged( rDCEvt );
- if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
- ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
- ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
+ if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
+ ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
+ ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
{
const Color& rGBColor = GetControlBackground();
if (rGBColor == COL_TRANSPARENT)
- SetTextColor( rStyleSettings.GetFieldTextColor( ) );
+ SetTextColor( rStyleSettings.GetFieldTextColor( ) );
else
{
SetControlBackground(rStyleSettings.GetHighlightColor());
- SetTextColor( rStyleSettings.GetHighlightTextColor( ) );
+ SetTextColor( rStyleSettings.GetHighlightTextColor( ) );
}
Invalidate();
}
}
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/control/indexentryres.cxx b/svtools/source/control/indexentryres.cxx
index 4bc40eb8edeb..a9636c02ce97 100644
--- a/svtools/source/control/indexentryres.cxx
+++ b/svtools/source/control/indexentryres.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,24 +45,24 @@ class IndexEntryRessourceData
{
friend class IndexEntryRessource;
private: /* data */
- String ma_Name;
- String ma_Translation;
+ String ma_Name;
+ String ma_Translation;
private: /* member functions */
IndexEntryRessourceData () {}
public:
IndexEntryRessourceData ( const String &r_Algorithm, const String &r_Translation)
: ma_Name (r_Algorithm), ma_Translation (r_Translation) {}
- const String& GetAlgorithm () const { return ma_Name; }
+ const String& GetAlgorithm () const { return ma_Name; }
- const String& GetTranslation () const { return ma_Translation; }
+ const String& GetTranslation () const { return ma_Translation; }
~IndexEntryRessourceData () {}
IndexEntryRessourceData& operator= (const IndexEntryRessourceData& r_From)
{
- ma_Name = r_From.GetAlgorithm();
- ma_Translation = r_From.GetTranslation();
+ ma_Name = r_From.GetAlgorithm();
+ ma_Translation = r_From.GetTranslation();
return *this;
}
};
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index 2a3153109eed..42da1eb19bdc 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -97,7 +97,7 @@ public:
SvStringsDtor* pURLs;
SvStringsDtor* pCompletions;
const IUrlFilter* pUrlFilter;
- ::std::vector< WildCard > m_aFilters;
+ ::std::vector< WildCard > m_aFilters;
static sal_Bool TildeParsing( String& aText, String& aBaseUrl );
@@ -115,18 +115,18 @@ class SvtMatchContext_Impl : public ::osl::Thread
{
static ::osl::Mutex* pDirMutex;
- SvStringsDtor aPickList;
+ SvStringsDtor aPickList;
SvStringsDtor* pCompletions;
SvStringsDtor* pURLs;
- svtools::AsynchronLink aLink;
- String aBaseURL;
+ svtools::AsynchronLink aLink;
+ String aBaseURL;
String aText;
- SvtURLBox* pBox;
+ SvtURLBox* pBox;
BOOL bStop;
- BOOL bOnlyDirectories;
- BOOL bNoSelection;
+ BOOL bOnlyDirectories;
+ BOOL bNoSelection;
- DECL_STATIC_LINK( SvtMatchContext_Impl, Select_Impl, void* );
+ DECL_STATIC_LINK( SvtMatchContext_Impl, Select_Impl, void* );
virtual void SAL_CALL onTerminated( );
virtual void SAL_CALL run();
@@ -140,7 +140,7 @@ public:
SvtMatchContext_Impl( SvtURLBox* pBoxP, const String& rText );
~SvtMatchContext_Impl();
- void Stop();
+ void Stop();
};
::osl::Mutex* SvtMatchContext_Impl::pDirMutex = 0;
@@ -417,9 +417,9 @@ void SvtMatchContext_Impl::ReadFolder( const String& rURL,
try
{
uno::Reference< XDynamicResultSet > xDynResultSet;
- ResultSetInclude eInclude = INCLUDE_FOLDERS_AND_DOCUMENTS;
+ ResultSetInclude eInclude = INCLUDE_FOLDERS_AND_DOCUMENTS;
if ( bOnlyDirectories )
- eInclude = INCLUDE_FOLDERS_ONLY;
+ eInclude = INCLUDE_FOLDERS_ONLY;
xDynResultSet = aCnt.createDynamicCursor( aProps, eInclude );
@@ -553,7 +553,7 @@ String SvtURLBox::ParseSmart( String aText, String aBaseURL, String aWorkDir )
// HRO: I suppose this hack should only be done for Windows !!!???
#ifdef WNT
// HRO: INetURLObject::smatRel2Abs does not recognize '\\' as a relative path
- // but in case of "\\\\" INetURLObject is right - this is an absolute path !
+ // but in case of "\\\\" INetURLObject is right - this is an absolute path !
if( aText.Search( '\\' ) == 0 && (aText.Len() < 2 || aText.GetChar( 1 ) != '\\') )
{
diff --git a/svtools/source/control/prgsbar.cxx b/svtools/source/control/prgsbar.cxx
index 500a3a5c4227..77c3b2148bb8 100644
--- a/svtools/source/control/prgsbar.cxx
+++ b/svtools/source/control/prgsbar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,15 +37,15 @@
// =======================================================================
-#define PROGRESSBAR_OFFSET 3
-#define PROGRESSBAR_WIN_OFFSET 2
+#define PROGRESSBAR_OFFSET 3
+#define PROGRESSBAR_WIN_OFFSET 2
// =======================================================================
void ProgressBar::ImplInit()
{
- mnPercent = 0;
- mbCalcNew = TRUE;
+ mnPercent = 0;
+ mbCalcNew = TRUE;
ImplInitSettings( TRUE, TRUE, TRUE );
}
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx
index 55677bb15e67..c26fbdd4d912 100644
--- a/svtools/source/control/roadmap.cxx
+++ b/svtools/source/control/roadmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,7 +67,7 @@ namespace svt
public:
IDLabel( Window* _pParent, WinBits _nWinStyle = 0 );
~IDLabel( );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
};
//=====================================================================
@@ -76,7 +76,7 @@ namespace svt
class ColorChanger
{
protected:
- OutputDevice* m_pDev;
+ OutputDevice* m_pDev;
public:
ColorChanger( OutputDevice* _pDev, const Color& _rNewLineColor, const Color& _rNewFillColor )
@@ -106,33 +106,33 @@ namespace svt
public:
RoadmapItem( ORoadmap& _rParent, const Size& _rItemPlayground );
~RoadmapItem( );
+
+ void SetID( sal_Int16 _ID );
+ sal_Int16 GetID() const;
- void SetID( sal_Int16 _ID );
- sal_Int16 GetID() const;
-
- void SetIndex( ItemIndex _Index );
+ void SetIndex( ItemIndex _Index );
ItemIndex GetIndex() const;
- void SetLabel( const ::rtl::OUString& _rText );
- ::rtl::OUString GetLabel( );
+ void SetLabel( const ::rtl::OUString& _rText );
+ ::rtl::OUString GetLabel( );
- void Update( ItemIndex _RMIndex, const ::rtl::OUString& _rText );
+ void Update( ItemIndex _RMIndex, const ::rtl::OUString& _rText );
+
+ void SetPosition( RoadmapItem* OldHyperLabel );
- void SetPosition( RoadmapItem* OldHyperLabel );
+ void ToggleBackgroundColor( const Color& _rGBColor );
+ void SetInteractive( sal_Bool _bInteractive );
- void ToggleBackgroundColor( const Color& _rGBColor );
- void SetInteractive( sal_Bool _bInteractive );
-
- void SetClickHdl( const Link& rLink );
- const Link& GetClickHdl() const;
- void SetZOrder( RoadmapItem* pRefRoadmapHyperLabel, USHORT nFlags );
- void Enable( BOOL bEnable = TRUE);
- BOOL IsEnabled() const;
- void GrabFocus();
+ void SetClickHdl( const Link& rLink );
+ const Link& GetClickHdl() const;
+ void SetZOrder( RoadmapItem* pRefRoadmapHyperLabel, USHORT nFlags );
+ void Enable( BOOL bEnable = TRUE);
+ BOOL IsEnabled() const;
+ void GrabFocus();
bool Contains( const Window* _pWindow ) const;
-
- HyperLabel* GetDescriptionHyperLabel() const { return mpDescription; }
+
+ HyperLabel* GetDescriptionHyperLabel() const { return mpDescription; }
private:
void ImplUpdateIndex( const ItemIndex _nIndex );
@@ -147,7 +147,7 @@ namespace svt
protected:
const ORoadmap& m_rAntiImpl;
Link m_aSelectHdl;
- BitmapEx m_aPicture;
+ BitmapEx m_aPicture;
HL_Vector m_aRoadmapSteps;
ItemId m_iCurItemID;
sal_Bool m_bInteractive;
@@ -165,10 +165,10 @@ namespace svt
RoadmapItem* InCompleteHyperLabel;
- void addHyperLabel( RoadmapItem* _rRoadmapStep ) { m_aRoadmapSteps.push_back(_rRoadmapStep); }
+ void addHyperLabel( RoadmapItem* _rRoadmapStep ) { m_aRoadmapSteps.push_back(_rRoadmapStep); }
- HL_Vector& getHyperLabels() { return m_aRoadmapSteps; }
- const HL_Vector& getHyperLabels() const { return m_aRoadmapSteps; }
+ HL_Vector& getHyperLabels() { return m_aRoadmapSteps; }
+ const HL_Vector& getHyperLabels() const { return m_aRoadmapSteps; }
void insertHyperLabel( ItemIndex _Index, RoadmapItem* _rRoadmapStep ) { m_aRoadmapSteps.insert( m_aRoadmapSteps.begin() + _Index, _rRoadmapStep ); }
@@ -183,11 +183,11 @@ namespace svt
void setComplete(const sal_Bool _bComplete) {m_bComplete = _bComplete; }
sal_Bool isComplete() const { return m_bComplete; };
- void setPicture( const BitmapEx& _rPic ) { m_aPicture = _rPic; }
- const BitmapEx& getPicture( ) const { return m_aPicture; }
+ void setPicture( const BitmapEx& _rPic ) { m_aPicture = _rPic; }
+ const BitmapEx& getPicture( ) const { return m_aPicture; }
- void setSelectHdl( const Link& _rHdl ) { m_aSelectHdl = _rHdl; }
- const Link& getSelectHdl( ) const { return m_aSelectHdl; }
+ void setSelectHdl( const Link& _rHdl ) { m_aSelectHdl = _rHdl; }
+ const Link& getSelectHdl( ) const { return m_aSelectHdl; }
void initItemSize();
const Size& getItemSize() const { return m_aItemSizePixel; }
@@ -763,9 +763,9 @@ namespace svt
//---------------------------------------------------------------------
void ORoadmap::DataChanged( const DataChangedEvent& rDCEvt )
{
- if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
- ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
- ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
+ if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
+ ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
+ ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
SetBackground( Wallpaper( rStyleSettings.GetFieldColor() ) );
@@ -999,9 +999,9 @@ namespace svt
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
FixedText::DataChanged( rDCEvt );
- if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
- ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
- ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
+ if ((( rDCEvt.GetType() == DATACHANGED_SETTINGS ) ||
+ ( rDCEvt.GetType() == DATACHANGED_DISPLAY )) &&
+ ( rDCEvt.GetFlags() & SETTINGS_STYLE ))
{
const Color& rGBColor = GetControlBackground();
if (rGBColor == COL_TRANSPARENT)
@@ -1019,7 +1019,7 @@ namespace svt
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 43cdf1132c43..2395050eeff8 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,7 +82,7 @@
#define RULER_UNIT_MILE 6
#define RULER_UNIT_POINT 7
#define RULER_UNIT_PICA 8
-#define RULER_UNIT_CHAR 9
+#define RULER_UNIT_CHAR 9
#define RULER_UNIT_LINE 10
#define RULER_UNIT_COUNT 11
@@ -149,7 +149,7 @@ static ImplRulerUnitData aImplRulerUnitTab[RULER_UNIT_COUNT] =
{ MAP_10TH_INCH, 633600, 63360, 316800, 633600, 1609344, 4, " miles" }, // MILE
{ MAP_POINT, 1, 12, 12, 36, 353, 2, " pt" }, // POINT
{ MAP_100TH_MM, 423, 423, 423, 846, 423, 3, " pi" }, // PICA
-{ MAP_100TH_MM, 371, 371, 371, 743, 371, 3, " ch" }, // CHAR
+{ MAP_100TH_MM, 371, 371, 371, 743, 371, 3, " ch" }, // CHAR
{ MAP_100TH_MM, 551, 551, 551, 1102, 551, 3, " li" } // LINE
};
@@ -1301,7 +1301,7 @@ void Ruler::ImplFormat()
Size aVirDevSize;
BOOL b3DLook = !(rStyleSettings.GetOptions() & STYLE_OPTION_MONO);
- // initialize VirtualDevice
+ // initialize VirtualDevice
if ( mnWinStyle & WB_HORZ )
{
aVirDevSize.Width() = mnVirWidth;
@@ -1513,16 +1513,16 @@ void Ruler::ImplDraw()
if(mpData->bTextRTL)
aVirDevSize.Width() -= maExtraRect.GetWidth();
-// else
-// aVirDevSize.Width() -= mnVirOff;
+// else
+// aVirDevSize.Width() -= mnVirOff;
aOffPos.Y() = RULER_OFF;
}
else
{
aOffPos.X() = RULER_OFF;
aOffPos.Y() = mnVirOff;
-// else
-// aVirDevSize.Height() -= mnVirOff;
+// else
+// aVirDevSize.Height() -= mnVirOff;
}
DrawOutDev( aOffPos, aVirDevSize, Point(), aVirDevSize, maVirDev );
diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx
index adc92f75e719..ff07effa4c1e 100644
--- a/svtools/source/control/scriptedtext.cxx
+++ b/svtools/source/control/scriptedtext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/scrwin.cxx b/svtools/source/control/scrwin.cxx
index 4c748b17ce3e..17230995a57a 100644
--- a/svtools/source/control/scrwin.cxx
+++ b/svtools/source/control/scrwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -192,21 +192,21 @@ void __EXPORT ScrollableWindow::Resize()
const long nScrSize = GetSettings().GetStyleSettings().GetScrollBarSize();
BOOL bVVisible = FALSE; // by default no vertical-ScrollBar
BOOL bHVisible = FALSE; // by default no horizontal-ScrollBar
- BOOL bChanged; // determines if a visiblility was changed
+ BOOL bChanged; // determines if a visiblility was changed
do
{
bChanged = FALSE;
// does we need a vertical ScrollBar
if ( aOutPixSz.Width() < aTotPixSz.Width() && !bHVisible )
- { bHVisible = TRUE;
+ { bHVisible = TRUE;
aOutPixSz.Height() -= nScrSize;
bChanged = TRUE;
}
// does we need a horizontal ScrollBar
if ( aOutPixSz.Height() < aTotPixSz.Height() && !bVVisible )
- { bVVisible = TRUE;
+ { bVVisible = TRUE;
aOutPixSz.Width() -= nScrSize;
bChanged = TRUE;
}
@@ -350,7 +350,7 @@ void ScrollableWindow::SetVisibleSize( const Size& rNewSize )
// get maximum rectangle for us from our parent-window (subst our border!)
Rectangle aMax( Point(0, 0), GetParent()->GetOutputSizePixel() );
- aMax.Left() -= ( Window::GetSizePixel().Width() -
+ aMax.Left() -= ( Window::GetSizePixel().Width() -
Window::GetOutputSizePixel().Width() );
aMax.Bottom() -= (Window::GetSizePixel().Height() -
Window::GetOutputSizePixel().Height());
@@ -359,7 +359,7 @@ void ScrollableWindow::SetVisibleSize( const Size& rNewSize )
BOOL bHScroll = FALSE;
const long nScrSize = GetSettings().GetStyleSettings().GetScrollBarSize();
if ( aWill.Width() < aWish.GetSize().Width() )
- { bHScroll = TRUE;
+ { bHScroll = TRUE;
aWill.Height() =
Min( aWill.Height()+nScrSize, aMax.GetSize().Height() );
}
diff --git a/svtools/source/control/stdctrl.cxx b/svtools/source/control/stdctrl.cxx
index 55aa20209699..e9040491b682 100644
--- a/svtools/source/control/stdctrl.cxx
+++ b/svtools/source/control/stdctrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/stdmenu.cxx b/svtools/source/control/stdmenu.cxx
index 13a9cdacfc5e..c144698337df 100644
--- a/svtools/source/control/stdmenu.cxx
+++ b/svtools/source/control/stdmenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -202,25 +202,25 @@ void FontStyleMenu::Fill( const XubString& rName, const FontList* pList )
sal_Handle hFontInfo = pList->GetFirstFontInfo( rName );
if ( hFontInfo )
{
- XubString aStyleText;
- USHORT nPos = 0;
- USHORT nId = FONTSTYLEMENU_FIRSTID;
- FontWeight eLastWeight = WEIGHT_DONTKNOW;
- FontItalic eLastItalic = ITALIC_NONE;
- FontWidth eLastWidth = WIDTH_DONTKNOW;
- BOOL bNormal = FALSE;
- BOOL bItalic = FALSE;
- BOOL bBold = FALSE;
- BOOL bBoldItalic = FALSE;
- BOOL bInsert = FALSE;
- FontInfo aInfo;
+ XubString aStyleText;
+ USHORT nPos = 0;
+ USHORT nId = FONTSTYLEMENU_FIRSTID;
+ FontWeight eLastWeight = WEIGHT_DONTKNOW;
+ FontItalic eLastItalic = ITALIC_NONE;
+ FontWidth eLastWidth = WIDTH_DONTKNOW;
+ BOOL bNormal = FALSE;
+ BOOL bItalic = FALSE;
+ BOOL bBold = FALSE;
+ BOOL bBoldItalic = FALSE;
+ BOOL bInsert = FALSE;
+ FontInfo aInfo;
while ( hFontInfo )
{
aInfo = pList->GetFontInfo( hFontInfo );
- FontWeight eWeight = aInfo.GetWeight();
- FontItalic eItalic = aInfo.GetItalic();
- FontWidth eWidth = aInfo.GetWidthType();
+ FontWeight eWeight = aInfo.GetWeight();
+ FontItalic eItalic = aInfo.GetItalic();
+ FontWidth eWidth = aInfo.GetWidthType();
// Only if the attributes are different, we insert the
// Font to avoid double Entries in different languages
if ( (eWeight != eLastWeight) || (eItalic != eLastItalic) ||
@@ -329,7 +329,7 @@ void FontStyleMenu::Fill( const XubString& rName, const FontList* pList )
else
{
// Wenn Font nicht, dann Standard-Styles einfuegen
- InsertItem( FONTSTYLEMENU_FIRSTID, pList->GetNormalStr(),
+ InsertItem( FONTSTYLEMENU_FIRSTID, pList->GetNormalStr(),
MIB_RADIOCHECK | MIB_AUTOCHECK, 0 );
InsertItem( FONTSTYLEMENU_FIRSTID+1, pList->GetItalicStr(),
MIB_RADIOCHECK | MIB_AUTOCHECK, 0 );
@@ -446,8 +446,8 @@ void FontSizeMenu::Fill( const FontInfo& rInfo, const FontList* pList )
ULONG nCount = aFontSizeNames.Count();
for( ULONG i = 0; i < nCount; i++ )
{
- String aSizeName = aFontSizeNames.GetIndexName( i );
- long nSize = aFontSizeNames.GetIndexSize( i );
+ String aSizeName = aFontSizeNames.GetIndexName( i );
+ long nSize = aFontSizeNames.GetIndexSize( i );
mpHeightAry[nPos] = nSize;
nPos++; // Id is nPos+1
InsertItem( nPos, aSizeName, MIB_RADIOCHECK | MIB_AUTOCHECK );
@@ -492,9 +492,9 @@ void FontSizeMenu::SetCurHeight( long nHeight )
mnCurHeight = nHeight;
// check menue item
- XubString aHeight = Application::GetSettings().GetUILocaleI18nHelper().GetNum( nHeight, 1, TRUE, FALSE );
- USHORT nChecked = 0;
- USHORT nItemCount = GetItemCount();
+ XubString aHeight = Application::GetSettings().GetUILocaleI18nHelper().GetNum( nHeight, 1, TRUE, FALSE );
+ USHORT nChecked = 0;
+ USHORT nItemCount = GetItemCount();
for( USHORT i = 0; i < nItemCount; i++ )
{
USHORT nItemId = GetItemId( i );
diff --git a/svtools/source/control/svxbox.cxx b/svtools/source/control/svxbox.cxx
index 5dbf505d4946..0ffb10517abe 100644
--- a/svtools/source/control/svxbox.cxx
+++ b/svtools/source/control/svxbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,7 +89,7 @@ SvxListBox::SvxListBox(Window* pParent, const ResId& rId):
__EXPORT SvxListBox::~SvxListBox()
{
- aEntryLst.DeleteAndDestroy(0, aEntryLst.Count());
+ aEntryLst.DeleteAndDestroy(0, aEntryLst.Count());
aDelEntryLst.DeleteAndDestroy(0, aDelEntryLst.Count());
}
@@ -102,7 +102,7 @@ void SvxListBox::InitListBox()
// Verwaltung fuer die Stringlist aus der Resource aufbauen
USHORT nSize = GetEntryCount();
for(USHORT i=0; i < nSize; ++i)
- { const SvxBoxEntry* pTmp = new SvxBoxEntry(ListBox::GetEntry(i), i);
+ { const SvxBoxEntry* pTmp = new SvxBoxEntry(ListBox::GetEntry(i), i);
const SvxBoxEntry* &rpTmp = pTmp;
aEntryLst.Insert(rpTmp, aEntryLst.Count());
}
@@ -228,7 +228,7 @@ USHORT SvxListBox::GetModifiedCount() const
USHORT nMod = 0;
USHORT nSize = aEntryLst.Count();
for(USHORT i=0; i < nSize; ++i)
- { if(aEntryLst[i]->bModified)
+ { if(aEntryLst[i]->bModified)
nMod++;
}
return nMod;
@@ -245,8 +245,8 @@ void SvxListBox::ModifyEntry(USHORT nPos, const String& rName)
SvxBoxEntry* pEntry = aEntryLst[nPos];
aEntryLst.Remove(nPos, 1);
- aEntryLst[nPos]->aName = rName;
- aEntryLst[nPos]->bModified = TRUE;
+ aEntryLst[nPos]->aName = rName;
+ aEntryLst[nPos]->bModified = TRUE;
ListBox::RemoveEntry(nPos);
InsertSorted(pEntry);
@@ -261,8 +261,8 @@ const SvxBoxEntry& SvxListBox::GetModifiedEntry(USHORT nPos) const
USHORT nSize = aEntryLst.Count();
USHORT nMod = 0;
for(USHORT i=0; i < nSize; ++i)
- { if(aEntryLst[i]->bModified)
- { if(nMod == nPos)
+ { if(aEntryLst[i]->bModified)
+ { if(nMod == nPos)
return *aEntryLst[i];
nMod++;
}
@@ -297,14 +297,14 @@ USHORT SvxListBox::GetNewCount() const
USHORT nNew = 0;
USHORT nSize = aEntryLst.Count();
for(USHORT i=0; i < nSize; ++i)
- { if(aEntryLst[i]->bNew)
+ { if(aEntryLst[i]->bNew)
nNew++;
}
return nNew;
}
/*--------------------------------------------------------------------
- Beschreibung: Alle neuen Eintraege ueberpruefen
+ Beschreibung: Alle neuen Eintraege ueberpruefen
--------------------------------------------------------------------*/
const SvxBoxEntry& SvxListBox::GetNewEntry(USHORT nPos) const
@@ -312,8 +312,8 @@ const SvxBoxEntry& SvxListBox::GetNewEntry(USHORT nPos) const
USHORT nSize = aEntryLst.Count();
USHORT nNew = 0;
for(USHORT i=0; i < nSize; ++i)
- { if(aEntryLst[i]->bNew)
- { if(nNew == nPos)
+ { if(aEntryLst[i]->bNew)
+ { if(nNew == nPos)
return *aEntryLst[i];
nNew++;
}
@@ -357,7 +357,7 @@ SvxComboBox::SvxComboBox(Window* pParent, const ResId& rId, USHORT nStyleBits ):
__EXPORT SvxComboBox::~SvxComboBox()
{
- aEntryLst.DeleteAndDestroy(0, aEntryLst.Count());
+ aEntryLst.DeleteAndDestroy(0, aEntryLst.Count());
aDelEntryLst.DeleteAndDestroy(0, aDelEntryLst.Count());
}
@@ -370,7 +370,7 @@ void SvxComboBox::InitComboBox()
// Verwaltung fuer die Stringlist aus der Resource aufbauen
USHORT nSize = GetEntryCount();
for(USHORT i=0; i < nSize; ++i)
- { const SvxBoxEntry* pTmp = new SvxBoxEntry(ComboBox::GetEntry(i), i);
+ { const SvxBoxEntry* pTmp = new SvxBoxEntry(ComboBox::GetEntry(i), i);
const SvxBoxEntry* &rpTmp = pTmp;
aEntryLst.Insert(rpTmp, aEntryLst.Count());
}
@@ -470,7 +470,7 @@ USHORT SvxComboBox::GetModifiedCount() const
USHORT nMod = 0;
USHORT nSize = aEntryLst.Count();
for(USHORT i=0; i < nSize; ++i)
- { if(aEntryLst[i]->bModified)
+ { if(aEntryLst[i]->bModified)
nMod++;
}
return nMod;
@@ -487,8 +487,8 @@ void SvxComboBox::ModifyEntry(USHORT nPos, const String& rName)
SvxBoxEntry* pEntry = aEntryLst[nPos];
aEntryLst.Remove(nPos, 1);
- aEntryLst[nPos]->aName = rName;
- aEntryLst[nPos]->bModified = TRUE;
+ aEntryLst[nPos]->aName = rName;
+ aEntryLst[nPos]->bModified = TRUE;
ComboBox::RemoveEntry(nPos);
InsertSorted(pEntry);
@@ -503,8 +503,8 @@ const SvxBoxEntry& SvxComboBox::GetModifiedEntry(USHORT nPos) const
USHORT nSize = aEntryLst.Count();
USHORT nMod = 0;
for(USHORT i=0; i < nSize; ++i)
- { if(aEntryLst[i]->bModified)
- { if(nMod == nPos)
+ { if(aEntryLst[i]->bModified)
+ { if(nMod == nPos)
return *aEntryLst[i];
nMod++;
}
@@ -539,14 +539,14 @@ USHORT SvxComboBox::GetNewCount() const
USHORT nNew = 0;
USHORT nSize = aEntryLst.Count();
for(USHORT i=0; i < nSize; ++i)
- { if(aEntryLst[i]->bNew)
+ { if(aEntryLst[i]->bNew)
nNew++;
}
return nNew;
}
/*--------------------------------------------------------------------
- Beschreibung: Alle neuen Eintraege ueberpruefen
+ Beschreibung: Alle neuen Eintraege ueberpruefen
--------------------------------------------------------------------*/
const SvxBoxEntry& SvxComboBox::GetNewEntry(USHORT nPos) const
@@ -554,8 +554,8 @@ const SvxBoxEntry& SvxComboBox::GetNewEntry(USHORT nPos) const
USHORT nSize = aEntryLst.Count();
USHORT nNew = 0;
for(USHORT i=0; i < nSize; ++i)
- { if(aEntryLst[i]->bNew)
- { if(nNew == nPos)
+ { if(aEntryLst[i]->bNew)
+ { if(nNew == nPos)
return *aEntryLst[i];
nNew++;
}
@@ -589,7 +589,7 @@ void __EXPORT SvxComboBox::KeyInput( const KeyEvent& rKEvt )
if( cChar == sal_Unicode( '/' ) || cChar == sal_Unicode( ' ' ) )
return;
#else
- if( cChar == sal_Unicode( ':' ) || cChar == sal_Unicode( '\\' ) ||
+ if( cChar == sal_Unicode( ':' ) || cChar == sal_Unicode( '\\' ) ||
cChar == sal_Unicode( '.' ) || cChar == sal_Unicode( ' ' ) )
return;
#endif
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 0dae1ae3eb20..7b951212ea4d 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/taskbar.cxx b/svtools/source/control/taskbar.cxx
index 185989c5b68f..6995ce4659eb 100644
--- a/svtools/source/control/taskbar.cxx
+++ b/svtools/source/control/taskbar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@
class ImplTaskBarFloat : public FloatingWindow
{
public:
- TaskBar* mpTaskBar;
+ TaskBar* mpTaskBar;
public:
ImplTaskBarFloat( TaskBar* pTaskBar );
@@ -54,33 +54,33 @@ public:
ImplTaskBarFloat::ImplTaskBarFloat( TaskBar* pTaskBar ) :
FloatingWindow( pTaskBar, 0 )
{
- mpTaskBar = pTaskBar;
+ mpTaskBar = pTaskBar;
}
// =======================================================================
-#define TASKBAR_BORDER 2
-#define TASKBAR_OFFSIZE 3
-#define TASKBAR_OFFX 2
-#define TASKBAR_OFFY 1
-#define TASKBAR_BUTTONOFF 5
-#define TASKBAR_AUTOHIDE_HEIGHT 2
+#define TASKBAR_BORDER 2
+#define TASKBAR_OFFSIZE 3
+#define TASKBAR_OFFX 2
+#define TASKBAR_OFFY 1
+#define TASKBAR_BUTTONOFF 5
+#define TASKBAR_AUTOHIDE_HEIGHT 2
// =======================================================================
TaskBar::TaskBar( Window* pParent, WinBits nWinStyle ) :
Window( pParent, WB_3DLOOK )
{
- mpButtonBar = NULL;
- mpTaskToolBox = NULL;
- mpStatusBar = NULL;
- mnStatusWidth = 0;
- mnOldStatusWidth = 0;
- mnLines = 1;
- mnWinBits = nWinStyle;
- mbStatusText = FALSE;
- mbShowItems = FALSE;
- mbAutoHide = FALSE;
+ mpButtonBar = NULL;
+ mpTaskToolBox = NULL;
+ mpStatusBar = NULL;
+ mnStatusWidth = 0;
+ mnOldStatusWidth = 0;
+ mnLines = 1;
+ mnWinBits = nWinStyle;
+ mbStatusText = FALSE;
+ mbShowItems = FALSE;
+ mbAutoHide = FALSE;
ImplInitSettings();
}
@@ -161,14 +161,14 @@ void TaskBar::MouseMove( const MouseEvent& rMEvt )
{
if ( mnWinBits & WB_SIZEABLE )
{
- TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
- TaskStatusBar* pTempStatusBar = GetStatusBar();
+ TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
+ TaskStatusBar* pTempStatusBar = GetStatusBar();
if ( pTempTaskToolBox && pTempStatusBar )
{
- long nStatusX = pTempStatusBar->GetPosPixel().X()-TASKBAR_OFFSIZE-2;
- long nMouseX = rMEvt.GetPosPixel().X();
- PointerStyle ePtrStyle;
+ long nStatusX = pTempStatusBar->GetPosPixel().X()-TASKBAR_OFFSIZE-2;
+ long nMouseX = rMEvt.GetPosPixel().X();
+ PointerStyle ePtrStyle;
if ( (nMouseX >= nStatusX-1) && (nMouseX <= nStatusX+3) )
ePtrStyle = POINTER_HSIZEBAR;
else
@@ -185,13 +185,13 @@ void TaskBar::MouseButtonDown( const MouseEvent& rMEvt )
{
if ( rMEvt.IsLeft() && (mnWinBits & WB_SIZEABLE) )
{
- TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
- TaskStatusBar* pTempStatusBar = GetStatusBar();
+ TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
+ TaskStatusBar* pTempStatusBar = GetStatusBar();
if ( pTempTaskToolBox && pTempStatusBar )
{
- long nStatusX = pTempStatusBar->GetPosPixel().X()-TASKBAR_OFFSIZE-2;
- long nMouseX = rMEvt.GetPosPixel().X();
+ long nStatusX = pTempStatusBar->GetPosPixel().X()-TASKBAR_OFFSIZE-2;
+ long nMouseX = rMEvt.GetPosPixel().X();
if ( (nMouseX >= nStatusX-1) && (nMouseX <= nStatusX+3) )
{
if ( rMEvt.GetClicks() == 2 )
@@ -248,9 +248,9 @@ void TaskBar::Paint( const Rectangle& rRect )
{
if ( mnWinBits & (WB_BORDER | WB_SIZEABLE) )
{
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- Size aSize = GetOutputSizePixel();
- long nY = 0;
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ Size aSize = GetOutputSizePixel();
+ long nY = 0;
if ( mnWinBits & WB_BORDER )
{
@@ -263,9 +263,9 @@ void TaskBar::Paint( const Rectangle& rRect )
if ( (mnWinBits & WB_SIZEABLE) )
{
- //TaskButtonBar* pTempButtonBar = GetButtonBar();
- TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
- TaskStatusBar* pTempStatusBar = GetStatusBar();
+ //TaskButtonBar* pTempButtonBar = GetButtonBar();
+ TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
+ TaskStatusBar* pTempStatusBar = GetStatusBar();
if ( pTempTaskToolBox && pTempStatusBar )
{
@@ -292,16 +292,16 @@ void TaskBar::Resize()
if ( !IsReallyShown() )
return;
- TaskButtonBar* pTempButtonBar = GetButtonBar();
- TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
- TaskStatusBar* pTempStatusBar = GetStatusBar();
- Point aToolPos( TASKBAR_OFFX, 0 );
- Size aSize = GetOutputSizePixel();
- Size aStatusSize;
- Size aToolSize( aSize.Width()-(TASKBAR_OFFX*2), 0 );
- long nOldStatusX = -1;
- long nNewStatusX = -1;
- long nTaskHeight = aSize.Height() - (TASKBAR_OFFY*2);
+ TaskButtonBar* pTempButtonBar = GetButtonBar();
+ TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
+ TaskStatusBar* pTempStatusBar = GetStatusBar();
+ Point aToolPos( TASKBAR_OFFX, 0 );
+ Size aSize = GetOutputSizePixel();
+ Size aStatusSize;
+ Size aToolSize( aSize.Width()-(TASKBAR_OFFX*2), 0 );
+ long nOldStatusX = -1;
+ long nNewStatusX = -1;
+ long nTaskHeight = aSize.Height() - (TASKBAR_OFFY*2);
if ( mnWinBits & WB_BORDER )
{
@@ -311,8 +311,8 @@ void TaskBar::Resize()
if ( pTempButtonBar )
{
- USHORT i = 0;
- BOOL bVisibleItems = FALSE;
+ USHORT i = 0;
+ BOOL bVisibleItems = FALSE;
while ( i < pTempButtonBar->GetItemCount() )
{
if ( pTempButtonBar->IsItemVisible( pTempButtonBar->GetItemId( i ) ) )
@@ -532,11 +532,11 @@ void TaskBar::HideStatusText()
Size TaskBar::CalcWindowSizePixel() const
{
- TaskButtonBar* pTempButtonBar = GetButtonBar();
- TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
- TaskStatusBar* pTempStatusBar = GetStatusBar();
- Size aSize;
- long nTempHeight;
+ TaskButtonBar* pTempButtonBar = GetButtonBar();
+ TaskToolBox* pTempTaskToolBox = GetTaskToolBox();
+ TaskStatusBar* pTempStatusBar = GetStatusBar();
+ Size aSize;
+ long nTempHeight;
if ( pTempButtonBar && pTempButtonBar->GetItemCount() )
aSize.Height() = pTempButtonBar->CalcWindowSizePixel().Height()+(TASKBAR_OFFY*2);
diff --git a/svtools/source/control/taskbox.cxx b/svtools/source/control/taskbox.cxx
index 33c8002e0b46..8fa7434f646f 100644
--- a/svtools/source/control/taskbox.cxx
+++ b/svtools/source/control/taskbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/taskmisc.cxx b/svtools/source/control/taskmisc.cxx
index 1e4634a2a1fe..f293ffea556e 100644
--- a/svtools/source/control/taskmisc.cxx
+++ b/svtools/source/control/taskmisc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,30 +112,30 @@ void WindowArrange::ImplTile( const Rectangle& rRect )
return;
}
- USHORT i;
- USHORT j;
- USHORT nCols;
- USHORT nRows;
- USHORT nActRows;
- USHORT nOffset;
- long nOverWidth;
- long nOverHeight;
- Window* pWindow;
- long nX = rRect.Left();
- long nY = rRect.Top();
- long nWidth = rRect.GetWidth();
- long nHeight = rRect.GetHeight();
- long nRectY = nY;
- long nRectWidth = nWidth;
- long nRectHeight = nHeight;
- long nTempWidth;
- long nTempHeight;
-
- nCols = ImplCeilSqareRoot( nCount );
+ USHORT i;
+ USHORT j;
+ USHORT nCols;
+ USHORT nRows;
+ USHORT nActRows;
+ USHORT nOffset;
+ long nOverWidth;
+ long nOverHeight;
+ Window* pWindow;
+ long nX = rRect.Left();
+ long nY = rRect.Top();
+ long nWidth = rRect.GetWidth();
+ long nHeight = rRect.GetHeight();
+ long nRectY = nY;
+ long nRectWidth = nWidth;
+ long nRectHeight = nHeight;
+ long nTempWidth;
+ long nTempHeight;
+
+ nCols = ImplCeilSqareRoot( nCount );
nOffset = (nCols*nCols) - nCount;
if ( nOffset >= nCols )
{
- nRows = nCols -1;
+ nRows = nCols -1;
nOffset = nOffset - nCols;
}
else
@@ -194,15 +194,15 @@ void WindowArrange::ImplTile( const Rectangle& rRect )
void WindowArrange::ImplHorz( const Rectangle& rRect )
{
- long nCount = (long)mpWinList->Count();
- long nX = rRect.Left();
- long nY = rRect.Top();
- long nWidth = rRect.GetWidth();
- long nHeight = rRect.GetHeight();
- long nRectHeight = nHeight;
- long nOver;
- long nTempHeight;
- Window* pWindow;
+ long nCount = (long)mpWinList->Count();
+ long nX = rRect.Left();
+ long nY = rRect.Top();
+ long nWidth = rRect.GetWidth();
+ long nHeight = rRect.GetHeight();
+ long nRectHeight = nHeight;
+ long nOver;
+ long nTempHeight;
+ Window* pWindow;
nHeight /= nCount;
if ( nHeight < 1 )
@@ -228,15 +228,15 @@ void WindowArrange::ImplHorz( const Rectangle& rRect )
void WindowArrange::ImplVert( const Rectangle& rRect )
{
- long nCount = (long)mpWinList->Count();
- long nX = rRect.Left();
- long nY = rRect.Top();
- long nWidth = rRect.GetWidth();
- long nHeight = rRect.GetHeight();
- long nRectWidth = nWidth;
- long nOver;
- long nTempWidth;
- Window* pWindow;
+ long nCount = (long)mpWinList->Count();
+ long nX = rRect.Left();
+ long nY = rRect.Top();
+ long nWidth = rRect.GetWidth();
+ long nHeight = rRect.GetHeight();
+ long nRectWidth = nWidth;
+ long nOver;
+ long nTempWidth;
+ Window* pWindow;
nWidth /= nCount;
if ( nWidth < 1 )
@@ -262,29 +262,29 @@ void WindowArrange::ImplVert( const Rectangle& rRect )
void WindowArrange::ImplCascade( const Rectangle& rRect )
{
- long nX = rRect.Left();
- long nY = rRect.Top();
- long nWidth = rRect.GetWidth();
- long nHeight = rRect.GetHeight();
- long nRectWidth = nWidth;
- long nRectHeight = nHeight;
- long nOff;
- long nCascadeWins;
- sal_Int32 nLeftBorder;
- sal_Int32 nTopBorder;
- sal_Int32 nRightBorder;
- sal_Int32 nBottomBorder;
- long nStartOverWidth;
- long nStartOverHeight;
- long nOverWidth = 0;
- long nOverHeight = 0;
- long nTempX;
- long nTempY;
- long nTempWidth;
- long nTempHeight;
- long i;
- Window* pWindow;
- Window* pTempWindow;
+ long nX = rRect.Left();
+ long nY = rRect.Top();
+ long nWidth = rRect.GetWidth();
+ long nHeight = rRect.GetHeight();
+ long nRectWidth = nWidth;
+ long nRectHeight = nHeight;
+ long nOff;
+ long nCascadeWins;
+ sal_Int32 nLeftBorder;
+ sal_Int32 nTopBorder;
+ sal_Int32 nRightBorder;
+ sal_Int32 nBottomBorder;
+ long nStartOverWidth;
+ long nStartOverHeight;
+ long nOverWidth = 0;
+ long nOverHeight = 0;
+ long nTempX;
+ long nTempY;
+ long nTempWidth;
+ long nTempHeight;
+ long i;
+ Window* pWindow;
+ Window* pTempWindow;
// Border-Fenster suchen um den Versatz zu ermitteln
pTempWindow = (Window*)mpWinList->First();
@@ -304,7 +304,7 @@ void WindowArrange::ImplCascade( const Rectangle& rRect )
nCascadeWins = nRectHeight / 3 / nOff;
if ( !nCascadeWins )
nCascadeWins = 1;
- nWidth -= nCascadeWins*nOff;
+ nWidth -= nCascadeWins*nOff;
nHeight -= nCascadeWins*nOff;
if ( nWidth < 1 )
nWidth = 1;
diff --git a/svtools/source/control/taskstat.cxx b/svtools/source/control/taskstat.cxx
index 60e52ae1c4db..acba171d8ce7 100644
--- a/svtools/source/control/taskstat.cxx
+++ b/svtools/source/control/taskstat.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/control/toolbarmenu.cxx b/svtools/source/control/toolbarmenu.cxx
index 9fdb1362f70b..e86644ab5c6c 100644
--- a/svtools/source/control/toolbarmenu.cxx
+++ b/svtools/source/control/toolbarmenu.cxx
@@ -98,7 +98,7 @@ ToolbarMenuEntry::ToolbarMenuEntry( ToolbarMenu& rMenu, int nEntryId, const Stri
: mrMenu( rMenu )
{
init( nEntryId, nBits );
-
+
maText = rText;
mbHasText = true;
}
@@ -288,7 +288,7 @@ sal_Int32 ToolbarMenu_Impl::getAccessibleChildCount() throw (RuntimeException)
}
// --------------------------------------------------------------------
-
+
Reference< XAccessible > ToolbarMenu_Impl::getAccessibleChild( sal_Int32 index ) throw (IndexOutOfBoundsException, RuntimeException)
{
const int nEntryCount = maEntryVector.size();
@@ -310,7 +310,7 @@ Reference< XAccessible > ToolbarMenu_Impl::getAccessibleChild( sal_Int32 index )
}
// --------------------------------------------------------------------
-
+
Reference< XAccessible > ToolbarMenu_Impl::getAccessibleChild( Control* pControl, sal_Int32 childIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
const int nEntryCount = maEntryVector.size();
@@ -736,7 +736,7 @@ Size ToolbarMenu::implCalcSize()
if ( aMaxImgSz.Width() )
mpImpl->mnTextPos += std::max( nExtra, 7L );
- if ( bCheckable )
+ if ( bCheckable )
mpImpl->mnTextPos += 16;
// set heights, calc maximum width
@@ -793,7 +793,7 @@ Size ToolbarMenu::implCalcSize()
}
}
}
-
+
aSz.Width() = nMaxTextWidth + (BORDER_X<<1);
// positionate controls
@@ -948,7 +948,7 @@ void ToolbarMenu::implHighlightEntry( int nHighlightEntry, bool bHighlight )
{
Size aSz( GetOutputSizePixel() );
long nX = 0, nY = 0;
-
+
const int nEntryCount = mpImpl->maEntryVector.size();
int nEntry;
for( nEntry = 0; nEntry < nEntryCount; nEntry++ )
@@ -980,7 +980,7 @@ void ToolbarMenu::implHighlightEntry( int nHighlightEntry, bool bHighlight )
long nFontHeight = GetTextHeight();
aItemRect.Right() -= nFontHeight + nFontHeight/4;
}
-
+
if( IsNativeControlSupported( CTRL_MENU_POPUP, PART_ENTIRE_CONTROL ) )
{
Size aPxSize( GetOutputSizePixel() );
@@ -1086,7 +1086,7 @@ void ToolbarMenu::implHighlightEntry( const MouseEvent& rMEvt, bool bMBDown )
if ( ( nMouseY >= 0 ) && ( nMouseY < aOutSz.Height() ) )
{
bool bHighlighted = FALSE;
-
+
const int nEntryCount = mpImpl->maEntryVector.size();
int nEntry;
for( nEntry = 0; nEntry < nEntryCount; nEntry++ )
@@ -1167,7 +1167,7 @@ static bool implCheckSubControlCursorMove( Control* pControl, bool bUp, int& nLa
const USHORT nLine = nItemPos / nColCount;
nLastColumn = nItemPos - (nLine * nColCount);
-
+
if( bUp )
{
return nLine > 0;
@@ -1198,7 +1198,7 @@ ToolbarMenuEntry* ToolbarMenu::implCursorUpDown( bool bUp, bool bHomeEnd )
else
n = mpImpl->maEntryVector.size()-1;
}
- else
+ else
{
// if we have a currently selected entry and
// cursor keys are used than check if this entry
@@ -1381,10 +1381,10 @@ static void ImplPaintCheckBackground( Window* i_pWindow, const Rectangle& i_rRec
{
ImplControlValue aControlValue;
ControlState nState = CTRL_STATE_PRESSED | CTRL_STATE_ENABLED;
-
+
aControlValue.setTristateVal( BUTTONVALUE_ON );
-
- bNativeOk = i_pWindow->DrawNativeControl( CTRL_TOOLBAR, PART_BUTTON,
+
+ bNativeOk = i_pWindow->DrawNativeControl( CTRL_TOOLBAR, PART_BUTTON,
i_rRect, nState, aControlValue,
rtl::OUString() );
}
@@ -1476,7 +1476,7 @@ void ToolbarMenu::implPaint( ToolbarMenuEntry* pThisOnly, bool bHighlighted )
SetLineColor( rSettings.GetLightColor() );
DrawLine( aRect.TopLeft(), aRect.TopRight() );
SetLineColor( rSettings.GetShadowColor() );
- DrawLine( aRect.BottomLeft(), aRect.BottomRight() );
+ DrawLine( aRect.BottomLeft(), aRect.BottomRight() );
}
// CheckMark
@@ -1498,29 +1498,29 @@ void ToolbarMenu::implPaint( ToolbarMenuEntry* pThisOnly, bool bHighlighted )
ControlPart nPart = ((pEntry->mnBits & MIB_RADIOCHECK)
? PART_MENU_ITEM_RADIO_MARK
: PART_MENU_ITEM_CHECK_MARK);
-
+
ControlState nState = 0;
-
+
if ( pEntry->mbChecked )
nState |= CTRL_STATE_PRESSED;
-
+
if ( pEntry->mbEnabled )
nState |= CTRL_STATE_ENABLED;
-
+
if ( bHighlighted )
nState |= CTRL_STATE_SELECTED;
-
+
long nCtrlHeight = (pEntry->mnBits & MIB_RADIOCHECK) ? nCheckHeight : nRadioHeight;
aTmpPos.X() = aOuterCheckRect.Left() + (aOuterCheckRect.GetWidth() - nCtrlHeight)/2;
aTmpPos.Y() = aOuterCheckRect.Top() + (aOuterCheckRect.GetHeight() - nCtrlHeight)/2;
-
- Rectangle aCheckRect( aTmpPos, Size( nCtrlHeight, nCtrlHeight ) );
+
+ Rectangle aCheckRect( aTmpPos, Size( nCtrlHeight, nCtrlHeight ) );
DrawNativeControl( CTRL_MENU_POPUP, nPart, aCheckRect, nState, ImplControlValue(), OUString() );
}
else if ( pEntry->mbChecked ) // by default do nothing for unchecked items
{
ImplPaintCheckBackground( this, aOuterCheckRect, pThisOnly && bHighlighted );
-
+
SymbolType eSymbol;
Size aSymbolSize;
if ( pEntry->mnBits & MIB_RADIOCHECK )
@@ -1731,7 +1731,7 @@ void SAL_CALL ToolbarMenu::statusChanged( const ::com::sun::star::frame::Feature
class ToolbarMenuStatusListener : public svt::FrameStatusListener
{
-public:
+public:
ToolbarMenuStatusListener( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceManager,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame,
ToolbarMenu& rToolbarMenu );
@@ -1744,7 +1744,7 @@ public:
// --------------------------------------------------------------------
-ToolbarMenuStatusListener::ToolbarMenuStatusListener(
+ToolbarMenuStatusListener::ToolbarMenuStatusListener(
const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceManager,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame,
ToolbarMenu& rToolbarMenu )
@@ -1814,7 +1814,7 @@ const Link& ToolbarMenu::GetSelectHdl() const
// --------------------------------------------------------------------
-Reference< XFrame > ToolbarMenu::GetFrame() const
+Reference< XFrame > ToolbarMenu::GetFrame() const
{
return mpImpl->mxFrame;
}
diff --git a/svtools/source/control/toolbarmenuacc.cxx b/svtools/source/control/toolbarmenuacc.cxx
index 938d14bc854f..efb3f19ae467 100644
--- a/svtools/source/control/toolbarmenuacc.cxx
+++ b/svtools/source/control/toolbarmenuacc.cxx
@@ -210,7 +210,7 @@ sal_Int32 SAL_CALL ToolbarMenuAcc::getAccessibleIndexInParent() throw (RuntimeEx
{
const SolarMutexGuard aSolarGuard;
ThrowIfDisposed();
-
+
Window* pParent = mpParent->mrMenu.GetParent();
if( pParent )
{
@@ -382,7 +382,7 @@ Reference< XAccessible > SAL_CALL ToolbarMenuAcc::getAccessibleAtPoint( const aw
Reference< XAccessible > xRet;
const Point aVclPoint( aPoint.X, aPoint.Y );
-
+
const int nEntryCount = mpParent->maEntryVector.size();
for( int nEntry = 0; (nEntry < nEntryCount) && !xRet.is(); nEntry++ )
{
diff --git a/svtools/source/control/toolbarmenuimp.hxx b/svtools/source/control/toolbarmenuimp.hxx
index 0df8c8e78045..05bee8b34c8e 100644
--- a/svtools/source/control/toolbarmenuimp.hxx
+++ b/svtools/source/control/toolbarmenuimp.hxx
@@ -74,7 +74,7 @@ class ToolbarMenuEntry
public:
ToolbarMenu& mrMenu;
- int mnEntryId;
+ int mnEntryId;
MenuItemBits mnBits;
Size maSize;
@@ -254,8 +254,8 @@ public:
virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException);
private:
- EventListenerVector mxEventListeners;
- ::osl::Mutex maMutex;
+ EventListenerVector mxEventListeners;
+ ::osl::Mutex maMutex;
ToolbarMenuEntry* mpParent;
/** Tell all listeners that the object is dying. This callback is
@@ -271,12 +271,12 @@ struct ToolbarMenu_Impl
ToolbarMenu& mrMenu;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > mxFrame;
- rtl::Reference< svt::FrameStatusListener > mxStatusListener;
+ rtl::Reference< svt::FrameStatusListener > mxStatusListener;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxServiceManager;
- rtl::Reference< ToolbarMenuAcc > mxAccessible;
+ rtl::Reference< ToolbarMenuAcc > mxAccessible;
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > mxOldSelection;
- ToolbarMenuEntryVector maEntryVector;
+ ToolbarMenuEntryVector maEntryVector;
int mnCheckPos;
int mnImagePos;
@@ -288,7 +288,7 @@ struct ToolbarMenu_Impl
Size maSize;
- Link maSelectHdl;
+ Link maSelectHdl;
ToolbarMenu_Impl( ToolbarMenu& rMenu, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame );
~ToolbarMenu_Impl();
diff --git a/svtools/source/control/urlcontrol.cxx b/svtools/source/control/urlcontrol.cxx
index eeb562b2a663..edb4972aeb1d 100644
--- a/svtools/source/control/urlcontrol.cxx
+++ b/svtools/source/control/urlcontrol.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@ namespace svt
}
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx
index 6187f655ade4..677edd376312 100644
--- a/svtools/source/control/valueacc.cxx
+++ b/svtools/source/control/valueacc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -1029,13 +1029,13 @@ uno::Reference< accessibility::XAccessibleStateSet > SAL_CALL ValueItemAcc::getA
// SELECTABLE
pStateSet->AddState( accessibility::AccessibleStateType::SELECTABLE );
- // pStateSet->AddState( accessibility::AccessibleStateType::FOCUSABLE );
+ // pStateSet->AddState( accessibility::AccessibleStateType::FOCUSABLE );
// SELECTED
if( mpParent->mrParent.GetSelectItemId() == mpParent->mnId )
{
pStateSet->AddState( accessibility::AccessibleStateType::SELECTED );
- // pStateSet->AddState( accessibility::AccessibleStateType::FOCUSED );
+ // pStateSet->AddState( accessibility::AccessibleStateType::FOCUSED );
}
}
@@ -1233,7 +1233,7 @@ sal_Int32 SAL_CALL ValueItemAcc::getForeground( )
// -----------------------------------------------------------------------------
-sal_Int32 SAL_CALL ValueItemAcc::getBackground( )
+sal_Int32 SAL_CALL ValueItemAcc::getBackground( )
throw (uno::RuntimeException)
{
UINT32 nColor;
diff --git a/svtools/source/control/valueimp.hxx b/svtools/source/control/valueimp.hxx
index 1c2d1812f8ad..47ba7eb476e2 100644
--- a/svtools/source/control/valueimp.hxx
+++ b/svtools/source/control/valueimp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,15 +50,15 @@
// - Defines -
// -----------
-#define ITEM_OFFSET 4
-#define ITEM_OFFSET_DOUBLE 6
-#define NAME_LINE_OFF_X 2
-#define NAME_LINE_OFF_Y 2
-#define NAME_LINE_HEIGHT 2
-#define NAME_OFFSET 2
-#define SCRBAR_OFFSET 1
-#define VALUESET_ITEM_NONEITEM 0xFFFE
-#define VALUESET_SCROLL_OFFSET 4
+#define ITEM_OFFSET 4
+#define ITEM_OFFSET_DOUBLE 6
+#define NAME_LINE_OFF_X 2
+#define NAME_LINE_OFF_Y 2
+#define NAME_LINE_HEIGHT 2
+#define NAME_OFFSET 2
+#define SCRBAR_OFFSET 1
+#define VALUESET_ITEM_NONEITEM 0xFFFE
+#define VALUESET_SCROLL_OFFSET 4
// --------------------
// - ValueSetItemType -
@@ -82,14 +82,14 @@ class ValueSet;
struct ValueSetItem
{
ValueSet& mrParent;
- USHORT mnId;
- USHORT mnBits;
- ValueSetItemType meType;
- Image maImage;
- Color maColor;
- XubString maText;
- void* mpData;
- Rectangle maRect;
+ USHORT mnId;
+ USHORT mnBits;
+ ValueSetItemType meType;
+ Image maImage;
+ Color maColor;
+ XubString maText;
+ void* mpData;
+ Rectangle maRect;
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >* mpxAcc;
ValueSetItem( ValueSet& rParent );
@@ -110,7 +110,7 @@ struct ValueSet_Impl
{
::std::auto_ptr< ValueItemList > mpItemList;
bool mbIsTransientChildrenDisabled;
- Link maHighlightHdl;
+ Link maHighlightHdl;
ValueSet_Impl() : mpItemList( ::std::auto_ptr< ValueItemList >( new ValueItemList() ) ),
mbIsTransientChildrenDisabled( false )
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index 97508e00fdc2..594cc3ea7230 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,36 +51,36 @@
void ValueSet::ImplInit()
{
- // Size aWinSize = GetSizePixel();
+ // Size aWinSize = GetSizePixel();
mpImpl = new ValueSet_Impl;
- mpNoneItem = NULL;
- mpScrBar = NULL;
- mnTextOffset = 0;
- mnVisLines = 0;
- mnLines = 0;
- mnUserItemWidth = 0;
- mnUserItemHeight = 0;
- mnFirstLine = 0;
- mnOldItemId = 0;
- mnSelItemId = 0;
- mnHighItemId = 0;
- mnDropPos = VALUESET_ITEM_NOTFOUND;
- mnCols = 0;
- mnCurCol = 0;
- mnUserCols = 0;
- mnUserVisLines = 0;
- mnSpacing = 0;
- mnFrameStyle = 0;
- mbFormat = TRUE;
- mbHighlight = FALSE ;
- mbSelection = FALSE;
- mbNoSelection = TRUE;
- mbDrawSelection = TRUE;
- mbBlackSel = FALSE;
- mbDoubleSel = FALSE;
- mbScroll = FALSE;
- mbDropPos = FALSE;
- mbFullMode = TRUE;
+ mpNoneItem = NULL;
+ mpScrBar = NULL;
+ mnTextOffset = 0;
+ mnVisLines = 0;
+ mnLines = 0;
+ mnUserItemWidth = 0;
+ mnUserItemHeight = 0;
+ mnFirstLine = 0;
+ mnOldItemId = 0;
+ mnSelItemId = 0;
+ mnHighItemId = 0;
+ mnDropPos = VALUESET_ITEM_NOTFOUND;
+ mnCols = 0;
+ mnCurCol = 0;
+ mnUserCols = 0;
+ mnUserVisLines = 0;
+ mnSpacing = 0;
+ mnFrameStyle = 0;
+ mbFormat = TRUE;
+ mbHighlight = FALSE ;
+ mbSelection = FALSE;
+ mbNoSelection = TRUE;
+ mbDrawSelection = TRUE;
+ mbBlackSel = FALSE;
+ mbDoubleSel = FALSE;
+ mbScroll = FALSE;
+ mbDropPos = FALSE;
+ mbFullMode = TRUE;
// #106446#, #106601# force mirroring of virtual device
maVirDev.EnableRTL( GetParent()->IsRTLEnabled() );
@@ -232,10 +232,10 @@ void ValueSet::ImplFormatItem( ValueSetItem* pItem )
{
if ( nStyle & WB_DOUBLEBORDER )
{
- aRect.Left() += 2;
- aRect.Top() += 2;
- aRect.Right() -= 2;
- aRect.Bottom() -= 2;
+ aRect.Left() += 2;
+ aRect.Top() += 2;
+ aRect.Right() -= 2;
+ aRect.Bottom() -= 2;
}
else
{
@@ -265,8 +265,8 @@ void ValueSet::ImplFormatItem( ValueSetItem* pItem )
maVirDev.SetTextFillColor();
maVirDev.SetFillColor( ( nStyle & WB_MENUSTYLEVALUESET ) ? rStyleSettings.GetMenuColor() : rStyleSettings.GetWindowColor() );
maVirDev.DrawRect( aRect );
- Point aTxtPos( aRect.Left()+2, aRect.Top() );
- long nTxtWidth = GetTextWidth( pItem->maText );
+ Point aTxtPos( aRect.Left()+2, aRect.Top() );
+ long nTxtWidth = GetTextWidth( pItem->maText );
if ( nStyle & WB_RADIOSEL )
{
aTxtPos.X() += 4;
@@ -306,9 +306,9 @@ void ValueSet::ImplFormatItem( ValueSetItem* pItem )
}
else
{
- Size aImageSize = pItem->maImage.GetSizePixel();
- Size aRectSize = aRect.GetSize();
- Point aPos( aRect.Left(), aRect.Top() );
+ Size aImageSize = pItem->maImage.GetSizePixel();
+ Size aRectSize = aRect.GetSize();
+ Point aPos( aRect.Left(), aRect.Top() );
aPos.X() += (aRectSize.Width()-aImageSize.Width())/2;
aPos.Y() += (aRectSize.Height()-aImageSize.Height())/2;
@@ -341,15 +341,15 @@ void ValueSet::ImplFormatItem( ValueSetItem* pItem )
void ValueSet::Format()
{
- Size aWinSize = GetOutputSizePixel();
+ Size aWinSize = GetOutputSizePixel();
ULONG nItemCount = mpImpl->mpItemList->Count();
- WinBits nStyle = GetStyle();
- long nTxtHeight = GetTextHeight();
- long nOff;
- long nSpace;
- long nNoneHeight;
- long nNoneSpace;
- ScrollBar* pDelScrBar = NULL;
+ WinBits nStyle = GetStyle();
+ long nTxtHeight = GetTextHeight();
+ long nOff;
+ long nSpace;
+ long nNoneHeight;
+ long nNoneSpace;
+ ScrollBar* pDelScrBar = NULL;
// Scrolling beruecksichtigen
if ( nStyle & WB_VSCROLL )
@@ -462,7 +462,7 @@ void ValueSet::Format()
}
// Itemgroessen berechnen
- long nColSpace = (mnCols-1)*nSpace;
+ long nColSpace = (mnCols-1)*nSpace;
long nLineSpace = ((mnVisLines-1)*nSpace)+nNoneSpace;
long nItemWidth;
long nItemHeight;
@@ -571,11 +571,11 @@ void ValueSet::Format()
if ( !mpNoneItem )
mpNoneItem = new ValueSetItem( *this );
- mpNoneItem->mnId = 0;
- mpNoneItem->meType = VALUESETITEM_NONE;
- mpNoneItem->maRect.Left() = x;
- mpNoneItem->maRect.Top() = y;
- mpNoneItem->maRect.Right() = mpNoneItem->maRect.Left()+aWinSize.Width()-x-1;
+ mpNoneItem->mnId = 0;
+ mpNoneItem->meType = VALUESETITEM_NONE;
+ mpNoneItem->maRect.Left() = x;
+ mpNoneItem->maRect.Top() = y;
+ mpNoneItem->maRect.Right() = mpNoneItem->maRect.Left()+aWinSize.Width()-x-1;
mpNoneItem->maRect.Bottom() = y+nNoneHeight-1;
ImplFormatItem( mpNoneItem );
@@ -603,10 +603,10 @@ void ValueSet::Format()
{
const BOOL bWasEmpty = pItem->maRect.IsEmpty();
- pItem->maRect.Left() = x;
- pItem->maRect.Top() = y;
- pItem->maRect.Right() = pItem->maRect.Left()+nItemWidth-1;
- pItem->maRect.Bottom() = pItem->maRect.Top()+nItemHeight-1;
+ pItem->maRect.Left() = x;
+ pItem->maRect.Top() = y;
+ pItem->maRect.Right() = pItem->maRect.Left()+nItemWidth-1;
+ pItem->maRect.Bottom() = pItem->maRect.Top()+nItemHeight-1;
if( bWasEmpty && ImplHasAccessibleListeners() )
{
@@ -643,8 +643,8 @@ void ValueSet::Format()
// ScrollBar anordnen, Werte setzen und anzeigen
if ( mpScrBar )
{
- Point aPos( aWinSize.Width()-nScrBarWidth+SCRBAR_OFFSET, 0 );
- Size aSize( nScrBarWidth-SCRBAR_OFFSET, aWinSize.Height() );
+ Point aPos( aWinSize.Width()-nScrBarWidth+SCRBAR_OFFSET, 0 );
+ Size aSize( nScrBarWidth-SCRBAR_OFFSET, aWinSize.Height() );
// If a none field is visible, then we center the scrollbar
if ( nStyle & WB_NONEFIELD )
{
@@ -678,9 +678,9 @@ void ValueSet::ImplDrawItemText( const XubString& rText )
if ( !(GetStyle() & WB_NAMEFIELD) )
return;
- Size aWinSize = GetOutputSizePixel();
- long nTxtWidth = GetTextWidth( rText );
- long nTxtOffset = mnTextOffset;
+ Size aWinSize = GetOutputSizePixel();
+ long nTxtWidth = GetTextWidth( rText );
+ long nTxtOffset = mnTextOffset;
// Rechteck loeschen und Text ausgeben
if ( GetStyle() & WB_FLATVALUESET )
@@ -753,8 +753,8 @@ void ValueSet::ImplDrawSelect()
continue;
// Selection malen
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- Rectangle aRect = pItem->maRect;
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ Rectangle aRect = pItem->maRect;
Control::SetFillColor();
Color aDoubleColor( rStyleSettings.GetHighlightColor() );
@@ -799,10 +799,10 @@ void ValueSet::ImplDrawSelect()
}
else if ( nStyle & WB_RADIOSEL )
{
- aRect.Left() += 3;
- aRect.Top() += 3;
- aRect.Right() -= 3;
- aRect.Bottom() -= 3;
+ aRect.Left() += 3;
+ aRect.Top() += 3;
+ aRect.Right() -= 3;
+ aRect.Bottom() -= 3;
if ( nStyle & WB_DOUBLEBORDER )
{
aRect.Left()++;
@@ -911,7 +911,7 @@ void ValueSet::ImplHideSelect( USHORT nItemId )
if ( !aRect.IsEmpty() )
{
HideFocus();
- Point aPos = aRect.TopLeft();
+ Point aPos = aRect.TopLeft();
Size aSize = aRect.GetSize();
DrawOutDev( aPos, aSize, aPos, aSize, maVirDev );
}
@@ -944,10 +944,10 @@ void ValueSet::ImplDrawDropPos( BOOL bShow )
{
if ( (mnDropPos != VALUESET_ITEM_NOTFOUND) && mpImpl->mpItemList->Count() )
{
- USHORT nItemPos = mnDropPos;
- USHORT nItemId1;
- USHORT nItemId2 = 0;
- BOOL bRight;
+ USHORT nItemPos = mnDropPos;
+ USHORT nItemId1;
+ USHORT nItemId2 = 0;
+ BOOL bRight;
if ( nItemPos >= mpImpl->mpItemList->Count() )
{
nItemPos = (USHORT)(mpImpl->mpItemList->Count()-1);
@@ -985,8 +985,8 @@ void ValueSet::ImplDrawDropPos( BOOL bShow )
if ( bShow )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- long nX;
- long nY;
+ long nX;
+ long nY;
SetLineColor( rStyleSettings.GetButtonTextColor() );
if ( !aRect1.IsEmpty() )
{
@@ -1009,13 +1009,13 @@ void ValueSet::ImplDrawDropPos( BOOL bShow )
{
if ( !aRect1.IsEmpty() )
{
- Point aPos = aRect1.TopLeft();
+ Point aPos = aRect1.TopLeft();
Size aSize = aRect1.GetSize();
DrawOutDev( aPos, aSize, aPos, aSize, maVirDev );
}
if ( !aRect2.IsEmpty() )
{
- Point aPos = aRect2.TopLeft();
+ Point aPos = aRect2.TopLeft();
Size aSize = aRect2.GetSize();
DrawOutDev( aPos, aSize, aPos, aSize, maVirDev );
}
@@ -1036,23 +1036,23 @@ void ValueSet::ImplDraw()
HideFocus();
- Point aDefPos;
- Size aSize = maVirDev.GetOutputSizePixel();
+ Point aDefPos;
+ Size aSize = maVirDev.GetOutputSizePixel();
if ( mpScrBar && mpScrBar->IsVisible() )
{
- Point aScrPos = mpScrBar->GetPosPixel();
- Size aScrSize = mpScrBar->GetSizePixel();
- Point aTempPos( 0, aScrPos.Y() );
- Size aTempSize( aSize.Width(), aScrPos.Y() );
+ Point aScrPos = mpScrBar->GetPosPixel();
+ Size aScrSize = mpScrBar->GetSizePixel();
+ Point aTempPos( 0, aScrPos.Y() );
+ Size aTempSize( aSize.Width(), aScrPos.Y() );
DrawOutDev( aDefPos, aTempSize, aDefPos, aTempSize, maVirDev );
- aTempSize.Width() = aScrPos.X()-1;
- aTempSize.Height() = aScrSize.Height();
+ aTempSize.Width() = aScrPos.X()-1;
+ aTempSize.Height() = aScrSize.Height();
DrawOutDev( aTempPos, aTempSize, aTempPos, aTempSize, maVirDev );
- aTempPos.Y() = aScrPos.Y()+aScrSize.Height();
- aTempSize.Width() = aSize.Width();
- aTempSize.Height() = aSize.Height()-aTempPos.Y();
+ aTempPos.Y() = aScrPos.Y()+aScrSize.Height();
+ aTempSize.Width() = aSize.Width();
+ aTempSize.Height() = aSize.Height()-aTempPos.Y();
DrawOutDev( aTempPos, aTempSize, aTempPos, aTempSize, maVirDev );
}
else
@@ -1099,8 +1099,8 @@ BOOL ValueSet::ImplScroll( const Point& rPos )
if ( !mbScroll || (rPos.X() < 0) || (rPos.X() > aOutSize.Width()-nScrBarWidth) )
return FALSE;
- long nScrollOffset;
- USHORT nOldLine = mnFirstLine;
+ long nScrollOffset;
+ USHORT nOldLine = mnFirstLine;
const Rectangle& rTopRect = mpImpl->mpItemList->GetObject( mnFirstLine*mnCols )->maRect;
if ( rTopRect.GetHeight() <= 16 )
nScrollOffset = VALUESET_SCROLL_OFFSET/2;
@@ -1140,7 +1140,7 @@ USHORT ValueSet::ImplGetItem( const Point& rPos, BOOL bMove ) const
return VALUESET_ITEM_NONEITEM;
}
- Point aDefPos;
+ Point aDefPos;
Rectangle aWinRect( aDefPos, maVirDev.GetOutputSizePixel() );
ULONG nItemCount = mpImpl->mpItemList->Count();
@@ -1811,9 +1811,9 @@ void ValueSet::InsertItem( USHORT nItemId, const Image& rImage, USHORT nPos )
"ValueSet::InsertItem(): ItemId already exists" );
ValueSetItem* pItem = new ValueSetItem( *this );
- pItem->mnId = nItemId;
- pItem->meType = VALUESETITEM_IMAGE;
- pItem->maImage = rImage;
+ pItem->mnId = nItemId;
+ pItem->meType = VALUESETITEM_IMAGE;
+ pItem->maImage = rImage;
mpImpl->mpItemList->Insert( pItem, (ULONG)nPos );
mbFormat = TRUE;
@@ -1830,9 +1830,9 @@ void ValueSet::InsertItem( USHORT nItemId, const Color& rColor, USHORT nPos )
"ValueSet::InsertItem(): ItemId already exists" );
ValueSetItem* pItem = new ValueSetItem( *this );
- pItem->mnId = nItemId;
- pItem->meType = VALUESETITEM_COLOR;
- pItem->maColor = rColor;
+ pItem->mnId = nItemId;
+ pItem->meType = VALUESETITEM_COLOR;
+ pItem->maColor = rColor;
mpImpl->mpItemList->Insert( pItem, (ULONG)nPos );
mbFormat = TRUE;
@@ -1850,10 +1850,10 @@ void ValueSet::InsertItem( USHORT nItemId, const Image& rImage,
"ValueSet::InsertItem(): ItemId already exists" );
ValueSetItem* pItem = new ValueSetItem( *this );
- pItem->mnId = nItemId;
- pItem->meType = VALUESETITEM_IMAGE;
- pItem->maImage = rImage;
- pItem->maText = rText;
+ pItem->mnId = nItemId;
+ pItem->meType = VALUESETITEM_IMAGE;
+ pItem->maImage = rImage;
+ pItem->maText = rText;
mpImpl->mpItemList->Insert( pItem, (ULONG)nPos );
mbFormat = TRUE;
@@ -1871,10 +1871,10 @@ void ValueSet::InsertItem( USHORT nItemId, const Color& rColor,
"ValueSet::InsertItem(): ItemId already exists" );
ValueSetItem* pItem = new ValueSetItem( *this );
- pItem->mnId = nItemId;
- pItem->meType = VALUESETITEM_COLOR;
- pItem->maColor = rColor;
- pItem->maText = rText;
+ pItem->mnId = nItemId;
+ pItem->meType = VALUESETITEM_COLOR;
+ pItem->maColor = rColor;
+ pItem->maText = rText;
mpImpl->mpItemList->Insert( pItem, (ULONG)nPos );
mbFormat = TRUE;
@@ -1891,8 +1891,8 @@ void ValueSet::InsertItem( USHORT nItemId, USHORT nPos )
"ValueSet::InsertItem(): ItemId already exists" );
ValueSetItem* pItem = new ValueSetItem( *this );
- pItem->mnId = nItemId;
- pItem->meType = VALUESETITEM_USERDRAW;
+ pItem->mnId = nItemId;
+ pItem->meType = VALUESETITEM_USERDRAW;
mpImpl->mpItemList->Insert( pItem, (ULONG)nPos );
mbFormat = TRUE;
@@ -1909,8 +1909,8 @@ void ValueSet::InsertSpace( USHORT nItemId, USHORT nPos )
"ValueSet::InsertSpace(): ItemId already exists" );
ValueSetItem* pItem = new ValueSetItem( *this );
- pItem->mnId = nItemId;
- pItem->meType = VALUESETITEM_SPACE;
+ pItem->mnId = nItemId;
+ pItem->meType = VALUESETITEM_SPACE;
mpImpl->mpItemList->Insert( pItem, (ULONG)nPos );
mbFormat = TRUE;
@@ -1932,11 +1932,11 @@ void ValueSet::RemoveItem( USHORT nItemId )
// Variablen zuruecksetzen
if ( (mnHighItemId == nItemId) || (mnSelItemId == nItemId) )
{
- mnCurCol = 0;
- mnOldItemId = 0;
- mnHighItemId = 0;
- mnSelItemId = 0;
- mbNoSelection = TRUE;
+ mnCurCol = 0;
+ mnOldItemId = 0;
+ mnHighItemId = 0;
+ mnSelItemId = 0;
+ mbNoSelection = TRUE;
}
mbFormat = TRUE;
@@ -1970,12 +1970,12 @@ void ValueSet::CopyItems( const ValueSet& rValueSet )
}
// Variablen zuruecksetzen
- mnFirstLine = 0;
- mnCurCol = 0;
- mnOldItemId = 0;
- mnHighItemId = 0;
- mnSelItemId = 0;
- mbNoSelection = TRUE;
+ mnFirstLine = 0;
+ mnCurCol = 0;
+ mnOldItemId = 0;
+ mnHighItemId = 0;
+ mnSelItemId = 0;
+ mbNoSelection = TRUE;
mbFormat = TRUE;
if ( IsReallyVisible() && IsUpdateMode() )
@@ -1989,12 +1989,12 @@ void ValueSet::Clear()
ImplDeleteItems();
// Variablen zuruecksetzen
- mnFirstLine = 0;
- mnCurCol = 0;
- mnOldItemId = 0;
- mnHighItemId = 0;
- mnSelItemId = 0;
- mbNoSelection = TRUE;
+ mnFirstLine = 0;
+ mnCurCol = 0;
+ mnOldItemId = 0;
+ mnHighItemId = 0;
+ mnSelItemId = 0;
+ mbNoSelection = TRUE;
mbFormat = TRUE;
if ( IsReallyVisible() && IsUpdateMode() )
@@ -2263,9 +2263,9 @@ void ValueSet::SelectItem( USHORT nItemId )
void ValueSet::SetNoSelection()
{
- mbNoSelection = TRUE;
- mbHighlight = FALSE;
- mbSelection = FALSE;
+ mbNoSelection = TRUE;
+ mbHighlight = FALSE;
+ mbSelection = FALSE;
if ( IsReallyVisible() && IsUpdateMode() )
ImplDraw();
@@ -2456,8 +2456,8 @@ XubString ValueSet::GetItemText( USHORT nItemId ) const
void ValueSet::SetColor( const Color& rColor )
{
- maColor = rColor;
- mbFormat = TRUE;
+ maColor = rColor;
+ mbFormat = TRUE;
if ( IsReallyVisible() && IsUpdateMode() )
ImplDraw();
}
@@ -2480,10 +2480,10 @@ void ValueSet::SetExtraSpacing( USHORT nNewSpacing )
void ValueSet::StartSelection()
{
- mnOldItemId = mnSelItemId;
- mbHighlight = TRUE;
- mbSelection = TRUE;
- mnHighItemId = mnSelItemId;
+ mnOldItemId = mnSelItemId;
+ mbHighlight = TRUE;
+ mbSelection = TRUE;
+ mnHighItemId = mnSelItemId;
}
// -----------------------------------------------------------------------
@@ -2577,11 +2577,11 @@ Size ValueSet::CalcWindowSizePixel( const Size& rItemSize, USHORT nDesireCols,
}
}
- Size aSize( rItemSize.Width()*nCalcCols, rItemSize.Height()*nCalcLines );
- WinBits nStyle = GetStyle();
- long nTxtHeight = GetTextHeight();
- long nSpace;
- long n;
+ Size aSize( rItemSize.Width()*nCalcCols, rItemSize.Height()*nCalcLines );
+ WinBits nStyle = GetStyle();
+ long nTxtHeight = GetTextHeight();
+ long nSpace;
+ long n;
if ( nStyle & WB_ITEMBORDER )
{
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index 3a0e8a4b8289..1384c3f6d219 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -119,20 +119,20 @@ namespace svt
@return
a <type scope="com.sun.star.sdb">CommandType</type> value
*/
- virtual sal_Int32 getCommandType() const = 0;
+ virtual sal_Int32 getCommandType() const = 0;
/// checks whether or not there is an assignment for a given logical field
- virtual sal_Bool hasFieldAssignment(const ::rtl::OUString& _rLogicalName) = 0;
+ virtual sal_Bool hasFieldAssignment(const ::rtl::OUString& _rLogicalName) = 0;
/// retrieves the assignment for a given logical field
virtual ::rtl::OUString getFieldAssignment(const ::rtl::OUString& _rLogicalName) = 0;
/// set the assignment for a given logical field
- virtual void setFieldAssignment(const ::rtl::OUString& _rLogicalName, const ::rtl::OUString& _rAssignment) = 0;
+ virtual void setFieldAssignment(const ::rtl::OUString& _rLogicalName, const ::rtl::OUString& _rAssignment) = 0;
/// clear the assignment for a given logical field
- virtual void clearFieldAssignment(const ::rtl::OUString& _rLogicalName) = 0;
+ virtual void clearFieldAssignment(const ::rtl::OUString& _rLogicalName) = 0;
- virtual void setDatasourceName(const ::rtl::OUString& _rName) = 0;
- virtual void setCommand(const ::rtl::OUString& _rCommand) = 0;
+ virtual void setDatasourceName(const ::rtl::OUString& _rName) = 0;
+ virtual void setCommand(const ::rtl::OUString& _rCommand) = 0;
};
// -------------------------------------------------------------------
@@ -147,9 +147,9 @@ namespace svt
{
protected:
Reference< XDataSource > m_xDataSource;
- ::rtl::OUString m_sDSName;
- ::rtl::OUString m_sTableName;
- MapString2String m_aAliases;
+ ::rtl::OUString m_sDSName;
+ ::rtl::OUString m_sTableName;
+ MapString2String m_aAliases;
public:
AssigmentTransientData(
@@ -162,15 +162,15 @@ public:
// IAssigmentData overridables
virtual ::rtl::OUString getDatasourceName() const;
virtual ::rtl::OUString getCommand() const;
- virtual sal_Int32 getCommandType() const;
+ virtual sal_Int32 getCommandType() const;
- virtual sal_Bool hasFieldAssignment(const ::rtl::OUString& _rLogicalName);
+ virtual sal_Bool hasFieldAssignment(const ::rtl::OUString& _rLogicalName);
virtual ::rtl::OUString getFieldAssignment(const ::rtl::OUString& _rLogicalName);
- virtual void setFieldAssignment(const ::rtl::OUString& _rLogicalName, const ::rtl::OUString& _rAssignment);
- virtual void clearFieldAssignment(const ::rtl::OUString& _rLogicalName);
+ virtual void setFieldAssignment(const ::rtl::OUString& _rLogicalName, const ::rtl::OUString& _rAssignment);
+ virtual void clearFieldAssignment(const ::rtl::OUString& _rLogicalName);
- virtual void setDatasourceName(const ::rtl::OUString& _rName);
- virtual void setCommand(const ::rtl::OUString& _rCommand);
+ virtual void setDatasourceName(const ::rtl::OUString& _rName);
+ virtual void setCommand(const ::rtl::OUString& _rCommand);
};
// -------------------------------------------------------------------
@@ -201,9 +201,9 @@ public:
}
else
{
- DBG_ERROR ( ( ::rtl::OString("AssigmentTransientData::AssigmentTransientData: unknown programmatic name (")
- += ::rtl::OString(pFields->ProgrammaticName.getStr(), pFields->ProgrammaticName.getLength(), RTL_TEXTENCODING_ASCII_US)
- += ::rtl::OString(")!")
+ DBG_ERROR ( ( ::rtl::OString("AssigmentTransientData::AssigmentTransientData: unknown programmatic name (")
+ += ::rtl::OString(pFields->ProgrammaticName.getStr(), pFields->ProgrammaticName.getLength(), RTL_TEXTENCODING_ASCII_US)
+ += ::rtl::OString(")!")
).getStr()
);
}
@@ -232,8 +232,8 @@ public:
sal_Bool AssigmentTransientData::hasFieldAssignment(const ::rtl::OUString& _rLogicalName)
{
ConstMapString2StringIterator aPos = m_aAliases.find( _rLogicalName );
- return ( m_aAliases.end() != aPos )
- && ( aPos->second.getLength() );
+ return ( m_aAliases.end() != aPos )
+ && ( aPos->second.getLength() );
}
// -------------------------------------------------------------------
@@ -281,7 +281,7 @@ public:
,public IAssigmentData
{
protected:
- StringBag m_aStoredFields;
+ StringBag m_aStoredFields;
protected:
::com::sun::star::uno::Any
@@ -289,12 +289,12 @@ public:
::com::sun::star::uno::Any
getProperty(const sal_Char* _pLocalName) const;
- ::rtl::OUString getStringProperty(const sal_Char* _pLocalName) const;
- sal_Int32 getInt32Property(const sal_Char* _pLocalName) const;
+ ::rtl::OUString getStringProperty(const sal_Char* _pLocalName) const;
+ sal_Int32 getInt32Property(const sal_Char* _pLocalName) const;
- ::rtl::OUString getStringProperty(const ::rtl::OUString& _rLocalName) const;
+ ::rtl::OUString getStringProperty(const ::rtl::OUString& _rLocalName) const;
- void setStringProperty(const sal_Char* _pLocalName, const ::rtl::OUString& _rValue);
+ void setStringProperty(const sal_Char* _pLocalName, const ::rtl::OUString& _rValue);
public:
AssignmentPersistentData();
@@ -303,18 +303,18 @@ public:
// IAssigmentData overridables
virtual ::rtl::OUString getDatasourceName() const;
virtual ::rtl::OUString getCommand() const;
- virtual sal_Int32 getCommandType() const;
+ virtual sal_Int32 getCommandType() const;
- virtual sal_Bool hasFieldAssignment(const ::rtl::OUString& _rLogicalName);
+ virtual sal_Bool hasFieldAssignment(const ::rtl::OUString& _rLogicalName);
virtual ::rtl::OUString getFieldAssignment(const ::rtl::OUString& _rLogicalName);
- virtual void setFieldAssignment(const ::rtl::OUString& _rLogicalName, const ::rtl::OUString& _rAssignment);
- virtual void clearFieldAssignment(const ::rtl::OUString& _rLogicalName);
+ virtual void setFieldAssignment(const ::rtl::OUString& _rLogicalName, const ::rtl::OUString& _rAssignment);
+ virtual void clearFieldAssignment(const ::rtl::OUString& _rLogicalName);
- virtual void setDatasourceName(const ::rtl::OUString& _rName);
- virtual void setCommand(const ::rtl::OUString& _rCommand);
+ virtual void setDatasourceName(const ::rtl::OUString& _rName);
+ virtual void setCommand(const ::rtl::OUString& _rCommand);
virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
- virtual void Commit();
+ virtual void Commit();
};
@@ -377,7 +377,7 @@ void AssignmentPersistentData::Commit()
}
// -------------------------------------------------------------------
- ::rtl::OUString AssignmentPersistentData::getStringProperty(const ::rtl::OUString& _rLocalName) const
+ ::rtl::OUString AssignmentPersistentData::getStringProperty(const ::rtl::OUString& _rLocalName) const
{
::rtl::OUString sReturn;
getProperty( _rLocalName ) >>= sReturn;
@@ -385,7 +385,7 @@ void AssignmentPersistentData::Commit()
}
// -------------------------------------------------------------------
- ::rtl::OUString AssignmentPersistentData::getStringProperty(const sal_Char* _pLocalName) const
+ ::rtl::OUString AssignmentPersistentData::getStringProperty(const sal_Char* _pLocalName) const
{
::rtl::OUString sReturn;
getProperty( _pLocalName ) >>= sReturn;
@@ -494,29 +494,29 @@ void AssignmentPersistentData::Commit()
// ===================================================================
struct AddressBookSourceDialogData
{
- FixedText* pFieldLabels[FIELD_PAIRS_VISIBLE * 2];
- ListBox* pFields[FIELD_PAIRS_VISIBLE * 2];
+ FixedText* pFieldLabels[FIELD_PAIRS_VISIBLE * 2];
+ ListBox* pFields[FIELD_PAIRS_VISIBLE * 2];
/// when working transient, we need the data source
Reference< XDataSource >
m_xTransientDataSource;
/// current scroll pos in the field list
- sal_Int32 nFieldScrollPos;
+ sal_Int32 nFieldScrollPos;
/// the index within m_pFields of the last visible list box. This is redundant, it could be extracted from other members
- sal_Int32 nLastVisibleListIndex;
+ sal_Int32 nLastVisibleListIndex;
/// indicates that we've an odd field number. This member is for efficiency only, it's redundant.
- sal_Bool bOddFieldNumber : 1;
+ sal_Bool bOddFieldNumber : 1;
/// indicates that we're working with the real persistent configuration
- sal_Bool bWorkingPersistent : 1;
+ sal_Bool bWorkingPersistent : 1;
/// the strings to use as labels for the field selection listboxes
- StringArray aFieldLabels;
+ StringArray aFieldLabels;
// the current field assignment
- StringArray aFieldAssignments;
+ StringArray aFieldAssignments;
/// the logical field names
- StringArray aLogicalFieldNames;
+ StringArray aLogicalFieldNames;
- IAssigmentData* pConfigData;
+ IAssigmentData* pConfigData;
// ................................................................
AddressBookSourceDialogData( )
@@ -550,20 +550,20 @@ void AssignmentPersistentData::Commit()
// ===================================================================
// = AddressBookSourceDialog
// ===================================================================
-#define INIT_FIELDS() \
+#define INIT_FIELDS() \
ModalDialog(_pParent, SvtResId( DLG_ADDRESSBOOKSOURCE ))\
- ,m_aDatasourceFrame (this, SvtResId(FL_DATASOURCEFRAME))\
- ,m_aDatasourceLabel (this, SvtResId(FT_DATASOURCE))\
- ,m_aDatasource (this, SvtResId(CB_DATASOURCE))\
- ,m_aAdministrateDatasources (this, SvtResId(PB_ADMINISTATE_DATASOURCES))\
- ,m_aTableLabel (this, SvtResId(FT_TABLE))\
- ,m_aTable (this, SvtResId(CB_TABLE))\
- ,m_aFieldsTitle (this, SvtResId(FT_FIELDS))\
- ,m_aFieldsFrame (this, SvtResId(CT_BORDER))\
- ,m_aFieldScroller (&m_aFieldsFrame, SvtResId(SB_FIELDSCROLLER))\
- ,m_aOK (this, SvtResId(PB_OK))\
- ,m_aCancel (this, SvtResId(PB_CANCEL))\
- ,m_aHelp (this, SvtResId(PB_HELP))\
+ ,m_aDatasourceFrame (this, SvtResId(FL_DATASOURCEFRAME))\
+ ,m_aDatasourceLabel (this, SvtResId(FT_DATASOURCE))\
+ ,m_aDatasource (this, SvtResId(CB_DATASOURCE))\
+ ,m_aAdministrateDatasources (this, SvtResId(PB_ADMINISTATE_DATASOURCES))\
+ ,m_aTableLabel (this, SvtResId(FT_TABLE))\
+ ,m_aTable (this, SvtResId(CB_TABLE))\
+ ,m_aFieldsTitle (this, SvtResId(FT_FIELDS))\
+ ,m_aFieldsFrame (this, SvtResId(CT_BORDER))\
+ ,m_aFieldScroller (&m_aFieldsFrame, SvtResId(SB_FIELDSCROLLER))\
+ ,m_aOK (this, SvtResId(PB_OK))\
+ ,m_aCancel (this, SvtResId(PB_CANCEL))\
+ ,m_aHelp (this, SvtResId(PB_HELP))\
,m_sNoFieldSelection(SvtResId(STR_NO_FIELD_SELECTION))\
,m_xORB(_rxORB)
@@ -728,7 +728,7 @@ void AssignmentPersistentData::Commit()
AliasProgrammaticPair* pPair = _rMapping.getArray();
::rtl::OUString sCurrent;
- for ( ConstStringArrayIterator aProgrammatic = m_pImpl->aLogicalFieldNames.begin();
+ for ( ConstStringArrayIterator aProgrammatic = m_pImpl->aLogicalFieldNames.begin();
aProgrammatic != m_pImpl->aLogicalFieldNames.end();
++aProgrammatic
)
@@ -756,7 +756,7 @@ void AssignmentPersistentData::Commit()
OFileNotation aFileNotation( aURL.GetMainURL( INetURLObject::NO_DECODE ) );
sName = aFileNotation.get(OFileNotation::N_SYSTEM);
}
-
+
m_aDatasource.SetText(sName);
m_aTable.SetText(m_pImpl->pConfigData->getCommand());
// we ignore the CommandType: only tables are supported
@@ -767,7 +767,7 @@ void AssignmentPersistentData::Commit()
ConstStringArrayIterator aLogical = m_pImpl->aLogicalFieldNames.begin();
StringArrayIterator aAssignment = m_pImpl->aFieldAssignments.begin();
- for ( ;
+ for ( ;
aLogical < m_pImpl->aLogicalFieldNames.end();
++aLogical, ++aAssignment
)
@@ -874,7 +874,7 @@ void AssignmentPersistentData::Commit()
if ( m_pImpl->bWorkingPersistent )
{
String sSelectedDS = lcl_getSelectedDataSource( m_aDatasource );
-
+
// get the data source the user has chosen and let it build a connection
INetURLObject aURL( sSelectedDS );
if ( aURL.GetProtocol() != INET_PROT_NOT_VALID || m_xDatabaseContext->hasByName(sSelectedDS) )
@@ -966,7 +966,7 @@ void AssignmentPersistentData::Commit()
{
DBG_ERROR("AddressBookSourceDialog::resetFields: could not retrieve the table columns!");
}
-
+
const ::rtl::OUString* pColumnNames = aColumnNames.getConstArray();
const ::rtl::OUString* pEnd = pColumnNames + aColumnNames.getLength();
@@ -1009,7 +1009,7 @@ void AssignmentPersistentData::Commit()
}
// adjust m_pImpl->aFieldAssignments
- for ( StringArrayIterator aAdjust = m_pImpl->aFieldAssignments.begin();
+ for ( StringArrayIterator aAdjust = m_pImpl->aFieldAssignments.begin();
aAdjust != m_pImpl->aFieldAssignments.end();
++aAdjust
)
@@ -1096,7 +1096,7 @@ void AssignmentPersistentData::Commit()
implSelectField(*pRightListControl, *pRightAssignment);
// the index of the last visible list box
- ++m_pImpl->nLastVisibleListIndex; // the left hand side box is always visible
+ ++m_pImpl->nLastVisibleListIndex; // the left hand side box is always visible
if (!bHideRightColumn)
++m_pImpl->nLastVisibleListIndex;
@@ -1117,7 +1117,7 @@ void AssignmentPersistentData::Commit()
}
if (_bAdjustFocus && (nOldFocusRow >= 0))
- { // we have to adjust the focus and one of the list boxes has the focus
+ { // we have to adjust the focus and one of the list boxes has the focus
sal_Int32 nDelta = m_pImpl->nFieldScrollPos - _nPos;
// the new row for the focus
sal_Int32 nNewFocusRow = nOldFocusRow + nDelta;
@@ -1203,12 +1203,12 @@ void AssignmentPersistentData::Commit()
// set the field assignments
ConstStringArrayIterator aLogical = m_pImpl->aLogicalFieldNames.begin();
ConstStringArrayIterator aAssignment = m_pImpl->aFieldAssignments.begin();
- for ( ;
+ for ( ;
aLogical < m_pImpl->aLogicalFieldNames.end();
++aLogical, ++aAssignment
)
m_pImpl->pConfigData->setFieldAssignment(*aLogical, *aAssignment);
-
+
EndDialog(RET_OK);
return 0L;
@@ -1245,7 +1245,7 @@ void AssignmentPersistentData::Commit()
{
::rtl::OUString sName;
xProp->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DataSourceName"))) >>= sName;
-
+
INetURLObject aURL( sName );
if( aURL.GetProtocol() != INET_PROT_NOT_VALID )
{
@@ -1268,8 +1268,8 @@ void AssignmentPersistentData::Commit()
// re-fill the data source list
// try to preserve the current selection
-
-// initializeDatasources();
+
+// initializeDatasources();
return 0L;
}
@@ -1281,20 +1281,20 @@ void AssignmentPersistentData::Commit()
{
case EVENT_KEYINPUT:
{
- const KeyEvent* pKeyEvent = _rNEvt.GetKeyEvent();
+ const KeyEvent* pKeyEvent = _rNEvt.GetKeyEvent();
sal_uInt16 nCode = pKeyEvent->GetKeyCode().GetCode();
sal_Bool bShift = pKeyEvent->GetKeyCode().IsShift();
sal_Bool bCtrl = pKeyEvent->GetKeyCode().IsMod1();
- sal_Bool bAlt = pKeyEvent->GetKeyCode().IsMod2();
+ sal_Bool bAlt = pKeyEvent->GetKeyCode().IsMod2();
if (KEY_TAB == nCode)
- { // somebody pressed the tab key
+ { // somebody pressed the tab key
if (!bAlt && !bCtrl && !bShift)
- { // it's really the only the key (no modifiers)
+ { // it's really the only the key (no modifiers)
if (m_pImpl->pFields[m_pImpl->nLastVisibleListIndex]->HasChildPathFocus())
// the last of our visible list boxes has the focus
if (m_pImpl->nFieldScrollPos < m_aFieldScroller.GetRangeMax())
- { // we can still scroll down
+ { // we can still scroll down
sal_Int32 nNextFocusList = m_pImpl->nLastVisibleListIndex + 1 - 2;
// -> scroll down
implScrollFields(m_pImpl->nFieldScrollPos + 1, sal_False, sal_True);
@@ -1305,11 +1305,11 @@ void AssignmentPersistentData::Commit()
}
}
else if (!bAlt && !bCtrl && bShift)
- { // it's shift-tab
+ { // it's shift-tab
if (m_pImpl->pFields[0]->HasChildPathFocus())
// our first list box has the focus
if (m_pImpl->nFieldScrollPos > 0)
- { // we can still scroll up
+ { // we can still scroll up
// -> scroll up
implScrollFields(m_pImpl->nFieldScrollPos - 1, sal_False, sal_True);
// give the right control in the "prebious" line the focus
@@ -1326,7 +1326,7 @@ void AssignmentPersistentData::Commit()
}
// .......................................................................
-} // namespace svt
+} // namespace svt
// .......................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/dialogs/addresstemplate.hrc b/svtools/source/dialogs/addresstemplate.hrc
index 5fb89cd567fc..45e3f1b06a18 100644
--- a/svtools/source/dialogs/addresstemplate.hrc
+++ b/svtools/source/dialogs/addresstemplate.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,59 +29,59 @@
#define _SVT_ADDRESSTEMPLATE_HRC_
-#define FIELD_PAIRS_VISIBLE 5
-#define FIELD_CONTROLS_VISIBLE 2 * FIELD_PAIRS_VISIBLE
+#define FIELD_PAIRS_VISIBLE 5
+#define FIELD_CONTROLS_VISIBLE 2 * FIELD_PAIRS_VISIBLE
-#define FL_DATASOURCEFRAME 1
-#define FT_DATASOURCE 2
-#define CB_DATASOURCE 3
-#define CT_BORDER 1
-#define PB_ADMINISTATE_DATASOURCES 4
-#define FT_TABLE 5
-#define CB_TABLE 6
-#define FT_FIELDS 7
-#define SB_FIELDSCROLLER 8
-#define PB_OK 9
-#define PB_CANCEL 10
-#define PB_HELP 11
+#define FL_DATASOURCEFRAME 1
+#define FT_DATASOURCE 2
+#define CB_DATASOURCE 3
+#define CT_BORDER 1
+#define PB_ADMINISTATE_DATASOURCES 4
+#define FT_TABLE 5
+#define CB_TABLE 6
+#define FT_FIELDS 7
+#define SB_FIELDSCROLLER 8
+#define PB_OK 9
+#define PB_CANCEL 10
+#define PB_HELP 11
-#define FT_FIELD_BASE 50
-#define LB_FIELD_BASE 50
+#define FT_FIELD_BASE 50
+#define LB_FIELD_BASE 50
-#define STR_NO_FIELD_SELECTION 1
-#define STR_FIELD_COMPANY 2
-#define STR_FIELD_DEPARTMENT 3
-#define STR_FIELD_FIRSTNAME 4
-#define STR_FIELD_LASTNAME 5
-#define STR_FIELD_STREET 6
-#define STR_FIELD_COUNTRY 7
-#define STR_FIELD_ZIPCODE 8
-#define STR_FIELD_CITY 9
-#define STR_FIELD_TITLE 10
-#define STR_FIELD_POSITION 11
-#define STR_FIELD_ADDRFORM 12
-#define STR_FIELD_INITIALS 13
-#define STR_FIELD_SALUTATION 14
-#define STR_FIELD_HOMETEL 15
-#define STR_FIELD_WORKTEL 16
-#define STR_FIELD_FAX 17
-#define STR_FIELD_EMAIL 18
-#define STR_FIELD_URL 19
-#define STR_FIELD_NOTE 20
-#define STR_FIELD_USER1 21
-#define STR_FIELD_USER2 22
-#define STR_FIELD_USER3 23
-#define STR_FIELD_USER4 24
-#define STR_FIELD_ID 25
-#define STR_FIELD_STATE 26
-#define STR_FIELD_OFFICETEL 27
-#define STR_FIELD_PAGER 28
-#define STR_FIELD_MOBILE 29
-#define STR_FIELD_TELOTHER 30
-#define STR_FIELD_CALENDAR 31
-#define STR_FIELD_INVITE 32
+#define STR_NO_FIELD_SELECTION 1
+#define STR_FIELD_COMPANY 2
+#define STR_FIELD_DEPARTMENT 3
+#define STR_FIELD_FIRSTNAME 4
+#define STR_FIELD_LASTNAME 5
+#define STR_FIELD_STREET 6
+#define STR_FIELD_COUNTRY 7
+#define STR_FIELD_ZIPCODE 8
+#define STR_FIELD_CITY 9
+#define STR_FIELD_TITLE 10
+#define STR_FIELD_POSITION 11
+#define STR_FIELD_ADDRFORM 12
+#define STR_FIELD_INITIALS 13
+#define STR_FIELD_SALUTATION 14
+#define STR_FIELD_HOMETEL 15
+#define STR_FIELD_WORKTEL 16
+#define STR_FIELD_FAX 17
+#define STR_FIELD_EMAIL 18
+#define STR_FIELD_URL 19
+#define STR_FIELD_NOTE 20
+#define STR_FIELD_USER1 21
+#define STR_FIELD_USER2 22
+#define STR_FIELD_USER3 23
+#define STR_FIELD_USER4 24
+#define STR_FIELD_ID 25
+#define STR_FIELD_STATE 26
+#define STR_FIELD_OFFICETEL 27
+#define STR_FIELD_PAGER 28
+#define STR_FIELD_MOBILE 29
+#define STR_FIELD_TELOTHER 30
+#define STR_FIELD_CALENDAR 31
+#define STR_FIELD_INVITE 32
-#define STR_LOCAGICAL_FIELD_NAMES 33
+#define STR_LOCAGICAL_FIELD_NAMES 33
#endif // _SVT_ADDRESSTEMPLATE_HRC_
diff --git a/svtools/source/dialogs/addresstemplate.src b/svtools/source/dialogs/addresstemplate.src
index 0652dfb9d0f5..d038e83a773f 100644
--- a/svtools/source/dialogs/addresstemplate.src
+++ b/svtools/source/dialogs/addresstemplate.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#include "controldims.hrc"
#endif
-#define FIELD_ROW_HEIGHT 17
+#define FIELD_ROW_HEIGHT 17
ModalDialog DLG_ADDRESSBOOKSOURCE
{
@@ -111,22 +111,22 @@ ModalDialog DLG_ADDRESSBOOKSOURCE
Size = MAP_APPFONT ( 288 , 5 + FIELD_ROW_HEIGHT * FIELD_PAIRS_VISIBLE ) ;
};
-#define DECLARE_FIELD( row, column ) \
- FixedText FT_FIELD_BASE + row * 2 + column \
- { \
- SVLook = TRUE ; \
+#define DECLARE_FIELD( row, column ) \
+ FixedText FT_FIELD_BASE + row * 2 + column \
+ { \
+ SVLook = TRUE ; \
Pos = MAP_APPFONT ( 3 + column * 134, RSC_SP_CTRL_GROUP_Y + 2 + row * FIELD_ROW_HEIGHT ) ; \
Size = MAP_APPFONT ( 79 , 10 ) ; \
- Group = TRUE; \
- }; \
- ListBox LB_FIELD_BASE + row * 2 + column \
- { \
- SVLook = TRUE; \
+ Group = TRUE; \
+ }; \
+ ListBox LB_FIELD_BASE + row * 2 + column \
+ { \
+ SVLook = TRUE; \
Pos = MAP_APPFONT ( 89 + column * 134, RSC_SP_CTRL_GROUP_Y + row * FIELD_ROW_HEIGHT ) ; \
- Size = MAP_APPFONT ( 42 , 14 ) ; \
- Border = TRUE; \
- DropDown = TRUE; \
- TabStop = TRUE; \
+ Size = MAP_APPFONT ( 42 , 14 ) ; \
+ Border = TRUE; \
+ DropDown = TRUE; \
+ TabStop = TRUE; \
}
#if FIELD_PAIRS_VISIBLE > 0
diff --git a/svtools/source/dialogs/colctrl.cxx b/svtools/source/dialogs/colctrl.cxx
index 1c63af7a96a2..4a988ea8ca9a 100644
--- a/svtools/source/dialogs/colctrl.cxx
+++ b/svtools/source/dialogs/colctrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,20 +40,20 @@
// ----------------
SvColorControl::SvColorControl( Window* pParent, WinBits nStyle ) :
- Control ( pParent, nStyle ),
- mpBitmap ( NULL ),
- mpReadAccess ( NULL ),
- mnLuminance ( 50 )
+ Control ( pParent, nStyle ),
+ mpBitmap ( NULL ),
+ mpReadAccess ( NULL ),
+ mnLuminance ( 50 )
{
Initialize();
}
// -----------------------------------------------------------------------
SvColorControl::SvColorControl( Window* pParent, const ResId& rResId ) :
- Control ( pParent, rResId ),
- mpBitmap ( NULL ),
- mpReadAccess ( NULL ),
- mnLuminance ( 50 )
+ Control ( pParent, rResId ),
+ mpBitmap ( NULL ),
+ mpReadAccess ( NULL ),
+ mnLuminance ( 50 )
{
Initialize();
}
@@ -75,7 +75,7 @@ void SvColorControl::Initialize()
void SvColorControl::CreateBitmap()
{
const Size aSize( GetOutputSizePixel() );
-
+
if( mpBitmap && mpBitmap->GetSizePixel() != aSize )
delete mpBitmap, mpBitmap = NULL;
@@ -102,7 +102,7 @@ void SvColorControl::CreateBitmap()
aColHSB.SetHue( nHue );
aColHSB.SetSat( nSat );
-
+
// mpBitmap always has a bit count of 24 => use of SetPixel(...) is safe
pWriteAccess->SetPixel( i, j, BitmapColor( aColHSB.GetRGB() ) );
}
@@ -230,7 +230,7 @@ void SvColorControl::SetColor( const ColorHSB& rCol, BOOL bSetColor )
USHORT nX = (USHORT) mpBitmap->GetSizePixel().Width();
USHORT nY = (USHORT) mpBitmap->GetSizePixel().Height();
INT16 nZ = rCol.GetBri();
-
+
SetLuminance( nZ );
nX = rCol.GetHue() * nX / 360; // Farbe
nY = nY - rCol.GetSat() * nY / 100; // Saettigung
@@ -287,7 +287,7 @@ void SvColorControl::SetLuminance( short nLum )
// -----------------------------------------------------------------------
ColorPreviewControl::ColorPreviewControl( Window* pParent, WinBits nStyle ) :
- Control ( pParent, nStyle )
+ Control ( pParent, nStyle )
{
SetFillColor( maColor );
SetLineColor( maColor );
@@ -295,7 +295,7 @@ ColorPreviewControl::ColorPreviewControl( Window* pParent, WinBits nStyle ) :
// -----------------------------------------------------------------------
ColorPreviewControl::ColorPreviewControl( Window* pParent, const ResId& rResId ) :
- Control ( pParent, rResId )
+ Control ( pParent, rResId )
{
SetFillColor( maColor );
SetLineColor( maColor );
@@ -334,9 +334,9 @@ void ColorPreviewControl::SetColor( const Color& rCol )
// -----------------------------------------------------------------------
ColorMixingControl::ColorMixingControl( Window* pParent, WinBits nStyle,
USHORT nRows, USHORT nColumns ) :
- ValueSet ( pParent, nStyle ),
- mnRows ( nRows ),
- mnColumns ( nColumns )
+ ValueSet ( pParent, nStyle ),
+ mnRows ( nRows ),
+ mnColumns ( nColumns )
{
Initialize();
}
@@ -344,9 +344,9 @@ ColorMixingControl::ColorMixingControl( Window* pParent, WinBits nStyle,
// -----------------------------------------------------------------------
ColorMixingControl::ColorMixingControl( Window* pParent, const ResId& rResId,
USHORT nRows, USHORT nColumns ) :
- ValueSet ( pParent, rResId ),
- mnRows ( nRows ),
- mnColumns ( nColumns )
+ ValueSet ( pParent, rResId ),
+ mnRows ( nRows ),
+ mnColumns ( nColumns )
{
Initialize();
}
@@ -498,7 +498,7 @@ void ColorMixingControl::SetColor( CMCPosition ePos, const Color& rCol )
// -----------------------------------------------------------------------
String ColorMixingControl::GetRGBString( const Color& rColor )
{
- String aStr( String::CreateFromInt32(rColor.GetRed()) );
+ String aStr( String::CreateFromInt32(rColor.GetRed()) );
aStr += ' ';
aStr += String::CreateFromInt32(rColor.GetGreen());
aStr += ' ';
@@ -507,7 +507,7 @@ String ColorMixingControl::GetRGBString( const Color& rColor )
return aStr;
}
// -----------------------------------------------------------------------
-CMCPosition ColorMixingControl::GetCMCPosition() const
+CMCPosition ColorMixingControl::GetCMCPosition() const
{
CMCPosition ePos = CMC_OTHER;
USHORT nPos = GetSelectItemId();
@@ -643,13 +643,13 @@ Color ColorHSB::GetRGB() const
switch( n )
{
- case 0: cR = nB; cG = c; cB = a; break;
- case 1: cR = b; cG = nB; cB = a; break;
- case 2: cR = a; cG = nB; cB = c; break;
- case 3: cR = a; cG = b; cB = nB; break;
- case 4: cR = c; cG = a; cB = nB; break;
- case 5: cR = nB; cG = a; cB = b; break;
- default: cR = 0; cG = 0; cB = 0; break; // -Wall ????
+ case 0: cR = nB; cG = c; cB = a; break;
+ case 1: cR = b; cG = nB; cB = a; break;
+ case 2: cR = a; cG = nB; cB = c; break;
+ case 3: cR = a; cG = b; cB = nB; break;
+ case 4: cR = c; cG = a; cB = nB; break;
+ case 5: cR = nB; cG = a; cB = b; break;
+ default: cR = 0; cG = 0; cB = 0; break; // -Wall ????
}
}
diff --git a/svtools/source/dialogs/colrdlg.cxx b/svtools/source/dialogs/colrdlg.cxx
index de973dcbcd4a..1a2a31e5e828 100644
--- a/svtools/source/dialogs/colrdlg.cxx
+++ b/svtools/source/dialogs/colrdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,16 +38,16 @@
// ---------------
SvColorDialog::SvColorDialog( Window* pWindow ) :
- ModalDialog ( pWindow, SvtResId( DLG_COLOR ) ),
- maColMixCtrl ( this, SvtResId( VAL_SET_COLOR ), 8, 8 ),
- maBtn1 ( this, SvtResId( BTN_1 ) ),
- maBtn2 ( this, SvtResId( BTN_2 ) ),
- //maBtn3 ( this, SvtResId( BTN_3 ) ),
- //maBtn4 ( this, SvtResId( BTN_4 ) ),
- //maFtRGB ( this, SvtResId( FT_RGB ) ),
- maCtlColor ( this, SvtResId( CTL_COLOR ) ),
-
- maFtCyan ( this, SvtResId( FT_CYAN ) ),
+ ModalDialog ( pWindow, SvtResId( DLG_COLOR ) ),
+ maColMixCtrl ( this, SvtResId( VAL_SET_COLOR ), 8, 8 ),
+ maBtn1 ( this, SvtResId( BTN_1 ) ),
+ maBtn2 ( this, SvtResId( BTN_2 ) ),
+ //maBtn3 ( this, SvtResId( BTN_3 ) ),
+ //maBtn4 ( this, SvtResId( BTN_4 ) ),
+ //maFtRGB ( this, SvtResId( FT_RGB ) ),
+ maCtlColor ( this, SvtResId( CTL_COLOR ) ),
+
+ maFtCyan ( this, SvtResId( FT_CYAN ) ),
maNumCyan ( this, SvtResId( NUM_CYAN ) ),
maFtMagenta ( this, SvtResId( FT_MAGENTA ) ),
maNumMagenta ( this, SvtResId( NUM_MAGENTA ) ),
@@ -56,26 +56,26 @@ SvColorDialog::SvColorDialog( Window* pWindow ) :
maFtKey ( this, SvtResId( FT_KEY ) ),
maNumKey ( this, SvtResId( NUM_KEY ) ),
- maFtRed ( this, SvtResId( FT_RED ) ),
- maNumRed ( this, SvtResId( NUM_RED ) ),
- maFtGreen ( this, SvtResId( FT_GREEN ) ),
- maNumGreen ( this, SvtResId( NUM_GREEN ) ),
- maFtBlue ( this, SvtResId( FT_BLUE ) ),
- maNumBlue ( this, SvtResId( NUM_BLUE ) ),
-
- maFtHue ( this, SvtResId( FT_HUE ) ),
- maNumHue ( this, SvtResId( NUM_HUE ) ),
- maFtSaturation ( this, SvtResId( FT_SATURATION ) ),
- maNumSaturation ( this, SvtResId( NUM_SATURATION ) ),
- maFtLuminance ( this, SvtResId( FT_LUMINANCE ) ),
- maNumLuminance ( this, SvtResId( NUM_LUMINANCE ) ),
-
- maCtlPreview ( this, SvtResId( CTL_PREVIEW ) ),
+ maFtRed ( this, SvtResId( FT_RED ) ),
+ maNumRed ( this, SvtResId( NUM_RED ) ),
+ maFtGreen ( this, SvtResId( FT_GREEN ) ),
+ maNumGreen ( this, SvtResId( NUM_GREEN ) ),
+ maFtBlue ( this, SvtResId( FT_BLUE ) ),
+ maNumBlue ( this, SvtResId( NUM_BLUE ) ),
+
+ maFtHue ( this, SvtResId( FT_HUE ) ),
+ maNumHue ( this, SvtResId( NUM_HUE ) ),
+ maFtSaturation ( this, SvtResId( FT_SATURATION ) ),
+ maNumSaturation ( this, SvtResId( NUM_SATURATION ) ),
+ maFtLuminance ( this, SvtResId( FT_LUMINANCE ) ),
+ maNumLuminance ( this, SvtResId( NUM_LUMINANCE ) ),
+
+ maCtlPreview ( this, SvtResId( CTL_PREVIEW ) ),
maCtlPreviewOld ( this, SvtResId( CTL_PREVIEW_OLD ) ),
- maBtnOK ( this, SvtResId( BTN_OK ) ),
- maBtnCancel ( this, SvtResId( BTN_CANCEL ) ),
- maBtnHelp ( this, SvtResId( BTN_HELP ) )
+ maBtnOK ( this, SvtResId( BTN_OK ) ),
+ maBtnCancel ( this, SvtResId( BTN_CANCEL ) ),
+ maBtnHelp ( this, SvtResId( BTN_HELP ) )
{
FreeResource();
diff --git a/svtools/source/dialogs/colrdlg.hrc b/svtools/source/dialogs/colrdlg.hrc
index 41329df6e366..7734866da2ca 100644
--- a/svtools/source/dialogs/colrdlg.hrc
+++ b/svtools/source/dialogs/colrdlg.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/colrdlg.src b/svtools/source/dialogs/colrdlg.src
index 55517299c057..d7486d2e3865 100644
--- a/svtools/source/dialogs/colrdlg.src
+++ b/svtools/source/dialogs/colrdlg.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/filedlg.cxx b/svtools/source/dialogs/filedlg.cxx
index bbcd2964773d..63a68e55567f 100644
--- a/svtools/source/dialogs/filedlg.cxx
+++ b/svtools/source/dialogs/filedlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/filedlg2.cxx b/svtools/source/dialogs/filedlg2.cxx
index a4502631595e..ab7b3dada20c 100644
--- a/svtools/source/dialogs/filedlg2.cxx
+++ b/svtools/source/dialogs/filedlg2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,16 +56,16 @@ using namespace com::sun::star::uno;
DECLARE_LIST( UniStringList, UniString* )
-#define STD_BTN_WIDTH 80
-#define STD_BTN_HEIGHT 26
+#define STD_BTN_WIDTH 80
+#define STD_BTN_HEIGHT 26
#ifndef UNX
- #define ALLFILES "*.*"
+ #define ALLFILES "*.*"
#else
- #define ALLFILES "*"
+ #define ALLFILES "*"
#endif
-// #define STD_BTN_WIDTH 90
-// #define STD_BTN_HEIGHT 35
+// #define STD_BTN_WIDTH 90
+// #define STD_BTN_HEIGHT 35
#define INITCONTROL( p, ControlClass, nBits, aPos, aSize, aTitel, nHelpId ) \
p = new ControlClass( GetPathDialog(), WinBits( nBits ) ); \
@@ -85,8 +85,8 @@ KbdListBox::PreNotify( NotifyEvent& rNEvt )
{
if ( rNEvt.GetType() == EVENT_KEYINPUT )
{
- KeyEvent aKeyEvt = *rNEvt.GetKeyEvent();
- sal_Unicode cCharCode = aKeyEvt.GetCharCode();
+ KeyEvent aKeyEvt = *rNEvt.GetKeyEvent();
+ sal_Unicode cCharCode = aKeyEvt.GetCharCode();
if ( IsPrintable ( cCharCode ) )
{
@@ -133,7 +133,7 @@ ImpPathDialog::ImpPathDialog( PathDialog* pDlg, RESOURCE_TYPE nType, BOOL bCreat
pDlg->SetHelpId( HID_FILEDLG_PATHDLG );
- lang::Locale aLocale = Application::GetSettings().GetLocale();
+ lang::Locale aLocale = Application::GetSettings().GetLocale();
xCollator = ::vcl::unohelper::CreateCollator();
if( xCollator.is() )
xCollator->loadDefaultCollator( aLocale, 1 );
@@ -152,9 +152,9 @@ ImpPathDialog::~ImpPathDialog()
delete pOkBtn;
delete pCancelBtn;
delete pNewDirBtn;
-# if defined(UNX) || defined(OS2)
+# if defined(UNX) || defined(OS2)
delete pHomeBtn;
-# endif
+# endif
}
void ImpPathDialog::InitControls()
@@ -517,7 +517,7 @@ BOOL ImpPathDialog::IsFileOk( const DirEntry& rDirEntry )
aQueryTxt.SearchAndReplaceAscii( "%s", rDirEntry.GetFull() );
QueryBox aQuery( GetPathDialog(),
WB_YES_NO | WB_DEF_YES,
- aQueryTxt );
+ aQueryTxt );
if( aQuery.Execute() == RET_YES )
rDirEntry.MakeDir();
else
@@ -545,9 +545,9 @@ void ImpPathDialog::PreExecute()
UpdateEntries( TRUE );
// Zusaetzliche Buttons anordnen
- Point aPos;
- Size aSize;
- long nDY;
+ Point aPos;
+ Size aSize;
+ long nDY;
if( pLoadBtn )
{
aPos = pLoadBtn->GetPosPixel();
@@ -630,7 +630,7 @@ void ImpPathDialog::PreExecute()
for( i = 0; i < nCount; ++i )
{
DirEntry& rEntry = aDir[i];
- UniString aStr = rEntry.GetFull( FSYS_STYLE_HOST, FALSE );
+ UniString aStr = rEntry.GetFull( FSYS_STYLE_HOST, FALSE );
UniString aVolume = rEntry.GetVolume() ;
aStr.ToUpperAscii();
@@ -913,9 +913,9 @@ IMPL_LINK( ImpFileDialog, DblClickHdl, ListBox *, pBox )
else
{
UniString aFilterListMask = aFilterList.GetObject( nCurPos )->aMask;
-// if( aFilterListMask.Search( ';' ) == STRING_NOTFOUND ) // kein ; in der Maske
-// aMask = WildCard( aFilterListMask, '\0' );
-// else // ; muss beruecksichtigt werden
+// if( aFilterListMask.Search( ';' ) == STRING_NOTFOUND ) // kein ; in der Maske
+// aMask = WildCard( aFilterListMask, '\0' );
+// else // ; muss beruecksichtigt werden
aMask = WildCard( aFilterListMask, ';' );
}
@@ -1017,7 +1017,7 @@ void ImpFileDialog::UpdateEntries( const BOOL bWithDirs )
WildCard aTmpMask( aWildCard, ';' );
if ( nEntries )
{
- UniStringList aSortDirList;
+ UniStringList aSortDirList;
for ( USHORT n = 0; n < nEntries; n++ )
{
DirEntry& rEntry = aDir[n];
@@ -1148,7 +1148,7 @@ void ImpFileDialog::SetPath( UniString const & rPath )
// Falls der Pfad eine Wildcard oder einen Filenamen enthaelt
// -> abschneiden und merken
- if( FileStat( aFile ).GetKind() & (FSYS_KIND_FILE | FSYS_KIND_WILD) || !aFile.Exists() )
+ if( FileStat( aFile ).GetKind() & (FSYS_KIND_FILE | FSYS_KIND_WILD) || !aFile.Exists() )
{
aMask = aFile.CutName();
@@ -1242,7 +1242,7 @@ void ImpFileDialog::PreExecute()
{
// ListBoxen erst unmittelbar vor Execute fuellen
// (damit vor Execute der Pfad umgesetzt werden kann, ohne das immer die
- // Listboxen sofort upgedatet werden)
+ // Listboxen sofort upgedatet werden)
GetFileDialog()->EnterWait();
diff --git a/svtools/source/dialogs/filedlg2.hxx b/svtools/source/dialogs/filedlg2.hxx
index c562840d53ef..9a5874a7fd15 100644
--- a/svtools/source/dialogs/filedlg2.hxx
+++ b/svtools/source/dialogs/filedlg2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,20 +77,20 @@ class ImpPathDialog
friend class ImpFileDialog;
private:
- PathDialog* pSvPathDialog;
- Edit* pEdit;
+ PathDialog* pSvPathDialog;
+ Edit* pEdit;
FixedText* pDirTitel;
KbdListBox* pDirList;
FixedText* pDirPath;
- ListBox* pDriveList;
- FixedText* pDriveTitle;
+ ListBox* pDriveList;
+ FixedText* pDriveTitle;
PushButton* pLoadBtn;
PushButton* pOkBtn;
PushButton* pCancelBtn;
PushButton* pHomeBtn;
PushButton* pNewDirBtn;
- USHORT nOwnChilds;
+ USHORT nOwnChilds;
DirEntry aPath; // aktuell angewaehlter Pfad
USHORT nDirCount; // Anzahl der Verzeichnis-
@@ -101,31 +101,31 @@ private:
protected:
- virtual void UpdateEntries( const BOOL bWithDirs );
- void UpdateDirs( const DirEntry& rTmpPath );
+ virtual void UpdateEntries( const BOOL bWithDirs );
+ void UpdateDirs( const DirEntry& rTmpPath );
- BOOL IsFileOk( const DirEntry& rDirEntry );
- void InitControls();
+ BOOL IsFileOk( const DirEntry& rDirEntry );
+ void InitControls();
- DECL_LINK( SelectHdl, ListBox * );
- DECL_LINK( DblClickHdl, ListBox * );
- DECL_LINK( ClickHdl, Button * );
+ DECL_LINK( SelectHdl, ListBox * );
+ DECL_LINK( DblClickHdl, ListBox * );
+ DECL_LINK( ClickHdl, Button * );
public:
ImpPathDialog( PathDialog* pDlg, RESOURCE_TYPE nType, BOOL bCreateDir );
- virtual ~ImpPathDialog();
+ virtual ~ImpPathDialog();
- virtual void SetPath( const String& rPath );
- virtual void SetPath( const Edit& rEdit );
- virtual String GetPath() const;
+ virtual void SetPath( const String& rPath );
+ virtual void SetPath( const Edit& rEdit );
+ virtual String GetPath() const;
- virtual void PreExecute();
- virtual void PostExecute();
+ virtual void PreExecute();
+ virtual void PostExecute();
- PathDialog* GetPathDialog() const { return pSvPathDialog; }
+ PathDialog* GetPathDialog() const { return pSvPathDialog; }
- void SetOkButtonText( const String& rText ) { pOkBtn->SetText( rText ); }
- void SetCancelButtonText( const String& rText ) { pCancelBtn->SetText( rText ); }
+ void SetOkButtonText( const String& rText ) { pOkBtn->SetText( rText ); }
+ void SetCancelButtonText( const String& rText ) { pCancelBtn->SetText( rText ); }
};
@@ -136,48 +136,48 @@ private:
FixedText* pFileTitel;
ListBox* pFileList;
FixedText* pTypeTitel;
- ListBox* pTypeList;
+ ListBox* pTypeList;
WildCard aMask; // aktuelle Maske
- ImpFilterList aFilterList; // Filterliste
+ ImpFilterList aFilterList; // Filterliste
USHORT nCurFilter; // aktueller Filter
BOOL bOpen; // TRUE = Open; FALSE = SAVEAS
protected:
- void InitControls();
+ void InitControls();
- String ExtendFileName( DirEntry aEntry ) const;
+ String ExtendFileName( DirEntry aEntry ) const;
- DECL_LINK( SelectHdl, ListBox * );
- DECL_LINK( DblClickHdl, ListBox * );
- DECL_LINK( ClickHdl, Button * );
+ DECL_LINK( SelectHdl, ListBox * );
+ DECL_LINK( DblClickHdl, ListBox * );
+ DECL_LINK( ClickHdl, Button * );
- virtual void UpdateEntries( const BOOL bWithDirs );
- BOOL IsFileOk( const DirEntry& rDirEntry );
+ virtual void UpdateEntries( const BOOL bWithDirs );
+ BOOL IsFileOk( const DirEntry& rDirEntry );
public:
ImpFileDialog( PathDialog* pDlg, WinBits nStyle, RESOURCE_TYPE nType );
- virtual ~ImpFileDialog();
+ virtual ~ImpFileDialog();
- void AddFilter( const String& rFilter, const String& rMask );
- void RemoveFilter( const String& rFilter );
- void RemoveAllFilter();
- void SetCurFilter( const String& rFilter );
- String GetCurFilter() const;
+ void AddFilter( const String& rFilter, const String& rMask );
+ void RemoveFilter( const String& rFilter );
+ void RemoveAllFilter();
+ void SetCurFilter( const String& rFilter );
+ String GetCurFilter() const;
- USHORT GetFilterCount() const { return (USHORT)aFilterList.Count(); }
- inline String GetFilterName( USHORT nPos ) const;
- inline String GetFilterType( USHORT nPos ) const;
+ USHORT GetFilterCount() const { return (USHORT)aFilterList.Count(); }
+ inline String GetFilterName( USHORT nPos ) const;
+ inline String GetFilterType( USHORT nPos ) const;
- virtual void SetPath( const String& rPath );
- virtual void SetPath( const Edit& rEdit );
- virtual String GetPath() const;
+ virtual void SetPath( const String& rPath );
+ virtual void SetPath( const Edit& rEdit );
+ virtual String GetPath() const;
- virtual void PreExecute();
+ virtual void PreExecute();
- FileDialog* GetFileDialog() const { return (FileDialog*)GetPathDialog(); }
+ FileDialog* GetFileDialog() const { return (FileDialog*)GetPathDialog(); }
};
inline String ImpFileDialog::GetFilterName( USHORT nPos ) const
@@ -201,17 +201,17 @@ inline String ImpFileDialog::GetFilterType( USHORT nPos ) const
class ImpSvFileDlg
{
private:
- ImpPathDialog* pDlg;
+ ImpPathDialog* pDlg;
public:
- ImpSvFileDlg() { pDlg = 0; }
- ~ImpSvFileDlg() { delete pDlg; }
+ ImpSvFileDlg() { pDlg = 0; }
+ ~ImpSvFileDlg() { delete pDlg; }
- ImpPathDialog* GetDialog() const { return pDlg; }
- void CreateDialog( PathDialog* pCreateFrom, WinBits nStyle, RESOURCE_TYPE nType, BOOL bCreate );
+ ImpPathDialog* GetDialog() const { return pDlg; }
+ void CreateDialog( PathDialog* pCreateFrom, WinBits nStyle, RESOURCE_TYPE nType, BOOL bCreate );
- void SetOkButtonText( const String& rText ) { pDlg->SetOkButtonText( rText ); } // ihr habts ja nicht anders gewollt
- void SetCancelButtonText( const String& rText ) { pDlg->SetCancelButtonText( rText ); }
+ void SetOkButtonText( const String& rText ) { pDlg->SetOkButtonText( rText ); } // ihr habts ja nicht anders gewollt
+ void SetCancelButtonText( const String& rText ) { pDlg->SetCancelButtonText( rText ); }
};
diff --git a/svtools/source/dialogs/filedlg2.src b/svtools/source/dialogs/filedlg2.src
index 977a0d6f430b..6a707a9ad4a4 100644
--- a/svtools/source/dialogs/filedlg2.src
+++ b/svtools/source/dialogs/filedlg2.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/formats.src b/svtools/source/dialogs/formats.src
index f8ce80f62f2f..ccd806a275b4 100644
--- a/svtools/source/dialogs/formats.src
+++ b/svtools/source/dialogs/formats.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/insdlg.cxx b/svtools/source/dialogs/insdlg.cxx
index fba9d66cdf73..b6d01b1e6c75 100644
--- a/svtools/source/dialogs/insdlg.cxx
+++ b/svtools/source/dialogs/insdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,14 +58,14 @@ using namespace ::com::sun::star;
struct OleObjectDescriptor
{
- sal_uInt32 cbSize;
- ClsId clsid;
- sal_uInt32 dwDrawAspect;
- Size sizel;
- Point pointl;
- sal_uInt32 dwStatus;
- sal_uInt32 dwFullUserTypeName;
- sal_uInt32 dwSrcOfCopy;
+ sal_uInt32 cbSize;
+ ClsId clsid;
+ sal_uInt32 dwDrawAspect;
+ Size sizel;
+ Point pointl;
+ sal_uInt32 dwStatus;
+ sal_uInt32 dwFullUserTypeName;
+ sal_uInt32 dwSrcOfCopy;
};
/********************** SvObjectServerList ********************************
diff --git a/svtools/source/dialogs/mcvmath.cxx b/svtools/source/dialogs/mcvmath.cxx
index ec3abbc88418..51ed8be19507 100644
--- a/svtools/source/dialogs/mcvmath.cxx
+++ b/svtools/source/dialogs/mcvmath.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/mcvmath.hxx b/svtools/source/dialogs/mcvmath.hxx
index bad63f33093f..dffdea7a3d72 100644
--- a/svtools/source/dialogs/mcvmath.hxx
+++ b/svtools/source/dialogs/mcvmath.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,10 +72,10 @@ class ColWheel;
class Fix
{
private:
- friend class FixCpx;
- friend class ColWheel;
+ friend class FixCpx;
+ friend class ColWheel;
-// friend Fix ImpMultBig2( const Fix& a, const Fix& b );
+// friend Fix ImpMultBig2( const Fix& a, const Fix& b );
public:
long x;
@@ -122,7 +122,7 @@ public:
class FixCpx
{
-// friend FixCpx ImpMultBig2( const FixCpx& ra, const FixCpx& rb );
+// friend FixCpx ImpMultBig2( const FixCpx& ra, const FixCpx& rb );
public:
Fix r;
diff --git a/svtools/source/dialogs/printdlg.cxx b/svtools/source/dialogs/printdlg.cxx
index 66105d262559..36c69f8451ae 100644
--- a/svtools/source/dialogs/printdlg.cxx
+++ b/svtools/source/dialogs/printdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,28 +65,28 @@ struct SvtPrinterImpl
~SvtPrinterImpl() { delete m_pTempPrinter; }
};
-#define TEMPPRINTER() mpPrinterImpl->m_pTempPrinter
+#define TEMPPRINTER() mpPrinterImpl->m_pTempPrinter
// =======================================================================
PrintDialog::PrintDialog( Window* pWindow, bool bWithSheetsAndCells ) :
- ModalDialog ( pWindow, SvtResId( DLG_SVT_PRNDLG_PRINTDLG ) ),
- maFlPrinter ( this, SvtResId( FL_PRINTER ) ),
- maFtName ( this, SvtResId( FT_NAME ) ),
- maLbName ( this, SvtResId( LB_NAMES ) ),
+ ModalDialog ( pWindow, SvtResId( DLG_SVT_PRNDLG_PRINTDLG ) ),
+ maFlPrinter ( this, SvtResId( FL_PRINTER ) ),
+ maFtName ( this, SvtResId( FT_NAME ) ),
+ maLbName ( this, SvtResId( LB_NAMES ) ),
maBtnProperties ( this, SvtResId( BTN_PROPERTIES ) ),
- maFtStatus ( this, SvtResId( FT_STATUS ) ),
- maFiStatus ( this, SvtResId( FI_STATUS ) ),
- maFtType ( this, SvtResId( FT_TYPE ) ),
- maFiType ( this, SvtResId( FI_TYPE ) ),
- maFtLocation ( this, SvtResId( FT_LOCATION ) ),
- maFiLocation ( this, SvtResId( FI_LOCATION ) ),
- maFtComment ( this, SvtResId( FT_COMMENT ) ),
- maFiComment ( this, SvtResId( FI_COMMENT ) ),
- maCbxFilePrint ( this, SvtResId( CBX_FILEPRINT ) ),
- maFiPrintFile ( this, SvtResId( FI_PRINTFILE ) ),
- maFiFaxNo ( this, SvtResId( FI_FAXNO ) ),
- maEdtFaxNo ( this, SvtResId( EDT_FAXNO ) ),
+ maFtStatus ( this, SvtResId( FT_STATUS ) ),
+ maFiStatus ( this, SvtResId( FI_STATUS ) ),
+ maFtType ( this, SvtResId( FT_TYPE ) ),
+ maFiType ( this, SvtResId( FI_TYPE ) ),
+ maFtLocation ( this, SvtResId( FT_LOCATION ) ),
+ maFiLocation ( this, SvtResId( FI_LOCATION ) ),
+ maFtComment ( this, SvtResId( FT_COMMENT ) ),
+ maFiComment ( this, SvtResId( FI_COMMENT ) ),
+ maCbxFilePrint ( this, SvtResId( CBX_FILEPRINT ) ),
+ maFiPrintFile ( this, SvtResId( FI_PRINTFILE ) ),
+ maFiFaxNo ( this, SvtResId( FI_FAXNO ) ),
+ maEdtFaxNo ( this, SvtResId( EDT_FAXNO ) ),
maFlPrint ( this, SvtResId( FL_PRINT ) ),
maRbtAllSheets ( this, SvtResId( RBT_ALL_SHEETS ) ),
maRbtSelectedSheets ( this, SvtResId( RBT_SELECTED_SHEETS ) ),
@@ -114,21 +114,21 @@ PrintDialog::PrintDialog( Window* pWindow, bool bWithSheetsAndCells ) :
{
FreeResource();
- mpPrinter = NULL;
- mpPrinterImpl = new SvtPrinterImpl;
- mnCopyCount = 1;
- mnFirstPage = 0;
- mnLastPage = 0;
- mnMinPage = 1;
- mnMaxPage = 65535;
- meCheckRange = PRINTDIALOG_ALL;
- mbAll = TRUE;
- mbSelection = FALSE;
- mbFromTo = FALSE;
- mbRange = FALSE;
+ mpPrinter = NULL;
+ mpPrinterImpl = new SvtPrinterImpl;
+ mnCopyCount = 1;
+ mnFirstPage = 0;
+ mnLastPage = 0;
+ mnMinPage = 1;
+ mnMaxPage = 65535;
+ meCheckRange = PRINTDIALOG_ALL;
+ mbAll = TRUE;
+ mbSelection = FALSE;
+ mbFromTo = FALSE;
+ mbRange = FALSE;
mbCollate = TRUE;
mbCollateCheck = TRUE;
- mbOptions = FALSE;
+ mbOptions = FALSE;
maStatusTimer.SetTimeout( IMPL_PRINTDLG_STATUS_UPDATE );
maStatusTimer.SetTimeoutHdl( LINK( this, PrintDialog, ImplStatusHdl ) );
@@ -751,7 +751,7 @@ short PrintDialog::Execute()
DBG_ERRORFILE( "PrinterSetupDialog::Execute() - No Printer or printer is printing" );
return FALSE;
}
-
+
// check if the printer brings up its own dialog
// in that case leave the work to that dialog
if( mpPrinter->GetCapabilities( PRINTER_CAPABILITIES_EXTERNALDIALOG ) )
diff --git a/svtools/source/dialogs/printdlg.hrc b/svtools/source/dialogs/printdlg.hrc
index 83b7b0b28c82..7c7c283887e0 100644
--- a/svtools/source/dialogs/printdlg.hrc
+++ b/svtools/source/dialogs/printdlg.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,19 +28,19 @@
#include <svtools/svtools.hrc>
#define FL_PRINTER 1
-#define LB_NAMES 2
-#define BTN_PROPERTIES 3
-#define FT_NAME 4
-#define FT_STATUS 5
-#define FI_STATUS 6
-#define FT_TYPE 7
-#define FI_TYPE 8
-#define FT_LOCATION 9
-#define FI_LOCATION 10
-#define FT_COMMENT 11
-#define FI_COMMENT 12
-#define CBX_FILEPRINT 13
-#define FI_PRINTFILE 14
+#define LB_NAMES 2
+#define BTN_PROPERTIES 3
+#define FT_NAME 4
+#define FT_STATUS 5
+#define FI_STATUS 6
+#define FT_TYPE 7
+#define FI_TYPE 8
+#define FT_LOCATION 9
+#define FI_LOCATION 10
+#define FT_COMMENT 11
+#define FI_COMMENT 12
+#define CBX_FILEPRINT 13
+#define FI_PRINTFILE 14
#define FI_FAXNO 15
#define EDT_FAXNO 16
diff --git a/svtools/source/dialogs/printdlg.src b/svtools/source/dialogs/printdlg.src
index 405accc63344..d110c102ebd1 100644
--- a/svtools/source/dialogs/printdlg.src
+++ b/svtools/source/dialogs/printdlg.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/prnsetup.cxx b/svtools/source/dialogs/prnsetup.cxx
index 3abad8dd8505..a44d5a1de2ae 100644
--- a/svtools/source/dialogs/prnsetup.cxx
+++ b/svtools/source/dialogs/prnsetup.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ Printer* ImplPrnDlgListBoxSelect( ListBox* pBox, PushButton* pPropBtn,
pTempPrinter = new Printer( *pInfo );
}
}
-
+
pPropBtn->Enable( pTempPrinter->HasSupport( SUPPORT_SETUPDIALOG ) );
}
else
@@ -156,8 +156,8 @@ static void ImplPrnDlgAddResString( XubString& rStr, USHORT nResId )
XubString ImplPrnDlgGetStatusText( const QueueInfo& rInfo )
{
- XubString aStr;
- ULONG nStatus = rInfo.GetStatus();
+ XubString aStr;
+ ULONG nStatus = rInfo.GetStatus();
// Default-Printer
if ( rInfo.GetPrinterName().Len() &&
@@ -232,32 +232,32 @@ XubString ImplPrnDlgGetStatusText( const QueueInfo& rInfo )
// =======================================================================
PrinterSetupDialog::PrinterSetupDialog( Window* pWindow ) :
- ModalDialog ( pWindow, SvtResId( DLG_SVT_PRNDLG_PRNSETUPDLG ) ),
- maFlPrinter ( this, SvtResId( FL_PRINTER ) ),
- maFtName ( this, SvtResId( FT_NAME ) ),
- maLbName ( this, SvtResId( LB_NAMES ) ),
+ ModalDialog ( pWindow, SvtResId( DLG_SVT_PRNDLG_PRNSETUPDLG ) ),
+ maFlPrinter ( this, SvtResId( FL_PRINTER ) ),
+ maFtName ( this, SvtResId( FT_NAME ) ),
+ maLbName ( this, SvtResId( LB_NAMES ) ),
maBtnProperties ( this, SvtResId( BTN_PROPERTIES ) ),
maBtnOptions ( this, SvtResId( BTN_OPTIONS ) ),
- maFtStatus ( this, SvtResId( FT_STATUS ) ),
- maFiStatus ( this, SvtResId( FI_STATUS ) ),
- maFtType ( this, SvtResId( FT_TYPE ) ),
- maFiType ( this, SvtResId( FI_TYPE ) ),
- maFtLocation ( this, SvtResId( FT_LOCATION ) ),
- maFiLocation ( this, SvtResId( FI_LOCATION ) ),
- maFtComment ( this, SvtResId( FT_COMMENT ) ),
- maFiComment ( this, SvtResId( FI_COMMENT ) ),
- maFlSepButton ( this, SvtResId( FL_SEPBUTTON ) ),
- maBtnOK ( this, SvtResId( BTN_OK ) ),
- maBtnCancel ( this, SvtResId( BTN_CANCEL ) ),
- maBtnHelp ( this, SvtResId( BTN_HELP ) )
+ maFtStatus ( this, SvtResId( FT_STATUS ) ),
+ maFiStatus ( this, SvtResId( FI_STATUS ) ),
+ maFtType ( this, SvtResId( FT_TYPE ) ),
+ maFiType ( this, SvtResId( FI_TYPE ) ),
+ maFtLocation ( this, SvtResId( FT_LOCATION ) ),
+ maFiLocation ( this, SvtResId( FI_LOCATION ) ),
+ maFtComment ( this, SvtResId( FT_COMMENT ) ),
+ maFiComment ( this, SvtResId( FI_COMMENT ) ),
+ maFlSepButton ( this, SvtResId( FL_SEPBUTTON ) ),
+ maBtnOK ( this, SvtResId( BTN_OK ) ),
+ maBtnCancel ( this, SvtResId( BTN_CANCEL ) ),
+ maBtnHelp ( this, SvtResId( BTN_HELP ) )
{
FreeResource();
-
+
// show options button only if link is set
maBtnOptions.Hide();
- mpPrinter = NULL;
- mpTempPrinter = NULL;
+ mpPrinter = NULL;
+ mpTempPrinter = NULL;
maStatusTimer.SetTimeout( IMPL_PRINTDLG_STATUS_UPDATE );
maStatusTimer.SetTimeoutHdl( LINK( this, PrinterSetupDialog, ImplStatusHdl ) );
diff --git a/svtools/source/dialogs/prnsetup.hrc b/svtools/source/dialogs/prnsetup.hrc
index 4a06c3cf0e63..164844d8dd15 100644
--- a/svtools/source/dialogs/prnsetup.hrc
+++ b/svtools/source/dialogs/prnsetup.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,23 +26,23 @@
************************************************************************/
#include <svtools/svtools.hrc>
-#define FL_PRINTER 1
-#define LB_NAMES 2
-#define BTN_PROPERTIES 3
-#define FT_NAME 4
-#define FT_STATUS 5
-#define FI_STATUS 6
-#define FT_TYPE 7
-#define FI_TYPE 8
-#define FT_LOCATION 9
-#define FI_LOCATION 10
-#define FT_COMMENT 11
-#define FI_COMMENT 12
+#define FL_PRINTER 1
+#define LB_NAMES 2
+#define BTN_PROPERTIES 3
+#define FT_NAME 4
+#define FT_STATUS 5
+#define FI_STATUS 6
+#define FT_TYPE 7
+#define FI_TYPE 8
+#define FT_LOCATION 9
+#define FI_LOCATION 10
+#define FT_COMMENT 11
+#define FI_COMMENT 12
-#define BTN_OK 13
-#define BTN_CANCEL 14
-#define BTN_HELP 15
+#define BTN_OK 13
+#define BTN_CANCEL 14
+#define BTN_HELP 15
-#define FL_SEPBUTTON 16
+#define FL_SEPBUTTON 16
#define BTN_OPTIONS 17
diff --git a/svtools/source/dialogs/prnsetup.src b/svtools/source/dialogs/prnsetup.src
index 1443a35e0f39..11b6d853c7fe 100644
--- a/svtools/source/dialogs/prnsetup.src
+++ b/svtools/source/dialogs/prnsetup.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/propctrl.cxx b/svtools/source/dialogs/propctrl.cxx
index 3d0df16fe056..c69a2dc078b7 100644
--- a/svtools/source/dialogs/propctrl.cxx
+++ b/svtools/source/dialogs/propctrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,32 +61,32 @@ public:
SMART_UNO_DECLARATION(ImplIntrospection,UsrObject);
// Methoden von XInterface
- XInterface * queryInterface( Uik aUik );
- XIdlClassRef getIdlClass();
+ XInterface * queryInterface( Uik aUik );
+ XIdlClassRef getIdlClass();
*/
// Methoden von SvPropertyDataControl
- virtual void Modified( const String& aName,
+ virtual void Modified( const String& aName,
const String& aVal,
void* pData);
- virtual void Clicked( const String& aName,
+ virtual void Clicked( const String& aName,
const String& aVal,
void* pData);
- virtual void Commit( const String& aName,
+ virtual void Commit( const String& aName,
const String& aVal,
void* pData);
- virtual void Select( const String& aName,
+ virtual void Select( const String& aName,
void* pData);
- virtual void LinkClicked(const String& aName,
+ virtual void LinkClicked(const String& aName,
void* pData);
// TODO: Das muss raus, sehr unglueckliche Schnittstelle
// PropertyBox erzwingt Zustand des Controllers
- virtual String GetTheCorrectProperty() const;
+ virtual String GetTheCorrectProperty() const;
};
// Methoden von XPropertyEditor
diff --git a/svtools/source/dialogs/propctrl.hxx b/svtools/source/dialogs/propctrl.hxx
index bc93914af014..0e449d62ab43 100644
--- a/svtools/source/dialogs/propctrl.hxx
+++ b/svtools/source/dialogs/propctrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,8 +91,8 @@ public:
SMART_UNO_DECLARATION(ImplIntrospection,UsrObject);
// Methoden von XInterface
- XInterface * queryInterface( Uik aUik );
- XIdlClassRef getIdlClass();
+ XInterface * queryInterface( Uik aUik );
+ XIdlClassRef getIdlClass();
// Methoden von XPropertyEditor
virtual void setObject(const UsrAny& aToInspectObj, const XubString& aObjName);
diff --git a/svtools/source/dialogs/property.cxx b/svtools/source/dialogs/property.cxx
index 6d93a885ec86..6a5c791aa176 100644
--- a/svtools/source/dialogs/property.cxx
+++ b/svtools/source/dialogs/property.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,19 +35,19 @@
SvXPropertyControl::SvXPropertyControl( Window* pParent, WinBits nWinStyle)
- : Control(pParent,nWinStyle)
+ : Control(pParent,nWinStyle)
{
}
SvXPropertyControl::SvXPropertyControl( Window* pParent, const ResId& rResId )
- : Control(pParent,rResId )
+ : Control(pParent,rResId )
{
}
//------------------------------------------------------------------
SvXPropertyEdit::SvXPropertyEdit( Window* pParent, WinBits nWinStyle)
- : SvXPropertyControl(pParent,nWinStyle),
+ : SvXPropertyControl(pParent,nWinStyle),
aEdit(this,WB_BORDER | WB_TABSTOP)
{
pListener=NULL;
@@ -62,7 +62,7 @@ SvXPropertyEdit::SvXPropertyEdit( Window* pParent, WinBits nWinStyle)
}
SvXPropertyEdit::SvXPropertyEdit( Window* pParent, const ResId& rResId)
- : SvXPropertyControl(pParent,rResId),
+ : SvXPropertyControl(pParent,rResId),
aEdit(this,WB_BORDER | WB_TABSTOP)
{
pListener=NULL;
@@ -176,7 +176,7 @@ IMPL_LINK( SvXPropertyEdit, LoseFocusHdl, Edit*, EMPTYARG )
//------------------------------------------------------------------
SvXPropertyListBox::SvXPropertyListBox( Window* pParent, WinBits nWinStyle)
- : SvXPropertyControl(pParent,nWinStyle),
+ : SvXPropertyControl(pParent,nWinStyle),
aListBox(this,WB_BORDER | WB_DROPDOWN | WB_TABSTOP)
{
pListener=NULL;
@@ -190,7 +190,7 @@ SvXPropertyListBox::SvXPropertyListBox( Window* pParent, WinBits nWinStyle)
}
SvXPropertyListBox::SvXPropertyListBox( Window* pParent, const ResId& rResId)
- : SvXPropertyControl(pParent,rResId),
+ : SvXPropertyControl(pParent,rResId),
aListBox(this,WB_BORDER | WB_DROPDOWN | WB_TABSTOP)
{
pListener=NULL;
@@ -305,7 +305,7 @@ IMPL_LINK( SvXPropertyListBox, LoseFocusHdl, ListBox*, EMPTYARG )
SvXPropertyComboBox::SvXPropertyComboBox( Window* pParent, WinBits nWinStyle)
- : SvXPropertyControl(pParent,nWinStyle),
+ : SvXPropertyControl(pParent,nWinStyle),
aComboBox(this,WB_BORDER | WB_DROPDOWN | WB_TABSTOP)
{
pListener=NULL;
@@ -319,7 +319,7 @@ SvXPropertyComboBox::SvXPropertyComboBox( Window* pParent, WinBits nWinStyle)
}
SvXPropertyComboBox::SvXPropertyComboBox( Window* pParent, const ResId& rResId)
- : SvXPropertyControl(pParent,rResId),
+ : SvXPropertyControl(pParent,rResId),
aComboBox(this,WB_BORDER | WB_DROPDOWN | WB_TABSTOP)
{
pListener=NULL;
@@ -369,7 +369,7 @@ void SvXPropertyComboBox::SetProperty(const String &rString)
aComboBox.SetText(rString);
}
-String SvXPropertyComboBox::GetProperty() const
+String SvXPropertyComboBox::GetProperty() const
{
return aComboBox.GetText();
}
@@ -432,7 +432,7 @@ IMPL_LINK( SvXPropertyComboBox, LoseFocusHdl, ComboBox*, EMPTYARG )
//------------------------------------------------------------------
SvPropertyLine::SvPropertyLine( Window* pParent,WinBits nWinStyle)
- : Control(pParent,nWinStyle),
+ : Control(pParent,nWinStyle),
aName(this,WB_BORDER),
pSvXPropertyControl(NULL),
aXButton(this,WB_BORDER),
@@ -451,10 +451,10 @@ SvPropertyLine::SvPropertyLine( Window* pParent,WinBits nWinStyle)
}
SvPropertyLine::SvPropertyLine( Window* pParent,const ResId& rResId )
- : Control(pParent,rResId),
- aName (this,WB_BORDER),
+ : Control(pParent,rResId),
+ aName (this,WB_BORDER),
pSvXPropertyControl(NULL),
- aXButton (this,WB_BORDER),
+ aXButton (this,WB_BORDER),
bIsLocked(FALSE),
bIsHyperlink(FALSE)
{
@@ -515,8 +515,8 @@ void SvPropertyLine::Resize()
aPos.X()=GetOutputSizePixel().Width()
-nXButtonWidth;
aSize.Width()=nXButtonWidth;
- aXButton .SetSizePixel(aSize);
- aXButton .SetPosPixel(aPos);
+ aXButton .SetSizePixel(aSize);
+ aXButton .SetPosPixel(aPos);
}
}
@@ -649,7 +649,7 @@ void SvXPropEvListener::KeyInput (SvXPropertyControl *pSvXPCtr,const KeyCode& th
aKeyInputLink.Call(this);
}
-SvXPropertyControl * SvXPropEvListener::GetPropertyControl()
+SvXPropertyControl * SvXPropEvListener::GetPropertyControl()
{
return pTheActiveControl;
}
@@ -662,13 +662,13 @@ KeyCode SvXPropEvListener::GetKeyCode() const
//------------------------------------------------------------------
SvListBoxForProperties::SvListBoxForProperties( Window* pParent, WinBits nWinStyle)
- : Control(pParent,nWinStyle),
+ : Control(pParent,nWinStyle),
aPlayGround(this,WB_DIALOGCONTROL),
aVScroll(this,WB_VSCROLL|WB_REPEAT|WB_DRAG),
pPropDataControl(NULL)
{
- aListener.SetModifyHdl (LINK( this, SvListBoxForProperties, ModifyHdl));
+ aListener.SetModifyHdl (LINK( this, SvListBoxForProperties, ModifyHdl));
aListener.SetGetFocusHdl (LINK( this, SvListBoxForProperties, GetFocusHdl));
aListener.SetLoseFocusHdl(LINK( this, SvListBoxForProperties,LoseFocusHdl));
aListener.SetKeyInputHdl (LINK( this, SvListBoxForProperties, KeyInputHdl));
@@ -690,7 +690,7 @@ SvListBoxForProperties::SvListBoxForProperties( Window* pParent, WinBits nWinSty
SvListBoxForProperties::SvListBoxForProperties( Window* pParent, const ResId& rResId )
- : Control(pParent,rResId),
+ : Control(pParent,rResId),
aPlayGround(this,0),
aVScroll(this,WB_VSCROLL|WB_REPEAT|WB_DRAG),
pPropDataControl(NULL)
@@ -723,9 +723,9 @@ void SvListBoxForProperties::Clear()
switch(pPropLine->GetKindOfControl())
{
- case KOC_LISTBOX:
- case KOC_COMBOBOX:
- case KOC_EDIT: delete pPropLine->GetSvXPropertyControl();
+ case KOC_LISTBOX:
+ case KOC_COMBOBOX:
+ case KOC_EDIT: delete pPropLine->GetSvXPropertyControl();
break;
default:
break;
@@ -936,9 +936,9 @@ void SvListBoxForProperties::ChangeEntry( const SvPropertyData& aPropData, USHOR
switch(pPropLine->GetKindOfControl())
{
- case KOC_LISTBOX:
- case KOC_COMBOBOX:
- case KOC_EDIT: delete pPropLine->GetSvXPropertyControl();
+ case KOC_LISTBOX:
+ case KOC_COMBOBOX:
+ case KOC_EDIT: delete pPropLine->GetSvXPropertyControl();
break;
default:
break;
@@ -946,22 +946,22 @@ void SvListBoxForProperties::ChangeEntry( const SvPropertyData& aPropData, USHOR
switch(aPropData.eKind)
{
- case KOC_LISTBOX:
+ case KOC_LISTBOX:
pPropLine->SetSvXPropertyControl(
new SvXPropertyComboBox(pPropLine,WB_TABSTOP));
pPropLine->SetKindOfControl(aPropData.eKind);
break;
- case KOC_COMBOBOX:
+ case KOC_COMBOBOX:
pPropLine->SetSvXPropertyControl(
new SvXPropertyComboBox(pPropLine,WB_TABSTOP));
pPropLine->SetKindOfControl(aPropData.eKind);
break;
- case KOC_EDIT:
+ case KOC_EDIT:
pPropLine->SetSvXPropertyControl(
new SvXPropertyEdit(pPropLine,WB_TABSTOP));
pPropLine->SetKindOfControl(aPropData.eKind);
break;
- case KOC_USERDEFINED:
+ case KOC_USERDEFINED:
pPropLine->SetSvXPropertyControl(aPropData.pControl);
aPropData.pControl->SetParent(pPropLine);
pPropLine->SetKindOfControl(aPropData.eKind);
@@ -1131,7 +1131,7 @@ IMPL_LINK( SvListBoxForProperties, KeyInputHdl,SvXPropEvListener*, pSvXPEvL)
SvTabPageForProperties::SvTabPageForProperties(Window* pParent,WinBits nWinStyle)
- : TabPage(pParent,nWinStyle),
+ : TabPage(pParent,nWinStyle),
aLbProp(this)
{
aLbProp.Show();
@@ -1341,9 +1341,9 @@ void SvBasicPropertyDataControl::Modified(const String& aName,
aModifyLink.Call(this);
}
-void SvBasicPropertyDataControl::Clicked( const String& aName,
+void SvBasicPropertyDataControl::Clicked( const String& aName,
const String& aVal,
- void* pData) //Xtension-Button pressed
+ void* pData) //Xtension-Button pressed
{
aEntryName=aName;
aEntryProperty=aVal;
@@ -1351,9 +1351,9 @@ void SvBasicPropertyDataControl::Clicked( const String& aName,
aClickedLink.Call(this);
}
-void SvBasicPropertyDataControl::Commit( const String& aName,
+void SvBasicPropertyDataControl::Commit( const String& aName,
const String& aVal,
- void* pData) //User accept changes
+ void* pData) //User accept changes
{
aEntryName=aName;
aEntryProperty=aVal;
@@ -1361,8 +1361,8 @@ void SvBasicPropertyDataControl::Commit( const String& aName,
aCommitLink.Call(this);
}
-void SvBasicPropertyDataControl::Select( const String& aName,
- void* pData) //User select new Row
+void SvBasicPropertyDataControl::Select( const String& aName,
+ void* pData) //User select new Row
{
aEntryName=aName;
pTheData=pData;
@@ -1374,17 +1374,17 @@ void SvBasicPropertyDataControl::LinkClicked(const String&, void*)
}
-String SvBasicPropertyDataControl::GetName() const //Tell's the name of the Property
+String SvBasicPropertyDataControl::GetName() const //Tell's the name of the Property
{
return aEntryName;
}
-String SvBasicPropertyDataControl::GetProperty() const //Tell's the content of the Property
+String SvBasicPropertyDataControl::GetProperty() const //Tell's the content of the Property
{
return aEntryProperty;
}
-void* SvBasicPropertyDataControl::GetData() //Tell's the storage
+void* SvBasicPropertyDataControl::GetData() //Tell's the storage
{
return pTheData;
}
@@ -1414,13 +1414,13 @@ void SvBasicPropertyDataControl::SetIsCorrect(BOOL nFlag)
//========================================================================
/*
ScPropertyDlg::ScPropertyDlg( Window* pParent) :
- ModalDialog ( pParent, ScResId( RID_SCDLG_PROPERTIES) ),
- aPropListBox ( this, ResId( CTR_PROPLINE) ),
- aKindOfListBox (this,ResId( LB_KIND_OF_PROP)),
- aModAnswer (this,ResId(FT_ANSMOD )),
- aClickAnswer (this,ResId(FT_ANSCLICK )),
- aCommitAnswer (this,ResId(FT_ANSCOMMIT)),
- aSelectAnswer (this,ResId(FT_ANSSELECT)),
+ ModalDialog ( pParent, ScResId( RID_SCDLG_PROPERTIES) ),
+ aPropListBox ( this, ResId( CTR_PROPLINE) ),
+ aKindOfListBox (this,ResId( LB_KIND_OF_PROP)),
+ aModAnswer (this,ResId(FT_ANSMOD )),
+ aClickAnswer (this,ResId(FT_ANSCLICK )),
+ aCommitAnswer (this,ResId(FT_ANSCOMMIT)),
+ aSelectAnswer (this,ResId(FT_ANSSELECT)),
anOk(this,ResId( BTN_OK)),
aCancel(this,ResId( BTN_CANCEL))
{
@@ -1435,9 +1435,9 @@ ScPropertyDlg::ScPropertyDlg( Window* pParent) :
String aString("Don't know ");
aBaProDatCtr.SetModifyHdl (LINK( this, ScPropertyDlg, RowModifiedHdl ));
- aBaProDatCtr.SetClickedHdl(LINK( this, ScPropertyDlg, ClickHdl ));
- aBaProDatCtr.SetCommitHdl (LINK( this, ScPropertyDlg, SelectHdl ));
- aBaProDatCtr.SetSelectHdl (LINK( this, ScPropertyDlg, CommitHdl ));
+ aBaProDatCtr.SetClickedHdl(LINK( this, ScPropertyDlg, ClickHdl ));
+ aBaProDatCtr.SetCommitHdl (LINK( this, ScPropertyDlg, SelectHdl ));
+ aBaProDatCtr.SetSelectHdl (LINK( this, ScPropertyDlg, CommitHdl ));
aPropListBox.SetController(&aBaProDatCtr);
diff --git a/svtools/source/dialogs/roadmapwizard.cxx b/svtools/source/dialogs/roadmapwizard.cxx
index c700e896dce8..4f3235058ec2 100644
--- a/svtools/source/dialogs/roadmapwizard.cxx
+++ b/svtools/source/dialogs/roadmapwizard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ namespace svt
StateDescriptions aStateDescriptors;
StateSet aDisabledStates;
bool bActivePathIsDefinite;
- FixedLine* pFixedLine;
+ FixedLine* pFixedLine;
RoadmapWizardImpl()
:pRoadmap( NULL )
@@ -234,7 +234,7 @@ namespace svt
}
//--------------------------------------------------------------------
- const BitmapEx& RoadmapWizard::GetRoadmapBitmap( ) const
+ const BitmapEx& RoadmapWizard::GetRoadmapBitmap( ) const
{
return m_pImpl->pRoadmap->GetRoadmapBitmap();
}
diff --git a/svtools/source/dialogs/so3res.src b/svtools/source/dialogs/so3res.src
index 524b58e0a5df..7373f6278ebf 100644
--- a/svtools/source/dialogs/so3res.src
+++ b/svtools/source/dialogs/so3res.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,7 +28,7 @@
#include "sores.hxx"
#define __RSC
#include "soerr.hxx"
-#define S_MAX 0x7fff
+#define S_MAX 0x7fff
Resource RID_SO_ERROR_HANDLER
{
String ERRCODE_SO_GENERALERROR&S_MAX
@@ -178,9 +178,9 @@ Resource RID_SO_ERROR_HANDLER
Text [ en-US ] = "The specified file could not be opened." ;
};
/*
- String & S_MAX
+ String & S_MAX
{
- Text = "";
+ Text = "";
};
*/
};
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx
index 9068b493df9d..b66931190515 100644
--- a/svtools/source/dialogs/wizardmachine.cxx
+++ b/svtools/source/dialogs/wizardmachine.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -118,7 +118,7 @@ namespace svt
// the WizardDialog does not allow non-linear transitions (e.g. it's
// not possible to add pages in a non-linear order), so we need some own maintainance data
- sal_Bool m_bAutoNextButtonState;
+ sal_Bool m_bAutoNextButtonState;
bool m_bTravelingSuspended;
@@ -202,7 +202,7 @@ namespace svt
m_pPrevPage->Show();
if (_nButtonFlags & WZB_NEXT)
- AddButton( m_pPrevPage, ( WIZARDDIALOG_BUTTON_SMALLSTDOFFSET_X) ); // half x-offset to the next button
+ AddButton( m_pPrevPage, ( WIZARDDIALOG_BUTTON_SMALLSTDOFFSET_X) ); // half x-offset to the next button
else
AddButton( m_pPrevPage, WIZARDDIALOG_BUTTON_STDOFFSET_X );
SetPrevButton( m_pPrevPage );
@@ -372,14 +372,14 @@ namespace svt
// is it a button?
WindowType eType = pChildLoop->GetType();
- if ( (WINDOW_BUTTON == eType)
- || (WINDOW_PUSHBUTTON == eType)
- || (WINDOW_OKBUTTON == eType)
- || (WINDOW_CANCELBUTTON == eType)
- || (WINDOW_HELPBUTTON == eType)
- || (WINDOW_IMAGEBUTTON == eType)
- || (WINDOW_MENUBUTTON == eType)
- || (WINDOW_MOREBUTTON == eType)
+ if ( (WINDOW_BUTTON == eType)
+ || (WINDOW_PUSHBUTTON == eType)
+ || (WINDOW_OKBUTTON == eType)
+ || (WINDOW_CANCELBUTTON == eType)
+ || (WINDOW_HELPBUTTON == eType)
+ || (WINDOW_IMAGEBUTTON == eType)
+ || (WINDOW_MENUBUTTON == eType)
+ || (WINDOW_MOREBUTTON == eType)
)
{
pChildLoop->SetStyle(pChildLoop->GetStyle() & ~WB_DEFBUTTON);
@@ -745,7 +745,7 @@ namespace svt
}
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/dialogs/wizardmachine.src b/svtools/source/dialogs/wizardmachine.src
index 9c82ea30071f..b3c7e5e1a515 100644
--- a/svtools/source/dialogs/wizardmachine.src
+++ b/svtools/source/dialogs/wizardmachine.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/dialogs/wizdlg.cxx b/svtools/source/dialogs/wizdlg.cxx
index 6197ccb81949..e8d3c789c3cd 100644
--- a/svtools/source/dialogs/wizdlg.cxx
+++ b/svtools/source/dialogs/wizdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -244,7 +244,7 @@ void WizardDialog::ImplPosCtrls()
long WizardDialog::LogicalCoordinateToPixel(int iCoordinate){
- Size aLocSize = LogicToPixel(Size( iCoordinate, 0 ), MAP_APPFONT );
+ Size aLocSize = LogicToPixel(Size( iCoordinate, 0 ), MAP_APPFONT );
int iPixelCoordinate = aLocSize.Width();
return iPixelCoordinate;
}
diff --git a/svtools/source/edit/editsyntaxhighlighter.cxx b/svtools/source/edit/editsyntaxhighlighter.cxx
index 96989a6ff30a..f515c7516462 100644
--- a/svtools/source/edit/editsyntaxhighlighter.cxx
+++ b/svtools/source/edit/editsyntaxhighlighter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,14 +35,14 @@
#include "../../inc/txtattr.hxx"
-MultiLineEditSyntaxHighlight::MultiLineEditSyntaxHighlight( Window* pParent, WinBits nWinStyle,
+MultiLineEditSyntaxHighlight::MultiLineEditSyntaxHighlight( Window* pParent, WinBits nWinStyle,
HighlighterLanguage aLanguage): MultiLineEdit(pParent,nWinStyle), mbDoBracketHilight(true)
{
EnableUpdateData(300);
aHighlighter.initialize( aLanguage );
}
-MultiLineEditSyntaxHighlight::MultiLineEditSyntaxHighlight( Window* pParent, const ResId& rResId ,
+MultiLineEditSyntaxHighlight::MultiLineEditSyntaxHighlight( Window* pParent, const ResId& rResId ,
HighlighterLanguage aLanguage): MultiLineEdit(pParent,rResId), mbDoBracketHilight(true)
{
EnableUpdateData(300);
@@ -62,7 +62,7 @@ bool MultiLineEditSyntaxHighlight::IsBracketHilight()
{
return mbDoBracketHilight;
}
-
+
void MultiLineEditSyntaxHighlight::SetText(const String& rNewText)
{
MultiLineEdit::SetText(rNewText);
@@ -79,8 +79,8 @@ void MultiLineEditSyntaxHighlight::DoBracketHilight(USHORT aKey)
switch (aKey)
{
- case '\'': // no break
- case '"':
+ case '\'': // no break
+ case '"':
{
aChar = aKey;
break;
@@ -111,7 +111,7 @@ void MultiLineEditSyntaxHighlight::DoBracketHilight(USHORT aKey)
String aLine( GetTextEngine()->GetText( aPara ) );
for (USHORT i = ((unsigned long)aPara==nStartPara) ? aStartPos-1 : (USHORT)(aLine.Len()-1); i>0; --i)
- {
+ {
if (aLine.GetChar(i)==aChar)
{
if (!aCount)
@@ -149,14 +149,14 @@ Color MultiLineEditSyntaxHighlight::GetColorValue(TokenTypes aToken)
{
switch (aToken)
{
- case TT_IDENTIFIER: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLIDENTIFIER).nColor; break;
- case TT_NUMBER: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLNUMBER).nColor; break;
- case TT_STRING: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLSTRING).nColor; break;
- case TT_OPERATOR: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLOPERATOR).nColor; break;
- case TT_KEYWORDS: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLKEYWORD).nColor; break;
+ case TT_IDENTIFIER: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLIDENTIFIER).nColor; break;
+ case TT_NUMBER: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLNUMBER).nColor; break;
+ case TT_STRING: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLSTRING).nColor; break;
+ case TT_OPERATOR: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLOPERATOR).nColor; break;
+ case TT_KEYWORDS: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLKEYWORD).nColor; break;
case TT_PARAMETER: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLPARAMETER).nColor; break;
- case TT_COMMENT: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLCOMMENT).nColor; break;
- default: aColor = Color(0,0,0);
+ case TT_COMMENT: aColor = (ColorData)m_aColorConfig.GetColorValue(svtools::SQLCOMMENT).nColor; break;
+ default: aColor = Color(0,0,0);
}
break;
}
@@ -164,14 +164,14 @@ Color MultiLineEditSyntaxHighlight::GetColorValue(TokenTypes aToken)
{
switch (aToken)
{
- case TT_IDENTIFIER: aColor = Color(255,0,0); break;
- case TT_COMMENT: aColor = Color(0,0,45); break;
- case TT_NUMBER: aColor = Color(204,102,204); break;
- case TT_STRING: aColor = Color(0,255,45); break;
- case TT_OPERATOR: aColor = Color(0,0,100); break;
- case TT_KEYWORDS: aColor = Color(0,0,255); break;
- case TT_ERROR : aColor = Color(0,255,255); break;
- default: aColor = Color(0,0,0);
+ case TT_IDENTIFIER: aColor = Color(255,0,0); break;
+ case TT_COMMENT: aColor = Color(0,0,45); break;
+ case TT_NUMBER: aColor = Color(204,102,204); break;
+ case TT_STRING: aColor = Color(0,255,45); break;
+ case TT_OPERATOR: aColor = Color(0,0,100); break;
+ case TT_KEYWORDS: aColor = Color(0,0,255); break;
+ case TT_ERROR : aColor = Color(0,255,255); break;
+ default: aColor = Color(0,0,0);
}
break;
}
@@ -190,7 +190,7 @@ void MultiLineEditSyntaxHighlight::UpdateData()
{
String aLine( GetTextEngine()->GetText( nLine ) );
Range aChanges = aHighlighter.notifyChange( nLine, 0, &aLine, 1 );
-
+
GetTextEngine()->RemoveAttribs( nLine, TRUE );
HighlightPortions aPortions;
aHighlighter.getHighlightPortions( nLine, aLine, aPortions );
diff --git a/svtools/source/edit/svmedit.cxx b/svtools/source/edit/svmedit.cxx
index 78467140c181..f4301735b631 100644
--- a/svtools/source/edit/svmedit.cxx
+++ b/svtools/source/edit/svmedit.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,13 +49,13 @@
// IDs erstmal aus VCL geklaut, muss mal richtig delivert werden...
-#define SV_MENU_EDIT_UNDO 1
-#define SV_MENU_EDIT_CUT 2
-#define SV_MENU_EDIT_COPY 3
-#define SV_MENU_EDIT_PASTE 4
-#define SV_MENU_EDIT_DELETE 5
-#define SV_MENU_EDIT_SELECTALL 6
-#define SV_MENU_EDIT_INSERTSYMBOL 7
+#define SV_MENU_EDIT_UNDO 1
+#define SV_MENU_EDIT_CUT 2
+#define SV_MENU_EDIT_COPY 3
+#define SV_MENU_EDIT_PASTE 4
+#define SV_MENU_EDIT_DELETE 5
+#define SV_MENU_EDIT_SELECTALL 6
+#define SV_MENU_EDIT_INSERTSYMBOL 7
#include <vcl/scrbar.hxx>
namespace css = ::com::sun::star;
@@ -63,40 +63,40 @@ namespace css = ::com::sun::star;
class TextWindow : public Window
{
private:
- ExtTextEngine* mpExtTextEngine;
- ExtTextView* mpExtTextView;
+ ExtTextEngine* mpExtTextEngine;
+ ExtTextView* mpExtTextView;
- BOOL mbInMBDown;
- BOOL mbFocusSelectionHide;
- BOOL mbIgnoreTab;
- BOOL mbActivePopup;
+ BOOL mbInMBDown;
+ BOOL mbFocusSelectionHide;
+ BOOL mbIgnoreTab;
+ BOOL mbActivePopup;
BOOL mbSelectOnTab;
public:
TextWindow( Window* pParent );
~TextWindow();
- ExtTextEngine* GetTextEngine() const { return mpExtTextEngine; }
- ExtTextView* GetTextView() const { return mpExtTextView; }
+ ExtTextEngine* GetTextEngine() const { return mpExtTextEngine; }
+ ExtTextView* GetTextView() const { return mpExtTextView; }
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void KeyInput( const KeyEvent& rKEvent );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void KeyInput( const KeyEvent& rKEvent );
- virtual void Command( const CommandEvent& rCEvt );
+ virtual void Command( const CommandEvent& rCEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Resize();
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Resize();
- virtual void GetFocus();
- virtual void LoseFocus();
+ virtual void GetFocus();
+ virtual void LoseFocus();
- BOOL IsAutoFocusHide() const { return mbFocusSelectionHide; }
- void SetAutoFocusHide( BOOL bAutoHide ) { mbFocusSelectionHide = bAutoHide; }
+ BOOL IsAutoFocusHide() const { return mbFocusSelectionHide; }
+ void SetAutoFocusHide( BOOL bAutoHide ) { mbFocusSelectionHide = bAutoHide; }
- BOOL IsIgnoreTab() const { return mbIgnoreTab; }
- void SetIgnoreTab( BOOL bIgnore ) { mbIgnoreTab = bIgnore; }
+ BOOL IsIgnoreTab() const { return mbIgnoreTab; }
+ void SetIgnoreTab( BOOL bIgnore ) { mbIgnoreTab = bIgnore; }
void DisableSelectionOnFocus() {mbSelectOnTab = sal_False;}
@@ -109,78 +109,78 @@ public:
class ImpSvMEdit : public SfxListener
{
private:
- MultiLineEdit* pSvMultiLineEdit;
+ MultiLineEdit* pSvMultiLineEdit;
- TextWindow* mpTextWindow;
- ScrollBar* mpHScrollBar;
- ScrollBar* mpVScrollBar;
- ScrollBarBox* mpScrollBox;
+ TextWindow* mpTextWindow;
+ ScrollBar* mpHScrollBar;
+ ScrollBar* mpVScrollBar;
+ ScrollBarBox* mpScrollBox;
- Point maTextWindowOffset;
- xub_StrLen mnTextWidth;
+ Point maTextWindowOffset;
+ xub_StrLen mnTextWidth;
mutable Selection maSelection;
protected:
- virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
- void ImpUpdateSrollBarVis( WinBits nWinStyle );
- void ImpInitScrollBars();
- void ImpSetScrollBarRanges();
+ virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
+ void ImpUpdateSrollBarVis( WinBits nWinStyle );
+ void ImpInitScrollBars();
+ void ImpSetScrollBarRanges();
void ImpSetHScrollBarThumbPos();
- DECL_LINK( ScrollHdl, ScrollBar* );
+ DECL_LINK( ScrollHdl, ScrollBar* );
public:
ImpSvMEdit( MultiLineEdit* pSvMultiLineEdit, WinBits nWinStyle );
~ImpSvMEdit();
- void SetModified( BOOL bMod );
- BOOL IsModified() const;
+ void SetModified( BOOL bMod );
+ BOOL IsModified() const;
- void SetReadOnly( BOOL bRdOnly );
- BOOL IsReadOnly() const;
+ void SetReadOnly( BOOL bRdOnly );
+ BOOL IsReadOnly() const;
- void SetMaxTextLen( xub_StrLen nLen );
- xub_StrLen GetMaxTextLen() const;
+ void SetMaxTextLen( xub_StrLen nLen );
+ xub_StrLen GetMaxTextLen() const;
- void SetInsertMode( BOOL bInsert );
- BOOL IsInsertMode() const;
+ void SetInsertMode( BOOL bInsert );
+ BOOL IsInsertMode() const;
- void InsertText( const String& rStr );
- String GetSelected() const;
- String GetSelected( LineEnd aSeparator ) const;
+ void InsertText( const String& rStr );
+ String GetSelected() const;
+ String GetSelected( LineEnd aSeparator ) const;
- void SetSelection( const Selection& rSelection );
+ void SetSelection( const Selection& rSelection );
const Selection& GetSelection() const;
- void Cut();
- void Copy();
- void Paste();
+ void Cut();
+ void Copy();
+ void Paste();
- void SetText( const String& rStr );
- String GetText() const;
- String GetText( LineEnd aSeparator ) const;
- String GetTextLines() const;
- String GetTextLines( LineEnd aSeparator ) const;
+ void SetText( const String& rStr );
+ String GetText() const;
+ String GetText( LineEnd aSeparator ) const;
+ String GetTextLines() const;
+ String GetTextLines( LineEnd aSeparator ) const;
- void Resize();
- void GetFocus();
+ void Resize();
+ void GetFocus();
- BOOL HandleCommand( const CommandEvent& rCEvt );
+ BOOL HandleCommand( const CommandEvent& rCEvt );
- void Enable( BOOL bEnable );
+ void Enable( BOOL bEnable );
- Size CalcMinimumSize() const;
- Size CalcSize( USHORT nColumns, USHORT nLines ) const;
- void GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const;
+ Size CalcMinimumSize() const;
+ Size CalcSize( USHORT nColumns, USHORT nLines ) const;
+ void GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const;
- void SetAlign( WinBits nWinStyle );
+ void SetAlign( WinBits nWinStyle );
- void InitFromStyle( WinBits nWinStyle );
+ void InitFromStyle( WinBits nWinStyle );
TextWindow* GetTextWindow() { return mpTextWindow; }
ScrollBar* GetHScrollBar() { return mpHScrollBar; }
ScrollBar* GetVScrollBar() { return mpVScrollBar; }
- void SetTextWindowOffset( const Point& rOffset );
+ void SetTextWindowOffset( const Point& rOffset );
};
ImpSvMEdit::ImpSvMEdit( MultiLineEdit* pEdt, WinBits nWinStyle )
@@ -310,10 +310,10 @@ void ImpSvMEdit::ImpSetScrollBarRanges()
}
if ( mpHScrollBar )
{
-// ULONG nTextWidth = mpTextWindow->GetTextEngine()->CalcTextWidth();
+// ULONG nTextWidth = mpTextWindow->GetTextEngine()->CalcTextWidth();
// Es gibt kein Notify bei Breiten-Aenderung...
-// ULONG nW = Max( (ULONG)mpTextWindow->GetOutputSizePixel().Width()*5, (ULONG)nTextWidth );
-// mpHScrollBar->SetRange( Range( 0, (long)nW ) );
+// ULONG nW = Max( (ULONG)mpTextWindow->GetOutputSizePixel().Width()*5, (ULONG)nTextWidth );
+// mpHScrollBar->SetRange( Range( 0, (long)nW ) );
mpHScrollBar->SetRange( Range( 0, (long)mnTextWidth-1 ) );
}
}
@@ -373,8 +373,8 @@ IMPL_LINK( ImpSvMEdit, ScrollHdl, ScrollBar*, pCurScrollBar )
// void ImpSvMEdit::ImpModified()
// {
-// // Wann wird das gerufen ?????????????????????
-// pSvMultiLineEdit->Modify();
+// // Wann wird das gerufen ?????????????????????
+// pSvMultiLineEdit->Modify();
// }
void ImpSvMEdit::SetAlign( WinBits nWinStyle )
@@ -681,7 +681,7 @@ const Selection& ImpSvMEdit::GetSelection() const
Size ImpSvMEdit::CalcMinimumSize() const
{
- Size aSz( mpTextWindow->GetTextEngine()->CalcTextWidth(),
+ Size aSz( mpTextWindow->GetTextEngine()->CalcTextWidth(),
mpTextWindow->GetTextEngine()->GetTextHeight() );
if ( mpHScrollBar )
@@ -791,7 +791,7 @@ void TextWindow::MouseMove( const MouseEvent& rMEvt )
void TextWindow::MouseButtonDown( const MouseEvent& rMEvt )
{
- mbInMBDown = TRUE; // Dann im GetFocus nicht alles selektieren wird
+ mbInMBDown = TRUE; // Dann im GetFocus nicht alles selektieren wird
mpExtTextView->MouseButtonDown( rMEvt );
Window::MouseButtonDown( rMEvt );
GrabFocus();
@@ -808,7 +808,7 @@ void TextWindow::KeyInput( const KeyEvent& rKEvent )
{
BOOL bDone = FALSE;
USHORT nCode = rKEvent.GetKeyCode().GetCode();
- if ( nCode == com::sun::star::awt::Key::SELECT_ALL ||
+ if ( nCode == com::sun::star::awt::Key::SELECT_ALL ||
( (nCode == KEY_A) && rKEvent.GetKeyCode().IsMod1() && !rKEvent.GetKeyCode().IsMod2() )
)
{
@@ -879,10 +879,10 @@ void TextWindow::Command( const CommandEvent& rCEvt )
{
pPopup->EnableItem( SV_MENU_EDIT_UNDO, FALSE );
}
-// if ( ( maSelection.Min() == 0 ) && ( maSelection.Max() == maText.Len() ) )
-// {
-// pPopup->EnableItem( SV_MENU_EDIT_SELECTALL, FALSE );
-// }
+// if ( ( maSelection.Min() == 0 ) && ( maSelection.Max() == maText.Len() ) )
+// {
+// pPopup->EnableItem( SV_MENU_EDIT_SELECTALL, FALSE );
+// }
if ( !Edit::GetGetSpecialCharsFunction() )
{
USHORT nPos = pPopup->GetItemPos( SV_MENU_EDIT_INSERTSYMBOL );
@@ -898,30 +898,30 @@ void TextWindow::Command( const CommandEvent& rCEvt )
Size aSize = GetOutputSizePixel();
aPos = Point( aSize.Width()/2, aSize.Height()/2 );
}
-// pPopup->RemoveDisabledEntries();
+// pPopup->RemoveDisabledEntries();
USHORT n = pPopup->Execute( this, aPos );
Edit::DeletePopupMenu( pPopup );
switch ( n )
{
- case SV_MENU_EDIT_UNDO: mpExtTextView->Undo();
+ case SV_MENU_EDIT_UNDO: mpExtTextView->Undo();
mpExtTextEngine->SetModified( TRUE );
mpExtTextEngine->Broadcast( TextHint( TEXT_HINT_MODIFIED ) );
break;
- case SV_MENU_EDIT_CUT: mpExtTextView->Cut();
+ case SV_MENU_EDIT_CUT: mpExtTextView->Cut();
mpExtTextEngine->SetModified( TRUE );
mpExtTextEngine->Broadcast( TextHint( TEXT_HINT_MODIFIED ) );
break;
- case SV_MENU_EDIT_COPY: mpExtTextView->Copy();
+ case SV_MENU_EDIT_COPY: mpExtTextView->Copy();
break;
- case SV_MENU_EDIT_PASTE: mpExtTextView->Paste();
+ case SV_MENU_EDIT_PASTE: mpExtTextView->Paste();
mpExtTextEngine->SetModified( TRUE );
mpExtTextEngine->Broadcast( TextHint( TEXT_HINT_MODIFIED ) );
break;
- case SV_MENU_EDIT_DELETE: mpExtTextView->DeleteSelected();
+ case SV_MENU_EDIT_DELETE: mpExtTextView->DeleteSelected();
mpExtTextEngine->SetModified( TRUE );
mpExtTextEngine->Broadcast( TextHint( TEXT_HINT_MODIFIED ) );
break;
- case SV_MENU_EDIT_SELECTALL: mpExtTextView->SetSelection( TextSelection( TextPaM( 0, 0 ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
+ case SV_MENU_EDIT_SELECTALL: mpExtTextView->SetSelection( TextSelection( TextPaM( 0, 0 ), TextPaM( 0xFFFFFFFF, 0xFFFF ) ) );
break;
case SV_MENU_EDIT_INSERTSYMBOL:
{
@@ -1515,7 +1515,7 @@ long MultiLineEdit::PreNotify( NotifyEvent& rNEvt )
pImpSvMEdit->GetVScrollBar()->DoScrollAction( SCROLL_LINEDOWN );
}
break;
- case KEY_PAGEUP :
+ case KEY_PAGEUP :
{
if ( pImpSvMEdit->GetVScrollBar() )
pImpSvMEdit->GetVScrollBar()->DoScrollAction( SCROLL_PAGEUP );
diff --git a/svtools/source/edit/svmedit2.cxx b/svtools/source/edit/svmedit2.cxx
index 1241eef2089e..068d47a662d2 100644
--- a/svtools/source/edit/svmedit2.cxx
+++ b/svtools/source/edit/svmedit2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/edit/sychconv.cxx b/svtools/source/edit/sychconv.cxx
index bc969b53aee8..a40eb7f94a41 100644
--- a/svtools/source/edit/sychconv.cxx
+++ b/svtools/source/edit/sychconv.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,44 +34,44 @@
BOOL SymCharConverter::Convert( Font& rFont, UniString& rString, OutputDevice* pDev )
{
// hibyte 0 = exact matching
- // 1 = little differences,
- // 2 = the converted character does not look like the original but got the same meaning
- // 3 = the destination does not match looking and meaning of the original
+ // 1 = little differences,
+ // 2 = the converted character does not look like the original but got the same meaning
+ // 3 = the destination does not match looking and meaning of the original
static USHORT __READONLY_DATA aWingdingsToStarBatsTable[ 256 - 32 ] =
{
- 0x0020, 0x0238, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0174, 0x02BA, 0x017B, 0x017C, 0x037C, 0x037C, 0x037C, 0x037C,
- 0x0000, 0x0000, 0x0372, 0x0272, 0x0372, 0x0000, 0x0000, 0x0374, 0x0279, 0x0000, 0x027A, 0x0000, 0x0178, 0x0278, 0x0000, 0x0137,
- 0x027E, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x017D, 0x0000, 0x0000, 0x0000, 0x0021, 0x03AC, 0x00AD, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x01C0, 0x0000, 0x0000, 0x0286, 0x0286, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0022, 0x0023, 0x0024, 0x0025,
- 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x0133, 0x0000, 0x0000, 0x0000, 0x0000, 0x0193, 0x0194, 0x0000,
- 0x0067, 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, 0x0070, 0x0071, 0x005C, 0x005D, 0x005E, 0x005F, 0x0060,
- 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x01A5, 0x0095,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x002E, 0x0024, 0x0125, 0x0000, 0x0000, 0x0000, 0x014B, 0x024D, 0x014E, 0x014A,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x002F, 0x0000, 0x0000, 0x0000, 0x0035, 0x0000, 0x0000, 0x0000,
- 0x0030, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0031, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x01B1,
- 0x01AF, 0x01B2, 0x01B0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0150, 0x0032, 0x0033, 0x0034, 0x01C8
+ 0x0020, 0x0238, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0174, 0x02BA, 0x017B, 0x017C, 0x037C, 0x037C, 0x037C, 0x037C,
+ 0x0000, 0x0000, 0x0372, 0x0272, 0x0372, 0x0000, 0x0000, 0x0374, 0x0279, 0x0000, 0x027A, 0x0000, 0x0178, 0x0278, 0x0000, 0x0137,
+ 0x027E, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x017D, 0x0000, 0x0000, 0x0000, 0x0021, 0x03AC, 0x00AD, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x01C0, 0x0000, 0x0000, 0x0286, 0x0286, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0022, 0x0023, 0x0024, 0x0025,
+ 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x0133, 0x0000, 0x0000, 0x0000, 0x0000, 0x0193, 0x0194, 0x0000,
+ 0x0067, 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F, 0x0070, 0x0071, 0x005C, 0x005D, 0x005E, 0x005F, 0x0060,
+ 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x01A5, 0x0095,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x002E, 0x0024, 0x0125, 0x0000, 0x0000, 0x0000, 0x014B, 0x024D, 0x014E, 0x014A,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x002F, 0x0000, 0x0000, 0x0000, 0x0035, 0x0000, 0x0000, 0x0000,
+ 0x0030, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0031, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x01B1,
+ 0x01AF, 0x01B2, 0x01B0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0150, 0x0032, 0x0033, 0x0034, 0x01C8
};
static USHORT __READONLY_DATA aMonotypeSortsToStarBatsTable[ 256 - 32 ]=
{
- 0x0020, 0x00cb, 0x00cb, 0x00cb, 0x00cb, 0x0074, 0x00ba, 0x0021, 0x00cc, 0x007b, 0x0036, 0x007d, 0x007e, 0x0037, 0x0038, 0x0038,
- 0x0039, 0x0038, 0x0038, 0x0039, 0x003a, 0x004f, 0x0050, 0x004f, 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0086, 0x0086, 0x0086,
- 0x0052, 0x00cd, 0x0044, 0x0045, 0x0046, 0x0047, 0x0041, 0x0041, 0x0058, 0x0057, 0x0075, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059,
- 0x005a, 0x004b, 0x004b, 0x0048, 0x0049, 0x004a, 0x004b, 0x004c, 0x004d, 0x004e, 0x004e, 0x004b, 0x004b, 0x00ce, 0x00ce, 0x00ce,
- 0x00ce, 0x00ce, 0x00ce, 0x00ce, 0x00cf, 0x00cf, 0x00cf, 0x00cf, 0x00cf, 0x00cf, 0x00b9, 0x00b9, 0x003b, 0x003c, 0x003d, 0x003e,
- 0x003f, 0x003e, 0x0040, 0x00c5, 0x00c4, 0x002b, 0x002c, 0x00d0, 0x00d1, 0x00d1, 0x00d1, 0x0091, 0x0092, 0x0093, 0x0094, 0x0000,
- 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x00d4, 0x00d4, 0x00d4, 0x00d6, 0x00d6, 0x00d4, 0x00d4, 0x00d5, 0x002a, 0x00d6, 0x00d7, 0x0068, 0x0069, 0x006a, 0x006b,
- 0x006c, 0x006d, 0x006e, 0x006f, 0x0070, 0x0071, 0x005d, 0x005e, 0x005f, 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066,
- 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, 0x0070, 0x0071, 0x005d, 0x005e, 0x005f, 0x0060, 0x0061, 0x0062,
- 0x0063, 0x0064, 0x0065, 0x0066, 0x0030, 0x0031, 0x00d8, 0x00d9, 0x00da, 0x00bc, 0x00db, 0x00bc, 0x00bc, 0x00bc, 0x00bc, 0x0031,
- 0x0031, 0x0031, 0x002f, 0x002f, 0x002f, 0x00be, 0x00be, 0x0031, 0x0031, 0x00af, 0x00af, 0x00af, 0x00af, 0x00af, 0x00af, 0x00af,
- 0x0000, 0x00af, 0x0035, 0x00dc, 0x00da, 0x00dc, 0x00db, 0x00da, 0x00dc, 0x00db, 0x00dc, 0x00dc, 0x00dc, 0x00dc, 0x00af, 0x0000
+ 0x0020, 0x00cb, 0x00cb, 0x00cb, 0x00cb, 0x0074, 0x00ba, 0x0021, 0x00cc, 0x007b, 0x0036, 0x007d, 0x007e, 0x0037, 0x0038, 0x0038,
+ 0x0039, 0x0038, 0x0038, 0x0039, 0x003a, 0x004f, 0x0050, 0x004f, 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0086, 0x0086, 0x0086,
+ 0x0052, 0x00cd, 0x0044, 0x0045, 0x0046, 0x0047, 0x0041, 0x0041, 0x0058, 0x0057, 0x0075, 0x0055, 0x0056, 0x0057, 0x0058, 0x0059,
+ 0x005a, 0x004b, 0x004b, 0x0048, 0x0049, 0x004a, 0x004b, 0x004c, 0x004d, 0x004e, 0x004e, 0x004b, 0x004b, 0x00ce, 0x00ce, 0x00ce,
+ 0x00ce, 0x00ce, 0x00ce, 0x00ce, 0x00cf, 0x00cf, 0x00cf, 0x00cf, 0x00cf, 0x00cf, 0x00b9, 0x00b9, 0x003b, 0x003c, 0x003d, 0x003e,
+ 0x003f, 0x003e, 0x0040, 0x00c5, 0x00c4, 0x002b, 0x002c, 0x00d0, 0x00d1, 0x00d1, 0x00d1, 0x0091, 0x0092, 0x0093, 0x0094, 0x0000,
+ 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x00d2, 0x00d3, 0x0000, 0x0000,
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
+ 0x0000, 0x00d4, 0x00d4, 0x00d4, 0x00d6, 0x00d6, 0x00d4, 0x00d4, 0x00d5, 0x002a, 0x00d6, 0x00d7, 0x0068, 0x0069, 0x006a, 0x006b,
+ 0x006c, 0x006d, 0x006e, 0x006f, 0x0070, 0x0071, 0x005d, 0x005e, 0x005f, 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066,
+ 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f, 0x0070, 0x0071, 0x005d, 0x005e, 0x005f, 0x0060, 0x0061, 0x0062,
+ 0x0063, 0x0064, 0x0065, 0x0066, 0x0030, 0x0031, 0x00d8, 0x00d9, 0x00da, 0x00bc, 0x00db, 0x00bc, 0x00bc, 0x00bc, 0x00bc, 0x0031,
+ 0x0031, 0x0031, 0x002f, 0x002f, 0x002f, 0x00be, 0x00be, 0x0031, 0x0031, 0x00af, 0x00af, 0x00af, 0x00af, 0x00af, 0x00af, 0x00af,
+ 0x0000, 0x00af, 0x0035, 0x00dc, 0x00da, 0x00dc, 0x00db, 0x00da, 0x00dc, 0x00db, 0x00dc, 0x00dc, 0x00dc, 0x00dc, 0x00af, 0x0000
};
const USHORT* pTransTable = NULL;
@@ -92,8 +92,8 @@ BOOL SymCharConverter::Convert( Font& rFont, UniString& rString, OutputDevice* p
c = rString.GetChar( i );
c -= 32;
c = ( ((UINT16)c) >= 224 ) ? 0 : (sal_Unicode) pTransTable[ c ];
- if ( !c ) // if character is out of range or not matching
- c = 0xA5; // we will default a StarBats-Bullet
+ if ( !c ) // if character is out of range or not matching
+ c = 0xA5; // we will default a StarBats-Bullet
rString.SetChar( i, c );
}
rFont.SetCharSet( RTL_TEXTENCODING_SYMBOL );
diff --git a/svtools/source/edit/syntaxhighlight.cxx b/svtools/source/edit/syntaxhighlight.cxx
index ec112d100277..2d583017e20e 100644
--- a/svtools/source/edit/syntaxhighlight.cxx
+++ b/svtools/source/edit/syntaxhighlight.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -189,9 +189,9 @@ static const char* strListSqlKeyWords[] = {
"drop",
"escape",
"except",
- "exists",
+ "exists",
"false",
- "from",
+ "from",
"full",
"global",
"group",
@@ -242,7 +242,7 @@ extern "C" int CDECL compare_strings( const void *arg1, const void *arg2 )
class LetterTable
{
- bool IsLetterTab[256];
+ bool IsLetterTab[256];
public:
LetterTable( void );
@@ -262,7 +262,7 @@ class BasicSimpleCharClass
public:
static BOOL isAlpha( sal_Unicode c, bool bCompatible )
{
- BOOL bRet = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
+ BOOL bRet = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
|| (bCompatible && aLetterTable.isLetter( c ));
return bRet;
}
@@ -287,68 +287,68 @@ LetterTable::LetterTable( void )
for( int i = 0 ; i < 256 ; ++i )
IsLetterTab[i] = false;
- IsLetterTab[0xC0] = true; // À , CAPITAL LETTER A WITH GRAVE ACCENT
- IsLetterTab[0xC1] = true; // Á , CAPITAL LETTER A WITH ACUTE ACCENT
- IsLetterTab[0xC2] = true; // Â , CAPITAL LETTER A WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xC3] = true; // Ã , CAPITAL LETTER A WITH TILDE
- IsLetterTab[0xC4] = true; // Ä , CAPITAL LETTER A WITH DIAERESIS
- IsLetterTab[0xC5] = true; // Å , CAPITAL LETTER A WITH RING ABOVE
- IsLetterTab[0xC6] = true; // Æ , CAPITAL LIGATURE AE
- IsLetterTab[0xC7] = true; // Ç , CAPITAL LETTER C WITH CEDILLA
- IsLetterTab[0xC8] = true; // È , CAPITAL LETTER E WITH GRAVE ACCENT
- IsLetterTab[0xC9] = true; // É , CAPITAL LETTER E WITH ACUTE ACCENT
- IsLetterTab[0xCA] = true; // Ê , CAPITAL LETTER E WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xCB] = true; // Ë , CAPITAL LETTER E WITH DIAERESIS
- IsLetterTab[0xCC] = true; // Ì , CAPITAL LETTER I WITH GRAVE ACCENT
- IsLetterTab[0xCD] = true; // Í , CAPITAL LETTER I WITH ACUTE ACCENT
- IsLetterTab[0xCE] = true; // Î , CAPITAL LETTER I WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xCF] = true; // Ï , CAPITAL LETTER I WITH DIAERESIS
- IsLetterTab[0xD0] = true; // Ð , CAPITAL LETTER ETH
- IsLetterTab[0xD1] = true; // Ñ , CAPITAL LETTER N WITH TILDE
- IsLetterTab[0xD2] = true; // Ò , CAPITAL LETTER O WITH GRAVE ACCENT
- IsLetterTab[0xD3] = true; // Ó , CAPITAL LETTER O WITH ACUTE ACCENT
- IsLetterTab[0xD4] = true; // Ô , CAPITAL LETTER O WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xD5] = true; // Õ , CAPITAL LETTER O WITH TILDE
- IsLetterTab[0xD6] = true; // Ö , CAPITAL LETTER O WITH DIAERESIS
- IsLetterTab[0xD8] = true; // Ø , CAPITAL LETTER O WITH STROKE
- IsLetterTab[0xD9] = true; // Ù , CAPITAL LETTER U WITH GRAVE ACCENT
- IsLetterTab[0xDA] = true; // Ú , CAPITAL LETTER U WITH ACUTE ACCENT
- IsLetterTab[0xDB] = true; // Û , CAPITAL LETTER U WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xDC] = true; // Ü , CAPITAL LETTER U WITH DIAERESIS
- IsLetterTab[0xDD] = true; // Ý , CAPITAL LETTER Y WITH ACUTE ACCENT
- IsLetterTab[0xDE] = true; // Þ , CAPITAL LETTER THORN
- IsLetterTab[0xDF] = true; // ß , SMALL LETTER SHARP S
- IsLetterTab[0xE0] = true; // à , SMALL LETTER A WITH GRAVE ACCENT
- IsLetterTab[0xE1] = true; // á , SMALL LETTER A WITH ACUTE ACCENT
- IsLetterTab[0xE2] = true; // â , SMALL LETTER A WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xE3] = true; // ã , SMALL LETTER A WITH TILDE
- IsLetterTab[0xE4] = true; // ä , SMALL LETTER A WITH DIAERESIS
- IsLetterTab[0xE5] = true; // å , SMALL LETTER A WITH RING ABOVE
- IsLetterTab[0xE6] = true; // æ , SMALL LIGATURE AE
- IsLetterTab[0xE7] = true; // ç , SMALL LETTER C WITH CEDILLA
- IsLetterTab[0xE8] = true; // è , SMALL LETTER E WITH GRAVE ACCENT
- IsLetterTab[0xE9] = true; // é , SMALL LETTER E WITH ACUTE ACCENT
- IsLetterTab[0xEA] = true; // ê , SMALL LETTER E WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xEB] = true; // ë , SMALL LETTER E WITH DIAERESIS
- IsLetterTab[0xEC] = true; // ì , SMALL LETTER I WITH GRAVE ACCENT
- IsLetterTab[0xED] = true; // í , SMALL LETTER I WITH ACUTE ACCENT
- IsLetterTab[0xEE] = true; // î , SMALL LETTER I WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xEF] = true; // ï , SMALL LETTER I WITH DIAERESIS
- IsLetterTab[0xF0] = true; // ð , SMALL LETTER ETH
- IsLetterTab[0xF1] = true; // ñ , SMALL LETTER N WITH TILDE
- IsLetterTab[0xF2] = true; // ò , SMALL LETTER O WITH GRAVE ACCENT
- IsLetterTab[0xF3] = true; // ó , SMALL LETTER O WITH ACUTE ACCENT
- IsLetterTab[0xF4] = true; // ô , SMALL LETTER O WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xF5] = true; // õ , SMALL LETTER O WITH TILDE
- IsLetterTab[0xF6] = true; // ö , SMALL LETTER O WITH DIAERESIS
- IsLetterTab[0xF8] = true; // ø , SMALL LETTER O WITH OBLIQUE BAR
- IsLetterTab[0xF9] = true; // ù , SMALL LETTER U WITH GRAVE ACCENT
- IsLetterTab[0xFA] = true; // ú , SMALL LETTER U WITH ACUTE ACCENT
- IsLetterTab[0xFB] = true; // û , SMALL LETTER U WITH CIRCUMFLEX ACCENT
- IsLetterTab[0xFC] = true; // ü , SMALL LETTER U WITH DIAERESIS
- IsLetterTab[0xFD] = true; // ý , SMALL LETTER Y WITH ACUTE ACCENT
- IsLetterTab[0xFE] = true; // þ , SMALL LETTER THORN
- IsLetterTab[0xFF] = true; // ÿ , SMALL LETTER Y WITH DIAERESIS
+ IsLetterTab[0xC0] = true; // À , CAPITAL LETTER A WITH GRAVE ACCENT
+ IsLetterTab[0xC1] = true; // Á , CAPITAL LETTER A WITH ACUTE ACCENT
+ IsLetterTab[0xC2] = true; // Â , CAPITAL LETTER A WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xC3] = true; // Ã , CAPITAL LETTER A WITH TILDE
+ IsLetterTab[0xC4] = true; // Ä , CAPITAL LETTER A WITH DIAERESIS
+ IsLetterTab[0xC5] = true; // Å , CAPITAL LETTER A WITH RING ABOVE
+ IsLetterTab[0xC6] = true; // Æ , CAPITAL LIGATURE AE
+ IsLetterTab[0xC7] = true; // Ç , CAPITAL LETTER C WITH CEDILLA
+ IsLetterTab[0xC8] = true; // È , CAPITAL LETTER E WITH GRAVE ACCENT
+ IsLetterTab[0xC9] = true; // É , CAPITAL LETTER E WITH ACUTE ACCENT
+ IsLetterTab[0xCA] = true; // Ê , CAPITAL LETTER E WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xCB] = true; // Ë , CAPITAL LETTER E WITH DIAERESIS
+ IsLetterTab[0xCC] = true; // Ì , CAPITAL LETTER I WITH GRAVE ACCENT
+ IsLetterTab[0xCD] = true; // Í , CAPITAL LETTER I WITH ACUTE ACCENT
+ IsLetterTab[0xCE] = true; // Î , CAPITAL LETTER I WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xCF] = true; // Ï , CAPITAL LETTER I WITH DIAERESIS
+ IsLetterTab[0xD0] = true; // Ð , CAPITAL LETTER ETH
+ IsLetterTab[0xD1] = true; // Ñ , CAPITAL LETTER N WITH TILDE
+ IsLetterTab[0xD2] = true; // Ò , CAPITAL LETTER O WITH GRAVE ACCENT
+ IsLetterTab[0xD3] = true; // Ó , CAPITAL LETTER O WITH ACUTE ACCENT
+ IsLetterTab[0xD4] = true; // Ô , CAPITAL LETTER O WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xD5] = true; // Õ , CAPITAL LETTER O WITH TILDE
+ IsLetterTab[0xD6] = true; // Ö , CAPITAL LETTER O WITH DIAERESIS
+ IsLetterTab[0xD8] = true; // Ø , CAPITAL LETTER O WITH STROKE
+ IsLetterTab[0xD9] = true; // Ù , CAPITAL LETTER U WITH GRAVE ACCENT
+ IsLetterTab[0xDA] = true; // Ú , CAPITAL LETTER U WITH ACUTE ACCENT
+ IsLetterTab[0xDB] = true; // Û , CAPITAL LETTER U WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xDC] = true; // Ü , CAPITAL LETTER U WITH DIAERESIS
+ IsLetterTab[0xDD] = true; // Ý , CAPITAL LETTER Y WITH ACUTE ACCENT
+ IsLetterTab[0xDE] = true; // Þ , CAPITAL LETTER THORN
+ IsLetterTab[0xDF] = true; // ß , SMALL LETTER SHARP S
+ IsLetterTab[0xE0] = true; // à , SMALL LETTER A WITH GRAVE ACCENT
+ IsLetterTab[0xE1] = true; // á , SMALL LETTER A WITH ACUTE ACCENT
+ IsLetterTab[0xE2] = true; // â , SMALL LETTER A WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xE3] = true; // ã , SMALL LETTER A WITH TILDE
+ IsLetterTab[0xE4] = true; // ä , SMALL LETTER A WITH DIAERESIS
+ IsLetterTab[0xE5] = true; // å , SMALL LETTER A WITH RING ABOVE
+ IsLetterTab[0xE6] = true; // æ , SMALL LIGATURE AE
+ IsLetterTab[0xE7] = true; // ç , SMALL LETTER C WITH CEDILLA
+ IsLetterTab[0xE8] = true; // è , SMALL LETTER E WITH GRAVE ACCENT
+ IsLetterTab[0xE9] = true; // é , SMALL LETTER E WITH ACUTE ACCENT
+ IsLetterTab[0xEA] = true; // ê , SMALL LETTER E WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xEB] = true; // ë , SMALL LETTER E WITH DIAERESIS
+ IsLetterTab[0xEC] = true; // ì , SMALL LETTER I WITH GRAVE ACCENT
+ IsLetterTab[0xED] = true; // í , SMALL LETTER I WITH ACUTE ACCENT
+ IsLetterTab[0xEE] = true; // î , SMALL LETTER I WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xEF] = true; // ï , SMALL LETTER I WITH DIAERESIS
+ IsLetterTab[0xF0] = true; // ð , SMALL LETTER ETH
+ IsLetterTab[0xF1] = true; // ñ , SMALL LETTER N WITH TILDE
+ IsLetterTab[0xF2] = true; // ò , SMALL LETTER O WITH GRAVE ACCENT
+ IsLetterTab[0xF3] = true; // ó , SMALL LETTER O WITH ACUTE ACCENT
+ IsLetterTab[0xF4] = true; // ô , SMALL LETTER O WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xF5] = true; // õ , SMALL LETTER O WITH TILDE
+ IsLetterTab[0xF6] = true; // ö , SMALL LETTER O WITH DIAERESIS
+ IsLetterTab[0xF8] = true; // ø , SMALL LETTER O WITH OBLIQUE BAR
+ IsLetterTab[0xF9] = true; // ù , SMALL LETTER U WITH GRAVE ACCENT
+ IsLetterTab[0xFA] = true; // ú , SMALL LETTER U WITH ACUTE ACCENT
+ IsLetterTab[0xFB] = true; // û , SMALL LETTER U WITH CIRCUMFLEX ACCENT
+ IsLetterTab[0xFC] = true; // ü , SMALL LETTER U WITH DIAERESIS
+ IsLetterTab[0xFD] = true; // ý , SMALL LETTER Y WITH ACUTE ACCENT
+ IsLetterTab[0xFE] = true; // þ , SMALL LETTER THORN
+ IsLetterTab[0xFF] = true; // ÿ , SMALL LETTER Y WITH DIAERESIS
}
bool LetterTable::isLetterUnicode( sal_Unicode c )
@@ -469,7 +469,7 @@ BOOL SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType,
}
}
- // Operator?
+ // Operator?
// only for BASIC '\'' should be a comment, otherwise it is a normal string and handled there
else if ( ( testCharFlags( c, CHAR_OPERATOR ) == TRUE ) || ( (c == '\'') && (aLanguage==HIGHLIGHT_BASIC)) )
{
@@ -524,7 +524,7 @@ BOOL SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType,
// Kommentar ?
if ( c == '\'' )
{
- c = getChar(); // '/' entfernen
+ c = getChar(); // '/' entfernen
// Alle Zeichen bis Zeilen-Ende oder EOF entfernen
sal_Unicode cPeek = peekChar();
@@ -570,7 +570,7 @@ BOOL SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType,
{
// o entfernen
getChar();
- nRadix = 8; // Octal-Basis
+ nRadix = 8; // Octal-Basis
// Alle Ziffern einlesen
while( testCharFlags( peekChar(), CHAR_IN_OCT_NUMBER ) )
@@ -581,7 +581,7 @@ BOOL SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType,
{
// x entfernen
getChar();
- nRadix = 16; // Hex-Basis
+ nRadix = 16; // Hex-Basis
// Alle Ziffern einlesen und puffern
while( testCharFlags( peekChar(), CHAR_IN_HEX_NUMBER ) )
@@ -605,7 +605,7 @@ BOOL SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType,
(bAfterExpChar && peekChar() == '-' ) )
// Nach Exponent auch +/- OK
{
- c = getChar(); // Zeichen lesen
+ c = getChar(); // Zeichen lesen
bAfterExpChar = ( c == 'e' || c == 'E' );
}
}
@@ -640,7 +640,7 @@ BOOL SimpleTokenizer_Impl::getNextToken( /*out*/TokenTypes& reType,
}
}
- // Zeichen lesen
+ // Zeichen lesen
if( reType != TT_ERROR )
{
getChar();
@@ -688,17 +688,17 @@ String SimpleTokenizer_Impl::getFullTokenStr( /*out*/TokenTypes eType,
String aOut;
switch( eType )
{
- case TT_UNKNOWN: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_UNKNOWN:") ); break;
- case TT_IDENTIFIER: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_IDENTIFIER:") ); break;
- case TT_WHITESPACE: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_WHITESPACE:") ); break;
- case TT_NUMBER: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_NUMBER:") ); break;
- case TT_STRING: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_STRING:") ); break;
- case TT_EOL: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_EOL:") ); break;
- case TT_COMMENT: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_COMMENT:") ); break;
- case TT_ERROR: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_ERROR:") ); break;
- case TT_OPERATOR: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_OPERATOR:") ); break;
- case TT_KEYWORDS: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_KEYWORD:") ); break;
- case TT_PARAMETER: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_PARAMETER:") ); break;
+ case TT_UNKNOWN: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_UNKNOWN:") ); break;
+ case TT_IDENTIFIER: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_IDENTIFIER:") ); break;
+ case TT_WHITESPACE: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_WHITESPACE:") ); break;
+ case TT_NUMBER: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_NUMBER:") ); break;
+ case TT_STRING: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_STRING:") ); break;
+ case TT_EOL: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_EOL:") ); break;
+ case TT_COMMENT: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_COMMENT:") ); break;
+ case TT_ERROR: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_ERROR:") ); break;
+ case TT_OPERATOR: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_OPERATOR:") ); break;
+ case TT_KEYWORDS: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_KEYWORD:") ); break;
+ case TT_PARAMETER: aOut = String( RTL_CONSTASCII_USTRINGPARAM("TT_PARAMETER:") ); break;
}
if( eType != TT_EOL )
{
@@ -758,7 +758,7 @@ SimpleTokenizer_Impl::SimpleTokenizer_Impl( HighlighterLanguage aLang ): aLangua
// Operator-Zeichen
aCharTypeTab[(int)'!'] |= CHAR_OPERATOR;
aCharTypeTab[(int)'%'] |= CHAR_OPERATOR;
- // aCharTypeTab[(int)'&'] |= CHAR_OPERATOR; Removed because of #i14140
+ // aCharTypeTab[(int)'&'] |= CHAR_OPERATOR; Removed because of #i14140
aCharTypeTab[(int)'('] |= CHAR_OPERATOR;
aCharTypeTab[(int)')'] |= CHAR_OPERATOR;
aCharTypeTab[(int)'*'] |= CHAR_OPERATOR;
@@ -776,7 +776,7 @@ SimpleTokenizer_Impl::SimpleTokenizer_Impl( HighlighterLanguage aLang ): aLangua
aCharTypeTab[(int)'~'] |= CHAR_OPERATOR;
aCharTypeTab[(int)'{'] |= CHAR_OPERATOR;
aCharTypeTab[(int)'}'] |= CHAR_OPERATOR;
- // aCharTypeTab[(int)'['] |= CHAR_OPERATOR; Removed because of #i17826
+ // aCharTypeTab[(int)'['] |= CHAR_OPERATOR; Removed because of #i17826
aCharTypeTab[(int)']'] |= CHAR_OPERATOR;
aCharTypeTab[(int)';'] |= CHAR_OPERATOR;
@@ -896,7 +896,7 @@ const Range SyntaxHighlighter::notifyChange( UINT32 nLine, INT32 nLineCountDiffe
const String* pChangedLines, UINT32 nArrayLength)
{
(void)nLineCountDifference;
-
+
for( UINT32 i=0 ; i < nArrayLength ; i++ )
m_pSimpleTokenizer->parseLine(nLine+i, &pChangedLines[i]);
diff --git a/svtools/source/edit/textdat2.hxx b/svtools/source/edit/textdat2.hxx
index eb129fc5bca1..414d4355f433 100644
--- a/svtools/source/edit/textdat2.hxx
+++ b/svtools/source/edit/textdat2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,53 +39,53 @@
class TextNode;
class TextView;
-#define PORTIONKIND_TEXT 0
+#define PORTIONKIND_TEXT 0
#define PORTIONKIND_TAB 1
-#define DELMODE_SIMPLE 0
-#define DELMODE_RESTOFWORD 1
-#define DELMODE_RESTOFCONTENT 2
+#define DELMODE_SIMPLE 0
+#define DELMODE_RESTOFWORD 1
+#define DELMODE_RESTOFCONTENT 2
-#define DEL_LEFT 1
-#define DEL_RIGHT 2
-#define TRAVEL_X_DONTKNOW 0xFFFF
-#define MAXCHARSINPARA 0x3FFF-CHARPOSGROW
+#define DEL_LEFT 1
+#define DEL_RIGHT 2
+#define TRAVEL_X_DONTKNOW 0xFFFF
+#define MAXCHARSINPARA 0x3FFF-CHARPOSGROW
-#define LINE_SEP 0x0A
+#define LINE_SEP 0x0A
class TETextPortion
{
private:
- USHORT nLen;
- long nWidth;
- BYTE nKind;
+ USHORT nLen;
+ long nWidth;
+ BYTE nKind;
BYTE nRightToLeft;
- TETextPortion() { nLen = 0; nKind = PORTIONKIND_TEXT; nWidth = -1; nRightToLeft = 0;}
+ TETextPortion() { nLen = 0; nKind = PORTIONKIND_TEXT; nWidth = -1; nRightToLeft = 0;}
public:
- TETextPortion( USHORT nL ) {
+ TETextPortion( USHORT nL ) {
nLen = nL;
nKind = PORTIONKIND_TEXT;
nWidth= -1;
nRightToLeft = 0;
}
- USHORT GetLen() const { return nLen; }
- USHORT& GetLen() { return nLen; }
+ USHORT GetLen() const { return nLen; }
+ USHORT& GetLen() { return nLen; }
- long GetWidth()const { return nWidth; }
- long& GetWidth() { return nWidth; }
+ long GetWidth()const { return nWidth; }
+ long& GetWidth() { return nWidth; }
- BYTE GetKind() const { return nKind; }
- BYTE& GetKind() { return nKind; }
+ BYTE GetKind() const { return nKind; }
+ BYTE& GetKind() { return nKind; }
- BYTE GetRightToLeft() const { return nRightToLeft; }
- BYTE& GetRightToLeft() { return nRightToLeft; }
+ BYTE GetRightToLeft() const { return nRightToLeft; }
+ BYTE& GetRightToLeft() { return nRightToLeft; }
BOOL IsRightToLeft() const { return (nRightToLeft&1); }
- BOOL HasValidSize() const { return nWidth != (-1); }
+ BOOL HasValidSize() const { return nWidth != (-1); }
};
@@ -99,10 +99,10 @@ public:
TETextPortionList();
~TETextPortionList();
- void Reset();
- USHORT FindPortion( USHORT nCharPos, USHORT& rPortionStart, BOOL bPreferStartingPortion = FALSE );
+ void Reset();
+ USHORT FindPortion( USHORT nCharPos, USHORT& rPortionStart, BOOL bPreferStartingPortion = FALSE );
USHORT GetPortionStartIndex( USHORT nPortion );
- void DeleteFromPortion( USHORT nDelFrom );
+ void DeleteFromPortion( USHORT nDelFrom );
};
struct TEWritingDirectionInfo
@@ -123,56 +123,56 @@ SV_DECL_VARARR( TEWritingDirectionInfos, TEWritingDirectionInfo, 0, 4 )
class TextLine
{
private:
- USHORT mnStart;
- USHORT mnEnd;
- USHORT mnStartPortion;
- USHORT mnEndPortion;
+ USHORT mnStart;
+ USHORT mnEnd;
+ USHORT mnStartPortion;
+ USHORT mnEndPortion;
- short mnStartX;
+ short mnStartX;
- BOOL mbInvalid; // fuer geschickte Formatierung/Ausgabe
+ BOOL mbInvalid; // fuer geschickte Formatierung/Ausgabe
public:
- TextLine() {
+ TextLine() {
mnStart = mnEnd = 0;
mnStartPortion = mnEndPortion = 0;
mnStartX = 0;
mbInvalid = TRUE;
}
- BOOL IsIn( USHORT nIndex ) const
+ BOOL IsIn( USHORT nIndex ) const
{ return ( (nIndex >= mnStart ) && ( nIndex < mnEnd ) ); }
- BOOL IsIn( USHORT nIndex, BOOL bInclEnd ) const
+ BOOL IsIn( USHORT nIndex, BOOL bInclEnd ) const
{ return ( ( nIndex >= mnStart ) && ( bInclEnd ? ( nIndex <= mnEnd ) : ( nIndex < mnEnd ) ) ); }
- void SetStart( USHORT n ) { mnStart = n; }
- USHORT GetStart() const { return mnStart; }
- USHORT& GetStart() { return mnStart; }
+ void SetStart( USHORT n ) { mnStart = n; }
+ USHORT GetStart() const { return mnStart; }
+ USHORT& GetStart() { return mnStart; }
- void SetEnd( USHORT n ) { mnEnd = n; }
- USHORT GetEnd() const { return mnEnd; }
- USHORT& GetEnd() { return mnEnd; }
+ void SetEnd( USHORT n ) { mnEnd = n; }
+ USHORT GetEnd() const { return mnEnd; }
+ USHORT& GetEnd() { return mnEnd; }
- void SetStartPortion( USHORT n ) { mnStartPortion = n; }
- USHORT GetStartPortion() const { return mnStartPortion; }
- USHORT& GetStartPortion() { return mnStartPortion; }
+ void SetStartPortion( USHORT n ) { mnStartPortion = n; }
+ USHORT GetStartPortion() const { return mnStartPortion; }
+ USHORT& GetStartPortion() { return mnStartPortion; }
- void SetEndPortion( USHORT n ) { mnEndPortion = n; }
- USHORT GetEndPortion() const { return mnEndPortion; }
- USHORT& GetEndPortion() { return mnEndPortion; }
+ void SetEndPortion( USHORT n ) { mnEndPortion = n; }
+ USHORT GetEndPortion() const { return mnEndPortion; }
+ USHORT& GetEndPortion() { return mnEndPortion; }
- USHORT GetLen() const { return mnEnd - mnStart; }
+ USHORT GetLen() const { return mnEnd - mnStart; }
- BOOL IsInvalid() const { return mbInvalid; }
- BOOL IsValid() const { return !mbInvalid; }
- void SetInvalid() { mbInvalid = TRUE; }
- void SetValid() { mbInvalid = FALSE; }
+ BOOL IsInvalid() const { return mbInvalid; }
+ BOOL IsValid() const { return !mbInvalid; }
+ void SetInvalid() { mbInvalid = TRUE; }
+ void SetValid() { mbInvalid = FALSE; }
- BOOL IsEmpty() const { return (mnEnd > mnStart) ? FALSE : TRUE; }
+ BOOL IsEmpty() const { return (mnEnd > mnStart) ? FALSE : TRUE; }
- short GetStartX() const { return mnStartX; }
- void SetStartX( short n ) { mnStartX = n; }
+ short GetStartX() const { return mnStartX; }
+ void SetStartX( short n ) { mnStartX = n; }
inline BOOL operator == ( const TextLine& rLine ) const;
inline BOOL operator != ( const TextLine& rLine ) const;
@@ -183,7 +183,7 @@ typedef TextLine* TextLinePtr;
inline BOOL TextLine::operator == ( const TextLine& rLine ) const
{
- return ( ( mnStart == rLine.mnStart ) &&
+ return ( ( mnStart == rLine.mnStart ) &&
( mnEnd == rLine.mnEnd ) &&
( mnStartPortion == rLine.mnStartPortion ) &&
( mnEndPortion == rLine.mnEndPortion ) );
@@ -199,18 +199,18 @@ inline BOOL TextLine::operator != ( const TextLine& rLine ) const
class TEParaPortion
{
private:
- TextNode* mpNode;
+ TextNode* mpNode;
- TextLines maLines;
+ TextLines maLines;
TETextPortionList maTextPortions;
TEWritingDirectionInfos maWritingDirectionInfos;
- USHORT mnInvalidPosStart;
- short mnInvalidDiff;
+ USHORT mnInvalidPosStart;
+ short mnInvalidDiff;
- BOOL mbInvalid;
- BOOL mbSimple; // nur lineares Tippen
+ BOOL mbInvalid;
+ BOOL mbSimple; // nur lineares Tippen
TEParaPortion( const TEParaPortion& ) {;}
@@ -220,25 +220,25 @@ public:
~TEParaPortion();
- BOOL IsInvalid() const { return mbInvalid; }
- BOOL IsSimpleInvalid() const { return mbSimple; }
- void SetNotSimpleInvalid() { mbSimple = FALSE; }
- void SetValid() { mbInvalid = FALSE; mbSimple = TRUE;}
+ BOOL IsInvalid() const { return mbInvalid; }
+ BOOL IsSimpleInvalid() const { return mbSimple; }
+ void SetNotSimpleInvalid() { mbSimple = FALSE; }
+ void SetValid() { mbInvalid = FALSE; mbSimple = TRUE;}
- void MarkInvalid( USHORT nStart, short nDiff);
- void MarkSelectionInvalid( USHORT nStart, USHORT nEnd );
+ void MarkInvalid( USHORT nStart, short nDiff);
+ void MarkSelectionInvalid( USHORT nStart, USHORT nEnd );
- USHORT GetInvalidPosStart() const { return mnInvalidPosStart; }
- short GetInvalidDiff() const { return mnInvalidDiff; }
+ USHORT GetInvalidPosStart() const { return mnInvalidPosStart; }
+ short GetInvalidDiff() const { return mnInvalidDiff; }
- TextNode* GetNode() const { return mpNode; }
- TextLines& GetLines() { return maLines; }
- TETextPortionList& GetTextPortions() { return maTextPortions; }
+ TextNode* GetNode() const { return mpNode; }
+ TextLines& GetLines() { return maLines; }
+ TETextPortionList& GetTextPortions() { return maTextPortions; }
TEWritingDirectionInfos& GetWritingDirectionInfos() { return maWritingDirectionInfos; }
- USHORT GetLineNumber( USHORT nIndex, BOOL bInclEnd );
- void CorrectValuesBehindLastFormattedLine( USHORT nLastFormattedLine );
+ USHORT GetLineNumber( USHORT nIndex, BOOL bInclEnd );
+ void CorrectValuesBehindLastFormattedLine( USHORT nLastFormattedLine );
};
@@ -247,54 +247,54 @@ class TEParaPortions : public ToolsList<TEParaPortion*>
public:
TEParaPortions();
~TEParaPortions();
- void Reset();
+ void Reset();
};
class TextSelFunctionSet: public FunctionSet
{
private:
- TextView* mpView;
+ TextView* mpView;
public:
TextSelFunctionSet( TextView* pView );
- virtual void BeginDrag();
+ virtual void BeginDrag();
- virtual void CreateAnchor();
+ virtual void CreateAnchor();
- virtual BOOL SetCursorAtPoint( const Point& rPointPixel, BOOL bDontSelectAtCursor = FALSE );
+ virtual BOOL SetCursorAtPoint( const Point& rPointPixel, BOOL bDontSelectAtCursor = FALSE );
- virtual BOOL IsSelectionAtPoint( const Point& rPointPixel );
- virtual void DeselectAll();
+ virtual BOOL IsSelectionAtPoint( const Point& rPointPixel );
+ virtual void DeselectAll();
- virtual void DeselectAtPoint( const Point& );
- virtual void DestroyAnchor();
+ virtual void DeselectAtPoint( const Point& );
+ virtual void DestroyAnchor();
};
class IdleFormatter : public Timer
{
private:
- TextView* mpView;
- USHORT mnRestarts;
+ TextView* mpView;
+ USHORT mnRestarts;
public:
IdleFormatter();
~IdleFormatter();
- void DoIdleFormat( TextView* pV, USHORT nMaxRestarts );
- void ForceTimeout();
- TextView* GetView() { return mpView; }
+ void DoIdleFormat( TextView* pV, USHORT nMaxRestarts );
+ void ForceTimeout();
+ TextView* GetView() { return mpView; }
};
struct TextDDInfo
{
- Cursor maCursor;
- TextPaM maDropPos;
+ Cursor maCursor;
+ TextPaM maDropPos;
- BOOL mbStarterOfDD;
- BOOL mbVisCursor;
+ BOOL mbStarterOfDD;
+ BOOL mbVisCursor;
TextDDInfo()
{
diff --git a/svtools/source/edit/textdata.cxx b/svtools/source/edit/textdata.cxx
index f98e8c7cdc80..7ea355038774 100644
--- a/svtools/source/edit/textdata.cxx
+++ b/svtools/source/edit/textdata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -185,12 +185,12 @@ void TEParaPortion::MarkSelectionInvalid( USHORT nStart, USHORT /*nEnd*/ )
if ( mbInvalid == FALSE )
{
mnInvalidPosStart = nStart;
-// nInvalidPosEnd = nEnd;
+// nInvalidPosEnd = nEnd;
}
else
{
mnInvalidPosStart = Min( mnInvalidPosStart, nStart );
-// nInvalidPosEnd = pNode->Len();
+// nInvalidPosEnd = pNode->Len();
}
maWritingDirectionInfos.Remove( 0, maWritingDirectionInfos.Count() );
@@ -229,7 +229,7 @@ void TEParaPortion::CorrectValuesBehindLastFormattedLine( USHORT nLastFormattedL
const TextLine* pUnformatted = maLines[ nLastFormattedLine+1 ];
short nPortionDiff = pUnformatted->GetStartPortion() - pLastFormatted->GetEndPortion();
short nTextDiff = pUnformatted->GetStart() - pLastFormatted->GetEnd();
- nTextDiff++; // LastFormatted->GetEnd() war incl. => 1 zuviel abgezogen!
+ nTextDiff++; // LastFormatted->GetEnd() war incl. => 1 zuviel abgezogen!
// Die erste unformatierte muss genau eine Portion hinter der letzten der
// formatierten beginnen:
diff --git a/svtools/source/edit/textdoc.cxx b/svtools/source/edit/textdoc.cxx
index cf6313976d47..128335b6d2a1 100644
--- a/svtools/source/edit/textdoc.cxx
+++ b/svtools/source/edit/textdoc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -162,8 +162,8 @@ TextCharAttrib* TextCharAttribList::FindNextAttrib( USHORT nWhich, USHORT nFromP
for ( USHORT nAttr = 0; nAttr < nAttribs; nAttr++ )
{
TextCharAttrib* pAttr = GetObject( nAttr );
- if ( ( pAttr->GetStart() >= nFromPos ) &&
- ( pAttr->GetEnd() <= nMaxPos ) &&
+ if ( ( pAttr->GetStart() >= nFromPos ) &&
+ ( pAttr->GetEnd() <= nMaxPos ) &&
( pAttr->Which() == nWhich ) )
return pAttr;
}
@@ -281,7 +281,7 @@ void TextNode::ExpandAttribs( USHORT nIndex, USHORT nNew )
// Wenn spaeter doch Ueberpruefung:
// Spezialfall: Start == 0; AbsLen == 1, nNew = 1 => Expand, weil durch Absatzumbruch!
// Start <= nIndex, End >= nIndex => Start=End=nIndex!
-// if ( pAttrib->GetStart() == nIndex )
+// if ( pAttrib->GetStart() == nIndex )
pAttrib->Expand( nNew );
}
// 1: Attribut startet davor, geht bis Index...
@@ -308,7 +308,7 @@ void TextNode::ExpandAttribs( USHORT nIndex, USHORT nNew )
if ( nIndex == 0 )
{
pAttrib->Expand( nNew );
-// bResort = TRUE; // es gibt ja keine Features mehr...
+// bResort = TRUE; // es gibt ja keine Features mehr...
}
else
pAttrib->MoveForward( nNew );
@@ -353,17 +353,17 @@ void TextNode::CollapsAttribs( USHORT nIndex, USHORT nDeleted )
// Spezialfall: Attrubt deckt genau den Bereich ab
// => als leeres Attribut behalten.
if ( ( pAttrib->GetStart() == nIndex ) && ( pAttrib->GetEnd() == nEndChanges ) )
- pAttrib->GetEnd() = nIndex; // leer
+ pAttrib->GetEnd() = nIndex; // leer
else
bDelAttr = TRUE;
}
// 2. Attribut beginnt davor, endet drinnen oder dahinter...
else if ( ( pAttrib->GetStart() <= nIndex ) && ( pAttrib->GetEnd() > nIndex ) )
{
- if ( pAttrib->GetEnd() <= nEndChanges ) // endet drinnen
+ if ( pAttrib->GetEnd() <= nEndChanges ) // endet drinnen
pAttrib->GetEnd() = nIndex;
else
- pAttrib->Collaps( nDeleted ); // endet dahinter
+ pAttrib->Collaps( nDeleted ); // endet dahinter
}
// 3. Attribut beginnt drinnen, endet dahinter...
else if ( ( pAttrib->GetStart() >= nIndex ) && ( pAttrib->GetEnd() > nEndChanges ) )
@@ -500,7 +500,7 @@ void TextNode::Append( const TextNode& rNode )
pTmpAttrib->GetEnd() =
pTmpAttrib->GetEnd() + pAttrib->GetLen();
bMelted = TRUE;
- break; // es kann nur eins von der Sorte an der Stelle geben
+ break; // es kann nur eins von der Sorte an der Stelle geben
}
}
}
@@ -764,9 +764,9 @@ BOOL TextDoc::RemoveAttribs( TextNode* pNode, USHORT nStart, USHORT nEnd, TextCh
bChanged = TRUE;
if ( pAttr->GetEnd() > nEnd )
{
- pAttr->GetStart() = nEnd; // dann faengt es dahinter an
+ pAttr->GetStart() = nEnd; // dann faengt es dahinter an
rpStarting = pAttr;
- break; // es kann kein weiteres Attrib hier liegen
+ break; // es kann kein weiteres Attrib hier liegen
}
else if ( !pAttr->IsFeature() || ( pAttr->GetStart() == nStart ) )
{
@@ -781,7 +781,7 @@ BOOL TextDoc::RemoveAttribs( TextNode* pNode, USHORT nStart, USHORT nEnd, TextCh
bChanged = TRUE;
if ( ( pAttr->GetStart() < nStart ) && !pAttr->IsFeature() )
{
- pAttr->GetEnd() = nStart; // dann hoert es hier auf
+ pAttr->GetEnd() = nStart; // dann hoert es hier auf
rpEnding = pAttr;
}
else if ( !pAttr->IsFeature() || ( pAttr->GetStart() == nStart ) )
@@ -798,23 +798,23 @@ BOOL TextDoc::RemoveAttribs( TextNode* pNode, USHORT nStart, USHORT nEnd, TextCh
{
pAttr->GetStart() = nEnd;
rpStarting = pAttr;
- break; // es kann weitere Attribute geben!
+ break; // es kann weitere Attribute geben!
}
else if ( pAttr->GetEnd() == nEnd )
{
pAttr->GetEnd() = nStart;
rpEnding = pAttr;
- break; // es kann weitere Attribute geben!
+ break; // es kann weitere Attribute geben!
}
else // Attribut muss gesplittet werden...
{
USHORT nOldEnd = pAttr->GetEnd();
pAttr->GetEnd() = nStart;
rpEnding = pAttr;
-// ULONG nSavePos = pNode->GetCharAttribs().GetStartList().GetCurPos();
+// ULONG nSavePos = pNode->GetCharAttribs().GetStartList().GetCurPos();
InsertAttrib( *pAttr->GetItem(), pNode, nEnd, nOldEnd );
-// pNode->GetCharAttribs().GetStartList().Seek( nSavePos );
- break; // es kann weitere Attribute geben!
+// pNode->GetCharAttribs().GetStartList().Seek( nSavePos );
+ break; // es kann weitere Attribute geben!
}
}
}
@@ -840,17 +840,17 @@ void TextDoc::InsertAttrib( const SfxPoolItem& rPoolItem, TextNode* pNode, USHOR
// schon an der Stelle existiert!
// pruefen, ob neues Attrib oder einfach nur Ende eines Attribs...
-// const SfxPoolItem& rDefItem = pNode->GetContentAttribs().GetItem( rPoolItem.Which() );
-// BOOL bCreateAttrib = ( rDefItem != rPoolItem );
+// const SfxPoolItem& rDefItem = pNode->GetContentAttribs().GetItem( rPoolItem.Which() );
+// BOOL bCreateAttrib = ( rDefItem != rPoolItem );
// Durch den Verlust der Exclude-Liste geht es nicht mehr, dass ich
// kein neues Attribut benoetige und nur das alte nicht expandiere...
-// if ( !bCreateAttrib )
+// if ( !bCreateAttrib )
{
// => Wenn schon Default-Item, dann wenigstens nur dann einstellen,
// wenn davor wirklich ein entsprechendes Attribut.
-// if ( pNode->GetCharAttribs().FindAttrib( rPoolItem.Which(), nStart ) )
-// bCreateAttrib = TRUE;
+// if ( pNode->GetCharAttribs().FindAttrib( rPoolItem.Which(), nStart ) )
+// bCreateAttrib = TRUE;
// Aber kleiner Trost:
// Die wenigsten schreiben, aendern das Attr, schreiben, und
// stellen dann wieder das Default-Attr ein.
@@ -860,21 +860,21 @@ void TextDoc::InsertAttrib( const SfxPoolItem& rPoolItem, TextNode* pNode, USHOR
// Die Uberlegung, einfach das andere Attribut nicht zu expandieren, war
// sowieso falsch, da das DefAttr aus einer Vorlage kommen kann,
// die irgendwann verschwindet!
-// if ( bCreateAttrib )
-// {
+// if ( bCreateAttrib )
+// {
TextCharAttrib* pAttrib = MakeCharAttrib( *pCurPool, rPoolItem, nStart, nEnd );
DBG_ASSERT( pAttrib, "MakeCharAttrib fehlgeschlagen!" );
pNode->GetCharAttribs().InsertAttrib( pAttrib );
-// }
-// else
-// {
-// TextCharAttrib* pTmpAttrib =
-// pNode->GetCharAttribs().FindAnyAttrib( rPoolItem.Which() );
-// if ( pTmpAttrib ) // sonst benoetige ich es sowieso nicht....
-// {
-// aExcludeList.Insert( pTmpAttrib->GetItem() );
-// }
-// }
+// }
+// else
+// {
+// TextCharAttrib* pTmpAttrib =
+// pNode->GetCharAttribs().FindAnyAttrib( rPoolItem.Which() );
+// if ( pTmpAttrib ) // sonst benoetige ich es sowieso nicht....
+// {
+// aExcludeList.Insert( pTmpAttrib->GetItem() );
+// }
+// }
}
#pragma SEG_FUNCDEF(editdoc_40)
@@ -900,7 +900,7 @@ void TextDoc::InsertAttrib( TextNode* pNode, USHORT nStart, USHORT nEnd, const S
pAttr = pNode->GetCharAttribs().FindAttrib( rPoolItem.Which(), nStart );
if ( pAttr )
{
- if ( pAttr->IsInside( nStart ) ) // splitten
+ if ( pAttr->IsInside( nStart ) ) // splitten
{
// ???????????????????????????????
// eigentlich noch pruefen, ob wirklich splittet, oder return !
@@ -949,15 +949,15 @@ void TextDoc::FindAttribs( TextNode* pNode, USHORT nStartPos, USHORT nEndPos, Sf
// Attribut endet hier, ist leer
else if ( ( pAttr->GetStart() == nStartPos ) && ( pAttr->GetEnd() == nStartPos ) )
{
-// if ( aExcludeList.FindAttrib( pAttr->GetItem()->Which() ) )
+// if ( aExcludeList.FindAttrib( pAttr->GetItem()->Which() ) )
pItem = pAttr->GetItem();
-// else if ( pNode->Len() == 0 ) // Sonderfall
-// pItem = pAttr->GetItem();
+// else if ( pNode->Len() == 0 ) // Sonderfall
+// pItem = pAttr->GetItem();
}
// Attribut beginnt hier
else if ( ( pAttr->GetStart() == nStartPos ) && ( pAttr->GetEnd() > nStartPos ) )
{
- if ( nStartPos == 0 ) // Sonderfall
+ if ( nStartPos == 0 ) // Sonderfall
pItem = pAttr->GetItem();
}
@@ -981,7 +981,7 @@ void TextDoc::FindAttribs( TextNode* pNode, USHORT nStartPos, USHORT nEndPos, Sf
pAttr = GetAttrib( pNode->GetCharAttribs().GetAttribs(), nAttr );
}
}
- else // Selektion
+ else // Selektion
{
while ( pAttr && ( pAttr->GetStart() < nEndPos) )
{
@@ -1015,7 +1015,7 @@ void TextDoc::FindAttribs( TextNode* pNode, USHORT nStartPos, USHORT nEndPos, Sf
// Ist falsch, wenn das gleiche Attribut sofort wieder
// eingestellt wird!
// => Sollte am besten nicht vorkommen, also gleich beim
- // Setzen von Attributen richtig machen!
+ // Setzen von Attributen richtig machen!
// --------------------------------------------------
rCurSet.InvalidateItem( pAttr->GetItem()->Which() );
}
diff --git a/svtools/source/edit/textdoc.hxx b/svtools/source/edit/textdoc.hxx
index ed8919a5cb22..f81648751104 100644
--- a/svtools/source/edit/textdoc.hxx
+++ b/svtools/source/edit/textdoc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ SV_DECL_PTRARR_DEL( TextCharAttribs, TextCharAttribPtr, 0, 4 )
class TextCharAttribList : private TextCharAttribs
{
private:
- BOOL mbHasEmptyAttribs;
+ BOOL mbHasEmptyAttribs;
TextCharAttribList( const TextCharAttribList& ) : TextCharAttribs() {}
@@ -51,28 +51,28 @@ public:
TextCharAttribList();
~TextCharAttribList();
- void Clear( BOOL bDestroyAttribs );
- USHORT Count() const { return TextCharAttribs::Count(); }
+ void Clear( BOOL bDestroyAttribs );
+ USHORT Count() const { return TextCharAttribs::Count(); }
- TextCharAttrib* GetAttrib( USHORT n ) const { return TextCharAttribs::GetObject( n ); }
- void RemoveAttrib( USHORT n ) { TextCharAttribs::Remove( n, 1 ); }
+ TextCharAttrib* GetAttrib( USHORT n ) const { return TextCharAttribs::GetObject( n ); }
+ void RemoveAttrib( USHORT n ) { TextCharAttribs::Remove( n, 1 ); }
- void InsertAttrib( TextCharAttrib* pAttrib );
+ void InsertAttrib( TextCharAttrib* pAttrib );
- void DeleteEmptyAttribs();
- void ResortAttribs();
+ void DeleteEmptyAttribs();
+ void ResortAttribs();
- BOOL HasEmptyAttribs() const { return mbHasEmptyAttribs; }
- BOOL& HasEmptyAttribs() { return mbHasEmptyAttribs; }
+ BOOL HasEmptyAttribs() const { return mbHasEmptyAttribs; }
+ BOOL& HasEmptyAttribs() { return mbHasEmptyAttribs; }
- TextCharAttrib* FindAttrib( USHORT nWhich, USHORT nPos );
- TextCharAttrib* FindNextAttrib( USHORT nWhich, USHORT nFromPos, USHORT nMaxPos = 0xFFFF ) const;
- TextCharAttrib* FindEmptyAttrib( USHORT nWhich, USHORT nPos );
- BOOL HasAttrib( USHORT nWhich ) const;
- BOOL HasBoundingAttrib( USHORT nBound );
+ TextCharAttrib* FindAttrib( USHORT nWhich, USHORT nPos );
+ TextCharAttrib* FindNextAttrib( USHORT nWhich, USHORT nFromPos, USHORT nMaxPos = 0xFFFF ) const;
+ TextCharAttrib* FindEmptyAttrib( USHORT nWhich, USHORT nPos );
+ BOOL HasAttrib( USHORT nWhich ) const;
+ BOOL HasBoundingAttrib( USHORT nBound );
#ifdef DBG_UTIL
- BOOL DbgCheckAttribs();
+ BOOL DbgCheckAttribs();
#endif
};
@@ -80,70 +80,70 @@ public:
class TextNode
{
private:
- String maText;
- TextCharAttribList maCharAttribs;
+ String maText;
+ TextCharAttribList maCharAttribs;
TextNode( const TextNode& ) {;}
protected:
- void ExpandAttribs( USHORT nIndex, USHORT nNewChars );
- void CollapsAttribs( USHORT nIndex, USHORT nDelChars );
+ void ExpandAttribs( USHORT nIndex, USHORT nNewChars );
+ void CollapsAttribs( USHORT nIndex, USHORT nDelChars );
public:
TextNode( const String& rText );
- const String& GetText() const { return maText; }
+ const String& GetText() const { return maText; }
- const TextCharAttribList& GetCharAttribs() const { return maCharAttribs; }
- TextCharAttribList& GetCharAttribs() { return maCharAttribs; }
+ const TextCharAttribList& GetCharAttribs() const { return maCharAttribs; }
+ TextCharAttribList& GetCharAttribs() { return maCharAttribs; }
- void InsertText( USHORT nPos, const String& rText );
- void InsertText( USHORT nPos, sal_Unicode c );
- void RemoveText( USHORT nPos, USHORT nChars );
+ void InsertText( USHORT nPos, const String& rText );
+ void InsertText( USHORT nPos, sal_Unicode c );
+ void RemoveText( USHORT nPos, USHORT nChars );
- TextNode* Split( USHORT nPos, BOOL bKeepEndigAttribs );
- void Append( const TextNode& rNode );
+ TextNode* Split( USHORT nPos, BOOL bKeepEndigAttribs );
+ void Append( const TextNode& rNode );
};
class TextDoc
{
private:
ToolsList<TextNode*> maTextNodes;
- USHORT mnLeftMargin;
+ USHORT mnLeftMargin;
protected:
- void DestroyTextNodes();
+ void DestroyTextNodes();
public:
TextDoc();
~TextDoc();
- void Clear();
+ void Clear();
- ToolsList<TextNode*>& GetNodes() { return maTextNodes; }
- const ToolsList<TextNode*>& GetNodes() const { return maTextNodes; }
+ ToolsList<TextNode*>& GetNodes() { return maTextNodes; }
+ const ToolsList<TextNode*>& GetNodes() const { return maTextNodes; }
- TextPaM RemoveChars( const TextPaM& rPaM, USHORT nChars );
- TextPaM InsertText( const TextPaM& rPaM, sal_Unicode c );
- TextPaM InsertText( const TextPaM& rPaM, const String& rStr );
+ TextPaM RemoveChars( const TextPaM& rPaM, USHORT nChars );
+ TextPaM InsertText( const TextPaM& rPaM, sal_Unicode c );
+ TextPaM InsertText( const TextPaM& rPaM, const String& rStr );
- TextPaM InsertParaBreak( const TextPaM& rPaM, BOOL bKeepEndingAttribs );
- TextPaM ConnectParagraphs( TextNode* pLeft, TextNode* pRight );
+ TextPaM InsertParaBreak( const TextPaM& rPaM, BOOL bKeepEndingAttribs );
+ TextPaM ConnectParagraphs( TextNode* pLeft, TextNode* pRight );
- ULONG GetTextLen( const sal_Unicode* pSep, const TextSelection* pSel = NULL ) const;
- String GetText( const sal_Unicode* pSep ) const;
- String GetText( ULONG nPara ) const;
+ ULONG GetTextLen( const sal_Unicode* pSep, const TextSelection* pSel = NULL ) const;
+ String GetText( const sal_Unicode* pSep ) const;
+ String GetText( ULONG nPara ) const;
- void SetLeftMargin( USHORT n ) { mnLeftMargin = n; }
- USHORT GetLeftMargin() const { return mnLeftMargin; }
+ void SetLeftMargin( USHORT n ) { mnLeftMargin = n; }
+ USHORT GetLeftMargin() const { return mnLeftMargin; }
-// BOOL RemoveAttribs( TextNode* pNode, USHORT nStart, USHORT nEnd ), USHORT nWhich = 0 );
-// BOOL RemoveAttribs( TextNode* pNode, USHORT nStart, USHORT nEnd, TextCharAttrib*& rpStarting, TextCharAttrib*& rpEnding, USHORT nWhich = 0 );
-// void InsertAttrib( const EditCharAttrib* pAttr );
-// void InsertAttribInSelection( const EditCharAttrib* pAttr );
-// void FindAttribs( TextNode* pNode, USHORT nStartPos, USHORT nEndPos, SfxItemSet& rCurSet );
+// BOOL RemoveAttribs( TextNode* pNode, USHORT nStart, USHORT nEnd ), USHORT nWhich = 0 );
+// BOOL RemoveAttribs( TextNode* pNode, USHORT nStart, USHORT nEnd, TextCharAttrib*& rpStarting, TextCharAttrib*& rpEnding, USHORT nWhich = 0 );
+// void InsertAttrib( const EditCharAttrib* pAttr );
+// void InsertAttribInSelection( const EditCharAttrib* pAttr );
+// void FindAttribs( TextNode* pNode, USHORT nStartPos, USHORT nEndPos, SfxItemSet& rCurSet );
- BOOL IsValidPaM( const TextPaM& rPaM );
+ BOOL IsValidPaM( const TextPaM& rPaM );
};
#endif // _TEXTDOC_HXX
diff --git a/svtools/source/edit/texteng.cxx b/svtools/source/edit/texteng.cxx
index 9a3497303c83..a4a51422821b 100644
--- a/svtools/source/edit/texteng.cxx
+++ b/svtools/source/edit/texteng.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,8 +77,8 @@ SV_DECL_PTRARR( TextViews, TextViewPtr, 0, 1 )
SV_DECL_VARARR_SORT( TESortedPositions, ULONG, 16, 8 )
SV_IMPL_VARARR_SORT( TESortedPositions, ULONG )
-#define RESDIFF 10
-#define SCRLRANGE 20 // 1/20 der Breite/Hoehe scrollen, wenn im QueryDrop
+#define RESDIFF 10
+#define SCRLRANGE 20 // 1/20 der Breite/Hoehe scrollen, wenn im QueryDrop
// -------------------------------------------------------------------------
@@ -92,25 +92,25 @@ TextEngine::TextEngine()
mpViews = new TextViews;
mpActiveView = NULL;
- mbIsFormatting = FALSE;
- mbFormatted = FALSE;
- mbUpdate = TRUE;
- mbModified = FALSE;
- mbUndoEnabled = FALSE;
- mbIsInUndo = FALSE;
- mbDowning = FALSE;
- mbRightToLeft = FALSE;
+ mbIsFormatting = FALSE;
+ mbFormatted = FALSE;
+ mbUpdate = TRUE;
+ mbModified = FALSE;
+ mbUndoEnabled = FALSE;
+ mbIsInUndo = FALSE;
+ mbDowning = FALSE;
+ mbRightToLeft = FALSE;
mbHasMultiLineParas = FALSE;
- meAlign = TXTALIGN_LEFT;
+ meAlign = TXTALIGN_LEFT;
- mnMaxTextWidth = 0;
- mnMaxTextLen = 0;
- mnCurTextWidth = 0xFFFFFFFF;
- mnCurTextHeight = 0;
+ mnMaxTextWidth = 0;
+ mnMaxTextLen = 0;
+ mnCurTextWidth = 0xFFFFFFFF;
+ mnCurTextHeight = 0;
- mpUndoManager = NULL;
- mpIMEInfos = NULL;
+ mpUndoManager = NULL;
+ mpIMEInfos = NULL;
mpLocaleDataWrapper = NULL;
mpIdleFormatter = new IdleFormatter;
@@ -138,7 +138,7 @@ TextEngine::~TextEngine()
delete mpIdleFormatter;
delete mpDoc;
delete mpTEParaPortions;
- delete mpViews; // nur die Liste, nicht die Vies
+ delete mpViews; // nur die Liste, nicht die Vies
delete mpRefDev;
delete mpUndoManager;
delete mpIMEInfos;
@@ -292,7 +292,7 @@ static inline const sal_Unicode* static_getLineEndText( LineEnd aLineEnd )
}
void TextEngine::ReplaceText(const TextSelection& rSel, const String& rText)
-{
+{
ImpInsertText( rSel, rText );
}
@@ -394,9 +394,9 @@ BOOL TextEngine::DoesKeyChangeText( const KeyEvent& rKeyEvent )
case KEYFUNC_UNDO:
case KEYFUNC_REDO:
case KEYFUNC_CUT:
- case KEYFUNC_PASTE: bDoesChange = TRUE;
+ case KEYFUNC_PASTE: bDoesChange = TRUE;
break;
- default: // wird dann evtl. unten bearbeitet.
+ default: // wird dann evtl. unten bearbeitet.
eFunc = KEYFUNC_DONTKNOW;
}
}
@@ -531,7 +531,7 @@ void TextEngine::SetText( const XubString& rText )
pView->Invalidate();
}
- if( !rText.Len() ) // sonst muss spaeter noch invalidiert werden, !bFormatted reicht.
+ if( !rText.Len() ) // sonst muss spaeter noch invalidiert werden, !bFormatted reicht.
mnCurTextHeight = 0;
FormatAndUpdate();
@@ -566,16 +566,16 @@ void TextEngine::ImpRemoveChars( const TextPaM& rPaM, USHORT nChars, SfxUndoActi
TextCharAttrib* pAttr = pNode->GetCharAttribs().GetAttrib( --nAttr );
if ( ( pAttr->GetEnd() >= nStart ) && ( pAttr->GetStart() < nEnd ) )
{
-// TextSelection aSel( rPaM );
-// aSel.GetEnd().GetIndex() += nChars;
-// TextUndoSetAttribs* pAttrUndo = CreateAttribUndo( aSel );
-// InsertUndo( pAttrUndo );
- break; // for
+// TextSelection aSel( rPaM );
+// aSel.GetEnd().GetIndex() += nChars;
+// TextUndoSetAttribs* pAttrUndo = CreateAttribUndo( aSel );
+// InsertUndo( pAttrUndo );
+ break; // for
}
}
-// if ( pCurUndo && ( CreateTextPaM( pCurUndo->GetEPaM() ) == rPaM ) )
-// pCurUndo->GetStr() += aStr;
-// else
+// if ( pCurUndo && ( CreateTextPaM( pCurUndo->GetEPaM() ) == rPaM ) )
+// pCurUndo->GetStr() += aStr;
+// else
InsertUndo( new TextUndoRemoveChars( this, rPaM, aStr ) );
}
@@ -622,7 +622,7 @@ TextPaM TextEngine::ImpDeleteText( const TextSelection& rSel )
TextPaM aEndPaM( aSel.GetEnd() );
CursorMoved( aStartPaM.GetPara() ); // nur damit neu eingestellte Attribute verschwinden...
- CursorMoved( aEndPaM.GetPara() ); // nur damit neu eingestellte Attribute verschwinden...
+ CursorMoved( aEndPaM.GetPara() ); // nur damit neu eingestellte Attribute verschwinden...
DBG_ASSERT( mpDoc->IsValidPaM( aStartPaM ), "Index im Wald in ImpDeleteText" );
DBG_ASSERT( mpDoc->IsValidPaM( aEndPaM ), "Index im Wald in ImpDeleteText" );
@@ -651,7 +651,7 @@ TextPaM TextEngine::ImpDeleteText( const TextSelection& rSel )
}
// Den Anfang des EndNodes....
- nEndNode = nStartNode+1; // Die anderen Absaetze wurden geloescht
+ nEndNode = nStartNode+1; // Die anderen Absaetze wurden geloescht
nChars = aEndPaM.GetIndex();
if ( nChars )
{
@@ -676,7 +676,7 @@ TextPaM TextEngine::ImpDeleteText( const TextSelection& rSel )
pPortion->MarkInvalid( aEndPaM.GetIndex(), aStartPaM.GetIndex() - aEndPaM.GetIndex() );
}
-// UpdateSelections();
+// UpdateSelections();
TextModified();
return aStartPaM;
}
@@ -725,13 +725,13 @@ BOOL TextEngine::IsInputSequenceCheckingRequired( sal_Unicode c, const TextSelec
USHORT nMaxPos = rCurSel.GetEnd().GetIndex();
if (nMaxPos < nFirstPos)
nFirstPos = nMaxPos;
-
- sal_Bool bIsSequenceChecking =
+
+ sal_Bool bIsSequenceChecking =
aCTLOptions.IsCTLFontEnabled() &&
- aCTLOptions.IsCTLSequenceChecking() &&
+ aCTLOptions.IsCTLSequenceChecking() &&
nFirstPos != 0 && /* first char needs not to be checked */
xBI.is() && i18n::ScriptType::COMPLEX == xBI->getScriptType( rtl::OUString( c ), 0 );
-
+
return bIsSequenceChecking;
}
@@ -778,10 +778,10 @@ TextPaM TextEngine::ImpInsertText( sal_Unicode c, const TextSelection& rCurSel,
if (xISC.is())
{
xub_StrLen nTmpPos = aPaM.GetIndex();
- sal_Int16 nCheckMode = aCTLOptions.IsCTLSequenceCheckingRestricted() ?
+ sal_Int16 nCheckMode = aCTLOptions.IsCTLSequenceCheckingRestricted() ?
i18n::InputSequenceCheckMode::STRICT : i18n::InputSequenceCheckMode::BASIC;
- // the text that needs to be checked is only the one
+ // the text that needs to be checked is only the one
// before the current cursor position
rtl::OUString aOldText( mpDoc->GetText( aPaM.GetPara() ).Copy(0, nTmpPos) );
rtl::OUString aNewText( aOldText );
@@ -866,7 +866,7 @@ TextPaM TextEngine::ImpInsertText( const TextSelection& rCurSel, const XubString
{
USHORT nEnd = aText.Search( LINE_SEP, nStart );
if ( nEnd == STRING_NOTFOUND )
- nEnd = aText.Len(); // nicht dereferenzieren!
+ nEnd = aText.Len(); // nicht dereferenzieren!
// Start == End => Leerzeile
if ( nEnd > nStart )
@@ -896,8 +896,8 @@ TextPaM TextEngine::ImpInsertText( const TextSelection& rCurSel, const XubString
aPaM = ImpInsertParaBreak( aPaM );
nStart = nEnd+1;
-
- if ( nStart < nEnd ) // #108611# overflow
+
+ if ( nStart < nEnd ) // #108611# overflow
break;
}
@@ -937,7 +937,7 @@ TextPaM TextEngine::ImpInsertParaBreak( const TextPaM& rPaM, BOOL bKeepEndingAtt
mpTEParaPortions->Insert( pNewPortion, aPaM.GetPara() );
ImpParagraphInserted( aPaM.GetPara() );
- CursorMoved( rPaM.GetPara() ); // falls leeres Attribut entstanden.
+ CursorMoved( rPaM.GetPara() ); // falls leeres Attribut entstanden.
TextModified();
if ( bFirstParaContentChanged )
@@ -981,9 +981,9 @@ Rectangle TextEngine::GetEditCursor( const TextPaM& rPaM, BOOL bSpecial, BOOL bP
//TextNode* pNode = mpDoc->GetNodes().GetObject( rPaM.GetPara() );
/*
- bSpecial: Wenn hinter dem letzten Zeichen einer umgebrochenen Zeile,
+ bSpecial: Wenn hinter dem letzten Zeichen einer umgebrochenen Zeile,
am Ende der Zeile bleiben, nicht am Anfang der naechsten.
- Zweck: - END => wirklich hinter das letzte Zeichen
+ Zweck: - END => wirklich hinter das letzte Zeichen
- Selektion....
bSpecial: If behind the last character of a made up line, stay at the
end of the line, not at the start of the next line.
@@ -1059,7 +1059,7 @@ long TextEngine::ImpGetXPos( ULONG nPara, TextLine* pLine, USHORT nIndex, BOOL b
if ( nIndex == ( nTextPortionStart + pPortion->GetLen() ) )
{
// End of Portion
- if ( ( pPortion->GetKind() == PORTIONKIND_TAB ) ||
+ if ( ( pPortion->GetKind() == PORTIONKIND_TAB ) ||
( !IsRightToLeft() && !pPortion->IsRightToLeft() ) ||
( IsRightToLeft() && pPortion->IsRightToLeft() ) )
{
@@ -1067,7 +1067,7 @@ long TextEngine::ImpGetXPos( ULONG nPara, TextLine* pLine, USHORT nIndex, BOOL b
if ( ( pPortion->GetKind() == PORTIONKIND_TAB ) && ( (nTextPortion+1) < pParaPortion->GetTextPortions().Count() ) )
{
TETextPortion* pNextPortion = pParaPortion->GetTextPortions().GetObject( nTextPortion+1 );
- if ( ( pNextPortion->GetKind() != PORTIONKIND_TAB ) && (
+ if ( ( pNextPortion->GetKind() != PORTIONKIND_TAB ) && (
( !IsRightToLeft() && pNextPortion->IsRightToLeft() ) ||
( IsRightToLeft() && !pNextPortion->IsRightToLeft() ) ) )
{
@@ -1181,10 +1181,10 @@ USHORT TextEngine::ImpFindIndex( ULONG nPortion, const Point& rPosInPara, BOOL b
{
TextLine* pTmpLine = pPortion->GetLines().GetObject( nLine );
nY += mnCharHeight;
- if ( nY > rPosInPara.Y() ) // das war 'se
+ if ( nY > rPosInPara.Y() ) // das war 'se
{
pLine = pTmpLine;
- break; // richtige Y-Position intressiert nicht
+ break; // richtige Y-Position intressiert nicht
}
}
DBG_ASSERT( pLine, "ImpFindIndex: pLine ?" );
@@ -1222,7 +1222,7 @@ USHORT TextEngine::GetCharPos( ULONG nPortion, USHORT nLine, long nXPos, BOOL )
{
if( pTextPortion->GetLen() > 1 )
{
- nTmpX -= pTextPortion->GetWidth(); // vor die Portion stellen
+ nTmpX -= pTextPortion->GetWidth(); // vor die Portion stellen
// Optimieren: Kein GetTextBreak, wenn feste Fontbreite...
Font aFont;
SeekCursor( nPortion, nCurIndex+1, aFont, NULL );
@@ -1292,7 +1292,7 @@ ULONG TextEngine::CalcTextWidth()
{
ULONG nParaWidth = CalcTextWidth( --nPara );
if ( nParaWidth > mnCurTextWidth )
- mnCurTextWidth = nParaWidth;
+ mnCurTextWidth = nParaWidth;
}
}
return mnCurTextWidth+1;// Ein breiter, da in CreateLines bei >= umgebrochen wird.
@@ -1547,8 +1547,8 @@ void TextEngine::SeekCursor( ULONG nPara, USHORT nPos, Font& rFont, OutputDevice
else if ( nAttr & EXTTEXTINPUT_ATTR_GRAYWAVELINE )
{
rFont.SetUnderline( UNDERLINE_WAVE );
-// if( pOut )
-// pOut->SetTextLineColor( Color( COL_LIGHTGRAY ) );
+// if( pOut )
+// pOut->SetTextLineColor( Color( COL_LIGHTGRAY ) );
}
}
}
@@ -1642,7 +1642,7 @@ void TextEngine::FormatFullDoc()
{
for ( ULONG nPortion = 0; nPortion < mpTEParaPortions->Count(); nPortion++ )
{
- TEParaPortion* pTEParaPortion = mpTEParaPortions->GetObject( nPortion ); USHORT nLen = pTEParaPortion->GetNode()->GetText().Len();
+ TEParaPortion* pTEParaPortion = mpTEParaPortions->GetObject( nPortion ); USHORT nLen = pTEParaPortion->GetNode()->GetText().Len();
pTEParaPortion->MarkSelectionInvalid( 0, nLen );
}
mbFormatted = FALSE;
@@ -1660,7 +1660,7 @@ void TextEngine::FormatDoc()
long nY = 0;
BOOL bGrow = FALSE;
- maInvalidRec = Rectangle(); // leermachen
+ maInvalidRec = Rectangle(); // leermachen
for ( ULONG nPara = 0; nPara < mpTEParaPortions->Count(); nPara++ )
{
TEParaPortion* pTEParaPortion = mpTEParaPortions->GetObject( nPara );
@@ -1695,7 +1695,7 @@ void TextEngine::FormatDoc()
{
ULONG nNewParaWidth = CalcTextWidth( nPara );
if ( nNewParaWidth >= mnCurTextWidth )
- mnCurTextWidth = nNewParaWidth;
+ mnCurTextWidth = nNewParaWidth;
else if ( ( nOldParaWidth != 0xFFFFFFFF ) && ( nOldParaWidth >= mnCurTextWidth ) )
mnCurTextWidth = 0xFFFFFFFF;
}
@@ -1784,7 +1784,7 @@ void TextEngine::ImpBreakLine( ULONG nPara, TextLine* pLine, TETextPortion*, USH
DBG_ASSERT( nMaxBreakPos < pNode->GetText().Len(), "Break?!" );
- if ( nMaxBreakPos == STRING_LEN ) // GetTextBreak() ist anderer Auffassung als GetTextSize()
+ if ( nMaxBreakPos == STRING_LEN ) // GetTextBreak() ist anderer Auffassung als GetTextSize()
nMaxBreakPos = pNode->GetText().Len() - 1;
uno::Reference < i18n::XBreakIterator > xBI = GetBreakIterator();
@@ -1804,7 +1804,7 @@ void TextEngine::ImpBreakLine( ULONG nPara, TextLine* pLine, TETextPortion*, USH
{
nBreakPos = nMaxBreakPos;
if ( nBreakPos <= pLine->GetStart() )
- nBreakPos = pLine->GetStart() + 1; // Sonst Endlosschleife!
+ nBreakPos = pLine->GetStart() + 1; // Sonst Endlosschleife!
}
@@ -1844,7 +1844,7 @@ USHORT TextEngine::SplitTextPortion( ULONG nPara, USHORT nPos )
nTmpPos = nTmpPos + pTP->GetLen();
if ( nTmpPos >= nPos )
{
- if ( nTmpPos == nPos ) // dann braucht nichts geteilt werden
+ if ( nTmpPos == nPos ) // dann braucht nichts geteilt werden
return nSplitPortion;
pTextPortion = pTP;
break;
@@ -1942,7 +1942,7 @@ void TextEngine::CreateTextPortions( ULONG nPara, USHORT nStartPos )
USHORT nInvPos;
#ifdef DBG_UTIL
- BOOL bFound =
+ BOOL bFound =
#endif
aPositions.Seek_Entry( nPortionStart, &nInvPos );
DBG_ASSERT( bFound && ( nInvPos < (aPositions.Count()-1) ), "InvPos ?!" );
@@ -1979,9 +1979,9 @@ void TextEngine::RecalcTextPortion( ULONG nPara, USHORT nStartPos, short nNewCha
USHORT nNewPortionPos = 0;
if ( nStartPos )
nNewPortionPos = SplitTextPortion( nPara, nStartPos ) + 1;
-// else if ( ( pTEParaPortion->GetTextPortions().Count() == 1 ) &&
-// !pTEParaPortion->GetTextPortions()[0]->GetLen() )
-// pTEParaPortion->GetTextPortions().Reset(); // DummyPortion
+// else if ( ( pTEParaPortion->GetTextPortions().Count() == 1 ) &&
+// !pTEParaPortion->GetTextPortions()[0]->GetLen() )
+// pTEParaPortion->GetTextPortions().Reset(); // DummyPortion
// Eine leere Portion kann hier stehen, wenn der Absatz leer war,
// oder eine Zeile durch einen harten Zeilenumbruch entstanden ist.
@@ -2061,7 +2061,7 @@ void TextEngine::ImpPaint( OutputDevice* pOutDev, const Point& rStartPos, Rectan
if ( !IsFormatted() )
FormatDoc();
-
+
bool bTransparent = false;
Window* pOutWin = dynamic_cast<Window*>(pOutDev);
bTransparent = (pOutWin && pOutWin->IsPaintTransparent());
@@ -2251,7 +2251,7 @@ void TextEngine::ImpPaint( OutputDevice* pOutDev, const Point& rStartPos, Rectan
#endif
}
break;
- default: DBG_ERROR( "ImpPaint: Unknown Portion-Type !" );
+ default: DBG_ERROR( "ImpPaint: Unknown Portion-Type !" );
}
}
@@ -2262,7 +2262,7 @@ void TextEngine::ImpPaint( OutputDevice* pOutDev, const Point& rStartPos, Rectan
nY += mnCharHeight;
if ( pPaintArea && ( nY >= pPaintArea->Bottom() ) )
- break; // keine sichtbaren Aktionen mehr...
+ break; // keine sichtbaren Aktionen mehr...
}
}
else
@@ -2271,7 +2271,7 @@ void TextEngine::ImpPaint( OutputDevice* pOutDev, const Point& rStartPos, Rectan
}
if ( pPaintArea && ( nY > pPaintArea->Bottom() ) )
- break; // keine sichtbaren Aktionen mehr...
+ break; // keine sichtbaren Aktionen mehr...
}
}
@@ -2327,7 +2327,7 @@ BOOL TextEngine::CreateLines( ULONG nPara )
else if ( ( pTEParaPortion->IsSimpleInvalid() ) && ( nInvalidDiff < 0 ) )
{
// pruefen, ob loeschen ueber Portiongrenzen erfolgte...
- USHORT nStart = nInvalidStart; // DOPPELT !!!!!!!!!!!!!!!
+ USHORT nStart = nInvalidStart; // DOPPELT !!!!!!!!!!!!!!!
USHORT nEnd = nStart - nInvalidDiff; // neg.
bQuickFormat = TRUE;
USHORT nPos = 0;
@@ -2397,7 +2397,7 @@ BOOL TextEngine::CreateLines( ULONG nPara )
USHORT nTmpPos = nIndex;
USHORT nTmpPortion = pLine->GetStartPortion();
long nTmpWidth = mpDoc->GetLeftMargin();
-// long nXWidth = mnMaxTextWidth ? ( mnMaxTextWidth - mpDoc->GetLeftMargin() ) : 0x7FFFFFFF;
+// long nXWidth = mnMaxTextWidth ? ( mnMaxTextWidth - mpDoc->GetLeftMargin() ) : 0x7FFFFFFF;
// Margin nicht abziehen, ist schon in TmpWidth enthalten.
long nXWidth = mnMaxTextWidth ? mnMaxTextWidth : 0x7FFFFFFF;
if ( nXWidth < nTmpWidth )
@@ -2505,7 +2505,7 @@ BOOL TextEngine::CreateLines( ULONG nPara )
{
if ( ImpGetAlign() == TXTALIGN_CENTER )
pLine->SetStartX( (USHORT)(nSpace / 2) );
- else // TXTALIGN_RIGHT
+ else // TXTALIGN_RIGHT
pLine->SetStartX( (USHORT)nSpace );
}
}
@@ -2568,7 +2568,7 @@ BOOL TextEngine::CreateLines( ULONG nPara )
}
}
- nIndex = pLine->GetEnd(); // naechste Zeile Start = letzte Zeile Ende
+ nIndex = pLine->GetEnd(); // naechste Zeile Start = letzte Zeile Ende
// weil nEnd hinter das letzte Zeichen zeigt!
USHORT nEndPortion = pLine->GetEndPortion();
@@ -2595,7 +2595,7 @@ BOOL TextEngine::CreateLines( ULONG nPara )
pLine->SetStartPortion( nEndPortion+1 );
pLine->SetEndPortion( nEndPortion+1 );
}
- } // while ( Index < Len )
+ } // while ( Index < Len )
if ( nDelFromLine != 0xFFFF )
pTEParaPortion->GetLines().DeleteAndDestroy( nDelFromLine, pTEParaPortion->GetLines().Count() - nDelFromLine );
@@ -2804,7 +2804,7 @@ void TextEngine::RemoveAttribs( ULONG nPara, USHORT nWhich, BOOL bIdleFormatAndU
FormatAndUpdate( NULL );
}
}
-}
+}
void TextEngine::RemoveAttrib( ULONG nPara, const TextCharAttrib& rAttrib )
{
if ( nPara < mpDoc->GetNodes().Count() )
@@ -2817,7 +2817,7 @@ void TextEngine::RemoveAttrib( ULONG nPara, const TextCharAttrib& rAttrib )
for(USHORT nAttr = nAttrCount; nAttr; --nAttr)
{
if(rAttribs.GetAttrib( nAttr - 1 ) == &rAttrib)
- {
+ {
rAttribs.RemoveAttrib( nAttr -1 );
break;
}
@@ -2828,7 +2828,7 @@ void TextEngine::RemoveAttrib( ULONG nPara, const TextCharAttrib& rAttrib )
FormatAndUpdate( NULL );
}
}
-}
+}
void TextEngine::SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd, BOOL bIdleFormatAndUpdate )
{
@@ -2906,14 +2906,14 @@ void TextEngine::ImpParagraphInserted( ULONG nPara )
TextView* pView = mpViews->GetObject( --nView );
if ( pView != GetActiveView() )
{
-// BOOL bInvers = pView->maSelection.GetEnd() < pView->maSelection.GetStart();
-// TextPaM& rMin = !bInvers ? pView->maSelection.GetStart(): pView->maSelection.GetEnd();
-// TextPaM& rMax = bInvers ? pView->maSelection.GetStart() : pView->maSelection.GetEnd();
+// BOOL bInvers = pView->maSelection.GetEnd() < pView->maSelection.GetStart();
+// TextPaM& rMin = !bInvers ? pView->maSelection.GetStart(): pView->maSelection.GetEnd();
+// TextPaM& rMax = bInvers ? pView->maSelection.GetStart() : pView->maSelection.GetEnd();
//
-// if ( rMin.GetPara() >= nPara )
-// rMin.GetPara()++;
-// if ( rMax.GetPara() >= nPara )
-// rMax.GetPara()++;
+// if ( rMin.GetPara() >= nPara )
+// rMin.GetPara()++;
+// if ( rMax.GetPara() >= nPara )
+// rMax.GetPara()++;
for ( int n = 0; n <= 1; n++ )
{
TextPaM& rPaM = n ? pView->GetSelection().GetStart(): pView->GetSelection().GetEnd();
@@ -3067,11 +3067,11 @@ LocaleDataWrapper* TextEngine::ImpGetLocaleDataWrapper()
return mpLocaleDataWrapper;
}
-void TextEngine::SetRightToLeft( BOOL bR2L )
-{
+void TextEngine::SetRightToLeft( BOOL bR2L )
+{
if ( mbRightToLeft != bR2L )
{
- mbRightToLeft = bR2L;
+ mbRightToLeft = bR2L;
meAlign = bR2L ? TXTALIGN_RIGHT : TXTALIGN_LEFT;
FormatFullDoc();
UpdateViews();
@@ -3096,7 +3096,7 @@ void TextEngine::ImpInitWritingDirections( ULONG nPara )
UBiDi* pBidi = ubidi_openSized( aText.Len(), 0, &nError );
nError = U_ZERO_ERROR;
- ubidi_setPara( pBidi, reinterpret_cast<const UChar *>(aText.GetBuffer()), aText.Len(), nBidiLevel, NULL, &nError ); // UChar != sal_Unicode in MinGW
+ ubidi_setPara( pBidi, reinterpret_cast<const UChar *>(aText.GetBuffer()), aText.Len(), nBidiLevel, NULL, &nError ); // UChar != sal_Unicode in MinGW
nError = U_ZERO_ERROR;
long nCount = ubidi_countRuns( pBidi, &nError );
@@ -3133,7 +3133,7 @@ BYTE TextEngine::ImpGetRightToLeft( ULONG nPara, USHORT nPos, USHORT* pStart, US
ImpInitWritingDirections( nPara );
TEWritingDirectionInfos& rDirInfos = pParaPortion->GetWritingDirectionInfos();
- for ( USHORT n = 0; n < rDirInfos.Count(); n++ )
+ for ( USHORT n = 0; n < rDirInfos.Count(); n++ )
{
if ( ( rDirInfos[n].nStartPos <= nPos ) && ( rDirInfos[n].nEndPos >= nPos ) )
{
@@ -3232,11 +3232,11 @@ long TextEngine::ImpGetPortionXOffset( ULONG nPara, TextLine* pLine, USHORT nTex
void TextEngine::ImpInitLayoutMode( OutputDevice* pOutDev, BOOL bDrawingR2LPortion )
{
ULONG nLayoutMode = pOutDev->GetLayoutMode();
-
+
nLayoutMode &= ~(TEXT_LAYOUT_BIDI_RTL | TEXT_LAYOUT_COMPLEX_DISABLED | TEXT_LAYOUT_BIDI_STRONG );
if ( bDrawingR2LPortion )
nLayoutMode |= TEXT_LAYOUT_BIDI_RTL;
-
+
pOutDev->SetLayoutMode( nLayoutMode );
}
diff --git a/svtools/source/edit/textund2.hxx b/svtools/source/edit/textund2.hxx
index b49619894670..0d8b7f8840a2 100644
--- a/svtools/source/edit/textund2.hxx
+++ b/svtools/source/edit/textund2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,101 +34,101 @@
class TextUndoDelPara : public TextUndo
{
private:
- BOOL mbDelObject;
- ULONG mnPara;
- TextNode* mpNode; // Zeigt auf das gueltige, nicht zerstoerte Objekt!
+ BOOL mbDelObject;
+ ULONG mnPara;
+ TextNode* mpNode; // Zeigt auf das gueltige, nicht zerstoerte Objekt!
public:
TYPEINFO();
TextUndoDelPara( TextEngine* pTextEngine, TextNode* pNode, ULONG nPara );
~TextUndoDelPara();
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
};
class TextUndoConnectParas : public TextUndo
{
private:
- ULONG mnPara;
- USHORT mnSepPos;
+ ULONG mnPara;
+ USHORT mnSepPos;
public:
TYPEINFO();
TextUndoConnectParas( TextEngine* pTextEngine, ULONG nPara, USHORT nSepPos );
~TextUndoConnectParas();
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
};
class TextUndoSplitPara : public TextUndo
{
private:
- ULONG mnPara;
- USHORT mnSepPos;
+ ULONG mnPara;
+ USHORT mnSepPos;
public:
TYPEINFO();
TextUndoSplitPara( TextEngine* pTextEngine, ULONG nPara, USHORT nSepPos );
~TextUndoSplitPara();
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
};
class TextUndoInsertChars : public TextUndo
{
private:
- TextPaM maTextPaM;
- String maText;
+ TextPaM maTextPaM;
+ String maText;
public:
TYPEINFO();
TextUndoInsertChars( TextEngine* pTextEngine, const TextPaM& rTextPaM, const String& rStr );
-// const TextPaM& GetTextPaM() { return aTextPaM; }
-// String& GetStr() { return aText; }
+// const TextPaM& GetTextPaM() { return aTextPaM; }
+// String& GetStr() { return aText; }
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
- virtual BOOL Merge( SfxUndoAction *pNextAction );
+ virtual BOOL Merge( SfxUndoAction *pNextAction );
};
class TextUndoRemoveChars : public TextUndo
{
private:
- TextPaM maTextPaM;
- String maText;
+ TextPaM maTextPaM;
+ String maText;
public:
TYPEINFO();
TextUndoRemoveChars( TextEngine* pTextEngine, const TextPaM& rTextPaM, const String& rStr );
-// const TextPaM& GetTextPaM() { return aTextPaM; }
-// String& GetStr() { return aText; }
+// const TextPaM& GetTextPaM() { return aTextPaM; }
+// String& GetStr() { return aText; }
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
};
class TextUndoSetAttribs: public TextUndo
{
private:
- TextSelection maSelection;
-// SfxItemSet aNewAttribs;
-// TextInfoArray aPrevAttribs;
-// BYTE nSpecial;
-// BOOL bSetIsRemove;
-// USHORT nRemoveWhich;
+ TextSelection maSelection;
+// SfxItemSet aNewAttribs;
+// TextInfoArray aPrevAttribs;
+// BYTE nSpecial;
+// BOOL bSetIsRemove;
+// USHORT nRemoveWhich;
//
-// void ImpSetSelection( TextView* pView );
+// void ImpSetSelection( TextView* pView );
public:
@@ -136,14 +136,14 @@ public:
TextUndoSetAttribs( TextEngine* pTextEngine, const TextSelection& rESel );
~TextUndoSetAttribs();
-// TextInfoArray& GetTextInfos() { return aPrevAttribs; }
-// SfxItemSet& GetNewAttribs() { return aNewAttribs; }
-// void SetSpecial( BYTE n ) { nSpecial = n; }
-// void SetRemoveAttribs( BOOL b ) { bSetIsRemove = b; }
-// void SetRemoveWhich( USHORT n ) { nRemoveWhich = n; }
+// TextInfoArray& GetTextInfos() { return aPrevAttribs; }
+// SfxItemSet& GetNewAttribs() { return aNewAttribs; }
+// void SetSpecial( BYTE n ) { nSpecial = n; }
+// void SetRemoveAttribs( BOOL b ) { bSetIsRemove = b; }
+// void SetRemoveWhich( USHORT n ) { nRemoveWhich = n; }
- virtual void Undo();
- virtual void Redo();
+ virtual void Undo();
+ virtual void Redo();
};
#endif // _TEXTUND2_HXX
diff --git a/svtools/source/edit/textundo.cxx b/svtools/source/edit/textundo.cxx
index fc8ffe127bf7..4670ae06ee6a 100644
--- a/svtools/source/edit/textundo.cxx
+++ b/svtools/source/edit/textundo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,8 +92,8 @@ void TextUndoManager::UndoRedoStart()
{
DBG_ASSERT( GetView(), "Undo/Redo: Active View?" );
-// if ( GetView() )
-// GetView()->HideSelection();
+// if ( GetView() )
+// GetView()->HideSelection();
}
void TextUndoManager::UndoRedoEnd()
@@ -129,7 +129,7 @@ USHORT __EXPORT TextUndo::GetId() const
XubString __EXPORT TextUndo::GetComment() const
{
-// return mpTextEngine->GetUndoComment( this );
+// return mpTextEngine->GetUndoComment( this );
return String();
}
@@ -157,7 +157,7 @@ TextUndoDelPara::~TextUndoDelPara()
void __EXPORT TextUndoDelPara::Undo()
{
GetTextEngine()->InsertContent( mpNode, mnPara );
- mbDelObject = FALSE; // gehoert wieder der Engine
+ mbDelObject = FALSE; // gehoert wieder der Engine
if ( GetView() )
{
@@ -179,7 +179,7 @@ void __EXPORT TextUndoDelPara::Redo()
GetDoc()->GetNodes().Remove( mnPara );
GetTextEngine()->ImpParagraphRemoved( mnPara );
- mbDelObject = TRUE; // gehoert wieder dem Undo
+ mbDelObject = TRUE; // gehoert wieder dem Undo
ULONG nParas = GetDoc()->GetNodes().Count();
ULONG n = mnPara < nParas ? mnPara : (nParas-1);
@@ -192,7 +192,7 @@ void __EXPORT TextUndoDelPara::Redo()
// TextUndoConnectParas
// ------------------------------------------------------------------------
TextUndoConnectParas::TextUndoConnectParas( TextEngine* pTextEngine, ULONG nPara, USHORT nPos )
- : TextUndo( TEXTUNDO_CONNECTPARAS, pTextEngine )
+ : TextUndo( TEXTUNDO_CONNECTPARAS, pTextEngine )
{
mnPara = nPara;
mnSepPos = nPos;
@@ -308,10 +308,10 @@ TextUndoSetAttribs::TextUndoSetAttribs( TextEngine* pTextEngine, const TextSelec
: TextUndo( TEXTUNDO_ATTRIBS, pTextEngine ), maSelection( rSel )
{
maSelection.Justify();
-// aNewAttribs.Set( rNewItems );
-// mbSetIsRemove = FALSE;
-// mnRemoveWhich = 0;
-// mnSpecial = 0;
+// aNewAttribs.Set( rNewItems );
+// mbSetIsRemove = FALSE;
+// mnRemoveWhich = 0;
+// mnSpecial = 0;
}
TextUndoSetAttribs::~TextUndoSetAttribs()
@@ -323,23 +323,23 @@ void __EXPORT TextUndoSetAttribs::Undo()
{
for ( ULONG nPara = maSelection.GetStart().GetPara(); nPara <= maSelection.GetEnd().GetPara(); nPara++ )
{
-// ContentAttribsInfo* pInf = aPrevAttribs[ (USHORT)(nPara-aESel.nStartPara) ];
-// GetTextEngine()->RemoveCharAttribs( nPara );
-// TextNode* pNode = GetTextEngine()->GetTextDoc().GetObject( nPara );
-// for ( USHORT nAttr = 0; nAttr < pInf->GetPrevCharAttribs().Count(); nAttr++ )
-// {
-// GetTextEngine()->GetTextDoc().InsertAttrib( pNode, pX->GetStart(), pX->GetEnd(), *pX->GetItem() );
-// }
+// ContentAttribsInfo* pInf = aPrevAttribs[ (USHORT)(nPara-aESel.nStartPara) ];
+// GetTextEngine()->RemoveCharAttribs( nPara );
+// TextNode* pNode = GetTextEngine()->GetTextDoc().GetObject( nPara );
+// for ( USHORT nAttr = 0; nAttr < pInf->GetPrevCharAttribs().Count(); nAttr++ )
+// {
+// GetTextEngine()->GetTextDoc().InsertAttrib( pNode, pX->GetStart(), pX->GetEnd(), *pX->GetItem() );
+// }
}
SetSelection( maSelection );
}
void __EXPORT TextUndoSetAttribs::Redo()
{
-// if ( !bSetIsRemove )
-// GetTextEngine()->SetAttribs( aSel, aNewAttribs, nSpecial );
-// else
-// GetTextEngine()->RemoveCharAttribs( aSel, bRemoveParaAttribs, nRemoveWhich );
+// if ( !bSetIsRemove )
+// GetTextEngine()->SetAttribs( aSel, aNewAttribs, nSpecial );
+// else
+// GetTextEngine()->RemoveCharAttribs( aSel, bRemoveParaAttribs, nRemoveWhich );
SetSelection( maSelection );
}
diff --git a/svtools/source/edit/textundo.hxx b/svtools/source/edit/textundo.hxx
index 414f2f1f5db2..d3279fa244b1 100644
--- a/svtools/source/edit/textundo.hxx
+++ b/svtools/source/edit/textundo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,52 +34,52 @@ class TextEngine;
class TextUndoManager : public SfxUndoManager
{
- TextEngine* mpTextEngine;
+ TextEngine* mpTextEngine;
protected:
- void UndoRedoStart();
- void UndoRedoEnd();
+ void UndoRedoStart();
+ void UndoRedoEnd();
- TextView* GetView() const { return mpTextEngine->GetActiveView(); }
+ TextView* GetView() const { return mpTextEngine->GetActiveView(); }
public:
TextUndoManager( TextEngine* pTextEngine );
~TextUndoManager();
using SfxUndoManager::Undo;
- virtual BOOL Undo( USHORT nCount=1 );
+ virtual BOOL Undo( USHORT nCount=1 );
using SfxUndoManager::Redo;
- virtual BOOL Redo( USHORT nCount=1 );
+ virtual BOOL Redo( USHORT nCount=1 );
};
class TextUndo : public SfxUndoAction
{
private:
- USHORT mnId;
- TextEngine* mpTextEngine;
+ USHORT mnId;
+ TextEngine* mpTextEngine;
protected:
- TextView* GetView() const { return mpTextEngine->GetActiveView(); }
- void SetSelection( const TextSelection& rSel );
+ TextView* GetView() const { return mpTextEngine->GetActiveView(); }
+ void SetSelection( const TextSelection& rSel );
- TextDoc* GetDoc() const { return mpTextEngine->mpDoc; }
- TEParaPortions* GetTEParaPortions() const { return mpTextEngine->mpTEParaPortions; }
+ TextDoc* GetDoc() const { return mpTextEngine->mpDoc; }
+ TEParaPortions* GetTEParaPortions() const { return mpTextEngine->mpTEParaPortions; }
public:
TYPEINFO();
TextUndo( USHORT nId, TextEngine* pTextEngine );
- virtual ~TextUndo();
+ virtual ~TextUndo();
- TextEngine* GetTextEngine() const { return mpTextEngine; }
+ TextEngine* GetTextEngine() const { return mpTextEngine; }
- virtual void Undo() = 0;
- virtual void Redo() = 0;
+ virtual void Undo() = 0;
+ virtual void Redo() = 0;
- virtual XubString GetComment() const;
- virtual USHORT GetId() const;
+ virtual XubString GetComment() const;
+ virtual USHORT GetId() const;
};
#endif // _TEXTUNDO_HXX
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx
index 5103e8362ee7..e67fefdcefcd 100644
--- a/svtools/source/edit/textview.cxx
+++ b/svtools/source/edit/textview.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,25 +71,25 @@
using namespace ::com::sun::star;
-class TETextDataObject : public ::com::sun::star::datatransfer::XTransferable,
+class TETextDataObject : public ::com::sun::star::datatransfer::XTransferable,
public ::cppu::OWeakObject
{
private:
- String maText;
- SvMemoryStream maHTMLStream;
+ String maText;
+ SvMemoryStream maHTMLStream;
-public:
+public:
TETextDataObject( const String& rText );
~TETextDataObject();
- String& GetText() { return maText; }
- SvMemoryStream& GetHTMLStream() { return maHTMLStream; }
-
+ String& GetText() { return maText; }
+ SvMemoryStream& GetHTMLStream() { return maHTMLStream; }
+
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::datatransfer::XTransferable
::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor ) throw(::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
@@ -104,7 +104,7 @@ TETextDataObject::TETextDataObject( const String& rText ) : maText( rText )
TETextDataObject::~TETextDataObject()
{
}
-
+
// uno::XInterface
uno::Any TETextDataObject::queryInterface( const uno::Type & rType ) throw(uno::RuntimeException)
{
@@ -196,7 +196,7 @@ struct ImpTextView
// -------------------------------------------------------------------------
// (+) class TextView
// -------------------------------------------------------------------------
-TextView::TextView( TextEngine* pEng, Window* pWindow ) :
+TextView::TextView( TextEngine* pEng, Window* pWindow ) :
mpImpl(new ImpTextView)
{
pWindow->EnableRTL( FALSE );
@@ -215,7 +215,7 @@ TextView::TextView( TextEngine* pEng, Window* pWindow ) :
mpImpl->mbClickedInSelection = FALSE;
mpImpl->mbSupportProtectAttribute = FALSE;
mpImpl->mbCursorAtEndOfLine = false;
-// mbInSelection = FALSE;
+// mbInSelection = FALSE;
mpImpl->mnTravelXPos = TRAVEL_X_DONTKNOW;
@@ -302,7 +302,7 @@ TextSelection& TextView::GetSelection()
void TextView::DeleteSelected()
{
-// HideSelection();
+// HideSelection();
mpImpl->mpTextEngine->UndoActionStart( TEXTUNDO_DELETE );
TextPaM aPaM = mpImpl->mpTextEngine->ImpDeleteText( mpImpl->maSelection );
@@ -362,8 +362,8 @@ void TextView::ImpPaint( const Rectangle& rRect, BOOL bUseVirtDev )
BOOL bVDevValid = TRUE;
Size aOutSz( pVDev->GetOutputSizePixel() );
- if ( ( aOutSz.Width() < rRect.GetWidth() ) ||
- ( aOutSz.Height() < rRect.GetHeight() ) )
+ if ( ( aOutSz.Width() < rRect.GetWidth() ) ||
+ ( aOutSz.Height() < rRect.GetHeight() ) )
{
bVDevValid = pVDev->SetOutputSizePixel( rRect.GetSize() );
}
@@ -394,7 +394,7 @@ void TextView::ImpPaint( const Rectangle& rRect, BOOL bUseVirtDev )
ImpPaint( pVDev, aStartPos, &aTmpRec, NULL, pDrawSelection );
mpImpl->mpWindow->DrawOutDev( rRect.TopLeft(), rRect.GetSize(),
Point(0,0), rRect.GetSize(), *pVDev );
-// ShowSelection();
+// ShowSelection();
if ( mpImpl->mbHighlightSelection )
ImpHighlight( mpImpl->maSelection );
}
@@ -403,7 +403,7 @@ void TextView::ImpPaint( const Rectangle& rRect, BOOL bUseVirtDev )
Point aStartPos = ImpGetOutputStartPos( mpImpl->maStartDocPos );
ImpPaint( mpImpl->mpWindow, aStartPos, &rRect, NULL, pDrawSelection );
-// ShowSelection();
+// ShowSelection();
if ( mpImpl->mbHighlightSelection )
ImpHighlight( mpImpl->maSelection );
}
@@ -553,10 +553,10 @@ void TextView::EraseVirtualDevice()
BOOL TextView::KeyInput( const KeyEvent& rKeyEvent )
{
- BOOL bDone = TRUE;
- BOOL bModified = FALSE;
- BOOL bMoved = FALSE;
- BOOL bEndKey = FALSE; // spezielle CursorPosition
+ BOOL bDone = TRUE;
+ BOOL bModified = FALSE;
+ BOOL bMoved = FALSE;
+ BOOL bEndKey = FALSE; // spezielle CursorPosition
BOOL bAllowIdle = TRUE;
// Um zu pruefen ob durch irgendeine Aktion mModified, das lokale
@@ -604,7 +604,7 @@ BOOL TextView::KeyInput( const KeyEvent& rKeyEvent )
}
break;
- default: // wird dann evtl. unten bearbeitet.
+ default: // wird dann evtl. unten bearbeitet.
eFunc = KEYFUNC_DONTKNOW;
}
}
@@ -642,7 +642,7 @@ BOOL TextView::KeyInput( const KeyEvent& rKeyEvent )
{
aCurSel = ImpMoveCursor( rKeyEvent );
if ( aCurSel.HasRange() ) {
- uno::Reference<datatransfer::clipboard::XClipboard> aSelection(GetWindow()->GetPrimarySelection());
+ uno::Reference<datatransfer::clipboard::XClipboard> aSelection(GetWindow()->GetPrimarySelection());
Copy( aSelection );
}
bMoved = TRUE;
@@ -692,13 +692,13 @@ BOOL TextView::KeyInput( const KeyEvent& rKeyEvent )
if(mpImpl->mbSupportProtectAttribute)
{
//expand selection to include all protected content - if there is any
- const TextCharAttrib* pStartAttr = mpImpl->mpTextEngine->FindCharAttrib(
- TextPaM(mpImpl->maSelection.GetStart().GetPara(),
- mpImpl->maSelection.GetStart().GetIndex()),
+ const TextCharAttrib* pStartAttr = mpImpl->mpTextEngine->FindCharAttrib(
+ TextPaM(mpImpl->maSelection.GetStart().GetPara(),
+ mpImpl->maSelection.GetStart().GetIndex()),
TEXTATTR_PROTECTED );
- const TextCharAttrib* pEndAttr = mpImpl->mpTextEngine->FindCharAttrib(
- TextPaM(mpImpl->maSelection.GetEnd().GetPara(),
- mpImpl->maSelection.GetEnd().GetIndex()),
+ const TextCharAttrib* pEndAttr = mpImpl->mpTextEngine->FindCharAttrib(
+ TextPaM(mpImpl->maSelection.GetEnd().GetPara(),
+ mpImpl->maSelection.GetEnd().GetIndex()),
TEXTATTR_PROTECTED );
if(pStartAttr && pStartAttr->GetStart() < mpImpl->maSelection.GetStart().GetIndex())
{
@@ -708,7 +708,7 @@ BOOL TextView::KeyInput( const KeyEvent& rKeyEvent )
{
mpImpl->maSelection.GetEnd().GetIndex() = pEndAttr->GetEnd();
}
- }
+ }
aCurSel = ImpDelete( nDel, nMode );
mpImpl->mpTextEngine->UndoActionEnd( TEXTUNDO_DELETE );
bModified = TRUE;
@@ -818,17 +818,17 @@ void TextView::MouseButtonUp( const MouseEvent& rMouseEvent )
mpImpl->mbClickedInSelection = FALSE;
mpImpl->mnTravelXPos = TRAVEL_X_DONTKNOW;
mpImpl->mpSelEngine->SelMouseButtonUp( rMouseEvent );
- if ( rMouseEvent.IsMiddle() && !IsReadOnly() &&
+ if ( rMouseEvent.IsMiddle() && !IsReadOnly() &&
( GetWindow()->GetSettings().GetMouseSettings().GetMiddleButtonAction() == MOUSE_MIDDLE_PASTESELECTION ) )
{
- uno::Reference<datatransfer::clipboard::XClipboard> aSelection(GetWindow()->GetPrimarySelection());
+ uno::Reference<datatransfer::clipboard::XClipboard> aSelection(GetWindow()->GetPrimarySelection());
Paste( aSelection );
if ( mpImpl->mpTextEngine->IsModified() )
mpImpl->mpTextEngine->Broadcast( TextHint( TEXT_HINT_MODIFIED ) );
}
else if ( rMouseEvent.IsLeft() && GetSelection().HasRange() )
{
- uno::Reference<datatransfer::clipboard::XClipboard> aSelection(GetWindow()->GetPrimarySelection());
+ uno::Reference<datatransfer::clipboard::XClipboard> aSelection(GetWindow()->GetPrimarySelection());
Copy( aSelection );
}
}
@@ -856,7 +856,7 @@ void TextView::MouseButtonDown( const MouseEvent& rMouseEvent )
{
HideSelection();
ImpSetSelection( mpImpl->maSelection.GetEnd() );
- SetCursorAtPoint( rMouseEvent.GetPosPixel() ); // Wird von SelectionEngine bei MOD2 nicht gesetzt
+ SetCursorAtPoint( rMouseEvent.GetPosPixel() ); // Wird von SelectionEngine bei MOD2 nicht gesetzt
}
if ( rMouseEvent.GetClicks() == 2 )
@@ -874,13 +874,13 @@ void TextView::MouseButtonDown( const MouseEvent& rMouseEvent )
if(mpImpl->mbSupportProtectAttribute)
{
//expand selection to include all protected content - if there is any
- const TextCharAttrib* pStartAttr = mpImpl->mpTextEngine->FindCharAttrib(
- TextPaM(aNewSel.GetStart().GetPara(),
- (USHORT)aBoundary.startPos),
+ const TextCharAttrib* pStartAttr = mpImpl->mpTextEngine->FindCharAttrib(
+ TextPaM(aNewSel.GetStart().GetPara(),
+ (USHORT)aBoundary.startPos),
TEXTATTR_PROTECTED );
- const TextCharAttrib* pEndAttr = mpImpl->mpTextEngine->FindCharAttrib(
- TextPaM(aNewSel.GetEnd().GetPara(),
- (USHORT)aBoundary.endPos),
+ const TextCharAttrib* pEndAttr = mpImpl->mpTextEngine->FindCharAttrib(
+ TextPaM(aNewSel.GetEnd().GetPara(),
+ (USHORT)aBoundary.endPos),
TEXTATTR_PROTECTED );
if(pStartAttr && pStartAttr->GetStart() < aNewSel.GetStart().GetIndex())
{
@@ -889,8 +889,8 @@ void TextView::MouseButtonDown( const MouseEvent& rMouseEvent )
if(pEndAttr && pEndAttr->GetEnd() > aNewSel.GetEnd().GetIndex())
{
aNewSel.GetEnd().GetIndex() = pEndAttr->GetEnd();
- }
- }
+ }
+ }
ImpSetSelection( aNewSel );
ShowSelection();
ShowCursor( TRUE, TRUE );
@@ -941,13 +941,13 @@ void TextView::Command( const CommandEvent& rCEvt )
TEParaPortion* pPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( mpImpl->mpTextEngine->mpIMEInfos->aPos.GetPara() );
pPortion->MarkSelectionInvalid( mpImpl->mpTextEngine->mpIMEInfos->aPos.GetIndex(), 0 );
- BOOL bInsertMode = !mpImpl->mpTextEngine->mpIMEInfos->bWasCursorOverwrite;
+ BOOL bInsertMode = !mpImpl->mpTextEngine->mpIMEInfos->bWasCursorOverwrite;
delete mpImpl->mpTextEngine->mpIMEInfos;
mpImpl->mpTextEngine->mpIMEInfos = NULL;
mpImpl->mpTextEngine->FormatAndUpdate( this );
-
+
SetInsertMode( bInsertMode );
if ( mpImpl->mpTextEngine->IsModified() )
@@ -1017,7 +1017,7 @@ void TextView::Command( const CommandEvent& rCEvt )
TextSelection aNewSel = TextPaM( mpImpl->mpTextEngine->mpIMEInfos->aPos.GetPara(), mpImpl->mpTextEngine->mpIMEInfos->aPos.GetIndex()+pData->GetCursorPos() );
SetSelection( aNewSel );
SetInsertMode( !pData->IsCursorOverwrite() );
-
+
if ( pData->IsCursorVisible() )
ShowCursor();
else
@@ -1030,19 +1030,19 @@ void TextView::Command( const CommandEvent& rCEvt )
{
TextPaM aPaM( GetSelection().GetEnd() );
Rectangle aR1 = mpImpl->mpTextEngine->PaMtoEditCursor( aPaM );
-
+
USHORT nInputEnd = mpImpl->mpTextEngine->mpIMEInfos->aPos.GetIndex() + mpImpl->mpTextEngine->mpIMEInfos->nLen;
-
+
if ( !mpImpl->mpTextEngine->IsFormatted() )
mpImpl->mpTextEngine->FormatDoc();
-
+
TEParaPortion* pParaPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() );
USHORT nLine = pParaPortion->GetLineNumber( aPaM.GetIndex(), sal_True );
TextLine* pLine = pParaPortion->GetLines().GetObject( nLine );
if ( pLine && ( nInputEnd > pLine->GetEnd() ) )
nInputEnd = pLine->GetEnd();
Rectangle aR2 = mpImpl->mpTextEngine->PaMtoEditCursor( TextPaM( aPaM.GetPara(), nInputEnd ) );
-
+
long nWidth = aR2.Left()-aR1.Right();
aR1.Move( -GetStartDocPos().X(), -GetStartDocPos().Y() );
GetWindow()->SetCursorRect( &aR1, nWidth );
@@ -1161,7 +1161,7 @@ void TextView::Copy( uno::Reference< datatransfer::clipboard::XClipboard >& rxCl
void TextView::Copy()
{
- uno::Reference<datatransfer::clipboard::XClipboard> aClipboard(GetWindow()->GetClipboard());
+ uno::Reference<datatransfer::clipboard::XClipboard> aClipboard(GetWindow()->GetClipboard());
Copy( aClipboard );
}
@@ -1199,7 +1199,7 @@ void TextView::Paste( uno::Reference< datatransfer::clipboard::XClipboard >& rxC
bWasTruncated = ImplTruncateNewText( aText );
InsertNewText( aText, FALSE );
mpImpl->mpTextEngine->Broadcast( TextHint( TEXT_HINT_MODIFIED ) );
-
+
if( bWasTruncated )
Edit::ShowTruncationWarning( mpImpl->mpWindow );
}
@@ -1213,7 +1213,7 @@ void TextView::Paste( uno::Reference< datatransfer::clipboard::XClipboard >& rxC
void TextView::Paste()
{
- uno::Reference<datatransfer::clipboard::XClipboard> aClipboard(GetWindow()->GetClipboard());
+ uno::Reference<datatransfer::clipboard::XClipboard> aClipboard(GetWindow()->GetClipboard());
Paste( aClipboard );
}
@@ -1270,21 +1270,21 @@ TextSelection TextView::ImpMoveCursor( const KeyEvent& rKeyEvent )
bool bSelect = aTranslatedKeyEvent.GetKeyCode().IsShift();
switch ( nCode )
{
- case KEY_UP: aPaM = CursorUp( aPaM );
+ case KEY_UP: aPaM = CursorUp( aPaM );
break;
- case KEY_DOWN: aPaM = CursorDown( aPaM );
+ case KEY_DOWN: aPaM = CursorDown( aPaM );
break;
- case KEY_HOME: aPaM = bCtrl ? CursorStartOfDoc() : CursorStartOfLine( aPaM );
+ case KEY_HOME: aPaM = bCtrl ? CursorStartOfDoc() : CursorStartOfLine( aPaM );
break;
- case KEY_END: aPaM = bCtrl ? CursorEndOfDoc() : CursorEndOfLine( aPaM );
+ case KEY_END: aPaM = bCtrl ? CursorEndOfDoc() : CursorEndOfLine( aPaM );
break;
- case KEY_PAGEUP: aPaM = bCtrl ? CursorStartOfDoc() : PageUp( aPaM );
+ case KEY_PAGEUP: aPaM = bCtrl ? CursorStartOfDoc() : PageUp( aPaM );
break;
- case KEY_PAGEDOWN: aPaM = bCtrl ? CursorEndOfDoc() : PageDown( aPaM );
+ case KEY_PAGEDOWN: aPaM = bCtrl ? CursorEndOfDoc() : PageDown( aPaM );
break;
- case KEY_LEFT: aPaM = bCtrl ? CursorWordLeft( aPaM ) : CursorLeft( aPaM, aTranslatedKeyEvent.GetKeyCode().IsMod2() ? (USHORT)i18n::CharacterIteratorMode::SKIPCHARACTER : (USHORT)i18n::CharacterIteratorMode::SKIPCELL );
+ case KEY_LEFT: aPaM = bCtrl ? CursorWordLeft( aPaM ) : CursorLeft( aPaM, aTranslatedKeyEvent.GetKeyCode().IsMod2() ? (USHORT)i18n::CharacterIteratorMode::SKIPCHARACTER : (USHORT)i18n::CharacterIteratorMode::SKIPCELL );
break;
- case KEY_RIGHT: aPaM = bCtrl ? CursorWordRight( aPaM ) : CursorRight( aPaM, aTranslatedKeyEvent.GetKeyCode().IsMod2() ? (USHORT)i18n::CharacterIteratorMode::SKIPCHARACTER : (USHORT)i18n::CharacterIteratorMode::SKIPCELL );
+ case KEY_RIGHT: aPaM = bCtrl ? CursorWordRight( aPaM ) : CursorRight( aPaM, aTranslatedKeyEvent.GetKeyCode().IsMod2() ? (USHORT)i18n::CharacterIteratorMode::SKIPCHARACTER : (USHORT)i18n::CharacterIteratorMode::SKIPCELL );
break;
case com::sun::star::awt::Key::SELECT_WORD_FORWARD:
bSelect = true; // fallthrough intentional
@@ -1362,13 +1362,13 @@ void TextView::InsertText( const XubString& rStr, BOOL bSelect )
void TextView::InsertNewText( const rtl::OUString& rStr, BOOL bSelect )
{
-// HideSelection();
+// HideSelection();
mpImpl->mpTextEngine->UndoActionStart( TEXTUNDO_INSERT );
/* #i87633#
break inserted text into chunks that fit into the underlying String
based API (which has a maximum length of 65534 elements
-
+
note: this will of course still cause problems for lines longer than those
65534 elements, but those cases will hopefully be few.
In the long run someone should switch the TextEngine to OUString instead of String
@@ -1379,11 +1379,11 @@ void TextView::InsertNewText( const rtl::OUString& rStr, BOOL bSelect )
{
sal_Int32 nChunkLen = nLen > 65534 ? 65534 : nLen;
String aChunk( rStr.copy( nPos, nChunkLen ) );
-
+
TextSelection aNewSel( mpImpl->maSelection );
-
+
TextPaM aPaM = mpImpl->mpTextEngine->ImpInsertText( mpImpl->maSelection, aChunk );
-
+
if ( bSelect )
{
aNewSel.Justify();
@@ -1393,7 +1393,7 @@ void TextView::InsertNewText( const rtl::OUString& rStr, BOOL bSelect )
{
aNewSel = aPaM;
}
-
+
ImpSetSelection( aNewSel );
nLen -= nChunkLen;
nPos += nChunkLen;
@@ -1406,7 +1406,7 @@ void TextView::InsertNewText( const rtl::OUString& rStr, BOOL bSelect )
/*
void TextView::InsertText( const XubString& rStr, BOOL bSelect )
{
-// HideSelection();
+// HideSelection();
TextSelection aNewSel( mpImpl->maSelection );
@@ -1423,7 +1423,7 @@ void TextView::InsertText( const XubString& rStr, BOOL bSelect )
{
aNewSel = aPaM;
}
-
+
ImpSetSelection( aNewSel );
mpImpl->mpTextEngine->FormatAndUpdate( this );
@@ -1553,7 +1553,7 @@ TextPaM TextView::ImpDelete( BYTE nMode, BYTE nDelMode )
// #i63506# startPos is -1 when the paragraph starts with a tab
aEndPaM.GetIndex() = (aBoundary.startPos >= 0) ? (USHORT)aBoundary.startPos : 0;
}
- else // DELMODE_RESTOFCONTENT
+ else // DELMODE_RESTOFCONTENT
{
if ( aEndPaM.GetIndex() != 0 )
aEndPaM.GetIndex() = 0;
@@ -1578,7 +1578,7 @@ TextPaM TextView::ImpDelete( BYTE nMode, BYTE nDelMode )
i18n::Boundary aBoundary = xBI->nextWord( pNode->GetText(), mpImpl->maSelection.GetEnd().GetIndex(), mpImpl->mpTextEngine->GetLocale(), i18n::WordType::ANYWORD_IGNOREWHITESPACES );
aEndPaM.GetIndex() = (USHORT)aBoundary.startPos;
}
- else // DELMODE_RESTOFCONTENT
+ else // DELMODE_RESTOFCONTENT
{
TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aEndPaM.GetPara() );
if ( aEndPaM.GetIndex() < pNode->GetText().Len() )
@@ -1613,7 +1613,7 @@ TextPaM TextView::CursorUp( const TextPaM& rPaM )
TEParaPortion* pPPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( rPaM.GetPara() );
USHORT nLine = pPPortion->GetLineNumber( rPaM.GetIndex(), FALSE );
- if ( nLine ) // gleicher Absatz
+ if ( nLine ) // gleicher Absatz
{
USHORT nCharPos = mpImpl->mpTextEngine->GetCharPos( rPaM.GetPara(), nLine-1, nX );
aPaM.GetIndex() = nCharPos;
@@ -1624,7 +1624,7 @@ TextPaM TextView::CursorUp( const TextPaM& rPaM )
if ( aPaM.GetIndex() && ( aPaM.GetIndex() == pLine->GetEnd() ) )
aPaM.GetIndex()--;
}
- else if ( rPaM.GetPara() ) // vorheriger Absatz
+ else if ( rPaM.GetPara() ) // vorheriger Absatz
{
aPaM.GetPara()--;
pPPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() );
@@ -1696,7 +1696,7 @@ TextPaM TextView::CursorEndOfLine( const TextPaM& rPaM )
TextLine* pLine = pPPortion->GetLines().GetObject( nLine );
aPaM.GetIndex() = pLine->GetEnd();
- if ( pLine->GetEnd() > pLine->GetStart() ) // Leerzeile
+ if ( pLine->GetEnd() > pLine->GetStart() ) // Leerzeile
{
xub_Unicode cLastChar = pPPortion->GetNode()->GetText().GetChar((USHORT)(aPaM.GetIndex()-1) );
if ( ( cLastChar == ' ' ) && ( aPaM.GetIndex() != pPPortion->GetNode()->GetText().Len() ) )
@@ -1782,16 +1782,16 @@ void TextView::ImpShowCursor( BOOL bGotoCursor, BOOL bForceVisCursor, BOOL bSpec
TextPaM aPaM( mpImpl->maSelection.GetEnd() );
Rectangle aEditCursor = mpImpl->mpTextEngine->PaMtoEditCursor( aPaM, bSpecial );
-
+
// Remember that we placed the cursor behind the last character of a line
mpImpl->mbCursorAtEndOfLine = false;
if( bSpecial )
{
TEParaPortion* pParaPortion = mpImpl->mpTextEngine->mpTEParaPortions->GetObject( aPaM.GetPara() );
- mpImpl->mbCursorAtEndOfLine =
+ mpImpl->mbCursorAtEndOfLine =
pParaPortion->GetLineNumber( aPaM.GetIndex(), TRUE ) != pParaPortion->GetLineNumber( aPaM.GetIndex(), FALSE );
}
-
+
if ( !IsInsertMode() && !mpImpl->maSelection.HasRange() )
{
TextNode* pNode = mpImpl->mpTextEngine->mpDoc->GetNodes().GetObject( aPaM.GetPara() );
@@ -1809,7 +1809,7 @@ void TextView::ImpShowCursor( BOOL bGotoCursor, BOOL bForceVisCursor, BOOL bSpec
{
if ( mpImpl->mpTextEngine->IsRightToLeft() )
{
-
+
}
aEditCursor.Right() += pTextPortion->GetWidth();
}
@@ -1866,9 +1866,9 @@ void TextView::ImpShowCursor( BOOL bGotoCursor, BOOL bForceVisCursor, BOOL bSpec
// X kann durch das 'bischen mehr' falsch sein:
// ULONG nMaxTextWidth = mpImpl->mpTextEngine->GetMaxTextWidth();
-// if ( !nMaxTextWidth || ( nMaxTextWidth > 0x7FFFFFFF ) )
-// nMaxTextWidth = 0x7FFFFFFF;
-// long nMaxX = (long)nMaxTextWidth - aOutSz.Width();
+// if ( !nMaxTextWidth || ( nMaxTextWidth > 0x7FFFFFFF ) )
+// nMaxTextWidth = 0x7FFFFFFF;
+// long nMaxX = (long)nMaxTextWidth - aOutSz.Width();
long nMaxX = mpImpl->mpTextEngine->CalcTextWidth() - aOutSz.Width();
if ( nMaxX < 0 )
nMaxX = 0;
@@ -1937,7 +1937,7 @@ BOOL TextView::SetCursorAtPoint( const Point& rPosPixel )
BOOL TextView::IsSelectionAtPoint( const Point& rPosPixel )
{
// if ( !Rectangle( Point(), mpImpl->mpWindow->GetOutputSizePixel() ).IsInside( rPosPixel ) && !mbInSelection )
-// return FALSE;
+// return FALSE;
Point aDocPos = GetDocPos( rPosPixel );
TextPaM aPaM = mpImpl->mpTextEngine->GetPaM( aDocPos, FALSE );
@@ -2033,19 +2033,19 @@ BOOL TextView::Write( SvStream& rOutput )
bool TextView::ImplTruncateNewText( rtl::OUString& rNewText ) const
{
bool bTruncated = false;
-
+
if( rNewText.getLength() > 65534 ) // limit to String API
{
rNewText = rNewText.copy( 0, 65534 );
bTruncated = true;
}
-
+
ULONG nMaxLen = mpImpl->mpTextEngine->GetMaxTextLen();
// 0 means unlimited, there is just the String API limit handled above
if( nMaxLen != 0 )
{
ULONG nCurLen = mpImpl->mpTextEngine->GetTextLen();
-
+
sal_uInt32 nNewLen = rNewText.getLength();
if ( nCurLen + nNewLen > nMaxLen )
{
@@ -2187,14 +2187,14 @@ void TextView::drop( const ::com::sun::star::datatransfer::dnd::DropTargetDropEv
if ( ImplCheckTextLen( aText ) )
ImpSetSelection( mpImpl->mpTextEngine->ImpInsertText( mpImpl->mpDDInfo->maDropPos, aText ) );
if(mpImpl->mbSupportProtectAttribute)
- {
- mpImpl->mpTextEngine->SetAttrib( TextAttribProtect(),
- aTempStart.GetPara(),
- aTempStart.GetIndex(),
+ {
+ mpImpl->mpTextEngine->SetAttrib( TextAttribProtect(),
+ aTempStart.GetPara(),
+ aTempStart.GetIndex(),
mpImpl->maSelection.GetEnd().GetIndex(), FALSE );
}
- if ( aPrevSel.HasRange() &&
+ if ( aPrevSel.HasRange() &&
!mpImpl->mbSupportProtectAttribute && // don't remove currently selected element
(( rDTDE.DropAction & datatransfer::dnd::DNDConstants::ACTION_MOVE ) || !bStarterOfDD) )
{
@@ -2282,16 +2282,16 @@ void TextView::dragOver( const ::com::sun::star::datatransfer::dnd::DropTargetDr
// Scroll?
// No, I will not receive events for this...
}
-*/
+*/
sal_Bool bProtected = sal_False;
if(mpImpl->mbSupportProtectAttribute)
{
- const TextCharAttrib* pStartAttr = mpImpl->mpTextEngine->FindCharAttrib(
- mpImpl->mpDDInfo->maDropPos,
+ const TextCharAttrib* pStartAttr = mpImpl->mpTextEngine->FindCharAttrib(
+ mpImpl->mpDDInfo->maDropPos,
TEXTATTR_PROTECTED );
- bProtected = pStartAttr != 0 &&
- pStartAttr->GetStart() != mpImpl->mpDDInfo->maDropPos.GetIndex() &&
+ bProtected = pStartAttr != 0 &&
+ pStartAttr->GetStart() != mpImpl->mpDDInfo->maDropPos.GetIndex() &&
pStartAttr->GetEnd() != mpImpl->mpDDInfo->maDropPos.GetIndex();
}
// Don't drop in selection or in read only engine
@@ -2395,9 +2395,9 @@ void __EXPORT TextSelFunctionSet::BeginDrag()
void __EXPORT TextSelFunctionSet::CreateAnchor()
{
-// TextSelection aSel( mpView->GetSelection() );
-// aSel.GetStart() = aSel.GetEnd();
-// mpView->SetSelection( aSel );
+// TextSelection aSel( mpView->GetSelection() );
+// aSel.GetStart() = aSel.GetEnd();
+// mpView->SetSelection( aSel );
// Es darf kein ShowCursor folgen:
mpView->HideSelection();
@@ -2428,37 +2428,37 @@ void __EXPORT TextSelFunctionSet::DestroyAnchor()
{
// Nur bei Mehrfachselektion
}
-TextEngine* TextView::GetTextEngine() const
+TextEngine* TextView::GetTextEngine() const
{ return mpImpl->mpTextEngine; }
-Window* TextView::GetWindow() const
+Window* TextView::GetWindow() const
{ return mpImpl->mpWindow; }
-void TextView::EnableCursor( BOOL bEnable )
+void TextView::EnableCursor( BOOL bEnable )
{ mpImpl->mbCursorEnabled = bEnable; }
-BOOL TextView::IsCursorEnabled() const
+BOOL TextView::IsCursorEnabled() const
{ return mpImpl->mbCursorEnabled; }
-void TextView::SetStartDocPos( const Point& rPos )
+void TextView::SetStartDocPos( const Point& rPos )
{ mpImpl->maStartDocPos = rPos; }
-const Point& TextView::GetStartDocPos() const
+const Point& TextView::GetStartDocPos() const
{ return mpImpl->maStartDocPos; }
-void TextView::SetAutoIndentMode( BOOL bAutoIndent )
+void TextView::SetAutoIndentMode( BOOL bAutoIndent )
{ mpImpl->mbAutoIndent = bAutoIndent; }
-BOOL TextView::IsAutoIndentMode() const
+BOOL TextView::IsAutoIndentMode() const
{ return mpImpl->mbAutoIndent; }
-BOOL TextView::IsReadOnly() const
+BOOL TextView::IsReadOnly() const
{ return mpImpl->mbReadOnly; }
-void TextView::SetAutoScroll( BOOL bAutoScroll )
+void TextView::SetAutoScroll( BOOL bAutoScroll )
{ mpImpl->mbAutoScroll = bAutoScroll; }
-BOOL TextView::IsAutoScroll() const
+BOOL TextView::IsAutoScroll() const
{ return mpImpl->mbAutoScroll; }
-BOOL TextView::IsPaintSelection() const
+BOOL TextView::IsPaintSelection() const
{ return mpImpl->mbPaintSelection; }
-BOOL TextView::IsHighlightSelection() const
+BOOL TextView::IsHighlightSelection() const
{ return mpImpl->mbHighlightSelection; }
-BOOL TextView::HasSelection() const
+BOOL TextView::HasSelection() const
{ return mpImpl->maSelection.HasRange(); }
-BOOL TextView::IsInsertMode() const
+BOOL TextView::IsInsertMode() const
{ return mpImpl->mbInsertMode; }
-void TextView::SupportProtectAttribute(sal_Bool bSupport)
+void TextView::SupportProtectAttribute(sal_Bool bSupport)
{ mpImpl->mbSupportProtectAttribute = bSupport;}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/edit/textwindowpeer.cxx b/svtools/source/edit/textwindowpeer.cxx
index 00a439eb4cd7..b5afa3f97a14 100644
--- a/svtools/source/edit/textwindowpeer.cxx
+++ b/svtools/source/edit/textwindowpeer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/edit/txtattr.cxx b/svtools/source/edit/txtattr.cxx
index 34fc88e3f7a6..8aafedc54b7a 100644
--- a/svtools/source/edit/txtattr.cxx
+++ b/svtools/source/edit/txtattr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/edit/xtextedt.cxx b/svtools/source/edit/xtextedt.cxx
index e7c77e7e65ce..73a0a8c4a984 100644
--- a/svtools/source/edit/xtextedt.cxx
+++ b/svtools/source/edit/xtextedt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,7 +80,7 @@ TextSelection ExtTextEngine::MatchGroup( const TextPaM& rCursor ) const
{
nLevel--;
if ( !nLevel )
- break; // while nCur...
+ break; // while nCur...
}
nCur++;
}
@@ -91,7 +91,7 @@ TextSelection ExtTextEngine::MatchGroup( const TextPaM& rCursor ) const
nCur = 0;
}
}
- if ( nLevel == 0 ) // gefunden
+ if ( nLevel == 0 ) // gefunden
{
aSel.GetStart() = rCursor;
aSel.GetEnd() = TextPaM( nPara, nCur+1 );
@@ -116,7 +116,7 @@ TextSelection ExtTextEngine::MatchGroup( const TextPaM& rCursor ) const
{
nLevel--;
if ( !nLevel )
- break; // while nCur...
+ break; // while nCur...
}
else if ( aStr.GetChar( nCur ) == nEC )
nLevel++;
@@ -130,17 +130,17 @@ TextSelection ExtTextEngine::MatchGroup( const TextPaM& rCursor ) const
if ( nPara )
{
nPara--;
- nCur = GetTextLen( nPara )-1; // egal ob negativ, weil if Len()
+ nCur = GetTextLen( nPara )-1; // egal ob negativ, weil if Len()
}
else
break;
}
}
- if ( nLevel == 0 ) // gefunden
+ if ( nLevel == 0 ) // gefunden
{
aSel.GetStart() = rCursor;
- aSel.GetStart().GetIndex()++; // hinter das Zeichen
+ aSel.GetStart().GetIndex()++; // hinter das Zeichen
aSel.GetEnd() = TextPaM( nPara, nCur );
}
}
@@ -230,7 +230,7 @@ BOOL ExtTextEngine::Search( TextSelection& rSel, const util::SearchOptions& rSea
break;
}
- if ( !bForward && !nNode ) // Bei rueckwaertsuche, wenn nEndNode = 0:
+ if ( !bForward && !nNode ) // Bei rueckwaertsuche, wenn nEndNode = 0:
break;
}
@@ -300,7 +300,7 @@ USHORT ExtTextView::Replace( const util::SearchOptions& rSearchOptions, BOOL bAl
{
InsertText( rSearchOptions.replaceString );
nFound = 1;
- Search( rSearchOptions, bForward ); // gleich zum naechsten
+ Search( rSearchOptions, bForward ); // gleich zum naechsten
}
else
{
@@ -362,7 +362,7 @@ BOOL ExtTextView::ImpIndentBlock( BOOL bRight )
ULONG nEndPara = aSel.GetEnd().GetPara();
if ( aSel.HasRange() && !aSel.GetEnd().GetIndex() )
{
- nEndPara--; // den dann nicht einruecken...
+ nEndPara--; // den dann nicht einruecken...
}
for ( ULONG nPara = nStartPara; nPara <= nEndPara; nPara++ )
diff --git a/svtools/source/filter.vcl/filter/FilterConfigCache.cxx b/svtools/source/filter.vcl/filter/FilterConfigCache.cxx
index 324b267eb7c4..2aba8ff9f751 100644
--- a/svtools/source/filter.vcl/filter/FilterConfigCache.cxx
+++ b/svtools/source/filter.vcl/filter/FilterConfigCache.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,11 +43,11 @@
// #define TOKEN_INDEX_FOR_HASDIALOG 2
using namespace ::com::sun::star::lang ; // XMultiServiceFactory
-using namespace ::com::sun::star::container ; // XNameAccess
-using namespace ::com::sun::star::uno ; // Reference
-using namespace ::com::sun::star::beans ; // PropertyValue
+using namespace ::com::sun::star::container ; // XNameAccess
+using namespace ::com::sun::star::uno ; // Reference
+using namespace ::com::sun::star::beans ; // PropertyValue
using namespace ::utl ; // getProcessServiceFactory();
-using namespace ::rtl ;
+using namespace ::rtl ;
const char* FilterConfigCache::FilterConfigCacheEntry::InternalPixelFilterNameList[] =
{
@@ -313,9 +313,9 @@ void FilterConfigCache::ImplInitSmart()
const char** pPtr;
for ( pPtr = InternalFilterListForSvxLight; *pPtr; pPtr++ )
{
- FilterConfigCacheEntry aEntry;
+ FilterConfigCacheEntry aEntry;
- OUString sExtension( OUString::createFromAscii( *pPtr++ ) );
+ OUString sExtension( OUString::createFromAscii( *pPtr++ ) );
aEntry.lExtensionList.realloc( 1 );
aEntry.lExtensionList[ 0 ] = sExtension;
@@ -326,7 +326,7 @@ void FilterConfigCache::ImplInitSmart()
ByteString sFlags( *pPtr++ );
aEntry.nFlags = sFlags.ToInt32();
- OUString sUserData( OUString::createFromAscii( *pPtr ) );
+ OUString sUserData( OUString::createFromAscii( *pPtr ) );
aEntry.CreateFilterName( sUserData );
if ( aEntry.nFlags & 1 )
diff --git a/svtools/source/filter.vcl/filter/FilterConfigCache.hxx b/svtools/source/filter.vcl/filter/FilterConfigCache.hxx
index b1579bec092a..9e663e329717 100644
--- a/svtools/source/filter.vcl/filter/FilterConfigCache.hxx
+++ b/svtools/source/filter.vcl/filter/FilterConfigCache.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,27 +49,27 @@ class SVT_DLLPUBLIC FilterConfigCache
::rtl::OUString sInternalFilterName;
::rtl::OUString sType;
::com::sun::star::uno::Sequence< ::rtl::OUString > lExtensionList;
- ::rtl::OUString sUIName;
- ::rtl::OUString sDocumentService;
+ ::rtl::OUString sUIName;
+ ::rtl::OUString sDocumentService;
::rtl::OUString sFilterService;
::rtl::OUString sTemplateName;
- ::rtl::OUString sMediaType;
+ ::rtl::OUString sMediaType;
::rtl::OUString sFilterType;
- sal_Int32 nFlags;
- sal_Int32 nFileFormatVersion;
+ sal_Int32 nFlags;
+ sal_Int32 nFileFormatVersion;
// user data
- String sFilterName;
- sal_Bool bHasDialog : 1;
- sal_Bool bIsInternalFilter : 1;
- sal_Bool bIsPixelFormat : 1;
+ String sFilterName;
+ sal_Bool bHasDialog : 1;
+ sal_Bool bIsInternalFilter : 1;
+ sal_Bool bIsPixelFormat : 1;
- sal_Bool IsValid();
- sal_Bool CreateFilterName( const ::rtl::OUString& rUserDataEntry );
+ sal_Bool IsValid();
+ sal_Bool CreateFilterName( const ::rtl::OUString& rUserDataEntry );
String GetShortName( );
-
+
static const char* InternalPixelFilterNameList[];
static const char* InternalVectorFilterNameList[];
static const char* ExternalPixelFilterNameList[];
@@ -78,9 +78,9 @@ class SVT_DLLPUBLIC FilterConfigCache
typedef std::vector< FilterConfigCacheEntry > CacheVector;
- CacheVector aImport;
- CacheVector aExport;
- sal_Bool bUseConfig;
+ CacheVector aImport;
+ CacheVector aExport;
+ sal_Bool bUseConfig;
static sal_Bool bInitialized;
static sal_Int32 nIndType;
@@ -92,56 +92,56 @@ class SVT_DLLPUBLIC FilterConfigCache
static sal_Int32 nIndFileFormatVersion;
static sal_Int32 nIndTemplateName;
- static const char* InternalFilterListForSvxLight[];
-
- SVT_DLLPRIVATE void ImplInit();
- SVT_DLLPRIVATE void ImplInitSmart();
+ static const char* InternalFilterListForSvxLight[];
+ SVT_DLLPRIVATE void ImplInit();
+ SVT_DLLPRIVATE void ImplInitSmart();
+
public :
- sal_uInt16 GetImportFormatCount() const
+ sal_uInt16 GetImportFormatCount() const
{ return sal::static_int_cast< sal_uInt16 >(aImport.size()); };
- sal_uInt16 GetImportFormatNumber( const String& rFormatName );
- sal_uInt16 GetImportFormatNumberForMediaType( const String& rMediaType );
- sal_uInt16 GetImportFormatNumberForShortName( const String& rShortName );
- sal_uInt16 GetImportFormatNumberForTypeName( const String& rType );
- String GetImportFilterName( sal_uInt16 nFormat );
- String GetImportFormatName( sal_uInt16 nFormat );
- String GetImportFormatExtension( sal_uInt16 nFormat, sal_Int32 nEntry = 0);
- String GetImportFormatMediaType( sal_uInt16 nFormat );
- String GetImportFormatShortName( sal_uInt16 nFormat );
- String GetImportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry );
+ sal_uInt16 GetImportFormatNumber( const String& rFormatName );
+ sal_uInt16 GetImportFormatNumberForMediaType( const String& rMediaType );
+ sal_uInt16 GetImportFormatNumberForShortName( const String& rShortName );
+ sal_uInt16 GetImportFormatNumberForTypeName( const String& rType );
+ String GetImportFilterName( sal_uInt16 nFormat );
+ String GetImportFormatName( sal_uInt16 nFormat );
+ String GetImportFormatExtension( sal_uInt16 nFormat, sal_Int32 nEntry = 0);
+ String GetImportFormatMediaType( sal_uInt16 nFormat );
+ String GetImportFormatShortName( sal_uInt16 nFormat );
+ String GetImportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry );
String GetImportFilterType( sal_uInt16 nFormat );
String GetImportFilterTypeName( sal_uInt16 nFormat );
- sal_Bool IsImportInternalFilter( sal_uInt16 nFormat );
- sal_Bool IsImportPixelFormat( sal_uInt16 nFormat );
- sal_Bool IsImportDialog( sal_uInt16 nFormat );
+ sal_Bool IsImportInternalFilter( sal_uInt16 nFormat );
+ sal_Bool IsImportPixelFormat( sal_uInt16 nFormat );
+ sal_Bool IsImportDialog( sal_uInt16 nFormat );
- sal_uInt16 GetExportFormatCount() const
+ sal_uInt16 GetExportFormatCount() const
{ return sal::static_int_cast< sal_uInt16 >(aExport.size()); };
- sal_uInt16 GetExportFormatNumber( const String& rFormatName );
- sal_uInt16 GetExportFormatNumberForMediaType( const String& rMediaType );
- sal_uInt16 GetExportFormatNumberForShortName( const String& rShortName );
- sal_uInt16 GetExportFormatNumberForTypeName( const String& rType );
- String GetExportFilterName( sal_uInt16 nFormat );
- String GetExportFormatName( sal_uInt16 nFormat );
- String GetExportFormatExtension( sal_uInt16 nFormat, sal_Int32 nEntry = 0 );
- String GetExportFormatMediaType( sal_uInt16 nFormat );
- String GetExportFormatShortName( sal_uInt16 nFormat );
- String GetExportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry );
+ sal_uInt16 GetExportFormatNumber( const String& rFormatName );
+ sal_uInt16 GetExportFormatNumberForMediaType( const String& rMediaType );
+ sal_uInt16 GetExportFormatNumberForShortName( const String& rShortName );
+ sal_uInt16 GetExportFormatNumberForTypeName( const String& rType );
+ String GetExportFilterName( sal_uInt16 nFormat );
+ String GetExportFormatName( sal_uInt16 nFormat );
+ String GetExportFormatExtension( sal_uInt16 nFormat, sal_Int32 nEntry = 0 );
+ String GetExportFormatMediaType( sal_uInt16 nFormat );
+ String GetExportFormatShortName( sal_uInt16 nFormat );
+ String GetExportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry );
String GetExportFilterTypeName( sal_uInt16 nFormat );
String GetExportInternalFilterName( sal_uInt16 nFormat );
- sal_Bool IsExportInternalFilter( sal_uInt16 nFormat );
- sal_Bool IsExportPixelFormat( sal_uInt16 nFormat );
- sal_Bool IsExportDialog( sal_uInt16 nFormat );
+ sal_Bool IsExportInternalFilter( sal_uInt16 nFormat );
+ sal_Bool IsExportPixelFormat( sal_uInt16 nFormat );
+ sal_Bool IsExportDialog( sal_uInt16 nFormat );
FilterConfigCache( sal_Bool bUseConfig );
~FilterConfigCache();
};
-#endif // _FILTER_CONFIG_CACHE_HXX_
+#endif // _FILTER_CONFIG_CACHE_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/filter.vcl/filter/FilterConfigItem.cxx b/svtools/source/filter.vcl/filter/FilterConfigItem.cxx
index ee788458e609..d6b23770dc41 100644
--- a/svtools/source/filter.vcl/filter/FilterConfigItem.cxx
+++ b/svtools/source/filter.vcl/filter/FilterConfigItem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,22 +40,22 @@
#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
using namespace ::rtl;
-using namespace ::utl ; // getProcessServiceFactory
-using namespace ::com::sun::star::lang ; // XMultiServiceFactory
-using namespace ::com::sun::star::beans ; // PropertyValue
-using namespace ::com::sun::star::uno ; // Reference
-using namespace ::com::sun::star::util ; // XChangesBatch
-using namespace ::com::sun::star::awt ; // Size
-using namespace ::com::sun::star::container ; //
-using namespace ::com::sun::star::task ; // XStatusIndicator
+using namespace ::utl ; // getProcessServiceFactory
+using namespace ::com::sun::star::lang ; // XMultiServiceFactory
+using namespace ::com::sun::star::beans ; // PropertyValue
+using namespace ::com::sun::star::uno ; // Reference
+using namespace ::com::sun::star::util ; // XChangesBatch
+using namespace ::com::sun::star::awt ; // Size
+using namespace ::com::sun::star::container ; //
+using namespace ::com::sun::star::task ; // XStatusIndicator
static sal_Bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, const String& rTree )
{
- sal_Bool bAvailable = rTree.Len() != 0;
+ sal_Bool bAvailable = rTree.Len() != 0;
if ( bAvailable )
{
- xub_StrLen nTokenCount = rTree.GetTokenCount( (sal_Unicode)'/' );
- xub_StrLen i = 0;
+ xub_StrLen nTokenCount = rTree.GetTokenCount( (sal_Unicode)'/' );
+ xub_StrLen i = 0;
if ( rTree.GetChar( 0 ) == (sal_Unicode)'/' )
i++;
@@ -65,7 +65,7 @@ static sal_Bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv
Any aAny;
aAny <<= (OUString)rTree.GetToken( i++, (sal_Unicode)'/' );
- // creation arguments: nodepath
+ // creation arguments: nodepath
PropertyValue aPathArgument;
aPathArgument.Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) );
aPathArgument.Value = aAny;
@@ -83,7 +83,7 @@ static sal_Bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv
catch ( ::com::sun::star::uno::Exception& )
{
bAvailable = sal_False;
- }
+ }
if ( xReadAccess.is() )
{
for ( ; bAvailable && ( i < nTokenCount ); i++ )
@@ -109,7 +109,7 @@ static sal_Bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv
{
bAvailable = sal_False;
}
- }
+ }
}
}
}
@@ -123,9 +123,9 @@ void FilterConfigItem::ImpInitTree( const String& rSubTree )
OUString sTree( ConfigManager::GetConfigBaseURL() );
sTree += rSubTree;
- Reference< XMultiServiceFactory > xSMGR = getProcessServiceFactory(); // get global uno service manager
+ Reference< XMultiServiceFactory > xSMGR = getProcessServiceFactory(); // get global uno service manager
- Reference< XMultiServiceFactory > xCfgProv(
+ Reference< XMultiServiceFactory > xCfgProv(
xSMGR->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.configuration.ConfigurationProvider" ) ) ),
UNO_QUERY );
@@ -134,19 +134,19 @@ void FilterConfigItem::ImpInitTree( const String& rSubTree )
if ( ImpIsTreeAvailable( xCfgProv, String( sTree ) ) )
{
Any aAny;
- // creation arguments: nodepath
+ // creation arguments: nodepath
PropertyValue aPathArgument;
aAny <<= sTree;
aPathArgument.Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) );
aPathArgument.Value = aAny;
- // creation arguments: commit mode
+ // creation arguments: commit mode
PropertyValue aModeArgument;
sal_Bool bAsyncron = sal_True;
aAny <<= bAsyncron;
aModeArgument.Name = OUString( RTL_CONSTASCII_USTRINGPARAM( "lazywrite" ) );
aModeArgument.Value = aAny;
-
+
Sequence< Any > aArguments( 2 );
aArguments[ 0 ] <<= aPathArgument;
aArguments[ 1 ] <<= aModeArgument;
@@ -178,7 +178,7 @@ FilterConfigItem::FilterConfigItem( ::com::sun::star::uno::Sequence< ::com::sun:
aFilterData = *pFilterData;
}
-FilterConfigItem::FilterConfigItem( const OUString& rSubTree,
+FilterConfigItem::FilterConfigItem( const OUString& rSubTree,
::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >* pFilterData )
{
ImpInitTree( rSubTree );
diff --git a/svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx b/svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx
index 6a5d9306241d..09cc71e50df4 100644
--- a/svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx
+++ b/svtools/source/filter.vcl/filter/SvFilterOptionsDialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,9 +51,9 @@
#include "vcl/svapp.hxx"
#if defined WIN || (defined OS2 && !defined ICC)
-#define EXPDLG_FUNCTION_NAME "_DoExportDialog"
+#define EXPDLG_FUNCTION_NAME "_DoExportDialog"
#else
-#define EXPDLG_FUNCTION_NAME "DoExportDialog"
+#define EXPDLG_FUNCTION_NAME "DoExportDialog"
#endif
using namespace ::rtl;
@@ -95,8 +95,8 @@ uno::Sequence< OUString > SAL_CALL SvFilterOptionsDialog_getSupportedServiceName
// -----------------------------------------------------------------------------
SvFilterOptionsDialog::SvFilterOptionsDialog( const uno::Reference< lang::XMultiServiceFactory > & xMgr ) :
- rxMgr ( xMgr ),
- eFieldUnit ( FUNIT_CM )
+ rxMgr ( xMgr ),
+ eFieldUnit ( FUNIT_CM )
{
}
@@ -151,7 +151,7 @@ uno::Sequence< beans::PropertyValue > SvFilterOptionsDialog::getPropertyValues()
sal_Int32 i, nCount;
for ( i = 0, nCount = aMediaDescriptor.getLength(); i < nCount; i++ )
{
- if ( aMediaDescriptor[ i ].Name.equalsAscii( "FilterData" ) )
+ if ( aMediaDescriptor[ i ].Name.equalsAscii( "FilterData" ) )
break;
}
if ( i == nCount )
@@ -164,7 +164,7 @@ uno::Sequence< beans::PropertyValue > SvFilterOptionsDialog::getPropertyValues()
}
void SvFilterOptionsDialog::setPropertyValues( const uno::Sequence< beans::PropertyValue > & aProps )
- throw ( beans::UnknownPropertyException, beans::PropertyVetoException,
+ throw ( beans::UnknownPropertyException, beans::PropertyVetoException,
lang::IllegalArgumentException, lang::WrappedTargetException,
uno::RuntimeException )
{
@@ -173,7 +173,7 @@ void SvFilterOptionsDialog::setPropertyValues( const uno::Sequence< beans::Prope
sal_Int32 i, nCount;
for ( i = 0, nCount = aMediaDescriptor.getLength(); i < nCount; i++ )
{
- if ( aMediaDescriptor[ i ].Name.equalsAscii( "FilterData" ) )
+ if ( aMediaDescriptor[ i ].Name.equalsAscii( "FilterData" ) )
{
aMediaDescriptor[ i ].Value >>= aFilterDataSequence;
break;
@@ -207,14 +207,14 @@ sal_Int16 SvFilterOptionsDialog::execute()
aInternalFilterName.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "impress_" ) ), String(), 0 );
break;
}
- }
+ }
if ( aInternalFilterName.Len() )
{
GraphicFilter aGraphicFilter( sal_True );
sal_uInt16 nFormat, nFilterCount = aGraphicFilter.pConfig->GetExportFormatCount();
for ( nFormat = 0; nFormat < nFilterCount; nFormat++ )
- {
+ {
if ( aGraphicFilter.pConfig->GetExportInternalFilterName( nFormat ) == aInternalFilterName )
break;
}
@@ -223,7 +223,7 @@ sal_Int16 SvFilterOptionsDialog::execute()
FltCallDialogParameter aFltCallDlgPara( Application::GetDefDialogParent(), NULL, eFieldUnit );
aFltCallDlgPara.aFilterData = aFilterDataSequence;
- String aFilterName( aGraphicFilter.pConfig->GetExportFilterName( nFormat ) );
+ String aFilterName( aGraphicFilter.pConfig->GetExportFilterName( nFormat ) );
if ( aGraphicFilter.pConfig->IsExportInternalFilter( nFormat ) )
{
// Export-Dialog fuer Bitmap's, SVM's und WMF's
@@ -234,8 +234,8 @@ sal_Int16 SvFilterOptionsDialog::execute()
( aFilterName.EqualsIgnoreCaseAscii( EXP_JPEG ) )||
( aFilterName.EqualsIgnoreCaseAscii( EXP_PNG ) ) )
{
- ByteString aResMgrName( "svt", 3 );
- ResMgr* pResMgr;
+ ByteString aResMgrName( "svt", 3 );
+ ResMgr* pResMgr;
pResMgr = ResMgr::CreateResMgr( aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() );
aFltCallDlgPara.pResMgr = pResMgr;
@@ -258,15 +258,15 @@ sal_Int16 SvFilterOptionsDialog::execute()
nRet = ui::dialogs::ExecutableDialogResults::OK;
}
else
- {
+ {
aFltCallDlgPara.aFilterExt = aGraphicFilter.pConfig->GetExportFormatShortName( nFormat );
if ( DlgExportVec( aFltCallDlgPara ).Execute() == RET_OK )
nRet = ui::dialogs::ExecutableDialogResults::OK;
}
delete pResMgr;
}
- }
- else // ladbare Filter
+ }
+ else // ladbare Filter
{
xub_StrLen i, nTokenCount = aGraphicFilter.aFilterPath.GetTokenCount( ';' );
for ( i = 0; i < nTokenCount; i++ )
@@ -282,7 +282,7 @@ sal_Int16 SvFilterOptionsDialog::execute()
aSystemPath += OUString( aFilterName );
osl::Module aLibrary( aSystemPath );
- PFilterDlgCall pFunc = (PFilterDlgCall) aLibrary.getFunctionSymbol( UniString::CreateFromAscii( EXPDLG_FUNCTION_NAME ) );
+ PFilterDlgCall pFunc = (PFilterDlgCall) aLibrary.getFunctionSymbol( UniString::CreateFromAscii( EXPDLG_FUNCTION_NAME ) );
// Dialog in DLL ausfuehren
if( pFunc )
{
diff --git a/svtools/source/filter.vcl/filter/SvFilterOptionsDialog.hxx b/svtools/source/filter.vcl/filter/SvFilterOptionsDialog.hxx
index 3e9fce6cf4ca..e6e27af1aadd 100644
--- a/svtools/source/filter.vcl/filter/SvFilterOptionsDialog.hxx
+++ b/svtools/source/filter.vcl/filter/SvFilterOptionsDialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ class SvFilterOptionsDialog : public cppu::WeakImplHelper5
com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >
aFilterDataSequence;
rtl::OUString aDialogTitle;
- FieldUnit eFieldUnit;
+ FieldUnit eFieldUnit;
public:
@@ -70,18 +70,18 @@ public:
throw ( com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException );
// XServiceInfo
- virtual rtl::OUString SAL_CALL getImplementationName()
+ virtual rtl::OUString SAL_CALL getImplementationName()
throw ( com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName )
+ virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName )
throw ( com::sun::star::uno::RuntimeException );
- virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
+ virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames()
throw ( com::sun::star::uno::RuntimeException );
// XPropertyAccess
virtual com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues()
throw ( com::sun::star::uno::RuntimeException );
virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > & aProps )
- throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException,
+ throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException,
::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException );
@@ -92,7 +92,7 @@ public:
throw ( ::com::sun::star::uno::RuntimeException );
// XExporter
- virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc )
+ virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc )
throw ( ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException );
};
diff --git a/svtools/source/filter.vcl/filter/dlgejpg.cxx b/svtools/source/filter.vcl/filter/dlgejpg.cxx
index 4cedaf70e509..1a0ae297402d 100644
--- a/svtools/source/filter.vcl/filter/dlgejpg.cxx
+++ b/svtools/source/filter.vcl/filter/dlgejpg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,8 +33,8 @@
#include "strings.hrc"
#include <svtools/FilterConfigItem.hxx>
-#define KEY_QUALITY "Quality"
-#define KEY_GRAYSCALES "ColorMode"
+#define KEY_QUALITY "Quality"
+#define KEY_GRAYSCALES "ColorMode"
/*************************************************************************
|*
@@ -44,7 +44,7 @@
DlgExportEJPG::DlgExportEJPG( FltCallDialogParameter& rPara ) :
ModalDialog ( rPara.pWindow, ResId( DLG_EXPORT_JPG, *rPara.pResMgr ) ),
- rFltCallPara ( rPara ),
+ rFltCallPara ( rPara ),
aFiDescr ( this, ResId( FI_DESCR, *rPara.pResMgr ) ),
aNumFldQuality ( this, ResId( NUM_FLD_QUALITY, *rPara.pResMgr ) ),
aGrpQuality ( this, ResId( GRP_QUALITY, *rPara.pResMgr ) ),
@@ -56,7 +56,7 @@ DlgExportEJPG::DlgExportEJPG( FltCallDialogParameter& rPara ) :
aBtnHelp ( this, ResId( BTN_HELP, *rPara.pResMgr ) )
{
FreeResource();
- String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/JPG" ) );
+ String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/JPG" ) );
pConfigItem = new FilterConfigItem( aFilterConfigPath, &rPara.aFilterData );
// reading filter options
diff --git a/svtools/source/filter.vcl/filter/dlgejpg.hrc b/svtools/source/filter.vcl/filter/dlgejpg.hrc
index 90a3c1d162be..c5fc85483532 100644
--- a/svtools/source/filter.vcl/filter/dlgejpg.hrc
+++ b/svtools/source/filter.vcl/filter/dlgejpg.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/dlgejpg.hxx b/svtools/source/filter.vcl/filter/dlgejpg.hxx
index efc5daa7105c..12a7922d7600 100644
--- a/svtools/source/filter.vcl/filter/dlgejpg.hxx
+++ b/svtools/source/filter.vcl/filter/dlgejpg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,16 +51,16 @@ private:
FltCallDialogParameter& rFltCallPara;
- FixedInfo aFiDescr;
- NumericField aNumFldQuality;
+ FixedInfo aFiDescr;
+ NumericField aNumFldQuality;
FixedLine aGrpQuality;
- RadioButton aRbGray;
- RadioButton aRbRGB;
+ RadioButton aRbGray;
+ RadioButton aRbRGB;
FixedLine aGrpColors;
- OKButton aBtnOK;
- CancelButton aBtnCancel;
- HelpButton aBtnHelp;
- FilterConfigItem* pConfigItem;
+ OKButton aBtnOK;
+ CancelButton aBtnCancel;
+ HelpButton aBtnHelp;
+ FilterConfigItem* pConfigItem;
DECL_LINK( OK, void * );
diff --git a/svtools/source/filter.vcl/filter/dlgejpg.src b/svtools/source/filter.vcl/filter/dlgejpg.src
index fd224f22c409..c0c58d7a1b82 100644
--- a/svtools/source/filter.vcl/filter/dlgejpg.src
+++ b/svtools/source/filter.vcl/filter/dlgejpg.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/dlgepng.cxx b/svtools/source/filter.vcl/filter/dlgepng.cxx
index 1b400cba87c6..95e25de06be5 100644
--- a/svtools/source/filter.vcl/filter/dlgepng.cxx
+++ b/svtools/source/filter.vcl/filter/dlgepng.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,8 +44,8 @@ using namespace ::com::sun::star::uno;
DlgExportEPNG::DlgExportEPNG( FltCallDialogParameter& rPara ) :
ModalDialog ( rPara.pWindow, ResId( DLG_EXPORT_EPNG, *rPara.pResMgr ) ),
- FilterConfigItem ( OUString( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/PNG" ) ), &rPara.aFilterData ),
- rFltCallPara ( rPara ),
+ FilterConfigItem ( OUString( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/PNG" ) ), &rPara.aFilterData ),
+ rFltCallPara ( rPara ),
aGrpCompression ( this, ResId( GRP_COMPRESSION, *rPara.pResMgr ) ),
aFiCompression ( this, ResId( FI_COMPRESSION, *rPara.pResMgr ) ),
aNumCompression ( this, ResId( NUM_COMPRESSION, *rPara.pResMgr ) ),
@@ -53,18 +53,18 @@ DlgExportEPNG::DlgExportEPNG( FltCallDialogParameter& rPara ) :
aBtnOK ( this, ResId( BTN_OK, *rPara.pResMgr ) ),
aBtnCancel ( this, ResId( BTN_CANCEL, *rPara.pResMgr ) ),
aBtnHelp ( this, ResId( BTN_HELP, *rPara.pResMgr ) ),
- pMgr ( rPara.pResMgr )
+ pMgr ( rPara.pResMgr )
{
FreeResource();
// Config-Parameter lesen
- sal_Int32 nCompression = ReadInt32( OUString( RTL_CONSTASCII_USTRINGPARAM( "Compression" ) ), 6 );
+ sal_Int32 nCompression = ReadInt32( OUString( RTL_CONSTASCII_USTRINGPARAM( "Compression" ) ), 6 );
if ( ( nCompression < 0 ) || ( nCompression > 9 ) )
nCompression = 6;
aNumCompression.SetValue( nCompression );
- sal_Int32 nInterlaced = ReadInt32( OUString( RTL_CONSTASCII_USTRINGPARAM( "Interlaced" ) ), 0 );
- sal_Bool bInterlaced = nInterlaced != 0;
+ sal_Int32 nInterlaced = ReadInt32( OUString( RTL_CONSTASCII_USTRINGPARAM( "Interlaced" ) ), 0 );
+ sal_Bool bInterlaced = nInterlaced != 0;
aCbxInterlaced.Check( bInterlaced );
aBtnOK.SetClickHdl( LINK( this, DlgExportEPNG, OK ) );
diff --git a/svtools/source/filter.vcl/filter/dlgepng.hrc b/svtools/source/filter.vcl/filter/dlgepng.hrc
index b3ffaab3ab1e..d63234de40fb 100644
--- a/svtools/source/filter.vcl/filter/dlgepng.hrc
+++ b/svtools/source/filter.vcl/filter/dlgepng.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/dlgepng.hxx b/svtools/source/filter.vcl/filter/dlgepng.hxx
index b43feafc0d49..e4f9123b1190 100644
--- a/svtools/source/filter.vcl/filter/dlgepng.hxx
+++ b/svtools/source/filter.vcl/filter/dlgepng.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,14 +53,14 @@ class DlgExportEPNG : public ModalDialog, FilterConfigItem
FltCallDialogParameter& rFltCallPara;
- FixedLine aGrpCompression;
- FixedInfo aFiCompression;
- NumericField aNumCompression;
- CheckBox aCbxInterlaced;
- OKButton aBtnOK;
- CancelButton aBtnCancel;
- HelpButton aBtnHelp;
- ResMgr* pMgr;
+ FixedLine aGrpCompression;
+ FixedInfo aFiCompression;
+ NumericField aNumCompression;
+ CheckBox aCbxInterlaced;
+ OKButton aBtnOK;
+ CancelButton aBtnCancel;
+ HelpButton aBtnHelp;
+ ResMgr* pMgr;
DECL_LINK( OK, void * );
diff --git a/svtools/source/filter.vcl/filter/dlgepng.src b/svtools/source/filter.vcl/filter/dlgepng.src
index aa778842dc48..9924441fbfc3 100644
--- a/svtools/source/filter.vcl/filter/dlgepng.src
+++ b/svtools/source/filter.vcl/filter/dlgepng.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/dlgexpor.cxx b/svtools/source/filter.vcl/filter/dlgexpor.cxx
index 951dd2c1a551..0157549c8d89 100644
--- a/svtools/source/filter.vcl/filter/dlgexpor.cxx
+++ b/svtools/source/filter.vcl/filter/dlgexpor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_svtools.hxx"
#ifndef GCC
-# pragma hdrstop
+# pragma hdrstop
#endif
#include <tools/ref.hxx>
@@ -49,7 +49,7 @@
DlgExportPix::DlgExportPix( FltCallDialogParameter& rPara ) :
ModalDialog ( rPara.pWindow, ResId( DLG_EXPORT_PIX, *rPara.pResMgr ) ),
- rFltCallPara ( rPara ),
+ rFltCallPara ( rPara ),
aBtnOK ( this, ResId( BTN_OK_PIX, *rPara.pResMgr ) ),
aBtnCancel ( this, ResId( BTN_CANCEL_PIX, *rPara.pResMgr ) ),
aBtnHelp ( this, ResId( BTN_HELP_PIX, *rPara.pResMgr ) ),
@@ -65,15 +65,15 @@ DlgExportPix::DlgExportPix( FltCallDialogParameter& rPara ) :
aMtfSizeY ( this, ResId( MTF_SIZEY_PIX, *rPara.pResMgr ) ),
aGrpMode ( this, ResId( GRP_MODE_PIX, *rPara.pResMgr ) ),
aCbbRes ( this, ResId( CBB_RES_PIX, *rPara.pResMgr ) ),
- pMgr ( rPara.pResMgr ),
- aExt ( rPara.aFilterExt )
+ pMgr ( rPara.pResMgr ),
+ aExt ( rPara.aFilterExt )
{
aExt.ToUpperAscii();
- String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/" ) );
+ String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/" ) );
aFilterConfigPath.Append( aExt );
pConfigItem = new FilterConfigItem( aFilterConfigPath, &rPara.aFilterData );
- String aTitle( aExt );
+ String aTitle( aExt );
FreeResource();
aBtnOK.SetClickHdl( LINK( this, DlgExportPix, OK ) );
@@ -112,13 +112,13 @@ DlgExportPix::DlgExportPix( FltCallDialogParameter& rPara ) :
switch ( rPara.eFieldUnit )
{
-// case FUNIT_NONE :
-// case FUNIT_KM :
-// case FUNIT_PERCENT :
-// case FUNIT_CUSTOM :
-// case FUNIT_MILE :
-// case FUNIT_FOOT :
-// case FUNIT_M :
+// case FUNIT_NONE :
+// case FUNIT_KM :
+// case FUNIT_PERCENT :
+// case FUNIT_CUSTOM :
+// case FUNIT_MILE :
+// case FUNIT_FOOT :
+// case FUNIT_M :
case FUNIT_MM :
case FUNIT_CM :
case FUNIT_TWIP :
@@ -133,7 +133,7 @@ DlgExportPix::DlgExportPix( FltCallDialogParameter& rPara ) :
break;
default:
- break; // -Wall multiple values not handled.
+ break; // -Wall multiple values not handled.
}
switch ( nMode )
@@ -176,7 +176,7 @@ IMPL_LINK( DlgExportPix, OK, void *, EMPTYARG )
{
// Config-Parameter schreiben
- sal_Int32 nRes = Max( Min( aCbbRes.GetText().ToInt32(), sal_Int32( 600 ) ), sal_Int32( 75 ) );
+ sal_Int32 nRes = Max( Min( aCbbRes.GetText().ToInt32(), sal_Int32( 600 ) ), sal_Int32( 75 ) );
::com::sun::star::awt::Size aSize(
static_cast<long>(MetricField::ConvertDoubleValue( static_cast<double>(aMtfSizeX.GetValue()), 2, aMtfSizeX.GetUnit(), MAP_100TH_MM )),
static_cast<long>(MetricField::ConvertDoubleValue( static_cast<double>(aMtfSizeY.GetValue()), 2, aMtfSizeY.GetUnit(), MAP_100TH_MM )) );
@@ -287,7 +287,7 @@ IMPL_LINK( DlgExportPix, SelectLbColors, void*, EMPTYARG )
DlgExportVec::DlgExportVec( FltCallDialogParameter& rPara ) :
ModalDialog ( rPara.pWindow, ResId( DLG_EXPORT_VEC, *rPara.pResMgr ) ),
- rFltCallPara ( rPara ),
+ rFltCallPara ( rPara ),
aBtnOK ( this, ResId( BTN_OK_VEC, *rPara.pResMgr ) ),
aBtnCancel ( this, ResId( BTN_CANCEL_VEC, *rPara.pResMgr ) ),
aBtnHelp ( this, ResId( BTN_HELP_VEC, *rPara.pResMgr ) ),
@@ -299,15 +299,15 @@ DlgExportVec::DlgExportVec( FltCallDialogParameter& rPara ) :
aFtSizeY ( this, ResId( FT_SIZEY_VEC, *rPara.pResMgr ) ),
aMtfSizeY ( this, ResId( MTF_SIZEY_VEC, *rPara.pResMgr ) ),
aGrpSize ( this, ResId( GRP_SIZE_VEC, *rPara.pResMgr ) ),
- pMgr ( rPara.pResMgr ),
- aExt ( rPara.aFilterExt )
+ pMgr ( rPara.pResMgr ),
+ aExt ( rPara.aFilterExt )
{
aExt.ToUpperAscii();
- String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/" ) );
+ String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Export/" ) );
aFilterConfigPath.Append( aExt );
pConfigItem = new FilterConfigItem( aFilterConfigPath, &rPara.aFilterData );
- String aTitle( aExt );
+ String aTitle( aExt );
FreeResource();
aBtnOK.SetClickHdl( LINK( this, DlgExportVec, OK ) );
@@ -332,12 +332,12 @@ DlgExportVec::DlgExportVec( FltCallDialogParameter& rPara ) :
switch ( rPara.eFieldUnit )
{
-// case FUNIT_NONE :
-// case FUNIT_KM :
-// case FUNIT_PERCENT :
-// case FUNIT_CUSTOM :
-// case FUNIT_MILE :
-// case FUNIT_FOOT :
+// case FUNIT_NONE :
+// case FUNIT_KM :
+// case FUNIT_PERCENT :
+// case FUNIT_CUSTOM :
+// case FUNIT_MILE :
+// case FUNIT_FOOT :
case FUNIT_MM :
case FUNIT_CM :
case FUNIT_M :
@@ -352,7 +352,7 @@ DlgExportVec::DlgExportVec( FltCallDialogParameter& rPara ) :
}
break;
default:
- break; // -Wall Multiple values not handled.
+ break; // -Wall Multiple values not handled.
}
switch ( nMode )
diff --git a/svtools/source/filter.vcl/filter/dlgexpor.hrc b/svtools/source/filter.vcl/filter/dlgexpor.hrc
index 69870c9b00b0..d25380b6dd18 100644
--- a/svtools/source/filter.vcl/filter/dlgexpor.hrc
+++ b/svtools/source/filter.vcl/filter/dlgexpor.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/dlgexpor.hxx b/svtools/source/filter.vcl/filter/dlgexpor.hxx
index 4c8b926335cd..13a518c97938 100644
--- a/svtools/source/filter.vcl/filter/dlgexpor.hxx
+++ b/svtools/source/filter.vcl/filter/dlgexpor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,28 +50,28 @@ private:
FltCallDialogParameter& rFltCallPara;
- OKButton aBtnOK;
- CancelButton aBtnCancel;
- HelpButton aBtnHelp;
+ OKButton aBtnOK;
+ CancelButton aBtnCancel;
+ HelpButton aBtnHelp;
- ListBox aLbColors;
- CheckBox aCbxRLE;
- FixedLine aGrpColors;
+ ListBox aLbColors;
+ CheckBox aCbxRLE;
+ FixedLine aGrpColors;
- RadioButton aRbOriginal;
- RadioButton aRbRes;
- RadioButton aRbSize;
- FixedText aFtSizeX;
- MetricField aMtfSizeX;
- FixedText aFtSizeY;
- MetricField aMtfSizeY;
- FixedLine aGrpMode;
- ComboBox aCbbRes;
+ RadioButton aRbOriginal;
+ RadioButton aRbRes;
+ RadioButton aRbSize;
+ FixedText aFtSizeX;
+ MetricField aMtfSizeX;
+ FixedText aFtSizeY;
+ MetricField aMtfSizeY;
+ FixedLine aGrpMode;
+ ComboBox aCbbRes;
- FilterConfigItem* pConfigItem;
- ResMgr* pMgr;
+ FilterConfigItem* pConfigItem;
+ ResMgr* pMgr;
- String aExt;
+ String aExt;
DECL_LINK( OK, void* p );
DECL_LINK( ClickRbOriginal,void* p );
@@ -96,24 +96,24 @@ private:
FltCallDialogParameter& rFltCallPara;
- OKButton aBtnOK;
- CancelButton aBtnCancel;
- HelpButton aBtnHelp;
+ OKButton aBtnOK;
+ CancelButton aBtnCancel;
+ HelpButton aBtnHelp;
- RadioButton aRbOriginal;
- RadioButton aRbSize;
- FixedLine aGrpMode;
+ RadioButton aRbOriginal;
+ RadioButton aRbSize;
+ FixedLine aGrpMode;
- FixedText aFtSizeX;
- MetricField aMtfSizeX;
- FixedText aFtSizeY;
- MetricField aMtfSizeY;
- FixedLine aGrpSize;
+ FixedText aFtSizeX;
+ MetricField aMtfSizeX;
+ FixedText aFtSizeY;
+ MetricField aMtfSizeY;
+ FixedLine aGrpSize;
- FilterConfigItem* pConfigItem;
- ResMgr* pMgr;
+ FilterConfigItem* pConfigItem;
+ ResMgr* pMgr;
- String aExt;
+ String aExt;
DECL_LINK( OK, void* p );
DECL_LINK( ClickRbOriginal,void* p );
diff --git a/svtools/source/filter.vcl/filter/dlgexpor.src b/svtools/source/filter.vcl/filter/dlgexpor.src
index 7573b394d72f..1edef36ed5f7 100644
--- a/svtools/source/filter.vcl/filter/dlgexpor.src
+++ b/svtools/source/filter.vcl/filter/dlgexpor.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -198,7 +198,7 @@ ModalDialog DLG_EXPORT_VEC
RadioButton RB_SIZE_VEC
{
Pos = MAP_APPFONT ( 12 , 28 ) ;
- Size = MAP_APPFONT ( 98 , 10 ) ;
+ Size = MAP_APPFONT ( 98 , 10 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Size" ;
};
diff --git a/svtools/source/filter.vcl/filter/filter.cxx b/svtools/source/filter.vcl/filter/filter.cxx
index 879bf684b5a6..e8ddf8828ea9 100644
--- a/svtools/source/filter.vcl/filter/filter.cxx
+++ b/svtools/source/filter.vcl/filter/filter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,21 +76,21 @@
#include "SvFilterOptionsDialog.hxx"
-#define PMGCHUNG_msOG 0x6d734f47 // Microsoft Office Animated GIF
+#define PMGCHUNG_msOG 0x6d734f47 // Microsoft Office Animated GIF
#if defined WIN || (defined OS2 && !defined ICC)
-#define IMPORT_FUNCTION_NAME "_GraphicImport"
-#define EXPORT_FUNCTION_NAME "_GraphicExport"
-#define IMPDLG_FUNCTION_NAME "_DoImportDialog"
-#define EXPDLG_FUNCTION_NAME "_DoExportDialog"
+#define IMPORT_FUNCTION_NAME "_GraphicImport"
+#define EXPORT_FUNCTION_NAME "_GraphicExport"
+#define IMPDLG_FUNCTION_NAME "_DoImportDialog"
+#define EXPDLG_FUNCTION_NAME "_DoExportDialog"
#else
-#define IMPORT_FUNCTION_NAME "GraphicImport"
-#define EXPORT_FUNCTION_NAME "GraphicExport"
-#define IMPDLG_FUNCTION_NAME "DoImportDialog"
-#define EXPDLG_FUNCTION_NAME "DoExportDialog"
+#define IMPORT_FUNCTION_NAME "GraphicImport"
+#define EXPORT_FUNCTION_NAME "GraphicExport"
+#define IMPDLG_FUNCTION_NAME "DoImportDialog"
+#define EXPDLG_FUNCTION_NAME "DoExportDialog"
#endif
@@ -106,11 +106,11 @@
using namespace ::rtl;
using namespace ::com::sun::star;
-static List* pFilterHdlList = NULL;
+static List* pFilterHdlList = NULL;
static ::osl::Mutex& getListMutex()
{
- static ::osl::Mutex s_aListProtection;
+ static ::osl::Mutex s_aListProtection;
return s_aListProtection;
}
@@ -124,11 +124,11 @@ class ImpFilterOutputStream : public ::cppu::WeakImplHelper1< ::com::sun::star::
{
protected:
- SvStream& mrStm;
+ SvStream& mrStm;
- virtual void SAL_CALL writeBytes( const ::com::sun::star::uno::Sequence< sal_Int8 >& rData ) throw (::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { mrStm.Write( rData.getConstArray(), rData.getLength() ); }
- virtual void SAL_CALL flush() throw (::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { mrStm.Flush(); }
- virtual void SAL_CALL closeOutput() throw() {}
+ virtual void SAL_CALL writeBytes( const ::com::sun::star::uno::Sequence< sal_Int8 >& rData ) throw (::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { mrStm.Write( rData.getConstArray(), rData.getLength() ); }
+ virtual void SAL_CALL flush() throw (::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException) { mrStm.Flush(); }
+ virtual void SAL_CALL closeOutput() throw() {}
public:
@@ -142,8 +142,8 @@ BOOL ImplDirEntryHelper::Exists( const INetURLObject& rObj )
try
{
- ::rtl::OUString aTitle;
- ::ucbhelper::Content aCnt( rObj.GetMainURL( INetURLObject::NO_DECODE ),
+ ::rtl::OUString aTitle;
+ ::ucbhelper::Content aCnt( rObj.GetMainURL( INetURLObject::NO_DECODE ),
::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );
bExists = aCnt.isDocument();
@@ -158,7 +158,7 @@ BOOL ImplDirEntryHelper::Exists( const INetURLObject& rObj )
}
catch( ... )
{
-// DBG_ERRORFILE( "Any other exception" );
+// DBG_ERRORFILE( "Any other exception" );
}
return bExists;
}
@@ -212,8 +212,8 @@ BYTE* ImplSearchEntry( BYTE* pSource, BYTE* pDest, ULONG nComp, ULONG nSize )
inline String ImpGetExtension( const String &rPath )
{
- String aExt;
- INetURLObject aURL( rPath );
+ String aExt;
+ INetURLObject aURL( rPath );
aExt = aURL.GetFileExtension().toAsciiUpperCase();
return aExt;
}
@@ -256,7 +256,7 @@ static BOOL ImpPeekGraphicFormat( SvStream& rStream, String& rFormatExtension, B
USHORT i;
BYTE sFirstBytes[ 256 ];
ULONG nFirstLong,nSecondLong;
- ULONG nStreamPos = rStream.Tell();
+ ULONG nStreamPos = rStream.Tell();
rStream.Seek( STREAM_SEEK_TO_END );
ULONG nStreamLen = rStream.Tell() - nStreamPos;
@@ -552,7 +552,7 @@ static BOOL ImpPeekGraphicFormat( SvStream& rStream, String& rFormatExtension, B
{
bSomethingTested = TRUE;
BYTE sBuf[4];
- sal_uInt32 nOffset; // in ms documents the pict format is used without the first 512 bytes
+ sal_uInt32 nOffset; // in ms documents the pict format is used without the first 512 bytes
for ( nOffset = 10; ( nOffset <= 522 ) && ( ( nStreamPos + nOffset + 3 ) <= nStreamLen ); nOffset += 512 )
{
rStream.Seek( nStreamPos + nOffset );
@@ -740,9 +740,9 @@ sal_uInt16 GraphicFilter::ImpTestOrFindFormat( const String& rPath, SvStream& rS
static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& rConfigItem )
{
- Graphic aGraphic;
- ByteString aResMgrName( "svt", 3 );
- ResMgr* pResMgr;
+ Graphic aGraphic;
+ ByteString aResMgrName( "svt", 3 );
+ ResMgr* pResMgr;
pResMgr = ResMgr::CreateResMgr( aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() );
@@ -753,9 +753,9 @@ static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& r
{
sal_Int32 nMode = rConfigItem.ReadInt32( String( ResId( KEY_MODE, *pResMgr ) ), -1 );
- if ( nMode == -1 ) // the property is not there, this is possible, if the graphic filter
- { // is called via UnoGraphicExporter and not from a graphic export Dialog
- nMode = 0; // then we are defaulting this mode to 0
+ if ( nMode == -1 ) // the property is not there, this is possible, if the graphic filter
+ { // is called via UnoGraphicExporter and not from a graphic export Dialog
+ nMode = 0; // then we are defaulting this mode to 0
if ( nLogicalWidth || nLogicalHeight )
nMode = 2;
}
@@ -778,11 +778,11 @@ static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& r
// Aufloesung wird eingestellt
if( nMode == 1 )
{
- Bitmap aBitmap( rGraphic.GetBitmap() );
- MapMode aMap( MAP_100TH_INCH );
+ Bitmap aBitmap( rGraphic.GetBitmap() );
+ MapMode aMap( MAP_100TH_INCH );
sal_Int32 nDPI = rConfigItem.ReadInt32( String( ResId( KEY_RES, *pResMgr ) ), 75 );
- Fraction aFrac( 1, Min( Max( nDPI, sal_Int32( 75 ) ), sal_Int32( 600 ) ) );
+ Fraction aFrac( 1, Min( Max( nDPI, sal_Int32( 75 ) ), sal_Int32( 600 ) ) );
aMap.SetScaleX( aFrac );
aMap.SetScaleY( aFrac );
@@ -817,7 +817,7 @@ static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& r
{
if( ( nMode == 1 ) || ( nMode == 2 ) )
{
- GDIMetaFile aMtf( rGraphic.GetGDIMetaFile() );
+ GDIMetaFile aMtf( rGraphic.GetGDIMetaFile() );
::com::sun::star::awt::Size aDefaultSize( 10000, 10000 );
Size aNewSize( OutputDevice::LogicToLogic( Size( nLogicalWidth, nLogicalHeight ), MAP_100TH_MM, aMtf.GetPrefMapMode() ) );
@@ -844,12 +844,12 @@ static Graphic ImpGetScaledGraphic( const Graphic& rGraphic, FilterConfigItem& r
static String ImpCreateFullFilterPath( const String& rPath, const String& rFilterName )
{
- ::rtl::OUString aPathURL;
+ ::rtl::OUString aPathURL;
::osl::FileBase::getFileURLFromSystemPath( rPath, aPathURL );
aPathURL += String( '/' );
- ::rtl::OUString aSystemPath;
+ ::rtl::OUString aSystemPath;
::osl::FileBase::getSystemPathFromFileURL( aPathURL, aSystemPath );
aSystemPath += ::rtl::OUString( rFilterName );
@@ -865,29 +865,29 @@ class ImpFilterLibCache;
struct ImpFilterLibCacheEntry
{
- ImpFilterLibCacheEntry* mpNext;
- osl::Module maLibrary;
- String maFiltername;
- PFilterCall mpfnImport;
- PFilterDlgCall mpfnImportDlg;
+ ImpFilterLibCacheEntry* mpNext;
+ osl::Module maLibrary;
+ String maFiltername;
+ PFilterCall mpfnImport;
+ PFilterDlgCall mpfnImportDlg;
ImpFilterLibCacheEntry( const String& rPathname, const String& rFiltername );
- int operator==( const String& rFiltername ) const { return maFiltername == rFiltername; }
+ int operator==( const String& rFiltername ) const { return maFiltername == rFiltername; }
- PFilterCall GetImportFunction();
- PFilterDlgCall GetImportDlgFunction();
- PFilterCall GetExportFunction() { return (PFilterCall) maLibrary.getFunctionSymbol( UniString::CreateFromAscii( EXPORT_FUNCTION_NAME ) ); }
- PFilterDlgCall GetExportDlgFunction() { return (PFilterDlgCall) maLibrary.getFunctionSymbol( UniString::CreateFromAscii( EXPDLG_FUNCTION_NAME ) ); }
+ PFilterCall GetImportFunction();
+ PFilterDlgCall GetImportDlgFunction();
+ PFilterCall GetExportFunction() { return (PFilterCall) maLibrary.getFunctionSymbol( UniString::CreateFromAscii( EXPORT_FUNCTION_NAME ) ); }
+ PFilterDlgCall GetExportDlgFunction() { return (PFilterDlgCall) maLibrary.getFunctionSymbol( UniString::CreateFromAscii( EXPDLG_FUNCTION_NAME ) ); }
};
// ------------------------------------------------------------------------
ImpFilterLibCacheEntry::ImpFilterLibCacheEntry( const String& rPathname, const String& rFiltername ) :
- mpNext ( NULL ),
- maLibrary ( rPathname ),
- maFiltername ( rFiltername ),
- mpfnImport ( NULL ),
- mpfnImportDlg ( NULL )
+ mpNext ( NULL ),
+ maLibrary ( rPathname ),
+ maFiltername ( rFiltername ),
+ mpfnImport ( NULL ),
+ mpfnImportDlg ( NULL )
{
}
@@ -917,21 +917,21 @@ PFilterDlgCall ImpFilterLibCacheEntry::GetImportDlgFunction()
class ImpFilterLibCache
{
- ImpFilterLibCacheEntry* mpFirst;
- ImpFilterLibCacheEntry* mpLast;
+ ImpFilterLibCacheEntry* mpFirst;
+ ImpFilterLibCacheEntry* mpLast;
public:
ImpFilterLibCache();
~ImpFilterLibCache();
- ImpFilterLibCacheEntry* GetFilter( const String& rFilterPath, const String& rFiltername );
+ ImpFilterLibCacheEntry* GetFilter( const String& rFilterPath, const String& rFiltername );
};
// ------------------------------------------------------------------------
ImpFilterLibCache::ImpFilterLibCache() :
- mpFirst ( NULL ),
- mpLast ( NULL )
+ mpFirst ( NULL ),
+ mpLast ( NULL )
{
}
@@ -939,7 +939,7 @@ ImpFilterLibCache::ImpFilterLibCache() :
ImpFilterLibCache::~ImpFilterLibCache()
{
- ImpFilterLibCacheEntry* pEntry = mpFirst;
+ ImpFilterLibCacheEntry* pEntry = mpFirst;
while( pEntry )
{
ImpFilterLibCacheEntry* pNext = pEntry->mpNext;
@@ -952,7 +952,7 @@ ImpFilterLibCache::~ImpFilterLibCache()
ImpFilterLibCacheEntry* ImpFilterLibCache::GetFilter( const String& rFilterPath, const String& rFilterName )
{
- ImpFilterLibCacheEntry* pEntry = mpFirst;
+ ImpFilterLibCacheEntry* pEntry = mpFirst;
while( pEntry )
{
@@ -991,7 +991,7 @@ namespace { struct Cache : public rtl::Static<ImpFilterLibCache, Cache> {}; }
// -----------------
GraphicFilter::GraphicFilter( sal_Bool bConfig ) :
- bUseConfig ( bConfig ),
+ bUseConfig ( bConfig ),
nExpGraphHint ( 0 )
{
ImplInit();
@@ -1231,11 +1231,11 @@ BOOL GraphicFilter::IsExportPixelFormat( USHORT nFormat )
USHORT GraphicFilter::CanImportGraphic( const INetURLObject& rPath,
USHORT nFormat, USHORT* pDeterminedFormat )
{
- sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
+ sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
DBG_ASSERT( rPath.GetProtocol() != INET_PROT_NOT_VALID, "GraphicFilter::CanImportGraphic() : ProtType == INET_PROT_NOT_VALID" );
- String aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
- SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( aMainUrl, STREAM_READ | STREAM_SHARE_DENYNONE );
+ String aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
+ SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( aMainUrl, STREAM_READ | STREAM_SHARE_DENYNONE );
if ( pStream )
{
nRetValue = CanImportGraphic( aMainUrl, *pStream, nFormat, pDeterminedFormat );
@@ -1268,8 +1268,8 @@ USHORT GraphicFilter::ImportGraphic( Graphic& rGraphic, const INetURLObject& rPa
sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
DBG_ASSERT( rPath.GetProtocol() != INET_PROT_NOT_VALID, "GraphicFilter::ImportGraphic() : ProtType == INET_PROT_NOT_VALID" );
- String aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
- SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( aMainUrl, STREAM_READ | STREAM_SHARE_DENYNONE );
+ String aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
+ SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( aMainUrl, STREAM_READ | STREAM_SHARE_DENYNONE );
if ( pStream )
{
nRetValue = ImportGraphic( rGraphic, aMainUrl, *pStream, nFormat, pDeterminedFormat, nImportFlags );
@@ -1290,18 +1290,18 @@ USHORT GraphicFilter::ImportGraphic( Graphic& rGraphic, const String& rPath, SvS
USHORT nFormat, USHORT* pDeterminedFormat, sal_uInt32 nImportFlags,
com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >* pFilterData )
{
- String aFilterName;
- ULONG nStmBegin;
- USHORT nStatus;
- GraphicReader* pContext = rGraphic.GetContext();
- GfxLinkType eLinkType = GFX_LINK_TYPE_NONE;
- BOOL bDummyContext = ( pContext == (GraphicReader*) 1 );
- const BOOL bLinkSet = rGraphic.IsLink();
+ String aFilterName;
+ ULONG nStmBegin;
+ USHORT nStatus;
+ GraphicReader* pContext = rGraphic.GetContext();
+ GfxLinkType eLinkType = GFX_LINK_TYPE_NONE;
+ BOOL bDummyContext = ( pContext == (GraphicReader*) 1 );
+ const BOOL bLinkSet = rGraphic.IsLink();
FilterConfigItem* pFilterConfigItem = NULL;
- Size aPreviewSizeHint( 0, 0 );
- sal_Bool bAllowPartialStreamRead = sal_False;
- sal_Bool bCreateNativeLink = sal_True;
+ Size aPreviewSizeHint( 0, 0 );
+ sal_Bool bAllowPartialStreamRead = sal_False;
+ sal_Bool bCreateNativeLink = sal_True;
ResetLastError();
@@ -1496,8 +1496,8 @@ USHORT GraphicFilter::ImportGraphic( Graphic& rGraphic, const String& rPath, SvS
else if( aFilterName.EqualsIgnoreCaseAscii( IMP_SVSGF )
|| aFilterName.EqualsIgnoreCaseAscii( IMP_SVSGV ) )
{
- USHORT nVersion;
- unsigned char nTyp = CheckSgfTyp( rIStream, nVersion );
+ USHORT nVersion;
+ unsigned char nTyp = CheckSgfTyp( rIStream, nVersion );
switch( nTyp )
{
@@ -1560,7 +1560,7 @@ USHORT GraphicFilter::ImportGraphic( Graphic& rGraphic, const String& rPath, SvS
}
else
{
- ImpFilterLibCacheEntry* pFilter = NULL;
+ ImpFilterLibCacheEntry* pFilter = NULL;
// find first filter in filter pathes
xub_StrLen i, nTokenCount = aFilterPath.GetTokenCount( ';' );
@@ -1609,11 +1609,11 @@ USHORT GraphicFilter::ImportGraphic( Graphic& rGraphic, const String& rPath, SvS
if( nStatus == GRFILTER_OK && bCreateNativeLink && ( eLinkType != GFX_LINK_TYPE_NONE ) && !rGraphic.GetContext() && !bLinkSet )
{
const ULONG nStmEnd = rIStream.Tell();
- const ULONG nBufSize = nStmEnd - nStmBegin;
+ const ULONG nBufSize = nStmEnd - nStmBegin;
if( nBufSize )
{
- BYTE* pBuf=0;
+ BYTE* pBuf=0;
try
{
pBuf = new BYTE[ nBufSize ];
@@ -1653,12 +1653,12 @@ USHORT GraphicFilter::ImportGraphic( Graphic& rGraphic, const String& rPath, SvS
USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const INetURLObject& rPath,
sal_uInt16 nFormat, const uno::Sequence< beans::PropertyValue >* pFilterData )
{
- sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
+ sal_uInt16 nRetValue = GRFILTER_FORMATERROR;
DBG_ASSERT( rPath.GetProtocol() != INET_PROT_NOT_VALID, "GraphicFilter::ExportGraphic() : ProtType == INET_PROT_NOT_VALID" );
- BOOL bAlreadyExists = ImplDirEntryHelper::Exists( rPath );
+ BOOL bAlreadyExists = ImplDirEntryHelper::Exists( rPath );
- String aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
- SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( aMainUrl, STREAM_WRITE | STREAM_TRUNC );
+ String aMainUrl( rPath.GetMainURL( INetURLObject::NO_DECODE ) );
+ SvStream* pStream = ::utl::UcbStreamHelper::CreateStream( aMainUrl, STREAM_WRITE | STREAM_TRUNC );
if ( pStream )
{
nRetValue = ExportGraphic( rGraphic, aMainUrl, *pStream, nFormat, pFilterData );
@@ -1701,10 +1701,10 @@ USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPat
FilterConfigItem aConfigItem( (uno::Sequence< beans::PropertyValue >*)pFilterData );
String aFilterName( pConfig->GetExportFilterName( nFormat ) );
- bAbort = FALSE;
- USHORT nStatus = GRFILTER_OK;
- GraphicType eType;
- Graphic aGraphic( rGraphic );
+ bAbort = FALSE;
+ USHORT nStatus = GRFILTER_OK;
+ GraphicType eType;
+ Graphic aGraphic( rGraphic );
aGraphic = ImpGetScaledGraphic( rGraphic, aConfigItem );
eType = aGraphic.GetType();
@@ -1718,9 +1718,9 @@ USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPat
VirtualDevice aVirDev;
// Maximalen Speicherbedarf fuer das Bildes holen:
-// if( GetOptionsConfig() )
-// nMaxMem = (UINT32)GetOptionsConfig()->ReadKey( "VEC-TO-PIX-MAX-KB", "1024" ).ToInt32();
-// else
+// if( GetOptionsConfig() )
+// nMaxMem = (UINT32)GetOptionsConfig()->ReadKey( "VEC-TO-PIX-MAX-KB", "1024" ).ToInt32();
+// else
nMaxMem = 1024;
nMaxMem *= 1024; // In Bytes
@@ -1769,7 +1769,7 @@ USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPat
if( !aBmp.Convert( (BmpConversion) nColorRes ) )
aBmp = aGraphic.GetBitmap();
}
- ResMgr* pResMgr = CREATERESMGR( svt );
+ ResMgr* pResMgr = CREATERESMGR( svt );
sal_Bool bRleCoding = aConfigItem.ReadBool( String( ResId( KEY_RLE_CODING, *pResMgr ) ), sal_True );
// Wollen wir RLE-Kodiert speichern?
aBmp.Write( rOStm, bRleCoding );
@@ -1783,7 +1783,7 @@ USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPat
sal_Int32 nVersion = aConfigItem.ReadInt32( String( RTL_CONSTASCII_USTRINGPARAM( "Version" ) ), 0 ) ;
if ( nVersion )
rOStm.SetVersion( nVersion );
- GDIMetaFile aMTF;
+ GDIMetaFile aMTF;
if ( eType != GRAPHIC_BITMAP )
aMTF = aGraphic.GetGDIMetaFile();
@@ -1810,9 +1810,9 @@ USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPat
}
else
{
- Bitmap aBmp( aGraphic.GetBitmap() );
- GDIMetaFile aMTF;
- VirtualDevice aVirDev;
+ Bitmap aBmp( aGraphic.GetBitmap() );
+ GDIMetaFile aMTF;
+ VirtualDevice aVirDev;
aMTF.Record( &aVirDev );
aVirDev.DrawBitmap( Point(), aBmp );
@@ -1834,9 +1834,9 @@ USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPat
}
else
{
- Bitmap aBmp( aGraphic.GetBitmap() );
- GDIMetaFile aMTF;
- VirtualDevice aVirDev;
+ Bitmap aBmp( aGraphic.GetBitmap() );
+ GDIMetaFile aMTF;
+ VirtualDevice aVirDev;
aMTF.Record( &aVirDev );
aVirDev.DrawBitmap( Point(), aBmp );
@@ -1933,7 +1933,7 @@ USHORT GraphicFilter::ExportGraphic( const Graphic& rGraphic, const String& rPat
if( xActiveDataSource.is() )
{
- const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xStmIf(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > xStmIf(
static_cast< ::cppu::OWeakObject* >( new ImpFilterOutputStream( rOStm ) ) );
SvMemoryStream aMemStm( 65535, 65535 );
@@ -2002,7 +2002,7 @@ BOOL GraphicFilter::Setup( USHORT )
BOOL GraphicFilter::HasImportDialog( USHORT )
{
return sal_True;
-// return pConfig->IsImportDialog( nFormat );
+// return pConfig->IsImportDialog( nFormat );
}
// ------------------------------------------------------------------------
@@ -2084,8 +2084,8 @@ IMPL_LINK( GraphicFilter, FilterCallback, ConvertData*, pData )
if( pData )
{
- USHORT nFormat = GRFILTER_FORMAT_DONTKNOW;
- ByteString aShortName;
+ USHORT nFormat = GRFILTER_FORMAT_DONTKNOW;
+ ByteString aShortName;
switch( pData->mnFormat )
{
case( CVT_BMP ): aShortName = BMP_SHORTNAME; break;
diff --git a/svtools/source/filter.vcl/filter/filter2.cxx b/svtools/source/filter.vcl/filter/filter2.cxx
index 0220961b657a..985da72df106 100644
--- a/svtools/source/filter.vcl/filter/filter2.cxx
+++ b/svtools/source/filter.vcl/filter/filter2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
#include "FilterConfigCache.hxx"
#include <unotools/ucbstreamhelper.hxx>
-#define DATA_SIZE 640
+#define DATA_SIZE 640
BYTE* ImplSearchEntry( BYTE* , BYTE* , ULONG , ULONG );
@@ -51,7 +51,7 @@ BYTE* ImplSearchEntry( BYTE* , BYTE* , ULONG , ULONG );
\************************************************************************/
GraphicDescriptor::GraphicDescriptor( const String* pPath ) :
- pFileStm ( NULL )
+ pFileStm ( NULL )
{
ImpConstruct();
@@ -96,7 +96,7 @@ GraphicDescriptor::GraphicDescriptor( const INetURLObject& rPath ) :
\************************************************************************/
GraphicDescriptor::GraphicDescriptor( SvStream& rInStream, const String* pPath) :
- pFileStm ( NULL )
+ pFileStm ( NULL )
{
ImpConstruct();
@@ -150,32 +150,32 @@ BOOL GraphicDescriptor::Detect( BOOL bExtendedInfo )
if ( bDataReady )
{
- SvStream& rStm = GetSearchStream();
- UINT16 nOldFormat = rStm.GetNumberFormatInt();
-
- if ( ImpDetectGIF( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectJPG( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectBMP( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectPNG( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectTIF( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectPCX( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectDXF( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectMET( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectSGF( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectSGV( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectSVM( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectWMF( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectEMF( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectPCT( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectXBM( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectXPM( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectPBM( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectPGM( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectPPM( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectRAS( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectTGA( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectPSD( rStm, bExtendedInfo ) ) bRet = TRUE;
- else if ( ImpDetectEPS( rStm, bExtendedInfo ) ) bRet = TRUE;
+ SvStream& rStm = GetSearchStream();
+ UINT16 nOldFormat = rStm.GetNumberFormatInt();
+
+ if ( ImpDetectGIF( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectJPG( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectBMP( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectPNG( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectTIF( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectPCX( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectDXF( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectMET( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectSGF( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectSGV( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectSVM( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectWMF( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectEMF( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectPCT( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectXBM( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectXPM( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectPBM( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectPGM( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectPPM( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectRAS( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectTGA( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectPSD( rStm, bExtendedInfo ) ) bRet = TRUE;
+ else if ( ImpDetectEPS( rStm, bExtendedInfo ) ) bRet = TRUE;
// diese Formate lassen sich nur bei WideSearch im gesamten
// Stream ermitteln
@@ -262,8 +262,8 @@ ULONG GraphicDescriptor::GetRequestedByteCount() const
/******************************************************************************/
-/* IMP-Methoden */
-/* */
+/* IMP-Methoden */
+/* */
/*************************************************************************
@@ -296,8 +296,8 @@ void GraphicDescriptor::ImpConstruct()
BOOL GraphicDescriptor::ImpDetectBMP( SvStream& rStm, BOOL bExtendedInfo )
{
- UINT16 nTemp16;
- BOOL bRet = FALSE;
+ UINT16 nTemp16;
+ BOOL bRet = FALSE;
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
rStm.Seek( nStmPos );
@@ -319,8 +319,8 @@ BOOL GraphicDescriptor::ImpDetectBMP( SvStream& rStm, BOOL bExtendedInfo )
if ( bExtendedInfo )
{
- UINT32 nTemp32;
- UINT32 nCompression;
+ UINT32 nTemp32;
+ UINT32 nCompression;
// bis zur ersten Information
rStm.SeekRel( 0x10 );
@@ -378,10 +378,10 @@ BOOL GraphicDescriptor::ImpDetectBMP( SvStream& rStm, BOOL bExtendedInfo )
BOOL GraphicDescriptor::ImpDetectGIF( SvStream& rStm, BOOL bExtendedInfo )
{
- UINT32 n32;
- UINT16 n16;
- BOOL bRet = FALSE;
- BYTE cByte;
+ UINT32 n32;
+ UINT16 n16;
+ BOOL bRet = FALSE;
+ BYTE cByte;
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
rStm.Seek( nStmPos );
@@ -426,10 +426,10 @@ BOOL GraphicDescriptor::ImpDetectGIF( SvStream& rStm, BOOL bExtendedInfo )
BOOL GraphicDescriptor::ImpDetectJPG( SvStream& rStm, BOOL bExtendedInfo )
{
- UINT32 nTemp32;
- BOOL bRet = FALSE;
- BYTE cByte = 0;
- BOOL bM_COM;
+ UINT32 nTemp32;
+ BOOL bRet = FALSE;
+ BYTE cByte = 0;
+ BOOL bM_COM;
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_BIGENDIAN );
rStm.Seek( nStmPos );
@@ -460,12 +460,12 @@ BOOL GraphicDescriptor::ImpDetectJPG( SvStream& rStm, BOOL bExtendedInfo )
if( bExtendedInfo )
{
MapMode aMap;
- UINT16 nTemp16;
- ULONG nCount = 9;
- ULONG nMax;
- ULONG nResX;
- ULONG nResY;
- BYTE cUnit;
+ UINT16 nTemp16;
+ ULONG nCount = 9;
+ ULONG nMax;
+ ULONG nResX;
+ ULONG nResY;
+ BYTE cUnit;
// Groesse des verbleibenden Puffers ermitteln
if ( bLinked )
@@ -555,16 +555,16 @@ BOOL GraphicDescriptor::ImpDetectJPG( SvStream& rStm, BOOL bExtendedInfo )
BOOL GraphicDescriptor::ImpDetectPCD( SvStream& rStm, BOOL )
{
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
rStm.Seek( nStmPos );
if ( bWideSearch )
{
- UINT32 nTemp32;
- UINT16 nTemp16;
- BYTE cByte;
+ UINT32 nTemp32;
+ UINT16 nTemp16;
+ BYTE cByte;
rStm.SeekRel( 2048 );
rStm >> nTemp32;
@@ -606,8 +606,8 @@ BOOL GraphicDescriptor::ImpDetectPCX( SvStream& rStm, BOOL bExtendedInfo )
// We must detect the whole header.
bExtendedInfo = TRUE;
- BOOL bRet = FALSE;
- BYTE cByte;
+ BOOL bRet = FALSE;
+ BYTE cByte;
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
rStm.Seek( nStmPos );
@@ -620,13 +620,13 @@ BOOL GraphicDescriptor::ImpDetectPCX( SvStream& rStm, BOOL bExtendedInfo )
if ( bExtendedInfo )
{
- UINT16 nTemp16;
- USHORT nXmin;
- USHORT nXmax;
- USHORT nYmin;
- USHORT nYmax;
- USHORT nDPIx;
- USHORT nDPIy;
+ UINT16 nTemp16;
+ USHORT nXmin;
+ USHORT nXmax;
+ USHORT nYmin;
+ USHORT nYmax;
+ USHORT nDPIx;
+ USHORT nDPIy;
rStm.SeekRel( 1 );
@@ -661,7 +661,7 @@ BOOL GraphicDescriptor::ImpDetectPCX( SvStream& rStm, BOOL bExtendedInfo )
nDPIy = nTemp16;
// logische Groesse setzen
- MapMode aMap( MAP_INCH, Point(),
+ MapMode aMap( MAP_INCH, Point(),
Fraction( 1, nDPIx ), Fraction( 1, nDPIy ) );
aLogSize = OutputDevice::LogicToLogic( aPixSize, aMap,
MapMode( MAP_100TH_MM ) );
@@ -688,8 +688,8 @@ BOOL GraphicDescriptor::ImpDetectPCX( SvStream& rStm, BOOL bExtendedInfo )
BOOL GraphicDescriptor::ImpDetectPNG( SvStream& rStm, BOOL bExtendedInfo )
{
- UINT32 nTemp32;
- BOOL bRet = FALSE;
+ UINT32 nTemp32;
+ BOOL bRet = FALSE;
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_BIGENDIAN );
rStm.Seek( nStmPos );
@@ -729,7 +729,7 @@ BOOL GraphicDescriptor::ImpDetectPNG( SvStream& rStm, BOOL bExtendedInfo )
if ( bWideSearch )
{
- UINT32 nLen32;
+ UINT32 nLen32;
rStm.SeekRel( 8 );
@@ -746,8 +746,8 @@ BOOL GraphicDescriptor::ImpDetectPNG( SvStream& rStm, BOOL bExtendedInfo )
if ( nTemp32 == 0x70485973 )
{
- ULONG nXRes;
- ULONG nYRes;
+ ULONG nXRes;
+ ULONG nYRes;
// horizontale Aufloesung
rStm >> nTemp32;
@@ -788,10 +788,10 @@ BOOL GraphicDescriptor::ImpDetectPNG( SvStream& rStm, BOOL bExtendedInfo )
BOOL GraphicDescriptor::ImpDetectTIF( SvStream& rStm, BOOL bExtendedInfo )
{
- BOOL bDetectOk = FALSE;
- BOOL bRet = FALSE;
- BYTE cByte1;
- BYTE cByte2;
+ BOOL bDetectOk = FALSE;
+ BOOL bRet = FALSE;
+ BYTE cByte1;
+ BYTE cByte2;
rStm.Seek( nStmPos );
rStm >> cByte1;
@@ -811,7 +811,7 @@ BOOL GraphicDescriptor::ImpDetectTIF( SvStream& rStm, BOOL bExtendedInfo )
if ( bDetectOk )
{
- UINT16 nTemp16;
+ UINT16 nTemp16;
rStm >> nTemp16;
if ( nTemp16 == 0x2a )
@@ -821,10 +821,10 @@ BOOL GraphicDescriptor::ImpDetectTIF( SvStream& rStm, BOOL bExtendedInfo )
if ( bExtendedInfo )
{
- ULONG nCount;
- ULONG nMax = DATA_SIZE - 48;
- UINT32 nTemp32;
- BOOL bOk = FALSE;
+ ULONG nCount;
+ ULONG nMax = DATA_SIZE - 48;
+ UINT32 nTemp32;
+ BOOL bOk = FALSE;
// Offset des ersten IFD einlesen
rStm >> nTemp32;
@@ -966,7 +966,7 @@ BOOL GraphicDescriptor::ImpDetectPBM( SvStream& rStm, BOOL )
bRet = TRUE;
else
{
- BYTE nFirst, nSecond;
+ BYTE nFirst, nSecond;
rStm.Seek( nStmPos );
rStm >> nFirst >> nSecond;
if ( nFirst == 'P' && ( ( nSecond == '1' ) || ( nSecond == '4' ) ) )
@@ -993,7 +993,7 @@ BOOL GraphicDescriptor::ImpDetectPGM( SvStream& rStm, BOOL )
bRet = TRUE;
else
{
- BYTE nFirst, nSecond;
+ BYTE nFirst, nSecond;
rStm.Seek( nStmPos );
rStm >> nFirst >> nSecond;
if ( nFirst == 'P' && ( ( nSecond == '2' ) || ( nSecond == '5' ) ) )
@@ -1020,7 +1020,7 @@ BOOL GraphicDescriptor::ImpDetectPPM( SvStream& rStm, BOOL )
bRet = TRUE;
else
{
- BYTE nFirst, nSecond;
+ BYTE nFirst, nSecond;
rStm.Seek( nStmPos );
rStm >> nFirst >> nSecond;
if ( nFirst == 'P' && ( ( nSecond == '3' ) || ( nSecond == '6' ) ) )
@@ -1079,7 +1079,7 @@ BOOL GraphicDescriptor::ImpDetectPSD( SvStream& rStm, BOOL bExtendedInfo )
{
BOOL bRet = FALSE;
- UINT32 nMagicNumber;
+ UINT32 nMagicNumber;
rStm.Seek( nStmPos );
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_BIGENDIAN );
rStm >> nMagicNumber;
@@ -1097,7 +1097,7 @@ BOOL GraphicDescriptor::ImpDetectPSD( SvStream& rStm, BOOL bExtendedInfo )
UINT32 nColumns;
UINT16 nDepth;
UINT16 nMode;
- rStm.SeekRel( 6 ); // Pad
+ rStm.SeekRel( 6 ); // Pad
rStm >> nChannels >> nRows >> nColumns >> nDepth >> nMode;
if ( ( nDepth == 1 ) || ( nDepth == 8 ) || ( nDepth == 16 ) )
{
@@ -1138,8 +1138,8 @@ BOOL GraphicDescriptor::ImpDetectEPS( SvStream& rStm, BOOL )
// es wird die EPS mit Vorschaubild Variante und die Extensionuebereinstimmung
// geprueft
- sal_uInt32 nFirstLong;
- sal_uInt8 nFirstBytes[20];
+ sal_uInt32 nFirstLong;
+ sal_uInt8 nFirstBytes[20];
rStm.Seek( nStmPos );
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_BIGENDIAN );
@@ -1276,9 +1276,9 @@ BOOL GraphicDescriptor::ImpDetectSGV( SvStream&, BOOL )
BOOL GraphicDescriptor::ImpDetectSVM( SvStream& rStm, BOOL bExtendedInfo )
{
- UINT32 n32;
- BOOL bRet = FALSE;
- BYTE cByte;
+ UINT32 n32;
+ BOOL bRet = FALSE;
+ BYTE cByte;
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
rStm.Seek( nStmPos );
@@ -1294,8 +1294,8 @@ BOOL GraphicDescriptor::ImpDetectSVM( SvStream& rStm, BOOL bExtendedInfo )
if ( bExtendedInfo )
{
- UINT32 nTemp32;
- UINT16 nTemp16;
+ UINT32 nTemp32;
+ UINT16 nTemp16;
rStm.SeekRel( 0x04 );
@@ -1386,34 +1386,34 @@ BOOL GraphicDescriptor::ImpDetectEMF( SvStream&, BOOL )
String GraphicDescriptor::GetImportFormatShortName( sal_uInt16 nFormat )
{
- ByteString aKeyName;
+ ByteString aKeyName;
switch( nFormat )
{
- case( GFF_BMP ) : aKeyName = "bmp"; break;
- case( GFF_GIF ) : aKeyName = "gif"; break;
- case( GFF_JPG ) : aKeyName = "jpg"; break;
- case( GFF_PCD ) : aKeyName = "pcd"; break;
- case( GFF_PCX ) : aKeyName = "pcx"; break;
- case( GFF_PNG ) : aKeyName = "png"; break;
- case( GFF_XBM ) : aKeyName = "xbm"; break;
- case( GFF_XPM ) : aKeyName = "xpm"; break;
- case( GFF_PBM ) : aKeyName = "pbm"; break;
- case( GFF_PGM ) : aKeyName = "pgm"; break;
- case( GFF_PPM ) : aKeyName = "ppm"; break;
- case( GFF_RAS ) : aKeyName = "ras"; break;
- case( GFF_TGA ) : aKeyName = "tga"; break;
- case( GFF_PSD ) : aKeyName = "psd"; break;
- case( GFF_EPS ) : aKeyName = "eps"; break;
- case( GFF_TIF ) : aKeyName = "tif"; break;
- case( GFF_DXF ) : aKeyName = "dxf"; break;
- case( GFF_MET ) : aKeyName = "met"; break;
- case( GFF_PCT ) : aKeyName = "pct"; break;
- case( GFF_SGF ) : aKeyName = "sgf"; break;
- case( GFF_SGV ) : aKeyName = "sgv"; break;
- case( GFF_SVM ) : aKeyName = "svm"; break;
- case( GFF_WMF ) : aKeyName = "wmf"; break;
- case( GFF_EMF ) : aKeyName = "emf"; break;
+ case( GFF_BMP ) : aKeyName = "bmp"; break;
+ case( GFF_GIF ) : aKeyName = "gif"; break;
+ case( GFF_JPG ) : aKeyName = "jpg"; break;
+ case( GFF_PCD ) : aKeyName = "pcd"; break;
+ case( GFF_PCX ) : aKeyName = "pcx"; break;
+ case( GFF_PNG ) : aKeyName = "png"; break;
+ case( GFF_XBM ) : aKeyName = "xbm"; break;
+ case( GFF_XPM ) : aKeyName = "xpm"; break;
+ case( GFF_PBM ) : aKeyName = "pbm"; break;
+ case( GFF_PGM ) : aKeyName = "pgm"; break;
+ case( GFF_PPM ) : aKeyName = "ppm"; break;
+ case( GFF_RAS ) : aKeyName = "ras"; break;
+ case( GFF_TGA ) : aKeyName = "tga"; break;
+ case( GFF_PSD ) : aKeyName = "psd"; break;
+ case( GFF_EPS ) : aKeyName = "eps"; break;
+ case( GFF_TIF ) : aKeyName = "tif"; break;
+ case( GFF_DXF ) : aKeyName = "dxf"; break;
+ case( GFF_MET ) : aKeyName = "met"; break;
+ case( GFF_PCT ) : aKeyName = "pct"; break;
+ case( GFF_SGF ) : aKeyName = "sgf"; break;
+ case( GFF_SGV ) : aKeyName = "sgv"; break;
+ case( GFF_SVM ) : aKeyName = "svm"; break;
+ case( GFF_WMF ) : aKeyName = "wmf"; break;
+ case( GFF_EMF ) : aKeyName = "emf"; break;
}
return String( aKeyName, RTL_TEXTENCODING_ASCII_US );
diff --git a/svtools/source/filter.vcl/filter/fldll.cxx b/svtools/source/filter.vcl/filter/fldll.cxx
index a9559070a8b8..a744db615055 100644
--- a/svtools/source/filter.vcl/filter/fldll.cxx
+++ b/svtools/source/filter.vcl/filter/fldll.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/gradwrap.cxx b/svtools/source/filter.vcl/filter/gradwrap.cxx
index d1afb0dd743c..fb90e5fe9049 100644
--- a/svtools/source/filter.vcl/filter/gradwrap.cxx
+++ b/svtools/source/filter.vcl/filter/gradwrap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@
GradientWrapper::GradientWrapper(const Link& rDrawPolyRecordHdl,
const Link& rDrawPolyPolyRecordHdl,
const Link& rSetFillInBrushRecordHdl) :
- aDrawPolyRecordHdl (rDrawPolyRecordHdl),
- aDrawPolyPolyRecordHdl (rDrawPolyPolyRecordHdl),
+ aDrawPolyRecordHdl (rDrawPolyRecordHdl),
+ aDrawPolyPolyRecordHdl (rDrawPolyPolyRecordHdl),
aSetFillInBrushRecordHdl(rSetFillInBrushRecordHdl)
{
}
@@ -266,7 +266,7 @@ void GradientWrapper::WriteLinearGradient(const Rectangle& rRect,
void GradientWrapper::WriteRadialGradient(const Rectangle& rRect,
const Gradient& rGradient)
{
- USHORT nStepCount = 100;
+ USHORT nStepCount = 100;
Rectangle aClipRect = rRect;
Rectangle aRect = rRect;
long nZWidth = aRect.GetWidth() * (long)rGradient.GetOfsX() / 100;
@@ -412,9 +412,9 @@ void GradientWrapper::WriteRadialGradient(const Rectangle& rRect,
void GradientWrapper::WriteRectGradient(const Rectangle& rRect,
const Gradient& rGradient)
{
- USHORT nStepCount = 100;
+ USHORT nStepCount = 100;
Rectangle aClipRect = rRect;
- Rectangle aRect = rRect;
+ Rectangle aRect = rRect;
aRect.Left()--;
aRect.Top()--;
diff --git a/svtools/source/filter.vcl/filter/sgfbram.cxx b/svtools/source/filter.vcl/filter/sgfbram.cxx
index f07c8a7dbf0c..a4166bb0686a 100644
--- a/svtools/source/filter.vcl/filter/sgfbram.cxx
+++ b/svtools/source/filter.vcl/filter/sgfbram.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/sgvmain.cxx b/svtools/source/filter.vcl/filter/sgvmain.cxx
index 5c72dc6ba04f..3269624918d9 100644
--- a/svtools/source/filter.vcl/filter/sgvmain.cxx
+++ b/svtools/source/filter.vcl/filter/sgvmain.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -809,12 +809,12 @@ void CircType::Draw(OutputDevice& rOut)
void BmapType::Draw(OutputDevice& rOut)
{
//ifstream aInp;
- unsigned char nSgfTyp;
- USHORT nVersion;
- String aStr(
+ unsigned char nSgfTyp;
+ USHORT nVersion;
+ String aStr(
reinterpret_cast< char const * >(&Filename[ 1 ]),
(xub_StrLen)Filename[ 0 ], RTL_TEXTENCODING_UTF8 );
- INetURLObject aFNam( aStr );
+ INetURLObject aFNam( aStr );
SvStream* pInp = ::utl::UcbStreamHelper::CreateStream( aFNam.GetMainURL( INetURLObject::NO_DECODE ), STREAM_READ );
if ( pInp )
@@ -1065,7 +1065,7 @@ BOOL SgfSDrwFilter(SvStream& rInp, GDIMetaFile& rMtf, INetURLObject aIniPath )
BOOL bRet=FALSE; // Returncode
aIniPath.Append( String::CreateFromAscii( "sgf.ini", 7 ) );
-// aIniPath.ToAbs();
+// aIniPath.ToAbs();
pSgfFonts = new SgfFontLst;
diff --git a/svtools/source/filter.vcl/filter/sgvspln.cxx b/svtools/source/filter.vcl/filter/sgvspln.cxx
index 8bd09a4680dc..860fdb4dfe76 100644
--- a/svtools/source/filter.vcl/filter/sgvspln.cxx
+++ b/svtools/source/filter.vcl/filter/sgvspln.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/sgvtext.cxx b/svtools/source/filter.vcl/filter/sgvtext.cxx
index 1655c53a5393..cbb4e5684865 100644
--- a/svtools/source/filter.vcl/filter/sgvtext.cxx
+++ b/svtools/source/filter.vcl/filter/sgvtext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/strings.hrc b/svtools/source/filter.vcl/filter/strings.hrc
index 0eea67fb2338..b4029f513830 100644
--- a/svtools/source/filter.vcl/filter/strings.hrc
+++ b/svtools/source/filter.vcl/filter/strings.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/filter/strings.src b/svtools/source/filter.vcl/filter/strings.src
index 60e628ee0b5c..060570430021 100644
--- a/svtools/source/filter.vcl/filter/strings.src
+++ b/svtools/source/filter.vcl/filter/strings.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/igif/decode.cxx b/svtools/source/filter.vcl/igif/decode.cxx
index d40cfab7cc50..5fde71796ab6 100644
--- a/svtools/source/filter.vcl/igif/decode.cxx
+++ b/svtools/source/filter.vcl/igif/decode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,21 +35,21 @@
struct GIFLZWTableEntry
{
- GIFLZWTableEntry* pPrev;
- GIFLZWTableEntry* pFirst;
- BYTE nData;
+ GIFLZWTableEntry* pPrev;
+ GIFLZWTableEntry* pFirst;
+ BYTE nData;
};
// ------------------------------------------------------------------------
GIFLZWDecompressor::GIFLZWDecompressor( BYTE cDataSize ) :
- nInputBitsBuf ( 0 ),
- nOutBufDataLen ( 0 ),
- nInputBitsBufSize ( 0 ),
- bEOIFound ( FALSE ),
- nDataSize ( cDataSize )
+ nInputBitsBuf ( 0 ),
+ nOutBufDataLen ( 0 ),
+ nInputBitsBufSize ( 0 ),
+ bEOIFound ( FALSE ),
+ nDataSize ( cDataSize )
{
- pOutBuf = new BYTE[ 4096 ];
+ pOutBuf = new BYTE[ 4096 ];
nClearCode = 1 << nDataSize;
nEOICode = nClearCode + 1;
@@ -81,10 +81,10 @@ GIFLZWDecompressor::~GIFLZWDecompressor()
HPBYTE GIFLZWDecompressor::DecompressBlock( HPBYTE pSrc, BYTE cBufSize,
ULONG& rCount, BOOL& rEOI )
{
- ULONG nTargetSize = 4096;
- ULONG nCount = 0;
- HPBYTE pTarget = (HPBYTE) rtl_allocateMemory( nTargetSize );
- HPBYTE pTmpTarget = pTarget;
+ ULONG nTargetSize = 4096;
+ ULONG nCount = 0;
+ HPBYTE pTarget = (HPBYTE) rtl_allocateMemory( nTargetSize );
+ HPBYTE pTmpTarget = pTarget;
nBlockBufSize = cBufSize;
nBlockBufPos = 0;
@@ -96,9 +96,9 @@ HPBYTE GIFLZWDecompressor::DecompressBlock( HPBYTE pSrc, BYTE cBufSize,
if( nCount > nTargetSize )
{
- ULONG nNewSize = nTargetSize << 1;
- ULONG nOffset = pTmpTarget - pTarget;
- HPBYTE pTmp = (HPBYTE) rtl_allocateMemory( nNewSize );
+ ULONG nNewSize = nTargetSize << 1;
+ ULONG nOffset = pTmpTarget - pTarget;
+ HPBYTE pTmp = (HPBYTE) rtl_allocateMemory( nNewSize );
memcpy( pTmp, pTarget, nTargetSize );
rtl_freeMemory( pTarget );
@@ -145,10 +145,10 @@ void GIFLZWDecompressor::AddToTable( USHORT nPrevCode, USHORT nCodeFirstData )
BOOL GIFLZWDecompressor::ProcessOneCode()
{
- GIFLZWTableEntry* pE;
- USHORT nCode;
- BOOL bRet = FALSE;
- BOOL bEndOfBlock = FALSE;
+ GIFLZWTableEntry* pE;
+ USHORT nCode;
+ BOOL bRet = FALSE;
+ BOOL bEndOfBlock = FALSE;
while( nInputBitsBufSize < nCodeSize )
{
diff --git a/svtools/source/filter.vcl/igif/decode.hxx b/svtools/source/filter.vcl/igif/decode.hxx
index 5bce26b724f1..affe3a4d4f6a 100644
--- a/svtools/source/filter.vcl/igif/decode.hxx
+++ b/svtools/source/filter.vcl/igif/decode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,25 +35,25 @@ struct GIFLZWTableEntry;
class GIFLZWDecompressor
{
- GIFLZWTableEntry* pTable;
- HPBYTE pOutBuf;
- HPBYTE pOutBufData;
- HPBYTE pBlockBuf;
- ULONG nInputBitsBuf;
- USHORT nTableSize;
- USHORT nClearCode;
- USHORT nEOICode;
- USHORT nCodeSize;
- USHORT nOldCode;
- USHORT nOutBufDataLen;
- USHORT nInputBitsBufSize;
- BOOL bEOIFound;
- BYTE nDataSize;
- BYTE nBlockBufSize;
- BYTE nBlockBufPos;
+ GIFLZWTableEntry* pTable;
+ HPBYTE pOutBuf;
+ HPBYTE pOutBufData;
+ HPBYTE pBlockBuf;
+ ULONG nInputBitsBuf;
+ USHORT nTableSize;
+ USHORT nClearCode;
+ USHORT nEOICode;
+ USHORT nCodeSize;
+ USHORT nOldCode;
+ USHORT nOutBufDataLen;
+ USHORT nInputBitsBufSize;
+ BOOL bEOIFound;
+ BYTE nDataSize;
+ BYTE nBlockBufSize;
+ BYTE nBlockBufPos;
- void AddToTable(USHORT nPrevCode, USHORT nCodeFirstData);
- BOOL ProcessOneCode();
+ void AddToTable(USHORT nPrevCode, USHORT nCodeFirstData);
+ BOOL ProcessOneCode();
public:
@@ -61,7 +61,7 @@ public:
GIFLZWDecompressor( BYTE cDataSize );
~GIFLZWDecompressor();
- HPBYTE DecompressBlock( HPBYTE pSrc, BYTE cBufSize, ULONG& rCount, BOOL& rEOI );
+ HPBYTE DecompressBlock( HPBYTE pSrc, BYTE cBufSize, ULONG& rCount, BOOL& rEOI );
};
#endif
diff --git a/svtools/source/filter.vcl/igif/gifread.cxx b/svtools/source/filter.vcl/igif/gifread.cxx
index 62d1413e145f..5a53eebed217 100644
--- a/svtools/source/filter.vcl/igif/gifread.cxx
+++ b/svtools/source/filter.vcl/igif/gifread.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,18 +45,18 @@
// -------------
GIFReader::GIFReader( SvStream& rStm ) :
- aGPalette ( 256 ),
- aLPalette ( 256 ),
- rIStm ( rStm ),
- pAcc8 ( NULL ),
- pAcc1 ( NULL ),
- nLastPos ( rStm.Tell() ),
- nLogWidth100 ( 0UL ),
- nLogHeight100 ( 0UL ),
- nLoops ( 1 ),
- eActAction ( GLOBAL_HEADER_READING ),
- bGCTransparent ( FALSE ),
- bImGraphicReady ( FALSE )
+ aGPalette ( 256 ),
+ aLPalette ( 256 ),
+ rIStm ( rStm ),
+ pAcc8 ( NULL ),
+ pAcc1 ( NULL ),
+ nLastPos ( rStm.Tell() ),
+ nLogWidth100 ( 0UL ),
+ nLogHeight100 ( 0UL ),
+ nLoops ( 1 ),
+ eActAction ( GLOBAL_HEADER_READING ),
+ bGCTransparent ( FALSE ),
+ bImGraphicReady ( FALSE )
{
maUpperName = UniString::CreateFromAscii( "SVIGIF", 6 );
pSrcBuf = new BYTE[ 256 ];
@@ -134,10 +134,10 @@ BOOL GIFReader::CreateBitmaps( long nWidth, long nHeight, BitmapPalette* pPal,
BOOL GIFReader::ReadGlobalHeader()
{
- char pBuf[ 7 ];
- BYTE nRF;
- BYTE nAspect;
- BOOL bRet = FALSE;
+ char pBuf[ 7 ];
+ BYTE nRF;
+ BYTE nAspect;
+ BOOL bRet = FALSE;
rIStm.Read( pBuf, 6 );
if( NO_PENDING( rIStm ) )
@@ -179,8 +179,8 @@ BOOL GIFReader::ReadGlobalHeader()
void GIFReader::ReadPaletteEntries( BitmapPalette* pPal, ULONG nCount )
{
- const ULONG nLen = 3UL * nCount;
- BYTE* pBuf = new BYTE[ nLen ];
+ const ULONG nLen = 3UL * nCount;
+ BYTE* pBuf = new BYTE[ nLen ];
rIStm.Read( pBuf, nLen );
if( NO_PENDING( rIStm ) )
@@ -213,11 +213,11 @@ void GIFReader::ReadPaletteEntries( BitmapPalette* pPal, ULONG nCount )
BOOL GIFReader::ReadExtension()
{
- BYTE cFunction;
- BYTE cSize;
- BYTE cByte;
- BOOL bRet = FALSE;
- BOOL bOverreadDataBlocks = FALSE;
+ BYTE cFunction;
+ BYTE cSize;
+ BYTE cByte;
+ BOOL bRet = FALSE;
+ BOOL bOverreadDataBlocks = FALSE;
// Extension-Label
rIStm >> cFunction;
@@ -259,8 +259,8 @@ BOOL GIFReader::ReadExtension()
// Appl.-Extension hat Laenge 11
if ( cSize == 0x0b )
{
- ByteString aAppId;
- ByteString aAppCode;
+ ByteString aAppId;
+ ByteString aAppCode;
rIStm.Read( aAppId.AllocBuffer( 8 ), 8 );
rIStm.Read( aAppCode.AllocBuffer( 3 ), 3 );
@@ -328,8 +328,8 @@ BOOL GIFReader::ReadExtension()
bRet = TRUE;
while( cSize && bStatus && !rIStm.IsEof() )
{
- USHORT nCount = (USHORT) cSize + 1;
- char* pBuffer = new char[ nCount ];
+ USHORT nCount = (USHORT) cSize + 1;
+ char* pBuffer = new char[ nCount ];
bRet = FALSE;
rIStm.Read( pBuffer, nCount );
@@ -353,15 +353,15 @@ BOOL GIFReader::ReadExtension()
BOOL GIFReader::ReadLocalHeader()
{
- BYTE pBuf[ 9 ];
- BOOL bRet = FALSE;
+ BYTE pBuf[ 9 ];
+ BOOL bRet = FALSE;
rIStm.Read( pBuf, 9 );
if( NO_PENDING( rIStm ) )
{
- SvMemoryStream aMemStm;
- BitmapPalette* pPal;
- BYTE nFlags;
+ SvMemoryStream aMemStm;
+ BitmapPalette* pPal;
+ BYTE nFlags;
aMemStm.SetBuffer( (char*) pBuf, 9, FALSE, 9 );
aMemStm >> nImagePosX;
@@ -402,9 +402,9 @@ BOOL GIFReader::ReadLocalHeader()
ULONG GIFReader::ReadNextBlock()
{
- ULONG nRet = 0UL;
- ULONG nRead;
- BYTE cBlockSize;
+ ULONG nRet = 0UL;
+ ULONG nRead;
+ BYTE cBlockSize;
rIStm >> cBlockSize;
@@ -424,8 +424,8 @@ ULONG GIFReader::ReadNextBlock()
nRet = 3UL;
else
{
- BOOL bEOI;
- HPBYTE pTarget = pDecomp->DecompressBlock( pSrcBuf, cBlockSize, nRead, bEOI );
+ BOOL bEOI;
+ HPBYTE pTarget = pDecomp->DecompressBlock( pSrcBuf, cBlockSize, nRead, bEOI );
nRet = ( bEOI ? 3 : 1 );
@@ -463,10 +463,10 @@ void GIFReader::FillImages( HPBYTE pBytes, ULONG nCount )
// nicht zusanmmenfallen ( kommt vorm wenn wir am Ende des Bildes sind )
if( ( nMinY > nLastImageY ) && ( nLastImageY < ( nImageHeight - 1 ) ) )
{
- HPBYTE pScanline8 = pAcc8->GetScanline( nYAcc );
- ULONG nSize8 = pAcc8->GetScanlineSize();
- HPBYTE pScanline1 = 0;
- ULONG nSize1 = 0;
+ HPBYTE pScanline8 = pAcc8->GetScanline( nYAcc );
+ ULONG nSize8 = pAcc8->GetScanlineSize();
+ HPBYTE pScanline1 = 0;
+ ULONG nSize1 = 0;
if( bGCTransparent )
{
@@ -550,7 +550,7 @@ void GIFReader::FillImages( HPBYTE pBytes, ULONG nCount )
void GIFReader::CreateNewBitmaps()
{
- AnimationBitmap aAnimBmp;
+ AnimationBitmap aAnimBmp;
aBmp8.ReleaseAccess( pAcc8 );
pAcc8 = NULL;
@@ -594,7 +594,7 @@ const Graphic& GIFReader::GetIntermediateGraphic()
// vollstaendig eingelesen wurde
if ( bImGraphicReady && !aAnimation.Count() )
{
- Bitmap aBmp;
+ Bitmap aBmp;
aBmp8.ReleaseAccess( pAcc8 );
@@ -715,9 +715,9 @@ BOOL GIFReader::ProcessGIF()
// naechsten Datenblock lesen
case( NEXT_BLOCK_READING ):
{
- USHORT nLastX = nImageX;
- USHORT nLastY = nImageY;
- ULONG nRet = ReadNextBlock();
+ USHORT nLastX = nImageX;
+ USHORT nLastY = nImageY;
+ ULONG nRet = ReadNextBlock();
// Return: 0:Pending / 1:OK; / 2:OK und letzter Block: / 3:EOI / 4:HardAbort
if( nRet )
@@ -827,10 +827,10 @@ ReadState GIFReader::ReadGIF( Graphic& rGraphic )
BOOL ImportGIF( SvStream & rStm, Graphic& rGraphic )
{
- GIFReader* pGIFReader = (GIFReader*) rGraphic.GetContext();
- USHORT nOldFormat = rStm.GetNumberFormatInt();
- ReadState eReadState;
- BOOL bRet = TRUE;
+ GIFReader* pGIFReader = (GIFReader*) rGraphic.GetContext();
+ USHORT nOldFormat = rStm.GetNumberFormatInt();
+ ReadState eReadState;
+ BOOL bRet = TRUE;
rStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
diff --git a/svtools/source/filter.vcl/ixbm/xbmread.cxx b/svtools/source/filter.vcl/ixbm/xbmread.cxx
index 6d0c34cc5c56..01bb7c4a8c02 100644
--- a/svtools/source/filter.vcl/ixbm/xbmread.cxx
+++ b/svtools/source/filter.vcl/ixbm/xbmread.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,12 +40,12 @@
// -------------
XBMReader::XBMReader( SvStream& rStm ) :
- rIStm ( rStm ),
- pAcc1 ( NULL ),
- nLastPos ( rStm.Tell() ),
- nWidth ( 0 ),
- nHeight ( 0 ),
- bStatus ( TRUE )
+ rIStm ( rStm ),
+ pAcc1 ( NULL ),
+ nLastPos ( rStm.Tell() ),
+ nWidth ( 0 ),
+ nHeight ( 0 ),
+ bStatus ( TRUE )
{
pHexTable = new short[ 256 ];
maUpperName = String::CreateFromAscii( "SVIXBM", 6 );
@@ -92,7 +92,7 @@ void XBMReader::InitTable()
pHexTable['e'] = 14;
pHexTable['f'] = 15;
pHexTable['x'] = 0;
- pHexTable[' '] = -1;
+ pHexTable[' '] = -1;
pHexTable[','] = -1;
pHexTable['}'] = -1;
pHexTable['\n'] = -1;
@@ -105,10 +105,10 @@ void XBMReader::InitTable()
ByteString XBMReader::FindTokenLine( SvStream* pInStm, const char* pTok1,
const char* pTok2, const char* pTok3 )
{
- ByteString aRet;
- long nPos1;
- long nPos2;
- long nPos3;
+ ByteString aRet;
+ long nPos1;
+ long nPos2;
+ long nPos3;
bStatus = FALSE;
@@ -153,9 +153,9 @@ ByteString XBMReader::FindTokenLine( SvStream* pInStm, const char* pTok1,
long XBMReader::ParseDefine( const sal_Char* pDefine )
{
- long nRet = 0;
- char* pTmp = (char*) pDefine;
- unsigned char cTmp;
+ long nRet = 0;
+ char* pTmp = (char*) pDefine;
+ unsigned char cTmp;
// bis zum Ende gehen
pTmp += ( strlen( pDefine ) - 1 );
@@ -202,14 +202,14 @@ long XBMReader::ParseDefine( const sal_Char* pDefine )
BOOL XBMReader::ParseData( SvStream* pInStm, const ByteString& aLastLine, XBMFormat eFormat )
{
- ByteString aLine;
- long nRow = 0;
- long nCol = 0;
- long nBits = ( eFormat == XBM10 ) ? 16 : 8;
- long nBit;
- USHORT nValue;
- USHORT nDigits;
- BOOL bFirstLine = TRUE;
+ ByteString aLine;
+ long nRow = 0;
+ long nCol = 0;
+ long nBits = ( eFormat == XBM10 ) ? 16 : 8;
+ long nBit;
+ USHORT nValue;
+ USHORT nDigits;
+ BOOL bFirstLine = TRUE;
while( nRow < nHeight )
{
@@ -232,16 +232,16 @@ BOOL XBMReader::ParseData( SvStream* pInStm, const ByteString& aLastLine, XBMFor
for( USHORT i = 0; ( i < nCount ) && ( nRow < nHeight ); i++ )
{
- const ByteString aToken( aLine.GetToken( i, ',' ) );
+ const ByteString aToken( aLine.GetToken( i, ',' ) );
const xub_StrLen nLen = aToken.Len();
- BOOL bProcessed = FALSE;
+ BOOL bProcessed = FALSE;
nBit = nDigits = nValue = 0;
for( xub_StrLen n = 0UL; n < nLen; n++ )
{
const unsigned char cChar = aToken.GetChar( n );
- const short nTable = pHexTable[ cChar ];
+ const short nTable = pHexTable[ cChar ];
if( isxdigit( cChar ) || !nTable )
{
@@ -275,8 +275,8 @@ BOOL XBMReader::ParseData( SvStream* pInStm, const ByteString& aLastLine, XBMFor
ReadState XBMReader::ReadXBM( Graphic& rGraphic )
{
- ReadState eReadState;
- BYTE cDummy;
+ ReadState eReadState;
+ BYTE cDummy;
// sehen, ob wir _alles_ lesen koennen
rIStm.Seek( STREAM_SEEK_TO_END );
@@ -286,8 +286,8 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic )
// kehren wir zurueck und warten auf neue Daten
if ( rIStm.GetError() != ERRCODE_IO_PENDING )
{
- ByteString aLine;
- int nValue;
+ ByteString aLine;
+ int nValue;
rIStm.Seek( nLastPos );
bStatus = FALSE;
@@ -375,9 +375,9 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic )
BOOL ImportXBM( SvStream& rStm, Graphic& rGraphic )
{
- XBMReader* pXBMReader = (XBMReader*) rGraphic.GetContext();
- ReadState eReadState;
- BOOL bRet = TRUE;
+ XBMReader* pXBMReader = (XBMReader*) rGraphic.GetContext();
+ ReadState eReadState;
+ BOOL bRet = TRUE;
if( !pXBMReader )
pXBMReader = new XBMReader( rStm );
diff --git a/svtools/source/filter.vcl/ixpm/rgbtable.hxx b/svtools/source/filter.vcl/ixpm/rgbtable.hxx
index f3506a1d0465..a222d9285a0e 100644
--- a/svtools/source/filter.vcl/ixpm/rgbtable.hxx
+++ b/svtools/source/filter.vcl/ixpm/rgbtable.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,664 +35,664 @@ struct XPMRGBTab
};
static XPMRGBTab pRGBTable[] = {
-{ "white", 255, 255, 255 },
-{ "black", 0, 0, 0 },
-{ "snow", 255, 250, 250 },
-{ "GhostWhite", 248, 248, 255 },
-{ "WhiteSmoke", 245, 245, 245 },
-{ "gainsboro", 220, 220, 220 },
-{ "FloralWhite", 255, 250, 240 },
-{ "OldLace", 253, 245, 230 },
-{ "linen", 250, 240, 230 },
-{ "AntiqueWhite", 250, 235, 215 },
-{ "PapayaWhip", 255, 239, 213 },
-{ "BlanchedAlmond", 255, 235, 205 },
-{ "bisque", 255, 228, 196 },
-{ "PeachPuff", 255, 218, 185 },
-{ "NavajoWhite", 255, 222, 173 },
-{ "moccasin", 255, 228, 181 },
-{ "cornsilk", 255, 248, 220 },
-{ "ivory", 255, 255, 240 },
-{ "LemonChiffon", 255, 250, 205 },
-{ "seashell", 255, 245, 238 },
-{ "honeydew", 240, 255, 240 },
-{ "MintCream", 245, 255, 250 },
-{ "azure", 240, 255, 255 },
-{ "AliceBlue", 240, 248, 255 },
-{ "lavender", 230, 230, 250 },
-{ "LavenderBlush", 255, 240, 245 },
-{ "MistyRose", 255, 228, 225 },
-{ "DarkSlateGray", 47, 79, 79 },
-{ "DarkSlateGrey", 47, 79, 79 },
-{ "DimGray", 105, 105, 105 },
-{ "DimGrey", 105, 105, 105 },
-{ "SlateGray", 112, 128, 144 },
-{ "SlateGrey", 112, 128, 144 },
-{ "LightSlateGray", 119, 136, 153 },
-{ "LightSlateGrey", 119, 136, 153 },
-{ "gray", 190, 190, 190 },
-{ "grey", 190, 190, 190 },
-{ "LightGrey", 211, 211, 211 },
-{ "LightGray", 211, 211, 211 },
-{ "MidnightBlue", 25, 25, 112 },
-{ "navy", 0, 0, 128 },
-{ "NavyBlue", 0, 0, 128 },
-{ "CornflowerBlue", 100, 149, 237 },
-{ "DarkSlateBlue", 72, 61, 139 },
-{ "SlateBlue", 106, 90, 205 },
-{ "MediumSlateBlue", 123, 104, 238 },
-{ "LightSlateBlue", 132, 112, 255 },
-{ "MediumBlue", 0, 0, 205 },
-{ "RoyalBlue", 65, 105, 225 },
-{ "blue", 0, 0, 255 },
-{ "DodgerBlue", 30, 144, 255 },
-{ "DeepSkyBlue", 0, 191, 255 },
-{ "SkyBlue", 135, 206, 235 },
-{ "LightSkyBlue", 135, 206, 250 },
-{ "SteelBlue", 70, 130, 180 },
-{ "LightSteelBlue", 176, 196, 222 },
-{ "LightBlue", 173, 216, 230 },
-{ "PowderBlue", 176, 224, 230 },
-{ "PaleTurquoise", 175, 238, 238 },
-{ "DarkTurquoise", 0, 206, 209 },
-{ "MediumTurquoise", 72, 209, 204 },
-{ "turquoise", 64, 224, 208 },
-{ "cyan", 0, 255, 255 },
-{ "LightCyan", 224, 255, 255 },
-{ "CadetBlue", 95, 158, 160 },
-{ "MediumAquamarine", 102, 205, 170 },
-{ "aquamarine", 127, 255, 212 },
-{ "DarkGreen", 0, 100, 0 },
-{ "DarkOliveGreen", 85, 107, 47 },
-{ "DarkSeaGreen", 143, 188, 143 },
-{ "SeaGreen", 46, 139, 87 },
-{ "MediumSeaGreen", 60, 179, 113 },
-{ "LightSeaGreen", 32, 178, 170 },
-{ "PaleGreen", 152, 251, 152 },
-{ "SpringGreen", 0, 255, 127 },
-{ "LawnGreen", 124, 252, 0 },
-{ "green", 0, 255, 0 },
-{ "chartreuse", 127, 255, 0 },
-{ "MediumSpringGreen", 0, 250, 154 },
-{ "GreenYellow", 173, 255 , 47 },
-{ "LimeGreen", 50, 205, 50 },
-{ "YellowGreen", 154, 205, 50 },
-{ "ForestGreen", 34, 139, 34 },
-{ "OliveDrab", 107, 142, 35 },
-{ "DarkKhaki", 189, 183, 107 },
-{ "khaki", 240, 230, 140 },
-{ "PaleGoldenrod", 238, 232, 170 },
-{ "LightGoldenrodYellow", 250, 250, 210 },
-{ "LightYellow", 255, 255, 224 },
-{ "yellow", 255, 255, 0 },
-{ "gold", 255, 215, 0 },
-{ "LightGoldenrod", 238, 221, 130 },
-{ "goldenrod", 218, 165, 32 },
-{ "DarkGoldenrod", 184, 134, 11 },
-{ "RosyBrown", 188, 143, 143 },
-{ "IndianRed", 205, 92, 92 },
-{ "SaddleBrown", 139, 69, 19 },
-{ "sienna", 160, 82, 45 },
-{ "peru", 205, 133, 63 },
-{ "burlywood", 222, 184, 135 },
-{ "beige", 245, 245, 220 },
-{ "wheat", 245, 222, 179 },
-{ "SandyBrown", 244, 164, 96 },
-{ "tan", 210, 180, 140 },
-{ "chocolate", 210, 105, 30 },
-{ "firebrick", 178, 34, 34 },
-{ "brown", 165, 42, 42 },
-{ "DarkSalmon", 233, 150, 122 },
-{ "salmon", 250, 128, 114 },
-{ "LightSalmon", 255, 160, 122 },
-{ "orange", 255, 165, 0 },
-{ "DarkOrange", 255, 140, 0 },
-{ "coral", 255, 127, 80 },
-{ "LightCoral", 240, 128, 128 },
-{ "tomato", 255, 99, 71 },
-{ "OrangeRed", 255, 69, 0 },
-{ "red", 255, 0, 0 },
-{ "HotPink", 255, 105, 180 },
-{ "DeepPink", 255, 20, 147 },
-{ "pink", 255, 192, 203 },
-{ "LightPink", 255, 182, 193 },
-{ "PaleVioletRed", 219, 112, 147 },
-{ "maroon", 176, 48, 96 },
-{ "MediumVioletRed", 199, 21, 133 },
-{ "VioletRed", 208, 32, 144 },
-{ "magenta", 255, 0, 255 },
-{ "violet", 238, 130, 238 },
-{ "plum", 221, 160, 221 },
-{ "orchid", 218, 112, 214 },
-{ "MediumOrchid", 186, 85, 211 },
-{ "DarkOrchid", 153, 50, 204 },
-{ "DarkViolet", 148, 0, 211 },
-{ "BlueViolet", 138, 43, 226 },
-{ "purple", 160, 32, 240 },
-{ "MediumPurple", 147, 112, 219 },
-{ "thistle", 216, 191, 216 },
-{ "snow1", 255, 250, 250 },
-{ "snow2", 238, 233, 233 },
-{ "snow3", 205, 201, 201 },
-{ "snow4", 139, 137, 137 },
-{ "seashell1", 255, 245, 238 },
-{ "seashell2", 238, 229, 222 },
-{ "seashell3", 205, 197, 191 },
-{ "seashell4", 139, 134, 130 },
-{ "AntiqueWhite1", 255, 239, 219 },
-{ "AntiqueWhite2", 238, 223, 204 },
-{ "AntiqueWhite3", 205, 192, 176 },
-{ "AntiqueWhite4", 139, 131, 120 },
-{ "bisque1", 255, 228, 196 },
-{ "bisque2", 238, 213, 183 },
-{ "bisque3", 205, 183, 158 },
-{ "bisque4", 139, 125, 107 },
-{ "PeachPuff1", 255, 218, 185 },
-{ "PeachPuff2", 238, 203, 173 },
-{ "PeachPuff3", 205, 175, 149 },
-{ "PeachPuff4", 139, 119, 101 },
-{ "NavajoWhite1", 255, 222, 173 },
-{ "NavajoWhite2", 238, 207, 161 },
-{ "NavajoWhite3", 205, 179, 139 },
-{ "NavajoWhite4", 139, 121, 94 },
-{ "LemonChiffon1", 255, 250, 205 },
-{ "LemonChiffon2", 238, 233, 191 },
-{ "LemonChiffon3", 205, 201, 165 },
-{ "LemonChiffon4", 139, 137, 112 },
-{ "cornsilk1", 255, 248, 220 },
-{ "cornsilk2", 238, 232, 205 },
-{ "cornsilk3", 205, 200, 177 },
-{ "cornsilk4", 139, 136, 120 },
-{ "ivory1", 255, 255, 240 },
-{ "ivory2", 238, 238, 224 },
-{ "ivory3", 205, 205, 193 },
-{ "ivory4", 139, 139, 131 },
-{ "honeydew1", 240, 255, 240 },
-{ "honeydew2", 224, 238, 224 },
-{ "honeydew3", 193, 205, 193 },
-{ "honeydew4", 131, 139, 131 },
-{ "LavenderBlush1", 255, 240, 245 },
-{ "LavenderBlush2", 238, 224, 229 },
-{ "LavenderBlush3", 205, 193, 197 },
-{ "LavenderBlush4", 139, 131, 134 },
-{ "MistyRose1", 255, 228, 225 },
-{ "MistyRose2", 238, 213, 210 },
-{ "MistyRose3", 205, 183, 181 },
-{ "MistyRose4", 139, 125, 123 },
-{ "azure1", 240, 255, 255 },
-{ "azure2", 224, 238, 238 },
-{ "azure3", 193, 205, 205 },
-{ "azure4", 131, 139, 139 },
-{ "SlateBlue1", 131, 111, 255 },
-{ "SlateBlue2", 122, 103, 238 },
-{ "SlateBlue3", 105, 89, 205 },
-{ "SlateBlue4", 71, 60, 139 },
-{ "RoyalBlue1", 72, 118, 255 },
-{ "RoyalBlue2", 67, 110, 238 },
-{ "RoyalBlue3", 58, 95, 205 },
-{ "RoyalBlue4", 39, 64, 139 },
-{ "blue1", 0, 0, 255 },
-{ "blue2", 0, 0, 238 },
-{ "blue3", 0, 0, 205 },
-{ "blue4", 0, 0, 139 },
-{ "DodgerBlue1", 30, 144, 255 },
-{ "DodgerBlue2", 28, 134, 238 },
-{ "DodgerBlue3", 24, 116, 205 },
-{ "DodgerBlue4", 16, 78, 139 },
-{ "SteelBlue1", 99, 184, 255 },
-{ "SteelBlue2", 92, 172, 238 },
-{ "SteelBlue3", 79, 148, 205 },
-{ "SteelBlue4", 54, 100, 139 },
-{ "DeepSkyBlue1", 0, 191, 255 },
-{ "DeepSkyBlue2", 0, 178, 238 },
-{ "DeepSkyBlue3", 0, 154, 205 },
-{ "DeepSkyBlue4", 0, 104, 139 },
-{ "SkyBlue1", 135, 206, 255 },
-{ "SkyBlue2", 126, 192, 238 },
-{ "SkyBlue3", 108, 166, 205 },
-{ "SkyBlue4", 74, 112, 139 },
-{ "LightSkyBlue1", 176, 226, 255 },
-{ "LightSkyBlue2", 164, 211, 238 },
-{ "LightSkyBlue3", 141, 182, 205 },
-{ "LightSkyBlue4", 96, 123, 139 },
-{ "SlateGray1", 198, 226, 255 },
-{ "SlateGray2", 185, 211, 238 },
-{ "SlateGray3", 159, 182, 205 },
-{ "SlateGray4", 108, 123, 139 },
-{ "LightSteelBlue1", 202, 225, 255 },
-{ "LightSteelBlue2", 188, 210, 238 },
-{ "LightSteelBlue3", 162, 181, 205 },
-{ "LightSteelBlue4", 110, 123, 139 },
-{ "LightBlue1", 191, 239, 255 },
-{ "LightBlue2", 178, 223, 238 },
-{ "LightBlue3", 154, 192, 205 },
-{ "LightBlue4", 104, 131, 139 },
-{ "LightCyan1", 224, 255, 255 },
-{ "LightCyan2", 209, 238, 238 },
-{ "LightCyan3", 180, 205, 205 },
-{ "LightCyan4", 122, 139, 139 },
-{ "PaleTurquoise1", 187, 255, 255 },
-{ "PaleTurquoise2", 174, 238, 238 },
-{ "PaleTurquoise3", 150, 205, 205 },
-{ "PaleTurquoise4", 102, 139, 139 },
-{ "CadetBlue1", 152, 245, 255 },
-{ "CadetBlue2", 142, 229, 238 },
-{ "CadetBlue3", 122, 197, 205 },
-{ "CadetBlue4", 83, 134, 139 },
-{ "turquoise1", 0, 245, 255 },
-{ "turquoise2", 0, 229, 238 },
-{ "turquoise3", 0, 197, 205 },
-{ "turquoise4", 0, 134, 139 },
-{ "cyan1", 0, 255, 255 },
-{ "cyan2", 0, 238, 238 },
-{ "cyan3", 0, 205, 205 },
-{ "cyan4", 0, 139, 139 },
-{ "DarkSlateGray1", 151, 255, 255 },
-{ "DarkSlateGray2", 141, 238, 238 },
-{ "DarkSlateGray3", 121, 205, 205 },
-{ "DarkSlateGray4", 82, 139, 139 },
-{ "aquamarine1", 127, 255, 212 },
-{ "aquamarine2", 118, 238, 198 },
-{ "aquamarine3", 102, 205, 170 },
-{ "aquamarine4", 69, 139, 116 },
-{ "DarkSeaGreen1", 193, 255, 193 },
-{ "DarkSeaGreen2", 180, 238, 180 },
-{ "DarkSeaGreen3", 155, 205, 155 },
-{ "DarkSeaGreen4", 105, 139, 105 },
-{ "SeaGreen1", 84, 255, 159 },
-{ "SeaGreen2", 78, 238, 148 },
-{ "SeaGreen3", 67, 205, 128 },
-{ "SeaGreen4", 46, 139, 87 },
-{ "PaleGreen1", 154, 255, 154 },
-{ "PaleGreen2", 144, 238, 144 },
-{ "PaleGreen3", 124, 205, 124 },
-{ "PaleGreen4", 84, 139, 84 },
-{ "SpringGreen1", 0, 255, 127 },
-{ "SpringGreen2", 0, 238, 118 },
-{ "SpringGreen3", 0, 205, 102 },
-{ "SpringGreen4", 0, 139, 69 },
-{ "green1", 0, 255, 0 },
-{ "green2", 0, 238, 0 },
-{ "green3", 0, 205, 0 },
-{ "green4", 0, 139, 0 },
-{ "chartreuse1", 127, 255, 0 },
-{ "chartreuse2", 118, 238, 0 },
-{ "chartreuse3", 102, 205, 0 },
-{ "chartreuse4", 69, 139, 0 },
-{ "OliveDrab1", 192, 255, 62 },
-{ "OliveDrab2", 179, 238, 58 },
-{ "OliveDrab3", 154, 205, 50 },
-{ "OliveDrab4", 105, 139, 34 },
-{ "DarkOliveGreen1", 202, 255, 112 },
-{ "DarkOliveGreen2", 188, 238, 104 },
-{ "DarkOliveGreen3", 162, 205, 90 },
-{ "DarkOliveGreen4", 110, 139, 61 },
-{ "khaki1", 255, 246, 143 },
-{ "khaki2", 238, 230, 133 },
-{ "khaki3", 205, 198, 115 },
-{ "khaki4", 139, 134, 78 },
-{ "LightGoldenrod1", 255, 236, 139 },
-{ "LightGoldenrod2", 238, 220, 130 },
-{ "LightGoldenrod3", 205, 190, 112 },
-{ "LightGoldenrod4", 139, 129, 76 },
-{ "LightYellow1", 255, 255, 224 },
-{ "LightYellow2", 238, 238, 209 },
-{ "LightYellow3", 205, 205, 180 },
-{ "LightYellow4", 139, 139, 122 },
-{ "yellow1", 255, 255, 0 },
-{ "yellow2", 238, 238, 0 },
-{ "yellow3", 205, 205, 0 },
-{ "yellow4", 139, 139, 0 },
-{ "gold1", 255, 215, 0 },
-{ "gold2", 238, 201, 0 },
-{ "gold3", 205, 173, 0 },
-{ "gold4", 139, 117, 0 },
-{ "goldenrod1", 255, 193, 37 },
-{ "goldenrod2", 238, 180, 34 },
-{ "goldenrod3", 205, 155, 29 },
-{ "goldenrod4", 139, 105, 20 },
-{ "DarkGoldenrod1", 255, 185, 15 },
-{ "DarkGoldenrod2", 238, 173, 14 },
-{ "DarkGoldenrod3", 205, 149, 12 },
-{ "DarkGoldenrod4", 139, 101, 8 },
-{ "RosyBrown1", 255, 193, 193 },
-{ "RosyBrown2", 238, 180, 180 },
-{ "RosyBrown3", 205, 155, 155 },
-{ "RosyBrown4", 139, 105, 105 },
-{ "IndianRed1", 255, 106, 106 },
-{ "IndianRed2", 238, 99, 99 },
-{ "IndianRed3", 205, 85, 85 },
-{ "IndianRed4", 139, 58, 58 },
-{ "sienna1", 255, 130, 71 },
-{ "sienna2", 238, 121, 66 },
-{ "sienna3", 205, 104, 57 },
-{ "sienna4", 139, 71, 38 },
-{ "burlywood1", 255, 211, 155 },
-{ "burlywood2", 238, 197, 145 },
-{ "burlywood3", 205, 170, 125 },
-{ "burlywood4", 139, 115, 85 },
-{ "wheat1", 255, 231, 186 },
-{ "wheat2", 238, 216, 174 },
-{ "wheat3", 205, 186, 150 },
-{ "wheat4", 139, 126, 102 },
-{ "tan1", 255, 165, 79 },
-{ "tan2", 238, 154, 73 },
-{ "tan3", 205, 133, 63 },
-{ "tan4", 139 , 90, 43 },
-{ "chocolate1", 255, 127, 36 },
-{ "chocolate2", 238, 118, 33 },
-{ "chocolate3", 205, 102, 29 },
-{ "chocolate4", 139, 69, 19 },
-{ "firebrick1", 255, 48, 48 },
-{ "firebrick2", 238, 44, 44 },
-{ "firebrick3", 205, 38, 38 },
-{ "firebrick4", 139, 26, 26 },
-{ "brown1", 255, 64, 64 },
-{ "brown2", 238, 59, 59 },
-{ "brown3", 205, 51, 51 },
-{ "brown4", 139, 35, 35 },
-{ "salmon1", 255, 140, 105 },
-{ "salmon2", 238, 130, 98 },
-{ "salmon3", 205, 112, 84 },
-{ "salmon4", 139, 76, 57 },
-{ "LightSalmon1", 255, 160, 122 },
-{ "LightSalmon2", 238, 149, 114 },
-{ "LightSalmon3", 205, 129, 98 },
-{ "LightSalmon4", 139, 87, 66 },
-{ "orange1", 255, 165, 0 },
-{ "orange2", 238, 154, 0 },
-{ "orange3", 205, 133, 0 },
-{ "orange4", 139 , 90, 0 },
-{ "DarkOrange1", 255, 127, 0 },
-{ "DarkOrange2", 238, 118, 0 },
-{ "DarkOrange3", 205, 102, 0 },
-{ "DarkOrange4", 139 , 69, 0 },
-{ "coral1", 255, 114, 86 },
-{ "coral2", 238, 106, 80 },
-{ "coral3", 205, 91, 69 },
-{ "coral4", 139, 62, 47 },
-{ "tomato1", 255, 99, 71 },
-{ "tomato2", 238, 92, 66 },
-{ "tomato3", 205, 79, 57 },
-{ "tomato4", 139, 54, 38 },
-{ "OrangeRed1", 255, 69, 0 },
-{ "OrangeRed2", 238, 64, 0 },
-{ "OrangeRed3", 205, 55, 0 },
-{ "OrangeRed4", 139, 37, 0 },
-{ "red1", 255, 0, 0 },
-{ "red2", 238, 0, 0 },
-{ "red3", 205, 0, 0 },
-{ "red4", 139, 0, 0 },
-{ "DeepPink1", 255, 20, 147 },
-{ "DeepPink2", 238, 18, 137 },
-{ "DeepPink3", 205, 16, 118 },
-{ "DeepPink4", 139, 10, 80 },
-{ "HotPink1", 255, 110, 180 },
-{ "HotPink2", 238, 106, 167 },
-{ "HotPink3", 205, 96, 144 },
-{ "HotPink4", 139, 58, 98 },
-{ "pink1", 255, 181, 197 },
-{ "pink2", 238, 169, 184 },
-{ "pink3", 205, 145, 158 },
-{ "pink4", 139, 99, 108 },
-{ "LightPink1", 255, 174, 185 },
-{ "LightPink2", 238, 162, 173 },
-{ "LightPink3", 205, 140, 149 },
-{ "LightPink4", 139, 95, 101 },
-{ "PaleVioletRed1", 255, 130, 171 },
-{ "PaleVioletRed2", 238, 121, 159 },
-{ "PaleVioletRed3", 205, 104, 137 },
-{ "PaleVioletRed4", 139, 71, 93 },
-{ "maroon1", 255, 52, 179 },
-{ "maroon2", 238, 48, 167 },
-{ "maroon3", 205, 41, 144 },
-{ "maroon4", 139, 28, 98 },
-{ "VioletRed1", 255, 62, 150 },
-{ "VioletRed2", 238, 58, 140 },
-{ "VioletRed3", 205, 50, 120 },
-{ "VioletRed4", 139, 34, 82 },
-{ "magenta1", 255, 0, 255 },
-{ "magenta2", 238, 0, 238 },
-{ "magenta3", 205, 0, 205 },
-{ "magenta4", 139, 0, 139 },
-{ "orchid1", 255, 131, 250 },
-{ "orchid2", 238, 122, 233 },
-{ "orchid3", 205, 105, 201 },
-{ "orchid4", 139, 71, 137 },
-{ "plum1", 255, 187, 255 },
-{ "plum2", 238, 174, 238 },
-{ "plum3", 205, 150, 205 },
-{ "plum4", 139, 102, 139 },
-{ "MediumOrchid1", 224, 102, 255 },
-{ "MediumOrchid2", 209, 95, 238 },
-{ "MediumOrchid3", 180, 82, 205 },
-{ "MediumOrchid4", 122, 55, 139 },
-{ "DarkOrchid1", 191, 62, 255 },
-{ "DarkOrchid2", 178, 58, 238 },
-{ "DarkOrchid3", 154, 50, 205 },
-{ "DarkOrchid4", 104, 34, 139 },
-{ "purple1", 155, 48, 255 },
-{ "purple2", 145, 44, 238 },
-{ "purple3", 125, 38, 205 },
-{ "purple4", 85, 26, 139 },
-{ "MediumPurple1", 171, 130, 255 },
-{ "MediumPurple2", 159, 121, 238 },
-{ "MediumPurple3", 137, 104, 205 },
-{ "MediumPurple4", 93, 71, 139 },
-{ "thistle1", 255, 225, 255 },
-{ "thistle2", 238, 210, 238 },
-{ "thistle3", 205, 181, 205 },
-{ "thistle4", 139, 123, 139 },
-{ "gray0", 0, 0, 0 },
-{ "grey0", 0, 0, 0 },
-{ "gray1", 3, 3, 3 },
-{ "grey1", 3, 3, 3 },
-{ "gray2", 5, 5, 5 },
-{ "grey2", 5, 5, 5 },
-{ "gray3", 8, 8, 8 },
-{ "grey3", 8, 8, 8 },
-{ "gray4", 10, 10, 10 },
-{ "grey4", 10, 10, 10 },
-{ "gray5", 13, 13, 13 },
-{ "grey5", 13, 13, 13 },
-{ "gray6", 15, 15, 15 },
-{ "grey6", 15, 15, 15 },
-{ "gray7", 18, 18, 18 },
-{ "grey7", 18, 18, 18 },
-{ "gray8", 20, 20, 20 },
-{ "grey8", 20, 20, 20 },
-{ "gray9", 23, 23, 23 },
-{ "grey9", 23, 23, 23 },
-{ "gray10", 26, 26, 26 },
-{ "grey10", 26, 26, 26 },
-{ "gray11", 28, 28, 28 },
-{ "grey11", 28, 28, 28 },
-{ "gray12", 31, 31, 31 },
-{ "grey12", 31, 31, 31 },
-{ "gray13", 33, 33, 33 },
-{ "grey13", 33, 33, 33 },
-{ "gray14", 36, 36, 36 },
-{ "grey14", 36, 36, 36 },
-{ "gray15", 38, 38, 38 },
-{ "grey15", 38, 38, 38 },
-{ "gray16", 41, 41, 41 },
-{ "grey16", 41, 41, 41 },
-{ "gray17", 43, 43, 43 },
-{ "grey17", 43, 43, 43 },
-{ "gray18", 46, 46, 46 },
-{ "grey18", 46, 46, 46 },
-{ "gray19", 48, 48, 48 },
-{ "grey19", 48, 48, 48 },
-{ "gray20", 51, 51, 51 },
-{ "grey20", 51, 51, 51 },
-{ "gray21", 54, 54, 54 },
-{ "grey21", 54, 54, 54 },
-{ "gray22", 56, 56, 56 },
-{ "grey22", 56, 56, 56 },
-{ "gray23", 59, 59, 59 },
-{ "grey23", 59, 59, 59 },
-{ "gray24", 61, 61, 61 },
-{ "grey24", 61, 61, 61 },
-{ "gray25", 64, 64, 64 },
-{ "grey25", 64, 64, 64 },
-{ "gray26", 66, 66, 66 },
-{ "grey26", 66, 66, 66 },
-{ "gray27", 69, 69, 69 },
-{ "grey27", 69, 69, 69 },
-{ "gray28", 71, 71, 71 },
-{ "grey28", 71, 71, 71 },
-{ "gray29", 74, 74, 74 },
-{ "grey29", 74, 74, 74 },
-{ "gray30", 77, 77, 77 },
-{ "grey30", 77, 77, 77 },
-{ "gray31", 79, 79, 79 },
-{ "grey31", 79, 79, 79 },
-{ "gray32", 82, 82, 82 },
-{ "grey32", 82, 82, 82 },
-{ "gray33", 84, 84, 84 },
-{ "grey33", 84, 84, 84 },
-{ "gray34", 87, 87, 87 },
-{ "grey34", 87, 87, 87 },
-{ "gray35", 89, 89, 89 },
-{ "grey35", 89, 89, 89 },
-{ "gray36", 92, 92, 92 },
-{ "grey36", 92, 92, 92 },
-{ "gray37", 94, 94, 94 },
-{ "grey37", 94, 94, 94 },
-{ "gray38", 97, 97, 97 },
-{ "grey38", 97, 97, 97 },
-{ "gray39", 99, 99, 99 },
-{ "grey39", 99, 99, 99 },
-{ "gray40", 102, 102, 102 },
-{ "grey40", 102, 102, 102 },
-{ "gray41", 105, 105, 105 },
-{ "grey41", 105, 105, 105 },
-{ "gray42", 107, 107, 107 },
-{ "grey42", 107, 107, 107 },
-{ "gray43", 110, 110, 110 },
-{ "grey43", 110, 110, 110 },
-{ "gray44", 112, 112, 112 },
-{ "grey44", 112, 112, 112 },
-{ "gray45", 115, 115, 115 },
-{ "grey45", 115, 115, 115 },
-{ "gray46", 117, 117, 117 },
-{ "grey46", 117, 117, 117 },
-{ "gray47", 120, 120, 120 },
-{ "grey47", 120, 120, 120 },
-{ "gray48", 122, 122, 122 },
-{ "grey48", 122, 122, 122 },
-{ "gray49", 125, 125, 125 },
-{ "grey49", 125, 125, 125 },
-{ "gray50", 127, 127, 127 },
-{ "grey50", 127, 127, 127 },
-{ "gray51", 130, 130, 130 },
-{ "grey51", 130, 130, 130 },
-{ "gray52", 133, 133, 133 },
-{ "grey52", 133, 133, 133 },
-{ "gray53", 135, 135, 135 },
-{ "grey53", 135, 135, 135 },
-{ "gray54", 138, 138, 138 },
-{ "grey54", 138, 138, 138 },
-{ "gray55", 140, 140, 140 },
-{ "grey55", 140, 140, 140 },
-{ "gray56", 143, 143, 143 },
-{ "grey56", 143, 143, 143 },
-{ "gray57", 145, 145, 145 },
-{ "grey57", 145, 145, 145 },
-{ "gray58", 148, 148, 148 },
-{ "grey58", 148, 148, 148 },
-{ "gray59", 150, 150, 150 },
-{ "grey59", 150, 150, 150 },
-{ "gray60", 153, 153, 153 },
-{ "grey60", 153, 153, 153 },
-{ "gray61", 156, 156, 156 },
-{ "grey61", 156, 156, 156 },
-{ "gray62", 158, 158, 158 },
-{ "grey62", 158, 158, 158 },
-{ "gray63", 161, 161, 161 },
-{ "grey63", 161, 161, 161 },
-{ "gray64", 163, 163, 163 },
-{ "grey64", 163, 163, 163 },
-{ "gray65", 166, 166, 166 },
-{ "grey65", 166, 166, 166 },
-{ "gray66", 168, 168, 168 },
-{ "grey66", 168, 168, 168 },
-{ "gray67", 171, 171, 171 },
-{ "grey67", 171, 171, 171 },
-{ "gray68", 173, 173, 173 },
-{ "grey68", 173, 173, 173 },
-{ "gray69", 176, 176, 176 },
-{ "grey69", 176, 176, 176 },
-{ "gray70", 179, 179, 179 },
-{ "grey70", 179, 179, 179 },
-{ "gray71", 181, 181, 181 },
-{ "grey71", 181, 181, 181 },
-{ "gray72", 184, 184, 184 },
-{ "grey72", 184, 184, 184 },
-{ "gray73", 186, 186, 186 },
-{ "grey73", 186, 186, 186 },
-{ "gray74", 189, 189, 189 },
-{ "grey74", 189, 189, 189 },
-{ "gray75", 191, 191, 191 },
-{ "grey75", 191, 191, 191 },
-{ "gray76", 194, 194, 194 },
-{ "grey76", 194, 194, 194 },
-{ "gray77", 196, 196, 196 },
-{ "grey77", 196, 196, 196 },
-{ "gray78", 199, 199, 199 },
-{ "grey78", 199, 199, 199 },
-{ "gray79", 201, 201, 201 },
-{ "grey79", 201, 201, 201 },
-{ "gray80", 204, 204, 204 },
-{ "grey80", 204, 204, 204 },
-{ "gray81", 207, 207, 207 },
-{ "grey81", 207, 207, 207 },
-{ "gray82", 209, 209, 209 },
-{ "grey82", 209, 209, 209 },
-{ "gray83", 212, 212, 212 },
-{ "grey83", 212, 212, 212 },
-{ "gray84", 214, 214, 214 },
-{ "grey84", 214, 214, 214 },
-{ "gray85", 217, 217, 217 },
-{ "grey85", 217, 217, 217 },
-{ "gray86", 219, 219, 219 },
-{ "grey86", 219, 219, 219 },
-{ "gray87", 222, 222, 222 },
-{ "grey87", 222, 222, 222 },
-{ "gray88", 224, 224, 224 },
-{ "grey88", 224, 224, 224 },
-{ "gray89", 227, 227, 227 },
-{ "grey89", 227, 227, 227 },
-{ "gray90", 229, 229, 229 },
-{ "grey90", 229, 229, 229 },
-{ "gray91", 232, 232, 232 },
-{ "grey91", 232, 232, 232 },
-{ "gray92", 235, 235, 235 },
-{ "grey92", 235, 235, 235 },
-{ "gray93", 237, 237, 237 },
-{ "grey93", 237, 237, 237 },
-{ "gray94", 240, 240, 240 },
-{ "grey94", 240, 240, 240 },
-{ "gray95", 242, 242, 242 },
-{ "grey95", 242, 242, 242 },
-{ "gray96", 245, 245, 245 },
-{ "grey96", 245, 245, 245 },
-{ "gray97", 247, 247, 247 },
-{ "grey97", 247, 247, 247 },
-{ "gray98", 250, 250, 250 },
-{ "grey98", 250, 250, 250 },
-{ "gray99", 252, 252, 252 },
-{ "grey99", 252, 252, 252 },
-{ "gray100", 255, 255, 255 },
-{ "grey100", 255, 255, 255 },
-{ "DarkGrey", 169, 169, 169 },
-{ "DarkGray", 169, 169, 169 },
-{ "DarkBlue", 0, 0, 139 },
-{ "DarkCyan", 0, 139, 139 },
-{ "DarkMagenta", 139, 0, 139 },
-{ "DarkRed", 139, 0, 0 },
-{ "LightGreen", 144, 238, 144 },
-{ NULL, 0 , 0, 0}
+{ "white", 255, 255, 255 },
+{ "black", 0, 0, 0 },
+{ "snow", 255, 250, 250 },
+{ "GhostWhite", 248, 248, 255 },
+{ "WhiteSmoke", 245, 245, 245 },
+{ "gainsboro", 220, 220, 220 },
+{ "FloralWhite", 255, 250, 240 },
+{ "OldLace", 253, 245, 230 },
+{ "linen", 250, 240, 230 },
+{ "AntiqueWhite", 250, 235, 215 },
+{ "PapayaWhip", 255, 239, 213 },
+{ "BlanchedAlmond", 255, 235, 205 },
+{ "bisque", 255, 228, 196 },
+{ "PeachPuff", 255, 218, 185 },
+{ "NavajoWhite", 255, 222, 173 },
+{ "moccasin", 255, 228, 181 },
+{ "cornsilk", 255, 248, 220 },
+{ "ivory", 255, 255, 240 },
+{ "LemonChiffon", 255, 250, 205 },
+{ "seashell", 255, 245, 238 },
+{ "honeydew", 240, 255, 240 },
+{ "MintCream", 245, 255, 250 },
+{ "azure", 240, 255, 255 },
+{ "AliceBlue", 240, 248, 255 },
+{ "lavender", 230, 230, 250 },
+{ "LavenderBlush", 255, 240, 245 },
+{ "MistyRose", 255, 228, 225 },
+{ "DarkSlateGray", 47, 79, 79 },
+{ "DarkSlateGrey", 47, 79, 79 },
+{ "DimGray", 105, 105, 105 },
+{ "DimGrey", 105, 105, 105 },
+{ "SlateGray", 112, 128, 144 },
+{ "SlateGrey", 112, 128, 144 },
+{ "LightSlateGray", 119, 136, 153 },
+{ "LightSlateGrey", 119, 136, 153 },
+{ "gray", 190, 190, 190 },
+{ "grey", 190, 190, 190 },
+{ "LightGrey", 211, 211, 211 },
+{ "LightGray", 211, 211, 211 },
+{ "MidnightBlue", 25, 25, 112 },
+{ "navy", 0, 0, 128 },
+{ "NavyBlue", 0, 0, 128 },
+{ "CornflowerBlue", 100, 149, 237 },
+{ "DarkSlateBlue", 72, 61, 139 },
+{ "SlateBlue", 106, 90, 205 },
+{ "MediumSlateBlue", 123, 104, 238 },
+{ "LightSlateBlue", 132, 112, 255 },
+{ "MediumBlue", 0, 0, 205 },
+{ "RoyalBlue", 65, 105, 225 },
+{ "blue", 0, 0, 255 },
+{ "DodgerBlue", 30, 144, 255 },
+{ "DeepSkyBlue", 0, 191, 255 },
+{ "SkyBlue", 135, 206, 235 },
+{ "LightSkyBlue", 135, 206, 250 },
+{ "SteelBlue", 70, 130, 180 },
+{ "LightSteelBlue", 176, 196, 222 },
+{ "LightBlue", 173, 216, 230 },
+{ "PowderBlue", 176, 224, 230 },
+{ "PaleTurquoise", 175, 238, 238 },
+{ "DarkTurquoise", 0, 206, 209 },
+{ "MediumTurquoise", 72, 209, 204 },
+{ "turquoise", 64, 224, 208 },
+{ "cyan", 0, 255, 255 },
+{ "LightCyan", 224, 255, 255 },
+{ "CadetBlue", 95, 158, 160 },
+{ "MediumAquamarine", 102, 205, 170 },
+{ "aquamarine", 127, 255, 212 },
+{ "DarkGreen", 0, 100, 0 },
+{ "DarkOliveGreen", 85, 107, 47 },
+{ "DarkSeaGreen", 143, 188, 143 },
+{ "SeaGreen", 46, 139, 87 },
+{ "MediumSeaGreen", 60, 179, 113 },
+{ "LightSeaGreen", 32, 178, 170 },
+{ "PaleGreen", 152, 251, 152 },
+{ "SpringGreen", 0, 255, 127 },
+{ "LawnGreen", 124, 252, 0 },
+{ "green", 0, 255, 0 },
+{ "chartreuse", 127, 255, 0 },
+{ "MediumSpringGreen", 0, 250, 154 },
+{ "GreenYellow", 173, 255 , 47 },
+{ "LimeGreen", 50, 205, 50 },
+{ "YellowGreen", 154, 205, 50 },
+{ "ForestGreen", 34, 139, 34 },
+{ "OliveDrab", 107, 142, 35 },
+{ "DarkKhaki", 189, 183, 107 },
+{ "khaki", 240, 230, 140 },
+{ "PaleGoldenrod", 238, 232, 170 },
+{ "LightGoldenrodYellow", 250, 250, 210 },
+{ "LightYellow", 255, 255, 224 },
+{ "yellow", 255, 255, 0 },
+{ "gold", 255, 215, 0 },
+{ "LightGoldenrod", 238, 221, 130 },
+{ "goldenrod", 218, 165, 32 },
+{ "DarkGoldenrod", 184, 134, 11 },
+{ "RosyBrown", 188, 143, 143 },
+{ "IndianRed", 205, 92, 92 },
+{ "SaddleBrown", 139, 69, 19 },
+{ "sienna", 160, 82, 45 },
+{ "peru", 205, 133, 63 },
+{ "burlywood", 222, 184, 135 },
+{ "beige", 245, 245, 220 },
+{ "wheat", 245, 222, 179 },
+{ "SandyBrown", 244, 164, 96 },
+{ "tan", 210, 180, 140 },
+{ "chocolate", 210, 105, 30 },
+{ "firebrick", 178, 34, 34 },
+{ "brown", 165, 42, 42 },
+{ "DarkSalmon", 233, 150, 122 },
+{ "salmon", 250, 128, 114 },
+{ "LightSalmon", 255, 160, 122 },
+{ "orange", 255, 165, 0 },
+{ "DarkOrange", 255, 140, 0 },
+{ "coral", 255, 127, 80 },
+{ "LightCoral", 240, 128, 128 },
+{ "tomato", 255, 99, 71 },
+{ "OrangeRed", 255, 69, 0 },
+{ "red", 255, 0, 0 },
+{ "HotPink", 255, 105, 180 },
+{ "DeepPink", 255, 20, 147 },
+{ "pink", 255, 192, 203 },
+{ "LightPink", 255, 182, 193 },
+{ "PaleVioletRed", 219, 112, 147 },
+{ "maroon", 176, 48, 96 },
+{ "MediumVioletRed", 199, 21, 133 },
+{ "VioletRed", 208, 32, 144 },
+{ "magenta", 255, 0, 255 },
+{ "violet", 238, 130, 238 },
+{ "plum", 221, 160, 221 },
+{ "orchid", 218, 112, 214 },
+{ "MediumOrchid", 186, 85, 211 },
+{ "DarkOrchid", 153, 50, 204 },
+{ "DarkViolet", 148, 0, 211 },
+{ "BlueViolet", 138, 43, 226 },
+{ "purple", 160, 32, 240 },
+{ "MediumPurple", 147, 112, 219 },
+{ "thistle", 216, 191, 216 },
+{ "snow1", 255, 250, 250 },
+{ "snow2", 238, 233, 233 },
+{ "snow3", 205, 201, 201 },
+{ "snow4", 139, 137, 137 },
+{ "seashell1", 255, 245, 238 },
+{ "seashell2", 238, 229, 222 },
+{ "seashell3", 205, 197, 191 },
+{ "seashell4", 139, 134, 130 },
+{ "AntiqueWhite1", 255, 239, 219 },
+{ "AntiqueWhite2", 238, 223, 204 },
+{ "AntiqueWhite3", 205, 192, 176 },
+{ "AntiqueWhite4", 139, 131, 120 },
+{ "bisque1", 255, 228, 196 },
+{ "bisque2", 238, 213, 183 },
+{ "bisque3", 205, 183, 158 },
+{ "bisque4", 139, 125, 107 },
+{ "PeachPuff1", 255, 218, 185 },
+{ "PeachPuff2", 238, 203, 173 },
+{ "PeachPuff3", 205, 175, 149 },
+{ "PeachPuff4", 139, 119, 101 },
+{ "NavajoWhite1", 255, 222, 173 },
+{ "NavajoWhite2", 238, 207, 161 },
+{ "NavajoWhite3", 205, 179, 139 },
+{ "NavajoWhite4", 139, 121, 94 },
+{ "LemonChiffon1", 255, 250, 205 },
+{ "LemonChiffon2", 238, 233, 191 },
+{ "LemonChiffon3", 205, 201, 165 },
+{ "LemonChiffon4", 139, 137, 112 },
+{ "cornsilk1", 255, 248, 220 },
+{ "cornsilk2", 238, 232, 205 },
+{ "cornsilk3", 205, 200, 177 },
+{ "cornsilk4", 139, 136, 120 },
+{ "ivory1", 255, 255, 240 },
+{ "ivory2", 238, 238, 224 },
+{ "ivory3", 205, 205, 193 },
+{ "ivory4", 139, 139, 131 },
+{ "honeydew1", 240, 255, 240 },
+{ "honeydew2", 224, 238, 224 },
+{ "honeydew3", 193, 205, 193 },
+{ "honeydew4", 131, 139, 131 },
+{ "LavenderBlush1", 255, 240, 245 },
+{ "LavenderBlush2", 238, 224, 229 },
+{ "LavenderBlush3", 205, 193, 197 },
+{ "LavenderBlush4", 139, 131, 134 },
+{ "MistyRose1", 255, 228, 225 },
+{ "MistyRose2", 238, 213, 210 },
+{ "MistyRose3", 205, 183, 181 },
+{ "MistyRose4", 139, 125, 123 },
+{ "azure1", 240, 255, 255 },
+{ "azure2", 224, 238, 238 },
+{ "azure3", 193, 205, 205 },
+{ "azure4", 131, 139, 139 },
+{ "SlateBlue1", 131, 111, 255 },
+{ "SlateBlue2", 122, 103, 238 },
+{ "SlateBlue3", 105, 89, 205 },
+{ "SlateBlue4", 71, 60, 139 },
+{ "RoyalBlue1", 72, 118, 255 },
+{ "RoyalBlue2", 67, 110, 238 },
+{ "RoyalBlue3", 58, 95, 205 },
+{ "RoyalBlue4", 39, 64, 139 },
+{ "blue1", 0, 0, 255 },
+{ "blue2", 0, 0, 238 },
+{ "blue3", 0, 0, 205 },
+{ "blue4", 0, 0, 139 },
+{ "DodgerBlue1", 30, 144, 255 },
+{ "DodgerBlue2", 28, 134, 238 },
+{ "DodgerBlue3", 24, 116, 205 },
+{ "DodgerBlue4", 16, 78, 139 },
+{ "SteelBlue1", 99, 184, 255 },
+{ "SteelBlue2", 92, 172, 238 },
+{ "SteelBlue3", 79, 148, 205 },
+{ "SteelBlue4", 54, 100, 139 },
+{ "DeepSkyBlue1", 0, 191, 255 },
+{ "DeepSkyBlue2", 0, 178, 238 },
+{ "DeepSkyBlue3", 0, 154, 205 },
+{ "DeepSkyBlue4", 0, 104, 139 },
+{ "SkyBlue1", 135, 206, 255 },
+{ "SkyBlue2", 126, 192, 238 },
+{ "SkyBlue3", 108, 166, 205 },
+{ "SkyBlue4", 74, 112, 139 },
+{ "LightSkyBlue1", 176, 226, 255 },
+{ "LightSkyBlue2", 164, 211, 238 },
+{ "LightSkyBlue3", 141, 182, 205 },
+{ "LightSkyBlue4", 96, 123, 139 },
+{ "SlateGray1", 198, 226, 255 },
+{ "SlateGray2", 185, 211, 238 },
+{ "SlateGray3", 159, 182, 205 },
+{ "SlateGray4", 108, 123, 139 },
+{ "LightSteelBlue1", 202, 225, 255 },
+{ "LightSteelBlue2", 188, 210, 238 },
+{ "LightSteelBlue3", 162, 181, 205 },
+{ "LightSteelBlue4", 110, 123, 139 },
+{ "LightBlue1", 191, 239, 255 },
+{ "LightBlue2", 178, 223, 238 },
+{ "LightBlue3", 154, 192, 205 },
+{ "LightBlue4", 104, 131, 139 },
+{ "LightCyan1", 224, 255, 255 },
+{ "LightCyan2", 209, 238, 238 },
+{ "LightCyan3", 180, 205, 205 },
+{ "LightCyan4", 122, 139, 139 },
+{ "PaleTurquoise1", 187, 255, 255 },
+{ "PaleTurquoise2", 174, 238, 238 },
+{ "PaleTurquoise3", 150, 205, 205 },
+{ "PaleTurquoise4", 102, 139, 139 },
+{ "CadetBlue1", 152, 245, 255 },
+{ "CadetBlue2", 142, 229, 238 },
+{ "CadetBlue3", 122, 197, 205 },
+{ "CadetBlue4", 83, 134, 139 },
+{ "turquoise1", 0, 245, 255 },
+{ "turquoise2", 0, 229, 238 },
+{ "turquoise3", 0, 197, 205 },
+{ "turquoise4", 0, 134, 139 },
+{ "cyan1", 0, 255, 255 },
+{ "cyan2", 0, 238, 238 },
+{ "cyan3", 0, 205, 205 },
+{ "cyan4", 0, 139, 139 },
+{ "DarkSlateGray1", 151, 255, 255 },
+{ "DarkSlateGray2", 141, 238, 238 },
+{ "DarkSlateGray3", 121, 205, 205 },
+{ "DarkSlateGray4", 82, 139, 139 },
+{ "aquamarine1", 127, 255, 212 },
+{ "aquamarine2", 118, 238, 198 },
+{ "aquamarine3", 102, 205, 170 },
+{ "aquamarine4", 69, 139, 116 },
+{ "DarkSeaGreen1", 193, 255, 193 },
+{ "DarkSeaGreen2", 180, 238, 180 },
+{ "DarkSeaGreen3", 155, 205, 155 },
+{ "DarkSeaGreen4", 105, 139, 105 },
+{ "SeaGreen1", 84, 255, 159 },
+{ "SeaGreen2", 78, 238, 148 },
+{ "SeaGreen3", 67, 205, 128 },
+{ "SeaGreen4", 46, 139, 87 },
+{ "PaleGreen1", 154, 255, 154 },
+{ "PaleGreen2", 144, 238, 144 },
+{ "PaleGreen3", 124, 205, 124 },
+{ "PaleGreen4", 84, 139, 84 },
+{ "SpringGreen1", 0, 255, 127 },
+{ "SpringGreen2", 0, 238, 118 },
+{ "SpringGreen3", 0, 205, 102 },
+{ "SpringGreen4", 0, 139, 69 },
+{ "green1", 0, 255, 0 },
+{ "green2", 0, 238, 0 },
+{ "green3", 0, 205, 0 },
+{ "green4", 0, 139, 0 },
+{ "chartreuse1", 127, 255, 0 },
+{ "chartreuse2", 118, 238, 0 },
+{ "chartreuse3", 102, 205, 0 },
+{ "chartreuse4", 69, 139, 0 },
+{ "OliveDrab1", 192, 255, 62 },
+{ "OliveDrab2", 179, 238, 58 },
+{ "OliveDrab3", 154, 205, 50 },
+{ "OliveDrab4", 105, 139, 34 },
+{ "DarkOliveGreen1", 202, 255, 112 },
+{ "DarkOliveGreen2", 188, 238, 104 },
+{ "DarkOliveGreen3", 162, 205, 90 },
+{ "DarkOliveGreen4", 110, 139, 61 },
+{ "khaki1", 255, 246, 143 },
+{ "khaki2", 238, 230, 133 },
+{ "khaki3", 205, 198, 115 },
+{ "khaki4", 139, 134, 78 },
+{ "LightGoldenrod1", 255, 236, 139 },
+{ "LightGoldenrod2", 238, 220, 130 },
+{ "LightGoldenrod3", 205, 190, 112 },
+{ "LightGoldenrod4", 139, 129, 76 },
+{ "LightYellow1", 255, 255, 224 },
+{ "LightYellow2", 238, 238, 209 },
+{ "LightYellow3", 205, 205, 180 },
+{ "LightYellow4", 139, 139, 122 },
+{ "yellow1", 255, 255, 0 },
+{ "yellow2", 238, 238, 0 },
+{ "yellow3", 205, 205, 0 },
+{ "yellow4", 139, 139, 0 },
+{ "gold1", 255, 215, 0 },
+{ "gold2", 238, 201, 0 },
+{ "gold3", 205, 173, 0 },
+{ "gold4", 139, 117, 0 },
+{ "goldenrod1", 255, 193, 37 },
+{ "goldenrod2", 238, 180, 34 },
+{ "goldenrod3", 205, 155, 29 },
+{ "goldenrod4", 139, 105, 20 },
+{ "DarkGoldenrod1", 255, 185, 15 },
+{ "DarkGoldenrod2", 238, 173, 14 },
+{ "DarkGoldenrod3", 205, 149, 12 },
+{ "DarkGoldenrod4", 139, 101, 8 },
+{ "RosyBrown1", 255, 193, 193 },
+{ "RosyBrown2", 238, 180, 180 },
+{ "RosyBrown3", 205, 155, 155 },
+{ "RosyBrown4", 139, 105, 105 },
+{ "IndianRed1", 255, 106, 106 },
+{ "IndianRed2", 238, 99, 99 },
+{ "IndianRed3", 205, 85, 85 },
+{ "IndianRed4", 139, 58, 58 },
+{ "sienna1", 255, 130, 71 },
+{ "sienna2", 238, 121, 66 },
+{ "sienna3", 205, 104, 57 },
+{ "sienna4", 139, 71, 38 },
+{ "burlywood1", 255, 211, 155 },
+{ "burlywood2", 238, 197, 145 },
+{ "burlywood3", 205, 170, 125 },
+{ "burlywood4", 139, 115, 85 },
+{ "wheat1", 255, 231, 186 },
+{ "wheat2", 238, 216, 174 },
+{ "wheat3", 205, 186, 150 },
+{ "wheat4", 139, 126, 102 },
+{ "tan1", 255, 165, 79 },
+{ "tan2", 238, 154, 73 },
+{ "tan3", 205, 133, 63 },
+{ "tan4", 139 , 90, 43 },
+{ "chocolate1", 255, 127, 36 },
+{ "chocolate2", 238, 118, 33 },
+{ "chocolate3", 205, 102, 29 },
+{ "chocolate4", 139, 69, 19 },
+{ "firebrick1", 255, 48, 48 },
+{ "firebrick2", 238, 44, 44 },
+{ "firebrick3", 205, 38, 38 },
+{ "firebrick4", 139, 26, 26 },
+{ "brown1", 255, 64, 64 },
+{ "brown2", 238, 59, 59 },
+{ "brown3", 205, 51, 51 },
+{ "brown4", 139, 35, 35 },
+{ "salmon1", 255, 140, 105 },
+{ "salmon2", 238, 130, 98 },
+{ "salmon3", 205, 112, 84 },
+{ "salmon4", 139, 76, 57 },
+{ "LightSalmon1", 255, 160, 122 },
+{ "LightSalmon2", 238, 149, 114 },
+{ "LightSalmon3", 205, 129, 98 },
+{ "LightSalmon4", 139, 87, 66 },
+{ "orange1", 255, 165, 0 },
+{ "orange2", 238, 154, 0 },
+{ "orange3", 205, 133, 0 },
+{ "orange4", 139 , 90, 0 },
+{ "DarkOrange1", 255, 127, 0 },
+{ "DarkOrange2", 238, 118, 0 },
+{ "DarkOrange3", 205, 102, 0 },
+{ "DarkOrange4", 139 , 69, 0 },
+{ "coral1", 255, 114, 86 },
+{ "coral2", 238, 106, 80 },
+{ "coral3", 205, 91, 69 },
+{ "coral4", 139, 62, 47 },
+{ "tomato1", 255, 99, 71 },
+{ "tomato2", 238, 92, 66 },
+{ "tomato3", 205, 79, 57 },
+{ "tomato4", 139, 54, 38 },
+{ "OrangeRed1", 255, 69, 0 },
+{ "OrangeRed2", 238, 64, 0 },
+{ "OrangeRed3", 205, 55, 0 },
+{ "OrangeRed4", 139, 37, 0 },
+{ "red1", 255, 0, 0 },
+{ "red2", 238, 0, 0 },
+{ "red3", 205, 0, 0 },
+{ "red4", 139, 0, 0 },
+{ "DeepPink1", 255, 20, 147 },
+{ "DeepPink2", 238, 18, 137 },
+{ "DeepPink3", 205, 16, 118 },
+{ "DeepPink4", 139, 10, 80 },
+{ "HotPink1", 255, 110, 180 },
+{ "HotPink2", 238, 106, 167 },
+{ "HotPink3", 205, 96, 144 },
+{ "HotPink4", 139, 58, 98 },
+{ "pink1", 255, 181, 197 },
+{ "pink2", 238, 169, 184 },
+{ "pink3", 205, 145, 158 },
+{ "pink4", 139, 99, 108 },
+{ "LightPink1", 255, 174, 185 },
+{ "LightPink2", 238, 162, 173 },
+{ "LightPink3", 205, 140, 149 },
+{ "LightPink4", 139, 95, 101 },
+{ "PaleVioletRed1", 255, 130, 171 },
+{ "PaleVioletRed2", 238, 121, 159 },
+{ "PaleVioletRed3", 205, 104, 137 },
+{ "PaleVioletRed4", 139, 71, 93 },
+{ "maroon1", 255, 52, 179 },
+{ "maroon2", 238, 48, 167 },
+{ "maroon3", 205, 41, 144 },
+{ "maroon4", 139, 28, 98 },
+{ "VioletRed1", 255, 62, 150 },
+{ "VioletRed2", 238, 58, 140 },
+{ "VioletRed3", 205, 50, 120 },
+{ "VioletRed4", 139, 34, 82 },
+{ "magenta1", 255, 0, 255 },
+{ "magenta2", 238, 0, 238 },
+{ "magenta3", 205, 0, 205 },
+{ "magenta4", 139, 0, 139 },
+{ "orchid1", 255, 131, 250 },
+{ "orchid2", 238, 122, 233 },
+{ "orchid3", 205, 105, 201 },
+{ "orchid4", 139, 71, 137 },
+{ "plum1", 255, 187, 255 },
+{ "plum2", 238, 174, 238 },
+{ "plum3", 205, 150, 205 },
+{ "plum4", 139, 102, 139 },
+{ "MediumOrchid1", 224, 102, 255 },
+{ "MediumOrchid2", 209, 95, 238 },
+{ "MediumOrchid3", 180, 82, 205 },
+{ "MediumOrchid4", 122, 55, 139 },
+{ "DarkOrchid1", 191, 62, 255 },
+{ "DarkOrchid2", 178, 58, 238 },
+{ "DarkOrchid3", 154, 50, 205 },
+{ "DarkOrchid4", 104, 34, 139 },
+{ "purple1", 155, 48, 255 },
+{ "purple2", 145, 44, 238 },
+{ "purple3", 125, 38, 205 },
+{ "purple4", 85, 26, 139 },
+{ "MediumPurple1", 171, 130, 255 },
+{ "MediumPurple2", 159, 121, 238 },
+{ "MediumPurple3", 137, 104, 205 },
+{ "MediumPurple4", 93, 71, 139 },
+{ "thistle1", 255, 225, 255 },
+{ "thistle2", 238, 210, 238 },
+{ "thistle3", 205, 181, 205 },
+{ "thistle4", 139, 123, 139 },
+{ "gray0", 0, 0, 0 },
+{ "grey0", 0, 0, 0 },
+{ "gray1", 3, 3, 3 },
+{ "grey1", 3, 3, 3 },
+{ "gray2", 5, 5, 5 },
+{ "grey2", 5, 5, 5 },
+{ "gray3", 8, 8, 8 },
+{ "grey3", 8, 8, 8 },
+{ "gray4", 10, 10, 10 },
+{ "grey4", 10, 10, 10 },
+{ "gray5", 13, 13, 13 },
+{ "grey5", 13, 13, 13 },
+{ "gray6", 15, 15, 15 },
+{ "grey6", 15, 15, 15 },
+{ "gray7", 18, 18, 18 },
+{ "grey7", 18, 18, 18 },
+{ "gray8", 20, 20, 20 },
+{ "grey8", 20, 20, 20 },
+{ "gray9", 23, 23, 23 },
+{ "grey9", 23, 23, 23 },
+{ "gray10", 26, 26, 26 },
+{ "grey10", 26, 26, 26 },
+{ "gray11", 28, 28, 28 },
+{ "grey11", 28, 28, 28 },
+{ "gray12", 31, 31, 31 },
+{ "grey12", 31, 31, 31 },
+{ "gray13", 33, 33, 33 },
+{ "grey13", 33, 33, 33 },
+{ "gray14", 36, 36, 36 },
+{ "grey14", 36, 36, 36 },
+{ "gray15", 38, 38, 38 },
+{ "grey15", 38, 38, 38 },
+{ "gray16", 41, 41, 41 },
+{ "grey16", 41, 41, 41 },
+{ "gray17", 43, 43, 43 },
+{ "grey17", 43, 43, 43 },
+{ "gray18", 46, 46, 46 },
+{ "grey18", 46, 46, 46 },
+{ "gray19", 48, 48, 48 },
+{ "grey19", 48, 48, 48 },
+{ "gray20", 51, 51, 51 },
+{ "grey20", 51, 51, 51 },
+{ "gray21", 54, 54, 54 },
+{ "grey21", 54, 54, 54 },
+{ "gray22", 56, 56, 56 },
+{ "grey22", 56, 56, 56 },
+{ "gray23", 59, 59, 59 },
+{ "grey23", 59, 59, 59 },
+{ "gray24", 61, 61, 61 },
+{ "grey24", 61, 61, 61 },
+{ "gray25", 64, 64, 64 },
+{ "grey25", 64, 64, 64 },
+{ "gray26", 66, 66, 66 },
+{ "grey26", 66, 66, 66 },
+{ "gray27", 69, 69, 69 },
+{ "grey27", 69, 69, 69 },
+{ "gray28", 71, 71, 71 },
+{ "grey28", 71, 71, 71 },
+{ "gray29", 74, 74, 74 },
+{ "grey29", 74, 74, 74 },
+{ "gray30", 77, 77, 77 },
+{ "grey30", 77, 77, 77 },
+{ "gray31", 79, 79, 79 },
+{ "grey31", 79, 79, 79 },
+{ "gray32", 82, 82, 82 },
+{ "grey32", 82, 82, 82 },
+{ "gray33", 84, 84, 84 },
+{ "grey33", 84, 84, 84 },
+{ "gray34", 87, 87, 87 },
+{ "grey34", 87, 87, 87 },
+{ "gray35", 89, 89, 89 },
+{ "grey35", 89, 89, 89 },
+{ "gray36", 92, 92, 92 },
+{ "grey36", 92, 92, 92 },
+{ "gray37", 94, 94, 94 },
+{ "grey37", 94, 94, 94 },
+{ "gray38", 97, 97, 97 },
+{ "grey38", 97, 97, 97 },
+{ "gray39", 99, 99, 99 },
+{ "grey39", 99, 99, 99 },
+{ "gray40", 102, 102, 102 },
+{ "grey40", 102, 102, 102 },
+{ "gray41", 105, 105, 105 },
+{ "grey41", 105, 105, 105 },
+{ "gray42", 107, 107, 107 },
+{ "grey42", 107, 107, 107 },
+{ "gray43", 110, 110, 110 },
+{ "grey43", 110, 110, 110 },
+{ "gray44", 112, 112, 112 },
+{ "grey44", 112, 112, 112 },
+{ "gray45", 115, 115, 115 },
+{ "grey45", 115, 115, 115 },
+{ "gray46", 117, 117, 117 },
+{ "grey46", 117, 117, 117 },
+{ "gray47", 120, 120, 120 },
+{ "grey47", 120, 120, 120 },
+{ "gray48", 122, 122, 122 },
+{ "grey48", 122, 122, 122 },
+{ "gray49", 125, 125, 125 },
+{ "grey49", 125, 125, 125 },
+{ "gray50", 127, 127, 127 },
+{ "grey50", 127, 127, 127 },
+{ "gray51", 130, 130, 130 },
+{ "grey51", 130, 130, 130 },
+{ "gray52", 133, 133, 133 },
+{ "grey52", 133, 133, 133 },
+{ "gray53", 135, 135, 135 },
+{ "grey53", 135, 135, 135 },
+{ "gray54", 138, 138, 138 },
+{ "grey54", 138, 138, 138 },
+{ "gray55", 140, 140, 140 },
+{ "grey55", 140, 140, 140 },
+{ "gray56", 143, 143, 143 },
+{ "grey56", 143, 143, 143 },
+{ "gray57", 145, 145, 145 },
+{ "grey57", 145, 145, 145 },
+{ "gray58", 148, 148, 148 },
+{ "grey58", 148, 148, 148 },
+{ "gray59", 150, 150, 150 },
+{ "grey59", 150, 150, 150 },
+{ "gray60", 153, 153, 153 },
+{ "grey60", 153, 153, 153 },
+{ "gray61", 156, 156, 156 },
+{ "grey61", 156, 156, 156 },
+{ "gray62", 158, 158, 158 },
+{ "grey62", 158, 158, 158 },
+{ "gray63", 161, 161, 161 },
+{ "grey63", 161, 161, 161 },
+{ "gray64", 163, 163, 163 },
+{ "grey64", 163, 163, 163 },
+{ "gray65", 166, 166, 166 },
+{ "grey65", 166, 166, 166 },
+{ "gray66", 168, 168, 168 },
+{ "grey66", 168, 168, 168 },
+{ "gray67", 171, 171, 171 },
+{ "grey67", 171, 171, 171 },
+{ "gray68", 173, 173, 173 },
+{ "grey68", 173, 173, 173 },
+{ "gray69", 176, 176, 176 },
+{ "grey69", 176, 176, 176 },
+{ "gray70", 179, 179, 179 },
+{ "grey70", 179, 179, 179 },
+{ "gray71", 181, 181, 181 },
+{ "grey71", 181, 181, 181 },
+{ "gray72", 184, 184, 184 },
+{ "grey72", 184, 184, 184 },
+{ "gray73", 186, 186, 186 },
+{ "grey73", 186, 186, 186 },
+{ "gray74", 189, 189, 189 },
+{ "grey74", 189, 189, 189 },
+{ "gray75", 191, 191, 191 },
+{ "grey75", 191, 191, 191 },
+{ "gray76", 194, 194, 194 },
+{ "grey76", 194, 194, 194 },
+{ "gray77", 196, 196, 196 },
+{ "grey77", 196, 196, 196 },
+{ "gray78", 199, 199, 199 },
+{ "grey78", 199, 199, 199 },
+{ "gray79", 201, 201, 201 },
+{ "grey79", 201, 201, 201 },
+{ "gray80", 204, 204, 204 },
+{ "grey80", 204, 204, 204 },
+{ "gray81", 207, 207, 207 },
+{ "grey81", 207, 207, 207 },
+{ "gray82", 209, 209, 209 },
+{ "grey82", 209, 209, 209 },
+{ "gray83", 212, 212, 212 },
+{ "grey83", 212, 212, 212 },
+{ "gray84", 214, 214, 214 },
+{ "grey84", 214, 214, 214 },
+{ "gray85", 217, 217, 217 },
+{ "grey85", 217, 217, 217 },
+{ "gray86", 219, 219, 219 },
+{ "grey86", 219, 219, 219 },
+{ "gray87", 222, 222, 222 },
+{ "grey87", 222, 222, 222 },
+{ "gray88", 224, 224, 224 },
+{ "grey88", 224, 224, 224 },
+{ "gray89", 227, 227, 227 },
+{ "grey89", 227, 227, 227 },
+{ "gray90", 229, 229, 229 },
+{ "grey90", 229, 229, 229 },
+{ "gray91", 232, 232, 232 },
+{ "grey91", 232, 232, 232 },
+{ "gray92", 235, 235, 235 },
+{ "grey92", 235, 235, 235 },
+{ "gray93", 237, 237, 237 },
+{ "grey93", 237, 237, 237 },
+{ "gray94", 240, 240, 240 },
+{ "grey94", 240, 240, 240 },
+{ "gray95", 242, 242, 242 },
+{ "grey95", 242, 242, 242 },
+{ "gray96", 245, 245, 245 },
+{ "grey96", 245, 245, 245 },
+{ "gray97", 247, 247, 247 },
+{ "grey97", 247, 247, 247 },
+{ "gray98", 250, 250, 250 },
+{ "grey98", 250, 250, 250 },
+{ "gray99", 252, 252, 252 },
+{ "grey99", 252, 252, 252 },
+{ "gray100", 255, 255, 255 },
+{ "grey100", 255, 255, 255 },
+{ "DarkGrey", 169, 169, 169 },
+{ "DarkGray", 169, 169, 169 },
+{ "DarkBlue", 0, 0, 139 },
+{ "DarkCyan", 0, 139, 139 },
+{ "DarkMagenta", 139, 0, 139 },
+{ "DarkRed", 139, 0, 0 },
+{ "LightGreen", 144, 238, 144 },
+{ NULL, 0 , 0, 0}
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/filter.vcl/ixpm/xpmread.cxx b/svtools/source/filter.vcl/ixpm/xpmread.cxx
index e0bbad0f0ceb..e42fb3b014f9 100644
--- a/svtools/source/filter.vcl/ixpm/xpmread.cxx
+++ b/svtools/source/filter.vcl/ixpm/xpmread.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,22 +40,22 @@
// -------------
XPMReader::XPMReader( SvStream& rStm ) :
- mrIStm ( rStm ),
- mpAcc ( NULL ),
- mpMaskAcc ( NULL ),
- mnLastPos ( rStm.Tell() ),
- mnWidth ( 0 ),
- mnHeight ( 0 ),
- mnColors ( 0 ),
- mnCpp ( 0 ),
- mbTransparent ( FALSE ),
- mbStatus ( TRUE ),
- mnStatus ( 0 ),
- mnIdentifier ( XPMIDENTIFIER ),
- mcThisByte ( 0 ),
- mnTempAvail ( 0 ),
+ mrIStm ( rStm ),
+ mpAcc ( NULL ),
+ mpMaskAcc ( NULL ),
+ mnLastPos ( rStm.Tell() ),
+ mnWidth ( 0 ),
+ mnHeight ( 0 ),
+ mnColors ( 0 ),
+ mnCpp ( 0 ),
+ mbTransparent ( FALSE ),
+ mbStatus ( TRUE ),
+ mnStatus ( 0 ),
+ mnIdentifier ( XPMIDENTIFIER ),
+ mcThisByte ( 0 ),
+ mnTempAvail ( 0 ),
mpFastColorTable( NULL ),
- mpColMap ( NULL )
+ mpColMap ( NULL )
{
}
@@ -76,8 +76,8 @@ XPMReader::~XPMReader()
ReadState XPMReader::ReadXPM( Graphic& rGraphic )
{
- ReadState eReadState;
- BYTE cDummy;
+ ReadState eReadState;
+ BYTE cDummy;
// sehen, ob wir _alles_ lesen koennen
mrIStm.Seek( STREAM_SEEK_TO_END );
@@ -97,7 +97,7 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
if ( ( mbStatus = ImplGetString() ) == TRUE )
{
- mnIdentifier = XPMVALUES; // Bitmap informationen einholen
+ mnIdentifier = XPMVALUES; // Bitmap informationen einholen
mnWidth = ImplGetULONG( 0 );
mnHeight = ImplGetULONG( 1 );
mnColors = ImplGetULONG( 2 );
@@ -112,9 +112,9 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
mnIdentifier = XPMCOLORS;
// mpColMap beinhaltet fuer jede vorhandene
- // Farbe: ( mnCpp )Byte(s)-> ASCII Eintrag der der Farbe zugeordnet ist
- // 1 Byte -> 0xff wenn Farbe transparent ist
- // 3 Bytes -> RGB Wert der Farbe
+ // Farbe: ( mnCpp )Byte(s)-> ASCII Eintrag der der Farbe zugeordnet ist
+ // 1 Byte -> 0xff wenn Farbe transparent ist
+ // 3 Bytes -> RGB Wert der Farbe
mpColMap = new BYTE[ mnColors * ( 4 + mnCpp ) ];
if ( mpColMap )
{
@@ -151,15 +151,15 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
{
maMaskBmp = Bitmap( Size( mnWidth, mnHeight ), 1 );
if ( ( mpMaskAcc = maMaskBmp.AcquireWriteAccess() ) == NULL )
- mbStatus = FALSE;
+ mbStatus = FALSE;
}
if( mpAcc && mbStatus )
{
- ULONG i;
- if ( mnColors <=256 ) // palette is only needed by using less than 257
- { // colors
+ ULONG i;
+ if ( mnColors <=256 ) // palette is only needed by using less than 257
+ { // colors
- BYTE* pPtr = &mpColMap[mnCpp];
+ BYTE* pPtr = &mpColMap[mnCpp];
for ( i = 0; i < mnColors; i++ )
{
@@ -167,12 +167,12 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
pPtr += ( mnCpp + 4 );
}
// using 2 charakters per pixel and less than 257 Colors we speed up
- if ( mnCpp == 2 ) // by using a 64kb indexing table
+ if ( mnCpp == 2 ) // by using a 64kb indexing table
{
mpFastColorTable = new BYTE[ 256 * 256 ];
for ( pPtr = mpColMap, i = 0; i < mnColors; i++, pPtr += mnCpp + 4 )
{
- ULONG j = pPtr[ 0 ] << 8;
+ ULONG j = pPtr[ 0 ] << 8;
j += pPtr[ 1 ];
mpFastColorTable[ j ] = (BYTE)i;
}
@@ -239,9 +239,9 @@ ReadState XPMReader::ReadXPM( Graphic& rGraphic )
BOOL XPMReader::ImplGetColor( ULONG nNumb )
{
- BYTE* pString = mpStringBuf;
- BYTE* pPtr = ( mpColMap + nNumb * ( 4 + mnCpp ) );
- BOOL bStatus = ImplGetString();
+ BYTE* pString = mpStringBuf;
+ BYTE* pPtr = ( mpColMap + nNumb * ( 4 + mnCpp ) );
+ BOOL bStatus = ImplGetString();
if ( bStatus )
{
@@ -258,11 +258,11 @@ BOOL XPMReader::ImplGetColor( ULONG nNumb )
BOOL XPMReader::ImplGetScanLine( ULONG nY )
{
- BOOL bStatus = ImplGetString();
- BYTE* pString = mpStringBuf;
- BYTE* pColor;
- BitmapColor aWhite;
- BitmapColor aBlack;
+ BOOL bStatus = ImplGetString();
+ BYTE* pString = mpStringBuf;
+ BYTE* pColor;
+ BitmapColor aWhite;
+ BitmapColor aBlack;
if ( bStatus )
{
@@ -336,9 +336,9 @@ BOOL XPMReader::ImplGetColSub( BYTE* pDest )
{
*pDest++ = 0;
bColStatus = TRUE;
- switch ( mnParaSize )
+ switch ( mnParaSize )
{
- case 25 :
+ case 25 :
ImplGetRGBHex ( pDest, 6 );
break;
case 13 :
@@ -360,7 +360,7 @@ BOOL XPMReader::ImplGetColSub( BYTE* pDest )
mbTransparent = TRUE;
}
// last we will try to get the colorname
- else if ( mnParaSize > 2 ) // name must enlarge the minimum size
+ else if ( mnParaSize > 2 ) // name must enlarge the minimum size
{
ULONG i = 0;
while ( TRUE )
@@ -434,15 +434,15 @@ BOOL XPMReader::ImplGetColKey( BYTE nKey )
// ImplGetRGBHex uebersetzt den ASCII-Hexadezimalwert der sich bei mpPara befindet
// in einen RGB wert und schreibt diesen nach pDest
// folgende Formate muessen sich bei mpPara befinden:
-// wenn nAdd = 0 : '#12ab12' -> RGB = 0x12, 0xab, 0x12
-// 2 : '#1234abcd1234' " " " "
-// 6 : '#12345678abcdefab12345678' " " " "
+// wenn nAdd = 0 : '#12ab12' -> RGB = 0x12, 0xab, 0x12
+// 2 : '#1234abcd1234' " " " "
+// 6 : '#12345678abcdefab12345678' " " " "
void XPMReader::ImplGetRGBHex( BYTE* pDest,ULONG nAdd )
{
- BYTE* pPtr = mpPara+1;
- BYTE nHex, nTemp;
+ BYTE* pPtr = mpPara+1;
+ BYTE nHex, nTemp;
for ( ULONG i = 0; i < 3; i++ )
{
@@ -474,7 +474,7 @@ ULONG XPMReader::ImplGetULONG( ULONG nPara )
for ( ULONG i = 0; i < mnParaSize; i++ )
{
BYTE j = (*pPtr++) - 48;
- if ( j > 9 ) return 0; // ascii is invalid
+ if ( j > 9 ) return 0; // ascii is invalid
nRetValue*=10;
nRetValue+=j;
}
@@ -522,10 +522,10 @@ BOOL XPMReader::ImplCompare( BYTE* pSource, BYTE* pDest, ULONG nSize, ULONG nMod
BOOL XPMReader::ImplGetPara ( ULONG nNumb )
{
- BYTE nByte;
- ULONG pSize = 0;
- BYTE* pPtr = mpStringBuf;
- ULONG nCount = 0;
+ BYTE nByte;
+ ULONG pSize = 0;
+ BYTE* pPtr = mpStringBuf;
+ ULONG nCount = 0;
if ( ( *pPtr != ' ' ) && ( *pPtr != 0x09 ) )
{
@@ -577,8 +577,8 @@ BOOL XPMReader::ImplGetPara ( ULONG nNumb )
BOOL XPMReader::ImplGetString( void )
{
- BYTE sID[] = "/* XPM */";
- BYTE* pString = mpStringBuf;
+ BYTE sID[] = "/* XPM */";
+ BYTE* pString = mpStringBuf;
mnStringSize = 0;
mpStringBuf[0] = 0;
@@ -597,10 +597,10 @@ BOOL XPMReader::ImplGetString( void )
{
if ( mnTempAvail <= 50 )
{
- mbStatus = FALSE; // file is too short to be a correct XPM format
+ mbStatus = FALSE; // file is too short to be a correct XPM format
break;
}
- for ( int i = 0; i < 9; i++ ) // searching for "/* XPM */"
+ for ( int i = 0; i < 9; i++ ) // searching for "/* XPM */"
if ( *mpTempPtr++ != sID[i] )
{
mbStatus = FALSE;
@@ -626,11 +626,11 @@ BOOL XPMReader::ImplGetString( void )
mnStatus &=~XPMREMARK;
continue;
}
- if ( mnStatus & XPMSTRING ) // characters in string
+ if ( mnStatus & XPMSTRING ) // characters in string
{
if ( mcThisByte == '"' )
{
- mnStatus &=~XPMSTRING; // end of parameter by eol
+ mnStatus &=~XPMSTRING; // end of parameter by eol
break;
}
if ( mnStringSize >= ( XPMSTRINGBUF - 1 ) )
@@ -644,7 +644,7 @@ BOOL XPMReader::ImplGetString( void )
continue;
}
else
- { // characters beside string
+ { // characters beside string
switch ( mcThisByte )
{
case '*' :
@@ -675,9 +675,9 @@ BOOL XPMReader::ImplGetString( void )
BOOL ImportXPM( SvStream& rStm, Graphic& rGraphic )
{
- XPMReader* pXPMReader = (XPMReader*) rGraphic.GetContext();
- ReadState eReadState;
- BOOL bRet = TRUE;
+ XPMReader* pXPMReader = (XPMReader*) rGraphic.GetContext();
+ ReadState eReadState;
+ BOOL bRet = TRUE;
if( !pXPMReader )
pXPMReader = new XPMReader( rStm );
diff --git a/svtools/source/filter.vcl/jpeg/jpeg.cxx b/svtools/source/filter.vcl/jpeg/jpeg.cxx
index 146beff287bc..439efb9e632d 100644
--- a/svtools/source/filter.vcl/jpeg/jpeg.cxx
+++ b/svtools/source/filter.vcl/jpeg/jpeg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,7 +92,7 @@ extern "C" long JPEGCallback( void* pCallbackData, long nPercent )
#define BUF_SIZE 4096
-typedef struct
+typedef struct
{
struct jpeg_destination_mgr pub; /* public fields */
@@ -308,12 +308,12 @@ extern "C" void jpeg_svstream_src (j_decompress_ptr cinfo, void * in)
// --------------
JPEGReader::JPEGReader( SvStream& rStm, void* /*pCallData*/, sal_Bool bSetLS ) :
- rIStm ( rStm ),
- pAcc ( NULL ),
- pAcc1 ( NULL ),
- pBuffer ( NULL ),
- nLastPos ( rStm.Tell() ),
- nLastLines ( 0 ),
+ rIStm ( rStm ),
+ pAcc ( NULL ),
+ pAcc1 ( NULL ),
+ pBuffer ( NULL ),
+ nLastPos ( rStm.Tell() ),
+ nLastLines ( 0 ),
bSetLogSize ( bSetLS )
{
maUpperName = String::CreateFromAscii( "SVIJPEG", 7 );
@@ -361,26 +361,26 @@ void* JPEGReader::CreateBitmap( void* pParam )
}
else
aBmp = Bitmap( aSize, 24 );
-
+
if ( bSetLogSize )
{
unsigned long nUnit = ((JPEGCreateBitmapParam*)pParam)->density_unit;
-
- if( ( ( 1 == nUnit ) || ( 2 == nUnit ) ) &&
- ( (JPEGCreateBitmapParam*) pParam )->X_density &&
+
+ if( ( ( 1 == nUnit ) || ( 2 == nUnit ) ) &&
+ ( (JPEGCreateBitmapParam*) pParam )->X_density &&
( (JPEGCreateBitmapParam*) pParam )->Y_density )
{
Point aEmptyPoint;
- Fraction aFractX( 1, ((JPEGCreateBitmapParam*)pParam)->X_density );
- Fraction aFractY( 1, ((JPEGCreateBitmapParam*)pParam)->Y_density );
- MapMode aMapMode( nUnit == 1 ? MAP_INCH : MAP_CM, aEmptyPoint, aFractX, aFractY );
- Size aPrefSize = OutputDevice::LogicToLogic( aSize, aMapMode, MAP_100TH_MM );
+ Fraction aFractX( 1, ((JPEGCreateBitmapParam*)pParam)->X_density );
+ Fraction aFractY( 1, ((JPEGCreateBitmapParam*)pParam)->Y_density );
+ MapMode aMapMode( nUnit == 1 ? MAP_INCH : MAP_CM, aEmptyPoint, aFractX, aFractY );
+ Size aPrefSize = OutputDevice::LogicToLogic( aSize, aMapMode, MAP_100TH_MM );
aBmp.SetPrefSize( aPrefSize );
aBmp.SetPrefMapMode( MapMode( MAP_100TH_MM ) );
}
}
-
+
pAcc = aBmp.AcquireWriteAccess();
if( pAcc )
@@ -416,11 +416,11 @@ void JPEGReader::FillBitmap()
{
if( pBuffer && pAcc )
{
- HPBYTE pTmp;
- BitmapColor aColor;
- long nAlignedWidth;
- long nWidth = pAcc->Width();
- long nHeight = pAcc->Height();
+ HPBYTE pTmp;
+ BitmapColor aColor;
+ long nAlignedWidth;
+ long nWidth = pAcc->Width();
+ long nHeight = pAcc->Height();
if( pAcc->GetBitCount() == 8 )
{
@@ -468,8 +468,8 @@ void JPEGReader::FillBitmap()
Graphic JPEGReader::CreateIntermediateGraphic( const Bitmap& rBitmap, long nLines )
{
- Graphic aGraphic;
- const Size aSizePix( rBitmap.GetSizePixel() );
+ Graphic aGraphic;
+ const Size aSizePix( rBitmap.GetSizePixel() );
if( !nLastLines )
{
@@ -513,11 +513,11 @@ Graphic JPEGReader::CreateIntermediateGraphic( const Bitmap& rBitmap, long nLine
ReadState JPEGReader::Read( Graphic& rGraphic )
{
- long nEndPos;
- long nLines;
- ReadState eReadState;
- BOOL bRet = FALSE;
- BYTE cDummy;
+ long nEndPos;
+ long nLines;
+ ReadState eReadState;
+ BOOL bRet = FALSE;
+ BYTE cDummy;
#if 1 // TODO: is it possible to get rid of this seek to the end?
// check if the stream's end is already available
@@ -592,9 +592,9 @@ ReadState JPEGReader::Read( Graphic& rGraphic )
// --------------
JPEGWriter::JPEGWriter( SvStream& rStm, const uno::Sequence< beans::PropertyValue >* pFilterData, bool* pExportWasGrey ) :
- rOStm ( rStm ),
- pAcc ( NULL ),
- pBuffer ( NULL ),
+ rOStm ( rStm ),
+ pAcc ( NULL ),
+ pBuffer ( NULL ),
pExpWasGrey ( pExportWasGrey )
{
FilterConfigItem aConfigItem( (uno::Sequence< beans::PropertyValue >*)pFilterData );
@@ -629,8 +629,8 @@ void* JPEGWriter::GetScanline( long nY )
else if( pBuffer )
{
BitmapColor aColor;
- long nWidth = pAcc->Width();
- BYTE* pTmp = pBuffer;
+ long nWidth = pAcc->Width();
+ BYTE* pTmp = pBuffer;
if( pAcc->HasPalette() )
{
@@ -686,8 +686,8 @@ BOOL JPEGWriter::Write( const Graphic& rGraphic )
pAcc = aGraphicBmp.AcquireReadAccess();
- if ( !bGreys ) // bitmap was not explicitely converted into greyscale,
- { // check if source is greyscale only
+ if ( !bGreys ) // bitmap was not explicitely converted into greyscale,
+ { // check if source is greyscale only
sal_Bool bIsGrey = sal_True;
@@ -705,7 +705,7 @@ BOOL JPEGWriter::Write( const Graphic& rGraphic )
if ( bIsGrey )
bGreys = sal_True;
}
-
+
if( pExpWasGrey )
*pExpWasGrey = bGreys;
@@ -738,9 +738,9 @@ BOOL JPEGWriter::Write( const Graphic& rGraphic )
BOOL ImportJPEG( SvStream& rStm, Graphic& rGraphic, void* pCallerData, sal_Int32 nImportFlags )
{
- JPEGReader* pJPEGReader = (JPEGReader*) rGraphic.GetContext();
- ReadState eReadState;
- BOOL bRet = TRUE;
+ JPEGReader* pJPEGReader = (JPEGReader*) rGraphic.GetContext();
+ ReadState eReadState;
+ BOOL bRet = TRUE;
if( !pJPEGReader )
pJPEGReader = new JPEGReader( rStm, pCallerData, ( nImportFlags & GRFILTER_I_FLAGS_SET_LOGSIZE_FOR_JPEG ) != 0 );
diff --git a/svtools/source/filter.vcl/jpeg/jpeg.h b/svtools/source/filter.vcl/jpeg/jpeg.h
index c5284e968a8d..038c0b90cd61 100644
--- a/svtools/source/filter.vcl/jpeg/jpeg.h
+++ b/svtools/source/filter.vcl/jpeg/jpeg.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,29 +45,29 @@ struct JPEGCreateBitmapParam
unsigned long X_density;
unsigned long Y_density;
long bGray;
-
+
long nAlignedWidth; // these members will be filled by the
long bTopDown; // CreateBitmap method in svtools
};
-typedef struct my_error_mgr* my_error_ptr;
-typedef unsigned char BYTE;
+typedef struct my_error_mgr* my_error_ptr;
+typedef unsigned char BYTE;
#ifdef WIN
-typedef unsigned char _huge* HPBYTE;
+typedef unsigned char _huge* HPBYTE;
#else
-typedef unsigned char* HPBYTE;
+typedef unsigned char* HPBYTE;
#endif
-void* JPEGMalloc( size_t size );
-void JPEGFree( void *ptr );
-long JPEGCallback( void* pCallbackData, long nPercent );
+void* JPEGMalloc( size_t size );
+void JPEGFree( void *ptr );
+long JPEGCallback( void* pCallbackData, long nPercent );
-long WriteJPEG( void* pJPEGWriter, void* pOStm, long nWidth, long nHeight, long bGreyScale,
+long WriteJPEG( void* pJPEGWriter, void* pOStm, long nWidth, long nHeight, long bGreyScale,
long nQualityPercent, void* pCallbackData );
-void* GetScanline( void* pJPEGWriter, long nY );
+void* GetScanline( void* pJPEGWriter, long nY );
-void ReadJPEG( void* pJPEGReader, void* pIStm, long* pLines );
-void* CreateBitmap( void* pJPEGReader, void* pJPEGCreateBitmapParam );
+void ReadJPEG( void* pJPEGReader, void* pIStm, long* pLines );
+void* CreateBitmap( void* pJPEGReader, void* pJPEGCreateBitmapParam );
/* TODO: when incompatible changes are possible again
the preview size hint should be redone */
diff --git a/svtools/source/filter.vcl/jpeg/jpegc.c b/svtools/source/filter.vcl/jpeg/jpegc.c
index f94d7039920f..3517e6cb08a9 100644
--- a/svtools/source/filter.vcl/jpeg/jpegc.c
+++ b/svtools/source/filter.vcl/jpeg/jpegc.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,11 +72,11 @@ void SetJpegPreviewSizeHint( int nWidth, int nHeight )
void ReadJPEG( void* pJPEGReader, void* pIStm, long* pLines )
{
- struct jpeg_decompress_struct cinfo;
- struct my_error_mgr jerr;
+ struct jpeg_decompress_struct cinfo;
+ struct my_error_mgr jerr;
struct JPEGCreateBitmapParam aCreateBitmapParam;
- HPBYTE pDIB;
- HPBYTE pTmp;
+ HPBYTE pDIB;
+ HPBYTE pTmp;
long nWidth;
long nHeight;
long nAlignedWidth;
@@ -85,7 +85,7 @@ void ReadJPEG( void* pJPEGReader, void* pIStm, long* pLines )
long nScanLineBufferComponents = 0;
// declare bDecompCreated volatile because of gcc
// warning: variable 'bDecompCreated' might be clobbered by `longjmp' or `vfork'
- volatile long bDecompCreated = 0;
+ volatile long bDecompCreated = 0;
/* Falls der Stream nicht ausreicht (IO_PENDING)
wird ueber ein longjmp in der Schleife nach Exit
@@ -198,7 +198,7 @@ void ReadJPEG( void* pJPEGReader, void* pIStm, long* pLines )
/* PENDING ??? */
if ( cinfo.err->msg_code == 113 )
break;
-
+
pTmp += nAlignedWidth;
}
}
@@ -219,14 +219,14 @@ long WriteJPEG( void* pJPEGWriter, void* pOStm,
long nWidth, long nHeight, long bGreys,
long nQualityPercent, void* pCallbackData )
{
- struct jpeg_compress_struct cinfo;
- struct my_error_mgr jerr;
- void* pScanline;
- long nY;
+ struct jpeg_compress_struct cinfo;
+ struct my_error_mgr jerr;
+ void* pScanline;
+ long nY;
// declare bCompCreated, bRet volatile because of gcc
// warning: variable 'bCompCreated' might be clobbered by `longjmp' or `vfork'
- volatile long bCompCreated = 0;
- volatile long bRet = 0;
+ volatile long bCompCreated = 0;
+ volatile long bRet = 0;
if ( setjmp( jerr.setjmp_buffer ) )
goto Exit;
diff --git a/svtools/source/filter.vcl/wmf/emfwr.cxx b/svtools/source/filter.vcl/wmf/emfwr.cxx
index c87ad02ed63e..ab59f1bf332e 100644
--- a/svtools/source/filter.vcl/wmf/emfwr.cxx
+++ b/svtools/source/filter.vcl/wmf/emfwr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -137,33 +137,33 @@
#define WIN_EMR_POLYTEXTOUTA 96
#define WIN_EMR_POLYTEXTOUTW 97
-#define WIN_SRCCOPY 0x00CC0020L
-#define WIN_SRCPAINT 0x00EE0086L
-#define WIN_SRCAND 0x008800C6L
-#define WIN_SRCINVERT 0x00660046L
+#define WIN_SRCCOPY 0x00CC0020L
+#define WIN_SRCPAINT 0x00EE0086L
+#define WIN_SRCAND 0x008800C6L
+#define WIN_SRCINVERT 0x00660046L
-#define HANDLE_INVALID 0xffffffff
-#define MAXHANDLES 65000
+#define HANDLE_INVALID 0xffffffff
+#define MAXHANDLES 65000
-#define LINE_SELECT 0x00000001
-#define FILL_SELECT 0x00000002
-#define TEXT_SELECT 0x00000004
+#define LINE_SELECT 0x00000001
+#define FILL_SELECT 0x00000002
+#define TEXT_SELECT 0x00000004
/* Text Alignment Options */
-#define TA_NOUPDATECP 0
-#define TA_UPDATECP 1
+#define TA_NOUPDATECP 0
+#define TA_UPDATECP 1
-#define TA_LEFT 0
-#define TA_RIGHT 2
-#define TA_CENTER 6
+#define TA_LEFT 0
+#define TA_RIGHT 2
+#define TA_CENTER 6
-#define TA_TOP 0
-#define TA_BOTTOM 8
-#define TA_BASELINE 24
-#define TA_RTLREADING 256
-#define TA_MASK (TA_BASELINE+TA_CENTER+TA_UPDATECP+TA_RTLREADING)
+#define TA_TOP 0
+#define TA_BOTTOM 8
+#define TA_BASELINE 24
+#define TA_RTLREADING 256
+#define TA_MASK (TA_BASELINE+TA_CENTER+TA_UPDATECP+TA_RTLREADING)
-#define MM_ANISOTROPIC 8
+#define MM_ANISOTROPIC 8
// -------------
// - EMFWriter -
@@ -178,21 +178,21 @@ BOOL EMFWriter::WriteEMF( const GDIMetaFile& rMtf, SvStream& rOStm, FilterConfig
mnHorTextAlign = mnHandleCount = mnLastPercent = mnRecordPos = mnRecordCount = 0;
mnLineHandle = mnFillHandle = mnTextHandle = HANDLE_INVALID;
mbRecordOpen = FALSE;
-
+
mpStm = &rOStm;
maVDev.EnableOutput( FALSE );
maVDev.SetMapMode( rMtf.GetPrefMapMode() );
mpFilterConfigItem = pFilterConfigItem;
// don't work with pixel as destination map mode -> higher resolution preferrable
- maDestMapMode.SetMapUnit( MAP_100TH_MM );
+ maDestMapMode.SetMapUnit( MAP_100TH_MM );
const Size aMtfSizePix( maVDev.LogicToPixel( rMtf.GetPrefSize(), rMtf.GetPrefMapMode() ) );
const Size aMtfSizeLog( maVDev.LogicToLogic( rMtf.GetPrefSize(), rMtf.GetPrefMapMode(), MAP_100TH_MM ) );
-
+
// seek over header
// use [MS-EMF 2.2.11] HeaderExtension2 Object, otherwise resulting EMF cannot be converted with GetWinMetaFileBits()
- rOStm.SeekRel( 108 );
+ rOStm.SeekRel( 108 );
// write initial values
@@ -227,16 +227,16 @@ BOOL EMFWriter::WriteEMF( const GDIMetaFile& rMtf, SvStream& rOStm, FilterConfig
ImplWrite( rMtf );
ImplBeginRecord( WIN_EMR_EOF );
- (*mpStm)<< (sal_uInt32)0 // nPalEntries
- << (sal_uInt32)0x10 // offPalEntries
- << (sal_uInt32)0x14; // nSizeLast
+ (*mpStm)<< (sal_uInt32)0 // nPalEntries
+ << (sal_uInt32)0x10 // offPalEntries
+ << (sal_uInt32)0x14; // nSizeLast
ImplEndRecord();
// write header
const ULONG nEndPos = mpStm->Tell(); mpStm->Seek( nHeaderPos );
-
- (*mpStm) << (UINT32) 0x00000001 << (UINT32) 108 //use [MS-EMF 2.2.11] HeaderExtension2 Object
+
+ (*mpStm) << (UINT32) 0x00000001 << (UINT32) 108 //use [MS-EMF 2.2.11] HeaderExtension2 Object
<< (INT32) 0 << (INT32) 0 << (INT32) ( aMtfSizePix.Width() - 1 ) << (INT32) ( aMtfSizePix.Height() - 1 )
<< (INT32) 0 << (INT32) 0 << (INT32) ( aMtfSizeLog.Width() - 1 ) << (INT32) ( aMtfSizeLog.Height() - 1 )
<< (UINT32) 0x464d4520 << (UINT32) 0x10000 << (UINT32) ( nEndPos - nHeaderPos )
@@ -247,7 +247,7 @@ BOOL EMFWriter::WriteEMF( const GDIMetaFile& rMtf, SvStream& rOStm, FilterConfig
<< (INT32) ( aMtfSizeLog.Width() * 10 ) << (INT32) ( aMtfSizeLog.Height() * 10 ); //use [MS-EMF 2.2.11] HeaderExtension2 Object
mpStm->Seek( nEndPos );
- delete[] mpHandlesUsed;
+ delete[] mpHandlesUsed;
return( mpStm->GetError() == ERRCODE_NONE );
}
@@ -308,7 +308,7 @@ void EMFWriter::ImplEndRecord()
sal_Int32 nFillBytes, nActPos = mpStm->Tell();
mpStm->Seek( mnRecordPos + 4 );
nFillBytes = nActPos - mnRecordPos;
- nFillBytes += 3; // each record has to be dword aligned
+ nFillBytes += 3; // each record has to be dword aligned
nFillBytes ^= 3;
nFillBytes &= 3;
*mpStm << (sal_uInt32)( ( nActPos - mnRecordPos ) + nFillBytes );
@@ -328,7 +328,7 @@ BOOL EMFWriter::ImplPrepareHandleSelect( sal_uInt32& rHandle, ULONG nSelectType
{
UINT32 nStockObject = 0x80000000;
- if( LINE_SELECT == nSelectType )
+ if( LINE_SELECT == nSelectType )
nStockObject |= 0x00000007;
else if( FILL_SELECT == nSelectType )
nStockObject |= 0x00000001;
@@ -339,13 +339,13 @@ BOOL EMFWriter::ImplPrepareHandleSelect( sal_uInt32& rHandle, ULONG nSelectType
ImplBeginRecord( WIN_EMR_SELECTOBJECT );
( *mpStm ) << nStockObject;
ImplEndRecord();
-
+
// destroy handle of created object
ImplBeginRecord( WIN_EMR_DELETEOBJECT );
( *mpStm ) << rHandle;
ImplEndRecord();
- // mark handle as free
+ // mark handle as free
ImplReleaseHandle( rHandle );
}
@@ -401,11 +401,11 @@ void EMFWriter::ImplCheckTextAttr()
{
if( mbTextChanged && ImplPrepareHandleSelect( mnTextHandle, TEXT_SELECT ) )
{
- const Font& rFont = maVDev.GetFont();
- String aFontName( rFont.GetName() );
- sal_Int32 nWeight;
- sal_uInt16 i;
- sal_uInt8 nPitchAndFamily;
+ const Font& rFont = maVDev.GetFont();
+ String aFontName( rFont.GetName() );
+ sal_Int32 nWeight;
+ sal_uInt16 i;
+ sal_uInt8 nPitchAndFamily;
ImplBeginRecord( WIN_EMR_EXTCREATEFONTINDIRECTW );
(*mpStm) << mnTextHandle;
@@ -413,7 +413,7 @@ void EMFWriter::ImplCheckTextAttr()
ImplWriteExtent( rFont.GetSize().Width() );
(*mpStm) << (INT32) rFont.GetOrientation() << (INT32) rFont.GetOrientation();
- switch( rFont.GetWeight() )
+ switch( rFont.GetWeight() )
{
case WEIGHT_THIN: nWeight = 100; break;
case WEIGHT_ULTRALIGHT: nWeight = 200; break;
@@ -425,9 +425,9 @@ void EMFWriter::ImplCheckTextAttr()
case WEIGHT_BOLD: nWeight = 700; break;
case WEIGHT_ULTRABOLD: nWeight = 800; break;
case WEIGHT_BLACK: nWeight = 900; break;
- default: nWeight = 0; break;
+ default: nWeight = 0; break;
}
-
+
(*mpStm) << nWeight;
(*mpStm) << (BYTE) ( ( ITALIC_NONE == rFont.GetItalic() ) ? 0 : 1 );
(*mpStm) << (BYTE) ( ( UNDERLINE_NONE == rFont.GetUnderline() ) ? 0 : 1 );
@@ -435,14 +435,14 @@ void EMFWriter::ImplCheckTextAttr()
(*mpStm) << (BYTE) ( ( RTL_TEXTENCODING_SYMBOL == rFont.GetCharSet() ) ? 2 : 0 );
(*mpStm) << (BYTE) 0 << (BYTE) 0 << (BYTE) 0;
- switch( rFont.GetPitch() )
+ switch( rFont.GetPitch() )
{
case PITCH_FIXED: nPitchAndFamily = 0x01; break;
case PITCH_VARIABLE: nPitchAndFamily = 0x02; break;
default: nPitchAndFamily = 0x00; break;
}
- switch( rFont.GetFamily() )
+ switch( rFont.GetFamily() )
{
case FAMILY_DECORATIVE: nPitchAndFamily |= 0x50; break;
case FAMILY_MODERN: nPitchAndFamily |= 0x30; break;
@@ -528,8 +528,8 @@ void EMFWriter::ImplWriteRasterOp( RasterOp eRop )
switch( eRop )
{
- case ROP_INVERT: nROP2 = 6; break;
- case ROP_XOR: nROP2 = 7; break;
+ case ROP_INVERT: nROP2 = 6; break;
+ case ROP_XOR: nROP2 = 7; break;
default: nROP2 = 13;break;
}
@@ -609,8 +609,8 @@ void EMFWriter::ImplWritePolyPolygonRecord( const PolyPolygon& rPolyPoly )
ImplWritePolygonRecord( rPolyPoly[ 0 ], TRUE );
else
{
- sal_Bool bHasFlags = sal_False;
- sal_uInt32 nTotalPoints = 0;
+ sal_Bool bHasFlags = sal_False;
+ sal_uInt32 nTotalPoints = 0;
for( i = 0; i < nPolyCount; i++ )
{
@@ -674,12 +674,12 @@ void EMFWriter::ImplWritePath( const PolyPolygon& rPolyPoly, sal_Bool bClosed )
n++;
continue;
}
-
+
sal_uInt16 nBezPoints = 0;
-
+
while ( ( ( nBezPoints + n + 2 ) < rPoly.GetSize() ) && ( rPoly.GetFlags( nBezPoints + n ) == POLY_CONTROL ) )
nBezPoints += 3;
-
+
if ( nBezPoints )
{
ImplBeginRecord( WIN_EMR_POLYBEZIERTO );
@@ -699,12 +699,12 @@ void EMFWriter::ImplWritePath( const PolyPolygon& rPolyPoly, sal_Bool bClosed )
sal_uInt16 nPoints = 1;
while( ( nPoints + n ) < rPoly.GetSize() && ( rPoly.GetFlags( nPoints + n ) != POLY_CONTROL ) )
nPoints++;
-
+
if ( nPoints > 1 )
{
ImplBeginRecord( WIN_EMR_POLYLINETO );
Polygon aNewPoly( nPoints + 1 );
- aNewPoly[ 0 ] = rPoly[ n - 1];
+ aNewPoly[ 0 ] = rPoly[ n - 1];
for ( o = 1; o <= nPoints; o++ )
aNewPoly[ o ] = rPoly[ n - 1 + o ];
ImplWriteRect( aNewPoly.GetBoundRect() );
@@ -737,19 +737,19 @@ void EMFWriter::ImplWritePath( const PolyPolygon& rPolyPoly, sal_Bool bClosed )
// -----------------------------------------------------------------------------
-void EMFWriter::ImplWriteBmpRecord( const Bitmap& rBmp, const Point& rPt,
+void EMFWriter::ImplWriteBmpRecord( const Bitmap& rBmp, const Point& rPt,
const Size& rSz, UINT32 nROP )
{
if( !!rBmp )
{
- SvMemoryStream aMemStm( 65535, 65535 );
- const Size aBmpSizePixel( rBmp.GetSizePixel() );
+ SvMemoryStream aMemStm( 65535, 65535 );
+ const Size aBmpSizePixel( rBmp.GetSizePixel() );
ImplBeginRecord( WIN_EMR_STRETCHDIBITS );
ImplWriteRect( Rectangle( rPt, rSz ) );
ImplWritePoint( rPt );
(*mpStm) << (INT32) 0 << (INT32) 0 << (INT32) aBmpSizePixel.Width() << (INT32) aBmpSizePixel.Height();
-
+
// write offset positions and sizes later
const ULONG nOffPos = mpStm->Tell();
mpStm->SeekRel( 16 );
@@ -759,8 +759,8 @@ void EMFWriter::ImplWriteBmpRecord( const Bitmap& rBmp, const Point& rPt,
rBmp.Write( aMemStm, TRUE, FALSE );
- UINT32 nDIBSize = aMemStm.Tell(), nHeaderSize, nCompression, nColsUsed, nPalCount, nImageSize;
- UINT16 nBitCount;
+ UINT32 nDIBSize = aMemStm.Tell(), nHeaderSize, nCompression, nColsUsed, nPalCount, nImageSize;
+ UINT16 nBitCount;
// get DIB parameters
aMemStm.Seek( 0 );
@@ -770,7 +770,7 @@ void EMFWriter::ImplWriteBmpRecord( const Bitmap& rBmp, const Point& rPt,
aMemStm.SeekRel( 8 );
aMemStm >> nColsUsed;
- nPalCount = ( nBitCount <= 8 ) ? ( nColsUsed ? nColsUsed : ( 1 << (UINT32) nBitCount ) ) :
+ nPalCount = ( nBitCount <= 8 ) ? ( nColsUsed ? nColsUsed : ( 1 << (UINT32) nBitCount ) ) :
( ( 3 == nCompression ) ? 12 : 0 );
mpStm->Write( aMemStm.GetData(), nDIBSize );
@@ -793,9 +793,9 @@ void EMFWriter::ImplWriteTextRecord( const Point& rPos, const String rText, cons
if( nLen )
{
- sal_uInt32 nNormWidth;
- sal_Int32* pOwnArray;
- sal_Int32* pDX;
+ sal_uInt32 nNormWidth;
+ sal_Int32* pOwnArray;
+ sal_Int32* pDX;
// get text sizes
if( pDXArray )
@@ -805,7 +805,7 @@ void EMFWriter::ImplWriteTextRecord( const Point& rPos, const String rText, cons
pDX = (sal_Int32*) pDXArray;
}
else
- {
+ {
pOwnArray = new sal_Int32[ nLen ];
nNormWidth = maVDev.GetTextArray( rText, pOwnArray );
pDX = pOwnArray;
@@ -905,12 +905,12 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
{
for( ULONG j = 0, nActionCount = rMtf.GetActionCount(); j < nActionCount; j++ )
{
- const MetaAction* pAction = rMtf.GetAction( j );
- const USHORT nType = pAction->GetType();
+ const MetaAction* pAction = rMtf.GetAction( j );
+ const USHORT nType = pAction->GetType();
switch( nType )
{
- case( META_PIXEL_ACTION ):
+ case( META_PIXEL_ACTION ):
{
const MetaPixelAction* pA = (const MetaPixelAction*) pAction;
@@ -922,7 +922,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
}
break;
- case( META_POINT_ACTION ):
+ case( META_POINT_ACTION ):
{
if( maVDev.IsLineColor() )
{
@@ -946,7 +946,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
if(pA->GetLineInfo().IsDefault())
{
ImplCheckLineAttr();
-
+
ImplBeginRecord( WIN_EMR_MOVETOEX );
ImplWritePoint( pA->GetStartPoint() );
ImplEndRecord();
@@ -988,7 +988,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
}
break;
- case( META_ROUNDRECT_ACTION ):
+ case( META_ROUNDRECT_ACTION ):
{
if( maVDev.IsLineColor() || maVDev.IsFillColor() )
{
@@ -1023,7 +1023,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case( META_ARC_ACTION ):
case( META_PIE_ACTION ):
- case( META_CHORD_ACTION ):
+ case( META_CHORD_ACTION ):
case( META_POLYGON_ACTION ):
{
if( maVDev.IsLineColor() || maVDev.IsFillColor() )
@@ -1046,13 +1046,13 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
}
break;
- case( META_CHORD_ACTION ):
+ case( META_CHORD_ACTION ):
{
const MetaChordAction* pA = (const MetaChordAction*) pAction;
aPoly = Polygon( pA->GetRect(), pA->GetStartPoint(), pA->GetEndPoint(), POLY_CHORD );
}
break;
-
+
case( META_POLYGON_ACTION ):
aPoly = ( (const MetaPolygonAction*) pAction )->GetPolygon();
break;
@@ -1067,8 +1067,8 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
{
if( maVDev.IsLineColor() )
{
- const MetaPolyLineAction* pA = (const MetaPolyLineAction*) pAction;
- const Polygon& rPoly = pA->GetPolygon();
+ const MetaPolyLineAction* pA = (const MetaPolyLineAction*) pAction;
+ const Polygon& rPoly = pA->GetPolygon();
if( rPoly.GetSize() )
{
@@ -1095,8 +1095,8 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case( META_GRADIENT_ACTION ):
{
- const MetaGradientAction* pA = (const MetaGradientAction*) pAction;
- GDIMetaFile aTmpMtf;
+ const MetaGradientAction* pA = (const MetaGradientAction*) pAction;
+ GDIMetaFile aTmpMtf;
maVDev.AddGradientActions( pA->GetRect(), pA->GetGradient(), aTmpMtf );
ImplWrite( aTmpMtf );
@@ -1105,8 +1105,8 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_HATCH_ACTION:
{
- const MetaHatchAction* pA = (const MetaHatchAction*) pAction;
- GDIMetaFile aTmpMtf;
+ const MetaHatchAction* pA = (const MetaHatchAction*) pAction;
+ GDIMetaFile aTmpMtf;
maVDev.AddHatchActions( pA->GetPolyPolygon(), pA->GetHatch(), aTmpMtf );
ImplWrite( aTmpMtf );
@@ -1124,15 +1124,15 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_FLOATTRANSPARENT_ACTION:
{
const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pAction;
-
- GDIMetaFile aTmpMtf( pA->GetGDIMetaFile() );
- Point aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
- const Size aSrcSize( aTmpMtf.GetPrefSize() );
- const Point aDestPt( pA->GetPoint() );
- const Size aDestSize( pA->GetSize() );
- const double fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
- const double fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
- long nMoveX, nMoveY;
+
+ GDIMetaFile aTmpMtf( pA->GetGDIMetaFile() );
+ Point aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
+ const Size aSrcSize( aTmpMtf.GetPrefSize() );
+ const Point aDestPt( pA->GetPoint() );
+ const Size aDestSize( pA->GetSize() );
+ const double fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
+ const double fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
+ long nMoveX, nMoveY;
if( fScaleX != 1.0 || fScaleY != 1.0 )
{
@@ -1154,8 +1154,8 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case( META_EPS_ACTION ):
{
- const MetaEPSAction* pA = (const MetaEPSAction*) pAction;
- const GDIMetaFile aSubstitute( pA->GetSubstitute() );
+ const MetaEPSAction* pA = (const MetaEPSAction*) pAction;
+ const GDIMetaFile aSubstitute( pA->GetSubstitute() );
for( ULONG i = 0, nCount = aSubstitute.GetActionCount(); i < nCount; i++ )
{
@@ -1166,7 +1166,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
ImplBeginRecord( WIN_EMR_SAVEDC );
ImplEndRecord();
- MapMode aMapMode( aSubstitute.GetPrefMapMode() );
+ MapMode aMapMode( aSubstitute.GetPrefMapMode() );
Size aOutSize( maVDev.LogicToLogic( pA->GetSize(), maVDev.GetMapMode(), aMapMode ) );
aMapMode.SetScaleX( Fraction( aOutSize.Width(), aSubstitute.GetPrefSize().Width() ) );
aMapMode.SetScaleY( Fraction( aOutSize.Height(), aSubstitute.GetPrefSize().Height() ) );
@@ -1200,8 +1200,8 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_BMPSCALEPART_ACTION:
{
- const MetaBmpScalePartAction* pA = (const MetaBmpScalePartAction*) pAction;
- Bitmap aTmp( pA->GetBitmap() );
+ const MetaBmpScalePartAction* pA = (const MetaBmpScalePartAction*) pAction;
+ Bitmap aTmp( pA->GetBitmap() );
if( aTmp.Crop( Rectangle( pA->GetSrcPoint(), pA->GetSrcSize() ) ) )
ImplWriteBmpRecord( aTmp, pA->GetDestPoint(), pA->GetDestSize(), WIN_SRCCOPY );
@@ -1210,9 +1210,9 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_BMPEX_ACTION:
{
- const MetaBmpExAction* pA = (const MetaBmpExAction *) pAction;
- Bitmap aBmp( pA->GetBitmapEx().GetBitmap() );
- Bitmap aMsk( pA->GetBitmapEx().GetMask() );
+ const MetaBmpExAction* pA = (const MetaBmpExAction *) pAction;
+ Bitmap aBmp( pA->GetBitmapEx().GetBitmap() );
+ Bitmap aMsk( pA->GetBitmapEx().GetMask() );
if( !!aMsk )
{
@@ -1228,9 +1228,9 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_BMPEXSCALE_ACTION:
{
- const MetaBmpExScaleAction* pA = (const MetaBmpExScaleAction*) pAction;
- Bitmap aBmp( pA->GetBitmapEx().GetBitmap() );
- Bitmap aMsk( pA->GetBitmapEx().GetMask() );
+ const MetaBmpExScaleAction* pA = (const MetaBmpExScaleAction*) pAction;
+ Bitmap aBmp( pA->GetBitmapEx().GetBitmap() );
+ Bitmap aMsk( pA->GetBitmapEx().GetMask() );
if( !!aMsk )
{
@@ -1246,11 +1246,11 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_BMPEXSCALEPART_ACTION:
{
- const MetaBmpExScalePartAction* pA = (const MetaBmpExScalePartAction*) pAction;
- BitmapEx aBmpEx( pA->GetBitmapEx() );
+ const MetaBmpExScalePartAction* pA = (const MetaBmpExScalePartAction*) pAction;
+ BitmapEx aBmpEx( pA->GetBitmapEx() );
aBmpEx.Crop( Rectangle( pA->GetSrcPoint(), pA->GetSrcSize() ) );
- Bitmap aBmp( aBmpEx.GetBitmap() );
- Bitmap aMsk( aBmpEx.GetMask() );
+ Bitmap aBmp( aBmpEx.GetBitmap() );
+ Bitmap aMsk( aBmpEx.GetMask() );
if( !!aMsk )
{
@@ -1266,8 +1266,8 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_TEXT_ACTION:
{
- const MetaTextAction* pA = (const MetaTextAction*) pAction;
- const String aText( pA->GetText(), pA->GetIndex(), pA->GetLen() );
+ const MetaTextAction* pA = (const MetaTextAction*) pAction;
+ const String aText( pA->GetText(), pA->GetIndex(), pA->GetLen() );
ImplCheckTextAttr();
ImplWriteTextRecord( pA->GetPoint(), aText, NULL, 0 );
@@ -1276,8 +1276,8 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_TEXTRECT_ACTION:
{
- const MetaTextRectAction* pA = (const MetaTextRectAction*) pAction;
- const String aText( pA->GetText() );
+ const MetaTextRectAction* pA = (const MetaTextRectAction*) pAction;
+ const String aText( pA->GetText() );
ImplCheckTextAttr();
ImplWriteTextRecord( pA->GetRect().TopLeft(), aText, NULL, 0 );
@@ -1286,8 +1286,8 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_TEXTARRAY_ACTION:
{
- const MetaTextArrayAction* pA = (const MetaTextArrayAction*) pAction;
- const String aText( pA->GetText(), pA->GetIndex(), pA->GetLen() );
+ const MetaTextArrayAction* pA = (const MetaTextArrayAction*) pAction;
+ const String aText( pA->GetText(), pA->GetIndex(), pA->GetLen() );
ImplCheckTextAttr();
ImplWriteTextRecord( pA->GetPoint(), aText, pA->GetDXArray(), 0 );
@@ -1296,32 +1296,32 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case META_STRETCHTEXT_ACTION:
{
- const MetaStretchTextAction* pA = (const MetaStretchTextAction*) pAction;
- const String aText( pA->GetText(), pA->GetIndex(), pA->GetLen() );
+ const MetaStretchTextAction* pA = (const MetaStretchTextAction*) pAction;
+ const String aText( pA->GetText(), pA->GetIndex(), pA->GetLen() );
ImplCheckTextAttr();
ImplWriteTextRecord( pA->GetPoint(), aText, NULL, pA->GetWidth() );
}
break;
-
- case( META_LINECOLOR_ACTION ):
+
+ case( META_LINECOLOR_ACTION ):
{
( (MetaAction*) pAction )->Execute( &maVDev );
mbLineChanged = TRUE;
}
break;
-
- case( META_FILLCOLOR_ACTION ):
+
+ case( META_FILLCOLOR_ACTION ):
{
( (MetaAction*) pAction )->Execute( &maVDev );
mbFillChanged = TRUE;
}
break;
- case( META_TEXTCOLOR_ACTION ):
+ case( META_TEXTCOLOR_ACTION ):
case( META_TEXTLINECOLOR_ACTION ):
- case( META_TEXTFILLCOLOR_ACTION ):
- case( META_TEXTALIGN_ACTION ):
+ case( META_TEXTFILLCOLOR_ACTION ):
+ case( META_TEXTALIGN_ACTION ):
case( META_FONT_ACTION ):
{
( (MetaAction*) pAction )->Execute( &maVDev );
@@ -1332,7 +1332,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case( META_ISECTRECTCLIPREGION_ACTION ):
{
( (MetaAction*) pAction )->Execute( &maVDev );
-
+
ImplBeginRecord( WIN_EMR_INTERSECTCLIPRECT );
ImplWriteRect( ( (MetaISectRectClipRegionAction*) pAction )->GetRect() );
ImplEndRecord();
@@ -1340,7 +1340,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
break;
case( META_CLIPREGION_ACTION ):
- case( META_ISECTREGIONCLIPREGION_ACTION ):
+ case( META_ISECTREGIONCLIPREGION_ACTION ):
case( META_MOVECLIPREGION_ACTION ):
{
( (MetaAction*) pAction )->Execute( &maVDev );
@@ -1355,7 +1355,7 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case( META_PUSH_ACTION ):
{
( (MetaAction*) pAction )->Execute( &maVDev );
-
+
ImplBeginRecord( WIN_EMR_SAVEDC );
ImplEndRecord();
}
@@ -1364,11 +1364,11 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
case( META_POP_ACTION ):
{
( (MetaAction*) pAction )->Execute( &maVDev );
-
+
ImplBeginRecord( WIN_EMR_RESTOREDC );
(*mpStm) << (INT32) -1;
ImplEndRecord();
-
+
ImplWriteRasterOp( maVDev.GetRasterOp() );
mbLineChanged = mbFillChanged = mbTextChanged = TRUE;
}
@@ -1397,9 +1397,9 @@ void EMFWriter::ImplWrite( const GDIMetaFile& rMtf )
}
case( META_MASK_ACTION ):
- case( META_MASKSCALE_ACTION ):
- case( META_MASKSCALEPART_ACTION ):
- case( META_WALLPAPER_ACTION ):
+ case( META_MASKSCALE_ACTION ):
+ case( META_MASKSCALEPART_ACTION ):
+ case( META_WALLPAPER_ACTION ):
case( META_TEXTLINE_ACTION ):
case( META_COMMENT_ACTION ):
case( META_GRADIENTEX_ACTION ):
diff --git a/svtools/source/filter.vcl/wmf/emfwr.hxx b/svtools/source/filter.vcl/wmf/emfwr.hxx
index d95176aef406..1fc77da16d39 100644
--- a/svtools/source/filter.vcl/wmf/emfwr.hxx
+++ b/svtools/source/filter.vcl/wmf/emfwr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,55 +47,55 @@ class EMFWriter
{
private:
- VirtualDevice maVDev;
- MapMode maDestMapMode;
- FilterConfigItem* mpFilterConfigItem;
- SvStream* mpStm;
- BOOL* mpHandlesUsed;
- ULONG mnHandleCount;
- ULONG mnLastPercent;
- ULONG mnRecordCount;
- ULONG mnRecordPos;
- BOOL mbRecordOpen;
- BOOL mbLineChanged;
- sal_uInt32 mnLineHandle;
- BOOL mbFillChanged;
- sal_uInt32 mnFillHandle;
- BOOL mbTextChanged;
- sal_uInt32 mnTextHandle;
- sal_uInt32 mnHorTextAlign;
-
- void ImplBeginRecord( sal_uInt32 nType );
- void ImplEndRecord();
-
- ULONG ImplAcquireHandle();
- void ImplReleaseHandle( ULONG nHandle );
-
- BOOL ImplPrepareHandleSelect( sal_uInt32& rHandle, ULONG nSelectType );
- void ImplCheckLineAttr();
- void ImplCheckFillAttr();
- void ImplCheckTextAttr();
-
- void ImplWriteColor( const Color& rColor );
- void ImplWriteRasterOp( RasterOp eRop );
- void ImplWriteExtent( long nExtent );
- void ImplWritePoint( const Point& rPoint );
- void ImplWriteSize( const Size& rSize);
- void ImplWriteRect( const Rectangle& rRect );
- void ImplWritePath( const PolyPolygon& rPolyPoly, sal_Bool bClose );
- void ImplWritePolygonRecord( const Polygon& rPoly, BOOL bClose );
- void ImplWritePolyPolygonRecord( const PolyPolygon& rPolyPoly );
- void ImplWriteBmpRecord( const Bitmap& rBmp, const Point& rPt, const Size& rSz, UINT32 nROP );
- void ImplWriteTextRecord( const Point& rPos, const String rText, const sal_Int32* pDXArray, sal_uInt32 nWidth );
+ VirtualDevice maVDev;
+ MapMode maDestMapMode;
+ FilterConfigItem* mpFilterConfigItem;
+ SvStream* mpStm;
+ BOOL* mpHandlesUsed;
+ ULONG mnHandleCount;
+ ULONG mnLastPercent;
+ ULONG mnRecordCount;
+ ULONG mnRecordPos;
+ BOOL mbRecordOpen;
+ BOOL mbLineChanged;
+ sal_uInt32 mnLineHandle;
+ BOOL mbFillChanged;
+ sal_uInt32 mnFillHandle;
+ BOOL mbTextChanged;
+ sal_uInt32 mnTextHandle;
+ sal_uInt32 mnHorTextAlign;
+
+ void ImplBeginRecord( sal_uInt32 nType );
+ void ImplEndRecord();
+
+ ULONG ImplAcquireHandle();
+ void ImplReleaseHandle( ULONG nHandle );
+
+ BOOL ImplPrepareHandleSelect( sal_uInt32& rHandle, ULONG nSelectType );
+ void ImplCheckLineAttr();
+ void ImplCheckFillAttr();
+ void ImplCheckTextAttr();
+
+ void ImplWriteColor( const Color& rColor );
+ void ImplWriteRasterOp( RasterOp eRop );
+ void ImplWriteExtent( long nExtent );
+ void ImplWritePoint( const Point& rPoint );
+ void ImplWriteSize( const Size& rSize);
+ void ImplWriteRect( const Rectangle& rRect );
+ void ImplWritePath( const PolyPolygon& rPolyPoly, sal_Bool bClose );
+ void ImplWritePolygonRecord( const Polygon& rPoly, BOOL bClose );
+ void ImplWritePolyPolygonRecord( const PolyPolygon& rPolyPoly );
+ void ImplWriteBmpRecord( const Bitmap& rBmp, const Point& rPt, const Size& rSz, UINT32 nROP );
+ void ImplWriteTextRecord( const Point& rPos, const String rText, const sal_Int32* pDXArray, sal_uInt32 nWidth );
void Impl_handleLineInfoPolyPolygons(const LineInfo& rInfo, const basegfx::B2DPolygon& rLinePolygon);
- void ImplWrite( const GDIMetaFile& rMtf );
+ void ImplWrite( const GDIMetaFile& rMtf );
public:
EMFWriter() {}
- BOOL WriteEMF( const GDIMetaFile& rMtf, SvStream& rOStm, FilterConfigItem* pConfigItem = NULL );
+ BOOL WriteEMF( const GDIMetaFile& rMtf, SvStream& rOStm, FilterConfigItem* pConfigItem = NULL );
};
#endif // _EMFWR_HXX
diff --git a/svtools/source/filter.vcl/wmf/enhwmf.cxx b/svtools/source/filter.vcl/wmf/enhwmf.cxx
index 430a232724c7..1dd5c64ce11e 100644
--- a/svtools/source/filter.vcl/wmf/enhwmf.cxx
+++ b/svtools/source/filter.vcl/wmf/enhwmf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -138,8 +138,8 @@
#define EMR_SETCOLORSPACE 100
#define EMR_DELETECOLORSPACE 101
#define EMR_GLSRECORD 102
-#define EMR_GLSBOUNDEDRECORD 103
-#define EMR_PIXELFORMAT 104
+#define EMR_GLSBOUNDEDRECORD 103
+#define EMR_PIXELFORMAT 104
// WINDOWS VERSION >= 0x500
#define EMR_DRAWESCAPE 105
@@ -168,9 +168,9 @@
// currently unused
static float GetSwapFloat( SvStream& rSt )
{
- float fTmp;
+ float fTmp;
sal_Int8* pPtr = (sal_Int8*)&fTmp;
- rSt >> pPtr[3] >> pPtr[2] >> pPtr[1] >> pPtr[0]; // Little Endian <-> Big Endian switch
+ rSt >> pPtr[3] >> pPtr[2] >> pPtr[1] >> pPtr[0]; // Little Endian <-> Big Endian switch
return fTmp;
}
#endif
@@ -186,7 +186,7 @@ SvStream& operator>>( SvStream& rIn, XForm& rXForm )
{
#ifdef OSL_BIGENDIAN
rXForm.eM11 = GetSwapFloat( rIn );
- rXForm.eM12 = GetSwapFloat( rIn );
+ rXForm.eM12 = GetSwapFloat( rIn );
rXForm.eM21 = GetSwapFloat( rIn );
rXForm.eM22 = GetSwapFloat( rIn );
rXForm.eDx = GetSwapFloat( rIn );
@@ -341,7 +341,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
sal_Int32 nX32, nY32, nx32, ny32;
sal_Int16 nX16, nY16;
- sal_Bool bFlag, bStatus = ReadHeader();
+ sal_Bool bFlag, bStatus = ReadHeader();
sal_Bool bHaveDC = false;
#ifdef UNX
@@ -355,7 +355,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
{
*pWMF >> nRecType >> nRecSize;
- if ( ( nRecSize < 8 ) || ( nRecSize & 3 ) ) // Parameter sind immer durch 4 teilbar
+ if ( ( nRecSize < 8 ) || ( nRecSize & 3 ) ) // Parameter sind immer durch 4 teilbar
{
bStatus = FALSE;
break;
@@ -464,9 +464,9 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_POLYPOLYLINE :
{
- UINT16* pnPoints;
+ UINT16* pnPoints;
- INT32 i, nPoly;
+ INT32 i, nPoly;
pWMF->SeekRel( 0x10 );
// Anzahl der Polygone:
@@ -505,10 +505,10 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_POLYPOLYGON :
{
- UINT16* pnPoints;
- Point* pPtAry;
+ UINT16* pnPoints;
+ Point* pPtAry;
- UINT32 i, nPoly, nGesPoints;
+ UINT32 i, nPoly, nGesPoints;
pWMF->SeekRel( 0x10 );
// Anzahl der Polygone:
@@ -519,7 +519,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
if ( ( nPoly * sizeof(UINT16) ) <= ( nEndPos - pWMF->Tell() ) )
{
pnPoints = new UINT16[ nPoly ];
-
+
for ( i = 0; i < nPoly; i++ )
{
*pWMF >> nPoints;
@@ -530,7 +530,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
{
// Polygonpunkte holen:
pPtAry = new Point[ nGesPoints ];
-
+
for ( i = 0; i < nGesPoints; i++ )
{
*pWMF >> nX32 >> nY32;
@@ -548,7 +548,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
break;
case EMR_SETWINDOWEXTEX :
- { // #75383#
+ { // #75383#
*pWMF >> nW >> nH;
pOut->SetWinExt( Size( nW, nH ) );
}
@@ -590,7 +590,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
break;
case EMR_EOF :
- nRecordCount = 0; // #76846#
+ nRecordCount = 0; // #76846#
break;
case EMR_SETPIXELV :
@@ -693,8 +693,8 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_MODIFYWORLDTRANSFORM :
{
- UINT32 nMode;
- XForm aTempXForm;
+ UINT32 nMode;
+ XForm aTempXForm;
*pWMF >> aTempXForm >> nMode;
pOut->ModifyWorldTransform( aTempXForm, nMode );
}
@@ -713,9 +713,9 @@ BOOL EnhWMFReader::ReadEnhWMF()
if ( ( nIndex & ENHMETA_STOCK_OBJECT ) == 0 )
{
- LineInfo aLineInfo;
- UINT32 nStyle;
- Size aSize;
+ LineInfo aLineInfo;
+ UINT32 nStyle;
+ Size aSize;
*pWMF >> nStyle >> aSize.Width() >> aSize.Height();
@@ -762,7 +762,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
sal_Int32 elpHatch;
sal_uInt32 offBmi, cbBmi, offBits, cbBits, nStyle, nWidth, nBrushStyle, elpNumEntries;
Color aColorRef;
-
+
*pWMF >> nIndex;
if ( ( nIndex & ENHMETA_STOCK_OBJECT ) == 0 )
{
@@ -770,7 +770,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
aColorRef = ReadColor();
*pWMF >> elpHatch >> elpNumEntries;
- LineInfo aLineInfo;
+ LineInfo aLineInfo;
if ( nWidth )
aLineInfo.SetWidth( nWidth );
@@ -813,7 +813,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_CREATEBRUSHINDIRECT :
{
- UINT32 nStyle;
+ UINT32 nStyle;
*pWMF >> nIndex;
if ( ( nIndex & ENHMETA_STOCK_OBJECT ) == 0 )
{
@@ -949,14 +949,14 @@ BOOL EnhWMFReader::ReadEnhWMF()
}
break;
- case EMR_BITBLT : // PASSTHROUGH INTENDED
+ case EMR_BITBLT : // PASSTHROUGH INTENDED
case EMR_STRETCHBLT :
{
- INT32 xDest, yDest, cxDest, cyDest, xSrc, ySrc, cxSrc, cySrc;
- UINT32 dwRop, iUsageSrc, offBmiSrc, cbBmiSrc, offBitsSrc, cbBitsSrc;
- XForm xformSrc;
+ INT32 xDest, yDest, cxDest, cyDest, xSrc, ySrc, cxSrc, cySrc;
+ UINT32 dwRop, iUsageSrc, offBmiSrc, cbBmiSrc, offBitsSrc, cbBitsSrc;
+ XForm xformSrc;
- UINT32 nStart = pWMF->Tell() - 8;
+ UINT32 nStart = pWMF->Tell() - 8;
pWMF->SeekRel( 0x10 );
*pWMF >> xDest >> yDest >> cxDest >> cyDest >> dwRop >> xSrc >> ySrc
@@ -968,11 +968,11 @@ BOOL EnhWMFReader::ReadEnhWMF()
else
cxSrc = cySrc = 0;
- Bitmap aBitmap;
- Rectangle aRect( Point( xDest, yDest ), Size( cxDest+1, cyDest+1 ) );
+ Bitmap aBitmap;
+ Rectangle aRect( Point( xDest, yDest ), Size( cxDest+1, cyDest+1 ) );
- cxDest = abs( (int)cxDest ); // sj: i37894, size can be negative
- cyDest = abs( (int)cyDest ); // and also 122889
+ cxDest = abs( (int)cxDest ); // sj: i37894, size can be negative
+ cyDest = abs( (int)cyDest ); // and also 122889
if ( (cbBitsSrc > (SAL_MAX_UINT32 - 14)) || ((SAL_MAX_UINT32 - 14) - cbBitsSrc < cbBmiSrc) )
bStatus = FALSE;
@@ -998,7 +998,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
aBitmap.Read( aTmp, TRUE );
// test if it is sensible to crop
- if ( ( cxSrc > 0 ) && ( cySrc > 0 ) &&
+ if ( ( cxSrc > 0 ) && ( cySrc > 0 ) &&
( xSrc >= 0 ) && ( ySrc >= 0 ) &&
( xSrc + cxSrc <= aBitmap.GetSizePixel().Width() ) &&
( ySrc + cySrc <= aBitmap.GetSizePixel().Height() ) )
@@ -1017,19 +1017,19 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_STRETCHDIBITS :
{
- INT32 xDest, yDest, xSrc, ySrc, cxSrc, cySrc, cxDest, cyDest;
- UINT32 offBmiSrc, cbBmiSrc, offBitsSrc, cbBitsSrc, iUsageSrc, dwRop;
- UINT32 nStart = pWMF->Tell() - 8;
+ INT32 xDest, yDest, xSrc, ySrc, cxSrc, cySrc, cxDest, cyDest;
+ UINT32 offBmiSrc, cbBmiSrc, offBitsSrc, cbBitsSrc, iUsageSrc, dwRop;
+ UINT32 nStart = pWMF->Tell() - 8;
pWMF->SeekRel( 0x10 );
*pWMF >> xDest >> yDest >> xSrc >> ySrc >> cxSrc >> cySrc >> offBmiSrc >> cbBmiSrc >> offBitsSrc
>> cbBitsSrc >> iUsageSrc >> dwRop >> cxDest >> cyDest;
- Bitmap aBitmap;
- Rectangle aRect( Point( xDest, yDest ), Size( cxDest+1, cyDest+1 ) );
+ Bitmap aBitmap;
+ Rectangle aRect( Point( xDest, yDest ), Size( cxDest+1, cyDest+1 ) );
- cxDest = abs( (int)cxDest ); // sj: i37894, size can be negative
- cyDest = abs( (int)cyDest ); // and also 122889
+ cxDest = abs( (int)cxDest ); // sj: i37894, size can be negative
+ cyDest = abs( (int)cyDest ); // and also 122889
if ( (cbBitsSrc > (SAL_MAX_UINT32 - 14)) || ((SAL_MAX_UINT32 - 14) - cbBitsSrc < cbBmiSrc) )
bStatus = FALSE;
@@ -1055,7 +1055,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
aBitmap.Read( aTmp, TRUE );
// test if it is sensible to crop
- if ( ( cxSrc > 0 ) && ( cySrc > 0 ) &&
+ if ( ( cxSrc > 0 ) && ( cySrc > 0 ) &&
( xSrc >= 0 ) && ( ySrc >= 0 ) &&
( xSrc + cxSrc <= aBitmap.GetSizePixel().Width() ) &&
( ySrc + cySrc <= aBitmap.GetSizePixel().Height() ) )
@@ -1077,7 +1077,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
{
LOGFONTW aLogFont;
*pWMF >> aLogFont.lfHeight >> aLogFont.lfWidth >> aLogFont.lfEscapement >> aLogFont.lfOrientation >> aLogFont.lfWeight >> aLogFont.lfItalic
- >> aLogFont.lfUnderline >> aLogFont.lfStrikeOut >> aLogFont.lfCharSet >> aLogFont.lfOutPrecision >> aLogFont.lfClipPrecision
+ >> aLogFont.lfUnderline >> aLogFont.lfStrikeOut >> aLogFont.lfCharSet >> aLogFont.lfOutPrecision >> aLogFont.lfClipPrecision
>> aLogFont.lfQuality >> aLogFont.lfPitchAndFamily;
sal_Unicode lfFaceName[ LF_FACESIZE ];
@@ -1098,9 +1098,9 @@ BOOL EnhWMFReader::ReadEnhWMF()
bFlag = sal_True;
case EMR_EXTTEXTOUTW :
{
- sal_Int32 nLeft, nTop, nRight, nBottom, ptlReferenceX, ptlReferenceY, nGfxMode, nXScale, nYScale;
- sal_uInt32 nCurPos, nLen, nOffString, nOptions, offDx;
- sal_Int32* pDX = NULL;
+ sal_Int32 nLeft, nTop, nRight, nBottom, ptlReferenceX, ptlReferenceY, nGfxMode, nXScale, nYScale;
+ sal_uInt32 nCurPos, nLen, nOffString, nOptions, offDx;
+ sal_Int32* pDX = NULL;
nCurPos = pWMF->Tell() - 8;
@@ -1200,7 +1200,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
*pWMF >> nX16 >> nY16;
aPoly[ i ] = Point( nX16, nY16 );
}
- pOut->DrawPolyBezier( aPoly, bFlag, bRecordPath ); // Line( aPoly, bFlag );
+ pOut->DrawPolyBezier( aPoly, bFlag, bRecordPath ); // Line( aPoly, bFlag );
}
break;
@@ -1243,9 +1243,9 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_POLYPOLYLINE16 :
{
- UINT16* pnPoints;
+ UINT16* pnPoints;
- INT32 i, nPoly, nGesPoints;
+ INT32 i, nPoly, nGesPoints;
pWMF->SeekRel( 0x10 );
// Anzahl der Polygone:
*pWMF >> nPoly >> nGesPoints;
@@ -1280,10 +1280,10 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_POLYPOLYGON16 :
{
- UINT16* pnPoints;
- Point* pPtAry;
+ UINT16* pnPoints;
+ Point* pPtAry;
- UINT32 i, nPoly, nGesPoints;
+ UINT32 i, nPoly, nGesPoints;
pWMF->SeekRel( 0x10 );
// Anzahl der Polygone:
*pWMF >> nPoly >> nGesPoints;
@@ -1306,7 +1306,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
*pWMF >> nX16 >> nY16;
pPtAry[ i ] = Point( nX16, nY16 );
}
-
+
// PolyPolygon Actions erzeugen
PolyPolygon aPolyPoly( (UINT16)nPoly, pnPoints, pPtAry );
pOut->DrawPolyPolygon( aPolyPoly, bRecordPath );
@@ -1337,7 +1337,7 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_CREATEDIBPATTERNBRUSHPT :
{
- UINT32 nStart = pWMF->Tell() - 8;
+ UINT32 nStart = pWMF->Tell() - 8;
Bitmap aBitmap;
*pWMF >> nIndex;
@@ -1356,10 +1356,10 @@ BOOL EnhWMFReader::ReadEnhWMF()
bStatus = FALSE;
else if ( offBmi )
{
- UINT32 nSize = cbBmi + cbBits + 14;
+ UINT32 nSize = cbBmi + cbBits + 14;
if ( nSize <= ( nEndPos - nStartPos ) )
{
- char* pBuf = new char[ nSize ];
+ char* pBuf = new char[ nSize ];
SvMemoryStream aTmp( pBuf, nSize, STREAM_READ | STREAM_WRITE );
aTmp.ObjectOwnsMemory( TRUE );
@@ -1391,24 +1391,24 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_FRAMERGN : WinMtfAssertHandler( "FrameRgn" ); break;
case EMR_INVERTRGN : WinMtfAssertHandler( "InvertRgn" ); break;
case EMR_PAINTRGN : WinMtfAssertHandler( "PaintRgn" ); break;
- case EMR_FLATTENPATH : WinMtfAssertHandler( "FlattenPath" ); break;
+ case EMR_FLATTENPATH : WinMtfAssertHandler( "FlattenPath" ); break;
case EMR_WIDENPATH : WinMtfAssertHandler( "WidenPath" ); break;
- case EMR_POLYDRAW : WinMtfAssertHandler( "Polydraw" ); break;
- case EMR_SETARCDIRECTION : WinMtfAssertHandler( "SetArcDirection" ); break;
+ case EMR_POLYDRAW : WinMtfAssertHandler( "Polydraw" ); break;
+ case EMR_SETARCDIRECTION : WinMtfAssertHandler( "SetArcDirection" ); break;
case EMR_SETPALETTEENTRIES : WinMtfAssertHandler( "SetPaletteEntries" ); break;
- case EMR_RESIZEPALETTE : WinMtfAssertHandler( "ResizePalette" ); break;
- case EMR_EXTFLOODFILL : WinMtfAssertHandler( "ExtFloodFill" ); break;
- case EMR_ANGLEARC : WinMtfAssertHandler( "AngleArc" ); break;
- case EMR_SETCOLORADJUSTMENT : WinMtfAssertHandler( "SetColorAdjustment" ); break;
- case EMR_POLYDRAW16 : WinMtfAssertHandler( "PolyDraw16" ); break;
- case EMR_POLYTEXTOUTA : WinMtfAssertHandler( "PolyTextOutA" ); break;
- case EMR_POLYTEXTOUTW : WinMtfAssertHandler( "PolyTextOutW" ); break;
- case EMR_CREATECOLORSPACE : WinMtfAssertHandler( "CreateColorSpace" ); break;
- case EMR_SETCOLORSPACE : WinMtfAssertHandler( "SetColorSpace" ); break;
- case EMR_DELETECOLORSPACE : WinMtfAssertHandler( "DeleteColorSpace" ); break;
- case EMR_GLSRECORD : WinMtfAssertHandler( "GlsRecord" ); break;
- case EMR_GLSBOUNDEDRECORD : WinMtfAssertHandler( "GlsBoundRecord" ); break;
- case EMR_PIXELFORMAT : WinMtfAssertHandler( "PixelFormat" ); break;
+ case EMR_RESIZEPALETTE : WinMtfAssertHandler( "ResizePalette" ); break;
+ case EMR_EXTFLOODFILL : WinMtfAssertHandler( "ExtFloodFill" ); break;
+ case EMR_ANGLEARC : WinMtfAssertHandler( "AngleArc" ); break;
+ case EMR_SETCOLORADJUSTMENT : WinMtfAssertHandler( "SetColorAdjustment" ); break;
+ case EMR_POLYDRAW16 : WinMtfAssertHandler( "PolyDraw16" ); break;
+ case EMR_POLYTEXTOUTA : WinMtfAssertHandler( "PolyTextOutA" ); break;
+ case EMR_POLYTEXTOUTW : WinMtfAssertHandler( "PolyTextOutW" ); break;
+ case EMR_CREATECOLORSPACE : WinMtfAssertHandler( "CreateColorSpace" ); break;
+ case EMR_SETCOLORSPACE : WinMtfAssertHandler( "SetColorSpace" ); break;
+ case EMR_DELETECOLORSPACE : WinMtfAssertHandler( "DeleteColorSpace" ); break;
+ case EMR_GLSRECORD : WinMtfAssertHandler( "GlsRecord" ); break;
+ case EMR_GLSBOUNDEDRECORD : WinMtfAssertHandler( "GlsBoundRecord" ); break;
+ case EMR_PIXELFORMAT : WinMtfAssertHandler( "PixelFormat" ); break;
case EMR_DRAWESCAPE : WinMtfAssertHandler( "DrawEscape" ); break;
case EMR_EXTESCAPE : WinMtfAssertHandler( "ExtEscape" ); break;
case EMR_STARTDOC : WinMtfAssertHandler( "StartDoc" ); break;
@@ -1424,21 +1424,21 @@ BOOL EnhWMFReader::ReadEnhWMF()
case EMR_GRADIENTFILL : WinMtfAssertHandler( "GradientFill" ); break;
case EMR_SETLINKEDUFIS : WinMtfAssertHandler( "SetLinkedUFIS" ); break;
- case EMR_SETMAPPERFLAGS : WinMtfAssertHandler( "SetMapperFlags", 0 ); break;
- case EMR_SETICMMODE : WinMtfAssertHandler( "SetICMMode", 0 ); break;
+ case EMR_SETMAPPERFLAGS : WinMtfAssertHandler( "SetMapperFlags", 0 ); break;
+ case EMR_SETICMMODE : WinMtfAssertHandler( "SetICMMode", 0 ); break;
case EMR_CREATEMONOBRUSH : WinMtfAssertHandler( "CreateMonoBrush", 0 ); break;
- case EMR_SETBRUSHORGEX : WinMtfAssertHandler( "SetBrushOrgEx", 0 ); break;
- case EMR_SETMETARGN : WinMtfAssertHandler( "SetMetArgn", 0 ); break;
- case EMR_SETMITERLIMIT : WinMtfAssertHandler( "SetMiterLimit", 0 ); break;
+ case EMR_SETBRUSHORGEX : WinMtfAssertHandler( "SetBrushOrgEx", 0 ); break;
+ case EMR_SETMETARGN : WinMtfAssertHandler( "SetMetArgn", 0 ); break;
+ case EMR_SETMITERLIMIT : WinMtfAssertHandler( "SetMiterLimit", 0 ); break;
case EMR_EXCLUDECLIPRECT : WinMtfAssertHandler( "ExcludeClipRect", 0 ); break;
- case EMR_REALIZEPALETTE : WinMtfAssertHandler( "RealizePalette", 0 ); break;
- case EMR_SELECTPALETTE : WinMtfAssertHandler( "SelectPalette", 0 ); break;
- case EMR_CREATEPALETTE : WinMtfAssertHandler( "CreatePalette", 0 ); break;
+ case EMR_REALIZEPALETTE : WinMtfAssertHandler( "RealizePalette", 0 ); break;
+ case EMR_SELECTPALETTE : WinMtfAssertHandler( "SelectPalette", 0 ); break;
+ case EMR_CREATEPALETTE : WinMtfAssertHandler( "CreatePalette", 0 ); break;
case EMR_ALPHADIBBLEND : WinMtfAssertHandler( "AlphaDibBlend", 0 ); break;
case EMR_SETTEXTJUSTIFICATION : WinMtfAssertHandler( "SetTextJustification", 0 ); break;
case EMR_GDICOMMENT :
- case EMR_HEADER : // has already been read at ReadHeader()
+ case EMR_HEADER : // has already been read at ReadHeader()
break;
#endif
}
@@ -1457,17 +1457,17 @@ BOOL EnhWMFReader::ReadEnhWMF()
BOOL EnhWMFReader::ReadHeader()
{
- UINT32 nUINT32, nHeaderSize, nPalEntries;
- INT32 nLeft, nTop, nRight, nBottom;
+ UINT32 nUINT32, nHeaderSize, nPalEntries;
+ INT32 nLeft, nTop, nRight, nBottom;
// METAFILEHEADER SPARE ICH MIR HIER
// Einlesen des METAHEADER
*pWMF >> nUINT32 >> nHeaderSize;
- if ( nUINT32 != 1 ) // Typ
+ if ( nUINT32 != 1 ) // Typ
return FALSE;
// bound size
- Rectangle rclBounds; // rectangle in logical units 1/100th mm
+ Rectangle rclBounds; // rectangle in logical units 1/100th mm
*pWMF >> nLeft >> nTop >> nRight >> nBottom;
rclBounds.Left() = nLeft;
rclBounds.Top() = nTop;
@@ -1475,23 +1475,23 @@ BOOL EnhWMFReader::ReadHeader()
rclBounds.Bottom() = nBottom;
// picture frame size
- Rectangle rclFrame; // rectangle in device units
+ Rectangle rclFrame; // rectangle in device units
*pWMF >> nLeft >> nTop >> nRight >> nBottom;
rclFrame.Left() = nLeft;
rclFrame.Top() = nTop;
rclFrame.Right() = nRight;
rclFrame.Bottom() = nBottom;
- *pWMF >> nUINT32; // signature
+ *pWMF >> nUINT32; // signature
if ( nUINT32 != 0x464d4520 )
return FALSE;
- *pWMF >> nUINT32; // nVersion
- *pWMF >> nEndPos; // size of metafile
+ *pWMF >> nUINT32; // nVersion
+ *pWMF >> nEndPos; // size of metafile
nEndPos += nStartPos;
- sal_uInt32 nStrmPos = pWMF->Tell(); // checking if nEndPos is valid
+ sal_uInt32 nStrmPos = pWMF->Tell(); // checking if nEndPos is valid
pWMF->Seek( STREAM_SEEK_TO_END );
if ( pWMF->Tell() < nEndPos )
nEndPos = pWMF->Tell();
diff --git a/svtools/source/filter.vcl/wmf/winmtf.cxx b/svtools/source/filter.vcl/wmf/winmtf.cxx
index 4ff2c19c7141..007a56e452fb 100644
--- a/svtools/source/filter.vcl/wmf/winmtf.cxx
+++ b/svtools/source/filter.vcl/wmf/winmtf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -256,7 +256,7 @@ WinMtfFontStyle::WinMtfFontStyle( LOGFONTW& rFont )
}
else if ( aFontSize.Height() < 0 )
aFontSize.Height() *= -1;
-
+
if ( !rFont.lfWidth )
{
VirtualDevice aVDev;
@@ -284,7 +284,7 @@ void WinMtfAssertHandler( const sal_Char* pAction, sal_uInt32 nFlags )
if ( nFlags & WIN_MTF_ASSERT_MIFE )
{
if ( ( nAssertCount == 0 ) || ( bOnlyOnce == sal_False ) )
- {
+ {
ByteString aText( "WMF/EMF Import: " );
if ( pAction )
{
@@ -302,17 +302,17 @@ void WinMtfAssertHandler( const sal_Char* pAction, sal_uInt32 nFlags )
// ------------------------------------------------------------------------
WinMtf::WinMtf( WinMtfOutput* pWinMtfOutput, SvStream& rStreamWMF, FilterConfigItem* pConfigItem ) :
- pOut ( pWinMtfOutput ),
- pWMF ( &rStreamWMF ),
- pFilterConfigItem ( pConfigItem )
+ pOut ( pWinMtfOutput ),
+ pWMF ( &rStreamWMF ),
+ pFilterConfigItem ( pConfigItem )
{
#ifdef WIN_MTF_ASSERT
- // we want to assert not implemented features, but we do this
+ // we want to assert not implemented features, but we do this
// only once, so that nobody is handicaped by getting too much assertions
// I hope this will bring more testdocuments, without support of these
// testdocuments the implementation of missing features won't be possible. (SJ)
WinMtfAssertHandler( NULL, WIN_MTF_ASSERT_INIT | WIN_MTF_ASSERT_ONCE );
-#endif
+#endif
SvLockBytes *pLB = pWMF->GetLockBytes();
if ( pLB )
@@ -424,7 +424,7 @@ Point WinMtfOutput::ImplMap( const Point& rPt )
fX2 *= mnDevWidth;
fY2 *= mnDevHeight;
fX2 += mnDevOrgX;
- fY2 += mnDevOrgY; // fX2, fY2 now in device units
+ fY2 += mnDevOrgY; // fX2, fY2 now in device units
fX2 *= (double)mnMillX * 100.0 / (double)mnPixX;
fY2 *= (double)mnMillY * 100.0 / (double)mnPixY;
}
@@ -549,7 +549,7 @@ void WinMtfOutput::SelectObject( INT32 nIndex )
pGDIObj = new GDIObj();
else
{
- nIndex &= 0xffff; // zur Sicherheit: mehr als 65535 nicht zulassen
+ nIndex &= 0xffff; // zur Sicherheit: mehr als 65535 nicht zulassen
if ( (UINT32)nIndex < vGDIObj.size() )
pGDIObj = vGDIObj[ nIndex ];
@@ -711,7 +711,7 @@ void WinMtfOutput::ImplDrawClippedPolyPolygon( const PolyPolygon& rPolyPoly )
mpGDIMetaFile->AddAction( new MetaRectAction( rPolyPoly.GetBoundRect() ) );
else
{
- Polygon aPoly( rPolyPoly[ 0 ] );
+ Polygon aPoly( rPolyPoly[ 0 ] );
sal_uInt16 nCount = aPoly.GetSize();
if ( nCount )
{
@@ -740,7 +740,7 @@ void WinMtfOutput::CreateObject( GDIObjectType eType, void* pStyle )
{
ImplMap( ((WinMtfFontStyle*)pStyle)->aFont );
if (!((WinMtfFontStyle*)pStyle)->aFont.GetHeight() )
- ((WinMtfFontStyle*)pStyle)->aFont.SetHeight( 423 ); // defaulting to 12pt
+ ((WinMtfFontStyle*)pStyle)->aFont.SetHeight( 423 ); // defaulting to 12pt
}
else if ( eType == GDI_PEN )
{
@@ -774,7 +774,7 @@ void WinMtfOutput::CreateObject( INT32 nIndex, GDIObjectType eType, void* pStyle
{
if ( ( nIndex & ENHMETA_STOCK_OBJECT ) == 0 )
{
- nIndex &= 0xffff; // zur Sicherheit: mehr als 65535 nicht zulassen
+ nIndex &= 0xffff; // zur Sicherheit: mehr als 65535 nicht zulassen
if ( pStyle )
{
if ( eType == GDI_FONT )
@@ -878,44 +878,44 @@ void WinMtfOutput::SetClipPath( const PolyPolygon& rPolyPolygon, sal_Int32 nClip
WinMtfOutput::WinMtfOutput( GDIMetaFile& rGDIMetaFile ) :
mnLatestTextAlign ( 0 ),
- mnTextAlign ( TA_LEFT | TA_TOP | TA_NOUPDATECP ),
+ mnTextAlign ( TA_LEFT | TA_TOP | TA_NOUPDATECP ),
maLatestBkColor ( 0x12345678 ),
- maBkColor ( COL_WHITE ),
+ maBkColor ( COL_WHITE ),
mnLatestTextLayoutMode( TEXT_LAYOUT_DEFAULT ),
- mnTextLayoutMode ( TEXT_LAYOUT_DEFAULT ),
+ mnTextLayoutMode ( TEXT_LAYOUT_DEFAULT ),
mnLatestBkMode ( 0 ),
- mnBkMode ( OPAQUE ),
+ mnBkMode ( OPAQUE ),
meLatestRasterOp ( ROP_INVERT ),
- meRasterOp ( ROP_OVERPAINT ),
- maActPos ( Point() ),
- mbNopMode ( sal_False ),
- mbFillStyleSelected ( sal_False ),
+ meRasterOp ( ROP_OVERPAINT ),
+ maActPos ( Point() ),
+ mbNopMode ( sal_False ),
+ mbFillStyleSelected ( sal_False ),
mbClipNeedsUpdate ( true ),
mbComplexClip ( false ),
- mnGfxMode ( GM_COMPATIBLE ),
+ mnGfxMode ( GM_COMPATIBLE ),
mnMapMode ( MM_TEXT ),
- mnDevOrgX ( 0 ),
- mnDevOrgY ( 0 ),
- mnDevWidth ( 1 ),
- mnDevHeight ( 1 ),
- mnWinOrgX ( 0 ),
- mnWinOrgY ( 0 ),
- mnWinExtX ( 1 ),
- mnWinExtY ( 1 ),
- mnPixX ( 100 ),
- mnPixY ( 100 ),
- mnMillX ( 1 ),
- mnMillY ( 1 ),
+ mnDevOrgX ( 0 ),
+ mnDevOrgY ( 0 ),
+ mnDevWidth ( 1 ),
+ mnDevHeight ( 1 ),
+ mnWinOrgX ( 0 ),
+ mnWinOrgY ( 0 ),
+ mnWinExtX ( 1 ),
+ mnWinExtY ( 1 ),
+ mnPixX ( 100 ),
+ mnPixY ( 100 ),
+ mnMillX ( 1 ),
+ mnMillY ( 1 ),
mpGDIMetaFile ( &rGDIMetaFile )
{
- mpGDIMetaFile->AddAction( new MetaPushAction( PUSH_CLIPREGION ) ); // The original clipregion has to be on top
+ mpGDIMetaFile->AddAction( new MetaPushAction( PUSH_CLIPREGION ) ); // The original clipregion has to be on top
// of the stack so it can always be restored
// this is necessary to be able to support
// SetClipRgn( NULL ) and similar ClipRgn actions (SJ)
- maFont.SetName( String( RTL_CONSTASCII_USTRINGPARAM( "Arial" )) ); // sj: #i57205#, we do have some scaling problems if using
- maFont.SetCharSet( gsl_getSystemTextEncoding() ); // the default font then most times a x11 font is used, we
- maFont.SetHeight( 423 ); // will prevent this defining a font
+ maFont.SetName( String( RTL_CONSTASCII_USTRINGPARAM( "Arial" )) ); // sj: #i57205#, we do have some scaling problems if using
+ maFont.SetCharSet( gsl_getSystemTextEncoding() ); // the default font then most times a x11 font is used, we
+ maFont.SetHeight( 423 ); // will prevent this defining a font
maLatestLineStyle.aLineColor = Color( 0x12, 0x34, 0x56 );
maLatestFillStyle.aFillColor = Color( 0x12, 0x34, 0x56 );
@@ -949,7 +949,7 @@ void WinMtfOutput::UpdateClipRegion()
mbComplexClip = false;
mpGDIMetaFile->AddAction( new MetaPopAction() ); // taking the orignal clipregion
- mpGDIMetaFile->AddAction( new MetaPushAction( PUSH_CLIPREGION ) ); //
+ mpGDIMetaFile->AddAction( new MetaPushAction( PUSH_CLIPREGION ) ); //
// skip for 'no clipping at all' case
if( !aClipPath.isEmpty() )
@@ -994,7 +994,7 @@ void WinMtfOutput::UpdateLineStyle()
void WinMtfOutput::UpdateFillStyle()
{
- if ( !mbFillStyleSelected ) // SJ: #i57205# taking care of bkcolor if no brush is selected
+ if ( !mbFillStyleSelected ) // SJ: #i57205# taking care of bkcolor if no brush is selected
maFillStyle = WinMtfFillStyle( maBkColor, mnBkMode == TRANSPARENT );
if (!( maLatestFillStyle == maFillStyle ) )
{
@@ -1016,7 +1016,7 @@ sal_uInt32 WinMtfOutput::SetRasterOp( UINT32 nRasterOp )
static WinMtfLineStyle aNopLineStyle;
if ( mbNopMode && ( nRasterOp != R2_NOP ) )
- { // beim uebergang von R2_NOP auf anderen Modus
+ { // beim uebergang von R2_NOP auf anderen Modus
// gesetzten Pen und Brush aktivieren
maFillStyle = aNopFillStyle;
maLineStyle = aNopLineStyle;
@@ -1215,14 +1215,14 @@ void WinMtfOutput::DrawArc( const Rectangle& rRect, const Point& rStart, const P
UpdateLineStyle();
UpdateFillStyle();
- Rectangle aRect( ImplMap( rRect ) );
- Point aStart( ImplMap( rStart ) );
- Point aEnd( ImplMap( rEnd ) );
+ Rectangle aRect( ImplMap( rRect ) );
+ Point aStart( ImplMap( rStart ) );
+ Point aEnd( ImplMap( rEnd ) );
if ( maLineStyle.aLineInfo.GetWidth() || ( maLineStyle.aLineInfo.GetStyle() == LINE_DASH ) )
{
if ( aStart == aEnd )
- { // SJ: #i53768# if start & end is identical, then we have to draw a full ellipse
+ { // SJ: #i53768# if start & end is identical, then we have to draw a full ellipse
Point aCenter( aRect.Center() );
Size aRad( aRect.GetWidth() / 2, aRect.GetHeight() / 2 );
@@ -1245,9 +1245,9 @@ void WinMtfOutput::DrawPie( const Rectangle& rRect, const Point& rStart, const P
UpdateClipRegion();
UpdateFillStyle();
- Rectangle aRect( ImplMap( rRect ) );
- Point aStart( ImplMap( rStart ) );
- Point aEnd( ImplMap( rEnd ) );
+ Rectangle aRect( ImplMap( rRect ) );
+ Point aStart( ImplMap( rStart ) );
+ Point aEnd( ImplMap( rEnd ) );
if ( maLineStyle.aLineInfo.GetWidth() || ( maLineStyle.aLineInfo.GetStyle() == LINE_DASH ) )
{
@@ -1270,9 +1270,9 @@ void WinMtfOutput::DrawChord( const Rectangle& rRect, const Point& rStart, const
UpdateClipRegion();
UpdateFillStyle();
- Rectangle aRect( ImplMap( rRect ) );
- Point aStart( ImplMap( rStart ) );
- Point aEnd( ImplMap( rEnd ) );
+ Rectangle aRect( ImplMap( rRect ) );
+ Point aStart( ImplMap( rStart ) );
+ Point aEnd( ImplMap( rEnd ) );
if ( maLineStyle.aLineInfo.GetWidth() || ( maLineStyle.aLineInfo.GetStyle() == LINE_DASH ) )
{
@@ -1564,7 +1564,7 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry
if( mnTextAlign & TA_UPDATECP )
rPosition = maActPos;
-
+
if ( mnTextAlign & TA_RIGHT_CENTER )
{
double fLenght = ( ( mnTextAlign & TA_RIGHT_CENTER ) == TA_RIGHT ) ? nTextWidth : nTextWidth >> 1;
@@ -1574,7 +1574,7 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry
if( mnTextAlign & TA_UPDATECP )
maActPos.X() = rPosition.X() + nTextWidth;
- }
+ }
if ( bChangeFont || ( maLatestFont != aTmp ) )
{
maLatestFont = aTmp;
@@ -1591,7 +1591,7 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry
{
/* because text without dx array is badly scaled, we
will create such an array if necessary */
- sal_Int32* pDX = pDXArry;
+ sal_Int32* pDX = pDXArry;
if ( !pDXArry )
{
pDX = new sal_Int32[ rText.Len() ];
@@ -1602,8 +1602,8 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry
pVDev->GetTextArray( rText, pDX, 0, STRING_LEN );
}
mpGDIMetaFile->AddAction( new MetaTextArrayAction( rPosition, rText, pDX, 0, STRING_LEN ) );
- if ( !pDXArry ) // this means we have created our own array
- delete[] pDX; // which must be deleted
+ if ( !pDXArry ) // this means we have created our own array
+ delete[] pDX; // which must be deleted
}
SetGfxMode( nOldGfxMode );
delete pVDev;
@@ -1660,16 +1660,16 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
{
UpdateClipRegion();
- sal_uInt32 nObjects = rSaveList.Count();
- sal_uInt32 nObjectsLeft = nObjects;
+ sal_uInt32 nObjects = rSaveList.Count();
+ sal_uInt32 nObjectsLeft = nObjects;
while ( nObjectsLeft )
{
- sal_uInt32 i, nObjectsOfSameSize = 0;
- sal_uInt32 nObjectStartIndex = nObjects - nObjectsLeft;
+ sal_uInt32 i, nObjectsOfSameSize = 0;
+ sal_uInt32 nObjectStartIndex = nObjects - nObjectsLeft;
- BSaveStruct* pSave = (BSaveStruct*)rSaveList.GetObject( nObjectStartIndex );
- Rectangle aRect( pSave->aOutRect );
+ BSaveStruct* pSave = (BSaveStruct*)rSaveList.GetObject( nObjectStartIndex );
+ Rectangle aRect( pSave->aOutRect );
for ( i = nObjectStartIndex; i < nObjects; )
{
@@ -1681,27 +1681,27 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
break;
}
}
- Point aPos( ImplMap( aRect.TopLeft() ) );
- Size aSize( ImplMap( aRect.GetSize() ) );
+ Point aPos( ImplMap( aRect.TopLeft() ) );
+ Size aSize( ImplMap( aRect.GetSize() ) );
for ( i = nObjectStartIndex; i < ( nObjectStartIndex + nObjectsOfSameSize ); i++ )
{
pSave = (BSaveStruct*)rSaveList.GetObject( i );
- sal_uInt32 nWinRop = pSave->nWinRop;
- sal_uInt8 nRasterOperation = (sal_uInt8)( nWinRop >> 16 );
+ sal_uInt32 nWinRop = pSave->nWinRop;
+ sal_uInt8 nRasterOperation = (sal_uInt8)( nWinRop >> 16 );
- sal_uInt32 nUsed = 0;
+ sal_uInt32 nUsed = 0;
if ( ( nRasterOperation & 0xf ) != ( nRasterOperation >> 4 ) )
- nUsed |= 1; // pattern is used
+ nUsed |= 1; // pattern is used
if ( ( nRasterOperation & 0x33 ) != ( ( nRasterOperation & 0xcc ) >> 2 ) )
- nUsed |= 2; // source is used
+ nUsed |= 2; // source is used
if ( ( nRasterOperation & 0xaa ) != ( ( nRasterOperation & 0x55 ) << 1 ) )
- nUsed |= 4; // destination is used
+ nUsed |= 4; // destination is used
if ( (nUsed & 1) && (( nUsed & 2 ) == 0) && nWinRop != PATINVERT )
- { // patterns aren't well supported yet
- sal_uInt32 nOldRop = SetRasterOp( ROP_OVERPAINT ); // in this case nRasterOperation is either 0 or 0xff
+ { // patterns aren't well supported yet
+ sal_uInt32 nOldRop = SetRasterOp( ROP_OVERPAINT ); // in this case nRasterOperation is either 0 or 0xff
UpdateFillStyle();
DrawRect( aRect, FALSE );
SetRasterOp( nOldRop );
@@ -1710,11 +1710,11 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
{
sal_Bool bDrawn = sal_False;
- if ( i == nObjectStartIndex ) // optimizing, sometimes it is possible to create just one transparent bitmap
+ if ( i == nObjectStartIndex ) // optimizing, sometimes it is possible to create just one transparent bitmap
{
if ( nObjectsOfSameSize == 2 )
{
- BSaveStruct* pSave2 = (BSaveStruct*)rSaveList.GetObject( i + 1 );
+ BSaveStruct* pSave2 = (BSaveStruct*)rSaveList.GetObject( i + 1 );
if ( ( pSave->aBmp.GetPrefSize() == pSave2->aBmp.GetPrefSize() ) &&
( pSave->aBmp.GetPrefMapMode() == pSave2->aBmp.GetPrefMapMode() ) )
{
@@ -1750,18 +1750,18 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
if ( !bDrawn )
{
Push();
- sal_uInt32 nOldRop = SetRasterOp( R2_COPYPEN );
- Bitmap aBitmap( pSave->aBmp );
- sal_uInt32 nOperation = ( nRasterOperation & 0xf );
+ sal_uInt32 nOldRop = SetRasterOp( R2_COPYPEN );
+ Bitmap aBitmap( pSave->aBmp );
+ sal_uInt32 nOperation = ( nRasterOperation & 0xf );
switch( nOperation )
{
case 0x1 :
case 0xe :
- {
+ {
SetRasterOp( R2_XORPEN );
ImplDrawBitmap( aPos, aSize, aBitmap );
SetRasterOp( R2_COPYPEN );
- Bitmap aMask( aBitmap );
+ Bitmap aMask( aBitmap );
aMask.Invert();
BitmapEx aBmpEx( aBitmap, aMask );
ImplDrawBitmap( aPos, aSize, aBmpEx );
@@ -1775,8 +1775,8 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
case 0x7 :
case 0x8 :
{
- Bitmap aMask( aBitmap );
- if ( ( nUsed & 1 ) && ( nRasterOperation & 0xb0 ) == 0xb0 ) // pattern used
+ Bitmap aMask( aBitmap );
+ if ( ( nUsed & 1 ) && ( nRasterOperation & 0xb0 ) == 0xb0 ) // pattern used
{
aBitmap.Convert( BMP_CONVERSION_24BIT );
aBitmap.Erase( maFillStyle.aFillColor );
@@ -1797,7 +1797,7 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
SetRasterOp( R2_NOT );
DrawRect( aRect, FALSE );
SetRasterOp( R2_COPYPEN );
- Bitmap aMask( aBitmap );
+ Bitmap aMask( aBitmap );
aBitmap.Invert();
BitmapEx aBmpEx( aBitmap, aMask );
ImplDrawBitmap( aPos, aSize, aBmpEx );
@@ -1814,7 +1814,7 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
case 0x2 :
case 0xd :
{
- Bitmap aMask( aBitmap );
+ Bitmap aMask( aBitmap );
aMask.Invert();
BitmapEx aBmpEx( aBitmap, aMask );
ImplDrawBitmap( aPos, aSize, aBmpEx );
@@ -1840,16 +1840,16 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
}
break;
- case 0x0 : // WHITENESS
- case 0xf : // BLACKNESS
- { // in this case nRasterOperation is either 0 or 0xff
+ case 0x0 : // WHITENESS
+ case 0xf : // BLACKNESS
+ { // in this case nRasterOperation is either 0 or 0xff
maFillStyle = WinMtfFillStyle( Color( nRasterOperation, nRasterOperation, nRasterOperation ) );
UpdateFillStyle();
DrawRect( aRect, FALSE );
}
break;
- case 0x3 : // only source is used
+ case 0x3 : // only source is used
case 0xc :
{
if ( nRasterOperation == 0x33 )
@@ -1858,12 +1858,12 @@ void WinMtfOutput::ResolveBitmapActions( List& rSaveList )
}
break;
- case 0x5 : // only destination is used
+ case 0x5 : // only destination is used
{
SetRasterOp( R2_NOT );
DrawRect( aRect, FALSE );
}
- case 0xa : // no operation
+ case 0xa : // no operation
break;
}
SetRasterOp( nOldRop );
@@ -1905,7 +1905,7 @@ void WinMtfOutput::SetDevExt( const Size& rSize )
switch( mnMapMode )
{
case MM_ISOTROPIC :
- case MM_ANISOTROPIC :
+ case MM_ANISOTROPIC :
{
mnDevWidth = rSize.Width();
mnDevHeight = rSize.Height();
@@ -1948,7 +1948,7 @@ void WinMtfOutput::SetWinExt( const Size& rSize )
switch( mnMapMode )
{
case MM_ISOTROPIC :
- case MM_ANISOTROPIC :
+ case MM_ANISOTROPIC :
{
mnWinExtX = rSize.Width();
mnWinExtY = rSize.Height();
@@ -2039,7 +2039,7 @@ void WinMtfOutput::ModifyWorldTransform( const XForm& rXForm, UINT32 nMode )
case MWT_RIGHTMULTIPLY :
case MWT_LEFTMULTIPLY :
- {
+ {
const XForm* pLeft;
const XForm* pRight;
@@ -2101,7 +2101,7 @@ void WinMtfOutput::ModifyWorldTransform( const XForm& rXForm, UINT32 nMode )
//-----------------------------------------------------------------------------------
-void WinMtfOutput::Push() // !! to be able to access the original ClipRegion it
+void WinMtfOutput::Push() // !! to be able to access the original ClipRegion it
{ // is not allowed to use the MetaPushAction()
UpdateClipRegion(); // (the original clip region is on top of the stack) (SJ)
SaveStructPtr pSave( new SaveStruct );
diff --git a/svtools/source/filter.vcl/wmf/winmtf.hxx b/svtools/source/filter.vcl/wmf/winmtf.hxx
index db9d44aca0f5..9f2a1b344381 100644
--- a/svtools/source/filter.vcl/wmf/winmtf.hxx
+++ b/svtools/source/filter.vcl/wmf/winmtf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,140 +57,140 @@
#define SIMPLEREGION 2
#define COMPLEXREGION 3
-#define RGN_AND 1
-#define RGN_OR 2
-#define RGN_XOR 3
-#define RGN_DIFF 4
-#define RGN_COPY 5
+#define RGN_AND 1
+#define RGN_OR 2
+#define RGN_XOR 3
+#define RGN_DIFF 4
+#define RGN_COPY 5
-#define TRANSPARENT 1
-#define OPAQUE 2
-#define BKMODE_LAST 2
+#define TRANSPARENT 1
+#define OPAQUE 2
+#define BKMODE_LAST 2
/* xform stuff */
-#define MWT_IDENTITY 1
-#define MWT_LEFTMULTIPLY 2
-#define MWT_RIGHTMULTIPLY 3
+#define MWT_IDENTITY 1
+#define MWT_LEFTMULTIPLY 2
+#define MWT_RIGHTMULTIPLY 3
#define ENHMETA_STOCK_OBJECT 0x80000000
/* Stock Logical Objects */
-#define WHITE_BRUSH 0
-#define LTGRAY_BRUSH 1
-#define GRAY_BRUSH 2
-#define DKGRAY_BRUSH 3
-#define BLACK_BRUSH 4
-#define NULL_BRUSH 5
-#define HOLLOW_BRUSH NULL_BRUSH
-#define WHITE_PEN 6
-#define BLACK_PEN 7
-#define NULL_PEN 8
-#define OEM_FIXED_FONT 10
-#define ANSI_FIXED_FONT 11
-#define ANSI_VAR_FONT 12
-#define SYSTEM_FONT 13
-#define DEVICE_DEFAULT_FONT 14
-#define DEFAULT_PALETTE 15
-#define SYSTEM_FIXED_FONT 16
-
-
-#define R2_BLACK 1
-#define R2_NOTMERGEPEN 2
-#define R2_MASKNOTPEN 3
-#define R2_NOTCOPYPEN 4
-#define R2_MASKPENNOT 5
-#define R2_NOT 6
-#define R2_XORPEN 7
-#define R2_NOTMASKPEN 8
-#define R2_MASKPEN 9
-#define R2_NOTXORPEN 10
-#define R2_NOP 11
-#define R2_MERGENOTPEN 12
-#define R2_COPYPEN 13
-#define R2_MERGEPENNOT 14
-#define R2_MERGEPEN 15
-#define R2_WHITE 16
+#define WHITE_BRUSH 0
+#define LTGRAY_BRUSH 1
+#define GRAY_BRUSH 2
+#define DKGRAY_BRUSH 3
+#define BLACK_BRUSH 4
+#define NULL_BRUSH 5
+#define HOLLOW_BRUSH NULL_BRUSH
+#define WHITE_PEN 6
+#define BLACK_PEN 7
+#define NULL_PEN 8
+#define OEM_FIXED_FONT 10
+#define ANSI_FIXED_FONT 11
+#define ANSI_VAR_FONT 12
+#define SYSTEM_FONT 13
+#define DEVICE_DEFAULT_FONT 14
+#define DEFAULT_PALETTE 15
+#define SYSTEM_FIXED_FONT 16
+
+
+#define R2_BLACK 1
+#define R2_NOTMERGEPEN 2
+#define R2_MASKNOTPEN 3
+#define R2_NOTCOPYPEN 4
+#define R2_MASKPENNOT 5
+#define R2_NOT 6
+#define R2_XORPEN 7
+#define R2_NOTMASKPEN 8
+#define R2_MASKPEN 9
+#define R2_NOTXORPEN 10
+#define R2_NOP 11
+#define R2_MERGENOTPEN 12
+#define R2_COPYPEN 13
+#define R2_MERGEPENNOT 14
+#define R2_MERGEPEN 15
+#define R2_WHITE 16
/* Mapping Modes */
-#define MM_TEXT 1
-#define MM_LOMETRIC 2
-#define MM_HIMETRIC 3
-#define MM_LOENGLISH 4
-#define MM_HIENGLISH 5
-#define MM_TWIPS 6
-#define MM_ISOTROPIC 7
-#define MM_ANISOTROPIC 8
+#define MM_TEXT 1
+#define MM_LOMETRIC 2
+#define MM_HIMETRIC 3
+#define MM_LOENGLISH 4
+#define MM_HIENGLISH 5
+#define MM_TWIPS 6
+#define MM_ISOTROPIC 7
+#define MM_ANISOTROPIC 8
/* Graphics Modes */
-#define GM_COMPATIBLE 1
-#define GM_ADVANCED 2
-#define GM_LAST 2
+#define GM_COMPATIBLE 1
+#define GM_ADVANCED 2
+#define GM_LAST 2
/* StretchBlt() Modes */
-#define BLACKONWHITE 1
-#define WHITEONBLACK 2
-#define COLORONCOLOR 3
-#define HALFTONE 4
-#define MAXSTRETCHBLTMODE 4
-#define STRETCH_ANDSCANS BLACKONWHITE
-#define STRETCH_ORSCANS WHITEONBLACK
-#define STRETCH_DELETESCANS COLORONCOLOR
-#define STRETCH_HALFTONE HALFTONE
-
-#define LF_FACESIZE 32
+#define BLACKONWHITE 1
+#define WHITEONBLACK 2
+#define COLORONCOLOR 3
+#define HALFTONE 4
+#define MAXSTRETCHBLTMODE 4
+#define STRETCH_ANDSCANS BLACKONWHITE
+#define STRETCH_ORSCANS WHITEONBLACK
+#define STRETCH_DELETESCANS COLORONCOLOR
+#define STRETCH_HALFTONE HALFTONE
+
+#define LF_FACESIZE 32
struct LOGFONTW
{
- INT32 lfHeight;
- INT32 lfWidth;
- INT32 lfEscapement;
- INT32 lfOrientation;
- INT32 lfWeight;
- BYTE lfItalic;
- BYTE lfUnderline;
- BYTE lfStrikeOut;
- BYTE lfCharSet;
- BYTE lfOutPrecision;
- BYTE lfClipPrecision;
- BYTE lfQuality;
- BYTE lfPitchAndFamily;
- String alfFaceName;
+ INT32 lfHeight;
+ INT32 lfWidth;
+ INT32 lfEscapement;
+ INT32 lfOrientation;
+ INT32 lfWeight;
+ BYTE lfItalic;
+ BYTE lfUnderline;
+ BYTE lfStrikeOut;
+ BYTE lfCharSet;
+ BYTE lfOutPrecision;
+ BYTE lfClipPrecision;
+ BYTE lfQuality;
+ BYTE lfPitchAndFamily;
+ String alfFaceName;
};
-#define TA_NOUPDATECP 0x0000
-#define TA_UPDATECP 0x0001
-#define TA_LEFT 0x0000
-#define TA_RIGHT 0x0002
-#define TA_CENTER 0x0006
-#define TA_RIGHT_CENTER (TA_RIGHT | TA_CENTER)
-#define TA_TOP 0x0000
-#define TA_BOTTOM 0x0008
-#define TA_BASELINE 0x0018
-
-#define SRCCOPY 0x00CC0020L
-#define SRCPAINT 0x00EE0086L
-#define SRCAND 0x008800C6L
-#define SRCINVERT 0x00660046L
-#define SRCERASE 0x00440328L
-#define NOTSRCCOPY 0x00330008L
-#define NOTSRCERASE 0x001100A6L
-#define MERGECOPY 0x00C000CAL
-#define MERGEPAINT 0x00BB0226L
-#define PATCOPY 0x00F00021L
-#define PATPAINT 0x00FB0A09L
-#define PATINVERT 0x005A0049L
-#define DSTINVERT 0x00550009L
-#define BLACKNESS 0x00000042L
-#define WHITENESS 0x00FF0062L
-
-#define PS_SOLID 0
-#define PS_DASH 1
-#define PS_DOT 2
-#define PS_DASHDOT 3
-#define PS_DASHDOTDOT 4
-#define PS_NULL 5
-#define PS_INSIDEFRAME 6
+#define TA_NOUPDATECP 0x0000
+#define TA_UPDATECP 0x0001
+#define TA_LEFT 0x0000
+#define TA_RIGHT 0x0002
+#define TA_CENTER 0x0006
+#define TA_RIGHT_CENTER (TA_RIGHT | TA_CENTER)
+#define TA_TOP 0x0000
+#define TA_BOTTOM 0x0008
+#define TA_BASELINE 0x0018
+
+#define SRCCOPY 0x00CC0020L
+#define SRCPAINT 0x00EE0086L
+#define SRCAND 0x008800C6L
+#define SRCINVERT 0x00660046L
+#define SRCERASE 0x00440328L
+#define NOTSRCCOPY 0x00330008L
+#define NOTSRCERASE 0x001100A6L
+#define MERGECOPY 0x00C000CAL
+#define MERGEPAINT 0x00BB0226L
+#define PATCOPY 0x00F00021L
+#define PATPAINT 0x00FB0A09L
+#define PATINVERT 0x005A0049L
+#define DSTINVERT 0x00550009L
+#define BLACKNESS 0x00000042L
+#define WHITENESS 0x00FF0062L
+
+#define PS_SOLID 0
+#define PS_DASH 1
+#define PS_DOT 2
+#define PS_DASHDOT 3
+#define PS_DASHDOTDOT 4
+#define PS_NULL 5
+#define PS_INSIDEFRAME 6
#define PS_USERSTYLE 7
#define PS_ALTERNATE 8
#define PS_STYLE_MASK 15
@@ -209,14 +209,14 @@ struct LOGFONTW
#define PS_GEOMETRIC 0x10000
#define PS_TYPE_MASK 0xF0000
-#define ANSI_CHARSET 0
-#define DEFAULT_CHARSET 1
-#define SYMBOL_CHARSET 2
-#define SHIFTJIS_CHARSET 128
-#define HANGEUL_CHARSET 129
-#define GB2312_CHARSET 134
-#define CHINESEBIG5_CHARSET 136
-#define OEM_CHARSET 255
+#define ANSI_CHARSET 0
+#define DEFAULT_CHARSET 1
+#define SYMBOL_CHARSET 2
+#define SHIFTJIS_CHARSET 128
+#define HANGEUL_CHARSET 129
+#define GB2312_CHARSET 134
+#define CHINESEBIG5_CHARSET 136
+#define OEM_CHARSET 255
/*WINVER >= 0x0400*/
#define JOHAB_CHARSET 130
#define HEBREW_CHARSET 177
@@ -230,70 +230,70 @@ struct LOGFONTW
#define MAC_CHARSET 77
#define BALTIC_CHARSET 186
-#define ETO_OPAQUE 0x0002
-#define ETO_CLIPPED 0x0004
+#define ETO_OPAQUE 0x0002
+#define ETO_CLIPPED 0x0004
/*WINVER >= 0x0400*/
-#define ETO_GLYPH_INDEX 0x0010
-#define ETO_RTLREADING 0x0080
-#define ETO_NUMERICSLOCAL 0x0400
-#define ETO_NUMERICSLATIN 0x0800
-#define ETO_IGNORELANGUAGE 0x1000
+#define ETO_GLYPH_INDEX 0x0010
+#define ETO_RTLREADING 0x0080
+#define ETO_NUMERICSLOCAL 0x0400
+#define ETO_NUMERICSLATIN 0x0800
+#define ETO_IGNORELANGUAGE 0x1000
/*_WIN32_WINNT >= 0x0500*/
-#define ETO_PDY 0x2000
+#define ETO_PDY 0x2000
-#define DEFAULT_PITCH 0x00
-#define FIXED_PITCH 0x01
-#define VARIABLE_PITCH 0x02
+#define DEFAULT_PITCH 0x00
+#define FIXED_PITCH 0x01
+#define VARIABLE_PITCH 0x02
/* Font Families */
-#define FF_DONTCARE 0x00
-#define FF_ROMAN 0x10
-#define FF_SWISS 0x20
-#define FF_MODERN 0x30
-#define FF_SCRIPT 0x40
-#define FF_DECORATIVE 0x50
-
-#define FW_DONTCARE 0
-#define FW_THIN 100
-#define FW_EXTRALIGHT 200
-#define FW_LIGHT 300
-#define FW_NORMAL 400
-#define FW_MEDIUM 500
-#define FW_SEMIBOLD 600
-#define FW_BOLD 700
-#define FW_EXTRABOLD 800
-#define FW_HEAVY 900
-#define FW_ULTRALIGHT 200
-#define FW_REGULAR 400
-#define FW_DEMIBOLD 600
-#define FW_ULTRABOLD 800
-#define FW_BLACK 900
-
-#define BS_SOLID 0
-#define BS_NULL 1
-#define BS_HOLLOW 1
-#define BS_HATCHED 2
-#define BS_PATTERN 3
-#define BS_INDEXED 4
-#define BS_DIBPATTERN 5
-#define BS_DIBPATTERNPT 6
-#define BS_PATTERN8X8 7
-#define BS_DIBPATTERN8X8 8
-#define BS_MONOPATTERN 9
-
-#define W_HS_HORIZONTAL 0
-#define W_HS_VERTICAL 1
-#define W_HS_FDIAGONAL 2
-#define W_HS_BDIAGONAL 3
-#define W_HS_CROSS 4
-#define W_HS_DIAGCROSS 5
+#define FF_DONTCARE 0x00
+#define FF_ROMAN 0x10
+#define FF_SWISS 0x20
+#define FF_MODERN 0x30
+#define FF_SCRIPT 0x40
+#define FF_DECORATIVE 0x50
+
+#define FW_DONTCARE 0
+#define FW_THIN 100
+#define FW_EXTRALIGHT 200
+#define FW_LIGHT 300
+#define FW_NORMAL 400
+#define FW_MEDIUM 500
+#define FW_SEMIBOLD 600
+#define FW_BOLD 700
+#define FW_EXTRABOLD 800
+#define FW_HEAVY 900
+#define FW_ULTRALIGHT 200
+#define FW_REGULAR 400
+#define FW_DEMIBOLD 600
+#define FW_ULTRABOLD 800
+#define FW_BLACK 900
+
+#define BS_SOLID 0
+#define BS_NULL 1
+#define BS_HOLLOW 1
+#define BS_HATCHED 2
+#define BS_PATTERN 3
+#define BS_INDEXED 4
+#define BS_DIBPATTERN 5
+#define BS_DIBPATTERNPT 6
+#define BS_PATTERN8X8 7
+#define BS_DIBPATTERN8X8 8
+#define BS_MONOPATTERN 9
+
+#define W_HS_HORIZONTAL 0
+#define W_HS_VERTICAL 1
+#define W_HS_FDIAGONAL 2
+#define W_HS_BDIAGONAL 3
+#define W_HS_CROSS 4
+#define W_HS_DIAGCROSS 5
#define RDH_RECTANGLES 1
-#define W_MFCOMMENT 15
+#define W_MFCOMMENT 15
-#define PRIVATE_ESCAPE_UNICODE 2
+#define PRIVATE_ESCAPE_UNICODE 2
//============================ WMFReader ==================================
@@ -304,7 +304,7 @@ struct LOGFONTW
#define WIN_MTF_ASSERT_MIFE 0x20000000
void WinMtfAssertHandler( const sal_Char*, sal_uInt32 nFlags = WIN_MTF_ASSERT_MIFE );
-#endif
+#endif
class WinMtfClipPath
{
@@ -313,10 +313,10 @@ class WinMtfClipPath
public :
WinMtfClipPath(): maClip() {};
- void setClipPath( const PolyPolygon& rPolyPolygon, sal_Int32 nClippingMode );
- void intersectClipRect( const Rectangle& rRect );
- void excludeClipRect( const Rectangle& rRect );
- void moveClipRegion( const Size& rSize );
+ void setClipPath( const PolyPolygon& rPolyPolygon, sal_Int32 nClippingMode );
+ void intersectClipRect( const Rectangle& rRect );
+ void excludeClipRect( const Rectangle& rRect );
+ void moveClipRegion( const Size& rSize );
bool isEmpty() const { return maClip.isCleared(); }
@@ -330,23 +330,23 @@ public :
class WinMtfPathObj : public PolyPolygon
{
- sal_Bool bClosed;
+ sal_Bool bClosed;
public :
WinMtfPathObj() { bClosed = sal_True; }
void Init() { Clear(); bClosed = sal_True; };
- void ClosePath();
+ void ClosePath();
- void AddPoint( const Point& rPoint );
- void AddPolygon( const Polygon& rPoly );
- void AddPolyLine( const Polygon& rPoly );
- void AddPolyPolygon( const PolyPolygon& rPolyPolygon );
+ void AddPoint( const Point& rPoint );
+ void AddPolygon( const Polygon& rPoly );
+ void AddPolyLine( const Polygon& rPoly );
+ void AddPolyPolygon( const PolyPolygon& rPolyPolygon );
};
struct WinMtfFontStyle
{
- Font aFont;
+ Font aFont;
WinMtfFontStyle( LOGFONTW& rLogFont );
};
@@ -360,19 +360,19 @@ typedef enum {
struct WinMtfFillStyle
{
- Color aFillColor;
- BOOL bTransparent;
+ Color aFillColor;
+ BOOL bTransparent;
WinMtfFillStyleType aType;
Bitmap aBmp;
WinMtfFillStyle() :
- aFillColor ( Color( COL_BLACK ) ),
+ aFillColor ( Color( COL_BLACK ) ),
bTransparent( FALSE )
{
};
WinMtfFillStyle( const Color& rColor, BOOL bTrans = FALSE ) :
- aFillColor ( rColor ),
+ aFillColor ( rColor ),
bTransparent( bTrans ),
aType ( FillStyleSolid )
{
@@ -396,21 +396,21 @@ struct WinMtfFillStyle
struct WinMtfLineStyle
{
- Color aLineColor;
- LineInfo aLineInfo;
- BOOL bTransparent;
+ Color aLineColor;
+ LineInfo aLineInfo;
+ BOOL bTransparent;
WinMtfLineStyle() :
- aLineColor ( COL_BLACK ),
+ aLineColor ( COL_BLACK ),
bTransparent( FALSE ) {};
WinMtfLineStyle( const Color& rColor, BOOL bTrans = FALSE ) :
- aLineColor ( rColor ),
+ aLineColor ( rColor ),
bTransparent( bTrans ) {};
WinMtfLineStyle( const Color& rColor, const LineInfo rStyle, BOOL bTrans = FALSE ) :
- aLineColor ( rColor ),
- aLineInfo ( rStyle ),
+ aLineColor ( rColor ),
+ aLineInfo ( rStyle ),
bTransparent( bTrans ) {};
BOOL operator==( const WinMtfLineStyle& rStyle ) { return ( ( aLineColor == rStyle.aLineColor ) && ( bTransparent == rStyle.bTransparent ) && ( aLineInfo == rStyle.aLineInfo ) ); };
@@ -434,12 +434,12 @@ struct WinMtfLineStyle
struct XForm
{
- float eM11;
- float eM12;
- float eM21;
- float eM22;
- float eDx;
- float eDy;
+ float eM11;
+ float eM12;
+ float eM21;
+ float eM22;
+ float eDx;
+ float eDy;
XForm()
{
eM11 = eM22 = 1.0f;
@@ -454,25 +454,25 @@ struct XForm
struct SaveStruct
{
sal_uInt32 nBkMode, nMapMode, nGfxMode, nTextLayoutMode;
- sal_Int32 nWinOrgX, nWinOrgY, nWinExtX, nWinExtY;
- sal_Int32 nDevOrgX, nDevOrgY, nDevWidth, nDevHeight;
+ sal_Int32 nWinOrgX, nWinOrgY, nWinExtX, nWinExtY;
+ sal_Int32 nDevOrgX, nDevOrgY, nDevWidth, nDevHeight;
- WinMtfLineStyle aLineStyle;
- WinMtfFillStyle aFillStyle;
+ WinMtfLineStyle aLineStyle;
+ WinMtfFillStyle aFillStyle;
- Font aFont;
- Color aBkColor;
- Color aTextColor;
+ Font aFont;
+ Color aBkColor;
+ Color aTextColor;
sal_uInt32 nTextAlign;
RasterOp eRasterOp;
- Point aActPos;
- WinMtfPathObj aPathObj;
- WinMtfClipPath aClipPath;
- XForm aXForm;
+ Point aActPos;
+ WinMtfPathObj aPathObj;
+ WinMtfClipPath aClipPath;
+ XForm aXForm;
- sal_Bool bRecordPath;
- sal_Bool bFillStyleSelected;
+ sal_Bool bRecordPath;
+ sal_Bool bFillStyleSelected;
};
typedef ::boost::shared_ptr< SaveStruct > SaveStructPtr;
@@ -481,9 +481,9 @@ typedef ::boost::shared_ptr< SaveStruct > SaveStructPtr;
struct BSaveStruct
{
- Bitmap aBmp;
- Rectangle aOutRect;
- UINT32 nWinRop;
+ Bitmap aBmp;
+ Rectangle aOutRect;
+ UINT32 nWinRop;
WinMtfFillStyle aStyle;
BSaveStruct( const Bitmap& rBmp, const Rectangle& rOutRect, UINT32 nRop, WinMtfFillStyle& rStyle ) :
@@ -496,12 +496,12 @@ enum GDIObjectType { GDI_DUMMY = 0, GDI_PEN = 1, GDI_BRUSH = 2, GDI_FONT = 3, GD
struct GDIObj
{
- void* pStyle;
- GDIObjectType eType;
+ void* pStyle;
+ GDIObjectType eType;
GDIObj() :
- pStyle ( NULL ),
- eType ( GDI_DUMMY )
+ pStyle ( NULL ),
+ eType ( GDI_DUMMY )
{
};
@@ -542,148 +542,148 @@ struct GDIObj
class WinMtfOutput
{
- WinMtfPathObj aPathObj;
- WinMtfClipPath aClipPath;
+ WinMtfPathObj aPathObj;
+ WinMtfClipPath aClipPath;
- WinMtfLineStyle maLatestLineStyle;
- WinMtfLineStyle maLineStyle;
- WinMtfFillStyle maLatestFillStyle;
- WinMtfFillStyle maFillStyle;
+ WinMtfLineStyle maLatestLineStyle;
+ WinMtfLineStyle maLineStyle;
+ WinMtfFillStyle maLatestFillStyle;
+ WinMtfFillStyle maFillStyle;
Font maLatestFont;
- Font maFont;
+ Font maFont;
sal_uInt32 mnLatestTextAlign;
sal_uInt32 mnTextAlign;
Color maLatestTextColor;
- Color maTextColor;
+ Color maTextColor;
Color maLatestBkColor;
- Color maBkColor;
- sal_uInt32 mnLatestTextLayoutMode;
- sal_uInt32 mnTextLayoutMode;
+ Color maBkColor;
+ sal_uInt32 mnLatestTextLayoutMode;
+ sal_uInt32 mnTextLayoutMode;
sal_uInt32 mnLatestBkMode;
sal_uInt32 mnBkMode;
RasterOp meLatestRasterOp;
- RasterOp meRasterOp;
+ RasterOp meRasterOp;
std::vector< GDIObj* > vGDIObj;
- Point maActPos;
+ Point maActPos;
sal_uInt32 mnRop;
sal_Bool mbNopMode;
- sal_Bool mbFillStyleSelected;
+ sal_Bool mbFillStyleSelected;
sal_Bool mbClipNeedsUpdate;
sal_Bool mbComplexClip;
std::vector< SaveStructPtr > vSaveStack;
- sal_uInt32 mnGfxMode;
+ sal_uInt32 mnGfxMode;
sal_uInt32 mnMapMode;
- XForm maXForm;
- sal_Int32 mnDevOrgX, mnDevOrgY;
- sal_Int32 mnDevWidth, mnDevHeight;
- sal_Int32 mnWinOrgX, mnWinOrgY; // aktuelles Window-Origin
- sal_Int32 mnWinExtX, mnWinExtY; // aktuelles Window-Extent
-
- sal_Int32 mnPixX, mnPixY; // Reference Device in pixel
- sal_Int32 mnMillX, mnMillY; // Reference Device in Mill
- Rectangle mrclFrame; // rectangle in logical units 1/100th mm
- Rectangle mrclBounds;
-
- GDIMetaFile* mpGDIMetaFile;
-
- void UpdateLineStyle();
- void UpdateFillStyle();
-
- Point ImplMap( const Point& rPt );
- Size ImplMap( const Size& rSz );
- Rectangle ImplMap( const Rectangle& rRectangle );
- void ImplMap( Font& rFont );
- Polygon& ImplMap( Polygon& rPolygon );
- PolyPolygon& ImplMap( PolyPolygon& rPolyPolygon );
- void ImplResizeObjectArry( UINT32 nNewEntry );
- void ImplSetNonPersistentLineColorTransparenz();
- void ImplDrawClippedPolyPolygon( const PolyPolygon& rPolyPoly );
- void ImplDrawBitmap( const Point& rPos, const Size& rSize, const BitmapEx rBitmap );
+ XForm maXForm;
+ sal_Int32 mnDevOrgX, mnDevOrgY;
+ sal_Int32 mnDevWidth, mnDevHeight;
+ sal_Int32 mnWinOrgX, mnWinOrgY; // aktuelles Window-Origin
+ sal_Int32 mnWinExtX, mnWinExtY; // aktuelles Window-Extent
+
+ sal_Int32 mnPixX, mnPixY; // Reference Device in pixel
+ sal_Int32 mnMillX, mnMillY; // Reference Device in Mill
+ Rectangle mrclFrame; // rectangle in logical units 1/100th mm
+ Rectangle mrclBounds;
+
+ GDIMetaFile* mpGDIMetaFile;
+
+ void UpdateLineStyle();
+ void UpdateFillStyle();
+
+ Point ImplMap( const Point& rPt );
+ Size ImplMap( const Size& rSz );
+ Rectangle ImplMap( const Rectangle& rRectangle );
+ void ImplMap( Font& rFont );
+ Polygon& ImplMap( Polygon& rPolygon );
+ PolyPolygon& ImplMap( PolyPolygon& rPolyPolygon );
+ void ImplResizeObjectArry( UINT32 nNewEntry );
+ void ImplSetNonPersistentLineColorTransparenz();
+ void ImplDrawClippedPolyPolygon( const PolyPolygon& rPolyPoly );
+ void ImplDrawBitmap( const Point& rPos, const Size& rSize, const BitmapEx rBitmap );
public:
- void SetDevOrg( const Point& rPoint );
- void SetDevOrgOffset( INT32 nXAdd, INT32 nYAdd );
- void SetDevExt( const Size& rSize );
- void ScaleDevExt( double fX, double fY );
+ void SetDevOrg( const Point& rPoint );
+ void SetDevOrgOffset( INT32 nXAdd, INT32 nYAdd );
+ void SetDevExt( const Size& rSize );
+ void ScaleDevExt( double fX, double fY );
- void SetWinOrg( const Point& rPoint );
- void SetWinOrgOffset( INT32 nX, INT32 nY );
- void SetWinExt( const Size& rSize );
- void ScaleWinExt( double fX, double fY );
+ void SetWinOrg( const Point& rPoint );
+ void SetWinOrgOffset( INT32 nX, INT32 nY );
+ void SetWinExt( const Size& rSize );
+ void ScaleWinExt( double fX, double fY );
- void SetrclBounds( const Rectangle& rRect );
- void SetrclFrame( const Rectangle& rRect );
- void SetRefPix( const Size& rSize );
- void SetRefMill( const Size& rSize );
+ void SetrclBounds( const Rectangle& rRect );
+ void SetrclFrame( const Rectangle& rRect );
+ void SetRefPix( const Size& rSize );
+ void SetRefMill( const Size& rSize );
- sal_uInt32 GetMapMode() const { return mnMapMode; };
+ sal_uInt32 GetMapMode() const { return mnMapMode; };
void SetMapMode( sal_uInt32 mnMapMode );
- void SetWorldTransform( const XForm& rXForm );
- void ModifyWorldTransform( const XForm& rXForm, UINT32 nMode );
-
- void Push();
- void Pop();
-
- UINT32 SetRasterOp( UINT32 nRasterOp );
- void StrokeAndFillPath( sal_Bool bStroke, sal_Bool bFill );
-
- void SetGfxMode( sal_Int32 nGfxMode ){ mnGfxMode = nGfxMode; };
- sal_Int32 GetGfxMode() const { return mnGfxMode; };
- void SetBkMode( UINT32 nMode );
- void SetBkColor( const Color& rColor );
- void SetTextColor( const Color& rColor );
- void SetTextAlign( UINT32 nAlign );
- void CreateObject( GDIObjectType, void* pStyle = NULL );
- void CreateObject( INT32 nIndex, GDIObjectType, void* pStyle = NULL );
- void DeleteObject( INT32 nIndex );
- void SelectObject( INT32 nIndex );
- CharSet GetCharSet(){ return maFont.GetCharSet(); };
+ void SetWorldTransform( const XForm& rXForm );
+ void ModifyWorldTransform( const XForm& rXForm, UINT32 nMode );
+
+ void Push();
+ void Pop();
+
+ UINT32 SetRasterOp( UINT32 nRasterOp );
+ void StrokeAndFillPath( sal_Bool bStroke, sal_Bool bFill );
+
+ void SetGfxMode( sal_Int32 nGfxMode ){ mnGfxMode = nGfxMode; };
+ sal_Int32 GetGfxMode() const { return mnGfxMode; };
+ void SetBkMode( UINT32 nMode );
+ void SetBkColor( const Color& rColor );
+ void SetTextColor( const Color& rColor );
+ void SetTextAlign( UINT32 nAlign );
+ void CreateObject( GDIObjectType, void* pStyle = NULL );
+ void CreateObject( INT32 nIndex, GDIObjectType, void* pStyle = NULL );
+ void DeleteObject( INT32 nIndex );
+ void SelectObject( INT32 nIndex );
+ CharSet GetCharSet(){ return maFont.GetCharSet(); };
WinMtfFillStyle& GetFillStyle () { return maFillStyle; }
- void SetFont( const Font& rFont );
- const Font& GetFont() const;
- void SetTextLayoutMode( const sal_uInt32 nLayoutMode );
- sal_uInt32 GetTextLayoutMode() const;
-
- void ClearPath(){ aPathObj.Init(); };
- void ClosePath(){ aPathObj.ClosePath(); };
- const PolyPolygon& GetPathObj(){ return aPathObj; };
-
- void MoveTo( const Point& rPoint, sal_Bool bRecordPath = sal_False );
- void LineTo( const Point& rPoint, sal_Bool bRecordPath = sal_False );
- void DrawPixel( const Point& rSource, const Color& rColor );
- void DrawLine( const Point& rSource, const Point& rDest );
- void DrawRect( const Rectangle& rRect, BOOL bEdge = TRUE );
- void DrawRoundRect( const Rectangle& rRect, const Size& rSize );
- void DrawEllipse( const Rectangle& rRect );
- void DrawArc( const Rectangle& rRect, const Point& rStartAngle, const Point& rEndAngle, BOOL bDrawTo = FALSE );
- void DrawPie( const Rectangle& rRect, const Point& rStartAngle, const Point& rEndAngle );
- void DrawChord( const Rectangle& rRect, const Point& rStartAngle, const Point& rEndAngle );
- void DrawPolygon( Polygon& rPolygon, sal_Bool bRecordPath = sal_False );
- void DrawPolyPolygon( PolyPolygon& rPolyPolygon, sal_Bool bRecordPath = sal_False );
- void DrawPolyLine( Polygon& rPolygon, sal_Bool bDrawTo = sal_False, sal_Bool bRecordPath = sal_False );
- void DrawPolyBezier( Polygon& rPolygin, sal_Bool bDrawTo = sal_False, sal_Bool bRecordPath = sal_False );
- void DrawText( Point& rPosition, String& rString, sal_Int32* pDXArry = NULL, sal_Bool bRecordPath = sal_False,
+ void SetFont( const Font& rFont );
+ const Font& GetFont() const;
+ void SetTextLayoutMode( const sal_uInt32 nLayoutMode );
+ sal_uInt32 GetTextLayoutMode() const;
+
+ void ClearPath(){ aPathObj.Init(); };
+ void ClosePath(){ aPathObj.ClosePath(); };
+ const PolyPolygon& GetPathObj(){ return aPathObj; };
+
+ void MoveTo( const Point& rPoint, sal_Bool bRecordPath = sal_False );
+ void LineTo( const Point& rPoint, sal_Bool bRecordPath = sal_False );
+ void DrawPixel( const Point& rSource, const Color& rColor );
+ void DrawLine( const Point& rSource, const Point& rDest );
+ void DrawRect( const Rectangle& rRect, BOOL bEdge = TRUE );
+ void DrawRoundRect( const Rectangle& rRect, const Size& rSize );
+ void DrawEllipse( const Rectangle& rRect );
+ void DrawArc( const Rectangle& rRect, const Point& rStartAngle, const Point& rEndAngle, BOOL bDrawTo = FALSE );
+ void DrawPie( const Rectangle& rRect, const Point& rStartAngle, const Point& rEndAngle );
+ void DrawChord( const Rectangle& rRect, const Point& rStartAngle, const Point& rEndAngle );
+ void DrawPolygon( Polygon& rPolygon, sal_Bool bRecordPath = sal_False );
+ void DrawPolyPolygon( PolyPolygon& rPolyPolygon, sal_Bool bRecordPath = sal_False );
+ void DrawPolyLine( Polygon& rPolygon, sal_Bool bDrawTo = sal_False, sal_Bool bRecordPath = sal_False );
+ void DrawPolyBezier( Polygon& rPolygin, sal_Bool bDrawTo = sal_False, sal_Bool bRecordPath = sal_False );
+ void DrawText( Point& rPosition, String& rString, sal_Int32* pDXArry = NULL, sal_Bool bRecordPath = sal_False,
sal_Int32 nGraphicsMode = GM_COMPATIBLE );
- void ResolveBitmapActions( List& rSaveList );
+ void ResolveBitmapActions( List& rSaveList );
- void IntersectClipRect( const Rectangle& rRect );
- void ExcludeClipRect( const Rectangle& rRect );
- void MoveClipRegion( const Size& rSize );
- void SetClipPath( const PolyPolygon& rPolyPoly, sal_Int32 nClippingMode, sal_Bool bIsMapped );
- void UpdateClipRegion();
- void AddFromGDIMetaFile( GDIMetaFile& rGDIMetaFile );
+ void IntersectClipRect( const Rectangle& rRect );
+ void ExcludeClipRect( const Rectangle& rRect );
+ void MoveClipRegion( const Size& rSize );
+ void SetClipPath( const PolyPolygon& rPolyPoly, sal_Int32 nClippingMode, sal_Bool bIsMapped );
+ void UpdateClipRegion();
+ void AddFromGDIMetaFile( GDIMetaFile& rGDIMetaFile );
void PassEMFPlus( void* pBuffer, UINT32 nLength );
void PassEMFPlusHeaderInfo();
WinMtfOutput( GDIMetaFile& rGDIMetaFile );
- virtual ~WinMtfOutput();
+ virtual ~WinMtfOutput();
};
// -----------------------------------------------------------------------------
@@ -692,20 +692,20 @@ class WinMtf
{
protected:
- WinMtfOutput* pOut; //
- SvStream* pWMF; // Die einzulesende WMF/EMF-Datei
+ WinMtfOutput* pOut; //
+ SvStream* pWMF; // Die einzulesende WMF/EMF-Datei
- UINT32 nStartPos, nEndPos;
- List aBmpSaveList;
+ UINT32 nStartPos, nEndPos;
+ List aBmpSaveList;
- FilterConfigItem* pFilterConfigItem;
+ FilterConfigItem* pFilterConfigItem;
com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > xStatusIndicator;
// Sorgt dafuer, das aSampledBrush der aktuelle Brush des GDIMetaFiles ist.
- Color ReadColor();
- void Callback( USHORT nPercent );
+ Color ReadColor();
+ void Callback( USHORT nPercent );
WinMtf( WinMtfOutput* pOut, SvStream& rStreamWMF, FilterConfigItem* pConfigItem = NULL );
~WinMtf();
@@ -718,21 +718,21 @@ class WinMtf
class EnhWMFReader : public WinMtf
{
- sal_Bool bRecordPath;
- sal_Int32 nRecordCount;
+ sal_Bool bRecordPath;
+ sal_Int32 nRecordCount;
BOOL bEMFPlus;
- BOOL ReadHeader();
- Rectangle ReadRectangle( INT32, INT32, INT32, INT32 ); // Liesst und konvertiert ein Rechteck
- void ImplExtTextOut( BOOL bWideCharakter );
+ BOOL ReadHeader();
+ Rectangle ReadRectangle( INT32, INT32, INT32, INT32 ); // Liesst und konvertiert ein Rechteck
+ void ImplExtTextOut( BOOL bWideCharakter );
public:
EnhWMFReader( SvStream& rStreamWMF, GDIMetaFile& rGDIMetaFile, FilterConfigItem* pConfigItem = NULL )
: WinMtf( new WinMtfOutput( rGDIMetaFile ), rStreamWMF, pConfigItem ), bRecordPath( sal_False ), bEMFPlus (FALSE) {};
~EnhWMFReader();
- BOOL ReadEnhWMF();
+ BOOL ReadEnhWMF();
void ReadEMFPlusComment(sal_uInt32 length, sal_Bool& bHaveDC);
void ReadGDIComment();
};
@@ -743,47 +743,47 @@ class WMFReader : public WinMtf
{
private:
- VirtualDevice aVDev; // just for the purpose of "IsFontAvailable"
- UINT16 nUnitsPerInch;
- sal_uInt32 nRecSize;
+ VirtualDevice aVDev; // just for the purpose of "IsFontAvailable"
+ UINT16 nUnitsPerInch;
+ sal_uInt32 nRecSize;
// embedded EMF data
- SvMemoryStream* pEMFStream;
+ SvMemoryStream* pEMFStream;
// total number of comment records containing EMF data
sal_uInt32 nEMFRecCount;
-
+
// number of EMF records read
sal_uInt32 nEMFRec;
// total size of embedded EMF data
sal_uInt32 nEMFSize;
- sal_uInt32 nSkipActions;
- sal_uInt32 nCurrentAction;
- sal_uInt32 nUnicodeEscapeAction;
+ sal_uInt32 nSkipActions;
+ sal_uInt32 nCurrentAction;
+ sal_uInt32 nUnicodeEscapeAction;
// Liesst den Kopf der WMF-Datei
- BOOL ReadHeader();
+ BOOL ReadHeader();
// Liesst die Parameter des Rocords mit der Funktionsnummer nFunction.
- void ReadRecordParams( USHORT nFunction );
+ void ReadRecordParams( USHORT nFunction );
- Point ReadPoint(); // Liesst und konvertiert einen Punkt (erst X dann Y)
- Point ReadYX(); // Liesst und konvertiert einen Punkt (erst Y dann X)
- Rectangle ReadRectangle(); // Liesst und konvertiert ein Rechteck
- Size ReadYXExt();
+ Point ReadPoint(); // Liesst und konvertiert einen Punkt (erst X dann Y)
+ Point ReadYX(); // Liesst und konvertiert einen Punkt (erst Y dann X)
+ Rectangle ReadRectangle(); // Liesst und konvertiert ein Rechteck
+ Size ReadYXExt();
sal_Bool GetPlaceableBound( Rectangle& rSize, SvStream* pStrm );
public:
WMFReader( SvStream& rStreamWMF, GDIMetaFile& rGDIMetaFile, FilterConfigItem* pConfigItem = NULL )
: WinMtf( new WinMtfOutput( rGDIMetaFile ), rStreamWMF, pConfigItem ) {};
-
+
~WMFReader();
// Liesst aus dem Stream eine WMF-Datei und fuellt das GDIMetaFile
- void ReadWMF();
+ void ReadWMF();
};
#endif
diff --git a/svtools/source/filter.vcl/wmf/winwmf.cxx b/svtools/source/filter.vcl/wmf/winwmf.cxx
index 1a67a97f17c2..fdb8cf5b620c 100644
--- a/svtools/source/filter.vcl/wmf/winwmf.cxx
+++ b/svtools/source/filter.vcl/wmf/winwmf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -334,9 +334,9 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_POLYPOLYGON:
{
- USHORT i, nPoly, nPoints;
- USHORT* pnPoints;
- Point* pPtAry;
+ USHORT i, nPoly, nPoints;
+ USHORT* pnPoints;
+ Point* pPtAry;
// Anzahl der Polygone:
*pWMF >> nPoly;
// Anzahl der Punkte eines jeden Polygons holen, Gesammtzahl der Punkte ermitteln:
@@ -401,7 +401,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
*pWMF >> nLength;
if ( nLength )
{
- char* pChar = new char[ ( nLength + 1 ) &~ 1 ];
+ char* pChar = new char[ ( nLength + 1 ) &~ 1 ];
pWMF->Read( pChar, ( nLength + 1 ) &~ 1 );
String aText( pChar, nLength, pOut->GetCharSet() );
delete[] pChar;
@@ -413,12 +413,12 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_EXTTEXTOUT:
{
- sal_Int16 nDx, nDxTmp;
- sal_uInt16 i, nLen, nOptions;
- sal_Int32 nRecordPos, nRecordSize, nOriginalTextLen, nNewTextLen;
- Point aPosition;
- Rectangle aRect;
- sal_Int32* pDXAry = NULL;
+ sal_Int16 nDx, nDxTmp;
+ sal_uInt16 i, nLen, nOptions;
+ sal_Int32 nRecordPos, nRecordSize, nOriginalTextLen, nNewTextLen;
+ Point aPosition;
+ Rectangle aRect;
+ sal_Int32* pDXAry = NULL;
pWMF->SeekRel(-6);
nRecordPos = pWMF->Tell();
@@ -446,15 +446,15 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
char* pChar = new char[ ( nOriginalTextLen + 1 ) &~ 1 ];
pWMF->Read( pChar, ( nOriginalTextLen + 1 ) &~ 1 );
String aText( pChar, (sal_uInt16)nOriginalTextLen, pOut->GetCharSet() );// after this conversion the text may contain
- nNewTextLen = aText.Len(); // less character (japanese version), so the
- delete[] pChar; // dxAry will not fit
+ nNewTextLen = aText.Len(); // less character (japanese version), so the
+ delete[] pChar; // dxAry will not fit
if ( nNewTextLen )
{
- sal_uInt32 nMaxStreamPos = nRecordPos + ( nRecordSize << 1 );
- sal_Int32 nDxArySize = nMaxStreamPos - pWMF->Tell();
- sal_Int32 nDxAryEntries = nDxArySize >> 1;
- sal_Bool bUseDXAry = FALSE;
+ sal_uInt32 nMaxStreamPos = nRecordPos + ( nRecordSize << 1 );
+ sal_Int32 nDxArySize = nMaxStreamPos - pWMF->Tell();
+ sal_Int32 nDxAryEntries = nDxArySize >> 1;
+ sal_Bool bUseDXAry = FALSE;
if ( ( ( nDxAryEntries % nOriginalTextLen ) == 0 ) && ( nNewTextLen <= nOriginalTextLen ) )
{
@@ -477,7 +477,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
*pWMF >> nDxTmp;
nDx = nDx + nDxTmp;
}
- }
+ }
}
pDXAry[ i ] = nDx;
}
@@ -497,7 +497,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_SELECTOBJECT:
{
- INT16 nObjIndex;
+ INT16 nObjIndex;
*pWMF >> nObjIndex;
pOut->SelectObject( nObjIndex );
}
@@ -505,7 +505,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_SETTEXTALIGN:
{
- UINT16 nAlign;
+ UINT16 nAlign;
*pWMF >> nAlign;
pOut->SetTextAlign( nAlign );
}
@@ -513,7 +513,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_BITBLT:
{
- // 0-3 : nWinROP #93454#
+ // 0-3 : nWinROP #93454#
// 4-5 : y offset of source bitmap
// 6-7 : x offset of source bitmap
// 8-9 : used height of source bitmap
@@ -525,11 +525,11 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
// 20-21 : Height Bitmap in Pixel
// 22-23 : bytes per scanline
// 24 : planes
- // 25 : bitcount
+ // 25 : bitcount
- sal_Int32 nWinROP;
- sal_uInt16 nSx, nSy, nSxe, nSye, nDontKnow, nWidth, nHeight, nBytesPerScan;
- sal_uInt8 nPlanes, nBitCount;
+ sal_Int32 nWinROP;
+ sal_uInt16 nSx, nSy, nSxe, nSye, nDontKnow, nWidth, nHeight, nBytesPerScan;
+ sal_uInt8 nPlanes, nBitCount;
*pWMF >> nWinROP
>> nSy >> nSx >> nSye >> nSxe;
@@ -562,7 +562,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
}
}
aBmp.ReleaseAccess( pAcc );
- if ( nSye && nSxe &&
+ if ( nSye && nSxe &&
( ( nSx + nSxe ) <= aBmp.GetSizePixel().Width() ) &&
( ( nSy + nSye <= aBmp.GetSizePixel().Height() ) ) )
{
@@ -573,7 +573,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
aBmpSaveList.Insert( new BSaveStruct( aBmp, aDestRect, nWinROP, pOut->GetFillStyle () ), LIST_APPEND );
}
}
- }
+ }
break;
case W_META_STRETCHBLT:
@@ -583,13 +583,13 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
{
sal_Int32 nWinROP;
sal_uInt16 nSx, nSy, nSxe, nSye, nUsage;
- Bitmap aBmp;
+ Bitmap aBmp;
*pWMF >> nWinROP;
if( nFunc == W_META_STRETCHDIB )
*pWMF >> nUsage;
-
+
// nSye and nSxe is the number of pixels that has to been used
if( nFunc == W_META_STRETCHDIB || nFunc == W_META_STRETCHBLT || nFunc == W_META_DIBSTRETCHBLT )
*pWMF >> nSye >> nSxe;
@@ -602,18 +602,18 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
if( nFunc == W_META_STRETCHDIB || nFunc == W_META_DIBBITBLT || nFunc == W_META_DIBSTRETCHBLT )
{
if ( nWinROP == PATCOPY )
- *pWMF >> nUsage; // i don't know anything of this parameter, so its called nUsage
+ *pWMF >> nUsage; // i don't know anything of this parameter, so its called nUsage
// pOut->DrawRect( Rectangle( ReadYX(), aDestSize ), FALSE );
Size aDestSize( ReadYXExt() );
- if ( aDestSize.Width() && aDestSize.Height() ) // #92623# do not try to read buggy bitmaps
+ if ( aDestSize.Width() && aDestSize.Height() ) // #92623# do not try to read buggy bitmaps
{
Rectangle aDestRect( ReadYX(), aDestSize );
if ( nWinROP != PATCOPY )
aBmp.Read( *pWMF, FALSE );
// test if it is sensible to crop
- if ( nSye && nSxe &&
+ if ( nSye && nSxe &&
( ( nSx + nSxe ) <= aBmp.GetSizePixel().Width() ) &&
( ( nSy + nSye <= aBmp.GetSizePixel().Height() ) ) )
{
@@ -628,10 +628,10 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_DIBCREATEPATTERNBRUSH:
{
- Bitmap aBmp;
+ Bitmap aBmp;
BitmapReadAccess* pBmp;
- UINT32 nRed = 0, nGreen = 0, nBlue = 0, nCount = 1;
- UINT16 nFunction;
+ UINT32 nRed = 0, nGreen = 0, nBlue = 0, nCount = 1;
+ UINT16 nFunction;
*pWMF >> nFunction >> nFunction;
@@ -643,8 +643,8 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
{
for ( INT32 x = 0; x < pBmp->Width(); x++ )
{
- const BitmapColor aColor( pBmp->GetColor( y, x ) );
-
+ const BitmapColor aColor( pBmp->GetColor( y, x ) );
+
nRed += aColor.GetRed();
nGreen += aColor.GetGreen();
nBlue += aColor.GetBlue();
@@ -688,8 +688,8 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_CREATEPENINDIRECT:
{
- LineInfo aLineInfo;
- USHORT nStyle, nWidth, nHeight;
+ LineInfo aLineInfo;
+ USHORT nStyle, nWidth, nHeight;
*pWMF >> nStyle >> nWidth >> nHeight;
@@ -732,7 +732,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_CREATEBRUSHINDIRECT:
{
- USHORT nStyle;
+ USHORT nStyle;
*pWMF >> nStyle;
pOut->CreateObject( GDI_BRUSH, new WinMtfFillStyle( ReadColor(), ( nStyle == BS_HOLLOW ) ? TRUE : FALSE ) );
}
@@ -740,9 +740,9 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
case W_META_CREATEFONTINDIRECT:
{
- Size aFontSize;
- char lfFaceName[ LF_FACESIZE ];
- INT16 lfEscapement, lfOrientation, lfWeight; // ( ehemals USHORT )
+ Size aFontSize;
+ char lfFaceName[ LF_FACESIZE ];
+ INT16 lfEscapement, lfOrientation, lfWeight; // ( ehemals USHORT )
LOGFONTW aLogFont;
aFontSize = ReadYXExt();
@@ -830,22 +830,22 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
pWMF->SetError( SVSTREAM_FILEFORMAT_ERROR );
break;
}
- if ( nRecSize >= 4 ) // minimal escape lenght
+ if ( nRecSize >= 4 ) // minimal escape lenght
{
- sal_uInt16 nMode, nLen;
+ sal_uInt16 nMode, nLen;
*pWMF >> nMode
>> nLen;
if ( ( nMode == W_MFCOMMENT ) && ( nLen >= 4 ) )
{
- sal_uInt32 nNewMagic; // we have to read int32 for
+ sal_uInt32 nNewMagic; // we have to read int32 for
*pWMF >> nNewMagic; // META_ESCAPE_ENHANCED_METAFILE CommentIdentifier
-
+
if( nNewMagic == 0x2c2a4f4f && nLen >= 14 )
{
sal_uInt16 nMagic2;
*pWMF >> nMagic2;
if( nMagic2 == 0x0a ) // 2nd half of magic
- { // continue with private escape
+ { // continue with private escape
sal_uInt32 nCheck, nEsc;
*pWMF >> nCheck
>> nEsc;
@@ -877,12 +877,12 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
switch( nEsc )
{
case PRIVATE_ESCAPE_UNICODE :
- { // we will use text instead of polygons only if we have the correct font
+ { // we will use text instead of polygons only if we have the correct font
if ( aVDev.IsFontAvailable( pOut->GetFont().GetName() ) )
{
Point aPt;
String aString;
- sal_uInt32 i, nStringLen, nDXCount;
+ sal_uInt32 i, nStringLen, nDXCount;
sal_Int32* pDXAry = NULL;
SvMemoryStream aMemoryStream( nEscLen );
aMemoryStream.Write( pData, nEscLen );
@@ -918,12 +918,12 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
}
else if ( (nNewMagic == static_cast< sal_uInt32 >(0x43464D57)) && (nLen >= 34) && ( (sal_Int32)(nLen + 10) <= (sal_Int32)(nRecSize * 2) ))
{
- sal_uInt32 nComType, nVersion, nFlags, nComRecCount,
+ sal_uInt32 nComType, nVersion, nFlags, nComRecCount,
nCurRecSize, nRemainingSize, nEMFTotalSize;
sal_uInt16 nCheck;
-
+
*pWMF >> nComType >> nVersion >> nCheck >> nFlags
- >> nComRecCount >> nCurRecSize
+ >> nComRecCount >> nCurRecSize
>> nRemainingSize >> nEMFTotalSize; // the nRemainingSize is not mentioned in MSDN documentation
// but it seems to be required to read in data produced by OLE
@@ -950,7 +950,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
delete pEMFStream;
pEMFStream = NULL;
}
-
+
if( pEMFStream )
{
sal_Int8* pBuf = new sal_Int8[ nCurRecSize ];
@@ -999,7 +999,7 @@ void WMFReader::ReadRecordParams( USHORT nFunc )
BOOL WMFReader::ReadHeader()
{
- Rectangle aPlaceableBound;
+ Rectangle aPlaceableBound;
sal_uInt32 nl, nStrmPos = pWMF->Tell();
// Einlesen des METAFILEHEADER, falls vorhanden
@@ -1030,7 +1030,7 @@ BOOL WMFReader::ReadHeader()
}
else
{
- nUnitsPerInch = 96;
+ nUnitsPerInch = 96;
pWMF->Seek( nStrmPos + 18 ); // set the streampos to the start of the the metaactions
GetPlaceableBound( aPlaceableBound, pWMF );
pWMF->Seek( nStrmPos );
@@ -1043,9 +1043,9 @@ BOOL WMFReader::ReadHeader()
Size aDevExt( 10000, 10000 );
if( ( labs( aWMFSize.Width() ) > 1 ) && ( labs( aWMFSize.Height() ) > 1 ) )
{
- const Fraction aFrac( 1, nUnitsPerInch );
- MapMode aWMFMap( MAP_INCH, Point(), aFrac, aFrac );
- Size aSize100( OutputDevice::LogicToLogic( aWMFSize, aWMFMap, MAP_100TH_MM ) );
+ const Fraction aFrac( 1, nUnitsPerInch );
+ MapMode aWMFMap( MAP_INCH, Point(), aFrac, aFrac );
+ Size aSize100( OutputDevice::LogicToLogic( aWMFSize, aWMFMap, MAP_100TH_MM ) );
aDevExt = Size( labs( aSize100.Width() ), labs( aSize100.Height() ) );
}
pOut->SetDevExt( aDevExt );
@@ -1070,9 +1070,9 @@ BOOL WMFReader::ReadHeader()
void WMFReader::ReadWMF()
{
- USHORT nFunction;
- ULONG nPos, nPercent, nLastPercent;
-
+ USHORT nFunction;
+ ULONG nPos, nPercent, nLastPercent;
+
nSkipActions = 0;
nCurrentAction = 0;
nUnicodeEscapeAction = 0;
@@ -1081,7 +1081,7 @@ void WMFReader::ReadWMF()
nEMFRecCount = 0;
nEMFRec = 0;
nEMFSize = 0;
-
+
sal_Bool bEMFAvailable = sal_False;
pOut->SetMapMode( MM_ANISOTROPIC );
@@ -1133,7 +1133,7 @@ void WMFReader::ReadWMF()
ReadRecordParams( nFunction );
else
nSkipActions--;
-
+
if( pEMFStream && nEMFRecCount == nEMFRec )
{
GDIMetaFile aMeta;
@@ -1142,7 +1142,7 @@ void WMFReader::ReadWMF()
bEMFAvailable = pEMFReader->ReadEnhWMF();
delete pEMFReader; // destroy first!!!
- if( bEMFAvailable )
+ if( bEMFAvailable )
{
pOut->AddFromGDIMetaFile( aMeta );
pOut->SetrclFrame( Rectangle(0, 0, aMeta.GetPrefSize().Width(), aMeta.GetPrefSize().Height() ));
@@ -1210,14 +1210,14 @@ sal_Bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pSt
rPlaceableBound.Top() = (sal_Int32)0x7fffffff;
rPlaceableBound.Right() = (sal_Int32)0x80000000;
rPlaceableBound.Bottom() = (sal_Int32)0x80000000;
-
+
sal_Int16 nMapMode = MM_ANISOTROPIC;
sal_uInt16 nFunction;
sal_uInt32 nRSize;
sal_uInt32 nPos = pStm->Tell();
sal_uInt32 nEnd = pStm->Seek( STREAM_SEEK_TO_END );
-
+
pStm->Seek( nPos );
if( nEnd - nPos )
@@ -1252,7 +1252,7 @@ sal_Bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pSt
*pStm >> nHeight >> nWidth;
rPlaceableBound.SetSize( Size( nWidth, nHeight ) );
}
- break;
+ break;
case W_META_SETMAPMODE :
*pStm >> nMapMode;
@@ -1298,7 +1298,7 @@ sal_Bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pSt
case W_META_POLYPOLYGON:
{
- USHORT i, nPoly, nPoints = 0;
+ USHORT i, nPoly, nPoints = 0;
*pStm >> nPoly;
for( i = 0; i < nPoly; i++ )
{
@@ -1342,10 +1342,10 @@ sal_Bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pSt
case W_META_EXTTEXTOUT:
{
- sal_uInt16 nLen, nOptions;
- sal_Int32 nRecordPos, nRecordSize;
- Point aPosition;
- Rectangle aRect;
+ sal_uInt16 nLen, nOptions;
+ sal_Int32 nRecordPos, nRecordSize;
+ Point aPosition;
+ Rectangle aRect;
pStm->SeekRel(-6);
nRecordPos = pStm->Tell();
@@ -1370,7 +1370,7 @@ sal_Bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pSt
if( nFunction == W_META_STRETCHDIB )
*pStm >> nUsage;
-
+
// nSye and nSxe is the number of pixels that has to been used
if( nFunction == W_META_STRETCHDIB || nFunction == W_META_STRETCHBLT || nFunction == W_META_DIBSTRETCHBLT )
*pStm >> nSye >> nSxe;
@@ -1383,11 +1383,11 @@ sal_Bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pSt
if( nFunction == W_META_STRETCHDIB || nFunction == W_META_DIBBITBLT || nFunction == W_META_DIBSTRETCHBLT )
{
if ( nWinROP == PATCOPY )
- *pStm >> nUsage; // i don't know anything of this parameter, so its called nUsage
+ *pStm >> nUsage; // i don't know anything of this parameter, so its called nUsage
// pOut->DrawRect( Rectangle( ReadYX(), aDestSize ), FALSE );
Size aDestSize( ReadYXExt() );
- if ( aDestSize.Width() && aDestSize.Height() ) // #92623# do not try to read buggy bitmaps
+ if ( aDestSize.Width() && aDestSize.Height() ) // #92623# do not try to read buggy bitmaps
{
Rectangle aDestRect( ReadYX(), aDestSize );
GetWinExtMax( aDestRect, rPlaceableBound, nMapMode );
diff --git a/svtools/source/filter.vcl/wmf/wmf.cxx b/svtools/source/filter.vcl/wmf/wmf.cxx
index 035eaf9e5225..095cbfd8ec08 100644
--- a/svtools/source/filter.vcl/wmf/wmf.cxx
+++ b/svtools/source/filter.vcl/wmf/wmf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/filter.vcl/wmf/wmfwr.cxx b/svtools/source/filter.vcl/wmf/wmfwr.cxx
index b1d08c091be8..fd8fefdda821 100644
--- a/svtools/source/filter.vcl/wmf/wmfwr.cxx
+++ b/svtools/source/filter.vcl/wmf/wmfwr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
#include <rtl/tencinfo.h>
#include <tools/tenccvt.hxx>
#include <osl/endian.h>
-#include <i18nutil/unicode.hxx> //unicode::getUnicodeScriptType
+#include <i18nutil/unicode.hxx> //unicode::getUnicodeScriptType
#include <vcl/metric.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
@@ -189,17 +189,17 @@
#define W_CHINESEBIG5_CHARSET 136
#define W_OEM_CHARSET 255
/*WINVER >= 0x0400*/
-#define W_JOHAB_CHARSET 130
-#define W_HEBREW_CHARSET 177
-#define W_ARABIC_CHARSET 178
-#define W_GREEK_CHARSET 161
-#define W_TURKISH_CHARSET 162
+#define W_JOHAB_CHARSET 130
+#define W_HEBREW_CHARSET 177
+#define W_ARABIC_CHARSET 178
+#define W_GREEK_CHARSET 161
+#define W_TURKISH_CHARSET 162
#define W_VIETNAMESE_CHARSET 163
-#define W_THAI_CHARSET 222
+#define W_THAI_CHARSET 222
#define W_EASTEUROPE_CHARSET 238
#define W_RUSSIAN_CHARSET 204
#define W_MAC_CHARSET 77
-#define W_BALTIC_CHARSET 186
+#define W_BALTIC_CHARSET 186
#define W_DEFAULT_PITCH 0x00
#define W_FIXED_PITCH 0x01
@@ -242,9 +242,9 @@
#define W_HS_CROSS 4
#define W_HS_DIAGCROSS 5
-#define W_MFCOMMENT 15
+#define W_MFCOMMENT 15
-#define PRIVATE_ESCAPE_UNICODE 2
+#define PRIVATE_ESCAPE_UNICODE 2
/// copied from writerwordglue.cxx
@@ -458,8 +458,8 @@ void WMFWriter::WMFRecord_CreateFontIndirect(const Font & rFont)
if (rFont.GetUnderline()==UNDERLINE_NONE) *pWMF << (BYTE)0; else *pWMF << (BYTE)1;
if (rFont.GetStrikeout()==STRIKEOUT_NONE) *pWMF << (BYTE)0; else *pWMF << (BYTE)1;
- CharSet eFontNameEncoding = rFont.GetCharSet();
- sal_uInt8 nCharSet = rtl_getBestWindowsCharsetFromTextEncoding( eFontNameEncoding );
+ CharSet eFontNameEncoding = rFont.GetCharSet();
+ sal_uInt8 nCharSet = rtl_getBestWindowsCharsetFromTextEncoding( eFontNameEncoding );
if ( eFontNameEncoding == RTL_TEXTENCODING_SYMBOL )
eFontNameEncoding = RTL_TEXTENCODING_MS_1252;
if ( nCharSet == 1 )
@@ -560,14 +560,14 @@ void WMFWriter::WMFRecord_Escape( sal_uInt32 nEsc, sal_uInt32 nLen, const sal_In
WriteRecordHeader( 3 + 9 + ( ( nLen + 1 ) >> 1 ), W_META_ESCAPE );
*pWMF << (sal_uInt16)W_MFCOMMENT
- << (sal_uInt16)( nLen + 14 ) // we will always have a fourteen byte escape header:
- << (sal_uInt16)0x4f4f // OO
- << (sal_uInt32)0xa2c2a // evil magic number
- << (sal_uInt32)nCheckSum // crc32 checksum about nEsc & pData
- << (sal_uInt32)nEsc; // escape number
+ << (sal_uInt16)( nLen + 14 ) // we will always have a fourteen byte escape header:
+ << (sal_uInt16)0x4f4f // OO
+ << (sal_uInt32)0xa2c2a // evil magic number
+ << (sal_uInt32)nCheckSum // crc32 checksum about nEsc & pData
+ << (sal_uInt32)nEsc; // escape number
pWMF->Write( pData, nLen );
if ( nLen & 1 )
- *pWMF << (sal_uInt8)0; // pad byte
+ *pWMF << (sal_uInt8)0; // pad byte
}
/* if return value is true, then a complete unicode string and also a polygon replacement has been written,
@@ -581,49 +581,49 @@ sal_Bool WMFWriter::WMFRecord_Escape_Unicode( const Point& rPoint, const String&
if ( nStringLen )
{
// first we will check if a comment is necessary
- if ( aSrcFont.GetCharSet() != RTL_TEXTENCODING_SYMBOL ) // symbol is always byte character, so there is no unicode loss
+ if ( aSrcFont.GetCharSet() != RTL_TEXTENCODING_SYMBOL ) // symbol is always byte character, so there is no unicode loss
{
const sal_Unicode* pBuf = rUniStr.GetBuffer();
const rtl_TextEncoding aTextEncodingOrg = aSrcFont.GetCharSet();
ByteString aByteStr( rUniStr, aTextEncodingOrg );
- String aUniStr2( aByteStr, aTextEncodingOrg );
- const sal_Unicode* pConversion = aUniStr2.GetBuffer(); // this is the unicode array after bytestring <-> unistring conversion
+ String aUniStr2( aByteStr, aTextEncodingOrg );
+ const sal_Unicode* pConversion = aUniStr2.GetBuffer(); // this is the unicode array after bytestring <-> unistring conversion
for ( i = 0; i < nStringLen; i++ )
{
if ( *pBuf++ != *pConversion++ )
break;
}
- if ( i != nStringLen ) // after conversion the characters are not original,
- { // try again, with determining a better charset from unicode char
+ if ( i != nStringLen ) // after conversion the characters are not original,
+ { // try again, with determining a better charset from unicode char
pBuf = rUniStr.GetBuffer();
const sal_Unicode* pCheckChar = pBuf;
- rtl_TextEncoding aTextEncoding = getScriptClass (*pCheckChar); // try the first character
+ rtl_TextEncoding aTextEncoding = getScriptClass (*pCheckChar); // try the first character
for ( i = 1; i < nStringLen; i++)
{
if (aTextEncoding != aTextEncodingOrg) // found something
break;
pCheckChar++;
- aTextEncoding = getScriptClass (*pCheckChar); // try the next character
+ aTextEncoding = getScriptClass (*pCheckChar); // try the next character
}
aByteStr = ByteString ( rUniStr, aTextEncoding );
aUniStr2 = String ( aByteStr, aTextEncoding );
- pConversion = aUniStr2.GetBuffer(); // this is the unicode array after bytestring <-> unistring conversion
+ pConversion = aUniStr2.GetBuffer(); // this is the unicode array after bytestring <-> unistring conversion
for ( i = 0; i < nStringLen; i++ )
{
if ( *pBuf++ != *pConversion++ )
break;
}
- if (i == nStringLen)
+ if (i == nStringLen)
{
aSrcFont.SetCharSet (aTextEncoding);
SetAllAttr();
}
}
- if ( ( i != nStringLen ) || IsStarSymbol( aSrcFont.GetName() ) ) // after conversion the characters are not original, so we
- { // will store the unicode string and a polypoly replacement
+ if ( ( i != nStringLen ) || IsStarSymbol( aSrcFont.GetName() ) ) // after conversion the characters are not original, so we
+ { // will store the unicode string and a polypoly replacement
Color aOldFillColor( aSrcFillColor );
Color aOldLineColor( aSrcLineColor );
aSrcLineInfo = LineInfo();
@@ -686,7 +686,7 @@ void WMFWriter::WMFRecord_ExtTextOut( const Point & rPoint,
TrueExtTextOut(rPoint,rString,aByteString,pDXAry);
}
-void WMFWriter::TrueExtTextOut( const Point & rPoint, const String & rString,
+void WMFWriter::TrueExtTextOut( const Point & rPoint, const String & rString,
const ByteString & rByteString, const sal_Int32 * pDXAry )
{
WriteRecordHeader( 0, W_META_EXTTEXTOUT );
@@ -1179,8 +1179,8 @@ void WMFWriter::HandleLineInfoPolyPolygons(const LineInfo& rInfo, const basegfx:
void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
{
- ULONG nA, nACount;
- MetaAction* pMA;
+ ULONG nA, nACount;
+ MetaAction* pMA;
if( bStatus )
{
@@ -1205,8 +1205,8 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_POINT_ACTION:
{
- const MetaPointAction* pA = (const MetaPointAction*) pMA;
- const Point& rPt = pA->GetPoint();
+ const MetaPointAction* pA = (const MetaPointAction*) pMA;
+ const Point& rPt = pA->GetPoint();
aSrcLineInfo = LineInfo();
SetLineAndFillAttr();
WMFRecord_MoveTo( rPt);
@@ -1293,7 +1293,7 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_POLYLINE_ACTION:
{
const MetaPolyLineAction* pA = (const MetaPolyLineAction*) pMA;
- const Polygon& rPoly = pA->GetPolygon();
+ const Polygon& rPoly = pA->GetPolygon();
if( rPoly.GetSize() )
{
@@ -1357,7 +1357,7 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_TEXTARRAY_ACTION:
{
const MetaTextArrayAction* pA = (const MetaTextArrayAction*) pMA;
-
+
String aTemp( pA->GetText(), pA->GetIndex(), pA->GetLen() );
aSrcLineInfo = LineInfo();
SetAllAttr();
@@ -1406,8 +1406,8 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_BMPSCALEPART_ACTION:
{
- const MetaBmpScalePartAction* pA = (const MetaBmpScalePartAction*) pMA;
- Bitmap aTmp( pA->GetBitmap() );
+ const MetaBmpScalePartAction* pA = (const MetaBmpScalePartAction*) pMA;
+ Bitmap aTmp( pA->GetBitmap() );
if( aTmp.Crop( Rectangle( pA->GetSrcPoint(), pA->GetSrcSize() ) ) )
WMFRecord_StretchDIB( pA->GetDestPoint(), pA->GetDestSize(), aTmp );
@@ -1416,9 +1416,9 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_BMPEX_ACTION:
{
- const MetaBmpExAction* pA = (const MetaBmpExAction *) pMA;
- Bitmap aBmp( pA->GetBitmapEx().GetBitmap() );
- Bitmap aMsk( pA->GetBitmapEx().GetMask() );
+ const MetaBmpExAction* pA = (const MetaBmpExAction *) pMA;
+ Bitmap aBmp( pA->GetBitmapEx().GetBitmap() );
+ Bitmap aMsk( pA->GetBitmapEx().GetMask() );
if( !!aMsk )
{
@@ -1434,9 +1434,9 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_BMPEXSCALE_ACTION:
{
- const MetaBmpExScaleAction* pA = (const MetaBmpExScaleAction*) pMA;
- Bitmap aBmp( pA->GetBitmapEx().GetBitmap() );
- Bitmap aMsk( pA->GetBitmapEx().GetMask() );
+ const MetaBmpExScaleAction* pA = (const MetaBmpExScaleAction*) pMA;
+ Bitmap aBmp( pA->GetBitmapEx().GetBitmap() );
+ Bitmap aMsk( pA->GetBitmapEx().GetMask() );
if( !!aMsk )
{
@@ -1452,11 +1452,11 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_BMPEXSCALEPART_ACTION:
{
- const MetaBmpExScalePartAction* pA = (const MetaBmpExScalePartAction*) pMA;
- BitmapEx aBmpEx( pA->GetBitmapEx() );
+ const MetaBmpExScalePartAction* pA = (const MetaBmpExScalePartAction*) pMA;
+ BitmapEx aBmpEx( pA->GetBitmapEx() );
aBmpEx.Crop( Rectangle( pA->GetSrcPoint(), pA->GetSrcSize() ) );
- Bitmap aBmp( aBmpEx.GetBitmap() );
- Bitmap aMsk( aBmpEx.GetMask() );
+ Bitmap aBmp( aBmpEx.GetBitmap() );
+ Bitmap aMsk( aBmpEx.GetMask() );
if( !!aMsk )
{
@@ -1472,8 +1472,8 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_GRADIENT_ACTION:
{
- const MetaGradientAction* pA = (const MetaGradientAction*) pMA;
- GDIMetaFile aTmpMtf;
+ const MetaGradientAction* pA = (const MetaGradientAction*) pMA;
+ GDIMetaFile aTmpMtf;
pVirDev->AddGradientActions( pA->GetRect(), pA->GetGradient(), aTmpMtf );
WriteRecords( aTmpMtf );
@@ -1482,8 +1482,8 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_HATCH_ACTION:
{
- const MetaHatchAction* pA = (const MetaHatchAction*) pMA;
- GDIMetaFile aTmpMtf;
+ const MetaHatchAction* pA = (const MetaHatchAction*) pMA;
+ GDIMetaFile aTmpMtf;
pVirDev->AddHatchActions( pA->GetPolyPolygon(), pA->GetHatch(), aTmpMtf );
WriteRecords( aTmpMtf );
@@ -1492,10 +1492,10 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_WALLPAPER_ACTION:
{
- const MetaWallpaperAction* pA = (const MetaWallpaperAction*) pMA;
- const Color& rColor = pA->GetWallpaper().GetColor();
- const Color aOldLineColor( aSrcLineColor );
- const Color aOldFillColor( aSrcFillColor );
+ const MetaWallpaperAction* pA = (const MetaWallpaperAction*) pMA;
+ const Color& rColor = pA->GetWallpaper().GetColor();
+ const Color aOldLineColor( aSrcLineColor );
+ const Color aOldFillColor( aSrcFillColor );
aSrcLineColor = rColor;
aSrcFillColor = rColor;
@@ -1729,15 +1729,15 @@ void WMFWriter::WriteRecords( const GDIMetaFile & rMTF )
case META_FLOATTRANSPARENT_ACTION:
{
const MetaFloatTransparentAction* pA = (const MetaFloatTransparentAction*) pMA;
-
- GDIMetaFile aTmpMtf( pA->GetGDIMetaFile() );
- Point aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
- const Size aSrcSize( aTmpMtf.GetPrefSize() );
- const Point aDestPt( pA->GetPoint() );
- const Size aDestSize( pA->GetSize() );
- const double fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
- const double fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
- long nMoveX, nMoveY;
+
+ GDIMetaFile aTmpMtf( pA->GetGDIMetaFile() );
+ Point aSrcPt( aTmpMtf.GetPrefMapMode().GetOrigin() );
+ const Size aSrcSize( aTmpMtf.GetPrefSize() );
+ const Point aDestPt( pA->GetPoint() );
+ const Size aDestSize( pA->GetSize() );
+ const double fScaleX = aSrcSize.Width() ? (double) aDestSize.Width() / aSrcSize.Width() : 1.0;
+ const double fScaleY = aSrcSize.Height() ? (double) aDestSize.Height() / aSrcSize.Height() : 1.0;
+ long nMoveX, nMoveY;
aSrcLineInfo = LineInfo();
SetAllAttr();
@@ -1815,9 +1815,9 @@ void WMFWriter::WriteHeader( const GDIMetaFile &, BOOL bPlaceable )
{
if( bPlaceable )
{
- USHORT nCheckSum, nValue;
- Size aSize( pVirDev->LogicToLogic(Size(1,1),MapMode(MAP_INCH), aTargetMapMode) );
- USHORT nUnitsPerInch = (USHORT) ( ( aSize.Width() + aSize.Height() ) >> 1 );
+ USHORT nCheckSum, nValue;
+ Size aSize( pVirDev->LogicToLogic(Size(1,1),MapMode(MAP_INCH), aTargetMapMode) );
+ USHORT nUnitsPerInch = (USHORT) ( ( aSize.Width() + aSize.Height() ) >> 1 );
nCheckSum=0;
nValue=0xcdd7; nCheckSum^=nValue; *pWMF << nValue;
@@ -1825,8 +1825,8 @@ void WMFWriter::WriteHeader( const GDIMetaFile &, BOOL bPlaceable )
nValue=0x0000; nCheckSum^=nValue; *pWMF << nValue;
nValue=0x0000; nCheckSum^=nValue; *pWMF << nValue;
nValue=0x0000; nCheckSum^=nValue; *pWMF << nValue;
- nValue=(USHORT) aTargetSize.Width(); nCheckSum^=nValue; *pWMF << nValue;
- nValue=(USHORT) aTargetSize.Height(); nCheckSum^=nValue; *pWMF << nValue;
+ nValue=(USHORT) aTargetSize.Width(); nCheckSum^=nValue; *pWMF << nValue;
+ nValue=(USHORT) aTargetSize.Height(); nCheckSum^=nValue; *pWMF << nValue;
nValue=nUnitsPerInch; nCheckSum^=nValue; *pWMF << nValue;
nValue=0x0000; nCheckSum^=nValue; *pWMF << nValue;
nValue=0x0000; nCheckSum^=nValue; *pWMF << nValue;
@@ -1837,9 +1837,9 @@ void WMFWriter::WriteHeader( const GDIMetaFile &, BOOL bPlaceable )
*pWMF << (sal_uInt16)0x0001 // Typ: Datei
<< (sal_uInt16)0x0009 // Headerlaenge in Worten
<< (sal_uInt16)0x0300 // Version als BCD-Zahl
- << (sal_uInt32) 0x00000000 // Dateilaenge (ohne 1. Header), wird spaeter durch UpdateHeader() berichtigt
+ << (sal_uInt32) 0x00000000 // Dateilaenge (ohne 1. Header), wird spaeter durch UpdateHeader() berichtigt
<< (sal_uInt16)MAXOBJECTHANDLES // Maximalezahl der gleichzeitigen Objekte
- << (sal_uInt32) 0x00000000 // Maximale Record-laenge, wird spaeter durch UpdateHeader() berichtigt
+ << (sal_uInt32) 0x00000000 // Maximale Record-laenge, wird spaeter durch UpdateHeader() berichtigt
<< (sal_uInt16)0x0000; // Reserved
}
@@ -1908,8 +1908,8 @@ BOOL WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream,
{
aTargetMapMode = MapMode( MAP_INCH );
- const long nUnit = pVirDev->LogicToPixel( Size( 1, 1 ), aTargetMapMode ).Width();
- const Fraction aFrac( 1, nUnit );
+ const long nUnit = pVirDev->LogicToPixel( Size( 1, 1 ), aTargetMapMode ).Width();
+ const Fraction aFrac( 1, nUnit );
aTargetMapMode.SetScaleX( aFrac );
aTargetMapMode.SetScaleY( aFrac );
@@ -1987,7 +1987,7 @@ BOOL WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream,
if ( xStatusIndicator.is() )
xStatusIndicator->end();
-
+
return bStatus;
}
@@ -1996,8 +1996,8 @@ BOOL WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream,
USHORT WMFWriter::CalcSaveTargetMapMode(MapMode& rMapMode,
const Size& rPrefSize)
{
- Fraction aDivFrac(2, 1);
- USHORT nDivisor = 1;
+ Fraction aDivFrac(2, 1);
+ USHORT nDivisor = 1;
Size aSize = pVirDev->LogicToLogic( rPrefSize, aSrcMapMode, rMapMode );
@@ -2023,7 +2023,7 @@ void WMFWriter::WriteEmbeddedEMF( const GDIMetaFile& rMTF )
{
EMFWriter aEMFWriter;
SvMemoryStream aStream;
-
+
if( aEMFWriter.WriteEMF( rMTF, aStream ) )
{
sal_Size nTotalSize = aStream.Tell();
@@ -2059,8 +2059,8 @@ void WMFWriter::WriteEmbeddedEMF( const GDIMetaFile& rMTF )
nCurSize = nRemainingSize;
nRemainingSize = 0;
}
- WriteEMFRecord( aStream,
- nCurSize,
+ WriteEMFRecord( aStream,
+ nCurSize,
nRemainingSize,
nTotalSize,
nRecCounts,
@@ -2069,18 +2069,18 @@ void WMFWriter::WriteEmbeddedEMF( const GDIMetaFile& rMTF )
}
}
}
-
+
// ------------------------------------------------------------------------
void WMFWriter::WriteEMFRecord( SvMemoryStream& rStream, sal_uInt32 nCurSize, sal_uInt32 nRemainingSize,
sal_uInt32 nTotalSize, sal_uInt32 nRecCounts, sal_uInt16 nCheckSum )
{
// according to http://msdn.microsoft.com/en-us/library/dd366152%28PROT.13%29.aspx
- WriteRecordHeader( 0, W_META_ESCAPE );
- *pWMF << (sal_uInt16)W_MFCOMMENT // same as META_ESCAPE_ENHANCED_METAFILE
- << (sal_uInt16)( nCurSize + 34 ) // we will always have a 34 byte escape header:
- << (sal_uInt32) 0x43464D57 // WMFC
- << (sal_uInt32) 0x00000001 // Comment type
+ WriteRecordHeader( 0, W_META_ESCAPE );
+ *pWMF << (sal_uInt16)W_MFCOMMENT // same as META_ESCAPE_ENHANCED_METAFILE
+ << (sal_uInt16)( nCurSize + 34 ) // we will always have a 34 byte escape header:
+ << (sal_uInt32) 0x43464D57 // WMFC
+ << (sal_uInt32) 0x00000001 // Comment type
<< (sal_uInt32) 0x00010000 // version
<< nCheckSum // check sum
<< (sal_uInt32) 0 // flags = 0
diff --git a/svtools/source/filter.vcl/wmf/wmfwr.hxx b/svtools/source/filter.vcl/wmf/wmfwr.hxx
index 222550317784..9b001f687f70 100644
--- a/svtools/source/filter.vcl/wmf/wmfwr.hxx
+++ b/svtools/source/filter.vcl/wmf/wmfwr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,27 +70,27 @@ class WMFWriter
{
private:
- BOOL bStatus;
+ BOOL bStatus;
- ULONG nLastPercent; // Mit welcher Zahl pCallback zuletzt aufgerufen wurde.
- FilterConfigItem* pFilterConfigItem;
+ ULONG nLastPercent; // Mit welcher Zahl pCallback zuletzt aufgerufen wurde.
+ FilterConfigItem* pFilterConfigItem;
com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > xStatusIndicator;
- SvStream* pWMF;
- VirtualDevice* pVirDev;
+ SvStream* pWMF;
+ VirtualDevice* pVirDev;
StarSymbolToMSMultiFont *pConvert;
- MapMode aTargetMapMode;
- Size aTargetSize;
- USHORT nTargetDivisor;
+ MapMode aTargetMapMode;
+ Size aTargetSize;
+ USHORT nTargetDivisor;
ULONG nMetafileHeaderPos;
sal_uInt32 nMaxRecordSize; // in Worten
ULONG nActRecordPos;
// Aktuelle Attribute im Quell-Metafile:
- Color aSrcLineColor;
- Color aSrcFillColor;
+ Color aSrcLineColor;
+ Color aSrcFillColor;
Color aSrcTextColor;
LineInfo aSrcLineInfo;
RasterOp eSrcRasterOp;
@@ -101,18 +101,18 @@ private:
Region aSrcClipRegion;
WMFWriterAttrStackMember * pAttrStack;
- UINT32 eSrcHorTextAlign;
+ UINT32 eSrcHorTextAlign;
// Aktuelle Attribute im Ziel-Metafile:
- Color aDstLineColor;
- Color aDstFillColor;
+ Color aDstLineColor;
+ Color aDstFillColor;
Color aDstTextColor;
LineInfo aDstLineInfo;
RasterOp eDstROP2;
FontAlign eDstTextAlign;
Font aDstFont;
- UINT32 eDstHorTextAlign;
+ UINT32 eDstHorTextAlign;
BOOL bDstIsClipping; // ???: derzeit unberuecksichtigt
Region aDstClipRegion; // ???: derzeit unberuecksichtigt
@@ -168,7 +168,7 @@ private:
sal_Bool WMFRecord_Escape_Unicode( const Point& rPoint, const String& rStr, const sal_Int32 * pDXAry );
void WMFRecord_ExtTextOut(const Point & rPoint, const String & rString, const sal_Int32 * pDXAry);
- void TrueExtTextOut(const Point & rPoint, const String & rString,
+ void TrueExtTextOut(const Point & rPoint, const String & rString,
const ByteString & rByteString, const sal_Int32 * pDXAry);
void TrueTextOut(const Point & rPoint, const ByteString& rString);
void WMFRecord_LineTo(const Point & rPoint);
@@ -212,7 +212,7 @@ private:
void UpdateHeader();
void WriteEmbeddedEMF( const GDIMetaFile& rMTF );
- void WriteEMFRecord( SvMemoryStream& rStream, sal_uInt32 nCurSize,
+ void WriteEMFRecord( SvMemoryStream& rStream, sal_uInt32 nCurSize,
sal_uInt32 nRemainingSize,
sal_uInt32 nTotalSize,
sal_uInt32 nRecCounts,
diff --git a/svtools/source/graphic/descriptor.cxx b/svtools/source/graphic/descriptor.cxx
index 3c477f045fc3..7665f7f1e1cf 100644
--- a/svtools/source/graphic/descriptor.cxx
+++ b/svtools/source/graphic/descriptor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,14 +45,14 @@
#include "vcl/graph.hxx"
#include "vcl/svapp.hxx"
-#define UNOGRAPHIC_GRAPHICTYPE 1
-#define UNOGRAPHIC_MIMETYPE 2
-#define UNOGRAPHIC_SIZEPIXEL 3
-#define UNOGRAPHIC_SIZE100THMM 4
-#define UNOGRAPHIC_BITSPERPIXEL 5
-#define UNOGRAPHIC_TRANSPARENT 6
-#define UNOGRAPHIC_ALPHA 7
-#define UNOGRAPHIC_ANIMATED 8
+#define UNOGRAPHIC_GRAPHICTYPE 1
+#define UNOGRAPHIC_MIMETYPE 2
+#define UNOGRAPHIC_SIZEPIXEL 3
+#define UNOGRAPHIC_SIZE100THMM 4
+#define UNOGRAPHIC_BITSPERPIXEL 5
+#define UNOGRAPHIC_TRANSPARENT 6
+#define UNOGRAPHIC_ALPHA 7
+#define UNOGRAPHIC_ANIMATED 8
using namespace ::com::sun::star;
@@ -61,7 +61,7 @@ namespace unographic {
// ---------------------
// - GraphicDescriptor -
// ---------------------
-
+
GraphicDescriptor::GraphicDescriptor() :
::comphelper::PropertySetHelper( createPropertySetInfo(), SAL_NO_ACQUIRE ),
mpGraphic( NULL ),
@@ -82,7 +82,7 @@ GraphicDescriptor::~GraphicDescriptor()
// ------------------------------------------------------------------------------
-void GraphicDescriptor::init( const ::Graphic& rGraphic )
+void GraphicDescriptor::init( const ::Graphic& rGraphic )
throw()
{
mpGraphic = &rGraphic;
@@ -90,11 +90,11 @@ void GraphicDescriptor::init( const ::Graphic& rGraphic )
// ------------------------------------------------------------------------------
-void GraphicDescriptor::init( const ::rtl::OUString& rURL )
+void GraphicDescriptor::init( const ::rtl::OUString& rURL )
throw()
{
SvStream* pIStm = ::utl::UcbStreamHelper::CreateStream( rURL, STREAM_READ );
-
+
if( pIStm )
{
implCreate( *pIStm, &rURL );
@@ -104,11 +104,11 @@ void GraphicDescriptor::init( const ::rtl::OUString& rURL )
// ------------------------------------------------------------------------------
-void GraphicDescriptor::init( const uno::Reference< io::XInputStream >& rxIStm, const ::rtl::OUString& rURL )
+void GraphicDescriptor::init( const uno::Reference< io::XInputStream >& rxIStm, const ::rtl::OUString& rURL )
throw()
{
SvStream* pIStm = ::utl::UcbStreamHelper::CreateStream( rxIStm );
-
+
if( pIStm )
{
implCreate( *pIStm, &rURL );
@@ -137,12 +137,12 @@ void GraphicDescriptor::implCreate( SvStream& rIStm, const ::rtl::OUString* pURL
meType = GRAPHIC_NONE;
mnBitsPerPixel = 0;
mbTransparent = false;
-
+
if( aDescriptor.Detect( true ) && aDescriptor.GetFileFormat() != GFF_NOT )
{
- const char* pMimeType = NULL;
- sal_uInt8 cType = graphic::GraphicType::EMPTY;
-
+ const char* pMimeType = NULL;
+ sal_uInt8 cType = graphic::GraphicType::EMPTY;
+
switch( aDescriptor.GetFileFormat() )
{
case( GFF_BMP ): pMimeType = MIMETYPE_BMP; cType = graphic::GraphicType::PIXEL; break;
@@ -160,7 +160,7 @@ void GraphicDescriptor::implCreate( SvStream& rIStm, const ::rtl::OUString* pURL
case( GFF_RAS ): pMimeType = MIMETYPE_RAS; cType = graphic::GraphicType::PIXEL; break;
case( GFF_TGA ): pMimeType = MIMETYPE_TGA; cType = graphic::GraphicType::PIXEL; break;
case( GFF_PSD ): pMimeType = MIMETYPE_PSD; cType = graphic::GraphicType::PIXEL; break;
-
+
case( GFF_EPS ): pMimeType = MIMETYPE_EPS; cType = graphic::GraphicType::VECTOR; break;
case( GFF_DXF ): pMimeType = MIMETYPE_DXF; cType = graphic::GraphicType::VECTOR; break;
case( GFF_MET ): pMimeType = MIMETYPE_MET; cType = graphic::GraphicType::VECTOR; break;
@@ -170,11 +170,11 @@ void GraphicDescriptor::implCreate( SvStream& rIStm, const ::rtl::OUString* pURL
case( GFF_WMF ): pMimeType = MIMETYPE_WMF; cType = graphic::GraphicType::VECTOR; break;
case( GFF_SGV ): pMimeType = MIMETYPE_SGV; cType = graphic::GraphicType::VECTOR; break;
case( GFF_EMF ): pMimeType = MIMETYPE_EMF; cType = graphic::GraphicType::VECTOR; break;
-
+
default:
break;
}
-
+
if( graphic::GraphicType::EMPTY != cType )
{
meType = ( ( graphic::GraphicType::PIXEL == cType ) ? GRAPHIC_BITMAP : GRAPHIC_GDIMETAFILE );
@@ -190,7 +190,7 @@ void GraphicDescriptor::implCreate( SvStream& rIStm, const ::rtl::OUString* pURL
// ------------------------------------------------------------------------------
-::rtl::OUString GraphicDescriptor::getImplementationName_Static()
+::rtl::OUString GraphicDescriptor::getImplementationName_Static()
throw()
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.graphic.GraphicDescriptor" ) );
@@ -198,19 +198,19 @@ void GraphicDescriptor::implCreate( SvStream& rIStm, const ::rtl::OUString* pURL
// ------------------------------------------------------------------------------
-uno::Sequence< ::rtl::OUString > GraphicDescriptor::getSupportedServiceNames_Static()
- throw( )
+uno::Sequence< ::rtl::OUString > GraphicDescriptor::getSupportedServiceNames_Static()
+ throw( )
{
uno::Sequence< ::rtl::OUString > aSeq( 1 );
-
+
aSeq.getArray()[ 0 ] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.graphic.GraphicDescriptor" ) );
-
+
return aSeq;
}
// ------------------------------------------------------------------------------
-uno::Any SAL_CALL GraphicDescriptor::queryAggregation( const uno::Type & rType )
+uno::Any SAL_CALL GraphicDescriptor::queryAggregation( const uno::Type & rType )
throw( uno::RuntimeException )
{
uno::Any aAny;
@@ -233,7 +233,7 @@ uno::Any SAL_CALL GraphicDescriptor::queryAggregation( const uno::Type & rType )
// ------------------------------------------------------------------------------
-uno::Any SAL_CALL GraphicDescriptor::queryInterface( const uno::Type & rType )
+uno::Any SAL_CALL GraphicDescriptor::queryInterface( const uno::Type & rType )
throw( uno::RuntimeException )
{
return OWeakAggObject::queryInterface( rType );
@@ -241,7 +241,7 @@ uno::Any SAL_CALL GraphicDescriptor::queryInterface( const uno::Type & rType )
// ------------------------------------------------------------------------------
-void SAL_CALL GraphicDescriptor::acquire()
+void SAL_CALL GraphicDescriptor::acquire()
throw()
{
OWeakAggObject::acquire();
@@ -257,7 +257,7 @@ void SAL_CALL GraphicDescriptor::release()
// ------------------------------------------------------------------------------
-::rtl::OUString SAL_CALL GraphicDescriptor::getImplementationName()
+::rtl::OUString SAL_CALL GraphicDescriptor::getImplementationName()
throw( uno::RuntimeException )
{
return getImplementationName_Static();
@@ -268,8 +268,8 @@ void SAL_CALL GraphicDescriptor::release()
sal_Bool SAL_CALL GraphicDescriptor::supportsService( const rtl::OUString& ServiceName )
throw( uno::RuntimeException )
{
- uno::Sequence< ::rtl::OUString > aSNL( getSupportedServiceNames() );
- const ::rtl::OUString* pArray = aSNL.getConstArray();
+ uno::Sequence< ::rtl::OUString > aSNL( getSupportedServiceNames() );
+ const ::rtl::OUString* pArray = aSNL.getConstArray();
for( sal_Int32 i = 0; i < aSNL.getLength(); i++ )
if( pArray[i] == ServiceName )
@@ -291,8 +291,8 @@ uno::Sequence< rtl::OUString > SAL_CALL GraphicDescriptor::getSupportedServiceNa
uno::Sequence< uno::Type > SAL_CALL GraphicDescriptor::getTypes()
throw( uno::RuntimeException )
{
- uno::Sequence< uno::Type > aTypes( 6 );
- uno::Type* pTypes = aTypes.getArray();
+ uno::Sequence< uno::Type > aTypes( 6 );
+ uno::Type* pTypes = aTypes.getArray();
*pTypes++ = ::getCppuType((const uno::Reference< uno::XAggregation>*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo>*)0);
@@ -303,21 +303,21 @@ uno::Sequence< uno::Type > SAL_CALL GraphicDescriptor::getTypes()
return aTypes;
}
-
+
// ------------------------------------------------------------------------------
uno::Sequence< sal_Int8 > SAL_CALL GraphicDescriptor::getImplementationId()
throw( uno::RuntimeException )
{
SolarMutexGuard aGuard;
- static uno::Sequence< sal_Int8 > aId;
-
+ static uno::Sequence< sal_Int8 > aId;
+
if( aId.getLength() == 0 )
{
aId.realloc( 16 );
rtl_createUuid( reinterpret_cast< sal_uInt8* >( aId.getArray() ), 0, sal_True );
}
-
+
return aId;
}
@@ -326,19 +326,19 @@ uno::Sequence< sal_Int8 > SAL_CALL GraphicDescriptor::getImplementationId()
::comphelper::PropertySetInfo* GraphicDescriptor::createPropertySetInfo()
{
SolarMutexGuard aGuard;
- ::comphelper::PropertySetInfo* pRet = new ::comphelper::PropertySetInfo();
+ ::comphelper::PropertySetInfo* pRet = new ::comphelper::PropertySetInfo();
static ::comphelper::PropertyMapEntry aEntries[] =
{
{ MAP_CHAR_LEN( "GraphicType" ), UNOGRAPHIC_GRAPHICTYPE, &::getCppuType( (const sal_Int8*)(0)), beans::PropertyAttribute::READONLY, 0 },
{ MAP_CHAR_LEN( "MimeType" ), UNOGRAPHIC_MIMETYPE, &::getCppuType( (const ::rtl::OUString*)(0)), beans::PropertyAttribute::READONLY, 0 },
{ MAP_CHAR_LEN( "SizePixel" ), UNOGRAPHIC_SIZEPIXEL, &::getCppuType( (const awt::Size*)(0)), beans::PropertyAttribute::READONLY, 0 },
- { MAP_CHAR_LEN( "Size100thMM" ), UNOGRAPHIC_SIZE100THMM, &::getCppuType( (const awt::Size*)(0)), beans::PropertyAttribute::READONLY, 0 },
+ { MAP_CHAR_LEN( "Size100thMM" ), UNOGRAPHIC_SIZE100THMM, &::getCppuType( (const awt::Size*)(0)), beans::PropertyAttribute::READONLY, 0 },
{ MAP_CHAR_LEN( "BitsPerPixel" ), UNOGRAPHIC_BITSPERPIXEL, &::getCppuType( (const sal_uInt8*)(0)), beans::PropertyAttribute::READONLY, 0 },
{ MAP_CHAR_LEN( "Transparent" ), UNOGRAPHIC_TRANSPARENT, &::getCppuType( (const sal_Bool*)(0)), beans::PropertyAttribute::READONLY, 0 },
{ MAP_CHAR_LEN( "Alpha" ), UNOGRAPHIC_ALPHA, &::getCppuType( (const sal_Bool*)(0)), beans::PropertyAttribute::READONLY, 0 },
{ MAP_CHAR_LEN( "Animated" ), UNOGRAPHIC_ANIMATED, &::getCppuType( (const sal_Bool*)(0)), beans::PropertyAttribute::READONLY, 0 },
-
+
{ 0,0,0,0,0,0 }
};
@@ -351,14 +351,14 @@ uno::Sequence< sal_Int8 > SAL_CALL GraphicDescriptor::getImplementationId()
// ------------------------------------------------------------------------------
void GraphicDescriptor::_setPropertyValues( const comphelper::PropertyMapEntry** /*ppEntries*/, const uno::Any* /*pValues*/ )
- throw( beans::UnknownPropertyException,
- beans::PropertyVetoException,
+ throw( beans::UnknownPropertyException,
+ beans::PropertyVetoException,
lang::IllegalArgumentException,
lang::WrappedTargetException )
{
// we only have readonly attributes
}
-
+
// ------------------------------------------------------------------------------
void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, uno::Any* pValues )
@@ -373,9 +373,9 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry**
case( UNOGRAPHIC_GRAPHICTYPE ):
{
const GraphicType eType( mpGraphic ? mpGraphic->GetType() : meType );
-
- *pValues <<= ( ( eType == GRAPHIC_BITMAP ? graphic::GraphicType::PIXEL :
- ( eType == GRAPHIC_GDIMETAFILE ? graphic::GraphicType::VECTOR :
+
+ *pValues <<= ( ( eType == GRAPHIC_BITMAP ? graphic::GraphicType::PIXEL :
+ ( eType == GRAPHIC_GDIMETAFILE ? graphic::GraphicType::VECTOR :
graphic::GraphicType::EMPTY ) ) );
}
break;
@@ -383,13 +383,13 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry**
case( UNOGRAPHIC_MIMETYPE ):
{
::rtl::OUString aMimeType;
-
+
if( mpGraphic )
{
if( mpGraphic->IsLink() )
{
const char* pMimeType;
-
+
switch( const_cast< Graphic* >( mpGraphic )->GetLink().GetType() )
{
case( GFX_LINK_TYPE_NATIVE_GIF ): pMimeType = MIMETYPE_GIF; break;
@@ -398,30 +398,30 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry**
case( GFX_LINK_TYPE_NATIVE_WMF ): pMimeType = MIMETYPE_WMF; break;
case( GFX_LINK_TYPE_NATIVE_MET ): pMimeType = MIMETYPE_MET; break;
case( GFX_LINK_TYPE_NATIVE_PCT ): pMimeType = MIMETYPE_PCT ; break;
-
+
default:
pMimeType = NULL;
break;
}
-
+
if( pMimeType )
aMimeType = ::rtl::OUString::createFromAscii( pMimeType );
}
-
+
if( !aMimeType.getLength() && ( mpGraphic->GetType() != GRAPHIC_NONE ) )
aMimeType = ::rtl::OUString::createFromAscii( MIMETYPE_VCLGRAPHIC );
}
else
aMimeType = maMimeType;
-
+
*pValues <<= aMimeType;
}
break;
-
+
case( UNOGRAPHIC_SIZEPIXEL ):
{
awt::Size aAWTSize( 0, 0 );
-
+
if( mpGraphic )
{
if( mpGraphic->GetType() == GRAPHIC_BITMAP )
@@ -436,11 +436,11 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry**
*pValues <<= aAWTSize;
}
break;
-
+
case( UNOGRAPHIC_SIZE100THMM ):
{
awt::Size aAWTSize( 0, 0 );
-
+
if( mpGraphic )
{
if( mpGraphic->GetPrefMapMode().GetMapUnit() != MAP_PIXEL )
@@ -451,15 +451,15 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry**
}
else
aAWTSize = awt::Size( maSize100thMM.Width(), maSize100thMM.Height() );
-
+
*pValues <<= aAWTSize;
}
break;
-
+
case( UNOGRAPHIC_BITSPERPIXEL ):
{
USHORT nBitsPerPixel = 0;
-
+
if( mpGraphic )
{
if( mpGraphic->GetType() == GRAPHIC_BITMAP )
@@ -467,11 +467,11 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry**
}
else
nBitsPerPixel = mnBitsPerPixel;
-
+
*pValues <<= sal::static_int_cast< sal_Int8 >(nBitsPerPixel);
}
break;
-
+
case( UNOGRAPHIC_TRANSPARENT ):
{
*pValues <<= static_cast< sal_Bool >( mpGraphic ? mpGraphic->IsTransparent() : mbTransparent );
@@ -483,14 +483,14 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry**
*pValues <<= static_cast< sal_Bool >( mpGraphic ? mpGraphic->IsAlpha() : mbAlpha );
}
break;
-
+
case( UNOGRAPHIC_ANIMATED ):
{
*pValues <<= static_cast< sal_Bool >( mpGraphic ? mpGraphic->IsAnimated() : mbAnimated );
}
break;
}
-
+
++ppEntries;
++pValues;
}
diff --git a/svtools/source/graphic/descriptor.hxx b/svtools/source/graphic/descriptor.hxx
index 38d0241dcd0d..c81a1c84b341 100644
--- a/svtools/source/graphic/descriptor.hxx
+++ b/svtools/source/graphic/descriptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,8 +26,8 @@
*
************************************************************************/
-#ifndef _GOODIES_DESCRIPTOR_HXX
-#define _GOODIES_DESCRIPTOR_HXX
+#ifndef _GOODIES_DESCRIPTOR_HXX
+#define _GOODIES_DESCRIPTOR_HXX
#include <comphelper/propertysethelper.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -35,37 +35,37 @@
#include <comphelper/propertysetinfo.hxx>
#include <vcl/graph.hxx>
-#define MIMETYPE_BMP "image/x-MS-bmp"
-#define MIMETYPE_GIF "image/gif"
-#define MIMETYPE_JPG "image/jpeg"
-#define MIMETYPE_PCD "image/x-photo-cd"
-#define MIMETYPE_PCX "image/x-pcx"
-#define MIMETYPE_PNG "image/png"
-#define MIMETYPE_TIF "image/tiff"
-#define MIMETYPE_XBM "image/x-xbitmap"
-#define MIMETYPE_XPM "image/x-xpixmap"
-#define MIMETYPE_PBM "image/x-portable-bitmap"
-#define MIMETYPE_PGM "image/x-portable-graymap"
-#define MIMETYPE_PPM "image/x-portable-pixmap"
-#define MIMETYPE_RAS "image/x-cmu-raster"
-#define MIMETYPE_TGA "image/x-targa"
-#define MIMETYPE_PSD "image/vnd.adobe.photoshop"
-#define MIMETYPE_EPS "image/x-eps"
-#define MIMETYPE_DXF "image/vnd.dxf"
-#define MIMETYPE_MET "image/x-met"
-#define MIMETYPE_PCT "image/x-pict"
-#define MIMETYPE_SGF "image/x-sgf"
-#define MIMETYPE_SVM "image/x-svm"
-#define MIMETYPE_WMF "image/x-wmf"
-#define MIMETYPE_SGV "image/x-sgv"
-#define MIMETYPE_EMF "image/x-emf"
-#define MIMETYPE_SVG "image/svg+xml"
-#define MIMETYPE_VCLGRAPHIC "image/x-vclgraphic"
+#define MIMETYPE_BMP "image/x-MS-bmp"
+#define MIMETYPE_GIF "image/gif"
+#define MIMETYPE_JPG "image/jpeg"
+#define MIMETYPE_PCD "image/x-photo-cd"
+#define MIMETYPE_PCX "image/x-pcx"
+#define MIMETYPE_PNG "image/png"
+#define MIMETYPE_TIF "image/tiff"
+#define MIMETYPE_XBM "image/x-xbitmap"
+#define MIMETYPE_XPM "image/x-xpixmap"
+#define MIMETYPE_PBM "image/x-portable-bitmap"
+#define MIMETYPE_PGM "image/x-portable-graymap"
+#define MIMETYPE_PPM "image/x-portable-pixmap"
+#define MIMETYPE_RAS "image/x-cmu-raster"
+#define MIMETYPE_TGA "image/x-targa"
+#define MIMETYPE_PSD "image/vnd.adobe.photoshop"
+#define MIMETYPE_EPS "image/x-eps"
+#define MIMETYPE_DXF "image/vnd.dxf"
+#define MIMETYPE_MET "image/x-met"
+#define MIMETYPE_PCT "image/x-pict"
+#define MIMETYPE_SGF "image/x-sgf"
+#define MIMETYPE_SVM "image/x-svm"
+#define MIMETYPE_WMF "image/x-wmf"
+#define MIMETYPE_SGV "image/x-sgv"
+#define MIMETYPE_EMF "image/x-emf"
+#define MIMETYPE_SVG "image/svg+xml"
+#define MIMETYPE_VCLGRAPHIC "image/x-vclgraphic"
using namespace com::sun::star;
namespace comphelper { class PropertySetInfo; }
-namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
+namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
class Graphic;
@@ -81,19 +81,19 @@ class GraphicDescriptor : public ::cppu::OWeakAggObject,
public ::comphelper::PropertySetHelper
{
public:
-
+
GraphicDescriptor();
~GraphicDescriptor() throw();
-
+
void init( const ::Graphic& rGraphic ) throw();
void init( const ::rtl::OUString& rURL ) throw();
void init( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& rxIStm, const ::rtl::OUString& rURL ) throw();
-
+
bool isValid() const;
static ::rtl::OUString getImplementationName_Static() throw();
static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static() throw();
-
+
protected:
static ::comphelper::PropertySetInfo* createPropertySetInfo();
@@ -103,7 +103,7 @@ protected:
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL acquire() throw();
virtual void SAL_CALL release() throw();
-
+
// XServiceInfo
virtual rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
@@ -119,25 +119,25 @@ protected:
private:
- const ::Graphic* mpGraphic;
- GraphicType meType;
- ::rtl::OUString maMimeType;
- Size maSizePixel;
- Size maSize100thMM;
- USHORT mnBitsPerPixel;
- bool mbTransparent;
- bool mbAlpha;
- bool mbAnimated;
-
+ const ::Graphic* mpGraphic;
+ GraphicType meType;
+ ::rtl::OUString maMimeType;
+ Size maSizePixel;
+ Size maSize100thMM;
+ USHORT mnBitsPerPixel;
+ bool mbTransparent;
+ bool mbAlpha;
+ bool mbAnimated;
+
GraphicDescriptor( const GraphicDescriptor& rDescriptor );
-
- GraphicDescriptor& operator=( const GraphicDescriptor& );
+
+ GraphicDescriptor& operator=( const GraphicDescriptor& );
void implCreate( SvStream& rIStm, const ::rtl::OUString* pPath );
};
}
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/graphic/graphic.cxx b/svtools/source/graphic/graphic.cxx
index 19c8d904b3d9..0c73949d0263 100644
--- a/svtools/source/graphic/graphic.cxx
+++ b/svtools/source/graphic/graphic.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ Graphic::~Graphic()
void Graphic::init( const ::Graphic& rGraphic )
throw()
-{
+{
delete mpGraphic;
mpGraphic = new ::Graphic( rGraphic );
::unographic::GraphicDescriptor::init( *mpGraphic );
@@ -82,7 +82,7 @@ uno::Any SAL_CALL Graphic::queryAggregation( const uno::Type& rType )
aAny <<= uno::Reference< lang::XUnoTunnel >(this);
else
aAny <<= ::unographic::GraphicDescriptor::queryAggregation( rType );
-
+
return aAny ;
}
@@ -99,7 +99,7 @@ uno::Any SAL_CALL Graphic::queryInterface( const uno::Type & rType )
// ------------------------------------------------------------------------------
-void SAL_CALL Graphic::acquire()
+void SAL_CALL Graphic::acquire()
throw()
{
::unographic::GraphicDescriptor::acquire();
@@ -113,24 +113,24 @@ void SAL_CALL Graphic::release() throw()
}
// ------------------------------------------------------------------------------
-
-uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId_Static()
+
+uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId_Static()
throw(uno::RuntimeException)
{
SolarMutexGuard aGuard;
- static uno::Sequence< sal_Int8 > aId;
-
+ static uno::Sequence< sal_Int8 > aId;
+
if( aId.getLength() == 0 )
{
aId.realloc( 16 );
rtl_createUuid( reinterpret_cast< sal_uInt8* >( aId.getArray() ), 0, sal_True );
}
-
+
return aId;
}
// ------------------------------------------------------------------------------
-
+
::rtl::OUString Graphic::getImplementationName_Static()
throw()
{
@@ -143,14 +143,14 @@ uno::Sequence< ::rtl::OUString > Graphic::getSupportedServiceNames_Static()
throw()
{
uno::Sequence< ::rtl::OUString > aSeq( 1 );
-
+
aSeq.getArray()[ 0 ] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.graphic.Graphic" ) );
-
+
return aSeq;
}
// ------------------------------------------------------------------------------
-
+
::rtl::OUString SAL_CALL Graphic::getImplementationName()
throw( uno::RuntimeException )
{
@@ -159,35 +159,35 @@ uno::Sequence< ::rtl::OUString > Graphic::getSupportedServiceNames_Static()
// ------------------------------------------------------------------------------
-sal_Bool SAL_CALL Graphic::supportsService( const ::rtl::OUString& rServiceName )
+sal_Bool SAL_CALL Graphic::supportsService( const ::rtl::OUString& rServiceName )
throw( uno::RuntimeException )
{
if( ::unographic::GraphicDescriptor::supportsService( rServiceName ) )
return true;
else
{
- uno::Sequence< ::rtl::OUString > aSNL( getSupportedServiceNames() );
- const ::rtl::OUString* pArray = aSNL.getConstArray();
-
+ uno::Sequence< ::rtl::OUString > aSNL( getSupportedServiceNames() );
+ const ::rtl::OUString* pArray = aSNL.getConstArray();
+
for( int i = 0; i < aSNL.getLength(); i++ )
if( pArray[i] == rServiceName )
return true;
-
+
return false;
}
}
// ------------------------------------------------------------------------------
-uno::Sequence< ::rtl::OUString > SAL_CALL Graphic::getSupportedServiceNames()
+uno::Sequence< ::rtl::OUString > SAL_CALL Graphic::getSupportedServiceNames()
throw( uno::RuntimeException )
{
- uno::Sequence< ::rtl::OUString > aRet( ::unographic::GraphicDescriptor::getSupportedServiceNames() );
- uno::Sequence< ::rtl::OUString > aNew( getSupportedServiceNames_Static() );
- sal_Int32 nOldCount = aRet.getLength();
-
+ uno::Sequence< ::rtl::OUString > aRet( ::unographic::GraphicDescriptor::getSupportedServiceNames() );
+ uno::Sequence< ::rtl::OUString > aNew( getSupportedServiceNames_Static() );
+ sal_Int32 nOldCount = aRet.getLength();
+
aRet.realloc( nOldCount + aNew.getLength() );
-
+
for( sal_Int32 i = 0; i < aNew.getLength(); ++i )
aRet[ nOldCount++ ] = aNew[ i ];
@@ -196,22 +196,22 @@ uno::Sequence< ::rtl::OUString > SAL_CALL Graphic::getSupportedServiceNames()
// ------------------------------------------------------------------------------
-uno::Sequence< uno::Type > SAL_CALL Graphic::getTypes()
+uno::Sequence< uno::Type > SAL_CALL Graphic::getTypes()
throw(uno::RuntimeException)
{
- uno::Sequence< uno::Type > aRet( ::unographic::GraphicDescriptor::getTypes() );
- sal_Int32 nOldCount = aRet.getLength();
+ uno::Sequence< uno::Type > aRet( ::unographic::GraphicDescriptor::getTypes() );
+ sal_Int32 nOldCount = aRet.getLength();
aRet.realloc( nOldCount + 2 );
aRet[ nOldCount ] = ::getCppuType((const uno::Reference< graphic::XGraphic>*)0);
aRet[ nOldCount+1 ] = ::getCppuType((const uno::Reference< awt::XBitmap>*)0);
-
+
return aRet;
}
// ------------------------------------------------------------------------------
-uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId()
+uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId()
throw(uno::RuntimeException)
{
return getImplementationId_Static();
@@ -226,7 +226,7 @@ uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId()
if( mpGraphic && ( mpGraphic->GetType() != GRAPHIC_NONE ) )
cRet = ( ( mpGraphic->GetType() == GRAPHIC_BITMAP ) ? graphic::GraphicType::PIXEL : graphic::GraphicType::VECTOR );
-
+
return cRet;
}
@@ -294,7 +294,7 @@ sal_Int64 SAL_CALL Graphic::getSomething( const uno::Sequence< sal_Int8 >& rId )
throw( uno::RuntimeException )
{
return( ( rId.getLength() == 16 && 0 == rtl_compareMemory( getImplementationId().getConstArray(), rId.getConstArray(), 16 ) ) ?
- reinterpret_cast< sal_Int64 >( mpGraphic ) :
+ reinterpret_cast< sal_Int64 >( mpGraphic ) :
0 );
}
diff --git a/svtools/source/graphic/graphic.hxx b/svtools/source/graphic/graphic.hxx
index a82c9cca7ced..e4b968d1f343 100644
--- a/svtools/source/graphic/graphic.hxx
+++ b/svtools/source/graphic/graphic.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,8 +26,8 @@
*
************************************************************************/
-#ifndef _GOODIES_GRAPHIC_HXX
-#define _GOODIES_GRAPHIC_HXX
+#ifndef _GOODIES_GRAPHIC_HXX
+#define _GOODIES_GRAPHIC_HXX
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/graphic/XGraphic.hpp>
@@ -49,23 +49,23 @@ namespace unographic {
class Graphic : public ::com::sun::star::graphic::XGraphic,
public ::com::sun::star::awt::XBitmap,
- public ::com::sun::star::lang::XUnoTunnel,
+ public ::com::sun::star::lang::XUnoTunnel,
public ::unographic::GraphicDescriptor,
public ::unographic::GraphicTransformer
{
public:
-
+
Graphic();
~Graphic() throw();
using unographic::GraphicDescriptor::init;
void init( const ::Graphic& rGraphic ) throw();
-
+
static const ::Graphic* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
static ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId_Static( ) throw(::com::sun::star::uno::RuntimeException);
static ::rtl::OUString getImplementationName_Static() throw();
static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static() throw();
-
+
protected:
// XInterface
@@ -73,7 +73,7 @@ protected:
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL acquire() throw();
virtual void SAL_CALL release() throw();
-
+
// XServiceInfo
virtual rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
@@ -82,7 +82,7 @@ protected:
// XTypeProvider
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
-
+
// XGraphic
virtual ::sal_Int8 SAL_CALL getType( ) throw (::com::sun::star::uno::RuntimeException);
@@ -101,6 +101,6 @@ private:
}
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/graphic/graphicunofactory.cxx b/svtools/source/graphic/graphicunofactory.cxx
index c1e2f13068de..a0b27992ac86 100644
--- a/svtools/source/graphic/graphicunofactory.cxx
+++ b/svtools/source/graphic/graphicunofactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,11 +63,11 @@ GObjectImpl::GObjectImpl( uno::Sequence< uno::Any > const & args, uno::Reference
rtl::OUString sId;
if ( !( args[ 0 ] >>= sId ) || sId.getLength() == 0 )
throw lang::IllegalArgumentException();
- ByteString bsId( sId.getStr(), RTL_TEXTENCODING_UTF8 );
- mpGObject.reset( new GraphicObject( bsId ) );
+ ByteString bsId( sId.getStr(), RTL_TEXTENCODING_UTF8 );
+ mpGObject.reset( new GraphicObject( bsId ) );
}
else
- mpGObject.reset( new GraphicObject() );
+ mpGObject.reset( new GraphicObject() );
}
uno::Reference< graphic::XGraphic > SAL_CALL GObjectImpl::getGraphic() throw (uno::RuntimeException)
diff --git a/svtools/source/graphic/grfattr.cxx b/svtools/source/graphic/grfattr.cxx
index 3515ed276529..0ee3685425e3 100644
--- a/svtools/source/graphic/grfattr.cxx
+++ b/svtools/source/graphic/grfattr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,21 +37,21 @@
// ---------------
GraphicAttr::GraphicAttr() :
- mfGamma ( 1.0 ),
- mnMirrFlags ( 0 ),
- mnLeftCrop ( 0 ),
- mnTopCrop ( 0 ),
- mnRightCrop ( 0 ),
- mnBottomCrop ( 0 ),
- mnRotate10 ( 0 ),
- mnContPercent ( 0 ),
- mnLumPercent ( 0 ),
- mnRPercent ( 0 ),
- mnGPercent ( 0 ),
- mnBPercent ( 0 ),
- mbInvert ( FALSE ),
- mcTransparency ( 0 ),
- meDrawMode ( GRAPHICDRAWMODE_STANDARD )
+ mfGamma ( 1.0 ),
+ mnMirrFlags ( 0 ),
+ mnLeftCrop ( 0 ),
+ mnTopCrop ( 0 ),
+ mnRightCrop ( 0 ),
+ mnBottomCrop ( 0 ),
+ mnRotate10 ( 0 ),
+ mnContPercent ( 0 ),
+ mnLumPercent ( 0 ),
+ mnRPercent ( 0 ),
+ mnGPercent ( 0 ),
+ mnBPercent ( 0 ),
+ mbInvert ( FALSE ),
+ mcTransparency ( 0 ),
+ meDrawMode ( GRAPHICDRAWMODE_STANDARD )
{
}
@@ -86,13 +86,13 @@ BOOL GraphicAttr::operator==( const GraphicAttr& rAttr ) const
SvStream& operator>>( SvStream& rIStm, GraphicAttr& rAttr )
{
- VersionCompat aCompat( rIStm, STREAM_READ );
- sal_uInt32 nTmp32;
- UINT16 nTmp16;
+ VersionCompat aCompat( rIStm, STREAM_READ );
+ sal_uInt32 nTmp32;
+ UINT16 nTmp16;
rIStm >> nTmp32 >> nTmp32 >> rAttr.mfGamma >> rAttr.mnMirrFlags >> rAttr.mnRotate10;
rIStm >> rAttr.mnContPercent >> rAttr.mnLumPercent >> rAttr.mnRPercent >> rAttr.mnGPercent >> rAttr.mnBPercent;
- rIStm >> rAttr.mbInvert >> rAttr.mcTransparency >> nTmp16;
+ rIStm >> rAttr.mbInvert >> rAttr.mcTransparency >> nTmp16;
rAttr.meDrawMode = (GraphicDrawMode) nTmp16;
if( aCompat.GetVersion() >= 2 )
@@ -107,8 +107,8 @@ SvStream& operator>>( SvStream& rIStm, GraphicAttr& rAttr )
SvStream& operator<<( SvStream& rOStm, const GraphicAttr& rAttr )
{
- VersionCompat aCompat( rOStm, STREAM_WRITE, 2 );
- const sal_uInt32 nTmp32 = 0;
+ VersionCompat aCompat( rOStm, STREAM_WRITE, 2 );
+ const sal_uInt32 nTmp32 = 0;
rOStm << nTmp32 << nTmp32 << rAttr.mfGamma << rAttr.mnMirrFlags << rAttr.mnRotate10;
rOStm << rAttr.mnContPercent << rAttr.mnLumPercent << rAttr.mnRPercent << rAttr.mnGPercent << rAttr.mnBPercent;
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx
index 6f3c02907144..fb52096118ac 100644
--- a/svtools/source/graphic/grfcache.cxx
+++ b/svtools/source/graphic/grfcache.cxx
@@ -42,7 +42,7 @@
// -----------
#define RELEASE_TIMEOUT 10000
-#define MAX_BMP_EXTENT 4096
+#define MAX_BMP_EXTENT 4096
// -----------
// - statics -
@@ -58,10 +58,10 @@ class GraphicID
{
private:
- sal_uInt32 mnID1;
- sal_uInt32 mnID2;
- sal_uInt32 mnID3;
- sal_uInt32 mnID4;
+ sal_uInt32 mnID1;
+ sal_uInt32 mnID2;
+ sal_uInt32 mnID3;
+ sal_uInt32 mnID4;
GraphicID();
@@ -71,13 +71,13 @@ public:
GraphicID( const GraphicObject& rObj );
~GraphicID() {}
- BOOL operator==( const GraphicID& rID ) const
+ BOOL operator==( const GraphicID& rID ) const
{
return( rID.mnID1 == mnID1 && rID.mnID2 == mnID2 &&
rID.mnID3 == mnID3 && rID.mnID4 == mnID4 );
}
- ByteString GetIDString() const;
+ ByteString GetIDString() const;
BOOL IsEmpty() const { return( 0 == mnID4 ); }
};
@@ -135,9 +135,9 @@ GraphicID::GraphicID( const GraphicObject& rObj )
ByteString GraphicID::GetIDString() const
{
- ByteString aHexStr;
- sal_Char* pStr = aHexStr.AllocBuffer( 32 );
- sal_Int32 nShift;
+ ByteString aHexStr;
+ sal_Char* pStr = aHexStr.AllocBuffer( 32 );
+ sal_Int32 nShift;
for( nShift = 28; nShift >= 0; nShift -= 4 )
*pStr++ = aHexData[ ( mnID1 >> (sal_uInt32) nShift ) & 0xf ];
@@ -162,43 +162,43 @@ class GraphicCacheEntry
{
private:
- List maGraphicObjectList;
- GraphicID maID;
- GfxLink maGfxLink;
- BitmapEx* mpBmpEx;
- GDIMetaFile* mpMtf;
- Animation* mpAnimation;
- BOOL mbSwappedAll;
+ List maGraphicObjectList;
+ GraphicID maID;
+ GfxLink maGfxLink;
+ BitmapEx* mpBmpEx;
+ GDIMetaFile* mpMtf;
+ Animation* mpAnimation;
+ BOOL mbSwappedAll;
- BOOL ImplInit( const GraphicObject& rObj );
- BOOL ImplMatches( const GraphicObject& rObj ) const { return( GraphicID( rObj ) == maID ); }
- void ImplFillSubstitute( Graphic& rSubstitute );
+ BOOL ImplInit( const GraphicObject& rObj );
+ BOOL ImplMatches( const GraphicObject& rObj ) const { return( GraphicID( rObj ) == maID ); }
+ void ImplFillSubstitute( Graphic& rSubstitute );
public:
GraphicCacheEntry( const GraphicObject& rObj );
~GraphicCacheEntry();
- const GraphicID& GetID() const { return maID; }
+ const GraphicID& GetID() const { return maID; }
- void AddGraphicObjectReference( const GraphicObject& rObj, Graphic& rSubstitute );
- BOOL ReleaseGraphicObjectReference( const GraphicObject& rObj );
- ULONG GetGraphicObjectReferenceCount() { return maGraphicObjectList.Count(); }
- BOOL HasGraphicObjectReference( const GraphicObject& rObj );
+ void AddGraphicObjectReference( const GraphicObject& rObj, Graphic& rSubstitute );
+ BOOL ReleaseGraphicObjectReference( const GraphicObject& rObj );
+ ULONG GetGraphicObjectReferenceCount() { return maGraphicObjectList.Count(); }
+ BOOL HasGraphicObjectReference( const GraphicObject& rObj );
- void TryToSwapIn();
- void GraphicObjectWasSwappedOut( const GraphicObject& rObj );
- BOOL FillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
- void GraphicObjectWasSwappedIn( const GraphicObject& rObj );
+ void TryToSwapIn();
+ void GraphicObjectWasSwappedOut( const GraphicObject& rObj );
+ BOOL FillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
+ void GraphicObjectWasSwappedIn( const GraphicObject& rObj );
};
// -----------------------------------------------------------------------------
GraphicCacheEntry::GraphicCacheEntry( const GraphicObject& rObj ) :
- maID ( rObj ),
- mpBmpEx ( NULL ),
- mpMtf ( NULL ),
- mpAnimation ( NULL ),
+ maID ( rObj ),
+ mpBmpEx ( NULL ),
+ mpMtf ( NULL ),
+ mpAnimation ( NULL ),
mbSwappedAll ( !ImplInit( rObj ) )
{
maGraphicObjectList.Insert( (void*) &rObj, LIST_APPEND );
@@ -274,13 +274,13 @@ BOOL GraphicCacheEntry::ImplInit( const GraphicObject& rObj )
void GraphicCacheEntry::ImplFillSubstitute( Graphic& rSubstitute )
{
// create substitute for graphic;
- const Size aPrefSize( rSubstitute.GetPrefSize() );
- const MapMode aPrefMapMode( rSubstitute.GetPrefMapMode() );
- const Link aAnimationNotifyHdl( rSubstitute.GetAnimationNotifyHdl() );
- const String aDocFileName( rSubstitute.GetDocFileName() );
- const ULONG nDocFilePos = rSubstitute.GetDocFilePos();
- const GraphicType eOldType = rSubstitute.GetType();
- const BOOL bDefaultType = ( rSubstitute.GetType() == GRAPHIC_DEFAULT );
+ const Size aPrefSize( rSubstitute.GetPrefSize() );
+ const MapMode aPrefMapMode( rSubstitute.GetPrefMapMode() );
+ const Link aAnimationNotifyHdl( rSubstitute.GetAnimationNotifyHdl() );
+ const String aDocFileName( rSubstitute.GetDocFileName() );
+ const ULONG nDocFilePos = rSubstitute.GetDocFilePos();
+ const GraphicType eOldType = rSubstitute.GetType();
+ const BOOL bDefaultType = ( rSubstitute.GetType() == GRAPHIC_DEFAULT );
if( rSubstitute.IsLink() && ( GFX_LINK_TYPE_NONE == maGfxLink.GetType() ) )
maGfxLink = rSubstitute.GetLink();
@@ -411,18 +411,18 @@ class GraphicDisplayCacheEntry
private:
::salhelper::TTimeValue maReleaseTime;
- const GraphicCacheEntry* mpRefCacheEntry;
- GDIMetaFile* mpMtf;
- BitmapEx* mpBmpEx;
- GraphicAttr maAttr;
- Size maOutSizePix;
- ULONG mnCacheSize;
- ULONG mnOutDevDrawMode;
- USHORT mnOutDevBitCount;
+ const GraphicCacheEntry* mpRefCacheEntry;
+ GDIMetaFile* mpMtf;
+ BitmapEx* mpBmpEx;
+ GraphicAttr maAttr;
+ Size maOutSizePix;
+ ULONG mnCacheSize;
+ ULONG mnOutDevDrawMode;
+ USHORT mnOutDevBitCount;
public:
- static ULONG GetNeededSize( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ static ULONG GetNeededSize( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr );
public:
@@ -456,17 +456,17 @@ public:
~GraphicDisplayCacheEntry();
- const GraphicAttr& GetAttr() const { return maAttr; }
- const Size& GetOutputSizePixel() const { return maOutSizePix; }
- ULONG GetCacheSize() const { return mnCacheSize; }
- const GraphicCacheEntry* GetReferencedCacheEntry() const { return mpRefCacheEntry; }
- ULONG GetOutDevDrawMode() const { return mnOutDevDrawMode; }
- USHORT GetOutDevBitCount() const { return mnOutDevBitCount; }
+ const GraphicAttr& GetAttr() const { return maAttr; }
+ const Size& GetOutputSizePixel() const { return maOutSizePix; }
+ ULONG GetCacheSize() const { return mnCacheSize; }
+ const GraphicCacheEntry* GetReferencedCacheEntry() const { return mpRefCacheEntry; }
+ ULONG GetOutDevDrawMode() const { return mnOutDevDrawMode; }
+ USHORT GetOutDevBitCount() const { return mnOutDevBitCount; }
void SetReleaseTime( const ::salhelper::TTimeValue& rReleaseTime ) { maReleaseTime = rReleaseTime; }
const ::salhelper::TTimeValue& GetReleaseTime() const { return maReleaseTime; }
- BOOL Matches( OutputDevice* pOut, const Point& /*rPtPixel*/, const Size& rSzPixel,
+ BOOL Matches( OutputDevice* pOut, const Point& /*rPtPixel*/, const Size& rSzPixel,
const GraphicCacheEntry* pCacheEntry, const GraphicAttr& rAttr ) const
{
// #i46805# Additional match
@@ -482,7 +482,7 @@ public:
( pOut->GetDrawMode() == mnOutDevDrawMode ) );
}
- void Draw( OutputDevice* pOut, const Point& rPt, const Size& rSz ) const;
+ void Draw( OutputDevice* pOut, const Point& rPt, const Size& rSz ) const;
};
// -----------------------------------------------------------------------------
@@ -491,8 +491,8 @@ ULONG GraphicDisplayCacheEntry::GetNeededSize( OutputDevice* pOut, const Point&
const GraphicObject& rObj, const GraphicAttr& rAttr )
{
const Graphic& rGraphic = rObj.GetGraphic();
- const GraphicType eType = rGraphic.GetType();
- ULONG nNeededSize;
+ const GraphicType eType = rGraphic.GetType();
+ ULONG nNeededSize;
if( GRAPHIC_BITMAP == eType )
{
@@ -562,11 +562,11 @@ void GraphicDisplayCacheEntry::Draw( OutputDevice* pOut, const Point& rPt, const
// -----------------------
GraphicCache::GraphicCache( GraphicManager& rMgr, ULONG nDisplayCacheSize, ULONG nMaxObjDisplayCacheSize ) :
- mrMgr ( rMgr ),
+ mrMgr ( rMgr ),
mnReleaseTimeoutSeconds ( 0UL ),
- mnMaxDisplaySize ( nDisplayCacheSize ),
- mnMaxObjDisplaySize ( nMaxObjDisplayCacheSize ),
- mnUsedDisplaySize ( 0UL )
+ mnMaxDisplaySize ( nDisplayCacheSize ),
+ mnMaxObjDisplaySize ( nMaxObjDisplayCacheSize ),
+ mnUsedDisplaySize ( 0UL )
{
maReleaseTimer.SetTimeoutHdl( LINK( this, GraphicCache, ReleaseTimeoutHdl ) );
maReleaseTimer.SetTimeout( RELEASE_TIMEOUT );
@@ -676,8 +676,8 @@ void GraphicCache::AddGraphicObject( const GraphicObject& rObj, Graphic& rSubsti
void GraphicCache::ReleaseGraphicObject( const GraphicObject& rObj )
{
// Release cached object
- GraphicCacheEntry* pEntry = (GraphicCacheEntry*) maGraphicCache.First();
- BOOL bRemoved = FALSE;
+ GraphicCacheEntry* pEntry = (GraphicCacheEntry*) maGraphicCache.First();
+ BOOL bRemoved = FALSE;
while( !bRemoved && pEntry )
{
@@ -843,11 +843,11 @@ BOOL GraphicCache::IsDisplayCacheable( OutputDevice* pOut, const Point& rPt, con
BOOL GraphicCache::IsInDisplayCache( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr ) const
{
- const Point aPtPixel( pOut->LogicToPixel( rPt ) );
- const Size aSzPixel( pOut->LogicToPixel( rSz ) );
- const GraphicCacheEntry* pCacheEntry = ( (GraphicCache*) this )->ImplGetCacheEntry( rObj );
- //GraphicDisplayCacheEntry* pDisplayEntry = (GraphicDisplayCacheEntry*) ( (GraphicCache*) this )->maDisplayCache.First(); // -Wall removed ....
- BOOL bFound = FALSE;
+ const Point aPtPixel( pOut->LogicToPixel( rPt ) );
+ const Size aSzPixel( pOut->LogicToPixel( rSz ) );
+ const GraphicCacheEntry* pCacheEntry = ( (GraphicCache*) this )->ImplGetCacheEntry( rObj );
+ //GraphicDisplayCacheEntry* pDisplayEntry = (GraphicDisplayCacheEntry*) ( (GraphicCache*) this )->maDisplayCache.First(); // -Wall removed ....
+ BOOL bFound = FALSE;
if( pCacheEntry )
{
@@ -863,8 +863,8 @@ BOOL GraphicCache::IsInDisplayCache( OutputDevice* pOut, const Point& rPt, const
ByteString GraphicCache::GetUniqueID( const GraphicObject& rObj ) const
{
- ByteString aRet;
- GraphicCacheEntry* pEntry = ( (GraphicCache*) this )->ImplGetCacheEntry( rObj );
+ ByteString aRet;
+ GraphicCacheEntry* pEntry = ( (GraphicCache*) this )->ImplGetCacheEntry( rObj );
// ensure that the entry is correctly initialized (it has to be read at least once)
if( pEntry && pEntry->GetID().IsEmpty() )
@@ -886,7 +886,7 @@ BOOL GraphicCache::CreateDisplayCacheObj( OutputDevice* pOut, const Point& rPt,
const BitmapEx& rBmpEx )
{
const ULONG nNeededSize = GraphicDisplayCacheEntry::GetNeededSize( pOut, rPt, rSz, rObj, rAttr );
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
if( nNeededSize <= GetMaxObjDisplayCacheSize() )
{
@@ -920,7 +920,7 @@ BOOL GraphicCache::CreateDisplayCacheObj( OutputDevice* pOut, const Point& rPt,
const GDIMetaFile& rMtf )
{
const ULONG nNeededSize = GraphicDisplayCacheEntry::GetNeededSize( pOut, rPt, rSz, rObj, rAttr );
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
if( nNeededSize <= GetMaxObjDisplayCacheSize() )
{
@@ -952,11 +952,11 @@ BOOL GraphicCache::CreateDisplayCacheObj( OutputDevice* pOut, const Point& rPt,
BOOL GraphicCache::DrawDisplayCacheObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr )
{
- const Point aPtPixel( pOut->LogicToPixel( rPt ) );
- const Size aSzPixel( pOut->LogicToPixel( rSz ) );
- const GraphicCacheEntry* pCacheEntry = ImplGetCacheEntry( rObj );
- GraphicDisplayCacheEntry* pDisplayCacheEntry = (GraphicDisplayCacheEntry*) maDisplayCache.First();
- BOOL bRet = FALSE;
+ const Point aPtPixel( pOut->LogicToPixel( rPt ) );
+ const Size aSzPixel( pOut->LogicToPixel( rSz ) );
+ const GraphicCacheEntry* pCacheEntry = ImplGetCacheEntry( rObj );
+ GraphicDisplayCacheEntry* pDisplayCacheEntry = (GraphicDisplayCacheEntry*) maDisplayCache.First();
+ BOOL bRet = FALSE;
while( !bRet && pDisplayCacheEntry )
{
diff --git a/svtools/source/graphic/grfcache.hxx b/svtools/source/graphic/grfcache.hxx
index a91ad1e833f3..ecf2cf16d210 100644
--- a/svtools/source/graphic/grfcache.hxx
+++ b/svtools/source/graphic/grfcache.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,66 +44,66 @@ class GraphicCache
{
private:
- GraphicManager& mrMgr;
+ GraphicManager& mrMgr;
Timer maReleaseTimer;
- List maGraphicCache;
- List maDisplayCache;
+ List maGraphicCache;
+ List maDisplayCache;
ULONG mnReleaseTimeoutSeconds;
- ULONG mnMaxDisplaySize;
- ULONG mnMaxObjDisplaySize;
- ULONG mnUsedDisplaySize;
+ ULONG mnMaxDisplaySize;
+ ULONG mnMaxObjDisplaySize;
+ ULONG mnUsedDisplaySize;
- BOOL ImplFreeDisplayCacheSpace( ULONG nSizeToFree );
- GraphicCacheEntry* ImplGetCacheEntry( const GraphicObject& rObj );
+ BOOL ImplFreeDisplayCacheSpace( ULONG nSizeToFree );
+ GraphicCacheEntry* ImplGetCacheEntry( const GraphicObject& rObj );
DECL_LINK( ReleaseTimeoutHdl, Timer* pTimer );
-
-public:
-
+
+public:
+
GraphicCache( GraphicManager& rMgr,
- ULONG nDisplayCacheSize = 10000000UL,
+ ULONG nDisplayCacheSize = 10000000UL,
ULONG nMaxObjDisplayCacheSize = 2400000UL );
~GraphicCache();
-
-public:
-
- void AddGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute,
+
+public:
+
+ void AddGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute,
const ByteString* pID, const GraphicObject* pCopyObj );
- void ReleaseGraphicObject( const GraphicObject& rObj );
-
- void GraphicObjectWasSwappedOut( const GraphicObject& rObj );
- BOOL FillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
- void GraphicObjectWasSwappedIn( const GraphicObject& rObj );
-
- ByteString GetUniqueID( const GraphicObject& rObj ) const;
-
-public:
-
- void SetMaxDisplayCacheSize( ULONG nNewCacheSize );
- ULONG GetMaxDisplayCacheSize() const { return mnMaxDisplaySize; };
-
- void SetMaxObjDisplayCacheSize( ULONG nNewMaxObjSize, BOOL bDestroyGreaterCached = FALSE );
- ULONG GetMaxObjDisplayCacheSize() const { return mnMaxObjDisplaySize; }
-
- ULONG GetUsedDisplayCacheSize() const { return mnUsedDisplaySize; }
- ULONG GetFreeDisplayCacheSize() const { return( mnMaxDisplaySize - mnUsedDisplaySize ); }
+ void ReleaseGraphicObject( const GraphicObject& rObj );
+
+ void GraphicObjectWasSwappedOut( const GraphicObject& rObj );
+ BOOL FillSwappedGraphicObject( const GraphicObject& rObj, Graphic& rSubstitute );
+ void GraphicObjectWasSwappedIn( const GraphicObject& rObj );
+
+ ByteString GetUniqueID( const GraphicObject& rObj ) const;
+
+public:
+
+ void SetMaxDisplayCacheSize( ULONG nNewCacheSize );
+ ULONG GetMaxDisplayCacheSize() const { return mnMaxDisplaySize; };
+
+ void SetMaxObjDisplayCacheSize( ULONG nNewMaxObjSize, BOOL bDestroyGreaterCached = FALSE );
+ ULONG GetMaxObjDisplayCacheSize() const { return mnMaxObjDisplaySize; }
+
+ ULONG GetUsedDisplayCacheSize() const { return mnUsedDisplaySize; }
+ ULONG GetFreeDisplayCacheSize() const { return( mnMaxDisplaySize - mnUsedDisplaySize ); }
void SetCacheTimeout( ULONG nTimeoutSeconds );
ULONG GetCacheTimeout() const { return mnReleaseTimeoutSeconds; }
-
- void ClearDisplayCache();
- BOOL IsDisplayCacheable( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+
+ void ClearDisplayCache();
+ BOOL IsDisplayCacheable( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr ) const;
- BOOL IsInDisplayCache( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL IsInDisplayCache( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr ) const;
- BOOL CreateDisplayCacheObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL CreateDisplayCacheObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr,
const BitmapEx& rBmpEx );
- BOOL CreateDisplayCacheObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL CreateDisplayCacheObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr,
const GDIMetaFile& rMtf );
- BOOL DrawDisplayCacheObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
+ BOOL DrawDisplayCacheObj( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicObject& rObj, const GraphicAttr& rAttr );
};
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 22e790a5db55..a624092dda61 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,15 +47,15 @@
#include <vcl/pdfextoutdevdata.hxx>
-#define WATERMARK_LUM_OFFSET 50
-#define WATERMARK_CON_OFFSET -70
+#define WATERMARK_LUM_OFFSET 50
+#define WATERMARK_CON_OFFSET -70
GraphicManager* GraphicObject::mpGlobalMgr = NULL;
struct GrfSimpleCacheObj
{
- Graphic maGraphic;
- GraphicAttr maAttr;
+ Graphic maGraphic;
+ GraphicAttr maAttr;
GrfSimpleCacheObj( const Graphic& rGraphic, const GraphicAttr& rAttr ) :
maGraphic( rGraphic ), maAttr( rAttr ) {}
@@ -64,8 +64,8 @@ struct GrfSimpleCacheObj
TYPEINIT1_AUTOFACTORY( GraphicObject, SvDataCopyStream );
GraphicObject::GraphicObject( const GraphicManager* pMgr ) :
- mpLink ( NULL ),
- mpUserData ( NULL )
+ mpLink ( NULL ),
+ mpUserData ( NULL )
{
ImplConstruct();
ImplAssignGraphicData();
@@ -73,9 +73,9 @@ GraphicObject::GraphicObject( const GraphicManager* pMgr ) :
}
GraphicObject::GraphicObject( const Graphic& rGraphic, const GraphicManager* pMgr ) :
- maGraphic ( rGraphic ),
- mpLink ( NULL ),
- mpUserData ( NULL )
+ maGraphic ( rGraphic ),
+ mpLink ( NULL ),
+ mpUserData ( NULL )
{
ImplConstruct();
ImplAssignGraphicData();
@@ -83,9 +83,9 @@ GraphicObject::GraphicObject( const Graphic& rGraphic, const GraphicManager* pMg
}
GraphicObject::GraphicObject( const Graphic& rGraphic, const String& rLink, const GraphicManager* pMgr ) :
- maGraphic ( rGraphic ),
- mpLink ( rLink.Len() ? ( new String( rLink ) ) : NULL ),
- mpUserData ( NULL )
+ maGraphic ( rGraphic ),
+ mpLink ( rLink.Len() ? ( new String( rLink ) ) : NULL ),
+ mpUserData ( NULL )
{
ImplConstruct();
ImplAssignGraphicData();
@@ -94,10 +94,10 @@ GraphicObject::GraphicObject( const Graphic& rGraphic, const String& rLink, cons
GraphicObject::GraphicObject( const GraphicObject& rGraphicObj, const GraphicManager* pMgr ) :
SvDataCopyStream(),
- maGraphic ( rGraphicObj.GetGraphic() ),
- maAttr ( rGraphicObj.maAttr ),
- mpLink ( rGraphicObj.mpLink ? ( new String( *rGraphicObj.mpLink ) ) : NULL ),
- mpUserData ( rGraphicObj.mpUserData ? ( new String( *rGraphicObj.mpUserData ) ) : NULL )
+ maGraphic ( rGraphicObj.GetGraphic() ),
+ maAttr ( rGraphicObj.maAttr ),
+ mpLink ( rGraphicObj.mpLink ? ( new String( *rGraphicObj.mpLink ) ) : NULL ),
+ mpUserData ( rGraphicObj.mpUserData ? ( new String( *rGraphicObj.mpUserData ) ) : NULL )
{
ImplConstruct();
ImplAssignGraphicData();
@@ -105,8 +105,8 @@ GraphicObject::GraphicObject( const GraphicObject& rGraphicObj, const GraphicMan
}
GraphicObject::GraphicObject( const ByteString& rUniqueID, const GraphicManager* pMgr ) :
- mpLink ( NULL ),
- mpUserData ( NULL )
+ mpLink ( NULL ),
+ mpUserData ( NULL )
{
ImplConstruct();
@@ -274,14 +274,14 @@ BOOL GraphicObject::ImplGetCropParams( OutputDevice* pOut, Point& rPt, Size& rSz
if( GetType() != GRAPHIC_NONE )
{
- Polygon aClipPoly( Rectangle( rPt, rSz ) );
- const USHORT nRot10 = pAttr->GetRotation() % 3600;
- const Point aOldOrigin( rPt );
- const MapMode aMap100( MAP_100TH_MM );
- Size aSize100;
- long nTotalWidth, nTotalHeight;
- long nNewLeft, nNewTop, nNewRight, nNewBottom;
- double fScale;
+ Polygon aClipPoly( Rectangle( rPt, rSz ) );
+ const USHORT nRot10 = pAttr->GetRotation() % 3600;
+ const Point aOldOrigin( rPt );
+ const MapMode aMap100( MAP_100TH_MM );
+ Size aSize100;
+ long nTotalWidth, nTotalHeight;
+ long nNewLeft, nNewTop, nNewRight, nNewBottom;
+ double fScale;
if( nRot10 )
{
@@ -366,7 +366,7 @@ GraphicObject& GraphicObject::operator=( const GraphicObject& rGraphicObj )
BOOL GraphicObject::operator==( const GraphicObject& rGraphicObj ) const
{
- return( ( rGraphicObj.maGraphic == maGraphic ) &&
+ return( ( rGraphicObj.maGraphic == maGraphic ) &&
( rGraphicObj.maAttr == maAttr ) &&
( rGraphicObj.GetLink() == GetLink() ) );
}
@@ -472,7 +472,7 @@ void GraphicObject::SetSwapStreamHdl()
void GraphicObject::SetSwapStreamHdl( const Link& rHdl, const ULONG nSwapOutTimeout )
{
- delete mpSwapStreamHdl, mpSwapStreamHdl = new Link( rHdl );
+ delete mpSwapStreamHdl, mpSwapStreamHdl = new Link( rHdl );
if( nSwapOutTimeout )
{
@@ -561,16 +561,16 @@ List* GraphicObject::GetAnimationInfoList() const
BOOL GraphicObject::Draw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GraphicAttr* pAttr, ULONG nFlags )
{
- GraphicAttr aAttr( pAttr ? *pAttr : GetAttr() );
- Point aPt( rPt );
- Size aSz( rSz );
+ GraphicAttr aAttr( pAttr ? *pAttr : GetAttr() );
+ Point aPt( rPt );
+ Size aSz( rSz );
const sal_uInt32 nOldDrawMode = pOut->GetDrawMode();
- BOOL bCropped = aAttr.IsCropped();
- BOOL bCached = FALSE;
- BOOL bRet;
+ BOOL bCropped = aAttr.IsCropped();
+ BOOL bCached = FALSE;
+ BOOL bRet;
// #i29534# Provide output rects for PDF writer
- Rectangle aCropRect;
+ Rectangle aCropRect;
if( !( GRFMGR_DRAW_USE_DRAWMODE_SETTINGS & nFlags ) )
pOut->SetDrawMode( nOldDrawMode & ( ~( DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT ) ) );
@@ -594,8 +594,8 @@ BOOL GraphicObject::Draw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
if( bCropped )
{
PolyPolygon aClipPolyPoly;
- BOOL bRectClip;
- const BOOL bCrop = ImplGetCropParams( pOut, aPt, aSz, &aAttr, aClipPolyPoly, bRectClip );
+ BOOL bRectClip;
+ const BOOL bCrop = ImplGetCropParams( pOut, aPt, aSz, &aAttr, aClipPolyPoly, bRectClip );
pOut->Push( PUSH_CLIPREGION );
@@ -702,11 +702,11 @@ BOOL GraphicObject::DrawTiled( OutputDevice* pOut, const Rectangle& rArea, const
if( pOut == NULL || rSize.Width() == 0 || rSize.Height() == 0 )
return FALSE;
- const MapMode aOutMapMode( pOut->GetMapMode() );
- const MapMode aMapMode( aOutMapMode.GetMapUnit(), Point(), aOutMapMode.GetScaleX(), aOutMapMode.GetScaleY() );
+ const MapMode aOutMapMode( pOut->GetMapMode() );
+ const MapMode aMapMode( aOutMapMode.GetMapUnit(), Point(), aOutMapMode.GetScaleX(), aOutMapMode.GetScaleY() );
// #106258# Clamp size to 1 for zero values. This is okay, since
// logical size of zero is handled above already
- const Size aOutTileSize( ::std::max( 1L, pOut->LogicToPixel( rSize, aOutMapMode ).Width() ),
+ const Size aOutTileSize( ::std::max( 1L, pOut->LogicToPixel( rSize, aOutMapMode ).Width() ),
::std::max( 1L, pOut->LogicToPixel( rSize, aOutMapMode ).Height() ) );
//#i69780 clip final tile size to a sane max size
@@ -733,14 +733,14 @@ BOOL GraphicObject::StartAnimation( OutputDevice* pOut, const Point& rPt, const
if( mbAnimated )
{
Point aPt( rPt );
- Size aSz( rSz );
- BOOL bCropped = aAttr.IsCropped();
+ Size aSz( rSz );
+ BOOL bCropped = aAttr.IsCropped();
if( bCropped )
{
PolyPolygon aClipPolyPoly;
- BOOL bRectClip;
- const BOOL bCrop = ImplGetCropParams( pOut, aPt, aSz, &aAttr, aClipPolyPoly, bRectClip );
+ BOOL bRectClip;
+ const BOOL bCrop = ImplGetCropParams( pOut, aPt, aSz, &aAttr, aClipPolyPoly, bRectClip );
pOut->Push( PUSH_CLIPREGION );
@@ -804,7 +804,7 @@ void GraphicObject::SetGraphic( const Graphic& rGraphic, const GraphicObject* pC
delete mpSimpleCache, mpSimpleCache = NULL;
mpMgr->ImplRegisterObj( *this, maGraphic, 0, pCopyObj);
-
+
if( mpSwapOutTimer )
mpSwapOutTimer->Start();
}
@@ -818,9 +818,9 @@ void GraphicObject::SetGraphic( const Graphic& rGraphic, const String& rLink )
Graphic GraphicObject::GetTransformedGraphic( const Size& rDestSize, const MapMode& rDestMap, const GraphicAttr& rAttr ) const
{
// #104550# Extracted from svx/source/svdraw/svdograf.cxx
- Graphic aTransGraphic( maGraphic );
- const GraphicType eType = GetType();
- const Size aSrcSize( aTransGraphic.GetPrefSize() );
+ Graphic aTransGraphic( maGraphic );
+ const GraphicType eType = GetType();
+ const Size aSrcSize( aTransGraphic.GetPrefSize() );
// #104115# Convert the crop margins to graphic object mapmode
const MapMode aMapGraph( aTransGraphic.GetPrefMapMode() );
@@ -1176,11 +1176,11 @@ IMPL_LINK( GraphicObject, ImplAutoSwapOutHdl, void*, EMPTYARG )
SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj )
{
- VersionCompat aCompat( rIStm, STREAM_READ );
- Graphic aGraphic;
- GraphicAttr aAttr;
- ByteString aLink;
- BOOL bLink;
+ VersionCompat aCompat( rIStm, STREAM_READ );
+ Graphic aGraphic;
+ GraphicAttr aAttr;
+ ByteString aLink;
+ BOOL bLink;
rIStm >> aGraphic >> aAttr >> bLink;
@@ -1202,8 +1202,8 @@ SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj )
SvStream& operator<<( SvStream& rOStm, const GraphicObject& rGraphicObj )
{
- VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
- const BOOL bLink = rGraphicObj.HasLink();
+ VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
+ const BOOL bLink = rGraphicObj.HasLink();
rOStm << rGraphicObj.GetGraphic() << rGraphicObj.GetAttr() << bLink;
@@ -1226,10 +1226,10 @@ GraphicObject GraphicObject::CreateGraphicObjectFromURL( const ::rtl::OUString &
}
else
{
- Graphic aGraphic;
+ Graphic aGraphic;
if ( aURL.Len() )
{
- SvStream* pStream = utl::UcbStreamHelper::CreateStream( aURL, STREAM_READ );
+ SvStream* pStream = utl::UcbStreamHelper::CreateStream( aURL, STREAM_READ );
if( pStream )
GraphicConverter::Import( *pStream, aGraphic );
}
diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index 8fe7739cf8cf..70b81c85b403 100644
--- a/svtools/source/graphic/grfmgr2.cxx
+++ b/svtools/source/graphic/grfmgr2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,10 +46,10 @@
// - defines -
// -----------
-#define MAX_PRINTER_EXT 1024
-#define MAP( cVal0, cVal1, nFrac ) ((BYTE)((((long)(cVal0)<<20L)+nFrac*((long)(cVal1)-(cVal0)))>>20L))
-#define WATERMARK_LUM_OFFSET 50
-#define WATERMARK_CON_OFFSET -70
+#define MAX_PRINTER_EXT 1024
+#define MAP( cVal0, cVal1, nFrac ) ((BYTE)((((long)(cVal0)<<20L)+nFrac*((long)(cVal1)-(cVal0)))>>20L))
+#define WATERMARK_LUM_OFFSET 50
+#define WATERMARK_CON_OFFSET -70
// -----------
// - helpers -
@@ -158,9 +158,9 @@ ULONG GraphicManager::GetMaxObjCacheSize() const
// -----------------------------------------------------------------------------
-ULONG GraphicManager::GetUsedCacheSize() const
-{
- return mpCache->GetUsedDisplayCacheSize();
+ULONG GraphicManager::GetUsedCacheSize() const
+{
+ return mpCache->GetUsedDisplayCacheSize();
}
// -----------------------------------------------------------------------------
@@ -201,7 +201,7 @@ void GraphicManager::ReleaseFromCache( const GraphicObject& /*rObj*/ )
// -----------------------------------------------------------------------------
BOOL GraphicManager::IsInCache( OutputDevice* pOut, const Point& rPt,
- const Size& rSz, const GraphicObject& rObj,
+ const Size& rSz, const GraphicObject& rObj,
const GraphicAttr& rAttr ) const
{
return mpCache->IsInDisplayCache( pOut, rPt, rSz, rObj, rAttr );
@@ -214,8 +214,8 @@ BOOL GraphicManager::DrawObj( OutputDevice* pOut, const Point& rPt, const Size&
const ULONG nFlags, BOOL& rCached )
{
Point aPt( rPt );
- Size aSz( rSz );
- BOOL bRet = FALSE;
+ Size aSz( rSz );
+ BOOL bRet = FALSE;
rCached = FALSE;
@@ -225,9 +225,9 @@ BOOL GraphicManager::DrawObj( OutputDevice* pOut, const Point& rPt, const Size&
const Size aOutSize( pOut->GetOutputSizePixel() );
if( rObj.IsAnimated() || ( pOut->GetOutDevType() == OUTDEV_PRINTER ) ||
- ( !( nFlags & GRFMGR_DRAW_NO_SUBSTITUTE ) &&
- ( ( nFlags & GRFMGR_DRAW_SUBSTITUTE ) ||
- !( nFlags & GRFMGR_DRAW_CACHED ) ||
+ ( !( nFlags & GRFMGR_DRAW_NO_SUBSTITUTE ) &&
+ ( ( nFlags & GRFMGR_DRAW_SUBSTITUTE ) ||
+ !( nFlags & GRFMGR_DRAW_CACHED ) ||
( pOut->GetConnectMetaFile() && !pOut->IsOutputEnabled() ) ) ) )
{
// simple output of transformed graphic
@@ -236,7 +236,7 @@ BOOL GraphicManager::DrawObj( OutputDevice* pOut, const Point& rPt, const Size&
if( aGraphic.IsSupportedGraphic() )
{
const USHORT nRot10 = rAttr.GetRotation() % 3600;
-
+
if( nRot10 )
{
Polygon aPoly( Rectangle( aPt, aSz ) );
@@ -268,7 +268,7 @@ BOOL GraphicManager::DrawObj( OutputDevice* pOut, const Point& rPt, const Size&
// -----------------------------------------------------------------------------
-void GraphicManager::ImplRegisterObj( const GraphicObject& rObj, Graphic& rSubstitute,
+void GraphicManager::ImplRegisterObj( const GraphicObject& rObj, Graphic& rSubstitute,
const ByteString* pID, const GraphicObject* pCopyObj )
{
maObjList.Insert( (void*) &rObj, LIST_APPEND );
@@ -278,7 +278,7 @@ void GraphicManager::ImplRegisterObj( const GraphicObject& rObj, Graphic& rSubst
// -----------------------------------------------------------------------------
void GraphicManager::ImplUnregisterObj( const GraphicObject& rObj )
-{
+{
mpCache->ReleaseGraphicObject( rObj );
maObjList.Remove( (void*) &rObj );
}
@@ -315,11 +315,11 @@ void GraphicManager::ImplGraphicObjectWasSwappedIn( const GraphicObject& rObj )
BOOL GraphicManager::ImplDraw( OutputDevice* pOut, const Point& rPt,
const Size& rSz, GraphicObject& rObj,
- const GraphicAttr& rAttr,
+ const GraphicAttr& rAttr,
const ULONG nFlags, BOOL& rCached )
{
- const Graphic& rGraphic = rObj.GetGraphic();
- BOOL bRet = FALSE;
+ const Graphic& rGraphic = rObj.GetGraphic();
+ BOOL bRet = FALSE;
if( rGraphic.IsSupportedGraphic() && !rGraphic.IsSwapOut() )
{
@@ -333,7 +333,7 @@ BOOL GraphicManager::ImplDraw( OutputDevice* pOut, const Point& rPt,
mpCache->IsDisplayCacheable( pOut, rPt, rSz, rObj, rAttr ) )
{
BitmapEx aDstBmpEx;
-
+
if( ImplCreateOutput( pOut, rPt, rSz, aSrcBmpEx, rAttr, nFlags, &aDstBmpEx ) )
{
rCached = mpCache->CreateDisplayCacheObj( pOut, rPt, rSz, rObj, rAttr, aDstBmpEx );
@@ -361,7 +361,7 @@ BOOL GraphicManager::ImplDraw( OutputDevice* pOut, const Point& rPt,
// metafile basically contains only a single
// bitmap
BitmapEx aDstBmpEx;
-
+
if( ImplCreateOutput( pOut, rPt, rSz, aContainedBmpEx, rAttr, nFlags, &aDstBmpEx ) )
{
rCached = mpCache->CreateDisplayCacheObj( pOut, rPt, rSz, rObj, rAttr, aDstBmpEx );
@@ -379,7 +379,7 @@ BOOL GraphicManager::ImplDraw( OutputDevice* pOut, const Point& rPt,
if( !bRet )
{
const Graphic aGraphic( rObj.GetTransformedGraphic( &rAttr ) );
-
+
if( aGraphic.IsSupportedGraphic() )
{
aGraphic.Draw( pOut, rPt, rSz );
@@ -394,16 +394,16 @@ BOOL GraphicManager::ImplDraw( OutputDevice* pOut, const Point& rPt,
// -----------------------------------------------------------------------------
-BOOL GraphicManager::ImplCreateOutput( OutputDevice* pOut,
+BOOL GraphicManager::ImplCreateOutput( OutputDevice* pOut,
const Point& rPt, const Size& rSz,
const BitmapEx& rBmpEx, const GraphicAttr& rAttr,
const ULONG nFlags, BitmapEx* pBmpEx )
{
- USHORT nRot10 = rAttr.GetRotation() % 3600;
- Point aOutPtPix;
- Size aOutSzPix;
- Size aUnrotatedSzPix( pOut->LogicToPixel( rSz ) );
- BOOL bRet = FALSE;
+ USHORT nRot10 = rAttr.GetRotation() % 3600;
+ Point aOutPtPix;
+ Size aOutSzPix;
+ Size aUnrotatedSzPix( pOut->LogicToPixel( rSz ) );
+ BOOL bRet = FALSE;
if( nRot10 )
{
@@ -422,29 +422,29 @@ BOOL GraphicManager::ImplCreateOutput( OutputDevice* pOut,
if( aUnrotatedSzPix.Width() && aUnrotatedSzPix.Height() )
{
- BitmapEx aBmpEx( rBmpEx );
- BitmapEx aOutBmpEx;
- Point aOutPt;
- Size aOutSz;
- const Size& rBmpSzPix = rBmpEx.GetSizePixel();
- const long nW = rBmpSzPix.Width();
- const long nH = rBmpSzPix.Height();
- const long nNewW = aUnrotatedSzPix.Width();
- const long nNewH = aUnrotatedSzPix.Height();
- double fTmp;
- long* pMapIX = new long[ nNewW ];
- long* pMapFX = new long[ nNewW ];
- long* pMapIY = new long[ nNewH ];
- long* pMapFY = new long[ nNewH ];
- long nStartX = -1, nStartY = -1, nEndX = -1, nEndY = -1;
- long nX, nY, nTmp, nTmpX, nTmpY;
- BOOL bHMirr = ( rAttr.GetMirrorFlags() & BMP_MIRROR_HORZ ) != 0;
- BOOL bVMirr = ( rAttr.GetMirrorFlags() & BMP_MIRROR_VERT ) != 0;
+ BitmapEx aBmpEx( rBmpEx );
+ BitmapEx aOutBmpEx;
+ Point aOutPt;
+ Size aOutSz;
+ const Size& rBmpSzPix = rBmpEx.GetSizePixel();
+ const long nW = rBmpSzPix.Width();
+ const long nH = rBmpSzPix.Height();
+ const long nNewW = aUnrotatedSzPix.Width();
+ const long nNewH = aUnrotatedSzPix.Height();
+ double fTmp;
+ long* pMapIX = new long[ nNewW ];
+ long* pMapFX = new long[ nNewW ];
+ long* pMapIY = new long[ nNewH ];
+ long* pMapFY = new long[ nNewH ];
+ long nStartX = -1, nStartY = -1, nEndX = -1, nEndY = -1;
+ long nX, nY, nTmp, nTmpX, nTmpY;
+ BOOL bHMirr = ( rAttr.GetMirrorFlags() & BMP_MIRROR_HORZ ) != 0;
+ BOOL bVMirr = ( rAttr.GetMirrorFlags() & BMP_MIRROR_VERT ) != 0;
if( nFlags & GRFMGR_DRAW_BILINEAR )
{
- const double fRevScaleX = ( nNewW > 1L ) ? ( (double) ( nW - 1L ) / ( nNewW - 1L ) ) : 0.0;
- const double fRevScaleY = ( nNewH > 1L ) ? ( (double) ( nH - 1L ) / ( nNewH - 1L ) ) : 0.0;
+ const double fRevScaleX = ( nNewW > 1L ) ? ( (double) ( nW - 1L ) / ( nNewW - 1L ) ) : 0.0;
+ const double fRevScaleY = ( nNewH > 1L ) ? ( (double) ( nH - 1L ) / ( nNewH - 1L ) ) : 0.0;
// create horizontal mapping table
for( nX = 0L, nTmpX = nW - 1L, nTmp = nW - 2L; nX < nNewW; nX++ )
@@ -471,8 +471,8 @@ BOOL GraphicManager::ImplCreateOutput( OutputDevice* pOut,
else
{
// #98290# Use a different mapping for non-interpolating mode, to avoid missing rows/columns
- const double fRevScaleX = ( nNewW > 1L ) ? ( (double) nW / nNewW ) : 0.0;
- const double fRevScaleY = ( nNewH > 1L ) ? ( (double) nH / nNewH ) : 0.0;
+ const double fRevScaleX = ( nNewW > 1L ) ? ( (double) nW / nNewW ) : 0.0;
+ const double fRevScaleY = ( nNewH > 1L ) ? ( (double) nH / nNewH ) : 0.0;
// create horizontal mapping table
for( nX = 0L, nTmpX = nW - 1L, nTmp = nW - 2L; nX < nNewW; nX++ )
@@ -504,9 +504,9 @@ BOOL GraphicManager::ImplCreateOutput( OutputDevice* pOut,
// calculate output sizes
if( !pBmpEx )
{
- Point aPt;
- Rectangle aOutRect( aPt, pOut->GetOutputSizePixel() );
- Rectangle aBmpRect( aOutPtPix, aOutSzPix );
+ Point aPt;
+ Rectangle aOutRect( aPt, pOut->GetOutputSizePixel() );
+ Rectangle aBmpRect( aOutPtPix, aOutSzPix );
if( pOut->GetOutDevType() == OUTDEV_WINDOW )
{
@@ -646,7 +646,7 @@ BOOL GraphicManager::ImplCreateOutput( OutputDevice* pOut,
const double fScaleY = 1.0;
const MapMode& rPrefMapMode( rMtf.GetPrefMapMode() );
- const Size& rSizePix( pOut->LogicToPixel( aNewSize,
+ const Size& rSizePix( pOut->LogicToPixel( aNewSize,
rPrefMapMode ) );
// taking care of font width default if scaling metafile.
@@ -929,17 +929,17 @@ BOOL GraphicManager::ImplCreateScaled( const BitmapEx& rBmpEx,
long nStartX, long nEndX, long nStartY, long nEndY,
BitmapEx& rOutBmpEx )
{
- Bitmap aBmp( rBmpEx.GetBitmap() );
- Bitmap aOutBmp;
- BitmapReadAccess* pAcc = aBmp.AcquireReadAccess();
- BitmapWriteAccess* pWAcc;
- BitmapColor aCol0, aCol1, aColRes;
- const long nDstW = nEndX - nStartX + 1L;
- const long nDstH = nEndY - nStartY + 1L;
- long nX, nY, nTmpX, nTmpY, nTmpFX, nTmpFY;
- long nXDst, nYDst;
- BYTE cR0, cG0, cB0, cR1, cG1, cB1;
- BOOL bRet = FALSE;
+ Bitmap aBmp( rBmpEx.GetBitmap() );
+ Bitmap aOutBmp;
+ BitmapReadAccess* pAcc = aBmp.AcquireReadAccess();
+ BitmapWriteAccess* pWAcc;
+ BitmapColor aCol0, aCol1, aColRes;
+ const long nDstW = nEndX - nStartX + 1L;
+ const long nDstH = nEndY - nStartY + 1L;
+ long nX, nY, nTmpX, nTmpY, nTmpFX, nTmpFY;
+ long nXDst, nYDst;
+ BYTE cR0, cG0, cB0, cR1, cG1, cB1;
+ BOOL bRet = FALSE;
DBG_ASSERT( aBmp.GetSizePixel() == rBmpEx.GetSizePixel(),
"GraphicManager::ImplCreateScaled(): bmp size inconsistent" );
@@ -1021,8 +1021,8 @@ BOOL GraphicManager::ImplCreateScaled( const BitmapEx& rBmpEx,
{
if( pAcc->GetScanlineFormat() == BMP_FORMAT_24BIT_TC_BGR )
{
- Scanline pLine0, pLine1, pTmp0, pTmp1;
- long nOff;
+ Scanline pLine0, pLine1, pTmp0, pTmp1;
+ long nOff;
for( nY = nStartY, nYDst = 0L; nY <= nEndY; nY++, nYDst++ )
{
@@ -1054,8 +1054,8 @@ BOOL GraphicManager::ImplCreateScaled( const BitmapEx& rBmpEx,
}
else if( pAcc->GetScanlineFormat() == BMP_FORMAT_24BIT_TC_RGB )
{
- Scanline pLine0, pLine1, pTmp0, pTmp1;
- long nOff;
+ Scanline pLine0, pLine1, pTmp0, pTmp1;
+ long nOff;
for( nY = nStartY, nYDst = 0L; nY <= nEndY; nY++, nYDst++ )
{
@@ -1132,8 +1132,8 @@ BOOL GraphicManager::ImplCreateScaled( const BitmapEx& rBmpEx,
DBG_ASSERT( rBmpEx.GetAlpha().GetSizePixel() == rBmpEx.GetSizePixel(),
"GraphicManager::ImplCreateScaled(): alpha mask size inconsistent" );
- AlphaMask aAlpha( rBmpEx.GetAlpha() );
- AlphaMask aOutAlpha;
+ AlphaMask aAlpha( rBmpEx.GetAlpha() );
+ AlphaMask aOutAlpha;
pAcc = aAlpha.AcquireReadAccess();
@@ -1160,12 +1160,12 @@ BOOL GraphicManager::ImplCreateScaled( const BitmapEx& rBmpEx,
{
nTmpX = pMapIX[ nX ]; nTmpFX = pMapFX[ nX ];
- const long nAlpha0 = pLine0[ nTmpX ];
- const long nAlpha2 = pLine1[ nTmpX ];
- const long nAlpha1 = pLine0[ ++nTmpX ];
- const long nAlpha3 = pLine1[ nTmpX ];
- const long n0 = MAP( nAlpha0, nAlpha1, nTmpFX );
- const long n1 = MAP( nAlpha2, nAlpha3, nTmpFX );
+ const long nAlpha0 = pLine0[ nTmpX ];
+ const long nAlpha2 = pLine1[ nTmpX ];
+ const long nAlpha1 = pLine0[ ++nTmpX ];
+ const long nAlpha3 = pLine1[ nTmpX ];
+ const long n0 = MAP( nAlpha0, nAlpha1, nTmpFX );
+ const long n1 = MAP( nAlpha2, nAlpha3, nTmpFX );
*pLineW++ = MAP( n0, n1, nTmpFY );
}
@@ -1183,13 +1183,13 @@ BOOL GraphicManager::ImplCreateScaled( const BitmapEx& rBmpEx,
{
nTmpX = pMapIX[ nX ]; nTmpFX = pMapFX[ nX ];
- long nAlpha0 = pAcc->GetPixel( nTmpY, nTmpX ).GetIndex();
- long nAlpha1 = pAcc->GetPixel( nTmpY, ++nTmpX ).GetIndex();
- const long n0 = MAP( nAlpha0, nAlpha1, nTmpFX );
+ long nAlpha0 = pAcc->GetPixel( nTmpY, nTmpX ).GetIndex();
+ long nAlpha1 = pAcc->GetPixel( nTmpY, ++nTmpX ).GetIndex();
+ const long n0 = MAP( nAlpha0, nAlpha1, nTmpFX );
nAlpha1 = pAcc->GetPixel( ++nTmpY, nTmpX ).GetIndex();
nAlpha0 = pAcc->GetPixel( nTmpY--, --nTmpX ).GetIndex();
- const long n1 = MAP( nAlpha0, nAlpha1, nTmpFX );
+ const long n1 = MAP( nAlpha0, nAlpha1, nTmpFX );
aAlphaValue.SetIndex( MAP( n0, n1, nTmpFY ) );
pWAcc->SetPixel( nYDst, nXDst++, aAlphaValue );
@@ -1212,8 +1212,8 @@ BOOL GraphicManager::ImplCreateScaled( const BitmapEx& rBmpEx,
DBG_ASSERT( rBmpEx.GetMask().GetSizePixel() == rBmpEx.GetSizePixel(),
"GraphicManager::ImplCreateScaled(): mask size inconsistent" );
- Bitmap aMsk( rBmpEx.GetMask() );
- Bitmap aOutMsk;
+ Bitmap aMsk( rBmpEx.GetMask() );
+ Bitmap aOutMsk;
pAcc = aMsk.AcquireReadAccess();
@@ -1223,7 +1223,7 @@ BOOL GraphicManager::ImplCreateScaled( const BitmapEx& rBmpEx,
// bitmap. Otherwise, we'd have to color-map even the
// case below, when both masks are one bit deep.
if( pAcc->HasPalette() )
- aOutMsk = Bitmap( Size( nDstW, nDstH ),
+ aOutMsk = Bitmap( Size( nDstW, nDstH ),
1,
&pAcc->GetPalette() );
else
@@ -1329,26 +1329,26 @@ BOOL GraphicManager::ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
long nStartX, long nEndX, long nStartY, long nEndY,
BitmapEx& rOutBmpEx )
{
- Point aPt;
- Bitmap aBmp( rBmpEx.GetBitmap() );
- Bitmap aOutBmp;
- BitmapReadAccess* pAcc = aBmp.AcquireReadAccess();
- BitmapWriteAccess* pWAcc;
- Polygon aPoly( Rectangle( aPt, rUnrotatedSzPix ) ); aPoly.Rotate( Point(), nRot10 );
- Rectangle aNewBound( aPoly.GetBoundRect() );
- const double fCosAngle = cos( nRot10 * F_PI1800 ), fSinAngle = sin( nRot10 * F_PI1800 );
- double fTmp;
- const long nDstW = nEndX - nStartX + 1L;
- const long nDstH = nEndY - nStartY + 1L;
- const long nUnRotW = rUnrotatedSzPix.Width();
- const long nUnRotH = rUnrotatedSzPix.Height();
- long* pCosX = new long[ nDstW ];
- long* pSinX = new long[ nDstW ];
- long* pCosY = new long[ nDstH ];
- long* pSinY = new long[ nDstH ];
- long nX, nY, nTmpX, nTmpY, nTmpFX, nTmpFY, nUnRotX, nUnRotY, nSinY, nCosY;
- BYTE cR0, cG0, cB0, cR1, cG1, cB1;
- BOOL bRet = FALSE;
+ Point aPt;
+ Bitmap aBmp( rBmpEx.GetBitmap() );
+ Bitmap aOutBmp;
+ BitmapReadAccess* pAcc = aBmp.AcquireReadAccess();
+ BitmapWriteAccess* pWAcc;
+ Polygon aPoly( Rectangle( aPt, rUnrotatedSzPix ) ); aPoly.Rotate( Point(), nRot10 );
+ Rectangle aNewBound( aPoly.GetBoundRect() );
+ const double fCosAngle = cos( nRot10 * F_PI1800 ), fSinAngle = sin( nRot10 * F_PI1800 );
+ double fTmp;
+ const long nDstW = nEndX - nStartX + 1L;
+ const long nDstH = nEndY - nStartY + 1L;
+ const long nUnRotW = rUnrotatedSzPix.Width();
+ const long nUnRotH = rUnrotatedSzPix.Height();
+ long* pCosX = new long[ nDstW ];
+ long* pSinX = new long[ nDstW ];
+ long* pCosY = new long[ nDstH ];
+ long* pSinY = new long[ nDstH ];
+ long nX, nY, nTmpX, nTmpY, nTmpFX, nTmpFY, nUnRotX, nUnRotY, nSinY, nCosY;
+ BYTE cR0, cG0, cB0, cR1, cG1, cB1;
+ BOOL bRet = FALSE;
// create horizontal mapping table
for( nX = 0L, nTmpX = aNewBound.Left() + nStartX; nX < nDstW; nX++ )
@@ -1413,7 +1413,7 @@ BOOL GraphicManager::ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
}
else
{
- BitmapColor aCol0, aCol1;
+ BitmapColor aCol0, aCol1;
for( nY = 0; nY < nDstH; nY++ )
{
@@ -1466,8 +1466,8 @@ BOOL GraphicManager::ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
if( rBmpEx.IsAlpha() )
{
- AlphaMask aAlpha( rBmpEx.GetAlpha() );
- AlphaMask aOutAlpha;
+ AlphaMask aAlpha( rBmpEx.GetAlpha() );
+ AlphaMask aOutAlpha;
pAcc = aAlpha.AcquireReadAccess();
@@ -1502,12 +1502,12 @@ BOOL GraphicManager::ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
pLine0 = pAcc->GetScanline( nTmpY++ );
pLine1 = pAcc->GetScanline( nTmpY );
- const long nAlpha0 = pLine0[ nTmpX ];
- const long nAlpha2 = pLine1[ nTmpX++ ];
- const long nAlpha1 = pLine0[ nTmpX ];
- const long nAlpha3 = pLine1[ nTmpX ];
- const long n0 = MAP( nAlpha0, nAlpha1, nTmpFX );
- const long n1 = MAP( nAlpha2, nAlpha3, nTmpFX );
+ const long nAlpha0 = pLine0[ nTmpX ];
+ const long nAlpha2 = pLine1[ nTmpX++ ];
+ const long nAlpha1 = pLine0[ nTmpX ];
+ const long nAlpha3 = pLine1[ nTmpX ];
+ const long n0 = MAP( nAlpha0, nAlpha1, nTmpFX );
+ const long n1 = MAP( nAlpha2, nAlpha3, nTmpFX );
*pLineW++ = MAP( n0, n1, nTmpFY );
}
@@ -1518,8 +1518,8 @@ BOOL GraphicManager::ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
}
else
{
- const BitmapColor aTrans( pWAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
- BitmapColor aAlphaVal( 0 );
+ const BitmapColor aTrans( pWAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ BitmapColor aAlphaVal( 0 );
for( nY = 0; nY < nDstH; nY++ )
{
@@ -1536,12 +1536,12 @@ BOOL GraphicManager::ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
nTmpX = pMapIX[ nUnRotX ]; nTmpFX = pMapFX[ nUnRotX ];
nTmpY = pMapIY[ nUnRotY ], nTmpFY = pMapFY[ nUnRotY ];
- const long nAlpha0 = pAcc->GetPixel( nTmpY, nTmpX ).GetIndex();
- const long nAlpha1 = pAcc->GetPixel( nTmpY, ++nTmpX ).GetIndex();
- const long nAlpha3 = pAcc->GetPixel( ++nTmpY, nTmpX ).GetIndex();
- const long nAlpha2 = pAcc->GetPixel( nTmpY, --nTmpX ).GetIndex();
- const long n0 = MAP( nAlpha0, nAlpha1, nTmpFX );
- const long n1 = MAP( nAlpha2, nAlpha3, nTmpFX );
+ const long nAlpha0 = pAcc->GetPixel( nTmpY, nTmpX ).GetIndex();
+ const long nAlpha1 = pAcc->GetPixel( nTmpY, ++nTmpX ).GetIndex();
+ const long nAlpha3 = pAcc->GetPixel( ++nTmpY, nTmpX ).GetIndex();
+ const long nAlpha2 = pAcc->GetPixel( nTmpY, --nTmpX ).GetIndex();
+ const long n0 = MAP( nAlpha0, nAlpha1, nTmpFX );
+ const long n1 = MAP( nAlpha2, nAlpha3, nTmpFX );
aAlphaVal.SetIndex( MAP( n0, n1, nTmpFY ) );
pWAcc->SetPixel( nY, nX, aAlphaVal );
@@ -1569,16 +1569,16 @@ BOOL GraphicManager::ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
if( pWAcc )
{
- Bitmap aMsk( rBmpEx.GetMask() );
- const BitmapColor aB( pWAcc->GetBestMatchingColor( Color( COL_BLACK ) ) );
- const BitmapColor aW( pWAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
- BitmapReadAccess* pMAcc = NULL;
+ Bitmap aMsk( rBmpEx.GetMask() );
+ const BitmapColor aB( pWAcc->GetBestMatchingColor( Color( COL_BLACK ) ) );
+ const BitmapColor aW( pWAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ BitmapReadAccess* pMAcc = NULL;
if( !aMsk || ( ( pMAcc = aMsk.AcquireReadAccess() ) != NULL ) )
{
- long* pMapLX = new long[ nUnRotW ];
- long* pMapLY = new long[ nUnRotH ];
- BitmapColor aTestB;
+ long* pMapLX = new long[ nUnRotW ];
+ long* pMapLY = new long[ nUnRotH ];
+ BitmapColor aTestB;
if( pMAcc )
aTestB = pMAcc->GetBestMatchingColor( Color( COL_BLACK ) );
@@ -1699,8 +1699,8 @@ void GraphicManager::ImplAdjust( BitmapEx& rBmpEx, const GraphicAttr& rAttr, ULO
if( ( nAdjustmentFlags & ADJUSTMENT_TRANSPARENCY ) && aAttr.IsTransparent() )
{
- AlphaMask aAlpha;
- BYTE cTrans = aAttr.GetTransparency();
+ AlphaMask aAlpha;
+ BYTE cTrans = aAttr.GetTransparency();
if( !rBmpEx.IsTransparent() )
aAlpha = AlphaMask( rBmpEx.GetSizePixel(), &cTrans );
@@ -1716,8 +1716,8 @@ void GraphicManager::ImplAdjust( BitmapEx& rBmpEx, const GraphicAttr& rAttr, ULO
if( pA )
{
- ULONG nTrans = cTrans, nNewTrans;
- const long nWidth = pA->Width(), nHeight = pA->Height();
+ ULONG nTrans = cTrans, nNewTrans;
+ const long nWidth = pA->Width(), nHeight = pA->Height();
if( pA->GetScanlineFormat() == BMP_FORMAT_8BIT_PAL )
{
@@ -1866,9 +1866,9 @@ void GraphicManager::ImplAdjust( Animation& rAnimation, const GraphicAttr& rAttr
void GraphicManager::ImplDraw( OutputDevice* pOut, const Point& rPt, const Size& rSz,
const GDIMetaFile& rMtf, const GraphicAttr& rAttr )
{
- USHORT nRot10 = rAttr.GetRotation() % 3600;
- Point aOutPt( rPt );
- Size aOutSz( rSz );
+ USHORT nRot10 = rAttr.GetRotation() % 3600;
+ Point aOutPt( rPt );
+ Size aOutSz( rSz );
if( nRot10 )
{
@@ -1896,7 +1896,7 @@ struct ImplTileInfo
{
ImplTileInfo() : aTileTopLeft(), aNextTileTopLeft(), aTileSizePixel(), nTilesEmptyX(0), nTilesEmptyY(0) {}
- Point aTileTopLeft; // top, left position of the rendered tile
+ Point aTileTopLeft; // top, left position of the rendered tile
Point aNextTileTopLeft; // top, left position for next recursion
// level's tile
Size aTileSizePixel; // size of the generated tile (might
@@ -1909,7 +1909,7 @@ struct ImplTileInfo
// required area coverage is often
// less. The extraneous area covered is
// later overwritten by the next stage)
- int nTilesEmptyX; // number of original tiles empty right of
+ int nTilesEmptyX; // number of original tiles empty right of
// this tile. This counts from
// aNextTileTopLeft, i.e. the additional
// area covered by aTileSizePixel is not
@@ -1917,13 +1917,13 @@ struct ImplTileInfo
// unification purposes, as the iterative
// calculation of the next level's empty
// tiles has to be based on this value.
- int nTilesEmptyY; // as above, for Y
+ int nTilesEmptyY; // as above, for Y
};
-bool GraphicObject::ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
- int nNumTilesX, int nNumTilesY,
- const Size& rTileSizePixel,
+bool GraphicObject::ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
+ int nNumTilesX, int nNumTilesY,
+ const Size& rTileSizePixel,
const GraphicAttr* pAttr, ULONG nFlags )
{
if( nExponent <= 1 )
@@ -1932,7 +1932,7 @@ bool GraphicObject::ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
// determine MSB factor
int nMSBFactor( 1 );
while( nNumTilesX / nMSBFactor != 0 ||
- nNumTilesY / nMSBFactor != 0 )
+ nNumTilesY / nMSBFactor != 0 )
{
nMSBFactor *= nExponent;
}
@@ -1947,7 +1947,7 @@ bool GraphicObject::ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
BOOL bOldMap( rVDev.IsMapModeEnabled() );
rVDev.EnableMapMode( FALSE );
- bool bRet( ImplRenderTileRecursive( rVDev, nExponent, nMSBFactor, nNumTilesX, nNumTilesY,
+ bool bRet( ImplRenderTileRecursive( rVDev, nExponent, nMSBFactor, nNumTilesX, nNumTilesY,
nNumTilesX, nNumTilesY, rTileSizePixel, pAttr, nFlags, aTileInfo ) );
rVDev.EnableMapMode( bOldMap );
@@ -1965,9 +1965,9 @@ bool GraphicObject::ImplRenderTempTile( VirtualDevice& rVDev, int nExponent,
// size is given by the decimal place of the corresponding decimal
// representation.
bool GraphicObject::ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent, int nMSBFactor,
- int nNumOrigTilesX, int nNumOrigTilesY,
- int nRemainderTilesX, int nRemainderTilesY,
- const Size& rTileSizePixel, const GraphicAttr* pAttr,
+ int nNumOrigTilesX, int nNumOrigTilesY,
+ int nRemainderTilesX, int nRemainderTilesY,
+ const Size& rTileSizePixel, const GraphicAttr* pAttr,
ULONG nFlags, ImplTileInfo& rTileInfo )
{
// gets loaded with our tile bitmap
@@ -1989,7 +1989,7 @@ bool GraphicObject::ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent
ImplTileInfo aTileInfo;
// current output position while drawing
- Point aCurrPos;
+ Point aCurrPos;
int nX, nY;
// check for recursion's end condition: LSB place reached?
@@ -2002,23 +2002,23 @@ bool GraphicObject::ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent
aTileInfo.nTilesEmptyX = nNumOrigTilesX;
aTileInfo.nTilesEmptyY = nNumOrigTilesY;
}
- else if( ImplRenderTileRecursive( rVDev, nExponent, nMSBFactor/nExponent,
- nNumOrigTilesX, nNumOrigTilesY,
- nNewRemainderX, nNewRemainderY,
+ else if( ImplRenderTileRecursive( rVDev, nExponent, nMSBFactor/nExponent,
+ nNumOrigTilesX, nNumOrigTilesY,
+ nNewRemainderX, nNewRemainderY,
rTileSizePixel, pAttr, nFlags, aTileInfo ) )
{
// extract generated tile -> see comment on the first loop below
BitmapEx aTileBitmap( rVDev.GetBitmap( aTileInfo.aTileTopLeft, aTileInfo.aTileSizePixel ) );
-
+
aTmpGraphic = GraphicObject( aTileBitmap );
// fill stripes left over from upstream levels:
- //
+ //
// x0000
// 0
// 0
// 0
- // 0
+ // 0
//
// where x denotes the place filled by our recursive predecessors
@@ -2039,12 +2039,12 @@ bool GraphicObject::ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent
{
if( !aTmpGraphic.Draw( &rVDev, aCurrPos, aTileInfo.aTileSizePixel, pAttr, nFlags ) )
return false;
-
+
aCurrPos.X() += aTileInfo.aTileSizePixel.Width();
}
#ifdef DBG_TEST
-// rVDev.SetFillColor( COL_WHITE );
+// rVDev.SetFillColor( COL_WHITE );
rVDev.SetFillColor();
rVDev.SetLineColor( Color( 255 * nExponent / nMSBFactor, 255 - 255 * nExponent / nMSBFactor, 128 - 255 * nExponent / nMSBFactor ) );
rVDev.DrawEllipse( Rectangle(aTileInfo.aNextTileTopLeft.X(), aTileInfo.aTileTopLeft.Y(),
@@ -2094,13 +2094,13 @@ bool GraphicObject::ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent
nRemainderTilesY -= nNewRemainderY;
// fill tile info for calling method
- rTileInfo.aTileTopLeft = aTileInfo.aNextTileTopLeft;
+ rTileInfo.aTileTopLeft = aTileInfo.aNextTileTopLeft;
rTileInfo.aNextTileTopLeft = Point( rTileInfo.aTileTopLeft.X() + rTileSizePixel.Width()*nRemainderTilesX,
rTileInfo.aTileTopLeft.Y() + rTileSizePixel.Height()*nRemainderTilesY );
rTileInfo.aTileSizePixel = Size( rTileSizePixel.Width()*nMSBFactor*nExponent,
rTileSizePixel.Height()*nMSBFactor*nExponent );
- rTileInfo.nTilesEmptyX = aTileInfo.nTilesEmptyX - nRemainderTilesX;
- rTileInfo.nTilesEmptyY = aTileInfo.nTilesEmptyY - nRemainderTilesY;
+ rTileInfo.nTilesEmptyX = aTileInfo.nTilesEmptyX - nRemainderTilesX;
+ rTileInfo.nTilesEmptyY = aTileInfo.nTilesEmptyY - nRemainderTilesY;
// init output position
aCurrPos = aTileInfo.aNextTileTopLeft;
@@ -2131,8 +2131,8 @@ bool GraphicObject::ImplRenderTileRecursive( VirtualDevice& rVDev, int nExponent
// rVDev.SetFillColor( COL_WHITE );
rVDev.SetFillColor();
rVDev.SetLineColor( Color( 255 * nExponent / nMSBFactor, 255 - 255 * nExponent / nMSBFactor, 128 - 255 * nExponent / nMSBFactor ) );
- rVDev.DrawRect( Rectangle((rTileInfo.aTileTopLeft.X())*rTileSizePixel.Width(),
- (rTileInfo.aTileTopLeft.Y())*rTileSizePixel.Height(),
+ rVDev.DrawRect( Rectangle((rTileInfo.aTileTopLeft.X())*rTileSizePixel.Width(),
+ (rTileInfo.aTileTopLeft.Y())*rTileSizePixel.Height(),
(rTileInfo.aNextTileTopLeft.X())*rTileSizePixel.Width()-1,
(rTileInfo.aNextTileTopLeft.Y())*rTileSizePixel.Height()-1) );
#endif
@@ -2148,68 +2148,68 @@ bool GraphicObject::ImplDrawTiled( OutputDevice* pOut, const Rectangle& rArea, c
// how many tiles to generate per recursion step
enum{ SubdivisionExponent=2 };
- const MapMode aOutMapMode( pOut->GetMapMode() );
- const MapMode aMapMode( aOutMapMode.GetMapUnit(), Point(), aOutMapMode.GetScaleX(), aOutMapMode.GetScaleY() );
- bool bRet( false );
+ const MapMode aOutMapMode( pOut->GetMapMode() );
+ const MapMode aMapMode( aOutMapMode.GetMapUnit(), Point(), aOutMapMode.GetScaleX(), aOutMapMode.GetScaleY() );
+ bool bRet( false );
// #i42643# Casting to Int64, to avoid integer overflow for
// huge-DPI output devices
if( GetGraphic().GetType() == GRAPHIC_BITMAP &&
- static_cast<sal_Int64>(rSizePixel.Width()) * rSizePixel.Height() <
+ static_cast<sal_Int64>(rSizePixel.Width()) * rSizePixel.Height() <
static_cast<sal_Int64>(nTileCacheSize1D)*nTileCacheSize1D )
{
// First combine very small bitmaps into a larger tile
// ===================================================
- VirtualDevice aVDev;
- const int nNumTilesInCacheX( (nTileCacheSize1D + rSizePixel.Width()-1) / rSizePixel.Width() );
- const int nNumTilesInCacheY( (nTileCacheSize1D + rSizePixel.Height()-1) / rSizePixel.Height() );
+ VirtualDevice aVDev;
+ const int nNumTilesInCacheX( (nTileCacheSize1D + rSizePixel.Width()-1) / rSizePixel.Width() );
+ const int nNumTilesInCacheY( (nTileCacheSize1D + rSizePixel.Height()-1) / rSizePixel.Height() );
- aVDev.SetOutputSizePixel( Size( nNumTilesInCacheX*rSizePixel.Width(),
+ aVDev.SetOutputSizePixel( Size( nNumTilesInCacheX*rSizePixel.Width(),
nNumTilesInCacheY*rSizePixel.Height() ) );
aVDev.SetMapMode( aMapMode );
// draw bitmap content
- if( ImplRenderTempTile( aVDev, SubdivisionExponent, nNumTilesInCacheX,
+ if( ImplRenderTempTile( aVDev, SubdivisionExponent, nNumTilesInCacheX,
nNumTilesInCacheY, rSizePixel, pAttr, nFlags ) )
{
BitmapEx aTileBitmap( aVDev.GetBitmap( Point(0,0), aVDev.GetOutputSize() ) );
-
+
// draw alpha content, if any
if( IsTransparent() )
{
GraphicObject aAlphaGraphic;
-
+
if( GetGraphic().IsAlpha() )
aAlphaGraphic.SetGraphic( GetGraphic().GetBitmapEx().GetAlpha().GetBitmap() );
else
- aAlphaGraphic.SetGraphic( GetGraphic().GetBitmapEx().GetMask() );
-
- if( aAlphaGraphic.ImplRenderTempTile( aVDev, SubdivisionExponent, nNumTilesInCacheX,
+ aAlphaGraphic.SetGraphic( GetGraphic().GetBitmapEx().GetMask() );
+
+ if( aAlphaGraphic.ImplRenderTempTile( aVDev, SubdivisionExponent, nNumTilesInCacheX,
nNumTilesInCacheY, rSizePixel, pAttr, nFlags ) )
- {
+ {
// Combine bitmap and alpha/mask
if( GetGraphic().IsAlpha() )
- aTileBitmap = BitmapEx( aTileBitmap.GetBitmap(),
+ aTileBitmap = BitmapEx( aTileBitmap.GetBitmap(),
AlphaMask( aVDev.GetBitmap( Point(0,0), aVDev.GetOutputSize() ) ) );
else
- aTileBitmap = BitmapEx( aTileBitmap.GetBitmap(),
+ aTileBitmap = BitmapEx( aTileBitmap.GetBitmap(),
aVDev.GetBitmap( Point(0,0), aVDev.GetOutputSize() ).CreateMask( Color(COL_WHITE) ) );
}
}
-
+
// paint generated tile
GraphicObject aTmpGraphic( aTileBitmap );
- bRet = aTmpGraphic.ImplDrawTiled( pOut, rArea,
- aTileBitmap.GetSizePixel(),
+ bRet = aTmpGraphic.ImplDrawTiled( pOut, rArea,
+ aTileBitmap.GetSizePixel(),
rOffset, pAttr, nFlags, nTileCacheSize1D );
}
}
else
{
- const Size aOutOffset( pOut->LogicToPixel( rOffset, aOutMapMode ) );
- const Rectangle aOutArea( pOut->LogicToPixel( rArea, aOutMapMode ) );
-
+ const Size aOutOffset( pOut->LogicToPixel( rOffset, aOutMapMode ) );
+ const Rectangle aOutArea( pOut->LogicToPixel( rArea, aOutMapMode ) );
+
// number of invisible (because out-of-area) tiles
int nInvisibleTilesX;
int nInvisibleTilesY;
@@ -2252,17 +2252,17 @@ bool GraphicObject::ImplDrawTiled( OutputDevice* pOut, const Rectangle& rArea, c
// -----------------------------------------------------------------------------
-bool GraphicObject::ImplDrawTiled( OutputDevice& rOut, const Point& rPosPixel,
- int nNumTilesX, int nNumTilesY,
+bool GraphicObject::ImplDrawTiled( OutputDevice& rOut, const Point& rPosPixel,
+ int nNumTilesX, int nNumTilesY,
const Size& rTileSizePixel, const GraphicAttr* pAttr, ULONG nFlags )
{
- Point aCurrPos( rPosPixel );
- Size aTileSizeLogic( rOut.PixelToLogic( rTileSizePixel ) );
- int nX, nY;
+ Point aCurrPos( rPosPixel );
+ Size aTileSizeLogic( rOut.PixelToLogic( rTileSizePixel ) );
+ int nX, nY;
// #107607# Use logical coordinates for metafile playing, too
- bool bDrawInPixel( rOut.GetConnectMetaFile() == NULL && GRAPHIC_BITMAP == GetType() );
- BOOL bRet( FALSE );
+ bool bDrawInPixel( rOut.GetConnectMetaFile() == NULL && GRAPHIC_BITMAP == GetType() );
+ BOOL bRet( FALSE );
// #105229# Switch off mapping (converting to logic and back to
// pixel might cause roundoff errors)
@@ -2283,9 +2283,9 @@ bool GraphicObject::ImplDrawTiled( OutputDevice& rOut, const Point& rPosPixel,
// update return value. This method should return true, if
// at least one of the looped Draws succeeded.
- bRet |= Draw( &rOut,
- bDrawInPixel ? aCurrPos : rOut.PixelToLogic( aCurrPos ),
- bDrawInPixel ? rTileSizePixel : aTileSizeLogic,
+ bRet |= Draw( &rOut,
+ bDrawInPixel ? aCurrPos : rOut.PixelToLogic( aCurrPos ),
+ bDrawInPixel ? rTileSizePixel : aTileSizeLogic,
pAttr, nFlags );
aCurrPos.X() += rTileSizePixel.Width();
@@ -2302,13 +2302,13 @@ bool GraphicObject::ImplDrawTiled( OutputDevice& rOut, const Point& rPosPixel,
// -----------------------------------------------------------------------------
-void GraphicObject::ImplTransformBitmap( BitmapEx& rBmpEx,
+void GraphicObject::ImplTransformBitmap( BitmapEx& rBmpEx,
const GraphicAttr& rAttr,
- const Size& rCropLeftTop,
- const Size& rCropRightBottom,
- const Rectangle& rCropRect,
- const Size& rDstSize,
- BOOL bEnlarge ) const
+ const Size& rCropLeftTop,
+ const Size& rCropRightBottom,
+ const Rectangle& rCropRect,
+ const Size& rDstSize,
+ BOOL bEnlarge ) const
{
// #107947# Extracted from svdograf.cxx
@@ -2331,7 +2331,7 @@ void GraphicObject::ImplTransformBitmap( BitmapEx& rBmpEx,
sal_Int32 nPadTotalHeight( aBmpSize.Height() + nPadTop + (rCropRightBottom.Height() < 0 ? -rCropRightBottom.Height() : 0) );
BitmapEx aBmpEx2;
-
+
if( rBmpEx.IsTransparent() )
{
if( rBmpEx.IsAlpha() )
@@ -2359,8 +2359,8 @@ void GraphicObject::ImplTransformBitmap( BitmapEx& rBmpEx,
}
}
- const Size aSizePixel( rBmpEx.GetSizePixel() );
-
+ const Size aSizePixel( rBmpEx.GetSizePixel() );
+
if( rAttr.GetRotation() != 0 && !IsAnimated() )
{
if( aSizePixel.Width() && aSizePixel.Height() && rDstSize.Width() && rDstSize.Height() )
diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx
index 045dca6fe5d9..789b864f47b2 100644
--- a/svtools/source/graphic/provider.cxx
+++ b/svtools/source/graphic/provider.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ GraphicProvider::~GraphicProvider()
}
// ------------------------------------------------------------------------------
-
+
::rtl::OUString GraphicProvider::getImplementationName_Static()
throw()
{
@@ -91,15 +91,15 @@ uno::Sequence< ::rtl::OUString > GraphicProvider::getSupportedServiceNames_Stati
throw()
{
uno::Sequence< ::rtl::OUString > aSeq( 1 );
-
+
aSeq.getArray()[ 0 ] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.graphic.GraphicProvider" ) );
-
+
return aSeq;
}
// ------------------------------------------------------------------------------
-
-::rtl::OUString SAL_CALL GraphicProvider::getImplementationName()
+
+::rtl::OUString SAL_CALL GraphicProvider::getImplementationName()
throw( uno::RuntimeException )
{
return getImplementationName_Static();
@@ -107,11 +107,11 @@ uno::Sequence< ::rtl::OUString > GraphicProvider::getSupportedServiceNames_Stati
// ------------------------------------------------------------------------------
-sal_Bool SAL_CALL GraphicProvider::supportsService( const ::rtl::OUString& ServiceName )
+sal_Bool SAL_CALL GraphicProvider::supportsService( const ::rtl::OUString& ServiceName )
throw( uno::RuntimeException )
{
- uno::Sequence< ::rtl::OUString > aSNL( getSupportedServiceNames() );
- const ::rtl::OUString* pArray = aSNL.getConstArray();
+ uno::Sequence< ::rtl::OUString > aSNL( getSupportedServiceNames() );
+ const ::rtl::OUString* pArray = aSNL.getConstArray();
for( int i = 0; i < aSNL.getLength(); i++ )
if( pArray[i] == ServiceName )
@@ -122,7 +122,7 @@ sal_Bool SAL_CALL GraphicProvider::supportsService( const ::rtl::OUString& Servi
// ------------------------------------------------------------------------------
-uno::Sequence< ::rtl::OUString > SAL_CALL GraphicProvider::getSupportedServiceNames()
+uno::Sequence< ::rtl::OUString > SAL_CALL GraphicProvider::getSupportedServiceNames()
throw( uno::RuntimeException )
{
return getSupportedServiceNames_Static();
@@ -130,11 +130,11 @@ uno::Sequence< ::rtl::OUString > SAL_CALL GraphicProvider::getSupportedServiceNa
// ------------------------------------------------------------------------------
-uno::Sequence< uno::Type > SAL_CALL GraphicProvider::getTypes()
+uno::Sequence< uno::Type > SAL_CALL GraphicProvider::getTypes()
throw(uno::RuntimeException)
{
- uno::Sequence< uno::Type > aTypes( 3 );
- uno::Type* pTypes = aTypes.getArray();
+ uno::Sequence< uno::Type > aTypes( 3 );
+ uno::Type* pTypes = aTypes.getArray();
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo>*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XTypeProvider>*)0);
@@ -145,18 +145,18 @@ uno::Sequence< uno::Type > SAL_CALL GraphicProvider::getTypes()
// ------------------------------------------------------------------------------
-uno::Sequence< sal_Int8 > SAL_CALL GraphicProvider::getImplementationId()
+uno::Sequence< sal_Int8 > SAL_CALL GraphicProvider::getImplementationId()
throw(uno::RuntimeException)
{
SolarMutexGuard aGuard;
- static uno::Sequence< sal_Int8 > aId;
-
+ static uno::Sequence< sal_Int8 > aId;
+
if( aId.getLength() == 0 )
{
aId.realloc( 16 );
rtl_createUuid( reinterpret_cast< sal_uInt8* >( aId.getArray() ), 0, sal_True );
}
-
+
return aId;
}
@@ -164,14 +164,14 @@ uno::Sequence< sal_Int8 > SAL_CALL GraphicProvider::getImplementationId()
uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadGraphicObject( const ::rtl::OUString& rResourceURL ) const
{
- uno::Reference< ::graphic::XGraphic > xRet;
- if( rResourceURL.compareToAscii( UNO_NAME_GRAPHOBJ_URLPREFIX, RTL_CONSTASCII_LENGTH( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) == 0 )
+ uno::Reference< ::graphic::XGraphic > xRet;
+ if( rResourceURL.compareToAscii( UNO_NAME_GRAPHOBJ_URLPREFIX, RTL_CONSTASCII_LENGTH( UNO_NAME_GRAPHOBJ_URLPREFIX ) ) == 0 )
{
// graphic manager url
String aTmpStr( rResourceURL.copy( sizeof( UNO_NAME_GRAPHOBJ_URLPREFIX ) - 1 ) );
ByteString aUniqueID( aTmpStr, RTL_TEXTENCODING_UTF8 );
- GraphicObject aGrafObj( aUniqueID );
- // I don't call aGrafObj.GetXGraphic because it will call us back
+ GraphicObject aGrafObj( aUniqueID );
+ // I don't call aGrafObj.GetXGraphic because it will call us back
// into implLoadMemory ( with "private:memorygraphic" test )
::unographic::Graphic* pUnoGraphic = new ::unographic::Graphic;
pUnoGraphic->init( aGrafObj.GetGraphic() );
@@ -182,22 +182,22 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadGraphicObject( co
uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadMemory( const ::rtl::OUString& rResourceURL ) const
{
- uno::Reference< ::graphic::XGraphic > xRet;
- sal_Int32 nIndex = 0;
-
+ uno::Reference< ::graphic::XGraphic > xRet;
+ sal_Int32 nIndex = 0;
+
if( ( 0 == rResourceURL.getToken( 0, '/', nIndex ).compareToAscii( "private:memorygraphic" ) ) )
{
sal_Int64 nGraphicAddress = rResourceURL.getToken( 0, '/', nIndex ).toInt64();
-
+
if( nGraphicAddress )
{
::unographic::Graphic* pUnoGraphic = new ::unographic::Graphic;
-
+
pUnoGraphic->init( *reinterpret_cast< ::Graphic* >( nGraphicAddress ) );
xRet = pUnoGraphic;
}
}
-
+
return xRet;
}
@@ -205,8 +205,8 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadMemory( const ::r
uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadRepositoryImage( const ::rtl::OUString& rResourceURL ) const
{
- uno::Reference< ::graphic::XGraphic > xRet;
- sal_Int32 nIndex = 0;
+ uno::Reference< ::graphic::XGraphic > xRet;
+ sal_Int32 nIndex = 0;
if( ( 0 == rResourceURL.getToken( 0, '/', nIndex ).compareToAscii( "private:graphicrepository" ) ) )
{
@@ -226,8 +226,8 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadRepositoryImage(
uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadStandardImage( const ::rtl::OUString& rResourceURL ) const
{
- uno::Reference< ::graphic::XGraphic > xRet;
- sal_Int32 nIndex = 0;
+ uno::Reference< ::graphic::XGraphic > xRet;
+ sal_Int32 nIndex = 0;
if( ( 0 == rResourceURL.getToken( 0, '/', nIndex ).compareToAscii( "private:standardimage" ) ) )
{
@@ -262,9 +262,9 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadBitmap( const uno
SvMemoryStream aBmpStream( aBmpSeq.getArray(), aBmpSeq.getLength(), STREAM_READ );
Bitmap aBmp;
aBmpStream >> aBmp;
-
+
BitmapEx aBmpEx;
-
+
if( aMaskSeq.getLength() )
{
SvMemoryStream aMaskStream( aMaskSeq.getArray(), aMaskSeq.getLength(), STREAM_READ );
@@ -278,7 +278,7 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadBitmap( const uno
if( !aBmpEx.IsEmpty() )
{
::unographic::Graphic* pUnoGraphic = new ::unographic::Graphic;
-
+
pUnoGraphic->init( aBmpEx );
xRet = pUnoGraphic;
}
@@ -289,29 +289,29 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadBitmap( const uno
uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadResource( const ::rtl::OUString& rResourceURL ) const
{
- uno::Reference< ::graphic::XGraphic > xRet;
- sal_Int32 nIndex = 0;
-
+ uno::Reference< ::graphic::XGraphic > xRet;
+ sal_Int32 nIndex = 0;
+
if( ( 0 == rResourceURL.getToken( 0, '/', nIndex ).compareToAscii( "private:resource" ) ) )
{
ByteString aResMgrName( String( rResourceURL.getToken( 0, '/', nIndex ) ), RTL_TEXTENCODING_ASCII_US );
-
+
ResMgr* pResMgr = ResMgr::CreateResMgr( aResMgrName.GetBuffer(), Application::GetSettings().GetUILocale() );
-
+
if( pResMgr )
{
- const ::rtl::OUString aResourceType( rResourceURL.getToken( 0, '/', nIndex ) );
- const ResId aResId( rResourceURL.getToken( 0, '/', nIndex ).toInt32(), *pResMgr );
-
+ const ::rtl::OUString aResourceType( rResourceURL.getToken( 0, '/', nIndex ) );
+ const ResId aResId( rResourceURL.getToken( 0, '/', nIndex ).toInt32(), *pResMgr );
+
if( aResourceType.getLength() )
{
BitmapEx aBmpEx;
-
+
if( ( 0 == aResourceType.compareToAscii( "bitmap" ) ) ||
( 0 == aResourceType.compareToAscii( "bitmapex" ) ) )
{
aResId.SetRT( RSC_BITMAP );
-
+
if( pResMgr->IsAvailable( aResId ) )
{
aBmpEx = BitmapEx( aResId );
@@ -320,7 +320,7 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadResource( const :
else if( 0 == aResourceType.compareToAscii( "image" ) )
{
aResId.SetRT( RSC_IMAGE );
-
+
if( pResMgr->IsAvailable( aResId ) )
{
const Image aImage( aResId );
@@ -330,12 +330,12 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadResource( const :
else if( 0 == aResourceType.compareToAscii( "imagelist" ) )
{
aResId.SetRT( RSC_IMAGELIST );
-
+
if( pResMgr->IsAvailable( aResId ) )
{
const ImageList aImageList( aResId );
- sal_Int32 nImageId = ( nIndex > -1 ) ? rResourceURL.getToken( 0, '/', nIndex ).toInt32() : 0;
-
+ sal_Int32 nImageId = ( nIndex > -1 ) ? rResourceURL.getToken( 0, '/', nIndex ).toInt32() : 0;
+
if( 0 < nImageId )
{
const Image aImage( aImageList.GetImage( sal::static_int_cast< USHORT >(nImageId) ) );
@@ -347,20 +347,20 @@ uno::Reference< ::graphic::XGraphic > GraphicProvider::implLoadResource( const :
}
}
}
-
+
if( !aBmpEx.IsEmpty() )
{
::unographic::Graphic* pUnoGraphic = new ::unographic::Graphic;
-
+
pUnoGraphic->init( aBmpEx );
xRet = pUnoGraphic;
}
}
-
+
delete pResMgr;
}
}
-
+
return xRet;
}
@@ -377,9 +377,9 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc
for( sal_Int32 i = 0; ( i < rMediaProperties.getLength() ) && !xRet.is(); ++i )
{
- const ::rtl::OUString aName( rMediaProperties[ i ].Name );
- const uno::Any aValue( rMediaProperties[ i ].Value );
-
+ const ::rtl::OUString aName( rMediaProperties[ i ].Name );
+ const uno::Any aValue( rMediaProperties[ i ].Value );
+
if( COMPARE_EQUAL == aName.compareToAscii( "URL" ) )
{
aValue >>= aURL;
@@ -413,7 +413,7 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc
if ( !xGraphic.is() )
xGraphic = implLoadStandardImage( aURL );
-
+
if( xGraphic.is() )
{
xRet = uno::Reference< beans::XPropertySet >( xGraphic, uno::UNO_QUERY );
@@ -436,24 +436,24 @@ uno::Reference< beans::XPropertySet > SAL_CALL GraphicProvider::queryGraphicDesc
}
// ------------------------------------------------------------------------------
-
+
uno::Reference< ::graphic::XGraphic > SAL_CALL GraphicProvider::queryGraphic( const uno::Sequence< ::beans::PropertyValue >& rMediaProperties )
throw ( io::IOException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
- uno::Reference< ::graphic::XGraphic > xRet;
- String aPath;
- SvStream* pIStm = NULL;
+ uno::Reference< ::graphic::XGraphic > xRet;
+ String aPath;
+ SvStream* pIStm = NULL;
uno::Reference< io::XInputStream > xIStm;
uno::Reference< awt::XBitmap >xBtm;
for( sal_Int32 i = 0; ( i < rMediaProperties.getLength() ) && !pIStm && !xRet.is(); ++i )
{
- const ::rtl::OUString aName( rMediaProperties[ i ].Name );
- const uno::Any aValue( rMediaProperties[ i ].Value );
-
+ const ::rtl::OUString aName( rMediaProperties[ i ].Name );
+ const uno::Any aValue( rMediaProperties[ i ].Value );
+
if( COMPARE_EQUAL == aName.compareToAscii( "URL" ) )
- {
+ {
::rtl::OUString aURL;
aValue >>= aURL;
aPath = aURL;
@@ -478,10 +478,10 @@ uno::Reference< ::graphic::XGraphic > SAL_CALL GraphicProvider::queryGraphic( co
if( !xRet.is() )
xRet = implLoadGraphicObject( aPath );
-
+
if( !xRet.is() )
xRet = implLoadResource( aPath );
-
+
if ( !xRet.is() )
xRet = implLoadRepositoryImage( aPath );
@@ -499,24 +499,24 @@ uno::Reference< ::graphic::XGraphic > SAL_CALL GraphicProvider::queryGraphic( co
if( pIStm )
{
::GraphicFilter* pFilter = ::GraphicFilter::GetGraphicFilter();
-
+
if( pFilter )
{
::Graphic aVCLGraphic;
-
- if( ( pFilter->ImportGraphic( aVCLGraphic, aPath, *pIStm ) == GRFILTER_OK ) &&
+
+ if( ( pFilter->ImportGraphic( aVCLGraphic, aPath, *pIStm ) == GRFILTER_OK ) &&
( aVCLGraphic.GetType() != GRAPHIC_NONE ) )
{
::unographic::Graphic* pUnoGraphic = new ::unographic::Graphic;
-
+
pUnoGraphic->init( aVCLGraphic );
xRet = pUnoGraphic;
}
}
-
+
delete pIStm;
}
-
+
return xRet;
}
@@ -558,7 +558,7 @@ void ImplApplyBitmapScaling( ::Graphic& rGraphic, sal_Int32 nPixelWidth, sal_Int
{
BitmapEx aBmpEx( rGraphic.GetBitmapEx() );
MapMode aPrefMapMode( aBmpEx.GetPrefMapMode() );
- Size aPrefSize( aBmpEx.GetPrefSize() );
+ Size aPrefSize( aBmpEx.GetPrefSize() );
aBmpEx.Scale( Size( nPixelWidth, nPixelHeight ) );
aBmpEx.SetPrefMapMode( aPrefMapMode );
aBmpEx.SetPrefSize( aPrefSize );
@@ -582,7 +582,7 @@ void ImplApplyBitmapResolution( ::Graphic& rGraphic, sal_Int32 nImageResolution,
sal_Int32 nDestPixelHeight = nSourcePixelHeight;
// check, if the bitmap DPI exceeds the maximum DPI
- if( fSourceDPIX > fImageResolution )
+ if( fSourceDPIX > fImageResolution )
{
nDestPixelWidth = static_cast<sal_Int32>(( fSourcePixelWidth * fImageResolution ) / fSourceDPIX);
if ( !nDestPixelWidth || ( nDestPixelWidth > nSourcePixelWidth ) )
@@ -615,8 +615,8 @@ void ImplApplyFilterData( ::Graphic& rGraphic, uno::Sequence< beans::PropertyVal
for( sal_Int32 i = 0; i < rFilterData.getLength(); ++i )
{
- const ::rtl::OUString aName( rFilterData[ i ].Name );
- const uno::Any aValue( rFilterData[ i ].Value );
+ const ::rtl::OUString aName( rFilterData[ i ].Name );
+ const uno::Any aValue( rFilterData[ i ].Value );
if( COMPARE_EQUAL == aName.compareToAscii( "PixelWidth" ) )
aValue >>= nPixelWidth;
@@ -733,23 +733,23 @@ void ImplApplyFilterData( ::Graphic& rGraphic, uno::Sequence< beans::PropertyVal
}
// ------------------------------------------------------------------------------
-
-void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XGraphic >& rxGraphic, const uno::Sequence< beans::PropertyValue >& rMediaProperties )
+
+void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XGraphic >& rxGraphic, const uno::Sequence< beans::PropertyValue >& rMediaProperties )
throw ( io::IOException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException)
{
- SvStream* pOStm = NULL;
- String aPath;
- sal_Int32 i;
-
+ SvStream* pOStm = NULL;
+ String aPath;
+ sal_Int32 i;
+
for( i = 0; ( i < rMediaProperties.getLength() ) && !pOStm; ++i )
{
- const ::rtl::OUString aName( rMediaProperties[ i ].Name );
- const uno::Any aValue( rMediaProperties[ i ].Value );
-
+ const ::rtl::OUString aName( rMediaProperties[ i ].Name );
+ const uno::Any aValue( rMediaProperties[ i ].Value );
+
if( COMPARE_EQUAL == aName.compareToAscii( "URL" ) )
{
::rtl::OUString aURL;
-
+
aValue >>= aURL;
pOStm = ::utl::UcbStreamHelper::CreateStream( aURL, STREAM_WRITE | STREAM_TRUNC );
aPath = aURL;
@@ -757,9 +757,9 @@ void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XG
else if( COMPARE_EQUAL == aName.compareToAscii( "OutputStream" ) )
{
uno::Reference< io::XStream > xOStm;
-
+
aValue >>= xOStm;
-
+
if( xOStm.is() )
pOStm = ::utl::UcbStreamHelper::CreateStream( xOStm );
}
@@ -767,24 +767,24 @@ void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XG
if( pOStm )
{
- uno::Sequence< beans::PropertyValue > aFilterDataSeq;
- const char* pFilterShortName = NULL;
-
+ uno::Sequence< beans::PropertyValue > aFilterDataSeq;
+ const char* pFilterShortName = NULL;
+
for( i = 0; i < rMediaProperties.getLength(); ++i )
{
- const ::rtl::OUString aName( rMediaProperties[ i ].Name );
- const uno::Any aValue( rMediaProperties[ i ].Value );
-
+ const ::rtl::OUString aName( rMediaProperties[ i ].Name );
+ const uno::Any aValue( rMediaProperties[ i ].Value );
+
if( COMPARE_EQUAL == aName.compareToAscii( "FilterData" ) )
{
aValue >>= aFilterDataSeq;
}
else if( COMPARE_EQUAL == aName.compareToAscii( "MimeType" ) )
{
- ::rtl::OUString aMimeType;
-
+ ::rtl::OUString aMimeType;
+
aValue >>= aMimeType;
-
+
if( COMPARE_EQUAL == aMimeType.compareToAscii( MIMETYPE_BMP ) )
pFilterShortName = "bmp";
else if( COMPARE_EQUAL == aMimeType.compareToAscii( MIMETYPE_EPS ) )
@@ -823,16 +823,16 @@ void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XG
pFilterShortName = MIMETYPE_VCLGRAPHIC;
}
}
-
+
if( pFilterShortName )
{
::GraphicFilter* pFilter = ::GraphicFilter::GetGraphicFilter();
-
+
if( pFilter )
{
- const uno::Reference< XInterface > xIFace( rxGraphic, uno::UNO_QUERY );
- const ::Graphic* pGraphic = ::unographic::Graphic::getImplementation( xIFace );
-
+ const uno::Reference< XInterface > xIFace( rxGraphic, uno::UNO_QUERY );
+ const ::Graphic* pGraphic = ::unographic::Graphic::getImplementation( xIFace );
+
if( pGraphic && ( pGraphic->GetType() != GRAPHIC_NONE ) )
{
::Graphic aGraphic( *pGraphic );
@@ -846,7 +846,7 @@ void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XG
aMemStrm << aGraphic;
else
{
- pFilter->ExportGraphic( aGraphic, aPath, aMemStrm,
+ pFilter->ExportGraphic( aGraphic, aPath, aMemStrm,
pFilter->GetExportFormatNumberForShortName( ::rtl::OUString::createFromAscii( pFilterShortName ) ),
( aFilterDataSeq.getLength() ? &aFilterDataSeq : NULL ) );
}
diff --git a/svtools/source/graphic/renderer.cxx b/svtools/source/graphic/renderer.cxx
index d955fca30cac..3ac324892d8a 100644
--- a/svtools/source/graphic/renderer.cxx
+++ b/svtools/source/graphic/renderer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,9 +42,9 @@
#include "graphic.hxx"
#include "renderer.hxx"
-#define UNOGRAPHIC_DEVICE 1
-#define UNOGRAPHIC_DESTINATIONRECT 2
-#define UNOGRAPHIC_RENDERDATA 3
+#define UNOGRAPHIC_DEVICE 1
+#define UNOGRAPHIC_DESTINATIONRECT 2
+#define UNOGRAPHIC_RENDERDATA 3
using namespace ::com::sun::star;
@@ -59,7 +59,7 @@ uno::Reference< uno::XInterface > SAL_CALL GraphicRendererVCL_CreateInstance( co
return SAL_STATIC_CAST( ::cppu::OWeakObject*, new GraphicRendererVCL );
}
-
+
GraphicRendererVCL::GraphicRendererVCL() :
::comphelper::PropertySetHelper( createPropertySetInfo() ),
mpOutDev( NULL )
@@ -75,7 +75,7 @@ GraphicRendererVCL::~GraphicRendererVCL()
// ------------------------------------------------------------------------------
-::rtl::OUString GraphicRendererVCL::getImplementationName_Static()
+::rtl::OUString GraphicRendererVCL::getImplementationName_Static()
throw()
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.graphic.GraphicRendererVCL" ) );
@@ -83,19 +83,19 @@ GraphicRendererVCL::~GraphicRendererVCL()
// ------------------------------------------------------------------------------
-uno::Sequence< ::rtl::OUString > GraphicRendererVCL::getSupportedServiceNames_Static()
- throw( )
+uno::Sequence< ::rtl::OUString > GraphicRendererVCL::getSupportedServiceNames_Static()
+ throw( )
{
uno::Sequence< ::rtl::OUString > aSeq( 1 );
-
+
aSeq.getArray()[ 0 ] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.graphic.GraphicRendererVCL" ) );
-
+
return aSeq;
}
// ------------------------------------------------------------------------------
-uno::Any SAL_CALL GraphicRendererVCL::queryAggregation( const uno::Type & rType )
+uno::Any SAL_CALL GraphicRendererVCL::queryAggregation( const uno::Type & rType )
throw( uno::RuntimeException )
{
uno::Any aAny;
@@ -120,7 +120,7 @@ uno::Any SAL_CALL GraphicRendererVCL::queryAggregation( const uno::Type & rType
// ------------------------------------------------------------------------------
-uno::Any SAL_CALL GraphicRendererVCL::queryInterface( const uno::Type & rType )
+uno::Any SAL_CALL GraphicRendererVCL::queryInterface( const uno::Type & rType )
throw( uno::RuntimeException )
{
return OWeakAggObject::queryInterface( rType );
@@ -128,7 +128,7 @@ uno::Any SAL_CALL GraphicRendererVCL::queryInterface( const uno::Type & rType )
// ------------------------------------------------------------------------------
-void SAL_CALL GraphicRendererVCL::acquire()
+void SAL_CALL GraphicRendererVCL::acquire()
throw()
{
OWeakAggObject::acquire();
@@ -144,7 +144,7 @@ void SAL_CALL GraphicRendererVCL::release()
// ------------------------------------------------------------------------------
-::rtl::OUString SAL_CALL GraphicRendererVCL::getImplementationName()
+::rtl::OUString SAL_CALL GraphicRendererVCL::getImplementationName()
throw( uno::RuntimeException )
{
return getImplementationName_Static();
@@ -155,8 +155,8 @@ void SAL_CALL GraphicRendererVCL::release()
sal_Bool SAL_CALL GraphicRendererVCL::supportsService( const rtl::OUString& ServiceName )
throw( uno::RuntimeException )
{
- uno::Sequence< ::rtl::OUString > aSNL( getSupportedServiceNames() );
- const ::rtl::OUString* pArray = aSNL.getConstArray();
+ uno::Sequence< ::rtl::OUString > aSNL( getSupportedServiceNames() );
+ const ::rtl::OUString* pArray = aSNL.getConstArray();
for( sal_Int32 i = 0; i < aSNL.getLength(); i++ )
if( pArray[i] == ServiceName )
@@ -178,8 +178,8 @@ uno::Sequence< rtl::OUString > SAL_CALL GraphicRendererVCL::getSupportedServiceN
uno::Sequence< uno::Type > SAL_CALL GraphicRendererVCL::getTypes()
throw( uno::RuntimeException )
{
- uno::Sequence< uno::Type > aTypes( 7 );
- uno::Type* pTypes = aTypes.getArray();
+ uno::Sequence< uno::Type > aTypes( 7 );
+ uno::Type* pTypes = aTypes.getArray();
*pTypes++ = ::getCppuType((const uno::Reference< uno::XAggregation>*)0);
*pTypes++ = ::getCppuType((const uno::Reference< lang::XServiceInfo>*)0);
@@ -191,21 +191,21 @@ uno::Sequence< uno::Type > SAL_CALL GraphicRendererVCL::getTypes()
return aTypes;
}
-
+
// ------------------------------------------------------------------------------
uno::Sequence< sal_Int8 > SAL_CALL GraphicRendererVCL::getImplementationId()
throw( uno::RuntimeException )
{
SolarMutexGuard aGuard;
- static uno::Sequence< sal_Int8 > aId;
-
+ static uno::Sequence< sal_Int8 > aId;
+
if( aId.getLength() == 0 )
{
aId.realloc( 16 );
rtl_createUuid( reinterpret_cast< sal_uInt8* >( aId.getArray() ), 0, sal_True );
}
-
+
return aId;
}
@@ -214,14 +214,14 @@ uno::Sequence< sal_Int8 > SAL_CALL GraphicRendererVCL::getImplementationId()
::comphelper::PropertySetInfo* GraphicRendererVCL::createPropertySetInfo()
{
SolarMutexGuard aGuard;
- ::comphelper::PropertySetInfo* pRet = new ::comphelper::PropertySetInfo();
+ ::comphelper::PropertySetInfo* pRet = new ::comphelper::PropertySetInfo();
static ::comphelper::PropertyMapEntry aEntries[] =
{
{ MAP_CHAR_LEN( "Device" ), UNOGRAPHIC_DEVICE, &::getCppuType( (const uno::Any*)(0)), 0, 0 },
{ MAP_CHAR_LEN( "DestinationRect" ), UNOGRAPHIC_DESTINATIONRECT, &::getCppuType( (const awt::Rectangle*)(0)), 0, 0 },
- { MAP_CHAR_LEN( "RenderData" ), UNOGRAPHIC_RENDERDATA, &::getCppuType( (const uno::Any*)(0)), 0, 0 },
-
+ { MAP_CHAR_LEN( "RenderData" ), UNOGRAPHIC_RENDERDATA, &::getCppuType( (const uno::Any*)(0)), 0, 0 },
+
{ 0,0,0,0,0,0 }
};
@@ -234,8 +234,8 @@ uno::Sequence< sal_Int8 > SAL_CALL GraphicRendererVCL::getImplementationId()
// ------------------------------------------------------------------------------
void GraphicRendererVCL::_setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const uno::Any* pValues )
- throw( beans::UnknownPropertyException,
- beans::PropertyVetoException,
+ throw( beans::UnknownPropertyException,
+ beans::PropertyVetoException,
lang::IllegalArgumentException,
lang::WrappedTargetException )
{
@@ -247,8 +247,8 @@ void GraphicRendererVCL::_setPropertyValues( const comphelper::PropertyMapEntry*
{
case( UNOGRAPHIC_DEVICE ):
{
- uno::Reference< awt::XDevice > xDevice;
-
+ uno::Reference< awt::XDevice > xDevice;
+
if( ( *pValues >>= xDevice ) && xDevice.is() )
{
mxDevice = xDevice;
@@ -265,27 +265,27 @@ void GraphicRendererVCL::_setPropertyValues( const comphelper::PropertyMapEntry*
case( UNOGRAPHIC_DESTINATIONRECT ):
{
awt::Rectangle aAWTRect;
-
+
if( *pValues >>= aAWTRect )
{
- maDestRect = Rectangle( Point( aAWTRect.X, aAWTRect.Y ),
+ maDestRect = Rectangle( Point( aAWTRect.X, aAWTRect.Y ),
Size( aAWTRect.Width, aAWTRect.Height ) );
}
}
break;
-
+
case( UNOGRAPHIC_RENDERDATA ):
{
*pValues >>= maRenderData;
}
break;
}
-
+
++ppEntries;
++pValues;
}
}
-
+
// ------------------------------------------------------------------------------
void GraphicRendererVCL::_getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, uno::Any* pValues )
@@ -306,35 +306,35 @@ void GraphicRendererVCL::_getPropertyValues( const comphelper::PropertyMapEntry*
case( UNOGRAPHIC_DESTINATIONRECT ):
{
- const awt::Rectangle aAWTRect( maDestRect.Left(), maDestRect.Top(),
+ const awt::Rectangle aAWTRect( maDestRect.Left(), maDestRect.Top(),
maDestRect.GetWidth(), maDestRect.GetHeight() );
-
+
*pValues <<= aAWTRect;
}
break;
-
+
case( UNOGRAPHIC_RENDERDATA ):
{
*pValues <<= maRenderData;
}
break;
}
-
+
++ppEntries;
++pValues;
}
}
// ------------------------------------------------------------------------------
-
+
void SAL_CALL GraphicRendererVCL::render( const uno::Reference< graphic::XGraphic >& rxGraphic )
throw (uno::RuntimeException)
{
if( mpOutDev && mxDevice.is() && rxGraphic.is() )
{
- const uno::Reference< XInterface > xIFace( rxGraphic, uno::UNO_QUERY );
- const ::Graphic* pGraphic = ::unographic::Graphic::getImplementation( xIFace );
-
+ const uno::Reference< XInterface > xIFace( rxGraphic, uno::UNO_QUERY );
+ const ::Graphic* pGraphic = ::unographic::Graphic::getImplementation( xIFace );
+
if( pGraphic )
{
GraphicObject aGraphicObject( *pGraphic );
diff --git a/svtools/source/graphic/transformer.cxx b/svtools/source/graphic/transformer.cxx
index 3a0d3c8e2fd4..226fd3afcc2d 100644
--- a/svtools/source/graphic/transformer.cxx
+++ b/svtools/source/graphic/transformer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@ void setAlpha( Bitmap& rBitmap, AlphaMask& rAlpha, sal_Int32 nColorFrom, sal_Int
}
// XGraphicTransformer
-uno::Reference< graphic::XGraphic > SAL_CALL GraphicTransformer::colorChange(
+uno::Reference< graphic::XGraphic > SAL_CALL GraphicTransformer::colorChange(
const uno::Reference< graphic::XGraphic >& rxGraphic, sal_Int32 nColorFrom, sal_Int8 nTolerance, sal_Int32 nColorTo, sal_Int8 nAlphaTo )
throw ( lang::IllegalArgumentException, uno::RuntimeException)
{
@@ -103,8 +103,8 @@ uno::Reference< graphic::XGraphic > SAL_CALL GraphicTransformer::colorChange(
if ( aGraphic.GetType() == GRAPHIC_BITMAP )
{
- BitmapEx aBitmapEx( aGraphic.GetBitmapEx() );
- Bitmap aBitmap( aBitmapEx.GetBitmap() );
+ BitmapEx aBitmapEx( aGraphic.GetBitmapEx() );
+ Bitmap aBitmap( aBitmapEx.GetBitmap() );
if ( aBitmapEx.IsAlpha() )
{
diff --git a/svtools/source/graphic/transformer.hxx b/svtools/source/graphic/transformer.hxx
index 0ee340c40631..d109be98b5e8 100644
--- a/svtools/source/graphic/transformer.hxx
+++ b/svtools/source/graphic/transformer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,10 +26,10 @@
*
************************************************************************/
-#ifndef _GOODIES_GRAPHICTRANSFORMER_HXX
-#define _GOODIES_GRAPHICTRANSFORMER_HXX
+#ifndef _GOODIES_GRAPHICTRANSFORMER_HXX
+#define _GOODIES_GRAPHICTRANSFORMER_HXX
-#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/graphic/XGraphicTransformer.hpp>
@@ -50,17 +50,17 @@ class GraphicTransformer : public GraphicTransformer_UnoImplHelper1
GraphicTransformer();
~GraphicTransformer();
-
+
// XGraphicTransformer
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > SAL_CALL colorChange(
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > SAL_CALL colorChange(
const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& rGraphic,
sal_Int32 nColorFrom, sal_Int8 nTolerance, sal_Int32 nColorTo, sal_Int8 nAlphaTo )
throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
-
+
};
}
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/hatchwindow/documentcloser.cxx b/svtools/source/hatchwindow/documentcloser.cxx
index de44feea6f18..1586041ac08e 100644
--- a/svtools/source/hatchwindow/documentcloser.cxx
+++ b/svtools/source/hatchwindow/documentcloser.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -212,7 +212,7 @@ void SAL_CALL ODocumentCloser::initialize( const uno::Sequence< uno::Any >& aArg
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
-
+
if ( !m_refCount )
throw uno::RuntimeException(); // the object must be refcounted already!
diff --git a/svtools/source/hatchwindow/documentcloser.hxx b/svtools/source/hatchwindow/documentcloser.hxx
index 3b278e2e91ee..9cf7751d2f80 100644
--- a/svtools/source/hatchwindow/documentcloser.hxx
+++ b/svtools/source/hatchwindow/documentcloser.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ class ODocumentCloser : public ::cppu::WeakImplHelper3< ::com::sun::star::lang::
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners
-
+
sal_Bool m_bDisposed;
sal_Bool m_bInitialized;
@@ -68,7 +68,7 @@ public:
static ::rtl::OUString SAL_CALL impl_staticGetImplementationName();
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
- impl_staticCreateSelfInstance(
+ impl_staticCreateSelfInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager );
// XComponent
diff --git a/svtools/source/hatchwindow/hatchwindow.cxx b/svtools/source/hatchwindow/hatchwindow.cxx
index 1651eb2b16c3..bd938c4b32f3 100644
--- a/svtools/source/hatchwindow/hatchwindow.cxx
+++ b/svtools/source/hatchwindow/hatchwindow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -118,7 +118,7 @@ uno::Any SAL_CALL VCLXHatchWindow::queryInterface( const uno::Type & rType )
throw( uno::RuntimeException )
{
// Attention:
- // Don't use mutex or guard in this method!!! Is a method of XInterface.
+ // Don't use mutex or guard in this method!!! Is a method of XInterface.
uno::Any aReturn( ::cppu::queryInterface( rType,
static_cast< embed::XHatchWindow* >( this ) ) );
diff --git a/svtools/source/hatchwindow/hatchwindow.hxx b/svtools/source/hatchwindow/hatchwindow.hxx
index 0ece4e6acb64..d4eca24f926f 100644
--- a/svtools/source/hatchwindow/hatchwindow.hxx
+++ b/svtools/source/hatchwindow/hatchwindow.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/hatchwindow/hatchwindowfactory.cxx b/svtools/source/hatchwindow/hatchwindowfactory.cxx
index c5076e8984c3..2441fda96bf3 100644
--- a/svtools/source/hatchwindow/hatchwindowfactory.cxx
+++ b/svtools/source/hatchwindow/hatchwindowfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -125,7 +125,7 @@ SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo (
// OHatchWindowFactory registration
xNewKey = xRegistryKey->createKey (
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
OHatchWindowFactory::impl_staticGetImplementationName() +
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) );
@@ -138,7 +138,7 @@ SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo (
// ODocumentCloser registration
xNewKey = xRegistryKey->createKey (
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
ODocumentCloser::impl_staticGetImplementationName() +
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) );
diff --git a/svtools/source/hatchwindow/hatchwindowfactory.hxx b/svtools/source/hatchwindow/hatchwindowfactory.hxx
index b7848503d2dc..cd83c89c1353 100644
--- a/svtools/source/hatchwindow/hatchwindowfactory.hxx
+++ b/svtools/source/hatchwindow/hatchwindowfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ public:
static ::rtl::OUString SAL_CALL impl_staticGetImplementationName();
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
- impl_staticCreateSelfInstance(
+ impl_staticCreateSelfInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceManager );
diff --git a/svtools/source/hatchwindow/ipwin.cxx b/svtools/source/hatchwindow/ipwin.cxx
index 4cf4f9dcf741..d94b21b38d7a 100644
--- a/svtools/source/hatchwindow/ipwin.cxx
+++ b/svtools/source/hatchwindow/ipwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/hatchwindow/ipwin.hxx b/svtools/source/hatchwindow/ipwin.hxx
index cbe91e7ed4d9..255195a03fdb 100644
--- a/svtools/source/hatchwindow/ipwin.hxx
+++ b/svtools/source/hatchwindow/ipwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,11 +41,11 @@ class SvResizeHelper
Rectangle aOuter;
short nGrab; // -1 kein Grab, 0 - 7, 8 = Move, siehe FillHandle...
Point aSelPos;
- BOOL bResizeable;
+ BOOL bResizeable;
public:
SvResizeHelper();
- void SetResizeable( BOOL b ) { bResizeable = b; }
+ void SetResizeable( BOOL b ) { bResizeable = b; }
short GetGrab() const { return nGrab; }
void SetBorderPixel( const Size & rBorderP )
{ aBorder = rBorderP; }
@@ -71,7 +71,7 @@ public:
BOOL SelectBegin( Window *, const Point & rPos );
short SelectMove( Window * pWin, const Point & rPos );
Point GetTrackPosPixel( const Rectangle & rRect ) const;
- Rectangle GetTrackRectPixel( const Point & rTrackPos ) const;
+ Rectangle GetTrackRectPixel( const Point & rTrackPos ) const;
void ValidateRect( Rectangle & rValidate ) const;
BOOL SelectRelease( Window *, const Point & rPos, Rectangle & rOutPosSize );
void Release( Window * pWin );
@@ -103,7 +103,7 @@ public:
virtual long Notify( NotifyEvent& rNEvt );
virtual long PreNotify( NotifyEvent& rNEvt );
- void QueryObjAreaPixel( Rectangle & );
+ void QueryObjAreaPixel( Rectangle & );
void RequestObjAreaPixel( const Rectangle & );
};
diff --git a/svtools/source/inc/accessibletableimp.hxx b/svtools/source/inc/accessibletableimp.hxx
index ffeba9b1deef..45e3ac6faa37 100644
--- a/svtools/source/inc/accessibletableimp.hxx
+++ b/svtools/source/inc/accessibletableimp.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ namespace svt { namespace table
AccessibleTableControl_Impl() : m_pAccessible(NULL)
{
}
-
+
/// @see AccessibleTableControl::getTableRowHeader
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
diff --git a/svtools/source/inc/configitems/accessibilityoptions_const.hxx b/svtools/source/inc/configitems/accessibilityoptions_const.hxx
index 184e5a9850f0..b52ee6e9106a 100644
--- a/svtools/source/inc/configitems/accessibilityoptions_const.hxx
+++ b/svtools/source/inc/configitems/accessibilityoptions_const.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/inc/filectrl.hrc b/svtools/source/inc/filectrl.hrc
index 1707e306e1b0..acaf450a2126 100644
--- a/svtools/source/inc/filectrl.hrc
+++ b/svtools/source/inc/filectrl.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,7 +28,7 @@
#ifndef _SV_FILECTRL_HRC
#define _SV_FILECTRL_HRC
-#define STR_FILECTRL_BUTTONTEXT 333 // ID-Range?!
+#define STR_FILECTRL_BUTTONTEXT 333 // ID-Range?!
#endif
diff --git a/svtools/source/inc/gifread.hxx b/svtools/source/inc/gifread.hxx
index ee42c86b23de..64231b56211c 100644
--- a/svtools/source/inc/gifread.hxx
+++ b/svtools/source/inc/gifread.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,65 +69,65 @@ class SvStream;
class GIFReader : public GraphicReader
{
- Graphic aImGraphic;
- Animation aAnimation;
- Bitmap aBmp8;
- Bitmap aBmp1;
- BitmapPalette aGPalette;
- BitmapPalette aLPalette;
- SvStream& rIStm;
- void* pCallerData;
- HPBYTE pSrcBuf;
- GIFLZWDecompressor* pDecomp;
- BitmapWriteAccess* pAcc8;
- BitmapWriteAccess* pAcc1;
- long nYAcc;
- long nLastPos;
- sal_uInt32 nLogWidth100;
- sal_uInt32 nLogHeight100;
- USHORT nTimer;
- USHORT nGlobalWidth; // maximale Bildbreite aus Header
- USHORT nGlobalHeight; // maximale Bildhoehe aus Header
- USHORT nImageWidth; // maximale Bildbreite aus Header
- USHORT nImageHeight; // maximale Bildhoehe aus Header
- USHORT nImagePosX;
- USHORT nImagePosY;
- USHORT nImageX; // maximale Bildbreite aus Header
- USHORT nImageY; // maximale Bildhoehe aus Header
- USHORT nLastImageY;
- USHORT nLastInterCount;
- USHORT nLoops;
- GIFAction eActAction;
- BOOL bStatus;
- BOOL bGCTransparent; // Ob das Bild Transparent ist, wenn ja:
- BOOL bInterlaced;
- BOOL bOverreadBlock;
- BOOL bImGraphicReady;
- BOOL bGlobalPalette;
- BYTE nBackgroundColor; // Hintergrundfarbe
- BYTE nGCTransparentIndex; // Pixel von diesem Index sind durchsichtig
- BYTE nGCDisposalMethod; // 'Disposal Method' (siehe GIF-Doku)
- BYTE cTransIndex1;
- BYTE cNonTransIndex1;
-
- void ReadPaletteEntries( BitmapPalette* pPal, ULONG nCount );
- void ClearImageExtensions();
- BOOL CreateBitmaps( long nWidth, long nHeight, BitmapPalette* pPal, BOOL bWatchForBackgroundColor );
- BOOL ReadGlobalHeader();
- BOOL ReadExtension();
- BOOL ReadLocalHeader();
- ULONG ReadNextBlock();
- void FillImages( HPBYTE pBytes, ULONG nCount );
- void CreateNewBitmaps();
- BOOL ProcessGIF();
+ Graphic aImGraphic;
+ Animation aAnimation;
+ Bitmap aBmp8;
+ Bitmap aBmp1;
+ BitmapPalette aGPalette;
+ BitmapPalette aLPalette;
+ SvStream& rIStm;
+ void* pCallerData;
+ HPBYTE pSrcBuf;
+ GIFLZWDecompressor* pDecomp;
+ BitmapWriteAccess* pAcc8;
+ BitmapWriteAccess* pAcc1;
+ long nYAcc;
+ long nLastPos;
+ sal_uInt32 nLogWidth100;
+ sal_uInt32 nLogHeight100;
+ USHORT nTimer;
+ USHORT nGlobalWidth; // maximale Bildbreite aus Header
+ USHORT nGlobalHeight; // maximale Bildhoehe aus Header
+ USHORT nImageWidth; // maximale Bildbreite aus Header
+ USHORT nImageHeight; // maximale Bildhoehe aus Header
+ USHORT nImagePosX;
+ USHORT nImagePosY;
+ USHORT nImageX; // maximale Bildbreite aus Header
+ USHORT nImageY; // maximale Bildhoehe aus Header
+ USHORT nLastImageY;
+ USHORT nLastInterCount;
+ USHORT nLoops;
+ GIFAction eActAction;
+ BOOL bStatus;
+ BOOL bGCTransparent; // Ob das Bild Transparent ist, wenn ja:
+ BOOL bInterlaced;
+ BOOL bOverreadBlock;
+ BOOL bImGraphicReady;
+ BOOL bGlobalPalette;
+ BYTE nBackgroundColor; // Hintergrundfarbe
+ BYTE nGCTransparentIndex; // Pixel von diesem Index sind durchsichtig
+ BYTE nGCDisposalMethod; // 'Disposal Method' (siehe GIF-Doku)
+ BYTE cTransIndex1;
+ BYTE cNonTransIndex1;
+
+ void ReadPaletteEntries( BitmapPalette* pPal, ULONG nCount );
+ void ClearImageExtensions();
+ BOOL CreateBitmaps( long nWidth, long nHeight, BitmapPalette* pPal, BOOL bWatchForBackgroundColor );
+ BOOL ReadGlobalHeader();
+ BOOL ReadExtension();
+ BOOL ReadLocalHeader();
+ ULONG ReadNextBlock();
+ void FillImages( HPBYTE pBytes, ULONG nCount );
+ void CreateNewBitmaps();
+ BOOL ProcessGIF();
public:
- ReadState ReadGIF( Graphic& rGraphic );
- const Graphic& GetIntermediateGraphic();
+ ReadState ReadGIF( Graphic& rGraphic );
+ const Graphic& GetIntermediateGraphic();
GIFReader( SvStream& rStm );
- virtual ~GIFReader();
+ virtual ~GIFReader();
};
#endif // _GIFPRIVATE
diff --git a/svtools/source/inc/gradwrap.hxx b/svtools/source/inc/gradwrap.hxx
index 35b04e833475..b21b9b8c78e8 100644
--- a/svtools/source/inc/gradwrap.hxx
+++ b/svtools/source/inc/gradwrap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,30 +32,30 @@
/******************************************************************************
|*
-|* class GradientWrapper
+|* class GradientWrapper
|*
-|* Ersterstellung: KA 24.11.95
-|* letzte Aenderung: KA 24.11.95
+|* Ersterstellung: KA 24.11.95
+|* letzte Aenderung: KA 24.11.95
|*
-|* Zeck: dient beim MetaFile-Export dazu, die eigentliche Berechungs-
-|* funktionalitaet zu kapseln. Das Schreiben der Records fuer
-|* die unterschiedlichen File-Formate geschieht ueber LinkHandler.
+|* Zeck: dient beim MetaFile-Export dazu, die eigentliche Berechungs-
+|* funktionalitaet zu kapseln. Das Schreiben der Records fuer
+|* die unterschiedlichen File-Formate geschieht ueber LinkHandler.
|*
-|* Klassen, die diesen Wrapper benutzen, muessen drei Linkhandler
-|* zur Verfuegung stellen, die im Ctor uebergeben werden:
+|* Klassen, die diesen Wrapper benutzen, muessen drei Linkhandler
+|* zur Verfuegung stellen, die im Ctor uebergeben werden:
|*
-|* 1. Linkhandler zum Schreiben eines Records fuer Polygonausgabe
-|* 2. Linkhandler zum Schreiben eines Records fuer PolyPolygonausgabe
-|* 3. Linkhandler zum Schreiben eines Records fuer Setzen der Brush
+|* 1. Linkhandler zum Schreiben eines Records fuer Polygonausgabe
+|* 2. Linkhandler zum Schreiben eines Records fuer PolyPolygonausgabe
+|* 3. Linkhandler zum Schreiben eines Records fuer Setzen der Brush
|*
\******************************************************************************/
class GradientWrapper
{
- Link aDrawPolyRecordHdl;
- Link aDrawPolyPolyRecordHdl;
- Link aSetFillInBrushRecordHdl;
+ Link aDrawPolyRecordHdl;
+ Link aDrawPolyPolyRecordHdl;
+ Link aSetFillInBrushRecordHdl;
GradientWrapper() {};
@@ -67,11 +67,11 @@ public:
~GradientWrapper();
- void WriteLinearGradient(const Rectangle& rRect,
+ void WriteLinearGradient(const Rectangle& rRect,
const Gradient& rGradient);
- void WriteRadialGradient(const Rectangle& rRect,
+ void WriteRadialGradient(const Rectangle& rRect,
const Gradient& rGradient);
- void WriteRectGradient(const Rectangle& rRect,
+ void WriteRectGradient(const Rectangle& rRect,
const Gradient& rGradient);
};
diff --git a/svtools/source/inc/iodlg.hrc b/svtools/source/inc/iodlg.hrc
index e78e3fb687fe..2627a9ae1e26 100644
--- a/svtools/source/inc/iodlg.hrc
+++ b/svtools/source/inc/iodlg.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,43 +34,43 @@
// ModalDialog DLG_SVT_EXPLORERFILE
-#define FT_EXPLORERFILE_CURRENTPATH 10
-#define BTN_EXPLORERFILE_NEWFOLDER 11
-#define BTN_EXPLORERFILE_LISTVIEW 12
-#define BTN_EXPLORERFILE_DETAILSVIEW 13
-#define BTN_EXPLORERFILE_UP 14
-#define BTN_EXPLORERFILE_STANDARD 15
-#define BTN_EXPLORERFILE_OPEN 16
-#define BTN_EXPLORERFILE_CANCEL 17
-#define BTN_EXPLORERFILE_HELP 18
-
-#define IMG_FILEDLG_BTN_UP 10
-#define IMG_FILEDLG_BTN_STD 11
+#define FT_EXPLORERFILE_CURRENTPATH 10
+#define BTN_EXPLORERFILE_NEWFOLDER 11
+#define BTN_EXPLORERFILE_LISTVIEW 12
+#define BTN_EXPLORERFILE_DETAILSVIEW 13
+#define BTN_EXPLORERFILE_UP 14
+#define BTN_EXPLORERFILE_STANDARD 15
+#define BTN_EXPLORERFILE_OPEN 16
+#define BTN_EXPLORERFILE_CANCEL 17
+#define BTN_EXPLORERFILE_HELP 18
+
+#define IMG_FILEDLG_BTN_UP 10
+#define IMG_FILEDLG_BTN_STD 11
#define IMG_FILEDLG_CREATEFOLDER 15
-#define CTL_EXPLORERFILE_FILELIST 20
+#define CTL_EXPLORERFILE_FILELIST 20
-#define FT_EXPLORERFILE_FILENAME 30
-#define ED_EXPLORERFILE_FILENAME 31
-#define FT_EXPLORERFILE_SHARED_LISTBOX 32
-#define LB_EXPLORERFILE_SHARED_LISTBOX 33
-#define FT_EXPLORERFILE_FILETYPE 34
-#define LB_EXPLORERFILE_FILETYPE 35
+#define FT_EXPLORERFILE_FILENAME 30
+#define ED_EXPLORERFILE_FILENAME 31
+#define FT_EXPLORERFILE_SHARED_LISTBOX 32
+#define LB_EXPLORERFILE_SHARED_LISTBOX 33
+#define FT_EXPLORERFILE_FILETYPE 34
+#define LB_EXPLORERFILE_FILETYPE 35
-#define CB_EXPLORERFILE_READONLY 40
-#define CB_EXPLORERFILE_PASSWORD 41
-#define CB_AUTO_EXTENSION 42
-#define CB_OPTIONS 43
+#define CB_EXPLORERFILE_READONLY 40
+#define CB_EXPLORERFILE_PASSWORD 41
+#define CB_AUTO_EXTENSION 42
+#define CB_OPTIONS 43
// -----------------------------------------------
#define STR_EXPLORERFILE_OPEN 1
#define STR_EXPLORERFILE_SAVE 2
-#define STR_EXPLORERFILE_BUTTONSAVE 3
-#define STR_PATHNAME 4
-#define STR_PATHSELECT 5
-#define STR_BUTTONSELECT 6
-#define STR_ACTUALVERSION 7
+#define STR_EXPLORERFILE_BUTTONSAVE 3
+#define STR_PATHNAME 4
+#define STR_PATHSELECT 5
+#define STR_BUTTONSELECT 6
+#define STR_ACTUALVERSION 7
// DLG_SVT_QUERYFOLDERNAME -----------------------
@@ -92,16 +92,16 @@
#define HID_FILEDLG_USE_PASSWD (HID_SFX_START + 31)
#define HID_FILEDLG_READ_ONLY (HID_SFX_START + 32)
-#define HID_FILEDLG_AUTOCOMPLETEBOX (HID_SFX_START + 218)
-#define HID_FILEDLG_SAVE_BTN (HID_SFX_START + 219)
-#define HID_FILEDLG_SAVE_FILENAME (HID_SFX_START + 220)
-#define HID_FILEDLG_SAVE_FILETYPE (HID_SFX_START + 221)
-#define HID_FILEDLG_INSERT_BTN (HID_SFX_START + 222)
-#define HID_FILEDLG_PATH_BTN (HID_SFX_START + 223)
-#define HID_FILEDLG_PATH_FILENAME (HID_SFX_START + 224)
-#define HID_FILEDLG_FOLDER_BTN (HID_SFX_START + 225)
-#define HID_FILEDLG_FOLDER_FILENAME (HID_SFX_START + 226)
-#define HID_FILEDLG_SRCHFOLDER_BTN (HID_SFX_START + 227)
+#define HID_FILEDLG_AUTOCOMPLETEBOX (HID_SFX_START + 218)
+#define HID_FILEDLG_SAVE_BTN (HID_SFX_START + 219)
+#define HID_FILEDLG_SAVE_FILENAME (HID_SFX_START + 220)
+#define HID_FILEDLG_SAVE_FILETYPE (HID_SFX_START + 221)
+#define HID_FILEDLG_INSERT_BTN (HID_SFX_START + 222)
+#define HID_FILEDLG_PATH_BTN (HID_SFX_START + 223)
+#define HID_FILEDLG_PATH_FILENAME (HID_SFX_START + 224)
+#define HID_FILEDLG_FOLDER_BTN (HID_SFX_START + 225)
+#define HID_FILEDLG_FOLDER_FILENAME (HID_SFX_START + 226)
+#define HID_FILEDLG_SRCHFOLDER_BTN (HID_SFX_START + 227)
#endif
diff --git a/svtools/source/inc/jpeg.hxx b/svtools/source/inc/jpeg.hxx
index 4163354d1416..7560cecaaa95 100644
--- a/svtools/source/inc/jpeg.hxx
+++ b/svtools/source/inc/jpeg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,68 +49,68 @@ enum ReadState
};
// --------------
-// - JPEGReader -
+// - JPEGReader -
// --------------
class JPEGReader : public GraphicReader
{
- SvStream& rIStm;
- Bitmap aBmp;
- Bitmap aBmp1;
- BitmapWriteAccess* pAcc;
- BitmapWriteAccess* pAcc1;
- void* pBuffer;
- long nLastPos;
- long nFormerPos;
- long nLastLines;
+ SvStream& rIStm;
+ Bitmap aBmp;
+ Bitmap aBmp1;
+ BitmapWriteAccess* pAcc;
+ BitmapWriteAccess* pAcc1;
+ void* pBuffer;
+ long nLastPos;
+ long nFormerPos;
+ long nLastLines;
sal_Bool bSetLogSize;
- Graphic CreateIntermediateGraphic( const Bitmap& rBitmap, long nLines );
- void FillBitmap();
+ Graphic CreateIntermediateGraphic( const Bitmap& rBitmap, long nLines );
+ void FillBitmap();
public:
- void* CreateBitmap( void* JPEGCreateBitmapParam );
+ void* CreateBitmap( void* JPEGCreateBitmapParam );
public:
JPEGReader( SvStream& rStm, void* pCallData, sal_Bool bSetLogSize );
- virtual ~JPEGReader();
+ virtual ~JPEGReader();
- ReadState Read( Graphic& rGraphic );
+ ReadState Read( Graphic& rGraphic );
};
// --------------
-// - JPEGWriter -
+// - JPEGWriter -
// --------------
class JPEGWriter
{
- SvStream& rOStm;
- Bitmap aBmp;
- BitmapReadAccess* pAcc;
- BYTE* pBuffer;
- BOOL bNative;
-
- sal_Bool bGreys;
- sal_Int32 nQuality;
-
+ SvStream& rOStm;
+ Bitmap aBmp;
+ BitmapReadAccess* pAcc;
+ BYTE* pBuffer;
+ BOOL bNative;
+
+ sal_Bool bGreys;
+ sal_Int32 nQuality;
+
bool* pExpWasGrey;
com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator > xStatusIndicator;
public:
- void* GetScanline( long nY );
+ void* GetScanline( long nY );
- JPEGWriter( SvStream& rOStm, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >* pFilterData,
+ JPEGWriter( SvStream& rOStm, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >* pFilterData,
bool* pExportWasGrey = NULL );
~JPEGWriter() {};
- BOOL Write( const Graphic& rGraphic );
+ BOOL Write( const Graphic& rGraphic );
};
#endif // _JPEGPRIVATE
diff --git a/svtools/source/inc/msgrd.hxx b/svtools/source/inc/msgrd.hxx
index 6b1bc8cb5775..38cff1743dec 100644
--- a/svtools/source/inc/msgrd.hxx
+++ b/svtools/source/inc/msgrd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/inc/msgwr.hxx b/svtools/source/inc/msgwr.hxx
index 77eeda2b26b9..81536f359d77 100644
--- a/svtools/source/inc/msgwr.hxx
+++ b/svtools/source/inc/msgwr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/inc/property.hxx b/svtools/source/inc/property.hxx
index e77cbb4ed5e6..7fd8ab4f9adc 100644
--- a/svtools/source/inc/property.hxx
+++ b/svtools/source/inc/property.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@
#include <vcl/scrbar.hxx>
#include <svl/svarray.hxx>
-#ifndef _SVSTDARR_STRINGS
+#ifndef _SVSTDARR_STRINGS
#define _SVSTDARR_STRINGS
#include <svl/svstdarr.hxx>
#endif
@@ -67,34 +67,34 @@ public:
SvXPropertyControl( Window* pParent, WinBits nWinStyle = 0 );
SvXPropertyControl( Window* pParent, const ResId& rResId );
- virtual void SetSvXPropertyCtrListener(SvXPropertyCtrListener*)=0;
+ virtual void SetSvXPropertyCtrListener(SvXPropertyCtrListener*)=0;
- virtual SvXPropertyCtrListener* GetSvXPropertyCtrListener()=0;
- virtual void SetProperty(const String &rString)=0;
- virtual String GetProperty()const=0;
- virtual BOOL HasList()=0;
- virtual void ClearList()=0;
- virtual void InsertEntry( const String& rString,
+ virtual SvXPropertyCtrListener* GetSvXPropertyCtrListener()=0;
+ virtual void SetProperty(const String &rString)=0;
+ virtual String GetProperty()const=0;
+ virtual BOOL HasList()=0;
+ virtual void ClearList()=0;
+ virtual void InsertEntry( const String& rString,
USHORT nPos = LISTBOX_APPEND )=0;
- virtual void SetCtrSize(const Size& rSize)=0;
- virtual void SetLocked(BOOL bLocked=TRUE)=0;
+ virtual void SetCtrSize(const Size& rSize)=0;
+ virtual void SetLocked(BOOL bLocked=TRUE)=0;
- virtual void SetMyName(const String &rString)=0;
- virtual String GetMyName()const=0;
+ virtual void SetMyName(const String &rString)=0;
+ virtual String GetMyName()const=0;
- virtual void SetMyData(void*)=0;
- virtual void* GetMyData()=0;
+ virtual void SetMyData(void*)=0;
+ virtual void* GetMyData()=0;
};
class SvXPropertyCtrListener
{
public:
- virtual void Modified (SvXPropertyControl *pSvXPCtr)=0;
- virtual void GetFocus (SvXPropertyControl *pSvXPCtr)=0;
- virtual void LoseFocus(SvXPropertyControl *pSvXPCtr)=0;
- virtual void KeyInput (SvXPropertyControl *pSvXPCtr ,const KeyCode&)=0;
+ virtual void Modified (SvXPropertyControl *pSvXPCtr)=0;
+ virtual void GetFocus (SvXPropertyControl *pSvXPCtr)=0;
+ virtual void LoseFocus(SvXPropertyControl *pSvXPCtr)=0;
+ virtual void KeyInput (SvXPropertyControl *pSvXPCtr ,const KeyCode&)=0;
};
@@ -102,10 +102,10 @@ class SvXPropertyEdit : public SvXPropertyControl
{
private:
- String aName;
- SvXPropertyCtrListener* pListener;
- Edit aEdit;
- void* pData;
+ String aName;
+ SvXPropertyCtrListener* pListener;
+ Edit aEdit;
+ void* pData;
DECL_LINK(ModifiedHdl,Edit*);
DECL_LINK(GetFocusHdl,Edit*);
@@ -115,26 +115,26 @@ public:
SvXPropertyEdit( Window* pParent, WinBits nWinStyle = 0 );
SvXPropertyEdit( Window* pParent, const ResId& rResId );
- virtual void SetSvXPropertyCtrListener(SvXPropertyCtrListener*);
+ virtual void SetSvXPropertyCtrListener(SvXPropertyCtrListener*);
- virtual SvXPropertyCtrListener* GetSvXPropertyCtrListener();
+ virtual SvXPropertyCtrListener* GetSvXPropertyCtrListener();
- virtual void SetProperty(const String &rString);
- virtual String GetProperty()const;
+ virtual void SetProperty(const String &rString);
+ virtual String GetProperty()const;
- virtual BOOL HasList();
- virtual void ClearList();
- virtual void InsertEntry( const String& rString,
+ virtual BOOL HasList();
+ virtual void ClearList();
+ virtual void InsertEntry( const String& rString,
USHORT nPos = LISTBOX_APPEND );
- virtual void SetCtrSize(const Size& rSize);
- virtual void SetLocked(BOOL bLocked=TRUE);
+ virtual void SetCtrSize(const Size& rSize);
+ virtual void SetLocked(BOOL bLocked=TRUE);
- virtual void SetMyName(const String &rString);
- virtual String GetMyName()const;
+ virtual void SetMyName(const String &rString);
+ virtual String GetMyName()const;
- virtual void SetMyData(void*);
- virtual void* GetMyData();
+ virtual void SetMyData(void*);
+ virtual void* GetMyData();
};
@@ -142,10 +142,10 @@ class SvXPropertyListBox : public SvXPropertyControl
{
private:
- String aName;
- SvXPropertyCtrListener* pListener;
- ListBox aListBox;
- void* pData;
+ String aName;
+ SvXPropertyCtrListener* pListener;
+ ListBox aListBox;
+ void* pData;
DECL_LINK(ModifiedHdl,ListBox*);
DECL_LINK(GetFocusHdl,ListBox*);
@@ -156,38 +156,38 @@ public:
SvXPropertyListBox( Window* pParent, WinBits nWinStyle = 0 );
SvXPropertyListBox( Window* pParent, const ResId& rResId );
- virtual void SetSvXPropertyCtrListener(SvXPropertyCtrListener*);
+ virtual void SetSvXPropertyCtrListener(SvXPropertyCtrListener*);
- virtual SvXPropertyCtrListener* GetSvXPropertyCtrListener();
+ virtual SvXPropertyCtrListener* GetSvXPropertyCtrListener();
- ListBox* GetListBox();
+ ListBox* GetListBox();
- virtual void SetProperty(const String &rString);
- virtual String GetProperty()const;
+ virtual void SetProperty(const String &rString);
+ virtual String GetProperty()const;
- virtual BOOL HasList();
- virtual void ClearList();
- virtual void InsertEntry( const String& rString,
+ virtual BOOL HasList();
+ virtual void ClearList();
+ virtual void InsertEntry( const String& rString,
USHORT nPos = LISTBOX_APPEND );
- virtual void SetCtrSize(const Size& rSize);
- virtual void SetLocked(BOOL bLocked=TRUE);
+ virtual void SetCtrSize(const Size& rSize);
+ virtual void SetLocked(BOOL bLocked=TRUE);
- virtual void SetMyName(const String &rString);
- virtual String GetMyName()const;
+ virtual void SetMyName(const String &rString);
+ virtual String GetMyName()const;
- virtual void SetMyData(void*);
- virtual void* GetMyData();
+ virtual void SetMyData(void*);
+ virtual void* GetMyData();
};
class SvXPropertyComboBox : public SvXPropertyControl
{
private:
- String aName;
- SvXPropertyCtrListener* pListener;
- ComboBox aComboBox;
- void* pData;
+ String aName;
+ SvXPropertyCtrListener* pListener;
+ ComboBox aComboBox;
+ void* pData;
DECL_LINK(ModifiedHdl,ComboBox*);
DECL_LINK(GetFocusHdl,ComboBox*);
@@ -198,28 +198,28 @@ public:
SvXPropertyComboBox( Window* pParent, WinBits nWinStyle = 0 );
SvXPropertyComboBox( Window* pParent, const ResId& rResId );
- virtual void SetSvXPropertyCtrListener(SvXPropertyCtrListener*);
+ virtual void SetSvXPropertyCtrListener(SvXPropertyCtrListener*);
- virtual SvXPropertyCtrListener* GetSvXPropertyCtrListener();
+ virtual SvXPropertyCtrListener* GetSvXPropertyCtrListener();
- ComboBox* GetComboBox();
+ ComboBox* GetComboBox();
- virtual void SetProperty(const String &rString);
- virtual String GetProperty()const;
+ virtual void SetProperty(const String &rString);
+ virtual String GetProperty()const;
- virtual BOOL HasList();
- virtual void ClearList();
- virtual void InsertEntry( const String& rString,
+ virtual BOOL HasList();
+ virtual void ClearList();
+ virtual void InsertEntry( const String& rString,
USHORT nPos = LISTBOX_APPEND );
- virtual void SetCtrSize(const Size& rSize);
- virtual void SetLocked(BOOL bLocked=TRUE);
+ virtual void SetCtrSize(const Size& rSize);
+ virtual void SetLocked(BOOL bLocked=TRUE);
- virtual void SetMyName(const String &rString);
- virtual String GetMyName()const;
+ virtual void SetMyName(const String &rString);
+ virtual String GetMyName()const;
- virtual void SetMyData(void*);
- virtual void* GetMyData();
+ virtual void SetMyData(void*);
+ virtual void* GetMyData();
};
@@ -227,19 +227,19 @@ public:
class SvPropertyLine : public Control
{
private:
- FixedText aName;
- USHORT nNameWidth;
- BOOL bNeedsRepaint;
- SvXPropertyControl* pSvXPropertyControl;
+ FixedText aName;
+ USHORT nNameWidth;
+ BOOL bNeedsRepaint;
+ SvXPropertyControl* pSvXPropertyControl;
- PushButton aXButton;
- BOOL bIsLocked;
- BOOL bHasXButton;
- BOOL bIsHyperlink;
- eKindOfControl eKindOfCtr;
+ PushButton aXButton;
+ BOOL bIsLocked;
+ BOOL bHasXButton;
+ BOOL bIsHyperlink;
+ eKindOfControl eKindOfCtr;
protected:
- virtual void Resize();
+ virtual void Resize();
public:
SvPropertyLine( Window* pParent,
@@ -247,28 +247,28 @@ public:
SvPropertyLine( Window* pParent,
const ResId& rResId );
- BOOL NeedsRepaint();
- void SetNeedsRepaint(BOOL bFlag);
- void SetSvXPropertyControl(SvXPropertyControl*);
- SvXPropertyControl* GetSvXPropertyControl();
+ BOOL NeedsRepaint();
+ void SetNeedsRepaint(BOOL bFlag);
+ void SetSvXPropertyControl(SvXPropertyControl*);
+ SvXPropertyControl* GetSvXPropertyControl();
- void SetKindOfControl(eKindOfControl);
- eKindOfControl GetKindOfControl();
+ void SetKindOfControl(eKindOfControl);
+ eKindOfControl GetKindOfControl();
- void SetName(const String& rString );
- String GetName() const;
- void SetNameWidth(USHORT);
+ void SetName(const String& rString );
+ String GetName() const;
+ void SetNameWidth(USHORT);
- void ShowXButton();
- void HideXButton();
- BOOL IsVisibleXButton();
- void ShowAsHyperLink(BOOL nFlag=TRUE);
- BOOL IsShownAsHyperlink();
+ void ShowXButton();
+ void HideXButton();
+ BOOL IsVisibleXButton();
+ void ShowAsHyperLink(BOOL nFlag=TRUE);
+ BOOL IsShownAsHyperlink();
- void Locked(BOOL nFlag=TRUE);
- BOOL IsLineLocked();
+ void Locked(BOOL nFlag=TRUE);
+ BOOL IsLineLocked();
- void SetClickHdl(const Link&);
+ void SetClickHdl(const Link&);
};
@@ -276,16 +276,16 @@ public:
class SvPropertyData
{
public:
- eKindOfControl eKind;
- String aName;
- String aValue;
- SvStrings theValues; // ???
-
- BOOL bHasVisibleXButton;
- BOOL bIsHyperLink;
- BOOL bIsLocked;
- void* pDataPtr;
- SvXPropertyControl* pControl;
+ eKindOfControl eKind;
+ String aName;
+ String aValue;
+ SvStrings theValues; // ???
+
+ BOOL bHasVisibleXButton;
+ BOOL bIsHyperLink;
+ BOOL bIsLocked;
+ void* pDataPtr;
+ SvXPropertyControl* pControl;
};
class SvPropertyDataObjectControl
@@ -295,59 +295,59 @@ class SvPropertyDataObjectControl
class SvPropertyDataControl
{
public:
- virtual void Modified( const String& aName,
+ virtual void Modified( const String& aName,
const String& aVal,
void* pData)=0;
- virtual void Clicked( const String& aName,
+ virtual void Clicked( const String& aName,
const String& aVal,
void* pData)=0;
- virtual void Commit( const String& aName,
+ virtual void Commit( const String& aName,
const String& aVal,
void* pData)=0;
- virtual void Select( const String& aName,
+ virtual void Select( const String& aName,
void* pData)=0;
- virtual void LinkClicked(const String& aName,
+ virtual void LinkClicked(const String& aName,
void* pData)=0;
};
class SvXPropEvListener: public SvXPropertyCtrListener
{
- Link aModifyLink;
- Link aGetFocusLink;
- Link aLoseFocusLink;
- Link aKeyInputLink;
- String aModifiedResult;
+ Link aModifyLink;
+ Link aGetFocusLink;
+ Link aLoseFocusLink;
+ Link aKeyInputLink;
+ String aModifiedResult;
- SvXPropertyControl * pTheActiveControl;
- KeyCode aKeyCode;
+ SvXPropertyControl * pTheActiveControl;
+ KeyCode aKeyCode;
public:
SvXPropEvListener();
virtual ~SvXPropEvListener();
+
+ virtual void Modified (SvXPropertyControl *pSvXPCtr);
+ virtual void GetFocus (SvXPropertyControl *pSvXPCtr);
+ virtual void LoseFocus(SvXPropertyControl *pSvXPCtr);
+ virtual void KeyInput(SvXPropertyControl *pSvXPCtr ,const KeyCode&);
- virtual void Modified (SvXPropertyControl *pSvXPCtr);
- virtual void GetFocus (SvXPropertyControl *pSvXPCtr);
- virtual void LoseFocus(SvXPropertyControl *pSvXPCtr);
- virtual void KeyInput(SvXPropertyControl *pSvXPCtr ,const KeyCode&);
-
- SvXPropertyControl * GetPropertyControl();
- KeyCode GetKeyCode() const;
+ SvXPropertyControl * GetPropertyControl();
+ KeyCode GetKeyCode() const;
- void SetModifyHdl( const Link& rLink ) { aModifyLink = rLink; }
- const Link& GetModifyHdl() const { return aModifyLink; }
+ void SetModifyHdl( const Link& rLink ) { aModifyLink = rLink; }
+ const Link& GetModifyHdl() const { return aModifyLink; }
- void SetGetFocusHdl( const Link& rLink ) { aGetFocusLink = rLink; }
- const Link& GetGetFocusHdl() const { return aGetFocusLink; }
+ void SetGetFocusHdl( const Link& rLink ) { aGetFocusLink = rLink; }
+ const Link& GetGetFocusHdl() const { return aGetFocusLink; }
- void SetLoseFocusHdl( const Link& rLink ) { aLoseFocusLink = rLink; }
- const Link& GetLoseFocusHdl() const { return aLoseFocusLink; }
+ void SetLoseFocusHdl( const Link& rLink ) { aLoseFocusLink = rLink; }
+ const Link& GetLoseFocusHdl() const { return aLoseFocusLink; }
- void SetKeyInputHdl( const Link& rLink ) { aKeyInputLink = rLink; }
- const Link& GetKeyInputHdl() const { return aKeyInputLink; }
+ void SetKeyInputHdl( const Link& rLink ) { aKeyInputLink = rLink; }
+ const Link& GetKeyInputHdl() const { return aKeyInputLink; }
};
@@ -360,18 +360,18 @@ class SvListBoxForProperties: public Control
{
private:
- SvXPropEvListener aListener;
- Window aPlayGround;
- ScrollBar aVScroll;
- SvPropLineArray PLineArray;
- SvPropertyDataControl* pPropDataControl;
- USHORT nRowHeight;
- BOOL bUpdate;
- USHORT nTheNameSize;
- long nYOffset;
+ SvXPropEvListener aListener;
+ Window aPlayGround;
+ ScrollBar aVScroll;
+ SvPropLineArray PLineArray;
+ SvPropertyDataControl* pPropDataControl;
+ USHORT nRowHeight;
+ BOOL bUpdate;
+ USHORT nTheNameSize;
+ long nYOffset;
DECL_LINK( ScrollHdl,ScrollBar*);
- DECL_LINK( ClickHdl ,PushButton*);
+ DECL_LINK( ClickHdl ,PushButton*);
DECL_LINK( ModifyHdl,SvXPropEvListener*);
DECL_LINK( GetFocusHdl,SvXPropEvListener*);
@@ -379,12 +379,12 @@ private:
DECL_LINK( KeyInputHdl,SvXPropEvListener*);
protected:
- void UpdateAll();
- void UpdatePosNSize();
- void UpdatePlayGround();
- void UpdateVScroll();
+ void UpdateAll();
+ void UpdatePosNSize();
+ void UpdatePlayGround();
+ void UpdateVScroll();
- void Resize();
+ void Resize();
public:
SvListBoxForProperties( Window* pParent, WinBits nWinStyle = 0 );
@@ -392,27 +392,27 @@ public:
~SvListBoxForProperties();
- virtual USHORT CalcVisibleLines();
- virtual void EnableUpdate();
- virtual void DisableUpdate();
+ virtual USHORT CalcVisibleLines();
+ virtual void EnableUpdate();
+ virtual void DisableUpdate();
- virtual void SetController(SvPropertyDataControl *);
+ virtual void SetController(SvPropertyDataControl *);
- virtual void Clear();
+ virtual void Clear();
- virtual USHORT InsertEntry( const SvPropertyData&, USHORT nPos = LISTBOX_APPEND );
+ virtual USHORT InsertEntry( const SvPropertyData&, USHORT nPos = LISTBOX_APPEND );
- virtual void ChangeEntry( const SvPropertyData&, USHORT nPos);
+ virtual void ChangeEntry( const SvPropertyData&, USHORT nPos);
- virtual USHORT AppendEntry( const SvPropertyData&);
+ virtual USHORT AppendEntry( const SvPropertyData&);
- virtual void SetPropertyValue( const String & rEntryName, const String & rValue );
+ virtual void SetPropertyValue( const String & rEntryName, const String & rValue );
- virtual void SetFirstVisibleEntry(USHORT nPos);
- virtual USHORT GetFirstVisibleEntry();
+ virtual void SetFirstVisibleEntry(USHORT nPos);
+ virtual USHORT GetFirstVisibleEntry();
- virtual void SetSelectedEntry(USHORT nPos);
- virtual USHORT GetSelectedEntry();
+ virtual void SetSelectedEntry(USHORT nPos);
+ virtual USHORT GetSelectedEntry();
};
class SvTabPageForProperties: public TabPage
@@ -420,11 +420,11 @@ class SvTabPageForProperties: public TabPage
private:
- SvListBoxForProperties aLbProp;
+ SvListBoxForProperties aLbProp;
protected:
- virtual void Resize();
+ virtual void Resize();
public:
SvTabPageForProperties(Window* pParent,WinBits nWinStyle = 0 );
@@ -437,58 +437,58 @@ class SvBasicPropertyDataControl: public SvPropertyDataControl
{
private:
- BOOL bCorrectness;
- String aEntryName;
- String aEntryProperty;
- String aCorrectProperty;
- void* pTheData;
- Link aModifyLink;
- Link aClickedLink;
- Link aCommitLink;
- Link aSelectLink;
+ BOOL bCorrectness;
+ String aEntryName;
+ String aEntryProperty;
+ String aCorrectProperty;
+ void* pTheData;
+ Link aModifyLink;
+ Link aClickedLink;
+ Link aCommitLink;
+ Link aSelectLink;
public:
virtual ~SvBasicPropertyDataControl();
- virtual void Modified( const String& aName,
+ virtual void Modified( const String& aName,
const String& aVal,
- void* pData); //User has modified Property
+ void* pData); //User has modified Property
- virtual void Clicked( const String& aName,
+ virtual void Clicked( const String& aName,
const String& aVal,
- void* pData); //Xtension-Button pressed
+ void* pData); //Xtension-Button pressed
- virtual void Commit( const String& aName,
+ virtual void Commit( const String& aName,
const String& aVal,
- void* pData); //User accept changes
+ void* pData); //User accept changes
- virtual void Select( const String& aName,
- void* pData); //User select new Row
+ virtual void Select( const String& aName,
+ void* pData); //User select new Row
- virtual void LinkClicked(const String& aName,
+ virtual void LinkClicked(const String& aName,
void* pData);
- virtual void SetIsCorrect(BOOL nFlag);
+ virtual void SetIsCorrect(BOOL nFlag);
- //virtual String GetTheCorrectProperty()const;
- virtual void SetTheCorrectProperty(const String& aName);
+ //virtual String GetTheCorrectProperty()const;
+ virtual void SetTheCorrectProperty(const String& aName);
- String GetName() const; //Tell's the name of the Property
- String GetProperty() const; //Tell's the content of the Property
- void* GetData(); //Tell's the storage
+ String GetName() const; //Tell's the name of the Property
+ String GetProperty() const; //Tell's the content of the Property
+ void* GetData(); //Tell's the storage
- void SetModifyHdl( const Link& rLink ) { aModifyLink = rLink; }
- const Link& GetModifyHdl() const { return aModifyLink; }
+ void SetModifyHdl( const Link& rLink ) { aModifyLink = rLink; }
+ const Link& GetModifyHdl() const { return aModifyLink; }
- void SetClickedHdl( const Link& rLink ) { aClickedLink = rLink; }
- const Link& GetClickedHdl() const { return aClickedLink; }
+ void SetClickedHdl( const Link& rLink ) { aClickedLink = rLink; }
+ const Link& GetClickedHdl() const { return aClickedLink; }
- void SetCommitHdl( const Link& rLink ) { aCommitLink = rLink; }
- const Link& GetCommitHdl() const { return aCommitLink; }
+ void SetCommitHdl( const Link& rLink ) { aCommitLink = rLink; }
+ const Link& GetCommitHdl() const { return aCommitLink; }
- void SetSelectHdl( const Link& rLink ) { aSelectLink = rLink; }
- const Link& GetSelectHdl() const { return aSelectLink; }
+ void SetSelectHdl( const Link& rLink ) { aSelectLink = rLink; }
+ const Link& GetSelectHdl() const { return aSelectLink; }
};
@@ -496,42 +496,42 @@ public:
class SvPropertyBox: public Control
{
private:
- SvPropertyDataControl* pThePropDataCtr;
- TabControl aTabControl;
+ SvPropertyDataControl* pThePropDataCtr;
+ TabControl aTabControl;
protected:
- virtual void Resize();
+ virtual void Resize();
public:
- SvPropertyBox ( Window* pParent, WinBits nWinStyle = 0 );
- SvPropertyBox ( Window* pParent, const ResId& rResId );
+ SvPropertyBox ( Window* pParent, WinBits nWinStyle = 0 );
+ SvPropertyBox ( Window* pParent, const ResId& rResId );
~SvPropertyBox();
- virtual USHORT CalcVisibleLines();
- virtual void EnableUpdate(); // auch IDL?
- virtual void DisableUpdate(); // auch IDL?
+ virtual USHORT CalcVisibleLines();
+ virtual void EnableUpdate(); // auch IDL?
+ virtual void DisableUpdate(); // auch IDL?
// AB: Hier beginnt das 'offizielle' Interface, das in IDL uebernommen werden soll
- virtual void SetController(SvPropertyDataControl *);
+ virtual void SetController(SvPropertyDataControl *);
- virtual USHORT AppendPage( const String & r );
- virtual void SetPage( USHORT );
- virtual USHORT GetCurPage();
- virtual void ClearAll();
- virtual void ClearTable();
+ virtual USHORT AppendPage( const String & r );
+ virtual void SetPage( USHORT );
+ virtual USHORT GetCurPage();
+ virtual void ClearAll();
+ virtual void ClearTable();
- virtual void SetPropertyValue( const String & rEntryName, const String & rValue );
+ virtual void SetPropertyValue( const String & rEntryName, const String & rValue );
- virtual USHORT InsertEntry( const SvPropertyData&, USHORT nPos = LISTBOX_APPEND );
- virtual void ChangeEntry( const SvPropertyData&, USHORT nPos);
- virtual USHORT AppendEntry( const SvPropertyData&);
+ virtual USHORT InsertEntry( const SvPropertyData&, USHORT nPos = LISTBOX_APPEND );
+ virtual void ChangeEntry( const SvPropertyData&, USHORT nPos);
+ virtual USHORT AppendEntry( const SvPropertyData&);
- virtual void SetFirstVisibleEntry(USHORT nPos);
- virtual USHORT GetFirstVisibleEntry();
+ virtual void SetFirstVisibleEntry(USHORT nPos);
+ virtual USHORT GetFirstVisibleEntry();
- virtual void SetSelectedEntry(USHORT nPos);
- virtual USHORT GetSelectedEntry();
+ virtual void SetSelectedEntry(USHORT nPos);
+ virtual USHORT GetSelectedEntry();
};
@@ -540,30 +540,30 @@ public:
class ScPropertyDlg : public ModalDialog
{
private:
- SvBasicPropertyDataControl aBaProDatCtr;
- OKButton anOk;
- CancelButton aCancel;
- USHORT nCount;
- USHORT nClickCount;
+ SvBasicPropertyDataControl aBaProDatCtr;
+ OKButton anOk;
+ CancelButton aCancel;
+ USHORT nCount;
+ USHORT nClickCount;
- SvPropertyData aProperty;
- SvPropertyBox aPropListBox;
+ SvPropertyData aProperty;
+ SvPropertyBox aPropListBox;
- ListBox aKindOfListBox;
- FixedText aModAnswer;
- FixedText aClickAnswer;
- FixedText aCommitAnswer;
- FixedText aSelectAnswer;
+ ListBox aKindOfListBox;
+ FixedText aModAnswer;
+ FixedText aClickAnswer;
+ FixedText aCommitAnswer;
+ FixedText aSelectAnswer;
DECL_LINK( ModifiedHdl, ListBox*);
DECL_LINK( RowModifiedHdl, SvBasicPropertyDataControl*);
- DECL_LINK( ClickHdl , SvBasicPropertyDataControl*);
- DECL_LINK( SelectHdl , SvBasicPropertyDataControl*);
- DECL_LINK( CommitHdl , SvBasicPropertyDataControl*);
+ DECL_LINK( ClickHdl , SvBasicPropertyDataControl*);
+ DECL_LINK( SelectHdl , SvBasicPropertyDataControl*);
+ DECL_LINK( CommitHdl , SvBasicPropertyDataControl*);
public:
- ScPropertyDlg( Window* pParent);
+ ScPropertyDlg( Window* pParent);
~ScPropertyDlg();
};
*/
diff --git a/svtools/source/inc/provider.hxx b/svtools/source/inc/provider.hxx
index 0674d8d8ea6c..9dcd6da31690 100644
--- a/svtools/source/inc/provider.hxx
+++ b/svtools/source/inc/provider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,10 +26,10 @@
*
************************************************************************/
-#ifndef _GOODIES_PROVIDER_HXX
-#define _GOODIES_PROVIDER_HXX
+#ifndef _GOODIES_PROVIDER_HXX
+#define _GOODIES_PROVIDER_HXX
-#include <cppuhelper/implbase1.hxx>
+#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/graphic/XGraphicProvider.hpp>
#include <com/sun/star/awt/XBitmap.hpp>
@@ -45,13 +45,13 @@ namespace unographic {
class GraphicProvider : public ::cppu::WeakImplHelper1< ::com::sun::star::graphic::XGraphicProvider >
{
public:
-
+
GraphicProvider();
~GraphicProvider();
-
+
static ::rtl::OUString getImplementationName_Static() throw();
static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static() throw();
-
+
protected:
// XServiceInfo
@@ -62,12 +62,12 @@ protected:
// XTypeProvider
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw(::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
-
+
// XGraphicProvider
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL queryGraphicDescriptor( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& MediaProperties ) throw (::com::sun::star::io::IOException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > SAL_CALL queryGraphic( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& MediaProperties ) throw (::com::sun::star::io::IOException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL storeGraphic( const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& Graphic, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& MediaProperties ) throw (::com::sun::star::io::IOException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
-
+
private:
::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > implLoadMemory( const ::rtl::OUString& rResourceURL ) const;
@@ -80,6 +80,6 @@ private:
}
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/inc/renderer.hxx b/svtools/source/inc/renderer.hxx
index 741d052bf9de..ced679e5a5d3 100644
--- a/svtools/source/inc/renderer.hxx
+++ b/svtools/source/inc/renderer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,8 +26,8 @@
*
************************************************************************/
-#ifndef _GOODIES_RENDERER_HXX
-#define _GOODIES_RENDERER_HXX
+#ifndef _GOODIES_RENDERER_HXX
+#define _GOODIES_RENDERER_HXX
#include <tools/gen.hxx>
#include <comphelper/propertysethelper.hxx>
@@ -54,13 +54,13 @@ class GraphicRendererVCL : public ::cppu::OWeakAggObject,
public ::com::sun::star::graphic::XGraphicRenderer
{
public:
-
+
GraphicRendererVCL();
~GraphicRendererVCL() throw();
static ::rtl::OUString getImplementationName_Static() throw();
static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static() throw();
-
+
protected:
static ::comphelper::PropertySetInfo* createPropertySetInfo();
@@ -70,7 +70,7 @@ protected:
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL acquire() throw();
virtual void SAL_CALL release() throw();
-
+
// XServiceInfo
virtual rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const rtl::OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException );
@@ -83,21 +83,21 @@ protected:
// PropertySetHelper
virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const ::com::sun::star::uno::Any* pValues ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException );
virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, ::com::sun::star::uno::Any* pValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException );
-
+
// XGraphicRenderer
virtual void SAL_CALL render( const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& Graphic ) throw (::com::sun::star::uno::RuntimeException);
private:
::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > mxDevice;
-
- OutputDevice* mpOutDev;
- Rectangle maDestRect;
- ::com::sun::star::uno::Any maRenderData;
+
+ OutputDevice* mpOutDev;
+ Rectangle maDestRect;
+ ::com::sun::star::uno::Any maRenderData;
};
}
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/inc/sgfbram.hxx b/svtools/source/inc/sgfbram.hxx
index d3003e5ba565..d58facdf8565 100644
--- a/svtools/source/inc/sgfbram.hxx
+++ b/svtools/source/inc/sgfbram.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/inc/sgffilt.hxx b/svtools/source/inc/sgffilt.hxx
index e21810c6109e..835cddb90c7d 100644
--- a/svtools/source/inc/sgffilt.hxx
+++ b/svtools/source/inc/sgffilt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/inc/sgvmain.hxx b/svtools/source/inc/sgvmain.hxx
index 25a4785c9b15..a5175b3fe586 100644
--- a/svtools/source/inc/sgvmain.hxx
+++ b/svtools/source/inc/sgvmain.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/inc/sgvspln.hxx b/svtools/source/inc/sgvspln.hxx
index eda6ac628a0d..3e5737c9f0ae 100644
--- a/svtools/source/inc/sgvspln.hxx
+++ b/svtools/source/inc/sgvspln.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/inc/svimpbox.hxx b/svtools/source/inc/svimpbox.hxx
index 7361893532d6..160f84698f48 100644
--- a/svtools/source/inc/svimpbox.hxx
+++ b/svtools/source/inc/svimpbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,40 +50,40 @@ class TabBar;
class ImpLBSelEng : public FunctionSet
{
- SvImpLBox* pImp;
- SelectionEngine* pSelEng;
- SvTreeListBox* pView;
+ SvImpLBox* pImp;
+ SelectionEngine* pSelEng;
+ SvTreeListBox* pView;
public:
ImpLBSelEng( SvImpLBox* pImp, SelectionEngine* pSelEng,
SvTreeListBox* pView );
virtual ~ImpLBSelEng();
- void BeginDrag();
- void CreateAnchor();
- void DestroyAnchor();
- BOOL SetCursorAtPoint( const Point& rPoint,
+ void BeginDrag();
+ void CreateAnchor();
+ void DestroyAnchor();
+ BOOL SetCursorAtPoint( const Point& rPoint,
BOOL bDontSelectAtCursor=FALSE );
- BOOL IsSelectionAtPoint( const Point& rPoint );
- void DeselectAtPoint( const Point& rPoint );
- void DeselectAll();
+ BOOL IsSelectionAtPoint( const Point& rPoint );
+ void DeselectAtPoint( const Point& rPoint );
+ void DeselectAll();
};
// Flags fuer nFlag
-#define F_VER_SBARSIZE_WITH_HBAR 0x0001
-#define F_HOR_SBARSIZE_WITH_VBAR 0x0002
-#define F_IGNORE_NEXT_MOUSEMOVE 0x0004 // OS/2 only
-#define F_IN_SCROLLING 0x0008
-#define F_DESEL_ALL 0x0010
-#define F_START_EDITTIMER 0x0020 // MAC only
-#define F_IGNORE_SELECT 0x0040
-#define F_IN_RESIZE 0x0080
-#define F_REMOVED_ENTRY_INVISIBLE 0x0100
-#define F_REMOVED_RECALC_MOST_RIGHT 0x0200
-#define F_IGNORE_CHANGED_TABS 0x0400
-#define F_PAINTED 0x0800
-#define F_IN_PAINT 0x1000
-#define F_ENDSCROLL_SET_VIS_SIZE 0x2000
-#define F_FILLING 0x4000
+#define F_VER_SBARSIZE_WITH_HBAR 0x0001
+#define F_HOR_SBARSIZE_WITH_VBAR 0x0002
+#define F_IGNORE_NEXT_MOUSEMOVE 0x0004 // OS/2 only
+#define F_IN_SCROLLING 0x0008
+#define F_DESEL_ALL 0x0010
+#define F_START_EDITTIMER 0x0020 // MAC only
+#define F_IGNORE_SELECT 0x0040
+#define F_IN_RESIZE 0x0080
+#define F_REMOVED_ENTRY_INVISIBLE 0x0100
+#define F_REMOVED_RECALC_MOST_RIGHT 0x0200
+#define F_IGNORE_CHANGED_TABS 0x0400
+#define F_PAINTED 0x0800
+#define F_IN_PAINT 0x1000
+#define F_ENDSCROLL_SET_VIS_SIZE 0x2000
+#define F_FILLING 0x4000
class SvImpLBox
@@ -91,83 +91,83 @@ class SvImpLBox
friend class ImpLBSelEng;
friend class SvTreeListBox;
private:
- SvTreeListBox* pView;
- SvLBoxTreeList* pTree;
- SvLBoxEntry* pCursor;
- SvLBoxEntry* pStartEntry;
- SvLBoxEntry* pAnchor;
- SvLBoxEntry* pMostRightEntry;
- SvLBoxButton* pActiveButton;
- SvLBoxEntry* pActiveEntry;
- SvLBoxTab* pActiveTab;
- TabBar* pTabBar;
-
- ScrollBar aVerSBar;
- ScrollBar aHorSBar;
- ScrollBarBox aScrBarBox;
+ SvTreeListBox* pView;
+ SvLBoxTreeList* pTree;
+ SvLBoxEntry* pCursor;
+ SvLBoxEntry* pStartEntry;
+ SvLBoxEntry* pAnchor;
+ SvLBoxEntry* pMostRightEntry;
+ SvLBoxButton* pActiveButton;
+ SvLBoxEntry* pActiveEntry;
+ SvLBoxTab* pActiveTab;
+ TabBar* pTabBar;
+
+ ScrollBar aVerSBar;
+ ScrollBar aHorSBar;
+ ScrollBarBox aScrBarBox;
::svt::AccessibleFactoryAccess
m_aFactoryAccess;
- static Image* s_pDefCollapsed;
- static Image* s_pDefExpanded;
- static Image* s_pDefCollapsedHC;
- static Image* s_pDefExpandedHC;
- static oslInterlockedCount s_nImageRefCount; /// When 0 all static images will be destroyed
+ static Image* s_pDefCollapsed;
+ static Image* s_pDefExpanded;
+ static Image* s_pDefCollapsedHC;
+ static Image* s_pDefExpandedHC;
+ static oslInterlockedCount s_nImageRefCount; /// When 0 all static images will be destroyed
// Node Bitmaps
enum ImageType
{
- itNodeExpanded = 0, // node is expanded ( usually a bitmap showing a minus )
- itNodeCollapsed, // node is collapsed ( usually a bitmap showing a plus )
- itNodeDontKnow, // don't know the node state
- itEntryDefExpanded, // default for expanded entries
- itEntryDefCollapsed, // default for collapsed entries
+ itNodeExpanded = 0, // node is expanded ( usually a bitmap showing a minus )
+ itNodeCollapsed, // node is collapsed ( usually a bitmap showing a plus )
+ itNodeDontKnow, // don't know the node state
+ itEntryDefExpanded, // default for expanded entries
+ itEntryDefCollapsed, // default for collapsed entries
IT_IMAGE_COUNT
};
// all our images
- Image m_aNodeAndEntryImages[ IT_IMAGE_COUNT ];
+ Image m_aNodeAndEntryImages[ IT_IMAGE_COUNT ];
// plus the high contrast versions
- Image m_aNodeAndEntryImages_HC[ IT_IMAGE_COUNT ];
+ Image m_aNodeAndEntryImages_HC[ IT_IMAGE_COUNT ];
// wg. kompat. hier
- Size aOutputSize;
- SelectionEngine aSelEng;
- ImpLBSelEng aFctSet;
- Timer aAsyncBeginDragTimer;
- Point aAsyncBeginDragPos;
-
- long nYoffsNodeBmp;
- long nNodeBmpTabDistance; // typisch kleiner 0
- long nNodeBmpWidth;
- long nNextVerVisSize;
- long nMostRight;
- ULONG nVisibleCount; // Anzahl Zeilen im Control
- ULONG nCurUserEvent; //-1 == kein Userevent amn Laufen
- short nHorSBarHeight, nVerSBarWidth;
- USHORT nFlags;
- USHORT nCurTabPos;
-
- WinBits nWinBits;
+ Size aOutputSize;
+ SelectionEngine aSelEng;
+ ImpLBSelEng aFctSet;
+ Timer aAsyncBeginDragTimer;
+ Point aAsyncBeginDragPos;
+
+ long nYoffsNodeBmp;
+ long nNodeBmpTabDistance; // typisch kleiner 0
+ long nNodeBmpWidth;
+ long nNextVerVisSize;
+ long nMostRight;
+ ULONG nVisibleCount; // Anzahl Zeilen im Control
+ ULONG nCurUserEvent; //-1 == kein Userevent amn Laufen
+ short nHorSBarHeight, nVerSBarWidth;
+ USHORT nFlags;
+ USHORT nCurTabPos;
+
+ WinBits nWinBits;
ExtendedWinBits nExtendedWinBits;
- BOOL bSimpleTravel : 1; // ist TRUE bei SINGLE_SELECTION
- BOOL bUpdateMode : 1;
- BOOL bInVScrollHdl : 1;
- BOOL bAsyncBeginDrag : 1;
- BOOL bSubLstOpRet : 1; // open/close sublist with return/enter, defaulted with FALSE
- BOOL bSubLstOpLR : 1; // open/close sublist with cursor left/right, defaulted with FALSE
- BOOL bContextMenuHandling : 1;
- BOOL bIsCellFocusEnabled : 1;
+ BOOL bSimpleTravel : 1; // ist TRUE bei SINGLE_SELECTION
+ BOOL bUpdateMode : 1;
+ BOOL bInVScrollHdl : 1;
+ BOOL bAsyncBeginDrag : 1;
+ BOOL bSubLstOpRet : 1; // open/close sublist with return/enter, defaulted with FALSE
+ BOOL bSubLstOpLR : 1; // open/close sublist with cursor left/right, defaulted with FALSE
+ BOOL bContextMenuHandling : 1;
+ BOOL bIsCellFocusEnabled : 1;
sal_Bool bAreChildrenTransient;
- Point aEditClickPos;
- Timer aEditTimer;
+ Point aEditClickPos;
+ Timer aEditTimer;
// #102891# -------------------
- IntlWrapper * pIntlWrapper;
+ IntlWrapper * pIntlWrapper;
// #97680# --------------------
std::vector< short > aContextBmpWidthVector;
@@ -176,82 +176,82 @@ private:
DECL_LINK( BeginDragHdl, void* );
DECL_LINK( MyUserEvent,void*);
- void StopUserEvent();
+ void StopUserEvent();
- void InvalidateEntriesFrom( long nY ) const;
- void InvalidateEntry( long nY ) const;
- void ShowVerSBar();
+ void InvalidateEntriesFrom( long nY ) const;
+ void InvalidateEntry( long nY ) const;
+ void ShowVerSBar();
// setzt Thumb auf FirstEntryToDraw
- void SyncVerThumb();
- BOOL IsLineVisible( long nY ) const;
- long GetEntryLine( SvLBoxEntry* pEntry ) const;
- void FillView();
- void CursorDown();
- void CursorUp();
- void KeyLeftRight( long nDiff );
- void PageDown( USHORT nDelta );
- void PageUp( USHORT nDelta );
+ void SyncVerThumb();
+ BOOL IsLineVisible( long nY ) const;
+ long GetEntryLine( SvLBoxEntry* pEntry ) const;
+ void FillView();
+ void CursorDown();
+ void CursorUp();
+ void KeyLeftRight( long nDiff );
+ void PageDown( USHORT nDelta );
+ void PageUp( USHORT nDelta );
- void SetCursor( SvLBoxEntry* pEntry, BOOL bForceNoSelect = FALSE );
+ void SetCursor( SvLBoxEntry* pEntry, BOOL bForceNoSelect = FALSE );
- void DrawNet();
+ void DrawNet();
// ScrollBar-Handler
DECL_LINK( ScrollUpDownHdl, ScrollBar * );
DECL_LINK( ScrollLeftRightHdl, ScrollBar * );
DECL_LINK( EndScrollHdl, ScrollBar * );
- void SetNodeBmpYOffset( const Image& );
- void SetNodeBmpTabDistance();
+ void SetNodeBmpYOffset( const Image& );
+ void SetNodeBmpTabDistance();
// Selection-Engine
- SvLBoxEntry* MakePointVisible( const Point& rPoint,
+ SvLBoxEntry* MakePointVisible( const Point& rPoint,
BOOL bNotifyScroll=TRUE );
- void SetAnchorSelection( SvLBoxEntry* pOld,
+ void SetAnchorSelection( SvLBoxEntry* pOld,
SvLBoxEntry* pNewCursor );
- void BeginDrag();
- BOOL ButtonDownCheckCtrl( const MouseEvent& rMEvt,
- SvLBoxEntry* pEntry, long nY );
- BOOL MouseMoveCheckCtrl( const MouseEvent& rMEvt,
+ void BeginDrag();
+ BOOL ButtonDownCheckCtrl( const MouseEvent& rMEvt,
+ SvLBoxEntry* pEntry, long nY );
+ BOOL MouseMoveCheckCtrl( const MouseEvent& rMEvt,
SvLBoxEntry* pEntry );
- BOOL ButtonUpCheckCtrl( const MouseEvent& rMEvt );
- BOOL ButtonDownCheckExpand( const MouseEvent&,
+ BOOL ButtonUpCheckCtrl( const MouseEvent& rMEvt );
+ BOOL ButtonDownCheckExpand( const MouseEvent&,
SvLBoxEntry*,long nY );
- void PositionScrollBars( Size& rOSize, USHORT nMask );
- USHORT AdjustScrollBars( Size& rSize );
+ void PositionScrollBars( Size& rOSize, USHORT nMask );
+ USHORT AdjustScrollBars( Size& rSize );
- void BeginScroll();
- void EndScroll();
- BOOL InScroll() const { return (BOOL)(nFlags & F_IN_SCROLLING)!=0;}
- Rectangle GetVisibleArea() const;
- BOOL EntryReallyHit(SvLBoxEntry* pEntry,const Point& rPos,long nLine);
- void InitScrollBarBox();
- SvLBoxTab* NextTab( SvLBoxTab* );
+ void BeginScroll();
+ void EndScroll();
+ BOOL InScroll() const { return (BOOL)(nFlags & F_IN_SCROLLING)!=0;}
+ Rectangle GetVisibleArea() const;
+ BOOL EntryReallyHit(SvLBoxEntry* pEntry,const Point& rPos,long nLine);
+ void InitScrollBarBox();
+ SvLBoxTab* NextTab( SvLBoxTab* );
- BOOL SetMostRight( SvLBoxEntry* pEntry );
- void FindMostRight( SvLBoxEntry* EntryToIgnore );
- void FindMostRight( SvLBoxEntry* pParent, SvLBoxEntry* EntryToIgnore );
- void FindMostRight_Impl( SvLBoxEntry* pParent,SvLBoxEntry* EntryToIgnore );
- void NotifyTabsChanged();
+ BOOL SetMostRight( SvLBoxEntry* pEntry );
+ void FindMostRight( SvLBoxEntry* EntryToIgnore );
+ void FindMostRight( SvLBoxEntry* pParent, SvLBoxEntry* EntryToIgnore );
+ void FindMostRight_Impl( SvLBoxEntry* pParent,SvLBoxEntry* EntryToIgnore );
+ void NotifyTabsChanged();
- inline BOOL IsExpandable() const // if element at cursor can be expanded in general
+ inline BOOL IsExpandable() const // if element at cursor can be expanded in general
{ return pCursor->HasChilds() || pCursor->HasChildsOnDemand(); }
- inline BOOL IsNowExpandable() const // if element at cursor can be expanded at this moment
+ inline BOOL IsNowExpandable() const // if element at cursor can be expanded at this moment
{ return IsExpandable() && !pView->IsExpanded( pCursor ); }
- static void implInitDefaultNodeImages();
+ static void implInitDefaultNodeImages();
// #102891# -------------------
- void UpdateIntlWrapper();
+ void UpdateIntlWrapper();
// #97680# --------------------
- short UpdateContextBmpWidthVector( SvLBoxEntry* pEntry, short nWidth );
- void UpdateContextBmpWidthMax( SvLBoxEntry* pEntry );
- void UpdateContextBmpWidthVectorFromMovedEntry( SvLBoxEntry* pEntry );
+ short UpdateContextBmpWidthVector( SvLBoxEntry* pEntry, short nWidth );
+ void UpdateContextBmpWidthMax( SvLBoxEntry* pEntry );
+ void UpdateContextBmpWidthVectorFromMovedEntry( SvLBoxEntry* pEntry );
- void CalcCellFocusRect( SvLBoxEntry* pEntry, Rectangle& rRect );
+ void CalcCellFocusRect( SvLBoxEntry* pEntry, Rectangle& rRect );
inline sal_Bool AreChildrenTransient() const { return bAreChildrenTransient; }
inline void SetChildrenNotTransient() { bAreChildrenTransient = sal_False; }
@@ -260,115 +260,115 @@ public:
SvImpLBox( SvTreeListBox* pView, SvLBoxTreeList*, WinBits nWinStyle );
~SvImpLBox();
- void Clear();
- void SetWindowBits( WinBits nWinStyle );
- void SetExtendedWindowBits( ExtendedWinBits _nBits );
+ void Clear();
+ void SetWindowBits( WinBits nWinStyle );
+ void SetExtendedWindowBits( ExtendedWinBits _nBits );
ExtendedWinBits GetExtendedWindowBits() const { return nExtendedWinBits; }
- void SetModel( SvLBoxTreeList* pModel ) { pTree = pModel;}
-
- void EntryInserted( SvLBoxEntry*);
- void RemovingEntry( SvLBoxEntry* pEntry );
- void EntryRemoved();
- void MovingEntry( SvLBoxEntry* pEntry );
- void EntryMoved( SvLBoxEntry* pEntry );
- void TreeInserted( SvLBoxEntry* pEntry );
-
- void IndentChanged( short nIndentPixel );
- void EntryExpanded( SvLBoxEntry* pEntry );
- void EntryCollapsed( SvLBoxEntry* pEntry );
- void CollapsingEntry( SvLBoxEntry* pEntry );
- void EntrySelected( SvLBoxEntry*, BOOL bSelect );
-
- void Paint( const Rectangle& rRect );
- void RepaintSelectionItems();
- void MouseButtonDown( const MouseEvent& );
- void MouseButtonUp( const MouseEvent& );
- void MouseMove( const MouseEvent&);
- BOOL KeyInput( const KeyEvent& );
- void Resize();
- void GetFocus();
- void LoseFocus();
- void UpdateAll(
+ void SetModel( SvLBoxTreeList* pModel ) { pTree = pModel;}
+
+ void EntryInserted( SvLBoxEntry*);
+ void RemovingEntry( SvLBoxEntry* pEntry );
+ void EntryRemoved();
+ void MovingEntry( SvLBoxEntry* pEntry );
+ void EntryMoved( SvLBoxEntry* pEntry );
+ void TreeInserted( SvLBoxEntry* pEntry );
+
+ void IndentChanged( short nIndentPixel );
+ void EntryExpanded( SvLBoxEntry* pEntry );
+ void EntryCollapsed( SvLBoxEntry* pEntry );
+ void CollapsingEntry( SvLBoxEntry* pEntry );
+ void EntrySelected( SvLBoxEntry*, BOOL bSelect );
+
+ void Paint( const Rectangle& rRect );
+ void RepaintSelectionItems();
+ void MouseButtonDown( const MouseEvent& );
+ void MouseButtonUp( const MouseEvent& );
+ void MouseMove( const MouseEvent&);
+ BOOL KeyInput( const KeyEvent& );
+ void Resize();
+ void GetFocus();
+ void LoseFocus();
+ void UpdateAll(
BOOL bInvalidateCompleteView= TRUE,
BOOL bUpdateVerSBar = TRUE );
- void SetEntryHeight( short nHeight );
- void PaintEntry( SvLBoxEntry* pEntry );
- void InvalidateEntry( SvLBoxEntry* );
- void RecalcFocusRect();
-
- inline void SelectEntry( SvLBoxEntry* pEntry, BOOL bSelect );
- void SetDragDropMode( DragDropMode eDDMode );
- void SetSelectionMode( SelectionMode eSelMode );
- void SetAddMode( BOOL ) { aSelEng.AddAlways(FALSE); }
- BOOL IsAddMode() const { return aSelEng.IsAlwaysAdding(); }
-
- SvLBoxEntry* GetCurrentEntry() const { return pCursor; }
- BOOL IsEntryInView( SvLBoxEntry* ) const;
- SvLBoxEntry* GetEntry( const Point& rPos ) const;
+ void SetEntryHeight( short nHeight );
+ void PaintEntry( SvLBoxEntry* pEntry );
+ void InvalidateEntry( SvLBoxEntry* );
+ void RecalcFocusRect();
+
+ inline void SelectEntry( SvLBoxEntry* pEntry, BOOL bSelect );
+ void SetDragDropMode( DragDropMode eDDMode );
+ void SetSelectionMode( SelectionMode eSelMode );
+ void SetAddMode( BOOL ) { aSelEng.AddAlways(FALSE); }
+ BOOL IsAddMode() const { return aSelEng.IsAlwaysAdding(); }
+
+ SvLBoxEntry* GetCurrentEntry() const { return pCursor; }
+ BOOL IsEntryInView( SvLBoxEntry* ) const;
+ SvLBoxEntry* GetEntry( const Point& rPos ) const;
// gibt letzten Eintrag zurueck, falls Pos unter letztem Eintrag
- SvLBoxEntry* GetClickedEntry( const Point& ) const;
- SvLBoxEntry* GetCurEntry() const { return pCursor; }
- void SetCurEntry( SvLBoxEntry* );
- Point GetEntryPosition( SvLBoxEntry* ) const;
- void MakeVisible( SvLBoxEntry* pEntry, BOOL bMoveToTop=FALSE );
+ SvLBoxEntry* GetClickedEntry( const Point& ) const;
+ SvLBoxEntry* GetCurEntry() const { return pCursor; }
+ void SetCurEntry( SvLBoxEntry* );
+ Point GetEntryPosition( SvLBoxEntry* ) const;
+ void MakeVisible( SvLBoxEntry* pEntry, BOOL bMoveToTop=FALSE );
- void PaintDDCursor( SvLBoxEntry* );
+ void PaintDDCursor( SvLBoxEntry* );
// Images
- inline Image& implGetImageLocation( const ImageType _eType, BmpColorMode _eMode );
- inline Image& implGetImageLocationWithFallback( const ImageType _eType, BmpColorMode _eMode ) const;
+ inline Image& implGetImageLocation( const ImageType _eType, BmpColorMode _eMode );
+ inline Image& implGetImageLocationWithFallback( const ImageType _eType, BmpColorMode _eMode ) const;
- inline void SetExpandedNodeBmp( const Image& _rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline void SetCollapsedNodeBmp( const Image& _rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline void SetDontKnowNodeBmp( const Image& rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline void SetExpandedNodeBmp( const Image& _rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline void SetCollapsedNodeBmp( const Image& _rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline void SetDontKnowNodeBmp( const Image& rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
inline const Image& GetExpandedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
inline const Image& GetCollapsedNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- inline const Image& GetDontKnowNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
+ inline const Image& GetDontKnowNodeBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL ) const;
- inline void SetDefaultEntryExpBmp( const Image& _rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline void SetDefaultEntryColBmp( const Image& _rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline const Image& GetDefaultEntryExpBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL );
- inline const Image& GetDefaultEntryColBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline void SetDefaultEntryExpBmp( const Image& _rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline void SetDefaultEntryColBmp( const Image& _rImg, BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline const Image& GetDefaultEntryExpBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ inline const Image& GetDefaultEntryColBmp( BmpColorMode _eMode = BMP_COLOR_NORMAL );
- static const Image& GetDefaultExpandedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
- static const Image& GetDefaultCollapsedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ static const Image& GetDefaultExpandedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
+ static const Image& GetDefaultCollapsedNodeImage( BmpColorMode _eMode = BMP_COLOR_NORMAL );
- const Size& GetOutputSize() const { return aOutputSize;}
- void KeyUp( BOOL bPageUp, BOOL bNotifyScroll = TRUE );
- void KeyDown( BOOL bPageDown, BOOL bNotifyScroll = TRUE );
+ const Size& GetOutputSize() const { return aOutputSize;}
+ void KeyUp( BOOL bPageUp, BOOL bNotifyScroll = TRUE );
+ void KeyDown( BOOL bPageDown, BOOL bNotifyScroll = TRUE );
bool Command( const CommandEvent& rCEvt );
- void Invalidate();
- void DestroyAnchor() { pAnchor=0; aSelEng.Reset(); }
- void SelAllDestrAnch( BOOL bSelect,
+ void Invalidate();
+ void DestroyAnchor() { pAnchor=0; aSelEng.Reset(); }
+ void SelAllDestrAnch( BOOL bSelect,
BOOL bDestroyAnchor = TRUE,
BOOL bSingleSelToo = FALSE );
- void ShowCursor( BOOL bShow );
-
- BOOL RequestHelp( const HelpEvent& rHEvt );
- void EndSelection();
- BOOL IsNodeButton( const Point& rPosPixel, SvLBoxEntry* pEntry ) const;
- void RepaintScrollBars();
- void EnableAsyncDrag( BOOL b) { bAsyncBeginDrag = b; }
- void SetUpdateMode( BOOL );
- void SetUpdateModeFast( BOOL );
- BOOL GetUpdateMode() const { return bUpdateMode; }
- Rectangle GetClipRegionRect() const;
- BOOL HasHorScrollBar() const { return aHorSBar.IsVisible(); }
- void ShowFocusRect( const SvLBoxEntry* pEntry );
- void SetTabBar( TabBar* pTabBar );
- void CancelPendingEdit();
-
- void CallEventListeners( ULONG nEvent, void* pData = NULL );
+ void ShowCursor( BOOL bShow );
+
+ BOOL RequestHelp( const HelpEvent& rHEvt );
+ void EndSelection();
+ BOOL IsNodeButton( const Point& rPosPixel, SvLBoxEntry* pEntry ) const;
+ void RepaintScrollBars();
+ void EnableAsyncDrag( BOOL b) { bAsyncBeginDrag = b; }
+ void SetUpdateMode( BOOL );
+ void SetUpdateModeFast( BOOL );
+ BOOL GetUpdateMode() const { return bUpdateMode; }
+ Rectangle GetClipRegionRect() const;
+ BOOL HasHorScrollBar() const { return aHorSBar.IsVisible(); }
+ void ShowFocusRect( const SvLBoxEntry* pEntry );
+ void SetTabBar( TabBar* pTabBar );
+ void CancelPendingEdit();
+
+ void CallEventListeners( ULONG nEvent, void* pData = NULL );
/** Enables, that one cell of a tablistbox entry can be focused */
- inline BOOL IsCellFocusEnabled() const { return bIsCellFocusEnabled; }
- inline void EnableCellFocus() { bIsCellFocusEnabled = TRUE; }
- bool SetCurrentTabPos( USHORT _nNewPos );
- inline USHORT GetCurrentTabPos() const { return nCurTabPos; }
+ inline BOOL IsCellFocusEnabled() const { return bIsCellFocusEnabled; }
+ inline void EnableCellFocus() { bIsCellFocusEnabled = TRUE; }
+ bool SetCurrentTabPos( USHORT _nNewPos );
+ inline USHORT GetCurrentTabPos() const { return nCurTabPos; }
- bool IsSelectable( const SvLBoxEntry* pEntry );
+ bool IsSelectable( const SvLBoxEntry* pEntry );
};
inline Image& SvImpLBox::implGetImageLocation( const ImageType _eType, BmpColorMode _eMode )
@@ -408,7 +408,7 @@ inline void SvImpLBox::SetCollapsedNodeBmp( const Image& rImg, BmpColorMode _eMo
SetNodeBmpYOffset( rImg );
}
-inline const Image& SvImpLBox::GetDontKnowNodeBmp( BmpColorMode _eMode ) const
+inline const Image& SvImpLBox::GetDontKnowNodeBmp( BmpColorMode _eMode ) const
{
return implGetImageLocationWithFallback( itNodeDontKnow, _eMode );
}
@@ -433,12 +433,12 @@ inline void SvImpLBox::SetDefaultEntryColBmp( const Image& _rImg, BmpColorMode _
implGetImageLocation( itEntryDefCollapsed, _eMode ) = _rImg;
}
-inline const Image& SvImpLBox::GetDefaultEntryExpBmp( BmpColorMode _eMode )
+inline const Image& SvImpLBox::GetDefaultEntryExpBmp( BmpColorMode _eMode )
{
return implGetImageLocationWithFallback( itEntryDefExpanded, _eMode );
}
-inline const Image& SvImpLBox::GetDefaultEntryColBmp( BmpColorMode _eMode )
+inline const Image& SvImpLBox::GetDefaultEntryColBmp( BmpColorMode _eMode )
{
return implGetImageLocationWithFallback( itEntryDefCollapsed, _eMode );
}
diff --git a/svtools/source/inc/svimpicn.hxx b/svtools/source/inc/svimpicn.hxx
index 8d297e3476db..09427410d5c7 100644
--- a/svtools/source/inc/svimpicn.hxx
+++ b/svtools/source/inc/svimpicn.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,272 +39,272 @@ class SvImpIconView;
class ImpIcnCursor;
class SvPtrarr;
-#define PAINTFLAG_HOR_CENTERED 0x0001
-#define PAINTFLAG_VER_CENTERED 0x0002
+#define PAINTFLAG_HOR_CENTERED 0x0001
+#define PAINTFLAG_VER_CENTERED 0x0002
-#define SELRECT_BORDER_OFFS -7
+#define SELRECT_BORDER_OFFS -7
// Flags
-#define F_VER_SBARSIZE_WITH_HBAR 0x00000001
-#define F_HOR_SBARSIZE_WITH_VBAR 0x00000002
-#define F_IGNORE_NEXT_MOUSEMOVE 0x00000004 // OS/2 only
-#define F_ENTRY_REMOVED 0x00000008
+#define F_VER_SBARSIZE_WITH_HBAR 0x00000001
+#define F_HOR_SBARSIZE_WITH_VBAR 0x00000002
+#define F_IGNORE_NEXT_MOUSEMOVE 0x00000004 // OS/2 only
+#define F_ENTRY_REMOVED 0x00000008
// ist gesetzt, wenn nach Clear oder Ctor mind. einmal gepaintet wurde
-#define F_PAINTED 0x00000010
-#define F_ADD_MODE 0x00000020
-#define F_MOVING_SIBLING 0x00000040
-#define F_SELRECT_VISIBLE 0x00000080
-#define F_CMD_ARRIVED 0x00000100
-#define F_DRAG_SOURCE 0x00000200
-#define F_GRIDMODE 0x00000400
+#define F_PAINTED 0x00000010
+#define F_ADD_MODE 0x00000020
+#define F_MOVING_SIBLING 0x00000040
+#define F_SELRECT_VISIBLE 0x00000080
+#define F_CMD_ARRIVED 0x00000100
+#define F_DRAG_SOURCE 0x00000200
+#define F_GRIDMODE 0x00000400
// beim Einfuegen eines Eintrags ergibt sich dessen Position
// durch simples Addieren auf die Position des zuletzt eingefuegten Eintrags
-#define F_GRID_INSERT 0x00000800
-#define F_DOWN_CTRL 0x00001000
-#define F_DOWN_DESELECT 0x00002000
+#define F_GRID_INSERT 0x00000800
+#define F_DOWN_CTRL 0x00001000
+#define F_DOWN_DESELECT 0x00002000
// Hack fuer D&D: Hintergrund des Entries nicht painten
-#define F_NO_EMPHASIS 0x00004000
+#define F_NO_EMPHASIS 0x00004000
// Selektion per Gummiband
-#define F_RUBBERING 0x00008000
-#define F_START_EDITTIMER_IN_MOUSEUP 0x00010000
+#define F_RUBBERING 0x00008000
+#define F_START_EDITTIMER_IN_MOUSEUP 0x00010000
class SvImpIconView
{
friend class ImpIcnCursor;
- ScrollBar aVerSBar;
- ScrollBar aHorSBar;
- Rectangle aCurSelectionRect;
- SvPtrarr aSelectedRectList;
- MouseEvent aMouseMoveEvent;
- Timer aEditTimer; // fuer Inplace-Editieren
- Timer aMouseMoveTimer; // generiert MouseMoves bei Gummibandselektion
+ ScrollBar aVerSBar;
+ ScrollBar aHorSBar;
+ Rectangle aCurSelectionRect;
+ SvPtrarr aSelectedRectList;
+ MouseEvent aMouseMoveEvent;
+ Timer aEditTimer; // fuer Inplace-Editieren
+ Timer aMouseMoveTimer; // generiert MouseMoves bei Gummibandselektion
// Boundrect des zuletzt eingefuegten Entries
- Rectangle aPrevBoundRect;
- Size aOutputSize; // Pixel
- Size aVirtOutputSize; // expandiert automatisch
- Point aDDLastEntryPos;
- Point aDDLastRectPos;
+ Rectangle aPrevBoundRect;
+ Size aOutputSize; // Pixel
+ Size aVirtOutputSize; // expandiert automatisch
+ Point aDDLastEntryPos;
+ Point aDDLastRectPos;
SvLBoxTreeList* pModel;
- SvIconView* pView;
- ImpIcnCursor* pImpCursor;
- long nMaxVirtWidth; // max.breite aVirtOutputSize
- SvPtrarr* pZOrderList;
- long nGridDX,
+ SvIconView* pView;
+ ImpIcnCursor* pImpCursor;
+ long nMaxVirtWidth; // max.breite aVirtOutputSize
+ SvPtrarr* pZOrderList;
+ long nGridDX,
nGridDY;
- long nHorSBarHeight,
+ long nHorSBarHeight,
nVerSBarWidth;
- WinBits nWinBits;
- int nViewMode;
- long nHorDist;
- long nVerDist;
- long nMaxBmpWidth;
- long nMaxBmpHeight;
- long nMaxTextWidth;
- long nMaxBoundHeight; // Hoehe des hoechsten BoundRects
- ULONG nFlags;
- ULONG nCurUserEvent;
- SvLBoxEntry* pCurParent;
- SvLBoxEntry* pCursor;
- SvLBoxEntry* pNextCursor; // wird in MovingEntry gesetzt und ist
+ WinBits nWinBits;
+ int nViewMode;
+ long nHorDist;
+ long nVerDist;
+ long nMaxBmpWidth;
+ long nMaxBmpHeight;
+ long nMaxTextWidth;
+ long nMaxBoundHeight; // Hoehe des hoechsten BoundRects
+ ULONG nFlags;
+ ULONG nCurUserEvent;
+ SvLBoxEntry* pCurParent;
+ SvLBoxEntry* pCursor;
+ SvLBoxEntry* pNextCursor; // wird in MovingEntry gesetzt und ist
// nur in EntryMoved gueltig!
- SvLBoxEntry* pDDRefEntry;
- VirtualDevice* pDDDev;
- VirtualDevice* pDDBufDev;
+ SvLBoxEntry* pDDRefEntry;
+ VirtualDevice* pDDDev;
+ VirtualDevice* pDDBufDev;
VirtualDevice* pDDTempDev;
SvIconViewTextMode eTextMode;
- BOOL bMustRecalcBoundingRects;
+ BOOL bMustRecalcBoundingRects;
- void CheckAllSizes();
- void CheckSizes( SvLBoxEntry* pEntry,
+ void CheckAllSizes();
+ void CheckSizes( SvLBoxEntry* pEntry,
const SvIcnVwDataEntry* pViewData = 0 );
- void ShowCursor( BOOL bShow );
+ void ShowCursor( BOOL bShow );
- void SetNextEntryPos(const Point& rPos);
- Point FindNextEntryPos( const Size& rBoundSize );
- void ImpArrange();
- void AdjustVirtSize( const Rectangle& );
- void ResetVirtSize();
- void CheckScrollBars();
+ void SetNextEntryPos(const Point& rPos);
+ Point FindNextEntryPos( const Size& rBoundSize );
+ void ImpArrange();
+ void AdjustVirtSize( const Rectangle& );
+ void ResetVirtSize();
+ void CheckScrollBars();
DECL_LINK( ScrollUpDownHdl, ScrollBar * );
DECL_LINK( ScrollLeftRightHdl, ScrollBar * );
DECL_LINK( MouseMoveTimeoutHdl, Timer* );
DECL_LINK( EditTimeoutHdl, Timer* );
DECL_LINK( UserEventHdl, void* );
- void AdjustScrollBars();
- void PositionScrollBars( long nRealWidth, long nRealHeight );
- void CalcDocPos( Point& aMousePos );
- BOOL GetResizeRect( Rectangle& );
- void PaintResizeRect( const Rectangle& );
- SvLBoxEntry* GetNewCursor();
- void ToggleSelection( SvLBoxEntry* );
- void DeselectAllBut( SvLBoxEntry* );
- void Center( SvLBoxEntry* pEntry, SvIcnVwDataEntry* ) const;
- void StopEditTimer() { aEditTimer.Stop(); }
- void StartEditTimer() { aEditTimer.Start(); }
- void ImpHideDDIcon();
- void ImpDrawXORRect( const Rectangle& rRect );
- void AddSelectedRect( const Rectangle&, short nOffset = SELRECT_BORDER_OFFS );
- void ClearSelectedRectList();
- Rectangle CalcMaxTextRect( const SvLBoxEntry* pEntry,
+ void AdjustScrollBars();
+ void PositionScrollBars( long nRealWidth, long nRealHeight );
+ void CalcDocPos( Point& aMousePos );
+ BOOL GetResizeRect( Rectangle& );
+ void PaintResizeRect( const Rectangle& );
+ SvLBoxEntry* GetNewCursor();
+ void ToggleSelection( SvLBoxEntry* );
+ void DeselectAllBut( SvLBoxEntry* );
+ void Center( SvLBoxEntry* pEntry, SvIcnVwDataEntry* ) const;
+ void StopEditTimer() { aEditTimer.Stop(); }
+ void StartEditTimer() { aEditTimer.Start(); }
+ void ImpHideDDIcon();
+ void ImpDrawXORRect( const Rectangle& rRect );
+ void AddSelectedRect( const Rectangle&, short nOffset = SELRECT_BORDER_OFFS );
+ void ClearSelectedRectList();
+ Rectangle CalcMaxTextRect( const SvLBoxEntry* pEntry,
const SvIcnVwDataEntry* pViewData ) const;
- void ClipAtVirtOutRect( Rectangle& rRect ) const;
- void AdjustAtGrid( const SvPtrarr& rRow, SvLBoxEntry* pStart=0 );
- Point AdjustAtGrid(
+ void ClipAtVirtOutRect( Rectangle& rRect ) const;
+ void AdjustAtGrid( const SvPtrarr& rRow, SvLBoxEntry* pStart=0 );
+ Point AdjustAtGrid(
const Rectangle& rCenterRect, // "Schwerpunkt" des Objekts (typ. Bmp-Rect)
const Rectangle& rBoundRect ) const;
SvIconViewTextMode GetEntryTextModeSmart( const SvLBoxEntry* pEntry,
const SvIcnVwDataEntry* pViewData ) const;
- BOOL CheckVerScrollBar();
- BOOL CheckHorScrollBar();
- void CancelUserEvent();
+ BOOL CheckVerScrollBar();
+ BOOL CheckHorScrollBar();
+ void CancelUserEvent();
public:
SvImpIconView( SvIconView* pView, SvLBoxTreeList*, WinBits nWinStyle );
~SvImpIconView();
- void Clear( BOOL bInCtor = FALSE );
- void SetWindowBits( WinBits nWinStyle );
- void SetModel( SvLBoxTreeList* pTree, SvLBoxEntry* pParent )
+ void Clear( BOOL bInCtor = FALSE );
+ void SetWindowBits( WinBits nWinStyle );
+ void SetModel( SvLBoxTreeList* pTree, SvLBoxEntry* pParent )
{ pModel = pTree; SetCurParent(pParent); }
- void EntryInserted( SvLBoxEntry*);
- void RemovingEntry( SvLBoxEntry* pEntry );
- void EntryRemoved();
- void MovingEntry( SvLBoxEntry* pEntry );
- void EntryMoved( SvLBoxEntry* pEntry );
- void TreeInserted( SvLBoxEntry* pEntry );
- void ChangedFont();
- void ModelHasEntryInvalidated( SvListEntry* );
- void EntryExpanded( SvLBoxEntry* pEntry );
- void EntryCollapsed( SvLBoxEntry* pEntry );
- void CollapsingEntry( SvLBoxEntry* pEntry );
- void EntrySelected( SvLBoxEntry*, BOOL bSelect );
-
- void Paint( const Rectangle& rRect );
- void RepaintSelectionItems();
- void MouseButtonDown( const MouseEvent& );
- void MouseButtonUp( const MouseEvent& );
- void MouseMove( const MouseEvent&);
- BOOL KeyInput( const KeyEvent& );
- void Resize();
- void GetFocus();
- void LoseFocus();
- void UpdateAll();
- void PaintEntry( SvLBoxEntry* pEntry,
+ void EntryInserted( SvLBoxEntry*);
+ void RemovingEntry( SvLBoxEntry* pEntry );
+ void EntryRemoved();
+ void MovingEntry( SvLBoxEntry* pEntry );
+ void EntryMoved( SvLBoxEntry* pEntry );
+ void TreeInserted( SvLBoxEntry* pEntry );
+ void ChangedFont();
+ void ModelHasEntryInvalidated( SvListEntry* );
+ void EntryExpanded( SvLBoxEntry* pEntry );
+ void EntryCollapsed( SvLBoxEntry* pEntry );
+ void CollapsingEntry( SvLBoxEntry* pEntry );
+ void EntrySelected( SvLBoxEntry*, BOOL bSelect );
+
+ void Paint( const Rectangle& rRect );
+ void RepaintSelectionItems();
+ void MouseButtonDown( const MouseEvent& );
+ void MouseButtonUp( const MouseEvent& );
+ void MouseMove( const MouseEvent&);
+ BOOL KeyInput( const KeyEvent& );
+ void Resize();
+ void GetFocus();
+ void LoseFocus();
+ void UpdateAll();
+ void PaintEntry( SvLBoxEntry* pEntry,
SvIcnVwDataEntry* pViewData = 0 );
- void PaintEntry( SvLBoxEntry*, const Point&,
+ void PaintEntry( SvLBoxEntry*, const Point&,
SvIcnVwDataEntry* pViewData = 0, OutputDevice* pOut = 0);
- void SetEntryPosition( SvLBoxEntry* pEntry, const Point& rPos,
+ void SetEntryPosition( SvLBoxEntry* pEntry, const Point& rPos,
BOOL bAdjustRow = FALSE,
BOOL bCheckScrollBars = FALSE );
- void InvalidateEntry( SvLBoxEntry* );
- void ViewDataInitialized( SvLBoxEntry* pEntry );
- SvLBoxItem* GetItem( SvLBoxEntry*, const Point& rAbsPos );
+ void InvalidateEntry( SvLBoxEntry* );
+ void ViewDataInitialized( SvLBoxEntry* pEntry );
+ SvLBoxItem* GetItem( SvLBoxEntry*, const Point& rAbsPos );
- void SetNoSelection();
- void SetDragDropMode( DragDropMode eDDMode );
- void SetSelectionMode( SelectionMode eSelMode );
+ void SetNoSelection();
+ void SetDragDropMode( DragDropMode eDDMode );
+ void SetSelectionMode( SelectionMode eSelMode );
- void SttDrag( const Point& rPos );
- void EndDrag();
+ void SttDrag( const Point& rPos );
+ void EndDrag();
- SvLBoxEntry* GetCurEntry() const { return pCursor; }
- void SetCursor( SvLBoxEntry* );
+ SvLBoxEntry* GetCurEntry() const { return pCursor; }
+ void SetCursor( SvLBoxEntry* );
- BOOL IsEntryInView( SvLBoxEntry* );
- SvLBoxEntry* GetEntry( const Point& rDocPos );
- SvLBoxEntry* GetNextEntry( const Point& rDocPos, SvLBoxEntry* pCurEntry );
- SvLBoxEntry* GetPrevEntry( const Point& rDocPos, SvLBoxEntry* pCurEntry );
+ BOOL IsEntryInView( SvLBoxEntry* );
+ SvLBoxEntry* GetEntry( const Point& rDocPos );
+ SvLBoxEntry* GetNextEntry( const Point& rDocPos, SvLBoxEntry* pCurEntry );
+ SvLBoxEntry* GetPrevEntry( const Point& rDocPos, SvLBoxEntry* pCurEntry );
- Point GetEntryPosition( SvLBoxEntry* );
- void MakeVisible( SvLBoxEntry* pEntry );
+ Point GetEntryPosition( SvLBoxEntry* );
+ void MakeVisible( SvLBoxEntry* pEntry );
- void Arrange();
+ void Arrange();
- void SetSpaceBetweenEntries( long nHor, long Ver );
- long GetHorSpaceBetweenEntries() const { return nHorDist; }
- long GetVerSpaceBetweenEntries() const { return nVerDist; }
+ void SetSpaceBetweenEntries( long nHor, long Ver );
+ long GetHorSpaceBetweenEntries() const { return nHorDist; }
+ long GetVerSpaceBetweenEntries() const { return nVerDist; }
- Rectangle CalcFocusRect( SvLBoxEntry* );
+ Rectangle CalcFocusRect( SvLBoxEntry* );
- Rectangle CalcBmpRect( SvLBoxEntry*, const Point* pPos = 0,
+ Rectangle CalcBmpRect( SvLBoxEntry*, const Point* pPos = 0,
SvIcnVwDataEntry* pViewData=0 );
- Rectangle CalcTextRect( SvLBoxEntry*, SvLBoxString* pItem = 0,
+ Rectangle CalcTextRect( SvLBoxEntry*, SvLBoxString* pItem = 0,
const Point* pPos = 0,
BOOL bForInplaceEdit = FALSE,
SvIcnVwDataEntry* pViewData = 0 );
- long CalcBoundingWidth( SvLBoxEntry*, const SvIcnVwDataEntry* pViewData = 0) const;
- long CalcBoundingHeight( SvLBoxEntry*, const SvIcnVwDataEntry* pViewData= 0 ) const;
- Size CalcBoundingSize( SvLBoxEntry*,
+ long CalcBoundingWidth( SvLBoxEntry*, const SvIcnVwDataEntry* pViewData = 0) const;
+ long CalcBoundingHeight( SvLBoxEntry*, const SvIcnVwDataEntry* pViewData= 0 ) const;
+ Size CalcBoundingSize( SvLBoxEntry*,
SvIcnVwDataEntry* pViewData = 0 ) const;
- void FindBoundingRect( SvLBoxEntry* pEntry,
+ void FindBoundingRect( SvLBoxEntry* pEntry,
SvIcnVwDataEntry* pViewData = 0 );
// berechnet alle BoundRects neu
- void RecalcAllBoundingRects();
+ void RecalcAllBoundingRects();
// berechnet alle ungueltigen BoundRects neu
- void RecalcAllBoundingRectsSmart();
+ void RecalcAllBoundingRectsSmart();
const Rectangle& GetBoundingRect( SvLBoxEntry*,
SvIcnVwDataEntry* pViewData=0);
- void InvalidateBoundingRect( SvLBoxEntry* );
- void InvalidateBoundingRect( Rectangle& rRect ) { rRect.Right() = LONG_MAX; }
- BOOL IsBoundingRectValid( const Rectangle& rRect ) const { return (BOOL)( rRect.Right() != LONG_MAX ); }
+ void InvalidateBoundingRect( SvLBoxEntry* );
+ void InvalidateBoundingRect( Rectangle& rRect ) { rRect.Right() = LONG_MAX; }
+ BOOL IsBoundingRectValid( const Rectangle& rRect ) const { return (BOOL)( rRect.Right() != LONG_MAX ); }
- void PaintEmphasis( const Rectangle&, BOOL bSelected,
+ void PaintEmphasis( const Rectangle&, BOOL bSelected,
BOOL bCursored, OutputDevice* pOut = 0 );
- void PaintItem( const Rectangle& rRect, SvLBoxItem* pItem,
+ void PaintItem( const Rectangle& rRect, SvLBoxItem* pItem,
SvLBoxEntry* pEntry, USHORT nPaintFlags, OutputDevice* pOut = 0 );
// berechnet alle BoundingRects neu, wenn bMustRecalcBoundingRects == TRUE
- void CheckBoundingRects() { if (bMustRecalcBoundingRects) RecalcAllBoundingRects(); }
+ void CheckBoundingRects() { if (bMustRecalcBoundingRects) RecalcAllBoundingRects(); }
// berechnet alle invalidierten BoundingRects neu
- void UpdateBoundingRects();
- void ShowTargetEmphasis( SvLBoxEntry* pEntry, BOOL bShow );
- SvLBoxEntry* GetDropTarget( const Point& rPosPixel );
- BOOL NotifyMoving( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
+ void UpdateBoundingRects();
+ void ShowTargetEmphasis( SvLBoxEntry* pEntry, BOOL bShow );
+ SvLBoxEntry* GetDropTarget( const Point& rPosPixel );
+ BOOL NotifyMoving( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
SvLBoxEntry*& rpNewParent, ULONG& rNewChildPos );
- BOOL NotifyCopying( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
+ BOOL NotifyCopying( SvLBoxEntry* pTarget, SvLBoxEntry* pEntry,
SvLBoxEntry*& rpNewParent, ULONG& rNewChildPos );
- void WriteDragServerInfo( const Point&, SvLBoxDDInfo* );
- void ReadDragServerInfo( const Point&, SvLBoxDDInfo* );
- void ToTop( SvLBoxEntry* );
+ void WriteDragServerInfo( const Point&, SvLBoxDDInfo* );
+ void ReadDragServerInfo( const Point&, SvLBoxDDInfo* );
+ void ToTop( SvLBoxEntry* );
- void SetCurParent( SvLBoxEntry* pNewParent );
- SvLBoxEntry* GetCurParent() const { return pCurParent; }
- USHORT GetSelectionCount() const;
- void SetGrid( long nDX, long nDY );
- void Scroll( long nDeltaX, long nDeltaY, BOOL bScrollBar = FALSE );
- const Size& GetItemSize( SvIconView* pView, SvLBoxEntry*, SvLBoxItem*,
+ void SetCurParent( SvLBoxEntry* pNewParent );
+ SvLBoxEntry* GetCurParent() const { return pCurParent; }
+ USHORT GetSelectionCount() const;
+ void SetGrid( long nDX, long nDY );
+ void Scroll( long nDeltaX, long nDeltaY, BOOL bScrollBar = FALSE );
+ const Size& GetItemSize( SvIconView* pView, SvLBoxEntry*, SvLBoxItem*,
const SvIcnVwDataEntry* pViewData = 0 ) const;
- void PrepareCommandEvent( const Point& rPt );
+ void PrepareCommandEvent( const Point& rPt );
- void HideDDIcon();
- void ShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
- void HideShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
+ void HideDDIcon();
+ void ShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
+ void HideShowDDIcon( SvLBoxEntry* pRefEntry, const Point& rPos );
- SvLBoxEntry* mpViewData;
+ SvLBoxEntry* mpViewData;
- BOOL IsOver( SvPtrarr* pSelectedRectList, const Rectangle& rEntryBoundRect ) const;
- void SelectRect( const Rectangle&, BOOL bAdd = TRUE,
+ BOOL IsOver( SvPtrarr* pSelectedRectList, const Rectangle& rEntryBoundRect ) const;
+ void SelectRect( const Rectangle&, BOOL bAdd = TRUE,
SvPtrarr* pOtherRects = 0,
short nOffs = SELRECT_BORDER_OFFS );
- void DrawSelectionRect( const Rectangle& );
- void HideSelectionRect();
- void CalcScrollOffsets( const Point& rRefPosPixel,
+ void DrawSelectionRect( const Rectangle& );
+ void HideSelectionRect();
+ void CalcScrollOffsets( const Point& rRefPosPixel,
long& rX, long& rY, BOOL bDragDrop = FALSE,
USHORT nBorderWidth = 10 );
- void EndTracking();
- BOOL IsTextHit( SvLBoxEntry* pEntry, const Point& rDocPos );
- void MakeVisible( const Rectangle& rDocPos,BOOL bInScrollBarEvent=FALSE);
- void AdjustAtGrid( SvLBoxEntry* pStart = 0 );
- void SetTextMode( SvIconViewTextMode, SvLBoxEntry* pEntry = 0 );
+ void EndTracking();
+ BOOL IsTextHit( SvLBoxEntry* pEntry, const Point& rDocPos );
+ void MakeVisible( const Rectangle& rDocPos,BOOL bInScrollBarEvent=FALSE);
+ void AdjustAtGrid( SvLBoxEntry* pStart = 0 );
+ void SetTextMode( SvIconViewTextMode, SvLBoxEntry* pEntry = 0 );
SvIconViewTextMode GetTextMode( const SvLBoxEntry* pEntry = 0,
const SvIcnVwDataEntry* pViewData = 0 ) const;
- void ShowFocusRect( const SvLBoxEntry* pEntry );
+ void ShowFocusRect( const SvLBoxEntry* pEntry );
};
inline void SvImpIconView::MakeVisible( SvLBoxEntry* pEntry )
diff --git a/svtools/source/inc/svtaccessiblefactory.hxx b/svtools/source/inc/svtaccessiblefactory.hxx
index 909f113cbf60..380a06834589 100644
--- a/svtools/source/inc/svtaccessiblefactory.hxx
+++ b/svtools/source/inc/svtaccessiblefactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/inc/unoiface.hxx b/svtools/source/inc/unoiface.hxx
index 5b5667aad85e..ab9ba5c6559b 100644
--- a/svtools/source/inc/unoiface.hxx
+++ b/svtools/source/inc/unoiface.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,12 +54,12 @@ namespace com { namespace sun { namespace star { namespace util {
class SvNumberFormatsSupplierObj;
-// ----------------------------------------------------
-// class VCLXMultiLineEdit
-// ----------------------------------------------------
-class VCLXMultiLineEdit : public ::com::sun::star::awt::XTextComponent,
- public ::com::sun::star::awt::XTextArea,
- public ::com::sun::star::awt::XTextLayoutConstrains,
+// ----------------------------------------------------
+// class VCLXMultiLineEdit
+// ----------------------------------------------------
+class VCLXMultiLineEdit : public ::com::sun::star::awt::XTextComponent,
+ public ::com::sun::star::awt::XTextArea,
+ public ::com::sun::star::awt::XTextLayoutConstrains,
public VCLXWindow
{
private:
@@ -74,13 +74,13 @@ public:
~VCLXMultiLineEdit();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
- void SAL_CALL release() throw() { VCLXWindow::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
+ void SAL_CALL release() throw() { VCLXWindow::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XTextComponent
void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
@@ -120,29 +120,29 @@ public:
};
-// ----------------------------------------------------
-// class VCLXFileControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXFileControl
+// ----------------------------------------------------
class VCLXFileControl : ::com::sun::star::awt::XTextComponent, public ::com::sun::star::awt::XTextLayoutConstrains, public VCLXWindow
{
protected:
- DECL_LINK( ModifyHdl, Edit* );
- TextListenerMultiplexer maTextListeners;
+ DECL_LINK( ModifyHdl, Edit* );
+ TextListenerMultiplexer maTextListeners;
public:
VCLXFileControl();
~VCLXFileControl();
- void SetWindow( Window* pWindow );
+ void SetWindow( Window* pWindow );
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
- void SAL_CALL release() throw() { VCLXWindow::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
+ void SAL_CALL release() throw() { VCLXWindow::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XTextComponent
void SAL_CALL addTextListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTextListener >& l ) throw(::com::sun::star::uno::RuntimeException);
@@ -173,19 +173,19 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class SVTXFormattedField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXFormattedField
+// ----------------------------------------------------
class SVTXFormattedField : public VCLXSpinField
{
protected:
- SvNumberFormatsSupplierObj* m_pCurrentSupplier;
- sal_Bool bIsStandardSupplier;
+ SvNumberFormatsSupplierObj* m_pCurrentSupplier;
+ sal_Bool bIsStandardSupplier;
- sal_Int32 nKeyToSetDelayed;
-
- FormattedField* GetFormattedField() const { return (FormattedField*)GetWindow(); }
+ sal_Int32 nKeyToSetDelayed;
+
+ FormattedField* GetFormattedField() const { return (FormattedField*)GetWindow(); }
public:
SVTXFormattedField();
@@ -197,29 +197,29 @@ public:
protected:
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > getFormatsSupplier(void) const;
- void setFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xSupplier);
- sal_Int32 getFormatKey(void) const;
- void setFormatKey(sal_Int32 nKey);
+ void setFormatsSupplier(const ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > & xSupplier);
+ sal_Int32 getFormatKey(void) const;
+ void setFormatKey(sal_Int32 nKey);
- void SetValue(const ::com::sun::star::uno::Any& rValue);
- ::com::sun::star::uno::Any GetValue();
+ void SetValue(const ::com::sun::star::uno::Any& rValue);
+ ::com::sun::star::uno::Any GetValue();
- void SetTreatAsNumber(sal_Bool bSet);
- sal_Bool GetTreatAsNumber();
+ void SetTreatAsNumber(sal_Bool bSet);
+ sal_Bool GetTreatAsNumber();
- void SetDefaultValue(const ::com::sun::star::uno::Any& rValue);
- ::com::sun::star::uno::Any GetDefaultValue();
+ void SetDefaultValue(const ::com::sun::star::uno::Any& rValue);
+ ::com::sun::star::uno::Any GetDefaultValue();
- void SetMinValue(const ::com::sun::star::uno::Any& rValue);
- ::com::sun::star::uno::Any GetMinValue();
+ void SetMinValue(const ::com::sun::star::uno::Any& rValue);
+ ::com::sun::star::uno::Any GetMinValue();
- void SetMaxValue(const ::com::sun::star::uno::Any& rValue);
- ::com::sun::star::uno::Any GetMaxValue();
+ void SetMaxValue(const ::com::sun::star::uno::Any& rValue);
+ ::com::sun::star::uno::Any GetMaxValue();
- void NotifyTextListeners();
- ::com::sun::star::uno::Any convertEffectiveValue(const ::com::sun::star::uno::Any& rValue);
+ void NotifyTextListeners();
+ ::com::sun::star::uno::Any convertEffectiveValue(const ::com::sun::star::uno::Any& rValue);
- virtual void SetWindow(Window* _pWindow);
+ virtual void SetWindow(Window* _pWindow);
static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
@@ -227,9 +227,9 @@ protected:
-// ----------------------------------------------------
-// class SVTXRoadmap
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXRoadmap
+// ----------------------------------------------------
namespace svt
{
@@ -249,17 +249,17 @@ typedef ::cppu::ImplInheritanceHelper3 < VCLXGraphicControl
, ::com::sun::star::awt::XItemEventBroadcaster
> SVTXRoadmap_Base;
class SVTXRoadmap : public SVTXRoadmap_Base
-
-
+
+
{
private:
- ItemListenerMultiplexer maItemListeners;
-
+ ItemListenerMultiplexer maItemListeners;
+
RMItemData CurRMItemData;
RMItemData GetRMItemData( const ::com::sun::star::container::ContainerEvent& _rEvent );
-protected:
- ::svt::ORoadmap* GetRoadmap() const { return (::svt::ORoadmap*)GetWindow(); }
+protected:
+ ::svt::ORoadmap* GetRoadmap() const { return (::svt::ORoadmap*)GetWindow(); }
void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
~SVTXRoadmap();
@@ -276,8 +276,8 @@ public:
// XContainerListener
void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
// XItemEventBroadcaster
virtual void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw (::com::sun::star::uno::RuntimeException);
@@ -297,9 +297,9 @@ protected:
-// ----------------------------------------------------
-// class SVTXNumericField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXNumericField
+// ----------------------------------------------------
class SVTXNumericField : public ::com::sun::star::awt::XNumericField, public SVTXFormattedField
{
public:
@@ -307,13 +307,13 @@ public:
~SVTXNumericField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { SVTXFormattedField::acquire(); }
- void SAL_CALL release() throw() { SVTXFormattedField::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { SVTXFormattedField::acquire(); }
+ void SAL_CALL release() throw() { SVTXFormattedField::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XNumericField
void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
@@ -337,9 +337,9 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
- // ----------------------------------------------------
-// class VCLXCurrencyField
-// ----------------------------------------------------
+ // ----------------------------------------------------
+// class VCLXCurrencyField
+// ----------------------------------------------------
class SVTXCurrencyField : public ::com::sun::star::awt::XCurrencyField, public SVTXFormattedField
{
public:
@@ -347,13 +347,13 @@ public:
~SVTXCurrencyField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { SVTXFormattedField::acquire(); }
- void SAL_CALL release() throw() { SVTXFormattedField::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { SVTXFormattedField::acquire(); }
+ void SAL_CALL release() throw() { SVTXFormattedField::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XVclWindowPeer
void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
@@ -381,40 +381,40 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXProgressBar
-// ----------------------------------------------------
-class VCLXProgressBar : public ::com::sun::star::awt::XProgressBar,
+// ----------------------------------------------------
+// class VCLXProgressBar
+// ----------------------------------------------------
+class VCLXProgressBar : public ::com::sun::star::awt::XProgressBar,
public VCLXWindow
{
private:
- sal_Int32 m_nValue;
- sal_Int32 m_nValueMin;
- sal_Int32 m_nValueMax;
+ sal_Int32 m_nValue;
+ sal_Int32 m_nValueMin;
+ sal_Int32 m_nValueMax;
protected:
- void ImplUpdateValue();
+ void ImplUpdateValue();
public:
VCLXProgressBar();
~VCLXProgressBar();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
- void SAL_CALL release() throw() { VCLXWindow::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
+ void SAL_CALL release() throw() { VCLXWindow::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
- // ::com::sun::star::awt::XProgressBar
+ // ::com::sun::star::awt::XProgressBar
void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL setValue( sal_Int32 nValue ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException );
+ void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException );
sal_Int32 SAL_CALL getValue() throw(::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::awt::VclWindowPeer
void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
@@ -423,9 +423,9 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class SVTXDateField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXDateField
+// ----------------------------------------------------
class SVTXDateField : public VCLXDateField
{
public:
@@ -439,6 +439,6 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-#endif // _SVT_UNOIFACE_HXX
+#endif // _SVT_UNOIFACE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/inc/xbmread.hxx b/svtools/source/inc/xbmread.hxx
index 030a09a6185e..537c2e98111b 100644
--- a/svtools/source/inc/xbmread.hxx
+++ b/svtools/source/inc/xbmread.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,30 +57,30 @@ enum ReadState
class XBMReader : public GraphicReader
{
- SvStream& rIStm;
- Bitmap aBmp1;
- BitmapWriteAccess* pAcc1;
- short* pHexTable;
- BitmapColor aWhite;
- BitmapColor aBlack;
- long nLastPos;
- long nWidth;
- long nHeight;
- BOOL bStatus;
-
- void InitTable();
- ByteString FindTokenLine( SvStream* pInStm, const char* pTok1,
+ SvStream& rIStm;
+ Bitmap aBmp1;
+ BitmapWriteAccess* pAcc1;
+ short* pHexTable;
+ BitmapColor aWhite;
+ BitmapColor aBlack;
+ long nLastPos;
+ long nWidth;
+ long nHeight;
+ BOOL bStatus;
+
+ void InitTable();
+ ByteString FindTokenLine( SvStream* pInStm, const char* pTok1,
const char* pTok2 = NULL, const char* pTok3 = NULL );
- long ParseDefine( const sal_Char* pDefine );
- BOOL ParseData( SvStream* pInStm, const ByteString& aLastLine, XBMFormat eFormat );
+ long ParseDefine( const sal_Char* pDefine );
+ BOOL ParseData( SvStream* pInStm, const ByteString& aLastLine, XBMFormat eFormat );
public:
XBMReader( SvStream& rStm );
- virtual ~XBMReader();
+ virtual ~XBMReader();
- ReadState ReadXBM( Graphic& rGraphic );
+ ReadState ReadXBM( Graphic& rGraphic );
};
#endif // _XBMPRIVATE
diff --git a/svtools/source/inc/xpmread.hxx b/svtools/source/inc/xpmread.hxx
index 0ef3d625525a..e81dee92b814 100644
--- a/svtools/source/inc/xpmread.hxx
+++ b/svtools/source/inc/xpmread.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,24 +33,24 @@
#ifdef _XPMPRIVATE
-#define XPMTEMPBUFSIZE 0x00008000
-#define XPMSTRINGBUF 0x00008000
+#define XPMTEMPBUFSIZE 0x00008000
+#define XPMSTRINGBUF 0x00008000
-#define XPMIDENTIFIER 0x00000001 // mnIdentifier includes on of the six phases
-#define XPMDEFINITION 0x00000002 // the XPM format consists of
-#define XPMVALUES 0x00000003
-#define XPMCOLORS 0x00000004
-#define XPMPIXELS 0x00000005
-#define XPMEXTENSIONS 0x00000006
-#define XPMENDEXT 0x00000007
+#define XPMIDENTIFIER 0x00000001 // mnIdentifier includes on of the six phases
+#define XPMDEFINITION 0x00000002 // the XPM format consists of
+#define XPMVALUES 0x00000003
+#define XPMCOLORS 0x00000004
+#define XPMPIXELS 0x00000005
+#define XPMEXTENSIONS 0x00000006
+#define XPMENDEXT 0x00000007
-#define XPMREMARK 0x00000001 // defines used by mnStatus
-#define XPMDOUBLE 0x00000002
-#define XPMSTRING 0x00000004
-#define XPMFINISHED 0x00000008
+#define XPMREMARK 0x00000001 // defines used by mnStatus
+#define XPMDOUBLE 0x00000002
+#define XPMSTRING 0x00000004
+#define XPMFINISHED 0x00000008
-#define XPMCASESENSITIVE 0x00000001
+#define XPMCASESENSITIVE 0x00000001
#define XPMCASENONSENSITIVE 0x00000002
// ---------
@@ -75,48 +75,48 @@ class XPMReader : public GraphicReader
{
private:
- SvStream& mrIStm;
- Bitmap maBmp;
- BitmapWriteAccess* mpAcc;
- Bitmap maMaskBmp;
- BitmapWriteAccess* mpMaskAcc;
- long mnLastPos;
-
- ULONG mnWidth;
- ULONG mnHeight;
- ULONG mnColors;
- ULONG mnCpp; // characters per pix
- BOOL mbTransparent;
- BOOL mbStatus;
- ULONG mnStatus;
- ULONG mnIdentifier;
- BYTE mcThisByte;
- BYTE mcLastByte;
- ULONG mnTempAvail;
- BYTE* mpTempBuf;
- BYTE* mpTempPtr;
- BYTE* mpFastColorTable;
- BYTE* mpColMap;
- ULONG mnStringSize;
- BYTE* mpStringBuf;
- ULONG mnParaSize;
- BYTE* mpPara;
-
- BOOL ImplGetString( void );
- BOOL ImplGetColor( ULONG );
- BOOL ImplGetScanLine( ULONG );
- BOOL ImplGetColSub( BYTE* );
- BOOL ImplGetColKey( BYTE );
- void ImplGetRGBHex( BYTE*, ULONG );
- BOOL ImplGetPara( ULONG numb );
- BOOL ImplCompare( BYTE*, BYTE*, ULONG, ULONG nmode = XPMCASENONSENSITIVE );
- ULONG ImplGetULONG( ULONG nPara );
+ SvStream& mrIStm;
+ Bitmap maBmp;
+ BitmapWriteAccess* mpAcc;
+ Bitmap maMaskBmp;
+ BitmapWriteAccess* mpMaskAcc;
+ long mnLastPos;
+
+ ULONG mnWidth;
+ ULONG mnHeight;
+ ULONG mnColors;
+ ULONG mnCpp; // characters per pix
+ BOOL mbTransparent;
+ BOOL mbStatus;
+ ULONG mnStatus;
+ ULONG mnIdentifier;
+ BYTE mcThisByte;
+ BYTE mcLastByte;
+ ULONG mnTempAvail;
+ BYTE* mpTempBuf;
+ BYTE* mpTempPtr;
+ BYTE* mpFastColorTable;
+ BYTE* mpColMap;
+ ULONG mnStringSize;
+ BYTE* mpStringBuf;
+ ULONG mnParaSize;
+ BYTE* mpPara;
+
+ BOOL ImplGetString( void );
+ BOOL ImplGetColor( ULONG );
+ BOOL ImplGetScanLine( ULONG );
+ BOOL ImplGetColSub( BYTE* );
+ BOOL ImplGetColKey( BYTE );
+ void ImplGetRGBHex( BYTE*, ULONG );
+ BOOL ImplGetPara( ULONG numb );
+ BOOL ImplCompare( BYTE*, BYTE*, ULONG, ULONG nmode = XPMCASENONSENSITIVE );
+ ULONG ImplGetULONG( ULONG nPara );
public:
XPMReader( SvStream& rStm );
- virtual ~XPMReader();
+ virtual ~XPMReader();
- ReadState ReadXPM( Graphic& rGraphic );
+ ReadState ReadXPM( Graphic& rGraphic );
};
#endif // _XPMPRIVATE
diff --git a/svtools/source/java/javacontext.cxx b/svtools/source/java/javacontext.cxx
index 56b72ef1453c..9d3ca3815b57 100644
--- a/svtools/source/java/javacontext.cxx
+++ b/svtools/source/java/javacontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/java/javaerror.src b/svtools/source/java/javaerror.src
index d5990c05a663..48dd29f25d6e 100644
--- a/svtools/source/java/javaerror.src
+++ b/svtools/source/java/javaerror.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ ErrorBox ERRORBOX_JVMCREATIONFAILED
{
Buttons = WB_OK;
DefButton = WB_DEF_OK ;
- Message[ en-US ] = "%PRODUCTNAME requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - %PRODUCTNAME - Java.";
+ Message[ en-US ] = "%PRODUCTNAME requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - %PRODUCTNAME - Java.";
};
ErrorBox ERRORBOX_RESTARTREQUIRED
diff --git a/svtools/source/java/javainteractionhandler.cxx b/svtools/source/java/javainteractionhandler.cxx
index 6c76d463216e..b4029344c4dc 100644
--- a/svtools/source/java/javainteractionhandler.cxx
+++ b/svtools/source/java/javainteractionhandler.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -121,12 +121,12 @@ void SAL_CALL JavaInteractionHandler::handle( const Reference< XInteractionReque
com::sun::star::java::JavaNotFoundException e1;
com::sun::star::java::InvalidJavaSettingsException e2;
- com::sun::star::java::JavaDisabledException e3;
- com::sun::star::java::JavaVMCreationFailureException e4;
+ com::sun::star::java::JavaDisabledException e3;
+ com::sun::star::java::JavaVMCreationFailureException e4;
com::sun::star::java::RestartRequiredException e5;
// Try to recover the Exception type in the any and
// react accordingly.
- USHORT nResult = RET_CANCEL;
+ USHORT nResult = RET_CANCEL;
::rtl::OUString aParameter;
if ( anyExc >>= e1 )
diff --git a/svtools/source/java/patchjavaerror.src b/svtools/source/java/patchjavaerror.src
index d5990c05a663..48dd29f25d6e 100644
--- a/svtools/source/java/patchjavaerror.src
+++ b/svtools/source/java/patchjavaerror.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ ErrorBox ERRORBOX_JVMCREATIONFAILED
{
Buttons = WB_OK;
DefButton = WB_DEF_OK ;
- Message[ en-US ] = "%PRODUCTNAME requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - %PRODUCTNAME - Java.";
+ Message[ en-US ] = "%PRODUCTNAME requires a Java runtime environment (JRE) to perform this task. The selected JRE is defective. Please select another version or install a new JRE and select it under Tools - Options - %PRODUCTNAME - Java.";
};
ErrorBox ERRORBOX_RESTARTREQUIRED
diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx
index fea433503989..1f044cb147c1 100644
--- a/svtools/source/misc/acceleratorexecute.cxx
+++ b/svtools/source/misc/acceleratorexecute.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -228,7 +228,7 @@ sal_Bool AcceleratorExecute::execute(const css::awt::KeyEvent& aAWTKey)
css::util::URL aURL;
aURL.Complete = sCommand;
xParser->parseStrict(aURL);
-
+
// ask for dispatch object
css::uno::Reference< css::frame::XDispatch > xDispatch = xProvider->queryDispatch(aURL, ::rtl::OUString(), 0);
sal_Bool bRet = xDispatch.is();
@@ -248,16 +248,16 @@ css::awt::KeyEvent AcceleratorExecute::st_VCLKey2AWTKey(const KeyCode& aVCLKey)
css::awt::KeyEvent aAWTKey;
aAWTKey.Modifiers = 0;
aAWTKey.KeyCode = (sal_Int16)aVCLKey.GetCode();
-
+
if (aVCLKey.IsShift())
- aAWTKey.Modifiers |= css::awt::KeyModifier::SHIFT;
+ aAWTKey.Modifiers |= css::awt::KeyModifier::SHIFT;
if (aVCLKey.IsMod1())
- aAWTKey.Modifiers |= css::awt::KeyModifier::MOD1;
+ aAWTKey.Modifiers |= css::awt::KeyModifier::MOD1;
if (aVCLKey.IsMod2())
aAWTKey.Modifiers |= css::awt::KeyModifier::MOD2;
if (aVCLKey.IsMod3())
- aAWTKey.Modifiers |= css::awt::KeyModifier::MOD3;
- return aAWTKey;
+ aAWTKey.Modifiers |= css::awt::KeyModifier::MOD3;
+ return aAWTKey;
}
//-----------------------------------------------
@@ -268,7 +268,7 @@ KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
sal_Bool bMod2 = ((aAWTKey.Modifiers & css::awt::KeyModifier::MOD2 ) == css::awt::KeyModifier::MOD2 );
sal_Bool bMod3 = ((aAWTKey.Modifiers & css::awt::KeyModifier::MOD3 ) == css::awt::KeyModifier::MOD3 );
USHORT nKey = (USHORT)aAWTKey.KeyCode;
-
+
return KeyCode(nKey, bShift, bMod1, bMod2, bMod3);
}
//-----------------------------------------------
@@ -281,12 +281,12 @@ KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
{
// SAFE -> ----------------------------------
::osl::ResettableMutexGuard aLock(m_aLock);
-
+
css::uno::Reference< css::ui::XAcceleratorConfiguration > xGlobalCfg = m_xGlobalCfg;
css::uno::Reference< css::ui::XAcceleratorConfiguration > xModuleCfg = m_xModuleCfg;
css::uno::Reference< css::ui::XAcceleratorConfiguration > xDocCfg = m_xDocCfg ;
-
- aLock.clear();
+
+ aLock.clear();
// <- SAFE ----------------------------------
::rtl::OUString sCommand;
@@ -320,7 +320,7 @@ KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
}
catch(const css::container::NoSuchElementException&)
{}
-
+
// fall back to functional key codes
if( aKey.Modifiers == 0 )
{
@@ -328,91 +328,91 @@ KeyCode AcceleratorExecute::st_AWTKey2VCLKey(const css::awt::KeyEvent& aAWTKey)
{
case com::sun::star::awt::Key::DELETE_TO_BEGIN_OF_LINE:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:DelToStartOfLine" ) );
-
+
case com::sun::star::awt::Key::DELETE_TO_END_OF_LINE:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:DelToEndOfLine" ) );
-
+
case com::sun::star::awt::Key::DELETE_TO_BEGIN_OF_PARAGRAPH:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:DelToStartOfPara" ) );
-
+
case com::sun::star::awt::Key::DELETE_TO_END_OF_PARAGRAPH:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:DelToEndOfPara" ) );
-
+
case com::sun::star::awt::Key::DELETE_WORD_BACKWARD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:DelToStartOfWord" ) );
-
+
case com::sun::star::awt::Key::DELETE_WORD_FORWARD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:DelToEndOfWord" ) );
-
+
case com::sun::star::awt::Key::INSERT_LINEBREAK:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:InsertLinebreak" ) );
-
+
case com::sun::star::awt::Key::INSERT_PARAGRAPH:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:InsertPara" ) );
-
+
case com::sun::star::awt::Key::MOVE_WORD_BACKWARD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GoToPrevWord" ) );
-
+
case com::sun::star::awt::Key::MOVE_WORD_FORWARD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GoToNextWord" ) );
-
+
case com::sun::star::awt::Key::MOVE_TO_BEGIN_OF_LINE:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GoToStartOfLine" ) );
-
+
case com::sun::star::awt::Key::MOVE_TO_END_OF_LINE:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GoToEndOfLine" ) );
-
+
case com::sun::star::awt::Key::MOVE_TO_BEGIN_OF_PARAGRAPH:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GoToStartOfPara" ) );
-
+
case com::sun::star::awt::Key::MOVE_TO_END_OF_PARAGRAPH:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GoToEndOfPara" ) );
-
+
case com::sun::star::awt::Key::MOVE_TO_BEGIN_OF_DOCUMENT:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GoToStartOfDoc" ) );
-
+
case com::sun::star::awt::Key::MOVE_TO_END_OF_DOCUMENT:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GoToEndOfDoc" ) );
-
+
case com::sun::star::awt::Key::SELECT_BACKWARD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharLeftSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_FORWARD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:CharRightSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_WORD_BACKWARD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:WordLeftSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_WORD_FORWARD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:WordRightSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_WORD:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:SelectWord" ) );
-
+
case com::sun::star::awt::Key::SELECT_LINE:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "" ) );
-
+
case com::sun::star::awt::Key::SELECT_PARAGRAPH:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:SelectText" ) );
-
+
case com::sun::star::awt::Key::SELECT_TO_BEGIN_OF_LINE:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:StartOfLineSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_TO_END_OF_LINE:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:EndOfLineSel" ) );
case com::sun::star::awt::Key::SELECT_TO_BEGIN_OF_PARAGRAPH:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:StartOfParaSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_TO_END_OF_PARAGRAPH:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:EndOfParaSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_TO_BEGIN_OF_DOCUMENT:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:StartOfDocumentSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_TO_END_OF_DOCUMENT:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:EndOfDocumentSel" ) );
-
+
case com::sun::star::awt::Key::SELECT_ALL:
return rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:SelectAll" ) );
default:
diff --git a/svtools/source/misc/bindablecontrolhelper.cxx b/svtools/source/misc/bindablecontrolhelper.cxx
index d9a1df8f8a41..230dbe263f24 100644
--- a/svtools/source/misc/bindablecontrolhelper.cxx
+++ b/svtools/source/misc/bindablecontrolhelper.cxx
@@ -51,7 +51,7 @@ namespace svt
//........................................................................
#ifndef C2U
-#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
+#define C2U(cChar) rtl::OUString::createFromAscii(cChar)
#endif
using namespace ::com::sun::star;
diff --git a/svtools/source/misc/chartprettypainter.cxx b/svtools/source/misc/chartprettypainter.cxx
index 4d73588ec51c..85d51e974710 100644
--- a/svtools/source/misc/chartprettypainter.cxx
+++ b/svtools/source/misc/chartprettypainter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -136,7 +136,7 @@ bool ChartPrettyPainter::DoPrettyPaintChart( uno::Reference< frame::XModel > xCh
(void)e;
DBG_ERROR( "Chart cannot be painted pretty!" );
}
- return false;
+ return false;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/misc/cliplistener.cxx b/svtools/source/misc/cliplistener.cxx
index 741e62cb64a8..5d49f808f798 100644
--- a/svtools/source/misc/cliplistener.cxx
+++ b/svtools/source/misc/cliplistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/dialogclosedlistener.cxx b/svtools/source/misc/dialogclosedlistener.cxx
index a1edf0e5b859..7cc4533896b1 100644
--- a/svtools/source/misc/dialogclosedlistener.cxx
+++ b/svtools/source/misc/dialogclosedlistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/dialogcontrolling.cxx b/svtools/source/misc/dialogcontrolling.cxx
index c46ebfa7f85d..907d0bc8699d 100644
--- a/svtools/source/misc/dialogcontrolling.cxx
+++ b/svtools/source/misc/dialogcontrolling.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index f146a84a969e..dde707c0bd4b 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
static USHORT aWndFunc(
Window *pWin, // Parent des Dialoges
USHORT nFlags,
- const String &rErr, // Fehlertext
+ const String &rErr, // Fehlertext
const String &rAction) // Actiontext
/* [Beschreibung]
diff --git a/svtools/source/misc/ehdl.src b/svtools/source/misc/ehdl.src
index 436e06b7f3c5..ec20938a9411 100644
--- a/svtools/source/misc/ehdl.src
+++ b/svtools/source/misc/ehdl.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index 22c8d889bd83..23805a459aa1 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -296,7 +296,7 @@ EmbeddedObjectRef::EmbeddedObjectRef( const EmbeddedObjectRef& rObj )
EmbeddedObjectRef::~EmbeddedObjectRef()
{
delete mpImp->pGraphic;
- if ( mpImp->pHCGraphic )
+ if ( mpImp->pHCGraphic )
DELETEZ( mpImp->pHCGraphic );
Clear();
}
@@ -448,7 +448,7 @@ void EmbeddedObjectRef::GetReplacement( BOOL bUpdate )
DELETEZ( mpImp->pGraphic );
mpImp->aMediaType = ::rtl::OUString();
mpImp->pGraphic = new Graphic;
- if ( mpImp->pHCGraphic )
+ if ( mpImp->pHCGraphic )
DELETEZ( mpImp->pHCGraphic );
mpImp->mnGraphicVersion++;
}
@@ -594,7 +594,7 @@ Graphic* EmbeddedObjectRef::GetHCGraphic() const
if ( !pStream->GetError() )
{
GraphicFilter* pGF = GraphicFilter::GetGraphicFilter();
- Graphic* pGraphic = new Graphic();
+ Graphic* pGraphic = new Graphic();
if ( pGF->ImportGraphic( *pGraphic, String(), *pStream, GRFILTER_FORMAT_DONTKNOW ) == 0 )
mpImp->pHCGraphic = pGraphic;
else
@@ -617,7 +617,7 @@ void EmbeddedObjectRef::SetGraphicStream( const uno::Reference< io::XInputStream
delete mpImp->pGraphic;
mpImp->pGraphic = new Graphic();
mpImp->aMediaType = rMediaType;
- if ( mpImp->pHCGraphic )
+ if ( mpImp->pHCGraphic )
DELETEZ( mpImp->pHCGraphic );
mpImp->mnGraphicVersion++;
@@ -628,7 +628,7 @@ void EmbeddedObjectRef::SetGraphicStream( const uno::Reference< io::XInputStream
GraphicFilter* pGF = GraphicFilter::GetGraphicFilter();
pGF->ImportGraphic( *mpImp->pGraphic, String(), *pGraphicStream, GRFILTER_FORMAT_DONTKNOW );
mpImp->mnGraphicVersion++;
-
+
if ( mpImp->pContainer )
{
pGraphicStream->Seek( 0 );
@@ -650,7 +650,7 @@ void EmbeddedObjectRef::SetGraphic( const Graphic& rGraphic, const ::rtl::OUStri
delete mpImp->pGraphic;
mpImp->pGraphic = new Graphic( rGraphic );
mpImp->aMediaType = rMediaType;
- if ( mpImp->pHCGraphic )
+ if ( mpImp->pHCGraphic )
DELETEZ( mpImp->pHCGraphic );
mpImp->mnGraphicVersion++;
@@ -750,8 +750,8 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const Stri
if( nHeight > 0 )
{
aPt.Y() = nHeight;
- Point aP = rRect.TopLeft();
- Size aBmpSize = aBmp.GetSizePixel();
+ Point aP = rRect.TopLeft();
+ Size aBmpSize = aBmp.GetSizePixel();
// Bitmap einpassen
if( nHeight * 10 / nWidth
> aBmpSize.Height() * 10 / aBmpSize.Width() )
@@ -887,7 +887,7 @@ void EmbeddedObjectRef::UpdateReplacementOnDemand()
{
DELETEZ( mpImp->pGraphic );
mpImp->bNeedUpdate = sal_True;
- if ( mpImp->pHCGraphic )
+ if ( mpImp->pHCGraphic )
DELETEZ( mpImp->pHCGraphic );
mpImp->mnGraphicVersion++;
diff --git a/svtools/source/misc/embedtransfer.cxx b/svtools/source/misc/embedtransfer.cxx
index 8944bc126d18..1c0a2963951f 100644
--- a/svtools/source/misc/embedtransfer.cxx
+++ b/svtools/source/misc/embedtransfer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/errtxt.src b/svtools/source/misc/errtxt.src
index f33896e20003..2c1f788709e8 100644
--- a/svtools/source/misc/errtxt.src
+++ b/svtools/source/misc/errtxt.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/helpagent.src b/svtools/source/misc/helpagent.src
index 1f2eaaa291a3..1acb5d24383a 100644
--- a/svtools/source/misc/helpagent.src
+++ b/svtools/source/misc/helpagent.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/helpagentwindow.cxx b/svtools/source/misc/helpagentwindow.cxx
index 46118ffbabfc..7aa9ebf3e427 100644
--- a/svtools/source/misc/helpagentwindow.cxx
+++ b/svtools/source/misc/helpagentwindow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
#include <svtools/svtools.hrc>
#include <svtools/helpid.hrc>
-#define WB_AGENT_STYLE 0
+#define WB_AGENT_STYLE 0
//........................................................................
namespace svt
@@ -57,7 +57,7 @@ namespace svt
public:
CloserButton_Impl( Window* pParent, WinBits nBits ) : ImageButton( pParent, nBits ) {}
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
};
//--------------------------------------------------------------------
@@ -123,10 +123,10 @@ namespace svt
{
FloatingWindow::Paint(rRect);
- Size aOutputSize( GetOutputSizePixel() );
- Point aPoint=Point();
- Rectangle aOutputRect( aPoint, aOutputSize );
- Rectangle aInnerRect( aOutputRect );
+ Size aOutputSize( GetOutputSizePixel() );
+ Point aPoint=Point();
+ Rectangle aOutputRect( aPoint, aOutputSize );
+ Rectangle aInnerRect( aOutputRect );
// paint the background
SetLineColor( GetSettings().GetStyleSettings().GetFaceColor() );
@@ -182,7 +182,7 @@ namespace svt
}
//........................................................................
-} // namespace svt
+} // namespace svt
//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index 19148344a6f4..9442d27f6bdd 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,9 +58,9 @@
// globals *******************************************************************
-#define NO_INDEX ((USHORT)0xFFFF)
-#define CONTENT_HELPER ::utl::UCBContentHelper
-#define ASCII_STRING(s) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
+#define NO_INDEX ((USHORT)0xFFFF)
+#define CONTENT_HELPER ::utl::UCBContentHelper
+#define ASCII_STRING(s) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
struct SvtExtensionResIdMapping_Impl
{
diff --git a/svtools/source/misc/imagemgr.src b/svtools/source/misc/imagemgr.src
index 5cd0a714aa9b..fc7dc8c4ebf9 100644
--- a/svtools/source/misc/imagemgr.src
+++ b/svtools/source/misc/imagemgr.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/imageresourceaccess.cxx b/svtools/source/misc/imageresourceaccess.cxx
index 47a68a5684ea..648abac134cc 100644
--- a/svtools/source/misc/imageresourceaccess.cxx
+++ b/svtools/source/misc/imageresourceaccess.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -98,7 +98,7 @@ namespace svt
{
return m_xInput;
}
-
+
//--------------------------------------------------------------------
Reference< XOutputStream > SAL_CALL StreamSupplier::getOutputStream( ) throw (RuntimeException)
{
@@ -113,7 +113,7 @@ namespace svt
m_xSeekable->seek( location );
}
-
+
//--------------------------------------------------------------------
::sal_Int64 SAL_CALL StreamSupplier::getPosition( ) throw (IOException, RuntimeException)
{
@@ -122,7 +122,7 @@ namespace svt
return m_xSeekable->getPosition();
}
-
+
//--------------------------------------------------------------------
::sal_Int64 SAL_CALL StreamSupplier::getLength( ) throw (IOException, RuntimeException)
{
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx
index 105eb763fb7b..a7d670117a61 100644
--- a/svtools/source/misc/imap.cxx
+++ b/svtools/source/misc/imap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@
DBG_NAME( ImageMap )
-#define SCALEPOINT(aPT,aFracX,aFracY) (aPT).X()=((aPT).X()*(aFracX).GetNumerator())/(aFracX).GetDenominator(); \
+#define SCALEPOINT(aPT,aFracX,aFracY) (aPT).X()=((aPT).X()*(aFracX).GetNumerator())/(aFracX).GetDenominator(); \
(aPT).Y()=((aPT).Y()*(aFracY).GetNumerator())/(aFracY).GetDenominator();
@@ -68,7 +68,7 @@ IMapObject::IMapObject()
{
}
-IMapObject::IMapObject( const String& rURL, const String& rAltText, const String& rDesc,
+IMapObject::IMapObject( const String& rURL, const String& rAltText, const String& rDesc,
const String& rTarget, const String& rName, BOOL bURLActive )
: aURL( rURL )
, aAltText( rAltText )
@@ -101,8 +101,8 @@ UINT16 IMapObject::GetVersion() const
void IMapObject::Write( SvStream& rOStm, const String& rBaseURL ) const
{
- IMapCompat* pCompat;
- const rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ IMapCompat* pCompat;
+ const rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
rOStm << GetType();
rOStm << GetVersion();
@@ -126,15 +126,15 @@ void IMapObject::Write( SvStream& rOStm, const String& rBaseURL ) const
/******************************************************************************
|*
-|* Binaer-Import
+|* Binaer-Import
|*
\******************************************************************************/
void IMapObject::Read( SvStream& rIStm, const String& rBaseURL )
{
- IMapCompat* pCompat;
- rtl_TextEncoding nTextEncoding;
- ByteString aString;
+ IMapCompat* pCompat;
+ rtl_TextEncoding nTextEncoding;
+ ByteString aString;
// Typ und Version ueberlesen wir
rIStm.SeekRel( 2 );
@@ -216,11 +216,11 @@ IMapRectangleObject::IMapRectangleObject( const Rectangle& rRect,
const String& rURL,
const String& rAltText,
const String& rDesc,
- const String& rTarget,
+ const String& rTarget,
const String& rName,
BOOL bURLActive,
BOOL bPixelCoords ) :
- IMapObject ( rURL, rAltText, rDesc, rTarget, rName, bURLActive )
+ IMapObject ( rURL, rAltText, rDesc, rTarget, rName, bURLActive )
{
ImpConstruct( rRect, bPixelCoords );
}
@@ -297,7 +297,7 @@ BOOL IMapRectangleObject::IsHit( const Point& rPoint ) const
Rectangle IMapRectangleObject::GetRectangle( BOOL bPixelCoords ) const
{
- Rectangle aNewRect;
+ Rectangle aNewRect;
if ( bPixelCoords )
aNewRect = Application::GetDefaultDevice()->LogicToPixel( aRect, MapMode( MAP_100TH_MM ) );
@@ -316,8 +316,8 @@ Rectangle IMapRectangleObject::GetRectangle( BOOL bPixelCoords ) const
void IMapRectangleObject::Scale( const Fraction& rFracX, const Fraction& rFracY )
{
- Point aTL( aRect.TopLeft() );
- Point aBR( aRect.BottomRight() );
+ Point aTL( aRect.TopLeft() );
+ Point aBR( aRect.BottomRight() );
if ( rFracX.GetDenominator() && rFracY.GetDenominator() )
{
@@ -353,7 +353,7 @@ IMapCircleObject::IMapCircleObject( const Point& rCenter, ULONG nCircleRadius,
const String& rName,
BOOL bURLActive,
BOOL bPixelCoords ) :
- IMapObject ( rURL, rAltText, rDesc, rTarget, rName, bURLActive )
+ IMapObject ( rURL, rAltText, rDesc, rTarget, rName, bURLActive )
{
ImpConstruct( rCenter, nCircleRadius, bPixelCoords );
}
@@ -369,7 +369,7 @@ void IMapCircleObject::ImpConstruct( const Point& rCenter, ULONG nRad, BOOL bPix
{
if ( bPixel )
{
- MapMode aMap100( MAP_100TH_MM );
+ MapMode aMap100( MAP_100TH_MM );
aCenter = Application::GetDefaultDevice()->PixelToLogic( rCenter, aMap100 );
nRadius = Application::GetDefaultDevice()->PixelToLogic( Size( nRad, 0 ), aMap100 ).Width();
@@ -434,8 +434,8 @@ UINT16 IMapCircleObject::GetType() const
BOOL IMapCircleObject::IsHit( const Point& rPoint ) const
{
- const Point aPoint( aCenter - rPoint );
- BOOL bRet = FALSE;
+ const Point aPoint( aCenter - rPoint );
+ BOOL bRet = FALSE;
if ( (ULONG) sqrt( (double) aPoint.X() * aPoint.X() +
aPoint.Y() * aPoint.Y() ) <= nRadius )
@@ -547,8 +547,8 @@ IMapPolygonObject::IMapPolygonObject( const Polygon& rPoly,
const String& rName,
BOOL bURLActive,
BOOL bPixelCoords ) :
- IMapObject ( rURL, rAltText, rDesc, rTarget, rName, bURLActive ),
- bEllipse ( FALSE )
+ IMapObject ( rURL, rAltText, rDesc, rTarget, rName, bURLActive ),
+ bEllipse ( FALSE )
{
ImpConstruct( rPoly, bPixelCoords );
}
@@ -578,8 +578,8 @@ void IMapPolygonObject::ImpConstruct( const Polygon& rPoly, BOOL bPixel )
void IMapPolygonObject::WriteIMapObject( SvStream& rOStm ) const
{
rOStm << aPoly;
- rOStm << bEllipse; // >= Version 2
- rOStm << aEllipse; // >= Version 2
+ rOStm << bEllipse; // >= Version 2
+ rOStm << aEllipse; // >= Version 2
}
@@ -634,7 +634,7 @@ BOOL IMapPolygonObject::IsHit( const Point& rPoint ) const
Polygon IMapPolygonObject::GetPolygon( BOOL bPixelCoords ) const
{
- Polygon aNewPoly;
+ Polygon aNewPoly;
if ( bPixelCoords )
aNewPoly = Application::GetDefaultDevice()->LogicToPixel( aPoly, MapMode( MAP_100TH_MM ) );
@@ -685,8 +685,8 @@ void IMapPolygonObject::Scale( const Fraction& rFracX, const Fraction& rFracY )
if ( bEllipse )
{
- Point aTL( aEllipse.TopLeft() );
- Point aBR( aEllipse.BottomRight() );
+ Point aTL( aEllipse.TopLeft() );
+ Point aBR( aEllipse.BottomRight() );
if ( rFracX.GetDenominator() && rFracY.GetDenominator() )
{
@@ -711,10 +711,10 @@ BOOL IMapPolygonObject::IsEqual( const IMapPolygonObject& rEqObj )
if ( IMapObject::IsEqual( rEqObj ) )
{
- const Polygon& rEqPoly = rEqObj.aPoly;
- const USHORT nCount = aPoly.GetSize();
- const USHORT nEqCount = rEqPoly.GetSize();
- BOOL bDifferent = FALSE;
+ const Polygon& rEqPoly = rEqObj.aPoly;
+ const USHORT nCount = aPoly.GetSize();
+ const USHORT nEqCount = rEqPoly.GetSize();
+ BOOL bDifferent = FALSE;
if ( nCount == nEqCount )
{
@@ -748,7 +748,7 @@ BOOL IMapPolygonObject::IsEqual( const IMapPolygonObject& rEqObj )
\******************************************************************************/
ImageMap::ImageMap( const String& rName ) :
- aName ( rName )
+ aName ( rName )
{
}
@@ -877,9 +877,9 @@ ImageMap& ImageMap::operator=( const ImageMap& rImageMap )
BOOL ImageMap::operator==( const ImageMap& rImageMap )
{
- const USHORT nCount = (USHORT) maList.Count();
- const USHORT nEqCount = rImageMap.GetIMapObjectCount();
- BOOL bRet = FALSE;
+ const USHORT nCount = (USHORT) maList.Count();
+ const USHORT nEqCount = rImageMap.GetIMapObjectCount();
+ BOOL bRet = FALSE;
if ( nCount == nEqCount )
{
@@ -1030,8 +1030,8 @@ IMapObject* ImageMap::GetHitIMapObject( const Size& rTotalSize,
Rectangle ImageMap::GetBoundRect() const
{
- Rectangle aBoundRect;
- ULONG nCount = maList.Count();
+ Rectangle aBoundRect;
+ ULONG nCount = maList.Count();
for ( ULONG i = 0; i < nCount; i++ )
aBoundRect.Union( ( (IMapObject*) maList.GetObject( i ) )->GetBoundRect() );
@@ -1084,7 +1084,7 @@ void ImageMap::Scale( const Fraction& rFracX, const Fraction& rFracY )
void ImageMap::ImpWriteImageMap( SvStream& rOStm, const String& rBaseURL ) const
{
IMapObject* pObj;
- USHORT nCount = (USHORT) maList.Count();
+ USHORT nCount = (USHORT) maList.Count();
for ( USHORT i = 0; i < nCount; i++ )
{
@@ -1151,12 +1151,12 @@ void ImageMap::ImpReadImageMap( SvStream& rIStm, USHORT nCount, const String& rB
void ImageMap::Write( SvStream& rOStm, const String& rBaseURL ) const
{
- IMapCompat* pCompat;
+ IMapCompat* pCompat;
String aImageName( GetName() );
- String aDummy;
- USHORT nOldFormat = rOStm.GetNumberFormatInt();
+ String aDummy;
+ USHORT nOldFormat = rOStm.GetNumberFormatInt();
UINT16 nCount = (UINT16) GetIMapObjectCount();
- const rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
+ const rtl_TextEncoding eEncoding = gsl_getSystemTextEncoding();
rOStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
@@ -1188,10 +1188,10 @@ void ImageMap::Write( SvStream& rOStm, const String& rBaseURL ) const
void ImageMap::Read( SvStream& rIStm, const String& rBaseURL )
{
- ByteString aString;
- char cMagic[6];
- USHORT nOldFormat = rIStm.GetNumberFormatInt();
- UINT16 nCount;
+ ByteString aString;
+ char cMagic[6];
+ USHORT nOldFormat = rIStm.GetNumberFormatInt();
+ UINT16 nCount;
rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
rIStm.Read( cMagic, sizeof( cMagic ) );
diff --git a/svtools/source/misc/imap2.cxx b/svtools/source/misc/imap2.cxx
index d1cb4ddafd72..e57991f18632 100644
--- a/svtools/source/misc/imap2.cxx
+++ b/svtools/source/misc/imap2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,7 +70,7 @@ TYPEINIT0_AUTOFACTORY( ImageMap );
void IMapObject::AppendCERNCoords( const Point& rPoint100, ByteString& rStr ) const
{
- const Point aPixPt( Application::GetDefaultDevice()->LogicToPixel( rPoint100, MapMode( MAP_100TH_MM ) ) );
+ const Point aPixPt( Application::GetDefaultDevice()->LogicToPixel( rPoint100, MapMode( MAP_100TH_MM ) ) );
rStr += '(';
rStr += ByteString::CreateFromInt32( aPixPt.X() );
@@ -88,7 +88,7 @@ void IMapObject::AppendCERNCoords( const Point& rPoint100, ByteString& rStr ) co
void IMapObject::AppendNCSACoords( const Point& rPoint100, ByteString& rStr ) const
{
- const Point aPixPt( Application::GetDefaultDevice()->LogicToPixel( rPoint100, MapMode( MAP_100TH_MM ) ) );
+ const Point aPixPt( Application::GetDefaultDevice()->LogicToPixel( rPoint100, MapMode( MAP_100TH_MM ) ) );
rStr += ByteString::CreateFromInt32( aPixPt.X() );
rStr += ',';
@@ -215,8 +215,8 @@ void IMapCircleObject::WriteNCSA( SvStream& rOStm, const String& rBaseURL ) cons
void IMapPolygonObject::WriteCERN( SvStream& rOStm, const String& rBaseURL ) const
{
- ByteString aStr( "polygon " );
- const USHORT nCount = aPoly.GetSize();
+ ByteString aStr( "polygon " );
+ const USHORT nCount = aPoly.GetSize();
for ( USHORT i = 0; i < nCount; i++ )
AppendCERNCoords( aPoly[ i ], aStr );
@@ -235,8 +235,8 @@ void IMapPolygonObject::WriteCERN( SvStream& rOStm, const String& rBaseURL ) co
void IMapPolygonObject::WriteNCSA( SvStream& rOStm, const String& rBaseURL ) const
{
- ByteString aStr( "poly " );
- const USHORT nCount = Min( aPoly.GetSize(), (USHORT) 100 );
+ ByteString aStr( "poly " );
+ const USHORT nCount = Min( aPoly.GetSize(), (USHORT) 100 );
AppendNCSAURL( aStr, rBaseURL );
@@ -280,7 +280,7 @@ void ImageMap::Write( SvStream& rOStm, ULONG nFormat, const String& rBaseURL ) c
void ImageMap::ImpWriteCERN( SvStream& rOStm, const String& rBaseURL ) const
{
IMapObject* pObj;
- USHORT nCount = (USHORT) maList.Count();
+ USHORT nCount = (USHORT) maList.Count();
for ( USHORT i = 0; i < nCount; i++ )
{
@@ -316,7 +316,7 @@ void ImageMap::ImpWriteCERN( SvStream& rOStm, const String& rBaseURL ) const
void ImageMap::ImpWriteNCSA( SvStream& rOStm, const String& rBaseURL ) const
{
IMapObject* pObj;
- USHORT nCount = (USHORT) maList.Count();
+ USHORT nCount = (USHORT) maList.Count();
for ( USHORT i = 0; i < nCount; i++ )
{
@@ -401,16 +401,16 @@ ULONG ImageMap::ImpReadCERN( SvStream& rIStm, const String& rBaseURL )
void ImageMap::ImpReadCERNLine( const ByteString& rLine, const String& rBaseURL )
{
- ByteString aStr( rLine );
- ByteString aToken;
+ ByteString aStr( rLine );
+ ByteString aToken;
aStr.EraseLeadingChars( ' ' );
aStr.EraseLeadingChars( '\t' );
aStr.EraseAllChars( ';' );
aStr.ToLowerAscii();
- const char* pStr = aStr.GetBuffer();
- char cChar = *pStr++;
+ const char* pStr = aStr.GetBuffer();
+ char cChar = *pStr++;
// Anweisung finden
while( ( cChar >= 'a' ) && ( cChar <= 'z' ) && NOTEOL( cChar ) )
@@ -423,18 +423,18 @@ void ImageMap::ImpReadCERNLine( const ByteString& rLine, const String& rBaseURL
{
if ( ( aToken == "rectangle" ) || ( aToken == "rect" ) )
{
- const Point aTopLeft( ImpReadCERNCoords( &pStr ) );
- const Point aBottomRight( ImpReadCERNCoords( &pStr ) );
+ const Point aTopLeft( ImpReadCERNCoords( &pStr ) );
+ const Point aBottomRight( ImpReadCERNCoords( &pStr ) );
const String aURL( ImpReadCERNURL( &pStr, rBaseURL ) );
- const Rectangle aRect( aTopLeft, aBottomRight );
+ const Rectangle aRect( aTopLeft, aBottomRight );
IMapRectangleObject* pObj = new IMapRectangleObject( aRect, aURL, String(), String(), String(), String() );
maList.Insert( pObj, LIST_APPEND );
}
else if ( ( aToken == "circle" ) || ( aToken == "circ" ) )
{
- const Point aCenter( ImpReadCERNCoords( &pStr ) );
- const long nRadius = ImpReadCERNRadius( &pStr );
+ const Point aCenter( ImpReadCERNCoords( &pStr ) );
+ const long nRadius = ImpReadCERNRadius( &pStr );
const String aURL( ImpReadCERNURL( &pStr, rBaseURL ) );
IMapCircleObject* pObj = new IMapCircleObject( aCenter, nRadius, aURL, String(), String(), String(), String() );
@@ -442,9 +442,9 @@ void ImageMap::ImpReadCERNLine( const ByteString& rLine, const String& rBaseURL
}
else if ( ( aToken == "polygon" ) || ( aToken == "poly" ) )
{
- const USHORT nCount = aStr.GetTokenCount( '(' ) - 1;
- Polygon aPoly( nCount );
- String aURL;
+ const USHORT nCount = aStr.GetTokenCount( '(' ) - 1;
+ Polygon aPoly( nCount );
+ String aURL;
for ( USHORT i = 0; i < nCount; i++ )
aPoly[ i ] = ImpReadCERNCoords( &pStr );
@@ -466,10 +466,10 @@ void ImageMap::ImpReadCERNLine( const ByteString& rLine, const String& rBaseURL
Point ImageMap::ImpReadCERNCoords( const char** ppStr )
{
- String aStrX;
- String aStrY;
- Point aPt;
- char cChar = *(*ppStr)++;
+ String aStrX;
+ String aStrY;
+ Point aPt;
+ char cChar = *(*ppStr)++;
while( NOTEOL( cChar ) && ( ( cChar < '0' ) || ( cChar > '9' ) ) )
cChar = *(*ppStr)++;
@@ -513,8 +513,8 @@ Point ImageMap::ImpReadCERNCoords( const char** ppStr )
long ImageMap::ImpReadCERNRadius( const char** ppStr )
{
- String aStr;
- char cChar = *(*ppStr)++;
+ String aStr;
+ char cChar = *(*ppStr)++;
while( NOTEOL( cChar ) && ( ( cChar < '0' ) || ( cChar > '9' ) ) )
cChar = *(*ppStr)++;
@@ -540,7 +540,7 @@ long ImageMap::ImpReadCERNRadius( const char** ppStr )
String ImageMap::ImpReadCERNURL( const char** ppStr, const String& rBaseURL )
{
- String aStr( String::CreateFromAscii( *ppStr ) );
+ String aStr( String::CreateFromAscii( *ppStr ) );
aStr.EraseLeadingChars( ' ' );
aStr.EraseLeadingChars( '\t' );
@@ -579,16 +579,16 @@ ULONG ImageMap::ImpReadNCSA( SvStream& rIStm, const String& rBaseURL )
void ImageMap::ImpReadNCSALine( const ByteString& rLine, const String& rBaseURL )
{
- ByteString aStr( rLine );
- ByteString aToken;
+ ByteString aStr( rLine );
+ ByteString aToken;
aStr.EraseLeadingChars( ' ' );
aStr.EraseLeadingChars( '\t' );
aStr.EraseAllChars( ';' );
aStr.ToLowerAscii();
- const char* pStr = aStr.GetBuffer();
- char cChar = *pStr++;
+ const char* pStr = aStr.GetBuffer();
+ char cChar = *pStr++;
// Anweisung finden
while( ( cChar >= 'a' ) && ( cChar <= 'z' ) && NOTEOL( cChar ) )
@@ -602,9 +602,9 @@ void ImageMap::ImpReadNCSALine( const ByteString& rLine, const String& rBaseURL
if ( aToken == "rect" )
{
const String aURL( ImpReadNCSAURL( &pStr, rBaseURL ) );
- const Point aTopLeft( ImpReadNCSACoords( &pStr ) );
- const Point aBottomRight( ImpReadNCSACoords( &pStr ) );
- const Rectangle aRect( aTopLeft, aBottomRight );
+ const Point aTopLeft( ImpReadNCSACoords( &pStr ) );
+ const Point aBottomRight( ImpReadNCSACoords( &pStr ) );
+ const Rectangle aRect( aTopLeft, aBottomRight );
IMapRectangleObject* pObj = new IMapRectangleObject( aRect, aURL, String(), String(), String(), String() );
maList.Insert( pObj, LIST_APPEND );
@@ -612,9 +612,9 @@ void ImageMap::ImpReadNCSALine( const ByteString& rLine, const String& rBaseURL
else if ( aToken == "circle" )
{
const String aURL( ImpReadNCSAURL( &pStr, rBaseURL ) );
- const Point aCenter( ImpReadNCSACoords( &pStr ) );
- const Point aDX( aCenter - ImpReadNCSACoords( &pStr ) );
- long nRadius = (long) sqrt( (double) aDX.X() * aDX.X() +
+ const Point aCenter( ImpReadNCSACoords( &pStr ) );
+ const Point aDX( aCenter - ImpReadNCSACoords( &pStr ) );
+ long nRadius = (long) sqrt( (double) aDX.X() * aDX.X() +
(double) aDX.Y() * aDX.Y() );
IMapCircleObject* pObj = new IMapCircleObject( aCenter, nRadius, aURL, String(), String(), String(), String() );
@@ -622,9 +622,9 @@ void ImageMap::ImpReadNCSALine( const ByteString& rLine, const String& rBaseURL
}
else if ( aToken == "poly" )
{
- const USHORT nCount = aStr.GetTokenCount( ',' ) - 1;
+ const USHORT nCount = aStr.GetTokenCount( ',' ) - 1;
const String aURL( ImpReadNCSAURL( &pStr, rBaseURL ) );
- Polygon aPoly( nCount );
+ Polygon aPoly( nCount );
for ( USHORT i = 0; i < nCount; i++ )
aPoly[ i ] = ImpReadNCSACoords( &pStr );
@@ -644,8 +644,8 @@ void ImageMap::ImpReadNCSALine( const ByteString& rLine, const String& rBaseURL
String ImageMap::ImpReadNCSAURL( const char** ppStr, const String& rBaseURL )
{
- String aStr;
- char cChar = *(*ppStr)++;
+ String aStr;
+ char cChar = *(*ppStr)++;
while( NOTEOL( cChar ) && ( ( cChar == ' ' ) || ( cChar == '\t' ) ) )
cChar = *(*ppStr)++;
@@ -671,10 +671,10 @@ String ImageMap::ImpReadNCSAURL( const char** ppStr, const String& rBaseURL )
Point ImageMap::ImpReadNCSACoords( const char** ppStr )
{
- String aStrX;
- String aStrY;
- Point aPt;
- char cChar = *(*ppStr)++;
+ String aStrX;
+ String aStrY;
+ Point aPt;
+ char cChar = *(*ppStr)++;
while( NOTEOL( cChar ) && ( ( cChar < '0' ) || ( cChar > '9' ) ) )
cChar = *(*ppStr)++;
@@ -714,9 +714,9 @@ Point ImageMap::ImpReadNCSACoords( const char** ppStr )
ULONG ImageMap::ImpDetectFormat( SvStream& rIStm )
{
- ULONG nPos = rIStm.Tell();
- ULONG nRet = IMAP_FORMAT_BIN;
- char cMagic[6];
+ ULONG nPos = rIStm.Tell();
+ ULONG nRet = IMAP_FORMAT_BIN;
+ char cMagic[6];
rIStm.Read( cMagic, sizeof( cMagic ) );
@@ -724,8 +724,8 @@ ULONG ImageMap::ImpDetectFormat( SvStream& rIStm )
// untersuchen wir das Format
if ( memcmp( cMagic, IMAPMAGIC, sizeof( cMagic ) ) )
{
- ByteString aStr;
- long nCount = 128;
+ ByteString aStr;
+ long nCount = 128;
rIStm.Seek( nPos );
while ( rIStm.ReadLine( aStr ) && nCount-- )
diff --git a/svtools/source/misc/imap3.cxx b/svtools/source/misc/imap3.cxx
index 1072121a3c5d..2d05c942a036 100644
--- a/svtools/source/misc/imap3.cxx
+++ b/svtools/source/misc/imap3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,8 +42,8 @@
\******************************************************************************/
IMapCompat::IMapCompat( SvStream& rStm, const USHORT nStreamMode ) :
- pRWStm ( &rStm ),
- nStmMode ( nStreamMode )
+ pRWStm ( &rStm ),
+ nStmMode ( nStreamMode )
{
DBG_ASSERT( nStreamMode == STREAM_READ || nStreamMode == STREAM_WRITE, "Wrong Mode!" );
@@ -78,7 +78,7 @@ IMapCompat::~IMapCompat()
{
if ( nStmMode == STREAM_WRITE )
{
- const ULONG nEndPos = pRWStm->Tell();
+ const ULONG nEndPos = pRWStm->Tell();
pRWStm->Seek( nCompatPos );
*pRWStm << (UINT32) ( nEndPos - nTotalSize );
diff --git a/svtools/source/misc/itemdel.cxx b/svtools/source/misc/itemdel.cxx
index 184b631cec65..0de0560471eb 100644
--- a/svtools/source/misc/itemdel.cxx
+++ b/svtools/source/misc/itemdel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ DBG_NAME(SfxItemDesruptor_Impl);
class SfxItemDesruptor_Impl
{
SfxPoolItem *pItem;
- Link aLink;
+ Link aLink;
private:
DECL_LINK( Delete, void * );
diff --git a/svtools/source/misc/langhelp.cxx b/svtools/source/misc/langhelp.cxx
index fe99763cf825..3e406c4c9673 100644
--- a/svtools/source/misc/langhelp.cxx
+++ b/svtools/source/misc/langhelp.cxx
@@ -35,7 +35,7 @@
void localizeWebserviceURI( ::rtl::OUString& rURI )
{
::rtl::OUString aLang = Application::GetSettings().GetUILocale().Language;
- if ( aLang.equalsIgnoreAsciiCaseAscii( "pt" )
+ if ( aLang.equalsIgnoreAsciiCaseAscii( "pt" )
&& Application::GetSettings().GetUILocale().Country.equalsIgnoreAsciiCaseAscii("br") )
{
aLang = ::rtl::OUString::createFromAscii("pt-br");
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx
index 1a139a2ff966..2edf816a29af 100644
--- a/svtools/source/misc/langtab.cxx
+++ b/svtools/source/misc/langtab.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,24 +52,24 @@ SVT_DLLPUBLIC const String ApplyLreOrRleEmbedding( const String &rText )
const USHORT nLen = rText.Len();
if (nLen == 0)
return String();
-
+
const sal_Unicode cLRE_Embedding = 0x202A; // the start char of an LRE embedding
const sal_Unicode cRLE_Embedding = 0x202B; // the start char of an RLE embedding
const sal_Unicode cPopDirectionalFormat = 0x202C; // the unicode PDF (POP_DIRECTIONAL_FORMAT) char that terminates an LRE/RLE embedding
-
+
// check if there are alreay embedding characters at the strings start
// if so change nothing
const sal_Unicode cChar = rText.GetBuffer()[0];
if (cChar == cLRE_Embedding || cChar == cRLE_Embedding)
return rText;
-
+
// since we only call the function getCharacterDirection
// it does not matter which locale the CharClass is for.
// Thus we can readily make use of SvtSysLocale::GetCharClass()
// which should come at no cost...
SvtSysLocale aSysLocale;
const CharClass &rCharClass = aSysLocale.GetCharClass();
-
+
// we should look for the first non-neutral LTR or RTL character
// and use that to determine the embedding of the whole text...
// Thus we can avoid to check every character of the text.
@@ -87,27 +87,27 @@ SVT_DLLPUBLIC const String ApplyLreOrRleEmbedding( const String &rText )
case i18n::DirectionProperty_ARABIC_NUMBER : // yes! arabic numbers are written from left to right
{
bIsRtlText = false;
- bFound = true;
+ bFound = true;
break;
}
-
+
case i18n::DirectionProperty_RIGHT_TO_LEFT :
case i18n::DirectionProperty_RIGHT_TO_LEFT_ARABIC :
case i18n::DirectionProperty_RIGHT_TO_LEFT_EMBEDDING :
case i18n::DirectionProperty_RIGHT_TO_LEFT_OVERRIDE :
- {
+ {
bIsRtlText = true;
- bFound = true;
+ bFound = true;
break;
}
-
+
default:
{
// nothing to be done, character is considered to be neutral we need to look further ...
- }
- }
+ }
+ }
}
-
+
sal_Unicode cStart = cLRE_Embedding; // default is to use LRE embedding characters
if (bIsRtlText)
cStart = cRLE_Embedding; // then use RLE embedding
@@ -121,7 +121,7 @@ SVT_DLLPUBLIC const String ApplyLreOrRleEmbedding( const String &rText )
}
return aRes;
-}
+}
//------------------------------------------------------------------------
@@ -151,7 +151,7 @@ const String& SvtLanguageTable::GetString( const LanguageType eType ) const
// generally raise an error.
OSL_ENSURE(
eLang == LANGUAGE_ENGLISH, "language entry not found in resource" );
-
+
nPos = FindIndex( LANGUAGE_DONTKNOW );
if ( RESARRAY_INDEX_NOTFOUND != nPos && nPos < Count() )
@@ -181,7 +181,7 @@ LanguageType SvtLanguageTable::GetType( const String& rStr ) const
eType = LanguageType( GetValue( i ) );
break;
}
- }
+ }
return eType;
}
@@ -191,7 +191,7 @@ sal_uInt32 SvtLanguageTable::GetEntryCount() const
{
return Count();
}
-
+
//------------------------------------------------------------------------
LanguageType SvtLanguageTable::GetTypeAtIndex( sal_uInt32 nIndex ) const
diff --git a/svtools/source/misc/langtab.src b/svtools/source/misc/langtab.src
index e521fbdba570..b28a57e4a39e 100644
--- a/svtools/source/misc/langtab.src
+++ b/svtools/source/misc/langtab.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -186,7 +186,7 @@ StringArray STR_ARR_SVT_LANGUAGE_TABLE
< "Swahili (Kenya)" ; LANGUAGE_SWAHILI ; > ;
< "Swedish (Sweden)" ; LANGUAGE_SWEDISH ; > ;
< "Swedish (Finland)" ; LANGUAGE_SWEDISH_FINLAND ; > ;
- < "Tajik" ; LANGUAGE_TAJIK ; > ;
+ < "Tajik" ; LANGUAGE_TAJIK ; > ;
< "Tamil" ; LANGUAGE_TAMIL ; > ;
< "Tatar" ; LANGUAGE_TATAR ; > ;
< "Telugu" ; LANGUAGE_TELUGU ; > ;
diff --git a/svtools/source/misc/stringtransfer.cxx b/svtools/source/misc/stringtransfer.cxx
index 0d6165abd3e2..348824449a87 100644
--- a/svtools/source/misc/stringtransfer.cxx
+++ b/svtools/source/misc/stringtransfer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,7 +82,7 @@ namespace svt
// check for a string format
const DataFlavorExVector& rFormats = aClipboardData.GetDataFlavorExVector();
- for ( DataFlavorExVector::const_iterator aSearch = rFormats.begin();
+ for ( DataFlavorExVector::const_iterator aSearch = rFormats.begin();
aSearch != rFormats.end();
++aSearch
)
@@ -108,7 +108,7 @@ namespace svt
}
//........................................................................
-} // namespace svt
+} // namespace svt
//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/misc/svtaccessiblefactory.cxx b/svtools/source/misc/svtaccessiblefactory.cxx
index 80d766354dfc..5ad3c23ac75f 100644
--- a/svtools/source/misc/svtaccessiblefactory.cxx
+++ b/svtools/source/misc/svtaccessiblefactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/svtdata.cxx b/svtools/source/misc/svtdata.cxx
index 9429ac014df9..6643659bffdd 100644
--- a/svtools/source/misc/svtdata.cxx
+++ b/svtools/source/misc/svtdata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index 366037c7a1d3..39e7f0be8bdc 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -97,13 +97,13 @@ namespace svt
//---------------------------------------------------------------------
sal_Bool operator == ( const util::DateTime& _rLHS, const util::DateTime& _rRHS )
{
- return _rLHS.HundredthSeconds == _rRHS.HundredthSeconds
- && _rLHS.Seconds == _rRHS.Seconds
- && _rLHS.Minutes == _rRHS.Minutes
- && _rLHS.Hours == _rRHS.Hours
- && _rLHS.Day == _rRHS.Day
- && _rLHS.Month == _rRHS.Month
- && _rLHS.Year == _rRHS.Year;
+ return _rLHS.HundredthSeconds == _rRHS.HundredthSeconds
+ && _rLHS.Seconds == _rRHS.Seconds
+ && _rLHS.Minutes == _rRHS.Minutes
+ && _rLHS.Hours == _rRHS.Hours
+ && _rLHS.Day == _rRHS.Day
+ && _rLHS.Month == _rRHS.Month
+ && _rLHS.Year == _rRHS.Year;
}
//---------------------------------------------------------------------
@@ -116,7 +116,7 @@ namespace svt
//= TemplateContent
//=====================================================================
struct TemplateContent;
- typedef ::std::vector< ::rtl::Reference< TemplateContent > > TemplateFolderContent;
+ typedef ::std::vector< ::rtl::Reference< TemplateContent > > TemplateFolderContent;
typedef TemplateFolderContent::const_iterator ConstFolderIterator;
typedef TemplateFolderContent::iterator FolderIterator;
@@ -127,13 +127,13 @@ namespace svt
public:
private:
- INetURLObject m_aURL;
- String m_sLocalName; // redundant - last segment of m_aURL
- util::DateTime m_aLastModified; // date of last modification as reported by UCP
- TemplateFolderContent m_aSubContents; // sorted (by name) list of the children
+ INetURLObject m_aURL;
+ String m_sLocalName; // redundant - last segment of m_aURL
+ util::DateTime m_aLastModified; // date of last modification as reported by UCP
+ TemplateFolderContent m_aSubContents; // sorted (by name) list of the children
private:
- inline void implResetDate( )
+ inline void implResetDate( )
{
m_aLastModified.HundredthSeconds = m_aLastModified.Seconds = m_aLastModified.Minutes = m_aLastModified.Hours = 0;
m_aLastModified.Day = m_aLastModified.Month = m_aLastModified.Year = 0;
@@ -148,20 +148,20 @@ namespace svt
TemplateContent( const INetURLObject& _rURL, const util::DateTime& _rLastModified );
// attribute access
- inline String getName( ) const { return m_sLocalName; }
- inline String getURL( ) const { return m_aURL.GetMainURL( INetURLObject::DECODE_TO_IURI ); }
- inline void setModDate( const util::DateTime& _rDate ) { m_aLastModified = _rDate; }
- inline const util::DateTime& getModDate( ) const { return m_aLastModified; }
+ inline String getName( ) const { return m_sLocalName; }
+ inline String getURL( ) const { return m_aURL.GetMainURL( INetURLObject::DECODE_TO_IURI ); }
+ inline void setModDate( const util::DateTime& _rDate ) { m_aLastModified = _rDate; }
+ inline const util::DateTime& getModDate( ) const { return m_aLastModified; }
- inline TemplateFolderContent& getSubContents() { return m_aSubContents; }
- inline const TemplateFolderContent& getSubContents() const { return m_aSubContents; }
+ inline TemplateFolderContent& getSubContents() { return m_aSubContents; }
+ inline const TemplateFolderContent& getSubContents() const { return m_aSubContents; }
inline ConstFolderIterator begin() const { return m_aSubContents.begin(); }
inline ConstFolderIterator end() const { return m_aSubContents.end(); }
inline TemplateFolderContent::size_type
- size() const { return m_aSubContents.size(); }
+ size() const { return m_aSubContents.size(); }
- inline void push_back( const ::rtl::Reference< TemplateContent >& _rxNewElement )
+ inline void push_back( const ::rtl::Reference< TemplateContent >& _rxNewElement )
{ m_aSubContents.push_back( _rxNewElement ); }
};
@@ -207,16 +207,16 @@ namespace svt
//---------------------------------------------------------------------
/// compares two TemplateContent by URL
struct TemplateContentURLLess
- :public ::std::binary_function < ::rtl::Reference< TemplateContent >
- , ::rtl::Reference< TemplateContent >
- , bool
+ :public ::std::binary_function < ::rtl::Reference< TemplateContent >
+ , ::rtl::Reference< TemplateContent >
+ , bool
>
{
bool operator() ( const ::rtl::Reference< TemplateContent >& _rxLHS, const ::rtl::Reference< TemplateContent >& _rxRHS ) const
{
- return _rxLHS->getURL() < _rxRHS->getURL()
- ? true
- : false;
+ return _rxLHS->getURL() < _rxRHS->getURL()
+ ? true
+ : false;
}
};
@@ -253,9 +253,9 @@ namespace svt
/** does a deep compare of two template contents
*/
struct TemplateContentEqual
- :public ::std::binary_function < ::rtl::Reference< TemplateContent >
- , ::rtl::Reference< TemplateContent >
- , bool
+ :public ::std::binary_function < ::rtl::Reference< TemplateContent >
+ , ::rtl::Reference< TemplateContent >
+ , bool
>
{
//.................................................................
@@ -278,7 +278,7 @@ namespace svt
return false;
if ( _rLHS->getSubContents().size() )
- { // there are children
+ { // there are children
// -> compare them
::std::pair< FolderIterator, FolderIterator > aFirstDifferent = ::std::mismatch(
_rLHS->getSubContents().begin(),
@@ -299,7 +299,7 @@ namespace svt
struct StorageHelper
{
protected:
- SvStream& m_rStorage;
+ SvStream& m_rStorage;
StorageHelper( SvStream& _rStorage ) : m_rStorage( _rStorage ) { }
};
@@ -469,46 +469,46 @@ namespace svt
class TemplateFolderCacheImpl
{
private:
- TemplateFolderContent m_aPreviousState; // the current state of the template dirs (as found on the HD)
- TemplateFolderContent m_aCurrentState; // the previous state of the template dirs (as found in the cache file)
+ TemplateFolderContent m_aPreviousState; // the current state of the template dirs (as found on the HD)
+ TemplateFolderContent m_aCurrentState; // the previous state of the template dirs (as found in the cache file)
osl::Mutex m_aMutex;
// will be lazy inited; never access directly; use getOfficeInstDirs().
uno::Reference< util::XOfficeInstallationDirectories > m_xOfficeInstDirs;
- SvStream* m_pCacheStream;
- sal_Bool m_bNeedsUpdate : 1;
- sal_Bool m_bKnowState : 1;
- sal_Bool m_bValidCurrentState : 1;
- sal_Bool m_bAutoStoreState : 1;
+ SvStream* m_pCacheStream;
+ sal_Bool m_bNeedsUpdate : 1;
+ sal_Bool m_bKnowState : 1;
+ sal_Bool m_bValidCurrentState : 1;
+ sal_Bool m_bAutoStoreState : 1;
public:
TemplateFolderCacheImpl( sal_Bool _bAutoStoreState );
~TemplateFolderCacheImpl( );
- sal_Bool needsUpdate( sal_Bool _bForceCheck );
- void storeState( sal_Bool _bForceRetrieval );
+ sal_Bool needsUpdate( sal_Bool _bForceCheck );
+ void storeState( sal_Bool _bForceRetrieval );
private:
- void initTemplDirs( ::std::vector< String >& _rRootDirs );
- sal_Bool openCacheStream( sal_Bool _bForRead );
- void closeCacheStream( );
+ void initTemplDirs( ::std::vector< String >& _rRootDirs );
+ sal_Bool openCacheStream( sal_Bool _bForRead );
+ void closeCacheStream( );
/// read the state of the dirs from the cache file
- sal_Bool readPreviousState();
+ sal_Bool readPreviousState();
/// read the current state of the dirs
- sal_Bool readCurrentState();
+ sal_Bool readCurrentState();
- String implParseSmart( const String& _rPath );
+ String implParseSmart( const String& _rPath );
- sal_Bool implReadFolder( const ::rtl::Reference< TemplateContent >& _rxRoot );
+ sal_Bool implReadFolder( const ::rtl::Reference< TemplateContent >& _rxRoot );
- static String getCacheFileName();
- static sal_Int32 getMagicNumber();
- static void normalize( TemplateFolderContent& _rState );
+ static String getCacheFileName();
+ static sal_Int32 getMagicNumber();
+ static void normalize( TemplateFolderContent& _rState );
// @return <TRUE/> if the states equal
- static sal_Bool equalStates( const TemplateFolderContent& _rLHS, const TemplateFolderContent& _rRHS );
+ static sal_Bool equalStates( const TemplateFolderContent& _rLHS, const TemplateFolderContent& _rRHS );
// late initialize m_xOfficeInstDirs
uno::Reference< util::XOfficeInstallationDirectories > getOfficeInstDirs();
@@ -516,11 +516,11 @@ namespace svt
//---------------------------------------------------------------------
TemplateFolderCacheImpl::TemplateFolderCacheImpl( sal_Bool _bAutoStoreState )
- :m_pCacheStream ( NULL )
- ,m_bNeedsUpdate ( sal_True )
- ,m_bKnowState ( sal_False )
- ,m_bValidCurrentState ( sal_False )
- ,m_bAutoStoreState ( _bAutoStoreState )
+ :m_pCacheStream ( NULL )
+ ,m_bNeedsUpdate ( sal_True )
+ ,m_bKnowState ( sal_False )
+ ,m_bValidCurrentState ( sal_False )
+ ,m_bAutoStoreState ( _bAutoStoreState )
{
}
@@ -585,7 +585,7 @@ namespace svt
if ( m_bValidCurrentState && openCacheStream( sal_False ) )
{
- *m_pCacheStream << getMagicNumber();
+ *m_pCacheStream << getMagicNumber();
// store the template root folders
// the size
@@ -673,16 +673,16 @@ namespace svt
::rtl::Reference< TemplateContent > xChild = new TemplateContent( aSubContentURL );
// the modified date
- xChild->setModDate( xRow->getTimestamp( 2 ) ); // date modified
+ xChild->setModDate( xRow->getTimestamp( 2 ) ); // date modified
if ( xRow->wasNull() )
- xChild->setModDate( xRow->getTimestamp( 3 ) ); // fallback: date created
+ xChild->setModDate( xRow->getTimestamp( 3 ) ); // fallback: date created
// push back this content
_rxRoot->push_back( xChild );
// is it a folder?
if ( xRow->getBoolean( 4 ) && !xRow->wasNull() )
- { // yes -> step down
+ { // yes -> step down
ConstFolderIterator aNextLevelRoot = _rxRoot->end();
--aNextLevelRoot;
implReadFolder( *aNextLevelRoot );
@@ -707,8 +707,8 @@ namespace svt
m_aCurrentState.swap( aTemplateFolderContent );
// the template directories from the config
- String aDirs = SvtPathOptions().GetTemplatePath();
- sal_uInt16 nDirs = aDirs.GetTokenCount( ';' );
+ String aDirs = SvtPathOptions().GetTemplatePath();
+ sal_uInt16 nDirs = aDirs.GetTokenCount( ';' );
m_aCurrentState.reserve( nDirs );
// loop through all the root-level template folders
@@ -798,7 +798,7 @@ namespace svt
// open the stream
m_pCacheStream = UcbStreamHelper::CreateStream( aStorageURL.GetMainURL( INetURLObject::DECODE_TO_IURI ),
- _bForRead ? STREAM_READ | STREAM_NOCREATE : STREAM_WRITE | STREAM_TRUNC );
+ _bForRead ? STREAM_READ | STREAM_NOCREATE : STREAM_WRITE | STREAM_TRUNC );
DBG_ASSERT( m_pCacheStream, "TemplateFolderCacheImpl::openCacheStream: could not open/create the cache stream!" );
if ( m_pCacheStream && m_pCacheStream->GetErrorCode() )
{
@@ -824,7 +824,7 @@ namespace svt
{
// open the stream which contains the cached state of the directories
if ( openCacheStream( sal_True ) )
- { // opening the stream succeeded
+ { // opening the stream succeeded
if ( readPreviousState() )
{
m_bNeedsUpdate = !equalStates( m_aPreviousState, m_aCurrentState );
@@ -915,7 +915,7 @@ namespace svt
}
//.........................................................................
-} // namespace sfx2
+} // namespace sfx2
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index 50ad17317955..567a47d7ed84 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -394,14 +394,14 @@ Any SAL_CALL TransferableHelper::getTransferData( const DataFlavor& rFlavor ) th
if( maAny >>= aSeq )
{
- SvMemoryStream* pSrcStm = new SvMemoryStream( (char*) aSeq.getConstArray(), aSeq.getLength(), STREAM_WRITE | STREAM_TRUNC );
- GDIMetaFile aMtf;
+ SvMemoryStream* pSrcStm = new SvMemoryStream( (char*) aSeq.getConstArray(), aSeq.getLength(), STREAM_WRITE | STREAM_TRUNC );
+ GDIMetaFile aMtf;
*pSrcStm >> aMtf;
delete pSrcStm;
- Graphic aGraphic( aMtf );
- SvMemoryStream aDstStm( 65535, 65535 );
+ Graphic aGraphic( aMtf );
+ SvMemoryStream aDstStm( 65535, 65535 );
if( GraphicConverter::Export( aDstStm, aGraphic, CVT_EMF ) == ERRCODE_NONE )
{
@@ -424,14 +424,14 @@ Any SAL_CALL TransferableHelper::getTransferData( const DataFlavor& rFlavor ) th
if( maAny >>= aSeq )
{
- SvMemoryStream* pSrcStm = new SvMemoryStream( (char*) aSeq.getConstArray(), aSeq.getLength(), STREAM_WRITE | STREAM_TRUNC );
- GDIMetaFile aMtf;
+ SvMemoryStream* pSrcStm = new SvMemoryStream( (char*) aSeq.getConstArray(), aSeq.getLength(), STREAM_WRITE | STREAM_TRUNC );
+ GDIMetaFile aMtf;
*pSrcStm >> aMtf;
delete pSrcStm;
- SvMemoryStream aDstStm( 65535, 65535 );
-
+ SvMemoryStream aDstStm( 65535, 65535 );
+
// taking wmf without file header
if ( ConvertGDIMetaFileToWMF( aMtf, aDstStm, NULL, FALSE ) )
{
@@ -482,9 +482,9 @@ Sequence< DataFlavor > SAL_CALL TransferableHelper::getTransferDataFlavors() thr
{
}
- Sequence< DataFlavor > aRet( mpFormats->size() );
- DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
- sal_uInt32 nCurPos = 0;
+ Sequence< DataFlavor > aRet( mpFormats->size() );
+ DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
+ sal_uInt32 nCurPos = 0;
while( aIter != aEnd )
{
@@ -499,7 +499,7 @@ Sequence< DataFlavor > SAL_CALL TransferableHelper::getTransferDataFlavors() thr
sal_Bool SAL_CALL TransferableHelper::isDataFlavorSupported( const DataFlavor& rFlavor ) throw( RuntimeException )
{
const SolarMutexGuard aGuard;
- sal_Bool bRet = sal_False;
+ sal_Bool bRet = sal_False;
try
{
@@ -625,8 +625,8 @@ void TransferableHelper::ImplFlush()
{
if( mxClipboard.is() )
{
- Reference< XFlushableClipboard > xFlushableClipboard( mxClipboard, UNO_QUERY );
- const sal_uInt32 nRef = Application::ReleaseSolarMutex();
+ Reference< XFlushableClipboard > xFlushableClipboard( mxClipboard, UNO_QUERY );
+ const sal_uInt32 nRef = Application::ReleaseSolarMutex();
try
{
@@ -744,8 +744,8 @@ void TransferableHelper::RemoveFormat( const DataFlavor& rFlavor )
sal_Bool TransferableHelper::HasFormat( SotFormatStringId nFormat )
{
- DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
- sal_Bool bRet = sal_False;
+ DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
+ sal_Bool bRet = sal_False;
while( aIter != aEnd )
{
@@ -787,9 +787,9 @@ sal_Bool TransferableHelper::SetString( const ::rtl::OUString& rString, const Da
SotExchange::GetFormatDataFlavor( FORMAT_FILE, aFileFlavor ) &&
TransferableDataHelper::IsEqual( aFileFlavor, rFlavor ) )
{
- const String aString( rString );
- const ByteString aByteStr( aString, gsl_getSystemTextEncoding() );
- Sequence< sal_Int8 > aSeq( aByteStr.Len() + 1 );
+ const String aString( rString );
+ const ByteString aByteStr( aString, gsl_getSystemTextEncoding() );
+ Sequence< sal_Int8 > aSeq( aByteStr.Len() + 1 );
rtl_copyMemory( aSeq.getArray(), aByteStr.GetBuffer(), aByteStr.Len() );
aSeq[ aByteStr.Len() ] = 0;
@@ -928,9 +928,9 @@ sal_Bool TransferableHelper::SetINetBookmark( const INetBookmark& rBmk,
#ifdef WNT
case SOT_FORMATSTR_ID_FILEGRPDESCRIPTOR:
{
- Sequence< sal_Int8 > aSeq( sizeof( FILEGROUPDESCRIPTOR ) );
- FILEGROUPDESCRIPTOR* pFDesc = (FILEGROUPDESCRIPTOR*) aSeq.getArray();
- FILEDESCRIPTOR& rFDesc1 = pFDesc->fgd[ 0 ];
+ Sequence< sal_Int8 > aSeq( sizeof( FILEGROUPDESCRIPTOR ) );
+ FILEGROUPDESCRIPTOR* pFDesc = (FILEGROUPDESCRIPTOR*) aSeq.getArray();
+ FILEDESCRIPTOR& rFDesc1 = pFDesc->fgd[ 0 ];
pFDesc->cItems = 1;
memset( &rFDesc1, 0, sizeof( FILEDESCRIPTOR ) );
@@ -1005,8 +1005,8 @@ sal_Bool TransferableHelper::SetObject( void* pUserObject, sal_uInt32 nUserObjec
if( pUserObject && WriteObject( xStm, pUserObject, nUserObjectId, rFlavor ) )
{
- const sal_uInt32 nLen = xStm->Seek( STREAM_SEEK_TO_END );
- Sequence< sal_Int8 > aSeq( nLen );
+ const sal_uInt32 nLen = xStm->Seek( STREAM_SEEK_TO_END );
+ Sequence< sal_Int8 > aSeq( nLen );
xStm->Seek( STREAM_SEEK_TO_BEGIN );
xStm->Read( aSeq.getArray(), nLen );
@@ -1014,9 +1014,9 @@ sal_Bool TransferableHelper::SetObject( void* pUserObject, sal_uInt32 nUserObjec
if( nLen && ( SotExchange::GetFormat( rFlavor ) == SOT_FORMAT_STRING ) )
{
//JP 24.7.2001: as I know was this only for the writer application and this
- // writes now UTF16 format into the stream
+ // writes now UTF16 format into the stream
//JP 6.8.2001: and now it writes UTF8 because then exist no problem with
- // little / big endians! - Bug 88121
+ // little / big endians! - Bug 88121
maAny <<= ::rtl::OUString( reinterpret_cast< const sal_Char* >( aSeq.getConstArray() ), nLen - 1, RTL_TEXTENCODING_UTF8 );
}
else
@@ -1161,19 +1161,19 @@ void TransferableHelper::StartDrag( Window* pWindow, sal_Int8 nDnDSourceActions,
if( pWindow->IsMouseCaptured() )
pWindow->ReleaseMouse();
- const Point aPt( pWindow->GetPointerPosPixel() );
+ const Point aPt( pWindow->GetPointerPosPixel() );
// On Mac OS X we are forced to execute 'startDrag' synchronously
// contrary to the XDragSource interface specification because
- // we can receive drag events from the system only in the main
+ // we can receive drag events from the system only in the main
// thread
#if !defined(QUARTZ)
const sal_uInt32 nRef = Application::ReleaseSolarMutex();
-#endif
+#endif
try
{
- DragGestureEvent aEvt;
+ DragGestureEvent aEvt;
aEvt.DragAction = DNDConstants::ACTION_COPY;
aEvt.DragOriginX = aPt.X();
aEvt.DragOriginY = aPt.Y();
@@ -1188,7 +1188,7 @@ void TransferableHelper::StartDrag( Window* pWindow, sal_Int8 nDnDSourceActions,
// See above for the reason of this define
#if !defined(QUARTZ)
Application::AcquireSolarMutex( nRef );
-#endif
+#endif
}
}
@@ -1212,7 +1212,7 @@ Reference< XClipboard> TransferableHelper::GetSystemClipboard()
if( pFocusWindow )
return pFocusWindow->GetClipboard();
- return Reference< XClipboard > ();
+ return Reference< XClipboard > ();
}
// -----------------------------------------------------------------------------
@@ -1243,7 +1243,7 @@ class TransferableClipboardNotifier : public ::cppu::WeakImplHelper1< XClipboard
private:
::osl::Mutex& mrMutex;
Reference< XClipboardNotifier > mxNotifier;
- TransferableDataHelper* mpListener;
+ TransferableDataHelper* mpListener;
protected:
// XClipboardListener
@@ -1415,7 +1415,7 @@ void TransferableDataHelper::FillDataFlavorExVector( const Sequence< DataFlavor
{
Reference< XMultiServiceFactory > xFact( ::comphelper::getProcessServiceFactory() );
Reference< XMimeContentTypeFactory > xMimeFact;
- DataFlavorEx aFlavorEx;
+ DataFlavorEx aFlavorEx;
const ::rtl::OUString aCharsetStr( ::rtl::OUString::createFromAscii( "charset" ) );
if( xFact.is() )
@@ -1425,7 +1425,7 @@ void TransferableDataHelper::FillDataFlavorExVector( const Sequence< DataFlavor
for( sal_Int32 i = 0; i < rDataFlavorSeq.getLength(); i++ )
{
- const DataFlavor& rFlavor = rDataFlavorSeq[ i ];
+ const DataFlavor& rFlavor = rDataFlavorSeq[ i ];
Reference< XMimeContentType > xMimeType;
try
@@ -1542,8 +1542,8 @@ sal_Bool TransferableDataHelper::HasFormat( SotFormatStringId nFormat ) const
{
::osl::MutexGuard aGuard( mpImpl->maMutex );
- DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
- sal_Bool bRet = sal_False;
+ DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
+ sal_Bool bRet = sal_False;
while( aIter != aEnd )
{
@@ -1563,8 +1563,8 @@ sal_Bool TransferableDataHelper::HasFormat( const DataFlavor& rFlavor ) const
{
::osl::MutexGuard aGuard( mpImpl->maMutex );
- DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
- sal_Bool bRet = sal_False;
+ DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
+ sal_Bool bRet = sal_False;
while( aIter != aEnd )
{
@@ -1638,7 +1638,7 @@ Reference< XTransferable > TransferableDataHelper::GetXTransferable() const
// -----------------------------------------------------------------------------
-Any TransferableDataHelper::GetAny( SotFormatStringId nFormat ) const
+Any TransferableDataHelper::GetAny( SotFormatStringId nFormat ) const
{
Any aReturn;
@@ -1771,8 +1771,8 @@ sal_Bool TransferableDataHelper::GetBitmap( SotFormatStringId nFormat, Bitmap& r
sal_Bool TransferableDataHelper::GetBitmap( const DataFlavor& rFlavor, Bitmap& rBmp )
{
SotStorageStreamRef xStm;
- DataFlavor aSubstFlavor;
- sal_Bool bRet = GetSotStorageStream( rFlavor, xStm );
+ DataFlavor aSubstFlavor;
+ sal_Bool bRet = GetSotStorageStream( rFlavor, xStm );
if( bRet )
{
@@ -1826,8 +1826,8 @@ sal_Bool TransferableDataHelper::GetGDIMetaFile( SotFormatStringId nFormat, GDIM
sal_Bool TransferableDataHelper::GetGDIMetaFile( const DataFlavor& rFlavor, GDIMetaFile& rMtf )
{
SotStorageStreamRef xStm;
- DataFlavor aSubstFlavor;
- sal_Bool bRet = sal_False;
+ DataFlavor aSubstFlavor;
+ sal_Bool bRet = sal_False;
if( GetSotStorageStream( rFlavor, xStm ) )
{
@@ -1878,10 +1878,10 @@ sal_Bool TransferableDataHelper::GetGraphic( SotFormatStringId nFormat, Graphic&
sal_Bool TransferableDataHelper::GetGraphic( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, Graphic& rGraphic )
{
- DataFlavor aFlavor;
- sal_Bool bRet = sal_False;
+ DataFlavor aFlavor;
+ sal_Bool bRet = sal_False;
- if( SotExchange::GetFormatDataFlavor( SOT_FORMAT_BITMAP, aFlavor ) &&
+ if( SotExchange::GetFormatDataFlavor( SOT_FORMAT_BITMAP, aFlavor ) &&
TransferableDataHelper::IsEqual( aFlavor, rFlavor ) )
{
Bitmap aBmp;
@@ -1924,7 +1924,7 @@ sal_Bool TransferableDataHelper::GetImageMap( SotFormatStringId nFormat, ImageMa
sal_Bool TransferableDataHelper::GetImageMap( const ::com::sun::star::datatransfer::DataFlavor& rFlavor, ImageMap& rIMap )
{
SotStorageStreamRef xStm;
- sal_Bool bRet = GetSotStorageStream( rFlavor, xStm );
+ sal_Bool bRet = GetSotStorageStream( rFlavor, xStm );
if( bRet )
{
@@ -1982,8 +1982,8 @@ sal_Bool TransferableDataHelper::GetINetBookmark( const ::com::sun::star::datatr
}
else
{
- String aURL, aDesc;
- sal_uInt16 nStart = aString.Search( '@' ), nLen = (sal_uInt16) aString.ToInt32();
+ String aURL, aDesc;
+ sal_uInt16 nStart = aString.Search( '@' ), nLen = (sal_uInt16) aString.ToInt32();
if( !nLen && aString.GetChar( 0 ) != '0' )
{
@@ -2040,8 +2040,8 @@ sal_Bool TransferableDataHelper::GetINetBookmark( const ::com::sun::star::datatr
if( pFDesc->cItems )
{
- ByteString aDesc( pFDesc->fgd[ 0 ].cFileName );
- rtl_TextEncoding eTextEncoding = gsl_getSystemTextEncoding();
+ ByteString aDesc( pFDesc->fgd[ 0 ].cFileName );
+ rtl_TextEncoding eTextEncoding = gsl_getSystemTextEncoding();
if( ( aDesc.Len() > 4 ) && aDesc.Copy( aDesc.Len() - 4 ).EqualsIgnoreCaseAscii( ".URL" ) )
{
@@ -2066,8 +2066,8 @@ sal_Bool TransferableDataHelper::GetINetBookmark( const ::com::sun::star::datatr
if( pStream )
{
- ByteString aLine;
- sal_Bool bSttFnd = sal_False;
+ ByteString aLine;
+ sal_Bool bSttFnd = sal_False;
while( pStream->ReadLine( aLine ) )
{
@@ -2196,8 +2196,8 @@ sal_Bool TransferableDataHelper::GetSotStorageStream( SotFormatStringId nFormat,
sal_Bool TransferableDataHelper::GetSotStorageStream( const DataFlavor& rFlavor, SotStorageStreamRef& rxStream )
{
- Sequence< sal_Int8 > aSeq;
- sal_Bool bRet = GetSequence( rFlavor, aSeq );
+ Sequence< sal_Int8 > aSeq;
+ sal_Bool bRet = GetSequence( rFlavor, aSeq );
if( bRet )
{
@@ -2219,8 +2219,8 @@ sal_Bool TransferableDataHelper::GetInputStream( SotFormatStringId nFormat, Refe
sal_Bool TransferableDataHelper::GetInputStream( const DataFlavor& rFlavor, Reference < XInputStream >& rxStream )
{
- Sequence< sal_Int8 > aSeq;
- sal_Bool bRet = GetSequence( rFlavor, aSeq );
+ Sequence< sal_Int8 > aSeq;
+ sal_Bool bRet = GetSequence( rFlavor, aSeq );
if( bRet )
rxStream = new ::comphelper::SequenceInputStream( aSeq );
@@ -2286,8 +2286,8 @@ TransferableDataHelper TransferableDataHelper::CreateFromSystemClipboard( Window
{
DBG_ASSERT( pWindow, "Window pointer is NULL" );
- Reference< XClipboard > xClipboard;
- TransferableDataHelper aRet;
+ Reference< XClipboard > xClipboard;
+ TransferableDataHelper aRet;
if( pWindow )
xClipboard = pWindow->GetClipboard();
@@ -2321,8 +2321,8 @@ TransferableDataHelper TransferableDataHelper::CreateFromSelection( Window* pWin
{
DBG_ASSERT( pWindow, "Window pointer is NULL" );
- Reference< XClipboard > xSelection;
- TransferableDataHelper aRet;
+ Reference< XClipboard > xSelection;
+ TransferableDataHelper aRet;
if( pWindow )
xSelection = pWindow->GetPrimarySelection();
@@ -2358,7 +2358,7 @@ sal_Bool TransferableDataHelper::IsEqual( const ::com::sun::star::datatransfer::
{
Reference< XMultiServiceFactory > xFact( ::comphelper::getProcessServiceFactory() );
Reference< XMimeContentTypeFactory > xMimeFact;
- sal_Bool bRet = sal_False;
+ sal_Bool bRet = sal_False;
try
{
diff --git a/svtools/source/misc/transfer2.cxx b/svtools/source/misc/transfer2.cxx
index 3ef70f236b0d..8d31d86fd068 100644
--- a/svtools/source/misc/transfer2.cxx
+++ b/svtools/source/misc/transfer2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -339,8 +339,8 @@ sal_Int8 DropTargetHelper::ExecuteDrop( const ExecuteDropEvent& )
sal_Bool DropTargetHelper::IsDropFormatSupported( SotFormatStringId nFormat )
{
- DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
- sal_Bool bRet = sal_False;
+ DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
+ sal_Bool bRet = sal_False;
while( aIter != aEnd )
{
@@ -358,8 +358,8 @@ sal_Bool DropTargetHelper::IsDropFormatSupported( SotFormatStringId nFormat )
sal_Bool DropTargetHelper::IsDropFormatSupported( const DataFlavor& rFlavor )
{
- DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
- sal_Bool bRet = sal_False;
+ DataFlavorExVector::iterator aIter( mpFormats->begin() ), aEnd( mpFormats->end() );
+ sal_Bool bRet = sal_False;
while( aIter != aEnd )
{
@@ -433,7 +433,7 @@ void TransferDataContainer::AddSupportedFormats()
sal_Bool TransferDataContainer::GetData( const
::com::sun::star::datatransfer::DataFlavor& rFlavor )
{
- TDataCntnrEntryList::iterator aIter( pImpl->aFmtList.begin() ),
+ TDataCntnrEntryList::iterator aIter( pImpl->aFmtList.begin() ),
aEnd( pImpl->aFmtList.end() );
sal_Bool bFnd = sal_False;
ULONG nFmtId = SotExchange::GetFormat( rFlavor );
diff --git a/svtools/source/misc/unitconv.cxx b/svtools/source/misc/unitconv.cxx
index 130c8edc24c8..4a5a4827c3e2 100644
--- a/svtools/source/misc/unitconv.cxx
+++ b/svtools/source/misc/unitconv.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
void SetFieldUnit( MetricField& rField, FieldUnit eUnit, BOOL bAll )
{
- sal_Int64 nFirst = rField.Denormalize( rField.GetFirst( FUNIT_TWIP ) );
+ sal_Int64 nFirst = rField.Denormalize( rField.GetFirst( FUNIT_TWIP ) );
sal_Int64 nLast = rField.Denormalize( rField.GetLast( FUNIT_TWIP ) );
sal_Int64 nMin = rField.Denormalize( rField.GetMin( FUNIT_TWIP ) );
sal_Int64 nMax = rField.Denormalize( rField.GetMax( FUNIT_TWIP ) );
@@ -174,10 +174,10 @@ long CalcToUnit( float nIn, SfxMapUnit eUnit )
{
// nIn ist in Points
- DBG_ASSERT( eUnit == SFX_MAPUNIT_TWIP ||
- eUnit == SFX_MAPUNIT_100TH_MM ||
- eUnit == SFX_MAPUNIT_10TH_MM ||
- eUnit == SFX_MAPUNIT_MM ||
+ DBG_ASSERT( eUnit == SFX_MAPUNIT_TWIP ||
+ eUnit == SFX_MAPUNIT_100TH_MM ||
+ eUnit == SFX_MAPUNIT_10TH_MM ||
+ eUnit == SFX_MAPUNIT_MM ||
eUnit == SFX_MAPUNIT_CM, "this unit is not implemented" );
float nTmp = nIn;
@@ -187,17 +187,17 @@ long CalcToUnit( float nIn, SfxMapUnit eUnit )
switch ( eUnit )
{
- case SFX_MAPUNIT_100TH_MM: nTmp *= 100; break;
- case SFX_MAPUNIT_10TH_MM: nTmp *= 10; break;
- case SFX_MAPUNIT_MM: break;
- case SFX_MAPUNIT_CM: nTmp /= 10; break;
+ case SFX_MAPUNIT_100TH_MM: nTmp *= 100; break;
+ case SFX_MAPUNIT_10TH_MM: nTmp *= 10; break;
+ case SFX_MAPUNIT_MM: break;
+ case SFX_MAPUNIT_CM: nTmp /= 10; break;
default: ;//prevent warning
}
nTmp *= 20;
long nRet = (long)nTmp;
return nRet;
-//! return (long)(nTmp * 20);
+//! return (long)(nTmp * 20);
}
// -----------------------------------------------------------------------
@@ -356,10 +356,10 @@ long ConvertValueToUnit( long nVal, SfxMapUnit eUnit )
long CalcToPoint( long nIn, SfxMapUnit eUnit, USHORT nFaktor )
{
- DBG_ASSERT( eUnit == SFX_MAPUNIT_TWIP ||
- eUnit == SFX_MAPUNIT_100TH_MM ||
- eUnit == SFX_MAPUNIT_10TH_MM ||
- eUnit == SFX_MAPUNIT_MM ||
+ DBG_ASSERT( eUnit == SFX_MAPUNIT_TWIP ||
+ eUnit == SFX_MAPUNIT_100TH_MM ||
+ eUnit == SFX_MAPUNIT_10TH_MM ||
+ eUnit == SFX_MAPUNIT_MM ||
eUnit == SFX_MAPUNIT_CM, "this unit is not implemented" );
long nRet = 0;
@@ -371,10 +371,10 @@ long CalcToPoint( long nIn, SfxMapUnit eUnit, USHORT nFaktor )
switch ( eUnit )
{
- case SFX_MAPUNIT_100TH_MM: nRet /= 100; break;
- case SFX_MAPUNIT_10TH_MM: nRet /= 10; break;
- case SFX_MAPUNIT_MM: break;
- case SFX_MAPUNIT_CM: nRet *= 10; break;
+ case SFX_MAPUNIT_100TH_MM: nRet /= 100; break;
+ case SFX_MAPUNIT_10TH_MM: nRet /= 10; break;
+ case SFX_MAPUNIT_MM: break;
+ case SFX_MAPUNIT_CM: nRet *= 10; break;
default: ;//prevent warning
}
@@ -707,20 +707,20 @@ long Nothing( long nIn )
FUNC_CONVERT ConvertTable[6][6] =
{
-// CM, MM INCH POINT PICAS=32 TWIPS
- { Nothing, CMToMM, CMToInch, CMToPoint, CMToPica, CMToTwips },
- { MMToCM, Nothing, MMToInch, MMToPoint, MMToPica, MMToTwips },
- { InchToCM, InchToMM, Nothing, InchToPoint, InchToPica, InchToTwips },
- { PointToCM, PointToMM, PointToInch, Nothing, PointToPica, PointToTwips },
- { PicaToCM, PicaToMM, PicaToInch, PicaToPoint, Nothing, PicaToTwips },
- { TwipsToCM, TwipsToMM, TwipsToInch, TwipsToPoint,TwipsToPica, Nothing }
+// CM, MM INCH POINT PICAS=32 TWIPS
+ { Nothing, CMToMM, CMToInch, CMToPoint, CMToPica, CMToTwips },
+ { MMToCM, Nothing, MMToInch, MMToPoint, MMToPica, MMToTwips },
+ { InchToCM, InchToMM, Nothing, InchToPoint, InchToPica, InchToTwips },
+ { PointToCM, PointToMM, PointToInch, Nothing, PointToPica, PointToTwips },
+ { PicaToCM, PicaToMM, PicaToInch, PicaToPoint, Nothing, PicaToTwips },
+ { TwipsToCM, TwipsToMM, TwipsToInch, TwipsToPoint,TwipsToPica, Nothing }
};
// -----------------------------------------------------------------------
long TransformMetric( long nVal, FieldUnit aOld, FieldUnit aNew )
{
- if ( aOld == FUNIT_NONE || aNew == FUNIT_NONE ||
+ if ( aOld == FUNIT_NONE || aNew == FUNIT_NONE ||
aOld == FUNIT_CUSTOM || aNew == FUNIT_CUSTOM )
{
return nVal;
diff --git a/svtools/source/misc/wallitem.cxx b/svtools/source/misc/wallitem.cxx
index 147cd0a6b154..82cd8aadb394 100644
--- a/svtools/source/misc/wallitem.cxx
+++ b/svtools/source/misc/wallitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/misc/xwindowitem.cxx b/svtools/source/misc/xwindowitem.cxx
index d801d06317b8..791b7e72501b 100644
--- a/svtools/source/misc/xwindowitem.cxx
+++ b/svtools/source/misc/xwindowitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,8 +40,8 @@ using namespace ::com::sun::star;
TYPEINIT1_FACTORY( XWindowItem, SfxPoolItem, new XWindowItem );
-
-XWindowItem::XWindowItem() :
+
+XWindowItem::XWindowItem() :
SfxPoolItem()
{
}
@@ -58,16 +58,16 @@ XWindowItem::XWindowItem( USHORT nWhichId, Window * pWin ) :
}
}
-
+
XWindowItem::XWindowItem( USHORT nWhichId, uno::Reference< awt::XWindow > & rxWin ) :
- SfxPoolItem( nWhichId ),
+ SfxPoolItem( nWhichId ),
m_xWin( rxWin )
{
-}
+}
XWindowItem::XWindowItem( const XWindowItem &rItem ) :
- SfxPoolItem( Which() ),
+ SfxPoolItem( Which() ),
m_xWin( rItem.m_xWin )
{
}
@@ -77,12 +77,12 @@ XWindowItem::~XWindowItem()
{
}
-
+
SfxPoolItem * XWindowItem::Clone( SfxItemPool* /*pPool*/ ) const
{
return new XWindowItem( *this );
}
-
+
int XWindowItem::operator == ( const SfxPoolItem & rAttr ) const
{
diff --git a/svtools/source/plugapp/commtest.cxx b/svtools/source/plugapp/commtest.cxx
index 6dc88e4d9645..7c5dd316569a 100644
--- a/svtools/source/plugapp/commtest.cxx
+++ b/svtools/source/plugapp/commtest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -142,23 +142,23 @@ void CommunicationTester::Main()
Execute();
}
-#define SWITCH( pManager, ManagerClass ) \
-{ \
- if ( pManager ) \
- { \
- pManager->StopCommunication(); \
- new DelayedDeleter( 1000, pManager ); \
- pTB->SetItemState( pTB->GetCurItemId(), STATE_NOCHECK ); \
- pManager = NULL; \
- } \
- else \
- { \
- pManager = new ManagerClass; \
+#define SWITCH( pManager, ManagerClass ) \
+{ \
+ if ( pManager ) \
+ { \
+ pManager->StopCommunication(); \
+ new DelayedDeleter( 1000, pManager ); \
+ pTB->SetItemState( pTB->GetCurItemId(), STATE_NOCHECK ); \
+ pManager = NULL; \
+ } \
+ else \
+ { \
+ pManager = new ManagerClass; \
pManager->SetConnectionOpenedHdl( LINK( this, CommunicationTester, ConnectionOpened ) );\
pManager->SetConnectionClosedHdl( LINK( this, CommunicationTester, ConnectionClosed ) );\
pManager->SetDataReceivedHdl( LINK( this, CommunicationTester, DataReceived ) );\
- pTB->SetItemState( pTB->GetCurItemId(), STATE_CHECK ); \
- } \
+ pTB->SetItemState( pTB->GetCurItemId(), STATE_CHECK ); \
+ } \
}
@@ -170,14 +170,14 @@ IMPL_LINK( CommunicationTester, TBClick, ToolBox*, pTB )
{
SWITCH( pServerTcp, CommunicationManagerServerViaSocket( TCP_PORT, (USHORT) 32000 ) );
if ( pServerTcp )
- pServerTcp->StartCommunication(); // Am Port horchen
+ pServerTcp->StartCommunication(); // Am Port horchen
}
break;
case CLIENT_TCP:
{
SWITCH( pClientTcp, CommunicationManagerClientViaSocket( "localhost", TCP_PORT ) );
if ( pClientTcp )
- pClientTcp->StartCommunication(); // Eine Verbindung aufbauen
+ pClientTcp->StartCommunication(); // Eine Verbindung aufbauen
}
break;
case BCST_BROOKER:
diff --git a/svtools/source/plugapp/commtest.hrc b/svtools/source/plugapp/commtest.hrc
index f0f646b49bfc..973d1ac06089 100644
--- a/svtools/source/plugapp/commtest.hrc
+++ b/svtools/source/plugapp/commtest.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,8 +27,8 @@
#define TBMenu 256
-#define SERVER_TCP 1
-#define CLIENT_TCP 2
-#define BCST_BROOKER 3
-#define BCST_LISTEN 4
-#define BCST_SEND 5
+#define SERVER_TCP 1
+#define CLIENT_TCP 2
+#define BCST_BROOKER 3
+#define BCST_LISTEN 4
+#define BCST_SEND 5
diff --git a/svtools/source/plugapp/commtest.src b/svtools/source/plugapp/commtest.src
index 7073699f4956..47c1fd0acab1 100644
--- a/svtools/source/plugapp/commtest.src
+++ b/svtools/source/plugapp/commtest.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@ ToolBox TBMenu {
Pos = MAP_APPFONT( 0, 0 );
Size = MAP_APPFONT( 100, 20 );
LineCount = 2;
-// FloatingLines = 2;
+// FloatingLines = 2;
ItemList = {
ToolBoxItem {
Identifier = SERVER_TCP;
diff --git a/svtools/source/plugapp/testtool.hrc b/svtools/source/plugapp/testtool.hrc
index d6a234b74236..e8d1c04ac699 100644
--- a/svtools/source/plugapp/testtool.hrc
+++ b/svtools/source/plugapp/testtool.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -24,32 +24,32 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-#define TTSTART 12345
+#define TTSTART 12345
-#define DisplayHidToolBox ( TTSTART + 0 )
-#define TT_SHOW 1
-#define TT_SHOW2 ( TTSTART + 1 )
-#define TT_OUTPUT 3
-#define TT_SEND_DATA 4
-#define TT_ALLWIN 5
-#define TT_KURZNAME 6
-#define TT_LANGNAME 7
+#define DisplayHidToolBox ( TTSTART + 0 )
+#define TT_SHOW 1
+#define TT_SHOW2 ( TTSTART + 1 )
+#define TT_OUTPUT 3
+#define TT_SEND_DATA 4
+#define TT_ALLWIN 5
+#define TT_KURZNAME 6
+#define TT_LANGNAME 7
#define TT_ALTERNATE_CAPTION ( TTSTART + 2 )
#define TT_INLINE_TRANSLATION ( TTSTART + 3)
-#define TT_GB_TRANSLATION 1
-#define TT_E_NEW 2
-#define TT_FT_OLD 3
-#define TT_GB_COMMENT 4
-#define TT_E_COMMENT 5
+#define TT_GB_TRANSLATION 1
+#define TT_E_NEW 2
+#define TT_FT_OLD 3
+#define TT_GB_COMMENT 4
+#define TT_E_COMMENT 5
-#define TT_PB_SELECT 6
-#define TT_PB_RESTORE 7
-#define TT_PB_ACCEPT 8
-#define TT_PB_NEXT 9
+#define TT_PB_SELECT 6
+#define TT_PB_RESTORE 7
+#define TT_PB_ACCEPT 8
+#define TT_PB_NEXT 9
#define TT_DISCARD_CHANGED_DATA ( TTSTART + 4 )
-#define TT_NO_CONTROL ( TTSTART + 5 )
+#define TT_NO_CONTROL ( TTSTART + 5 )
-#define TT_GPF ( TTSTART + 6 )
+#define TT_GPF ( TTSTART + 6 )
diff --git a/svtools/source/plugapp/testtool.src b/svtools/source/plugapp/testtool.src
index 9cc52c58f013..f7c905202ad2 100644
--- a/svtools/source/plugapp/testtool.src
+++ b/svtools/source/plugapp/testtool.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,10 +28,10 @@
#include <svl/solar.hrc>
-#define Control_Control 5
-#define Control_Border 7
-#define Button_Button Control_Control
-#define ButtonWidth 40
+#define Control_Control 5
+#define Control_Border 7
+#define Button_Button Control_Control
+#define ButtonWidth 40
ToolBox DisplayHidToolBox {
diff --git a/svtools/source/plugapp/ttprops.cxx b/svtools/source/plugapp/ttprops.cxx
index fb556cfcebc1..53e483408acd 100644
--- a/svtools/source/plugapp/ttprops.cxx
+++ b/svtools/source/plugapp/ttprops.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/productregistration/productregistration.cxx b/svtools/source/productregistration/productregistration.cxx
index 1a76a939def7..890d57f5546b 100644
--- a/svtools/source/productregistration/productregistration.cxx
+++ b/svtools/source/productregistration/productregistration.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,7 +76,7 @@ namespace svt
struct EqualsOUString : public ::std::unary_function< OUString, sal_Bool >
{
- const OUString& m_rCompare;
+ const OUString& m_rCompare;
EqualsOUString( const OUString& _rCompare ) : m_rCompare( _rCompare ) { }
sal_Bool operator() ( const OUString& _rCompare )
@@ -298,7 +298,7 @@ namespace svt
static sal_Bool bFirstEncounter( sal_True );
if ( bFirstEncounter )
- { // during this session, this event was never triggered before ....
+ { // during this session, this event was never triggered before ....
bFirstEncounter = sal_False;
sal_Bool bDeactivateJob = sal_True;
@@ -309,7 +309,7 @@ namespace svt
utl::RegOptions::DialogPermission ePermission( aRegOptions.getDialogPermission() );
if ( utl::RegOptions::dpDisabled != ePermission )
- { // the dialog is _not_ disabled
+ { // the dialog is _not_ disabled
// for this session, I'm no interested in the dialog registration anymore
aRegOptions.markSessionDone( );
@@ -317,7 +317,7 @@ namespace svt
if ( ( utl::RegOptions::dpNotThisSession == ePermission ) // first trigger session not reached
|| ( utl::RegOptions::dpRemindLater == ePermission ) // or at a later reminder date
)
- { // the dialog should be executed during one of the next sessions
+ { // the dialog should be executed during one of the next sessions
bDeactivateJob = sal_False;
}
else
@@ -449,7 +449,7 @@ namespace svt
}
//........................................................................
-} // namespace svt
+} // namespace svt
//........................................................................
extern "C"
diff --git a/svtools/source/productregistration/productregistration.hxx b/svtools/source/productregistration/productregistration.hxx
index edebe0cc9ba1..25de90332460 100644
--- a/svtools/source/productregistration/productregistration.hxx
+++ b/svtools/source/productregistration/productregistration.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,10 +43,10 @@ namespace svt
//====================================================================
//= OProductRegistration
//====================================================================
- typedef ::cppu::WeakImplHelper3 < ::com::sun::star::lang::XServiceInfo
- , ::com::sun::star::task::XJobExecutor
- , ::com::sun::star::task::XJob
- > OProductRegistration_Base;
+ typedef ::cppu::WeakImplHelper3 < ::com::sun::star::lang::XServiceInfo
+ , ::com::sun::star::task::XJobExecutor
+ , ::com::sun::star::task::XJob
+ > OProductRegistration_Base;
class OProductRegistration : public OProductRegistration_Base
{
@@ -94,7 +94,7 @@ namespace svt
};
//........................................................................
-} // namespace svt
+} // namespace svt
//........................................................................
#endif // SVTOOLS_PRODUCTREGISTRATION_HXX
diff --git a/svtools/source/productregistration/registrationdlg.cxx b/svtools/source/productregistration/registrationdlg.cxx
index 3e3ba5f64d52..f44158279ad0 100644
--- a/svtools/source/productregistration/registrationdlg.cxx
+++ b/svtools/source/productregistration/registrationdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,16 +58,16 @@ namespace svt
//--------------------------------------------------------------------
RegistrationDialog::RegistrationDialog( Window* _pWindow, const ResId& _rResId, bool _bEvalVersion )
:ModalDialog( _pWindow, _rResId )
- ,m_eResponse ( urRegisterLater )
- ,m_aLogo ( this, ResId( FI_LOGO, *_rResId.GetResMgr() ) )
- ,m_aIntro ( this, ResId( FT_INTRO, *_rResId.GetResMgr() ) )
- ,m_aNow ( this, ResId( RB_NOW, *_rResId.GetResMgr() ) )
- ,m_aLater ( this, ResId( RB_LATER, *_rResId.GetResMgr() ) )
- ,m_aNever ( this, ResId( RB_NEVER, *_rResId.GetResMgr() ) )
- ,m_aAlreadyDone ( this, ResId( RB_DONE, *_rResId.GetResMgr() ) )
- ,m_aSeparator ( this, ResId( FL_SEPARATOR, *_rResId.GetResMgr() ) )
- ,m_aOK ( this, ResId( BTN_OK, *_rResId.GetResMgr() ) )
- ,m_aHelp ( this, ResId( BTN_HELP, *_rResId.GetResMgr() ) )
+ ,m_eResponse ( urRegisterLater )
+ ,m_aLogo ( this, ResId( FI_LOGO, *_rResId.GetResMgr() ) )
+ ,m_aIntro ( this, ResId( FT_INTRO, *_rResId.GetResMgr() ) )
+ ,m_aNow ( this, ResId( RB_NOW, *_rResId.GetResMgr() ) )
+ ,m_aLater ( this, ResId( RB_LATER, *_rResId.GetResMgr() ) )
+ ,m_aNever ( this, ResId( RB_NEVER, *_rResId.GetResMgr() ) )
+ ,m_aAlreadyDone ( this, ResId( RB_DONE, *_rResId.GetResMgr() ) )
+ ,m_aSeparator ( this, ResId( FL_SEPARATOR, *_rResId.GetResMgr() ) )
+ ,m_aOK ( this, ResId( BTN_OK, *_rResId.GetResMgr() ) )
+ ,m_aHelp ( this, ResId( BTN_HELP, *_rResId.GetResMgr() ) )
{
if ( _bEvalVersion )
{ // if we're an eval version, we need to hide two of the options
@@ -144,7 +144,7 @@ namespace svt
{
long nHandled;
if( rNEvt.GetType() == EVENT_KEYINPUT &&
- rNEvt.GetKeyEvent()->GetCharCode() &&
+ rNEvt.GetKeyEvent()->GetCharCode() &&
rNEvt.GetKeyEvent()->GetKeyCode().GetCode() == KEY_ESCAPE)
{
EndDialog(RET_CANCEL);
@@ -153,11 +153,11 @@ namespace svt
else
nHandled = ModalDialog::PreNotify( rNEvt );
return nHandled;
- }
+ }
//........................................................................
-} // namespace svt
+} // namespace svt
//........................................................................
diff --git a/svtools/source/productregistration/registrationdlg.hrc b/svtools/source/productregistration/registrationdlg.hrc
index cfcde5f8c9b3..9685e8e8e432 100644
--- a/svtools/source/productregistration/registrationdlg.hrc
+++ b/svtools/source/productregistration/registrationdlg.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,16 +28,16 @@
#ifndef SVTOOLS_REGISTRATIONDLG_HRC
#define SVTOOLS_REGISTRATIONDLG_HRC
-#define FI_LOGO 1
-#define FT_INTRO 2
-#define RB_NOW 3
-#define RB_LATER 4
-#define RB_NEVER 5
-#define RB_DONE 6
-#define FL_SEPARATOR 7
-#define BTN_OK 8
-#define BTN_HELP 9
-#define STR_COMPLETE_INTRO 10
+#define FI_LOGO 1
+#define FT_INTRO 2
+#define RB_NOW 3
+#define RB_LATER 4
+#define RB_NEVER 5
+#define RB_DONE 6
+#define FL_SEPARATOR 7
+#define BTN_OK 8
+#define BTN_HELP 9
+#define STR_COMPLETE_INTRO 10
#endif // SVTOOLS_REGISTRATIONDLG_HRC
diff --git a/svtools/source/productregistration/registrationdlg.hxx b/svtools/source/productregistration/registrationdlg.hxx
index 48126d63efae..78ffb3a02f29 100644
--- a/svtools/source/productregistration/registrationdlg.hxx
+++ b/svtools/source/productregistration/registrationdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,28 +53,28 @@ namespace svt
};
private:
- UserResponse m_eResponse;
+ UserResponse m_eResponse;
- FixedImage m_aLogo;
- FixedText m_aIntro;
+ FixedImage m_aLogo;
+ FixedText m_aIntro;
- RadioButton m_aNow;
- RadioButton m_aLater;
- RadioButton m_aNever;
- RadioButton m_aAlreadyDone;
+ RadioButton m_aNow;
+ RadioButton m_aLater;
+ RadioButton m_aNever;
+ RadioButton m_aAlreadyDone;
- FixedLine m_aSeparator;
+ FixedLine m_aSeparator;
- OKButton m_aOK;
- HelpButton m_aHelp;
+ OKButton m_aOK;
+ HelpButton m_aHelp;
public:
RegistrationDialog( Window* _pWindow, const ResId& _rResId, bool _bEvalVersion );
- virtual short Execute();
+ virtual short Execute();
virtual long PreNotify( NotifyEvent& rNEvt );
- inline UserResponse getResponse() const { return m_eResponse; }
+ inline UserResponse getResponse() const { return m_eResponse; }
};
diff --git a/svtools/source/productregistration/registrationdlg.src b/svtools/source/productregistration/registrationdlg.src
index c4cdcbcbe3ec..ea0226ae4b22 100644
--- a/svtools/source/productregistration/registrationdlg.src
+++ b/svtools/source/productregistration/registrationdlg.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/svhtml/htmlkywd.cxx b/svtools/source/svhtml/htmlkywd.cxx
index 48b9db7a84fe..ad1373966cf9 100644
--- a/svtools/source/svhtml/htmlkywd.cxx
+++ b/svtools/source/svhtml/htmlkywd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,156 +53,156 @@ struct HTML_TokenEntry
static int __FAR_DATA bSortKeyWords = FALSE;
static HTML_TokenEntry __FAR_DATA aHTMLTokenTab[] = {
- {{OOO_STRING_SVTOOLS_HTML_area}, HTML_AREA}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_base}, HTML_BASE}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_comment}, HTML_COMMENT},
- {{OOO_STRING_SVTOOLS_HTML_doctype}, HTML_DOCTYPE},
- {{OOO_STRING_SVTOOLS_HTML_embed}, HTML_EMBED}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_figureoverlay}, HTML_FIGUREOVERLAY}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_horzrule}, HTML_HORZRULE},
- {{OOO_STRING_SVTOOLS_HTML_horztab}, HTML_HORZTAB}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_image}, HTML_IMAGE},
- {{OOO_STRING_SVTOOLS_HTML_image2}, HTML_IMAGE},
- {{OOO_STRING_SVTOOLS_HTML_input}, HTML_INPUT},
- {{OOO_STRING_SVTOOLS_HTML_isindex}, HTML_ISINDEX}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_li}, HTML_LI_ON},
- {{OOO_STRING_SVTOOLS_HTML_linebreak}, HTML_LINEBREAK},
- {{OOO_STRING_SVTOOLS_HTML_link}, HTML_LINK}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_meta}, HTML_META}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_nextid}, HTML_NEXTID}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_of}, HTML_OF}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_option}, HTML_OPTION},
- {{OOO_STRING_SVTOOLS_HTML_param}, HTML_PARAM}, // HotJava
- {{OOO_STRING_SVTOOLS_HTML_range}, HTML_RANGE}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_spacer}, HTML_SPACER}, // Netscape 3.0b5
- {{OOO_STRING_SVTOOLS_HTML_wbr}, HTML_WBR}, // Netscape
-
- {{OOO_STRING_SVTOOLS_HTML_abbreviation}, HTML_ABBREVIATION_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_above}, HTML_ABOVE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_acronym}, HTML_ACRONYM_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_address}, HTML_ADDRESS_ON},
- {{OOO_STRING_SVTOOLS_HTML_anchor}, HTML_ANCHOR_ON},
- {{OOO_STRING_SVTOOLS_HTML_applet}, HTML_APPLET_ON}, // HotJava
- {{OOO_STRING_SVTOOLS_HTML_array}, HTML_ARRAY_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_author}, HTML_AUTHOR_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_banner}, HTML_BANNER_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_bar}, HTML_BAR_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_basefont}, HTML_BASEFONT_ON}, // Netscape
- {{OOO_STRING_SVTOOLS_HTML_below}, HTML_BELOW_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_bigprint}, HTML_BIGPRINT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_blink}, HTML_BLINK_ON}, // Netscape
- {{OOO_STRING_SVTOOLS_HTML_blockquote}, HTML_BLOCKQUOTE_ON},
- {{OOO_STRING_SVTOOLS_HTML_blockquote30}, HTML_BLOCKQUOTE30_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_body}, HTML_BODY_ON},
- {{OOO_STRING_SVTOOLS_HTML_bold}, HTML_BOLD_ON},
- {{OOO_STRING_SVTOOLS_HTML_boldtext}, HTML_BOLDTEXT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_box}, HTML_BOX_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_caption}, HTML_CAPTION_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_center}, HTML_CENTER_ON}, // Netscape
- {{OOO_STRING_SVTOOLS_HTML_citiation}, HTML_CITIATION_ON},
- {{OOO_STRING_SVTOOLS_HTML_col}, HTML_COL_ON}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_colgroup}, HTML_COLGROUP_ON}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_code}, HTML_CODE_ON},
- {{OOO_STRING_SVTOOLS_HTML_credit}, HTML_CREDIT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_dd}, HTML_DD_ON},
- {{OOO_STRING_SVTOOLS_HTML_deflist}, HTML_DEFLIST_ON},
- {{OOO_STRING_SVTOOLS_HTML_deletedtext}, HTML_DELETEDTEXT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_dirlist}, HTML_DIRLIST_ON},
- {{OOO_STRING_SVTOOLS_HTML_division}, HTML_DIVISION_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_dot}, HTML_DOT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_doubledot}, HTML_DOUBLEDOT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_dt}, HTML_DT_ON},
- {{OOO_STRING_SVTOOLS_HTML_emphasis}, HTML_EMPHASIS_ON},
- {{OOO_STRING_SVTOOLS_HTML_figure}, HTML_FIGURE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_font}, HTML_FONT_ON}, // Netscpe
- {{OOO_STRING_SVTOOLS_HTML_footnote}, HTML_FOOTNOTE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_form}, HTML_FORM_ON},
- {{OOO_STRING_SVTOOLS_HTML_frame}, HTML_FRAME_ON}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_frameset}, HTML_FRAMESET_ON}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_hat}, HTML_HAT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_head}, HTML_HEAD_ON},
- {{OOO_STRING_SVTOOLS_HTML_head1}, HTML_HEAD1_ON},
- {{OOO_STRING_SVTOOLS_HTML_head2}, HTML_HEAD2_ON},
- {{OOO_STRING_SVTOOLS_HTML_head3}, HTML_HEAD3_ON},
- {{OOO_STRING_SVTOOLS_HTML_head4}, HTML_HEAD4_ON},
- {{OOO_STRING_SVTOOLS_HTML_head5}, HTML_HEAD5_ON},
- {{OOO_STRING_SVTOOLS_HTML_head6}, HTML_HEAD6_ON},
- {{OOO_STRING_SVTOOLS_HTML_html}, HTML_HTML_ON},
- {{OOO_STRING_SVTOOLS_HTML_iframe}, HTML_IFRAME_ON}, // IE 3.0b2
- {{OOO_STRING_SVTOOLS_HTML_ilayer}, HTML_ILAYER_ON},
- {{OOO_STRING_SVTOOLS_HTML_insertedtext}, HTML_INSERTEDTEXT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_italic}, HTML_ITALIC_ON},
- {{OOO_STRING_SVTOOLS_HTML_item}, HTML_ITEM_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_keyboard}, HTML_KEYBOARD_ON},
- {{OOO_STRING_SVTOOLS_HTML_language}, HTML_LANGUAGE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_layer}, HTML_LAYER_ON},
- {{OOO_STRING_SVTOOLS_HTML_listheader}, HTML_LISTHEADER_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_map}, HTML_MAP_ON}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_math}, HTML_MATH_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_menulist}, HTML_MENULIST_ON},
- {{OOO_STRING_SVTOOLS_HTML_multicol}, HTML_MULTICOL_ON}, // Netscape 3.0b5
- {{OOO_STRING_SVTOOLS_HTML_nobr}, HTML_NOBR_ON}, // Netscape
- {{OOO_STRING_SVTOOLS_HTML_noembed}, HTML_NOEMBED_ON}, // Netscape 2.0 ???
- {{OOO_STRING_SVTOOLS_HTML_noframe}, HTML_NOFRAMES_ON}, // Netscape 2.0 ???
- {{OOO_STRING_SVTOOLS_HTML_noframes}, HTML_NOFRAMES_ON}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_noscript}, HTML_NOSCRIPT_ON}, // Netscape 3.0
- {{OOO_STRING_SVTOOLS_HTML_note}, HTML_NOTE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_object}, HTML_OBJECT_ON},
- {{OOO_STRING_SVTOOLS_HTML_orderlist}, HTML_ORDERLIST_ON},
- {{OOO_STRING_SVTOOLS_HTML_parabreak}, HTML_PARABREAK_ON},
- {{OOO_STRING_SVTOOLS_HTML_person}, HTML_PERSON_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_plaintext}, HTML_PLAINTEXT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_preformtxt}, HTML_PREFORMTXT_ON},
- {{OOO_STRING_SVTOOLS_HTML_root}, HTML_ROOT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_row}, HTML_ROW_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_sample}, HTML_SAMPLE_ON},
- {{OOO_STRING_SVTOOLS_HTML_script}, HTML_SCRIPT_ON}, // HTML 3.2
- {{OOO_STRING_SVTOOLS_HTML_select}, HTML_SELECT_ON},
- {{OOO_STRING_SVTOOLS_HTML_shortquote}, HTML_SHORTQUOTE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_smallprint}, HTML_SMALLPRINT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_span}, HTML_SPAN_ON}, // Style Sheets
- {{OOO_STRING_SVTOOLS_HTML_squareroot}, HTML_SQUAREROOT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_strikethrough},HTML_STRIKETHROUGH_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_strong}, HTML_STRONG_ON},
- {{OOO_STRING_SVTOOLS_HTML_style}, HTML_STYLE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_subscript}, HTML_SUBSCRIPT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_superscript}, HTML_SUPERSCRIPT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_table}, HTML_TABLE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_tabledata}, HTML_TABLEDATA_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_tableheader}, HTML_TABLEHEADER_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_tablerow}, HTML_TABLEROW_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_tbody}, HTML_TBODY_ON}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_teletype}, HTML_TELETYPE_ON},
- {{OOO_STRING_SVTOOLS_HTML_text}, HTML_TEXT_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_textarea}, HTML_TEXTAREA_ON},
- {{OOO_STRING_SVTOOLS_HTML_textflow}, HTML_TEXTFLOW_ON},
- {{OOO_STRING_SVTOOLS_HTML_tfoot}, HTML_TFOOT_ON}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_thead}, HTML_THEAD_ON}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_tilde}, HTML_TILDE_ON}, // HTML 3.0
- {{OOO_STRING_SVTOOLS_HTML_title}, HTML_TITLE_ON},
- {{OOO_STRING_SVTOOLS_HTML_underline}, HTML_UNDERLINE_ON},
- {{OOO_STRING_SVTOOLS_HTML_unorderlist}, HTML_UNORDERLIST_ON},
- {{OOO_STRING_SVTOOLS_HTML_variable}, HTML_VARIABLE_ON},
- {{OOO_STRING_SVTOOLS_HTML_vector}, HTML_VECTOR_ON}, // HTML 3.0
-
- {{OOO_STRING_SVTOOLS_HTML_xmp}, HTML_XMP_ON},
- {{OOO_STRING_SVTOOLS_HTML_listing}, HTML_LISTING_ON},
-
- {{OOO_STRING_SVTOOLS_HTML_definstance}, HTML_DEFINSTANCE_ON},
- {{OOO_STRING_SVTOOLS_HTML_strike}, HTML_STRIKE_ON},
-
- {{OOO_STRING_SVTOOLS_HTML_bgsound}, HTML_BGSOUND},
- {{OOO_STRING_SVTOOLS_HTML_comment2}, HTML_COMMENT2_ON},
- {{OOO_STRING_SVTOOLS_HTML_marquee}, HTML_MARQUEE_ON},
- {{OOO_STRING_SVTOOLS_HTML_plaintext2}, HTML_PLAINTEXT2_ON},
-
- {{OOO_STRING_SVTOOLS_HTML_sdfield}, HTML_SDFIELD_ON}
+ {{OOO_STRING_SVTOOLS_HTML_area}, HTML_AREA}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_base}, HTML_BASE}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_comment}, HTML_COMMENT},
+ {{OOO_STRING_SVTOOLS_HTML_doctype}, HTML_DOCTYPE},
+ {{OOO_STRING_SVTOOLS_HTML_embed}, HTML_EMBED}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_figureoverlay}, HTML_FIGUREOVERLAY}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_horzrule}, HTML_HORZRULE},
+ {{OOO_STRING_SVTOOLS_HTML_horztab}, HTML_HORZTAB}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_image}, HTML_IMAGE},
+ {{OOO_STRING_SVTOOLS_HTML_image2}, HTML_IMAGE},
+ {{OOO_STRING_SVTOOLS_HTML_input}, HTML_INPUT},
+ {{OOO_STRING_SVTOOLS_HTML_isindex}, HTML_ISINDEX}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_li}, HTML_LI_ON},
+ {{OOO_STRING_SVTOOLS_HTML_linebreak}, HTML_LINEBREAK},
+ {{OOO_STRING_SVTOOLS_HTML_link}, HTML_LINK}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_meta}, HTML_META}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_nextid}, HTML_NEXTID}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_of}, HTML_OF}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_option}, HTML_OPTION},
+ {{OOO_STRING_SVTOOLS_HTML_param}, HTML_PARAM}, // HotJava
+ {{OOO_STRING_SVTOOLS_HTML_range}, HTML_RANGE}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_spacer}, HTML_SPACER}, // Netscape 3.0b5
+ {{OOO_STRING_SVTOOLS_HTML_wbr}, HTML_WBR}, // Netscape
+
+ {{OOO_STRING_SVTOOLS_HTML_abbreviation}, HTML_ABBREVIATION_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_above}, HTML_ABOVE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_acronym}, HTML_ACRONYM_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_address}, HTML_ADDRESS_ON},
+ {{OOO_STRING_SVTOOLS_HTML_anchor}, HTML_ANCHOR_ON},
+ {{OOO_STRING_SVTOOLS_HTML_applet}, HTML_APPLET_ON}, // HotJava
+ {{OOO_STRING_SVTOOLS_HTML_array}, HTML_ARRAY_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_author}, HTML_AUTHOR_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_banner}, HTML_BANNER_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_bar}, HTML_BAR_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_basefont}, HTML_BASEFONT_ON}, // Netscape
+ {{OOO_STRING_SVTOOLS_HTML_below}, HTML_BELOW_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_bigprint}, HTML_BIGPRINT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_blink}, HTML_BLINK_ON}, // Netscape
+ {{OOO_STRING_SVTOOLS_HTML_blockquote}, HTML_BLOCKQUOTE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_blockquote30}, HTML_BLOCKQUOTE30_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_body}, HTML_BODY_ON},
+ {{OOO_STRING_SVTOOLS_HTML_bold}, HTML_BOLD_ON},
+ {{OOO_STRING_SVTOOLS_HTML_boldtext}, HTML_BOLDTEXT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_box}, HTML_BOX_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_caption}, HTML_CAPTION_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_center}, HTML_CENTER_ON}, // Netscape
+ {{OOO_STRING_SVTOOLS_HTML_citiation}, HTML_CITIATION_ON},
+ {{OOO_STRING_SVTOOLS_HTML_col}, HTML_COL_ON}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_colgroup}, HTML_COLGROUP_ON}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_code}, HTML_CODE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_credit}, HTML_CREDIT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_dd}, HTML_DD_ON},
+ {{OOO_STRING_SVTOOLS_HTML_deflist}, HTML_DEFLIST_ON},
+ {{OOO_STRING_SVTOOLS_HTML_deletedtext}, HTML_DELETEDTEXT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_dirlist}, HTML_DIRLIST_ON},
+ {{OOO_STRING_SVTOOLS_HTML_division}, HTML_DIVISION_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_dot}, HTML_DOT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_doubledot}, HTML_DOUBLEDOT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_dt}, HTML_DT_ON},
+ {{OOO_STRING_SVTOOLS_HTML_emphasis}, HTML_EMPHASIS_ON},
+ {{OOO_STRING_SVTOOLS_HTML_figure}, HTML_FIGURE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_font}, HTML_FONT_ON}, // Netscpe
+ {{OOO_STRING_SVTOOLS_HTML_footnote}, HTML_FOOTNOTE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_form}, HTML_FORM_ON},
+ {{OOO_STRING_SVTOOLS_HTML_frame}, HTML_FRAME_ON}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_frameset}, HTML_FRAMESET_ON}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_hat}, HTML_HAT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_head}, HTML_HEAD_ON},
+ {{OOO_STRING_SVTOOLS_HTML_head1}, HTML_HEAD1_ON},
+ {{OOO_STRING_SVTOOLS_HTML_head2}, HTML_HEAD2_ON},
+ {{OOO_STRING_SVTOOLS_HTML_head3}, HTML_HEAD3_ON},
+ {{OOO_STRING_SVTOOLS_HTML_head4}, HTML_HEAD4_ON},
+ {{OOO_STRING_SVTOOLS_HTML_head5}, HTML_HEAD5_ON},
+ {{OOO_STRING_SVTOOLS_HTML_head6}, HTML_HEAD6_ON},
+ {{OOO_STRING_SVTOOLS_HTML_html}, HTML_HTML_ON},
+ {{OOO_STRING_SVTOOLS_HTML_iframe}, HTML_IFRAME_ON}, // IE 3.0b2
+ {{OOO_STRING_SVTOOLS_HTML_ilayer}, HTML_ILAYER_ON},
+ {{OOO_STRING_SVTOOLS_HTML_insertedtext}, HTML_INSERTEDTEXT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_italic}, HTML_ITALIC_ON},
+ {{OOO_STRING_SVTOOLS_HTML_item}, HTML_ITEM_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_keyboard}, HTML_KEYBOARD_ON},
+ {{OOO_STRING_SVTOOLS_HTML_language}, HTML_LANGUAGE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_layer}, HTML_LAYER_ON},
+ {{OOO_STRING_SVTOOLS_HTML_listheader}, HTML_LISTHEADER_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_map}, HTML_MAP_ON}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_math}, HTML_MATH_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_menulist}, HTML_MENULIST_ON},
+ {{OOO_STRING_SVTOOLS_HTML_multicol}, HTML_MULTICOL_ON}, // Netscape 3.0b5
+ {{OOO_STRING_SVTOOLS_HTML_nobr}, HTML_NOBR_ON}, // Netscape
+ {{OOO_STRING_SVTOOLS_HTML_noembed}, HTML_NOEMBED_ON}, // Netscape 2.0 ???
+ {{OOO_STRING_SVTOOLS_HTML_noframe}, HTML_NOFRAMES_ON}, // Netscape 2.0 ???
+ {{OOO_STRING_SVTOOLS_HTML_noframes}, HTML_NOFRAMES_ON}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_noscript}, HTML_NOSCRIPT_ON}, // Netscape 3.0
+ {{OOO_STRING_SVTOOLS_HTML_note}, HTML_NOTE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_object}, HTML_OBJECT_ON},
+ {{OOO_STRING_SVTOOLS_HTML_orderlist}, HTML_ORDERLIST_ON},
+ {{OOO_STRING_SVTOOLS_HTML_parabreak}, HTML_PARABREAK_ON},
+ {{OOO_STRING_SVTOOLS_HTML_person}, HTML_PERSON_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_plaintext}, HTML_PLAINTEXT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_preformtxt}, HTML_PREFORMTXT_ON},
+ {{OOO_STRING_SVTOOLS_HTML_root}, HTML_ROOT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_row}, HTML_ROW_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_sample}, HTML_SAMPLE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_script}, HTML_SCRIPT_ON}, // HTML 3.2
+ {{OOO_STRING_SVTOOLS_HTML_select}, HTML_SELECT_ON},
+ {{OOO_STRING_SVTOOLS_HTML_shortquote}, HTML_SHORTQUOTE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_smallprint}, HTML_SMALLPRINT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_span}, HTML_SPAN_ON}, // Style Sheets
+ {{OOO_STRING_SVTOOLS_HTML_squareroot}, HTML_SQUAREROOT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_strikethrough},HTML_STRIKETHROUGH_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_strong}, HTML_STRONG_ON},
+ {{OOO_STRING_SVTOOLS_HTML_style}, HTML_STYLE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_subscript}, HTML_SUBSCRIPT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_superscript}, HTML_SUPERSCRIPT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_table}, HTML_TABLE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_tabledata}, HTML_TABLEDATA_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_tableheader}, HTML_TABLEHEADER_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_tablerow}, HTML_TABLEROW_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_tbody}, HTML_TBODY_ON}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_teletype}, HTML_TELETYPE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_text}, HTML_TEXT_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_textarea}, HTML_TEXTAREA_ON},
+ {{OOO_STRING_SVTOOLS_HTML_textflow}, HTML_TEXTFLOW_ON},
+ {{OOO_STRING_SVTOOLS_HTML_tfoot}, HTML_TFOOT_ON}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_thead}, HTML_THEAD_ON}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_tilde}, HTML_TILDE_ON}, // HTML 3.0
+ {{OOO_STRING_SVTOOLS_HTML_title}, HTML_TITLE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_underline}, HTML_UNDERLINE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_unorderlist}, HTML_UNORDERLIST_ON},
+ {{OOO_STRING_SVTOOLS_HTML_variable}, HTML_VARIABLE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_vector}, HTML_VECTOR_ON}, // HTML 3.0
+
+ {{OOO_STRING_SVTOOLS_HTML_xmp}, HTML_XMP_ON},
+ {{OOO_STRING_SVTOOLS_HTML_listing}, HTML_LISTING_ON},
+
+ {{OOO_STRING_SVTOOLS_HTML_definstance}, HTML_DEFINSTANCE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_strike}, HTML_STRIKE_ON},
+
+ {{OOO_STRING_SVTOOLS_HTML_bgsound}, HTML_BGSOUND},
+ {{OOO_STRING_SVTOOLS_HTML_comment2}, HTML_COMMENT2_ON},
+ {{OOO_STRING_SVTOOLS_HTML_marquee}, HTML_MARQUEE_ON},
+ {{OOO_STRING_SVTOOLS_HTML_plaintext2}, HTML_PLAINTEXT2_ON},
+
+ {{OOO_STRING_SVTOOLS_HTML_sdfield}, HTML_SDFIELD_ON}
};
extern "C"
{
-
+
static int
#if defined( WNT )
__cdecl
@@ -231,7 +231,7 @@ static int
nRet = strcmp( ((HTML_TokenEntry*)pFirst)->sToken,
((HTML_TokenEntry*)pSecond)->sToken );
}
-
+
return nRet;
}
@@ -283,82 +283,82 @@ struct HTML_CharEntry
static int __FAR_DATA bSortCharKeyWords = FALSE;
static HTML_CharEntry __FAR_DATA aHTMLCharNameTab[] = {
- {{OOO_STRING_SVTOOLS_HTML_C_lt}, 60},
- {{OOO_STRING_SVTOOLS_HTML_C_gt}, 62},
- {{OOO_STRING_SVTOOLS_HTML_C_amp}, 38},
- {{OOO_STRING_SVTOOLS_HTML_C_quot}, 34},
-
- {{OOO_STRING_SVTOOLS_HTML_C_Agrave}, 192},
- {{OOO_STRING_SVTOOLS_HTML_C_Aacute}, 193},
- {{OOO_STRING_SVTOOLS_HTML_C_Acirc}, 194},
- {{OOO_STRING_SVTOOLS_HTML_C_Atilde}, 195},
- {{OOO_STRING_SVTOOLS_HTML_C_Auml}, 196},
- {{OOO_STRING_SVTOOLS_HTML_C_Aring}, 197},
- {{OOO_STRING_SVTOOLS_HTML_C_AElig}, 198},
- {{OOO_STRING_SVTOOLS_HTML_C_Ccedil}, 199},
- {{OOO_STRING_SVTOOLS_HTML_C_Egrave}, 200},
- {{OOO_STRING_SVTOOLS_HTML_C_Eacute}, 201},
- {{OOO_STRING_SVTOOLS_HTML_C_Ecirc}, 202},
- {{OOO_STRING_SVTOOLS_HTML_C_Euml}, 203},
- {{OOO_STRING_SVTOOLS_HTML_C_Igrave}, 204},
- {{OOO_STRING_SVTOOLS_HTML_C_Iacute}, 205},
- {{OOO_STRING_SVTOOLS_HTML_C_Icirc}, 206},
- {{OOO_STRING_SVTOOLS_HTML_C_Iuml}, 207},
- {{OOO_STRING_SVTOOLS_HTML_C_ETH}, 208},
- {{OOO_STRING_SVTOOLS_HTML_C_Ntilde}, 209},
- {{OOO_STRING_SVTOOLS_HTML_C_Ograve}, 210},
- {{OOO_STRING_SVTOOLS_HTML_C_Oacute}, 211},
- {{OOO_STRING_SVTOOLS_HTML_C_Ocirc}, 212},
- {{OOO_STRING_SVTOOLS_HTML_C_Otilde}, 213},
- {{OOO_STRING_SVTOOLS_HTML_C_Ouml}, 214},
- {{OOO_STRING_SVTOOLS_HTML_C_Oslash}, 216},
- {{OOO_STRING_SVTOOLS_HTML_C_Ugrave}, 217},
- {{OOO_STRING_SVTOOLS_HTML_C_Uacute}, 218},
- {{OOO_STRING_SVTOOLS_HTML_C_Ucirc}, 219},
- {{OOO_STRING_SVTOOLS_HTML_C_Uuml}, 220},
- {{OOO_STRING_SVTOOLS_HTML_C_Yacute}, 221},
-
- {{OOO_STRING_SVTOOLS_HTML_C_THORN}, 222},
- {{OOO_STRING_SVTOOLS_HTML_C_szlig}, 223},
-
- {{OOO_STRING_SVTOOLS_HTML_S_agrave}, 224},
- {{OOO_STRING_SVTOOLS_HTML_S_aacute}, 225},
- {{OOO_STRING_SVTOOLS_HTML_S_acirc}, 226},
- {{OOO_STRING_SVTOOLS_HTML_S_atilde}, 227},
- {{OOO_STRING_SVTOOLS_HTML_S_auml}, 228},
- {{OOO_STRING_SVTOOLS_HTML_S_aring}, 229},
- {{OOO_STRING_SVTOOLS_HTML_S_aelig}, 230},
- {{OOO_STRING_SVTOOLS_HTML_S_ccedil}, 231},
- {{OOO_STRING_SVTOOLS_HTML_S_egrave}, 232},
- {{OOO_STRING_SVTOOLS_HTML_S_eacute}, 233},
- {{OOO_STRING_SVTOOLS_HTML_S_ecirc}, 234},
- {{OOO_STRING_SVTOOLS_HTML_S_euml}, 235},
- {{OOO_STRING_SVTOOLS_HTML_S_igrave}, 236},
- {{OOO_STRING_SVTOOLS_HTML_S_iacute}, 237},
- {{OOO_STRING_SVTOOLS_HTML_S_icirc}, 238},
- {{OOO_STRING_SVTOOLS_HTML_S_iuml}, 239},
- {{OOO_STRING_SVTOOLS_HTML_S_eth}, 240},
- {{OOO_STRING_SVTOOLS_HTML_S_ntilde}, 241},
- {{OOO_STRING_SVTOOLS_HTML_S_ograve}, 242},
- {{OOO_STRING_SVTOOLS_HTML_S_oacute}, 243},
- {{OOO_STRING_SVTOOLS_HTML_S_ocirc}, 244},
- {{OOO_STRING_SVTOOLS_HTML_S_otilde}, 245},
- {{OOO_STRING_SVTOOLS_HTML_S_ouml}, 246},
- {{OOO_STRING_SVTOOLS_HTML_S_oslash}, 248},
- {{OOO_STRING_SVTOOLS_HTML_S_ugrave}, 249},
- {{OOO_STRING_SVTOOLS_HTML_S_uacute}, 250},
- {{OOO_STRING_SVTOOLS_HTML_S_ucirc}, 251},
- {{OOO_STRING_SVTOOLS_HTML_S_uuml}, 252},
- {{OOO_STRING_SVTOOLS_HTML_S_yacute}, 253},
- {{OOO_STRING_SVTOOLS_HTML_S_thorn}, 254},
- {{OOO_STRING_SVTOOLS_HTML_S_yuml}, 255},
+ {{OOO_STRING_SVTOOLS_HTML_C_lt}, 60},
+ {{OOO_STRING_SVTOOLS_HTML_C_gt}, 62},
+ {{OOO_STRING_SVTOOLS_HTML_C_amp}, 38},
+ {{OOO_STRING_SVTOOLS_HTML_C_quot}, 34},
+
+ {{OOO_STRING_SVTOOLS_HTML_C_Agrave}, 192},
+ {{OOO_STRING_SVTOOLS_HTML_C_Aacute}, 193},
+ {{OOO_STRING_SVTOOLS_HTML_C_Acirc}, 194},
+ {{OOO_STRING_SVTOOLS_HTML_C_Atilde}, 195},
+ {{OOO_STRING_SVTOOLS_HTML_C_Auml}, 196},
+ {{OOO_STRING_SVTOOLS_HTML_C_Aring}, 197},
+ {{OOO_STRING_SVTOOLS_HTML_C_AElig}, 198},
+ {{OOO_STRING_SVTOOLS_HTML_C_Ccedil}, 199},
+ {{OOO_STRING_SVTOOLS_HTML_C_Egrave}, 200},
+ {{OOO_STRING_SVTOOLS_HTML_C_Eacute}, 201},
+ {{OOO_STRING_SVTOOLS_HTML_C_Ecirc}, 202},
+ {{OOO_STRING_SVTOOLS_HTML_C_Euml}, 203},
+ {{OOO_STRING_SVTOOLS_HTML_C_Igrave}, 204},
+ {{OOO_STRING_SVTOOLS_HTML_C_Iacute}, 205},
+ {{OOO_STRING_SVTOOLS_HTML_C_Icirc}, 206},
+ {{OOO_STRING_SVTOOLS_HTML_C_Iuml}, 207},
+ {{OOO_STRING_SVTOOLS_HTML_C_ETH}, 208},
+ {{OOO_STRING_SVTOOLS_HTML_C_Ntilde}, 209},
+ {{OOO_STRING_SVTOOLS_HTML_C_Ograve}, 210},
+ {{OOO_STRING_SVTOOLS_HTML_C_Oacute}, 211},
+ {{OOO_STRING_SVTOOLS_HTML_C_Ocirc}, 212},
+ {{OOO_STRING_SVTOOLS_HTML_C_Otilde}, 213},
+ {{OOO_STRING_SVTOOLS_HTML_C_Ouml}, 214},
+ {{OOO_STRING_SVTOOLS_HTML_C_Oslash}, 216},
+ {{OOO_STRING_SVTOOLS_HTML_C_Ugrave}, 217},
+ {{OOO_STRING_SVTOOLS_HTML_C_Uacute}, 218},
+ {{OOO_STRING_SVTOOLS_HTML_C_Ucirc}, 219},
+ {{OOO_STRING_SVTOOLS_HTML_C_Uuml}, 220},
+ {{OOO_STRING_SVTOOLS_HTML_C_Yacute}, 221},
+
+ {{OOO_STRING_SVTOOLS_HTML_C_THORN}, 222},
+ {{OOO_STRING_SVTOOLS_HTML_C_szlig}, 223},
+
+ {{OOO_STRING_SVTOOLS_HTML_S_agrave}, 224},
+ {{OOO_STRING_SVTOOLS_HTML_S_aacute}, 225},
+ {{OOO_STRING_SVTOOLS_HTML_S_acirc}, 226},
+ {{OOO_STRING_SVTOOLS_HTML_S_atilde}, 227},
+ {{OOO_STRING_SVTOOLS_HTML_S_auml}, 228},
+ {{OOO_STRING_SVTOOLS_HTML_S_aring}, 229},
+ {{OOO_STRING_SVTOOLS_HTML_S_aelig}, 230},
+ {{OOO_STRING_SVTOOLS_HTML_S_ccedil}, 231},
+ {{OOO_STRING_SVTOOLS_HTML_S_egrave}, 232},
+ {{OOO_STRING_SVTOOLS_HTML_S_eacute}, 233},
+ {{OOO_STRING_SVTOOLS_HTML_S_ecirc}, 234},
+ {{OOO_STRING_SVTOOLS_HTML_S_euml}, 235},
+ {{OOO_STRING_SVTOOLS_HTML_S_igrave}, 236},
+ {{OOO_STRING_SVTOOLS_HTML_S_iacute}, 237},
+ {{OOO_STRING_SVTOOLS_HTML_S_icirc}, 238},
+ {{OOO_STRING_SVTOOLS_HTML_S_iuml}, 239},
+ {{OOO_STRING_SVTOOLS_HTML_S_eth}, 240},
+ {{OOO_STRING_SVTOOLS_HTML_S_ntilde}, 241},
+ {{OOO_STRING_SVTOOLS_HTML_S_ograve}, 242},
+ {{OOO_STRING_SVTOOLS_HTML_S_oacute}, 243},
+ {{OOO_STRING_SVTOOLS_HTML_S_ocirc}, 244},
+ {{OOO_STRING_SVTOOLS_HTML_S_otilde}, 245},
+ {{OOO_STRING_SVTOOLS_HTML_S_ouml}, 246},
+ {{OOO_STRING_SVTOOLS_HTML_S_oslash}, 248},
+ {{OOO_STRING_SVTOOLS_HTML_S_ugrave}, 249},
+ {{OOO_STRING_SVTOOLS_HTML_S_uacute}, 250},
+ {{OOO_STRING_SVTOOLS_HTML_S_ucirc}, 251},
+ {{OOO_STRING_SVTOOLS_HTML_S_uuml}, 252},
+ {{OOO_STRING_SVTOOLS_HTML_S_yacute}, 253},
+ {{OOO_STRING_SVTOOLS_HTML_S_thorn}, 254},
+ {{OOO_STRING_SVTOOLS_HTML_S_yuml}, 255},
// Sonderzeichen
- {{OOO_STRING_SVTOOLS_HTML_S_acute}, 180},
- {{OOO_STRING_SVTOOLS_HTML_S_brvbar}, 166},
+ {{OOO_STRING_SVTOOLS_HTML_S_acute}, 180},
+ {{OOO_STRING_SVTOOLS_HTML_S_brvbar}, 166},
{{OOO_STRING_SVTOOLS_HTML_S_cedil}, 184},
{{OOO_STRING_SVTOOLS_HTML_S_cent}, 162},
- {{OOO_STRING_SVTOOLS_HTML_S_copy}, 169},
+ {{OOO_STRING_SVTOOLS_HTML_S_copy}, 169},
{{OOO_STRING_SVTOOLS_HTML_S_curren}, 164},
{{OOO_STRING_SVTOOLS_HTML_S_deg}, 176},
{{OOO_STRING_SVTOOLS_HTML_S_divide}, 247},
@@ -378,7 +378,7 @@ static HTML_CharEntry __FAR_DATA aHTMLCharNameTab[] = {
{{OOO_STRING_SVTOOLS_HTML_S_plusmn}, 177},
{{OOO_STRING_SVTOOLS_HTML_S_pound}, 163},
{{OOO_STRING_SVTOOLS_HTML_S_raquo}, 187},
- {{OOO_STRING_SVTOOLS_HTML_S_reg}, 174},
+ {{OOO_STRING_SVTOOLS_HTML_S_reg}, 174},
{{OOO_STRING_SVTOOLS_HTML_S_sect}, 167},
{{OOO_STRING_SVTOOLS_HTML_S_sup1}, 185},
{{OOO_STRING_SVTOOLS_HTML_S_sup2}, 178},
@@ -388,171 +388,171 @@ static HTML_CharEntry __FAR_DATA aHTMLCharNameTab[] = {
{{OOO_STRING_SVTOOLS_HTML_S_yen}, 165},
// Netscape kennt noch ein paar in Grossbuchstaben ...
- {{OOO_STRING_SVTOOLS_HTML_C_LT}, 60},
- {{OOO_STRING_SVTOOLS_HTML_C_GT}, 62},
- {{OOO_STRING_SVTOOLS_HTML_C_AMP}, 38},
- {{OOO_STRING_SVTOOLS_HTML_C_QUOT}, 34},
- {{OOO_STRING_SVTOOLS_HTML_S_COPY}, 169},
- {{OOO_STRING_SVTOOLS_HTML_S_REG}, 174},
+ {{OOO_STRING_SVTOOLS_HTML_C_LT}, 60},
+ {{OOO_STRING_SVTOOLS_HTML_C_GT}, 62},
+ {{OOO_STRING_SVTOOLS_HTML_C_AMP}, 38},
+ {{OOO_STRING_SVTOOLS_HTML_C_QUOT}, 34},
+ {{OOO_STRING_SVTOOLS_HTML_S_COPY}, 169},
+ {{OOO_STRING_SVTOOLS_HTML_S_REG}, 174},
// Sonderzeichen, die zu Tokens konvertiert werden !!!
- {{OOO_STRING_SVTOOLS_HTML_S_nbsp}, 1},
- {{OOO_STRING_SVTOOLS_HTML_S_shy}, 2},
+ {{OOO_STRING_SVTOOLS_HTML_S_nbsp}, 1},
+ {{OOO_STRING_SVTOOLS_HTML_S_shy}, 2},
// HTML4
- {{OOO_STRING_SVTOOLS_HTML_S_OElig}, 338},
- {{OOO_STRING_SVTOOLS_HTML_S_oelig}, 339},
- {{OOO_STRING_SVTOOLS_HTML_S_Scaron}, 352},
- {{OOO_STRING_SVTOOLS_HTML_S_scaron}, 353},
- {{OOO_STRING_SVTOOLS_HTML_S_Yuml}, 376},
- {{OOO_STRING_SVTOOLS_HTML_S_fnof}, 402},
- {{OOO_STRING_SVTOOLS_HTML_S_circ}, 710},
- {{OOO_STRING_SVTOOLS_HTML_S_tilde}, 732},
- {{OOO_STRING_SVTOOLS_HTML_S_Alpha}, 913},
- {{OOO_STRING_SVTOOLS_HTML_S_Beta}, 914},
- {{OOO_STRING_SVTOOLS_HTML_S_Gamma}, 915},
- {{OOO_STRING_SVTOOLS_HTML_S_Delta}, 916},
- {{OOO_STRING_SVTOOLS_HTML_S_Epsilon}, 917},
- {{OOO_STRING_SVTOOLS_HTML_S_Zeta}, 918},
- {{OOO_STRING_SVTOOLS_HTML_S_Eta}, 919},
- {{OOO_STRING_SVTOOLS_HTML_S_Theta}, 920},
- {{OOO_STRING_SVTOOLS_HTML_S_Iota}, 921},
- {{OOO_STRING_SVTOOLS_HTML_S_Kappa}, 922},
- {{OOO_STRING_SVTOOLS_HTML_S_Lambda}, 923},
- {{OOO_STRING_SVTOOLS_HTML_S_Mu}, 924},
- {{OOO_STRING_SVTOOLS_HTML_S_Nu}, 925},
- {{OOO_STRING_SVTOOLS_HTML_S_Xi}, 926},
- {{OOO_STRING_SVTOOLS_HTML_S_Omicron}, 927},
- {{OOO_STRING_SVTOOLS_HTML_S_Pi}, 928},
- {{OOO_STRING_SVTOOLS_HTML_S_Rho}, 929},
- {{OOO_STRING_SVTOOLS_HTML_S_Sigma}, 931},
- {{OOO_STRING_SVTOOLS_HTML_S_Tau}, 932},
- {{OOO_STRING_SVTOOLS_HTML_S_Upsilon}, 933},
- {{OOO_STRING_SVTOOLS_HTML_S_Phi}, 934},
- {{OOO_STRING_SVTOOLS_HTML_S_Chi}, 935},
- {{OOO_STRING_SVTOOLS_HTML_S_Psi}, 936},
- {{OOO_STRING_SVTOOLS_HTML_S_Omega}, 937},
- {{OOO_STRING_SVTOOLS_HTML_S_alpha}, 945},
- {{OOO_STRING_SVTOOLS_HTML_S_beta}, 946},
- {{OOO_STRING_SVTOOLS_HTML_S_gamma}, 947},
- {{OOO_STRING_SVTOOLS_HTML_S_delta}, 948},
- {{OOO_STRING_SVTOOLS_HTML_S_epsilon}, 949},
- {{OOO_STRING_SVTOOLS_HTML_S_zeta}, 950},
- {{OOO_STRING_SVTOOLS_HTML_S_eta}, 951},
- {{OOO_STRING_SVTOOLS_HTML_S_theta}, 952},
- {{OOO_STRING_SVTOOLS_HTML_S_iota}, 953},
- {{OOO_STRING_SVTOOLS_HTML_S_kappa}, 954},
- {{OOO_STRING_SVTOOLS_HTML_S_lambda}, 955},
- {{OOO_STRING_SVTOOLS_HTML_S_mu}, 956},
- {{OOO_STRING_SVTOOLS_HTML_S_nu}, 957},
- {{OOO_STRING_SVTOOLS_HTML_S_xi}, 958},
- {{OOO_STRING_SVTOOLS_HTML_S_omicron}, 959},
- {{OOO_STRING_SVTOOLS_HTML_S_pi}, 960},
- {{OOO_STRING_SVTOOLS_HTML_S_rho}, 961},
- {{OOO_STRING_SVTOOLS_HTML_S_sigmaf}, 962},
- {{OOO_STRING_SVTOOLS_HTML_S_sigma}, 963},
- {{OOO_STRING_SVTOOLS_HTML_S_tau}, 964},
- {{OOO_STRING_SVTOOLS_HTML_S_upsilon}, 965},
- {{OOO_STRING_SVTOOLS_HTML_S_phi}, 966},
- {{OOO_STRING_SVTOOLS_HTML_S_chi}, 967},
- {{OOO_STRING_SVTOOLS_HTML_S_psi}, 968},
- {{OOO_STRING_SVTOOLS_HTML_S_omega}, 969},
- {{OOO_STRING_SVTOOLS_HTML_S_thetasym}, 977},
- {{OOO_STRING_SVTOOLS_HTML_S_upsih}, 978},
- {{OOO_STRING_SVTOOLS_HTML_S_piv}, 982},
- {{OOO_STRING_SVTOOLS_HTML_S_ensp}, 8194},
- {{OOO_STRING_SVTOOLS_HTML_S_emsp}, 8195},
- {{OOO_STRING_SVTOOLS_HTML_S_thinsp}, 8201},
- {{OOO_STRING_SVTOOLS_HTML_S_zwnj}, 8204},
- {{OOO_STRING_SVTOOLS_HTML_S_zwj}, 8205},
- {{OOO_STRING_SVTOOLS_HTML_S_lrm}, 8206},
- {{OOO_STRING_SVTOOLS_HTML_S_rlm}, 8207},
- {{OOO_STRING_SVTOOLS_HTML_S_ndash}, 8211},
- {{OOO_STRING_SVTOOLS_HTML_S_mdash}, 8212},
- {{OOO_STRING_SVTOOLS_HTML_S_lsquo}, 8216},
- {{OOO_STRING_SVTOOLS_HTML_S_rsquo}, 8217},
- {{OOO_STRING_SVTOOLS_HTML_S_sbquo}, 8218},
- {{OOO_STRING_SVTOOLS_HTML_S_ldquo}, 8220},
- {{OOO_STRING_SVTOOLS_HTML_S_rdquo}, 8221},
- {{OOO_STRING_SVTOOLS_HTML_S_bdquo}, 8222},
- {{OOO_STRING_SVTOOLS_HTML_S_dagger}, 8224},
- {{OOO_STRING_SVTOOLS_HTML_S_Dagger}, 8225},
- {{OOO_STRING_SVTOOLS_HTML_S_bull}, 8226},
- {{OOO_STRING_SVTOOLS_HTML_S_hellip}, 8230},
- {{OOO_STRING_SVTOOLS_HTML_S_permil}, 8240},
- {{OOO_STRING_SVTOOLS_HTML_S_prime}, 8242},
- {{OOO_STRING_SVTOOLS_HTML_S_Prime}, 8243},
- {{OOO_STRING_SVTOOLS_HTML_S_lsaquo}, 8249},
- {{OOO_STRING_SVTOOLS_HTML_S_rsaquo}, 8250},
- {{OOO_STRING_SVTOOLS_HTML_S_oline}, 8254},
- {{OOO_STRING_SVTOOLS_HTML_S_frasl}, 8260},
- {{OOO_STRING_SVTOOLS_HTML_S_euro}, 8364},
- {{OOO_STRING_SVTOOLS_HTML_S_image}, 8465},
- {{OOO_STRING_SVTOOLS_HTML_S_weierp}, 8472},
- {{OOO_STRING_SVTOOLS_HTML_S_real}, 8476},
- {{OOO_STRING_SVTOOLS_HTML_S_trade}, 8482},
- {{OOO_STRING_SVTOOLS_HTML_S_alefsym}, 8501},
- {{OOO_STRING_SVTOOLS_HTML_S_larr}, 8592},
- {{OOO_STRING_SVTOOLS_HTML_S_uarr}, 8593},
- {{OOO_STRING_SVTOOLS_HTML_S_rarr}, 8594},
- {{OOO_STRING_SVTOOLS_HTML_S_darr}, 8595},
- {{OOO_STRING_SVTOOLS_HTML_S_harr}, 8596},
- {{OOO_STRING_SVTOOLS_HTML_S_crarr}, 8629},
- {{OOO_STRING_SVTOOLS_HTML_S_lArr}, 8656},
- {{OOO_STRING_SVTOOLS_HTML_S_uArr}, 8657},
- {{OOO_STRING_SVTOOLS_HTML_S_rArr}, 8658},
- {{OOO_STRING_SVTOOLS_HTML_S_dArr}, 8659},
- {{OOO_STRING_SVTOOLS_HTML_S_hArr}, 8660},
- {{OOO_STRING_SVTOOLS_HTML_S_forall}, 8704},
- {{OOO_STRING_SVTOOLS_HTML_S_part}, 8706},
- {{OOO_STRING_SVTOOLS_HTML_S_exist}, 8707},
- {{OOO_STRING_SVTOOLS_HTML_S_empty}, 8709},
- {{OOO_STRING_SVTOOLS_HTML_S_nabla}, 8711},
- {{OOO_STRING_SVTOOLS_HTML_S_isin}, 8712},
- {{OOO_STRING_SVTOOLS_HTML_S_notin}, 8713},
- {{OOO_STRING_SVTOOLS_HTML_S_ni}, 8715},
- {{OOO_STRING_SVTOOLS_HTML_S_prod}, 8719},
- {{OOO_STRING_SVTOOLS_HTML_S_sum}, 8721},
- {{OOO_STRING_SVTOOLS_HTML_S_minus}, 8722},
- {{OOO_STRING_SVTOOLS_HTML_S_lowast}, 8727},
- {{OOO_STRING_SVTOOLS_HTML_S_radic}, 8730},
- {{OOO_STRING_SVTOOLS_HTML_S_prop}, 8733},
- {{OOO_STRING_SVTOOLS_HTML_S_infin}, 8734},
- {{OOO_STRING_SVTOOLS_HTML_S_ang}, 8736},
- {{OOO_STRING_SVTOOLS_HTML_S_and}, 8743},
- {{OOO_STRING_SVTOOLS_HTML_S_or}, 8744},
- {{OOO_STRING_SVTOOLS_HTML_S_cap}, 8745},
- {{OOO_STRING_SVTOOLS_HTML_S_cup}, 8746},
- {{OOO_STRING_SVTOOLS_HTML_S_int}, 8747},
- {{OOO_STRING_SVTOOLS_HTML_S_there4}, 8756},
- {{OOO_STRING_SVTOOLS_HTML_S_sim}, 8764},
- {{OOO_STRING_SVTOOLS_HTML_S_cong}, 8773},
- {{OOO_STRING_SVTOOLS_HTML_S_asymp}, 8776},
- {{OOO_STRING_SVTOOLS_HTML_S_ne}, 8800},
- {{OOO_STRING_SVTOOLS_HTML_S_equiv}, 8801},
- {{OOO_STRING_SVTOOLS_HTML_S_le}, 8804},
- {{OOO_STRING_SVTOOLS_HTML_S_ge}, 8805},
- {{OOO_STRING_SVTOOLS_HTML_S_sub}, 8834},
- {{OOO_STRING_SVTOOLS_HTML_S_sup}, 8835},
- {{OOO_STRING_SVTOOLS_HTML_S_nsub}, 8836},
- {{OOO_STRING_SVTOOLS_HTML_S_sube}, 8838},
- {{OOO_STRING_SVTOOLS_HTML_S_supe}, 8839},
- {{OOO_STRING_SVTOOLS_HTML_S_oplus}, 8853},
- {{OOO_STRING_SVTOOLS_HTML_S_otimes}, 8855},
- {{OOO_STRING_SVTOOLS_HTML_S_perp}, 8869},
- {{OOO_STRING_SVTOOLS_HTML_S_sdot}, 8901},
- {{OOO_STRING_SVTOOLS_HTML_S_lceil}, 8968},
- {{OOO_STRING_SVTOOLS_HTML_S_rceil}, 8969},
- {{OOO_STRING_SVTOOLS_HTML_S_lfloor}, 8970},
- {{OOO_STRING_SVTOOLS_HTML_S_rfloor}, 8971},
- {{OOO_STRING_SVTOOLS_HTML_S_lang}, 9001},
- {{OOO_STRING_SVTOOLS_HTML_S_rang}, 9002},
- {{OOO_STRING_SVTOOLS_HTML_S_loz}, 9674},
- {{OOO_STRING_SVTOOLS_HTML_S_spades}, 9824},
- {{OOO_STRING_SVTOOLS_HTML_S_clubs}, 9827},
- {{OOO_STRING_SVTOOLS_HTML_S_hearts}, 9829},
- {{OOO_STRING_SVTOOLS_HTML_S_diams}, 9830}
+ {{OOO_STRING_SVTOOLS_HTML_S_OElig}, 338},
+ {{OOO_STRING_SVTOOLS_HTML_S_oelig}, 339},
+ {{OOO_STRING_SVTOOLS_HTML_S_Scaron}, 352},
+ {{OOO_STRING_SVTOOLS_HTML_S_scaron}, 353},
+ {{OOO_STRING_SVTOOLS_HTML_S_Yuml}, 376},
+ {{OOO_STRING_SVTOOLS_HTML_S_fnof}, 402},
+ {{OOO_STRING_SVTOOLS_HTML_S_circ}, 710},
+ {{OOO_STRING_SVTOOLS_HTML_S_tilde}, 732},
+ {{OOO_STRING_SVTOOLS_HTML_S_Alpha}, 913},
+ {{OOO_STRING_SVTOOLS_HTML_S_Beta}, 914},
+ {{OOO_STRING_SVTOOLS_HTML_S_Gamma}, 915},
+ {{OOO_STRING_SVTOOLS_HTML_S_Delta}, 916},
+ {{OOO_STRING_SVTOOLS_HTML_S_Epsilon}, 917},
+ {{OOO_STRING_SVTOOLS_HTML_S_Zeta}, 918},
+ {{OOO_STRING_SVTOOLS_HTML_S_Eta}, 919},
+ {{OOO_STRING_SVTOOLS_HTML_S_Theta}, 920},
+ {{OOO_STRING_SVTOOLS_HTML_S_Iota}, 921},
+ {{OOO_STRING_SVTOOLS_HTML_S_Kappa}, 922},
+ {{OOO_STRING_SVTOOLS_HTML_S_Lambda}, 923},
+ {{OOO_STRING_SVTOOLS_HTML_S_Mu}, 924},
+ {{OOO_STRING_SVTOOLS_HTML_S_Nu}, 925},
+ {{OOO_STRING_SVTOOLS_HTML_S_Xi}, 926},
+ {{OOO_STRING_SVTOOLS_HTML_S_Omicron}, 927},
+ {{OOO_STRING_SVTOOLS_HTML_S_Pi}, 928},
+ {{OOO_STRING_SVTOOLS_HTML_S_Rho}, 929},
+ {{OOO_STRING_SVTOOLS_HTML_S_Sigma}, 931},
+ {{OOO_STRING_SVTOOLS_HTML_S_Tau}, 932},
+ {{OOO_STRING_SVTOOLS_HTML_S_Upsilon}, 933},
+ {{OOO_STRING_SVTOOLS_HTML_S_Phi}, 934},
+ {{OOO_STRING_SVTOOLS_HTML_S_Chi}, 935},
+ {{OOO_STRING_SVTOOLS_HTML_S_Psi}, 936},
+ {{OOO_STRING_SVTOOLS_HTML_S_Omega}, 937},
+ {{OOO_STRING_SVTOOLS_HTML_S_alpha}, 945},
+ {{OOO_STRING_SVTOOLS_HTML_S_beta}, 946},
+ {{OOO_STRING_SVTOOLS_HTML_S_gamma}, 947},
+ {{OOO_STRING_SVTOOLS_HTML_S_delta}, 948},
+ {{OOO_STRING_SVTOOLS_HTML_S_epsilon}, 949},
+ {{OOO_STRING_SVTOOLS_HTML_S_zeta}, 950},
+ {{OOO_STRING_SVTOOLS_HTML_S_eta}, 951},
+ {{OOO_STRING_SVTOOLS_HTML_S_theta}, 952},
+ {{OOO_STRING_SVTOOLS_HTML_S_iota}, 953},
+ {{OOO_STRING_SVTOOLS_HTML_S_kappa}, 954},
+ {{OOO_STRING_SVTOOLS_HTML_S_lambda}, 955},
+ {{OOO_STRING_SVTOOLS_HTML_S_mu}, 956},
+ {{OOO_STRING_SVTOOLS_HTML_S_nu}, 957},
+ {{OOO_STRING_SVTOOLS_HTML_S_xi}, 958},
+ {{OOO_STRING_SVTOOLS_HTML_S_omicron}, 959},
+ {{OOO_STRING_SVTOOLS_HTML_S_pi}, 960},
+ {{OOO_STRING_SVTOOLS_HTML_S_rho}, 961},
+ {{OOO_STRING_SVTOOLS_HTML_S_sigmaf}, 962},
+ {{OOO_STRING_SVTOOLS_HTML_S_sigma}, 963},
+ {{OOO_STRING_SVTOOLS_HTML_S_tau}, 964},
+ {{OOO_STRING_SVTOOLS_HTML_S_upsilon}, 965},
+ {{OOO_STRING_SVTOOLS_HTML_S_phi}, 966},
+ {{OOO_STRING_SVTOOLS_HTML_S_chi}, 967},
+ {{OOO_STRING_SVTOOLS_HTML_S_psi}, 968},
+ {{OOO_STRING_SVTOOLS_HTML_S_omega}, 969},
+ {{OOO_STRING_SVTOOLS_HTML_S_thetasym}, 977},
+ {{OOO_STRING_SVTOOLS_HTML_S_upsih}, 978},
+ {{OOO_STRING_SVTOOLS_HTML_S_piv}, 982},
+ {{OOO_STRING_SVTOOLS_HTML_S_ensp}, 8194},
+ {{OOO_STRING_SVTOOLS_HTML_S_emsp}, 8195},
+ {{OOO_STRING_SVTOOLS_HTML_S_thinsp}, 8201},
+ {{OOO_STRING_SVTOOLS_HTML_S_zwnj}, 8204},
+ {{OOO_STRING_SVTOOLS_HTML_S_zwj}, 8205},
+ {{OOO_STRING_SVTOOLS_HTML_S_lrm}, 8206},
+ {{OOO_STRING_SVTOOLS_HTML_S_rlm}, 8207},
+ {{OOO_STRING_SVTOOLS_HTML_S_ndash}, 8211},
+ {{OOO_STRING_SVTOOLS_HTML_S_mdash}, 8212},
+ {{OOO_STRING_SVTOOLS_HTML_S_lsquo}, 8216},
+ {{OOO_STRING_SVTOOLS_HTML_S_rsquo}, 8217},
+ {{OOO_STRING_SVTOOLS_HTML_S_sbquo}, 8218},
+ {{OOO_STRING_SVTOOLS_HTML_S_ldquo}, 8220},
+ {{OOO_STRING_SVTOOLS_HTML_S_rdquo}, 8221},
+ {{OOO_STRING_SVTOOLS_HTML_S_bdquo}, 8222},
+ {{OOO_STRING_SVTOOLS_HTML_S_dagger}, 8224},
+ {{OOO_STRING_SVTOOLS_HTML_S_Dagger}, 8225},
+ {{OOO_STRING_SVTOOLS_HTML_S_bull}, 8226},
+ {{OOO_STRING_SVTOOLS_HTML_S_hellip}, 8230},
+ {{OOO_STRING_SVTOOLS_HTML_S_permil}, 8240},
+ {{OOO_STRING_SVTOOLS_HTML_S_prime}, 8242},
+ {{OOO_STRING_SVTOOLS_HTML_S_Prime}, 8243},
+ {{OOO_STRING_SVTOOLS_HTML_S_lsaquo}, 8249},
+ {{OOO_STRING_SVTOOLS_HTML_S_rsaquo}, 8250},
+ {{OOO_STRING_SVTOOLS_HTML_S_oline}, 8254},
+ {{OOO_STRING_SVTOOLS_HTML_S_frasl}, 8260},
+ {{OOO_STRING_SVTOOLS_HTML_S_euro}, 8364},
+ {{OOO_STRING_SVTOOLS_HTML_S_image}, 8465},
+ {{OOO_STRING_SVTOOLS_HTML_S_weierp}, 8472},
+ {{OOO_STRING_SVTOOLS_HTML_S_real}, 8476},
+ {{OOO_STRING_SVTOOLS_HTML_S_trade}, 8482},
+ {{OOO_STRING_SVTOOLS_HTML_S_alefsym}, 8501},
+ {{OOO_STRING_SVTOOLS_HTML_S_larr}, 8592},
+ {{OOO_STRING_SVTOOLS_HTML_S_uarr}, 8593},
+ {{OOO_STRING_SVTOOLS_HTML_S_rarr}, 8594},
+ {{OOO_STRING_SVTOOLS_HTML_S_darr}, 8595},
+ {{OOO_STRING_SVTOOLS_HTML_S_harr}, 8596},
+ {{OOO_STRING_SVTOOLS_HTML_S_crarr}, 8629},
+ {{OOO_STRING_SVTOOLS_HTML_S_lArr}, 8656},
+ {{OOO_STRING_SVTOOLS_HTML_S_uArr}, 8657},
+ {{OOO_STRING_SVTOOLS_HTML_S_rArr}, 8658},
+ {{OOO_STRING_SVTOOLS_HTML_S_dArr}, 8659},
+ {{OOO_STRING_SVTOOLS_HTML_S_hArr}, 8660},
+ {{OOO_STRING_SVTOOLS_HTML_S_forall}, 8704},
+ {{OOO_STRING_SVTOOLS_HTML_S_part}, 8706},
+ {{OOO_STRING_SVTOOLS_HTML_S_exist}, 8707},
+ {{OOO_STRING_SVTOOLS_HTML_S_empty}, 8709},
+ {{OOO_STRING_SVTOOLS_HTML_S_nabla}, 8711},
+ {{OOO_STRING_SVTOOLS_HTML_S_isin}, 8712},
+ {{OOO_STRING_SVTOOLS_HTML_S_notin}, 8713},
+ {{OOO_STRING_SVTOOLS_HTML_S_ni}, 8715},
+ {{OOO_STRING_SVTOOLS_HTML_S_prod}, 8719},
+ {{OOO_STRING_SVTOOLS_HTML_S_sum}, 8721},
+ {{OOO_STRING_SVTOOLS_HTML_S_minus}, 8722},
+ {{OOO_STRING_SVTOOLS_HTML_S_lowast}, 8727},
+ {{OOO_STRING_SVTOOLS_HTML_S_radic}, 8730},
+ {{OOO_STRING_SVTOOLS_HTML_S_prop}, 8733},
+ {{OOO_STRING_SVTOOLS_HTML_S_infin}, 8734},
+ {{OOO_STRING_SVTOOLS_HTML_S_ang}, 8736},
+ {{OOO_STRING_SVTOOLS_HTML_S_and}, 8743},
+ {{OOO_STRING_SVTOOLS_HTML_S_or}, 8744},
+ {{OOO_STRING_SVTOOLS_HTML_S_cap}, 8745},
+ {{OOO_STRING_SVTOOLS_HTML_S_cup}, 8746},
+ {{OOO_STRING_SVTOOLS_HTML_S_int}, 8747},
+ {{OOO_STRING_SVTOOLS_HTML_S_there4}, 8756},
+ {{OOO_STRING_SVTOOLS_HTML_S_sim}, 8764},
+ {{OOO_STRING_SVTOOLS_HTML_S_cong}, 8773},
+ {{OOO_STRING_SVTOOLS_HTML_S_asymp}, 8776},
+ {{OOO_STRING_SVTOOLS_HTML_S_ne}, 8800},
+ {{OOO_STRING_SVTOOLS_HTML_S_equiv}, 8801},
+ {{OOO_STRING_SVTOOLS_HTML_S_le}, 8804},
+ {{OOO_STRING_SVTOOLS_HTML_S_ge}, 8805},
+ {{OOO_STRING_SVTOOLS_HTML_S_sub}, 8834},
+ {{OOO_STRING_SVTOOLS_HTML_S_sup}, 8835},
+ {{OOO_STRING_SVTOOLS_HTML_S_nsub}, 8836},
+ {{OOO_STRING_SVTOOLS_HTML_S_sube}, 8838},
+ {{OOO_STRING_SVTOOLS_HTML_S_supe}, 8839},
+ {{OOO_STRING_SVTOOLS_HTML_S_oplus}, 8853},
+ {{OOO_STRING_SVTOOLS_HTML_S_otimes}, 8855},
+ {{OOO_STRING_SVTOOLS_HTML_S_perp}, 8869},
+ {{OOO_STRING_SVTOOLS_HTML_S_sdot}, 8901},
+ {{OOO_STRING_SVTOOLS_HTML_S_lceil}, 8968},
+ {{OOO_STRING_SVTOOLS_HTML_S_rceil}, 8969},
+ {{OOO_STRING_SVTOOLS_HTML_S_lfloor}, 8970},
+ {{OOO_STRING_SVTOOLS_HTML_S_rfloor}, 8971},
+ {{OOO_STRING_SVTOOLS_HTML_S_lang}, 9001},
+ {{OOO_STRING_SVTOOLS_HTML_S_rang}, 9002},
+ {{OOO_STRING_SVTOOLS_HTML_S_loz}, 9674},
+ {{OOO_STRING_SVTOOLS_HTML_S_spades}, 9824},
+ {{OOO_STRING_SVTOOLS_HTML_S_clubs}, 9827},
+ {{OOO_STRING_SVTOOLS_HTML_S_hearts}, 9829},
+ {{OOO_STRING_SVTOOLS_HTML_S_diams}, 9830}
};
extern "C"
@@ -586,7 +586,7 @@ static int
nRet = strcmp( ((HTML_CharEntry*)pFirst)->sName,
((HTML_CharEntry*)pSecond)->sName );
}
-
+
return nRet;
}
@@ -626,203 +626,203 @@ static int __FAR_DATA bSortOptionKeyWords = FALSE;
static HTML_TokenEntry __FAR_DATA aHTMLOptionTab[] = {
// Attribute ohne Wert
- {{OOO_STRING_SVTOOLS_HTML_O_box}, HTML_O_BOX},
- {{OOO_STRING_SVTOOLS_HTML_O_checked}, HTML_O_CHECKED},
- {{OOO_STRING_SVTOOLS_HTML_O_compact}, HTML_O_COMPACT},
- {{OOO_STRING_SVTOOLS_HTML_O_continue}, HTML_O_CONTINUE},
- {{OOO_STRING_SVTOOLS_HTML_O_controls}, HTML_O_CONTROLS}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_declare}, HTML_O_DECLARE},
- {{OOO_STRING_SVTOOLS_HTML_O_disabled}, HTML_O_DISABLED},
- {{OOO_STRING_SVTOOLS_HTML_O_folded}, HTML_O_FOLDED}, // Netscape internal
- {{OOO_STRING_SVTOOLS_HTML_O_ismap}, HTML_O_ISMAP},
- {{OOO_STRING_SVTOOLS_HTML_O_mayscript}, HTML_O_MAYSCRIPT},
- {{OOO_STRING_SVTOOLS_HTML_O_multiple}, HTML_O_MULTIPLE},
- {{OOO_STRING_SVTOOLS_HTML_O_noflow}, HTML_O_NOFLOW},
- {{OOO_STRING_SVTOOLS_HTML_O_nohref}, HTML_O_NOHREF}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_noresize}, HTML_O_NORESIZE}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_noshade}, HTML_O_NOSHADE}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_nowrap}, HTML_O_NOWRAP},
- {{OOO_STRING_SVTOOLS_HTML_O_plain}, HTML_O_PLAIN},
- {{OOO_STRING_SVTOOLS_HTML_O_sdfixed}, HTML_O_SDFIXED},
- {{OOO_STRING_SVTOOLS_HTML_O_selected}, HTML_O_SELECTED},
- {{OOO_STRING_SVTOOLS_HTML_O_shapes}, HTML_O_SHAPES},
+ {{OOO_STRING_SVTOOLS_HTML_O_box}, HTML_O_BOX},
+ {{OOO_STRING_SVTOOLS_HTML_O_checked}, HTML_O_CHECKED},
+ {{OOO_STRING_SVTOOLS_HTML_O_compact}, HTML_O_COMPACT},
+ {{OOO_STRING_SVTOOLS_HTML_O_continue}, HTML_O_CONTINUE},
+ {{OOO_STRING_SVTOOLS_HTML_O_controls}, HTML_O_CONTROLS}, // IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_declare}, HTML_O_DECLARE},
+ {{OOO_STRING_SVTOOLS_HTML_O_disabled}, HTML_O_DISABLED},
+ {{OOO_STRING_SVTOOLS_HTML_O_folded}, HTML_O_FOLDED}, // Netscape internal
+ {{OOO_STRING_SVTOOLS_HTML_O_ismap}, HTML_O_ISMAP},
+ {{OOO_STRING_SVTOOLS_HTML_O_mayscript}, HTML_O_MAYSCRIPT},
+ {{OOO_STRING_SVTOOLS_HTML_O_multiple}, HTML_O_MULTIPLE},
+ {{OOO_STRING_SVTOOLS_HTML_O_noflow}, HTML_O_NOFLOW},
+ {{OOO_STRING_SVTOOLS_HTML_O_nohref}, HTML_O_NOHREF}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_noresize}, HTML_O_NORESIZE}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_noshade}, HTML_O_NOSHADE}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_nowrap}, HTML_O_NOWRAP},
+ {{OOO_STRING_SVTOOLS_HTML_O_plain}, HTML_O_PLAIN},
+ {{OOO_STRING_SVTOOLS_HTML_O_sdfixed}, HTML_O_SDFIXED},
+ {{OOO_STRING_SVTOOLS_HTML_O_selected}, HTML_O_SELECTED},
+ {{OOO_STRING_SVTOOLS_HTML_O_shapes}, HTML_O_SHAPES},
// Attribute mit einem String als Wert
- {{OOO_STRING_SVTOOLS_HTML_O_above}, HTML_O_ABOVE},
- {{OOO_STRING_SVTOOLS_HTML_O_accept}, HTML_O_ACCEPT},
- {{OOO_STRING_SVTOOLS_HTML_O_accesskey}, HTML_O_ACCESSKEY},
- {{OOO_STRING_SVTOOLS_HTML_O_add_date}, HTML_O_ADD_DATE}, // Netscape internal
- {{OOO_STRING_SVTOOLS_HTML_O_alt}, HTML_O_ALT},
- {{OOO_STRING_SVTOOLS_HTML_O_axes}, HTML_O_AXES},
- {{OOO_STRING_SVTOOLS_HTML_O_axis}, HTML_O_AXIS},
- {{OOO_STRING_SVTOOLS_HTML_O_below}, HTML_O_BELOW},
- {{OOO_STRING_SVTOOLS_HTML_O_char}, HTML_O_CHAR}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_O_class}, HTML_O_CLASS},
- {{OOO_STRING_SVTOOLS_HTML_O_clip}, HTML_O_CLIP},
- {{OOO_STRING_SVTOOLS_HTML_O_code}, HTML_O_CODE}, // HotJava
- {{OOO_STRING_SVTOOLS_HTML_O_codetype}, HTML_O_CODETYPE},
- {{OOO_STRING_SVTOOLS_HTML_O_colspec}, HTML_O_COLSPEC},
- {{OOO_STRING_SVTOOLS_HTML_O_content}, HTML_O_CONTENT},
- {{OOO_STRING_SVTOOLS_HTML_O_coords}, HTML_O_COORDS}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_dp}, HTML_O_DP},
- {{OOO_STRING_SVTOOLS_HTML_O_enctype}, HTML_O_ENCTYPE},
- {{OOO_STRING_SVTOOLS_HTML_O_error}, HTML_O_ERROR},
- {{OOO_STRING_SVTOOLS_HTML_O_face}, HTML_O_FACE}, // IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_above}, HTML_O_ABOVE},
+ {{OOO_STRING_SVTOOLS_HTML_O_accept}, HTML_O_ACCEPT},
+ {{OOO_STRING_SVTOOLS_HTML_O_accesskey}, HTML_O_ACCESSKEY},
+ {{OOO_STRING_SVTOOLS_HTML_O_add_date}, HTML_O_ADD_DATE}, // Netscape internal
+ {{OOO_STRING_SVTOOLS_HTML_O_alt}, HTML_O_ALT},
+ {{OOO_STRING_SVTOOLS_HTML_O_axes}, HTML_O_AXES},
+ {{OOO_STRING_SVTOOLS_HTML_O_axis}, HTML_O_AXIS},
+ {{OOO_STRING_SVTOOLS_HTML_O_below}, HTML_O_BELOW},
+ {{OOO_STRING_SVTOOLS_HTML_O_char}, HTML_O_CHAR}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_O_class}, HTML_O_CLASS},
+ {{OOO_STRING_SVTOOLS_HTML_O_clip}, HTML_O_CLIP},
+ {{OOO_STRING_SVTOOLS_HTML_O_code}, HTML_O_CODE}, // HotJava
+ {{OOO_STRING_SVTOOLS_HTML_O_codetype}, HTML_O_CODETYPE},
+ {{OOO_STRING_SVTOOLS_HTML_O_colspec}, HTML_O_COLSPEC},
+ {{OOO_STRING_SVTOOLS_HTML_O_content}, HTML_O_CONTENT},
+ {{OOO_STRING_SVTOOLS_HTML_O_coords}, HTML_O_COORDS}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_dp}, HTML_O_DP},
+ {{OOO_STRING_SVTOOLS_HTML_O_enctype}, HTML_O_ENCTYPE},
+ {{OOO_STRING_SVTOOLS_HTML_O_error}, HTML_O_ERROR},
+ {{OOO_STRING_SVTOOLS_HTML_O_face}, HTML_O_FACE}, // IExplorer 2.0
{{OOO_STRING_SVTOOLS_HTML_O_frameborder}, HTML_O_FRAMEBORDER}, // IExplorer 3.0
- {{OOO_STRING_SVTOOLS_HTML_O_httpequiv}, HTML_O_HTTPEQUIV},
- {{OOO_STRING_SVTOOLS_HTML_O_language}, HTML_O_LANGUAGE}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_last_modified}, HTML_O_LAST_MODIFIED}, // Netscape internal
- {{OOO_STRING_SVTOOLS_HTML_O_last_visit}, HTML_O_LAST_VISIT}, // Netscape internal
- {{OOO_STRING_SVTOOLS_HTML_O_md}, HTML_O_MD},
- {{OOO_STRING_SVTOOLS_HTML_O_n}, HTML_O_N},
- {{OOO_STRING_SVTOOLS_HTML_O_name}, HTML_O_NAME},
- {{OOO_STRING_SVTOOLS_HTML_O_notation}, HTML_O_NOTATION},
- {{OOO_STRING_SVTOOLS_HTML_O_prompt}, HTML_O_PROMPT},
- {{OOO_STRING_SVTOOLS_HTML_O_shape}, HTML_O_SHAPE},
- {{OOO_STRING_SVTOOLS_HTML_O_standby}, HTML_O_STANDBY},
- {{OOO_STRING_SVTOOLS_HTML_O_style}, HTML_O_STYLE},
- {{OOO_STRING_SVTOOLS_HTML_O_title}, HTML_O_TITLE},
- {{OOO_STRING_SVTOOLS_HTML_O_value}, HTML_O_VALUE},
- {{OOO_STRING_SVTOOLS_HTML_O_SDval}, HTML_O_SDVAL}, // StarDiv NumberValue
- {{OOO_STRING_SVTOOLS_HTML_O_SDnum}, HTML_O_SDNUM}, // StarDiv NumberFormat
- {{OOO_STRING_SVTOOLS_HTML_O_sdlibrary}, HTML_O_SDLIBRARY},
- {{OOO_STRING_SVTOOLS_HTML_O_sdmodule}, HTML_O_SDMODULE},
+ {{OOO_STRING_SVTOOLS_HTML_O_httpequiv}, HTML_O_HTTPEQUIV},
+ {{OOO_STRING_SVTOOLS_HTML_O_language}, HTML_O_LANGUAGE}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_last_modified}, HTML_O_LAST_MODIFIED}, // Netscape internal
+ {{OOO_STRING_SVTOOLS_HTML_O_last_visit}, HTML_O_LAST_VISIT}, // Netscape internal
+ {{OOO_STRING_SVTOOLS_HTML_O_md}, HTML_O_MD},
+ {{OOO_STRING_SVTOOLS_HTML_O_n}, HTML_O_N},
+ {{OOO_STRING_SVTOOLS_HTML_O_name}, HTML_O_NAME},
+ {{OOO_STRING_SVTOOLS_HTML_O_notation}, HTML_O_NOTATION},
+ {{OOO_STRING_SVTOOLS_HTML_O_prompt}, HTML_O_PROMPT},
+ {{OOO_STRING_SVTOOLS_HTML_O_shape}, HTML_O_SHAPE},
+ {{OOO_STRING_SVTOOLS_HTML_O_standby}, HTML_O_STANDBY},
+ {{OOO_STRING_SVTOOLS_HTML_O_style}, HTML_O_STYLE},
+ {{OOO_STRING_SVTOOLS_HTML_O_title}, HTML_O_TITLE},
+ {{OOO_STRING_SVTOOLS_HTML_O_value}, HTML_O_VALUE},
+ {{OOO_STRING_SVTOOLS_HTML_O_SDval}, HTML_O_SDVAL}, // StarDiv NumberValue
+ {{OOO_STRING_SVTOOLS_HTML_O_SDnum}, HTML_O_SDNUM}, // StarDiv NumberFormat
+ {{OOO_STRING_SVTOOLS_HTML_O_sdlibrary}, HTML_O_SDLIBRARY},
+ {{OOO_STRING_SVTOOLS_HTML_O_sdmodule}, HTML_O_SDMODULE},
// Attribute mit einem SGML-Identifier als Wert
- {{OOO_STRING_SVTOOLS_HTML_O_from}, HTML_O_FROM},
- {{OOO_STRING_SVTOOLS_HTML_O_id}, HTML_O_ID},
- {{OOO_STRING_SVTOOLS_HTML_O_target}, HTML_O_TARGET}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_to}, HTML_O_TO},
- {{OOO_STRING_SVTOOLS_HTML_O_until}, HTML_O_UNTIL},
+ {{OOO_STRING_SVTOOLS_HTML_O_from}, HTML_O_FROM},
+ {{OOO_STRING_SVTOOLS_HTML_O_id}, HTML_O_ID},
+ {{OOO_STRING_SVTOOLS_HTML_O_target}, HTML_O_TARGET}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_to}, HTML_O_TO},
+ {{OOO_STRING_SVTOOLS_HTML_O_until}, HTML_O_UNTIL},
// Attribute mit einem URI als Wert
- {{OOO_STRING_SVTOOLS_HTML_O_action}, HTML_O_ACTION},
- {{OOO_STRING_SVTOOLS_HTML_O_archive}, HTML_O_ARCHIVE},
- {{OOO_STRING_SVTOOLS_HTML_O_background}, HTML_O_BACKGROUND},
- {{OOO_STRING_SVTOOLS_HTML_O_classid}, HTML_O_CLASSID},
- {{OOO_STRING_SVTOOLS_HTML_O_codebase}, HTML_O_CODEBASE}, // HotJava
- {{OOO_STRING_SVTOOLS_HTML_O_data}, HTML_O_DATA},
- {{OOO_STRING_SVTOOLS_HTML_O_dynsrc}, HTML_O_DYNSRC}, // IExplorer 3.0b1
- {{OOO_STRING_SVTOOLS_HTML_O_dynsync}, HTML_O_DYNSYNC}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_imagemap}, HTML_O_IMAGEMAP},
- {{OOO_STRING_SVTOOLS_HTML_O_href}, HTML_O_HREF},
- {{OOO_STRING_SVTOOLS_HTML_O_lowsrc}, HTML_O_LOWSRC}, // Netscape 3.0
- {{OOO_STRING_SVTOOLS_HTML_O_script}, HTML_O_SCRIPT},
- {{OOO_STRING_SVTOOLS_HTML_O_src}, HTML_O_SRC},
- {{OOO_STRING_SVTOOLS_HTML_O_usemap}, HTML_O_USEMAP}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_action}, HTML_O_ACTION},
+ {{OOO_STRING_SVTOOLS_HTML_O_archive}, HTML_O_ARCHIVE},
+ {{OOO_STRING_SVTOOLS_HTML_O_background}, HTML_O_BACKGROUND},
+ {{OOO_STRING_SVTOOLS_HTML_O_classid}, HTML_O_CLASSID},
+ {{OOO_STRING_SVTOOLS_HTML_O_codebase}, HTML_O_CODEBASE}, // HotJava
+ {{OOO_STRING_SVTOOLS_HTML_O_data}, HTML_O_DATA},
+ {{OOO_STRING_SVTOOLS_HTML_O_dynsrc}, HTML_O_DYNSRC}, // IExplorer 3.0b1
+ {{OOO_STRING_SVTOOLS_HTML_O_dynsync}, HTML_O_DYNSYNC}, // IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_imagemap}, HTML_O_IMAGEMAP},
+ {{OOO_STRING_SVTOOLS_HTML_O_href}, HTML_O_HREF},
+ {{OOO_STRING_SVTOOLS_HTML_O_lowsrc}, HTML_O_LOWSRC}, // Netscape 3.0
+ {{OOO_STRING_SVTOOLS_HTML_O_script}, HTML_O_SCRIPT},
+ {{OOO_STRING_SVTOOLS_HTML_O_src}, HTML_O_SRC},
+ {{OOO_STRING_SVTOOLS_HTML_O_usemap}, HTML_O_USEMAP}, // Netscape 2.0
// Attribute mit Entity-Namen als Wert
- {{OOO_STRING_SVTOOLS_HTML_O_dingbat}, HTML_O_DINGBAT},
- {{OOO_STRING_SVTOOLS_HTML_O_sym}, HTML_O_SYM},
+ {{OOO_STRING_SVTOOLS_HTML_O_dingbat}, HTML_O_DINGBAT},
+ {{OOO_STRING_SVTOOLS_HTML_O_sym}, HTML_O_SYM},
// Attribute mit einer Farbe als Wert (alle Netscape)
- {{OOO_STRING_SVTOOLS_HTML_O_alink}, HTML_O_ALINK},
- {{OOO_STRING_SVTOOLS_HTML_O_bgcolor}, HTML_O_BGCOLOR},
+ {{OOO_STRING_SVTOOLS_HTML_O_alink}, HTML_O_ALINK},
+ {{OOO_STRING_SVTOOLS_HTML_O_bgcolor}, HTML_O_BGCOLOR},
{{OOO_STRING_SVTOOLS_HTML_O_bordercolor}, HTML_O_BORDERCOLOR}, // IExplorer 2.0
{{OOO_STRING_SVTOOLS_HTML_O_bordercolorlight}, HTML_O_BORDERCOLORLIGHT}, // IExplorer 2.0
{{OOO_STRING_SVTOOLS_HTML_O_bordercolordark}, HTML_O_BORDERCOLORDARK}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_color}, HTML_O_COLOR},
- {{OOO_STRING_SVTOOLS_HTML_O_link}, HTML_O_LINK},
- {{OOO_STRING_SVTOOLS_HTML_O_text}, HTML_O_TEXT},
- {{OOO_STRING_SVTOOLS_HTML_O_vlink}, HTML_O_VLINK},
+ {{OOO_STRING_SVTOOLS_HTML_O_color}, HTML_O_COLOR},
+ {{OOO_STRING_SVTOOLS_HTML_O_link}, HTML_O_LINK},
+ {{OOO_STRING_SVTOOLS_HTML_O_text}, HTML_O_TEXT},
+ {{OOO_STRING_SVTOOLS_HTML_O_vlink}, HTML_O_VLINK},
// Attribute mit einem numerischen Wert
- {{OOO_STRING_SVTOOLS_HTML_O_border}, HTML_O_BORDER},
+ {{OOO_STRING_SVTOOLS_HTML_O_border}, HTML_O_BORDER},
{{OOO_STRING_SVTOOLS_HTML_O_cellspacing},HTML_O_CELLSPACING}, // HTML 3 Table Model Draft
{{OOO_STRING_SVTOOLS_HTML_O_cellpadding},HTML_O_CELLPADDING}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_O_charoff}, HTML_O_CHAROFF}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_O_colspan}, HTML_O_COLSPAN},
+ {{OOO_STRING_SVTOOLS_HTML_O_charoff}, HTML_O_CHAROFF}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_O_colspan}, HTML_O_COLSPAN},
{{OOO_STRING_SVTOOLS_HTML_O_framespacing}, HTML_O_FRAMESPACING}, // IExplorer 3.0
- {{OOO_STRING_SVTOOLS_HTML_O_gutter}, HTML_O_GUTTER}, // Netscape 3.0b5
- {{OOO_STRING_SVTOOLS_HTML_O_indent}, HTML_O_INDENT},
- {{OOO_STRING_SVTOOLS_HTML_O_height}, HTML_O_HEIGHT},
- {{OOO_STRING_SVTOOLS_HTML_O_hspace}, HTML_O_HSPACE}, // Netscape
- {{OOO_STRING_SVTOOLS_HTML_O_left}, HTML_O_LEFT},
- {{OOO_STRING_SVTOOLS_HTML_O_leftmargin}, HTML_O_LEFTMARGIN}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_loop}, HTML_O_LOOP}, // IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_gutter}, HTML_O_GUTTER}, // Netscape 3.0b5
+ {{OOO_STRING_SVTOOLS_HTML_O_indent}, HTML_O_INDENT},
+ {{OOO_STRING_SVTOOLS_HTML_O_height}, HTML_O_HEIGHT},
+ {{OOO_STRING_SVTOOLS_HTML_O_hspace}, HTML_O_HSPACE}, // Netscape
+ {{OOO_STRING_SVTOOLS_HTML_O_left}, HTML_O_LEFT},
+ {{OOO_STRING_SVTOOLS_HTML_O_leftmargin}, HTML_O_LEFTMARGIN}, // IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_loop}, HTML_O_LOOP}, // IExplorer 2.0
{{OOO_STRING_SVTOOLS_HTML_O_marginheight},HTML_O_MARGINHEIGHT}, // Netscape 2.0
{{OOO_STRING_SVTOOLS_HTML_O_marginwidth},HTML_O_MARGINWIDTH}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_max}, HTML_O_MAX},
- {{OOO_STRING_SVTOOLS_HTML_O_maxlength}, HTML_O_MAXLENGTH},
- {{OOO_STRING_SVTOOLS_HTML_O_min}, HTML_O_MIN},
- {{OOO_STRING_SVTOOLS_HTML_O_pagex}, HTML_O_PAGEX},
- {{OOO_STRING_SVTOOLS_HTML_O_pagey}, HTML_O_PAGEY},
- {{OOO_STRING_SVTOOLS_HTML_O_pointsize}, HTML_O_POINTSIZE},
- {{OOO_STRING_SVTOOLS_HTML_O_rowspan}, HTML_O_ROWSPAN},
+ {{OOO_STRING_SVTOOLS_HTML_O_max}, HTML_O_MAX},
+ {{OOO_STRING_SVTOOLS_HTML_O_maxlength}, HTML_O_MAXLENGTH},
+ {{OOO_STRING_SVTOOLS_HTML_O_min}, HTML_O_MIN},
+ {{OOO_STRING_SVTOOLS_HTML_O_pagex}, HTML_O_PAGEX},
+ {{OOO_STRING_SVTOOLS_HTML_O_pagey}, HTML_O_PAGEY},
+ {{OOO_STRING_SVTOOLS_HTML_O_pointsize}, HTML_O_POINTSIZE},
+ {{OOO_STRING_SVTOOLS_HTML_O_rowspan}, HTML_O_ROWSPAN},
{{OOO_STRING_SVTOOLS_HTML_O_scrollamount}, HTML_O_SCROLLAMOUNT}, // IExplorer 2.0
{{OOO_STRING_SVTOOLS_HTML_O_scrolldelay}, HTML_O_SCROLLDELAY}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_seqnum}, HTML_O_SEQNUM},
- {{OOO_STRING_SVTOOLS_HTML_O_skip}, HTML_O_SKIP},
- {{OOO_STRING_SVTOOLS_HTML_O_span}, HTML_O_SPAN}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_O_tabindex}, HTML_O_TABINDEX},
- {{OOO_STRING_SVTOOLS_HTML_O_top}, HTML_O_TOP},
- {{OOO_STRING_SVTOOLS_HTML_O_topmargin}, HTML_O_TOPMARGIN}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_vspace}, HTML_O_VSPACE}, // Netscape
- {{OOO_STRING_SVTOOLS_HTML_O_weight}, HTML_O_WEIGHT},
- {{OOO_STRING_SVTOOLS_HTML_O_width}, HTML_O_WIDTH},
- {{OOO_STRING_SVTOOLS_HTML_O_x}, HTML_O_X},
- {{OOO_STRING_SVTOOLS_HTML_O_y}, HTML_O_Y},
- {{OOO_STRING_SVTOOLS_HTML_O_zindex}, HTML_O_ZINDEX},
+ {{OOO_STRING_SVTOOLS_HTML_O_seqnum}, HTML_O_SEQNUM},
+ {{OOO_STRING_SVTOOLS_HTML_O_skip}, HTML_O_SKIP},
+ {{OOO_STRING_SVTOOLS_HTML_O_span}, HTML_O_SPAN}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_O_tabindex}, HTML_O_TABINDEX},
+ {{OOO_STRING_SVTOOLS_HTML_O_top}, HTML_O_TOP},
+ {{OOO_STRING_SVTOOLS_HTML_O_topmargin}, HTML_O_TOPMARGIN}, // IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_vspace}, HTML_O_VSPACE}, // Netscape
+ {{OOO_STRING_SVTOOLS_HTML_O_weight}, HTML_O_WEIGHT},
+ {{OOO_STRING_SVTOOLS_HTML_O_width}, HTML_O_WIDTH},
+ {{OOO_STRING_SVTOOLS_HTML_O_x}, HTML_O_X},
+ {{OOO_STRING_SVTOOLS_HTML_O_y}, HTML_O_Y},
+ {{OOO_STRING_SVTOOLS_HTML_O_zindex}, HTML_O_ZINDEX},
// Attribute mit Enum-Werten
{{OOO_STRING_SVTOOLS_HTML_O_bgproperties}, HTML_O_BGPROPERTIES}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_behavior}, HTML_O_BEHAVIOR}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_clear}, HTML_O_CLEAR},
- {{OOO_STRING_SVTOOLS_HTML_O_dir}, HTML_O_DIR}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_O_direction}, HTML_O_DIRECTION}, // IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_format}, HTML_O_FORMAT},
- {{OOO_STRING_SVTOOLS_HTML_O_frame}, HTML_O_FRAME}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_O_lang}, HTML_O_LANG},
- {{OOO_STRING_SVTOOLS_HTML_O_method}, HTML_O_METHOD},
- {{OOO_STRING_SVTOOLS_HTML_O_palette}, HTML_O_PALETTE},
- {{OOO_STRING_SVTOOLS_HTML_O_rel}, HTML_O_REL},
- {{OOO_STRING_SVTOOLS_HTML_O_rev}, HTML_O_REV},
- {{OOO_STRING_SVTOOLS_HTML_O_rules}, HTML_O_RULES}, // HTML 3 Table Model Draft
- {{OOO_STRING_SVTOOLS_HTML_O_scrolling}, HTML_O_SCROLLING}, // Netscape 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_sdreadonly}, HTML_O_SDREADONLY},
- {{OOO_STRING_SVTOOLS_HTML_O_subtype}, HTML_O_SUBTYPE},
- {{OOO_STRING_SVTOOLS_HTML_O_type}, HTML_O_TYPE},
- {{OOO_STRING_SVTOOLS_HTML_O_valign}, HTML_O_VALIGN},
- {{OOO_STRING_SVTOOLS_HTML_O_valuetype}, HTML_O_VALUETYPE},
- {{OOO_STRING_SVTOOLS_HTML_O_wrap}, HTML_O_WRAP},
- {{OOO_STRING_SVTOOLS_HTML_O_visibility}, HTML_O_VISIBILITY},
+ {{OOO_STRING_SVTOOLS_HTML_O_behavior}, HTML_O_BEHAVIOR}, // IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_clear}, HTML_O_CLEAR},
+ {{OOO_STRING_SVTOOLS_HTML_O_dir}, HTML_O_DIR}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_O_direction}, HTML_O_DIRECTION}, // IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_format}, HTML_O_FORMAT},
+ {{OOO_STRING_SVTOOLS_HTML_O_frame}, HTML_O_FRAME}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_O_lang}, HTML_O_LANG},
+ {{OOO_STRING_SVTOOLS_HTML_O_method}, HTML_O_METHOD},
+ {{OOO_STRING_SVTOOLS_HTML_O_palette}, HTML_O_PALETTE},
+ {{OOO_STRING_SVTOOLS_HTML_O_rel}, HTML_O_REL},
+ {{OOO_STRING_SVTOOLS_HTML_O_rev}, HTML_O_REV},
+ {{OOO_STRING_SVTOOLS_HTML_O_rules}, HTML_O_RULES}, // HTML 3 Table Model Draft
+ {{OOO_STRING_SVTOOLS_HTML_O_scrolling}, HTML_O_SCROLLING}, // Netscape 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_sdreadonly}, HTML_O_SDREADONLY},
+ {{OOO_STRING_SVTOOLS_HTML_O_subtype}, HTML_O_SUBTYPE},
+ {{OOO_STRING_SVTOOLS_HTML_O_type}, HTML_O_TYPE},
+ {{OOO_STRING_SVTOOLS_HTML_O_valign}, HTML_O_VALIGN},
+ {{OOO_STRING_SVTOOLS_HTML_O_valuetype}, HTML_O_VALUETYPE},
+ {{OOO_STRING_SVTOOLS_HTML_O_wrap}, HTML_O_WRAP},
+ {{OOO_STRING_SVTOOLS_HTML_O_visibility}, HTML_O_VISIBILITY},
// Attribute mit Script-Code als Wert
- {{OOO_STRING_SVTOOLS_HTML_O_onblur}, HTML_O_ONBLUR}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onchange}, HTML_O_ONCHANGE}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onclick}, HTML_O_ONCLICK}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onfocus}, HTML_O_ONFOCUS}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onload}, HTML_O_ONLOAD}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onblur}, HTML_O_ONBLUR}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onchange}, HTML_O_ONCHANGE}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onclick}, HTML_O_ONCLICK}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onfocus}, HTML_O_ONFOCUS}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onload}, HTML_O_ONLOAD}, // JavaScript
{{OOO_STRING_SVTOOLS_HTML_O_onmouseover}, HTML_O_ONMOUSEOVER}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onreset}, HTML_O_ONRESET}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onselect}, HTML_O_ONSELECT}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onsubmit}, HTML_O_ONSUBMIT}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onunload}, HTML_O_ONUNLOAD}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onabort}, HTML_O_ONABORT}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onerror}, HTML_O_ONERROR}, // JavaScript
- {{OOO_STRING_SVTOOLS_HTML_O_onmouseout}, HTML_O_ONMOUSEOUT}, // JavaScript
-
- {{OOO_STRING_SVTOOLS_HTML_O_SDonblur}, HTML_O_SDONBLUR}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonchange}, HTML_O_SDONCHANGE}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonclick}, HTML_O_SDONCLICK}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonfocus}, HTML_O_SDONFOCUS}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonload}, HTML_O_SDONLOAD}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonmouseover}, HTML_O_SDONMOUSEOVER}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonreset}, HTML_O_SDONRESET}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonselect}, HTML_O_SDONSELECT}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonsubmit}, HTML_O_SDONSUBMIT}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonunload}, HTML_O_SDONUNLOAD}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonabort}, HTML_O_SDONABORT}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonerror}, HTML_O_SDONERROR}, // StarBasic
- {{OOO_STRING_SVTOOLS_HTML_O_SDonmouseout}, HTML_O_SDONMOUSEOUT}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_onreset}, HTML_O_ONRESET}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onselect}, HTML_O_ONSELECT}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onsubmit}, HTML_O_ONSUBMIT}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onunload}, HTML_O_ONUNLOAD}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onabort}, HTML_O_ONABORT}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onerror}, HTML_O_ONERROR}, // JavaScript
+ {{OOO_STRING_SVTOOLS_HTML_O_onmouseout}, HTML_O_ONMOUSEOUT}, // JavaScript
+
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonblur}, HTML_O_SDONBLUR}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonchange}, HTML_O_SDONCHANGE}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonclick}, HTML_O_SDONCLICK}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonfocus}, HTML_O_SDONFOCUS}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonload}, HTML_O_SDONLOAD}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonmouseover}, HTML_O_SDONMOUSEOVER}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonreset}, HTML_O_SDONRESET}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonselect}, HTML_O_SDONSELECT}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonsubmit}, HTML_O_SDONSUBMIT}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonunload}, HTML_O_SDONUNLOAD}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonabort}, HTML_O_SDONABORT}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonerror}, HTML_O_SDONERROR}, // StarBasic
+ {{OOO_STRING_SVTOOLS_HTML_O_SDonmouseout}, HTML_O_SDONMOUSEOUT}, // StarBasic
// Attribute mit Kontext-abhaengigen Werten
- {{OOO_STRING_SVTOOLS_HTML_O_align}, HTML_O_ALIGN},
- {{OOO_STRING_SVTOOLS_HTML_O_cols}, HTML_O_COLS}, // Netscape 2.0 vs HTML 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_rows}, HTML_O_ROWS}, // Netscape 2.0 vs HTML 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_size}, HTML_O_SIZE},
- {{OOO_STRING_SVTOOLS_HTML_O_start}, HTML_O_START}, // Netscape 2.0 vs IExplorer 2.0
- {{OOO_STRING_SVTOOLS_HTML_O_units}, HTML_O_UNITS}
+ {{OOO_STRING_SVTOOLS_HTML_O_align}, HTML_O_ALIGN},
+ {{OOO_STRING_SVTOOLS_HTML_O_cols}, HTML_O_COLS}, // Netscape 2.0 vs HTML 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_rows}, HTML_O_ROWS}, // Netscape 2.0 vs HTML 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_size}, HTML_O_SIZE},
+ {{OOO_STRING_SVTOOLS_HTML_O_start}, HTML_O_START}, // Netscape 2.0 vs IExplorer 2.0
+ {{OOO_STRING_SVTOOLS_HTML_O_units}, HTML_O_UNITS}
};
int GetHTMLOption( const String& rName )
@@ -856,7 +856,7 @@ int GetHTMLOption( const String& rName )
// Flag: Farb-Tabelle wurde schon sortiert
struct HTML_ColorEntry
{
- union
+ union
{
const sal_Char* sName;
const String *pUName;
@@ -1047,7 +1047,7 @@ static int
nRet = strcmp( ((HTML_ColorEntry*)pFirst)->sName,
((HTML_ColorEntry*)pSecond)->sName );
}
-
+
return nRet;
}
diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx
index d2ad0bb205ce..e8bb83358d9f 100644
--- a/svtools/source/svhtml/htmlout.cxx
+++ b/svtools/source/svhtml/htmlout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,14 +58,14 @@ const sal_Char __FAR_DATA HTMLOutFuncs::sNewLine[] = "\015\012";
HTMLOutContext::HTMLOutContext( rtl_TextEncoding eDestEnc )
{
- m_eDestEnc = RTL_TEXTENCODING_DONTKNOW == eDestEnc
+ m_eDestEnc = RTL_TEXTENCODING_DONTKNOW == eDestEnc
? gsl_getSystemTextEncoding()
: eDestEnc;
m_hConv = rtl_createUnicodeToTextConverter( eDestEnc );
- DBG_ASSERT( m_hConv,
+ DBG_ASSERT( m_hConv,
"HTMLOutContext::HTMLOutContext: no converter for source encoding" );
- m_hContext = m_hConv ? rtl_createUnicodeToTextContext( m_hConv )
+ m_hContext = m_hConv ? rtl_createUnicodeToTextContext( m_hConv )
: (rtl_TextToUnicodeContext)1;
}
@@ -75,7 +75,7 @@ HTMLOutContext::~HTMLOutContext()
rtl_destroyUnicodeToTextConverter( m_hConv );
}
-const sal_Char *lcl_svhtml_GetEntityForChar( sal_Unicode c,
+const sal_Char *lcl_svhtml_GetEntityForChar( sal_Unicode c,
rtl_TextEncoding eDestEnc )
{
const sal_Char* pStr = 0;
@@ -93,29 +93,29 @@ const sal_Char *lcl_svhtml_GetEntityForChar( sal_Unicode c,
case 184: // ccedil
case 193: // Aacute
case 194: // Acirc
- case 196: // Auml
+ case 196: // Auml
case 199: // Ccedil
case 201: // Eacute
- case 203: // Euml
+ case 203: // Euml
case 205: // Iacute
case 206: // Icirc
case 211: // Oacute
case 212: // Ocirc
- case 214: // Ouml
+ case 214: // Ouml
case 215: // times
case 218: // Uacute
- case 220: // Uuml
+ case 220: // Uuml
case 221: // Yacute
case 225: // aacute
case 226: // acirc
- case 228: // auml
+ case 228: // auml
case 233: // eacute
- case 235: // euml
+ case 235: // euml
case 237: // iacute
case 238: // icirc
case 243: // oacute
case 244: // ocirc
- case 246: // ouml
+ case 246: // ouml
case 247: // divide
case 250: // uacute
case 252: // uuml
@@ -130,216 +130,216 @@ const sal_Char *lcl_svhtml_GetEntityForChar( sal_Unicode c,
switch( c )
{
-// case '\x0a': return HTMLOutFuncs::Out_Tag( rStream, OOO_STRING_SVTOOLS_HTML_linebreak );
-
- case '<': pStr = OOO_STRING_SVTOOLS_HTML_C_lt; break;
- case '>': pStr = OOO_STRING_SVTOOLS_HTML_C_gt; break;
- case '&': pStr = OOO_STRING_SVTOOLS_HTML_C_amp; break;
- case '"': pStr = OOO_STRING_SVTOOLS_HTML_C_quot; break;
-
- case 161: pStr = OOO_STRING_SVTOOLS_HTML_S_iexcl; break;
- case 162: pStr = OOO_STRING_SVTOOLS_HTML_S_cent; break;
- case 163: pStr = OOO_STRING_SVTOOLS_HTML_S_pound; break;
- case 164: pStr = OOO_STRING_SVTOOLS_HTML_S_curren; break;
- case 165: pStr = OOO_STRING_SVTOOLS_HTML_S_yen; break;
- case 166: pStr = OOO_STRING_SVTOOLS_HTML_S_brvbar; break;
- case 167: pStr = OOO_STRING_SVTOOLS_HTML_S_sect; break;
- case 168: pStr = OOO_STRING_SVTOOLS_HTML_S_uml; break;
- case 169: pStr = OOO_STRING_SVTOOLS_HTML_S_copy; break;
- case 170: pStr = OOO_STRING_SVTOOLS_HTML_S_ordf; break;
- case 171: pStr = OOO_STRING_SVTOOLS_HTML_S_laquo; break;
- case 172: pStr = OOO_STRING_SVTOOLS_HTML_S_not; break;
- case 174: pStr = OOO_STRING_SVTOOLS_HTML_S_reg; break;
- case 175: pStr = OOO_STRING_SVTOOLS_HTML_S_macr; break;
- case 176: pStr = OOO_STRING_SVTOOLS_HTML_S_deg; break;
- case 177: pStr = OOO_STRING_SVTOOLS_HTML_S_plusmn; break;
- case 178: pStr = OOO_STRING_SVTOOLS_HTML_S_sup2; break;
- case 179: pStr = OOO_STRING_SVTOOLS_HTML_S_sup3; break;
- case 180: pStr = OOO_STRING_SVTOOLS_HTML_S_acute; break;
- case 181: pStr = OOO_STRING_SVTOOLS_HTML_S_micro; break;
- case 182: pStr = OOO_STRING_SVTOOLS_HTML_S_para; break;
- case 183: pStr = OOO_STRING_SVTOOLS_HTML_S_middot; break;
- case 184: pStr = OOO_STRING_SVTOOLS_HTML_S_cedil; break;
- case 185: pStr = OOO_STRING_SVTOOLS_HTML_S_sup1; break;
- case 186: pStr = OOO_STRING_SVTOOLS_HTML_S_ordm; break;
- case 187: pStr = OOO_STRING_SVTOOLS_HTML_S_raquo; break;
- case 188: pStr = OOO_STRING_SVTOOLS_HTML_S_frac14; break;
- case 189: pStr = OOO_STRING_SVTOOLS_HTML_S_frac12; break;
- case 190: pStr = OOO_STRING_SVTOOLS_HTML_S_frac34; break;
- case 191: pStr = OOO_STRING_SVTOOLS_HTML_S_iquest; break;
-
- case 192: pStr = OOO_STRING_SVTOOLS_HTML_C_Agrave; break;
- case 193: pStr = OOO_STRING_SVTOOLS_HTML_C_Aacute; break;
- case 194: pStr = OOO_STRING_SVTOOLS_HTML_C_Acirc; break;
- case 195: pStr = OOO_STRING_SVTOOLS_HTML_C_Atilde; break;
- case 196: pStr = OOO_STRING_SVTOOLS_HTML_C_Auml; break;
- case 197: pStr = OOO_STRING_SVTOOLS_HTML_C_Aring; break;
- case 198: pStr = OOO_STRING_SVTOOLS_HTML_C_AElig; break;
- case 199: pStr = OOO_STRING_SVTOOLS_HTML_C_Ccedil; break;
- case 200: pStr = OOO_STRING_SVTOOLS_HTML_C_Egrave; break;
- case 201: pStr = OOO_STRING_SVTOOLS_HTML_C_Eacute; break;
- case 202: pStr = OOO_STRING_SVTOOLS_HTML_C_Ecirc; break;
- case 203: pStr = OOO_STRING_SVTOOLS_HTML_C_Euml; break;
- case 204: pStr = OOO_STRING_SVTOOLS_HTML_C_Igrave; break;
- case 205: pStr = OOO_STRING_SVTOOLS_HTML_C_Iacute; break;
- case 206: pStr = OOO_STRING_SVTOOLS_HTML_C_Icirc; break;
- case 207: pStr = OOO_STRING_SVTOOLS_HTML_C_Iuml; break;
- case 208: pStr = OOO_STRING_SVTOOLS_HTML_C_ETH; break;
- case 209: pStr = OOO_STRING_SVTOOLS_HTML_C_Ntilde; break;
- case 210: pStr = OOO_STRING_SVTOOLS_HTML_C_Ograve; break;
- case 211: pStr = OOO_STRING_SVTOOLS_HTML_C_Oacute; break;
- case 212: pStr = OOO_STRING_SVTOOLS_HTML_C_Ocirc; break;
- case 213: pStr = OOO_STRING_SVTOOLS_HTML_C_Otilde; break;
- case 214: pStr = OOO_STRING_SVTOOLS_HTML_C_Ouml; break;
- case 215: pStr = OOO_STRING_SVTOOLS_HTML_S_times; break;
- case 216: pStr = OOO_STRING_SVTOOLS_HTML_C_Oslash; break;
- case 217: pStr = OOO_STRING_SVTOOLS_HTML_C_Ugrave; break;
- case 218: pStr = OOO_STRING_SVTOOLS_HTML_C_Uacute; break;
- case 219: pStr = OOO_STRING_SVTOOLS_HTML_C_Ucirc; break;
- case 220: pStr = OOO_STRING_SVTOOLS_HTML_C_Uuml; break;
- case 221: pStr = OOO_STRING_SVTOOLS_HTML_C_Yacute; break;
-
- case 222: pStr = OOO_STRING_SVTOOLS_HTML_C_THORN; break;
- case 223: pStr = OOO_STRING_SVTOOLS_HTML_C_szlig; break;
-
- case 224: pStr = OOO_STRING_SVTOOLS_HTML_S_agrave; break;
- case 225: pStr = OOO_STRING_SVTOOLS_HTML_S_aacute; break;
- case 226: pStr = OOO_STRING_SVTOOLS_HTML_S_acirc; break;
- case 227: pStr = OOO_STRING_SVTOOLS_HTML_S_atilde; break;
- case 228: pStr = OOO_STRING_SVTOOLS_HTML_S_auml; break;
- case 229: pStr = OOO_STRING_SVTOOLS_HTML_S_aring; break;
- case 230: pStr = OOO_STRING_SVTOOLS_HTML_S_aelig; break;
- case 231: pStr = OOO_STRING_SVTOOLS_HTML_S_ccedil; break;
- case 232: pStr = OOO_STRING_SVTOOLS_HTML_S_egrave; break;
- case 233: pStr = OOO_STRING_SVTOOLS_HTML_S_eacute; break;
- case 234: pStr = OOO_STRING_SVTOOLS_HTML_S_ecirc; break;
- case 235: pStr = OOO_STRING_SVTOOLS_HTML_S_euml; break;
- case 236: pStr = OOO_STRING_SVTOOLS_HTML_S_igrave; break;
- case 237: pStr = OOO_STRING_SVTOOLS_HTML_S_iacute; break;
- case 238: pStr = OOO_STRING_SVTOOLS_HTML_S_icirc; break;
- case 239: pStr = OOO_STRING_SVTOOLS_HTML_S_iuml; break;
- case 240: pStr = OOO_STRING_SVTOOLS_HTML_S_eth; break;
- case 241: pStr = OOO_STRING_SVTOOLS_HTML_S_ntilde; break;
- case 242: pStr = OOO_STRING_SVTOOLS_HTML_S_ograve; break;
- case 243: pStr = OOO_STRING_SVTOOLS_HTML_S_oacute; break;
- case 244: pStr = OOO_STRING_SVTOOLS_HTML_S_ocirc; break;
- case 245: pStr = OOO_STRING_SVTOOLS_HTML_S_otilde; break;
- case 246: pStr = OOO_STRING_SVTOOLS_HTML_S_ouml; break;
- case 247: pStr = OOO_STRING_SVTOOLS_HTML_S_divide; break;
- case 248: pStr = OOO_STRING_SVTOOLS_HTML_S_oslash; break;
- case 249: pStr = OOO_STRING_SVTOOLS_HTML_S_ugrave; break;
- case 250: pStr = OOO_STRING_SVTOOLS_HTML_S_uacute; break;
- case 251: pStr = OOO_STRING_SVTOOLS_HTML_S_ucirc; break;
- case 252: pStr = OOO_STRING_SVTOOLS_HTML_S_uuml; break;
- case 253: pStr = OOO_STRING_SVTOOLS_HTML_S_yacute; break;
- case 254: pStr = OOO_STRING_SVTOOLS_HTML_S_thorn; break;
- case 255: pStr = OOO_STRING_SVTOOLS_HTML_S_yuml; break;
-
- case 338: pStr = OOO_STRING_SVTOOLS_HTML_S_OElig; break;
- case 339: pStr = OOO_STRING_SVTOOLS_HTML_S_oelig; break;
- case 352: pStr = OOO_STRING_SVTOOLS_HTML_S_Scaron; break;
- case 353: pStr = OOO_STRING_SVTOOLS_HTML_S_scaron; break;
- case 376: pStr = OOO_STRING_SVTOOLS_HTML_S_Yuml; break;
- case 402: pStr = OOO_STRING_SVTOOLS_HTML_S_fnof; break;
- case 710: pStr = OOO_STRING_SVTOOLS_HTML_S_circ; break;
- case 732: pStr = OOO_STRING_SVTOOLS_HTML_S_tilde; break;
+// case '\x0a': return HTMLOutFuncs::Out_Tag( rStream, OOO_STRING_SVTOOLS_HTML_linebreak );
+
+ case '<': pStr = OOO_STRING_SVTOOLS_HTML_C_lt; break;
+ case '>': pStr = OOO_STRING_SVTOOLS_HTML_C_gt; break;
+ case '&': pStr = OOO_STRING_SVTOOLS_HTML_C_amp; break;
+ case '"': pStr = OOO_STRING_SVTOOLS_HTML_C_quot; break;
+
+ case 161: pStr = OOO_STRING_SVTOOLS_HTML_S_iexcl; break;
+ case 162: pStr = OOO_STRING_SVTOOLS_HTML_S_cent; break;
+ case 163: pStr = OOO_STRING_SVTOOLS_HTML_S_pound; break;
+ case 164: pStr = OOO_STRING_SVTOOLS_HTML_S_curren; break;
+ case 165: pStr = OOO_STRING_SVTOOLS_HTML_S_yen; break;
+ case 166: pStr = OOO_STRING_SVTOOLS_HTML_S_brvbar; break;
+ case 167: pStr = OOO_STRING_SVTOOLS_HTML_S_sect; break;
+ case 168: pStr = OOO_STRING_SVTOOLS_HTML_S_uml; break;
+ case 169: pStr = OOO_STRING_SVTOOLS_HTML_S_copy; break;
+ case 170: pStr = OOO_STRING_SVTOOLS_HTML_S_ordf; break;
+ case 171: pStr = OOO_STRING_SVTOOLS_HTML_S_laquo; break;
+ case 172: pStr = OOO_STRING_SVTOOLS_HTML_S_not; break;
+ case 174: pStr = OOO_STRING_SVTOOLS_HTML_S_reg; break;
+ case 175: pStr = OOO_STRING_SVTOOLS_HTML_S_macr; break;
+ case 176: pStr = OOO_STRING_SVTOOLS_HTML_S_deg; break;
+ case 177: pStr = OOO_STRING_SVTOOLS_HTML_S_plusmn; break;
+ case 178: pStr = OOO_STRING_SVTOOLS_HTML_S_sup2; break;
+ case 179: pStr = OOO_STRING_SVTOOLS_HTML_S_sup3; break;
+ case 180: pStr = OOO_STRING_SVTOOLS_HTML_S_acute; break;
+ case 181: pStr = OOO_STRING_SVTOOLS_HTML_S_micro; break;
+ case 182: pStr = OOO_STRING_SVTOOLS_HTML_S_para; break;
+ case 183: pStr = OOO_STRING_SVTOOLS_HTML_S_middot; break;
+ case 184: pStr = OOO_STRING_SVTOOLS_HTML_S_cedil; break;
+ case 185: pStr = OOO_STRING_SVTOOLS_HTML_S_sup1; break;
+ case 186: pStr = OOO_STRING_SVTOOLS_HTML_S_ordm; break;
+ case 187: pStr = OOO_STRING_SVTOOLS_HTML_S_raquo; break;
+ case 188: pStr = OOO_STRING_SVTOOLS_HTML_S_frac14; break;
+ case 189: pStr = OOO_STRING_SVTOOLS_HTML_S_frac12; break;
+ case 190: pStr = OOO_STRING_SVTOOLS_HTML_S_frac34; break;
+ case 191: pStr = OOO_STRING_SVTOOLS_HTML_S_iquest; break;
+
+ case 192: pStr = OOO_STRING_SVTOOLS_HTML_C_Agrave; break;
+ case 193: pStr = OOO_STRING_SVTOOLS_HTML_C_Aacute; break;
+ case 194: pStr = OOO_STRING_SVTOOLS_HTML_C_Acirc; break;
+ case 195: pStr = OOO_STRING_SVTOOLS_HTML_C_Atilde; break;
+ case 196: pStr = OOO_STRING_SVTOOLS_HTML_C_Auml; break;
+ case 197: pStr = OOO_STRING_SVTOOLS_HTML_C_Aring; break;
+ case 198: pStr = OOO_STRING_SVTOOLS_HTML_C_AElig; break;
+ case 199: pStr = OOO_STRING_SVTOOLS_HTML_C_Ccedil; break;
+ case 200: pStr = OOO_STRING_SVTOOLS_HTML_C_Egrave; break;
+ case 201: pStr = OOO_STRING_SVTOOLS_HTML_C_Eacute; break;
+ case 202: pStr = OOO_STRING_SVTOOLS_HTML_C_Ecirc; break;
+ case 203: pStr = OOO_STRING_SVTOOLS_HTML_C_Euml; break;
+ case 204: pStr = OOO_STRING_SVTOOLS_HTML_C_Igrave; break;
+ case 205: pStr = OOO_STRING_SVTOOLS_HTML_C_Iacute; break;
+ case 206: pStr = OOO_STRING_SVTOOLS_HTML_C_Icirc; break;
+ case 207: pStr = OOO_STRING_SVTOOLS_HTML_C_Iuml; break;
+ case 208: pStr = OOO_STRING_SVTOOLS_HTML_C_ETH; break;
+ case 209: pStr = OOO_STRING_SVTOOLS_HTML_C_Ntilde; break;
+ case 210: pStr = OOO_STRING_SVTOOLS_HTML_C_Ograve; break;
+ case 211: pStr = OOO_STRING_SVTOOLS_HTML_C_Oacute; break;
+ case 212: pStr = OOO_STRING_SVTOOLS_HTML_C_Ocirc; break;
+ case 213: pStr = OOO_STRING_SVTOOLS_HTML_C_Otilde; break;
+ case 214: pStr = OOO_STRING_SVTOOLS_HTML_C_Ouml; break;
+ case 215: pStr = OOO_STRING_SVTOOLS_HTML_S_times; break;
+ case 216: pStr = OOO_STRING_SVTOOLS_HTML_C_Oslash; break;
+ case 217: pStr = OOO_STRING_SVTOOLS_HTML_C_Ugrave; break;
+ case 218: pStr = OOO_STRING_SVTOOLS_HTML_C_Uacute; break;
+ case 219: pStr = OOO_STRING_SVTOOLS_HTML_C_Ucirc; break;
+ case 220: pStr = OOO_STRING_SVTOOLS_HTML_C_Uuml; break;
+ case 221: pStr = OOO_STRING_SVTOOLS_HTML_C_Yacute; break;
+
+ case 222: pStr = OOO_STRING_SVTOOLS_HTML_C_THORN; break;
+ case 223: pStr = OOO_STRING_SVTOOLS_HTML_C_szlig; break;
+
+ case 224: pStr = OOO_STRING_SVTOOLS_HTML_S_agrave; break;
+ case 225: pStr = OOO_STRING_SVTOOLS_HTML_S_aacute; break;
+ case 226: pStr = OOO_STRING_SVTOOLS_HTML_S_acirc; break;
+ case 227: pStr = OOO_STRING_SVTOOLS_HTML_S_atilde; break;
+ case 228: pStr = OOO_STRING_SVTOOLS_HTML_S_auml; break;
+ case 229: pStr = OOO_STRING_SVTOOLS_HTML_S_aring; break;
+ case 230: pStr = OOO_STRING_SVTOOLS_HTML_S_aelig; break;
+ case 231: pStr = OOO_STRING_SVTOOLS_HTML_S_ccedil; break;
+ case 232: pStr = OOO_STRING_SVTOOLS_HTML_S_egrave; break;
+ case 233: pStr = OOO_STRING_SVTOOLS_HTML_S_eacute; break;
+ case 234: pStr = OOO_STRING_SVTOOLS_HTML_S_ecirc; break;
+ case 235: pStr = OOO_STRING_SVTOOLS_HTML_S_euml; break;
+ case 236: pStr = OOO_STRING_SVTOOLS_HTML_S_igrave; break;
+ case 237: pStr = OOO_STRING_SVTOOLS_HTML_S_iacute; break;
+ case 238: pStr = OOO_STRING_SVTOOLS_HTML_S_icirc; break;
+ case 239: pStr = OOO_STRING_SVTOOLS_HTML_S_iuml; break;
+ case 240: pStr = OOO_STRING_SVTOOLS_HTML_S_eth; break;
+ case 241: pStr = OOO_STRING_SVTOOLS_HTML_S_ntilde; break;
+ case 242: pStr = OOO_STRING_SVTOOLS_HTML_S_ograve; break;
+ case 243: pStr = OOO_STRING_SVTOOLS_HTML_S_oacute; break;
+ case 244: pStr = OOO_STRING_SVTOOLS_HTML_S_ocirc; break;
+ case 245: pStr = OOO_STRING_SVTOOLS_HTML_S_otilde; break;
+ case 246: pStr = OOO_STRING_SVTOOLS_HTML_S_ouml; break;
+ case 247: pStr = OOO_STRING_SVTOOLS_HTML_S_divide; break;
+ case 248: pStr = OOO_STRING_SVTOOLS_HTML_S_oslash; break;
+ case 249: pStr = OOO_STRING_SVTOOLS_HTML_S_ugrave; break;
+ case 250: pStr = OOO_STRING_SVTOOLS_HTML_S_uacute; break;
+ case 251: pStr = OOO_STRING_SVTOOLS_HTML_S_ucirc; break;
+ case 252: pStr = OOO_STRING_SVTOOLS_HTML_S_uuml; break;
+ case 253: pStr = OOO_STRING_SVTOOLS_HTML_S_yacute; break;
+ case 254: pStr = OOO_STRING_SVTOOLS_HTML_S_thorn; break;
+ case 255: pStr = OOO_STRING_SVTOOLS_HTML_S_yuml; break;
+
+ case 338: pStr = OOO_STRING_SVTOOLS_HTML_S_OElig; break;
+ case 339: pStr = OOO_STRING_SVTOOLS_HTML_S_oelig; break;
+ case 352: pStr = OOO_STRING_SVTOOLS_HTML_S_Scaron; break;
+ case 353: pStr = OOO_STRING_SVTOOLS_HTML_S_scaron; break;
+ case 376: pStr = OOO_STRING_SVTOOLS_HTML_S_Yuml; break;
+ case 402: pStr = OOO_STRING_SVTOOLS_HTML_S_fnof; break;
+ case 710: pStr = OOO_STRING_SVTOOLS_HTML_S_circ; break;
+ case 732: pStr = OOO_STRING_SVTOOLS_HTML_S_tilde; break;
// Greek chars are handled later,
// since they should *not* be transformed to entities
// when generating Greek text (== using Greek encoding)
- case 8194: pStr = OOO_STRING_SVTOOLS_HTML_S_ensp; break;
- case 8195: pStr = OOO_STRING_SVTOOLS_HTML_S_emsp; break;
- case 8201: pStr = OOO_STRING_SVTOOLS_HTML_S_thinsp; break;
- case 8204: pStr = OOO_STRING_SVTOOLS_HTML_S_zwnj; break;
- case 8205: pStr = OOO_STRING_SVTOOLS_HTML_S_zwj; break;
- case 8206: pStr = OOO_STRING_SVTOOLS_HTML_S_lrm; break;
- case 8207: pStr = OOO_STRING_SVTOOLS_HTML_S_rlm; break;
- case 8211: pStr = OOO_STRING_SVTOOLS_HTML_S_ndash; break;
- case 8212: pStr = OOO_STRING_SVTOOLS_HTML_S_mdash; break;
- case 8216: pStr = OOO_STRING_SVTOOLS_HTML_S_lsquo; break;
- case 8217: pStr = OOO_STRING_SVTOOLS_HTML_S_rsquo; break;
- case 8218: pStr = OOO_STRING_SVTOOLS_HTML_S_sbquo; break;
- case 8220: pStr = OOO_STRING_SVTOOLS_HTML_S_ldquo; break;
- case 8221: pStr = OOO_STRING_SVTOOLS_HTML_S_rdquo; break;
- case 8222: pStr = OOO_STRING_SVTOOLS_HTML_S_bdquo; break;
- case 8224: pStr = OOO_STRING_SVTOOLS_HTML_S_dagger; break;
- case 8225: pStr = OOO_STRING_SVTOOLS_HTML_S_Dagger; break;
- case 8226: pStr = OOO_STRING_SVTOOLS_HTML_S_bull; break;
- case 8230: pStr = OOO_STRING_SVTOOLS_HTML_S_hellip; break;
- case 8240: pStr = OOO_STRING_SVTOOLS_HTML_S_permil; break;
- case 8242: pStr = OOO_STRING_SVTOOLS_HTML_S_prime; break;
- case 8243: pStr = OOO_STRING_SVTOOLS_HTML_S_Prime; break;
- case 8249: pStr = OOO_STRING_SVTOOLS_HTML_S_lsaquo; break;
- case 8250: pStr = OOO_STRING_SVTOOLS_HTML_S_rsaquo; break;
- case 8254: pStr = OOO_STRING_SVTOOLS_HTML_S_oline; break;
- case 8260: pStr = OOO_STRING_SVTOOLS_HTML_S_frasl; break;
- case 8364: pStr = OOO_STRING_SVTOOLS_HTML_S_euro; break;
- case 8465: pStr = OOO_STRING_SVTOOLS_HTML_S_image; break;
- case 8472: pStr = OOO_STRING_SVTOOLS_HTML_S_weierp; break;
- case 8476: pStr = OOO_STRING_SVTOOLS_HTML_S_real; break;
- case 8482: pStr = OOO_STRING_SVTOOLS_HTML_S_trade; break;
- case 8501: pStr = OOO_STRING_SVTOOLS_HTML_S_alefsym; break;
- case 8592: pStr = OOO_STRING_SVTOOLS_HTML_S_larr; break;
- case 8593: pStr = OOO_STRING_SVTOOLS_HTML_S_uarr; break;
- case 8594: pStr = OOO_STRING_SVTOOLS_HTML_S_rarr; break;
- case 8595: pStr = OOO_STRING_SVTOOLS_HTML_S_darr; break;
- case 8596: pStr = OOO_STRING_SVTOOLS_HTML_S_harr; break;
- case 8629: pStr = OOO_STRING_SVTOOLS_HTML_S_crarr; break;
- case 8656: pStr = OOO_STRING_SVTOOLS_HTML_S_lArr; break;
- case 8657: pStr = OOO_STRING_SVTOOLS_HTML_S_uArr; break;
- case 8658: pStr = OOO_STRING_SVTOOLS_HTML_S_rArr; break;
- case 8659: pStr = OOO_STRING_SVTOOLS_HTML_S_dArr; break;
- case 8660: pStr = OOO_STRING_SVTOOLS_HTML_S_hArr; break;
- case 8704: pStr = OOO_STRING_SVTOOLS_HTML_S_forall; break;
- case 8706: pStr = OOO_STRING_SVTOOLS_HTML_S_part; break;
- case 8707: pStr = OOO_STRING_SVTOOLS_HTML_S_exist; break;
- case 8709: pStr = OOO_STRING_SVTOOLS_HTML_S_empty; break;
- case 8711: pStr = OOO_STRING_SVTOOLS_HTML_S_nabla; break;
- case 8712: pStr = OOO_STRING_SVTOOLS_HTML_S_isin; break;
- case 8713: pStr = OOO_STRING_SVTOOLS_HTML_S_notin; break;
- case 8715: pStr = OOO_STRING_SVTOOLS_HTML_S_ni; break;
- case 8719: pStr = OOO_STRING_SVTOOLS_HTML_S_prod; break;
- case 8721: pStr = OOO_STRING_SVTOOLS_HTML_S_sum; break;
- case 8722: pStr = OOO_STRING_SVTOOLS_HTML_S_minus; break;
- case 8727: pStr = OOO_STRING_SVTOOLS_HTML_S_lowast; break;
- case 8730: pStr = OOO_STRING_SVTOOLS_HTML_S_radic; break;
- case 8733: pStr = OOO_STRING_SVTOOLS_HTML_S_prop; break;
- case 8734: pStr = OOO_STRING_SVTOOLS_HTML_S_infin; break;
- case 8736: pStr = OOO_STRING_SVTOOLS_HTML_S_ang; break;
- case 8743: pStr = OOO_STRING_SVTOOLS_HTML_S_and; break;
- case 8744: pStr = OOO_STRING_SVTOOLS_HTML_S_or; break;
- case 8745: pStr = OOO_STRING_SVTOOLS_HTML_S_cap; break;
- case 8746: pStr = OOO_STRING_SVTOOLS_HTML_S_cup; break;
- case 8747: pStr = OOO_STRING_SVTOOLS_HTML_S_int; break;
- case 8756: pStr = OOO_STRING_SVTOOLS_HTML_S_there4; break;
- case 8764: pStr = OOO_STRING_SVTOOLS_HTML_S_sim; break;
- case 8773: pStr = OOO_STRING_SVTOOLS_HTML_S_cong; break;
- case 8776: pStr = OOO_STRING_SVTOOLS_HTML_S_asymp; break;
- case 8800: pStr = OOO_STRING_SVTOOLS_HTML_S_ne; break;
- case 8801: pStr = OOO_STRING_SVTOOLS_HTML_S_equiv; break;
- case 8804: pStr = OOO_STRING_SVTOOLS_HTML_S_le; break;
- case 8805: pStr = OOO_STRING_SVTOOLS_HTML_S_ge; break;
- case 8834: pStr = OOO_STRING_SVTOOLS_HTML_S_sub; break;
- case 8835: pStr = OOO_STRING_SVTOOLS_HTML_S_sup; break;
- case 8836: pStr = OOO_STRING_SVTOOLS_HTML_S_nsub; break;
- case 8838: pStr = OOO_STRING_SVTOOLS_HTML_S_sube; break;
- case 8839: pStr = OOO_STRING_SVTOOLS_HTML_S_supe; break;
- case 8853: pStr = OOO_STRING_SVTOOLS_HTML_S_oplus; break;
- case 8855: pStr = OOO_STRING_SVTOOLS_HTML_S_otimes; break;
- case 8869: pStr = OOO_STRING_SVTOOLS_HTML_S_perp; break;
- case 8901: pStr = OOO_STRING_SVTOOLS_HTML_S_sdot; break;
- case 8968: pStr = OOO_STRING_SVTOOLS_HTML_S_lceil; break;
- case 8969: pStr = OOO_STRING_SVTOOLS_HTML_S_rceil; break;
- case 8970: pStr = OOO_STRING_SVTOOLS_HTML_S_lfloor; break;
- case 8971: pStr = OOO_STRING_SVTOOLS_HTML_S_rfloor; break;
- case 9001: pStr = OOO_STRING_SVTOOLS_HTML_S_lang; break;
- case 9002: pStr = OOO_STRING_SVTOOLS_HTML_S_rang; break;
- case 9674: pStr = OOO_STRING_SVTOOLS_HTML_S_loz; break;
- case 9824: pStr = OOO_STRING_SVTOOLS_HTML_S_spades; break;
- case 9827: pStr = OOO_STRING_SVTOOLS_HTML_S_clubs; break;
- case 9829: pStr = OOO_STRING_SVTOOLS_HTML_S_hearts; break;
- case 9830: pStr = OOO_STRING_SVTOOLS_HTML_S_diams; break;
+ case 8194: pStr = OOO_STRING_SVTOOLS_HTML_S_ensp; break;
+ case 8195: pStr = OOO_STRING_SVTOOLS_HTML_S_emsp; break;
+ case 8201: pStr = OOO_STRING_SVTOOLS_HTML_S_thinsp; break;
+ case 8204: pStr = OOO_STRING_SVTOOLS_HTML_S_zwnj; break;
+ case 8205: pStr = OOO_STRING_SVTOOLS_HTML_S_zwj; break;
+ case 8206: pStr = OOO_STRING_SVTOOLS_HTML_S_lrm; break;
+ case 8207: pStr = OOO_STRING_SVTOOLS_HTML_S_rlm; break;
+ case 8211: pStr = OOO_STRING_SVTOOLS_HTML_S_ndash; break;
+ case 8212: pStr = OOO_STRING_SVTOOLS_HTML_S_mdash; break;
+ case 8216: pStr = OOO_STRING_SVTOOLS_HTML_S_lsquo; break;
+ case 8217: pStr = OOO_STRING_SVTOOLS_HTML_S_rsquo; break;
+ case 8218: pStr = OOO_STRING_SVTOOLS_HTML_S_sbquo; break;
+ case 8220: pStr = OOO_STRING_SVTOOLS_HTML_S_ldquo; break;
+ case 8221: pStr = OOO_STRING_SVTOOLS_HTML_S_rdquo; break;
+ case 8222: pStr = OOO_STRING_SVTOOLS_HTML_S_bdquo; break;
+ case 8224: pStr = OOO_STRING_SVTOOLS_HTML_S_dagger; break;
+ case 8225: pStr = OOO_STRING_SVTOOLS_HTML_S_Dagger; break;
+ case 8226: pStr = OOO_STRING_SVTOOLS_HTML_S_bull; break;
+ case 8230: pStr = OOO_STRING_SVTOOLS_HTML_S_hellip; break;
+ case 8240: pStr = OOO_STRING_SVTOOLS_HTML_S_permil; break;
+ case 8242: pStr = OOO_STRING_SVTOOLS_HTML_S_prime; break;
+ case 8243: pStr = OOO_STRING_SVTOOLS_HTML_S_Prime; break;
+ case 8249: pStr = OOO_STRING_SVTOOLS_HTML_S_lsaquo; break;
+ case 8250: pStr = OOO_STRING_SVTOOLS_HTML_S_rsaquo; break;
+ case 8254: pStr = OOO_STRING_SVTOOLS_HTML_S_oline; break;
+ case 8260: pStr = OOO_STRING_SVTOOLS_HTML_S_frasl; break;
+ case 8364: pStr = OOO_STRING_SVTOOLS_HTML_S_euro; break;
+ case 8465: pStr = OOO_STRING_SVTOOLS_HTML_S_image; break;
+ case 8472: pStr = OOO_STRING_SVTOOLS_HTML_S_weierp; break;
+ case 8476: pStr = OOO_STRING_SVTOOLS_HTML_S_real; break;
+ case 8482: pStr = OOO_STRING_SVTOOLS_HTML_S_trade; break;
+ case 8501: pStr = OOO_STRING_SVTOOLS_HTML_S_alefsym; break;
+ case 8592: pStr = OOO_STRING_SVTOOLS_HTML_S_larr; break;
+ case 8593: pStr = OOO_STRING_SVTOOLS_HTML_S_uarr; break;
+ case 8594: pStr = OOO_STRING_SVTOOLS_HTML_S_rarr; break;
+ case 8595: pStr = OOO_STRING_SVTOOLS_HTML_S_darr; break;
+ case 8596: pStr = OOO_STRING_SVTOOLS_HTML_S_harr; break;
+ case 8629: pStr = OOO_STRING_SVTOOLS_HTML_S_crarr; break;
+ case 8656: pStr = OOO_STRING_SVTOOLS_HTML_S_lArr; break;
+ case 8657: pStr = OOO_STRING_SVTOOLS_HTML_S_uArr; break;
+ case 8658: pStr = OOO_STRING_SVTOOLS_HTML_S_rArr; break;
+ case 8659: pStr = OOO_STRING_SVTOOLS_HTML_S_dArr; break;
+ case 8660: pStr = OOO_STRING_SVTOOLS_HTML_S_hArr; break;
+ case 8704: pStr = OOO_STRING_SVTOOLS_HTML_S_forall; break;
+ case 8706: pStr = OOO_STRING_SVTOOLS_HTML_S_part; break;
+ case 8707: pStr = OOO_STRING_SVTOOLS_HTML_S_exist; break;
+ case 8709: pStr = OOO_STRING_SVTOOLS_HTML_S_empty; break;
+ case 8711: pStr = OOO_STRING_SVTOOLS_HTML_S_nabla; break;
+ case 8712: pStr = OOO_STRING_SVTOOLS_HTML_S_isin; break;
+ case 8713: pStr = OOO_STRING_SVTOOLS_HTML_S_notin; break;
+ case 8715: pStr = OOO_STRING_SVTOOLS_HTML_S_ni; break;
+ case 8719: pStr = OOO_STRING_SVTOOLS_HTML_S_prod; break;
+ case 8721: pStr = OOO_STRING_SVTOOLS_HTML_S_sum; break;
+ case 8722: pStr = OOO_STRING_SVTOOLS_HTML_S_minus; break;
+ case 8727: pStr = OOO_STRING_SVTOOLS_HTML_S_lowast; break;
+ case 8730: pStr = OOO_STRING_SVTOOLS_HTML_S_radic; break;
+ case 8733: pStr = OOO_STRING_SVTOOLS_HTML_S_prop; break;
+ case 8734: pStr = OOO_STRING_SVTOOLS_HTML_S_infin; break;
+ case 8736: pStr = OOO_STRING_SVTOOLS_HTML_S_ang; break;
+ case 8743: pStr = OOO_STRING_SVTOOLS_HTML_S_and; break;
+ case 8744: pStr = OOO_STRING_SVTOOLS_HTML_S_or; break;
+ case 8745: pStr = OOO_STRING_SVTOOLS_HTML_S_cap; break;
+ case 8746: pStr = OOO_STRING_SVTOOLS_HTML_S_cup; break;
+ case 8747: pStr = OOO_STRING_SVTOOLS_HTML_S_int; break;
+ case 8756: pStr = OOO_STRING_SVTOOLS_HTML_S_there4; break;
+ case 8764: pStr = OOO_STRING_SVTOOLS_HTML_S_sim; break;
+ case 8773: pStr = OOO_STRING_SVTOOLS_HTML_S_cong; break;
+ case 8776: pStr = OOO_STRING_SVTOOLS_HTML_S_asymp; break;
+ case 8800: pStr = OOO_STRING_SVTOOLS_HTML_S_ne; break;
+ case 8801: pStr = OOO_STRING_SVTOOLS_HTML_S_equiv; break;
+ case 8804: pStr = OOO_STRING_SVTOOLS_HTML_S_le; break;
+ case 8805: pStr = OOO_STRING_SVTOOLS_HTML_S_ge; break;
+ case 8834: pStr = OOO_STRING_SVTOOLS_HTML_S_sub; break;
+ case 8835: pStr = OOO_STRING_SVTOOLS_HTML_S_sup; break;
+ case 8836: pStr = OOO_STRING_SVTOOLS_HTML_S_nsub; break;
+ case 8838: pStr = OOO_STRING_SVTOOLS_HTML_S_sube; break;
+ case 8839: pStr = OOO_STRING_SVTOOLS_HTML_S_supe; break;
+ case 8853: pStr = OOO_STRING_SVTOOLS_HTML_S_oplus; break;
+ case 8855: pStr = OOO_STRING_SVTOOLS_HTML_S_otimes; break;
+ case 8869: pStr = OOO_STRING_SVTOOLS_HTML_S_perp; break;
+ case 8901: pStr = OOO_STRING_SVTOOLS_HTML_S_sdot; break;
+ case 8968: pStr = OOO_STRING_SVTOOLS_HTML_S_lceil; break;
+ case 8969: pStr = OOO_STRING_SVTOOLS_HTML_S_rceil; break;
+ case 8970: pStr = OOO_STRING_SVTOOLS_HTML_S_lfloor; break;
+ case 8971: pStr = OOO_STRING_SVTOOLS_HTML_S_rfloor; break;
+ case 9001: pStr = OOO_STRING_SVTOOLS_HTML_S_lang; break;
+ case 9002: pStr = OOO_STRING_SVTOOLS_HTML_S_rang; break;
+ case 9674: pStr = OOO_STRING_SVTOOLS_HTML_S_loz; break;
+ case 9824: pStr = OOO_STRING_SVTOOLS_HTML_S_spades; break;
+ case 9827: pStr = OOO_STRING_SVTOOLS_HTML_S_clubs; break;
+ case 9829: pStr = OOO_STRING_SVTOOLS_HTML_S_hearts; break;
+ case 9830: pStr = OOO_STRING_SVTOOLS_HTML_S_diams; break;
}
// Greek chars: if we do not produce a Greek encoding,
@@ -350,58 +350,58 @@ const sal_Char *lcl_svhtml_GetEntityForChar( sal_Unicode c,
{
switch( c )
{
- case 913: pStr = OOO_STRING_SVTOOLS_HTML_S_Alpha; break;
- case 914: pStr = OOO_STRING_SVTOOLS_HTML_S_Beta; break;
- case 915: pStr = OOO_STRING_SVTOOLS_HTML_S_Gamma; break;
- case 916: pStr = OOO_STRING_SVTOOLS_HTML_S_Delta; break;
- case 917: pStr = OOO_STRING_SVTOOLS_HTML_S_Epsilon; break;
- case 918: pStr = OOO_STRING_SVTOOLS_HTML_S_Zeta; break;
- case 919: pStr = OOO_STRING_SVTOOLS_HTML_S_Eta; break;
- case 920: pStr = OOO_STRING_SVTOOLS_HTML_S_Theta; break;
- case 921: pStr = OOO_STRING_SVTOOLS_HTML_S_Iota; break;
- case 922: pStr = OOO_STRING_SVTOOLS_HTML_S_Kappa; break;
- case 923: pStr = OOO_STRING_SVTOOLS_HTML_S_Lambda; break;
- case 924: pStr = OOO_STRING_SVTOOLS_HTML_S_Mu; break;
- case 925: pStr = OOO_STRING_SVTOOLS_HTML_S_Nu; break;
- case 926: pStr = OOO_STRING_SVTOOLS_HTML_S_Xi; break;
- case 927: pStr = OOO_STRING_SVTOOLS_HTML_S_Omicron; break;
- case 928: pStr = OOO_STRING_SVTOOLS_HTML_S_Pi; break;
- case 929: pStr = OOO_STRING_SVTOOLS_HTML_S_Rho; break;
- case 931: pStr = OOO_STRING_SVTOOLS_HTML_S_Sigma; break;
- case 932: pStr = OOO_STRING_SVTOOLS_HTML_S_Tau; break;
- case 933: pStr = OOO_STRING_SVTOOLS_HTML_S_Upsilon; break;
- case 934: pStr = OOO_STRING_SVTOOLS_HTML_S_Phi; break;
- case 935: pStr = OOO_STRING_SVTOOLS_HTML_S_Chi; break;
- case 936: pStr = OOO_STRING_SVTOOLS_HTML_S_Psi; break;
- case 937: pStr = OOO_STRING_SVTOOLS_HTML_S_Omega; break;
- case 945: pStr = OOO_STRING_SVTOOLS_HTML_S_alpha; break;
- case 946: pStr = OOO_STRING_SVTOOLS_HTML_S_beta; break;
- case 947: pStr = OOO_STRING_SVTOOLS_HTML_S_gamma; break;
- case 948: pStr = OOO_STRING_SVTOOLS_HTML_S_delta; break;
- case 949: pStr = OOO_STRING_SVTOOLS_HTML_S_epsilon; break;
- case 950: pStr = OOO_STRING_SVTOOLS_HTML_S_zeta; break;
- case 951: pStr = OOO_STRING_SVTOOLS_HTML_S_eta; break;
- case 952: pStr = OOO_STRING_SVTOOLS_HTML_S_theta; break;
- case 953: pStr = OOO_STRING_SVTOOLS_HTML_S_iota; break;
- case 954: pStr = OOO_STRING_SVTOOLS_HTML_S_kappa; break;
- case 955: pStr = OOO_STRING_SVTOOLS_HTML_S_lambda; break;
- case 956: pStr = OOO_STRING_SVTOOLS_HTML_S_mu; break;
- case 957: pStr = OOO_STRING_SVTOOLS_HTML_S_nu; break;
- case 958: pStr = OOO_STRING_SVTOOLS_HTML_S_xi; break;
- case 959: pStr = OOO_STRING_SVTOOLS_HTML_S_omicron; break;
- case 960: pStr = OOO_STRING_SVTOOLS_HTML_S_pi; break;
- case 961: pStr = OOO_STRING_SVTOOLS_HTML_S_rho; break;
- case 962: pStr = OOO_STRING_SVTOOLS_HTML_S_sigmaf; break;
- case 963: pStr = OOO_STRING_SVTOOLS_HTML_S_sigma; break;
- case 964: pStr = OOO_STRING_SVTOOLS_HTML_S_tau; break;
- case 965: pStr = OOO_STRING_SVTOOLS_HTML_S_upsilon; break;
- case 966: pStr = OOO_STRING_SVTOOLS_HTML_S_phi; break;
- case 967: pStr = OOO_STRING_SVTOOLS_HTML_S_chi; break;
- case 968: pStr = OOO_STRING_SVTOOLS_HTML_S_psi; break;
- case 969: pStr = OOO_STRING_SVTOOLS_HTML_S_omega; break;
- case 977: pStr = OOO_STRING_SVTOOLS_HTML_S_thetasym;break;
- case 978: pStr = OOO_STRING_SVTOOLS_HTML_S_upsih; break;
- case 982: pStr = OOO_STRING_SVTOOLS_HTML_S_piv; break;
+ case 913: pStr = OOO_STRING_SVTOOLS_HTML_S_Alpha; break;
+ case 914: pStr = OOO_STRING_SVTOOLS_HTML_S_Beta; break;
+ case 915: pStr = OOO_STRING_SVTOOLS_HTML_S_Gamma; break;
+ case 916: pStr = OOO_STRING_SVTOOLS_HTML_S_Delta; break;
+ case 917: pStr = OOO_STRING_SVTOOLS_HTML_S_Epsilon; break;
+ case 918: pStr = OOO_STRING_SVTOOLS_HTML_S_Zeta; break;
+ case 919: pStr = OOO_STRING_SVTOOLS_HTML_S_Eta; break;
+ case 920: pStr = OOO_STRING_SVTOOLS_HTML_S_Theta; break;
+ case 921: pStr = OOO_STRING_SVTOOLS_HTML_S_Iota; break;
+ case 922: pStr = OOO_STRING_SVTOOLS_HTML_S_Kappa; break;
+ case 923: pStr = OOO_STRING_SVTOOLS_HTML_S_Lambda; break;
+ case 924: pStr = OOO_STRING_SVTOOLS_HTML_S_Mu; break;
+ case 925: pStr = OOO_STRING_SVTOOLS_HTML_S_Nu; break;
+ case 926: pStr = OOO_STRING_SVTOOLS_HTML_S_Xi; break;
+ case 927: pStr = OOO_STRING_SVTOOLS_HTML_S_Omicron; break;
+ case 928: pStr = OOO_STRING_SVTOOLS_HTML_S_Pi; break;
+ case 929: pStr = OOO_STRING_SVTOOLS_HTML_S_Rho; break;
+ case 931: pStr = OOO_STRING_SVTOOLS_HTML_S_Sigma; break;
+ case 932: pStr = OOO_STRING_SVTOOLS_HTML_S_Tau; break;
+ case 933: pStr = OOO_STRING_SVTOOLS_HTML_S_Upsilon; break;
+ case 934: pStr = OOO_STRING_SVTOOLS_HTML_S_Phi; break;
+ case 935: pStr = OOO_STRING_SVTOOLS_HTML_S_Chi; break;
+ case 936: pStr = OOO_STRING_SVTOOLS_HTML_S_Psi; break;
+ case 937: pStr = OOO_STRING_SVTOOLS_HTML_S_Omega; break;
+ case 945: pStr = OOO_STRING_SVTOOLS_HTML_S_alpha; break;
+ case 946: pStr = OOO_STRING_SVTOOLS_HTML_S_beta; break;
+ case 947: pStr = OOO_STRING_SVTOOLS_HTML_S_gamma; break;
+ case 948: pStr = OOO_STRING_SVTOOLS_HTML_S_delta; break;
+ case 949: pStr = OOO_STRING_SVTOOLS_HTML_S_epsilon; break;
+ case 950: pStr = OOO_STRING_SVTOOLS_HTML_S_zeta; break;
+ case 951: pStr = OOO_STRING_SVTOOLS_HTML_S_eta; break;
+ case 952: pStr = OOO_STRING_SVTOOLS_HTML_S_theta; break;
+ case 953: pStr = OOO_STRING_SVTOOLS_HTML_S_iota; break;
+ case 954: pStr = OOO_STRING_SVTOOLS_HTML_S_kappa; break;
+ case 955: pStr = OOO_STRING_SVTOOLS_HTML_S_lambda; break;
+ case 956: pStr = OOO_STRING_SVTOOLS_HTML_S_mu; break;
+ case 957: pStr = OOO_STRING_SVTOOLS_HTML_S_nu; break;
+ case 958: pStr = OOO_STRING_SVTOOLS_HTML_S_xi; break;
+ case 959: pStr = OOO_STRING_SVTOOLS_HTML_S_omicron; break;
+ case 960: pStr = OOO_STRING_SVTOOLS_HTML_S_pi; break;
+ case 961: pStr = OOO_STRING_SVTOOLS_HTML_S_rho; break;
+ case 962: pStr = OOO_STRING_SVTOOLS_HTML_S_sigmaf; break;
+ case 963: pStr = OOO_STRING_SVTOOLS_HTML_S_sigma; break;
+ case 964: pStr = OOO_STRING_SVTOOLS_HTML_S_tau; break;
+ case 965: pStr = OOO_STRING_SVTOOLS_HTML_S_upsilon; break;
+ case 966: pStr = OOO_STRING_SVTOOLS_HTML_S_phi; break;
+ case 967: pStr = OOO_STRING_SVTOOLS_HTML_S_chi; break;
+ case 968: pStr = OOO_STRING_SVTOOLS_HTML_S_psi; break;
+ case 969: pStr = OOO_STRING_SVTOOLS_HTML_S_omega; break;
+ case 977: pStr = OOO_STRING_SVTOOLS_HTML_S_thetasym;break;
+ case 978: pStr = OOO_STRING_SVTOOLS_HTML_S_upsih; break;
+ case 982: pStr = OOO_STRING_SVTOOLS_HTML_S_piv; break;
}
}
@@ -417,13 +417,13 @@ void lcl_ConvertCharToHTML( sal_Unicode c, ByteString& rDest,
const sal_Char *pStr = 0;
switch( c )
{
- case 0xA0: // is a hard blank
+ case 0xA0: // is a hard blank
//!! the TextConverter has a problem with this character - so change it to
// a hard space - that's the same as our 5.2
- case 0x2011: // is a hard hyphen
+ case 0x2011: // is a hard hyphen
pStr = OOO_STRING_SVTOOLS_HTML_S_nbsp;
break;
- case 0xAD: // is a soft hyphen
+ case 0xAD: // is a soft hyphen
pStr = OOO_STRING_SVTOOLS_HTML_S_shy;
break;
default:
@@ -445,9 +445,9 @@ void lcl_ConvertCharToHTML( sal_Unicode c, ByteString& rDest,
RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR;
if( pStr )
{
- sal_Size nLen = rtl_convertUnicodeToText(
+ sal_Size nLen = rtl_convertUnicodeToText(
rContext.m_hConv, rContext.m_hContext, &c, 0,
- cBuffer, TXTCONV_BUFFER_SIZE,
+ cBuffer, TXTCONV_BUFFER_SIZE,
nFlags|RTL_UNICODETOTEXT_FLAGS_FLUSH,
&nInfo, &nSrcChars );
DBG_ASSERT( (nInfo & (RTL_UNICODETOTEXT_INFO_ERROR|RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL)) == 0, "HTMLOut: error while flushing" );
@@ -458,7 +458,7 @@ void lcl_ConvertCharToHTML( sal_Unicode c, ByteString& rDest,
}
else
{
- sal_Size nLen = rtl_convertUnicodeToText( rContext.m_hConv,
+ sal_Size nLen = rtl_convertUnicodeToText( rContext.m_hConv,
rContext.m_hContext, &c, 1,
cBuffer, TXTCONV_BUFFER_SIZE,
nFlags,
@@ -474,9 +474,9 @@ void lcl_ConvertCharToHTML( sal_Unicode c, ByteString& rDest,
// If the character could not be converted to the destination
// character set, the UNICODE character is exported as character
// entity.
- nLen = rtl_convertUnicodeToText(
+ nLen = rtl_convertUnicodeToText(
rContext.m_hConv, rContext.m_hContext, &c, 0,
- cBuffer, TXTCONV_BUFFER_SIZE,
+ cBuffer, TXTCONV_BUFFER_SIZE,
nFlags|RTL_UNICODETOTEXT_FLAGS_FLUSH,
&nInfo, &nSrcChars );
DBG_ASSERT( (nInfo & (RTL_UNICODETOTEXT_INFO_ERROR|RTL_UNICODETOTEXT_INFO_DESTBUFFERTOSMALL)) == 0, "HTMLOut: error while flushing" );
@@ -504,7 +504,7 @@ sal_Bool lcl_FlushToAscii( ByteString& rDest, HTMLOutContext& rContext )
RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR|
RTL_UNICODETOTEXT_FLAGS_FLUSH|
RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR;
- sal_Size nLen = rtl_convertUnicodeToText(
+ sal_Size nLen = rtl_convertUnicodeToText(
rContext.m_hConv, rContext.m_hContext, &c, 0,
cBuffer, TXTCONV_BUFFER_SIZE, nFlags,
&nInfo, &nSrcChars );
@@ -538,7 +538,7 @@ SvStream& HTMLOutFuncs::Out_AsciiTag( SvStream& rStream, const sal_Char *pStr,
}
SvStream& HTMLOutFuncs::Out_Char( SvStream& rStream, sal_Unicode c,
- HTMLOutContext& rContext,
+ HTMLOutContext& rContext,
String *pNonConvertableChars )
{
ByteString sOut;
@@ -572,7 +572,7 @@ SvStream& HTMLOutFuncs::FlushToAscii( SvStream& rStream,
SvStream& HTMLOutFuncs::Out_Hex( SvStream& rStream, ULONG nHex, BYTE nLen,
rtl_TextEncoding )
-{ // in einen Stream aus
+{ // in einen Stream aus
sal_Char aNToABuf[] = "0000000000000000";
DBG_ASSERT( nLen < sizeof(aNToABuf), "zu viele Stellen" );
@@ -621,7 +621,7 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream,
const sal_Char *pIndentArea,
const sal_Char *pIndentMap,
rtl_TextEncoding eDestEnc,
- String *pNonConvertableChars )
+ String *pNonConvertableChars )
{
if( RTL_TEXTENCODING_DONTKNOW == eDestEnc )
eDestEnc = gsl_getSystemTextEncoding();
@@ -777,7 +777,7 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream,
return rStream;
}
-SvStream& HTMLOutFuncs::OutScript( SvStream& rStrm,
+SvStream& HTMLOutFuncs::OutScript( SvStream& rStrm,
const String& rBaseURL,
const String& rSource,
const String& rLanguage,
@@ -945,7 +945,7 @@ ByteString& HTMLOutFuncs::CreateTableDataOptionsValNum( ByteString& aStrTD,
((aStrTD += ' ') += OOO_STRING_SVTOOLS_HTML_O_SDnum) += "=\"";
(aStrTD += ByteString::CreateFromInt32(
Application::GetSettings().GetLanguage() ))
- += ';'; // Language fuer Format 0
+ += ';'; // Language fuer Format 0
if ( nFormat )
{
ByteString aNumStr;
diff --git a/svtools/source/svhtml/htmlsupp.cxx b/svtools/source/svhtml/htmlsupp.cxx
index 8d1421c1d932..c6e5606bcb2e 100644
--- a/svtools/source/svhtml/htmlsupp.cxx
+++ b/svtools/source/svhtml/htmlsupp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,14 +47,14 @@
static HTMLOptionEnum __READONLY_DATA aScriptLangOptEnums[] =
{
- { OOO_STRING_SVTOOLS_HTML_LG_starbasic, HTML_SL_STARBASIC },
- { OOO_STRING_SVTOOLS_HTML_LG_javascript, HTML_SL_JAVASCRIPT },
- { OOO_STRING_SVTOOLS_HTML_LG_javascript11,HTML_SL_JAVASCRIPT },
- { OOO_STRING_SVTOOLS_HTML_LG_livescript, HTML_SL_JAVASCRIPT },
-// { OOO_STRING_SVTOOLS_HTML_LG_unused_javascript, HTML_SL_UNUSEDJS },
-// { OOO_STRING_SVTOOLS_HTML_LG_vbscript, HTML_SL_VBSCRIPT },
-// { OOO_STRING_SVTOOLS_HTML_LG_starone, HTML_SL_STARONE },
- { 0, 0 }
+ { OOO_STRING_SVTOOLS_HTML_LG_starbasic, HTML_SL_STARBASIC },
+ { OOO_STRING_SVTOOLS_HTML_LG_javascript, HTML_SL_JAVASCRIPT },
+ { OOO_STRING_SVTOOLS_HTML_LG_javascript11,HTML_SL_JAVASCRIPT },
+ { OOO_STRING_SVTOOLS_HTML_LG_livescript, HTML_SL_JAVASCRIPT },
+// { OOO_STRING_SVTOOLS_HTML_LG_unused_javascript, HTML_SL_UNUSEDJS },
+// { OOO_STRING_SVTOOLS_HTML_LG_vbscript, HTML_SL_VBSCRIPT },
+// { OOO_STRING_SVTOOLS_HTML_LG_starone, HTML_SL_STARONE },
+ { 0, 0 }
};
BOOL HTMLParser::ParseScriptOptions( String& rLangString, const String& rBaseURL,
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 94d7ba445438..c08729ac3e60 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,45 +69,45 @@ const sal_Int32 MAX_ENTITY_LEN( 8L );
// <INPUT TYPE=xxx>
static HTMLOptionEnum __READONLY_DATA aInputTypeOptEnums[] =
{
- { OOO_STRING_SVTOOLS_HTML_IT_text, HTML_IT_TEXT },
- { OOO_STRING_SVTOOLS_HTML_IT_password, HTML_IT_PASSWORD },
- { OOO_STRING_SVTOOLS_HTML_IT_checkbox, HTML_IT_CHECKBOX },
- { OOO_STRING_SVTOOLS_HTML_IT_radio, HTML_IT_RADIO },
- { OOO_STRING_SVTOOLS_HTML_IT_range, HTML_IT_RANGE },
- { OOO_STRING_SVTOOLS_HTML_IT_scribble, HTML_IT_SCRIBBLE },
- { OOO_STRING_SVTOOLS_HTML_IT_file, HTML_IT_FILE },
- { OOO_STRING_SVTOOLS_HTML_IT_hidden, HTML_IT_HIDDEN },
- { OOO_STRING_SVTOOLS_HTML_IT_submit, HTML_IT_SUBMIT },
- { OOO_STRING_SVTOOLS_HTML_IT_image, HTML_IT_IMAGE },
- { OOO_STRING_SVTOOLS_HTML_IT_reset, HTML_IT_RESET },
- { OOO_STRING_SVTOOLS_HTML_IT_button, HTML_IT_BUTTON },
- { 0, 0 }
+ { OOO_STRING_SVTOOLS_HTML_IT_text, HTML_IT_TEXT },
+ { OOO_STRING_SVTOOLS_HTML_IT_password, HTML_IT_PASSWORD },
+ { OOO_STRING_SVTOOLS_HTML_IT_checkbox, HTML_IT_CHECKBOX },
+ { OOO_STRING_SVTOOLS_HTML_IT_radio, HTML_IT_RADIO },
+ { OOO_STRING_SVTOOLS_HTML_IT_range, HTML_IT_RANGE },
+ { OOO_STRING_SVTOOLS_HTML_IT_scribble, HTML_IT_SCRIBBLE },
+ { OOO_STRING_SVTOOLS_HTML_IT_file, HTML_IT_FILE },
+ { OOO_STRING_SVTOOLS_HTML_IT_hidden, HTML_IT_HIDDEN },
+ { OOO_STRING_SVTOOLS_HTML_IT_submit, HTML_IT_SUBMIT },
+ { OOO_STRING_SVTOOLS_HTML_IT_image, HTML_IT_IMAGE },
+ { OOO_STRING_SVTOOLS_HTML_IT_reset, HTML_IT_RESET },
+ { OOO_STRING_SVTOOLS_HTML_IT_button, HTML_IT_BUTTON },
+ { 0, 0 }
};
// <TABLE FRAME=xxx>
static HTMLOptionEnum __READONLY_DATA aTableFrameOptEnums[] =
{
- { OOO_STRING_SVTOOLS_HTML_TF_void, HTML_TF_VOID },
- { OOO_STRING_SVTOOLS_HTML_TF_above, HTML_TF_ABOVE },
- { OOO_STRING_SVTOOLS_HTML_TF_below, HTML_TF_BELOW },
- { OOO_STRING_SVTOOLS_HTML_TF_hsides, HTML_TF_HSIDES },
- { OOO_STRING_SVTOOLS_HTML_TF_lhs, HTML_TF_LHS },
- { OOO_STRING_SVTOOLS_HTML_TF_rhs, HTML_TF_RHS },
- { OOO_STRING_SVTOOLS_HTML_TF_vsides, HTML_TF_VSIDES },
- { OOO_STRING_SVTOOLS_HTML_TF_box, HTML_TF_BOX },
- { OOO_STRING_SVTOOLS_HTML_TF_border, HTML_TF_BOX },
- { 0, 0 }
+ { OOO_STRING_SVTOOLS_HTML_TF_void, HTML_TF_VOID },
+ { OOO_STRING_SVTOOLS_HTML_TF_above, HTML_TF_ABOVE },
+ { OOO_STRING_SVTOOLS_HTML_TF_below, HTML_TF_BELOW },
+ { OOO_STRING_SVTOOLS_HTML_TF_hsides, HTML_TF_HSIDES },
+ { OOO_STRING_SVTOOLS_HTML_TF_lhs, HTML_TF_LHS },
+ { OOO_STRING_SVTOOLS_HTML_TF_rhs, HTML_TF_RHS },
+ { OOO_STRING_SVTOOLS_HTML_TF_vsides, HTML_TF_VSIDES },
+ { OOO_STRING_SVTOOLS_HTML_TF_box, HTML_TF_BOX },
+ { OOO_STRING_SVTOOLS_HTML_TF_border, HTML_TF_BOX },
+ { 0, 0 }
};
// <TABLE RULES=xxx>
static HTMLOptionEnum __READONLY_DATA aTableRulesOptEnums[] =
{
- { OOO_STRING_SVTOOLS_HTML_TR_none, HTML_TR_NONE },
- { OOO_STRING_SVTOOLS_HTML_TR_groups, HTML_TR_GROUPS },
- { OOO_STRING_SVTOOLS_HTML_TR_rows, HTML_TR_ROWS },
- { OOO_STRING_SVTOOLS_HTML_TR_cols, HTML_TR_COLS },
- { OOO_STRING_SVTOOLS_HTML_TR_all, HTML_TR_ALL },
- { 0, 0 }
+ { OOO_STRING_SVTOOLS_HTML_TR_none, HTML_TR_NONE },
+ { OOO_STRING_SVTOOLS_HTML_TR_groups, HTML_TR_GROUPS },
+ { OOO_STRING_SVTOOLS_HTML_TR_rows, HTML_TR_ROWS },
+ { OOO_STRING_SVTOOLS_HTML_TR_cols, HTML_TR_COLS },
+ { OOO_STRING_SVTOOLS_HTML_TR_all, HTML_TR_ALL },
+ { 0, 0 }
};
@@ -348,7 +348,7 @@ SvParserState __EXPORT HTMLParser::CallParser()
AddRef();
Continue( 0 );
if( SVPAR_PENDING != eState )
- ReleaseRef(); // dann brauchen wir den Parser nicht mehr!
+ ReleaseRef(); // dann brauchen wir den Parser nicht mehr!
return eState;
}
@@ -367,7 +367,7 @@ void HTMLParser::Continue( int nToken )
NextToken( nToken );
if( IsParserWorking() )
- SaveState( 0 ); // bis hierhin abgearbeitet,
+ SaveState( 0 ); // bis hierhin abgearbeitet,
// weiter mit neuem Token!
nToken = GetNextToken();
}
@@ -379,7 +379,7 @@ int HTMLParser::FilterToken( int nToken )
{
case sal_Unicode(EOF):
nToken = 0;
- break; // nicht verschicken
+ break; // nicht verschicken
case HTML_HEAD_OFF:
bIsInBody = TRUE;
@@ -400,7 +400,7 @@ int HTMLParser::FilterToken( int nToken )
case HTML_HTML_OFF:
nToken = 0;
bReadPRE = bReadListing = bReadXMP = FALSE;
- break; // HTML_ON wurde auch nicht verschickt !
+ break; // HTML_ON wurde auch nicht verschickt !
case HTML_PREFORMTXT_ON:
StartPRE();
@@ -564,15 +564,15 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
}
}
- if( !cChar ) // unbekanntes Zeichen?
+ if( !cChar ) // unbekanntes Zeichen?
{
// dann im Stream zurueck, das '&' als Zeichen
// einfuegen und mit dem nachfolgenden Zeichen
// wieder aufsetzen
sTmpBuffer.append( (sal_Unicode)'&' );
-// rInput.SeekRel( -(long)(++nPos*GetCharSize()) );
-// nlLinePos -= nPos;
+// rInput.SeekRel( -(long)(++nPos*GetCharSize()) );
+// nlLinePos -= nPos;
DBG_ASSERT( rInput.Tell()-nStreamPos ==
(ULONG)(nPos+1)*GetCharSize(),
"Falsche Stream-Position" );
@@ -616,8 +616,8 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
{
// mit dem Zeichen wieder aufsetzen
nNextCh = '&';
-// rInput.SeekRel( -(long)(++nPos*GetCharSize()) );
-// nlLinePos -= nPos;
+// rInput.SeekRel( -(long)(++nPos*GetCharSize()) );
+// nlLinePos -= nPos;
DBG_ASSERT( rInput.Tell()-nStreamPos ==
(ULONG)(nPos+1)*GetCharSize(),
"Falsche Stream-Position" );
@@ -732,8 +732,8 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
{
// MIB 20.11.98: Das macht hier keinen Sinn, oder doch: Zumindest wird
// abc&auml;<EOF> nicht angezeigt, also lassen wir das in Zukunft.
-// if( '>' != cBreak )
-// eState = SVPAR_ACCEPTED;
+// if( '>' != cBreak )
+// eState = SVPAR_ACCEPTED;
bWeiter = FALSE;
}
else
@@ -747,7 +747,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
if( '>'==cBreak )
sTmpBuffer.append( nNextCh );
else
- bWeiter = FALSE; // Abbrechen, String zusammen
+ bWeiter = FALSE; // Abbrechen, String zusammen
break;
case '\f':
@@ -777,7 +777,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
break;
}
// Bug 18984: CR-LF -> Blank
- // Folge von CR/LF/BLANK/TAB nur in ein Blank wandeln
+ // Folge von CR/LF/BLANK/TAB nur in ein Blank wandeln
// kein break!!
case '\t':
if( '\t'==nNextCh && bReadPRE && '>'!=cBreak )
@@ -1108,7 +1108,7 @@ int __EXPORT HTMLParser::_GetNextToken()
if( pOptions->Count() )
pOptions->DeleteAndDestroy( 0, pOptions->Count() );
- if( !IsParserWorking() ) // wenn schon Fehler, dann nicht weiter!
+ if( !IsParserWorking() ) // wenn schon Fehler, dann nicht weiter!
return 0;
BOOL bReadNextCharSave = bReadNextChar;
@@ -1117,7 +1117,7 @@ int __EXPORT HTMLParser::_GetNextToken()
DBG_ASSERT( !bEndTokenFound,
"</SCRIPT> gelesen und trotzdem noch ein Zeichen lesen?" );
nNextCh = GetNextChar();
- if( !IsParserWorking() ) // wenn schon Fehler, dann nicht weiter!
+ if( !IsParserWorking() ) // wenn schon Fehler, dann nicht weiter!
return 0;
bReadNextChar = FALSE;
}
@@ -1452,7 +1452,7 @@ scan_text:
} while( !nRet && SVPAR_WORKING == eState );
if( SVPAR_PENDING == eState )
- nRet = -1; // irgendwas ungueltiges
+ nRet = -1; // irgendwas ungueltiges
return nRet;
}
@@ -1501,8 +1501,8 @@ const HTMLOptions *HTMLParser::GetOptions( USHORT *pNoConvertToken ) const
// Netscape achtet aber nur auf "=" und Leerzeichen (siehe
// Mozilla: PA_FetchRequestedNameValues in
// lipparse/pa_mdl.c
-// while( nPos < aToken.Len() &&
-// ( '-'==(c=aToken[nPos]) || isalnum(c) || '.'==c || '_'==c) )
+// while( nPos < aToken.Len() &&
+// ( '-'==(c=aToken[nPos]) || isalnum(c) || '.'==c || '_'==c) )
while( nPos < aToken.Len() && '=' != (cChar=aToken.GetChar(nPos)) &&
HTML_ISPRINTABLE(cChar) && !HTML_ISSPACE(cChar) )
nPos++;
@@ -1510,7 +1510,7 @@ const HTMLOptions *HTMLParser::GetOptions( USHORT *pNoConvertToken ) const
String sName( aToken.Copy( nStt, nPos-nStt ) );
//JP 23.03.97: die PlugIns wollen die TokenName im "Original" haben
-// also nur fuers Suchen in UpperCase wandeln
+// also nur fuers Suchen in UpperCase wandeln
String sNameUpperCase( sName );
sNameUpperCase.ToUpperAscii();
@@ -1846,7 +1846,7 @@ int HTMLParser::FilterXMP( int nToken )
case HTML_TEXTTOKEN:
case HTML_NONBREAKSPACE:
case HTML_SOFTHYPH:
- break; // bleiben erhalten
+ break; // bleiben erhalten
default:
if( nToken )
@@ -1887,7 +1887,7 @@ int HTMLParser::FilterListing( int nToken )
case HTML_TEXTTOKEN:
case HTML_NONBREAKSPACE:
case HTML_SOFTHYPH:
- break; // bleiben erhalten
+ break; // bleiben erhalten
default:
if( nToken )
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index e567e0151537..23f5c7a96f2f 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_svtools.hxx"
-#include <stdio.h> // for EOF
+#include <stdio.h> // for EOF
#include <rtl/tencinfo.h>
#include <tools/stream.hxx>
#include <tools/debug.hxx>
@@ -47,7 +47,7 @@ SV_IMPL_VARARR( RtfParserStates_Impl, RtfParserState_Impl )
SvRTFParser::SvRTFParser( SvStream& rIn, BYTE nStackSize )
: SvParser( rIn, nStackSize ),
- eUNICodeSet( RTL_TEXTENCODING_MS_1252 ), // default ist ANSI-CodeSet
+ eUNICodeSet( RTL_TEXTENCODING_MS_1252 ), // default ist ANSI-CodeSet
nUCharOverread( 1 )
{
// default ist ANSI-CodeSet
@@ -77,11 +77,11 @@ int SvRTFParser::_GetNextToken()
case '{':
case '}':
case '\\':
- case '+': // habe ich in einem RTF-File gefunden
- case '~': // nonbreaking space
- case '-': // optional hyphen
- case '_': // nonbreaking hyphen
- case '\'': // HexValue
+ case '+': // habe ich in einem RTF-File gefunden
+ case '~': // nonbreaking space
+ case '-': // optional hyphen
+ case '_': // nonbreaking hyphen
+ case '\'': // HexValue
nNextCh = '\\';
rInput.SeekRel( -1 );
ScanText();
@@ -89,13 +89,13 @@ int SvRTFParser::_GetNextToken()
bNextCh = 0 == nNextCh;
break;
- case '*': // ignoreflag
+ case '*': // ignoreflag
nRet = RTF_IGNOREFLAG;
break;
- case ':': // subentry in an index entry
+ case ':': // subentry in an index entry
nRet = RTF_SUBENTRYINDEX;
break;
- case '|': // formula-charakter
+ case '|': // formula-charakter
nRet = RTF_FORMULA;
break;
@@ -151,12 +151,12 @@ int SvRTFParser::_GetNextToken()
nTokenValue = -nTokenValue;
bTokenHasValue=true;
}
- else if( bNegValue ) // das Minus wieder zurueck
+ else if( bNegValue ) // das Minus wieder zurueck
{
nNextCh = '-';
rInput.SeekRel( -1 );
}
- if( ' ' == nNextCh ) // Blank gehoert zum Token!
+ if( ' ' == nNextCh ) // Blank gehoert zum Token!
nNextCh = GetNextChar();
// suche das Token in der Tabelle:
@@ -173,7 +173,7 @@ int SvRTFParser::_GetNextToken()
{
nUCharOverread = (BYTE)nTokenValue;
#if 1
- //cmc: other ifdef breaks #i3584
+ //cmc: other ifdef breaks #i3584
aParserStates[ aParserStates.Count()-1].
nUCharOverread = nUCharOverread;
#else
@@ -396,16 +396,16 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak )
case '\\':
case '}':
case '{':
- case '+': // habe ich in einem RTF-File gefunden
+ case '+': // habe ich in einem RTF-File gefunden
aStrBuffer.Append(nNextCh);
break;
- case '~': // nonbreaking space
+ case '~': // nonbreaking space
aStrBuffer.Append(static_cast< sal_Unicode >(0xA0));
break;
- case '-': // optional hyphen
+ case '-': // optional hyphen
aStrBuffer.Append(static_cast< sal_Unicode >(0xAD));
break;
- case '_': // nonbreaking hyphen
+ case '_': // nonbreaking hyphen
aStrBuffer.Append(static_cast< sal_Unicode >(0x2011));
break;
@@ -453,7 +453,7 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak )
else
{
nNextCh = '\\';
- bWeiter = false; // Abbrechen, String zusammen
+ bWeiter = false; // Abbrechen, String zusammen
}
}
break;
@@ -461,7 +461,7 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak )
default:
rInput.SeekRel( -1 );
nNextCh = '\\';
- bWeiter = false; // Abbrechen, String zusammen
+ bWeiter = false; // Abbrechen, String zusammen
break;
}
}
@@ -517,10 +517,10 @@ short SvRTFParser::_inSkipGroup=0;
void SvRTFParser::SkipGroup()
{
short nBrackets=1;
-if (_inSkipGroup>0)
+if (_inSkipGroup>0)
return;
_inSkipGroup++;
-#if 1 //#i16185# fecking \bin keyword
+#if 1 //#i16185# fecking \bin keyword
do
{
switch (nNextCh)
@@ -577,9 +577,9 @@ _inSkipGroup++;
_inSkipGroup--;
}
-void SvRTFParser::ReadUnknownData() { SkipGroup(); }
-void SvRTFParser::ReadBitmapData() { SkipGroup(); }
-void SvRTFParser::ReadOLEData() { SkipGroup(); }
+void SvRTFParser::ReadUnknownData() { SkipGroup(); }
+void SvRTFParser::ReadBitmapData() { SkipGroup(); }
+void SvRTFParser::ReadOLEData() { SkipGroup(); }
SvParserState SvRTFParser::CallParser()
@@ -590,7 +590,7 @@ SvParserState SvRTFParser::CallParser()
eState = SVPAR_WORKING;
nOpenBrakets = 0;
SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_MS_1252 );
- eUNICodeSet = RTL_TEXTENCODING_MS_1252; // default ist ANSI-CodeSet
+ eUNICodeSet = RTL_TEXTENCODING_MS_1252; // default ist ANSI-CodeSet
// die 1. beiden Token muessen '{' und \\rtf sein !!
if( '{' == GetNextToken() && RTF_RTF == GetNextToken() )
@@ -598,7 +598,7 @@ SvParserState SvRTFParser::CallParser()
AddRef();
Continue( 0 );
if( SVPAR_PENDING != eState )
- ReleaseRef(); // dann brauchen wir den Parser nicht mehr!
+ ReleaseRef(); // dann brauchen wir den Parser nicht mehr!
}
else
eState = SVPAR_ERROR;
@@ -608,8 +608,8 @@ SvParserState SvRTFParser::CallParser()
void SvRTFParser::Continue( int nToken )
{
-// DBG_ASSERT( SVPAR_CS_DONTKNOW == GetCharSet(),
-// "Zeichensatz wurde geaendert." );
+// DBG_ASSERT( SVPAR_CS_DONTKNOW == GetCharSet(),
+// "Zeichensatz wurde geaendert." );
if( !nToken )
nToken = GetNextToken();
@@ -639,25 +639,25 @@ void SvRTFParser::Continue( int nToken )
nToken = GetNextToken();
if( '}' != nToken )
eState = SVPAR_ERROR;
- break; // auf zum naechsten Token!!
+ break; // auf zum naechsten Token!!
}
}
goto NEXTTOKEN;
case RTF_UNKNOWNCONTROL:
- break; // unbekannte Token ueberspringen
+ break; // unbekannte Token ueberspringen
case RTF_NEXTTYPE:
- case RTF_ANSITYPE:
- SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_MS_1252 );
+ case RTF_ANSITYPE:
+ SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_MS_1252 );
break;
- case RTF_MACTYPE:
- SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_APPLE_ROMAN );
+ case RTF_MACTYPE:
+ SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_APPLE_ROMAN );
break;
- case RTF_PCTYPE:
- SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_IBM_437 );
+ case RTF_PCTYPE:
+ SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_IBM_437 );
break;
- case RTF_PCATYPE:
- SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_IBM_850 );
+ case RTF_PCATYPE:
+ SetSrcEncoding( eCodeSet = RTL_TEXTENCODING_IBM_850 );
break;
case RTF_ANSICPG:
eCodeSet = rtl_getTextEncodingFromWindowsCodePage(nTokenValue);
@@ -669,7 +669,7 @@ NEXTTOKEN:
break;
}
if( IsParserWorking() )
- SaveState( 0 ); // bis hierhin abgearbeitet,
+ SaveState( 0 ); // bis hierhin abgearbeitet,
// weiter mit neuem Token!
nToken = GetNextToken();
}
diff --git a/svtools/source/svrtf/rtfkey2.cxx b/svtools/source/svrtf/rtfkey2.cxx
index e2e2bef0f721..f294865637fb 100644
--- a/svtools/source/svrtf/rtfkey2.cxx
+++ b/svtools/source/svrtf/rtfkey2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -1042,25 +1042,25 @@ sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ULTHDASHDD, "\\ulthdashdd" );
sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ULHWAVE, "\\ulhwave" );
sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ULULDBWAVE, "\\ululdbwave" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_LOCH, "\\loch" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_HICH, "\\hich" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_DBCH, "\\dbch" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_LOCH, "\\loch" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_HICH, "\\hich" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_DBCH, "\\dbch" );
sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_LANGFE, "\\langfe" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ADEFLANG, "\\adeflang" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ADEFF, "\\adeff" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ACCNONE, "\\accnone" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ACCDOT, "\\accdot" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ACCCOMMA, "\\acccomma" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_TWOINONE, "\\twoinone" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_HORZVERT, "\\horzvert" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FAHANG, "\\fahang" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FAVAR, "\\favar" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FACENTER, "\\facenter" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FAROMAN, "\\faroman" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FAFIXED, "\\fafixed" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_NOCWRAP, "\\nocwrap" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ADEFLANG, "\\adeflang" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ADEFF, "\\adeff" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ACCNONE, "\\accnone" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ACCDOT, "\\accdot" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ACCCOMMA, "\\acccomma" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_TWOINONE, "\\twoinone" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_HORZVERT, "\\horzvert" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FAHANG, "\\fahang" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FAVAR, "\\favar" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FACENTER, "\\facenter" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FAROMAN, "\\faroman" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_FAFIXED, "\\fafixed" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_NOCWRAP, "\\nocwrap" );
sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_NOOVERFLOW,"\\nooverflow" );
-sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ASPALPHA, "\\aspalpha" );
+sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_ASPALPHA, "\\aspalpha" );
// SWG spezifische Attribute
sal_Char const SVTOOLS_CONSTASCII_DEF( sRTF_GRFALIGNV, "\\grfalignv" );
diff --git a/svtools/source/svrtf/rtfkeywd.cxx b/svtools/source/svrtf/rtfkeywd.cxx
index feebe3d78332..9f78fb91b867 100644
--- a/svtools/source/svrtf/rtfkeywd.cxx
+++ b/svtools/source/svrtf/rtfkeywd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,9 +70,9 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_FSCRIPT}, RTF_FSCRIPT},
{{OOO_STRING_SVTOOLS_RTF_FDECOR}, RTF_FDECOR},
{{OOO_STRING_SVTOOLS_RTF_FTECH}, RTF_FTECH},
-{{OOO_STRING_SVTOOLS_RTF_FCHARSET}, RTF_FCHARSET},
-{{OOO_STRING_SVTOOLS_RTF_FALT}, RTF_FALT},
-{{OOO_STRING_SVTOOLS_RTF_FPRQ}, RTF_FPRQ},
+{{OOO_STRING_SVTOOLS_RTF_FCHARSET}, RTF_FCHARSET},
+{{OOO_STRING_SVTOOLS_RTF_FALT}, RTF_FALT},
+{{OOO_STRING_SVTOOLS_RTF_FPRQ}, RTF_FPRQ},
{{OOO_STRING_SVTOOLS_RTF_COLORTBL}, RTF_COLORTBL},
{{OOO_STRING_SVTOOLS_RTF_RED}, RTF_RED},
{{OOO_STRING_SVTOOLS_RTF_GREEN}, RTF_GREEN},
@@ -212,9 +212,9 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_VERTALJ}, RTF_VERTALJ},
{{OOO_STRING_SVTOOLS_RTF_COLS}, RTF_COLS},
{{OOO_STRING_SVTOOLS_RTF_COLSX}, RTF_COLSX},
-{{OOO_STRING_SVTOOLS_RTF_COLNO}, RTF_COLNO},
-{{OOO_STRING_SVTOOLS_RTF_COLSR}, RTF_COLSR},
-{{OOO_STRING_SVTOOLS_RTF_COLW}, RTF_COLW},
+{{OOO_STRING_SVTOOLS_RTF_COLNO}, RTF_COLNO},
+{{OOO_STRING_SVTOOLS_RTF_COLSR}, RTF_COLSR},
+{{OOO_STRING_SVTOOLS_RTF_COLW}, RTF_COLW},
{{OOO_STRING_SVTOOLS_RTF_LINEBETCOL}, RTF_LINEBETCOL},
{{OOO_STRING_SVTOOLS_RTF_ENDNHERE}, RTF_ENDNHERE},
{{OOO_STRING_SVTOOLS_RTF_TITLEPG}, RTF_TITLEPG},
@@ -235,7 +235,7 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_INTBL}, RTF_INTBL},
{{OOO_STRING_SVTOOLS_RTF_KEEP}, RTF_KEEP},
{{OOO_STRING_SVTOOLS_RTF_KEEPN}, RTF_KEEPN},
-{{OOO_STRING_SVTOOLS_RTF_LEVEL}, RTF_LEVEL},
+{{OOO_STRING_SVTOOLS_RTF_LEVEL}, RTF_LEVEL},
{{OOO_STRING_SVTOOLS_RTF_SBYS}, RTF_SBYS},
{{OOO_STRING_SVTOOLS_RTF_PAGEBB}, RTF_PAGEBB},
{{OOO_STRING_SVTOOLS_RTF_NOLINE}, RTF_NOLINE},
@@ -323,9 +323,9 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_UP}, RTF_UP},
{{OOO_STRING_SVTOOLS_RTF_DN}, RTF_DN},
{{OOO_STRING_SVTOOLS_RTF_REVISED}, RTF_REVISED},
-{{OOO_STRING_SVTOOLS_RTF_SUB}, RTF_SUB},
-{{OOO_STRING_SVTOOLS_RTF_NOSUPERSUB}, RTF_NOSUPERSUB},
-{{OOO_STRING_SVTOOLS_RTF_SUPER}, RTF_SUPER},
+{{OOO_STRING_SVTOOLS_RTF_SUB}, RTF_SUB},
+{{OOO_STRING_SVTOOLS_RTF_NOSUPERSUB}, RTF_NOSUPERSUB},
+{{OOO_STRING_SVTOOLS_RTF_SUPER}, RTF_SUPER},
{{OOO_STRING_SVTOOLS_RTF_CHDATE}, RTF_CHDATE},
{{OOO_STRING_SVTOOLS_RTF_CHTIME}, RTF_CHTIME},
{{OOO_STRING_SVTOOLS_RTF_CHPGN}, RTF_CHPGN},
@@ -422,7 +422,7 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_CLBGBDIAG}, RTF_CLBGBDIAG},
{{OOO_STRING_SVTOOLS_RTF_CLBGCROSS}, RTF_CLBGCROSS},
{{OOO_STRING_SVTOOLS_RTF_CLBGDCROSS}, RTF_CLBGDCROSS},
-{{OOO_STRING_SVTOOLS_RTF_CLBGDKHOR}, RTF_CLBGDKHOR},
+{{OOO_STRING_SVTOOLS_RTF_CLBGDKHOR}, RTF_CLBGDKHOR},
{{OOO_STRING_SVTOOLS_RTF_CLBGDKVERT}, RTF_CLBGDKVERT},
{{OOO_STRING_SVTOOLS_RTF_CLBGDKFDIAG}, RTF_CLBGDKFDIAG},
{{OOO_STRING_SVTOOLS_RTF_CLBGDKBDIAG}, RTF_CLBGDKBDIAG},
@@ -431,307 +431,307 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_CLCFPAT}, RTF_CLCFPAT},
{{OOO_STRING_SVTOOLS_RTF_CLCBPAT}, RTF_CLCBPAT},
-{{OOO_STRING_SVTOOLS_RTF_AB}, RTF_AB},
-{{OOO_STRING_SVTOOLS_RTF_ACAPS}, RTF_ACAPS},
-{{OOO_STRING_SVTOOLS_RTF_ACF}, RTF_ACF},
-{{OOO_STRING_SVTOOLS_RTF_ADDITIVE}, RTF_ADDITIVE},
-{{OOO_STRING_SVTOOLS_RTF_ADN}, RTF_ADN},
-{{OOO_STRING_SVTOOLS_RTF_AENDDOC}, RTF_AENDDOC},
-{{OOO_STRING_SVTOOLS_RTF_AENDNOTES}, RTF_AENDNOTES},
-{{OOO_STRING_SVTOOLS_RTF_AEXPND}, RTF_AEXPND},
-{{OOO_STRING_SVTOOLS_RTF_AF}, RTF_AF},
-{{OOO_STRING_SVTOOLS_RTF_AFS}, RTF_AFS},
-{{OOO_STRING_SVTOOLS_RTF_AFTNBJ}, RTF_AFTNBJ},
-{{OOO_STRING_SVTOOLS_RTF_AFTNCN}, RTF_AFTNCN},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNALC}, RTF_AFTNNALC},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNAR}, RTF_AFTNNAR},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNAUC}, RTF_AFTNNAUC},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNCHI}, RTF_AFTNNCHI},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNRLC}, RTF_AFTNNRLC},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNRUC}, RTF_AFTNNRUC},
-{{OOO_STRING_SVTOOLS_RTF_AFTNRESTART}, RTF_AFTNRESTART},
-{{OOO_STRING_SVTOOLS_RTF_AFTNRSTCONT}, RTF_AFTNRSTCONT},
-{{OOO_STRING_SVTOOLS_RTF_AFTNSEP}, RTF_AFTNSEP},
-{{OOO_STRING_SVTOOLS_RTF_AFTNSEPC}, RTF_AFTNSEPC},
-{{OOO_STRING_SVTOOLS_RTF_AFTNSTART}, RTF_AFTNSTART},
-{{OOO_STRING_SVTOOLS_RTF_AFTNTJ}, RTF_AFTNTJ},
-{{OOO_STRING_SVTOOLS_RTF_AI}, RTF_AI},
-{{OOO_STRING_SVTOOLS_RTF_ALANG}, RTF_ALANG},
-{{OOO_STRING_SVTOOLS_RTF_ALLPROT}, RTF_ALLPROT},
-{{OOO_STRING_SVTOOLS_RTF_ANNOTPROT}, RTF_ANNOTPROT},
-{{OOO_STRING_SVTOOLS_RTF_AOUTL}, RTF_AOUTL},
-{{OOO_STRING_SVTOOLS_RTF_ASCAPS}, RTF_ASCAPS},
-{{OOO_STRING_SVTOOLS_RTF_ASHAD}, RTF_ASHAD},
-{{OOO_STRING_SVTOOLS_RTF_ASTRIKE}, RTF_ASTRIKE},
-{{OOO_STRING_SVTOOLS_RTF_ATNAUTHOR}, RTF_ATNAUTHOR},
-{{OOO_STRING_SVTOOLS_RTF_ATNICN}, RTF_ATNICN},
-{{OOO_STRING_SVTOOLS_RTF_ATNREF}, RTF_ATNREF},
-{{OOO_STRING_SVTOOLS_RTF_ATNTIME}, RTF_ATNTIME},
-{{OOO_STRING_SVTOOLS_RTF_ATRFEND}, RTF_ATRFEND},
-{{OOO_STRING_SVTOOLS_RTF_ATRFSTART}, RTF_ATRFSTART},
-{{OOO_STRING_SVTOOLS_RTF_AUL}, RTF_AUL},
-{{OOO_STRING_SVTOOLS_RTF_AULD}, RTF_AULD},
-{{OOO_STRING_SVTOOLS_RTF_AULDB}, RTF_AULDB},
-{{OOO_STRING_SVTOOLS_RTF_AULNONE}, RTF_AULNONE},
-{{OOO_STRING_SVTOOLS_RTF_AULW}, RTF_AULW},
-{{OOO_STRING_SVTOOLS_RTF_AUP}, RTF_AUP},
-{{OOO_STRING_SVTOOLS_RTF_BKMKPUB}, RTF_BKMKPUB},
-{{OOO_STRING_SVTOOLS_RTF_BRDRDASH}, RTF_BRDRDASH},
-{{OOO_STRING_SVTOOLS_RTF_BRKFRM}, RTF_BRKFRM},
-{{OOO_STRING_SVTOOLS_RTF_CCHS}, RTF_CCHS},
-{{OOO_STRING_SVTOOLS_RTF_CPG}, RTF_CPG},
-{{OOO_STRING_SVTOOLS_RTF_CS}, RTF_CS},
-{{OOO_STRING_SVTOOLS_RTF_CVMME}, RTF_CVMME},
-{{OOO_STRING_SVTOOLS_RTF_DATAFIELD}, RTF_DATAFIELD},
-{{OOO_STRING_SVTOOLS_RTF_DO}, RTF_DO},
-{{OOO_STRING_SVTOOLS_RTF_DOBXCOLUMN}, RTF_DOBXCOLUMN},
-{{OOO_STRING_SVTOOLS_RTF_DOBXMARGIN}, RTF_DOBXMARGIN},
-{{OOO_STRING_SVTOOLS_RTF_DOBXPAGE}, RTF_DOBXPAGE},
-{{OOO_STRING_SVTOOLS_RTF_DOBYMARGIN}, RTF_DOBYMARGIN},
-{{OOO_STRING_SVTOOLS_RTF_DOBYPAGE}, RTF_DOBYPAGE},
-{{OOO_STRING_SVTOOLS_RTF_DOBYPARA}, RTF_DOBYPARA},
-{{OOO_STRING_SVTOOLS_RTF_DODHGT}, RTF_DODHGT},
-{{OOO_STRING_SVTOOLS_RTF_DOLOCK}, RTF_DOLOCK},
-{{OOO_STRING_SVTOOLS_RTF_DPAENDHOL}, RTF_DPAENDHOL},
-{{OOO_STRING_SVTOOLS_RTF_DPAENDL}, RTF_DPAENDL},
-{{OOO_STRING_SVTOOLS_RTF_DPAENDSOL}, RTF_DPAENDSOL},
-{{OOO_STRING_SVTOOLS_RTF_DPAENDW}, RTF_DPAENDW},
-{{OOO_STRING_SVTOOLS_RTF_DPARC}, RTF_DPARC},
-{{OOO_STRING_SVTOOLS_RTF_DPARCFLIPX}, RTF_DPARCFLIPX},
-{{OOO_STRING_SVTOOLS_RTF_DPARCFLIPY}, RTF_DPARCFLIPY},
-{{OOO_STRING_SVTOOLS_RTF_DPASTARTHOL}, RTF_DPASTARTHOL},
-{{OOO_STRING_SVTOOLS_RTF_DPASTARTL}, RTF_DPASTARTL},
-{{OOO_STRING_SVTOOLS_RTF_DPASTARTSOL}, RTF_DPASTARTSOL},
-{{OOO_STRING_SVTOOLS_RTF_DPASTARTW}, RTF_DPASTARTW},
-{{OOO_STRING_SVTOOLS_RTF_DPCALLOUT}, RTF_DPCALLOUT},
-{{OOO_STRING_SVTOOLS_RTF_DPCOA}, RTF_DPCOA},
-{{OOO_STRING_SVTOOLS_RTF_DPCOACCENT}, RTF_DPCOACCENT},
-{{OOO_STRING_SVTOOLS_RTF_DPCOBESTFIT}, RTF_DPCOBESTFIT},
-{{OOO_STRING_SVTOOLS_RTF_DPCOBORDER}, RTF_DPCOBORDER},
-{{OOO_STRING_SVTOOLS_RTF_DPCODABS}, RTF_DPCODABS},
-{{OOO_STRING_SVTOOLS_RTF_DPCODBOTTOM}, RTF_DPCODBOTTOM},
-{{OOO_STRING_SVTOOLS_RTF_DPCODCENTER}, RTF_DPCODCENTER},
-{{OOO_STRING_SVTOOLS_RTF_DPCODTOP}, RTF_DPCODTOP},
-{{OOO_STRING_SVTOOLS_RTF_DPCOLENGTH}, RTF_DPCOLENGTH},
-{{OOO_STRING_SVTOOLS_RTF_DPCOMINUSX}, RTF_DPCOMINUSX},
-{{OOO_STRING_SVTOOLS_RTF_DPCOMINUSY}, RTF_DPCOMINUSY},
-{{OOO_STRING_SVTOOLS_RTF_DPCOOFFSET}, RTF_DPCOOFFSET},
-{{OOO_STRING_SVTOOLS_RTF_DPCOSMARTA}, RTF_DPCOSMARTA},
-{{OOO_STRING_SVTOOLS_RTF_DPCOTDOUBLE}, RTF_DPCOTDOUBLE},
-{{OOO_STRING_SVTOOLS_RTF_DPCOTRIGHT}, RTF_DPCOTRIGHT},
-{{OOO_STRING_SVTOOLS_RTF_DPCOTSINGLE}, RTF_DPCOTSINGLE},
-{{OOO_STRING_SVTOOLS_RTF_DPCOTTRIPLE}, RTF_DPCOTTRIPLE},
-{{OOO_STRING_SVTOOLS_RTF_DPCOUNT}, RTF_DPCOUNT},
-{{OOO_STRING_SVTOOLS_RTF_DPELLIPSE}, RTF_DPELLIPSE},
-{{OOO_STRING_SVTOOLS_RTF_DPENDGROUP}, RTF_DPENDGROUP},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLBGCB}, RTF_DPFILLBGCB},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLBGCG}, RTF_DPFILLBGCG},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLBGCR}, RTF_DPFILLBGCR},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLBGGRAY}, RTF_DPFILLBGGRAY},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLBGPAL}, RTF_DPFILLBGPAL},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLFGCB}, RTF_DPFILLFGCB},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLFGCG}, RTF_DPFILLFGCG},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLFGCR}, RTF_DPFILLFGCR},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLFGGRAY}, RTF_DPFILLFGGRAY},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLFGPAL}, RTF_DPFILLFGPAL},
-{{OOO_STRING_SVTOOLS_RTF_DPFILLPAT}, RTF_DPFILLPAT},
-{{OOO_STRING_SVTOOLS_RTF_DPGROUP}, RTF_DPGROUP},
-{{OOO_STRING_SVTOOLS_RTF_DPLINE}, RTF_DPLINE},
-{{OOO_STRING_SVTOOLS_RTF_DPLINECOB}, RTF_DPLINECOB},
-{{OOO_STRING_SVTOOLS_RTF_DPLINECOG}, RTF_DPLINECOG},
-{{OOO_STRING_SVTOOLS_RTF_DPLINECOR}, RTF_DPLINECOR},
-{{OOO_STRING_SVTOOLS_RTF_DPLINEDADO}, RTF_DPLINEDADO},
-{{OOO_STRING_SVTOOLS_RTF_DPLINEDADODO}, RTF_DPLINEDADODO},
-{{OOO_STRING_SVTOOLS_RTF_DPLINEDASH}, RTF_DPLINEDASH},
-{{OOO_STRING_SVTOOLS_RTF_DPLINEDOT}, RTF_DPLINEDOT},
-{{OOO_STRING_SVTOOLS_RTF_DPLINEGRAY}, RTF_DPLINEGRAY},
-{{OOO_STRING_SVTOOLS_RTF_DPLINEHOLLOW}, RTF_DPLINEHOLLOW},
-{{OOO_STRING_SVTOOLS_RTF_DPLINEPAL}, RTF_DPLINEPAL},
-{{OOO_STRING_SVTOOLS_RTF_DPLINESOLID}, RTF_DPLINESOLID},
-{{OOO_STRING_SVTOOLS_RTF_DPLINEW}, RTF_DPLINEW},
-{{OOO_STRING_SVTOOLS_RTF_DPPOLYCOUNT}, RTF_DPPOLYCOUNT},
-{{OOO_STRING_SVTOOLS_RTF_DPPOLYGON}, RTF_DPPOLYGON},
-{{OOO_STRING_SVTOOLS_RTF_DPPOLYLINE}, RTF_DPPOLYLINE},
-{{OOO_STRING_SVTOOLS_RTF_DPPTX}, RTF_DPPTX},
-{{OOO_STRING_SVTOOLS_RTF_DPPTY}, RTF_DPPTY},
-{{OOO_STRING_SVTOOLS_RTF_DPRECT}, RTF_DPRECT},
-{{OOO_STRING_SVTOOLS_RTF_DPROUNDR}, RTF_DPROUNDR},
-{{OOO_STRING_SVTOOLS_RTF_DPSHADOW}, RTF_DPSHADOW},
-{{OOO_STRING_SVTOOLS_RTF_DPSHADX}, RTF_DPSHADX},
-{{OOO_STRING_SVTOOLS_RTF_DPSHADY}, RTF_DPSHADY},
-{{OOO_STRING_SVTOOLS_RTF_DPTXBX}, RTF_DPTXBX},
-{{OOO_STRING_SVTOOLS_RTF_DPTXBXMAR}, RTF_DPTXBXMAR},
-{{OOO_STRING_SVTOOLS_RTF_DPTXBXTEXT}, RTF_DPTXBXTEXT},
-{{OOO_STRING_SVTOOLS_RTF_DPX}, RTF_DPX},
-{{OOO_STRING_SVTOOLS_RTF_DPXSIZE}, RTF_DPXSIZE},
-{{OOO_STRING_SVTOOLS_RTF_DPY}, RTF_DPY},
-{{OOO_STRING_SVTOOLS_RTF_DPYSIZE}, RTF_DPYSIZE},
-{{OOO_STRING_SVTOOLS_RTF_DS}, RTF_DS},
-{{OOO_STRING_SVTOOLS_RTF_EMSPACE}, RTF_EMSPACE},
-{{OOO_STRING_SVTOOLS_RTF_ENSPACE}, RTF_ENSPACE},
-{{OOO_STRING_SVTOOLS_RTF_FBIDI}, RTF_FBIDI},
-{{OOO_STRING_SVTOOLS_RTF_FET}, RTF_FET},
-{{OOO_STRING_SVTOOLS_RTF_FID}, RTF_FID},
-{{OOO_STRING_SVTOOLS_RTF_FILE}, RTF_FILE},
-{{OOO_STRING_SVTOOLS_RTF_FILETBL}, RTF_FILETBL},
-{{OOO_STRING_SVTOOLS_RTF_FLDALT}, RTF_FLDALT},
-{{OOO_STRING_SVTOOLS_RTF_FNETWORK}, RTF_FNETWORK},
-{{OOO_STRING_SVTOOLS_RTF_FONTEMB}, RTF_FONTEMB},
-{{OOO_STRING_SVTOOLS_RTF_FONTFILE}, RTF_FONTFILE},
-{{OOO_STRING_SVTOOLS_RTF_FORMDISP}, RTF_FORMDISP},
-{{OOO_STRING_SVTOOLS_RTF_FORMPROT}, RTF_FORMPROT},
-{{OOO_STRING_SVTOOLS_RTF_FORMSHADE}, RTF_FORMSHADE},
-{{OOO_STRING_SVTOOLS_RTF_FOSNUM}, RTF_FOSNUM},
-{{OOO_STRING_SVTOOLS_RTF_FRELATIVE}, RTF_FRELATIVE},
-{{OOO_STRING_SVTOOLS_RTF_FTNALT}, RTF_FTNALT},
-{{OOO_STRING_SVTOOLS_RTF_FTNIL}, RTF_FTNIL},
-{{OOO_STRING_SVTOOLS_RTF_FTNNALC}, RTF_FTNNALC},
-{{OOO_STRING_SVTOOLS_RTF_FTNNAR}, RTF_FTNNAR},
-{{OOO_STRING_SVTOOLS_RTF_FTNNAUC}, RTF_FTNNAUC},
-{{OOO_STRING_SVTOOLS_RTF_FTNNCHI}, RTF_FTNNCHI},
-{{OOO_STRING_SVTOOLS_RTF_FTNNRLC}, RTF_FTNNRLC},
-{{OOO_STRING_SVTOOLS_RTF_FTNNRUC}, RTF_FTNNRUC},
-{{OOO_STRING_SVTOOLS_RTF_FTNRSTCONT}, RTF_FTNRSTCONT},
-{{OOO_STRING_SVTOOLS_RTF_FTNRSTPG}, RTF_FTNRSTPG},
-{{OOO_STRING_SVTOOLS_RTF_FTTRUETYPE}, RTF_FTTRUETYPE},
-{{OOO_STRING_SVTOOLS_RTF_FVALIDDOS}, RTF_FVALIDDOS},
-{{OOO_STRING_SVTOOLS_RTF_FVALIDHPFS}, RTF_FVALIDHPFS},
-{{OOO_STRING_SVTOOLS_RTF_FVALIDMAC}, RTF_FVALIDMAC},
-{{OOO_STRING_SVTOOLS_RTF_FVALIDNTFS}, RTF_FVALIDNTFS},
-{{OOO_STRING_SVTOOLS_RTF_HYPHAUTO}, RTF_HYPHAUTO},
-{{OOO_STRING_SVTOOLS_RTF_HYPHCAPS}, RTF_HYPHCAPS},
-{{OOO_STRING_SVTOOLS_RTF_HYPHCONSEC}, RTF_HYPHCONSEC},
-{{OOO_STRING_SVTOOLS_RTF_HYPHPAR}, RTF_HYPHPAR},
-{{OOO_STRING_SVTOOLS_RTF_LINKSELF}, RTF_LINKSELF},
-{{OOO_STRING_SVTOOLS_RTF_LINKSTYLES}, RTF_LINKSTYLES},
-{{OOO_STRING_SVTOOLS_RTF_LTRCH}, RTF_LTRCH},
-{{OOO_STRING_SVTOOLS_RTF_LTRDOC}, RTF_LTRDOC},
-{{OOO_STRING_SVTOOLS_RTF_LTRMARK}, RTF_LTRMARK},
-{{OOO_STRING_SVTOOLS_RTF_LTRPAR}, RTF_LTRPAR},
-{{OOO_STRING_SVTOOLS_RTF_LTRROW}, RTF_LTRROW},
-{{OOO_STRING_SVTOOLS_RTF_LTRSECT}, RTF_LTRSECT},
-{{OOO_STRING_SVTOOLS_RTF_NOCOLBAL}, RTF_NOCOLBAL},
-{{OOO_STRING_SVTOOLS_RTF_NOEXTRASPRL}, RTF_NOEXTRASPRL},
-{{OOO_STRING_SVTOOLS_RTF_NOTABIND}, RTF_NOTABIND},
-{{OOO_STRING_SVTOOLS_RTF_NOWIDCTLPAR}, RTF_NOWIDCTLPAR},
-{{OOO_STRING_SVTOOLS_RTF_OBJALIAS}, RTF_OBJALIAS},
-{{OOO_STRING_SVTOOLS_RTF_OBJALIGN}, RTF_OBJALIGN},
-{{OOO_STRING_SVTOOLS_RTF_OBJAUTLINK}, RTF_OBJAUTLINK},
-{{OOO_STRING_SVTOOLS_RTF_OBJCLASS}, RTF_OBJCLASS},
-{{OOO_STRING_SVTOOLS_RTF_OBJCROPB}, RTF_OBJCROPB},
-{{OOO_STRING_SVTOOLS_RTF_OBJCROPL}, RTF_OBJCROPL},
-{{OOO_STRING_SVTOOLS_RTF_OBJCROPR}, RTF_OBJCROPR},
-{{OOO_STRING_SVTOOLS_RTF_OBJCROPT}, RTF_OBJCROPT},
-{{OOO_STRING_SVTOOLS_RTF_OBJDATA}, RTF_OBJDATA},
-{{OOO_STRING_SVTOOLS_RTF_OBJECT}, RTF_OBJECT},
-{{OOO_STRING_SVTOOLS_RTF_OBJEMB}, RTF_OBJEMB},
-{{OOO_STRING_SVTOOLS_RTF_OBJH}, RTF_OBJH},
-{{OOO_STRING_SVTOOLS_RTF_OBJICEMB}, RTF_OBJICEMB},
-{{OOO_STRING_SVTOOLS_RTF_OBJLINK}, RTF_OBJLINK},
-{{OOO_STRING_SVTOOLS_RTF_OBJLOCK}, RTF_OBJLOCK},
-{{OOO_STRING_SVTOOLS_RTF_OBJNAME}, RTF_OBJNAME},
-{{OOO_STRING_SVTOOLS_RTF_OBJPUB}, RTF_OBJPUB},
-{{OOO_STRING_SVTOOLS_RTF_OBJSCALEX}, RTF_OBJSCALEX},
-{{OOO_STRING_SVTOOLS_RTF_OBJSCALEY}, RTF_OBJSCALEY},
-{{OOO_STRING_SVTOOLS_RTF_OBJSECT}, RTF_OBJSECT},
-{{OOO_STRING_SVTOOLS_RTF_OBJSETSIZE}, RTF_OBJSETSIZE},
-{{OOO_STRING_SVTOOLS_RTF_OBJSUB}, RTF_OBJSUB},
-{{OOO_STRING_SVTOOLS_RTF_OBJTIME}, RTF_OBJTIME},
-{{OOO_STRING_SVTOOLS_RTF_OBJTRANSY}, RTF_OBJTRANSY},
-{{OOO_STRING_SVTOOLS_RTF_OBJUPDATE}, RTF_OBJUPDATE},
-{{OOO_STRING_SVTOOLS_RTF_OBJW}, RTF_OBJW},
-{{OOO_STRING_SVTOOLS_RTF_OTBLRUL}, RTF_OTBLRUL},
-{{OOO_STRING_SVTOOLS_RTF_PGNHN}, RTF_PGNHN},
-{{OOO_STRING_SVTOOLS_RTF_PGNHNSC}, RTF_PGNHNSC},
-{{OOO_STRING_SVTOOLS_RTF_PGNHNSH}, RTF_PGNHNSH},
-{{OOO_STRING_SVTOOLS_RTF_PGNHNSM}, RTF_PGNHNSM},
-{{OOO_STRING_SVTOOLS_RTF_PGNHNSN}, RTF_PGNHNSN},
-{{OOO_STRING_SVTOOLS_RTF_PGNHNSP}, RTF_PGNHNSP},
-{{OOO_STRING_SVTOOLS_RTF_PICBMP}, RTF_PICBMP},
-{{OOO_STRING_SVTOOLS_RTF_PICBPP}, RTF_PICBPP},
-{{OOO_STRING_SVTOOLS_RTF_PN}, RTF_PN},
-{{OOO_STRING_SVTOOLS_RTF_PNACROSS}, RTF_PNACROSS},
-{{OOO_STRING_SVTOOLS_RTF_PNB}, RTF_PNB},
-{{OOO_STRING_SVTOOLS_RTF_PNCAPS}, RTF_PNCAPS},
-{{OOO_STRING_SVTOOLS_RTF_PNCARD}, RTF_PNCARD},
-{{OOO_STRING_SVTOOLS_RTF_PNCF}, RTF_PNCF},
-{{OOO_STRING_SVTOOLS_RTF_PNDEC}, RTF_PNDEC},
-{{OOO_STRING_SVTOOLS_RTF_PNF}, RTF_PNF},
-{{OOO_STRING_SVTOOLS_RTF_PNFS}, RTF_PNFS},
-{{OOO_STRING_SVTOOLS_RTF_PNHANG}, RTF_PNHANG},
-{{OOO_STRING_SVTOOLS_RTF_PNI}, RTF_PNI},
-{{OOO_STRING_SVTOOLS_RTF_PNINDENT}, RTF_PNINDENT},
-{{OOO_STRING_SVTOOLS_RTF_PNLCLTR}, RTF_PNLCLTR},
-{{OOO_STRING_SVTOOLS_RTF_PNLCRM}, RTF_PNLCRM},
-{{OOO_STRING_SVTOOLS_RTF_PNLVL}, RTF_PNLVL},
-{{OOO_STRING_SVTOOLS_RTF_PNLVLBLT}, RTF_PNLVLBLT},
-{{OOO_STRING_SVTOOLS_RTF_PNLVLBODY}, RTF_PNLVLBODY},
-{{OOO_STRING_SVTOOLS_RTF_PNLVLCONT}, RTF_PNLVLCONT},
-{{OOO_STRING_SVTOOLS_RTF_PNNUMONCE}, RTF_PNNUMONCE},
-{{OOO_STRING_SVTOOLS_RTF_PNORD}, RTF_PNORD},
-{{OOO_STRING_SVTOOLS_RTF_PNORDT}, RTF_PNORDT},
-{{OOO_STRING_SVTOOLS_RTF_PNPREV}, RTF_PNPREV},
-{{OOO_STRING_SVTOOLS_RTF_PNQC}, RTF_PNQC},
-{{OOO_STRING_SVTOOLS_RTF_PNQL}, RTF_PNQL},
-{{OOO_STRING_SVTOOLS_RTF_PNQR}, RTF_PNQR},
-{{OOO_STRING_SVTOOLS_RTF_PNRESTART}, RTF_PNRESTART},
-{{OOO_STRING_SVTOOLS_RTF_PNSCAPS}, RTF_PNSCAPS},
-{{OOO_STRING_SVTOOLS_RTF_PNSECLVL}, RTF_PNSECLVL},
-{{OOO_STRING_SVTOOLS_RTF_PNSP}, RTF_PNSP},
-{{OOO_STRING_SVTOOLS_RTF_PNSTART}, RTF_PNSTART},
-{{OOO_STRING_SVTOOLS_RTF_PNSTRIKE}, RTF_PNSTRIKE},
-{{OOO_STRING_SVTOOLS_RTF_PNTEXT}, RTF_PNTEXT},
-{{OOO_STRING_SVTOOLS_RTF_PNTXTA}, RTF_PNTXTA},
-{{OOO_STRING_SVTOOLS_RTF_PNTXTB}, RTF_PNTXTB},
-{{OOO_STRING_SVTOOLS_RTF_PNUCLTR}, RTF_PNUCLTR},
-{{OOO_STRING_SVTOOLS_RTF_PNUCRM}, RTF_PNUCRM},
-{{OOO_STRING_SVTOOLS_RTF_PNUL}, RTF_PNUL},
-{{OOO_STRING_SVTOOLS_RTF_PNULD}, RTF_PNULD},
-{{OOO_STRING_SVTOOLS_RTF_PNULDB}, RTF_PNULDB},
-{{OOO_STRING_SVTOOLS_RTF_PNULNONE}, RTF_PNULNONE},
-{{OOO_STRING_SVTOOLS_RTF_PNULW}, RTF_PNULW},
-{{OOO_STRING_SVTOOLS_RTF_PRCOLBL}, RTF_PRCOLBL},
-{{OOO_STRING_SVTOOLS_RTF_PRINTDATA}, RTF_PRINTDATA},
-{{OOO_STRING_SVTOOLS_RTF_PSZ}, RTF_PSZ},
-{{OOO_STRING_SVTOOLS_RTF_PUBAUTO}, RTF_PUBAUTO},
-{{OOO_STRING_SVTOOLS_RTF_RESULT}, RTF_RESULT},
-{{OOO_STRING_SVTOOLS_RTF_REVAUTH}, RTF_REVAUTH},
-{{OOO_STRING_SVTOOLS_RTF_REVDTTM}, RTF_REVDTTM},
-{{OOO_STRING_SVTOOLS_RTF_REVPROT}, RTF_REVPROT},
-{{OOO_STRING_SVTOOLS_RTF_REVTBL}, RTF_REVTBL},
-{{OOO_STRING_SVTOOLS_RTF_RSLTBMP}, RTF_RSLTBMP},
-{{OOO_STRING_SVTOOLS_RTF_RSLTMERGE}, RTF_RSLTMERGE},
-{{OOO_STRING_SVTOOLS_RTF_RSLTPICT}, RTF_RSLTPICT},
-{{OOO_STRING_SVTOOLS_RTF_RSLTRTF}, RTF_RSLTRTF},
-{{OOO_STRING_SVTOOLS_RTF_RSLTTXT}, RTF_RSLTTXT},
-{{OOO_STRING_SVTOOLS_RTF_RTLCH}, RTF_RTLCH},
-{{OOO_STRING_SVTOOLS_RTF_RTLDOC}, RTF_RTLDOC},
-{{OOO_STRING_SVTOOLS_RTF_RTLMARK}, RTF_RTLMARK},
-{{OOO_STRING_SVTOOLS_RTF_RTLPAR}, RTF_RTLPAR},
-{{OOO_STRING_SVTOOLS_RTF_RTLROW}, RTF_RTLROW},
-{{OOO_STRING_SVTOOLS_RTF_RTLSECT}, RTF_RTLSECT},
-{{OOO_STRING_SVTOOLS_RTF_SEC}, RTF_SEC},
-{{OOO_STRING_SVTOOLS_RTF_SECTNUM}, RTF_SECTNUM},
-{{OOO_STRING_SVTOOLS_RTF_SECTUNLOCKED}, RTF_SECTUNLOCKED},
-{{OOO_STRING_SVTOOLS_RTF_SLMULT}, RTF_SLMULT},
-{{OOO_STRING_SVTOOLS_RTF_SOFTCOL}, RTF_SOFTCOL},
-{{OOO_STRING_SVTOOLS_RTF_SOFTLHEIGHT}, RTF_SOFTLHEIGHT},
-{{OOO_STRING_SVTOOLS_RTF_SOFTLINE}, RTF_SOFTLINE},
-{{OOO_STRING_SVTOOLS_RTF_SOFTPAGE}, RTF_SOFTPAGE},
-{{OOO_STRING_SVTOOLS_RTF_SPRSSPBF}, RTF_SPRSSPBF},
-{{OOO_STRING_SVTOOLS_RTF_SPRSTSP}, RTF_SPRSTSP},
-{{OOO_STRING_SVTOOLS_RTF_SUBDOCUMENT}, RTF_SUBDOCUMENT},
-{{OOO_STRING_SVTOOLS_RTF_SWPBDR}, RTF_SWPBDR},
-{{OOO_STRING_SVTOOLS_RTF_TCN}, RTF_TCN},
-{{OOO_STRING_SVTOOLS_RTF_TRANSMF}, RTF_TRANSMF},
-{{OOO_STRING_SVTOOLS_RTF_TRBRDRB}, RTF_TRBRDRB},
-{{OOO_STRING_SVTOOLS_RTF_TRBRDRH}, RTF_TRBRDRH},
-{{OOO_STRING_SVTOOLS_RTF_TRBRDRL}, RTF_TRBRDRL},
-{{OOO_STRING_SVTOOLS_RTF_TRBRDRR}, RTF_TRBRDRR},
-{{OOO_STRING_SVTOOLS_RTF_TRBRDRT}, RTF_TRBRDRT},
-{{OOO_STRING_SVTOOLS_RTF_TRBRDRV}, RTF_TRBRDRV},
-{{OOO_STRING_SVTOOLS_RTF_TRHDR}, RTF_TRHDR},
-{{OOO_STRING_SVTOOLS_RTF_TRKEEP}, RTF_TRKEEP},
+{{OOO_STRING_SVTOOLS_RTF_AB}, RTF_AB},
+{{OOO_STRING_SVTOOLS_RTF_ACAPS}, RTF_ACAPS},
+{{OOO_STRING_SVTOOLS_RTF_ACF}, RTF_ACF},
+{{OOO_STRING_SVTOOLS_RTF_ADDITIVE}, RTF_ADDITIVE},
+{{OOO_STRING_SVTOOLS_RTF_ADN}, RTF_ADN},
+{{OOO_STRING_SVTOOLS_RTF_AENDDOC}, RTF_AENDDOC},
+{{OOO_STRING_SVTOOLS_RTF_AENDNOTES}, RTF_AENDNOTES},
+{{OOO_STRING_SVTOOLS_RTF_AEXPND}, RTF_AEXPND},
+{{OOO_STRING_SVTOOLS_RTF_AF}, RTF_AF},
+{{OOO_STRING_SVTOOLS_RTF_AFS}, RTF_AFS},
+{{OOO_STRING_SVTOOLS_RTF_AFTNBJ}, RTF_AFTNBJ},
+{{OOO_STRING_SVTOOLS_RTF_AFTNCN}, RTF_AFTNCN},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNALC}, RTF_AFTNNALC},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNAR}, RTF_AFTNNAR},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNAUC}, RTF_AFTNNAUC},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNCHI}, RTF_AFTNNCHI},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNRLC}, RTF_AFTNNRLC},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNRUC}, RTF_AFTNNRUC},
+{{OOO_STRING_SVTOOLS_RTF_AFTNRESTART}, RTF_AFTNRESTART},
+{{OOO_STRING_SVTOOLS_RTF_AFTNRSTCONT}, RTF_AFTNRSTCONT},
+{{OOO_STRING_SVTOOLS_RTF_AFTNSEP}, RTF_AFTNSEP},
+{{OOO_STRING_SVTOOLS_RTF_AFTNSEPC}, RTF_AFTNSEPC},
+{{OOO_STRING_SVTOOLS_RTF_AFTNSTART}, RTF_AFTNSTART},
+{{OOO_STRING_SVTOOLS_RTF_AFTNTJ}, RTF_AFTNTJ},
+{{OOO_STRING_SVTOOLS_RTF_AI}, RTF_AI},
+{{OOO_STRING_SVTOOLS_RTF_ALANG}, RTF_ALANG},
+{{OOO_STRING_SVTOOLS_RTF_ALLPROT}, RTF_ALLPROT},
+{{OOO_STRING_SVTOOLS_RTF_ANNOTPROT}, RTF_ANNOTPROT},
+{{OOO_STRING_SVTOOLS_RTF_AOUTL}, RTF_AOUTL},
+{{OOO_STRING_SVTOOLS_RTF_ASCAPS}, RTF_ASCAPS},
+{{OOO_STRING_SVTOOLS_RTF_ASHAD}, RTF_ASHAD},
+{{OOO_STRING_SVTOOLS_RTF_ASTRIKE}, RTF_ASTRIKE},
+{{OOO_STRING_SVTOOLS_RTF_ATNAUTHOR}, RTF_ATNAUTHOR},
+{{OOO_STRING_SVTOOLS_RTF_ATNICN}, RTF_ATNICN},
+{{OOO_STRING_SVTOOLS_RTF_ATNREF}, RTF_ATNREF},
+{{OOO_STRING_SVTOOLS_RTF_ATNTIME}, RTF_ATNTIME},
+{{OOO_STRING_SVTOOLS_RTF_ATRFEND}, RTF_ATRFEND},
+{{OOO_STRING_SVTOOLS_RTF_ATRFSTART}, RTF_ATRFSTART},
+{{OOO_STRING_SVTOOLS_RTF_AUL}, RTF_AUL},
+{{OOO_STRING_SVTOOLS_RTF_AULD}, RTF_AULD},
+{{OOO_STRING_SVTOOLS_RTF_AULDB}, RTF_AULDB},
+{{OOO_STRING_SVTOOLS_RTF_AULNONE}, RTF_AULNONE},
+{{OOO_STRING_SVTOOLS_RTF_AULW}, RTF_AULW},
+{{OOO_STRING_SVTOOLS_RTF_AUP}, RTF_AUP},
+{{OOO_STRING_SVTOOLS_RTF_BKMKPUB}, RTF_BKMKPUB},
+{{OOO_STRING_SVTOOLS_RTF_BRDRDASH}, RTF_BRDRDASH},
+{{OOO_STRING_SVTOOLS_RTF_BRKFRM}, RTF_BRKFRM},
+{{OOO_STRING_SVTOOLS_RTF_CCHS}, RTF_CCHS},
+{{OOO_STRING_SVTOOLS_RTF_CPG}, RTF_CPG},
+{{OOO_STRING_SVTOOLS_RTF_CS}, RTF_CS},
+{{OOO_STRING_SVTOOLS_RTF_CVMME}, RTF_CVMME},
+{{OOO_STRING_SVTOOLS_RTF_DATAFIELD}, RTF_DATAFIELD},
+{{OOO_STRING_SVTOOLS_RTF_DO}, RTF_DO},
+{{OOO_STRING_SVTOOLS_RTF_DOBXCOLUMN}, RTF_DOBXCOLUMN},
+{{OOO_STRING_SVTOOLS_RTF_DOBXMARGIN}, RTF_DOBXMARGIN},
+{{OOO_STRING_SVTOOLS_RTF_DOBXPAGE}, RTF_DOBXPAGE},
+{{OOO_STRING_SVTOOLS_RTF_DOBYMARGIN}, RTF_DOBYMARGIN},
+{{OOO_STRING_SVTOOLS_RTF_DOBYPAGE}, RTF_DOBYPAGE},
+{{OOO_STRING_SVTOOLS_RTF_DOBYPARA}, RTF_DOBYPARA},
+{{OOO_STRING_SVTOOLS_RTF_DODHGT}, RTF_DODHGT},
+{{OOO_STRING_SVTOOLS_RTF_DOLOCK}, RTF_DOLOCK},
+{{OOO_STRING_SVTOOLS_RTF_DPAENDHOL}, RTF_DPAENDHOL},
+{{OOO_STRING_SVTOOLS_RTF_DPAENDL}, RTF_DPAENDL},
+{{OOO_STRING_SVTOOLS_RTF_DPAENDSOL}, RTF_DPAENDSOL},
+{{OOO_STRING_SVTOOLS_RTF_DPAENDW}, RTF_DPAENDW},
+{{OOO_STRING_SVTOOLS_RTF_DPARC}, RTF_DPARC},
+{{OOO_STRING_SVTOOLS_RTF_DPARCFLIPX}, RTF_DPARCFLIPX},
+{{OOO_STRING_SVTOOLS_RTF_DPARCFLIPY}, RTF_DPARCFLIPY},
+{{OOO_STRING_SVTOOLS_RTF_DPASTARTHOL}, RTF_DPASTARTHOL},
+{{OOO_STRING_SVTOOLS_RTF_DPASTARTL}, RTF_DPASTARTL},
+{{OOO_STRING_SVTOOLS_RTF_DPASTARTSOL}, RTF_DPASTARTSOL},
+{{OOO_STRING_SVTOOLS_RTF_DPASTARTW}, RTF_DPASTARTW},
+{{OOO_STRING_SVTOOLS_RTF_DPCALLOUT}, RTF_DPCALLOUT},
+{{OOO_STRING_SVTOOLS_RTF_DPCOA}, RTF_DPCOA},
+{{OOO_STRING_SVTOOLS_RTF_DPCOACCENT}, RTF_DPCOACCENT},
+{{OOO_STRING_SVTOOLS_RTF_DPCOBESTFIT}, RTF_DPCOBESTFIT},
+{{OOO_STRING_SVTOOLS_RTF_DPCOBORDER}, RTF_DPCOBORDER},
+{{OOO_STRING_SVTOOLS_RTF_DPCODABS}, RTF_DPCODABS},
+{{OOO_STRING_SVTOOLS_RTF_DPCODBOTTOM}, RTF_DPCODBOTTOM},
+{{OOO_STRING_SVTOOLS_RTF_DPCODCENTER}, RTF_DPCODCENTER},
+{{OOO_STRING_SVTOOLS_RTF_DPCODTOP}, RTF_DPCODTOP},
+{{OOO_STRING_SVTOOLS_RTF_DPCOLENGTH}, RTF_DPCOLENGTH},
+{{OOO_STRING_SVTOOLS_RTF_DPCOMINUSX}, RTF_DPCOMINUSX},
+{{OOO_STRING_SVTOOLS_RTF_DPCOMINUSY}, RTF_DPCOMINUSY},
+{{OOO_STRING_SVTOOLS_RTF_DPCOOFFSET}, RTF_DPCOOFFSET},
+{{OOO_STRING_SVTOOLS_RTF_DPCOSMARTA}, RTF_DPCOSMARTA},
+{{OOO_STRING_SVTOOLS_RTF_DPCOTDOUBLE}, RTF_DPCOTDOUBLE},
+{{OOO_STRING_SVTOOLS_RTF_DPCOTRIGHT}, RTF_DPCOTRIGHT},
+{{OOO_STRING_SVTOOLS_RTF_DPCOTSINGLE}, RTF_DPCOTSINGLE},
+{{OOO_STRING_SVTOOLS_RTF_DPCOTTRIPLE}, RTF_DPCOTTRIPLE},
+{{OOO_STRING_SVTOOLS_RTF_DPCOUNT}, RTF_DPCOUNT},
+{{OOO_STRING_SVTOOLS_RTF_DPELLIPSE}, RTF_DPELLIPSE},
+{{OOO_STRING_SVTOOLS_RTF_DPENDGROUP}, RTF_DPENDGROUP},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLBGCB}, RTF_DPFILLBGCB},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLBGCG}, RTF_DPFILLBGCG},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLBGCR}, RTF_DPFILLBGCR},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLBGGRAY}, RTF_DPFILLBGGRAY},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLBGPAL}, RTF_DPFILLBGPAL},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLFGCB}, RTF_DPFILLFGCB},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLFGCG}, RTF_DPFILLFGCG},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLFGCR}, RTF_DPFILLFGCR},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLFGGRAY}, RTF_DPFILLFGGRAY},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLFGPAL}, RTF_DPFILLFGPAL},
+{{OOO_STRING_SVTOOLS_RTF_DPFILLPAT}, RTF_DPFILLPAT},
+{{OOO_STRING_SVTOOLS_RTF_DPGROUP}, RTF_DPGROUP},
+{{OOO_STRING_SVTOOLS_RTF_DPLINE}, RTF_DPLINE},
+{{OOO_STRING_SVTOOLS_RTF_DPLINECOB}, RTF_DPLINECOB},
+{{OOO_STRING_SVTOOLS_RTF_DPLINECOG}, RTF_DPLINECOG},
+{{OOO_STRING_SVTOOLS_RTF_DPLINECOR}, RTF_DPLINECOR},
+{{OOO_STRING_SVTOOLS_RTF_DPLINEDADO}, RTF_DPLINEDADO},
+{{OOO_STRING_SVTOOLS_RTF_DPLINEDADODO}, RTF_DPLINEDADODO},
+{{OOO_STRING_SVTOOLS_RTF_DPLINEDASH}, RTF_DPLINEDASH},
+{{OOO_STRING_SVTOOLS_RTF_DPLINEDOT}, RTF_DPLINEDOT},
+{{OOO_STRING_SVTOOLS_RTF_DPLINEGRAY}, RTF_DPLINEGRAY},
+{{OOO_STRING_SVTOOLS_RTF_DPLINEHOLLOW}, RTF_DPLINEHOLLOW},
+{{OOO_STRING_SVTOOLS_RTF_DPLINEPAL}, RTF_DPLINEPAL},
+{{OOO_STRING_SVTOOLS_RTF_DPLINESOLID}, RTF_DPLINESOLID},
+{{OOO_STRING_SVTOOLS_RTF_DPLINEW}, RTF_DPLINEW},
+{{OOO_STRING_SVTOOLS_RTF_DPPOLYCOUNT}, RTF_DPPOLYCOUNT},
+{{OOO_STRING_SVTOOLS_RTF_DPPOLYGON}, RTF_DPPOLYGON},
+{{OOO_STRING_SVTOOLS_RTF_DPPOLYLINE}, RTF_DPPOLYLINE},
+{{OOO_STRING_SVTOOLS_RTF_DPPTX}, RTF_DPPTX},
+{{OOO_STRING_SVTOOLS_RTF_DPPTY}, RTF_DPPTY},
+{{OOO_STRING_SVTOOLS_RTF_DPRECT}, RTF_DPRECT},
+{{OOO_STRING_SVTOOLS_RTF_DPROUNDR}, RTF_DPROUNDR},
+{{OOO_STRING_SVTOOLS_RTF_DPSHADOW}, RTF_DPSHADOW},
+{{OOO_STRING_SVTOOLS_RTF_DPSHADX}, RTF_DPSHADX},
+{{OOO_STRING_SVTOOLS_RTF_DPSHADY}, RTF_DPSHADY},
+{{OOO_STRING_SVTOOLS_RTF_DPTXBX}, RTF_DPTXBX},
+{{OOO_STRING_SVTOOLS_RTF_DPTXBXMAR}, RTF_DPTXBXMAR},
+{{OOO_STRING_SVTOOLS_RTF_DPTXBXTEXT}, RTF_DPTXBXTEXT},
+{{OOO_STRING_SVTOOLS_RTF_DPX}, RTF_DPX},
+{{OOO_STRING_SVTOOLS_RTF_DPXSIZE}, RTF_DPXSIZE},
+{{OOO_STRING_SVTOOLS_RTF_DPY}, RTF_DPY},
+{{OOO_STRING_SVTOOLS_RTF_DPYSIZE}, RTF_DPYSIZE},
+{{OOO_STRING_SVTOOLS_RTF_DS}, RTF_DS},
+{{OOO_STRING_SVTOOLS_RTF_EMSPACE}, RTF_EMSPACE},
+{{OOO_STRING_SVTOOLS_RTF_ENSPACE}, RTF_ENSPACE},
+{{OOO_STRING_SVTOOLS_RTF_FBIDI}, RTF_FBIDI},
+{{OOO_STRING_SVTOOLS_RTF_FET}, RTF_FET},
+{{OOO_STRING_SVTOOLS_RTF_FID}, RTF_FID},
+{{OOO_STRING_SVTOOLS_RTF_FILE}, RTF_FILE},
+{{OOO_STRING_SVTOOLS_RTF_FILETBL}, RTF_FILETBL},
+{{OOO_STRING_SVTOOLS_RTF_FLDALT}, RTF_FLDALT},
+{{OOO_STRING_SVTOOLS_RTF_FNETWORK}, RTF_FNETWORK},
+{{OOO_STRING_SVTOOLS_RTF_FONTEMB}, RTF_FONTEMB},
+{{OOO_STRING_SVTOOLS_RTF_FONTFILE}, RTF_FONTFILE},
+{{OOO_STRING_SVTOOLS_RTF_FORMDISP}, RTF_FORMDISP},
+{{OOO_STRING_SVTOOLS_RTF_FORMPROT}, RTF_FORMPROT},
+{{OOO_STRING_SVTOOLS_RTF_FORMSHADE}, RTF_FORMSHADE},
+{{OOO_STRING_SVTOOLS_RTF_FOSNUM}, RTF_FOSNUM},
+{{OOO_STRING_SVTOOLS_RTF_FRELATIVE}, RTF_FRELATIVE},
+{{OOO_STRING_SVTOOLS_RTF_FTNALT}, RTF_FTNALT},
+{{OOO_STRING_SVTOOLS_RTF_FTNIL}, RTF_FTNIL},
+{{OOO_STRING_SVTOOLS_RTF_FTNNALC}, RTF_FTNNALC},
+{{OOO_STRING_SVTOOLS_RTF_FTNNAR}, RTF_FTNNAR},
+{{OOO_STRING_SVTOOLS_RTF_FTNNAUC}, RTF_FTNNAUC},
+{{OOO_STRING_SVTOOLS_RTF_FTNNCHI}, RTF_FTNNCHI},
+{{OOO_STRING_SVTOOLS_RTF_FTNNRLC}, RTF_FTNNRLC},
+{{OOO_STRING_SVTOOLS_RTF_FTNNRUC}, RTF_FTNNRUC},
+{{OOO_STRING_SVTOOLS_RTF_FTNRSTCONT}, RTF_FTNRSTCONT},
+{{OOO_STRING_SVTOOLS_RTF_FTNRSTPG}, RTF_FTNRSTPG},
+{{OOO_STRING_SVTOOLS_RTF_FTTRUETYPE}, RTF_FTTRUETYPE},
+{{OOO_STRING_SVTOOLS_RTF_FVALIDDOS}, RTF_FVALIDDOS},
+{{OOO_STRING_SVTOOLS_RTF_FVALIDHPFS}, RTF_FVALIDHPFS},
+{{OOO_STRING_SVTOOLS_RTF_FVALIDMAC}, RTF_FVALIDMAC},
+{{OOO_STRING_SVTOOLS_RTF_FVALIDNTFS}, RTF_FVALIDNTFS},
+{{OOO_STRING_SVTOOLS_RTF_HYPHAUTO}, RTF_HYPHAUTO},
+{{OOO_STRING_SVTOOLS_RTF_HYPHCAPS}, RTF_HYPHCAPS},
+{{OOO_STRING_SVTOOLS_RTF_HYPHCONSEC}, RTF_HYPHCONSEC},
+{{OOO_STRING_SVTOOLS_RTF_HYPHPAR}, RTF_HYPHPAR},
+{{OOO_STRING_SVTOOLS_RTF_LINKSELF}, RTF_LINKSELF},
+{{OOO_STRING_SVTOOLS_RTF_LINKSTYLES}, RTF_LINKSTYLES},
+{{OOO_STRING_SVTOOLS_RTF_LTRCH}, RTF_LTRCH},
+{{OOO_STRING_SVTOOLS_RTF_LTRDOC}, RTF_LTRDOC},
+{{OOO_STRING_SVTOOLS_RTF_LTRMARK}, RTF_LTRMARK},
+{{OOO_STRING_SVTOOLS_RTF_LTRPAR}, RTF_LTRPAR},
+{{OOO_STRING_SVTOOLS_RTF_LTRROW}, RTF_LTRROW},
+{{OOO_STRING_SVTOOLS_RTF_LTRSECT}, RTF_LTRSECT},
+{{OOO_STRING_SVTOOLS_RTF_NOCOLBAL}, RTF_NOCOLBAL},
+{{OOO_STRING_SVTOOLS_RTF_NOEXTRASPRL}, RTF_NOEXTRASPRL},
+{{OOO_STRING_SVTOOLS_RTF_NOTABIND}, RTF_NOTABIND},
+{{OOO_STRING_SVTOOLS_RTF_NOWIDCTLPAR}, RTF_NOWIDCTLPAR},
+{{OOO_STRING_SVTOOLS_RTF_OBJALIAS}, RTF_OBJALIAS},
+{{OOO_STRING_SVTOOLS_RTF_OBJALIGN}, RTF_OBJALIGN},
+{{OOO_STRING_SVTOOLS_RTF_OBJAUTLINK}, RTF_OBJAUTLINK},
+{{OOO_STRING_SVTOOLS_RTF_OBJCLASS}, RTF_OBJCLASS},
+{{OOO_STRING_SVTOOLS_RTF_OBJCROPB}, RTF_OBJCROPB},
+{{OOO_STRING_SVTOOLS_RTF_OBJCROPL}, RTF_OBJCROPL},
+{{OOO_STRING_SVTOOLS_RTF_OBJCROPR}, RTF_OBJCROPR},
+{{OOO_STRING_SVTOOLS_RTF_OBJCROPT}, RTF_OBJCROPT},
+{{OOO_STRING_SVTOOLS_RTF_OBJDATA}, RTF_OBJDATA},
+{{OOO_STRING_SVTOOLS_RTF_OBJECT}, RTF_OBJECT},
+{{OOO_STRING_SVTOOLS_RTF_OBJEMB}, RTF_OBJEMB},
+{{OOO_STRING_SVTOOLS_RTF_OBJH}, RTF_OBJH},
+{{OOO_STRING_SVTOOLS_RTF_OBJICEMB}, RTF_OBJICEMB},
+{{OOO_STRING_SVTOOLS_RTF_OBJLINK}, RTF_OBJLINK},
+{{OOO_STRING_SVTOOLS_RTF_OBJLOCK}, RTF_OBJLOCK},
+{{OOO_STRING_SVTOOLS_RTF_OBJNAME}, RTF_OBJNAME},
+{{OOO_STRING_SVTOOLS_RTF_OBJPUB}, RTF_OBJPUB},
+{{OOO_STRING_SVTOOLS_RTF_OBJSCALEX}, RTF_OBJSCALEX},
+{{OOO_STRING_SVTOOLS_RTF_OBJSCALEY}, RTF_OBJSCALEY},
+{{OOO_STRING_SVTOOLS_RTF_OBJSECT}, RTF_OBJSECT},
+{{OOO_STRING_SVTOOLS_RTF_OBJSETSIZE}, RTF_OBJSETSIZE},
+{{OOO_STRING_SVTOOLS_RTF_OBJSUB}, RTF_OBJSUB},
+{{OOO_STRING_SVTOOLS_RTF_OBJTIME}, RTF_OBJTIME},
+{{OOO_STRING_SVTOOLS_RTF_OBJTRANSY}, RTF_OBJTRANSY},
+{{OOO_STRING_SVTOOLS_RTF_OBJUPDATE}, RTF_OBJUPDATE},
+{{OOO_STRING_SVTOOLS_RTF_OBJW}, RTF_OBJW},
+{{OOO_STRING_SVTOOLS_RTF_OTBLRUL}, RTF_OTBLRUL},
+{{OOO_STRING_SVTOOLS_RTF_PGNHN}, RTF_PGNHN},
+{{OOO_STRING_SVTOOLS_RTF_PGNHNSC}, RTF_PGNHNSC},
+{{OOO_STRING_SVTOOLS_RTF_PGNHNSH}, RTF_PGNHNSH},
+{{OOO_STRING_SVTOOLS_RTF_PGNHNSM}, RTF_PGNHNSM},
+{{OOO_STRING_SVTOOLS_RTF_PGNHNSN}, RTF_PGNHNSN},
+{{OOO_STRING_SVTOOLS_RTF_PGNHNSP}, RTF_PGNHNSP},
+{{OOO_STRING_SVTOOLS_RTF_PICBMP}, RTF_PICBMP},
+{{OOO_STRING_SVTOOLS_RTF_PICBPP}, RTF_PICBPP},
+{{OOO_STRING_SVTOOLS_RTF_PN}, RTF_PN},
+{{OOO_STRING_SVTOOLS_RTF_PNACROSS}, RTF_PNACROSS},
+{{OOO_STRING_SVTOOLS_RTF_PNB}, RTF_PNB},
+{{OOO_STRING_SVTOOLS_RTF_PNCAPS}, RTF_PNCAPS},
+{{OOO_STRING_SVTOOLS_RTF_PNCARD}, RTF_PNCARD},
+{{OOO_STRING_SVTOOLS_RTF_PNCF}, RTF_PNCF},
+{{OOO_STRING_SVTOOLS_RTF_PNDEC}, RTF_PNDEC},
+{{OOO_STRING_SVTOOLS_RTF_PNF}, RTF_PNF},
+{{OOO_STRING_SVTOOLS_RTF_PNFS}, RTF_PNFS},
+{{OOO_STRING_SVTOOLS_RTF_PNHANG}, RTF_PNHANG},
+{{OOO_STRING_SVTOOLS_RTF_PNI}, RTF_PNI},
+{{OOO_STRING_SVTOOLS_RTF_PNINDENT}, RTF_PNINDENT},
+{{OOO_STRING_SVTOOLS_RTF_PNLCLTR}, RTF_PNLCLTR},
+{{OOO_STRING_SVTOOLS_RTF_PNLCRM}, RTF_PNLCRM},
+{{OOO_STRING_SVTOOLS_RTF_PNLVL}, RTF_PNLVL},
+{{OOO_STRING_SVTOOLS_RTF_PNLVLBLT}, RTF_PNLVLBLT},
+{{OOO_STRING_SVTOOLS_RTF_PNLVLBODY}, RTF_PNLVLBODY},
+{{OOO_STRING_SVTOOLS_RTF_PNLVLCONT}, RTF_PNLVLCONT},
+{{OOO_STRING_SVTOOLS_RTF_PNNUMONCE}, RTF_PNNUMONCE},
+{{OOO_STRING_SVTOOLS_RTF_PNORD}, RTF_PNORD},
+{{OOO_STRING_SVTOOLS_RTF_PNORDT}, RTF_PNORDT},
+{{OOO_STRING_SVTOOLS_RTF_PNPREV}, RTF_PNPREV},
+{{OOO_STRING_SVTOOLS_RTF_PNQC}, RTF_PNQC},
+{{OOO_STRING_SVTOOLS_RTF_PNQL}, RTF_PNQL},
+{{OOO_STRING_SVTOOLS_RTF_PNQR}, RTF_PNQR},
+{{OOO_STRING_SVTOOLS_RTF_PNRESTART}, RTF_PNRESTART},
+{{OOO_STRING_SVTOOLS_RTF_PNSCAPS}, RTF_PNSCAPS},
+{{OOO_STRING_SVTOOLS_RTF_PNSECLVL}, RTF_PNSECLVL},
+{{OOO_STRING_SVTOOLS_RTF_PNSP}, RTF_PNSP},
+{{OOO_STRING_SVTOOLS_RTF_PNSTART}, RTF_PNSTART},
+{{OOO_STRING_SVTOOLS_RTF_PNSTRIKE}, RTF_PNSTRIKE},
+{{OOO_STRING_SVTOOLS_RTF_PNTEXT}, RTF_PNTEXT},
+{{OOO_STRING_SVTOOLS_RTF_PNTXTA}, RTF_PNTXTA},
+{{OOO_STRING_SVTOOLS_RTF_PNTXTB}, RTF_PNTXTB},
+{{OOO_STRING_SVTOOLS_RTF_PNUCLTR}, RTF_PNUCLTR},
+{{OOO_STRING_SVTOOLS_RTF_PNUCRM}, RTF_PNUCRM},
+{{OOO_STRING_SVTOOLS_RTF_PNUL}, RTF_PNUL},
+{{OOO_STRING_SVTOOLS_RTF_PNULD}, RTF_PNULD},
+{{OOO_STRING_SVTOOLS_RTF_PNULDB}, RTF_PNULDB},
+{{OOO_STRING_SVTOOLS_RTF_PNULNONE}, RTF_PNULNONE},
+{{OOO_STRING_SVTOOLS_RTF_PNULW}, RTF_PNULW},
+{{OOO_STRING_SVTOOLS_RTF_PRCOLBL}, RTF_PRCOLBL},
+{{OOO_STRING_SVTOOLS_RTF_PRINTDATA}, RTF_PRINTDATA},
+{{OOO_STRING_SVTOOLS_RTF_PSZ}, RTF_PSZ},
+{{OOO_STRING_SVTOOLS_RTF_PUBAUTO}, RTF_PUBAUTO},
+{{OOO_STRING_SVTOOLS_RTF_RESULT}, RTF_RESULT},
+{{OOO_STRING_SVTOOLS_RTF_REVAUTH}, RTF_REVAUTH},
+{{OOO_STRING_SVTOOLS_RTF_REVDTTM}, RTF_REVDTTM},
+{{OOO_STRING_SVTOOLS_RTF_REVPROT}, RTF_REVPROT},
+{{OOO_STRING_SVTOOLS_RTF_REVTBL}, RTF_REVTBL},
+{{OOO_STRING_SVTOOLS_RTF_RSLTBMP}, RTF_RSLTBMP},
+{{OOO_STRING_SVTOOLS_RTF_RSLTMERGE}, RTF_RSLTMERGE},
+{{OOO_STRING_SVTOOLS_RTF_RSLTPICT}, RTF_RSLTPICT},
+{{OOO_STRING_SVTOOLS_RTF_RSLTRTF}, RTF_RSLTRTF},
+{{OOO_STRING_SVTOOLS_RTF_RSLTTXT}, RTF_RSLTTXT},
+{{OOO_STRING_SVTOOLS_RTF_RTLCH}, RTF_RTLCH},
+{{OOO_STRING_SVTOOLS_RTF_RTLDOC}, RTF_RTLDOC},
+{{OOO_STRING_SVTOOLS_RTF_RTLMARK}, RTF_RTLMARK},
+{{OOO_STRING_SVTOOLS_RTF_RTLPAR}, RTF_RTLPAR},
+{{OOO_STRING_SVTOOLS_RTF_RTLROW}, RTF_RTLROW},
+{{OOO_STRING_SVTOOLS_RTF_RTLSECT}, RTF_RTLSECT},
+{{OOO_STRING_SVTOOLS_RTF_SEC}, RTF_SEC},
+{{OOO_STRING_SVTOOLS_RTF_SECTNUM}, RTF_SECTNUM},
+{{OOO_STRING_SVTOOLS_RTF_SECTUNLOCKED}, RTF_SECTUNLOCKED},
+{{OOO_STRING_SVTOOLS_RTF_SLMULT}, RTF_SLMULT},
+{{OOO_STRING_SVTOOLS_RTF_SOFTCOL}, RTF_SOFTCOL},
+{{OOO_STRING_SVTOOLS_RTF_SOFTLHEIGHT}, RTF_SOFTLHEIGHT},
+{{OOO_STRING_SVTOOLS_RTF_SOFTLINE}, RTF_SOFTLINE},
+{{OOO_STRING_SVTOOLS_RTF_SOFTPAGE}, RTF_SOFTPAGE},
+{{OOO_STRING_SVTOOLS_RTF_SPRSSPBF}, RTF_SPRSSPBF},
+{{OOO_STRING_SVTOOLS_RTF_SPRSTSP}, RTF_SPRSTSP},
+{{OOO_STRING_SVTOOLS_RTF_SUBDOCUMENT}, RTF_SUBDOCUMENT},
+{{OOO_STRING_SVTOOLS_RTF_SWPBDR}, RTF_SWPBDR},
+{{OOO_STRING_SVTOOLS_RTF_TCN}, RTF_TCN},
+{{OOO_STRING_SVTOOLS_RTF_TRANSMF}, RTF_TRANSMF},
+{{OOO_STRING_SVTOOLS_RTF_TRBRDRB}, RTF_TRBRDRB},
+{{OOO_STRING_SVTOOLS_RTF_TRBRDRH}, RTF_TRBRDRH},
+{{OOO_STRING_SVTOOLS_RTF_TRBRDRL}, RTF_TRBRDRL},
+{{OOO_STRING_SVTOOLS_RTF_TRBRDRR}, RTF_TRBRDRR},
+{{OOO_STRING_SVTOOLS_RTF_TRBRDRT}, RTF_TRBRDRT},
+{{OOO_STRING_SVTOOLS_RTF_TRBRDRV}, RTF_TRBRDRV},
+{{OOO_STRING_SVTOOLS_RTF_TRHDR}, RTF_TRHDR},
+{{OOO_STRING_SVTOOLS_RTF_TRKEEP}, RTF_TRKEEP},
{{OOO_STRING_SVTOOLS_RTF_TRPADDB}, RTF_TRPADDB},
{{OOO_STRING_SVTOOLS_RTF_TRPADDL}, RTF_TRPADDL},
{{OOO_STRING_SVTOOLS_RTF_TRPADDR}, RTF_TRPADDR},
@@ -742,315 +742,315 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_TRPADDFT}, RTF_TRPADDFT},
-{{OOO_STRING_SVTOOLS_RTF_WRAPTRSP}, RTF_WRAPTRSP},
-{{OOO_STRING_SVTOOLS_RTF_XEF}, RTF_XEF},
-{{OOO_STRING_SVTOOLS_RTF_ZWJ}, RTF_ZWJ},
-{{OOO_STRING_SVTOOLS_RTF_ZWNJ}, RTF_ZWNJ},
+{{OOO_STRING_SVTOOLS_RTF_WRAPTRSP}, RTF_WRAPTRSP},
+{{OOO_STRING_SVTOOLS_RTF_XEF}, RTF_XEF},
+{{OOO_STRING_SVTOOLS_RTF_ZWJ}, RTF_ZWJ},
+{{OOO_STRING_SVTOOLS_RTF_ZWNJ}, RTF_ZWNJ},
-{{OOO_STRING_SVTOOLS_RTF_ABSLOCK}, RTF_ABSLOCK},
-{{OOO_STRING_SVTOOLS_RTF_ADJUSTRIGHT}, RTF_ADJUSTRIGHT},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNCHOSUNG}, RTF_AFTNNCHOSUNG},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNCNUM}, RTF_AFTNNCNUM},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNDBAR}, RTF_AFTNNDBAR},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNDBNUM}, RTF_AFTNNDBNUM},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNDBNUMD}, RTF_AFTNNDBNUMD},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNDBNUMK}, RTF_AFTNNDBNUMK},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNDBNUMT}, RTF_AFTNNDBNUMT},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNGANADA}, RTF_AFTNNGANADA},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNGBNUM}, RTF_AFTNNGBNUM},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNGBNUMD}, RTF_AFTNNGBNUMD},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNGBNUMK}, RTF_AFTNNGBNUMK},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNGBNUML}, RTF_AFTNNGBNUML},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNZODIAC}, RTF_AFTNNZODIAC},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNZODIACD}, RTF_AFTNNZODIACD},
-{{OOO_STRING_SVTOOLS_RTF_AFTNNZODIACL}, RTF_AFTNNZODIACL},
-{{OOO_STRING_SVTOOLS_RTF_ANIMTEXT}, RTF_ANIMTEXT},
-{{OOO_STRING_SVTOOLS_RTF_ANSICPG}, RTF_ANSICPG},
-{{OOO_STRING_SVTOOLS_RTF_BACKGROUND}, RTF_BACKGROUND},
-{{OOO_STRING_SVTOOLS_RTF_BDBFHDR}, RTF_BDBFHDR},
-{{OOO_STRING_SVTOOLS_RTF_BLIPTAG}, RTF_BLIPTAG},
-{{OOO_STRING_SVTOOLS_RTF_BLIPUID}, RTF_BLIPUID},
-{{OOO_STRING_SVTOOLS_RTF_BLIPUPI}, RTF_BLIPUPI},
-{{OOO_STRING_SVTOOLS_RTF_BRDRART}, RTF_BRDRART},
-{{OOO_STRING_SVTOOLS_RTF_BRDRDASHD}, RTF_BRDRDASHD},
-{{OOO_STRING_SVTOOLS_RTF_BRDRDASHDD}, RTF_BRDRDASHDD},
+{{OOO_STRING_SVTOOLS_RTF_ABSLOCK}, RTF_ABSLOCK},
+{{OOO_STRING_SVTOOLS_RTF_ADJUSTRIGHT}, RTF_ADJUSTRIGHT},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNCHOSUNG}, RTF_AFTNNCHOSUNG},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNCNUM}, RTF_AFTNNCNUM},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNDBAR}, RTF_AFTNNDBAR},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNDBNUM}, RTF_AFTNNDBNUM},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNDBNUMD}, RTF_AFTNNDBNUMD},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNDBNUMK}, RTF_AFTNNDBNUMK},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNDBNUMT}, RTF_AFTNNDBNUMT},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNGANADA}, RTF_AFTNNGANADA},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNGBNUM}, RTF_AFTNNGBNUM},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNGBNUMD}, RTF_AFTNNGBNUMD},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNGBNUMK}, RTF_AFTNNGBNUMK},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNGBNUML}, RTF_AFTNNGBNUML},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNZODIAC}, RTF_AFTNNZODIAC},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNZODIACD}, RTF_AFTNNZODIACD},
+{{OOO_STRING_SVTOOLS_RTF_AFTNNZODIACL}, RTF_AFTNNZODIACL},
+{{OOO_STRING_SVTOOLS_RTF_ANIMTEXT}, RTF_ANIMTEXT},
+{{OOO_STRING_SVTOOLS_RTF_ANSICPG}, RTF_ANSICPG},
+{{OOO_STRING_SVTOOLS_RTF_BACKGROUND}, RTF_BACKGROUND},
+{{OOO_STRING_SVTOOLS_RTF_BDBFHDR}, RTF_BDBFHDR},
+{{OOO_STRING_SVTOOLS_RTF_BLIPTAG}, RTF_BLIPTAG},
+{{OOO_STRING_SVTOOLS_RTF_BLIPUID}, RTF_BLIPUID},
+{{OOO_STRING_SVTOOLS_RTF_BLIPUPI}, RTF_BLIPUPI},
+{{OOO_STRING_SVTOOLS_RTF_BRDRART}, RTF_BRDRART},
+{{OOO_STRING_SVTOOLS_RTF_BRDRDASHD}, RTF_BRDRDASHD},
+{{OOO_STRING_SVTOOLS_RTF_BRDRDASHDD}, RTF_BRDRDASHDD},
{{OOO_STRING_SVTOOLS_RTF_BRDRDASHDOTSTR},RTF_BRDRDASHDOTSTR},
-{{OOO_STRING_SVTOOLS_RTF_BRDRDASHSM}, RTF_BRDRDASHSM},
-{{OOO_STRING_SVTOOLS_RTF_BRDREMBOSS}, RTF_BRDREMBOSS},
-{{OOO_STRING_SVTOOLS_RTF_BRDRENGRAVE}, RTF_BRDRENGRAVE},
-{{OOO_STRING_SVTOOLS_RTF_BRDRFRAME}, RTF_BRDRFRAME},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTHTNLG}, RTF_BRDRTHTNLG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTHTNMG}, RTF_BRDRTHTNMG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTHTNSG}, RTF_BRDRTHTNSG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHLG}, RTF_BRDRTNTHLG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHMG}, RTF_BRDRTNTHMG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHSG}, RTF_BRDRTNTHSG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHTNLG}, RTF_BRDRTNTHTNLG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHTNMG}, RTF_BRDRTNTHTNMG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHTNSG}, RTF_BRDRTNTHTNSG},
-{{OOO_STRING_SVTOOLS_RTF_BRDRTRIPLE}, RTF_BRDRTRIPLE},
-{{OOO_STRING_SVTOOLS_RTF_BRDRWAVY}, RTF_BRDRWAVY},
-{{OOO_STRING_SVTOOLS_RTF_BRDRWAVYDB}, RTF_BRDRWAVYDB},
-{{OOO_STRING_SVTOOLS_RTF_CATEGORY}, RTF_CATEGORY},
-{{OOO_STRING_SVTOOLS_RTF_CGRID}, RTF_CGRID},
-{{OOO_STRING_SVTOOLS_RTF_CHARSCALEX}, RTF_CHARSCALEX},
-{{OOO_STRING_SVTOOLS_RTF_CHBGBDIAG}, RTF_CHBGBDIAG},
-{{OOO_STRING_SVTOOLS_RTF_CHBGCROSS}, RTF_CHBGCROSS},
-{{OOO_STRING_SVTOOLS_RTF_CHBGDCROSS}, RTF_CHBGDCROSS},
-{{OOO_STRING_SVTOOLS_RTF_CHBGDKBDIAG}, RTF_CHBGDKBDIAG},
-{{OOO_STRING_SVTOOLS_RTF_CHBGDKCROSS}, RTF_CHBGDKCROSS},
-{{OOO_STRING_SVTOOLS_RTF_CHBGDKDCROSS}, RTF_CHBGDKDCROSS},
-{{OOO_STRING_SVTOOLS_RTF_CHBGDKFDIAG}, RTF_CHBGDKFDIAG},
-{{OOO_STRING_SVTOOLS_RTF_CHBGDKHORIZ}, RTF_CHBGDKHORIZ},
-{{OOO_STRING_SVTOOLS_RTF_CHBGDKVERT}, RTF_CHBGDKVERT},
-{{OOO_STRING_SVTOOLS_RTF_CHBGFDIAG}, RTF_CHBGFDIAG},
-{{OOO_STRING_SVTOOLS_RTF_CHBGHORIZ}, RTF_CHBGHORIZ},
-{{OOO_STRING_SVTOOLS_RTF_CHBGVERT}, RTF_CHBGVERT},
-{{OOO_STRING_SVTOOLS_RTF_CHBRDR}, RTF_CHBRDR},
-{{OOO_STRING_SVTOOLS_RTF_CHCBPAT}, RTF_CHCBPAT},
-{{OOO_STRING_SVTOOLS_RTF_CHCFPAT}, RTF_CHCFPAT},
-{{OOO_STRING_SVTOOLS_RTF_CHSHDNG}, RTF_CHSHDNG},
-{{OOO_STRING_SVTOOLS_RTF_CLTXLRTB}, RTF_CLTXLRTB},
-{{OOO_STRING_SVTOOLS_RTF_CLTXTBRL}, RTF_CLTXTBRL},
-{{OOO_STRING_SVTOOLS_RTF_CLVERTALB}, RTF_CLVERTALB},
-{{OOO_STRING_SVTOOLS_RTF_CLVERTALC}, RTF_CLVERTALC},
-{{OOO_STRING_SVTOOLS_RTF_CLVERTALT}, RTF_CLVERTALT},
-{{OOO_STRING_SVTOOLS_RTF_CLVMGF}, RTF_CLVMGF},
-{{OOO_STRING_SVTOOLS_RTF_CLVMRG}, RTF_CLVMRG},
-{{OOO_STRING_SVTOOLS_RTF_CLTXTBRLV}, RTF_CLTXTBRLV},
-{{OOO_STRING_SVTOOLS_RTF_CLTXBTLR}, RTF_CLTXBTLR},
-{{OOO_STRING_SVTOOLS_RTF_CLTXLRTBV}, RTF_CLTXLRTBV},
-{{OOO_STRING_SVTOOLS_RTF_COMPANY}, RTF_COMPANY},
-{{OOO_STRING_SVTOOLS_RTF_CRAUTH}, RTF_CRAUTH},
-{{OOO_STRING_SVTOOLS_RTF_CRDATE}, RTF_CRDATE},
-{{OOO_STRING_SVTOOLS_RTF_DATE}, RTF_DATE},
-{{OOO_STRING_SVTOOLS_RTF_DEFLANGFE}, RTF_DEFLANGFE},
-{{OOO_STRING_SVTOOLS_RTF_DFRAUTH}, RTF_DFRAUTH},
-{{OOO_STRING_SVTOOLS_RTF_DFRDATE}, RTF_DFRDATE},
-{{OOO_STRING_SVTOOLS_RTF_DFRSTART}, RTF_DFRSTART},
-{{OOO_STRING_SVTOOLS_RTF_DFRSTOP}, RTF_DFRSTOP},
-{{OOO_STRING_SVTOOLS_RTF_DFRXST}, RTF_DFRXST},
-{{OOO_STRING_SVTOOLS_RTF_DGMARGIN}, RTF_DGMARGIN},
-{{OOO_STRING_SVTOOLS_RTF_DNTBLNSBDB}, RTF_DNTBLNSBDB},
-{{OOO_STRING_SVTOOLS_RTF_DOCTYPE}, RTF_DOCTYPE},
-{{OOO_STRING_SVTOOLS_RTF_DOCVAR}, RTF_DOCVAR},
-{{OOO_STRING_SVTOOLS_RTF_DPCODESCENT}, RTF_DPCODESCENT},
-{{OOO_STRING_SVTOOLS_RTF_EMBO}, RTF_EMBO},
-{{OOO_STRING_SVTOOLS_RTF_EMFBLIP}, RTF_EMFBLIP},
-{{OOO_STRING_SVTOOLS_RTF_EXPSHRTN}, RTF_EXPSHRTN},
-{{OOO_STRING_SVTOOLS_RTF_FAAUTO}, RTF_FAAUTO},
-{{OOO_STRING_SVTOOLS_RTF_FBIAS}, RTF_FBIAS},
-{{OOO_STRING_SVTOOLS_RTF_FFDEFRES}, RTF_FFDEFRES},
-{{OOO_STRING_SVTOOLS_RTF_FFDEFTEXT}, RTF_FFDEFTEXT},
-{{OOO_STRING_SVTOOLS_RTF_FFENTRYMCR}, RTF_FFENTRYMCR},
-{{OOO_STRING_SVTOOLS_RTF_FFEXITMCR}, RTF_FFEXITMCR},
-{{OOO_STRING_SVTOOLS_RTF_FFFORMAT}, RTF_FFFORMAT},
-{{OOO_STRING_SVTOOLS_RTF_FFHASLISTBOX}, RTF_FFHASLISTBOX},
-{{OOO_STRING_SVTOOLS_RTF_FFHELPTEXT}, RTF_FFHELPTEXT},
-{{OOO_STRING_SVTOOLS_RTF_FFHPS}, RTF_FFHPS},
-{{OOO_STRING_SVTOOLS_RTF_FFL}, RTF_FFL},
-{{OOO_STRING_SVTOOLS_RTF_FFMAXLEN}, RTF_FFMAXLEN},
-{{OOO_STRING_SVTOOLS_RTF_FFNAME}, RTF_FFNAME},
-{{OOO_STRING_SVTOOLS_RTF_FFOWNHELP}, RTF_FFOWNHELP},
-{{OOO_STRING_SVTOOLS_RTF_FFOWNSTAT}, RTF_FFOWNSTAT},
-{{OOO_STRING_SVTOOLS_RTF_FFPROT}, RTF_FFPROT},
-{{OOO_STRING_SVTOOLS_RTF_FFRECALC}, RTF_FFRECALC},
-{{OOO_STRING_SVTOOLS_RTF_FFRES}, RTF_FFRES},
-{{OOO_STRING_SVTOOLS_RTF_FFSIZE}, RTF_FFSIZE},
-{{OOO_STRING_SVTOOLS_RTF_FFSTATTEXT}, RTF_FFSTATTEXT},
-{{OOO_STRING_SVTOOLS_RTF_FFTYPE}, RTF_FFTYPE},
-{{OOO_STRING_SVTOOLS_RTF_FFTYPETXT}, RTF_FFTYPETXT},
-{{OOO_STRING_SVTOOLS_RTF_FLDTYPE}, RTF_FLDTYPE},
-{{OOO_STRING_SVTOOLS_RTF_FNAME}, RTF_FNAME},
-{{OOO_STRING_SVTOOLS_RTF_FORMFIELD}, RTF_FORMFIELD},
-{{OOO_STRING_SVTOOLS_RTF_FROMTEXT}, RTF_FROMTEXT},
-{{OOO_STRING_SVTOOLS_RTF_FTNNCHOSUNG}, RTF_FTNNCHOSUNG},
-{{OOO_STRING_SVTOOLS_RTF_FTNNCNUM}, RTF_FTNNCNUM},
-{{OOO_STRING_SVTOOLS_RTF_FTNNDBAR}, RTF_FTNNDBAR},
-{{OOO_STRING_SVTOOLS_RTF_FTNNDBNUM}, RTF_FTNNDBNUM},
-{{OOO_STRING_SVTOOLS_RTF_FTNNDBNUMD}, RTF_FTNNDBNUMD},
-{{OOO_STRING_SVTOOLS_RTF_FTNNDBNUMK}, RTF_FTNNDBNUMK},
-{{OOO_STRING_SVTOOLS_RTF_FTNNDBNUMT}, RTF_FTNNDBNUMT},
-{{OOO_STRING_SVTOOLS_RTF_FTNNGANADA}, RTF_FTNNGANADA},
-{{OOO_STRING_SVTOOLS_RTF_FTNNGBNUM}, RTF_FTNNGBNUM},
-{{OOO_STRING_SVTOOLS_RTF_FTNNGBNUMD}, RTF_FTNNGBNUMD},
-{{OOO_STRING_SVTOOLS_RTF_FTNNGBNUMK}, RTF_FTNNGBNUMK},
-{{OOO_STRING_SVTOOLS_RTF_FTNNGBNUML}, RTF_FTNNGBNUML},
-{{OOO_STRING_SVTOOLS_RTF_FTNNZODIAC}, RTF_FTNNZODIAC},
-{{OOO_STRING_SVTOOLS_RTF_FTNNZODIACD}, RTF_FTNNZODIACD},
-{{OOO_STRING_SVTOOLS_RTF_FTNNZODIACL}, RTF_FTNNZODIACL},
-{{OOO_STRING_SVTOOLS_RTF_G}, RTF_G},
-{{OOO_STRING_SVTOOLS_RTF_GCW}, RTF_GCW},
-{{OOO_STRING_SVTOOLS_RTF_GRIDTBL}, RTF_GRIDTBL},
-{{OOO_STRING_SVTOOLS_RTF_HIGHLIGHT}, RTF_HIGHLIGHT},
-{{OOO_STRING_SVTOOLS_RTF_HLFR}, RTF_HLFR},
-{{OOO_STRING_SVTOOLS_RTF_HLINKBASE}, RTF_HLINKBASE},
-{{OOO_STRING_SVTOOLS_RTF_HLLOC}, RTF_HLLOC},
-{{OOO_STRING_SVTOOLS_RTF_HLSRC}, RTF_HLSRC},
-{{OOO_STRING_SVTOOLS_RTF_ILVL}, RTF_ILVL},
-{{OOO_STRING_SVTOOLS_RTF_IMPR}, RTF_IMPR},
-{{OOO_STRING_SVTOOLS_RTF_JPEGBLIP}, RTF_JPEGBLIP},
-{{OOO_STRING_SVTOOLS_RTF_LEVELFOLLOW}, RTF_LEVELFOLLOW},
-{{OOO_STRING_SVTOOLS_RTF_LEVELINDENT}, RTF_LEVELINDENT},
-{{OOO_STRING_SVTOOLS_RTF_LEVELJC}, RTF_LEVELJC},
-{{OOO_STRING_SVTOOLS_RTF_LEVELLEGAL}, RTF_LEVELLEGAL},
-{{OOO_STRING_SVTOOLS_RTF_LEVELNFC}, RTF_LEVELNFC},
+{{OOO_STRING_SVTOOLS_RTF_BRDRDASHSM}, RTF_BRDRDASHSM},
+{{OOO_STRING_SVTOOLS_RTF_BRDREMBOSS}, RTF_BRDREMBOSS},
+{{OOO_STRING_SVTOOLS_RTF_BRDRENGRAVE}, RTF_BRDRENGRAVE},
+{{OOO_STRING_SVTOOLS_RTF_BRDRFRAME}, RTF_BRDRFRAME},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTHTNLG}, RTF_BRDRTHTNLG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTHTNMG}, RTF_BRDRTHTNMG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTHTNSG}, RTF_BRDRTHTNSG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHLG}, RTF_BRDRTNTHLG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHMG}, RTF_BRDRTNTHMG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHSG}, RTF_BRDRTNTHSG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHTNLG}, RTF_BRDRTNTHTNLG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHTNMG}, RTF_BRDRTNTHTNMG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTNTHTNSG}, RTF_BRDRTNTHTNSG},
+{{OOO_STRING_SVTOOLS_RTF_BRDRTRIPLE}, RTF_BRDRTRIPLE},
+{{OOO_STRING_SVTOOLS_RTF_BRDRWAVY}, RTF_BRDRWAVY},
+{{OOO_STRING_SVTOOLS_RTF_BRDRWAVYDB}, RTF_BRDRWAVYDB},
+{{OOO_STRING_SVTOOLS_RTF_CATEGORY}, RTF_CATEGORY},
+{{OOO_STRING_SVTOOLS_RTF_CGRID}, RTF_CGRID},
+{{OOO_STRING_SVTOOLS_RTF_CHARSCALEX}, RTF_CHARSCALEX},
+{{OOO_STRING_SVTOOLS_RTF_CHBGBDIAG}, RTF_CHBGBDIAG},
+{{OOO_STRING_SVTOOLS_RTF_CHBGCROSS}, RTF_CHBGCROSS},
+{{OOO_STRING_SVTOOLS_RTF_CHBGDCROSS}, RTF_CHBGDCROSS},
+{{OOO_STRING_SVTOOLS_RTF_CHBGDKBDIAG}, RTF_CHBGDKBDIAG},
+{{OOO_STRING_SVTOOLS_RTF_CHBGDKCROSS}, RTF_CHBGDKCROSS},
+{{OOO_STRING_SVTOOLS_RTF_CHBGDKDCROSS}, RTF_CHBGDKDCROSS},
+{{OOO_STRING_SVTOOLS_RTF_CHBGDKFDIAG}, RTF_CHBGDKFDIAG},
+{{OOO_STRING_SVTOOLS_RTF_CHBGDKHORIZ}, RTF_CHBGDKHORIZ},
+{{OOO_STRING_SVTOOLS_RTF_CHBGDKVERT}, RTF_CHBGDKVERT},
+{{OOO_STRING_SVTOOLS_RTF_CHBGFDIAG}, RTF_CHBGFDIAG},
+{{OOO_STRING_SVTOOLS_RTF_CHBGHORIZ}, RTF_CHBGHORIZ},
+{{OOO_STRING_SVTOOLS_RTF_CHBGVERT}, RTF_CHBGVERT},
+{{OOO_STRING_SVTOOLS_RTF_CHBRDR}, RTF_CHBRDR},
+{{OOO_STRING_SVTOOLS_RTF_CHCBPAT}, RTF_CHCBPAT},
+{{OOO_STRING_SVTOOLS_RTF_CHCFPAT}, RTF_CHCFPAT},
+{{OOO_STRING_SVTOOLS_RTF_CHSHDNG}, RTF_CHSHDNG},
+{{OOO_STRING_SVTOOLS_RTF_CLTXLRTB}, RTF_CLTXLRTB},
+{{OOO_STRING_SVTOOLS_RTF_CLTXTBRL}, RTF_CLTXTBRL},
+{{OOO_STRING_SVTOOLS_RTF_CLVERTALB}, RTF_CLVERTALB},
+{{OOO_STRING_SVTOOLS_RTF_CLVERTALC}, RTF_CLVERTALC},
+{{OOO_STRING_SVTOOLS_RTF_CLVERTALT}, RTF_CLVERTALT},
+{{OOO_STRING_SVTOOLS_RTF_CLVMGF}, RTF_CLVMGF},
+{{OOO_STRING_SVTOOLS_RTF_CLVMRG}, RTF_CLVMRG},
+{{OOO_STRING_SVTOOLS_RTF_CLTXTBRLV}, RTF_CLTXTBRLV},
+{{OOO_STRING_SVTOOLS_RTF_CLTXBTLR}, RTF_CLTXBTLR},
+{{OOO_STRING_SVTOOLS_RTF_CLTXLRTBV}, RTF_CLTXLRTBV},
+{{OOO_STRING_SVTOOLS_RTF_COMPANY}, RTF_COMPANY},
+{{OOO_STRING_SVTOOLS_RTF_CRAUTH}, RTF_CRAUTH},
+{{OOO_STRING_SVTOOLS_RTF_CRDATE}, RTF_CRDATE},
+{{OOO_STRING_SVTOOLS_RTF_DATE}, RTF_DATE},
+{{OOO_STRING_SVTOOLS_RTF_DEFLANGFE}, RTF_DEFLANGFE},
+{{OOO_STRING_SVTOOLS_RTF_DFRAUTH}, RTF_DFRAUTH},
+{{OOO_STRING_SVTOOLS_RTF_DFRDATE}, RTF_DFRDATE},
+{{OOO_STRING_SVTOOLS_RTF_DFRSTART}, RTF_DFRSTART},
+{{OOO_STRING_SVTOOLS_RTF_DFRSTOP}, RTF_DFRSTOP},
+{{OOO_STRING_SVTOOLS_RTF_DFRXST}, RTF_DFRXST},
+{{OOO_STRING_SVTOOLS_RTF_DGMARGIN}, RTF_DGMARGIN},
+{{OOO_STRING_SVTOOLS_RTF_DNTBLNSBDB}, RTF_DNTBLNSBDB},
+{{OOO_STRING_SVTOOLS_RTF_DOCTYPE}, RTF_DOCTYPE},
+{{OOO_STRING_SVTOOLS_RTF_DOCVAR}, RTF_DOCVAR},
+{{OOO_STRING_SVTOOLS_RTF_DPCODESCENT}, RTF_DPCODESCENT},
+{{OOO_STRING_SVTOOLS_RTF_EMBO}, RTF_EMBO},
+{{OOO_STRING_SVTOOLS_RTF_EMFBLIP}, RTF_EMFBLIP},
+{{OOO_STRING_SVTOOLS_RTF_EXPSHRTN}, RTF_EXPSHRTN},
+{{OOO_STRING_SVTOOLS_RTF_FAAUTO}, RTF_FAAUTO},
+{{OOO_STRING_SVTOOLS_RTF_FBIAS}, RTF_FBIAS},
+{{OOO_STRING_SVTOOLS_RTF_FFDEFRES}, RTF_FFDEFRES},
+{{OOO_STRING_SVTOOLS_RTF_FFDEFTEXT}, RTF_FFDEFTEXT},
+{{OOO_STRING_SVTOOLS_RTF_FFENTRYMCR}, RTF_FFENTRYMCR},
+{{OOO_STRING_SVTOOLS_RTF_FFEXITMCR}, RTF_FFEXITMCR},
+{{OOO_STRING_SVTOOLS_RTF_FFFORMAT}, RTF_FFFORMAT},
+{{OOO_STRING_SVTOOLS_RTF_FFHASLISTBOX}, RTF_FFHASLISTBOX},
+{{OOO_STRING_SVTOOLS_RTF_FFHELPTEXT}, RTF_FFHELPTEXT},
+{{OOO_STRING_SVTOOLS_RTF_FFHPS}, RTF_FFHPS},
+{{OOO_STRING_SVTOOLS_RTF_FFL}, RTF_FFL},
+{{OOO_STRING_SVTOOLS_RTF_FFMAXLEN}, RTF_FFMAXLEN},
+{{OOO_STRING_SVTOOLS_RTF_FFNAME}, RTF_FFNAME},
+{{OOO_STRING_SVTOOLS_RTF_FFOWNHELP}, RTF_FFOWNHELP},
+{{OOO_STRING_SVTOOLS_RTF_FFOWNSTAT}, RTF_FFOWNSTAT},
+{{OOO_STRING_SVTOOLS_RTF_FFPROT}, RTF_FFPROT},
+{{OOO_STRING_SVTOOLS_RTF_FFRECALC}, RTF_FFRECALC},
+{{OOO_STRING_SVTOOLS_RTF_FFRES}, RTF_FFRES},
+{{OOO_STRING_SVTOOLS_RTF_FFSIZE}, RTF_FFSIZE},
+{{OOO_STRING_SVTOOLS_RTF_FFSTATTEXT}, RTF_FFSTATTEXT},
+{{OOO_STRING_SVTOOLS_RTF_FFTYPE}, RTF_FFTYPE},
+{{OOO_STRING_SVTOOLS_RTF_FFTYPETXT}, RTF_FFTYPETXT},
+{{OOO_STRING_SVTOOLS_RTF_FLDTYPE}, RTF_FLDTYPE},
+{{OOO_STRING_SVTOOLS_RTF_FNAME}, RTF_FNAME},
+{{OOO_STRING_SVTOOLS_RTF_FORMFIELD}, RTF_FORMFIELD},
+{{OOO_STRING_SVTOOLS_RTF_FROMTEXT}, RTF_FROMTEXT},
+{{OOO_STRING_SVTOOLS_RTF_FTNNCHOSUNG}, RTF_FTNNCHOSUNG},
+{{OOO_STRING_SVTOOLS_RTF_FTNNCNUM}, RTF_FTNNCNUM},
+{{OOO_STRING_SVTOOLS_RTF_FTNNDBAR}, RTF_FTNNDBAR},
+{{OOO_STRING_SVTOOLS_RTF_FTNNDBNUM}, RTF_FTNNDBNUM},
+{{OOO_STRING_SVTOOLS_RTF_FTNNDBNUMD}, RTF_FTNNDBNUMD},
+{{OOO_STRING_SVTOOLS_RTF_FTNNDBNUMK}, RTF_FTNNDBNUMK},
+{{OOO_STRING_SVTOOLS_RTF_FTNNDBNUMT}, RTF_FTNNDBNUMT},
+{{OOO_STRING_SVTOOLS_RTF_FTNNGANADA}, RTF_FTNNGANADA},
+{{OOO_STRING_SVTOOLS_RTF_FTNNGBNUM}, RTF_FTNNGBNUM},
+{{OOO_STRING_SVTOOLS_RTF_FTNNGBNUMD}, RTF_FTNNGBNUMD},
+{{OOO_STRING_SVTOOLS_RTF_FTNNGBNUMK}, RTF_FTNNGBNUMK},
+{{OOO_STRING_SVTOOLS_RTF_FTNNGBNUML}, RTF_FTNNGBNUML},
+{{OOO_STRING_SVTOOLS_RTF_FTNNZODIAC}, RTF_FTNNZODIAC},
+{{OOO_STRING_SVTOOLS_RTF_FTNNZODIACD}, RTF_FTNNZODIACD},
+{{OOO_STRING_SVTOOLS_RTF_FTNNZODIACL}, RTF_FTNNZODIACL},
+{{OOO_STRING_SVTOOLS_RTF_G}, RTF_G},
+{{OOO_STRING_SVTOOLS_RTF_GCW}, RTF_GCW},
+{{OOO_STRING_SVTOOLS_RTF_GRIDTBL}, RTF_GRIDTBL},
+{{OOO_STRING_SVTOOLS_RTF_HIGHLIGHT}, RTF_HIGHLIGHT},
+{{OOO_STRING_SVTOOLS_RTF_HLFR}, RTF_HLFR},
+{{OOO_STRING_SVTOOLS_RTF_HLINKBASE}, RTF_HLINKBASE},
+{{OOO_STRING_SVTOOLS_RTF_HLLOC}, RTF_HLLOC},
+{{OOO_STRING_SVTOOLS_RTF_HLSRC}, RTF_HLSRC},
+{{OOO_STRING_SVTOOLS_RTF_ILVL}, RTF_ILVL},
+{{OOO_STRING_SVTOOLS_RTF_IMPR}, RTF_IMPR},
+{{OOO_STRING_SVTOOLS_RTF_JPEGBLIP}, RTF_JPEGBLIP},
+{{OOO_STRING_SVTOOLS_RTF_LEVELFOLLOW}, RTF_LEVELFOLLOW},
+{{OOO_STRING_SVTOOLS_RTF_LEVELINDENT}, RTF_LEVELINDENT},
+{{OOO_STRING_SVTOOLS_RTF_LEVELJC}, RTF_LEVELJC},
+{{OOO_STRING_SVTOOLS_RTF_LEVELLEGAL}, RTF_LEVELLEGAL},
+{{OOO_STRING_SVTOOLS_RTF_LEVELNFC}, RTF_LEVELNFC},
{{OOO_STRING_SVTOOLS_RTF_LEVELNORESTART},RTF_LEVELNORESTART},
-{{OOO_STRING_SVTOOLS_RTF_LEVELNUMBERS}, RTF_LEVELNUMBERS},
-{{OOO_STRING_SVTOOLS_RTF_LEVELOLD}, RTF_LEVELOLD},
-{{OOO_STRING_SVTOOLS_RTF_LEVELPREV}, RTF_LEVELPREV},
+{{OOO_STRING_SVTOOLS_RTF_LEVELNUMBERS}, RTF_LEVELNUMBERS},
+{{OOO_STRING_SVTOOLS_RTF_LEVELOLD}, RTF_LEVELOLD},
+{{OOO_STRING_SVTOOLS_RTF_LEVELPREV}, RTF_LEVELPREV},
{{OOO_STRING_SVTOOLS_RTF_LEVELPREVSPACE},RTF_LEVELPREVSPACE},
-{{OOO_STRING_SVTOOLS_RTF_LEVELSPACE}, RTF_LEVELSPACE},
-{{OOO_STRING_SVTOOLS_RTF_LEVELSTARTAT}, RTF_LEVELSTARTAT},
-{{OOO_STRING_SVTOOLS_RTF_LEVELTEXT}, RTF_LEVELTEXT},
-{{OOO_STRING_SVTOOLS_RTF_LINKVAL}, RTF_LINKVAL},
-{{OOO_STRING_SVTOOLS_RTF_LIST}, RTF_LIST},
-{{OOO_STRING_SVTOOLS_RTF_LISTID}, RTF_LISTID},
+{{OOO_STRING_SVTOOLS_RTF_LEVELSPACE}, RTF_LEVELSPACE},
+{{OOO_STRING_SVTOOLS_RTF_LEVELSTARTAT}, RTF_LEVELSTARTAT},
+{{OOO_STRING_SVTOOLS_RTF_LEVELTEXT}, RTF_LEVELTEXT},
+{{OOO_STRING_SVTOOLS_RTF_LINKVAL}, RTF_LINKVAL},
+{{OOO_STRING_SVTOOLS_RTF_LIST}, RTF_LIST},
+{{OOO_STRING_SVTOOLS_RTF_LISTID}, RTF_LISTID},
{{OOO_STRING_SVTOOLS_RTF_LISTLEVEL}, RTF_LISTLEVEL},
-{{OOO_STRING_SVTOOLS_RTF_LISTNAME}, RTF_LISTNAME},
-{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDE}, RTF_LISTOVERRIDE},
-{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDECOUNT}, RTF_LISTOVERRIDECOUNT},
-{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDEFORMAT}, RTF_LISTOVERRIDEFORMAT},
-{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDESTART}, RTF_LISTOVERRIDESTART},
-{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDETABLE}, RTF_LISTOVERRIDETABLE},
+{{OOO_STRING_SVTOOLS_RTF_LISTNAME}, RTF_LISTNAME},
+{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDE}, RTF_LISTOVERRIDE},
+{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDECOUNT}, RTF_LISTOVERRIDECOUNT},
+{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDEFORMAT}, RTF_LISTOVERRIDEFORMAT},
+{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDESTART}, RTF_LISTOVERRIDESTART},
+{{OOO_STRING_SVTOOLS_RTF_LISTOVERRIDETABLE}, RTF_LISTOVERRIDETABLE},
{{OOO_STRING_SVTOOLS_RTF_LISTRESTARTHDN},RTF_LISTRESTARTHDN},
-{{OOO_STRING_SVTOOLS_RTF_LISTSIMPLE}, RTF_LISTSIMPLE},
-{{OOO_STRING_SVTOOLS_RTF_LISTTABLE}, RTF_LISTTABLE},
+{{OOO_STRING_SVTOOLS_RTF_LISTSIMPLE}, RTF_LISTSIMPLE},
+{{OOO_STRING_SVTOOLS_RTF_LISTTABLE}, RTF_LISTTABLE},
{{OOO_STRING_SVTOOLS_RTF_LISTTEMPLATEID},RTF_LISTTEMPLATEID},
-{{OOO_STRING_SVTOOLS_RTF_LISTTEXT}, RTF_LISTTEXT},
-{{OOO_STRING_SVTOOLS_RTF_LS}, RTF_LS},
-{{OOO_STRING_SVTOOLS_RTF_LYTEXCTTP}, RTF_LYTEXCTTP},
-{{OOO_STRING_SVTOOLS_RTF_LYTPRTMET}, RTF_LYTPRTMET},
-{{OOO_STRING_SVTOOLS_RTF_MANAGER}, RTF_MANAGER},
-{{OOO_STRING_SVTOOLS_RTF_MSMCAP}, RTF_MSMCAP},
-{{OOO_STRING_SVTOOLS_RTF_NOFCHARSWS}, RTF_NOFCHARSWS},
-{{OOO_STRING_SVTOOLS_RTF_NOLEAD}, RTF_NOLEAD},
-{{OOO_STRING_SVTOOLS_RTF_NONSHPPICT}, RTF_NONSHPPICT},
-{{OOO_STRING_SVTOOLS_RTF_NOSECTEXPAND}, RTF_NOSECTEXPAND},
+{{OOO_STRING_SVTOOLS_RTF_LISTTEXT}, RTF_LISTTEXT},
+{{OOO_STRING_SVTOOLS_RTF_LS}, RTF_LS},
+{{OOO_STRING_SVTOOLS_RTF_LYTEXCTTP}, RTF_LYTEXCTTP},
+{{OOO_STRING_SVTOOLS_RTF_LYTPRTMET}, RTF_LYTPRTMET},
+{{OOO_STRING_SVTOOLS_RTF_MANAGER}, RTF_MANAGER},
+{{OOO_STRING_SVTOOLS_RTF_MSMCAP}, RTF_MSMCAP},
+{{OOO_STRING_SVTOOLS_RTF_NOFCHARSWS}, RTF_NOFCHARSWS},
+{{OOO_STRING_SVTOOLS_RTF_NOLEAD}, RTF_NOLEAD},
+{{OOO_STRING_SVTOOLS_RTF_NONSHPPICT}, RTF_NONSHPPICT},
+{{OOO_STRING_SVTOOLS_RTF_NOSECTEXPAND}, RTF_NOSECTEXPAND},
{{OOO_STRING_SVTOOLS_RTF_NOSNAPLINEGRID},RTF_NOSNAPLINEGRID},
-{{OOO_STRING_SVTOOLS_RTF_NOSPACEFORUL}, RTF_NOSPACEFORUL},
-{{OOO_STRING_SVTOOLS_RTF_NOULTRLSPC}, RTF_NOULTRLSPC},
-{{OOO_STRING_SVTOOLS_RTF_NOXLATTOYEN}, RTF_NOXLATTOYEN},
-{{OOO_STRING_SVTOOLS_RTF_OBJATTPH}, RTF_OBJATTPH},
-{{OOO_STRING_SVTOOLS_RTF_OBJHTML}, RTF_OBJHTML},
-{{OOO_STRING_SVTOOLS_RTF_OBJOCX}, RTF_OBJOCX},
-{{OOO_STRING_SVTOOLS_RTF_OLDLINEWRAP}, RTF_OLDLINEWRAP},
-{{OOO_STRING_SVTOOLS_RTF_OUTLINELEVEL}, RTF_OUTLINELEVEL},
-{{OOO_STRING_SVTOOLS_RTF_OVERLAY}, RTF_OVERLAY},
-{{OOO_STRING_SVTOOLS_RTF_PANOSE}, RTF_PANOSE},
-{{OOO_STRING_SVTOOLS_RTF_PGBRDRB}, RTF_PGBRDRB},
-{{OOO_STRING_SVTOOLS_RTF_PGBRDRFOOT}, RTF_PGBRDRFOOT},
-{{OOO_STRING_SVTOOLS_RTF_PGBRDRHEAD}, RTF_PGBRDRHEAD},
-{{OOO_STRING_SVTOOLS_RTF_PGBRDRL}, RTF_PGBRDRL},
-{{OOO_STRING_SVTOOLS_RTF_PGBRDROPT}, RTF_PGBRDROPT},
-{{OOO_STRING_SVTOOLS_RTF_PGBRDRR}, RTF_PGBRDRR},
-{{OOO_STRING_SVTOOLS_RTF_PGBRDRSNAP}, RTF_PGBRDRSNAP},
-{{OOO_STRING_SVTOOLS_RTF_PGBRDRT}, RTF_PGBRDRT},
-{{OOO_STRING_SVTOOLS_RTF_PGNCHOSUNG}, RTF_PGNCHOSUNG},
-{{OOO_STRING_SVTOOLS_RTF_PGNCNUM}, RTF_PGNCNUM},
-{{OOO_STRING_SVTOOLS_RTF_PGNDBNUMK}, RTF_PGNDBNUMK},
-{{OOO_STRING_SVTOOLS_RTF_PGNDBNUMT}, RTF_PGNDBNUMT},
-{{OOO_STRING_SVTOOLS_RTF_PGNGANADA}, RTF_PGNGANADA},
-{{OOO_STRING_SVTOOLS_RTF_PGNGBNUM}, RTF_PGNGBNUM},
-{{OOO_STRING_SVTOOLS_RTF_PGNGBNUMD}, RTF_PGNGBNUMD},
-{{OOO_STRING_SVTOOLS_RTF_PGNGBNUMK}, RTF_PGNGBNUMK},
-{{OOO_STRING_SVTOOLS_RTF_PGNGBNUML}, RTF_PGNGBNUML},
-{{OOO_STRING_SVTOOLS_RTF_PGNZODIAC}, RTF_PGNZODIAC},
-{{OOO_STRING_SVTOOLS_RTF_PGNZODIACD}, RTF_PGNZODIACD},
-{{OOO_STRING_SVTOOLS_RTF_PGNZODIACL}, RTF_PGNZODIACL},
-{{OOO_STRING_SVTOOLS_RTF_PICPROP}, RTF_PICPROP},
-{{OOO_STRING_SVTOOLS_RTF_PNAIUEO}, RTF_PNAIUEO},
-{{OOO_STRING_SVTOOLS_RTF_PNAIUEOD}, RTF_PNAIUEOD},
-{{OOO_STRING_SVTOOLS_RTF_PNCHOSUNG}, RTF_PNCHOSUNG},
-{{OOO_STRING_SVTOOLS_RTF_PNDBNUMD}, RTF_PNDBNUMD},
-{{OOO_STRING_SVTOOLS_RTF_PNDBNUMK}, RTF_PNDBNUMK},
-{{OOO_STRING_SVTOOLS_RTF_PNDBNUML}, RTF_PNDBNUML},
-{{OOO_STRING_SVTOOLS_RTF_PNDBNUMT}, RTF_PNDBNUMT},
-{{OOO_STRING_SVTOOLS_RTF_PNGANADA}, RTF_PNGANADA},
-{{OOO_STRING_SVTOOLS_RTF_PNGBLIP}, RTF_PNGBLIP},
-{{OOO_STRING_SVTOOLS_RTF_PNGBNUM}, RTF_PNGBNUM},
-{{OOO_STRING_SVTOOLS_RTF_PNGBNUMD}, RTF_PNGBNUMD},
-{{OOO_STRING_SVTOOLS_RTF_PNGBNUMK}, RTF_PNGBNUMK},
-{{OOO_STRING_SVTOOLS_RTF_PNGBNUML}, RTF_PNGBNUML},
-{{OOO_STRING_SVTOOLS_RTF_PNRAUTH}, RTF_PNRAUTH},
-{{OOO_STRING_SVTOOLS_RTF_PNRDATE}, RTF_PNRDATE},
-{{OOO_STRING_SVTOOLS_RTF_PNRNFC}, RTF_PNRNFC},
-{{OOO_STRING_SVTOOLS_RTF_PNRNOT}, RTF_PNRNOT},
-{{OOO_STRING_SVTOOLS_RTF_PNRPNBR}, RTF_PNRPNBR},
-{{OOO_STRING_SVTOOLS_RTF_PNRRGB}, RTF_PNRRGB},
-{{OOO_STRING_SVTOOLS_RTF_PNRSTART}, RTF_PNRSTART},
-{{OOO_STRING_SVTOOLS_RTF_PNRSTOP}, RTF_PNRSTOP},
-{{OOO_STRING_SVTOOLS_RTF_PNRXST}, RTF_PNRXST},
-{{OOO_STRING_SVTOOLS_RTF_PNZODIAC}, RTF_PNZODIAC},
-{{OOO_STRING_SVTOOLS_RTF_PNZODIACD}, RTF_PNZODIACD},
-{{OOO_STRING_SVTOOLS_RTF_PNZODIACL}, RTF_PNZODIACL},
-{{OOO_STRING_SVTOOLS_RTF_LFOLEVEL}, RTF_LFOLEVEL},
-{{OOO_STRING_SVTOOLS_RTF_POSYIN}, RTF_POSYIN},
-{{OOO_STRING_SVTOOLS_RTF_POSYOUT}, RTF_POSYOUT},
-{{OOO_STRING_SVTOOLS_RTF_PRIVATE}, RTF_PRIVATE},
-{{OOO_STRING_SVTOOLS_RTF_PROPNAME}, RTF_PROPNAME},
-{{OOO_STRING_SVTOOLS_RTF_PROPTYPE}, RTF_PROPTYPE},
-{{OOO_STRING_SVTOOLS_RTF_REVAUTHDEL}, RTF_REVAUTHDEL},
-{{OOO_STRING_SVTOOLS_RTF_REVDTTMDEL}, RTF_REVDTTMDEL},
-{{OOO_STRING_SVTOOLS_RTF_SAUTOUPD}, RTF_SAUTOUPD},
-{{OOO_STRING_SVTOOLS_RTF_SECTDEFAULTCL}, RTF_SECTDEFAULTCL},
-{{OOO_STRING_SVTOOLS_RTF_SECTEXPAND}, RTF_SECTEXPAND},
-{{OOO_STRING_SVTOOLS_RTF_SECTLINEGRID}, RTF_SECTLINEGRID},
-{{OOO_STRING_SVTOOLS_RTF_SECTSPECIFYCL}, RTF_SECTSPECIFYCL},
-{{OOO_STRING_SVTOOLS_RTF_SECTSPECIFYL}, RTF_SECTSPECIFYL},
-{{OOO_STRING_SVTOOLS_RTF_SHIDDEN}, RTF_SHIDDEN},
-{{OOO_STRING_SVTOOLS_RTF_SHPBOTTOM}, RTF_SHPBOTTOM},
-{{OOO_STRING_SVTOOLS_RTF_SHPBXCOLUMN}, RTF_SHPBXCOLUMN},
-{{OOO_STRING_SVTOOLS_RTF_SHPBXMARGIN}, RTF_SHPBXMARGIN},
-{{OOO_STRING_SVTOOLS_RTF_SHPBXPAGE}, RTF_SHPBXPAGE},
-{{OOO_STRING_SVTOOLS_RTF_SHPBYMARGIN}, RTF_SHPBYMARGIN},
-{{OOO_STRING_SVTOOLS_RTF_SHPBYPAGE}, RTF_SHPBYPAGE},
-{{OOO_STRING_SVTOOLS_RTF_SHPBYPARA}, RTF_SHPBYPARA},
-{{OOO_STRING_SVTOOLS_RTF_SHPFBLWTXT}, RTF_SHPFBLWTXT},
-{{OOO_STRING_SVTOOLS_RTF_SHPFHDR}, RTF_SHPFHDR},
-{{OOO_STRING_SVTOOLS_RTF_SHPGRP}, RTF_SHPGRP},
-{{OOO_STRING_SVTOOLS_RTF_SHPLEFT}, RTF_SHPLEFT},
-{{OOO_STRING_SVTOOLS_RTF_SHPLID}, RTF_SHPLID},
-{{OOO_STRING_SVTOOLS_RTF_SHPLOCKANCHOR}, RTF_SHPLOCKANCHOR},
-{{OOO_STRING_SVTOOLS_RTF_SHPPICT}, RTF_SHPPICT},
-{{OOO_STRING_SVTOOLS_RTF_SHPRIGHT}, RTF_SHPRIGHT},
-{{OOO_STRING_SVTOOLS_RTF_SHPRSLT}, RTF_SHPRSLT},
-{{OOO_STRING_SVTOOLS_RTF_SHPTOP}, RTF_SHPTOP},
-{{OOO_STRING_SVTOOLS_RTF_SHPTXT}, RTF_SHPTXT},
-{{OOO_STRING_SVTOOLS_RTF_SHPWRK}, RTF_SHPWRK},
-{{OOO_STRING_SVTOOLS_RTF_SHPWR}, RTF_SHPWR},
-{{OOO_STRING_SVTOOLS_RTF_SHPZ}, RTF_SHPZ},
-{{OOO_STRING_SVTOOLS_RTF_SPRSBSP}, RTF_SPRSBSP},
-{{OOO_STRING_SVTOOLS_RTF_SPRSLNSP}, RTF_SPRSLNSP},
-{{OOO_STRING_SVTOOLS_RTF_SPRSTSM}, RTF_SPRSTSM},
-{{OOO_STRING_SVTOOLS_RTF_STATICVAL}, RTF_STATICVAL},
-{{OOO_STRING_SVTOOLS_RTF_STEXTFLOW}, RTF_STEXTFLOW},
-{{OOO_STRING_SVTOOLS_RTF_STRIKED}, RTF_STRIKED},
-{{OOO_STRING_SVTOOLS_RTF_SUBFONTBYSIZE}, RTF_SUBFONTBYSIZE},
-{{OOO_STRING_SVTOOLS_RTF_TCELLD}, RTF_TCELLD},
-{{OOO_STRING_SVTOOLS_RTF_TIME}, RTF_TIME},
-{{OOO_STRING_SVTOOLS_RTF_TRUNCATEFONTHEIGHT}, RTF_TRUNCATEFONTHEIGHT},
-{{OOO_STRING_SVTOOLS_RTF_UC}, RTF_UC},
-{{OOO_STRING_SVTOOLS_RTF_UD}, RTF_UD},
-{{OOO_STRING_SVTOOLS_RTF_ULDASH}, RTF_ULDASH},
-{{OOO_STRING_SVTOOLS_RTF_ULDASHD}, RTF_ULDASHD},
-{{OOO_STRING_SVTOOLS_RTF_ULDASHDD}, RTF_ULDASHDD},
-{{OOO_STRING_SVTOOLS_RTF_ULTH}, RTF_ULTH},
-{{OOO_STRING_SVTOOLS_RTF_ULWAVE}, RTF_ULWAVE},
-{{OOO_STRING_SVTOOLS_RTF_ULC}, RTF_ULC},
-{{OOO_STRING_SVTOOLS_RTF_U}, RTF_U},
-{{OOO_STRING_SVTOOLS_RTF_UPR}, RTF_UPR},
-{{OOO_STRING_SVTOOLS_RTF_USERPROPS}, RTF_USERPROPS},
-{{OOO_STRING_SVTOOLS_RTF_VIEWKIND}, RTF_VIEWKIND},
-{{OOO_STRING_SVTOOLS_RTF_VIEWSCALE}, RTF_VIEWSCALE},
-{{OOO_STRING_SVTOOLS_RTF_VIEWZK}, RTF_VIEWZK},
-{{OOO_STRING_SVTOOLS_RTF_WIDCTLPAR}, RTF_WIDCTLPAR},
-{{OOO_STRING_SVTOOLS_RTF_WINDOWCAPTION}, RTF_WINDOWCAPTION},
-{{OOO_STRING_SVTOOLS_RTF_WPEQN}, RTF_WPEQN},
-{{OOO_STRING_SVTOOLS_RTF_WPJST}, RTF_WPJST},
-{{OOO_STRING_SVTOOLS_RTF_WPSP}, RTF_WPSP},
-{{OOO_STRING_SVTOOLS_RTF_YXE}, RTF_YXE},
+{{OOO_STRING_SVTOOLS_RTF_NOSPACEFORUL}, RTF_NOSPACEFORUL},
+{{OOO_STRING_SVTOOLS_RTF_NOULTRLSPC}, RTF_NOULTRLSPC},
+{{OOO_STRING_SVTOOLS_RTF_NOXLATTOYEN}, RTF_NOXLATTOYEN},
+{{OOO_STRING_SVTOOLS_RTF_OBJATTPH}, RTF_OBJATTPH},
+{{OOO_STRING_SVTOOLS_RTF_OBJHTML}, RTF_OBJHTML},
+{{OOO_STRING_SVTOOLS_RTF_OBJOCX}, RTF_OBJOCX},
+{{OOO_STRING_SVTOOLS_RTF_OLDLINEWRAP}, RTF_OLDLINEWRAP},
+{{OOO_STRING_SVTOOLS_RTF_OUTLINELEVEL}, RTF_OUTLINELEVEL},
+{{OOO_STRING_SVTOOLS_RTF_OVERLAY}, RTF_OVERLAY},
+{{OOO_STRING_SVTOOLS_RTF_PANOSE}, RTF_PANOSE},
+{{OOO_STRING_SVTOOLS_RTF_PGBRDRB}, RTF_PGBRDRB},
+{{OOO_STRING_SVTOOLS_RTF_PGBRDRFOOT}, RTF_PGBRDRFOOT},
+{{OOO_STRING_SVTOOLS_RTF_PGBRDRHEAD}, RTF_PGBRDRHEAD},
+{{OOO_STRING_SVTOOLS_RTF_PGBRDRL}, RTF_PGBRDRL},
+{{OOO_STRING_SVTOOLS_RTF_PGBRDROPT}, RTF_PGBRDROPT},
+{{OOO_STRING_SVTOOLS_RTF_PGBRDRR}, RTF_PGBRDRR},
+{{OOO_STRING_SVTOOLS_RTF_PGBRDRSNAP}, RTF_PGBRDRSNAP},
+{{OOO_STRING_SVTOOLS_RTF_PGBRDRT}, RTF_PGBRDRT},
+{{OOO_STRING_SVTOOLS_RTF_PGNCHOSUNG}, RTF_PGNCHOSUNG},
+{{OOO_STRING_SVTOOLS_RTF_PGNCNUM}, RTF_PGNCNUM},
+{{OOO_STRING_SVTOOLS_RTF_PGNDBNUMK}, RTF_PGNDBNUMK},
+{{OOO_STRING_SVTOOLS_RTF_PGNDBNUMT}, RTF_PGNDBNUMT},
+{{OOO_STRING_SVTOOLS_RTF_PGNGANADA}, RTF_PGNGANADA},
+{{OOO_STRING_SVTOOLS_RTF_PGNGBNUM}, RTF_PGNGBNUM},
+{{OOO_STRING_SVTOOLS_RTF_PGNGBNUMD}, RTF_PGNGBNUMD},
+{{OOO_STRING_SVTOOLS_RTF_PGNGBNUMK}, RTF_PGNGBNUMK},
+{{OOO_STRING_SVTOOLS_RTF_PGNGBNUML}, RTF_PGNGBNUML},
+{{OOO_STRING_SVTOOLS_RTF_PGNZODIAC}, RTF_PGNZODIAC},
+{{OOO_STRING_SVTOOLS_RTF_PGNZODIACD}, RTF_PGNZODIACD},
+{{OOO_STRING_SVTOOLS_RTF_PGNZODIACL}, RTF_PGNZODIACL},
+{{OOO_STRING_SVTOOLS_RTF_PICPROP}, RTF_PICPROP},
+{{OOO_STRING_SVTOOLS_RTF_PNAIUEO}, RTF_PNAIUEO},
+{{OOO_STRING_SVTOOLS_RTF_PNAIUEOD}, RTF_PNAIUEOD},
+{{OOO_STRING_SVTOOLS_RTF_PNCHOSUNG}, RTF_PNCHOSUNG},
+{{OOO_STRING_SVTOOLS_RTF_PNDBNUMD}, RTF_PNDBNUMD},
+{{OOO_STRING_SVTOOLS_RTF_PNDBNUMK}, RTF_PNDBNUMK},
+{{OOO_STRING_SVTOOLS_RTF_PNDBNUML}, RTF_PNDBNUML},
+{{OOO_STRING_SVTOOLS_RTF_PNDBNUMT}, RTF_PNDBNUMT},
+{{OOO_STRING_SVTOOLS_RTF_PNGANADA}, RTF_PNGANADA},
+{{OOO_STRING_SVTOOLS_RTF_PNGBLIP}, RTF_PNGBLIP},
+{{OOO_STRING_SVTOOLS_RTF_PNGBNUM}, RTF_PNGBNUM},
+{{OOO_STRING_SVTOOLS_RTF_PNGBNUMD}, RTF_PNGBNUMD},
+{{OOO_STRING_SVTOOLS_RTF_PNGBNUMK}, RTF_PNGBNUMK},
+{{OOO_STRING_SVTOOLS_RTF_PNGBNUML}, RTF_PNGBNUML},
+{{OOO_STRING_SVTOOLS_RTF_PNRAUTH}, RTF_PNRAUTH},
+{{OOO_STRING_SVTOOLS_RTF_PNRDATE}, RTF_PNRDATE},
+{{OOO_STRING_SVTOOLS_RTF_PNRNFC}, RTF_PNRNFC},
+{{OOO_STRING_SVTOOLS_RTF_PNRNOT}, RTF_PNRNOT},
+{{OOO_STRING_SVTOOLS_RTF_PNRPNBR}, RTF_PNRPNBR},
+{{OOO_STRING_SVTOOLS_RTF_PNRRGB}, RTF_PNRRGB},
+{{OOO_STRING_SVTOOLS_RTF_PNRSTART}, RTF_PNRSTART},
+{{OOO_STRING_SVTOOLS_RTF_PNRSTOP}, RTF_PNRSTOP},
+{{OOO_STRING_SVTOOLS_RTF_PNRXST}, RTF_PNRXST},
+{{OOO_STRING_SVTOOLS_RTF_PNZODIAC}, RTF_PNZODIAC},
+{{OOO_STRING_SVTOOLS_RTF_PNZODIACD}, RTF_PNZODIACD},
+{{OOO_STRING_SVTOOLS_RTF_PNZODIACL}, RTF_PNZODIACL},
+{{OOO_STRING_SVTOOLS_RTF_LFOLEVEL}, RTF_LFOLEVEL},
+{{OOO_STRING_SVTOOLS_RTF_POSYIN}, RTF_POSYIN},
+{{OOO_STRING_SVTOOLS_RTF_POSYOUT}, RTF_POSYOUT},
+{{OOO_STRING_SVTOOLS_RTF_PRIVATE}, RTF_PRIVATE},
+{{OOO_STRING_SVTOOLS_RTF_PROPNAME}, RTF_PROPNAME},
+{{OOO_STRING_SVTOOLS_RTF_PROPTYPE}, RTF_PROPTYPE},
+{{OOO_STRING_SVTOOLS_RTF_REVAUTHDEL}, RTF_REVAUTHDEL},
+{{OOO_STRING_SVTOOLS_RTF_REVDTTMDEL}, RTF_REVDTTMDEL},
+{{OOO_STRING_SVTOOLS_RTF_SAUTOUPD}, RTF_SAUTOUPD},
+{{OOO_STRING_SVTOOLS_RTF_SECTDEFAULTCL}, RTF_SECTDEFAULTCL},
+{{OOO_STRING_SVTOOLS_RTF_SECTEXPAND}, RTF_SECTEXPAND},
+{{OOO_STRING_SVTOOLS_RTF_SECTLINEGRID}, RTF_SECTLINEGRID},
+{{OOO_STRING_SVTOOLS_RTF_SECTSPECIFYCL}, RTF_SECTSPECIFYCL},
+{{OOO_STRING_SVTOOLS_RTF_SECTSPECIFYL}, RTF_SECTSPECIFYL},
+{{OOO_STRING_SVTOOLS_RTF_SHIDDEN}, RTF_SHIDDEN},
+{{OOO_STRING_SVTOOLS_RTF_SHPBOTTOM}, RTF_SHPBOTTOM},
+{{OOO_STRING_SVTOOLS_RTF_SHPBXCOLUMN}, RTF_SHPBXCOLUMN},
+{{OOO_STRING_SVTOOLS_RTF_SHPBXMARGIN}, RTF_SHPBXMARGIN},
+{{OOO_STRING_SVTOOLS_RTF_SHPBXPAGE}, RTF_SHPBXPAGE},
+{{OOO_STRING_SVTOOLS_RTF_SHPBYMARGIN}, RTF_SHPBYMARGIN},
+{{OOO_STRING_SVTOOLS_RTF_SHPBYPAGE}, RTF_SHPBYPAGE},
+{{OOO_STRING_SVTOOLS_RTF_SHPBYPARA}, RTF_SHPBYPARA},
+{{OOO_STRING_SVTOOLS_RTF_SHPFBLWTXT}, RTF_SHPFBLWTXT},
+{{OOO_STRING_SVTOOLS_RTF_SHPFHDR}, RTF_SHPFHDR},
+{{OOO_STRING_SVTOOLS_RTF_SHPGRP}, RTF_SHPGRP},
+{{OOO_STRING_SVTOOLS_RTF_SHPLEFT}, RTF_SHPLEFT},
+{{OOO_STRING_SVTOOLS_RTF_SHPLID}, RTF_SHPLID},
+{{OOO_STRING_SVTOOLS_RTF_SHPLOCKANCHOR}, RTF_SHPLOCKANCHOR},
+{{OOO_STRING_SVTOOLS_RTF_SHPPICT}, RTF_SHPPICT},
+{{OOO_STRING_SVTOOLS_RTF_SHPRIGHT}, RTF_SHPRIGHT},
+{{OOO_STRING_SVTOOLS_RTF_SHPRSLT}, RTF_SHPRSLT},
+{{OOO_STRING_SVTOOLS_RTF_SHPTOP}, RTF_SHPTOP},
+{{OOO_STRING_SVTOOLS_RTF_SHPTXT}, RTF_SHPTXT},
+{{OOO_STRING_SVTOOLS_RTF_SHPWRK}, RTF_SHPWRK},
+{{OOO_STRING_SVTOOLS_RTF_SHPWR}, RTF_SHPWR},
+{{OOO_STRING_SVTOOLS_RTF_SHPZ}, RTF_SHPZ},
+{{OOO_STRING_SVTOOLS_RTF_SPRSBSP}, RTF_SPRSBSP},
+{{OOO_STRING_SVTOOLS_RTF_SPRSLNSP}, RTF_SPRSLNSP},
+{{OOO_STRING_SVTOOLS_RTF_SPRSTSM}, RTF_SPRSTSM},
+{{OOO_STRING_SVTOOLS_RTF_STATICVAL}, RTF_STATICVAL},
+{{OOO_STRING_SVTOOLS_RTF_STEXTFLOW}, RTF_STEXTFLOW},
+{{OOO_STRING_SVTOOLS_RTF_STRIKED}, RTF_STRIKED},
+{{OOO_STRING_SVTOOLS_RTF_SUBFONTBYSIZE}, RTF_SUBFONTBYSIZE},
+{{OOO_STRING_SVTOOLS_RTF_TCELLD}, RTF_TCELLD},
+{{OOO_STRING_SVTOOLS_RTF_TIME}, RTF_TIME},
+{{OOO_STRING_SVTOOLS_RTF_TRUNCATEFONTHEIGHT}, RTF_TRUNCATEFONTHEIGHT},
+{{OOO_STRING_SVTOOLS_RTF_UC}, RTF_UC},
+{{OOO_STRING_SVTOOLS_RTF_UD}, RTF_UD},
+{{OOO_STRING_SVTOOLS_RTF_ULDASH}, RTF_ULDASH},
+{{OOO_STRING_SVTOOLS_RTF_ULDASHD}, RTF_ULDASHD},
+{{OOO_STRING_SVTOOLS_RTF_ULDASHDD}, RTF_ULDASHDD},
+{{OOO_STRING_SVTOOLS_RTF_ULTH}, RTF_ULTH},
+{{OOO_STRING_SVTOOLS_RTF_ULWAVE}, RTF_ULWAVE},
+{{OOO_STRING_SVTOOLS_RTF_ULC}, RTF_ULC},
+{{OOO_STRING_SVTOOLS_RTF_U}, RTF_U},
+{{OOO_STRING_SVTOOLS_RTF_UPR}, RTF_UPR},
+{{OOO_STRING_SVTOOLS_RTF_USERPROPS}, RTF_USERPROPS},
+{{OOO_STRING_SVTOOLS_RTF_VIEWKIND}, RTF_VIEWKIND},
+{{OOO_STRING_SVTOOLS_RTF_VIEWSCALE}, RTF_VIEWSCALE},
+{{OOO_STRING_SVTOOLS_RTF_VIEWZK}, RTF_VIEWZK},
+{{OOO_STRING_SVTOOLS_RTF_WIDCTLPAR}, RTF_WIDCTLPAR},
+{{OOO_STRING_SVTOOLS_RTF_WINDOWCAPTION}, RTF_WINDOWCAPTION},
+{{OOO_STRING_SVTOOLS_RTF_WPEQN}, RTF_WPEQN},
+{{OOO_STRING_SVTOOLS_RTF_WPJST}, RTF_WPJST},
+{{OOO_STRING_SVTOOLS_RTF_WPSP}, RTF_WPSP},
+{{OOO_STRING_SVTOOLS_RTF_YXE}, RTF_YXE},
{{OOO_STRING_SVTOOLS_RTF_FRMTXLRTB}, RTF_FRMTXLRTB},
{{OOO_STRING_SVTOOLS_RTF_FRMTXTBRL}, RTF_FRMTXTBRL},
{{OOO_STRING_SVTOOLS_RTF_FRMTXBTLR}, RTF_FRMTXBTLR},
@@ -1067,22 +1067,22 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_ULHWAVE}, RTF_ULHWAVE},
{{OOO_STRING_SVTOOLS_RTF_ULULDBWAVE}, RTF_ULULDBWAVE},
- {{OOO_STRING_SVTOOLS_RTF_LOCH}, RTF_LOCH},
- {{OOO_STRING_SVTOOLS_RTF_HICH}, RTF_HICH},
- {{OOO_STRING_SVTOOLS_RTF_DBCH}, RTF_DBCH},
- {{OOO_STRING_SVTOOLS_RTF_LANGFE}, RTF_LANGFE},
- {{OOO_STRING_SVTOOLS_RTF_ADEFLANG}, RTF_ADEFLANG},
- {{OOO_STRING_SVTOOLS_RTF_ADEFF}, RTF_ADEFF},
- {{OOO_STRING_SVTOOLS_RTF_ACCNONE}, RTF_ACCNONE},
- {{OOO_STRING_SVTOOLS_RTF_ACCDOT}, RTF_ACCDOT},
- {{OOO_STRING_SVTOOLS_RTF_ACCCOMMA}, RTF_ACCCOMMA},
- {{OOO_STRING_SVTOOLS_RTF_TWOINONE}, RTF_TWOINONE},
- {{OOO_STRING_SVTOOLS_RTF_HORZVERT}, RTF_HORZVERT},
- {{OOO_STRING_SVTOOLS_RTF_FAHANG}, RTF_FAHANG},
- {{OOO_STRING_SVTOOLS_RTF_FAVAR}, RTF_FAVAR},
- {{OOO_STRING_SVTOOLS_RTF_FACENTER}, RTF_FACENTER},
- {{OOO_STRING_SVTOOLS_RTF_FAROMAN}, RTF_FAROMAN},
- {{OOO_STRING_SVTOOLS_RTF_FAFIXED}, RTF_FAFIXED},
+ {{OOO_STRING_SVTOOLS_RTF_LOCH}, RTF_LOCH},
+ {{OOO_STRING_SVTOOLS_RTF_HICH}, RTF_HICH},
+ {{OOO_STRING_SVTOOLS_RTF_DBCH}, RTF_DBCH},
+ {{OOO_STRING_SVTOOLS_RTF_LANGFE}, RTF_LANGFE},
+ {{OOO_STRING_SVTOOLS_RTF_ADEFLANG}, RTF_ADEFLANG},
+ {{OOO_STRING_SVTOOLS_RTF_ADEFF}, RTF_ADEFF},
+ {{OOO_STRING_SVTOOLS_RTF_ACCNONE}, RTF_ACCNONE},
+ {{OOO_STRING_SVTOOLS_RTF_ACCDOT}, RTF_ACCDOT},
+ {{OOO_STRING_SVTOOLS_RTF_ACCCOMMA}, RTF_ACCCOMMA},
+ {{OOO_STRING_SVTOOLS_RTF_TWOINONE}, RTF_TWOINONE},
+ {{OOO_STRING_SVTOOLS_RTF_HORZVERT}, RTF_HORZVERT},
+ {{OOO_STRING_SVTOOLS_RTF_FAHANG}, RTF_FAHANG},
+ {{OOO_STRING_SVTOOLS_RTF_FAVAR}, RTF_FAVAR},
+ {{OOO_STRING_SVTOOLS_RTF_FACENTER}, RTF_FACENTER},
+ {{OOO_STRING_SVTOOLS_RTF_FAROMAN}, RTF_FAROMAN},
+ {{OOO_STRING_SVTOOLS_RTF_FAFIXED}, RTF_FAFIXED},
{{OOO_STRING_SVTOOLS_RTF_NOCWRAP}, RTF_NOCWRAP},
{{OOO_STRING_SVTOOLS_RTF_NOOVERFLOW}, RTF_NOOVERFLOW},
{{OOO_STRING_SVTOOLS_RTF_ASPALPHA}, RTF_ASPALPHA},
@@ -1162,25 +1162,25 @@ static RTF_TokenEntry __FAR_DATA aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_SP}, RTF_SP},
// Support for overline attributes
- {{OOO_STRING_SVTOOLS_RTF_OL}, RTF_OL},
- {{OOO_STRING_SVTOOLS_RTF_OLW}, RTF_OLW},
- {{OOO_STRING_SVTOOLS_RTF_OLD}, RTF_OLD},
- {{OOO_STRING_SVTOOLS_RTF_OLDB}, RTF_OLDB},
- {{OOO_STRING_SVTOOLS_RTF_OLNONE}, RTF_OLNONE},
- {{OOO_STRING_SVTOOLS_RTF_OLDASH}, RTF_OLDASH},
- {{OOO_STRING_SVTOOLS_RTF_OLDASHD}, RTF_OLDASHD},
- {{OOO_STRING_SVTOOLS_RTF_OLDASHDD}, RTF_OLDASHDD},
- {{OOO_STRING_SVTOOLS_RTF_OLTH}, RTF_OLTH},
- {{OOO_STRING_SVTOOLS_RTF_OLWAVE}, RTF_OLWAVE},
- {{OOO_STRING_SVTOOLS_RTF_OLC}, RTF_OLC},
- {{OOO_STRING_SVTOOLS_RTF_OLTHD}, RTF_OLTHD},
- {{OOO_STRING_SVTOOLS_RTF_OLTHDASH}, RTF_OLTHDASH},
- {{OOO_STRING_SVTOOLS_RTF_OLLDASH}, RTF_OLLDASH},
- {{OOO_STRING_SVTOOLS_RTF_OLTHLDASH}, RTF_OLTHLDASH},
- {{OOO_STRING_SVTOOLS_RTF_OLTHDASHD}, RTF_OLTHDASHD},
- {{OOO_STRING_SVTOOLS_RTF_OLTHDASHDD}, RTF_OLTHDASHDD},
- {{OOO_STRING_SVTOOLS_RTF_OLHWAVE}, RTF_OLHWAVE},
- {{OOO_STRING_SVTOOLS_RTF_OLOLDBWAVE}, RTF_OLOLDBWAVE}
+ {{OOO_STRING_SVTOOLS_RTF_OL}, RTF_OL},
+ {{OOO_STRING_SVTOOLS_RTF_OLW}, RTF_OLW},
+ {{OOO_STRING_SVTOOLS_RTF_OLD}, RTF_OLD},
+ {{OOO_STRING_SVTOOLS_RTF_OLDB}, RTF_OLDB},
+ {{OOO_STRING_SVTOOLS_RTF_OLNONE}, RTF_OLNONE},
+ {{OOO_STRING_SVTOOLS_RTF_OLDASH}, RTF_OLDASH},
+ {{OOO_STRING_SVTOOLS_RTF_OLDASHD}, RTF_OLDASHD},
+ {{OOO_STRING_SVTOOLS_RTF_OLDASHDD}, RTF_OLDASHDD},
+ {{OOO_STRING_SVTOOLS_RTF_OLTH}, RTF_OLTH},
+ {{OOO_STRING_SVTOOLS_RTF_OLWAVE}, RTF_OLWAVE},
+ {{OOO_STRING_SVTOOLS_RTF_OLC}, RTF_OLC},
+ {{OOO_STRING_SVTOOLS_RTF_OLTHD}, RTF_OLTHD},
+ {{OOO_STRING_SVTOOLS_RTF_OLTHDASH}, RTF_OLTHDASH},
+ {{OOO_STRING_SVTOOLS_RTF_OLLDASH}, RTF_OLLDASH},
+ {{OOO_STRING_SVTOOLS_RTF_OLTHLDASH}, RTF_OLTHLDASH},
+ {{OOO_STRING_SVTOOLS_RTF_OLTHDASHD}, RTF_OLTHDASHD},
+ {{OOO_STRING_SVTOOLS_RTF_OLTHDASHDD}, RTF_OLTHDASHDD},
+ {{OOO_STRING_SVTOOLS_RTF_OLHWAVE}, RTF_OLHWAVE},
+ {{OOO_STRING_SVTOOLS_RTF_OLOLDBWAVE}, RTF_OLOLDBWAVE}
};
diff --git a/svtools/source/svrtf/rtfout.cxx b/svtools/source/svrtf/rtfout.cxx
index 4a08806e7c1b..2bb4be1d8f3f 100644
--- a/svtools/source/svrtf/rtfout.cxx
+++ b/svtools/source/svrtf/rtfout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,8 +51,8 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
const sal_Char* pStr = 0;
switch (c)
{
- case 0x1:
- case 0x2:
+ case 0x1:
+ case 0x2:
// this are control character of our textattributes and will never be
// written
break;
@@ -126,7 +126,7 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR |
RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR;
bool bWriteAsUnicode = !(sBuf.convertToString(&sConverted,
- eDestEnc, nFlags))
+ eDestEnc, nFlags))
|| (RTL_TEXTENCODING_UTF8==eDestEnc); // #i43933# do not export UTF-8 chars in RTF;
if (bWriteAsUnicode)
{
@@ -134,7 +134,7 @@ SvStream& RTFOutFuncs::Out_Char(SvStream& rStream, sal_Unicode c,
eDestEnc, OUSTRING_TO_OSTRING_CVTFLAGS);
}
const sal_Int32 nLen = sConverted.getLength();
-
+
if (bWriteAsUnicode && pUCMode)
{
// then write as unicode - character
diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx
index 227de97e3cb1..c276ffd8af4b 100644
--- a/svtools/source/svrtf/svparser.cxx
+++ b/svtools/source/svrtf/svparser.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,25 +40,25 @@
#define SVPAR_CSM_
-#define SVPAR_CSM_ANSI 0x0001U
-#define SVPAR_CSM_UTF8 0x0002U
-#define SVPAR_CSM_UCS2B 0x0004U
-#define SVPAR_CSM_UCS2L 0x0008U
-#define SVPAR_CSM_SWITCH 0x8000U
+#define SVPAR_CSM_ANSI 0x0001U
+#define SVPAR_CSM_UTF8 0x0002U
+#define SVPAR_CSM_UCS2B 0x0004U
+#define SVPAR_CSM_UCS2L 0x0008U
+#define SVPAR_CSM_SWITCH 0x8000U
// Struktur, um sich die akt. Daten zumerken
struct SvParser_Impl
{
- String aToken; // gescanntes Token
- ULONG nFilePos; // akt. Position im Stream
- ULONG nlLineNr; // akt. Zeilen Nummer
- ULONG nlLinePos; // akt. Spalten Nummer
- long nTokenValue; // zusaetzlicher Wert (RTF)
- BOOL bTokenHasValue; // indicates whether nTokenValue is valid
- int nToken; // akt. Token
- sal_Unicode nNextCh; // akt. Zeichen
+ String aToken; // gescanntes Token
+ ULONG nFilePos; // akt. Position im Stream
+ ULONG nlLineNr; // akt. Zeilen Nummer
+ ULONG nlLinePos; // akt. Spalten Nummer
+ long nTokenValue; // zusaetzlicher Wert (RTF)
+ BOOL bTokenHasValue; // indicates whether nTokenValue is valid
+ int nToken; // akt. Token
+ sal_Unicode nNextCh; // akt. Zeichen
- int nSaveToken; // das Token vom Continue
+ int nSaveToken; // das Token vom Continue
rtl_TextToUnicodeConverter hConv;
rtl_TextToUnicodeContext hContext;
@@ -261,13 +261,13 @@ sal_Unicode SvParser::GetNextChar()
sal_Size nChars = 0;
do
{
- sal_Char c1; // signed, that's the text converter expects
+ sal_Char c1; // signed, that's the text converter expects
rInput >> c1;
bErr = rInput.IsEof() || rInput.GetError();
if( !bErr )
{
if (
- RTL_TEXTENCODING_DONTKNOW == eSrcEnc ||
+ RTL_TEXTENCODING_DONTKNOW == eSrcEnc ||
RTL_TEXTENCODING_SYMBOL == eSrcEnc
)
{
@@ -319,11 +319,11 @@ sal_Unicode SvParser::GetNextChar()
}
else if( 0 != nChars || 0 != nInfo )
{
- DBG_ASSERT( (nInfo&RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL) == 0,
+ DBG_ASSERT( (nInfo&RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL) == 0,
"source buffer is to small" );
DBG_ASSERT( (nInfo&~(RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL)) == 0,
"there is a conversion error" );
- DBG_ASSERT( 0 == nChars,
+ DBG_ASSERT( 0 == nChars,
"there is a converted character, but an error" );
// There are still errors, but nothing we can
// do
@@ -363,13 +363,13 @@ sal_Unicode SvParser::GetNextChar()
}
else
{
- DBG_ASSERT( (nInfo&RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL) == 0,
+ DBG_ASSERT( (nInfo&RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL) == 0,
"source buffer is to small" );
DBG_ASSERT( (nInfo&~(RTL_TEXTTOUNICODE_INFO_SRCBUFFERTOSMALL)) == 0,
"there is a conversion error" );
- DBG_ASSERT( 0 == nChars,
+ DBG_ASSERT( 0 == nChars,
"there is a converted character, but an error" );
-
+
// There are still errors, so we use the first
// character and restart after that.
c = (sal_Unicode)sBuffer[0];
@@ -388,9 +388,9 @@ sal_Unicode SvParser::GetNextChar()
}
else if( 0 != nChars || 0 != nInfo )
{
- DBG_ASSERT( 0 == nChars,
+ DBG_ASSERT( 0 == nChars,
"there is a converted character, but an error" );
- DBG_ASSERT( 0 != nInfo,
+ DBG_ASSERT( 0 != nInfo,
"there is no converted character and no error" );
// #73398#: If the character could not be converted,
// because a conversion is not available, do no conversion at all.
@@ -436,8 +436,8 @@ int SvParser::GetNextToken()
if( !nTokenStackPos )
{
- aToken.Erase(); // Token-Buffer loeschen
- nTokenValue = -1; // Kennzeichen fuer kein Value gelesen
+ aToken.Erase(); // Token-Buffer loeschen
+ nTokenValue = -1; // Kennzeichen fuer kein Value gelesen
bTokenHasValue = false;
nRet = _GetNextToken();
@@ -467,12 +467,12 @@ int SvParser::GetNextToken()
pTokenStackPos->nTokenId = nRet;
}
else if( SVPAR_ACCEPTED != eState && SVPAR_PENDING != eState )
- eState = SVPAR_ERROR; // irgend ein Fehler
+ eState = SVPAR_ERROR; // irgend ein Fehler
return nRet;
}
-int SvParser::SkipToken( short nCnt ) // n Tokens zurueck "skippen"
+int SvParser::SkipToken( short nCnt ) // n Tokens zurueck "skippen"
{
pTokenStackPos = GetStackPtr( nCnt );
short nTmp = nTokenStackPos - nCnt;
@@ -644,7 +644,7 @@ IMPL_STATIC_LINK( SvParser, NewDataRead, void*, EMPTYARG )
pThis->rInput.ResetError();
if( SVPAR_PENDING != pThis->eState )
- pThis->ReleaseRef(); // ansonsten sind wir fertig!
+ pThis->ReleaseRef(); // ansonsten sind wir fertig!
break;
case SVPAR_WAITFORDATA:
@@ -656,7 +656,7 @@ IMPL_STATIC_LINK( SvParser, NewDataRead, void*, EMPTYARG )
break;
default:
- pThis->ReleaseRef(); // ansonsten sind wir fertig!
+ pThis->ReleaseRef(); // ansonsten sind wir fertig!
break;
}
diff --git a/svtools/source/table/defaultinputhandler.cxx b/svtools/source/table/defaultinputhandler.cxx
index b0c4a8c1bf9b..4ae16d6ca7e9 100644
--- a/svtools/source/table/defaultinputhandler.cxx
+++ b/svtools/source/table/defaultinputhandler.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -107,7 +107,7 @@ namespace svt { namespace table
bool bHandled = false;
Point aPoint = _rMEvt.GetPosPixel();
if(_rControl.getCurrentRow(aPoint) >= 0)
- {
+ {
if(m_bResize)
{
m_bResize = _rControl.endResizeColumn(aPoint);
diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx
index 1be46204a9d3..89b67d7ff593 100644
--- a/svtools/source/table/gridtablerenderer.cxx
+++ b/svtools/source/table/gridtablerenderer.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -119,13 +119,13 @@ namespace svt { namespace table
if(m_pImpl->rModel.getVerticalAlign() == 1)
nVerFlag = TEXT_DRAW_VCENTER;
else if(m_pImpl->rModel.getVerticalAlign() == 2)
- nVerFlag = TEXT_DRAW_BOTTOM;
+ nVerFlag = TEXT_DRAW_BOTTOM;
if(m_pImpl->rModel.getColumnModel(_nCol)->getHorizontalAlign() == 1)
nHorFlag = TEXT_DRAW_CENTER;
else if(m_pImpl->rModel.getColumnModel(_nCol)->getHorizontalAlign() == 2)
nHorFlag = TEXT_DRAW_RIGHT;
Rectangle aRect(_rArea);
- aRect.Left()+=4; aRect.Right()-=4;
+ aRect.Left()+=4; aRect.Right()-=4;
aRect.Bottom()-=2;
_rDevice.DrawText( aRect, sHeaderText, nHorFlag | nVerFlag | TEXT_DRAW_CLIP);
_rDevice.DrawLine( _rArea.BottomLeft(), _rArea.BottomRight() );
@@ -155,10 +155,10 @@ namespace svt { namespace table
aRowBackground = fieldColor;
if(aRowBackground2 == 0xFFFFFF)
aRowBackground2 = fieldColor;
- //if row is selected background color becomes blue, and lines should be also blue
+ //if row is selected background color becomes blue, and lines should be also blue
//if they aren't user defined
if(_bSelected)
- {
+ {
Color aSelected(_rStyle.GetHighlightColor());
aRowBackground = aSelected;
if(line == 0xFFFFFF)
@@ -175,9 +175,9 @@ namespace svt { namespace table
aRowBackground = aRowBackground2;
if(line == 0xFFFFFF)
_rDevice.SetLineColor(aRowBackground);
- else
+ else
_rDevice.SetLineColor(line);
- }
+ }
//fill the rows with alternating background colors if second background color is specified
else if(aRowBackground != fieldColor && line == 0xFFFFFF)
_rDevice.SetLineColor(aRowBackground);
@@ -191,7 +191,7 @@ namespace svt { namespace table
_rDevice.SetFillColor( aRowBackground );
_rDevice.DrawRect( _rRowArea );
- // TODO: active?
+ // TODO: active?
_rDevice.Pop();
(void)_bActive;
@@ -213,13 +213,13 @@ namespace svt { namespace table
if(m_pImpl->rModel.getVerticalAlign() == 1)
nVerFlag = TEXT_DRAW_VCENTER;
else if(m_pImpl->rModel.getVerticalAlign() == 2)
- nVerFlag = TEXT_DRAW_BOTTOM;
+ nVerFlag = TEXT_DRAW_BOTTOM;
if(m_pImpl->rModel.getColumnModel(0)->getHorizontalAlign() == 1)
nHorFlag = TEXT_DRAW_CENTER;
else if(m_pImpl->rModel.getColumnModel(0)->getHorizontalAlign() == 2)
nHorFlag = TEXT_DRAW_RIGHT;
Rectangle aRect(_rArea);
- aRect.Left()+=4; aRect.Right()-=4;
+ aRect.Left()+=4; aRect.Right()-=4;
aRect.Bottom()-=2;
_rDevice.DrawText( aRect, _rText, nHorFlag | nVerFlag | TEXT_DRAW_CLIP);
// TODO: active? selected?
@@ -249,7 +249,7 @@ namespace svt { namespace table
else
{
if(background2 != 0xFFFFFF && m_pImpl->nCurrentRow%2)
- {
+ {
if(line == 0xFFFFFF)
_rDevice.SetLineColor(background2);
else
@@ -278,14 +278,14 @@ namespace svt { namespace table
else if(m_pImpl->rModel.getColumnModel(_nColumn)->getHorizontalAlign() == 2)
imagePos.X() = aRect.Right() - imageSize.Width();
}
- else
+ else
imageSize.Width() = aRect.GetWidth();
if(aRect.GetHeight() > imageSize.Height())
{
if(m_pImpl->rModel.getVerticalAlign() == 1)
imagePos.Y() = aRect.Top()+((double)(aRect.GetHeight() - imageSize.Height()))/2;
else if(m_pImpl->rModel.getVerticalAlign() == 2)
- imagePos.Y() = aRect.Bottom() - imageSize.Height();
+ imagePos.Y() = aRect.Bottom() - imageSize.Height();
}
else
imageSize.Height() = aRect.GetHeight()-1;
@@ -338,23 +338,23 @@ namespace svt { namespace table
++aRect.Left(); --aRect.Right();
aRect.Top(); aRect.Bottom();
if(_bSelected)
- _rDevice.SetTextColor(_rStyle.GetHighlightTextColor());
+ _rDevice.SetTextColor(_rStyle.GetHighlightTextColor());
else if(m_pImpl->rModel.getTextColor() != 0x000000)
_rDevice.SetTextColor(m_pImpl->rModel.getTextColor());
else
- _rDevice.SetTextColor(_rStyle.GetFieldTextColor());
+ _rDevice.SetTextColor(_rStyle.GetFieldTextColor());
ULONG nHorFlag = TEXT_DRAW_LEFT;
ULONG nVerFlag = TEXT_DRAW_TOP;
if(m_pImpl->rModel.getVerticalAlign() == 1)
nVerFlag = TEXT_DRAW_VCENTER;
else if(m_pImpl->rModel.getVerticalAlign() == 2)
- nVerFlag = TEXT_DRAW_BOTTOM;
+ nVerFlag = TEXT_DRAW_BOTTOM;
if(m_pImpl->rModel.getColumnModel(_nColumn)->getHorizontalAlign() == 1)
nHorFlag = TEXT_DRAW_CENTER;
else if(m_pImpl->rModel.getColumnModel(_nColumn)->getHorizontalAlign() == 2)
nHorFlag = TEXT_DRAW_RIGHT;
Rectangle textRect(_rArea);
- textRect.Left()+=4; textRect.Right()-=4;
+ textRect.Left()+=4; textRect.Right()-=4;
textRect.Bottom()-=2;
_rDevice.DrawText( textRect, _rText, nHorFlag | nVerFlag | TEXT_DRAW_CLIP);
@@ -374,7 +374,7 @@ namespace svt { namespace table
{
(void)_rCursorRect;
_rView.HideFocus();
-
+
}
//........................................................................
diff --git a/svtools/source/table/tablecontrol.cxx b/svtools/source/table/tablecontrol.cxx
index 999bcbd84e61..8f7558e42116 100644
--- a/svtools/source/table/tablecontrol.cxx
+++ b/svtools/source/table/tablecontrol.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -273,7 +273,7 @@ namespace svt { namespace table
Reference< XAccessible > xAccParent = pParent->GetAccessible();
if( xAccParent.is() )
{
- m_pAccessTable->m_pAccessible = getAccessibleFactory().createAccessibleTableControl(
+ m_pAccessTable->m_pAccessible = getAccessibleFactory().createAccessibleTableControl(
xAccParent, *this
);
}
@@ -613,7 +613,7 @@ IMPL_LINK( TableControl, ImplMouseButtonDownHdl, MouseEvent*, pData )
{
CallEventListeners( VCLEVENT_WINDOW_MOUSEBUTTONDOWN, pData );
return 1;
-}
+}
IMPL_LINK( TableControl, ImplMouseButtonUpHdl, MouseEvent*, pData )
{
CallEventListeners( VCLEVENT_WINDOW_MOUSEBUTTONUP, pData );
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index 97904f640b0f..bb02692fbb03 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -159,7 +159,7 @@ namespace svt { namespace table
{
return 5 * 100;
}
- virtual void setRowHeight(TableMetrics _nRowHeight)
+ virtual void setRowHeight(TableMetrics _nRowHeight)
{
(void)_nRowHeight;
}
@@ -208,7 +208,7 @@ namespace svt { namespace table
{
return 0;
}
- virtual void setTextColor(::com::sun::star::util::Color )
+ virtual void setTextColor(::com::sun::star::util::Color )
{
}
virtual ::com::sun::star::util::Color getOddRowBackgroundColor()
@@ -232,14 +232,14 @@ namespace svt { namespace table
virtual void setEvenRowBackgroundColor(::com::sun::star::util::Color )
{
}
- virtual std::vector<std::vector< ::com::sun::star::uno::Any > >& getCellContent()
+ virtual std::vector<std::vector< ::com::sun::star::uno::Any > >& getCellContent()
{
return m_aCellContent;
}
virtual void setRowHeaderName(const std::vector<rtl::OUString>& )
{
}
- virtual std::vector<rtl::OUString>& getRowHeaderName()
+ virtual std::vector<rtl::OUString>& getRowHeaderName()
{
aRowHeaderNames.clear();
aRowHeaderNames.push_back(rtl::OUString::createFromAscii(""));
@@ -430,13 +430,13 @@ namespace svt { namespace table
,m_pVScroll ( NULL )
,m_pHScroll ( NULL )
,m_pScrollCorner ( NULL )
- ,m_pSelEngine ( )
- ,m_nRowSelected ( )
- ,m_pTableFunctionSet ( new TableFunctionSet(this ) )
- ,m_nAnchor (-1 )
- ,m_bResizing ( false )
- ,m_nResizingColumn ( 0 )
- ,m_bResizingGrid ( false )
+ ,m_pSelEngine ( )
+ ,m_nRowSelected ( )
+ ,m_pTableFunctionSet ( new TableFunctionSet(this ) )
+ ,m_nAnchor (-1 )
+ ,m_bResizing ( false )
+ ,m_nResizingColumn ( 0 )
+ ,m_bResizingGrid ( false )
#if DBG_UTIL
,m_nRequiredInvariants ( INV_SCROLL_POSITION )
#endif
@@ -526,7 +526,7 @@ namespace svt { namespace table
--_rCellArea.Right();
// determine the last row which is at least partially visible
- _rCellArea.Bottom() =
+ _rCellArea.Bottom() =
m_nColHeaderHeightPixel
+ impl_getVisibleRows( true ) * m_nRowHeightPixel
- 1;
@@ -551,7 +551,7 @@ namespace svt { namespace table
m_pInputHandler.reset();
m_nColumnCount = m_nRowCount = 0;
- m_nRowHeightPixel = m_rAntiImpl.LogicToPixel( Size( 0, m_pModel->getRowHeight() ), MAP_APPFONT ).Height();
+ m_nRowHeightPixel = m_rAntiImpl.LogicToPixel( Size( 0, m_pModel->getRowHeight() ), MAP_APPFONT ).Height();
if ( m_pModel->hasColumnHeaders() )
m_nColHeaderHeightPixel = m_rAntiImpl.LogicToPixel( Size( 0, m_pModel->getColumnHeaderHeight() ), MAP_APPFONT ).Height();
if ( m_pModel->hasRowHeaders() )
@@ -576,7 +576,7 @@ namespace svt { namespace table
return;
TableSize colCount = m_pModel->getColumnCount();
-
+
m_aColumnWidthsPixel.reserve( colCount );
m_aAccColumnWidthsPixel.reserve( colCount );
if(colCount>0)
@@ -652,13 +652,13 @@ namespace svt { namespace table
if(colWithoutFixedWidthsSum>0)
scalingFactor = gridWidthWithoutFixed/colWithoutFixedWidthsSum;
}
- }
+ }
for ( ColPos i = 0; i < colCount; ++i )
{
PColumnModel pColumn = m_pModel->getColumnModel( i );
DBG_ASSERT( !!pColumn, "TableControl_Impl::impl_ni_updateColumnWidths: invalid column returned by the model!" );
if ( !pColumn )
- continue;
+ continue;
if(pColumn->isResizable() && pColumn->getPreferredWidth() == 0)
{
aPrePixelWidths[i]*=scalingFactor;
@@ -873,7 +873,7 @@ namespace svt { namespace table
lcl_updateScrollbar(
m_rAntiImpl,
m_pHScroll,
- m_pModel->getHorizontalScrollbarVisibility(aDataCellPlayground.GetWidth(), m_aAccColumnWidthsPixel[m_nColumnCount-1]),
+ m_pModel->getHorizontalScrollbarVisibility(aDataCellPlayground.GetWidth(), m_aAccColumnWidthsPixel[m_nColumnCount-1]),
lcl_getColumnsVisibleWithin( aDataCellPlayground, m_nLeftColumn, *this, false ),
// visible units
m_nLeftColumn, // current position
@@ -890,8 +890,8 @@ namespace svt { namespace table
if( m_nLeftColumn + nVisibleUnits == nRange-1)
{
if(m_aAccColumnWidthsPixel[nRange-2] - m_aAccColumnWidthsPixel[m_nLeftColumn] + m_aColumnWidthsPixel[nRange-1]>aDataCellPlayground.GetWidth())
- {
- m_pHScroll->SetVisibleSize( nVisibleUnits -1 );
+ {
+ m_pHScroll->SetVisibleSize( nVisibleUnits -1 );
m_pHScroll->SetPageSize(nVisibleUnits -1);
}
}
@@ -1078,7 +1078,7 @@ namespace svt { namespace table
//to avoid double lines
if( aRowIterator.getRow() != 0 )
--aRect.Top();
- if(m_nLeftColumn != 0)
+ if(m_nLeftColumn != 0)
--aRect.Left();
else
{
@@ -1112,15 +1112,15 @@ namespace svt { namespace table
{
Image* pImage = new Image(xGraphic);
if(pImage!=NULL)
- pRenderer->PaintCellImage( aCell.getColumn(), isSelectedRow || isSelectedColumn, isActiveRow,
+ pRenderer->PaintCellImage( aCell.getColumn(), isSelectedRow || isSelectedColumn, isActiveRow,
*m_pDataWindow, aCell.getRect(), rStyle, pImage );
}
else
{
::rtl::OUString sContent = convertToString(rCellData);
- pRenderer->PaintCellString( aCell.getColumn(), isSelectedRow || isSelectedColumn, isActiveRow,
+ pRenderer->PaintCellString( aCell.getColumn(), isSelectedRow || isSelectedColumn, isActiveRow,
*m_pDataWindow, aCell.getRect(), rStyle, sContent );
- }
+ }
}
}
}
@@ -1292,7 +1292,7 @@ namespace svt { namespace table
}
break;
case cursorSelectRowUp:
- {
+ {
if(m_pSelEngine->GetSelectionMode() == NO_SELECTION)
return bSuccess = false;
else if(m_pSelEngine->GetSelectionMode() == SINGLE_SELECTION)
@@ -1371,7 +1371,7 @@ namespace svt { namespace table
m_nRowSelected.push_back(m_nCurRow);
invalidateSelectedRegion(m_nCurRow, m_nCurRow, rCells);
}
- }
+ }
m_pSelEngine->SetAnchor(TRUE);
m_nAnchor = m_nCurRow;
ensureVisible(m_nCurColumn, m_nCurRow, false);
@@ -1498,12 +1498,12 @@ namespace svt { namespace table
return bSuccess = false;
else if(m_pSelEngine->GetSelectionMode() == SINGLE_SELECTION)
return bSuccess = false;
- //select the region between the current and the last row
+ //select the region between the current and the last row
RowPos iter = m_nCurRow;
invalidateSelectedRegion(m_nCurRow, m_nRowCount-1, rCells);
//put the rows in the vector
while(iter<=m_nRowCount)
- {
+ {
if(!isRowSelected(m_nRowSelected, iter))
m_nRowSelected.push_back(iter);
++iter;
@@ -1535,7 +1535,7 @@ namespace svt { namespace table
if ( _bShow )
pRenderer->ShowCellCursor( *m_pDataWindow, aCellRect);
else
- pRenderer->HideCellCursor( *m_pDataWindow, aCellRect);
+ pRenderer->HideCellCursor( *m_pDataWindow, aCellRect);
}
}
@@ -2030,7 +2030,7 @@ namespace svt { namespace table
int gridHeight = m_pDataWindow->GetOutputSizePixel().Height();
if(lineHeight >= gridHeight)
lineHeight = gridHeight;
- m_pDataWindow->ShowTracking(Rectangle(Point(rPoint.X(),0), Size(1, lineHeight )),
+ m_pDataWindow->ShowTracking(Rectangle(Point(rPoint.X(),0), Size(1, lineHeight )),
SHOWTRACK_SPLIT | SHOWTRACK_WINDOW);
}
m_pDataWindow->SetPointer(aNewPointer);
@@ -2058,7 +2058,7 @@ namespace svt { namespace table
int maxWidth = m_rAntiImpl.LogicToPixel( Size( pColumn->getMaxWidth(), 0 ), MAP_APPFONT ).Width();
int minWidth = m_rAntiImpl.LogicToPixel( Size( pColumn->getMinWidth(), 0 ), MAP_APPFONT ).Width();
int resizeCol = m_nResizingColumn-m_nLeftColumn;
- //new position of mouse
+ //new position of mouse
int actX = rPoint.X();
//old position of right border
int oldX = m_aVisibleColumnWidthsPixel[resizeCol];
@@ -2102,7 +2102,7 @@ namespace svt { namespace table
m_bResizingGrid = true;
}
m_pDataWindow->ReleaseMouse();
- return m_bResizing;
+ return m_bResizing;
}
//-------------------------------------------------------------------------------
void TableControl_Impl::impl_ni_getAccVisibleColWidths()
@@ -2139,7 +2139,7 @@ namespace svt { namespace table
widthsPixel+=headerRowWidth;
}
int col = m_nLeftColumn;
- //add column width of the neighbour of the left column
+ //add column width of the neighbour of the left column
widthsPixel+=m_aColumnWidthsPixel[col-1];
//compute the sum of the new column widths
while(nVisCols)
@@ -2153,7 +2153,7 @@ namespace svt { namespace table
col++;
nVisCols--;
}
- //when the sum of all visible columns and the next to the left column is smaller than
+ //when the sum of all visible columns and the next to the left column is smaller than
//window width, then update m_nLeftColumn
if(widthsPixel<m_pDataWindow->GetOutputSizePixel().Width())
m_nLeftColumn--;
@@ -2168,7 +2168,7 @@ namespace svt { namespace table
::rtl::OUString sConvertString;
if(value >>= sConvertString)
sNewString = sConvertString;
- else if(value >>= nInt)
+ else if(value >>= nInt)
sNewString = sConvertString.valueOf(nInt);
else if(value >>= bBool)
sNewString = sConvertString.valueOf(bBool);
@@ -2220,7 +2220,7 @@ namespace svt { namespace table
}
//-------------------------------------------------------------------------------
void TableFunctionSet::BeginDrag()
- {
+ {
}
//-------------------------------------------------------------------------------
void TableFunctionSet::CreateAnchor()
@@ -2230,7 +2230,7 @@ namespace svt { namespace table
//-------------------------------------------------------------------------------
void TableFunctionSet::DestroyAnchor()
{
- m_pTableControl->m_nAnchor = -1;
+ m_pTableControl->m_nAnchor = -1;
}
//-------------------------------------------------------------------------------
BOOL TableFunctionSet::SetCursorAtPoint(const Point& rPoint, BOOL bDontSelectAtCursor)
@@ -2249,8 +2249,8 @@ namespace svt { namespace table
}
else if(m_pTableControl->m_nAnchor == m_pTableControl->m_nCurRow)
{
- //selecting region,
- int diff = m_pTableControl->m_nCurRow - curRow;
+ //selecting region,
+ int diff = m_pTableControl->m_nCurRow - curRow;
//selected region lies above the last selection
if( diff >= 0)
{
@@ -2268,7 +2268,7 @@ namespace svt { namespace table
}
//selected region lies beneath the last selected row
else
- {
+ {
while(m_pTableControl->m_nAnchor<=curRow)
{
bool isAlreadySelected = m_pTableControl->isRowSelected(m_pTableControl->m_nRowSelected, m_pTableControl->m_nAnchor);
@@ -2358,7 +2358,7 @@ namespace svt { namespace table
m_pTableControl->m_nRowSelected.clear();
}
}
-
+
//........................................................................
} } // namespace svt::table
//........................................................................
diff --git a/svtools/source/table/tablecontrol_impl.hxx b/svtools/source/table/tablecontrol_impl.hxx
index 3f10f9ce2830..6e3b485674e9 100644
--- a/svtools/source/table/tablecontrol_impl.hxx
+++ b/svtools/source/table/tablecontrol_impl.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,66 +63,66 @@ namespace svt { namespace table
friend class TableFunctionSet;
private:
/// the control whose impl-instance we implemnt
- TableControl& m_rAntiImpl;
+ TableControl& m_rAntiImpl;
/// the model of the table control
- PTableModel m_pModel;
+ PTableModel m_pModel;
/// the input handler to use, usually the input handler as provided by ->m_pModel
- PTableInputHandler m_pInputHandler;
+ PTableInputHandler m_pInputHandler;
/// the widths of the single columns, measured in pixel
- ArrayOfLong m_aColumnWidthsPixel;
+ ArrayOfLong m_aColumnWidthsPixel;
/** the accumulated widths of the single columns, i.e. their exclusive right borders,
<strong<not</strong> counting the space for a possible row header column
*/
- ArrayOfLong m_aAccColumnWidthsPixel;
+ ArrayOfLong m_aAccColumnWidthsPixel;
- ArrayOfLong m_aVisibleColumnWidthsPixel;
+ ArrayOfLong m_aVisibleColumnWidthsPixel;
/// the height of a single row in the table, measured in pixels
- long m_nRowHeightPixel;
+ long m_nRowHeightPixel;
/// the height of the column header row in the table, measured in pixels
- long m_nColHeaderHeightPixel;
+ long m_nColHeaderHeightPixel;
/// the width of the row header column in the table, measured in pixels
- long m_nRowHeaderWidthPixel;
+ long m_nRowHeaderWidthPixel;
/// the number of columns in the table control. Cached model value.
- TableSize m_nColumnCount;
+ TableSize m_nColumnCount;
/// the number of rows in the table control. Cached model value.
- TableSize m_nRowCount;
+ TableSize m_nRowCount;
- ColPos m_nCurColumn;
- RowPos m_nCurRow;
- ColPos m_nLeftColumn;
- RowPos m_nTopRow;
+ ColPos m_nCurColumn;
+ RowPos m_nCurRow;
+ ColPos m_nLeftColumn;
+ RowPos m_nTopRow;
- sal_Int32 m_nCursorHidden;
+ sal_Int32 m_nCursorHidden;
/** the window to contain all data content, including header bars
The window's upper left corner is at position (0,0), relative to the
table control, which is the direct parent of the data window.
*/
- TableDataWindow* m_pDataWindow;
+ TableDataWindow* m_pDataWindow;
/// the vertical scrollbar, if any
- ScrollBar* m_pVScroll;
+ ScrollBar* m_pVScroll;
/// the horizontal scrollbar, if any
- ScrollBar* m_pHScroll;
- ScrollBarBox* m_pScrollCorner;
+ ScrollBar* m_pHScroll;
+ ScrollBarBox* m_pScrollCorner;
//selection engine - for determining selection range, e.g. single, multiple
- SelectionEngine* m_pSelEngine;
+ SelectionEngine* m_pSelEngine;
//vector which contains the selected rows
- std::vector<RowPos> m_nRowSelected;
+ std::vector<RowPos> m_nRowSelected;
//part of selection engine
- TableFunctionSet* m_pTableFunctionSet;
+ TableFunctionSet* m_pTableFunctionSet;
//part of selection engine
- RowPos m_nAnchor;
- bool m_bResizing;
- ColPos m_nResizingColumn;
- bool m_bResizingGrid;
- rtl::OUString m_aTooltipText;
+ RowPos m_nAnchor;
+ bool m_bResizing;
+ ColPos m_nResizingColumn;
+ bool m_bResizingGrid;
+ rtl::OUString m_aTooltipText;
#if DBG_UTIL
#define INV_SCROLL_POSITION 1
/** represents a bitmask of invariants to check
-
+
Actually, impl_checkInvariants checks more invariants than denoted in this
bit mask, but only those present here can be disabled temporarily.
*/
@@ -139,10 +139,10 @@ namespace svt { namespace table
inline ColPos getCurColumn() const { return m_nCurColumn; }
inline RowPos getCurRow() const { return m_nCurRow; }
- inline void setCurRow(RowPos curRow){ m_nCurRow = curRow; }
+ inline void setCurRow(RowPos curRow){ m_nCurRow = curRow; }
inline RowPos getTopRow() const { return m_nTopRow; }
- inline long getRowCount() const { return m_nRowCount; }
- inline long getColumnCount() const { return m_nColumnCount; }
+ inline long getRowCount() const { return m_nRowCount; }
+ inline long getColumnCount() const { return m_nColumnCount; }
inline long getColHeaderHightPixel() const { return m_nColHeaderHeightPixel; }
@@ -183,7 +183,7 @@ namespace svt { namespace table
*/
void ensureVisible( ColPos _nColumn, RowPos _nRow, bool _bAcceptPartialVisibility );
/** returns the row, which contains the input point*/
- virtual RowPos getCurrentRow (const Point& rPoint);
+ virtual RowPos getCurrentRow (const Point& rPoint);
void setCursorAtCurrentCell(const Point& rPoint);
/** checks whether the vector with the selected rows contains the current row*/
@@ -191,7 +191,7 @@ namespace svt { namespace table
bool isRowSelected(RowPos current);
/** returns the position of the current row in the selection vector */
- int getRowSelectedNumber(const ::std::vector<RowPos>& selectedRows, RowPos current);
+ int getRowSelectedNumber(const ::std::vector<RowPos>& selectedRows, RowPos current);
/** _rCellRect contains the region, which should be invalidate after some action e.g. selecting row*/
void invalidateSelectedRegion(RowPos _nPrevRow, RowPos _nCurRow, Rectangle& _rCellRect );
/** to be called when a new row is added to the control*/
@@ -199,7 +199,7 @@ namespace svt { namespace table
/** returns the vector, which contains the selected rows*/
std::vector<RowPos>& getSelectedRows();
/** updates the vector, which contains the selected rows after removing the row nRowPos*/
- void removeSelectedRow(RowPos _nRowPos);
+ void removeSelectedRow(RowPos _nRowPos);
void invalidateRows();
void clearSelection();
// IAbstractTableControl
@@ -325,7 +325,7 @@ namespace svt { namespace table
void impl_ni_getAccVisibleColWidths();
void impl_updateLeftColumn();
- DECL_LINK( OnScroll, ScrollBar* );
+ DECL_LINK( OnScroll, ScrollBar* );
};
//see seleng.hxx, seleng.cxx, FunctionSet overridables, part of selection engine
class TableFunctionSet : public FunctionSet
@@ -339,7 +339,7 @@ namespace svt { namespace table
virtual ~TableFunctionSet();
virtual void BeginDrag();
- virtual void CreateAnchor();
+ virtual void CreateAnchor();
virtual void DestroyAnchor();
virtual BOOL SetCursorAtPoint(const Point& rPoint, BOOL bDontSelectAtCursor);
virtual BOOL IsSelectionAtPoint( const Point& rPoint );
diff --git a/svtools/source/table/tabledatawindow.cxx b/svtools/source/table/tabledatawindow.cxx
index 9607ec93036c..b4d22cec1b5a 100644
--- a/svtools/source/table/tabledatawindow.cxx
+++ b/svtools/source/table/tabledatawindow.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ namespace svt { namespace table
//--------------------------------------------------------------------
TableDataWindow::TableDataWindow( TableControl_Impl& _rTableControl )
:Window( &_rTableControl.getAntiImpl() )
- ,m_rTableControl ( _rTableControl )
+ ,m_rTableControl ( _rTableControl )
{
// by default, use the background as determined by the style settings
const Color aWindowColor( GetSettings().GetStyleSettings().GetFieldColor() );
@@ -85,14 +85,14 @@ namespace svt { namespace table
if ( !m_rTableControl.getInputHandler()->MouseMove( m_rTableControl, rMEvt ) )
{
if(m_rTableControl.getCurrentRow(aPoint)>=0 && m_rTableControl.isTooltipActive() )
- {
+ {
SetPointer(POINTER_ARROW);
rtl::OUString& rHelpText = m_rTableControl.setTooltip(aPoint);
Help::EnableBalloonHelp();
Window::SetHelpText( rHelpText.getStr());
}
else if(m_rTableControl.getCurrentRow(aPoint) == -1)
- {
+ {
if(Help::IsBalloonHelpEnabled())
Help::DisableBalloonHelp();
m_rTableControl.resizeColumn(aPoint);
@@ -113,7 +113,7 @@ namespace svt { namespace table
std::vector<RowPos> selectedRows(m_rTableControl.getSelectedRows());
if ( !m_rTableControl.getInputHandler()->MouseButtonDown( m_rTableControl, rMEvt ) )
Window::MouseButtonDown( rMEvt );
- else
+ else
{
if(nCurRow >= 0 && m_rTableControl.getSelEngine()->GetSelectionMode() != NO_SELECTION)
{
@@ -134,7 +134,7 @@ namespace svt { namespace table
if ( !m_rTableControl.getInputHandler()->MouseButtonUp( m_rTableControl, rMEvt ) )
Window::MouseButtonUp( rMEvt );
m_aMouseButtonUpHdl.Call((MouseEvent*) &rMEvt);
- m_rTableControl.getAntiImpl().GetFocus();
+ m_rTableControl.getAntiImpl().GetFocus();
}
//--------------------------------------------------------------------
void TableDataWindow::SetPointer( const Pointer& rPointer )
diff --git a/svtools/source/table/tablegeometry.cxx b/svtools/source/table/tablegeometry.cxx
index edd2a73cd624..19ab4bb2db45 100644
--- a/svtools/source/table/tablegeometry.cxx
+++ b/svtools/source/table/tablegeometry.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/table/tablegeometry.hxx b/svtools/source/table/tablegeometry.hxx
index 979a78d0a5a2..6667a6882ac2 100644
--- a/svtools/source/table/tablegeometry.hxx
+++ b/svtools/source/table/tablegeometry.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/drawerlayouter.cxx b/svtools/source/toolpanel/drawerlayouter.cxx
index 8d91e65d7bab..89354e25ce6c 100644
--- a/svtools/source/toolpanel/drawerlayouter.cxx
+++ b/svtools/source/toolpanel/drawerlayouter.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ namespace svt
const size_t nUpperBound = !!aActivePanel ? *aActivePanel : nPanelCount - 1;
for ( size_t i=0; i<=nUpperBound; ++i )
{
- sal_uInt32 nDrawerHeight = m_aDrawers[i]->GetPreferredHeightPixel();
+ long nDrawerHeight = m_aDrawers[i]->GetPreferredHeightPixel();
m_aDrawers[i]->SetPosSizePixel(
aUpperDrawerPos, Size( nWidth, nDrawerHeight ) );
aUpperDrawerPos.Move( 0, nDrawerHeight );
@@ -98,7 +98,7 @@ namespace svt
Point aLowerDrawerPos( i_rDeckPlayground.BottomLeft() );
for ( size_t j = nPanelCount - 1; j > nUpperBound; --j )
{
- sal_uInt32 nDrawerHeight = m_aDrawers[j]->GetPreferredHeightPixel();
+ long nDrawerHeight = m_aDrawers[j]->GetPreferredHeightPixel();
m_aDrawers[j]->SetPosSizePixel(
Point( aLowerDrawerPos.X(), aLowerDrawerPos.Y() - nDrawerHeight + 1 ),
Size( nWidth, nDrawerHeight )
diff --git a/svtools/source/toolpanel/dummypanel.cxx b/svtools/source/toolpanel/dummypanel.cxx
index a5f1a6907750..55dd33829ca9 100644
--- a/svtools/source/toolpanel/dummypanel.cxx
+++ b/svtools/source/toolpanel/dummypanel.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/dummypanel.hxx b/svtools/source/toolpanel/dummypanel.hxx
index 7d71dfb68d8b..742c067e6f88 100644
--- a/svtools/source/toolpanel/dummypanel.hxx
+++ b/svtools/source/toolpanel/dummypanel.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/paneldecklisteners.cxx b/svtools/source/toolpanel/paneldecklisteners.cxx
index 39a649e49de8..5f8202216f99 100644
--- a/svtools/source/toolpanel/paneldecklisteners.cxx
+++ b/svtools/source/toolpanel/paneldecklisteners.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/paneldecklisteners.hxx b/svtools/source/toolpanel/paneldecklisteners.hxx
index 5e794d52a1c6..4061e1cbb332 100644
--- a/svtools/source/toolpanel/paneldecklisteners.hxx
+++ b/svtools/source/toolpanel/paneldecklisteners.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/paneltabbar.cxx b/svtools/source/toolpanel/paneltabbar.cxx
index 168655c0fef7..6c3aeb1dabf2 100644
--- a/svtools/source/toolpanel/paneltabbar.cxx
+++ b/svtools/source/toolpanel/paneltabbar.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/paneltabbarpeer.cxx b/svtools/source/toolpanel/paneltabbarpeer.cxx
index ce22d1b7c914..9da8cce94d43 100644
--- a/svtools/source/toolpanel/paneltabbarpeer.cxx
+++ b/svtools/source/toolpanel/paneltabbarpeer.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/paneltabbarpeer.hxx b/svtools/source/toolpanel/paneltabbarpeer.hxx
index 9918756f9cc8..77e1a003863f 100644
--- a/svtools/source/toolpanel/paneltabbarpeer.hxx
+++ b/svtools/source/toolpanel/paneltabbarpeer.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/refbase.cxx b/svtools/source/toolpanel/refbase.cxx
index 3c1b0c502235..a5f5e3894599 100644
--- a/svtools/source/toolpanel/refbase.cxx
+++ b/svtools/source/toolpanel/refbase.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/tabbargeometry.cxx b/svtools/source/toolpanel/tabbargeometry.cxx
index 6dd90addd6a4..22999bf56263 100644
--- a/svtools/source/toolpanel/tabbargeometry.cxx
+++ b/svtools/source/toolpanel/tabbargeometry.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,7 +76,7 @@ namespace svt
}
//--------------------------------------------------------------------------------------------------------------
- /** transforms the given, possible rotated playground,
+ /** transforms the given, possible rotated playground,
*/
void lcl_rotate( const Rectangle& i_rReference, Rectangle& io_rArea, const bool i_bRight )
{
diff --git a/svtools/source/toolpanel/tabbargeometry.hxx b/svtools/source/toolpanel/tabbargeometry.hxx
index 86fcc98e7947..67f37f7cb969 100644
--- a/svtools/source/toolpanel/tabbargeometry.hxx
+++ b/svtools/source/toolpanel/tabbargeometry.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/tabitemdescriptor.hxx b/svtools/source/toolpanel/tabitemdescriptor.hxx
index f88b3a4a0f15..f025d97f5b89 100644
--- a/svtools/source/toolpanel/tabitemdescriptor.hxx
+++ b/svtools/source/toolpanel/tabitemdescriptor.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/tablayouter.cxx b/svtools/source/toolpanel/tablayouter.cxx
index 6d79d64043e0..ddfa4a1a310e 100644
--- a/svtools/source/toolpanel/tablayouter.cxx
+++ b/svtools/source/toolpanel/tablayouter.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/toolpanel.cxx b/svtools/source/toolpanel/toolpanel.cxx
index b340eb7f7d51..badb3e713e05 100644
--- a/svtools/source/toolpanel/toolpanel.cxx
+++ b/svtools/source/toolpanel/toolpanel.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/toolpanel.src b/svtools/source/toolpanel/toolpanel.src
index 5908a8fbcf98..32594b8c8efe 100644
--- a/svtools/source/toolpanel/toolpanel.src
+++ b/svtools/source/toolpanel/toolpanel.src
@@ -1,6 +1,6 @@
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/toolpanelcollection.cxx b/svtools/source/toolpanel/toolpanelcollection.cxx
index 13f738f507a7..fe2b7cd1c18d 100644
--- a/svtools/source/toolpanel/toolpanelcollection.cxx
+++ b/svtools/source/toolpanel/toolpanelcollection.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -140,7 +140,7 @@ namespace svt
if ( m_pData->aActivePanel == i_nPosition )
{
const ::boost::optional< size_t > aOldActive( m_pData->aActivePanel );
-
+
if ( i_nPosition + 1 < GetPanelCount() )
{
++*m_pData->aActivePanel;
diff --git a/svtools/source/toolpanel/toolpanelcollection.hxx b/svtools/source/toolpanel/toolpanelcollection.hxx
index 02100f33cf2a..5a25dbcc4c93 100644
--- a/svtools/source/toolpanel/toolpanelcollection.hxx
+++ b/svtools/source/toolpanel/toolpanelcollection.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/toolpaneldeck.cxx b/svtools/source/toolpanel/toolpaneldeck.cxx
index dd053f67082e..75350d972e9e 100644
--- a/svtools/source/toolpanel/toolpaneldeck.cxx
+++ b/svtools/source/toolpanel/toolpaneldeck.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/toolpaneldeckpeer.cxx b/svtools/source/toolpanel/toolpaneldeckpeer.cxx
index c0a6f041f06f..00b3034edc8c 100644
--- a/svtools/source/toolpanel/toolpaneldeckpeer.cxx
+++ b/svtools/source/toolpanel/toolpaneldeckpeer.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/toolpaneldeckpeer.hxx b/svtools/source/toolpanel/toolpaneldeckpeer.hxx
index ce9bb65d1d28..7f2b7e042b47 100644
--- a/svtools/source/toolpanel/toolpaneldeckpeer.hxx
+++ b/svtools/source/toolpanel/toolpaneldeckpeer.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/toolpanel/toolpaneldrawer.cxx b/svtools/source/toolpanel/toolpaneldrawer.cxx
index 076a99411e7d..ffc75be4bffd 100644
--- a/svtools/source/toolpanel/toolpaneldrawer.cxx
+++ b/svtools/source/toolpanel/toolpaneldrawer.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -152,7 +152,7 @@ namespace svt
i_rTextBox.Top() + ( GetTextHeight() - nHeight ) / 2
);
m_pPaintDevice->DrawImage( aPosition, aImage );
-
+
aExpansionIndicatorArea = Rectangle( aPosition, aImage.GetSizePixel() );
}
@@ -279,7 +279,7 @@ namespace svt
m_pPaintDevice.reset( new VirtualDevice( *this ) );
// fall through.
-
+
case DATACHANGED_FONTS:
case DATACHANGED_FONTSUBSTITUTION:
{
@@ -290,7 +290,7 @@ namespace svt
if ( IsControlFont() )
aFont.Merge( GetControlFont() );
SetZoomedPointFont( aFont );
-
+
// Color.
Color aColor;
if ( IsControlForeground() )
@@ -331,7 +331,7 @@ namespace svt
Rectangle aTextBox(
Point(),
Size(
- nAvailableWidth,
+ nAvailableWidth,
GetSettings().GetStyleSettings().GetTitleHeight()
)
);
diff --git a/svtools/source/toolpanel/toolpaneldrawer.hxx b/svtools/source/toolpanel/toolpaneldrawer.hxx
index 40a34b5b2431..e39df79a1542 100644
--- a/svtools/source/toolpanel/toolpaneldrawer.hxx
+++ b/svtools/source/toolpanel/toolpaneldrawer.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace svt
/** serves a single purpose - let ZoomText read the drawers ...
Strange enough, ZoomText does not read the drawers when they get the focus (in none of the combinations
- of AccessibleRoles I tried), except when it does have an AccessibleChild with the role LABEL. To "inject"
+ of AccessibleRoles I tried), except when it does have an AccessibleChild with the role LABEL. To "inject"
such a child into the A11Y hierarchy, we use this window here.
(We could also inject the A11Y component on the A11Y level only, but this would mean additional code. With
diff --git a/svtools/source/toolpanel/toolpaneldrawerpeer.cxx b/svtools/source/toolpanel/toolpaneldrawerpeer.cxx
index e6282c530a00..5f08e3e6b1cc 100644
--- a/svtools/source/toolpanel/toolpaneldrawerpeer.cxx
+++ b/svtools/source/toolpanel/toolpaneldrawerpeer.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,8 +73,8 @@ namespace svt
{
}
- virtual void ProcessWindowEvent( const VclWindowEvent& i_rVclWindowEvent );
- virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& i_rStateSet );
+ virtual void ProcessWindowEvent( const VclWindowEvent& i_rVclWindowEvent );
+ virtual void FillAccessibleStateSet( ::utl::AccessibleStateSetHelper& i_rStateSet );
protected:
~ToolPanelDrawerContext()
diff --git a/svtools/source/toolpanel/toolpaneldrawerpeer.hxx b/svtools/source/toolpanel/toolpaneldrawerpeer.hxx
index f2a7336b7033..ef6249a534c8 100644
--- a/svtools/source/toolpanel/toolpaneldrawerpeer.hxx
+++ b/svtools/source/toolpanel/toolpaneldrawerpeer.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/source/uno/addrtempuno.cxx b/svtools/source/uno/addrtempuno.cxx
index 072b54d3a3f6..1d47fdd5857d 100644
--- a/svtools/source/uno/addrtempuno.cxx
+++ b/svtools/source/uno/addrtempuno.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,8 +44,8 @@ namespace svt
{
// .......................................................................
-#define UNODIALOG_PROPERTY_ID_ALIASES 100
-#define UNODIALOG_PROPERTY_ALIASES "FieldMapping"
+#define UNODIALOG_PROPERTY_ID_ALIASES 100
+#define UNODIALOG_PROPERTY_ALIASES "FieldMapping"
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
@@ -62,10 +62,10 @@ namespace svt
,public ::comphelper::OPropertyArrayUsageHelper< OAddressBookSourceDialogUno >
{
protected:
- Sequence< AliasProgrammaticPair > m_aAliases;
+ Sequence< AliasProgrammaticPair > m_aAliases;
Reference< XDataSource > m_xDataSource;
::rtl::OUString m_sDataSourceName;
- ::rtl::OUString m_sTable;
+ ::rtl::OUString m_sTable;
protected:
OAddressBookSourceDialogUno(const Reference< XMultiServiceFactory >& _rxORB);
@@ -93,7 +93,7 @@ namespace svt
protected:
// OGenericUnoDialog overridables
- virtual Dialog* createDialog(Window* _pParent);
+ virtual Dialog* createDialog(Window* _pParent);
virtual void implInitialize(const com::sun::star::uno::Any& _rValue);
@@ -228,7 +228,7 @@ namespace svt
}
//------------------------------------------------------------------------------
- Dialog* OAddressBookSourceDialogUno::createDialog(Window* _pParent)
+ Dialog* OAddressBookSourceDialogUno::createDialog(Window* _pParent)
{
if ( m_xDataSource.is() && m_sTable.getLength() )
return new AddressBookSourceDialog(_pParent, m_aContext.getLegacyServiceFactory(), m_xDataSource, m_sDataSourceName, m_sTable, m_aAliases );
@@ -237,7 +237,7 @@ namespace svt
}
// .......................................................................
-} // namespace svt
+} // namespace svt
// .......................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/uno/contextmenuhelper.cxx b/svtools/source/uno/contextmenuhelper.cxx
index 65834dd8b3cc..13391a698bf5 100644
--- a/svtools/source/uno/contextmenuhelper.cxx
+++ b/svtools/source/uno/contextmenuhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@
#include <com/sun/star/ui/ImageType.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
-#include <osl/conditn.hxx>
+#include <osl/conditn.hxx>
#include <cppuhelper/weak.hxx>
#include <comphelper/processfactory.hxx>
#include <osl/mutex.hxx>
@@ -53,7 +53,7 @@
#include <toolkit/unohlp.hxx>
#include <toolkit/awt/vclxwindow.hxx>
#include <toolkit/awt/vclxmenu.hxx>
-
+
using namespace ::com::sun::star;
namespace svt
@@ -75,13 +75,13 @@ class StateEventHelper : public ::com::sun::star::frame::XStatusListener,
virtual uno::Any SAL_CALL queryInterface( const uno::Type& aType ) throw ( uno::RuntimeException);
virtual void SAL_CALL acquire() throw ();
virtual void SAL_CALL release() throw ();
-
+
// XEventListener
virtual void SAL_CALL disposing(const lang::EventObject& Source) throw( uno::RuntimeException );
-
+
// XStatusListener
virtual void SAL_CALL statusChanged(const frame::FeatureStateEvent& Event) throw( uno::RuntimeException );
-
+
private:
StateEventHelper();
StateEventHelper( const StateEventHelper& );
@@ -91,7 +91,7 @@ class StateEventHelper : public ::com::sun::star::frame::XStatusListener,
::rtl::OUString m_aCommandURL;
uno::Reference< frame::XDispatchProvider > m_xDispatchProvider;
uno::Reference< util::XURLTransformer > m_xURLTransformer;
- osl::Condition m_aCondition;
+ osl::Condition m_aCondition;
};
StateEventHelper::StateEventHelper(
@@ -113,13 +113,13 @@ uno::Any SAL_CALL StateEventHelper::queryInterface(
const uno::Type& aType )
throw ( uno::RuntimeException )
{
- uno::Any a = ::cppu::queryInterface(
+ uno::Any a = ::cppu::queryInterface(
aType,
SAL_STATIC_CAST( XStatusListener*, this ));
-
+
if( a.hasValue() )
return a;
-
+
return ::cppu::OWeakObject::queryInterface( aType );
}
@@ -135,7 +135,7 @@ throw ()
::cppu::OWeakObject::release();
}
-void SAL_CALL StateEventHelper::disposing(
+void SAL_CALL StateEventHelper::disposing(
const lang::EventObject& )
throw ( uno::RuntimeException )
{
@@ -145,7 +145,7 @@ throw ( uno::RuntimeException )
m_aCondition.set();
}
-void SAL_CALL StateEventHelper::statusChanged(
+void SAL_CALL StateEventHelper::statusChanged(
const frame::FeatureStateEvent& Event )
throw ( uno::RuntimeException )
{
@@ -157,9 +157,9 @@ throw ( uno::RuntimeException )
bool StateEventHelper::isCommandEnabled()
{
// Be sure that we cannot die during condition wait
- uno::Reference< frame::XStatusListener > xSelf(
+ uno::Reference< frame::XStatusListener > xSelf(
SAL_STATIC_CAST( frame::XStatusListener*, this ));
-
+
uno::Reference< frame::XDispatch > xDispatch;
util::URL aTargetURL;
{
@@ -167,7 +167,7 @@ bool StateEventHelper::isCommandEnabled()
if ( m_xDispatchProvider.is() && m_xURLTransformer.is() )
{
::rtl::OUString aSelf( RTL_CONSTASCII_USTRINGPARAM( "_self" ));
-
+
aTargetURL.Complete = m_aCommandURL;
m_xURLTransformer->parseStrict( aTargetURL );
@@ -193,7 +193,7 @@ bool StateEventHelper::isCommandEnabled()
// add/remove ourself to retrieve status by callback
xDispatch->addStatusListener( xSelf, aTargetURL );
xDispatch->removeStatusListener( xSelf, aTargetURL );
-
+
// wait for anwser
m_aCondition.wait();
}
@@ -208,19 +208,19 @@ bool StateEventHelper::isCommandEnabled()
SolarMutexGuard aSolarGuard;
bResult = m_bCurrentCommandEnabled;
}
-
+
return bResult;
}
/*************************************************************************/
-
+
struct ExecuteInfo
{
uno::Reference< frame::XDispatch > xDispatch;
util::URL aTargetURL;
uno::Sequence< beans::PropertyValue > aArgs;
};
-
+
static const PopupMenu* lcl_FindPopupFromItemId( const PopupMenu* pPopupMenu, sal_uInt16 nItemId )
{
if ( pPopupMenu )
@@ -234,7 +234,7 @@ static const PopupMenu* lcl_FindPopupFromItemId( const PopupMenu* pPopupMenu, sa
else
{
const PopupMenu* pResult( 0 );
-
+
const PopupMenu* pSubPopup = pPopupMenu->GetPopupMenu( i );
if ( pPopupMenu )
pResult = lcl_FindPopupFromItemId( pSubPopup, nItemId );
@@ -259,7 +259,7 @@ static ::rtl::OUString lcl_GetItemCommandRecursive( const PopupMenu* pPopupMenu,
/*************************************************************************/
ContextMenuHelper::ContextMenuHelper(
- const uno::Reference< frame::XFrame >& xFrame,
+ const uno::Reference< frame::XFrame >& xFrame,
bool bAutoRefresh ) :
m_xWeakFrame( xFrame ),
m_aSelf( RTL_CONSTASCII_USTRINGPARAM( "_self" )),
@@ -272,22 +272,22 @@ ContextMenuHelper::~ContextMenuHelper()
{
}
-void
-ContextMenuHelper::completeAndExecute(
- const Point& aPos,
+void
+ContextMenuHelper::completeAndExecute(
+ const Point& aPos,
PopupMenu& rPopupMenu )
{
SolarMutexGuard aSolarGuard;
-
+
associateUIConfigurationManagers();
completeMenuProperties( &rPopupMenu );
executePopupMenu( aPos, &rPopupMenu );
resetAssociations();
}
-void
-ContextMenuHelper::completeAndExecute(
- const Point& aPos,
+void
+ContextMenuHelper::completeAndExecute(
+ const Point& aPos,
const uno::Reference< awt::XPopupMenu >& xPopupMenu )
{
SolarMutexGuard aSolarGuard;
@@ -307,17 +307,17 @@ ContextMenuHelper::completeAndExecute(
}
}
-uno::Reference< awt::XPopupMenu >
-ContextMenuHelper::create(
+uno::Reference< awt::XPopupMenu >
+ContextMenuHelper::create(
const ::rtl::OUString& /*aPopupMenuResourceId*/ )
{
// NOT IMPLEMENTED YET!
return uno::Reference< awt::XPopupMenu >();
}
-bool
-ContextMenuHelper::createAndExecute(
- const Point& /*aPos*/,
+bool
+ContextMenuHelper::createAndExecute(
+ const Point& /*aPos*/,
const ::rtl::OUString& /*aPopupMenuResourceId*/ )
{
// NOT IMPLEMENTED YET!
@@ -326,8 +326,8 @@ ContextMenuHelper::createAndExecute(
// private member
-void
-ContextMenuHelper::executePopupMenu(
+void
+ContextMenuHelper::executePopupMenu(
const Point& rPos,
PopupMenu* pMenu )
{
@@ -354,19 +354,19 @@ ContextMenuHelper::executePopupMenu(
}
bool
-ContextMenuHelper::dispatchCommand(
+ContextMenuHelper::dispatchCommand(
const uno::Reference< ::frame::XFrame >& rFrame,
const ::rtl::OUString& aCommandURL )
{
if ( !m_xURLTransformer.is() )
{
- m_xURLTransformer = uno::Reference< util::XURLTransformer >(
+ m_xURLTransformer = uno::Reference< util::XURLTransformer >(
::comphelper::getProcessServiceFactory()->createInstance(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.util.URLTransformer" ))),
uno::UNO_QUERY );
}
-
+
util::URL aTargetURL;
uno::Reference< frame::XDispatch > xDispatch;
if ( m_xURLTransformer.is() )
@@ -374,7 +374,7 @@ ContextMenuHelper::dispatchCommand(
aTargetURL.Complete = aCommandURL;
m_xURLTransformer->parseStrict( aTargetURL );
- uno::Reference< frame::XDispatchProvider > xDispatchProvider(
+ uno::Reference< frame::XDispatchProvider > xDispatchProvider(
rFrame, uno::UNO_QUERY );
if ( xDispatchProvider.is() )
{
@@ -434,9 +434,9 @@ ContextMenuHelper::associateUIConfigurationManagers()
uno::Reference< ui::XUIConfigurationManagerSupplier > xSupplier( xModel, uno::UNO_QUERY );
if ( xSupplier.is() )
{
- uno::Reference< ui::XUIConfigurationManager > xDocUICfgMgr(
+ uno::Reference< ui::XUIConfigurationManager > xDocUICfgMgr(
xSupplier->getUIConfigurationManager(), uno::UNO_QUERY );
- m_xDocImageMgr = uno::Reference< ui::XImageManager >(
+ m_xDocImageMgr = uno::Reference< ui::XImageManager >(
xDocUICfgMgr->getImageManager(), uno::UNO_QUERY );
}
}
@@ -446,7 +446,7 @@ ContextMenuHelper::associateUIConfigurationManagers()
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.frame.ModuleManager" ))),
uno::UNO_QUERY );
-
+
uno::Reference< ui::XImageManager > xModuleImageManager;
rtl::OUString aModuleId;
if ( xModuleManager.is() )
@@ -461,11 +461,11 @@ ContextMenuHelper::associateUIConfigurationManagers()
uno::UNO_QUERY );
if ( xModuleCfgMgrSupplier.is() )
{
- uno::Reference< ui::XUIConfigurationManager > xUICfgMgr(
+ uno::Reference< ui::XUIConfigurationManager > xUICfgMgr(
xModuleCfgMgrSupplier->getUIConfigurationManager( aModuleId ));
if ( xUICfgMgr.is() )
{
- m_xModuleImageMgr = uno::Reference< ui::XImageManager >(
+ m_xModuleImageMgr = uno::Reference< ui::XImageManager >(
xUICfgMgr->getImageManager(), uno::UNO_QUERY );
}
}
@@ -503,8 +503,8 @@ ContextMenuHelper::associateUIConfigurationManagers()
return true;
}
-Image
-ContextMenuHelper::getImageFromCommandURL(
+Image
+ContextMenuHelper::getImageFromCommandURL(
const ::rtl::OUString& aCmdURL,
bool bHiContrast ) const
{
@@ -513,11 +513,11 @@ ContextMenuHelper::getImageFromCommandURL(
ui::ImageType::SIZE_DEFAULT );
if ( bHiContrast )
nImageType |= ui::ImageType::COLOR_HIGHCONTRAST;
-
+
uno::Sequence< uno::Reference< graphic::XGraphic > > aGraphicSeq;
uno::Sequence< ::rtl::OUString > aImageCmdSeq( 1 );
aImageCmdSeq[0] = aCmdURL;
-
+
if ( m_xDocImageMgr.is() )
{
try
@@ -537,7 +537,7 @@ ContextMenuHelper::getImageFromCommandURL(
{
}
}
-
+
if ( m_xModuleImageMgr.is() )
{
try
@@ -562,11 +562,11 @@ ContextMenuHelper::getImageFromCommandURL(
}
rtl::OUString
-ContextMenuHelper::getLabelFromCommandURL(
+ContextMenuHelper::getLabelFromCommandURL(
const ::rtl::OUString& aCmdURL ) const
{
::rtl::OUString aLabel;
-
+
if ( m_xUICommandLabels.is() )
{
try
@@ -601,8 +601,8 @@ ContextMenuHelper::getLabelFromCommandURL(
return aLabel;
}
-void
-ContextMenuHelper::completeMenuProperties(
+void
+ContextMenuHelper::completeMenuProperties(
Menu* pMenu )
{
// Retrieve some settings necessary to display complete context
@@ -610,21 +610,21 @@ ContextMenuHelper::completeMenuProperties(
const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
bool bShowMenuImages( rSettings.GetUseImagesInMenus() );
bool bIsHiContrast( rSettings.GetHighContrastMode() );
-
+
if ( pMenu )
{
uno::Reference< frame::XFrame > xFrame( m_xWeakFrame );
uno::Reference< frame::XDispatchProvider > xDispatchProvider( xFrame, uno::UNO_QUERY );
-
+
if ( !m_xURLTransformer.is() )
{
- m_xURLTransformer = uno::Reference< util::XURLTransformer >(
+ m_xURLTransformer = uno::Reference< util::XURLTransformer >(
::comphelper::getProcessServiceFactory()->createInstance(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.util.URLTransformer" ))),
uno::UNO_QUERY );
}
-
+
for ( sal_uInt16 nPos = 0; nPos < pMenu->GetItemCount(); nPos++ )
{
sal_uInt16 nId = pMenu->GetItemId( nPos );
@@ -634,7 +634,7 @@ ContextMenuHelper::completeMenuProperties(
if ( pMenu->GetItemType( nPos ) != MENUITEM_SEPARATOR )
{
::rtl::OUString aCmdURL( pMenu->GetItemCommand( nId ));
-
+
if ( bShowMenuImages )
{
Image aImage;
@@ -652,8 +652,8 @@ ContextMenuHelper::completeMenuProperties(
}
// Use helper to retrieve state of the command URL
- StateEventHelper* pHelper = new StateEventHelper(
- xDispatchProvider,
+ StateEventHelper* pHelper = new StateEventHelper(
+ xDispatchProvider,
m_xURLTransformer,
aCmdURL );
@@ -667,7 +667,7 @@ ContextMenuHelper::completeMenuProperties(
IMPL_STATIC_LINK_NOINSTANCE( ContextMenuHelper, ExecuteHdl_Impl, ExecuteInfo*, pExecuteInfo )
{
- // Release solar mutex to prevent deadlocks with clipboard thread
+ // Release solar mutex to prevent deadlocks with clipboard thread
const sal_uInt32 nRef = Application::ReleaseSolarMutex();
try
{
diff --git a/svtools/source/uno/framestatuslistener.cxx b/svtools/source/uno/framestatuslistener.cxx
index 5f1bc0de3ac1..a68f655ed732 100644
--- a/svtools/source/uno/framestatuslistener.cxx
+++ b/svtools/source/uno/framestatuslistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -195,7 +195,7 @@ void FrameStatusListener::addStatusListener( const rtl::OUString& aCommandURL )
{
SolarMutexGuard aSolarMutexGuard;
URLToDispatchMap::iterator pIter = m_aListenerMap.find( aCommandURL );
-
+
// Already in the list of status listener. Do nothing.
if ( pIter != m_aListenerMap.end() )
return;
@@ -214,13 +214,13 @@ void FrameStatusListener::addStatusListener( const rtl::OUString& aCommandURL )
Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
if ( m_xServiceManager.is() && xDispatchProvider.is() )
{
- Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
+ Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
UNO_QUERY );
aTargetURL.Complete = aCommandURL;
xURLTransformer->parseStrict( aTargetURL );
xDispatch = xDispatchProvider->queryDispatch( aTargetURL, ::rtl::OUString(), 0 );
-
+
xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY );
URLToDispatchMap::iterator aIter = m_aListenerMap.find( aCommandURL );
if ( aIter != m_aListenerMap.end() )
@@ -235,14 +235,14 @@ void FrameStatusListener::addStatusListener( const rtl::OUString& aCommandURL )
}
catch ( Exception& )
{
- }
+ }
}
else
m_aListenerMap.insert( URLToDispatchMap::value_type( aCommandURL, xDispatch ));
}
}
}
-
+
// Call without locked mutex as we are called back from dispatch implementation
try
{
@@ -257,7 +257,7 @@ void FrameStatusListener::addStatusListener( const rtl::OUString& aCommandURL )
void FrameStatusListener::removeStatusListener( const rtl::OUString& aCommandURL )
{
SolarMutexGuard aSolarMutexGuard;
-
+
URLToDispatchMap::iterator pIter = m_aListenerMap.find( aCommandURL );
if ( pIter != m_aListenerMap.end() )
{
@@ -267,13 +267,13 @@ void FrameStatusListener::removeStatusListener( const rtl::OUString& aCommandURL
try
{
- Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
+ Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
UNO_QUERY );
com::sun::star::util::URL aTargetURL;
aTargetURL.Complete = aCommandURL;
xURLTransformer->parseStrict( aTargetURL );
-
+
if ( xDispatch.is() && xStatusListener.is() )
xDispatch->removeStatusListener( xStatusListener, aTargetURL );
}
@@ -290,10 +290,10 @@ void FrameStatusListener::bindListener()
{
SolarMutexGuard aSolarMutexGuard;
-
+
if ( !m_bInitialized )
return;
-
+
// Collect all registered command URL's and store them temporary
Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
if ( m_xServiceManager.is() && xDispatchProvider.is() )
@@ -302,13 +302,13 @@ void FrameStatusListener::bindListener()
URLToDispatchMap::iterator pIter = m_aListenerMap.begin();
while ( pIter != m_aListenerMap.end() )
{
- Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
+ Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
UNO_QUERY );
com::sun::star::util::URL aTargetURL;
aTargetURL.Complete = pIter->first;
xURLTransformer->parseStrict( aTargetURL );
-
+
Reference< XDispatch > xDispatch( pIter->second );
if ( xDispatch.is() )
{
@@ -322,7 +322,7 @@ void FrameStatusListener::bindListener()
{
}
}
-
+
// Query for dispatch object. Old dispatch will be released with this, too.
try
{
@@ -332,14 +332,14 @@ void FrameStatusListener::bindListener()
{
}
pIter->second = xDispatch;
-
+
Listener aListener( aTargetURL, xDispatch );
aDispatchVector.push_back( aListener );
++pIter;
}
}
}
-
+
// Call without locked mutex as we are called back from dispatch implementation
if ( xStatusListener.is() )
{
@@ -361,10 +361,10 @@ void FrameStatusListener::bindListener()
void FrameStatusListener::unbindListener()
{
SolarMutexGuard aSolarMutexGuard;
-
+
if ( !m_bInitialized )
return;
-
+
// Collect all registered command URL's and store them temporary
Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
if ( m_xServiceManager.is() && xDispatchProvider.is() )
@@ -373,13 +373,13 @@ void FrameStatusListener::unbindListener()
URLToDispatchMap::iterator pIter = m_aListenerMap.begin();
while ( pIter != m_aListenerMap.end() )
{
- Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
+ Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
UNO_QUERY );
com::sun::star::util::URL aTargetURL;
aTargetURL.Complete = pIter->first;
xURLTransformer->parseStrict( aTargetURL );
-
+
Reference< XDispatch > xDispatch( pIter->second );
if ( xDispatch.is() )
{
@@ -404,20 +404,20 @@ void FrameStatusListener::updateStatus( const rtl::OUString aCommandURL )
Reference< XDispatch > xDispatch;
Reference< XStatusListener > xStatusListener;
com::sun::star::util::URL aTargetURL;
-
+
{
SolarMutexGuard aSolarMutexGuard;
-
+
if ( !m_bInitialized )
return;
-
+
// Try to find a dispatch object for the requested command URL
Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
xStatusListener = Reference< XStatusListener >( static_cast< OWeakObject* >( this ), UNO_QUERY );
if ( m_xServiceManager.is() && xDispatchProvider.is() )
{
- Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
+ Reference< XURLTransformer > xURLTransformer( m_xServiceManager->createInstance(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
UNO_QUERY );
aTargetURL.Complete = aCommandURL;
xURLTransformer->parseStrict( aTargetURL );
@@ -427,9 +427,9 @@ void FrameStatusListener::updateStatus( const rtl::OUString aCommandURL )
if ( xDispatch.is() && xStatusListener.is() )
{
- // Catch exception as we release our mutex, it is possible that someone else
+ // Catch exception as we release our mutex, it is possible that someone else
// has already disposed this instance!
- // Add/remove status listener to get a update status information from the
+ // Add/remove status listener to get a update status information from the
// requested command.
try
{
diff --git a/svtools/source/uno/generictoolboxcontroller.cxx b/svtools/source/uno/generictoolboxcontroller.cxx
index 5d3a3bcdd53c..5457b35255dd 100644
--- a/svtools/source/uno/generictoolboxcontroller.cxx
+++ b/svtools/source/uno/generictoolboxcontroller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,11 +31,11 @@
#include <svtools/generictoolboxcontroller.hxx>
//_________________________________________________________________________________________________________________
-// my own includes
+// my own includes
//_________________________________________________________________________________________________________________
//_________________________________________________________________________________________________________________
-// interface includes
+// interface includes
//_________________________________________________________________________________________________________________
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
@@ -45,7 +45,7 @@
#include <com/sun/star/frame/status/ItemState.hpp>
//_________________________________________________________________________________________________________________
-// other includes
+// other includes
//_________________________________________________________________________________________________________________
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
diff --git a/svtools/source/uno/genericunodialog.cxx b/svtools/source/uno/genericunodialog.cxx
index b1c050fe3eff..155bd158e659 100644
--- a/svtools/source/uno/genericunodialog.cxx
+++ b/svtools/source/uno/genericunodialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -369,7 +369,7 @@ IMPL_LINK( OGenericUnoDialog, OnDialogDying, VclWindowEvent*, _pEvent )
}
//.........................................................................
-} // namespace svt
+} // namespace svt
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/uno/miscservices.cxx b/svtools/source/uno/miscservices.cxx
index 7219155e62b4..7a3aeb675b9e 100644
--- a/svtools/source/uno/miscservices.cxx
+++ b/svtools/source/uno/miscservices.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,8 +67,8 @@ extern sdecl::ServiceDecl const serviceDecl;
// for CreateInstance functions implemented elsewhere, while the function is within a namespace
#define DECLARE_CREATEINSTANCE_NAMESPACE( nmspe, ImplName ) \
- namespace nmspe { \
- Reference< XInterface > SAL_CALL ImplName##_CreateInstance( const Reference< XMultiServiceFactory >& ); \
+ namespace nmspe { \
+ Reference< XInterface > SAL_CALL ImplName##_CreateInstance( const Reference< XMultiServiceFactory >& ); \
}
namespace
@@ -79,7 +79,7 @@ namespace
::svt::uno::Wizard::Create,
::svt::uno::Wizard::getImplementationName_static,
::svt::uno::Wizard::getSupportedServiceNames_static,
- ::cppu::createSingleComponentFactory, NULL, 0
+ ::cppu::createSingleComponentFactory, NULL, 0
},
{ 0, 0, 0, 0, 0, 0 }
};
@@ -110,7 +110,7 @@ SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo (
Reference< XRegistryKey > xRegistryKey (
reinterpret_cast< XRegistryKey* >( _pRegistryKey ));
Reference< XRegistryKey > xNewKey;
- uno::Sequence< ::rtl::OUString > aServices;
+ uno::Sequence< ::rtl::OUString > aServices;
xNewKey = xRegistryKey->createKey (
OUString::createFromAscii( "/com.sun.star.comp.svtools.OAddressBookSourceDialogUno/UNO/SERVICES" ) );
@@ -123,23 +123,23 @@ SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo (
OUString::createFromAscii( "com.sun.star.ui.dialogs.FilterOptionsDialog" ) );
// GraphicProvider
- xNewKey = reinterpret_cast< registry::XRegistryKey * >( _pRegistryKey )->createKey(
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
- GraphicProvider::getImplementationName_Static() +
+ xNewKey = reinterpret_cast< registry::XRegistryKey * >( _pRegistryKey )->createKey(
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
+ GraphicProvider::getImplementationName_Static() +
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) );
- aServices = GraphicProvider::getSupportedServiceNames_Static();
+ aServices = GraphicProvider::getSupportedServiceNames_Static();
int i;
for( i = 0; i < aServices.getLength(); i++ )
xNewKey->createKey( aServices.getConstArray()[ i ] );
-
+
// GraphicRendererVCL
- xNewKey = reinterpret_cast< registry::XRegistryKey * >( _pRegistryKey )->createKey(
- ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
- GraphicRendererVCL::getImplementationName_Static() +
+ xNewKey = reinterpret_cast< registry::XRegistryKey * >( _pRegistryKey )->createKey(
+ ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) +
+ GraphicRendererVCL::getImplementationName_Static() +
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) );
-
- aServices = ( GraphicRendererVCL::getSupportedServiceNames_Static() );
+
+ aServices = ( GraphicRendererVCL::getSupportedServiceNames_Static() );
for( i = 0; i < aServices.getLength(); i++ )
xNewKey->createKey( aServices.getConstArray()[ i ] );
@@ -186,7 +186,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory (
}
else if( 0 == GraphicProvider::getImplementationName_Static().compareToAscii( pImplementationName ) )
{
- xFactory = ::cppu::createOneInstanceFactory(
+ xFactory = ::cppu::createOneInstanceFactory(
reinterpret_cast< lang::XMultiServiceFactory * >( _pServiceManager ),
GraphicProvider::getImplementationName_Static(),
GraphicProvider_CreateInstance,
@@ -194,13 +194,13 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory (
}
else if( 0 == GraphicRendererVCL::getImplementationName_Static().compareToAscii( pImplementationName ) )
{
- xFactory = ::cppu::createOneInstanceFactory(
+ xFactory = ::cppu::createOneInstanceFactory(
reinterpret_cast< lang::XMultiServiceFactory * >( _pServiceManager ),
GraphicRendererVCL::getImplementationName_Static(),
GraphicRendererVCL_CreateInstance,
GraphicRendererVCL::getSupportedServiceNames_Static() );
}
- else
+ else
{
pResult = component_getFactoryHelper( pImplementationName, reinterpret_cast< lang::XMultiServiceFactory * >( _pServiceManager ),reinterpret_cast< registry::XRegistryKey* >( pRegistryKey ), serviceDecl );
if ( !pResult )
@@ -216,6 +216,6 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory (
return pResult;
}
-} // "C"
+} // "C"
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/source/uno/popupmenucontrollerbase.cxx b/svtools/source/uno/popupmenucontrollerbase.cxx
index bf828175532f..3ec62db42cb0 100644
--- a/svtools/source/uno/popupmenucontrollerbase.cxx
+++ b/svtools/source/uno/popupmenucontrollerbase.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,13 +30,13 @@
#include "precompiled_svtools.hxx"
//_________________________________________________________________________________________________________________
-// my own includes
+// my own includes
//_________________________________________________________________________________________________________________
#include "svtools/popupmenucontrollerbase.hxx"
//_________________________________________________________________________________________________________________
-// interface includes
+// interface includes
//_________________________________________________________________________________________________________________
#include <com/sun/star/awt/XDevice.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
@@ -46,7 +46,7 @@
#include <com/sun/star/awt/XMenuExtended.hpp>
//_________________________________________________________________________________________________________________
-// includes of other projects
+// includes of other projects
//_________________________________________________________________________________________________________________
#include <vcl/menu.hxx>
@@ -56,9 +56,9 @@
#include <osl/mutex.hxx>
//_________________________________________________________________________________________________________________
-// Defines
+// Defines
//_________________________________________________________________________________________________________________
-//
+//
using ::rtl::OUString;
@@ -113,14 +113,14 @@ void PopupMenuControllerBase::resetPopupMenu( com::sun::star::uno::Reference< co
if ( pPopupMenu )
{
SolarMutexGuard aSolarMutexGuard;
-
+
PopupMenu* pVCLPopupMenu = (PopupMenu *)pPopupMenu->GetMenu();
pVCLPopupMenu->Clear();
}
}
}
-void SAL_CALL PopupMenuControllerBase::disposing()
+void SAL_CALL PopupMenuControllerBase::disposing()
{
// Reset our members and set disposed flag
osl::MutexGuard aLock( m_aMutex );
@@ -160,7 +160,7 @@ void SAL_CALL PopupMenuControllerBase::highlight( const awt::MenuEvent& ) throw
void PopupMenuControllerBase::impl_select(const Reference< XDispatch >& _xDispatch,const URL& aURL)
{
- Sequence<PropertyValue> aArgs;
+ Sequence<PropertyValue> aArgs;
OSL_ENSURE(_xDispatch.is(),"PopupMenuControllerBase::impl_select: No dispatch");
if ( _xDispatch.is() )
_xDispatch->dispatch( aURL, aArgs );
@@ -189,7 +189,7 @@ void PopupMenuControllerBase::dispatchCommand( const ::rtl::OUString& sCommandUR
try
{
Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY_THROW );
- URL aURL;
+ URL aURL;
aURL.Complete = sCommandURL;
m_xURLTransformer->parseStrict( aURL );
@@ -220,8 +220,8 @@ void SAL_CALL PopupMenuControllerBase::deactivate( const awt::MenuEvent& ) throw
}
void SAL_CALL PopupMenuControllerBase::updatePopupMenu() throw ( ::com::sun::star::uno::RuntimeException )
-{
- osl::ClearableMutexGuard aLock( m_aMutex );
+{
+ osl::ClearableMutexGuard aLock( m_aMutex );
throwIfDisposed();
aLock.clear();
@@ -230,7 +230,7 @@ void SAL_CALL PopupMenuControllerBase::updatePopupMenu() throw ( ::com::sun::sta
void SAL_CALL PopupMenuControllerBase::updateCommand( const rtl::OUString& rCommandURL )
{
- osl::ClearableMutexGuard aLock( m_aMutex );
+ osl::ClearableMutexGuard aLock( m_aMutex );
Reference< XStatusListener > xStatusListener( static_cast< OWeakObject* >( this ), UNO_QUERY );
Reference< XDispatch > xDispatch( m_xDispatch );
URL aTargetURL;
@@ -248,17 +248,17 @@ void SAL_CALL PopupMenuControllerBase::updateCommand( const rtl::OUString& rComm
// XDispatchProvider
-Reference< XDispatch > SAL_CALL
-PopupMenuControllerBase::queryDispatch(
- const URL& /*aURL*/,
- const rtl::OUString& /*sTarget*/,
- sal_Int32 /*nFlags*/ )
+Reference< XDispatch > SAL_CALL
+PopupMenuControllerBase::queryDispatch(
+ const URL& /*aURL*/,
+ const rtl::OUString& /*sTarget*/,
+ sal_Int32 /*nFlags*/ )
throw( RuntimeException )
{
// must be implemented by subclass
osl::MutexGuard aLock( m_aMutex );
throwIfDisposed();
-
+
return Reference< XDispatch >();
}
@@ -269,7 +269,7 @@ Sequence< Reference< XDispatch > > SAL_CALL PopupMenuControllerBase::queryDispat
osl::ClearableMutexGuard aLock( m_aMutex );
throwIfDisposed();
aLock.clear();
-
+
sal_Int32 nCount = lDescriptor.getLength();
uno::Sequence< uno::Reference< frame::XDispatch > > lDispatcher( nCount );
@@ -285,10 +285,10 @@ Sequence< Reference< XDispatch > > SAL_CALL PopupMenuControllerBase::queryDispat
}
// XDispatch
-void SAL_CALL
+void SAL_CALL
PopupMenuControllerBase::dispatch(
- const URL& /*aURL*/,
- const Sequence< PropertyValue >& /*seqProperties*/ )
+ const URL& /*aURL*/,
+ const Sequence< PropertyValue >& /*seqProperties*/ )
throw( ::com::sun::star::uno::RuntimeException )
{
// must be implemented by subclass
@@ -296,16 +296,16 @@ throw( ::com::sun::star::uno::RuntimeException )
throwIfDisposed();
}
-void SAL_CALL
-PopupMenuControllerBase::addStatusListener(
+void SAL_CALL
+PopupMenuControllerBase::addStatusListener(
const Reference< XStatusListener >& xControl,
- const URL& aURL )
+ const URL& aURL )
throw( ::com::sun::star::uno::RuntimeException )
{
osl::ResettableMutexGuard aLock( m_aMutex );
throwIfDisposed();
aLock.clear();
-
+
bool bStatusUpdate( false );
rBHelper.addListener( ::getCppuType( &xControl ), xControl );
@@ -313,7 +313,7 @@ throw( ::com::sun::star::uno::RuntimeException )
if ( aURL.Complete.indexOf( m_aBaseURL ) == 0 )
bStatusUpdate = true;
aLock.clear();
-
+
if ( bStatusUpdate )
{
// Dummy update for popup menu controllers
@@ -326,9 +326,9 @@ throw( ::com::sun::star::uno::RuntimeException )
}
}
-void SAL_CALL PopupMenuControllerBase::removeStatusListener(
- const Reference< XStatusListener >& xControl,
- const URL& /*aURL*/ )
+void SAL_CALL PopupMenuControllerBase::removeStatusListener(
+ const Reference< XStatusListener >& xControl,
+ const URL& /*aURL*/ )
throw( ::com::sun::star::uno::RuntimeException )
{
rBHelper.removeListener( ::getCppuType( &xControl ), xControl );
@@ -340,18 +340,18 @@ throw( ::com::sun::star::uno::RuntimeException )
sal_Int32 nQueryPart( 0 );
sal_Int32 nSchemePart( 0 );
rtl::OUString aMainURL( RTL_CONSTASCII_USTRINGPARAM( "vnd.sun.star.popup:" ));
-
+
nSchemePart = aURL.indexOf( ':' );
- if (( nSchemePart > 0 ) &&
+ if (( nSchemePart > 0 ) &&
( aURL.getLength() > ( nSchemePart+1 )))
{
nQueryPart = aURL.indexOf( '?', nSchemePart );
if ( nQueryPart > 0 )
aMainURL += aURL.copy( nSchemePart, nQueryPart-nSchemePart );
else if ( nQueryPart == -1 )
- aMainURL += aURL.copy( nSchemePart+1 );
+ aMainURL += aURL.copy( nSchemePart+1 );
}
-
+
return aMainURL;
}
@@ -359,14 +359,14 @@ throw( ::com::sun::star::uno::RuntimeException )
void SAL_CALL PopupMenuControllerBase::initialize( const Sequence< Any >& aArguments ) throw ( Exception, RuntimeException )
{
osl::MutexGuard aLock( m_aMutex );
-
+
sal_Bool bInitalized( m_bInitialized );
if ( !bInitalized )
{
PropertyValue aPropValue;
rtl::OUString aCommandURL;
Reference< XFrame > xFrame;
-
+
for ( int i = 0; i < aArguments.getLength(); i++ )
{
if ( aArguments[i] >>= aPropValue )
@@ -392,17 +392,17 @@ void SAL_CALL PopupMenuControllerBase::setPopupMenu( const Reference< awt::XPopu
{
osl::MutexGuard aLock( m_aMutex );
throwIfDisposed();
-
+
if ( m_xFrame.is() && !m_xPopupMenu.is() )
{
// Create popup menu on demand
SolarMutexGuard aSolarMutexGuard;
-
+
m_xPopupMenu = xPopupMenu;
m_xPopupMenu->addMenuListener( Reference< awt::XMenuListener >( (OWeakObject*)this, UNO_QUERY ));
-
+
Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
-
+
URL aTargetURL;
aTargetURL.Complete = m_aCommandURL;
m_xURLTransformer->parseStrict( aTargetURL );
@@ -411,7 +411,7 @@ void SAL_CALL PopupMenuControllerBase::setPopupMenu( const Reference< awt::XPopu
impl_setPopupMenu();
updatePopupMenu();
- }
+ }
}
void PopupMenuControllerBase::impl_setPopupMenu()
{
diff --git a/svtools/source/uno/popupwindowcontroller.cxx b/svtools/source/uno/popupwindowcontroller.cxx
index 03368204401b..989007269bd0 100644
--- a/svtools/source/uno/popupwindowcontroller.cxx
+++ b/svtools/source/uno/popupwindowcontroller.cxx
@@ -158,13 +158,13 @@ PopupWindowController::~PopupWindowController()
}
// XInterface
-Any SAL_CALL PopupWindowController::queryInterface( const Type& aType )
+Any SAL_CALL PopupWindowController::queryInterface( const Type& aType )
throw (RuntimeException)
{
Any a( ToolboxController::queryInterface( aType ) );
if ( a.hasValue() )
return a;
-
+
return ::cppu::queryInterface( aType, static_cast< lang::XServiceInfo* >( this ));
}
@@ -243,13 +243,13 @@ Reference< awt::XWindow > SAL_CALL PopupWindowController::createPopupWindow() th
{
pWin->EnableDocking(true);
mpImpl->SetPopupWindow(pWin,pToolBox);
- ::Window::GetDockingManager()->StartPopupMode( pToolBox, pWin, FLOATWIN_POPUPMODE_NOFOCUSCLOSE|FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE |FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE );
+ ::Window::GetDockingManager()->StartPopupMode( pToolBox, pWin, FLOATWIN_POPUPMODE_NOFOCUSCLOSE|FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE |FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE );
}
}
return Reference< awt::XWindow >();
}
-Reference< awt::XWindow > SAL_CALL PopupWindowController::createItemWindow( const Reference< awt::XWindow >& /*Parent*/ )
+Reference< awt::XWindow > SAL_CALL PopupWindowController::createItemWindow( const Reference< awt::XWindow >& /*Parent*/ )
throw (RuntimeException)
{
return Reference< awt::XWindow >();
diff --git a/svtools/source/uno/statusbarcontroller.cxx b/svtools/source/uno/statusbarcontroller.cxx
index 936853be6d10..c23be17f77b5 100644
--- a/svtools/source/uno/statusbarcontroller.cxx
+++ b/svtools/source/uno/statusbarcontroller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -674,10 +674,10 @@ void StatusbarController::updateStatus( const rtl::OUString aCommandURL )
::Rectangle StatusbarController::getControlRect() const
{
::Rectangle aRect;
-
+
{
SolarMutexGuard aSolarMutexGuard;
-
+
if ( m_bDisposed )
throw DisposedException();
diff --git a/svtools/source/uno/svtxgridcontrol.cxx b/svtools/source/uno/svtxgridcontrol.cxx
index 1e82f2f729ef..bf3ec2209bae 100644
--- a/svtools/source/uno/svtxgridcontrol.cxx
+++ b/svtools/source/uno/svtxgridcontrol.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,7 +68,7 @@ SVTXGridControl::SVTXGridControl()
m_xDataModel(0),
m_xColumnModel(0),
m_bHasColumnHeaders(false),
- m_bHasRowHeaders(false),
+ m_bHasRowHeaders(false),
m_bVScroll(false),
m_bHScroll(false),
m_bUpdate(false),
@@ -149,11 +149,11 @@ void SVTXGridControl::setProperty( const ::rtl::OUString& PropertyName, const An
SelectionMode eSelMode;
switch( eSelectionType )
{
- case SelectionType_SINGLE: eSelMode = SINGLE_SELECTION; break;
- case SelectionType_RANGE: eSelMode = RANGE_SELECTION; break;
- case SelectionType_MULTI: eSelMode = MULTIPLE_SELECTION; break;
- // case SelectionType_NONE:
- default: eSelMode = NO_SELECTION; break;
+ case SelectionType_SINGLE: eSelMode = SINGLE_SELECTION; break;
+ case SelectionType_RANGE: eSelMode = RANGE_SELECTION; break;
+ case SelectionType_MULTI: eSelMode = MULTIPLE_SELECTION; break;
+ // case SelectionType_NONE:
+ default: eSelMode = NO_SELECTION; break;
}
if( pTable->getSelEngine()->GetSelectionMode() != eSelMode )
pTable->getSelEngine()->SetSelectionMode( eSelMode );
@@ -242,16 +242,16 @@ void SVTXGridControl::setProperty( const ::rtl::OUString& PropertyName, const An
{
switch( vAlign )
{
- case com::sun::star::style::VerticalAlignment_TOP: m_pTableModel->setVerticalAlign(com::sun::star::style::VerticalAlignment(0)); break;
- case com::sun::star::style::VerticalAlignment_MIDDLE: m_pTableModel->setVerticalAlign(com::sun::star::style::VerticalAlignment(1)); break;
- case com::sun::star::style::VerticalAlignment_BOTTOM: m_pTableModel->setVerticalAlign(com::sun::star::style::VerticalAlignment(2)); break;
+ case com::sun::star::style::VerticalAlignment_TOP: m_pTableModel->setVerticalAlign(com::sun::star::style::VerticalAlignment(0)); break;
+ case com::sun::star::style::VerticalAlignment_MIDDLE: m_pTableModel->setVerticalAlign(com::sun::star::style::VerticalAlignment(1)); break;
+ case com::sun::star::style::VerticalAlignment_BOTTOM: m_pTableModel->setVerticalAlign(com::sun::star::style::VerticalAlignment(2)); break;
default: m_pTableModel->setVerticalAlign(com::sun::star::style::VerticalAlignment(0)); break;
}
}
break;
}
- case BASEPROPERTY_GRID_SHOWCOLUMNHEADER:
+ case BASEPROPERTY_GRID_SHOWCOLUMNHEADER:
{
sal_Bool colHeader = true;
if( aValue >>= colHeader )
@@ -293,12 +293,12 @@ void SVTXGridControl::setProperty( const ::rtl::OUString& PropertyName, const An
}
m_pTableModel->getCellContent().push_back(newRow);
}
-
+
Sequence< ::rtl::OUString > rowHeaders = m_xDataModel->getRowHeaders();
std::vector< rtl::OUString > newRow(
comphelper::sequenceToContainer< std::vector<rtl::OUString > >(rowHeaders));
m_pTableModel->setRowCount(m_xDataModel->getRowCount());
- m_pTableModel->setRowHeaderName(newRow);
+ m_pTableModel->setRowHeaderName(newRow);
}
}
else
@@ -312,7 +312,7 @@ void SVTXGridControl::setProperty( const ::rtl::OUString& PropertyName, const An
else
m_pTableModel->setRowHeight(m_xDataModel->getRowHeight());
m_pTableModel->setRowHeaderWidth(m_xDataModel->getRowHeaderWidth());
- }
+ }
break;
}
case BASEPROPERTY_GRID_COLUMNMODEL:
@@ -378,11 +378,11 @@ Any SVTXGridControl::getProperty( const ::rtl::OUString& PropertyName ) throw(Ru
SelectionMode eSelMode = pTable->getSelEngine()->GetSelectionMode();
switch( eSelMode )
{
- case SINGLE_SELECTION: eSelectionType = SelectionType_SINGLE; break;
- case RANGE_SELECTION: eSelectionType = SelectionType_RANGE; break;
+ case SINGLE_SELECTION: eSelectionType = SelectionType_SINGLE; break;
+ case RANGE_SELECTION: eSelectionType = SelectionType_RANGE; break;
case MULTIPLE_SELECTION:eSelectionType = SelectionType_MULTI; break;
-// case NO_SELECTION:
- default: eSelectionType = SelectionType_NONE; break;
+// case NO_SELECTION:
+ default: eSelectionType = SelectionType_NONE; break;
}
return Any( eSelectionType );
}
@@ -399,7 +399,7 @@ Any SVTXGridControl::getProperty( const ::rtl::OUString& PropertyName ) throw(Ru
case BASEPROPERTY_HSCROLL:
return Any ( m_bHScroll);
case BASEPROPERTY_VSCROLL:
- return Any ( m_bVScroll);
+ return Any ( m_bVScroll);
}
}
return VCLXWindow::getProperty( PropertyName );
@@ -451,15 +451,15 @@ void SAL_CALL SVTXGridControl::rowAdded(const ::com::sun::star::awt::grid::GridD
{
UnoControlTableColumn* tableColumn = new UnoControlTableColumn();
m_pTableModel->getColumnModel().push_back((PColumnModel)tableColumn);
- m_xColumnModel->getColumn(col)->addColumnListener(listener);
+ m_xColumnModel->getColumn(col)->addColumnListener(listener);
}
-
+
}
else if((unsigned int)rawRowData.getLength()!=(unsigned)colCount)
throw GridInvalidDataException(rtl::OUString::createFromAscii("The column count doesn't match with the length of row data"), m_xDataModel);
- for ( int k = 0; k < rawRowData.getLength(); k++)
- newRow.push_back(rawRowData[k]);
+ for ( int k = 0; k < rawRowData.getLength(); k++)
+ newRow.push_back(rawRowData[k]);
m_pTableModel->getCellContent().push_back(newRow);
if(m_pTableModel->hasRowHeaders())
m_pTableModel->getRowHeaderName().push_back(Event.headerName);
@@ -663,7 +663,7 @@ void SAL_CALL SVTXGridControl::disposing( const ::com::sun::star::lang::EventObj
}
void SAL_CALL SVTXGridControl::selectRows(const ::com::sun::star::uno::Sequence< ::sal_Int32 >& rangeOfRows) throw (::com::sun::star::uno::RuntimeException)
-{
+{
TableControl* pTable = (TableControl*)GetWindow();
SelectionMode eSelMode = pTable->getSelEngine()->GetSelectionMode();
if(eSelMode != NO_SELECTION)
@@ -680,7 +680,7 @@ void SAL_CALL SVTXGridControl::selectRows(const ::com::sun::star::uno::Sequence<
selectedRows.clear();
if(rangeOfRows.getLength() == 1)
selectedRows.push_back(start);
- else
+ else
return;
}
else
@@ -719,7 +719,7 @@ void SAL_CALL SVTXGridControl::selectAllRows() throw (::com::sun::star::uno::Run
}
void SAL_CALL SVTXGridControl::deselectRows(const ::com::sun::star::uno::Sequence< ::sal_Int32 >& rangeOfRows) throw (::com::sun::star::uno::RuntimeException)
-{
+{
TableControl* pTable = (TableControl*)GetWindow();
std::vector<RowPos>& selectedRows = pTable->GetSelectedRows();
std::vector<RowPos>::iterator itStart = selectedRows.begin();
@@ -795,7 +795,7 @@ void SAL_CALL SVTXGridControl::selectRow(::sal_Int32 index) throw (::com::sun::s
return;
}
else if(eSelMode == SINGLE_SELECTION)
- {
+ {
if(!selectedRows.empty())
{
if(!isSelectedIndex(index))
diff --git a/svtools/source/uno/svtxgridcontrol.hxx b/svtools/source/uno/svtxgridcontrol.hxx
index ef94979d79eb..4cf2009f535e 100644
--- a/svtools/source/uno/svtxgridcontrol.hxx
+++ b/svtools/source/uno/svtxgridcontrol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
using namespace ::svt::table;
-class SVTXGridControl : public ::cppu::ImplInheritanceHelper3< VCLXWindow, ::com::sun::star::awt::grid::XGridControl,
+class SVTXGridControl : public ::cppu::ImplInheritanceHelper3< VCLXWindow, ::com::sun::star::awt::grid::XGridControl,
::com::sun::star::awt::grid::XGridDataListener, ::com::sun::star::awt::grid::XGridColumnListener>
{
private:
@@ -64,9 +64,9 @@ private:
SelectionListenerMultiplexer m_aSelectionListeners;
protected:
- virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
+ virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
void ImplCallItemListeners();
-
+
public:
SVTXGridControl();
~SVTXGridControl();
@@ -77,16 +77,16 @@ public:
//XGridColumnListener overridables
virtual void SAL_CALL columnChanged(const ::com::sun::star::awt::grid::GridColumnEvent & Event) throw (::com::sun::star::uno::RuntimeException);
-
+
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
- void SAL_CALL release() throw() { VCLXWindow::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { VCLXWindow::acquire(); }
+ void SAL_CALL release() throw() { VCLXWindow::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
//::com::sun::star::awt::grid::XGridControl
virtual ::sal_Int32 SAL_CALL getMinSelectionIndex() throw (::com::sun::star::uno::RuntimeException);
@@ -103,8 +103,8 @@ public:
virtual void SAL_CALL selectColumn(::sal_Int32 x) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addSelectionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridSelectionListener > & listener) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeSelectionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridSelectionListener > & listener) throw (::com::sun::star::uno::RuntimeException);
- virtual ::sal_Int32 SAL_CALL getItemIndexAtPoint(::sal_Int32 x, ::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setToolTip(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& text, const ::com::sun::star::uno::Sequence< sal_Int32 >& columns) throw (::com::sun::star::uno::RuntimeException);
+ virtual ::sal_Int32 SAL_CALL getItemIndexAtPoint(::sal_Int32 x, ::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL setToolTip(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& text, const ::com::sun::star::uno::Sequence< sal_Int32 >& columns) throw (::com::sun::star::uno::RuntimeException);
void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/svtools/source/uno/toolboxcontroller.cxx b/svtools/source/uno/toolboxcontroller.cxx
index 2981959bf035..285b2aef1c34 100644
--- a/svtools/source/uno/toolboxcontroller.cxx
+++ b/svtools/source/uno/toolboxcontroller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@
#include <toolkit/unohlp.hxx>
#include <vcl/toolbox.hxx>
-//shizhobo
+//shizhobo
#include <com/sun/star/beans/PropertyAttribute.hpp>
const int TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIABLE = 1;
const int TOOLBARCONTROLLER_PROPCOUNT = 1;
@@ -87,15 +87,15 @@ struct ToolboxController_Impl
};
ToolboxController::ToolboxController(
-
+
const Reference< XMultiServiceFactory >& rServiceManager,
const Reference< XFrame >& xFrame,
const ::rtl::OUString& aCommandURL ) :
OPropertyContainer(GetBroadcastHelper())
- , OWeakObject()
+ , OWeakObject()
, m_bInitialized( sal_False )
, m_bDisposed( sal_False )
- , m_xFrame(xFrame)
+ , m_xFrame(xFrame)
, m_xServiceManager( rServiceManager )
, m_aCommandURL( aCommandURL )
, m_aListenerContainer( m_aMutex )
@@ -119,7 +119,7 @@ ToolboxController::ToolboxController(
ToolboxController::ToolboxController() :
OPropertyContainer(GetBroadcastHelper())
- , OWeakObject()
+ , OWeakObject()
, m_bInitialized( sal_False )
, m_bDisposed( sal_False )
, m_aListenerContainer( m_aMutex )
@@ -190,7 +190,7 @@ throw ( RuntimeException )
,static_cast<XMultiPropertySet*>(this)
,static_cast<XFastPropertySet*>(this));
if (!a.hasValue())
- return OWeakObject::queryInterface( rType );
+ return OWeakObject::queryInterface( rType );
}
return a;
}
@@ -209,7 +209,7 @@ void SAL_CALL ToolboxController::initialize( const Sequence< Any >& aArguments )
throw ( Exception, RuntimeException )
{
bool bInitialized( true );
-
+
{
SolarMutexGuard aSolarMutexGuard;
@@ -223,7 +223,7 @@ throw ( Exception, RuntimeException )
{
SolarMutexGuard aSolarMutexGuard;
m_bInitialized = sal_True;
- //shizhoubo add
+ //shizhoubo add
m_bSupportVisiable = sal_False;
PropertyValue aPropValue;
for ( int i = 0; i < aArguments.getLength(); i++ )
@@ -261,13 +261,13 @@ throw ( Exception, RuntimeException )
void SAL_CALL ToolboxController::update()
throw ( RuntimeException )
-{
+{
{
SolarMutexGuard aSolarMutexGuard;
if ( m_bDisposed )
throw DisposedException();
}
-
+
// Bind all registered listeners to their dispatch objects
bindListener();
}
@@ -755,7 +755,7 @@ void ToolboxController::dispatchCommand( const OUString& sCommandURL, const Sequ
try
{
Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY_THROW );
- URL aURL;
+ URL aURL;
aURL.Complete = sCommandURL;
getURLTransformer()->parseStrict( aURL );
@@ -826,7 +826,7 @@ throw( com::sun::star::uno::Exception)
{
OPropertyContainer::setFastPropertyValue_NoBroadcast(nHandle, aValue);
if (TOOLBARCONTROLLER_PROPHANDLE_SUPPORTSVISIABLE == nHandle)
- {
+ {
sal_Bool rValue(sal_False);
if (( aValue >>= rValue ) && m_bInitialized)
this->setSupportVisiableProperty( rValue );
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index 5ec1f1cc40cd..96a5e0a685cf 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,10 +109,10 @@ public:
sal_uInt32 insert( SvLBoxEntry* pEntry,SvLBoxEntry* pParent,ULONG nPos=LIST_APPEND );
- virtual void RequestingChilds( SvLBoxEntry* pParent );
+ virtual void RequestingChilds( SvLBoxEntry* pParent );
- virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
- virtual BOOL EditedEntry( SvLBoxEntry* pEntry, const XubString& rNewText );
+ virtual BOOL EditingEntry( SvLBoxEntry* pEntry, Selection& );
+ virtual BOOL EditedEntry( SvLBoxEntry* pEntry, const XubString& rNewText );
DECL_LINK( OnSelectionChangeHdl, UnoTreeListBoxImpl* );
DECL_LINK( OnExpandingHdl, UnoTreeListBoxImpl* );
@@ -129,23 +129,23 @@ class SVT_DLLPUBLIC UnoTreeListItem : public SvLBoxItem
public:
UnoTreeListItem( SvLBoxEntry* );
UnoTreeListItem();
- virtual ~UnoTreeListItem();
- virtual USHORT IsA();
- void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
- OUString GetText() const;
- void SetText( const OUString& rText );
- Image GetImage() const;
- void SetImage( const Image& rImage );
- OUString GetGraphicURL() const;
- void SetGraphicURL( const OUString& rGraphicURL );
- void Paint( const Point&, SvLBox& rDev, USHORT nFlags,SvLBoxEntry* );
- SvLBoxItem* Create() const;
- void Clone( SvLBoxItem* pSource );
+ virtual ~UnoTreeListItem();
+ virtual USHORT IsA();
+ void InitViewData( SvLBox*,SvLBoxEntry*,SvViewDataItem* );
+ OUString GetText() const;
+ void SetText( const OUString& rText );
+ Image GetImage() const;
+ void SetImage( const Image& rImage );
+ OUString GetGraphicURL() const;
+ void SetGraphicURL( const OUString& rGraphicURL );
+ void Paint( const Point&, SvLBox& rDev, USHORT nFlags,SvLBoxEntry* );
+ SvLBoxItem* Create() const;
+ void Clone( SvLBoxItem* pSource );
private:
- OUString maText;
- OUString maGraphicURL;
- Image maImage;
+ OUString maText;
+ OUString maGraphicURL;
+ Image maImage;
};
// --------------------------------------------------------------------
@@ -339,7 +339,7 @@ bool TreeControlPeer::updateEntry( UnoTreeListEntry* pEntry )
if( pContextGraphicItem->msExpandedGraphicURL != pEntry->mxNode->getExpandedGraphicURL() )
{
Image aImage;
- if( loadImage( pEntry->mxNode->getExpandedGraphicURL(), aImage ) )
+ if( loadImage( pEntry->mxNode->getExpandedGraphicURL(), aImage ) )
{
pContextGraphicItem->msExpandedGraphicURL = pEntry->mxNode->getExpandedGraphicURL();
mpTreeImpl->SetExpandedEntryBmp( pEntry, aImage );
@@ -349,7 +349,7 @@ bool TreeControlPeer::updateEntry( UnoTreeListEntry* pEntry )
if( pContextGraphicItem->msCollapsedGraphicURL != pEntry->mxNode->getCollapsedGraphicURL() )
{
Image aImage;
- if( loadImage( pEntry->mxNode->getCollapsedGraphicURL(), aImage ) )
+ if( loadImage( pEntry->mxNode->getCollapsedGraphicURL(), aImage ) )
{
pContextGraphicItem->msCollapsedGraphicURL = pEntry->mxNode->getCollapsedGraphicURL();
mpTreeImpl->SetCollapsedEntryBmp( pEntry, aImage );
@@ -682,7 +682,7 @@ Reference< XEnumeration > SAL_CALL TreeControlPeer::createSelectionEnumeration()
::osl::SolarGuard aGuard( GetMutex() );
UnoTreeListBoxImpl& rTree = getTreeListBoxOrThrow();
-
+
sal_uInt32 nSelectionCount = rTree.GetSelectionCount();
std::list< Any > aSelection( nSelectionCount );
@@ -706,7 +706,7 @@ Reference< XEnumeration > SAL_CALL TreeControlPeer::createReverseSelectionEnumer
::osl::SolarGuard aGuard( GetMutex() );
UnoTreeListBoxImpl& rTree = getTreeListBoxOrThrow();
-
+
sal_uInt32 nSelectionCount = rTree.GetSelectionCount();
std::list< Any > aSelection;
@@ -1106,7 +1106,7 @@ void TreeControlPeer::updateNode( UnoTreeListBoxImpl& rTree, const Reference< XT
Reference< XTreeNode > xParentNode( xNode->getParent() );
UnoTreeListEntry* pParentEntry = 0;
ULONG nChild = LIST_APPEND;
-
+
if( xParentNode.is() )
{
pParentEntry = getEntry( xParentNode );
@@ -1346,11 +1346,11 @@ void TreeControlPeer::setProperty( const ::rtl::OUString& PropertyName, const An
SelectionMode eSelMode;
switch( eSelectionType )
{
- case SelectionType_SINGLE: eSelMode = SINGLE_SELECTION; break;
- case SelectionType_RANGE: eSelMode = RANGE_SELECTION; break;
- case SelectionType_MULTI: eSelMode = MULTIPLE_SELECTION; break;
- // case SelectionType_NONE:
- default: eSelMode = NO_SELECTION; break;
+ case SelectionType_SINGLE: eSelMode = SINGLE_SELECTION; break;
+ case SelectionType_RANGE: eSelMode = RANGE_SELECTION; break;
+ case SelectionType_MULTI: eSelMode = MULTIPLE_SELECTION; break;
+ // case SelectionType_NONE:
+ default: eSelMode = NO_SELECTION; break;
}
if( rTree.GetSelectionMode() != eSelMode )
rTree.SetSelectionMode( eSelMode );
@@ -1358,7 +1358,7 @@ void TreeControlPeer::setProperty( const ::rtl::OUString& PropertyName, const An
break;
}
- case BASEPROPERTY_TREE_DATAMODEL:
+ case BASEPROPERTY_TREE_DATAMODEL:
onChangeDataModel( rTree, Reference< XTreeDataModel >( aValue, UNO_QUERY ) );
break;
case BASEPROPERTY_TREE_ROWHEIGHT:
@@ -1438,11 +1438,11 @@ Any TreeControlPeer::getProperty( const ::rtl::OUString& PropertyName ) throw(Ru
SelectionMode eSelMode = rTree.GetSelectionMode();
switch( eSelMode )
{
- case SINGLE_SELECTION: eSelectionType = SelectionType_SINGLE; break;
- case RANGE_SELECTION: eSelectionType = SelectionType_RANGE; break;
+ case SINGLE_SELECTION: eSelectionType = SelectionType_SINGLE; break;
+ case RANGE_SELECTION: eSelectionType = SelectionType_RANGE; break;
case MULTIPLE_SELECTION:eSelectionType = SelectionType_MULTI; break;
-// case NO_SELECTION:
- default: eSelectionType = SelectionType_NONE; break;
+// case NO_SELECTION:
+ default: eSelectionType = SelectionType_NONE; break;
}
return Any( eSelectionType );
}
diff --git a/svtools/source/uno/treecontrolpeer.hxx b/svtools/source/uno/treecontrolpeer.hxx
index 5e3a9a1668ef..1749b6fb25bc 100644
--- a/svtools/source/uno/treecontrolpeer.hxx
+++ b/svtools/source/uno/treecontrolpeer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,10 +46,10 @@ class TreeControlPeer;
class UnoTreeListBoxImpl;
class TreeNodeMap;
-// ----------------------------------------------------
-// class TreeControlPeer
-// ----------------------------------------------------
-class TreeControlPeer : public ::cppu::ImplInheritanceHelper2< VCLXWindow, ::com::sun::star::awt::tree::XTreeControl, ::com::sun::star::awt::tree::XTreeDataModelListener >
+// ----------------------------------------------------
+// class TreeControlPeer
+// ----------------------------------------------------
+class TreeControlPeer : public ::cppu::ImplInheritanceHelper2< VCLXWindow, ::com::sun::star::awt::tree::XTreeControl, ::com::sun::star::awt::tree::XTreeDataModelListener >
{
friend class UnoTreeListBoxImpl;
friend class UnoTreeListEntry;
diff --git a/svtools/source/uno/unocontroltablemodel.cxx b/svtools/source/uno/unocontroltablemodel.cxx
index 6be5a1962d96..8275d56658a0 100644
--- a/svtools/source/uno/unocontroltablemodel.cxx
+++ b/svtools/source/uno/unocontroltablemodel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,8 +50,8 @@ using namespace ::com::sun::star::uno;
:m_nID( 0 )
,m_sName()
,m_bIsResizable( true )
- ,m_nWidth( 4 )
- ,m_nMinWidth( 0 )
+ ,m_nWidth( 4 )
+ ,m_nMinWidth( 0 )
,m_nMaxWidth( 0 )
,m_nPrefWidth ( 0 )
,m_xHorizontalAlign(com::sun::star::style::HorizontalAlignment(0))
@@ -63,9 +63,9 @@ using namespace ::com::sun::star::uno;
:m_nID( 0 )
,m_sName()
,m_bIsResizable( true )
- ,m_nWidth( 4 )
+ ,m_nWidth( 4 )
,m_nMinWidth( 0 )
- ,m_nMaxWidth( 0 )
+ ,m_nMaxWidth( 0 )
,m_nPrefWidth ( 0 )
,m_xHorizontalAlign(com::sun::star::style::HorizontalAlignment(0))
{
@@ -76,67 +76,67 @@ using namespace ::com::sun::star::uno;
{
return m_nID;
}
-
+
//--------------------------------------------------------------------
bool UnoControlTableColumn::setID( const ColumnID _nID )
{
m_nID = _nID;
return true;
}
-
+
//--------------------------------------------------------------------
String UnoControlTableColumn::getName() const
{
return m_sName;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableColumn::setName( const String& _rName )
{
m_sName = _rName;
- }
+ }
//--------------------------------------------------------------------
bool UnoControlTableColumn::isResizable() const
{
return m_bIsResizable;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableColumn::setResizable( bool _bResizable )
{
m_bIsResizable = _bResizable;
}
-
+
//--------------------------------------------------------------------
TableMetrics UnoControlTableColumn::getWidth() const
{
return m_nWidth;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableColumn::setWidth( TableMetrics _nWidth )
{
m_nWidth = _nWidth;
}
-
+
//--------------------------------------------------------------------
TableMetrics UnoControlTableColumn::getMinWidth() const
{
return m_nMinWidth;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableColumn::setMinWidth( TableMetrics _nMinWidth )
{
m_nMinWidth = _nMinWidth;
}
-
+
//--------------------------------------------------------------------
TableMetrics UnoControlTableColumn::getMaxWidth() const
{
return m_nMaxWidth;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableColumn::setMaxWidth( TableMetrics _nMaxWidth )
{
@@ -147,7 +147,7 @@ using namespace ::com::sun::star::uno;
{
return m_nPrefWidth;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableColumn::setPreferredWidth( TableMetrics _nPrefWidth )
{
@@ -158,7 +158,7 @@ using namespace ::com::sun::star::uno;
{
return m_xHorizontalAlign;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableColumn::setHorizontalAlign( com::sun::star::style::HorizontalAlignment _align )
{
@@ -174,15 +174,15 @@ using namespace ::com::sun::star::uno;
TableSize nRowCount;
bool bHasColumnHeaders;
bool bHasRowHeaders;
- bool bVScroll;
- bool bHScroll;
+ bool bVScroll;
+ bool bHScroll;
PTableRenderer pRenderer;
PTableInputHandler pInputHandler;
TableMetrics nRowHeight;
TableMetrics nColumnHeaderHeight;
TableMetrics nRowHeaderWidth;
- std::vector<rtl::OUString> aRowHeadersTitle;
- std::vector<std::vector< Any > > aCellContent;
+ std::vector<rtl::OUString> aRowHeadersTitle;
+ std::vector<std::vector< Any > > aCellContent;
::com::sun::star::util::Color m_xLineColor;
::com::sun::star::util::Color m_xHeaderColor;
::com::sun::star::util::Color m_xTextColor;
@@ -191,25 +191,25 @@ using namespace ::com::sun::star::uno;
::com::sun::star::style::VerticalAlignment m_xVerticalAlign;
UnoControlTableModel_Impl()
- :aColumns ( )
+ :aColumns ( )
,nRowCount ( 0 )
,bHasColumnHeaders ( false )
,bHasRowHeaders ( false )
- ,bVScroll ( false )
- ,bHScroll ( false )
+ ,bVScroll ( false )
+ ,bHScroll ( false )
,pRenderer ( )
,pInputHandler ( )
- ,nRowHeight ( 0 )
- ,nColumnHeaderHeight( 0 )
- ,nRowHeaderWidth ( 10 )
+ ,nRowHeight ( 0 )
+ ,nColumnHeaderHeight( 0 )
+ ,nRowHeaderWidth ( 10 )
,aRowHeadersTitle ( )
- ,aCellContent ( )
- ,m_xLineColor ( 0xFFFFFF )
- ,m_xHeaderColor ( 0xFFFFFF )
- ,m_xTextColor ( 0 )//black as default
- ,m_xRowColor1 ( 0xFFFFFF )
- ,m_xRowColor2 ( 0xFFFFFF )
- ,m_xVerticalAlign (com::sun::star::style::VerticalAlignment(0))
+ ,aCellContent ( )
+ ,m_xLineColor ( 0xFFFFFF )
+ ,m_xHeaderColor ( 0xFFFFFF )
+ ,m_xTextColor ( 0 )//black as default
+ ,m_xRowColor1 ( 0xFFFFFF )
+ ,m_xRowColor2 ( 0xFFFFFF )
+ ,m_xVerticalAlign (com::sun::star::style::VerticalAlignment(0))
{
}
};
@@ -235,7 +235,7 @@ using namespace ::com::sun::star::uno;
//--------------------------------------------------------------------
TableSize UnoControlTableModel::getColumnCount() const
- {
+ {
return (TableSize)m_pImpl->aColumns.size();
}
@@ -256,7 +256,7 @@ using namespace ::com::sun::star::uno;
{
return m_pImpl->bHasRowHeaders;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableModel::setRowHeaders(bool _bRowHeaders)
{
@@ -267,7 +267,7 @@ using namespace ::com::sun::star::uno;
{
m_pImpl->bHasColumnHeaders = _bColumnHeaders;
}
-
+
void UnoControlTableModel::setColumnCount(TableSize _nColCount)
{
m_pImpl->aColumns.resize( _nColCount);
@@ -450,7 +450,7 @@ using namespace ::com::sun::star::uno;
{
return m_pImpl->m_xLineColor;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableModel::setLineColor( ::com::sun::star::util::Color _rColor )
{
@@ -461,7 +461,7 @@ using namespace ::com::sun::star::uno;
{
return m_pImpl->m_xHeaderColor;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableModel::setHeaderBackgroundColor( ::com::sun::star::util::Color _rColor )
{
@@ -472,7 +472,7 @@ using namespace ::com::sun::star::uno;
{
return m_pImpl->m_xTextColor;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableModel::setTextColor( ::com::sun::star::util::Color _rColor )
{
@@ -483,7 +483,7 @@ using namespace ::com::sun::star::uno;
{
return m_pImpl->m_xRowColor1;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableModel::setOddRowBackgroundColor( ::com::sun::star::util::Color _rColor )
{
@@ -494,7 +494,7 @@ using namespace ::com::sun::star::uno;
{
return m_pImpl->m_xRowColor2;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableModel::setEvenRowBackgroundColor( ::com::sun::star::util::Color _rColor )
{
@@ -505,7 +505,7 @@ using namespace ::com::sun::star::uno;
{
return m_pImpl->m_xVerticalAlign;
}
-
+
//--------------------------------------------------------------------
void UnoControlTableModel::setVerticalAlign( com::sun::star::style::VerticalAlignment _xAlign )
{
diff --git a/svtools/source/uno/unocontroltablemodel.hxx b/svtools/source/uno/unocontroltablemodel.hxx
index b17911b8ab85..993c6a7658a4 100644
--- a/svtools/source/uno/unocontroltablemodel.hxx
+++ b/svtools/source/uno/unocontroltablemodel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -125,8 +125,8 @@ class UnoControlTableModel : public ITableModel
// ITableModel overridables
virtual TableSize getColumnCount() const;
virtual TableSize getRowCount() const;
- virtual void setColumnCount(TableSize _nColCount);
- virtual void setRowCount(TableSize _nRowCount);
+ virtual void setColumnCount(TableSize _nColCount);
+ virtual void setRowCount(TableSize _nRowCount);
virtual bool hasColumnHeaders() const;
virtual bool hasRowHeaders() const;
virtual void setRowHeaders(bool _bRowHeaders);
@@ -144,26 +144,26 @@ class UnoControlTableModel : public ITableModel
virtual TableMetrics getRowHeaderWidth() const;
virtual ScrollbarVisibility getVerticalScrollbarVisibility(int overAllHeight, int actHeight) const;
virtual ScrollbarVisibility getHorizontalScrollbarVisibility(int overAllWidth, int actWidth) const;
- virtual void setVerticalScrollbarVisibility(bool _bVScroll) const;
- virtual void setHorizontalScrollbarVisibility(bool _bHScroll) const;
- virtual void setCellContent(const std::vector<std::vector< Any > >& cellContent);
- virtual std::vector<std::vector< Any > >& getCellContent();
- virtual void setRowHeaderName(const std::vector<rtl::OUString>& cellColumnContent);
- virtual std::vector<rtl::OUString>& getRowHeaderName();
+ virtual void setVerticalScrollbarVisibility(bool _bVScroll) const;
+ virtual void setHorizontalScrollbarVisibility(bool _bHScroll) const;
+ virtual void setCellContent(const std::vector<std::vector< Any > >& cellContent);
+ virtual std::vector<std::vector< Any > >& getCellContent();
+ virtual void setRowHeaderName(const std::vector<rtl::OUString>& cellColumnContent);
+ virtual std::vector<rtl::OUString>& getRowHeaderName();
virtual ::com::sun::star::util::Color getLineColor();
- virtual void setLineColor(::com::sun::star::util::Color _rColor);
+ virtual void setLineColor(::com::sun::star::util::Color _rColor);
virtual ::com::sun::star::util::Color getHeaderBackgroundColor();
- virtual void setHeaderBackgroundColor(::com::sun::star::util::Color _rColor);
+ virtual void setHeaderBackgroundColor(::com::sun::star::util::Color _rColor);
virtual ::com::sun::star::util::Color getTextColor();
- virtual void setTextColor(::com::sun::star::util::Color _rColor);
+ virtual void setTextColor(::com::sun::star::util::Color _rColor);
virtual ::com::sun::star::util::Color getOddRowBackgroundColor();
- virtual void setOddRowBackgroundColor(::com::sun::star::util::Color _rColor);
+ virtual void setOddRowBackgroundColor(::com::sun::star::util::Color _rColor);
virtual ::com::sun::star::util::Color getEvenRowBackgroundColor();
- virtual void setEvenRowBackgroundColor(::com::sun::star::util::Color _rColor);
+ virtual void setEvenRowBackgroundColor(::com::sun::star::util::Color _rColor);
virtual ::com::sun::star::style::VerticalAlignment getVerticalAlign();
- virtual void setVerticalAlign(::com::sun::star::style::VerticalAlignment _rAlign);
- virtual bool hasVerticalScrollbar();
- virtual bool hasHorizontalScrollbar();
+ virtual void setVerticalAlign(::com::sun::star::style::VerticalAlignment _rAlign);
+ virtual bool hasVerticalScrollbar();
+ virtual bool hasHorizontalScrollbar();
};
inline void UnoControlTableModel::SetColumnWidth( ColPos _nColumn, TableMetrics _nWidth100thMM )
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx
index a990acf11fbd..ffd5793ea288 100644
--- a/svtools/source/uno/unoevent.cxx
+++ b/svtools/source/uno/unoevent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -216,7 +216,7 @@ sal_uInt16 SvBaseEventDescriptor::getMacroID(const OUString& rName) const
void SvBaseEventDescriptor::getAnyFromMacro(Any& rAny,
const SvxMacro& rMacro)
{
- sal_Bool bRetValueOK = sal_False; // do we have a ret value?
+ sal_Bool bRetValueOK = sal_False; // do we have a ret value?
if (rMacro.HasMacro())
{
@@ -256,7 +256,7 @@ void SvBaseEventDescriptor::getAnyFromMacro(Any& rAny,
break;
}
case EXTENDED_STYPE:
- {
+ {
// create sequence
Sequence<PropertyValue> aSequence(2);
Any aTmp;
@@ -317,7 +317,7 @@ void SvBaseEventDescriptor::getMacroFromAny(
// process ...
sal_Bool bTypeOK = sal_False;
- sal_Bool bNone = sal_False; // true if EventType=="None"
+ sal_Bool bNone = sal_False; // true if EventType=="None"
enum ScriptType eType = EXTENDED_STYPE;
OUString sScriptVal;
OUString sMacroVal;
@@ -382,7 +382,7 @@ void SvBaseEventDescriptor::getMacroFromAny(
SvxMacro aMacro(sMacroVal, sLibVal, eType);
rMacro = aMacro;
}
- else if (eType == EXTENDED_STYPE)
+ else if (eType == EXTENDED_STYPE)
{
SvxMacro aMacro(sScriptVal, sScript);
rMacro = aMacro;
@@ -424,13 +424,13 @@ SvEventDescriptor::~SvEventDescriptor()
// automatically release xParentRef !
}
-void SvEventDescriptor::replaceByName(
+void SvEventDescriptor::replaceByName(
const sal_uInt16 nEvent,
const SvxMacro& rMacro)
throw(
- IllegalArgumentException,
- NoSuchElementException,
- WrappedTargetException,
+ IllegalArgumentException,
+ NoSuchElementException,
+ WrappedTargetException,
RuntimeException)
{
SvxMacroItem aItem(getMacroItemWhich());
@@ -439,12 +439,12 @@ void SvEventDescriptor::replaceByName(
setMacroItem(aItem);
}
-void SvEventDescriptor::getByName(
+void SvEventDescriptor::getByName(
SvxMacro& rMacro,
const sal_uInt16 nEvent )
throw(
- NoSuchElementException,
- WrappedTargetException,
+ NoSuchElementException,
+ WrappedTargetException,
RuntimeException)
{
const SvxMacroItem& rItem = getMacroItem();
@@ -465,7 +465,7 @@ void SvEventDescriptor::getByName(
//
SvDetachedEventDescriptor::SvDetachedEventDescriptor(
- const SvEventDescription* pSupportedMacroItems) :
+ const SvEventDescription* pSupportedMacroItems) :
SvBaseEventDescriptor(pSupportedMacroItems),
sImplName(RTL_CONSTASCII_USTRINGPARAM(sAPI_SvDetachedEventDescriptor))
{
@@ -495,7 +495,7 @@ sal_Int16 SvDetachedEventDescriptor::getIndex(const sal_uInt16 nID) const
{
// iterate over supported events
sal_Int16 nIndex = 0;
- while ( (mpSupportedMacroItems[nIndex].mnEvent != nID) &&
+ while ( (mpSupportedMacroItems[nIndex].mnEvent != nID) &&
(mpSupportedMacroItems[nIndex].mnEvent != 0) )
{
nIndex++;
@@ -503,20 +503,20 @@ sal_Int16 SvDetachedEventDescriptor::getIndex(const sal_uInt16 nID) const
return (mpSupportedMacroItems[nIndex].mnEvent == nID) ? nIndex : -1;
}
-OUString SvDetachedEventDescriptor::getImplementationName()
+OUString SvDetachedEventDescriptor::getImplementationName()
throw( ::com::sun::star::uno::RuntimeException )
{
return sImplName;
}
-void SvDetachedEventDescriptor::replaceByName(
+void SvDetachedEventDescriptor::replaceByName(
const sal_uInt16 nEvent,
const SvxMacro& rMacro)
throw(
- IllegalArgumentException,
- NoSuchElementException,
- WrappedTargetException,
+ IllegalArgumentException,
+ NoSuchElementException,
+ WrappedTargetException,
RuntimeException)
{
sal_Int16 nIndex = getIndex(nEvent);
@@ -528,12 +528,12 @@ void SvDetachedEventDescriptor::replaceByName(
}
-void SvDetachedEventDescriptor::getByName(
+void SvDetachedEventDescriptor::getByName(
SvxMacro& rMacro,
const sal_uInt16 nEvent )
throw(
- NoSuchElementException,
- WrappedTargetException,
+ NoSuchElementException,
+ WrappedTargetException,
RuntimeException)
{
sal_Int16 nIndex = getIndex(nEvent);
@@ -544,8 +544,8 @@ void SvDetachedEventDescriptor::getByName(
rMacro = (*aMacros[nIndex]);
}
-sal_Bool SvDetachedEventDescriptor::hasByName(
- const sal_uInt16 nEvent ) const /// item ID of event
+sal_Bool SvDetachedEventDescriptor::hasByName(
+ const sal_uInt16 nEvent ) const /// item ID of event
throw(IllegalArgumentException)
{
sal_Int16 nIndex = getIndex(nEvent);
diff --git a/svtools/source/uno/unoiface.cxx b/svtools/source/uno/unoiface.cxx
index cc40453f2d72..74a391216207 100644
--- a/svtools/source/uno/unoiface.cxx
+++ b/svtools/source/uno/unoiface.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,9 +68,9 @@ namespace
}
}
-// ----------------------------------------------------
-// help function for the toolkit...
-// ----------------------------------------------------
+// ----------------------------------------------------
+// help function for the toolkit...
+// ----------------------------------------------------
extern "C" {
@@ -168,7 +168,7 @@ SAL_DLLPUBLIC_EXPORT Window* CreateWindow( VCLXWindow** ppNewComp, const ::com::
else if ( aServiceName.EqualsIgnoreCaseAscii( "Grid" ) )
{
if ( pParent )
- {
+ {
pWindow = new ::svt::table::TableControl(pParent, nWinBits);
*ppNewComp = new SVTXGridControl;
}
@@ -181,11 +181,11 @@ SAL_DLLPUBLIC_EXPORT Window* CreateWindow( VCLXWindow** ppNewComp, const ::com::
return pWindow;
}
-} // extern "C"
+} // extern "C"
-// ----------------------------------------------------
-// class VCLXMultiLineEdit
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXMultiLineEdit
+// ----------------------------------------------------
VCLXMultiLineEdit::VCLXMultiLineEdit()
:maTextListeners( *this )
,meLineEndType( LINEEND_LF ) // default behavior before introducing this property: LF (unix-like)
@@ -546,9 +546,9 @@ void VCLXMultiLineEdit::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
VCLXWindow::ImplGetPropertyIds( rIds, true );
}
-// ----------------------------------------------------
-// class VCLXFileControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXFileControl
+// ----------------------------------------------------
VCLXFileControl::VCLXFileControl() : maTextListeners( *this )
{
}
@@ -815,9 +815,9 @@ void VCLXFileControl::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
}
-// ----------------------------------------------------
-// class SVTXFormattedField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXFormattedField
+// ----------------------------------------------------
// --------------------------------------------------------------------------------------
SVTXFormattedField::SVTXFormattedField()
:m_pCurrentSupplier(NULL)
@@ -915,7 +915,7 @@ void SVTXFormattedField::setProperty( const ::rtl::OUString& PropertyName, const
if (rTC != ::com::sun::star::uno::TypeClass_DOUBLE)
// no double
if (Value.hasValue())
- { // but a value
+ { // but a value
// try if it is something converitble
sal_Int32 nValue = 0;
if (!(Value >>= nValue))
@@ -960,7 +960,7 @@ void SVTXFormattedField::setProperty( const ::rtl::OUString& PropertyName, const
}
if (BASEPROPERTY_TEXTCOLOR == nPropType)
- { // after setting a new text color, think again about the AutoColor flag of the control
+ { // after setting a new text color, think again about the AutoColor flag of the control
// 17.05.2001 - 86859 - frank.schoenheit@germany.sun.com
pField->SetAutoColor(!Value.hasValue());
}
@@ -1016,7 +1016,7 @@ void SVTXFormattedField::setProperty( const ::rtl::OUString& PropertyName, const
case BASEPROPERTY_FORMATSSUPPLIER:
{
if (!bIsStandardSupplier)
- { // ansonsten void
+ { // ansonsten void
::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > xSupplier = getFormatsSupplier();
aReturn <<= xSupplier;
}
@@ -1260,7 +1260,7 @@ void SVTXFormattedField::SetTreatAsNumber(sal_Bool bSet)
}
else
{
- if (pField->GetText().Len()) // empty wird erst mal standardmaessig als void nach draussen gereicht
+ if (pField->GetText().Len()) // empty wird erst mal standardmaessig als void nach draussen gereicht
aReturn <<= pField->GetValue();
}
@@ -1299,7 +1299,7 @@ void SVTXFormattedField::SetValue(const ::com::sun::star::uno::Any& rValue)
pField->SetTextValue(aStr);
}
}
-// NotifyTextListeners();
+// NotifyTextListeners();
}
// --------------------------------------------------------------------------------------
@@ -1329,7 +1329,7 @@ void SVTXFormattedField::setFormatsSupplier(const ::com::sun::star::uno::Referen
}
if (!pNew)
- return; // TODO : wie das behandeln ?
+ return; // TODO : wie das behandeln ?
if (m_pCurrentSupplier)
m_pCurrentSupplier->release();
@@ -1366,7 +1366,7 @@ void SVTXFormattedField::setFormatKey(sal_Int32 nKey)
if (pField->GetFormatter())
pField->SetFormatKey(nKey);
else
- { // Wahrscheinlich bin ich gerade in einem Block, in dem erst der Key und dann der Formatter gesetzt
+ { // Wahrscheinlich bin ich gerade in einem Block, in dem erst der Key und dann der Formatter gesetzt
// wird, das passiert initial mit ziemlicher Sicherheit, da die Properties in alphabetischer Reihenfolge
// gesetzt werden, und der FormatsSupplier nun mal vor dem FormatKey kommt
nKeyToSetDelayed = nKey;
@@ -1411,9 +1411,9 @@ void SVTXFormattedField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
}
-// ----------------------------------------------------
-// class SVTXRoadmap
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXRoadmap
+// ----------------------------------------------------
using namespace svt;
@@ -1668,9 +1668,9 @@ void SVTXRoadmap::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
VCLXGraphicControl::ImplGetPropertyIds( rIds );
}
-// ----------------------------------------------------
-// class SVTXNumericField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXNumericField
+// ----------------------------------------------------
SVTXNumericField::SVTXNumericField()
{
}
@@ -1835,9 +1835,9 @@ void SVTXNumericField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
SVTXFormattedField::ImplGetPropertyIds( rIds );
}
-// ----------------------------------------------------
-// class SVTXCurrencyField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXCurrencyField
+// ----------------------------------------------------
SVTXCurrencyField::SVTXCurrencyField()
{
}
@@ -2075,9 +2075,9 @@ void SVTXCurrencyField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
}
-// ----------------------------------------------------
-// class VCLXProgressBar
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXProgressBar
+// ----------------------------------------------------
VCLXProgressBar::VCLXProgressBar()
:m_nValue(0)
@@ -2323,9 +2323,9 @@ void VCLXProgressBar::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
}
-// ----------------------------------------------------
-// class SVTXDateField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SVTXDateField
+// ----------------------------------------------------
SVTXDateField::SVTXDateField()
:VCLXDateField()
{
diff --git a/svtools/source/uno/unoimap.cxx b/svtools/source/uno/unoimap.cxx
index 924654907fdc..3a61bc66a4e8 100644
--- a/svtools/source/uno/unoimap.cxx
+++ b/svtools/source/uno/unoimap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -162,8 +162,8 @@ PropertySetInfo* SvUnoImageMapObject::createPropertySetInfo( UINT16 nType )
{ MAP_LEN( "Description" ), HANDLE_DESCRIPTION, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
{ MAP_LEN( "Target" ), HANDLE_TARGET, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
{ MAP_LEN( "Name" ), HANDLE_NAME, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
- { MAP_LEN( "IsActive" ), HANDLE_ISACTIVE, &::getBooleanCppuType(), 0, 0 },
- { MAP_LEN( "Polygon" ), HANDLE_POLYGON, SEQTYPE(::getCppuType((const PointSequence*)0)), 0, 0 },
+ { MAP_LEN( "IsActive" ), HANDLE_ISACTIVE, &::getBooleanCppuType(), 0, 0 },
+ { MAP_LEN( "Polygon" ), HANDLE_POLYGON, SEQTYPE(::getCppuType((const PointSequence*)0)), 0, 0 },
{0,0,0,0,0,0}
};
@@ -178,9 +178,9 @@ PropertySetInfo* SvUnoImageMapObject::createPropertySetInfo( UINT16 nType )
{ MAP_LEN( "Description" ), HANDLE_DESCRIPTION, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
{ MAP_LEN( "Target" ), HANDLE_TARGET, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
{ MAP_LEN( "Name" ), HANDLE_NAME, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
- { MAP_LEN( "IsActive" ), HANDLE_ISACTIVE, &::getBooleanCppuType(), 0, 0 },
- { MAP_LEN( "Center" ), HANDLE_CENTER, &::getCppuType((const awt::Point*)0), 0, 0 },
- { MAP_LEN( "Radius" ), HANDLE_RADIUS, &::getCppuType((const sal_Int32*)0), 0, 0 },
+ { MAP_LEN( "IsActive" ), HANDLE_ISACTIVE, &::getBooleanCppuType(), 0, 0 },
+ { MAP_LEN( "Center" ), HANDLE_CENTER, &::getCppuType((const awt::Point*)0), 0, 0 },
+ { MAP_LEN( "Radius" ), HANDLE_RADIUS, &::getCppuType((const sal_Int32*)0), 0, 0 },
{0,0,0,0,0,0}
};
@@ -196,8 +196,8 @@ PropertySetInfo* SvUnoImageMapObject::createPropertySetInfo( UINT16 nType )
{ MAP_LEN( "Description" ), HANDLE_DESCRIPTION, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
{ MAP_LEN( "Target" ), HANDLE_TARGET, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
{ MAP_LEN( "Name" ), HANDLE_NAME, &::getCppuType((const ::rtl::OUString*)0), 0, 0 },
- { MAP_LEN( "IsActive" ), HANDLE_ISACTIVE, &::getBooleanCppuType(), 0, 0 },
- { MAP_LEN( "Boundary" ), HANDLE_BOUNDARY, &::getCppuType((const awt::Rectangle*)0), 0, 0 },
+ { MAP_LEN( "IsActive" ), HANDLE_ISACTIVE, &::getBooleanCppuType(), 0, 0 },
+ { MAP_LEN( "Boundary" ), HANDLE_BOUNDARY, &::getCppuType((const awt::Rectangle*)0), 0, 0 },
{0,0,0,0,0,0}
};
@@ -207,7 +207,7 @@ PropertySetInfo* SvUnoImageMapObject::createPropertySetInfo( UINT16 nType )
}
SvUnoImageMapObject::SvUnoImageMapObject( UINT16 nType, const SvEventDescription* pSupportedMacroItems )
-: PropertySetHelper( createPropertySetInfo( nType ) ),
+: PropertySetHelper( createPropertySetInfo( nType ) ),
mnType( nType )
, mbIsActive( true )
, mnRadius( 0 )
@@ -217,7 +217,7 @@ SvUnoImageMapObject::SvUnoImageMapObject( UINT16 nType, const SvEventDescription
}
SvUnoImageMapObject::SvUnoImageMapObject( const IMapObject& rMapObject, const SvEventDescription* pSupportedMacroItems )
-: PropertySetHelper( createPropertySetInfo( rMapObject.GetType() ) ),
+: PropertySetHelper( createPropertySetInfo( rMapObject.GetType() ) ),
mnType( rMapObject.GetType() )
, mbIsActive( true )
, mnRadius( 0 )
diff --git a/svtools/source/uno/unowizard.hxx b/svtools/source/uno/unowizard.hxx
index f56a23024f5c..c58ea2078f34 100644
--- a/svtools/source/uno/unowizard.hxx
+++ b/svtools/source/uno/unowizard.hxx
@@ -101,7 +101,7 @@ namespace svt { namespace uno
~Wizard();
protected:
- virtual Dialog* createDialog( Window* _pParent );
+ virtual Dialog* createDialog( Window* _pParent );
virtual void destroyDialog();
private:
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index fdca8b1919a6..53a4aca0728b 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -208,7 +208,7 @@ namespace svt { namespace uno
}
//--------------------------------------------------------------------
- Dialog* Wizard::createDialog( Window* i_pParent )
+ Dialog* Wizard::createDialog( Window* i_pParent )
{
WizardShell* pDialog( new WizardShell( i_pParent, this, m_xController, m_aWizardSteps ) );
pDialog->SetSmartHelpId( SmartId( m_sHelpURL ) );
@@ -230,7 +230,7 @@ namespace svt { namespace uno
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.svtools.uno.Wizard" ) );
}
-
+
//--------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL Wizard::getSupportedServiceNames_static() throw(RuntimeException)
{
@@ -244,7 +244,7 @@ namespace svt { namespace uno
{
return getImplementationName_static();
}
-
+
//--------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL Wizard::getSupportedServiceNames() throw(RuntimeException)
{
@@ -317,7 +317,7 @@ namespace svt { namespace uno
pWizardImpl->enableButtons( lcl_convertWizardButtonToWZB( i_WizardButton ), i_Enable );
}
-
+
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL Wizard::setDefaultButton( ::sal_Int16 i_WizardButton ) throw (RuntimeException)
{
@@ -329,7 +329,7 @@ namespace svt { namespace uno
pWizardImpl->defaultButton( lcl_convertWizardButtonToWZB( i_WizardButton ) );
}
-
+
//------------------------------------------------------------------------------------------------------------------
sal_Bool SAL_CALL Wizard::travelNext( ) throw (RuntimeException)
{
@@ -341,7 +341,7 @@ namespace svt { namespace uno
return pWizardImpl->travelNext();
}
-
+
//------------------------------------------------------------------------------------------------------------------
sal_Bool SAL_CALL Wizard::travelPrevious( ) throw (RuntimeException)
{
@@ -353,7 +353,7 @@ namespace svt { namespace uno
return pWizardImpl->travelPrevious();
}
-
+
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL Wizard::enablePage( ::sal_Int16 i_PageID, ::sal_Bool i_Enable ) throw (NoSuchElementException, InvalidStateException, RuntimeException)
{
@@ -395,7 +395,7 @@ namespace svt { namespace uno
return pWizardImpl->advanceTo( i_PageId );
}
-
+
//------------------------------------------------------------------------------------------------------------------
::sal_Bool SAL_CALL Wizard::goBackTo( ::sal_Int16 i_PageId ) throw (RuntimeException)
{
@@ -407,7 +407,7 @@ namespace svt { namespace uno
return pWizardImpl->goBackTo( i_PageId );
}
-
+
//------------------------------------------------------------------------------------------------------------------
Reference< XWizardPage > SAL_CALL Wizard::getCurrentPage( ) throw (RuntimeException)
{
@@ -441,7 +441,7 @@ namespace svt { namespace uno
// simply disambiguate
Wizard_Base::OGenericUnoDialog::setTitle( i_Title );
}
-
+
//------------------------------------------------------------------------------------------------------------------
::sal_Int16 SAL_CALL Wizard::execute( ) throw (RuntimeException)
{
diff --git a/svtools/source/uno/wizard/wizardpagecontroller.hxx b/svtools/source/uno/wizard/wizardpagecontroller.hxx
index 7b8273ce43a9..664852f54608 100644
--- a/svtools/source/uno/wizard/wizardpagecontroller.hxx
+++ b/svtools/source/uno/wizard/wizardpagecontroller.hxx
@@ -55,8 +55,8 @@ namespace svt { namespace uno
~WizardPageController();
// IWizardPageController overridables
- virtual void initializePage();
- virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason );
+ virtual void initializePage();
+ virtual sal_Bool commitPage( WizardTypes::CommitPageReason _eReason );
virtual bool canAdvance() const;
const ::com::sun::star::uno::Reference< ::com::sun::star::ui::dialogs::XWizardPage >&
diff --git a/svtools/source/uno/wizard/wizardshell.cxx b/svtools/source/uno/wizard/wizardshell.cxx
index 66b4dfce164d..9a58d3c9343c 100644
--- a/svtools/source/uno/wizard/wizardshell.cxx
+++ b/svtools/source/uno/wizard/wizardshell.cxx
@@ -189,7 +189,7 @@ namespace svt { namespace uno
Reference< XWizardPage > WizardShell::getCurrentWizardPage() const
{
const WizardState eState = getCurrentState();
-
+
PWizardPageController pController( impl_getController( GetPage( eState ) ) );
ENSURE_OR_RETURN( pController, "WizardShell::getCurrentWizardPage: invalid page/controller!", NULL );
diff --git a/svtools/source/uno/wizard/wizardshell.hxx b/svtools/source/uno/wizard/wizardshell.hxx
index 9697b71b36d2..44523d74e67c 100644
--- a/svtools/source/uno/wizard/wizardshell.hxx
+++ b/svtools/source/uno/wizard/wizardshell.hxx
@@ -62,12 +62,12 @@ namespace svt { namespace uno
virtual ~WizardShell();
// Dialog overridables
- virtual short Execute();
+ virtual short Execute();
// OWizardMachine overridables
- virtual TabPage* createPage( WizardState i_nState );
+ virtual TabPage* createPage( WizardState i_nState );
virtual void enterState( WizardState i_nState );
- virtual sal_Bool leaveState( WizardState i_nState );
+ virtual sal_Bool leaveState( WizardState i_nState );
virtual String getStateDisplayName( WizardState i_nState ) const;
virtual bool canAdvance() const;
virtual sal_Bool onFinish();
diff --git a/svtools/source/urlobj/inetimg.cxx b/svtools/source/urlobj/inetimg.cxx
index cf6f211a739c..155f7fcc66ef 100644
--- a/svtools/source/urlobj/inetimg.cxx
+++ b/svtools/source/urlobj/inetimg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,7 +103,7 @@ sal_Bool INetImage::Read( SvStream& rIStm, ULONG nFormat )
int iAltOffset; // (alternate text?)
int iAnchorOffset; // HREF in image
int iExtraHTML_Offset; // Extra HTML (stored in CImageElement)
- sal_Char pImageURL[1]; // Append all variable-length strings starting here
+ sal_Char pImageURL[1]; // Append all variable-length strings starting here
*/
rtl_TextEncoding eSysCSet = gsl_getSystemTextEncoding();
sal_Int32 nVal, nAnchorOffset, nAltOffset, nFilePos;
@@ -112,8 +112,8 @@ sal_Bool INetImage::Read( SvStream& rIStm, ULONG nFormat )
nFilePos = rIStm.Tell();
// skip over iSize (int), bIsMao ( BOOL ) alignment of 4 !!!!
rIStm.SeekRel( 8 );
- rIStm >> nVal; aSizePixel.Width() = nVal;
- rIStm >> nVal; aSizePixel.Height() = nVal;
+ rIStm >> nVal; aSizePixel.Width() = nVal;
+ rIStm >> nVal; aSizePixel.Height() = nVal;
// skip over iHSpace, iVSpace, iBorder, iLowResOffset
rIStm.SeekRel( 3 * sizeof( INT32 ) + sizeof( int ) );
rIStm >> nAltOffset;
diff --git a/svtools/util/hidother.src b/svtools/util/hidother.src
index 77dd98115221..91c889eda866 100644
--- a/svtools/util/hidother.src
+++ b/svtools/util/hidother.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,33 +27,33 @@
#include "../inc/svtools/helpid.hrc" // HID_XXX
-hidspecial HID_TEMPLATEDLG_ICONCTRL { HelpID = HID_TEMPLATEDLG_ICONCTRL; }
-hidspecial HID_TEMPLATEDLG_FILEVIEW { HelpID = HID_TEMPLATEDLG_FILEVIEW; };
+hidspecial HID_TEMPLATEDLG_ICONCTRL { HelpID = HID_TEMPLATEDLG_ICONCTRL; }
+hidspecial HID_TEMPLATEDLG_FILEVIEW { HelpID = HID_TEMPLATEDLG_FILEVIEW; };
-hidspecial HID_ADDRTEMPL_FIELD_ASSIGNMENT { HelpID = HID_ADDRTEMPL_FIELD_ASSIGNMENT; };
+hidspecial HID_ADDRTEMPL_FIELD_ASSIGNMENT { HelpID = HID_ADDRTEMPL_FIELD_ASSIGNMENT; };
-hidspecial HID_FILESAVE_LEVELUP { HelpID = HID_FILESAVE_LEVELUP; };
-hidspecial HID_FILESAVE_CREATEDIRECTORY { HelpID = HID_FILESAVE_CREATEDIRECTORY; };
-hidspecial HID_FILESAVE_DEFAULTDIRECTORY { HelpID = HID_FILESAVE_DEFAULTDIRECTORY; };
-hidspecial HID_FILESAVE_FILEVIEW { HelpID = HID_FILESAVE_FILEVIEW; };
-hidspecial HID_FILESAVE_TEMPLATE { HelpID = HID_FILESAVE_TEMPLATE; };
-hidspecial HID_FILESAVE_FILEURL { HelpID = HID_FILESAVE_FILEURL; };
-hidspecial HID_FILESAVE_FILETYPE { HelpID = HID_FILESAVE_FILETYPE; };
-hidspecial HID_FILESAVE_DOSAVE { HelpID = HID_FILESAVE_DOSAVE; };
-hidspecial HID_FILESAVE_AUTOEXTENSION { HelpID = HID_FILESAVE_AUTOEXTENSION; };
-hidspecial HID_FILESAVE_SAVEWITHPASSWORD { HelpID = HID_FILESAVE_SAVEWITHPASSWORD; };
-hidspecial HID_FILESAVE_CUSTOMIZEFILTER { HelpID = HID_FILESAVE_CUSTOMIZEFILTER; };
-hidspecial HID_FILESAVE_SELECTION { HelpID = HID_FILESAVE_SELECTION; };
-hidspecial HID_FILESAVE_DIALOG { HelpID = HID_FILESAVE_DIALOG; };
-hidspecial HID_FILESAVE_DOPLAY { HelpID = HID_FILESAVE_DOPLAY; };
-hidspecial HID_FILEOPEN_READONLY { HelpID = HID_FILEOPEN_READONLY; };
-hidspecial HID_FILEOPEN_VERSION { HelpID = HID_FILEOPEN_VERSION; };
-hidspecial HID_FILEOPEN_IMAGE_TEMPLATE { HelpID = HID_FILEOPEN_IMAGE_TEMPLATE; };
-hidspecial HID_HELPAGENT_WINDOW { HelpID = HID_HELPAGENT_WINDOW; };
+hidspecial HID_FILESAVE_LEVELUP { HelpID = HID_FILESAVE_LEVELUP; };
+hidspecial HID_FILESAVE_CREATEDIRECTORY { HelpID = HID_FILESAVE_CREATEDIRECTORY; };
+hidspecial HID_FILESAVE_DEFAULTDIRECTORY { HelpID = HID_FILESAVE_DEFAULTDIRECTORY; };
+hidspecial HID_FILESAVE_FILEVIEW { HelpID = HID_FILESAVE_FILEVIEW; };
+hidspecial HID_FILESAVE_TEMPLATE { HelpID = HID_FILESAVE_TEMPLATE; };
+hidspecial HID_FILESAVE_FILEURL { HelpID = HID_FILESAVE_FILEURL; };
+hidspecial HID_FILESAVE_FILETYPE { HelpID = HID_FILESAVE_FILETYPE; };
+hidspecial HID_FILESAVE_DOSAVE { HelpID = HID_FILESAVE_DOSAVE; };
+hidspecial HID_FILESAVE_AUTOEXTENSION { HelpID = HID_FILESAVE_AUTOEXTENSION; };
+hidspecial HID_FILESAVE_SAVEWITHPASSWORD { HelpID = HID_FILESAVE_SAVEWITHPASSWORD; };
+hidspecial HID_FILESAVE_CUSTOMIZEFILTER { HelpID = HID_FILESAVE_CUSTOMIZEFILTER; };
+hidspecial HID_FILESAVE_SELECTION { HelpID = HID_FILESAVE_SELECTION; };
+hidspecial HID_FILESAVE_DIALOG { HelpID = HID_FILESAVE_DIALOG; };
+hidspecial HID_FILESAVE_DOPLAY { HelpID = HID_FILESAVE_DOPLAY; };
+hidspecial HID_FILEOPEN_READONLY { HelpID = HID_FILEOPEN_READONLY; };
+hidspecial HID_FILEOPEN_VERSION { HelpID = HID_FILEOPEN_VERSION; };
+hidspecial HID_FILEOPEN_IMAGE_TEMPLATE { HelpID = HID_FILEOPEN_IMAGE_TEMPLATE; };
+hidspecial HID_HELPAGENT_WINDOW { HelpID = HID_HELPAGENT_WINDOW; };
-hidspecial HID_REGISTRATION_DIALOG { HelpID = HID_REGISTRATION_DIALOG; };
+hidspecial HID_REGISTRATION_DIALOG { HelpID = HID_REGISTRATION_DIALOG; };
-hidspecial HID_PRINTDIALOG_TOFILE { HelpID = HID_PRINTDIALOG_TOFILE; };
+hidspecial HID_PRINTDIALOG_TOFILE { HelpID = HID_PRINTDIALOG_TOFILE; };
-hidspecial HID_WIZARD_NEXT { HelpID = HID_WIZARD_NEXT; };
-hidspecial HID_WIZARD_PREVIOUS { HelpID = HID_WIZARD_PREVIOUS; };
+hidspecial HID_WIZARD_NEXT { HelpID = HID_WIZARD_NEXT; };
+hidspecial HID_WIZARD_PREVIOUS { HelpID = HID_WIZARD_PREVIOUS; };
diff --git a/svtools/workben/browser.cxx b/svtools/workben/browser.cxx
index 6b62d25c93ec..e059e495f792 100644
--- a/svtools/workben/browser.cxx
+++ b/svtools/workben/browser.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,33 +41,33 @@
#include <vcl/button.hxx>
#include <vcl/dialog.hxx>
-#define MID_BROWSER 10
-#define MID_MODE 11
-#define MID_EVENTVIEW 12
-#define MID_INVALIDATE 13
-#define MID_CLEAR 14
+#define MID_BROWSER 10
+#define MID_MODE 11
+#define MID_EVENTVIEW 12
+#define MID_INVALIDATE 13
+#define MID_CLEAR 14
#define MID_ROW 20
-#define MID_INSERTROW_BEFORE 21
-#define MID_INSERTROW_AT 22
-#define MID_INSERTROW_BEHIND 23
-#define MID_REMOVEROW_BEFORE 24
-#define MID_REMOVEROW_AT 25
-#define MID_REMOVEROW_BEHIND 26
-#define MID_MODIFYROW_BEFORE 27
-#define MID_MODIFYROW_AT 28
-#define MID_MODIFYROW_BEHIND 29
+#define MID_INSERTROW_BEFORE 21
+#define MID_INSERTROW_AT 22
+#define MID_INSERTROW_BEHIND 23
+#define MID_REMOVEROW_BEFORE 24
+#define MID_REMOVEROW_AT 25
+#define MID_REMOVEROW_BEHIND 26
+#define MID_MODIFYROW_BEFORE 27
+#define MID_MODIFYROW_AT 28
+#define MID_MODIFYROW_BEHIND 29
#define MID_COL 30
-#define MID_INSERTCOL 31
-#define MID_REMOVECOL 32
-#define MID_MOVECOLLEFT 33
-#define MID_MOVECOLRIGHT 34
-#define MID_SELECTIONS 60
-#define MID_SELECTROW 61
-#define MID_SELECTALL 62
-#define MID_SELECTNONE 63
-#define MID_INVERSE 64
-#define MID_EXTRAS 70
-#define MID_STARMONEY_1 71
+#define MID_INSERTCOL 31
+#define MID_REMOVECOL 32
+#define MID_MOVECOLLEFT 33
+#define MID_MOVECOLRIGHT 34
+#define MID_SELECTIONS 60
+#define MID_SELECTROW 61
+#define MID_SELECTALL 62
+#define MID_SELECTNONE 63
+#define MID_INVERSE 64
+#define MID_EXTRAS 70
+#define MID_STARMONEY_1 71
//==================================================================
@@ -112,16 +112,16 @@ friend class AppWindow;
DataList aRows;
BOOL bInverse;
- Edit* pEdit;
+ Edit* pEdit;
protected:
virtual long GetRowCount() const;
virtual BOOL SeekRow( long nRow );
- virtual void PaintField( OutputDevice& rDev, const Rectangle& rRect,
+ virtual void PaintField( OutputDevice& rDev, const Rectangle& rRect,
USHORT nColumnId ) const;
virtual void Select();
- virtual void DoubleClick();
+ virtual void DoubleClick();
virtual void CursorMoved();
virtual void StartScroll();
virtual void EndScroll();
@@ -130,7 +130,7 @@ protected:
virtual BOOL StartDragging( Pointer& rMovePtr,
Pointer& rCopyPtr );
virtual void EndDragging( const DropAction &rAction );
- virtual void MouseButtonDown( const BrowserMouseEvent &rEvt );
+ virtual void MouseButtonDown( const BrowserMouseEvent &rEvt );
public:
Browser( AppWindow* pParent, BrowserMode eMode );
@@ -145,8 +145,8 @@ public:
class AppWindow: public WorkWindow
{
MenuBar aMenu;
- PopupMenu aBrwMenu, aRowMenu, aColMenu, aSelMenu, aExtMenu;
- Edit aEdit;
+ PopupMenu aBrwMenu, aRowMenu, aColMenu, aSelMenu, aExtMenu;
+ Edit aEdit;
Browser aBrowser;
BrowserMode eCurMode;
FloatingWindow *pEventView;
diff --git a/svtools/workben/cui/loadlib.cxx b/svtools/workben/cui/loadlib.cxx
index 48c41774852a..3eaf125dd2e4 100644
--- a/svtools/workben/cui/loadlib.cxx
+++ b/svtools/workben/cui/loadlib.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ int __LOADONCALLAPI main( int argc, char **argv )
if ( aLibrary )
osl_unloadModule( aLibrary );
-
+
return 0;
}
diff --git a/svtools/workben/stest.cxx b/svtools/workben/stest.cxx
index 848d993c6fd1..9455ae3702ed 100644
--- a/svtools/workben/stest.cxx
+++ b/svtools/workben/stest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,11 +44,11 @@ public:
class SearchWindow : public WorkWindow
{
- PushButton aPB;
- FixedText aFT1, aFT2, aFT3;
- MultiLineEdit aEText, aESrch;
- RadioButton aModeN, aModeR, aModeL;
- SearchParam aParam;
+ PushButton aPB;
+ FixedText aFT1, aFT2, aFT3;
+ MultiLineEdit aEText, aESrch;
+ RadioButton aModeN, aModeR, aModeL;
+ SearchParam aParam;
public:
SearchWindow();
@@ -120,7 +120,7 @@ IMPL_LINK( SearchWindow, ClickHdl, Button *, pButton )
String sText( aEText.GetText() );
String sSrch( aESrch.GetText() );
-/* InfoBox( this, String( "T: " ) + sText +
+/* InfoBox( this, String( "T: " ) + sText +
String( "\nS: " ) + sSrch ).Execute();
*/
BOOL bRet = FALSE;
@@ -131,7 +131,7 @@ IMPL_LINK( SearchWindow, ClickHdl, Button *, pButton )
SearchText aSrchText( aParam, GetpApp()->GetAppInternational() );
bRet = aSrchText.SearchFrwrd( sText, &nStt, &nEnd );
-// BOOL SearchBkwrd( const String &rStr, USHORT* pStart, USHORT* pEnde );
+// BOOL SearchBkwrd( const String &rStr, USHORT* pStart, USHORT* pEnde );
}
String sFound( "gefunden" );
@@ -173,7 +173,7 @@ IMPL_LINK( SearchWindow, ClickHdl, Button *, pButton )
void MyApp::Main( )
{
- SearchWindow* pSearchWindow = new SearchWindow;
+ SearchWindow* pSearchWindow = new SearchWindow;
pSearchWindow->Show();
Execute();
delete pSearchWindow;
diff --git a/svtools/workben/svdem.cxx b/svtools/workben/svdem.cxx
index 7f25a7d2b32a..ad428f14cdc0 100644
--- a/svtools/workben/svdem.cxx
+++ b/svtools/workben/svdem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,13 +73,13 @@ public:
class ShowBitmap : public WorkWindow
{
- Bitmap aBmp;
+ Bitmap aBmp;
public:
ShowBitmap( Window* pParent, const Bitmap& rBmp );
- virtual void Paint( const Rectangle& );
- virtual BOOL Close();
+ virtual void Paint( const Rectangle& );
+ virtual BOOL Close();
};
// -----------------------------------------------------------------------
@@ -89,8 +89,8 @@ class ShowFont : public Control
public:
ShowFont( Window* pParent );
- virtual void Paint( const Rectangle& );
- void SetFont( const Font& rFont )
+ virtual void Paint( const Rectangle& );
+ void SetFont( const Font& rFont )
{ Invalidate(); Control::SetFont( rFont ); }
};
@@ -101,7 +101,7 @@ class OrientSlider : public Slider
public:
OrientSlider( Window* pParent );
- short GetOrientation() const { return (short)GetThumbPos(); }
+ short GetOrientation() const { return (short)GetThumbPos(); }
};
// -----------------------------------------------------------------------
@@ -120,25 +120,25 @@ OrientSlider::OrientSlider( Window* pParent ) :
class MyFontDialog : public ModalDialog
{
private:
- FontList* pList;
- Font aCurFont;
- Printer aPrinter;
- FontNameBox aFontBox;
- FontStyleBox aStyleBox;
- FontSizeBox aSizeBox;
- ListBox aUnderlineBox;
- ListBox aStrikeoutBox;
- CheckBox aWordLineBox;
- CheckBox aShadowBox;
- CheckBox aOutlineBox;
- ColorListBox aColorBox;
- GroupBox aEffectBox;
- OrientSlider aLineOrientSlider;
- ShowFont aShowFont;
- GroupBox aSampleBox;
- FixedText aMapText;
- OKButton aOKBtn;
- CancelButton aCancelBtn;
+ FontList* pList;
+ Font aCurFont;
+ Printer aPrinter;
+ FontNameBox aFontBox;
+ FontStyleBox aStyleBox;
+ FontSizeBox aSizeBox;
+ ListBox aUnderlineBox;
+ ListBox aStrikeoutBox;
+ CheckBox aWordLineBox;
+ CheckBox aShadowBox;
+ CheckBox aOutlineBox;
+ ColorListBox aColorBox;
+ GroupBox aEffectBox;
+ OrientSlider aLineOrientSlider;
+ ShowFont aShowFont;
+ GroupBox aSampleBox;
+ FixedText aMapText;
+ OKButton aOKBtn;
+ CancelButton aCancelBtn;
public:
MyFontDialog( Window* pParent );
@@ -146,8 +146,8 @@ public:
DECL_LINK( SelectFont, ComboBox* );
DECL_LINK( SelectStyle, ComboBox* );
DECL_LINK( AttrHdl, Window * );
- void SetAttr();
- short Execute();
+ void SetAttr();
+ short Execute();
};
// -----------------------------------------------------------------------
@@ -159,22 +159,22 @@ public:
WinBits nWinStyle = WB_STDTABBAR ) :
TabBar( pParent, nWinStyle ) {}
- virtual long DeactivatePage();
- virtual long AllowRenaming();
- virtual void Split();
+ virtual long DeactivatePage();
+ virtual long AllowRenaming();
+ virtual void Split();
};
// -----------------------------------------------------------------------
class MyCalendar : public WorkWindow
{
- MenuBar aMenuBar;
- PopupMenu aWeekStartMenu;
- PopupMenu aWeekCountMenu;
- Calendar aCalendar;
- Color aInfoColor;
- Color aHolidayColor;
- Color aFrameColor;
+ MenuBar aMenuBar;
+ PopupMenu aWeekStartMenu;
+ PopupMenu aWeekCountMenu;
+ Calendar aCalendar;
+ Color aInfoColor;
+ Color aHolidayColor;
+ Color aFrameColor;
public:
MyCalendar( Window* pParent );
@@ -184,7 +184,7 @@ public:
DECL_LINK( DoubleClickHdl, Calendar* );
DECL_LINK( MenuSelectHdl, Menu* );
- void Resize();
+ void Resize();
};
// -----------------------------------------------------------------------
@@ -192,27 +192,27 @@ public:
class MyWin : public WorkWindow
{
private:
- Printer aPrn;
- ToolBox aBox;
- StatusBar aBar;
- HeaderBar aHeadBar;
- ColorListBox aColorList;
- LineListBox aLineList;
- ValueSet aValueSet;
- CalendarField aCalendarField;
- CalendarField aCalendarField2;
- MyTabBar aTabBar;
- ProgressBar aPrgsBar;
- PushButton aFontBtn;
- PushButton aCalendarBtn;
- PushButton aPrnSetupBtn;
- PushButton aPrnDlgBtn;
- Size aBoxSize;
- MyCalendar* pCalendar;
- PopupMenu* pMenu;
- FontNameMenu* pNameMenu;
- FontStyleMenu* pStyleMenu;
- FontSizeMenu* pSizeMenu;
+ Printer aPrn;
+ ToolBox aBox;
+ StatusBar aBar;
+ HeaderBar aHeadBar;
+ ColorListBox aColorList;
+ LineListBox aLineList;
+ ValueSet aValueSet;
+ CalendarField aCalendarField;
+ CalendarField aCalendarField2;
+ MyTabBar aTabBar;
+ ProgressBar aPrgsBar;
+ PushButton aFontBtn;
+ PushButton aCalendarBtn;
+ PushButton aPrnSetupBtn;
+ PushButton aPrnDlgBtn;
+ Size aBoxSize;
+ MyCalendar* pCalendar;
+ PopupMenu* pMenu;
+ FontNameMenu* pNameMenu;
+ FontStyleMenu* pStyleMenu;
+ FontSizeMenu* pSizeMenu;
public:
MyWin( Window* pParent, WinBits aWinStyle );
@@ -221,13 +221,13 @@ public:
DECL_LINK( Test, PushButton* );
DECL_LINK( SelectHdl, Window* );
DECL_LINK( CalSelectHdl, CalendarField* );
- void ContextMenu( const Point& rPos );
+ void ContextMenu( const Point& rPos );
- void Command( const CommandEvent& rCEvt );
- void MouseButtonDown( const MouseEvent& rMEvt );
- void KeyInput( const KeyEvent& rKEvt );
- void Paint( const Rectangle& rRect );
- void Resize();
+ void Command( const CommandEvent& rCEvt );
+ void MouseButtonDown( const MouseEvent& rMEvt );
+ void KeyInput( const KeyEvent& rKEvt );
+ void Paint( const Rectangle& rRect );
+ void Resize();
};
// -----------------------------------------------------------------------
@@ -305,9 +305,9 @@ ShowFont::ShowFont( Window* pParent ) :
void ShowFont::Paint( const Rectangle& )
{
const Font& rFont = GetFont();
- String aText;
- Size aWindowSize( GetOutputSize() );
- long x,y;
+ String aText;
+ Size aWindowSize( GetOutputSize() );
+ long x,y;
if ( rFont.GetOrientation() )
{
@@ -423,22 +423,22 @@ MyFontDialog::MyFontDialog( Window* pParent ) :
aColorBox.SetPosSizePixel( Point( 15, 305 ), Size( 130, 100 ) );
aColorBox.SetSelectHdl( LINK( this, MyFontDialog, AttrHdl ) );
aColorBox.SetUpdateMode( FALSE );
- aColorBox.InsertEntry( Color( COL_BLACK ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Black" ) ) );
- aColorBox.InsertEntry( Color( COL_BLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Blue" ) ) );
- aColorBox.InsertEntry( Color( COL_GREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Green" ) ) );
- aColorBox.InsertEntry( Color( COL_CYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Cyan" ) ) );
- aColorBox.InsertEntry( Color( COL_RED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Red" ) ) );
- aColorBox.InsertEntry( Color( COL_MAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Magenta" ) ) );
- aColorBox.InsertEntry( Color( COL_BROWN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Brown" ) ) );
- aColorBox.InsertEntry( Color( COL_GRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Gray" ) ) );
- aColorBox.InsertEntry( Color( COL_LIGHTGRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGray" ) ) );
- aColorBox.InsertEntry( Color( COL_LIGHTBLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightBlue" ) ) );
+ aColorBox.InsertEntry( Color( COL_BLACK ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Black" ) ) );
+ aColorBox.InsertEntry( Color( COL_BLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Blue" ) ) );
+ aColorBox.InsertEntry( Color( COL_GREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Green" ) ) );
+ aColorBox.InsertEntry( Color( COL_CYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Cyan" ) ) );
+ aColorBox.InsertEntry( Color( COL_RED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Red" ) ) );
+ aColorBox.InsertEntry( Color( COL_MAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Magenta" ) ) );
+ aColorBox.InsertEntry( Color( COL_BROWN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Brown" ) ) );
+ aColorBox.InsertEntry( Color( COL_GRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Gray" ) ) );
+ aColorBox.InsertEntry( Color( COL_LIGHTGRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGray" ) ) );
+ aColorBox.InsertEntry( Color( COL_LIGHTBLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightBlue" ) ) );
aColorBox.InsertEntry( Color( COL_LIGHTGREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGreen" ) ) );
- aColorBox.InsertEntry( Color( COL_LIGHTCYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightCyan" ) ) );
- aColorBox.InsertEntry( Color( COL_LIGHTRED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightRed" ) ) );
+ aColorBox.InsertEntry( Color( COL_LIGHTCYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightCyan" ) ) );
+ aColorBox.InsertEntry( Color( COL_LIGHTRED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightRed" ) ) );
aColorBox.InsertEntry( Color( COL_LIGHTMAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightMagenta" ) ) );
- aColorBox.InsertEntry( Color( COL_YELLOW ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Yellow" ) ) );
- aColorBox.InsertEntry( Color( COL_WHITE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "White" ) ) );
+ aColorBox.InsertEntry( Color( COL_YELLOW ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Yellow" ) ) );
+ aColorBox.InsertEntry( Color( COL_WHITE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "White" ) ) );
aColorBox.SetUpdateMode( TRUE );
aColorBox.Show();
}
@@ -574,9 +574,9 @@ long MyTabBar::AllowRenaming()
void MyTabBar::Split()
{
- Size aSize = GetSizePixel();
- long nWidth = GetSplitSize();
- long nMaxWidth = GetParent()->GetOutputSizePixel().Width()-50;
+ Size aSize = GetSizePixel();
+ long nWidth = GetSplitSize();
+ long nMaxWidth = GetParent()->GetOutputSizePixel().Width()-50;
if ( nWidth < GetMinSize() )
nWidth = GetMinSize();
else if ( nWidth > nMaxWidth )
@@ -670,7 +670,7 @@ IMPL_LINK( MyCalendar, DoubleClickHdl, Calendar*, EMPTYARG )
IMPL_LINK( MyCalendar, MenuSelectHdl, Menu*, pMenu )
{
- USHORT nItemId = pMenu->GetCurItemId();
+ USHORT nItemId = pMenu->GetCurItemId();
if ( (nItemId >= 10) && (nItemId <= 19) )
aCalendar.SetWeekStart( nItemId-10 );
@@ -752,22 +752,22 @@ MyWin::MyWin( Window* pParent, WinBits aWinStyle ) :
{
aColorList.SetPosSizePixel( Point( 10, nY ), Size( 130, 180 ) );
aColorList.SetUpdateMode( FALSE );
- aColorList.InsertEntry( Color( COL_BLACK ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Black" ) ) );
- aColorList.InsertEntry( Color( COL_BLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Blue" ) ) );
- aColorList.InsertEntry( Color( COL_GREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Green" ) ) );
- aColorList.InsertEntry( Color( COL_CYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Cyan" ) ) );
- aColorList.InsertEntry( Color( COL_RED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Red" ) ) );
- aColorList.InsertEntry( Color( COL_MAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Magenta" ) ) );
- aColorList.InsertEntry( Color( COL_BROWN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Brown" ) ) );
- aColorList.InsertEntry( Color( COL_GRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Gray" ) ) );
- aColorList.InsertEntry( Color( COL_LIGHTGRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGray" ) ) );
- aColorList.InsertEntry( Color( COL_LIGHTBLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightBlue" ) ) );
- aColorList.InsertEntry( Color( COL_LIGHTGREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGreen" ) ) );
- aColorList.InsertEntry( Color( COL_LIGHTCYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightCyan" ) ) );
- aColorList.InsertEntry( Color( COL_LIGHTRED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightRed" ) ) );
- aColorList.InsertEntry( Color( COL_LIGHTMAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightMagenta" ) ) );
- aColorList.InsertEntry( Color( COL_YELLOW ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Yellow" ) ) );
- aColorList.InsertEntry( Color( COL_WHITE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "White" ) ) );
+ aColorList.InsertEntry( Color( COL_BLACK ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Black" ) ) );
+ aColorList.InsertEntry( Color( COL_BLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Blue" ) ) );
+ aColorList.InsertEntry( Color( COL_GREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Green" ) ) );
+ aColorList.InsertEntry( Color( COL_CYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Cyan" ) ) );
+ aColorList.InsertEntry( Color( COL_RED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Red" ) ) );
+ aColorList.InsertEntry( Color( COL_MAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Magenta" ) ) );
+ aColorList.InsertEntry( Color( COL_BROWN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Brown" ) ) );
+ aColorList.InsertEntry( Color( COL_GRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Gray" ) ) );
+ aColorList.InsertEntry( Color( COL_LIGHTGRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGray" ) ) );
+ aColorList.InsertEntry( Color( COL_LIGHTBLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightBlue" ) ) );
+ aColorList.InsertEntry( Color( COL_LIGHTGREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGreen" ) ) );
+ aColorList.InsertEntry( Color( COL_LIGHTCYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightCyan" ) ) );
+ aColorList.InsertEntry( Color( COL_LIGHTRED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightRed" ) ) );
+ aColorList.InsertEntry( Color( COL_LIGHTMAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightMagenta" ) ) );
+ aColorList.InsertEntry( Color( COL_YELLOW ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Yellow" ) ) );
+ aColorList.InsertEntry( Color( COL_WHITE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "White" ) ) );
aColorList.SetUpdateMode( TRUE );
aColorList.SetSelectHdl( LINK( this, MyWin, SelectHdl ) );
aColorList.Show();
@@ -795,22 +795,22 @@ MyWin::MyWin( Window* pParent, WinBits aWinStyle ) :
{
aValueSet.SetPosSizePixel( Point( 290, nY ), Size( 130, 180 ) );
- aValueSet.InsertItem( 9, Color( COL_BLACK ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Black" ) ) );
- aValueSet.InsertItem( 10, Color( COL_BLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Blue" ) ) );
- aValueSet.InsertItem( 11, Color( COL_GREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Green" ) ) );
- aValueSet.InsertItem( 12, Color( COL_CYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Cyan" ) ) );
- aValueSet.InsertItem( 13, Color( COL_RED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Red" ) ) );
- aValueSet.InsertItem( 14, Color( COL_MAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Magenta" ) ) );
- aValueSet.InsertItem( 15, Color( COL_BROWN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Brown" ) ) );
- aValueSet.InsertItem( 16, Color( COL_GRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Gray" ) ) );
- aValueSet.InsertItem( 17, Color( COL_LIGHTGRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGray" ) ) );
- aValueSet.InsertItem( 18, Color( COL_LIGHTBLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightBlue" ) ) );
- aValueSet.InsertItem( 19, Color( COL_LIGHTGREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGreen" ) ) );
- aValueSet.InsertItem( 20, Color( COL_LIGHTCYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightCyan" ) ) );
- aValueSet.InsertItem( 21, Color( COL_LIGHTRED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightRed" ) ) );
+ aValueSet.InsertItem( 9, Color( COL_BLACK ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Black" ) ) );
+ aValueSet.InsertItem( 10, Color( COL_BLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Blue" ) ) );
+ aValueSet.InsertItem( 11, Color( COL_GREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Green" ) ) );
+ aValueSet.InsertItem( 12, Color( COL_CYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Cyan" ) ) );
+ aValueSet.InsertItem( 13, Color( COL_RED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Red" ) ) );
+ aValueSet.InsertItem( 14, Color( COL_MAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Magenta" ) ) );
+ aValueSet.InsertItem( 15, Color( COL_BROWN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Brown" ) ) );
+ aValueSet.InsertItem( 16, Color( COL_GRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Gray" ) ) );
+ aValueSet.InsertItem( 17, Color( COL_LIGHTGRAY ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGray" ) ) );
+ aValueSet.InsertItem( 18, Color( COL_LIGHTBLUE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightBlue" ) ) );
+ aValueSet.InsertItem( 19, Color( COL_LIGHTGREEN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightGreen" ) ) );
+ aValueSet.InsertItem( 20, Color( COL_LIGHTCYAN ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightCyan" ) ) );
+ aValueSet.InsertItem( 21, Color( COL_LIGHTRED ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightRed" ) ) );
aValueSet.InsertItem( 22, Color( COL_LIGHTMAGENTA ), XubString( RTL_CONSTASCII_USTRINGPARAM( "LightMagenta" ) ) );
- aValueSet.InsertItem( 23, Color( COL_YELLOW ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Yellow" ) ) );
- aValueSet.InsertItem( 24, Color( COL_WHITE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "White" ) ) );
+ aValueSet.InsertItem( 23, Color( COL_YELLOW ), XubString( RTL_CONSTASCII_USTRINGPARAM( "Yellow" ) ) );
+ aValueSet.InsertItem( 24, Color( COL_WHITE ), XubString( RTL_CONSTASCII_USTRINGPARAM( "White" ) ) );
aValueSet.SetText( XubString( RTL_CONSTASCII_USTRINGPARAM( "None" ) ) );
aValueSet.SetColCount( 4 );
aValueSet.SetLineCount( 4 );
@@ -822,7 +822,7 @@ MyWin::MyWin( Window* pParent, WinBits aWinStyle ) :
aCalendarField.EnableEmptyFieldValue( TRUE );
aCalendarField.SetCalendarStyle( aCalendarField.GetCalendarStyle() | WB_RANGESELECT );
aCalendarField.SetSelectHdl( LINK( this, MyWin, CalSelectHdl ) );
-// aCalendarField.SetDate( Date() );
+// aCalendarField.SetDate( Date() );
aCalendarField.SetEmptyDate();
aCalendarField.EnableToday();
aCalendarField.EnableNone();
@@ -1022,10 +1022,10 @@ void MyWin::ContextMenu( const Point& rPos )
if ( !pMenu )
{
- pMenu = new PopupMenu;
- pNameMenu = new FontNameMenu;
- pStyleMenu = new FontStyleMenu;
- pSizeMenu = new FontSizeMenu;
+ pMenu = new PopupMenu;
+ pNameMenu = new FontNameMenu;
+ pStyleMenu = new FontStyleMenu;
+ pSizeMenu = new FontSizeMenu;
pMenu->InsertItem( 1, XubString( RTL_CONSTASCII_USTRINGPARAM( "Font" ) ) );
pMenu->InsertItem( 2, XubString( RTL_CONSTASCII_USTRINGPARAM( "Attribute" ) ) );
diff --git a/svtools/workben/toolpanel/toolpaneltest.cxx b/svtools/workben/toolpanel/toolpaneltest.cxx
index fe3c1d11d045..cde428acee7b 100644
--- a/svtools/workben/toolpanel/toolpaneltest.cxx
+++ b/svtools/workben/toolpanel/toolpaneltest.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-*
+*
* Copyright 2009 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -343,7 +343,7 @@ public:
~PanelDemoMainWindow();
// window overridables
- virtual void Resize();
+ virtual void Resize();
public:
// operations
@@ -387,22 +387,22 @@ OptionsWindow::OptionsWindow( PanelDemoMainWindow& i_rParent )
{
SetBorderStyle( WINDOW_BORDER_MONO );
- m_aColors.InsertEntry( Color( COL_BLACK ), String( RTL_CONSTASCII_USTRINGPARAM( "Black" ) ) );
- m_aColors.InsertEntry( Color( COL_BLUE ), String( RTL_CONSTASCII_USTRINGPARAM( "Blue" ) ) );
- m_aColors.InsertEntry( Color( COL_GREEN ), String( RTL_CONSTASCII_USTRINGPARAM( "Green" ) ) );
- m_aColors.InsertEntry( Color( COL_CYAN ), String( RTL_CONSTASCII_USTRINGPARAM( "Cyan" ) ) );
- m_aColors.InsertEntry( Color( COL_RED ), String( RTL_CONSTASCII_USTRINGPARAM( "Red" ) ) );
- m_aColors.InsertEntry( Color( COL_MAGENTA ), String( RTL_CONSTASCII_USTRINGPARAM( "Magenta" ) ) );
- m_aColors.InsertEntry( Color( COL_BROWN ), String( RTL_CONSTASCII_USTRINGPARAM( "Brown" ) ) );
- m_aColors.InsertEntry( Color( COL_GRAY ), String( RTL_CONSTASCII_USTRINGPARAM( "Gray" ) ) );
- m_aColors.InsertEntry( Color( COL_LIGHTGRAY ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Gray" ) ) );
- m_aColors.InsertEntry( Color( COL_LIGHTBLUE ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Blue" ) ) );
+ m_aColors.InsertEntry( Color( COL_BLACK ), String( RTL_CONSTASCII_USTRINGPARAM( "Black" ) ) );
+ m_aColors.InsertEntry( Color( COL_BLUE ), String( RTL_CONSTASCII_USTRINGPARAM( "Blue" ) ) );
+ m_aColors.InsertEntry( Color( COL_GREEN ), String( RTL_CONSTASCII_USTRINGPARAM( "Green" ) ) );
+ m_aColors.InsertEntry( Color( COL_CYAN ), String( RTL_CONSTASCII_USTRINGPARAM( "Cyan" ) ) );
+ m_aColors.InsertEntry( Color( COL_RED ), String( RTL_CONSTASCII_USTRINGPARAM( "Red" ) ) );
+ m_aColors.InsertEntry( Color( COL_MAGENTA ), String( RTL_CONSTASCII_USTRINGPARAM( "Magenta" ) ) );
+ m_aColors.InsertEntry( Color( COL_BROWN ), String( RTL_CONSTASCII_USTRINGPARAM( "Brown" ) ) );
+ m_aColors.InsertEntry( Color( COL_GRAY ), String( RTL_CONSTASCII_USTRINGPARAM( "Gray" ) ) );
+ m_aColors.InsertEntry( Color( COL_LIGHTGRAY ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Gray" ) ) );
+ m_aColors.InsertEntry( Color( COL_LIGHTBLUE ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Blue" ) ) );
m_aColors.InsertEntry( Color( COL_LIGHTGREEN ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Green" ) ) );
- m_aColors.InsertEntry( Color( COL_LIGHTCYAN ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Cyan" ) ) );
- m_aColors.InsertEntry( Color( COL_LIGHTRED ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Red" ) ) );
+ m_aColors.InsertEntry( Color( COL_LIGHTCYAN ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Cyan" ) ) );
+ m_aColors.InsertEntry( Color( COL_LIGHTRED ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Red" ) ) );
m_aColors.InsertEntry( Color( COL_LIGHTMAGENTA ), String( RTL_CONSTASCII_USTRINGPARAM( "Light Magenta" ) ) );
- m_aColors.InsertEntry( Color( COL_YELLOW ), String( RTL_CONSTASCII_USTRINGPARAM( "Yellow" ) ) );
- m_aColors.InsertEntry( Color( COL_WHITE ), String( RTL_CONSTASCII_USTRINGPARAM( "White" ) ) );
+ m_aColors.InsertEntry( Color( COL_YELLOW ), String( RTL_CONSTASCII_USTRINGPARAM( "Yellow" ) ) );
+ m_aColors.InsertEntry( Color( COL_WHITE ), String( RTL_CONSTASCII_USTRINGPARAM( "White" ) ) );
m_aColors.SetDropDownLineCount( 16 );
Window* pControls[] =
diff --git a/svtools/workben/treecontrol/treetest.cxx b/svtools/workben/treecontrol/treetest.cxx
index bd309b650b8e..f2eb21b01d5a 100644
--- a/svtools/workben/treecontrol/treetest.cxx
+++ b/svtools/workben/treecontrol/treetest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -129,7 +129,7 @@ void DirectoryTree::display( const OUString& rURL )
// first create a data model for our tree control
mxTreeDataModel = Reference< XMutableTreeDataModel >(
- mxMultiComponentFactoryServer->createInstanceWithContext(
+ mxMultiComponentFactoryServer->createInstanceWithContext(
OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.tree.MutableTreeDataModel" ) ),
mxComponentContext ), UNO_QUERY_THROW );
@@ -144,39 +144,39 @@ void DirectoryTree::display( const OUString& rURL )
// now create the dialog
Reference< XControlModel > xDialogModel(
- mxMultiComponentFactoryServer->createInstanceWithContext(
+ mxMultiComponentFactoryServer->createInstanceWithContext(
OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlDialogModel" ) ),
mxComponentContext ), UNO_QUERY_THROW );
Reference< XPropertySet > xDialogPropertySet( xDialogModel, UNO_QUERY_THROW );
- xDialogPropertySet->setPropertyValue( sPositionX, Any( sal_Int32(50) ) );
- xDialogPropertySet->setPropertyValue( sPositionY, Any( sal_Int32(50) ) );
- xDialogPropertySet->setPropertyValue( sWidth, Any( sal_Int32(256) ) );
- xDialogPropertySet->setPropertyValue( sHeight, Any( sal_Int32(256) ) );
- xDialogPropertySet->setPropertyValue( sTitle, Any( OUString( RTL_CONSTASCII_USTRINGPARAM( "Tree Control Test" ) ) ) );
+ xDialogPropertySet->setPropertyValue( sPositionX, Any( sal_Int32(50) ) );
+ xDialogPropertySet->setPropertyValue( sPositionY, Any( sal_Int32(50) ) );
+ xDialogPropertySet->setPropertyValue( sWidth, Any( sal_Int32(256) ) );
+ xDialogPropertySet->setPropertyValue( sHeight, Any( sal_Int32(256) ) );
+ xDialogPropertySet->setPropertyValue( sTitle, Any( OUString( RTL_CONSTASCII_USTRINGPARAM( "Tree Control Test" ) ) ) );
Reference< XMultiServiceFactory > xDialogMSF( xDialogModel, UNO_QUERY_THROW );
// now create our tree control
Reference< XControlModel > xTreeControlModel(
- xDialogMSF->createInstance(
+ xDialogMSF->createInstance(
OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.tree.TreeControlModel" ) ) ),
UNO_QUERY_THROW );
Reference< XPropertySet > XTreeControlModelSet( xTreeControlModel, UNO_QUERY_THROW );
- XTreeControlModelSet->setPropertyValue( sSelectionType, Any( SelectionType_NONE ) );
- XTreeControlModelSet->setPropertyValue( sPositionX, Any( sal_Int32(3) ) );
- XTreeControlModelSet->setPropertyValue( sPositionY, Any( sal_Int32(3) ) );
- XTreeControlModelSet->setPropertyValue( sWidth, Any( sal_Int32(253) ) );
- XTreeControlModelSet->setPropertyValue( sHeight, Any( sal_Int32(253) ) );
- XTreeControlModelSet->setPropertyValue( sDataModel, Any( mxTreeDataModel ) );
+ XTreeControlModelSet->setPropertyValue( sSelectionType, Any( SelectionType_NONE ) );
+ XTreeControlModelSet->setPropertyValue( sPositionX, Any( sal_Int32(3) ) );
+ XTreeControlModelSet->setPropertyValue( sPositionY, Any( sal_Int32(3) ) );
+ XTreeControlModelSet->setPropertyValue( sWidth, Any( sal_Int32(253) ) );
+ XTreeControlModelSet->setPropertyValue( sHeight, Any( sal_Int32(253) ) );
+ XTreeControlModelSet->setPropertyValue( sDataModel, Any( mxTreeDataModel ) );
XTreeControlModelSet->setPropertyValue( sShowsRootHandles,Any( sal_False ) );
- XTreeControlModelSet->setPropertyValue( sShowsHandles, Any( sal_False ) );
- XTreeControlModelSet->setPropertyValue( sRootDisplayed, Any( sal_True ) );
- XTreeControlModelSet->setPropertyValue( sEditable, Any( sal_True ) );
-// XTreeControlModelSet->setPropertyValue( sRowHeight, Any( sal_Int32( 12 ) ) );
-
+ XTreeControlModelSet->setPropertyValue( sShowsHandles, Any( sal_False ) );
+ XTreeControlModelSet->setPropertyValue( sRootDisplayed, Any( sal_True ) );
+ XTreeControlModelSet->setPropertyValue( sEditable, Any( sal_True ) );
+// XTreeControlModelSet->setPropertyValue( sRowHeight, Any( sal_Int32( 12 ) ) );
+
Reference< XNameContainer > xDialogModelContainer( xDialogModel, UNO_QUERY_THROW );
const OUString sTreeControlName( RTL_CONSTASCII_USTRINGPARAM( "tree" ) );
@@ -185,18 +185,18 @@ void DirectoryTree::display( const OUString& rURL )
// now create the peers
Reference< XControl > xDialogControl(
- mxMultiComponentFactoryServer->createInstanceWithContext(
+ mxMultiComponentFactoryServer->createInstanceWithContext(
OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.UnoControlDialog" ) ),
mxComponentContext ), UNO_QUERY_THROW );
xDialogControl->setModel( xDialogModel );
-
+
Reference< XToolkit > xToolkit(
- mxMultiComponentFactoryServer->createInstanceWithContext(
+ mxMultiComponentFactoryServer->createInstanceWithContext(
OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.Toolkit" ) ),
mxComponentContext ), UNO_QUERY_THROW );
xDialogControl->createPeer( xToolkit, 0 );
-
+
// get the peers of the sub controls from the dialog peer container
Reference< XControlContainer > xDialogContainer( xDialogControl, UNO_QUERY_THROW );
mxTreeControl = Reference< XTreeControl >( xDialogContainer->getControl( sTreeControlName ), UNO_QUERY_THROW );
@@ -315,9 +315,9 @@ int SAL_CALL main( int argc, char **argv )
}
if (argc == 3)
{
- sConnectionString = OUString::createFromAscii(argv[2]);
- }
-
+ sConnectionString = OUString::createFromAscii(argv[2]);
+ }
+
// Creates a simple registry service instance.
Reference< XSimpleRegistry > xSimpleRegistry(::cppu::createSimpleRegistry() );
@@ -335,7 +335,7 @@ int SAL_CALL main( int argc, char **argv )
*/
Reference< XComponentContext > xComponentContext(
::cppu::bootstrap_InitialComponentContext( xSimpleRegistry ) );
-
+
/* Gets the service manager instance to be used (or null). This method has
been added for convenience, because the service manager is a often used
object.
@@ -347,7 +347,7 @@ int SAL_CALL main( int argc, char **argv )
by the factory.
*/
Reference< XInterface > xInterface =
- xMultiComponentFactoryClient->createInstanceWithContext(
+ xMultiComponentFactoryClient->createInstanceWithContext(
OUString::createFromAscii( "com.sun.star.bridge.UnoUrlResolver" ),
xComponentContext );
@@ -356,7 +356,7 @@ int SAL_CALL main( int argc, char **argv )
// Resolves the component context from the office, on the uno URL given by argv[1].
try
{
- xInterface = Reference< XInterface >(
+ xInterface = Reference< XInterface >(
resolver->resolve( sConnectionString ), UNO_QUERY );
}
catch ( Exception& e )
@@ -364,9 +364,9 @@ int SAL_CALL main( int argc, char **argv )
printf("Error: cannot establish a connection using '%s':\n %s\n",
OUStringToOString(sConnectionString, RTL_TEXTENCODING_ASCII_US).getStr(),
OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US).getStr());
- exit(1);
+ exit(1);
}
-
+
// gets the server component context as property of the office component factory
Reference< XPropertySet > xPropSet( xInterface, UNO_QUERY );
xPropSet->getPropertyValue( OUString::createFromAscii("DefaultContext") ) >>= xComponentContext;
@@ -374,7 +374,7 @@ int SAL_CALL main( int argc, char **argv )
// gets the service manager from the office
Reference< XMultiComponentFactory > xMultiComponentFactoryServer(
xComponentContext->getServiceManager() );
-
+
try
{
OUString ustrFileURL;
@@ -387,13 +387,13 @@ int SAL_CALL main( int argc, char **argv )
{
printf("Error: exception caught during test:\n %s\n",
OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US).getStr());
- exit(1);
+ exit(1);
}
// dispose the local service manager
Reference< XComponent >::query( xMultiComponentFactoryClient )->dispose();
return 0;
-}
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svtools/workben/unodialog/roadmapskeleton.cxx b/svtools/workben/unodialog/roadmapskeleton.cxx
index 3646ee138073..766dcd41eb24 100644
--- a/svtools/workben/unodialog/roadmapskeleton.cxx
+++ b/svtools/workben/unodialog/roadmapskeleton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/roadmapskeleton.hrc b/svtools/workben/unodialog/roadmapskeleton.hrc
index 9b704e4a8f11..02727c53243f 100644
--- a/svtools/workben/unodialog/roadmapskeleton.hrc
+++ b/svtools/workben/unodialog/roadmapskeleton.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/roadmapskeleton.hxx b/svtools/workben/unodialog/roadmapskeleton.hxx
index 204a2d629459..71f000a35d24 100644
--- a/svtools/workben/unodialog/roadmapskeleton.hxx
+++ b/svtools/workben/unodialog/roadmapskeleton.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/roadmapskeleton.src b/svtools/workben/unodialog/roadmapskeleton.src
index 797490273b5f..11d828245be7 100644
--- a/svtools/workben/unodialog/roadmapskeleton.src
+++ b/svtools/workben/unodialog/roadmapskeleton.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/roadmapskeletonpages.cxx b/svtools/workben/unodialog/roadmapskeletonpages.cxx
index 38f232c00428..6292c53f8399 100644
--- a/svtools/workben/unodialog/roadmapskeletonpages.cxx
+++ b/svtools/workben/unodialog/roadmapskeletonpages.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/roadmapskeletonpages.hxx b/svtools/workben/unodialog/roadmapskeletonpages.hxx
index f74c518f33b6..0d289cbc0568 100644
--- a/svtools/workben/unodialog/roadmapskeletonpages.hxx
+++ b/svtools/workben/unodialog/roadmapskeletonpages.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/udlg_global.hrc b/svtools/workben/unodialog/udlg_global.hrc
index 572de306f0df..9dc064974041 100644
--- a/svtools/workben/unodialog/udlg_global.hrc
+++ b/svtools/workben/unodialog/udlg_global.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/udlg_module.cxx b/svtools/workben/unodialog/udlg_module.cxx
index 1fe8b66efa33..287af38ac8e9 100644
--- a/svtools/workben/unodialog/udlg_module.cxx
+++ b/svtools/workben/unodialog/udlg_module.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/udlg_module.hxx b/svtools/workben/unodialog/udlg_module.hxx
index e93d894ae6f6..17cd88299cd8 100644
--- a/svtools/workben/unodialog/udlg_module.hxx
+++ b/svtools/workben/unodialog/udlg_module.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/udlg_services.cxx b/svtools/workben/unodialog/udlg_services.cxx
index bf9386dd7aea..eb80f936a810 100644
--- a/svtools/workben/unodialog/udlg_services.cxx
+++ b/svtools/workben/unodialog/udlg_services.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/svtools/workben/unodialog/unodialogsample.cxx b/svtools/workben/unodialog/unodialogsample.cxx
index 00ac56b8a3b6..0413134e7ff3 100644
--- a/svtools/workben/unodialog/unodialogsample.cxx
+++ b/svtools/workben/unodialog/unodialogsample.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,7 +94,7 @@ namespace udlg
~UnoDialogSkeleton();
protected:
- virtual Dialog* createDialog( Window* _pParent );
+ virtual Dialog* createDialog( Window* _pParent );
virtual void destroyDialog();
private:
@@ -131,7 +131,7 @@ namespace udlg
}
//--------------------------------------------------------------------
- Dialog* UnoDialogSkeleton::createDialog( Window* _pParent )
+ Dialog* UnoDialogSkeleton::createDialog( Window* _pParent )
{
return new RoadmapSkeletonDialog( m_aContext, _pParent );
}
@@ -157,13 +157,13 @@ namespace udlg
}
return pId->getImplementationId();
}
-
+
//--------------------------------------------------------------------
::rtl::OUString SAL_CALL UnoDialogSkeleton::getImplementationName_static() throw(RuntimeException)
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.svtools.workben.UnoDialogSkeleton" ) );
}
-
+
//--------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL UnoDialogSkeleton::getSupportedServiceNames_static() throw(RuntimeException)
{
@@ -177,7 +177,7 @@ namespace udlg
{
return getImplementationName_static();
}
-
+
//--------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL UnoDialogSkeleton::getSupportedServiceNames() throw(RuntimeException)
{
diff --git a/svtools/workben/urange.cxx b/svtools/workben/urange.cxx
index c77b7f4f75f7..817ea06758f7 100644
--- a/svtools/workben/urange.cxx
+++ b/svtools/workben/urange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/layout/layout-post.hxx b/toolkit/inc/layout/layout-post.hxx
index 46d4c383a984..bc2ad2863f6e 100644
--- a/toolkit/inc/layout/layout-post.hxx
+++ b/toolkit/inc/layout/layout-post.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/layout/layout-pre.hxx b/toolkit/inc/layout/layout-pre.hxx
index 4205a44f1f54..07da43333509 100644
--- a/toolkit/inc/layout/layout-pre.hxx
+++ b/toolkit/inc/layout/layout-pre.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/layout/layout.hxx b/toolkit/inc/layout/layout.hxx
index ec63578b0408..6c3320cc581a 100644
--- a/toolkit/inc/layout/layout.hxx
+++ b/toolkit/inc/layout/layout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/pch/precompiled_toolkit.cxx b/toolkit/inc/pch/precompiled_toolkit.cxx
index 1fe273215d9b..75827de350f2 100644
--- a/toolkit/inc/pch/precompiled_toolkit.cxx
+++ b/toolkit/inc/pch/precompiled_toolkit.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/pch/precompiled_toolkit.hxx b/toolkit/inc/pch/precompiled_toolkit.hxx
index 300536d3951c..93d2c9035196 100644
--- a/toolkit/inc/pch/precompiled_toolkit.hxx
+++ b/toolkit/inc/pch/precompiled_toolkit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx b/toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx
index 24eae01f8e9d..89cd5cf8a741 100644
--- a/toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx
+++ b/toolkit/inc/toolkit/awt/vclxaccessiblecomponent.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@
#include <comphelper/accimplaccess.hxx>
#include <comphelper/accessiblecomponenthelper.hxx>
-#include <tools/gen.hxx> // Size
-#include <tools/link.hxx> // Size
+#include <tools/gen.hxx> // Size
+#include <tools/link.hxx> // Size
class Window;
class VCLXWindow;
@@ -55,13 +55,13 @@ class AccessibleStateSetHelper;
}
-// ----------------------------------------------------
-// class VCLXAccessibleComponent
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXAccessibleComponent
+// ----------------------------------------------------
-typedef ::comphelper::OAccessibleExtendedComponentHelper AccessibleExtendedComponentHelper_BASE;
+typedef ::comphelper::OAccessibleExtendedComponentHelper AccessibleExtendedComponentHelper_BASE;
-typedef ::cppu::ImplHelper1<
+typedef ::cppu::ImplHelper1<
::com::sun::star::lang::XServiceInfo > VCLXAccessibleComponent_BASE;
class VCLExternalSolarLock;
@@ -73,30 +73,30 @@ class TOOLKIT_DLLPUBLIC VCLXAccessibleComponent
{
private:
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow> mxWindow;
- VCLXWindow* mpVCLXindow;
+ VCLXWindow* mpVCLXindow;
- ULONG nDummy1;
- ULONG nDummy2;
- void* pDummy1;
- VCLExternalSolarLock* m_pSolarLock;
+ ULONG nDummy1;
+ ULONG nDummy2;
+ void* pDummy1;
+ VCLExternalSolarLock* m_pSolarLock;
protected:
DECL_LINK( WindowEventListener, VclSimpleEvent* );
DECL_LINK( WindowChildEventListener, VclSimpleEvent* );
- virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
- virtual void ProcessWindowChildEvent( const VclWindowEvent& rVclWindowEvent );
- virtual void FillAccessibleRelationSet( utl::AccessibleRelationSetHelper& rRelationSet );
- virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet );
+ virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
+ virtual void ProcessWindowChildEvent( const VclWindowEvent& rVclWindowEvent );
+ virtual void FillAccessibleRelationSet( utl::AccessibleRelationSetHelper& rRelationSet );
+ virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > GetChildAccessible( const VclWindowEvent& rVclWindowEvent );
-
+
public:
VCLXAccessibleComponent( VCLXWindow* pVCLXindow );
~VCLXAccessibleComponent();
VCLXWindow* GetVCLXWindow() const { return mpVCLXindow; }
- Window* GetWindow() const;
+ Window* GetWindow() const;
virtual void SAL_CALL disposing();
@@ -113,24 +113,24 @@ public:
// ::com::sun::star::accessibility::XAccessibleContext
sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException);
- sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException);
+ sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException);
sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException);
- ::rtl::OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException);
+ ::rtl::OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException);
::rtl::OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException);
- ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException);
// ::com::sun::star::accessibility::XAccessibleComponent
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
- ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException);
void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException);
virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException);
virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException);
// ::com::sun::star::accessibility::XAccessibleExtendedComponent
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont( ) throw (::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::rtl::OUString SAL_CALL getTitledBorderText( ) throw (::com::sun::star::uno::RuntimeException);
virtual ::rtl::OUString SAL_CALL getToolTipText( ) throw (::com::sun::star::uno::RuntimeException);
@@ -139,7 +139,7 @@ protected:
::com::sun::star::awt::Rectangle SAL_CALL implGetBounds( ) throw (::com::sun::star::uno::RuntimeException);
private:
- /** we may be reparented (if external components use OAccessibleImplementationAccess base class),
+ /** we may be reparented (if external components use OAccessibleImplementationAccess base class),
so this method here returns the parent in the VCL world, in opposite to the parent
an external component gave us
@precond
diff --git a/toolkit/inc/toolkit/awt/vclxbitmap.hxx b/toolkit/inc/toolkit/awt/vclxbitmap.hxx
index aa489d094e48..d527eee1939b 100644
--- a/toolkit/inc/toolkit/awt/vclxbitmap.hxx
+++ b/toolkit/inc/toolkit/awt/vclxbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,47 +38,47 @@
#include <vcl/bitmapex.hxx>
-// ----------------------------------------------------
-// class VCLXBitmap
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXBitmap
+// ----------------------------------------------------
-class VCLXBitmap : public ::com::sun::star::awt::XBitmap,
+class VCLXBitmap : public ::com::sun::star::awt::XBitmap,
public ::com::sun::star::awt::XDisplayBitmap,
public ::com::sun::star::lang::XTypeProvider,
public ::com::sun::star::lang::XUnoTunnel,
public ::cppu::OWeakObject
{
private:
- ::osl::Mutex maMutex;
- BitmapEx maBitmap;
+ ::osl::Mutex maMutex;
+ BitmapEx maBitmap;
protected:
- ::osl::Mutex& GetMutex() { return maMutex; }
+ ::osl::Mutex& GetMutex() { return maMutex; }
public:
- void SetBitmap( const BitmapEx& rBmp ) { maBitmap = rBmp; }
- const BitmapEx& GetBitmap() const { return maBitmap; }
-
+ void SetBitmap( const BitmapEx& rBmp ) { maBitmap = rBmp; }
+ const BitmapEx& GetBitmap() const { return maBitmap; }
+
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static VCLXBitmap* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static VCLXBitmap* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XBitmap
- ::com::sun::star::awt::Size SAL_CALL getSize() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getDIB() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::awt::Size SAL_CALL getSize() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getDIB() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw(::com::sun::star::uno::RuntimeException);
};
diff --git a/toolkit/inc/toolkit/awt/vclxcontainer.hxx b/toolkit/inc/toolkit/awt/vclxcontainer.hxx
index 3e95d8f9811f..6d52065c213d 100644
--- a/toolkit/inc/toolkit/awt/vclxcontainer.hxx
+++ b/toolkit/inc/toolkit/awt/vclxcontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,26 +39,26 @@
#include <toolkit/awt/vclxwindow.hxx>
-// ----------------------------------------------------
-// class VCLXContainer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXContainer
+// ----------------------------------------------------
-class VCLXContainer : public ::com::sun::star::awt::XVclContainer,
- public ::com::sun::star::awt::XVclContainerPeer,
+class VCLXContainer : public ::com::sun::star::awt::XVclContainer,
+ public ::com::sun::star::awt::XVclContainerPeer,
public VCLXWindow
{
-public:
+public:
VCLXContainer();
~VCLXContainer();
-
+
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XVclContainer
void SAL_CALL addVclContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclContainerListener >& l ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/awt/vclxdevice.hxx b/toolkit/inc/toolkit/awt/vclxdevice.hxx
index 5cee7501ac34..d47c883d37ff 100644
--- a/toolkit/inc/toolkit/awt/vclxdevice.hxx
+++ b/toolkit/inc/toolkit/awt/vclxdevice.hxx
@@ -41,14 +41,14 @@
class OutputDevice;
class VirtualDevice;
-// ----------------------------------------------------
-// class VCLXDevice
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXDevice
+// ----------------------------------------------------
// For using nDummy, no incompatible update, add a BOOL bCreatedWithToolkitMember later...
#define FLAGS_CREATEDWITHTOOLKIT 0x00000001
-class TOOLKIT_DLLPUBLIC VCLXDevice : public ::com::sun::star::awt::XDevice,
+class TOOLKIT_DLLPUBLIC VCLXDevice : public ::com::sun::star::awt::XDevice,
public ::com::sun::star::lang::XTypeProvider,
public ::com::sun::star::lang::XUnoTunnel,
/* public ::com::sun::star::awt::XTextConstraints,*/
@@ -59,47 +59,47 @@ class TOOLKIT_DLLPUBLIC VCLXDevice : public ::com::sun::star::awt::XDevice,
private:
::osl::SolarMutex& mrMutex; // Reference to SolarMutex
- OutputDevice* mpOutputDevice;
+ OutputDevice* mpOutputDevice;
public:
- void* pDummy;
- sal_uInt32 nFlags;
+ void* pDummy;
+ sal_uInt32 nFlags;
protected:
::osl::SolarMutex& GetMutex() { return mrMutex; }
- void DestroyOutputDevice();
+ void DestroyOutputDevice();
public:
VCLXDevice();
~VCLXDevice();
- void SetOutputDevice( OutputDevice* pOutDev ) { mpOutputDevice = pOutDev; }
- OutputDevice* GetOutputDevice() const { return mpOutputDevice; }
+ void SetOutputDevice( OutputDevice* pOutDev ) { mpOutputDevice = pOutDev; }
+ OutputDevice* GetOutputDevice() const { return mpOutputDevice; }
void SetCreatedWithToolkit( sal_Bool bCreatedWithToolkit );
sal_Bool IsCreatedWithToolkit() const;
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static VCLXDevice* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static VCLXDevice* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XDevice,
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > SAL_CALL createGraphics( ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > SAL_CALL createDevice( sal_Int32 nWidth, sal_Int32 nHeight ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::awt::DeviceInfo SAL_CALL getInfo() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > SAL_CALL createGraphics( ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > SAL_CALL createDevice( sal_Int32 nWidth, sal_Int32 nHeight ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::awt::DeviceInfo SAL_CALL getInfo() throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Sequence< ::com::sun::star::awt::FontDescriptor > SAL_CALL getFontDescriptors( ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont( const ::com::sun::star::awt::FontDescriptor& aDescriptor ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap > SAL_CALL createBitmap( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont( const ::com::sun::star::awt::FontDescriptor& aDescriptor ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap > SAL_CALL createBitmap( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight ) throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Reference< ::com::sun::star::awt::XDisplayBitmap > SAL_CALL createDisplayBitmap( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >& Bitmap ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XTextConstraints
@@ -115,19 +115,19 @@ public:
};
-// ----------------------------------------------------
-// class VCLXVirtualDevice
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXVirtualDevice
+// ----------------------------------------------------
class VCLXVirtualDevice : public VCLXDevice
{
private:
- VirtualDevice* mpVDev;
+ VirtualDevice* mpVDev;
public:
~VCLXVirtualDevice();
- void SetVirtualDevice( VirtualDevice* pVDev ) { SetOutputDevice( (OutputDevice*)pVDev ); }
+ void SetVirtualDevice( VirtualDevice* pVDev ) { SetOutputDevice( (OutputDevice*)pVDev ); }
};
diff --git a/toolkit/inc/toolkit/awt/vclxfont.hxx b/toolkit/inc/toolkit/awt/vclxfont.hxx
index 3aa432071251..ef13c6aea20a 100644
--- a/toolkit/inc/toolkit/awt/vclxfont.hxx
+++ b/toolkit/inc/toolkit/awt/vclxfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,54 +38,54 @@
#include <osl/mutex.hxx>
#include <vcl/metric.hxx>
-// ----------------------------------------------------
-// class VCLXFont
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXFont
+// ----------------------------------------------------
-class TOOLKIT_DLLPUBLIC VCLXFont : public ::com::sun::star::awt::XFont2,
+class TOOLKIT_DLLPUBLIC VCLXFont : public ::com::sun::star::awt::XFont2,
public ::com::sun::star::lang::XTypeProvider,
public ::com::sun::star::lang::XUnoTunnel,
public ::cppu::OWeakObject
{
private:
- ::osl::Mutex maMutex;
+ ::osl::Mutex maMutex;
::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice> mxDevice;
- Font maFont;
- FontMetric* mpFontMetric;
+ Font maFont;
+ FontMetric* mpFontMetric;
protected:
- BOOL ImplAssertValidFontMetric();
- ::osl::Mutex& GetMutex() { return maMutex; }
+ BOOL ImplAssertValidFontMetric();
+ ::osl::Mutex& GetMutex() { return maMutex; }
public:
VCLXFont();
~VCLXFont();
- void Init( ::com::sun::star::awt::XDevice& rxDev, const Font& rFont );
- const Font& GetFont() const { return maFont; }
+ void Init( ::com::sun::star::awt::XDevice& rxDev, const Font& rFont );
+ const Font& GetFont() const { return maFont; }
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static VCLXFont* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static VCLXFont* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XFont
- ::com::sun::star::awt::FontDescriptor SAL_CALL getFontDescriptor( ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::awt::SimpleFontMetric SAL_CALL getFontMetric( ) throw(::com::sun::star::uno::RuntimeException);
- sal_Int16 SAL_CALL getCharWidth( sal_Unicode c ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int16 > SAL_CALL getCharWidths( sal_Unicode nFirst, sal_Unicode nLast ) throw(::com::sun::star::uno::RuntimeException);
- sal_Int32 SAL_CALL getStringWidth( const ::rtl::OUString& str ) throw(::com::sun::star::uno::RuntimeException);
- sal_Int32 SAL_CALL getStringWidthArray( const ::rtl::OUString& str, ::com::sun::star::uno::Sequence< sal_Int32 >& rDXArray ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL getKernPairs( ::com::sun::star::uno::Sequence< sal_Unicode >& rnChars1, ::com::sun::star::uno::Sequence< sal_Unicode >& rnChars2, ::com::sun::star::uno::Sequence< sal_Int16 >& rnKerns ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::awt::FontDescriptor SAL_CALL getFontDescriptor( ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::awt::SimpleFontMetric SAL_CALL getFontMetric( ) throw(::com::sun::star::uno::RuntimeException);
+ sal_Int16 SAL_CALL getCharWidth( sal_Unicode c ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int16 > SAL_CALL getCharWidths( sal_Unicode nFirst, sal_Unicode nLast ) throw(::com::sun::star::uno::RuntimeException);
+ sal_Int32 SAL_CALL getStringWidth( const ::rtl::OUString& str ) throw(::com::sun::star::uno::RuntimeException);
+ sal_Int32 SAL_CALL getStringWidthArray( const ::rtl::OUString& str, ::com::sun::star::uno::Sequence< sal_Int32 >& rDXArray ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL getKernPairs( ::com::sun::star::uno::Sequence< sal_Unicode >& rnChars1, ::com::sun::star::uno::Sequence< sal_Unicode >& rnChars2, ::com::sun::star::uno::Sequence< sal_Int16 >& rnKerns ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XFont2
sal_Bool SAL_CALL hasGlyphs( const ::rtl::OUString& aText ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/awt/vclxgraphics.hxx b/toolkit/inc/toolkit/awt/vclxgraphics.hxx
index 22266f3aa7fc..2572484f7b27 100644
--- a/toolkit/inc/toolkit/awt/vclxgraphics.hxx
+++ b/toolkit/inc/toolkit/awt/vclxgraphics.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,34 +44,34 @@ class OutputDevice;
class Region;
-#define INITOUTDEV_FONT 0x0001
-#define INITOUTDEV_COLORS 0x0002
-#define INITOUTDEV_RASTEROP 0x0004
-#define INITOUTDEV_CLIPREGION 0x0008
-#define INITOUTDEV_ALL 0xFFFF
+#define INITOUTDEV_FONT 0x0001
+#define INITOUTDEV_COLORS 0x0002
+#define INITOUTDEV_RASTEROP 0x0004
+#define INITOUTDEV_CLIPREGION 0x0008
+#define INITOUTDEV_ALL 0xFFFF
-// ----------------------------------------------------
-// class VCLXGraphics
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXGraphics
+// ----------------------------------------------------
-class VCLXGraphics : public ::com::sun::star::awt::XGraphics,
+class VCLXGraphics : public ::com::sun::star::awt::XGraphics,
public ::com::sun::star::lang::XTypeProvider,
public ::com::sun::star::lang::XUnoTunnel,
public ::cppu::OWeakObject
{
private:
- osl::SolarMutex& mrMutex; // Reference to SolarMutex
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice> mxDevice; // nur um bei getDevice() immer das gleiche zurueckzugeben
-
- OutputDevice* mpOutputDevice;
- Font maFont;
- Color maTextColor;
- Color maTextFillColor;
- Color maLineColor;
- Color maFillColor;
- RasterOp meRasterOp;
- Region* mpClipRegion;
+ osl::SolarMutex& mrMutex; // Reference to SolarMutex
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice> mxDevice; // nur um bei getDevice() immer das gleiche zurueckzugeben
+
+ OutputDevice* mpOutputDevice;
+ Font maFont;
+ Color maTextColor;
+ Color maTextFillColor;
+ Color maLineColor;
+ Color maFillColor;
+ RasterOp meRasterOp;
+ Region* mpClipRegion;
protected:
osl::SolarMutex& GetMutex() { return mrMutex; }
@@ -80,58 +80,58 @@ public:
VCLXGraphics();
~VCLXGraphics();
- void Init( OutputDevice* pOutDev );
- void InitOutputDevice( sal_uInt16 nFlags );
+ void Init( OutputDevice* pOutDev );
+ void InitOutputDevice( sal_uInt16 nFlags );
- void SetOutputDevice( OutputDevice* pOutDev );
- OutputDevice* GetOutputDevice() const { return mpOutputDevice; }
+ void SetOutputDevice( OutputDevice* pOutDev );
+ OutputDevice* GetOutputDevice() const { return mpOutputDevice; }
- const Font& GetFont() const { return maFont; }
+ const Font& GetFont() const { return maFont; }
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static VCLXGraphics* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static VCLXGraphics* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XGraphics
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > SAL_CALL getDevice( ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::awt::SimpleFontMetric SAL_CALL getFontMetric() throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setFont( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont >& xNewFont ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL selectFont( const ::com::sun::star::awt::FontDescriptor& aDescription ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setTextColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setTextFillColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setLineColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setFillColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setRasterOp( ::com::sun::star::awt::RasterOperation ROP ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setClipRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& Clipping ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL intersectClipRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& xClipping ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL push( ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL pop( ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL copy( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice >& xSource, sal_Int32 nSourceX, sal_Int32 nSourceY, sal_Int32 nSourceWidth, sal_Int32 nSourceHeight, sal_Int32 nDestX, sal_Int32 nDestY, sal_Int32 nDestWidth, sal_Int32 nDestHeight ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL draw( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDisplayBitmap >& xBitmapHandle, sal_Int32 SourceX, sal_Int32 SourceY, sal_Int32 SourceWidth, sal_Int32 SourceHeight, sal_Int32 DestX, sal_Int32 DestY, sal_Int32 DestWidth, sal_Int32 DestHeight ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawPixel( sal_Int32 X, sal_Int32 Y ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawLine( sal_Int32 X1, sal_Int32 Y1, sal_Int32 X2, sal_Int32 Y2 ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawRect( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawRoundedRect( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int32 nHorzRound, sal_Int32 nVertRound ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawPolyLine( const ::com::sun::star::uno::Sequence< sal_Int32 >& DataX, const ::com::sun::star::uno::Sequence< sal_Int32 >& DataY ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawPolygon( const ::com::sun::star::uno::Sequence< sal_Int32 >& DataX, const ::com::sun::star::uno::Sequence< sal_Int32 >& DataY ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawPolyPolygon( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int32 > >& DataX, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int32 > >& DataY ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawEllipse( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawArc( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int32 X1, sal_Int32 Y1, sal_Int32 X2, sal_Int32 Y2 ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawPie( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int32 X1, sal_Int32 Y1, sal_Int32 X2, sal_Int32 Y2 ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawChord( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int32 nX1, sal_Int32 nY1, sal_Int32 nX2, sal_Int32 nY2 ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawGradient( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 Height, const ::com::sun::star::awt::Gradient& aGradient ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawText( sal_Int32 X, sal_Int32 Y, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL drawTextArray( sal_Int32 X, sal_Int32 Y, const ::rtl::OUString& Text, const ::com::sun::star::uno::Sequence< sal_Int32 >& Longs ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > SAL_CALL getDevice( ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::awt::SimpleFontMetric SAL_CALL getFontMetric() throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL setFont( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont >& xNewFont ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL selectFont( const ::com::sun::star::awt::FontDescriptor& aDescription ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL setTextColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL setTextFillColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL setLineColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL setFillColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL setRasterOp( ::com::sun::star::awt::RasterOperation ROP ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL setClipRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& Clipping ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL intersectClipRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& xClipping ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL push( ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL pop( ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL copy( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice >& xSource, sal_Int32 nSourceX, sal_Int32 nSourceY, sal_Int32 nSourceWidth, sal_Int32 nSourceHeight, sal_Int32 nDestX, sal_Int32 nDestY, sal_Int32 nDestWidth, sal_Int32 nDestHeight ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL draw( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDisplayBitmap >& xBitmapHandle, sal_Int32 SourceX, sal_Int32 SourceY, sal_Int32 SourceWidth, sal_Int32 SourceHeight, sal_Int32 DestX, sal_Int32 DestY, sal_Int32 DestWidth, sal_Int32 DestHeight ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawPixel( sal_Int32 X, sal_Int32 Y ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawLine( sal_Int32 X1, sal_Int32 Y1, sal_Int32 X2, sal_Int32 Y2 ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawRect( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawRoundedRect( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int32 nHorzRound, sal_Int32 nVertRound ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawPolyLine( const ::com::sun::star::uno::Sequence< sal_Int32 >& DataX, const ::com::sun::star::uno::Sequence< sal_Int32 >& DataY ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawPolygon( const ::com::sun::star::uno::Sequence< sal_Int32 >& DataX, const ::com::sun::star::uno::Sequence< sal_Int32 >& DataY ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawPolyPolygon( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int32 > >& DataX, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int32 > >& DataY ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawEllipse( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawArc( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int32 X1, sal_Int32 Y1, sal_Int32 X2, sal_Int32 Y2 ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawPie( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int32 X1, sal_Int32 Y1, sal_Int32 X2, sal_Int32 Y2 ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawChord( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 nHeight, sal_Int32 nX1, sal_Int32 nY1, sal_Int32 nX2, sal_Int32 nY2 ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawGradient( sal_Int32 nX, sal_Int32 nY, sal_Int32 nWidth, sal_Int32 Height, const ::com::sun::star::awt::Gradient& aGradient ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawText( sal_Int32 X, sal_Int32 Y, const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL drawTextArray( sal_Int32 X, sal_Int32 Y, const ::rtl::OUString& Text, const ::com::sun::star::uno::Sequence< sal_Int32 >& Longs ) throw(::com::sun::star::uno::RuntimeException);
};
diff --git a/toolkit/inc/toolkit/awt/vclxmenu.hxx b/toolkit/inc/toolkit/awt/vclxmenu.hxx
index 0060d155a01c..cdf0fff9b61d 100644
--- a/toolkit/inc/toolkit/awt/vclxmenu.hxx
+++ b/toolkit/inc/toolkit/awt/vclxmenu.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,9 +50,9 @@ class PopupMenu;
DECLARE_LIST( PopupMenuRefList, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPopupMenu >* )
-// ----------------------------------------------------
-// class VCLXMenu
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXMenu
+// ----------------------------------------------------
class TOOLKIT_DLLPUBLIC VCLXMenu : public ::com::sun::star::awt::XMenuBarExtended,
public ::com::sun::star::awt::XPopupMenuExtended,
@@ -62,17 +62,17 @@ class TOOLKIT_DLLPUBLIC VCLXMenu : public ::com::sun::star::awt::XMenuBarExtend
public ::cppu::OWeakObject
{
private:
- ::osl::Mutex maMutex;
- Menu* mpMenu;
- MenuListenerMultiplexer maMenuListeners;
- PopupMenuRefList maPopupMenueRefs;
+ ::osl::Mutex maMutex;
+ Menu* mpMenu;
+ MenuListenerMultiplexer maMenuListeners;
+ PopupMenuRefList maPopupMenueRefs;
protected:
- ::osl::Mutex& GetMutex() { return maMutex; }
+ ::osl::Mutex& GetMutex() { return maMutex; }
- DECL_LINK( MenuEventListener, VclSimpleEvent* );
+ DECL_LINK( MenuEventListener, VclSimpleEvent* );
- void ImplCreateMenu( sal_Bool bPopup );
+ void ImplCreateMenu( sal_Bool bPopup );
public:
VCLXMenu();
@@ -80,22 +80,22 @@ public:
~VCLXMenu();
- Menu* GetMenu() const { return mpMenu; }
- BOOL IsPopupMenu() const;
+ Menu* GetMenu() const { return mpMenu; }
+ BOOL IsPopupMenu() const;
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static VCLXMenu* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static VCLXMenu* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XMenu
void SAL_CALL addMenuListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
@@ -166,9 +166,9 @@ public:
};
-// ----------------------------------------------------
-// class VCLXMenuBar
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXMenuBar
+// ----------------------------------------------------
class TOOLKIT_DLLPUBLIC VCLXMenuBar : public VCLXMenu
{
public:
@@ -176,9 +176,9 @@ public:
VCLXMenuBar( MenuBar* pMenuBar );
};
-// ----------------------------------------------------
-// class VCLXPopupMenu
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPopupMenu
+// ----------------------------------------------------
class TOOLKIT_DLLPUBLIC VCLXPopupMenu : public VCLXMenu
{
public:
diff --git a/toolkit/inc/toolkit/awt/vclxpointer.hxx b/toolkit/inc/toolkit/awt/vclxpointer.hxx
index 20fea4e36216..d24fd04e0d4f 100644
--- a/toolkit/inc/toolkit/awt/vclxpointer.hxx
+++ b/toolkit/inc/toolkit/awt/vclxpointer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,41 +38,41 @@
#include <vcl/pointr.hxx>
-// ----------------------------------------------------
-// class VCLXPointer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPointer
+// ----------------------------------------------------
-class VCLXPointer : public ::com::sun::star::awt::XPointer,
+class VCLXPointer : public ::com::sun::star::awt::XPointer,
public ::com::sun::star::lang::XTypeProvider,
public ::com::sun::star::lang::XUnoTunnel,
public ::cppu::OWeakObject
{
private:
- ::osl::Mutex maMutex;
- Pointer maPointer;
+ ::osl::Mutex maMutex;
+ Pointer maPointer;
protected:
- ::osl::Mutex& GetMutex() { return maMutex; }
+ ::osl::Mutex& GetMutex() { return maMutex; }
-public:
+public:
VCLXPointer();
~VCLXPointer();
- const Pointer& GetPointer() const { return maPointer; }
-
+ const Pointer& GetPointer() const { return maPointer; }
+
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static VCLXPointer* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static VCLXPointer* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XPointer
void SAL_CALL setType( sal_Int32 nType ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/awt/vclxprinter.hxx b/toolkit/inc/toolkit/awt/vclxprinter.hxx
index 318177d5d818..f140cacce2be 100644
--- a/toolkit/inc/toolkit/awt/vclxprinter.hxx
+++ b/toolkit/inc/toolkit/awt/vclxprinter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,41 +45,41 @@
// Fuer den Drucker relevante Properties:
/*
- sal_Bool Horizontal
- sal_uInt16 CopyCount;
- sal_Bool Collate;
- String FormDescriptor;
- sal_uInt16 Orientation; // PORTRAIT, LANDSCAPE
+ sal_Bool Horizontal
+ sal_uInt16 CopyCount;
+ sal_Bool Collate;
+ String FormDescriptor;
+ sal_uInt16 Orientation; // PORTRAIT, LANDSCAPE
*/
-// ----------------------------------------------------
-// class VCLXPrinterPropertySet
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPrinterPropertySet
+// ----------------------------------------------------
-class VCLXPrinterPropertySet : public ::com::sun::star::awt::XPrinterPropertySet,
+class VCLXPrinterPropertySet : public ::com::sun::star::awt::XPrinterPropertySet,
public ::com::sun::star::lang::XTypeProvider,
public MutexAndBroadcastHelper,
public ::cppu::OPropertySetHelper
{
protected:
boost::shared_ptr<Printer> mpPrinter;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > mxPrnDevice;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > mxPrnDevice;
- sal_Int16 mnOrientation;
- sal_Bool mbHorizontal;
-public:
+ sal_Int16 mnOrientation;
+ sal_Bool mbHorizontal;
+public:
VCLXPrinterPropertySet( const String& rPrinterName );
virtual ~VCLXPrinterPropertySet();
- Printer* GetPrinter() const { return mpPrinter.get(); }
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > GetDevice();
+ Printer* GetPrinter() const { return mpPrinter.get(); }
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > GetDevice();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::beans::XPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -105,11 +105,11 @@ public:
void SAL_CALL setBinarySetup( const ::com::sun::star::uno::Sequence< sal_Int8 >& data ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
};
-// ----------------------------------------------------
-// class VCLXPrinter
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPrinter
+// ----------------------------------------------------
-class VCLXPrinter: public ::com::sun::star::awt::XPrinter,
+class VCLXPrinter: public ::com::sun::star::awt::XPrinter,
public VCLXPrinterPropertySet,
public ::cppu::OWeakObject
{
@@ -120,13 +120,13 @@ public:
~VCLXPrinter();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::beans::XPropertySet
@@ -153,11 +153,11 @@ public:
void SAL_CALL endPage( ) throw(::com::sun::star::awt::PrinterException, ::com::sun::star::uno::RuntimeException);
};
-// ----------------------------------------------------
-// class VCLXInfoPrinter
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXInfoPrinter
+// ----------------------------------------------------
-class VCLXInfoPrinter: public ::com::sun::star::awt::XInfoPrinter,
+class VCLXInfoPrinter: public ::com::sun::star::awt::XInfoPrinter,
public VCLXPrinterPropertySet,
public ::cppu::OWeakObject
{
@@ -166,13 +166,13 @@ public:
~VCLXInfoPrinter();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::beans::XPropertySet
@@ -195,23 +195,23 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > SAL_CALL createDevice( ) throw(::com::sun::star::uno::RuntimeException);
};
-// ----------------------------------------------------
-// class VCLXPrinterServer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPrinterServer
+// ----------------------------------------------------
-class VCLXPrinterServer : public ::com::sun::star::awt::XPrinterServer,
- public ::cppu::OWeakObject
+class VCLXPrinterServer : public ::com::sun::star::awt::XPrinterServer,
+ public ::cppu::OWeakObject
{
public:
-
+
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XPrinterServer
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getPrinterNames( ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/awt/vclxregion.hxx b/toolkit/inc/toolkit/awt/vclxregion.hxx
index b2c6d765e445..577d7469f8da 100644
--- a/toolkit/inc/toolkit/awt/vclxregion.hxx
+++ b/toolkit/inc/toolkit/awt/vclxregion.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,55 +38,55 @@
#include <vcl/region.hxx>
-// ----------------------------------------------------
-// class VCLXRegion
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXRegion
+// ----------------------------------------------------
-class VCLXRegion : public ::com::sun::star::awt::XRegion,
+class VCLXRegion : public ::com::sun::star::awt::XRegion,
public ::com::sun::star::lang::XTypeProvider,
public ::com::sun::star::lang::XUnoTunnel,
public ::cppu::OWeakObject
{
private:
- ::osl::Mutex maMutex;
- Region maRegion;
+ ::osl::Mutex maMutex;
+ Region maRegion;
protected:
- ::osl::Mutex& GetMutex() { return maMutex; }
+ ::osl::Mutex& GetMutex() { return maMutex; }
-public:
+public:
VCLXRegion();
~VCLXRegion();
- void SetRegion( const Region& rRegion ) { maRegion = rRegion; }
- const Region& GetRegion() const { return maRegion; }
-
+ void SetRegion( const Region& rRegion ) { maRegion = rRegion; }
+ const Region& GetRegion() const { return maRegion; }
+
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static VCLXRegion* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static VCLXRegion* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XRegion
- ::com::sun::star::awt::Rectangle SAL_CALL getBounds() throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL clear() throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL move( sal_Int32 nHorzMove, sal_Int32 nVertMove ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL unionRectangle( const ::com::sun::star::awt::Rectangle& rRect ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL intersectRectangle( const ::com::sun::star::awt::Rectangle& rRect ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL excludeRectangle( const ::com::sun::star::awt::Rectangle& rRect ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL xOrRectangle( const ::com::sun::star::awt::Rectangle& rRect ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL unionRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL intersectRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL excludeRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL xOrRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::awt::Rectangle SAL_CALL getBounds() throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL clear() throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL move( sal_Int32 nHorzMove, sal_Int32 nVertMove ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL unionRectangle( const ::com::sun::star::awt::Rectangle& rRect ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL intersectRectangle( const ::com::sun::star::awt::Rectangle& rRect ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL excludeRectangle( const ::com::sun::star::awt::Rectangle& rRect ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL xOrRectangle( const ::com::sun::star::awt::Rectangle& rRect ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL unionRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL intersectRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL excludeRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL xOrRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion ) throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Sequence< ::com::sun::star::awt::Rectangle > SAL_CALL getRectangles() throw(::com::sun::star::uno::RuntimeException);
};
diff --git a/toolkit/inc/toolkit/awt/vclxspinbutton.hxx b/toolkit/inc/toolkit/awt/vclxspinbutton.hxx
index 4139f7c92815..49515a954137 100644
--- a/toolkit/inc/toolkit/awt/vclxspinbutton.hxx
+++ b/toolkit/inc/toolkit/awt/vclxspinbutton.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/awt/vclxsystemdependentwindow.hxx b/toolkit/inc/toolkit/awt/vclxsystemdependentwindow.hxx
index c2903a144bdc..4952f25712aa 100644
--- a/toolkit/inc/toolkit/awt/vclxsystemdependentwindow.hxx
+++ b/toolkit/inc/toolkit/awt/vclxsystemdependentwindow.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,25 +37,25 @@
#include <toolkit/awt/vclxwindow.hxx>
-// ----------------------------------------------------
-// class VCLXSystemDependendtWindow
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXSystemDependendtWindow
+// ----------------------------------------------------
-class TOOLKIT_DLLPUBLIC VCLXSystemDependentWindow : public ::com::sun::star::awt::XSystemDependentWindowPeer,
+class TOOLKIT_DLLPUBLIC VCLXSystemDependentWindow : public ::com::sun::star::awt::XSystemDependentWindowPeer,
public VCLXWindow
{
-public:
+public:
VCLXSystemDependentWindow();
~VCLXSystemDependentWindow();
-
+
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XSystemDependendtWindowPeer
::com::sun::star::uno::Any SAL_CALL getWindowHandle( const ::com::sun::star::uno::Sequence< sal_Int8 >& ProcessId, sal_Int16 SystemType ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/awt/vclxtoolkit.hxx b/toolkit/inc/toolkit/awt/vclxtoolkit.hxx
index 314168738d93..ea16cde5b632 100644
--- a/toolkit/inc/toolkit/awt/vclxtoolkit.hxx
+++ b/toolkit/inc/toolkit/awt/vclxtoolkit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,17 +68,17 @@ extern "C" {
}
-// ----------------------------------------------------
-// class VCLXTOOLKIT
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXTOOLKIT
+// ----------------------------------------------------
class VCLXToolkit_Impl
{
protected:
- ::osl::Mutex maMutex;
+ ::osl::Mutex maMutex;
};
-class VCLXToolkit : public VCLXToolkit_Impl,
+class VCLXToolkit : public VCLXToolkit_Impl,
public cppu::WeakComponentImplHelper7<
::com::sun::star::awt::XToolkit,
::com::sun::star::lang::XServiceInfo,
@@ -91,8 +91,8 @@ class VCLXToolkit : public VCLXToolkit_Impl,
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxClipboard;
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > mxSelection;
- oslModule hSvToolsLib;
- FN_SvtCreateWindow fnSvtCreateWindow;
+ oslModule hSvToolsLib;
+ FN_SvtCreateWindow fnSvtCreateWindow;
::cppu::OInterfaceContainerHelper m_aTopWindowListeners;
::cppu::OInterfaceContainerHelper m_aKeyHandlers;
@@ -116,25 +116,25 @@ class VCLXToolkit : public VCLXToolkit_Impl,
void callFocusListeners(::VclSimpleEvent const * pEvent, bool bGained);
protected:
- ::osl::Mutex& GetMutex() { return maMutex; }
+ ::osl::Mutex& GetMutex() { return maMutex; }
virtual void SAL_CALL disposing();
- Window* ImplCreateWindow( VCLXWindow** ppNewComp, const ::com::sun::star::awt::WindowDescriptor& rDescriptor, Window* pParent, WinBits nWinBits );
+ Window* ImplCreateWindow( VCLXWindow** ppNewComp, const ::com::sun::star::awt::WindowDescriptor& rDescriptor, Window* pParent, WinBits nWinBits );
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > ImplCreateWindow( const ::com::sun::star::awt::WindowDescriptor& Descriptor, WinBits nWinBits );
-public:
+public:
VCLXToolkit( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & );
~VCLXToolkit();
-
+
// ::com::sun::star::awt::XToolkit
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > SAL_CALL getDesktopWindow( ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::awt::Rectangle SAL_CALL getWorkArea( ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > SAL_CALL createWindow( const ::com::sun::star::awt::WindowDescriptor& Descriptor ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > SAL_CALL getDesktopWindow( ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::awt::Rectangle SAL_CALL getWorkArea( ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > SAL_CALL createWindow( const ::com::sun::star::awt::WindowDescriptor& Descriptor ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > > SAL_CALL createWindows( const ::com::sun::star::uno::Sequence< ::com::sun::star::awt::WindowDescriptor >& Descriptors ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > SAL_CALL createScreenCompatibleDevice( sal_Int32 Width, sal_Int32 Height ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion > SAL_CALL createRegion( ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice > SAL_CALL createScreenCompatibleDevice( sal_Int32 Width, sal_Int32 Height ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion > SAL_CALL createRegion( ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XSystemChildFactory
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > SAL_CALL createSystemChild( const ::com::sun::star::uno::Any& Parent, const ::com::sun::star::uno::Sequence< sal_Int8 >& ProcessId, sal_Int16 SystemType ) throw(::com::sun::star::uno::RuntimeException);
@@ -146,7 +146,7 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureRecognizer > SAL_CALL getDragGestureRecognizer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& window ) throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragSource > SAL_CALL getDragSource( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& window ) throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget > SAL_CALL getDropTarget( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& window ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > SAL_CALL getClipboard( const ::rtl::OUString& clipboardName ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboard > SAL_CALL getClipboard( const ::rtl::OUString& clipboardName ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XServiceInfo
::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
@@ -198,21 +198,21 @@ public:
::com::sun::star::awt::XFocusListener > const & rListener)
throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL fireFocusGained(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface > const & source)
+ virtual void SAL_CALL fireFocusGained(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface > const & source)
throw (::com::sun::star::uno::RuntimeException);
-
- virtual void SAL_CALL fireFocusLost(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface > const & source)
+
+ virtual void SAL_CALL fireFocusLost(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface > const & source)
throw (::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::awt::XReschedule:
virtual void SAL_CALL reschedule()
throw (::com::sun::star::uno::RuntimeException);
-
+
};
#endif // _TOOLKIT_AWT_VCLXTOOLKIT_HXX_
diff --git a/toolkit/inc/toolkit/awt/vclxtopwindow.hxx b/toolkit/inc/toolkit/awt/vclxtopwindow.hxx
index 5c49313c1aed..2792b40b5c26 100644
--- a/toolkit/inc/toolkit/awt/vclxtopwindow.hxx
+++ b/toolkit/inc/toolkit/awt/vclxtopwindow.hxx
@@ -88,9 +88,9 @@ public:
virtual void SAL_CALL setDisplay( ::sal_Int32 _display ) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException);
};
-// ----------------------------------------------------
-// class VCLXTopWindow
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXTopWindow
+// ----------------------------------------------------
class VCLXTopWindow: public VCLXTopWindow_Base,
public VCLXContainer
@@ -105,13 +105,13 @@ public:
~VCLXTopWindow();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
static void ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
diff --git a/toolkit/inc/toolkit/awt/vclxwindow.hxx b/toolkit/inc/toolkit/awt/vclxwindow.hxx
index fb3ca32b590a..e72d4dd18672 100644
--- a/toolkit/inc/toolkit/awt/vclxwindow.hxx
+++ b/toolkit/inc/toolkit/awt/vclxwindow.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
#include <cppuhelper/implbase9.hxx>
#include <osl/mutex.hxx>
-#include <tools/gen.hxx> // Size
+#include <tools/gen.hxx> // Size
#include <tools/link.hxx>
#include <stdarg.h>
@@ -67,9 +67,9 @@ namespace toolkit
}
-// ----------------------------------------------------
-// class VCLXWINDOW
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXWINDOW
+// ----------------------------------------------------
class UnoPropertyArrayHelper;
class VCLXWindowImpl;
@@ -91,9 +91,9 @@ private:
VCLXWindowImpl* mpImpl;
UnoPropertyArrayHelper *GetPropHelper();
-
+
protected:
- Size ImplCalcWindowSize( const Size& rOutSz ) const;
+ Size ImplCalcWindowSize( const Size& rOutSz ) const;
DECL_LINK( WindowEventListener, VclSimpleEvent* );
virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
@@ -103,7 +103,7 @@ protected:
void SetSynthesizingVCLEvent( sal_Bool b );
BOOL IsSynthesizingVCLEvent() const;
- void SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle );
+ void SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle );
::toolkit::IAccessibleFactory& getAccessibleFactory();
@@ -138,8 +138,8 @@ public:
VCLXWindow( bool bWithDefaultProps = false );
~VCLXWindow();
- virtual void SetWindow( Window* pWindow );
- Window* GetWindow() const { return (Window*)GetOutputDevice(); }
+ virtual void SetWindow( Window* pWindow );
+ Window* GetWindow() const { return (Window*)GetOutputDevice(); }
void suspendVclEventListening( );
void resumeVclEventListening( );
@@ -147,9 +147,9 @@ public:
void notifyWindowRemoved( Window& _rWindow );
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static VCLXWindow* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static VCLXWindow* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XEventListener
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/awt/vclxwindows.hxx b/toolkit/inc/toolkit/awt/vclxwindows.hxx
index 66950befa6e2..5533155a3642 100644
--- a/toolkit/inc/toolkit/awt/vclxwindows.hxx
+++ b/toolkit/inc/toolkit/awt/vclxwindows.hxx
@@ -108,10 +108,10 @@ class ToolBox;
class VclSimpleEvent;
class VclMenuEvent;
-// ----------------------------------------------------
-// class VCLXGraphicControl
+// ----------------------------------------------------
+// class VCLXGraphicControl
// deriving from VCLXWindow, drawing the graphic which exists as "Graphic" at the model
-// ----------------------------------------------------
+// ----------------------------------------------------
class TOOLKIT_DLLPUBLIC VCLXGraphicControl : public VCLXWindow
@@ -147,9 +147,9 @@ public:
};
-// ----------------------------------------------------
-// class VCLXButton
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXButton
+// ----------------------------------------------------
typedef ::cppu::ImplInheritanceHelper2 < VCLXGraphicControl
, ::com::sun::star::awt::XButton
, ::com::sun::star::awt::XToggleButton
@@ -157,8 +157,8 @@ typedef ::cppu::ImplInheritanceHelper2 < VCLXGraphicControl
class VCLXButton :public VCLXButton_Base
{
private:
- ::rtl::OUString maActionCommand;
- ActionListenerMultiplexer maActionListeners;
+ ::rtl::OUString maActionCommand;
+ ActionListenerMultiplexer maActionListeners;
ItemListenerMultiplexer maItemListeners;
protected:
@@ -196,9 +196,9 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXImageControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXImageControl
+// ----------------------------------------------------
class VCLXImageControl : public VCLXGraphicControl
{
public:
@@ -221,16 +221,16 @@ protected:
virtual void ImplSetNewImage();
};
-// ----------------------------------------------------
-// class VCLXCheckBox
-// ----------------------------------------------------
-class VCLXCheckBox : public ::com::sun::star::awt::XCheckBox,
+// ----------------------------------------------------
+// class VCLXCheckBox
+// ----------------------------------------------------
+class VCLXCheckBox : public ::com::sun::star::awt::XCheckBox,
public ::com::sun::star::awt::XButton,
public VCLXGraphicControl
{
private:
- ActionListenerMultiplexer maActionListeners;
- ::rtl::OUString maActionCommand;
+ ActionListenerMultiplexer maActionListeners;
+ ::rtl::OUString maActionCommand;
ItemListenerMultiplexer maItemListeners;
protected:
@@ -241,13 +241,13 @@ public:
VCLXCheckBox();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XComponent
@@ -279,20 +279,20 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXRadioButton
-// ----------------------------------------------------
-class VCLXRadioButton : public ::com::sun::star::awt::XRadioButton,
+// ----------------------------------------------------
+// class VCLXRadioButton
+// ----------------------------------------------------
+class VCLXRadioButton : public ::com::sun::star::awt::XRadioButton,
public ::com::sun::star::awt::XButton,
public VCLXGraphicControl
{
private:
ItemListenerMultiplexer maItemListeners;
- ActionListenerMultiplexer maActionListeners;
- ::rtl::OUString maActionCommand;
+ ActionListenerMultiplexer maActionListeners;
+ ::rtl::OUString maActionCommand;
protected:
- void ImplClickedOrToggled( BOOL bToggled );
+ void ImplClickedOrToggled( BOOL bToggled );
void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > CreateAccessibleContext();
@@ -300,13 +300,13 @@ public:
VCLXRadioButton();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XComponent
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
@@ -338,10 +338,10 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > getFirstActionListener ();
};
-// ----------------------------------------------------
-// class VCLXMessageBox
-// ----------------------------------------------------
-class VCLXMessageBox : public ::com::sun::star::awt::XMessageBox,
+// ----------------------------------------------------
+// class VCLXMessageBox
+// ----------------------------------------------------
+class VCLXMessageBox : public ::com::sun::star::awt::XMessageBox,
public VCLXTopWindow
{
public:
@@ -349,13 +349,13 @@ public:
~VCLXMessageBox();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XMessageBox
@@ -374,10 +374,10 @@ public:
-// ----------------------------------------------------
-// class VCLXDialog
-// ----------------------------------------------------
-class VCLXDialog : public ::com::sun::star::awt::XDialog2,
+// ----------------------------------------------------
+// class VCLXDialog
+// ----------------------------------------------------
+class VCLXDialog : public ::com::sun::star::awt::XDialog2,
public ::com::sun::star::document::XVbaMethodParameter, //liuchen 2009-6-22, add the support of input/output parameters to VBA UserForm_QueryClose event
public VCLXTopWindow
{
@@ -386,13 +386,13 @@ public:
~VCLXDialog();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XDialog2
virtual void SAL_CALL endDialog( ::sal_Int32 Result ) throw (::com::sun::star::uno::RuntimeException);
@@ -422,23 +422,23 @@ public:
::com::sun::star::uno::Any SAL_CALL getVbaMethodParameter( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
};
-// ----------------------------------------------------
-// class VCLXTabPage
-// ----------------------------------------------------
-class VCLXTabPage : public VCLXContainer
+// ----------------------------------------------------
+// class VCLXTabPage
+// ----------------------------------------------------
+class VCLXTabPage : public VCLXContainer
{
public:
VCLXTabPage();
~VCLXTabPage();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XView
void SAL_CALL draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno::RuntimeException);
@@ -506,10 +506,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXFixedText
-// ----------------------------------------------------
-class VCLXFixedText : public ::com::sun::star::awt::XFixedText,
+// ----------------------------------------------------
+// class VCLXFixedText
+// ----------------------------------------------------
+class VCLXFixedText : public ::com::sun::star::awt::XFixedText,
public VCLXWindow
{
protected:
@@ -520,13 +520,13 @@ public:
~VCLXFixedText();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XFixedText
void SAL_CALL setText( const ::rtl::OUString& Text ) throw(::com::sun::star::uno::RuntimeException);
@@ -543,10 +543,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXScrollBar
-// ----------------------------------------------------
-class VCLXScrollBar : public ::com::sun::star::awt::XScrollBar,
+// ----------------------------------------------------
+// class VCLXScrollBar
+// ----------------------------------------------------
+class VCLXScrollBar : public ::com::sun::star::awt::XScrollBar,
public VCLXWindow
{
private:
@@ -559,13 +559,13 @@ protected:
public:
VCLXScrollBar();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XComponent
@@ -604,10 +604,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXEdit
-// ----------------------------------------------------
-class TOOLKIT_DLLPUBLIC VCLXEdit : public ::com::sun::star::awt::XTextComponent,
+// ----------------------------------------------------
+// class VCLXEdit
+// ----------------------------------------------------
+class TOOLKIT_DLLPUBLIC VCLXEdit : public ::com::sun::star::awt::XTextComponent,
public ::com::sun::star::awt::XTextEditField,
public ::com::sun::star::awt::XTextLayoutConstrains,
public VCLXWindow
@@ -623,16 +623,16 @@ protected:
public:
VCLXEdit();
- TextListenerMultiplexer& GetTextListeners() { return maTextListeners; }
+ TextListenerMultiplexer& GetTextListeners() { return maTextListeners; }
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XComponent
@@ -672,9 +672,9 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXListBox
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXListBox
+// ----------------------------------------------------
typedef ::cppu::ImplInheritanceHelper3 < VCLXWindow
, ::com::sun::star::awt::XListBox
, ::com::sun::star::awt::XTextLayoutConstrains
@@ -683,11 +683,11 @@ typedef ::cppu::ImplInheritanceHelper3 < VCLXWindow
class VCLXListBox : public VCLXListBox_Base
{
private:
- ActionListenerMultiplexer maActionListeners;
- ItemListenerMultiplexer maItemListeners;
+ ActionListenerMultiplexer maActionListeners;
+ ItemListenerMultiplexer maItemListeners;
protected:
- virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
+ virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >
CreateAccessibleContext();
void ImplCallItemListeners();
@@ -749,17 +749,17 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXComboBox
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXComboBox
+// ----------------------------------------------------
typedef ::cppu::ImplInheritanceHelper2 < VCLXEdit
, ::com::sun::star::awt::XComboBox
, ::com::sun::star::awt::XItemListListener > VCLXComboBox_Base;
-class VCLXComboBox : public VCLXComboBox_Base
+class VCLXComboBox : public VCLXComboBox_Base
{
private:
- ActionListenerMultiplexer maActionListeners;
- ItemListenerMultiplexer maItemListeners;
+ ActionListenerMultiplexer maActionListeners;
+ ItemListenerMultiplexer maItemListeners;
protected:
void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
@@ -813,14 +813,14 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXSpinField
-// ----------------------------------------------------
-class TOOLKIT_DLLPUBLIC VCLXSpinField : public ::com::sun::star::awt::XSpinField,
+// ----------------------------------------------------
+// class VCLXSpinField
+// ----------------------------------------------------
+class TOOLKIT_DLLPUBLIC VCLXSpinField : public ::com::sun::star::awt::XSpinField,
public VCLXEdit
{
private:
- SpinListenerMultiplexer maSpinListeners;
+ SpinListenerMultiplexer maSpinListeners;
protected:
void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
@@ -829,13 +829,13 @@ public:
VCLXSpinField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XSpinField
@@ -851,25 +851,25 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXFormattedSpinField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXFormattedSpinField
+// ----------------------------------------------------
class VCLXFormattedSpinField : public VCLXSpinField
{
private:
- FormatterBase* mpFormatter;
+ FormatterBase* mpFormatter;
protected:
- FormatterBase* GetFormatter() const { return GetWindow() ? mpFormatter : NULL; }
+ FormatterBase* GetFormatter() const { return GetWindow() ? mpFormatter : NULL; }
public:
VCLXFormattedSpinField();
~VCLXFormattedSpinField();
- void SetFormatter( FormatterBase* pFormatter ) { mpFormatter = pFormatter; }
+ void SetFormatter( FormatterBase* pFormatter ) { mpFormatter = pFormatter; }
- void setStrictFormat( sal_Bool bStrict );
- sal_Bool isStrictFormat();
+ void setStrictFormat( sal_Bool bStrict );
+ sal_Bool isStrictFormat();
// ::com::sun::star::awt::VclWindowPeer
void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
@@ -879,10 +879,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXDateField
-// ----------------------------------------------------
-class TOOLKIT_DLLPUBLIC VCLXDateField : public ::com::sun::star::awt::XDateField,
+// ----------------------------------------------------
+// class VCLXDateField
+// ----------------------------------------------------
+class TOOLKIT_DLLPUBLIC VCLXDateField : public ::com::sun::star::awt::XDateField,
public VCLXFormattedSpinField
{
public:
@@ -890,13 +890,13 @@ public:
~VCLXDateField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XDateField
@@ -925,10 +925,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXTimeField
-// ----------------------------------------------------
-class VCLXTimeField : public ::com::sun::star::awt::XTimeField,
+// ----------------------------------------------------
+// class VCLXTimeField
+// ----------------------------------------------------
+class VCLXTimeField : public ::com::sun::star::awt::XTimeField,
public VCLXFormattedSpinField
{
public:
@@ -936,13 +936,13 @@ public:
~VCLXTimeField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XTimeField
void SAL_CALL setTime( sal_Int32 Time ) throw(::com::sun::star::uno::RuntimeException);
@@ -968,10 +968,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXNumericField
-// ----------------------------------------------------
-class VCLXNumericField : public ::com::sun::star::awt::XNumericField,
+// ----------------------------------------------------
+// class VCLXNumericField
+// ----------------------------------------------------
+class VCLXNumericField : public ::com::sun::star::awt::XNumericField,
public VCLXFormattedSpinField
{
public:
@@ -979,13 +979,13 @@ public:
~VCLXNumericField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XNumericField
void SAL_CALL setValue( double Value ) throw(::com::sun::star::uno::RuntimeException);
@@ -1013,12 +1013,12 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXMetricField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXMetricField
+// ----------------------------------------------------
class MetricFormatter;
class MetricField;
-class VCLXMetricField : public ::com::sun::star::awt::XMetricField,
+class VCLXMetricField : public ::com::sun::star::awt::XMetricField,
public VCLXFormattedSpinField
{
MetricFormatter *GetMetricFormatter() throw(::com::sun::star::uno::RuntimeException);
@@ -1029,13 +1029,13 @@ public:
~VCLXMetricField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XMetricField
virtual void SAL_CALL setValue( ::sal_Int64 Value, ::sal_Int16 Unit ) throw (::com::sun::star::uno::RuntimeException);
@@ -1065,10 +1065,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXCurrencyField
-// ----------------------------------------------------
-class VCLXCurrencyField : public ::com::sun::star::awt::XCurrencyField,
+// ----------------------------------------------------
+// class VCLXCurrencyField
+// ----------------------------------------------------
+class VCLXCurrencyField : public ::com::sun::star::awt::XCurrencyField,
public VCLXFormattedSpinField
{
public:
@@ -1076,13 +1076,13 @@ public:
~VCLXCurrencyField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XCurrencyField
@@ -1111,10 +1111,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXPatternField
-// ----------------------------------------------------
-class VCLXPatternField : public ::com::sun::star::awt::XPatternField,
+// ----------------------------------------------------
+// class VCLXPatternField
+// ----------------------------------------------------
+class VCLXPatternField : public ::com::sun::star::awt::XPatternField,
public VCLXFormattedSpinField
{
public:
@@ -1122,13 +1122,13 @@ public:
~VCLXPatternField();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XPatternField
@@ -1147,10 +1147,10 @@ public:
virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
};
-// ----------------------------------------------------
-// class VCLXToolBox
-// ----------------------------------------------------
-class VCLXToolBox : public VCLXWindow
+// ----------------------------------------------------
+// class VCLXToolBox
+// ----------------------------------------------------
+class VCLXToolBox : public VCLXWindow
{
private:
diff --git a/toolkit/inc/toolkit/awt/xsimpleanimation.hxx b/toolkit/inc/toolkit/awt/xsimpleanimation.hxx
index 74ae6f619d24..479e49c0f9ef 100644
--- a/toolkit/inc/toolkit/awt/xsimpleanimation.hxx
+++ b/toolkit/inc/toolkit/awt/xsimpleanimation.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/awt/xthrobber.hxx b/toolkit/inc/toolkit/awt/xthrobber.hxx
index 8b87fec352cc..d4eca444204c 100644
--- a/toolkit/inc/toolkit/awt/xthrobber.hxx
+++ b/toolkit/inc/toolkit/awt/xthrobber.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/controls/accessiblecontrolcontext.hxx b/toolkit/inc/toolkit/controls/accessiblecontrolcontext.hxx
index 8ececaeda794..52a473bda2a6 100644
--- a/toolkit/inc/toolkit/controls/accessiblecontrolcontext.hxx
+++ b/toolkit/inc/toolkit/controls/accessiblecontrolcontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,9 +46,9 @@ namespace toolkit
//= OAccessibleControlContext
//====================================================================
- typedef ::comphelper::OAccessibleComponentHelper OAccessibleControlContext_Base;
- typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XEventListener
- > OAccessibleControlContext_IBase;
+ typedef ::comphelper::OAccessibleComponentHelper OAccessibleControlContext_Base;
+ typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XEventListener
+ > OAccessibleControlContext_IBase;
/** class implementing the AccessibleContext for an UNO control - to be used in design mode of the control.
<p><b>life time control<b/><br/>
@@ -63,9 +63,9 @@ namespace toolkit
{
private:
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
- m_xControlModel; // the model of the control which's context we implement
+ m_xControlModel; // the model of the control which's context we implement
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
- m_xModelPropsInfo; // the cached property set info of the model
+ m_xModelPropsInfo; // the cached property set info of the model
protected:
/// ctor. @see Init
@@ -76,7 +76,7 @@ namespace toolkit
*/
void Init(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& _rxCreator
- ) SAL_THROW( ( ::com::sun::star::uno::Exception ) );
+ ) SAL_THROW( ( ::com::sun::star::uno::Exception ) );
// OCommonAccessibleComponent overridables
virtual ::com::sun::star::awt::Rectangle SAL_CALL implGetBounds( ) throw (::com::sun::star::uno::RuntimeException);
@@ -119,18 +119,18 @@ namespace toolkit
private:
// retrieves the value of a string property from the model, if the property is present
- ::rtl::OUString getModelStringProperty( const sal_Char* _pPropertyName ) SAL_THROW( ( ) );
+ ::rtl::OUString getModelStringProperty( const sal_Char* _pPropertyName ) SAL_THROW( ( ) );
// starts listening at the control model (currently for disposal only)
void startModelListening( ) SAL_THROW( ( ::com::sun::star::uno::Exception ) );
// stops listening at the control model
void stopModelListening( ) SAL_THROW( ( ::com::sun::star::uno::Exception ) );
- Window* implGetWindow( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >* _pxUNOWindow = NULL ) const;
+ Window* implGetWindow( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >* _pxUNOWindow = NULL ) const;
};
//........................................................................
-} // namespace toolkit
+} // namespace toolkit
//........................................................................
#endif // TOOLKIT_ACCESSIBLE_CONTROL_CONTEXT_HXX
diff --git a/toolkit/inc/toolkit/controls/dialogcontrol.hxx b/toolkit/inc/toolkit/controls/dialogcontrol.hxx
index 04b8c9b9f9c6..32e7db6220b7 100644
--- a/toolkit/inc/toolkit/controls/dialogcontrol.hxx
+++ b/toolkit/inc/toolkit/controls/dialogcontrol.hxx
@@ -52,20 +52,20 @@
#include <map>
#include <com/sun/star/graphic/XGraphicObject.hpp>
-// ----------------------------------------------------
-// class UnoControlDialogModel
-// ----------------------------------------------------
-typedef UnoControlModel UnoControlDialogModel_Base;
-typedef ::cppu::ImplHelper6 < ::com::sun::star::lang::XMultiServiceFactory
- , ::com::sun::star::container::XContainer
- , ::com::sun::star::container::XNameContainer
- , ::com::sun::star::awt::XTabControllerModel
- , ::com::sun::star::util::XChangesNotifier
- , ::com::sun::star::beans::XPropertyChangeListener
- > UnoControlDialogModel_IBase;
-
-class UnoControlDialogModel : public UnoControlDialogModel_IBase
- , public UnoControlDialogModel_Base
+// ----------------------------------------------------
+// class UnoControlDialogModel
+// ----------------------------------------------------
+typedef UnoControlModel UnoControlDialogModel_Base;
+typedef ::cppu::ImplHelper6 < ::com::sun::star::lang::XMultiServiceFactory
+ , ::com::sun::star::container::XContainer
+ , ::com::sun::star::container::XNameContainer
+ , ::com::sun::star::awt::XTabControllerModel
+ , ::com::sun::star::util::XChangesNotifier
+ , ::com::sun::star::beans::XPropertyChangeListener
+ > UnoControlDialogModel_IBase;
+
+class UnoControlDialogModel : public UnoControlDialogModel_IBase
+ , public UnoControlDialogModel_Base
{
public:
// would like to make this typedef private, too, but the Forte 7 compiler does have
@@ -73,48 +73,48 @@ public:
typedef ::std::pair< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >, ::rtl::OUString >
UnoControlModelHolder;
private:
- typedef ::std::list< UnoControlModelHolder > UnoControlModelHolderList;
+ typedef ::std::list< UnoControlModelHolder > UnoControlModelHolderList;
// for grouping control models (XTabControllerModel::getGroupXXX)
typedef ::std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >
ModelGroup;
- typedef ::std::vector< ModelGroup > AllGroups;
+ typedef ::std::vector< ModelGroup > AllGroups;
friend struct CloneControlModel;
friend struct FindControlModel;
friend struct CompareControlModel;
private:
- ContainerListenerMultiplexer maContainerListeners;
- ::cppu::OInterfaceContainerHelper maChangeListeners;
- UnoControlModelHolderList maModels;
+ ContainerListenerMultiplexer maContainerListeners;
+ ::cppu::OInterfaceContainerHelper maChangeListeners;
+ UnoControlModelHolderList maModels;
- AllGroups maGroups;
- sal_Bool mbGroupsUpToDate;
+ AllGroups maGroups;
+ sal_Bool mbGroupsUpToDate;
::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject > mxGrfObj;
bool mbAdjustingGraphic;
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
- UnoControlModelHolderList::iterator ImplFindElement( const ::rtl::OUString& rName );
+ UnoControlModelHolderList::iterator ImplFindElement( const ::rtl::OUString& rName );
public:
UnoControlDialogModel();
UnoControlDialogModel( const UnoControlDialogModel& rModel );
~UnoControlDialogModel();
- UnoControlModel* Clone() const;
+ UnoControlModel* Clone() const;
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlModel::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlModel::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::container::XContainer
void SAL_CALL addContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
@@ -196,16 +196,16 @@ private:
::std::map< ::rtl::OUString, ModelGroup >& pNamedGroups );
};
-// ----------------------------------------------------
-// class UnoDialogControl
-// ----------------------------------------------------
-typedef ::cppu::ImplHelper6 < ::com::sun::star::container::XContainerListener
- , ::com::sun::star::awt::XTopWindow
- , ::com::sun::star::awt::XDialog2
- , ::com::sun::star::util::XChangesListener
+// ----------------------------------------------------
+// class UnoDialogControl
+// ----------------------------------------------------
+typedef ::cppu::ImplHelper6 < ::com::sun::star::container::XContainerListener
+ , ::com::sun::star::awt::XTopWindow
+ , ::com::sun::star::awt::XDialog2
+ , ::com::sun::star::util::XChangesListener
, ::com::sun::star::util::XModifyListener
, ::com::sun::star::awt::XWindowListener
- > UnoDialogControl_IBase;
+ > UnoDialogControl_IBase;
class ResourceListener :public ::com::sun::star::util::XModifyListener,
public ::cppu::OWeakObject,
@@ -235,35 +235,35 @@ class ResourceListener :public ::com::sun::star::util::XModifyListener,
bool m_bListening;
};
-class UnoDialogControl :public UnoControlContainer
+class UnoDialogControl :public UnoControlContainer
,public UnoDialogControl_IBase
{
private:
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar > mxMenuBar;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController > mxTabController;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar > mxMenuBar;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController > mxTabController;
::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > mxListener;
- TopWindowListenerMultiplexer maTopWindowListeners;
+ TopWindowListenerMultiplexer maTopWindowListeners;
bool mbWindowListener;
bool mbSizeModified;
bool mbPosModified;
protected:
- void ImplInsertControl( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& rxModel, const ::rtl::OUString& rName );
- void ImplRemoveControl( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& rxModel );
- void ImplSetPosSize( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& rxCtrl );
+ void ImplInsertControl( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& rxModel, const ::rtl::OUString& rName );
+ void ImplRemoveControl( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& rxModel );
+ void ImplSetPosSize( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& rxCtrl );
void ImplUpdateResourceResolver();
void ImplStartListingForResourceEvents();
public:
UnoDialogControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlContainer::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlContainer::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
@@ -298,8 +298,8 @@ public:
void SAL_CALL endExecute() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XControl
sal_Bool SAL_CALL setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/controls/eventcontainer.hxx b/toolkit/inc/toolkit/controls/eventcontainer.hxx
index 625986ca6614..7094a39cbf55 100644
--- a/toolkit/inc/toolkit/controls/eventcontainer.hxx
+++ b/toolkit/inc/toolkit/controls/eventcontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,43 +88,43 @@ public:
}
// Methods XElementAccess
- virtual ::com::sun::star::uno::Type SAL_CALL getElementType( )
+ virtual ::com::sun::star::uno::Type SAL_CALL getElementType( )
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasElements( )
+ virtual sal_Bool SAL_CALL hasElements( )
throw(::com::sun::star::uno::RuntimeException);
// Methods XNameAccess
- virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
- throw(::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName )
+ throw(::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames( )
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames( )
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
+ virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName )
throw(::com::sun::star::uno::RuntimeException);
// Methods XNameReplace
- virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement )
- throw(::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement )
+ throw(::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
// Methods XNameContainer
virtual void SAL_CALL insertByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement )
- throw(::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::container::ElementExistException,
- ::com::sun::star::lang::WrappedTargetException,
+ throw(::com::sun::star::lang::IllegalArgumentException,
+ ::com::sun::star::container::ElementExistException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeByName( const ::rtl::OUString& Name )
- throw(::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
+ virtual void SAL_CALL removeByName( const ::rtl::OUString& Name )
+ throw(::com::sun::star::container::NoSuchElementException,
+ ::com::sun::star::lang::WrappedTargetException,
::com::sun::star::uno::RuntimeException);
// Methods XContainer
- void SAL_CALL addContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener )
+ void SAL_CALL addContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL removeContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener )
+ void SAL_CALL removeContainerListener( const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener )
throw(::com::sun::star::uno::RuntimeException);
};
@@ -135,6 +135,6 @@ public:
};
-} // namespace toolkit_namecontainer
+} // namespace toolkit_namecontainer
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/inc/toolkit/controls/formattedcontrol.hxx b/toolkit/inc/toolkit/controls/formattedcontrol.hxx
index 40ba795487cc..7c4b22a434ae 100644
--- a/toolkit/inc/toolkit/controls/formattedcontrol.hxx
+++ b/toolkit/inc/toolkit/controls/formattedcontrol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ namespace toolkit
// ===================================================================
class UnoControlFormattedFieldModel : public UnoControlModel
{
- protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ protected:
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
::com::sun::star::uno::Any m_aCachedFormat;
bool m_bRevokedAsClient;
@@ -70,9 +70,9 @@ namespace toolkit
public:
UnoControlFormattedFieldModel();
UnoControlFormattedFieldModel( const UnoControlFormattedFieldModel& rModel ) : UnoControlModel( rModel ) {;}
-
- UnoControlModel* Clone() const { return new UnoControlFormattedFieldModel( *this ); }
-
+
+ UnoControlModel* Clone() const { return new UnoControlFormattedFieldModel( *this ); }
+
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -94,11 +94,11 @@ namespace toolkit
// UnoControlModel
virtual void ImplNormalizePropertySequence(
- const sal_Int32 _nCount, /// the number of entries in the arrays
- sal_Int32* _pHandles, /// the handles of the properties to set
- ::com::sun::star::uno::Any* _pValues, /// the values of the properties to set
- sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted
- ) const SAL_THROW(());
+ const sal_Int32 _nCount, /// the number of entries in the arrays
+ sal_Int32* _pHandles, /// the handles of the properties to set
+ ::com::sun::star::uno::Any* _pValues, /// the values of the properties to set
+ sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted
+ ) const SAL_THROW(());
private:
void impl_updateTextFromValue_nothrow();
void impl_updateCachedFormatter_nothrow();
@@ -112,17 +112,17 @@ namespace toolkit
{
public:
UnoFormattedFieldControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
// ::com::sun::star::awt::XTextListener
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::lang::XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED( UnoFormattedFieldControl, UnoEditControl, szServiceName2_UnoControlFormattedField )
};
//........................................................................
-} // namespace toolkit
+} // namespace toolkit
//........................................................................
#endif // TOOLKIT_FORMATTED_CONTROL_HXX
diff --git a/toolkit/inc/toolkit/controls/geometrycontrolmodel.hxx b/toolkit/inc/toolkit/controls/geometrycontrolmodel.hxx
index fe57638c43ad..51ea2c07b6ba 100644
--- a/toolkit/inc/toolkit/controls/geometrycontrolmodel.hxx
+++ b/toolkit/inc/toolkit/controls/geometrycontrolmodel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,9 +54,9 @@ FORWARD_DECLARE_INTERFACE( script, XNameContainer )
//====================================================================
//= OGeometryControlModel_Base
//====================================================================
- typedef ::cppu::WeakAggComponentImplHelper2 < ::com::sun::star::util::XCloneable
- , ::com::sun::star::script::XScriptEventsSupplier
- > OGCM_Base;
+ typedef ::cppu::WeakAggComponentImplHelper2 < ::com::sun::star::util::XCloneable
+ , ::com::sun::star::script::XScriptEventsSupplier
+ > OGCM_Base;
class OGeometryControlModel_Base
:public ::comphelper::OMutexAndBroadcastHelper
,public ::comphelper::OPropertySetAggregationHelper
@@ -66,27 +66,27 @@ FORWARD_DECLARE_INTERFACE( script, XNameContainer )
protected:
::com::sun::star::uno::Reference< ::com::sun::star::uno::XAggregation >
m_xAggregate;
- ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >
+ ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >
mxEventContainer;
// <properties>
- sal_Int32 m_nPosX;
- sal_Int32 m_nPosY;
- sal_Int32 m_nWidth;
- sal_Int32 m_nHeight;
- ::rtl::OUString m_aName;
- sal_Int16 m_nTabIndex;
- sal_Int32 m_nStep;
+ sal_Int32 m_nPosX;
+ sal_Int32 m_nPosY;
+ sal_Int32 m_nWidth;
+ sal_Int32 m_nHeight;
+ ::rtl::OUString m_aName;
+ sal_Int16 m_nTabIndex;
+ sal_Int32 m_nStep;
::rtl::OUString m_aTag;
::com::sun::star::uno::Reference< ::com::sun::star::resource::XStringResourceResolver > m_xStrResolver;
// </properties>
- sal_Bool m_bCloneable;
+ sal_Bool m_bCloneable;
protected:
- virtual ::com::sun::star::uno::Any ImplGetDefaultValueByHandle(sal_Int32 nHandle) const;
- virtual ::com::sun::star::uno::Any ImplGetPropertyValueByHandle(sal_Int32 nHandle) const;
- virtual void ImplSetPropertyValueByHandle(sal_Int32 nHandle, const :: com::sun::star::uno::Any& aValue);
+ virtual ::com::sun::star::uno::Any ImplGetDefaultValueByHandle(sal_Int32 nHandle) const;
+ virtual ::com::sun::star::uno::Any ImplGetPropertyValueByHandle(sal_Int32 nHandle) const;
+ virtual void ImplSetPropertyValueByHandle(sal_Int32 nHandle, const :: com::sun::star::uno::Any& aValue);
protected:
/**
@@ -137,9 +137,9 @@ FORWARD_DECLARE_INTERFACE( script, XNameContainer )
::com::sun::star::uno::Any& _rValue, sal_Int32 _nHandle) const;
// OPropertyStateHelper overridables
- virtual ::com::sun::star::beans::PropertyState getPropertyStateByHandle(sal_Int32 nHandle);
- virtual void setPropertyToDefaultByHandle(sal_Int32 nHandle);
- virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const;
+ virtual ::com::sun::star::beans::PropertyState getPropertyStateByHandle(sal_Int32 nHandle);
+ virtual void setPropertyToDefaultByHandle(sal_Int32 nHandle);
+ virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const;
// XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
@@ -151,7 +151,7 @@ FORWARD_DECLARE_INTERFACE( script, XNameContainer )
virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone( ) throw(::com::sun::star::uno::RuntimeException);
//XScriptEventsSupplier
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >
SAL_CALL getEvents( ) throw(::com::sun::star::uno::RuntimeException);
// XCloneable implementation - to be overwritten
@@ -177,7 +177,7 @@ FORWARD_DECLARE_INTERFACE( script, XNameContainer )
//====================================================================
//= OGeometryControlModel
//====================================================================
- /* example for usage:
+ /* example for usage:
Reference< XAggregation > xIFace = new ::toolkit::OGeometryControlModel< UnoControlButtonModel > ();
*/
template <class CONTROLMODEL>
@@ -220,8 +220,8 @@ FORWARD_DECLARE_INTERFACE( script, XNameContainer )
,public ::comphelper::OIdPropertyArrayUsageHelper< OCommonGeometryControlModel >
{
private:
- ::rtl::OUString m_sServiceSpecifier; // the service specifier of our aggregate
- sal_Int32 m_nPropertyMapId; // our unique property info id, used to look up in s_aAggregateProperties
+ ::rtl::OUString m_sServiceSpecifier; // the service specifier of our aggregate
+ sal_Int32 m_nPropertyMapId; // our unique property info id, used to look up in s_aAggregateProperties
public:
/** instantiate the model
@@ -232,7 +232,7 @@ FORWARD_DECLARE_INTERFACE( script, XNameContainer )
*/
OCommonGeometryControlModel(
::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable >& _rxAgg,
- const ::rtl::OUString& _rxServiceSpecifier
+ const ::rtl::OUString& _rxServiceSpecifier
);
// OIdPropertyArrayUsageHelper overridables
@@ -257,7 +257,7 @@ FORWARD_DECLARE_INTERFACE( script, XNameContainer )
#include "toolkit/controls/geometrycontrolmodel_impl.hxx"
//........................................................................
-// } // namespace toolkit
+// } // namespace toolkit
//........................................................................
#endif // _TOOLKIT_HELPERS_GEOMETRYCONTROLMODEL_HXX_
diff --git a/toolkit/inc/toolkit/controls/geometrycontrolmodel_impl.hxx b/toolkit/inc/toolkit/controls/geometrycontrolmodel_impl.hxx
index 725b6998ec01..69ff0ac14304 100644
--- a/toolkit/inc/toolkit/controls/geometrycontrolmodel_impl.hxx
+++ b/toolkit/inc/toolkit/controls/geometrycontrolmodel_impl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/controls/roadmapcontrol.hxx b/toolkit/inc/toolkit/controls/roadmapcontrol.hxx
index 3669e7b795ba..dac682a7f114 100644
--- a/toolkit/inc/toolkit/controls/roadmapcontrol.hxx
+++ b/toolkit/inc/toolkit/controls/roadmapcontrol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,22 +49,22 @@
#include <comphelper/uno3.hxx>
-typedef GraphicControlModel UnoControlRoadmapModel_Base;
+typedef GraphicControlModel UnoControlRoadmapModel_Base;
-typedef ::cppu::ImplHelper3 < ::com::sun::star::lang::XSingleServiceFactory
- , ::com::sun::star::container::XContainer
- , ::com::sun::star::container::XIndexContainer
- > UnoControlRoadmapModel_IBase;
+typedef ::cppu::ImplHelper3 < ::com::sun::star::lang::XSingleServiceFactory
+ , ::com::sun::star::container::XContainer
+ , ::com::sun::star::container::XIndexContainer
+ > UnoControlRoadmapModel_IBase;
-typedef UnoControlBase UnoControlRoadmap_Base;
-typedef ::cppu::ImplHelper4 < ::com::sun::star::awt::XItemEventBroadcaster
+typedef UnoControlBase UnoControlRoadmap_Base;
+typedef ::cppu::ImplHelper4 < ::com::sun::star::awt::XItemEventBroadcaster
, ::com::sun::star::container::XContainerListener
- , ::com::sun::star::awt::XItemListener
+ , ::com::sun::star::awt::XItemListener
, ::com::sun::star::beans::XPropertyChangeListener
- > UnoControlRoadmap_IBase;
+ > UnoControlRoadmap_IBase;
@@ -89,15 +89,15 @@ namespace toolkit{
// ===================================================================
class UnoControlRoadmapModel : public UnoControlRoadmapModel_Base,
public UnoControlRoadmapModel_IBase
-
+
{
private:
-// PropertyChangeListenerMultiplexer maPropertyListeners;
+// PropertyChangeListenerMultiplexer maPropertyListeners;
- typedef ::std::vector< Reference< XInterface > > RoadmapItemHolderList;
+ typedef ::std::vector< Reference< XInterface > > RoadmapItemHolderList;
- ContainerListenerMultiplexer maContainerListeners;
- RoadmapItemHolderList maRoadmapItems;
+ ContainerListenerMultiplexer maContainerListeners;
+ RoadmapItemHolderList maRoadmapItems;
void MakeRMItemValidation( sal_Int32 Index, Reference< XInterface > xRoadmapItem );
ContainerEvent GetContainerEvent(sal_Int32 Index, Reference< XInterface > );
@@ -107,7 +107,7 @@ namespace toolkit{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
@@ -116,7 +116,7 @@ namespace toolkit{
UnoControlRoadmapModel_Base( rModel ),
UnoControlRoadmapModel_IBase( rModel ),
maContainerListeners( *this ) {}
- UnoControlModel* Clone() const { return new UnoControlRoadmapModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlRoadmapModel( *this ); }
// XTypeProvider
@@ -130,19 +130,19 @@ namespace toolkit{
DECLIMPL_SERVICEINFO_DERIVED( UnoControlRoadmapModel, UnoControlRoadmapModel_Base, szServiceName2_UnoControlRoadmapModel )
sal_Int32 SAL_CALL getCount() throw (RuntimeException);
- virtual Any SAL_CALL getByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException );
+ virtual Any SAL_CALL getByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException );
- virtual void SAL_CALL insertByIndex( sal_Int32 Index, const Any & _Element) throw (IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException );
- virtual void SAL_CALL removeByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException );
- virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const Any & _Element) throw (IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException );
+ virtual void SAL_CALL insertByIndex( sal_Int32 Index, const Any & _Element) throw (IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException );
+ virtual void SAL_CALL removeByIndex( sal_Int32 Index ) throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException );
+ virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const Any & _Element) throw (IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException );
virtual void SAL_CALL addContainerListener( const Reference< XContainerListener >& xListener ) throw (RuntimeException);
virtual void SAL_CALL removeContainerListener( const Reference< XContainerListener >& xListener ) throw (RuntimeException);
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlRoadmapModel_Base::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { UnoControlRoadmapModel_Base::acquire(); }
- void SAL_CALL release() throw() { UnoControlRoadmapModel_Base::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlRoadmapModel_Base::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { UnoControlRoadmapModel_Base::acquire(); }
+ void SAL_CALL release() throw() { UnoControlRoadmapModel_Base::release(); }
// ::com::sun::star::beans::XPropertySet
@@ -154,7 +154,7 @@ namespace toolkit{
virtual Type SAL_CALL getElementType() throw (RuntimeException);
- virtual sal_Bool SAL_CALL hasElements() throw (RuntimeException);
+ virtual sal_Bool SAL_CALL hasElements() throw (RuntimeException);
};
@@ -163,31 +163,31 @@ namespace toolkit{
// = UnoRoadmapControl
// ===================================================================
class UnoRoadmapControl : public UnoControlRoadmap_Base,
- public UnoControlRoadmap_IBase
+ public UnoControlRoadmap_IBase
{
private:
- ItemListenerMultiplexer maItemListeners;
+ ItemListenerMultiplexer maItemListeners;
public:
UnoRoadmapControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
- void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& rEvent )throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addItemListener( const Reference< XItemListener >& l ) throw (RuntimeException);
virtual void SAL_CALL removeItemListener( const Reference< XItemListener >& l ) throw (RuntimeException);
virtual void SAL_CALL itemStateChanged( const ItemEvent& rEvent ) throw (RuntimeException);
-
+
virtual void SAL_CALL propertyChange( const ::com::sun::star::beans::PropertyChangeEvent& evt ) throw (::com::sun::star::uno::RuntimeException);
// XTypeProvider
diff --git a/toolkit/inc/toolkit/controls/roadmapentry.hxx b/toolkit/inc/toolkit/controls/roadmapentry.hxx
index 71ab5752012e..e06c3d642251 100644
--- a/toolkit/inc/toolkit/controls/roadmapentry.hxx
+++ b/toolkit/inc/toolkit/controls/roadmapentry.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,10 +37,10 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
-#define RM_PROPERTY_ID_LABEL 1
-#define RM_PROPERTY_ID_ID 2
-#define RM_PROPERTY_ID_ENABLED 4
-#define RM_PROPERTY_ID_INTERACTIVE 5
+#define RM_PROPERTY_ID_LABEL 1
+#define RM_PROPERTY_ID_ID 2
+#define RM_PROPERTY_ID_ENABLED 4
+#define RM_PROPERTY_ID_INTERACTIVE 5
typedef ::cppu::WeakImplHelper1 < ::com::sun::star::lang::XServiceInfo
> ORoadmapEntry_Base;
@@ -81,9 +81,9 @@ protected:
protected:
// <properties>
::rtl::OUString m_sLabel;
- sal_Int32 m_nID;
- sal_Bool m_bEnabled;
- sal_Bool m_bInteractive;
+ sal_Int32 m_nID;
+ sal_Bool m_bEnabled;
+ sal_Bool m_bInteractive;
// </properties>
};
diff --git a/toolkit/inc/toolkit/controls/stdtabcontroller.hxx b/toolkit/inc/toolkit/controls/stdtabcontroller.hxx
index 847f8a057b36..7ac7939efa26 100644
--- a/toolkit/inc/toolkit/controls/stdtabcontroller.hxx
+++ b/toolkit/inc/toolkit/controls/stdtabcontroller.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,38 +41,38 @@
#include <toolkit/helper/servicenames.hxx>
-class StdTabController : public ::com::sun::star::awt::XTabController,
+class StdTabController : public ::com::sun::star::awt::XTabController,
public ::com::sun::star::lang::XServiceInfo,
public ::com::sun::star::lang::XTypeProvider,
public ::cppu::OWeakAggObject
{
private:
- ::osl::Mutex maMutex;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel > mxModel;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > mxControlContainer;
+ ::osl::Mutex maMutex;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel > mxModel;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer > mxControlContainer;
protected:
- ::osl::Mutex& GetMutex() { return maMutex; }
- sal_Bool ImplCreateComponentSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > >& rControls, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& rModels, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > >& rComponents, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any>* pTabStops, sal_Bool bPeerComponent ) const;
+ ::osl::Mutex& GetMutex() { return maMutex; }
+ sal_Bool ImplCreateComponentSequence( ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > >& rControls, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& rModels, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > >& rComponents, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any>* pTabStops, sal_Bool bPeerComponent ) const;
// wenn rModels kuerzer als rControls ist, werden nur die rModels entsprechenden Elemente geliefert und die korrespondierenden Elemente aus rControls entfernt
- void ImplActivateControl( sal_Bool bFirst ) const;
+ void ImplActivateControl( sal_Bool bFirst ) const;
public:
StdTabController();
~StdTabController();
- static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > FindControl( ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > >& rCtrls, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & rxCtrlModel );
+ static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > FindControl( ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > >& rCtrls, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > & rxCtrlModel );
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return OWeakAggObject::queryInterface(rType); }
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return OWeakAggObject::queryInterface(rType); }
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// XTabController
void SAL_CALL setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabControllerModel >& Model ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/controls/stdtabcontrollermodel.hxx b/toolkit/inc/toolkit/controls/stdtabcontrollermodel.hxx
index 170e46f838a4..17ea3928e1a0 100644
--- a/toolkit/inc/toolkit/controls/stdtabcontrollermodel.hxx
+++ b/toolkit/inc/toolkit/controls/stdtabcontrollermodel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,72 +51,72 @@ DECLARE_LIST( UnoControlModelEntryListBase, UnoControlModelEntry* )
class UnoControlModelEntryList : public UnoControlModelEntryListBase
{
private:
- ::rtl::OUString maGroupName;
+ ::rtl::OUString maGroupName;
public:
UnoControlModelEntryList();
~UnoControlModelEntryList();
- const ::rtl::OUString& GetName() const { return maGroupName; }
- void SetName( const ::rtl::OUString& rName ) { maGroupName = rName; }
+ const ::rtl::OUString& GetName() const { return maGroupName; }
+ void SetName( const ::rtl::OUString& rName ) { maGroupName = rName; }
- void Reset();
- void DestroyEntry( sal_uInt32 nEntry );
+ void Reset();
+ void DestroyEntry( sal_uInt32 nEntry );
};
struct UnoControlModelEntry
{
- sal_Bool bGroup;
+ sal_Bool bGroup;
union
{
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >* pxControl;
- UnoControlModelEntryList* pGroup;
+ UnoControlModelEntryList* pGroup;
};
};
// Keine Referenz halten, nur temporaer fuer AutoTabOrder
struct ComponentEntry
{
- ::com::sun::star::awt::XWindow* pComponent;
- Point aPos;
+ ::com::sun::star::awt::XWindow* pComponent;
+ Point aPos;
};
DECLARE_LIST( ComponentEntryList, ComponentEntry* )
-#define CONTROLPOS_NOTFOUND 0xFFFFFFFF
+#define CONTROLPOS_NOTFOUND 0xFFFFFFFF
-class StdTabControllerModel : public ::com::sun::star::awt::XTabControllerModel,
+class StdTabControllerModel : public ::com::sun::star::awt::XTabControllerModel,
public ::com::sun::star::lang::XServiceInfo,
- public ::com::sun::star::io::XPersistObject,
+ public ::com::sun::star::io::XPersistObject,
public ::com::sun::star::lang::XTypeProvider,
public ::cppu::OWeakAggObject
{
private:
- ::osl::Mutex maMutex;
- UnoControlModelEntryList maControls;
- sal_Bool mbGroupControl;
+ ::osl::Mutex maMutex;
+ UnoControlModelEntryList maControls;
+ sal_Bool mbGroupControl;
protected:
- ::osl::Mutex& GetMutex() { return maMutex; }
- sal_uInt32 ImplGetControlCount( const UnoControlModelEntryList& rList ) const;
- void ImplGetControlModels( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > ** pRefs, const UnoControlModelEntryList& rList ) const;
- void ImplSetControlModels( UnoControlModelEntryList& rList, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& Controls ) const;
- sal_uInt32 ImplGetControlPos( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > xCtrl, const UnoControlModelEntryList& rList ) const;
+ ::osl::Mutex& GetMutex() { return maMutex; }
+ sal_uInt32 ImplGetControlCount( const UnoControlModelEntryList& rList ) const;
+ void ImplGetControlModels( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > ** pRefs, const UnoControlModelEntryList& rList ) const;
+ void ImplSetControlModels( UnoControlModelEntryList& rList, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& Controls ) const;
+ sal_uInt32 ImplGetControlPos( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > xCtrl, const UnoControlModelEntryList& rList ) const;
public:
StdTabControllerModel();
~StdTabControllerModel();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return OWeakAggObject::queryInterface(rType); }
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return OWeakAggObject::queryInterface(rType); }
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XTabControllerModel
sal_Bool SAL_CALL getGroupControl( ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/controls/tkscrollbar.hxx b/toolkit/inc/toolkit/controls/tkscrollbar.hxx
index 3cd3427345b4..2c79213bf3b6 100644
--- a/toolkit/inc/toolkit/controls/tkscrollbar.hxx
+++ b/toolkit/inc/toolkit/controls/tkscrollbar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,16 +46,16 @@ namespace toolkit
//====================================================================
class UnoControlScrollBarModel : public UnoControlModel
{
- protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ protected:
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlScrollBarModel();
UnoControlScrollBarModel( const UnoControlScrollBarModel& rModel ) : UnoControlModel( rModel ) {;}
-
- UnoControlModel* Clone() const { return new UnoControlScrollBarModel( *this ); }
-
+
+ UnoControlModel* Clone() const { return new UnoControlScrollBarModel( *this ); }
+
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -69,7 +69,7 @@ namespace toolkit
//====================================================================
//= UnoControlScrollBarModel
//====================================================================
- class UnoScrollBarControl : public UnoControlBase,
+ class UnoScrollBarControl : public UnoControlBase,
public ::com::sun::star::awt::XAdjustmentListener,
public ::com::sun::star::awt::XScrollBar
{
@@ -78,24 +78,24 @@ namespace toolkit
public:
UnoScrollBarControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XAdjustmentListener
void SAL_CALL adjustmentValueChanged( const ::com::sun::star::awt::AdjustmentEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
- // ::com::sun::star::awt::XScrollBar
+ // ::com::sun::star::awt::XScrollBar
void SAL_CALL addAdjustmentListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XAdjustmentListener >& l ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL removeAdjustmentListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XAdjustmentListener >& l ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL setValue( sal_Int32 n ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/controls/tksimpleanimation.hxx b/toolkit/inc/toolkit/controls/tksimpleanimation.hxx
index cddaffb01e6f..bface83097dd 100644
--- a/toolkit/inc/toolkit/controls/tksimpleanimation.hxx
+++ b/toolkit/inc/toolkit/controls/tksimpleanimation.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,16 +47,16 @@ namespace toolkit
//====================================================================
class UnoSimpleAnimationControlModel : public UnoControlModel
{
- protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ protected:
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoSimpleAnimationControlModel();
UnoSimpleAnimationControlModel( const UnoSimpleAnimationControlModel& rModel ) : UnoControlModel( rModel ) {;}
-
- UnoControlModel* Clone() const { return new UnoSimpleAnimationControlModel( *this ); }
-
+
+ UnoControlModel* Clone() const { return new UnoSimpleAnimationControlModel( *this ); }
+
// XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -82,10 +82,10 @@ namespace toolkit
public:
UnoSimpleAnimationControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
DECLARE_UNO3_AGG_DEFAULTS( UnoSimpleAnimationControl, UnoControlBase );
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
diff --git a/toolkit/inc/toolkit/controls/tkspinbutton.hxx b/toolkit/inc/toolkit/controls/tkspinbutton.hxx
index 645540be002c..af304b42abdd 100644
--- a/toolkit/inc/toolkit/controls/tkspinbutton.hxx
+++ b/toolkit/inc/toolkit/controls/tkspinbutton.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,16 +47,16 @@ namespace toolkit
//====================================================================
class UnoSpinButtonModel : public UnoControlModel
{
- protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ protected:
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoSpinButtonModel();
UnoSpinButtonModel( const UnoSpinButtonModel& rModel ) : UnoControlModel( rModel ) {;}
-
- UnoControlModel* Clone() const { return new UnoSpinButtonModel( *this ); }
-
+
+ UnoControlModel* Clone() const { return new UnoSpinButtonModel( *this ); }
+
// XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -84,10 +84,10 @@ namespace toolkit
public:
UnoSpinButtonControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
DECLARE_UNO3_AGG_DEFAULTS( UnoSpinButtonControl, UnoControlBase );
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
diff --git a/toolkit/inc/toolkit/controls/tkthrobber.hxx b/toolkit/inc/toolkit/controls/tkthrobber.hxx
index 9e9b25914bda..cf300faec2ab 100644
--- a/toolkit/inc/toolkit/controls/tkthrobber.hxx
+++ b/toolkit/inc/toolkit/controls/tkthrobber.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,16 +47,16 @@ namespace toolkit
//====================================================================
class UnoThrobberControlModel : public UnoControlModel
{
- protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ protected:
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoThrobberControlModel();
UnoThrobberControlModel( const UnoThrobberControlModel& rModel ) : UnoControlModel( rModel ) {;}
-
- UnoControlModel* Clone() const { return new UnoThrobberControlModel( *this ); }
-
+
+ UnoControlModel* Clone() const { return new UnoThrobberControlModel( *this ); }
+
// XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -82,10 +82,10 @@ namespace toolkit
public:
UnoThrobberControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
DECLARE_UNO3_AGG_DEFAULTS( UnoThrobberControl, UnoControlBase );
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
diff --git a/toolkit/inc/toolkit/controls/unocontrol.hxx b/toolkit/inc/toolkit/controls/unocontrol.hxx
index 5b2f9a894b94..c87127edafd4 100644
--- a/toolkit/inc/toolkit/controls/unocontrol.hxx
+++ b/toolkit/inc/toolkit/controls/unocontrol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,12 +54,12 @@
struct UnoControlComponentInfos
{
- sal_Bool bVisible;
- sal_Bool bEnable;
- long nX, nY, nWidth, nHeight;
- sal_uInt16 nFlags;
- float nZoomX, nZoomY;
-
+ sal_Bool bVisible;
+ sal_Bool bEnable;
+ long nX, nY, nWidth, nHeight;
+ sal_uInt16 nFlags;
+ float nZoomX, nZoomY;
+
UnoControlComponentInfos()
{
bVisible = sal_True;
@@ -71,72 +71,72 @@ struct UnoControlComponentInfos
};
struct UnoControl_Data;
-// ----------------------------------------------------
-// class UnoControl
-// ----------------------------------------------------
-typedef ::cppu::WeakAggImplHelper9 < ::com::sun::star::awt::XControl
- , ::com::sun::star::awt::XWindow2
- , ::com::sun::star::awt::XView
- , ::com::sun::star::beans::XPropertiesChangeListener
- , ::com::sun::star::lang::XServiceInfo
- , ::com::sun::star::accessibility::XAccessible
- , ::com::sun::star::util::XModeChangeBroadcaster
- , ::com::sun::star::awt::XUnitConversion
+// ----------------------------------------------------
+// class UnoControl
+// ----------------------------------------------------
+typedef ::cppu::WeakAggImplHelper9 < ::com::sun::star::awt::XControl
+ , ::com::sun::star::awt::XWindow2
+ , ::com::sun::star::awt::XView
+ , ::com::sun::star::beans::XPropertiesChangeListener
+ , ::com::sun::star::lang::XServiceInfo
+ , ::com::sun::star::accessibility::XAccessible
+ , ::com::sun::star::util::XModeChangeBroadcaster
+ , ::com::sun::star::awt::XUnitConversion
, ::com::sun::star::awt::XStyleSettingsSupplier
- > UnoControl_Base;
+ > UnoControl_Base;
-class TOOLKIT_DLLPUBLIC UnoControl : public UnoControl_Base
+class TOOLKIT_DLLPUBLIC UnoControl : public UnoControl_Base
{
private:
- ::osl::Mutex maMutex;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > mxPeer;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclWindowPeer > mxVclWindowPeer; // just to avoid the query_interface thing
+ ::osl::Mutex maMutex;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > mxPeer;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclWindowPeer > mxVclWindowPeer; // just to avoid the query_interface thing
protected:
- EventListenerMultiplexer maDisposeListeners;
- WindowListenerMultiplexer maWindowListeners;
- FocusListenerMultiplexer maFocusListeners;
- KeyListenerMultiplexer maKeyListeners;
- MouseListenerMultiplexer maMouseListeners;
- MouseMotionListenerMultiplexer maMouseMotionListeners;
- PaintListenerMultiplexer maPaintListeners;
- ::cppu::OInterfaceContainerHelper maModeChangeListeners;
-
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxContext;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > mxModel;
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > mxGraphics;
+ EventListenerMultiplexer maDisposeListeners;
+ WindowListenerMultiplexer maWindowListeners;
+ FocusListenerMultiplexer maFocusListeners;
+ KeyListenerMultiplexer maKeyListeners;
+ MouseListenerMultiplexer maMouseListeners;
+ MouseMotionListenerMultiplexer maMouseMotionListeners;
+ PaintListenerMultiplexer maPaintListeners;
+ ::cppu::OInterfaceContainerHelper maModeChangeListeners;
+
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxContext;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > mxModel;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > mxGraphics;
::com::sun::star::uno::WeakReferenceHelper
- maAccessibleContext; /// our most recent XAccessibleContext instance
-
- sal_Bool mbDisposePeer;
- sal_Bool mbRefeshingPeer;
- sal_Bool mbCreatingPeer;
- sal_Bool mbCreatingCompatiblePeer;
- sal_Bool mbDesignMode;
-
- UnoControlComponentInfos maComponentInfos;
+ maAccessibleContext; /// our most recent XAccessibleContext instance
+
+ sal_Bool mbDisposePeer;
+ sal_Bool mbRefeshingPeer;
+ sal_Bool mbCreatingPeer;
+ sal_Bool mbCreatingCompatiblePeer;
+ sal_Bool mbDesignMode;
+
+ UnoControlComponentInfos maComponentInfos;
UnoControl_Data* mpData;
+
+ ::osl::Mutex& GetMutex() { return maMutex; }
- ::osl::Mutex& GetMutex() { return maMutex; }
-
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > getParentPeer() const;
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > getParentPeer() const;
virtual void updateFromModel();
void peerCreated();
bool ImplCheckLocalize( ::rtl::OUString& _rPossiblyLocalizable );
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > ImplGetCompatiblePeer( sal_Bool bAcceptExistingPeer );
- virtual void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
- virtual void PrepareWindowDescriptor( ::com::sun::star::awt::WindowDescriptor& rDesc );
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > ImplGetCompatiblePeer( sal_Bool bAcceptExistingPeer );
+ virtual void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
+ virtual void PrepareWindowDescriptor( ::com::sun::star::awt::WindowDescriptor& rDesc );
virtual void ImplModelPropertiesChanged( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent >& rEvents );
void ImplLockPropertyChangeNotification( const ::rtl::OUString& rPropertyName, bool bLock );
void ImplLockPropertyChangeNotifications( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rPropertyNames, bool bLock );
- void disposeAccessibleContext();
+ void disposeAccessibleContext();
- inline void setPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& _xPeer)
- {
+ inline void setPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& _xPeer)
+ {
mxPeer = _xPeer;
mxVclWindowPeer = ::com::sun::star::uno::Reference< ::com::sun::star::awt::XVclWindowPeer >(mxPeer,::com::sun::star::uno::UNO_QUERY); // just to avoid the query_interface thing
}
@@ -147,13 +147,13 @@ public:
UnoControl();
~UnoControl();
- UnoControlComponentInfos& GetComponentInfos() { return maComponentInfos; }
+ UnoControlComponentInfos& GetComponentInfos() { return maComponentInfos; }
-
- virtual ::rtl::OUString GetComponentServiceName();
+
+ virtual ::rtl::OUString GetComponentServiceName();
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XComponent
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
@@ -208,7 +208,7 @@ public:
void SAL_CALL setDesignMode( sal_Bool bOn ) throw(::com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL isDesignMode( ) throw(::com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::lang::XServiceInfo
::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/controls/unocontrolbase.hxx b/toolkit/inc/toolkit/controls/unocontrolbase.hxx
index 2d21f3f82c84..d4f395c3752d 100644
--- a/toolkit/inc/toolkit/controls/unocontrolbase.hxx
+++ b/toolkit/inc/toolkit/controls/unocontrolbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,35 +33,35 @@
#include <toolkit/controls/unocontrol.hxx>
-// ----------------------------------------------------
-// class UnoControlBase
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlBase
+// ----------------------------------------------------
class TOOLKIT_DLLPUBLIC UnoControlBase : public UnoControl
{
protected:
- sal_Bool ImplHasProperty( sal_uInt16 nProp );
- sal_Bool ImplHasProperty( const ::rtl::OUString& aPropertyName );
- void ImplSetPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, sal_Bool bUpdateThis );
- void ImplSetPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues, sal_Bool bUpdateThis );
- ::com::sun::star::uno::Any ImplGetPropertyValue( const ::rtl::OUString& aPropertyName );
+ sal_Bool ImplHasProperty( sal_uInt16 nProp );
+ sal_Bool ImplHasProperty( const ::rtl::OUString& aPropertyName );
+ void ImplSetPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, sal_Bool bUpdateThis );
+ void ImplSetPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues, sal_Bool bUpdateThis );
+ ::com::sun::star::uno::Any ImplGetPropertyValue( const ::rtl::OUString& aPropertyName );
- sal_Bool ImplGetPropertyValue_BOOL( sal_uInt16 nProp );
- sal_Int16 ImplGetPropertyValue_INT16( sal_uInt16 nProp );
- sal_uInt16 ImplGetPropertyValue_UINT16( sal_uInt16 nProp );
- sal_Int32 ImplGetPropertyValue_INT32( sal_uInt16 nProp );
- sal_uInt32 ImplGetPropertyValue_UINT32( sal_uInt16 nProp );
- double ImplGetPropertyValue_DOUBLE( sal_uInt16 nProp );
- ::rtl::OUString ImplGetPropertyValue_UString( sal_uInt16 nProp );
+ sal_Bool ImplGetPropertyValue_BOOL( sal_uInt16 nProp );
+ sal_Int16 ImplGetPropertyValue_INT16( sal_uInt16 nProp );
+ sal_uInt16 ImplGetPropertyValue_UINT16( sal_uInt16 nProp );
+ sal_Int32 ImplGetPropertyValue_INT32( sal_uInt16 nProp );
+ sal_uInt32 ImplGetPropertyValue_UINT32( sal_uInt16 nProp );
+ double ImplGetPropertyValue_DOUBLE( sal_uInt16 nProp );
+ ::rtl::OUString ImplGetPropertyValue_UString( sal_uInt16 nProp );
// XLayoutConstrains (nur wenn das Control es unterstuetzt!)
- ::com::sun::star::awt::Size Impl_getMinimumSize();
- ::com::sun::star::awt::Size Impl_getPreferredSize();
- ::com::sun::star::awt::Size Impl_calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize );
+ ::com::sun::star::awt::Size Impl_getMinimumSize();
+ ::com::sun::star::awt::Size Impl_getPreferredSize();
+ ::com::sun::star::awt::Size Impl_calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize );
// XTextLayoutConstrains (nur wenn das Control es unterstuetzt!)
- ::com::sun::star::awt::Size Impl_getMinimumSize( sal_Int16 nCols, sal_Int16 nLines );
- void Impl_getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines );
+ ::com::sun::star::awt::Size Impl_getMinimumSize( sal_Int16 nCols, sal_Int16 nLines );
+ void Impl_getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines );
};
diff --git a/toolkit/inc/toolkit/controls/unocontrolcontainer.hxx b/toolkit/inc/toolkit/controls/unocontrolcontainer.hxx
index a566fef2716e..3550bc12a1cc 100644
--- a/toolkit/inc/toolkit/controls/unocontrolcontainer.hxx
+++ b/toolkit/inc/toolkit/controls/unocontrolcontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,9 +44,9 @@
class UnoControlHolderList;
-// ----------------------------------------------------
-// class UnoControlContainer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlContainer
+// ----------------------------------------------------
typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
, ::com::sun::star::awt::XUnoControlContainer
, ::com::sun::star::awt::XControlContainer
@@ -56,13 +56,13 @@ typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
class UnoControlContainer : public UnoControlContainer_Base
{
-private:
- UnoControlHolderList* mpControls;
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController > > maTabControllers;
- ContainerListenerMultiplexer maCListeners;
+private:
+ UnoControlHolderList* mpControls;
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController > > maTabControllers;
+ ContainerListenerMultiplexer maCListeners;
protected:
- void ImplActivateTabControllers();
+ void ImplActivateTabControllers();
public:
UnoControlContainer();
@@ -101,16 +101,16 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > SAL_CALL getControl( const ::rtl::OUString& aName ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL addControl( const ::rtl::OUString& Name, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& Control ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL removeControl( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& Control ) throw(::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::awt::XUnoControlContainer
void SAL_CALL setTabControllers( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController > >& TabControllers ) throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController > > SAL_CALL getTabControllers( ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL addTabController( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController >& TabController ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL removeTabController( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController >& TabController ) throw(::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::awt::XControl
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::awt::XWindow
void SAL_CALL setVisible( sal_Bool Visible ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/controls/unocontrolcontainermodel.hxx b/toolkit/inc/toolkit/controls/unocontrolcontainermodel.hxx
index 21a338a0f2a7..177a86b72d2b 100644
--- a/toolkit/inc/toolkit/controls/unocontrolcontainermodel.hxx
+++ b/toolkit/inc/toolkit/controls/unocontrolcontainermodel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,28 +35,28 @@
#include <toolkit/helper/servicenames.hxx>
-// ----------------------------------------------------
-// class ::com::sun::star::awt::UnoControlContainerModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ::com::sun::star::awt::UnoControlContainerModel
+// ----------------------------------------------------
class UnoControlContainerModel : public UnoControlModel
{
-protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > getPropertySetInfo() const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+protected:
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > getPropertySetInfo() const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlContainerModel();
UnoControlContainerModel( const UnoControlContainerModel& rModel ) : UnoControlModel( rModel ) {;}
-
- UnoControlModel* Clone() const { return new UnoControlContainerModel( *this ); }
+
+ UnoControlModel* Clone() const { return new UnoControlContainerModel( *this ); }
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::lang::XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED( UnoControlContainerModel, UnoControlModel, szServiceName2_UnoControlContainerModel )
};
diff --git a/toolkit/inc/toolkit/controls/unocontrolmodel.hxx b/toolkit/inc/toolkit/controls/unocontrolmodel.hxx
index e46780b3b052..e75acfcda526 100644
--- a/toolkit/inc/toolkit/controls/unocontrolmodel.hxx
+++ b/toolkit/inc/toolkit/controls/unocontrolmodel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,15 +48,15 @@
#include <list>
-class ImplPropertyTable;
+class ImplPropertyTable;
-// ----------------------------------------------------
-// class UnoControlModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlModel
+// ----------------------------------------------------
-class TOOLKIT_DLLPUBLIC UnoControlModel : public ::com::sun::star::awt::XControlModel,
- public ::com::sun::star::beans::XPropertyState,
- public ::com::sun::star::io::XPersistObject,
+class TOOLKIT_DLLPUBLIC UnoControlModel : public ::com::sun::star::awt::XControlModel,
+ public ::com::sun::star::beans::XPropertyState,
+ public ::com::sun::star::io::XPersistObject,
public ::com::sun::star::lang::XComponent,
public ::com::sun::star::lang::XServiceInfo,
public ::com::sun::star::lang::XTypeProvider,
@@ -67,16 +67,16 @@ class TOOLKIT_DLLPUBLIC UnoControlModel : public ::com::sun::star::awt::XContr
public ::cppu::OWeakAggObject
{
private:
- ImplPropertyTable* mpData;
- EventListenerMultiplexer maDisposeListeners;
+ ImplPropertyTable* mpData;
+ EventListenerMultiplexer maDisposeListeners;
protected:
- void ImplRegisterProperty( sal_uInt16 nPropType );
- void ImplRegisterProperties( const std::list< sal_uInt16 > &rIds );
- void ImplRegisterProperty( sal_uInt16 nPropId, const ::com::sun::star::uno::Any& rDefault );
- ::com::sun::star::uno::Sequence<sal_Int32> ImplGetPropertyIds() const;
- virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- sal_Bool ImplHasProperty( sal_uInt16 nPropId ) const;
+ void ImplRegisterProperty( sal_uInt16 nPropType );
+ void ImplRegisterProperties( const std::list< sal_uInt16 > &rIds );
+ void ImplRegisterProperty( sal_uInt16 nPropId, const ::com::sun::star::uno::Any& rDefault );
+ ::com::sun::star::uno::Sequence<sal_Int32> ImplGetPropertyIds() const;
+ virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ sal_Bool ImplHasProperty( sal_uInt16 nPropId ) const;
/** called before setting multiple properties, allows to care for property dependencies
@@ -85,11 +85,11 @@ protected:
the properties are internally really set.</p>
*/
virtual void ImplNormalizePropertySequence(
- const sal_Int32 _nCount, /// the number of entries in the arrays
- sal_Int32* _pHandles, /// the handles of the properties to set
- ::com::sun::star::uno::Any* _pValues, /// the values of the properties to set
- sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted
- ) const SAL_THROW(());
+ const sal_Int32 _nCount, /// the number of entries in the arrays
+ sal_Int32* _pHandles, /// the handles of the properties to set
+ ::com::sun::star::uno::Any* _pValues, /// the values of the properties to set
+ sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted
+ ) const SAL_THROW(());
/// ensures that two property values in a sequence have a certain order
void ImplEnsureHandleOrder(
@@ -100,31 +100,31 @@ protected:
sal_Int32 _nSecondHandle /// second handle, which should supersede _nFirstHandle in the sequence
) const;
-public:
+public:
UnoControlModel();
UnoControlModel( const UnoControlModel& rModel );
~UnoControlModel();
-
- virtual UnoControlModel* Clone() const = 0;
-
+
+ virtual UnoControlModel* Clone() const = 0;
+
// ::com::sun::star::uno::XAggregation
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return OWeakAggObject::queryInterface(rType); }
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return OWeakAggObject::queryInterface(rType); }
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XUnoTunnel
- static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
- static UnoControlModel* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
- sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
+ static const ::com::sun::star::uno::Sequence< sal_Int8 >& GetUnoTunnelId() throw();
+ static UnoControlModel* GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw();
+ sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::util::XCloneable
::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XControlModel
diff --git a/toolkit/inc/toolkit/controls/unocontrols.hxx b/toolkit/inc/toolkit/controls/unocontrols.hxx
index 21b634155585..993c798cd952 100644
--- a/toolkit/inc/toolkit/controls/unocontrols.hxx
+++ b/toolkit/inc/toolkit/controls/unocontrols.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,22 +71,22 @@
#define UNO_NAME_GRAPHOBJ_URLPREFIX "vnd.sun.star.GraphicObject:"
#define UNO_NAME_GRAPHOBJ_URLPKGPREFIX "vnd.sun.star.Package:"
+
-
-// ----------------------------------------------------
-// class UnoControlEditModel
-// ----------------------------------------------------
-class UnoControlEditModel : public UnoControlModel
+// ----------------------------------------------------
+// class UnoControlEditModel
+// ----------------------------------------------------
+class UnoControlEditModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlEditModel();
UnoControlEditModel( const UnoControlEditModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlEditModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlEditModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -99,9 +99,9 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoControlEditModel, UnoControlModel, szServiceName2_UnoControlEditModel )
};
-// ----------------------------------------------------
-// class UnoEditControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoEditControl
+// ----------------------------------------------------
typedef ::cppu::ImplHelper4 < ::com::sun::star::awt::XTextComponent
, ::com::sun::star::awt::XTextListener
, ::com::sun::star::awt::XLayoutConstrains
@@ -111,7 +111,7 @@ class TOOLKIT_DLLPUBLIC UnoEditControl :public UnoControlBase
,public UnoEditControl_Base
{
private:
- TextListenerMultiplexer maTextListeners;
+ TextListenerMultiplexer maTextListeners;
// Not all fields derived from UnoEditCOntrol have the property "Text"
// They only support XTextComponent, so keep the text
@@ -126,10 +126,10 @@ private:
public:
UnoEditControl();
- ::rtl::OUString GetComponentServiceName();
- TextListenerMultiplexer& GetTextListeners() { return maTextListeners; }
+ ::rtl::OUString GetComponentServiceName();
+ TextListenerMultiplexer& GetTextListeners() { return maTextListeners; }
- void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
+ void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
@@ -176,20 +176,20 @@ public:
sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
};
-// ----------------------------------------------------
-// class UnoControlFileControlModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlFileControlModel
+// ----------------------------------------------------
class UnoControlFileControlModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlFileControlModel();
UnoControlFileControlModel( const UnoControlFileControlModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlFileControlModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlFileControlModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -201,28 +201,28 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoControlFileControlModel, UnoControlModel, szServiceName2_UnoControlFileControlModel )
};
-// ----------------------------------------------------
-// class UnoFileControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoFileControl
+// ----------------------------------------------------
class UnoFileControl : public UnoEditControl
{
public:
UnoFileControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
// ::com::sun::star::lang::XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED( UnoFileControl, UnoEditControl, szServiceName2_UnoControlFileControl )
};
-// ----------------------------------------------------
-// class GraphicControlModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class GraphicControlModel
+// ----------------------------------------------------
class GraphicControlModel : public UnoControlModel
{
private:
bool mbAdjustingImagePosition;
bool mbAdjustingGraphic;
-
+
::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphicObject > mxGrfObj;
protected:
@@ -239,20 +239,20 @@ private:
GraphicControlModel& operator=( const GraphicControlModel& ); // never implemented
};
-// ----------------------------------------------------
-// class UnoControlButtonModel
-// ----------------------------------------------------
-class UnoControlButtonModel : public GraphicControlModel
+// ----------------------------------------------------
+// class UnoControlButtonModel
+// ----------------------------------------------------
+class UnoControlButtonModel : public GraphicControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlButtonModel();
UnoControlButtonModel( const UnoControlButtonModel& rModel ) : GraphicControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlButtonModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlButtonModel( *this ); }
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -264,9 +264,9 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoControlButtonModel, GraphicControlModel, szServiceName2_UnoControlButtonModel )
};
-// ----------------------------------------------------
-// class UnoButtonControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoButtonControl
+// ----------------------------------------------------
typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
, ::com::sun::star::awt::XButton
, ::com::sun::star::awt::XToggleButton
@@ -278,12 +278,12 @@ class UnoButtonControl : public UnoButtonControl_Base
private:
ActionListenerMultiplexer maActionListeners;
ItemListenerMultiplexer maItemListeners;
- ::rtl::OUString maActionCommand;
+ ::rtl::OUString maActionCommand;
public:
UnoButtonControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
@@ -314,23 +314,23 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoButtonControl, UnoControlBase, szServiceName2_UnoControlButton )
};
-// ----------------------------------------------------
-// class UnoControlImageControlModel
-// ----------------------------------------------------
-class UnoControlImageControlModel : public GraphicControlModel
+// ----------------------------------------------------
+// class UnoControlImageControlModel
+// ----------------------------------------------------
+class UnoControlImageControlModel : public GraphicControlModel
{
private:
bool mbAdjustingImageScaleMode;
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlImageControlModel();
UnoControlImageControlModel( const UnoControlImageControlModel& rModel ) : GraphicControlModel( rModel ), mbAdjustingImageScaleMode( false ) { }
- UnoControlModel* Clone() const { return new UnoControlImageControlModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlImageControlModel( *this ); }
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -345,22 +345,22 @@ public:
void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
};
-// ----------------------------------------------------
-// class UnoImageControlControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoImageControlControl
+// ----------------------------------------------------
typedef ::cppu::AggImplInheritanceHelper1 < UnoControlBase
, ::com::sun::star::awt::XLayoutConstrains
> UnoImageControlControl_Base;
class UnoImageControlControl : public UnoImageControlControl_Base
{
private:
- ActionListenerMultiplexer maActionListeners;
- ::rtl::OUString maActionCommand;
+ ActionListenerMultiplexer maActionListeners;
+ ::rtl::OUString maActionCommand;
public:
UnoImageControlControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
@@ -376,21 +376,21 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoImageControlControl, UnoControlBase, szServiceName2_UnoControlImageControl )
};
-// ----------------------------------------------------
-// class UnoControlRadioButtonModel
-// ----------------------------------------------------
-class UnoControlRadioButtonModel : public GraphicControlModel
+// ----------------------------------------------------
+// class UnoControlRadioButtonModel
+// ----------------------------------------------------
+class UnoControlRadioButtonModel : public GraphicControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlRadioButtonModel();
UnoControlRadioButtonModel( const UnoControlRadioButtonModel& rModel ) : GraphicControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlRadioButtonModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlRadioButtonModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -403,9 +403,9 @@ public:
};
-// ----------------------------------------------------
-// class UnoRadioButtonControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoRadioButtonControl
+// ----------------------------------------------------
typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
, ::com::sun::star::awt::XButton
, ::com::sun::star::awt::XRadioButton
@@ -415,14 +415,14 @@ typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
class UnoRadioButtonControl : public UnoRadioButtonControl_Base
{
private:
- ItemListenerMultiplexer maItemListeners;
- ActionListenerMultiplexer maActionListeners;
- ::rtl::OUString maActionCommand;
+ ItemListenerMultiplexer maItemListeners;
+ ActionListenerMultiplexer maActionListeners;
+ ::rtl::OUString maActionCommand;
public:
UnoRadioButtonControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
@@ -456,20 +456,20 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlCheckBoxModel
-// ----------------------------------------------------
-class UnoControlCheckBoxModel : public GraphicControlModel
+// ----------------------------------------------------
+// class UnoControlCheckBoxModel
+// ----------------------------------------------------
+class UnoControlCheckBoxModel : public GraphicControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlCheckBoxModel();
UnoControlCheckBoxModel( const UnoControlCheckBoxModel& rModel ) : GraphicControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlCheckBoxModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlCheckBoxModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -481,9 +481,9 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoControlCheckBoxModel, GraphicControlModel, szServiceName2_UnoControlCheckBoxModel )
};
-// ----------------------------------------------------
-// class UnoCheckBoxControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoCheckBoxControl
+// ----------------------------------------------------
typedef ::cppu::AggImplInheritanceHelper4 < UnoControlBase
, ::com::sun::star::awt::XButton
, ::com::sun::star::awt::XCheckBox
@@ -494,14 +494,14 @@ class UnoCheckBoxControl : public UnoCheckBoxControl_Base
{
private:
ItemListenerMultiplexer maItemListeners;
- ActionListenerMultiplexer maActionListeners;
- ::rtl::OUString maActionCommand;
+ ActionListenerMultiplexer maActionListeners;
+ ::rtl::OUString maActionCommand;
public:
UnoCheckBoxControl();
~UnoCheckBoxControl(){;}
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
@@ -537,14 +537,14 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlFixedTextModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlFixedTextModel
+// ----------------------------------------------------
class UnoControlFixedHyperlinkModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlFixedHyperlinkModel();
@@ -562,9 +562,9 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoControlFixedHyperlinkModel, UnoControlModel, szServiceName_UnoControlFixedHyperlinkModel )
};
-// ----------------------------------------------------
+// ----------------------------------------------------
// class UnoFixedHyperlinkControl
-// ----------------------------------------------------
+// ----------------------------------------------------
class UnoFixedHyperlinkControl : public UnoControlBase,
public ::com::sun::star::awt::XFixedHyperlink,
public ::com::sun::star::awt::XLayoutConstrains
@@ -577,17 +577,17 @@ public:
::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XControl
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
@@ -640,14 +640,14 @@ public:
class UnoMultiPageModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoMultiPageModel();
UnoMultiPageModel( const UnoMultiPageModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoMultiPageModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoMultiPageModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -659,14 +659,14 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoMultiPageModel, UnoControlModel, szServiceName_UnoMultiPageModel )
};
-// ----------------------------------------------------
-// class UnoGroupBoxControl
-// ----------------------------------------------------
-class UnoMultiPageControl : public UnoControlBase
+// ----------------------------------------------------
+// class UnoGroupBoxControl
+// ----------------------------------------------------
+class UnoMultiPageControl : public UnoControlBase
{
public:
UnoMultiPageControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
@@ -714,20 +714,20 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlGroupBoxModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlGroupBoxModel
+// ----------------------------------------------------
class UnoControlGroupBoxModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlGroupBoxModel();
UnoControlGroupBoxModel( const UnoControlGroupBoxModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlGroupBoxModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlGroupBoxModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -740,14 +740,14 @@ public:
};
-// ----------------------------------------------------
-// class UnoGroupBoxControl
-// ----------------------------------------------------
-class UnoGroupBoxControl : public UnoControlBase
+// ----------------------------------------------------
+// class UnoGroupBoxControl
+// ----------------------------------------------------
+class UnoGroupBoxControl : public UnoControlBase
{
public:
UnoGroupBoxControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
@@ -756,9 +756,9 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlListBoxModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlListBoxModel
+// ----------------------------------------------------
struct UnoControlListBoxModel_Data;
typedef ::cppu::AggImplInheritanceHelper1 < UnoControlModel
, ::com::sun::star::awt::XItemList
@@ -772,14 +772,14 @@ public:
UnoControlListBoxModel( const UnoControlListBoxModel& i_rSource );
~UnoControlListBoxModel();
- UnoControlModel* Clone() const { return new UnoControlListBoxModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlListBoxModel( *this ); }
- virtual void ImplNormalizePropertySequence(
- const sal_Int32 _nCount, /// the number of entries in the arrays
- sal_Int32* _pHandles, /// the handles of the properties to set
- ::com::sun::star::uno::Any* _pValues, /// the values of the properties to set
- sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted
- ) const SAL_THROW(());
+ virtual void ImplNormalizePropertySequence(
+ const sal_Int32 _nCount, /// the number of entries in the arrays
+ sal_Int32* _pHandles, /// the handles of the properties to set
+ ::com::sun::star::uno::Any* _pValues, /// the values of the properties to set
+ sal_Int32* _pValidHandles /// pointer to the valid handles, allowed to be adjusted
+ ) const SAL_THROW(());
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -815,8 +815,8 @@ public:
void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception);
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
private:
void impl_notifyItemListEvent_nolck(
@@ -853,9 +853,9 @@ protected:
::cppu::OInterfaceContainerHelper m_aItemListListeners;
};
-// ----------------------------------------------------
-// class UnoListBoxControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoListBoxControl
+// ----------------------------------------------------
typedef ::cppu::AggImplInheritanceHelper5 < UnoControlBase
, ::com::sun::star::awt::XListBox
, ::com::sun::star::awt::XItemListener
@@ -867,7 +867,7 @@ class TOOLKIT_DLLPUBLIC UnoListBoxControl : public UnoListBoxControl_Base
{
public:
UnoListBoxControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
@@ -929,27 +929,27 @@ protected:
virtual void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
virtual void updateFromModel();
- ActionListenerMultiplexer& getActionListeners();
- ItemListenerMultiplexer& getItemListeners();
+ ActionListenerMultiplexer& getActionListeners();
+ ItemListenerMultiplexer& getItemListeners();
private:
- ActionListenerMultiplexer maActionListeners;
- ItemListenerMultiplexer maItemListeners;
+ ActionListenerMultiplexer maActionListeners;
+ ItemListenerMultiplexer maItemListeners;
};
-// ----------------------------------------------------
-// class UnoControlComboBoxModel
-// ----------------------------------------------------
-class UnoControlComboBoxModel : public UnoControlListBoxModel
+// ----------------------------------------------------
+// class UnoControlComboBoxModel
+// ----------------------------------------------------
+class UnoControlComboBoxModel : public UnoControlListBoxModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlComboBoxModel();
UnoControlComboBoxModel( const UnoControlComboBoxModel& rModel ) : UnoControlListBoxModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlComboBoxModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlComboBoxModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -966,36 +966,36 @@ public:
};
-// ----------------------------------------------------
-// class UnoComboBoxControl
-// ----------------------------------------------------
-class UnoComboBoxControl : public UnoEditControl
+// ----------------------------------------------------
+// class UnoComboBoxControl
+// ----------------------------------------------------
+class UnoComboBoxControl : public UnoEditControl
, public ::com::sun::star::awt::XComboBox
, public ::com::sun::star::awt::XItemListener
, public ::com::sun::star::awt::XItemListListener
{
private:
- ActionListenerMultiplexer maActionListeners;
- ItemListenerMultiplexer maItemListeners;
+ ActionListenerMultiplexer maActionListeners;
+ ItemListenerMultiplexer maItemListeners;
public:
UnoComboBoxControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoEditControl::disposing( Source ); }
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
-
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
+
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XComboBox
void SAL_CALL addItemListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XItemListener >& l ) throw(::com::sun::star::uno::RuntimeException);
@@ -1031,32 +1031,32 @@ public:
protected:
virtual void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
virtual void updateFromModel();
- ActionListenerMultiplexer& getActionListeners();
- ItemListenerMultiplexer& getItemListeners();
+ ActionListenerMultiplexer& getActionListeners();
+ ItemListenerMultiplexer& getItemListeners();
};
-// ----------------------------------------------------
-// class UnoSpinFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoSpinFieldControl
+// ----------------------------------------------------
class UnoSpinFieldControl : public UnoEditControl,
public ::com::sun::star::awt::XSpinField
{
private:
- SpinListenerMultiplexer maSpinListeners;
+ SpinListenerMultiplexer maSpinListeners;
BOOL mbRepeat;
public:
UnoSpinFieldControl();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoEditControl::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
@@ -1075,20 +1075,20 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlDateFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlDateFieldModel
+// ----------------------------------------------------
class UnoControlDateFieldModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlDateFieldModel();
UnoControlDateFieldModel( const UnoControlDateFieldModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlDateFieldModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlDateFieldModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -1101,9 +1101,9 @@ public:
};
-// ----------------------------------------------------
-// class UnoDateFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoDateFieldControl
+// ----------------------------------------------------
class UnoDateFieldControl : public UnoSpinFieldControl,
public ::com::sun::star::awt::XDateField
{
@@ -1113,16 +1113,16 @@ private:
sal_Bool mbLongFormat;
public:
UnoDateFieldControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
@@ -1151,20 +1151,20 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoDateFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlDateField )
};
-// ----------------------------------------------------
-// class UnoControlTimeFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlTimeFieldModel
+// ----------------------------------------------------
class UnoControlTimeFieldModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlTimeFieldModel();
UnoControlTimeFieldModel( const UnoControlTimeFieldModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlTimeFieldModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlTimeFieldModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -1177,9 +1177,9 @@ public:
};
-// ----------------------------------------------------
-// class UnoTimeFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoTimeFieldControl
+// ----------------------------------------------------
class UnoTimeFieldControl : public UnoSpinFieldControl,
public ::com::sun::star::awt::XTimeField
{
@@ -1189,16 +1189,16 @@ private:
public:
UnoTimeFieldControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
@@ -1226,20 +1226,20 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlNumericFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlNumericFieldModel
+// ----------------------------------------------------
class UnoControlNumericFieldModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlNumericFieldModel();
UnoControlNumericFieldModel( const UnoControlNumericFieldModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlNumericFieldModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlNumericFieldModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -1252,10 +1252,10 @@ public:
};
-// ----------------------------------------------------
-// class UnoNumericFieldControl
-// ----------------------------------------------------
-class UnoNumericFieldControl : public UnoSpinFieldControl,
+// ----------------------------------------------------
+// class UnoNumericFieldControl
+// ----------------------------------------------------
+class UnoNumericFieldControl : public UnoSpinFieldControl,
public ::com::sun::star::awt::XNumericField
{
private:
@@ -1264,18 +1264,18 @@ private:
public:
UnoNumericFieldControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XTextListener
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
@@ -1303,20 +1303,20 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlCurrencyFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlCurrencyFieldModel
+// ----------------------------------------------------
class UnoControlCurrencyFieldModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlCurrencyFieldModel();
UnoControlCurrencyFieldModel( const UnoControlCurrencyFieldModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlCurrencyFieldModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlCurrencyFieldModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -1329,10 +1329,10 @@ public:
};
-// ----------------------------------------------------
-// class UnoCurrencyFieldControl
-// ----------------------------------------------------
-class UnoCurrencyFieldControl : public UnoSpinFieldControl,
+// ----------------------------------------------------
+// class UnoCurrencyFieldControl
+// ----------------------------------------------------
+class UnoCurrencyFieldControl : public UnoSpinFieldControl,
public ::com::sun::star::awt::XCurrencyField
{
private:
@@ -1341,18 +1341,18 @@ private:
public:
UnoCurrencyFieldControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XTextListener
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
@@ -1379,20 +1379,20 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoCurrencyFieldControl, UnoSpinFieldControl, szServiceName2_UnoControlCurrencyField )
};
-// ----------------------------------------------------
-// class UnoControlPatternFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlPatternFieldModel
+// ----------------------------------------------------
class UnoControlPatternFieldModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlPatternFieldModel();
UnoControlPatternFieldModel( const UnoControlPatternFieldModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlPatternFieldModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlPatternFieldModel( *this ); }
// ::com::sun::star::io::XPersistObject
::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
@@ -1405,27 +1405,27 @@ public:
};
-// ----------------------------------------------------
-// class UnoPatternFieldControl
-// ----------------------------------------------------
-class UnoPatternFieldControl : public UnoSpinFieldControl,
+// ----------------------------------------------------
+// class UnoPatternFieldControl
+// ----------------------------------------------------
+class UnoPatternFieldControl : public UnoSpinFieldControl,
public ::com::sun::star::awt::XPatternField
{
protected:
- void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
+ void ImplSetPeerProperty( const ::rtl::OUString& rPropName, const ::com::sun::star::uno::Any& rVal );
public:
UnoPatternFieldControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoSpinFieldControl::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XPatternField
void SAL_CALL setMasks( const ::rtl::OUString& EditMask, const ::rtl::OUString& LiteralMask ) throw(::com::sun::star::uno::RuntimeException);
@@ -1440,20 +1440,20 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlProgressBarModel
-// ----------------------------------------------------
-class UnoControlProgressBarModel : public UnoControlModel
+// ----------------------------------------------------
+// class UnoControlProgressBarModel
+// ----------------------------------------------------
+class UnoControlProgressBarModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlProgressBarModel();
UnoControlProgressBarModel( const UnoControlProgressBarModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlProgressBarModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlProgressBarModel( *this ); }
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -1465,30 +1465,30 @@ public:
DECLIMPL_SERVICEINFO_DERIVED( UnoControlProgressBarModel, UnoControlModel, szServiceName2_UnoControlProgressBarModel )
};
-// ----------------------------------------------------
-// class UnoProgressBarControl
-// ----------------------------------------------------
-class UnoProgressBarControl : public UnoControlBase,
+// ----------------------------------------------------
+// class UnoProgressBarControl
+// ----------------------------------------------------
+class UnoProgressBarControl : public UnoControlBase,
public ::com::sun::star::awt::XProgressBar
{
public:
UnoProgressBarControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
- ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
- void SAL_CALL release() throw() { OWeakAggObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) { return UnoControlBase::queryInterface(rType); }
+ ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakAggObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakAggObject::release(); }
// ::com::sun::star::lang::XTypeProvider
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
- ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XProgressBar
void SAL_CALL setForegroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL setBackgroundColor( sal_Int32 nColor ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL setValue( sal_Int32 nValue ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException );
+ void SAL_CALL setRange( sal_Int32 nMin, sal_Int32 nMax ) throw(::com::sun::star::uno::RuntimeException );
sal_Int32 SAL_CALL getValue() throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::lang::XServiceInfo
@@ -1496,20 +1496,20 @@ public:
};
-// ----------------------------------------------------
-// class UnoControlFixedLineModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlFixedLineModel
+// ----------------------------------------------------
class UnoControlFixedLineModel : public UnoControlModel
{
protected:
- ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+ ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoControlFixedLineModel();
UnoControlFixedLineModel( const UnoControlFixedLineModel& rModel ) : UnoControlModel( rModel ) {;}
- UnoControlModel* Clone() const { return new UnoControlFixedLineModel( *this ); }
+ UnoControlModel* Clone() const { return new UnoControlFixedLineModel( *this ); }
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -1522,14 +1522,14 @@ public:
};
-// ----------------------------------------------------
-// class UnoFixedLineControl
-// ----------------------------------------------------
-class UnoFixedLineControl : public UnoControlBase
+// ----------------------------------------------------
+// class UnoFixedLineControl
+// ----------------------------------------------------
+class UnoFixedLineControl : public UnoControlBase
{
public:
UnoFixedLineControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
sal_Bool SAL_CALL isTransparent( ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/dllapi.h b/toolkit/inc/toolkit/dllapi.h
index c1dc5f48a138..7a2a4516ead7 100644
--- a/toolkit/inc/toolkit/dllapi.h
+++ b/toolkit/inc/toolkit/dllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/helper/accessibilityclient.hxx b/toolkit/inc/toolkit/helper/accessibilityclient.hxx
index beec9681aad4..8324ec674690 100644
--- a/toolkit/inc/toolkit/helper/accessibilityclient.hxx
+++ b/toolkit/inc/toolkit/helper/accessibilityclient.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/helper/accessiblefactory.hxx b/toolkit/inc/toolkit/helper/accessiblefactory.hxx
index 1362a7d4d365..e5829cce8cdc 100644
--- a/toolkit/inc/toolkit/helper/accessiblefactory.hxx
+++ b/toolkit/inc/toolkit/helper/accessiblefactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/helper/convert.hxx b/toolkit/inc/toolkit/helper/convert.hxx
index 2a7f9a46169d..4bdf510cc642 100644
--- a/toolkit/inc/toolkit/helper/convert.hxx
+++ b/toolkit/inc/toolkit/helper/convert.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,6 +65,6 @@ inline ::Rectangle VCLRectangle( const ::com::sun::star::awt::Rectangle& rAWTRec
return ::Rectangle( ::Point( rAWTRect.X, rAWTRect.Y ), ::Size( rAWTRect.Width, rAWTRect.Height ) );
}
-#endif // _TOOLKIT_HELPER_CONVERT_HXX_
+#endif // _TOOLKIT_HELPER_CONVERT_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/inc/toolkit/helper/emptyfontdescriptor.hxx b/toolkit/inc/toolkit/helper/emptyfontdescriptor.hxx
index 5f9cacd85f3b..a34a2f0daf0f 100644
--- a/toolkit/inc/toolkit/helper/emptyfontdescriptor.hxx
+++ b/toolkit/inc/toolkit/helper/emptyfontdescriptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,15 +34,15 @@
#include <com/sun/star/awt/FontUnderline.hpp>
#include <com/sun/star/awt/FontStrikeout.hpp>
-// ----------------------------------------------------
-// class EmptyFontDescriptor
-// ----------------------------------------------------
-class EmptyFontDescriptor : public ::com::sun::star::awt::FontDescriptor
+// ----------------------------------------------------
+// class EmptyFontDescriptor
+// ----------------------------------------------------
+class EmptyFontDescriptor : public ::com::sun::star::awt::FontDescriptor
{
-public:
+public:
EmptyFontDescriptor()
{
- // Not all enums are initialized correctly in FontDescriptor-CTOR because
+ // Not all enums are initialized correctly in FontDescriptor-CTOR because
// they are set to the first enum value, this is not allways the default value.
Slant = ::com::sun::star::awt::FontSlant_DONTKNOW;
Underline = ::com::sun::star::awt::FontUnderline::DONTKNOW;
diff --git a/toolkit/inc/toolkit/helper/externallock.hxx b/toolkit/inc/toolkit/helper/externallock.hxx
index 667051d409b6..e62b8df06b15 100644
--- a/toolkit/inc/toolkit/helper/externallock.hxx
+++ b/toolkit/inc/toolkit/helper/externallock.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,7 @@
#include <comphelper/accessiblecontexthelper.hxx>
// -----------------------------------------------------------------------------
-// class VCLExternalSolarLock
+// class VCLExternalSolarLock
// -----------------------------------------------------------------------------
class TOOLKIT_DLLPUBLIC VCLExternalSolarLock : public ::comphelper::IMutex
@@ -42,6 +42,6 @@ public:
virtual void release();
};
-#endif // _TOOLKIT_HELPER_EXTERNALLOCK_HXX_
+#endif // _TOOLKIT_HELPER_EXTERNALLOCK_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/inc/toolkit/helper/fixedhyperbase.hxx b/toolkit/inc/toolkit/helper/fixedhyperbase.hxx
index 4372861a7e15..6b25401de3f9 100644
--- a/toolkit/inc/toolkit/helper/fixedhyperbase.hxx
+++ b/toolkit/inc/toolkit/helper/fixedhyperbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/helper/formpdfexport.hxx b/toolkit/inc/toolkit/helper/formpdfexport.hxx
index 2bed137d0e6b..fb413d28eb5d 100644
--- a/toolkit/inc/toolkit/helper/formpdfexport.hxx
+++ b/toolkit/inc/toolkit/helper/formpdfexport.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/helper/imagealign.hxx b/toolkit/inc/toolkit/helper/imagealign.hxx
index 4dd6a019a1de..3551c314e2a2 100644
--- a/toolkit/inc/toolkit/helper/imagealign.hxx
+++ b/toolkit/inc/toolkit/helper/imagealign.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/helper/listenermultiplexer.hxx b/toolkit/inc/toolkit/helper/listenermultiplexer.hxx
index 38d7300382cd..f8d49eee27da 100644
--- a/toolkit/inc/toolkit/helper/listenermultiplexer.hxx
+++ b/toolkit/inc/toolkit/helper/listenermultiplexer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,49 +56,49 @@
#include <toolkit/helper/mutexhelper.hxx>
#include <toolkit/helper/macros.hxx>
#include <com/sun/star/awt/grid/XGridSelectionListener.hpp>
-// ----------------------------------------------------
-// class ListenerMultiplexerBase
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ListenerMultiplexerBase
+// ----------------------------------------------------
class TOOLKIT_DLLPUBLIC ListenerMultiplexerBase : public MutexHelper,
public ::cppu::OInterfaceContainerHelper,
public ::com::sun::star::uno::XInterface
{
private:
- ::cppu::OWeakObject& mrContext;
+ ::cppu::OWeakObject& mrContext;
protected:
- ::cppu::OWeakObject& GetContext() { return mrContext; }
+ ::cppu::OWeakObject& GetContext() { return mrContext; }
public:
ListenerMultiplexerBase( ::cppu::OWeakObject& rSource );
virtual ~ListenerMultiplexerBase();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { mrContext.acquire(); }
- void SAL_CALL release() throw() { mrContext.release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { mrContext.acquire(); }
+ void SAL_CALL release() throw() { mrContext.release(); }
};
-// ----------------------------------------------------
-// class EventListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class EventListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( EventListenerMultiplexer, ::com::sun::star::lang::XEventListener )
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class FocusListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class FocusListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( FocusListenerMultiplexer, ::com::sun::star::awt::XFocusListener )
void SAL_CALL focusGained( const ::com::sun::star::awt::FocusEvent& e ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL focusLost( const ::com::sun::star::awt::FocusEvent& e ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class WindowListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class WindowListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( WindowListenerMultiplexer, ::com::sun::star::awt::XWindowListener )
void SAL_CALL windowResized( const ::com::sun::star::awt::WindowEvent& e ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL windowMoved( const ::com::sun::star::awt::WindowEvent& e ) throw(::com::sun::star::uno::RuntimeException);
@@ -108,25 +108,25 @@ DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class VclContainerListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VclContainerListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( VclContainerListenerMultiplexer, ::com::sun::star::awt::XVclContainerListener )
void SAL_CALL windowAdded( const ::com::sun::star::awt::VclContainerEvent& e ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL windowRemoved( const ::com::sun::star::awt::VclContainerEvent& e ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class KeyListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class KeyListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( KeyListenerMultiplexer, ::com::sun::star::awt::XKeyListener )
void SAL_CALL keyPressed( const ::com::sun::star::awt::KeyEvent& e ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL keyReleased( const ::com::sun::star::awt::KeyEvent& e ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class MouseListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class MouseListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( MouseListenerMultiplexer, ::com::sun::star::awt::XMouseListener )
void SAL_CALL mousePressed( const ::com::sun::star::awt::MouseEvent& e ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL mouseReleased( const ::com::sun::star::awt::MouseEvent& e ) throw(::com::sun::star::uno::RuntimeException);
@@ -134,24 +134,24 @@ DECL_LISTENERMULTIPLEXER_START_DLLPUB( MouseListenerMultiplexer, ::com::sun::sta
void SAL_CALL mouseExited( const ::com::sun::star::awt::MouseEvent& e ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class MouseMotionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class MouseMotionListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( MouseMotionListenerMultiplexer, ::com::sun::star::awt::XMouseMotionListener )
void SAL_CALL mouseDragged( const ::com::sun::star::awt::MouseEvent& e ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL mouseMoved( const ::com::sun::star::awt::MouseEvent& e ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class PaintListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class PaintListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( PaintListenerMultiplexer, ::com::sun::star::awt::XPaintListener )
void SAL_CALL windowPaint( const ::com::sun::star::awt::PaintEvent& e ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class TopWindowListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TopWindowListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( TopWindowListenerMultiplexer, ::com::sun::star::awt::XTopWindowListener )
void SAL_CALL windowOpened( const ::com::sun::star::lang::EventObject& e ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL windowClosing( const ::com::sun::star::lang::EventObject& e ) throw(::com::sun::star::uno::RuntimeException);
@@ -162,39 +162,39 @@ DECL_LISTENERMULTIPLEXER_START( TopWindowListenerMultiplexer, ::com::sun::star::
void SAL_CALL windowDeactivated( const ::com::sun::star::lang::EventObject& e ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class TextListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TextListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( TextListenerMultiplexer, ::com::sun::star::awt::XTextListener )
void SAL_CALL textChanged( const ::com::sun::star::awt::TextEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class ActionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ActionListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( ActionListenerMultiplexer, ::com::sun::star::awt::XActionListener )
void SAL_CALL actionPerformed( const ::com::sun::star::awt::ActionEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class ItemListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ItemListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( ItemListenerMultiplexer, ::com::sun::star::awt::XItemListener )
void SAL_CALL itemStateChanged( const ::com::sun::star::awt::ItemEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class ContainerListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ContainerListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( ContainerListenerMultiplexer, ::com::sun::star::container::XContainerListener )
void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL elementRemoved( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL elementReplaced( const ::com::sun::star::container::ContainerEvent& Event ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class SpinListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SpinListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( SpinListenerMultiplexer, ::com::sun::star::awt::XSpinListener )
void SAL_CALL up( const ::com::sun::star::awt::SpinEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL down( const ::com::sun::star::awt::SpinEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
@@ -202,16 +202,16 @@ DECL_LISTENERMULTIPLEXER_START_DLLPUB( SpinListenerMultiplexer, ::com::sun::star
void SAL_CALL last( const ::com::sun::star::awt::SpinEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class AdjustmentListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class AdjustmentListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( AdjustmentListenerMultiplexer, ::com::sun::star::awt::XAdjustmentListener )
void SAL_CALL adjustmentValueChanged( const ::com::sun::star::awt::AdjustmentEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class MenuListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class MenuListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START( MenuListenerMultiplexer, ::com::sun::star::awt::XMenuListener )
void SAL_CALL highlight( const ::com::sun::star::awt::MenuEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
void SAL_CALL select( const ::com::sun::star::awt::MenuEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
@@ -219,16 +219,16 @@ DECL_LISTENERMULTIPLEXER_START( MenuListenerMultiplexer, ::com::sun::star::awt::
void SAL_CALL deactivate( const ::com::sun::star::awt::MenuEvent& rEvent ) throw(::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class TreeSelectionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TreeSelectionListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( TreeSelectionListenerMultiplexer, ::com::sun::star::view::XSelectionChangeListener )
virtual void SAL_CALL selectionChanged( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class TreeExpansionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TreeExpansionListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( TreeExpansionListenerMultiplexer, ::com::sun::star::awt::tree::XTreeExpansionListener )
virtual void SAL_CALL requestChildNodes( const ::com::sun::star::awt::tree::TreeExpansionEvent& aEvent ) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL treeExpanding( const ::com::sun::star::awt::tree::TreeExpansionEvent& aEvent ) throw (::com::sun::star::awt::tree::ExpandVetoException, ::com::sun::star::uno::RuntimeException);
@@ -237,17 +237,17 @@ DECL_LISTENERMULTIPLEXER_START_DLLPUB( TreeExpansionListenerMultiplexer, ::com::
virtual void SAL_CALL treeCollapsed( const ::com::sun::star::awt::tree::TreeExpansionEvent& aEvent ) throw (::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class TreeEditListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TreeEditListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( TreeEditListenerMultiplexer, ::com::sun::star::awt::tree::XTreeEditListener )
virtual void SAL_CALL nodeEditing( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeNode >& Node ) throw (::com::sun::star::uno::RuntimeException,::com::sun::star::util::VetoException);
virtual void SAL_CALL nodeEdited( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::tree::XTreeNode >& Node, const ::rtl::OUString& NewText ) throw (::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
-// ----------------------------------------------------
-// class SelectionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SelectionListenerMultiplexer
+// ----------------------------------------------------
DECL_LISTENERMULTIPLEXER_START_DLLPUB( SelectionListenerMultiplexer, ::com::sun::star::awt::grid::XGridSelectionListener )
void SAL_CALL selectionChanged( const ::com::sun::star::awt::grid::GridSelectionEvent& aEvent ) throw (::com::sun::star::uno::RuntimeException);
DECL_LISTENERMULTIPLEXER_END
diff --git a/toolkit/inc/toolkit/helper/macros.hxx b/toolkit/inc/toolkit/helper/macros.hxx
index 9fac9cb14582..65c0cbf7d70d 100644
--- a/toolkit/inc/toolkit/helper/macros.hxx
+++ b/toolkit/inc/toolkit/helper/macros.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,7 +93,7 @@ ClassName* ClassName::GetImplementation( const ::com::sun::star::uno::Reference<
// -------------------------------------------------------------------------------------
-#define IMPL_IMPLEMENTATION_ID( ClassName ) \
+#define IMPL_IMPLEMENTATION_ID( ClassName ) \
::com::sun::star::uno::Sequence< sal_Int8 > ClassName::getImplementationId() throw(::com::sun::star::uno::RuntimeException) \
{ \
static ::cppu::OImplementationId* pId = NULL; \
@@ -109,7 +109,7 @@ ClassName* ClassName::GetImplementation( const ::com::sun::star::uno::Reference<
return (*pId).getImplementationId(); \
}
-#define IMPL_XTYPEPROVIDER_START( ClassName ) \
+#define IMPL_XTYPEPROVIDER_START( ClassName ) \
IMPL_IMPLEMENTATION_ID( ClassName ) \
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > ClassName::getTypes() throw(::com::sun::star::uno::RuntimeException) \
{ \
@@ -139,10 +139,10 @@ class ClassName : public ListenerMultiplexerBase, public InterfaceName \
{ \
public: \
ClassName( ::cppu::OWeakObject& rSource ); \
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); \
- void SAL_CALL acquire() throw() { ListenerMultiplexerBase::acquire(); } \
- void SAL_CALL release() throw() { ListenerMultiplexerBase::release(); } \
- void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); \
+ void SAL_CALL acquire() throw() { ListenerMultiplexerBase::acquire(); } \
+ void SAL_CALL release() throw() { ListenerMultiplexerBase::release(); } \
+ void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
// -------------------------------------------------------------------------------------
@@ -151,10 +151,10 @@ class TOOLKIT_DLLPUBLIC ClassName : public ListenerMultiplexerBase, public Inter
{ \
public: \
ClassName( ::cppu::OWeakObject& rSource ); \
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); \
- void SAL_CALL acquire() throw() { ListenerMultiplexerBase::acquire(); } \
- void SAL_CALL release() throw() { ListenerMultiplexerBase::release(); } \
- void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); \
+ void SAL_CALL acquire() throw() { ListenerMultiplexerBase::acquire(); } \
+ void SAL_CALL release() throw() { ListenerMultiplexerBase::release(); } \
+ void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
// -------------------------------------------------------------------------------------
@@ -242,7 +242,7 @@ IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_BODY( ClassName, InterfaceName, MethodNa
#define DECLIMPL_SERVICEINFO_DERIVED( ImplName, BaseClass, ServiceName ) \
::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) { return ::rtl::OUString::createFromAscii( "stardiv.Toolkit." #ImplName ); } \
- ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
{ \
::com::sun::star::uno::Sequence< ::rtl::OUString > aNames = BaseClass::getSupportedServiceNames( ); \
aNames.realloc( aNames.getLength() + 1 ); \
@@ -254,7 +254,7 @@ IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_BODY( ClassName, InterfaceName, MethodNa
#define DECLIMPL_SERVICEINFO( ImplName, ServiceName ) \
::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) { return ::rtl::OUString::createFromAscii( "stardiv.Toolkit." #ImplName ); } \
- ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
{ \
::com::sun::star::uno::Sequence< ::rtl::OUString > aNames( 1 ); \
aNames[ 0 ] = ::rtl::OUString::createFromAscii( ServiceName ); \
diff --git a/toolkit/inc/toolkit/helper/mutexandbroadcasthelper.hxx b/toolkit/inc/toolkit/helper/mutexandbroadcasthelper.hxx
index f9d5eec31a2b..55fd55c01381 100644
--- a/toolkit/inc/toolkit/helper/mutexandbroadcasthelper.hxx
+++ b/toolkit/inc/toolkit/helper/mutexandbroadcasthelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,17 +35,17 @@
// Helper class with Mutex and BroadcastHelper, because they must be
// initialized before calling the OPropertySetHelper-CTOR
-class MutexAndBroadcastHelper
+class MutexAndBroadcastHelper
{
public:
MutexAndBroadcastHelper() : BrdcstHelper( Mutex ) {}
-
- ::osl::Mutex Mutex;
- ::cppu::OBroadcastHelper BrdcstHelper;
-
- ::osl::Mutex& GetMutex() { return Mutex; }
-
+
+ ::osl::Mutex Mutex;
+ ::cppu::OBroadcastHelper BrdcstHelper;
+
+ ::osl::Mutex& GetMutex() { return Mutex; }
+
};
@@ -53,7 +53,7 @@ public:
-#endif // _TOOLKIT_HELPER_MUTEXANDBROADCASTHELPER_HXX
+#endif // _TOOLKIT_HELPER_MUTEXANDBROADCASTHELPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/inc/toolkit/helper/mutexhelper.hxx b/toolkit/inc/toolkit/helper/mutexhelper.hxx
index d1cd5e258dbd..eab1cb1c7c3c 100644
--- a/toolkit/inc/toolkit/helper/mutexhelper.hxx
+++ b/toolkit/inc/toolkit/helper/mutexhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,11 +31,11 @@
#include <osl/mutex.hxx>
-// ----------------------------------------------------
-// class MutexHelper
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class MutexHelper
+// ----------------------------------------------------
-class MutexHelper
+class MutexHelper
{
private:
::osl::Mutex maMutex;
diff --git a/toolkit/inc/toolkit/helper/property.hxx b/toolkit/inc/toolkit/helper/property.hxx
index 611384b89d22..3ca2fdd8b9d8 100644
--- a/toolkit/inc/toolkit/helper/property.hxx
+++ b/toolkit/inc/toolkit/helper/property.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,102 +46,102 @@ namespace rtl {
}
-#define BASEPROPERTY_NOTFOUND 0
-
-#define BASEPROPERTY_TEXT 1 // ::rtl::OUString
-#define BASEPROPERTY_BACKGROUNDCOLOR 2 // sal_Int32
-#define BASEPROPERTY_FILLCOLOR 3 // sal_Int32
-#define BASEPROPERTY_TEXTCOLOR 4 // sal_Int32
-#define BASEPROPERTY_LINECOLOR 5 // sal_Int32
-#define BASEPROPERTY_BORDER 6 // sal_Int16
-#define BASEPROPERTY_ALIGN 7 // sal_Int16
-#define BASEPROPERTY_FONTDESCRIPTOR 8 // ::com::sun::star::awt::FontDescriptor, war mal Font, aber nie gespeichert...
-#define BASEPROPERTY_DROPDOWN 9 // sal_Bool
-#define BASEPROPERTY_MULTILINE 10 // sal_Bool
-#define BASEPROPERTY_STRINGITEMLIST 11 // UStringSequence
-#define BASEPROPERTY_HSCROLL 12 // sal_Bool
-#define BASEPROPERTY_VSCROLL 13 // sal_Bool
-#define BASEPROPERTY_TABSTOP 14 // sal_Bool
-#define BASEPROPERTY_STATE 15 // sal_Int16
-#define BASEPROPERTY_FONT_TYPE 16 // OLD: Font_Type
-#define BASEPROPERTY_FONT_SIZE 17 // OLD: Font_Size
-#define BASEPROPERTY_FONT_ATTRIBS 18 // OLD: Font_Attribs
-#define BASEPROPERTY_DEFAULTCONTROL 19 // ::rtl::OUString (ServiceName)
-#define BASEPROPERTY_LABEL 20 // ::rtl::OUString
-#define BASEPROPERTY_LINECOUNT 21 // sal_Int16
-#define BASEPROPERTY_EXTDATEFORMAT 22 // sal_Int16
-#define BASEPROPERTY_DATESHOWCENTURY 23 // sal_Bool
-#define BASEPROPERTY_EXTTIMEFORMAT 24 // sal_Int16
-#define BASEPROPERTY_NUMSHOWTHOUSANDSEP 25 // sal_Bool
-#define BASEPROPERTY_CURRENCYSYMBOL 26 // ::rtl::OUString
-#define BASEPROPERTY_SPIN 27 // sal_Bool
-#define BASEPROPERTY_STRICTFORMAT 28 // sal_Bool
-#define BASEPROPERTY_DECIMALACCURACY 29 // sal_Int16
-#define BASEPROPERTY_DATE 30 // sal_Int32
-#define BASEPROPERTY_DATEMIN 31 // sal_Int32
-#define BASEPROPERTY_DATEMAX 32 // sal_Int32
-#define BASEPROPERTY_TIME 33 // sal_Int32
-#define BASEPROPERTY_TIMEMIN 34 // sal_Int32
-#define BASEPROPERTY_TIMEMAX 35 // sal_Int32
-#define BASEPROPERTY_VALUE_INT32 36 // sal_Int32
-#define BASEPROPERTY_VALUEMIN_INT32 37 // sal_Int32
-#define BASEPROPERTY_VALUEMAX_INT32 38 // sal_Int32
-#define BASEPROPERTY_VALUESTEP_INT32 39 // sal_Int32
-#define BASEPROPERTY_EDITMASK 40 // ::rtl::OUString
-#define BASEPROPERTY_LITERALMASK 41 // ::rtl::OUString
-#define BASEPROPERTY_IMAGEURL 42 // ::rtl::OUString
-#define BASEPROPERTY_READONLY 43 // sal_Bool
-#define BASEPROPERTY_ENABLED 44 // sal_Bool
-#define BASEPROPERTY_PRINTABLE 45 // sal_Bool
-#define BASEPROPERTY_ECHOCHAR 46 // sal_Int16
-#define BASEPROPERTY_MAXTEXTLEN 47 // sal_Int16
-#define BASEPROPERTY_HARDLINEBREAKS 48 // sal_Int16
-#define BASEPROPERTY_AUTOCOMPLETE 49 // sal_Bool
-#define BASEPROPERTY_MULTISELECTION 50 // sal_Bool
-#define BASEPROPERTY_SELECTEDITEMS 51 // INT16Sequence
-#define BASEPROPERTY_VALUE_DOUBLE 52 // DOUBLE
-#define BASEPROPERTY_VALUEMIN_DOUBLE 53 // DOUBLE
-#define BASEPROPERTY_VALUEMAX_DOUBLE 54 // DOUBLE
-#define BASEPROPERTY_VALUESTEP_DOUBLE 55 // DOUBLE
-#define BASEPROPERTY_TRISTATE 56 // sal_Bool
-#define BASEPROPERTY_DEFAULTBUTTON 57 // sal_Bool
-#define BASEPROPERTY_HELPURL 58 // ::rtl::OUString
-#define BASEPROPERTY_AUTOTOGGLE 59 // sal_Bool
-//#define BASEPROPERTY_FOCUSSELECTIONHIDE 60 // sal_Bool
-#define BASEPROPERTY_FORMATKEY 61 // sal_Bool
-#define BASEPROPERTY_FORMATSSUPPLIER 62 // ::com::sun::star::util::XNumberFormatsSupplier
-#define BASEPROPERTY_EFFECTIVE_VALUE 63 // Any (double or string)
-#define BASEPROPERTY_TREATASNUMBER 64 // sal_Bool
-#define BASEPROPERTY_EFFECTIVE_DEFAULT 65 // Any (double or string)
-#define BASEPROPERTY_EFFECTIVE_MIN 66 // Double
-#define BASEPROPERTY_EFFECTIVE_MAX 67 // Double
-#define BASEPROPERTY_CURSYM_POSITION 68 // sal_Bool
-#define BASEPROPERTY_TITLE 69 // ::rtl::OUString
-#define BASEPROPERTY_MOVEABLE 70 // sal_Bool
-#define BASEPROPERTY_CLOSEABLE 71 // sal_Bool
-#define BASEPROPERTY_SIZEABLE 72 // sal_Bool
-#define BASEPROPERTY_HELPTEXT 73 // ::rtl::OUString
-#define BASEPROPERTY_PROGRESSVALUE 74 // sal_Int32
-#define BASEPROPERTY_PROGRESSVALUE_MIN 75 // sal_Int32
-#define BASEPROPERTY_PROGRESSVALUE_MAX 76 // sal_Int32
-#define BASEPROPERTY_SCROLLVALUE 77 // sal_Int32
-#define BASEPROPERTY_SCROLLVALUE_MAX 78 // sal_Int32
-#define BASEPROPERTY_LINEINCREMENT 79 // sal_Int32
-#define BASEPROPERTY_BLOCKINCREMENT 80 // sal_Int32
-#define BASEPROPERTY_VISIBLESIZE 81 // sal_Int32
-#define BASEPROPERTY_ORIENTATION 82 // sal_Int32
-#define BASEPROPERTY_FONTRELIEF 83 // sal_Int16
-#define BASEPROPERTY_FONTEMPHASISMARK 84 // sal_Int16
-#define BASEPROPERTY_TEXTLINECOLOR 85 // sal_Int32
-#define BASEPROPERTY_IMAGEALIGN 86 // sal_Int16
-#define BASEPROPERTY_SCALEIMAGE 87 // sal_Bool
-#define BASEPROPERTY_PUSHBUTTONTYPE 88 // sal_Int16
-#define BASEPROPERTY_DISPLAYBACKGROUNDCOLOR 89 // sal_Int32
-#define BASEPROPERTY_AUTOMNEMONICS 90 // sal_Bool
-#define BASEPROPERTY_MOUSETRANSPARENT 91 // sal_Bool
+#define BASEPROPERTY_NOTFOUND 0
+
+#define BASEPROPERTY_TEXT 1 // ::rtl::OUString
+#define BASEPROPERTY_BACKGROUNDCOLOR 2 // sal_Int32
+#define BASEPROPERTY_FILLCOLOR 3 // sal_Int32
+#define BASEPROPERTY_TEXTCOLOR 4 // sal_Int32
+#define BASEPROPERTY_LINECOLOR 5 // sal_Int32
+#define BASEPROPERTY_BORDER 6 // sal_Int16
+#define BASEPROPERTY_ALIGN 7 // sal_Int16
+#define BASEPROPERTY_FONTDESCRIPTOR 8 // ::com::sun::star::awt::FontDescriptor, war mal Font, aber nie gespeichert...
+#define BASEPROPERTY_DROPDOWN 9 // sal_Bool
+#define BASEPROPERTY_MULTILINE 10 // sal_Bool
+#define BASEPROPERTY_STRINGITEMLIST 11 // UStringSequence
+#define BASEPROPERTY_HSCROLL 12 // sal_Bool
+#define BASEPROPERTY_VSCROLL 13 // sal_Bool
+#define BASEPROPERTY_TABSTOP 14 // sal_Bool
+#define BASEPROPERTY_STATE 15 // sal_Int16
+#define BASEPROPERTY_FONT_TYPE 16 // OLD: Font_Type
+#define BASEPROPERTY_FONT_SIZE 17 // OLD: Font_Size
+#define BASEPROPERTY_FONT_ATTRIBS 18 // OLD: Font_Attribs
+#define BASEPROPERTY_DEFAULTCONTROL 19 // ::rtl::OUString (ServiceName)
+#define BASEPROPERTY_LABEL 20 // ::rtl::OUString
+#define BASEPROPERTY_LINECOUNT 21 // sal_Int16
+#define BASEPROPERTY_EXTDATEFORMAT 22 // sal_Int16
+#define BASEPROPERTY_DATESHOWCENTURY 23 // sal_Bool
+#define BASEPROPERTY_EXTTIMEFORMAT 24 // sal_Int16
+#define BASEPROPERTY_NUMSHOWTHOUSANDSEP 25 // sal_Bool
+#define BASEPROPERTY_CURRENCYSYMBOL 26 // ::rtl::OUString
+#define BASEPROPERTY_SPIN 27 // sal_Bool
+#define BASEPROPERTY_STRICTFORMAT 28 // sal_Bool
+#define BASEPROPERTY_DECIMALACCURACY 29 // sal_Int16
+#define BASEPROPERTY_DATE 30 // sal_Int32
+#define BASEPROPERTY_DATEMIN 31 // sal_Int32
+#define BASEPROPERTY_DATEMAX 32 // sal_Int32
+#define BASEPROPERTY_TIME 33 // sal_Int32
+#define BASEPROPERTY_TIMEMIN 34 // sal_Int32
+#define BASEPROPERTY_TIMEMAX 35 // sal_Int32
+#define BASEPROPERTY_VALUE_INT32 36 // sal_Int32
+#define BASEPROPERTY_VALUEMIN_INT32 37 // sal_Int32
+#define BASEPROPERTY_VALUEMAX_INT32 38 // sal_Int32
+#define BASEPROPERTY_VALUESTEP_INT32 39 // sal_Int32
+#define BASEPROPERTY_EDITMASK 40 // ::rtl::OUString
+#define BASEPROPERTY_LITERALMASK 41 // ::rtl::OUString
+#define BASEPROPERTY_IMAGEURL 42 // ::rtl::OUString
+#define BASEPROPERTY_READONLY 43 // sal_Bool
+#define BASEPROPERTY_ENABLED 44 // sal_Bool
+#define BASEPROPERTY_PRINTABLE 45 // sal_Bool
+#define BASEPROPERTY_ECHOCHAR 46 // sal_Int16
+#define BASEPROPERTY_MAXTEXTLEN 47 // sal_Int16
+#define BASEPROPERTY_HARDLINEBREAKS 48 // sal_Int16
+#define BASEPROPERTY_AUTOCOMPLETE 49 // sal_Bool
+#define BASEPROPERTY_MULTISELECTION 50 // sal_Bool
+#define BASEPROPERTY_SELECTEDITEMS 51 // INT16Sequence
+#define BASEPROPERTY_VALUE_DOUBLE 52 // DOUBLE
+#define BASEPROPERTY_VALUEMIN_DOUBLE 53 // DOUBLE
+#define BASEPROPERTY_VALUEMAX_DOUBLE 54 // DOUBLE
+#define BASEPROPERTY_VALUESTEP_DOUBLE 55 // DOUBLE
+#define BASEPROPERTY_TRISTATE 56 // sal_Bool
+#define BASEPROPERTY_DEFAULTBUTTON 57 // sal_Bool
+#define BASEPROPERTY_HELPURL 58 // ::rtl::OUString
+#define BASEPROPERTY_AUTOTOGGLE 59 // sal_Bool
+//#define BASEPROPERTY_FOCUSSELECTIONHIDE 60 // sal_Bool
+#define BASEPROPERTY_FORMATKEY 61 // sal_Bool
+#define BASEPROPERTY_FORMATSSUPPLIER 62 // ::com::sun::star::util::XNumberFormatsSupplier
+#define BASEPROPERTY_EFFECTIVE_VALUE 63 // Any (double or string)
+#define BASEPROPERTY_TREATASNUMBER 64 // sal_Bool
+#define BASEPROPERTY_EFFECTIVE_DEFAULT 65 // Any (double or string)
+#define BASEPROPERTY_EFFECTIVE_MIN 66 // Double
+#define BASEPROPERTY_EFFECTIVE_MAX 67 // Double
+#define BASEPROPERTY_CURSYM_POSITION 68 // sal_Bool
+#define BASEPROPERTY_TITLE 69 // ::rtl::OUString
+#define BASEPROPERTY_MOVEABLE 70 // sal_Bool
+#define BASEPROPERTY_CLOSEABLE 71 // sal_Bool
+#define BASEPROPERTY_SIZEABLE 72 // sal_Bool
+#define BASEPROPERTY_HELPTEXT 73 // ::rtl::OUString
+#define BASEPROPERTY_PROGRESSVALUE 74 // sal_Int32
+#define BASEPROPERTY_PROGRESSVALUE_MIN 75 // sal_Int32
+#define BASEPROPERTY_PROGRESSVALUE_MAX 76 // sal_Int32
+#define BASEPROPERTY_SCROLLVALUE 77 // sal_Int32
+#define BASEPROPERTY_SCROLLVALUE_MAX 78 // sal_Int32
+#define BASEPROPERTY_LINEINCREMENT 79 // sal_Int32
+#define BASEPROPERTY_BLOCKINCREMENT 80 // sal_Int32
+#define BASEPROPERTY_VISIBLESIZE 81 // sal_Int32
+#define BASEPROPERTY_ORIENTATION 82 // sal_Int32
+#define BASEPROPERTY_FONTRELIEF 83 // sal_Int16
+#define BASEPROPERTY_FONTEMPHASISMARK 84 // sal_Int16
+#define BASEPROPERTY_TEXTLINECOLOR 85 // sal_Int32
+#define BASEPROPERTY_IMAGEALIGN 86 // sal_Int16
+#define BASEPROPERTY_SCALEIMAGE 87 // sal_Bool
+#define BASEPROPERTY_PUSHBUTTONTYPE 88 // sal_Int16
+#define BASEPROPERTY_DISPLAYBACKGROUNDCOLOR 89 // sal_Int32
+#define BASEPROPERTY_AUTOMNEMONICS 90 // sal_Bool
+#define BASEPROPERTY_MOUSETRANSPARENT 91 // sal_Bool
#define BASEPROPERTY_ACCESSIBLENAME 92 // ::rtl::OUString
-#define BASEPROPERTY_PLUGINPARENT 93 // sal_Int64
-#define BASEPROPERTY_SCROLLVALUE_MIN 94 // sal_Int32
+#define BASEPROPERTY_PLUGINPARENT 93 // sal_Int64
+#define BASEPROPERTY_SCROLLVALUE_MIN 94 // sal_Int32
#define BASEPROPERTY_REPEAT_DELAY 95 // sal_Int32
#define BASEPROPERTY_SYMBOL_COLOR 96 // sal_Int32
#define BASEPROPERTY_SPINVALUE 97 // sal_Int32
@@ -168,20 +168,20 @@ namespace rtl {
#define BASEPROPERTY_STEP_TIME 118 // sal_Int32
#define BASEPROPERTY_DECORATION 119 // sal_Bool
#define BASEPROPERTY_PAINTTRANSPARENT 120 // sal_Bool
-#define BASEPROPERTY_AUTOHSCROLL 121 // sal_Bool
+#define BASEPROPERTY_AUTOHSCROLL 121 // sal_Bool
#define BASEPROPERTY_AUTOVSCROLL 122 // sal_Bool
#define BASEPROPERTY_DESKTOP_AS_PARENT 123 // sal_Bool
-#define BASEPROPERTY_TREE_START 124
-#define BASEPROPERTY_TREE_SELECTIONTYPE 124
-#define BASEPROPERTY_TREE_EDITABLE 125
-#define BASEPROPERTY_TREE_DATAMODEL 126
-#define BASEPROPERTY_TREE_ROOTDISPLAYED 127
-#define BASEPROPERTY_TREE_SHOWSHANDLES 128
-#define BASEPROPERTY_TREE_SHOWSROOTHANDLES 129
-#define BASEPROPERTY_TREE_ROWHEIGHT 130
-#define BASEPROPERTY_TREE_INVOKESSTOPNODEEDITING 131
-#define BASEPROPERTY_TREE_END 131
-#define BASEPROPERTY_DIALOGSOURCEURL 132
+#define BASEPROPERTY_TREE_START 124
+#define BASEPROPERTY_TREE_SELECTIONTYPE 124
+#define BASEPROPERTY_TREE_EDITABLE 125
+#define BASEPROPERTY_TREE_DATAMODEL 126
+#define BASEPROPERTY_TREE_ROOTDISPLAYED 127
+#define BASEPROPERTY_TREE_SHOWSHANDLES 128
+#define BASEPROPERTY_TREE_SHOWSROOTHANDLES 129
+#define BASEPROPERTY_TREE_ROWHEIGHT 130
+#define BASEPROPERTY_TREE_INVOKESSTOPNODEEDITING 131
+#define BASEPROPERTY_TREE_END 131
+#define BASEPROPERTY_DIALOGSOURCEURL 132
#define BASEPROPERTY_NOLABEL 133 // ::rtl::OUString added for issue79712
#define BASEPROPERTY_URL 134 // ::rtl::OUString
#define BASEPROPERTY_UNIT 135 // ::awt::FieldUnit
@@ -200,48 +200,48 @@ namespace rtl {
#define BASEPROPERTY_HIGHCONTRASTMODE 147
#define BASEPROPERTY_GRID_EVEN_ROW_BACKGROUND 148
#define BASEPROPERTY_GRID_HEADER_BACKGROUND 149
-#define BASEPROPERTY_GRID_LINE_COLOR 150
-#define BASEPROPERTY_GRID_ROW_BACKGROUND 151
+#define BASEPROPERTY_GRID_LINE_COLOR 150
+#define BASEPROPERTY_GRID_ROW_BACKGROUND 151
#define BASEPROPERTY_MULTISELECTION_SIMPLEMODE 152
#define BASEPROPERTY_ITEM_SEPARATOR_POS 153
#define BASEPROPERTY_GROUPNAME 154 // ::rtl::OUString
// Keine gebundenen Properties, werden immer aus der Property BASEPROPERTY_FONTDESCRIPTOR entnommen.
-#define BASEPROPERTY_FONTDESCRIPTORPART_START 1000
-#define BASEPROPERTY_FONTDESCRIPTORPART_NAME 1000 // ::rtl::OUString, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_STYLENAME 1001 // ::rtl::OUString, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_FAMILY 1002 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_CHARSET 1003 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_HEIGHT 1004 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_WEIGHT 1005 // Float, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_SLANT 1006 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_UNDERLINE 1007 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_STRIKEOUT 1008 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_WIDTH 1009 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_PITCH 1010 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_CHARWIDTH 1011 // Float, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_ORIENTATION 1012 // Float, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_KERNING 1013 // sal_Bool, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_WORDLINEMODE 1014 // sal_Bool, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_TYPE 1015 // sal_Int16, not bound
-#define BASEPROPERTY_FONTDESCRIPTORPART_END 1015
-
-#define PROPERTY_ALIGN_LEFT 0
-#define PROPERTY_ALIGN_CENTER 1
-#define PROPERTY_ALIGN_RIGHT 2
-
-#define PROPERTY_STATE_OFF 0
-#define PROPERTY_STATE_ON 1
-#define PROPERTY_STATE_DONTCARE 2
-
-TOOLKIT_DLLPUBLIC sal_uInt16 GetPropertyId( const ::rtl::OUString& rPropertyName );
-const ::com::sun::star::uno::Type* GetPropertyType( sal_uInt16 nPropertyId );
-TOOLKIT_DLLPUBLIC const ::rtl::OUString& GetPropertyName( sal_uInt16 nPropertyId );
-sal_Int16 GetPropertyAttribs( sal_uInt16 nPropertyId );
-sal_uInt16 GetPropertyOrderNr( sal_uInt16 nPropertyId );
-sal_Bool DoesDependOnOthers( sal_uInt16 nPropertyId );
-sal_Bool CompareProperties( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 );
+#define BASEPROPERTY_FONTDESCRIPTORPART_START 1000
+#define BASEPROPERTY_FONTDESCRIPTORPART_NAME 1000 // ::rtl::OUString, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_STYLENAME 1001 // ::rtl::OUString, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_FAMILY 1002 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_CHARSET 1003 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_HEIGHT 1004 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_WEIGHT 1005 // Float, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_SLANT 1006 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_UNDERLINE 1007 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_STRIKEOUT 1008 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_WIDTH 1009 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_PITCH 1010 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_CHARWIDTH 1011 // Float, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_ORIENTATION 1012 // Float, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_KERNING 1013 // sal_Bool, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_WORDLINEMODE 1014 // sal_Bool, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_TYPE 1015 // sal_Int16, not bound
+#define BASEPROPERTY_FONTDESCRIPTORPART_END 1015
+
+#define PROPERTY_ALIGN_LEFT 0
+#define PROPERTY_ALIGN_CENTER 1
+#define PROPERTY_ALIGN_RIGHT 2
+
+#define PROPERTY_STATE_OFF 0
+#define PROPERTY_STATE_ON 1
+#define PROPERTY_STATE_DONTCARE 2
+
+TOOLKIT_DLLPUBLIC sal_uInt16 GetPropertyId( const ::rtl::OUString& rPropertyName );
+const ::com::sun::star::uno::Type* GetPropertyType( sal_uInt16 nPropertyId );
+TOOLKIT_DLLPUBLIC const ::rtl::OUString& GetPropertyName( sal_uInt16 nPropertyId );
+sal_Int16 GetPropertyAttribs( sal_uInt16 nPropertyId );
+sal_uInt16 GetPropertyOrderNr( sal_uInt16 nPropertyId );
+sal_Bool DoesDependOnOthers( sal_uInt16 nPropertyId );
+sal_Bool CompareProperties( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 );
diff --git a/toolkit/inc/toolkit/helper/servicenames.hxx b/toolkit/inc/toolkit/helper/servicenames.hxx
index 9b13eb07c21d..4067cd0998af 100644
--- a/toolkit/inc/toolkit/helper/servicenames.hxx
+++ b/toolkit/inc/toolkit/helper/servicenames.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/inc/toolkit/helper/throbberimpl.hxx b/toolkit/inc/toolkit/helper/throbberimpl.hxx
index eab9eb76aa53..42f104c51bbc 100644
--- a/toolkit/inc/toolkit/helper/throbberimpl.hxx
+++ b/toolkit/inc/toolkit/helper/throbberimpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ namespace toolkit
class Throbber_Impl
{
private:
- osl::SolarMutex& mrMutex; // Reference to SolarMutex
+ osl::SolarMutex& mrMutex; // Reference to SolarMutex
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > > maImageList;
::com::sun::star::uno::Reference< VCLXWindow > mxParent;
@@ -56,7 +56,7 @@ namespace toolkit
DECL_LINK( TimeOutHdl, Throbber_Impl* );
- osl::SolarMutex& GetMutex() { return mrMutex; }
+ osl::SolarMutex& GetMutex() { return mrMutex; }
public:
Throbber_Impl( ::com::sun::star::uno::Reference< VCLXWindow > xParent,
diff --git a/toolkit/inc/toolkit/helper/tkresmgr.hxx b/toolkit/inc/toolkit/helper/tkresmgr.hxx
index 9d04fab909b4..90e21c94736b 100644
--- a/toolkit/inc/toolkit/helper/tkresmgr.hxx
+++ b/toolkit/inc/toolkit/helper/tkresmgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ private:
TkResMgr() { }
~TkResMgr() { }
- // we'll instantiate one static member of the following class,
+ // we'll instantiate one static member of the following class,
// which in it's dtor ensures that m_pSimpleResMgr will be deleted
class EnsureDelete
{
diff --git a/toolkit/inc/toolkit/helper/unomemorystream.hxx b/toolkit/inc/toolkit/helper/unomemorystream.hxx
index 7cfeae03d8b1..1e0438186fab 100644
--- a/toolkit/inc/toolkit/helper/unomemorystream.hxx
+++ b/toolkit/inc/toolkit/helper/unomemorystream.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,35 +36,35 @@
#include <tools/stream.hxx>
-// ----------------------------------------------------
-// class UNOMEMORYSTREAM
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UNOMEMORYSTREAM
+// ----------------------------------------------------
-class UnoMemoryStream : public SvMemoryStream,
+class UnoMemoryStream : public SvMemoryStream,
public ::com::sun::star::io::XInputStream,
public ::cppu::OWeakObject
{
private:
- ::osl::Mutex maMutex;
+ ::osl::Mutex maMutex;
protected:
- ::osl::Mutex& GetMutex() { return maMutex; }
+ ::osl::Mutex& GetMutex() { return maMutex; }
-public:
+public:
UnoMemoryStream( sal_uInt32 nInitSize = 0x3FFF, sal_uInt32 nResize = 0x3FFFF );
-
+
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::io::XInputStream
- sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- sal_Int32 SAL_CALL readSomeBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- sal_Int32 SAL_CALL available( ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
- void SAL_CALL closeInput( ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ sal_Int32 SAL_CALL readSomeBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ sal_Int32 SAL_CALL available( ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
+ void SAL_CALL closeInput( ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
};
diff --git a/toolkit/inc/toolkit/helper/unopropertyarrayhelper.hxx b/toolkit/inc/toolkit/helper/unopropertyarrayhelper.hxx
index c109528beed9..c690743a93c8 100644
--- a/toolkit/inc/toolkit/helper/unopropertyarrayhelper.hxx
+++ b/toolkit/inc/toolkit/helper/unopropertyarrayhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,21 +37,21 @@
#include <list>
#include "toolkit/dllapi.h"
-// ----------------------------------------------------
-// class UnoPropertyArrayHelper
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoPropertyArrayHelper
+// ----------------------------------------------------
class TOOLKIT_DLLPUBLIC UnoPropertyArrayHelper : public ::cppu::IPropertyArrayHelper
{
-private:
- Table maIDs;
+private:
+ Table maIDs;
protected:
- sal_Bool ImplHasProperty( sal_uInt16 nPropId ) const;
+ sal_Bool ImplHasProperty( sal_uInt16 nPropId ) const;
public:
UnoPropertyArrayHelper( const ::com::sun::star::uno::Sequence<sal_Int32>& rIDs );
UnoPropertyArrayHelper( const std::list< sal_uInt16 > &rIDs );
-
+
// ::cppu::IPropertyArrayHelper
sal_Bool SAL_CALL fillPropertyMembersByHandle( ::rtl::OUString * pPropName, sal_Int16 * pAttributes, sal_Int32 nHandle );
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > SAL_CALL getProperties();
diff --git a/toolkit/inc/toolkit/helper/unowrapper.hxx b/toolkit/inc/toolkit/helper/unowrapper.hxx
index 75bb4b6dcab9..fc796650442b 100644
--- a/toolkit/inc/toolkit/helper/unowrapper.hxx
+++ b/toolkit/inc/toolkit/helper/unowrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,9 +38,9 @@
#include <vcl/unowrap.hxx>
#include <vcl/window.hxx>
-// ----------------------------------------------------
-// class UnoWrapper
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoWrapper
+// ----------------------------------------------------
class UnoWrapper : public UnoWrapperBase
{
@@ -48,39 +48,39 @@ private:
::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit> mxToolkit;
::toolkit::AccessibilityClient maAccessibleFactoryAccess;
-public:
+public:
UnoWrapper( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit>& rxToolkit );
-
+
virtual void Destroy();
-
+
// Toolkit
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit> GetVCLToolkit();
// Graphics
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics> CreateGraphics( OutputDevice* pOutDev );
- virtual void ReleaseAllGraphics( OutputDevice* pOutDev );
-
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics> CreateGraphics( OutputDevice* pOutDev );
+ virtual void ReleaseAllGraphics( OutputDevice* pOutDev );
+
// Window
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> GetWindowInterface( Window* pWindow, sal_Bool bCreate );
- virtual void SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> xIFace );
+ virtual void SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> xIFace );
- void WindowDestroyed( Window* pWindow );
- void WindowEvent_Move( Window* pWindow );
- void WindowEvent_Resize( Window* pWindow );
- void WindowEvent_Show( Window* pWindow, BOOL bShow );
- void WindowEvent_Close( Window* pWindow );
- void WindowEvent_Minimize( Window* pWindow );
- void WindowEvent_Normalize( Window* pWindow );
- void WindowEvent_Activate( Window* pWindow, BOOL bActivated );
- void WindowEvent_MouseButtonUp( Window* pWindow, const MouseEvent& rEvt );
- void WindowEvent_MouseButtonDown( Window* pWindow, const MouseEvent& rEvt );
- void WindowEvent_MouseMove( Window* pWindow, const MouseEvent& rEvt );
- void WindowEvent_Command( Window* pWindow, const CommandEvent& rCEvt );
- void WindowEvent_KeyInput( Window* pWindow, const KeyEvent& rEvt );
- void WindowEvent_KeyUp( Window* pWindow, const KeyEvent& rEvt );
- void WindowEvent_GetFocus( Window* pWindow );
- void WindowEvent_LoseFocus( Window* pWindow );
- void WindowEvent_Paint( Window* pWindow, const Rectangle& rRect );
+ void WindowDestroyed( Window* pWindow );
+ void WindowEvent_Move( Window* pWindow );
+ void WindowEvent_Resize( Window* pWindow );
+ void WindowEvent_Show( Window* pWindow, BOOL bShow );
+ void WindowEvent_Close( Window* pWindow );
+ void WindowEvent_Minimize( Window* pWindow );
+ void WindowEvent_Normalize( Window* pWindow );
+ void WindowEvent_Activate( Window* pWindow, BOOL bActivated );
+ void WindowEvent_MouseButtonUp( Window* pWindow, const MouseEvent& rEvt );
+ void WindowEvent_MouseButtonDown( Window* pWindow, const MouseEvent& rEvt );
+ void WindowEvent_MouseMove( Window* pWindow, const MouseEvent& rEvt );
+ void WindowEvent_Command( Window* pWindow, const CommandEvent& rCEvt );
+ void WindowEvent_KeyInput( Window* pWindow, const KeyEvent& rEvt );
+ void WindowEvent_KeyUp( Window* pWindow, const KeyEvent& rEvt );
+ void WindowEvent_GetFocus( Window* pWindow );
+ void WindowEvent_LoseFocus( Window* pWindow );
+ void WindowEvent_Paint( Window* pWindow, const Rectangle& rRect );
// Accessibility
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
diff --git a/toolkit/inc/toolkit/helper/vclunohelper.hxx b/toolkit/inc/toolkit/helper/vclunohelper.hxx
index fafff3fc07dc..ca3a4c7780d6 100644
--- a/toolkit/inc/toolkit/helper/vclunohelper.hxx
+++ b/toolkit/inc/toolkit/helper/vclunohelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,57 +74,57 @@ class OutputDevice;
class MouseEvent;
class KeyEvent;
-// ----------------------------------------------------
-// class VclUnoHelper
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VclUnoHelper
+// ----------------------------------------------------
class TOOLKIT_DLLPUBLIC VCLUnoHelper
{
public:
// Toolkit
- static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit> CreateToolkit();
+ static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit> CreateToolkit();
// Bitmap
- static BitmapEx GetBitmap( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap>& rxBitmap );
- static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap> CreateBitmap( const BitmapEx& rBitmap );
+ static BitmapEx GetBitmap( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap>& rxBitmap );
+ static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap> CreateBitmap( const BitmapEx& rBitmap );
// Window
- static Window* GetWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow>& rxWindow );
- static Window* GetWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow2>& rxWindow2 );
- static Window* GetWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer>& rxWindowPeer );
- static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow> GetInterface( Window* pWindow );
+ static Window* GetWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow>& rxWindow );
+ static Window* GetWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow2>& rxWindow2 );
+ static Window* GetWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer>& rxWindowPeer );
+ static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow> GetInterface( Window* pWindow );
// OutputDevice
- static OutputDevice* GetOutputDevice( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice>& rxDevice );
- static OutputDevice* GetOutputDevice( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics>& rxGraphics );
+ static OutputDevice* GetOutputDevice( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XDevice>& rxDevice );
+ static OutputDevice* GetOutputDevice( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics>& rxGraphics );
// Region
- static Region GetRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion );
+ static Region GetRegion( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XRegion >& rxRegion );
// Pointer
static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XPointer> CreatePointer();
// Polygon
- static Polygon CreatePolygon( const ::com::sun::star::uno::Sequence< sal_Int32 >& DataX, const ::com::sun::star::uno::Sequence< sal_Int32 >& DataY );
+ static Polygon CreatePolygon( const ::com::sun::star::uno::Sequence< sal_Int32 >& DataX, const ::com::sun::star::uno::Sequence< sal_Int32 >& DataY );
// Font
- static ::com::sun::star::awt::FontDescriptor CreateFontDescriptor( const Font& rFont );
- static Font CreateFont( const ::com::sun::star::awt::FontDescriptor& rDescr, const Font& rInitFont );
- static Font CreateFont( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont >& rxFont );
- static ::com::sun::star::awt::SimpleFontMetric CreateFontMetric( const FontMetric& rFontMetric );
- static float ConvertFontWidth( FontWidth eWidth );
- static FontWidth ConvertFontWidth( float f );
- static float ConvertFontWeight( FontWeight eWeight );
- static FontWeight ConvertFontWeight( float f );
-
+ static ::com::sun::star::awt::FontDescriptor CreateFontDescriptor( const Font& rFont );
+ static Font CreateFont( const ::com::sun::star::awt::FontDescriptor& rDescr, const Font& rInitFont );
+ static Font CreateFont( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont >& rxFont );
+ static ::com::sun::star::awt::SimpleFontMetric CreateFontMetric( const FontMetric& rFontMetric );
+ static float ConvertFontWidth( FontWidth eWidth );
+ static FontWidth ConvertFontWidth( float f );
+ static float ConvertFontWeight( FontWeight eWeight );
+ static FontWeight ConvertFontWeight( float f );
+
// Rectangle
- static sal_Bool IsZero( ::com::sun::star::awt::Rectangle rRect );
+ static sal_Bool IsZero( ::com::sun::star::awt::Rectangle rRect );
- static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer> CreateControlContainer( Window* pWindow );
+ static ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlContainer> CreateControlContainer( Window* pWindow );
// MapUnits
- static MapUnit UnoEmbed2VCLMapUnit( sal_Int32 nUnoEmbedMapUnit );
- static sal_Int32 VCL2UnoEmbedMapUnit( MapUnit nVCLMapUnit );
+ static MapUnit UnoEmbed2VCLMapUnit( sal_Int32 nUnoEmbedMapUnit );
+ static sal_Int32 VCL2UnoEmbedMapUnit( MapUnit nVCLMapUnit );
//========================================================================
//= MeasurementUnitConversion
@@ -161,6 +161,6 @@ public:
};
-#endif // _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
+#endif // _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/qa/complex/toolkit/CallbackClass.java b/toolkit/qa/complex/toolkit/CallbackClass.java
index efc0ef91f7c0..8e1a005bc47f 100644
--- a/toolkit/qa/complex/toolkit/CallbackClass.java
+++ b/toolkit/qa/complex/toolkit/CallbackClass.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ public class CallbackClass implements XCallback{
public CallbackClass(LogWriter log, XMultiServiceFactory xMSF ) {
-
+
this.xMSF = xMSF;
this.log = log;
}
@@ -58,7 +58,7 @@ public class CallbackClass implements XCallback{
/**
* Callback method which will be called by the asynchronous
- * service where we have added our request before.
+ * service where we have added our request before.
*/
public void notify( Object aData ) {
diff --git a/toolkit/qa/complex/toolkit/CheckAccessibleStatusBar.java b/toolkit/qa/complex/toolkit/CheckAccessibleStatusBar.java
index fee95f2e6de0..6ad18a4aa04f 100755
--- a/toolkit/qa/complex/toolkit/CheckAccessibleStatusBar.java
+++ b/toolkit/qa/complex/toolkit/CheckAccessibleStatusBar.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/qa/complex/toolkit/CheckAccessibleStatusBarItem.java b/toolkit/qa/complex/toolkit/CheckAccessibleStatusBarItem.java
index 36394732ce78..e877a9023dd8 100755
--- a/toolkit/qa/complex/toolkit/CheckAccessibleStatusBarItem.java
+++ b/toolkit/qa/complex/toolkit/CheckAccessibleStatusBarItem.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/qa/complex/toolkit/CheckAsyncCallback.java b/toolkit/qa/complex/toolkit/CheckAsyncCallback.java
index cc184f3c1a73..ad26344630a4 100644
--- a/toolkit/qa/complex/toolkit/CheckAsyncCallback.java
+++ b/toolkit/qa/complex/toolkit/CheckAsyncCallback.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,14 +88,14 @@ public class CheckAsyncCallback extends ComplexTestCase {
try {
xMSF = (XMultiServiceFactory)param.getMSF();
SOfficeFactory xSOF = SOfficeFactory.getFactory(xMSF);
-
+
XRequestCallback xAsyncCallback = null;
-
- XInterface xIfc = (XInterface)xMSF.createInstance(
+
+ XInterface xIfc = (XInterface)xMSF.createInstance(
"com.sun.star.awt.AsyncCallback" );
xAsyncCallback = (XRequestCallback)
UnoRuntime.queryInterface(XRequestCallback.class,xIfc);
-
+
testObject=xAsyncCallback;
}
catch(com.sun.star.uno.Exception e) {
@@ -114,7 +114,7 @@ public class CheckAsyncCallback extends ComplexTestCase {
new _XRequestCallback(testObject, log, xMSF );
assure("failed: XRequestCallback::addCallback", _xRequestCallback._addCallback());
}
-
+
public void checkCallback() {
getTestObject();
log.println("*** Now testing asynchronous callback service ***");
diff --git a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleComponent.java b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleComponent.java
index e3d80629be40..fc66e0b47d21 100755
--- a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleComponent.java
+++ b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleComponent.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleContext.java b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleContext.java
index 230eb3d098d3..294812061bc5 100755
--- a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleContext.java
+++ b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleContext.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleEventBroadcaster.java b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleEventBroadcaster.java
index 18a20d02e233..e2998772dae0 100755
--- a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleEventBroadcaster.java
+++ b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleEventBroadcaster.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleExtendedComponent.java b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleExtendedComponent.java
index e022e60d90c0..b6766bea066d 100755
--- a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleExtendedComponent.java
+++ b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleExtendedComponent.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleText.java b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleText.java
index d6357e8f24bc..8ae001fc35ad 100755
--- a/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleText.java
+++ b/toolkit/qa/complex/toolkit/interface_tests/_XAccessibleText.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/qa/complex/toolkit/interface_tests/_XRequestCallback.java b/toolkit/qa/complex/toolkit/interface_tests/_XRequestCallback.java
index 472412e80aa6..3d04c2030081 100644
--- a/toolkit/qa/complex/toolkit/interface_tests/_XRequestCallback.java
+++ b/toolkit/qa/complex/toolkit/interface_tests/_XRequestCallback.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,7 +81,7 @@ public class _XRequestCallback {
res = false;
}
log.println("addCallback called" );
-
+
return res;
}
diff --git a/toolkit/qa/complex/xunitconversion/XUnitConversionTest.java b/toolkit/qa/complex/xunitconversion/XUnitConversionTest.java
index 654f5ec69da5..9e1500bc3dde 100644
--- a/toolkit/qa/complex/xunitconversion/XUnitConversionTest.java
+++ b/toolkit/qa/complex/xunitconversion/XUnitConversionTest.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,10 +41,10 @@ import util.DesktopTools;
* These are converter methods to get the size of a well known awt component
* in a com.sun.star.util.MeasureUnit you want.
* You don't need to know the factors to calculate by hand.
- *
+ *
* @author ll93751
*/
-public class XUnitConversionTest extends ComplexTestCase
+public class XUnitConversionTest extends ComplexTestCase
{
public String[] getTestMethodNames()
{
@@ -87,7 +87,7 @@ public class XUnitConversionTest extends ComplexTestCase
log.println("Caught IllegalArgumentException in convertSizeToLogic with '" + _sEinheit + "' " + e.getMessage());
}
}
-
+
/**
* The real test function
* 1. try to get the XMultiServiceFactory of an already running office. Therefore make sure an (open|star)office is running with
@@ -96,10 +96,10 @@ public class XUnitConversionTest extends ComplexTestCase
* 3. try to convert the WindowPeer to an XWindow
* 4. try to resize and move the window to an other position, so we get a well knowing position and size.
* 5. run some more tests
- *
+ *
* If no test fails, the test is well done and returns with 'PASSED, OK'
- *
- */ public void testXUnitConversion()
+ *
+ */ public void testXUnitConversion()
{
XMultiServiceFactory xMSF = (XMultiServiceFactory) param.getMSF();
assure("failed: There is no office.", xMSF != null);
@@ -218,5 +218,5 @@ public class XUnitConversionTest extends ComplexTestCase
// close the window.
// IMHO a little bit stupid, but the XWindow doesn't support a XCloseable interface
xWindow.dispose();
- }
+ }
}
diff --git a/toolkit/source/awt/asynccallback.cxx b/toolkit/source/awt/asynccallback.cxx
index e912e83bd12e..d629f9cd6e66 100644
--- a/toolkit/source/awt/asynccallback.cxx
+++ b/toolkit/source/awt/asynccallback.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,13 +80,13 @@ private:
{
CallbackData( const css::uno::Reference< css::awt::XCallback >& rCallback, const css::uno::Any& rAny ) :
xCallback( rCallback ), aData( rAny ) {}
-
+
css::uno::Reference< css::awt::XCallback > xCallback;
css::uno::Any aData;
};
-
+
DECL_STATIC_LINK( AsyncCallback, Notify_Impl, CallbackData* );
-
+
AsyncCallback(AsyncCallback &); // not defined
void operator =(AsyncCallback &); // not defined
@@ -145,7 +145,7 @@ IMPL_STATIC_LINK_NOINSTANCE( AsyncCallback, Notify_Impl, CallbackData*, pCallbac
catch ( css::uno::Exception& )
{
}
-
+
delete pCallbackData;
return 0;
}
diff --git a/toolkit/source/awt/forward.hxx b/toolkit/source/awt/forward.hxx
index ab39b40ba7c9..839e948fef70 100644
--- a/toolkit/source/awt/forward.hxx
+++ b/toolkit/source/awt/forward.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx
index fd77de8ba8c9..6aaf8f8955cf 100644
--- a/toolkit/source/awt/vclxaccessiblecomponent.cxx
+++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,9 +59,9 @@ using namespace ::comphelper;
DBG_NAME(VCLXAccessibleComponent)
-// ----------------------------------------------------
-// class VCLXAccessibleComponent
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXAccessibleComponent
+// ----------------------------------------------------
VCLXAccessibleComponent::VCLXAccessibleComponent( VCLXWindow* pVCLXindow )
: AccessibleExtendedComponentHelper_BASE( new VCLExternalSolarLock() )
, OAccessibleImplementationAccess( )
@@ -293,9 +293,9 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
{
// avoid notification if a child frame is already active
// only one frame may be active at a given time
- if ( !pAccWindow->HasActiveChildFrame() &&
- ( getAccessibleRole() == accessibility::AccessibleRole::FRAME ||
- getAccessibleRole() == accessibility::AccessibleRole::ALERT ||
+ if ( !pAccWindow->HasActiveChildFrame() &&
+ ( getAccessibleRole() == accessibility::AccessibleRole::FRAME ||
+ getAccessibleRole() == accessibility::AccessibleRole::ALERT ||
getAccessibleRole() == accessibility::AccessibleRole::DIALOG ) ) // #i18891#
{
aNewValue <<= accessibility::AccessibleStateType::ACTIVE;
@@ -305,8 +305,8 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
break;
case VCLEVENT_WINDOW_DEACTIVATE:
{
- if ( getAccessibleRole() == accessibility::AccessibleRole::FRAME ||
- getAccessibleRole() == accessibility::AccessibleRole::ALERT ||
+ if ( getAccessibleRole() == accessibility::AccessibleRole::FRAME ||
+ getAccessibleRole() == accessibility::AccessibleRole::ALERT ||
getAccessibleRole() == accessibility::AccessibleRole::DIALOG ) // #i18891#
{
aOldValue <<= accessibility::AccessibleStateType::ACTIVE;
@@ -486,13 +486,13 @@ void VCLXAccessibleComponent::FillAccessibleStateSet( utl::AccessibleStateSetHel
}
if ( pWindow->HasChildPathFocus() &&
- ( getAccessibleRole() == accessibility::AccessibleRole::FRAME ||
- getAccessibleRole() == accessibility::AccessibleRole::ALERT ||
+ ( getAccessibleRole() == accessibility::AccessibleRole::FRAME ||
+ getAccessibleRole() == accessibility::AccessibleRole::ALERT ||
getAccessibleRole() == accessibility::AccessibleRole::DIALOG ) ) // #i18891#
rStateSet.AddState( accessibility::AccessibleStateType::ACTIVE );
// #104290# MT: This way, a ComboBox doesn't get state FOCUSED.
- // I also don't understand
+ // I also don't understand
// a) why WINDOW_FIRSTCHILD is used here (which btw is a border window in the case of a combo box)
// b) why HasFocus() is nout "enough" for a compound control
/*
@@ -589,7 +589,7 @@ uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getVclPare
return xAcc;
}
-uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getAccessibleParent( ) throw (uno::RuntimeException)
+uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getAccessibleParent( ) throw (uno::RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -601,7 +601,7 @@ uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getAccessi
return xAcc;
}
-sal_Int32 VCLXAccessibleComponent::getAccessibleIndexInParent( ) throw (uno::RuntimeException)
+sal_Int32 VCLXAccessibleComponent::getAccessibleIndexInParent( ) throw (uno::RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -609,7 +609,7 @@ sal_Int32 VCLXAccessibleComponent::getAccessibleIndexInParent( ) throw (uno::Ru
uno::Reference< accessibility::XAccessible > xAcc( implGetForeignControlledParent() );
if ( xAcc.is() )
- { // we _do_ have a foreign-controlled parent -> use the base class' implementation,
+ { // we _do_ have a foreign-controlled parent -> use the base class' implementation,
// which goes the UNO way
nIndex = AccessibleExtendedComponentHelper_BASE::getAccessibleIndexInParent( );
}
@@ -631,7 +631,7 @@ sal_Int32 VCLXAccessibleComponent::getAccessibleIndexInParent( ) throw (uno::Ru
}
}
*/
- // Iterate over all the parent's children and search for this object.
+ // Iterate over all the parent's children and search for this object.
// this should be compatible with the code in SVX
uno::Reference< accessibility::XAccessible > xParentAcc( pParent->GetAccessible() );
if ( xParentAcc.is() )
@@ -673,7 +673,7 @@ sal_Int16 VCLXAccessibleComponent::getAccessibleRole( ) throw (uno::RuntimeExce
return nRole;
}
-::rtl::OUString VCLXAccessibleComponent::getAccessibleDescription( ) throw (uno::RuntimeException)
+::rtl::OUString VCLXAccessibleComponent::getAccessibleDescription( ) throw (uno::RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -702,7 +702,7 @@ sal_Int16 VCLXAccessibleComponent::getAccessibleRole( ) throw (uno::RuntimeExce
return aName;
}
-uno::Reference< accessibility::XAccessibleRelationSet > VCLXAccessibleComponent::getAccessibleRelationSet( ) throw (uno::RuntimeException)
+uno::Reference< accessibility::XAccessibleRelationSet > VCLXAccessibleComponent::getAccessibleRelationSet( ) throw (uno::RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -738,8 +738,8 @@ uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getAccessi
{
uno::Reference< accessibility::XAccessible > xAcc = getAccessibleChild( i );
if ( xAcc.is() )
- {
- uno::Reference< accessibility::XAccessibleComponent > xComp( xAcc->getAccessibleContext(), uno::UNO_QUERY );
+ {
+ uno::Reference< accessibility::XAccessibleComponent > xComp( xAcc->getAccessibleContext(), uno::UNO_QUERY );
if ( xComp.is() )
{
Rectangle aRect = VCLRectangle( xComp->getBounds() );
@@ -778,7 +778,7 @@ awt::Rectangle VCLXAccessibleComponent::implGetBounds() throw (uno::RuntimeExcep
uno::Reference< accessibility::XAccessible > xParent( implGetForeignControlledParent() );
if ( xParent.is() )
- { // hmm, we can't rely on our VCL coordinates, as in the Accessibility Hierarchy, somebody gave
+ { // hmm, we can't rely on our VCL coordinates, as in the Accessibility Hierarchy, somebody gave
// us a parent which is different from our VCL parent
// (actually, we did not check if it's really different ...)
@@ -833,7 +833,7 @@ void VCLXAccessibleComponent::grabFocus( ) throw (uno::RuntimeException)
mxWindow->setFocus();
}
-sal_Int32 SAL_CALL VCLXAccessibleComponent::getForeground( ) throw (uno::RuntimeException)
+sal_Int32 SAL_CALL VCLXAccessibleComponent::getForeground( ) throw (uno::RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -857,7 +857,7 @@ sal_Int32 SAL_CALL VCLXAccessibleComponent::getForeground( ) throw (uno::Runtim
return nColor;
}
-sal_Int32 SAL_CALL VCLXAccessibleComponent::getBackground( ) throw (uno::RuntimeException)
+sal_Int32 SAL_CALL VCLXAccessibleComponent::getBackground( ) throw (uno::RuntimeException)
{
OExternalLockGuard aGuard( this );
@@ -901,7 +901,7 @@ uno::Reference< awt::XFont > SAL_CALL VCLXAccessibleComponent::getFont( ) throw
return xFont;
}
-::rtl::OUString SAL_CALL VCLXAccessibleComponent::getTitledBorderText( ) throw (uno::RuntimeException)
+::rtl::OUString SAL_CALL VCLXAccessibleComponent::getTitledBorderText( ) throw (uno::RuntimeException)
{
OExternalLockGuard aGuard( this );
diff --git a/toolkit/source/awt/vclxbitmap.cxx b/toolkit/source/awt/vclxbitmap.cxx
index 7b5dc0a53442..d3dd104aa6e7 100644
--- a/toolkit/source/awt/vclxbitmap.cxx
+++ b/toolkit/source/awt/vclxbitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,9 +37,9 @@
#include <rtl/memory.h>
#include <rtl/uuid.h>
-// ----------------------------------------------------
-// class VCLXBitmap
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXBitmap
+// ----------------------------------------------------
// ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any VCLXBitmap::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
diff --git a/toolkit/source/awt/vclxbutton.cxx b/toolkit/source/awt/vclxbutton.cxx
index d201a2344fa3..9d660fc25e47 100644
--- a/toolkit/source/awt/vclxbutton.cxx
+++ b/toolkit/source/awt/vclxbutton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxbutton.hxx b/toolkit/source/awt/vclxbutton.hxx
index 34ac8fe0b84b..facdd0f44ad1 100644
--- a/toolkit/source/awt/vclxbutton.hxx
+++ b/toolkit/source/awt/vclxbutton.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxcontainer.cxx b/toolkit/source/awt/vclxcontainer.cxx
index f0988c6d1eac..a21234ec819b 100644
--- a/toolkit/source/awt/vclxcontainer.cxx
+++ b/toolkit/source/awt/vclxcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,9 +40,9 @@
#include <vcl/window.hxx>
#include <tools/debug.hxx>
-// ----------------------------------------------------
-// class VCLXContainer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXContainer
+// ----------------------------------------------------
void VCLXContainer::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -199,7 +199,7 @@ void VCLXContainer::setGroup( const ::com::sun::star::uno::Sequence< ::com::sun:
{
if ( pPrevRadio )
{
- bNewPrevWin = ( pPrevWin == pPrevRadio ); // Radio-Button wurde vor das PreWin sortiert....
+ bNewPrevWin = ( pPrevWin == pPrevRadio ); // Radio-Button wurde vor das PreWin sortiert....
pSortBehind = pPrevRadio;
}
pPrevRadio = pWin;
diff --git a/toolkit/source/awt/vclxdevice.cxx b/toolkit/source/awt/vclxdevice.cxx
index c7d3910b4262..4faed3be9036 100644
--- a/toolkit/source/awt/vclxdevice.cxx
+++ b/toolkit/source/awt/vclxdevice.cxx
@@ -50,9 +50,9 @@
#include <vcl/bitmapex.hxx>
#include <vcl/font.hxx>
-// ----------------------------------------------------
-// class VCLXDevice
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXDevice
+// ----------------------------------------------------
VCLXDevice::VCLXDevice() : mrMutex( Application::GetSolarMutex() )
{
mpOutputDevice = NULL;
diff --git a/toolkit/source/awt/vclxdialog.cxx b/toolkit/source/awt/vclxdialog.cxx
index 19e08029213a..89d7a6aa5cac 100644
--- a/toolkit/source/awt/vclxdialog.cxx
+++ b/toolkit/source/awt/vclxdialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxdialog.hxx b/toolkit/source/awt/vclxdialog.hxx
index 978519319d3a..a01abdfac004 100644
--- a/toolkit/source/awt/vclxdialog.hxx
+++ b/toolkit/source/awt/vclxdialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxfixedline.cxx b/toolkit/source/awt/vclxfixedline.cxx
index cecef12fa992..ad0f04434d83 100644
--- a/toolkit/source/awt/vclxfixedline.cxx
+++ b/toolkit/source/awt/vclxfixedline.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxfixedline.hxx b/toolkit/source/awt/vclxfixedline.hxx
index 8bd26f5ecc0b..740390b062b3 100644
--- a/toolkit/source/awt/vclxfixedline.hxx
+++ b/toolkit/source/awt/vclxfixedline.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxfont.cxx b/toolkit/source/awt/vclxfont.cxx
index 66461db68e77..6489b971a425 100644
--- a/toolkit/source/awt/vclxfont.cxx
+++ b/toolkit/source/awt/vclxfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,9 +40,9 @@
#include <vcl/outdev.hxx>
-// ----------------------------------------------------
-// class VCLXFont
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXFont
+// ----------------------------------------------------
VCLXFont::VCLXFont()
{
mpFontMetric = NULL;
@@ -113,7 +113,7 @@ IMPL_XTYPEPROVIDER_END
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
::com::sun::star::awt::SimpleFontMetric aFM;
- if ( ImplAssertValidFontMetric() )
+ if ( ImplAssertValidFontMetric() )
aFM = VCLUnoHelper::CreateFontMetric( *mpFontMetric );
return aFM;
}
@@ -128,7 +128,7 @@ sal_Int16 VCLXFont::getCharWidth( sal_Unicode c ) throw(::com::sun::star::uno::R
{
Font aOldFont = pOutDev->GetFont();
pOutDev->SetFont( maFont );
-
+
nRet = sal::static_int_cast< sal_Int16 >(
pOutDev->GetTextWidth( String(c) ));
@@ -147,7 +147,7 @@ sal_Int16 VCLXFont::getCharWidth( sal_Unicode c ) throw(::com::sun::star::uno::R
{
Font aOldFont = pOutDev->GetFont();
pOutDev->SetFont( maFont );
-
+
sal_Int16 nCount = nLast-nFirst + 1;
aSeq = ::com::sun::star::uno::Sequence<sal_Int16>( nCount );
for ( USHORT n = 0; n < nCount; n++ )
diff --git a/toolkit/source/awt/vclxgraphics.cxx b/toolkit/source/awt/vclxgraphics.cxx
index ac3add9d5ddc..4f7e3a033feb 100644
--- a/toolkit/source/awt/vclxgraphics.cxx
+++ b/toolkit/source/awt/vclxgraphics.cxx
@@ -43,9 +43,9 @@
#include <tools/debug.hxx>
-// ----------------------------------------------------
-// class VCLXGraphics
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXGraphics
+// ----------------------------------------------------
// ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any VCLXGraphics::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
@@ -89,15 +89,15 @@ void VCLXGraphics::SetOutputDevice( OutputDevice* pOutDev )
void VCLXGraphics::Init( OutputDevice* pOutDev )
{
DBG_ASSERT( !mpOutputDevice, "VCLXGraphics::Init allready has pOutDev !" );
- mpOutputDevice = pOutDev;
+ mpOutputDevice = pOutDev;
- maFont = mpOutputDevice->GetFont();
- maTextColor = COL_BLACK;
+ maFont = mpOutputDevice->GetFont();
+ maTextColor = COL_BLACK;
maTextFillColor = COL_TRANSPARENT;
- maLineColor = COL_BLACK;
- maFillColor = COL_WHITE;
- meRasterOp = ROP_OVERPAINT;
- mpClipRegion = NULL;
+ maLineColor = COL_BLACK;
+ maFillColor = COL_WHITE;
+ meRasterOp = ROP_OVERPAINT;
+ mpClipRegion = NULL;
// Register at OutputDevice
List* pLst = mpOutputDevice->GetUnoGraphicsList();
diff --git a/toolkit/source/awt/vclxmenu.cxx b/toolkit/source/awt/vclxmenu.cxx
index 6e1e036fe8e7..5e267d127be5 100644
--- a/toolkit/source/awt/vclxmenu.cxx
+++ b/toolkit/source/awt/vclxmenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,9 +77,9 @@
#endif
-// ----------------------------------------------------
-// class VCLXMenu
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXMenu
+// ----------------------------------------------------
DBG_NAME(VCLXMenu)
@@ -1082,9 +1082,9 @@ throw ( ::com::sun::star::container::NoSuchElementException,
}
-// ----------------------------------------------------
-// class VCLXMenuBar
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXMenuBar
+// ----------------------------------------------------
DBG_NAME(VCLXMenuBar);
@@ -1099,9 +1099,9 @@ VCLXMenuBar::VCLXMenuBar( MenuBar* pMenuBar ) : VCLXMenu( (Menu *)pMenuBar )
DBG_CTOR( VCLXMenuBar, 0 );
}
-// ----------------------------------------------------
-// class VCLXPopupMenu
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPopupMenu
+// ----------------------------------------------------
DBG_NAME(VCLXPopupMenu);
diff --git a/toolkit/source/awt/vclxplugin.cxx b/toolkit/source/awt/vclxplugin.cxx
index 2e8e4c12cbcf..c48d1de581cd 100644
--- a/toolkit/source/awt/vclxplugin.cxx
+++ b/toolkit/source/awt/vclxplugin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,11 +56,11 @@ void SAL_CALL VCLXPlugin::dispose() throw(uno::RuntimeException)
{
{
::osl::SolarGuard aGuard( GetMutex() );
-
+
lang::EventObject aDisposeEvent;
aDisposeEvent.Source = W3K_EXPLICIT_CAST (*this);
}
-
+
VCLXWindow::dispose();
}
diff --git a/toolkit/source/awt/vclxplugin.hxx b/toolkit/source/awt/vclxplugin.hxx
index 340fa453441f..0b173f9f2f14 100644
--- a/toolkit/source/awt/vclxplugin.hxx
+++ b/toolkit/source/awt/vclxplugin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxpointer.cxx b/toolkit/source/awt/vclxpointer.cxx
index 6f0d0a8af449..7ab0d6d25f5a 100644
--- a/toolkit/source/awt/vclxpointer.cxx
+++ b/toolkit/source/awt/vclxpointer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,9 +34,9 @@
#include <toolkit/helper/macros.hxx>
#include <cppuhelper/typeprovider.hxx>
-// ----------------------------------------------------
-// class VCLXPointer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPointer
+// ----------------------------------------------------
VCLXPointer::VCLXPointer()
{
}
diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx
index 093e02fc0efd..d0ddf420df68 100644
--- a/toolkit/source/awt/vclxprinter.cxx
+++ b/toolkit/source/awt/vclxprinter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,10 +47,10 @@
#include <toolkit/awt/vclxdevice.hxx>
-#define BINARYSETUPMARKER 0x23864691
+#define BINARYSETUPMARKER 0x23864691
-#define PROPERTY_Orientation 0
-#define PROPERTY_Horizontal 1
+#define PROPERTY_Orientation 0
+#define PROPERTY_Horizontal 1
::com::sun::star::beans::Property* ImplGetProperties( sal_uInt16& rElementCount )
{
@@ -74,9 +74,9 @@
return pProperties;
}
-// ----------------------------------------------------
-// class VCLXPrinterPropertySet
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPrinterPropertySet
+// ----------------------------------------------------
// ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any VCLXPrinterPropertySet::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
@@ -241,7 +241,7 @@ void VCLXPrinterPropertySet::setHorizontal( sal_Bool bHorizontal ) throw(::com::
::osl::MutexGuard aGuard( Mutex );
sal_uInt16 nPaperBinCount = GetPrinter()->GetPaperBinCount();
- ::com::sun::star::uno::Sequence< ::rtl::OUString > aDescriptions( nPaperBinCount );
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > aDescriptions( nPaperBinCount );
for ( sal_uInt16 n = 0; n < nPaperBinCount; n++ )
{
// Format: <DisplayFormName;FormNameId;DisplayPaperBinName;PaperBinNameId;DisplayPaperName;PaperNameId>
@@ -293,9 +293,9 @@ void VCLXPrinterPropertySet::setBinarySetup( const ::com::sun::star::uno::Sequen
}
-// ----------------------------------------------------
-// class VCLXPrinter
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPrinter
+// ----------------------------------------------------
VCLXPrinter::VCLXPrinter( const String& rPrinterName )
: VCLXPrinterPropertySet( rPrinterName )
{
@@ -377,9 +377,9 @@ void VCLXPrinter::endPage( ) throw(::com::sun::star::awt::PrinterException, ::c
}
-// ----------------------------------------------------
-// class VCLXInfoPrinter
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXInfoPrinter
+// ----------------------------------------------------
VCLXInfoPrinter::VCLXInfoPrinter( const String& rPrinterName )
: VCLXPrinterPropertySet( rPrinterName )
@@ -416,9 +416,9 @@ IMPL_XTYPEPROVIDER_END
return GetDevice();
}
-// ----------------------------------------------------
-// class VCLXPrinterServer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPrinterServer
+// ----------------------------------------------------
// ::com::sun::star::uno::XInterface
::com::sun::star::uno::Any VCLXPrinterServer::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
@@ -439,10 +439,10 @@ IMPL_XTYPEPROVIDER_END
const std::vector<rtl::OUString>& rQueues = Printer::GetPrinterQueues();
sal_uInt32 nPrinters = rQueues.size();
- ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames( nPrinters );
- for ( sal_uInt32 n = 0; n < nPrinters; n++ )
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames( nPrinters );
+ for ( sal_uInt32 n = 0; n < nPrinters; n++ )
aNames.getArray()[n] = rQueues[n];
-
+
return aNames;
}
diff --git a/toolkit/source/awt/vclxregion.cxx b/toolkit/source/awt/vclxregion.cxx
index 99a1924cecd1..2fa015a9950a 100644
--- a/toolkit/source/awt/vclxregion.cxx
+++ b/toolkit/source/awt/vclxregion.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,9 +39,9 @@
#include <rtl/uuid.h>
#include <vcl/svapp.hxx>
-// ----------------------------------------------------
-// class VCLXRegion
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXRegion
+// ----------------------------------------------------
VCLXRegion::VCLXRegion()
{
}
diff --git a/toolkit/source/awt/vclxscroller.cxx b/toolkit/source/awt/vclxscroller.cxx
index 27424ef83d03..1655116ea5e2 100644
--- a/toolkit/source/awt/vclxscroller.cxx
+++ b/toolkit/source/awt/vclxscroller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxscroller.hxx b/toolkit/source/awt/vclxscroller.hxx
index 7252cd68563a..763b52f5abb2 100644
--- a/toolkit/source/awt/vclxscroller.hxx
+++ b/toolkit/source/awt/vclxscroller.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxspinbutton.cxx b/toolkit/source/awt/vclxspinbutton.cxx
index 1ee7d455d809..9c8129420541 100644
--- a/toolkit/source/awt/vclxspinbutton.cxx
+++ b/toolkit/source/awt/vclxspinbutton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,14 +109,14 @@ namespace toolkit
if ( listener.is() )
maAdjustmentListeners.addInterface( listener );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL VCLXSpinButton::removeAdjustmentListener( const Reference< XAdjustmentListener >& listener ) throw (RuntimeException)
{
if ( listener.is() )
maAdjustmentListeners.removeInterface( listener );
}
-
+
namespace
{
typedef void (SpinButton::*SetSpinButtonValue) (long);
@@ -151,7 +151,7 @@ namespace toolkit
{
lcl_setSpinButtonValue( GetMutex(), GetWindow(), &SpinButton::SetValue, n );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL VCLXSpinButton::setValues( sal_Int32 minValue, sal_Int32 maxValue, sal_Int32 currentValue ) throw (RuntimeException)
{
@@ -161,49 +161,49 @@ namespace toolkit
setMaximum( maxValue );
setValue( currentValue );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL VCLXSpinButton::getValue( ) throw (RuntimeException)
{
return lcl_getSpinButtonValue( GetMutex(), GetWindow(), &SpinButton::GetValue );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL VCLXSpinButton::setMinimum( sal_Int32 minValue ) throw (RuntimeException)
{
lcl_setSpinButtonValue( GetMutex(), GetWindow(), &SpinButton::SetRangeMin, minValue );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL VCLXSpinButton::setMaximum( sal_Int32 maxValue ) throw (RuntimeException)
{
lcl_setSpinButtonValue( GetMutex(), GetWindow(), &SpinButton::SetRangeMax, maxValue );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL VCLXSpinButton::getMinimum( ) throw (RuntimeException)
{
return lcl_getSpinButtonValue( GetMutex(), GetWindow(), &SpinButton::GetRangeMin );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL VCLXSpinButton::getMaximum( ) throw (RuntimeException)
{
return lcl_getSpinButtonValue( GetMutex(), GetWindow(), &SpinButton::GetRangeMax );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL VCLXSpinButton::setSpinIncrement( sal_Int32 spinIncrement ) throw (RuntimeException)
{
lcl_setSpinButtonValue( GetMutex(), GetWindow(), &SpinButton::SetValueStep, spinIncrement );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL VCLXSpinButton::getSpinIncrement( ) throw (RuntimeException)
{
return lcl_getSpinButtonValue( GetMutex(), GetWindow(), &SpinButton::GetValueStep );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL VCLXSpinButton::setOrientation( sal_Int32 orientation ) throw (NoSupportException, RuntimeException)
{
@@ -211,7 +211,7 @@ namespace toolkit
lcl_modifyStyle( GetWindow(), WB_HSCROLL, orientation == ScrollBarOrientation::HORIZONTAL );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL VCLXSpinButton::getOrientation( ) throw (RuntimeException)
{
@@ -219,7 +219,7 @@ namespace toolkit
? ScrollBarOrientation::HORIZONTAL
: ScrollBarOrientation::VERTICAL;
}
-
+
//--------------------------------------------------------------------
void VCLXSpinButton::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent )
{
@@ -301,7 +301,7 @@ namespace toolkit
}
}
}
-
+
//--------------------------------------------------------------------
Any SAL_CALL VCLXSpinButton::getProperty( const ::rtl::OUString& PropertyName ) throw(RuntimeException)
{
diff --git a/toolkit/source/awt/vclxsplitter.cxx b/toolkit/source/awt/vclxsplitter.cxx
index 1ffbb9373647..bbd2dac59487 100644
--- a/toolkit/source/awt/vclxsplitter.cxx
+++ b/toolkit/source/awt/vclxsplitter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxsplitter.hxx b/toolkit/source/awt/vclxsplitter.hxx
index 2880e70993ef..ca4cb094e2ea 100644
--- a/toolkit/source/awt/vclxsplitter.hxx
+++ b/toolkit/source/awt/vclxsplitter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxsystemdependentwindow.cxx b/toolkit/source/awt/vclxsystemdependentwindow.cxx
index fb28d89b9cbc..a7155fd70204 100644
--- a/toolkit/source/awt/vclxsystemdependentwindow.cxx
+++ b/toolkit/source/awt/vclxsystemdependentwindow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,9 +53,9 @@
#include <vcl/syschild.hxx>
#include <vcl/sysdata.hxx>
-// ----------------------------------------------------
-// class VCLXSystemDependentWindow
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXSystemDependentWindow
+// ----------------------------------------------------
VCLXSystemDependentWindow::VCLXSystemDependentWindow()
{
}
diff --git a/toolkit/source/awt/vclxtabcontrol.cxx b/toolkit/source/awt/vclxtabcontrol.cxx
index fb2e361c337c..ab5c617f7919 100644
--- a/toolkit/source/awt/vclxtabcontrol.cxx
+++ b/toolkit/source/awt/vclxtabcontrol.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxtabcontrol.hxx b/toolkit/source/awt/vclxtabcontrol.hxx
index dfe1b0975346..c4b9002a39e3 100644
--- a/toolkit/source/awt/vclxtabcontrol.hxx
+++ b/toolkit/source/awt/vclxtabcontrol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/vclxtabpage.hxx b/toolkit/source/awt/vclxtabpage.hxx
index 81560e07da76..955a5982fe78 100644
--- a/toolkit/source/awt/vclxtabpage.hxx
+++ b/toolkit/source/awt/vclxtabpage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ public:
// XInterface
DECLARE_XINTERFACE()
-
+
// XTypeProvider
DECLARE_XTYPEPROVIDER()
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 3a80494bb979..0c9246babe53 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -119,8 +119,8 @@
namespace css = ::com::sun::star;
-#define VCLWINDOW_FRAMEWINDOW 0x1000
-#define VCLWINDOW_SYSTEMCHILDWINDOW 0x1001
+#define VCLWINDOW_FRAMEWINDOW 0x1000
+#define VCLWINDOW_SYSTEMCHILDWINDOW 0x1001
#if (defined WNT)
#define SYSTEM_DEPENDENT_TYPE ::com::sun::star::lang::SystemDependent::SYSTEM_WIN32
@@ -256,77 +256,77 @@ TOOLKIT_DLLPUBLIC WinBits ImplGetWinBits( sal_uInt32 nComponentAttribs, sal_uInt
struct ComponentInfo
{
- const char* pName;
- WindowType nWinType;
+ const char* pName;
+ WindowType nWinType;
};
static ComponentInfo __FAR_DATA aComponentInfos [] =
{
- { "buttondialog", WINDOW_BUTTONDIALOG },
- { "cancelbutton", WINDOW_CANCELBUTTON },
- { "checkbox", WINDOW_CHECKBOX },
- { "combobox", WINDOW_COMBOBOX },
- { "control", WINDOW_CONTROL },
- { "currencybox", WINDOW_CURRENCYBOX },
- { "currencyfield", WINDOW_CURRENCYFIELD },
- { "datebox", WINDOW_DATEBOX },
- { "datefield", WINDOW_DATEFIELD },
- { "dialog", WINDOW_DIALOG },
- { "dockingarea", WINDOW_DOCKINGAREA },
- { "dockingwindow", WINDOW_DOCKINGWINDOW },
- { "edit", WINDOW_EDIT },
- { "errorbox", WINDOW_ERRORBOX },
- { "fixedbitmap", WINDOW_FIXEDBITMAP },
- { "fixedimage", WINDOW_FIXEDIMAGE },
- { "fixedline", WINDOW_FIXEDLINE },
- { "fixedtext", WINDOW_FIXEDTEXT },
- { "floatingwindow", WINDOW_FLOATINGWINDOW },
- { "framewindow", VCLWINDOW_FRAMEWINDOW },
- { "groupbox", WINDOW_GROUPBOX },
- { "helpbutton", WINDOW_HELPBUTTON },
- { "imagebutton", WINDOW_IMAGEBUTTON },
- { "imageradiobutton", WINDOW_IMAGERADIOBUTTON },
- { "infobox", WINDOW_INFOBOX },
- { "listbox", WINDOW_LISTBOX },
- { "longcurrencybox", WINDOW_LONGCURRENCYBOX },
- { "longcurrencyfield", WINDOW_LONGCURRENCYFIELD },
- { "menubutton", WINDOW_MENUBUTTON },
- { "messbox", WINDOW_MESSBOX },
- { "metricbox", WINDOW_METRICBOX },
- { "metricfield", WINDOW_METRICFIELD },
- { "modaldialog", WINDOW_MODALDIALOG },
- { "modelessdialog", WINDOW_MODELESSDIALOG },
- { "morebutton", WINDOW_MOREBUTTON },
- { "multilineedit", WINDOW_MULTILINEEDIT },
- { "multilistbox", WINDOW_MULTILISTBOX },
- { "numericbox", WINDOW_NUMERICBOX },
- { "numericfield", WINDOW_NUMERICFIELD },
- { "okbutton", WINDOW_OKBUTTON },
- { "patternbox", WINDOW_PATTERNBOX },
- { "patternfield", WINDOW_PATTERNFIELD },
- { "pushbutton", WINDOW_PUSHBUTTON },
- { "querybox", WINDOW_QUERYBOX },
- { "radiobutton", WINDOW_RADIOBUTTON },
- { "scrollbar", WINDOW_SCROLLBAR },
- { "scrollbarbox", WINDOW_SCROLLBARBOX },
- { "simpleanimation", WINDOW_CONTROL },
- { "spinbutton", WINDOW_SPINBUTTON },
- { "spinfield", WINDOW_SPINFIELD },
- { "throbber", WINDOW_CONTROL },
- { "splitter", WINDOW_SPLITTER },
- { "splitwindow", WINDOW_SPLITWINDOW },
- { "statusbar", WINDOW_STATUSBAR },
- { "systemchildwindow", VCLWINDOW_SYSTEMCHILDWINDOW },
- { "tabcontrol", WINDOW_TABCONTROL },
- { "tabdialog", WINDOW_TABDIALOG },
- { "tabpage", WINDOW_TABPAGE },
- { "timebox", WINDOW_TIMEBOX },
- { "timefield", WINDOW_TIMEFIELD },
- { "toolbox", WINDOW_TOOLBOX },
- { "tristatebox", WINDOW_TRISTATEBOX },
- { "warningbox", WINDOW_WARNINGBOX },
- { "window", WINDOW_WINDOW },
- { "workwindow", WINDOW_WORKWINDOW }
+ { "buttondialog", WINDOW_BUTTONDIALOG },
+ { "cancelbutton", WINDOW_CANCELBUTTON },
+ { "checkbox", WINDOW_CHECKBOX },
+ { "combobox", WINDOW_COMBOBOX },
+ { "control", WINDOW_CONTROL },
+ { "currencybox", WINDOW_CURRENCYBOX },
+ { "currencyfield", WINDOW_CURRENCYFIELD },
+ { "datebox", WINDOW_DATEBOX },
+ { "datefield", WINDOW_DATEFIELD },
+ { "dialog", WINDOW_DIALOG },
+ { "dockingarea", WINDOW_DOCKINGAREA },
+ { "dockingwindow", WINDOW_DOCKINGWINDOW },
+ { "edit", WINDOW_EDIT },
+ { "errorbox", WINDOW_ERRORBOX },
+ { "fixedbitmap", WINDOW_FIXEDBITMAP },
+ { "fixedimage", WINDOW_FIXEDIMAGE },
+ { "fixedline", WINDOW_FIXEDLINE },
+ { "fixedtext", WINDOW_FIXEDTEXT },
+ { "floatingwindow", WINDOW_FLOATINGWINDOW },
+ { "framewindow", VCLWINDOW_FRAMEWINDOW },
+ { "groupbox", WINDOW_GROUPBOX },
+ { "helpbutton", WINDOW_HELPBUTTON },
+ { "imagebutton", WINDOW_IMAGEBUTTON },
+ { "imageradiobutton", WINDOW_IMAGERADIOBUTTON },
+ { "infobox", WINDOW_INFOBOX },
+ { "listbox", WINDOW_LISTBOX },
+ { "longcurrencybox", WINDOW_LONGCURRENCYBOX },
+ { "longcurrencyfield", WINDOW_LONGCURRENCYFIELD },
+ { "menubutton", WINDOW_MENUBUTTON },
+ { "messbox", WINDOW_MESSBOX },
+ { "metricbox", WINDOW_METRICBOX },
+ { "metricfield", WINDOW_METRICFIELD },
+ { "modaldialog", WINDOW_MODALDIALOG },
+ { "modelessdialog", WINDOW_MODELESSDIALOG },
+ { "morebutton", WINDOW_MOREBUTTON },
+ { "multilineedit", WINDOW_MULTILINEEDIT },
+ { "multilistbox", WINDOW_MULTILISTBOX },
+ { "numericbox", WINDOW_NUMERICBOX },
+ { "numericfield", WINDOW_NUMERICFIELD },
+ { "okbutton", WINDOW_OKBUTTON },
+ { "patternbox", WINDOW_PATTERNBOX },
+ { "patternfield", WINDOW_PATTERNFIELD },
+ { "pushbutton", WINDOW_PUSHBUTTON },
+ { "querybox", WINDOW_QUERYBOX },
+ { "radiobutton", WINDOW_RADIOBUTTON },
+ { "scrollbar", WINDOW_SCROLLBAR },
+ { "scrollbarbox", WINDOW_SCROLLBARBOX },
+ { "simpleanimation", WINDOW_CONTROL },
+ { "spinbutton", WINDOW_SPINBUTTON },
+ { "spinfield", WINDOW_SPINFIELD },
+ { "throbber", WINDOW_CONTROL },
+ { "splitter", WINDOW_SPLITTER },
+ { "splitwindow", WINDOW_SPLITWINDOW },
+ { "statusbar", WINDOW_STATUSBAR },
+ { "systemchildwindow", VCLWINDOW_SYSTEMCHILDWINDOW },
+ { "tabcontrol", WINDOW_TABCONTROL },
+ { "tabdialog", WINDOW_TABDIALOG },
+ { "tabpage", WINDOW_TABPAGE },
+ { "timebox", WINDOW_TIMEBOX },
+ { "timefield", WINDOW_TIMEFIELD },
+ { "toolbox", WINDOW_TOOLBOX },
+ { "tristatebox", WINDOW_TRISTATEBOX },
+ { "warningbox", WINDOW_WARNINGBOX },
+ { "window", WINDOW_WINDOW },
+ { "workwindow", WINDOW_WORKWINDOW }
};
extern "C"
@@ -350,7 +350,7 @@ sal_uInt16 ImplGetComponentType( const String& rServiceName )
static sal_Bool bSorted = sal_False;
if( !bSorted )
{
- qsort( (void*) aComponentInfos,
+ qsort( (void*) aComponentInfos,
sizeof( aComponentInfos ) / sizeof( ComponentInfo ),
sizeof( ComponentInfo ),
ComponentInfoCompare );
@@ -376,13 +376,13 @@ sal_uInt16 ImplGetComponentType( const String& rServiceName )
}
-// ----------------------------------------------------
-// class VCLXToolkit
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXToolkit
+// ----------------------------------------------------
-static sal_Int32 nVCLToolkitInstanceCount = 0;
-static BOOL bInitedByVCLToolkit = sal_False;
-//static cppu::OInterfaceContainerHelper * pToolkits = 0;
+static sal_Int32 nVCLToolkitInstanceCount = 0;
+static BOOL bInitedByVCLToolkit = sal_False;
+//static cppu::OInterfaceContainerHelper * pToolkits = 0;
static osl::Mutex & getInitMutex()
{
@@ -455,7 +455,7 @@ static void SAL_CALL ToolkitWorkerFunction( void* pArgs )
if( pToolkits )
{
cppu::OInterfaceIteratorHelper aIt( *pToolkits );
- ::com::sun::star::uno::XInterface * pI;
+ ::com::sun::star::uno::XInterface * pI;
while( pI = aIt.next() )
((::com::sun::star::lang::XComponent *)pI)->dispose();
@@ -614,7 +614,7 @@ void SAL_CALL VCLXToolkit::disposing()
return xRef;
}
-Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
+Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
const ::com::sun::star::awt::WindowDescriptor& rDescriptor,
Window* pParent, WinBits nWinBits )
{
@@ -941,9 +941,9 @@ Window* VCLXToolkit::ImplCreateWindow( VCLXWindow** ppNewComp,
if( bUseParentData )
{
SystemParentData aParentData;
- aParentData.nSize = sizeof( aParentData );
+ aParentData.nSize = sizeof( aParentData );
#if defined QUARTZ
- aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle);
+ aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle);
#elif defined UNX
aParentData.aWindow = nWindowHandle;
aParentData.bXEmbedSupport = bXEmbed;
@@ -1154,9 +1154,9 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
if( bUseParentData )
{
SystemParentData aParentData;
- aParentData.nSize = sizeof( aParentData );
+ aParentData.nSize = sizeof( aParentData );
#if defined QUARTZ
- aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle);
+ aParentData.pView = reinterpret_cast<NSView*>(nWindowHandle);
#elif defined UNX
aParentData.aWindow = nWindowHandle;
aParentData.bXEmbedSupport = bXEmbed;
@@ -1200,12 +1200,12 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
}
// ::com::sun::star::awt::XMessageBoxFactory
-::com::sun::star::uno::Reference< ::com::sun::star::awt::XMessageBox > SAL_CALL VCLXToolkit::createMessageBox(
- const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& aParent,
- const ::com::sun::star::awt::Rectangle& aPosSize,
- const ::rtl::OUString& aType,
- ::sal_Int32 aButtons,
- const ::rtl::OUString& aTitle,
+::com::sun::star::uno::Reference< ::com::sun::star::awt::XMessageBox > SAL_CALL VCLXToolkit::createMessageBox(
+ const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& aParent,
+ const ::com::sun::star::awt::Rectangle& aPosSize,
+ const ::rtl::OUString& aType,
+ ::sal_Int32 aButtons,
+ const ::rtl::OUString& aTitle,
const ::rtl::OUString& aMessage ) throw (::com::sun::star::uno::RuntimeException)
{
::com::sun::star::awt::WindowDescriptor aDescriptor;
@@ -1243,7 +1243,7 @@ css::uno::Reference< css::awt::XWindowPeer > VCLXToolkit::ImplCreateWindow(
nAddWinBits |= WB_ABORT_RETRY_IGNORE;
if ( sal_Int32( aButtons & 0xffff0000L ) == css::awt::MessageBoxButtons::DEFAULT_BUTTON_IGNORE )
nAddWinBits |= WB_DEF_IGNORE;
-
+
aDescriptor.Type = css::awt::WindowClass_MODALTOP;
aDescriptor.WindowServiceName = aType;
aDescriptor.ParentIndex = -1;
@@ -1491,17 +1491,17 @@ void SAL_CALL VCLXToolkit::removeFocusListener(
}
// virtual
-void SAL_CALL VCLXToolkit::fireFocusGained(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface > const &)
+void SAL_CALL VCLXToolkit::fireFocusGained(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface > const &)
throw (::com::sun::star::uno::RuntimeException)
{
}
-
-// virtual
-void SAL_CALL VCLXToolkit::fireFocusLost(
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface > const &)
+
+// virtual
+void SAL_CALL VCLXToolkit::fireFocusLost(
+ ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::XInterface > const &)
throw (::com::sun::star::uno::RuntimeException)
{
}
@@ -1601,11 +1601,11 @@ long VCLXToolkit::callKeyHandlers(::VclSimpleEvent const * pEvent,
{
::css::uno::Sequence< ::css::uno::Reference< ::css::uno::XInterface > >
aHandlers(m_aKeyHandlers.getElements());
-
+
if (aHandlers.hasElements())
{
::Window * pWindow = static_cast< ::VclWindowEvent const * >(pEvent)->GetWindow();
-
+
// See implementation in vclxwindow.cxx for mapping between VCL and UNO AWT event
::KeyEvent * pKeyEvent = static_cast< ::KeyEvent * >(
static_cast< ::VclWindowEvent const * >(pEvent)->GetData());
diff --git a/toolkit/source/awt/vclxtopwindow.cxx b/toolkit/source/awt/vclxtopwindow.cxx
index 61e89fae8165..746163c9f6e3 100644
--- a/toolkit/source/awt/vclxtopwindow.cxx
+++ b/toolkit/source/awt/vclxtopwindow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -252,9 +252,9 @@ void SAL_CALL VCLXTopWindow_Base::setDisplay( ::sal_Int32 _display ) throw (Runt
pWindow->SetScreenNumber( _display );
}
-// ----------------------------------------------------
-// class VCLXTopWindow
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXTopWindow
+// ----------------------------------------------------
void VCLXTopWindow::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 8b6587627a67..d52ed9f09633 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -138,15 +138,15 @@ private:
::osl::Mutex maListenerContainerMutex;
::cppu::OInterfaceContainerHelper maWindow2Listeners;
::cppu::OInterfaceContainerHelper maDockableWindowListeners;
- EventListenerMultiplexer maEventListeners;
- FocusListenerMultiplexer maFocusListeners;
- WindowListenerMultiplexer maWindowListeners;
- KeyListenerMultiplexer maKeyListeners;
- MouseListenerMultiplexer maMouseListeners;
- MouseMotionListenerMultiplexer maMouseMotionListeners;
- PaintListenerMultiplexer maPaintListeners;
- VclContainerListenerMultiplexer maContainerListeners;
- TopWindowListenerMultiplexer maTopWindowListeners;
+ EventListenerMultiplexer maEventListeners;
+ FocusListenerMultiplexer maFocusListeners;
+ WindowListenerMultiplexer maWindowListeners;
+ KeyListenerMultiplexer maKeyListeners;
+ MouseListenerMultiplexer maMouseListeners;
+ MouseMotionListenerMultiplexer maMouseMotionListeners;
+ PaintListenerMultiplexer maPaintListeners;
+ VclContainerListenerMultiplexer maContainerListeners;
+ TopWindowListenerMultiplexer maTopWindowListeners;
CallbackArray maCallbackEvents;
ULONG mnCallbackEventId;
@@ -215,11 +215,11 @@ public:
inline FocusListenerMultiplexer& getFocusListeners() { return maFocusListeners; }
inline WindowListenerMultiplexer& getWindowListeners() { return maWindowListeners; }
inline KeyListenerMultiplexer& getKeyListeners() { return maKeyListeners; }
- inline MouseListenerMultiplexer& getMouseListeners() { return maMouseListeners; }
+ inline MouseListenerMultiplexer& getMouseListeners() { return maMouseListeners; }
inline MouseMotionListenerMultiplexer& getMouseMotionListeners() { return maMouseMotionListeners; }
- inline PaintListenerMultiplexer& getPaintListeners() { return maPaintListeners; }
+ inline PaintListenerMultiplexer& getPaintListeners() { return maPaintListeners; }
inline VclContainerListenerMultiplexer& getContainerListeners() { return maContainerListeners; }
- inline TopWindowListenerMultiplexer& getTopWindowListeners() { return maTopWindowListeners; }
+ inline TopWindowListenerMultiplexer& getTopWindowListeners() { return maTopWindowListeners; }
virtual ~VCLXWindowImpl();
@@ -393,9 +393,9 @@ void ImplInitWindowEvent( ::com::sun::star::awt::WindowEvent& rEvent, Window* pW
pWindow->GetBorder( rEvent.LeftInset, rEvent.TopInset, rEvent.RightInset, rEvent.BottomInset );
}
-// ----------------------------------------------------
-// class VCLXWindow
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXWindow
+// ----------------------------------------------------
DBG_NAME(VCLXWindow);
@@ -449,7 +449,7 @@ void VCLXWindow::SetWindow( Window* pWindow )
sal_Bool bDirectVisible = pWindow ? pWindow->IsVisible() : false;
mpImpl->setDirectVisible( bDirectVisible );
}
-
+
}
void VCLXWindow::suspendVclEventListening( )
@@ -639,11 +639,11 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
case VCLEVENT_CONTROL_GETFOCUS:
case VCLEVENT_WINDOW_GETFOCUS:
{
- if ( ( rVclWindowEvent.GetWindow()->IsCompoundControl()
- && rVclWindowEvent.GetId() == VCLEVENT_CONTROL_GETFOCUS
+ if ( ( rVclWindowEvent.GetWindow()->IsCompoundControl()
+ && rVclWindowEvent.GetId() == VCLEVENT_CONTROL_GETFOCUS
)
- || ( !rVclWindowEvent.GetWindow()->IsCompoundControl()
- && rVclWindowEvent.GetId() == VCLEVENT_WINDOW_GETFOCUS
+ || ( !rVclWindowEvent.GetWindow()->IsCompoundControl()
+ && rVclWindowEvent.GetId() == VCLEVENT_WINDOW_GETFOCUS
)
)
{
@@ -661,11 +661,11 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
case VCLEVENT_CONTROL_LOSEFOCUS:
case VCLEVENT_WINDOW_LOSEFOCUS:
{
- if ( ( rVclWindowEvent.GetWindow()->IsCompoundControl()
- && rVclWindowEvent.GetId() == VCLEVENT_CONTROL_LOSEFOCUS
+ if ( ( rVclWindowEvent.GetWindow()->IsCompoundControl()
+ && rVclWindowEvent.GetId() == VCLEVENT_CONTROL_LOSEFOCUS
)
- || ( !rVclWindowEvent.GetWindow()->IsCompoundControl()
- && rVclWindowEvent.GetId() == VCLEVENT_WINDOW_LOSEFOCUS
+ || ( !rVclWindowEvent.GetWindow()->IsCompoundControl()
+ && rVclWindowEvent.GetId() == VCLEVENT_WINDOW_LOSEFOCUS
)
)
{
@@ -744,7 +744,7 @@ void VCLXWindow::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
// COMMAND_CONTEXTMENU als mousePressed mit PopupTrigger = sal_True versenden...
Point aWhere = static_cast< CommandEvent* >( rVclWindowEvent.GetData() )->GetMousePosPixel();
if ( !pCmdEvt->IsMouseEvent() )
- { // for keyboard events, we set the coordinates to -1,-1. This is a slight HACK, but the current API
+ { // for keyboard events, we set the coordinates to -1,-1. This is a slight HACK, but the current API
// handles a context menu command as special case of a mouse event, which is simply wrong.
// Without extending the API, we would not have another chance to notify listeners of a
// keyboard-triggered context menu request
@@ -992,7 +992,7 @@ void VCLXWindow::dispose( ) throw(::com::sun::star::uno::RuntimeException)
if ( GetWindow() )
{
OutputDevice* pOutDev = GetOutputDevice();
- SetWindow( NULL ); // Damit ggf. Handler abgemeldet werden (virtuell).
+ SetWindow( NULL ); // Damit ggf. Handler abgemeldet werden (virtuell).
SetOutputDevice( pOutDev );
DestroyOutputDevice();
}
@@ -1398,7 +1398,7 @@ void VCLXWindow::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds, bool bWithDe
// some properties are not included in the FontDescriptor, but everytime
// when we have a FontDescriptor we want to have these properties too.
// => Easier to register the here, istead everywhere where I register the FontDescriptor...
-
+
rIds.push_back( BASEPROPERTY_TEXTCOLOR );
rIds.push_back( BASEPROPERTY_TEXTLINECOLOR );
rIds.push_back( BASEPROPERTY_FONTRELIEF );
@@ -1578,7 +1578,7 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com::
if (aText.getLength())
pWindow->SetText( aText );
break;
-
+
default:
pWindow->SetText( aText );
break;
@@ -1617,7 +1617,7 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com::
::rtl::OUString aHelpText;
if ( Value >>= aHelpText )
{
- pWindow->SetQuickHelpText( aHelpText );
+ pWindow->SetQuickHelpText( aHelpText );
}
}
break;
@@ -1687,9 +1687,9 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com::
pWindow->SetPaintTransparent( TRUE );
break;
}
-
+
default:
- {
+ {
// default code which enables transparency for
// compound controls. It's not real transparency
// as most of these controls repaint their client
@@ -1720,7 +1720,7 @@ void VCLXWindow::setProperty( const ::rtl::OUString& PropertyName, const ::com::
pWindow->SetPaintTransparent( FALSE );
default: ;
}
- pWindow->Invalidate(); // Falls das Control nicht drauf reagiert
+ pWindow->Invalidate(); // Falls das Control nicht drauf reagiert
}
}
break;
@@ -2330,7 +2330,7 @@ void VCLXWindow::draw( sal_Int32 nX, sal_Int32 nY ) throw(::com::sun::star::uno:
Window* pWindow = GetWindow();
if ( !pWindow )
return;
-
+
if ( isDesignMode() || mpImpl->isEnableVisible() )
{
TabPage* pTabPage = dynamic_cast< TabPage* >( pWindow );
@@ -2444,7 +2444,7 @@ void SAL_CALL VCLXWindow::disposing( const ::com::sun::star::lang::EventObject&
uno::Reference< uno::XInterface > xSource( _rSource.Source, uno::UNO_QUERY );
if ( aAC.get() == xSource.get() )
- { // yep, it does
+ { // yep, it does
mpImpl->mxAccessibleContext = uno::Reference< accessibility::XAccessibleContext >();
}
}
@@ -2455,7 +2455,7 @@ void SAL_CALL VCLXWindow::disposing( const ::com::sun::star::lang::EventObject&
using namespace ::com::sun::star;
::osl::SolarGuard aGuard( GetMutex() );
-
+
// already disposed
if( ! mpImpl )
return uno::Reference< accessibility::XAccessibleContext >();
diff --git a/toolkit/source/awt/vclxwindow1.cxx b/toolkit/source/awt/vclxwindow1.cxx
index f97f11f9320d..00d728ad43e4 100644
--- a/toolkit/source/awt/vclxwindow1.cxx
+++ b/toolkit/source/awt/vclxwindow1.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle )
Window *pWindow = GetWindow();
if ( pWindow->GetType() != WINDOW_WORKWINDOW )
{
- ::com::sun::star::uno::Exception *pException =
+ ::com::sun::star::uno::Exception *pException =
new ::com::sun::star::uno::RuntimeException;
pException->Message = ::rtl::OUString::createFromAscii( "not a work window" );
throw pException;
@@ -92,7 +92,7 @@ void VCLXWindow::SetSystemParent_Impl( const com::sun::star::uno::Any& rHandle )
throw pException;
}
// create system parent data
- SystemParentData aSysParentData;
+ SystemParentData aSysParentData;
aSysParentData.nSize = sizeof ( SystemParentData );
#if defined( WIN ) || defined( WNT ) || defined ( OS2 )
aSysParentData.hWnd = (HWND) nHandle;
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index d3fd77d602b5..bbe45fb36a75 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -205,9 +205,9 @@ namespace toolkit
}
}
-// ----------------------------------------------------
-// class VCLXGraphicControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXGraphicControl
+// ----------------------------------------------------
void VCLXGraphicControl::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -335,8 +335,8 @@ void VCLXGraphicControl::setProperty( const ::rtl::OUString& PropertyName, const
}
//--------------------------------------------------------------------
-// class VCLXButton
-// ----------------------------------------------------
+// class VCLXButton
+// ----------------------------------------------------
void VCLXButton::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -620,9 +620,9 @@ void VCLXButton::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
}
}
-// ----------------------------------------------------
-// class VCLXImageControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXImageControl
+// ----------------------------------------------------
void VCLXImageControl::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -751,9 +751,9 @@ void VCLXImageControl::setProperty( const ::rtl::OUString& PropertyName, const :
return aProp;
}
-// ----------------------------------------------------
-// class VCLXCheckBox
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXCheckBox
+// ----------------------------------------------------
void VCLXCheckBox::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
@@ -1054,9 +1054,9 @@ void VCLXCheckBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
}
}
-// ----------------------------------------------------
-// class VCLXRadioButton
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXRadioButton
+// ----------------------------------------------------
void VCLXRadioButton::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
PushPropertyIds( rIds,
@@ -1345,9 +1345,9 @@ void VCLXRadioButton::ImplClickedOrToggled( BOOL bToggled )
return maActionListeners.getElements()[0];
}
-// ----------------------------------------------------
-// class VCLXSpinField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXSpinField
+// ----------------------------------------------------
void VCLXSpinField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
PushPropertyIds( rIds,
@@ -1480,9 +1480,9 @@ void VCLXSpinField::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
}
-// ----------------------------------------------------
-// class VCLXListBox
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXListBox
+// ----------------------------------------------------
void VCLXListBox::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
PushPropertyIds( rIds,
@@ -2195,9 +2195,9 @@ void SAL_CALL VCLXListBox::disposing( const EventObject& i_rEvent ) throw (Runti
VCLXWindow::disposing( i_rEvent );
}
-// ----------------------------------------------------
-// class VCLXMessageBox
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXMessageBox
+// ----------------------------------------------------
void VCLXMessageBox::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -2280,9 +2280,9 @@ sal_Int16 VCLXMessageBox::execute() throw(::com::sun::star::uno::RuntimeExceptio
return ::com::sun::star::awt::Size( 250, 100 );
}
-// ----------------------------------------------------
-// class VCLXDialog
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXDialog
+// ----------------------------------------------------
void VCLXDialog::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
VCLXTopWindow::ImplGetPropertyIds( rIds );
@@ -2498,9 +2498,9 @@ throw(::com::sun::star::uno::RuntimeException)
}
}
-// ----------------------------------------------------
-// class VCLXTabPage
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXTabPage
+// ----------------------------------------------------
VCLXTabPage::VCLXTabPage()
{
}
@@ -2594,9 +2594,9 @@ throw(::com::sun::star::uno::RuntimeException)
}
}
-// ----------------------------------------------------
+// ----------------------------------------------------
// class VCLXFixedHyperlink
-// ----------------------------------------------------
+// ----------------------------------------------------
VCLXFixedHyperlink::VCLXFixedHyperlink() :
maActionListeners( *this )
@@ -3029,9 +3029,9 @@ short VCLXFixedText::getAlignment() throw(::com::sun::star::uno::RuntimeExceptio
return VCLUnoHelper::ConvertToAWTSize( aAdjustedSize );
}
-// ----------------------------------------------------
-// class VCLXScrollBar
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXScrollBar
+// ----------------------------------------------------
void VCLXScrollBar::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
PushPropertyIds( rIds,
@@ -3507,9 +3507,9 @@ void VCLXScrollBar::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
}
-// ----------------------------------------------------
-// class VCLXEdit
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXEdit
+// ----------------------------------------------------
void VCLXEdit::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -3885,9 +3885,9 @@ void VCLXEdit::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
}
}
-// ----------------------------------------------------
-// class VCLXComboBox
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXComboBox
+// ----------------------------------------------------
void VCLXComboBox::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -4205,7 +4205,7 @@ void VCLXComboBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
::com::sun::star::awt::ActionEvent aEvent;
aEvent.Source = (::cppu::OWeakObject*)this;
-// aEvent.ActionCommand = ...;
+// aEvent.ActionCommand = ...;
maActionListeners.actionPerformed( aEvent );
}
break;
@@ -4377,9 +4377,9 @@ void SAL_CALL VCLXComboBox::disposing( const EventObject& i_rEvent ) throw (Runt
VCLXEdit::disposing( i_rEvent );
}
-// ----------------------------------------------------
-// class VCLXFormattedSpinField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXFormattedSpinField
+// ----------------------------------------------------
void VCLXFormattedSpinField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
// Interestingly in the UnoControl API this is
@@ -4482,9 +4482,9 @@ void VCLXFormattedSpinField::setProperty( const ::rtl::OUString& PropertyName, c
}
-// ----------------------------------------------------
-// class VCLXDateField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXDateField
+// ----------------------------------------------------
void VCLXDateField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -4826,9 +4826,9 @@ sal_Bool VCLXDateField::isStrictFormat() throw(::com::sun::star::uno::RuntimeExc
}
-// ----------------------------------------------------
-// class VCLXTimeField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXTimeField
+// ----------------------------------------------------
void VCLXTimeField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -5129,9 +5129,9 @@ void VCLXTimeField::setProperty( const ::rtl::OUString& PropertyName, const ::co
return aProp;
}
-// ----------------------------------------------------
-// class VCLXNumericField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXNumericField
+// ----------------------------------------------------
void VCLXNumericField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -5722,9 +5722,9 @@ void VCLXMetricField::setProperty( const ::rtl::OUString& PropertyName, const ::
}
-// ----------------------------------------------------
-// class VCLXCurrencyField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXCurrencyField
+// ----------------------------------------------------
void VCLXCurrencyField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -6078,9 +6078,9 @@ void VCLXCurrencyField::setProperty( const ::rtl::OUString& PropertyName, const
return aProp;
}
-// ----------------------------------------------------
-// class VCLXPatternField
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXPatternField
+// ----------------------------------------------------
void VCLXPatternField::ImplGetPropertyIds( std::list< sal_uInt16 > &rIds )
{
@@ -6141,7 +6141,7 @@ void VCLXPatternField::setMasks( const ::rtl::OUString& EditMask, const ::rtl::O
PatternField* pPatternField = (PatternField*) GetWindow();
if ( pPatternField )
{
- pPatternField->SetMask( ByteString( UniString( EditMask ), RTL_TEXTENCODING_ASCII_US ), LiteralMask );
+ pPatternField->SetMask( ByteString( UniString( EditMask ), RTL_TEXTENCODING_ASCII_US ), LiteralMask );
}
}
@@ -6252,9 +6252,9 @@ void VCLXPatternField::setProperty( const ::rtl::OUString& PropertyName, const :
return aProp;
}
-// ----------------------------------------------------
-// class VCLXToolBox
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLXToolBox
+// ----------------------------------------------------
VCLXToolBox::VCLXToolBox()
{
}
diff --git a/toolkit/source/awt/xsimpleanimation.cxx b/toolkit/source/awt/xsimpleanimation.cxx
index 925fe57b3436..ad56e1717f2d 100644
--- a/toolkit/source/awt/xsimpleanimation.cxx
+++ b/toolkit/source/awt/xsimpleanimation.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ namespace toolkit
{
mpThrobber->start();
}
-
+
//--------------------------------------------------------------------
void SAL_CALL XSimpleAnimation::stop() throw ( uno::RuntimeException )
{
@@ -116,7 +116,7 @@ namespace toolkit
mnStepTime = nStepTime;
mpThrobber->setStepTime( mnStepTime );
}
-
+
break;
}
case BASEPROPERTY_REPEAT: {
@@ -133,7 +133,7 @@ namespace toolkit
}
}
}
-
+
//--------------------------------------------------------------------
uno::Any SAL_CALL XSimpleAnimation::getProperty( const ::rtl::OUString& PropertyName )
throw( uno::RuntimeException )
diff --git a/toolkit/source/awt/xthrobber.cxx b/toolkit/source/awt/xthrobber.cxx
index 01527839d75f..112fad327f43 100644
--- a/toolkit/source/awt/xthrobber.cxx
+++ b/toolkit/source/awt/xthrobber.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ namespace toolkit
{
mpThrobber->start();
}
-
+
//--------------------------------------------------------------------
void SAL_CALL XThrobber::stop() throw ( uno::RuntimeException )
{
@@ -115,7 +115,7 @@ namespace toolkit
VCLXWindow::setProperty( PropertyName, Value );
}
}
-
+
//--------------------------------------------------------------------
uno::Any SAL_CALL XThrobber::getProperty( const ::rtl::OUString& PropertyName )
throw( uno::RuntimeException )
@@ -150,7 +150,7 @@ namespace toolkit
mpThrobber->setImageList( aImageList );
}
-
+
//........................................................................
} // namespace toolkit
//........................................................................
diff --git a/toolkit/source/awt/xthrobber.hrc b/toolkit/source/awt/xthrobber.hrc
index 32c068ff8a85..5fa6bdede24b 100644
--- a/toolkit/source/awt/xthrobber.hrc
+++ b/toolkit/source/awt/xthrobber.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/awt/xthrobber.src b/toolkit/source/awt/xthrobber.src
index 199b25015056..cf3522cfb707 100644
--- a/toolkit/source/awt/xthrobber.src
+++ b/toolkit/source/awt/xthrobber.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/controls/accessiblecontrolcontext.cxx b/toolkit/source/controls/accessiblecontrolcontext.cxx
index 4cd86d028205..ce48809c1a74 100644
--- a/toolkit/source/controls/accessiblecontrolcontext.cxx
+++ b/toolkit/source/controls/accessiblecontrolcontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ namespace toolkit
m_xControlModel = m_xControlModel.query( xControl->getModel() );
OSL_ENSURE( m_xControlModel.is(), "OAccessibleControlContext::Init: invalid creator (no control, or control without model!" );
if ( !m_xControlModel.is() )
- throw DisposedException(); // caught by the caller (the create method)
+ throw DisposedException(); // caught by the caller (the create method)
// start listening at the model
startModelListening();
@@ -190,7 +190,7 @@ namespace toolkit
pStateSet = new ::utl::AccessibleStateSetHelper( implGetForeignControlledStates() );
}
else
- { // only the DEFUNC state if we're already disposed
+ { // only the DEFUNC state if we're already disposed
pStateSet = new ::utl::AccessibleStateSetHelper;
pStateSet->AddState( AccessibleStateType::DEFUNC );
}
@@ -215,7 +215,7 @@ namespace toolkit
}
//--------------------------------------------------------------------
- ::rtl::OUString OAccessibleControlContext::getModelStringProperty( const sal_Char* _pPropertyName )
+ ::rtl::OUString OAccessibleControlContext::getModelStringProperty( const sal_Char* _pPropertyName )
{
::rtl::OUString sReturn;
try
@@ -235,7 +235,7 @@ namespace toolkit
}
//--------------------------------------------------------------------
- Window* OAccessibleControlContext::implGetWindow( Reference< awt::XWindow >* _pxUNOWindow ) const
+ Window* OAccessibleControlContext::implGetWindow( Reference< awt::XWindow >* _pxUNOWindow ) const
{
Reference< awt::XControl > xControl( getAccessibleCreator(), UNO_QUERY );
Reference< awt::XWindow > xWindow;
@@ -376,7 +376,7 @@ namespace toolkit
}
//........................................................................
-} //namespace toolkit
+} //namespace toolkit
//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index b80222108594..b99a377109ad 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -171,7 +171,7 @@ public:
struct CloneControlModel : public ::std::unary_function< UnoControlDialogModel::UnoControlModelHolder, void >
{
private:
- UnoControlDialogModel::UnoControlModelHolderList& m_rTargetList;
+ UnoControlDialogModel::UnoControlModelHolderList& m_rTargetList;
public:
CloneControlModel( UnoControlDialogModel::UnoControlModelHolderList& _rTargetList )
@@ -206,19 +206,19 @@ public:
// ----------------------------------------------------------------------------
static void lcl_throwIllegalArgumentException( )
-{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
+{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
throw IllegalArgumentException();
}
// ----------------------------------------------------------------------------
static void lcl_throwNoSuchElementException( )
-{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
+{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
throw NoSuchElementException();
}
// ----------------------------------------------------------------------------
static void lcl_throwElementExistException( )
-{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
+{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
throw ElementExistException();
}
@@ -236,20 +236,20 @@ static const ::rtl::OUString& getStepPropertyName( )
return s_sStepProperty;
}
-// ----------------------------------------------------
-// class UnoControlDialogModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlDialogModel
+// ----------------------------------------------------
UnoControlDialogModel::UnoControlDialogModel()
:maContainerListeners( *this )
,maChangeListeners ( GetMutex() )
,mbGroupsUpToDate( sal_False ), mbAdjustingGraphic( false )
{
ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
-// ImplRegisterProperty( BASEPROPERTY_BORDER );
+// ImplRegisterProperty( BASEPROPERTY_BORDER );
ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL );
ImplRegisterProperty( BASEPROPERTY_ENABLED );
ImplRegisterProperty( BASEPROPERTY_FONTDESCRIPTOR );
-// ImplRegisterProperty( BASEPROPERTY_PRINTABLE );
+// ImplRegisterProperty( BASEPROPERTY_PRINTABLE );
ImplRegisterProperty( BASEPROPERTY_HELPTEXT );
ImplRegisterProperty( BASEPROPERTY_HELPURL );
ImplRegisterProperty( BASEPROPERTY_TITLE );
@@ -387,9 +387,9 @@ void SAL_CALL UnoControlDialogModel::dispose( ) throw(RuntimeException)
::std::vector< Reference< XControlModel > > aChildModels( maModels.size() );
::std::transform(
- maModels.begin(), maModels.end(), // source range
- aChildModels.begin(), // target location
- ::std::select1st< UnoControlModelHolder >( ) // operation to apply -> select the XControlModel part
+ maModels.begin(), maModels.end(), // source range
+ aChildModels.begin(), // target location
+ ::std::select1st< UnoControlModelHolder >( ) // operation to apply -> select the XControlModel part
);
// now dispose
@@ -622,9 +622,9 @@ Sequence< ::rtl::OUString > UnoControlDialogModel::getElementNames() throw(Runti
Sequence< ::rtl::OUString > aNames( maModels.size() );
::std::transform(
- maModels.begin(), maModels.end(), // source range
- aNames.getArray(), // target range
- ::std::select2nd< UnoControlModelHolder >() // operator to apply: select the second element (the name)
+ maModels.begin(), maModels.end(), // source range
+ aNames.getArray(), // target range
+ ::std::select2nd< UnoControlModelHolder >() // operator to apply: select the second element (the name)
);
return aNames;
@@ -791,7 +791,7 @@ Sequence< Reference< XControlModel > > SAL_CALL UnoControlDialogModel::getContro
// has it?
if ( xPSI.is() && xPSI->hasPropertyByName( getTabIndexPropertyName() ) )
- { // yes
+ { // yes
sal_Int32 nTabIndex = -1;
xControlProps->getPropertyValue( getTabIndexPropertyName() ) >>= nTabIndex;
@@ -913,8 +913,8 @@ void UnoControlDialogModel::implNotifyTabModelChange( const ::rtl::OUString& _rA
// the changes event
ChangesEvent aEvent;
aEvent.Source = *this;
- aEvent.Base <<= aEvent.Source; // the "base of the changes root" is also ourself
- aEvent.Changes.realloc( 1 ); // exactly one change
+ aEvent.Base <<= aEvent.Source; // the "base of the changes root" is also ourself
+ aEvent.Changes.realloc( 1 ); // exactly one change
aEvent.Changes[ 0 ].Accessor <<= _rAccessor;
@@ -1007,10 +1007,10 @@ void UnoControlDialogModel::implUpdateGroupStructure()
// in extreme we have as much groups as controls
maGroups.reserve( aControlModels.getLength() );
- GroupingMachineState eState = eLookingForGroup; // the current state of our machine
- Reference< XServiceInfo > xModelSI; // for checking for a radion button
+ GroupingMachineState eState = eLookingForGroup; // the current state of our machine
+ Reference< XServiceInfo > xModelSI; // for checking for a radion button
ModelGroup* aCurrentGroup = NULL; // the group which we're currently building
- sal_Bool bIsRadioButton; // is it a radio button?
+ sal_Bool bIsRadioButton; // is it a radio button?
const ::rtl::OUString GROUP_NAME( RTL_CONSTASCII_USTRINGPARAM( "GroupName" ) );
@@ -1054,7 +1054,7 @@ void UnoControlDialogModel::implUpdateGroupStructure()
case eExpandingGroup:
{
if ( !bIsRadioButton )
- { // no radio button -> the group is done
+ { // no radio button -> the group is done
aCurrentGroup = NULL;
eState = eLookingForGroup;
#if OSL_DEBUG_LEVEL > 1
@@ -1493,7 +1493,7 @@ void UnoDialogControl::ImplSetPosSize( Reference< XControl >& rxCtrl )
}
sal_Int16 nH = aFM.Ascent + aFM.Descent;
- sal_Int16 nW = nH/2; // calculate avarage width?!
+ sal_Int16 nW = nH/2; // calculate avarage width?!
nX *= nW;
nX /= 4;
@@ -1561,9 +1561,9 @@ sal_Bool UnoDialogControl::setModel( const Reference< XControlModel >& rxModel )
// destroy the old tab controller, if existent
if ( mxTabController.is() )
{
- mxTabController->setModel( NULL ); // just to be sure, should not be necessary
+ mxTabController->setModel( NULL ); // just to be sure, should not be necessary
removeTabController( mxTabController );
- ::comphelper::disposeComponent( mxTabController ); // just to be sure, should not be necessary
+ ::comphelper::disposeComponent( mxTabController ); // just to be sure, should not be necessary
mxTabController.clear();
}
@@ -1995,7 +1995,7 @@ void UnoDialogControl::ImplUpdateResourceResolver()
&& ( xStringResourceResolver == xCurrStringResourceResolver )
)
{
- Reference< XMultiPropertySet > xMultiPropSet( xPropertySet, UNO_QUERY );
+ Reference< XMultiPropertySet > xMultiPropSet( xPropertySet, UNO_QUERY );
Reference< XPropertiesChangeListener > xListener( xPropertySet, UNO_QUERY );
xMultiPropSet->firePropertiesChangeEvent( aPropNames, xListener );
}
@@ -2012,7 +2012,7 @@ void UnoDialogControl::ImplUpdateResourceResolver()
Reference< XPropertySet > xPropertySet( getModel(), UNO_QUERY );
if ( xPropertySet.is() )
{
- Reference< XMultiPropertySet > xMultiPropSet( xPropertySet, UNO_QUERY );
+ Reference< XMultiPropertySet > xMultiPropSet( xPropertySet, UNO_QUERY );
Reference< XPropertiesChangeListener > xListener( xPropertySet, UNO_QUERY );
xMultiPropSet->firePropertiesChangeEvent( lcl_getLanguageDependentProperties(), xListener );
}
@@ -2132,9 +2132,9 @@ throw (RuntimeException)
ImplUpdateResourceResolver();
}
-// ----------------------------------------------------
-// Helper Method to convert relative url to physical location
-// ----------------------------------------------------
+// ----------------------------------------------------
+// Helper Method to convert relative url to physical location
+// ----------------------------------------------------
::rtl::OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl )
{
diff --git a/toolkit/source/controls/eventcontainer.cxx b/toolkit/source/controls/eventcontainer.cxx
index ef860a33b7ac..653f14958cbb 100644
--- a/toolkit/source/controls/eventcontainer.cxx
+++ b/toolkit/source/controls/eventcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ using namespace std;
namespace toolkit
{
-
+
// Methods XElementAccess
Type NameContainer_Impl::getElementType()
throw(RuntimeException)
@@ -61,7 +61,7 @@ Type NameContainer_Impl::getElementType()
return mType;
}
-sal_Bool NameContainer_Impl::hasElements()
+sal_Bool NameContainer_Impl::hasElements()
throw(RuntimeException)
{
sal_Bool bRet = (mnElementCount > 0);
@@ -69,7 +69,7 @@ sal_Bool NameContainer_Impl::hasElements()
}
// Methods XNameAccess
-Any NameContainer_Impl::getByName( const OUString& aName )
+Any NameContainer_Impl::getByName( const OUString& aName )
throw(NoSuchElementException, WrappedTargetException, RuntimeException)
{
NameContainerNameMap::iterator aIt = mHashMap.find( aName );
@@ -88,7 +88,7 @@ Sequence< OUString > NameContainer_Impl::getElementNames()
return mNames;
}
-sal_Bool NameContainer_Impl::hasByName( const OUString& aName )
+sal_Bool NameContainer_Impl::hasByName( const OUString& aName )
throw(RuntimeException)
{
NameContainerNameMap::iterator aIt = mHashMap.find( aName );
@@ -98,7 +98,7 @@ sal_Bool NameContainer_Impl::hasByName( const OUString& aName )
// Methods XNameReplace
-void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aElement )
+void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aElement )
throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException)
{
Type aAnyType = aElement.getValueType();
@@ -115,7 +115,7 @@ void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aEleme
mValues.getArray()[ iHashResult ] = aElement;
// Fire event
- ContainerEvent aEvent;
+ ContainerEvent aEvent;
aEvent.Source = *this;
aEvent.Element <<= aElement;
aEvent.ReplacedElement = aOldElement;
@@ -125,7 +125,7 @@ void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aEleme
// Methods XNameContainer
-void NameContainer_Impl::insertByName( const OUString& aName, const Any& aElement )
+void NameContainer_Impl::insertByName( const OUString& aName, const Any& aElement )
throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException)
{
Type aAnyType = aElement.getValueType();
@@ -146,14 +146,14 @@ void NameContainer_Impl::insertByName( const OUString& aName, const Any& aElemen
mHashMap[ aName ] = nCount;
// Fire event
- ContainerEvent aEvent;
+ ContainerEvent aEvent;
aEvent.Source = *this;
aEvent.Element <<= aElement;
aEvent.Accessor <<= aName;
maContainerListeners.elementInserted( aEvent );
}
-void NameContainer_Impl::removeByName( const OUString& Name )
+void NameContainer_Impl::removeByName( const OUString& Name )
throw(NoSuchElementException, WrappedTargetException, RuntimeException)
{
NameContainerNameMap::iterator aIt = mHashMap.find( Name );
@@ -166,7 +166,7 @@ void NameContainer_Impl::removeByName( const OUString& Name )
Any aOldElement = mValues.getConstArray()[ iHashResult ];
// Fire event
- ContainerEvent aEvent;
+ ContainerEvent aEvent;
aEvent.Source = *this;
aEvent.Element = aOldElement;
aEvent.Accessor <<= Name;
diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx
index b82b8b4be2c0..1c2416dc489b 100644
--- a/toolkit/source/controls/formattedcontrol.cxx
+++ b/toolkit/source/controls/formattedcontrol.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ namespace toolkit
const Reference< XNumberFormatsSupplier >& lcl_getDefaultFormats_throw()
{
::osl::MutexGuard aGuard( getDefaultFormatsMutex() );
-
+
bool& rbTriedCreation = lcl_getTriedCreation();
Reference< XNumberFormatsSupplier >& rDefaultFormats( lcl_getDefaultFormatsAccess_nothrow() );
if ( !rDefaultFormats.is() && !rbTriedCreation )
@@ -376,7 +376,7 @@ namespace toolkit
throw IllegalArgumentException(
( ::rtl::OUString::createFromAscii("Unable to convert the given value for the property ")
- += GetPropertyName((sal_uInt16)nPropId) )
+ += GetPropertyName((sal_uInt16)nPropId) )
+= ::rtl::OUString::createFromAscii(" (double, integer, or string expected)."),
static_cast< XPropertySet* >(this),
1);
@@ -416,7 +416,7 @@ namespace toolkit
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -459,13 +459,13 @@ namespace toolkit
aValues[1] = xPeer->getProperty( aNames[1] );
ImplSetPropertyValues( aNames, aValues, FALSE );
-
+
if ( GetTextListeners().getLength() )
GetTextListeners().textChanged( e );
}
//........................................................................
-} // namespace toolkit
+} // namespace toolkit
//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx
index 5349e311c86a..578312290743 100644
--- a/toolkit/source/controls/geometrycontrolmodel.cxx
+++ b/toolkit/source/controls/geometrycontrolmodel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,27 +43,27 @@
#include <comphelper/sequence.hxx>
-#define GCM_PROPERTY_ID_POS_X 1
-#define GCM_PROPERTY_ID_POS_Y 2
-#define GCM_PROPERTY_ID_WIDTH 3
-#define GCM_PROPERTY_ID_HEIGHT 4
-#define GCM_PROPERTY_ID_NAME 5
-#define GCM_PROPERTY_ID_TABINDEX 6
-#define GCM_PROPERTY_ID_STEP 7
-#define GCM_PROPERTY_ID_TAG 8
+#define GCM_PROPERTY_ID_POS_X 1
+#define GCM_PROPERTY_ID_POS_Y 2
+#define GCM_PROPERTY_ID_WIDTH 3
+#define GCM_PROPERTY_ID_HEIGHT 4
+#define GCM_PROPERTY_ID_NAME 5
+#define GCM_PROPERTY_ID_TABINDEX 6
+#define GCM_PROPERTY_ID_STEP 7
+#define GCM_PROPERTY_ID_TAG 8
#define GCM_PROPERTY_ID_RESOURCERESOLVER 9
-#define GCM_PROPERTY_POS_X ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PositionX"))
-#define GCM_PROPERTY_POS_Y ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PositionY"))
-#define GCM_PROPERTY_WIDTH ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Width"))
-#define GCM_PROPERTY_HEIGHT ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Height"))
-#define GCM_PROPERTY_NAME ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Name"))
-#define GCM_PROPERTY_TABINDEX ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TabIndex"))
-#define GCM_PROPERTY_STEP ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Step"))
-#define GCM_PROPERTY_TAG ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Tag"))
-#define GCM_PROPERTY_RESOURCERESOLVER ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ResourceResolver"))
+#define GCM_PROPERTY_POS_X ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PositionX"))
+#define GCM_PROPERTY_POS_Y ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PositionY"))
+#define GCM_PROPERTY_WIDTH ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Width"))
+#define GCM_PROPERTY_HEIGHT ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Height"))
+#define GCM_PROPERTY_NAME ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Name"))
+#define GCM_PROPERTY_TABINDEX ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TabIndex"))
+#define GCM_PROPERTY_STEP ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Step"))
+#define GCM_PROPERTY_TAG ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Tag"))
+#define GCM_PROPERTY_RESOURCERESOLVER ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ResourceResolver"))
-#define DEFAULT_ATTRIBS() PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT
+#define DEFAULT_ATTRIBS() PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT
//........................................................................
// namespace toolkit
@@ -100,7 +100,7 @@
{
m_xAggregate = _pAggregateInstance;
- { // check if the aggregat is cloneable
+ { // check if the aggregat is cloneable
Reference< XCloneable > xCloneAccess(m_xAggregate, UNO_QUERY);
m_bCloneable = xCloneAccess.is();
}
@@ -183,14 +183,14 @@
void OGeometryControlModel_Base::registerProperties()
{
// register our members for the property handling of the OPropertyContainer
- registerProperty(GCM_PROPERTY_POS_X, GCM_PROPERTY_ID_POS_X, DEFAULT_ATTRIBS(), &m_nPosX, ::getCppuType(&m_nPosX));
- registerProperty(GCM_PROPERTY_POS_Y, GCM_PROPERTY_ID_POS_Y, DEFAULT_ATTRIBS(), &m_nPosY, ::getCppuType(&m_nPosY));
- registerProperty(GCM_PROPERTY_WIDTH, GCM_PROPERTY_ID_WIDTH, DEFAULT_ATTRIBS(), &m_nWidth, ::getCppuType(&m_nWidth));
- registerProperty(GCM_PROPERTY_HEIGHT, GCM_PROPERTY_ID_HEIGHT, DEFAULT_ATTRIBS(), &m_nHeight, ::getCppuType(&m_nHeight));
- registerProperty(GCM_PROPERTY_NAME, GCM_PROPERTY_ID_NAME, DEFAULT_ATTRIBS(), &m_aName, ::getCppuType(&m_aName));
- registerProperty(GCM_PROPERTY_TABINDEX, GCM_PROPERTY_ID_TABINDEX, DEFAULT_ATTRIBS(), &m_nTabIndex, ::getCppuType(&m_nTabIndex));
- registerProperty(GCM_PROPERTY_STEP, GCM_PROPERTY_ID_STEP, DEFAULT_ATTRIBS(), &m_nStep, ::getCppuType(&m_nStep));
- registerProperty(GCM_PROPERTY_TAG, GCM_PROPERTY_ID_TAG, DEFAULT_ATTRIBS(), &m_aTag, ::getCppuType(&m_aTag));
+ registerProperty(GCM_PROPERTY_POS_X, GCM_PROPERTY_ID_POS_X, DEFAULT_ATTRIBS(), &m_nPosX, ::getCppuType(&m_nPosX));
+ registerProperty(GCM_PROPERTY_POS_Y, GCM_PROPERTY_ID_POS_Y, DEFAULT_ATTRIBS(), &m_nPosY, ::getCppuType(&m_nPosY));
+ registerProperty(GCM_PROPERTY_WIDTH, GCM_PROPERTY_ID_WIDTH, DEFAULT_ATTRIBS(), &m_nWidth, ::getCppuType(&m_nWidth));
+ registerProperty(GCM_PROPERTY_HEIGHT, GCM_PROPERTY_ID_HEIGHT, DEFAULT_ATTRIBS(), &m_nHeight, ::getCppuType(&m_nHeight));
+ registerProperty(GCM_PROPERTY_NAME, GCM_PROPERTY_ID_NAME, DEFAULT_ATTRIBS(), &m_aName, ::getCppuType(&m_aName));
+ registerProperty(GCM_PROPERTY_TABINDEX, GCM_PROPERTY_ID_TABINDEX, DEFAULT_ATTRIBS(), &m_nTabIndex, ::getCppuType(&m_nTabIndex));
+ registerProperty(GCM_PROPERTY_STEP, GCM_PROPERTY_ID_STEP, DEFAULT_ATTRIBS(), &m_nStep, ::getCppuType(&m_nStep));
+ registerProperty(GCM_PROPERTY_TAG, GCM_PROPERTY_ID_TAG, DEFAULT_ATTRIBS(), &m_aTag, ::getCppuType(&m_aTag));
registerProperty(GCM_PROPERTY_RESOURCERESOLVER, GCM_PROPERTY_ID_RESOURCERESOLVER, DEFAULT_ATTRIBS(), &m_xStrResolver, ::getCppuType(&m_xStrResolver));
}
@@ -198,19 +198,19 @@
::com::sun::star::uno::Any OGeometryControlModel_Base::ImplGetDefaultValueByHandle(sal_Int32 nHandle) const
{
::com::sun::star::uno::Any aDefault;
-
+
switch ( nHandle )
{
- case GCM_PROPERTY_ID_POS_X: aDefault <<= (sal_Int32) 0; break;
- case GCM_PROPERTY_ID_POS_Y: aDefault <<= (sal_Int32) 0; break;
- case GCM_PROPERTY_ID_WIDTH: aDefault <<= (sal_Int32) 0; break;
- case GCM_PROPERTY_ID_HEIGHT: aDefault <<= (sal_Int32) 0; break;
- case GCM_PROPERTY_ID_NAME: aDefault <<= ::rtl::OUString(); break;
- case GCM_PROPERTY_ID_TABINDEX: aDefault <<= (sal_Int16) -1; break;
- case GCM_PROPERTY_ID_STEP: aDefault <<= (sal_Int32) 0; break;
- case GCM_PROPERTY_ID_TAG: aDefault <<= ::rtl::OUString(); break;
+ case GCM_PROPERTY_ID_POS_X: aDefault <<= (sal_Int32) 0; break;
+ case GCM_PROPERTY_ID_POS_Y: aDefault <<= (sal_Int32) 0; break;
+ case GCM_PROPERTY_ID_WIDTH: aDefault <<= (sal_Int32) 0; break;
+ case GCM_PROPERTY_ID_HEIGHT: aDefault <<= (sal_Int32) 0; break;
+ case GCM_PROPERTY_ID_NAME: aDefault <<= ::rtl::OUString(); break;
+ case GCM_PROPERTY_ID_TABINDEX: aDefault <<= (sal_Int16) -1; break;
+ case GCM_PROPERTY_ID_STEP: aDefault <<= (sal_Int32) 0; break;
+ case GCM_PROPERTY_ID_TAG: aDefault <<= ::rtl::OUString(); break;
case GCM_PROPERTY_ID_RESOURCERESOLVER: aDefault <<= Reference< resource::XStringResourceResolver >(); break;
- default: DBG_ERROR( "ImplGetDefaultValueByHandle - unknown Property" );
+ default: DBG_ERROR( "ImplGetDefaultValueByHandle - unknown Property" );
}
return aDefault;
@@ -220,19 +220,19 @@
::com::sun::star::uno::Any OGeometryControlModel_Base::ImplGetPropertyValueByHandle(sal_Int32 nHandle) const
{
::com::sun::star::uno::Any aValue;
-
+
switch ( nHandle )
{
- case GCM_PROPERTY_ID_POS_X: aValue <<= m_nPosX; break;
- case GCM_PROPERTY_ID_POS_Y: aValue <<= m_nPosY; break;
- case GCM_PROPERTY_ID_WIDTH: aValue <<= m_nWidth; break;
- case GCM_PROPERTY_ID_HEIGHT: aValue <<= m_nHeight; break;
- case GCM_PROPERTY_ID_NAME: aValue <<= m_aName; break;
- case GCM_PROPERTY_ID_TABINDEX: aValue <<= m_nTabIndex; break;
- case GCM_PROPERTY_ID_STEP: aValue <<= m_nStep; break;
- case GCM_PROPERTY_ID_TAG: aValue <<= m_aTag; break;
+ case GCM_PROPERTY_ID_POS_X: aValue <<= m_nPosX; break;
+ case GCM_PROPERTY_ID_POS_Y: aValue <<= m_nPosY; break;
+ case GCM_PROPERTY_ID_WIDTH: aValue <<= m_nWidth; break;
+ case GCM_PROPERTY_ID_HEIGHT: aValue <<= m_nHeight; break;
+ case GCM_PROPERTY_ID_NAME: aValue <<= m_aName; break;
+ case GCM_PROPERTY_ID_TABINDEX: aValue <<= m_nTabIndex; break;
+ case GCM_PROPERTY_ID_STEP: aValue <<= m_nStep; break;
+ case GCM_PROPERTY_ID_TAG: aValue <<= m_aTag; break;
case GCM_PROPERTY_ID_RESOURCERESOLVER: aValue <<= m_xStrResolver; break;
- default: DBG_ERROR( "ImplGetPropertyValueByHandle - unknown Property" );
+ default: DBG_ERROR( "ImplGetPropertyValueByHandle - unknown Property" );
}
return aValue;
@@ -240,19 +240,19 @@
//--------------------------------------------------------------------
void OGeometryControlModel_Base::ImplSetPropertyValueByHandle(sal_Int32 nHandle, const :: com::sun::star::uno::Any& aValue)
- {
+ {
switch ( nHandle )
{
- case GCM_PROPERTY_ID_POS_X: aValue >>= m_nPosX; break;
- case GCM_PROPERTY_ID_POS_Y: aValue >>= m_nPosY; break;
- case GCM_PROPERTY_ID_WIDTH: aValue >>= m_nWidth; break;
- case GCM_PROPERTY_ID_HEIGHT: aValue >>= m_nHeight; break;
- case GCM_PROPERTY_ID_NAME: aValue >>= m_aName; break;
- case GCM_PROPERTY_ID_TABINDEX: aValue >>= m_nTabIndex; break;
- case GCM_PROPERTY_ID_STEP: aValue >>= m_nStep; break;
- case GCM_PROPERTY_ID_TAG: aValue >>= m_aTag; break;
+ case GCM_PROPERTY_ID_POS_X: aValue >>= m_nPosX; break;
+ case GCM_PROPERTY_ID_POS_Y: aValue >>= m_nPosY; break;
+ case GCM_PROPERTY_ID_WIDTH: aValue >>= m_nWidth; break;
+ case GCM_PROPERTY_ID_HEIGHT: aValue >>= m_nHeight; break;
+ case GCM_PROPERTY_ID_NAME: aValue >>= m_aName; break;
+ case GCM_PROPERTY_ID_TABINDEX: aValue >>= m_nTabIndex; break;
+ case GCM_PROPERTY_ID_STEP: aValue >>= m_nStep; break;
+ case GCM_PROPERTY_ID_TAG: aValue >>= m_aTag; break;
case GCM_PROPERTY_ID_RESOURCERESOLVER: aValue >>= m_xStrResolver; break;
- default: DBG_ERROR( "ImplSetPropertyValueByHandle - unknown Property" );
+ default: DBG_ERROR( "ImplSetPropertyValueByHandle - unknown Property" );
}
}
@@ -332,7 +332,7 @@
{
OPropertyArrayAggregationHelper& rPH = static_cast<OPropertyArrayAggregationHelper&>(const_cast<OGeometryControlModel_Base*>(this)->getInfoHelper());
::rtl::OUString sPropName;
- sal_Int32 nOriginalHandle = -1;
+ sal_Int32 nOriginalHandle = -1;
if (rPH.fillAggregatePropertyInfoByHandle(&sPropName, &nOriginalHandle, _nHandle))
OPropertySetAggregationHelper::getFastPropertyValue(_rValue, _nHandle);
@@ -392,14 +392,14 @@
// should have been reset
// set properties
- pOwnClone->m_nPosX = m_nPosX;
- pOwnClone->m_nPosY = m_nPosY;
- pOwnClone->m_nWidth = m_nWidth;
- pOwnClone->m_nHeight = m_nHeight;
- pOwnClone->m_aName = m_aName;
- pOwnClone->m_nTabIndex = m_nTabIndex;
- pOwnClone->m_nStep = m_nStep;
- pOwnClone->m_aTag = m_aTag;
+ pOwnClone->m_nPosX = m_nPosX;
+ pOwnClone->m_nPosY = m_nPosY;
+ pOwnClone->m_nWidth = m_nWidth;
+ pOwnClone->m_nHeight = m_nHeight;
+ pOwnClone->m_aName = m_aName;
+ pOwnClone->m_nTabIndex = m_nTabIndex;
+ pOwnClone->m_nStep = m_nStep;
+ pOwnClone->m_aTag = m_aTag;
// Clone event container
@@ -407,13 +407,13 @@
static_cast< ::com::sun::star::script::XScriptEventsSupplier* >( this );
Reference< ::com::sun::star::script::XScriptEventsSupplier > xCloneEventsSupplier =
static_cast< ::com::sun::star::script::XScriptEventsSupplier* >( pOwnClone );
-
+
if( xEventsSupplier.is() && xCloneEventsSupplier.is() )
{
Reference< XNameContainer > xEventCont = xEventsSupplier->getEvents();
Reference< XNameContainer > xCloneEventCont = xCloneEventsSupplier->getEvents();
- ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames =
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > aNames =
xEventCont->getElementNames();
const ::rtl::OUString* pNames = aNames.getConstArray();
sal_Int32 i, nNameCount = aNames.getLength();
@@ -453,8 +453,8 @@
//====================================================================
//--------------------------------------------------------------------
- typedef ::std::hash_map< ::rtl::OUString, sal_Int32, ::comphelper::UStringHash > HashMapString2Int;
- typedef ::std::vector< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > > PropSeqArray;
+ typedef ::std::hash_map< ::rtl::OUString, sal_Int32, ::comphelper::UStringHash > HashMapString2Int;
+ typedef ::std::vector< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > > PropSeqArray;
typedef ::std::vector< ::std::vector< sal_Int32 > > IntArrayArray;
// for creating class-unique PropertySetInfo's, we need some info:
@@ -518,7 +518,7 @@
//--------------------------------------------------------------------
struct PropertyNameEqual : public ::std::unary_function< Property, bool >
{
- const ::rtl::OUString& m_rCompare;
+ const ::rtl::OUString& m_rCompare;
PropertyNameEqual( const ::rtl::OUString& _rCompare ) : m_rCompare( _rCompare ) { }
bool operator()( const Property& _rLHS )
@@ -561,7 +561,7 @@
// look for the current property in the properties of our aggregate
const Property* pAggPropPos = ::std::find_if( pAggProps, pAggPropsEnd, PropertyNameEqual( pProp->Name ) );
if ( pAggPropPos != pAggPropsEnd )
- { // found a duplicate
+ { // found a duplicate
// -> remove from the aggregate property sequence
::comphelper::removeElementAt( aAggregateProps, pAggPropPos - pAggProps );
// which means we have to adjust the pointers
@@ -612,7 +612,7 @@
//--------------------------------------------------------------------
struct Int32Equal : public ::std::unary_function< sal_Int32, bool >
{
- sal_Int32 m_nCompare;
+ sal_Int32 m_nCompare;
Int32Equal( sal_Int32 _nCompare ) : m_nCompare( _nCompare ) { }
bool operator()( sal_Int32 _nLHS )
@@ -648,7 +648,7 @@
}
//........................................................................
-// } // namespace toolkit
+// } // namespace toolkit
//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
index 1716d843a117..d6d99cf4cc40 100644
--- a/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
+++ b/toolkit/source/controls/grid/defaultgridcolumnmodel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -117,14 +117,14 @@ void SAL_CALL DefaultGridColumnModel::setDefaultColumns(sal_Int32 rowElements) t
for(sal_Int32 i=0;i<rowElements;i++)
{
- Reference<XGridColumn> xColumn( m_xFactory->createInstance ( OUString::createFromAscii( "com.sun.star.awt.grid.GridColumn" ) ), UNO_QUERY );
+ Reference<XGridColumn> xColumn( m_xFactory->createInstance ( OUString::createFromAscii( "com.sun.star.awt.grid.GridColumn" ) ), UNO_QUERY );
columns.push_back(xColumn);
xColumn->setIndex(i);
}
}
::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridColumn > SAL_CALL DefaultGridColumnModel::copyColumn(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridColumn > & column) throw (::com::sun::star::uno::RuntimeException)
{
- Reference<XGridColumn> xColumn( m_xFactory->createInstance ( OUString::createFromAscii( "com.sun.star.awt.grid.GridColumn" ) ), UNO_QUERY );
+ Reference<XGridColumn> xColumn( m_xFactory->createInstance ( OUString::createFromAscii( "com.sun.star.awt.grid.GridColumn" ) ), UNO_QUERY );
xColumn->setColumnWidth(column->getColumnWidth());
xColumn->setPreferredWidth(column->getPreferredWidth());
xColumn->setMaxWidth(column->getMaxWidth());
diff --git a/toolkit/source/controls/grid/defaultgridcolumnmodel.hxx b/toolkit/source/controls/grid/defaultgridcolumnmodel.hxx
index 7f01b625e62c..6dbe18e347a3 100644
--- a/toolkit/source/controls/grid/defaultgridcolumnmodel.hxx
+++ b/toolkit/source/controls/grid/defaultgridcolumnmodel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ class DefaultGridColumnModel : public ::cppu::WeakImplHelper2< XGridColumnModel,
public:
DefaultGridColumnModel(const Reference< XMultiServiceFactory >& xFactory);
virtual ~DefaultGridColumnModel();
-
+
// XGridColumnModel
//virtual ::sal_Bool SAL_CALL getColumnSelectionAllowed() throw (::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx
index f59e7a42f768..45714078bd00 100644
--- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx
+++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,9 +77,9 @@ void DefaultGridDataModel::broadcast( broadcast_type eType, const GridDataEvent&
XGridDataListener* pListener = static_cast<XGridDataListener*>(aListIter.next());
switch( eType )
{
- case row_added: pListener->rowAdded(aEvent); break;
- case row_removed: pListener->rowRemoved(aEvent); break;
- case data_changed: pListener->dataChanged(aEvent); break;
+ case row_added: pListener->rowAdded(aEvent); break;
+ case row_removed: pListener->rowRemoved(aEvent); break;
+ case data_changed: pListener->dataChanged(aEvent); break;
}
}
}
@@ -96,7 +96,7 @@ void DefaultGridDataModel::broadcast_changed( ::rtl::OUString name, sal_Int32 in
//---------------------------------------------------------------------
-void DefaultGridDataModel::broadcast_add( sal_Int32 index, const ::rtl::OUString & headerName,
+void DefaultGridDataModel::broadcast_add( sal_Int32 index, const ::rtl::OUString & headerName,
::com::sun::star::uno::Sequence< Any > rowData ) throw (::com::sun::star::uno::RuntimeException)
{
Reference< XInterface > xSource( static_cast< ::cppu::OWeakObject* >( this ) );
@@ -106,7 +106,7 @@ void DefaultGridDataModel::broadcast_add( sal_Int32 index, const ::rtl::OUString
//---------------------------------------------------------------------
-void DefaultGridDataModel::broadcast_remove( sal_Int32 index, const ::rtl::OUString & headerName,
+void DefaultGridDataModel::broadcast_remove( sal_Int32 index, const ::rtl::OUString & headerName,
::com::sun::star::uno::Sequence< Any > rowData ) throw (::com::sun::star::uno::RuntimeException)
{
Reference< XInterface > xSource( static_cast< ::cppu::OWeakObject* >( this ) );
@@ -180,13 +180,13 @@ void SAL_CALL DefaultGridDataModel::addRow(const ::rtl::OUString & headername, c
// store row data
std::vector< Any > newRow;
for ( int i = 0; i < rRowdata.getLength();i++)
- {
+ {
newRow.push_back(rRowdata[i]);
}
data.push_back( newRow );
-
- broadcast_add( data.size()-1, headername, comphelper::containerToSequence(newRow));
+
+ broadcast_add( data.size()-1, headername, comphelper::containerToSequence(newRow));
}
@@ -199,21 +199,21 @@ void SAL_CALL DefaultGridDataModel::removeRow(::sal_Int32 index) throw (::com::s
::rtl::OUString headerName( (::rtl::OUString) rowHeaders[index] );
rowHeaders.erase(rowHeaders.begin() + index);
- Sequence< Any >& rowData ( (Sequence< Any >&)data[index] );
+ Sequence< Any >& rowData ( (Sequence< Any >&)data[index] );
data.erase(data.begin() + index);
- broadcast_remove( index, headerName, rowData);
+ broadcast_remove( index, headerName, rowData);
}
- else
+ else
return;
}
//---------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< Any > > SAL_CALL DefaultGridDataModel::getData() throw (::com::sun::star::uno::RuntimeException)
{
-
+
std::vector< std::vector< Any > >::iterator iterator;
std::vector< Sequence< Any > > dummyContainer(0);
-
+
for(iterator = data.begin(); iterator != data.end(); iterator++)
{
Sequence< Any > cols(comphelper::containerToSequence(*iterator));
@@ -242,7 +242,7 @@ void SAL_CALL DefaultGridDataModel::removeAll() throw (RuntimeException)
{
rowHeaders.clear();
data.clear();
- broadcast_remove( -1, ::rtl::OUString(), 0);
+ broadcast_remove( -1, ::rtl::OUString(), 0);
}
//---------------------------------------------------------------------
void SAL_CALL DefaultGridDataModel::setRowHeaderWidth(sal_Int32 _value) throw (::com::sun::star::uno::RuntimeException)
diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.hxx b/toolkit/source/controls/grid/defaultgriddatamodel.hxx
index ac6282a0eaef..2b882a08a8bb 100644
--- a/toolkit/source/controls/grid/defaultgriddatamodel.hxx
+++ b/toolkit/source/controls/grid/defaultgriddatamodel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/controls/grid/gridcolumn.cxx b/toolkit/source/controls/grid/gridcolumn.cxx
index 8c1645e2f6ae..168569e7fe35 100644
--- a/toolkit/source/controls/grid/gridcolumn.cxx
+++ b/toolkit/source/controls/grid/gridcolumn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ void GridColumn::broadcast( broadcast_column_type eType, const GridColumnEvent&
XGridColumnListener* pListener = static_cast<XGridColumnListener*>(aListIter.next());
switch( eType )
{
- case column_attribute_changed: pListener->columnChanged(aEvent); break;
+ case column_attribute_changed: pListener->columnChanged(aEvent); break;
}
}
}
diff --git a/toolkit/source/controls/grid/gridcolumn.hxx b/toolkit/source/controls/grid/gridcolumn.hxx
index 4d582201d128..c7f3e7701c8b 100644
--- a/toolkit/source/controls/grid/gridcolumn.hxx
+++ b/toolkit/source/controls/grid/gridcolumn.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ public:
virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (RuntimeException);
virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (RuntimeException);
-
+
virtual void SAL_CALL setIndex(sal_Int32 _nIndex)throw (::com::sun::star::uno::RuntimeException);
private:
void broadcast( broadcast_column_type eType, const GridColumnEvent& aEvent );
diff --git a/toolkit/source/controls/grid/gridcontrol.cxx b/toolkit/source/controls/grid/gridcontrol.cxx
index 158876245be6..3206260e420a 100644
--- a/toolkit/source/controls/grid/gridcontrol.cxx
+++ b/toolkit/source/controls/grid/gridcontrol.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,9 +53,9 @@ using namespace ::com::sun::star::view;
namespace toolkit
{
-// ----------------------------------------------------
-// class UnoGridModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoGridModel
+// ----------------------------------------------------
UnoGridModel::UnoGridModel()
{
ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
@@ -91,7 +91,7 @@ UnoGridModel::UnoGridModel( const UnoGridModel& rModel )
: UnoControlModel( rModel )
{
}
-
+
UnoControlModel* UnoGridModel::Clone() const
{
return new UnoGridModel( *this );
@@ -105,9 +105,9 @@ OUString UnoGridModel::getServiceName() throw(RuntimeException)
Any UnoGridModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
{
switch( nPropId )
- {
+ {
case BASEPROPERTY_DEFAULTCONTROL:
- return uno::makeAny( ::rtl::OUString::createFromAscii( szServiceName_GridControl ) );
+ return uno::makeAny( ::rtl::OUString::createFromAscii( szServiceName_GridControl ) );
case BASEPROPERTY_GRID_SELECTIONMODE:
return uno::makeAny( SelectionType(1) );
case BASEPROPERTY_GRID_SHOWROWHEADER:
@@ -127,9 +127,9 @@ Any UnoGridModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
case BASEPROPERTY_GRID_ROW_BACKGROUND:
return uno::makeAny(com::sun::star::util::Color(0xFFFFFF) );
default:
- return UnoControlModel::ImplGetDefaultValue( nPropId );
+ return UnoControlModel::ImplGetDefaultValue( nPropId );
}
-
+
}
::cppu::IPropertyArrayHelper& UnoGridModel::getInfoHelper()
@@ -137,7 +137,7 @@ Any UnoGridModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -151,9 +151,9 @@ Reference< XPropertySetInfo > UnoGridModel::getPropertySetInfo( ) throw(Runtime
}
-// ----------------------------------------------------
-// class UnoGridControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoGridControl
+// ----------------------------------------------------
UnoGridControl::UnoGridControl()
: mSelectionMode(SelectionType(1)),
m_aSelectionListeners( *this )
@@ -179,7 +179,7 @@ void UnoGridControl::createPeer( const uno::Reference< awt::XToolkit > & rxToolk
Reference< XGridControl > xGrid( getPeer(), UNO_QUERY_THROW );
xGrid->addSelectionListener(&m_aSelectionListeners);
-
+
Reference<XGridDataListener> xListener ( getPeer(), UNO_QUERY_THROW );
Reference<XGridColumnListener> xColListener ( getPeer(), UNO_QUERY_THROW );
Reference<XPropertySet> xPropSet ( getModel(), UNO_QUERY_THROW );
@@ -191,7 +191,7 @@ void UnoGridControl::createPeer( const uno::Reference< awt::XToolkit > & rxToolk
if(xGridColumnModel != NULL)
{
for(int i = 0;i<xGridColumnModel->getColumnCount();i++)
- {
+ {
xGridColumnModel->getColumn(i)->addColumnListener(xColListener);
}
}
diff --git a/toolkit/source/controls/grid/gridcontrol.hxx b/toolkit/source/controls/grid/gridcontrol.hxx
index 564e752e618e..be3adbc7200b 100644
--- a/toolkit/source/controls/grid/gridcontrol.hxx
+++ b/toolkit/source/controls/grid/gridcontrol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,16 +52,16 @@ using namespace ::com::sun::star::container;
// ===================================================================
class UnoGridModel : public UnoControlModel
{
-protected:
- Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+protected:
+ Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoGridModel();
UnoGridModel( const UnoGridModel& rModel );
-
+
UnoControlModel* Clone() const;
-
+
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -80,21 +80,21 @@ class UnoGridControl : public ::cppu::ImplInheritanceHelper1< UnoControlBase, ::
{
public:
UnoGridControl();
- ::rtl::OUString GetComponentServiceName();
-
+ ::rtl::OUString GetComponentServiceName();
+
// ::com::sun::star::lang::XComponent
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::XControl
void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException);
- // ::com::sun::star::awt::grid::XGridControl
+ // ::com::sun::star::awt::grid::XGridControl
- virtual ::sal_Int32 SAL_CALL getItemIndexAtPoint(::sal_Int32 x, ::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException);
+ virtual ::sal_Int32 SAL_CALL getItemIndexAtPoint(::sal_Int32 x, ::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setToolTip(const ::com::sun::star::uno::Sequence< ::rtl::OUString >& text, const ::com::sun::star::uno::Sequence< ::sal_Int32 >& columns) throw (::com::sun::star::uno::RuntimeException);
// ::com::sun::star::awt::grid::XGridSelection
-
+
virtual ::sal_Int32 SAL_CALL getMinSelectionIndex() throw (::com::sun::star::uno::RuntimeException);
virtual ::sal_Int32 SAL_CALL getMaxSelectionIndex() throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL selectRows(const ::com::sun::star::uno::Sequence< ::sal_Int32 >& rangeOfRows) throw (::com::sun::star::uno::RuntimeException);
@@ -107,14 +107,14 @@ public:
virtual void SAL_CALL selectRow(::sal_Int32 y) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addSelectionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridSelectionListener > & listener) throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeSelectionListener(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::grid::XGridSelectionListener > & listener) throw (::com::sun::star::uno::RuntimeException);
-
+
// ::com::sun::star::lang::XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED( UnoGridControl, UnoControlBase, szServiceName_GridControl )
using UnoControl::getPeer;
private:
::com::sun::star::view::SelectionType mSelectionMode;
- SelectionListenerMultiplexer m_aSelectionListeners;
+ SelectionListenerMultiplexer m_aSelectionListeners;
};
} // toolkit
diff --git a/toolkit/source/controls/roadmapcontrol.cxx b/toolkit/source/controls/roadmapcontrol.cxx
index bf9639901f11..0c17a584c476 100644
--- a/toolkit/source/controls/roadmapcontrol.cxx
+++ b/toolkit/source/controls/roadmapcontrol.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,17 +47,17 @@ namespace toolkit
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::container;
-// ----------------------------------------------------
+// ----------------------------------------------------
// helper
-// ----------------------------------------------------
+// ----------------------------------------------------
static void lcl_throwIllegalArgumentException( )
-{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
+{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
throw IllegalArgumentException();
}
static void lcl_throwIndexOutOfBoundsException( )
-{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
+{ // throwing is expensive (in terms of code size), thus we hope the compiler does not inline this ....
throw IndexOutOfBoundsException();
}
@@ -142,7 +142,7 @@ static void lcl_throwIndexOutOfBoundsException( )
// -------------------------------------------------------------------
- ::com::sun::star::uno::Any SAL_CALL UnoControlRoadmapModel::queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
+ ::com::sun::star::uno::Any SAL_CALL UnoControlRoadmapModel::queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
{
Any aRet = UnoControlRoadmapModel_Base::queryAggregation( rType );
if ( !aRet.hasValue() )
@@ -157,7 +157,7 @@ static void lcl_throwIndexOutOfBoundsException( )
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -204,7 +204,7 @@ static void lcl_throwIndexOutOfBoundsException( )
void UnoControlRoadmapModel::SetRMItemDefaultProperties( const sal_Int32 , Reference< XInterface > xRoadmapItem)
{
- Any aAny;
+ Any aAny;
Reference< XPropertySet > xPropertySet( xRoadmapItem, UNO_QUERY );
Reference< XPropertySet > xProps( xRoadmapItem, UNO_QUERY );
if ( xProps.is() )
@@ -296,7 +296,7 @@ static void lcl_throwIndexOutOfBoundsException( )
void SAL_CALL UnoControlRoadmapModel::removeByIndex( sal_Int32 Index)
- throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException )
+ throw (IndexOutOfBoundsException, WrappedTargetException, RuntimeException )
{
if (( Index > (sal_Int32)maRoadmapItems.size()) || (Index < 0))
lcl_throwIndexOutOfBoundsException( );
diff --git a/toolkit/source/controls/roadmapentry.cxx b/toolkit/source/controls/roadmapentry.cxx
index e12fbfae7565..c66cfb368bd1 100644
--- a/toolkit/source/controls/roadmapentry.cxx
+++ b/toolkit/source/controls/roadmapentry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx
index bb4f35644e3a..50799a017167 100644
--- a/toolkit/source/controls/stdtabcontroller.cxx
+++ b/toolkit/source/controls/stdtabcontroller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,9 +49,9 @@ using namespace ::com::sun::star::awt;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
-// ----------------------------------------------------
-// class StdTabController
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class StdTabController
+// ----------------------------------------------------
StdTabController::StdTabController()
{
}
@@ -61,13 +61,13 @@ StdTabController::~StdTabController()
}
sal_Bool StdTabController::ImplCreateComponentSequence(
- Sequence< Reference< XControl > >& rControls,
- const Sequence< Reference< XControlModel > >& rModels,
- Sequence< Reference< XWindow > >& rComponents,
- Sequence< Any>* pTabStops,
+ Sequence< Reference< XControl > >& rControls,
+ const Sequence< Reference< XControlModel > >& rModels,
+ Sequence< Reference< XWindow > >& rComponents,
+ Sequence< Any>* pTabStops,
sal_Bool bPeerComponent ) const
{
- sal_Bool bOK = sal_True;
+ sal_Bool bOK = sal_True;
// nur die wirklich geforderten Controls
sal_Int32 nModels = rModels.getLength();
@@ -94,7 +94,7 @@ sal_Bool StdTabController::ImplCreateComponentSequence(
const Reference< XControl > * pControls = rControls.getConstArray();
- sal_uInt32 nCtrls = rControls.getLength();
+ sal_uInt32 nCtrls = rControls.getLength();
rComponents.realloc( nCtrls );
Reference< XWindow > * pComps = rComponents.getArray();
Any* pTabs = NULL;
@@ -107,22 +107,22 @@ sal_Bool StdTabController::ImplCreateComponentSequence(
}
for ( sal_uInt32 n = 0; bOK && ( n < nCtrls ); n++ )
- {
+ {
// Zum Model passendes Control suchen
Reference< XControl > xCtrl(pControls[n]);
if ( xCtrl.is() )
{
if (bPeerComponent)
- pComps[n] = Reference< XWindow > (xCtrl->getPeer(), UNO_QUERY);
+ pComps[n] = Reference< XWindow > (xCtrl->getPeer(), UNO_QUERY);
else
pComps[n] = Reference< XWindow > (xCtrl, UNO_QUERY);
// TabStop-Property
if ( pTabs )
- {
+ {
// opt: String fuer TabStop als Konstante
static const ::rtl::OUString aTabStopName( ::rtl::OUString::createFromAscii( "Tabstop" ) );
-
+
Reference< XPropertySet > xPSet( xCtrl->getModel(), UNO_QUERY );
Reference< XPropertySetInfo > xInfo = xPSet->getPropertySetInfo();
if( xInfo->hasPropertyByName( aTabStopName ) )
@@ -147,9 +147,9 @@ void StdTabController::ImplActivateControl( sal_Bool bFirst ) const
Sequence< Reference< XControl > > aCtrls = xTabController->getControls();
const Reference< XControl > * pControls = aCtrls.getConstArray();
sal_uInt32 nCount = aCtrls.getLength();
-
+
for ( sal_uInt32 n = bFirst ? 0 : nCount; bFirst ? ( n < nCount ) : n; )
- {
+ {
sal_uInt32 nCtrl = bFirst ? n++ : --n;
DBG_ASSERT( pControls[nCtrl].is(), "Control nicht im Container!" );
if ( pControls[nCtrl].is() )
@@ -187,35 +187,35 @@ IMPL_XTYPEPROVIDER_END
void StdTabController::setModel( const Reference< XTabControllerModel >& Model ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
mxModel = Model;
}
Reference< XTabControllerModel > StdTabController::getModel( ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
return mxModel;
}
void StdTabController::setContainer( const Reference< XControlContainer >& Container ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
mxControlContainer = Container;
}
Reference< XControlContainer > StdTabController::getContainer( ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
return mxControlContainer;
}
Sequence< Reference< XControl > > StdTabController::getControls( ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
Sequence< Reference< XControl > > aSeq;
if ( mxControlContainer.is() )
@@ -241,7 +241,7 @@ Sequence< Reference< XControl > > StdTabController::getControls( ) throw(Runtim
void StdTabController::autoTabOrder( ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
DBG_ASSERT( mxControlContainer.is(), "autoTabOrder: No ControlContainer!" );
if ( !mxControlContainer.is() )
return;
@@ -251,7 +251,7 @@ void StdTabController::autoTabOrder( ) throw(RuntimeException)
// vieleicht erhalte ich hier einen TabController,
// der schneller die Liste meiner Controls ermittelt
- Reference< XTabController > xTabController(static_cast< ::cppu::OWeakObject* >(this), UNO_QUERY);
+ Reference< XTabController > xTabController(static_cast< ::cppu::OWeakObject* >(this), UNO_QUERY);
Sequence< Reference< XControl > > aControls = xTabController->getControls();
// #58317# Es sind ggf. noch nicht alle Controls fuer die Models im Container,
@@ -306,7 +306,7 @@ void StdTabController::autoTabOrder( ) throw(RuntimeException)
void StdTabController::activateTabOrder( ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
// Am Container die Tab-Reihenfolge aktivieren...
Reference< XControl > xC( mxControlContainer, UNO_QUERY );
@@ -318,7 +318,7 @@ void StdTabController::activateTabOrder( ) throw(RuntimeException)
// vieleicht erhalte ich hier einen TabController,
// der schneller die Liste meiner Controls ermittelt
- Reference< XTabController > xTabController(static_cast< ::cppu::OWeakObject* >(this), UNO_QUERY);
+ Reference< XTabController > xTabController(static_cast< ::cppu::OWeakObject* >(this), UNO_QUERY);
// Flache Liste besorgen...
Sequence< Reference< XControlModel > > aModels = mxModel->getControlModels();
@@ -327,7 +327,7 @@ void StdTabController::activateTabOrder( ) throw(RuntimeException)
// DG: Aus Optimierungsgruenden werden die Controls mittels getControls() geholt,
// dieses hoert sich zwar wiedersinning an, fuehrt aber im konkreten Fall (Forms) zu sichtbaren
- // Geschwindigkeitsvorteilen
+ // Geschwindigkeitsvorteilen
Sequence< Reference< XControl > > aControls = xTabController->getControls();
// #58317# Es sind ggf. noch nicht alle Controls fuer die Models im Container,
@@ -338,8 +338,8 @@ void StdTabController::activateTabOrder( ) throw(RuntimeException)
xVclContainerPeer->setTabOrder( aCompSeq, aTabSeq, mxModel->getGroupControl() );
::rtl::OUString aName;
- Sequence< Reference< XControlModel > > aThisGroupModels;
- Sequence< Reference< XWindow > > aControlComponents;
+ Sequence< Reference< XControlModel > > aThisGroupModels;
+ Sequence< Reference< XWindow > > aControlComponents;
sal_uInt32 nGroups = mxModel->getGroupCount();
for ( sal_uInt32 nG = 0; nG < nGroups; nG++ )
@@ -362,14 +362,14 @@ void StdTabController::activateTabOrder( ) throw(RuntimeException)
void StdTabController::activateFirst( ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
ImplActivateControl( sal_True );
}
void StdTabController::activateLast( ) throw(RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
ImplActivateControl( sal_False );
}
@@ -412,7 +412,7 @@ Reference< XControl > StdTabController::FindControl( Sequence< Reference< XCont
if ( !xCtrl.is() && rxCtrlModel.is())
*/
DBG_ASSERT( rxCtrlModel.is(), "ImplFindControl - welches ?!" );
-
+
const Reference< XControl > * pCtrls = rCtrls.getConstArray();
sal_Int32 nCtrls = rCtrls.getLength();
for ( sal_Int32 n = 0; n < nCtrls; n++ )
diff --git a/toolkit/source/controls/stdtabcontrollermodel.cxx b/toolkit/source/controls/stdtabcontrollermodel.cxx
index e4f62e1c3a9f..efa718fbc8bc 100644
--- a/toolkit/source/controls/stdtabcontrollermodel.cxx
+++ b/toolkit/source/controls/stdtabcontrollermodel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,11 +40,11 @@
#include <tools/debug.hxx>
-#define UNOCONTROL_STREAMVERSION (short)2
+#define UNOCONTROL_STREAMVERSION (short)2
-// ----------------------------------------------------
-// class UnoControlModelEntryList
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlModelEntryList
+// ----------------------------------------------------
UnoControlModelEntryList::UnoControlModelEntryList()
{
}
@@ -73,9 +73,9 @@ void UnoControlModelEntryList::DestroyEntry( sal_uInt32 nEntry )
delete pEntry;
}
-// ----------------------------------------------------
-// class StdTabControllerModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class StdTabControllerModel
+// ----------------------------------------------------
StdTabControllerModel::StdTabControllerModel()
{
mbGroupControl = sal_True;
@@ -149,8 +149,8 @@ void ImplWriteControls( const ::com::sun::star::uno::Reference< ::com::sun::star
sal_uInt32 nStoredControls = 0;
sal_Int32 nDataBeginMark = xMark->createMark();
- OutStream->writeLong( 0L ); // DataLen
- OutStream->writeLong( 0L ); // nStoredControls
+ OutStream->writeLong( 0L ); // DataLen
+ OutStream->writeLong( 0L ); // nStoredControls
sal_uInt32 nCtrls = rCtrls.getLength();
for ( sal_uInt32 n = 0; n < nCtrls; n++ )
@@ -219,21 +219,21 @@ IMPL_XTYPEPROVIDER_END
sal_Bool StdTabControllerModel::getGroupControl( ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
return mbGroupControl;
}
void StdTabControllerModel::setGroupControl( sal_Bool GroupControl ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
mbGroupControl = GroupControl;
}
void StdTabControllerModel::setControlModels( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& Controls ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
maControls.Reset();
ImplSetControlModels( maControls, Controls );
}
@@ -241,7 +241,7 @@ void StdTabControllerModel::setControlModels( const ::com::sun::star::uno::Seque
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > > StdTabControllerModel::getControlModels( ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > > aSeq( ImplGetControlCount( maControls ) );
::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > * pRefs = aSeq.getArray();
ImplGetControlModels( &pRefs, maControls );
@@ -251,7 +251,7 @@ void StdTabControllerModel::setControlModels( const ::com::sun::star::uno::Seque
void StdTabControllerModel::setGroup( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& Group, const ::rtl::OUString& GroupName ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
// Die Controls stehen eventuel flach in der Liste und werden jetzt gruppiert.
// Verschachtelte Gruppen sind erstmal nicht moeglich...
// Das erste Element der Gruppe welches auch schon in der flachen Liste
@@ -291,7 +291,7 @@ void StdTabControllerModel::setGroup( const ::com::sun::star::uno::Sequence< ::c
sal_Int32 StdTabControllerModel::getGroupCount( ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
// erstmal nur eine Ebene...
// Das Model und die Impl-Methoden arbeiten zwar rekursiv, aber das wird
// erstmal nich nach aussen gegeben.
@@ -310,7 +310,7 @@ sal_Int32 StdTabControllerModel::getGroupCount( ) throw(::com::sun::star::uno::
void StdTabControllerModel::getGroup( sal_Int32 nGroup, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& rGroup, ::rtl::OUString& rName ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > > aSeq;
sal_uInt32 nG = 0;
sal_uInt32 nEntries = maControls.Count();
@@ -337,7 +337,7 @@ void StdTabControllerModel::getGroup( sal_Int32 nGroup, ::com::sun::star::uno::S
void StdTabControllerModel::getGroupByName( const ::rtl::OUString& rName, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > >& rGroup ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
sal_uInt32 nGroup = 0;
sal_uInt32 nEntries = maControls.Count();
for ( sal_uInt32 n = 0; n < nEntries; n++ )
@@ -366,7 +366,7 @@ void StdTabControllerModel::getGroupByName( const ::rtl::OUString& rName, ::com:
void StdTabControllerModel::write( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream >& OutStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
::com::sun::star::uno::Reference< ::com::sun::star::io::XMarkableStream > xMark( OutStream, ::com::sun::star::uno::UNO_QUERY );
DBG_ASSERT( xMark.is(), "write: no XMarkableStream!" );
@@ -390,7 +390,7 @@ void StdTabControllerModel::write( const ::com::sun::star::uno::Reference< ::com
void StdTabControllerModel::read( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream >& InStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > > aSeq = ImplReadControls( InStream );
setControlModels( aSeq );
diff --git a/toolkit/source/controls/tkscrollbar.cxx b/toolkit/source/controls/tkscrollbar.cxx
index e2acf791a886..75a29ae6b862 100644
--- a/toolkit/source/controls/tkscrollbar.cxx
+++ b/toolkit/source/controls/tkscrollbar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,7 +80,7 @@ namespace toolkit
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
diff --git a/toolkit/source/controls/tksimpleanimation.cxx b/toolkit/source/controls/tksimpleanimation.cxx
index f60abcaf3823..f0454e8d81b7 100644
--- a/toolkit/source/controls/tksimpleanimation.cxx
+++ b/toolkit/source/controls/tksimpleanimation.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -185,7 +185,7 @@ namespace toolkit
if ( xAnimation.is() )
xAnimation->start();
}
-
+
//--------------------------------------------------------------------
void SAL_CALL UnoSimpleAnimationControl::stop() throw ( uno::RuntimeException )
{
@@ -195,7 +195,7 @@ namespace toolkit
if ( xAnimation.is() )
xAnimation->stop();
}
-
+
//--------------------------------------------------------------------
void SAL_CALL UnoSimpleAnimationControl::setImageList( const uno::Sequence< uno::Reference< graphic::XGraphic > >& ImageList )
throw ( uno::RuntimeException )
diff --git a/toolkit/source/controls/tkspinbutton.cxx b/toolkit/source/controls/tkspinbutton.cxx
index c22cbf1fae10..6cefd1e5552b 100644
--- a/toolkit/source/controls/tkspinbutton.cxx
+++ b/toolkit/source/controls/tkspinbutton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -106,7 +106,7 @@ namespace toolkit
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -247,7 +247,7 @@ namespace toolkit
{
ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE ), makeAny( value ), sal_True );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL UnoSpinButtonControl::setValues( sal_Int32 minValue, sal_Int32 maxValue, sal_Int32 currentValue ) throw (RuntimeException)
{
@@ -255,7 +255,7 @@ namespace toolkit
ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE_MAX ), makeAny( maxValue ), sal_True );
ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE ), makeAny( currentValue ), sal_True );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL UnoSpinButtonControl::getValue( ) throw (RuntimeException)
{
@@ -268,19 +268,19 @@ namespace toolkit
return nValue;
}
-
+
//--------------------------------------------------------------------
void SAL_CALL UnoSpinButtonControl::setMinimum( sal_Int32 minValue ) throw (RuntimeException)
{
ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE_MIN ), makeAny( minValue ), sal_True );
}
-
+
//--------------------------------------------------------------------
void SAL_CALL UnoSpinButtonControl::setMaximum( sal_Int32 maxValue ) throw (RuntimeException)
{
ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPINVALUE_MAX ), makeAny( maxValue ), sal_True );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL UnoSpinButtonControl::getMinimum( ) throw (RuntimeException)
{
@@ -293,7 +293,7 @@ namespace toolkit
return nMin;
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL UnoSpinButtonControl::getMaximum( ) throw (RuntimeException)
{
@@ -306,13 +306,13 @@ namespace toolkit
return nMax;
}
-
+
//--------------------------------------------------------------------
void SAL_CALL UnoSpinButtonControl::setSpinIncrement( sal_Int32 spinIncrement ) throw (RuntimeException)
{
ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_SPININCREMENT ), makeAny( spinIncrement ), sal_True );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL UnoSpinButtonControl::getSpinIncrement( ) throw (RuntimeException)
{
@@ -325,13 +325,13 @@ namespace toolkit
return nIncrement;
}
-
+
//--------------------------------------------------------------------
void SAL_CALL UnoSpinButtonControl::setOrientation( sal_Int32 orientation ) throw (NoSupportException, RuntimeException)
{
ImplSetPropertyValue( GetPropertyName( BASEPROPERTY_ORIENTATION ), makeAny( orientation ), sal_True );
}
-
+
//--------------------------------------------------------------------
sal_Int32 SAL_CALL UnoSpinButtonControl::getOrientation( ) throw (RuntimeException)
{
@@ -344,7 +344,7 @@ namespace toolkit
return nOrientation;
}
-
+
//........................................................................
} // namespace toolkit
//........................................................................
diff --git a/toolkit/source/controls/tkthrobber.cxx b/toolkit/source/controls/tkthrobber.cxx
index 0f3d2a58654e..e4081377ff06 100644
--- a/toolkit/source/controls/tkthrobber.cxx
+++ b/toolkit/source/controls/tkthrobber.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -183,7 +183,7 @@ namespace toolkit
if ( xAnimation.is() )
xAnimation->start();
}
-
+
//--------------------------------------------------------------------
void SAL_CALL UnoThrobberControl::stop() throw ( uno::RuntimeException )
{
@@ -193,7 +193,7 @@ namespace toolkit
if ( xAnimation.is() )
xAnimation->stop();
}
-
+
//........................................................................
} // namespace toolkit
//........................................................................
diff --git a/toolkit/source/controls/tree/treecontrol.cxx b/toolkit/source/controls/tree/treecontrol.cxx
index 2b3a6d61d9ea..d5d9ce350a6d 100644
--- a/toolkit/source/controls/tree/treecontrol.cxx
+++ b/toolkit/source/controls/tree/treecontrol.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,9 +51,9 @@ using namespace ::com::sun::star::view;
namespace toolkit
{
-// ----------------------------------------------------
-// class UnoTreeModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoTreeModel
+// ----------------------------------------------------
UnoTreeModel::UnoTreeModel()
{
ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
@@ -82,7 +82,7 @@ UnoTreeModel::UnoTreeModel( const UnoTreeModel& rModel )
: UnoControlModel( rModel )
{
}
-
+
UnoControlModel* UnoTreeModel::Clone() const
{
return new UnoTreeModel( *this );
@@ -122,7 +122,7 @@ Any UnoTreeModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -136,9 +136,9 @@ Reference< XPropertySetInfo > UnoTreeModel::getPropertySetInfo( ) throw(Runtime
}
-// ----------------------------------------------------
-// class UnoTreeControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoTreeControl
+// ----------------------------------------------------
UnoTreeControl::UnoTreeControl()
: maSelectionListeners( *this )
, maTreeExpansionListeners( *this )
diff --git a/toolkit/source/controls/tree/treecontrol.hxx b/toolkit/source/controls/tree/treecontrol.hxx
index a6f037f9c56a..5b71bdb8fab3 100644
--- a/toolkit/source/controls/tree/treecontrol.hxx
+++ b/toolkit/source/controls/tree/treecontrol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,16 +50,16 @@ using namespace ::com::sun::star::container;
// ===================================================================
class UnoTreeModel : public UnoControlModel
{
-protected:
- Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
- ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
+protected:
+ Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
+ ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
public:
UnoTreeModel();
UnoTreeModel( const UnoTreeModel& rModel );
-
+
UnoControlModel* Clone() const;
-
+
// ::com::sun::star::beans::XMultiPropertySet
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
@@ -78,7 +78,7 @@ class UnoTreeControl : public ::cppu::ImplInheritanceHelper1< UnoControlBase, ::
{
public:
UnoTreeControl();
- ::rtl::OUString GetComponentServiceName();
+ ::rtl::OUString GetComponentServiceName();
// ::com::sun::star::lang::XComponent
void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx
index 2f6f6e9118cf..780f82d4d6ff 100644
--- a/toolkit/source/controls/tree/treedatamodel.cxx
+++ b/toolkit/source/controls/tree/treedatamodel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ static void implThrowIllegalArgumentException() throw( IllegalArgumentException
throw IllegalArgumentException();
}
-class MutableTreeDataModel : public ::cppu::WeakAggImplHelper2< XMutableTreeDataModel, XServiceInfo >,
+class MutableTreeDataModel : public ::cppu::WeakAggImplHelper2< XMutableTreeDataModel, XServiceInfo >,
public MutexAndBroadcastHelper
{
public:
@@ -141,7 +141,7 @@ public:
}
private:
- TreeNodeVector maChilds;
+ TreeNodeVector maChilds;
Any maDisplayValue;
Any maDataValue;
sal_Bool mbHasChildsOnDemand;
@@ -186,10 +186,10 @@ void MutableTreeDataModel::broadcast( broadcast_type eType, const Reference< XTr
XTreeDataModelListener* pListener = static_cast<XTreeDataModelListener*>(aListIter.next());
switch( eType )
{
- case nodes_changed: pListener->treeNodesChanged(aEvent); break;
- case nodes_inserted: pListener->treeNodesInserted(aEvent); break;
- case nodes_removed: pListener->treeNodesRemoved(aEvent); break;
- case structure_changed: pListener->treeStructureChanged(aEvent); break;
+ case nodes_changed: pListener->treeNodesChanged(aEvent); break;
+ case nodes_inserted: pListener->treeNodesInserted(aEvent); break;
+ case nodes_removed: pListener->treeNodesRemoved(aEvent); break;
+ case structure_changed: pListener->treeStructureChanged(aEvent); break;
}
}
}
@@ -224,7 +224,7 @@ void SAL_CALL MutableTreeDataModel::setRoot( const Reference< XMutableTreeNode >
MutableTreeNodeRef xImpl( dynamic_cast< MutableTreeNode* >( xNode.get() ) );
if( !xImpl.is() || xImpl->mbIsInserted )
throw IllegalArgumentException();
-
+
xImpl->mbIsInserted = true;
mxRootNode.set(xImpl.get());
@@ -447,7 +447,7 @@ void SAL_CALL MutableTreeNode::insertChildByIndex( sal_Int32 nChildIndex, const
void SAL_CALL MutableTreeNode::removeChildByIndex( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( maMutex );
-
+
MutableTreeNodeRef xImpl;
if( (nChildIndex >= 0) && (nChildIndex < (sal_Int32)maChilds.size()) )
diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx
index d078aa358e60..71df27cf0cd5 100644
--- a/toolkit/source/controls/unocontrol.cxx
+++ b/toolkit/source/controls/unocontrol.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -106,8 +106,8 @@ static Sequence< ::rtl::OUString> lcl_ImplGetPropertyNames( const Reference< XMu
Sequence< ::rtl::OUString> aNames;
Reference< XPropertySetInfo > xPSInf = rxModel->getPropertySetInfo();
DBG_ASSERT( xPSInf.is(), "UpdateFromModel: No PropertySetInfo!" );
- if ( xPSInf.is() )
- {
+ if ( xPSInf.is() )
+ {
Sequence< Property> aProps = xPSInf->getProperties();
sal_Int32 nLen = aProps.getLength();
aNames = Sequence< ::rtl::OUString>( nLen );
@@ -119,7 +119,7 @@ static Sequence< ::rtl::OUString> lcl_ImplGetPropertyNames( const Reference< XMu
return aNames;
}
-// ====================================================
+// ====================================================
class VclListenerLock
{
private:
@@ -158,9 +158,9 @@ struct UnoControl_Data
}
};
-// ----------------------------------------------------
-// class UnoControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControl
+// ----------------------------------------------------
DBG_NAME( UnoControl )
UnoControl::UnoControl()
: maDisposeListeners( *this )
@@ -192,7 +192,7 @@ UnoControl::~UnoControl()
return ::rtl::OUString();
}
-Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( sal_Bool bAcceptExistingPeer )
+Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( sal_Bool bAcceptExistingPeer )
{
DBG_ASSERT( !mbCreatingCompatiblePeer, "ImplGetCompatiblePeer - rekursive?" );
@@ -210,7 +210,7 @@ Reference< XWindowPeer > UnoControl::ImplGetCompatiblePeer( sal_Bool bAcceptE
if( bVis )
maComponentInfos.bVisible = sal_False;
- Reference< XWindowPeer > xCurrentPeer = getPeer();
+ Reference< XWindowPeer > xCurrentPeer = getPeer();
setPeer( NULL );
// queryInterface ourself, to allow aggregation
@@ -287,7 +287,7 @@ void UnoControl::ImplSetPeerProperty( const ::rtl::OUString& rPropName, const An
// this assumption may be false in some (seldom) multi-threading scenarios (cause propertiesChange
// releases our mutex before calling here in)
// That's why this additional check
-
+
if ( mxVclWindowPeer.is() )
{
Any aConvertedValue( rVal );
@@ -318,7 +318,7 @@ void UnoControl::ImplSetPeerProperty( const ::rtl::OUString& rPropName, const An
}
}
}
-
+
mxVclWindowPeer->setProperty( rPropName, aConvertedValue );
}
}
@@ -327,7 +327,7 @@ void UnoControl::PrepareWindowDescriptor( WindowDescriptor& )
{
}
-Reference< XWindow > UnoControl::getParentPeer() const
+Reference< XWindow > UnoControl::getParentPeer() const
{
Reference< XWindow > xPeer;
if( mxContext.is() )
@@ -348,7 +348,7 @@ void UnoControl::updateFromModel()
// Alle standard Properties werden ausgelesen und in das Peer uebertragen
if( getPeer().is() )
{
- Reference< XMultiPropertySet > xPropSet( mxModel, UNO_QUERY );
+ Reference< XMultiPropertySet > xPropSet( mxModel, UNO_QUERY );
if( xPropSet.is() )
{
Sequence< ::rtl::OUString> aNames = lcl_ImplGetPropertyNames( xPropSet );
@@ -409,7 +409,7 @@ void UnoControl::dispose( ) throw(RuntimeException)
maMouseMotionListeners.disposeAndClear( aDisposeEvent );
maPaintListeners.disposeAndClear( aDisposeEvent );
maModeChangeListeners.disposeAndClear( aDisposeEvent );
-
+
// Model wieder freigeben
setModel( Reference< XControlModel > () );
setContext( Reference< XInterface > () );
@@ -418,14 +418,14 @@ void UnoControl::dispose( ) throw(RuntimeException)
void UnoControl::addEventListener( const Reference< XEventListener >& rxListener ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
maDisposeListeners.addInterface( rxListener );
}
void UnoControl::removeEventListener( const Reference< XEventListener >& rxListener ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
maDisposeListeners.removeInterface( rxListener );
}
@@ -464,7 +464,7 @@ void UnoControl::propertiesChange( const Sequence< PropertyChangeEvent >& rEvent
ImplModelPropertiesChanged( aEvents );
}
-
+
void UnoControl::ImplLockPropertyChangeNotification( const ::rtl::OUString& rPropertyName, bool bLock )
{
MapString2Int::iterator pos = mpData->aSuspendedPropertyNotifications.find( rPropertyName );
@@ -502,8 +502,8 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
if( getPeer().is() )
{
DECLARE_STL_VECTOR( PropertyValue, PropertyValueVector);
- PropertyValueVector aPeerPropertiesToSet;
- sal_Int32 nIndependentPos = 0;
+ PropertyValueVector aPeerPropertiesToSet;
+ sal_Int32 nIndependentPos = 0;
bool bResourceResolverSet( false );
// position where to insert the independent properties into aPeerPropertiesToSet,
// dependent ones are inserted at the end of the vector
@@ -537,9 +537,9 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
if ( pEvents->NewValue >>= xStrResolver )
bResourceResolverSet = xStrResolver.is();
}
-
+
sal_uInt16 nPType = GetPropertyId( pEvents->PropertyName );
- if ( mbDesignMode && mbDisposePeer && !mbRefeshingPeer && !mbCreatingPeer )
+ if ( mbDesignMode && mbDisposePeer && !mbRefeshingPeer && !mbCreatingPeer )
{
// if we're in design mode, then some properties can change which
// require creating a *new* peer (since these properties cannot
@@ -606,7 +606,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
}
}
- Reference< XWindow > xParent = getParentPeer();
+ Reference< XWindow > xParent = getParentPeer();
Reference< XControl > xThis( (XAggregation*)(::cppu::OWeakAggObject*)this, UNO_QUERY );
// call createPeer via a interface got from queryInterface, so the aggregating class can intercept it
@@ -624,14 +624,14 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
bool bMustBeInserted( true );
for ( sal_uInt32 i = 0; i < aPeerPropertiesToSet.size(); i++ )
{
- if ( aPeerPropertiesToSet[i].Name.equalsAsciiL(
+ if ( aPeerPropertiesToSet[i].Name.equalsAsciiL(
pLangDepProp->pPropName, pLangDepProp->nPropNameLength ))
{
bMustBeInserted = false;
break;
}
}
-
+
if ( bMustBeInserted )
{
// Add language dependent props at the end
@@ -642,12 +642,12 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
PropertyValue( aPropName, 0, xPS->getPropertyValue( aPropName ), PropertyState_DIRECT_VALUE ) );
}
}
-
+
++pLangDepProp;
}
}
aGuard.clear();
-
+
// clear the guard before creating a new peer - as usual, our peer implementations use the SolarMutex
// #82300# - 2000-12-21 - fs@openoffice.org
if (bNeedNewPeer && xParent.is())
@@ -663,7 +663,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
mxPeer.clear();
mxVclWindowPeer = NULL;
mbRefeshingPeer = sal_True;
- Reference< XWindowPeer > xP( xParent, UNO_QUERY );
+ Reference< XWindowPeer > xP( xParent, UNO_QUERY );
xThis->createPeer( Reference< XToolkit > (), xP );
mbRefeshingPeer = sal_False;
aPeerPropertiesToSet.clear();
@@ -684,7 +684,7 @@ void UnoControl::ImplModelPropertiesChanged( const Sequence< PropertyChangeEvent
// To prevent deadlocks resulting from this, we do this without our own mutex locked
// 2000-11-03 - fs@openoffice.org
PropertyValueVectorIterator aEnd = aPeerPropertiesToSet.end();
- for ( PropertyValueVectorIterator aLoop = aPeerPropertiesToSet.begin();
+ for ( PropertyValueVectorIterator aLoop = aPeerPropertiesToSet.begin();
aLoop != aEnd;
++aLoop
)
@@ -776,17 +776,17 @@ void UnoControl::setPosSize( sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int3
Reference< XWindow > xWindow;
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
if ( Flags & awt::PosSize::X )
- maComponentInfos.nX = X;
+ maComponentInfos.nX = X;
if ( Flags & awt::PosSize::Y )
- maComponentInfos.nY = Y;
+ maComponentInfos.nY = Y;
if ( Flags & awt::PosSize::WIDTH )
- maComponentInfos.nWidth = Width;
+ maComponentInfos.nWidth = Width;
if ( Flags & awt::PosSize::HEIGHT )
maComponentInfos.nHeight = Height;
maComponentInfos.nFlags |= Flags;
-
+
xWindow = xWindow.query( getPeer() );
}
@@ -814,7 +814,7 @@ void UnoControl::setVisible( sal_Bool bVisible ) throw(RuntimeException)
Reference< XWindow > xWindow;
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
// Visible status ist Sache der View
maComponentInfos.bVisible = bVisible;
xWindow = xWindow.query( getPeer() );
@@ -828,7 +828,7 @@ void UnoControl::setEnable( sal_Bool bEnable ) throw(RuntimeException)
Reference< XWindow > xWindow;
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
// Enable status ist Sache der View
maComponentInfos.bEnable = bEnable;
xWindow = xWindow.query( getPeer() );
@@ -837,7 +837,7 @@ void UnoControl::setEnable( sal_Bool bEnable ) throw(RuntimeException)
xWindow->setEnable( bEnable );
}
-void UnoControl::setFocus( ) throw(RuntimeException)
+void UnoControl::setFocus( ) throw(RuntimeException)
{
Reference< XWindow > xWindow;
{
@@ -1010,7 +1010,7 @@ sal_Bool UnoControl::setGraphics( const Reference< XGraphics >& rDevice ) throw(
Reference< XView > xView;
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
mxGraphics = rDevice;
xView = xView.query( getPeer() );
}
@@ -1047,7 +1047,7 @@ void UnoControl::draw( sal_Int32 x, sal_Int32 y ) throw(RuntimeException)
if ( xDrawPeerView.is() )
{
Reference< XVclWindowPeer > xWindowPeer;
- xWindowPeer.set( xDrawPeer, UNO_QUERY );
+ xWindowPeer.set( xDrawPeer, UNO_QUERY );
if ( xWindowPeer.is() )
xWindowPeer->setDesignMode( mbDesignMode );
xDrawPeerView->draw( x, y );
@@ -1062,7 +1062,7 @@ void UnoControl::setZoom( float fZoomX, float fZoomY ) throw(RuntimeException)
Reference< XView > xView;
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
maComponentInfos.nZoomX = fZoomX;
maComponentInfos.nZoomY = fZoomY;
@@ -1076,14 +1076,14 @@ void UnoControl::setZoom( float fZoomX, float fZoomY ) throw(RuntimeException)
void UnoControl::setContext( const Reference< XInterface >& rxContext ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
mxContext = rxContext;
}
Reference< XInterface > UnoControl::getContext( ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
return mxContext;
}
@@ -1123,7 +1123,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer
aException.Context = (XAggregation*)(::cppu::OWeakAggObject*)this;
throw( aException );
}
-
+
if( !getPeer().is() )
{
mbCreatingPeer = sal_True;
@@ -1133,7 +1133,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer
if( rParentPeer.is() && mxContext.is() )
{
// kein TopWindow
- if ( !xToolkit.is() )
+ if ( !xToolkit.is() )
xToolkit = rParentPeer->getToolkit();
Any aAny = OWeakAggObject::queryInterface( ::getCppuType((const Reference< XControlContainer>*)0) );
Reference< XControlContainer > xC;
@@ -1148,13 +1148,13 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer
{ // Nur richtig, wenn es sich um ein Top Window handelt
if( rParentPeer.is() )
{
- if ( !xToolkit.is() )
+ if ( !xToolkit.is() )
xToolkit = rParentPeer->getToolkit();
eType = WindowClass_CONTAINER;
}
else
{
- if ( !xToolkit.is() )
+ if ( !xToolkit.is() )
xToolkit = VCLUnoHelper::CreateToolkit();
eType = WindowClass_TOP;
}
@@ -1169,7 +1169,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer
// Border
Reference< XPropertySet > xPSet( mxModel, UNO_QUERY );
Reference< XPropertySetInfo > xInfo = xPSet->getPropertySetInfo();
-
+
Any aVal;
::rtl::OUString aPropName = GetPropertyName( BASEPROPERTY_BORDER );
if ( xInfo->hasPropertyByName( aPropName ) )
@@ -1226,7 +1226,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer
if ( ( aVal >>= b ) && b)
aDescr.WindowAttributes |= VclWindowPeerAttribute::DROPDOWN;
}
-
+
// Spin
aPropName = GetPropertyName( BASEPROPERTY_SPIN );
if ( xInfo->hasPropertyByName( aPropName ) )
@@ -1278,7 +1278,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer
}
//added for issue79712
- //NoLabel
+ //NoLabel
aPropName = GetPropertyName( BASEPROPERTY_NOLABEL );
if ( xInfo->hasPropertyByName( aPropName ) )
{
@@ -1288,7 +1288,7 @@ void UnoControl::createPeer( const Reference< XToolkit >& rxToolkit, const Refer
aDescr.WindowAttributes |= VclWindowPeerAttribute::NOLABEL;
}
//issue79712 ends
-
+
// Align
aPropName = GetPropertyName( BASEPROPERTY_ALIGN );
if ( xInfo->hasPropertyByName( aPropName ) )
@@ -1364,7 +1364,7 @@ Reference< XWindowPeer > UnoControl::getPeer() throw(RuntimeException)
sal_Bool UnoControl::setModel( const Reference< XControlModel >& rxModel ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
Reference< XMultiPropertySet > xPropSet( mxModel, UNO_QUERY );
// query for the XPropertiesChangeListener - our delegator is allowed to overwrite this interface
@@ -1399,14 +1399,14 @@ sal_Bool UnoControl::setModel( const Reference< XControlModel >& rxModel ) throw
return mxModel.is();
}
-Reference< XControlModel > UnoControl::getModel( ) throw(RuntimeException)
+Reference< XControlModel > UnoControl::getModel( ) throw(RuntimeException)
{
return mxModel;
}
Reference< XView > UnoControl::getView( ) throw(RuntimeException)
{
- return static_cast< XView* >( this );
+ return static_cast< XView* >( this );
}
void UnoControl::setDesignMode( sal_Bool bOn ) throw(RuntimeException)
@@ -1439,7 +1439,7 @@ void UnoControl::setDesignMode( sal_Bool bOn ) throw(RuntimeException)
maModeChangeListeners.notifyEach( &XModeChangeListener::modeChanged, aModeChangeEvent );
}
-sal_Bool UnoControl::isDesignMode( ) throw(RuntimeException)
+sal_Bool UnoControl::isDesignMode( ) throw(RuntimeException)
{
return mbDesignMode;
}
@@ -1450,7 +1450,7 @@ sal_Bool UnoControl::isTransparent( ) throw(RuntimeException)
}
// XServiceInfo
-::rtl::OUString UnoControl::getImplementationName( ) throw(RuntimeException)
+::rtl::OUString UnoControl::getImplementationName( ) throw(RuntimeException)
{
DBG_ERROR( "This method should be overloaded!" );
return ::rtl::OUString();
@@ -1459,7 +1459,7 @@ sal_Bool UnoControl::isTransparent( ) throw(RuntimeException)
sal_Bool UnoControl::supportsService( const ::rtl::OUString& rServiceName ) throw(RuntimeException)
{
::osl::MutexGuard aGuard( GetMutex() );
-
+
Sequence< ::rtl::OUString > aSNL = getSupportedServiceNames();
const ::rtl::OUString* pArray = aSNL.getConstArray();
const ::rtl::OUString* pArrayEnd = aSNL.getConstArray() + aSNL.getLength();
@@ -1487,7 +1487,7 @@ Reference< XAccessibleContext > SAL_CALL UnoControl::getAccessibleContext( ) th
if ( !xCurrentContext.is() )
{
if ( !mbDesignMode )
- { // in alive mode, use the AccessibleContext of the peer
+ { // in alive mode, use the AccessibleContext of the peer
Reference< XAccessible > xPeerAcc( getPeer(), UNO_QUERY );
if ( xPeerAcc.is() )
xCurrentContext = xPeerAcc->getAccessibleContext( );
diff --git a/toolkit/source/controls/unocontrolbase.cxx b/toolkit/source/controls/unocontrolbase.cxx
index 254fefe54cd0..20eda935000b 100644
--- a/toolkit/source/controls/unocontrolbase.cxx
+++ b/toolkit/source/controls/unocontrolbase.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,9 +36,9 @@
#include <tools/debug.hxx>
-// ----------------------------------------------------
-// class UnoControlBase
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlBase
+// ----------------------------------------------------
sal_Bool UnoControlBase::ImplHasProperty( sal_uInt16 nPropId )
{
@@ -92,7 +92,7 @@ void UnoControlBase::ImplSetPropertyValues( const ::com::sun::star::uno::Sequenc
void UnoControlBase::ImplSetPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, sal_Bool bUpdateThis )
{
// Model ggf. schon abgemeldet, aber ein Event schlaegt noch zu...
- if ( mxModel.is() )
+ if ( mxModel.is() )
{
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > xPSet( mxModel, ::com::sun::star::uno::UNO_QUERY );
if ( !bUpdateThis )
diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx
index 7aa2e63fd9cc..4918f9e37dfc 100644
--- a/toolkit/source/controls/unocontrolcontainer.cxx
+++ b/toolkit/source/controls/unocontrolcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,9 +56,9 @@ using namespace ::com::sun::star;
extern WorkWindow* lcl_GetDefaultWindow();
-// ----------------------------------------------------
-// class UnoControlHolder
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlHolder
+// ----------------------------------------------------
struct UnoControlHolder
{
uno::Reference< awt::XControl > mxControl;
@@ -66,7 +66,7 @@ struct UnoControlHolder
public:
UnoControlHolder( const ::rtl::OUString& rName, const uno::Reference< awt::XControl > & rControl )
- : mxControl( rControl ),
+ : mxControl( rControl ),
msName( rName )
{
}
@@ -328,10 +328,10 @@ UnoControlHolderList::ControlIdentifier UnoControlHolderList::impl_getFreeIdenti
}
throw uno::RuntimeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "out of identifiers" ) ), NULL );
}
-// ----------------------------------------------------
-// Function to set the controls' visibility according
-// to the dialog's "Step" property
-// ----------------------------------------------------
+// ----------------------------------------------------
+// Function to set the controls' visibility according
+// to the dialog's "Step" property
+// ----------------------------------------------------
void implUpdateVisibility
(
sal_Int32 nDialogStep,
@@ -373,9 +373,9 @@ void implUpdateVisibility
}
-// ----------------------------------------------------
-// class DialogStepChangedListener
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class DialogStepChangedListener
+// ----------------------------------------------------
typedef ::cppu::WeakImplHelper1< beans::XPropertyChangeListener > PropertyChangeListenerHelper;
class DialogStepChangedListener: public PropertyChangeListenerHelper
@@ -388,7 +388,7 @@ public:
: mxControlContainer( xControlContainer ) {}
// XEventListener
- virtual void SAL_CALL disposing( const lang::EventObject& Source ) throw( uno::RuntimeException);
+ virtual void SAL_CALL disposing( const lang::EventObject& Source ) throw( uno::RuntimeException);
// XPropertyChangeListener
virtual void SAL_CALL propertyChange( const beans::PropertyChangeEvent& evt ) throw( uno::RuntimeException);
@@ -401,7 +401,7 @@ void SAL_CALL DialogStepChangedListener::disposing( const lang::EventObject& /*
mxControlContainer.clear();
}
-void SAL_CALL DialogStepChangedListener::propertyChange( const beans::PropertyChangeEvent& evt )
+void SAL_CALL DialogStepChangedListener::propertyChange( const beans::PropertyChangeEvent& evt )
throw( uno::RuntimeException)
{
// evt.PropertyName HAS to be "Step" because we only use the listener for that
@@ -410,16 +410,16 @@ void SAL_CALL DialogStepChangedListener::propertyChange( const beans::PropertyC
implUpdateVisibility( nDialogStep, mxControlContainer );
}
-// ----------------------------------------------------
-// class UnoControlContainer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlContainer
+// ----------------------------------------------------
UnoControlContainer::UnoControlContainer() : maCListeners( *this )
{
mpControls = new UnoControlHolderList;
}
UnoControlContainer::UnoControlContainer( uno::Reference< awt::XWindowPeer > xP )
- : maCListeners( *this )
+ : maCListeners( *this )
{
setPeer( xP );
mbDisposePeer = sal_False;
@@ -442,7 +442,7 @@ void UnoControlContainer::ImplActivateTabControllers()
}
// lang::XComponent
-void UnoControlContainer::dispose( ) throw(uno::RuntimeException)
+void UnoControlContainer::dispose( ) throw(uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
@@ -643,7 +643,7 @@ void UnoControlContainer::impl_createControlPeerIfNecessary( const uno::Referenc
// if the container already has a peer, then also create a peer for the control
uno::Reference< awt::XWindowPeer > xMyPeer( getPeer() );
-
+
if( xMyPeer.is() )
{
_rxControl->createPeer( NULL, xMyPeer );
diff --git a/toolkit/source/controls/unocontrolcontainermodel.cxx b/toolkit/source/controls/unocontrolcontainermodel.cxx
index c29886dadf5f..cc5aba769fb8 100644
--- a/toolkit/source/controls/unocontrolcontainermodel.cxx
+++ b/toolkit/source/controls/unocontrolcontainermodel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,9 +34,9 @@
#include <toolkit/helper/servicenames.hxx>
#include <toolkit/helper/unopropertyarrayhelper.hxx>
-// ----------------------------------------------------
-// class UnoControlContainerModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlContainerModel
+// ----------------------------------------------------
UnoControlContainerModel::UnoControlContainerModel()
{
ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
@@ -75,11 +75,11 @@ UnoControlContainerModel::UnoControlContainerModel()
::cppu::IPropertyArrayHelper& UnoControlContainerModel::getInfoHelper()
{
::osl::Guard< ::osl::Mutex > aGuard( ((UnoControlContainerModel*)this)->GetMutex() );
-
+
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- ::com::sun::star::uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ ::com::sun::star::uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index 4ad984647eb4..10a14d733e52 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,8 +74,8 @@ using ::com::sun::star::awt::FontDescriptor;
struct ImplControlProperty
{
private:
- sal_uInt16 nId;
- ::com::sun::star::uno::Any aValue;
+ sal_uInt16 nId;
+ ::com::sun::star::uno::Any aValue;
public:
ImplControlProperty( const ImplControlProperty& rProp ) : aValue( rProp.aValue )
@@ -93,67 +93,67 @@ public:
nId = nT;
}
- sal_uInt16 GetId() const { return nId; }
- const ::com::sun::star::uno::Any& GetValue() const { return aValue; }
- void SetValue( const ::com::sun::star::uno::Any& rValue ) { aValue = rValue; }
+ sal_uInt16 GetId() const { return nId; }
+ const ::com::sun::star::uno::Any& GetValue() const { return aValue; }
+ void SetValue( const ::com::sun::star::uno::Any& rValue ) { aValue = rValue; }
};
DECLARE_TABLE( ImplPropertyTable, ImplControlProperty* )
-#define UNOCONTROL_STREAMVERSION (short)2
+#define UNOCONTROL_STREAMVERSION (short)2
static void lcl_ImplMergeFontProperty( FontDescriptor& rFD, sal_uInt16 nPropId, const Any& rValue )
{
// some props are defined with other types than the matching FontDescriptor members have
// (e.g. FontWidth, FontSlant)
// 78474 - 09/19/2000 - FS
- float nExtractFloat = 0;
- sal_Int16 nExtractShort = 0;
+ float nExtractFloat = 0;
+ sal_Int16 nExtractShort = 0;
switch ( nPropId )
{
- case BASEPROPERTY_FONTDESCRIPTORPART_NAME: rValue >>= rFD.Name;
+ case BASEPROPERTY_FONTDESCRIPTORPART_NAME: rValue >>= rFD.Name;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_STYLENAME: rValue >>= rFD.StyleName;
+ case BASEPROPERTY_FONTDESCRIPTORPART_STYLENAME: rValue >>= rFD.StyleName;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_FAMILY: rValue >>= rFD.Family;
+ case BASEPROPERTY_FONTDESCRIPTORPART_FAMILY: rValue >>= rFD.Family;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_CHARSET: rValue >>= rFD.CharSet;
+ case BASEPROPERTY_FONTDESCRIPTORPART_CHARSET: rValue >>= rFD.CharSet;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_HEIGHT: rValue >>= nExtractFloat; rFD.Height = (sal_Int16)nExtractFloat;
+ case BASEPROPERTY_FONTDESCRIPTORPART_HEIGHT: rValue >>= nExtractFloat; rFD.Height = (sal_Int16)nExtractFloat;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WEIGHT: rValue >>= rFD.Weight;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WEIGHT: rValue >>= rFD.Weight;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_SLANT: if ( rValue >>= nExtractShort )
+ case BASEPROPERTY_FONTDESCRIPTORPART_SLANT: if ( rValue >>= nExtractShort )
rFD.Slant = (::com::sun::star::awt::FontSlant)nExtractShort;
else
rValue >>= rFD.Slant;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_UNDERLINE: rValue >>= rFD.Underline;
+ case BASEPROPERTY_FONTDESCRIPTORPART_UNDERLINE: rValue >>= rFD.Underline;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_STRIKEOUT: rValue >>= rFD.Strikeout;
+ case BASEPROPERTY_FONTDESCRIPTORPART_STRIKEOUT: rValue >>= rFD.Strikeout;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WIDTH: rValue >>= rFD.Width;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WIDTH: rValue >>= rFD.Width;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_PITCH: rValue >>= rFD.Pitch;
+ case BASEPROPERTY_FONTDESCRIPTORPART_PITCH: rValue >>= rFD.Pitch;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_CHARWIDTH: rValue >>= rFD.CharacterWidth;
+ case BASEPROPERTY_FONTDESCRIPTORPART_CHARWIDTH: rValue >>= rFD.CharacterWidth;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_ORIENTATION: rValue >>= rFD.Orientation;
+ case BASEPROPERTY_FONTDESCRIPTORPART_ORIENTATION: rValue >>= rFD.Orientation;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_KERNING: rValue >>= rFD.Kerning;
+ case BASEPROPERTY_FONTDESCRIPTORPART_KERNING: rValue >>= rFD.Kerning;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WORDLINEMODE: rValue >>= rFD.WordLineMode;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WORDLINEMODE: rValue >>= rFD.WordLineMode;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_TYPE: rValue >>= rFD.Type;
+ case BASEPROPERTY_FONTDESCRIPTORPART_TYPE: rValue >>= rFD.Type;
break;
- default: DBG_ERROR( "FontProperty?!" );
+ default: DBG_ERROR( "FontProperty?!" );
}
}
-// ----------------------------------------------------
-// class UnoControlModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlModel
+// ----------------------------------------------------
UnoControlModel::UnoControlModel()
: OPropertySetHelper( BrdcstHelper ), maDisposeListeners( *this )
{
@@ -193,7 +193,7 @@ UnoControlModel::~UnoControlModel()
delete mpData;
}
-UnoControlModel* UnoControlModel::Clone() const
+UnoControlModel* UnoControlModel::Clone() const
{
DBG_ERROR( "UnoControlModel::Clone() ?!" );
return NULL;
@@ -202,7 +202,7 @@ UnoControlModel* UnoControlModel::Clone() const
::com::sun::star::uno::Sequence<sal_Int32> UnoControlModel::ImplGetPropertyIds() const
{
sal_uInt32 nIDs = mpData->Count();
- ::com::sun::star::uno::Sequence<sal_Int32> aIDs( nIDs );
+ ::com::sun::star::uno::Sequence<sal_Int32> aIDs( nIDs );
sal_Int32* pIDs = aIDs.getArray();
for ( sal_uInt32 n = 0; n < nIDs; n++ )
pIDs[n] = mpData->GetObjectKey( n );
@@ -232,23 +232,23 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const
EmptyFontDescriptor aFD;
switch ( nPropId )
{
- case BASEPROPERTY_FONTDESCRIPTOR: aDefault <<= aFD; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_NAME: aDefault <<= aFD.Name; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_STYLENAME: aDefault <<= aFD.StyleName; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_FAMILY: aDefault <<= aFD.Family; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_CHARSET: aDefault <<= aFD.CharSet; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_HEIGHT: aDefault <<= (float)aFD.Height; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WEIGHT: aDefault <<= aFD.Weight; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_SLANT: aDefault <<= (sal_Int16)aFD.Slant; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_UNDERLINE: aDefault <<= aFD.Underline; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_STRIKEOUT: aDefault <<= aFD.Strikeout; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WIDTH: aDefault <<= aFD.Width; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_PITCH: aDefault <<= aFD.Pitch; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_CHARWIDTH: aDefault <<= aFD.CharacterWidth; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_ORIENTATION: aDefault <<= aFD.Orientation; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_KERNING: aDefault <<= aFD.Kerning; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WORDLINEMODE: aDefault <<= aFD.WordLineMode; break;
- case BASEPROPERTY_FONTDESCRIPTORPART_TYPE: aDefault <<= aFD.Type; break;
+ case BASEPROPERTY_FONTDESCRIPTOR: aDefault <<= aFD; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_NAME: aDefault <<= aFD.Name; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_STYLENAME: aDefault <<= aFD.StyleName; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_FAMILY: aDefault <<= aFD.Family; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_CHARSET: aDefault <<= aFD.CharSet; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_HEIGHT: aDefault <<= (float)aFD.Height; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WEIGHT: aDefault <<= aFD.Weight; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_SLANT: aDefault <<= (sal_Int16)aFD.Slant; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_UNDERLINE: aDefault <<= aFD.Underline; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_STRIKEOUT: aDefault <<= aFD.Strikeout; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WIDTH: aDefault <<= aFD.Width; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_PITCH: aDefault <<= aFD.Pitch; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_CHARWIDTH: aDefault <<= aFD.CharacterWidth; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_ORIENTATION: aDefault <<= aFD.Orientation; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_KERNING: aDefault <<= aFD.Kerning; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WORDLINEMODE: aDefault <<= aFD.WordLineMode; break;
+ case BASEPROPERTY_FONTDESCRIPTORPART_TYPE: aDefault <<= aFD.Type; break;
default: DBG_ERROR( "FontProperty?!" );
}
}
@@ -275,9 +275,9 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const
case BASEPROPERTY_DATESHOWCENTURY:
case BASEPROPERTY_TIME:
case BASEPROPERTY_VALUE_DOUBLE:
- case BASEPROPERTY_PROGRESSVALUE:
- case BASEPROPERTY_SCROLLVALUE:
- case BASEPROPERTY_VISIBLESIZE:
+ case BASEPROPERTY_PROGRESSVALUE:
+ case BASEPROPERTY_SCROLLVALUE:
+ case BASEPROPERTY_VISIBLESIZE:
case BASEPROPERTY_BACKGROUNDCOLOR:
case BASEPROPERTY_FILLCOLOR: break; // Void
@@ -303,14 +303,14 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const
case BASEPROPERTY_TIMEMIN: aDefault <<= (sal_Int32) 0; break;
case BASEPROPERTY_VALUEMAX_DOUBLE: aDefault <<= (double) 1000000; break;
case BASEPROPERTY_VALUEMIN_DOUBLE: aDefault <<= (double) -1000000; break;
- case BASEPROPERTY_VALUESTEP_DOUBLE: aDefault <<= (double ) 1; break;
+ case BASEPROPERTY_VALUESTEP_DOUBLE: aDefault <<= (double ) 1; break;
case BASEPROPERTY_PROGRESSVALUE_MAX: aDefault <<= (sal_Int32) 100; break;
case BASEPROPERTY_PROGRESSVALUE_MIN: aDefault <<= (sal_Int32) 0; break;
- case BASEPROPERTY_SCROLLVALUE_MAX: aDefault <<= (sal_Int32) 100; break;
- case BASEPROPERTY_SCROLLVALUE_MIN: aDefault <<= (sal_Int32) 0; break;
- case BASEPROPERTY_LINEINCREMENT: aDefault <<= (sal_Int32) 1; break;
- case BASEPROPERTY_BLOCKINCREMENT: aDefault <<= (sal_Int32) 10; break;
- case BASEPROPERTY_ORIENTATION: aDefault <<= (sal_Int32) 0; break;
+ case BASEPROPERTY_SCROLLVALUE_MAX: aDefault <<= (sal_Int32) 100; break;
+ case BASEPROPERTY_SCROLLVALUE_MIN: aDefault <<= (sal_Int32) 0; break;
+ case BASEPROPERTY_LINEINCREMENT: aDefault <<= (sal_Int32) 1; break;
+ case BASEPROPERTY_BLOCKINCREMENT: aDefault <<= (sal_Int32) 10; break;
+ case BASEPROPERTY_ORIENTATION: aDefault <<= (sal_Int32) 0; break;
case BASEPROPERTY_SPINVALUE: aDefault <<= (sal_Int32) 0; break;
case BASEPROPERTY_SPININCREMENT: aDefault <<= (sal_Int32) 1; break;
case BASEPROPERTY_SPINVALUE_MIN: aDefault <<= (sal_Int32) 0; break;
@@ -354,7 +354,7 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const
case BASEPROPERTY_HELPTEXT:
case BASEPROPERTY_HELPURL:
case BASEPROPERTY_IMAGEURL:
- case BASEPROPERTY_DIALOGSOURCEURL:
+ case BASEPROPERTY_DIALOGSOURCEURL:
case BASEPROPERTY_EDITMASK:
case BASEPROPERTY_LITERALMASK:
case BASEPROPERTY_LABEL:
@@ -411,8 +411,8 @@ sal_Bool UnoControlModel::ImplHasProperty( sal_uInt16 nPropId ) const
// look for the currency entry (for this language) which has the given bank symbol
Sequence< Currency2 > aAllCurrencies = aLocaleInfo.getAllCurrencies();
- const Currency2* pAllCurrencies = aAllCurrencies.getConstArray();
- const Currency2* pAllCurrenciesEnd = pAllCurrencies + aAllCurrencies.getLength();
+ const Currency2* pAllCurrencies = aAllCurrencies.getConstArray();
+ const Currency2* pAllCurrenciesEnd = pAllCurrencies + aAllCurrencies.getLength();
::rtl::OUString sCurrencySymbol = aLocaleInfo.getCurrSymbol();
if ( !sBankSymbol.getLength() )
@@ -638,7 +638,7 @@ void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun:
for ( i = 0; i < nProps; i++ )
{
sal_Int32 nPropDataBeginMark = xMark->createMark();
- OutStream->writeLong( 0L ); // DataLen
+ OutStream->writeLong( 0L ); // DataLen
ImplControlProperty* pProp = aProps.GetObject( i );
OutStream->writeShort( pProp->GetId() );
@@ -782,9 +782,9 @@ void UnoControlModel::write( const ::com::sun::star::uno::Reference< ::com::sun:
for ( sal_uInt16 n = BASEPROPERTY_FONT_TYPE; n <= BASEPROPERTY_FONT_ATTRIBS; n++ )
{
sal_Int32 nPropDataBeginMark = xMark->createMark();
- OutStream->writeLong( 0L ); // DataLen
- OutStream->writeShort( n ); // PropId
- OutStream->writeBoolean( sal_False ); // Void
+ OutStream->writeLong( 0L ); // DataLen
+ OutStream->writeShort( n ); // PropId
+ OutStream->writeBoolean( sal_False ); // Void
if ( n == BASEPROPERTY_FONT_TYPE )
{
@@ -924,7 +924,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
{
long nEntries = InStream->readLong();
::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq( nEntries );
- for ( long n = 0; n < nEntries; n++ )
+ for ( long n = 0; n < nEntries; n++ )
aSeq.getArray()[n] = InStream->readUTF();
aValue <<= aSeq;
@@ -934,7 +934,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
{
long nEntries = InStream->readLong();
::com::sun::star::uno::Sequence<sal_uInt16> aSeq( nEntries );
- for ( long n = 0; n < nEntries; n++ )
+ for ( long n = 0; n < nEntries; n++ )
aSeq.getArray()[n] = (sal_uInt16)InStream->readShort();
aValue <<= aSeq;
}
@@ -942,7 +942,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
{
long nEntries = InStream->readLong();
::com::sun::star::uno::Sequence<sal_Int16> aSeq( nEntries );
- for ( long n = 0; n < nEntries; n++ )
+ for ( long n = 0; n < nEntries; n++ )
aSeq.getArray()[n] = (sal_Int16)InStream->readShort();
aValue <<= aSeq;
}
@@ -970,7 +970,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
{
// Sonst ist es nur die redundante Info fuer alte Versionen
// Daten werden durch MarkableStream geskippt.
- if ( nVersion < 2 )
+ if ( nVersion < 2 )
{
if ( !pFD )
{
@@ -999,7 +999,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
}
pFD->Width = (sal_Int16)InStream->readLong();
pFD->Height = (sal_Int16)InStream->readLong();
- InStream->readShort(); // ::com::sun::star::awt::FontWidth ignorieren - wurde mal falsch geschrieben und wird nicht gebraucht.
+ InStream->readShort(); // ::com::sun::star::awt::FontWidth ignorieren - wurde mal falsch geschrieben und wird nicht gebraucht.
pFD->CharacterWidth = ::com::sun::star::awt::FontWidth::DONTKNOW;
}
}
@@ -1007,7 +1007,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
{
if ( nVersion < 2 )
{
- if ( !pFD )
+ if ( !pFD )
{
pFD = new ::com::sun::star::awt::FontDescriptor;
ImplControlProperty* pProp = mpData->Get( BASEPROPERTY_FONTDESCRIPTOR );
@@ -1038,7 +1038,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
}
}
- if ( mpData->Get( nPropId ) )
+ if ( mpData->Get( nPropId ) )
{
aProps.getArray()[i] = GetPropertyName( nPropId );
aValues.getArray()[i] = aValue;
@@ -1051,13 +1051,13 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
// Falls bereits mehr drinsteht als diese Version kennt:
xMark->jumpToMark( nPropDataBeginMark );
InStream->skipBytes( nPropDataLen );
- xMark->deleteMark(nPropDataBeginMark);
+ xMark->deleteMark(nPropDataBeginMark);
}
- if ( bInvalidEntries )
+ if ( bInvalidEntries )
{
- for ( i = 0; i < (sal_uInt32)aProps.getLength(); i++ )
+ for ( i = 0; i < (sal_uInt32)aProps.getLength(); i++ )
{
- if ( !aProps.getConstArray()[i].getLength() )
+ if ( !aProps.getConstArray()[i].getLength() )
{
::comphelper::removeElementAt( aProps, i );
::comphelper::removeElementAt( aValues, i );
@@ -1065,7 +1065,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
}
}
}
-
+
try
{
setPropertyValues( aProps, aValues );
@@ -1075,7 +1075,7 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
DBG_UNHANDLED_EXCEPTION();
}
- if ( pFD )
+ if ( pFD )
{
::com::sun::star::uno::Any aValue;
aValue <<= *pFD;
@@ -1090,13 +1090,13 @@ void UnoControlModel::read( const ::com::sun::star::uno::Reference< ::com::sun::
{
DBG_ERROR( "This method should be overloaded!" );
return ::rtl::OUString();
-
+
}
sal_Bool UnoControlModel::supportsService( const ::rtl::OUString& rServiceName ) throw(::com::sun::star::uno::RuntimeException)
{
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
-
+
::com::sun::star::uno::Sequence< ::rtl::OUString > aSNL = getSupportedServiceNames();
const ::rtl::OUString * pArray = aSNL.getConstArray();
for( sal_Int32 i = 0; i < aSNL.getLength(); i++ )
@@ -1168,7 +1168,7 @@ sal_Bool UnoControlModel::convertFastPropertyValue( Any & rConvertedValue, Any &
if ( bConverted )
rConvertedValue <<= nAsDouble;
else
- { // try as integer - 96136 - 2002-10-08 - fs@openoffice.org
+ { // try as integer - 96136 - 2002-10-08 - fs@openoffice.org
sal_Int32 nAsInteger = 0;
bConverted = ( rValue >>= nAsInteger );
if ( bConverted )
@@ -1260,7 +1260,7 @@ sal_Bool UnoControlModel::convertFastPropertyValue( Any & rConvertedValue, Any &
void UnoControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nPropId, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception)
{
// Fehlt: Die gefakten Einzelproperties des FontDescriptors...
-
+
ImplControlProperty* pProp = mpData->Get( nPropId );
ENSURE_OR_RETURN_VOID( pProp, "UnoControlModel::setFastPropertyValue_NoBroadcast: invalid property id!" );
@@ -1271,9 +1271,9 @@ void UnoControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 nPropId, const
void UnoControlModel::getFastPropertyValue( ::com::sun::star::uno::Any& rValue, sal_Int32 nPropId ) const
{
::osl::Guard< ::osl::Mutex > aGuard( ((UnoControlModel*)this)->GetMutex() );
-
+
ImplControlProperty* pProp = mpData->Get( nPropId );
-
+
if ( pProp )
rValue = pProp->GetValue();
else if ( ( nPropId >= BASEPROPERTY_FONTDESCRIPTORPART_START ) && ( nPropId <= BASEPROPERTY_FONTDESCRIPTORPART_END ) )
@@ -1281,39 +1281,39 @@ void UnoControlModel::getFastPropertyValue( ::com::sun::star::uno::Any& rValue,
pProp = mpData->Get( BASEPROPERTY_FONTDESCRIPTOR );
::com::sun::star::awt::FontDescriptor aFD;
pProp->GetValue() >>= aFD;
- switch ( nPropId )
+ switch ( nPropId )
{
- case BASEPROPERTY_FONTDESCRIPTORPART_NAME: rValue <<= aFD.Name;
+ case BASEPROPERTY_FONTDESCRIPTORPART_NAME: rValue <<= aFD.Name;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_STYLENAME: rValue <<= aFD.StyleName;
+ case BASEPROPERTY_FONTDESCRIPTORPART_STYLENAME: rValue <<= aFD.StyleName;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_FAMILY: rValue <<= aFD.Family;
+ case BASEPROPERTY_FONTDESCRIPTORPART_FAMILY: rValue <<= aFD.Family;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_CHARSET: rValue <<= aFD.CharSet;
+ case BASEPROPERTY_FONTDESCRIPTORPART_CHARSET: rValue <<= aFD.CharSet;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_HEIGHT: rValue <<= (float)aFD.Height;
+ case BASEPROPERTY_FONTDESCRIPTORPART_HEIGHT: rValue <<= (float)aFD.Height;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WEIGHT: rValue <<= aFD.Weight;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WEIGHT: rValue <<= aFD.Weight;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_SLANT: rValue <<= (sal_Int16)aFD.Slant;
+ case BASEPROPERTY_FONTDESCRIPTORPART_SLANT: rValue <<= (sal_Int16)aFD.Slant;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_UNDERLINE: rValue <<= aFD.Underline;
+ case BASEPROPERTY_FONTDESCRIPTORPART_UNDERLINE: rValue <<= aFD.Underline;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_STRIKEOUT: rValue <<= aFD.Strikeout;
+ case BASEPROPERTY_FONTDESCRIPTORPART_STRIKEOUT: rValue <<= aFD.Strikeout;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WIDTH: rValue <<= aFD.Width;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WIDTH: rValue <<= aFD.Width;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_PITCH: rValue <<= aFD.Pitch;
+ case BASEPROPERTY_FONTDESCRIPTORPART_PITCH: rValue <<= aFD.Pitch;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_CHARWIDTH: rValue <<= aFD.CharacterWidth;
+ case BASEPROPERTY_FONTDESCRIPTORPART_CHARWIDTH: rValue <<= aFD.CharacterWidth;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_ORIENTATION: rValue <<= aFD.Orientation;
+ case BASEPROPERTY_FONTDESCRIPTORPART_ORIENTATION: rValue <<= aFD.Orientation;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_KERNING: rValue <<= aFD.Kerning;
+ case BASEPROPERTY_FONTDESCRIPTORPART_KERNING: rValue <<= aFD.Kerning;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_WORDLINEMODE: rValue <<= aFD.WordLineMode;
+ case BASEPROPERTY_FONTDESCRIPTORPART_WORDLINEMODE: rValue <<= aFD.WordLineMode;
break;
- case BASEPROPERTY_FONTDESCRIPTORPART_TYPE: rValue <<= aFD.Type;
+ case BASEPROPERTY_FONTDESCRIPTORPART_TYPE: rValue <<= aFD.Type;
break;
default: DBG_ERROR( "FontProperty?!" );
}
@@ -1345,7 +1345,7 @@ void UnoControlModel::setFastPropertyValue( sal_Int32 nPropId, const ::com::sun:
if ( ( nPropId >= BASEPROPERTY_FONTDESCRIPTORPART_START ) && ( nPropId <= BASEPROPERTY_FONTDESCRIPTORPART_END ) )
{
::osl::ClearableMutexGuard aGuard( GetMutex() );
-
+
Any aOldSingleValue;
getFastPropertyValue( aOldSingleValue, BASEPROPERTY_FONTDESCRIPTORPART_START );
@@ -1384,10 +1384,10 @@ void UnoControlModel::setFastPropertyValue( sal_Int32 nPropId, const ::com::sun:
void UnoControlModel::setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& Values ) throw(::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException)
{
::osl::ClearableMutexGuard aGuard( GetMutex() );
-
+
sal_Int32 nProps = rPropertyNames.getLength();
-// sal_Int32* pHandles = new sal_Int32[nProps];
+// sal_Int32* pHandles = new sal_Int32[nProps];
// don't do this - it leaks in case of an exception
Sequence< sal_Int32 > aHandles( nProps );
sal_Int32* pHandles = aHandles.getArray();
@@ -1399,16 +1399,16 @@ void UnoControlModel::setPropertyValues( const ::com::sun::star::uno::Sequence<
sal_Int32 nValidHandles = getInfoHelper().fillHandles( pHandles, rPropertyNames );
- if ( nValidHandles )
+ if ( nValidHandles )
{
// if somebody sets properties which are single aspects of a font descriptor,
// remove them, and build a font descriptor instead
::std::auto_ptr< awt::FontDescriptor > pFD;
- for ( sal_uInt16 n = 0; n < nProps; ++n )
+ for ( sal_uInt16 n = 0; n < nProps; ++n )
{
if ( ( pHandles[n] >= BASEPROPERTY_FONTDESCRIPTORPART_START ) && ( pHandles[n] <= BASEPROPERTY_FONTDESCRIPTORPART_END ) )
{
- if ( !pFD.get() )
+ if ( !pFD.get() )
{
ImplControlProperty* pProp = mpData->Get( BASEPROPERTY_FONTDESCRIPTOR );
pFD.reset( new awt::FontDescriptor );
@@ -1433,9 +1433,9 @@ void UnoControlModel::setPropertyValues( const ::com::sun::star::uno::Sequence<
else
aGuard.clear();
// same as a few lines above
-
+
// FD-Propertie nicht in das Array mergen, weil sortiert...
- if ( pFD.get() )
+ if ( pFD.get() )
{
::com::sun::star::uno::Any aValue;
aValue <<= *pFD;
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx
index b72ae69e44c6..90fcba2e4e32 100644
--- a/toolkit/source/controls/unocontrols.cxx
+++ b/toolkit/source/controls/unocontrols.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,7 +81,7 @@ using namespace ::toolkit;
#define IMPL_SERVICEINFO_DERIVED( ImplName, BaseClass, ServiceName ) \
::rtl::OUString SAL_CALL ImplName::getImplementationName( ) throw(::com::sun::star::uno::RuntimeException) { return ::rtl::OUString::createFromAscii( "stardiv.Toolkit." #ImplName ); } \
- ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL ImplName::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL ImplName::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
{ \
::com::sun::star::uno::Sequence< ::rtl::OUString > aNames = BaseClass::getSupportedServiceNames( ); \
aNames.realloc( aNames.getLength() + 1 ); \
@@ -91,9 +91,9 @@ using namespace ::toolkit;
-// ----------------------------------------------------
-// class UnoControlEditModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlEditModel
+// ----------------------------------------------------
UnoControlEditModel::UnoControlEditModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXEdit );
@@ -128,7 +128,7 @@ uno::Any UnoControlEditModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -142,9 +142,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlEditModel::getPropertySetInf
}
-// ----------------------------------------------------
-// class UnoEditControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoEditControl
+// ----------------------------------------------------
UnoEditControl::UnoEditControl()
:maTextListeners( *this )
,mnMaxTextLen( 0 )
@@ -456,9 +456,9 @@ void UnoEditControl::getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) t
}
-// ----------------------------------------------------
-// class UnoControlFileControlModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlFileControlModel
+// ----------------------------------------------------
UnoControlFileControlModel::UnoControlFileControlModel()
{
ImplRegisterProperty( BASEPROPERTY_ALIGN );
@@ -502,7 +502,7 @@ uno::Any UnoControlFileControlModel::ImplGetDefaultValue( sal_uInt16 nPropId ) c
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -515,9 +515,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlFileControlModel::getPropert
return xInfo;
}
-// ----------------------------------------------------
-// class UnoFileControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoFileControl
+// ----------------------------------------------------
UnoFileControl::UnoFileControl()
{
}
@@ -527,9 +527,9 @@ UnoFileControl::UnoFileControl()
return ::rtl::OUString::createFromAscii( "filecontrol" );
}
-// ----------------------------------------------------
-// class GraphicControlModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class GraphicControlModel
+// ----------------------------------------------------
uno::Any GraphicControlModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
{
if ( nPropId == BASEPROPERTY_GRAPHIC )
@@ -634,9 +634,9 @@ void SAL_CALL GraphicControlModel::setFastPropertyValue_NoBroadcast( sal_Int32 n
}
}
-// ----------------------------------------------------
-// class UnoControlButtonModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlButtonModel
+// ----------------------------------------------------
UnoControlButtonModel::UnoControlButtonModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXButton );
@@ -677,7 +677,7 @@ uno::Any UnoControlButtonModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -690,9 +690,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlButtonModel::getPropertySetI
return xInfo;
}
-// ----------------------------------------------------
-// class UnoButtonControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoButtonControl
+// ----------------------------------------------------
UnoButtonControl::UnoButtonControl()
: maActionListeners( *this )
, maItemListeners( *this )
@@ -829,9 +829,9 @@ awt::Size UnoButtonControl::calcAdjustedSize( const awt::Size& rNewSize ) throw(
return Impl_calcAdjustedSize( rNewSize );
}
-// ----------------------------------------------------
-// class UnoControlImageControlModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlImageControlModel
+// ----------------------------------------------------
UnoControlImageControlModel::UnoControlImageControlModel()
:mbAdjustingImageScaleMode( false )
{
@@ -859,7 +859,7 @@ uno::Any UnoControlImageControlModel::ImplGetDefaultValue( sal_uInt16 nPropId )
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -910,9 +910,9 @@ void SAL_CALL UnoControlImageControlModel::setFastPropertyValue_NoBroadcast( sal
}
}
-// ----------------------------------------------------
-// class UnoImageControlControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoImageControlControl
+// ----------------------------------------------------
UnoImageControlControl::UnoImageControlControl()
: maActionListeners( *this )
{
@@ -954,9 +954,9 @@ awt::Size UnoImageControlControl::calcAdjustedSize( const awt::Size& rNewSize )
return Impl_calcAdjustedSize( rNewSize );
}
-// ----------------------------------------------------
-// class UnoControlRadioButtonModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlRadioButtonModel
+// ----------------------------------------------------
UnoControlRadioButtonModel::UnoControlRadioButtonModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXRadioButton );
@@ -986,7 +986,7 @@ uno::Any UnoControlRadioButtonModel::ImplGetDefaultValue( sal_uInt16 nPropId ) c
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -1001,9 +1001,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlRadioButtonModel::getPropert
-// ----------------------------------------------------
-// class UnoRadioButtonControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoRadioButtonControl
+// ----------------------------------------------------
UnoRadioButtonControl::UnoRadioButtonControl()
: maItemListeners( *this ), maActionListeners( *this )
{
@@ -1161,9 +1161,9 @@ awt::Size UnoRadioButtonControl::calcAdjustedSize( const awt::Size& rNewSize ) t
return Impl_calcAdjustedSize( rNewSize );
}
-// ----------------------------------------------------
-// class UnoControlCheckBoxModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlCheckBoxModel
+// ----------------------------------------------------
UnoControlCheckBoxModel::UnoControlCheckBoxModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXCheckBox );
@@ -1193,7 +1193,7 @@ uno::Any UnoControlCheckBoxModel::ImplGetDefaultValue( sal_uInt16 nPropId ) cons
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -1208,9 +1208,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlCheckBoxModel::getPropertySe
-// ----------------------------------------------------
-// class UnoCheckBoxControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoCheckBoxControl
+// ----------------------------------------------------
UnoCheckBoxControl::UnoCheckBoxControl()
: maItemListeners( *this ), maActionListeners( *this )
{
@@ -1344,9 +1344,9 @@ awt::Size UnoCheckBoxControl::calcAdjustedSize( const awt::Size& rNewSize ) thro
return Impl_calcAdjustedSize( rNewSize );
}
-// ----------------------------------------------------
+// ----------------------------------------------------
// class UnoControlFixedHyperlinkModel
-// ----------------------------------------------------
+// ----------------------------------------------------
UnoControlFixedHyperlinkModel::UnoControlFixedHyperlinkModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXFixedHyperlink );
@@ -1386,7 +1386,7 @@ uno::Any UnoControlFixedHyperlinkModel::ImplGetDefaultValue( sal_uInt16 nPropId
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -1399,9 +1399,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlFixedHyperlinkModel::getProp
return xInfo;
}
-// ----------------------------------------------------
+// ----------------------------------------------------
// class UnoFixedHyperlinkControl
-// ----------------------------------------------------
+// ----------------------------------------------------
UnoFixedHyperlinkControl::UnoFixedHyperlinkControl()
: maActionListeners( *this )
{
@@ -1659,9 +1659,9 @@ awt::Size UnoFixedTextControl::calcAdjustedSize( const awt::Size& rNewSize ) thr
return Impl_calcAdjustedSize( rNewSize );
}
-// ----------------------------------------------------
-// class UnoControlGroupBoxModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlGroupBoxModel
+// ----------------------------------------------------
UnoControlGroupBoxModel::UnoControlGroupBoxModel()
{
ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL );
@@ -1697,7 +1697,7 @@ uno::Any UnoControlGroupBoxModel::ImplGetDefaultValue( sal_uInt16 nPropId ) cons
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -1710,9 +1710,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlGroupBoxModel::getPropertySe
return xInfo;
}
-// ----------------------------------------------------
-// class UnoGroupBoxControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoGroupBoxControl
+// ----------------------------------------------------
UnoGroupBoxControl::UnoGroupBoxControl()
{
maComponentInfos.nWidth = 100;
@@ -1766,7 +1766,7 @@ uno::Any UnoMultiPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -1779,9 +1779,9 @@ uno::Reference< beans::XPropertySetInfo > UnoMultiPageModel::getPropertySetInfo(
return xInfo;
}
-// ----------------------------------------------------
-// class MultiPageControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class MultiPageControl
+// ----------------------------------------------------
UnoMultiPageControl::UnoMultiPageControl()
{
maComponentInfos.nWidth = 100;
@@ -1948,7 +1948,7 @@ uno::Any UnoControlListBoxModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -2342,9 +2342,9 @@ void UnoControlListBoxModel::impl_notifyItemListEvent_nolck( const sal_Int32 i_n
m_aItemListListeners.notifyEach( NotificationMethod, aEvent );
}
-// ----------------------------------------------------
-// class UnoListBoxControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoListBoxControl
+// ----------------------------------------------------
UnoListBoxControl::UnoListBoxControl()
:maActionListeners( *this )
,maItemListeners( *this )
@@ -2764,17 +2764,17 @@ void SAL_CALL UnoListBoxControl::itemListChanged( const lang::EventObject& i_rEv
if ( xPeerListener.is() )
xPeerListener->itemListChanged( i_rEvent );
}
-ActionListenerMultiplexer& UnoListBoxControl::getActionListeners()
+ActionListenerMultiplexer& UnoListBoxControl::getActionListeners()
{
return maActionListeners;
}
-ItemListenerMultiplexer& UnoListBoxControl::getItemListeners()
+ItemListenerMultiplexer& UnoListBoxControl::getItemListeners()
{
return maItemListeners;
}
-// ----------------------------------------------------
-// class UnoControlComboBoxModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlComboBoxModel
+// ----------------------------------------------------
UnoControlComboBoxModel::UnoControlComboBoxModel() : UnoControlListBoxModel(true)
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXComboBox );
@@ -2793,7 +2793,7 @@ uno::Reference< beans::XPropertySetInfo > UnoControlComboBoxModel::getPropertySe
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -2847,11 +2847,11 @@ uno::Any UnoControlComboBoxModel::ImplGetDefaultValue( sal_uInt16 nPropId ) cons
return UnoControlModel::ImplGetDefaultValue( nPropId );
}
-// ----------------------------------------------------
-// class UnoComboBoxControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoComboBoxControl
+// ----------------------------------------------------
UnoComboBoxControl::UnoComboBoxControl()
- : maActionListeners( *this ),
+ : maActionListeners( *this ),
maItemListeners( *this )
{
maComponentInfos.nWidth = 100;
@@ -2961,7 +2961,7 @@ void UnoComboBoxControl::removeItemListener(const uno::Reference < awt::XItemLis
{
if( getPeer().is() && maItemListeners.getLength() == 1 )
{
- uno::Reference < awt::XComboBox > xComboBox( getPeer(), uno::UNO_QUERY ); // MT: Mal alles so umstellen, schoener als Ref anlegen und query rufen
+ uno::Reference < awt::XComboBox > xComboBox( getPeer(), uno::UNO_QUERY ); // MT: Mal alles so umstellen, schoener als Ref anlegen und query rufen
xComboBox->removeItemListener( &maItemListeners );
}
maItemListeners.removeInterface( l );
@@ -3045,11 +3045,11 @@ void SAL_CALL UnoComboBoxControl::itemListChanged( const lang::EventObject& i_rE
if ( xPeerListener.is() )
xPeerListener->itemListChanged( i_rEvent );
}
-ActionListenerMultiplexer& UnoComboBoxControl::getActionListeners()
+ActionListenerMultiplexer& UnoComboBoxControl::getActionListeners()
{
return maActionListeners;
}
-ItemListenerMultiplexer& UnoComboBoxControl::getItemListeners()
+ItemListenerMultiplexer& UnoComboBoxControl::getItemListeners()
{
return maItemListeners;
}
@@ -3167,9 +3167,9 @@ sal_Int16 UnoComboBoxControl::getDropDownLineCount() throw(uno::RuntimeException
}
-// ----------------------------------------------------
-// UnoSpinFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// UnoSpinFieldControl
+// ----------------------------------------------------
UnoSpinFieldControl::UnoSpinFieldControl() : maSpinListeners( *this )
{
mbRepeat = sal_False;
@@ -3257,9 +3257,9 @@ void UnoSpinFieldControl::enableRepeat( sal_Bool bRepeat ) throw(::com::sun::sta
xField->enableRepeat( bRepeat );
}
-// ----------------------------------------------------
-// class UnoControlDateFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlDateFieldModel
+// ----------------------------------------------------
UnoControlDateFieldModel::UnoControlDateFieldModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXDateField );
@@ -3287,7 +3287,7 @@ uno::Any UnoControlDateFieldModel::ImplGetDefaultValue( sal_uInt16 nPropId ) con
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -3302,9 +3302,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlDateFieldModel::getPropertyS
-// ----------------------------------------------------
-// class UnoDateFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoDateFieldControl
+// ----------------------------------------------------
UnoDateFieldControl::UnoDateFieldControl()
{
mnFirst = Date( 1, 1, 1900 ).GetDate();
@@ -3497,9 +3497,9 @@ sal_Bool UnoDateFieldControl::isStrictFormat() throw(uno::RuntimeException)
return ImplGetPropertyValue_BOOL( BASEPROPERTY_STRICTFORMAT );
}
-// ----------------------------------------------------
-// class UnoControlTimeFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlTimeFieldModel
+// ----------------------------------------------------
UnoControlTimeFieldModel::UnoControlTimeFieldModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXTimeField );
@@ -3527,7 +3527,7 @@ uno::Any UnoControlTimeFieldModel::ImplGetDefaultValue( sal_uInt16 nPropId ) con
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -3542,9 +3542,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlTimeFieldModel::getPropertyS
-// ----------------------------------------------------
-// class UnoTimeFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoTimeFieldControl
+// ----------------------------------------------------
UnoTimeFieldControl::UnoTimeFieldControl()
{
mnFirst = Time( 0, 0 ).GetTime();
@@ -3696,9 +3696,9 @@ sal_Bool UnoTimeFieldControl::isStrictFormat() throw(uno::RuntimeException)
return ImplGetPropertyValue_BOOL( BASEPROPERTY_STRICTFORMAT );
}
-// ----------------------------------------------------
-// class UnoControlNumericFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlNumericFieldModel
+// ----------------------------------------------------
UnoControlNumericFieldModel::UnoControlNumericFieldModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXNumericField );
@@ -3726,7 +3726,7 @@ uno::Any UnoControlNumericFieldModel::ImplGetDefaultValue( sal_uInt16 nPropId )
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -3741,9 +3741,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlNumericFieldModel::getProper
-// ----------------------------------------------------
-// class UnoNumericFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoNumericFieldControl
+// ----------------------------------------------------
UnoNumericFieldControl::UnoNumericFieldControl()
{
mnFirst = 0;
@@ -3892,9 +3892,9 @@ sal_Int16 UnoNumericFieldControl::getDecimalDigits() throw(uno::RuntimeException
return ImplGetPropertyValue_INT16( BASEPROPERTY_DECIMALACCURACY );
}
-// ----------------------------------------------------
-// class UnoControlCurrencyFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlCurrencyFieldModel
+// ----------------------------------------------------
UnoControlCurrencyFieldModel::UnoControlCurrencyFieldModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXCurrencyField );
@@ -3928,7 +3928,7 @@ uno::Any UnoControlCurrencyFieldModel::ImplGetDefaultValue( sal_uInt16 nPropId )
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -3941,9 +3941,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlCurrencyFieldModel::getPrope
return xInfo;
}
-// ----------------------------------------------------
-// class UnoCurrencyFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoCurrencyFieldControl
+// ----------------------------------------------------
UnoCurrencyFieldControl::UnoCurrencyFieldControl()
{
mnFirst = 0;
@@ -4091,9 +4091,9 @@ sal_Int16 UnoCurrencyFieldControl::getDecimalDigits() throw(uno::RuntimeExceptio
return ImplGetPropertyValue_INT16( BASEPROPERTY_DECIMALACCURACY );
}
-// ----------------------------------------------------
-// class UnoControlPatternFieldModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlPatternFieldModel
+// ----------------------------------------------------
UnoControlPatternFieldModel::UnoControlPatternFieldModel()
{
UNO_CONTROL_MODEL_REGISTER_PROPERTIES( VCLXPatternField );
@@ -4120,7 +4120,7 @@ uno::Any UnoControlPatternFieldModel::ImplGetDefaultValue( sal_uInt16 nPropId )
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -4134,9 +4134,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlPatternFieldModel::getProper
}
-// ----------------------------------------------------
-// class UnoPatternFieldControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoPatternFieldControl
+// ----------------------------------------------------
UnoPatternFieldControl::UnoPatternFieldControl()
{
}
@@ -4223,9 +4223,9 @@ sal_Bool UnoPatternFieldControl::isStrictFormat() throw(uno::RuntimeException)
}
-// ----------------------------------------------------
-// class UnoControlProgressBarModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlProgressBarModel
+// ----------------------------------------------------
UnoControlProgressBarModel::UnoControlProgressBarModel()
{
ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
@@ -4265,7 +4265,7 @@ uno::Any UnoControlProgressBarModel::ImplGetDefaultValue( sal_uInt16 nPropId ) c
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -4279,9 +4279,9 @@ uno::Reference< beans::XPropertySetInfo > UnoControlProgressBarModel::getPropert
}
-// ----------------------------------------------------
-// class UnoProgressBarControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoProgressBarControl
+// ----------------------------------------------------
UnoProgressBarControl::UnoProgressBarControl()
{
}
@@ -4355,9 +4355,9 @@ sal_Int32 UnoProgressBarControl::getValue() throw(::com::sun::star::uno::Runtime
}
-// ----------------------------------------------------
-// class UnoControlFixedLineModel
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoControlFixedLineModel
+// ----------------------------------------------------
UnoControlFixedLineModel::UnoControlFixedLineModel()
{
ImplRegisterProperty( BASEPROPERTY_BACKGROUNDCOLOR );
@@ -4393,7 +4393,7 @@ uno::Any UnoControlFixedLineModel::ImplGetDefaultValue( sal_uInt16 nPropId ) con
static UnoPropertyArrayHelper* pHelper = NULL;
if ( !pHelper )
{
- uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
+ uno::Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
pHelper = new UnoPropertyArrayHelper( aIDs );
}
return *pHelper;
@@ -4406,13 +4406,13 @@ uno::Reference< beans::XPropertySetInfo > UnoControlFixedLineModel::getPropertyS
return xInfo;
}
-// ----------------------------------------------------
-// class UnoFixedLineControl
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoFixedLineControl
+// ----------------------------------------------------
UnoFixedLineControl::UnoFixedLineControl()
{
- maComponentInfos.nWidth = 100; // ??
- maComponentInfos.nHeight = 100; // ??
+ maComponentInfos.nWidth = 100; // ??
+ maComponentInfos.nHeight = 100; // ??
}
::rtl::OUString UnoFixedLineControl::GetComponentServiceName()
diff --git a/toolkit/source/helper/accessibilityclient.cxx b/toolkit/source/helper/accessibilityclient.cxx
index f172e4791c51..63982e5d7a64 100644
--- a/toolkit/source/helper/accessibilityclient.cxx
+++ b/toolkit/source/helper/accessibilityclient.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/helper/externallock.cxx b/toolkit/source/helper/externallock.cxx
index 9f5de20466cc..33be3e7e5c76 100644
--- a/toolkit/source/helper/externallock.cxx
+++ b/toolkit/source/helper/externallock.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#include <vcl/svapp.hxx>
// -----------------------------------------------------------------------------
-// class VCLExternalSolarLock
+// class VCLExternalSolarLock
// -----------------------------------------------------------------------------
void VCLExternalSolarLock::acquire()
{
diff --git a/toolkit/source/helper/fixedhyperbase.cxx b/toolkit/source/helper/fixedhyperbase.cxx
index 0519593339d8..b9ce25f40f8f 100644
--- a/toolkit/source/helper/fixedhyperbase.cxx
+++ b/toolkit/source/helper/fixedhyperbase.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ namespace toolkit
// ----------------------------------------------------
// class FixedHyperlinkBase
-// ----------------------------------------------------
+// ----------------------------------------------------
FixedHyperlinkBase::FixedHyperlinkBase( Window* pParent, const ResId& rId ) :
FixedText( pParent, rId )
diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx
index 32dccee23668..5f11d2b5aa88 100644
--- a/toolkit/source/helper/formpdfexport.cxx
+++ b/toolkit/source/helper/formpdfexport.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -423,7 +423,7 @@ namespace toolkitform
OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_FONT ) >>= aUNOFont );
_rpDescriptor->TextFont = VCLUnoHelper::CreateFont( aUNOFont, Font() );
}
-
+
// tab order
rtl::OUString aTabIndexString( RTL_CONSTASCII_USTRINGPARAM( "TabIndex" ) );
if ( xPSI->hasPropertyByName( aTabIndexString ) )
@@ -561,7 +561,7 @@ namespace toolkitform
// since we explicitly list the entries in the order in which they appear, they should not be
// resorted by the PDF viewer
pListWidget->Sort = false;
-
+
// get selected items
Sequence< sal_Int16 > aSelectIndices;
OSL_VERIFY( xModelProps->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "SelectedItems" ) ) ) >>= aSelectIndices );
diff --git a/toolkit/source/helper/imagealign.cxx b/toolkit/source/helper/imagealign.cxx
index 4c782c99c37e..28ad8a0d1f77 100644
--- a/toolkit/source/helper/imagealign.cxx
+++ b/toolkit/source/helper/imagealign.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/helper/listenermultiplexer.cxx b/toolkit/source/helper/listenermultiplexer.cxx
index 1e75709f188f..c197d7e921ab 100644
--- a/toolkit/source/helper/listenermultiplexer.cxx
+++ b/toolkit/source/helper/listenermultiplexer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,9 +31,9 @@
#include <toolkit/helper/listenermultiplexer.hxx>
#include <com/sun/star/lang/DisposedException.hpp>
-// ----------------------------------------------------
-// class ListenerMultiplexerBase
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ListenerMultiplexerBase
+// ----------------------------------------------------
ListenerMultiplexerBase::ListenerMultiplexerBase( ::cppu::OWeakObject& rSource )
: ::cppu::OInterfaceContainerHelper( GetMutex() ), mrContext( rSource )
{
@@ -50,9 +50,9 @@ ListenerMultiplexerBase::~ListenerMultiplexerBase()
}
-// ----------------------------------------------------
-// class EventListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class EventListenerMultiplexer
+// ----------------------------------------------------
EventListenerMultiplexer::EventListenerMultiplexer( ::cppu::OWeakObject& rSource )
: ListenerMultiplexerBase( rSource )
{
@@ -71,61 +71,61 @@ void EventListenerMultiplexer::disposing( const ::com::sun::star::lang::EventObj
{
}
-// ----------------------------------------------------
-// class FocusListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class FocusListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( FocusListenerMultiplexer, ::com::sun::star::awt::XFocusListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( FocusListenerMultiplexer, ::com::sun::star::awt::XFocusListener, focusGained, ::com::sun::star::awt::FocusEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( FocusListenerMultiplexer, ::com::sun::star::awt::XFocusListener, focusLost, ::com::sun::star::awt::FocusEvent )
-// ----------------------------------------------------
-// class WindowListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class WindowListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( WindowListenerMultiplexer, ::com::sun::star::awt::XWindowListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( WindowListenerMultiplexer, ::com::sun::star::awt::XWindowListener, windowResized, ::com::sun::star::awt::WindowEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( WindowListenerMultiplexer, ::com::sun::star::awt::XWindowListener, windowMoved, ::com::sun::star::awt::WindowEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( WindowListenerMultiplexer, ::com::sun::star::awt::XWindowListener, windowShown, ::com::sun::star::lang::EventObject )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( WindowListenerMultiplexer, ::com::sun::star::awt::XWindowListener, windowHidden, ::com::sun::star::lang::EventObject )
-// ----------------------------------------------------
-// class VclContainerListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VclContainerListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( VclContainerListenerMultiplexer, ::com::sun::star::awt::XVclContainerListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( VclContainerListenerMultiplexer, ::com::sun::star::awt::XVclContainerListener, windowAdded, ::com::sun::star::awt::VclContainerEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( VclContainerListenerMultiplexer, ::com::sun::star::awt::XVclContainerListener, windowRemoved, ::com::sun::star::awt::VclContainerEvent )
-// ----------------------------------------------------
-// class KeyListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class KeyListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( KeyListenerMultiplexer, ::com::sun::star::awt::XKeyListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( KeyListenerMultiplexer, ::com::sun::star::awt::XKeyListener, keyPressed, ::com::sun::star::awt::KeyEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( KeyListenerMultiplexer, ::com::sun::star::awt::XKeyListener, keyReleased, ::com::sun::star::awt::KeyEvent )
-// ----------------------------------------------------
-// class MouseListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class MouseListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( MouseListenerMultiplexer, ::com::sun::star::awt::XMouseListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MouseListenerMultiplexer, ::com::sun::star::awt::XMouseListener, mousePressed, ::com::sun::star::awt::MouseEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MouseListenerMultiplexer, ::com::sun::star::awt::XMouseListener, mouseReleased, ::com::sun::star::awt::MouseEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MouseListenerMultiplexer, ::com::sun::star::awt::XMouseListener, mouseEntered, ::com::sun::star::awt::MouseEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MouseListenerMultiplexer, ::com::sun::star::awt::XMouseListener, mouseExited, ::com::sun::star::awt::MouseEvent )
-// ----------------------------------------------------
-// class MouseMotionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class MouseMotionListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( MouseMotionListenerMultiplexer, ::com::sun::star::awt::XMouseMotionListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MouseMotionListenerMultiplexer, ::com::sun::star::awt::XMouseMotionListener, mouseDragged, ::com::sun::star::awt::MouseEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MouseMotionListenerMultiplexer, ::com::sun::star::awt::XMouseMotionListener, mouseMoved, ::com::sun::star::awt::MouseEvent )
-// ----------------------------------------------------
-// class PaintListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class PaintListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( PaintListenerMultiplexer, ::com::sun::star::awt::XPaintListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( PaintListenerMultiplexer, ::com::sun::star::awt::XPaintListener, windowPaint, ::com::sun::star::awt::PaintEvent )
-// ----------------------------------------------------
-// class TopWindowListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TopWindowListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( TopWindowListenerMultiplexer, ::com::sun::star::awt::XTopWindowListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TopWindowListenerMultiplexer, ::com::sun::star::awt::XTopWindowListener, windowOpened, ::com::sun::star::lang::EventObject )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TopWindowListenerMultiplexer, ::com::sun::star::awt::XTopWindowListener, windowClosing, ::com::sun::star::lang::EventObject )
@@ -135,65 +135,65 @@ IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TopWindowListenerMultiplexer, ::com::su
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TopWindowListenerMultiplexer, ::com::sun::star::awt::XTopWindowListener, windowActivated, ::com::sun::star::lang::EventObject )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TopWindowListenerMultiplexer, ::com::sun::star::awt::XTopWindowListener, windowDeactivated, ::com::sun::star::lang::EventObject )
-// ----------------------------------------------------
-// class TextListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TextListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( TextListenerMultiplexer, ::com::sun::star::awt::XTextListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TextListenerMultiplexer, ::com::sun::star::awt::XTextListener, textChanged, ::com::sun::star::awt::TextEvent )
-// ----------------------------------------------------
-// class ActionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ActionListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( ActionListenerMultiplexer, ::com::sun::star::awt::XActionListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( ActionListenerMultiplexer, ::com::sun::star::awt::XActionListener, actionPerformed, ::com::sun::star::awt::ActionEvent )
-// ----------------------------------------------------
-// class ItemListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ItemListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( ItemListenerMultiplexer, ::com::sun::star::awt::XItemListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( ItemListenerMultiplexer, ::com::sun::star::awt::XItemListener, itemStateChanged, ::com::sun::star::awt::ItemEvent )
-// ----------------------------------------------------
-// class ContainerListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class ContainerListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( ContainerListenerMultiplexer, ::com::sun::star::container::XContainerListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( ContainerListenerMultiplexer, ::com::sun::star::container::XContainerListener, elementInserted, ::com::sun::star::container::ContainerEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( ContainerListenerMultiplexer, ::com::sun::star::container::XContainerListener, elementRemoved, ::com::sun::star::container::ContainerEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( ContainerListenerMultiplexer, ::com::sun::star::container::XContainerListener, elementReplaced, ::com::sun::star::container::ContainerEvent )
-
-// ----------------------------------------------------
-// class SpinListenerMultiplexer
-// ----------------------------------------------------
+
+// ----------------------------------------------------
+// class SpinListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( SpinListenerMultiplexer, ::com::sun::star::awt::XSpinListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( SpinListenerMultiplexer, ::com::sun::star::awt::XSpinListener, up, ::com::sun::star::awt::SpinEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( SpinListenerMultiplexer, ::com::sun::star::awt::XSpinListener, down, ::com::sun::star::awt::SpinEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( SpinListenerMultiplexer, ::com::sun::star::awt::XSpinListener, first, ::com::sun::star::awt::SpinEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( SpinListenerMultiplexer, ::com::sun::star::awt::XSpinListener, last, ::com::sun::star::awt::SpinEvent )
-// ----------------------------------------------------
-// class AdjustmentListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class AdjustmentListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( AdjustmentListenerMultiplexer, ::com::sun::star::awt::XAdjustmentListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( AdjustmentListenerMultiplexer, ::com::sun::star::awt::XAdjustmentListener, adjustmentValueChanged, ::com::sun::star::awt::AdjustmentEvent )
-// ----------------------------------------------------
-// class MenuListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class MenuListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( MenuListenerMultiplexer, ::com::sun::star::awt::XMenuListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MenuListenerMultiplexer, ::com::sun::star::awt::XMenuListener, highlight, ::com::sun::star::awt::MenuEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MenuListenerMultiplexer, ::com::sun::star::awt::XMenuListener, select, ::com::sun::star::awt::MenuEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MenuListenerMultiplexer, ::com::sun::star::awt::XMenuListener, activate, ::com::sun::star::awt::MenuEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( MenuListenerMultiplexer, ::com::sun::star::awt::XMenuListener, deactivate, ::com::sun::star::awt::MenuEvent )
-// ----------------------------------------------------
-// class TreeSelectionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TreeSelectionListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( TreeSelectionListenerMultiplexer, ::com::sun::star::view::XSelectionChangeListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TreeSelectionListenerMultiplexer, ::com::sun::star::view::XSelectionChangeListener, selectionChanged, ::com::sun::star::lang::EventObject )
-// ----------------------------------------------------
-// class TreeSelectionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TreeSelectionListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( TreeExpansionListenerMultiplexer, ::com::sun::star::awt::tree::XTreeExpansionListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TreeExpansionListenerMultiplexer, ::com::sun::star::awt::tree::XTreeExpansionListener, requestChildNodes, ::com::sun::star::awt::tree::TreeExpansionEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_EXCEPTION( TreeExpansionListenerMultiplexer, ::com::sun::star::awt::tree::XTreeExpansionListener, treeExpanding, ::com::sun::star::awt::tree::TreeExpansionEvent, ::com::sun::star::awt::tree::ExpandVetoException )
@@ -201,14 +201,14 @@ IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD_EXCEPTION( TreeExpansionListenerMultiple
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TreeExpansionListenerMultiplexer, ::com::sun::star::awt::tree::XTreeExpansionListener, treeExpanded, ::com::sun::star::awt::tree::TreeExpansionEvent )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( TreeExpansionListenerMultiplexer, ::com::sun::star::awt::tree::XTreeExpansionListener, treeCollapsed, ::com::sun::star::awt::tree::TreeExpansionEvent )
-// ----------------------------------------------------
-// class TreeEditListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class TreeEditListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( TreeEditListenerMultiplexer, ::com::sun::star::awt::tree::XTreeEditListener )
-// ----------------------------------------------------
-// class SelectionListenerMultiplexer
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class SelectionListenerMultiplexer
+// ----------------------------------------------------
IMPL_LISTENERMULTIPLEXER_BASEMETHODS( SelectionListenerMultiplexer, ::com::sun::star::awt::grid::XGridSelectionListener )
IMPL_LISTENERMULTIPLEXER_LISTENERMETHOD( SelectionListenerMultiplexer, ::com::sun::star::awt::grid::XGridSelectionListener, selectionChanged, ::com::sun::star::awt::grid::GridSelectionEvent )
diff --git a/toolkit/source/helper/property.cxx b/toolkit/source/helper/property.cxx
index 9e49ed6bd316..93d685063a13 100644
--- a/toolkit/source/helper/property.cxx
+++ b/toolkit/source/helper/property.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
#include <toolkit/helper/macros.hxx>
#include <osl/mutex.hxx>
-#include <stdlib.h> // qsort/bsearch
+#include <stdlib.h> // qsort/bsearch
#include <tools/debug.hxx>
#include <com/sun/star/awt/FontWeight.hpp>
#include <com/sun/star/awt/FontSlant.hpp>
@@ -70,11 +70,11 @@ using ::com::sun::star::style::VerticalAlignment;
struct ImplPropertyInfo
{
- ::rtl::OUString aName;
- sal_uInt16 nPropId;
- ::com::sun::star::uno::Type aType;
- sal_Int16 nAttribs;
- sal_Bool bDependsOnOthers; // eg. VALUE depends on MIN/MAX and must be set after MIN/MAX.
+ ::rtl::OUString aName;
+ sal_uInt16 nPropId;
+ ::com::sun::star::uno::Type aType;
+ sal_Int16 nAttribs;
+ sal_Bool bDependsOnOthers; // eg. VALUE depends on MIN/MAX and must be set after MIN/MAX.
ImplPropertyInfo()
{
@@ -208,7 +208,7 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount )
DECL_PROP_2 ( "MultiSelection", MULTISELECTION, bool, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "MultiSelectionSimpleMode", MULTISELECTION_SIMPLEMODE, bool, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "NativeWidgetLook", NATIVE_WIDGET_LOOK, bool, BOUND, MAYBEDEFAULT ),
- DECL_PROP_2 ( "NoLabel", NOLABEL, bool, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_2 ( "NoLabel", NOLABEL, bool, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "Orientation", ORIENTATION, sal_Int32, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "PaintTransparent", PAINTTRANSPARENT, bool, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "PluginParent", PLUGINPARENT, sal_Int64, BOUND, MAYBEDEFAULT ),
@@ -267,29 +267,29 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount )
DECL_PROP_2 ( "StepTime", STEP_TIME, sal_Int32, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "Decoration", DECORATION, sal_Bool, BOUND, MAYBEDEFAULT ),
- DECL_PROP_2 ( "SelectionType", TREE_SELECTIONTYPE, ::com::sun::star::view::SelectionType, BOUND, MAYBEDEFAULT ),
- DECL_PROP_2 ( "Editable", TREE_EDITABLE, sal_Bool, BOUND, MAYBEDEFAULT ),
- DECL_PROP_3 ( "DataModel", TREE_DATAMODEL, Reference< ::com::sun::star::awt::tree::XTreeDataModel >, BOUND, MAYBEDEFAULT, MAYBEVOID ),
- DECL_PROP_2 ( "RootDisplayed", TREE_ROOTDISPLAYED, sal_Bool, BOUND, MAYBEDEFAULT ),
- DECL_PROP_2 ( "ShowsHandles", TREE_SHOWSHANDLES, sal_Bool, BOUND, MAYBEDEFAULT ),
- DECL_PROP_2 ( "ShowsRootHandles", TREE_SHOWSROOTHANDLES, sal_Bool, BOUND, MAYBEDEFAULT ),
- DECL_PROP_3 ( "RowHeight", TREE_ROWHEIGHT, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ),
- DECL_PROP_2 ( "InvokesStopNodeEditing", TREE_INVOKESSTOPNODEEDITING, sal_Bool, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_2 ( "SelectionType", TREE_SELECTIONTYPE, ::com::sun::star::view::SelectionType, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_2 ( "Editable", TREE_EDITABLE, sal_Bool, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_3 ( "DataModel", TREE_DATAMODEL, Reference< ::com::sun::star::awt::tree::XTreeDataModel >, BOUND, MAYBEDEFAULT, MAYBEVOID ),
+ DECL_PROP_2 ( "RootDisplayed", TREE_ROOTDISPLAYED, sal_Bool, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_2 ( "ShowsHandles", TREE_SHOWSHANDLES, sal_Bool, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_2 ( "ShowsRootHandles", TREE_SHOWSROOTHANDLES, sal_Bool, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_3 ( "RowHeight", TREE_ROWHEIGHT, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ),
+ DECL_PROP_2 ( "InvokesStopNodeEditing", TREE_INVOKESSTOPNODEEDITING, sal_Bool, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "DialogSourceURL", DIALOGSOURCEURL, ::rtl::OUString, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "URL", URL, ::rtl::OUString, BOUND, MAYBEDEFAULT ),
DECL_PROP_2 ( "WritingMode", WRITING_MODE, sal_Int16, BOUND, MAYBEDEFAULT ),
DECL_PROP_3 ( "ContextWritingMode", CONTEXT_WRITING_MODE, sal_Int16, BOUND, MAYBEDEFAULT, TRANSIENT ),
- DECL_PROP_2 ( "ShowRowHeader", GRID_SHOWROWHEADER, sal_Bool, BOUND, MAYBEDEFAULT ),
- DECL_PROP_2 ( "ShowColumnHeader", GRID_SHOWCOLUMNHEADER, sal_Bool, BOUND, MAYBEDEFAULT ),
- DECL_PROP_3 ( "GridDataModel", GRID_DATAMODEL, Reference< ::com::sun::star::awt::grid::XGridDataModel >, BOUND, MAYBEDEFAULT, MAYBEVOID ),
- DECL_PROP_3 ( "ColumnModel", GRID_COLUMNMODEL, Reference< ::com::sun::star::awt::grid::XGridColumnModel >, BOUND, MAYBEDEFAULT, MAYBEVOID ),
- DECL_PROP_3 ( "SelectionModel", GRID_SELECTIONMODE, ::com::sun::star::view::SelectionType, BOUND, MAYBEDEFAULT, MAYBEVOID ),
+ DECL_PROP_2 ( "ShowRowHeader", GRID_SHOWROWHEADER, sal_Bool, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_2 ( "ShowColumnHeader", GRID_SHOWCOLUMNHEADER, sal_Bool, BOUND, MAYBEDEFAULT ),
+ DECL_PROP_3 ( "GridDataModel", GRID_DATAMODEL, Reference< ::com::sun::star::awt::grid::XGridDataModel >, BOUND, MAYBEDEFAULT, MAYBEVOID ),
+ DECL_PROP_3 ( "ColumnModel", GRID_COLUMNMODEL, Reference< ::com::sun::star::awt::grid::XGridColumnModel >, BOUND, MAYBEDEFAULT, MAYBEVOID ),
+ DECL_PROP_3 ( "SelectionModel", GRID_SELECTIONMODE, ::com::sun::star::view::SelectionType, BOUND, MAYBEDEFAULT, MAYBEVOID ),
DECL_PROP_2 ( "EnableVisible", ENABLEVISIBLE, sal_Bool, BOUND, MAYBEDEFAULT ),
DECL_PROP_3 ( "ReferenceDevice", REFERENCE_DEVICE, Reference< XDevice >,BOUND, MAYBEDEFAULT, TRANSIENT ),
DECL_PROP_3 ( "EvenRowBackgroundColor", GRID_EVEN_ROW_BACKGROUND, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ),
DECL_PROP_3 ( "HeaderBackgroundColor", GRID_HEADER_BACKGROUND, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ),
DECL_PROP_3 ( "GridLineColor", GRID_LINE_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ),
- DECL_PROP_3 ( "RowBackgroundColor", GRID_ROW_BACKGROUND, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID )
+ DECL_PROP_3 ( "RowBackgroundColor", GRID_ROW_BACKGROUND, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID )
};
pPropertyInfos = aImplPropertyInfos;
nElements = sizeof( aImplPropertyInfos ) / sizeof( ImplPropertyInfo );
@@ -302,15 +302,15 @@ ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount )
struct ImplPropertyInfoCompareFunctor : ::std::binary_function<ImplPropertyInfo,::rtl::OUString,bool>
{
- inline bool operator()(const ImplPropertyInfo& lhs,const ImplPropertyInfo& rhs) const
+ inline bool operator()(const ImplPropertyInfo& lhs,const ImplPropertyInfo& rhs) const
{
return lhs.aName.compareTo(rhs.aName) < 0;
}
- inline bool operator()(const ImplPropertyInfo& lhs,const ::rtl::OUString& rhs) const
+ inline bool operator()(const ImplPropertyInfo& lhs,const ::rtl::OUString& rhs) const
{
return lhs.aName.compareTo(rhs) < 0;
}
- inline bool operator()(const ::rtl::OUString& lhs,const ImplPropertyInfo& rhs) const
+ inline bool operator()(const ::rtl::OUString& lhs,const ImplPropertyInfo& rhs) const
{
return lhs.compareTo(rhs.aName) < 0;
}
diff --git a/toolkit/source/helper/registerservices.cxx b/toolkit/source/helper/registerservices.cxx
index 95d91c2d96ab..f2197952040f 100644
--- a/toolkit/source/helper/registerservices.cxx
+++ b/toolkit/source/helper/registerservices.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/helper/servicenames.cxx b/toolkit/source/helper/servicenames.cxx
index 1a310d1d12df..5bd87f1b6dff 100644
--- a/toolkit/source/helper/servicenames.cxx
+++ b/toolkit/source/helper/servicenames.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/helper/throbberimpl.cxx b/toolkit/source/helper/throbberimpl.cxx
index 509407d3ff66..0bb2a75f28b4 100644
--- a/toolkit/source/helper/throbberimpl.cxx
+++ b/toolkit/source/helper/throbberimpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ namespace toolkit
mnCurStep = 0;
maWaitTimer.Start();
}
-
+
//--------------------------------------------------------------------
void Throbber_Impl::stop() throw ( uno::RuntimeException )
{
diff --git a/toolkit/source/helper/tkresmgr.cxx b/toolkit/source/helper/tkresmgr.cxx
index 0fad4faba19f..eb1606b9d5dc 100644
--- a/toolkit/source/helper/tkresmgr.cxx
+++ b/toolkit/source/helper/tkresmgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/helper/unomemorystream.cxx b/toolkit/source/helper/unomemorystream.cxx
index 765353e9b678..3105da5414a5 100644
--- a/toolkit/source/helper/unomemorystream.cxx
+++ b/toolkit/source/helper/unomemorystream.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,9 +33,9 @@
#include <toolkit/helper/unomemorystream.hxx>
#include <algorithm>
-// ----------------------------------------------------
-// class UnoMemoryStream
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoMemoryStream
+// ----------------------------------------------------
UnoMemoryStream::UnoMemoryStream( sal_uInt32 nInitSize, sal_uInt32 nInitResize )
: SvMemoryStream( nInitSize, nInitResize )
{
@@ -49,7 +49,7 @@ UnoMemoryStream::UnoMemoryStream( sal_uInt32 nInitSize, sal_uInt32 nInitResize )
return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ));
}
-
+
// ::com::sun::star::io::XInputStream
sal_Int32 UnoMemoryStream::readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
@@ -58,10 +58,10 @@ sal_Int32 UnoMemoryStream::readBytes( ::com::sun::star::uno::Sequence< sal_Int8
sal_Int32 nRead = available();
if ( nRead > nBytesToRead )
nRead = nBytesToRead;
-
+
rData = ::com::sun::star::uno::Sequence< sal_Int8 >( nRead );
Read( rData.getArray(), nRead );
-
+
return nRead;
}
@@ -70,14 +70,14 @@ sal_Int32 UnoMemoryStream::readSomeBytes( ::com::sun::star::uno::Sequence< sal_I
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
sal_Int32 nAvailable = available();
- if( nAvailable )
+ if( nAvailable )
{
return readBytes( rData, std::min( nMaxBytesToRead , nAvailable ) );
}
- else
+ else
{
// Not the most effective method, but it sticks to the specification
- return readBytes( rData, 1 );
+ return readBytes( rData, 1 );
}
}
@@ -100,7 +100,7 @@ sal_Int32 UnoMemoryStream::available() throw(::com::sun::star::io::NotConnectedE
void UnoMemoryStream::closeInput() throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
- // nothing to do
+ // nothing to do
}
diff --git a/toolkit/source/helper/unopropertyarrayhelper.cxx b/toolkit/source/helper/unopropertyarrayhelper.cxx
index f17fab4e9e58..0902fdd4f152 100644
--- a/toolkit/source/helper/unopropertyarrayhelper.cxx
+++ b/toolkit/source/helper/unopropertyarrayhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,9 +32,9 @@
#include <toolkit/helper/unopropertyarrayhelper.hxx>
#include <toolkit/helper/property.hxx>
-// ----------------------------------------------------
-// class UnoPropertyArrayHelper
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoPropertyArrayHelper
+// ----------------------------------------------------
UnoPropertyArrayHelper::UnoPropertyArrayHelper( const ::com::sun::star::uno::Sequence<sal_Int32>& rIDs )
{
@@ -55,7 +55,7 @@ sal_Bool UnoPropertyArrayHelper::ImplHasProperty( sal_uInt16 nPropId ) const
{
if ( ( nPropId >= BASEPROPERTY_FONTDESCRIPTORPART_START ) && ( nPropId <= BASEPROPERTY_FONTDESCRIPTORPART_END ) )
nPropId = BASEPROPERTY_FONTDESCRIPTOR;
-
+
return maIDs.Get( nPropId ) ? sal_True : sal_False;
}
@@ -64,11 +64,11 @@ sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( ::rtl::OUString *
{
sal_uInt16 id = sal::static_int_cast< sal_uInt16 >(nPropId);
sal_Bool bValid = ImplHasProperty( id );
- if ( bValid )
+ if ( bValid )
{
- if ( pPropName )
+ if ( pPropName )
*pPropName = GetPropertyName( id );
- if ( pAttributes )
+ if ( pAttributes )
*pAttributes = GetPropertyAttribs( id );
}
return bValid;
@@ -77,7 +77,7 @@ sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( ::rtl::OUString *
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > UnoPropertyArrayHelper::getProperties()
{
// Sortiert nach Namen...
-
+
Table aSortedPropsIds;
sal_uInt32 nProps = maIDs.Count();
for ( sal_uInt32 s = 0; s < nProps; s++ )
@@ -94,11 +94,11 @@ sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( ::rtl::OUString *
}
}
- nProps = aSortedPropsIds.Count(); // koennen jetzt mehr sein
+ nProps = aSortedPropsIds.Count(); // koennen jetzt mehr sein
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property> aProps( nProps );
::com::sun::star::beans::Property* pProps = aProps.getArray();
-
- for ( sal_uInt32 n = 0; n < nProps; n++ )
+
+ for ( sal_uInt32 n = 0; n < nProps; n++ )
{
sal_uInt16 nId = (sal_uInt16)(sal_uIntPtr)aSortedPropsIds.GetObject( n );
pProps[n].Name = GetPropertyName( nId );
@@ -106,7 +106,7 @@ sal_Bool UnoPropertyArrayHelper::fillPropertyMembersByHandle( ::rtl::OUString *
pProps[n].Type = *GetPropertyType( nId );
pProps[n].Attributes = GetPropertyAttribs( nId );
}
-
+
return aProps;
}
@@ -142,10 +142,10 @@ sal_Int32 UnoPropertyArrayHelper::fillHandles( sal_Int32* pHandles, const ::com:
sal_Int32 nValues = rPropNames.getLength();
sal_Int32 nValidHandles = 0;
- for ( sal_Int32 n = 0; n < nValues; n++ )
+ for ( sal_Int32 n = 0; n < nValues; n++ )
{
sal_uInt16 nPropId = GetPropertyId( pNames[n] );
- if ( nPropId && ImplHasProperty( nPropId ) )
+ if ( nPropId && ImplHasProperty( nPropId ) )
{
pHandles[n] = nPropId;
nValidHandles++;
diff --git a/toolkit/source/helper/unowrapper.cxx b/toolkit/source/helper/unowrapper.cxx
index cee3427f3866..8ef8c48c95ad 100644
--- a/toolkit/source/helper/unowrapper.cxx
+++ b/toolkit/source/helper/unowrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -102,12 +102,12 @@ using namespace ::com::sun::star;
case WINDOW_WORKWINDOW:
case WINDOW_DOCKINGWINDOW:
case WINDOW_FLOATINGWINDOW:
- case WINDOW_HELPTEXTWINDOW: return new VCLXTopWindow;
+ case WINDOW_HELPTEXTWINDOW: return new VCLXTopWindow;
case WINDOW_WINDOW:
case WINDOW_TABPAGE: return new VCLXContainer;
- case WINDOW_TOOLBOX: return new VCLXToolBox;
+ case WINDOW_TOOLBOX: return new VCLXToolBox;
// case WINDOW_FIXEDLINE:
// case WINDOW_FIXEDBITMAP:
@@ -128,9 +128,9 @@ using namespace ::com::sun::star;
}
}
-// ----------------------------------------------------
-// class UnoWrapper
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoWrapper
+// ----------------------------------------------------
extern "C" {
@@ -139,7 +139,7 @@ TOOLKIT_DLLPUBLIC UnoWrapperBase* CreateUnoWrapper()
return new UnoWrapper( NULL );
}
-} // extern "C"
+} // extern "C"
UnoWrapper::UnoWrapper( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit>& rxToolkit )
@@ -185,7 +185,7 @@ void UnoWrapper::SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Ref
{
int i = 0;
i++;
- // DBG_ERROR( "UnoWrapper::SetWindowInterface: there already *is* a WindowInterface for this window!" );
+ // DBG_ERROR( "UnoWrapper::SetWindowInterface: there already *is* a WindowInterface for this window!" );
}
pVCLXWindow->SetWindow( pWindow );
pWindow->SetWindowPeer( xIFace, pVCLXWindow );
@@ -261,34 +261,34 @@ void UnoWrapper::WindowDestroyed( Window* pWindow )
// ggf. existieren noch von ::com::sun::star::loader::Java erzeugte Childs, die sonst erst
// im Garbage-Collector zerstoert werden...
Window* pChild = pWindow->GetWindow( WINDOW_FIRSTCHILD );
- while ( pChild )
+ while ( pChild )
{
Window* pNextChild = pChild->GetWindow( WINDOW_NEXT );
Window* pClient = pChild->GetWindow( WINDOW_CLIENT );
- if ( pClient->GetWindowPeer() )
+ if ( pClient->GetWindowPeer() )
{
::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > xComp( pClient->GetComponentInterface( FALSE ), ::com::sun::star::uno::UNO_QUERY );
xComp->dispose();
}
-
+
pChild = pNextChild;
}
// ::com::sun::star::chaos::System-Windows suchen...
Window* pOverlap = pWindow->GetWindow( WINDOW_OVERLAP );
pOverlap = pOverlap->GetWindow( WINDOW_FIRSTOVERLAP );
- while ( pOverlap )
+ while ( pOverlap )
{
Window* pNextOverlap = pOverlap->GetWindow( WINDOW_NEXT );
Window* pClient = pOverlap->GetWindow( WINDOW_CLIENT );
-
+
if ( pClient->GetWindowPeer() && lcl_ImplIsParent( pWindow, pClient ) )
{
::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > xComp( pClient->GetComponentInterface( FALSE ), ::com::sun::star::uno::UNO_QUERY );
xComp->dispose();
}
-
+
pOverlap = pNextOverlap;
}
diff --git a/toolkit/source/helper/vclunohelper.cxx b/toolkit/source/helper/vclunohelper.cxx
index 5bdd975803f1..bd95cd7996ae 100644
--- a/toolkit/source/helper/vclunohelper.cxx
+++ b/toolkit/source/helper/vclunohelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,9 +70,9 @@
using namespace ::com::sun::star;
-// ----------------------------------------------------
-// class VCLUnoHelper
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class VCLUnoHelper
+// ----------------------------------------------------
::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit> VCLUnoHelper::CreateToolkit()
{
@@ -350,7 +350,7 @@ FontWeight VCLUnoHelper::ConvertFontWeight( float f )
aFD.Orientation = rFont.GetOrientation();
aFD.Kerning = rFont.IsKerning();
aFD.WordLineMode = rFont.IsWordLineMode();
- aFD.Type = 0; // ??? => Nur an Metric...
+ aFD.Type = 0; // ??? => Nur an Metric...
return aFD;
}
@@ -536,7 +536,7 @@ namespace
}
if ( eDirection == FieldUnitToMeasurementUnit )
return -1;
-
+
_rFieldToUNOValueFactor = 1;
return (sal_Int16)FUNIT_NONE;
}
diff --git a/toolkit/source/layout/core/bin.cxx b/toolkit/source/layout/core/bin.cxx
index e8b665b73a4a..8a72d88cf2e5 100644
--- a/toolkit/source/layout/core/bin.cxx
+++ b/toolkit/source/layout/core/bin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/bin.hxx b/toolkit/source/layout/core/bin.hxx
index 69e97cebdf40..4e03d56949fd 100644
--- a/toolkit/source/layout/core/bin.hxx
+++ b/toolkit/source/layout/core/bin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/box-base.cxx b/toolkit/source/layout/core/box-base.cxx
index b9db7098bc57..3fd7939bfff0 100644
--- a/toolkit/source/layout/core/box-base.cxx
+++ b/toolkit/source/layout/core/box-base.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,7 +78,7 @@ static bool isVisible( uno::Reference< awt::XLayoutConstrains > xWidget )
return true;
}
-
+
bool Box_Base::ChildData::isVisible()
{
// FIXME: call the 'isVisible' method on it ?
@@ -153,7 +153,7 @@ uno::Reference< beans::XPropertySet > SAL_CALL
Box_Base::getChildProperties( const uno::Reference< awt::XLayoutConstrains >& xChild )
throw (uno::RuntimeException)
{
-
+
for ( std::list< ChildData * >::iterator it = maChildren.begin();
it != maChildren.end(); it++)
{
diff --git a/toolkit/source/layout/core/box-base.hxx b/toolkit/source/layout/core/box-base.hxx
index 0c0415afe622..faeddf91f8e9 100644
--- a/toolkit/source/layout/core/box-base.hxx
+++ b/toolkit/source/layout/core/box-base.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ public:
css::uno::Reference< css::beans::XPropertySet > mxProps;
css::awt::Size maRequisition;
virtual bool isVisible();
-
+
ChildData( css::uno::Reference< css::awt::XLayoutConstrains > const& xChild );
virtual ~ChildData() { };
};
@@ -62,9 +62,9 @@ protected:
virtual ChildData *createChild( css::uno::Reference< css::awt::XLayoutConstrains > const& xChild ) = 0;
virtual ChildProps *createChildProps( ChildData* pData ) = 0;
-
+
ChildData *removeChildData( std::list< ChildData *>&, css::uno::Reference< css::awt::XLayoutConstrains > const& Child );
-
+
public:
void AddChild( const css::uno::Reference< css::awt::XLayoutConstrains >& Child);
@@ -77,7 +77,7 @@ public:
virtual css::uno::Sequence< css::uno::Reference
< css::awt::XLayoutConstrains > > SAL_CALL getChildren()
throw (css::uno::RuntimeException);
-
+
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL getChildProperties(
const css::uno::Reference< css::awt::XLayoutConstrains >& Child )
throw (css::uno::RuntimeException);
diff --git a/toolkit/source/layout/core/box.cxx b/toolkit/source/layout/core/box.cxx
index fb1a875bfea2..180706486477 100644
--- a/toolkit/source/layout/core/box.cxx
+++ b/toolkit/source/layout/core/box.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/box.hxx b/toolkit/source/layout/core/box.hxx
index 46309a5d0b1c..936b99ea771e 100644
--- a/toolkit/source/layout/core/box.hxx
+++ b/toolkit/source/layout/core/box.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/byteseq.cxx b/toolkit/source/layout/core/byteseq.cxx
index 41141fbc777d..4330754cf7be 100644
--- a/toolkit/source/layout/core/byteseq.cxx
+++ b/toolkit/source/layout/core/byteseq.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,7 +67,7 @@ uno::Reference< io::XInputStream > getFileAsStream( const rtl::OUString &rName )
sMsg.append(configmgr::FileHelper::createOSLErrorString(errorCode));
throw io::IOException(sMsg.makeStringAndClear(),NULL);
- }
+ }
*/
}
diff --git a/toolkit/source/layout/core/container.cxx b/toolkit/source/layout/core/container.cxx
index f5822bc4569a..80f8dfc1b9fa 100644
--- a/toolkit/source/layout/core/container.cxx
+++ b/toolkit/source/layout/core/container.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -121,7 +121,7 @@ void Container::propertiesChanged()
{
// cl: why this assertion? This is also called to set properties at the top level widget which has no parent!?
// DBG_ASSERT( mxParent.is(), "Properties listener: error container doesn't have parent" );
-
+
if ( mxLayoutUnit.is() && mxParent.is() )
mxLayoutUnit->queueResize( mxParent );
}
diff --git a/toolkit/source/layout/core/container.hxx b/toolkit/source/layout/core/container.hxx
index 5f53f47b8ece..3c15efaaaeb7 100644
--- a/toolkit/source/layout/core/container.hxx
+++ b/toolkit/source/layout/core/container.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/dialogbuttonhbox.cxx b/toolkit/source/layout/core/dialogbuttonhbox.cxx
index ed7b35dafa51..a72700779702 100644
--- a/toolkit/source/layout/core/dialogbuttonhbox.cxx
+++ b/toolkit/source/layout/core/dialogbuttonhbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/dialogbuttonhbox.hxx b/toolkit/source/layout/core/dialogbuttonhbox.hxx
index aead7fc1eb80..fbeca8691be1 100644
--- a/toolkit/source/layout/core/dialogbuttonhbox.hxx
+++ b/toolkit/source/layout/core/dialogbuttonhbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/factory.cxx b/toolkit/source/layout/core/factory.cxx
index 2e1c7012b8e0..30856e27764c 100644
--- a/toolkit/source/layout/core/factory.cxx
+++ b/toolkit/source/layout/core/factory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -125,7 +125,7 @@ sal_Bool SAL_CALL LayoutFactory::supportsService( const ::rtl::OUString& Service
for ( sal_Int32 i = 0; i < aSeq.getLength(); i++ )
if ( ServiceName.compareTo( aSeq[i] ) == 0 )
return sal_True;
-
+
return sal_False;
}
diff --git a/toolkit/source/layout/core/factory.hxx b/toolkit/source/layout/core/factory.hxx
index 57fca62cdca1..7d1f77a9a2df 100644
--- a/toolkit/source/layout/core/factory.hxx
+++ b/toolkit/source/layout/core/factory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/flow.cxx b/toolkit/source/layout/core/flow.cxx
index 8b57ca04f33c..d772f7c450ec 100644
--- a/toolkit/source/layout/core/flow.cxx
+++ b/toolkit/source/layout/core/flow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/flow.hxx b/toolkit/source/layout/core/flow.hxx
index d1965e1ecb4f..e6d9677db1bc 100644
--- a/toolkit/source/layout/core/flow.hxx
+++ b/toolkit/source/layout/core/flow.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/helper.cxx b/toolkit/source/layout/core/helper.cxx
index 1434054d8cf9..80013b2e503b 100644
--- a/toolkit/source/layout/core/helper.cxx
+++ b/toolkit/source/layout/core/helper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -383,7 +383,7 @@ Window* WidgetFactory::sfx2CreateWindow (VCLXWindow** component, Window* parent,
Window* WidgetFactory::layoutCreateWindow (VCLXWindow** component, Window *parent, OUString const& name, long& attributes)
{
Window* window = 0;
-
+
if (0)
{
;
diff --git a/toolkit/source/layout/core/helper.hxx b/toolkit/source/layout/core/helper.hxx
index cd91a19aa88d..f19f74611ff5 100644
--- a/toolkit/source/layout/core/helper.hxx
+++ b/toolkit/source/layout/core/helper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/import.cxx b/toolkit/source/layout/core/import.cxx
index b4fbacc02243..b4c03918c492 100644
--- a/toolkit/source/layout/core/import.cxx
+++ b/toolkit/source/layout/core/import.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -239,7 +239,7 @@ void RadioGroups::addItem( rtl::OUString id, uno::Reference< awt::XRadioButton >
{
if ( ! xRadio.is() )
throw uno::RuntimeException();
-
+
uno::Reference< RadioGroup > group;
RadioGroupsMap::iterator it = mxRadioGroups.find( id );
if ( it == mxRadioGroups.end() )
diff --git a/toolkit/source/layout/core/import.hxx b/toolkit/source/layout/core/import.hxx
index 2eea1b0975ee..8c9a6c5e3753 100644
--- a/toolkit/source/layout/core/import.hxx
+++ b/toolkit/source/layout/core/import.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/localized-string.cxx b/toolkit/source/layout/core/localized-string.cxx
index 35384f641101..992aa8fea06d 100644
--- a/toolkit/source/layout/core/localized-string.cxx
+++ b/toolkit/source/layout/core/localized-string.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/localized-string.hxx b/toolkit/source/layout/core/localized-string.hxx
index d8a4f7a89369..884c702cc371 100644
--- a/toolkit/source/layout/core/localized-string.hxx
+++ b/toolkit/source/layout/core/localized-string.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@ namespace layoutimpl
namespace css = ::com::sun::star;
// FIXME: misuse XFixedText interface for simple string
-class LocalizedString : public css::awt::XFixedText
+class LocalizedString : public css::awt::XFixedText
, public VCLXWindow
{
public:
@@ -55,7 +55,7 @@ public:
::rtl::OUString SAL_CALL getText()
throw(css::uno::RuntimeException);
void SAL_CALL setAlignment( sal_Int16 )
- throw(css::uno::RuntimeException) { }
+ throw(css::uno::RuntimeException) { }
sal_Int16 SAL_CALL getAlignment()
throw(css::uno::RuntimeException) { return 0; }
diff --git a/toolkit/source/layout/core/precompiled_xmlscript.hxx b/toolkit/source/layout/core/precompiled_xmlscript.hxx
index 0be98395c1ea..67a7d2d4eee8 100644
--- a/toolkit/source/layout/core/precompiled_xmlscript.hxx
+++ b/toolkit/source/layout/core/precompiled_xmlscript.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/proplist.cxx b/toolkit/source/layout/core/proplist.cxx
index 24c9bc471833..0b15cff83515 100644
--- a/toolkit/source/layout/core/proplist.cxx
+++ b/toolkit/source/layout/core/proplist.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/proplist.hxx b/toolkit/source/layout/core/proplist.hxx
index fafd45059552..20eacbd19885 100644
--- a/toolkit/source/layout/core/proplist.hxx
+++ b/toolkit/source/layout/core/proplist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/root.cxx b/toolkit/source/layout/core/root.cxx
index f5b96d94d5ae..db6bedc075fc 100644
--- a/toolkit/source/layout/core/root.cxx
+++ b/toolkit/source/layout/core/root.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -175,7 +175,7 @@ void SAL_CALL LayoutRoot::initialize( const uno::Sequence< uno::Any >& aArgument
if (! xDocHandler.is() )
error( OUString::createFromAscii( "cannot find SAx handler for document type of:") + aXMLName );
-
+
xParser->setDocumentHandler( xDocHandler );
xml::sax::InputSource source;
diff --git a/toolkit/source/layout/core/root.hxx b/toolkit/source/layout/core/root.hxx
index 601536bdacba..b4e3fe68cfb3 100644
--- a/toolkit/source/layout/core/root.hxx
+++ b/toolkit/source/layout/core/root.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/table.cxx b/toolkit/source/layout/core/table.cxx
index b990a88f38f0..d724c8c48083 100644
--- a/toolkit/source/layout/core/table.cxx
+++ b/toolkit/source/layout/core/table.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/table.hxx b/toolkit/source/layout/core/table.hxx
index 30e7f24540b7..5fa20d2412dc 100644
--- a/toolkit/source/layout/core/table.hxx
+++ b/toolkit/source/layout/core/table.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/timer.cxx b/toolkit/source/layout/core/timer.cxx
index 18be0e19a122..1749a9af91d6 100644
--- a/toolkit/source/layout/core/timer.cxx
+++ b/toolkit/source/layout/core/timer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/timer.hxx b/toolkit/source/layout/core/timer.hxx
index 8be521e634f3..5c6408985500 100644
--- a/toolkit/source/layout/core/timer.hxx
+++ b/toolkit/source/layout/core/timer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/translate.cxx b/toolkit/source/layout/core/translate.cxx
index 4d35f101ae21..916ecbf18d9b 100644
--- a/toolkit/source/layout/core/translate.cxx
+++ b/toolkit/source/layout/core/translate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/translate.hxx b/toolkit/source/layout/core/translate.hxx
index b20166252bd6..251958ff92c0 100644
--- a/toolkit/source/layout/core/translate.hxx
+++ b/toolkit/source/layout/core/translate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/vcl.cxx b/toolkit/source/layout/core/vcl.cxx
index 9fc861506a00..53dae2563d73 100644
--- a/toolkit/source/layout/core/vcl.cxx
+++ b/toolkit/source/layout/core/vcl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/core/vcl.hxx b/toolkit/source/layout/core/vcl.hxx
index 45c01314782b..d7fb5a4ffeb4 100644
--- a/toolkit/source/layout/core/vcl.hxx
+++ b/toolkit/source/layout/core/vcl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/vcl/wbutton.cxx b/toolkit/source/layout/vcl/wbutton.cxx
index 79d8f31bc9fa..0354f18cc6c8 100644
--- a/toolkit/source/layout/vcl/wbutton.cxx
+++ b/toolkit/source/layout/vcl/wbutton.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/vcl/wcontainer.cxx b/toolkit/source/layout/vcl/wcontainer.cxx
index 950a006d1fed..5f8311d71f9f 100644
--- a/toolkit/source/layout/vcl/wcontainer.cxx
+++ b/toolkit/source/layout/vcl/wcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/vcl/wfield.cxx b/toolkit/source/layout/vcl/wfield.cxx
index ce8b59f6023f..f4584796f251 100644
--- a/toolkit/source/layout/vcl/wfield.cxx
+++ b/toolkit/source/layout/vcl/wfield.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/vcl/wrapper.cxx b/toolkit/source/layout/vcl/wrapper.cxx
index 3acb946f7545..75dd9a86795e 100644
--- a/toolkit/source/layout/vcl/wrapper.cxx
+++ b/toolkit/source/layout/vcl/wrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/source/layout/vcl/wrapper.hxx b/toolkit/source/layout/vcl/wrapper.hxx
index 8a88be68001e..56046cc73f42 100644
--- a/toolkit/source/layout/vcl/wrapper.hxx
+++ b/toolkit/source/layout/vcl/wrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -142,7 +142,7 @@ inline WindowImpl &Window::getImpl() const{ return *(static_cast< WindowImpl * >
: parent##Impl( context, peer, window ) \
{ \
} \
- };
+ };
} // namespace layout
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java
index 64a5a5a3c4f6..5a922da5045f 100644
--- a/toolkit/test/accessibility/AccTreeNode.java
+++ b/toolkit/test/accessibility/AccTreeNode.java
@@ -56,18 +56,18 @@ class AccTreeNode
System.out.println ("replacing handler " + i);
HandlerDescriptor aDescriptor = (HandlerDescriptor)maHandlers.get(i);
aDescriptor.maHandler = aDescriptor.maHandler.createHandler (mxContext);
- aDescriptor.mnChildCount =
+ aDescriptor.mnChildCount =
aDescriptor.maHandler.getChildCount (this);
}
}
public XAccessibleContext getContext ()
- {
- return mxContext;
+ {
+ return mxContext;
}
public XAccessibleComponent getComponent ()
- {
+ {
if (mxComponent == null && mxContext != null)
mxComponent = (XAccessibleComponent)UnoRuntime.queryInterface(
XAccessibleComponent.class, mxContext);
@@ -75,7 +75,7 @@ class AccTreeNode
}
public XAccessibleExtendedComponent getExtendedComponent ()
- {
+ {
if (mxComponent == null)
getComponent();
if (mxComponent != null)
@@ -86,38 +86,38 @@ class AccTreeNode
}
public XAccessibleText getText ()
- {
+ {
if (mxText == null && mxContext != null)
mxText = (XAccessibleText)UnoRuntime.queryInterface(
XAccessibleText.class, mxContext);
- return mxText;
+ return mxText;
}
public XAccessibleEditableText getEditText ()
- {
+ {
return (XAccessibleEditableText)UnoRuntime.queryInterface(
XAccessibleEditableText.class, mxContext);
}
public XAccessibleTable getTable ()
- {
+ {
if (mxTable == null && mxContext != null)
mxTable = (XAccessibleTable)UnoRuntime.queryInterface(
XAccessibleTable.class, mxContext);
- return mxTable;
+ return mxTable;
}
- public XAccessible getAccessible()
+ public XAccessible getAccessible()
{
if ((mxAccessible == null) && (mxContext != null))
mxAccessible = (XAccessible)UnoRuntime.queryInterface(
XAccessible.class, mxContext);
- return mxAccessible;
+ return mxAccessible;
}
public XAccessibleSelection getSelection ()
- {
+ {
return (XAccessibleSelection)UnoRuntime.queryInterface(
XAccessibleSelection.class, mxContext);
}
@@ -131,7 +131,7 @@ class AccTreeNode
/** iterate over handlers and return child sum */
protected HandlerDescriptor getHandlerDescriptor (int i)
- {
+ {
HandlerDescriptor aDescriptor = (HandlerDescriptor)maHandlers.get(i);
if (aDescriptor.mnChildCount < 0)
aDescriptor.mnChildCount =
@@ -140,7 +140,7 @@ class AccTreeNode
}
public int getChildCount()
- {
+ {
int nChildCount = 0;
for (int i = 0; i < maHandlers.size(); i++)
{
@@ -246,7 +246,7 @@ class AccTreeNode
/** this node is a leaf if have no handlers, or is those
handlers show no children */
- public boolean isLeaf()
+ public boolean isLeaf()
{
return (maHandlers.size() == 0);// || (getChildCount() == 0);
}
@@ -295,7 +295,7 @@ class AccTreeNode
}
/** Try to add the specified accessible object as new accessible child of the
- AccessibleTreeHandler.
+ AccessibleTreeHandler.
Note that child is used in another context than
it is used in the other methods of this class.
*/
@@ -322,7 +322,7 @@ class AccTreeNode
*/
public Vector updateChildren (java.lang.Class class1)
{
- return updateChildren (class1, null);
+ return updateChildren (class1, null);
}
public Vector updateChildren (java.lang.Class class1, java.lang.Class class2)
diff --git a/toolkit/test/accessibility/AccessibilityTree.java b/toolkit/test/accessibility/AccessibilityTree.java
index 819631b41eb8..5beb8bb0565e 100755
--- a/toolkit/test/accessibility/AccessibilityTree.java
+++ b/toolkit/test/accessibility/AccessibilityTree.java
@@ -11,11 +11,11 @@ import javax.swing.tree.*;
import javax.swing.event.*;
-
+
/** This is the tree component that is responsible for displaying the
contents of the tree model on the screen.
-*/
-public class AccessibilityTree
+*/
+public class AccessibilityTree
implements TreeExpansionListener, TreeWillExpandListener
{
/** Create a new accessibility tree. Use the specified message display
@@ -26,16 +26,16 @@ public class AccessibilityTree
{
maTree = new JTree ();
- AccessibilityTreeModel aModel =
+ AccessibilityTreeModel aModel =
new AccessibilityTreeModel (
new StringNode ("Please press Update button", null));
maTree.setModel (aModel);
-
+
maCellRenderer = new AccessibleTreeCellRenderer();
// setCellRenderer (maCellRenderer);
// allow editing of XAccessibleText interfaces
- // setEditable (true);
+ // setEditable (true);
// maTreeModel.addTreeModelListener( new TextUpdateListener() );
maTree.addMouseListener (new MouseListener (this));
@@ -131,7 +131,7 @@ public class AccessibilityTree
// System.out.print ("e");
- try
+ try
{
// get 'our' object
Object aObj = aPath.getLastPathComponent();
@@ -140,7 +140,7 @@ public class AccessibilityTree
if( aExpander.expand( aObj ) )
{
maTree.expandPath (aPath);
- if( aFirst == null )
+ if( aFirst == null )
aFirst = aPath;
}
@@ -151,8 +151,8 @@ public class AccessibilityTree
int nLength = aNode.getChildCount();
for( int i = 0; i < nLength; i++ )
{
- TreePath aRet = expandTree(
- aPath.pathByAddingChild( aNode.getChild( i ) ),
+ TreePath aRet = expandTree(
+ aPath.pathByAddingChild( aNode.getChild( i ) ),
aExpander );
if( aFirst == null )
aFirst = aRet;
@@ -161,7 +161,7 @@ public class AccessibilityTree
}
catch (Exception e)
{
- System.out.println ("caught exception while expanding tree path "
+ System.out.println ("caught exception while expanding tree path "
+ aPath + ": " + e);
e.printStackTrace ();
}
@@ -211,7 +211,7 @@ public class AccessibilityTree
class MouseListener extends MouseAdapter
{
- public MouseListener (AccessibilityTree aTree)
+ public MouseListener (AccessibilityTree aTree)
{
maTree=aTree;
}
@@ -237,7 +237,7 @@ public class AccessibilityTree
if( aObject instanceof AccTreeNode )
{
AccTreeNode aNode = (AccTreeNode)aObject;
-
+
Vector aActions = new Vector();
aMenu.add (new AccessibilityTree.ShapeExpandAction(maTree, aNode));
aMenu.add (new AccessibilityTree.SubtreeExpandAction(maTree, aNode));
@@ -245,7 +245,7 @@ public class AccessibilityTree
aNode.getActions(aActions);
for( int i = 0; i < aActions.size(); i++ )
{
- aMenu.add( new NodeAction(
+ aMenu.add( new NodeAction(
aActions.elementAt(i).toString(),
aNode, i ) );
}
@@ -258,16 +258,16 @@ public class AccessibilityTree
if (nCount > 0)
{
for (int i=0; i<nCount; i++)
- aMenu.add( new NodeAction(
+ aMenu.add( new NodeAction(
aActionNames[i],
- aNode,
+ aNode,
i));
}
else
aMenu = null;
}
if (aMenu != null)
- aMenu.show (maTree.getComponent(),
+ aMenu.show (maTree.getComponent(),
e.getX(), e.getY());
}
}
@@ -301,13 +301,13 @@ public class AccessibilityTree
{
private AccessibilityTree maTree;
private AccTreeNode maNode;
- public ShapeExpandAction (AccessibilityTree aTree, AccTreeNode aNode)
+ public ShapeExpandAction (AccessibilityTree aTree, AccTreeNode aNode)
{
super ("Expand Shapes");
maTree = aTree;
maNode = aNode;
}
- public void actionPerformed (ActionEvent e)
+ public void actionPerformed (ActionEvent e)
{
maTree.expandShapes (maNode);
}
@@ -318,13 +318,13 @@ public class AccessibilityTree
{
private AccessibilityTree maTree;
private AccTreeNode maNode;
- public SubtreeExpandAction (AccessibilityTree aTree, AccTreeNode aNode)
+ public SubtreeExpandAction (AccessibilityTree aTree, AccTreeNode aNode)
{
super ("Expand Subtree");
maTree = aTree;
maNode = aNode;
}
- public void actionPerformed (ActionEvent e)
+ public void actionPerformed (ActionEvent e)
{
maTree.expandAll (maNode);
}
@@ -333,8 +333,8 @@ public class AccessibilityTree
/** Predicate class to determine whether a node should be expanded
* For use with expandTree method */
abstract class Expander
- {
- abstract public boolean expand (Object aObject);
+ {
+ abstract public boolean expand (Object aObject);
}
/** expand all nodes */
@@ -365,13 +365,13 @@ public class AccessibilityTree
protected AccessibleTreeCellRenderer
maCellRenderer;
-
+
private JTree
maTree;
private Canvas
maCanvas;
private boolean
mbFirstShapeSeen;
- private int
+ private int
mnExpandLevel;
}
diff --git a/toolkit/test/accessibility/AccessibilityTreeModel.java b/toolkit/test/accessibility/AccessibilityTreeModel.java
index d4981e86b4a0..7a226ec6c6af 100644
--- a/toolkit/test/accessibility/AccessibilityTreeModel.java
+++ b/toolkit/test/accessibility/AccessibilityTreeModel.java
@@ -164,7 +164,7 @@ public class AccessibilityTreeModel
}
catch (Exception e)
{
- System.out.println ("caught exception while removing child "
+ System.out.println ("caught exception while removing child "
+ aNode + " : " + e);
e.printStackTrace ();
return false;
@@ -174,7 +174,7 @@ public class AccessibilityTreeModel
public void removeNode (XAccessibleContext xNode)
{
- if (xNode != null)
+ if (xNode != null)
{
AccessibleTreeNode aNode = maNodeMap.GetNode (xNode);
AccessibleTreeNode aRootNode = (AccessibleTreeNode)getRoot();
@@ -189,7 +189,7 @@ public class AccessibilityTreeModel
/** Add add a new child to a parent.
- @return
+ @return
Returns the new or existing representation of the specified
accessible object.
*/
@@ -210,7 +210,7 @@ public class AccessibilityTreeModel
}
catch (Exception e)
{
- System.out.println ("caught exception while adding child "
+ System.out.println ("caught exception while adding child "
+ xNewChild + " to parent " + aParentNode + ": " + e);
e.printStackTrace ();
}
@@ -227,7 +227,7 @@ public class AccessibilityTreeModel
{
if (maCanvas != null)
maCanvas.updateNode ((AccTreeNode)aParentNode);
-
+
// A call to fireTreeNodesInserted for xNew
// should be sufficient but at least the
// StringNode object that contains the number of
@@ -242,7 +242,7 @@ public class AccessibilityTreeModel
}
}
-
+
/** Add the child node to the internal tree structure.
@param aNode
The node to insert into the internal tree structure.
@@ -265,11 +265,11 @@ public class AccessibilityTreeModel
}
bRet = true;
}
-
+
}
catch (Exception e)
{
- System.out.println ("caught exception while adding node "
+ System.out.println ("caught exception while adding node "
+ aNode + ": " + e);
e.printStackTrace ();
}
@@ -335,7 +335,7 @@ public class AccessibilityTreeModel
}
/** Create a TreeModelEvent object that informs listeners that one child
- has been removed from or inserted into its parent.
+ has been removed from or inserted into its parent.
*/
public TreeModelEvent createEvent (XAccessibleContext xParent, XAccessible xChild)
{
@@ -354,7 +354,7 @@ public class AccessibilityTreeModel
protected TreeModelEvent createEvent (
- AccessibleTreeNode aParentNode,
+ AccessibleTreeNode aParentNode,
AccessibleTreeNode aChildNode)
{
Object[] aPathToParent = createPath (aParentNode);
@@ -367,11 +367,11 @@ public class AccessibilityTreeModel
if (nIndexInParent == -1)
// This event may be passed only to treeStructureChanged of the listeners.
- return new TreeModelEvent (this,
+ return new TreeModelEvent (this,
aPathToParent);
else
// General purpose event for removing or inserting known nodes.
- return new TreeModelEvent (this,
+ return new TreeModelEvent (this,
aPathToParent,
new int[] {nIndexInParent},
new Object[] {aChildNode} );
@@ -422,7 +422,7 @@ public class AccessibilityTreeModel
}
-
+
protected XAccessibleEventBroadcaster getBroadcaster (Object aObject)
{
if (aObject instanceof AccTreeNode)
@@ -466,15 +466,15 @@ public class AccessibilityTreeModel
public void updateNode (XAccessibleContext xSource, java.lang.Class class1)
{
- updateNode (xSource, class1,null);
+ updateNode (xSource, class1,null);
}
- /** Get a list of children of the node associated with xSource that are
+ /** Get a list of children of the node associated with xSource that are
affected by the given handlers. Fire events that these children may
have changed in the tree view. Update the canvas representation of
xSource.
*/
- public AccTreeNode updateNode (XAccessibleContext xSource,
+ public AccTreeNode updateNode (XAccessibleContext xSource,
java.lang.Class class1, java.lang.Class class2)
{
AccessibleTreeNode aTreeNode = maNodeMap.GetNode (xSource);
diff --git a/toolkit/test/accessibility/AccessibilityTreeModelBase.java b/toolkit/test/accessibility/AccessibilityTreeModelBase.java
index e80819bef840..23e403a67c89 100644
--- a/toolkit/test/accessibility/AccessibilityTreeModelBase.java
+++ b/toolkit/test/accessibility/AccessibilityTreeModelBase.java
@@ -71,7 +71,7 @@ public class AccessibilityTreeModelBase
{
AccessibleTreeNode aParentNode = (AccessibleTreeNode) aParent;
AccessibleTreeNode aChildNode = (AccessibleTreeNode) aChild;
-
+
int nChildCount = aParentNode.getChildCount();
for( int i = 0; i < nChildCount; i++ )
{
@@ -105,7 +105,7 @@ public class AccessibilityTreeModelBase
return maRoot;
}
- public void valueForPathChanged(TreePath path, Object newValue)
+ public void valueForPathChanged(TreePath path, Object newValue)
{ }
protected synchronized void setRoot (AccessibleTreeNode aRoot)
diff --git a/toolkit/test/accessibility/AccessibilityWorkBench.java b/toolkit/test/accessibility/AccessibilityWorkBench.java
index 58ad607fed67..77997201b377 100755
--- a/toolkit/test/accessibility/AccessibilityWorkBench.java
+++ b/toolkit/test/accessibility/AccessibilityWorkBench.java
@@ -50,7 +50,7 @@ import ov.ObjectViewContainer;
public class AccessibilityWorkBench
extends JFrame
implements ActionListener, XTerminateListener, TreeSelectionListener
-
+
{
public static final String msVersion = "v1.7.2";
public String msOptionsFileName = ".AWBrc";
@@ -74,7 +74,7 @@ public class AccessibilityWorkBench
nPortNumber = Integer.parseInt (args[++i]);
}
}
-
+
saWorkBench = new AccessibilityWorkBench (nPortNumber);
}
@@ -101,7 +101,7 @@ public class AccessibilityWorkBench
mbInitialized = false;
Layout ();
-
+
MessageArea.println (System.getProperty ("os.name") + " / "
+ System.getProperty ("os.arch") + " / "
+ System.getProperty ("os.version"));
@@ -123,7 +123,7 @@ public class AccessibilityWorkBench
/** Create and arrange the widgets of the GUI.
- */
+ */
public void Layout ()
{
setSize (new Dimension (8000,600));
@@ -157,7 +157,7 @@ public class AccessibilityWorkBench
// Split pane for tree view and object view.
JSplitPane aLeftViewSplitPane = new JSplitPane (
JSplitPane.VERTICAL_SPLIT,
- aTreeScrollPane,
+ aTreeScrollPane,
aObjectViewContainerScrollPane
);
aLeftViewSplitPane.setDividerLocation (300);
@@ -166,7 +166,7 @@ public class AccessibilityWorkBench
maCanvas = new Canvas ();
maCanvas.setTree (maAccessibilityTree.getComponent());
maAccessibilityTree.SetCanvas (maCanvas);
- JScrollPane aScrolledCanvas = new JScrollPane(maCanvas,
+ JScrollPane aScrolledCanvas = new JScrollPane(maCanvas,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
aScrolledCanvas.getViewport().setBackground (Color.RED);
@@ -175,12 +175,12 @@ public class AccessibilityWorkBench
// Split pane for tree view and canvas.
JSplitPane aViewSplitPane = new JSplitPane (
JSplitPane.HORIZONTAL_SPLIT,
- aLeftViewSplitPane,
+ aLeftViewSplitPane,
aScrolledCanvas
);
aViewSplitPane.setOneTouchExpandable(true);
aViewSplitPane.setDividerLocation (400);
-
+
// Text output area.
maMessageArea = MessageArea.Instance ();
// maMessageArea.setPreferredSize (new Dimension (300,50));
@@ -204,7 +204,7 @@ public class AccessibilityWorkBench
aUpdateButton = createButton ("Update", "update");
aShapesButton = createButton ("Expand Shapes", "shapes");
aExpandButton = createButton ("Expand All", "expand");
- aQuitButton = createButton ("Quit", "quit");
+ aQuitButton = createButton ("Quit", "quit");
UpdateButtonStates ();
Options.Instance().Load (msOptionsFileName);
@@ -224,7 +224,7 @@ public class AccessibilityWorkBench
/** Shortcut method for adding an object to a GridBagLayout.
*/
- void addGridElement (JComponent object,
+ void addGridElement (JComponent object,
int x, int y, int width, int height, int weightx, int weighty,
int anchor, int fill)
{
@@ -252,7 +252,7 @@ public class AccessibilityWorkBench
aButton.setEnabled (false);
aButton.setActionCommand (command);
aButton.addActionListener (this);
-
+
maButtonBar.add (aButton);
return aButton;
}
@@ -269,7 +269,7 @@ public class AccessibilityWorkBench
{
// Menu bar.
maMenuBar = new JMenuBar ();
-
+
// File menu.
JMenu aFileMenu = new JMenu ("File");
maMenuBar.add (aFileMenu);
@@ -330,7 +330,7 @@ public class AccessibilityWorkBench
// Help menu.
JMenu aHelpMenu = new JMenu ("Help");
maMenuBar.add (aHelpMenu);
-
+
aItem = new JMenuItem ("Help");
aHelpMenu.add (aItem);
aItem.addActionListener (this);
@@ -413,7 +413,7 @@ public class AccessibilityWorkBench
/** Callback for GUI actions from the buttons.
*/
- public void actionPerformed (java.awt.event.ActionEvent e)
+ public void actionPerformed (java.awt.event.ActionEvent e)
{
if (e.getActionCommand().equals("connect"))
{
@@ -578,17 +578,17 @@ public class AccessibilityWorkBench
/// The Singleton Workbench object.
- private static AccessibilityWorkBench
+ private static AccessibilityWorkBench
saWorkBench = null;
-
- protected SimpleOffice
+
+ protected SimpleOffice
office;
- protected InformationWriter
+ protected InformationWriter
info;
-
- private XModel
+
+ private XModel
mxModel;
- private JPanel
+ private JPanel
maMainPanel,
maButtonBar;
private Canvas
@@ -599,9 +599,9 @@ public class AccessibilityWorkBench
maObjectViewContainer;
private JScrollPane
maScrollPane;
- private MessageArea
+ private MessageArea
maMessageArea;
- private JButton
+ private JButton
aConnectButton,
aQuitButton,
aUpdateButton,
@@ -615,6 +615,6 @@ public class AccessibilityWorkBench
mbInitialized;
private TopWindowListener
maTopWindowListener;
- private QueuedTopWindowListener
+ private QueuedTopWindowListener
maQueuedTopWindowListener;
}
diff --git a/toolkit/test/accessibility/AccessibleActionHandler.java b/toolkit/test/accessibility/AccessibleActionHandler.java
index 0aac7158efde..d91923b2b7a2 100644
--- a/toolkit/test/accessibility/AccessibleActionHandler.java
+++ b/toolkit/test/accessibility/AccessibleActionHandler.java
@@ -4,12 +4,12 @@ import com.sun.star.accessibility.XAccessibleContext;
import com.sun.star.accessibility.XAccessibleAction;
import com.sun.star.lang.IndexOutOfBoundsException;
-class AccessibleActionHandler
+class AccessibleActionHandler
extends NodeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
- XAccessibleAction xEComponent =
+ XAccessibleAction xEComponent =
(XAccessibleAction) UnoRuntime.queryInterface (
XAccessibleAction.class, xContext);
if (xEComponent != null)
@@ -35,7 +35,7 @@ class AccessibleActionHandler
}
public AccessibleTreeNode createChild (
- AccessibleTreeNode aParent,
+ AccessibleTreeNode aParent,
int nIndex)
{
AccessibleTreeNode aChild = null;
@@ -54,7 +54,7 @@ class AccessibleActionHandler
try
{
aChild = new AccessibleActionNode (
- "Action " + nIndex + " : "
+ "Action " + nIndex + " : "
+ xAction.getAccessibleActionDescription (nIndex),
aParent,
nIndex);
diff --git a/toolkit/test/accessibility/AccessibleActionNode.java b/toolkit/test/accessibility/AccessibleActionNode.java
index 7c72ac69803e..b684d4c87f3e 100644
--- a/toolkit/test/accessibility/AccessibleActionNode.java
+++ b/toolkit/test/accessibility/AccessibleActionNode.java
@@ -7,7 +7,7 @@ import com.sun.star.accessibility.XAccessibleAction;
class AccessibleActionNode
extends StringNode
{
- public AccessibleActionNode (String aDisplayObject,
+ public AccessibleActionNode (String aDisplayObject,
AccessibleTreeNode aParent,
int nActionIndex)
{
@@ -15,13 +15,13 @@ class AccessibleActionNode
mnActionIndex = nActionIndex;
}
- public String[] getActions ()
+ public String[] getActions ()
{
return new String[] {"Perform Action"};
}
/** perform action */
- public void performAction (int nIndex)
+ public void performAction (int nIndex)
{
if (nIndex != 0)
return;
@@ -37,10 +37,10 @@ class AccessibleActionNode
{
}
- JOptionPane.showMessageDialog (null,
+ JOptionPane.showMessageDialog (null,
"performed action " + mnActionIndex
+ (bResult?" with":" without") + " success",
- "Action " + mnActionIndex,
+ "Action " + mnActionIndex,
JOptionPane.INFORMATION_MESSAGE);
}
diff --git a/toolkit/test/accessibility/AccessibleCellHandler.java b/toolkit/test/accessibility/AccessibleCellHandler.java
index 19b4a9df67ad..bef792998db6 100644
--- a/toolkit/test/accessibility/AccessibleCellHandler.java
+++ b/toolkit/test/accessibility/AccessibleCellHandler.java
@@ -15,7 +15,7 @@ class AccessibleCellHandler extends NodeHandler
XAccessible xParent = xContext.getAccessibleParent();
if (xParent != null)
{
- XAccessibleTable xTable =
+ XAccessibleTable xTable =
(XAccessibleTable) UnoRuntime.queryInterface (
XAccessibleTable.class, xParent.getAccessibleContext());
if (xTable != null)
diff --git a/toolkit/test/accessibility/AccessibleComponentHandler.java b/toolkit/test/accessibility/AccessibleComponentHandler.java
index 38e5545d23aa..3c9f2b56a29d 100644
--- a/toolkit/test/accessibility/AccessibleComponentHandler.java
+++ b/toolkit/test/accessibility/AccessibleComponentHandler.java
@@ -4,20 +4,20 @@ import com.sun.star.accessibility.XAccessibleContext;
import com.sun.star.accessibility.XAccessibleComponent;
-class AccessibleComponentHandler
+class AccessibleComponentHandler
extends NodeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
- XAccessibleComponent xComponent =
+ XAccessibleComponent xComponent =
(XAccessibleComponent) UnoRuntime.queryInterface (
XAccessibleComponent.class, xContext);
if (xComponent != null)
return new AccessibleComponentHandler (xComponent);
else
return null;
-
+
}
public AccessibleComponentHandler ()
@@ -35,9 +35,9 @@ class AccessibleComponentHandler
AccessibleTreeNode aChild = null;
if (aParent instanceof AccTreeNode)
{
- XAccessibleComponent xComponent =
+ XAccessibleComponent xComponent =
((AccTreeNode)aParent).getComponent();
-
+
if (xComponent != null)
{
int nColor;
@@ -64,7 +64,7 @@ class AccessibleComponentHandler
case 3:
com.sun.star.awt.Rectangle aBBox = xComponent.getBounds();
aChild = new StringNode (
- "Bounding Box: "+ aBBox.X + ", " + aBBox.Y + ","
+ "Bounding Box: "+ aBBox.X + ", " + aBBox.Y + ","
+ aBBox.Width + ", " + aBBox.Height,
aParent);
break;
diff --git a/toolkit/test/accessibility/AccessibleContextHandler.java b/toolkit/test/accessibility/AccessibleContextHandler.java
index fd22bcd5367f..a9267e562938 100644
--- a/toolkit/test/accessibility/AccessibleContextHandler.java
+++ b/toolkit/test/accessibility/AccessibleContextHandler.java
@@ -7,7 +7,7 @@ import java.util.HashMap;
import tools.NameProvider;
-class AccessibleContextHandler
+class AccessibleContextHandler
extends NodeHandler
{
protected int nChildrenCount;
@@ -37,14 +37,14 @@ class AccessibleContextHandler
XAccessibleContext xContext = null;
if (aParent instanceof AccTreeNode)
xContext = ((AccTreeNode)aParent).getContext();
-
+
String sChild = new String();
if (xContext != null)
{
switch( nIndex )
{
case 0:
- sChild = "Description: " +
+ sChild = "Description: " +
xContext.getAccessibleDescription();
break;
case 1:
@@ -56,14 +56,14 @@ class AccessibleContextHandler
sChild = "Has parent: " + (xParent!=null ? "yes" : "no");
/* if (xParent != ((AccTreeNode)aParent).getAccessible())
{
- sChild += " but that is inconsistent"
+ sChild += " but that is inconsistent"
+ "#" + xParent + " # " + ((AccTreeNode)aParent).getAccessible();
}
*/
break;
case 3:
sChild = "";
- XAccessibleStateSet xStateSet =
+ XAccessibleStateSet xStateSet =
xContext.getAccessibleStateSet();
if (xStateSet != null)
{
diff --git a/toolkit/test/accessibility/AccessibleEditableTextHandler.java b/toolkit/test/accessibility/AccessibleEditableTextHandler.java
index a79158c099ba..80081da665e9 100644
--- a/toolkit/test/accessibility/AccessibleEditableTextHandler.java
+++ b/toolkit/test/accessibility/AccessibleEditableTextHandler.java
@@ -8,7 +8,7 @@ class AccessibleEditableTextHandler extends NodeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
- XAccessibleEditableText xText =
+ XAccessibleEditableText xText =
(XAccessibleEditableText) UnoRuntime.queryInterface (
XAccessibleEditableText.class, xContext);
if (xText != null)
diff --git a/toolkit/test/accessibility/AccessibleExtendedComponentHandler.java b/toolkit/test/accessibility/AccessibleExtendedComponentHandler.java
index 7f9fc17b23a5..3336175d2d22 100644
--- a/toolkit/test/accessibility/AccessibleExtendedComponentHandler.java
+++ b/toolkit/test/accessibility/AccessibleExtendedComponentHandler.java
@@ -3,12 +3,12 @@ import com.sun.star.accessibility.XAccessibleContext;
import com.sun.star.accessibility.XAccessibleExtendedComponent;
-class AccessibleExtendedComponentHandler
+class AccessibleExtendedComponentHandler
extends NodeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
- XAccessibleExtendedComponent xEComponent =
+ XAccessibleExtendedComponent xEComponent =
(XAccessibleExtendedComponent) UnoRuntime.queryInterface (
XAccessibleExtendedComponent.class, xContext);
if (xEComponent != null)
@@ -30,7 +30,7 @@ class AccessibleExtendedComponentHandler
private static XAccessibleExtendedComponent getComponent (AccTreeNode aNode)
{
return (XAccessibleExtendedComponent) UnoRuntime.queryInterface (
- XAccessibleExtendedComponent.class,
+ XAccessibleExtendedComponent.class,
aNode.getContext());
}
@@ -41,7 +41,7 @@ class AccessibleExtendedComponentHandler
if (aParent instanceof AccTreeNode)
{
XAccessibleExtendedComponent xEComponent = getComponent ((AccTreeNode)aParent);
-
+
if (xEComponent != null)
{
int nColor;
diff --git a/toolkit/test/accessibility/AccessibleHyperlinkHandler.java b/toolkit/test/accessibility/AccessibleHyperlinkHandler.java
index 674331317f7e..34609fe9ef33 100644
--- a/toolkit/test/accessibility/AccessibleHyperlinkHandler.java
+++ b/toolkit/test/accessibility/AccessibleHyperlinkHandler.java
@@ -8,7 +8,7 @@ class AccessibleHyperlinkHandler extends AccessibleTreeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
- XAccessibleHyperlink xLink =
+ XAccessibleHyperlink xLink =
(XAccessibleHyperlink) UnoRuntime.queryInterface (
XAccessibleHyperlink.class, xContext);
if (xLink != null)
@@ -29,7 +29,7 @@ class AccessibleHyperlinkHandler extends AccessibleTreeHandler
protected XAccessibleHyperlink getHyperlink(Object aObject)
{
- XAccessibleHyperlink xHyperlink =
+ XAccessibleHyperlink xHyperlink =
(XAccessibleHyperlink) UnoRuntime.queryInterface (
XAccessibleHyperlink.class, aObject);
return xHyperlink;
diff --git a/toolkit/test/accessibility/AccessibleHypertextHandler.java b/toolkit/test/accessibility/AccessibleHypertextHandler.java
index aa703942bc4c..ddfd5ebef910 100644
--- a/toolkit/test/accessibility/AccessibleHypertextHandler.java
+++ b/toolkit/test/accessibility/AccessibleHypertextHandler.java
@@ -8,7 +8,7 @@ class AccessibleHypertextHandler extends AccessibleTreeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
- XAccessibleHypertext xText =
+ XAccessibleHypertext xText =
(XAccessibleHypertext) UnoRuntime.queryInterface (
XAccessibleHypertext.class, xContext);
if (xText != null)
@@ -29,7 +29,7 @@ class AccessibleHypertextHandler extends AccessibleTreeHandler
protected static XAccessibleHypertext getHypertext (AccTreeNode aNode)
{
- XAccessibleHypertext xHypertext =
+ XAccessibleHypertext xHypertext =
(XAccessibleHypertext) UnoRuntime.queryInterface (
XAccessibleHypertext.class, aNode.getContext());
return xHypertext;
diff --git a/toolkit/test/accessibility/AccessibleImageHandler.java b/toolkit/test/accessibility/AccessibleImageHandler.java
index 92917e1b9740..c7e28a679b3e 100644
--- a/toolkit/test/accessibility/AccessibleImageHandler.java
+++ b/toolkit/test/accessibility/AccessibleImageHandler.java
@@ -8,7 +8,7 @@ class AccessibleImageHandler extends NodeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
- XAccessibleImage xImage =
+ XAccessibleImage xImage =
(XAccessibleImage) UnoRuntime.queryInterface (
XAccessibleImage.class, xContext);
if (xImage != null)
@@ -40,7 +40,7 @@ class AccessibleImageHandler extends NodeHandler
XAccessibleImage xImage = getImage ((AccTreeNode)aParent);
if (xImage != null)
return new StringNode (
- "Image: " +
+ "Image: " +
xImage.getAccessibleImageDescription() + " (" +
xImage.getAccessibleImageWidth() + "x" +
xImage.getAccessibleImageHeight() + ")",
diff --git a/toolkit/test/accessibility/AccessibleRelationHandler.java b/toolkit/test/accessibility/AccessibleRelationHandler.java
index ea3be4c16264..d4cbc9a7e1c2 100644
--- a/toolkit/test/accessibility/AccessibleRelationHandler.java
+++ b/toolkit/test/accessibility/AccessibleRelationHandler.java
@@ -8,7 +8,7 @@ import com.sun.star.lang.IndexOutOfBoundsException;
import tools.NameProvider;
-class AccessibleRelationHandler
+class AccessibleRelationHandler
extends NodeHandler
{
public NodeHandler createHandler( XAccessibleContext xContext )
@@ -34,7 +34,7 @@ class AccessibleRelationHandler
maChildList.setSize( 1 );
}
- public AccessibleTreeNode createChild( AccessibleTreeNode aParent,
+ public AccessibleTreeNode createChild( AccessibleTreeNode aParent,
int nIndex )
{
XAccessibleRelationSet xRelation = null;
@@ -42,7 +42,7 @@ class AccessibleRelationHandler
if( aParent instanceof AccTreeNode )
{
- xRelation =
+ xRelation =
((AccTreeNode)aParent).getContext().getAccessibleRelationSet();
}
if( xRelation == null )
@@ -64,8 +64,8 @@ class AccessibleRelationHandler
for( int j = 0; j < aRelation.TargetSet.length; j++ )
{
Object aTarget = aRelation.TargetSet[j];
- XAccessible xAccTarget =
- (XAccessible)UnoRuntime.queryInterface(
+ XAccessible xAccTarget =
+ (XAccessible)UnoRuntime.queryInterface(
XAccessible.class, aTarget );
if( xAccTarget == null )
{
@@ -80,7 +80,7 @@ class AccessibleRelationHandler
}
aBuffer.delete( aBuffer.length() - 2, aBuffer.length() );
- aVNode.addChild( new StringNode( aBuffer.toString(),
+ aVNode.addChild( new StringNode( aBuffer.toString(),
aParent ) );
}
diff --git a/toolkit/test/accessibility/AccessibleSelectionHandler.java b/toolkit/test/accessibility/AccessibleSelectionHandler.java
index f7ab62807332..bf6fbade0762 100644
--- a/toolkit/test/accessibility/AccessibleSelectionHandler.java
+++ b/toolkit/test/accessibility/AccessibleSelectionHandler.java
@@ -13,15 +13,15 @@ import java.awt.event.ActionEvent;
-class AccessibleSelectionHandler
+class AccessibleSelectionHandler
extends NodeHandler
{
public NodeHandler createHandler( XAccessibleContext xContext )
{
- XAccessibleSelection xSelection =
+ XAccessibleSelection xSelection =
(XAccessibleSelection) UnoRuntime.queryInterface(
XAccessibleSelection.class, xContext);
- return (xSelection == null) ? null :
+ return (xSelection == null) ? null :
new AccessibleSelectionHandler(xSelection);
}
@@ -35,28 +35,28 @@ class AccessibleSelectionHandler
maChildList.setSize( 2 );
}
- public AccessibleTreeNode createChild( AccessibleTreeNode aParent,
+ public AccessibleTreeNode createChild( AccessibleTreeNode aParent,
int nIndex )
{
AccessibleTreeNode aChild = null;
if( aParent instanceof AccTreeNode )
{
- XAccessibleSelection xSelection =
+ XAccessibleSelection xSelection =
((AccTreeNode)aParent).getSelection();
if( xSelection != null )
{
switch( nIndex )
{
case 0:
- aChild = new StringNode(
- "getSelectedAccessibleChildCount: " +
+ aChild = new StringNode(
+ "getSelectedAccessibleChildCount: " +
xSelection.getSelectedAccessibleChildCount(),
aParent );
break;
case 1:
{
- VectorNode aVNode =
+ VectorNode aVNode =
new VectorNode( "Selected Children", aParent);
int nSelected = 0;
int nCount = ((AccTreeNode)aParent).getContext().
@@ -71,13 +71,13 @@ class AccessibleSelectionHandler
{
XAccessible xSelChild = xSelection.
getSelectedAccessibleChild(nSelected);
- XAccessible xNChild =
+ XAccessible xNChild =
((AccTreeNode)aParent).
getContext().getAccessibleChild( i );
aVNode.addChild( new StringNode(
- i + ": " +
+ i + ": " +
xNChild.getAccessibleContext().
- getAccessibleDescription() + " (" +
+ getAccessibleDescription() + " (" +
(xSelChild.equals(xNChild) ? "OK" : "XXX") +
")", aParent ) );
}
@@ -93,7 +93,7 @@ class AccessibleSelectionHandler
}
catch( IndexOutOfBoundsException e )
{
- aChild = new StringNode( "IndexOutOfBounds",
+ aChild = new StringNode( "IndexOutOfBounds",
aParent );
}
}
@@ -109,11 +109,11 @@ class AccessibleSelectionHandler
}
- public String[] getActions (AccessibleTreeNode aNode)
- {
+ public String[] getActions (AccessibleTreeNode aNode)
+ {
if( aNode instanceof AccTreeNode )
{
- XAccessibleSelection xSelection =
+ XAccessibleSelection xSelection =
((AccTreeNode)aNode).getSelection();
if( xSelection != null )
{
@@ -124,7 +124,7 @@ class AccessibleSelectionHandler
}
public void performAction (AccessibleTreeNode aNode, int nIndex)
- {
+ {
new SelectionDialog( (AccTreeNode)aNode ).show();
}
}
diff --git a/toolkit/test/accessibility/AccessibleTableHandler.java b/toolkit/test/accessibility/AccessibleTableHandler.java
index c3883f649d5e..cc175bb4c63d 100644
--- a/toolkit/test/accessibility/AccessibleTableHandler.java
+++ b/toolkit/test/accessibility/AccessibleTableHandler.java
@@ -8,7 +8,7 @@ class AccessibleTableHandler extends NodeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
- XAccessibleTable xTable =
+ XAccessibleTable xTable =
(XAccessibleTable) UnoRuntime.queryInterface (
XAccessibleTable.class, xContext);
if (xTable != null)
diff --git a/toolkit/test/accessibility/AccessibleTextHandler.java b/toolkit/test/accessibility/AccessibleTextHandler.java
index 6fa083b22ea3..2f256a4f3573 100644
--- a/toolkit/test/accessibility/AccessibleTextHandler.java
+++ b/toolkit/test/accessibility/AccessibleTextHandler.java
@@ -78,9 +78,9 @@ class AccessibleTextHandler extends NodeHandler
aChild = new StringNode (characters( xText ), aParent);
break;
case 3:
- aChild = new StringNode ("selection: "
- + "[" + xText.getSelectionStart()
- + "," + xText.getSelectionEnd()
+ aChild = new StringNode ("selection: "
+ + "[" + xText.getSelectionStart()
+ + "," + xText.getSelectionEnd()
+ "] \"" + xText.getSelectedText() + "\"",
aParent);
break;
@@ -91,32 +91,32 @@ class AccessibleTextHandler extends NodeHandler
{
VectorNode aVec = new VectorNode("portions", aParent);
aChild = aVec;
- aVec.addChild(
- textAtIndexNode( xText, "Character",
+ aVec.addChild(
+ textAtIndexNode( xText, "Character",
AccessibleTextType.CHARACTER,
aParent ) );
- aVec.addChild(
- textAtIndexNode( xText, "Word",
- AccessibleTextType.WORD,
+ aVec.addChild(
+ textAtIndexNode( xText, "Word",
+ AccessibleTextType.WORD,
aParent ) );
- aVec.addChild(
- textAtIndexNode( xText, "Sentence",
+ aVec.addChild(
+ textAtIndexNode( xText, "Sentence",
AccessibleTextType.SENTENCE,
aParent ) );
- aVec.addChild(
- textAtIndexNode( xText, "Paragraph",
+ aVec.addChild(
+ textAtIndexNode( xText, "Paragraph",
AccessibleTextType.PARAGRAPH,
aParent ) );
- aVec.addChild(
- textAtIndexNode( xText, "Line",
+ aVec.addChild(
+ textAtIndexNode( xText, "Line",
AccessibleTextType.LINE,
aParent ) );
- aVec.addChild(
+ aVec.addChild(
textAtIndexNode( xText, "Attribute",
AccessibleTextType.ATTRIBUTE_RUN,
aParent ) );
- aVec.addChild(
- textAtIndexNode( xText, "Glyph",
+ aVec.addChild(
+ textAtIndexNode( xText, "Glyph",
AccessibleTextType.GLYPH,
aParent ) );
}
@@ -147,21 +147,21 @@ class AccessibleTextHandler extends NodeHandler
{
return "[" + nStart + "," + nEnd + "] "
+ "\"" + sWord + "\" \t"
- + "(" + sBefore + ","
+ + "(" + sBefore + ","
+ "" + sBehind + ")";
}
-
+
/** Create a text node that lists all strings of a particular text type
*/
private AccessibleTreeNode textAtIndexNode(
- XAccessibleText xText,
- String sName,
+ XAccessibleText xText,
+ String sName,
short nTextType,
AccessibleTreeNode aParent)
{
VectorNode aNode = new VectorNode (sName, aParent);
- // get word at all positions;
+ // get word at all positions;
// for nicer display, compare current word to previous one and
// make a new node for every interval, not for every word
int nLength = xText.getCharacterCount();
@@ -170,7 +170,7 @@ class AccessibleTextHandler extends NodeHandler
try
{
// sWord + nStart mark the current word
- // make a node as soon as a new one is found; close the last
+ // make a node as soon as a new one is found; close the last
// one at the end
TextSegment sWord = xText.getTextAtIndex(0, nTextType);
TextSegment sBefore = xText.getTextBeforeIndex(0, nTextType);
@@ -185,14 +185,14 @@ class AccessibleTextHandler extends NodeHandler
sTBeh.equals( sBehind ) ) )
{
aNode.addChild (new StringNode (textAtIndexNodeString(
- nStart, i,
+ nStart, i,
sWord.SegmentText, sBefore.SegmentText, sBehind.SegmentText), aNode));
sWord = sTmp;
sBefore = sTBef;
sBehind = sTBeh;
nStart = i;
}
-
+
// don't generate more than 50 children.
if (aNode.getChildCount() > 50)
{
@@ -200,8 +200,8 @@ class AccessibleTextHandler extends NodeHandler
break;
}
}
- aNode.addChild (new StringNode (textAtIndexNodeString(
- nStart, nLength,
+ aNode.addChild (new StringNode (textAtIndexNodeString(
+ nStart, nLength,
sWord.SegmentText, sBefore.SegmentText, sBehind.SegmentText), aNode));
}
catch( IndexOutOfBoundsException e )
@@ -237,7 +237,7 @@ class AccessibleTextHandler extends NodeHandler
aChars.append( xText.getCharacter(i) );
aChars.append( "," );
}
- if( nChars > 0)
+ if( nChars > 0)
{
if( nChars == xText.getCharacterCount() )
aChars.deleteCharAt( aChars.length() - 1 );
@@ -256,7 +256,7 @@ class AccessibleTextHandler extends NodeHandler
}
- /** iterate over characters, and translate their positions
+ /** iterate over characters, and translate their positions
* back and forth */
private String bounds( XAccessibleText xText )
{
@@ -290,7 +290,7 @@ class AccessibleTextHandler extends NodeHandler
return aBuffer.toString();
}
-
+
private AccessibleTreeNode getAttributes( XAccessibleText xText,
AccessibleTreeNode aParent)
{
@@ -316,7 +316,7 @@ class AccessibleTextHandler extends NodeHandler
try
{
VectorNode aPortions = new VectorNode ("getAttributes", aParent);
-
+
int nIndex = 0;
int nLength = xText.getCharacterCount();
while( nIndex < nLength )
@@ -325,7 +325,7 @@ class AccessibleTextHandler extends NodeHandler
String aPortion = null;
try
{
- aPortion = xText.getTextAtIndex(
+ aPortion = xText.getTextAtIndex(
nIndex, AccessibleTextType.ATTRIBUTE_RUN).SegmentText;
}
catch(com.sun.star.lang.IllegalArgumentException e)
@@ -338,7 +338,7 @@ class AccessibleTextHandler extends NodeHandler
VectorNode aAttrs = new VectorNode (aPortion, aPortions);
for( int i = 0; i < aValues.length; i++ )
{
- new StringNode( aValues[i].Name + ": " + aValues[i].Value,
+ new StringNode( aValues[i].Name + ": " + aValues[i].Value,
aAttrs );
}
@@ -349,31 +349,31 @@ class AccessibleTextHandler extends NodeHandler
aRet = aPortions;
}
catch( IndexOutOfBoundsException e )
- {
- aRet = new StringNode( "Exception caught:" + e, aParent );
+ {
+ aRet = new StringNode( "Exception caught:" + e, aParent );
}
return aRet;
}
- static String[] aTextActions =
+ static String[] aTextActions =
new String[] { "select...", "copy..." };
- static String[] aEditableTextActions =
- new String[] { "select...", "copy...",
+ static String[] aEditableTextActions =
+ new String[] { "select...", "copy...",
"cut...", "paste...", "edit...", "format..." };
- public String[] getActions (AccessibleTreeNode aNode)
- {
+ public String[] getActions (AccessibleTreeNode aNode)
+ {
XAccessibleEditableText xEText = null;
if (aNode instanceof AccTreeNode)
xEText = ((AccTreeNode)aNode).getEditText ();
-
+
return (xEText == null) ? aTextActions : aEditableTextActions;
}
public void performAction (AccessibleTreeNode aNode, int nIndex)
- {
+ {
if ( ! (aNode instanceof AccTreeNode))
return;
@@ -384,66 +384,66 @@ class AccessibleTextHandler extends NodeHandler
switch( nIndex )
{
case 0:
- aDialog = new TextActionDialog( aATNode,
- "Select range:",
+ aDialog = new TextActionDialog( aATNode,
+ "Select range:",
"select" )
{
- boolean action(
+ boolean action(
JTextComponent aText, AccTreeNode aNode )
throws IndexOutOfBoundsException
{
- return aNode.getText().setSelection(
- getSelectionStart(),
+ return aNode.getText().setSelection(
+ getSelectionStart(),
getSelectionEnd() );
}
};
break;
case 1:
- aDialog = new TextActionDialog( aATNode,
- "Select range and copy:",
+ aDialog = new TextActionDialog( aATNode,
+ "Select range and copy:",
"copy" )
{
- boolean action(
+ boolean action(
JTextComponent aText, AccTreeNode aNode )
throws IndexOutOfBoundsException
{
- return aNode.getText().copyText(
- getSelectionStart(),
+ return aNode.getText().copyText(
+ getSelectionStart(),
getSelectionEnd() );
}
};
break;
case 2:
- aDialog = new TextActionDialog( aATNode,
- "Select range and cut:",
+ aDialog = new TextActionDialog( aATNode,
+ "Select range and cut:",
"cut" )
{
- boolean action(
+ boolean action(
JTextComponent aText, AccTreeNode aNode )
throws IndexOutOfBoundsException
{
- return aNode.getEditText().cutText(
- getSelectionStart(),
+ return aNode.getEditText().cutText(
+ getSelectionStart(),
getSelectionEnd() );
}
};
break;
case 3:
- aDialog = new TextActionDialog( aATNode,
- "Place Caret and paste:",
+ aDialog = new TextActionDialog( aATNode,
+ "Place Caret and paste:",
"paste" )
{
- boolean action(
+ boolean action(
JTextComponent aText, AccTreeNode aNode )
throws IndexOutOfBoundsException
{
- return aNode.getEditText().pasteText(
+ return aNode.getEditText().pasteText(
aText.getCaretPosition() );
}
};
break;
case 4:
- aDialog = new TextEditDialog( aATNode, "Edit text:",
+ aDialog = new TextEditDialog( aATNode, "Edit text:",
"edit" );
break;
case 5:
@@ -469,7 +469,7 @@ class TextActionDialog extends JDialog
JCheckBox aIndexToggle;
public TextActionDialog( AccTreeNode aNd,
- String sExplanation,
+ String sExplanation,
String sButtonText )
{
super( AccessibilityWorkBench.Instance() );
@@ -482,8 +482,8 @@ class TextActionDialog extends JDialog
}
/** build dialog */
- protected void init( String sExplanation,
- String sText,
+ protected void init( String sExplanation,
+ String sText,
String sButtonText )
{
setTitle( sName );
@@ -504,7 +504,7 @@ class TextActionDialog extends JDialog
aText.setLineWrap( true );
aText.setEditable( false );
aContent.add( aText, BorderLayout.CENTER );
-
+
JPanel aButtons = new JPanel();
aButtons.setLayout( new FlowLayout() );
aIndexToggle = new JCheckBox( "reverse selection" );
@@ -543,8 +543,8 @@ class TextActionDialog extends JDialog
}
if( sError != null )
- JOptionPane.showMessageDialog( AccessibilityWorkBench.Instance(),
- sError, sName,
+ JOptionPane.showMessageDialog( AccessibilityWorkBench.Instance(),
+ sError, sName,
JOptionPane.ERROR_MESSAGE);
cancel();
@@ -565,14 +565,14 @@ class TextActionDialog extends JDialog
int getSelectionEnd() { return getSelection(false); }
int getSelection(boolean bStart)
{
- return ( bStart ^ aIndexToggle.isSelected() )
+ return ( bStart ^ aIndexToggle.isSelected() )
? aText.getSelectionStart() : aText.getSelectionEnd();
}
/** override this for dialog-specific action */
- boolean action( JTextComponent aText, AccTreeNode aNode )
+ boolean action( JTextComponent aText, AccTreeNode aNode )
throws IndexOutOfBoundsException
{
return false;
@@ -583,14 +583,14 @@ class TextActionDialog extends JDialog
class TextEditDialog extends TextActionDialog
{
public TextEditDialog( AccTreeNode aNode,
- String sExplanation,
+ String sExplanation,
String sButtonText )
{
super( aNode, sExplanation, sButtonText );
}
- protected void init( String sExplanation,
- String sText,
+ protected void init( String sExplanation,
+ String sText,
String sButtonText )
{
super.init( sExplanation, sText, sButtonText );
@@ -599,7 +599,7 @@ class TextEditDialog extends TextActionDialog
/** edit the text */
- boolean action( JTextComponent aText, AccTreeNode aNode )
+ boolean action( JTextComponent aText, AccTreeNode aNode )
{
// is this text editable? if not, fudge you and return
XAccessibleEditableText xEdit = aNode.getEditText();
@@ -629,7 +629,7 @@ class TextEditDialog extends TextActionDialog
nFront++;
int nBack = 0;
while( (nBack < nMinLength) &&
- ( sNew.charAt(sNew.length()-nBack-1) ==
+ ( sNew.charAt(sNew.length()-nBack-1) ==
sOld.charAt(sOld.length()-nBack-1) ) )
nBack++;
if( nFront + nBack > nMinLength )
@@ -640,7 +640,7 @@ class TextEditDialog extends TextActionDialog
String sDel = sOld.substring( nFront, sOld.length() - nBack );
String sIns = sNew.substring( nFront, sNew.length() - nBack );
- System.out.println("edit text: " +
+ System.out.println("edit text: " +
sOld.substring(0, nFront) +
" [ " + sDel + " -> " + sIns + " ] " +
sOld.substring(sOld.length() - nBack) );
@@ -674,19 +674,19 @@ class TextAttributeDialog extends TextActionDialog
public TextAttributeDialog(
AccTreeNode aNode )
{
- super( aNode, "Choose attributes, select text, and press 'Set':",
+ super( aNode, "Choose attributes, select text, and press 'Set':",
"set" );
}
private JCheckBox aBold, aUnderline, aItalics;
private Color aForeground, aBackground;
- protected void init( String sExplanation,
- String sText,
+ protected void init( String sExplanation,
+ String sText,
String sButtonText )
{
super.init( sExplanation, sText, sButtonText );
-
+
aForeground = Color.black;
aBackground = Color.white;
@@ -699,22 +699,22 @@ class TextAttributeDialog extends TextActionDialog
JButton aForeButton = new JButton("Foreground", new ColorIcon(true));
aForeButton.addActionListener( new ActionListener() {
- public void actionPerformed(ActionEvent e)
- {
+ public void actionPerformed(ActionEvent e)
+ {
aForeground = JColorChooser.showDialog(
- TextAttributeDialog.this,
- "Select Foreground Color",
+ TextAttributeDialog.this,
+ "Select Foreground Color",
aForeground);
}
} );
-
+
JButton aBackButton = new JButton("Background", new ColorIcon(false));
aBackButton.addActionListener( new ActionListener() {
- public void actionPerformed(ActionEvent e)
- {
+ public void actionPerformed(ActionEvent e)
+ {
aBackground = JColorChooser.showDialog(
- TextAttributeDialog.this,
- "Select Background Color",
+ TextAttributeDialog.this,
+ "Select Background Color",
aBackground);
}
} );
@@ -751,10 +751,10 @@ class TextAttributeDialog extends TextActionDialog
}
}
-
+
/** edit the text */
- boolean action( JTextComponent aText, AccTreeNode aNode )
+ boolean action( JTextComponent aText, AccTreeNode aNode )
throws IndexOutOfBoundsException
{
// is this text editable? if not, fudge you and return
@@ -782,7 +782,7 @@ class TextAttributeDialog extends TextActionDialog
aSequence[5].Name = "CharBackTransparent";
aSequence[5].Value = new Boolean( false );
- bSuccess = xEdit.setAttributes( getSelectionStart(),
+ bSuccess = xEdit.setAttributes( getSelectionStart(),
getSelectionEnd(),
aSequence );
}
diff --git a/toolkit/test/accessibility/AccessibleTreeCellRenderer.java b/toolkit/test/accessibility/AccessibleTreeCellRenderer.java
index deb3cb967133..8e8f26aa858a 100644
--- a/toolkit/test/accessibility/AccessibleTreeCellRenderer.java
+++ b/toolkit/test/accessibility/AccessibleTreeCellRenderer.java
@@ -7,7 +7,7 @@ import java.util.Vector;
public class AccessibleTreeCellRenderer
- extends DefaultTreeCellRenderer
+ extends DefaultTreeCellRenderer
{
public Color
maDefaultColor,
@@ -17,7 +17,7 @@ public class AccessibleTreeCellRenderer
- public AccessibleTreeCellRenderer ()
+ public AccessibleTreeCellRenderer ()
{
maDefaultColor = Color.black;
maChangedColor = Color.red;
@@ -31,7 +31,7 @@ public class AccessibleTreeCellRenderer
boolean expanded,
boolean leaf,
int row,
- boolean hasFocus)
+ boolean hasFocus)
{
super.getTreeCellRendererComponent(
tree, value, sel,
@@ -40,7 +40,7 @@ public class AccessibleTreeCellRenderer
if (maChangedLines.size()<=row || maChangedLines.elementAt (row) == null)
setTextNonSelectionColor (maDefaultColor);
- else
+ else
setTextNonSelectionColor (maChangedColor);
return this;
diff --git a/toolkit/test/accessibility/AccessibleTreeHandler.java b/toolkit/test/accessibility/AccessibleTreeHandler.java
index f45db8cb5ab9..7c05ed43008d 100644
--- a/toolkit/test/accessibility/AccessibleTreeHandler.java
+++ b/toolkit/test/accessibility/AccessibleTreeHandler.java
@@ -6,9 +6,9 @@ import com.sun.star.lang.IndexOutOfBoundsException;
/**
* Map the tree of accessibility objects into their
- * AccessibilityTreeModel counterparts.
+ * AccessibilityTreeModel counterparts.
*/
-class AccessibleTreeHandler
+class AccessibleTreeHandler
extends NodeHandler
{
protected XAccessibleContext mxContext;
@@ -59,7 +59,7 @@ class AccessibleTreeHandler
xChild, aParent);
}
catch( IndexOutOfBoundsException e )
- {
+ {
aChild = new StringNode ("ERROR: no child with index " + nIndex, aParent);
}
}
@@ -98,7 +98,7 @@ class AccessibleTreeHandler
/** Update only the child count node. Trust on other ways to update the
- accessible children.
+ accessible children.
*/
public void update (AccessibleTreeNode aNode)
{
diff --git a/toolkit/test/accessibility/AccessibleTreeNode.java b/toolkit/test/accessibility/AccessibleTreeNode.java
index f9b0799e4423..205556c061c6 100644
--- a/toolkit/test/accessibility/AccessibleTreeNode.java
+++ b/toolkit/test/accessibility/AccessibleTreeNode.java
@@ -23,14 +23,14 @@ class AccessibleTreeNode
// Empty
}
- public AccessibleTreeNode getParent ()
+ public AccessibleTreeNode getParent ()
{
- return maParent;
+ return maParent;
}
- public Object getDisplayObject ()
+ public Object getDisplayObject ()
{
- return maDisplayObject;
+ return maDisplayObject;
}
public int getChildCount ()
@@ -78,7 +78,7 @@ class AccessibleTreeNode
return aPath.toArray();
}
- public boolean isLeaf()
+ public boolean isLeaf()
{
return true;
}
@@ -89,13 +89,13 @@ class AccessibleTreeNode
}
/** get names of suported actions */
- public String[] getActions ()
- {
+ public String[] getActions ()
+ {
return new String[] {};
}
/** perform action */
- public void performAction (int nIndex)
+ public void performAction (int nIndex)
{
}
}
diff --git a/toolkit/test/accessibility/AccessibleUNOHandler.java b/toolkit/test/accessibility/AccessibleUNOHandler.java
index d52e60cd721f..cdd0906ef614 100644
--- a/toolkit/test/accessibility/AccessibleUNOHandler.java
+++ b/toolkit/test/accessibility/AccessibleUNOHandler.java
@@ -12,14 +12,14 @@ import com.sun.star.uno.Type;
/** This handler displays lower level UNO information. These are the
supported services, interfaces, and the implementation name.
*/
-class AccessibleUNOHandler
+class AccessibleUNOHandler
extends NodeHandler
{
public NodeHandler createHandler (XAccessibleContext xContext)
{
if (xContext == null)
return null;
- else
+ else
return new AccessibleUNOHandler (xContext);
}
@@ -49,7 +49,7 @@ class AccessibleUNOHandler
return xTypeProvider;
}
- public AccessibleTreeNode createChild (AccessibleTreeNode aParent,
+ public AccessibleTreeNode createChild (AccessibleTreeNode aParent,
int nIndex)
{
AccessibleTreeNode aChild = null;
diff --git a/toolkit/test/accessibility/Canvas.java b/toolkit/test/accessibility/Canvas.java
index a1d8fb0f7d08..a9614c81e4bb 100755
--- a/toolkit/test/accessibility/Canvas.java
+++ b/toolkit/test/accessibility/Canvas.java
@@ -19,7 +19,7 @@ import com.sun.star.accessibility.XAccessibleComponent;
<p>The canvas listens to selection events of the associated JTree and
highlights the first selected node of that tree.</p>
*/
-class Canvas
+class Canvas
extends JPanel
implements MouseListener, MouseMotionListener, TreeSelectionListener//, Scrollable
{
@@ -48,7 +48,7 @@ class Canvas
}
/** Tell the canvas which tree view to use to highlight accessible
- objects.
+ objects.
*/
public void setTree (JTree aTree)
{
@@ -67,7 +67,7 @@ class Canvas
if (maNodes.indexOf (aNode) == -1)
{
maNodes.add (aNode);
-
+
CanvasShape aObject = (CanvasShape) maObjects.get (aNode);
if (aObject == null)
{
@@ -77,7 +77,7 @@ class Canvas
maBoundingBox = aObject.getBBox();
else
maBoundingBox = maBoundingBox.union (aObject.getBBox());
-
+
maObjects.put (aNode, aObject);
maObjectList.add (aObject);
@@ -109,14 +109,14 @@ class Canvas
aObject.update();
}
}
-
+
public void updateNodeGeometry (AccTreeNode aNode)
{
CanvasShape aObject = (CanvasShape)maObjects.get(aNode);
if (aObject != null)
aObject.updateGeometry();
}
-
+
public void clear ()
{
while (maNodes.size() > 0)
@@ -159,7 +159,7 @@ class Canvas
Options.SetBoolean ("Antialiasing", bNewValue);
repaint ();
}
-
+
public boolean getShowText ()
{
return Options.GetBoolean ("ShowText");
@@ -191,10 +191,10 @@ class Canvas
Graphics2D g2 = (Graphics2D)g;
if (getAntialiasing())
- g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,
+ g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
else
- g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,
+ g2.setRenderingHint (RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_OFF);
setupTransformation ();
@@ -212,7 +212,7 @@ class Canvas
g2.fill (aScreen);
g2.setColor (Color.BLACK);
g2.draw (aScreen);
-
+
synchronized (maObjectList)
{
int nCount = maObjectList.size();
@@ -228,7 +228,7 @@ class Canvas
bShowDescriptions, bShowNames, bShowText);
}
}
-
+
// Paint highlighted frame around active object as the last thing.
if (maActiveObject != null)
maActiveObject.paint_highlight (
@@ -278,7 +278,7 @@ class Canvas
// Calculate the scales that would map the screen onto the
// widget in both of the coordinate axes and select the
// smaller
- // of the two: it maps the screen onto the widget in both
+ // of the two: it maps the screen onto the widget in both
// axes at the same time.
double nHScale = (aWidgetSize.getWidth() - 10) / aScreenSize.getWidth();
double nVScale = (aWidgetSize.getHeight() - 10) / aScreenSize.getHeight();
@@ -299,7 +299,7 @@ class Canvas
mnHOffset = 0;
if (mnVOffset < 0)
mnVOffset = 0;
-
+
setPreferredSize (new Dimension (
(int)(2*mnHOffset + mnScale * aScreenSize.getWidth()),
(int)(2*mnVOffset + mnScale * aScreenSize.getHeight())));
@@ -316,8 +316,8 @@ class Canvas
}
maLastWidgetSize = aWidgetSize;
}
-
-
+
+
/** Call getAccessibleAt to determine accessible object under mouse.
*/
@@ -388,7 +388,7 @@ class Canvas
{
if (maActiveObject != null)
maActiveObject.unhighlight();
-
+
maActiveObject = aNewActiveObject;
if (maActiveObject != null)
{
@@ -406,7 +406,7 @@ class Canvas
else
return false;
}
-
+
/** Called when the selection of the tree changes. Highlight the
corresponding graphical representation of the first selected object.
*/
@@ -422,7 +422,7 @@ class Canvas
}
}
- private int
+ private int
mnXAnchor,
mnYAnchor,
maResizeFlag;
@@ -430,19 +430,19 @@ class Canvas
mnHOffset,
mnVOffset,
mnScale;
- private CanvasShape
+ private CanvasShape
maActiveObject;
private java.util.HashMap
maObjects;
- private Vector
+ private Vector
maObjectList,
maContexts,
maNodes;
- private Rectangle
+ private Rectangle
maBoundingBox;
private JTree
maTree;
// The size of the widget at the last call of setupTransformation()
- private Dimension
+ private Dimension
maLastWidgetSize;
}
diff --git a/toolkit/test/accessibility/CanvasShape.java b/toolkit/test/accessibility/CanvasShape.java
index 57cedebb9e88..c71320b43e69 100644
--- a/toolkit/test/accessibility/CanvasShape.java
+++ b/toolkit/test/accessibility/CanvasShape.java
@@ -61,7 +61,7 @@ class CanvasShape
mbFocused = xStateSet.contains (AccessibleStateType.FOCUSED);
}
}
-
+
updateGeometry ();
if (mxComponent != null)
{
@@ -99,7 +99,7 @@ class CanvasShape
/** Paint the object into the specified canvas. It is transformed
according to the specified offset and scale.
*/
- public void paint (Graphics2D g,
+ public void paint (Graphics2D g,
double nXOffset, double nYOffset, double nScaleFactor,
boolean bShowDescription, boolean bShowName, boolean bShowText)
{
@@ -112,7 +112,7 @@ class CanvasShape
maPosition.y * nScaleFactor + nYOffset,
maSize.width * nScaleFactor,
maSize.height * nScaleFactor);
-
+
// Fill the object's bounding box with its background color if it
// has no children.
if (mxContext.getAccessibleChildCount() == 0)
@@ -127,7 +127,7 @@ class CanvasShape
color = new Color (maFgColor.getRed(), maFgColor.getGreen(), maFgColor.getBlue());
g.setColor (color);
g.draw (maShape);
-
+
if (mbFocused)
{
g.setColor (maFocusColor);
@@ -167,7 +167,7 @@ class CanvasShape
}
}
- public void paint_highlight (Graphics2D g,
+ public void paint_highlight (Graphics2D g,
double nXOffset, double nYOffset, double nScaleFactor)
{
if (mbHighlighted)
@@ -182,18 +182,18 @@ class CanvasShape
private void paintName (Graphics2D g)
{
- g.drawString ("Name: " + msName,
- (float)maShape.x+5,
- (float)maShape.y+15);
+ g.drawString ("Name: " + msName,
+ (float)maShape.x+5,
+ (float)maShape.y+15);
}
private void paintDescription (Graphics2D g)
{
- g.drawString ("Description: " + msDescription,
- (float)maShape.x+5,
- (float)maShape.y+35);
+ g.drawString ("Description: " + msDescription,
+ (float)maShape.x+5,
+ (float)maShape.y+35);
}
@@ -215,10 +215,10 @@ class CanvasShape
{
com.sun.star.awt.Rectangle aRect =
xText.getCharacterBounds(i);
-
+
double x = maShape.x + aRect.X;
double y = maShape.y + aRect.Y + aRect.Height;
-
+
g.drawString(sText.substring(i, i+1), (float)x, (float)y);
}
}
@@ -267,7 +267,7 @@ class CanvasShape
{
return new Rectangle (maPosition, maSize);
}
-
+
public Point getOrigin ()
{
return maPosition;
diff --git a/toolkit/test/accessibility/EventHandler.java b/toolkit/test/accessibility/EventHandler.java
index 69f7fd2144f0..616448e5d769 100644
--- a/toolkit/test/accessibility/EventHandler.java
+++ b/toolkit/test/accessibility/EventHandler.java
@@ -31,9 +31,9 @@ class EventHandler
public void Print (PrintStream out)
{
- out.println ("Event id is " + mnEventId
+ out.println ("Event id is " + mnEventId
+ " (" + NameProvider.getEventName(mnEventId)+")"
- + " for " + mxEventSource.getAccessibleName() + " / "
+ + " for " + mxEventSource.getAccessibleName() + " / "
+ NameProvider.getRoleName (mxEventSource.getAccessibleRole()));
PrintOldAndNew (out);
}
diff --git a/toolkit/test/accessibility/EventQueue.java b/toolkit/test/accessibility/EventQueue.java
index 9c90af9c63b7..4eb86ede50ce 100644
--- a/toolkit/test/accessibility/EventQueue.java
+++ b/toolkit/test/accessibility/EventQueue.java
@@ -93,7 +93,7 @@ class EventQueue
}
catch( Throwable e )
{
- System.out.println(
+ System.out.println(
"caught exception during event delivery: " + e );
e.printStackTrace();
}
@@ -109,7 +109,7 @@ class EventQueue
}
}
catch (Exception e)
- {
+ {
// can't wait? odd!
System.err.println("Can't wait!");
e.printStackTrace();
diff --git a/toolkit/test/accessibility/FrameActionListener.java b/toolkit/test/accessibility/FrameActionListener.java
index 30324fb9bc52..27d44455e73b 100644
--- a/toolkit/test/accessibility/FrameActionListener.java
+++ b/toolkit/test/accessibility/FrameActionListener.java
@@ -9,12 +9,12 @@ public class FrameActionListener
public FrameActionListener ()
{
}
-
+
public void frameAction (com.sun.star.frame.FrameActionEvent aEvent)
{
System.out.println ("frame action");
}
-
+
public void disposing (com.sun.star.lang.EventObject aEvent)
{
}
diff --git a/toolkit/test/accessibility/GeometryEventHandler.java b/toolkit/test/accessibility/GeometryEventHandler.java
index 07236785e862..9402a33b91d7 100644
--- a/toolkit/test/accessibility/GeometryEventHandler.java
+++ b/toolkit/test/accessibility/GeometryEventHandler.java
@@ -48,7 +48,7 @@ class GeometryEventHandler
aShapeQueue.addLast (aTreeNode);
}
}
- aCanvas.repaint ();
+ aCanvas.repaint ();
}
}
}
diff --git a/toolkit/test/accessibility/HelpWindow.java b/toolkit/test/accessibility/HelpWindow.java
index 74627ad99761..80b206f24ce5 100644
--- a/toolkit/test/accessibility/HelpWindow.java
+++ b/toolkit/test/accessibility/HelpWindow.java
@@ -118,7 +118,7 @@ class HelpWindow
{}
}
- public void actionPerformed (java.awt.event.ActionEvent e)
+ public void actionPerformed (java.awt.event.ActionEvent e)
{
if (e.getActionCommand().equals("Prev"))
{
diff --git a/toolkit/test/accessibility/InformationWriter.java b/toolkit/test/accessibility/InformationWriter.java
index e119d2037350..d2cc118a1564 100755
--- a/toolkit/test/accessibility/InformationWriter.java
+++ b/toolkit/test/accessibility/InformationWriter.java
@@ -72,7 +72,7 @@ public class InformationWriter
{
XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, xObject);
- MessageArea.println (prefix +
+ MessageArea.println (prefix +
xPropertySet.getPropertyValue (name));
}
catch (Exception e)
@@ -82,7 +82,7 @@ public class InformationWriter
}
}
-
+
public void showShapes (XDrawPage xPage)
{
@@ -90,24 +90,24 @@ public class InformationWriter
{
XIndexAccess xShapeList = (XIndexAccess) UnoRuntime.queryInterface(
XIndexAccess.class, xPage);
-
- MessageArea.println ("There are " + xShapeList.getCount()
+
+ MessageArea.println ("There are " + xShapeList.getCount()
+ " shapes");
for (int i=0; i<xShapeList.getCount(); i++)
{
XShape xShape = (XShape) UnoRuntime.queryInterface(
XShape.class, xShapeList.getByIndex (i));
-
- XShapeDescriptor xShapeDescriptor =
+
+ XShapeDescriptor xShapeDescriptor =
(XShapeDescriptor) UnoRuntime.queryInterface(
XShapeDescriptor.class, xShape);
String sName = xShapeDescriptor.getShapeType ();
MessageArea.println (" shape " + i + " : " + sName);
-
- XPropertySet xPropertySet =
+
+ XPropertySet xPropertySet =
(XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, xShape);
- Integer nZOrder =
+ Integer nZOrder =
(Integer) xPropertySet.getPropertyValue ("ZOrder");
MessageArea.println (" zorder = " + nZOrder);
}
@@ -117,11 +117,11 @@ public class InformationWriter
MessageArea.println ("caught exception in showShapes: " + e);
}
}
+
-
- /** @descr Print all available services of the given object to the
+ /** @descr Print all available services of the given object to the
standard output.
*/
public void showServices (XInterface xObject)
@@ -138,7 +138,7 @@ public class InformationWriter
else
{
String[] sServiceNames = xMSF.getAvailableServiceNames ();
- MessageArea.println (" object can create "
+ MessageArea.println (" object can create "
+ sServiceNames.length + " services");
for (int i=0; i<sServiceNames.length; i++)
MessageArea.println (" service " + i + " : " + sServiceNames[i]);
@@ -149,7 +149,7 @@ public class InformationWriter
MessageArea.println ("caught exception in showServices : " + e);
}
}
-
+
/** @descr Print the service and implementation name of the given
object.
*/
@@ -167,7 +167,7 @@ public class InformationWriter
{
MessageArea.println (" Service name : " + xSN.getServiceName ());
}
-
+
// Use interface XServiceInfo to retrieve information about
// supported services.
XServiceInfo xSI = (XServiceInfo) UnoRuntime.queryInterface (
@@ -176,8 +176,8 @@ public class InformationWriter
MessageArea.println (" interface XServiceInfo not supported");
else
{
- MessageArea.println (" Implementation name : "
- + xSI.getImplementationName ());
+ MessageArea.println (" Implementation name : "
+ + xSI.getImplementationName ());
}
}
catch (Exception e)
@@ -185,10 +185,10 @@ public class InformationWriter
MessageArea.println ("caught exception in showInfo : " + e);
}
}
-
-
-
-
+
+
+
+
/** @descr Print information about supported interfaces.
*/
public void showInterfaces (XInterface xObject)
@@ -205,10 +205,10 @@ public class InformationWriter
else
{
Type[] aTypeList = xTP.getTypes ();
- MessageArea.println (" object supports " + aTypeList.length
+ MessageArea.println (" object supports " + aTypeList.length
+ " interfaces");
for (int i=0; i<aTypeList.length; i++)
- MessageArea.println (" " + i + " : "
+ MessageArea.println (" " + i + " : "
+ aTypeList[i].getTypeName());
}
}
@@ -217,8 +217,8 @@ public class InformationWriter
MessageArea.println ("caught exception in showInterfaces : " + e);
}
}
-
-
+
+
/** @descr Print information concerning the accessibility of the given
object.
*/
@@ -233,46 +233,46 @@ public class InformationWriter
// Get XAccessibleContext object if given object does not
// already support this interface.
- XAccessibleContext xContext
+ XAccessibleContext xContext
= (XAccessibleContext) UnoRuntime.queryInterface (
XAccessibleContext.class, xObject);
if (xContext == null)
{
- XAccessible xAccessible
+ XAccessible xAccessible
= (XAccessible) UnoRuntime.queryInterface (
XAccessible.class, xObject);
if (xAccessible == null)
{
- MessageArea.println (sIndent + "given object " + xObject
+ MessageArea.println (sIndent + "given object " + xObject
+ " is not accessible");
return false;
}
else
xContext = xAccessible.getAccessibleContext();
}
-
+
// Print information about the accessible context.
if (xContext != null)
{
- MessageArea.println (sIndent + "Name : "
+ MessageArea.println (sIndent + "Name : "
+ xContext.getAccessibleName());
- MessageArea.println (sIndent + "Description : "
+ MessageArea.println (sIndent + "Description : "
+ xContext.getAccessibleDescription());
- MessageArea.println (sIndent + "Role : "
+ MessageArea.println (sIndent + "Role : "
+ xContext.getAccessibleRole());
String sHasParent;
if (xContext.getAccessibleParent() != null)
{
MessageArea.println (sIndent + "Has parent : yes");
- MessageArea.println (sIndent + "Parent index : "
+ MessageArea.println (sIndent + "Parent index : "
+ xContext.getAccessibleIndexInParent());
}
else
MessageArea.println (sIndent + "Has parent : no");
- MessageArea.println (sIndent + "Child count : "
+ MessageArea.println (sIndent + "Child count : "
+ xContext.getAccessibleChildCount());
MessageArea.print (sIndent + "Relation set : ");
- XAccessibleRelationSet xRelationSet
+ XAccessibleRelationSet xRelationSet
= xContext.getAccessibleRelationSet();
if (xRelationSet != null)
{
@@ -287,13 +287,13 @@ public class InformationWriter
}
else
MessageArea.println ("no relation set");
-
+
MessageArea.print (sIndent + "State set : ");
- XAccessibleStateSet xStateSet =
+ XAccessibleStateSet xStateSet =
xContext.getAccessibleStateSet();
if (xStateSet != null)
{
- XIndexAccess xStates =
+ XIndexAccess xStates =
(XIndexAccess) UnoRuntime.queryInterface (
XIndexAccess.class, xStateSet);
MessageArea.print (xStates.getCount() + " (");
@@ -312,7 +312,7 @@ public class InformationWriter
}
else
MessageArea.println ("object has no accessible context.");
-
+
// showInfo (xContext);
// showServices (xContext);
// showInterfaces (xContext);
@@ -323,7 +323,7 @@ public class InformationWriter
}
return true;
}
-
+
@@ -333,20 +333,20 @@ public class InformationWriter
{
try
{
- XAccessibleComponent xComponent =
+ XAccessibleComponent xComponent =
(XAccessibleComponent) UnoRuntime.queryInterface (
XAccessibleComponent.class, xObject);
-
+
// Print information about the accessible context.
if (xComponent != null)
{
- MessageArea.println (sIndent + "Position : "
+ MessageArea.println (sIndent + "Position : "
+ xComponent.getLocation().X+", "
+ xComponent.getLocation().Y);
- MessageArea.println (sIndent + "Screen position : "
+ MessageArea.println (sIndent + "Screen position : "
+ xComponent.getLocationOnScreen().X+", "
+ xComponent.getLocationOnScreen().Y);
- MessageArea.println (sIndent + "Size : "
+ MessageArea.println (sIndent + "Size : "
+ xComponent.getSize().Width+", "
+ xComponent.getSize().Height);
}
@@ -368,7 +368,7 @@ public class InformationWriter
{
if ( ! showAccessibility (xRoot, depth))
return false;
-
+
String sIndent = "";
for (int i=0; i<depth; i++)
sIndent += " ";
diff --git a/toolkit/test/accessibility/MessageArea.java b/toolkit/test/accessibility/MessageArea.java
index c9d95995e066..6e9aef02c514 100644
--- a/toolkit/test/accessibility/MessageArea.java
+++ b/toolkit/test/accessibility/MessageArea.java
@@ -9,7 +9,7 @@ import javax.swing.JScrollBar;
/** A message area displays text in a scrollable text widget. It is a
- singleton. Other objects can access it directly to display messages.
+ singleton. Other objects can access it directly to display messages.
*/
public class MessageArea
extends JScrollPane
diff --git a/toolkit/test/accessibility/MessageInterface.java b/toolkit/test/accessibility/MessageInterface.java
index ad189bb8214f..4fc2c4184fb3 100755
--- a/toolkit/test/accessibility/MessageInterface.java
+++ b/toolkit/test/accessibility/MessageInterface.java
@@ -1,5 +1,5 @@
interface MessageInterface
{
- void message (String text);
+ void message (String text);
}
diff --git a/toolkit/test/accessibility/NodeFactory.java b/toolkit/test/accessibility/NodeFactory.java
index 403c482e5ea1..e132988a1cf9 100644
--- a/toolkit/test/accessibility/NodeFactory.java
+++ b/toolkit/test/accessibility/NodeFactory.java
@@ -37,7 +37,7 @@ class NodeFactory
maUNOHandler = new AccessibleUNOHandler();
}
-
+
/** add default handlers based on the supported interfaces */
private void addDefaultHandlers (AccTreeNode aNode, XAccessibleContext xContext)
{
@@ -106,7 +106,7 @@ class NodeFactory
sDisplay = xContext.getAccessibleName();
if (sDisplay.length()==0)
{
- sDisplay = "<no name> Role: "
+ sDisplay = "<no name> Role: "
+ NameProvider.getRoleName (
xContext.getAccessibleRole());
}
diff --git a/toolkit/test/accessibility/NodeHandler.java b/toolkit/test/accessibility/NodeHandler.java
index b39741b1f398..c4c374e60178 100644
--- a/toolkit/test/accessibility/NodeHandler.java
+++ b/toolkit/test/accessibility/NodeHandler.java
@@ -44,8 +44,8 @@ abstract class NodeHandler
}
/**
- * return a child object. Complex
- * children have to be AccTreeNode instances.
+ * return a child object. Complex
+ * children have to be AccTreeNode instances.
* @see AccTreeNode
*/
public AccessibleTreeNode getChild (AccessibleTreeNode aParent, int nIndex)
@@ -110,7 +110,7 @@ abstract class NodeHandler
// The following methods support editing of children and actions.
// They have default implementations for no actions and read-only.
//
-
+
/** May this child be changed? */
public boolean isChildEditable (AccessibleTreeNode aNode, int nIndex)
{
@@ -122,13 +122,13 @@ abstract class NodeHandler
/** get names of suported actions */
- public String[] getActions (AccessibleTreeNode aNode)
- {
+ public String[] getActions (AccessibleTreeNode aNode)
+ {
return new String[] {};
}
/** perform action */
- public void performAction (AccessibleTreeNode aNode, int nIndex)
+ public void performAction (AccessibleTreeNode aNode, int nIndex)
{
}
diff --git a/toolkit/test/accessibility/NodeMap.java b/toolkit/test/accessibility/NodeMap.java
index 43479278aec4..4e2f631027cb 100644
--- a/toolkit/test/accessibility/NodeMap.java
+++ b/toolkit/test/accessibility/NodeMap.java
@@ -31,7 +31,7 @@ class NodeMap
public boolean InsertNode (XAccessibleContext xContext, AccessibleTreeNode aNode)
{
AccessibleTreeNode aPreviousNode = (AccessibleTreeNode)maXAccessibleToNode.put (
- xContext,
+ xContext,
aNode);
return aPreviousNode != aNode;
}
@@ -47,7 +47,7 @@ class NodeMap
}
catch (Exception e)
{
- System.out.println ("caught exception while removing node "
+ System.out.println ("caught exception while removing node "
+ aNode + " : " + e);
e.printStackTrace();
}
@@ -67,7 +67,7 @@ class NodeMap
}
catch (Exception e)
{
- System.out.println ("caught exception applying functor to "
+ System.out.println ("caught exception applying functor to "
+ i + "th node " + aNodes[i] + " : " + e);
e.printStackTrace();
}
@@ -84,7 +84,7 @@ class NodeMap
{
if (aObject instanceof XAccessibleContext)
return GetNode ((XAccessibleContext)aObject);
- else
+ else
return null;
}
@@ -92,7 +92,7 @@ class NodeMap
{
if ((aNode != null) && (aNode instanceof AccTreeNode))
return ((AccTreeNode)aNode).getContext();
- else
+ else
return null;
}
diff --git a/toolkit/test/accessibility/OfficeConnection.java b/toolkit/test/accessibility/OfficeConnection.java
index 4cc5bee1ed78..d98d48aabc3d 100755
--- a/toolkit/test/accessibility/OfficeConnection.java
+++ b/toolkit/test/accessibility/OfficeConnection.java
@@ -23,7 +23,7 @@ public class OfficeConnection
mnDefaultPort = nPortNumber;
connect ();
}
-
+
/** @descr Return the service manager that represents the connected
StarOffice application
*/
@@ -33,7 +33,7 @@ public class OfficeConnection
connect ();
return maServiceManager;
}
-
+
/** @descr Return a flag that indicates if the constructor has been able to
establish a valid connection.
*/
@@ -48,14 +48,14 @@ public class OfficeConnection
{
connect (msDefaultHost, mnDefaultPort);
}
-
+
private void connect (String hostname)
{
connect (hostname, mnDefaultPort);
}
-
- /** @descr Connect to a already running StarOffice application that has
- been started with a command line argument like
+
+ /** @descr Connect to a already running StarOffice application that has
+ been started with a command line argument like
"-accept=socket,host=localhost,port=5678;urp;"
*/
private void connect (String hostname, int portnumber)
@@ -65,7 +65,7 @@ public class OfficeConnection
String sConnectString = "uno:socket,host=" + hostname + ",port=" + portnumber
+ ";urp;StarOffice.ServiceManager";
-
+
// connect to a running office and get the ServiceManager
try
{
@@ -76,7 +76,7 @@ public class OfficeConnection
XUnoUrlResolver.class,
aLocalServiceManager.createInstance ("com.sun.star.bridge.UnoUrlResolver")
);
-
+
maServiceManager = (XMultiServiceFactory) UnoRuntime.queryInterface (
XMultiServiceFactory.class,
aURLResolver.resolve (sConnectString)
@@ -94,7 +94,7 @@ public class OfficeConnection
private int mnDefaultPort = 5678;
private final String msDefaultHost = "localhost";
private XMultiServiceFactory maServiceManager = null;
-
+
/** A value of true just indicates that it has been tried to establish a connection,
not that that has been successfull.
*/
diff --git a/toolkit/test/accessibility/Options.java b/toolkit/test/accessibility/Options.java
index 9b0f6f01889c..76a2a3b0b55b 100644
--- a/toolkit/test/accessibility/Options.java
+++ b/toolkit/test/accessibility/Options.java
@@ -58,7 +58,7 @@ class Options
}
catch (java.io.IOException e)
{
- // Ignore a non-existing options file.
+ // Ignore a non-existing options file.
}
}
@@ -72,7 +72,7 @@ class Options
{
}
}
-
+
private Options ()
{
}
diff --git a/toolkit/test/accessibility/Print.java b/toolkit/test/accessibility/Print.java
index e4d21dc4e092..1a04934cf224 100755
--- a/toolkit/test/accessibility/Print.java
+++ b/toolkit/test/accessibility/Print.java
@@ -1,5 +1,5 @@
interface Print
{
- void print (String text);
+ void print (String text);
void println (String text);
}
diff --git a/toolkit/test/accessibility/QueuedListener.java b/toolkit/test/accessibility/QueuedListener.java
index b92d7ac487e6..1523808ad79e 100644
--- a/toolkit/test/accessibility/QueuedListener.java
+++ b/toolkit/test/accessibility/QueuedListener.java
@@ -26,14 +26,14 @@ class QueuedListener
xContext = xAccessible.getAccessibleContext();
}
final XAccessibleContext xSource = xContext;
- EventQueue.Instance().addDisposingEvent (new Runnable()
+ EventQueue.Instance().addDisposingEvent (new Runnable()
{
- public void run()
+ public void run()
{
if (QueuedListener.this.maListener != null)
QueuedListener.this.maListener.disposing (xSource);
}
- }
+ }
);
}
@@ -45,7 +45,7 @@ class QueuedListener
{
QueuedListener.this.maListener.notifyEvent( aEvent );
}
- }
+ }
);
}
diff --git a/toolkit/test/accessibility/QueuedTopWindowListener.java b/toolkit/test/accessibility/QueuedTopWindowListener.java
index 61b3472d2002..7eaff5b47d57 100644
--- a/toolkit/test/accessibility/QueuedTopWindowListener.java
+++ b/toolkit/test/accessibility/QueuedTopWindowListener.java
@@ -17,7 +17,7 @@ class QueuedTopWindowListener
{
QueuedTopWindowListener.this.maListener.windowOpened (aEvent);
}
- }
+ }
);
}
@@ -40,32 +40,32 @@ class QueuedTopWindowListener
{
QueuedTopWindowListener.this.maListener.windowClosed (aEvent);
}
- }
+ }
);
}
- public void windowMinimized (final com.sun.star.lang.EventObject aEvent)
+ public void windowMinimized (final com.sun.star.lang.EventObject aEvent)
throws RuntimeException
{
System.out.println ("QueuedTopWindowListener: Top window minimized: " + aEvent);
}
- public void windowNormalized (final com.sun.star.lang.EventObject aEvent)
+ public void windowNormalized (final com.sun.star.lang.EventObject aEvent)
throws RuntimeException
{
System.out.println ("QueuedTopWindowListener: Top window normalized: " + aEvent);
}
- public void windowActivated (final com.sun.star.lang.EventObject aEvent)
+ public void windowActivated (final com.sun.star.lang.EventObject aEvent)
throws RuntimeException
{
System.out.println ("QueuedTopWindowListener: Top window actived: " + aEvent);
}
- public void windowDeactivated (final com.sun.star.lang.EventObject aEvent)
+ public void windowDeactivated (final com.sun.star.lang.EventObject aEvent)
throws RuntimeException
{
System.out.println ("QueuedTopWindowListener: Top window deactived: " + aEvent);
@@ -73,14 +73,14 @@ class QueuedTopWindowListener
public void disposing( final EventObject aEvent)
{
- EventQueue.Instance().addDisposingEvent (new Runnable()
+ EventQueue.Instance().addDisposingEvent (new Runnable()
{
- public void run()
+ public void run()
{
if (QueuedTopWindowListener.this.maListener != null)
QueuedTopWindowListener.this.maListener.disposing (aEvent);
}
- }
+ }
);
}
diff --git a/toolkit/test/accessibility/SelectionDialog.java b/toolkit/test/accessibility/SelectionDialog.java
index a632e9f77a0c..551875c9d5f9 100644
--- a/toolkit/test/accessibility/SelectionDialog.java
+++ b/toolkit/test/accessibility/SelectionDialog.java
@@ -22,7 +22,7 @@ class SelectionDialog extends JDialog
public SelectionDialog (AccTreeNode aNode)
{
super (AccessibilityWorkBench.Instance());
-
+
maNode = aNode;
Layout();
@@ -37,7 +37,7 @@ class SelectionDialog extends JDialog
Container aContent = getContentPane();
// label with explanation
- aContent.add( new JLabel( "Select/Deselect child elements" ),
+ aContent.add( new JLabel( "Select/Deselect child elements" ),
BorderLayout.NORTH );
// the JListBox
@@ -122,9 +122,9 @@ class SelectionDialog extends JDialog
}
catch( IndexOutOfBoundsException e )
{
- JOptionPane.showMessageDialog( AccessibilityWorkBench.Instance(),
+ JOptionPane.showMessageDialog( AccessibilityWorkBench.Instance(),
"Can't select: IndexOutofBounds",
- "Error in selectAccessibleChild",
+ "Error in selectAccessibleChild",
JOptionPane.ERROR_MESSAGE);
}
}
@@ -133,14 +133,14 @@ class SelectionDialog extends JDialog
{
try
{
- mxSelection.deselectAccessibleChild(
+ mxSelection.deselectAccessibleChild(
maChildrenSelector.getSelectedIndex());
}
catch( IndexOutOfBoundsException e )
{
- JOptionPane.showMessageDialog( AccessibilityWorkBench.Instance(),
+ JOptionPane.showMessageDialog( AccessibilityWorkBench.Instance(),
"Can't deselect: IndexOutofBounds",
- "Error in deselectAccessibleChild",
+ "Error in deselectAccessibleChild",
JOptionPane.ERROR_MESSAGE);
}
}
@@ -155,7 +155,7 @@ class SelectionDialog extends JDialog
mxSelection.clearAccessibleSelection();
}
-
+
public void actionPerformed(ActionEvent e)
{
diff --git a/toolkit/test/accessibility/SimpleOffice.java b/toolkit/test/accessibility/SimpleOffice.java
index 4417267675af..c1c2d28738ff 100755
--- a/toolkit/test/accessibility/SimpleOffice.java
+++ b/toolkit/test/accessibility/SimpleOffice.java
@@ -73,7 +73,7 @@ public class SimpleOffice
try
{
// Load the document from the specified URL.
- XComponentLoader xLoader =
+ XComponentLoader xLoader =
(XComponentLoader)UnoRuntime.queryInterface(
XComponentLoader.class, mxDesktop);
@@ -108,7 +108,7 @@ public class SimpleOffice
XModel xModel = null;
try
{
- XTasksSupplier xTasksSupplier =
+ XTasksSupplier xTasksSupplier =
(XTasksSupplier) UnoRuntime.queryInterface(
XTasksSupplier.class, mxDesktop);
XEnumerationAccess xEA = xTasksSupplier.getTasks();
@@ -157,7 +157,7 @@ public class SimpleOffice
}
else
MessageArea.println ("Connected successfully.");
-
+
// Create a new desktop.
mxDesktop = (XDesktop) UnoRuntime.queryInterface(
XDesktop.class,
@@ -248,7 +248,7 @@ public class SimpleOffice
- /** @descr Return the current window associated with the given
+ /** @descr Return the current window associated with the given
model.
*/
public XWindow getCurrentWindow ()
@@ -264,8 +264,8 @@ public class SimpleOffice
public XWindow getCurrentWindow (XModel xModel)
{
XWindow xWindow = null;
- try
- {
+ try
+ {
if (xModel == null)
MessageArea.println ("invalid model (==null)");
XController xController = xModel.getCurrentController();
@@ -282,7 +282,7 @@ public class SimpleOffice
{
MessageArea.println ("caught exception while getting current window" + e);
}
-
+
return xWindow;
}
@@ -301,8 +301,8 @@ public class SimpleOffice
public XDrawPage getCurrentDrawPage (XDrawView xView)
{
XDrawPage xPage = null;
- try
- {
+ try
+ {
if (xView == null)
MessageArea.println ("can't get current draw page from null view");
else
@@ -312,7 +312,7 @@ public class SimpleOffice
{
MessageArea.println ("caught exception while getting current draw page : " + e);
}
-
+
return xPage;
}
@@ -332,8 +332,8 @@ public class SimpleOffice
MessageArea.println ("can't get desktop to retrieve current view");
XDrawView xView = null;
- try
- {
+ try
+ {
XComponent xComponent = xDesktop.getCurrentComponent();
if (xComponent == null)
MessageArea.println ("can't get component to retrieve current view");
@@ -345,7 +345,7 @@ public class SimpleOffice
XController xController = xFrame.getController();
if (xController == null)
MessageArea.println ("can't get controller to retrieve current view");
-
+
xView = (XDrawView) UnoRuntime.queryInterface(
XDrawView.class, xController);
if (xView == null)
@@ -355,7 +355,7 @@ public class SimpleOffice
{
MessageArea.println ("caught exception while getting current view : " + e);
}
-
+
return xView;
}
diff --git a/toolkit/test/accessibility/TableEventHandler.java b/toolkit/test/accessibility/TableEventHandler.java
index 7655d3a13599..35bd7c64dc4e 100644
--- a/toolkit/test/accessibility/TableEventHandler.java
+++ b/toolkit/test/accessibility/TableEventHandler.java
@@ -19,7 +19,7 @@ class TableEventHandler
switch (mnEventId)
{
case AccessibleEventId.TABLE_MODEL_CHANGED:
- AccessibleTableModelChange aModelChange =
+ AccessibleTableModelChange aModelChange =
(AccessibleTableModelChange)maEvent.NewValue;
out.println( "Range: StartRow " + aModelChange.FirstRow +
" StartColumn " + aModelChange.FirstColumn +
diff --git a/toolkit/test/accessibility/TextUpdateListener.java b/toolkit/test/accessibility/TextUpdateListener.java
index 0ce990144c67..eece44d5fc60 100644
--- a/toolkit/test/accessibility/TextUpdateListener.java
+++ b/toolkit/test/accessibility/TextUpdateListener.java
@@ -28,7 +28,7 @@ class TextUpdateListener implements TreeModelListener
{
// aha! we have an xText. So we can now check for
// the various cases we support
- XAccessibleText xText =
+ XAccessibleText xText =
(XAccessibleText)aParent.getUserObject();
if( aIndices[0] == 0 )
@@ -48,8 +48,8 @@ class TextUpdateListener implements TreeModelListener
// try
// {
// // aha! Selection:
- // setSelection( xText,
- // Integer.parseInt(m.group(1)),
+ // setSelection( xText,
+ // Integer.parseInt(m.group(1)),
// Integer.parseInt(m.group(2)) );
// }
// catch( NumberFormatException f )
@@ -75,7 +75,7 @@ class TextUpdateListener implements TreeModelListener
throws com.sun.star.lang.IndexOutOfBoundsException
{
// is this text editable? if not, fudge you and return
- XAccessibleEditableText xEdit =
+ XAccessibleEditableText xEdit =
(XAccessibleEditableText) UnoRuntime.queryInterface (
XAccessibleEditableText.class, xText);
if (xEdit == null)
@@ -99,7 +99,7 @@ class TextUpdateListener implements TreeModelListener
nFront++;
int nBack = 0;
while( (nBack < nMinLength) &&
- ( sNew.charAt(sNew.length()-nBack-1) ==
+ ( sNew.charAt(sNew.length()-nBack-1) ==
sOld.charAt(sOld.length()-nBack-1) ) )
nBack++;
if( nFront + nBack > nMinLength )
@@ -110,7 +110,7 @@ class TextUpdateListener implements TreeModelListener
String sDel = sOld.substring( nFront, sOld.length() - nBack );
String sIns = sNew.substring( nFront, sNew.length() - nBack );
- System.out.println("edit text: " +
+ System.out.println("edit text: " +
sOld.substring(0, nFront) +
" [ " + sDel + " -> " + sIns + " ] " +
sOld.substring(sOld.length() - nBack) );
@@ -150,14 +150,14 @@ class TextUpdateListener implements TreeModelListener
}
// /** replace the given node with a new xText node */
- // void updateNode( XAccessibleText xText,
+ // void updateNode( XAccessibleText xText,
// DefaultMutableTreeNode aNode )
// {
// // create a new node
// DefaultMutableTreeNode aNew = newTextTreeNode( xText );
- //
+ //
// // get parent (must be DefaultMutableTreeNode)
- // DefaultMutableTreeNode aParent =
+ // DefaultMutableTreeNode aParent =
// (DefaultMutableTreeNode)aNode.getParent();
// if( aParent != null )
// {
diff --git a/toolkit/test/accessibility/TopWindowListener.java b/toolkit/test/accessibility/TopWindowListener.java
index c0aea933ece7..84e7a65e9781 100644
--- a/toolkit/test/accessibility/TopWindowListener.java
+++ b/toolkit/test/accessibility/TopWindowListener.java
@@ -75,7 +75,7 @@ class TopWindowListener
if (aRootObject instanceof VectorNode)
{
VectorNode aRoot = (VectorNode) aRootObject;
- AccessibleTreeNode aNode =
+ AccessibleTreeNode aNode =
NodeFactory.Instance().createDefaultNode (xNewTopLevelObject, aRoot);
aRoot.addChild (aNode);
maModel.fireTreeNodesInserted (maModel.createEvent (aRoot, aNode));
@@ -147,7 +147,7 @@ class TopWindowListener
// XTopWindowListener
- public void windowOpened (final com.sun.star.lang.EventObject aEvent)
+ public void windowOpened (final com.sun.star.lang.EventObject aEvent)
throws RuntimeException
{
if (maModel != null)
@@ -170,7 +170,7 @@ class TopWindowListener
- public void windowClosed (final com.sun.star.lang.EventObject aEvent)
+ public void windowClosed (final com.sun.star.lang.EventObject aEvent)
throws RuntimeException
{
if (maModel != null)
diff --git a/toolkit/test/accessibility/VectorNode.java b/toolkit/test/accessibility/VectorNode.java
index 282abb595620..6277cfaefe57 100644
--- a/toolkit/test/accessibility/VectorNode.java
+++ b/toolkit/test/accessibility/VectorNode.java
@@ -16,7 +16,7 @@ class VectorNode
maChildren = new Vector ();
}
- public void addChild (AccessibleTreeNode aChild)
+ public void addChild (AccessibleTreeNode aChild)
{
maChildren.add (aChild);
}
@@ -43,7 +43,7 @@ class VectorNode
return maChildren.indexOf (aNode);
}
- public boolean isLeaf()
+ public boolean isLeaf()
{
return maChildren.isEmpty();
}
diff --git a/toolkit/test/accessibility/ov/ListeningObjectView.java b/toolkit/test/accessibility/ov/ListeningObjectView.java
index 574fa989b20f..109390a8eff2 100644
--- a/toolkit/test/accessibility/ov/ListeningObjectView.java
+++ b/toolkit/test/accessibility/ov/ListeningObjectView.java
@@ -25,7 +25,7 @@ abstract class ListeningObjectView
public void SetObject (XAccessibleContext xContext)
{
super.SetObject (xContext);
- XAccessibleEventBroadcaster xBroadcaster =
+ XAccessibleEventBroadcaster xBroadcaster =
(XAccessibleEventBroadcaster)UnoRuntime.queryInterface(
XAccessibleEventBroadcaster.class, xContext);
if (xBroadcaster != null)
@@ -39,7 +39,7 @@ abstract class ListeningObjectView
public void Destroy ()
{
super.Destroy ();
- XAccessibleEventBroadcaster xBroadcaster =
+ XAccessibleEventBroadcaster xBroadcaster =
(XAccessibleEventBroadcaster)UnoRuntime.queryInterface(
XAccessibleEventBroadcaster.class, mxContext);
if (xBroadcaster != null)
diff --git a/toolkit/test/accessibility/ov/ObjectViewContainer.java b/toolkit/test/accessibility/ov/ObjectViewContainer.java
index c0bf6a86736b..96eb1c7b5363 100644
--- a/toolkit/test/accessibility/ov/ObjectViewContainer.java
+++ b/toolkit/test/accessibility/ov/ObjectViewContainer.java
@@ -64,7 +64,7 @@ public class ObjectViewContainer
Class aViewClass = (Class)maViewTemplates.elementAt (i);
Method aCreateMethod = aViewClass.getDeclaredMethod (
"Create", new Class[] {
- ObjectViewContainer.class,
+ ObjectViewContainer.class,
XAccessibleContext.class});
if (aCreateMethod != null)
{
@@ -142,7 +142,7 @@ public class ObjectViewContainer
/** Update the layout manager by setting the vertical weight of the
bottom entry to 1 and so make it strech to over the available
space.
-
+
*/
private void UpdateLayoutManager ()
{
diff --git a/toolkit/test/accessibility/ov/SelectionView.java b/toolkit/test/accessibility/ov/SelectionView.java
index a71f242420ba..f3e4d5214d33 100644
--- a/toolkit/test/accessibility/ov/SelectionView.java
+++ b/toolkit/test/accessibility/ov/SelectionView.java
@@ -163,12 +163,12 @@ class SelectionView
}
XAccessibleStateSet aChildStateSet = mxContext.getAccessibleStateSet();
- aChild.setSelected (aChildStateSet!=null
+ aChild.setSelected (aChildStateSet!=null
&& aChildStateSet.contains(AccessibleStateType.SELECTED));
aChild.addActionListener (this);
maChildrenSelector.add (aChild);
-
+
}
catch (IndexOutOfBoundsException e)
{
@@ -186,7 +186,7 @@ class SelectionView
{
mxSelection.clearAccessibleSelection();
}
-
+
/** Call the function associated with the pressed button.
*/
diff --git a/toolkit/test/accessibility/ov/StateSetView.java b/toolkit/test/accessibility/ov/StateSetView.java
index e8997ac0c5a0..a2e4e28a49b3 100644
--- a/toolkit/test/accessibility/ov/StateSetView.java
+++ b/toolkit/test/accessibility/ov/StateSetView.java
@@ -159,7 +159,7 @@ public class StateSetAllView
Color aTextColor = g.getColor();
g.setRenderingHint (
- RenderingHints.KEY_ANTIALIASING,
+ RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
XAccessibleStateSet xStateSet = mxContext.getAccessibleStateSet();
diff --git a/toolkit/test/accessibility/ov/TextView.java b/toolkit/test/accessibility/ov/TextView.java
index 094647986e4f..b472e030f936 100644
--- a/toolkit/test/accessibility/ov/TextView.java
+++ b/toolkit/test/accessibility/ov/TextView.java
@@ -116,7 +116,7 @@ public class TextView
}
}
- private JLabel
+ private JLabel
maTextLabel,
maCaretPositionLabel;
private XAccessibleText mxText;
diff --git a/toolkit/test/accessibility/tools/NameProvider.java b/toolkit/test/accessibility/tools/NameProvider.java
index d9bcab802cbf..5b1d5a01b329 100644
--- a/toolkit/test/accessibility/tools/NameProvider.java
+++ b/toolkit/test/accessibility/tools/NameProvider.java
@@ -98,7 +98,7 @@ public class NameProvider
maStateMap.put (new Integer (AccessibleStateType.OPAQUE), "OPAQUE");
maStateMap.put (new Integer (AccessibleStateType.PRESSED), "PRESSED");
maStateMap.put (new Integer (AccessibleStateType.RESIZABLE), "RESIZABLE");
- maStateMap.put (new Integer (AccessibleStateType.SELECTABLE), "SELECTABLE");
+ maStateMap.put (new Integer (AccessibleStateType.SELECTABLE), "SELECTABLE");
maStateMap.put (new Integer (AccessibleStateType.SELECTED), "SELECTED");
maStateMap.put (new Integer (AccessibleStateType.SENSITIVE), "SENSITIVE");
maStateMap.put (new Integer (AccessibleStateType.SHOWING), "SHOWING");
diff --git a/toolkit/workben/controls.cxx b/toolkit/workben/controls.cxx
index 853e03e4ef08..46e432e083ef 100644
--- a/toolkit/workben/controls.cxx
+++ b/toolkit/workben/controls.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@
#include <unoctrl.hxx>
-#include <svtools/unoiface.hxx> // InitExtToolkit
+#include <svtools/unoiface.hxx> // InitExtToolkit
UsrAny UsrAny_UINT16( UINT16 n )
{
@@ -68,13 +68,13 @@ MyApp aMyApp;
class MyWin : public WorkWindow
{
- XControlRef xCtrl;
- XPropertySetRef xCtrlModel;
- XControlContainerRef xCont;
- XPropertySetRef xContModel;
- XControlRef xDrawCtrl;
- XGraphicsRef xG;
-
+ XControlRef xCtrl;
+ XPropertySetRef xCtrlModel;
+ XControlContainerRef xCont;
+ XPropertySetRef xContModel;
+ XControlRef xDrawCtrl;
+ XGraphicsRef xG;
+
public:
MyWin( Window* pParent, WinBits nWinStyle );
~MyWin();
@@ -116,7 +116,7 @@ MyWin::~MyWin()
void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
{
- if( rMEvt.GetClicks() == 2 )
+ if( rMEvt.GetClicks() == 2 )
{
XViewRef xV( xDrawCtrl, USR_QUERY );
XWindowRef xC( xDrawCtrl, USR_QUERY );
@@ -128,13 +128,13 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
XServiceProviderRef xSSI = xProv->queryServiceProvider( L"stardiv.vcl.PrinterServer" );
XPrinterServerRef xPrinterServer( xSSI->createInstance(), USR_QUERY );
- Sequence< UString > aPrinterNames = xPrinterServer->getPrinterNames();
+ Sequence< UString > aPrinterNames = xPrinterServer->getPrinterNames();
USHORT nPrinters = aPrinterNames.getLen();
String aInfo( "Printers: " );
- aInfo += nPrinters;
- if ( nPrinters )
+ aInfo += nPrinters;
+ if ( nPrinters )
{
- for ( USHORT n = 0; n < nPrinters; n++ )
+ for ( USHORT n = 0; n < nPrinters; n++ )
{
aInfo += '\n';
aInfo += OUStringToString( aPrinterNames.getConstArray()[n], CHARSET_SYSTEM );
@@ -149,9 +149,9 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
xPrinter->end();
}
InfoBox( this, aInfo ).Execute();
-*/
+*/
}
- else if( rMEvt.GetClicks() == 1 )
+ else if( rMEvt.GetClicks() == 1 )
{
if( xContModel )
{
@@ -165,7 +165,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
XServiceManagerRef xProv = getGlobalServiceManager();
XMultiServiceFactoryRef xMSF = NAMESPACE_USR( getProcessServiceManager )();
-
+
XServiceProviderRef xSSI = xProv->queryServiceProvider( L"stardiv.vcl.VclToolkit" );
XToolkitRef xToolkit( xMSF->createInstance( L"stardiv.vcl.VclToolkit" ), USR_QUERY );
DBG_ASSERT( xToolkit, "No Toolkit!" );
@@ -180,7 +180,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
xModelProv = xProv->queryServiceProvider( L"stardiv.vcl.control.ControlContainer" );
XInterfaceRef xCCRef( xModelProv->createInstance(), USR_QUERY );
xCCRef->queryInterface( XControlContainer::getSmartUik(), xCont );
-
+
XControlModelRef xCM( xContModel, USR_QUERY );
XControlRef xContControl( xCont, USR_QUERY );
xContControl->setModel( xCM );
@@ -188,14 +188,14 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
xContComp->setPosSize( 0, 0, 500, 600, PosSize_POSSIZE );
// Zwei EditControls auf einem Model...
-// xModelProv = xProv->queryServiceProvider( L"stardiv.uno.awt.UnoControlEditModel" );
+// xModelProv = xProv->queryServiceProvider( L"stardiv.uno.awt.UnoControlEditModel" );
XInterfaceRef xModel( xMSF->createInstance(L"stardiv.uno.awt.UnoControlEditModel") );
DBG_ASSERT( xModel, "No Model!" );
XPropertySetRef xPSet( xModel, USR_QUERY );
xPSet->setPropertyValue( L"Text", UsrAny( UString( L"Hallo!" ) ) );
xPSet->setPropertyValue( L"FontName", UsrAny( UString( L"Times New Roman" ) ) );
-// xPSet->setPropertyValue( L"FontWeight", UsrAny( 200 ) );
+// xPSet->setPropertyValue( L"FontWeight", UsrAny( 200 ) );
XServiceProviderRef xEditCtrlProv = xProv->queryServiceProvider( L"stardiv.uno.awt.UnoControlEdit" );
// Edit1
@@ -211,7 +211,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
xEdit2->setModel( xCM );
XWindowRef xEditCmp2( xEdit2, USR_QUERY );
XLayoutConstrainsRef xL( xEdit2, USR_QUERY );
- if ( xL.is() )
+ if ( xL.is() )
{
Size aSz = xL->getPreferredSize();
xEditCmp2->setPosSize( 100, 180, aSz.Width(), aSz.Height(), PosSize_POSSIZE );
@@ -232,7 +232,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
XWindowRef xNumFieldWin( xNumField, USR_QUERY );
xNumFieldWin->setPosSize( 50, 250, 100, 60, PosSize_POSSIZE );
xCont->addControl( L"", xNumField );
-
+
XMultiPropertySetRef xPSet2( xNumModel, USR_QUERY );
Sequence<UString> Names( 2 );
Names.getArray()[0] = L"Value";
@@ -242,7 +242,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
Values.getArray()[1] = UsrAny( -2000000.0 );
xPSet2->setPropertyValues( Names, Values );
-
+
// Button...
xModelProv = xProv->queryServiceProvider( L"stardiv.vcl.controlmodel.Button" );
xModelProv->createInstance()->queryInterface( XInterface::getSmartUik(), xModel );
@@ -264,11 +264,11 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
xCont->addControl( L"", xButton1 );
/*
-
+
// ListBox...
xModelProv = xProv->queryServiceProvider( L"stardiv.vcl.controlmodel.ListBox" );
xModel = (XInterface*)xModelProv->createInstance()->queryInterface( XInterface::getSmartUik() );
-
+
xPSet = (XPropertySet*)xModel->queryInterface( XPropertySet::getSmartUik() );
Sequence<UString> aSeq( 7 );
aSeq.getArray()[0] = L"Item1";
@@ -325,10 +325,10 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
XWindowRef xGroupBoxCmp1 = (XWindow*)xGroupBox1->queryInterface( XWindow::getSmartUik() );
xGroupBoxCmp1->setPosSize( 30, 410, 100, 130, PosSize_POSSIZE );
xCont->addControl( L"", xGroupBox1 );
-
+
XServiceProviderRef xRadioButtonModelProv = xProv->queryServiceProvider( L"stardiv.vcl.controlmodel.RadioButton" );
XServiceProviderRef xRadioButtonCtrlProv = xProv->queryServiceProvider( L"stardiv.vcl.control.RadioButton" );
-
+
xModel = (XInterface*)xRadioButtonModelProv->createInstance()->queryInterface( XInterface::getSmartUik() );
XControlRef xT1 = (XControl*)xRadioButtonCtrlProv->createInstance()->queryInterface( XControl::getSmartUik() );
xT1->setModel( (XControlModel*)xModel->queryInterface( XControlModel::getSmartUik() ) );
@@ -338,7 +338,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
xPSet = (XPropertySet*)xModel->queryInterface( XPropertySet::getSmartUik() );
xPSet->setPropertyValue( L"Label", UsrAny( L"Radio1" ) );
xPSet->setPropertyValue( L"State", UsrAny_UINT16( 1 ) );
-
+
xModel = (XInterface*)xRadioButtonModelProv->createInstance()->queryInterface( XInterface::getSmartUik() );
XControlRef xT2 = (XControl*)xRadioButtonCtrlProv->createInstance()->queryInterface( XControl::getSmartUik() );
xT2->setModel( (XControlModel*)xModel->queryInterface( XControlModel::getSmartUik() ) );
@@ -347,7 +347,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
xCont->addControl( L"", xT2 );
xPSet = (XPropertySet*)xModel->queryInterface( XPropertySet::getSmartUik() );
xPSet->setPropertyValue( L"Label", UsrAny( L"Radio2" ) );
-
+
xModel = (XInterface*)xRadioButtonModelProv->createInstance()->queryInterface( XInterface::getSmartUik() );
XControlRef xT3 = (XControl*)xRadioButtonCtrlProv->createInstance()->queryInterface( XControl::getSmartUik() );
xT3->setModel( (XControlModel*)xModel->queryInterface( XControlModel::getSmartUik() ) );
@@ -356,7 +356,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
xCont->addControl( L"", xT3 );
xPSet = (XPropertySet*)xModel->queryInterface( XPropertySet::getSmartUik() );
xPSet->setPropertyValue( L"Label", UsrAny( L"Radio3" ) );
-
+
xModel = (XInterface*)xRadioButtonModelProv->createInstance()->queryInterface( XInterface::getSmartUik() );
XControlRef xT4 = (XControl*)xRadioButtonCtrlProv->createInstance()->queryInterface( XControl::getSmartUik() );
xT4->setModel( (XControlModel*)xModel->queryInterface( XControlModel::getSmartUik() ) );
@@ -385,26 +385,26 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
aControls.getArray()[3] = xT2->getModel();
aControls.getArray()[4] = xT4->getModel();
xTCModel->setControls( aControls );
-
+
Sequence<XControlModelRef> aGroup( 3 );
aGroup.getArray()[0] = xT1->getModel();
aGroup.getArray()[1] = xT3->getModel();
aGroup.getArray()[2] = xT2->getModel();
xTCModel->setGroup( aGroup, L"test" );
-*/
+*/
// Container anzeigen...
// Als Child zu diesem Fenster
- xContControl->createPeer( XToolkitRef(), GetComponentInterface( TRUE ) );
+ xContControl->createPeer( XToolkitRef(), GetComponentInterface( TRUE ) );
XDeviceRef xD( xContControl->getPeer(), USR_QUERY );
xG = xD->createGraphics();
XViewRef xV ( xDrawCtrl, USR_QUERY );
xV->setGraphics( xG );
-// ((UnoControl*)(XControl*)xNumField))->updateFromModel();
+// ((UnoControl*)(XControl*)xNumField))->updateFromModel();
/*
- // TEST:
+ // TEST:
WindowDecriptor aDescr;
aDescr.ComponentServiceName = "window";
aDescr.Type = VCLCOMPONENTTYPE_CONTAINER;
@@ -412,7 +412,7 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
aDescr.WindowAttributes = WA_SHOW|WA_BORDER;
aDescr.Bounds = Rectangle( Point( 500, 50 ), Size( 300, 200 ) );
XVclWindowPeerRef xSPWin = xToolkit->createComponent( aDescr );
-
+
WindowDecriptor aDescr2;
aDescr2.ComponentServiceName = "scrollbar";
aDescr2.Type = VCLCOMPONENTTYPE_SIMPLE;
@@ -438,13 +438,13 @@ void MyWin::Resize()
void MyWin::Paint( const Rectangle& r )
{
// Muss ueber PaintListener geschehen...
- if ( xDrawCtrl.is() )
+ if ( xDrawCtrl.is() )
{
XViewRef xV( xDrawCtrl, USR_QUERY );
XWindowRef xC( xDrawCtrl, USR_QUERY );
xV->draw( xC->getPosSize().Left(), xC->getPosSize().Top() );
}
-
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/toolkit/workben/layout/editor-normal.xml b/toolkit/workben/layout/editor-normal.xml
index 7f0dc0b69e74..daefa961c9b9 100644
--- a/toolkit/workben/layout/editor-normal.xml
+++ b/toolkit/workben/layout/editor-normal.xml
@@ -46,7 +46,7 @@
</vbox>
<hbox cnt:expand="false">
<vbox><fixedline /><fixedline /><fixedline /><fixedline /></vbox>
-<!-- <pushbutton id="import-button" label="Import..." cnt:expand="false"/>-->
+<!-- <pushbutton id="import-button" label="Import..." cnt:expand="false"/>-->
<pushbutton id="export-button" label="Export (stdout)" cnt:expand="false"/>
</hbox>
</vbox>
diff --git a/toolkit/workben/layout/editor.cxx b/toolkit/workben/layout/editor.cxx
index f93731ab9c0a..10a2cdf8b5e3 100644
--- a/toolkit/workben/layout/editor.cxx
+++ b/toolkit/workben/layout/editor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#undef NDEBUG
-/*
+/*
#include <stdio.h>
#include <string.h>
*/
@@ -175,11 +175,11 @@ public:
OSL_ASSERT( xContainer.is() );
xParent = uno::Reference< awt::XLayoutContainer >( xContainer->getParent(), uno::UNO_QUERY );
}
-
+
mxWidget = WidgetFactory::createWidget( xToolkit, xParent, unoName, nAttrbs );
OSL_ASSERT( mxWidget.is() );
mxContainer = uno::Reference< awt::XLayoutContainer >( mxWidget, uno::UNO_QUERY );
-
+
mrLabel = mrUnoName = unoName;
// try to get a nicer label for the widget
for ( int i = 0; i < WIDGETS_SPECS_LEN; i++ )
@@ -189,11 +189,11 @@ public:
mrLabel = rtl::OUString( label, strlen( label ), RTL_TEXTENCODING_UTF8 );
break;
}
-
+
// set default Text property
// TODO: disable editing of text fields, check boxes selected, etc...
-
+
// store original properties
{
PropertyIterator it( this, WINDOW_PROPERTY );
@@ -245,7 +245,7 @@ public:
virtual void setChildProperties( LayoutWidget *pChild, const PropList &rProps )
{
- maOriChildProps = rProps;
+ maOriChildProps = rProps;
LayoutWidget::setChildProperties( pChild, rProps );
}
@@ -493,7 +493,7 @@ public:
}
using LayoutWidget::setProperty;
-
+
void setProperty( rtl::OUString rPropName, PropertyKind rKind, uno::Any rValue )
{
switch ( rKind ) {
@@ -756,7 +756,7 @@ class PropertiesList : public layout::Table
void checkProperty()
{
bool flag = mpWidget->isPropertyTouched( maPropName, maPropKind );
-
+
if ( mpFlag && mpFlag->IsChecked() != (BOOL)flag )
{
CheckFlag( flag, true );
@@ -960,7 +960,7 @@ class PropertiesList : public layout::Table
void setLabel()
{
SetText( String::CreateFromAscii( IsChecked() ? "true" : "false" ) );
- }
+ }
};
struct AnyListBox : public AnyWidget, layout::ListBox
diff --git a/toolkit/workben/layout/editor.hxx b/toolkit/workben/layout/editor.hxx
index c977941703fa..3f97f54f81ce 100644
--- a/toolkit/workben/layout/editor.hxx
+++ b/toolkit/workben/layout/editor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/editor.xml b/toolkit/workben/layout/editor.xml
index 4126dea8b289..03f2ad7c107a 100644
--- a/toolkit/workben/layout/editor.xml
+++ b/toolkit/workben/layout/editor.xml
@@ -45,7 +45,7 @@
</vbox>
<hbox cnt:expand="false">
<vbox><fixedline /><fixedline /><fixedline /><fixedline /></vbox>
-<!-- <pushbutton id="import-button" label="Import..." cnt:expand="false"/>-->
+<!-- <pushbutton id="import-button" label="Import..." cnt:expand="false"/>-->
<pushbutton id="export-button" label="Export (stdout)" cnt:expand="false"/>
</hbox>
</vbox>
diff --git a/toolkit/workben/layout/non-interactable-containers.xml b/toolkit/workben/layout/non-interactable-containers.xml
index 29b37b6a7a49..6acebb7df2d9 100644
--- a/toolkit/workben/layout/non-interactable-containers.xml
+++ b/toolkit/workben/layout/non-interactable-containers.xml
@@ -30,7 +30,7 @@
</flow>
<hfixedline/>
<hbox cnt:expand="false">
-<!-- <align>
+<!-- <align>
<okbutton cnt:hfill="0.2" cnt:halign="0.2" />
</align>
<align>
diff --git a/toolkit/workben/layout/plugin.cxx b/toolkit/workben/layout/plugin.cxx
index 65af2e510021..2734892a86d3 100644
--- a/toolkit/workben/layout/plugin.cxx
+++ b/toolkit/workben/layout/plugin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/plugin.hxx b/toolkit/workben/layout/plugin.hxx
index 862e6f6dc85a..f309416faa14 100644
--- a/toolkit/workben/layout/plugin.hxx
+++ b/toolkit/workben/layout/plugin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/recover.cxx b/toolkit/workben/layout/recover.cxx
index c776ec0bd8d2..523ba22c20ff 100644
--- a/toolkit/workben/layout/recover.cxx
+++ b/toolkit/workben/layout/recover.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/recover.hxx b/toolkit/workben/layout/recover.hxx
index de3a63c84510..82d4dc16eaab 100644
--- a/toolkit/workben/layout/recover.hxx
+++ b/toolkit/workben/layout/recover.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/recover.xml b/toolkit/workben/layout/recover.xml
index b7387b687de2..58b21173092b 100644
--- a/toolkit/workben/layout/recover.xml
+++ b/toolkit/workben/layout/recover.xml
@@ -14,7 +14,7 @@
<fixedtext id="FT_HEADER" _label="OpenOffice.org Document Restore"/>
</hbox>
<fixedline id="FL_HEADER"/>
- <!-- mockup: fixedtext multiline=true" does not work?
+ <!-- mockup: fixedtext multiline=true" does not work?
<multilineedit id="MLE_RECOVER" has_border="false" foobar="x" _text="At least one document was found that was not stored safely to the media. Uncheck any documents you do not want to restore (information may be lost)."/>
<fixedtext id="FT_RECOVER" has_border="false" multi-line="true" font-word-line-mode="true" word-break="true" _label="At least one document was found that was not stored safely to the media. Uncheck any documents you do not want to restore (information may be lost).
LINE TEST"/>
@@ -28,7 +28,7 @@ LINE TEST"/>
<fixedtext id="FT_DOC" _label="My document"/>
</hbox>
<hbox>
- <checkbox id="CB_SHEET" state="1" cnt:expand="false" scale="false" />
+ <checkbox id="CB_SHEET" state="1" cnt:expand="false" scale="false" />
<fixedimage id="FI_SHEET" cnt:expand="false" scale="false" graphic="res/commandimagelist/lc_inserttable.png" />
<fixedtext id="FT_SHEET" _label="My spreadsheet"/>
</hbox>
@@ -51,7 +51,7 @@ LINE TEST"/>
<fixedtext id="FT_PROGRESS" _label="Restore progress (idle)"/>
<hbox height="40" cnt:expand="true">
<progressbar cnt:expand="true" cnt:fill="true" id="PB_RECOVER" has_border="true" border="10" fill-color="#ccccff" background-color="#ffffff" progress-value-min="0" progress-value-max="100" progress-value="50" />
- <!-- FIXME: cannot set progress bar's height, use space as strut... !-->
+ <!-- FIXME: cannot set progress bar's height, use space as strut... !-->
<fixedtext label="" height="10" cnt:expand="false" cnt:fill="false"/>
</hbox>
</vbox>
diff --git a/toolkit/workben/layout/simple-paragraph.cxx b/toolkit/workben/layout/simple-paragraph.cxx
index 05391046862a..aade63d7b768 100644
--- a/toolkit/workben/layout/simple-paragraph.cxx
+++ b/toolkit/workben/layout/simple-paragraph.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/simple-paragraph.hxx b/toolkit/workben/layout/simple-paragraph.hxx
index d4feff479135..4af36717fe10 100644
--- a/toolkit/workben/layout/simple-paragraph.hxx
+++ b/toolkit/workben/layout/simple-paragraph.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/sortdlg.cxx b/toolkit/workben/layout/sortdlg.cxx
index 84b42f5a2656..a43662f9157a 100644
--- a/toolkit/workben/layout/sortdlg.cxx
+++ b/toolkit/workben/layout/sortdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,23 +44,23 @@
#include <layout/layout-pre.hxx>
#endif
-ScSortDlg::ScSortDlg( Window* pParent,
+ScSortDlg::ScSortDlg( Window* pParent,
const SfxItemSet* pArgSet ) :
SfxTabDialog( pParent,
ScResId( RID_SCDLG_SORT ),
pArgSet ),
- bIsHeaders ( FALSE ),
- bIsByRows ( FALSE )
+ bIsHeaders ( FALSE ),
+ bIsByRows ( FALSE )
{
#if LAYOUT_SFX_TABDIALOG_BROKEN
- AddTabPage( TP_FIELDS, ScTabPageSortFields::Create, 0 );
- AddTabPage( TP_OPTIONS, ScTabPageSortOptions::Create, 0 );
+ AddTabPage( TP_FIELDS, ScTabPageSortFields::Create, 0 );
+ AddTabPage( TP_OPTIONS, ScTabPageSortOptions::Create, 0 );
#else /* !LAYOUT_SFX_TABDIALOG_BROKEN */
String fields = rtl::OUString::createFromAscii ("fields");
AddTabPage( TP_FIELDS, fields, ScTabPageSortFields::Create, 0, FALSE, TAB_APPEND);
String options = rtl::OUString::createFromAscii ("options");
- AddTabPage( TP_OPTIONS, options, ScTabPageSortOptions::Create, 0, FALSE, TAB_APPEND);
+ AddTabPage( TP_OPTIONS, options, ScTabPageSortOptions::Create, 0, FALSE, TAB_APPEND);
#endif /* !LAYOUT_SFX_TABDIALOG_BROKEN */
FreeResource();
}
diff --git a/toolkit/workben/layout/sortdlg.hrc b/toolkit/workben/layout/sortdlg.hrc
index 0cecd39e8541..1bae1ef908a3 100644
--- a/toolkit/workben/layout/sortdlg.hrc
+++ b/toolkit/workben/layout/sortdlg.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,32 +34,32 @@
// -> SCSTR_FIELD
/*
-#define RID_SCDLG_SORT 256
-#define RID_SCPAGE_SORT_FIELDS 257
-#define RID_SCPAGE_SORT_OPTIONS 258
+#define RID_SCDLG_SORT 256
+#define RID_SCPAGE_SORT_FIELDS 257
+#define RID_SCPAGE_SORT_OPTIONS 258
*/
-#define TP_FIELDS 1
-#define TP_OPTIONS 2
+#define TP_FIELDS 1
+#define TP_OPTIONS 2
// TP_SORT_FIELDS:
#define FL_SORT1 1
#define FL_SORT2 2
#define FL_SORT3 3
-#define LB_SORT1 4
-#define LB_SORT2 5
-#define LB_SORT3 6
-#define BTN_UP1 7
-#define BTN_UP2 8
-#define BTN_UP3 9
-#define BTN_DOWN1 10
-#define BTN_DOWN2 11
-#define BTN_DOWN3 12
+#define LB_SORT1 4
+#define LB_SORT2 5
+#define LB_SORT3 6
+#define BTN_UP1 7
+#define BTN_UP2 8
+#define BTN_UP3 9
+#define BTN_DOWN1 10
+#define BTN_DOWN2 11
+#define BTN_DOWN3 12
// TP_SORT_OPTIONS:
-#define FL_DIRECTION 1
-#define LB_SORT_USER 2
-#define LB_OUTAREA 3
+#define FL_DIRECTION 1
+#define LB_SORT_USER 2
+#define LB_OUTAREA 3
#define ED_OUTAREA 4
//#define FT_AREA_LABEL 5
//#define FT_AREA 6
@@ -76,7 +76,7 @@
#define LB_LANGUAGE 17
#define FT_ALGORITHM 18
#define LB_ALGORITHM 19
-#define BTN_NATURALSORT 20
+#define BTN_NATURALSORT 20
diff --git a/toolkit/workben/layout/sortdlg.hxx b/toolkit/workben/layout/sortdlg.hxx
index c63f24989aca..637c45f5b695 100644
--- a/toolkit/workben/layout/sortdlg.hxx
+++ b/toolkit/workben/layout/sortdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,25 +47,25 @@
class ScSortDlg : public SfxTabDialog
{
public:
- ScSortDlg( Window* pParent,
+ ScSortDlg( Window* pParent,
const SfxItemSet* pArgSet );
~ScSortDlg();
- void SetHeaders( BOOL bHeaders );
- void SetByRows ( BOOL bByRows );
- BOOL GetHeaders() const;
- BOOL GetByRows () const;
+ void SetHeaders( BOOL bHeaders );
+ void SetByRows ( BOOL bByRows );
+ BOOL GetHeaders() const;
+ BOOL GetByRows () const;
private:
- BOOL bIsHeaders;
- BOOL bIsByRows;
+ BOOL bIsHeaders;
+ BOOL bIsByRows;
};
-inline void ScSortDlg::SetHeaders( BOOL bHeaders ) { bIsHeaders = bHeaders; }
-inline void ScSortDlg::SetByRows ( BOOL bByRows ) { bIsByRows = bByRows; }
-inline BOOL ScSortDlg::GetHeaders() const { return bIsHeaders; }
-inline BOOL ScSortDlg::GetByRows () const { return bIsByRows; }
+inline void ScSortDlg::SetHeaders( BOOL bHeaders ) { bIsHeaders = bHeaders; }
+inline void ScSortDlg::SetByRows ( BOOL bByRows ) { bIsByRows = bByRows; }
+inline BOOL ScSortDlg::GetHeaders() const { return bIsHeaders; }
+inline BOOL ScSortDlg::GetByRows () const { return bIsByRows; }
#if !LAYOUT_SFX_TABDIALOG_BROKEN
#include <layout/layout-post.hxx>
diff --git a/toolkit/workben/layout/sortdlg.src b/toolkit/workben/layout/sortdlg.src
index 5e855962af96..1d03abd0d19c 100644
--- a/toolkit/workben/layout/sortdlg.src
+++ b/toolkit/workben/layout/sortdlg.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/test.cxx b/toolkit/workben/layout/test.cxx
index 2a6be01f4557..e0adb6da0e0e 100644
--- a/toolkit/workben/layout/test.cxx
+++ b/toolkit/workben/layout/test.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -116,7 +116,7 @@ static uno::Reference< lang::XSingleServiceFactory > get_factory( char const *se
}
#define GET_FACTORY(x) get_factory( #x )
-
+
void LayoutTest::LoadFile( const OUString &aTestFile )
{
fprintf( stderr, "TEST: layout instance\n" );
@@ -221,7 +221,7 @@ void LayoutTest::ParseCommandLine()
if ( mFiles.size() <= 0 )
mFiles.push_back( OUString::createFromAscii( "layout.xml" ) );
-}
+}
void LayoutTest::RunEditor()
{
@@ -313,7 +313,7 @@ void LayoutTest::RunFiles()
for ( std::list< OUString >::iterator i = mFiles.begin(); i != mFiles.end(); i++ )
LoadFile( *i );
fprintf( stderr, "TEST: executing\n" );
- Execute();
+ Execute();
fprintf( stderr, "TEST: done executing\n" );
}
diff --git a/toolkit/workben/layout/tpsort.cxx b/toolkit/workben/layout/tpsort.cxx
index 95bae7c0392f..be1d256e62c3 100644
--- a/toolkit/workben/layout/tpsort.cxx
+++ b/toolkit/workben/layout/tpsort.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ static USHORT pSortRanges[] =
*
* virtual BOOL HasExchangeSupport() const; -> return TRUE;
* virtual void ActivatePage(const SfxItemSet &);
- * virtual int DeactivatePage(SfxItemSet * = 0);
+ * virtual int DeactivatePage(SfxItemSet * = 0);
*
* muss noch geaendert werden!
*/
@@ -97,49 +97,49 @@ static USHORT pSortRanges[] =
//========================================================================
// Sortierkriterien-Tabpage:
-ScTabPageSortFields::ScTabPageSortFields( Window* pParent,
+ScTabPageSortFields::ScTabPageSortFields( Window* pParent,
const SfxItemSet& rArgSet )
- : SfxTabPage ( pParent,
+ : SfxTabPage ( pParent,
ScResId( RID_SCPAGE_SORT_FIELDS ),
rArgSet ),
//
aFlSort1 ( this, ScResId( FL_SORT1 ) ),
- aLbSort1 ( this, ScResId( LB_SORT1 ) ),
+ aLbSort1 ( this, ScResId( LB_SORT1 ) ),
aBtnUp1 ( this, ScResId( BTN_UP1 ) ),
- aBtnDown1 ( this, ScResId( BTN_DOWN1 ) ),
+ aBtnDown1 ( this, ScResId( BTN_DOWN1 ) ),
//
aFlSort2 ( this, ScResId( FL_SORT2 ) ),
- aLbSort2 ( this, ScResId( LB_SORT2 ) ),
+ aLbSort2 ( this, ScResId( LB_SORT2 ) ),
aBtnUp2 ( this, ScResId( BTN_UP2 ) ),
- aBtnDown2 ( this, ScResId( BTN_DOWN2 ) ),
+ aBtnDown2 ( this, ScResId( BTN_DOWN2 ) ),
//
aFlSort3 ( this, ScResId( FL_SORT3 ) ),
- aLbSort3 ( this, ScResId( LB_SORT3 ) ),
+ aLbSort3 ( this, ScResId( LB_SORT3 ) ),
aBtnUp3 ( this, ScResId( BTN_UP3 ) ),
- aBtnDown3 ( this, ScResId( BTN_DOWN3 ) ),
+ aBtnDown3 ( this, ScResId( BTN_DOWN3 ) ),
- aStrUndefined ( ScResId( SCSTR_UNDEFINED ) ),
- aStrColumn ( ScResId( SCSTR_COLUMN ) ),
- aStrRow ( ScResId( SCSTR_ROW ) ),
+ aStrUndefined ( ScResId( SCSTR_UNDEFINED ) ),
+ aStrColumn ( ScResId( SCSTR_COLUMN ) ),
+ aStrRow ( ScResId( SCSTR_ROW ) ),
//
#if !TEST_LAYOUT
- nWhichSort ( rArgSet.GetPool()->GetWhich( SID_SORT ) ),
+ nWhichSort ( rArgSet.GetPool()->GetWhich( SID_SORT ) ),
#else /* TEST_LAYOUT */
- nWhichSort ( 0 ),
+ nWhichSort ( 0 ),
#endif /* TEST_LAYOUT */
- pDlg ( (ScSortDlg*)(GetParent()->GetParent()) ),
- pViewData ( NULL ),
+ pDlg ( (ScSortDlg*)(GetParent()->GetParent()) ),
+ pViewData ( NULL ),
#if !TEST_LAYOUT
- rSortData ( ((const ScSortItem&)
+ rSortData ( ((const ScSortItem&)
rArgSet.Get( nWhichSort )).
GetSortData() ),
#else /* TEST_LAYOUT */
- rSortData ( *new ScSortParam() ),
+ rSortData ( *new ScSortParam() ),
#endif /* TEST_LAYOUT */
- nFieldCount ( 0 ),
- bHasHeader ( FALSE ),
- bSortByRows ( FALSE )
+ nFieldCount ( 0 ),
+ bHasHeader ( FALSE ),
+ bSortByRows ( FALSE )
{
Init();
FreeResource();
@@ -176,15 +176,15 @@ void ScTabPageSortFields::Init()
aLbSort2.Clear();
aLbSort3.Clear();
- aSortLbArr[0] = &aLbSort1;
- aSortLbArr[1] = &aLbSort2;
- aSortLbArr[2] = &aLbSort3;
- aDirBtnArr[0][0] = &aBtnUp1;
- aDirBtnArr[0][1] = &aBtnDown1;
- aDirBtnArr[1][0] = &aBtnUp2;
- aDirBtnArr[1][1] = &aBtnDown2;
- aDirBtnArr[2][0] = &aBtnUp3;
- aDirBtnArr[2][1] = &aBtnDown3;
+ aSortLbArr[0] = &aLbSort1;
+ aSortLbArr[1] = &aLbSort2;
+ aSortLbArr[2] = &aLbSort3;
+ aDirBtnArr[0][0] = &aBtnUp1;
+ aDirBtnArr[0][1] = &aBtnDown1;
+ aDirBtnArr[1][0] = &aBtnUp2;
+ aDirBtnArr[1][1] = &aBtnDown2;
+ aDirBtnArr[2][0] = &aBtnUp3;
+ aDirBtnArr[2][1] = &aBtnDown3;
aFlArr[0] = &aFlSort1;
aFlArr[1] = &aFlSort2;
aFlArr[2] = &aFlSort3;
@@ -199,8 +199,8 @@ USHORT* __EXPORT ScTabPageSortFields::GetRanges()
// -----------------------------------------------------------------------
-SfxTabPage* __EXPORT ScTabPageSortFields::Create( Window* pParent,
- const SfxItemSet& rArgSet )
+SfxTabPage* __EXPORT ScTabPageSortFields::Create( Window* pParent,
+ const SfxItemSet& rArgSet )
{
return ( new ScTabPageSortFields( pParent, rArgSet ) );
}
@@ -210,7 +210,7 @@ SfxTabPage* __EXPORT ScTabPageSortFields::Create( Window* pParent,
void __EXPORT ScTabPageSortFields::Reset( const SfxItemSet& /* rArgSet */ )
{
bSortByRows = rSortData.bByRow;
- bHasHeader = rSortData.bHasHeader;
+ bHasHeader = rSortData.bHasHeader;
if ( aLbSort1.GetEntryCount() == 0 )
FillFieldLists();
@@ -227,13 +227,13 @@ void __EXPORT ScTabPageSortFields::Reset( const SfxItemSet& /* rArgSet */ )
GetFieldSelPos( rSortData.nField[i] ) );
(rSortData.bAscending[i])
- ? aDirBtnArr[i][0]->Check() // Up
- : aDirBtnArr[i][1]->Check(); // Down
+ ? aDirBtnArr[i][0]->Check() // Up
+ : aDirBtnArr[i][1]->Check(); // Down
}
else
{
aSortLbArr[i]->SelectEntryPos( 0 ); // "keiner" selektieren
- aDirBtnArr[i][0]->Check(); // Up
+ aDirBtnArr[i][0]->Check(); // Up
}
}
@@ -278,9 +278,9 @@ BOOL __EXPORT ScTabPageSortFields::FillItemSet( SfxItemSet& rArgSet )
theSortData = ((const ScSortItem*)pItem)->GetSortData();
}
- USHORT nSort1Pos = aLbSort1.GetSelectEntryPos();
- USHORT nSort2Pos = aLbSort2.GetSelectEntryPos();
- USHORT nSort3Pos = aLbSort3.GetSelectEntryPos();
+ USHORT nSort1Pos = aLbSort1.GetSelectEntryPos();
+ USHORT nSort2Pos = aLbSort2.GetSelectEntryPos();
+ USHORT nSort3Pos = aLbSort3.GetSelectEntryPos();
DBG_ASSERT( (nSort1Pos <= SC_MAXFIELDS)
&& (nSort2Pos <= SC_MAXFIELDS)
@@ -319,7 +319,7 @@ BOOL __EXPORT ScTabPageSortFields::FillItemSet( SfxItemSet& rArgSet )
theSortData.bAscending[0] = aBtnUp1.IsChecked();
theSortData.bAscending[1] = aBtnUp2.IsChecked();
theSortData.bAscending[2] = aBtnUp3.IsChecked();
- // bHasHeader ist in ScTabPageSortOptions::FillItemSet, wo es hingehoert
+ // bHasHeader ist in ScTabPageSortOptions::FillItemSet, wo es hingehoert
}
else
{
@@ -345,11 +345,11 @@ void __EXPORT ScTabPageSortFields::ActivatePage()
if ( bHasHeader != pDlg->GetHeaders()
|| bSortByRows != pDlg->GetByRows() )
{
- USHORT nCurSel1 = aLbSort1.GetSelectEntryPos();
- USHORT nCurSel2 = aLbSort2.GetSelectEntryPos();
- USHORT nCurSel3 = aLbSort3.GetSelectEntryPos();
+ USHORT nCurSel1 = aLbSort1.GetSelectEntryPos();
+ USHORT nCurSel2 = aLbSort2.GetSelectEntryPos();
+ USHORT nCurSel3 = aLbSort3.GetSelectEntryPos();
- bHasHeader = pDlg->GetHeaders();
+ bHasHeader = pDlg->GetHeaders();
bSortByRows = pDlg->GetByRows();
FillFieldLists();
aLbSort1.SelectEntryPos( nCurSel1 );
@@ -386,7 +386,7 @@ void ScTabPageSortFields::DisableField( USHORT nField )
if ( nField<=2 )
{
- aSortLbArr[nField] ->Disable();
+ aSortLbArr[nField] ->Disable();
aDirBtnArr[nField][0]->Disable();
aDirBtnArr[nField][1]->Disable();
aFlArr[nField] ->Disable();
@@ -401,7 +401,7 @@ void ScTabPageSortFields::EnableField( USHORT nField )
if ( nField<=2 )
{
- aSortLbArr[nField] ->Enable();
+ aSortLbArr[nField] ->Enable();
aDirBtnArr[nField][0]->Enable();
aDirBtnArr[nField][1]->Enable();
aFlArr[nField] ->Enable();
@@ -425,23 +425,23 @@ void ScTabPageSortFields::FillFieldLists()
aLbSort2.InsertEntry( aStrUndefined, 0 );
aLbSort3.InsertEntry( aStrUndefined, 0 );
- SCCOL nFirstSortCol = rSortData.nCol1;
- SCROW nFirstSortRow = rSortData.nRow1;
- SCTAB nTab = pViewData->GetTabNo();
- USHORT i = 1;
+ SCCOL nFirstSortCol = rSortData.nCol1;
+ SCROW nFirstSortRow = rSortData.nRow1;
+ SCTAB nTab = pViewData->GetTabNo();
+ USHORT i = 1;
if ( bSortByRows )
{
- String aFieldName;
- SCCOL nMaxCol = rSortData.nCol2;
- SCCOL col;
+ String aFieldName;
+ SCCOL nMaxCol = rSortData.nCol2;
+ SCCOL col;
for ( col=nFirstSortCol; col<=nMaxCol && i<SC_MAXFIELDS; col++ )
{
pDoc->GetString( col, nFirstSortRow, nTab, aFieldName );
if ( !bHasHeader || (aFieldName.Len() == 0) )
{
- aFieldName = aStrColumn;
+ aFieldName = aStrColumn;
aFieldName += ' ';
aFieldName += ColToAlpha( col );
}
@@ -454,16 +454,16 @@ void ScTabPageSortFields::FillFieldLists()
}
else
{
- String aFieldName;
- SCROW nMaxRow = rSortData.nRow2;
- SCROW row;
+ String aFieldName;
+ SCROW nMaxRow = rSortData.nRow2;
+ SCROW row;
for ( row=nFirstSortRow; row<=nMaxRow && i<SC_MAXFIELDS; row++ )
{
pDoc->GetString( nFirstSortCol, row, nTab, aFieldName );
if ( !bHasHeader || (aFieldName.Len() == 0) )
{
- aFieldName = aStrRow;
+ aFieldName = aStrRow;
aFieldName += ' ';
aFieldName += String::CreateFromInt32( row+1 );
}
@@ -483,8 +483,8 @@ void ScTabPageSortFields::FillFieldLists()
USHORT ScTabPageSortFields::GetFieldSelPos( SCCOLROW nField )
{
- USHORT nFieldPos = 0;
- BOOL bFound = FALSE;
+ USHORT nFieldPos = 0;
+ BOOL bFound = FALSE;
for ( USHORT n=1; n<nFieldCount && !bFound; n++ )
{
@@ -555,55 +555,55 @@ IMPL_LINK( ScTabPageSortFields, SelectHdl, ListBox *, pLb )
#define SfxTabPage( parent, id, args ) SfxTabPage( parent, "sort-options.xml", id, &args )
#endif /* ENABLE_LAYOUT */
-ScTabPageSortOptions::ScTabPageSortOptions( Window* pParent,
- const SfxItemSet& rArgSet )
+ScTabPageSortOptions::ScTabPageSortOptions( Window* pParent,
+ const SfxItemSet& rArgSet )
- : SfxTabPage ( pParent,
+ : SfxTabPage ( pParent,
ScResId( RID_SCPAGE_SORT_OPTIONS ),
rArgSet ),
//
- aBtnCase ( this, ScResId( BTN_CASESENSITIVE ) ),
- aBtnHeader ( this, ScResId( BTN_LABEL ) ),
- aBtnFormats ( this, ScResId( BTN_FORMATS ) ),
- aBtnCopyResult ( this, ScResId( BTN_COPYRESULT ) ),
- aBtnNaturalSort ( this, ScResId( BTN_NATURALSORT ) ),
- aLbOutPos ( this, ScResId( LB_OUTAREA ) ),
- aEdOutPos ( this, ScResId( ED_OUTAREA ) ),
- aBtnSortUser ( this, ScResId( BTN_SORT_USER ) ),
- aLbSortUser ( this, ScResId( LB_SORT_USER ) ),
+ aBtnCase ( this, ScResId( BTN_CASESENSITIVE ) ),
+ aBtnHeader ( this, ScResId( BTN_LABEL ) ),
+ aBtnFormats ( this, ScResId( BTN_FORMATS ) ),
+ aBtnCopyResult ( this, ScResId( BTN_COPYRESULT ) ),
+ aBtnNaturalSort ( this, ScResId( BTN_NATURALSORT ) ),
+ aLbOutPos ( this, ScResId( LB_OUTAREA ) ),
+ aEdOutPos ( this, ScResId( ED_OUTAREA ) ),
+ aBtnSortUser ( this, ScResId( BTN_SORT_USER ) ),
+ aLbSortUser ( this, ScResId( LB_SORT_USER ) ),
aFtLanguage ( this, ScResId( FT_LANGUAGE ) ),
- aLbLanguage ( this, ScResId( LB_LANGUAGE ) ),
+ aLbLanguage ( this, ScResId( LB_LANGUAGE ) ),
aFtAlgorithm ( this, ScResId( FT_ALGORITHM ) ),
- aLbAlgorithm ( this, ScResId( LB_ALGORITHM ) ),
- aLineDirection ( this, ScResId( FL_DIRECTION ) ),
- aBtnTopDown ( this, ScResId( BTN_TOP_DOWN ) ),
- aBtnLeftRight ( this, ScResId( BTN_LEFT_RIGHT ) ),
-// aFtAreaLabel ( this, ScResId( FT_AREA_LABEL ) ),
-// aFtArea ( this, ScResId( FT_AREA ) ),
+ aLbAlgorithm ( this, ScResId( LB_ALGORITHM ) ),
+ aLineDirection ( this, ScResId( FL_DIRECTION ) ),
+ aBtnTopDown ( this, ScResId( BTN_TOP_DOWN ) ),
+ aBtnLeftRight ( this, ScResId( BTN_LEFT_RIGHT ) ),
+// aFtAreaLabel ( this, ScResId( FT_AREA_LABEL ) ),
+// aFtArea ( this, ScResId( FT_AREA ) ),
//
#if ENABLE_LAYOUT
#undef this
#undef ScResId
#define ScResId(x) this, #x
#endif /* ENABLE_LAYOUT */
- aStrRowLabel ( ScResId( STR_ROW_LABEL ) ),
- aStrColLabel ( ScResId( STR_COL_LABEL ) ),
- aStrUndefined ( ScResId( SCSTR_UNDEFINED ) ),
- aStrNoName ( ScGlobal::GetRscString(STR_DB_NONAME) ),
+ aStrRowLabel ( ScResId( STR_ROW_LABEL ) ),
+ aStrColLabel ( ScResId( STR_COL_LABEL ) ),
+ aStrUndefined ( ScResId( SCSTR_UNDEFINED ) ),
+ aStrNoName ( ScGlobal::GetRscString(STR_DB_NONAME) ),
//
#if !TEST_LAYOUT
- nWhichSort ( rArgSet.GetPool()->GetWhich( SID_SORT ) ),
- rSortData ( ((const ScSortItem&)
+ nWhichSort ( rArgSet.GetPool()->GetWhich( SID_SORT ) ),
+ rSortData ( ((const ScSortItem&)
rArgSet.Get( nWhichSort )).GetSortData() ),
#else /* TEST_LAYOUT */
- nWhichSort ( 0 ),
- rSortData ( *new ScSortParam() ),
+ nWhichSort ( 0 ),
+ rSortData ( *new ScSortParam() ),
#endif /* TEST_LAYOUT */
- pViewData ( NULL ),
- pDoc ( NULL ),
- pDlg ( (ScSortDlg*)(GetParent() ? GetParent()->GetParent() : 0 ) ),
- pColRes ( NULL ),
- pColWrap ( NULL )
+ pViewData ( NULL ),
+ pDoc ( NULL ),
+ pDlg ( (ScSortDlg*)(GetParent() ? GetParent()->GetParent() : 0 ) ),
+ pColRes ( NULL ),
+ pColWrap ( NULL )
{
#if TEST_LAYOUT
(void) rArgSet;
@@ -625,49 +625,49 @@ __EXPORT ScTabPageSortOptions::~ScTabPageSortOptions()
#endif /* !TEST_LAYOUT */
delete pColRes;
- delete pColWrap; //! not if from document
+ delete pColWrap; //! not if from document
}
// -----------------------------------------------------------------------
void ScTabPageSortOptions::Init()
{
-// aStrAreaLabel = aFtAreaLabel.GetText();
-// aStrAreaLabel.Append( (sal_Unicode) ' ' );
+// aStrAreaLabel = aFtAreaLabel.GetText();
+// aStrAreaLabel.Append( (sal_Unicode) ' ' );
- // CollatorRessource has user-visible names for sort algorithms
+ // CollatorRessource has user-visible names for sort algorithms
pColRes = new CollatorRessource();
- //! use CollatorWrapper from document?
+ //! use CollatorWrapper from document?
pColWrap = new CollatorWrapper( comphelper::getProcessServiceFactory() );
#if !TEST_LAYOUT
- const ScSortItem& rSortItem = (const ScSortItem&)
+ const ScSortItem& rSortItem = (const ScSortItem&)
GetItemSet().Get( nWhichSort );
#endif /* !TEST_LAYOUT */
- aLbOutPos.SetSelectHdl ( LINK( this, ScTabPageSortOptions, SelOutPosHdl ) );
+ aLbOutPos.SetSelectHdl ( LINK( this, ScTabPageSortOptions, SelOutPosHdl ) );
aBtnCopyResult.SetClickHdl( LINK( this, ScTabPageSortOptions, EnableHdl ) );
aBtnSortUser.SetClickHdl ( LINK( this, ScTabPageSortOptions, EnableHdl ) );
- aBtnTopDown.SetClickHdl ( LINK( this, ScTabPageSortOptions, SortDirHdl ) );
+ aBtnTopDown.SetClickHdl ( LINK( this, ScTabPageSortOptions, SortDirHdl ) );
aBtnLeftRight.SetClickHdl ( LINK( this, ScTabPageSortOptions, SortDirHdl ) );
aLbLanguage.SetSelectHdl ( LINK( this, ScTabPageSortOptions, FillAlgorHdl ) );
#if !TEST_LAYOUT
pViewData = rSortItem.GetViewData();
#endif /* TEST_LAYOUT */
- pDoc = pViewData ? pViewData->GetDocument() : NULL;
+ pDoc = pViewData ? pViewData->GetDocument() : NULL;
DBG_ASSERT( pViewData, "ViewData not found! :-/" );
#if !TEST_LAYOUT
if ( pViewData && pDoc )
{
- String theArea;
- ScDBCollection* pDBColl = pDoc->GetDBCollection();
- String theDbArea;
- String theDbName = aStrNoName;
- const SCTAB nCurTab = pViewData->GetTabNo();
+ String theArea;
+ ScDBCollection* pDBColl = pDoc->GetDBCollection();
+ String theDbArea;
+ String theDbName = aStrNoName;
+ const SCTAB nCurTab = pViewData->GetTabNo();
const ScAddress::Convention eConv = pDoc->GetAddressConvention();
#endif /* !TEST_LAYOUT */
@@ -730,7 +730,7 @@ void ScTabPageSortOptions::Init()
FillUserSortListBox();
- // get available languages
+ // get available languages
aLbLanguage.SetLanguageList( LANG_LIST_ALL | LANG_LIST_ONLY_KNOWN, FALSE );
aLbLanguage.InsertLanguage( LANGUAGE_SYSTEM );
@@ -749,8 +749,8 @@ USHORT* __EXPORT ScTabPageSortOptions::GetRanges()
#undef SfxTabPage
#endif /* ENABLE_LAYOUT */
SfxTabPage* __EXPORT ScTabPageSortOptions::Create(
- Window* pParent,
- const SfxItemSet& rArgSet )
+ Window* pParent,
+ const SfxItemSet& rArgSet )
{
return ( new ScTabPageSortOptions( pParent, rArgSet ) );
}
@@ -772,10 +772,10 @@ void __EXPORT ScTabPageSortOptions::Reset( const SfxItemSet& /* rArgSet */ )
aLbSortUser.SelectEntryPos( 0 );
}
- aBtnCase.Check ( rSortData.bCaseSens );
- aBtnFormats.Check ( rSortData.bIncludePattern );
- aBtnHeader.Check ( rSortData.bHasHeader );
- aBtnNaturalSort.Check ( rSortData.bNaturalSort );
+ aBtnCase.Check ( rSortData.bCaseSens );
+ aBtnFormats.Check ( rSortData.bIncludePattern );
+ aBtnHeader.Check ( rSortData.bHasHeader );
+ aBtnNaturalSort.Check ( rSortData.bNaturalSort );
if ( rSortData.bByRow )
{
@@ -792,7 +792,7 @@ void __EXPORT ScTabPageSortOptions::Reset( const SfxItemSet& /* rArgSet */ )
if ( eLang == LANGUAGE_DONTKNOW )
eLang = LANGUAGE_SYSTEM;
aLbLanguage.SelectLanguage( eLang );
- FillAlgorHdl( &aLbLanguage ); // get algorithms, select default
+ FillAlgorHdl( &aLbLanguage ); // get algorithms, select default
if ( rSortData.aCollatorAlgorithm.Len() )
aLbAlgorithm.SelectEntry( pColRes->GetTranslation( rSortData.aCollatorAlgorithm ) );
@@ -838,17 +838,17 @@ BOOL __EXPORT ScTabPageSortOptions::FillItemSet( SfxItemSet& rArgSet )
theSortData = ((const ScSortItem*)pItem)->GetSortData();
}
- theSortData.bByRow = aBtnTopDown.IsChecked();
- theSortData.bHasHeader = aBtnHeader.IsChecked();
- theSortData.bCaseSens = aBtnCase.IsChecked();
- theSortData.bNaturalSort = aBtnNaturalSort.IsChecked();
+ theSortData.bByRow = aBtnTopDown.IsChecked();
+ theSortData.bHasHeader = aBtnHeader.IsChecked();
+ theSortData.bCaseSens = aBtnCase.IsChecked();
+ theSortData.bNaturalSort = aBtnNaturalSort.IsChecked();
theSortData.bIncludePattern = aBtnFormats.IsChecked();
- theSortData.bInplace = !aBtnCopyResult.IsChecked();
- theSortData.nDestCol = theOutPos.Col();
- theSortData.nDestRow = theOutPos.Row();
- theSortData.nDestTab = theOutPos.Tab();
- theSortData.bUserDef = aBtnSortUser.IsChecked();
- theSortData.nUserIndex = (aBtnSortUser.IsChecked())
+ theSortData.bInplace = !aBtnCopyResult.IsChecked();
+ theSortData.nDestCol = theOutPos.Col();
+ theSortData.nDestRow = theOutPos.Row();
+ theSortData.nDestTab = theOutPos.Tab();
+ theSortData.bUserDef = aBtnSortUser.IsChecked();
+ theSortData.nUserIndex = (aBtnSortUser.IsChecked())
? aLbSortUser.GetSelectEntryPos()
: 0;
@@ -907,17 +907,17 @@ int __EXPORT ScTabPageSortOptions::DeactivatePage( SfxItemSet* pSetP )
if ( aBtnCopyResult.IsChecked() )
{
- String thePosStr = aEdOutPos.GetText();
- ScAddress thePos;
- xub_StrLen nColonPos = thePosStr.Search( ':' );
+ String thePosStr = aEdOutPos.GetText();
+ ScAddress thePos;
+ xub_StrLen nColonPos = thePosStr.Search( ':' );
if ( STRING_NOTFOUND != nColonPos )
thePosStr.Erase( nColonPos );
if ( pViewData )
{
- // visible table is default for input without table
- // must be changed to GetRefTabNo when sorting has RefInput!
+ // visible table is default for input without table
+ // must be changed to GetRefTabNo when sorting has RefInput!
thePos.SetTab( pViewData->GetTabNo() );
}
@@ -1009,8 +1009,8 @@ IMPL_LINK( ScTabPageSortOptions, SelOutPosHdl, ListBox *, pLb )
{
if ( pLb == &aLbOutPos )
{
- String aString;
- USHORT nSelPos = aLbOutPos.GetSelectEntryPos();
+ String aString;
+ USHORT nSelPos = aLbOutPos.GetSelectEntryPos();
if ( nSelPos > 0 )
aString = *(String*)aLbOutPos.GetEntryData( nSelPos );
@@ -1041,15 +1041,15 @@ void __EXPORT ScTabPageSortOptions::EdOutPosModHdl( Edit* pEd )
{
if ( pEd == &aEdOutPos )
{
- String theCurPosStr = aEdOutPos.GetText();
- USHORT nResult = ScAddress().Parse( theCurPosStr, pDoc, pDoc->GetAddressConvention() );
+ String theCurPosStr = aEdOutPos.GetText();
+ USHORT nResult = ScAddress().Parse( theCurPosStr, pDoc, pDoc->GetAddressConvention() );
if ( SCA_VALID == (nResult & SCA_VALID) )
{
- String* pStr = NULL;
- BOOL bFound = FALSE;
- USHORT i = 0;
- USHORT nCount = aLbOutPos.GetEntryCount();
+ String* pStr = NULL;
+ BOOL bFound = FALSE;
+ USHORT i = 0;
+ USHORT nCount = aLbOutPos.GetEntryCount();
for ( i=2; i<nCount && !bFound; i++ )
{
@@ -1075,11 +1075,11 @@ IMPL_LINK( ScTabPageSortOptions, FillAlgorHdl, void *, EMPTYARG )
LanguageType eLang = aLbLanguage.GetSelectLanguage();
if ( eLang == LANGUAGE_SYSTEM )
{
- // for LANGUAGE_SYSTEM no algorithm can be selected because
- // it wouldn't necessarily exist for other languages
- // -> leave list box empty if LANGUAGE_SYSTEM is selected
+ // for LANGUAGE_SYSTEM no algorithm can be selected because
+ // it wouldn't necessarily exist for other languages
+ // -> leave list box empty if LANGUAGE_SYSTEM is selected
aFtAlgorithm.Enable( FALSE ); // nothing to select
- aLbAlgorithm.Enable( FALSE ); // nothing to select
+ aLbAlgorithm.Enable( FALSE ); // nothing to select
}
else
{
@@ -1094,9 +1094,9 @@ IMPL_LINK( ScTabPageSortOptions, FillAlgorHdl, void *, EMPTYARG )
String sUser = pColRes->GetTranslation( sAlg );
aLbAlgorithm.InsertEntry( sUser, LISTBOX_APPEND );
}
- aLbAlgorithm.SelectEntryPos( 0 ); // first entry is default
+ aLbAlgorithm.SelectEntryPos( 0 ); // first entry is default
aFtAlgorithm.Enable( nCount > 1 ); // enable only if there is a choice
- aLbAlgorithm.Enable( nCount > 1 ); // enable only if there is a choice
+ aLbAlgorithm.Enable( nCount > 1 ); // enable only if there is a choice
}
aLbAlgorithm.SetUpdateMode( TRUE );
diff --git a/toolkit/workben/layout/tpsort.hxx b/toolkit/workben/layout/tpsort.hxx
index 64e4f4b6de42..bd3d0a592358 100644
--- a/toolkit/workben/layout/tpsort.hxx
+++ b/toolkit/workben/layout/tpsort.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@
//------------------------------------------------------------------------
// +1 because one field is reserved for the "- undefined -" entry
-#define SC_MAXFIELDS MAXCOLCOUNT+1
+#define SC_MAXFIELDS MAXCOLCOUNT+1
class ScViewData;
class ScSortDlg;
@@ -56,66 +56,66 @@ struct ScSortParam;
class ScTabPageSortFields : public SfxTabPage
{
public:
- ScTabPageSortFields( Window* pParent,
- const SfxItemSet& rArgSet );
+ ScTabPageSortFields( Window* pParent,
+ const SfxItemSet& rArgSet );
~ScTabPageSortFields();
- static SfxTabPage* Create ( Window* pParent,
- const SfxItemSet& rArgSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
- virtual void Reset ( const SfxItemSet& rArgSet );
+ static SfxTabPage* Create ( Window* pParent,
+ const SfxItemSet& rArgSet );
+ static USHORT* GetRanges ();
+ virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ virtual void Reset ( const SfxItemSet& rArgSet );
protected:
// fuer Datenaustausch (sollte noch umgestellt werden!)
-// virtual void ActivatePage ( const SfxItemSet& rSet );
+// virtual void ActivatePage ( const SfxItemSet& rSet );
using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage;
- virtual void ActivatePage ();
- virtual int DeactivatePage ( SfxItemSet* pSet = 0);
+ virtual void ActivatePage ();
+ virtual int DeactivatePage ( SfxItemSet* pSet = 0);
private:
FixedLine aFlSort1;
- ListBox aLbSort1;
- RadioButton aBtnUp1;
- RadioButton aBtnDown1;
+ ListBox aLbSort1;
+ RadioButton aBtnUp1;
+ RadioButton aBtnDown1;
FixedLine aFlSort2;
- ListBox aLbSort2;
- RadioButton aBtnUp2;
- RadioButton aBtnDown2;
+ ListBox aLbSort2;
+ RadioButton aBtnUp2;
+ RadioButton aBtnDown2;
FixedLine aFlSort3;
- ListBox aLbSort3;
- RadioButton aBtnUp3;
- RadioButton aBtnDown3;
-
- String aStrUndefined;
- String aStrColumn;
- String aStrRow;
-
- const USHORT nWhichSort;
- ScSortDlg* pDlg;
- ScViewData* pViewData;
- const ScSortParam& rSortData;
- SCCOLROW nFieldArr[SC_MAXFIELDS];
- USHORT nFieldCount;
- SCCOL nFirstCol;
- SCROW nFirstRow;
- BOOL bHasHeader;
- BOOL bSortByRows;
-
- ListBox* aSortLbArr[3];
- RadioButton* aDirBtnArr[3][2];
+ ListBox aLbSort3;
+ RadioButton aBtnUp3;
+ RadioButton aBtnDown3;
+
+ String aStrUndefined;
+ String aStrColumn;
+ String aStrRow;
+
+ const USHORT nWhichSort;
+ ScSortDlg* pDlg;
+ ScViewData* pViewData;
+ const ScSortParam& rSortData;
+ SCCOLROW nFieldArr[SC_MAXFIELDS];
+ USHORT nFieldCount;
+ SCCOL nFirstCol;
+ SCROW nFirstRow;
+ BOOL bHasHeader;
+ BOOL bSortByRows;
+
+ ListBox* aSortLbArr[3];
+ RadioButton* aDirBtnArr[3][2];
FixedLine* aFlArr[3];
#ifdef _TPSORT_CXX
private:
- void Init ();
- void DisableField ( USHORT nField );
- void EnableField ( USHORT nField );
- void FillFieldLists ();
- USHORT GetFieldSelPos ( SCCOLROW nField );
+ void Init ();
+ void DisableField ( USHORT nField );
+ void EnableField ( USHORT nField );
+ void FillFieldLists ();
+ USHORT GetFieldSelPos ( SCCOLROW nField );
// Handler ------------------------
DECL_LINK( SelectHdl, ListBox * );
@@ -136,25 +136,25 @@ class CollatorWrapper;
class ScTabPageSortOptions : public SfxTabPage
{
public:
- ScTabPageSortOptions( Window* pParent,
- const SfxItemSet& rArgSet );
+ ScTabPageSortOptions( Window* pParent,
+ const SfxItemSet& rArgSet );
~ScTabPageSortOptions();
#undef SfxTabPage
#define SfxTabPage ::SfxTabPage
- static SfxTabPage* Create ( Window* pParent,
- const SfxItemSet& rArgSet );
- static USHORT* GetRanges ();
- virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
- virtual void Reset ( const SfxItemSet& rArgSet );
+ static SfxTabPage* Create ( Window* pParent,
+ const SfxItemSet& rArgSet );
+ static USHORT* GetRanges ();
+ virtual BOOL FillItemSet ( SfxItemSet& rArgSet );
+ virtual void Reset ( const SfxItemSet& rArgSet );
protected:
// fuer Datenaustausch (sollte noch umgestellt werden!)
-// virtual void ActivatePage ( const SfxItemSet& rSet );
+// virtual void ActivatePage ( const SfxItemSet& rSet );
using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage;
- virtual void ActivatePage ();
- virtual int DeactivatePage ( SfxItemSet* pSet = 0);
+ virtual void ActivatePage ();
+ virtual int DeactivatePage ( SfxItemSet* pSet = 0);
private:
@@ -163,7 +163,7 @@ private:
CheckBox aBtnFormats;
CheckBox aBtnCopyResult;
- CheckBox aBtnNaturalSort;
+ CheckBox aBtnNaturalSort;
ListBox aLbOutPos;
Edit aEdOutPos;
@@ -187,26 +187,26 @@ private:
String aStrNoName;
String aStrAreaLabel;
- const USHORT nWhichSort;
- const ScSortParam& rSortData;
- ScViewData* pViewData;
- ScDocument* pDoc;
- ScSortDlg* pDlg;
- ScAddress theOutPos;
+ const USHORT nWhichSort;
+ const ScSortParam& rSortData;
+ ScViewData* pViewData;
+ ScDocument* pDoc;
+ ScSortDlg* pDlg;
+ ScAddress theOutPos;
- CollatorRessource* pColRes;
- CollatorWrapper* pColWrap;
+ CollatorRessource* pColRes;
+ CollatorWrapper* pColWrap;
#ifdef _TPSORT_CXX
private:
- void Init ();
- void FillUserSortListBox ();
- void FillOutPosList ();
+ void Init ();
+ void FillUserSortListBox ();
+ void FillOutPosList ();
// Handler ------------------------
DECL_LINK( EnableHdl, CheckBox * );
DECL_LINK( SelOutPosHdl, ListBox * );
- void EdOutPosModHdl ( Edit* pEd );
+ void EdOutPosModHdl ( Edit* pEd );
DECL_LINK( SortDirHdl, RadioButton * );
DECL_LINK( FillAlgorHdl, void * );
#endif
diff --git a/toolkit/workben/layout/uno.hxx b/toolkit/workben/layout/uno.hxx
index d89024ff8468..99f2b570672a 100644
--- a/toolkit/workben/layout/uno.hxx
+++ b/toolkit/workben/layout/uno.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/wordcountdialog.cxx b/toolkit/workben/layout/wordcountdialog.cxx
index da0083e09456..f14f0c8dfbab 100644
--- a/toolkit/workben/layout/wordcountdialog.cxx
+++ b/toolkit/workben/layout/wordcountdialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/wordcountdialog.hxx b/toolkit/workben/layout/wordcountdialog.hxx
index 5c6dbabea04f..3d640caac2dd 100644
--- a/toolkit/workben/layout/wordcountdialog.hxx
+++ b/toolkit/workben/layout/wordcountdialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ class SwWordCountDialog : public SfxModalDialog
OKButton aOK;
HelpButton aHelp;
-public:
+public:
SwWordCountDialog(Window* pParent);
~SwWordCountDialog();
diff --git a/toolkit/workben/layout/zoom.cxx b/toolkit/workben/layout/zoom.cxx
index 0fa756a33f03..9ab3cce86d5e 100644
--- a/toolkit/workben/layout/zoom.cxx
+++ b/toolkit/workben/layout/zoom.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -118,7 +118,7 @@ static USHORT pRanges[] =
0
};
-#define SPECIAL_FACTOR ((USHORT)0xFFFF)
+#define SPECIAL_FACTOR ((USHORT)0xFFFF)
// class SvxZoomDialog ---------------------------------------------------
@@ -270,13 +270,13 @@ SvxZoomDialog::SvxZoomDialog( Window* pParent, const SfxItemSet& rCoreSet ) :
aBottomFl ( this, SVX_RES( FL_BOTTOM ) ),
aOKBtn ( this, SVX_RES( BTN_ZOOM_OK ) ),
aCancelBtn ( this, SVX_RES( BTN_ZOOM_CANCEL ) ),
- aHelpBtn ( this, SVX_RES( BTN_ZOOM_HELP ) ),
+ aHelpBtn ( this, SVX_RES( BTN_ZOOM_HELP ) ),
#if !TEST_LAYOUT
- rSet ( rCoreSet ),
+ rSet ( rCoreSet ),
#endif /* !TEST_LAYOUT */
pOutSet ( NULL ),
- bModified ( FALSE )
+ bModified ( FALSE )
{
#if ENABLE_LAYOUT
diff --git a/toolkit/workben/layout/zoom.hrc b/toolkit/workben/layout/zoom.hrc
index 49412ad085f0..0fb3a8afc6c5 100644
--- a/toolkit/workben/layout/zoom.hrc
+++ b/toolkit/workben/layout/zoom.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/toolkit/workben/layout/zoom.hxx b/toolkit/workben/layout/zoom.hxx
index 0fab50eb1ced..44694b1c9924 100644
--- a/toolkit/workben/layout/zoom.hxx
+++ b/toolkit/workben/layout/zoom.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,9 +38,9 @@
// define ----------------------------------------------------------------
/* CHINA001
-#define ZOOMBTN_OPTIMAL ((USHORT)0x0001)
-#define ZOOMBTN_PAGEWIDTH ((USHORT)0x0002)
-#define ZOOMBTN_WHOLEPAGE ((USHORT)0x0004)
+#define ZOOMBTN_OPTIMAL ((USHORT)0x0001)
+#define ZOOMBTN_PAGEWIDTH ((USHORT)0x0002)
+#define ZOOMBTN_WHOLEPAGE ((USHORT)0x0004)
*/
#include "zoom_def.hxx"
// class SvxZoomDialog ---------------------------------------------------
@@ -51,7 +51,7 @@
Mit diesem Dialog wird ein Zoom-Faktor eingestellt.
[Items]
- SvxZoomItem <SID_ATTR_ZOOM>
+ SvxZoomItem <SID_ATTR_ZOOM>
*/
#include <layout/layout-pre.hxx>
@@ -62,10 +62,10 @@ private:
FixedLine aZoomFl;
RadioButton aOptimalBtn;
RadioButton aWholePageBtn;
- RadioButton aPageWidthBtn;
+ RadioButton aPageWidthBtn;
RadioButton a100Btn;
RadioButton aUserBtn;
- MetricField aUserEdit;
+ MetricField aUserEdit;
FixedLine aViewLayoutFl;
RadioButton aAutomaticBtn;
@@ -76,14 +76,14 @@ private:
FixedLine aBottomFl;
OKButton aOKBtn;
- CancelButton aCancelBtn;
- HelpButton aHelpBtn;
+ CancelButton aCancelBtn;
+ HelpButton aHelpBtn;
#if !TEST_LAYOUT
- const SfxItemSet& rSet;
+ const SfxItemSet& rSet;
#endif /* !TEST_LAYOUT */
- SfxItemSet* pOutSet;
- BOOL bModified;
+ SfxItemSet* pOutSet;
+ BOOL bModified;
#ifdef _SVX_ZOOM_CXX
DECL_LINK( UserHdl, RadioButton* );
@@ -102,16 +102,16 @@ public:
#endif /* !TEST_LAYOUT */
~SvxZoomDialog();
- static USHORT* GetRanges();
- const SfxItemSet* GetOutputItemSet() const { return pOutSet; }
+ static USHORT* GetRanges();
+ const SfxItemSet* GetOutputItemSet() const { return pOutSet; }
- USHORT GetFactor() const;
- void SetFactor( USHORT nNewFactor, USHORT nBtnId = 0 );
+ USHORT GetFactor() const;
+ void SetFactor( USHORT nNewFactor, USHORT nBtnId = 0 );
- void SetButtonText( USHORT nBtnId, const String& aNewTxt );
- void HideButton( USHORT nBtnId );
- void SetLimits( USHORT nMin, USHORT nMax );
- void SetSpinSize( USHORT nNewSpin );
+ void SetButtonText( USHORT nBtnId, const String& aNewTxt );
+ void HideButton( USHORT nBtnId );
+ void SetLimits( USHORT nMin, USHORT nMax );
+ void SetSpinSize( USHORT nNewSpin );
};
#include <layout/layout-post.hxx>
diff --git a/toolkit/workben/layout/zoom_def.hxx b/toolkit/workben/layout/zoom_def.hxx
index 84b2db945a6e..9226384275fd 100644
--- a/toolkit/workben/layout/zoom_def.hxx
+++ b/toolkit/workben/layout/zoom_def.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,9 +29,9 @@
#ifndef _SVX_ZOOM_DEF_HXX
#define _SVX_ZOOM_DEF_HXX
-#define ZOOMBTN_OPTIMAL ((USHORT)0x0001)
-#define ZOOMBTN_PAGEWIDTH ((USHORT)0x0002)
-#define ZOOMBTN_WHOLEPAGE ((USHORT)0x0004)
+#define ZOOMBTN_OPTIMAL ((USHORT)0x0001)
+#define ZOOMBTN_PAGEWIDTH ((USHORT)0x0002)
+#define ZOOMBTN_WHOLEPAGE ((USHORT)0x0004)
#endif
diff --git a/toolkit/workben/unodialog.cxx b/toolkit/workben/unodialog.cxx
index d2203bba1384..b53e0e59301a 100644
--- a/toolkit/workben/unodialog.cxx
+++ b/toolkit/workben/unodialog.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
-#include <svtools/unoiface.hxx> // InitExtToolkit
+#include <svtools/unoiface.hxx> // InitExtToolkit
#include <comphelper/processfactory.hxx>
#include <cppuhelper/servicefactory.hxx>
@@ -70,7 +70,7 @@ using namespace ::com::sun::star::lang;
{
::rtl::OUString localRegistry = ::comphelper::getPathToUserRegistry();
::rtl::OUString systemRegistry = ::comphelper::getPathToSystemRegistry();
-
+
Reference< XSimpleRegistry > xLocalRegistry( ::cppu::createSimpleRegistry() );
Reference< XSimpleRegistry > xSystemRegistry( ::cppu::createSimpleRegistry() );
if ( xLocalRegistry.is() && (localRegistry.getLength() > 0) )
@@ -82,14 +82,14 @@ using namespace ::com::sun::star::lang;
catch ( InvalidRegistryException& )
{
}
-
+
if ( !xLocalRegistry->isValid() )
xLocalRegistry->open(localRegistry, sal_True, sal_True);
}
-
+
if ( xSystemRegistry.is() && (systemRegistry.getLength() > 0) )
xSystemRegistry->open( systemRegistry, sal_True, sal_False);
-
+
if ( (xLocalRegistry.is() && xLocalRegistry->isValid()) &&
(xSystemRegistry.is() && xSystemRegistry->isValid()) )
{
@@ -99,7 +99,7 @@ using namespace ::com::sun::star::lang;
seqAnys[1] <<= xSystemRegistry ;
Reference< XInitialization > xInit( xReg, UNO_QUERY );
xInit->initialize( seqAnys );
-
+
Reference< XComponentContext > xContext( ::cppu::bootstrap_InitialComponentContext( xReg ) );
return Reference< XMultiServiceFactory >( xContext->getServiceManager(), UNO_QUERY );
}
@@ -107,7 +107,7 @@ using namespace ::com::sun::star::lang;
catch( ::com::sun::star::uno::Exception& )
{
}
-
+
return ::cppu::createServiceFactory();
}
@@ -147,7 +147,7 @@ private:
public:
MyWin() : WorkWindow( NULL, WB_APP|WB_STDWORK ) {;}
void Paint( const Rectangle& r );
- void SetXView( uno::Reference< awt::XView > xV ) { mxView = xV; }
+ void SetXView( uno::Reference< awt::XView > xV ) { mxView = xV; }
};
@@ -156,7 +156,7 @@ public:
void Main( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMSF )
{
::comphelper::setProcessServiceFactory( xMSF );
-
+
//uno::Reference< awt::XToolkit> xToolkit( xMSF->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.ExtToolkit" ) ) ), uno::UNO_QUERY );
uno::Reference< awt::XToolkit> xToolkit( xMSF->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.Toolkit" ) ) ), uno::UNO_QUERY );
@@ -243,7 +243,7 @@ void Main( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMult
Reference< XComponent > xT( xToolkit, uno::UNO_QUERY );
xT->dispose();
-
+
Reference< beans::XPropertySet > xProps( ::comphelper::getProcessServiceFactory(), UNO_QUERY );
if (xProps.is())
{
diff --git a/tools/bootstrp/addexes/replace.cxx b/tools/bootstrp/addexes/replace.cxx
index 761d260a03b5..ec079ea55c8e 100644
--- a/tools/bootstrp/addexes/replace.cxx
+++ b/tools/bootstrp/addexes/replace.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,11 +59,11 @@ int _cdecl main( int argc, char *argv[] )
ByteString aUpperText( aText );
aUpperText.ToUpperAscii();
-
+
ULONG nIndex;
aSearch.ToUpperAscii();
-
+
nIndex = aUpperText.Search( aSearch.GetBuffer(), 0);
while ( nIndex != STRING_NOTFOUND )
{
diff --git a/tools/bootstrp/addexes2/mkfilt.cxx b/tools/bootstrp/addexes2/mkfilt.cxx
index 77bc9d5fcd34..0ee927e4c693 100644
--- a/tools/bootstrp/addexes2/mkfilt.cxx
+++ b/tools/bootstrp/addexes2/mkfilt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,14 +37,14 @@
class TextFilter
{
protected:
- FILE *pIn, *pOut;
- virtual void Filter();
+ FILE *pIn, *pOut;
+ virtual void Filter();
public:
- TextFilter( ByteString aInFile = "stdin",
+ TextFilter( ByteString aInFile = "stdin",
ByteString aOutFile = "stdout" );
- virtual ~TextFilter();
+ virtual ~TextFilter();
- virtual void Execute();
+ virtual void Execute();
};
TextFilter::TextFilter( ByteString aInFile, ByteString aOutFile )
@@ -87,11 +87,11 @@ class ByteStringList;
class MkLine
{
public:
- ByteString aLine;
- ByteStringList* pPrivateTnrLst;
- BOOL bOut;
- BOOL bHier;
-
+ ByteString aLine;
+ ByteStringList* pPrivateTnrLst;
+ BOOL bOut;
+ BOOL bHier;
+
MkLine();
};
@@ -106,11 +106,11 @@ DECLARE_LIST( ByteStringList, MkLine * )
class MkFilter : public TextFilter
{
- static ByteString aTnr;
- ByteStringList *pLst;
- ByteStringList *pTnrLst;
+ static ByteString aTnr;
+ ByteStringList *pLst;
+ ByteStringList *pTnrLst;
protected:
- virtual void Filter();
+ virtual void Filter();
public:
MkFilter( ByteString aInFile = "stdin", ByteString aOutFile = "stdout");
~MkFilter();
@@ -142,7 +142,7 @@ void MkFilter::Filter()
//fprintf(stderr, "aLine :%s\n", aLine.GetBuffer());
if ( aLine.Search("mkfilter1" ) != STRING_NOTFOUND )
{
- // Zeilen unterdruecken
+ // Zeilen unterdruecken
fprintf( stderr, "mkfilter1\n" );
nState = 0;
}
@@ -153,7 +153,7 @@ void MkFilter::Filter()
nState = 1;
}
;
-
+
if ( nState == 0 )
{
fprintf( stderr, "." );
@@ -161,7 +161,7 @@ void MkFilter::Filter()
ByteString *pStr = new ByteString( aLineBuf );
pMkLine->aLine = *pStr;
pMkLine->bOut = FALSE;
-
+
pLst->Insert( pMkLine, LIST_APPEND );
}
else if ( nState == 1 )
@@ -186,16 +186,16 @@ void MkFilter::Filter()
ByteString *pStr = new ByteString( aLineBuf );
pMkLine->aLine = *pStr;
pMkLine->bOut = FALSE;
-
+
if ( bInTnrList )
pTnrLst->Insert( pMkLine, LIST_APPEND );
}
else {
/* Zeilen ignorieren */;
}
- } // End Of File
+ } // End Of File
fprintf( stderr, "\n" );
-
+
// das File wieder ausgegeben
ULONG nLines = pLst->Count();
for ( ULONG j=0; j<nLines; j++ )
@@ -221,7 +221,7 @@ void MkFilter::Filter()
pLine->pPrivateTnrLst = NULL;
}
if ( pLine->bOut )
- fputs(pLine->aLine.GetBuffer(), pOut );
+ fputs(pLine->aLine.GetBuffer(), pOut );
}
fprintf( stderr, "\n" );
}
diff --git a/tools/bootstrp/appdef.cxx b/tools/bootstrp/appdef.cxx
index e411ea022d3a..ebdb96e813ca 100644
--- a/tools/bootstrp/appdef.cxx
+++ b/tools/bootstrp/appdef.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/bootstrp/command.cxx b/tools/bootstrp/command.cxx
index 138b5ffcffaf..89ee09422833 100644
--- a/tools/bootstrp/command.cxx
+++ b/tools/bootstrp/command.cxx
@@ -1,8 +1,8 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
+/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@
#pragma warning (pop)
#endif
-//#define MH_TEST2 1 // fuers direkte Testen
+//#define MH_TEST2 1 // fuers direkte Testen
#if defined(WNT) || defined(OS2)
#ifdef _MSC_VER
@@ -78,7 +78,7 @@
#else
#include <wait.h>
#endif
-#define P_WAIT 1 // erstmal einen dummz
+#define P_WAIT 1 // erstmal einen dummz
#endif
#if defined WNT
@@ -86,10 +86,10 @@
#endif
#if defined(WNT) || defined(OS2)
-#define cPathSeperator ';'
+#define cPathSeperator ';'
#endif
#ifdef UNX
-#define cPathSeperator ':'
+#define cPathSeperator ':'
#endif
/*****************************************************************************/
@@ -471,19 +471,19 @@ CCommand::operator int()
switch ( errno )
{
- case E2BIG :
+ case E2BIG :
nError = COMMAND_TOOBIG;
break;
- case EINVAL :
+ case EINVAL :
nError = COMMAND_INVALID;
break;
- case ENOENT:
+ case ENOENT:
nError = COMMAND_NOTFOUND;
break;
- case ENOEXEC :
+ case ENOEXEC :
nError = COMMAND_NOEXEC;
break;
- case ENOMEM :
+ case ENOMEM :
nError = COMMAND_NOMEM;
break;
default:
@@ -510,7 +510,7 @@ ByteString CCommand::Search(ByteString aEnv, ByteString sItem)
}
DirEntry aItem( String( sItem, RTL_TEXTENCODING_ASCII_US ));
- if ( aItem.Exists())
+ if ( aItem.Exists())
return sItem;
ByteString aEntry, sReturn;
@@ -637,7 +637,7 @@ CCommandd::operator int()
aStartupInfo.dwFillAttribute = FOREGROUND_RED | BACKGROUND_RED |
BACKGROUND_BLUE | BACKGROUND_GREEN;
-// aStartupInfo.dwFlags = STARTF_USESTDHANDLES;
+// aStartupInfo.dwFlags = STARTF_USESTDHANDLES;
//aStartupInfo.wShowWindow = SW_NORMAL; //SW_SHOWDEFAULT;
//aStartupInfo.wShowWindow = SW_HIDE; //SW_SHOWNOACTIVATE;
aStartupInfo.wShowWindow = SW_SHOWNOACTIVATE;
diff --git a/tools/bootstrp/cppdep.cxx b/tools/bootstrp/cppdep.cxx
index a98787bbaebd..6d4596507749 100644
--- a/tools/bootstrp/cppdep.cxx
+++ b/tools/bootstrp/cppdep.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <string.h>
-
+
#include <unistd.h>
#include <sys/stat.h>
@@ -188,7 +188,7 @@ ByteString CppDep::IsIncludeStatement( ByteString aLine )
#ifdef DEBUG_VERBOSE
fprintf( stderr, "found starting C comment : %s\n", aLine.GetBuffer() );
#endif
- aLine.Erase(aLine.Search("/*",0), aLine.Len() - 1);
+ aLine.Erase(aLine.Search("/*",0), aLine.Len() - 1);
#ifdef DEBUG_VERBOSE
fprintf( stderr, "cleaned string : %s\n", aLine.GetBuffer() );
#endif
@@ -198,7 +198,7 @@ ByteString CppDep::IsIncludeStatement( ByteString aLine )
#ifdef DEBUG_VERBOSE
fprintf( stderr, "found C++ comment : %s\n", aLine.GetBuffer() );
#endif
- aLine.Erase(aLine.Search("//",0), aLine.Len() - 1);
+ aLine.Erase(aLine.Search("//",0), aLine.Len() - 1);
#ifdef DEBUG_VERBOSE
fprintf( stderr, "cleaned string : %s\n", aLine.GetBuffer() );
#endif
diff --git a/tools/bootstrp/cppdep.hxx b/tools/bootstrp/cppdep.hxx
index 4fbe785f5935..46d401f57698 100644
--- a/tools/bootstrp/cppdep.hxx
+++ b/tools/bootstrp/cppdep.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,32 +29,32 @@
#include <tools/list.hxx>
#include <tools/string.hxx>
#define PATH_SEP ":"
-#define DIR_SEP "/"
+#define DIR_SEP "/"
DECLARE_LIST( ByteStringList, ByteString * )
class CppDep
{
- ByteString aSourceFile;
- ByteStringList *pSearchPath;
+ ByteString aSourceFile;
+ ByteStringList *pSearchPath;
protected:
- ByteStringList *pFileList;
- ByteStringList *pSources;
+ ByteStringList *pFileList;
+ ByteStringList *pSources;
- BOOL Search( ByteString aFileName );
- ByteString Exists( ByteString aFileName );
+ BOOL Search( ByteString aFileName );
+ ByteString Exists( ByteString aFileName );
- ByteString IsIncludeStatement( ByteString aLine );
+ ByteString IsIncludeStatement( ByteString aLine );
public:
CppDep( ByteString aFileName );
CppDep();
virtual ~CppDep();
- virtual void Execute();
+ virtual void Execute();
- ByteStringList* GetDepList(){return pFileList;}
- BOOL AddSearchPath( const char* aPath );
- BOOL AddSource( const char * aSource );
+ ByteStringList* GetDepList(){return pFileList;}
+ BOOL AddSearchPath( const char* aPath );
+ BOOL AddSource( const char * aSource );
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/bootstrp/inimgr.cxx b/tools/bootstrp/inimgr.cxx
index ebebcd692e9b..410e0ac7a6e2 100644
--- a/tools/bootstrp/inimgr.cxx
+++ b/tools/bootstrp/inimgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/bootstrp/iserver.cxx b/tools/bootstrp/iserver.cxx
index 25c22c80ad23..6f24c1e274f3 100644
--- a/tools/bootstrp/iserver.cxx
+++ b/tools/bootstrp/iserver.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/bootstrp/md5.cxx b/tools/bootstrp/md5.cxx
index 1df85d32ff80..d3f524393500 100644
--- a/tools/bootstrp/md5.cxx
+++ b/tools/bootstrp/md5.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,16 +37,16 @@
#include <tools/string.hxx>
#ifdef WNT
-#define FILE_OPEN_READ "rb"
+#define FILE_OPEN_READ "rb"
#else
-#define FILE_OPEN_READ "r"
+#define FILE_OPEN_READ "r"
#endif
// Extended calc_md5_checksum to recognize Windows executables and libraries. To
// create the same md5 checksum for a (code/data) identical file it ignores a different
// date and header checksum. Please see crashrep/source/win32/soreport.cpp
// where the same method is also used. The crash reporter uses the MD5
-// checksums to transfer them to the crash database. You have to make sure that both
+// checksums to transfer them to the crash database. You have to make sure that both
// methods use the same algorithm otherwise there could be problems with stack reports.
void normalize_pe_image(sal_uInt8* buffer, size_t nBufferSize)
@@ -56,7 +56,7 @@ void normalize_pe_image(sal_uInt8* buffer, size_t nBufferSize)
const int PE_SIGNATURE_SIZE = 4;
const int COFFHEADER_SIZE = 20;
const int OFFSET_PE_OPTIONALHEADER_CHECKSUM = 64;
-
+
// Check the header part of the file buffer
if (buffer[0] == sal_uInt8('M') && buffer[1] == sal_uInt8('Z'))
{
@@ -73,7 +73,7 @@ void normalize_pe_image(sal_uInt8* buffer, size_t nBufferSize)
{
// Set timedatestamp and checksum fields to a normalized
// value to enforce the same MD5 checksum for identical
- // Windows executables/libraries.
+ // Windows executables/libraries.
buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+0] = 0;
buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+1] = 0;
buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+2] = 0;
@@ -99,7 +99,7 @@ rtlDigestError calc_md5_checksum( const char *filename, ByteString &aChecksum )
const size_t MINIMAL_SIZE = 512;
sal_uInt8 checksum[RTL_DIGEST_LENGTH_MD5];
- rtlDigestError error = rtl_Digest_E_None;
+ rtlDigestError error = rtl_Digest_E_None;
FILE *fp = fopen( filename, FILE_OPEN_READ );
@@ -109,9 +109,9 @@ rtlDigestError calc_md5_checksum( const char *filename, ByteString &aChecksum )
if ( digest )
{
- size_t nBytesRead;
- sal_uInt8 buffer[BUFFER_SIZE];
- bool bHeader(true);
+ size_t nBytesRead;
+ sal_uInt8 buffer[BUFFER_SIZE];
+ bool bHeader(true);
while ( rtl_Digest_E_None == error &&
0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) )
@@ -122,8 +122,8 @@ rtlDigestError calc_md5_checksum( const char *filename, ByteString &aChecksum )
if (nBytesRead >= MINIMAL_SIZE && buffer[0] == sal_uInt8('M') && buffer[1] == sal_uInt8('Z') )
normalize_pe_image(buffer, nBytesRead);
}
-
- error = rtl_digest_updateMD5( digest, buffer, nBytesRead );
+
+ error = rtl_digest_updateMD5( digest, buffer, nBytesRead );
}
if ( rtl_Digest_E_None == error )
@@ -136,7 +136,7 @@ rtlDigestError calc_md5_checksum( const char *filename, ByteString &aChecksum )
for ( std::size_t i = 0; i < sizeof(checksum); i++ )
{
if ( checksum[i] < 16 )
- aChecksum.Append( "0" );
+ aChecksum.Append( "0" );
aChecksum += ByteString::CreateFromInt32( checksum[i], 16 );
}
}
diff --git a/tools/bootstrp/md5.hxx b/tools/bootstrp/md5.hxx
index f8d6e6b9695a..9db4a739b4f2 100644
--- a/tools/bootstrp/md5.hxx
+++ b/tools/bootstrp/md5.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/bootstrp/mkcreate.cxx b/tools/bootstrp/mkcreate.cxx
index 995f4cca55fc..fdc895ecc190 100644
--- a/tools/bootstrp/mkcreate.cxx
+++ b/tools/bootstrp/mkcreate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ SourceDirectory::~SourceDirectory()
/*****************************************************************************/
CodedDependency *SourceDirectory::AddCodedDependency(
- const ByteString &rCodedIdentifier, USHORT nOperatingSystems )
+ const ByteString &rCodedIdentifier, USHORT nOperatingSystems )
/*****************************************************************************/
{
CodedDependency *pReturn = NULL;
@@ -117,7 +117,7 @@ CodedDependency *SourceDirectory::AddCodedDependency(
/*****************************************************************************/
CodedDependency *SourceDirectory::AddCodedIdentifier(
- const ByteString &rCodedIdentifier, USHORT nOperatingSystems )
+ const ByteString &rCodedIdentifier, USHORT nOperatingSystems )
/*****************************************************************************/
{
CodedDependency *pReturn = NULL;
@@ -537,8 +537,8 @@ SourceDirectory *SourceDirectory::CreateRootDirectory(
ByteString sStandLst( aIniManager.ToLocal( sDefLst ));
String s = String( sStandLst, gsl_getSystemTextEncoding());
InformationParser aParser;
-// fprintf( stderr,
-// "Reading database %s ...\n", sStandLst.GetBuffer());
+// fprintf( stderr,
+// "Reading database %s ...\n", sStandLst.GetBuffer());
GenericInformationList *pVerList = aParser.Execute(
s );
@@ -561,13 +561,13 @@ SourceDirectory *SourceDirectory::CreateRootDirectory(
sSolarList = aIniManager.ToLocal( sSolarList );
fprintf( stderr,
- "Reading directory information %s ...\n", sSolarList.GetBuffer());
+ "Reading directory information %s ...\n", sSolarList.GetBuffer());
*/
ByteString sVersion( rVersion );
Star aStar( pVerList, sVersion, TRUE, rRoot.GetBuffer());
-// fprintf( stderr,
-// "Creating virtual directory tree ...\n" );
+// fprintf( stderr,
+// "Creating virtual directory tree ...\n" );
SourceDirectory *pSourceRoot = new SourceDirectory( rRoot, OS_ALL );
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx
index 8dfd3c421aff..5f232cd4c197 100644
--- a/tools/bootstrp/prj.cxx
+++ b/tools/bootstrp/prj.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@
#include "bootstrp/prj.hxx"
#include "bootstrp/inimgr.hxx"
-//#define TEST 1
+//#define TEST 1
#if defined(WNT) || defined(OS2)
#define LIST_DELIMETER ';'
@@ -51,7 +51,7 @@
Link Star::aDBNotFoundHdl;
//
-// class SimpleConfig
+// class SimpleConfig
//
/*****************************************************************************/
@@ -99,7 +99,7 @@ ByteString SimpleConfig::GetNext()
}
/*****************************************************************************/
-ByteString SimpleConfig::GetNextLine()
+ByteString SimpleConfig::GetNextLine()
/*****************************************************************************/
{
ByteString aSecStr;
@@ -141,7 +141,7 @@ ByteString SimpleConfig::GetCleanedNextLine( BOOL bReadComments )
aTmpStr = aTmpStr.EraseLeadingChars();
aTmpStr = aTmpStr.EraseTrailingChars();
-// while ( aTmpStr.SearchAndReplace(String(' '),String('\t') ) != (USHORT)-1 );
+// while ( aTmpStr.SearchAndReplace(String(' '),String('\t') ) != (USHORT)-1 );
int nLength = aTmpStr.Len();
ByteString aEraseString;
BOOL bFirstTab = TRUE;
@@ -170,7 +170,7 @@ ByteString SimpleConfig::GetCleanedNextLine( BOOL bReadComments )
//
-// class CommandData
+// class CommandData
//
/*****************************************************************************/
@@ -279,7 +279,7 @@ CommandData* Prj::GetDirectoryData( ByteString aLogFileName )
}
//
-// class Prj
+// class Prj
//
/*****************************************************************************/
@@ -424,7 +424,7 @@ CommandData* Prj::RemoveDirectory ( ByteString aLogFileName )
}
//
-// class Star
+// class Star
//
/*****************************************************************************/
@@ -452,7 +452,7 @@ Star::Star( SolarFileList *pSolarFiles )
}
/*****************************************************************************/
-Star::Star( GenericInformationList *pStandLst, ByteString &rVersion,
+Star::Star( GenericInformationList *pStandLst, ByteString &rVersion,
BOOL bLocal, const char *pSourceRoot )
/*****************************************************************************/
{
@@ -546,7 +546,7 @@ Star::Star( GenericInformationList *pStandLst, ByteString &rVersion,
aPrjEntry += DirEntry( sPrjDir );
aPrjEntry += DirEntry( sSolarFile );
- pFileList->Insert( new String( aPrjEntry.GetFull()), LIST_APPEND );
+ pFileList->Insert( new String( aPrjEntry.GetFull()), LIST_APPEND );
ByteString sFile( aPrjEntry.GetFull(), RTL_TEXTENCODING_ASCII_US );
}
@@ -582,7 +582,7 @@ BOOL Star::NeedsUpdate()
}
/*****************************************************************************/
-void Star::Read( String &rFileName )
+void Star::Read( String &rFileName )
/*****************************************************************************/
{
ByteString aString;
@@ -624,7 +624,7 @@ void Star::Read( SolarFileList *pSolarFiles )
}
aMutex.acquire();
- aLoadedFilesList.Insert( pFile, LIST_APPEND );
+ aLoadedFilesList.Insert( pFile, LIST_APPEND );
aMutex.release();
delete pSolarFiles->Remove(( ULONG ) 0 );
}
@@ -938,7 +938,7 @@ Prj* Star::GetPrj ( ByteString aProjectName )
if ( pPrj->GetProjectName().EqualsIgnoreCaseAscii(aProjectName) )
return pPrj;
}
-// return (Prj*)NULL;
+// return (Prj*)NULL;
return 0L ;
}
@@ -965,7 +965,7 @@ ByteString Star::GetPrjName( DirEntry &aPath )
//
-// class StarWriter
+// class StarWriter
//
/*****************************************************************************/
@@ -983,7 +983,7 @@ StarWriter::StarWriter( SolarFileList *pSolarFiles, BOOL bReadComments )
}
/*****************************************************************************/
-StarWriter::StarWriter( GenericInformationList *pStandLst, ByteString &rVersion,
+StarWriter::StarWriter( GenericInformationList *pStandLst, ByteString &rVersion,
BOOL bLocal, const char *pSourceRoot )
/*****************************************************************************/
{
@@ -1077,7 +1077,7 @@ StarWriter::StarWriter( GenericInformationList *pStandLst, ByteString &rVersion,
aPrjEntry += DirEntry( sPrjDir );
aPrjEntry += DirEntry( sSolarFile );
- pFileList->Insert( new String( aPrjEntry.GetFull()), LIST_APPEND );
+ pFileList->Insert( new String( aPrjEntry.GetFull()), LIST_APPEND );
ByteString sFile( aPrjEntry.GetFull(), RTL_TEXTENCODING_ASCII_US );
fprintf( stdout, "%s\n", sFile.GetBuffer());
@@ -1153,7 +1153,7 @@ USHORT StarWriter::Read( SolarFileList *pSolarFiles, BOOL bReadComments )
}
aMutex.acquire();
- aLoadedFilesList.Insert( pFile, LIST_APPEND );
+ aLoadedFilesList.Insert( pFile, LIST_APPEND );
aMutex.release();
delete pSolarFiles->Remove(( ULONG ) 0 );
}
@@ -1315,7 +1315,7 @@ void StarWriter::InsertTokenLine ( ByteString& rString )
int i = 0;
ByteString aWhat, aWhatOS,
sClientRestriction, aLogFileName, aProjectName, aPrefix, aCommandPara;
- static ByteString aDirName;
+ static ByteString aDirName;
BOOL bPrjDep = FALSE;
BOOL bHardDep = FALSE;
USHORT nCommandType = 0;
@@ -1592,7 +1592,7 @@ BOOL StarFile::NeedsUpdate()
return TRUE;
}
FileStat aStat( aEntry );
- if (( aStat.DateModified() > aDate ) ||
+ if (( aStat.DateModified() > aDate ) ||
(( aStat.DateModified() == aDate ) && ( aStat.TimeModified() > aTime )))
return TRUE;
}
diff --git a/tools/bootstrp/rscdep.cxx b/tools/bootstrp/rscdep.cxx
index e71de7bd0952..b7cc7b25bac8 100644
--- a/tools/bootstrp/rscdep.cxx
+++ b/tools/bootstrp/rscdep.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@
#include "cppdep.hxx"
-#if defined WNT
+#if defined WNT
#if !defined HAVE_GETOPT
#define __STDC__ 1
#define __GNU_LIBRARY__
@@ -60,12 +60,12 @@ class RscHrcDep : public CppDep
{
public:
RscHrcDep();
- virtual ~RscHrcDep();
+ virtual ~RscHrcDep();
- virtual void Execute();
+ virtual void Execute();
};
-RscHrcDep::RscHrcDep() :
+RscHrcDep::RscHrcDep() :
CppDep()
{
}
@@ -92,11 +92,11 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
BOOL bSource = FALSE;
ByteString aRespArg;
// who needs anything but '/' ?
-// String aDelim = String(DirEntry::GetAccessDelimiter());
+// String aDelim = String(DirEntry::GetAccessDelimiter());
String aDelim = '/';
RscHrcDep *pDep = new RscHrcDep;
-
+
pOutputFileName[0] = 0;
pSrsFileName[0] = 0;
@@ -220,9 +220,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
DirEntry aEntry(".");
aEntry.ToAbs();
-// String aCwd = aEntry.GetName();
+// String aCwd = aEntry.GetName();
String aCwd(pFileNamePrefix, gsl_getSystemTextEncoding());
-/* USHORT nPos;
+/* USHORT nPos;
#ifndef UNX
while ( (nPos = aCwd.Search('\\') != STRING_NOTFOUND ))
#else
@@ -260,7 +260,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS( argc, argv )
{
if (!bSource )
{
- aString += ByteString(" " );
+ aString += ByteString(" " );
aString += ByteString( argv[optind]);
pDep->AddSource( argv[optind++]);
}
diff --git a/tools/bootstrp/so_checksum.cxx b/tools/bootstrp/so_checksum.cxx
index e38252ea2f70..0b2268924c07 100644
--- a/tools/bootstrp/so_checksum.cxx
+++ b/tools/bootstrp/so_checksum.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/bootstrp/sspretty.cxx b/tools/bootstrp/sspretty.cxx
index e4ab7df062a0..5a27cf7d2306 100644
--- a/tools/bootstrp/sspretty.cxx
+++ b/tools/bootstrp/sspretty.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ int _cdecl main( int argc, char *argv[] )
String aFileName( argv[ 1 ], RTL_TEXTENCODING_ASCII_US );
InformationParser aParser;
GenericInformationList *pList = aParser.Execute( aFileName );
- if ( pList )
+ if ( pList )
aParser.Save( aFileName, pList );
else {
fprintf( stderr, "Error reading input file!\n" );
diff --git a/tools/bootstrp/sstring.cxx b/tools/bootstrp/sstring.cxx
index 628024530287..5224b2ca85e5 100644
--- a/tools/bootstrp/sstring.cxx
+++ b/tools/bootstrp/sstring.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
# define _TOOLS_STRINGLIST
#endif
-#define ENABLE_BYTESTRING_STREAM_OPERATORS
+#define ENABLE_BYTESTRING_STREAM_OPERATORS
#include <tools/stream.hxx>
#include "bootstrp/sstring.hxx"
@@ -105,8 +105,8 @@ ULONG SByteStringList::GetPrevString( ByteString* pStr )
/**************************************************************************
*
-* Sortiert einen ByteString in die Liste ein und gibt die Position,
-* an der einsortiert wurde, zurueck
+* Sortiert einen ByteString in die Liste ein und gibt die Position,
+* an der einsortiert wurde, zurueck
*
**************************************************************************/
@@ -171,7 +171,7 @@ SByteStringList& SByteStringList::operator<< ( SvStream& rStream )
{
sal_uInt32 nListCount;
rStream >> nListCount;
- for ( USHORT i = 0; i < nListCount; i++ ) {
+ for ( USHORT i = 0; i < nListCount; i++ ) {
ByteString* pByteString = new ByteString();
rStream >> *pByteString;
Insert (pByteString, LIST_APPEND);
@@ -265,8 +265,8 @@ ULONG SUniStringList::GetPrevString( UniString* pStr )
/**************************************************************************
*
-* Sortiert einen UniString in die Liste ein und gibt die Position,
-* an der einsortiert wurde, zurueck
+* Sortiert einen UniString in die Liste ein und gibt die Position,
+* an der einsortiert wurde, zurueck
*
**************************************************************************/
diff --git a/tools/inc/bootstrp/appdef.hxx b/tools/inc/bootstrp/appdef.hxx
index 0444478f30ee..df012c491388 100644
--- a/tools/inc/bootstrp/appdef.hxx
+++ b/tools/inc/bootstrp/appdef.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,27 +31,27 @@
#ifdef UNX
-#define DEFAULT_INI_ROOT "/so/env"
-#define DEFAULT_BS_ROOT "/so/env/b_server"
-#define PATH_SEPARATOR '/'
-#define S_PATH_SEPARATOR "/"
+#define DEFAULT_INI_ROOT "/so/env"
+#define DEFAULT_BS_ROOT "/so/env/b_server"
+#define PATH_SEPARATOR '/'
+#define S_PATH_SEPARATOR "/"
#else
-#define DEFAULT_INI_ROOT "r:"
-#define DEFAULT_BS_ROOT "n:"
-#define PATH_SEPARATOR '\\'
-#define S_PATH_SEPARATOR "\\"
+#define DEFAULT_INI_ROOT "r:"
+#define DEFAULT_BS_ROOT "n:"
+#define PATH_SEPARATOR '\\'
+#define S_PATH_SEPARATOR "\\"
#endif
-#define _INI_DRV DEFAULT_INI_ROOT
-#define B_SERVER_ROOT DEFAULT_BS_ROOT
-#define _SOLARLIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst"
-#define _DEF_STAND_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst"
-#define _DEF_SSOLARINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini"
-#define _DEF_SSCOMMON B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn"
-#define _INIROOT B_SERVER_ROOT S_PATH_SEPARATOR "config"
-#define _INIROOT_OLD B_SERVER_ROOT S_PATH_SEPARATOR "config"
-#define _INI_UNC "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
-#define _INI_UNC_OLD "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
+#define _INI_DRV DEFAULT_INI_ROOT
+#define B_SERVER_ROOT DEFAULT_BS_ROOT
+#define _SOLARLIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "solar.lst"
+#define _DEF_STAND_LIST B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "stand.lst"
+#define _DEF_SSOLARINI B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.ini"
+#define _DEF_SSCOMMON B_SERVER_ROOT S_PATH_SEPARATOR "config" S_PATH_SEPARATOR "ssolar.cmn"
+#define _INIROOT B_SERVER_ROOT S_PATH_SEPARATOR "config"
+#define _INIROOT_OLD B_SERVER_ROOT S_PATH_SEPARATOR "config"
+#define _INI_UNC "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
+#define _INI_UNC_OLD "\\\\jumbo2.germany.sun.com\\R-Laufwerk"
// path conversion
diff --git a/tools/inc/bootstrp/command.hxx b/tools/inc/bootstrp/command.hxx
index 1671c20bc1e3..fea483dca97d 100644
--- a/tools/inc/bootstrp/command.hxx
+++ b/tools/inc/bootstrp/command.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,26 +43,26 @@
*/
enum ExeType
{
- EXE, /// programm is a native executable
- BAT, /// programm is a DOS-Batch
- BTM /// programm is a 4DOS-Batch
+ EXE, /// programm is a native executable
+ BAT, /// programm is a DOS-Batch
+ BTM /// programm is a 4DOS-Batch
};
-#define COMMAND_NOTFOUND 0x0001
-#define COMMAND_TOOBIG 0x0002
-#define COMMAND_INVALID 0x0004
-#define COMMAND_NOEXEC 0x0008
-#define COMMAND_NOMEM 0x0010
-#define COMMAND_UNKNOWN 0x0020
+#define COMMAND_NOTFOUND 0x0001
+#define COMMAND_TOOBIG 0x0002
+#define COMMAND_INVALID 0x0004
+#define COMMAND_NOEXEC 0x0008
+#define COMMAND_NOMEM 0x0010
+#define COMMAND_UNKNOWN 0x0020
#ifdef WNT
-#define COMMAND_SHELL "4nt.exe"
+#define COMMAND_SHELL "4nt.exe"
#endif
#ifdef OS2
#define COMMAND_SHELL "4os2.exe"
#endif
#ifdef UNX
-#define COMMAND_SHELL "csh"
+#define COMMAND_SHELL "csh"
#endif
class CommandLine;
@@ -72,25 +72,25 @@ class CommandLine
{
friend class ChildProcess;
private:
- char *CommandBuffer;
- char *ComShell;
- char **ppArgv;
- BOOL bTmpWrite;
+ char *CommandBuffer;
+ char *ComShell;
+ char **ppArgv;
+ BOOL bTmpWrite;
public:
CommandLine(BOOL bTmpWrite = FALSE);
CommandLine(const char *, BOOL bTmpWrite = FALSE);
CommandLine(const CommandLine&, BOOL bTmpWrite = FALSE);
- virtual ~CommandLine();
+ virtual ~CommandLine();
- int nArgc;
+ int nArgc;
- CommandLine& operator=(const CommandLine&);
- CommandLine& operator=(const char *);
- void BuildCommand(const char *);
- char** GetCommand(void) { return ppArgv; }
- void Strtokens(const char *);
- void Print();
+ CommandLine& operator=(const CommandLine&);
+ CommandLine& operator=(const char *);
+ void BuildCommand(const char *);
+ char** GetCommand(void) { return ppArgv; }
+ void Strtokens(const char *);
+ void Print();
};
/** Declares and spawns a child process.
@@ -99,16 +99,16 @@ public:
class CCommand
{
private:
- ByteString aCommandLine;
- ByteString aCommand;
- char *pArgv;
- char **ppArgv;
- ULONG nArgc;
- int nError;
+ ByteString aCommandLine;
+ ByteString aCommand;
+ char *pArgv;
+ char **ppArgv;
+ ULONG nArgc;
+ int nError;
protected:
- void ImplInit();
- void Initpp( ULONG nCount, ByteString &rStr );
+ void ImplInit();
+ void Initpp( ULONG nCount, ByteString &rStr );
public:
/** Creates the process specified without spawning it
@@ -126,7 +126,7 @@ public:
@param sItem specifies the system shell
@return the Location (when programm was found)
*/
- static ByteString Search( ByteString sEnv,
+ static ByteString Search( ByteString sEnv,
ByteString sItem = COMMAND_SHELL );
/** Spawns the Process
@@ -134,14 +134,14 @@ public:
*/
operator int();
- ByteString GetCommandLine_() { return aCommandLine; }
- ByteString GetCommand() { return aCommand; }
+ ByteString GetCommandLine_() { return aCommandLine; }
+ ByteString GetCommand() { return aCommand; }
- char** GetCommandStr() { return ppArgv; }
+ char** GetCommandStr() { return ppArgv; }
};
-#define COMMAND_EXECUTE_WINDOW 0x0000001
-#define COMMAND_EXECUTE_CONSOLE 0x0000002
+#define COMMAND_EXECUTE_WINDOW 0x0000001
+#define COMMAND_EXECUTE_CONSOLE 0x0000002
#define COMMAND_EXECUTE_HIDDEN 0x0000004
#define COMMAND_EXECUTE_START 0x0000008
#define COMMAND_EXECUTE_WAIT 0x0000010
@@ -154,7 +154,7 @@ typedef ULONG CommandBits;
*/
class CCommandd : public CCommand
{
- CommandBits nFlag;
+ CommandBits nFlag;
public:
CCommandd( ByteString &rString, CommandBits nBits );
CCommandd( const char *pChar, CommandBits nBits );
diff --git a/tools/inc/bootstrp/inimgr.hxx b/tools/inc/bootstrp/inimgr.hxx
index 12a42db22c24..dc5a65222768 100644
--- a/tools/inc/bootstrp/inimgr.hxx
+++ b/tools/inc/bootstrp/inimgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,8 +42,8 @@ class IniManager
private:
BOOL bUpdate;
- ByteString sGlobalDir; /// holds the org. ini dir
- ByteString sLocalPath; /// holds path of local ini dir
+ ByteString sGlobalDir; /// holds the org. ini dir
+ ByteString sLocalPath; /// holds path of local ini dir
public:
IniManager( ByteString &rDir, ByteString &rLocalDir );
@@ -51,7 +51,7 @@ public:
IniManager();
ByteString ToLocal( ByteString &rPath );
- void Update(); /// Call ForceUpdate the First Time called
+ void Update(); /// Call ForceUpdate the First Time called
void ForceUpdate();
static ByteString GetLocalIni();
diff --git a/tools/inc/bootstrp/listmacr.hxx b/tools/inc/bootstrp/listmacr.hxx
index 512a60c6d1a9..1aed769b2983 100644
--- a/tools/inc/bootstrp/listmacr.hxx
+++ b/tools/inc/bootstrp/listmacr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,24 +29,24 @@
#ifndef _LISTMACR_HXX
#define _LISTMACR_HXX
-#define DECL_DEST_LIST( TmpListType, ListType, PointerType ) \
-DECLARE_LIST(TmpListType, PointerType) \
-class ListType : public TmpListType \
-{ \
-public: \
+#define DECL_DEST_LIST( TmpListType, ListType, PointerType ) \
+DECLARE_LIST(TmpListType, PointerType) \
+class ListType : public TmpListType \
+{ \
+public: \
void ClearAndDelete() \
- { \
- while ( Count()) { \
- PointerType pTmp = GetObject(( ULONG ) 0 ); \
- delete pTmp; \
- Remove(( ULONG ) 0 ); \
- } \
- } \
- ~ListType() \
- { \
- ClearAndDelete(); \
- } \
-}; \
+ { \
+ while ( Count()) { \
+ PointerType pTmp = GetObject(( ULONG ) 0 ); \
+ delete pTmp; \
+ Remove(( ULONG ) 0 ); \
+ } \
+ } \
+ ~ListType() \
+ { \
+ ClearAndDelete(); \
+ } \
+}; \
#endif
diff --git a/tools/inc/bootstrp/mkcreate.hxx b/tools/inc/bootstrp/mkcreate.hxx
index e5bba54f8a9a..ee89c008c133 100644
--- a/tools/inc/bootstrp/mkcreate.hxx
+++ b/tools/inc/bootstrp/mkcreate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,14 +45,14 @@ class SourceDirectoryList;
class CodedDependency : public ByteString
{
private:
- USHORT nOSType; // operating systems where dependeny exists
+ USHORT nOSType; // operating systems where dependeny exists
public:
/* create a dependency instance with given coded directory name
*/
CodedDependency(
const ByteString &rCodedIdentifier, // the coded name of the directory
- USHORT nOperatingSystems // the operating systems where this dependency exists
+ USHORT nOperatingSystems // the operating systems where this dependency exists
) :
ByteString( rCodedIdentifier ),
nOSType( nOperatingSystems )
@@ -77,7 +77,7 @@ public:
*/
BOOL TryToMerge(
const ByteString &rCodedIdentifier, // the coded name of the directory
- USHORT nOperatingSystems // the operating systems where this dependency exists
+ USHORT nOperatingSystems // the operating systems where this dependency exists
)
{
if ( rCodedIdentifier != *this )
@@ -94,14 +94,14 @@ public:
class Dependency : public ByteString
{
private:
- USHORT nOSType; // operating systems where dependecy exists
+ USHORT nOSType; // operating systems where dependecy exists
public:
/* create a dependency instance with given directory name
*/
Dependency(
- const ByteString &rDirectoryName, // the coded name of the directory
- USHORT nOperatingSystems // the operating systems where this dependency exists
+ const ByteString &rDirectoryName, // the coded name of the directory
+ USHORT nOperatingSystems // the operating systems where this dependency exists
) :
ByteString( rDirectoryName ),
nOSType( nOperatingSystems )
@@ -123,26 +123,26 @@ public:
class SourceDirectory : public ByteString
{
private:
- SourceDirectory *pParent; // the parent directory
- SourceDirectoryList *pSubDirectories; // list of sub directories
- USHORT nOSType; // operating systems where this directory is used
- USHORT nDepth; // depth of directory structure (root is 0)
+ SourceDirectory *pParent; // the parent directory
+ SourceDirectoryList *pSubDirectories; // list of sub directories
+ USHORT nOSType; // operating systems where this directory is used
+ USHORT nDepth; // depth of directory structure (root is 0)
- SByteStringList *pDependencies; // dependencies on other directories in this depth
+ SByteStringList *pDependencies; // dependencies on other directories in this depth
- SByteStringList *pCodedDependencies; // dependencies on other directories in different depth
- SByteStringList *pCodedIdentifier; // symbolic identifier to resolve dependencies
+ SByteStringList *pCodedDependencies; // dependencies on other directories in different depth
+ SByteStringList *pCodedIdentifier; // symbolic identifier to resolve dependencies
/* try to resolve a single dependency
*/
Dependency *ResolvesDependency(
- CodedDependency *pCodedDependency // the dependency
+ CodedDependency *pCodedDependency // the dependency
);
/* returns the operating systems of a coded dependency
*/
static USHORT GetOSType(
- const ByteString &sDependExt // the corresponding dependency extension (see also prj.hxx)
+ const ByteString &sDependExt // the corresponding dependency extension (see also prj.hxx)
);
/* removes this and all sub directories with all dependencies
@@ -155,9 +155,9 @@ public:
* (not the file system root but the root of the source tree, e.g. o:\569)
*/
SourceDirectory(
- const ByteString &rDirectoryName, // name without parent
- USHORT nOperatingSystem, // the operating systems where this directory is used
- SourceDirectory *pParentDirectory = NULL // parent (if not root)
+ const ByteString &rDirectoryName, // name without parent
+ USHORT nOperatingSystem, // the operating systems where this directory is used
+ SourceDirectory *pParentDirectory = NULL // parent (if not root)
);
~SourceDirectory();
@@ -176,15 +176,15 @@ public:
/* returns the given directory
*/
SourceDirectory *GetDirectory(
- const ByteString &rDirectoryName, // full path
- USHORT nOperatingSystem // the operating systems where this directory is used
+ const ByteString &rDirectoryName, // full path
+ USHORT nOperatingSystem // the operating systems where this directory is used
);
/* create the directory and all mandatory parents
*/
SourceDirectory *InsertFull(
- const ByteString &rDirectoryName, // full path
- USHORT nOperatingSystem // the operating systems where this directory is used
+ const ByteString &rDirectoryName, // full path
+ USHORT nOperatingSystem // the operating systems where this directory is used
)
{
return GetDirectory( rDirectoryName, nOperatingSystem );
@@ -193,8 +193,8 @@ public:
/* create the directory as sub directory of this directory
*/
SourceDirectory *Insert(
- const ByteString &rDirectoryName, // name without parent
- USHORT nOperatingSystem // the operating systems where this directory is used
+ const ByteString &rDirectoryName, // name without parent
+ USHORT nOperatingSystem // the operating systems where this directory is used
);
/* get the root directory
@@ -204,15 +204,15 @@ public:
/* get sub directory if exists
*/
SourceDirectory *GetSubDirectory(
- const ByteString &rDirectoryPath, // full sub path
- USHORT nOperatingSystem // the operating systems where this directory is used
+ const ByteString &rDirectoryPath, // full sub path
+ USHORT nOperatingSystem // the operating systems where this directory is used
);
/* add a dependency for several platforms
*/
CodedDependency *AddCodedDependency(
const ByteString &rCodedIdentifier, // the coded name of the directory
- USHORT nOperatingSystems // the operating systems where this dependency exists
+ USHORT nOperatingSystems // the operating systems where this dependency exists
);
/* returns the dependency list
@@ -226,7 +226,7 @@ public:
*/
CodedDependency *AddCodedIdentifier(
const ByteString &rCodedIdentifier, // the coded name of the directory
- USHORT nOperatingSystems // the operating systems where this dependency exists
+ USHORT nOperatingSystems // the operating systems where this dependency exists
);
/* returns the identifier list
@@ -251,15 +251,15 @@ public:
/* create the full directory tree (only virtual, not in file system)
*/
static SourceDirectory *CreateRootDirectory(
- const ByteString &rRoot, // the root directory in file system
- const ByteString &rVersion, // the solar verion (r.g. SRC590, SRC591 etc.)
- BOOL bAll = FALSE // add all directories or only buildable ones
+ const ByteString &rRoot, // the root directory in file system
+ const ByteString &rVersion, // the solar verion (r.g. SRC590, SRC591 etc.)
+ BOOL bAll = FALSE // add all directories or only buildable ones
);
/* create the makefile.rc in file system
*/
BOOL CreateRecursiveMakefile(
- BOOL bAllChilds = FALSE // create rcursive for all sub directories
+ BOOL bAllChilds = FALSE // create rcursive for all sub directories
);
};
@@ -280,13 +280,13 @@ public:
/* search for a directory by directory name
*/
SourceDirectory *Search(
- const ByteString &rDirectoryName // name without parent
+ const ByteString &rDirectoryName // name without parent
);
/* insert a new directory
*/
ULONG InsertSorted(
- SourceDirectory *pDirectory // directory
+ SourceDirectory *pDirectory // directory
)
{
return PutString(( ByteString * ) pDirectory );
diff --git a/tools/inc/bootstrp/prj.hxx b/tools/inc/bootstrp/prj.hxx
index e45fd11b0495..5b620afe7fe0 100644
--- a/tools/inc/bootstrp/prj.hxx
+++ b/tools/inc/bootstrp/prj.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,19 +34,19 @@
#include "bootstrp/listmacr.hxx"
#include <osl/mutex.hxx>
-#define OS_NONE 0x0000
-#define OS_WIN16 0x0001
-#define OS_WIN32 0x0002
-#define OS_OS2 0x0004
-#define OS_UNX 0x0008
-#define OS_ALL ( OS_WIN16 | OS_WIN32 | OS_OS2 | OS_UNX )
+#define OS_NONE 0x0000
+#define OS_WIN16 0x0001
+#define OS_WIN32 0x0002
+#define OS_OS2 0x0004
+#define OS_UNX 0x0008
+#define OS_ALL ( OS_WIN16 | OS_WIN32 | OS_OS2 | OS_UNX )
-#define COMMAND_PROJECTROOT 0x0000
-#define COMMAND_NMAKE 0x0001
-#define COMMAND_GET 0x0002
-#define COMMAND_USER_START 0x0003
-#define COMMAND_USER_END 0xFFFE
-#define COMMAND_ALLDIRS 0xFFFF
+#define COMMAND_PROJECTROOT 0x0000
+#define COMMAND_NMAKE 0x0001
+#define COMMAND_GET 0x0002
+#define COMMAND_USER_START 0x0003
+#define COMMAND_USER_END 0xFFFE
+#define COMMAND_ALLDIRS 0xFFFF
class SByteStringList;
class GenericInformationList;
@@ -54,129 +54,129 @@ class GenericInformationList;
/*
// Pfade auf Konfigurationsdateien des Build-Servers
-#define REQUEST_DIR \\src\data4\source\b_server\server\newjob
+#define REQUEST_DIR \\src\data4\source\b_server\server\newjob
*/
/*********************************************************************
*
-* Die Klasse CommandData haelte alle Informationen, die fuer die
-* Abarbeitung eines Kommandos (nmake, get) noetig sind
+* Die Klasse CommandData haelte alle Informationen, die fuer die
+* Abarbeitung eines Kommandos (nmake, get) noetig sind
*
*********************************************************************/
class CommandData
{
- ByteString aPrj;
- ByteString aLogFileName;
- ByteString aInpath;
- ByteString aUpd;
- ByteString aUpdMinor;
- ByteString aProduct;
- ByteString aCommand;
- ByteString aPath;
- ByteString aPrePath;
- ByteString aPreFix;
- ByteString aCommandPara;
- ByteString aComment;
- ByteString sClientRestriction;
- SByteStringList *pDepList;
- USHORT nOSType;
- USHORT nCommand;
-
- ULONG nDepth; // Tiefe der Abhaenigkeit
+ ByteString aPrj;
+ ByteString aLogFileName;
+ ByteString aInpath;
+ ByteString aUpd;
+ ByteString aUpdMinor;
+ ByteString aProduct;
+ ByteString aCommand;
+ ByteString aPath;
+ ByteString aPrePath;
+ ByteString aPreFix;
+ ByteString aCommandPara;
+ ByteString aComment;
+ ByteString sClientRestriction;
+ SByteStringList *pDepList;
+ USHORT nOSType;
+ USHORT nCommand;
+
+ ULONG nDepth; // Tiefe der Abhaenigkeit
public:
CommandData();
~CommandData();
- ByteString GetProjectName(){return aPrj;}
- void SetProjectName( ByteString aName ){aPrj = aName;}
- ByteString GetLogFile(){return aLogFileName;}
- void SetLogFile( ByteString aName ){aLogFileName = aName;}
- ByteString GetInpath(){return aInpath;}
- void SetInpath( ByteString aName ){aInpath = aName;}
- ByteString GetUpd(){return aUpd;}
- void SetUpd( ByteString aName ){aUpd = aName;}
- ByteString GetUpdMinor(){return aUpdMinor;}
- void SetUpdMinor( ByteString aName ){aUpdMinor = aName;}
- ByteString GetProduct(){return aProduct;}
- void SetProduct( ByteString aName ){aProduct = aName;}
- ByteString GetCommand(){return aCommand;}
- void SetCommand ( ByteString aName ){aCommand = aName;}
- ByteString GetCommandPara(){return aCommandPara;}
- void SetCommandPara ( ByteString aName ){aCommandPara = aName;}
- ByteString GetComment(){return aComment;}
- void SetComment ( ByteString aCommentString ){aComment = aCommentString;}
- ByteString GetPath(){return aPath;}
- void SetPath( ByteString aName ){aPath = aName;}
- ByteString GetPrePath(){return aPrePath;}
- void SetPrePath( ByteString aName ){aPrePath = aName;}
- USHORT GetOSType(){return nOSType;}
- ByteString GetOSTypeString();
- void SetOSType( USHORT nType ){nOSType = nType;}
- USHORT GetCommandType(){return nCommand;}
- ByteString GetCommandTypeString();
- void SetCommandType( USHORT nCommandType ){nCommand = nCommandType;}
+ ByteString GetProjectName(){return aPrj;}
+ void SetProjectName( ByteString aName ){aPrj = aName;}
+ ByteString GetLogFile(){return aLogFileName;}
+ void SetLogFile( ByteString aName ){aLogFileName = aName;}
+ ByteString GetInpath(){return aInpath;}
+ void SetInpath( ByteString aName ){aInpath = aName;}
+ ByteString GetUpd(){return aUpd;}
+ void SetUpd( ByteString aName ){aUpd = aName;}
+ ByteString GetUpdMinor(){return aUpdMinor;}
+ void SetUpdMinor( ByteString aName ){aUpdMinor = aName;}
+ ByteString GetProduct(){return aProduct;}
+ void SetProduct( ByteString aName ){aProduct = aName;}
+ ByteString GetCommand(){return aCommand;}
+ void SetCommand ( ByteString aName ){aCommand = aName;}
+ ByteString GetCommandPara(){return aCommandPara;}
+ void SetCommandPara ( ByteString aName ){aCommandPara = aName;}
+ ByteString GetComment(){return aComment;}
+ void SetComment ( ByteString aCommentString ){aComment = aCommentString;}
+ ByteString GetPath(){return aPath;}
+ void SetPath( ByteString aName ){aPath = aName;}
+ ByteString GetPrePath(){return aPrePath;}
+ void SetPrePath( ByteString aName ){aPrePath = aName;}
+ USHORT GetOSType(){return nOSType;}
+ ByteString GetOSTypeString();
+ void SetOSType( USHORT nType ){nOSType = nType;}
+ USHORT GetCommandType(){return nCommand;}
+ ByteString GetCommandTypeString();
+ void SetCommandType( USHORT nCommandType ){nCommand = nCommandType;}
SByteStringList* GetDependencies(){return pDepList;}
- void SetDependencies( SByteStringList *pList ){pDepList = pList;}
- ByteString GetClientRestriction() { return sClientRestriction; }
- void SetClientRestriction( ByteString sRestriction ) { sClientRestriction = sRestriction; }
+ void SetDependencies( SByteStringList *pList ){pDepList = pList;}
+ ByteString GetClientRestriction() { return sClientRestriction; }
+ void SetClientRestriction( ByteString sRestriction ) { sClientRestriction = sRestriction; }
- void AddDepth(){nDepth++;}
- ULONG GetDepth(){return nDepth;}
+ void AddDepth(){nDepth++;}
+ ULONG GetDepth(){return nDepth;}
};
/*********************************************************************
*
-* Die Klasse SimpleConfig kann benutzt werden, um aus einer Textdatei
-* alle Tokens zu lesen
+* Die Klasse SimpleConfig kann benutzt werden, um aus einer Textdatei
+* alle Tokens zu lesen
*
*********************************************************************/
class SimpleConfig
{
- long nLine;
- String aFileName;
- SvFileStream aFileStream;
- ByteString aTmpStr;
- ByteString aStringBuffer;
+ long nLine;
+ String aFileName;
+ SvFileStream aFileStream;
+ ByteString aTmpStr;
+ ByteString aStringBuffer;
- ByteString GetNextLine();
+ ByteString GetNextLine();
public:
SimpleConfig(String aSimpleConfigFileName);
SimpleConfig(DirEntry& rDirEntry);
~SimpleConfig();
- ByteString GetNext();
- ByteString GetCleanedNextLine( BOOL bReadComments = FALSE );
+ ByteString GetNext();
+ ByteString GetCleanedNextLine( BOOL bReadComments = FALSE );
};
-#define ENV_GUI 0x00000000
-#define ENV_OS 0x00000001
-#define ENV_UPD 0x00000002
-#define ENV_UPDMIN 0x00000004
-#define ENV_INPATH 0x00000008
+#define ENV_GUI 0x00000000
+#define ENV_OS 0x00000001
+#define ENV_UPD 0x00000002
+#define ENV_UPDMIN 0x00000004
+#define ENV_INPATH 0x00000008
#define ENV_OUTPATH 0x00000010
#define ENV_GUIBASE 0x00000020
-#define ENV_CVER 0x00000040
-#define ENV_GVER 0x00000080
-#define ENV_GUIENV 0x00000100
-#define ENV_CPU 0x00000200
+#define ENV_CVER 0x00000040
+#define ENV_GVER 0x00000080
+#define ENV_GUIENV 0x00000100
+#define ENV_CPU 0x00000200
#define ENV_CPUNAME 0x00000400
#define ENV_DLLSUFF 0x00000800
-#define ENV_COMEX 0x00001000
+#define ENV_COMEX 0x00001000
#define ENV_COMPATH 0x00002000
#define ENV_INCLUDE 0x00004000
-#define ENV_LIB 0x00008000
-#define ENV_PATH 0x00010000
-#define ENV_SOLVER 0x00020000
-#define ENV_SOLENV 0x00040000
+#define ENV_LIB 0x00008000
+#define ENV_PATH 0x00010000
+#define ENV_SOLVER 0x00020000
+#define ENV_SOLENV 0x00040000
#define ENV_SOLROOT 0x00080000
#define ENV_DEVROOT 0x00100000
-#define ENV_EMERG 0x00200000
-#define ENV_STAND 0x00400000
+#define ENV_EMERG 0x00200000
+#define ENV_STAND 0x00400000
/*********************************************************************
*
-* class Prj
-* alle Daten eines Projektes werden hier gehalten
+* class Prj
+* alle Daten eines Projektes werden hier gehalten
*
*********************************************************************/
@@ -187,53 +187,53 @@ class Prj : public PrjList
{
friend class Star;
private:
- BOOL bVisited;
+ BOOL bVisited;
- ByteString aPrjPath;
- ByteString aProjectName;
- ByteString aProjectPrefix; // max. 2-buchstabige Abk.
- SByteStringList* pPrjInitialDepList;
- SByteStringList* pPrjDepList;
- BOOL bHardDependencies;
- BOOL bSorted;
+ ByteString aPrjPath;
+ ByteString aProjectName;
+ ByteString aProjectPrefix; // max. 2-buchstabige Abk.
+ SByteStringList* pPrjInitialDepList;
+ SByteStringList* pPrjDepList;
+ BOOL bHardDependencies;
+ BOOL bSorted;
public:
Prj();
Prj( ByteString aName );
~Prj();
- void SetPreFix( ByteString aPre ){aProjectPrefix = aPre;}
- ByteString GetPreFix(){return aProjectPrefix;}
- ByteString GetProjectName()
+ void SetPreFix( ByteString aPre ){aProjectPrefix = aPre;}
+ ByteString GetPreFix(){return aProjectPrefix;}
+ ByteString GetProjectName()
{return aProjectName;}
- void SetProjectName(ByteString aName)
+ void SetProjectName(ByteString aName)
{aProjectName = aName;}
- BOOL InsertDirectory( ByteString aDirName , USHORT aWhat,
+ BOOL InsertDirectory( ByteString aDirName , USHORT aWhat,
USHORT aWhatOS, ByteString aLogFileName,
const ByteString &rClientRestriction );
- CommandData* RemoveDirectory( ByteString aLogFileName );
- CommandData* GetDirectoryList ( USHORT nWhatOs, USHORT nCommand );
- CommandData* GetDirectoryData( ByteString aLogFileName );
- inline CommandData* GetData( ByteString aLogFileName )
+ CommandData* RemoveDirectory( ByteString aLogFileName );
+ CommandData* GetDirectoryList ( USHORT nWhatOs, USHORT nCommand );
+ CommandData* GetDirectoryData( ByteString aLogFileName );
+ inline CommandData* GetData( ByteString aLogFileName )
{ return GetDirectoryData( aLogFileName ); };
- SByteStringList* GetDependencies( BOOL bExpanded = TRUE );
- void AddDependencies( ByteString aStr );
- void HasHardDependencies( BOOL bHard ) { bHardDependencies = bHard; }
- BOOL HasHardDependencies() { return bHardDependencies; }
+ SByteStringList* GetDependencies( BOOL bExpanded = TRUE );
+ void AddDependencies( ByteString aStr );
+ void HasHardDependencies( BOOL bHard ) { bHardDependencies = bHard; }
+ BOOL HasHardDependencies() { return bHardDependencies; }
};
/*********************************************************************
*
-* class Star
-* Diese Klasse liest die Projectstruktur aller StarDivision Projekte
-* aus \\dev\data1\upenv\data\config\solar.lst aus
+* class Star
+* Diese Klasse liest die Projectstruktur aller StarDivision Projekte
+* aus \\dev\data1\upenv\data\config\solar.lst aus
*
*********************************************************************/
DECL_DEST_LIST ( StarList_tmp, StarList, Prj* )
DECLARE_LIST ( SolarFileList, String* )
-class StarFile
+class StarFile
{
private:
String aFileName;
@@ -254,33 +254,33 @@ public:
DECLARE_LIST( StarFileList, StarFile * )
-#define STAR_MODE_SINGLE_PARSE 0x0000
-#define STAR_MODE_RECURSIVE_PARSE 0x0001
-#define STAR_MODE_MULTIPLE_PARSE 0x0002
+#define STAR_MODE_SINGLE_PARSE 0x0000
+#define STAR_MODE_RECURSIVE_PARSE 0x0001
+#define STAR_MODE_MULTIPLE_PARSE 0x0002
class Star : public StarList
{
private:
- ByteString aStarName;
+ ByteString aStarName;
static Link aDBNotFoundHdl;
protected:
osl::Mutex aMutex;
- USHORT nStarMode;
- SolarFileList aFileList;
- StarFileList aLoadedFilesList;
- String sSourceRoot;
+ USHORT nStarMode;
+ SolarFileList aFileList;
+ StarFileList aLoadedFilesList;
+ String sSourceRoot;
void InsertSolarList( String sProject );
String CreateFileName( String sProject );
- void Expand_Impl();
- void ExpandPrj_Impl( Prj *pPrj, Prj *pDepPrj );
+ void Expand_Impl();
+ void ExpandPrj_Impl( Prj *pPrj, Prj *pDepPrj );
private:
- void Read( String &rFileName );
- void Read( SolarFileList *pSOlarFiles );
+ void Read( String &rFileName );
+ void Read( SolarFileList *pSOlarFiles );
public:
Star();
@@ -291,24 +291,24 @@ public:
~Star();
- static void SetDBNotFoundHdl( const Link &rLink ) { aDBNotFoundHdl = rLink; }
+ static void SetDBNotFoundHdl( const Link &rLink ) { aDBNotFoundHdl = rLink; }
- ByteString GetName(){ return aStarName; };
+ ByteString GetName(){ return aStarName; };
- BOOL HasProject( ByteString aProjectName );
- Prj* GetPrj( ByteString aProjectName );
- ByteString GetPrjName( DirEntry &rPath );
+ BOOL HasProject( ByteString aProjectName );
+ Prj* GetPrj( ByteString aProjectName );
+ ByteString GetPrjName( DirEntry &rPath );
- void InsertToken( char *pChar );
- BOOL NeedsUpdate();
+ void InsertToken( char *pChar );
+ BOOL NeedsUpdate();
- USHORT GetMode() { return nStarMode; }
+ USHORT GetMode() { return nStarMode; }
};
class StarWriter : public Star
{
private:
- USHORT WritePrj( Prj *pPrj, SvFileStream& rStream );
+ USHORT WritePrj( Prj *pPrj, SvFileStream& rStream );
public:
StarWriter( String aFileName, BOOL bReadComments = FALSE, USHORT nMode = STAR_MODE_SINGLE_PARSE );
@@ -316,17 +316,17 @@ public:
StarWriter( GenericInformationList *pStandLst, ByteString &rVersion, BOOL bLocal = FALSE,
const char *pSourceRoot = NULL );
- void CleanUp();
+ void CleanUp();
- BOOL InsertProject ( Prj* pNewPrj );
- Prj* RemoveProject ( ByteString aProjectName );
+ BOOL InsertProject ( Prj* pNewPrj );
+ Prj* RemoveProject ( ByteString aProjectName );
- USHORT Read( String aFileName, BOOL bReadComments = FALSE, USHORT nMode = STAR_MODE_SINGLE_PARSE );
- USHORT Read( SolarFileList *pSolarFiles, BOOL bReadComments = FALSE );
- USHORT Write( String aFileName );
- USHORT WriteMultiple( String rSourceRoot );
+ USHORT Read( String aFileName, BOOL bReadComments = FALSE, USHORT nMode = STAR_MODE_SINGLE_PARSE );
+ USHORT Read( SolarFileList *pSolarFiles, BOOL bReadComments = FALSE );
+ USHORT Write( String aFileName );
+ USHORT WriteMultiple( String rSourceRoot );
- void InsertTokenLine( ByteString& rString );
+ void InsertTokenLine( ByteString& rString );
};
#endif
diff --git a/tools/inc/bootstrp/sstring.hxx b/tools/inc/bootstrp/sstring.hxx
index 95af62ae8647..8e21af030870 100644
--- a/tools/inc/bootstrp/sstring.hxx
+++ b/tools/inc/bootstrp/sstring.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,10 +32,10 @@
#include <tools/string.hxx>
#include <tools/list.hxx>
-#define NOT_THERE LIST_ENTRY_NOTFOUND
+#define NOT_THERE LIST_ENTRY_NOTFOUND
-#define SStringList SUniStringList
-#define StringList UniStringList
+#define SStringList SUniStringList
+#define StringList UniStringList
DECLARE_LIST( ByteStringList, ByteString* )
DECLARE_LIST( UniStringList, UniString* )
@@ -53,17 +53,17 @@ public:
~SByteStringList();
// neuen ByteString in Liste einfuegen
- ULONG PutString( ByteString* );
- ByteString* RemoveString( const ByteString& rName );
+ ULONG PutString( ByteString* );
+ ByteString* RemoveString( const ByteString& rName );
// Position des ByteString in Liste, wenn nicht enthalten, dann
// return = NOT_THERE
- ULONG IsString( ByteString* );
+ ULONG IsString( ByteString* );
// Vorgaenger ermitteln ( auch wenn selbst noch nicht in
// Liste enthalten
- ULONG GetPrevString( ByteString* );
- void CleanUp();
+ ULONG GetPrevString( ByteString* );
+ void CleanUp();
SByteStringList& operator<< ( SvStream& rStream );
SByteStringList& operator>> ( SvStream& rStream );
@@ -80,27 +80,27 @@ public:
~SUniStringList();
// neuen UniString in Liste einfuegen
- ULONG PutString( UniString* );
- UniString* RemoveString( const UniString& rName );
+ ULONG PutString( UniString* );
+ UniString* RemoveString( const UniString& rName );
// Position des UniString in Liste, wenn nicht enthalten, dann
// return = NOT_THERE
- ULONG IsString( UniString* );
+ ULONG IsString( UniString* );
// Vorgaenger ermitteln ( auch wenn selbst noch nicht in
// Liste enthalten
- ULONG GetPrevString( UniString* );
+ ULONG GetPrevString( UniString* );
};
class Text
{
protected:
- String aString;
+ String aString;
public:
Text( char* pChar );
Text( String &rStr ) { aString = rStr; }
- void Stderr();
+ void Stderr();
};
#endif
diff --git a/tools/inc/impcont.hxx b/tools/inc/impcont.hxx
index c540d3d1f484..ef5a34893e6d 100644
--- a/tools/inc/impcont.hxx
+++ b/tools/inc/impcont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/impstrg.hxx b/tools/inc/impstrg.hxx
index e99e2b3990b3..5a7843653714 100644
--- a/tools/inc/impstrg.hxx
+++ b/tools/inc/impstrg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/pch/precompiled_tools.cxx b/tools/inc/pch/precompiled_tools.cxx
index f467bbb6aed9..a214b36bcddf 100644
--- a/tools/inc/pch/precompiled_tools.cxx
+++ b/tools/inc/pch/precompiled_tools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/poly.h b/tools/inc/poly.h
index c584a9d32700..92b3c883c84e 100644
--- a/tools/inc/poly.h
+++ b/tools/inc/poly.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/StringListResource.hxx b/tools/inc/tools/StringListResource.hxx
index 5b45be439230..2e5f65dec981 100644
--- a/tools/inc/tools/StringListResource.hxx
+++ b/tools/inc/tools/StringListResource.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/agapi.hxx b/tools/inc/tools/agapi.hxx
index 731594ad4df1..bfd33a555775 100644
--- a/tools/inc/tools/agapi.hxx
+++ b/tools/inc/tools/agapi.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,27 +41,27 @@ class AgentApi
protected:
friend class ChannelList;
- AgentItem* pChannelAgent;
- virtual BOOL StartAgent() = 0;
+ AgentItem* pChannelAgent;
+ virtual BOOL StartAgent() = 0;
AgentApi(AgentItem* pAgent) { pChannelAgent = pAgent; }
public:
virtual ~AgentApi() {}
- virtual void InitAgent() = 0;
- virtual void ShutDownAgent() = 0;
+ virtual void InitAgent() = 0;
+ virtual void ShutDownAgent() = 0;
- virtual BOOL NewDataPermission(const String& rChannelName) = 0;
- virtual void NewData(const String& rChannelName,
+ virtual BOOL NewDataPermission(const String& rChannelName) = 0;
+ virtual void NewData(const String& rChannelName,
const INetURLObject& rURL) = 0;
- virtual void NotifyChannelObjFile(const INetURLObject& rURL,
+ virtual void NotifyChannelObjFile(const INetURLObject& rURL,
const String& rFileName) = 0;
- virtual void NotifyChannelObjData(const INetURLObject& rURL,
+ virtual void NotifyChannelObjData(const INetURLObject& rURL,
void* pBuffer, long nOffset, long nLen, long nTotalLen) = 0;
- virtual void RegisterChannels() = 0;
- virtual void RegisterUpdateTransmitter() = 0;
+ virtual void RegisterChannels() = 0;
+ virtual void RegisterUpdateTransmitter() = 0;
};
#endif //_AGAPI_HXX
diff --git a/tools/inc/tools/agitem.hxx b/tools/inc/tools/agitem.hxx
index 869fb99d8510..19d33fc830bf 100644
--- a/tools/inc/tools/agitem.hxx
+++ b/tools/inc/tools/agitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,13 +39,13 @@ class ChApi;
class AgentItem
{
public:
- virtual const String& GetChAgentName() const = 0;
- virtual const INetURLObject& GetLocation() const = 0;
- virtual AgentApi* GetApi() const = 0;
- virtual ChApi* GetChApi() const = 0;
+ virtual const String& GetChAgentName() const = 0;
+ virtual const INetURLObject& GetLocation() const = 0;
+ virtual AgentApi* GetApi() const = 0;
+ virtual ChApi* GetChApi() const = 0;
- virtual void SetIsActive(BOOL bNew) = 0;
- virtual BOOL IsActive() const = 0;
+ virtual void SetIsActive(BOOL bNew) = 0;
+ virtual BOOL IsActive() const = 0;
};
#endif //_AGITEM_HXX
diff --git a/tools/inc/tools/appendunixshellword.hxx b/tools/inc/tools/appendunixshellword.hxx
index bcfaf5f0e486..91bf77cce9ec 100644
--- a/tools/inc/tools/appendunixshellword.hxx
+++ b/tools/inc/tools/appendunixshellword.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/b3dtrans.hxx b/tools/inc/tools/b3dtrans.hxx
index 2c136870d72b..e7a7d7a40b00 100644
--- a/tools/inc/tools/b3dtrans.hxx
+++ b/tools/inc/tools/b3dtrans.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#define _B3D_B3DTRANS_HXX
// Zu verwendender DephRange des Z-Buffers
-#define ZBUFFER_DEPTH_RANGE ((double)(256L * 256L * 256L))
+#define ZBUFFER_DEPTH_RANGE ((double)(256L * 256L * 256L))
#include <basegfx/matrix/b3dhommatrix.hxx>
#include <basegfx/range/b3drange.hxx>
@@ -76,68 +76,68 @@ class TOOLS_DLLPUBLIC B3dTransformationSet
{
private:
// Object Matrix Object -> World
- basegfx::B3DHomMatrix maObjectTrans;
- basegfx::B3DHomMatrix maInvObjectTrans;
+ basegfx::B3DHomMatrix maObjectTrans;
+ basegfx::B3DHomMatrix maInvObjectTrans;
// Orientation Matrix
- basegfx::B3DHomMatrix maOrientation;
- basegfx::B3DHomMatrix maInvOrientation;
+ basegfx::B3DHomMatrix maOrientation;
+ basegfx::B3DHomMatrix maInvOrientation;
// Projection Matrix
- basegfx::B3DHomMatrix maProjection;
- basegfx::B3DHomMatrix maInvProjection;
+ basegfx::B3DHomMatrix maProjection;
+ basegfx::B3DHomMatrix maInvProjection;
// Texture Matrices
- basegfx::B2DHomMatrix maTexture;
+ basegfx::B2DHomMatrix maTexture;
// Speziell zum Umwandeln von Punkten Objekt -> Device
- basegfx::B3DHomMatrix maObjectToDevice;
+ basegfx::B3DHomMatrix maObjectToDevice;
// Transponierte Inverse fuer Vectortransformationen
- basegfx::B3DHomMatrix maInvTransObjectToEye;
+ basegfx::B3DHomMatrix maInvTransObjectToEye;
// Transformation World->View
- basegfx::B3DHomMatrix maMatFromWorldToView;
- basegfx::B3DHomMatrix maInvMatFromWorldToView;
+ basegfx::B3DHomMatrix maMatFromWorldToView;
+ basegfx::B3DHomMatrix maInvMatFromWorldToView;
// Parameters for ViewportTransformation
- basegfx::B3DVector maScale;
- basegfx::B3DVector maTranslate;
+ basegfx::B3DVector maScale;
+ basegfx::B3DVector maTranslate;
// ViewPlane DeviceRectangle (vom Benutzer gesetzt)
- double mfLeftBound;
- double mfRightBound;
- double mfBottomBound;
- double mfTopBound;
+ double mfLeftBound;
+ double mfRightBound;
+ double mfBottomBound;
+ double mfTopBound;
// Near and far clipping planes
- double mfNearBound;
- double mfFarBound;
+ double mfNearBound;
+ double mfFarBound;
// Seitenverhaeltnis der 3D Abbildung (Y / X)
// default ist 1:1 -> 1.0
// Deaktivieren mit 0.0 als Wert
- double mfRatio;
+ double mfRatio;
// Der gesetzte Ausgabebereich (in logischen Koordinaten)
// und der dazugehoerige sichtbare Bereich
- Rectangle maViewportRectangle;
- Rectangle maVisibleRectangle;
+ Rectangle maViewportRectangle;
+ Rectangle maVisibleRectangle;
// Die tatsaechlich von CalcViewport gesetzten Abmessungen
// des sichtbaren Bereichs (in logischen Koordinaten)
- Rectangle maSetBound;
+ Rectangle maSetBound;
// Methode zur Aufrechterhaltung des Seitenverhaeltnisses
// default ist Base3DRatioGrow
- Base3DRatio meRatio;
+ Base3DRatio meRatio;
// Flags
- unsigned mbPerspective : 1;
- unsigned mbWorldToViewValid : 1;
- unsigned mbInvTransObjectToEyeValid : 1;
- unsigned mbObjectToDeviceValid : 1;
- unsigned mbProjectionValid : 1;
+ unsigned mbPerspective : 1;
+ unsigned mbWorldToViewValid : 1;
+ unsigned mbInvTransObjectToEyeValid : 1;
+ unsigned mbObjectToDeviceValid : 1;
+ unsigned mbProjectionValid : 1;
public:
B3dTransformationSet();
@@ -244,8 +244,8 @@ public:
double fNear = 0.0, double fFar = 1.0);
static void Orientation(
basegfx::B3DHomMatrix& rTarget,
- basegfx::B3DPoint aVRP = basegfx::B3DPoint(0.0,0.0,1.0),
- basegfx::B3DVector aVPN = basegfx::B3DVector(0.0,0.0,1.0),
+ basegfx::B3DPoint aVRP = basegfx::B3DPoint(0.0,0.0,1.0),
+ basegfx::B3DVector aVPN = basegfx::B3DVector(0.0,0.0,1.0),
basegfx::B3DVector aVUP = basegfx::B3DVector(0.0,1.0,0.0));
protected:
@@ -274,9 +274,9 @@ protected:
class TOOLS_DLLPUBLIC B3dViewport : public B3dTransformationSet
{
private:
- basegfx::B3DPoint aVRP; // View Reference Point
- basegfx::B3DVector aVPN; // View Plane Normal
- basegfx::B3DVector aVUV; // View Up Vector
+ basegfx::B3DPoint aVRP; // View Reference Point
+ basegfx::B3DVector aVPN; // View Plane Normal
+ basegfx::B3DVector aVUV; // View Up Vector
public:
B3dViewport();
@@ -290,9 +290,9 @@ public:
const basegfx::B3DVector& rNewVPN,
const basegfx::B3DVector& rNewVUV);
- const basegfx::B3DPoint& GetVRP() const { return aVRP; }
- const basegfx::B3DVector& GetVPN() const { return aVPN; }
- const basegfx::B3DVector& GetVUV() const { return aVUV; }
+ const basegfx::B3DPoint& GetVRP() const { return aVRP; }
+ const basegfx::B3DVector& GetVPN() const { return aVPN; }
+ const basegfx::B3DVector& GetVUV() const { return aVUV; }
protected:
void CalcOrientation();
@@ -307,13 +307,13 @@ protected:
class TOOLS_DLLPUBLIC B3dCamera : public B3dViewport
{
private:
- basegfx::B3DPoint aPosition;
- basegfx::B3DPoint aCorrectedPosition;
- basegfx::B3DVector aLookAt;
- double fFocalLength;
- double fBankAngle;
+ basegfx::B3DPoint aPosition;
+ basegfx::B3DPoint aCorrectedPosition;
+ basegfx::B3DVector aLookAt;
+ double fFocalLength;
+ double fBankAngle;
- unsigned bUseFocalLength : 1;
+ unsigned bUseFocalLength : 1;
public:
B3dCamera(
diff --git a/tools/inc/tools/bigint.hxx b/tools/inc/tools/bigint.hxx
index 544b0b5ef26d..5c4f170a7c24 100644
--- a/tools/inc/tools/bigint.hxx
+++ b/tools/inc/tools/bigint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/cachestr.hxx b/tools/inc/tools/cachestr.hxx
index cbc16e5950b4..c3d9328b7835 100644
--- a/tools/inc/tools/cachestr.hxx
+++ b/tools/inc/tools/cachestr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ private:
SvStream* pCurrentStream;
TempFile* pTempFile;
- Link aFilenameLinkHdl;
+ Link aFilenameLinkHdl;
TOOLS_DLLPRIVATE virtual ULONG GetData( void* pData, ULONG nSize );
TOOLS_DLLPRIVATE virtual ULONG PutData( const void* pData, ULONG nSize );
@@ -65,19 +65,19 @@ public:
ULONG nMaxMemSize = 0 );
~SvCacheStream();
- void SetFilenameHdl( const Link& rLink);
+ void SetFilenameHdl( const Link& rLink);
const Link& GetFilenameHdl() const;
- void SetFilename( const String& rFN )
+ void SetFilename( const String& rFN )
{ aFileName = rFN; } // darf nur vom FilenameHdl gerufen werden!
- const String& GetFilename() const { return aFileName; }
+ const String& GetFilename() const { return aFileName; }
void SwapOut();
const void* GetBuffer();
ULONG GetSize();
- BOOL IsPersistent() { return bPersistent != 0; }
- void SetPersistence( BOOL b = TRUE ) { bPersistent = b; }
- void SetSwapStream( SvStream *p )
+ BOOL IsPersistent() { return bPersistent != 0; }
+ void SetPersistence( BOOL b = TRUE ) { bPersistent = b; }
+ void SetSwapStream( SvStream *p )
{ pSwapStream = p; } // darf nur vom FilenameHdl gerufen werden!
};
diff --git a/tools/inc/tools/chapi.hxx b/tools/inc/tools/chapi.hxx
index d83367a4a246..4d7e60e86f1d 100644
--- a/tools/inc/tools/chapi.hxx
+++ b/tools/inc/tools/chapi.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,8 +36,8 @@ class INetURLObject;
class String;
enum RequestType {
- REQTYP_LOCAL_FILE = 1,
- REQTYP_MEMORY = 2
+ REQTYP_LOCAL_FILE = 1,
+ REQTYP_MEMORY = 2
};
class ChApi
@@ -45,22 +45,22 @@ class ChApi
public:
virtual ~ChApi() {}
- virtual void ShutDownAgent() = 0;
- virtual void SetLastSuccUpd() = 0;
+ virtual void ShutDownAgent() = 0;
+ virtual void SetLastSuccUpd() = 0;
- virtual void GetChannelObject( const INetURLObject& rURL, RequestType eStreamType,
+ virtual void GetChannelObject( const INetURLObject& rURL, RequestType eStreamType,
const String& rFileName ) = 0;
virtual void AddChannelItem( const String& aChName, const INetURLObject& aTransmitter,
const String& aChannel, USHORT nUpdPeriode,
const String& rChAgentName ) = 0;
virtual void DelChannelItem( const String& aChName ) = 0;
- virtual void SetChTransmitter( const String& aChName, const String& rNewVal ) = 0;
- virtual void SetChannel( const String& aChName, const String& rNewVal ) = 0;
- virtual void SetChannelName( const String& aChName, const String& rNewVal ) = 0;
- virtual void SetChUpdPeriode( const String& aChName, USHORT nUpdPeriode ) = 0;
- virtual void SetChannelAgentName( const String& aChName, const String& rNewVal ) = 0;
+ virtual void SetChTransmitter( const String& aChName, const String& rNewVal ) = 0;
+ virtual void SetChannel( const String& aChName, const String& rNewVal ) = 0;
+ virtual void SetChannelName( const String& aChName, const String& rNewVal ) = 0;
+ virtual void SetChUpdPeriode( const String& aChName, USHORT nUpdPeriode ) = 0;
+ virtual void SetChannelAgentName( const String& aChName, const String& rNewVal ) = 0;
- virtual void SetUpdateTransmitter(ChannelAgentItem* pAgent, const INetURLObject& rTransmitter) = 0;
+ virtual void SetUpdateTransmitter(ChannelAgentItem* pAgent, const INetURLObject& rTransmitter) = 0;
};
////////////////////////////////////////////////////////////////////////////////
diff --git a/tools/inc/tools/color.hxx b/tools/inc/tools/color.hxx
index a46fc60ea554..bc59d89d5a05 100644
--- a/tools/inc/tools/color.hxx
+++ b/tools/inc/tools/color.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,71 +40,71 @@ class ResId;
// - ColorCount-Types -
// --------------------
-#define COLCOUNT_MONOCHROM ((ULONG)2)
-#define COLCOUNT_16 ((ULONG)16)
-#define COLCOUNT_256 ((ULONG)256)
-#define COLCOUNT_HICOLOR1 (((ULONG)0x00007FFF)+1)
-#define COLCOUNT_HICOLOR2 (((ULONG)0x0000FFFF)+1)
-#define COLCOUNT_TRUECOLOR (((ULONG)0x00FFFFFF)+1)
+#define COLCOUNT_MONOCHROM ((ULONG)2)
+#define COLCOUNT_16 ((ULONG)16)
+#define COLCOUNT_256 ((ULONG)256)
+#define COLCOUNT_HICOLOR1 (((ULONG)0x00007FFF)+1)
+#define COLCOUNT_HICOLOR2 (((ULONG)0x0000FFFF)+1)
+#define COLCOUNT_TRUECOLOR (((ULONG)0x00FFFFFF)+1)
// ---------------
// - Color-Types -
// ---------------
typedef UINT32 ColorData;
-#define RGB_COLORDATA( r,g,b ) ((ColorData)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16))
-#define TRGB_COLORDATA( t,r,g,b ) ((ColorData)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16)|(((UINT32)((UINT8)(t)))<<24))
-#define COLORDATA_RED( n ) ((UINT8)((n)>>16))
-#define COLORDATA_GREEN( n ) ((UINT8)(((UINT16)(n)) >> 8))
-#define COLORDATA_BLUE( n ) ((UINT8)(n))
+#define RGB_COLORDATA( r,g,b ) ((ColorData)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16))
+#define TRGB_COLORDATA( t,r,g,b ) ((ColorData)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16)|(((UINT32)((UINT8)(t)))<<24))
+#define COLORDATA_RED( n ) ((UINT8)((n)>>16))
+#define COLORDATA_GREEN( n ) ((UINT8)(((UINT16)(n)) >> 8))
+#define COLORDATA_BLUE( n ) ((UINT8)(n))
#define COLORDATA_TRANSPARENCY( n ) ((UINT8)((n)>>24))
-#define COLORDATA_RGB( n ) ((ColorData)((n) & 0x00FFFFFF))
-
-#define COL_BLACK RGB_COLORDATA( 0x00, 0x00, 0x00 )
-#define COL_BLUE RGB_COLORDATA( 0x00, 0x00, 0x80 )
-#define COL_GREEN RGB_COLORDATA( 0x00, 0x80, 0x00 )
-#define COL_CYAN RGB_COLORDATA( 0x00, 0x80, 0x80 )
-#define COL_RED RGB_COLORDATA( 0x80, 0x00, 0x00 )
-#define COL_MAGENTA RGB_COLORDATA( 0x80, 0x00, 0x80 )
-#define COL_BROWN RGB_COLORDATA( 0x80, 0x80, 0x00 )
-#define COL_GRAY RGB_COLORDATA( 0x80, 0x80, 0x80 )
-#define COL_LIGHTGRAY RGB_COLORDATA( 0xC0, 0xC0, 0xC0 )
-#define COL_LIGHTBLUE RGB_COLORDATA( 0x00, 0x00, 0xFF )
-#define COL_LIGHTGREEN RGB_COLORDATA( 0x00, 0xFF, 0x00 )
-#define COL_LIGHTCYAN RGB_COLORDATA( 0x00, 0xFF, 0xFF )
-#define COL_LIGHTRED RGB_COLORDATA( 0xFF, 0x00, 0x00 )
-#define COL_LIGHTMAGENTA RGB_COLORDATA( 0xFF, 0x00, 0xFF )
-#define COL_YELLOW RGB_COLORDATA( 0xFF, 0xFF, 0x00 )
-#define COL_WHITE RGB_COLORDATA( 0xFF, 0xFF, 0xFF )
-#define COL_TRANSPARENT TRGB_COLORDATA( 0xFF, 0xFF, 0xFF, 0xFF )
+#define COLORDATA_RGB( n ) ((ColorData)((n) & 0x00FFFFFF))
+
+#define COL_BLACK RGB_COLORDATA( 0x00, 0x00, 0x00 )
+#define COL_BLUE RGB_COLORDATA( 0x00, 0x00, 0x80 )
+#define COL_GREEN RGB_COLORDATA( 0x00, 0x80, 0x00 )
+#define COL_CYAN RGB_COLORDATA( 0x00, 0x80, 0x80 )
+#define COL_RED RGB_COLORDATA( 0x80, 0x00, 0x00 )
+#define COL_MAGENTA RGB_COLORDATA( 0x80, 0x00, 0x80 )
+#define COL_BROWN RGB_COLORDATA( 0x80, 0x80, 0x00 )
+#define COL_GRAY RGB_COLORDATA( 0x80, 0x80, 0x80 )
+#define COL_LIGHTGRAY RGB_COLORDATA( 0xC0, 0xC0, 0xC0 )
+#define COL_LIGHTBLUE RGB_COLORDATA( 0x00, 0x00, 0xFF )
+#define COL_LIGHTGREEN RGB_COLORDATA( 0x00, 0xFF, 0x00 )
+#define COL_LIGHTCYAN RGB_COLORDATA( 0x00, 0xFF, 0xFF )
+#define COL_LIGHTRED RGB_COLORDATA( 0xFF, 0x00, 0x00 )
+#define COL_LIGHTMAGENTA RGB_COLORDATA( 0xFF, 0x00, 0xFF )
+#define COL_YELLOW RGB_COLORDATA( 0xFF, 0xFF, 0x00 )
+#define COL_WHITE RGB_COLORDATA( 0xFF, 0xFF, 0xFF )
+#define COL_TRANSPARENT TRGB_COLORDATA( 0xFF, 0xFF, 0xFF, 0xFF )
#define COL_AUTO (ColorData)0xFFFFFFFF
-#define COL_AUTHOR1_DARK RGB_COLORDATA(198, 146, 0)
-#define COL_AUTHOR1_NORMAL RGB_COLORDATA(255, 255, 158)
-#define COL_AUTHOR1_LIGHT RGB_COLORDATA(255, 255, 195)
-#define COL_AUTHOR2_DARK RGB_COLORDATA(6, 70, 162)
-#define COL_AUTHOR2_NORMAL RGB_COLORDATA(216, 232, 255)
-#define COL_AUTHOR2_LIGHT RGB_COLORDATA(233, 242, 255)
-#define COL_AUTHOR3_DARK RGB_COLORDATA(87, 157, 28)
-#define COL_AUTHOR3_NORMAL RGB_COLORDATA(218, 248, 193)
-#define COL_AUTHOR3_LIGHT RGB_COLORDATA(226, 250, 207)
-#define COL_AUTHOR4_DARK RGB_COLORDATA(105, 43, 157)
-#define COL_AUTHOR4_NORMAL RGB_COLORDATA(228, 210, 245)
-#define COL_AUTHOR4_LIGHT RGB_COLORDATA(239, 228, 248)
-#define COL_AUTHOR5_DARK RGB_COLORDATA(197, 0, 11)
-#define COL_AUTHOR5_NORMAL RGB_COLORDATA(254, 205, 208)
-#define COL_AUTHOR5_LIGHT RGB_COLORDATA(255, 227, 229)
-#define COL_AUTHOR6_DARK RGB_COLORDATA(0, 128, 128)
-#define COL_AUTHOR6_NORMAL RGB_COLORDATA(210, 246, 246)
-#define COL_AUTHOR6_LIGHT RGB_COLORDATA(230, 250, 250)
-#define COL_AUTHOR7_DARK RGB_COLORDATA(140, 132, 0)
-#define COL_AUTHOR7_NORMAL RGB_COLORDATA(237, 252, 163)
-#define COL_AUTHOR7_LIGHT RGB_COLORDATA(242, 254, 181)
-#define COL_AUTHOR8_DARK RGB_COLORDATA(53, 85, 107)
-#define COL_AUTHOR8_NORMAL RGB_COLORDATA(211, 222, 232)
-#define COL_AUTHOR8_LIGHT RGB_COLORDATA(226, 234, 241)
-#define COL_AUTHOR9_DARK RGB_COLORDATA(209, 118, 0)
-#define COL_AUTHOR9_NORMAL RGB_COLORDATA(255, 226, 185)
-#define COL_AUTHOR9_LIGHT RGB_COLORDATA(255, 231, 199)
+#define COL_AUTHOR1_DARK RGB_COLORDATA(198, 146, 0)
+#define COL_AUTHOR1_NORMAL RGB_COLORDATA(255, 255, 158)
+#define COL_AUTHOR1_LIGHT RGB_COLORDATA(255, 255, 195)
+#define COL_AUTHOR2_DARK RGB_COLORDATA(6, 70, 162)
+#define COL_AUTHOR2_NORMAL RGB_COLORDATA(216, 232, 255)
+#define COL_AUTHOR2_LIGHT RGB_COLORDATA(233, 242, 255)
+#define COL_AUTHOR3_DARK RGB_COLORDATA(87, 157, 28)
+#define COL_AUTHOR3_NORMAL RGB_COLORDATA(218, 248, 193)
+#define COL_AUTHOR3_LIGHT RGB_COLORDATA(226, 250, 207)
+#define COL_AUTHOR4_DARK RGB_COLORDATA(105, 43, 157)
+#define COL_AUTHOR4_NORMAL RGB_COLORDATA(228, 210, 245)
+#define COL_AUTHOR4_LIGHT RGB_COLORDATA(239, 228, 248)
+#define COL_AUTHOR5_DARK RGB_COLORDATA(197, 0, 11)
+#define COL_AUTHOR5_NORMAL RGB_COLORDATA(254, 205, 208)
+#define COL_AUTHOR5_LIGHT RGB_COLORDATA(255, 227, 229)
+#define COL_AUTHOR6_DARK RGB_COLORDATA(0, 128, 128)
+#define COL_AUTHOR6_NORMAL RGB_COLORDATA(210, 246, 246)
+#define COL_AUTHOR6_LIGHT RGB_COLORDATA(230, 250, 250)
+#define COL_AUTHOR7_DARK RGB_COLORDATA(140, 132, 0)
+#define COL_AUTHOR7_NORMAL RGB_COLORDATA(237, 252, 163)
+#define COL_AUTHOR7_LIGHT RGB_COLORDATA(242, 254, 181)
+#define COL_AUTHOR8_DARK RGB_COLORDATA(53, 85, 107)
+#define COL_AUTHOR8_NORMAL RGB_COLORDATA(211, 222, 232)
+#define COL_AUTHOR8_LIGHT RGB_COLORDATA(226, 234, 241)
+#define COL_AUTHOR9_DARK RGB_COLORDATA(209, 118, 0)
+#define COL_AUTHOR9_NORMAL RGB_COLORDATA(255, 226, 185)
+#define COL_AUTHOR9_LIGHT RGB_COLORDATA(255, 231, 199)
#define COLOR_CHANNEL_MERGE( _def_cDst, _def_cSrc, _def_cSrcTrans ) \
((BYTE)((((long)(_def_cDst)-(_def_cSrc))*(_def_cSrcTrans)+(((_def_cSrc)<<8L)|(_def_cDst)))>>8L))
@@ -116,7 +116,7 @@ typedef UINT32 ColorData;
class TOOLS_DLLPUBLIC Color
{
protected:
- ColorData mnColor;
+ ColorData mnColor;
public:
Color() { mnColor = COL_BLACK; }
@@ -129,41 +129,41 @@ public:
// This ctor is defined in svtools, not tools!
// constructor to create a tools-Color from ::basegfx::BColor
- explicit Color(const ::basegfx::BColor& rBColor)
- {
- mnColor = RGB_COLORDATA(
- UINT8((rBColor.getRed() * 255.0) + 0.5),
- UINT8((rBColor.getGreen() * 255.0) + 0.5),
+ explicit Color(const ::basegfx::BColor& rBColor)
+ {
+ mnColor = RGB_COLORDATA(
+ UINT8((rBColor.getRed() * 255.0) + 0.5),
+ UINT8((rBColor.getGreen() * 255.0) + 0.5),
UINT8((rBColor.getBlue() * 255.0) + 0.5));
}
- void SetRed( UINT8 nRed );
- UINT8 GetRed() const { return COLORDATA_RED( mnColor ); }
- void SetGreen( UINT8 nGreen );
- UINT8 GetGreen() const { return COLORDATA_GREEN( mnColor ); }
- void SetBlue( UINT8 nBlue );
- UINT8 GetBlue() const { return COLORDATA_BLUE( mnColor ); }
- void SetTransparency( UINT8 nTransparency );
- UINT8 GetTransparency() const { return COLORDATA_TRANSPARENCY( mnColor ); }
+ void SetRed( UINT8 nRed );
+ UINT8 GetRed() const { return COLORDATA_RED( mnColor ); }
+ void SetGreen( UINT8 nGreen );
+ UINT8 GetGreen() const { return COLORDATA_GREEN( mnColor ); }
+ void SetBlue( UINT8 nBlue );
+ UINT8 GetBlue() const { return COLORDATA_BLUE( mnColor ); }
+ void SetTransparency( UINT8 nTransparency );
+ UINT8 GetTransparency() const { return COLORDATA_TRANSPARENCY( mnColor ); }
- void SetColor( ColorData nColor ) { mnColor = nColor; }
- ColorData GetColor() const { return mnColor; }
- ColorData GetRGBColor() const { return COLORDATA_RGB( mnColor ); }
+ void SetColor( ColorData nColor ) { mnColor = nColor; }
+ ColorData GetColor() const { return mnColor; }
+ ColorData GetRGBColor() const { return COLORDATA_RGB( mnColor ); }
- UINT8 GetColorError( const Color& rCompareColor ) const;
+ UINT8 GetColorError( const Color& rCompareColor ) const;
- UINT8 GetLuminance() const;
- void IncreaseLuminance( UINT8 cLumInc );
- void DecreaseLuminance( UINT8 cLumDec );
+ UINT8 GetLuminance() const;
+ void IncreaseLuminance( UINT8 cLumInc );
+ void DecreaseLuminance( UINT8 cLumDec );
- void IncreaseContrast( UINT8 cContInc );
- void DecreaseContrast( UINT8 cContDec );
+ void IncreaseContrast( UINT8 cContInc );
+ void DecreaseContrast( UINT8 cContDec );
- void Invert();
+ void Invert();
- void Merge( const Color& rMergeColor, BYTE cTransparency );
+ void Merge( const Color& rMergeColor, BYTE cTransparency );
- BOOL IsRGBEqual( const Color& rColor ) const;
+ BOOL IsRGBEqual( const Color& rColor ) const;
// comparison with luminance thresholds
BOOL IsDark() const;
@@ -177,16 +177,16 @@ public:
static ColorData HSBtoRGB( USHORT nHue, USHORT nSat, USHORT nBri );
void RGBtoHSB( USHORT& nHue, USHORT& nSat, USHORT& nBri ) const;
- BOOL operator==( const Color& rColor ) const
+ BOOL operator==( const Color& rColor ) const
{ return (mnColor == rColor.mnColor); }
- BOOL operator!=( const Color& rColor ) const
+ BOOL operator!=( const Color& rColor ) const
{ return !(Color::operator==( rColor )); }
- SvStream& Read( SvStream& rIStm, BOOL bNewFormat = TRUE );
- SvStream& Write( SvStream& rOStm, BOOL bNewFormat = TRUE );
+ SvStream& Read( SvStream& rIStm, BOOL bNewFormat = TRUE );
+ SvStream& Write( SvStream& rOStm, BOOL bNewFormat = TRUE );
- TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Color& rColor );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Color& rColor );
+ TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Color& rColor );
+ TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Color& rColor );
// get ::basegfx::BColor from this color
::basegfx::BColor getBColor() const { return ::basegfx::BColor(GetRed() / 255.0, GetGreen() / 255.0, GetBlue() / 255.0); }
diff --git a/tools/inc/tools/config.hxx b/tools/inc/tools/config.hxx
index d18d410452b2..e8fa0eab1254 100644
--- a/tools/inc/tools/config.hxx
+++ b/tools/inc/tools/config.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,18 +41,18 @@ struct ImplGroupData;
class TOOLS_DLLPUBLIC Config
{
private:
- XubString maFileName;
- ByteString maGroupName;
- ImplConfigData* mpData;
- ImplGroupData* mpActGroup;
- ULONG mnDataUpdateId;
- USHORT mnLockCount;
- BOOL mbPersistence;
- BOOL mbDummy1;
+ XubString maFileName;
+ ByteString maGroupName;
+ ImplConfigData* mpData;
+ ImplGroupData* mpActGroup;
+ ULONG mnDataUpdateId;
+ USHORT mnLockCount;
+ BOOL mbPersistence;
+ BOOL mbDummy1;
#ifdef _CONFIG_CXX
- TOOLS_DLLPRIVATE BOOL ImplUpdateConfig() const;
- TOOLS_DLLPRIVATE ImplGroupData* ImplGetGroup() const;
+ TOOLS_DLLPRIVATE BOOL ImplUpdateConfig() const;
+ TOOLS_DLLPRIVATE ImplGroupData* ImplGetGroup() const;
#endif
public:
@@ -60,43 +60,43 @@ public:
Config( const XubString& rFileName );
~Config();
- const XubString& GetPathName() const { return maFileName; }
- static XubString GetDefDirectory();
- static XubString GetConfigName( const XubString& rPath, const XubString& rBaseName );
+ const XubString& GetPathName() const { return maFileName; }
+ static XubString GetDefDirectory();
+ static XubString GetConfigName( const XubString& rPath, const XubString& rBaseName );
- void SetGroup( const ByteString& rGroup );
- const ByteString& GetGroup() const { return maGroupName; }
- void DeleteGroup( const ByteString& rGroup );
- ByteString GetGroupName( USHORT nGroup ) const;
- USHORT GetGroupCount() const;
- BOOL HasGroup( const ByteString& rGroup ) const;
+ void SetGroup( const ByteString& rGroup );
+ const ByteString& GetGroup() const { return maGroupName; }
+ void DeleteGroup( const ByteString& rGroup );
+ ByteString GetGroupName( USHORT nGroup ) const;
+ USHORT GetGroupCount() const;
+ BOOL HasGroup( const ByteString& rGroup ) const;
- ByteString ReadKey( const ByteString& rKey ) const;
- UniString ReadKey( const ByteString& rKey, rtl_TextEncoding eEncoding ) const;
- ByteString ReadKey( const ByteString& rKey, const ByteString& rDefault ) const;
- void WriteKey( const ByteString& rKey, const ByteString& rValue );
- void WriteKey( const ByteString& rKey, const UniString& rValue, rtl_TextEncoding eEncoding );
- void DeleteKey( const ByteString& rKey );
- ByteString GetKeyName( USHORT nKey ) const;
- ByteString ReadKey( USHORT nKey ) const;
- USHORT GetKeyCount() const;
+ ByteString ReadKey( const ByteString& rKey ) const;
+ UniString ReadKey( const ByteString& rKey, rtl_TextEncoding eEncoding ) const;
+ ByteString ReadKey( const ByteString& rKey, const ByteString& rDefault ) const;
+ void WriteKey( const ByteString& rKey, const ByteString& rValue );
+ void WriteKey( const ByteString& rKey, const UniString& rValue, rtl_TextEncoding eEncoding );
+ void DeleteKey( const ByteString& rKey );
+ ByteString GetKeyName( USHORT nKey ) const;
+ ByteString ReadKey( USHORT nKey ) const;
+ USHORT GetKeyCount() const;
- void EnterLock();
- void LeaveLock();
- BOOL IsLocked() const { return (mnLockCount != 0); }
- BOOL Update();
- void Flush();
+ void EnterLock();
+ void LeaveLock();
+ BOOL IsLocked() const { return (mnLockCount != 0); }
+ BOOL Update();
+ void Flush();
- void EnablePersistence( BOOL bPersistence = TRUE )
+ void EnablePersistence( BOOL bPersistence = TRUE )
{ mbPersistence = bPersistence; }
- BOOL IsPersistenceEnabled() const { return mbPersistence; }
+ BOOL IsPersistenceEnabled() const { return mbPersistence; }
- void SetLineEnd( LineEnd eLineEnd );
- LineEnd GetLineEnd() const;
+ void SetLineEnd( LineEnd eLineEnd );
+ LineEnd GetLineEnd() const;
private:
- TOOLS_DLLPRIVATE Config( const Config& rConfig );
- TOOLS_DLLPRIVATE Config& operator = ( const Config& rConfig );
+ TOOLS_DLLPRIVATE Config( const Config& rConfig );
+ TOOLS_DLLPRIVATE Config& operator = ( const Config& rConfig );
};
#endif // _SV_CONFIG_HXX
diff --git a/tools/inc/tools/contnr.hxx b/tools/inc/tools/contnr.hxx
index d619b8979bc1..3995d6012dae 100644
--- a/tools/inc/tools/contnr.hxx
+++ b/tools/inc/tools/contnr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/date.hxx b/tools/inc/tools/date.hxx
index d87fa54b999f..f39698f4a69f 100644
--- a/tools/inc/tools/date.hxx
+++ b/tools/inc/tools/date.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ enum DayOfWeek { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY,
class TOOLS_DLLPUBLIC Date
{
private:
- sal_uInt32 nDate;
+ sal_uInt32 nDate;
public:
Date();
@@ -60,59 +60,59 @@ public:
( ( sal_uInt32( nMonth % 100 ) ) * 100 ) +
( ( sal_uInt32( nYear % 10000 ) ) * 10000); }
- void SetDate( sal_uInt32 nNewDate ) { nDate = nNewDate; }
- sal_uInt32 GetDate() const { return nDate; }
+ void SetDate( sal_uInt32 nNewDate ) { nDate = nNewDate; }
+ sal_uInt32 GetDate() const { return nDate; }
- void SetDay( USHORT nNewDay );
- void SetMonth( USHORT nNewMonth );
- void SetYear( USHORT nNewYear );
- USHORT GetDay() const { return (USHORT)(nDate % 100); }
- USHORT GetMonth() const { return (USHORT)((nDate / 100) % 100); }
- USHORT GetYear() const { return (USHORT)(nDate / 10000); }
+ void SetDay( USHORT nNewDay );
+ void SetMonth( USHORT nNewMonth );
+ void SetYear( USHORT nNewYear );
+ USHORT GetDay() const { return (USHORT)(nDate % 100); }
+ USHORT GetMonth() const { return (USHORT)((nDate / 100) % 100); }
+ USHORT GetYear() const { return (USHORT)(nDate / 10000); }
- DayOfWeek GetDayOfWeek() const;
- USHORT GetDayOfYear() const;
+ DayOfWeek GetDayOfWeek() const;
+ USHORT GetDayOfYear() const;
/** nMinimumNumberOfDaysInWeek: how many days of a week must reside in the
first week of a year. */
- USHORT GetWeekOfYear( DayOfWeek eStartDay = MONDAY,
+ USHORT GetWeekOfYear( DayOfWeek eStartDay = MONDAY,
sal_Int16 nMinimumNumberOfDaysInWeek = 4 ) const;
- USHORT GetDaysInMonth() const;
- USHORT GetDaysInYear() const { return (IsLeapYear()) ? 366 : 365; }
- BOOL IsLeapYear() const;
- BOOL IsValid() const;
+ USHORT GetDaysInMonth() const;
+ USHORT GetDaysInYear() const { return (IsLeapYear()) ? 366 : 365; }
+ BOOL IsLeapYear() const;
+ BOOL IsValid() const;
- BOOL IsBetween( const Date& rFrom, const Date& rTo ) const
+ BOOL IsBetween( const Date& rFrom, const Date& rTo ) const
{ return ((nDate >= rFrom.nDate) &&
(nDate <= rTo.nDate)); }
- BOOL operator ==( const Date& rDate ) const
+ BOOL operator ==( const Date& rDate ) const
{ return (nDate == rDate.nDate); }
- BOOL operator !=( const Date& rDate ) const
+ BOOL operator !=( const Date& rDate ) const
{ return (nDate != rDate.nDate); }
- BOOL operator >( const Date& rDate ) const
+ BOOL operator >( const Date& rDate ) const
{ return (nDate > rDate.nDate); }
- BOOL operator <( const Date& rDate ) const
+ BOOL operator <( const Date& rDate ) const
{ return (nDate < rDate.nDate); }
- BOOL operator >=( const Date& rDate ) const
+ BOOL operator >=( const Date& rDate ) const
{ return (nDate >= rDate.nDate); }
- BOOL operator <=( const Date& rDate ) const
+ BOOL operator <=( const Date& rDate ) const
{ return (nDate <= rDate.nDate); }
- Date& operator =( const Date& rDate )
+ Date& operator =( const Date& rDate )
{ nDate = rDate.nDate; return *this; }
- Date& operator +=( long nDays );
- Date& operator -=( long nDays );
- Date& operator ++();
- Date& operator --();
+ Date& operator +=( long nDays );
+ Date& operator -=( long nDays );
+ Date& operator ++();
+ Date& operator --();
#ifndef MPW33
- Date operator ++( int );
- Date operator --( int );
+ Date operator ++( int );
+ Date operator --( int );
#endif
- TOOLS_DLLPUBLIC friend Date operator +( const Date& rDate, long nDays );
- TOOLS_DLLPUBLIC friend Date operator -( const Date& rDate, long nDays );
- TOOLS_DLLPUBLIC friend long operator -( const Date& rDate1, const Date& rDate2 );
+ TOOLS_DLLPUBLIC friend Date operator +( const Date& rDate, long nDays );
+ TOOLS_DLLPUBLIC friend Date operator -( const Date& rDate, long nDays );
+ TOOLS_DLLPUBLIC friend long operator -( const Date& rDate1, const Date& rDate2 );
static long DateToDays( USHORT nDay, USHORT nMonth, USHORT nYear );
diff --git a/tools/inc/tools/datetime.hxx b/tools/inc/tools/datetime.hxx
index 280b5d81cef7..efc8a3ef5743 100644
--- a/tools/inc/tools/datetime.hxx
+++ b/tools/inc/tools/datetime.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,8 +79,8 @@ public:
{ Date::operator+=( nDays ); return *this; }
DateTime& operator -=( long nDays )
{ Date::operator-=( nDays ); return *this; }
- DateTime& operator +=( double fTimeInDays );
- DateTime& operator -=( double fTimeInDays )
+ DateTime& operator +=( double fTimeInDays );
+ DateTime& operator -=( double fTimeInDays )
{ return operator+=( -fTimeInDays ); }
DateTime& operator +=( const Time& rTime );
DateTime& operator -=( const Time& rTime );
@@ -92,8 +92,8 @@ public:
{ return operator+( rDateTime, -fTimeInDays ); }
TOOLS_DLLPUBLIC friend DateTime operator +( const DateTime& rDateTime, const Time& rTime );
TOOLS_DLLPUBLIC friend DateTime operator -( const DateTime& rDateTime, const Time& rTime );
- TOOLS_DLLPUBLIC friend double operator -( const DateTime& rDateTime1, const DateTime& rDateTime2 );
- TOOLS_DLLPUBLIC friend long operator -( const DateTime& rDateTime, const Date& rDate )
+ TOOLS_DLLPUBLIC friend double operator -( const DateTime& rDateTime1, const DateTime& rDateTime2 );
+ TOOLS_DLLPUBLIC friend long operator -( const DateTime& rDateTime, const Date& rDate )
{ return (const Date&) rDateTime - rDate; }
DateTime& operator =( const DateTime& rDateTime );
diff --git a/tools/inc/tools/debug.hxx b/tools/inc/tools/debug.hxx
index 83587597312d..3b3c753e5473 100644
--- a/tools/inc/tools/debug.hxx
+++ b/tools/inc/tools/debug.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -724,7 +724,7 @@ typedef const sal_Char* (*DbgUsr)(const void* pThis );
#define DBG_ENDAPPEXECUTE() ((void)0)
#define DBG_MEMTEST() ((void)0)
-#define DBG_MEMTEST_PTR( p ) ((void)0)
+#define DBG_MEMTEST_PTR( p ) ((void)0)
#define DBG_NAME( aName )
#define DBG_NAMEEX( aName )
diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h
index 4b7ce44df320..e20884022bee 100644
--- a/tools/inc/tools/diagnose_ex.h
+++ b/tools/inc/tools/diagnose_ex.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/download.hxx b/tools/inc/tools/download.hxx
index 7f4363631ebf..758e71c75491 100644
--- a/tools/inc/tools/download.hxx
+++ b/tools/inc/tools/download.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,13 +33,13 @@
class String;
class Link;
-#define DOWNLOAD_SUCCESS 0
-#define DOWNLOAD_CONNECT 1
-#define DOWNLOAD_LOCATION 2
-#define DOWNLOAD_ABORT 3
-#define DOWNLOAD_FILEACCESS 4
-#define DOWNLOAD_INSTALL 5
-#define DOWNLOAD_ERROR 6
+#define DOWNLOAD_SUCCESS 0
+#define DOWNLOAD_CONNECT 1
+#define DOWNLOAD_LOCATION 2
+#define DOWNLOAD_ABORT 3
+#define DOWNLOAD_FILEACCESS 4
+#define DOWNLOAD_INSTALL 5
+#define DOWNLOAD_ERROR 6
class Downloader
/* ***************************************************************************
diff --git a/tools/inc/tools/dynary.hxx b/tools/inc/tools/dynary.hxx
index abbd7d93d2ff..85a2cac7a917 100644
--- a/tools/inc/tools/dynary.hxx
+++ b/tools/inc/tools/dynary.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,9 +76,9 @@ public:
class ClassName : private DynArray \
{ \
public: \
- using DynArray::SetSize; \
- using DynArray::GetSize; \
- using DynArray::Clear; \
+ using DynArray::SetSize; \
+ using DynArray::GetSize; \
+ using DynArray::Clear; \
\
ClassName( ULONG nSize = 16 ) : \
DynArray( nSize ) {} \
diff --git a/tools/inc/tools/eacopier.hxx b/tools/inc/tools/eacopier.hxx
index 8009cd38209c..c2b0e7fb5161 100644
--- a/tools/inc/tools/eacopier.hxx
+++ b/tools/inc/tools/eacopier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,14 +34,14 @@ class SvFileStream;
class EA_Copier
{
- static EA_Copier* _pCopier;
+ static EA_Copier* _pCopier;
public:
- static void Register( EA_Copier* pCopier );
- static EA_Copier* Get();
+ static void Register( EA_Copier* pCopier );
+ static EA_Copier* Get();
- virtual ~EA_Copier();
- virtual BOOL Copy( const SvFileStream& rFrom, const SvFileStream& rTo ) const = 0;
+ virtual ~EA_Copier();
+ virtual BOOL Copy( const SvFileStream& rFrom, const SvFileStream& rTo ) const = 0;
};
#endif
diff --git a/tools/inc/tools/errcode.hxx b/tools/inc/tools/errcode.hxx
index 35e75ca33072..aa78bc2e2157 100644
--- a/tools/inc/tools/errcode.hxx
+++ b/tools/inc/tools/errcode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -119,10 +119,10 @@ inline ULONG ERRCODE_TOERROR( ULONG x )
#define ERRCODE_AREA_SVX_END (ERRCODE_AREA_SO-1)
#define ERRCODE_AREA_SO (9UL << ERRCODE_AREA_SHIFT)
#define ERRCODE_AREA_SO_END (ERRCODE_AREA_SBX-1)
-#define ERRCODE_AREA_SBX (10UL << ERRCODE_AREA_SHIFT)
-#define ERRCODE_AREA_SBX_END ((11UL << ERRCODE_AREA_SHIFT) - 1)
-#define ERRCODE_AREA_DB (11UL << ERRCODE_AREA_SHIFT)
-#define ERRCODE_AREA_DB_END ((12UL << ERRCODE_AREA_SHIFT) - 1)
+#define ERRCODE_AREA_SBX (10UL << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_SBX_END ((11UL << ERRCODE_AREA_SHIFT) - 1)
+#define ERRCODE_AREA_DB (11UL << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_DB_END ((12UL << ERRCODE_AREA_SHIFT) - 1)
#define ERRCODE_AREA_JAVA (12UL << ERRCODE_AREA_SHIFT)
#define ERRCODE_AREA_JAVA_END ((13UL << ERRCODE_AREA_SHIFT) - 1)
#define ERRCODE_AREA_UUI (13UL << ERRCODE_AREA_SHIFT)
@@ -172,9 +172,9 @@ inline ULONG ERRCODE_TOERROR( ULONG x )
#define ERRCODE_CLASS_EXPORT (18UL << ERRCODE_CLASS_SHIFT)
#define ERRCODE_CLASS_FILTER (19UL << ERRCODE_CLASS_SHIFT)
#define ERRCODE_CLASS_SO (20UL << ERRCODE_CLASS_SHIFT)
-#define ERRCODE_CLASS_SBX (21UL << ERRCODE_CLASS_SHIFT)
-#define ERRCODE_CLASS_RUNTIME (22UL << ERRCODE_CLASS_SHIFT)
-#define ERRCODE_CLASS_COMPILER (23UL << ERRCODE_CLASS_SHIFT)
+#define ERRCODE_CLASS_SBX (21UL << ERRCODE_CLASS_SHIFT)
+#define ERRCODE_CLASS_RUNTIME (22UL << ERRCODE_CLASS_SHIFT)
+#define ERRCODE_CLASS_COMPILER (23UL << ERRCODE_CLASS_SHIFT)
#define ERRCODE_NONE (0UL)
#define ERRCODE_ABORT ERRCODE_IO_ABORT
@@ -237,23 +237,23 @@ inline ULONG ERRCODE_TOERROR( ULONG x )
ERRCODE_AREA_IO)
#define ERRCODE_IO_RECURSIVE (30UL |ERRCODE_CLASS_PARAMETER|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_NAMETOOLONG (31UL |ERRCODE_CLASS_PARAMETER|\
+#define ERRCODE_IO_NAMETOOLONG (31UL |ERRCODE_CLASS_PARAMETER|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_INVALIDLENGTH (32UL |ERRCODE_CLASS_PARAMETER|\
+#define ERRCODE_IO_INVALIDLENGTH (32UL |ERRCODE_CLASS_PARAMETER|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_CURRENTDIR (33UL |ERRCODE_CLASS_PARAMETER|\
+#define ERRCODE_IO_CURRENTDIR (33UL |ERRCODE_CLASS_PARAMETER|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_NOTSAMEDEVICE (34UL |ERRCODE_CLASS_PARAMETER|\
+#define ERRCODE_IO_NOTSAMEDEVICE (34UL |ERRCODE_CLASS_PARAMETER|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_DEVICENOTREADY (35UL |ERRCODE_CLASS_READ|\
+#define ERRCODE_IO_DEVICENOTREADY (35UL |ERRCODE_CLASS_READ|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_BADCRC (36UL |ERRCODE_CLASS_READ|\
+#define ERRCODE_IO_BADCRC (36UL |ERRCODE_CLASS_READ|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_WRITEPROTECTED (37UL |ERRCODE_CLASS_ACCESS|\
+#define ERRCODE_IO_WRITEPROTECTED (37UL |ERRCODE_CLASS_ACCESS|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_BROKENPACKAGE (38UL |ERRCODE_CLASS_FORMAT|\
+#define ERRCODE_IO_BROKENPACKAGE (38UL |ERRCODE_CLASS_FORMAT|\
ERRCODE_AREA_IO)
-#define ERRCODE_IO_NOTSTORABLEINBINARYFORMAT (39UL |ERRCODE_CLASS_FORMAT|\
+#define ERRCODE_IO_NOTSTORABLEINBINARYFORMAT (39UL |ERRCODE_CLASS_FORMAT|\
ERRCODE_AREA_IO)
// FsysErrorCodes
diff --git a/tools/inc/tools/errinf.hxx b/tools/inc/tools/errinf.hxx
index 4d4779bac509..2a0afba0884c 100644
--- a/tools/inc/tools/errinf.hxx
+++ b/tools/inc/tools/errinf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -203,14 +203,14 @@ class TOOLS_DLLPUBLIC ErrorHandler
private:
ErrHdl_Impl* pImpl;
- static USHORT HandleError_Impl( ULONG lId,
- USHORT nFlags,
- BOOL bJustCreateString,
+ static USHORT HandleError_Impl( ULONG lId,
+ USHORT nFlags,
+ BOOL bJustCreateString,
String & rError);
protected:
- virtual BOOL CreateString( const ErrorInfo *,
+ virtual BOOL CreateString( const ErrorInfo *,
String &, USHORT& nMask ) const = 0;
- BOOL ForwCreateString( const ErrorInfo*,
+ BOOL ForwCreateString( const ErrorInfo*,
String&, USHORT& nMask ) const;
public:
@@ -232,7 +232,7 @@ public:
class TOOLS_DLLPUBLIC SimpleErrorHandler : private ErrorHandler
{
protected:
- virtual BOOL CreateString( const ErrorInfo*, String &,
+ virtual BOOL CreateString( const ErrorInfo*, String &,
USHORT &nMask ) const;
public:
diff --git a/tools/inc/tools/extendapplicationenvironment.hxx b/tools/inc/tools/extendapplicationenvironment.hxx
index 3ea5cb7c6b14..91d57e08fbbb 100644
--- a/tools/inc/tools/extendapplicationenvironment.hxx
+++ b/tools/inc/tools/extendapplicationenvironment.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/fldunit.hxx b/tools/inc/tools/fldunit.hxx
index 60e662e9c7a5..8df08b979405 100644
--- a/tools/inc/tools/fldunit.hxx
+++ b/tools/inc/tools/fldunit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/fontenum.hxx b/tools/inc/tools/fontenum.hxx
index d514f2b1c23c..185e3ec95d00 100644
--- a/tools/inc/tools/fontenum.hxx
+++ b/tools/inc/tools/fontenum.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -129,20 +129,20 @@ enum FontStrikeout { STRIKEOUT_NONE, STRIKEOUT_SINGLE, STRIKEOUT_DOUBLE,
#define ENUM_FONTEMPHASISMARK_DECLARED
typedef USHORT FontEmphasisMark;
-#define EMPHASISMARK_NONE ((FontEmphasisMark)0x0000)
-#define EMPHASISMARK_DOT ((FontEmphasisMark)0x0001)
-#define EMPHASISMARK_CIRCLE ((FontEmphasisMark)0x0002)
-#define EMPHASISMARK_DISC ((FontEmphasisMark)0x0003)
-#define EMPHASISMARK_ACCENT ((FontEmphasisMark)0x0004)
-#define EMPHASISMARK_STYLE ((FontEmphasisMark)0x00FF)
-#define EMPHASISMARK_POS_ABOVE ((FontEmphasisMark)0x1000)
-#define EMPHASISMARK_POS_BELOW ((FontEmphasisMark)0x2000)
+#define EMPHASISMARK_NONE ((FontEmphasisMark)0x0000)
+#define EMPHASISMARK_DOT ((FontEmphasisMark)0x0001)
+#define EMPHASISMARK_CIRCLE ((FontEmphasisMark)0x0002)
+#define EMPHASISMARK_DISC ((FontEmphasisMark)0x0003)
+#define EMPHASISMARK_ACCENT ((FontEmphasisMark)0x0004)
+#define EMPHASISMARK_STYLE ((FontEmphasisMark)0x00FF)
+#define EMPHASISMARK_POS_ABOVE ((FontEmphasisMark)0x1000)
+#define EMPHASISMARK_POS_BELOW ((FontEmphasisMark)0x2000)
// Only for kompability
-#define EMPHASISMARK_DOTS_ABOVE (EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE)
-#define EMPHASISMARK_DOTS_BELOW (EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW)
-#define EMPHASISMARK_SIDE_DOTS (EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE)
-#define EMPHASISMARK_CIRCLE_ABOVE (EMPHASISMARK_CIRCLE | EMPHASISMARK_POS_ABOVE)
+#define EMPHASISMARK_DOTS_ABOVE (EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE)
+#define EMPHASISMARK_DOTS_BELOW (EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW)
+#define EMPHASISMARK_SIDE_DOTS (EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE)
+#define EMPHASISMARK_CIRCLE_ABOVE (EMPHASISMARK_CIRCLE | EMPHASISMARK_POS_ABOVE)
#endif
@@ -170,6 +170,6 @@ enum FontAntiAlias { ANTIALIAS_DONTKNOW, ANTIALIAS_FALSE, ANTIALIAS_TRUE };
#endif
-#endif // _TOOLS_FONTENUM_HXX
+#endif // _TOOLS_FONTENUM_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/tools/fract.hxx b/tools/inc/tools/fract.hxx
index b7d3f1867505..41fe89add7ac 100644
--- a/tools/inc/tools/fract.hxx
+++ b/tools/inc/tools/fract.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index 01b61c03829f..2f252216018a 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,58 +52,58 @@ struct FileCopier_Impl;
class SvFileStream;
class BigInt;
-#define FSYS_BUFSIZE 1024
-#define FSYS_SHORTNAME_DELIMITER '@'
+#define FSYS_BUFSIZE 1024
+#define FSYS_SHORTNAME_DELIMITER '@'
// FSysAccess
typedef int FSysAccess;
-#define FSYS_ACCESS_FORCED 1
-#define FSYS_ACCESS_FLOPPY FSYS_ACCESS_FORCED
-#define FSYS_ACCESS_CACHED 2
+#define FSYS_ACCESS_FORCED 1
+#define FSYS_ACCESS_FLOPPY FSYS_ACCESS_FORCED
+#define FSYS_ACCESS_CACHED 2
// DirEntryKind
typedef int DirEntryKind;
-#define FSYS_KIND_NONE ((DirEntryKind) 0)
-#define FSYS_KIND_UNKNOWN FSYS_KIND_NONE
-#define FSYS_KIND_FILE ((DirEntryKind) 1)
-#define FSYS_KIND_DIR ((DirEntryKind) 2)
-#define FSYS_KIND_DEV ((DirEntryKind) 4)
-#define FSYS_KIND_BLOCK ((DirEntryKind) 8)
-#define FSYS_KIND_CHAR ((DirEntryKind) 16)
-#define FSYS_KIND_WILD ((DirEntryKind) 32)
-#define FSYS_KIND_BLOCK_REMOTE ((DirEntryKind) 64) //TPF: fuer RFS
-#define FSYS_KIND_REMOVEABLE ((DirEntryKind) 128)
-#define FSYS_KIND_FIXED ((DirEntryKind) 256)
-#define FSYS_KIND_REMOTE ((DirEntryKind) 512)
-#define FSYS_KIND_RAM ((DirEntryKind) 1024)
-#define FSYS_KIND_CDROM ((DirEntryKind) 2048)
-#define FSYS_KIND_ALL ((DirEntryKind) 4095)
-#define FSYS_KIND_VISIBLE ((DirEntryKind) 4096)
+#define FSYS_KIND_NONE ((DirEntryKind) 0)
+#define FSYS_KIND_UNKNOWN FSYS_KIND_NONE
+#define FSYS_KIND_FILE ((DirEntryKind) 1)
+#define FSYS_KIND_DIR ((DirEntryKind) 2)
+#define FSYS_KIND_DEV ((DirEntryKind) 4)
+#define FSYS_KIND_BLOCK ((DirEntryKind) 8)
+#define FSYS_KIND_CHAR ((DirEntryKind) 16)
+#define FSYS_KIND_WILD ((DirEntryKind) 32)
+#define FSYS_KIND_BLOCK_REMOTE ((DirEntryKind) 64) //TPF: fuer RFS
+#define FSYS_KIND_REMOVEABLE ((DirEntryKind) 128)
+#define FSYS_KIND_FIXED ((DirEntryKind) 256)
+#define FSYS_KIND_REMOTE ((DirEntryKind) 512)
+#define FSYS_KIND_RAM ((DirEntryKind) 1024)
+#define FSYS_KIND_CDROM ((DirEntryKind) 2048)
+#define FSYS_KIND_ALL ((DirEntryKind) 4095)
+#define FSYS_KIND_VISIBLE ((DirEntryKind) 4096)
// FSysSort
typedef int FSysSort;
-#define FSYS_SORT_NONE ((FSysSort) 0)
-#define FSYS_SORT_SIZE ((FSysSort) 1)
-#define FSYS_SORT_CREATED ((FSysSort) 2)
-#define FSYS_SORT_MODIFYED ((FSysSort) 4)
-#define FSYS_SORT_ACCESSED ((FSysSort) 8)
-#define FSYS_SORT_ASCENDING ((FSysSort) 16)
-#define FSYS_SORT_DESCENDING ((FSysSort) 32)
-#define FSYS_SORT_EXT ((FSysSort) 64)
-#define FSYS_SORT_NAME ((FSysSort) 128)
-#define FSYS_SORT_KIND ((FSysSort) 256)
-#define FSYS_SORT_CREATOR ((FSysSort) 512)
-#define FSYS_SORT_END ((FSysSort)1024)
+#define FSYS_SORT_NONE ((FSysSort) 0)
+#define FSYS_SORT_SIZE ((FSysSort) 1)
+#define FSYS_SORT_CREATED ((FSysSort) 2)
+#define FSYS_SORT_MODIFYED ((FSysSort) 4)
+#define FSYS_SORT_ACCESSED ((FSysSort) 8)
+#define FSYS_SORT_ASCENDING ((FSysSort) 16)
+#define FSYS_SORT_DESCENDING ((FSysSort) 32)
+#define FSYS_SORT_EXT ((FSysSort) 64)
+#define FSYS_SORT_NAME ((FSysSort) 128)
+#define FSYS_SORT_KIND ((FSysSort) 256)
+#define FSYS_SORT_CREATOR ((FSysSort) 512)
+#define FSYS_SORT_END ((FSysSort)1024)
// DirEntryFlag
enum DirEntryFlag
{
FSYS_FLAG_NORMAL,
- FSYS_FLAG_VOLUME, // Dir( FSYS_FLAG_VOLUME ) und GetDevice()
- FSYS_FLAG_ABSROOT, // z.B. "a:\" oder "\"
- FSYS_FLAG_RELROOT, // z.B. "a:", "a:." oder "."
+ FSYS_FLAG_VOLUME, // Dir( FSYS_FLAG_VOLUME ) und GetDevice()
+ FSYS_FLAG_ABSROOT, // z.B. "a:\" oder "\"
+ FSYS_FLAG_RELROOT, // z.B. "a:", "a:." oder "."
FSYS_FLAG_CURRENT = FSYS_FLAG_RELROOT, // Synonym fuer FSYS_FLAG_RELROOT
- FSYS_FLAG_PARENT, // z.B. ".."
+ FSYS_FLAG_PARENT, // z.B. ".."
FSYS_FLAG_INVALID
};
@@ -130,20 +130,20 @@ enum FSysPathStyle
// FSysAction
typedef int FSysAction;
-#define FSYS_ACTION_COPYFILE 0x01 // not only create hardlink
-#define FSYS_ACTION_RECURSIVE 0x02 // deep through dircetory structure
-#define FSYS_ACTION_USERECYCLEBIN 0x04 // move to recycle bin
-#define FSYS_ACTION_MOVE 0x08 // delete after copy (=> move)
-#define FSYS_ACTION_CONTINUE 0x10 // continue on error
-#define FSYS_ACTION_KEEP_EXISTING 0x20 // do not overwrite objects in
+#define FSYS_ACTION_COPYFILE 0x01 // not only create hardlink
+#define FSYS_ACTION_RECURSIVE 0x02 // deep through dircetory structure
+#define FSYS_ACTION_USERECYCLEBIN 0x04 // move to recycle bin
+#define FSYS_ACTION_MOVE 0x08 // delete after copy (=> move)
+#define FSYS_ACTION_CONTINUE 0x10 // continue on error
+#define FSYS_ACTION_KEEP_EXISTING 0x20 // do not overwrite objects in
// target folder in case of name
// clashes
-#define FSYS_ACTION_STANDARD 0
+#define FSYS_ACTION_STANDARD 0
// Fuer RFS
-#define RFS_IDENTIFIER "-rfs-"
-#define RFS_LOWER "-rfs-"
-#define RFS_UPPER "-RFS-"
+#define RFS_IDENTIFIER "-rfs-"
+#define RFS_LOWER "-rfs-"
+#define RFS_UPPER "-RFS-"
typedef ULONG FSysError;
@@ -181,65 +181,65 @@ String FSys2Gui( const String& rStr );
struct dirent;
class TOOLS_DLLPUBLIC FileStat
{
- friend class CORmFSys;
- friend class Dir;
- friend struct DirReader_Impl;
- friend void ImpInitFileStat( FileStat&, dirent* );
-
- ULONG nError;
- DirEntryKind nKindFlags;
- ULONG nSize;
- String aCreator;
- String aType;
- Date aDateCreated;
- Time aTimeCreated;
- Date aDateModified;
- Time aTimeModified;
- Date aDateAccessed;
- Time aTimeAccessed;
+ friend class CORmFSys;
+ friend class Dir;
+ friend struct DirReader_Impl;
+ friend void ImpInitFileStat( FileStat&, dirent* );
+
+ ULONG nError;
+ DirEntryKind nKindFlags;
+ ULONG nSize;
+ String aCreator;
+ String aType;
+ Date aDateCreated;
+ Time aTimeCreated;
+ Date aDateModified;
+ Time aTimeModified;
+ Date aDateAccessed;
+ Time aTimeAccessed;
private:
- TOOLS_DLLPRIVATE void ImpInit( void* );
+ TOOLS_DLLPRIVATE void ImpInit( void* );
protected:
// Implementation
- FileStat( const void *pInfo, // CInfoPBRec
+ FileStat( const void *pInfo, // CInfoPBRec
const void *pVolInfo ); // ParamBlockRec
public:
FileStat();
FileStat( const DirEntry& rDirEntry,
FSysAccess nAccess = FSYS_ACCESS_FLOPPY );
- BOOL Update( const DirEntry& rDirEntry,
+ BOOL Update( const DirEntry& rDirEntry,
BOOL bForceAccess = TRUE );
- ULONG GetError() const { return ERRCODE_TOERROR(nError); }
- ULONG GetErrorCode() const { return nError; }
+ ULONG GetError() const { return ERRCODE_TOERROR(nError); }
+ ULONG GetErrorCode() const { return nError; }
- ULONG GetSize() const { return nSize; }
+ ULONG GetSize() const { return nSize; }
- DirEntryKind GetKind() const { return nKindFlags; }
- BOOL IsKind( DirEntryKind nKind ) const;
+ DirEntryKind GetKind() const { return nKindFlags; }
+ BOOL IsKind( DirEntryKind nKind ) const;
- String GetType() const { return aType; }
- String GetCreator() const { return aCreator; }
+ String GetType() const { return aType; }
+ String GetCreator() const { return aCreator; }
- Date DateCreated() const { return aDateCreated; }
- Time TimeCreated() const { return aTimeCreated; }
- Date DateModified() const { return aDateModified; }
- Time TimeModified() const { return aTimeModified; }
- Date DateAccessed() const { return aDateAccessed; }
- Time TimeAccessed() const { return aTimeAccessed; }
- BOOL IsYounger( const FileStat& rIsOlder ) const;
+ Date DateCreated() const { return aDateCreated; }
+ Time TimeCreated() const { return aTimeCreated; }
+ Date DateModified() const { return aDateModified; }
+ Time TimeModified() const { return aTimeModified; }
+ Date DateAccessed() const { return aDateAccessed; }
+ Time TimeAccessed() const { return aTimeAccessed; }
+ BOOL IsYounger( const FileStat& rIsOlder ) const;
#define TF_FSYS_READONLY_FLAG
- static ULONG SetReadOnlyFlag( const DirEntry &rEntry, BOOL bRO = TRUE );
- static BOOL GetReadOnlyFlag( const DirEntry &rEntry );
- static BOOL HasReadOnlyFlag();
+ static ULONG SetReadOnlyFlag( const DirEntry &rEntry, BOOL bRO = TRUE );
+ static BOOL GetReadOnlyFlag( const DirEntry &rEntry );
+ static BOOL HasReadOnlyFlag();
- static ErrCode QueryDiskSpace( const String &rPath,
+ static ErrCode QueryDiskSpace( const String &rPath,
BigInt &rFreeBytes, BigInt &rTotalBytes );
- static void SetDateTime( const String& rFileName,
+ static void SetDateTime( const String& rFileName,
const DateTime& rNewDateTime );
};
@@ -257,15 +257,15 @@ friend struct DirReader_Impl;
friend class FileCopier;
#ifdef FEAT_FSYS_DOUBLESPEED
- FileStat* pStat; // optional
+ FileStat* pStat; // optional
#endif
- ByteString aName;
- DirEntry* pParent;
- ULONG nError;
- DirEntryFlag eFlag;
+ ByteString aName;
+ DirEntry* pParent;
+ ULONG nError;
+ DirEntryFlag eFlag;
private:
- TOOLS_DLLPRIVATE DirEntry( const ByteString& rInitName,
+ TOOLS_DLLPRIVATE DirEntry( const ByteString& rInitName,
DirEntryFlag aDirFlag,
FSysPathStyle eStyle );
@@ -273,32 +273,32 @@ private:
friend class FileStat;
friend const char* ImpCheckDirEntry( const void* p );
- TOOLS_DLLPRIVATE FSysError ImpParseName( const ByteString& rIntiName,
+ TOOLS_DLLPRIVATE FSysError ImpParseName( const ByteString& rIntiName,
FSysPathStyle eParser );
- TOOLS_DLLPRIVATE FSysError ImpParseOs2Name( const ByteString& rPfad,
+ TOOLS_DLLPRIVATE FSysError ImpParseOs2Name( const ByteString& rPfad,
FSysPathStyle eStyle );
- TOOLS_DLLPRIVATE FSysError ImpParseUnixName( const ByteString& rPfad,
+ TOOLS_DLLPRIVATE FSysError ImpParseUnixName( const ByteString& rPfad,
FSysPathStyle eStyle );
- TOOLS_DLLPRIVATE USHORT ImpTryUrl( DirEntryStack& rStack, const String& rPfad, FSysPathStyle eStyle );
- TOOLS_DLLPRIVATE const DirEntry* ImpGetTopPtr() const;
- TOOLS_DLLPRIVATE DirEntry* ImpGetTopPtr();
- TOOLS_DLLPRIVATE DirEntry* ImpGetPreTopPtr();
- TOOLS_DLLPRIVATE BOOL ImpToRel( String aStart );
+ TOOLS_DLLPRIVATE USHORT ImpTryUrl( DirEntryStack& rStack, const String& rPfad, FSysPathStyle eStyle );
+ TOOLS_DLLPRIVATE const DirEntry* ImpGetTopPtr() const;
+ TOOLS_DLLPRIVATE DirEntry* ImpGetTopPtr();
+ TOOLS_DLLPRIVATE DirEntry* ImpGetPreTopPtr();
+ TOOLS_DLLPRIVATE BOOL ImpToRel( String aStart );
protected:
- void ImpTrim( FSysPathStyle eStyle );
- const ByteString& ImpTheName() const;
- DirEntryFlag ImpTheFlag() const { return eFlag; };
- DirEntry* ImpChangeParent( DirEntry* pNewParent, BOOL bNormalize = TRUE );
- DirEntry* ImpGetParent() { return pParent; }
+ void ImpTrim( FSysPathStyle eStyle );
+ const ByteString& ImpTheName() const;
+ DirEntryFlag ImpTheFlag() const { return eFlag; };
+ DirEntry* ImpChangeParent( DirEntry* pNewParent, BOOL bNormalize = TRUE );
+ DirEntry* ImpGetParent() { return pParent; }
#ifdef FEAT_FSYS_DOUBLESPEED
- FileStat* ImpGetStat() const { return pStat; }
- void ImpSetStat( FileStat *p ) { pStat = p; }
+ FileStat* ImpGetStat() const { return pStat; }
+ void ImpSetStat( FileStat *p ) { pStat = p; }
#endif
protected:
- void SetError( ULONG nErr ) { nError = nErr; }
- DirEntry* GetParent() { return pParent; }
+ void SetError( ULONG nErr ) { nError = nErr; }
+ DirEntry* GetParent() { return pParent; }
public:
DirEntry( DirEntryFlag aDirFlag = FSYS_FLAG_CURRENT );
DirEntry( const DirEntry& rEntry );
@@ -308,65 +308,65 @@ public:
FSysPathStyle eParser = FSYS_STYLE_HOST );
~DirEntry();
- BOOL IsLongNameOnFAT() const;
- BOOL IsCaseSensitive (FSysPathStyle eFormatter = FSYS_STYLE_HOST) const;
+ BOOL IsLongNameOnFAT() const;
+ BOOL IsCaseSensitive (FSysPathStyle eFormatter = FSYS_STYLE_HOST) const;
- ULONG GetError() const { return nError; }
- BOOL IsValid() const;
- DirEntryFlag GetFlag() const { return eFlag; };
+ ULONG GetError() const { return nError; }
+ BOOL IsValid() const;
+ DirEntryFlag GetFlag() const { return eFlag; };
- void SetExtension( const String& rExt, char cSep = '.' );
- String GetExtension( char cSep = '.' ) const;
- String CutExtension( char cSep = '.' );
- void SetName( const String& rName, FSysPathStyle eFormatter = FSYS_STYLE_HOST );
+ void SetExtension( const String& rExt, char cSep = '.' );
+ String GetExtension( char cSep = '.' ) const;
+ String CutExtension( char cSep = '.' );
+ void SetName( const String& rName, FSysPathStyle eFormatter = FSYS_STYLE_HOST );
inline const String GetNameDirect() const { return String(aName, osl_getThreadTextEncoding()); }
- String GetName( FSysPathStyle eFormatter = FSYS_STYLE_HOST ) const;
- String CutName( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
- void SetBase( const String& rBase, char cSep = '.' );
- String GetBase(char cSep = '.' ) const;
- DirEntry GetPath() const;
- DirEntry GetDevice() const;
- String GetVolume() const;
- String GetFull( FSysPathStyle eFormatter = FSYS_STYLE_HOST,
+ String GetName( FSysPathStyle eFormatter = FSYS_STYLE_HOST ) const;
+ String CutName( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
+ void SetBase( const String& rBase, char cSep = '.' );
+ String GetBase(char cSep = '.' ) const;
+ DirEntry GetPath() const;
+ DirEntry GetDevice() const;
+ String GetVolume() const;
+ String GetFull( FSysPathStyle eFormatter = FSYS_STYLE_HOST,
BOOL bWithDelimiter = FALSE,
USHORT nMaxChars = STRING_MAXLEN ) const;
- DirEntry TempName( DirEntryKind = FSYS_KIND_NONE ) const;
+ DirEntry TempName( DirEntryKind = FSYS_KIND_NONE ) const;
static const DirEntry& SetTempNameBase( const String &rBaseName );
- BOOL MakeShortName( const String& rLongName,
+ BOOL MakeShortName( const String& rLongName,
DirEntryKind eCreateKind = FSYS_KIND_NONE,
BOOL bUseTilde = TRUE,
FSysPathStyle eStyle = FSYS_STYLE_DETECT );
- bool IsAbs() const;
- BOOL ToAbs();
- BOOL Find( const String& rPfad, char cDelim = 0 );
- BOOL ToRel();
- BOOL ToRel( const DirEntry& rRefDir );
- USHORT CutRelParents();
+ bool IsAbs() const;
+ BOOL ToAbs();
+ BOOL Find( const String& rPfad, char cDelim = 0 );
+ BOOL ToRel();
+ BOOL ToRel( const DirEntry& rRefDir );
+ USHORT CutRelParents();
- BOOL SetCWD( BOOL bSloppy = FALSE ) const;
- BOOL MakeDir( BOOL bSloppy = FALSE ) const;
- BOOL Exists( FSysAccess nAccess = FSYS_ACCESS_FLOPPY ) const;
- BOOL First();
+ BOOL SetCWD( BOOL bSloppy = FALSE ) const;
+ BOOL MakeDir( BOOL bSloppy = FALSE ) const;
+ BOOL Exists( FSysAccess nAccess = FSYS_ACCESS_FLOPPY ) const;
+ BOOL First();
- USHORT Level() const;
- const DirEntry& operator []( USHORT nParentLevel ) const;
- BOOL Contains( const DirEntry &rSubEntry ) const;
+ USHORT Level() const;
+ const DirEntry& operator []( USHORT nParentLevel ) const;
+ BOOL Contains( const DirEntry &rSubEntry ) const;
- FSysError CopyTo( const DirEntry& rDestDir,
+ FSysError CopyTo( const DirEntry& rDestDir,
FSysAction nActions = FSYS_ACTION_STANDARD ) const;
- FSysError MoveTo( const DirEntry& rDestDir ) const;
- FSysError Kill( FSysAction nActions = FSYS_ACTION_STANDARD ) const;
-
- DirEntry& operator =( const DirEntry& rOrigDir );
- DirEntry operator +( const DirEntry& rSubDir ) const;
- DirEntry& operator +=( const DirEntry& rSubDir );
- BOOL operator ==( const DirEntry& rAnotherDir ) const;
- BOOL operator !=( const DirEntry& rAnotherDir ) const
+ FSysError MoveTo( const DirEntry& rDestDir ) const;
+ FSysError Kill( FSysAction nActions = FSYS_ACTION_STANDARD ) const;
+
+ DirEntry& operator =( const DirEntry& rOrigDir );
+ DirEntry operator +( const DirEntry& rSubDir ) const;
+ DirEntry& operator +=( const DirEntry& rSubDir );
+ BOOL operator ==( const DirEntry& rAnotherDir ) const;
+ BOOL operator !=( const DirEntry& rAnotherDir ) const
{ return !(DirEntry::operator==( rAnotherDir )); }
- StringCompare NameCompare( const DirEntry &rWith ) const;
+ StringCompare NameCompare( const DirEntry &rWith ) const;
inline StringCompare NameCompareDirect( const DirEntry &rWith ) const
{
#ifdef UNX
@@ -376,13 +376,13 @@ public:
#endif
}
- static String GetAccessDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
- static String GetSearchDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
- static USHORT GetMaxNameLen( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
+ static String GetAccessDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
+ static String GetSearchDelimiter( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
+ static USHORT GetMaxNameLen( FSysPathStyle eFormatter = FSYS_STYLE_HOST );
static FSysPathStyle GetPathStyle( const String &rDevice );
- static String ConvertNameToSystem( const String & rName );
- static String ConvertSystemToName( const String & rName );
- static BOOL IsRFSAvailable();
+ static String ConvertNameToSystem( const String & rName );
+ static String ConvertSystemToName( const String & rName );
+ static BOOL IsRFSAvailable();
};
// --------------
@@ -391,21 +391,21 @@ public:
class TOOLS_DLLPUBLIC FileCopier
{
- DirEntry aSource;
- DirEntry aTarget;
- ULONG nBytesTotal;
- ULONG nBytesCopied;
- Link aProgressLink;
- USHORT nBlockSize;
- FileCopier_Impl* pImp;
+ DirEntry aSource;
+ DirEntry aTarget;
+ ULONG nBytesTotal;
+ ULONG nBytesCopied;
+ Link aProgressLink;
+ USHORT nBlockSize;
+ FileCopier_Impl* pImp;
private:
- TOOLS_DLLPRIVATE FSysError DoCopy_Impl(
+ TOOLS_DLLPRIVATE FSysError DoCopy_Impl(
const DirEntry &rSource, const DirEntry &rTarget );
protected:
- virtual BOOL Progress();
- virtual ErrCode Error( ErrCode eErr,
+ virtual BOOL Progress();
+ virtual ErrCode Error( ErrCode eErr,
const DirEntry *pSource, const DirEntry *pTarget );
public:
@@ -415,31 +415,31 @@ public:
FileCopier( const FileCopier &rCopier );
virtual ~FileCopier();
- FileCopier& operator = ( const FileCopier &rCopier );
+ FileCopier& operator = ( const FileCopier &rCopier );
- void SetBlockSize( USHORT nBytes ) { nBlockSize = nBytes; }
- USHORT GetBlockSize() const { return nBlockSize; }
+ void SetBlockSize( USHORT nBytes ) { nBlockSize = nBytes; }
+ USHORT GetBlockSize() const { return nBlockSize; }
- ULONG GetBytesTotal() const { return nBytesTotal; }
- ULONG GetBytesCopied() const { return nBytesCopied; }
+ ULONG GetBytesTotal() const { return nBytesTotal; }
+ ULONG GetBytesCopied() const { return nBytesCopied; }
- void SetSource( const DirEntry &rSource ) { aSource = rSource; }
- void SetTarget( const DirEntry &rTarget ) { aTarget = rTarget; }
- const DirEntry& GetSource() const { return aSource; }
- const DirEntry& GetTarget() const { return aTarget; }
+ void SetSource( const DirEntry &rSource ) { aSource = rSource; }
+ void SetTarget( const DirEntry &rTarget ) { aTarget = rTarget; }
+ const DirEntry& GetSource() const { return aSource; }
+ const DirEntry& GetTarget() const { return aTarget; }
- FSysError Execute( FSysAction nActions = FSYS_ACTION_STANDARD );
- FSysError ExecuteExact( FSysAction nActions = FSYS_ACTION_STANDARD,
- FSysExact eExact = FSYS_NOTEXACT);
+ FSysError Execute( FSysAction nActions = FSYS_ACTION_STANDARD );
+ FSysError ExecuteExact( FSysAction nActions = FSYS_ACTION_STANDARD,
+ FSysExact eExact = FSYS_NOTEXACT);
- const DirEntry* GetErrorSource() const;
- const DirEntry* GetErrorTarget() const;
- ErrCode GetError() const;
+ const DirEntry* GetErrorSource() const;
+ const DirEntry* GetErrorTarget() const;
+ ErrCode GetError() const;
- void SetProgressHdl( const Link& rLink ) { aProgressLink = rLink; }
- const Link& GetProgressHdl() const { return aProgressLink; }
- void SetErrorHdl( const Link& rLink );
- const Link& GetErrorHdl() const;
+ void SetProgressHdl( const Link& rLink ) { aProgressLink = rLink; }
+ const Link& GetProgressHdl() const { return aProgressLink; }
+ void SetErrorHdl( const Link& rLink );
+ const Link& GetErrorHdl() const;
};
// -------
@@ -452,29 +452,29 @@ class TOOLS_DLLPUBLIC Dir : public DirEntry
friend struct DirReader_Impl;
friend class CORmFSys;
- DirReader_Impl* pReader; // systemabhaengig
- DirEntryList* pLst;
- FSysSortList* pSortLst; // NULL, wenn kein Sort gefordert
- FileStatList* pStatLst; // NULL, wenn keine Stat's benoetigt
- WildCard aNameMask;
+ DirReader_Impl* pReader; // systemabhaengig
+ DirEntryList* pLst;
+ FSysSortList* pSortLst; // NULL, wenn kein Sort gefordert
+ FileStatList* pStatLst; // NULL, wenn keine Stat's benoetigt
+ WildCard aNameMask;
DirEntryKind eAttrMask;
private:
- TOOLS_DLLPRIVATE Dir( const Dir& ); // not allowed
- TOOLS_DLLPRIVATE Dir& operator=( const Dir& ); // not allowed
+ TOOLS_DLLPRIVATE Dir( const Dir& ); // not allowed
+ TOOLS_DLLPRIVATE Dir& operator=( const Dir& ); // not allowed
#ifdef _DIR_CXX
- TOOLS_DLLPRIVATE FSysError ImpSetSort( std::va_list pArgs, FSysSort nSort );
- TOOLS_DLLPRIVATE void Construct( DirEntryKind nKind = FSYS_KIND_DIR|FSYS_KIND_FILE );
+ TOOLS_DLLPRIVATE FSysError ImpSetSort( std::va_list pArgs, FSysSort nSort );
+ TOOLS_DLLPRIVATE void Construct( DirEntryKind nKind = FSYS_KIND_DIR|FSYS_KIND_FILE );
#endif
#ifndef _TOOLS_HXX
protected:
- BOOL ImpInsertPointReached( const DirEntry& rIsSmaller,
+ BOOL ImpInsertPointReached( const DirEntry& rIsSmaller,
const FileStat& rNewStat,
ULONG nCurPos,
ULONG nSortIndex ) const;
- void ImpSortedInsert( const DirEntry *pNewEntry,
+ void ImpSortedInsert( const DirEntry *pNewEntry,
const FileStat *pNewStat );
#endif
@@ -489,15 +489,15 @@ public:
const WildCard& GetNameMask() const { return aNameMask; }
- FSysError SetSort( FSysSort nSort, ... );
+ FSysError SetSort( FSysSort nSort, ... );
- void Reset();
- USHORT Scan( USHORT nCount = 5 );
- USHORT Count( BOOL bUpdated = TRUE ) const;
- BOOL Update();
+ void Reset();
+ USHORT Scan( USHORT nCount = 5 );
+ USHORT Count( BOOL bUpdated = TRUE ) const;
+ BOOL Update();
- Dir& operator +=( const Dir& rDir );
- DirEntry& operator []( USHORT nIndex ) const;
+ Dir& operator +=( const Dir& rDir );
+ DirEntry& operator []( USHORT nIndex ) const;
};
// we don't need this stuff for bootstraping
@@ -514,8 +514,8 @@ public:
class FSysRedirector
{
- static FSysRedirector* _pRedirector;
- static BOOL _bEnabled;
+ static FSysRedirector* _pRedirector;
+ static BOOL _bEnabled;
public:
/** This method must called with the one and only instance of the
@@ -523,7 +523,7 @@ public:
<P>It must be called with 0 when the instance is destroyed.
*/
- static void Register( FSysRedirector *pRedirector );
+ static void Register( FSysRedirector *pRedirector );
//-----------------------------------------------------------------------
/** This method returns the currently registererd instance of
@@ -531,7 +531,7 @@ public:
<P>If no redirector is registered, it returns 0.
*/
- static FSysRedirector* Redirector();
+ static FSysRedirector* Redirector();
//-----------------------------------------------------------------------
/** This method is to be used to redirect a file system path.
@@ -551,7 +551,7 @@ public:
TRUE, if the path is redirected
FALSE, if the path is not redirected (unchanged)
*/
- static void DoRedirect( String &rPath );
+ static void DoRedirect( String &rPath );
};
#endif // BOOTSTRP
diff --git a/tools/inc/tools/gen.hxx b/tools/inc/tools/gen.hxx
index c4fec945e51a..304f9e689dff 100644
--- a/tools/inc/tools/gen.hxx
+++ b/tools/inc/tools/gen.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,23 +73,23 @@ inline long FRound( double fVal )
class Pair
{
public:
- long nA;
- long nB;
+ long nA;
+ long nB;
Pair();
Pair( long nA, long nB );
- long A() const { return nA; }
- long B() const { return nB; }
+ long A() const { return nA; }
+ long B() const { return nB; }
- long& A() { return nA; }
- long& B() { return nB; }
+ long& A() { return nA; }
+ long& B() { return nB; }
- BOOL operator == ( const Pair& rPair ) const;
- BOOL operator != ( const Pair& rPair ) const;
+ BOOL operator == ( const Pair& rPair ) const;
+ BOOL operator != ( const Pair& rPair ) const;
- TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Pair& rPair );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Pair& rPair );
+ TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Pair& rPair );
+ TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Pair& rPair );
};
inline Pair::Pair()
@@ -123,28 +123,28 @@ public:
Point();
Point( long nX, long nY );
- long X() const { return nA; }
- long Y() const { return nB; }
+ long X() const { return nA; }
+ long Y() const { return nB; }
- long& X() { return nA; }
- long& Y() { return nB; }
+ long& X() { return nA; }
+ long& Y() { return nB; }
- void Move( long nHorzMove, long nVertMove );
- BOOL IsAbove( const Point& rPoint ) const;
- BOOL IsBelow( const Point& rPoint ) const;
- BOOL IsLeft( const Point& rPoint ) const;
- BOOL IsRight( const Point& rPoint ) const;
+ void Move( long nHorzMove, long nVertMove );
+ BOOL IsAbove( const Point& rPoint ) const;
+ BOOL IsBelow( const Point& rPoint ) const;
+ BOOL IsLeft( const Point& rPoint ) const;
+ BOOL IsRight( const Point& rPoint ) const;
- Point& operator += ( const Point& rPoint );
- Point& operator -= ( const Point& rPoint );
- Point& operator *= ( const long nVal );
- Point& operator /= ( const long nVal );
+ Point& operator += ( const Point& rPoint );
+ Point& operator -= ( const Point& rPoint );
+ Point& operator *= ( const long nVal );
+ Point& operator /= ( const long nVal );
#ifdef __BORLANDC__
- friend Point operator+( const Point &rVal1, const Point &rVal2 );
- friend Point operator-( const Point &rVal1, const Point &rVal2 );
- friend Point operator*( const Point &rVal1, const long nVal2 );
- friend Point operator/( const Point &rVal1, const long nVal2 );
+ friend Point operator+( const Point &rVal1, const Point &rVal2 );
+ friend Point operator-( const Point &rVal1, const Point &rVal2 );
+ friend Point operator*( const Point &rVal1, const long nVal2 );
+ friend Point operator/( const Point &rVal1, const long nVal2 );
#else
friend inline Point operator+( const Point &rVal1, const Point &rVal2 );
friend inline Point operator-( const Point &rVal1, const Point &rVal2 );
@@ -152,10 +152,10 @@ public:
friend inline Point operator/( const Point &rVal1, const long nVal2 );
#endif
- long getX() const { return X(); }
- long getY() const { return Y(); }
- void setX(long nX) { X() = nX; }
- void setY(long nY) { Y() = nY; }
+ long getX() const { return X(); }
+ long getY() const { return Y(); }
+ void setX(long nX) { X() = nX; }
+ void setY(long nY) { Y() = nY; }
};
inline Point::Point()
@@ -250,16 +250,16 @@ public:
Size();
Size( long nWidth, long nHeight );
- long Width() const { return nA; }
- long Height() const { return nB; }
+ long Width() const { return nA; }
+ long Height() const { return nB; }
- long& Width() { return nA; }
- long& Height() { return nB; }
+ long& Width() { return nA; }
+ long& Height() { return nB; }
- long getWidth() const { return Width(); }
- long getHeight() const { return Height(); }
- void setWidth(long nWidth) { Width() = nWidth; }
- void setHeight(long nHeight) { Height() = nHeight; }
+ long getWidth() const { return Width(); }
+ long getHeight() const { return Height(); }
+ void setWidth(long nWidth) { Width() = nWidth; }
+ void setHeight(long nHeight) { Height() = nHeight; }
};
inline Size::Size()
@@ -275,8 +275,8 @@ inline Size::Size( long nWidth, long nHeight ) :
// - Range -
// ---------
-#define RANGE_MIN LONG_MIN
-#define RANGE_MAX LONG_MAX
+#define RANGE_MIN LONG_MIN
+#define RANGE_MAX LONG_MAX
class Range : public Pair
{
@@ -284,16 +284,16 @@ public:
Range();
Range( long nMin, long nMax );
- long Min() const { return nA; }
- long Max() const { return nB; }
- long Len() const { return nB - nA + 1; }
+ long Min() const { return nA; }
+ long Max() const { return nB; }
+ long Len() const { return nB - nA + 1; }
- long& Min() { return nA; }
- long& Max() { return nB; }
+ long& Min() { return nA; }
+ long& Max() { return nB; }
- BOOL IsInside( long nIs ) const;
+ BOOL IsInside( long nIs ) const;
- void Justify();
+ void Justify();
};
inline Range::Range()
@@ -323,8 +323,8 @@ inline void Range::Justify()
// - Selection -
// -------------
-#define SELECTION_MIN LONG_MIN
-#define SELECTION_MAX LONG_MAX
+#define SELECTION_MIN LONG_MIN
+#define SELECTION_MAX LONG_MAX
class Selection : public Pair
{
@@ -333,23 +333,23 @@ public:
Selection( long nPos );
Selection( long nMin, long nMax );
- long Min() const { return nA; }
- long Max() const { return nB; }
- long Len() const { return nB - nA; }
+ long Min() const { return nA; }
+ long Max() const { return nB; }
+ long Len() const { return nB - nA; }
- long& Min() { return nA; }
- long& Max() { return nB; }
+ long& Min() { return nA; }
+ long& Max() { return nB; }
- BOOL IsInside( long nIs ) const;
+ BOOL IsInside( long nIs ) const;
- void Justify();
+ void Justify();
- BOOL operator !() const { return !Len(); }
+ BOOL operator !() const { return !Len(); }
- long getMin() const { return Min(); }
- long getMax() const { return Max(); }
- void setMin(long nMin) { Min() = nMin; }
- void setMax(long nMax) { Max() = nMax; }
+ long getMin() const { return Min(); }
+ long getMax() const { return Max(); }
+ void setMin(long nMin) { Min() = nMin; }
+ void setMax(long nMax) { Max() = nMax; }
};
inline Selection::Selection()
@@ -384,15 +384,15 @@ inline void Selection::Justify()
// - Rectangle -
// -------------
-#define RECT_EMPTY ((short)-32767)
+#define RECT_EMPTY ((short)-32767)
class TOOLS_DLLPUBLIC Rectangle
{
public:
- long nLeft;
- long nTop;
- long nRight;
- long nBottom;
+ long nLeft;
+ long nTop;
+ long nRight;
+ long nBottom;
Rectangle();
Rectangle( const Point& rLT, const Point& rRB );
@@ -400,75 +400,75 @@ public:
long nRight, long nBottom );
Rectangle( const Point& rLT, const Size& rSize );
- long Left() const { return nLeft; }
- long Right() const { return nRight; }
- long Top() const { return nTop; }
- long Bottom() const { return nBottom; }
-
- long& Left() { return nLeft; }
- long& Right() { return nRight; }
- long& Top() { return nTop; }
- long& Bottom() { return nBottom; }
-
- inline Point TopLeft() const;
- Point TopRight() const;
- Point TopCenter() const;
- Point BottomLeft() const;
- Point BottomRight() const;
- Point BottomCenter() const;
- Point LeftCenter() const;
- Point RightCenter() const;
- Point Center() const;
-
- void Move( long nHorzMove, long nVertMove );
+ long Left() const { return nLeft; }
+ long Right() const { return nRight; }
+ long Top() const { return nTop; }
+ long Bottom() const { return nBottom; }
+
+ long& Left() { return nLeft; }
+ long& Right() { return nRight; }
+ long& Top() { return nTop; }
+ long& Bottom() { return nBottom; }
+
+ inline Point TopLeft() const;
+ Point TopRight() const;
+ Point TopCenter() const;
+ Point BottomLeft() const;
+ Point BottomRight() const;
+ Point BottomCenter() const;
+ Point LeftCenter() const;
+ Point RightCenter() const;
+ Point Center() const;
+
+ void Move( long nHorzMove, long nVertMove );
inline void Transpose();
- inline void SetPos( const Point& rPoint );
- void SetSize( const Size& rSize );
- inline Size GetSize() const;
+ inline void SetPos( const Point& rPoint );
+ void SetSize( const Size& rSize );
+ inline Size GetSize() const;
- long GetWidth() const;
- long GetHeight() const;
+ long GetWidth() const;
+ long GetHeight() const;
- Rectangle& Union( const Rectangle& rRect );
- Rectangle& Intersection( const Rectangle& rRect );
- Rectangle GetUnion( const Rectangle& rRect ) const;
- Rectangle GetIntersection( const Rectangle& rRect ) const;
+ Rectangle& Union( const Rectangle& rRect );
+ Rectangle& Intersection( const Rectangle& rRect );
+ Rectangle GetUnion( const Rectangle& rRect ) const;
+ Rectangle GetIntersection( const Rectangle& rRect ) const;
- void Justify();
+ void Justify();
- BOOL IsInside( const Point& rPOINT ) const;
- BOOL IsInside( const Rectangle& rRect ) const;
- BOOL IsOver( const Rectangle& rRect ) const;
+ BOOL IsInside( const Point& rPOINT ) const;
+ BOOL IsInside( const Rectangle& rRect ) const;
+ BOOL IsOver( const Rectangle& rRect ) const;
- void SetEmpty() { nRight = nBottom = RECT_EMPTY; }
- BOOL IsEmpty() const;
+ void SetEmpty() { nRight = nBottom = RECT_EMPTY; }
+ BOOL IsEmpty() const;
- BOOL operator == ( const Rectangle& rRect ) const;
- BOOL operator != ( const Rectangle& rRect ) const;
+ BOOL operator == ( const Rectangle& rRect ) const;
+ BOOL operator != ( const Rectangle& rRect ) const;
- Rectangle& operator += ( const Point& rPt );
- Rectangle& operator -= ( const Point& rPt );
+ Rectangle& operator += ( const Point& rPt );
+ Rectangle& operator -= ( const Point& rPt );
#ifdef __BORLANDC__
- friend Rectangle operator + ( const Rectangle& rRect, const Point& rPt );
- friend Rectangle operator - ( const Rectangle& rRect, const Point& rPt );
+ friend Rectangle operator + ( const Rectangle& rRect, const Point& rPt );
+ friend Rectangle operator - ( const Rectangle& rRect, const Point& rPt );
#else
friend inline Rectangle operator + ( const Rectangle& rRect, const Point& rPt );
friend inline Rectangle operator - ( const Rectangle& rRect, const Point& rPt );
#endif
- TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Rectangle& rRect );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Rectangle& rRect );
+ TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Rectangle& rRect );
+ TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Rectangle& rRect );
// ONE
- long getX() const { return nLeft; }
- long getY() const { return nTop; }
- long getWidth() const { return nRight - nLeft; }
- long getHeight() const { return nBottom - nTop; }
- void setX( long n ) { nRight += n-nLeft; nLeft = n; }
- void setY( long n ) { nBottom += n-nTop; nTop = n; }
- void setWidth( long n ) { nRight = nLeft + n; }
- void setHeight( long n ) { nBottom = nTop + n; }
+ long getX() const { return nLeft; }
+ long getY() const { return nTop; }
+ long getWidth() const { return nRight - nLeft; }
+ long getHeight() const { return nBottom - nTop; }
+ void setX( long n ) { nRight += n-nLeft; nLeft = n; }
+ void setY( long n ) { nBottom += n-nTop; nTop = n; }
+ void setWidth( long n ) { nRight = nLeft + n; }
+ void setHeight( long n ) { nBottom = nTop + n; }
};
inline Rectangle::Rectangle()
@@ -479,26 +479,26 @@ inline Rectangle::Rectangle()
inline Rectangle::Rectangle( const Point& rLT, const Point& rRB )
{
- nLeft = rLT.X();
- nTop = rLT.Y();
- nRight = rRB.X();
+ nLeft = rLT.X();
+ nTop = rLT.Y();
+ nRight = rRB.X();
nBottom = rRB.Y();
}
inline Rectangle::Rectangle( long _nLeft, long _nTop,
long _nRight, long _nBottom )
{
- nLeft = _nLeft;
- nTop = _nTop;
- nRight = _nRight;
+ nLeft = _nLeft;
+ nTop = _nTop;
+ nRight = _nRight;
nBottom = _nBottom;
}
inline Rectangle::Rectangle( const Point& rLT, const Size& rSize )
{
- nLeft = rLT.X();
- nTop = rLT.Y();
- nRight = rSize.Width() ? nLeft+rSize.Width()-1 : RECT_EMPTY;
+ nLeft = rLT.X();
+ nTop = rLT.Y();
+ nRight = rSize.Width() ? nLeft+rSize.Width()-1 : RECT_EMPTY;
nBottom = rSize.Height() ? nTop+rSize.Height()-1 : RECT_EMPTY;
}
@@ -657,16 +657,16 @@ inline Rectangle Rectangle::GetIntersection( const Rectangle& rRect ) const
inline BOOL Rectangle::operator == ( const Rectangle& rRect ) const
{
- return ((nLeft == rRect.nLeft ) &&
- (nTop == rRect.nTop ) &&
+ return ((nLeft == rRect.nLeft ) &&
+ (nTop == rRect.nTop ) &&
(nRight == rRect.nRight ) &&
(nBottom == rRect.nBottom ));
}
inline BOOL Rectangle::operator != ( const Rectangle& rRect ) const
{
- return ((nLeft != rRect.nLeft ) ||
- (nTop != rRect.nTop ) ||
+ return ((nLeft != rRect.nLeft ) ||
+ (nTop != rRect.nTop ) ||
(nRight != rRect.nRight ) ||
(nBottom != rRect.nBottom ));
}
@@ -696,7 +696,7 @@ inline Rectangle& Rectangle::operator -= ( const Point& rPt )
inline Rectangle operator + ( const Rectangle& rRect, const Point& rPt )
{
Rectangle aRect( rRect.nLeft + rPt.X(), rRect.nTop + rPt.Y(),
- (rRect.nRight == RECT_EMPTY) ? RECT_EMPTY : rRect.nRight + rPt.X(),
+ (rRect.nRight == RECT_EMPTY) ? RECT_EMPTY : rRect.nRight + rPt.X(),
(rRect.nBottom == RECT_EMPTY) ? RECT_EMPTY : rRect.nBottom + rPt.Y() );
return aRect;
}
@@ -705,7 +705,7 @@ inline Rectangle operator - ( const Rectangle& rRect, const Point& rPt )
{
Rectangle aRect( rRect.nLeft - rPt.X(),
rRect.nTop - rPt.Y(),
- (rRect.nRight == RECT_EMPTY) ? RECT_EMPTY : rRect.nRight - rPt.X(),
+ (rRect.nRight == RECT_EMPTY) ? RECT_EMPTY : rRect.nRight - rPt.X(),
(rRect.nBottom == RECT_EMPTY) ? RECT_EMPTY : rRect.nBottom - rPt.Y() );
return aRect;
}
diff --git a/tools/inc/tools/geninfo.hxx b/tools/inc/tools/geninfo.hxx
index a1629ce15ee8..feab81485e2b 100644
--- a/tools/inc/tools/geninfo.hxx
+++ b/tools/inc/tools/geninfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,18 +44,18 @@ class GenericInformationList;
Purpose: holds generic informations and subinformations in a simple format
******************************************************************************/
-class TOOLS_DLLPUBLIC GenericInformation : public ByteString // the key is stored in base class
+class TOOLS_DLLPUBLIC GenericInformation : public ByteString // the key is stored in base class
{
-friend class GenericInformationList; // can be child or/and parent
+friend class GenericInformationList; // can be child or/and parent
private:
- ByteString sValue; // holds value of data
+ ByteString sValue; // holds value of data
ByteString sComment;
- GenericInformationList *pInfoList; // holds subinformations
- GenericInformationList *pParent; // holds a pointer to parent list
+ GenericInformationList *pInfoList; // holds subinformations
+ GenericInformationList *pParent; // holds a pointer to parent list
// methods
- void ListDeleted() { pParent = NULL; } // allowed to be accessed
+ void ListDeleted() { pParent = NULL; } // allowed to be accessed
// from friend class
// GenericInformationList
@@ -194,7 +194,7 @@ DECLARE_LIST( GenericInformationList_Impl, GenericInformation * )
class TOOLS_DLLPUBLIC GenericInformationList : public GenericInformationList_Impl
{
private:
- GenericInformation *pOwner; // holds parent of this list
+ GenericInformation *pOwner; // holds parent of this list
protected:
// methods
diff --git a/tools/inc/tools/getprocessworkingdir.hxx b/tools/inc/tools/getprocessworkingdir.hxx
index 8ff441598535..b27e40e1027f 100644
--- a/tools/inc/tools/getprocessworkingdir.hxx
+++ b/tools/inc/tools/getprocessworkingdir.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/globname.hxx b/tools/inc/tools/globname.hxx
index 97fbce56b7d0..950b529673ae 100644
--- a/tools/inc/tools/globname.hxx
+++ b/tools/inc/tools/globname.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/inetdef.hxx b/tools/inc/tools/inetdef.hxx
index 06bc4e7ab78c..ac2f8bc3e56e 100644
--- a/tools/inc/tools/inetdef.hxx
+++ b/tools/inc/tools/inetdef.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,14 +76,14 @@
#define TOOLS_INETDEF_MOZILLA "Mozilla/3.0"
#define INET_PRODUCTNAME TOOLS_INETDEF_PRODUCT " (" TOOLS_INETDEF_OS ")"
-#define INET_DEF_CALLERNAME TOOLS_INETDEF_MOZILLA " (compatible; " \
+#define INET_DEF_CALLERNAME TOOLS_INETDEF_MOZILLA " (compatible; " \
TOOLS_INETDEF_PRODUCT "; " TOOLS_INETDEF_OS ")"
//============================================================================
// The following definitions seem obsolete and might get removed in future.
#define INET_PERS_CERT_HOMEPAGE "http://www.stardivision.de/certs.html"
-#define INET_PERS_CERT_HOMEPAGE_INT \
+#define INET_PERS_CERT_HOMEPAGE_INT \
"http://www.stardivision.de/certs/certs##.html"
// the above definitions are only used in svx/source/options/optinet2.cxx
diff --git a/tools/inc/tools/inetmime.hxx b/tools/inc/tools/inetmime.hxx
index 51c626329581..7ca43f08921b 100644
--- a/tools/inc/tools/inetmime.hxx
+++ b/tools/inc/tools/inetmime.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/inetmsg.hxx b/tools/inc/tools/inetmsg.hxx
index 77d08c5f0818..24705abe85fd 100644
--- a/tools/inc/tools/inetmsg.hxx
+++ b/tools/inc/tools/inetmsg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/inetstrm.hxx b/tools/inc/tools/inetstrm.hxx
index 91fb416e1544..cf2912d92f7e 100644
--- a/tools/inc/tools/inetstrm.hxx
+++ b/tools/inc/tools/inetstrm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/iparser.hxx b/tools/inc/tools/iparser.hxx
index 83f4e2530bae..b9c0e7af2152 100644
--- a/tools/inc/tools/iparser.hxx
+++ b/tools/inc/tools/iparser.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,10 +70,10 @@ key [value]
// error codes:
-#define IP_NO_ERROR 0x0000
-#define IP_UNEXPECTED_EOF 0x0001
+#define IP_NO_ERROR 0x0000
+#define IP_UNEXPECTED_EOF 0x0001
-#define REPLACE_VARIABLES TRUE
+#define REPLACE_VARIABLES TRUE
class TOOLS_DLLPUBLIC InformationParser
{
diff --git a/tools/inc/tools/isofallback.hxx b/tools/inc/tools/isofallback.hxx
index 485377605664..c014e3d70b64 100644
--- a/tools/inc/tools/isofallback.hxx
+++ b/tools/inc/tools/isofallback.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/line.hxx b/tools/inc/tools/line.hxx
index 592aeecce899..500787434587 100644
--- a/tools/inc/tools/line.hxx
+++ b/tools/inc/tools/line.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,10 +54,10 @@ public:
void SetEnd( const Point& rEndPt ) { maEnd = rEndPt; }
const Point& GetEnd() const { return maEnd; }
- long Left() const { return ( maStart.X() < maEnd.X() ) ? maStart.X() : maEnd.X(); }
- long Top() const { return ( maStart.Y() < maEnd.Y() ) ? maStart.Y() : maEnd.Y(); }
- long Right() const { return ( maStart.X() > maEnd.X() ) ? maStart.X() : maEnd.X(); }
- long Bottom() const { return ( maStart.Y() > maEnd.Y() ) ? maStart.Y() : maEnd.Y(); }
+ long Left() const { return ( maStart.X() < maEnd.X() ) ? maStart.X() : maEnd.X(); }
+ long Top() const { return ( maStart.Y() < maEnd.Y() ) ? maStart.Y() : maEnd.Y(); }
+ long Right() const { return ( maStart.X() > maEnd.X() ) ? maStart.X() : maEnd.X(); }
+ long Bottom() const { return ( maStart.Y() > maEnd.Y() ) ? maStart.Y() : maEnd.Y(); }
double GetLength() const;
@@ -65,8 +65,8 @@ public:
BOOL Intersection( const Line& rLine, Point& rIntersection ) const;
BOOL Intersection( const Rectangle& rRect, Line& rIntersection ) const;
- double GetDistance( const double& rPtX, const double& rPtY ) const;
- double GetDistance( const Point& rPoint ) const { return( GetDistance( rPoint.X(), rPoint.Y() ) ); }
+ double GetDistance( const double& rPtX, const double& rPtY ) const;
+ double GetDistance( const Point& rPoint ) const { return( GetDistance( rPoint.X(), rPoint.Y() ) ); }
Point NearestPoint( const Point& rPoint ) const;
diff --git a/tools/inc/tools/link.hxx b/tools/inc/tools/link.hxx
index 670b74b7b20f..e2f80a18c87b 100644
--- a/tools/inc/tools/link.hxx
+++ b/tools/inc/tools/link.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/list.hxx b/tools/inc/tools/list.hxx
index dcbf54f9ae15..1874d31de156 100644
--- a/tools/inc/tools/list.hxx
+++ b/tools/inc/tools/list.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/mapunit.hxx b/tools/inc/tools/mapunit.hxx
index 53e9c61b8d26..5ff01f287618 100644
--- a/tools/inc/tools/mapunit.hxx
+++ b/tools/inc/tools/mapunit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,6 +39,6 @@ enum MapUnit { MAP_100TH_MM, MAP_10TH_MM, MAP_MM, MAP_CM,
MAP_POINT, MAP_TWIP, MAP_PIXEL, MAP_SYSFONT, MAP_APPFONT,
MAP_RELATIVE, MAP_REALAPPFONT, MAP_LASTENUMDUMMY };
-#endif // _TOOLS_MAPUNIT_HXX
+#endif // _TOOLS_MAPUNIT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/tools/mempool.hxx b/tools/inc/tools/mempool.hxx
index 9544f33f35fa..626177e0a323 100644
--- a/tools/inc/tools/mempool.hxx
+++ b/tools/inc/tools/mempool.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/multisel.hxx b/tools/inc/tools/multisel.hxx
index dd8a751db5f7..de5f55487459 100644
--- a/tools/inc/tools/multisel.hxx
+++ b/tools/inc/tools/multisel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ DECLARE_LIST( ImpSelList, Range* )
#define ImpSelList List
#endif
-#define SFX_ENDOFSELECTION CONTAINER_ENTRY_NOTFOUND
+#define SFX_ENDOFSELECTION CONTAINER_ENTRY_NOTFOUND
//------------------------------------------------------------------
@@ -55,21 +55,21 @@ DECLARE_LIST( ImpSelList, Range* )
class TOOLS_DLLPUBLIC MultiSelection
{
private:
- ImpSelList aSels; // array of SV-selections
- Range aTotRange; // total range of indexes
- ULONG nCurSubSel; // index in aSels of current selected index
- long nCurIndex; // current selected entry
- ULONG nSelCount; // number of selected indexes
- BOOL bInverseCur;// inverse cursor
- BOOL bCurValid; // are nCurIndex and nCurSubSel valid
- BOOL bSelectNew; // auto-select newly inserted indexes
+ ImpSelList aSels; // array of SV-selections
+ Range aTotRange; // total range of indexes
+ ULONG nCurSubSel; // index in aSels of current selected index
+ long nCurIndex; // current selected entry
+ ULONG nSelCount; // number of selected indexes
+ BOOL bInverseCur;// inverse cursor
+ BOOL bCurValid; // are nCurIndex and nCurSubSel valid
+ BOOL bSelectNew; // auto-select newly inserted indexes
#ifdef _SV_MULTISEL_CXX
- TOOLS_DLLPRIVATE void ImplClear();
- TOOLS_DLLPRIVATE ULONG ImplFindSubSelection( long nIndex ) const;
- TOOLS_DLLPRIVATE BOOL ImplMergeSubSelections( ULONG nPos1, ULONG nPos2 );
- TOOLS_DLLPRIVATE long ImplFwdUnselected();
- TOOLS_DLLPRIVATE long ImplBwdUnselected();
+ TOOLS_DLLPRIVATE void ImplClear();
+ TOOLS_DLLPRIVATE ULONG ImplFindSubSelection( long nIndex ) const;
+ TOOLS_DLLPRIVATE BOOL ImplMergeSubSelections( ULONG nPos1, ULONG nPos2 );
+ TOOLS_DLLPRIVATE long ImplFwdUnselected();
+ TOOLS_DLLPRIVATE long ImplBwdUnselected();
#endif
public:
@@ -82,35 +82,35 @@ public:
~MultiSelection();
MultiSelection& operator= ( const MultiSelection& rOrig );
- BOOL operator== ( MultiSelection& rOrig );
- BOOL operator!= ( MultiSelection& rOrig )
+ BOOL operator== ( MultiSelection& rOrig );
+ BOOL operator!= ( MultiSelection& rOrig )
{ return !operator==( rOrig ); }
- BOOL operator !() const
+ BOOL operator !() const
{ return nSelCount == 0; }
- void SelectAll( BOOL bSelect = TRUE );
- BOOL Select( long nIndex, BOOL bSelect = TRUE );
- void Select( const Range& rIndexRange, BOOL bSelect = TRUE );
- BOOL IsSelected( long nIndex ) const;
- BOOL IsAllSelected() const
+ void SelectAll( BOOL bSelect = TRUE );
+ BOOL Select( long nIndex, BOOL bSelect = TRUE );
+ void Select( const Range& rIndexRange, BOOL bSelect = TRUE );
+ BOOL IsSelected( long nIndex ) const;
+ BOOL IsAllSelected() const
{ return nSelCount == ULONG(aTotRange.Len()); }
- long GetSelectCount() const { return nSelCount; }
-
- void SetTotalRange( const Range& rTotRange );
- void Insert( long nIndex, long nCount = 1 );
- void Remove( long nIndex );
- void Append( long nCount = 1 );
-
- const Range& GetTotalRange() const { return aTotRange; }
- BOOL IsCurValid() const { return bCurValid; }
- long GetCurSelected() const { return nCurIndex; }
- long FirstSelected( BOOL bInverse = FALSE );
- long LastSelected();
- long NextSelected();
- long PrevSelected();
-
- ULONG GetRangeCount() const { return aSels.Count(); }
- const Range& GetRange( ULONG nRange ) const { return *(const Range*)aSels.GetObject(nRange); }
+ long GetSelectCount() const { return nSelCount; }
+
+ void SetTotalRange( const Range& rTotRange );
+ void Insert( long nIndex, long nCount = 1 );
+ void Remove( long nIndex );
+ void Append( long nCount = 1 );
+
+ const Range& GetTotalRange() const { return aTotRange; }
+ BOOL IsCurValid() const { return bCurValid; }
+ long GetCurSelected() const { return nCurIndex; }
+ long FirstSelected( BOOL bInverse = FALSE );
+ long LastSelected();
+ long NextSelected();
+ long PrevSelected();
+
+ ULONG GetRangeCount() const { return aSels.Count(); }
+ const Range& GetRange( ULONG nRange ) const { return *(const Range*)aSels.GetObject(nRange); }
};
class TOOLS_DLLPUBLIC StringRangeEnumerator
@@ -119,7 +119,7 @@ class TOOLS_DLLPUBLIC StringRangeEnumerator
{
sal_Int32 nFirst;
sal_Int32 nLast;
-
+
Range() : nFirst( -1 ), nLast( -1 ) {}
Range( sal_Int32 i_nFirst, sal_Int32 i_nLast ) : nFirst( i_nFirst ), nLast( i_nLast ) {}
};
@@ -128,7 +128,7 @@ class TOOLS_DLLPUBLIC StringRangeEnumerator
sal_Int32 mnMin;
sal_Int32 mnMax;
sal_Int32 mnOffset;
-
+
bool insertRange( sal_Int32 nFirst, sal_Int32 nLast, bool bSequence, bool bMayAdjust );
bool checkValue( sal_Int32, const std::set< sal_Int32 >* i_pPossibleValues = NULL ) const;
public:
@@ -138,7 +138,7 @@ public:
const std::set< sal_Int32 >* pPossibleValues;
sal_Int32 nRangeIndex;
sal_Int32 nCurrent;
-
+
friend class StringRangeEnumerator;
Iterator( const StringRangeEnumerator* i_pEnum,
const std::set< sal_Int32 >* i_pPossibleValues,
@@ -156,29 +156,29 @@ public:
};
friend class StringRangeEnumerator::Iterator;
-
+
StringRangeEnumerator() : mnCount( 0 ), mnMin( -1 ), mnMax( -1 ), mnOffset( -1 ) {}
StringRangeEnumerator( const rtl::OUString& i_rInput,
sal_Int32 i_nMinNumber = -1,
sal_Int32 i_nMaxNumber = -1,
sal_Int32 i_nLogicalOffset = -1
);
-
+
size_t size() const { return size_t(mnCount); }
Iterator begin( const std::set< sal_Int32 >* i_pPossibleValues = NULL ) const;
Iterator end( const std::set< sal_Int32 >* i_pPossibleValues = NULL ) const;
-
+
sal_Int32 getMin() const { return mnMin; }
void setMin( sal_Int32 i_nMinValue ) { mnMin = i_nMinValue; }
sal_Int32 getMax() const { return mnMax; }
void setMax( sal_Int32 i_nMaxValue ) { mnMax = i_nMaxValue; }
sal_Int32 getLogicalOffset() const { return mnOffset; }
void setLogicalOffset( sal_Int32 i_nOffset ) { mnOffset = i_nOffset; }
-
+
bool setRange( const rtl::OUString& i_rNewRange, bool i_bStrict = false );
bool hasValue( sal_Int32 nValue, const std::set< sal_Int32 >* i_pPossibleValues = NULL ) const;
-
-
+
+
/**
i_rPageRange: the string to be changed into a sequence of numbers
valid format example "5-3,9,9,7-8" ; instead of ',' ';' or ' ' are allowed as well
@@ -189,10 +189,10 @@ public:
so the logical offset would be -1
i_nMinNumber: the minimum allowed number, a negative number means no minimum check
i_nMaxNumber: the maximum allowed number, a negative number means no maximum check
-
+
@returns: true if the input string was valid, o_rPageVector will contain the resulting sequence
false if the input string was invalid, o_rPageVector will be unchanged
-
+
behavior:
- only non-negative sequence numbers are allowed
- only non-negative values in the input string are allowed
@@ -214,6 +214,6 @@ public:
);
};
-#endif // _SV_MULTISEL_HXX
+#endif // _SV_MULTISEL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/tools/ownlist.hxx b/tools/inc/tools/ownlist.hxx
index f0d708a88ba8..59d2a8a4a9a7 100644
--- a/tools/inc/tools/ownlist.hxx
+++ b/tools/inc/tools/ownlist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,8 +52,8 @@ public: \
void Remove( ULONG nPos ) \
{ delete (Type *)aTypes.Remove( nPos ); } \
Type & Insert( const Type &, ULONG nPos ); \
- Type & Insert( const Type & rType ) \
- { return Insert( rType, aTypes.GetCurPos() ); } \
+ Type & Insert( const Type & rType ) \
+ { return Insert( rType, aTypes.GetCurPos() ); } \
Type & Append( const Type & rType ) \
{ return Insert( rType, LIST_APPEND ); } \
Type & GetObject( ULONG nPos ) const \
diff --git a/tools/inc/tools/pathutils.hxx b/tools/inc/tools/pathutils.hxx
index 1189a8334a8f..96c5cafee3ad 100644
--- a/tools/inc/tools/pathutils.hxx
+++ b/tools/inc/tools/pathutils.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/poly.hxx b/tools/inc/tools/poly.hxx
index 09cfeebfdb49..e7dc14b519dc 100644
--- a/tools/inc/tools/poly.hxx
+++ b/tools/inc/tools/poly.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,17 +38,17 @@
// - Defines -
// -----------
-#define POLY_APPEND (0xFFFF)
-#define POLYPOLY_APPEND (0xFFFF)
+#define POLY_APPEND (0xFFFF)
+#define POLYPOLY_APPEND (0xFFFF)
// ------------------------------------------------------------------------
-#define POLY_OPTIMIZE_NONE 0x00000000UL
-#define POLY_OPTIMIZE_OPEN 0x00000001UL
-#define POLY_OPTIMIZE_CLOSE 0x00000002UL
-#define POLY_OPTIMIZE_NO_SAME 0x00000004UL
-#define POLY_OPTIMIZE_REDUCE 0x00000008UL
-#define POLY_OPTIMIZE_EDGES 0x00000010UL
+#define POLY_OPTIMIZE_NONE 0x00000000UL
+#define POLY_OPTIMIZE_OPEN 0x00000001UL
+#define POLY_OPTIMIZE_CLOSE 0x00000002UL
+#define POLY_OPTIMIZE_NO_SAME 0x00000004UL
+#define POLY_OPTIMIZE_REDUCE 0x00000008UL
+#define POLY_OPTIMIZE_EDGES 0x00000010UL
// -------------
// - PolyStyle -
@@ -84,9 +84,9 @@ class PolyOptimizeData
{
private:
- enum DataType { DATA_NONE = 0, DATA_ABSOLUT = 1, DATA_PERCENT = 2 };
- DataType eType;
- union { ULONG mnAbsolut; USHORT mnPercent; };
+ enum DataType { DATA_NONE = 0, DATA_ABSOLUT = 1, DATA_PERCENT = 2 };
+ DataType eType;
+ union { ULONG mnAbsolut; USHORT mnPercent; };
public:
@@ -94,8 +94,8 @@ public:
PolyOptimizeData( ULONG nAbsolut ) : eType( DATA_ABSOLUT ), mnAbsolut( nAbsolut ) {}
PolyOptimizeData( USHORT nPercent ) : eType( DATA_PERCENT ), mnPercent( nPercent ) {}
- ULONG GetAbsValue() const { DBG_ASSERT( eType == DATA_ABSOLUT, "Wrong data type" ); return mnAbsolut; }
- USHORT GetPercentValue() const { DBG_ASSERT( eType == DATA_PERCENT, "Wrong data type" ); return mnPercent; }
+ ULONG GetAbsValue() const { DBG_ASSERT( eType == DATA_ABSOLUT, "Wrong data type" ); return mnAbsolut; }
+ USHORT GetPercentValue() const { DBG_ASSERT( eType == DATA_PERCENT, "Wrong data type" ); return mnPercent; }
};
// -----------
@@ -105,10 +105,10 @@ public:
class SvStream;
class ImplPolygon;
class ImplPolyPolygon;
-class PolyPolygon;
+class PolyPolygon;
-namespace basegfx
-{
+namespace basegfx
+{
class B2DPolygon;
class B2DPolyPolygon;
} // end of namespace basegfx
@@ -126,9 +126,9 @@ public:
Point* ImplGetPointAry();
BYTE* ImplGetFlagAry();
- static void ImplReduceEdges( Polygon& rPoly, const double& rArea, USHORT nPercent );
- void ImplRead( SvStream& rIStream );
- void ImplWrite( SvStream& rOStream ) const;
+ static void ImplReduceEdges( Polygon& rPoly, const double& rArea, USHORT nPercent );
+ void ImplRead( SvStream& rIStream );
+ void ImplWrite( SvStream& rOStream ) const;
public:
Polygon();
@@ -136,7 +136,7 @@ public:
Polygon( USHORT nPoints, const Point* pPtAry,
const BYTE* pFlagAry = NULL );
Polygon( const Rectangle& rRect );
- Polygon( const Rectangle& rRect,
+ Polygon( const Rectangle& rRect,
ULONG nHorzRound, ULONG nVertRound );
Polygon( const Point& rCenter,
long nRadX, long nRadY,
@@ -144,8 +144,8 @@ public:
Polygon( const Rectangle& rBound,
const Point& rStart, const Point& rEnd,
PolyStyle ePolyStyle = POLY_ARC );
- Polygon( const Point& rBezPt1, const Point& rCtrlPt1,
- const Point& rBezPt2, const Point& rCtrlPt2,
+ Polygon( const Point& rBezPt1, const Point& rCtrlPt1,
+ const Point& rBezPt2, const Point& rCtrlPt2,
USHORT nPoints = 0 );
Polygon( const Polygon& rPoly );
@@ -156,11 +156,11 @@ public:
void SetFlags( USHORT nPos, PolyFlags eFlags );
PolyFlags GetFlags( USHORT nPos ) const;
- sal_Bool HasFlags() const;
+ sal_Bool HasFlags() const;
BOOL IsControl( USHORT nPos ) const;
BOOL IsSmooth( USHORT nPos ) const;
- BOOL IsRect() const;
+ BOOL IsRect() const;
void SetSize( USHORT nNewSize );
USHORT GetSize() const;
@@ -174,7 +174,7 @@ public:
BOOL IsRightOrientated() const;
double CalcDistance( USHORT nPt1, USHORT nPt2 );
void Clip( const Rectangle& rRect, BOOL bPolygon = TRUE );
- void Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData = NULL );
+ void Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData = NULL );
/** Adaptive subdivision of polygons with curves
@@ -185,7 +185,7 @@ public:
@param rResult
The resulting subdivided polygon
- @param d
+ @param d
This parameter controls the amount of subdivision. The
original curve is guaranteed to not differ by more than this
amount per bezier segment from the subdivided
@@ -194,12 +194,12 @@ public:
the original polygon is guaranteed to be smaller than one
pixel.
*/
- void AdaptiveSubdivide( Polygon& rResult, const double d = 1.0 ) const;
+ void AdaptiveSubdivide( Polygon& rResult, const double d = 1.0 ) const;
- void GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
- void GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
- void GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
- void GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
+ void GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
+ void GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
+ void GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
+ void GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
void Move( long nHorzMove, long nVertMove );
void Translate( const Point& rTrans );
@@ -221,15 +221,15 @@ public:
BOOL operator==( const Polygon& rPoly ) const;
BOOL operator!=( const Polygon& rPoly ) const
{ return !(Polygon::operator==( rPoly )); }
- sal_Bool IsEqual( const Polygon& rPoly ) const;
+ sal_Bool IsEqual( const Polygon& rPoly ) const;
// streaming a Polygon does ignore PolyFlags, so use the Write Or Read
// method to take care of PolyFlags
TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Polygon& rPoly );
TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Polygon& rPoly );
- void Read( SvStream& rIStream );
- void Write( SvStream& rOStream ) const;
+ void Read( SvStream& rIStream );
+ void Write( SvStream& rOStream ) const;
const Point* GetConstPointAry() const;
const BYTE* GetConstFlagAry() const;
@@ -270,14 +270,14 @@ public:
void Replace( const Polygon& rPoly, USHORT nPos );
const Polygon& GetObject( USHORT nPos ) const;
- BOOL IsRect() const;
+ BOOL IsRect() const;
void Clear();
USHORT Count() const;
Rectangle GetBoundRect() const;
void Clip( const Rectangle& rRect );
- void Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData = NULL );
+ void Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData = NULL );
/** Adaptive subdivision of polygons with curves
@@ -288,7 +288,7 @@ public:
@param rResult
The resulting subdivided polygon
- @param d
+ @param d
This parameter controls the amount of subdivision. The
original curve is guaranteed to not differ by more than this
amount per bezier segment from the subdivided
@@ -297,12 +297,12 @@ public:
the original polygon is guaranteed to be smaller than one
pixel.
*/
- void AdaptiveSubdivide( PolyPolygon& rResult, const double d = 1.0 ) const;
+ void AdaptiveSubdivide( PolyPolygon& rResult, const double d = 1.0 ) const;
- void GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
- void GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
- void GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
- void GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
+ void GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
+ void GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
+ void GetDifference( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
+ void GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const;
void Move( long nHorzMove, long nVertMove );
void Translate( const Point& rTrans );
@@ -321,13 +321,13 @@ public:
BOOL operator!=( const PolyPolygon& rPolyPoly ) const
{ return !(PolyPolygon::operator==( rPolyPoly )); }
- sal_Bool IsEqual( const PolyPolygon& rPolyPoly ) const;
+ sal_Bool IsEqual( const PolyPolygon& rPolyPoly ) const;
TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, PolyPolygon& rPolyPoly );
TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const PolyPolygon& rPolyPoly );
- void Read( SvStream& rIStream );
- void Write( SvStream& rOStream ) const;
+ void Read( SvStream& rIStream );
+ void Write( SvStream& rOStream ) const;
// convert to ::basegfx::B2DPolyPolygon and return
::basegfx::B2DPolyPolygon getB2DPolyPolygon() const;
diff --git a/tools/inc/tools/postsys.h b/tools/inc/tools/postsys.h
index e52508f61802..68711b38a0b0 100644
--- a/tools/inc/tools/postsys.h
+++ b/tools/inc/tools/postsys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
#undef DELETE
/* Hilfe-Ids umbenennen */
-#define WIN_HELP_INDEX 0x0003
+#define WIN_HELP_INDEX 0x0003
#define WIN_HELP_HELPONHELP 0x0004
#undef HELP_INDEX
#undef HELP_HELPONHELP
@@ -47,86 +47,86 @@
#define WIN_MOUSE_MOVED 0x0001
#undef MOUSE_MOVED
-#define WIN_WB_LEFT 0
-#define WIN_WB_RIGHT 1
+#define WIN_WB_LEFT 0
+#define WIN_WB_RIGHT 1
#undef WB_LEFT
#undef WB_RIGHT
#ifdef GetObject
#undef GetObject
#ifdef UNICODE
-#define WIN_GetObject GetObjectW
+#define WIN_GetObject GetObjectW
#else
-#define WIN_GetObject GetObjectA
+#define WIN_GetObject GetObjectA
#endif
#else
-#define WIN_GetObject GetObject
+#define WIN_GetObject GetObject
#endif
#ifdef SetPrinter
#undef SetPrinter
#ifdef UNICODE
-#define WIN_SetPrinter SetPrinterW
+#define WIN_SetPrinter SetPrinterW
#else
-#define WIN_SetPrinter SetPrinterA
+#define WIN_SetPrinter SetPrinterA
#endif
#else
-#define WIN_SetPrinter SetPrinter
+#define WIN_SetPrinter SetPrinter
#endif
#ifdef GetPrinter
#undef GetPrinter
#ifdef UNICODE
-#define WIN_GetPrinter GetPrinterW
+#define WIN_GetPrinter GetPrinterW
#else
-#define WIN_GetPrinter GetPrinterA
+#define WIN_GetPrinter GetPrinterA
#endif
#else
-#define WIN_GetPrinter GetPrinter
+#define WIN_GetPrinter GetPrinter
#endif
#ifdef DrawText
#undef DrawText
#ifdef UNICODE
-#define WIN_DrawText DrawTextW
+#define WIN_DrawText DrawTextW
#else
-#define WIN_DrawText DrawTextA
+#define WIN_DrawText DrawTextA
#endif
#else
-#define WIN_DrawText DrawText
+#define WIN_DrawText DrawText
#endif
#ifdef mciSetCommand
#undef mciSetCommand
#ifdef UNICODE
-#define WIN_mciSetCommand mciSetCommandW
+#define WIN_mciSetCommand mciSetCommandW
#else
-#define WIN_mciSetCommand mciSetCommandA
+#define WIN_mciSetCommand mciSetCommandA
#endif
#else
-#define mciSetCommand mciSetCommand
+#define mciSetCommand mciSetCommand
#endif
#ifdef SetPort
#undef SetPort
#ifdef UNICODE
-#define WIN_SetPort SetPortW
+#define WIN_SetPort SetPortW
#else
-#define WIN_SetPort SetPortA
+#define WIN_SetPort SetPortA
#endif
#else
-#define WIN_SetPort SetPort
+#define WIN_SetPort SetPort
#endif
#ifdef CopyFile
#undef CopyFile
#ifdef UNICODE
-#define WIN_CopyFile CopyFileW
+#define WIN_CopyFile CopyFileW
#else
-#define WIN_CopyFile CopyFileA
+#define WIN_CopyFile CopyFileA
#endif
#else
-#define WIN_CopyFile CopyFile
+#define WIN_CopyFile CopyFile
#endif
#ifdef GetUserName
@@ -222,13 +222,13 @@
/* new StretchBlt() Modes (simpler names) */
#ifndef STRETCH_ANDSCANS
-#define STRETCH_ANDSCANS 1
+#define STRETCH_ANDSCANS 1
#endif
#ifndef STRETCH_ORSCANS
-#define STRETCH_ORSCANS 2
+#define STRETCH_ORSCANS 2
#endif
#ifndef STRETCH_DELETESCANS
-#define STRETCH_DELETESCANS 3
+#define STRETCH_DELETESCANS 3
#endif
extern "C"
diff --git a/tools/inc/tools/postwin.h b/tools/inc/tools/postwin.h
index 5cffa3feb0e2..40a11c175fde 100644
--- a/tools/inc/tools/postwin.h
+++ b/tools/inc/tools/postwin.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@
#undef GradientStyle_RECT
/* Hilfe-Ids umbenennen */
-#define WIN_HELP_INDEX 0x0003
+#define WIN_HELP_INDEX 0x0003
#define WIN_HELP_HELPONHELP 0x0004
#undef HELP_INDEX
#undef HELP_HELPONHELP
@@ -60,86 +60,86 @@
#define WIN_MOUSE_MOVED 0x0001
#undef MOUSE_MOVED
-#define WIN_WB_LEFT 0
-#define WIN_WB_RIGHT 1
+#define WIN_WB_LEFT 0
+#define WIN_WB_RIGHT 1
#undef WB_LEFT
#undef WB_RIGHT
#ifdef GetObject
#undef GetObject
#ifdef UNICODE
-#define WIN_GetObject GetObjectW
+#define WIN_GetObject GetObjectW
#else
-#define WIN_GetObject GetObjectA
+#define WIN_GetObject GetObjectA
#endif
#else
-#define WIN_GetObject GetObject
+#define WIN_GetObject GetObject
#endif
#ifdef SetPrinter
#undef SetPrinter
#ifdef UNICODE
-#define WIN_SetPrinter SetPrinterW
+#define WIN_SetPrinter SetPrinterW
#else
-#define WIN_SetPrinter SetPrinterA
+#define WIN_SetPrinter SetPrinterA
#endif
#else
-#define WIN_SetPrinter SetPrinter
+#define WIN_SetPrinter SetPrinter
#endif
#ifdef GetPrinter
#undef GetPrinter
#ifdef UNICODE
-#define WIN_GetPrinter GetPrinterW
+#define WIN_GetPrinter GetPrinterW
#else
-#define WIN_GetPrinter GetPrinterA
+#define WIN_GetPrinter GetPrinterA
#endif
#else
-#define WIN_GetPrinter GetPrinter
+#define WIN_GetPrinter GetPrinter
#endif
#ifdef DrawText
#undef DrawText
#ifdef UNICODE
-#define WIN_DrawText DrawTextW
+#define WIN_DrawText DrawTextW
#else
-#define WIN_DrawText DrawTextA
+#define WIN_DrawText DrawTextA
#endif
#else
-#define WIN_DrawText DrawText
+#define WIN_DrawText DrawText
#endif
#ifdef mciSetCommand
#undef mciSetCommand
#ifdef UNICODE
-#define WIN_mciSetCommand mciSetCommandW
+#define WIN_mciSetCommand mciSetCommandW
#else
-#define WIN_mciSetCommand mciSetCommandA
+#define WIN_mciSetCommand mciSetCommandA
#endif
#else
-#define mciSetCommand mciSetCommand
+#define mciSetCommand mciSetCommand
#endif
#ifdef SetPort
#undef SetPort
#ifdef UNICODE
-#define WIN_SetPort SetPortW
+#define WIN_SetPort SetPortW
#else
-#define WIN_SetPort SetPortA
+#define WIN_SetPort SetPortA
#endif
#else
-#define WIN_SetPort SetPort
+#define WIN_SetPort SetPort
#endif
#ifdef CopyFile
#undef CopyFile
#ifdef UNICODE
-#define WIN_CopyFile CopyFileW
+#define WIN_CopyFile CopyFileW
#else
-#define WIN_CopyFile CopyFileA
+#define WIN_CopyFile CopyFileA
#endif
#else
-#define WIN_CopyFile CopyFile
+#define WIN_CopyFile CopyFile
#endif
@@ -236,13 +236,13 @@
/* new StretchBlt() Modes (simpler names) */
#ifndef STRETCH_ANDSCANS
-#define STRETCH_ANDSCANS 1
+#define STRETCH_ANDSCANS 1
#endif
#ifndef STRETCH_ORSCANS
-#define STRETCH_ORSCANS 2
+#define STRETCH_ORSCANS 2
#endif
#ifndef STRETCH_DELETESCANS
-#define STRETCH_DELETESCANS 3
+#define STRETCH_DELETESCANS 3
#endif
#ifdef WNT
diff --git a/tools/inc/tools/postx.h b/tools/inc/tools/postx.h
index 3979438b29a8..c7199876fc02 100644
--- a/tools/inc/tools/postx.h
+++ b/tools/inc/tools/postx.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/presys.h b/tools/inc/tools/presys.h
index 3c689c143ce6..8d27515fb83f 100644
--- a/tools/inc/tools/presys.h
+++ b/tools/inc/tools/presys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/prewin.h b/tools/inc/tools/prewin.h
index 8ced0bba8a78..b73e93fa3342 100644
--- a/tools/inc/tools/prewin.h
+++ b/tools/inc/tools/prewin.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,10 +33,10 @@
#define BOOL WIN_BOOL
#define BYTE WIN_BYTE
#ifndef VCL_NEED_BASETSD
-#define INT64 WIN_INT64
-#define UINT64 WIN_UINT64
-#define INT32 WIN_INT32
-#define UINT32 WIN_UINT32
+#define INT64 WIN_INT64
+#define UINT64 WIN_UINT64
+#define INT32 WIN_INT32
+#define UINT32 WIN_UINT32
#endif
#define Rectangle BLA_Rectangle
@@ -44,7 +44,7 @@
#define PolyPolygon BLA_PolyPolygon
#define Region WIN_Region
#define Folder WIN_Folder
-#define GradientStyle_RECT WIN_GradientStyle_RECT
+#define GradientStyle_RECT WIN_GradientStyle_RECT
#ifdef __cplusplus
extern "C" {
diff --git a/tools/inc/tools/prex.h b/tools/inc/tools/prex.h
index 6a13f88f53e6..3cc8f32ae09d 100644
--- a/tools/inc/tools/prex.h
+++ b/tools/inc/tools/prex.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,20 +29,20 @@
#ifndef _PREX_H
#define _PREX_H
-#define Window XLIB_Window
-#define BYTE XLIB_BYTE
-#define INT8 XLIB_INT8
+#define Window XLIB_Window
+#define BYTE XLIB_BYTE
+#define INT8 XLIB_INT8
#define INT64 XLIB_INT64
-#define BOOL XLIB_BOOL
-#define Font XLIB_Font
-#define Cursor XLIB_Cursor
-#define String XLIB_String
-#define KeyCode XLIB_KeyCode
-#define Region XLIB_Region
-#define Icon XLIB_Icon
-#define Time XLIB_Time
-#define Region XLIB_Region
-#define Boolean XLIB_Boolean
+#define BOOL XLIB_BOOL
+#define Font XLIB_Font
+#define Cursor XLIB_Cursor
+#define String XLIB_String
+#define KeyCode XLIB_KeyCode
+#define Region XLIB_Region
+#define Icon XLIB_Icon
+#define Time XLIB_Time
+#define Region XLIB_Region
+#define Boolean XLIB_Boolean
#if defined __cplusplus
extern "C" {
@@ -65,13 +65,13 @@ extern "C" {
typedef unsigned long Pixel;
#undef DestroyAll
-#define DestroyAll XLIB_DestroyAll
-#define XLIB_DestroyAll 0
+#define DestroyAll XLIB_DestroyAll
+#define XLIB_DestroyAll 0
#undef String
-#define String XLIB_String
+#define String XLIB_String
#undef KeyCode
-#define KeyCode XLIB_KeyCode //undef in intrinsics
+#define KeyCode XLIB_KeyCode //undef in intrinsics
#define __Ol_OlXlibExt_h__
diff --git a/tools/inc/tools/pstm.hxx b/tools/inc/tools/pstm.hxx
index bd77d30214cc..1530474170cc 100644
--- a/tools/inc/tools/pstm.hxx
+++ b/tools/inc/tools/pstm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -163,7 +163,7 @@ DECLARE_UNIQUEINDEX( SvPersistUIdx,SvPersistBase *)
//=========================================================================
class SvStream;
class TOOLS_DLLPUBLIC SvPersistStream : public SvStream
-/* [Beschreibung]
+/* [Beschreibung]
Mit dieser Klasse k"onnen Laufzeit Objektstrukturen gespeichert
und geladen werden. Es m"ussen immer alle beteiligten Objekte
@@ -187,11 +187,11 @@ class TOOLS_DLLPUBLIC SvPersistStream : public SvStream
Die Reihenfolge beim Speichern und Laden ist egal, sie muss nur
gleich sein:
- Speichern: Laden:
- A,B,C,D A,B,C,D richtig
- B,A,C,D B,A,C,D richtig
- C,A,B,D A,B,C,D falsch
- A,B,C,D A,B,C falsch
+ Speichern: Laden:
+ A,B,C,D A,B,C,D richtig
+ B,A,C,D B,A,C,D richtig
+ C,A,B,D A,B,C,D falsch
+ A,B,C,D A,B,C falsch
[Anmerkung]
@@ -216,8 +216,8 @@ protected:
ULONG GetCurMaxIndex() const
{ return GetCurMaxIndex( aPUIdx ); }
- void WriteObj( BYTE nHdr, SvPersistBase * pObj );
- UINT32 ReadObj( SvPersistBase * & rpObj,
+ void WriteObj( BYTE nHdr, SvPersistBase * pObj );
+ UINT32 ReadObj( SvPersistBase * & rpObj,
BOOL bRegister );
public:
BOOL IsStreamed( SvPersistBase * pObj ) const
@@ -231,8 +231,8 @@ public:
~SvPersistStream();
void SetStream( SvStream * pStream );
- SvStream * GetStream() const { return pStm; }
- virtual USHORT IsA() const;
+ SvStream * GetStream() const { return pStm; }
+ virtual USHORT IsA() const;
SvPersistBase * GetObject( ULONG nIdx ) const;
ULONG GetIndex( SvPersistBase * ) const;
@@ -256,8 +256,8 @@ public:
// gespeichert werden.
friend SvStream& operator >> ( SvStream &, SvPersistStream & );
friend SvStream& operator << ( SvStream &, SvPersistStream & );
- ULONG InsertObj( SvPersistBase * );
- ULONG RemoveObj( SvPersistBase * );
+ ULONG InsertObj( SvPersistBase * );
+ ULONG RemoveObj( SvPersistBase * );
};
#endif // _PSTM_HXX
diff --git a/tools/inc/tools/queue.hxx b/tools/inc/tools/queue.hxx
index 233ed20ff8ca..d5a6ff15730f 100644
--- a/tools/inc/tools/queue.hxx
+++ b/tools/inc/tools/queue.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/rc.h b/tools/inc/tools/rc.h
index dd6ddd8a548a..de7d4f81b735 100644
--- a/tools/inc/tools/rc.h
+++ b/tools/inc/tools/rc.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,190 +33,190 @@
// Definition der Struktur die alle "Window"-Resourcen haben
// Hier sind die Fensterstyles definiert die nicht in WinBits sind
-#define RSC_EXTRAMAPUNIT 0xFFFF //Wert nicht veraendern!!!
+#define RSC_EXTRAMAPUNIT 0xFFFF //Wert nicht veraendern!!!
typedef short RSWND_STYLE;
-#define RSWND_DISABLED 0x01
-#define RSWND_CLIENTSIZE 0x02
-
-#define WINDOW_XYMAPMODE 0x0001
-#define WINDOW_X 0x0002
-#define WINDOW_Y 0x0004
-#define WINDOW_WHMAPMODE 0x0008
-#define WINDOW_WIDTH 0x0010
-#define WINDOW_HEIGHT 0x0020
-#define WINDOW_TEXT 0x0080
-#define WINDOW_HELPTEXT 0x0100
-#define WINDOW_QUICKTEXT 0x0200
-#define WINDOW_EXTRALONG 0x0800
-#define WINDOW_UNIQUEID 0x1000
+#define RSWND_DISABLED 0x01
+#define RSWND_CLIENTSIZE 0x02
+
+#define WINDOW_XYMAPMODE 0x0001
+#define WINDOW_X 0x0002
+#define WINDOW_Y 0x0004
+#define WINDOW_WHMAPMODE 0x0008
+#define WINDOW_WIDTH 0x0010
+#define WINDOW_HEIGHT 0x0020
+#define WINDOW_TEXT 0x0080
+#define WINDOW_HELPTEXT 0x0100
+#define WINDOW_QUICKTEXT 0x0200
+#define WINDOW_EXTRALONG 0x0800
+#define WINDOW_UNIQUEID 0x1000
#define WINDOW_BORDER_STYLE 0x2000
// Definition der Struktur die alle "WorkWindow"-Resourcen haben
-#define WORKWIN_SHOWNORMAL 0
-#define WORKWIN_SHOWMINIMIZED 1
-#define WORKWIN_SHOWMAXIMIZED 2
+#define WORKWIN_SHOWNORMAL 0
+#define WORKWIN_SHOWMINIMIZED 1
+#define WORKWIN_SHOWMAXIMIZED 2
// Definition der Struktur der FixedBitmap-Resource.
-#define RSC_FIXEDBITMAP_BITMAP 0x0001
+#define RSC_FIXEDBITMAP_BITMAP 0x0001
// Definition der Struktur der FixedImage-Resource.
-#define RSC_FIXEDIMAGE_IMAGE 0x0001
+#define RSC_FIXEDIMAGE_IMAGE 0x0001
// Definition der Struktur des MenuButtons
-#define RSCMENUBUTTON_MENU 0x01
+#define RSCMENUBUTTON_MENU 0x01
// Definition der Struktur die alle Menu-Resourcen haben
-#define RSC_MENU_ITEMS 0x01
-#define RSC_MENU_TEXT 0x02
-#define RSC_MENU_DEFAULTITEMID 0x04
+#define RSC_MENU_ITEMS 0x01
+#define RSC_MENU_TEXT 0x02
+#define RSC_MENU_DEFAULTITEMID 0x04
// Hier sind die MenuItem-Resourceoptionen definiert
-#define RSC_MENUITEM_SEPARATOR 0x001
-#define RSC_MENUITEM_ID 0x002
-#define RSC_MENUITEM_STATUS 0x004
-#define RSC_MENUITEM_TEXT 0x008
-#define RSC_MENUITEM_BITMAP 0x010
-#define RSC_MENUITEM_HELPTEXT 0x020
-#define RSC_MENUITEM_HELPID 0x040
-#define RSC_MENUITEM_KEYCODE 0x080
-#define RSC_MENUITEM_MENU 0x100
-#define RSC_MENUITEM_CHECKED 0x200
-#define RSC_MENUITEM_DISABLE 0x400
-#define RSC_MENUITEM_COMMAND 0x800
+#define RSC_MENUITEM_SEPARATOR 0x001
+#define RSC_MENUITEM_ID 0x002
+#define RSC_MENUITEM_STATUS 0x004
+#define RSC_MENUITEM_TEXT 0x008
+#define RSC_MENUITEM_BITMAP 0x010
+#define RSC_MENUITEM_HELPTEXT 0x020
+#define RSC_MENUITEM_HELPID 0x040
+#define RSC_MENUITEM_KEYCODE 0x080
+#define RSC_MENUITEM_MENU 0x100
+#define RSC_MENUITEM_CHECKED 0x200
+#define RSC_MENUITEM_DISABLE 0x400
+#define RSC_MENUITEM_COMMAND 0x800
// Hier sind die AccelKey-Resourceoptionen definiert
-#define ACCELITEM_ACCEL 0x01
-#define ACCELITEM_KEY 0x02
+#define ACCELITEM_ACCEL 0x01
+#define ACCELITEM_KEY 0x02
// Definition der Struktur die alle "Field"-Resourcen haben
-#define PATTERNFORMATTER_STRICTFORMAT 0x01
-#define PATTERNFORMATTER_EDITMASK 0x02
-#define PATTERNFORMATTER_LITTERALMASK 0x04
-
-#define NUMERICFORMATTER_MIN 0x01
-#define NUMERICFORMATTER_MAX 0x02
-#define NUMERICFORMATTER_STRICTFORMAT 0x04
-//#define NUMERICFORMATTER_I12 0x08 // erAck: got rid of class International (2005-06-17)
-#define NUMERICFORMATTER_DECIMALDIGITS 0x10
-#define NUMERICFORMATTER_VALUE 0x20
+#define PATTERNFORMATTER_STRICTFORMAT 0x01
+#define PATTERNFORMATTER_EDITMASK 0x02
+#define PATTERNFORMATTER_LITTERALMASK 0x04
+
+#define NUMERICFORMATTER_MIN 0x01
+#define NUMERICFORMATTER_MAX 0x02
+#define NUMERICFORMATTER_STRICTFORMAT 0x04
+//#define NUMERICFORMATTER_I12 0x08 // erAck: got rid of class International (2005-06-17)
+#define NUMERICFORMATTER_DECIMALDIGITS 0x10
+#define NUMERICFORMATTER_VALUE 0x20
#define NUMERICFORMATTER_NOTHOUSANDSEP 0x40
-#define METRICFORMATTER_UNIT 0x01
-#define METRICFORMATTER_CUSTOMUNITTEXT 0x02
+#define METRICFORMATTER_UNIT 0x01
+#define METRICFORMATTER_CUSTOMUNITTEXT 0x02
-#define DATEFORMATTER_MIN 0x01
-#define DATEFORMATTER_MAX 0x02
-#define DATEFORMATTER_LONGFORMAT 0x04
-#define DATEFORMATTER_STRICTFORMAT 0x08
-//#define DATEFORMATTER_I12 0x10 // erAck: got rid of class International (2005-06-17)
-#define DATEFORMATTER_VALUE 0x20
+#define DATEFORMATTER_MIN 0x01
+#define DATEFORMATTER_MAX 0x02
+#define DATEFORMATTER_LONGFORMAT 0x04
+#define DATEFORMATTER_STRICTFORMAT 0x08
+//#define DATEFORMATTER_I12 0x10 // erAck: got rid of class International (2005-06-17)
+#define DATEFORMATTER_VALUE 0x20
-#define TIMEFORMATTER_MIN 0x01
-#define TIMEFORMATTER_MAX 0x02
-#define TIMEFORMATTER_TIMEFIELDFORMAT 0x04
-#define TIMEFORMATTER_DURATION 0x08
-#define TIMEFORMATTER_STRICTFORMAT 0x10
-//#define TIMEFORMATTER_I12 0x20 // erAck: got rid of class International (2005-06-17)
-#define TIMEFORMATTER_VALUE 0x40
+#define TIMEFORMATTER_MIN 0x01
+#define TIMEFORMATTER_MAX 0x02
+#define TIMEFORMATTER_TIMEFIELDFORMAT 0x04
+#define TIMEFORMATTER_DURATION 0x08
+#define TIMEFORMATTER_STRICTFORMAT 0x10
+//#define TIMEFORMATTER_I12 0x20 // erAck: got rid of class International (2005-06-17)
+#define TIMEFORMATTER_VALUE 0x40
-#define NUMERICFIELD_FIRST 0x01
-#define NUMERICFIELD_LAST 0x02
-#define NUMERICFIELD_SPINSIZE 0x04
+#define NUMERICFIELD_FIRST 0x01
+#define NUMERICFIELD_LAST 0x02
+#define NUMERICFIELD_SPINSIZE 0x04
-#define METRICFIELD_FIRST 0x01
-#define METRICFIELD_LAST 0x02
-#define METRICFIELD_SPINSIZE 0x04
+#define METRICFIELD_FIRST 0x01
+#define METRICFIELD_LAST 0x02
+#define METRICFIELD_SPINSIZE 0x04
-#define CURRENCYFIELD_FIRST 0x01
-#define CURRENCYFIELD_LAST 0x02
-#define CURRENCYFIELD_SPINSIZE 0x04
+#define CURRENCYFIELD_FIRST 0x01
+#define CURRENCYFIELD_LAST 0x02
+#define CURRENCYFIELD_SPINSIZE 0x04
-#define DATEFIELD_FIRST 0x01
-#define DATEFIELD_LAST 0x02
+#define DATEFIELD_FIRST 0x01
+#define DATEFIELD_LAST 0x02
-#define TIMEFIELD_FIRST 0x01
-#define TIMEFIELD_LAST 0x02
+#define TIMEFIELD_FIRST 0x01
+#define TIMEFIELD_LAST 0x02
// Definition der Struktur die alle "ToolBoxItem"-Resourcen haben
-#define RSC_TOOLBOXITEM_ID 0x0001
-#define RSC_TOOLBOXITEM_TYPE 0x0002
-#define RSC_TOOLBOXITEM_STATUS 0x0004
-#define RSC_TOOLBOXITEM_HELPID 0x0008
-#define RSC_TOOLBOXITEM_TEXT 0x0010
-#define RSC_TOOLBOXITEM_HELPTEXT 0x0020
-#define RSC_TOOLBOXITEM_BITMAP 0x0040
-#define RSC_TOOLBOXITEM_IMAGE 0x0080
-#define RSC_TOOLBOXITEM_DISABLE 0x0100
-#define RSC_TOOLBOXITEM_STATE 0x0200
-#define RSC_TOOLBOXITEM_HIDE 0x0400
-#define RSC_TOOLBOXITEM_COMMAND 0x0800
-#define RSC_TOOLBOXITEM_MENUSTRINGS 0x1000
+#define RSC_TOOLBOXITEM_ID 0x0001
+#define RSC_TOOLBOXITEM_TYPE 0x0002
+#define RSC_TOOLBOXITEM_STATUS 0x0004
+#define RSC_TOOLBOXITEM_HELPID 0x0008
+#define RSC_TOOLBOXITEM_TEXT 0x0010
+#define RSC_TOOLBOXITEM_HELPTEXT 0x0020
+#define RSC_TOOLBOXITEM_BITMAP 0x0040
+#define RSC_TOOLBOXITEM_IMAGE 0x0080
+#define RSC_TOOLBOXITEM_DISABLE 0x0100
+#define RSC_TOOLBOXITEM_STATE 0x0200
+#define RSC_TOOLBOXITEM_HIDE 0x0400
+#define RSC_TOOLBOXITEM_COMMAND 0x0800
+#define RSC_TOOLBOXITEM_MENUSTRINGS 0x1000
// Definition der Struktur die alle ToolBox-Resourcen haben
-#define RSC_TOOLBOX_BUTTONTYPE 0x01
-#define RSC_TOOLBOX_ALIGN 0x02
-#define RSC_TOOLBOX_LINECOUNT 0x04
-#define RSC_TOOLBOX_FLOATLINES 0x08
-#define RSC_TOOLBOX_CUSTOMIZE 0x10
-#define RSC_TOOLBOX_MENUSTRINGS 0x20
-#define RSC_TOOLBOX_ITEMIMAGELIST 0x40
-#define RSC_TOOLBOX_ITEMLIST 0x80
+#define RSC_TOOLBOX_BUTTONTYPE 0x01
+#define RSC_TOOLBOX_ALIGN 0x02
+#define RSC_TOOLBOX_LINECOUNT 0x04
+#define RSC_TOOLBOX_FLOATLINES 0x08
+#define RSC_TOOLBOX_CUSTOMIZE 0x10
+#define RSC_TOOLBOX_MENUSTRINGS 0x20
+#define RSC_TOOLBOX_ITEMIMAGELIST 0x40
+#define RSC_TOOLBOX_ITEMLIST 0x80
// Definition der Struktur die alle MoreButton-Resourcen haben
-#define RSC_MOREBUTTON_STATE 0x01
-#define RSC_MOREBUTTON_MAPUNIT 0x02
-#define RSC_MOREBUTTON_DELTA 0x04
+#define RSC_MOREBUTTON_STATE 0x01
+#define RSC_MOREBUTTON_MAPUNIT 0x02
+#define RSC_MOREBUTTON_DELTA 0x04
// Definition der Struktur die alle FloatingWindow-Resourcen haben
-#define RSC_FLOATINGWINDOW_WHMAPMODE 0x01
-#define RSC_FLOATINGWINDOW_WIDTH 0x02
-#define RSC_FLOATINGWINDOW_HEIGHT 0x04
-#define RSC_FLOATINGWINDOW_ZOOMIN 0x08
+#define RSC_FLOATINGWINDOW_WHMAPMODE 0x01
+#define RSC_FLOATINGWINDOW_WIDTH 0x02
+#define RSC_FLOATINGWINDOW_HEIGHT 0x04
+#define RSC_FLOATINGWINDOW_ZOOMIN 0x08
// Definition der Struktur die alle DockingWindow-Resourcen haben
-#define RSC_DOCKINGWINDOW_XYMAPMODE 0x01
-#define RSC_DOCKINGWINDOW_X 0x02
-#define RSC_DOCKINGWINDOW_Y 0x04
-#define RSC_DOCKINGWINDOW_FLOATING 0x08
+#define RSC_DOCKINGWINDOW_XYMAPMODE 0x01
+#define RSC_DOCKINGWINDOW_X 0x02
+#define RSC_DOCKINGWINDOW_Y 0x04
+#define RSC_DOCKINGWINDOW_FLOATING 0x08
// Definition der Struktur die alle "TabControlItem"-Resourcen haben
-#define RSC_TABCONTROLITEM_ID 0x0001
-#define RSC_TABCONTROLITEM_TEXT 0x0002
-#define RSC_TABCONTROLITEM_PAGERESID 0x0008
+#define RSC_TABCONTROLITEM_ID 0x0001
+#define RSC_TABCONTROLITEM_TEXT 0x0002
+#define RSC_TABCONTROLITEM_PAGERESID 0x0008
// Definition der Struktur die alle TabControl-Resourcen haben
-#define RSC_TABCONTROL_ITEMLIST 0x01
+#define RSC_TABCONTROL_ITEMLIST 0x01
// Definition der Struktur des ImageButtons
-#define RSC_IMAGEBUTTON_IMAGE 0x01
-#define RSC_IMAGEBUTTON_SYMBOL 0x02
-#define RSC_IMAGEBUTTON_STATE 0x04
+#define RSC_IMAGEBUTTON_IMAGE 0x01
+#define RSC_IMAGEBUTTON_SYMBOL 0x02
+#define RSC_IMAGEBUTTON_STATE 0x04
// Definition der Struktur des ImageRadioButtons
-#define RSC_IMAGERADIOBUTTON_IMAGE 0x01
+#define RSC_IMAGERADIOBUTTON_IMAGE 0x01
// Definition der Struktur des Image
-#define RSC_IMAGE_IMAGEBITMAP 0x01
-#define RSC_IMAGE_MASKBITMAP 0x02
-#define RSC_IMAGE_MASKCOLOR 0x04
+#define RSC_IMAGE_IMAGEBITMAP 0x01
+#define RSC_IMAGE_MASKBITMAP 0x02
+#define RSC_IMAGE_MASKCOLOR 0x04
// Definition der Struktur des Image
-#define RSC_IMAGELIST_IMAGEBITMAP 0x01
-#define RSC_IMAGELIST_MASKBITMAP 0x02
-#define RSC_IMAGELIST_MASKCOLOR 0x04
-#define RSC_IMAGELIST_IDLIST 0x08
-#define RSC_IMAGELIST_IDCOUNT 0x10
+#define RSC_IMAGELIST_IMAGEBITMAP 0x01
+#define RSC_IMAGELIST_MASKBITMAP 0x02
+#define RSC_IMAGELIST_MASKCOLOR 0x04
+#define RSC_IMAGELIST_IDLIST 0x08
+#define RSC_IMAGELIST_IDCOUNT 0x10
// obsolete, should be removed by MM
-#define RSC_COLOR (RSC_NOTYPE + 0x16)
-#define TIME_HOUR 0x01
-#define TIME_MINUTE 0x02
-#define TIME_SECOND 0x04
-#define TIME_SEC100 0x08
-#define DATE_YEAR 0x01
-#define DATE_MONTH 0x02
-#define DATE_DAY 0x04
+#define RSC_COLOR (RSC_NOTYPE + 0x16)
+#define TIME_HOUR 0x01
+#define TIME_MINUTE 0x02
+#define TIME_SECOND 0x04
+#define TIME_SEC100 0x08
+#define DATE_YEAR 0x01
+#define DATE_MONTH 0x02
+#define DATE_DAY 0x04
#endif // _TOOLS_RC_H
diff --git a/tools/inc/tools/rc.hxx b/tools/inc/tools/rc.hxx
index 1720c96c4680..9a6afceedf6c 100644
--- a/tools/inc/tools/rc.hxx
+++ b/tools/inc/tools/rc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,44 +41,44 @@ class TOOLS_DLLPUBLIC Resource
{
protected:
ResMgr* m_pResMgr;
-
+
// check availability of Resource
- BOOL IsAvailableRes( const ResId& rId ) const
+ BOOL IsAvailableRes( const ResId& rId ) const
{ return m_pResMgr->IsAvailable( rId, this ); }
// Load a Resource
- void GetRes( const ResId& rResId );
-
+ void GetRes( const ResId& rResId );
+
// check Resource state
- void TestRes();
-
+ void TestRes();
+
// Get a pointer to the Resource's data
void* GetClassRes()
{ return m_pResMgr->GetClass(); }
-
+
// read a string from the resource
- static sal_uInt32 GetStringRes( UniString& rStr, const BYTE* pStr )
+ static sal_uInt32 GetStringRes( UniString& rStr, const BYTE* pStr )
{ return ResMgr::GetString( rStr, pStr ); }
-
+
// increase the memory pointer gotten by GetClassRes()
void* IncrementRes( sal_uInt32 nBytes )
{ return m_pResMgr->Increment( nBytes ); }
-
+
// return the memory size of a Resource data block
- static sal_uInt32 GetObjSizeRes( RSHEADER_TYPE * pHT )
+ static sal_uInt32 GetObjSizeRes( RSHEADER_TYPE * pHT )
{ return ResMgr::GetObjSize( pHT ); }
-
+
// return the remaining size of this Resource's data
sal_uInt32 GetRemainSizeRes()
{ return m_pResMgr->GetRemainSize(); }
-
+
// get a 32bit value from Resource data
- static sal_Int32 GetLongRes( void * pLong )
+ static sal_Int32 GetLongRes( void * pLong )
{ return ResMgr::GetLong( pLong ); }
// get a 16bit value from Resource data
- static sal_Int16 GetShortRes( void * pShort )
+ static sal_Int16 GetShortRes( void * pShort )
{ return ResMgr::GetShort( pShort ); }
-
+
// read a 32bit value from resource data and increment pointer
sal_Int32 ReadLongRes()
{ return m_pResMgr->ReadLong(); }
@@ -88,16 +88,16 @@ class TOOLS_DLLPUBLIC Resource
// read a string from resource data and increment pointer
UniString ReadStringRes()
{ return m_pResMgr->ReadString(); }
-
+
// Gibt die Resource frei (this-Zeiger fuer Fehlerueberpruefung)
// free the resource from m_pResMgr's stack (pass this ptr for validation)
void FreeResource()
{ m_pResMgr->PopContext( this ); }
-
+
// constructors
Resource() : m_pResMgr( NULL ) {}
Resource( const ResId& rResId );
-
+
public:
#ifdef DBG_UTIL
~Resource() { TestRes(); }
diff --git a/tools/inc/tools/rcid.h b/tools/inc/tools/rcid.h
index 9fa43c503ee3..d34315d810b2 100644
--- a/tools/inc/tools/rcid.h
+++ b/tools/inc/tools/rcid.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,103 +32,103 @@
#include <tools/resid.hxx>
// Definition der Versionsnummer
-#define RSCVERSION_ID 200U
+#define RSCVERSION_ID 200U
// Definition eines ungueltige Identifiers.
-#define RC_NO_ID (sal_uInt32(0xFFFFFFFF))
+#define RC_NO_ID (sal_uInt32(0xFFFFFFFF))
// Dies sind die Resourcetypen
// Mindestens 0x100 wegen MS-Windows Resourcetypen
-//#define RSC_NOTYPE 0x100
+//#define RSC_NOTYPE 0x100
//RSC_NOTYPE wird in resid.hxx definiert
-#define RSC_BYNAME (RSC_NOTYPE + 0x01)
-#define RSC_VERSIONCONTROL (RSC_NOTYPE + 0x02) // Versionskontrolle
+#define RSC_BYNAME (RSC_NOTYPE + 0x01)
+#define RSC_VERSIONCONTROL (RSC_NOTYPE + 0x02) // Versionskontrolle
-#define RSC_RESOURCE (RSC_NOTYPE + 0x10)
-#define RSC_STRING (RSC_NOTYPE + 0x11)
-#define RSC_BITMAP (RSC_NOTYPE + 0x13)
-#define RSC_ACCEL (RSC_NOTYPE + 0x1a)
-#define RSC_ACCELITEM (RSC_NOTYPE + 0x1b)// nur intern
-#define RSC_MENU (RSC_NOTYPE + 0x1c)
-#define RSC_MENUITEM (RSC_NOTYPE + 0x1d)// nur intern
-#define RSC_KEYCODE (RSC_NOTYPE + 0x1f)
-#define RSC_TIME (RSC_NOTYPE + 0x20)
-#define RSC_DATE (RSC_NOTYPE + 0x21)
-//#define RSC_INTERNATIONAL (RSC_NOTYPE + 0x22) // erAck: got rid of class International (2005-06-17)
-#define RSC_IMAGE (RSC_NOTYPE + 0x23)
-#define RSC_IMAGELIST (RSC_NOTYPE + 0x24)
+#define RSC_RESOURCE (RSC_NOTYPE + 0x10)
+#define RSC_STRING (RSC_NOTYPE + 0x11)
+#define RSC_BITMAP (RSC_NOTYPE + 0x13)
+#define RSC_ACCEL (RSC_NOTYPE + 0x1a)
+#define RSC_ACCELITEM (RSC_NOTYPE + 0x1b)// nur intern
+#define RSC_MENU (RSC_NOTYPE + 0x1c)
+#define RSC_MENUITEM (RSC_NOTYPE + 0x1d)// nur intern
+#define RSC_KEYCODE (RSC_NOTYPE + 0x1f)
+#define RSC_TIME (RSC_NOTYPE + 0x20)
+#define RSC_DATE (RSC_NOTYPE + 0x21)
+//#define RSC_INTERNATIONAL (RSC_NOTYPE + 0x22) // erAck: got rid of class International (2005-06-17)
+#define RSC_IMAGE (RSC_NOTYPE + 0x23)
+#define RSC_IMAGELIST (RSC_NOTYPE + 0x24)
-#define RSC_MESSBOX (RSC_NOTYPE + 0x30)
-#define RSC_INFOBOX (RSC_NOTYPE + 0x31)
-#define RSC_WARNINGBOX (RSC_NOTYPE + 0x32)
-#define RSC_ERRORBOX (RSC_NOTYPE + 0x33)
-#define RSC_QUERYBOX (RSC_NOTYPE + 0x34)
-#define RSC_WINDOW (RSC_NOTYPE + 0x35)
-#define RSC_SYSWINDOW (RSC_NOTYPE + 0x36)
-#define RSC_WORKWIN (RSC_NOTYPE + 0x37)
-#define RSC_MDIWINDOW (RSC_NOTYPE + 0x38)
-#define RSC_FLOATINGWINDOW (RSC_NOTYPE + 0x39)
-#define RSC_DIALOG (RSC_NOTYPE + 0x3a)
-#define RSC_MODELESSDIALOG (RSC_NOTYPE + 0x3b)
-#define RSC_MODALDIALOG (RSC_NOTYPE + 0x3c)
-#define RSC_CONTROL (RSC_NOTYPE + 0x44)
-#define RSC_BUTTON (RSC_NOTYPE + 0x45)
-#define RSC_PUSHBUTTON (RSC_NOTYPE + 0x46)
-#define RSC_OKBUTTON (RSC_NOTYPE + 0x47)
-#define RSC_CANCELBUTTON (RSC_NOTYPE + 0x48)
-#define RSC_HELPBUTTON (RSC_NOTYPE + 0x49)
-#define RSC_IMAGEBUTTON (RSC_NOTYPE + 0x4a)
-#define RSC_MENUBUTTON (RSC_NOTYPE + 0x4b)
-#define RSC_MOREBUTTON (RSC_NOTYPE + 0x4c)
-#define RSC_SPINBUTTON (RSC_NOTYPE + 0x4d)
-#define RSC_RADIOBUTTON (RSC_NOTYPE + 0x4e)
-#define RSC_IMAGERADIOBUTTON (RSC_NOTYPE + 0x4f)
-#define RSC_CHECKBOX (RSC_NOTYPE + 0x50)
-#define RSC_TRISTATEBOX (RSC_NOTYPE + 0x51)
-#define RSC_EDIT (RSC_NOTYPE + 0x52)
-#define RSC_MULTILINEEDIT (RSC_NOTYPE + 0x53)
-#define RSC_COMBOBOX (RSC_NOTYPE + 0x54)
-#define RSC_LISTBOX (RSC_NOTYPE + 0x55)
-#define RSC_MULTILISTBOX (RSC_NOTYPE + 0x56)
-#define RSC_TEXT (RSC_NOTYPE + 0x57)
-#define RSC_FIXEDLINE (RSC_NOTYPE + 0x58)
-#define RSC_FIXEDBITMAP (RSC_NOTYPE + 0x59)
-#define RSC_FIXEDIMAGE (RSC_NOTYPE + 0x5a)
-#define RSC_GROUPBOX (RSC_NOTYPE + 0x5c)
-#define RSC_SCROLLBAR (RSC_NOTYPE + 0x5d)
-#define RSC_SCROLLBARBOX (RSC_NOTYPE + 0x5e)
-#define RSC_SPLITTER (RSC_NOTYPE + 0x5f)
-#define RSC_SPLITWINDOW (RSC_NOTYPE + 0x60)
-#define RSC_SPINFIELD (RSC_NOTYPE + 0x61)
-#define RSC_PATTERNFIELD (RSC_NOTYPE + 0x62)
-#define RSC_NUMERICFIELD (RSC_NOTYPE + 0x63)
-#define RSC_METRICFIELD (RSC_NOTYPE + 0x64)
-#define RSC_CURRENCYFIELD (RSC_NOTYPE + 0x65)
-#define RSC_DATEFIELD (RSC_NOTYPE + 0x66)
-#define RSC_TIMEFIELD (RSC_NOTYPE + 0x67)
-#define RSC_PATTERNBOX (RSC_NOTYPE + 0x68)
-#define RSC_NUMERICBOX (RSC_NOTYPE + 0x69)
-#define RSC_METRICBOX (RSC_NOTYPE + 0x6a)
-#define RSC_CURRENCYBOX (RSC_NOTYPE + 0x6b)
-#define RSC_DATEBOX (RSC_NOTYPE + 0x6c)
-#define RSC_TIMEBOX (RSC_NOTYPE + 0x6d)
-#define RSC_LONGCURRENCYFIELD (RSC_NOTYPE + 0x6e)
-#define RSC_LONGCURRENCYBOX (RSC_NOTYPE + 0x6f)
-#define RSC_TOOLBOXITEM (RSC_NOTYPE + 0x70)
-#define RSC_TOOLBOX (RSC_NOTYPE + 0x71)
-#define RSC_DOCKINGWINDOW (RSC_NOTYPE + 0x72)
-#define RSC_STATUSBAR (RSC_NOTYPE + 0x73)
-#define RSC_TABPAGE (RSC_NOTYPE + 0x74)
-#define RSC_TABCONTROL (RSC_NOTYPE + 0x75)
-#define RSC_TABDIALOG (RSC_NOTYPE + 0x76)
-#define RSC_TABCONTROLITEM (RSC_NOTYPE + 0x77)
-#define RSC_TREELISTBOX (RSC_NOTYPE + 0x78)
-#define RSC_STRINGARRAY (RSC_NOTYPE + 0x79)
+#define RSC_MESSBOX (RSC_NOTYPE + 0x30)
+#define RSC_INFOBOX (RSC_NOTYPE + 0x31)
+#define RSC_WARNINGBOX (RSC_NOTYPE + 0x32)
+#define RSC_ERRORBOX (RSC_NOTYPE + 0x33)
+#define RSC_QUERYBOX (RSC_NOTYPE + 0x34)
+#define RSC_WINDOW (RSC_NOTYPE + 0x35)
+#define RSC_SYSWINDOW (RSC_NOTYPE + 0x36)
+#define RSC_WORKWIN (RSC_NOTYPE + 0x37)
+#define RSC_MDIWINDOW (RSC_NOTYPE + 0x38)
+#define RSC_FLOATINGWINDOW (RSC_NOTYPE + 0x39)
+#define RSC_DIALOG (RSC_NOTYPE + 0x3a)
+#define RSC_MODELESSDIALOG (RSC_NOTYPE + 0x3b)
+#define RSC_MODALDIALOG (RSC_NOTYPE + 0x3c)
+#define RSC_CONTROL (RSC_NOTYPE + 0x44)
+#define RSC_BUTTON (RSC_NOTYPE + 0x45)
+#define RSC_PUSHBUTTON (RSC_NOTYPE + 0x46)
+#define RSC_OKBUTTON (RSC_NOTYPE + 0x47)
+#define RSC_CANCELBUTTON (RSC_NOTYPE + 0x48)
+#define RSC_HELPBUTTON (RSC_NOTYPE + 0x49)
+#define RSC_IMAGEBUTTON (RSC_NOTYPE + 0x4a)
+#define RSC_MENUBUTTON (RSC_NOTYPE + 0x4b)
+#define RSC_MOREBUTTON (RSC_NOTYPE + 0x4c)
+#define RSC_SPINBUTTON (RSC_NOTYPE + 0x4d)
+#define RSC_RADIOBUTTON (RSC_NOTYPE + 0x4e)
+#define RSC_IMAGERADIOBUTTON (RSC_NOTYPE + 0x4f)
+#define RSC_CHECKBOX (RSC_NOTYPE + 0x50)
+#define RSC_TRISTATEBOX (RSC_NOTYPE + 0x51)
+#define RSC_EDIT (RSC_NOTYPE + 0x52)
+#define RSC_MULTILINEEDIT (RSC_NOTYPE + 0x53)
+#define RSC_COMBOBOX (RSC_NOTYPE + 0x54)
+#define RSC_LISTBOX (RSC_NOTYPE + 0x55)
+#define RSC_MULTILISTBOX (RSC_NOTYPE + 0x56)
+#define RSC_TEXT (RSC_NOTYPE + 0x57)
+#define RSC_FIXEDLINE (RSC_NOTYPE + 0x58)
+#define RSC_FIXEDBITMAP (RSC_NOTYPE + 0x59)
+#define RSC_FIXEDIMAGE (RSC_NOTYPE + 0x5a)
+#define RSC_GROUPBOX (RSC_NOTYPE + 0x5c)
+#define RSC_SCROLLBAR (RSC_NOTYPE + 0x5d)
+#define RSC_SCROLLBARBOX (RSC_NOTYPE + 0x5e)
+#define RSC_SPLITTER (RSC_NOTYPE + 0x5f)
+#define RSC_SPLITWINDOW (RSC_NOTYPE + 0x60)
+#define RSC_SPINFIELD (RSC_NOTYPE + 0x61)
+#define RSC_PATTERNFIELD (RSC_NOTYPE + 0x62)
+#define RSC_NUMERICFIELD (RSC_NOTYPE + 0x63)
+#define RSC_METRICFIELD (RSC_NOTYPE + 0x64)
+#define RSC_CURRENCYFIELD (RSC_NOTYPE + 0x65)
+#define RSC_DATEFIELD (RSC_NOTYPE + 0x66)
+#define RSC_TIMEFIELD (RSC_NOTYPE + 0x67)
+#define RSC_PATTERNBOX (RSC_NOTYPE + 0x68)
+#define RSC_NUMERICBOX (RSC_NOTYPE + 0x69)
+#define RSC_METRICBOX (RSC_NOTYPE + 0x6a)
+#define RSC_CURRENCYBOX (RSC_NOTYPE + 0x6b)
+#define RSC_DATEBOX (RSC_NOTYPE + 0x6c)
+#define RSC_TIMEBOX (RSC_NOTYPE + 0x6d)
+#define RSC_LONGCURRENCYFIELD (RSC_NOTYPE + 0x6e)
+#define RSC_LONGCURRENCYBOX (RSC_NOTYPE + 0x6f)
+#define RSC_TOOLBOXITEM (RSC_NOTYPE + 0x70)
+#define RSC_TOOLBOX (RSC_NOTYPE + 0x71)
+#define RSC_DOCKINGWINDOW (RSC_NOTYPE + 0x72)
+#define RSC_STATUSBAR (RSC_NOTYPE + 0x73)
+#define RSC_TABPAGE (RSC_NOTYPE + 0x74)
+#define RSC_TABCONTROL (RSC_NOTYPE + 0x75)
+#define RSC_TABDIALOG (RSC_NOTYPE + 0x76)
+#define RSC_TABCONTROLITEM (RSC_NOTYPE + 0x77)
+#define RSC_TREELISTBOX (RSC_NOTYPE + 0x78)
+#define RSC_STRINGARRAY (RSC_NOTYPE + 0x79)
// (RSC_NOTYPE + 0x200) - (RSC_NOTYPE + 0x300) fuer Sfx reserviert
-#define RT_SYS_BITMAP (RSC_NOTYPE + 0xf2)
-#define RT_SYS_STRING (RSC_NOTYPE + 0xf3) // Sonderbehandlung
-#define RT_SYS_FILE (RSC_NOTYPE + 0xf4) // nicht implementiert
+#define RT_SYS_BITMAP (RSC_NOTYPE + 0xf2)
+#define RT_SYS_STRING (RSC_NOTYPE + 0xf3) // Sonderbehandlung
+#define RT_SYS_FILE (RSC_NOTYPE + 0xf4) // nicht implementiert
// (RSC_NOTYPE + 0x200) - (RSC_NOTYPE + 0x300) fuer Sfx reserviert
diff --git a/tools/inc/tools/ref.hxx b/tools/inc/tools/ref.hxx
index ab1c3d0e8435..cf7dc26fdb25 100644
--- a/tools/inc/tools/ref.hxx
+++ b/tools/inc/tools/ref.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,89 +34,89 @@
//=========================================================================
-#define PRV_SV_DECL_REF_SIGNATURE( ClassName, Ref ) \
- inline ClassName##Ref() { pObj = 0; } \
- inline ClassName##Ref( const ClassName##Ref & rObj ); \
- inline ClassName##Ref( ClassName * pObjP ); \
- inline void Clear(); \
- inline ~ClassName##Ref(); \
- inline ClassName##Ref & operator = ( const ClassName##Ref & rObj ); \
- inline ClassName##Ref & operator = ( ClassName * pObj ); \
- inline BOOL Is() const { return pObj != NULL; } \
- inline ClassName * operator & () const { return pObj; } \
- inline ClassName * operator -> () const { return pObj; } \
- inline ClassName & operator * () const { return *pObj; } \
+#define PRV_SV_DECL_REF_SIGNATURE( ClassName, Ref ) \
+ inline ClassName##Ref() { pObj = 0; } \
+ inline ClassName##Ref( const ClassName##Ref & rObj ); \
+ inline ClassName##Ref( ClassName * pObjP ); \
+ inline void Clear(); \
+ inline ~ClassName##Ref(); \
+ inline ClassName##Ref & operator = ( const ClassName##Ref & rObj ); \
+ inline ClassName##Ref & operator = ( ClassName * pObj ); \
+ inline BOOL Is() const { return pObj != NULL; } \
+ inline ClassName * operator & () const { return pObj; } \
+ inline ClassName * operator -> () const { return pObj; } \
+ inline ClassName & operator * () const { return *pObj; } \
inline operator ClassName * () const { return pObj; }
#define PRV_SV_IMPL_REF_COUNTERS( ClassName, Ref, AddRef, AddNextRef, ReleaseRef, Init, pRefbase ) \
-inline ClassName##Ref::ClassName##Ref( const ClassName##Ref & rObj ) \
- { pObj = rObj.pObj; if( pObj ) { Init pRefbase->AddNextRef; } } \
-inline ClassName##Ref::ClassName##Ref( ClassName * pObjP ) \
-{ pObj = pObjP; if( pObj ) { Init pRefbase->AddRef; } } \
-inline void ClassName##Ref::Clear() \
-{ \
- if( pObj ) \
- { \
- ClassName* const pRefObj = pRefbase; \
- pObj = 0; \
- pRefObj->ReleaseRef; \
- } \
-} \
-inline ClassName##Ref::~ClassName##Ref() \
-{ if( pObj ) { pRefbase->ReleaseRef; } } \
-inline ClassName##Ref & ClassName##Ref:: \
- operator = ( const ClassName##Ref & rObj ) \
-{ \
- if( rObj.pObj ) rObj.pRefbase->AddNextRef; \
- ClassName* const pRefObj = pRefbase; \
- pObj = rObj.pObj; \
- Init if( pRefObj ) { pRefObj->ReleaseRef; } \
- return *this; \
-} \
-inline ClassName##Ref & ClassName##Ref::operator = ( ClassName * pObjP ) \
+inline ClassName##Ref::ClassName##Ref( const ClassName##Ref & rObj ) \
+ { pObj = rObj.pObj; if( pObj ) { Init pRefbase->AddNextRef; } } \
+inline ClassName##Ref::ClassName##Ref( ClassName * pObjP ) \
+{ pObj = pObjP; if( pObj ) { Init pRefbase->AddRef; } } \
+inline void ClassName##Ref::Clear() \
+{ \
+ if( pObj ) \
+ { \
+ ClassName* const pRefObj = pRefbase; \
+ pObj = 0; \
+ pRefObj->ReleaseRef; \
+ } \
+} \
+inline ClassName##Ref::~ClassName##Ref() \
+{ if( pObj ) { pRefbase->ReleaseRef; } } \
+inline ClassName##Ref & ClassName##Ref:: \
+ operator = ( const ClassName##Ref & rObj ) \
+{ \
+ if( rObj.pObj ) rObj.pRefbase->AddNextRef; \
+ ClassName* const pRefObj = pRefbase; \
+ pObj = rObj.pObj; \
+ Init if( pRefObj ) { pRefObj->ReleaseRef; } \
+ return *this; \
+} \
+inline ClassName##Ref & ClassName##Ref::operator = ( ClassName * pObjP ) \
{ return *this = ClassName##Ref( pObjP ); }
-#define PRV_SV_DECL_REF_LOCK(ClassName, Ref) \
-protected: \
- ClassName * pObj; \
-public: \
+#define PRV_SV_DECL_REF_LOCK(ClassName, Ref) \
+protected: \
+ ClassName * pObj; \
+public: \
PRV_SV_DECL_REF_SIGNATURE(ClassName, Ref)
-#define PRV_SV_DECL_REF( ClassName ) \
+#define PRV_SV_DECL_REF( ClassName ) \
PRV_SV_DECL_REF_LOCK( ClassName, Ref )
-#define PRV_SV_DECL_LOCK( ClassName ) \
+#define PRV_SV_DECL_LOCK( ClassName ) \
PRV_SV_DECL_REF_LOCK( ClassName, Lock )
-#define SV_DECL_REF( ClassName ) \
-class ClassName; \
-class ClassName##Ref \
-{ \
- PRV_SV_DECL_REF( ClassName ) \
+#define SV_DECL_REF( ClassName ) \
+class ClassName; \
+class ClassName##Ref \
+{ \
+ PRV_SV_DECL_REF( ClassName ) \
};
-#define SV_DECL_LOCK( ClassName ) \
-class ClassName; \
-class ClassName##Lock \
-{ \
- PRV_SV_DECL_LOCK( ClassName ) \
+#define SV_DECL_LOCK( ClassName ) \
+class ClassName; \
+class ClassName##Lock \
+{ \
+ PRV_SV_DECL_LOCK( ClassName ) \
};
-#define SV_IMPL_REF( ClassName ) \
+#define SV_IMPL_REF( ClassName ) \
PRV_SV_IMPL_REF_COUNTERS( ClassName, Ref, AddRef(), AddNextRef(),\
ReleaseReference(), EMPTYARG, pObj )
-#define SV_IMPL_LOCK( ClassName ) \
-PRV_SV_IMPL_REF_COUNTERS( ClassName, Lock, OwnerLock( TRUE ), \
- OwnerLock( TRUE ), OwnerLock( FALSE ), \
+#define SV_IMPL_LOCK( ClassName ) \
+PRV_SV_IMPL_REF_COUNTERS( ClassName, Lock, OwnerLock( TRUE ), \
+ OwnerLock( TRUE ), OwnerLock( FALSE ), \
EMPTYARG, pObj )
-#define SV_DECL_IMPL_REF(ClassName) \
- SV_DECL_REF(ClassName) \
+#define SV_DECL_IMPL_REF(ClassName) \
+ SV_DECL_REF(ClassName) \
SV_IMPL_REF(ClassName)
-#define SV_DECL_IMPL_LOCK( ClassName ) \
- SV_DECL_LOCK(ClassName) \
+#define SV_DECL_IMPL_LOCK( ClassName ) \
+ SV_DECL_LOCK(ClassName) \
SV_IMPL_LOCK(ClassName)
@@ -301,9 +301,9 @@ inline EntryName ClassName##MemberList::Prev()\
{return (EntryName)BaseList::Prev();}\
inline void ClassName##MemberList::Append( const ClassName##MemberList & rList )\
{BaseList::Append(rList);}\
-inline ULONG ClassName##MemberList::GetPos( const EntryName p) const\
+inline ULONG ClassName##MemberList::GetPos( const EntryName p) const\
{return BaseList::GetPos( p );}\
-inline ULONG ClassName##MemberList::GetPos\
+inline ULONG ClassName##MemberList::GetPos\
( const EntryName p, ULONG nStart, BOOL bForward ) const\
{return BaseList::GetPos( p, nStart, bForward );}
@@ -328,9 +328,9 @@ class TOOLS_DLLPUBLIC SvRefBase
UINT32 nRefCount;
#if defined (GCC) && (defined (C281) || defined (C290) || defined (C291))
public:
-#else
+#else
protected:
-#endif
+#endif
virtual ~SvRefBase();
virtual void QueryDelete();
public:
@@ -352,7 +352,7 @@ public:
nRefCount -= SV_NO_DELETE_REFCOUNT;
return ++nRefCount;
}
- void ReleaseReference()
+ void ReleaseReference()
{
if( !--nRefCount )
QueryDelete();
@@ -424,27 +424,27 @@ public:
~SvCompatWeakBase() { _xHdl->ResetWeakBase(); }
};
-#define SV_DECL_WEAK_IMPL( ClassName, HdlName ) \
-class ClassName##Weak \
-{ \
- HdlName _xHdl; \
-public: \
- inline ClassName##Weak( ) {} \
- inline ClassName##Weak( ClassName* pObj ) { \
- if( pObj ) _xHdl = pObj->GetHdl(); } \
- inline void Clear() { _xHdl.Clear(); } \
- inline ClassName##Weak& operator = ( ClassName * pObj ) { \
- _xHdl = pObj ? pObj->GetHdl() : 0; return *this; } \
- inline BOOL Is() const { \
- return _xHdl.Is() && _xHdl->GetObj(); } \
- inline ClassName * operator & () const { \
- return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
- inline ClassName * operator -> () const { \
- return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
- inline ClassName & operator * () const { \
- return *(ClassName*) _xHdl->GetObj(); } \
- inline operator ClassName * () const { \
- return (ClassName*) (_xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
+#define SV_DECL_WEAK_IMPL( ClassName, HdlName ) \
+class ClassName##Weak \
+{ \
+ HdlName _xHdl; \
+public: \
+ inline ClassName##Weak( ) {} \
+ inline ClassName##Weak( ClassName* pObj ) { \
+ if( pObj ) _xHdl = pObj->GetHdl(); } \
+ inline void Clear() { _xHdl.Clear(); } \
+ inline ClassName##Weak& operator = ( ClassName * pObj ) { \
+ _xHdl = pObj ? pObj->GetHdl() : 0; return *this; } \
+ inline BOOL Is() const { \
+ return _xHdl.Is() && _xHdl->GetObj(); } \
+ inline ClassName * operator & () const { \
+ return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
+ inline ClassName * operator -> () const { \
+ return (ClassName*) ( _xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
+ inline ClassName & operator * () const { \
+ return *(ClassName*) _xHdl->GetObj(); } \
+ inline operator ClassName * () const { \
+ return (ClassName*) (_xHdl.Is() ? _xHdl->GetObj() : 0 ); } \
};
#define SV_DECL_WEAK( ClassName ) SV_DECL_WEAK_IMPL( ClassName, SvWeakHdlRef )
diff --git a/tools/inc/tools/resary.hxx b/tools/inc/tools/resary.hxx
index 6f3af5869580..63c4859c66b7 100644
--- a/tools/inc/tools/resary.hxx
+++ b/tools/inc/tools/resary.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,8 +38,8 @@
struct ImplResStringItem
{
- XubString maStr;
- long mnValue;
+ XubString maStr;
+ long mnValue;
#ifdef _TOOLS_RESARY_CXX
ImplResStringItem( const XubString& rStr ) :
@@ -61,34 +61,34 @@ class TOOLS_DLLPUBLIC ResStringArray
// ---------------------
struct ImplResStringItem
{
- XubString m_aStr;
- long m_nValue;
-
+ XubString m_aStr;
+ long m_nValue;
+
ImplResStringItem( const XubString& rStr, long nValue = 0 ) :
m_aStr( rStr ),
m_nValue( nValue )
{}
};
-
+
std::vector< ImplResStringItem > m_aStrings;
-
+
public:
ResStringArray( const ResId& rResId );
~ResStringArray();
-
- const XubString& GetString( sal_uInt32 nIndex ) const
+
+ const XubString& GetString( sal_uInt32 nIndex ) const
{ return (nIndex < m_aStrings.size()) ? m_aStrings[nIndex].m_aStr : String::EmptyString(); }
- long GetValue( sal_uInt32 nIndex ) const
+ long GetValue( sal_uInt32 nIndex ) const
{ return (nIndex < m_aStrings.size()) ? m_aStrings[nIndex].m_nValue : -1; }
- sal_uInt32 Count() const { return sal_uInt32(m_aStrings.size()); }
-
- sal_uInt32 FindIndex( long nValue ) const;
-
+ sal_uInt32 Count() const { return sal_uInt32(m_aStrings.size()); }
+
+ sal_uInt32 FindIndex( long nValue ) const;
+
private:
ResStringArray( const ResStringArray& );
- ResStringArray& operator=( const ResStringArray& );
+ ResStringArray& operator=( const ResStringArray& );
};
-#endif // _TOOLS_RESARY_HXX
+#endif // _TOOLS_RESARY_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/tools/resid.hxx b/tools/inc/tools/resid.hxx
index bead3ec9809b..2b5cb21c2690 100644
--- a/tools/inc/tools/resid.hxx
+++ b/tools/inc/tools/resid.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,8 +34,8 @@
struct RSHEADER_TYPE;
typedef sal_uInt32 RESOURCE_TYPE;
-#define RSC_NOTYPE 0x100
-#define RSC_DONTRELEASE (sal_uInt32(1 << 31))
+#define RSC_NOTYPE 0x100
+#define RSC_DONTRELEASE (sal_uInt32(1 << 31))
class ResMgr;
@@ -53,14 +53,14 @@ class ResId
In this case the highest bit if set decides whether to
not to release the Resource context after loading this id
*/
- RSHEADER_TYPE* m_pResource;
-
- mutable sal_uInt32 m_nResId; // Resource Identifier
- mutable RESOURCE_TYPE m_nRT; // type for loading (mutable to be set later)
- mutable ResMgr * m_pResMgr; // load from this ResMgr (mutable for setting on demand)
- mutable RESOURCE_TYPE m_nRT2; // type for loading (supercedes m_nRT)
+ RSHEADER_TYPE* m_pResource;
+
+ mutable sal_uInt32 m_nResId; // Resource Identifier
+ mutable RESOURCE_TYPE m_nRT; // type for loading (mutable to be set later)
+ mutable ResMgr * m_pResMgr; // load from this ResMgr (mutable for setting on demand)
+ mutable RESOURCE_TYPE m_nRT2; // type for loading (supercedes m_nRT)
mutable sal_uInt32 m_nWinBits; // container for original style bits on a window in a resource
-
+
void ImplInit( sal_uInt32 nId, ResMgr& rMgr, RSHEADER_TYPE* pRes )
{
m_pResource = pRes; m_nResId = nId; m_nRT = RSC_NOTYPE; m_pResMgr = &rMgr; m_nRT2 = RSC_NOTYPE; m_nWinBits = 0;
@@ -88,24 +88,24 @@ class ResId
{
ImplInit( sal_uInt32(nId), rMgr, NULL );
}
-
+
sal_uInt32 GetWinBits() const
{ return m_nWinBits; }
void SetWinBits( sal_uInt32 nBits ) const
{ m_nWinBits = nBits; }
-
- RESOURCE_TYPE GetRT() const { return( m_nRT ); }
- const ResId & SetRT( RESOURCE_TYPE nType ) const
+
+ RESOURCE_TYPE GetRT() const { return( m_nRT ); }
+ const ResId & SetRT( RESOURCE_TYPE nType ) const
/*
Set the type if not already set. Ask for tye with GetRT()
-
+
[Example]
ResId aId( 1000 );
- aId.SetRT( RSC_WINDOW ); // settype window Window
- aId.SetRT( RSC_BUTTON ); // will not set type Button
+ aId.SetRT( RSC_WINDOW ); // settype window Window
+ aId.SetRT( RSC_BUTTON ); // will not set type Button
//aId.GetRT() == RSC_WINDOW is true
-
- @see
+
+ @see
ResId::GetRT2(), ResId::GetRT()
*/
{
@@ -113,7 +113,7 @@ class ResId
m_nRT = nType;
return *this;
}
- RESOURCE_TYPE GetRT2() const
+ RESOURCE_TYPE GetRT2() const
/*
Get the effective type (m_nRT2 or m_nRT1)
@@ -123,10 +123,10 @@ class ResId
{
return (RSC_NOTYPE == m_nRT2) ? m_nRT : m_nRT2;
}
- const ResId & SetRT2( RESOURCE_TYPE nTyp ) const
+ const ResId & SetRT2( RESOURCE_TYPE nTyp ) const
/*
Set the superceding type. Ask spcifically for it with GetRT2()
-
+
SetRT2() may only be called if no derived class calls SetRT in its
Resource constructor.
*/
@@ -135,15 +135,15 @@ class ResId
m_nRT2 = nTyp;
return *this;
}
-
- ResMgr * GetResMgr() const { return m_pResMgr; }
- const ResId & SetResMgr( ResMgr * pMgr ) const
+
+ ResMgr * GetResMgr() const { return m_pResMgr; }
+ const ResId & SetResMgr( ResMgr * pMgr ) const
{
m_pResMgr = pMgr;
OSL_ENSURE( m_pResMgr != NULL, "invalid ResMgr set on ResId" );
return *this;
}
-
+
const ResId & SetAutoRelease(BOOL bRelease) const
{
if( bRelease )
@@ -152,12 +152,12 @@ class ResId
m_nResId |= RSC_DONTRELEASE;
return *this;
}
-
- BOOL IsAutoRelease() const
+
+ BOOL IsAutoRelease() const
{ return !(m_nResId & RSC_DONTRELEASE); }
-
- sal_uInt32 GetId() const { return m_nResId & ~RSC_DONTRELEASE; }
- RSHEADER_TYPE* GetpResource() const { return m_pResource; }
+
+ sal_uInt32 GetId() const { return m_nResId & ~RSC_DONTRELEASE; }
+ RSHEADER_TYPE* GetpResource() const { return m_pResource; }
};
#endif // _RESID_HXX
diff --git a/tools/inc/tools/resmgr.hxx b/tools/inc/tools/resmgr.hxx
index 26d52bebbdb4..e14a8679c788 100644
--- a/tools/inc/tools/resmgr.hxx
+++ b/tools/inc/tools/resmgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,14 +53,14 @@ class InternalResMgr;
struct RSHEADER_TYPE
{
private:
- sal_uInt32 nId; // Identifier der Resource
- RESOURCE_TYPE nRT; // Resource Typ
- sal_uInt32 nGlobOff; // Globaler Offset
- sal_uInt32 nLocalOff; // Lokaler Offset
+ sal_uInt32 nId; // Identifier der Resource
+ RESOURCE_TYPE nRT; // Resource Typ
+ sal_uInt32 nGlobOff; // Globaler Offset
+ sal_uInt32 nLocalOff; // Lokaler Offset
public:
- inline sal_uInt32 GetId(); // Identifier der Resource
- inline RESOURCE_TYPE GetRT(); // Resource Typ
+ inline sal_uInt32 GetId(); // Identifier der Resource
+ inline RESOURCE_TYPE GetRT(); // Resource Typ
inline sal_uInt32 GetGlobOff(); // Globaler Offset
inline sal_uInt32 GetLocalOff(); // Lokaler Offset
};
@@ -76,10 +76,10 @@ typedef void (*ResHookProc)( UniString& rStr );
// ----------
// Initialisierung
-#define RC_NOTYPE 0x00
+#define RC_NOTYPE 0x00
// Globale Resource
-#define RC_GLOBAL 0x01
-#define RC_AUTORELEASE 0x02
+#define RC_GLOBAL 0x01
+#define RC_AUTORELEASE 0x02
#define RC_NOTFOUND 0x04
#define RC_FALLBACK_DOWN 0x08
#define RC_FALLBACK_UP 0x10
@@ -89,23 +89,23 @@ class ResMgr;
struct ImpRCStack
{
// pResource and pClassRes equal NULL: resource was not loaded
- RSHEADER_TYPE * pResource; // pointer to resource
- void * pClassRes; // pointer to class specified init data
- short Flags; // resource status
- void * aResHandle; // Resource-Identifier from InternalResMgr
- const Resource* pResObj; // pointer to Resource object
- sal_uInt32 nId; // ResId used for error message
- ResMgr* pResMgr; // ResMgr for Resource pResObj
-
- void Clear();
- void Init( ResMgr * pMgr, const Resource * pObj, sal_uInt32 nId );
+ RSHEADER_TYPE * pResource; // pointer to resource
+ void * pClassRes; // pointer to class specified init data
+ short Flags; // resource status
+ void * aResHandle; // Resource-Identifier from InternalResMgr
+ const Resource* pResObj; // pointer to Resource object
+ sal_uInt32 nId; // ResId used for error message
+ ResMgr* pResMgr; // ResMgr for Resource pResObj
+
+ void Clear();
+ void Init( ResMgr * pMgr, const Resource * pObj, sal_uInt32 nId );
};
class TOOLS_DLLPUBLIC ResMgr
{
private:
InternalResMgr* pImpRes;
- std::vector< ImpRCStack > aStack; // resource context stack
+ std::vector< ImpRCStack > aStack; // resource context stack
int nCurStack;
ResMgr* pFallbackResMgr; // fallback ResMgr in case the Resource
// was not contained in this ResMgr
@@ -115,11 +115,11 @@ private:
TOOLS_DLLPRIVATE void incStack();
TOOLS_DLLPRIVATE void decStack();
- TOOLS_DLLPRIVATE const ImpRCStack * StackTop( sal_uInt32 nOff = 0 ) const
+ TOOLS_DLLPRIVATE const ImpRCStack * StackTop( sal_uInt32 nOff = 0 ) const
{
return (((int)nOff >= nCurStack) ? NULL : &aStack[nCurStack-nOff]);
}
- TOOLS_DLLPRIVATE void Init( const rtl::OUString& rFileName );
+ TOOLS_DLLPRIVATE void Init( const rtl::OUString& rFileName );
TOOLS_DLLPRIVATE ResMgr( InternalResMgr * pImp );
@@ -139,9 +139,9 @@ private:
// the next two methods are needed to prevent the string hook called
// with the res mgr mutex locked
// like GetString, but doesn't call the string hook
- TOOLS_DLLPRIVATE static sal_uInt32 GetStringWithoutHook( UniString& rStr, const BYTE* pStr );
+ TOOLS_DLLPRIVATE static sal_uInt32 GetStringWithoutHook( UniString& rStr, const BYTE* pStr );
// like ReadString but doesn't call the string hook
- TOOLS_DLLPRIVATE UniString ReadStringWithoutHook();
+ TOOLS_DLLPRIVATE UniString ReadStringWithoutHook();
static ResMgr* ImplCreateResMgr( InternalResMgr* pImpl ) { return new ResMgr( pImpl ); }
@@ -149,73 +149,73 @@ private:
ResMgr(const ResMgr&);
ResMgr& operator=(const ResMgr&);
public:
- static void DestroyAllResMgr(); // Wird gerufen, wenn App beendet wird
+ static void DestroyAllResMgr(); // Wird gerufen, wenn App beendet wird
~ResMgr();
// Sprachabhaengige Ressource Library
- static const sal_Char* GetLang( LanguageType& eLanguage, USHORT nPrio = 0 ); //depricated! see "tools/source/rc/resmgr.cxx"
+ static const sal_Char* GetLang( LanguageType& eLanguage, USHORT nPrio = 0 ); //depricated! see "tools/source/rc/resmgr.cxx"
static ResMgr* SearchCreateResMgr( const sal_Char* pPrefixName,
com::sun::star::lang::Locale& rLocale );
- static ResMgr* CreateResMgr( const sal_Char* pPrefixName,
+ static ResMgr* CreateResMgr( const sal_Char* pPrefixName,
com::sun::star::lang::Locale aLocale = com::sun::star::lang::Locale( rtl::OUString(),
rtl::OUString(),
rtl::OUString()));
// Testet ob Resource noch da ist
- void TestStack( const Resource * );
+ void TestStack( const Resource * );
// ist Resource verfuegbar
- BOOL IsAvailable( const ResId& rId,
+ BOOL IsAvailable( const ResId& rId,
const Resource* = NULL) const;
// Resource suchen und laden
- BOOL GetResource( const ResId& rId, const Resource * = NULL );
- static void * GetResourceSkipHeader( const ResId& rResId, ResMgr ** ppResMgr );
+ BOOL GetResource( const ResId& rId, const Resource * = NULL );
+ static void * GetResourceSkipHeader( const ResId& rResId, ResMgr ** ppResMgr );
// Kontext freigeben
- void PopContext( const Resource* = NULL );
+ void PopContext( const Resource* = NULL );
// Resourcezeiger erhoehen
- void* Increment( sal_uInt32 nSize );
+ void* Increment( sal_uInt32 nSize );
// Groesse ein Objektes in der Resource
- static sal_uInt32 GetObjSize( RSHEADER_TYPE* pHT )
+ static sal_uInt32 GetObjSize( RSHEADER_TYPE* pHT )
{ return( pHT->GetGlobOff() ); }
// Liefert einen String aus der Resource
- static sal_uInt32 GetString( UniString& rStr, const BYTE* pStr );
+ static sal_uInt32 GetString( UniString& rStr, const BYTE* pStr );
// Groesse eines Strings in der Resource
- static sal_uInt32 GetStringSize( sal_uInt32 nLen )
+ static sal_uInt32 GetStringSize( sal_uInt32 nLen )
{ nLen++; return (nLen + nLen%2); }
- static sal_uInt32 GetStringSize( const BYTE* pStr );
+ static sal_uInt32 GetStringSize( const BYTE* pStr );
// return a int64
static sal_uInt64 GetUInt64( void* pDatum );
// Gibt einen long zurueck
- static INT32 GetLong( void * pLong );
+ static INT32 GetLong( void * pLong );
// return a short
- static INT16 GetShort( void * pShort );
+ static INT16 GetShort( void * pShort );
// Gibt einen Zeiger auf die Resource zurueck
- void * GetClass();
+ void * GetClass();
- RSHEADER_TYPE * CreateBlock( const ResId & rId );
+ RSHEADER_TYPE * CreateBlock( const ResId & rId );
// Gibt die verbleibende Groesse zurueck
- sal_uInt32 GetRemainSize();
+ sal_uInt32 GetRemainSize();
const rtl::OUString&GetFileName() const;
- INT16 ReadShort();
- INT32 ReadLong();
- UniString ReadString();
+ INT16 ReadShort();
+ INT32 ReadLong();
+ UniString ReadString();
// generate auto help id for current resource stack
ULONG GetAutoHelpId();
- static void SetReadStringHook( ResHookProc pProc );
- static ResHookProc GetReadStringHook();
+ static void SetReadStringHook( ResHookProc pProc );
+ static ResHookProc GetReadStringHook();
static void SetDefaultLocale( const com::sun::star::lang::Locale& rLocale );
};
diff --git a/tools/inc/tools/rtti.hxx b/tools/inc/tools/rtti.hxx
index 98e9152502a3..4a165e3c99ed 100644
--- a/tools/inc/tools/rtti.hxx
+++ b/tools/inc/tools/rtti.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -121,7 +121,7 @@ typedef void* (*TypeId)();
// On-Demand-faehige persistent-TypeId Version
#define TYPEINFO_ID(id) \
- static TypeId StaticType() { return (TypeId) ( id | 0xF000000L ); } \
+ static TypeId StaticType() { return (TypeId) ( id | 0xF000000L ); } \
static BOOL IsOf( TypeId aSameOrSuperType ); \
virtual TypeId Type() const; \
virtual BOOL IsA( TypeId aSameOrSuperType ) const
diff --git a/tools/inc/tools/shl.hxx b/tools/inc/tools/shl.hxx
index 4a77b1d5d14f..c02dde3114ee 100644
--- a/tools/inc/tools/shl.hxx
+++ b/tools/inc/tools/shl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,79 +36,79 @@
// - GetAppData() -
// ----------------
-#define SHL_SHL1 0
-#define SHL_SHL2 1
-#define SHL_SHL3 2
-#define SHL_APP1 3
-#define SHL_APP2 4
-#define SHL_APP3 5
-#define SHL_TOOLS 6
-#define SHL_SV 7
-#define SHL_SVT 8
-#define SHL_SVDDE 9
-#define SHL_ERR 10
-#define SHL_IPC 11
-#define SHL_SVX 12
-#define SHL_ITEM 13
-#define SHL_SVD 14
-#define SHL_SI 15
-#define SHL_SFC 16
-#define SHL_SFX 17
-//#define SHL_SO2 18
-#define SHL_IDL 19
-#define SHL_IDE 20
-#define SHL_EDIT 21
-#define SHL_VCED 22
-#define SHL_BASIC 23
-#define SHL_HELP 24
-#define SHL_LNKCCH 25
-#define SHL_CHANNEL 26
-#define SHL_SBX 27
-#define SHL_SBC 28
-#define SHL_SDB 29
-#define SHL_SBA 30
-#define SHL_SBA2 31
-#define SHL_SCH 32
-#define SHL_SIM 33
-#define SHL_SM 34
-#define SHL_SGA 35
-#define SHL_DOCMGR 36
+#define SHL_SHL1 0
+#define SHL_SHL2 1
+#define SHL_SHL3 2
+#define SHL_APP1 3
+#define SHL_APP2 4
+#define SHL_APP3 5
+#define SHL_TOOLS 6
+#define SHL_SV 7
+#define SHL_SVT 8
+#define SHL_SVDDE 9
+#define SHL_ERR 10
+#define SHL_IPC 11
+#define SHL_SVX 12
+#define SHL_ITEM 13
+#define SHL_SVD 14
+#define SHL_SI 15
+#define SHL_SFC 16
+#define SHL_SFX 17
+//#define SHL_SO2 18
+#define SHL_IDL 19
+#define SHL_IDE 20
+#define SHL_EDIT 21
+#define SHL_VCED 22
+#define SHL_BASIC 23
+#define SHL_HELP 24
+#define SHL_LNKCCH 25
+#define SHL_CHANNEL 26
+#define SHL_SBX 27
+#define SHL_SBC 28
+#define SHL_SDB 29
+#define SHL_SBA 30
+#define SHL_SBA2 31
+#define SHL_SCH 32
+#define SHL_SIM 33
+#define SHL_SM 34
+#define SHL_SGA 35
+#define SHL_DOCMGR 36
// 37 removed
-#define SHL_MAIL 38
-#define SHL_NEWS 39
-#define SHL_OFFAPP 40
-#define SHL_INET 41
-#define SHL_CHAOS 42
-#define SHL_HISTORY 43
-#define SHL_SJ 44
-#define SHL_CALC 45
-#define SHL_DRAW 46
-#define SHL_WRITER 47
-#define SHL_MONEY 48
-#define SHL_HBCI 49
-#define SHL_BASE3D 50
-#define SHL_BRUSHITEM 51
-#define SHL_SFONTITEM 52
+#define SHL_MAIL 38
+#define SHL_NEWS 39
+#define SHL_OFFAPP 40
+#define SHL_INET 41
+#define SHL_CHAOS 42
+#define SHL_HISTORY 43
+#define SHL_SJ 44
+#define SHL_CALC 45
+#define SHL_DRAW 46
+#define SHL_WRITER 47
+#define SHL_MONEY 48
+#define SHL_HBCI 49
+#define SHL_BASE3D 50
+#define SHL_BRUSHITEM 51
+#define SHL_SFONTITEM 52
// #110743#
-// #define SHL_COUNT 53
+// #define SHL_COUNT 53
// the following added for binary filter project
// Sice an array is created for that values, it is necessary to
// put them directly behind the defined ones. Else, some space is
// wasted.
-#define BF_SHL_SVX 53
-#define BF_SHL_ITEM 54
-#define BF_SHL_SVD 55
-#define BF_SHL_EDIT 56
-#define BF_SHL_SCH 57
-#define BF_SHL_SM 58
-#define BF_SHL_CALC 59
-#define BF_SHL_DRAW 60
-#define BF_SHL_WRITER 61
-#define BF_SHL_SVT 62
-#define BF_SHL_SVDDE 63
+#define BF_SHL_SVX 53
+#define BF_SHL_ITEM 54
+#define BF_SHL_SVD 55
+#define BF_SHL_EDIT 56
+#define BF_SHL_SCH 57
+#define BF_SHL_SM 58
+#define BF_SHL_CALC 59
+#define BF_SHL_DRAW 60
+#define BF_SHL_WRITER 61
+#define BF_SHL_SVT 62
+#define BF_SHL_SVDDE 63
-#define SHL_COUNT 64
+#define SHL_COUNT 64
TOOLS_DLLPUBLIC void** GetAppData( USHORT nSharedLib );
diff --git a/tools/inc/tools/simplerm.hxx b/tools/inc/tools/simplerm.hxx
index 00767880c915..2665b3294203 100644
--- a/tools/inc/tools/simplerm.hxx
+++ b/tools/inc/tools/simplerm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ class TOOLS_DLLPUBLIC SimpleResMgr
{
protected:
osl::Mutex m_aAccessSafety;
- InternalResMgr* m_pResImpl;
+ InternalResMgr* m_pResImpl;
public:
/** creates a new SimpleResManager
@@ -62,7 +62,7 @@ public:
const ::com::sun::star::lang::Locale& _rLocale);
/** creates a new SimpleResManager
- @param _rPrefixName
+ @param _rPrefixName
denotes the prefix of the resource file name
@param _inout_Locale
denotes the locale of the resource file to load. If empty, no default handling
@@ -74,9 +74,9 @@ public:
this one will be loaded as final fallback.
*/
SimpleResMgr( const ::rtl::OUString& _rPrefixName, ::com::sun::star::lang::Locale& _inout_Locale );
- virtual ~SimpleResMgr();
+ virtual ~SimpleResMgr();
- static SimpleResMgr* Create( const sal_Char* pPrefixName,
+ static SimpleResMgr* Create( const sal_Char* pPrefixName,
::com::sun::star::lang::Locale aLocale = ::com::sun::star::lang::Locale( rtl::OUString(),
rtl::OUString(),
rtl::OUString()));// nur in VCL
@@ -98,7 +98,7 @@ public:
an existent string
@seealso IsAvailable
*/
- UniString ReadString( sal_uInt32 nId );
+ UniString ReadString( sal_uInt32 nId );
/** checks whether a certain resource is availble
@param _resourceType
@@ -111,8 +111,8 @@ public:
*/
bool IsAvailable( RESOURCE_TYPE _resourceType, sal_uInt32 _resourceId );
- sal_uInt32 ReadBlob( sal_uInt32 nId, void** pBuffer );
- void FreeBlob( void* pBuffer );
+ sal_uInt32 ReadBlob( sal_uInt32 nId, void** pBuffer );
+ void FreeBlob( void* pBuffer );
};
#endif // _TOOLS_SIMPLERESMGR_HXX_
diff --git a/tools/inc/tools/solar.h b/tools/inc/tools/solar.h
index cde9e178812b..3a819188f66a 100644
--- a/tools/inc/tools/solar.h
+++ b/tools/inc/tools/solar.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,17 +36,17 @@
/*** common solar defines ***********************************/
#ifndef TRUE
-#define TRUE 1
+#define TRUE 1
#endif
#ifndef FALSE
-#define FALSE 0
+#define FALSE 0
#endif
#ifdef _SOLAR__PRIVATE
#undef _SOLAR__PRIVATE
#endif
#define _SOLAR__PRIVATE 1
-#define __REFERENCED 0
+#define __REFERENCED 0
/*** common solar types ********************************************/
/* NOTE: these types are deprecated, or soon will be. They should */
@@ -55,41 +55,41 @@
/* Previous typedefs from before sal convergence are in comments */
/* to the right of the new types. */
-typedef sal_Bool BOOL; /* typedef unsigned char BOOL; */
-typedef sal_uInt8 BYTE; /* typedef unsigned char BYTE; */
-typedef sal_uInt16 USHORT; /* typedef unsigned short USHORT; */
-typedef sal_uIntPtr ULONG; /* typedef unsigned long ULONG; */
-typedef int FASTBOOL;
+typedef sal_Bool BOOL; /* typedef unsigned char BOOL; */
+typedef sal_uInt8 BYTE; /* typedef unsigned char BYTE; */
+typedef sal_uInt16 USHORT; /* typedef unsigned short USHORT; */
+typedef sal_uIntPtr ULONG; /* typedef unsigned long ULONG; */
+typedef int FASTBOOL;
#if !defined(VCL_NEED_BASETSD) || defined(__MINGW32__)
#ifndef _SOLAR_NOUINT
-typedef sal_Int16 INT16; /* typedef short INT16; */
-typedef sal_uInt16 UINT16; /* typedef unsigned short UINT16; */
+typedef sal_Int16 INT16; /* typedef short INT16; */
+typedef sal_uInt16 UINT16; /* typedef unsigned short UINT16; */
#if defined(SAL_W32)
-typedef sal_sChar INT8;
+typedef sal_sChar INT8;
#else
-typedef sal_Char INT8; /* typedef char INT8; */
+typedef sal_Char INT8; /* typedef char INT8; */
#endif
-typedef sal_uInt8 UINT8; /* typedef unsigned char UINT8; */
+typedef sal_uInt8 UINT8; /* typedef unsigned char UINT8; */
#endif /* _SOLAR_NOUINT */
#endif
#ifndef VCL_NEED_BASETSD
#ifndef _SOLAR_NOUINT
/* types with exact defined size (not just the minimum size) */
-typedef sal_Int64 INT64; /* typedef long INT64; previously "void" on Windows */
-typedef sal_uInt64 UINT64; /* typedef unsigned long UINT64; previously "void" on Windows */
-typedef sal_Int32 INT32; /* typedef int INT32; previously "long" on Windows */
-typedef sal_uInt32 UINT32; /* typedef unsigned int UINT32; previously "unsigned long" on Windows */
+typedef sal_Int64 INT64; /* typedef long INT64; previously "void" on Windows */
+typedef sal_uInt64 UINT64; /* typedef unsigned long UINT64; previously "void" on Windows */
+typedef sal_Int32 INT32; /* typedef int INT32; previously "long" on Windows */
+typedef sal_uInt32 UINT32; /* typedef unsigned int UINT32; previously "unsigned long" on Windows */
#endif /* _SOLAR_NOUINT */
#endif
/*** misc. macros to leverage platform and compiler differences ********/
-#define DELETEZ( p ) ( delete p,p = 0 )
+#define DELETEZ( p ) ( delete p,p = 0 )
#define __FAR_DATA
-#define __READONLY_DATA const
+#define __READONLY_DATA const
#define __EXPORT
#ifdef WNT
@@ -115,22 +115,22 @@ typedef sal_uInt32 UINT32; /* typedef unsigned int UINT32; previousl
always little endian;
not necessarily aligned */
-typedef BYTE SVBT8[1];
-typedef BYTE SVBT16[2];
-typedef BYTE SVBT32[4];
-typedef BYTE SVBT64[8];
+typedef BYTE SVBT8[1];
+typedef BYTE SVBT16[2];
+typedef BYTE SVBT32[4];
+typedef BYTE SVBT64[8];
#ifdef __cplusplus
-inline BYTE SVBT8ToByte ( const SVBT8 p ) { return p[0]; }
-inline USHORT SVBT16ToShort( const SVBT16 p ) { return (USHORT)p[0]
+inline BYTE SVBT8ToByte ( const SVBT8 p ) { return p[0]; }
+inline USHORT SVBT16ToShort( const SVBT16 p ) { return (USHORT)p[0]
+ ((USHORT)p[1] << 8); }
-inline sal_uInt32 SVBT32ToUInt32 ( const SVBT32 p ) { return (sal_uInt32)p[0]
+inline sal_uInt32 SVBT32ToUInt32 ( const SVBT32 p ) { return (sal_uInt32)p[0]
+ ((sal_uInt32)p[1] << 8)
+ ((sal_uInt32)p[2] << 16)
+ ((sal_uInt32)p[3] << 24); }
#if defined OSL_LITENDIAN
-inline double SVBT64ToDouble( const SVBT64 p ) { double n;
+inline double SVBT64ToDouble( const SVBT64 p ) { double n;
((BYTE*)&n)[0] = p[0];
((BYTE*)&n)[1] = p[1];
((BYTE*)&n)[2] = p[2];
@@ -141,7 +141,7 @@ inline double SVBT64ToDouble( const SVBT64 p ) { double n;
((BYTE*)&n)[7] = p[7];
return n; }
#else
-inline double SVBT64ToDouble( const SVBT64 p ) { double n;
+inline double SVBT64ToDouble( const SVBT64 p ) { double n;
((BYTE*)&n)[0] = p[7];
((BYTE*)&n)[1] = p[6];
((BYTE*)&n)[2] = p[5];
@@ -153,15 +153,15 @@ inline double SVBT64ToDouble( const SVBT64 p ) { double n;
return n; }
#endif
-inline void ByteToSVBT8 ( BYTE n, SVBT8 p ) { p[0] = n; }
-inline void ShortToSVBT16( USHORT n, SVBT16 p ) { p[0] = (BYTE) n;
+inline void ByteToSVBT8 ( BYTE n, SVBT8 p ) { p[0] = n; }
+inline void ShortToSVBT16( USHORT n, SVBT16 p ) { p[0] = (BYTE) n;
p[1] = (BYTE)(n >> 8); }
-inline void UInt32ToSVBT32 ( sal_uInt32 n, SVBT32 p ) { p[0] = (BYTE) n;
+inline void UInt32ToSVBT32 ( sal_uInt32 n, SVBT32 p ) { p[0] = (BYTE) n;
p[1] = (BYTE)(n >> 8);
p[2] = (BYTE)(n >> 16);
p[3] = (BYTE)(n >> 24); }
#if defined OSL_LITENDIAN
-inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((BYTE*)&n)[0];
+inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((BYTE*)&n)[0];
p[1] = ((BYTE*)&n)[1];
p[2] = ((BYTE*)&n)[2];
p[3] = ((BYTE*)&n)[3];
@@ -170,7 +170,7 @@ inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((BYTE*)&n)[0];
p[6] = ((BYTE*)&n)[6];
p[7] = ((BYTE*)&n)[7]; }
#else
-inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((BYTE*)&n)[7];
+inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((BYTE*)&n)[7];
p[1] = ((BYTE*)&n)[6];
p[2] = ((BYTE*)&n)[5];
p[3] = ((BYTE*)&n)[4];
@@ -186,25 +186,25 @@ inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((BYTE*)&n)[7];
/*** standard floating point definitions *******************************/
#ifndef F_PI
-#define F_PI 3.14159265358979323846
+#define F_PI 3.14159265358979323846
#endif
#ifndef F_PI2
-#define F_PI2 1.57079632679489661923
+#define F_PI2 1.57079632679489661923
#endif
#ifndef F_PI4
-#define F_PI4 0.785398163397448309616
+#define F_PI4 0.785398163397448309616
#endif
#ifndef F_PI180
-#define F_PI180 0.01745329251994
+#define F_PI180 0.01745329251994
#endif
#ifndef F_PI1800
-#define F_PI1800 0.001745329251994
+#define F_PI1800 0.001745329251994
#endif
#ifndef F_PI18000
-#define F_PI18000 0.0001745329251994
+#define F_PI18000 0.0001745329251994
#endif
#ifndef F_2PI
-#define F_2PI 6.28318530717958647694
+#define F_2PI 6.28318530717958647694
#endif
@@ -216,10 +216,10 @@ inline void DoubleToSVBT64( double n, SVBT64 p ) { p[0] = ((BYTE*)&n)[7];
#ifndef __cplusplus
#ifndef min
-#define min(a,b) (((a) < (b)) ? (a) : (b))
+#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef max
-#define max(a,b) (((a) > (b)) ? (a) : (b))
+#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#endif
@@ -237,9 +237,9 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
/*** C / C++ - macros **************************************************/
#ifdef __cplusplus
-#define BEGIN_C extern "C" {
-#define END_C }
-#define EXTERN_C extern "C"
+#define BEGIN_C extern "C" {
+#define END_C }
+#define EXTERN_C extern "C"
#else
#define BEGIN_C
#define END_C
@@ -255,11 +255,11 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
#define HACK( comment )
#endif
-#define _MAKE_NUMSTR( n ) # n
-#define MAKE_NUMSTR( n ) _MAKE_NUMSTR( n )
+#define _MAKE_NUMSTR( n ) # n
+#define MAKE_NUMSTR( n ) _MAKE_NUMSTR( n )
-#define _LF ((char)0x0A)
-#define _CR ((char)0x0D)
+#define _LF ((char)0x0A)
+#define _CR ((char)0x0D)
/*** pragmas ************************************************************/
@@ -277,42 +277,42 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
/* dll file extensions *******************************************************/
/* many of these platforms are historic */
-#define SYSTEM_WINMSCI 1
-#define SYSTEM_WNTMSCI 2
-#define SYSTEM_WNTMSCA 3
-#define SYSTEM_WNTMSCP 4
-#define SYSTEM_WNTMSCM 5
-#define SYSTEM_OS2BLCI 6
-#define SYSTEM_OS2ICCI 7
-#define SYSTEM_OS2ICCI3 8
-#define SYSTEM_UNXLNXI 9
-#define SYSTEM_UNXSOLS 10
-#define SYSTEM_UNXBSDI 11
-#define SYSTEM_UNXBSDA 12
-#define SYSTEM_UNXSCOI 13
-#define SYSTEM_UNXAIXP 14
-#define SYSTEM_UNXHPXR 15
-#define SYSTEM_UNXSNIM 16
-#define SYSTEM_UNXMVSG 17
-#define SYSTEM_UNXIRXM 18
-// #define SYSTEM_MACOSP 19
-#define SYSTEM_UNXFBSDI 20
-#define SYSTEM_UNXSOLI 21
-#define SYSTEM_WINBLCI 22
-#define SYSTEM_UNXMACXP 23
-#define SYSTEM_UNXLNXP 24
-#define SYSTEM_UNXBSDS 25
-#define SYSTEM_UNXLNXR 26
-#define SYSTEM_UNXLNX3 28
-#define SYSTEM_UNXLNXS 29
-#define SYSTEM_UNXLNXX 30
-#define SYSTEM_UNXSOGS 31
-#define SYSTEM_UNXSOGI 32
-#define SYSTEM_UNXMACXI 33
-#define SYSTEM_OS2GCCI 34
-#define SYSTEM_UNXBSDX 35
-#define SYSTEM_UNXOBSD 36
-#define SYSTEM_WNTGCCI 99
+#define SYSTEM_WINMSCI 1
+#define SYSTEM_WNTMSCI 2
+#define SYSTEM_WNTMSCA 3
+#define SYSTEM_WNTMSCP 4
+#define SYSTEM_WNTMSCM 5
+#define SYSTEM_OS2BLCI 6
+#define SYSTEM_OS2ICCI 7
+#define SYSTEM_OS2ICCI3 8
+#define SYSTEM_UNXLNXI 9
+#define SYSTEM_UNXSOLS 10
+#define SYSTEM_UNXBSDI 11
+#define SYSTEM_UNXBSDA 12
+#define SYSTEM_UNXSCOI 13
+#define SYSTEM_UNXAIXP 14
+#define SYSTEM_UNXHPXR 15
+#define SYSTEM_UNXSNIM 16
+#define SYSTEM_UNXMVSG 17
+#define SYSTEM_UNXIRXM 18
+// #define SYSTEM_MACOSP 19
+#define SYSTEM_UNXFBSDI 20
+#define SYSTEM_UNXSOLI 21
+#define SYSTEM_WINBLCI 22
+#define SYSTEM_UNXMACXP 23
+#define SYSTEM_UNXLNXP 24
+#define SYSTEM_UNXBSDS 25
+#define SYSTEM_UNXLNXR 26
+#define SYSTEM_UNXLNX3 28
+#define SYSTEM_UNXLNXS 29
+#define SYSTEM_UNXLNXX 30
+#define SYSTEM_UNXSOGS 31
+#define SYSTEM_UNXSOGI 32
+#define SYSTEM_UNXMACXI 33
+#define SYSTEM_OS2GCCI 34
+#define SYSTEM_UNXBSDX 35
+#define SYSTEM_UNXOBSD 36
+#define SYSTEM_WNTGCCI 99
#if defined WNT
#if defined(__MINGW32__)
@@ -392,23 +392,23 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
#define NOOLDSTRING
#ifndef NOREPLACESTRING
-#define UniString String
-#define XubString String
+#define UniString String
+#define XubString String
#else
-#define XubString UniString
+#define XubString UniString
#endif
-#define xub_Unicode sal_Unicode
-#define xub_uUnicode sal_Unicode
+#define xub_Unicode sal_Unicode
+#define xub_uUnicode sal_Unicode
#ifdef STRING32
-#define xub_StrLen sal_uInt32
+#define xub_StrLen sal_uInt32
#else
-#define xub_StrLen USHORT
+#define xub_StrLen USHORT
#endif
// -- moved here from libcall.hxx ----------------------------------------
-#define LIBRARY_STR(s) # s
-#define LIBRARY_STRING(s) LIBRARY_STR(s)
+#define LIBRARY_STR(s) # s
+#define LIBRARY_STRING(s) LIBRARY_STR(s)
#define GETFUNCTION( s ) GetFunction( s )
#define LIBRARY_CONCAT3( s1, s2, s3 ) \
@@ -444,6 +444,6 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
LIBRARYFILENAME_CONCAT3( str, __DLLEXTENSION, ".dll" )
#endif
-#endif /* _SOLAR_H */
+#endif /* _SOLAR_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/tools/solarmutex.hxx b/tools/inc/tools/solarmutex.hxx
index eef67455a6bb..af96e317ea0c 100644
--- a/tools/inc/tools/solarmutex.hxx
+++ b/tools/inc/tools/solarmutex.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/stack.hxx b/tools/inc/tools/stack.hxx
index 2794c554f8d3..009339df18d9 100644
--- a/tools/inc/tools/stack.hxx
+++ b/tools/inc/tools/stack.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,8 +70,8 @@ public:
class ClassName : private Stack \
{ \
public: \
- using Stack::Clear; \
- using Stack::Count; \
+ using Stack::Clear; \
+ using Stack::Count; \
\
ClassName( USHORT _nInitSize = 16, \
USHORT _nReSize = 16 ) : \
diff --git a/tools/inc/tools/stream.hxx b/tools/inc/tools/stream.hxx
index 08092bf1e42c..a50138913e45 100644
--- a/tools/inc/tools/stream.hxx
+++ b/tools/inc/tools/stream.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,56 +57,56 @@ inline rtl_TextEncoding GetStoreCharSet( rtl_TextEncoding eEncoding )
typedef sal_uInt16 StreamMode;
// read, write, create,... options
-#define STREAM_READ 0x0001 // allow read accesses
-#define STREAM_WRITE 0x0002 // allow write accesses
+#define STREAM_READ 0x0001 // allow read accesses
+#define STREAM_WRITE 0x0002 // allow write accesses
// file i/o
-#define STREAM_NOCREATE 0x0004 // 1 == Dont create file
-#define STREAM_TRUNC 0x0008 // Truncate _existing_ file to zero length
-#define STREAM_COPY_ON_SYMLINK 0x0010 // copy-on-write for symlinks (UNX)
+#define STREAM_NOCREATE 0x0004 // 1 == Dont create file
+#define STREAM_TRUNC 0x0008 // Truncate _existing_ file to zero length
+#define STREAM_COPY_ON_SYMLINK 0x0010 // copy-on-write for symlinks (UNX)
-#define STREAM_READWRITEBITS (STREAM_READ | STREAM_WRITE | \
+#define STREAM_READWRITEBITS (STREAM_READ | STREAM_WRITE | \
STREAM_NOCREATE | STREAM_TRUNC)
// sharing options
-#define STREAM_SHARE_DENYNONE 0x0100
-#define STREAM_SHARE_DENYREAD 0x0200 // overrides denynone
-#define STREAM_SHARE_DENYWRITE 0x0400 // overrides denynone
-#define STREAM_SHARE_DENYALL 0x0800 // overrides denyread,write,none
+#define STREAM_SHARE_DENYNONE 0x0100
+#define STREAM_SHARE_DENYREAD 0x0200 // overrides denynone
+#define STREAM_SHARE_DENYWRITE 0x0400 // overrides denynone
+#define STREAM_SHARE_DENYALL 0x0800 // overrides denyread,write,none
-#define STREAM_SHAREBITS (STREAM_SHARE_DENYNONE | STREAM_SHARE_DENYREAD |\
+#define STREAM_SHAREBITS (STREAM_SHARE_DENYNONE | STREAM_SHARE_DENYREAD |\
STREAM_SHARE_DENYWRITE | STREAM_SHARE_DENYALL)
-#define STREAM_READWRITE (STREAM_READ | STREAM_WRITE)
-#define STREAM_SHARE_DENYREADWRITE (STREAM_SHARE_DENYREAD | STREAM_SHARE_DENYWRITE)
+#define STREAM_READWRITE (STREAM_READ | STREAM_WRITE)
+#define STREAM_SHARE_DENYREADWRITE (STREAM_SHARE_DENYREAD | STREAM_SHARE_DENYWRITE)
-#define STREAM_STD_READ (STREAM_READ | STREAM_SHARE_DENYNONE | STREAM_NOCREATE)
-#define STREAM_STD_WRITE (STREAM_WRITE | STREAM_SHARE_DENYALL)
-#define STREAM_STD_READWRITE (STREAM_READWRITE | STREAM_SHARE_DENYALL)
+#define STREAM_STD_READ (STREAM_READ | STREAM_SHARE_DENYNONE | STREAM_NOCREATE)
+#define STREAM_STD_WRITE (STREAM_WRITE | STREAM_SHARE_DENYALL)
+#define STREAM_STD_READWRITE (STREAM_READWRITE | STREAM_SHARE_DENYALL)
-#define STREAM_SEEK_TO_BEGIN 0L
-#define STREAM_SEEK_TO_END ULONG_MAX
+#define STREAM_SEEK_TO_BEGIN 0L
+#define STREAM_SEEK_TO_END ULONG_MAX
-#define NUMBERFORMAT_INT_BIGENDIAN (sal_uInt16)0x0000
-#define NUMBERFORMAT_INT_LITTLEENDIAN (sal_uInt16)0xFFFF
+#define NUMBERFORMAT_INT_BIGENDIAN (sal_uInt16)0x0000
+#define NUMBERFORMAT_INT_LITTLEENDIAN (sal_uInt16)0xFFFF
-#define COMPRESSMODE_FULL (sal_uInt16)0xFFFF
-#define COMPRESSMODE_NONE (sal_uInt16)0x0000
-#define COMPRESSMODE_ZBITMAP (sal_uInt16)0x0001
-#define COMPRESSMODE_NATIVE (sal_uInt16)0x0010
+#define COMPRESSMODE_FULL (sal_uInt16)0xFFFF
+#define COMPRESSMODE_NONE (sal_uInt16)0x0000
+#define COMPRESSMODE_ZBITMAP (sal_uInt16)0x0001
+#define COMPRESSMODE_NATIVE (sal_uInt16)0x0010
-#define JUSTIFY_RIGHT 0x00
-#define JUSTIFY_LEFT 0x01
+#define JUSTIFY_RIGHT 0x00
+#define JUSTIFY_LEFT 0x01
-#define STREAM_IO_DONTKNOW 0
-#define STREAM_IO_READ 1
-#define STREAM_IO_WRITE 2
+#define STREAM_IO_DONTKNOW 0
+#define STREAM_IO_READ 1
+#define STREAM_IO_WRITE 2
-#define ID_STREAM 1
-#define ID_FILESTREAM 2
-#define ID_MEMORYSTREAM 3
-#define ID_SHAREDMEMORYSTREAM 4
-#define ID_STORAGESTREAM 5
-#define ID_PERSISTSTREAM 6
+#define ID_STREAM 1
+#define ID_FILESTREAM 2
+#define ID_MEMORYSTREAM 3
+#define ID_SHAREDMEMORYSTREAM 4
+#define ID_STORAGESTREAM 5
+#define ID_PERSISTSTREAM 6
class SvStream;
typedef SvStream& (*SvStrPtr)( SvStream& );
@@ -240,264 +240,264 @@ class TOOLS_DLLPUBLIC SvStream
{
private:
// LockBytes Interface
- void* pImp; // unused
- SvLockBytesRef xLockBytes; // Default Implmentierung
- sal_Size nActPos; //
+ void* pImp; // unused
+ SvLockBytesRef xLockBytes; // Default Implmentierung
+ sal_Size nActPos; //
// Puffer-Verwaltung
- sal_uInt8* pRWBuf; // Zeigt auf Read/Write-Puffer
- sal_uInt8* pBufPos; // pRWBuf + nBufActualPos
- sal_uInt16 nBufSize; // Allozierte Groesse des Puffers
- sal_uInt16 nBufActualLen; // Laenge des beschriebenen Teils des Puffers
+ sal_uInt8* pRWBuf; // Zeigt auf Read/Write-Puffer
+ sal_uInt8* pBufPos; // pRWBuf + nBufActualPos
+ sal_uInt16 nBufSize; // Allozierte Groesse des Puffers
+ sal_uInt16 nBufActualLen; // Laenge des beschriebenen Teils des Puffers
// Entspricht nBufSize, wenn EOF nicht
// ueberschritten wurde
- sal_uInt16 nBufActualPos; // aktuelle Position im Puffer (0..nBufSize-1)
- sal_uInt16 nBufFree; // freier Platz im Puffer fuer IO vom Typ eIOMode
- unsigned int eIOMode:2; // STREAM_IO_*
+ sal_uInt16 nBufActualPos; // aktuelle Position im Puffer (0..nBufSize-1)
+ sal_uInt16 nBufFree; // freier Platz im Puffer fuer IO vom Typ eIOMode
+ unsigned int eIOMode:2; // STREAM_IO_*
// Error-Codes, Konvertierung, Komprimierung, ...
- int bIsDirty:1; // TRUE: Stream != Pufferinhalt
- int bIsConsistent:1;// FALSE: Buffer enthaelt Daten, die NICHT
+ int bIsDirty:1; // TRUE: Stream != Pufferinhalt
+ int bIsConsistent:1;// FALSE: Buffer enthaelt Daten, die NICHT
// per PutData in den abgeleiteten Stream
// geschrieben werden duerfen (siehe PutBack)
- int bSwap:1;
- int bIsEof:1;
- sal_uInt32 nError;
- sal_uInt16 nNumberFormatInt;
- sal_uInt16 nCompressMode;
- LineEnd eLineDelimiter;
- CharSet eStreamCharSet;
-// CharSet eTargetCharSet;
+ int bSwap:1;
+ int bIsEof:1;
+ sal_uInt32 nError;
+ sal_uInt16 nNumberFormatInt;
+ sal_uInt16 nCompressMode;
+ LineEnd eLineDelimiter;
+ CharSet eStreamCharSet;
+// CharSet eTargetCharSet;
// Verschluesselung
- ByteString aKey; // aKey.Len != 0 -> Verschluesselung
- unsigned char nCryptMask;
+ ByteString aKey; // aKey.Len != 0 -> Verschluesselung
+ unsigned char nCryptMask;
// Formatierung von Strings
- char cFiller;
- sal_uInt8 nRadix;
- sal_uInt8 nPrecision;
- sal_uInt8 nWidth;
- sal_uInt8 nPrintfParams;
- sal_uInt8 nJustification;
- ByteString aFormatString;
+ char cFiller;
+ sal_uInt8 nRadix;
+ sal_uInt8 nPrecision;
+ sal_uInt8 nWidth;
+ sal_uInt8 nPrintfParams;
+ sal_uInt8 nJustification;
+ ByteString aFormatString;
// Userdata
- long nVersion; // for external use
+ long nVersion; // for external use
// Hilfsmethoden
- void CreateFormatString();
- TOOLS_DLLPRIVATE void ImpInit();
+ void CreateFormatString();
+ TOOLS_DLLPRIVATE void ImpInit();
SvStream ( const SvStream& rStream ); // not implemented
- SvStream& operator=( const SvStream& rStream ); // not implemented
+ SvStream& operator=( const SvStream& rStream ); // not implemented
protected:
- sal_Size nBufFilePos; // Fileposition von pBuf[0]
- sal_uInt16 eStreamMode;
- sal_Bool bIsWritable;
+ sal_Size nBufFilePos; // Fileposition von pBuf[0]
+ sal_uInt16 eStreamMode;
+ sal_Bool bIsWritable;
- virtual sal_Size GetData( void* pData, sal_Size nSize );
- virtual sal_Size PutData( const void* pData, sal_Size nSize );
- virtual sal_Size SeekPos( sal_Size nPos );
- virtual void FlushData();
- virtual void SetSize( sal_Size nSize );
+ virtual sal_Size GetData( void* pData, sal_Size nSize );
+ virtual sal_Size PutData( const void* pData, sal_Size nSize );
+ virtual sal_Size SeekPos( sal_Size nPos );
+ virtual void FlushData();
+ virtual void SetSize( sal_Size nSize );
- void ClearError();
- void ClearBuffer();
+ void ClearError();
+ void ClearBuffer();
// verschluesselt & schreibt blockweise
- sal_Size CryptAndWriteBuffer( const void* pStart, sal_Size nLen );
- sal_Bool EncryptBuffer( void* pStart, sal_Size nLen );
+ sal_Size CryptAndWriteBuffer( const void* pStart, sal_Size nLen );
+ sal_Bool EncryptBuffer( void* pStart, sal_Size nLen );
- void SyncSvStream( sal_Size nNewStreamPos ); // SvStream <- Medium
- void SyncSysStream(); // SvStream -> Medium
+ void SyncSvStream( sal_Size nNewStreamPos ); // SvStream <- Medium
+ void SyncSysStream(); // SvStream -> Medium
public:
SvStream();
SvStream( SvLockBytes *pLockBytes);
- virtual ~SvStream();
+ virtual ~SvStream();
- ErrCode SetLockBytes( SvLockBytesRef& rBytes );
- SvLockBytes* GetLockBytes() const { return xLockBytes; }
+ ErrCode SetLockBytes( SvLockBytesRef& rBytes );
+ SvLockBytes* GetLockBytes() const { return xLockBytes; }
- sal_uInt32 GetError() const { return ERRCODE_TOERROR(nError); }
- sal_uInt32 GetErrorCode() const { return nError; }
+ sal_uInt32 GetError() const { return ERRCODE_TOERROR(nError); }
+ sal_uInt32 GetErrorCode() const { return nError; }
- void SetError( sal_uInt32 nErrorCode );
- virtual void ResetError();
+ void SetError( sal_uInt32 nErrorCode );
+ virtual void ResetError();
- void SetNumberFormatInt( sal_uInt16 nNewFormat );
- sal_uInt16 GetNumberFormatInt() const { return nNumberFormatInt; }
+ void SetNumberFormatInt( sal_uInt16 nNewFormat );
+ sal_uInt16 GetNumberFormatInt() const { return nNumberFormatInt; }
/// Enable/disable swapping of endians, may be needed for Unicode import/export
- inline void SetEndianSwap( sal_Bool bVal );
+ inline void SetEndianSwap( sal_Bool bVal );
// returns status of endian swap flag
- sal_Bool IsEndianSwap() const { return 0 != bSwap; }
+ sal_Bool IsEndianSwap() const { return 0 != bSwap; }
- void SetCompressMode( sal_uInt16 nNewMode )
+ void SetCompressMode( sal_uInt16 nNewMode )
{ nCompressMode = nNewMode; }
- sal_uInt16 GetCompressMode() const { return nCompressMode; }
+ sal_uInt16 GetCompressMode() const { return nCompressMode; }
- void SetKey( const ByteString& rKey );
- const ByteString& GetKey() const { return aKey; }
+ void SetKey( const ByteString& rKey );
+ const ByteString& GetKey() const { return aKey; }
- void SetStreamCharSet( CharSet eCharSet )
+ void SetStreamCharSet( CharSet eCharSet )
{ eStreamCharSet = eCharSet; }
- CharSet GetStreamCharSet() const { return eStreamCharSet; }
-// void SetTargetCharSet( CharSet eCharSet )
-// { eTargetCharSet = eCharSet; }
-// CharSet GetTargetCharSet() const { return eTargetCharSet; }
+ CharSet GetStreamCharSet() const { return eStreamCharSet; }
+// void SetTargetCharSet( CharSet eCharSet )
+// { eTargetCharSet = eCharSet; }
+// CharSet GetTargetCharSet() const { return eTargetCharSet; }
- void SetLineDelimiter( LineEnd eLineEnd )
+ void SetLineDelimiter( LineEnd eLineEnd )
{ eLineDelimiter = eLineEnd; }
- LineEnd GetLineDelimiter() const { return eLineDelimiter; }
-
- SvStream& operator>>( sal_uInt16& rUInt16 );
- SvStream& operator>>( sal_uInt32& rUInt32 );
- SvStream& operator>>( long& rLong );
- SvStream& operator>>( short& rShort );
- SvStream& operator>>( int& rInt );
- SvStream& operator>>( signed char& rChar );
- SvStream& operator>>( char& rChar );
- SvStream& operator>>( unsigned char& rChar );
- SvStream& operator>>( float& rFloat );
- SvStream& operator>>( double& rDouble );
+ LineEnd GetLineDelimiter() const { return eLineDelimiter; }
+
+ SvStream& operator>>( sal_uInt16& rUInt16 );
+ SvStream& operator>>( sal_uInt32& rUInt32 );
+ SvStream& operator>>( long& rLong );
+ SvStream& operator>>( short& rShort );
+ SvStream& operator>>( int& rInt );
+ SvStream& operator>>( signed char& rChar );
+ SvStream& operator>>( char& rChar );
+ SvStream& operator>>( unsigned char& rChar );
+ SvStream& operator>>( float& rFloat );
+ SvStream& operator>>( double& rDouble );
#ifdef ENABLE_BYTESTRING_STREAM_OPERATORS
- SvStream& operator>>( ByteString& rString ) { return ReadByteString(rString); }
+ SvStream& operator>>( ByteString& rString ) { return ReadByteString(rString); }
#endif
#ifdef ENABLE_STRING_STREAM_OPERATORS
- SvStream& operator>>( UniString& rString ) { return ReadByteString(rString); }
+ SvStream& operator>>( UniString& rString ) { return ReadByteString(rString); }
#endif
- SvStream& operator>>( SvStream& rStream );
-
- SvStream& operator<<( sal_uInt16 nUInt16 );
- SvStream& operator<<( sal_uInt32 nUInt32 );
- SvStream& operator<<( long nLong );
- SvStream& operator<<( short nShort );
- SvStream& operator<<( int nInt );
- SvStream& operator<<( signed char nChar );
- SvStream& operator<<( char nChar );
- SvStream& operator<<( unsigned char nChar );
- SvStream& operator<<( float nFloat );
- SvStream& operator<<( const double& rDouble );
- SvStream& operator<<( const char* pBuf );
- SvStream& operator<<( const unsigned char* pBuf );
+ SvStream& operator>>( SvStream& rStream );
+
+ SvStream& operator<<( sal_uInt16 nUInt16 );
+ SvStream& operator<<( sal_uInt32 nUInt32 );
+ SvStream& operator<<( long nLong );
+ SvStream& operator<<( short nShort );
+ SvStream& operator<<( int nInt );
+ SvStream& operator<<( signed char nChar );
+ SvStream& operator<<( char nChar );
+ SvStream& operator<<( unsigned char nChar );
+ SvStream& operator<<( float nFloat );
+ SvStream& operator<<( const double& rDouble );
+ SvStream& operator<<( const char* pBuf );
+ SvStream& operator<<( const unsigned char* pBuf );
#ifdef ENABLE_BYTESTRING_STREAM_OPERATORS
- SvStream& operator<<( const ByteString& rString ) { return WriteByteString( rString ); }
+ SvStream& operator<<( const ByteString& rString ) { return WriteByteString( rString ); }
#endif
#ifdef ENABLE_STRING_STREAM_OPERATORS
- SvStream& operator<<( const UniString& rString ) { return WriteByteString(rString); }
+ SvStream& operator<<( const UniString& rString ) { return WriteByteString(rString); }
#endif
- SvStream& operator<<( SvStream& rStream );
+ SvStream& operator<<( SvStream& rStream );
- SvStream& ReadByteString( UniString& rStr, rtl_TextEncoding eSrcCharSet );
- SvStream& ReadByteString( UniString& rStr ) { return ReadByteString( rStr, GetStreamCharSet() ); }
+ SvStream& ReadByteString( UniString& rStr, rtl_TextEncoding eSrcCharSet );
+ SvStream& ReadByteString( UniString& rStr ) { return ReadByteString( rStr, GetStreamCharSet() ); }
SvStream& ReadByteString( ByteString& rStr );
- SvStream& WriteByteString( const UniString& rStr, rtl_TextEncoding eDestCharSet );
- SvStream& WriteByteString( const UniString& rStr ) { return WriteByteString( rStr, GetStreamCharSet() ); }
+ SvStream& WriteByteString( const UniString& rStr, rtl_TextEncoding eDestCharSet );
+ SvStream& WriteByteString( const UniString& rStr ) { return WriteByteString( rStr, GetStreamCharSet() ); }
SvStream& WriteByteString( const ByteString& rStr );
- void SetRadix( sal_uInt8 nRad )
+ void SetRadix( sal_uInt8 nRad )
{ nRadix = nRad; CreateFormatString(); }
- sal_uInt8 GetRadix() const { return nRadix; }
- void SetPrecision( sal_uInt8 nPrec )
+ sal_uInt8 GetRadix() const { return nRadix; }
+ void SetPrecision( sal_uInt8 nPrec )
{ nPrecision = nPrec; CreateFormatString(); }
- sal_uInt8 GetPrecision() const { return nPrecision; }
- void SetWidth( sal_uInt8 nWid)
+ sal_uInt8 GetPrecision() const { return nPrecision; }
+ void SetWidth( sal_uInt8 nWid)
{ nWidth = nWid; CreateFormatString(); }
- sal_uInt8 GetWidth() const { return nWidth; }
- void SetFiller( char cFil )
+ sal_uInt8 GetWidth() const { return nWidth; }
+ void SetFiller( char cFil )
{ cFiller = cFil; CreateFormatString(); }
- char GetFiller() const { return cFiller; }
- void SetJustification( sal_uInt8 nJus )
+ char GetFiller() const { return cFiller; }
+ void SetJustification( sal_uInt8 nJus )
{ nJustification = nJus; CreateFormatString(); }
- sal_uInt8 GetJustification() const { return nJustification; }
-
- SvStream& ReadNumber( short& rShort );
- SvStream& ReadNumber( sal_uInt16& rUInt16 );
- SvStream& ReadNumber( long& rLong );
- SvStream& ReadNumber( sal_uInt32& rUInt32 );
- SvStream& ReadNumber( int& rInt );
- SvStream& ReadNumber( float& rFloat );
- SvStream& ReadNumber( double& rDouble );
-
- SvStream& WriteNumber( short nShort );
- SvStream& WriteNumber( sal_uInt16 nUInt16 );
- SvStream& WriteNumber( long nLong );
- SvStream& WriteNumber( sal_uInt32 nUInt32 );
- SvStream& WriteNumber( int nInt );
- SvStream& WriteNumber( float nFloat );
- SvStream& WriteNumber( const double& rDouble );
-
- sal_Size Read( void* pData, sal_Size nSize );
- sal_Size Write( const void* pData, sal_Size nSize );
- sal_Size Seek( sal_Size nPos );
- sal_Size SeekRel( sal_sSize nPos );
- sal_Size Tell() const { return nBufFilePos+nBufActualPos; }
- void Flush();
- sal_Bool IsEof() const { return bIsEof; }
+ sal_uInt8 GetJustification() const { return nJustification; }
+
+ SvStream& ReadNumber( short& rShort );
+ SvStream& ReadNumber( sal_uInt16& rUInt16 );
+ SvStream& ReadNumber( long& rLong );
+ SvStream& ReadNumber( sal_uInt32& rUInt32 );
+ SvStream& ReadNumber( int& rInt );
+ SvStream& ReadNumber( float& rFloat );
+ SvStream& ReadNumber( double& rDouble );
+
+ SvStream& WriteNumber( short nShort );
+ SvStream& WriteNumber( sal_uInt16 nUInt16 );
+ SvStream& WriteNumber( long nLong );
+ SvStream& WriteNumber( sal_uInt32 nUInt32 );
+ SvStream& WriteNumber( int nInt );
+ SvStream& WriteNumber( float nFloat );
+ SvStream& WriteNumber( const double& rDouble );
+
+ sal_Size Read( void* pData, sal_Size nSize );
+ sal_Size Write( const void* pData, sal_Size nSize );
+ sal_Size Seek( sal_Size nPos );
+ sal_Size SeekRel( sal_sSize nPos );
+ sal_Size Tell() const { return nBufFilePos+nBufActualPos; }
+ void Flush();
+ sal_Bool IsEof() const { return bIsEof; }
// next Tell() <= nSize
- sal_Bool SetStreamSize( sal_Size nSize );
+ sal_Bool SetStreamSize( sal_Size nSize );
/// Read in the stream to a zero character and put all
/// read chracters in the Bytestring. The String interface
/// convert the BytString with the given encoding to a String
- sal_Bool ReadCString( ByteString& rStr );
- sal_Bool ReadCString( String& rStr, rtl_TextEncoding eToEncode );
- sal_Bool ReadCString( String& rStr ) { return ReadCString( rStr, GetStreamCharSet()); }
+ sal_Bool ReadCString( ByteString& rStr );
+ sal_Bool ReadCString( String& rStr, rtl_TextEncoding eToEncode );
+ sal_Bool ReadCString( String& rStr ) { return ReadCString( rStr, GetStreamCharSet()); }
- sal_Bool ReadLine( ByteString& rStr );
- sal_Bool WriteLine( const ByteString& rStr );
- sal_Bool WriteLines( const ByteString& rStr );
+ sal_Bool ReadLine( ByteString& rStr );
+ sal_Bool WriteLine( const ByteString& rStr );
+ sal_Bool WriteLines( const ByteString& rStr );
- sal_Bool ReadByteStringLine( String& rStr, rtl_TextEncoding eSrcCharSet );
- sal_Bool ReadByteStringLine( String& rStr ) { return ReadByteStringLine( rStr, GetStreamCharSet()); }
- sal_Bool WriteByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet );
- sal_Bool WriteByteStringLine( const String& rStr ) { return WriteByteStringLine( rStr, GetStreamCharSet()); }
- sal_Bool WriteByteStringLines( const String& rStr, rtl_TextEncoding eDestCharSet );
- sal_Bool WriteByteStringLines( const String& rStr ) { return WriteByteStringLine( rStr, GetStreamCharSet()); }
+ sal_Bool ReadByteStringLine( String& rStr, rtl_TextEncoding eSrcCharSet );
+ sal_Bool ReadByteStringLine( String& rStr ) { return ReadByteStringLine( rStr, GetStreamCharSet()); }
+ sal_Bool WriteByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet );
+ sal_Bool WriteByteStringLine( const String& rStr ) { return WriteByteStringLine( rStr, GetStreamCharSet()); }
+ sal_Bool WriteByteStringLines( const String& rStr, rtl_TextEncoding eDestCharSet );
+ sal_Bool WriteByteStringLines( const String& rStr ) { return WriteByteStringLine( rStr, GetStreamCharSet()); }
/// Switch to no endian swapping and write 0xfeff
- sal_Bool StartWritingUnicodeText();
+ sal_Bool StartWritingUnicodeText();
/// Read 16bit, if 0xfeff do nothing, if 0xfffe switch
/// endian swapping, if none of them put back
- sal_Bool StartReadingUnicodeText();
+ sal_Bool StartReadingUnicodeText();
/// Read a line of Unicode
- sal_Bool ReadUniStringLine( String& rStr );
+ sal_Bool ReadUniStringLine( String& rStr );
/// Read a line of Unicode if eSrcCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise read a line of Bytecode and convert from eSrcCharSet
- sal_Bool ReadUniOrByteStringLine( String& rStr, rtl_TextEncoding eSrcCharSet );
- sal_Bool ReadUniOrByteStringLine( String& rStr )
+ sal_Bool ReadUniOrByteStringLine( String& rStr, rtl_TextEncoding eSrcCharSet );
+ sal_Bool ReadUniOrByteStringLine( String& rStr )
{ return ReadUniOrByteStringLine( rStr, GetStreamCharSet() ); }
/// Write a sequence of Unicode characters
- sal_Bool WriteUnicodeText( const String& rStr );
+ sal_Bool WriteUnicodeText( const String& rStr );
/// Write a sequence of Unicode characters if eDestCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise write a sequence of Bytecodes converted to eDestCharSet
- sal_Bool WriteUnicodeOrByteText( const String& rStr, rtl_TextEncoding eDestCharSet );
- sal_Bool WriteUnicodeOrByteText( const String& rStr )
+ sal_Bool WriteUnicodeOrByteText( const String& rStr, rtl_TextEncoding eDestCharSet );
+ sal_Bool WriteUnicodeOrByteText( const String& rStr )
{ return WriteUnicodeOrByteText( rStr, GetStreamCharSet() ); }
/// Write a line of Unicode and append line end (endlu())
- sal_Bool WriteUniStringLine( const String& rStr );
+ sal_Bool WriteUniStringLine( const String& rStr );
/// Write multiple lines of Unicode (with CovertLineEnd) and append line end (endlu())
- sal_Bool WriteUniStringLines( const String& rStr );
+ sal_Bool WriteUniStringLines( const String& rStr );
/// Write a line of Unicode if eDestCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise write a line of Bytecode converted to eDestCharSet
- sal_Bool WriteUniOrByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet );
- sal_Bool WriteUniOrByteStringLine( const String& rStr )
+ sal_Bool WriteUniOrByteStringLine( const String& rStr, rtl_TextEncoding eDestCharSet );
+ sal_Bool WriteUniOrByteStringLine( const String& rStr )
{ return WriteUniOrByteStringLine( rStr, GetStreamCharSet() ); }
/// Write multiple lines of Unicode if eDestCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise write multiple lines of Bytecode converted to eDestCharSet,
/// CovertLineEnd is applied.
- sal_Bool WriteUniOrByteStringLines( const String& rStr, rtl_TextEncoding eDestCharSet );
- sal_Bool WriteUniOrByteStringLines( const String& rStr )
+ sal_Bool WriteUniOrByteStringLines( const String& rStr, rtl_TextEncoding eDestCharSet );
+ sal_Bool WriteUniOrByteStringLines( const String& rStr )
{ return WriteUniOrByteStringLines( rStr, GetStreamCharSet() ); }
/// Write a Unicode character if eDestCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise write as Bytecode converted to eDestCharSet.
/// This may result in more than one byte being written
/// if a multi byte encoding (e.g. UTF7, UTF8) is chosen.
- sal_Bool WriteUniOrByteChar( sal_Unicode ch, rtl_TextEncoding eDestCharSet );
- sal_Bool WriteUniOrByteChar( sal_Unicode ch )
+ sal_Bool WriteUniOrByteChar( sal_Unicode ch, rtl_TextEncoding eDestCharSet );
+ sal_Bool WriteUniOrByteChar( sal_Unicode ch )
{ return WriteUniOrByteChar( ch, GetStreamCharSet() ); }
/** Read a CSV (comma separated values) data line using
@@ -555,61 +555,61 @@ public:
const String& rFieldSeparators, sal_Unicode cFieldQuote,
sal_Bool bAllowBackslashEscape = sal_False);
- void SetBufferSize( sal_uInt16 nBufSize );
- sal_uInt16 GetBufferSize() const { return nBufSize; }
+ void SetBufferSize( sal_uInt16 nBufSize );
+ sal_uInt16 GetBufferSize() const { return nBufSize; }
- void RefreshBuffer();
- SvStream& PutBack( char aCh );
- void EatWhite();
+ void RefreshBuffer();
+ SvStream& PutBack( char aCh );
+ void EatWhite();
- sal_Bool IsWritable() const { return bIsWritable; }
- StreamMode GetStreamMode() const { return eStreamMode; }
- virtual sal_uInt16 IsA() const;
+ sal_Bool IsWritable() const { return bIsWritable; }
+ StreamMode GetStreamMode() const { return eStreamMode; }
+ virtual sal_uInt16 IsA() const;
- long GetVersion() { return nVersion; }
- void SetVersion( long n ) { nVersion = n; }
+ long GetVersion() { return nVersion; }
+ void SetVersion( long n ) { nVersion = n; }
/** Add a mark to indicate to which position in the stream you want to be
able to seek back.
- @descr If you set a mark at nPos, you indicate to the stream that you
+ @descr If you set a mark at nPos, you indicate to the stream that you
won't issue seek operations to any position 'before' nPos. This can
be exploited by 'transient streams' that do not permanently store
their data; they can discard any buffered data up to nPos.
- @descr However, if the stream is already positioned past nPos, this
+ @descr However, if the stream is already positioned past nPos, this
method is not guaranteed to have the desired effect. A 'transient
stream' may have already discarded the buffered data at nPos, so that
a seek operation to nPos will fail nonetheless.
- @descr There can be more than one mark for a stream, indicating that
+ @descr There can be more than one mark for a stream, indicating that
you want to be able to seek back in the stream as far as the 'lowest'
- off all the marks. There can even be multiple marks at the same
+ off all the marks. There can even be multiple marks at the same
position (and they must all be individually removed with
RemoveMark()).
@param nPos The position in the stream at which to add a mark.
*/
- virtual void AddMark(sal_Size nPos);
+ virtual void AddMark(sal_Size nPos);
/** Remove a mark introduced with AddMark().
- @descr If you no longer need to seek back to some position for which
- you added a mark, you should remove that mark. (And a 'transient
+ @descr If you no longer need to seek back to some position for which
+ you added a mark, you should remove that mark. (And a 'transient
stream' that does not permanently store its data can then potentially
discard some of its buffered data.)
- @descr Removing one mark does not have any effects on any other
- marks. Especially, if you have multiple marks at the same position,
+ @descr Removing one mark does not have any effects on any other
+ marks. Especially, if you have multiple marks at the same position,
you must call this method multiple times to effectively 'unmark' that
position.
- @descr If you specify a position for which there is no mark, this
+ @descr If you specify a position for which there is no mark, this
method simply has no effect.
@param nPos The position in the stream at which to remove the mark.
*/
- virtual void RemoveMark(sal_Size nPos);
+ virtual void RemoveMark(sal_Size nPos);
friend SvStream& operator<<( SvStream& rStr, SvStrPtr f ); // fuer Manips
};
@@ -721,11 +721,11 @@ class TOOLS_DLLPUBLIC SvFileStream : public SvStream
friend class FileCopier;
private:
- StreamData* pInstanceData;
- String aFilename;
- sal_uInt16 nLockCounter;
- sal_Bool bIsOpen;
- sal_uInt32 GetFileHandle() const;
+ StreamData* pInstanceData;
+ String aFilename;
+ sal_uInt16 nLockCounter;
+ sal_Bool bIsOpen;
+ sal_uInt32 GetFileHandle() const;
// Forbidden and not implemented.
SvFileStream (const SvFileStream&);
@@ -733,11 +733,11 @@ private:
protected:
- virtual sal_Size GetData( void* pData, sal_Size nSize );
- virtual sal_Size PutData( const void* pData, sal_Size nSize );
- virtual sal_Size SeekPos( sal_Size nPos );
- virtual void SetSize( sal_Size nSize );
- virtual void FlushData();
+ virtual sal_Size GetData( void* pData, sal_Size nSize );
+ virtual sal_Size PutData( const void* pData, sal_Size nSize );
+ virtual sal_Size SeekPos( sal_Size nPos );
+ virtual void SetSize( sal_Size nSize );
+ virtual void FlushData();
public:
// Schaltet bei fehlgeschlagenem Schreiboeffnen auf Lesen zurueck
@@ -745,21 +745,21 @@ public:
SvFileStream();
~SvFileStream();
- virtual void ResetError();
+ virtual void ResetError();
- sal_Bool LockRange( sal_Size nByteOffset, sal_Size nBytes );
- sal_Bool UnlockRange( sal_Size nByteOffset, sal_Size nBytes );
- sal_Bool LockFile();
- sal_Bool UnlockFile();
+ sal_Bool LockRange( sal_Size nByteOffset, sal_Size nBytes );
+ sal_Bool UnlockRange( sal_Size nByteOffset, sal_Size nBytes );
+ sal_Bool LockFile();
+ sal_Bool UnlockFile();
- void Open( const String& rFileName, StreamMode eOpenMode );
- void Close();
- void ReOpen(); // Aufruf nach Close, FilePointer == 0
- sal_Bool IsOpen() const { return bIsOpen; }
- sal_Bool IsLocked() const { return ( nLockCounter!=0 ); }
- virtual sal_uInt16 IsA() const;
+ void Open( const String& rFileName, StreamMode eOpenMode );
+ void Close();
+ void ReOpen(); // Aufruf nach Close, FilePointer == 0
+ sal_Bool IsOpen() const { return bIsOpen; }
+ sal_Bool IsLocked() const { return ( nLockCounter!=0 ); }
+ virtual sal_uInt16 IsA() const;
- const String& GetFileName() const { return aFilename; }
+ const String& GetFileName() const { return aFilename; }
};
// ----------------
@@ -776,59 +776,59 @@ class TOOLS_DLLPUBLIC SvMemoryStream : public SvStream
sal_Size GetSize() const { return nSize; }
protected:
- sal_Size nSize;
- sal_Size nResize;
- sal_Size nPos;
- sal_Size nEndOfData;
- sal_uInt8* pBuf;
- sal_Bool bOwnsData;
-
- virtual sal_Size GetData( void* pData, sal_Size nSize );
- virtual sal_Size PutData( const void* pData, sal_Size nSize );
- virtual sal_Size SeekPos( sal_Size nPos );
- virtual void SetSize( sal_Size nSize );
- virtual void FlushData();
+ sal_Size nSize;
+ sal_Size nResize;
+ sal_Size nPos;
+ sal_Size nEndOfData;
+ sal_uInt8* pBuf;
+ sal_Bool bOwnsData;
+
+ virtual sal_Size GetData( void* pData, sal_Size nSize );
+ virtual sal_Size PutData( const void* pData, sal_Size nSize );
+ virtual sal_Size SeekPos( sal_Size nPos );
+ virtual void SetSize( sal_Size nSize );
+ virtual void FlushData();
// AllocateMemory muss folgende Variable mitpflegen:
// - pBuf: Adresse des neuen Blocks
- virtual sal_Bool AllocateMemory( sal_Size nSize );
+ virtual sal_Bool AllocateMemory( sal_Size nSize );
// ReAllocateMemory muss folgende Variablen mitpflegen:
// - pBuf: Adresse des neuen Blocks
// - nEndOfData: Muss auf nNewSize-1L gesetzt werden, wenn ausserhalb des Blocks
- // Muss auf 0 gesetzt werden, wenn neuer Block 0 Byte gross
+ // Muss auf 0 gesetzt werden, wenn neuer Block 0 Byte gross
// - nSize: Neue Groesse des Blocks
// - nPos: Muss auf 0 gesetzt werden, wenn ausserhalb des Blocks
- virtual sal_Bool ReAllocateMemory( long nDiff );
+ virtual sal_Bool ReAllocateMemory( long nDiff );
// wird aufgerufen, wenn dem Stream der Speicher gehoert oder wenn
// der Speicher in der Groesse veraendert wird.
// FreeMemory muss folgende Variablen mitpflegen:
// - in abgeleiteten Klassen muessen ggf. Handles genullt werden
- virtual void FreeMemory();
+ virtual void FreeMemory();
- SvMemoryStream(void*) { } // Fuer unsere Subklassen
+ SvMemoryStream(void*) { } // Fuer unsere Subklassen
public:
SvMemoryStream( void* pBuf, sal_Size nSize, StreamMode eMode);
SvMemoryStream( sal_Size nInitSize=512, sal_Size nResize=64 );
~SvMemoryStream();
- virtual void ResetError();
+ virtual void ResetError();
sal_Size GetEndOfData() const { return nEndOfData; }
- const void* GetData() { Flush(); return pBuf; }
- operator const void*() { Flush(); return pBuf; }
- virtual sal_uInt16 IsA() const;
+ const void* GetData() { Flush(); return pBuf; }
+ operator const void*() { Flush(); return pBuf; }
+ virtual sal_uInt16 IsA() const;
- void* SwitchBuffer( sal_Size nInitSize=512, sal_Size nResize=64 );
- void* SetBuffer( void* pBuf, sal_Size nSize,
+ void* SwitchBuffer( sal_Size nInitSize=512, sal_Size nResize=64 );
+ void* SetBuffer( void* pBuf, sal_Size nSize,
sal_Bool bOwnsData=TRUE, sal_Size nEOF=0 );
- void ObjectOwnsMemory( sal_Bool bOwn ) { bOwnsData = bOwn; }
- sal_Bool IsObjectMemoryOwner() { return bOwnsData; }
- void SetResizeOffset( sal_Size nNewResize ) { nResize = nNewResize; }
- sal_Size GetResizeOffset() const { return nResize; }
+ void ObjectOwnsMemory( sal_Bool bOwn ) { bOwnsData = bOwn; }
+ sal_Bool IsObjectMemoryOwner() { return bOwnsData; }
+ void SetResizeOffset( sal_Size nNewResize ) { nResize = nNewResize; }
+ sal_Size GetResizeOffset() const { return nResize; }
};
// --------------------
@@ -846,10 +846,10 @@ public:
mehrfaches Aufrufen von Load und Assign erlaubt
--------------------------------------------------*/
TYPEINFO();
- virtual ~SvDataCopyStream(){}
- virtual void Load( SvStream & ) = 0;
- virtual void Save( SvStream & ) = 0;
- virtual void Assign( const SvDataCopyStream & );
+ virtual ~SvDataCopyStream(){}
+ virtual void Load( SvStream & ) = 0;
+ virtual void Save( SvStream & ) = 0;
+ virtual void Assign( const SvDataCopyStream & );
};
#endif // _STREAM_HXX
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx
index 5b8c2b5573b1..cb6b455ade11 100644
--- a/tools/inc/tools/string.hxx
+++ b/tools/inc/tools/string.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,10 +58,10 @@ class UniString;
// -----------------------------------------------------------------------
-#define BYTESTRING_TO_UNISTRING_CVTFLAGS (RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |\
+#define BYTESTRING_TO_UNISTRING_CVTFLAGS (RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |\
RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT |\
RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT)
-#define UNISTRING_TO_BYTESTRING_CVTFLAGS (RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT |\
+#define UNISTRING_TO_BYTESTRING_CVTFLAGS (RTL_UNICODETOTEXT_FLAGS_UNDEFINED_DEFAULT |\
RTL_UNICODETOTEXT_FLAGS_INVALID_DEFAULT |\
RTL_UNICODETOTEXT_FLAGS_UNDEFINED_REPLACE |\
RTL_UNICODETOTEXT_FLAGS_PRIVATE_MAPTO0 |\
@@ -110,14 +110,14 @@ inline LineEnd GetSystemLineEnd()
#ifdef STRING32
#define STRING_NOTFOUND ((xub_StrLen)0x7FFFFFFF)
-#define STRING_MATCH ((xub_StrLen)0x7FFFFFFF)
-#define STRING_LEN ((xub_StrLen)0x7FFFFFFF)
-#define STRING_MAXLEN ((xub_StrLen)0x7FFFFFFF)
+#define STRING_MATCH ((xub_StrLen)0x7FFFFFFF)
+#define STRING_LEN ((xub_StrLen)0x7FFFFFFF)
+#define STRING_MAXLEN ((xub_StrLen)0x7FFFFFFF)
#else
#define STRING_NOTFOUND ((xub_StrLen)0xFFFF)
-#define STRING_MATCH ((xub_StrLen)0xFFFF)
-#define STRING_LEN ((xub_StrLen)0xFFFF)
-#define STRING_MAXLEN ((xub_StrLen)0xFFFF)
+#define STRING_MATCH ((xub_StrLen)0xFFFF)
+#define STRING_LEN ((xub_StrLen)0xFFFF)
+#define STRING_MAXLEN ((xub_StrLen)0xFFFF)
#endif
enum StringCompare { COMPARE_LESS = -1, COMPARE_EQUAL = 0, COMPARE_GREATER = 1 };
@@ -139,9 +139,9 @@ enum StringCompare { COMPARE_LESS = -1, COMPARE_EQUAL = 0, COMPARE_GREATER = 1 }
typedef struct _ByteStringData
{
- sal_Int32 mnRefCount; // Referenz counter
- sal_Int32 mnLen; // Length of the String
- sal_Char maStr[1]; // CharArray (String)
+ sal_Int32 mnRefCount; // Referenz counter
+ sal_Int32 mnLen; // Length of the String
+ sal_Char maStr[1]; // CharArray (String)
} ByteStringData;
#ifdef SAL_W32
@@ -156,12 +156,12 @@ typedef struct _ByteStringData
class TOOLS_DLLPUBLIC ByteString
{
- friend class UniString;
+ friend class UniString;
TOOLS_DLLPRIVATE void InitStringRes( const UniString& rStr );
private:
- ByteStringData* mpData;
+ ByteStringData* mpData;
TOOLS_DLLPRIVATE inline void ImplCopyData();
TOOLS_DLLPRIVATE inline char * ImplCopyStringData(char *);
@@ -209,186 +209,186 @@ public:
return rtl::OString (reinterpret_cast<rtl_String*>(mpData));
}
- static ByteString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 );
- static ByteString CreateFromInt64( sal_Int64 n, sal_Int16 nRadix = 10 );
- static ByteString CreateFromFloat( float f );
- static ByteString CreateFromDouble( double d );
+ static ByteString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 );
+ static ByteString CreateFromInt64( sal_Int64 n, sal_Int16 nRadix = 10 );
+ static ByteString CreateFromFloat( float f );
+ static ByteString CreateFromDouble( double d );
static const ByteString& EmptyString();
- sal_Int32 ToInt32() const;
- sal_Int64 ToInt64() const;
- float ToFloat() const;
- double ToDouble() const;
-
- ByteString& Assign( const ByteString& rStr );
- ByteString& Assign( const rtl::OString& rStr );
- ByteString& Assign( const sal_Char* pCharStr );
- ByteString& Assign( const sal_Char* pCharStr, xub_StrLen nLen );
- ByteString& Assign( sal_Char c );
- ByteString& operator =( const ByteString& rStr )
+ sal_Int32 ToInt32() const;
+ sal_Int64 ToInt64() const;
+ float ToFloat() const;
+ double ToDouble() const;
+
+ ByteString& Assign( const ByteString& rStr );
+ ByteString& Assign( const rtl::OString& rStr );
+ ByteString& Assign( const sal_Char* pCharStr );
+ ByteString& Assign( const sal_Char* pCharStr, xub_StrLen nLen );
+ ByteString& Assign( sal_Char c );
+ ByteString& operator =( const ByteString& rStr )
{ return Assign( rStr ); }
- ByteString& operator =( const rtl::OString& rStr )
+ ByteString& operator =( const rtl::OString& rStr )
{ return Assign( rStr ); }
- ByteString& operator =( const sal_Char* pCharStr )
+ ByteString& operator =( const sal_Char* pCharStr )
{ return Assign( pCharStr ); }
- ByteString& operator =( const sal_Char c )
+ ByteString& operator =( const sal_Char c )
{ return Assign( c ); }
- ByteString& Append( const ByteString& rStr );
- ByteString& Append( const sal_Char* pCharStr );
- ByteString& Append( const sal_Char* pCharStr, xub_StrLen nLen );
- ByteString& Append( char c );
- ByteString& operator +=( const ByteString& rStr )
+ ByteString& Append( const ByteString& rStr );
+ ByteString& Append( const sal_Char* pCharStr );
+ ByteString& Append( const sal_Char* pCharStr, xub_StrLen nLen );
+ ByteString& Append( char c );
+ ByteString& operator +=( const ByteString& rStr )
{ return Append( rStr ); }
- ByteString& operator +=( const sal_Char* pCharStr )
+ ByteString& operator +=( const sal_Char* pCharStr )
{ return Append( pCharStr ); }
- ByteString& operator +=( sal_Char c )
+ ByteString& operator +=( sal_Char c )
{ return Append( c ); }
- void SetChar( xub_StrLen nIndex, sal_Char c );
- sal_Char GetChar( xub_StrLen nIndex ) const
+ void SetChar( xub_StrLen nIndex, sal_Char c );
+ sal_Char GetChar( xub_StrLen nIndex ) const
{ return mpData->maStr[nIndex]; }
- xub_StrLen Len() const { return (xub_StrLen)mpData->mnLen; }
+ xub_StrLen Len() const { return (xub_StrLen)mpData->mnLen; }
- ByteString& Insert( const ByteString& rStr, xub_StrLen nIndex = STRING_LEN );
- ByteString& Insert( const ByteString& rStr, xub_StrLen nPos, xub_StrLen nLen,
+ ByteString& Insert( const ByteString& rStr, xub_StrLen nIndex = STRING_LEN );
+ ByteString& Insert( const ByteString& rStr, xub_StrLen nPos, xub_StrLen nLen,
xub_StrLen nIndex = STRING_LEN );
- ByteString& Insert( const sal_Char* pCharStr, xub_StrLen nIndex = STRING_LEN );
- ByteString& Insert( sal_Char c, xub_StrLen nIndex = STRING_LEN );
- ByteString& Replace( xub_StrLen nIndex, xub_StrLen nCount, const ByteString& rStr );
- ByteString& Erase( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN );
+ ByteString& Insert( const sal_Char* pCharStr, xub_StrLen nIndex = STRING_LEN );
+ ByteString& Insert( sal_Char c, xub_StrLen nIndex = STRING_LEN );
+ ByteString& Replace( xub_StrLen nIndex, xub_StrLen nCount, const ByteString& rStr );
+ ByteString& Erase( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN );
ByteString Copy( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN ) const;
- ByteString& Fill( xub_StrLen nCount, sal_Char cFillChar = ' ' );
- ByteString& Expand( xub_StrLen nCount, sal_Char cExpandChar = ' ' );
+ ByteString& Fill( xub_StrLen nCount, sal_Char cFillChar = ' ' );
+ ByteString& Expand( xub_StrLen nCount, sal_Char cExpandChar = ' ' );
- ByteString& EraseLeadingChars( sal_Char c = ' ' );
- ByteString& EraseTrailingChars( sal_Char c = ' ' );
- ByteString& EraseLeadingAndTrailingChars( sal_Char c = ' ' );
- ByteString& EraseAllChars( sal_Char c = ' ' );
- ByteString& Reverse();
+ ByteString& EraseLeadingChars( sal_Char c = ' ' );
+ ByteString& EraseTrailingChars( sal_Char c = ' ' );
+ ByteString& EraseLeadingAndTrailingChars( sal_Char c = ' ' );
+ ByteString& EraseAllChars( sal_Char c = ' ' );
+ ByteString& Reverse();
- ByteString& Convert( rtl_TextEncoding eSource,
+ ByteString& Convert( rtl_TextEncoding eSource,
rtl_TextEncoding eTarget,
BOOL bReplace = TRUE );
- static sal_Char Convert( sal_Char c, rtl_TextEncoding eSource,
+ static sal_Char Convert( sal_Char c, rtl_TextEncoding eSource,
rtl_TextEncoding eTarget,
BOOL bReplace = TRUE );
- static sal_Unicode ConvertToUnicode( sal_Char c,
+ static sal_Unicode ConvertToUnicode( sal_Char c,
rtl_TextEncoding eTextEncoding );
- static sal_Char ConvertFromUnicode( sal_Unicode c,
+ static sal_Char ConvertFromUnicode( sal_Unicode c,
rtl_TextEncoding eTextEncoding,
BOOL bReplace = TRUE );
- static sal_Unicode ConvertToUnicode( const sal_Char* pChar, sal_Size* pLen,
+ static sal_Unicode ConvertToUnicode( const sal_Char* pChar, sal_Size* pLen,
rtl_TextEncoding eTextEncoding );
- static sal_Size ConvertFromUnicode( sal_Unicode c, sal_Char* pBuf, sal_Size nBufLen,
+ static sal_Size ConvertFromUnicode( sal_Unicode c, sal_Char* pBuf, sal_Size nBufLen,
rtl_TextEncoding eTextEncoding,
BOOL bReplace = TRUE );
- ByteString& ConvertLineEnd( LineEnd eLineEnd );
- ByteString& ConvertLineEnd()
+ ByteString& ConvertLineEnd( LineEnd eLineEnd );
+ ByteString& ConvertLineEnd()
{ return ConvertLineEnd( GetSystemLineEnd() ); }
- BOOL IsLowerAscii() const;
- BOOL IsUpperAscii() const;
- BOOL IsAlphaAscii() const;
- BOOL IsNumericAscii() const;
- BOOL IsAlphaNumericAscii() const;
+ BOOL IsLowerAscii() const;
+ BOOL IsUpperAscii() const;
+ BOOL IsAlphaAscii() const;
+ BOOL IsNumericAscii() const;
+ BOOL IsAlphaNumericAscii() const;
- ByteString& ToLowerAscii();
- ByteString& ToUpperAscii();
+ ByteString& ToLowerAscii();
+ ByteString& ToUpperAscii();
- StringCompare CompareTo( const ByteString& rStr,
+ StringCompare CompareTo( const ByteString& rStr,
xub_StrLen nLen = STRING_LEN ) const;
- StringCompare CompareTo( const sal_Char* pCharStr,
+ StringCompare CompareTo( const sal_Char* pCharStr,
xub_StrLen nLen = STRING_LEN ) const;
- StringCompare CompareIgnoreCaseToAscii( const ByteString& rStr,
+ StringCompare CompareIgnoreCaseToAscii( const ByteString& rStr,
xub_StrLen nLen = STRING_LEN ) const;
- StringCompare CompareIgnoreCaseToAscii( const sal_Char* pCharStr,
+ StringCompare CompareIgnoreCaseToAscii( const sal_Char* pCharStr,
xub_StrLen nLen = STRING_LEN ) const;
- BOOL Equals( const ByteString& rStr ) const;
- BOOL Equals( const sal_Char* pCharStr ) const;
- BOOL EqualsIgnoreCaseAscii( const ByteString& rStr ) const;
- BOOL EqualsIgnoreCaseAscii( const sal_Char* pCharStr ) const;
- BOOL Equals( const ByteString& rStr,
+ BOOL Equals( const ByteString& rStr ) const;
+ BOOL Equals( const sal_Char* pCharStr ) const;
+ BOOL EqualsIgnoreCaseAscii( const ByteString& rStr ) const;
+ BOOL EqualsIgnoreCaseAscii( const sal_Char* pCharStr ) const;
+ BOOL Equals( const ByteString& rStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- BOOL Equals( const sal_Char* pCharStr,
+ BOOL Equals( const sal_Char* pCharStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- BOOL EqualsIgnoreCaseAscii( const ByteString& rStr,
+ BOOL EqualsIgnoreCaseAscii( const ByteString& rStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- BOOL EqualsIgnoreCaseAscii( const sal_Char* pCharStr,
+ BOOL EqualsIgnoreCaseAscii( const sal_Char* pCharStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- xub_StrLen Match( const ByteString& rStr ) const;
- xub_StrLen Match( const sal_Char* pCharStr ) const;
+ xub_StrLen Match( const ByteString& rStr ) const;
+ xub_StrLen Match( const sal_Char* pCharStr ) const;
- xub_StrLen Search( sal_Char c, xub_StrLen nIndex = 0 ) const;
- xub_StrLen Search( const ByteString& rStr, xub_StrLen nIndex = 0 ) const;
- xub_StrLen Search( const sal_Char* pCharStr, xub_StrLen nIndex = 0 ) const;
- xub_StrLen SearchBackward( sal_Char c, xub_StrLen nIndex = STRING_LEN ) const;
- xub_StrLen SearchChar( const sal_Char* pChars, xub_StrLen nIndex = 0 ) const;
- xub_StrLen SearchCharBackward( const sal_Char* pChars, xub_StrLen nIndex = STRING_LEN ) const;
+ xub_StrLen Search( sal_Char c, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen Search( const ByteString& rStr, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen Search( const sal_Char* pCharStr, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen SearchBackward( sal_Char c, xub_StrLen nIndex = STRING_LEN ) const;
+ xub_StrLen SearchChar( const sal_Char* pChars, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen SearchCharBackward( const sal_Char* pChars, xub_StrLen nIndex = STRING_LEN ) const;
- xub_StrLen SearchAndReplace( sal_Char c, sal_Char cRep, xub_StrLen nIndex = 0 );
- xub_StrLen SearchAndReplace( const ByteString& rStr, const ByteString& rRepStr,
+ xub_StrLen SearchAndReplace( sal_Char c, sal_Char cRep, xub_StrLen nIndex = 0 );
+ xub_StrLen SearchAndReplace( const ByteString& rStr, const ByteString& rRepStr,
xub_StrLen nIndex = 0 );
- xub_StrLen SearchAndReplace( const sal_Char* pCharStr, const ByteString& rRepStr,
+ xub_StrLen SearchAndReplace( const sal_Char* pCharStr, const ByteString& rRepStr,
xub_StrLen nIndex = 0 );
- void SearchAndReplaceAll( sal_Char c, sal_Char cRep );
- void SearchAndReplaceAll( const ByteString& rStr, const ByteString& rRepStr );
- void SearchAndReplaceAll( const sal_Char* pCharStr, const ByteString& rRepStr );
+ void SearchAndReplaceAll( sal_Char c, sal_Char cRep );
+ void SearchAndReplaceAll( const ByteString& rStr, const ByteString& rRepStr );
+ void SearchAndReplaceAll( const sal_Char* pCharStr, const ByteString& rRepStr );
- xub_StrLen GetTokenCount( sal_Char cTok = ';' ) const;
- void SetToken( xub_StrLen nToken, sal_Char cTok, const ByteString& rStr,
+ xub_StrLen GetTokenCount( sal_Char cTok = ';' ) const;
+ void SetToken( xub_StrLen nToken, sal_Char cTok, const ByteString& rStr,
xub_StrLen nIndex = 0 );
- ByteString GetToken( xub_StrLen nToken, sal_Char cTok, xub_StrLen& rIndex ) const;
- ByteString GetToken( xub_StrLen nToken, sal_Char cTok = ';' ) const;
+ ByteString GetToken( xub_StrLen nToken, sal_Char cTok, xub_StrLen& rIndex ) const;
+ ByteString GetToken( xub_StrLen nToken, sal_Char cTok = ';' ) const;
- xub_StrLen GetQuotedTokenCount( const ByteString& rQuotedPairs, sal_Char cTok = ';' ) const;
- ByteString GetQuotedToken( xub_StrLen nToken, const ByteString& rQuotedPairs,
- sal_Char cTok, xub_StrLen& rIndex ) const;
- ByteString GetQuotedToken( xub_StrLen nToken, const ByteString& rQuotedPairs,
+ xub_StrLen GetQuotedTokenCount( const ByteString& rQuotedPairs, sal_Char cTok = ';' ) const;
+ ByteString GetQuotedToken( xub_StrLen nToken, const ByteString& rQuotedPairs,
+ sal_Char cTok, xub_StrLen& rIndex ) const;
+ ByteString GetQuotedToken( xub_StrLen nToken, const ByteString& rQuotedPairs,
sal_Char cTok = ';' ) const;
- const sal_Char* GetBuffer() const { return mpData->maStr; }
- sal_Char* GetBufferAccess();
- void ReleaseBufferAccess( xub_StrLen nLen = STRING_LEN );
- sal_Char* AllocBuffer( xub_StrLen nLen );
+ const sal_Char* GetBuffer() const { return mpData->maStr; }
+ sal_Char* GetBufferAccess();
+ void ReleaseBufferAccess( xub_StrLen nLen = STRING_LEN );
+ sal_Char* AllocBuffer( xub_StrLen nLen );
- friend BOOL operator == ( const ByteString& rStr1, const ByteString& rStr2 )
+ friend BOOL operator == ( const ByteString& rStr1, const ByteString& rStr2 )
{ return rStr1.Equals( rStr2 ); }
- friend BOOL operator == ( const ByteString& rStr, const sal_Char* pCharStr )
+ friend BOOL operator == ( const ByteString& rStr, const sal_Char* pCharStr )
{ return rStr.Equals( pCharStr ); }
- friend BOOL operator == ( const sal_Char* pCharStr, const ByteString& rStr )
+ friend BOOL operator == ( const sal_Char* pCharStr, const ByteString& rStr )
{ return rStr.Equals( pCharStr ); }
- friend BOOL operator != ( const ByteString& rStr1, const ByteString& rStr2 )
+ friend BOOL operator != ( const ByteString& rStr1, const ByteString& rStr2 )
{ return !(operator == ( rStr1, rStr2 )); }
- friend BOOL operator != ( const ByteString& rStr, const sal_Char* pCharStr )
+ friend BOOL operator != ( const ByteString& rStr, const sal_Char* pCharStr )
{ return !(operator == ( rStr, pCharStr )); }
- friend BOOL operator != ( const sal_Char* pCharStr, const ByteString& rStr )
+ friend BOOL operator != ( const sal_Char* pCharStr, const ByteString& rStr )
{ return !(operator == ( pCharStr, rStr )); }
- friend BOOL operator < ( const ByteString& rStr1, const ByteString& rStr2 )
+ friend BOOL operator < ( const ByteString& rStr1, const ByteString& rStr2 )
{ return (rStr1.CompareTo( rStr2 ) == COMPARE_LESS); }
- friend BOOL operator < ( const ByteString& rStr, const sal_Char* pCharStr )
+ friend BOOL operator < ( const ByteString& rStr, const sal_Char* pCharStr )
{ return (rStr.CompareTo( pCharStr ) == COMPARE_LESS); }
- friend BOOL operator < ( const sal_Char* pCharStr, const ByteString& rStr )
+ friend BOOL operator < ( const sal_Char* pCharStr, const ByteString& rStr )
{ return (rStr.CompareTo( pCharStr ) >= COMPARE_EQUAL); }
- friend BOOL operator > ( const ByteString& rStr1, const ByteString& rStr2 )
+ friend BOOL operator > ( const ByteString& rStr1, const ByteString& rStr2 )
{ return (rStr1.CompareTo( rStr2 ) == COMPARE_GREATER); }
- friend BOOL operator > ( const ByteString& rStr, const sal_Char* pCharStr )
+ friend BOOL operator > ( const ByteString& rStr, const sal_Char* pCharStr )
{ return (rStr.CompareTo( pCharStr ) == COMPARE_GREATER); }
- friend BOOL operator > ( const sal_Char* pCharStr, const ByteString& rStr )
+ friend BOOL operator > ( const sal_Char* pCharStr, const ByteString& rStr )
{ return (rStr.CompareTo( pCharStr ) <= COMPARE_EQUAL); }
- friend BOOL operator <= ( const ByteString& rStr1, const ByteString& rStr2 )
+ friend BOOL operator <= ( const ByteString& rStr1, const ByteString& rStr2 )
{ return !(operator > ( rStr1, rStr2 )); }
- friend BOOL operator <= ( const ByteString& rStr, const sal_Char* pCharStr )
+ friend BOOL operator <= ( const ByteString& rStr, const sal_Char* pCharStr )
{ return !(operator > ( rStr, pCharStr )); }
- friend BOOL operator <= ( const sal_Char* pCharStr, const ByteString& rStr )
+ friend BOOL operator <= ( const sal_Char* pCharStr, const ByteString& rStr )
{ return !(operator > ( pCharStr, rStr )); }
- friend BOOL operator >= ( const ByteString& rStr1, const ByteString& rStr2 )
+ friend BOOL operator >= ( const ByteString& rStr1, const ByteString& rStr2 )
{ return !(operator < ( rStr1, rStr2 )); }
- friend BOOL operator >= ( const ByteString& rStr, const sal_Char* pCharStr )
+ friend BOOL operator >= ( const ByteString& rStr, const sal_Char* pCharStr )
{ return !(operator < ( rStr, pCharStr )); }
- friend BOOL operator >= ( const sal_Char* pCharStr, const ByteString& rStr )
+ friend BOOL operator >= ( const sal_Char* pCharStr, const ByteString& rStr )
{ return !(operator < ( pCharStr, rStr )); }
};
@@ -427,9 +427,9 @@ inline ByteString ByteString::GetQuotedToken( xub_StrLen nToken, const ByteStrin
typedef struct _UniStringData
{
- sal_Int32 mnRefCount; // Referenz counter
- sal_Int32 mnLen; // Length of the String
- sal_Unicode maStr[1]; // CharArray (String)
+ sal_Int32 mnRefCount; // Referenz counter
+ sal_Int32 mnLen; // Length of the String
+ sal_Unicode maStr[1]; // CharArray (String)
} UniStringData;
#ifdef SAL_W32
@@ -443,7 +443,7 @@ typedef struct _UniStringData
// -------------------
#ifndef NOOLDSTRING
-#define WSTRING_MAXLEN STRING_MAXLEN
+#define WSTRING_MAXLEN STRING_MAXLEN
#endif
// -------------
@@ -452,12 +452,12 @@ typedef struct _UniStringData
class TOOLS_DLLPUBLIC UniString
{
- friend class ByteString;
+ friend class ByteString;
TOOLS_DLLPRIVATE void InitStringRes( const sal_Char* pUTF8Str, sal_Int32 nLen );
private:
- UniStringData* mpData;
+ UniStringData* mpData;
TOOLS_DLLPRIVATE inline void ImplCopyData();
TOOLS_DLLPRIVATE inline sal_Unicode * ImplCopyStringData(sal_Unicode *);
@@ -505,173 +505,173 @@ public:
UniString intern() const;
- static UniString CreateFromAscii( const sal_Char* pAsciiStr );
- static UniString CreateFromAscii( const sal_Char* pAsciiStr, xub_StrLen nLen );
+ static UniString CreateFromAscii( const sal_Char* pAsciiStr );
+ static UniString CreateFromAscii( const sal_Char* pAsciiStr, xub_StrLen nLen );
- static UniString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 );
- static UniString CreateFromInt64( sal_Int64 n, sal_Int16 nRadix = 10 );
- static UniString CreateFromFloat( float f );
- static UniString CreateFromDouble( double d );
+ static UniString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 );
+ static UniString CreateFromInt64( sal_Int64 n, sal_Int16 nRadix = 10 );
+ static UniString CreateFromFloat( float f );
+ static UniString CreateFromDouble( double d );
static const UniString& EmptyString();
- sal_Int32 ToInt32() const;
- sal_Int64 ToInt64() const;
- float ToFloat() const;
- double ToDouble() const;
-
- UniString& Assign( const UniString& rStr );
- UniString& Assign( const rtl::OUString& rStr );
- UniString& Assign( const sal_Unicode* pCharStr );
- UniString& Assign( const sal_Unicode* pCharStr, xub_StrLen nLen );
- UniString& Assign( sal_Unicode c );
+ sal_Int32 ToInt32() const;
+ sal_Int64 ToInt64() const;
+ float ToFloat() const;
+ double ToDouble() const;
+
+ UniString& Assign( const UniString& rStr );
+ UniString& Assign( const rtl::OUString& rStr );
+ UniString& Assign( const sal_Unicode* pCharStr );
+ UniString& Assign( const sal_Unicode* pCharStr, xub_StrLen nLen );
+ UniString& Assign( sal_Unicode c );
inline UniString & Assign(char c) // ...but allow "Assign('a')"
{ return Assign(static_cast< sal_Unicode >(c)); }
- UniString& AssignAscii( const sal_Char* pAsciiStr );
- UniString& AssignAscii( const sal_Char* pAsciiStr, xub_StrLen nLen );
- UniString& operator =( const UniString& rStr )
+ UniString& AssignAscii( const sal_Char* pAsciiStr );
+ UniString& AssignAscii( const sal_Char* pAsciiStr, xub_StrLen nLen );
+ UniString& operator =( const UniString& rStr )
{ return Assign( rStr ); }
- UniString& operator =( const rtl::OUString& rStr )
+ UniString& operator =( const rtl::OUString& rStr )
{ return Assign( rStr ); }
- UniString& operator =( const sal_Unicode* pCharStr )
+ UniString& operator =( const sal_Unicode* pCharStr )
{ return Assign( pCharStr ); }
- UniString& operator =( sal_Unicode c )
+ UniString& operator =( sal_Unicode c )
{ return Assign( c ); }
inline UniString & operator =(char c) // ...but allow "= 'a'"
{ return operator =(static_cast< sal_Unicode >(c)); }
- UniString& Append( const UniString& rStr );
- UniString& Append( const sal_Unicode* pCharStr );
- UniString& Append( const sal_Unicode* pCharStr, xub_StrLen nLen );
- UniString& Append( sal_Unicode c );
+ UniString& Append( const UniString& rStr );
+ UniString& Append( const sal_Unicode* pCharStr );
+ UniString& Append( const sal_Unicode* pCharStr, xub_StrLen nLen );
+ UniString& Append( sal_Unicode c );
inline UniString & Append(char c) // ...but allow "Append('a')"
{ return Append(static_cast< sal_Unicode >(c)); }
- UniString& AppendAscii( const sal_Char* pAsciiStr );
- UniString& AppendAscii( const sal_Char* pAsciiStr, xub_StrLen nLen );
- UniString& operator +=( const UniString& rStr )
+ UniString& AppendAscii( const sal_Char* pAsciiStr );
+ UniString& AppendAscii( const sal_Char* pAsciiStr, xub_StrLen nLen );
+ UniString& operator +=( const UniString& rStr )
{ return Append( rStr ); }
- UniString& operator +=( const sal_Unicode* pCharStr )
+ UniString& operator +=( const sal_Unicode* pCharStr )
{ return Append( pCharStr ); }
- UniString& operator +=( sal_Unicode c )
+ UniString& operator +=( sal_Unicode c )
{ return Append( c ); }
inline UniString & operator +=(char c) // ...but allow "+= 'a'"
{ return operator +=(static_cast< sal_Unicode >(c)); }
- void SetChar( xub_StrLen nIndex, sal_Unicode c );
- sal_Unicode GetChar( xub_StrLen nIndex ) const
+ void SetChar( xub_StrLen nIndex, sal_Unicode c );
+ sal_Unicode GetChar( xub_StrLen nIndex ) const
{ return mpData->maStr[nIndex]; }
- xub_StrLen Len() const { return (xub_StrLen)mpData->mnLen; }
+ xub_StrLen Len() const { return (xub_StrLen)mpData->mnLen; }
- UniString& Insert( const UniString& rStr, xub_StrLen nIndex = STRING_LEN );
- UniString& Insert( const UniString& rStr, xub_StrLen nPos, xub_StrLen nLen,
+ UniString& Insert( const UniString& rStr, xub_StrLen nIndex = STRING_LEN );
+ UniString& Insert( const UniString& rStr, xub_StrLen nPos, xub_StrLen nLen,
xub_StrLen nIndex = STRING_LEN );
- UniString& Insert( const sal_Unicode* pCharStr, xub_StrLen nIndex = STRING_LEN );
- UniString& Insert( sal_Unicode c, xub_StrLen nIndex = STRING_LEN );
- UniString& InsertAscii( const sal_Char* pAsciiStr, xub_StrLen nIndex = STRING_LEN );
- UniString& Replace( xub_StrLen nIndex, xub_StrLen nLen, const UniString& rStr );
- UniString& ReplaceAscii( xub_StrLen nIndex, xub_StrLen nLen,
+ UniString& Insert( const sal_Unicode* pCharStr, xub_StrLen nIndex = STRING_LEN );
+ UniString& Insert( sal_Unicode c, xub_StrLen nIndex = STRING_LEN );
+ UniString& InsertAscii( const sal_Char* pAsciiStr, xub_StrLen nIndex = STRING_LEN );
+ UniString& Replace( xub_StrLen nIndex, xub_StrLen nLen, const UniString& rStr );
+ UniString& ReplaceAscii( xub_StrLen nIndex, xub_StrLen nLen,
const sal_Char* pAsciiStr, xub_StrLen nStrLen = STRING_LEN );
- UniString& Erase( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN );
+ UniString& Erase( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN );
UniString Copy( xub_StrLen nIndex = 0, xub_StrLen nCount = STRING_LEN ) const;
- UniString& Fill( xub_StrLen nCount, sal_Unicode cFillChar = ' ' );
- UniString& Expand( xub_StrLen nCount, sal_Unicode cExpandChar = ' ' );
+ UniString& Fill( xub_StrLen nCount, sal_Unicode cFillChar = ' ' );
+ UniString& Expand( xub_StrLen nCount, sal_Unicode cExpandChar = ' ' );
- UniString& EraseLeadingChars( sal_Unicode c = ' ' );
- UniString& EraseTrailingChars( sal_Unicode c = ' ' );
- UniString& EraseLeadingAndTrailingChars( sal_Unicode c = ' ' );
- UniString& EraseAllChars( sal_Unicode c = ' ' );
- UniString& Reverse();
+ UniString& EraseLeadingChars( sal_Unicode c = ' ' );
+ UniString& EraseTrailingChars( sal_Unicode c = ' ' );
+ UniString& EraseLeadingAndTrailingChars( sal_Unicode c = ' ' );
+ UniString& EraseAllChars( sal_Unicode c = ' ' );
+ UniString& Reverse();
- UniString& ConvertLineEnd( LineEnd eLineEnd );
- UniString& ConvertLineEnd()
+ UniString& ConvertLineEnd( LineEnd eLineEnd );
+ UniString& ConvertLineEnd()
{ return ConvertLineEnd( GetSystemLineEnd() ); }
- UniString& ToLowerAscii();
- UniString& ToUpperAscii();
+ UniString& ToLowerAscii();
+ UniString& ToUpperAscii();
- StringCompare CompareTo( const UniString& rStr,
+ StringCompare CompareTo( const UniString& rStr,
xub_StrLen nLen = STRING_LEN ) const;
- StringCompare CompareTo( const sal_Unicode* pCharStr,
+ StringCompare CompareTo( const sal_Unicode* pCharStr,
xub_StrLen nLen = STRING_LEN ) const;
- StringCompare CompareToAscii( const sal_Char* pAsciiStr,
+ StringCompare CompareToAscii( const sal_Char* pAsciiStr,
xub_StrLen nLen = STRING_LEN ) const;
- StringCompare CompareIgnoreCaseToAscii( const UniString& rStr,
+ StringCompare CompareIgnoreCaseToAscii( const UniString& rStr,
xub_StrLen nLen = STRING_LEN ) const;
- StringCompare CompareIgnoreCaseToAscii( const sal_Unicode* pCharStr,
+ StringCompare CompareIgnoreCaseToAscii( const sal_Unicode* pCharStr,
xub_StrLen nLen = STRING_LEN ) const;
- StringCompare CompareIgnoreCaseToAscii( const sal_Char* pAsciiStr,
+ StringCompare CompareIgnoreCaseToAscii( const sal_Char* pAsciiStr,
xub_StrLen nLen = STRING_LEN ) const;
- BOOL Equals( const UniString& rStr ) const;
- BOOL Equals( const sal_Unicode* pCharStr ) const;
- BOOL EqualsAscii( const sal_Char* pAsciiStr ) const;
- BOOL EqualsIgnoreCaseAscii( const UniString& rStr ) const;
- BOOL EqualsIgnoreCaseAscii( const sal_Unicode* pCharStr ) const;
- BOOL EqualsIgnoreCaseAscii( const sal_Char* pAsciiStr ) const;
- BOOL Equals( const UniString& rStr,
+ BOOL Equals( const UniString& rStr ) const;
+ BOOL Equals( const sal_Unicode* pCharStr ) const;
+ BOOL EqualsAscii( const sal_Char* pAsciiStr ) const;
+ BOOL EqualsIgnoreCaseAscii( const UniString& rStr ) const;
+ BOOL EqualsIgnoreCaseAscii( const sal_Unicode* pCharStr ) const;
+ BOOL EqualsIgnoreCaseAscii( const sal_Char* pAsciiStr ) const;
+ BOOL Equals( const UniString& rStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- BOOL Equals( const sal_Unicode* pCharStr,
+ BOOL Equals( const sal_Unicode* pCharStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- BOOL EqualsAscii( const sal_Char* pAsciiStr,
+ BOOL EqualsAscii( const sal_Char* pAsciiStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- BOOL EqualsIgnoreCaseAscii( const UniString& rStr,
+ BOOL EqualsIgnoreCaseAscii( const UniString& rStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- BOOL EqualsIgnoreCaseAscii( const sal_Unicode* pCharStr,
+ BOOL EqualsIgnoreCaseAscii( const sal_Unicode* pCharStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- BOOL EqualsIgnoreCaseAscii( const sal_Char* pAsciiStr,
+ BOOL EqualsIgnoreCaseAscii( const sal_Char* pAsciiStr,
xub_StrLen nIndex, xub_StrLen nLen ) const;
- xub_StrLen Match( const UniString& rStr ) const;
- xub_StrLen Match( const sal_Unicode* pCharStr ) const;
+ xub_StrLen Match( const UniString& rStr ) const;
+ xub_StrLen Match( const sal_Unicode* pCharStr ) const;
- xub_StrLen Search( sal_Unicode c, xub_StrLen nIndex = 0 ) const;
- xub_StrLen Search( const UniString& rStr, xub_StrLen nIndex = 0 ) const;
- xub_StrLen Search( const sal_Unicode* pCharStr, xub_StrLen nIndex = 0 ) const;
- xub_StrLen SearchAscii( const sal_Char* pAsciiStr, xub_StrLen nIndex = 0 ) const;
- xub_StrLen SearchBackward( sal_Unicode c, xub_StrLen nIndex = STRING_LEN ) const;
- xub_StrLen SearchChar( const sal_Unicode* pChars, xub_StrLen nIndex = 0 ) const;
- xub_StrLen SearchCharBackward( const sal_Unicode* pChars, xub_StrLen nIndex = STRING_LEN ) const;
+ xub_StrLen Search( sal_Unicode c, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen Search( const UniString& rStr, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen Search( const sal_Unicode* pCharStr, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen SearchAscii( const sal_Char* pAsciiStr, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen SearchBackward( sal_Unicode c, xub_StrLen nIndex = STRING_LEN ) const;
+ xub_StrLen SearchChar( const sal_Unicode* pChars, xub_StrLen nIndex = 0 ) const;
+ xub_StrLen SearchCharBackward( const sal_Unicode* pChars, xub_StrLen nIndex = STRING_LEN ) const;
- xub_StrLen SearchAndReplace( sal_Unicode c, sal_Unicode cRep,
+ xub_StrLen SearchAndReplace( sal_Unicode c, sal_Unicode cRep,
xub_StrLen nIndex = 0 );
- xub_StrLen SearchAndReplace( const UniString& rStr, const UniString& rRepStr,
+ xub_StrLen SearchAndReplace( const UniString& rStr, const UniString& rRepStr,
xub_StrLen nIndex = 0 );
- xub_StrLen SearchAndReplace( const sal_Unicode* pCharStr, const UniString& rRepStr,
+ xub_StrLen SearchAndReplace( const sal_Unicode* pCharStr, const UniString& rRepStr,
xub_StrLen nIndex = 0 );
- xub_StrLen SearchAndReplaceAscii( const sal_Char* pAsciiStr, const UniString& rRepStr,
+ xub_StrLen SearchAndReplaceAscii( const sal_Char* pAsciiStr, const UniString& rRepStr,
xub_StrLen nIndex = 0 );
- void SearchAndReplaceAll( sal_Unicode c, sal_Unicode cRep );
- void SearchAndReplaceAll( const UniString& rStr, const UniString& rRepStr );
- void SearchAndReplaceAll( const sal_Unicode* pCharStr, const UniString& rRepStr );
- void SearchAndReplaceAllAscii( const sal_Char* pAsciiStr, const UniString& rRepStr );
+ void SearchAndReplaceAll( sal_Unicode c, sal_Unicode cRep );
+ void SearchAndReplaceAll( const UniString& rStr, const UniString& rRepStr );
+ void SearchAndReplaceAll( const sal_Unicode* pCharStr, const UniString& rRepStr );
+ void SearchAndReplaceAllAscii( const sal_Char* pAsciiStr, const UniString& rRepStr );
- xub_StrLen GetTokenCount( sal_Unicode cTok = ';' ) const;
- void SetToken( xub_StrLen nToken, sal_Unicode cTok, const UniString& rStr,
+ xub_StrLen GetTokenCount( sal_Unicode cTok = ';' ) const;
+ void SetToken( xub_StrLen nToken, sal_Unicode cTok, const UniString& rStr,
xub_StrLen nIndex = 0 );
- UniString GetToken( xub_StrLen nToken, sal_Unicode cTok, xub_StrLen& rIndex ) const;
- UniString GetToken( xub_StrLen nToken, sal_Unicode cTok = ';' ) const;
+ UniString GetToken( xub_StrLen nToken, sal_Unicode cTok, xub_StrLen& rIndex ) const;
+ UniString GetToken( xub_StrLen nToken, sal_Unicode cTok = ';' ) const;
- xub_StrLen GetQuotedTokenCount( const UniString& rQuotedPairs, sal_Unicode cTok = ';' ) const;
- UniString GetQuotedToken( xub_StrLen nToken, const UniString& rQuotedPairs,
+ xub_StrLen GetQuotedTokenCount( const UniString& rQuotedPairs, sal_Unicode cTok = ';' ) const;
+ UniString GetQuotedToken( xub_StrLen nToken, const UniString& rQuotedPairs,
sal_Unicode cTok, xub_StrLen& rIndex ) const;
- UniString GetQuotedToken( xub_StrLen nToken, const UniString& rQuotedPairs,
+ UniString GetQuotedToken( xub_StrLen nToken, const UniString& rQuotedPairs,
sal_Unicode cTok = ';' ) const;
- const sal_Unicode* GetBuffer() const { return mpData->maStr; }
- sal_Unicode* GetBufferAccess();
- void ReleaseBufferAccess( xub_StrLen nLen = STRING_LEN );
- sal_Unicode* AllocBuffer( xub_StrLen nLen );
+ const sal_Unicode* GetBuffer() const { return mpData->maStr; }
+ sal_Unicode* GetBufferAccess();
+ void ReleaseBufferAccess( xub_StrLen nLen = STRING_LEN );
+ sal_Unicode* AllocBuffer( xub_StrLen nLen );
- friend BOOL operator == ( const UniString& rStr1, const UniString& rStr2 )
+ friend BOOL operator == ( const UniString& rStr1, const UniString& rStr2 )
{ return rStr1.Equals( rStr2 ); }
- friend BOOL operator != ( const UniString& rStr1, const UniString& rStr2 )
+ friend BOOL operator != ( const UniString& rStr1, const UniString& rStr2 )
{ return !(operator == ( rStr1, rStr2 )); }
- friend BOOL operator < ( const UniString& rStr1, const UniString& rStr2 )
+ friend BOOL operator < ( const UniString& rStr1, const UniString& rStr2 )
{ return (rStr1.CompareTo( rStr2 ) == COMPARE_LESS); }
- friend BOOL operator > ( const UniString& rStr1, const UniString& rStr2 )
+ friend BOOL operator > ( const UniString& rStr1, const UniString& rStr2 )
{ return (rStr1.CompareTo( rStr2 ) == COMPARE_GREATER); }
- friend BOOL operator <= ( const UniString& rStr1, const UniString& rStr2 )
+ friend BOOL operator <= ( const UniString& rStr1, const UniString& rStr2 )
{ return !(operator > ( rStr1, rStr2 )); }
- friend BOOL operator >= ( const UniString& rStr1, const UniString& rStr2 )
+ friend BOOL operator >= ( const UniString& rStr1, const UniString& rStr2 )
{ return !(operator < ( rStr1, rStr2 )); }
};
diff --git a/tools/inc/tools/svborder.hxx b/tools/inc/tools/svborder.hxx
index daba02272a05..1b2a87044696 100644
--- a/tools/inc/tools/svborder.hxx
+++ b/tools/inc/tools/svborder.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,6 +94,6 @@ TOOLS_DLLPUBLIC Rectangle & operator -= ( Rectangle & rRect, const SvBorder & rB
//=========================================================================
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/tools/svlibrary.hxx b/tools/inc/tools/svlibrary.hxx
index b10adde91541..e58e1a9c0e37 100644
--- a/tools/inc/tools/svlibrary.hxx
+++ b/tools/inc/tools/svlibrary.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/svwin.h b/tools/inc/tools/svwin.h
index b257127d33eb..cddcdf3a57b8 100644
--- a/tools/inc/tools/svwin.h
+++ b/tools/inc/tools/svwin.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/table.hxx b/tools/inc/tools/table.hxx
index b29c5a955826..75cb338dfd7d 100644
--- a/tools/inc/tools/table.hxx
+++ b/tools/inc/tools/table.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,45 +41,45 @@
class TOOLS_DLLPUBLIC Table : private Container
{
private:
- ULONG nCount;
- TOOLS_DLLPRIVATE ULONG ImplGetIndex( ULONG nKey, ULONG* pIndex = NULL ) const;
+ ULONG nCount;
+ TOOLS_DLLPRIVATE ULONG ImplGetIndex( ULONG nKey, ULONG* pIndex = NULL ) const;
public:
Table( USHORT nInitSize = 16, USHORT nReSize = 16 );
Table( const Table& rTable ) : Container( rTable )
{ nCount = rTable.nCount; }
- BOOL Insert( ULONG nKey, void* p );
- void* Remove( ULONG nKey );
- void* Replace( ULONG nKey, void* p );
- void* Get( ULONG nKey ) const;
+ BOOL Insert( ULONG nKey, void* p );
+ void* Remove( ULONG nKey );
+ void* Replace( ULONG nKey, void* p );
+ void* Get( ULONG nKey ) const;
- void Clear() { Container::Clear(); nCount = 0; }
- ULONG Count() const { return( nCount ); }
+ void Clear() { Container::Clear(); nCount = 0; }
+ ULONG Count() const { return( nCount ); }
- void* GetCurObject() const;
- ULONG GetCurKey() const { return (ULONG)Container::GetCurObject(); }
- ULONG GetKey( const void* p ) const;
- BOOL IsKeyValid( ULONG nKey ) const;
+ void* GetCurObject() const;
+ ULONG GetCurKey() const { return (ULONG)Container::GetCurObject(); }
+ ULONG GetKey( const void* p ) const;
+ BOOL IsKeyValid( ULONG nKey ) const;
- void* GetObject( ULONG nPos ) const
+ void* GetObject( ULONG nPos ) const
{ return Container::GetObject( (nPos*2)+1 ); }
- ULONG GetObjectKey( ULONG nPos ) const
+ ULONG GetObjectKey( ULONG nPos ) const
{ return (ULONG)Container::GetObject( nPos*2 ); }
- ULONG GetUniqueKey( ULONG nStartKey = 1 ) const;
- ULONG SearchKey( ULONG nKey, ULONG* pPos = NULL ) const;
+ ULONG GetUniqueKey( ULONG nStartKey = 1 ) const;
+ ULONG SearchKey( ULONG nKey, ULONG* pPos = NULL ) const;
- void* Seek( ULONG nKey );
- void* Seek( void* p );
- void* First();
- void* Last();
- void* Next();
- void* Prev();
+ void* Seek( ULONG nKey );
+ void* Seek( void* p );
+ void* First();
+ void* Last();
+ void* Next();
+ void* Prev();
- Table& operator =( const Table& rTable );
+ Table& operator =( const Table& rTable );
- BOOL operator ==( const Table& rTable ) const
+ BOOL operator ==( const Table& rTable ) const
{ return Container::operator ==( rTable ); }
- BOOL operator !=( const Table& rTable ) const
+ BOOL operator !=( const Table& rTable ) const
{ return Container::operator !=( rTable ); }
};
@@ -94,58 +94,58 @@ inline Table& Table::operator =( const Table& r )
// - DECLARE_TABLE -
// -----------------
-#define DECLARE_TABLE( ClassName, Type ) \
-class ClassName : private Table \
-{ \
-public: \
- using Table::Clear; \
- using Table::Count; \
- using Table::GetCurKey; \
- using Table::GetObjectKey; \
- using Table::GetUniqueKey; \
- using Table::SearchKey; \
- using Table::IsKeyValid; \
+#define DECLARE_TABLE( ClassName, Type ) \
+class ClassName : private Table \
+{ \
+public: \
+ using Table::Clear; \
+ using Table::Count; \
+ using Table::GetCurKey; \
+ using Table::GetObjectKey; \
+ using Table::GetUniqueKey; \
+ using Table::SearchKey; \
+ using Table::IsKeyValid; \
\
- ClassName( USHORT _nInitSize = 16, \
- USHORT _nReSize = 16 ) : \
- Table( _nInitSize, _nReSize ) {} \
- ClassName( const ClassName& rClassName ) : \
- Table( rClassName ) {} \
+ ClassName( USHORT _nInitSize = 16, \
+ USHORT _nReSize = 16 ) : \
+ Table( _nInitSize, _nReSize ) {} \
+ ClassName( const ClassName& rClassName ) : \
+ Table( rClassName ) {} \
\
- BOOL Insert( ULONG nKey, Type p ) \
- { return Table::Insert( nKey, (void*)p ); } \
- Type Remove( ULONG nKey ) \
- { return (Type)Table::Remove( nKey ); } \
- Type Replace( ULONG nKey, Type p ) \
- { return (Type)Table::Replace( nKey, (void*)p ); } \
- Type Get( ULONG nKey ) const \
- { return (Type)Table::Get( nKey ); } \
+ BOOL Insert( ULONG nKey, Type p ) \
+ { return Table::Insert( nKey, (void*)p ); } \
+ Type Remove( ULONG nKey ) \
+ { return (Type)Table::Remove( nKey ); } \
+ Type Replace( ULONG nKey, Type p ) \
+ { return (Type)Table::Replace( nKey, (void*)p ); } \
+ Type Get( ULONG nKey ) const \
+ { return (Type)Table::Get( nKey ); } \
\
- Type GetCurObject() const \
- { return (Type)Table::GetCurObject(); } \
- ULONG GetKey( const Type p ) const \
- { return Table::GetKey( (const void*)p ); } \
+ Type GetCurObject() const \
+ { return (Type)Table::GetCurObject(); } \
+ ULONG GetKey( const Type p ) const \
+ { return Table::GetKey( (const void*)p ); } \
\
- Type GetObject( ULONG nPos ) const \
- { return (Type)Table::GetObject( nPos ); } \
+ Type GetObject( ULONG nPos ) const \
+ { return (Type)Table::GetObject( nPos ); } \
\
- Type Seek( ULONG nKey ) \
- { return (Type)Table::Seek( nKey ); } \
- Type Seek( Type p ) \
- { return (Type)Table::Seek( (void*)p ); } \
- Type First() { return (Type)Table::First(); } \
- Type Last() { return (Type)Table::Last(); } \
- Type Next() { return (Type)Table::Next(); } \
- Type Prev() { return (Type)Table::Prev(); } \
+ Type Seek( ULONG nKey ) \
+ { return (Type)Table::Seek( nKey ); } \
+ Type Seek( Type p ) \
+ { return (Type)Table::Seek( (void*)p ); } \
+ Type First() { return (Type)Table::First(); } \
+ Type Last() { return (Type)Table::Last(); } \
+ Type Next() { return (Type)Table::Next(); } \
+ Type Prev() { return (Type)Table::Prev(); } \
\
- ClassName& operator =( const ClassName& rClassName ) \
- { Table::operator =( rClassName ); \
- return *this; } \
+ ClassName& operator =( const ClassName& rClassName ) \
+ { Table::operator =( rClassName ); \
+ return *this; } \
\
- BOOL operator ==( const ClassName& rTable ) const \
- { return Table::operator ==( rTable ); } \
- BOOL operator !=( const ClassName& rTable ) const \
- { return Table::operator !=( rTable ); } \
+ BOOL operator ==( const ClassName& rTable ) const \
+ { return Table::operator ==( rTable ); } \
+ BOOL operator !=( const ClassName& rTable ) const \
+ { return Table::operator !=( rTable ); } \
};
#endif // _TOOLS_TABLE_HXX
diff --git a/tools/inc/tools/tempfile.hxx b/tools/inc/tools/tempfile.hxx
index d356e7bf66fc..da8a18b8b342 100644
--- a/tools/inc/tools/tempfile.hxx
+++ b/tools/inc/tools/tempfile.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/tenccvt.hxx b/tools/inc/tools/tenccvt.hxx
index cdef9d9285a7..c38f00d56c88 100644
--- a/tools/inc/tools/tenccvt.hxx
+++ b/tools/inc/tools/tenccvt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/testtoolloader.hxx b/tools/inc/tools/testtoolloader.hxx
index 0b48ee597509..f4a4f3dd23de 100644
--- a/tools/inc/tools/testtoolloader.hxx
+++ b/tools/inc/tools/testtoolloader.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/time.hxx b/tools/inc/tools/time.hxx
index 6fb93f2e718c..a72fe7c587e8 100644
--- a/tools/inc/tools/time.hxx
+++ b/tools/inc/tools/time.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ class ResId;
class TOOLS_DLLPUBLIC Time
{
private:
- sal_Int32 nTime;
+ sal_Int32 nTime;
public:
Time();
@@ -50,64 +50,64 @@ public:
Time( ULONG nHour, ULONG nMin,
ULONG nSec = 0, ULONG n100Sec = 0 );
- void SetTime( sal_Int32 nNewTime ) { nTime = nNewTime; }
- sal_Int32 GetTime() const { return nTime; }
+ void SetTime( sal_Int32 nNewTime ) { nTime = nNewTime; }
+ sal_Int32 GetTime() const { return nTime; }
- void SetHour( USHORT nNewHour );
- void SetMin( USHORT nNewMin );
- void SetSec( USHORT nNewSec );
- void Set100Sec( USHORT nNew100Sec );
- USHORT GetHour() const
+ void SetHour( USHORT nNewHour );
+ void SetMin( USHORT nNewMin );
+ void SetSec( USHORT nNewSec );
+ void Set100Sec( USHORT nNew100Sec );
+ USHORT GetHour() const
{ ULONG nTempTime = (nTime >= 0) ? nTime : nTime*-1;
return (USHORT)(nTempTime / 1000000); }
- USHORT GetMin() const
+ USHORT GetMin() const
{ ULONG nTempTime = (nTime >= 0) ? nTime : nTime*-1;
return (USHORT)((nTempTime / 10000) % 100); }
- USHORT GetSec() const
+ USHORT GetSec() const
{ ULONG nTempTime = (nTime >= 0) ? nTime : nTime*-1;
return (USHORT)((nTempTime / 100) % 100); }
- USHORT Get100Sec() const
+ USHORT Get100Sec() const
{ ULONG nTempTime = (nTime >= 0) ? nTime : nTime*-1;
return (USHORT)(nTempTime % 100); }
- sal_Int32 GetMSFromTime() const;
- void MakeTimeFromMS( sal_Int32 nMS );
+ sal_Int32 GetMSFromTime() const;
+ void MakeTimeFromMS( sal_Int32 nMS );
/// 12 hours == 0.5 days
double GetTimeInDays() const;
- BOOL IsBetween( const Time& rFrom, const Time& rTo ) const
+ BOOL IsBetween( const Time& rFrom, const Time& rTo ) const
{ return ((nTime >= rFrom.nTime) && (nTime <= rTo.nTime)); }
BOOL IsEqualIgnore100Sec( const Time& rTime ) const;
- BOOL operator ==( const Time& rTime ) const
+ BOOL operator ==( const Time& rTime ) const
{ return (nTime == rTime.nTime); }
- BOOL operator !=( const Time& rTime ) const
+ BOOL operator !=( const Time& rTime ) const
{ return (nTime != rTime.nTime); }
- BOOL operator >( const Time& rTime ) const
+ BOOL operator >( const Time& rTime ) const
{ return (nTime > rTime.nTime); }
- BOOL operator <( const Time& rTime ) const
+ BOOL operator <( const Time& rTime ) const
{ return (nTime < rTime.nTime); }
- BOOL operator >=( const Time& rTime ) const
+ BOOL operator >=( const Time& rTime ) const
{ return (nTime >= rTime.nTime); }
- BOOL operator <=( const Time& rTime ) const
+ BOOL operator <=( const Time& rTime ) const
{ return (nTime <= rTime.nTime); }
- static Time GetUTCOffset();
- static ULONG GetSystemTicks(); // Elapsed time
- static ULONG GetProcessTicks(); // CPU time
+ static Time GetUTCOffset();
+ static ULONG GetSystemTicks(); // Elapsed time
+ static ULONG GetProcessTicks(); // CPU time
- void ConvertToUTC() { *this -= Time::GetUTCOffset(); }
- void ConvertToLocalTime() { *this += Time::GetUTCOffset(); }
+ void ConvertToUTC() { *this -= Time::GetUTCOffset(); }
+ void ConvertToLocalTime() { *this += Time::GetUTCOffset(); }
- Time& operator =( const Time& rTime );
- Time operator -() const
+ Time& operator =( const Time& rTime );
+ Time operator -() const
{ return Time( nTime * -1 ); }
- Time& operator +=( const Time& rTime );
- Time& operator -=( const Time& rTime );
- TOOLS_DLLPUBLIC friend Time operator +( const Time& rTime1, const Time& rTime2 );
- TOOLS_DLLPUBLIC friend Time operator -( const Time& rTime1, const Time& rTime2 );
+ Time& operator +=( const Time& rTime );
+ Time& operator -=( const Time& rTime );
+ TOOLS_DLLPUBLIC friend Time operator +( const Time& rTime1, const Time& rTime2 );
+ TOOLS_DLLPUBLIC friend Time operator -( const Time& rTime1, const Time& rTime2 );
};
#endif // _TOOLS_TIME_HXX
diff --git a/tools/inc/tools/tools.h b/tools/inc/tools/tools.h
index d8040a28a859..3a186d22c27a 100644
--- a/tools/inc/tools/tools.h
+++ b/tools/inc/tools/tools.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/toolsdllapi.h b/tools/inc/tools/toolsdllapi.h
index 6deb71293853..8e654168f71e 100644
--- a/tools/inc/tools/toolsdllapi.h
+++ b/tools/inc/tools/toolsdllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,16 +28,16 @@
#ifndef INCLUDED_TOOLSDLLAPI_H
#define INCLUDED_TOOLSDLLAPI_H
-
+
#include "sal/types.h"
-
+
#if defined(TOOLS_DLLIMPLEMENTATION)
#define TOOLS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define TOOLS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define TOOLS_DLLPRIVATE SAL_DLLPRIVATE
-
+
#endif /* INCLUDED_TOOLSDLLAPI_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/inc/tools/unqid.hxx b/tools/inc/tools/unqid.hxx
index 7758612556fb..20c223892c19 100644
--- a/tools/inc/tools/unqid.hxx
+++ b/tools/inc/tools/unqid.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/unqidx.hxx b/tools/inc/tools/unqidx.hxx
index 1e957aeaa80f..371b7ff6c28c 100644
--- a/tools/inc/tools/unqidx.hxx
+++ b/tools/inc/tools/unqidx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,7 +100,7 @@ inline void UniqueIndex::Clear()
class ClassName : private UniqueIndex \
{ \
public: \
- using UniqueIndex::Clear; \
+ using UniqueIndex::Clear; \
using UniqueIndex::Count; \
using UniqueIndex::GetCurIndex; \
using UniqueIndex::IsIndexValid; \
diff --git a/tools/inc/tools/urlkeys.hxx b/tools/inc/tools/urlkeys.hxx
index 0182e2f2cae5..68b1b2052ac0 100644
--- a/tools/inc/tools/urlkeys.hxx
+++ b/tools/inc/tools/urlkeys.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,46 +33,46 @@
// ANSI version
-#define A_URLSECTION_SHORTCUT "InternetShortcut"
-#define A_URLKEY_URL "URL"
-#define A_URLKEY_TITLE "Title"
-#define A_URLKEY_TARGET "Target"
-#define A_URLKEY_FRAME "Frame"
-#define A_URLKEY_OPENAS "OpenAs"
-#define A_URLKEY_SOICON "SOIcon"
-#define A_URLKEY_WIN_ICONFILE "IconFile"
-#define A_URLKEY_WIN_ICONINDEX "IconIndex"
-#define A_URLKEY_WORKDIR "WorkingDirectory"
-#define A_URLKEY_ARGUMENTS "Arguments"
-#define A_URLKEY_INTERN_ORIGURL "[URL]"
+#define A_URLSECTION_SHORTCUT "InternetShortcut"
+#define A_URLKEY_URL "URL"
+#define A_URLKEY_TITLE "Title"
+#define A_URLKEY_TARGET "Target"
+#define A_URLKEY_FRAME "Frame"
+#define A_URLKEY_OPENAS "OpenAs"
+#define A_URLKEY_SOICON "SOIcon"
+#define A_URLKEY_WIN_ICONFILE "IconFile"
+#define A_URLKEY_WIN_ICONINDEX "IconIndex"
+#define A_URLKEY_WORKDIR "WorkingDirectory"
+#define A_URLKEY_ARGUMENTS "Arguments"
+#define A_URLKEY_INTERN_ORIGURL "[URL]"
// Unicode version
-#define U_URLSECTION_SHORTCUT L"InternetShortcut"
-#define U_URLKEY_URL L"URL"
-#define U_URLKEY_TITLE L"Title"
-#define U_URLKEY_TARGET L"Target"
-#define U_URLKEY_FRAME L"Frame"
-#define U_URLKEY_OPENAS L"OpenAs"
-#define U_URLKEY_SOICON L"SOIcon"
-#define U_URLKEY_WIN_ICONFILE L"IconFile"
-#define U_URLKEY_WIN_ICONINDEX L"IconIndex"
-#define U_URLKEY_WORKDIR L"WorkingDirectory"
-#define U_URLKEY_ARGUMENTS L"Arguments"
-#define U_URLKEY_INTERN_ORIGURL L"[URL]"
+#define U_URLSECTION_SHORTCUT L"InternetShortcut"
+#define U_URLKEY_URL L"URL"
+#define U_URLKEY_TITLE L"Title"
+#define U_URLKEY_TARGET L"Target"
+#define U_URLKEY_FRAME L"Frame"
+#define U_URLKEY_OPENAS L"OpenAs"
+#define U_URLKEY_SOICON L"SOIcon"
+#define U_URLKEY_WIN_ICONFILE L"IconFile"
+#define U_URLKEY_WIN_ICONINDEX L"IconIndex"
+#define U_URLKEY_WORKDIR L"WorkingDirectory"
+#define U_URLKEY_ARGUMENTS L"Arguments"
+#define U_URLKEY_INTERN_ORIGURL L"[URL]"
-# define URLSECTION_SHORTCUT U_URLSECTION_SHORTCUT
-# define URLKEY_URL U_URLKEY_URL
-# define URLKEY_TITLE U_URLKEY_TITLE
-# define URLKEY_TARGET U_URLKEY_TARGET
-# define URLKEY_FRAME U_URLKEY_FRAME
-# define URLKEY_OPENAS U_URLKEY_OPENAS
-# define URLKEY_SOICON U_URLKEY_SOICON
-# define URLKEY_WIN_ICONFILE U_URLKEY_WIN_ICONFILE
-# define URLKEY_WIN_ICONINDEX U_URLKEY_WIN_ICONINDEX
-# define URLKEY_WORKDIR U_URLKEY_WORKDIR
-# define URLKEY_ARGUMENTS U_URLKEY_ARGUMENTS
-# define URLKEY_INTERN_ORIGURL U_URLKEY_INTERN_ORIGURL
+# define URLSECTION_SHORTCUT U_URLSECTION_SHORTCUT
+# define URLKEY_URL U_URLKEY_URL
+# define URLKEY_TITLE U_URLKEY_TITLE
+# define URLKEY_TARGET U_URLKEY_TARGET
+# define URLKEY_FRAME U_URLKEY_FRAME
+# define URLKEY_OPENAS U_URLKEY_OPENAS
+# define URLKEY_SOICON U_URLKEY_SOICON
+# define URLKEY_WIN_ICONFILE U_URLKEY_WIN_ICONFILE
+# define URLKEY_WIN_ICONINDEX U_URLKEY_WIN_ICONINDEX
+# define URLKEY_WORKDIR U_URLKEY_WORKDIR
+# define URLKEY_ARGUMENTS U_URLKEY_ARGUMENTS
+# define URLKEY_INTERN_ORIGURL U_URLKEY_INTERN_ORIGURL
#endif // __URLKEYS_HXX
diff --git a/tools/inc/tools/urlobj.hxx b/tools/inc/tools/urlobj.hxx
index 4783dfbefccc..a4f2a07af762 100644
--- a/tools/inc/tools/urlobj.hxx
+++ b/tools/inc/tools/urlobj.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ namespace com { namespace sun { namespace star { namespace util {
//============================================================================
// Common URL prefixes for various schemes:
-#define INET_FTP_SCHEME "ftp://"
+#define INET_FTP_SCHEME "ftp://"
#define INET_HTTP_SCHEME "http://"
#define INET_HTTPS_SCHEME "https://"
#define INET_FILE_SCHEME "file://"
@@ -153,7 +153,7 @@ public:
/** The way input strings that represent (parts of) URIs are interpreted
in set-methods.
- @descr Most set-methods accept either a ByteString or a rtl::OUString
+ @descr Most set-methods accept either a ByteString or a rtl::OUString
as input. Using a ByteString, octets in the range 0x80--0xFF are
replaced by single escape sequences. Using a rtl::OUString , UTF-32
characters in the range 0x80--0x10FFFF are replaced by sequences of
@@ -812,7 +812,7 @@ public:
the specified segment does not exist, false is returned. If false is
returned, the object is not modified.
*/
- bool setName(rtl::OUString const & rTheName,
+ bool setName(rtl::OUString const & rTheName,
sal_Int32 nIndex = LAST_SEGMENT,
bool bIgnoreFinalSlash = true,
EncodeMechanism eMechanism = WAS_ENCODED,
@@ -859,7 +859,7 @@ public:
the specified segment does not exist, false is returned. If false is
returned, the object is not modified.
*/
- bool setBase(rtl::OUString const & rTheBase,
+ bool setBase(rtl::OUString const & rTheBase,
sal_Int32 nIndex = LAST_SEGMENT,
bool bIgnoreFinalSlash = true,
EncodeMechanism eMechanism = WAS_ENCODED,
@@ -1182,7 +1182,7 @@ public:
rtl_TextEncoding eCharset
= RTL_TEXTENCODING_UTF8);
- static void appendUCS4Escape(rtl::OUStringBuffer & rTheText,
+ static void appendUCS4Escape(rtl::OUStringBuffer & rTheText,
sal_Char cEscapePrefix,
sal_uInt32 nUCS4);
@@ -1333,7 +1333,7 @@ private:
inline void operator +=(sal_Int32 nDelta);
- int compare(SubString const & rOther,
+ int compare(SubString const & rOther,
rtl::OUStringBuffer const & rThisString,
rtl::OUStringBuffer const & rOtherString) const;
};
@@ -1496,9 +1496,9 @@ private:
// Coding:
static inline rtl::OUString extend(ByteString const & rOctets)
- {
- return rtl::OUString(rOctets.GetBuffer(), rOctets.Len(),
- RTL_TEXTENCODING_ISO_8859_1);
+ {
+ return rtl::OUString(rOctets.GetBuffer(), rOctets.Len(),
+ RTL_TEXTENCODING_ISO_8859_1);
}
static inline sal_Char getEscapePrefix(INetProtocol eTheScheme)
diff --git a/tools/inc/tools/vcompat.hxx b/tools/inc/tools/vcompat.hxx
index 8fbc897ec62c..78dbe57f90e4 100644
--- a/tools/inc/tools/vcompat.hxx
+++ b/tools/inc/tools/vcompat.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,9 +36,9 @@
// -----------
#define COMPAT_FORMAT( char1, char2, char3, char4 ) \
- ((UINT32)((((UINT32)(char)(char1)))| \
- (((UINT32)(char)(char2))<<8UL)| \
- (((UINT32)(char)(char3))<<16UL)| \
+ ((UINT32)((((UINT32)(char)(char1)))| \
+ (((UINT32)(char)(char2))<<8UL)| \
+ (((UINT32)(char)(char3))<<16UL)| \
((UINT32)(char)(char4))<<24UL))
// --------------
@@ -49,23 +49,23 @@ class SvStream;
class TOOLS_DLLPUBLIC VersionCompat
{
- SvStream* mpRWStm;
- UINT32 mnCompatPos;
- UINT32 mnTotalSize;
- UINT16 mnStmMode;
- UINT16 mnVersion;
+ SvStream* mpRWStm;
+ UINT32 mnCompatPos;
+ UINT32 mnTotalSize;
+ UINT16 mnStmMode;
+ UINT16 mnVersion;
VersionCompat() {}
VersionCompat( const VersionCompat& ) {}
- VersionCompat& operator=( const VersionCompat& ) { return *this; }
- BOOL operator==( const VersionCompat& ) { return FALSE; }
+ VersionCompat& operator=( const VersionCompat& ) { return *this; }
+ BOOL operator==( const VersionCompat& ) { return FALSE; }
public:
VersionCompat( SvStream& rStm, USHORT nStreamMode, UINT16 nVersion = 1 );
~VersionCompat();
- UINT16 GetVersion() const { return mnVersion; }
+ UINT16 GetVersion() const { return mnVersion; }
};
#endif // _VCOMPAT_HXX
diff --git a/tools/inc/tools/vector2d.hxx b/tools/inc/tools/vector2d.hxx
index e6d98b7cbb98..6a27342f9976 100644
--- a/tools/inc/tools/vector2d.hxx
+++ b/tools/inc/tools/vector2d.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,10 +39,10 @@
class Vector2D
{
private:
- double mfX;
- double mfY;
-
-public:
+ double mfX;
+ double mfY;
+
+public:
inline Vector2D() : mfX( 0.0 ), mfY( 0.0 ) {}
inline Vector2D( double fX, double fY ) : mfX( fX ), mfY( fY ) {}
inline Vector2D( const Vector2D& rVec ) : mfX( rVec.mfX ), mfY( rVec.mfY ) {}
@@ -63,46 +63,46 @@ public:
inline void Max(const Vector2D& rVec) { if(rVec.mfX > mfX) mfX = rVec.mfX; if(rVec.mfY > mfY) mfY = rVec.mfY; }
inline void Abs() { if(mfX < 0.0) mfX = -mfX; if(mfY < 0.0) mfY = -mfY; }
- inline void CalcInBetween(Vector2D& rOld1, Vector2D& rOld2, double t)
+ inline void CalcInBetween(Vector2D& rOld1, Vector2D& rOld2, double t)
{ mfX = ((rOld2.mfX - rOld1.mfX) + t) + rOld1.mfX; mfY = ((rOld2.mfY - rOld1.mfY) + t) + rOld1.mfY; }
- inline void CalcMiddle(Vector2D& rOld1, Vector2D& rOld2)
+ inline void CalcMiddle(Vector2D& rOld1, Vector2D& rOld2)
{ mfX = (rOld1.mfX + rOld2.mfX) / 2.0; mfY = (rOld1.mfY + rOld2.mfY) / 2.0; }
inline void CalcMiddle(Vector2D& rOld1, Vector2D& rOld2, Vector2D& rOld3)
{ mfX = (rOld1.mfX + rOld2.mfX + rOld3.mfX) / 3.0; mfY = (rOld1.mfY + rOld2.mfY + rOld3.mfY) / 3.0; }
-
- inline Vector2D& operator+=( const Vector2D& rVec ) { mfX += rVec.mfX, mfY += rVec.mfY; return *this; }
- inline Vector2D& operator-=( const Vector2D& rVec ) { mfX -= rVec.mfX, mfY -= rVec.mfY; return *this; }
- inline Vector2D operator+(const Vector2D& rVec) const { Vector2D aSum(*this); aSum += rVec; return aSum; }
- inline Vector2D operator-(const Vector2D& rVec) const { Vector2D aSub(*this); aSub -= rVec; return aSub; }
- inline Vector2D operator-(void) const { return Vector2D(-mfX, -mfY); }
-
- inline double Scalar( const Vector2D& rVec ) const { return( mfX * rVec.mfX + mfY * rVec.mfY ); }
-
- inline Vector2D& operator/=( const Vector2D& rVec ) { mfX /= rVec.mfX, mfY /= rVec.mfY; return *this; }
- inline Vector2D& operator*=( const Vector2D& rVec ) { mfX *= rVec.mfX, mfY *= rVec.mfY; return *this; }
- inline Vector2D operator/(const Vector2D& rVec) const { Vector2D aDiv(*this); aDiv /= rVec; return aDiv; }
- inline Vector2D operator*(const Vector2D& rVec) const { Vector2D aMul(*this); aMul *= rVec; return aMul; }
-
- inline Vector2D& operator*=(double t) { mfX *= t; mfY *= t; return *this; }
- inline Vector2D operator*(double t) const { Vector2D aNew(*this); aNew *= t; return aNew; }
- inline Vector2D& operator/=(double t) { mfX /= t; mfY /= t; return *this; }
- inline Vector2D operator/(double t) const { Vector2D aNew(*this); aNew /= t; return aNew; }
-
- inline BOOL operator==( const Vector2D& rVec ) const { return( mfX == rVec.mfX && mfY == rVec.mfY ); }
- inline BOOL operator!=( const Vector2D& rVec ) const { return !( *this == rVec ); }
-
- inline Vector2D& operator=( const Vector2D& rVec ) { mfX = rVec.mfX, mfY = rVec.mfY; return *this; }
- inline Vector2D& operator=( const Pair& rPair ) { mfX = rPair.nA, mfY = rPair.nB; return *this; }
- inline Vector2D& operator-=( const Pair& rPair ) { mfX -= rPair.nA, mfY -= rPair.nB; return *this; }
- inline Vector2D& operator+=( const Pair& rPair ) { mfX += rPair.nA, mfY += rPair.nB; return *this; }
- inline Vector2D& operator*=( const Pair& rPair ) { mfX *= rPair.nA, mfY *= rPair.nB; return *this; }
- inline Vector2D& operator/=( const Pair& rPair ) { mfX /= rPair.nA, mfY /= rPair.nB; return *this; }
-
- inline BOOL operator==( const Pair& rPair ) const { return( mfX == rPair.nA && mfY == rPair.nB ); }
- inline BOOL operator!=( const Pair& rPair ) const { return !( *this == rPair ); }
-
- inline BOOL IsPositive( Vector2D& rVec ) const { return( ( mfX * rVec.mfY - mfY * rVec.mfX ) >= 0.0 ); }
- inline BOOL IsNegative( Vector2D& rVec ) const { return !IsPositive( rVec ); }
+
+ inline Vector2D& operator+=( const Vector2D& rVec ) { mfX += rVec.mfX, mfY += rVec.mfY; return *this; }
+ inline Vector2D& operator-=( const Vector2D& rVec ) { mfX -= rVec.mfX, mfY -= rVec.mfY; return *this; }
+ inline Vector2D operator+(const Vector2D& rVec) const { Vector2D aSum(*this); aSum += rVec; return aSum; }
+ inline Vector2D operator-(const Vector2D& rVec) const { Vector2D aSub(*this); aSub -= rVec; return aSub; }
+ inline Vector2D operator-(void) const { return Vector2D(-mfX, -mfY); }
+
+ inline double Scalar( const Vector2D& rVec ) const { return( mfX * rVec.mfX + mfY * rVec.mfY ); }
+
+ inline Vector2D& operator/=( const Vector2D& rVec ) { mfX /= rVec.mfX, mfY /= rVec.mfY; return *this; }
+ inline Vector2D& operator*=( const Vector2D& rVec ) { mfX *= rVec.mfX, mfY *= rVec.mfY; return *this; }
+ inline Vector2D operator/(const Vector2D& rVec) const { Vector2D aDiv(*this); aDiv /= rVec; return aDiv; }
+ inline Vector2D operator*(const Vector2D& rVec) const { Vector2D aMul(*this); aMul *= rVec; return aMul; }
+
+ inline Vector2D& operator*=(double t) { mfX *= t; mfY *= t; return *this; }
+ inline Vector2D operator*(double t) const { Vector2D aNew(*this); aNew *= t; return aNew; }
+ inline Vector2D& operator/=(double t) { mfX /= t; mfY /= t; return *this; }
+ inline Vector2D operator/(double t) const { Vector2D aNew(*this); aNew /= t; return aNew; }
+
+ inline BOOL operator==( const Vector2D& rVec ) const { return( mfX == rVec.mfX && mfY == rVec.mfY ); }
+ inline BOOL operator!=( const Vector2D& rVec ) const { return !( *this == rVec ); }
+
+ inline Vector2D& operator=( const Vector2D& rVec ) { mfX = rVec.mfX, mfY = rVec.mfY; return *this; }
+ inline Vector2D& operator=( const Pair& rPair ) { mfX = rPair.nA, mfY = rPair.nB; return *this; }
+ inline Vector2D& operator-=( const Pair& rPair ) { mfX -= rPair.nA, mfY -= rPair.nB; return *this; }
+ inline Vector2D& operator+=( const Pair& rPair ) { mfX += rPair.nA, mfY += rPair.nB; return *this; }
+ inline Vector2D& operator*=( const Pair& rPair ) { mfX *= rPair.nA, mfY *= rPair.nB; return *this; }
+ inline Vector2D& operator/=( const Pair& rPair ) { mfX /= rPair.nA, mfY /= rPair.nB; return *this; }
+
+ inline BOOL operator==( const Pair& rPair ) const { return( mfX == rPair.nA && mfY == rPair.nB ); }
+ inline BOOL operator!=( const Pair& rPair ) const { return !( *this == rPair ); }
+
+ inline BOOL IsPositive( Vector2D& rVec ) const { return( ( mfX * rVec.mfY - mfY * rVec.mfX ) >= 0.0 ); }
+ inline BOOL IsNegative( Vector2D& rVec ) const { return !IsPositive( rVec ); }
};
// -----------------------------------------------------------------------------
diff --git a/tools/inc/tools/weakbase.h b/tools/inc/tools/weakbase.h
index 7108ba882126..49e03a724c0e 100644
--- a/tools/inc/tools/weakbase.h
+++ b/tools/inc/tools/weakbase.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,8 +70,8 @@ namespace tools
template <class reference_type>
struct WeakConnection
{
- sal_Int32 mnRefCount;
- reference_type* mpReference;
+ sal_Int32 mnRefCount;
+ reference_type* mpReference;
WeakConnection( reference_type* pReference ) : mnRefCount( 0 ), mpReference( pReference ) {};
void acquire() { mnRefCount++; }
@@ -115,13 +115,13 @@ public:
inline sal_Bool operator== (const WeakReference<reference_type> & handle) const;
/** only needed for using this class with stl containers */
- inline sal_Bool operator!= (const WeakReference<reference_type> & handle) const;
+ inline sal_Bool operator!= (const WeakReference<reference_type> & handle) const;
/** only needed for using this class with stl containers */
- inline sal_Bool operator< (const WeakReference<reference_type> & handle) const;
+ inline sal_Bool operator< (const WeakReference<reference_type> & handle) const;
/** only needed for using this class with stl containers */
- inline sal_Bool operator> (const WeakReference<reference_type> & handle) const;
+ inline sal_Bool operator> (const WeakReference<reference_type> & handle) const;
/** the assignment operator */
inline WeakReference<reference_type>& operator= (const WeakReference<reference_type> & handle);
diff --git a/tools/inc/tools/weakbase.hxx b/tools/inc/tools/weakbase.hxx
index 5e941910147c..8c4c164987ca 100644
--- a/tools/inc/tools/weakbase.hxx
+++ b/tools/inc/tools/weakbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,19 +112,19 @@ inline sal_Bool WeakReference< reference_type >::operator==(const WeakReference<
}
template< class reference_type >
-inline sal_Bool WeakReference< reference_type >::operator!=(const WeakReference<reference_type> & handle) const
+inline sal_Bool WeakReference< reference_type >::operator!=(const WeakReference<reference_type> & handle) const
{
return mpWeakConnection != handle.mpWeakConnection;
}
template< class reference_type >
-inline sal_Bool WeakReference< reference_type >::operator<(const WeakReference<reference_type> & handle) const
+inline sal_Bool WeakReference< reference_type >::operator<(const WeakReference<reference_type> & handle) const
{
return mpWeakConnection->mpReference < handle.mpWeakConnection->mpReference;
}
template< class reference_type >
-inline sal_Bool WeakReference< reference_type >::operator>(const WeakReference<reference_type> & handle) const
+inline sal_Bool WeakReference< reference_type >::operator>(const WeakReference<reference_type> & handle) const
{
return mpWeakConnection->mpReference > handle.mpWeakConnection->mpReference;
}
diff --git a/tools/inc/tools/wintypes.hxx b/tools/inc/tools/wintypes.hxx
index a590183c5154..a280d334cdc3 100644
--- a/tools/inc/tools/wintypes.hxx
+++ b/tools/inc/tools/wintypes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,89 +36,89 @@
// ----------------
typedef USHORT WindowType;
-#define WINDOW_BASE 0x0100
-#define WINDOW_FIRST (WINDOW_BASE + 0x30)
-#define WINDOW_MESSBOX (WINDOW_FIRST)
-#define WINDOW_INFOBOX (WINDOW_FIRST + 0x01)
-#define WINDOW_WARNINGBOX (WINDOW_FIRST + 0x02)
-#define WINDOW_ERRORBOX (WINDOW_FIRST + 0x03)
-#define WINDOW_QUERYBOX (WINDOW_FIRST + 0x04)
-#define WINDOW_WINDOW (WINDOW_FIRST + 0x05)
-#define WINDOW_SYSWINDOW (WINDOW_FIRST + 0x06)
-#define WINDOW_WORKWINDOW (WINDOW_FIRST + 0x07)
-// #define WINDOW_MDIWINDOW (WINDOW_FIRST + 0x08)
-#define WINDOW_FLOATINGWINDOW (WINDOW_FIRST + 0x09)
-#define WINDOW_DIALOG (WINDOW_FIRST + 0x0a)
-#define WINDOW_MODELESSDIALOG (WINDOW_FIRST + 0x0b)
-#define WINDOW_MODALDIALOG (WINDOW_FIRST + 0x0c)
-#define WINDOW_SYSTEMDIALOG (WINDOW_FIRST + 0x0d)
-#define WINDOW_PATHDIALOG (WINDOW_FIRST + 0x0e)
-#define WINDOW_FILEDIALOG (WINDOW_FIRST + 0x0f)
-#define WINDOW_PRINTERSETUPDIALOG (WINDOW_FIRST + 0x10)
-#define WINDOW_PRINTDIALOG (WINDOW_FIRST + 0x11)
-#define WINDOW_COLORDIALOG (WINDOW_FIRST + 0x12)
-#define WINDOW_FONTDIALOG (WINDOW_FIRST + 0x13)
-#define WINDOW_CONTROL (WINDOW_FIRST + 0x14)
-#define WINDOW_BUTTON (WINDOW_FIRST + 0x15)
-#define WINDOW_PUSHBUTTON (WINDOW_FIRST + 0x16)
-#define WINDOW_OKBUTTON (WINDOW_FIRST + 0x17)
-#define WINDOW_CANCELBUTTON (WINDOW_FIRST + 0x18)
-#define WINDOW_HELPBUTTON (WINDOW_FIRST + 0x19)
-#define WINDOW_IMAGEBUTTON (WINDOW_FIRST + 0x1a)
-#define WINDOW_MENUBUTTON (WINDOW_FIRST + 0x1b)
-#define WINDOW_MOREBUTTON (WINDOW_FIRST + 0x1c)
-#define WINDOW_SPINBUTTON (WINDOW_FIRST + 0x1d)
-#define WINDOW_RADIOBUTTON (WINDOW_FIRST + 0x1e)
-#define WINDOW_IMAGERADIOBUTTON (WINDOW_FIRST + 0x1f)
-#define WINDOW_CHECKBOX (WINDOW_FIRST + 0x20)
-#define WINDOW_TRISTATEBOX (WINDOW_FIRST + 0x21)
-#define WINDOW_EDIT (WINDOW_FIRST + 0x22)
-#define WINDOW_MULTILINEEDIT (WINDOW_FIRST + 0x23)
-#define WINDOW_COMBOBOX (WINDOW_FIRST + 0x24)
-#define WINDOW_LISTBOX (WINDOW_FIRST + 0x25)
-#define WINDOW_MULTILISTBOX (WINDOW_FIRST + 0x26)
-#define WINDOW_FIXEDTEXT (WINDOW_FIRST + 0x27)
-#define WINDOW_FIXEDLINE (WINDOW_FIRST + 0x28)
-#define WINDOW_FIXEDBITMAP (WINDOW_FIRST + 0x29)
-#define WINDOW_FIXEDIMAGE (WINDOW_FIRST + 0x2a)
-#define WINDOW_GROUPBOX (WINDOW_FIRST + 0x2c)
-#define WINDOW_SCROLLBAR (WINDOW_FIRST + 0x2d)
-#define WINDOW_SCROLLBARBOX (WINDOW_FIRST + 0x2e)
-#define WINDOW_SPLITTER (WINDOW_FIRST + 0x2f)
-#define WINDOW_SPLITWINDOW (WINDOW_FIRST + 0x30)
-#define WINDOW_SPINFIELD (WINDOW_FIRST + 0x31)
-#define WINDOW_PATTERNFIELD (WINDOW_FIRST + 0x32)
-#define WINDOW_NUMERICFIELD (WINDOW_FIRST + 0x33)
-#define WINDOW_METRICFIELD (WINDOW_FIRST + 0x34)
-#define WINDOW_CURRENCYFIELD (WINDOW_FIRST + 0x35)
-#define WINDOW_DATEFIELD (WINDOW_FIRST + 0x36)
-#define WINDOW_TIMEFIELD (WINDOW_FIRST + 0x37)
-#define WINDOW_PATTERNBOX (WINDOW_FIRST + 0x38)
-#define WINDOW_NUMERICBOX (WINDOW_FIRST + 0x39)
-#define WINDOW_METRICBOX (WINDOW_FIRST + 0x3a)
-#define WINDOW_CURRENCYBOX (WINDOW_FIRST + 0x3b)
-#define WINDOW_DATEBOX (WINDOW_FIRST + 0x3c)
-#define WINDOW_TIMEBOX (WINDOW_FIRST + 0x3d)
-#define WINDOW_LONGCURRENCYFIELD (WINDOW_FIRST + 0x3e)
-#define WINDOW_LONGCURRENCYBOX (WINDOW_FIRST + 0x3f)
-#define WINDOW_TOOLBOX (WINDOW_FIRST + 0x41)
-#define WINDOW_DOCKINGWINDOW (WINDOW_FIRST + 0x42)
-#define WINDOW_STATUSBAR (WINDOW_FIRST + 0x43)
-#define WINDOW_TABPAGE (WINDOW_FIRST + 0x44)
-#define WINDOW_TABCONTROL (WINDOW_FIRST + 0x45)
-#define WINDOW_TABDIALOG (WINDOW_FIRST + 0x46)
-#define WINDOW_BORDERWINDOW (WINDOW_FIRST + 0x47)
-#define WINDOW_BUTTONDIALOG (WINDOW_FIRST + 0x48)
-#define WINDOW_SYSTEMCHILDWINDOW (WINDOW_FIRST + 0x49)
-#define WINDOW_FIXEDBORDER (WINDOW_FIRST + 0x4a)
-#define WINDOW_SLIDER (WINDOW_FIRST + 0x4b)
+#define WINDOW_BASE 0x0100
+#define WINDOW_FIRST (WINDOW_BASE + 0x30)
+#define WINDOW_MESSBOX (WINDOW_FIRST)
+#define WINDOW_INFOBOX (WINDOW_FIRST + 0x01)
+#define WINDOW_WARNINGBOX (WINDOW_FIRST + 0x02)
+#define WINDOW_ERRORBOX (WINDOW_FIRST + 0x03)
+#define WINDOW_QUERYBOX (WINDOW_FIRST + 0x04)
+#define WINDOW_WINDOW (WINDOW_FIRST + 0x05)
+#define WINDOW_SYSWINDOW (WINDOW_FIRST + 0x06)
+#define WINDOW_WORKWINDOW (WINDOW_FIRST + 0x07)
+// #define WINDOW_MDIWINDOW (WINDOW_FIRST + 0x08)
+#define WINDOW_FLOATINGWINDOW (WINDOW_FIRST + 0x09)
+#define WINDOW_DIALOG (WINDOW_FIRST + 0x0a)
+#define WINDOW_MODELESSDIALOG (WINDOW_FIRST + 0x0b)
+#define WINDOW_MODALDIALOG (WINDOW_FIRST + 0x0c)
+#define WINDOW_SYSTEMDIALOG (WINDOW_FIRST + 0x0d)
+#define WINDOW_PATHDIALOG (WINDOW_FIRST + 0x0e)
+#define WINDOW_FILEDIALOG (WINDOW_FIRST + 0x0f)
+#define WINDOW_PRINTERSETUPDIALOG (WINDOW_FIRST + 0x10)
+#define WINDOW_PRINTDIALOG (WINDOW_FIRST + 0x11)
+#define WINDOW_COLORDIALOG (WINDOW_FIRST + 0x12)
+#define WINDOW_FONTDIALOG (WINDOW_FIRST + 0x13)
+#define WINDOW_CONTROL (WINDOW_FIRST + 0x14)
+#define WINDOW_BUTTON (WINDOW_FIRST + 0x15)
+#define WINDOW_PUSHBUTTON (WINDOW_FIRST + 0x16)
+#define WINDOW_OKBUTTON (WINDOW_FIRST + 0x17)
+#define WINDOW_CANCELBUTTON (WINDOW_FIRST + 0x18)
+#define WINDOW_HELPBUTTON (WINDOW_FIRST + 0x19)
+#define WINDOW_IMAGEBUTTON (WINDOW_FIRST + 0x1a)
+#define WINDOW_MENUBUTTON (WINDOW_FIRST + 0x1b)
+#define WINDOW_MOREBUTTON (WINDOW_FIRST + 0x1c)
+#define WINDOW_SPINBUTTON (WINDOW_FIRST + 0x1d)
+#define WINDOW_RADIOBUTTON (WINDOW_FIRST + 0x1e)
+#define WINDOW_IMAGERADIOBUTTON (WINDOW_FIRST + 0x1f)
+#define WINDOW_CHECKBOX (WINDOW_FIRST + 0x20)
+#define WINDOW_TRISTATEBOX (WINDOW_FIRST + 0x21)
+#define WINDOW_EDIT (WINDOW_FIRST + 0x22)
+#define WINDOW_MULTILINEEDIT (WINDOW_FIRST + 0x23)
+#define WINDOW_COMBOBOX (WINDOW_FIRST + 0x24)
+#define WINDOW_LISTBOX (WINDOW_FIRST + 0x25)
+#define WINDOW_MULTILISTBOX (WINDOW_FIRST + 0x26)
+#define WINDOW_FIXEDTEXT (WINDOW_FIRST + 0x27)
+#define WINDOW_FIXEDLINE (WINDOW_FIRST + 0x28)
+#define WINDOW_FIXEDBITMAP (WINDOW_FIRST + 0x29)
+#define WINDOW_FIXEDIMAGE (WINDOW_FIRST + 0x2a)
+#define WINDOW_GROUPBOX (WINDOW_FIRST + 0x2c)
+#define WINDOW_SCROLLBAR (WINDOW_FIRST + 0x2d)
+#define WINDOW_SCROLLBARBOX (WINDOW_FIRST + 0x2e)
+#define WINDOW_SPLITTER (WINDOW_FIRST + 0x2f)
+#define WINDOW_SPLITWINDOW (WINDOW_FIRST + 0x30)
+#define WINDOW_SPINFIELD (WINDOW_FIRST + 0x31)
+#define WINDOW_PATTERNFIELD (WINDOW_FIRST + 0x32)
+#define WINDOW_NUMERICFIELD (WINDOW_FIRST + 0x33)
+#define WINDOW_METRICFIELD (WINDOW_FIRST + 0x34)
+#define WINDOW_CURRENCYFIELD (WINDOW_FIRST + 0x35)
+#define WINDOW_DATEFIELD (WINDOW_FIRST + 0x36)
+#define WINDOW_TIMEFIELD (WINDOW_FIRST + 0x37)
+#define WINDOW_PATTERNBOX (WINDOW_FIRST + 0x38)
+#define WINDOW_NUMERICBOX (WINDOW_FIRST + 0x39)
+#define WINDOW_METRICBOX (WINDOW_FIRST + 0x3a)
+#define WINDOW_CURRENCYBOX (WINDOW_FIRST + 0x3b)
+#define WINDOW_DATEBOX (WINDOW_FIRST + 0x3c)
+#define WINDOW_TIMEBOX (WINDOW_FIRST + 0x3d)
+#define WINDOW_LONGCURRENCYFIELD (WINDOW_FIRST + 0x3e)
+#define WINDOW_LONGCURRENCYBOX (WINDOW_FIRST + 0x3f)
+#define WINDOW_TOOLBOX (WINDOW_FIRST + 0x41)
+#define WINDOW_DOCKINGWINDOW (WINDOW_FIRST + 0x42)
+#define WINDOW_STATUSBAR (WINDOW_FIRST + 0x43)
+#define WINDOW_TABPAGE (WINDOW_FIRST + 0x44)
+#define WINDOW_TABCONTROL (WINDOW_FIRST + 0x45)
+#define WINDOW_TABDIALOG (WINDOW_FIRST + 0x46)
+#define WINDOW_BORDERWINDOW (WINDOW_FIRST + 0x47)
+#define WINDOW_BUTTONDIALOG (WINDOW_FIRST + 0x48)
+#define WINDOW_SYSTEMCHILDWINDOW (WINDOW_FIRST + 0x49)
+#define WINDOW_FIXEDBORDER (WINDOW_FIRST + 0x4a)
+#define WINDOW_SLIDER (WINDOW_FIRST + 0x4b)
#define WINDOW_MENUBARWINDOW (WINDOW_FIRST + 0x4c)
-#define WINDOW_TREELISTBOX (WINDOW_FIRST + 0x4d)
-#define WINDOW_HELPTEXTWINDOW (WINDOW_FIRST + 0x4e)
-#define WINDOW_INTROWINDOW (WINDOW_FIRST + 0x4f)
+#define WINDOW_TREELISTBOX (WINDOW_FIRST + 0x4d)
+#define WINDOW_HELPTEXTWINDOW (WINDOW_FIRST + 0x4e)
+#define WINDOW_INTROWINDOW (WINDOW_FIRST + 0x4f)
#define WINDOW_LISTBOXWINDOW (WINDOW_FIRST + 0x50)
#define WINDOW_DOCKINGAREA (WINDOW_FIRST + 0x51)
-#define WINDOW_LAST (WINDOW_DOCKINGAREA)
+#define WINDOW_LAST (WINDOW_DOCKINGAREA)
// ---------------
@@ -129,23 +129,23 @@ typedef USHORT WindowType;
typedef sal_Int64 WinBits;
// Window-Bits fuer Window
-#define WB_CLIPCHILDREN ((WinBits)0x00000001)
-#define WB_DIALOGCONTROL ((WinBits)0x00000002)
-#define WB_NODIALOGCONTROL ((WinBits)0x00000004)
-#define WB_BORDER ((WinBits)0x00000008)
-#define WB_NOBORDER ((WinBits)0x00000010)
-#define WB_SIZEABLE ((WinBits)0x00000020)
-#define WB_3DLOOK ((WinBits)0x00000040)
-#define WB_AUTOSIZE ((WinBits)0x00000080)
+#define WB_CLIPCHILDREN ((WinBits)0x00000001)
+#define WB_DIALOGCONTROL ((WinBits)0x00000002)
+#define WB_NODIALOGCONTROL ((WinBits)0x00000004)
+#define WB_BORDER ((WinBits)0x00000008)
+#define WB_NOBORDER ((WinBits)0x00000010)
+#define WB_SIZEABLE ((WinBits)0x00000020)
+#define WB_3DLOOK ((WinBits)0x00000040)
+#define WB_AUTOSIZE ((WinBits)0x00000080)
// Window-Bits fuer SystemWindows
-#define WB_MOVEABLE ((WinBits)0x00000100)
-#define WB_ROLLABLE ((WinBits)0x00000200)
-#define WB_CLOSEABLE ((WinBits)0x00000400)
-#define WB_STANDALONE ((WinBits)0x00000800)
-#define WB_APP ((WinBits)0x00001000)
-#define WB_PINABLE ((WinBits)0x00002000)
-#define WB_SYSTEMWINDOW ((WinBits)SAL_CONST_INT64(0x40000000))
+#define WB_MOVEABLE ((WinBits)0x00000100)
+#define WB_ROLLABLE ((WinBits)0x00000200)
+#define WB_CLOSEABLE ((WinBits)0x00000400)
+#define WB_STANDALONE ((WinBits)0x00000800)
+#define WB_APP ((WinBits)0x00001000)
+#define WB_PINABLE ((WinBits)0x00002000)
+#define WB_SYSTEMWINDOW ((WinBits)SAL_CONST_INT64(0x40000000))
// warning: do not confuse WB_SYSTEMCHILDWINDOW with the SystemChildWindow class
// the SystemChildWindow class was there first and is a very specialized
@@ -156,38 +156,38 @@ typedef sal_Int64 WinBits;
// which should be created as system child windows with (more or less)
// normal event handling
#define WB_SYSTEMCHILDWINDOW ((WinBits)SAL_CONST_INT64(0x8000000000))
-#define WB_SIZEMOVE (WB_SIZEABLE | WB_MOVEABLE)
+#define WB_SIZEMOVE (WB_SIZEABLE | WB_MOVEABLE)
// Standard-Window-Bits fuer ChildWindows
-#define WB_TABSTOP ((WinBits)0x00000100)
-#define WB_NOTABSTOP ((WinBits)0x00000200)
-#define WB_GROUP ((WinBits)0x00000400)
-#define WB_NOGROUP ((WinBits)0x00000800)
-#define WB_HORZ ((WinBits)0x00001000)
-#define WB_VERT ((WinBits)0x00002000)
-#define WB_LEFT ((WinBits)0x00004000)
-#define WB_CENTER ((WinBits)0x00008000)
-#define WB_RIGHT ((WinBits)0x00010000)
-#define WB_TOP ((WinBits)0x00020000)
-#define WB_VCENTER ((WinBits)0x00040000)
-#define WB_BOTTOM ((WinBits)0x00080000)
-#define WB_DRAG ((WinBits)0x00100000)
-#define WB_SPIN ((WinBits)0x00200000)
-#define WB_REPEAT ((WinBits)0x00400000)
-#define WB_NOPOINTERFOCUS ((WinBits)0x00800000)
-#define WB_WORDBREAK ((WinBits)0x01000000)
-#define WB_NOLABEL ((WinBits)0x02000000)
-#define WB_SORT ((WinBits)0x04000000)
-#define WB_DROPDOWN ((WinBits)0x08000000)
-#define WB_HIDE ((WinBits)SAL_CONST_INT64(0x80000000))
-#define WB_AUTOHSCROLL ((WinBits)SAL_CONST_INT64(0x10000000))
-#define WB_DOCKABLE ((WinBits)SAL_CONST_INT64(0x20000000))
+#define WB_TABSTOP ((WinBits)0x00000100)
+#define WB_NOTABSTOP ((WinBits)0x00000200)
+#define WB_GROUP ((WinBits)0x00000400)
+#define WB_NOGROUP ((WinBits)0x00000800)
+#define WB_HORZ ((WinBits)0x00001000)
+#define WB_VERT ((WinBits)0x00002000)
+#define WB_LEFT ((WinBits)0x00004000)
+#define WB_CENTER ((WinBits)0x00008000)
+#define WB_RIGHT ((WinBits)0x00010000)
+#define WB_TOP ((WinBits)0x00020000)
+#define WB_VCENTER ((WinBits)0x00040000)
+#define WB_BOTTOM ((WinBits)0x00080000)
+#define WB_DRAG ((WinBits)0x00100000)
+#define WB_SPIN ((WinBits)0x00200000)
+#define WB_REPEAT ((WinBits)0x00400000)
+#define WB_NOPOINTERFOCUS ((WinBits)0x00800000)
+#define WB_WORDBREAK ((WinBits)0x01000000)
+#define WB_NOLABEL ((WinBits)0x02000000)
+#define WB_SORT ((WinBits)0x04000000)
+#define WB_DROPDOWN ((WinBits)0x08000000)
+#define WB_HIDE ((WinBits)SAL_CONST_INT64(0x80000000))
+#define WB_AUTOHSCROLL ((WinBits)SAL_CONST_INT64(0x10000000))
+#define WB_DOCKABLE ((WinBits)SAL_CONST_INT64(0x20000000))
#define WB_AUTOVSCROLL ((WinBits)SAL_CONST_INT64(0x40000000))
#define WB_HYPHENATION (((WinBits)SAL_CONST_INT64(0x800000000)) | WB_WORDBREAK)
-#define WB_CHILDDLGCTRL ((WinBits)SAL_CONST_INT64(0x100000000000))
+#define WB_CHILDDLGCTRL ((WinBits)SAL_CONST_INT64(0x100000000000))
// system floating window
-#define WB_SYSTEMFLOATWIN ((WinBits)SAL_CONST_INT64(0x100000000))
+#define WB_SYSTEMFLOATWIN ((WinBits)SAL_CONST_INT64(0x100000000))
#define WB_INTROWIN ((WinBits)SAL_CONST_INT64(0x200000000))
#define WB_NOSHADOW ((WinBits)SAL_CONST_INT64(0x400000000))
#define WB_TOOLTIPWIN ((WinBits)SAL_CONST_INT64(0x800000000))
@@ -196,99 +196,99 @@ typedef sal_Int64 WinBits;
#define WB_NEEDSFOCUS ((WinBits)SAL_CONST_INT64(0x1000000000))
#define WB_POPUP ((WinBits)SAL_CONST_INT64(0x20000000))
-#define WB_HSCROLL WB_HORZ
-#define WB_VSCROLL WB_VERT
-#define WB_TOPIMAGE WB_TOP
+#define WB_HSCROLL WB_HORZ
+#define WB_VSCROLL WB_VERT
+#define WB_TOPIMAGE WB_TOP
// Window-Bits for PushButtons
-#define WB_DEFBUTTON ((WinBits)0x10000000)
-#define WB_NOLIGHTBORDER ((WinBits)0x20000000)
-#define WB_RECTSTYLE ((WinBits)0x08000000)
-#define WB_SMALLSTYLE ((WinBits)0x04000000)
+#define WB_DEFBUTTON ((WinBits)0x10000000)
+#define WB_NOLIGHTBORDER ((WinBits)0x20000000)
+#define WB_RECTSTYLE ((WinBits)0x08000000)
+#define WB_SMALLSTYLE ((WinBits)0x04000000)
#define WB_TOGGLE ((WinBits)SAL_CONST_INT64(0x1000000000))
#define WB_BEVELBUTTON ((WinBits)SAL_CONST_INT64(0x2000000000))
#define WB_FLATBUTTON ((WinBits)SAL_CONST_INT64(0x4000000000))
// Window-Bits for FixedText
-#define WB_PATHELLIPSIS ((WinBits)0x00100000)
-#define WB_EXTRAOFFSET ((WinBits)0x02000000)
-#define WB_NOMULTILINE ((WinBits)0x10000000)
-#define WB_INFO ((WinBits)0x20000000)
+#define WB_PATHELLIPSIS ((WinBits)0x00100000)
+#define WB_EXTRAOFFSET ((WinBits)0x02000000)
+#define WB_NOMULTILINE ((WinBits)0x10000000)
+#define WB_INFO ((WinBits)0x20000000)
// Window-Bits for CheckBox
#define WB_CBLINESTYLE ((WinBits)SAL_CONST_INT64(0x2000000000))
#define WB_EARLYTOGGLE ((WinBits)SAL_CONST_INT64(0x4000000000))
// Window-Bits for Edit
-#define WB_PASSWORD ((WinBits)0x01000000)
-#define WB_READONLY ((WinBits)0x02000000)
-#define WB_NOHIDESELECTION ((WinBits)SAL_CONST_INT64(0x1000000000))
+#define WB_PASSWORD ((WinBits)0x01000000)
+#define WB_READONLY ((WinBits)0x02000000)
+#define WB_NOHIDESELECTION ((WinBits)SAL_CONST_INT64(0x1000000000))
#define WB_FORCECTRLBACKGROUND ((WinBits)0x80000000)
// Window-Bits for MultiLineEdit
-#define WB_IGNORETAB ((WinBits)0x20000000)
+#define WB_IGNORETAB ((WinBits)0x20000000)
// Window-Bits for ListBox and MultiListBox
-#define WB_SIMPLEMODE ((WinBits)0x20000000)
+#define WB_SIMPLEMODE ((WinBits)0x20000000)
// Window-Bits for FixedBitmap
-#define WB_FAST ((WinBits)0x04000000)
-#define WB_SCALE ((WinBits)0x08000000)
-#define WB_TOPLEFTVISIBLE ((WinBits)0x10000000)
+#define WB_FAST ((WinBits)0x04000000)
+#define WB_SCALE ((WinBits)0x08000000)
+#define WB_TOPLEFTVISIBLE ((WinBits)0x10000000)
// Window-Bits for ToolBox
-#define WB_LINESPACING ((WinBits)0x01000000)
-#define WB_SCROLL ((WinBits)0x02000000)
-#define WB_FORCETABCYCLE ((WinBits)0x04000000)
+#define WB_LINESPACING ((WinBits)0x01000000)
+#define WB_SCROLL ((WinBits)0x02000000)
+#define WB_FORCETABCYCLE ((WinBits)0x04000000)
// Window-Bits for TabControl
-#define WB_SINGLELINE ((WinBits)0x02000000)
+#define WB_SINGLELINE ((WinBits)0x02000000)
// Window-Bits for DockingWindows
-#define WB_DOCKBORDER ((WinBits)0x00001000)
+#define WB_DOCKBORDER ((WinBits)0x00001000)
// Window-Bits for SplitWindow
-#define WB_NOSPLITDRAW ((WinBits)0x01000000)
-#define WB_FLATSPLITDRAW ((WinBits)0x02000000)
+#define WB_NOSPLITDRAW ((WinBits)0x01000000)
+#define WB_FLATSPLITDRAW ((WinBits)0x02000000)
// Window-Bits for MessageBoxen
-#define WB_OK ((WinBits)0x00100000)
-#define WB_OK_CANCEL ((WinBits)0x00200000)
-#define WB_YES_NO ((WinBits)0x00400000)
-#define WB_YES_NO_CANCEL ((WinBits)0x00800000)
-#define WB_RETRY_CANCEL ((WinBits)0x01000000)
-#define WB_DEF_OK ((WinBits)0x02000000)
-#define WB_DEF_CANCEL ((WinBits)0x04000000)
-#define WB_DEF_RETRY ((WinBits)0x08000000)
-#define WB_DEF_YES ((WinBits)SAL_CONST_INT64(0x10000000))
-#define WB_DEF_NO ((WinBits)SAL_CONST_INT64(0x20000000))
+#define WB_OK ((WinBits)0x00100000)
+#define WB_OK_CANCEL ((WinBits)0x00200000)
+#define WB_YES_NO ((WinBits)0x00400000)
+#define WB_YES_NO_CANCEL ((WinBits)0x00800000)
+#define WB_RETRY_CANCEL ((WinBits)0x01000000)
+#define WB_DEF_OK ((WinBits)0x02000000)
+#define WB_DEF_CANCEL ((WinBits)0x04000000)
+#define WB_DEF_RETRY ((WinBits)0x08000000)
+#define WB_DEF_YES ((WinBits)SAL_CONST_INT64(0x10000000))
+#define WB_DEF_NO ((WinBits)SAL_CONST_INT64(0x20000000))
#define WB_ABORT_RETRY_IGNORE ((WinBits)SAL_CONST_INT64(0x1000000000))
#define WB_DEF_IGNORE ((WinBits)SAL_CONST_INT64(0x2000000000))
// Standard-WinBits
-#define WB_STDWORK (WB_SIZEMOVE | WB_CLOSEABLE)
-#define WB_STDDOCKWIN (WB_DOCKABLE | WB_MOVEABLE | WB_CLOSEABLE)
-#define WB_STDFLOATWIN (WB_SIZEMOVE | WB_CLOSEABLE | WB_ROLLABLE)
-#define WB_STDDIALOG (WB_MOVEABLE | WB_CLOSEABLE)
-#define WB_STDMODELESS (WB_STDDIALOG)
-#define WB_STDMODAL (WB_STDDIALOG)
-#define WB_STDTABDIALOG (WB_STDDIALOG)
-#define WB_STDTABCONTROL 0
-#define WB_STDPOPUP (WB_BORDER | WB_POPUP | WB_SYSTEMWINDOW | WB_3DLOOK | WB_DIALOGCONTROL)
+#define WB_STDWORK (WB_SIZEMOVE | WB_CLOSEABLE)
+#define WB_STDDOCKWIN (WB_DOCKABLE | WB_MOVEABLE | WB_CLOSEABLE)
+#define WB_STDFLOATWIN (WB_SIZEMOVE | WB_CLOSEABLE | WB_ROLLABLE)
+#define WB_STDDIALOG (WB_MOVEABLE | WB_CLOSEABLE)
+#define WB_STDMODELESS (WB_STDDIALOG)
+#define WB_STDMODAL (WB_STDDIALOG)
+#define WB_STDTABDIALOG (WB_STDDIALOG)
+#define WB_STDTABCONTROL 0
+#define WB_STDPOPUP (WB_BORDER | WB_POPUP | WB_SYSTEMWINDOW | WB_3DLOOK | WB_DIALOGCONTROL)
// For TreeListBox
-#define WB_HASBUTTONS ((WinBits)0x00800000)
-#define WB_HASLINES ((WinBits)0x01000000)
-#define WB_HASLINESATROOT ((WinBits)0x02000000)
+#define WB_HASBUTTONS ((WinBits)0x00800000)
+#define WB_HASLINES ((WinBits)0x01000000)
+#define WB_HASLINESATROOT ((WinBits)0x02000000)
// For FileOpen Dialog
-#define WB_PATH ((WinBits)0x00100000)
-#define WB_OPEN ((WinBits)0x00200000)
-#define WB_SAVEAS ((WinBits)0x00400000)
+#define WB_PATH ((WinBits)0x00100000)
+#define WB_OPEN ((WinBits)0x00200000)
+#define WB_SAVEAS ((WinBits)0x00400000)
// For Slider
// Window-Bits for TabControl
-#define WB_SLIDERSET ((WinBits)0x02000000)
+#define WB_SLIDERSET ((WinBits)0x02000000)
// --------------------
@@ -322,18 +322,18 @@ enum TriState { STATE_NOCHECK, STATE_CHECK, STATE_DONTKNOW };
// ----------------------
typedef USHORT StandardButtonType;
-#define BUTTON_OK ((StandardButtonType)0)
-#define BUTTON_CANCEL ((StandardButtonType)1)
-#define BUTTON_YES ((StandardButtonType)2)
-#define BUTTON_NO ((StandardButtonType)3)
-#define BUTTON_RETRY ((StandardButtonType)4)
-#define BUTTON_HELP ((StandardButtonType)5)
-#define BUTTON_CLOSE ((StandardButtonType)6)
-#define BUTTON_MORE ((StandardButtonType)7)
-#define BUTTON_IGNORE ((StandardButtonType)8)
-#define BUTTON_ABORT ((StandardButtonType)9)
-#define BUTTON_LESS ((StandardButtonType)10)
-#define BUTTON_COUNT 11
+#define BUTTON_OK ((StandardButtonType)0)
+#define BUTTON_CANCEL ((StandardButtonType)1)
+#define BUTTON_YES ((StandardButtonType)2)
+#define BUTTON_NO ((StandardButtonType)3)
+#define BUTTON_RETRY ((StandardButtonType)4)
+#define BUTTON_HELP ((StandardButtonType)5)
+#define BUTTON_CLOSE ((StandardButtonType)6)
+#define BUTTON_MORE ((StandardButtonType)7)
+#define BUTTON_IGNORE ((StandardButtonType)8)
+#define BUTTON_ABORT ((StandardButtonType)9)
+#define BUTTON_LESS ((StandardButtonType)10)
+#define BUTTON_COUNT 11
// --------------------------------------------
// - prominent place for ListBox window types -
diff --git a/tools/inc/tools/wldcrd.hxx b/tools/inc/tools/wldcrd.hxx
index 3e200b2e7f0f..84c692c2bc2d 100644
--- a/tools/inc/tools/wldcrd.hxx
+++ b/tools/inc/tools/wldcrd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/inc/tools/zcodec.hxx b/tools/inc/tools/zcodec.hxx
index 9d3a7e4739e2..ec3021b3ac59 100644
--- a/tools/inc/tools/zcodec.hxx
+++ b/tools/inc/tools/zcodec.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,33 +36,33 @@
// - Defines -
// -----------
-#define DEFAULT_IN_BUFSIZE (0x00008000UL)
-#define DEFAULT_OUT_BUFSIZE (0x00008000UL)
+#define DEFAULT_IN_BUFSIZE (0x00008000UL)
+#define DEFAULT_OUT_BUFSIZE (0x00008000UL)
#define MAX_MEM_USAGE 8
//
// memory requirement using compress:
-// [ INBUFFER ] + [ OUTBUFFER ] + 128KB + 1 << (MEM_USAGE+9)
+// [ INBUFFER ] + [ OUTBUFFER ] + 128KB + 1 << (MEM_USAGE+9)
//
// memory requirement using decompress:
-// [ INBUFFER ] + [ OUTBUFFER ] + 32KB
+// [ INBUFFER ] + [ OUTBUFFER ] + 32KB
//
-#define ZCODEC_NO_COMPRESSION (0x00000000UL)
-#define ZCODEC_BEST_SPEED (0x00000001UL)
-#define ZCODEC_DEFAULT_COMPRESSION (0x00000006UL)
-#define ZCODEC_BEST_COMPRESSION (0x00000009UL)
+#define ZCODEC_NO_COMPRESSION (0x00000000UL)
+#define ZCODEC_BEST_SPEED (0x00000001UL)
+#define ZCODEC_DEFAULT_COMPRESSION (0x00000006UL)
+#define ZCODEC_BEST_COMPRESSION (0x00000009UL)
-#define ZCODEC_DEFAULT_STRATEGY (0x00000000UL)
-#define ZCODEC_ZFILTERED (0x00000100UL)
-#define ZCODEC_ZHUFFMAN_ONLY (0x00000200UL)
+#define ZCODEC_DEFAULT_STRATEGY (0x00000000UL)
+#define ZCODEC_ZFILTERED (0x00000100UL)
+#define ZCODEC_ZHUFFMAN_ONLY (0x00000200UL)
-#define ZCODEC_UPDATE_CRC (0x00010000UL)
-#define ZCODEC_GZ_LIB (0x00020000UL)
+#define ZCODEC_UPDATE_CRC (0x00010000UL)
+#define ZCODEC_GZ_LIB (0x00020000UL)
#define ZCODEC_PNG_DEFAULT ( ZCODEC_NO_COMPRESSION | ZCODEC_DEFAULT_STRATEGY | ZCODEC_UPDATE_CRC )
-#define ZCODEC_DEFAULT ( ZCODEC_DEFAULT_COMPRESSION | ZCODEC_DEFAULT_STRATEGY )
+#define ZCODEC_DEFAULT ( ZCODEC_DEFAULT_COMPRESSION | ZCODEC_DEFAULT_STRATEGY )
// ----------
// - ZCodec -
@@ -74,47 +74,47 @@ class TOOLS_DLLPUBLIC ZCodec
{
private:
- ULONG mbInit;
- BOOL mbStatus;
- BOOL mbFinish;
- ULONG mnMemUsage;
- SvStream* mpIStm;
- BYTE* mpInBuf;
- ULONG mnInBufSize;
- ULONG mnInToRead;
- SvStream* mpOStm;
- BYTE* mpOutBuf;
- ULONG mnOutBufSize;
-
- ULONG mnCRC;
- ULONG mnCompressMethod;
- void* mpsC_Stream;
-
- void ImplInitBuf( BOOL nIOFlag );
- void ImplWriteBack( void );
-
-public:
+ ULONG mbInit;
+ BOOL mbStatus;
+ BOOL mbFinish;
+ ULONG mnMemUsage;
+ SvStream* mpIStm;
+ BYTE* mpInBuf;
+ ULONG mnInBufSize;
+ ULONG mnInToRead;
+ SvStream* mpOStm;
+ BYTE* mpOutBuf;
+ ULONG mnOutBufSize;
+
+ ULONG mnCRC;
+ ULONG mnCompressMethod;
+ void* mpsC_Stream;
+
+ void ImplInitBuf( BOOL nIOFlag );
+ void ImplWriteBack( void );
+
+public:
ZCodec( ULONG nInBuf, ULONG nOutBuf, ULONG nMemUsage = MAX_MEM_USAGE );
- ZCodec( void );
- virtual ~ZCodec();
+ ZCodec( void );
+ virtual ~ZCodec();
- virtual void BeginCompression( ULONG nCompressMethod = ZCODEC_DEFAULT );
- virtual long EndCompression();
+ virtual void BeginCompression( ULONG nCompressMethod = ZCODEC_DEFAULT );
+ virtual long EndCompression();
BOOL IsFinished () const { return mbFinish; }
- long Compress( SvStream& rIStm, SvStream& rOStm );
- long Decompress( SvStream& rIStm, SvStream& rOStm );
+ long Compress( SvStream& rIStm, SvStream& rOStm );
+ long Decompress( SvStream& rIStm, SvStream& rOStm );
- long Write( SvStream& rOStm, const BYTE* pData, ULONG nSize );
- long Read( SvStream& rIStm, BYTE* pData, ULONG nSize );
- long ReadAsynchron( SvStream& rIStm, BYTE* pData, ULONG nSize );
+ long Write( SvStream& rOStm, const BYTE* pData, ULONG nSize );
+ long Read( SvStream& rIStm, BYTE* pData, ULONG nSize );
+ long ReadAsynchron( SvStream& rIStm, BYTE* pData, ULONG nSize );
- void SetBreak( ULONG );
- ULONG GetBreak( void );
- void SetCRC( ULONG nCurrentCRC );
- ULONG UpdateCRC( ULONG nLatestCRC, ULONG nSource );
- ULONG UpdateCRC( ULONG nLatestCRC, BYTE* pSource, long nDatSize );
- ULONG GetCRC();
+ void SetBreak( ULONG );
+ ULONG GetBreak( void );
+ void SetCRC( ULONG nCurrentCRC );
+ ULONG UpdateCRC( ULONG nLatestCRC, ULONG nSource );
+ ULONG UpdateCRC( ULONG nLatestCRC, BYTE* pSource, long nDatSize );
+ ULONG GetCRC();
};
class GZCodec : public ZCodec
@@ -123,7 +123,7 @@ class GZCodec : public ZCodec
public:
GZCodec(){};
~GZCodec(){};
- virtual void BeginCompression( ULONG nCompressMethod = ZCODEC_DEFAULT );
+ virtual void BeginCompression( ULONG nCompressMethod = ZCODEC_DEFAULT );
};
#endif // _ZCODEC_HXX
diff --git a/tools/inc/toolsin.hxx b/tools/inc/toolsin.hxx
index de88389fbb39..aa77bdc83523 100644
--- a/tools/inc/toolsin.hxx
+++ b/tools/inc/toolsin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,10 +42,10 @@ struct Impl1ByteConvertTabData;
struct TOOLSINDATA
{
- ImplRegisterLanguageData* mpFirstLangData;
- ImplRegisterFormatData* mpFirstFormatData;
- Impl1ByteUnicodeTabData* mpFirstUniTabData;
- Impl1ByteConvertTabData* mpFirstConvertTabData;
+ ImplRegisterLanguageData* mpFirstLangData;
+ ImplRegisterFormatData* mpFirstFormatData;
+ Impl1ByteUnicodeTabData* mpFirstUniTabData;
+ Impl1ByteConvertTabData* mpFirstConvertTabData;
};
TOOLSINDATA* ImplGetToolsInData();
diff --git a/tools/os2/inc/dll.hxx b/tools/os2/inc/dll.hxx
index bb71da856943..297b136240d7 100644
--- a/tools/os2/inc/dll.hxx
+++ b/tools/os2/inc/dll.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/os2/source/dll/toolsdll.cxx b/tools/os2/source/dll/toolsdll.cxx
index 346e01faf46d..977061195295 100644
--- a/tools/os2/source/dll/toolsdll.cxx
+++ b/tools/os2/source/dll/toolsdll.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/qa/test_pathutils.cxx b/tools/qa/test_pathutils.cxx
index fcd838767425..aa9a24e44457 100644
--- a/tools/qa/test_pathutils.cxx
+++ b/tools/qa/test_pathutils.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/qa/version.map b/tools/qa/version.map
index 3308588ef6f8..0dbbcc5a7372 100644
--- a/tools/qa/version.map
+++ b/tools/qa/version.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/communi/geninfo.cxx b/tools/source/communi/geninfo.cxx
index 7cd7a3cecd07..d6c70de3c467 100644
--- a/tools/source/communi/geninfo.cxx
+++ b/tools/source/communi/geninfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ BOOL GenericInformation::InsertSubInfo( GenericInformation *pInfo )
}
/*****************************************************************************/
-BOOL GenericInformation::InsertSubInfo( const ByteString &rPathKey, const ByteString &rValue,
+BOOL GenericInformation::InsertSubInfo( const ByteString &rPathKey, const ByteString &rValue,
BOOL bSearchByPath, BOOL bNewPath )
/*****************************************************************************/
{
@@ -168,7 +168,7 @@ GenericInformationList::~GenericInformationList()
{
// delete all Informations stored in this List
// ### GH: Hier werden dann wohl etwa die H�lfte der Eintr�ge gel�scht
-/* for ( ULONG i = 0; i < Count(); i++ ) {
+/* for ( ULONG i = 0; i < Count(); i++ ) {
GetObject( i )->ListDeleted();
delete GetObject( i );
Remove( i );*/
@@ -293,7 +293,7 @@ ULONG GenericInformationList::InsertSorted( GenericInformation *pInfo,
if ( sCandidate.ToUpperAscii() == sKey ) {
// key allready exists in list
if ( bOverwrite )
- Replace( pInfo, ULONG(0)); // ### Laut NF scheint hier ein Memory Leak zu sein
+ Replace( pInfo, ULONG(0)); // ### Laut NF scheint hier ein Memory Leak zu sein
return 0;
}
else if ( sCandidate > sKey ) {
@@ -313,7 +313,7 @@ ULONG GenericInformationList::InsertSorted( GenericInformation *pInfo,
if ( sCandidate.ToUpperAscii() == sKey ) {
// key allready exists in list
if ( bOverwrite )
- Replace( pInfo, nActPos ); // ### Laut NF scheint hier ein Memory Leak zu sein
+ Replace( pInfo, nActPos ); // ### Laut NF scheint hier ein Memory Leak zu sein
return nActPos;
}
@@ -388,7 +388,7 @@ void GenericInformationList::RemoveInfo( GenericInformation *pInfo,
Remove( pInfo );
if ( bDelete )
delete pInfo;
-/* if ( Count() == 0 && pOwner ) // Leere Listen entfernen;
+/* if ( Count() == 0 && pOwner ) // Leere Listen entfernen;
{
SetOwner( NULL );
delete this;
@@ -398,7 +398,7 @@ void GenericInformationList::RemoveInfo( GenericInformation *pInfo,
GenericInformation* GenericInformationList::SetOwner( GenericInformation *pNewOwner )
{
GenericInformation *pOldOwner = pOwner;
- if ( pOwner ) // bei parent austragen;
+ if ( pOwner ) // bei parent austragen;
pOwner->SetSubList( NULL );
if ( pNewOwner )
pNewOwner->SetSubList( this );
diff --git a/tools/source/communi/parser.cxx b/tools/source/communi/parser.cxx
index 7841078ff042..2ca53475d88b 100644
--- a/tools/source/communi/parser.cxx
+++ b/tools/source/communi/parser.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -114,8 +114,8 @@ ByteString &InformationParser::ReadLine()
if ( nLevel ) {
sLine = "}";
fprintf( stdout, "Reached EOF parsing %s. Suplying extra '}'\n",ByteString( sStreamName, gsl_getSystemTextEncoding()).GetBuffer() );
- // nErrorCode = IP_UNEXPECTED_EOF;
- // nErrorLine = nActLine;
+ // nErrorCode = IP_UNEXPECTED_EOF;
+ // nErrorLine = nActLine;
}
else
sLine = "";
@@ -449,7 +449,7 @@ USHORT InformationParser::GetErrorCode()
ByteString &InformationParser::GetErrorText()
/*****************************************************************************/
{
- // sErrorText = pActStream->GetFileName();
+ // sErrorText = pActStream->GetFileName();
sErrorText = ByteString( sStreamName, gsl_getSystemTextEncoding());
sErrorText += ByteString( " (" );
sErrorText += ByteString::CreateFromInt64(nErrorLine);
diff --git a/tools/source/datetime/datetime.cxx b/tools/source/datetime/datetime.cxx
index 5cd659b957c9..05f03ab10f77 100644
--- a/tools/source/datetime/datetime.cxx
+++ b/tools/source/datetime/datetime.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -338,12 +338,12 @@ DateTime& DateTime::operator +=( double fTimeInDays )
fInt = ::rtl::math::approxFloor( fTimeInDays );
fFrac = fInt >= fTimeInDays ? 0.0 : fTimeInDays - fInt;
}
- Date::operator+=( long(fInt) ); // full days
+ Date::operator+=( long(fInt) ); // full days
if ( fFrac )
{
- Time aTime(0); // default ctor calls system time, we don't need that
- fFrac *= 24UL * 60 * 60 * 1000; // time expressed in milliseconds
- aTime.MakeTimeFromMS( long(fFrac) ); // method handles negative ms
+ Time aTime(0); // default ctor calls system time, we don't need that
+ fFrac *= 24UL * 60 * 60 * 1000; // time expressed in milliseconds
+ aTime.MakeTimeFromMS( long(fFrac) ); // method handles negative ms
operator+=( aTime );
}
return *this;
@@ -375,7 +375,7 @@ double operator -( const DateTime& rDateTime1, const DateTime& rDateTime2 )
if ( nTime )
{
double fTime = double(nTime);
- fTime /= 24UL * 60 * 60 * 1000; // convert from milliseconds to fraction
+ fTime /= 24UL * 60 * 60 * 1000; // convert from milliseconds to fraction
if ( nDays < 0 && fTime > 0.0 )
fTime = 1.0 - fTime;
return double(nDays) + fTime;
diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx
index eca1ab40b49e..2dcff7d30bd4 100644
--- a/tools/source/datetime/tdate.cxx
+++ b/tools/source/datetime/tdate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ struct tm *localtime_r(const time_t *timep, struct tm *buffer);
static USHORT aDaysInMonth[12] = { 31, 28, 31, 30, 31, 30,
31, 31, 30, 31, 30, 31 };
-#define MAX_DAYS 3636532
+#define MAX_DAYS 3636532
// =======================================================================
@@ -103,9 +103,9 @@ long Date::DateToDays( USHORT nDay, USHORT nMonth, USHORT nYear )
static void DaysToDate( long nDays,
USHORT& rDay, USHORT& rMonth, USHORT& rYear )
{
- long nTempDays;
- long i = 0;
- BOOL bCalc;
+ long nTempDays;
+ long i = 0;
+ BOOL bCalc;
do
{
@@ -163,12 +163,12 @@ Date::Date()
(((ULONG)aDateTime.wMonth)*100) +
(((ULONG)aDateTime.wYear)*10000);
#else
- time_t nTmpTime;
+ time_t nTmpTime;
struct tm aTime;
// Zeit ermitteln
nTmpTime = time( 0 );
-
+
// Datum zusammenbauen
if ( localtime_r( &nTmpTime, &aTime ) )
{
@@ -195,8 +195,8 @@ void Date::SetDay( USHORT nNewDay )
void Date::SetMonth( USHORT nNewMonth )
{
- ULONG nDay = GetDay();
- ULONG nYear = GetYear();
+ ULONG nDay = GetDay();
+ ULONG nYear = GetYear();
nDate = nDay + (((ULONG)(nNewMonth%100))*100) + (nYear*10000);
}
@@ -205,8 +205,8 @@ void Date::SetMonth( USHORT nNewMonth )
void Date::SetYear( USHORT nNewYear )
{
- ULONG nDay = GetDay();
- ULONG nMonth = GetMonth();
+ ULONG nDay = GetDay();
+ ULONG nMonth = GetMonth();
nDate = nDay + (nMonth*100) + (((ULONG)(nNewYear%10000))*10000);
}
@@ -305,12 +305,12 @@ USHORT Date::GetWeekOfYear( DayOfWeek eStartDay,
if ( nWeek == 53 )
{
// naechster x_Sonntag == erster x_Sonntag im neuen Jahr
- // == noch gleiche Woche
+ // == noch gleiche Woche
long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
nTempDays += 6 - (GetDayOfWeek()+(7-(short)eStartDay)) % 7;
- USHORT nDay;
- USHORT nMonth;
- USHORT nYear;
+ USHORT nDay;
+ USHORT nMonth;
+ USHORT nYear;
DaysToDate( nTempDays, nDay, nMonth, nYear );
nWeek = Date( nDay, nMonth, nYear ).GetWeekOfYear( eStartDay, nMinimumNumberOfDaysInWeek );
}
@@ -364,10 +364,10 @@ BOOL Date::IsValid() const
Date& Date::operator +=( long nDays )
{
- USHORT nDay;
- USHORT nMonth;
- USHORT nYear;
- long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
+ USHORT nDay;
+ USHORT nMonth;
+ USHORT nYear;
+ long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
nTempDays += nDays;
if ( nTempDays > MAX_DAYS )
@@ -387,10 +387,10 @@ Date& Date::operator +=( long nDays )
Date& Date::operator -=( long nDays )
{
- USHORT nDay;
- USHORT nMonth;
- USHORT nYear;
- long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
+ USHORT nDay;
+ USHORT nMonth;
+ USHORT nYear;
+ long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
nTempDays -= nDays;
if ( nTempDays > MAX_DAYS )
@@ -410,10 +410,10 @@ Date& Date::operator -=( long nDays )
Date& Date::operator ++()
{
- USHORT nDay;
- USHORT nMonth;
- USHORT nYear;
- long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
+ USHORT nDay;
+ USHORT nMonth;
+ USHORT nYear;
+ long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
if ( nTempDays < MAX_DAYS )
{
@@ -429,10 +429,10 @@ Date& Date::operator ++()
Date& Date::operator --()
{
- USHORT nDay;
- USHORT nMonth;
- USHORT nYear;
- long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
+ USHORT nDay;
+ USHORT nMonth;
+ USHORT nYear;
+ long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
if ( nTempDays > 1 )
{
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx
index 44a626284456..5a5cb33d08bb 100644
--- a/tools/source/datetime/ttime.cxx
+++ b/tools/source/datetime/ttime.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,13 +67,13 @@ static sal_Int32 TimeToSec100( const Time& rTime )
sal_Int32 nSec = rTime.GetSec();
sal_Int32 n100Sec = rTime.Get100Sec();
-// Wegen Interal Compiler Error bei MSC, etwas komplizierter
-// return (n100Sec + (nSec*100) + (nMin*60*100) + (nHour*60*60*100) * nSign);
+// Wegen Interal Compiler Error bei MSC, etwas komplizierter
+// return (n100Sec + (nSec*100) + (nMin*60*100) + (nHour*60*60*100) * nSign);
sal_Int32 nRet = n100Sec;
- nRet += nSec*100;
- nRet += nMin*60*100;
- nRet += nHour*60*60*100;
+ nRet += nSec*100;
+ nRet += nMin*60*100;
+ nRet += nHour*60*60*100;
return (nRet * nSign);
}
@@ -119,7 +119,7 @@ Time::Time()
(((sal_Int32)aDateTime.wSecond)*100) +
((sal_Int32)aDateTime.wMilliseconds/10);
#else
- time_t nTmpTime;
+ time_t nTmpTime;
struct tm aTime;
// Zeit ermitteln
@@ -149,12 +149,12 @@ Time::Time( const Time& rTime )
Time::Time( ULONG nHour, ULONG nMin, ULONG nSec, ULONG n100Sec )
{
// Zeit normalisieren
- nSec += n100Sec / 100;
+ nSec += n100Sec / 100;
n100Sec = n100Sec % 100;
- nMin += nSec / 60;
- nSec = nSec % 60;
- nHour += nMin / 60;
- nMin = nMin % 60;
+ nMin += nSec / 60;
+ nSec = nSec % 60;
+ nHour += nMin / 60;
+ nMin = nMin % 60;
// Zeit zusammenbauen
nTime = (sal_Int32)(n100Sec + (nSec*100) + (nMin*10000) + (nHour*1000000));
@@ -164,10 +164,10 @@ Time::Time( ULONG nHour, ULONG nMin, ULONG nSec, ULONG n100Sec )
void Time::SetHour( USHORT nNewHour )
{
- short nSign = (nTime >= 0) ? +1 : -1;
- sal_Int32 nMin = GetMin();
- sal_Int32 nSec = GetSec();
- sal_Int32 n100Sec = Get100Sec();
+ short nSign = (nTime >= 0) ? +1 : -1;
+ sal_Int32 nMin = GetMin();
+ sal_Int32 nSec = GetSec();
+ sal_Int32 n100Sec = Get100Sec();
nTime = (n100Sec + (nSec*100) + (nMin*10000) +
(((sal_Int32)nNewHour)*1000000)) * nSign;
@@ -177,10 +177,10 @@ void Time::SetHour( USHORT nNewHour )
void Time::SetMin( USHORT nNewMin )
{
- short nSign = (nTime >= 0) ? +1 : -1;
- sal_Int32 nHour = GetHour();
- sal_Int32 nSec = GetSec();
- sal_Int32 n100Sec = Get100Sec();
+ short nSign = (nTime >= 0) ? +1 : -1;
+ sal_Int32 nHour = GetHour();
+ sal_Int32 nSec = GetSec();
+ sal_Int32 n100Sec = Get100Sec();
// kein Ueberlauf
nNewMin = nNewMin % 60;
@@ -193,10 +193,10 @@ void Time::SetMin( USHORT nNewMin )
void Time::SetSec( USHORT nNewSec )
{
- short nSign = (nTime >= 0) ? +1 : -1;
- sal_Int32 nHour = GetHour();
- sal_Int32 nMin = GetMin();
- sal_Int32 n100Sec = Get100Sec();
+ short nSign = (nTime >= 0) ? +1 : -1;
+ sal_Int32 nHour = GetHour();
+ sal_Int32 nMin = GetMin();
+ sal_Int32 n100Sec = Get100Sec();
// kein Ueberlauf
nNewSec = nNewSec % 60;
@@ -209,10 +209,10 @@ void Time::SetSec( USHORT nNewSec )
void Time::Set100Sec( USHORT nNew100Sec )
{
- short nSign = (nTime >= 0) ? +1 : -1;
- sal_Int32 nHour = GetHour();
- sal_Int32 nMin = GetMin();
- sal_Int32 nSec = GetSec();
+ short nSign = (nTime >= 0) ? +1 : -1;
+ sal_Int32 nHour = GetHour();
+ sal_Int32 nMin = GetMin();
+ sal_Int32 nSec = GetSec();
// kein Ueberlauf
nNew100Sec = nNew100Sec % 100;
@@ -225,11 +225,11 @@ void Time::Set100Sec( USHORT nNew100Sec )
sal_Int32 Time::GetMSFromTime() const
{
- short nSign = (nTime >= 0) ? +1 : -1;
- sal_Int32 nHour = GetHour();
- sal_Int32 nMin = GetMin();
- sal_Int32 nSec = GetSec();
- sal_Int32 n100Sec = Get100Sec();
+ short nSign = (nTime >= 0) ? +1 : -1;
+ sal_Int32 nHour = GetHour();
+ sal_Int32 nMin = GetMin();
+ sal_Int32 nSec = GetSec();
+ sal_Int32 n100Sec = Get100Sec();
return (((nHour*3600000)+(nMin*60000)+(nSec*1000)+(n100Sec*10))*nSign);
}
@@ -255,7 +255,7 @@ void Time::MakeTimeFromMS( sal_Int32 nMS )
double Time::GetTimeInDays() const
{
- short nSign = (nTime >= 0) ? +1 : -1;
+ short nSign = (nTime >= 0) ? +1 : -1;
double nHour = GetHour();
double nMin = GetMin();
double nSec = GetSec();
@@ -336,7 +336,7 @@ Time Time::GetUTCOffset()
else
return Time( 0 );
#elif defined( WNT )
- TIME_ZONE_INFORMATION aTimeZone;
+ TIME_ZONE_INFORMATION aTimeZone;
aTimeZone.Bias = 0;
DWORD nTimeZoneRet = GetTimeZoneInformation( &aTimeZone );
sal_Int32 nTempTime = aTimeZone.Bias;
@@ -349,18 +349,18 @@ Time Time::GetUTCOffset()
aTime = -aTime;
return aTime;
#else
- static ULONG nCacheTicks = 0;
- static sal_Int32 nCacheSecOffset = -1;
- ULONG nTicks = Time::GetSystemTicks();
- time_t nTime;
- tm aTM;
- sal_Int32 nLocalTime;
- sal_Int32 nUTC;
- short nTempTime;
+ static ULONG nCacheTicks = 0;
+ static sal_Int32 nCacheSecOffset = -1;
+ ULONG nTicks = Time::GetSystemTicks();
+ time_t nTime;
+ tm aTM;
+ sal_Int32 nLocalTime;
+ sal_Int32 nUTC;
+ short nTempTime;
// Evt. Wert neu ermitteln
- if ( (nCacheSecOffset == -1) ||
- ((nTicks - nCacheTicks) > 360000) ||
+ if ( (nCacheSecOffset == -1) ||
+ ((nTicks - nCacheTicks) > 360000) ||
( nTicks < nCacheTicks ) // handle overflow
)
{
@@ -425,16 +425,16 @@ ULONG Time::GetProcessTicks()
DosQuerySysInfo( QSV_MS_COUNT, QSV_MS_COUNT, &nClock, sizeof( nClock ) );
return (ULONG)nClock;
#else
- static ULONG nImplTicksPerSecond = 0;
- static double dImplTicksPerSecond;
- static double dImplTicksULONGMAX;
- ULONG nTicks = (ULONG)clock();
+ static ULONG nImplTicksPerSecond = 0;
+ static double dImplTicksPerSecond;
+ static double dImplTicksULONGMAX;
+ ULONG nTicks = (ULONG)clock();
if ( !nImplTicksPerSecond )
{
nImplTicksPerSecond = CLOCKS_PER_SEC;
dImplTicksPerSecond = nImplTicksPerSecond;
- dImplTicksULONGMAX = (double)(ULONG)ULONG_MAX;
+ dImplTicksULONGMAX = (double)(ULONG)ULONG_MAX;
}
double fTicks = nTicks;
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index 7972c76dca59..c8234b4973d6 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -1208,7 +1208,7 @@ void* DbgFunc( USHORT nAction, void* pParam )
case DBG_FUNC_SAVEDATA:
{
const DbgData* pData = static_cast< const DbgData* >( pParam );
-
+
sal_Char aBuf[ 4096 ];
DbgGetDbgFileName( aBuf, sizeof( aBuf ) );
FILETYPE pIniFile = FileOpen( aBuf, "w" );
diff --git a/tools/source/debug/stcktree.cxx b/tools/source/debug/stcktree.cxx
index aa32a26c0184..93e4bde49a2a 100644
--- a/tools/source/debug/stcktree.cxx
+++ b/tools/source/debug/stcktree.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,32 +39,32 @@
struct ImpDbgStackTree
{
- ImpDbgStackTree* pLeft_;
- ImpDbgStackTree* pRight_;
- ImpDbgStackTree* pCaller_;
- ImpDbgStackTree* pSub_;
- ULONG nIP_;
- ULONG nBytesLeak_;
- ULONG nBytesPeak_;
- ULONG nBytes_;
- ULONG nCountLeak_;
- ULONG nCountPeak_;
- ULONG nCount_;
- ULONG nMax_;
- ULONG nMin_;
+ ImpDbgStackTree* pLeft_;
+ ImpDbgStackTree* pRight_;
+ ImpDbgStackTree* pCaller_;
+ ImpDbgStackTree* pSub_;
+ ULONG nIP_;
+ ULONG nBytesLeak_;
+ ULONG nBytesPeak_;
+ ULONG nBytes_;
+ ULONG nCountLeak_;
+ ULONG nCountPeak_;
+ ULONG nCount_;
+ ULONG nMax_;
+ ULONG nMin_;
ImpDbgStackTree( ImpDbgStackTree* pSub, ULONG nIP );
~ImpDbgStackTree();
- ImpDbgStackTree* Add( ULONG nAlloc, ULONG* pBP, ULONG nIP );
- void Print( int nLevel, ULONG nCount, ULONG nCountLeak );
- void Print( int nLevel );
+ ImpDbgStackTree* Add( ULONG nAlloc, ULONG* pBP, ULONG nIP );
+ void Print( int nLevel, ULONG nCount, ULONG nCountLeak );
+ void Print( int nLevel );
};
-static ImpDbgStackTree* pImpDbgStackTreeRoot = NULL;
-static ULONG* pImpDbgStackTreeBP = NULL;
-static ULONG nImpDbgStackTreeMain = 0;
-static int nImpDbgStackTreeSem = 0;
+static ImpDbgStackTree* pImpDbgStackTreeRoot = NULL;
+static ULONG* pImpDbgStackTreeBP = NULL;
+static ULONG nImpDbgStackTreeMain = 0;
+static int nImpDbgStackTreeSem = 0;
// -----------------------------------------------------------------------
@@ -157,7 +157,7 @@ ImpDbgStackTree* ImpDbgStackTree::Add( ULONG nAlloc, ULONG *pBP, ULONG nIP )
nCountLeak_++;
if ( nCountLeak_ > nCountPeak_ )
nCountPeak_ = nCountLeak_;
- nBytes_ += nAlloc;
+ nBytes_ += nAlloc;
nBytesLeak_ += nAlloc;
if ( nBytesLeak_ > nBytesPeak_ )
nBytesPeak_ = nBytesLeak_;
@@ -194,7 +194,7 @@ void DbgStartStackTree()
ULONG* pBP;
__asm mov pBP, ebp;
- pImpDbgStackTreeBP = (ULONG*)pBP[0];
+ pImpDbgStackTreeBP = (ULONG*)pBP[0];
nImpDbgStackTreeMain = pImpDbgStackTreeBP[1];
}
}
@@ -278,8 +278,8 @@ void DbgFreeStackTree( void* pVoid, ULONG nAlloc )
{
if ( p->nBytesLeak_ > p->nMax_ * p->nCountLeak_ )
{
- nAlloc += p->nBytesLeak_ - p->nMax_ * p->nCountLeak_;
- p->nBytesLeak_ = p->nMax_ * p->nCountLeak_;
+ nAlloc += p->nBytesLeak_ - p->nMax_ * p->nCountLeak_;
+ p->nBytesLeak_ = p->nMax_ * p->nCountLeak_;
}
}
diff --git a/tools/source/fsys/comdep.cxx b/tools/source/fsys/comdep.cxx
index b1dd7342ed27..2278e8dd1357 100644
--- a/tools/source/fsys/comdep.cxx
+++ b/tools/source/fsys/comdep.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/fsys/comdep.hxx b/tools/source/fsys/comdep.hxx
index bcb3d6b89e00..286557167ae7 100644
--- a/tools/source/fsys/comdep.hxx
+++ b/tools/source/fsys/comdep.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,17 +69,17 @@ char *volumeid( const char* pPfad );
struct DirReader_Impl
{
- Dir* pDir;
+ Dir* pDir;
DIR* pDosDir;
dirent* pDosEntry;
DirEntry* pParent;
- String aPath;
+ String aPath;
ByteString aBypass;
BOOL bReady;
- BOOL bInUse;
+ BOOL bInUse;
DirReader_Impl( Dir &rDir )
- : pDir( &rDir ),
+ : pDir( &rDir ),
pDosEntry( 0 ),
pParent( 0 ),
aPath( GUI2FSYS(rDir.GetFull()) ),
@@ -120,18 +120,18 @@ struct DirReader_Impl
struct FileCopier_Impl
{
- FSysAction nActions; // was zu tun ist (Copy/Move/recur)
- Link aErrorLink; // bei Fehlern zu rufen
- ErrCode eErr; // aktueller Fehlercode im Error-Handler
- const DirEntry* pErrSource; // fuer Error-Handler falls Source-Fehler
- const DirEntry* pErrTarget; // fuer Error-Handler falls Target-Fehler
+ FSysAction nActions; // was zu tun ist (Copy/Move/recur)
+ Link aErrorLink; // bei Fehlern zu rufen
+ ErrCode eErr; // aktueller Fehlercode im Error-Handler
+ const DirEntry* pErrSource; // fuer Error-Handler falls Source-Fehler
+ const DirEntry* pErrTarget; // fuer Error-Handler falls Target-Fehler
FileCopier_Impl()
- : nActions( 0 ), eErr( 0 ),
+ : nActions( 0 ), eErr( 0 ),
pErrSource( 0 ), pErrTarget( 0 )
{}
FileCopier_Impl( const FileCopier_Impl &rOrig )
- : nActions( rOrig.nActions ), eErr( 0 ),
+ : nActions( rOrig.nActions ), eErr( 0 ),
pErrSource( 0 ), pErrTarget( 0 )
{}
@@ -148,11 +148,11 @@ struct FileCopier_Impl
#if defined WNT || defined OS2
BOOL IsRedirectable_Impl( const ByteString &rPath );
#else
-#define IsRedirectable_Impl( rPath ) TRUE
+#define IsRedirectable_Impl( rPath ) TRUE
#endif
//--------------------------------------------------------------------
-
+
#endif
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index ec167bacc846..debb0fa44ad5 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -546,7 +546,7 @@ FSysError DirEntry::ImpParseOs2Name( const ByteString& rPfad, FSysPathStyle eSty
FSysError DirEntry::ImpParseName( const ByteString& rbInitName,
FSysPathStyle eStyle )
{
- String rInitName( rbInitName, osl_getThreadTextEncoding() );
+ String rInitName( rbInitName, osl_getThreadTextEncoding() );
if ( eStyle == FSYS_STYLE_HOST )
eStyle = DEFSTYLE;
diff --git a/tools/source/fsys/filecopy.cxx b/tools/source/fsys/filecopy.cxx
index c846abefa8d2..826ffeab31f5 100644
--- a/tools/source/fsys/filecopy.cxx
+++ b/tools/source/fsys/filecopy.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,10 +74,10 @@ using namespace ::osl;
FileCopier::FileCopier() :
- nBytesTotal ( 0 ),
+ nBytesTotal ( 0 ),
nBytesCopied( 0 ),
- nBlockSize ( 4096 ),
- pImp ( new FileCopier_Impl )
+ nBlockSize ( 4096 ),
+ pImp ( new FileCopier_Impl )
{
}
@@ -86,12 +86,12 @@ FileCopier::FileCopier() :
FileCopier::FileCopier( const DirEntry& rSource, const DirEntry& rTarget ) :
- aSource ( rSource ),
- aTarget ( rTarget ),
- nBytesTotal ( 0 ),
+ aSource ( rSource ),
+ aTarget ( rTarget ),
+ nBytesTotal ( 0 ),
nBytesCopied( 0 ),
- nBlockSize ( 4096 ),
- pImp ( new FileCopier_Impl )
+ nBlockSize ( 4096 ),
+ pImp ( new FileCopier_Impl )
{
}
@@ -100,13 +100,13 @@ FileCopier::FileCopier( const DirEntry& rSource, const DirEntry& rTarget ) :
FileCopier::FileCopier( const FileCopier& rCopier ) :
- aSource ( rCopier.aSource ),
- aTarget ( rCopier.aTarget ),
- nBytesTotal ( 0 ),
- nBytesCopied ( 0 ),
- aProgressLink ( rCopier.aProgressLink ),
- nBlockSize ( 4096 ),
- pImp ( new FileCopier_Impl )
+ aSource ( rCopier.aSource ),
+ aTarget ( rCopier.aTarget ),
+ nBytesTotal ( 0 ),
+ nBytesCopied ( 0 ),
+ aProgressLink ( rCopier.aProgressLink ),
+ nBlockSize ( 4096 ),
+ pImp ( new FileCopier_Impl )
{
}
@@ -413,10 +413,10 @@ FSysError FileCopier::DoCopy_Impl(
if ( FSYS_ERR_OK == ERRCODE_TOERROR(eRet) )
{
- WIN32_FIND_DATA fdSource;
+ WIN32_FIND_DATA fdSource;
ByteString aFullSource(aSource.GetFull(), osl_getThreadTextEncoding());
ByteString aFullTarget(aTgt.GetFull(), osl_getThreadTextEncoding());
- HANDLE hFind = FindFirstFile( aFullSource.GetBuffer() , &fdSource );
+ HANDLE hFind = FindFirstFile( aFullSource.GetBuffer() , &fdSource );
if ( hFind != INVALID_HANDLE_VALUE )
{
FindClose( hFind );
diff --git a/tools/source/fsys/fstat.cxx b/tools/source/fsys/fstat.cxx
index 616124b048c9..468fdb6082ea 100644
--- a/tools/source/fsys/fstat.cxx
+++ b/tools/source/fsys/fstat.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@
*************************************************************************/
FileStat::FileStat()
-: // don't use Default-Ctors!
+: // don't use Default-Ctors!
aDateCreated( ULONG(0) ),
aTimeCreated( ULONG(0) ),
aDateModified( ULONG(0) ),
@@ -79,7 +79,7 @@ FileStat::FileStat()
*************************************************************************/
FileStat::FileStat( const DirEntry& rDirEntry, FSysAccess nAccess )
-: // don't use Default-Ctors!
+: // don't use Default-Ctors!
aDateCreated( ULONG(0) ),
aTimeCreated( ULONG(0) ),
aDateModified( ULONG(0) ),
@@ -288,7 +288,7 @@ ULONG FileStat::SetReadOnlyFlag( const DirEntry &rEntry, BOOL bRO )
|*
|* FileStat::SetDateTime
|*
-|* Ersterstellung PB 27.06.97
+|* Ersterstellung PB 27.06.97
|* Letzte Aenderung
|*
*************************************************************************/
@@ -320,28 +320,28 @@ void FileStat::SetDateTime( const String& rFileName,
if ( nDiff > 0 )
{
- aNewTime += aDiff; // Stundenkorrektur
+ aNewTime += aDiff; // Stundenkorrektur
// bei "Uberlauf korrigieren
if ( aNewTime >= Time( 24, 0 ) )
aNewTime -= Time( 24, 0 );
// Tages"uberlauf?
- if ( aOldTime == Time( 0, 0 ) || // 00:00 -> 01:00
- aNewTime < aOldTime ) // 23:00 -> 00:00 | 01:00 ...
+ if ( aOldTime == Time( 0, 0 ) || // 00:00 -> 01:00
+ aNewTime < aOldTime ) // 23:00 -> 00:00 | 01:00 ...
aNewDate++;
}
else if ( nDiff < 0 )
{
- aNewTime -= aDiff; // Stundenkorrektur
+ aNewTime -= aDiff; // Stundenkorrektur
// negative Zeit (-1:00) korrigieren: 23:00
if (aNewTime < Time( 0, 0 ) )
aNewTime += Time( 24, 0 );
// Tagesunterlauf ?
- if ( aOldTime == Time( 0, 0 ) || // 00:00 -> 23:00
- aNewTime > aOldTime ) // 01:00 -> 23:00 | 22:00 ...
+ if ( aOldTime == Time( 0, 0 ) || // 00:00 -> 23:00
+ aNewTime > aOldTime ) // 01:00 -> 23:00 | 22:00 ...
aNewDate--;
}
}
@@ -372,10 +372,10 @@ void FileStat::SetDateTime( const String& rFileName,
// open file
ULONG nAction = FILE_EXISTED;
HFILE hFile = 0;
- ULONG nFlags = OPEN_FLAGS_WRITE_THROUGH |
- OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE |
- OPEN_FLAGS_RANDOM | OPEN_FLAGS_NOINHERIT |
- OPEN_SHARE_DENYNONE | OPEN_ACCESS_READWRITE;
+ ULONG nFlags = OPEN_FLAGS_WRITE_THROUGH |
+ OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE |
+ OPEN_FLAGS_RANDOM | OPEN_FLAGS_NOINHERIT |
+ OPEN_SHARE_DENYNONE | OPEN_ACCESS_READWRITE;
APIRET nRet = DosOpen((PSZ)aFileName.GetBuffer(), &hFile, (PULONG)&nAction,
0/*size*/, FILE_NORMAL,
diff --git a/tools/source/fsys/os2.cxx b/tools/source/fsys/os2.cxx
index c552720fb2c8..ca57f7dd9ca9 100644
--- a/tools/source/fsys/os2.cxx
+++ b/tools/source/fsys/os2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -181,7 +181,7 @@ BOOL DirEntry::ToAbs()
String DirEntry::GetVolume() const
{
DBG_CHKTHIS( DirEntry, ImpCheckDirEntry );
-
+
String aRet;
const DirEntry *pTop = ImpGetTopPtr();
ByteString aName = ByteString( pTop->aName ).ToLowerAscii();
@@ -266,7 +266,7 @@ USHORT DirReader_Impl::Init()
sDrive[0] = c;
sRoot[0] = c;
DirEntry* pDrive = new DirEntry( sDrive, FSYS_FLAG_VOLUME, FSYS_STYLE_HOST );
- if ( pDir->aNameMask.Matches( String( ByteString(sDrive), osl_getThreadTextEncoding()))
+ if ( pDir->aNameMask.Matches( String( ByteString(sDrive), osl_getThreadTextEncoding()))
&& aDriveMap[c-'a'].nKind != FSYS_KIND_UNKNOWN )
{
if ( pDir->pStatLst ) //Status fuer Sort gewuenscht?
@@ -314,8 +314,8 @@ USHORT DirReader_Impl::Read()
{
DirEntryFlag eFlag =
0 == strcmp( pDosEntry->d_name, "." ) ? FSYS_FLAG_CURRENT
- : 0 == strcmp( pDosEntry->d_name, ".." ) ? FSYS_FLAG_PARENT
- : FSYS_FLAG_NORMAL;
+ : 0 == strcmp( pDosEntry->d_name, ".." ) ? FSYS_FLAG_PARENT
+ : FSYS_FLAG_NORMAL;
DirEntry *pTemp = new DirEntry( ByteString(pDosEntry->d_name), eFlag, FSYS_STYLE_UNX );
if ( pParent )
pTemp->ImpChangeParent( new DirEntry( *pParent ), FALSE);
@@ -655,10 +655,10 @@ void CreateDriveMapImpl()
aDriveMap[2].nKind = FSYS_KIND_FIXED;
aDriveMap[2].nStyle = FSYS_STYLE_FAT;
#else
- FSQBUFFER_ aBuf;
+ FSQBUFFER_ aBuf;
ULONG nBufLen;
APIRET nRet;
- USHORT nDrive;
+ USHORT nDrive;
// disable error-boxes for hard-errors
DosError(FERR_DISABLEHARDERR);
@@ -802,7 +802,7 @@ FSysPathStyle DirEntry::GetPathStyle( const String &rDevice )
|*
|* Beschreibung
|* Ersterstellung TPF 26.02.1999
-|* Letzte Aenderung
+|* Letzte Aenderung
|*
*************************************************************************/
@@ -810,7 +810,7 @@ BOOL DirEntry::IsCaseSensitive( FSysPathStyle eFormatter ) const
{
if (eFormatter==FSYS_STYLE_HOST)
{
- if (GetPathStyle(GetDevice().GetName()) == FSYS_STYLE_UNX)
+ if (GetPathStyle(GetDevice().GetName()) == FSYS_STYLE_UNX)
{
return TRUE;
}
@@ -821,7 +821,7 @@ BOOL DirEntry::IsCaseSensitive( FSysPathStyle eFormatter ) const
}
else
{
- BOOL isCaseSensitive = FALSE; // ich bin unter OS2, also ist der default im Zweifelsfall case insensitiv
+ BOOL isCaseSensitive = FALSE; // ich bin unter OS2, also ist der default im Zweifelsfall case insensitiv
switch ( eFormatter )
{
case FSYS_STYLE_MAC:
@@ -843,7 +843,7 @@ BOOL DirEntry::IsCaseSensitive( FSysPathStyle eFormatter ) const
}
default:
{
- isCaseSensitive = FALSE; // ich bin unter OS2, also ist der default im Zweifelsfall case insensitiv
+ isCaseSensitive = FALSE; // ich bin unter OS2, also ist der default im Zweifelsfall case insensitiv
break;
}
}
diff --git a/tools/source/fsys/os2.hxx b/tools/source/fsys/os2.hxx
index 8fd984692ac1..be74befe36b5 100644
--- a/tools/source/fsys/os2.hxx
+++ b/tools/source/fsys/os2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ String ToLowerImpl( const String& );
#define DEFSTYLE FSYS_STYLE_OS2
#define MKDIR( p ) mkdir( (unsigned char*) p )
-#define CMP_LOWER(s) ( s.ToLowerAscii() )
+#define CMP_LOWER(s) ( s.ToLowerAscii() )
#define START_DRV 'a'
diff --git a/tools/source/fsys/tdir.cxx b/tools/source/fsys/tdir.cxx
index 7b9d4936355e..93b67d9c7b2d 100644
--- a/tools/source/fsys/tdir.cxx
+++ b/tools/source/fsys/tdir.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -321,7 +321,7 @@ void Dir::Reset()
else
pLst = new DirEntryList();
- // Alte File-Stat's Loeschen
+ // Alte File-Stat's Loeschen
if ( pStatLst )
{
//Erstmal die alten Loeschen
@@ -600,7 +600,7 @@ FSysError Dir::ImpSetSort( std::va_list pArgs, int nFirstSort )
} while ( !bLast );
va_end( pArgs );
- delete pSort; // JP:6.3.00 - delete the initial pointer
+ delete pSort; // JP:6.3.00 - delete the initial pointer
//Enfernen der alten Sort-Elemente
if ( pSortLst )
diff --git a/tools/source/fsys/tempfile.cxx b/tools/source/fsys/tempfile.cxx
index 078e91834975..36e06b05bf17 100644
--- a/tools/source/fsys/tempfile.cxx
+++ b/tools/source/fsys/tempfile.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/fsys/unx.cxx b/tools/source/fsys/unx.cxx
index 0ed7dd4d8f8d..b1abae49d8b0 100644
--- a/tools/source/fsys/unx.cxx
+++ b/tools/source/fsys/unx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@
#include <sys/mntctl.h>
#include <sys/vmount.h>
extern "C" int mntctl( int cmd, size_t size, char* buf );
-#elif defined(NETBSD)
+#elif defined(NETBSD)
#include <sys/mount.h>
#elif defined(FREEBSD) || defined(MACOSX) || defined(OPENBSD)
#elif defined DECUNIX
@@ -72,11 +72,11 @@ DECLARE_LIST( FileStatList, FileStat* )
#if defined SOLARIS || defined SINIX
#define MOUNTSPECIAL mnt_special
-#define MOUNTPOINT mnt_mountp
+#define MOUNTPOINT mnt_mountp
#define MOUNTOPTS mnt_mntopts
#define MOUNTFS mnt_fstype
#elif defined SCO
-#define MNTTAB "/etc/mnttab"
+#define MNTTAB "/etc/mnttab"
#define MOUNTSPECIAL mt_dev
#define MOUNTPOINT mt_filsys
#else
@@ -96,7 +96,7 @@ struct mymnttab
#if defined(NETBSD) || defined(FREEBSD) || defined(MACOSX) || \
- defined(OPENBSD)
+ defined(OPENBSD)
BOOL GetMountEntry(dev_t /* dev */, struct mymnttab * /* mytab */ )
{
DBG_WARNING( "Sorry, not implemented: GetMountEntry" );
@@ -183,29 +183,29 @@ static BOOL GetMountEntry(dev_t dev, struct mymnttab *mytab)
if ((stat (mnt->MOUNTPOINT, &buf) == -1) || (buf.st_dev != dev))
continue;
}
-# ifdef LINUX
+# ifdef LINUX
/* #61624# File mit setmntent oeffnen und mit fclose schliessen stoesst
bei der glibc-2.1 auf wenig Gegenliebe */
endmntent( fp );
-# else
+# else
fclose (fp);
-# endif
+# endif
mytab->mountspecial = mnt->MOUNTSPECIAL;
- mytab->mountpoint = mnt->MOUNTPOINT;
- mytab->mountdevice = dev;
+ mytab->mountpoint = mnt->MOUNTPOINT;
+ mytab->mountdevice = dev;
#ifndef SCO
mytab->mymnttab_filesystem = mnt->MOUNTFS;
#else
- mytab->mymnttab_filesystem = "ext2"; //default ist case sensitiv unter unix
+ mytab->mymnttab_filesystem = "ext2"; //default ist case sensitiv unter unix
#endif
return TRUE;
}
-# ifdef LINUX
+# ifdef LINUX
/* #61624# dito */
endmntent( fp );
-# else
+# else
fclose (fp);
-# endif
+# endif
return FALSE;
}
@@ -215,7 +215,7 @@ static BOOL GetMountEntry(dev_t dev, struct mymnttab *mytab)
|*
|* DirEntry::IsCaseSensitive()
|*
-|* Beschreibung
+|* Beschreibung
|* Ersterstellung TPF 25.02.1999
|* Letzte Aenderung TPF 25.02.1999
|*
@@ -237,7 +237,7 @@ BOOL DirEntry::IsCaseSensitive( FSysPathStyle eFormatter ) const
{
if (aPath.Level() == 1)
{
- return TRUE; // ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
+ return TRUE; // ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
}
aPath = aPath [1];
}
@@ -248,7 +248,7 @@ BOOL DirEntry::IsCaseSensitive( FSysPathStyle eFormatter ) const
(fsmnt.mymnttab_filesystem.CompareTo("umsdos")==COMPARE_EQUAL) ||
(fsmnt.mymnttab_filesystem.CompareTo("vfat")==COMPARE_EQUAL) ||
(fsmnt.mymnttab_filesystem.CompareTo("hpfs")==COMPARE_EQUAL) ||
- (fsmnt.mymnttab_filesystem.CompareTo("smb") ==COMPARE_EQUAL) ||
+ (fsmnt.mymnttab_filesystem.CompareTo("smb") ==COMPARE_EQUAL) ||
(fsmnt.mymnttab_filesystem.CompareTo("ncpfs")==COMPARE_EQUAL))
{
return FALSE;
@@ -261,7 +261,7 @@ BOOL DirEntry::IsCaseSensitive( FSysPathStyle eFormatter ) const
}
else
{
- BOOL isCaseSensitive = TRUE; // ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
+ BOOL isCaseSensitive = TRUE; // ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
switch ( eFormatter )
{
case FSYS_STYLE_MAC:
@@ -283,7 +283,7 @@ BOOL DirEntry::IsCaseSensitive( FSysPathStyle eFormatter ) const
}
default:
{
- isCaseSensitive = TRUE; // ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
+ isCaseSensitive = TRUE; // ich bin unter UNIX, also ist der default im Zweifelsfall case sensitiv
break;
}
}
@@ -345,8 +345,8 @@ String DirEntry::GetVolume() const
}
mymnttab &rMnt = mymnt::get();
return ((buf.st_dev == rMnt.mountdevice ||
- GetMountEntry(buf.st_dev, &rMnt)) ?
- String(rMnt.mountspecial, osl_getThreadTextEncoding()) :
+ GetMountEntry(buf.st_dev, &rMnt)) ?
+ String(rMnt.mountspecial, osl_getThreadTextEncoding()) :
String());
}
@@ -366,8 +366,8 @@ DirEntry DirEntry::GetDevice() const
}
mymnttab &rMnt = mymnt::get();
return ((buf.st_dev == rMnt.mountdevice ||
- GetMountEntry(buf.st_dev, &rMnt)) ?
- String( rMnt.mountpoint, osl_getThreadTextEncoding()) :
+ GetMountEntry(buf.st_dev, &rMnt)) ?
+ String( rMnt.mountpoint, osl_getThreadTextEncoding()) :
String());
}
@@ -435,8 +435,8 @@ USHORT DirReader_Impl::Read()
{
DirEntryFlag eFlag =
0 == strcmp( pDosEntry->d_name, "." ) ? FSYS_FLAG_CURRENT
- : 0 == strcmp( pDosEntry->d_name, ".." ) ? FSYS_FLAG_PARENT
- : FSYS_FLAG_NORMAL;
+ : 0 == strcmp( pDosEntry->d_name, ".." ) ? FSYS_FLAG_PARENT
+ : FSYS_FLAG_NORMAL;
DirEntry *pTemp = new DirEntry( ByteString(pDosEntry->d_name), eFlag, FSYS_STYLE_UNX );
if ( pParent )
pTemp->ImpChangeParent( new DirEntry( *pParent ), FALSE);
@@ -610,7 +610,7 @@ FSysPathStyle DirEntry::GetPathStyle( const String & )
|*
|* FileStat::SetDateTime
|*
-|* Ersterstellung PB 27.06.97
+|* Ersterstellung PB 27.06.97
|* Letzte Aenderung
|*
*************************************************************************/
@@ -620,8 +620,8 @@ void FileStat::SetDateTime( const String& rFileName,
{
tm times;
- times.tm_year = rNewDateTime.GetYear() - 1900; // 1997 -> 97
- times.tm_mon = rNewDateTime.GetMonth() - 1; // 0 == Januar!
+ times.tm_year = rNewDateTime.GetYear() - 1900; // 1997 -> 97
+ times.tm_mon = rNewDateTime.GetMonth() - 1; // 0 == Januar!
times.tm_mday = rNewDateTime.GetDay();
times.tm_hour = rNewDateTime.GetHour();
diff --git a/tools/source/fsys/unx.hxx b/tools/source/fsys/unx.hxx
index bb87f157069d..0436c9284006 100644
--- a/tools/source/fsys/unx.hxx
+++ b/tools/source/fsys/unx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@
#define DEFSTYLE FSYS_STYLE_BSD
#endif
-#define CMP_LOWER(s) (s)
+#define CMP_LOWER(s) (s)
#define TEMPNAME() tmpnam(0)
#define LOWER(aString) (aString.Lower())
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 68997ac1b778..1f4b67518afe 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ using namespace com::sun;
//============================================================================
//
-// INetURLObject
+// INetURLObject
//
//============================================================================
@@ -489,16 +489,16 @@ enum
static sal_uInt32 const aMustEncodeMap[128]
= { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-/* */ PY,
-/* ! */ PC+PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
-/* " */ PU+PV +PY,
-/* # */ PU,
-/* $ */ PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
-/* % */ PU,
+/* */ PY,
+/* ! */ PC+PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
+/* " */ PU+PV +PY,
+/* # */ PU,
+/* $ */ PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
+/* % */ PU,
/* & */ PA+PB+PC+PD+PE +PH+PI+PJ+PK+PL+PM+PN+PO+PP +PR+PS+PT+PU+PV+PW+PX +PZ+P1+P2,
-/* ' */ PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
-/* ( */ PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
-/* ) */ PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
+/* ' */ PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
+/* ( */ PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
+/* ) */ PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* * */ PA+PB+PC+PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* + */ PA+PB+PC+PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX +PZ+P1+P2,
/* , */ PA+PB+PC+PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW +PZ+P1+P2,
@@ -515,13 +515,13 @@ static sal_uInt32 const aMustEncodeMap[128]
/* 7 */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* 8 */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* 9 */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
-/* : */ PB+PC +PH+PI+PJ +PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX +PZ+P1+P2,
-/* ; */ PC+PD +PI+PJ+PK+PL+PM +PO+PP+PQ+PR +PT+PU +PW +PZ+P1+P2,
-/* < */ PC +PO+PP +PU+PV +PY,
+/* : */ PB+PC +PH+PI+PJ +PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX +PZ+P1+P2,
+/* ; */ PC+PD +PI+PJ+PK+PL+PM +PO+PP+PQ+PR +PT+PU +PW +PZ+P1+P2,
+/* < */ PC +PO+PP +PU+PV +PY,
/* = */ PA+PB+PC+PD+PE +PH+PI+PJ+PK+PL+PM+PN +PR+PS+PT+PU+PV+PW +PZ+P1+P2,
-/* > */ PC +PO+PP +PU+PV +PY,
-/* ? */ PC +PL +PT+PU +PW+PX +PZ +P2,
-/* @ */ PC +PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1,
+/* > */ PC +PO+PP +PU+PV +PY,
+/* ? */ PC +PL +PT+PU +PW+PX +PZ +P2,
+/* @ */ PC +PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1,
/* A */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* B */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* C */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
@@ -548,12 +548,12 @@ static sal_uInt32 const aMustEncodeMap[128]
/* X */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* Y */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* Z */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
-/* [ */ PL +PU+PV +PX,
-/* \ */ PB +PU+PV +PY,
-/* ] */ PL +PU+PV +PX,
-/* ^ */ PU+PV +PY,
+/* [ */ PL +PU+PV +PX,
+/* \ */ PB +PU+PV +PY,
+/* ] */ PL +PU+PV +PX,
+/* ^ */ PU+PV +PY,
/* _ */ PA+PB+PC+PD+PE +PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
-/* ` */ PU+PV +PY,
+/* ` */ PU+PV +PY,
/* a */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* b */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* c */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
@@ -580,9 +580,9 @@ static sal_uInt32 const aMustEncodeMap[128]
/* x */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* y */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
/* z */ PA+PB+PC+PD+PE+PF+PG+PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ+P1+P2,
-/* { */ PU+PV +PY,
-/* | */ PB+PC +PN +PT+PU+PV +PY,
-/* } */ PU+PV +PY,
+/* { */ PU+PV +PY,
+/* | */ PB+PC +PN +PT+PU+PV +PY,
+/* } */ PU+PV +PY,
/* ~ */ PA+PB+PC+PD+PE +PH+PI+PJ+PK+PL+PM+PN+PO+PP+PQ+PR+PS+PT+PU+PV+PW+PX+PY+PZ +P2,
0 };
@@ -723,43 +723,43 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
// appropriate style bit is set in eStyle, if applicable)
// determines the scheme. The productions use the auxiliary rules
//
- // domain = label *("." label)
- // label = alphanum [*(alphanum / "-") alphanum]
- // alphanum = ALPHA / DIGIT
- // IPv6reference = "[" IPv6address "]"
- // IPv6address = hexpart [":" IPv4address]
- // IPv4address = 1*3DIGIT 3("." 1*3DIGIT)
- // hexpart = (hexseq ["::" [hexseq]]) / ("::" [hexseq])
- // hexseq = hex4 *(":" hex4)
- // hex4 = 1*4HEXDIG
- // UCS4 = <any UCS4 character>
+ // domain = label *("." label)
+ // label = alphanum [*(alphanum / "-") alphanum]
+ // alphanum = ALPHA / DIGIT
+ // IPv6reference = "[" IPv6address "]"
+ // IPv6address = hexpart [":" IPv4address]
+ // IPv4address = 1*3DIGIT 3("." 1*3DIGIT)
+ // hexpart = (hexseq ["::" [hexseq]]) / ("::" [hexseq])
+ // hexseq = hex4 *(":" hex4)
+ // hex4 = 1*4HEXDIG
+ // UCS4 = <any UCS4 character>
//
// 1st Production (known scheme):
- // <one of the known schemes, ignoring case> ":" *UCS4
+ // <one of the known schemes, ignoring case> ":" *UCS4
//
// 2nd Production (mailto):
- // domain "@" domain
+ // domain "@" domain
//
// 3rd Production (ftp):
- // "FTP" 2*("." label) ["/" *UCS4]
+ // "FTP" 2*("." label) ["/" *UCS4]
//
// 4th Production (http):
- // label 2*("." label) ["/" *UCS4]
+ // label 2*("." label) ["/" *UCS4]
//
// 5th Production (file):
- // "//" (domain / IPv6reference) ["/" *UCS4]
+ // "//" (domain / IPv6reference) ["/" *UCS4]
//
// 6th Production (Unix file):
// "/" *UCS4
//
// 7th Production (UNC file; FSYS_DOS only):
- // "\\" domain ["\" *UCS4]
+ // "\\" domain ["\" *UCS4]
//
// 8th Production (Unix-like DOS file; FSYS_DOS only):
- // ALPHA ":" ["/" *UCS4]
+ // ALPHA ":" ["/" *UCS4]
//
// 9th Production (DOS file; FSYS_DOS only):
- // ALPHA ":" ["\" *UCS4]
+ // ALPHA ":" ["\" *UCS4]
//
// For the 'non URL' file productions 6--9, the interpretation of
// the input as a (degenerate) URI is turned off, i.e., escape
@@ -993,23 +993,23 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
// determines the used notation. The productions use the
// auxiliary rules
//
- // domain = label *("." label)
- // label = alphanum [*(alphanum / "-") alphanum]
- // alphanum = ALPHA / DIGIT
- // IPv6reference = "[" IPv6address "]"
- // IPv6address = hexpart [":" IPv4address]
- // IPv4address = 1*3DIGIT 3("." 1*3DIGIT)
- // hexpart = (hexseq ["::" [hexseq]]) / ("::" [hexseq])
- // hexseq = hex4 *(":" hex4)
- // hex4 = 1*4HEXDIG
- // path = <any UCS4 character except "#">
- // UCS4 = <any UCS4 character>
+ // domain = label *("." label)
+ // label = alphanum [*(alphanum / "-") alphanum]
+ // alphanum = ALPHA / DIGIT
+ // IPv6reference = "[" IPv6address "]"
+ // IPv6address = hexpart [":" IPv4address]
+ // IPv4address = 1*3DIGIT 3("." 1*3DIGIT)
+ // hexpart = (hexseq ["::" [hexseq]]) / ("::" [hexseq])
+ // hexseq = hex4 *(":" hex4)
+ // hex4 = 1*4HEXDIG
+ // path = <any UCS4 character except "#">
+ // UCS4 = <any UCS4 character>
// 1st Production (URL):
- // "//" [domain / IPv6reference] ["/" *path]
- // ["#" *UCS4]
- // becomes
- // "file://" domain "/" *path ["#" *UCS4]
+ // "//" [domain / IPv6reference] ["/" *path]
+ // ["#" *UCS4]
+ // becomes
+ // "file://" domain "/" *path ["#" *UCS4]
if (pEnd - pPos >= 2 && pPos[0] == '/' && pPos[1] == '/')
{
sal_Unicode const * p1 = pPos + 2;
@@ -1033,20 +1033,20 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
// 2nd Production (MS IE generated 1; FSYS_DOS only):
// "//" ALPHA ":" ["/" *path] ["#" *UCS4]
- // becomes
- // "file:///" ALPHA ":" ["/" *path] ["#" *UCS4]
- // replacing "\" by "/" within <*path>
+ // becomes
+ // "file:///" ALPHA ":" ["/" *path] ["#" *UCS4]
+ // replacing "\" by "/" within <*path>
//
// 3rd Production (MS IE generated 2; FSYS_DOS only):
// "//" ALPHA ":" ["\" *path] ["#" *UCS4]
- // becomes
- // "file:///" ALPHA ":" ["/" *path] ["#" *UCS4]
- // replacing "\" by "/" within <*path>
+ // becomes
+ // "file:///" ALPHA ":" ["/" *path] ["#" *UCS4]
+ // replacing "\" by "/" within <*path>
//
// 4th Production (misscounted slashes):
- // "//" *path ["#" *UCS4]
- // becomes
- // "file:///" *path ["#" *UCS4]
+ // "//" *path ["#" *UCS4]
+ // becomes
+ // "file:///" *path ["#" *UCS4]
if (pEnd - pPos >= 2 && pPos[0] == '/' && pPos[1] == '/')
{
aSynAbsURIRef.
@@ -1064,9 +1064,9 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
}
// 5th Production (Unix):
- // "/" *path ["#" *UCS4]
- // becomes
- // "file:///" *path ["#" *UCS4]
+ // "/" *path ["#" *UCS4]
+ // becomes
+ // "file:///" *path ["#" *UCS4]
if (pPos < pEnd && *pPos == '/')
{
aSynAbsURIRef.
@@ -1075,10 +1075,10 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
}
// 6th Production (UNC; FSYS_DOS only):
- // "\\" domain ["\" *path] ["#" *UCS4]
- // becomes
- // "file://" domain "/" *path ["#" *UCS4]
- // replacing "\" by "/" within <*path>
+ // "\\" domain ["\" *path] ["#" *UCS4]
+ // becomes
+ // "file://" domain "/" *path ["#" *UCS4]
+ // replacing "\" by "/" within <*path>
if (eStyle & FSYS_DOS
&& pEnd - pPos >= 2
&& pPos[0] == '\\'
@@ -1109,16 +1109,16 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
}
// 7th Production (Unix-like DOS; FSYS_DOS only):
- // ALPHA ":" ["/" *path] ["#" *UCS4]
- // becomes
- // "file:///" ALPHA ":" ["/" *path] ["#" *UCS4]
- // replacing "\" by "/" within <*path>
+ // ALPHA ":" ["/" *path] ["#" *UCS4]
+ // becomes
+ // "file:///" ALPHA ":" ["/" *path] ["#" *UCS4]
+ // replacing "\" by "/" within <*path>
//
// 8th Production (DOS; FSYS_DOS only):
- // ALPHA ":" ["\" *path] ["#" *UCS4]
- // becomes
- // "file:///" ALPHA ":" ["/" *path] ["#" *UCS4]
- // replacing "\" by "/" within <*path>
+ // ALPHA ":" ["\" *path] ["#" *UCS4]
+ // becomes
+ // "file:///" ALPHA ":" ["/" *path] ["#" *UCS4]
+ // replacing "\" by "/" within <*path>
if (eStyle & FSYS_DOS
&& pEnd - pPos >= 2
&& INetMIME::isAlpha(pPos[0])
@@ -1135,20 +1135,20 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
}
// 9th Production (any):
- // *path ["#" *UCS4]
- // becomes
- // "file:///" *path ["#" *UCS4]
- // replacing the delimiter by "/" within <*path>. The
- // delimiter is that character from the set { "/", "\",
- // ":" } which appears most often in <*path> (if FSYS_UNX
+ // *path ["#" *UCS4]
+ // becomes
+ // "file:///" *path ["#" *UCS4]
+ // replacing the delimiter by "/" within <*path>. The
+ // delimiter is that character from the set { "/", "\",
+ // ":" } which appears most often in <*path> (if FSYS_UNX
// is not among the style bits, "/" is removed from the
// set; if FSYS_DOS is not among the style bits, "\" is
// removed from the set; if FSYS_MAC is not among the
// style bits, ":" is removed from the set). If two or
- // more characters appear the same number of times, the
- // character mentioned first in that set is chosen. If
- // the first character of <*path> is the delimiter, that
- // character is not copied.
+ // more characters appear the same number of times, the
+ // character mentioned first in that set is chosen. If
+ // the first character of <*path> is the delimiter, that
+ // character is not copied.
if (eStyle & (FSYS_UNX | FSYS_DOS | FSYS_MAC))
{
aSynAbsURIRef.
@@ -1224,7 +1224,7 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
pUserInfoBegin = pAuthority;
pUserInfoEnd = pPos;
}
- else if (getSchemeInfo().m_bHost)
+ else if (getSchemeInfo().m_bHost)
{
pHostPortBegin = pAuthority;
pHostPortEnd = pPos;
@@ -1280,7 +1280,7 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
appendUCS4(aSynUser, nUTF32, eEscapeType, bOctets, ePart,
cEscapePrefix, eCharset, false);
}
- m_aUser.set(aSynAbsURIRef, aSynUser.makeStringAndClear(),
+ m_aUser.set(aSynAbsURIRef, aSynUser.makeStringAndClear(),
aSynAbsURIRef.getLength());
if (bHasAuth)
{
@@ -1298,7 +1298,7 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
appendUCS4(aSynAuth, nUTF32, eEscapeType, bOctets,
ePart, cEscapePrefix, eCharset, false);
}
- m_aAuth.set(aSynAbsURIRef, aSynAuth.makeStringAndClear(),
+ m_aAuth.set(aSynAbsURIRef, aSynAuth.makeStringAndClear(),
aSynAbsURIRef.getLength());
}
else
@@ -1321,7 +1321,7 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
appendUCS4(aSynAuth, nUTF32, eEscapeType, bOctets,
ePart, cEscapePrefix, eCharset, false);
}
- m_aAuth.set(aSynAbsURIRef, aSynAuth.makeStringAndClear(),
+ m_aAuth.set(aSynAbsURIRef, aSynAuth.makeStringAndClear(),
aSynAbsURIRef.getLength());
}
}
@@ -1376,12 +1376,12 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
setInvalid();
return false;
}
- m_aHost.set(aSynAbsURIRef, aSynHost.makeStringAndClear(),
+ m_aHost.set(aSynAbsURIRef, aSynHost.makeStringAndClear(),
aSynAbsURIRef.getLength());
if (pPort != pHostPortEnd)
{
aSynAbsURIRef.append(sal_Unicode(':'));
- m_aPort.set(aSynAbsURIRef,
+ m_aPort.set(aSynAbsURIRef,
rtl::OUString(pPort + 1, pHostPortEnd - (pPort + 1)),
aSynAbsURIRef.getLength());
}
@@ -1399,7 +1399,7 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
setInvalid();
return false;
}
- m_aPath.set(aSynAbsURIRef, aSynPath.makeStringAndClear(),
+ m_aPath.set(aSynAbsURIRef, aSynPath.makeStringAndClear(),
aSynAbsURIRef.getLength());
// Parse ?<query>
@@ -1415,7 +1415,7 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
appendUCS4(aSynQuery, nUTF32, eEscapeType, bOctets,
PART_URIC, cEscapePrefix, eCharset, true);
}
- m_aQuery.set(aSynAbsURIRef, aSynQuery.makeStringAndClear(),
+ m_aQuery.set(aSynAbsURIRef, aSynQuery.makeStringAndClear(),
aSynAbsURIRef.getLength());
}
@@ -1432,7 +1432,7 @@ bool INetURLObject::setAbsURIRef(rtl::OUString const & rTheAbsURIRef,
appendUCS4(aSynFragment, nUTF32, eEscapeType, bOctets, PART_URIC,
cEscapePrefix, eCharset, true);
}
- m_aFragment.set(aSynAbsURIRef, aSynFragment.makeStringAndClear(),
+ m_aFragment.set(aSynAbsURIRef, aSynFragment.makeStringAndClear(),
aSynAbsURIRef.getLength());
}
@@ -1485,19 +1485,19 @@ bool INetURLObject::convertRelToAbs(rtl::OUString const & rTheRelURIRef,
// interfere with the syntax of relative URI references.) The
// productions use the auxiliary rules
//
- // domain = label *("." label)
- // label = alphanum [*(alphanum / "-") alphanum]
- // alphanum = ALPHA / DIGIT
- // UCS4 = <any UCS4 character>
+ // domain = label *("." label)
+ // label = alphanum [*(alphanum / "-") alphanum]
+ // alphanum = ALPHA / DIGIT
+ // UCS4 = <any UCS4 character>
//
// 1st Production (UNC file; FSYS_DOS only):
- // "\\" domain ["\" *UCS4]
+ // "\\" domain ["\" *UCS4]
//
// 2nd Production (Unix-like DOS file; FSYS_DOS only):
- // ALPHA ":" ["/" *UCS4]
+ // ALPHA ":" ["/" *UCS4]
//
// 3rd Production (DOS file; FSYS_DOS only):
- // ALPHA ":" ["\" *UCS4]
+ // ALPHA ":" ["\" *UCS4]
if (eStyle & FSYS_DOS)
{
bool bFSys = false;
@@ -1960,7 +1960,7 @@ bool INetURLObject::convertAbsToRel(rtl::OUString const & rTheAbsURIRef,
// path could go into the new relative URL instead, but some people don't
// like that):
rtl::OUStringBuffer aSynRelURIRef;
-// if (nMatch <= 1) nMatch = 0; else // see comment above
+// if (nMatch <= 1) nMatch = 0; else // see comment above
for (sal_Unicode const * p = pBasePathBegin + nMatch; p != pBasePathEnd;
++p)
{
@@ -2013,7 +2013,7 @@ bool INetURLObject::convertAbsToRel(rtl::OUString const & rTheAbsURIRef,
if (aSubject.m_aFragment.isPresent())
{
aSynRelURIRef.append(sal_Unicode('#'));
- aSynRelURIRef.append(aSubject.decode(aSubject.m_aFragment,
+ aSynRelURIRef.append(aSubject.decode(aSubject.m_aFragment,
cEscapePrefix, eDecodeMechanism, eCharset));
}
@@ -2040,7 +2040,7 @@ bool INetURLObject::convertIntToExt(rtl::OUString const & rTheIntURIRef,
bool bConvert = pPrefix && pPrefix->m_eKind == PrefixInfo::INTERNAL;
if (bConvert)
{
- aSynExtURIRef =
+ aSynExtURIRef =
aSynExtURIRef.replaceAt(0, p - pBegin,
rtl::OUString::createFromAscii(pPrefix->m_pTranslatedPrefix));
}
@@ -2068,7 +2068,7 @@ bool INetURLObject::convertExtToInt(rtl::OUString const & rTheExtURIRef,
bool bConvert = pPrefix && pPrefix->m_eKind == PrefixInfo::EXTERNAL;
if (bConvert)
{
- aSynIntURIRef =
+ aSynIntURIRef =
aSynIntURIRef.replaceAt(0, p - pBegin,
rtl::OUString::createFromAscii(pPrefix->m_pTranslatedPrefix));
}
@@ -2248,7 +2248,7 @@ bool INetURLObject::setUser(rtl::OUString const & rTheUser,
rtl_TextEncoding eCharset)
{
if (
- !getSchemeInfo().m_bUser ||
+ !getSchemeInfo().m_bUser ||
(m_eScheme == INET_PROT_IMAP && rTheUser.getLength() == 0)
)
{
@@ -2300,7 +2300,7 @@ bool INetURLObject::clearPassword()
return false;
if (m_aAuth.isPresent())
{
- lcl_Erase(m_aAbsURIRef, m_aAuth.getBegin() - 1,
+ lcl_Erase(m_aAbsURIRef, m_aAuth.getBegin() - 1,
m_aAuth.getLength() + 1);
sal_Int32 nDelta = m_aAuth.clear() - 1;
m_aHost += nDelta;
@@ -2313,7 +2313,7 @@ bool INetURLObject::clearPassword()
}
//============================================================================
-bool INetURLObject::setPassword(rtl::OUString const & rThePassword,
+bool INetURLObject::setPassword(rtl::OUString const & rThePassword,
bool bOctets, EncodeMechanism eMechanism,
rtl_TextEncoding eCharset)
{
@@ -3440,7 +3440,7 @@ bool INetURLObject::checkHierarchical() const {
}
//============================================================================
-bool INetURLObject::appendSegment(rtl::OUString const & rTheSegment,
+bool INetURLObject::appendSegment(rtl::OUString const & rTheSegment,
bool bOctets, EncodeMechanism eMechanism,
rtl_TextEncoding eCharset)
{
@@ -3579,7 +3579,7 @@ bool INetURLObject::insertName(rtl::OUString const & rTheName, bool bOctets,
}
aNewPath.append(pSuffixBegin, pPathEnd - pSuffixBegin);
- return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
+ return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
RTL_TEXTENCODING_UTF8);
}
@@ -3590,7 +3590,7 @@ bool INetURLObject::clearQuery()
return false;
if (m_aQuery.isPresent())
{
- lcl_Erase(m_aAbsURIRef, m_aQuery.getBegin() - 1,
+ lcl_Erase(m_aAbsURIRef, m_aQuery.getBegin() - 1,
m_aQuery.getLength() + 1);
m_aFragment += m_aQuery.clear() - 1;
}
@@ -3634,7 +3634,7 @@ bool INetURLObject::clearFragment()
}
//============================================================================
-bool INetURLObject::setFragment(rtl::OUString const & rTheFragment,
+bool INetURLObject::setFragment(rtl::OUString const & rTheFragment,
bool bOctets, EncodeMechanism eMechanism,
rtl_TextEncoding eCharset)
{
@@ -3776,7 +3776,7 @@ rtl::OUString INetURLObject::decode(sal_Unicode const * pBegin,
case ESCAPE_UTF32:
if (
- INetMIME::isUSASCII(nUTF32) &&
+ INetMIME::isUSASCII(nUTF32) &&
(
eMechanism == DECODE_TO_IURI ||
(
@@ -4216,7 +4216,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
setInvalid();
return false;
}
- m_aHost.set(m_aAbsURIRef, aSynHost.makeStringAndClear(),
+ m_aHost.set(m_aAbsURIRef, aSynHost.makeStringAndClear(),
m_aAbsURIRef.getLength());
if (nThePort != 0)
{
@@ -4250,7 +4250,7 @@ bool INetURLObject::ConcatData(INetProtocol eTheScheme,
setInvalid();
return false;
}
- m_aPath.set(m_aAbsURIRef, aSynPath.makeStringAndClear(),
+ m_aPath.set(m_aAbsURIRef, aSynPath.makeStringAndClear(),
m_aAbsURIRef.getLength());
return true;
}
@@ -4340,12 +4340,12 @@ rtl::OUString INetURLObject::GetHostPort(DecodeMechanism eMechanism,
// PROT_VND_SUN_STAR_PKG misuse m_aHost:
if (!getSchemeInfo().m_bHost)
return rtl::OUString();
- rtl::OUStringBuffer aHostPort(decode(m_aHost, getEscapePrefix(),
+ rtl::OUStringBuffer aHostPort(decode(m_aHost, getEscapePrefix(),
eMechanism, eCharset));
if (m_aPort.isPresent())
{
aHostPort.append(sal_Unicode(':'));
- aHostPort.append(decode(m_aPort, getEscapePrefix(),
+ aHostPort.append(decode(m_aPort, getEscapePrefix(),
eMechanism, eCharset));
}
return aHostPort.makeStringAndClear();
@@ -4453,7 +4453,7 @@ bool INetURLObject::removeSegment(sal_Int32 nIndex, bool bIgnoreFinalSlash)
aNewPath.append(sal_Unicode('/'));
}
- return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
+ return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
RTL_TEXTENCODING_UTF8);
}
@@ -4508,7 +4508,7 @@ bool INetURLObject::setName(rtl::OUString const & rTheName, sal_Int32 nIndex,
eMechanism, eCharset, true));
aNewPath.append(p, pPathEnd - p);
- return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
+ return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
RTL_TEXTENCODING_UTF8);
}
@@ -4592,7 +4592,7 @@ bool INetURLObject::setBase(rtl::OUString const & rTheBase, sal_Int32 nIndex,
eMechanism, eCharset, true));
aNewPath.append(pExtension, pPathEnd - pExtension);
- return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
+ return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
RTL_TEXTENCODING_UTF8);
}
@@ -4658,7 +4658,7 @@ bool INetURLObject::setExtension(rtl::OUString const & rTheExtension,
getEscapePrefix(), eMechanism, eCharset, true));
aNewPath.append(p, pPathEnd - p);
- return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
+ return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
RTL_TEXTENCODING_UTF8);
}
@@ -4690,7 +4690,7 @@ bool INetURLObject::removeExtension(sal_Int32 nIndex, bool bIgnoreFinalSlash)
aNewPath.append(pPathBegin, pExtension - pPathBegin);
aNewPath.append(p, pPathEnd - p);
- return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
+ return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
RTL_TEXTENCODING_UTF8);
}
@@ -4722,7 +4722,7 @@ bool INetURLObject::setFinalSlash()
aNewPath.append(pPathBegin, pPathEnd - pPathBegin);
aNewPath.append(sal_Unicode('/'));
- return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
+ return setPath(aNewPath.makeStringAndClear(), false, NOT_CANONIC,
RTL_TEXTENCODING_UTF8);
}
@@ -4763,7 +4763,7 @@ rtl::OUString INetURLObject::createFragment(rtl::OUString const & rText)
}
//============================================================================
-bool INetURLObject::setFSysPath(rtl::OUString const & rFSysPath,
+bool INetURLObject::setFSysPath(rtl::OUString const & rFSysPath,
FSysStyle eStyle)
{
sal_Unicode const * pFSysBegin = rFSysPath.getStr();
@@ -4949,7 +4949,7 @@ bool INetURLObject::setFSysPath(rtl::OUString const & rFSysPath,
break;
}
- INetURLObject aTemp(aSynAbsURIRef.makeStringAndClear(), WAS_ENCODED,
+ INetURLObject aTemp(aSynAbsURIRef.makeStringAndClear(), WAS_ENCODED,
RTL_TEXTENCODING_UTF8);
if (aTemp.HasError())
return false;
@@ -5562,7 +5562,7 @@ rtl::OUString INetURLObject::CutExtension(DecodeMechanism eMechanism,
{
rtl::OUString aTheExtension(getExtension(LAST_SEGMENT, false, eMechanism,
eCharset));
- return removeExtension(LAST_SEGMENT, false)
+ return removeExtension(LAST_SEGMENT, false)
? aTheExtension : rtl::OUString();
}
diff --git a/tools/source/fsys/wldcrd.cxx b/tools/source/fsys/wldcrd.cxx
index 4ba5a4e18173..183f07d3d6fb 100644
--- a/tools/source/fsys/wldcrd.cxx
+++ b/tools/source/fsys/wldcrd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -122,7 +122,7 @@ BOOL WildCard::Matches( const String& rString ) const
{
ByteString aTmpWild = aWildString;
ByteString aString(rString, osl_getThreadTextEncoding());
-
+
USHORT nSepPos;
if ( cSepSymbol != '\0' )
diff --git a/tools/source/fsys/wntmsc.cxx b/tools/source/fsys/wntmsc.cxx
index ea949873e95a..4d78b575cfdc 100644
--- a/tools/source/fsys/wntmsc.cxx
+++ b/tools/source/fsys/wntmsc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -528,21 +528,21 @@ void FileStat::ImpInit( void* p )
FILETIME aLocTime;
// use the last write date / time when the creation date / time isn't set
- if ( ( pDirEnt->ftCreationTime.dwLowDateTime == 0 ) &&
+ if ( ( pDirEnt->ftCreationTime.dwLowDateTime == 0 ) &&
( pDirEnt->ftCreationTime.dwHighDateTime == 0 ) )
{
pDirEnt->ftCreationTime.dwLowDateTime = pDirEnt->ftLastWriteTime.dwLowDateTime;
pDirEnt->ftCreationTime.dwHighDateTime = pDirEnt->ftLastWriteTime.dwHighDateTime;
}
-
+
// use the last write date / time when the last accessed date / time isn't set
- if ( ( pDirEnt->ftLastAccessTime.dwLowDateTime == 0 ) &&
+ if ( ( pDirEnt->ftLastAccessTime.dwLowDateTime == 0 ) &&
( pDirEnt->ftLastAccessTime.dwHighDateTime == 0 ) )
{
pDirEnt->ftLastAccessTime.dwLowDateTime = pDirEnt->ftLastWriteTime.dwLowDateTime;
pDirEnt->ftLastAccessTime.dwHighDateTime = pDirEnt->ftLastWriteTime.dwHighDateTime;
}
-
+
FileTimeToLocalFileTime( &pDirEnt->ftCreationTime, &aLocTime );
FileTimeToSystemTime( &aLocTime, &aSysTime );
aDateCreated = Date( aSysTime.wDay, aSysTime.wMonth, aSysTime.wYear );
diff --git a/tools/source/fsys/wntmsc.hxx b/tools/source/fsys/wntmsc.hxx
index 3990fa7714af..b4226a70ec08 100644
--- a/tools/source/fsys/wntmsc.hxx
+++ b/tools/source/fsys/wntmsc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -85,7 +85,7 @@ typedef struct
#define PATHDELIMITER ";"
#define DEFSTYLE FSYS_STYLE_NTFS
#define MKDIR( p ) mkdir( p )
-#define CMP_LOWER(s) ( ByteString(s).ToLowerAscii() )
+#define CMP_LOWER(s) ( ByteString(s).ToLowerAscii() )
#define START_DRV 'a'
diff --git a/tools/source/generic/b3dtrans.cxx b/tools/source/generic/b3dtrans.cxx
index 509c997419f9..434dafbf1c30 100644
--- a/tools/source/generic/b3dtrans.cxx
+++ b/tools/source/generic/b3dtrans.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -325,7 +325,7 @@ void B3dTransformationSet::CalcViewport()
{
// X vergroessern
fFactor = 1.0 / fActRatio;
- fRight *= fFactor;
+ fRight *= fFactor;
fLeft *= fFactor;
}
else
@@ -351,7 +351,7 @@ void B3dTransformationSet::CalcViewport()
{
// X verkleinern
fFactor = 1.0 / fActRatio;
- fRight *= fFactor;
+ fRight *= fFactor;
fLeft *= fFactor;
}
break;
@@ -799,7 +799,7 @@ const basegfx::B2DPoint B3dTransformationSet::TransTextureCoor(const basegfx::B2
\************************************************************************/
B3dViewport::B3dViewport()
-: B3dTransformationSet(),
+: B3dTransformationSet(),
aVRP(0, 0, 0),
aVPN(0, 0, 1),
aVUV(0, 1, 0)
@@ -854,7 +854,7 @@ void B3dViewport::CalcOrientation()
B3dCamera::B3dCamera(
const basegfx::B3DPoint& rPos, const basegfx::B3DVector& rLkAt,
double fFocLen, double fBnkAng, sal_Bool bUseFocLen)
-: B3dViewport(),
+: B3dViewport(),
aPosition(rPos),
aCorrectedPosition(rPos),
aLookAt(rLkAt),
diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx
index 22b5bbcdee5b..02ae5455b3c9 100644
--- a/tools/source/generic/bigint.cxx
+++ b/tools/source/generic/bigint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 88bfda6a1a04..2c8e21e8e135 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,9 +61,9 @@ Color::Color( const ResId& rResId )
pResMgr->Increment( sizeof( RSHEADER_TYPE ) );
// Daten laden
- USHORT nRed = pResMgr->ReadShort();
- USHORT nGreen = pResMgr->ReadShort();
- USHORT nBlue = pResMgr->ReadShort();
+ USHORT nRed = pResMgr->ReadShort();
+ USHORT nGreen = pResMgr->ReadShort();
+ USHORT nBlue = pResMgr->ReadShort();
// one more historical ULONG
pResMgr->ReadLong();
@@ -77,8 +77,8 @@ Color::Color( const ResId& rResId )
}
UINT8 Color::GetColorError( const Color& rCompareColor ) const
{
- const long nErrAbs = labs( (long) rCompareColor.GetRed() - GetRed() ) +
- labs( (long) rCompareColor.GetGreen() - GetGreen() ) +
+ const long nErrAbs = labs( (long) rCompareColor.GetRed() - GetRed() ) +
+ labs( (long) rCompareColor.GetGreen() - GetGreen() ) +
labs( (long) rCompareColor.GetBlue() - GetBlue() );
return (UINT8) _FRound( nErrAbs * 0.3333333333 );
@@ -145,14 +145,14 @@ void Color::Invert()
BOOL Color::IsDark() const
{
- return GetLuminance() <= 38;
+ return GetLuminance() <= 38;
}
// -----------------------------------------------------------------------
BOOL Color::IsBright() const
{
- return GetLuminance() >= 245;
+ return GetLuminance() >= 245;
}
// -----------------------------------------------------------------------
@@ -247,12 +247,12 @@ ColorData Color::HSBtoRGB( USHORT nHue, USHORT nSat, USHORT nBri )
switch( n )
{
- case 0: cR = nB; cG = c; cB = a; break;
- case 1: cR = b; cG = nB; cB = a; break;
- case 2: cR = a; cG = nB; cB = c; break;
- case 3: cR = a; cG = b; cB = nB; break;
- case 4: cR = c; cG = a; cB = nB; break;
- case 5: cR = nB; cG = a; cB = b; break;
+ case 0: cR = nB; cG = c; cB = a; break;
+ case 1: cR = b; cG = nB; cB = a; break;
+ case 2: cR = a; cG = nB; cB = c; break;
+ case 3: cR = a; cG = b; cB = nB; break;
+ case 4: cR = c; cG = a; cB = nB; break;
+ case 5: cR = nB; cG = a; cB = b; break;
}
}
@@ -285,13 +285,13 @@ SvStream& Color::Write( SvStream& rOStm, BOOL bNewFormat )
// -----------------------------------------------------------------------
-#define COL_NAME_USER ((USHORT)0x8000)
-#define COL_RED_1B ((USHORT)0x0001)
-#define COL_RED_2B ((USHORT)0x0002)
-#define COL_GREEN_1B ((USHORT)0x0010)
-#define COL_GREEN_2B ((USHORT)0x0020)
-#define COL_BLUE_1B ((USHORT)0x0100)
-#define COL_BLUE_2B ((USHORT)0x0200)
+#define COL_NAME_USER ((USHORT)0x8000)
+#define COL_RED_1B ((USHORT)0x0001)
+#define COL_RED_2B ((USHORT)0x0002)
+#define COL_GREEN_1B ((USHORT)0x0010)
+#define COL_GREEN_2B ((USHORT)0x0020)
+#define COL_BLUE_1B ((USHORT)0x0100)
+#define COL_BLUE_2B ((USHORT)0x0200)
// -----------------------------------------------------------------------
@@ -299,10 +299,10 @@ SvStream& operator>>( SvStream& rIStream, Color& rColor )
{
DBG_ASSERTWARNING( rIStream.GetVersion(), "Color::>> - Solar-Version not set on rIStream" );
- USHORT nColorName;
- USHORT nRed;
- USHORT nGreen;
- USHORT nBlue;
+ USHORT nColorName;
+ USHORT nRed;
+ USHORT nGreen;
+ USHORT nBlue;
rIStream >> nColorName;
@@ -310,12 +310,12 @@ SvStream& operator>>( SvStream& rIStream, Color& rColor )
{
if ( rIStream.GetCompressMode() == COMPRESSMODE_FULL )
{
- unsigned char cAry[6];
- USHORT i = 0;
+ unsigned char cAry[6];
+ USHORT i = 0;
- nRed = 0;
- nGreen = 0;
- nBlue = 0;
+ nRed = 0;
+ nGreen = 0;
+ nBlue = 0;
if ( nColorName & COL_RED_2B )
i += 2;
@@ -389,37 +389,37 @@ SvStream& operator>>( SvStream& rIStream, Color& rColor )
{
static ColorData aColAry[] =
{
- COL_BLACK, // COL_BLACK
- COL_BLUE, // COL_BLUE
- COL_GREEN, // COL_GREEN
- COL_CYAN, // COL_CYAN
- COL_RED, // COL_RED
- COL_MAGENTA, // COL_MAGENTA
- COL_BROWN, // COL_BROWN
- COL_GRAY, // COL_GRAY
- COL_LIGHTGRAY, // COL_LIGHTGRAY
- COL_LIGHTBLUE, // COL_LIGHTBLUE
- COL_LIGHTGREEN, // COL_LIGHTGREEN
- COL_LIGHTCYAN, // COL_LIGHTCYAN
- COL_LIGHTRED, // COL_LIGHTRED
- COL_LIGHTMAGENTA, // COL_LIGHTMAGENTA
- COL_YELLOW, // COL_YELLOW
- COL_WHITE, // COL_WHITE
- COL_WHITE, // COL_MENUBAR
- COL_BLACK, // COL_MENUBARTEXT
- COL_WHITE, // COL_POPUPMENU
- COL_BLACK, // COL_POPUPMENUTEXT
- COL_BLACK, // COL_WINDOWTEXT
- COL_WHITE, // COL_WINDOWWORKSPACE
- COL_BLACK, // COL_HIGHLIGHT
- COL_WHITE, // COL_HIGHLIGHTTEXT
- COL_BLACK, // COL_3DTEXT
- COL_LIGHTGRAY, // COL_3DFACE
- COL_WHITE, // COL_3DLIGHT
- COL_GRAY, // COL_3DSHADOW
- COL_LIGHTGRAY, // COL_SCROLLBAR
- COL_WHITE, // COL_FIELD
- COL_BLACK // COL_FIELDTEXT
+ COL_BLACK, // COL_BLACK
+ COL_BLUE, // COL_BLUE
+ COL_GREEN, // COL_GREEN
+ COL_CYAN, // COL_CYAN
+ COL_RED, // COL_RED
+ COL_MAGENTA, // COL_MAGENTA
+ COL_BROWN, // COL_BROWN
+ COL_GRAY, // COL_GRAY
+ COL_LIGHTGRAY, // COL_LIGHTGRAY
+ COL_LIGHTBLUE, // COL_LIGHTBLUE
+ COL_LIGHTGREEN, // COL_LIGHTGREEN
+ COL_LIGHTCYAN, // COL_LIGHTCYAN
+ COL_LIGHTRED, // COL_LIGHTRED
+ COL_LIGHTMAGENTA, // COL_LIGHTMAGENTA
+ COL_YELLOW, // COL_YELLOW
+ COL_WHITE, // COL_WHITE
+ COL_WHITE, // COL_MENUBAR
+ COL_BLACK, // COL_MENUBARTEXT
+ COL_WHITE, // COL_POPUPMENU
+ COL_BLACK, // COL_POPUPMENUTEXT
+ COL_BLACK, // COL_WINDOWTEXT
+ COL_WHITE, // COL_WINDOWWORKSPACE
+ COL_BLACK, // COL_HIGHLIGHT
+ COL_WHITE, // COL_HIGHLIGHTTEXT
+ COL_BLACK, // COL_3DTEXT
+ COL_LIGHTGRAY, // COL_3DFACE
+ COL_WHITE, // COL_3DLIGHT
+ COL_GRAY, // COL_3DSHADOW
+ COL_LIGHTGRAY, // COL_SCROLLBAR
+ COL_WHITE, // COL_FIELD
+ COL_BLACK // COL_FIELDTEXT
};
if ( nColorName < (sizeof( aColAry )/sizeof(ColorData)) )
@@ -437,18 +437,18 @@ SvStream& operator<<( SvStream& rOStream, const Color& rColor )
{
DBG_ASSERTWARNING( rOStream.GetVersion(), "Color::<< - Solar-Version not set on rOStream" );
- USHORT nColorName = COL_NAME_USER;
- USHORT nRed = rColor.GetRed();
- USHORT nGreen = rColor.GetGreen();
- USHORT nBlue = rColor.GetBlue();
- nRed = (nRed<<8) + nRed;
- nGreen = (nGreen<<8) + nGreen;
- nBlue = (nBlue<<8) + nBlue;
+ USHORT nColorName = COL_NAME_USER;
+ USHORT nRed = rColor.GetRed();
+ USHORT nGreen = rColor.GetGreen();
+ USHORT nBlue = rColor.GetBlue();
+ nRed = (nRed<<8) + nRed;
+ nGreen = (nGreen<<8) + nGreen;
+ nBlue = (nBlue<<8) + nBlue;
if ( rOStream.GetCompressMode() == COMPRESSMODE_FULL )
{
- unsigned char cAry[6];
- USHORT i = 0;
+ unsigned char cAry[6];
+ USHORT i = 0;
if ( nRed & 0x00FF )
{
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index d4a92de5d589..9d92affc2175 100644
--- a/tools/source/generic/config.cxx
+++ b/tools/source/generic/config.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@
#include <tools/config.hxx>
#include <osl/security.h>
-#define MAXBUFLEN 1024 // Fuer Buffer bei VOS-Funktionen
+#define MAXBUFLEN 1024 // Fuer Buffer bei VOS-Funktionen
// -----------------
// - ImplConfigData -
@@ -54,31 +54,31 @@
struct ImplKeyData
{
- ImplKeyData* mpNext;
- ByteString maKey;
- ByteString maValue;
- BOOL mbIsComment;
+ ImplKeyData* mpNext;
+ ByteString maKey;
+ ByteString maValue;
+ BOOL mbIsComment;
};
struct ImplGroupData
{
- ImplGroupData* mpNext;
- ImplKeyData* mpFirstKey;
- ByteString maGroupName;
- USHORT mnEmptyLines;
+ ImplGroupData* mpNext;
+ ImplKeyData* mpFirstKey;
+ ByteString maGroupName;
+ USHORT mnEmptyLines;
};
struct ImplConfigData
{
- ImplGroupData* mpFirstGroup;
- XubString maFileName;
- ULONG mnDataUpdateId;
- ULONG mnTimeStamp;
- LineEnd meLineEnd;
- USHORT mnRefCount;
- BOOL mbModified;
- BOOL mbRead;
- BOOL mbIsUTF8BOM;
+ ImplGroupData* mpFirstGroup;
+ XubString maFileName;
+ ULONG mnDataUpdateId;
+ ULONG mnTimeStamp;
+ LineEnd meLineEnd;
+ USHORT mnRefCount;
+ BOOL mbModified;
+ BOOL mbRead;
+ BOOL mbIsUTF8BOM;
};
// =======================================================================
@@ -94,7 +94,7 @@ static ByteString& getEmptyByteString()
static String toUncPath( const String& rPath )
{
::rtl::OUString aFileURL;
-
+
// check if rFileName is already a URL; if not make it so
if( rPath.CompareToAscii( "file://", 7 ) == COMPARE_EQUAL )
aFileURL = rPath;
@@ -116,7 +116,7 @@ static ULONG ImplSysGetConfigTimeStamp( const XubString& rFileName )
{
nTimeStamp = aStatus.getModifyTime().Seconds;
}
-
+
return nTimeStamp;
}
@@ -125,7 +125,7 @@ static ULONG ImplSysGetConfigTimeStamp( const XubString& rFileName )
static BYTE* ImplSysReadConfig( const XubString& rFileName,
sal_uInt64& rRead, BOOL& rbRead, BOOL& rbIsUTF8BOM, ULONG& rTimeStamp )
{
- BYTE* pBuf = NULL;
+ BYTE* pBuf = NULL;
::osl::File aFile( rFileName );
if( aFile.open( osl_File_OpenFlag_Read ) == ::osl::FileBase::E_None )
@@ -251,7 +251,7 @@ static String ImplMakeConfigName( const XubString* pFileName,
::rtl::OUString aName( aPathName );
aName += ::rtl::OUString::createFromAscii( "/" );
aName += aFileName;
-
+
return aName;
}
@@ -287,11 +287,11 @@ static void ImplMakeConfigList( ImplConfigData* pData,
xub_StrLen nNameLen;
xub_StrLen nKeyLen;
sal_uInt64 i;
- const BYTE* pLine;
- ImplKeyData* pPrevKey = NULL;
- ImplKeyData* pKey;
- ImplGroupData* pPrevGroup = NULL;
- ImplGroupData* pGroup = NULL;
+ const BYTE* pLine;
+ ImplKeyData* pPrevKey = NULL;
+ ImplKeyData* pKey;
+ ImplGroupData* pPrevGroup = NULL;
+ ImplGroupData* pGroup = NULL;
i = 0;
while ( i < nLen )
{
@@ -324,17 +324,17 @@ static void ImplMakeConfigList( ImplConfigData* pData,
// Zeile auswerten
if ( *pLine == '[' )
{
- pGroup = new ImplGroupData;
- pGroup->mpNext = NULL;
- pGroup->mpFirstKey = NULL;
+ pGroup = new ImplGroupData;
+ pGroup->mpNext = NULL;
+ pGroup->mpFirstKey = NULL;
pGroup->mnEmptyLines = 0;
if ( pPrevGroup )
pPrevGroup->mpNext = pGroup;
else
pData->mpFirstGroup = pGroup;
- pPrevGroup = pGroup;
- pPrevKey = NULL;
- pKey = NULL;
+ pPrevGroup = pGroup;
+ pPrevKey = NULL;
+ pKey = NULL;
// Gruppennamen rausfiltern
pLine++;
@@ -363,16 +363,16 @@ static void ImplMakeConfigList( ImplConfigData* pData,
// Default-Gruppe
if ( !pGroup )
{
- pGroup = new ImplGroupData;
- pGroup->mpNext = NULL;
- pGroup->mpFirstKey = NULL;
+ pGroup = new ImplGroupData;
+ pGroup->mpNext = NULL;
+ pGroup->mpFirstKey = NULL;
pGroup->mnEmptyLines = 0;
if ( pPrevGroup )
pPrevGroup->mpNext = pGroup;
else
pData->mpFirstGroup = pGroup;
- pPrevGroup = pGroup;
- pPrevKey = NULL;
+ pPrevGroup = pGroup;
+ pPrevKey = NULL;
}
// Falls Leerzeile vorhanden, dann anhaengen
@@ -380,16 +380,16 @@ static void ImplMakeConfigList( ImplConfigData* pData,
{
while ( pGroup->mnEmptyLines )
{
- pKey = new ImplKeyData;
- pKey->mbIsComment = TRUE;
- pPrevKey->mpNext = pKey;
- pPrevKey = pKey;
+ pKey = new ImplKeyData;
+ pKey->mbIsComment = TRUE;
+ pPrevKey->mpNext = pKey;
+ pPrevKey = pKey;
pGroup->mnEmptyLines--;
}
}
// Neuen Key erzeugen
- pKey = new ImplKeyData;
+ pKey = new ImplKeyData;
pKey->mpNext = NULL;
if ( pPrevKey )
pPrevKey->mpNext = pKey;
@@ -452,15 +452,15 @@ static void ImplMakeConfigList( ImplConfigData* pData,
static BYTE* ImplGetConfigBuffer( const ImplConfigData* pData, ULONG& rLen )
{
- BYTE* pWriteBuf;
- BYTE* pBuf;
- BYTE aLineEndBuf[2] = {0, 0};
- ImplKeyData* pKey;
- ImplGroupData* pGroup;
- unsigned int nBufLen;
- USHORT nValueLen;
- USHORT nKeyLen;
- USHORT nLineEndLen;
+ BYTE* pWriteBuf;
+ BYTE* pBuf;
+ BYTE aLineEndBuf[2] = {0, 0};
+ ImplKeyData* pKey;
+ ImplGroupData* pGroup;
+ unsigned int nBufLen;
+ USHORT nValueLen;
+ USHORT nKeyLen;
+ USHORT nLineEndLen;
if ( pData->meLineEnd == LINEEND_CR )
{
@@ -605,11 +605,11 @@ static BYTE* ImplGetConfigBuffer( const ImplConfigData* pData, ULONG& rLen )
static void ImplReadConfig( ImplConfigData* pData )
{
- ULONG nTimeStamp = 0;
+ ULONG nTimeStamp = 0;
sal_uInt64 nRead = 0;
- BOOL bRead = FALSE;
- BOOL bIsUTF8BOM =FALSE;
- BYTE* pBuf = ImplSysReadConfig( pData->maFileName, nRead, bRead, bIsUTF8BOM, nTimeStamp );
+ BOOL bRead = FALSE;
+ BOOL bIsUTF8BOM =FALSE;
+ BYTE* pBuf = ImplSysReadConfig( pData->maFileName, nRead, bRead, bIsUTF8BOM, nTimeStamp );
// Aus dem Buffer die Config-Verwaltungsliste aufbauen
if ( pBuf )
@@ -640,8 +640,8 @@ static void ImplWriteConfig( ImplConfigData* pData )
#endif
// Aus der Config-Liste einen Buffer zusammenbauen
- ULONG nBufLen;
- BYTE* pBuf = ImplGetConfigBuffer( pData, nBufLen );
+ ULONG nBufLen;
+ BYTE* pBuf = ImplGetConfigBuffer( pData, nBufLen );
if ( pBuf )
{
if ( ImplSysWriteConfig( pData->maFileName, pBuf, nBufLen, pData->mbIsUTF8BOM, pData->mnTimeStamp ) )
@@ -656,10 +656,10 @@ static void ImplWriteConfig( ImplConfigData* pData )
static void ImplDeleteConfigData( ImplConfigData* pData )
{
- ImplKeyData* pTempKey;
- ImplKeyData* pKey;
- ImplGroupData* pTempGroup;
- ImplGroupData* pGroup = pData->mpFirstGroup;
+ ImplKeyData* pTempKey;
+ ImplKeyData* pKey;
+ ImplGroupData* pTempGroup;
+ ImplGroupData* pGroup = pData->mpFirstGroup;
while ( pGroup )
{
pTempGroup = pGroup->mpNext;
@@ -687,13 +687,13 @@ static ImplConfigData* ImplGetConfigData( const XubString& rFileName )
{
ImplConfigData* pData;
- pData = new ImplConfigData;
- pData->maFileName = rFileName;
- pData->mpFirstGroup = NULL;
- pData->mnDataUpdateId = 0;
- pData->meLineEnd = LINEEND_CRLF;
- pData->mnRefCount = 0;
- pData->mbRead = FALSE;
+ pData = new ImplConfigData;
+ pData->maFileName = rFileName;
+ pData->mpFirstGroup = NULL;
+ pData->mnDataUpdateId = 0;
+ pData->meLineEnd = LINEEND_CRLF;
+ pData->mnRefCount = 0;
+ pData->mbRead = FALSE;
pData->mbIsUTF8BOM = FALSE;
ImplReadConfig( pData );
@@ -744,9 +744,9 @@ ImplGroupData* Config::ImplGetGroup() const
// Falls Gruppe noch nicht existiert, dann dazufuegen
if ( !pGroup )
{
- pGroup = new ImplGroupData;
- pGroup->mpNext = NULL;
- pGroup->mpFirstKey = NULL;
+ pGroup = new ImplGroupData;
+ pGroup->mpNext = NULL;
+ pGroup->mpFirstKey = NULL;
pGroup->mnEmptyLines = 1;
if ( pPrevGroup )
pPrevGroup->mpNext = pGroup;
@@ -757,9 +757,9 @@ ImplGroupData* Config::ImplGetGroup() const
// Gruppenname immer uebernehmen, da er auch in dieser Form
// geschrieben werden soll. Ausserdem die Cache-Members der
// Config-Klasse updaten
- pGroup->maGroupName = maGroupName;
+ pGroup->maGroupName = maGroupName;
((Config*)this)->mnDataUpdateId = mpData->mnDataUpdateId;
- ((Config*)this)->mpActGroup = pGroup;
+ ((Config*)this)->mpActGroup = pGroup;
}
return mpActGroup;
@@ -770,12 +770,12 @@ ImplGroupData* Config::ImplGetGroup() const
Config::Config()
{
// Daten initialisieren und einlesen
- maFileName = ImplMakeConfigName( NULL, NULL );
- mpData = ImplGetConfigData( maFileName );
- mpActGroup = NULL;
- mnDataUpdateId = 0;
- mnLockCount = 1;
- mbPersistence = TRUE;
+ maFileName = ImplMakeConfigName( NULL, NULL );
+ mpData = ImplGetConfigData( maFileName );
+ mpActGroup = NULL;
+ mnDataUpdateId = 0;
+ mnLockCount = 1;
+ mbPersistence = TRUE;
#ifdef DBG_UTIL
DBG_TRACE( "Config::Config()" );
@@ -787,12 +787,12 @@ Config::Config()
Config::Config( const XubString& rFileName )
{
// Daten initialisieren und einlesen
- maFileName = toUncPath( rFileName );
- mpData = ImplGetConfigData( maFileName );
- mpActGroup = NULL;
- mnDataUpdateId = 0;
- mnLockCount = 1;
- mbPersistence = TRUE;
+ maFileName = toUncPath( rFileName );
+ mpData = ImplGetConfigData( maFileName );
+ mpActGroup = NULL;
+ mnDataUpdateId = 0;
+ mnLockCount = 1;
+ mbPersistence = TRUE;
#ifdef DBG_UTIL
ByteString aTraceStr( "Config::Config( " );
@@ -842,8 +842,8 @@ void Config::SetGroup( const ByteString& rGroup )
// Gruppe neu ermittelt werden
if ( maGroupName != rGroup )
{
- maGroupName = rGroup;
- mnDataUpdateId = mpData->mnDataUpdateId-1;
+ maGroupName = rGroup;
+ mnDataUpdateId = mpData->mnDataUpdateId-1;
}
}
@@ -910,9 +910,9 @@ ByteString Config::GetGroupName( USHORT nGroup ) const
if ( !mnLockCount )
ImplUpdateConfig();
- ImplGroupData* pGroup = mpData->mpFirstGroup;
- USHORT nGroupCount = 0;
- ByteString aGroupName;
+ ImplGroupData* pGroup = mpData->mpFirstGroup;
+ USHORT nGroupCount = 0;
+ ByteString aGroupName;
while ( pGroup )
{
if ( nGroup == nGroupCount )
@@ -936,8 +936,8 @@ USHORT Config::GetGroupCount() const
if ( !mnLockCount )
ImplUpdateConfig();
- ImplGroupData* pGroup = mpData->mpFirstGroup;
- USHORT nGroupCount = 0;
+ ImplGroupData* pGroup = mpData->mpFirstGroup;
+ USHORT nGroupCount = 0;
while ( pGroup )
{
nGroupCount++;
@@ -955,8 +955,8 @@ BOOL Config::HasGroup( const ByteString& rGroup ) const
if ( !mnLockCount )
ImplUpdateConfig();
- ImplGroupData* pGroup = mpData->mpFirstGroup;
- BOOL bRet = FALSE;
+ ImplGroupData* pGroup = mpData->mpFirstGroup;
+ BOOL bRet = FALSE;
while( pGroup )
{
@@ -1065,9 +1065,9 @@ void Config::WriteKey( const ByteString& rKey, const ByteString& rStr )
BOOL bNewValue;
if ( !pKey )
{
- pKey = new ImplKeyData;
- pKey->mpNext = NULL;
- pKey->maKey = rKey;
+ pKey = new ImplKeyData;
+ pKey->mpNext = NULL;
+ pKey->maKey = rKey;
pKey->mbIsComment = FALSE;
if ( pPrevKey )
pPrevKey->mpNext = pKey;
diff --git a/tools/source/generic/fract.cxx b/tools/source/generic/fract.cxx
index 538bee357801..290e566505e2 100644
--- a/tools/source/generic/fract.cxx
+++ b/tools/source/generic/fract.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -143,7 +143,7 @@ Fraction::Fraction( long nN1, long nN2, long nD1, long nD2 )
if( nN2 < 0 ) { i = -i; nN2 = -nN2; }
if( nD1 < 0 ) { i = -i; nD1 = -nD1; }
if( nD2 < 0 ) { i = -i; nD2 = -nD2; }
-
+
n = GetGGT( nN1, nD1 ); if( n > 1 ) { nN1 /= n; nD1 /= n; }
n = GetGGT( nN1, nD2 ); if( n > 1 ) { nN1 /= n; nD2 /= n; }
n = GetGGT( nN2, nD1 ); if( n > 1 ) { nN2 /= n; nD1 /= n; }
@@ -304,7 +304,7 @@ Fraction& Fraction::operator += ( const Fraction& rVal )
BigInt nD( nDenominator );
nD *= BigInt( rVal.nDenominator );
-
+
Reduce( nN, nD );
if ( nN.bIsBig || nD.bIsBig )
@@ -512,7 +512,7 @@ const char nbits_table[32] =
static int impl_NumberOfBits( unsigned long nNum )
{
// http://en.wikipedia.org/wiki/De_Bruijn_sequence
- //
+ //
// background paper: Using de Bruijn Sequences to Index a 1 in a
// Computer Word (1998) Charles E. Leiserson,
// Harald Prokop, Keith H. Randall
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx
index 93f01ce4c4cb..2d6c5705aff9 100644
--- a/tools/source/generic/gen.cxx
+++ b/tools/source/generic/gen.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,12 +40,12 @@ SvStream& operator>>( SvStream& rIStream, Pair& rPair )
if ( rIStream.GetCompressMode() == COMPRESSMODE_FULL )
{
- unsigned char cId;
- unsigned char cAry[8];
- int i;
- int i1;
- int i2;
- UINT32 nNum;
+ unsigned char cId;
+ unsigned char cAry[8];
+ int i;
+ int i1;
+ int i2;
+ UINT32 nNum;
rIStream >> cId;
i1 = (cId & 0x70) >> 4;
@@ -92,9 +92,9 @@ SvStream& operator<<( SvStream& rOStream, const Pair& rPair )
if ( rOStream.GetCompressMode() == COMPRESSMODE_FULL )
{
- unsigned char cAry[9];
- int i = 1;
- UINT32 nNum;
+ unsigned char cAry[9];
+ int i = 1;
+ UINT32 nNum;
cAry[0] = 0;
@@ -395,15 +395,15 @@ SvStream& operator>>( SvStream& rIStream, Rectangle& rRect )
if ( rIStream.GetCompressMode() == COMPRESSMODE_FULL )
{
- unsigned char cIdAry[2];
- unsigned char cAry[16];
- int i;
- int iLast;
- int i1;
- int i2;
- int i3;
- int i4;
- UINT32 nNum;
+ unsigned char cIdAry[2];
+ unsigned char cAry[16];
+ int i;
+ int iLast;
+ int i1;
+ int i2;
+ int i3;
+ int i4;
+ UINT32 nNum;
rIStream.Read( cIdAry, 2 );
i1 = (cIdAry[0] & 0x70) >> 4;
@@ -480,9 +480,9 @@ SvStream& operator<<( SvStream& rOStream, const Rectangle& rRect )
if ( rOStream.GetCompressMode() == COMPRESSMODE_FULL )
{
- unsigned char cAry[18];
- int i = 2;
- UINT32 nNum;
+ unsigned char cAry[18];
+ int i = 2;
+ UINT32 nNum;
cAry[0] = 0;
cAry[1] = 0;
diff --git a/tools/source/generic/line.cxx b/tools/source/generic/line.cxx
index 54422858a995..022c0c36406a 100644
--- a/tools/source/generic/line.cxx
+++ b/tools/source/generic/line.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,8 +50,8 @@ double Line::GetLength() const
BOOL Line::Intersection( const Line& rLine, Point& rIntersection ) const
{
- double fX, fY;
- BOOL bRet;
+ double fX, fY;
+ BOOL bRet;
if( Intersection( rLine, fX, fY ) )
{
@@ -217,9 +217,9 @@ double Line::GetDistance( const double& rPtX, const double& rPtY ) const
{
const double fDistX = maEnd.X() - maStart.X();
const double fDistY = maEnd.Y() - maStart.Y();
- const double fACX = maStart.X() - rPtX;
- const double fACY = maStart.Y() - rPtY;
- const double fL2 = fDistX * fDistX + fDistY * fDistY;
+ const double fACX = maStart.X() - rPtX;
+ const double fACY = maStart.Y() - rPtY;
+ const double fL2 = fDistX * fDistX + fDistY * fDistY;
const double fR = ( fACY * -fDistY - fACX * fDistX ) / fL2;
const double fS = ( fACY * fDistX - fACX * fDistY ) / fL2;
@@ -228,7 +228,7 @@ double Line::GetDistance( const double& rPtX, const double& rPtY ) const
fDist = hypot( maStart.X() - rPtX, maStart.Y() - rPtY );
if( fS < 0.0 )
- fDist *= -1.0;
+ fDist *= -1.0;
}
else if( fR <= 1.0 )
fDist = fS * sqrt( fL2 );
@@ -237,7 +237,7 @@ double Line::GetDistance( const double& rPtX, const double& rPtY ) const
fDist = hypot( maEnd.X() - rPtX, maEnd.Y() - rPtY );
if( fS < 0.0 )
- fDist *= -1.0;
+ fDist *= -1.0;
}
}
else
@@ -312,12 +312,12 @@ void Line::Enum( const Link& rEnumLink )
{
const long nDX = labs( maEnd.X() - maStart.X() );
const long nDY = labs( maEnd.Y() - maStart.Y() );
- const long nStartX = maStart.X();
- const long nStartY = maStart.Y();
- const long nEndX = maEnd.X();
- const long nEndY = maEnd.Y();
- const long nXInc = ( nStartX < nEndX ) ? 1L : -1L;
- const long nYInc = ( nStartY < nEndY ) ? 1L : -1L;
+ const long nStartX = maStart.X();
+ const long nStartY = maStart.Y();
+ const long nEndX = maEnd.X();
+ const long nEndY = maEnd.Y();
+ const long nXInc = ( nStartX < nEndX ) ? 1L : -1L;
+ const long nYInc = ( nStartY < nEndY ) ? 1L : -1L;
if( nDX >= nDY )
{
diff --git a/tools/source/generic/link.cxx b/tools/source/generic/link.cxx
index 3fee01c5ee9a..bf6bfd15da3a 100644
--- a/tools/source/generic/link.cxx
+++ b/tools/source/generic/link.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 6e574fd2f64a..ce81ab6157e0 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,14 +59,14 @@ DBG_NAME( Polygon )
// -----------------------------------------------------------------------
-#define EDGE_LEFT 1
-#define EDGE_TOP 2
-#define EDGE_RIGHT 4
-#define EDGE_BOTTOM 8
-#define EDGE_HORZ (EDGE_RIGHT | EDGE_LEFT)
-#define EDGE_VERT (EDGE_TOP | EDGE_BOTTOM)
-#define SMALL_DVALUE 0.0000001
-#define FSQRT2 1.4142135623730950488016887242097
+#define EDGE_LEFT 1
+#define EDGE_TOP 2
+#define EDGE_RIGHT 4
+#define EDGE_BOTTOM 8
+#define EDGE_HORZ (EDGE_RIGHT | EDGE_LEFT)
+#define EDGE_VERT (EDGE_TOP | EDGE_BOTTOM)
+#define SMALL_DVALUE 0.0000001
+#define FSQRT2 1.4142135623730950488016887242097
// -----------------------------------------------------------------------
@@ -239,13 +239,13 @@ void ImplPolygon::ImplSetSize( USHORT nNewSize, BOOL bResize )
void ImplPolygon::ImplSplit( USHORT nPos, USHORT nSpace, ImplPolygon* pInitPoly )
{
- const ULONG nSpaceSize = nSpace * sizeof( Point );
+ const ULONG nSpaceSize = nSpace * sizeof( Point );
//Can't fit this in :-(, throw ?
if (mnPoints + nSpace > USHRT_MAX)
return;
- const USHORT nNewSize = mnPoints + nSpace;
+ const USHORT nNewSize = mnPoints + nSpace;
if( nPos >= mnPoints )
{
@@ -264,8 +264,8 @@ void ImplPolygon::ImplSplit( USHORT nPos, USHORT nSpace, ImplPolygon* pInitPoly
else
{
// PointArray ist in diesem Zweig immer vorhanden
- const USHORT nSecPos = nPos + nSpace;
- const USHORT nRest = mnPoints - nPos;
+ const USHORT nSecPos = nPos + nSpace;
+ const USHORT nRest = mnPoints - nPos;
Point* pNewAry = (Point*) new char[ (ULONG) nNewSize * sizeof( Point ) ];
@@ -309,9 +309,9 @@ void ImplPolygon::ImplRemove( USHORT nPos, USHORT nCount )
if( nRemoveCount )
{
- const USHORT nNewSize = mnPoints - nRemoveCount;
- const USHORT nSecPos = nPos + nRemoveCount;
- const USHORT nRest = mnPoints - nSecPos;
+ const USHORT nNewSize = mnPoints - nRemoveCount;
+ const USHORT nSecPos = nPos + nRemoveCount;
+ const USHORT nRest = mnPoints - nSecPos;
Point* pNewAry = (Point*) new char[ (ULONG) nNewSize * sizeof( Point ) ];
@@ -443,7 +443,7 @@ Polygon::Polygon( const Rectangle& rRect, ULONG nHorzRound, ULONG nVertRound )
else
{
Rectangle aRect( rRect );
- aRect.Justify(); // SJ: i9140
+ aRect.Justify(); // SJ: i9140
nHorzRound = Min( nHorzRound, (ULONG) labs( aRect.GetWidth() >> 1 ) );
nVertRound = Min( nVertRound, (ULONG) labs( aRect.GetHeight() >> 1 ) );
@@ -459,17 +459,17 @@ Polygon::Polygon( const Rectangle& rRect, ULONG nHorzRound, ULONG nVertRound )
}
else
{
- const Point aTL( aRect.Left() + nHorzRound, aRect.Top() + nVertRound );
- const Point aTR( aRect.Right() - nHorzRound, aRect.Top() + nVertRound );
- const Point aBR( aRect.Right() - nHorzRound, aRect.Bottom() - nVertRound );
- const Point aBL( aRect.Left() + nHorzRound, aRect.Bottom() - nVertRound );
- Polygon* pEllipsePoly = new Polygon( Point(), nHorzRound, nVertRound );
- USHORT i, nEnd, nSize4 = pEllipsePoly->GetSize() >> 2;
+ const Point aTL( aRect.Left() + nHorzRound, aRect.Top() + nVertRound );
+ const Point aTR( aRect.Right() - nHorzRound, aRect.Top() + nVertRound );
+ const Point aBR( aRect.Right() - nHorzRound, aRect.Bottom() - nVertRound );
+ const Point aBL( aRect.Left() + nHorzRound, aRect.Bottom() - nVertRound );
+ Polygon* pEllipsePoly = new Polygon( Point(), nHorzRound, nVertRound );
+ USHORT i, nEnd, nSize4 = pEllipsePoly->GetSize() >> 2;
mpImplPolygon = new ImplPolygon( pEllipsePoly->GetSize() + 1 );
-
- const Point* pSrcAry = pEllipsePoly->GetConstPointAry();
- Point* pDstAry = mpImplPolygon->mpPointAry;
+
+ const Point* pSrcAry = pEllipsePoly->GetConstPointAry();
+ Point* pDstAry = mpImplPolygon->mpPointAry;
for( i = 0, nEnd = nSize4; i < nEnd; i++ )
( pDstAry[ i ] = pSrcAry[ i ] ) += aTR;
@@ -525,16 +525,16 @@ Polygon::Polygon( const Point& rCenter, long nRadX, long nRadY, USHORT nPoints )
long nY = FRound( -nRadY * sin( nAngle ) );
pPt = &(mpImplPolygon->mpPointAry[i]);
- pPt->X() = nX + rCenter.X();
- pPt->Y() = nY + rCenter.Y();
+ pPt->X() = nX + rCenter.X();
+ pPt->Y() = nY + rCenter.Y();
pPt = &(mpImplPolygon->mpPointAry[nPoints2-i-1]);
pPt->X() = -nX + rCenter.X();
- pPt->Y() = nY + rCenter.Y();
+ pPt->Y() = nY + rCenter.Y();
pPt = &(mpImplPolygon->mpPointAry[i+nPoints2]);
pPt->X() = -nX + rCenter.X();
pPt->Y() = -nY + rCenter.Y();
pPt = &(mpImplPolygon->mpPointAry[nPoints-i-1]);
- pPt->X() = nX + rCenter.X();
+ pPt->X() = nX + rCenter.X();
pPt->Y() = -nY + rCenter.Y();
}
}
@@ -549,15 +549,15 @@ Polygon::Polygon( const Rectangle& rBound,
{
DBG_CTOR( Polygon, NULL );
- const long nWidth = rBound.GetWidth();
- const long nHeight = rBound.GetHeight();
+ const long nWidth = rBound.GetWidth();
+ const long nHeight = rBound.GetHeight();
if( ( nWidth > 1 ) && ( nHeight > 1 ) )
{
const Point aCenter( rBound.Center() );
- const long nRadX = aCenter.X() - rBound.Left();
- const long nRadY = aCenter.Y() - rBound.Top();
- USHORT nPoints;
+ const long nRadX = aCenter.X() - rBound.Left();
+ const long nRadY = aCenter.Y() - rBound.Top();
+ USHORT nPoints;
nPoints = (USHORT) ( F_PI * ( 1.5 * ( nRadX + nRadY ) -
sqrt( (double) labs( nRadX * nRadY ) ) ) );
@@ -568,16 +568,16 @@ Polygon::Polygon( const Rectangle& rBound,
nPoints >>= 1;
// Winkel berechnen
- const double fRadX = nRadX;
- const double fRadY = nRadY;
- const double fCenterX = aCenter.X();
- const double fCenterY = aCenter.Y();
- double fStart = ImplGetAngle( aCenter, rStart );
- double fEnd = ImplGetAngle( aCenter, rEnd );
- double fDiff = fEnd - fStart;
- double fStep;
- USHORT nStart;
- USHORT nEnd;
+ const double fRadX = nRadX;
+ const double fRadY = nRadY;
+ const double fCenterX = aCenter.X();
+ const double fCenterY = aCenter.Y();
+ double fStart = ImplGetAngle( aCenter, rStart );
+ double fEnd = ImplGetAngle( aCenter, rEnd );
+ double fDiff = fEnd - fStart;
+ double fStep;
+ USHORT nStart;
+ USHORT nEnd;
if( fDiff < 0. )
fDiff += F_2PI;
@@ -622,25 +622,25 @@ Polygon::Polygon( const Rectangle& rBound,
// -----------------------------------------------------------------------
-Polygon::Polygon( const Point& rBezPt1, const Point& rCtrlPt1,
+Polygon::Polygon( const Point& rBezPt1, const Point& rCtrlPt1,
const Point& rBezPt2, const Point& rCtrlPt2,
USHORT nPoints )
{
DBG_CTOR( Polygon, NULL );
-
+
nPoints = ( 0 == nPoints ) ? 25 : ( ( nPoints < 2 ) ? 2 : nPoints );
- const double fInc = 1.0 / ( nPoints - 1 );
- double fK_1 = 0.0, fK1_1 = 1.0;
- double fK_2, fK_3, fK1_2, fK1_3, fK12, fK21;
- const double fX0 = rBezPt1.X();
- const double fY0 = rBezPt1.Y();
- const double fX1 = 3.0 * rCtrlPt1.X();
- const double fY1 = 3.0 * rCtrlPt1.Y();
- const double fX2 = 3.0 * rCtrlPt2.X();;
- const double fY2 = 3.0 * rCtrlPt2.Y();;
- const double fX3 = rBezPt2.X();
- const double fY3 = rBezPt2.Y();
+ const double fInc = 1.0 / ( nPoints - 1 );
+ double fK_1 = 0.0, fK1_1 = 1.0;
+ double fK_2, fK_3, fK1_2, fK1_3, fK12, fK21;
+ const double fX0 = rBezPt1.X();
+ const double fY0 = rBezPt1.Y();
+ const double fX1 = 3.0 * rCtrlPt1.X();
+ const double fY1 = 3.0 * rCtrlPt1.Y();
+ const double fX2 = 3.0 * rCtrlPt2.X();;
+ const double fY2 = 3.0 * rCtrlPt2.Y();;
+ const double fX3 = rBezPt2.X();
+ const double fY3 = rBezPt2.Y();
mpImplPolygon = new ImplPolygon( nPoints );
@@ -822,7 +822,7 @@ BOOL Polygon::IsRect() const
void Polygon::SetSize( USHORT nNewSize )
{
DBG_CHKTHIS( Polygon, NULL );
-
+
if( nNewSize != mpImplPolygon->mnPoints )
{
ImplMakeUnique();
@@ -886,18 +886,18 @@ void Polygon::Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData )
{
if( nOptimizeFlags & POLY_OPTIMIZE_EDGES )
{
- const Rectangle aBound( GetBoundRect() );
- const double fArea = ( aBound.GetWidth() + aBound.GetHeight() ) * 0.5;
- const USHORT nPercent = pData ? pData->GetPercentValue() : 50;
+ const Rectangle aBound( GetBoundRect() );
+ const double fArea = ( aBound.GetWidth() + aBound.GetHeight() ) * 0.5;
+ const USHORT nPercent = pData ? pData->GetPercentValue() : 50;
Optimize( POLY_OPTIMIZE_NO_SAME );
ImplReduceEdges( *this, fArea, nPercent );
}
else if( nOptimizeFlags & ( POLY_OPTIMIZE_REDUCE | POLY_OPTIMIZE_NO_SAME ) )
{
- Polygon aNewPoly;
- const Point& rFirst = mpImplPolygon->mpPointAry[ 0 ];
- ULONG nReduce;
+ Polygon aNewPoly;
+ const Point& rFirst = mpImplPolygon->mpPointAry[ 0 ];
+ ULONG nReduce;
if( nOptimizeFlags & ( POLY_OPTIMIZE_REDUCE ) )
nReduce = pData ? pData->GetAbsValue() : 4UL;
@@ -936,13 +936,13 @@ void Polygon::Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData )
if( nSize > 1 )
{
- if( ( nOptimizeFlags & POLY_OPTIMIZE_CLOSE ) &&
+ if( ( nOptimizeFlags & POLY_OPTIMIZE_CLOSE ) &&
( mpImplPolygon->mpPointAry[ 0 ] != mpImplPolygon->mpPointAry[ nSize - 1 ] ) )
{
SetSize( mpImplPolygon->mnPoints + 1 );
mpImplPolygon->mpPointAry[ mpImplPolygon->mnPoints - 1 ] = mpImplPolygon->mpPointAry[ 0 ];
}
- else if( ( nOptimizeFlags & POLY_OPTIMIZE_OPEN ) &&
+ else if( ( nOptimizeFlags & POLY_OPTIMIZE_OPEN ) &&
( mpImplPolygon->mpPointAry[ 0 ] == mpImplPolygon->mpPointAry[ nSize - 1 ] ) )
{
const Point& rFirst = mpImplPolygon->mpPointAry[ 0 ];
@@ -958,8 +958,8 @@ void Polygon::Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData )
// =======================================================================
-/* Recursively subdivide cubic bezier curve via deCasteljau.
-
+/* Recursively subdivide cubic bezier curve via deCasteljau.
+
@param rPointIter
Output iterator, where the subdivided polylines are written to.
@@ -969,8 +969,8 @@ void Polygon::Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData )
@param P*
Exactly four points, interpreted as support and control points of
a cubic bezier curve. Must be in device coordinates, since stop
- criterion is based on the following assumption: the device has a
- finite resolution, it is thus sufficient to stop subdivision if the
+ criterion is based on the following assumption: the device has a
+ finite resolution, it is thus sufficient to stop subdivision if the
curve does not deviate more than one pixel from a straight line.
*/
@@ -1000,7 +1000,7 @@ static void ImplAdaptiveSubdivide( ::std::back_insert_iterator< ::std::vector< P
const double fJ1y( P2y - P1y - 1.0/3.0*(P4y - P1y) );
const double fJ2x( P3x - P1x - 2.0/3.0*(P4x - P1x) );
const double fJ2y( P3y - P1y - 2.0/3.0*(P4y - P1y) );
- const double distance2( ::std::max( fJ1x*fJ1x + fJ1y*fJ1y,
+ const double distance2( ::std::max( fJ1x*fJ1x + fJ1y*fJ1y,
fJ2x*fJ2x + fJ2y*fJ2y) );
// stop if error measure does not improve anymore. This is a
@@ -1014,15 +1014,15 @@ static void ImplAdaptiveSubdivide( ::std::back_insert_iterator< ::std::vector< P
{
// deCasteljau bezier arc, split at t=0.5
// Foley/vanDam, p. 508
- const double L1x( P1x ), L1y( P1y );
+ const double L1x( P1x ), L1y( P1y );
const double L2x( (P1x + P2x)*0.5 ), L2y( (P1y + P2y)*0.5 );
const double Hx ( (P2x + P3x)*0.5 ), Hy ( (P2y + P3y)*0.5 );
const double L3x( (L2x + Hx)*0.5 ), L3y( (L2y + Hy)*0.5 );
- const double R4x( P4x ), R4y( P4y );
+ const double R4x( P4x ), R4y( P4y );
const double R3x( (P3x + P4x)*0.5 ), R3y( (P3y + P4y)*0.5 );
const double R2x( (Hx + R3x)*0.5 ), R2y( (Hy + R3y)*0.5 );
const double R1x( (L3x + R2x)*0.5 ), R1y( (L3y + R2y)*0.5 );
- const double L4x( R1x ), L4y( R1y );
+ const double L4x( R1x ), L4y( R1y );
// subdivide further
++recursionDepth;
@@ -1057,7 +1057,7 @@ void Polygon::AdaptiveSubdivide( Polygon& rResult, const double d ) const
for(i=0; i<nPts;)
{
if( ( i + 3 ) < nPts )
- {
+ {
BYTE P1( mpImplPolygon->mpFlagAry[ i ] );
BYTE P4( mpImplPolygon->mpFlagAry[ i + 3 ] );
@@ -1095,7 +1095,7 @@ void Polygon::GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResul
// -----------------------------------------------------------------------
-void Polygon::GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
+void Polygon::GetUnion( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
{
const PolyPolygon aTmp( *this );
aTmp.GetUnion( rPolyPoly, rResult );
@@ -1121,14 +1121,14 @@ void Polygon::GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
void Polygon::ImplReduceEdges( Polygon& rPoly, const double& rArea, USHORT nPercent )
{
- const double fBound = 2000.0 * ( 100 - nPercent ) * 0.01;
- USHORT nNumNoChange = 0, nNumRuns = 0;
+ const double fBound = 2000.0 * ( 100 - nPercent ) * 0.01;
+ USHORT nNumNoChange = 0, nNumRuns = 0;
- while( nNumNoChange < 2 )
+ while( nNumNoChange < 2 )
{
- USHORT nPntCnt = rPoly.GetSize(), nNewPos = 0;
- Polygon aNewPoly( nPntCnt );
- BOOL bChangeInThisRun = FALSE;
+ USHORT nPntCnt = rPoly.GetSize(), nNewPos = 0;
+ Polygon aNewPoly( nPntCnt );
+ BOOL bChangeInThisRun = FALSE;
for( USHORT n = 0; n < nPntCnt; n++ )
{
@@ -1136,29 +1136,29 @@ void Polygon::ImplReduceEdges( Polygon& rPoly, const double& rArea, USHORT nPerc
if( ( n + nNumRuns ) % 2 )
{
- USHORT nIndPrev = !n ? nPntCnt - 1 : n - 1;
- USHORT nIndPrevPrev = !nIndPrev ? nPntCnt - 1 : nIndPrev - 1;
- USHORT nIndNext = ( n == nPntCnt-1 ) ? 0 : n + 1;
- USHORT nIndNextNext = ( nIndNext == nPntCnt - 1 ) ? 0 : nIndNext + 1;
- Vector2D aVec1( rPoly[ nIndPrev ] ); aVec1 -= rPoly[ nIndPrevPrev ];
- Vector2D aVec2( rPoly[ n ] ); aVec2 -= rPoly[ nIndPrev ];
- Vector2D aVec3( rPoly[ nIndNext ] ); aVec3 -= rPoly[ n ];
- Vector2D aVec4( rPoly[ nIndNextNext ] ); aVec4 -= rPoly[ nIndNext ];
- double fDist1 = aVec1.GetLength(), fDist2 = aVec2.GetLength();
- double fDist3 = aVec3.GetLength(), fDist4 = aVec4.GetLength();
- double fTurnB = aVec2.Normalize().Scalar( aVec3.Normalize() );
+ USHORT nIndPrev = !n ? nPntCnt - 1 : n - 1;
+ USHORT nIndPrevPrev = !nIndPrev ? nPntCnt - 1 : nIndPrev - 1;
+ USHORT nIndNext = ( n == nPntCnt-1 ) ? 0 : n + 1;
+ USHORT nIndNextNext = ( nIndNext == nPntCnt - 1 ) ? 0 : nIndNext + 1;
+ Vector2D aVec1( rPoly[ nIndPrev ] ); aVec1 -= rPoly[ nIndPrevPrev ];
+ Vector2D aVec2( rPoly[ n ] ); aVec2 -= rPoly[ nIndPrev ];
+ Vector2D aVec3( rPoly[ nIndNext ] ); aVec3 -= rPoly[ n ];
+ Vector2D aVec4( rPoly[ nIndNextNext ] ); aVec4 -= rPoly[ nIndNext ];
+ double fDist1 = aVec1.GetLength(), fDist2 = aVec2.GetLength();
+ double fDist3 = aVec3.GetLength(), fDist4 = aVec4.GetLength();
+ double fTurnB = aVec2.Normalize().Scalar( aVec3.Normalize() );
if( fabs( fTurnB ) < ( 1.0 + SMALL_DVALUE ) && fabs( fTurnB ) > ( 1.0 - SMALL_DVALUE ) )
bDeletePoint = TRUE;
else
{
- Vector2D aVecB( rPoly[ nIndNext ] );
- double fDistB = ( aVecB -= rPoly[ nIndPrev ] ).GetLength();
- double fLenWithB = fDist2 + fDist3;
- double fLenFact = ( fDistB != 0.0 ) ? fLenWithB / fDistB : 1.0;
- double fTurnPrev = aVec1.Normalize().Scalar( aVec2 );
- double fTurnNext = aVec3.Scalar( aVec4.Normalize() );
- double fGradPrev, fGradB, fGradNext;
+ Vector2D aVecB( rPoly[ nIndNext ] );
+ double fDistB = ( aVecB -= rPoly[ nIndPrev ] ).GetLength();
+ double fLenWithB = fDist2 + fDist3;
+ double fLenFact = ( fDistB != 0.0 ) ? fLenWithB / fDistB : 1.0;
+ double fTurnPrev = aVec1.Normalize().Scalar( aVec2 );
+ double fTurnNext = aVec3.Scalar( aVec4.Normalize() );
+ double fGradPrev, fGradB, fGradNext;
if( fabs( fTurnPrev ) < ( 1.0 + SMALL_DVALUE ) && fabs( fTurnPrev ) > ( 1.0 - SMALL_DVALUE ) )
fGradPrev = 0.0;
@@ -1172,7 +1172,7 @@ void Polygon::ImplReduceEdges( Polygon& rPoly, const double& rArea, USHORT nPerc
else
fGradNext = acos( fTurnNext ) / ( aVec3.IsNegative( aVec4 ) ? -F_PI180 : F_PI180 );
- if( ( fGradPrev > 0.0 && fGradB < 0.0 && fGradNext > 0.0 ) ||
+ if( ( fGradPrev > 0.0 && fGradB < 0.0 && fGradNext > 0.0 ) ||
( fGradPrev < 0.0 && fGradB > 0.0 && fGradNext < 0.0 ) )
{
if( ( fLenFact < ( FSQRT2 + SMALL_DVALUE ) ) &&
@@ -1190,7 +1190,7 @@ void Polygon::ImplReduceEdges( Polygon& rPoly, const double& rArea, USHORT nPerc
else if( fRelLen > 1.0 )
fRelLen = 1.0;
- if( ( (UINT32) ( ( ( fLenFact - 1.0 ) * 1000000.0 ) + 0.5 ) < fBound ) &&
+ if( ( (UINT32) ( ( ( fLenFact - 1.0 ) * 1000000.0 ) + 0.5 ) < fBound ) &&
( fabs( fGradB ) <= ( fRelLen * fBound * 0.01 ) ) )
{
bDeletePoint = TRUE;
@@ -1311,8 +1311,8 @@ void Polygon::SlantX( long nYRef, double fSin, double fCos )
for( USHORT i = 0, nCount = mpImplPolygon->mnPoints; i < nCount; i++ )
{
- Point& rPnt = mpImplPolygon->mpPointAry[ i ];
- const long nDy = rPnt.Y() - nYRef;
+ Point& rPnt = mpImplPolygon->mpPointAry[ i ];
+ const long nDy = rPnt.Y() - nYRef;
rPnt.X() += (long)( fSin * nDy );
rPnt.Y() = nYRef + (long)( fCos * nDy );
@@ -1328,8 +1328,8 @@ void Polygon::SlantY( long nXRef, double fSin, double fCos )
for( USHORT i = 0, nCount = mpImplPolygon->mnPoints; i < nCount; i++ )
{
- Point& rPnt = mpImplPolygon->mpPointAry[ i ];
- const long nDx = rPnt.X() - nXRef;
+ Point& rPnt = mpImplPolygon->mpPointAry[ i ];
+ const long nDx = rPnt.X() - nXRef;
rPnt.X() = nXRef + (long)( fCos * nDx );
rPnt.Y() -= (long)( fSin * nDx );
@@ -1343,9 +1343,9 @@ void Polygon::Distort( const Rectangle& rRefRect, const Polygon& rDistortedRect
DBG_CHKTHIS( Polygon, NULL );
ImplMakeUnique();
- long Xr, Wr, X1, X2, X3, X4;
- long Yr, Hr, Y1, Y2, Y3, Y4;
- double fTx, fTy, fUx, fUy;
+ long Xr, Wr, X1, X2, X3, X4;
+ long Yr, Hr, Y1, Y2, Y3, Y4;
+ double fTx, fTy, fUx, fUy;
Xr = rRefRect.Left();
Yr = rRefRect.Top();
@@ -1392,8 +1392,8 @@ public:
class ImplPolygonPointFilter : public ImplPointFilter
{
public:
- ImplPolygon* mpPoly; // Nicht loeschen, wird dem Polygon zugewiesen
- USHORT mnSize;
+ ImplPolygon* mpPoly; // Nicht loeschen, wird dem Polygon zugewiesen
+ USHORT mnSize;
ImplPolygonPointFilter( USHORT nDestSize ) :
mnSize( 0 )
@@ -1401,8 +1401,8 @@ public:
mpPoly = new ImplPolygon( nDestSize );
}
- virtual void LastPoint();
- virtual void Input( const Point& rPoint );
+ virtual void LastPoint();
+ virtual void Input( const Point& rPoint );
};
void ImplPolygonPointFilter::Input( const Point& rPoint )
@@ -1424,14 +1424,14 @@ void ImplPolygonPointFilter::LastPoint()
class ImplEdgePointFilter : public ImplPointFilter
{
- Point maFirstPoint;
- Point maLastPoint;
- ImplPointFilter& mrNextFilter;
- const long mnLow;
- const long mnHigh;
- const int mnEdge;
- int mnLastOutside;
- BOOL mbFirst;
+ Point maFirstPoint;
+ Point maLastPoint;
+ ImplPointFilter& mrNextFilter;
+ const long mnLow;
+ const long mnHigh;
+ const int mnEdge;
+ int mnLastOutside;
+ BOOL mbFirst;
public:
ImplEdgePointFilter( int nEdge, long nLow, long nHigh,
@@ -1444,13 +1444,13 @@ public:
{
}
- Point EdgeSection( const Point& rPoint, int nEdge ) const;
- int VisibleSide( const Point& rPoint ) const;
- int IsPolygon() const
+ Point EdgeSection( const Point& rPoint, int nEdge ) const;
+ int VisibleSide( const Point& rPoint ) const;
+ int IsPolygon() const
{ return maFirstPoint == maLastPoint; }
- virtual void Input( const Point& rPoint );
- virtual void LastPoint();
+ virtual void Input( const Point& rPoint );
+ virtual void LastPoint();
};
inline int ImplEdgePointFilter::VisibleSide( const Point& rPoint ) const
@@ -1539,7 +1539,7 @@ void ImplEdgePointFilter::Input( const Point& rPoint )
if ( mbFirst )
{
maFirstPoint = rPoint;
- mbFirst = FALSE;
+ mbFirst = FALSE;
if ( !nOutside )
mrNextFilter.Input( rPoint );
}
@@ -1580,14 +1580,14 @@ void ImplEdgePointFilter::LastPoint()
void Polygon::Clip( const Rectangle& rRect, BOOL bPolygon )
{
// #105251# Justify rect befor edge filtering
- Rectangle aJustifiedRect( rRect );
+ Rectangle aJustifiedRect( rRect );
aJustifiedRect.Justify();
- USHORT nSourceSize = mpImplPolygon->mnPoints;
- ImplPolygonPointFilter aPolygon( nSourceSize );
- ImplEdgePointFilter aHorzFilter( EDGE_HORZ, aJustifiedRect.Left(), aJustifiedRect.Right(),
+ USHORT nSourceSize = mpImplPolygon->mnPoints;
+ ImplPolygonPointFilter aPolygon( nSourceSize );
+ ImplEdgePointFilter aHorzFilter( EDGE_HORZ, aJustifiedRect.Left(), aJustifiedRect.Right(),
aPolygon );
- ImplEdgePointFilter aVertFilter( EDGE_VERT, aJustifiedRect.Top(), aJustifiedRect.Bottom(),
+ ImplEdgePointFilter aVertFilter( EDGE_VERT, aJustifiedRect.Top(), aJustifiedRect.Bottom(),
aHorzFilter );
for ( USHORT i = 0; i < nSourceSize; i++ )
@@ -1616,7 +1616,7 @@ Rectangle Polygon::GetBoundRect() const
DBG_CHKTHIS( Polygon, NULL );
// Removing the assert. Bezier curves have the attribute that each single
// curve segment defined by four points can not exit the four-point polygon
- // defined by that points. This allows to say that the curve segment can also
+ // defined by that points. This allows to say that the curve segment can also
// never leave the Range of it's defining points.
// The result is that Polygon::GetBoundRect() may not create the minimal
// BoundRect of the Polygon (to get that, use basegfx::B2DPolygon classes),
@@ -1625,11 +1625,11 @@ Rectangle Polygon::GetBoundRect() const
//
// DBG_ASSERT( !mpImplPolygon->mpFlagAry, "GetBoundRect could fail with beziers!" );
- USHORT nCount = mpImplPolygon->mnPoints;
+ USHORT nCount = mpImplPolygon->mnPoints;
if( ! nCount )
return Rectangle();
- long nXMin, nXMax, nYMin, nYMax;
+ long nXMin, nXMax, nYMin, nYMax;
const Point* pPt = &(mpImplPolygon->mpPointAry[0]);
nXMin = nXMax = pPt->X();
@@ -1638,7 +1638,7 @@ Rectangle Polygon::GetBoundRect() const
for ( USHORT i = 0; i < nCount; i++ )
{
pPt = &(mpImplPolygon->mpPointAry[i]);
-
+
if ( pPt->X() < nXMin )
nXMin = pPt->X();
if ( pPt->X() > nXMax )
@@ -1696,15 +1696,15 @@ BOOL Polygon::IsInside( const Point& rPoint ) const
DBG_ASSERT( !mpImplPolygon->mpFlagAry, "IsInside could fail with beziers!" );
const Rectangle aBound( GetBoundRect() );
- const Line aLine( rPoint, Point( aBound.Right() + 100L, rPoint.Y() ) );
- USHORT nCount = mpImplPolygon->mnPoints;
- USHORT nPCounter = 0;
+ const Line aLine( rPoint, Point( aBound.Right() + 100L, rPoint.Y() ) );
+ USHORT nCount = mpImplPolygon->mnPoints;
+ USHORT nPCounter = 0;
if ( ( nCount > 2 ) && aBound.IsInside( rPoint ) )
{
- Point aPt1( mpImplPolygon->mpPointAry[ 0 ] );
- Point aIntersection;
- Point aLastIntersection;
+ Point aPt1( mpImplPolygon->mpPointAry[ 0 ] );
+ Point aIntersection;
+ Point aLastIntersection;
while ( ( aPt1 == mpImplPolygon->mpPointAry[ nCount - 1 ] ) && ( nCount > 3 ) )
nCount--;
@@ -1882,15 +1882,15 @@ SvStream& operator>>( SvStream& rIStream, Polygon& rPoly )
DBG_CHKOBJ( &rPoly, Polygon, NULL );
DBG_ASSERTWARNING( rIStream.GetVersion(), "Polygon::>> - Solar-Version not set on rIStream" );
- USHORT i;
- USHORT nStart;
- USHORT nCurPoints;
- USHORT nPoints;
- unsigned char bShort;
- short nShortX;
- short nShortY;
- long nLongX;
- long nLongY;
+ USHORT i;
+ USHORT nStart;
+ USHORT nCurPoints;
+ USHORT nPoints;
+ unsigned char bShort;
+ short nShortX;
+ short nShortY;
+ long nLongX;
+ long nLongY;
// Anzahl der Punkte einlesen und Array erzeugen
rIStream >> nPoints;
@@ -1964,11 +1964,11 @@ SvStream& operator<<( SvStream& rOStream, const Polygon& rPoly )
DBG_CHKOBJ( &rPoly, Polygon, NULL );
DBG_ASSERTWARNING( rOStream.GetVersion(), "Polygon::<< - Solar-Version not set on rOStream" );
- unsigned char bShort;
- unsigned char bCurShort;
- USHORT nStart;
- USHORT i;
- USHORT nPoints = rPoly.GetSize();
+ unsigned char bShort;
+ unsigned char bCurShort;
+ USHORT nStart;
+ USHORT i;
+ USHORT nPoints = rPoly.GetSize();
// Anzahl der Punkte rausschreiben
rOStream << nPoints;
@@ -2064,7 +2064,7 @@ SvStream& operator<<( SvStream& rOStream, const Polygon& rPoly )
void Polygon::ImplRead( SvStream& rIStream )
{
- sal_uInt8 bHasPolyFlags;
+ sal_uInt8 bHasPolyFlags;
rIStream >> *this
>> bHasPolyFlags;
@@ -2089,7 +2089,7 @@ void Polygon::Read( SvStream& rIStream )
void Polygon::ImplWrite( SvStream& rOStream ) const
{
- sal_uInt8 bHasPolyFlags = mpImplPolygon->mpFlagAry != NULL;
+ sal_uInt8 bHasPolyFlags = mpImplPolygon->mpFlagAry != NULL;
rOStream << *this
<< bHasPolyFlags;
@@ -2200,7 +2200,7 @@ basegfx::B2DPolygon Polygon::getB2DPolygon() const
// if exist, remove double first/last points, set closed and correct control points
basegfx::tools::checkClosed(aRetval);
-
+
if(aRetval.isClosed())
{
// closeWithGeometryChange did really close, so last point(s) were removed.
@@ -2234,7 +2234,7 @@ basegfx::B2DPolygon Polygon::getB2DPolygon() const
// and a memcopy at ImplPolygon creation, but contains no zero-controlpoints
// for straight edges.
Polygon::Polygon(const basegfx::B2DPolygon& rPolygon)
-: mpImplPolygon(0)
+: mpImplPolygon(0)
{
DBG_CTOR( Polygon, NULL );
@@ -2329,7 +2329,7 @@ Polygon::Polygon(const basegfx::B2DPolygon& rPolygon)
}
DBG_ASSERT(nArrayInsert <= nMaxTargetCount, "Polygon::Polygon from basegfx::B2DPolygon: wrong max point count estimation (!)");
-
+
if(nArrayInsert != nMaxTargetCount)
{
mpImplPolygon->ImplSetSize(static_cast< sal_uInt16 >(nArrayInsert), true);
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index 9fc7be7c0dcf..a6b270fd8eff 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,21 +56,21 @@ DBG_NAME( PolyPolygon )
ImplPolyPolygon::ImplPolyPolygon( USHORT nInitSize )
{
- mnRefCount = 1;
- mnCount = nInitSize;
- mnSize = nInitSize;
- mnResize = 16;
- mpPolyAry = new SVPPOLYGON[ nInitSize ];
+ mnRefCount = 1;
+ mnCount = nInitSize;
+ mnSize = nInitSize;
+ mnResize = 16;
+ mpPolyAry = new SVPPOLYGON[ nInitSize ];
}
// -----------------------------------------------------------------------
ImplPolyPolygon::ImplPolyPolygon( const ImplPolyPolygon& rImplPolyPoly )
{
- mnRefCount = 1;
- mnCount = rImplPolyPoly.mnCount;
- mnSize = rImplPolyPoly.mnSize;
- mnResize = rImplPolyPoly.mnResize;
+ mnRefCount = 1;
+ mnCount = rImplPolyPoly.mnCount;
+ mnSize = rImplPolyPoly.mnSize;
+ mnResize = rImplPolyPoly.mnResize;
if ( rImplPolyPoly.mpPolyAry )
{
@@ -191,8 +191,8 @@ void PolyPolygon::Insert( const Polygon& rPoly, USHORT nPos )
mpImplPolyPolygon->mpPolyAry = new SVPPOLYGON[mpImplPolyPolygon->mnSize];
else if ( mpImplPolyPolygon->mnCount == mpImplPolyPolygon->mnSize )
{
- USHORT nOldSize = mpImplPolyPolygon->mnSize;
- USHORT nNewSize = nOldSize + mpImplPolyPolygon->mnResize;
+ USHORT nOldSize = mpImplPolyPolygon->mnSize;
+ USHORT nNewSize = nOldSize + mpImplPolyPolygon->mnResize;
SVPPOLYGON* pNewAry;
if ( nNewSize >= MAX_POLYGONS )
@@ -293,8 +293,8 @@ void PolyPolygon::Clear()
delete mpImplPolyPolygon->mpPolyAry[i];
delete[] mpImplPolyPolygon->mpPolyAry;
mpImplPolyPolygon->mpPolyAry = NULL;
- mpImplPolyPolygon->mnCount = 0;
- mpImplPolyPolygon->mnSize = mpImplPolyPolygon->mnResize;
+ mpImplPolyPolygon->mnCount = 0;
+ mpImplPolyPolygon->mnSize = mpImplPolyPolygon->mnResize;
}
}
}
@@ -307,9 +307,9 @@ void PolyPolygon::Optimize( ULONG nOptimizeFlags, const PolyOptimizeData* pData
if( nOptimizeFlags )
{
- double fArea;
- const BOOL bEdges = ( nOptimizeFlags & POLY_OPTIMIZE_EDGES ) == POLY_OPTIMIZE_EDGES;
- USHORT nPercent = 0;
+ double fArea;
+ const BOOL bEdges = ( nOptimizeFlags & POLY_OPTIMIZE_EDGES ) == POLY_OPTIMIZE_EDGES;
+ USHORT nPercent = 0;
if( bEdges )
{
@@ -362,7 +362,7 @@ void PolyPolygon::AdaptiveSubdivide( PolyPolygon& rResult, const double d ) cons
// -----------------------------------------------------------------------
void PolyPolygon::GetIntersection( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) const
-{
+{
ImplDoOperation( rPolyPoly, rResult, POLY_CLIP_INT );
}
@@ -390,7 +390,7 @@ void PolyPolygon::GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) c
// -----------------------------------------------------------------------
void PolyPolygon::ImplDoOperation( const PolyPolygon& rPolyPoly, PolyPolygon& rResult, ULONG nOperation ) const
-{
+{
// Convert to B2DPolyPolygon, temporarily. It might be
// advantageous in the future, to have a PolyPolygon adaptor that
// just simulates a B2DPolyPolygon here...
@@ -398,7 +398,7 @@ void PolyPolygon::ImplDoOperation( const PolyPolygon& rPolyPoly, PolyPolygon& rR
basegfx::B2DPolyPolygon aMergePolyPolygonB( rPolyPoly.getB2DPolyPolygon() );
// normalize the two polypolygons before. Force properly oriented
- // polygons.
+ // polygons.
aMergePolyPolygonA = basegfx::tools::prepareForPolygonOperation( aMergePolyPolygonA );
aMergePolyPolygonB = basegfx::tools::prepareForPolygonOperation( aMergePolyPolygonB );
@@ -629,15 +629,15 @@ Rectangle PolyPolygon::GetBoundRect() const
{
DBG_CHKTHIS( PolyPolygon, NULL );
- long nXMin=0, nXMax=0, nYMin=0, nYMax=0;
- BOOL bFirst = TRUE;
- USHORT nPolyCount = mpImplPolyPolygon->mnCount;
+ long nXMin=0, nXMax=0, nYMin=0, nYMax=0;
+ BOOL bFirst = TRUE;
+ USHORT nPolyCount = mpImplPolyPolygon->mnCount;
for ( USHORT n = 0; n < nPolyCount; n++ )
{
- const Polygon* pPoly = mpImplPolyPolygon->mpPolyAry[n];
- const Point* pAry = pPoly->GetConstPointAry();
- USHORT nPointCount = pPoly->GetSize();
+ const Polygon* pPoly = mpImplPolyPolygon->mpPolyAry[n];
+ const Point* pAry = pPoly->GetConstPointAry();
+ USHORT nPointCount = pPoly->GetSize();
for ( USHORT i = 0; i < nPointCount; i++ )
{
@@ -747,7 +747,7 @@ SvStream& operator>>( SvStream& rIStream, PolyPolygon& rPolyPoly )
DBG_ASSERTWARNING( rIStream.GetVersion(), "PolyPolygon::>> - Solar-Version not set on rIStream" );
Polygon* pPoly;
- USHORT nPolyCount;
+ USHORT nPolyCount;
// Anzahl der Polygone einlesen
rIStream >> nPolyCount;
@@ -804,7 +804,7 @@ void PolyPolygon::Read( SvStream& rIStream )
DBG_ASSERTWARNING( rIStream.GetVersion(), "PolyPolygon::>> - Solar-Version not set on rIStream" );
Polygon* pPoly;
- USHORT nPolyCount;
+ USHORT nPolyCount;
// Anzahl der Polygone einlesen
rIStream >> nPolyCount;
@@ -870,7 +870,7 @@ PolyPolygon::PolyPolygon(const basegfx::B2DPolyPolygon& rPolyPolygon)
{
DBG_CTOR( PolyPolygon, NULL );
const sal_uInt16 nCount(sal_uInt16(rPolyPolygon.count()));
- DBG_ASSERT(sal_uInt32(nCount) == rPolyPolygon.count(),
+ DBG_ASSERT(sal_uInt32(nCount) == rPolyPolygon.count(),
"PolyPolygon::PolyPolygon: Too many sub-polygons in given basegfx::B2DPolyPolygon (!)");
if ( nCount )
diff --git a/tools/source/generic/svborder.cxx b/tools/source/generic/svborder.cxx
index b9912a97d853..8410c7f304cd 100644
--- a/tools/source/generic/svborder.cxx
+++ b/tools/source/generic/svborder.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,17 +44,17 @@ SvBorder::SvBorder( const Rectangle & rOuter, const Rectangle & rInner )
OSL_ENSURE( aOuter.IsInside( aInner ),
"SvBorder::SvBorder: FALSE == aOuter.IsInside( aInner )" );
- nTop = aInner.Top() - aOuter.Top();
- nRight = aOuter.Right() - aInner.Right();
+ nTop = aInner.Top() - aOuter.Top();
+ nRight = aOuter.Right() - aInner.Right();
nBottom = aOuter.Bottom() - aInner.Bottom();
- nLeft = aInner.Left() - aOuter.Left();
+ nLeft = aInner.Left() - aOuter.Left();
}
Rectangle & operator += ( Rectangle & rRect, const SvBorder & rBorder )
{
// wegen Empty-Rect, GetSize muss als erstes gerufen werden
Size aS( rRect.GetSize() );
- aS.Width() += rBorder.Left() + rBorder.Right();
+ aS.Width() += rBorder.Left() + rBorder.Right();
aS.Height() += rBorder.Top() + rBorder.Bottom();
rRect.Left() -= rBorder.Left();
@@ -67,7 +67,7 @@ Rectangle & operator -= ( Rectangle & rRect, const SvBorder & rBorder )
{
// wegen Empty-Rect, GetSize muss als erstes gerufen werden
Size aS( rRect.GetSize() );
- aS.Width() -= rBorder.Left() + rBorder.Right();
+ aS.Width() -= rBorder.Left() + rBorder.Right();
aS.Height() -= rBorder.Top() + rBorder.Bottom();
rRect.Left() += rBorder.Left();
diff --git a/tools/source/generic/toolsin.cxx b/tools/source/generic/toolsin.cxx
index 1ffded2d1013..39e611319e68 100644
--- a/tools/source/generic/toolsin.cxx
+++ b/tools/source/generic/toolsin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,8 +68,8 @@ void InitTools()
void DeInitTools()
{
- TOOLSINDATA** ppData = (TOOLSINDATA**)GetAppData( SHL_TOOLS );
- TOOLSINDATA* pData = *ppData;
+ TOOLSINDATA** ppData = (TOOLSINDATA**)GetAppData( SHL_TOOLS );
+ TOOLSINDATA* pData = *ppData;
if ( pData )
{
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 55093db3a2a5..6490abef10d9 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -800,7 +800,7 @@ const sal_Char * INetMIME::skipQuotedString(const sal_Char * pBegin,
|| !isWhiteSpace(*p++))
return pBegin;
break;
-
+
case '"':
return p;
@@ -829,7 +829,7 @@ const sal_Unicode * INetMIME::skipQuotedString(const sal_Unicode * pBegin,
|| !isWhiteSpace(*p++))
return pBegin;
break;
-
+
case '"':
return p;
@@ -1088,7 +1088,7 @@ const sal_Unicode * INetMIME::scanQuotedBlock(const sal_Unicode * pBegin,
}
else
++pBegin;
- }
+ }
break;
default:
@@ -3348,22 +3348,22 @@ UniString INetMIME::decodeHeaderFieldBody(HeaderFieldType eType,
bEncodedWord = bEncodedWord && q != pEnd && *q++ == '=';
-// if (bEncodedWord && q != pEnd)
-// switch (*q)
-// {
-// case '\t':
-// case ' ':
-// case '"':
-// case ')':
-// case ',':
-// case '.':
-// case '=':
-// break;
+// if (bEncodedWord && q != pEnd)
+// switch (*q)
+// {
+// case '\t':
+// case ' ':
+// case '"':
+// case ')':
+// case ',':
+// case '.':
+// case '=':
+// break;
//
-// default:
-// bEncodedWord = false;
-// break;
-// }
+// default:
+// bEncodedWord = false;
+// break;
+// }
sal_Unicode * pUnicodeBuffer = 0;
sal_Size nUnicodeSize = 0;
@@ -3465,13 +3465,13 @@ UniString INetMIME::decodeHeaderFieldBody(HeaderFieldType eType,
switch (*p++)
{
-// case '\t':
-// case ' ':
-// case ',':
-// case '.':
-// case '=':
-// bStartEncodedWord = true;
-// break;
+// case '\t':
+// case ' ':
+// case ',':
+// case '.':
+// case '=':
+// bStartEncodedWord = true;
+// break;
case '"':
if (eType != HEADER_FIELD_TEXT && nCommentLevel == 0)
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx
index cc3f587e3e90..241957ab8823 100644
--- a/tools/source/inet/inetmsg.cxx
+++ b/tools/source/inet/inetmsg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -233,7 +233,7 @@ INetMessageHeaderIterator::~INetMessageHeaderIterator (void)
* ImplINetRFC822MessageHeaderData.
*/
namespace
-{
+{
struct ImplINetRFC822MessageHeaderDataImpl
{
const ByteString* operator()()
@@ -261,8 +261,8 @@ namespace
}
};
- struct ImplINetRFC822MessageHeaderData
- : public rtl::StaticAggregate< const ByteString, ImplINetRFC822MessageHeaderDataImpl > {};
+ struct ImplINetRFC822MessageHeaderData
+ : public rtl::StaticAggregate< const ByteString, ImplINetRFC822MessageHeaderDataImpl > {};
}
#define HDR(n) ImplINetRFC822MessageHeaderData::get()[(n)]
@@ -963,8 +963,8 @@ namespace
}
};
- struct ImplINetMIMEMessageHeaderData
- : public rtl::StaticAggregate< const ByteString, ImplINetMIMEMessageHeaderDataImpl > {};
+ struct ImplINetMIMEMessageHeaderData
+ : public rtl::StaticAggregate< const ByteString, ImplINetMIMEMessageHeaderDataImpl > {};
}
#define MIMEHDR(n) ImplINetMIMEMessageHeaderData::get()[(n)]
diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx
index 19434d323d10..b681e7978217 100644
--- a/tools/source/inet/inetstrm.cxx
+++ b/tools/source/inet/inetstrm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/memtools/contnr.cxx b/tools/source/memtools/contnr.cxx
index 736e64af9586..1f8d874d532b 100644
--- a/tools/source/memtools/contnr.cxx
+++ b/tools/source/memtools/contnr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,11 +46,11 @@ DBG_NAME( Container )
/*************************************************************************
|*
-|* DbgCheckCBlock()
+|* DbgCheckCBlock()
|*
-|* Beschreibung Pruefung eines CBlock fuer Debug-Utilities
-|* Ersterstellung MI 30.01.92
-|* Letzte Aenderung TH 24.01.96
+|* Beschreibung Pruefung eines CBlock fuer Debug-Utilities
+|* Ersterstellung MI 30.01.92
+|* Letzte Aenderung TH 24.01.96
|*
*************************************************************************/
@@ -71,11 +71,11 @@ const char* CBlock::DbgCheckCBlock( const void* pBlock )
/*************************************************************************
|*
-|* CBlock::CBlock()
+|* CBlock::CBlock()
|*
-|* Beschreibung Construktor des Verwaltungsblocks
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Construktor des Verwaltungsblocks
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -83,10 +83,10 @@ CBlock::CBlock( USHORT nInitSize, CBlock* _pPrev, CBlock* _pNext )
{
DBG_CTOR( CBlock, DbgCheckCBlock );
- pPrev = _pPrev;
- pNext = _pNext;
- nSize = nInitSize;
- nCount = 0;
+ pPrev = _pPrev;
+ pNext = _pNext;
+ nSize = nInitSize;
+ nCount = 0;
// Datenpuffer anlegen
pNodes = new PVOID[nSize];
@@ -94,11 +94,11 @@ CBlock::CBlock( USHORT nInitSize, CBlock* _pPrev, CBlock* _pNext )
/*************************************************************************
|*
-|* CBlock::CBlock()
+|* CBlock::CBlock()
|*
-|* Beschreibung Construktor des Verwaltungsblocks
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Construktor des Verwaltungsblocks
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -107,10 +107,10 @@ CBlock::CBlock( USHORT _nSize, CBlock* _pPrev )
DBG_CTOR( CBlock, DbgCheckCBlock );
DBG_ASSERT( _nSize, "CBlock::CBlock(): nSize == 0" );
- pPrev = _pPrev;
- pNext = NULL;
- nSize = _nSize;
- nCount = _nSize;
+ pPrev = _pPrev;
+ pNext = NULL;
+ nSize = _nSize;
+ nCount = _nSize;
// Datenpuffer anlegen und initialisieren
pNodes = new PVOID[nSize];
@@ -119,11 +119,11 @@ CBlock::CBlock( USHORT _nSize, CBlock* _pPrev )
/*************************************************************************
|*
-|* CBlock::CBlock()
+|* CBlock::CBlock()
|*
-|* Beschreibung Copy-Construktor des Verwaltungsblocks
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Copy-Construktor des Verwaltungsblocks
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -132,10 +132,10 @@ CBlock::CBlock( const CBlock& r, CBlock* _pPrev )
DBG_CTOR( CBlock, DbgCheckCBlock );
DBG_CHKOBJ( &r, CBlock, DbgCheckCBlock );
- pPrev = _pPrev;
- pNext = NULL;
- nSize = r.nSize;
- nCount = r.nCount;
+ pPrev = _pPrev;
+ pNext = NULL;
+ nSize = r.nSize;
+ nCount = r.nCount;
// Datenpuffer anlegen und Daten kopieren
pNodes = new PVOID[nSize];
@@ -144,11 +144,11 @@ CBlock::CBlock( const CBlock& r, CBlock* _pPrev )
/*************************************************************************
|*
-|* CBlock::~CBlock()
+|* CBlock::~CBlock()
|*
-|* Beschreibung Destruktor des Verwaltungsblocks
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Destruktor des Verwaltungsblocks
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -162,11 +162,11 @@ inline CBlock::~CBlock()
/*************************************************************************
|*
-|* CBlock::Insert()
+|* CBlock::Insert()
|*
-|* Beschreibung Fuegt einen Pointer ein
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Fuegt einen Pointer ein
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -218,11 +218,11 @@ void CBlock::Insert( void* p, USHORT nIndex, USHORT nReSize )
/*************************************************************************
|*
-|* CBlock::Split()
+|* CBlock::Split()
|*
-|* Beschreibung Fuegt einen Pointer ein und splittet den Block
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Fuegt einen Pointer ein und splittet den Block
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -230,8 +230,8 @@ CBlock* CBlock::Split( void* p, USHORT nIndex, USHORT nReSize )
{
DBG_CHKTHIS( CBlock, DbgCheckCBlock );
- USHORT nNewSize;
- USHORT nMiddle;
+ USHORT nNewSize;
+ USHORT nMiddle;
CBlock* pNewBlock;
nMiddle = nCount/2;
@@ -355,11 +355,11 @@ CBlock* CBlock::Split( void* p, USHORT nIndex, USHORT nReSize )
/*************************************************************************
|*
-|* CBlock::Remove()
+|* CBlock::Remove()
|*
-|* Beschreibung Entfernt einen Pointer
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Entfernt einen Pointer
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -414,11 +414,11 @@ void* CBlock::Remove( USHORT nIndex, USHORT nReSize )
/*************************************************************************
|*
-|* CBlock::Replace()
+|* CBlock::Replace()
|*
-|* Beschreibung Ersetzt einen Pointer
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Ersetzt einen Pointer
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -434,12 +434,12 @@ inline void* CBlock::Replace( void* p, USHORT nIndex )
/*************************************************************************
|*
-|* CBlock::GetObjectPtr()
+|* CBlock::GetObjectPtr()
|*
-|* Beschreibung Gibt einen Pointer auf den Pointer aus dem Block
-|* zurueck
-|* Ersterstellung TH 26.01.93
-|* Letzte Aenderung TH 26.01.93
+|* Beschreibung Gibt einen Pointer auf den Pointer aus dem Block
+|* zurueck
+|* Ersterstellung TH 26.01.93
+|* Letzte Aenderung TH 26.01.93
|*
*************************************************************************/
@@ -452,11 +452,11 @@ inline void** CBlock::GetObjectPtr( USHORT nIndex )
/*************************************************************************
|*
-|* CBlock::SetSize()
+|* CBlock::SetSize()
|*
-|* Beschreibung Aendert die Groesse des Blocks
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Aendert die Groesse des Blocks
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -494,11 +494,11 @@ void CBlock::SetSize( USHORT nNewSize )
/*************************************************************************
|*
-|* DbgCheckContainer()
+|* DbgCheckContainer()
|*
-|* Beschreibung Pruefung eines Container fuer Debug-Utilities
-|* Ersterstellung MI 30.01.92
-|* Letzte Aenderung TH 24.01.96
+|* Beschreibung Pruefung eines Container fuer Debug-Utilities
+|* Ersterstellung MI 30.01.92
+|* Letzte Aenderung TH 24.01.96
|*
*************************************************************************/
@@ -516,18 +516,18 @@ const char* Container::DbgCheckContainer( const void* pCont )
/*************************************************************************
|*
-|* ImpCopyContainer()
+|* ImpCopyContainer()
|*
-|* Beschreibung Kopiert alle Daten des Containers
-|* Ersterstellung TH 24.01.96
-|* Letzte Aenderung TH 24.01.96
+|* Beschreibung Kopiert alle Daten des Containers
+|* Ersterstellung TH 24.01.96
+|* Letzte Aenderung TH 24.01.96
|*
*************************************************************************/
void Container::ImpCopyContainer( const Container* pCont2 )
{
// Werte vom uebergebenen Container uebernehmen
- nCount = pCont2->nCount;
+ nCount = pCont2->nCount;
nCurIndex = pCont2->nCurIndex;
nInitSize = pCont2->nInitSize;
nReSize = pCont2->nReSize;
@@ -569,18 +569,18 @@ void Container::ImpCopyContainer( const Container* pCont2 )
else
{
pFirstBlock = NULL;
- pLastBlock = NULL;
- pCurBlock = NULL;
+ pLastBlock = NULL;
+ pCurBlock = NULL;
}
}
/*************************************************************************
|*
-|* Container::Container()
+|* Container::Container()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -633,19 +633,19 @@ Container::Container( USHORT _nBlockSize, USHORT _nInitSize, USHORT _nReSize )
// Werte initialisieren
pFirstBlock = NULL;
- pLastBlock = NULL;
- pCurBlock = NULL;
- nCount = 0;
- nCurIndex = 0;
+ pLastBlock = NULL;
+ pCurBlock = NULL;
+ nCount = 0;
+ nCurIndex = 0;
}
/*************************************************************************
|*
-|* Container::Container()
+|* Container::Container()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -653,7 +653,7 @@ Container::Container( ULONG nSize )
{
DBG_CTOR( Container, DbgCheckContainer );
- nCount = nSize;
+ nCount = nSize;
nCurIndex = 0;
nBlockSize = CONTAINER_MAXBLOCKSIZE;
nInitSize = 1;
@@ -662,8 +662,8 @@ Container::Container( ULONG nSize )
if ( !nSize )
{
pFirstBlock = NULL;
- pLastBlock = NULL;
- pCurBlock = NULL;
+ pLastBlock = NULL;
+ pCurBlock = NULL;
}
else
{
@@ -701,11 +701,11 @@ Container::Container( ULONG nSize )
/*************************************************************************
|*
-|* Container::Container()
+|* Container::Container()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -719,11 +719,11 @@ Container::Container( const Container& r )
/*************************************************************************
|*
-|* Container::~Container()
+|* Container::~Container()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -743,11 +743,11 @@ Container::~Container()
/*************************************************************************
|*
-|* Container::ImpInsert()
+|* Container::ImpInsert()
|*
-|* Beschreibung Interne Methode zum Einfuegen eines Pointers
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung DV 01.07.97
+|* Beschreibung Interne Methode zum Einfuegen eines Pointers
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung DV 01.07.97
|*
*************************************************************************/
@@ -760,8 +760,8 @@ void Container::ImpInsert( void* p, CBlock* pBlock, USHORT nIndex )
if ( !pBlock )
{
pFirstBlock = new CBlock( nInitSize, NULL, NULL );
- pLastBlock = pFirstBlock;
- pCurBlock = pFirstBlock;
+ pLastBlock = pFirstBlock;
+ pCurBlock = pFirstBlock;
}
pFirstBlock->Insert( p, nIndex, nReSize );
}
@@ -828,11 +828,11 @@ void Container::ImpInsert( void* p, CBlock* pBlock, USHORT nIndex )
/*************************************************************************
|*
-|* Container::Insert()
+|* Container::Insert()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -843,11 +843,11 @@ void Container::Insert( void* p )
/*************************************************************************
|*
-|* Container::Insert()
+|* Container::Insert()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -867,7 +867,7 @@ void Container::Insert( void* p, ULONG nIndex )
while ( pTemp->Count() < nIndex )
{
nIndex -= pTemp->Count();
- pTemp = pTemp->GetNextBlock();
+ pTemp = pTemp->GetNextBlock();
}
ImpInsert( p, pTemp, (USHORT)nIndex );
@@ -876,11 +876,11 @@ void Container::Insert( void* p, ULONG nIndex )
/*************************************************************************
|*
-|* Container::Insert()
+|* Container::Insert()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -893,11 +893,11 @@ void Container::Insert( void* pNew, void* pOld )
/*************************************************************************
|*
-|* Container::ImpRemove()
+|* Container::ImpRemove()
|*
-|* Beschreibung Interne Methode zum Entfernen eines Pointers
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung Interne Methode zum Entfernen eines Pointers
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -970,11 +970,11 @@ void* Container::ImpRemove( CBlock* pBlock, USHORT nIndex )
/*************************************************************************
|*
-|* Container::Remove()
+|* Container::Remove()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -989,11 +989,11 @@ void* Container::Remove()
/*************************************************************************
|*
-|* Container::Remove()
+|* Container::Remove()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1009,7 +1009,7 @@ void* Container::Remove( ULONG nIndex )
while ( pTemp->Count() <= nIndex )
{
nIndex -= pTemp->Count();
- pTemp = pTemp->GetNextBlock();
+ pTemp = pTemp->GetNextBlock();
}
return ImpRemove( pTemp, (USHORT)nIndex );
@@ -1018,11 +1018,11 @@ void* Container::Remove( ULONG nIndex )
/*************************************************************************
|*
-|* Container::Replace()
+|* Container::Replace()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1038,11 +1038,11 @@ void* Container::Replace( void* p )
/*************************************************************************
|*
-|* Container::Replace()
+|* Container::Replace()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1060,7 +1060,7 @@ void* Container::Replace( void* p, ULONG nIndex )
while ( pTemp->Count() <= nIndex )
{
nIndex -= pTemp->Count();
- pTemp = pTemp->GetNextBlock();
+ pTemp = pTemp->GetNextBlock();
}
return pTemp->Replace( p, (USHORT)nIndex );
@@ -1069,11 +1069,11 @@ void* Container::Replace( void* p, ULONG nIndex )
/*************************************************************************
|*
-|* Container::SetSize()
+|* Container::SetSize()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1087,7 +1087,7 @@ void Container::SetSize( ULONG nNewSize )
if ( nNewSize != nCount )
{
CBlock* pTemp;
- ULONG nTemp;
+ ULONG nTemp;
// Wird verkleinert
if ( nNewSize < nCount )
@@ -1101,7 +1101,7 @@ void Container::SetSize( ULONG nNewSize )
}
// Alle folgenden Bloecke loeschen
- BOOL bLast = FALSE;
+ BOOL bLast = FALSE;
CBlock* pDelNext;
CBlock* pDelBlock = pTemp->GetNextBlock();
while ( pDelBlock )
@@ -1213,11 +1213,11 @@ void Container::SetSize( ULONG nNewSize )
/*************************************************************************
|*
-|* Container::Clear()
+|* Container::Clear()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1236,19 +1236,19 @@ void Container::Clear()
// Werte zuruecksetzen
pFirstBlock = NULL;
- pLastBlock = NULL;
- pCurBlock = NULL;
- nCount = 0;
- nCurIndex = 0;
+ pLastBlock = NULL;
+ pCurBlock = NULL;
+ nCount = 0;
+ nCurIndex = 0;
}
/*************************************************************************
|*
-|* Container::GetCurObject()
+|* Container::GetCurObject()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1265,11 +1265,11 @@ void* Container::GetCurObject() const
/*************************************************************************
|*
-|* Container::GetCurPos()
+|* Container::GetCurPos()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1284,7 +1284,7 @@ ULONG Container::GetCurPos() const
{
// Block suchen
CBlock* pTemp = pFirstBlock;
- ULONG nTemp = 0;
+ ULONG nTemp = 0;
while ( pTemp != pCurBlock )
{
nTemp += pTemp->Count();
@@ -1297,11 +1297,11 @@ ULONG Container::GetCurPos() const
/*************************************************************************
|*
-|* Container::GetObjectPtr()
+|* Container::GetObjectPtr()
|*
-|* Beschreibung Interne Methode fuer Referenz-Container
-|* Ersterstellung TH 26.01.93
-|* Letzte Aenderung TH 26.01.93
+|* Beschreibung Interne Methode fuer Referenz-Container
+|* Ersterstellung TH 26.01.93
+|* Letzte Aenderung TH 26.01.93
|*
*************************************************************************/
@@ -1319,7 +1319,7 @@ void** Container::GetObjectPtr( ULONG nIndex )
while ( pTemp->Count() <= nIndex )
{
nIndex -= pTemp->Count();
- pTemp = pTemp->GetNextBlock();
+ pTemp = pTemp->GetNextBlock();
}
// Item innerhalb des gefundenen Blocks zurueckgeben
@@ -1329,11 +1329,11 @@ void** Container::GetObjectPtr( ULONG nIndex )
/*************************************************************************
|*
-|* Container::GetObject()
+|* Container::GetObject()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1351,7 +1351,7 @@ void* Container::GetObject( ULONG nIndex ) const
while ( pTemp->Count() <= nIndex )
{
nIndex -= pTemp->Count();
- pTemp = pTemp->GetNextBlock();
+ pTemp = pTemp->GetNextBlock();
}
// Item innerhalb des gefundenen Blocks zurueckgeben
@@ -1361,11 +1361,11 @@ void* Container::GetObject( ULONG nIndex ) const
/*************************************************************************
|*
-|* Container::GetPos()
+|* Container::GetPos()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1373,11 +1373,11 @@ ULONG Container::GetPos( const void* p ) const
{
DBG_CHKTHIS( Container, DbgCheckContainer );
- void** pNodes;
+ void** pNodes;
CBlock* pTemp;
- ULONG nTemp;
- USHORT nBlockCount;
- USHORT i;
+ ULONG nTemp;
+ USHORT nBlockCount;
+ USHORT i;
// Block suchen
pTemp = pFirstBlock;
@@ -1403,11 +1403,11 @@ ULONG Container::GetPos( const void* p ) const
/*************************************************************************
|*
-|* Container::GetPos()
+|* Container::GetPos()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 14.09.94
-|* Letzte Aenderung TH 14.09.94
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 14.09.94
+|* Letzte Aenderung TH 14.09.94
|*
*************************************************************************/
@@ -1421,13 +1421,13 @@ ULONG Container::GetPos( const void* p, ULONG nStartIndex,
return CONTAINER_ENTRY_NOTFOUND;
else
{
- void** pNodes;
- USHORT nBlockCount;
- USHORT i;
+ void** pNodes;
+ USHORT nBlockCount;
+ USHORT i;
// Block suchen
CBlock* pTemp = pFirstBlock;
- ULONG nTemp = 0;
+ ULONG nTemp = 0;
while ( nTemp+pTemp->Count() <= nStartIndex )
{
nTemp += pTemp->Count();
@@ -1498,11 +1498,11 @@ ULONG Container::GetPos( const void* p, ULONG nStartIndex,
/*************************************************************************
|*
-|* Container::Seek()
+|* Container::Seek()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1520,7 +1520,7 @@ void* Container::Seek( ULONG nIndex )
while ( pTemp->Count() <= nIndex )
{
nIndex -= pTemp->Count();
- pTemp = pTemp->GetNextBlock();
+ pTemp = pTemp->GetNextBlock();
}
// Item innerhalb des gefundenen Blocks zurueckgeben
@@ -1532,11 +1532,11 @@ void* Container::Seek( ULONG nIndex )
/*************************************************************************
|*
-|* Container::First()
+|* Container::First()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1558,11 +1558,11 @@ void* Container::First()
/*************************************************************************
|*
-|* Container::Last()
+|* Container::Last()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1584,11 +1584,11 @@ void* Container::Last()
/*************************************************************************
|*
-|* Container::Next()
+|* Container::Next()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1616,11 +1616,11 @@ void* Container::Next()
/*************************************************************************
|*
-|* Container::Prev()
+|* Container::Prev()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1648,11 +1648,11 @@ void* Container::Prev()
/*************************************************************************
|*
-|* Container::operator =()
+|* Container::operator =()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
@@ -1676,11 +1676,11 @@ Container& Container::operator =( const Container& r )
/*************************************************************************
|*
-|* Container::operator ==()
+|* Container::operator ==()
|*
-|* Beschreibung CONTNR.SDW
-|* Ersterstellung TH 17.09.91
-|* Letzte Aenderung TH 17.09.91
+|* Beschreibung CONTNR.SDW
+|* Ersterstellung TH 17.09.91
+|* Letzte Aenderung TH 17.09.91
|*
*************************************************************************/
diff --git a/tools/source/memtools/mempool.cxx b/tools/source/memtools/mempool.cxx
index 4e4886bb8ea9..7bec8980aaba 100644
--- a/tools/source/memtools/mempool.cxx
+++ b/tools/source/memtools/mempool.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx
index 207fadd8a42e..c7586af67f94 100644
--- a/tools/source/memtools/multisel.cxx
+++ b/tools/source/memtools/multisel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -148,12 +148,12 @@ MultiSelection::MultiSelection( const UniString& rString, sal_Unicode cRange, sa
// an die verschiedenen Systeme (UNIX etc.)
// und die gewuenschte Eingabe-Syntax angepasst werden.
- UniString aStr( rString );
- sal_Unicode* pStr = aStr.GetBufferAccess();
- sal_Unicode* pOld = pStr;
- BOOL bReady = FALSE;
- BOOL bUntil = FALSE;
- xub_StrLen nCut = 0;
+ UniString aStr( rString );
+ sal_Unicode* pStr = aStr.GetBufferAccess();
+ sal_Unicode* pOld = pStr;
+ BOOL bReady = FALSE;
+ BOOL bUntil = FALSE;
+ xub_StrLen nCut = 0;
// Hier normieren wir den String, sodass nur Ziffern,
// Semikola als Trenn- und Minus als VonBis-Zeichen
@@ -229,11 +229,11 @@ MultiSelection::MultiSelection( const UniString& rString, sal_Unicode cRange, sa
aStr.ReleaseBufferAccess( nCut );
// Jetzt wird der normierte String ausgewertet ..
- UniString aNumStr;
- Range aRg( 1, RANGE_MAX );
- const sal_Unicode* pCStr = aStr.GetBuffer();
- long nPage = 1;
- long nNum = 1;
+ UniString aNumStr;
+ Range aRg( 1, RANGE_MAX );
+ const sal_Unicode* pCStr = aStr.GetBuffer();
+ long nPage = 1;
+ long nNum = 1;
bUntil = FALSE;
while ( *pCStr )
{
@@ -881,7 +881,7 @@ StringRangeEnumerator::StringRangeEnumerator( const rtl::OUString& i_rInput,
: mnCount( 0 )
, mnMin( i_nMinNumber )
, mnMax( i_nMaxNumber )
- , mnOffset( i_nLogicalOffset )
+ , mnOffset( i_nLogicalOffset )
{
setRange( i_rInput );
}
@@ -952,7 +952,7 @@ bool StringRangeEnumerator::insertRange( sal_Int32 i_nFirst, sal_Int32 i_nLast,
bSuccess = false;
}
}
-
+
return bSuccess;
}
@@ -970,7 +970,7 @@ bool StringRangeEnumerator::setRange( const rtl::OUString& i_rNewRange, bool i_b
}
return true;
}
-
+
const sal_Unicode* pInput = i_rNewRange.getStr();
rtl::OUStringBuffer aNumberBuf( 16 );
sal_Int32 nLastNumber = -1, nNumber = -1;
@@ -1019,11 +1019,11 @@ bool StringRangeEnumerator::setRange( const rtl::OUString& i_rNewRange, bool i_b
bInsertRange = true;
else if( *pInput )
{
-
+
bSuccess = false;
break; // parse error
}
-
+
if( bInsertRange )
{
if( ! insertRange( nLastNumber, nNumber, bSequence, ! i_bStrict ) && i_bStrict )
@@ -1039,7 +1039,7 @@ bool StringRangeEnumerator::setRange( const rtl::OUString& i_rNewRange, bool i_b
}
// insert last entries
insertRange( nLastNumber, nNumber, bSequence, ! i_bStrict );
-
+
return bSuccess;
}
diff --git a/tools/source/memtools/table.cxx b/tools/source/memtools/table.cxx
index 5c0b5ed4fe4d..18f8cbb64a1a 100644
--- a/tools/source/memtools/table.cxx
+++ b/tools/source/memtools/table.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,11 +44,11 @@ ULONG Table::ImplGetIndex( ULONG nKey, ULONG* pIndex ) const
if ( !nCount || (nKey < (ULONG)Container::ImpGetObject(0)) )
return TABLE_ENTRY_NOTFOUND;
- ULONG nLow;
- ULONG nHigh;
- ULONG nMid;
- ULONG nCompareKey;
- void** pNodes = Container::ImpGetOnlyNodes();
+ ULONG nLow;
+ ULONG nHigh;
+ ULONG nMid;
+ ULONG nCompareKey;
+ void** pNodes = Container::ImpGetOnlyNodes();
// Binaeres Suchen
nLow = 0;
@@ -123,7 +123,7 @@ BOOL Table::Insert( ULONG nKey, void* p )
{
USHORT n = 0;
USHORT nTempCount = (USHORT)nCount * 2;
- //<!--Modified by PengYunQuan for resolving a NULL pointer access
+ //<!--Modified by PengYunQuan for resolving a NULL pointer access
if( void** pNodes = Container::ImpGetOnlyNodes() )
{
@@ -153,7 +153,7 @@ BOOL Table::Insert( ULONG nKey, void* p )
if ( ImplGetIndex( nKey, &i ) != TABLE_ENTRY_NOTFOUND )
return FALSE;
}
- //-->Modified by PengYunQuan for resolving a NULL pointer access
+ //-->Modified by PengYunQuan for resolving a NULL pointer access
}
else
{
diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx
index da92d97c18d7..9252068b8d35 100644
--- a/tools/source/memtools/unqidx.cxx
+++ b/tools/source/memtools/unqidx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,10 +46,10 @@ UniqueIndex::UniqueIndex( ULONG _nStartIndex,
ULONG _nInitSize, ULONG _nReSize ) :
Container( _nInitSize )
{
- nReSize = _nReSize;
- nStartIndex = _nStartIndex;
- nUniqIndex = 0;
- nCount = 0;
+ nReSize = _nReSize;
+ nStartIndex = _nStartIndex;
+ nUniqIndex = 0;
+ nCount = 0;
}
/*************************************************************************
diff --git a/tools/source/misc/appendunixshellword.cxx b/tools/source/misc/appendunixshellword.cxx
index 025dd7251e56..a39b81d87343 100644
--- a/tools/source/misc/appendunixshellword.cxx
+++ b/tools/source/misc/appendunixshellword.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/misc/extendapplicationenvironment.cxx b/tools/source/misc/extendapplicationenvironment.cxx
index 1502158c09b0..341deeef107d 100644
--- a/tools/source/misc/extendapplicationenvironment.cxx
+++ b/tools/source/misc/extendapplicationenvironment.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/misc/getprocessworkingdir.cxx b/tools/source/misc/getprocessworkingdir.cxx
index f4dd1f39aec6..9cd51317259d 100644
--- a/tools/source/misc/getprocessworkingdir.cxx
+++ b/tools/source/misc/getprocessworkingdir.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/misc/pathutils.cxx b/tools/source/misc/pathutils.cxx
index 387abd397efb..ab586797ae6b 100644
--- a/tools/source/misc/pathutils.cxx
+++ b/tools/source/misc/pathutils.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/misc/solarmutex.cxx b/tools/source/misc/solarmutex.cxx
index 8bede4e6869a..e32a26284225 100644
--- a/tools/source/misc/solarmutex.cxx
+++ b/tools/source/misc/solarmutex.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/rc/isofallback.cxx b/tools/source/rc/isofallback.cxx
index 94773de56ae0..0d072d1c7ff8 100644
--- a/tools/source/rc/isofallback.cxx
+++ b/tools/source/rc/isofallback.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/rc/rc.cxx b/tools/source/rc/rc.cxx
index face720c701a..ec43b9e1902c 100644
--- a/tools/source/rc/rc.cxx
+++ b/tools/source/rc/rc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/rc/resary.cxx b/tools/source/rc/resary.cxx
index c435a0627713..b680e7d730c7 100644
--- a/tools/source/rc/resary.cxx
+++ b/tools/source/rc/resary.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ ResStringArray::ResStringArray( const ResId& rResId )
{
// load string
m_aStrings.push_back( ImplResStringItem( pMgr->ReadString() ) );
-
+
// load value
m_aStrings[i].m_nValue = pMgr->ReadLong();
}
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 29c6f9411786..0b350acdeb79 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -92,13 +92,13 @@ class InternalResMgr
friend class SimpleResMgr;
friend class ResMgrContainer;
- ImpContent * pContent;
- UINT32 nOffCorrection;
- BYTE * pStringBlock;
- SvStream * pStm;
- BOOL bEqual2Content;
- UINT32 nEntries;
- OUString aFileName;
+ ImpContent * pContent;
+ UINT32 nOffCorrection;
+ BYTE * pStringBlock;
+ SvStream * pStm;
+ BOOL bEqual2Content;
+ UINT32 nEntries;
+ OUString aFileName;
OUString aPrefix;
OUString aResName;
bool bSingular;
@@ -110,15 +110,15 @@ class InternalResMgr
const OUString& aResName,
const com::sun::star::lang::Locale& rLocale );
~InternalResMgr();
- BOOL Create();
+ BOOL Create();
- BOOL IsGlobalAvailable( RESOURCE_TYPE nRT, sal_uInt32 nId ) const;
- void * LoadGlobalRes( RESOURCE_TYPE nRT, sal_uInt32 nId,
+ BOOL IsGlobalAvailable( RESOURCE_TYPE nRT, sal_uInt32 nId ) const;
+ void * LoadGlobalRes( RESOURCE_TYPE nRT, sal_uInt32 nId,
void **pResHandle );
public:
- void FreeGlobalRes( void *, void * );
+ void FreeGlobalRes( void *, void * );
- SvStream * GetBitmapStream( sal_uInt32 nResId );
+ SvStream * GetBitmapStream( sal_uInt32 nResId );
};
// =======================================================================
@@ -663,7 +663,7 @@ BOOL InternalResMgr::Create()
OSL_ENSURE( bEqual2Content, "resource structure wrong" );
if( !bSorted )
::std::sort(pContent,pContent+nEntries,ImpContentLessCompare());
- // qsort( pContent, nEntries, sizeof( ImpContent ), Compare );
+ // qsort( pContent, nEntries, sizeof( ImpContent ), Compare );
bDone = TRUE;
}
@@ -696,7 +696,7 @@ void* InternalResMgr::LoadGlobalRes( RESOURCE_TYPE nRT, sal_uInt32 nId,
// Anfang der Strings suchen
sal_uInt64 nValue = ((sal_uInt64(nRT) << 32) | nId);
ImpContent* pEnd = (pContent + nEntries);
- ImpContent* pFind = ::std::lower_bound( pContent,
+ ImpContent* pFind = ::std::lower_bound( pContent,
pEnd,
nValue,
ImpContentMixLessCompare());
diff --git a/tools/source/ref/errinf.cxx b/tools/source/ref/errinf.cxx
index 106fe98fed06..c40a3c28b335 100644
--- a/tools/source/ref/errinf.cxx
+++ b/tools/source/ref/errinf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -371,7 +371,7 @@ USHORT ErrorHandler::HandleError_Impl(
// Error 1 ist General Error im Sfx
if(pInfo->GetErrorCode()!=1) {
HandleError_Impl(1, USHRT_MAX, bJustCreateString, rError);
- }
+ }
else {
DBG_ERROR("Error 1 nicht gehandeled");
}
diff --git a/tools/source/ref/globname.cxx b/tools/source/ref/globname.cxx
index 82db356dc130..7a7f5c56c738 100644
--- a/tools/source/ref/globname.cxx
+++ b/tools/source/ref/globname.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ ImpSvGlobalName::ImpSvGlobalName( int )
}
/*************************************************************************
-|* ImpSvGlobalName::operator ==()
+|* ImpSvGlobalName::operator ==()
*************************************************************************/
BOOL ImpSvGlobalName::operator == ( const ImpSvGlobalName & rObj ) const
{
@@ -59,7 +59,7 @@ BOOL ImpSvGlobalName::operator == ( const ImpSvGlobalName & rObj ) const
}
/*************************************************************************
-|* SvGlobalName::SvGlobalName()
+|* SvGlobalName::SvGlobalName()
*************************************************************************/
SvGlobalName::SvGlobalName()
{
@@ -109,7 +109,7 @@ SvGlobalName::SvGlobalName( UINT32 n1, USHORT n2, USHORT n3,
}
/*************************************************************************
-|* SvGlobalName::~SvGlobalName()
+|* SvGlobalName::~SvGlobalName()
*************************************************************************/
SvGlobalName::~SvGlobalName()
{
@@ -119,7 +119,7 @@ SvGlobalName::~SvGlobalName()
}
/*************************************************************************
-|* SvGlobalName::operator = ()
+|* SvGlobalName::operator = ()
*************************************************************************/
SvGlobalName & SvGlobalName::operator = ( const SvGlobalName & rObj )
{
@@ -132,7 +132,7 @@ SvGlobalName & SvGlobalName::operator = ( const SvGlobalName & rObj )
}
/*************************************************************************
-|* SvGlobalName::NewImp()
+|* SvGlobalName::NewImp()
*************************************************************************/
void SvGlobalName::NewImp()
{
@@ -145,8 +145,8 @@ void SvGlobalName::NewImp()
}
/*************************************************************************
-|* SvGlobalName::operator << ()
-|* SvGlobalName::operator >> ()
+|* SvGlobalName::operator << ()
+|* SvGlobalName::operator >> ()
*************************************************************************/
SvStream& operator << ( SvStream& rOStr, const SvGlobalName & rObj )
{
@@ -186,7 +186,7 @@ SvStream& operator >> ( SvStream& rStr, SvGlobalName & rObj )
/*************************************************************************
-|* SvGlobalName::operator < ()
+|* SvGlobalName::operator < ()
*************************************************************************/
BOOL SvGlobalName::operator < ( const SvGlobalName & rObj ) const
{
@@ -221,7 +221,7 @@ BOOL SvGlobalName::operator < ( const SvGlobalName & rObj ) const
}
/*************************************************************************
-|* SvGlobalName::operator +=()
+|* SvGlobalName::operator +=()
*************************************************************************/
SvGlobalName & SvGlobalName::operator += ( UINT32 n )
{
@@ -244,7 +244,7 @@ SvGlobalName & SvGlobalName::operator += ( UINT32 n )
}
/*************************************************************************
-|* SvGlobalName::operator ==()
+|* SvGlobalName::operator ==()
*************************************************************************/
BOOL SvGlobalName::operator == ( const SvGlobalName & rObj ) const
{
@@ -258,11 +258,11 @@ void SvGlobalName::MakeFromMemory( void * pData )
}
/*************************************************************************
-|* SvGlobalName::MakeId()
+|* SvGlobalName::MakeId()
*************************************************************************/
BOOL SvGlobalName::MakeId( const String & rIdStr )
{
- ByteString aStr( rIdStr, RTL_TEXTENCODING_ASCII_US );
+ ByteString aStr( rIdStr, RTL_TEXTENCODING_ASCII_US );
sal_Char * pStr = (sal_Char *)aStr.GetBuffer();
if( rIdStr.Len() == 36
&& '-' == pStr[ 8 ] && '-' == pStr[ 13 ]
@@ -338,7 +338,7 @@ BOOL SvGlobalName::MakeId( const String & rIdStr )
}
/*************************************************************************
-|* SvGlobalName::GetctorName()
+|* SvGlobalName::GetctorName()
*************************************************************************/
String SvGlobalName::GetctorName() const
{
@@ -368,7 +368,7 @@ String SvGlobalName::GetctorName() const
}
/*************************************************************************
-|* SvGlobalName::GetHexName()
+|* SvGlobalName::GetHexName()
*************************************************************************/
String SvGlobalName::GetHexName() const
{
@@ -406,7 +406,7 @@ String SvGlobalName::GetHexName() const
/************** SvGlobalNameList ****************************************/
/************************************************************************/
/*************************************************************************
-|* SvGlobalNameList::SvGlobalNameList()
+|* SvGlobalNameList::SvGlobalNameList()
*************************************************************************/
SvGlobalNameList::SvGlobalNameList()
: aList( 1, 1 )
@@ -414,7 +414,7 @@ SvGlobalNameList::SvGlobalNameList()
}
/*************************************************************************
-|* SvGlobalNameList::~SvGlobalNameList()
+|* SvGlobalNameList::~SvGlobalNameList()
*************************************************************************/
SvGlobalNameList::~SvGlobalNameList()
{
@@ -428,7 +428,7 @@ SvGlobalNameList::~SvGlobalNameList()
}
/*************************************************************************
-|* SvGlobalNameList::Append()
+|* SvGlobalNameList::Append()
*************************************************************************/
void SvGlobalNameList::Append( const SvGlobalName & rName )
{
@@ -437,7 +437,7 @@ void SvGlobalNameList::Append( const SvGlobalName & rName )
}
/*************************************************************************
-|* SvGlobalNameList::GetObject()
+|* SvGlobalNameList::GetObject()
*************************************************************************/
SvGlobalName SvGlobalNameList::GetObject( ULONG nPos )
{
@@ -445,7 +445,7 @@ SvGlobalName SvGlobalNameList::GetObject( ULONG nPos )
}
/*************************************************************************
-|* SvGlobalNameList::IsEntry()
+|* SvGlobalNameList::IsEntry()
*************************************************************************/
BOOL SvGlobalNameList::IsEntry( const SvGlobalName & rName )
{
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx
index 2cc814a40455..48db82685b31 100644
--- a/tools/source/ref/pstm.cxx
+++ b/tools/source/ref/pstm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@
/***********************************************************************/
/************************************************************************
-|* SvClassManager::Register()
+|* SvClassManager::Register()
*************************************************************************/
void SvClassManager::Register( USHORT nClassId, SvCreateInstancePersist pFunc )
{
@@ -49,7 +49,7 @@ void SvClassManager::Register( USHORT nClassId, SvCreateInstancePersist pFunc )
}
/************************************************************************
-|* SvClassManager::Get()
+|* SvClassManager::Get()
*************************************************************************/
SvCreateInstancePersist SvClassManager::Get( USHORT nClassId )
{
@@ -67,11 +67,11 @@ SvPersistBaseMemberList::SvPersistBaseMemberList(
USHORT nInitSz, USHORT nResize )
: SuperSvPersistBaseMemberList( nInitSz, nResize ){}
-#define PERSIST_LIST_VER (BYTE)0
-#define PERSIST_LIST_DBGUTIL (BYTE)0x80
+#define PERSIST_LIST_VER (BYTE)0
+#define PERSIST_LIST_DBGUTIL (BYTE)0x80
/************************************************************************
-|* SvPersistBaseMemberList::WriteOnlyStreamedObjects()
+|* SvPersistBaseMemberList::WriteOnlyStreamedObjects()
*************************************************************************/
void SvPersistBaseMemberList::WriteObjects( SvPersistStream & rStm,
BOOL bOnlyStreamed ) const
@@ -112,7 +112,7 @@ void SvPersistBaseMemberList::WriteObjects( SvPersistStream & rStm,
}
/************************************************************************
-|* operator << ()
+|* operator << ()
*************************************************************************/
SvPersistStream& operator << ( SvPersistStream & rStm,
const SvPersistBaseMemberList & rLst )
@@ -122,7 +122,7 @@ SvPersistStream& operator << ( SvPersistStream & rStm,
}
/************************************************************************
-|* operator >> ()
+|* operator >> ()
*************************************************************************/
SvPersistStream& operator >> ( SvPersistStream & rStm,
SvPersistBaseMemberList & rLst )
@@ -165,11 +165,11 @@ SvPersistStream& operator >> ( SvPersistStream & rStm,
//=========================================================================
SvPersistStream::SvPersistStream
(
- SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und
+ SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und
gespeichert werdn k"onnen */
- SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf
+ SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf
dem der PersistStream arbeitet */
- UINT32 nStartIdxP /* Ab diesem Index werden die Id's f"ur
+ UINT32 nStartIdxP /* Ab diesem Index werden die Id's f"ur
die Objekte vergeben, er muss gr"osser
als Null sein. */
)
@@ -179,7 +179,7 @@ SvPersistStream::SvPersistStream
, nStartIdx( nStartIdxP )
, pRefStm( NULL )
, nFlags( 0 )
-/* [Beschreibung]
+/* [Beschreibung]
Der Konstruktor der Klasse SvPersistStream. Die Objekte rMgr und
pStream d"urfen nicht ver"andert werden, solange sie in einem
@@ -200,9 +200,9 @@ SvPersistStream::SvPersistStream
//=========================================================================
SvPersistStream::SvPersistStream
(
- SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und
+ SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und
gespeichert werdn k"onnen */
- SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf
+ SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf
dem der PersistStream arbeitet */
const SvPersistStream & rPersStm
/* Wenn PersistStream's verschachtelt werden,
@@ -215,7 +215,7 @@ SvPersistStream::SvPersistStream
, nStartIdx( rPersStm.GetCurMaxIndex() +1 )
, pRefStm( &rPersStm )
, nFlags( 0 )
-/* [Beschreibung]
+/* [Beschreibung]
Der Konstruktor der Klasse SvPersistStream. Die Objekte rMgr und
pStream d"urfen nicht ver"andert werden, solange sie in einem
@@ -237,7 +237,7 @@ SvPersistStream::SvPersistStream
//=========================================================================
SvPersistStream::~SvPersistStream()
-/* [Beschreibung]
+/* [Beschreibung]
Der Detruktor ruft die Methode <SvPersistStream::SetStream>
mit NULL.
@@ -249,10 +249,10 @@ SvPersistStream::~SvPersistStream()
//=========================================================================
void SvPersistStream::SetStream
(
- SvStream * pStream /* auf diesem Stream arbeitet der PersistStream */
+ SvStream * pStream /* auf diesem Stream arbeitet der PersistStream */
)
-/* [Beschreibung]
+/* [Beschreibung]
Es wird ein Medium (pStream) eingesetzt, auf dem PersistStream arbeitet.
Dieses darf nicht von aussen modifiziert werden, solange es
@@ -281,13 +281,13 @@ void SvPersistStream::SetStream
//=========================================================================
USHORT SvPersistStream::IsA() const
-/* [Beschreibung]
+/* [Beschreibung]
Gibt den Identifier dieses Streamklasse zur"uck.
[R"uckgabewert]
- USHORT ID_PERSISTSTREAM wird zur"uckgegeben.
+ USHORT ID_PERSISTSTREAM wird zur"uckgegeben.
[Querverweise]
@@ -300,7 +300,7 @@ USHORT SvPersistStream::IsA() const
/*************************************************************************
-|* SvPersistStream::ResetError()
+|* SvPersistStream::ResetError()
*************************************************************************/
void SvPersistStream::ResetError()
{
@@ -310,7 +310,7 @@ void SvPersistStream::ResetError()
}
/*************************************************************************
-|* SvPersistStream::GetData()
+|* SvPersistStream::GetData()
*************************************************************************/
ULONG SvPersistStream::GetData( void* pData, ULONG nSize )
{
@@ -321,7 +321,7 @@ ULONG SvPersistStream::GetData( void* pData, ULONG nSize )
}
/*************************************************************************
-|* SvPersistStream::PutData()
+|* SvPersistStream::PutData()
*************************************************************************/
ULONG SvPersistStream::PutData( const void* pData, ULONG nSize )
{
@@ -332,7 +332,7 @@ ULONG SvPersistStream::PutData( const void* pData, ULONG nSize )
}
/*************************************************************************
-|* SvPersistStream::Seek()
+|* SvPersistStream::Seek()
*************************************************************************/
ULONG SvPersistStream::SeekPos( ULONG nPos )
{
@@ -343,14 +343,14 @@ ULONG SvPersistStream::SeekPos( ULONG nPos )
}
/*************************************************************************
-|* SvPersistStream::FlushData()
+|* SvPersistStream::FlushData()
*************************************************************************/
void SvPersistStream::FlushData()
{
}
/*************************************************************************
-|* SvPersistStream::GetCurMaxIndex()
+|* SvPersistStream::GetCurMaxIndex()
*************************************************************************/
ULONG SvPersistStream::GetCurMaxIndex( const SvPersistUIdx & rIdx ) const
{
@@ -367,7 +367,7 @@ ULONG SvPersistStream::GetCurMaxIndex( const SvPersistUIdx & rIdx ) const
}
/*************************************************************************
-|* SvPersistStream::GetIndex()
+|* SvPersistStream::GetIndex()
*************************************************************************/
ULONG SvPersistStream::GetIndex( SvPersistBase * pObj ) const
{
@@ -378,7 +378,7 @@ ULONG SvPersistStream::GetIndex( SvPersistBase * pObj ) const
}
/*************************************************************************
-|* SvPersistStream::GetObject)
+|* SvPersistStream::GetObject)
*************************************************************************/
SvPersistBase * SvPersistStream::GetObject( ULONG nIdx ) const
{
@@ -390,30 +390,30 @@ SvPersistBase * SvPersistStream::GetObject( ULONG nIdx ) const
}
//=========================================================================
-#define LEN_1 0x80
-#define LEN_2 0x40
-#define LEN_4 0x20
-#define LEN_5 0x10
+#define LEN_1 0x80
+#define LEN_2 0x40
+#define LEN_4 0x20
+#define LEN_5 0x10
UINT32 SvPersistStream::ReadCompressed
(
- SvStream & rStm /* Aus diesem Stream werden die komprimierten Daten
+ SvStream & rStm /* Aus diesem Stream werden die komprimierten Daten
gelesen */
)
-/* [Beschreibung]
+/* [Beschreibung]
Ein im Stream komprimiert abgelegtes Wort wird gelesen. In welchem
Format komprimiert wird, siehe <SvPersistStream::WriteCompressed>.
[R"uckgabewert]
- UINT32 Das nicht komprimierte Wort wird zur"uckgegeben.
+ UINT32 Das nicht komprimierte Wort wird zur"uckgegeben.
[Querverweise]
*/
{
UINT32 nRet(0);
- BYTE nMask;
+ BYTE nMask;
rStm >> nMask;
if( nMask & LEN_1 )
nRet = ~LEN_1 & nMask;
@@ -457,16 +457,16 @@ void SvPersistStream::WriteCompressed
(
SvStream & rStm,/* Aus diesem Stream werden die komprimierten Daten
gelesen */
- UINT32 nVal /* Dieser Wert wird komprimiert geschrieben */
+ UINT32 nVal /* Dieser Wert wird komprimiert geschrieben */
)
-/* [Beschreibung]
+/* [Beschreibung]
Das "ubergebene Wort wird komprimiert und in den Stream
geschrieben. Folgendermassen wir komprimiert.
- nVal < 0x80 => 0x80 + nVal ist 1 Byte gross.
- nVal < 0x4000 => 0x4000 + nVal ist 2 Byte gross.
- nVal < 0x20000000 => 0x20000000 + nVal ist 4 Byte gross.
- nVal > 0x1FFFFFFF => 0x1000000000+ nVal ist 5 Byte gross.
+ nVal < 0x80 => 0x80 + nVal ist 1 Byte gross.
+ nVal < 0x4000 => 0x4000 + nVal ist 2 Byte gross.
+ nVal < 0x20000000 => 0x20000000 + nVal ist 4 Byte gross.
+ nVal > 0x1FFFFFFF => 0x1000000000+ nVal ist 5 Byte gross.
[Querverweise]
@@ -499,14 +499,14 @@ void SvPersistStream::WriteCompressed
//=========================================================================
UINT32 SvPersistStream::WriteDummyLen()
-/* [Beschreibung]
+/* [Beschreibung]
Die Methode schreibt 4 Byte in den Stream und gibt die Streamposition
zur"uck.
[R"uckgabewert]
- UINT32 Die Position hinter der L"angenangabe wird zur"uckgegeben.
+ UINT32 Die Position hinter der L"angenangabe wird zur"uckgegeben.
[Beispiel]
@@ -537,10 +537,10 @@ UINT32 SvPersistStream::WriteDummyLen()
//=========================================================================
void SvPersistStream::WriteLen
(
- UINT32 nObjPos /* die Position + 4, an der die L"ange geschrieben
+ UINT32 nObjPos /* die Position + 4, an der die L"ange geschrieben
wird. */
)
-/* [Beschreibung]
+/* [Beschreibung]
Die Methode schreibt die Differenz zwischen der aktuellen und
nObjPos als UINT32 an die Position nObjPos -4 im Stream. Danach
@@ -574,11 +574,11 @@ void SvPersistStream::WriteLen
//=========================================================================
UINT32 SvPersistStream::ReadLen
(
- UINT32 * pTestPos /* Die Position des Streams, nach dem Lesen der
+ UINT32 * pTestPos /* Die Position des Streams, nach dem Lesen der
L"ange, wird zur"uckgegeben. Es darf auch NULL
"ubergeben werden. */
)
-/* [Beschreibung]
+/* [Beschreibung]
Liest die L"ange die vorher mit <SvPersistStream::WriteDummyLen>
und <SvPersistStream::WriteLen> geschrieben wurde.
@@ -594,19 +594,19 @@ UINT32 SvPersistStream::ReadLen
//=========================================================================
// Dateirormat abw"arts kompatibel
#ifdef STOR_NO_OPTIMIZE
-#define P_VER (BYTE)0x00
+#define P_VER (BYTE)0x00
#else
-#define P_VER (BYTE)0x01
+#define P_VER (BYTE)0x01
#endif
-#define P_VER_MASK (BYTE)0x0F
-#define P_ID_0 (BYTE)0x80
-#define P_OBJ (BYTE)0x40
-#define P_DBGUTIL (BYTE)0x20
-#define P_ID (BYTE)0x10
+#define P_VER_MASK (BYTE)0x0F
+#define P_ID_0 (BYTE)0x80
+#define P_OBJ (BYTE)0x40
+#define P_DBGUTIL (BYTE)0x20
+#define P_ID (BYTE)0x10
#ifdef STOR_NO_OPTIMIZE
-#define P_STD P_DBGUTIL
+#define P_STD P_DBGUTIL
#else
-#define P_STD 0
+#define P_STD 0
#endif
static void WriteId
@@ -726,15 +726,15 @@ SvPersistStream& SvPersistStream::WritePointer
//=========================================================================
UINT32 SvPersistStream::ReadObj
(
- SvPersistBase * & rpObj,
- BOOL bRegister
+ SvPersistBase * & rpObj,
+ BOOL bRegister
)
{
- BYTE nHdr;
- UINT32 nId = 0;
- USHORT nClassId;
+ BYTE nHdr;
+ UINT32 nId = 0;
+ USHORT nClassId;
- rpObj = NULL; // Spezifikation: Im Fehlerfall 0.
+ rpObj = NULL; // Spezifikation: Im Fehlerfall 0.
ReadId( *this, nHdr, nId, nClassId );
// reine Versionsnummer durch maskieren
diff --git a/tools/source/ref/ref.cxx b/tools/source/ref/ref.cxx
index a8fd05b9da83..42ae49975a50 100644
--- a/tools/source/ref/ref.cxx
+++ b/tools/source/ref/ref.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,14 +35,14 @@
SV_IMPL_REF_LIST( SvRefBase,SvRefBase* )
/**************************************************************************
-#* SvRefBase::~SvRefBase()
+#* SvRefBase::~SvRefBase()
**************************************************************************/
SvRefBase::~SvRefBase()
{
}
/**************************************************************************
-#* SvRefBase::QueryDelete()
+#* SvRefBase::QueryDelete()
**************************************************************************/
void SvRefBase::QueryDelete()
{
diff --git a/tools/source/solar/solar.c b/tools/source/solar/solar.c
index 96cd7af90983..1834ab033cab 100644
--- a/tools/source/solar/solar.c
+++ b/tools/source/solar/solar.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,20 +56,20 @@
#include <setjmp.h>
#endif
-#define printTypeSize(Type,Name) printf( "sizeof(%s)\t= %d\n", Name, sizeof (Type) )
+#define printTypeSize(Type,Name) printf( "sizeof(%s)\t= %d\n", Name, sizeof (Type) )
-#define isSignedType(Type) (((Type)-1) < 0)
-#define printTypeSign(Type,Name) printf( "%s\t= %s %s\n", Name, ( isSignedType(Type) ? "signed" : "unsigned" ), Name )
+#define isSignedType(Type) (((Type)-1) < 0)
+#define printTypeSign(Type,Name) printf( "%s\t= %s %s\n", Name, ( isSignedType(Type) ? "signed" : "unsigned" ), Name )
/*************************************************************************
|*
-|* IsBigEndian()
+|* IsBigEndian()
|*
-|* Beschreibung True, wenn CPU BigEndian ist
+|* Beschreibung True, wenn CPU BigEndian ist
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
int IsBigEndian()
@@ -80,12 +80,12 @@ int IsBigEndian()
/*************************************************************************
|*
-|* IsStackGrowingDown()
+|* IsStackGrowingDown()
|*
-|* Beschreibung True, wenn der Stack nach unten waechst
+|* Beschreibung True, wenn der Stack nach unten waechst
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
int IsStackGrowingDown_2( int * pI )
@@ -102,13 +102,13 @@ int IsStackGrowingDown()
/*************************************************************************
|*
-|* GetStackAlignment()
+|* GetStackAlignment()
|*
-|* Beschreibung Alignment von char Parametern, die (hoffentlich)
-|* ueber den Stack uebergeben werden
+|* Beschreibung Alignment von char Parametern, die (hoffentlich)
+|* ueber den Stack uebergeben werden
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
int GetStackAlignment_3( char*p, long l, int i, short s, char b, char c, ... )
@@ -138,7 +138,7 @@ int GetStackAlignment()
/*************************************************************************
|*
-|* Typdeclarations for memory access test functions
+|* Typdeclarations for memory access test functions
|*
*************************************************************************/
typedef enum { t_char, t_short, t_int, t_long, t_double } Type;
@@ -147,12 +147,12 @@ typedef int (*TestFunc)( Type, void* );
/*************************************************************************
|*
-|* PrintArgs()
+|* PrintArgs()
|*
-|* Beschreibung Testfunktion fuer variable Parameter
+|* Beschreibung Testfunktion fuer variable Parameter
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
#ifdef I_STDARG
@@ -184,12 +184,12 @@ va_dcl
#ifndef USE_FORK_TO_CHECK
/*************************************************************************
|*
-|* SignalHdl()
+|* SignalHdl()
|*
-|* Beschreibung faengt SIGBUS und SIGSEGV in check() ab
+|* Beschreibung faengt SIGBUS und SIGSEGV in check() ab
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
static jmp_buf check_env;
@@ -197,22 +197,22 @@ static int bSignal;
void SignalHdl( int sig )
{
bSignal = 1;
-
+
fprintf( stderr, "Signal %d caught\n", sig );
- signal( SIGSEGV, SIG_DFL );
- signal( SIGBUS, SIG_DFL );
+ signal( SIGSEGV, SIG_DFL );
+ signal( SIGBUS, SIG_DFL );
siglongjmp( check_env, sig );
}
#endif
/*************************************************************************
|*
-|* check()
+|* check()
|*
-|* Beschreibung Testet MemoryZugriff (read/write)
+|* Beschreibung Testet MemoryZugriff (read/write)
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
int check( TestFunc func, Type eT, void* p )
@@ -239,11 +239,11 @@ int check( TestFunc func, Type eT, void* p )
if ( !sigsetjmp( check_env, 1 ) )
{
- signal( SIGSEGV, SignalHdl );
- signal( SIGBUS, SignalHdl );
+ signal( SIGSEGV, SignalHdl );
+ signal( SIGBUS, SignalHdl );
result = func( eT, p );
- signal( SIGSEGV, SIG_DFL );
- signal( SIGBUS, SIG_DFL );
+ signal( SIGSEGV, SIG_DFL );
+ signal( SIGBUS, SIG_DFL );
}
if ( bSignal )
@@ -255,46 +255,46 @@ int check( TestFunc func, Type eT, void* p )
/*************************************************************************
|*
-|* GetAtAddress()
+|* GetAtAddress()
|*
-|* Beschreibung memory read access
+|* Beschreibung memory read access
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
int GetAtAddress( Type eT, void* p )
{
switch ( eT )
{
- case t_char: return *((char*)p);
- case t_short: return *((short*)p);
- case t_int: return *((int*)p);
- case t_long: return *((long*)p);
- case t_double: return *((double*)p);
+ case t_char: return *((char*)p);
+ case t_short: return *((short*)p);
+ case t_int: return *((int*)p);
+ case t_long: return *((long*)p);
+ case t_double: return *((double*)p);
}
abort();
}
/*************************************************************************
|*
-|* SetAtAddress()
+|* SetAtAddress()
|*
-|* Beschreibung memory write access
+|* Beschreibung memory write access
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
int SetAtAddress( Type eT, void* p )
{
switch ( eT )
{
- case t_char: return *((char*)p) = 0;
- case t_short: return *((short*)p) = 0;
- case t_int: return *((int*)p) = 0;
- case t_long: return *((long*)p) = 0;
- case t_double: return *((double*)p)= 0;
+ case t_char: return *((char*)p) = 0;
+ case t_short: return *((short*)p) = 0;
+ case t_int: return *((int*)p) = 0;
+ case t_long: return *((long*)p) = 0;
+ case t_double: return *((double*)p)= 0;
}
abort();
}
@@ -303,24 +303,24 @@ char* TypeName( Type eT )
{
switch ( eT )
{
- case t_char: return "char";
- case t_short: return "short";
- case t_int: return "int";
- case t_long: return "long";
- case t_double: return "double";
+ case t_char: return "char";
+ case t_short: return "short";
+ case t_int: return "int";
+ case t_long: return "long";
+ case t_double: return "double";
}
abort();
}
/*************************************************************************
|*
-|* Check(Get|Set)Access()
+|* Check(Get|Set)Access()
|*
-|* Beschreibung Testet MemoryZugriff (read/write)
-|* Zugriffsverletzungen werden abgefangen
+|* Beschreibung Testet MemoryZugriff (read/write)
+|* Zugriffsverletzungen werden abgefangen
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
int CheckGetAccess( Type eT, void* p )
@@ -349,19 +349,19 @@ int CheckSetAccess( Type eT, void* p )
/*************************************************************************
|*
-|* GetAlignment()
+|* GetAlignment()
|*
-|* Beschreibung Bestimmt das Alignment verschiedener Typen
+|* Beschreibung Bestimmt das Alignment verschiedener Typen
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
int GetAlignment( Type eT )
{
- char a[ 16*8 ];
- long p = (long)(void*)a;
- int i;
+ char a[ 16*8 ];
+ long p = (long)(void*)a;
+ int i;
/* clear a[...] to set legal value for double access */
for ( i = 0; i < 16*8; i++ )
@@ -376,37 +376,37 @@ int GetAlignment( Type eT )
/*************************************************************************
|*
-|* struct Description
+|* struct Description
|*
-|* Beschreibung Beschreibt die Parameter der Architektur
+|* Beschreibung Beschreibt die Parameter der Architektur
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
struct Description
{
- int bBigEndian;
- int bStackGrowsDown;
- int nStackAlignment;
- int nAlignment[3]; /* 2,4,8 */
+ int bBigEndian;
+ int bStackGrowsDown;
+ int nStackAlignment;
+ int nAlignment[3]; /* 2,4,8 */
};
/*************************************************************************
|*
-|* Description_Ctor()
+|* Description_Ctor()
|*
-|* Beschreibung Bestimmt die Parameter der Architektur
+|* Beschreibung Bestimmt die Parameter der Architektur
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
void Description_Ctor( struct Description* pThis )
{
- pThis->bBigEndian = IsBigEndian();
- pThis->bStackGrowsDown = IsStackGrowingDown();
- pThis->nStackAlignment = GetStackAlignment();
+ pThis->bBigEndian = IsBigEndian();
+ pThis->bStackGrowsDown = IsStackGrowingDown();
+ pThis->nStackAlignment = GetStackAlignment();
if ( sizeof(short) != 2 )
abort();
@@ -415,7 +415,7 @@ void Description_Ctor( struct Description* pThis )
abort();
pThis->nAlignment[1] = GetAlignment( t_int );
- if ( sizeof(long) == 8 )
+ if ( sizeof(long) == 8 )
pThis->nAlignment[2] = GetAlignment( t_long );
else if ( sizeof(double) == 8 )
pThis->nAlignment[2] = GetAlignment( t_double );
@@ -425,12 +425,12 @@ void Description_Ctor( struct Description* pThis )
/*************************************************************************
|*
-|* Description_Print()
+|* Description_Print()
|*
-|* Beschreibung Schreibt die Parameter der Architektur als Header
+|* Beschreibung Schreibt die Parameter der Architektur als Header
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
void Description_Print( struct Description* pThis, char* name )
@@ -462,12 +462,12 @@ void Description_Print( struct Description* pThis, char* name )
/*************************************************************************
|*
-|* InfoMemoryAccess()
+|* InfoMemoryAccess()
|*
-|* Beschreibung Informeller Bytezugriffstest
+|* Beschreibung Informeller Bytezugriffstest
|*
-|* Ersterstellung EG 26.06.96
-|* Letzte Aenderung
+|* Ersterstellung EG 26.06.96
+|* Letzte Aenderung
|*
*************************************************************************/
void InfoMemoryAccess( char* p )
@@ -485,12 +485,12 @@ void InfoMemoryAccess( char* p )
/*************************************************************************
|*
-|* InfoMemoryTypeAccess()
+|* InfoMemoryTypeAccess()
|*
-|* Beschreibung Informeller Zugriffstest verschiedener Typen
+|* Beschreibung Informeller Zugriffstest verschiedener Typen
|*
-|* Ersterstellung EG 15.08.96
-|* Letzte Aenderung
+|* Ersterstellung EG 15.08.96
+|* Letzte Aenderung
|*
*************************************************************************/
void InfoMemoryTypeAccess( Type eT )
@@ -510,7 +510,7 @@ void InfoMemoryTypeAccess( Type eT )
}
/************************************************************************
*
- * Use C code to determine the characteristics of the building platform.
+ * Use C code to determine the characteristics of the building platform.
*
************************************************************************/
int main( int argc, char* argv[] )
diff --git a/tools/source/stream/cachestr.cxx b/tools/source/stream/cachestr.cxx
index bd7bbccdde46..5c5d4bc273a7 100644
--- a/tools/source/stream/cachestr.cxx
+++ b/tools/source/stream/cachestr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,10 +49,10 @@ SvCacheStream::SvCacheStream( ULONG nMaxMemSize )
if( !nMaxMemSize )
nMaxMemSize = 20480;
SvStream::bIsWritable = TRUE;
- nMaxSize = nMaxMemSize;
- bPersistent = FALSE;
- pSwapStream = 0;
- pCurrentStream = new SvMemoryStream( nMaxMemSize );
+ nMaxSize = nMaxMemSize;
+ bPersistent = FALSE;
+ pSwapStream = 0;
+ pCurrentStream = new SvMemoryStream( nMaxMemSize );
pTempFile = 0;
}
@@ -79,11 +79,11 @@ SvCacheStream::SvCacheStream( const String &rFileName,
nExpectedSize = 4096;
SvStream::bIsWritable = TRUE;
- nMaxSize = nMaxMemSize;
- bPersistent = TRUE;
- aFileName = rFileName;
- pSwapStream = 0;
- pCurrentStream = new SvMemoryStream( nExpectedSize );
+ nMaxSize = nMaxMemSize;
+ bPersistent = TRUE;
+ aFileName = rFileName;
+ pSwapStream = 0;
+ pCurrentStream = new SvMemoryStream( nExpectedSize );
pTempFile = 0;
}
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index ee1c513adba6..0b13c3e567a0 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -878,9 +878,9 @@ sal_Bool SvStream::ReadCString( ByteString& rStr )
while( *pPtr && nLen )
++pPtr, --nLen;
- bEnd = ( nReallyRead < sizeof(buf)-1 ) // read less than attempted to read
+ bEnd = ( nReallyRead < sizeof(buf)-1 ) // read less than attempted to read
|| ( ( nLen > 0 ) // OR it is inside the block we read
- && ( 0 == *pPtr ) // AND found a string terminator
+ && ( 0 == *pPtr ) // AND found a string terminator
);
rStr.Append( buf, ::sal::static_int_cast< xub_StrLen >( pPtr - buf ) );
diff --git a/tools/source/stream/strmos2.cxx b/tools/source/stream/strmos2.cxx
index 1e3281ef718a..b760364d3230 100644
--- a/tools/source/stream/strmos2.cxx
+++ b/tools/source/stream/strmos2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/stream/strmsys.cxx b/tools/source/stream/strmsys.cxx
index 664d4c96f236..9a1ce77d256e 100644
--- a/tools/source/stream/strmsys.cxx
+++ b/tools/source/stream/strmsys.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index 5e03bcf2b237..61313bce3f0b 100644
--- a/tools/source/stream/strmunx.cxx
+++ b/tools/source/stream/strmunx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#include <errno.h>
#include <unistd.h>
#include <limits.h>
-#include <stdlib.h> // fuer getenv()
+#include <stdlib.h> // fuer getenv()
#include <tools/debug.hxx>
#include <tools/fsys.hxx>
@@ -66,10 +66,10 @@ namespace { struct LockMutex : public rtl::Static< osl::Mutex, LockMutex > {}; }
class InternalStreamLock
{
- sal_Size m_nStartPos;
- sal_Size m_nEndPos;
- SvFileStream* m_pStream;
- struct stat m_aStat;
+ sal_Size m_nStartPos;
+ sal_Size m_nEndPos;
+ SvFileStream* m_pStream;
+ struct stat m_aStat;
InternalStreamLock( sal_Size, sal_Size, SvFileStream* );
~InternalStreamLock();
@@ -211,7 +211,7 @@ static sal_uInt32 GetSvError( int nErrno )
{ EACCES, SVSTREAM_ACCESS_DENIED },
{ EBADF, SVSTREAM_INVALID_HANDLE },
#if defined( RS6000 ) || defined( ALPHA ) || defined( HP9000 ) || defined( NETBSD ) || defined(FREEBSD) || defined(MACOSX) || \
- defined(OPENBSD) || defined(__FreeBSD_kernel__) || defined ( AIX )
+ defined(OPENBSD) || defined(__FreeBSD_kernel__) || defined ( AIX )
{ EDEADLK, SVSTREAM_LOCKING_VIOLATION },
#else
{ EDEADLOCK, SVSTREAM_LOCKING_VIOLATION },
@@ -226,14 +226,14 @@ static sal_uInt32 GetSvError( int nErrno )
{ EISDIR, SVSTREAM_PATH_NOT_FOUND },
{ ELOOP, SVSTREAM_PATH_NOT_FOUND },
#if ! defined( RS6000 ) && ! defined( ALPHA ) && ! defined( NETBSD ) && ! defined (FREEBSD) && ! defined (MACOSX) && \
- !defined(OPENBSD) && ! defined(__FreeBSD_kernel__)
+ !defined(OPENBSD) && ! defined(__FreeBSD_kernel__)
{ EMULTIHOP, SVSTREAM_PATH_NOT_FOUND },
{ ENOLINK, SVSTREAM_PATH_NOT_FOUND },
#endif
{ ENOTDIR, SVSTREAM_PATH_NOT_FOUND },
- { ETXTBSY, SVSTREAM_ACCESS_DENIED },
- { EEXIST, SVSTREAM_CANNOT_MAKE },
- { ENOSPC, SVSTREAM_DISK_FULL },
+ { ETXTBSY, SVSTREAM_ACCESS_DENIED },
+ { EEXIST, SVSTREAM_CANNOT_MAKE },
+ { ENOSPC, SVSTREAM_DISK_FULL },
{ (int)0xFFFF, SVSTREAM_GENERALERROR }
};
@@ -527,10 +527,10 @@ sal_Bool SvFileStream::LockRange( sal_Size nByteOffset, sal_Size nBytes )
// um einen Haenger im Zusammenspiel mit einem Linux
// NFS-2-Server (kein Lockdaemon) zu verhindern.
// File-Locking ?ber NFS ist generell ein Performancekiller.
- // HR, 22.10.1997 fuer SOLARIS
- // CP, 30.11.1997 fuer HPUX
- // ER, 18.12.1997 fuer IRIX
- // HR, 18.05.1998 Environmentvariable
+ // HR, 22.10.1997 fuer SOLARIS
+ // CP, 30.11.1997 fuer HPUX
+ // ER, 18.12.1997 fuer IRIX
+ // HR, 18.05.1998 Environmentvariable
if ( pFileLockEnvVar == (char*)1 )
pFileLockEnvVar = getenv("STAR_ENABLE_FILE_LOCKING");
diff --git a/tools/source/stream/strmwnt.cxx b/tools/source/stream/strmwnt.cxx
index 953016dce475..107e1a0bcfda 100644
--- a/tools/source/stream/strmwnt.cxx
+++ b/tools/source/stream/strmwnt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -483,7 +483,7 @@ void SvFileStream::Open( const String& rFilename, StreamMode nMode )
ByteString aFileNameA( aFilename, osl_getThreadTextEncoding());
FSysRedirector::DoRedirect( aFilename );
#endif
- SetLastError( ERROR_SUCCESS ); // ggf. durch Redirector geaendert!
+ SetLastError( ERROR_SUCCESS ); // ggf. durch Redirector geaendert!
/*
#ifdef DBG_UTIL
diff --git a/tools/source/stream/vcompat.cxx b/tools/source/stream/vcompat.cxx
index 77ab0ef5f840..f6223e8aed5d 100644
--- a/tools/source/stream/vcompat.cxx
+++ b/tools/source/stream/vcompat.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/string/debugprint.cxx b/tools/source/string/debugprint.cxx
index b95e8ce50c23..a93343dc2460 100644
--- a/tools/source/string/debugprint.cxx
+++ b/tools/source/string/debugprint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/string/strascii.cxx b/tools/source/string/strascii.cxx
index 20ffae533f68..341f77609ada 100644
--- a/tools/source/string/strascii.cxx
+++ b/tools/source/string/strascii.cxx
@@ -2,7 +2,7 @@
#/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/string/strcvt.cxx b/tools/source/string/strcvt.cxx
index 81588c48e6cf..c8ae9b4f4ce6 100644
--- a/tools/source/string/strcvt.cxx
+++ b/tools/source/string/strcvt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -115,19 +115,19 @@ ByteString::ByteString( const sal_Unicode* pUniStr, xub_StrLen nLen,
static sal_uChar aImplByteTab[256] =
{
- 0, 1, 2, 3, 4, 5, 6, 7,
- 8, 9, 10, 11, 12, 13, 14, 15,
- 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31,
- 32, 33, 34, 35, 36, 37, 38, 39,
- 40, 41, 42, 43, 44, 45, 46, 47,
- 48, 49, 50, 51, 52, 53, 54, 55,
- 56, 57, 58, 59, 60, 61, 62, 63,
- 64, 65, 66, 67, 68, 69, 70, 71,
- 72, 73, 74, 75, 76, 77, 78, 79,
- 80, 81, 82, 83, 84, 85, 86, 87,
- 88, 89, 90, 91, 92, 93, 94, 95,
- 96, 97, 98, 99, 100, 101, 102, 103,
+ 0, 1, 2, 3, 4, 5, 6, 7,
+ 8, 9, 10, 11, 12, 13, 14, 15,
+ 16, 17, 18, 19, 20, 21, 22, 23,
+ 24, 25, 26, 27, 28, 29, 30, 31,
+ 32, 33, 34, 35, 36, 37, 38, 39,
+ 40, 41, 42, 43, 44, 45, 46, 47,
+ 48, 49, 50, 51, 52, 53, 54, 55,
+ 56, 57, 58, 59, 60, 61, 62, 63,
+ 64, 65, 66, 67, 68, 69, 70, 71,
+ 72, 73, 74, 75, 76, 77, 78, 79,
+ 80, 81, 82, 83, 84, 85, 86, 87,
+ 88, 89, 90, 91, 92, 93, 94, 95,
+ 96, 97, 98, 99, 100, 101, 102, 103,
104, 105, 106, 107, 108, 109, 110, 111,
112, 113, 114, 115, 116, 117, 118, 119,
120, 121, 122, 123, 124, 125, 126, 127,
@@ -153,20 +153,20 @@ static sal_uChar aImplByteTab[256] =
struct Impl1ByteUnicodeTabData
{
- rtl_TextEncoding meTextEncoding;
- sal_Unicode maUniTab[256];
- Impl1ByteUnicodeTabData* mpNext;
+ rtl_TextEncoding meTextEncoding;
+ sal_Unicode maUniTab[256];
+ Impl1ByteUnicodeTabData* mpNext;
};
// -----------------------------------------------------------------------
struct Impl1ByteConvertTabData
{
- rtl_TextEncoding meSrcTextEncoding;
- rtl_TextEncoding meDestTextEncoding;
- sal_uChar maConvertTab[256];
- sal_uChar maRepConvertTab[256];
- Impl1ByteConvertTabData* mpNext;
+ rtl_TextEncoding meSrcTextEncoding;
+ rtl_TextEncoding meDestTextEncoding;
+ sal_uChar maConvertTab[256];
+ sal_uChar maRepConvertTab[256];
+ Impl1ByteConvertTabData* mpNext;
};
// =======================================================================
@@ -174,11 +174,11 @@ struct Impl1ByteConvertTabData
sal_Unicode* ImplGet1ByteUnicodeTab( rtl_TextEncoding eTextEncoding )
{
#ifndef BOOTSTRAP
- TOOLSINDATA* pToolsData = ImplGetToolsInData();
+ TOOLSINDATA* pToolsData = ImplGetToolsInData();
#else
- TOOLSINDATA* pToolsData = 0x0;
+ TOOLSINDATA* pToolsData = 0x0;
#endif
- Impl1ByteUnicodeTabData* pTab = pToolsData->mpFirstUniTabData;
+ Impl1ByteUnicodeTabData* pTab = pToolsData->mpFirstUniTabData;
while ( pTab )
{
@@ -198,10 +198,10 @@ sal_Unicode* ImplGet1ByteUnicodeTab( rtl_TextEncoding eTextEncoding )
pTab->meTextEncoding = eTextEncoding;
pTab->mpNext = pToolsData->mpFirstUniTabData;
- rtl_TextToUnicodeConverter hConverter;
- sal_uInt32 nInfo;
- sal_Size nSrcBytes;
- sal_Size nDestChars;
+ rtl_TextToUnicodeConverter hConverter;
+ sal_uInt32 nInfo;
+ sal_Size nSrcBytes;
+ sal_Size nDestChars;
hConverter = rtl_createTextToUnicodeConverter( eTextEncoding );
nDestChars = rtl_convertTextToUnicode( hConverter, 0,
(const sal_Char*)aImplByteTab, 256,
@@ -231,11 +231,11 @@ static sal_uChar* ImplGet1ByteConvertTab( rtl_TextEncoding eSrcTextEncoding,
BOOL bReplace )
{
#ifndef BOOTSTRAP
- TOOLSINDATA* pToolsData = ImplGetToolsInData();
+ TOOLSINDATA* pToolsData = ImplGetToolsInData();
#else
- TOOLSINDATA* pToolsData = 0x0;
+ TOOLSINDATA* pToolsData = 0x0;
#endif
- Impl1ByteConvertTabData* pTab = pToolsData->mpFirstConvertTabData;
+ Impl1ByteConvertTabData* pTab = pToolsData->mpFirstConvertTabData;
while ( pTab )
{
@@ -266,14 +266,14 @@ static sal_uChar* ImplGet1ByteConvertTab( rtl_TextEncoding eSrcTextEncoding,
pTab->meDestTextEncoding = eDestTextEncoding;
pTab->mpNext = pToolsData->mpFirstConvertTabData;
- rtl_TextToUnicodeConverter hConverter;
- rtl_UnicodeToTextConverter hConverter2;
- sal_uInt32 nInfo;
- sal_Size nSrcBytes;
- sal_Size nDestChars;
- sal_Size nSrcChars;
- sal_Size nDestBytes;
- sal_Unicode aTempBuf[256];
+ rtl_TextToUnicodeConverter hConverter;
+ rtl_UnicodeToTextConverter hConverter2;
+ sal_uInt32 nInfo;
+ sal_Size nSrcBytes;
+ sal_Size nDestChars;
+ sal_Size nSrcChars;
+ sal_Size nDestBytes;
+ sal_Unicode aTempBuf[256];
hConverter = rtl_createTextToUnicodeConverter( eSrcTextEncoding );
nDestChars = rtl_convertTextToUnicode( hConverter, 0,
(const sal_Char*)aImplByteTab, 256,
@@ -326,12 +326,12 @@ static sal_uChar* ImplGet1ByteConvertTab( rtl_TextEncoding eSrcTextEncoding,
void ImplDeleteCharTabData()
{
#ifndef BOOTSTRAP
- TOOLSINDATA* pToolsData = ImplGetToolsInData();
+ TOOLSINDATA* pToolsData = ImplGetToolsInData();
#else
- TOOLSINDATA* pToolsData = 0x0;
+ TOOLSINDATA* pToolsData = 0x0;
#endif
- Impl1ByteUnicodeTabData* pTempUniTab;
- Impl1ByteUnicodeTabData* pUniTab = pToolsData->mpFirstUniTabData;
+ Impl1ByteUnicodeTabData* pTempUniTab;
+ Impl1ByteUnicodeTabData* pUniTab = pToolsData->mpFirstUniTabData;
while ( pUniTab )
{
pTempUniTab = pUniTab->mpNext;
@@ -340,8 +340,8 @@ void ImplDeleteCharTabData()
}
pToolsData->mpFirstUniTabData = NULL;
- Impl1ByteConvertTabData* pTempConvertTab;
- Impl1ByteConvertTabData* pConvertTab = pToolsData->mpFirstConvertTabData;
+ Impl1ByteConvertTabData* pTempConvertTab;
+ Impl1ByteConvertTabData* pConvertTab = pToolsData->mpFirstConvertTabData;
while ( pConvertTab )
{
pTempConvertTab = pConvertTab->mpNext;
@@ -375,12 +375,12 @@ void ByteString::ImplStringConvert(
}
else
{
- rtl_UnicodeToTextConverter hSrcConverter = rtl_createTextToUnicodeConverter( eSource );
- sal_uInt32 nInfo;
- sal_Size nSrcBytes;
- sal_Size nDestChars;
- sal_Size nTempLen;
- sal_Unicode* pTempBuf;
+ rtl_UnicodeToTextConverter hSrcConverter = rtl_createTextToUnicodeConverter( eSource );
+ sal_uInt32 nInfo;
+ sal_Size nSrcBytes;
+ sal_Size nDestChars;
+ sal_Size nTempLen;
+ sal_Unicode* pTempBuf;
nTempLen = mpData->mnLen;
pTempBuf = new sal_Unicode[nTempLen];
nDestChars = rtl_convertTextToUnicode( hSrcConverter, 0,
@@ -483,8 +483,8 @@ sal_Unicode ByteString::ConvertToUnicode( char c, rtl_TextEncoding eTextEncoding
char ByteString::ConvertFromUnicode( sal_Unicode c, rtl_TextEncoding eTextEncoding, BOOL bReplace )
{
- sal_Size nLen;
- char aBuf[30];
+ sal_Size nLen;
+ char aBuf[30];
nLen = ConvertFromUnicode( c, aBuf, sizeof( aBuf ), eTextEncoding, bReplace );
if ( nLen == 1 )
return aBuf[0];
@@ -500,11 +500,11 @@ sal_Unicode ByteString::ConvertToUnicode( const char* pChar, sal_Size* pLen, rtl
if ( eTextEncoding == RTL_TEXTENCODING_DONTKNOW )
return 0;
- rtl_TextToUnicodeConverter hConverter;
- sal_uInt32 nInfo;
- sal_Size nSrcBytes;
- sal_Size nDestChars;
- sal_Unicode nConvChar;
+ rtl_TextToUnicodeConverter hConverter;
+ sal_uInt32 nInfo;
+ sal_Size nSrcBytes;
+ sal_Size nDestChars;
+ sal_Unicode nConvChar;
hConverter = rtl_createTextToUnicodeConverter( eTextEncoding );
nDestChars = rtl_convertTextToUnicode( hConverter, 0,
(const sal_Char*)pChar, *pLen,
@@ -537,12 +537,12 @@ sal_Size ByteString::ConvertFromUnicode( sal_Unicode c, char* pBuf, sal_Size nBu
if ( eTextEncoding == RTL_TEXTENCODING_DONTKNOW )
return '\0';
- rtl_UnicodeToTextConverter hConverter;
- sal_uInt32 nInfo;
- sal_Size nSrcChars;
- sal_Size nDestBytes;
- sal_Unicode cUni = c;
- sal_uInt32 nFlags = RTL_UNICODETOTEXT_FLAGS_NONSPACING_IGNORE |
+ rtl_UnicodeToTextConverter hConverter;
+ sal_uInt32 nInfo;
+ sal_Size nSrcChars;
+ sal_Size nDestBytes;
+ sal_Unicode cUni = c;
+ sal_uInt32 nFlags = RTL_UNICODETOTEXT_FLAGS_NONSPACING_IGNORE |
RTL_UNICODETOTEXT_FLAGS_CONTROL_IGNORE |
RTL_UNICODETOTEXT_FLAGS_FLUSH;
if ( bReplace )
diff --git a/tools/source/string/strimp.cxx b/tools/source/string/strimp.cxx
index 72e6fcdea593..e77a4ace4874 100644
--- a/tools/source/string/strimp.cxx
+++ b/tools/source/string/strimp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,9 +82,9 @@ static sal_Int32 ImplStringCompareWithoutZero( const STRCODE* pStr1, const STRCO
static sal_Int32 ImplStringICompare( const STRCODE* pStr1, const STRCODE* pStr2 )
{
- sal_Int32 nRet;
- STRCODE c1;
- STRCODE c2;
+ sal_Int32 nRet;
+ STRCODE c1;
+ STRCODE c2;
do
{
// Ist das Zeichen zwischen 'A' und 'Z' dann umwandeln
@@ -111,9 +111,9 @@ static sal_Int32 ImplStringICompare( const STRCODE* pStr1, const STRCODE* pStr2
static sal_Int32 ImplStringICompare( const STRCODE* pStr1, const STRCODE* pStr2,
xub_StrLen nCount )
{
- sal_Int32 nRet = 0;
- STRCODE c1;
- STRCODE c2;
+ sal_Int32 nRet = 0;
+ STRCODE c1;
+ STRCODE c2;
do
{
if ( !nCount )
@@ -144,9 +144,9 @@ static sal_Int32 ImplStringICompare( const STRCODE* pStr1, const STRCODE* pStr2,
static sal_Int32 ImplStringICompareWithoutZero( const STRCODE* pStr1, const STRCODE* pStr2,
sal_Int32 nCount )
{
- sal_Int32 nRet = 0;
- STRCODE c1;
- STRCODE c2;
+ sal_Int32 nRet = 0;
+ STRCODE c1;
+ STRCODE c2;
do
{
if ( !nCount )
@@ -189,10 +189,10 @@ const char* DBGCHECKSTRING( const void* pString )
static STRINGDATA* ImplAllocData( sal_Int32 nLen )
{
// Dann kopiere die Daten
- STRINGDATA* pData = (STRINGDATA*)rtl_allocateMemory( sizeof(STRINGDATA)+(nLen*sizeof( STRCODE )) );
- pData->mnRefCount = 1;
- pData->mnLen = nLen;
- pData->maStr[nLen] = 0;
+ STRINGDATA* pData = (STRINGDATA*)rtl_allocateMemory( sizeof(STRINGDATA)+(nLen*sizeof( STRCODE )) );
+ pData->mnRefCount = 1;
+ pData->mnLen = nLen;
+ pData->maStr[nLen] = 0;
return pData;
}
@@ -200,8 +200,8 @@ static STRINGDATA* ImplAllocData( sal_Int32 nLen )
static STRINGDATA* _ImplCopyData( STRINGDATA* pData )
{
- unsigned int nSize = sizeof(STRINGDATA)+(pData->mnLen*sizeof( STRCODE ));
- STRINGDATA* pNewData = (STRINGDATA*)rtl_allocateMemory( nSize );
+ unsigned int nSize = sizeof(STRINGDATA)+(pData->mnLen*sizeof( STRCODE ));
+ STRINGDATA* pNewData = (STRINGDATA*)rtl_allocateMemory( nSize );
memcpy( pNewData, pData, nSize );
pNewData->mnRefCount = 1;
STRING_RELEASE((STRING_TYPE *)pData);
@@ -247,7 +247,7 @@ inline sal_Int32 ImplGetCopyLen( sal_Int32 nStrLen, sal_Int32 nCopyLen )
// =======================================================================
-STRING::STRING()
+STRING::STRING()
: mpData(NULL)
{
DBG_CTOR( STRING, DBGCHECKSTRING );
@@ -1091,7 +1091,7 @@ STRING& STRING::ToLowerAscii()
sal_Int32 nIndex = 0;
sal_Int32 nLen = mpData->mnLen;
- STRCODE* pStr = mpData->maStr;
+ STRCODE* pStr = mpData->maStr;
while ( nIndex < nLen )
{
// Ist das Zeichen zwischen 'A' und 'Z' dann umwandeln
@@ -1117,7 +1117,7 @@ STRING& STRING::ToUpperAscii()
sal_Int32 nIndex = 0;
sal_Int32 nLen = mpData->mnLen;
- STRCODE* pStr = mpData->maStr;
+ STRCODE* pStr = mpData->maStr;
while ( nIndex < nLen )
{
// Ist das Zeichen zwischen 'a' und 'z' dann umwandeln
@@ -1142,11 +1142,11 @@ STRING& STRING::ConvertLineEnd( LineEnd eLineEnd )
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
// Zeilenumbrueche ermitteln und neue Laenge berechnen
- BOOL bConvert = FALSE; // Muss konvertiert werden
- const STRCODE* pStr = mpData->maStr; // damit es schneller geht
- xub_StrLen nLineEndLen = (eLineEnd == LINEEND_CRLF) ? 2 : 1;
- xub_StrLen nLen = 0; // Ziel-Laenge
- xub_StrLen i = 0; // Source-Zaehler
+ BOOL bConvert = FALSE; // Muss konvertiert werden
+ const STRCODE* pStr = mpData->maStr; // damit es schneller geht
+ xub_StrLen nLineEndLen = (eLineEnd == LINEEND_CRLF) ? 2 : 1;
+ xub_StrLen nLen = 0; // Ziel-Laenge
+ xub_StrLen i = 0; // Source-Zaehler
while ( i < mpData->mnLen )
{
@@ -1187,7 +1187,7 @@ STRING& STRING::ConvertLineEnd( LineEnd eLineEnd )
{
// Neuen String anlegen
STRINGDATA* pNewData = ImplAllocData( nLen );
- xub_StrLen j = 0;
+ xub_StrLen j = 0;
i = 0;
while ( i < mpData->mnLen )
{
@@ -1196,7 +1196,7 @@ STRING& STRING::ConvertLineEnd( LineEnd eLineEnd )
{
if ( eLineEnd == LINEEND_CRLF )
{
- pNewData->maStr[j] = _CR;
+ pNewData->maStr[j] = _CR;
pNewData->maStr[j+1] = _LF;
j += 2;
}
@@ -1464,9 +1464,9 @@ xub_StrLen STRING::Match( const STRING& rStr ) const
return STRING_MATCH;
// Suche bis Stringende nach dem ersten nicht uebereinstimmenden Zeichen
- const STRCODE* pStr1 = mpData->maStr;
- const STRCODE* pStr2 = rStr.mpData->maStr;
- xub_StrLen i = 0;
+ const STRCODE* pStr1 = mpData->maStr;
+ const STRCODE* pStr2 = rStr.mpData->maStr;
+ xub_StrLen i = 0;
while ( i < mpData->mnLen )
{
// Stimmt das Zeichen nicht ueberein, dann abbrechen
@@ -1491,8 +1491,8 @@ xub_StrLen STRING::Match( const STRCODE* pCharStr ) const
return STRING_MATCH;
// Suche bis Stringende nach dem ersten nicht uebereinstimmenden Zeichen
- const STRCODE* pStr = mpData->maStr;
- xub_StrLen i = 0;
+ const STRCODE* pStr = mpData->maStr;
+ xub_StrLen i = 0;
while ( i < mpData->mnLen )
{
// Stimmt das Zeichen nicht ueberein, dann abbrechen
@@ -1512,8 +1512,8 @@ xub_StrLen STRING::Search( STRCODE c, xub_StrLen nIndex ) const
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
- sal_Int32 nLen = mpData->mnLen;
- const STRCODE* pStr = mpData->maStr;
+ sal_Int32 nLen = mpData->mnLen;
+ const STRCODE* pStr = mpData->maStr;
pStr += nIndex;
while ( nIndex < nLen )
{
@@ -1580,7 +1580,7 @@ xub_StrLen STRING::Search( const STRCODE* pCharStr, xub_StrLen nIndex ) const
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
sal_Int32 nLen = mpData->mnLen;
- xub_StrLen nStrLen = ImplStringLen( pCharStr );
+ xub_StrLen nStrLen = ImplStringLen( pCharStr );
// Falls die Laenge des uebergebenen Strings 0 ist oder der Index
// hinter dem String liegt, dann wurde der String nicht gefunden
@@ -1646,13 +1646,13 @@ xub_StrLen STRING::SearchChar( const STRCODE* pChars, xub_StrLen nIndex ) const
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
- sal_Int32 nLen = mpData->mnLen;
- const STRCODE* pStr = mpData->maStr;
+ sal_Int32 nLen = mpData->mnLen;
+ const STRCODE* pStr = mpData->maStr;
pStr += nIndex;
while ( nIndex < nLen )
{
- STRCODE c = *pStr;
- const STRCODE* pCompStr = pChars;
+ STRCODE c = *pStr;
+ const STRCODE* pCompStr = pChars;
while ( *pCompStr )
{
if ( *pCompStr == c )
@@ -1683,8 +1683,8 @@ xub_StrLen STRING::SearchCharBackward( const STRCODE* pChars, xub_StrLen nIndex
nIndex--;
pStr--;
- STRCODE c =*pStr;
- const STRCODE* pCompStr = pChars;
+ STRCODE c =*pStr;
+ const STRCODE* pCompStr = pChars;
while ( *pCompStr )
{
if ( *pCompStr == c )
@@ -1702,8 +1702,8 @@ xub_StrLen STRING::SearchAndReplace( STRCODE c, STRCODE cRep, xub_StrLen nIndex
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
- sal_Int32 nLen = mpData->mnLen;
- const STRCODE* pStr = mpData->maStr;
+ sal_Int32 nLen = mpData->mnLen;
+ const STRCODE* pStr = mpData->maStr;
pStr += nIndex;
while ( nIndex < nLen )
{
@@ -1757,9 +1757,9 @@ void STRING::SearchAndReplaceAll( STRCODE c, STRCODE cRep )
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
- sal_Int32 nLen = mpData->mnLen;
- const STRCODE* pStr = mpData->maStr;
- sal_Int32 nIndex = 0;
+ sal_Int32 nLen = mpData->mnLen;
+ const STRCODE* pStr = mpData->maStr;
+ sal_Int32 nIndex = 0;
while ( nIndex < nLen )
{
if ( *pStr == c )
@@ -1816,10 +1816,10 @@ xub_StrLen STRING::GetTokenCount( STRCODE cTok ) const
if ( !mpData->mnLen )
return 0;
- xub_StrLen nTokCount = 1;
- sal_Int32 nLen = mpData->mnLen;
- const STRCODE* pStr = mpData->maStr;
- sal_Int32 nIndex = 0;
+ xub_StrLen nTokCount = 1;
+ sal_Int32 nLen = mpData->mnLen;
+ const STRCODE* pStr = mpData->maStr;
+ sal_Int32 nIndex = 0;
while ( nIndex < nLen )
{
// Stimmt das Tokenzeichen ueberein, dann erhoehe TokCount
@@ -1840,11 +1840,11 @@ void STRING::SetToken( xub_StrLen nToken, STRCODE cTok, const STRING& rStr,
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
DBG_CHKOBJ( &rStr, STRING, DBGCHECKSTRING );
- const STRCODE* pStr = mpData->maStr;
- xub_StrLen nLen = (xub_StrLen)mpData->mnLen;
- xub_StrLen nTok = 0;
- xub_StrLen nFirstChar = nIndex;
- xub_StrLen i = nFirstChar;
+ const STRCODE* pStr = mpData->maStr;
+ xub_StrLen nLen = (xub_StrLen)mpData->mnLen;
+ xub_StrLen nTok = 0;
+ xub_StrLen nFirstChar = nIndex;
+ xub_StrLen i = nFirstChar;
// Bestimme die Token-Position und Laenge
pStr += i;
@@ -1878,11 +1878,11 @@ STRING STRING::GetToken( xub_StrLen nToken, STRCODE cTok, xub_StrLen& rIndex ) c
{
DBG_CHKTHIS( STRING, DBGCHECKSTRING );
- const STRCODE* pStr = mpData->maStr;
- xub_StrLen nLen = (xub_StrLen)mpData->mnLen;
- xub_StrLen nTok = 0;
- xub_StrLen nFirstChar = rIndex;
- xub_StrLen i = nFirstChar;
+ const STRCODE* pStr = mpData->maStr;
+ xub_StrLen nLen = (xub_StrLen)mpData->mnLen;
+ xub_StrLen nTok = 0;
+ xub_StrLen nFirstChar = rIndex;
+ xub_StrLen i = nFirstChar;
// Bestimme die Token-Position und Laenge
pStr += i;
@@ -1934,13 +1934,13 @@ xub_StrLen STRING::GetQuotedTokenCount( const STRING& rQuotedPairs, STRCODE cTok
if ( !mpData->mnLen )
return 0;
- xub_StrLen nTokCount = 1;
- sal_Int32 nLen = mpData->mnLen;
- xub_StrLen nQuotedLen = rQuotedPairs.Len();
- STRCODE cQuotedEndChar = 0;
- const STRCODE* pQuotedStr = rQuotedPairs.mpData->maStr;
- const STRCODE* pStr = mpData->maStr;
- sal_Int32 nIndex = 0;
+ xub_StrLen nTokCount = 1;
+ sal_Int32 nLen = mpData->mnLen;
+ xub_StrLen nQuotedLen = rQuotedPairs.Len();
+ STRCODE cQuotedEndChar = 0;
+ const STRCODE* pQuotedStr = rQuotedPairs.mpData->maStr;
+ const STRCODE* pStr = mpData->maStr;
+ sal_Int32 nIndex = 0;
while ( nIndex < nLen )
{
STRCODE c = *pStr;
@@ -1987,14 +1987,14 @@ STRING STRING::GetQuotedToken( xub_StrLen nToken, const STRING& rQuotedPairs,
DBG_ASSERT( !(rQuotedPairs.Len()%2), "String::GetQuotedToken() - QuotedString%2 != 0" );
DBG_ASSERT( rQuotedPairs.Search(cTok) == STRING_NOTFOUND, "String::GetQuotedToken() - cTok in QuotedString" );
- const STRCODE* pStr = mpData->maStr;
- const STRCODE* pQuotedStr = rQuotedPairs.mpData->maStr;
- STRCODE cQuotedEndChar = 0;
- xub_StrLen nQuotedLen = rQuotedPairs.Len();
- xub_StrLen nLen = (xub_StrLen)mpData->mnLen;
- xub_StrLen nTok = 0;
- xub_StrLen nFirstChar = rIndex;
- xub_StrLen i = nFirstChar;
+ const STRCODE* pStr = mpData->maStr;
+ const STRCODE* pQuotedStr = rQuotedPairs.mpData->maStr;
+ STRCODE cQuotedEndChar = 0;
+ xub_StrLen nQuotedLen = rQuotedPairs.Len();
+ xub_StrLen nLen = (xub_StrLen)mpData->mnLen;
+ xub_StrLen nTok = 0;
+ xub_StrLen nFirstChar = rIndex;
+ xub_StrLen i = nFirstChar;
// Bestimme die Token-Position und Laenge
pStr += i;
diff --git a/tools/source/string/strucvt.cxx b/tools/source/string/strucvt.cxx
index e364818a73eb..48801e67c0a0 100644
--- a/tools/source/string/strucvt.cxx
+++ b/tools/source/string/strucvt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -143,8 +143,8 @@ UniString& UniString::Assign( const rtl::OUString& rStr )
OSL_ENSURE(rStr.pData->length < STRING_MAXLEN,
"Overflowing rtl::OUString -> UniString cut to zero length");
-
-
+
+
if (rStr.pData->length < STRING_MAXLEN)
{
STRING_RELEASE((STRING_TYPE *)mpData);
@@ -205,7 +205,7 @@ UniString::UniString( const ResId& rResId )
if( pResMgr )
pResMgr->PopContext();
}
-
+
ResHookProc pImplResHookProc = ResMgr::GetReadStringHook();
if ( pImplResHookProc )
diff --git a/tools/source/string/tenccvt.cxx b/tools/source/string/tenccvt.cxx
index c259e63817c7..4ae8df5d5da4 100644
--- a/tools/source/string/tenccvt.cxx
+++ b/tools/source/string/tenccvt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/source/string/tstring.cxx b/tools/source/string/tstring.cxx
index 8a0ecb8a8529..c82338e2eeaf 100644
--- a/tools/source/string/tstring.cxx
+++ b/tools/source/string/tstring.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,11 +55,11 @@ DBG_NAMEEX( UniString )
// -----------------------------------------------------------------------
-#define STRCODE sal_Char
+#define STRCODE sal_Char
#define STRCODEU unsigned char
-#define STRING ByteString
-#define STRINGDATA ByteStringData
-#define DBGCHECKSTRING DbgCheckByteString
+#define STRING ByteString
+#define STRINGDATA ByteStringData
+#define DBGCHECKSTRING DbgCheckByteString
#define STRING_TYPE rtl_String
#define STRING_ACQUIRE rtl_string_acquire
#define STRING_RELEASE rtl_string_release
@@ -233,7 +233,7 @@ BOOL ByteString::IsAlphaAscii() const
while ( nIndex < nLen )
{
if ( !(((*pStr >= 97) && (*pStr <= 122)) ||
- ((*pStr >= 65) && (*pStr <= 90))) )
+ ((*pStr >= 65) && (*pStr <= 90))) )
return FALSE;
++pStr,
@@ -276,8 +276,8 @@ BOOL ByteString::IsAlphaNumericAscii() const
while ( nIndex < nLen )
{
if ( !(((*pStr >= 97) && (*pStr <= 122)) ||
- ((*pStr >= 65) && (*pStr <= 90)) ||
- ((*pStr >= 48) && (*pStr <= 57))) )
+ ((*pStr >= 65) && (*pStr <= 90)) ||
+ ((*pStr >= 48) && (*pStr <= 57))) )
return FALSE;
++pStr,
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx
index 5edd160b5d69..c99d0a812e37 100644
--- a/tools/source/string/tustring.cxx
+++ b/tools/source/string/tustring.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,11 +51,11 @@ DBG_NAMEEX( ByteString )
// -----------------------------------------------------------------------
-#define STRCODE sal_Unicode
+#define STRCODE sal_Unicode
#define STRCODEU sal_Unicode
-#define STRING UniString
-#define STRINGDATA UniStringData
-#define DBGCHECKSTRING DbgCheckUniString
+#define STRING UniString
+#define STRINGDATA UniStringData
+#define DBGCHECKSTRING DbgCheckUniString
#define STRING_TYPE rtl_uString
#define STRING_ACQUIRE rtl_uString_acquire
#define STRING_RELEASE rtl_uString_release
diff --git a/tools/source/testtoolloader/testtoolloader.cxx b/tools/source/testtoolloader/testtoolloader.cxx
index 22cddf65673c..c0e60ca53c9a 100644
--- a/tools/source/testtoolloader/testtoolloader.cxx
+++ b/tools/source/testtoolloader/testtoolloader.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ namespace tools
typedef void ( *pfunc_CreateEventLogger)();
typedef void ( *pfunc_DestroyEventLogger)();
-static oslModule aTestToolModule = 0;
+static oslModule aTestToolModule = 0;
// are we to be automated at all?
static bool bAutomate = false;
static bool bLoggerStarted = false;
@@ -104,7 +104,7 @@ void InitTestToolLib()
if ( bAutomate )
{
- OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "CreateRemoteControl" ));
+ OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "CreateRemoteControl" ));
LoadLib();
if ( aTestToolModule )
@@ -126,7 +126,7 @@ void InitTestToolLib()
if ( ::comphelper::UiEventsLogger::isEnabled() )
{
- OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "CreateEventLogger" ));
+ OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "CreateEventLogger" ));
LoadLib();
if ( aTestToolModule )
@@ -156,7 +156,7 @@ void DeInitTestToolLib()
{
if ( bAutomate )
{
- OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "DestroyRemoteControl" ));
+ OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "DestroyRemoteControl" ));
oslGenericFunction pDeInitFunc = osl_getFunctionSymbol(
aTestToolModule, aFuncName.pData );
@@ -166,7 +166,7 @@ void DeInitTestToolLib()
if ( bLoggerStarted /*::comphelper::UiEventsLogger::isEnabled()*/ )
{
- OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "DestroyEventLogger" ));
+ OUString aFuncName( RTL_CONSTASCII_USTRINGPARAM( "DestroyEventLogger" ));
oslGenericFunction pDeInitFunc = osl_getFunctionSymbol(
aTestToolModule, aFuncName.pData );
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index c86983d41799..5ff57cd3cd43 100644
--- a/tools/source/zcodec/zcodec.cxx
+++ b/tools/source/zcodec/zcodec.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#else
#include "zlib/zlib.h"
#endif
-#endif
+#endif
#include <tools/zcodec.hxx>
#include <rtl/crc.h>
#include <osl/endian.h>
@@ -80,7 +80,7 @@ ZCodec::ZCodec( void )
}
// ------------------------------------------------------------------------
-
+
ZCodec::~ZCodec()
{
delete (z_stream*) mpsC_Stream;
@@ -112,10 +112,10 @@ long ZCodec::EndCompression()
if ( mbInit != 0 )
{
- if ( mbInit & 2 ) // 1->decompress, 3->compress
+ if ( mbInit & 2 ) // 1->decompress, 3->compress
{
do
- {
+ {
ImplWriteBack();
}
while ( deflate( PZSTREAM, Z_FINISH ) != Z_STREAM_END );
@@ -125,7 +125,7 @@ long ZCodec::EndCompression()
retvalue = PZSTREAM->total_in;
deflateEnd( PZSTREAM );
}
- else
+ else
{
retvalue = PZSTREAM->total_out;
inflateEnd( PZSTREAM );
@@ -140,9 +140,9 @@ long ZCodec::EndCompression()
// ------------------------------------------------------------------------
long ZCodec::Compress( SvStream& rIStm, SvStream& rOStm )
-{
+{
long nOldTotal_In = PZSTREAM->total_in;
-
+
if ( mbInit == 0 )
{
mpIStm = &rIStm;
@@ -152,9 +152,9 @@ long ZCodec::Compress( SvStream& rIStm, SvStream& rOStm )
}
while (( PZSTREAM->avail_in = mpIStm->Read( PZSTREAM->next_in = mpInBuf, mnInBufSize )) != 0 )
{
- if ( PZSTREAM->avail_out == 0 )
+ if ( PZSTREAM->avail_out == 0 )
ImplWriteBack();
- if ( deflate( PZSTREAM, Z_NO_FLUSH ) < 0 )
+ if ( deflate( PZSTREAM, Z_NO_FLUSH ) < 0 )
{
mbStatus = FALSE;
break;
@@ -168,10 +168,10 @@ long ZCodec::Compress( SvStream& rIStm, SvStream& rOStm )
long ZCodec::Decompress( SvStream& rIStm, SvStream& rOStm )
{
int err;
- ULONG nInToRead;
- long nOldTotal_Out = PZSTREAM->total_out;
+ ULONG nInToRead;
+ long nOldTotal_Out = PZSTREAM->total_out;
- if ( mbFinish )
+ if ( mbFinish )
return PZSTREAM->total_out - nOldTotal_Out;
if ( mbInit == 0 )
@@ -185,7 +185,7 @@ long ZCodec::Decompress( SvStream& rIStm, SvStream& rOStm )
{
if ( PZSTREAM->avail_out == 0 ) ImplWriteBack();
if ( PZSTREAM->avail_in == 0 && mnInToRead )
- {
+ {
nInToRead = ( mnInBufSize > mnInToRead ) ? mnInToRead : mnInBufSize;
PZSTREAM->avail_in = mpIStm->Read( PZSTREAM->next_in = mpInBuf, nInToRead );
mnInToRead -= nInToRead;
@@ -200,36 +200,36 @@ long ZCodec::Decompress( SvStream& rIStm, SvStream& rOStm )
mbStatus = FALSE;
break;
}
-
- }
+
+ }
while ( ( err != Z_STREAM_END) && ( PZSTREAM->avail_in || mnInToRead ) );
ImplWriteBack();
-
- if ( err == Z_STREAM_END )
- mbFinish = TRUE;
+
+ if ( err == Z_STREAM_END )
+ mbFinish = TRUE;
return ( mbStatus ) ? (long)(PZSTREAM->total_out - nOldTotal_Out) : -1;
}
// ------------------------------------------------------------------------
long ZCodec::Write( SvStream& rOStm, const BYTE* pData, ULONG nSize )
-{
+{
if ( mbInit == 0 )
{
mpOStm = &rOStm;
ImplInitBuf( FALSE );
}
-
+
PZSTREAM->avail_in = nSize;
PZSTREAM->next_in = (unsigned char*)pData;
-
+
while ( PZSTREAM->avail_in || ( PZSTREAM->avail_out == 0 ) )
{
if ( PZSTREAM->avail_out == 0 )
ImplWriteBack();
if ( deflate( PZSTREAM, Z_NO_FLUSH ) < 0 )
- {
+ {
mbStatus = FALSE;
break;
}
@@ -242,10 +242,10 @@ long ZCodec::Write( SvStream& rOStm, const BYTE* pData, ULONG nSize )
long ZCodec::Read( SvStream& rIStm, BYTE* pData, ULONG nSize )
{
int err;
- ULONG nInToRead;
+ ULONG nInToRead;
- if ( mbFinish )
- return 0; // PZSTREAM->total_out;
+ if ( mbFinish )
+ return 0; // PZSTREAM->total_out;
mpIStm = &rIStm;
if ( mbInit == 0 )
@@ -278,7 +278,7 @@ long ZCodec::Read( SvStream& rIStm, BYTE* pData, ULONG nSize )
while ( (err != Z_STREAM_END) &&
(PZSTREAM->avail_out != 0) &&
(PZSTREAM->avail_in || mnInToRead) );
- if ( err == Z_STREAM_END )
+ if ( err == Z_STREAM_END )
mbFinish = TRUE;
return (mbStatus ? (long)(nSize - PZSTREAM->avail_out) : -1);
@@ -289,10 +289,10 @@ long ZCodec::Read( SvStream& rIStm, BYTE* pData, ULONG nSize )
long ZCodec::ReadAsynchron( SvStream& rIStm, BYTE* pData, ULONG nSize )
{
int err = 0;
- ULONG nInToRead;
+ ULONG nInToRead;
- if ( mbFinish )
- return 0; // PZSTREAM->total_out;
+ if ( mbFinish )
+ return 0; // PZSTREAM->total_out;
if ( mbInit == 0 )
{
@@ -337,7 +337,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, BYTE* pData, ULONG nSize )
while ( (err != Z_STREAM_END) &&
(PZSTREAM->avail_out != 0) &&
(PZSTREAM->avail_in || mnInToRead) );
- if ( err == Z_STREAM_END )
+ if ( err == Z_STREAM_END )
mbFinish = TRUE;
return (mbStatus ? (long)(nSize - PZSTREAM->avail_out) : -1);
@@ -348,7 +348,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, BYTE* pData, ULONG nSize )
void ZCodec::ImplWriteBack()
{
ULONG nAvail = mnOutBufSize - PZSTREAM->avail_out;
-
+
if ( nAvail )
{
if ( mbInit & 2 && ( mnCompressMethod & ZCODEC_UPDATE_CRC ) )
@@ -393,12 +393,12 @@ void ZCodec::ImplInitBuf ( BOOL nIOFlag )
if ( mbInit == 0 )
{
if ( nIOFlag )
- {
+ {
mbInit = 1;
if ( mbStatus && ( mnCompressMethod & ZCODEC_GZ_LIB ) )
{
BYTE n1, n2, j, nMethod, nFlags;
- for ( int i = 0; i < 2; i++ ) // gz - magic number
+ for ( int i = 0; i < 2; i++ ) // gz - magic number
{
*mpIStm >> j;
if ( j != gz_magic[ i ] )
@@ -424,7 +424,7 @@ void ZCodec::ImplInitBuf ( BOOL nIOFlag )
do
{
*mpIStm >> j;
- }
+ }
while ( j && !mpIStm->IsEof() );
}
/* skip the .gz file comment */
@@ -437,7 +437,7 @@ void ZCodec::ImplInitBuf ( BOOL nIOFlag )
while ( j && !mpIStm->IsEof() );
}
/* skip the header crc */
- if ( nFlags & GZ_HEAD_CRC )
+ if ( nFlags & GZ_HEAD_CRC )
mpIStm->SeekRel( 2 );
if ( mbStatus )
mbStatus = ( inflateInit2( PZSTREAM, -MAX_WBITS) != Z_OK ) ? FALSE : TRUE;
@@ -449,11 +449,11 @@ void ZCodec::ImplInitBuf ( BOOL nIOFlag )
mpInBuf = new BYTE[ mnInBufSize ];
}
else
- {
+ {
mbInit = 3;
- mbStatus = ( deflateInit2_( PZSTREAM, mnCompressMethod & 0xff, Z_DEFLATED,
- MAX_WBITS, mnMemUsage, ( mnCompressMethod >> 8 ) & 0xff,
+ mbStatus = ( deflateInit2_( PZSTREAM, mnCompressMethod & 0xff, Z_DEFLATED,
+ MAX_WBITS, mnMemUsage, ( mnCompressMethod >> 8 ) & 0xff,
ZLIB_VERSION, sizeof( z_stream ) ) >= 0 );
PZSTREAM->next_out = mpOutBuf = new BYTE[ PZSTREAM->avail_out = mnOutBufSize ];
diff --git a/tools/test/export.map b/tools/test/export.map
index 3308588ef6f8..0dbbcc5a7372 100644
--- a/tools/test/export.map
+++ b/tools/test/export.map
@@ -1,7 +1,7 @@
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
+#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/test/tests.cxx b/tools/test/tests.cxx
index a814fb2fea83..14559ee1298a 100644
--- a/tools/test/tests.cxx
+++ b/tools/test/tests.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/unx/source/dll/toolsdll.cxx b/tools/unx/source/dll/toolsdll.cxx
index d642b3f3bc92..60c223c85774 100644
--- a/tools/unx/source/dll/toolsdll.cxx
+++ b/tools/unx/source/dll/toolsdll.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/win/inc/dll.hxx b/tools/win/inc/dll.hxx
index dd9d70b79f61..a85cc0d2e357 100644
--- a/tools/win/inc/dll.hxx
+++ b/tools/win/inc/dll.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/win/inc/parser.hxx b/tools/win/inc/parser.hxx
index 0c3f448db0a9..96333f169cfb 100644
--- a/tools/win/inc/parser.hxx
+++ b/tools/win/inc/parser.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ String GetURLFromHostNotation( const String & rPath );
String GetHostNotationFromURL( const String & rURL );
CItemIDList MakeIDToken( const String &rToken );
-CItemIDList ParseSpecialURL( const String & rURL );
+CItemIDList ParseSpecialURL( const String & rURL );
#endif
diff --git a/tools/win/inc/shellex.h b/tools/win/inc/shellex.h
index 8aa68a5c8d5e..d4f932063fad 100644
--- a/tools/win/inc/shellex.h
+++ b/tools/win/inc/shellex.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,54 +32,54 @@
#include <shlobj.h>
#endif
-#ifdef __cplusplus
+#ifdef __cplusplus
extern "C" {
-#define WINSHELLCALL inline
+#define WINSHELLCALL inline
#else
-#define WINSHELLCALL static
+#define WINSHELLCALL static
#endif
-#define SHChangeNotifyRegister_PROC_STR MAKEINTRESOURCE(2)
-#define SHChangeNotifyDeregister_PROC_STR MAKEINTRESOURCE(4)
+#define SHChangeNotifyRegister_PROC_STR MAKEINTRESOURCE(2)
+#define SHChangeNotifyDeregister_PROC_STR MAKEINTRESOURCE(4)
-#define SHCNF_ACCEPT_INTERRUPTS 0x0001
-#define SHCNF_ACCEPT_NON_INTERRUPTS 0x0002
-#define SHCNF_NO_PROXY 0x8000
+#define SHCNF_ACCEPT_INTERRUPTS 0x0001
+#define SHCNF_ACCEPT_NON_INTERRUPTS 0x0002
+#define SHCNF_NO_PROXY 0x8000
-#define SHCNF_ACCEPT_ALL (SHCNF_ACCEPT_INTERRUPTS | SHCNF_ACCEPT_NON_INTERRUPTS)
+#define SHCNF_ACCEPT_ALL (SHCNF_ACCEPT_INTERRUPTS | SHCNF_ACCEPT_NON_INTERRUPTS)
typedef struct tagNOTIFYREGISTER {
- LPCITEMIDLIST pidlPath;
- BOOL bWatchSubtree;
+ LPCITEMIDLIST pidlPath;
+ BOOL bWatchSubtree;
} NOTIFYREGISTER;
typedef NOTIFYREGISTER *LPNOTIFYREGISTER;
typedef NOTIFYREGISTER const *LPCNOTIFYREGISTER;
typedef HANDLE (WINAPI *SHChangeNotifyRegister_PROC)(
- HWND hWnd,
- DWORD dwFlags,
- LONG wEventMask,
- UINT uMsg,
- ULONG cItems,
- LPCNOTIFYREGISTER lpItems);
+ HWND hWnd,
+ DWORD dwFlags,
+ LONG wEventMask,
+ UINT uMsg,
+ ULONG cItems,
+ LPCNOTIFYREGISTER lpItems);
WINSHELLCALL HANDLE WINAPI SHChangeNotifyRegister(
- HWND hWnd,
- DWORD dwFlags,
- LONG wEventMask,
- UINT uMsg,
- ULONG cItems,
- LPCNOTIFYREGISTER lpItems)
+ HWND hWnd,
+ DWORD dwFlags,
+ LONG wEventMask,
+ UINT uMsg,
+ ULONG cItems,
+ LPCNOTIFYREGISTER lpItems)
{
- HMODULE hModule = GetModuleHandle( "SHELL32" );
- HANDLE hNotify = NULL;
+ HMODULE hModule = GetModuleHandle( "SHELL32" );
+ HANDLE hNotify = NULL;
if ( hModule )
{
- SHChangeNotifyRegister_PROC lpfnSHChangeNotifyRegister = (SHChangeNotifyRegister_PROC)GetProcAddress( hModule, SHChangeNotifyRegister_PROC_STR );
+ SHChangeNotifyRegister_PROC lpfnSHChangeNotifyRegister = (SHChangeNotifyRegister_PROC)GetProcAddress( hModule, SHChangeNotifyRegister_PROC_STR );
if ( lpfnSHChangeNotifyRegister )
hNotify = lpfnSHChangeNotifyRegister( hWnd, dwFlags, wEventMask, uMsg, cItems, lpItems );
}
@@ -90,16 +90,16 @@ WINSHELLCALL HANDLE WINAPI SHChangeNotifyRegister(
typedef BOOL (WINAPI *SHChangeNotifyDeregister_PROC)(
- HANDLE hNotify);
+ HANDLE hNotify);
WINSHELLCALL BOOL WINAPI SHChangeNotifyDeregister( HANDLE hNotify )
{
- HMODULE hModule = GetModuleHandle( "SHELL32" );
- BOOL fSuccess = FALSE;
+ HMODULE hModule = GetModuleHandle( "SHELL32" );
+ BOOL fSuccess = FALSE;
if ( hModule )
{
- SHChangeNotifyDeregister_PROC lpfnSHChangeNotifyDeregister = (SHChangeNotifyDeregister_PROC)GetProcAddress( hModule, SHChangeNotifyDeregister_PROC_STR );
+ SHChangeNotifyDeregister_PROC lpfnSHChangeNotifyDeregister = (SHChangeNotifyDeregister_PROC)GetProcAddress( hModule, SHChangeNotifyDeregister_PROC_STR );
if ( lpfnSHChangeNotifyDeregister )
fSuccess = lpfnSHChangeNotifyDeregister( hNotify );
}
@@ -108,7 +108,7 @@ WINSHELLCALL BOOL WINAPI SHChangeNotifyDeregister( HANDLE hNotify )
}
-#ifdef __cplusplus
+#ifdef __cplusplus
}
#endif
diff --git a/tools/win/inc/shutil.h b/tools/win/inc/shutil.h
index 0edd1dd2cb6c..6264f83c8bd7 100644
--- a/tools/win/inc/shutil.h
+++ b/tools/win/inc/shutil.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,38 +39,38 @@
extern "C" {
#endif
-#define PROTOCOL_FILE "file:"
-#define MAX_URL (MAX_PATH + sizeof(PROTOCOL_FILE))
+#define PROTOCOL_FILE "file:"
+#define MAX_URL (MAX_PATH + sizeof(PROTOCOL_FILE))
#define SHUTIL_TO_DELIVER
//--------------------------------------------------------------------------
-void * WINAPI WIN_SHAlloc( ULONG cb );
-void * WINAPI WIN_SHRealloc( void *pv, ULONG cb );
-void WINAPI WIN_SHFree( void *pv );
+void * WINAPI WIN_SHAlloc( ULONG cb );
+void * WINAPI WIN_SHRealloc( void *pv, ULONG cb );
+void WINAPI WIN_SHFree( void *pv );
//--------------------------------------------------------------------------
-ULONG WINAPI WIN_SHGetIDListSize( LPCITEMIDLIST pidl );
-BOOL WINAPI WIN_SHCloneIDList( LPCITEMIDLIST pidl, LPITEMIDLIST *ppidl );
-BOOL WINAPI WIN_SHAppendIDList( LPCITEMIDLIST pidl, LPITEMIDLIST *ppidl );
-LONG WINAPI WIN_SHCompareIDList( LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2 );
+ULONG WINAPI WIN_SHGetIDListSize( LPCITEMIDLIST pidl );
+BOOL WINAPI WIN_SHCloneIDList( LPCITEMIDLIST pidl, LPITEMIDLIST *ppidl );
+BOOL WINAPI WIN_SHAppendIDList( LPCITEMIDLIST pidl, LPITEMIDLIST *ppidl );
+LONG WINAPI WIN_SHCompareIDList( LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2 );
-LONG WINAPI WIN_SHGetIDListTokenCount( LPCITEMIDLIST pidl );
-BOOL WINAPI WIN_SHGetIDListToken( LPCITEMIDLIST pidl, ULONG nToken, LPITEMIDLIST *ppidl );
+LONG WINAPI WIN_SHGetIDListTokenCount( LPCITEMIDLIST pidl );
+BOOL WINAPI WIN_SHGetIDListToken( LPCITEMIDLIST pidl, ULONG nToken, LPITEMIDLIST *ppidl );
-BOOL WINAPI WIN_SHSplitIDList(
- LPCITEMIDLIST pidl,
- LPITEMIDLIST * pidlFolder,
- LPITEMIDLIST * pidlItem
+BOOL WINAPI WIN_SHSplitIDList(
+ LPCITEMIDLIST pidl,
+ LPITEMIDLIST * pidlFolder,
+ LPITEMIDLIST * pidlItem
);
-BOOL WINAPI WIN_SHSplitIDListEx(
- LPCITEMIDLIST pidl,
- LPITEMIDLIST * pidlParent,
- LPITEMIDLIST * pidlChild,
- ULONG nLevel
+BOOL WINAPI WIN_SHSplitIDListEx(
+ LPCITEMIDLIST pidl,
+ LPITEMIDLIST * pidlParent,
+ LPITEMIDLIST * pidlChild,
+ ULONG nLevel
);
//--------------------------------------------------------------------------
@@ -81,22 +81,22 @@ BOOL WINAPI WIN_SHSplitIDListEx(
#define WIN_SHGetPathFromIDList( pidl, pszPath ) \
SHGetPathFromIDList( pidl, pszPath )
-// #define SHGP_CLSID 0x00000001
+// #define SHGP_CLSID 0x00000001
-// BOOL WINAPI WIN_SHGetPathFromIDListEx( LPCITEMIDLIST pidl, LPSTR pszBuffer, UINT uFlags );
+// BOOL WINAPI WIN_SHGetPathFromIDListEx( LPCITEMIDLIST pidl, LPSTR pszBuffer, UINT uFlags );
-BOOL WINAPI WIN_SHGetIDListFromPath( LPCSTR pszPath, LPITEMIDLIST *ppidl );
+BOOL WINAPI WIN_SHGetIDListFromPath( LPCSTR pszPath, LPITEMIDLIST *ppidl );
-BOOL WINAPI WIN_SHGetPathFromURL( LPCSTR pszURL, LPSTR pszPath );
-BOOL WINAPI WIN_SHGetURLFromPath( LPCSTR pszPath, LPSTR pszURL );
+BOOL WINAPI WIN_SHGetPathFromURL( LPCSTR pszURL, LPSTR pszPath );
+BOOL WINAPI WIN_SHGetURLFromPath( LPCSTR pszPath, LPSTR pszURL );
-BOOL WINAPI WIN_SHGetFolderFromIDList( LPCITEMIDLIST pidl, LPSHELLFOLDER *ppshf );
-BOOL WINAPI WIN_SHGetSpecialFolder( int nFolder, LPSHELLFOLDER *ppshf );
-BOOL WINAPI WIN_SHGetFolderFromPath( LPCSTR pszPath, LPSHELLFOLDER *ppshf );
+BOOL WINAPI WIN_SHGetFolderFromIDList( LPCITEMIDLIST pidl, LPSHELLFOLDER *ppshf );
+BOOL WINAPI WIN_SHGetSpecialFolder( int nFolder, LPSHELLFOLDER *ppshf );
+BOOL WINAPI WIN_SHGetFolderFromPath( LPCSTR pszPath, LPSHELLFOLDER *ppshf );
-BOOL WINAPI WIN_SHGetSpecialFolderPath( int nFolder, LPSTR pszPath );
+BOOL WINAPI WIN_SHGetSpecialFolderPath( int nFolder, LPSTR pszPath );
-HRESULT WINAPI WIN_SHGetDataFromIDList(
+HRESULT WINAPI WIN_SHGetDataFromIDList(
LPSHELLFOLDER psf,
LPCITEMIDLIST pidl,
int nFormat,
@@ -107,53 +107,53 @@ HRESULT WINAPI WIN_SHGetDataFromIDList(
//--------------------------------------------------------------------------
-#define SHIC_PIDL 0x00000001
-#define SHIC_NO_UI 0x00000002
+#define SHIC_PIDL 0x00000001
+#define SHIC_NO_UI 0x00000002
-#define CMDSTR_OPENA "open"
-#define CMDSTR_EXPLOREA "explore"
-#define CMDSTR_FINDA "find"
+#define CMDSTR_OPENA "open"
+#define CMDSTR_EXPLOREA "explore"
+#define CMDSTR_FINDA "find"
-#define CMDSTR_OPENW L"open"
-#define CMDSTR_EXPLOREW L"explore"
-#define CMDSTR_FINDW L"find"
+#define CMDSTR_OPENW L"open"
+#define CMDSTR_EXPLOREW L"explore"
+#define CMDSTR_FINDW L"find"
#ifdef UNICODE
-#define CMDSTR_OPEN CMDSTR_OPENW
-#define CMDSTR_EXPLORE CMDSTR_EXPLOREW
-#define CMDSTR_FIND CMDSTR_FINDW
+#define CMDSTR_OPEN CMDSTR_OPENW
+#define CMDSTR_EXPLORE CMDSTR_EXPLOREW
+#define CMDSTR_FIND CMDSTR_FINDW
#else
-#define CMDSTR_OPEN CMDSTR_OPENA
-#define CMDSTR_EXPLORE CMDSTR_EXPLOREA
-#define CMDSTR_FIND CMDSTR_FINDA
+#define CMDSTR_OPEN CMDSTR_OPENA
+#define CMDSTR_EXPLORE CMDSTR_EXPLOREA
+#define CMDSTR_FIND CMDSTR_FINDA
#endif
-#define CMDSTR_DEFAULT MAKEINTRESOURCE(0x00)
+#define CMDSTR_DEFAULT MAKEINTRESOURCE(0x00)
-#define CMDSTR_LINK MAKEINTRESOURCE(0x10)
-#define CMDSTR_DELETE MAKEINTRESOURCE(0x11)
-#define CMDSTR_RENAME MAKEINTRESOURCE(0x12)
-#define CMDSTR_PROPERTIES MAKEINTRESOURCE(0x13)
-#define CMDSTR_CUT MAKEINTRESOURCE(0x18)
-#define CMDSTR_COPY MAKEINTRESOURCE(0x19)
+#define CMDSTR_LINK MAKEINTRESOURCE(0x10)
+#define CMDSTR_DELETE MAKEINTRESOURCE(0x11)
+#define CMDSTR_RENAME MAKEINTRESOURCE(0x12)
+#define CMDSTR_PROPERTIES MAKEINTRESOURCE(0x13)
+#define CMDSTR_CUT MAKEINTRESOURCE(0x18)
+#define CMDSTR_COPY MAKEINTRESOURCE(0x19)
BOOL WINAPI WIN_SHInvokeCommand(
- HWND hwndOwner,
- DWORD dwFlags,
- LPCTSTR lpPath,
- LPCSTR lpVerb,
- LPCSTR lpParameters,
- LPCSTR lpDirectory,
- int nShow
+ HWND hwndOwner,
+ DWORD dwFlags,
+ LPCTSTR lpPath,
+ LPCSTR lpVerb,
+ LPCSTR lpParameters,
+ LPCSTR lpDirectory,
+ int nShow
);
//--------------------------------------------------------------------------
BOOL WINAPI WIN_SHStrRetToMultiByte(
- LPCITEMIDLIST pidl,
- const STRRET * pStr,
- LPSTR lpMultiByte,
- int cchMultiByte
+ LPCITEMIDLIST pidl,
+ const STRRET * pStr,
+ LPSTR lpMultiByte,
+ int cchMultiByte
);
DWORD WIN_SHBuildCRC( LPVOID pBytes, ULONG nBytes );
@@ -167,43 +167,43 @@ HIMAGELIST WINAPI WIN_SHGetSystemImageList( UINT uFlags );
/*
ULONG WINAPI WIN_CreateStringFromBinary (
- LPCVOID pv,
- ULONG cbSize,
- LPSTR pszString,
- ULONG cbStringSize
+ LPCVOID pv,
+ ULONG cbSize,
+ LPSTR pszString,
+ ULONG cbStringSize
);
ULONG WINAPI WIN_CreateBinaryFromString(
- LPCSTR pszStr,
- LPVOID pBuffer,
- ULONG cbSize
+ LPCSTR pszStr,
+ LPVOID pBuffer,
+ ULONG cbSize
);
*/
//--------------------------------------------------------------------------
-DWORD WINAPI WIN_SHSetValue(
- HKEY hKey,
- LPCTSTR pszSubKey,
- LPCTSTR pszValue,
- DWORD dwType,
- LPCVOID pvData,
- DWORD cbData
+DWORD WINAPI WIN_SHSetValue(
+ HKEY hKey,
+ LPCTSTR pszSubKey,
+ LPCTSTR pszValue,
+ DWORD dwType,
+ LPCVOID pvData,
+ DWORD cbData
);
-DWORD WINAPI WIN_SHGetValue(
- HKEY hKey,
- LPCTSTR pszSubKey,
- LPCTSTR pszValue,
- LPDWORD pdwType,
- LPVOID pvData,
- LPDWORD pcbData
+DWORD WINAPI WIN_SHGetValue(
+ HKEY hKey,
+ LPCTSTR pszSubKey,
+ LPCTSTR pszValue,
+ LPDWORD pdwType,
+ LPVOID pvData,
+ LPDWORD pcbData
);
DWORD WINAPI WIN_SHDeleteValue(
- HKEY hKey,
- LPCTSTR pszSubKey,
- LPCTSTR pszValue
+ HKEY hKey,
+ LPCTSTR pszSubKey,
+ LPCTSTR pszValue
);
#ifdef __cplusplus
@@ -212,6 +212,6 @@ DWORD WINAPI WIN_SHDeleteValue(
#endif
-#endif // _SHUTIL_H_
+#endif // _SHUTIL_H_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/win/inc/toolsdll.hxx b/tools/win/inc/toolsdll.hxx
index 1c241a65e87d..0fef2770a8c1 100644
--- a/tools/win/inc/toolsdll.hxx
+++ b/tools/win/inc/toolsdll.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/win/inc/winshell.hxx b/tools/win/inc/winshell.hxx
index a68f12af122a..66c5aeffe7b3 100644
--- a/tools/win/inc/winshell.hxx
+++ b/tools/win/inc/winshell.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,14 +80,14 @@ public:
{ return m_nFolder; }
protected:
- ITEMIDLIST *m_pidl;
- int m_nFolder;
+ ITEMIDLIST *m_pidl;
+ int m_nFolder;
};
inline CItemIDList CItemIDList::operator + ( const CItemIDList & rIDList ) const
{
- CItemIDList aCopy( *this );
+ CItemIDList aCopy( *this );
aCopy += rIDList;
return aCopy;
}
@@ -109,81 +109,81 @@ enum NotificationEvent
typedef struct _WIN32_VOLUME_DATA
{
- TCHAR cDeviceName[MAX_PATH];
- TCHAR cVolumeName[MAX_PATH];
- TCHAR cFileSystemName[MAX_PATH];
- DWORD dwSerialNumber;
- DWORD dwFileSystemFlags;
- DWORD nMaxComponentLength;
+ TCHAR cDeviceName[MAX_PATH];
+ TCHAR cVolumeName[MAX_PATH];
+ TCHAR cFileSystemName[MAX_PATH];
+ DWORD dwSerialNumber;
+ DWORD dwFileSystemFlags;
+ DWORD nMaxComponentLength;
} WIN32_VOLUME_DATA;
// Bekannte Class-IDs fuer wichtige Ordner
-// {871C5380-42A0-1069-A2EA-08002B30309D} Internet Explorer 4.0
-static const GUID CLSID_IE4 =
+// {871C5380-42A0-1069-A2EA-08002B30309D} Internet Explorer 4.0
+static const GUID CLSID_IE4 =
{ 0x871C5380, 0x42A0, 0x1069, { 0xA2, 0xEA, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D } };
-// {208D2C60-3AEA-1069-A2D7-08002B30309D} Netzwerkumgebung
-static const GUID CLSID_Network =
+// {208D2C60-3AEA-1069-A2D7-08002B30309D} Netzwerkumgebung
+static const GUID CLSID_Network =
{ 0x208D2C60, 0x3AEA, 0x1069, { 0xA2, 0xD7, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D } };
-// {645FF040-5081-101B-9F08-00AA002F954E} Papierkorb
-static const GUID CLSID_RecycleBin =
+// {645FF040-5081-101B-9F08-00AA002F954E} Papierkorb
+static const GUID CLSID_RecycleBin =
{ 0x645FF040, 0x5081, 0x101B, { 0x9F, 0x08, 0x00, 0xAA, 0x00, 0x2F, 0x95, 0x4E } };
-// {20D04FE0-3AEA-1069-A2D8-08002B30309D} Arbeitsplatz
-static const GUID CLSID_MyComputer =
+// {20D04FE0-3AEA-1069-A2D8-08002B30309D} Arbeitsplatz
+static const GUID CLSID_MyComputer =
{ 0x20D04FE0, 0x3AEA, 0x1069, { 0xA2, 0xD8, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D } };
-// {D6277990-4C6A-11CF-8D87-00AA0060F5BF} Geplante Vorgänge
-static const GUID CLSID_Tasks =
+// {D6277990-4C6A-11CF-8D87-00AA0060F5BF} Geplante Vorgänge
+static const GUID CLSID_Tasks =
{ 0xD6277990, 0x4C6A, 0x11CF, { 0x8D, 0x87, 0x00, 0xAA, 0x00, 0x60, 0xF5, 0xBF } };
// Fehlt im Header
-#define SHGDN_INCLUDE_NONFILESYS 0x2000
+#define SHGDN_INCLUDE_NONFILESYS 0x2000
-#define CSIDL_UNKNOWN -1
-#define CSIDL_ROOT -2
-#define CSIDL_SYSTEM -3
+#define CSIDL_UNKNOWN -1
+#define CSIDL_ROOT -2
+#define CSIDL_SYSTEM -3
// Suchmaske fuer IEnumIDList
-#define SHCONTF_ALL (SHCONTF_FOLDERS | SHCONTF_NONFOLDERS | SHCONTF_INCLUDEHIDDEN)
+#define SHCONTF_ALL (SHCONTF_FOLDERS | SHCONTF_NONFOLDERS | SHCONTF_INCLUDEHIDDEN)
// SHITEM Prefix Kinds
-#define SHGII_CONTAINER_MASK 0x70
+#define SHGII_CONTAINER_MASK 0x70
-#define SHGII_COMPUTER 0x20
+#define SHGII_COMPUTER 0x20
-#define SHGII_COMPUTER_REMOVABLE 0x22
-#define SHGII_COMPUTER_FIXED 0x23
-#define SHGII_COMPUTER_REMOTE 0x24
-#define SHGII_COMPUTER_CDROM 0x25
-#define SHGII_COMPUTER_RAMDISK 0x26
-#define SHGII_COMPUTER_FLOPPY525 0x28
-#define SHGII_COMPUTER_FLOPPY35 0x29
-#define SHGII_COMPUTER_NETWORK 0x2A
-#define SHGII_COMPUTER_REGITEM 0x2E
+#define SHGII_COMPUTER_REMOVABLE 0x22
+#define SHGII_COMPUTER_FIXED 0x23
+#define SHGII_COMPUTER_REMOTE 0x24
+#define SHGII_COMPUTER_CDROM 0x25
+#define SHGII_COMPUTER_RAMDISK 0x26
+#define SHGII_COMPUTER_FLOPPY525 0x28
+#define SHGII_COMPUTER_FLOPPY35 0x29
+#define SHGII_COMPUTER_NETWORK 0x2A
+#define SHGII_COMPUTER_REGITEM 0x2E
-#define SHGII_ROOT 0x10
-#define SHGII_ROOT_REGITEM 0x1F
+#define SHGII_ROOT 0x10
+#define SHGII_ROOT_REGITEM 0x1F
-#define SHGII_NETWORK 0x40
-#define SHGII_NETWORK_TREE 0x47
-#define SHGII_NETWORK_SERVER 0x42
-#define SHGII_NETWORK_DIRECTORY 0x43
-#define SHGII_NETWORK_PRINTER 0x41
+#define SHGII_NETWORK 0x40
+#define SHGII_NETWORK_TREE 0x47
+#define SHGII_NETWORK_SERVER 0x42
+#define SHGII_NETWORK_DIRECTORY 0x43
+#define SHGII_NETWORK_PRINTER 0x41
-#define SHGII_FILESYSTEM 0x30
-#define SHGII_FILESYSTEM_FILE 0x31
-#define SHGII_FILESYSTEM_DIRECTORY 0x32
+#define SHGII_FILESYSTEM 0x30
+#define SHGII_FILESYSTEM_FILE 0x31
+#define SHGII_FILESYSTEM_DIRECTORY 0x32
-#define SHGII_ANCESTOR 0x80
+#define SHGII_ANCESTOR 0x80
-#define SHITEMCONTAINER( pidl ) ((pidl)->mkid.abID[0] & SHGII_CONTAINER_MASK)
-#define SHITEMKIND( pidl ) ((pidl)->mkid.abID[0] & 0x7F)
+#define SHITEMCONTAINER( pidl ) ((pidl)->mkid.abID[0] & SHGII_CONTAINER_MASK)
+#define SHITEMKIND( pidl ) ((pidl)->mkid.abID[0] & 0x7F)
//----------------------------------------------------------------------------
// CShellFolderData
@@ -195,12 +195,12 @@ protected:
CShellFolderData();
virtual ~CShellFolderData();
- IShellFolder *m_pShellFolder;
- IEnumIDList *m_pEnumIDList;
- IShellIcon *m_pShellIcon;
- BOOL m_bIsOpen;
- HANDLE m_hCancelEvent;
- DWORD m_dwContentFlags;
+ IShellFolder *m_pShellFolder;
+ IEnumIDList *m_pEnumIDList;
+ IShellIcon *m_pShellIcon;
+ BOOL m_bIsOpen;
+ HANDLE m_hCancelEvent;
+ DWORD m_dwContentFlags;
};
//----------------------------------------------------------------------------
@@ -234,7 +234,7 @@ public:
virtual BOOL GetVolumeInfo( const CItemIDList & rIDList, WIN32_VOLUME_DATA * );
// Modifying the folder contents
-
+
virtual BOOL SetNameOf( const CItemIDList &, const String &, CItemIDList & );
virtual BOOL DeleteItem( const CItemIDList & );
@@ -277,7 +277,7 @@ protected:
void Initialize( LPCTSTR pszPath );
- TCHAR m_szPath[MAX_PATH];
+ TCHAR m_szPath[MAX_PATH];
};
//----------------------------------------------------------------------------
@@ -296,7 +296,7 @@ protected:
void Initialize( int nFolder );
- int m_nFolder;
+ int m_nFolder;
};
//----------------------------------------------------------------------------
diff --git a/tools/win/source/dll/toolsdll.cxx b/tools/win/source/dll/toolsdll.cxx
index 2c9f09b2fc57..1e170bd94eb4 100644
--- a/tools/win/source/dll/toolsdll.cxx
+++ b/tools/win/source/dll/toolsdll.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/workben/fstest.cxx b/tools/workben/fstest.cxx
index 3db8780a72df..0c9fa2879bc7 100644
--- a/tools/workben/fstest.cxx
+++ b/tools/workben/fstest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,6 +92,6 @@ void CheckTimes(DirEntry aDE)
aDateModified.GetDate(), aTimeModified.GetTime());
return;
}
-
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/workben/hashtbl.cxx b/tools/workben/hashtbl.cxx
index 5f75d481e8db..a4c13162c261 100644
--- a/tools/workben/hashtbl.cxx
+++ b/tools/workben/hashtbl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,12 +34,12 @@
#include <algorithm>
-// -------------------------------------------------------------
+// -------------------------------------------------------------
// class HashItem
//
class HashItem
{
- enum ETag { TAG_EMPTY, TAG_USED, TAG_DELETED };
+ enum ETag { TAG_EMPTY, TAG_USED, TAG_DELETED };
void* m_pObject;
ETag m_Tag;
@@ -50,13 +50,13 @@ public:
BOOL IsDeleted() const
{ return m_Tag == TAG_DELETED; }
-
+
BOOL IsEmpty() const
- { return m_Tag == TAG_DELETED || m_Tag == TAG_EMPTY; }
+ { return m_Tag == TAG_DELETED || m_Tag == TAG_EMPTY; }
BOOL IsFree() const
{ return m_Tag == TAG_EMPTY; }
-
+
BOOL IsUsed() const
{ return m_Tag == TAG_USED; }
@@ -76,7 +76,7 @@ public:
// #define MIN(a,b) (a)<(b)?(a):(b)
// #define MAX(a,b) (a)>(b)?(a):(b)
-// -------------------------------------------------------------
+// -------------------------------------------------------------
// class HashTable
//
@@ -89,14 +89,14 @@ HashTable::HashTable(ULONG lSize, BOOL bOwner, double dMaxLoadFactor, double dGr
m_bOwner = bOwner;
m_lElem = 0;
m_dMaxLoadFactor = std::max(0.5,std::min(1.0,dMaxLoadFactor)); // 0.5 ... 1.0
- m_dGrowFactor = std::max(1.3,(5.0,dGrowFactor)); // 1.3 ... 5.0
+ m_dGrowFactor = std::max(1.3,(5.0,dGrowFactor)); // 1.3 ... 5.0
m_pData = new HashItem [lSize];
// Statistik
#ifdef DBG_UTIL
m_aStatistic.m_lSingleHash = 0;
m_aStatistic.m_lDoubleHash = 0;
- m_aStatistic.m_lProbe = 0;
+ m_aStatistic.m_lProbe = 0;
#endif
}
@@ -130,7 +130,7 @@ void* HashTable::GetObjectAt(ULONG lPos) const
// Gibt Objekt zurück, wenn es eines gibt, sonst NULL;
{
DBG_ASSERT(lPos<m_lSize, "HashTable::GetObjectAt()");
-
+
HashItem *pItem = &m_pData[lPos];
return pItem->IsUsed() ? pItem->GetObject() : NULL;
@@ -146,9 +146,9 @@ ULONG HashTable::Hash(String const& Key) const
/*
ULONG lHash = 0;
ULONG i,n;
-
+
for (i=0,n=Key.Len(); i<n; i++)
- {
+ {
lHash *= 256L;
lHash += (ULONG)(USHORT)Key.GetStr()[i];
lHash %= m_lSize;
@@ -161,7 +161,7 @@ ULONG HashTable::Hash(String const& Key) const
ULONG i,n;
ULONG h = 0;
ULONG g = 0;
-
+
for (i=0,n=Key.Len(); i<n; i++)
{
h = (h<<4) + (ULONG)(USHORT)Key.GetStr()[i];
@@ -175,28 +175,28 @@ ULONG HashTable::Hash(String const& Key) const
}
return h % m_lSize;
-}
+}
ULONG HashTable::DHash(String const& Key, ULONG lOldHash) const
{
ULONG lHash = lOldHash;
ULONG i,n;
-
+
for (i=0,n=Key.Len(); i<n; i++)
- {
+ {
lHash *= 256L;
lHash += (ULONG)(USHORT)Key.GetStr()[i];
lHash %= m_lSize;
}
return lHash;
-/* return
+/* return
(
lHash
- + (char)Key.GetStr()[0] * 256
- + (char)Key.GetStr()[Key.Len()-1]
- + 1
- )
+ + (char)Key.GetStr()[0] * 256
+ + (char)Key.GetStr()[Key.Len()-1]
+ + 1
+ )
% m_lSize;
*/
}
@@ -207,10 +207,10 @@ ULONG HashTable::Probe(ULONG lPos) const
lPos++; if (lPos==m_lSize) lPos=0;
return lPos;
}
-
+
BOOL HashTable::IsFull() const
-{
- return m_lElem>=m_lSize;
+{
+ return m_lElem>=m_lSize;
}
BOOL HashTable::Insert(String const& Key, void* pObject)
@@ -235,7 +235,7 @@ BOOL HashTable::Insert(String const& Key, void* pObject)
// first hashing
//
if (pItem->IsEmpty())
- {
+ {
pItem->SetObject(Key, pObject);
m_lElem++;
@@ -244,13 +244,13 @@ BOOL HashTable::Insert(String const& Key, void* pObject)
#endif
return TRUE;
- }
-
+ }
+
// double hashing
//
lPos = DHash(Key,lPos);
pItem = &m_pData[lPos];
-
+
if (pItem->IsEmpty())
{
pItem->SetObject(Key, pObject);
@@ -264,7 +264,7 @@ BOOL HashTable::Insert(String const& Key, void* pObject)
}
// linear probing
- //
+ //
do
{
#ifdef DBG_UTIL
@@ -292,55 +292,55 @@ HashItem* HashTable::FindPos(String const& Key) const
//
ULONG lPos = Hash(Key);
HashItem *pItem = &m_pData[lPos];
-
+
if (pItem->IsUsed()
&& pItem->GetKey() == Key)
{
return pItem;
- }
-
+ }
+
// double hashing
//
if (pItem->IsDeleted() || pItem->IsUsed())
{
lPos = DHash(Key,lPos);
pItem = &m_pData[lPos];
-
+
if (pItem->IsUsed()
&& pItem->GetKey() == Key)
{
return pItem;
- }
+ }
// linear probing
- //
+ //
if (pItem->IsDeleted() || pItem->IsUsed())
- {
+ {
ULONG n = 0;
BOOL bFound = FALSE;
BOOL bEnd = FALSE;
-
+
do
- {
+ {
n++;
lPos = Probe(lPos);
pItem = &m_pData[lPos];
- bFound = pItem->IsUsed()
+ bFound = pItem->IsUsed()
&& pItem->GetKey() == Key;
-
- bEnd = !(n<m_lSize || pItem->IsFree());
+
+ bEnd = !(n<m_lSize || pItem->IsFree());
}
while(!bFound && !bEnd);
-
- return bFound ? pItem : NULL;
+
+ return bFound ? pItem : NULL;
}
- }
+ }
// nicht gefunden
//
return NULL;
-}
+}
void* HashTable::Find(String const& Key) const
// Gibt Verweis des Objektes zurück, das unter Key abgespeichert ist,
@@ -348,9 +348,9 @@ void* HashTable::Find(String const& Key) const
//
// pre: -
// post: -
-{
+{
HashItem *pItem = FindPos(Key);
-
+
if (pItem != NULL
&& pItem->GetKey() == Key)
return pItem->GetObject();
@@ -368,7 +368,7 @@ void* HashTable::Delete(String const& Key)
// Wenn die HashTable der Owner ist, wurde das Object gelöscht
{
HashItem *pItem = FindPos(Key);
-
+
if (pItem != NULL
&& pItem->GetKey() == Key)
{
@@ -400,10 +400,10 @@ void HashTable::SmartGrow()
double dLoadFactor = CalcLoadFactor();
if (dLoadFactor <= m_dMaxLoadFactor)
- return; // nothing to grow
+ return; // nothing to grow
ULONG lOldSize = m_lSize; // alte Daten sichern
- HashItem* pOldData = m_pData;
+ HashItem* pOldData = m_pData;
m_lSize = ULONG (m_dGrowFactor * m_lSize); // neue Größe
m_pData = new HashItem[m_lSize]; // neue Daten holen
@@ -418,7 +418,7 @@ void HashTable::SmartGrow()
return;
}
- m_lElem = 0; // noch keine neuen Daten
+ m_lElem = 0; // noch keine neuen Daten
// Umkopieren der Daten
//
@@ -472,26 +472,26 @@ void* HashTableIterator::GetPrev()
return FindValidObject(FALSE /* backward */);
}
-void* HashTableIterator::FindValidObject(BOOL bForward)
+void* HashTableIterator::FindValidObject(BOOL bForward)
// Sucht nach einem vorhandenen Objekt ab der aktuellen
// Position.
//
// pre: ab inkl. m_lAt soll die Suche beginnen
// post: if not found then
-// if bForward == TRUE then
-// m_lAt == m_aTable.GetSize() -1
-// else
-// m_lAt == 0
-// else
-// m_lAt ist die gefundene Position
+// if bForward == TRUE then
+// m_lAt == m_aTable.GetSize() -1
+// else
+// m_lAt == 0
+// else
+// m_lAt ist die gefundene Position
{
void *pObject = m_aTable.GetObjectAt(m_lAt);
if (pObject != NULL)
return pObject;
-
+
while (pObject == NULL
- && (bForward ? ((m_lAt+1) < m_aTable.GetSize())
+ && (bForward ? ((m_lAt+1) < m_aTable.GetSize())
: m_lAt > 0))
{
if (bForward)
@@ -500,7 +500,7 @@ void* HashTableIterator::FindValidObject(BOOL bForward)
m_lAt--;
pObject = m_aTable.GetObjectAt(m_lAt);
- }
+ }
#ifdef DBG_UTIL
@@ -512,7 +512,7 @@ void* HashTableIterator::FindValidObject(BOOL bForward)
#endif
- return pObject;
+ return pObject;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/workben/hashtbl.hxx b/tools/workben/hashtbl.hxx
index 7c1b89c873cf..884f398f837f 100644
--- a/tools/workben/hashtbl.hxx
+++ b/tools/workben/hashtbl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,8 +32,8 @@
#include <tlgen.hxx>
// ADT hash table
-//
-// Invariante:
+//
+// Invariante:
// 1. m_lElem < m_lSize
// 2. die Elemente in m_Array wurden double-hashed erzeugt
//
@@ -47,24 +47,24 @@ class HashTable
double m_dMaxLoadFactor;
double m_dGrowFactor;
BOOL m_bOwner;
-
+
ULONG Hash(String const& Key) const;
- ULONG DHash(String const& Key, ULONG lHash) const;
+ ULONG DHash(String const& Key, ULONG lHash) const;
ULONG Probe(ULONG lPos) const;
-
- HashItem* FindPos(String const& Key) const;
+
+ HashItem* FindPos(String const& Key) const;
void SmartGrow();
double CalcLoadFactor() const;
// Statistik
#ifdef DBG_UTIL
-private:
+private:
struct
{
ULONG m_lSingleHash;
ULONG m_lDoubleHash;
ULONG m_lProbe;
- }
+ }
m_aStatistic;
#endif
@@ -76,36 +76,36 @@ protected:
void* GetObjectAt(ULONG lPos) const;
// Default-Werte
-public:
+public:
static double m_defMaxLoadFactor;
static double m_defDefGrowFactor;
public:
HashTable
(
- ULONG lSize,
- BOOL bOwner,
- double dMaxLoadFactor = HashTable::m_defMaxLoadFactor /* 0.8 */,
- double dGrowFactor = HashTable::m_defDefGrowFactor /* 2.0 */
+ ULONG lSize,
+ BOOL bOwner,
+ double dMaxLoadFactor = HashTable::m_defMaxLoadFactor /* 0.8 */,
+ double dGrowFactor = HashTable::m_defDefGrowFactor /* 2.0 */
);
~HashTable();
-
+
BOOL IsFull() const;
ULONG GetSize() const { return m_lSize; }
void* Find (String const& Key) const;
BOOL Insert (String const& Key, void* pObject);
void* Delete (String const& Key);
-};
+};
// ADT hash table iterator
//
// Invariante: 0 <= m_lAt < m_aTable.GetCount()
-//
+//
class HashTableIterator
{
- ULONG m_lAt;
+ ULONG m_lAt;
HashTable const& m_aTable;
void* FindValidObject(BOOL bForward);
@@ -126,12 +126,12 @@ public:
class ClassName : public HashTable \
{ \
public: \
- ClassName \
- ( \
- ULONG lSize, \
- double dMaxLoadFactor = HashTable::m_defMaxLoadFactor, \
- double dGrowFactor = HashTable::m_defDefGrowFactor \
- ) \
+ ClassName \
+ ( \
+ ULONG lSize, \
+ double dMaxLoadFactor = HashTable::m_defMaxLoadFactor, \
+ double dGrowFactor = HashTable::m_defDefGrowFactor \
+ ) \
: HashTable(lSize,Owner,dMaxLoadFactor,dGrowFactor) {} \
\
ObjType Find (KeyType const& Key) const \
@@ -142,7 +142,7 @@ public:
\
ObjType Delete (KeyType const&Key) \
{ return (ObjType) HashTable::Delete (String(Key)); } \
- };
+ };
// HashTable OHNE Owner-Verhalten
#define DECLARE_HASHTABLE(ClassName,KeyType,ObjType) \
@@ -156,15 +156,15 @@ public:
protected: \
virtual void OnDeleteObject(void* pObject); \
public: \
- ClassName \
- ( \
- ULONG lSize, \
- double dMaxLoadFactor = HashTable::m_defMaxLoadFactor, \
- double dGrowFactor = HashTable::m_defDefGrowFactor \
- ) \
- : ClassName##2(lSize,dMaxLoadFactor,dGrowFactor) {} \
+ ClassName \
+ ( \
+ ULONG lSize, \
+ double dMaxLoadFactor = HashTable::m_defMaxLoadFactor, \
+ double dGrowFactor = HashTable::m_defDefGrowFactor \
+ ) \
+ : ClassName##2(lSize,dMaxLoadFactor,dGrowFactor) {} \
~ClassName(); \
- };
+ };
#define IMPLEMENT_HASHTABLE_OWNER(ClassName,KeyType,ObjType) \
void ClassName::OnDeleteObject(void* pObject) \
@@ -182,24 +182,24 @@ public:
// Iterator-Makros --------------------------------------------------
-#define DECLARE_HASHTABLE_ITERATOR(ClassName,ObjType) \
- class ClassName : public HashTableIterator \
- { \
- public: \
- ClassName(HashTable const& aTable) \
- : HashTableIterator(aTable) {} \
+#define DECLARE_HASHTABLE_ITERATOR(ClassName,ObjType) \
+ class ClassName : public HashTableIterator \
+ { \
+ public: \
+ ClassName(HashTable const& aTable) \
+ : HashTableIterator(aTable) {} \
\
- ObjType GetFirst() \
- { return (ObjType)HashTableIterator::GetFirst(); } \
- ObjType GetNext() \
- { return (ObjType)HashTableIterator::GetNext(); } \
- ObjType GetLast() \
- { return (ObjType)HashTableIterator::GetLast(); } \
- ObjType GetPrev() \
- { return (ObjType)HashTableIterator::GetPrev(); } \
+ ObjType GetFirst() \
+ { return (ObjType)HashTableIterator::GetFirst(); } \
+ ObjType GetNext() \
+ { return (ObjType)HashTableIterator::GetNext(); } \
+ ObjType GetLast() \
+ { return (ObjType)HashTableIterator::GetLast(); } \
+ ObjType GetPrev() \
+ { return (ObjType)HashTableIterator::GetPrev(); } \
};
-
+
#endif // _HASHTBL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/workben/helloworld.c b/tools/workben/helloworld.c
index d26d986ba594..6a484f4bb39f 100644
--- a/tools/workben/helloworld.c
+++ b/tools/workben/helloworld.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/workben/inetmimetest.cxx b/tools/workben/inetmimetest.cxx
index 9aac5719550e..27f62a605c07 100644
--- a/tools/workben/inetmimetest.cxx
+++ b/tools/workben/inetmimetest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/tools/workben/solar.c b/tools/workben/solar.c
index 283234220245..e5b5e1ea741f 100644
--- a/tools/workben/solar.c
+++ b/tools/workben/solar.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,11 +68,11 @@ int check( TestFunc func, Type eT, void* p );
#else
#endif
-#define printTypeSize(Type,Name) printf( "sizeof(%s)\t= %d\n", Name, \
+#define printTypeSize(Type,Name) printf( "sizeof(%s)\t= %d\n", Name, \
sizeof (Type) )
-#define isSignedType(Type) (((Type)-1) < 0)
-#define printTypeSign(Type,Name) printf( "%s\t= %s %s\n", Name, \
+#define isSignedType(Type) (((Type)-1) < 0)
+#define printTypeSign(Type,Name) printf( "%s\t= %s %s\n", Name, \
( isSignedType(Type) ? "unsigned" : "signed" ), Name )
@@ -163,7 +163,7 @@ void __cdecl SignalHandler( int sig )
bSignal = 1;
/*
fprintf( stderr, "Signal %d caught\n", sig );
- signal( sig, SignalHandler );
+ signal( sig, SignalHandler );
*/
longjmp( check_env, sig );
}
@@ -193,15 +193,15 @@ int check( TestFunc func, Type eT, void* p )
if ( !setjmp( check_env ) )
{
- signal( SIGSEGV, SignalHandler );
+ signal( SIGSEGV, SignalHandler );
#ifdef UNX
- signal( SIGBUS, SignalHandler );
+ signal( SIGBUS, SignalHandler );
#else
#endif
result = func( eT, p );
- signal( SIGSEGV, SIG_DFL );
+ signal( SIGSEGV, SIG_DFL );
#ifdef UNX
- signal( SIGBUS, SIG_DFL );
+ signal( SIGBUS, SIG_DFL );
#else
#endif
}
@@ -220,11 +220,11 @@ int GetAtAddress( Type eT, void* p )
{
switch ( eT )
{
- case t_char: return *((char*)p);
- case t_short: return *((short*)p);
- case t_int: return *((int*)p);
- case t_long: return *((long*)p);
- case t_double: return *((double*)p);
+ case t_char: return *((char*)p);
+ case t_short: return *((short*)p);
+ case t_int: return *((int*)p);
+ case t_long: return *((long*)p);
+ case t_double: return *((double*)p);
}
abort();
}
@@ -233,11 +233,11 @@ int SetAtAddress( Type eT, void* p )
{
switch ( eT )
{
- case t_char: return *((char*)p) = 0;
- case t_short: return *((short*)p) = 0;
- case t_int: return *((int*)p) = 0;
- case t_long: return *((long*)p) = 0;
- case t_double: return *((double*)p)= 0;
+ case t_char: return *((char*)p) = 0;
+ case t_short: return *((short*)p) = 0;
+ case t_int: return *((int*)p) = 0;
+ case t_long: return *((long*)p) = 0;
+ case t_double: return *((double*)p)= 0;
}
abort();
}
@@ -246,11 +246,11 @@ char* TypeName( Type eT )
{
switch ( eT )
{
- case t_char: return "char";
- case t_short: return "short";
- case t_int: return "int";
- case t_long: return "long";
- case t_double: return "double";
+ case t_char: return "char";
+ case t_short: return "short";
+ case t_int: return "int";
+ case t_long: return "long";
+ case t_double: return "double";
}
abort();
}
@@ -280,9 +280,9 @@ int CheckSetAccess( Type eT, void* p )
int GetAlignment( Type eT )
{
- char a[ 16*8 ];
- int p = (int)(void*)&a;
- int i;
+ char a[ 16*8 ];
+ int p = (int)(void*)&a;
+ int i;
p = ( p + 0xF ) & ~0xF;
for ( i = 1; i < 16; i++ )
if ( CheckGetAccess( eT, (void*)(p+i) ) )
@@ -307,17 +307,17 @@ int CheckCharAccess( char* p )
struct Description
{
- int bBigEndian;
- int bStackGrowsDown;
- int nStackAlignment;
- int nAlignment[3]; /* 2,4,8 */
+ int bBigEndian;
+ int bStackGrowsDown;
+ int nStackAlignment;
+ int nAlignment[3]; /* 2,4,8 */
};
void Description_Ctor( struct Description* pThis )
{
- pThis->bBigEndian = IsBigEndian();
- pThis->bStackGrowsDown = IsStackGrowingDown();
- pThis->nStackAlignment = GetStackAlignment();
+ pThis->bBigEndian = IsBigEndian();
+ pThis->bStackGrowsDown = IsStackGrowingDown();
+ pThis->nStackAlignment = GetStackAlignment();
if ( sizeof(short) != 2 )
abort();
diff --git a/tools/workben/tldem.cxx b/tools/workben/tldem.cxx
index b23686e82479..e83bc860e8bb 100644
--- a/tools/workben/tldem.cxx
+++ b/tools/workben/tldem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,6 +80,6 @@ main( int argc, char **argv )
return 0;
}
-
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/tools/workben/urltest.cxx b/tools/workben/urltest.cxx
index 0b0239a96f5a..98424a55114b 100644
--- a/tools/workben/urltest.cxx
+++ b/tools/workben/urltest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -192,7 +192,7 @@ bool testSetFSys(SetFSysTest const * pTest, std::size_t nSize)
{
String aTestA = aUrl1.GetMainURL(INetURLObject::NO_DECODE);
String aTestB = aUrl2.GetMainURL(INetURLObject::NO_DECODE);
-
+
printf(" BAD %s %s -> %s, %s (%s)\n",
ByteString(aPath, RTL_TEXTENCODING_ISO_8859_1).GetBuffer(),
toString(pTest[i].m_eStyle),
diff --git a/ucbhelper/inc/pch/precompiled_ucbhelper.cxx b/ucbhelper/inc/pch/precompiled_ucbhelper.cxx
index 9c38231bc246..0d3dd43fc13c 100644
--- a/ucbhelper/inc/pch/precompiled_ucbhelper.cxx
+++ b/ucbhelper/inc/pch/precompiled_ucbhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/pch/precompiled_ucbhelper.hxx b/ucbhelper/inc/pch/precompiled_ucbhelper.hxx
index 9a4ed394a76b..1166a6f31358 100644
--- a/ucbhelper/inc/pch/precompiled_ucbhelper.hxx
+++ b/ucbhelper/inc/pch/precompiled_ucbhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/activedatasink.hxx b/ucbhelper/inc/ucbhelper/activedatasink.hxx
index 6a0b47fdba70..0c12bf0d3daf 100644
--- a/ucbhelper/inc/ucbhelper/activedatasink.hxx
+++ b/ucbhelper/inc/ucbhelper/activedatasink.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/activedatastreamer.hxx b/ucbhelper/inc/ucbhelper/activedatastreamer.hxx
index 200a2e2ad60a..9b6148921ffc 100644
--- a/ucbhelper/inc/ucbhelper/activedatastreamer.hxx
+++ b/ucbhelper/inc/ucbhelper/activedatastreamer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/cancelcommandexecution.hxx b/ucbhelper/inc/ucbhelper/cancelcommandexecution.hxx
index 0facae0f02b7..078f1817f505 100644
--- a/ucbhelper/inc/ucbhelper/cancelcommandexecution.hxx
+++ b/ucbhelper/inc/ucbhelper/cancelcommandexecution.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/commandenvironment.hxx b/ucbhelper/inc/ucbhelper/commandenvironment.hxx
index 0ad13bf76ad4..f4737f22c3e3 100644
--- a/ucbhelper/inc/ucbhelper/commandenvironment.hxx
+++ b/ucbhelper/inc/ucbhelper/commandenvironment.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,8 +54,8 @@ class UCBHELPER_DLLPUBLIC CommandEnvironment : public cppu::OWeakObject,
CommandEnvironment_Impl* m_pImpl;
private:
- UCBHELPER_DLLPRIVATE CommandEnvironment( const CommandEnvironment& ); // n.i.
- UCBHELPER_DLLPRIVATE CommandEnvironment& operator=( const CommandEnvironment& ); // n.i.
+ UCBHELPER_DLLPRIVATE CommandEnvironment( const CommandEnvironment& ); // n.i.
+ UCBHELPER_DLLPRIVATE CommandEnvironment& operator=( const CommandEnvironment& ); // n.i.
public:
/**
diff --git a/ucbhelper/inc/ucbhelper/commandenvironmentproxy.hxx b/ucbhelper/inc/ucbhelper/commandenvironmentproxy.hxx
index 90c05d17d19e..2cd7ee3ed982 100644
--- a/ucbhelper/inc/ucbhelper/commandenvironmentproxy.hxx
+++ b/ucbhelper/inc/ucbhelper/commandenvironmentproxy.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ class CommandEnvironmentProxy : public cppu::OWeakObject,
CommandEnvironmentProxy_Impl* m_pImpl;
private:
- CommandEnvironmentProxy( const CommandEnvironmentProxy& ); // n.i.
+ CommandEnvironmentProxy( const CommandEnvironmentProxy& ); // n.i.
CommandEnvironmentProxy& operator=( const CommandEnvironmentProxy& ); // n.i.
public:
@@ -69,7 +69,7 @@ public:
*/
CommandEnvironmentProxy(
const com::sun::star::uno::Reference<
- com::sun::star::ucb::XCommandEnvironment >& rxEnv );
+ com::sun::star::ucb::XCommandEnvironment >& rxEnv );
/**
* Destructor.
*/
diff --git a/ucbhelper/inc/ucbhelper/configurationkeys.hxx b/ucbhelper/inc/ucbhelper/configurationkeys.hxx
index d99f5788c1d3..e0bfef91fc46 100644
--- a/ucbhelper/inc/ucbhelper/configurationkeys.hxx
+++ b/ucbhelper/inc/ucbhelper/configurationkeys.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/content.hxx b/ucbhelper/inc/ucbhelper/content.hxx
index f290134dfae1..39833ebd2ea0 100644
--- a/ucbhelper/inc/ucbhelper/content.hxx
+++ b/ucbhelper/inc/ucbhelper/content.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/contentbroker.hxx b/ucbhelper/inc/ucbhelper/contentbroker.hxx
index f21597cccc84..c7fdd53a361d 100644
--- a/ucbhelper/inc/ucbhelper/contentbroker.hxx
+++ b/ucbhelper/inc/ucbhelper/contentbroker.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,26 +60,26 @@ class ContentBroker_Impl;
*/
class UCBHELPER_DLLPUBLIC ContentBroker
{
- ContentBroker_Impl* m_pImpl;
+ ContentBroker_Impl* m_pImpl;
// The "one and only" Broker.
- static ContentBroker* m_pTheBroker;
+ static ContentBroker* m_pTheBroker;
private:
- UCBHELPER_DLLPRIVATE ContentBroker( const ContentBroker& ); // n.i.
- UCBHELPER_DLLPRIVATE ContentBroker& operator=( const ContentBroker& ); // n.i.
+ UCBHELPER_DLLPRIVATE ContentBroker( const ContentBroker& ); // n.i.
+ UCBHELPER_DLLPRIVATE ContentBroker& operator=( const ContentBroker& ); // n.i.
/** Constructor.
*
* @param rxSMgr is a Service Manager.
- * @param rArguments are the arguments to pass to the
- * com.sun.star.ucb.UniversalContentBroker service when creating it.
- * Currently, this must be a sequence containing exactly two
+ * @param rArguments are the arguments to pass to the
+ * com.sun.star.ucb.UniversalContentBroker service when creating it.
+ * Currently, this must be a sequence containing exactly two
* strings, a primary and a secondary configuration key.
* Refer to http://ucb.openoffice.org/docs/ucb-configuration.html
* for more information on UCB configuration.
*/
UCBHELPER_DLLPRIVATE ContentBroker( const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory >& rSMgr,
+ ::com::sun::star::lang::XMultiServiceFactory >& rSMgr,
const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Any >& rArguments );
@@ -90,7 +90,7 @@ private:
* the new UCB.
*/
UCBHELPER_DLLPRIVATE ContentBroker( const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory >& rSMgr,
+ ::com::sun::star::lang::XMultiServiceFactory >& rSMgr,
const ContentProviderDataList & rData );
protected:
@@ -101,20 +101,20 @@ protected:
public:
/** Initialize "the one and only" Broker. This method must be called
- * exactly once, before the Broker is used in any way.
+ * exactly once, before the Broker is used in any way.
*
- * @param rSMgr is a factory to create services needed in the Broker's
- * implementation.
+ * @param rSMgr is a factory to create services needed in the Broker's
+ * implementation.
*
- * @param rArguments are the arguments to pass to the
- * com.sun.star.ucb.UniversalContentBroker service when creating
+ * @param rArguments are the arguments to pass to the
+ * com.sun.star.ucb.UniversalContentBroker service when creating
* it. Currently, this must be a sequence containing exactly two
* strings, a primary and a secondary configuration key.
* Refer to http://ucb.openoffice.org/docs/ucb-configuration.html
* for more information on UCB configuration.
*
- * @return True if creation and possible configuration of the Broker
- * was successful.
+ * @return True if creation and possible configuration of the Broker
+ * was successful.
*/
static sal_Bool
initialize( const::com::sun::star::uno::Reference<
@@ -123,16 +123,16 @@ public:
::com::sun::star::uno::Any >& rArguments );
/** Initialize "the one and only" Broker. This method must be called
- * exactly once, before the Broker is used in any way.
+ * exactly once, before the Broker is used in any way.
*
- * @param rSMgr is a factory to create services needed in the Broker's
- * implementation.
+ * @param rSMgr is a factory to create services needed in the Broker's
+ * implementation.
*
* @param rData are the data for the for the content providers for
* the UCB to initialize.
*
- * @return True if creation and possible configuration of the Broker
- * was successful.
+ * @return True if creation and possible configuration of the Broker
+ * was successful.
*/
static sal_Bool
initialize( const::com::sun::star::uno::Reference<
@@ -140,7 +140,7 @@ public:
const ContentProviderDataList & rData );
/** Deinitialize "the one and only" Broker. Once this method has been
- * called, the Broker must not be used any longer.
+ * called, the Broker must not be used any longer.
*/
static void
deinitialize();
diff --git a/ucbhelper/inc/ucbhelper/contenthelper.hxx b/ucbhelper/inc/ucbhelper/contenthelper.hxx
index fdeb3a307979..f5711af7a64d 100644
--- a/ucbhelper/inc/ucbhelper/contenthelper.hxx
+++ b/ucbhelper/inc/ucbhelper/contenthelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,16 +77,16 @@ class ContentProviderImplHelper;
*
* Features of the base class implementation:
* - standard interfaces ( XInterface, XTypeProvider, XServiceInfo )
- * - all required interfaces for service com::sun::star::ucb::Content
+ * - all required interfaces for service com::sun::star::ucb::Content
* - all required listener containers
* ( XComponent, XPropertiesChangeNotifier, XPropertySetInfoChangeNotifier,
* XCommandInfoChangeNotifier )
- * - XPropertyContainer implementation ( persistence is implemented using
+ * - XPropertyContainer implementation ( persistence is implemented using
* service com.sun.star.ucb.Store )
* - complete XPropertySetInfo implementation ( including Additioanl Core
* Properties supplied via XPropertyContainer interface )
* -> protected method: getPropertySetInfo
- * - complete XCommandInfo implementation
+ * - complete XCommandInfo implementation
* -> protected method: getCommandInfo
*/
class UCBHELPER_DLLPUBLIC ContentImplHelper :
@@ -108,14 +108,14 @@ class UCBHELPER_DLLPUBLIC ContentImplHelper :
ucbhelper_impl::ContentImplHelper_Impl* m_pImpl;
protected:
- osl::Mutex m_aMutex;
+ osl::Mutex m_aMutex;
com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >
m_xSMgr;
com::sun::star::uno::Reference< com::sun::star::ucb::XContentIdentifier >
m_xIdentifier;
rtl::Reference< ContentProviderImplHelper >
m_xProvider;
- sal_uInt32 m_nCommandId;
+ sal_uInt32 m_nCommandId;
private:
/**
@@ -130,7 +130,7 @@ private:
* @param xEnv is an environment to use for example, for interactions.
* @return a sequence containing the property meta data.
*/
- UCBHELPER_DLLPRIVATE
+ UCBHELPER_DLLPRIVATE
virtual com::sun::star::uno::Sequence< com::sun::star::beans::Property >
getProperties( const com::sun::star::uno::Reference<
com::sun::star::ucb::XCommandEnvironment > & xEnv ) = 0;
@@ -142,7 +142,7 @@ private:
* @param xEnv is an environment to use for example, for interactions.
* @return a sequence containing the command meta data.
*/
- UCBHELPER_DLLPRIVATE
+ UCBHELPER_DLLPRIVATE
virtual com::sun::star::uno::Sequence< com::sun::star::ucb::CommandInfo >
getCommands( const com::sun::star::uno::Reference<
com::sun::star::ucb::XCommandEnvironment > & xEnv ) = 0;
@@ -161,7 +161,7 @@ private:
protected:
/**
- * This method returns complete meta data for the properties ( including
+ * This method returns complete meta data for the properties ( including
* Additional Core Properties supplied via XPropertyContainer interface )
* supported by the content. To implement the required command
* "getPropertySetInfo" simply return the return value of this method.
@@ -178,7 +178,7 @@ protected:
sal_Bool bCache = sal_True );
/**
- * This method returns complete meta data for the commands supported by
+ * This method returns complete meta data for the commands supported by
* the content. To implement the required command "getCommandInfo" simply
* return the return value of this method.
*
@@ -238,15 +238,15 @@ protected:
const com::sun::star::ucb::ContentEvent& evt ) const;
/**
- * Use this method to announce the insertion of this content at
- * the end of your implementation of the command "insert". The
+ * Use this method to announce the insertion of this content at
+ * the end of your implementation of the command "insert". The
* implementation of is method propagates a ContentEvent( INSERTED ).
*/
void inserted();
/**
- * Use this method to announce the destruction of this content at
- * the end of your implementation of the command "delete". The
+ * Use this method to announce the destruction of this content at
+ * the end of your implementation of the command "delete". The
* implementation of is method propagates a ContentEvent( DELETED )
* and a ContentEvent( REMOVED ) at the parent of the deleted content,
* if a parent exists.
@@ -254,7 +254,7 @@ protected:
void deleted();
/**
- * Use this method to change the identity of a content. The implementation
+ * Use this method to change the identity of a content. The implementation
* of this method will replace the content identifier of the content and
* propagate the appropriate ContentEvent( EXCHANGED ).
*
@@ -265,8 +265,8 @@ protected:
com::sun::star::ucb::XContentIdentifier >& rNewId );
/**
- * Use this method to get access to the Additional Core Properties of
- * the content ( added using content's XPropertyContainer interface ).
+ * Use this method to get access to the Additional Core Properties of
+ * the content ( added using content's XPropertyContainer interface ).
* If you supply your own XPropertyContainer implementation, this method
* will always return an empty propertyset.
*
@@ -275,12 +275,12 @@ protected:
* @return the implementation of the service
* com.sun.star.ucb.PersistentPropertySet.
*/
- com::sun::star::uno::Reference<
+ com::sun::star::uno::Reference<
com::sun::star::ucb::XPersistentPropertySet >
getAdditionalPropertySet( sal_Bool bCreate );
/**
- * This method renames the propertyset containing the Additional Core
+ * This method renames the propertyset containing the Additional Core
* Properties of the content.
*
* @param rOldKey is the old key of the propertyset.
@@ -294,7 +294,7 @@ protected:
sal_Bool bRecursive );
/**
- * This method copies the propertyset containing the Additional Core
+ * This method copies the propertyset containing the Additional Core
* Properties of the content.
*
* @param rSourceKey is the key of the source propertyset.
@@ -308,7 +308,7 @@ protected:
sal_Bool bRecursive );
/**
- * This method removes the propertyset containing the Additional Core
+ * This method removes the propertyset containing the Additional Core
* Properties of the content.
*
* @param bRecursive is a flag indicating whether propertysets for
diff --git a/ucbhelper/inc/ucbhelper/contentidentifier.hxx b/ucbhelper/inc/ucbhelper/contentidentifier.hxx
index daf43ed6512f..414db18c6f36 100644
--- a/ucbhelper/inc/ucbhelper/contentidentifier.hxx
+++ b/ucbhelper/inc/ucbhelper/contentidentifier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/contentinfo.hxx b/ucbhelper/inc/ucbhelper/contentinfo.hxx
index 507ca271668d..f32989ef9cdb 100644
--- a/ucbhelper/inc/ucbhelper/contentinfo.hxx
+++ b/ucbhelper/inc/ucbhelper/contentinfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,14 +60,14 @@ class PropertySetInfo :
public com::sun::star::lang::XTypeProvider,
public com::sun::star::beans::XPropertySetInfo
{
- com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >
+ com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >
m_xSMgr;
- com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >
+ com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >
m_xEnv;
com::sun::star::uno::Sequence< com::sun::star::beans::Property >*
m_pProps;
- osl::Mutex m_aMutex;
- ContentImplHelper* m_pContent;
+ osl::Mutex m_aMutex;
+ ContentImplHelper* m_pContent;
private:
sal_Bool queryProperty( const rtl::OUString& rName,
@@ -120,14 +120,14 @@ class CommandProcessorInfo :
public com::sun::star::lang::XTypeProvider,
public com::sun::star::ucb::XCommandInfo
{
- com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >
+ com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >
m_xSMgr;
- com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >
+ com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment >
m_xEnv;
com::sun::star::uno::Sequence< com::sun::star::ucb::CommandInfo >*
m_pCommands;
- osl::Mutex m_aMutex;
- ContentImplHelper* m_pContent;
+ osl::Mutex m_aMutex;
+ ContentImplHelper* m_pContent;
private:
sal_Bool queryCommand( const rtl::OUString& rName,
diff --git a/ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx b/ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx
index 14bfb177545f..94ecfd232ea4 100644
--- a/ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx
+++ b/ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/handleinteractionrequest.hxx b/ucbhelper/inc/ucbhelper/handleinteractionrequest.hxx
index ab0d445e76a9..e124734dee2f 100644
--- a/ucbhelper/inc/ucbhelper/handleinteractionrequest.hxx
+++ b/ucbhelper/inc/ucbhelper/handleinteractionrequest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/interactionrequest.hxx b/ucbhelper/inc/ucbhelper/interactionrequest.hxx
index 5bd3a008ace2..18bb6c10a21e 100644
--- a/ucbhelper/inc/ucbhelper/interactionrequest.hxx
+++ b/ucbhelper/inc/ucbhelper/interactionrequest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -506,7 +506,7 @@ public:
throw( com::sun::star::uno::RuntimeException );
// XInteractionSupplyAuthentication2
- virtual ::sal_Bool SAL_CALL canUseSystemCredentials( ::sal_Bool& Default )
+ virtual ::sal_Bool SAL_CALL canUseSystemCredentials( ::sal_Bool& Default )
throw ( ::com::sun::star::uno::RuntimeException );
virtual void SAL_CALL setUseSystemCredentials( ::sal_Bool UseSystemCredentials )
throw ( ::com::sun::star::uno::RuntimeException );
@@ -627,7 +627,7 @@ inline InteractionSupplyAuthentication::InteractionSupplyAuthentication(
m_bCanSetPassword( bCanSetPassword ),
m_bCanSetAccount( bCanSetAccount ),
m_bCanUseSystemCredentials( bCanUseSystemCredentials ),
- m_bDefaultUseSystemCredentials( bDefaultUseSystemCredentials ),
+ m_bDefaultUseSystemCredentials( bDefaultUseSystemCredentials ),
m_bUseSystemCredentials( bDefaultUseSystemCredentials & bCanUseSystemCredentials )
{
}
diff --git a/ucbhelper/inc/ucbhelper/interceptedinteraction.hxx b/ucbhelper/inc/ucbhelper/interceptedinteraction.hxx
index f4ad20251415..542890da3649 100644
--- a/ucbhelper/inc/ucbhelper/interceptedinteraction.hxx
+++ b/ucbhelper/inc/ucbhelper/interceptedinteraction.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace ucbhelper{
/** @short it wraps any other interaction handler and intercept
its handle() requests.
-
+
@descr This class can be used as:
- instance if special interactions must be supressed
only
@@ -61,28 +61,28 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public ::cppu::WeakImplHelper
//-------------------------------------------
// types
public:
-
+
struct InterceptedRequest
{
//-----------------------------------
/** @short marks an Handle as invalid.
*/
static const sal_Int32 INVALID_HANDLE = -1;
-
+
//-----------------------------------
/** @short contains the interaction request, which should be intercepted. */
::com::sun::star::uno::Any Request;
-
+
//-----------------------------------
/** @short specify the fix continuation, which must be selected, if the
interaction could be intercepted successfully.
*/
::com::sun::star::uno::Type Continuation;
-
+
//-----------------------------------
/** @short specify, if both interactions must have the same type
or can be derived from.
-
+
@descr Interaction base on exceptions - and exceptions are real types.
So they can be checked in its type. These parameter "MatchExact"
influence the type-check in the following way:
@@ -90,24 +90,24 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public ::cppu::WeakImplHelper
if it supports exactly the same type ...
or
FALSE => derived exceptions will be intercepted too.
-
+
@attention This parameter does not influence the check of the continuation
type! The continuation must be matched exactly everytimes ...
*/
sal_Bool MatchExact;
-
+
//-----------------------------------
/** @short its an unique identifier, which must be managed by the outside code.
-
+
@descr If there is a derived class, which overwrites the InterceptedInteraction::intercepted()
method, it will be called with a reference to an InterceptedRequest struct.
Then it can use the handle to react without checking the request type again.
*/
sal_Int32 Handle;
-
+
//-----------------------------------
/** @short default ctor.
-
+
@descr Such constructed object cant be used realy.
Might it will crash if its used!
Dont forget to initialize all(!) members ...
@@ -117,17 +117,17 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public ::cppu::WeakImplHelper
MatchExact = sal_False;
Handle = INVALID_HANDLE;
}
-
+
//-----------------------------------
/** @short initialize this instance.
-
+
@param nHandle
used to identify every intercepted request
-
+
@param aRequest
must contain an exception object, which can be checked
in its uno-type against the later handled interaction.
-
+
@param aContinuation
must contain a continuation object, which is used
in its uno-type to locate the same continuation
@@ -148,12 +148,12 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public ::cppu::WeakImplHelper
MatchExact = bMatchExact;
}
};
-
+
//---------------------------------------
/** @short represent the different states, which can occure
as result of an interception.
-
- @see impl_interceptRequest()
+
+ @see impl_interceptRequest()
*/
enum EInterceptionState
{
@@ -166,26 +166,26 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public ::cppu::WeakImplHelper
/** the request could be intercepted and the specified continuation could be selected successfully. */
E_INTERCEPTED
};
-
+
//-------------------------------------------
// member
protected:
-
+
//---------------------------------------
/** @short reference to the intercepted interaction handler.
-
+
@descr NULL is allowed for this member!
All interaction will be aborted then ...
expecting th handle() was overwritten by
a derived class.
*/
::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler > m_xInterceptedHandler;
-
+
//---------------------------------------
/** @short these list contains the requests, which should be intercepted.
*/
- ::std::vector< InterceptedRequest > m_lInterceptions;
-
+ ::std::vector< InterceptedRequest > m_lInterceptions;
+
//-------------------------------------------
// native interface
public:
@@ -194,14 +194,14 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public ::cppu::WeakImplHelper
/** @short initialize a new instance with default values.
*/
InterceptedInteraction();
-
+
//---------------------------------------
/** @short initialize a new instance with real values.
-
+
@param xInterceptedHandler
the outside interaction handler, which should
be intercepted here.
-
+
@param lInterceptions
the list of intercepted requests.
*/
@@ -215,82 +215,82 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public ::cppu::WeakImplHelper
@attention If such interaction handler isnt set here,
all incoming requests will be aborted ...
if the right continuation is available!
-
+
@param xInterceptedHandler
the outside interaction handler, which should
be intercepted here.
- */
+ */
void setInterceptedHandler(const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& xInterceptedHandler);
-
+
//---------------------------------------
/** @short set a new list of intercepted interactions.
@attention If the interface method handle() will be overwritten by
a derived class, the functionality behind these static list
cant be used.
-
+
@param lInterceptions
the list of intercepted requests.
- */
+ */
void setInterceptions(const ::std::vector< InterceptedRequest >& lInterceptions);
-
+
//---------------------------------------
/** @short extract a requested continuation from te list of available ones.
-
+
@param lContinuations
the list of available continuations.
-
+
@param aType
is used to locate the right continuation,
by checking its interface type.
-
+
@return A valid reference to the continuation, if it could be located ...
or an empty reference otherwhise.
*/
static ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation > extractContinuation(
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation > >& lContinuations,
const ::com::sun::star::uno::Type& aType );
-
+
//-------------------------------------------
// useable for derived classes
protected:
-
+
//---------------------------------------
/** @short can be overwritten by a derived class to handle interceptions
outside.
-
+
@descr This base implementation checks, if the request could be intercepted
successfully. Then this method intercepted() is called.
The default implementation returns "NOT_INTERCEPTED" everytimes.
So the method impl_interceptRequest() uses the right continuation automaticly.
-
+
If this method was overwritten and something different "NO_INTERCEPTED"
is returned, the method impl_interceptRequest() will return immediatly with
the result, which is returned by this intercepted() method.
Then the continuations must be selected inside the intercepted() call!
-
+
@param rRequest
it points to the intercepted request (means the item of the
set interception list). e.g. its "Handle" member can be used
to identify it and react very easy, without the need to check the
type of the exception ...
-
+
@param xOrgRequest
points to the original interaction, which was intercepted.
It provides access to the exception and the list of possible
continuations.
-
+
@return The result of this operation.
Note: If E_NOT_INTERCEPTED is returned the default handling of the base class
will be used automaticly for this request!
*/
virtual EInterceptionState intercepted(const InterceptedRequest& rRequest ,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& xOrgRequest);
-
+
//-------------------------------------------
// uno interface
public:
-
+
//---------------------------------------
/** @short implements the default handling of this class ....
or can be overwritten by any derived class.
@@ -304,39 +304,39 @@ class UCBHELPER_DLLPUBLIC InterceptedInteraction : public ::cppu::WeakImplHelper
If this method was overwritten by a derived implementation
-> the new implementation has to do everything by itself.
Of course it can access all members/helpers and work with it.
- But the default implementation isnt used automaticly then.
-
+ But the default implementation isnt used automaticly then.
+
@param xRequest
the interaction request, which should be intercepted.
- */
+ */
virtual void SAL_CALL handle(const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& xRequest)
throw(::com::sun::star::uno::RuntimeException);
-
+
//-------------------------------------------
// helper
private:
-
+
//---------------------------------------
/** @short implements the default handling:
- intercept or forward to internal handler.
*/
UCBHELPER_DLLPRIVATE void impl_handleDefault(const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& xRequest);
-
+
//---------------------------------------
/** @short implements the interception of requests.
-
+
@descr The incoming request will be analyzed, if it match
any request of the m_lIntercepions list.
If an interception could be found, its continuation will be
searched and selected.
-
+
The method return the state of that operation.
But it doesnt call the intercepted and here set
interaction handler. That has to be done in the outside method.
-
+
@param xRequest
the interaction request, which should be intercepted.
-
+
@return A identifier, which inidicates if the request was intercepted,
the continuation was found and selected ... or not.
*/
diff --git a/ucbhelper/inc/ucbhelper/macros.hxx b/ucbhelper/inc/ucbhelper/macros.hxx
index 302be2132f05..e6d6553b6504 100644
--- a/ucbhelper/inc/ucbhelper/macros.hxx
+++ b/ucbhelper/inc/ucbhelper/macros.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,8 +39,8 @@
//=========================================================================
-#define CPPU_TYPE( T ) getCppuType( static_cast< T * >( 0 ) )
-#define CPPU_TYPE_REF( T ) CPPU_TYPE( com::sun::star::uno::Reference< T > )
+#define CPPU_TYPE( T ) getCppuType( static_cast< T * >( 0 ) )
+#define CPPU_TYPE_REF( T ) CPPU_TYPE( com::sun::star::uno::Reference< T > )
//=========================================================================
//
@@ -48,12 +48,12 @@
//
//=========================================================================
-#define XINTERFACE_DECL() \
- virtual com::sun::star::uno::Any SAL_CALL \
+#define XINTERFACE_DECL() \
+ virtual com::sun::star::uno::Any SAL_CALL \
queryInterface( const com::sun::star::uno::Type & rType ) \
throw( com::sun::star::uno::RuntimeException ); \
- virtual void SAL_CALL \
- acquire() \
+ virtual void SAL_CALL \
+ acquire() \
throw(); \
virtual void SAL_CALL \
release() \
@@ -65,20 +65,20 @@
//
//=========================================================================
-#define XINTERFACE_COMMON_IMPL( Class ) \
+#define XINTERFACE_COMMON_IMPL( Class ) \
void SAL_CALL Class::acquire() \
throw() \
{ \
- OWeakObject::acquire(); \
+ OWeakObject::acquire(); \
} \
\
void SAL_CALL Class::release() \
throw() \
{ \
- OWeakObject::release(); \
+ OWeakObject::release(); \
}
-#define QUERYINTERFACE_IMPL_START( Class ) \
+#define QUERYINTERFACE_IMPL_START( Class ) \
com::sun::star::uno::Any SAL_CALL Class::queryInterface( \
const com::sun::star::uno::Type & rType ) \
throw( com::sun::star::uno::RuntimeException ) \
@@ -87,7 +87,7 @@ com::sun::star::uno::Any SAL_CALL Class::queryInterface( \
#define QUERYINTERFACE_IMPL_END \
); \
- return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); \
+ return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); \
}
//=========================================================================
@@ -97,14 +97,14 @@ com::sun::star::uno::Any SAL_CALL Class::queryInterface( \
//=========================================================================
// 1 interface implemented
-#define XINTERFACE_IMPL_1( Class, Ifc1 ) \
+#define XINTERFACE_IMPL_1( Class, Ifc1 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
SAL_STATIC_CAST( Ifc1*, this ) \
QUERYINTERFACE_IMPL_END
// 2 interfaces implemented
-#define XINTERFACE_IMPL_2( Class, Ifc1, Ifc2 ) \
+#define XINTERFACE_IMPL_2( Class, Ifc1, Ifc2 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
SAL_STATIC_CAST( Ifc1*, this ), \
@@ -112,7 +112,7 @@ QUERYINTERFACE_IMPL_START( Class ) \
QUERYINTERFACE_IMPL_END
// 3 interfaces implemented
-#define XINTERFACE_IMPL_3( Class, Ifc1, Ifc2, Ifc3 ) \
+#define XINTERFACE_IMPL_3( Class, Ifc1, Ifc2, Ifc3 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
SAL_STATIC_CAST( Ifc1*, this ), \
@@ -121,7 +121,7 @@ QUERYINTERFACE_IMPL_START( Class ) \
QUERYINTERFACE_IMPL_END
// 4 interfaces implemented
-#define XINTERFACE_IMPL_4( Class, Ifc1, Ifc2, Ifc3, Ifc4 ) \
+#define XINTERFACE_IMPL_4( Class, Ifc1, Ifc2, Ifc3, Ifc4 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
SAL_STATIC_CAST( Ifc1*, this ), \
@@ -131,7 +131,7 @@ QUERYINTERFACE_IMPL_START( Class ) \
QUERYINTERFACE_IMPL_END
// 5 interfaces implemented
-#define XINTERFACE_IMPL_5( Class, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5 ) \
+#define XINTERFACE_IMPL_5( Class, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
SAL_STATIC_CAST( Ifc1*, this ), \
@@ -142,168 +142,168 @@ QUERYINTERFACE_IMPL_START( Class ) \
QUERYINTERFACE_IMPL_END
// 6 interfaces implemented
-#define XINTERFACE_IMPL_6( Class,I1,I2,I3,I4,I5,I6 ) \
+#define XINTERFACE_IMPL_6( Class,I1,I2,I3,I4,I5,I6 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ) \
QUERYINTERFACE_IMPL_END
// 7 interfaces implemented
-#define XINTERFACE_IMPL_7( Class,I1,I2,I3,I4,I5,I6,I7 ) \
+#define XINTERFACE_IMPL_7( Class,I1,I2,I3,I4,I5,I6,I7 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ) \
QUERYINTERFACE_IMPL_END
// 8 interfaces implemented
-#define XINTERFACE_IMPL_8( Class,I1,I2,I3,I4,I5,I6,I7,I8 ) \
+#define XINTERFACE_IMPL_8( Class,I1,I2,I3,I4,I5,I6,I7,I8 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ), \
+ SAL_STATIC_CAST( I8*, this ) \
QUERYINTERFACE_IMPL_END
// 9 interfaces implemented
-#define XINTERFACE_IMPL_9( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9 ) \
+#define XINTERFACE_IMPL_9( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ), \
+ SAL_STATIC_CAST( I8*, this ), \
+ SAL_STATIC_CAST( I9*, this ) \
QUERYINTERFACE_IMPL_END
// 10 interfaces implemented
-#define XINTERFACE_IMPL_10( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10 ) \
+#define XINTERFACE_IMPL_10( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ), \
+ SAL_STATIC_CAST( I8*, this ), \
+ SAL_STATIC_CAST( I9*, this ), \
+ SAL_STATIC_CAST( I10*, this ) \
QUERYINTERFACE_IMPL_END
// 11 interfaces implemented
-#define XINTERFACE_IMPL_11( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11 ) \
+#define XINTERFACE_IMPL_11( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ), \
+ SAL_STATIC_CAST( I8*, this ), \
+ SAL_STATIC_CAST( I9*, this ), \
+ SAL_STATIC_CAST( I10*, this ), \
+ SAL_STATIC_CAST( I11*, this ) \
QUERYINTERFACE_IMPL_END
// 12 interfaces implemented
-#define XINTERFACE_IMPL_12( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12 ) \
+#define XINTERFACE_IMPL_12( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ), \
- SAL_STATIC_CAST( I12*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ), \
+ SAL_STATIC_CAST( I8*, this ), \
+ SAL_STATIC_CAST( I9*, this ), \
+ SAL_STATIC_CAST( I10*, this ), \
+ SAL_STATIC_CAST( I11*, this ), \
+ SAL_STATIC_CAST( I12*, this ) \
QUERYINTERFACE_IMPL_END
// 13 interfaces implemented
#define XINTERFACE_IMPL_13( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ), \
- SAL_STATIC_CAST( I12*, this ), \
- SAL_STATIC_CAST( I13*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ), \
+ SAL_STATIC_CAST( I8*, this ), \
+ SAL_STATIC_CAST( I9*, this ), \
+ SAL_STATIC_CAST( I10*, this ), \
+ SAL_STATIC_CAST( I11*, this ), \
+ SAL_STATIC_CAST( I12*, this ), \
+ SAL_STATIC_CAST( I13*, this ) \
QUERYINTERFACE_IMPL_END
// 14 interfaces implemented
-#define XINTERFACE_IMPL_14( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14 ) \
+#define XINTERFACE_IMPL_14( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ), \
- SAL_STATIC_CAST( I12*, this ), \
- SAL_STATIC_CAST( I13*, this ), \
- SAL_STATIC_CAST( I14*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ), \
+ SAL_STATIC_CAST( I8*, this ), \
+ SAL_STATIC_CAST( I9*, this ), \
+ SAL_STATIC_CAST( I10*, this ), \
+ SAL_STATIC_CAST( I11*, this ), \
+ SAL_STATIC_CAST( I12*, this ), \
+ SAL_STATIC_CAST( I13*, this ), \
+ SAL_STATIC_CAST( I14*, this ) \
QUERYINTERFACE_IMPL_END
// 15 interfaces implemented
-#define XINTERFACE_IMPL_15( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15 ) \
+#define XINTERFACE_IMPL_15( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ), \
- SAL_STATIC_CAST( I12*, this ), \
- SAL_STATIC_CAST( I13*, this ), \
- SAL_STATIC_CAST( I14*, this ), \
- SAL_STATIC_CAST( I15*, this ) \
+ SAL_STATIC_CAST( I1*, this ), \
+ SAL_STATIC_CAST( I2*, this ), \
+ SAL_STATIC_CAST( I3*, this ), \
+ SAL_STATIC_CAST( I4*, this ), \
+ SAL_STATIC_CAST( I5*, this ), \
+ SAL_STATIC_CAST( I6*, this ), \
+ SAL_STATIC_CAST( I7*, this ), \
+ SAL_STATIC_CAST( I8*, this ), \
+ SAL_STATIC_CAST( I9*, this ), \
+ SAL_STATIC_CAST( I10*, this ), \
+ SAL_STATIC_CAST( I11*, this ), \
+ SAL_STATIC_CAST( I12*, this ), \
+ SAL_STATIC_CAST( I13*, this ), \
+ SAL_STATIC_CAST( I14*, this ), \
+ SAL_STATIC_CAST( I15*, this ) \
QUERYINTERFACE_IMPL_END
//=========================================================================
@@ -312,12 +312,12 @@ QUERYINTERFACE_IMPL_END
//
//=========================================================================
-#define XTYPEPROVIDER_DECL() \
+#define XTYPEPROVIDER_DECL() \
virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL \
getImplementationId() \
- throw( com::sun::star::uno::RuntimeException ); \
+ throw( com::sun::star::uno::RuntimeException ); \
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL \
- getTypes() \
+ getTypes() \
throw( com::sun::star::uno::RuntimeException );
//=========================================================================
@@ -326,7 +326,7 @@ QUERYINTERFACE_IMPL_END
//
//=========================================================================
-#define XTYPEPROVIDER_COMMON_IMPL( Class ) \
+#define XTYPEPROVIDER_COMMON_IMPL( Class ) \
com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL \
Class::getImplementationId() \
throw( com::sun::star::uno::RuntimeException ) \
@@ -344,12 +344,12 @@ Class::getImplementationId() \
return (*pId).getImplementationId(); \
}
-#define GETTYPES_IMPL_START( Class ) \
+#define GETTYPES_IMPL_START( Class ) \
com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL \
Class::getTypes() \
throw( com::sun::star::uno::RuntimeException ) \
{ \
- static cppu::OTypeCollection* pCollection = NULL; \
+ static cppu::OTypeCollection* pCollection = NULL; \
if ( !pCollection ) \
{ \
osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() ); \
@@ -357,7 +357,7 @@ Class::getTypes() \
{ \
static cppu::OTypeCollection collection(
-#define GETTYPES_IMPL_END \
+#define GETTYPES_IMPL_END \
); \
pCollection = &collection; \
} \
@@ -372,213 +372,213 @@ Class::getTypes() \
//=========================================================================
// 1 interface supported
-#define XTYPEPROVIDER_IMPL_1( Class, I1 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ) \
+#define XTYPEPROVIDER_IMPL_1( Class, I1 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ) \
GETTYPES_IMPL_END
// 2 interfaces supported
-#define XTYPEPROVIDER_IMPL_2( Class, I1,I2 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ) \
+#define XTYPEPROVIDER_IMPL_2( Class, I1,I2 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ) \
GETTYPES_IMPL_END
// 3 interfaces supported
-#define XTYPEPROVIDER_IMPL_3( Class, I1,I2,I3 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ) \
+#define XTYPEPROVIDER_IMPL_3( Class, I1,I2,I3 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ) \
GETTYPES_IMPL_END
// 4 interfaces supported
-#define XTYPEPROVIDER_IMPL_4( Class, I1,I2,I3,I4 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ) \
+#define XTYPEPROVIDER_IMPL_4( Class, I1,I2,I3,I4 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ) \
GETTYPES_IMPL_END
// 5 interfaces supported
-#define XTYPEPROVIDER_IMPL_5( Class, I1,I2,I3,I4,I5 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ) \
+#define XTYPEPROVIDER_IMPL_5( Class, I1,I2,I3,I4,I5 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ) \
GETTYPES_IMPL_END
// 6 interfaces supported
-#define XTYPEPROVIDER_IMPL_6( Class, I1,I2,I3,I4,I5,I6 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ) \
+#define XTYPEPROVIDER_IMPL_6( Class, I1,I2,I3,I4,I5,I6 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ) \
GETTYPES_IMPL_END
// 7 interfaces supported
-#define XTYPEPROVIDER_IMPL_7( Class, I1,I2,I3,I4,I5,I6,I7 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ) \
+#define XTYPEPROVIDER_IMPL_7( Class, I1,I2,I3,I4,I5,I6,I7 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ) \
GETTYPES_IMPL_END
// 8 interfaces supported
-#define XTYPEPROVIDER_IMPL_8( Class, I1,I2,I3,I4,I5,I6,I7,I8 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ), \
- CPPU_TYPE_REF( I8 ) \
+#define XTYPEPROVIDER_IMPL_8( Class, I1,I2,I3,I4,I5,I6,I7,I8 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ), \
+ CPPU_TYPE_REF( I8 ) \
GETTYPES_IMPL_END
// 9 interfaces supported
-#define XTYPEPROVIDER_IMPL_9( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ), \
- CPPU_TYPE_REF( I8 ), \
- CPPU_TYPE_REF( I9 ) \
+#define XTYPEPROVIDER_IMPL_9( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ), \
+ CPPU_TYPE_REF( I8 ), \
+ CPPU_TYPE_REF( I9 ) \
GETTYPES_IMPL_END
// 10 interfaces supported
-#define XTYPEPROVIDER_IMPL_10( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ), \
- CPPU_TYPE_REF( I8 ), \
- CPPU_TYPE_REF( I9 ), \
- CPPU_TYPE_REF( I10 ) \
+#define XTYPEPROVIDER_IMPL_10( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ), \
+ CPPU_TYPE_REF( I8 ), \
+ CPPU_TYPE_REF( I9 ), \
+ CPPU_TYPE_REF( I10 ) \
GETTYPES_IMPL_END
// 11 interfaces supported
-#define XTYPEPROVIDER_IMPL_11( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ), \
- CPPU_TYPE_REF( I8 ), \
- CPPU_TYPE_REF( I9 ), \
- CPPU_TYPE_REF( I10 ), \
- CPPU_TYPE_REF( I11 ) \
+#define XTYPEPROVIDER_IMPL_11( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ), \
+ CPPU_TYPE_REF( I8 ), \
+ CPPU_TYPE_REF( I9 ), \
+ CPPU_TYPE_REF( I10 ), \
+ CPPU_TYPE_REF( I11 ) \
GETTYPES_IMPL_END
// 12 interfaces supported
-#define XTYPEPROVIDER_IMPL_12( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ), \
- CPPU_TYPE_REF( I8 ), \
- CPPU_TYPE_REF( I9 ), \
- CPPU_TYPE_REF( I10 ), \
- CPPU_TYPE_REF( I11 ), \
- CPPU_TYPE_REF( I12 ) \
+#define XTYPEPROVIDER_IMPL_12( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ), \
+ CPPU_TYPE_REF( I8 ), \
+ CPPU_TYPE_REF( I9 ), \
+ CPPU_TYPE_REF( I10 ), \
+ CPPU_TYPE_REF( I11 ), \
+ CPPU_TYPE_REF( I12 ) \
GETTYPES_IMPL_END
// 13 interfaces supported
-#define XTYPEPROVIDER_IMPL_13( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ), \
- CPPU_TYPE_REF( I8 ), \
- CPPU_TYPE_REF( I9 ), \
- CPPU_TYPE_REF( I10 ), \
- CPPU_TYPE_REF( I11 ), \
- CPPU_TYPE_REF( I12 ), \
- CPPU_TYPE_REF( I13 ) \
+#define XTYPEPROVIDER_IMPL_13( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ), \
+ CPPU_TYPE_REF( I8 ), \
+ CPPU_TYPE_REF( I9 ), \
+ CPPU_TYPE_REF( I10 ), \
+ CPPU_TYPE_REF( I11 ), \
+ CPPU_TYPE_REF( I12 ), \
+ CPPU_TYPE_REF( I13 ) \
GETTYPES_IMPL_END
// 14 interfaces supported
-#define XTYPEPROVIDER_IMPL_14( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ), \
- CPPU_TYPE_REF( I8 ), \
- CPPU_TYPE_REF( I9 ), \
- CPPU_TYPE_REF( I10 ), \
- CPPU_TYPE_REF( I11 ), \
- CPPU_TYPE_REF( I12 ), \
- CPPU_TYPE_REF( I13 ), \
- CPPU_TYPE_REF( I14 ) \
+#define XTYPEPROVIDER_IMPL_14( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ), \
+ CPPU_TYPE_REF( I8 ), \
+ CPPU_TYPE_REF( I9 ), \
+ CPPU_TYPE_REF( I10 ), \
+ CPPU_TYPE_REF( I11 ), \
+ CPPU_TYPE_REF( I12 ), \
+ CPPU_TYPE_REF( I13 ), \
+ CPPU_TYPE_REF( I14 ) \
GETTYPES_IMPL_END
// 15 interfaces supported
-#define XTYPEPROVIDER_IMPL_15( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15 ) \
-XTYPEPROVIDER_COMMON_IMPL( Class ) \
-GETTYPES_IMPL_START( Class ) \
- CPPU_TYPE_REF( I1 ), \
- CPPU_TYPE_REF( I2 ), \
- CPPU_TYPE_REF( I3 ), \
- CPPU_TYPE_REF( I4 ), \
- CPPU_TYPE_REF( I5 ), \
- CPPU_TYPE_REF( I6 ), \
- CPPU_TYPE_REF( I7 ), \
- CPPU_TYPE_REF( I8 ), \
- CPPU_TYPE_REF( I9 ), \
- CPPU_TYPE_REF( I10 ), \
- CPPU_TYPE_REF( I11 ), \
- CPPU_TYPE_REF( I12 ), \
- CPPU_TYPE_REF( I13 ), \
- CPPU_TYPE_REF( I14 ), \
- CPPU_TYPE_REF( I15 ) \
+#define XTYPEPROVIDER_IMPL_15( Class, I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15 ) \
+XTYPEPROVIDER_COMMON_IMPL( Class ) \
+GETTYPES_IMPL_START( Class ) \
+ CPPU_TYPE_REF( I1 ), \
+ CPPU_TYPE_REF( I2 ), \
+ CPPU_TYPE_REF( I3 ), \
+ CPPU_TYPE_REF( I4 ), \
+ CPPU_TYPE_REF( I5 ), \
+ CPPU_TYPE_REF( I6 ), \
+ CPPU_TYPE_REF( I7 ), \
+ CPPU_TYPE_REF( I8 ), \
+ CPPU_TYPE_REF( I9 ), \
+ CPPU_TYPE_REF( I10 ), \
+ CPPU_TYPE_REF( I11 ), \
+ CPPU_TYPE_REF( I12 ), \
+ CPPU_TYPE_REF( I13 ), \
+ CPPU_TYPE_REF( I14 ), \
+ CPPU_TYPE_REF( I15 ) \
GETTYPES_IMPL_END
//=========================================================================
@@ -587,24 +587,24 @@ GETTYPES_IMPL_END
//
//=========================================================================
-#define XSERVICEINFO_NOFACTORY_DECL() \
- virtual rtl::OUString SAL_CALL \
+#define XSERVICEINFO_NOFACTORY_DECL() \
+ virtual rtl::OUString SAL_CALL \
getImplementationName() \
throw( com::sun::star::uno::RuntimeException ); \
virtual sal_Bool SAL_CALL \
- supportsService( const rtl::OUString& ServiceName ) \
+ supportsService( const rtl::OUString& ServiceName ) \
throw( com::sun::star::uno::RuntimeException ); \
virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL \
getSupportedServiceNames() \
throw( com::sun::star::uno::RuntimeException ); \
\
- static rtl::OUString \
+ static rtl::OUString \
getImplementationName_Static(); \
static com::sun::star::uno::Sequence< rtl::OUString > \
getSupportedServiceNames_Static();
-#define XSERVICEINFO_DECL() \
- XSERVICEINFO_NOFACTORY_DECL() \
+#define XSERVICEINFO_DECL() \
+ XSERVICEINFO_NOFACTORY_DECL() \
\
static com::sun::star::uno::Reference< \
com::sun::star::lang::XSingleServiceFactory > \
@@ -617,25 +617,25 @@ GETTYPES_IMPL_END
//
//=========================================================================
-#define XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
-rtl::OUString SAL_CALL Class::getImplementationName() \
- throw( com::sun::star::uno::RuntimeException ) \
+#define XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
+rtl::OUString SAL_CALL Class::getImplementationName() \
+ throw( com::sun::star::uno::RuntimeException ) \
{ \
return getImplementationName_Static(); \
} \
\
-rtl::OUString Class::getImplementationName_Static() \
+rtl::OUString Class::getImplementationName_Static() \
{ \
return ImplName; \
} \
\
sal_Bool SAL_CALL \
-Class::supportsService( const rtl::OUString& ServiceName ) \
+Class::supportsService( const rtl::OUString& ServiceName ) \
throw( com::sun::star::uno::RuntimeException ) \
{ \
com::sun::star::uno::Sequence< rtl::OUString > aSNL = \
getSupportedServiceNames(); \
- const rtl::OUString* pArray = aSNL.getArray(); \
+ const rtl::OUString* pArray = aSNL.getArray(); \
for( sal_Int32 i = 0; i < aSNL.getLength(); i++ ) \
{ \
if( pArray[ i ] == ServiceName ) \
@@ -652,9 +652,9 @@ Class::getSupportedServiceNames() \
return getSupportedServiceNames_Static(); \
}
-#define XSERVICEINFO_CREATE_INSTANCE_IMPL( Class ) \
-static com::sun::star::uno::Reference< \
- com::sun::star::uno::XInterface > SAL_CALL \
+#define XSERVICEINFO_CREATE_INSTANCE_IMPL( Class ) \
+static com::sun::star::uno::Reference< \
+ com::sun::star::uno::XInterface > SAL_CALL \
Class##_CreateInstance( const com::sun::star::uno::Reference< \
com::sun::star::lang::XMultiServiceFactory> & rSMgr ) \
throw( com::sun::star::uno::Exception ) \
@@ -671,30 +671,30 @@ Class##_CreateInstance( const com::sun::star::uno::Reference< \
//
//=========================================================================
-#define ONE_INSTANCE_SERVICE_FACTORY_IMPL( Class ) \
+#define ONE_INSTANCE_SERVICE_FACTORY_IMPL( Class ) \
com::sun::star::uno::Reference< \
- com::sun::star::lang::XSingleServiceFactory > \
-Class::createServiceFactory( const com::sun::star::uno::Reference< \
+ com::sun::star::lang::XSingleServiceFactory > \
+Class::createServiceFactory( const com::sun::star::uno::Reference< \
com::sun::star::lang::XMultiServiceFactory >& rxServiceMgr ) \
{ \
- return com::sun::star::uno::Reference< \
+ return com::sun::star::uno::Reference< \
com::sun::star::lang::XSingleServiceFactory >( \
- cppu::createOneInstanceFactory( \
+ cppu::createOneInstanceFactory( \
rxServiceMgr, \
Class::getImplementationName_Static(), \
Class##_CreateInstance, \
Class::getSupportedServiceNames_Static() ) ); \
}
-#define SINGLE_SERVICE_FACTORY_IMPL( Class ) \
-com::sun::star::uno::Reference< \
- com::sun::star::lang::XSingleServiceFactory > \
-Class::createServiceFactory( const com::sun::star::uno::Reference< \
+#define SINGLE_SERVICE_FACTORY_IMPL( Class ) \
+com::sun::star::uno::Reference< \
+ com::sun::star::lang::XSingleServiceFactory > \
+Class::createServiceFactory( const com::sun::star::uno::Reference< \
com::sun::star::lang::XMultiServiceFactory >& rxServiceMgr ) \
{ \
- return com::sun::star::uno::Reference< \
+ return com::sun::star::uno::Reference< \
com::sun::star::lang::XSingleServiceFactory >( \
- cppu::createSingleFactory( \
+ cppu::createSingleFactory( \
rxServiceMgr, \
Class::getImplementationName_Static(), \
Class##_CreateInstance, \
@@ -704,15 +704,15 @@ Class::createServiceFactory( const com::sun::star::uno::Reference< \
// Service without service factory.
// Own implementation of getSupportedServiceNames_Static().
-#define XSERVICEINFO_NOFACTORY_IMPL_0( Class, ImplName ) \
-XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
+#define XSERVICEINFO_NOFACTORY_IMPL_0( Class, ImplName ) \
+XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
\
com::sun::star::uno::Sequence< rtl::OUString > \
Class::getSupportedServiceNames_Static()
// 1 service name
-#define XSERVICEINFO_NOFACTORY_IMPL_1( Class, ImplName, Service1 ) \
-XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
+#define XSERVICEINFO_NOFACTORY_IMPL_1( Class, ImplName, Service1 ) \
+XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
\
com::sun::star::uno::Sequence< rtl::OUString > \
Class::getSupportedServiceNames_Static() \
@@ -725,17 +725,17 @@ Class::getSupportedServiceNames_Static() \
// Service with service factory.
// Own implementation of getSupportedServiceNames_Static().
-#define XSERVICEINFO_IMPL_0( Class, ImplName ) \
-XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
-XSERVICEINFO_CREATE_INSTANCE_IMPL( Class ) \
+#define XSERVICEINFO_IMPL_0( Class, ImplName ) \
+XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
+XSERVICEINFO_CREATE_INSTANCE_IMPL( Class ) \
\
com::sun::star::uno::Sequence< rtl::OUString > \
Class::getSupportedServiceNames_Static()
// 1 service name
-#define XSERVICEINFO_IMPL_1( Class, ImplName, Service1 ) \
-XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
-XSERVICEINFO_CREATE_INSTANCE_IMPL( Class ) \
+#define XSERVICEINFO_IMPL_1( Class, ImplName, Service1 ) \
+XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \
+XSERVICEINFO_CREATE_INSTANCE_IMPL( Class ) \
\
com::sun::star::uno::Sequence< rtl::OUString > \
Class::getSupportedServiceNames_Static() \
diff --git a/ucbhelper/inc/ucbhelper/propertyvalueset.hxx b/ucbhelper/inc/ucbhelper/propertyvalueset.hxx
index 50aa9b91c77e..fe9d9f3d1137 100644
--- a/ucbhelper/inc/ucbhelper/propertyvalueset.hxx
+++ b/ucbhelper/inc/ucbhelper/propertyvalueset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,10 +72,10 @@ class UCBHELPER_DLLPUBLIC PropertyValueSet :
m_xSMgr;
com::sun::star::uno::Reference< com::sun::star::script::XTypeConverter >
m_xTypeConverter;
- osl::Mutex m_aMutex;
+ osl::Mutex m_aMutex;
PropertyValues* m_pValues;
- sal_Bool m_bWasNull;
- sal_Bool m_bTriedToGetTypeConverter;
+ sal_Bool m_bWasNull;
+ sal_Bool m_bTriedToGetTypeConverter;
private:
UCBHELPER_DLLPRIVATE const com::sun::star::uno::Reference<
@@ -407,10 +407,10 @@ public:
}
/**
- * This method tries to append all property values contained in a
+ * This method tries to append all property values contained in a
* property set to the value set.
*
- * @param rSet is a property set containing the property values.
+ * @param rSet is a property set containing the property values.
*/
void appendPropertySet( const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet >& rSet );
@@ -418,10 +418,10 @@ public:
/** This method tries to append a single property value contained in a
* property set to the value set.
*
- * @param rSet is a property set containing the property values.
- * @param rProperty is the property for that the value shall be obtained
- * from the given property set.
- * @return False, if the property value cannot be obtained from the
+ * @param rSet is a property set containing the property values.
+ * @param rProperty is the property for that the value shall be obtained
+ * from the given property set.
+ * @return False, if the property value cannot be obtained from the
* given property pet. True, otherwise.
*/
sal_Bool appendPropertySetValue(
diff --git a/ucbhelper/inc/ucbhelper/providerhelper.hxx b/ucbhelper/inc/ucbhelper/providerhelper.hxx
index 3219a79fab73..5aaaf48260ea 100644
--- a/ucbhelper/inc/ucbhelper/providerhelper.hxx
+++ b/ucbhelper/inc/ucbhelper/providerhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,7 +86,7 @@ class UCBHELPER_DLLPUBLIC ContentProviderImplHelper : public cppu::OWeakObject,
protected:
osl::Mutex m_aMutex;
::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
+ ::com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
private:
UCBHELPER_DLLPRIVATE void removeContent( ContentImplHelper* pContent );
@@ -99,8 +99,8 @@ private:
protected:
/**
- * This method returns a content with the given id, if it already exists.
- * Use this method in your "queryContent" implementation to ensure unique
+ * This method returns a content with the given id, if it already exists.
+ * Use this method in your "queryContent" implementation to ensure unique
* objects.
*
* @param Identifier is the content identifier, for that an existing
@@ -113,7 +113,7 @@ protected:
::com::sun::star::ucb::XContentIdentifier >& Identifier );
/**
- * This method returns a content with the given URL, if it already exists.
+ * This method returns a content with the given URL, if it already exists.
*
* @param rURL is the URL ( content identifier string ), for that an
* existing content object is requested.
@@ -124,21 +124,21 @@ protected:
queryExistingContent( const ::rtl::OUString& rURL );
/**
- * This method registers a newly created content instance with the
+ * This method registers a newly created content instance with the
* content provider. It should be called directly after creating a new
* content instance. The provider can reuse a registered instance upon
* subsedent requests for content instances with an idententifier
- * of a registered instance.
- * Note that the provider does not hold a hard reference on the
- * registered instance. If last external reference is gone, the provider
+ * of a registered instance.
+ * Note that the provider does not hold a hard reference on the
+ * registered instance. If last external reference is gone, the provider
* will remove the instance from its inventory of known instances.
* Nothing will happen in case an already registered instance shall
* be registered more than once.
*
* @param the content instance that is to be registered.
*/
- void registerNewContent(
- const com::sun::star::uno::Reference<
+ void registerNewContent(
+ const com::sun::star::uno::Reference<
::com::sun::star::ucb::XContent > & xContent );
public:
@@ -183,15 +183,15 @@ public:
//////////////////////////////////////////////////////////////////////
/**
- * This method returns a content with the requested id.
+ * This method returns a content with the requested id.
*
- * The implementation should:
+ * The implementation should:
*
- * - Check, whether the Identifier is valid ( URL syntax ).
- * - Use queryExistingContent(...) to determine, whether there exists
- * already a content with the given id.
- * - Return the possibly existing content.Create and return a new
- * content, otherwise
+ * - Check, whether the Identifier is valid ( URL syntax ).
+ * - Use queryExistingContent(...) to determine, whether there exists
+ * already a content with the given id.
+ * - Return the possibly existing content.Create and return a new
+ * content, otherwise
*/
virtual ::com::sun::star::uno::Reference<
::com::sun::star::ucb::XContent > SAL_CALL
@@ -211,7 +211,7 @@ public:
//////////////////////////////////////////////////////////////////////
/**
- * This method returns a mutex, which protects the content list of the
+ * This method returns a mutex, which protects the content list of the
* provider. So you can prevent modifications of that list easyly.
*
* @return the mutex.
@@ -219,7 +219,7 @@ public:
osl::Mutex& getContentListMutex() { return m_aMutex; }
/**
- * This method fills a list with all contents existing at calling time.
+ * This method fills a list with all contents existing at calling time.
* Note: You may prevent modifications of the content list at any time
* by acquiring the content list mutex of the provider.
*
@@ -228,7 +228,7 @@ public:
void queryExistingContents( ContentRefList& rContents );
/**
- * This method returns the propertyset containing the Additional Core
+ * This method returns the propertyset containing the Additional Core
* Properties of a content.
*
* @param rKey is the key for the propertyset.
@@ -241,7 +241,7 @@ public:
getAdditionalPropertySet( const ::rtl::OUString& rKey, sal_Bool bCreate );
/**
- * This method renames the propertyset containing the Additional Core
+ * This method renames the propertyset containing the Additional Core
* Properties of a content.
*
* @param rOldKey is the old key of the propertyset.
@@ -255,7 +255,7 @@ public:
sal_Bool bRecursive );
/**
- * This method copies the propertyset containing the Additional Core
+ * This method copies the propertyset containing the Additional Core
* Properties of a content.
*
* @param rSourceKey is the key of the source propertyset.
@@ -269,7 +269,7 @@ public:
sal_Bool bRecursive );
/**
- * This method removes the propertyset containing the Additional Core
+ * This method removes the propertyset containing the Additional Core
* Properties of a content.
*
* @param rKey is the key of the propertyset.
diff --git a/ucbhelper/inc/ucbhelper/proxydecider.hxx b/ucbhelper/inc/ucbhelper/proxydecider.hxx
index 98ebbff7941a..d18489e71b8a 100644
--- a/ucbhelper/inc/ucbhelper/proxydecider.hxx
+++ b/ucbhelper/inc/ucbhelper/proxydecider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/resultset.hxx b/ucbhelper/inc/ucbhelper/resultset.hxx
index 093bf8f8a552..3f1857c77c87 100644
--- a/ucbhelper/inc/ucbhelper/resultset.hxx
+++ b/ucbhelper/inc/ucbhelper/resultset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ namespace ucbhelper {
//=========================================================================
-#define RESULTSET_SERVICE_NAME "com.sun.star.ucb.ContentResultSet"
+#define RESULTSET_SERVICE_NAME "com.sun.star.ucb.ContentResultSet"
//=========================================================================
diff --git a/ucbhelper/inc/ucbhelper/resultsethelper.hxx b/ucbhelper/inc/ucbhelper/resultsethelper.hxx
index e670a76b34b5..2a49029d2c75 100644
--- a/ucbhelper/inc/ucbhelper/resultsethelper.hxx
+++ b/ucbhelper/inc/ucbhelper/resultsethelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ namespace ucbhelper {
*
* Features of the base class implementation:
* - standard interfaces ( XInterface, XTypeProvider, XServiceInfo )
- * - all required interfaces for service com::sun::star::ucb::DynamicResultSet
+ * - all required interfaces for service com::sun::star::ucb::DynamicResultSet
*/
class UCBHELPER_DLLPUBLIC ResultSetImplHelper :
public cppu::OWeakObject,
@@ -69,20 +69,20 @@ class UCBHELPER_DLLPUBLIC ResultSetImplHelper :
public com::sun::star::ucb::XDynamicResultSet
{
cppu::OInterfaceContainerHelper* m_pDisposeEventListeners;
- sal_Bool m_bStatic;
- sal_Bool m_bInitDone;
+ sal_Bool m_bStatic;
+ sal_Bool m_bInitDone;
protected:
- osl::Mutex m_aMutex;
- com::sun::star::ucb::OpenCommandArgument2 m_aCommand;
+ osl::Mutex m_aMutex;
+ com::sun::star::ucb::OpenCommandArgument2 m_aCommand;
com::sun::star::uno::Reference<
- com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
+ com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
// Resultset #1
com::sun::star::uno::Reference<
- com::sun::star::sdbc::XResultSet > m_xResultSet1;
+ com::sun::star::sdbc::XResultSet > m_xResultSet1;
// Resultset #2
com::sun::star::uno::Reference<
- com::sun::star::sdbc::XResultSet > m_xResultSet2;
+ com::sun::star::sdbc::XResultSet > m_xResultSet2;
// Resultset changes listener.
com::sun::star::uno::Reference<
com::sun::star::ucb::XDynamicResultSetListener > m_xListener;
diff --git a/ucbhelper/inc/ucbhelper/resultsetmetadata.hxx b/ucbhelper/inc/ucbhelper/resultsetmetadata.hxx
index ceb01b4cf6a1..f0bcd5b8d672 100644
--- a/ucbhelper/inc/ucbhelper/resultsetmetadata.hxx
+++ b/ucbhelper/inc/ucbhelper/resultsetmetadata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
#include "ucbhelper/ucbhelperdllapi.h"
namespace com { namespace sun { namespace star {
- namespace lang { class XMultiServiceFactory; }
+ namespace lang { class XMultiServiceFactory; }
namespace beans { struct Property; }
} } }
@@ -88,10 +88,10 @@ struct ResultSetColumnData
::rtl::OUString schemaName;
/** @see ResultSetMetaData::getPrecision */
- sal_Int32 precision;
+ sal_Int32 precision;
/** @see ResultSetMetaData::getScale */
- sal_Int32 scale;
+ sal_Int32 scale;
/** @see ResultSetMetaData::getTableName */
::rtl::OUString tableName;
@@ -103,13 +103,13 @@ struct ResultSetColumnData
::rtl::OUString columnTypeName;
/** @see ResultSetMetaData::isReadOnly */
- sal_Bool isReadOnly;
+ sal_Bool isReadOnly;
/** @see ResultSetMetaData::isWritable */
- sal_Bool isWritable;
+ sal_Bool isWritable;
/** @see ResultSetMetaData::isDefinitelyWritable */
- sal_Bool isDefinitelyWritable;
+ sal_Bool isDefinitelyWritable;
/** @see ResultSetMetaData::getColumnServiceName */
::rtl::OUString columnServiceName;
@@ -156,16 +156,16 @@ protected:
::com::sun::star::uno::Reference<
::com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
::com::sun::star::uno::Sequence<
- ::com::sun::star::beans::Property > m_aProps;
+ ::com::sun::star::beans::Property > m_aProps;
sal_Bool m_bReadOnly;
public:
/**
- * Constructor.
+ * Constructor.
*
- * @param rxSMgr is a Servive Manager.
- * @param rProps is a sequence of properties (partially) describing the
+ * @param rxSMgr is a Servive Manager.
+ * @param rProps is a sequence of properties (partially) describing the
* columns of a resultset.
* @param bReadOnly is used to specify whether the whole(!) resultset
* is read-only.
@@ -178,17 +178,17 @@ public:
sal_Bool bReadOnly = sal_True );
/**
- * Constructor.
+ * Constructor.
*
- * @param rxSMgr is a Servive Manager.
- * @param rProps is a sequence of properties (partially) describing the
+ * @param rxSMgr is a Servive Manager.
+ * @param rProps is a sequence of properties (partially) describing the
* columns of a resultset.
- * @param rColumnData contains additional meta data for the columns of
- * a resultset, which override the default values returned by the
- * appropriate methods of this class. The length of rColumnData
- * must be the same as length of rProps.
- * rColumnData[ 0 ] corresponds to data in rProps[ 0 ],
- * rColumnData[ 1 ] corresponds to data in rProps[ 1 ], ...
+ * @param rColumnData contains additional meta data for the columns of
+ * a resultset, which override the default values returned by the
+ * appropriate methods of this class. The length of rColumnData
+ * must be the same as length of rProps.
+ * rColumnData[ 0 ] corresponds to data in rProps[ 0 ],
+ * rColumnData[ 1 ] corresponds to data in rProps[ 1 ], ...
*/
ResultSetMetaData(
const ::com::sun::star::uno::Reference<
@@ -198,7 +198,7 @@ public:
const std::vector< ResultSetColumnData >& rColumnData );
/**
- * Destructor.
+ * Destructor.
*/
virtual ~ResultSetMetaData();
@@ -213,30 +213,30 @@ public:
/**
* Returns the number of columns of the resultset.
*
- * @return the length of the property sequence.
+ * @return the length of the property sequence.
*/
virtual sal_Int32 SAL_CALL
getColumnCount()
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Checks whether column is automatically numbered, which makes it
- * read-only.
+ * Checks whether column is automatically numbered, which makes it
+ * read-only.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return true, if column is automatically numbered.
+ * @return true, if column is automatically numbered.
*/
virtual sal_Bool SAL_CALL
isAutoIncrement( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Checks whether column is case sensitive.
+ * Checks whether column is case sensitive.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return true, if column is case sensitive.
+ * @return true, if column is case sensitive.
*/
virtual sal_Bool SAL_CALL
isCaseSensitive( sal_Int32 column )
@@ -244,35 +244,35 @@ public:
::com::sun::star::uno::RuntimeException );
/**
* Checks whether the value stored in column can be used in a
- * WHERE clause.
+ * WHERE clause.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return true, if the column is searchable.
+ * @return true, if the column is searchable.
*/
virtual sal_Bool SAL_CALL
isSearchable( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Checks whether column is a cash value.
+ * Checks whether column is a cash value.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return true, if the column is a cash value.
+ * @return true, if the column is a cash value.
*/
virtual sal_Bool SAL_CALL
isCurrency( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Checks whether a NULL can be stored in column.
+ * Checks whether a NULL can be stored in column.
*
- * @see com::sun::star::sdbc::ColumnValue
+ * @see com::sun::star::sdbc::ColumnValue
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return ::com::sun::star::sdbc::ColumnValue::NULLABLE, if a NULL
+ * @return ::com::sun::star::sdbc::ColumnValue::NULLABLE, if a NULL
* can be stored in the column.
*/
virtual sal_Int32 SAL_CALL
@@ -280,100 +280,100 @@ public:
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Checks whether the value stored in column is a signed number.
+ * Checks whether the value stored in column is a signed number.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return true, if the value stored in column is a signed number.
+ * @return true, if the value stored in column is a signed number.
*/
virtual sal_Bool SAL_CALL
isSigned( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Gets the normal maximum width in characters for column.
+ * Gets the normal maximum width in characters for column.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the normal maximum width in characters for column.
+ * @return the normal maximum width in characters for column.
*/
virtual sal_Int32 SAL_CALL
getColumnDisplaySize( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Gets the suggested column title for column, to be used in print-
- * outs and displays.
+ * Gets the suggested column title for column, to be used in print-
+ * outs and displays.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the column label.
+ * @return the column label.
*/
virtual ::rtl::OUString SAL_CALL
getColumnLabel( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Gets the name of column.
+ * Gets the name of column.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the name of the property that corresponds to column.
+ * @return the name of the property that corresponds to column.
*/
virtual ::rtl::OUString SAL_CALL
getColumnName( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Gets the schema name for the table from which column of this
- * result set was derived.
- * Because this feature is not widely supported, the return value
- * for many DBMSs will be an empty string.
+ * Gets the schema name for the table from which column of this
+ * result set was derived.
+ * Because this feature is not widely supported, the return value
+ * for many DBMSs will be an empty string.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the schema name of column or an empty string.
+ * @return the schema name of column or an empty string.
*/
virtual ::rtl::OUString SAL_CALL
getSchemaName( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * For number types, getprecision gets the number of decimal digits
- * in column.
- * For character types, it gets the maximum length in characters for
- * column.
- * For binary types, it gets the maximum length in bytes for column.
+ * For number types, getprecision gets the number of decimal digits
+ * in column.
+ * For character types, it gets the maximum length in characters for
+ * column.
+ * For binary types, it gets the maximum length in bytes for column.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the precision for the column.
+ * @return the precision for the column.
*/
virtual sal_Int32 SAL_CALL
getPrecision( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Gets the number of digits to the right of the decimal point for
- * values in column.
+ * Gets the number of digits to the right of the decimal point for
+ * values in column.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the scale of the column.
+ * @return the scale of the column.
*/
virtual sal_Int32 SAL_CALL
getScale( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Gets the name of the table from which column of this result set
- * was derived or "" if there is none (for example, for a join).
- * Because this feature is not widely supported, the return value
- * for many DBMSs will be an empty string.
+ * Gets the name of the table from which column of this result set
+ * was derived or "" if there is none (for example, for a join).
+ * Because this feature is not widely supported, the return value
+ * for many DBMSs will be an empty string.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the table name for column or an empty string.
+ * @return the table name for column or an empty string.
*/
virtual ::rtl::OUString SAL_CALL
getTableName( sal_Int32 column )
@@ -381,27 +381,27 @@ public:
::com::sun::star::uno::RuntimeException );
virtual ::rtl::OUString SAL_CALL
/**
- * Gets the catalog name for the table from which column of this
- * result set was derived.
- * Because this feature is not widely supported, the return value
- * for many DBMSs will be an empty string.
+ * Gets the catalog name for the table from which column of this
+ * result set was derived.
+ * Because this feature is not widely supported, the return value
+ * for many DBMSs will be an empty string.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the catalog name for column or an empty string.
+ * @return the catalog name for column or an empty string.
*/
getCatalogName( sal_Int32 column )
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Gets the JDBC type for the value stored in column. ... The STRUCT
- * and DISTINCT type codes are always returned for structured and
- * distinct types, regardless of whether the value will be mapped
- * according to the standard mapping or be a custom mapping.
+ * Gets the JDBC type for the value stored in column. ... The STRUCT
+ * and DISTINCT type codes are always returned for structured and
+ * distinct types, regardless of whether the value will be mapped
+ * according to the standard mapping or be a custom mapping.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the type of the property that corresponds to column - mapped
+ * @return the type of the property that corresponds to column - mapped
* from UNO-Type to SQL-Type.
*/
virtual sal_Int32 SAL_CALL
@@ -409,14 +409,14 @@ public:
throw( ::com::sun::star::sdbc::SQLException,
::com::sun::star::uno::RuntimeException );
/**
- * Gets the type name used by this particular data source for the
- * values stored in column. If the type code for the type of value
- * stored in column is STRUCT, DISTINCT or JAVA_OBJECT, this method
- * returns a fully-qualified SQL type name.
+ * Gets the type name used by this particular data source for the
+ * values stored in column. If the type code for the type of value
+ * stored in column is STRUCT, DISTINCT or JAVA_OBJECT, this method
+ * returns a fully-qualified SQL type name.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the column type name.
+ * @return the column type name.
*/
virtual ::rtl::OUString SAL_CALL
getColumnTypeName( sal_Int32 column )
@@ -427,7 +427,7 @@ public:
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return true, if the column is definetely not writable.
+ * @return true, if the column is definetely not writable.
*/
virtual sal_Bool SAL_CALL
isReadOnly( sal_Int32 column )
@@ -438,7 +438,7 @@ public:
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return true, if it is possible for a write to succeed.
+ * @return true, if it is possible for a write to succeed.
*/
virtual sal_Bool SAL_CALL
isWritable( sal_Int32 column )
@@ -449,7 +449,7 @@ public:
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return true, if a write on the column will definetely succeed.
+ * @return true, if a write on the column will definetely succeed.
*/
virtual sal_Bool SAL_CALL
isDefinitelyWritable( sal_Int32 column )
@@ -457,13 +457,13 @@ public:
::com::sun::star::uno::RuntimeException );
/**
* Returns the fully-qualified name of the service whose instances
- * are manufactured if the method
+ * are manufactured if the method
* com::sun::star::sdbc::ResultSet::getObject is called to retrieve a
* value from the column.
*
* @param column is the number of the column for that a value shall
* be returned. The first column is 1, the second is 2, ...
- * @return the service name for column or an empty string, if no service
+ * @return the service name for column or an empty string, if no service
* is applicable.
*/
virtual ::rtl::OUString SAL_CALL
diff --git a/ucbhelper/inc/ucbhelper/simpleauthenticationrequest.hxx b/ucbhelper/inc/ucbhelper/simpleauthenticationrequest.hxx
index 026cd7f7e991..535fb1af2471 100644
--- a/ucbhelper/inc/ucbhelper/simpleauthenticationrequest.hxx
+++ b/ucbhelper/inc/ucbhelper/simpleauthenticationrequest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -114,7 +114,7 @@ public:
* @param rPassword contains a password, if available (for instance from
* a previous try).
* @param rAccount contains an account, if applicable.
- * @param bAllowPersistentStoring specifies if the credentials should
+ * @param bAllowPersistentStoring specifies if the credentials should
* be stored in the passowrd container persistently
* @param bAllowUseSystemCredntials specifies if requesting client is
* able to obtain and use system credentials for authentication
@@ -179,7 +179,7 @@ public:
* @param eAccountType specifies whether an account is applicable and
modifiable.
* @param rAccount contains an account, if applicable.
- * @param bAllowPersistentStoring specifies if the credentials should
+ * @param bAllowPersistentStoring specifies if the credentials should
* be stored in the passowrd container persistently
* @param bAllowUseSystemCredntials specifies if requesting client is
* able to obtain and use system credentials for authentication
diff --git a/ucbhelper/inc/ucbhelper/simplecertificatevalidationrequest.hxx b/ucbhelper/inc/ucbhelper/simplecertificatevalidationrequest.hxx
index c770c8e7c21a..710b21ed4a44 100644
--- a/ucbhelper/inc/ucbhelper/simplecertificatevalidationrequest.hxx
+++ b/ucbhelper/inc/ucbhelper/simplecertificatevalidationrequest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/simpleinteractionrequest.hxx b/ucbhelper/inc/ucbhelper/simpleinteractionrequest.hxx
index 6797818ca8e8..39f583f07513 100644
--- a/ucbhelper/inc/ucbhelper/simpleinteractionrequest.hxx
+++ b/ucbhelper/inc/ucbhelper/simpleinteractionrequest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/simpleioerrorrequest.hxx b/ucbhelper/inc/ucbhelper/simpleioerrorrequest.hxx
index e96f36431298..e00194d59d51 100644
--- a/ucbhelper/inc/ucbhelper/simpleioerrorrequest.hxx
+++ b/ucbhelper/inc/ucbhelper/simpleioerrorrequest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/simplenameclashresolverequest.hxx b/ucbhelper/inc/ucbhelper/simplenameclashresolverequest.hxx
index 8c2bff929d56..a17010ee02bd 100644
--- a/ucbhelper/inc/ucbhelper/simplenameclashresolverequest.hxx
+++ b/ucbhelper/inc/ucbhelper/simplenameclashresolverequest.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/inc/ucbhelper/ucbhelperdllapi.h b/ucbhelper/inc/ucbhelper/ucbhelperdllapi.h
index 28712c5543c5..f40591b0f0f0 100644
--- a/ucbhelper/inc/ucbhelper/ucbhelperdllapi.h
+++ b/ucbhelper/inc/ucbhelper/ucbhelperdllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,16 +28,16 @@
#ifndef INCLUDED_UCBHELPERDLLAPI_H
#define INCLUDED_UCBHELPERDLLAPI_H
-
+
#include "sal/types.h"
-
+
#if defined(UCBHELPER_DLLIMPLEMENTATION)
#define UCBHELPER_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define UCBHELPER_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define UCBHELPER_DLLPRIVATE SAL_DLLPRIVATE
-
+
#endif /* INCLUDED_UCBHELPERDLLAPI_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucbhelper/source/client/activedatasink.cxx b/ucbhelper/source/client/activedatasink.cxx
index 5cdfa4f3df59..73b81a3fc26b 100644
--- a/ucbhelper/source/client/activedatasink.cxx
+++ b/ucbhelper/source/client/activedatasink.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/client/activedatastreamer.cxx b/ucbhelper/source/client/activedatastreamer.cxx
index aa90802a16e7..93d7d1f341d1 100644
--- a/ucbhelper/source/client/activedatastreamer.cxx
+++ b/ucbhelper/source/client/activedatastreamer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/client/commandenvironment.cxx b/ucbhelper/source/client/commandenvironment.cxx
index 16c72aa833e5..54897429b508 100644
--- a/ucbhelper/source/client/commandenvironment.cxx
+++ b/ucbhelper/source/client/commandenvironment.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,7 +64,7 @@ struct CommandEnvironment_Impl
Reference< XProgressHandler > m_xProgressHandler;
CommandEnvironment_Impl(
- const Reference< XInteractionHandler >& rxInteractionHandler,
+ const Reference< XInteractionHandler >& rxInteractionHandler,
const Reference< XProgressHandler >& rxProgressHandler )
: m_xInteractionHandler( rxInteractionHandler ),
m_xProgressHandler( rxProgressHandler ) {}
@@ -79,7 +79,7 @@ struct CommandEnvironment_Impl
//=========================================================================
CommandEnvironment::CommandEnvironment(
- const Reference< XInteractionHandler >& rxInteractionHandler,
+ const Reference< XInteractionHandler >& rxInteractionHandler,
const Reference< XProgressHandler >& rxProgressHandler )
{
m_pImpl = new CommandEnvironment_Impl( rxInteractionHandler,
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index 1da9dc9b8a2b..6f5c7b08dae2 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/client/contentbroker.cxx b/ucbhelper/source/client/contentbroker.cxx
index cc5f6f8280e0..283872b14776 100644
--- a/ucbhelper/source/client/contentbroker.cxx
+++ b/ucbhelper/source/client/contentbroker.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -258,10 +258,10 @@ ContentBroker* ContentBroker::get()
ContentBroker_Impl::~ContentBroker_Impl()
{
- Reference< XComponent > xComponent( m_xProvider, UNO_QUERY );
+ Reference< XComponent > xComponent( m_xProvider, UNO_QUERY );
if ( xComponent.is() )
{
- m_xIdFac = 0;
+ m_xIdFac = 0;
m_xProvider = 0;
m_xProviderMgr = 0;
diff --git a/ucbhelper/source/client/fileidentifierconverter.cxx b/ucbhelper/source/client/fileidentifierconverter.cxx
index 514772363ca9..41c75e45284a 100644
--- a/ucbhelper/source/client/fileidentifierconverter.cxx
+++ b/ucbhelper/source/client/fileidentifierconverter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/client/interceptedinteraction.cxx b/ucbhelper/source/client/interceptedinteraction.cxx
index 0556e181c48b..cf70bc1053e3 100644
--- a/ucbhelper/source/client/interceptedinteraction.cxx
+++ b/ucbhelper/source/client/interceptedinteraction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ void InterceptedInteraction::setInterceptedHandler(const css::uno::Reference< cs
-----------------------------------------------*/
void InterceptedInteraction::setInterceptions(const ::std::vector< InterceptedRequest >& lInterceptions)
{
- m_lInterceptions = lInterceptions;
+ m_lInterceptions = lInterceptions;
}
/*-----------------------------------------------
@@ -84,18 +84,18 @@ css::uno::Reference< css::task::XInteractionContinuation > InterceptedInteractio
const css::uno::Type& aType )
{
const css::uno::Reference< css::task::XInteractionContinuation >* pContinuations = lContinuations.getConstArray();
-
+
sal_Int32 c = lContinuations.getLength();
sal_Int32 i = 0;
-
+
for (i=0; i<c; ++i)
{
css::uno::Reference< css::uno::XInterface > xCheck(pContinuations[i], css::uno::UNO_QUERY);
if (xCheck->queryInterface(aType).hasValue())
return pContinuations[i];
}
-
- return css::uno::Reference< css::task::XInteractionContinuation >();
+
+ return css::uno::Reference< css::task::XInteractionContinuation >();
}
/*-----------------------------------------------
@@ -113,7 +113,7 @@ void SAL_CALL InterceptedInteraction::handle(const css::uno::Reference< css::tas
void InterceptedInteraction::impl_handleDefault(const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& xRequest)
{
EInterceptionState eState = impl_interceptRequest(xRequest);
-
+
switch(eState)
{
case E_NOT_INTERCEPTED:
@@ -124,7 +124,7 @@ void InterceptedInteraction::impl_handleDefault(const ::com::sun::star::uno::Ref
m_xInterceptedHandler->handle(xRequest);
}
break;
-
+
case E_NO_CONTINUATION_FOUND:
{
// Runtime error! The defined continuation could not be located
@@ -133,7 +133,7 @@ void InterceptedInteraction::impl_handleDefault(const ::com::sun::star::uno::Ref
OSL_ENSURE(sal_False, "InterceptedInteraction::handle()\nCould intercept this interaction request - but cant locate the right continuation!");
}
break;
-
+
case E_INTERCEPTED:
break;
}
@@ -147,7 +147,7 @@ InterceptedInteraction::EInterceptionState InterceptedInteraction::impl_intercep
css::uno::Any aRequest = xRequest->getRequest();
css::uno::Type aRequestType = aRequest.getValueType();
css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > lContinuations = xRequest->getContinuations();
-
+
// check against the list of static requests
sal_Int32 nHandle = 0;
::std::vector< InterceptedRequest >::const_iterator pIt;
@@ -156,15 +156,15 @@ InterceptedInteraction::EInterceptionState InterceptedInteraction::impl_intercep
++pIt )
{
const InterceptedRequest& rInterception = *pIt;
- css::uno::Type aInterceptedType = rInterception.Request.getValueType();
-
+ css::uno::Type aInterceptedType = rInterception.Request.getValueType();
+
// check the request
sal_Bool bMatch = sal_False;
if (rInterception.MatchExact)
bMatch = aInterceptedType.equals(aRequestType);
else
bMatch = aInterceptedType.isAssignableFrom(aRequestType); // dont change intercepted and request type here -> it will check the wrong direction!
-
+
// intercepted ...
// Call they might existing derived class, so they can handle that by its own.
// If its not interested on that (may be its not overwritten and the default implementation
@@ -176,10 +176,10 @@ InterceptedInteraction::EInterceptionState InterceptedInteraction::impl_intercep
break;
return eState;
}
-
- ++nHandle;
+
+ ++nHandle;
}
-
+
if (pIt != m_lInterceptions.end()) // => can be true only if bMatch=TRUE!
{
// match -> search required continuation
@@ -190,12 +190,12 @@ InterceptedInteraction::EInterceptionState InterceptedInteraction::impl_intercep
xContinuation->select();
return E_INTERCEPTED;
}
-
+
// Can be reached only, if the request does not support the given continuation!
// => RuntimeError!?
return E_NO_CONTINUATION_FOUND;
}
-
+
return E_NOT_INTERCEPTED;
}
diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx
index 8c26104a07b6..2862dba331bd 100644
--- a/ucbhelper/source/client/proxydecider.cxx
+++ b/ucbhelper/source/client/proxydecider.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,7 +93,7 @@ class HostnameCache
typedef std::pair< rtl::OUString, rtl::OUString > HostListEntry;
std::list< HostListEntry > m_aHostList;
- sal_uInt32 m_nCapacity;
+ sal_uInt32 m_nCapacity;
public:
explicit HostnameCache( sal_uInt32 nCapacity )
@@ -110,7 +110,7 @@ public:
{
if ( (*it).first == rKey )
{
- rValue = (*it).second;
+ rValue = (*it).second;
return true;
}
it++;
@@ -123,7 +123,7 @@ public:
if ( m_aHostList.size() == m_nCapacity )
m_aHostList.resize( m_nCapacity / 2 );
- m_aHostList.push_front( HostListEntry( rKey, rValue ) );
+ m_aHostList.push_front( HostListEntry( rKey, rValue ) );
}
};
@@ -556,7 +556,7 @@ const InternetProxyServer & InternetProxyDecider_Impl::getProxy(
// This might be quite expensive (DNS lookup).
const osl::SocketAddr aAddr( aHost, nPort );
aFullyQualifiedHost = aAddr.getHostname().toAsciiLowerCase();
- m_aHostnames.put( aHost, aFullyQualifiedHost );
+ m_aHostnames.put( aHost, aFullyQualifiedHost );
}
// Error resolving name? -> fallback.
diff --git a/ucbhelper/source/provider/cancelcommandexecution.cxx b/ucbhelper/source/provider/cancelcommandexecution.cxx
index 36694413d0fa..925dc2988cd2 100644
--- a/ucbhelper/source/provider/cancelcommandexecution.cxx
+++ b/ucbhelper/source/provider/cancelcommandexecution.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/provider/commandenvironmentproxy.cxx b/ucbhelper/source/provider/commandenvironmentproxy.cxx
index 533e5f6080e1..89486c0a28e0 100644
--- a/ucbhelper/source/provider/commandenvironmentproxy.cxx
+++ b/ucbhelper/source/provider/commandenvironmentproxy.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ namespace ucbhelper
struct CommandEnvironmentProxy_Impl
{
- osl::Mutex m_aMutex;
+ osl::Mutex m_aMutex;
Reference< XCommandEnvironment > m_xEnv;
Reference< XInteractionHandler > m_xInteractionHandler;
Reference< XProgressHandler > m_xProgressHandler;
@@ -69,7 +69,7 @@ struct CommandEnvironmentProxy_Impl
sal_Bool m_bGotProgressHandler;
CommandEnvironmentProxy_Impl(
- const Reference< XCommandEnvironment >& rxEnv )
+ const Reference< XCommandEnvironment >& rxEnv )
: m_xEnv( rxEnv ), m_bGotInteractionHandler( sal_False ),
m_bGotProgressHandler( sal_False ) {}
};
diff --git a/ucbhelper/source/provider/configureucb.cxx b/ucbhelper/source/provider/configureucb.cxx
index 2b858d614c78..a7b6dbade894 100644
--- a/ucbhelper/source/provider/configureucb.cxx
+++ b/ucbhelper/source/provider/configureucb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx
index d95d48b40d44..c527ee5558f6 100644
--- a/ucbhelper/source/provider/contenthelper.cxx
+++ b/ucbhelper/source/provider/contenthelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -148,13 +148,13 @@ typedef cppu::OMultiTypeInterfaceContainerHelperVar
struct ContentImplHelper_Impl
{
- rtl::Reference< ::ucbhelper::PropertySetInfo > m_xPropSetInfo;
+ rtl::Reference< ::ucbhelper::PropertySetInfo > m_xPropSetInfo;
rtl::Reference< ::ucbhelper::CommandProcessorInfo > m_xCommandsInfo;
cppu::OInterfaceContainerHelper* m_pDisposeEventListeners;
cppu::OInterfaceContainerHelper* m_pContentEventListeners;
cppu::OInterfaceContainerHelper* m_pPropSetChangeListeners;
cppu::OInterfaceContainerHelper* m_pCommandChangeListeners;
- PropertyChangeListeners* m_pPropertyChangeListeners;
+ PropertyChangeListeners* m_pPropertyChangeListeners;
ContentImplHelper_Impl()
: m_pDisposeEventListeners( 0 ),
@@ -190,7 +190,7 @@ namespace ucbhelper {
ContentImplHelper::ContentImplHelper(
const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
const rtl::Reference< ContentProviderImplHelper >& rxProvider,
- const uno::Reference<
+ const uno::Reference<
com::sun::star::ucb::XContentIdentifier >& Identifier )
: m_pImpl( new ContentImplHelper_Impl ),
m_xSMgr( rxSMgr ),
@@ -224,7 +224,7 @@ void SAL_CALL ContentImplHelper::release()
{
// #144882# - Call to OWeakObject::release may destroy m_xProvider.
// Prevent this.
- rtl::Reference< ContentProviderImplHelper > xKeepProviderAlive(
+ rtl::Reference< ContentProviderImplHelper > xKeepProviderAlive(
m_xProvider );
{
@@ -322,7 +322,7 @@ void SAL_CALL ContentImplHelper::dispose()
m_pImpl->m_pPropSetChangeListeners->getLength() )
{
lang::EventObject aEvt;
- aEvt.Source
+ aEvt.Source
= static_cast< beans::XPropertySetInfoChangeNotifier * >( this );
m_pImpl->m_pPropSetChangeListeners->disposeAndClear( aEvt );
}
@@ -338,7 +338,7 @@ void SAL_CALL ContentImplHelper::dispose()
if ( m_pImpl->m_pPropertyChangeListeners )
{
lang::EventObject aEvt;
- aEvt.Source
+ aEvt.Source
= static_cast< beans::XPropertiesChangeNotifier * >( this );
m_pImpl->m_pPropertyChangeListeners->disposeAndClear( aEvt );
}
@@ -378,7 +378,7 @@ void SAL_CALL ContentImplHelper::removeEventListener(
//=========================================================================
// virtual
-uno::Reference< com::sun::star::ucb::XContentIdentifier > SAL_CALL
+uno::Reference< com::sun::star::ucb::XContentIdentifier > SAL_CALL
ContentImplHelper::getIdentifier()
throw( uno::RuntimeException )
{
@@ -540,8 +540,8 @@ void SAL_CALL ContentImplHelper::removeCommandInfoChangeListener(
// virtual
void SAL_CALL ContentImplHelper::addProperty(
- const rtl::OUString& Name,
- sal_Int16 Attributes,
+ const rtl::OUString& Name,
+ sal_Int16 Attributes,
const uno::Any& DefaultValue )
throw( beans::PropertyExistException,
beans::IllegalTypeException,
@@ -574,15 +574,15 @@ void SAL_CALL ContentImplHelper::addProperty(
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > xSet(
getAdditionalPropertySet( sal_True ) );
- OSL_ENSURE( xSet.is(),
+ OSL_ENSURE( xSet.is(),
"ContentImplHelper::addProperty - No property set!" );
if ( xSet.is() )
{
- uno::Reference< beans::XPropertyContainer > xContainer(
+ uno::Reference< beans::XPropertyContainer > xContainer(
xSet, uno::UNO_QUERY );
- OSL_ENSURE(
+ OSL_ENSURE(
xContainer.is(),
"ContentImplHelper::addProperty - No property container!" );
@@ -653,7 +653,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const rtl::OUString& Name )
// XCommandProcessor commands!
uno::Reference< com::sun::star::ucb::XCommandEnvironment > xEnv;
- beans::Property aProp
+ beans::Property aProp
= getPropertySetInfo( xEnv )->getPropertyByName( Name );
if ( !( aProp.Attributes & beans::PropertyAttribute::REMOVEABLE ) )
@@ -677,10 +677,10 @@ void SAL_CALL ContentImplHelper::removeProperty( const rtl::OUString& Name )
getAdditionalPropertySet( sal_False ) );
if ( xSet.is() )
{
- uno::Reference< beans::XPropertyContainer > xContainer(
+ uno::Reference< beans::XPropertyContainer > xContainer(
xSet, uno::UNO_QUERY );
- OSL_ENSURE(
+ OSL_ENSURE(
xContainer.is(),
"ContentImplHelper::removeProperty - No property container!" );
@@ -698,7 +698,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const rtl::OUString& Name )
}
catch ( beans::NotRemoveableException const & )
{
- OSL_ENSURE(
+ OSL_ENSURE(
sal_False,
"ContentImplHelper::removeProperty - Unremoveable!" );
throw;
@@ -711,7 +711,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const rtl::OUString& Name )
if ( xSet->getPropertySetInfo()->getProperties().getLength() == 0 )
{
// Remove empty propertyset from registry.
- uno::Reference< com::sun::star::ucb::XPropertySetRegistry >
+ uno::Reference< com::sun::star::ucb::XPropertySetRegistry >
xReg = xSet->getRegistry();
if ( xReg.is() )
{
@@ -865,7 +865,7 @@ void ContentImplHelper::notifyPropertiesChange(
{
// First, notify listeners interested in changes of every property.
cppu::OInterfaceContainerHelper* pAllPropsContainer
- = m_pImpl->m_pPropertyChangeListeners->getContainer(
+ = m_pImpl->m_pPropertyChangeListeners->getContainer(
rtl::OUString() );
if ( pAllPropsContainer )
{
@@ -966,7 +966,7 @@ void ContentImplHelper::notifyCommandInfoChange(
return;
// Notify event listeners.
- cppu::OInterfaceIteratorHelper aIter(
+ cppu::OInterfaceIteratorHelper aIter(
*m_pImpl->m_pCommandChangeListeners );
while ( aIter.hasMoreElements() )
{
@@ -979,7 +979,7 @@ void ContentImplHelper::notifyCommandInfoChange(
}
//=========================================================================
-void ContentImplHelper::notifyContentEvent(
+void ContentImplHelper::notifyContentEvent(
const com::sun::star::ucb::ContentEvent& evt ) const
{
if ( !m_pImpl->m_pContentEventListeners )
@@ -990,8 +990,8 @@ void ContentImplHelper::notifyContentEvent(
while ( aIter.hasMoreElements() )
{
// Propagate event.
- uno::Reference<
- com::sun::star::ucb::XContentEventListener > xListener(
+ uno::Reference<
+ com::sun::star::ucb::XContentEventListener > xListener(
aIter.next(), uno::UNO_QUERY );
if ( xListener.is() )
xListener->contentEvent( evt );
@@ -1012,11 +1012,11 @@ void ContentImplHelper::inserted()
if ( xParent.is() )
{
- com::sun::star::ucb::ContentEvent aEvt(
+ com::sun::star::ucb::ContentEvent aEvt(
static_cast< cppu::OWeakObject * >( xParent.get() ), // Source
- com::sun::star::ucb::ContentAction::INSERTED, // Action
- this, // Content
- xParent->getIdentifier() ); // Id
+ com::sun::star::ucb::ContentAction::INSERTED, // Action
+ this, // Content
+ xParent->getIdentifier() ); // Id
xParent->notifyContentEvent( aEvt );
}
}
@@ -1032,16 +1032,16 @@ void ContentImplHelper::deleted()
if ( xParent.is() )
{
// Let parent notify "REMOVED" event.
- com::sun::star::ucb::ContentEvent aEvt(
+ com::sun::star::ucb::ContentEvent aEvt(
static_cast< cppu::OWeakObject * >( xParent.get() ),
com::sun::star::ucb::ContentAction::REMOVED,
this,
- xParent->getIdentifier() );
+ xParent->getIdentifier() );
xParent->notifyContentEvent( aEvt );
}
// Notify "DELETED" event.
- com::sun::star::ucb::ContentEvent aEvt1(
+ com::sun::star::ucb::ContentEvent aEvt1(
static_cast< cppu::OWeakObject * >( this ),
com::sun::star::ucb::ContentAction::DELETED,
this,
@@ -1069,7 +1069,7 @@ sal_Bool ContentImplHelper::exchange(
return sal_False;
}
- uno::Reference< com::sun::star::ucb::XContentIdentifier > xOldId
+ uno::Reference< com::sun::star::ucb::XContentIdentifier > xOldId
= getIdentifier();
// Re-insert at provider.
@@ -1080,7 +1080,7 @@ sal_Bool ContentImplHelper::exchange(
aGuard.clear();
// Notify "EXCHANGED" event.
- com::sun::star::ucb::ContentEvent aEvt(
+ com::sun::star::ucb::ContentEvent aEvt(
static_cast< cppu::OWeakObject * >( this ),
com::sun::star::ucb::ContentAction::EXCHANGED,
this,
@@ -1090,9 +1090,9 @@ sal_Bool ContentImplHelper::exchange(
}
//=========================================================================
-uno::Reference< com::sun::star::ucb::XCommandInfo >
+uno::Reference< com::sun::star::ucb::XCommandInfo >
ContentImplHelper::getCommandInfo(
- const uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv,
+ const uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv,
sal_Bool bCache )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -1103,14 +1103,14 @@ ContentImplHelper::getCommandInfo(
else if ( !bCache )
m_pImpl->m_xCommandsInfo->reset();
- return uno::Reference< com::sun::star::ucb::XCommandInfo >(
+ return uno::Reference< com::sun::star::ucb::XCommandInfo >(
m_pImpl->m_xCommandsInfo.get() );
}
//=========================================================================
-uno::Reference< beans::XPropertySetInfo >
+uno::Reference< beans::XPropertySetInfo >
ContentImplHelper::getPropertySetInfo(
- const uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv,
+ const uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv,
sal_Bool bCache )
{
osl::MutexGuard aGuard( m_aMutex );
diff --git a/ucbhelper/source/provider/contentidentifier.cxx b/ucbhelper/source/provider/contentidentifier.cxx
index 16bef11bd5a5..7ab0507299a4 100644
--- a/ucbhelper/source/provider/contentidentifier.cxx
+++ b/ucbhelper/source/provider/contentidentifier.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,9 +58,9 @@ namespace ucbhelper
struct ContentIdentifier_Impl
{
Reference< XMultiServiceFactory > m_xSMgr;
- OUString m_aContentId;
- OUString m_aProviderScheme;
- osl::Mutex m_aMutex;
+ OUString m_aContentId;
+ OUString m_aProviderScheme;
+ osl::Mutex m_aMutex;
ContentIdentifier_Impl( const Reference< XMultiServiceFactory >& rSMgr,
const OUString& rURL );
diff --git a/ucbhelper/source/provider/contentinfo.cxx b/ucbhelper/source/provider/contentinfo.cxx
index d7d982364b14..00a683412413 100644
--- a/ucbhelper/source/provider/contentinfo.cxx
+++ b/ucbhelper/source/provider/contentinfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -129,7 +129,7 @@ uno::Sequence< beans::Property > SAL_CALL PropertySetInfo::getProperties()
// Get info for additional properties.
//////////////////////////////////////////////////////////////
- uno::Reference< com::sun::star::ucb::XPersistentPropertySet >
+ uno::Reference< com::sun::star::ucb::XPersistentPropertySet >
xSet ( m_pContent->getAdditionalPropertySet( sal_False ) );
if ( xSet.is() )
@@ -148,7 +148,7 @@ uno::Sequence< beans::Property > SAL_CALL PropertySetInfo::getProperties()
m_pProps->realloc( nPos + nAddProps );
beans::Property* pProps = m_pProps->getArray();
- const beans::Property* pAddProps
+ const beans::Property* pAddProps
= rAddProps.getConstArray();
for ( sal_Int32 n = 0; n < nAddProps; ++n, ++nPos )
@@ -163,7 +163,7 @@ uno::Sequence< beans::Property > SAL_CALL PropertySetInfo::getProperties()
//=========================================================================
// virtual
-beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
+beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
const rtl::OUString& aName )
throw( beans::UnknownPropertyException, uno::RuntimeException )
{
@@ -176,7 +176,7 @@ beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
//=========================================================================
// virtual
-sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName(
+sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName(
const rtl::OUString& Name )
throw( uno::RuntimeException )
{
@@ -273,7 +273,7 @@ XTYPEPROVIDER_IMPL_2( CommandProcessorInfo,
//=========================================================================
// virtual
-uno::Sequence< com::sun::star::ucb::CommandInfo > SAL_CALL
+uno::Sequence< com::sun::star::ucb::CommandInfo > SAL_CALL
CommandProcessorInfo::getCommands()
throw( uno::RuntimeException )
{
@@ -290,8 +290,8 @@ CommandProcessorInfo::getCommands()
{
uno::Sequence< com::sun::star::ucb::CommandInfo > aCmds
= m_pContent->getCommands( m_xEnv );
- m_pCommands
- = new uno::Sequence< com::sun::star::ucb::CommandInfo >(
+ m_pCommands
+ = new uno::Sequence< com::sun::star::ucb::CommandInfo >(
aCmds );
}
catch ( uno::RuntimeException const & )
@@ -300,8 +300,8 @@ CommandProcessorInfo::getCommands()
}
catch ( uno::Exception const & )
{
- m_pCommands
- = new uno::Sequence< com::sun::star::ucb::CommandInfo >(
+ m_pCommands
+ = new uno::Sequence< com::sun::star::ucb::CommandInfo >(
0 );
}
}
@@ -311,10 +311,10 @@ CommandProcessorInfo::getCommands()
//=========================================================================
// virtual
-com::sun::star::ucb::CommandInfo SAL_CALL
+com::sun::star::ucb::CommandInfo SAL_CALL
CommandProcessorInfo::getCommandInfoByName(
const rtl::OUString& Name )
- throw( com::sun::star::ucb::UnsupportedCommandException,
+ throw( com::sun::star::ucb::UnsupportedCommandException,
uno::RuntimeException )
{
com::sun::star::ucb::CommandInfo aInfo;
@@ -326,9 +326,9 @@ CommandProcessorInfo::getCommandInfoByName(
//=========================================================================
// virtual
-com::sun::star::ucb::CommandInfo SAL_CALL
+com::sun::star::ucb::CommandInfo SAL_CALL
CommandProcessorInfo::getCommandInfoByHandle( sal_Int32 Handle )
- throw( com::sun::star::ucb::UnsupportedCommandException,
+ throw( com::sun::star::ucb::UnsupportedCommandException,
uno::RuntimeException )
{
com::sun::star::ucb::CommandInfo aInfo;
@@ -340,7 +340,7 @@ CommandProcessorInfo::getCommandInfoByHandle( sal_Int32 Handle )
//=========================================================================
// virtual
-sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByName(
+sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByName(
const rtl::OUString& Name )
throw( uno::RuntimeException )
{
@@ -372,7 +372,7 @@ void CommandProcessorInfo::reset()
//=========================================================================
-sal_Bool CommandProcessorInfo::queryCommand(
+sal_Bool CommandProcessorInfo::queryCommand(
const rtl::OUString& rName,
com::sun::star::ucb::CommandInfo& rCommand )
{
@@ -380,7 +380,7 @@ sal_Bool CommandProcessorInfo::queryCommand(
getCommands();
- const com::sun::star::ucb::CommandInfo* pCommands
+ const com::sun::star::ucb::CommandInfo* pCommands
= m_pCommands->getConstArray();
sal_Int32 nCount = m_pCommands->getLength();
for ( sal_Int32 n = 0; n < nCount; ++n )
@@ -397,7 +397,7 @@ sal_Bool CommandProcessorInfo::queryCommand(
}
//=========================================================================
-sal_Bool CommandProcessorInfo::queryCommand(
+sal_Bool CommandProcessorInfo::queryCommand(
sal_Int32 nHandle,
com::sun::star::ucb::CommandInfo& rCommand )
{
@@ -405,7 +405,7 @@ sal_Bool CommandProcessorInfo::queryCommand(
getCommands();
- const com::sun::star::ucb::CommandInfo* pCommands
+ const com::sun::star::ucb::CommandInfo* pCommands
= m_pCommands->getConstArray();
sal_Int32 nCount = m_pCommands->getLength();
for ( sal_Int32 n = 0; n < nCount; ++n )
diff --git a/ucbhelper/source/provider/handleinteractionrequest.cxx b/ucbhelper/source/provider/handleinteractionrequest.cxx
index 84a010fde6d9..e7c861b38566 100644
--- a/ucbhelper/source/provider/handleinteractionrequest.cxx
+++ b/ucbhelper/source/provider/handleinteractionrequest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/provider/interactionrequest.cxx b/ucbhelper/source/provider/interactionrequest.cxx
index 18cd2435c7f2..b2fb85e09520 100644
--- a/ucbhelper/source/provider/interactionrequest.cxx
+++ b/ucbhelper/source/provider/interactionrequest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -909,10 +909,10 @@ void SAL_CALL InteractionSupplyAuthentication::setRememberAccount(
//
//=========================================================================
-// virtual
-::sal_Bool SAL_CALL
-InteractionSupplyAuthentication::canUseSystemCredentials(
- ::sal_Bool& Default )
+// virtual
+::sal_Bool SAL_CALL
+InteractionSupplyAuthentication::canUseSystemCredentials(
+ ::sal_Bool& Default )
throw ( uno::RuntimeException )
{
Default = m_bDefaultUseSystemCredentials;
@@ -921,7 +921,7 @@ InteractionSupplyAuthentication::canUseSystemCredentials(
//=========================================================================
// virtual
-void SAL_CALL InteractionSupplyAuthentication::setUseSystemCredentials(
+void SAL_CALL InteractionSupplyAuthentication::setUseSystemCredentials(
::sal_Bool UseSystemCredentials )
throw ( uno::RuntimeException )
{
diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx
index ab479372dc9f..b427f46c28ac 100644
--- a/ucbhelper/source/provider/propertyvalueset.cxx
+++ b/ucbhelper/source/provider/propertyvalueset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,55 +67,55 @@ namespace ucbhelper_impl
//
//=========================================================================
-const sal_uInt32 NO_VALUE_SET = 0x00000000;
-const sal_uInt32 STRING_VALUE_SET = 0x00000001;
-const sal_uInt32 BOOLEAN_VALUE_SET = 0x00000002;
-const sal_uInt32 BYTE_VALUE_SET = 0x00000004;
-const sal_uInt32 SHORT_VALUE_SET = 0x00000008;
-const sal_uInt32 INT_VALUE_SET = 0x00000010;
-const sal_uInt32 LONG_VALUE_SET = 0x00000020;
-const sal_uInt32 FLOAT_VALUE_SET = 0x00000040;
-const sal_uInt32 DOUBLE_VALUE_SET = 0x00000080;
-const sal_uInt32 BYTES_VALUE_SET = 0x00000100;
-const sal_uInt32 DATE_VALUE_SET = 0x00000200;
-const sal_uInt32 TIME_VALUE_SET = 0x00000400;
-const sal_uInt32 TIMESTAMP_VALUE_SET = 0x00000800;
-const sal_uInt32 BINARYSTREAM_VALUE_SET = 0x00001000;
-const sal_uInt32 CHARACTERSTREAM_VALUE_SET = 0x00002000;
-const sal_uInt32 REF_VALUE_SET = 0x00004000;
-const sal_uInt32 BLOB_VALUE_SET = 0x00008000;
-const sal_uInt32 CLOB_VALUE_SET = 0x00010000;
-const sal_uInt32 ARRAY_VALUE_SET = 0x00020000;
-const sal_uInt32 OBJECT_VALUE_SET = 0x00040000;
+const sal_uInt32 NO_VALUE_SET = 0x00000000;
+const sal_uInt32 STRING_VALUE_SET = 0x00000001;
+const sal_uInt32 BOOLEAN_VALUE_SET = 0x00000002;
+const sal_uInt32 BYTE_VALUE_SET = 0x00000004;
+const sal_uInt32 SHORT_VALUE_SET = 0x00000008;
+const sal_uInt32 INT_VALUE_SET = 0x00000010;
+const sal_uInt32 LONG_VALUE_SET = 0x00000020;
+const sal_uInt32 FLOAT_VALUE_SET = 0x00000040;
+const sal_uInt32 DOUBLE_VALUE_SET = 0x00000080;
+const sal_uInt32 BYTES_VALUE_SET = 0x00000100;
+const sal_uInt32 DATE_VALUE_SET = 0x00000200;
+const sal_uInt32 TIME_VALUE_SET = 0x00000400;
+const sal_uInt32 TIMESTAMP_VALUE_SET = 0x00000800;
+const sal_uInt32 BINARYSTREAM_VALUE_SET = 0x00001000;
+const sal_uInt32 CHARACTERSTREAM_VALUE_SET = 0x00002000;
+const sal_uInt32 REF_VALUE_SET = 0x00004000;
+const sal_uInt32 BLOB_VALUE_SET = 0x00008000;
+const sal_uInt32 CLOB_VALUE_SET = 0x00010000;
+const sal_uInt32 ARRAY_VALUE_SET = 0x00020000;
+const sal_uInt32 OBJECT_VALUE_SET = 0x00040000;
struct PropertyValue
{
::rtl::OUString
sPropertyName;
- sal_uInt32 nPropsSet;
+ sal_uInt32 nPropsSet;
sal_uInt32 nOrigValue;
- OUString aString; // getString
- sal_Bool bBoolean; // getBoolean
- sal_Int8 nByte; // getByte
- sal_Int16 nShort; // getShort
- sal_Int32 nInt; // getInt
- sal_Int64 nLong; // getLong
- float nFloat; // getFloat
- double nDouble; // getDouble
-
- Sequence< sal_Int8 > aBytes; // getBytes
- Date aDate; // getDate
- Time aTime; // getTime
- DateTime aTimestamp; // getTimestamp
- Reference< XInputStream > xBinaryStream; // getBinaryStream
- Reference< XInputStream > xCharacterStream; // getCharacterStream
- Reference< XRef > xRef; // getRef
- Reference< XBlob > xBlob; // getBlob
- Reference< XClob > xClob; // getClob
- Reference< XArray > xArray; // getArray
- Any aObject; // getObject
+ OUString aString; // getString
+ sal_Bool bBoolean; // getBoolean
+ sal_Int8 nByte; // getByte
+ sal_Int16 nShort; // getShort
+ sal_Int32 nInt; // getInt
+ sal_Int64 nLong; // getLong
+ float nFloat; // getFloat
+ double nDouble; // getDouble
+
+ Sequence< sal_Int8 > aBytes; // getBytes
+ Date aDate; // getDate
+ Time aTime; // getTime
+ DateTime aTimestamp; // getTimestamp
+ Reference< XInputStream > xBinaryStream; // getBinaryStream
+ Reference< XInputStream > xCharacterStream; // getCharacterStream
+ Reference< XRef > xRef; // getRef
+ Reference< XBlob > xBlob; // getBlob
+ Reference< XClob > xClob; // getClob
+ Reference< XArray > xArray; // getArray
+ Any aObject; // getObject
inline PropertyValue()
: nPropsSet( NO_VALUE_SET ), nOrigValue( NO_VALUE_SET ),
@@ -157,12 +157,12 @@ class PropertyValues : public PropertyValuesVector {};
\
osl::MutexGuard aGuard( m_aMutex ); \
\
- _type_ aValue = _type_(); /* default ctor */ \
+ _type_ aValue = _type_(); /* default ctor */ \
\
- m_bWasNull = sal_True; \
+ m_bWasNull = sal_True; \
\
- if ( ( columnIndex < 1 ) \
- || ( columnIndex > sal_Int32( m_pValues->size() ) ) ) \
+ if ( ( columnIndex < 1 ) \
+ || ( columnIndex > sal_Int32( m_pValues->size() ) ) ) \
{ \
OSL_ENSURE( sal_False, "PropertyValueSet - index out of range!" ); \
} \
@@ -171,13 +171,13 @@ class PropertyValues : public PropertyValuesVector {};
ucbhelper_impl::PropertyValue& rValue \
= (*m_pValues)[ columnIndex - 1 ]; \
\
- if ( rValue.nOrigValue != NO_VALUE_SET ) \
+ if ( rValue.nOrigValue != NO_VALUE_SET ) \
{ \
- if ( rValue.nPropsSet & _type_name_ ) \
+ if ( rValue.nPropsSet & _type_name_ ) \
{ \
- /* Values is present natively... */ \
+ /* Values is present natively... */ \
aValue = rValue._member_name_; \
- m_bWasNull = sal_False; \
+ m_bWasNull = sal_False; \
} \
else \
{ \
@@ -188,37 +188,37 @@ class PropertyValues : public PropertyValuesVector {};
} \
\
if ( rValue.nPropsSet & OBJECT_VALUE_SET ) \
- { \
+ { \
/* Value is available as Any. */ \
\
- if ( rValue.aObject.hasValue() ) \
+ if ( rValue.aObject.hasValue() ) \
{ \
/* Try to convert into native value. */ \
if ( rValue.aObject >>= aValue ) \
{ \
- rValue._member_name_ = aValue; \
- rValue.nPropsSet |= _type_name_; \
- m_bWasNull = sal_False; \
+ rValue._member_name_ = aValue; \
+ rValue.nPropsSet |= _type_name_; \
+ m_bWasNull = sal_False; \
} \
else \
{ \
/* Last chance. Try type converter service... */ \
\
Reference< XTypeConverter > xConverter \
- = getTypeConverter(); \
+ = getTypeConverter(); \
if ( xConverter.is() ) \
{ \
try \
{ \
Any aConvAny = xConverter->convertTo( \
- rValue.aObject, \
- _cppu_type_ ); \
+ rValue.aObject, \
+ _cppu_type_ ); \
\
if ( aConvAny >>= aValue ) \
- { \
- rValue._member_name_ = aValue; \
+ { \
+ rValue._member_name_ = aValue; \
rValue.nPropsSet |= _type_name_; \
- m_bWasNull = sal_False; \
+ m_bWasNull = sal_False; \
} \
} \
catch ( IllegalArgumentException ) \
@@ -232,24 +232,24 @@ class PropertyValues : public PropertyValuesVector {};
} \
} \
} \
- } \
+ } \
} \
return aValue;
-#define GETVALUE_IMPL( _type_, _type_name_, _member_name_ ) \
- GETVALUE_IMPL_TYPE( _type_, \
- _type_name_, \
+#define GETVALUE_IMPL( _type_, _type_name_, _member_name_ ) \
+ GETVALUE_IMPL_TYPE( _type_, \
+ _type_name_, \
_member_name_, \
getCppuType( static_cast< const _type_ * >( 0 ) ) )
-#define SETVALUE_IMPL( _prop_name_, _type_name_, _member_name_, _value_ ) \
+#define SETVALUE_IMPL( _prop_name_, _type_name_, _member_name_, _value_ ) \
\
- osl::MutexGuard aGuard( m_aMutex ); \
+ osl::MutexGuard aGuard( m_aMutex ); \
\
ucbhelper_impl::PropertyValue aNewValue; \
aNewValue.sPropertyName = _prop_name_; \
- aNewValue.nPropsSet = _type_name_; \
- aNewValue.nOrigValue = _type_name_; \
+ aNewValue.nPropsSet = _type_name_; \
+ aNewValue.nOrigValue = _type_name_; \
aNewValue._member_name_ = _value_; \
\
m_pValues->push_back( aNewValue );
@@ -264,10 +264,10 @@ namespace ucbhelper {
//=========================================================================
//=========================================================================
-#define PROPERTYVALUESET_INIT() \
- m_xSMgr( rxSMgr ), \
- m_pValues( new PropertyValues ), \
- m_bWasNull( sal_False ), \
+#define PROPERTYVALUESET_INIT() \
+ m_xSMgr( rxSMgr ), \
+ m_pValues( new PropertyValues ), \
+ m_bWasNull( sal_False ), \
m_bTriedToGetTypeConverter( sal_False )
//=========================================================================
@@ -484,7 +484,7 @@ Any SAL_CALL PropertyValueSet::getObject(
}
else
{
- ucbhelper_impl::PropertyValue& rValue
+ ucbhelper_impl::PropertyValue& rValue
= (*m_pValues)[ columnIndex - 1 ];
if ( rValue.nPropsSet & OBJECT_VALUE_SET )
@@ -833,9 +833,9 @@ void PropertyValueSet::appendPropertySet(
Reference< XPropertySetInfo > xInfo = rxSet->getPropertySetInfo();
if ( xInfo.is() )
{
- Sequence< Property > aProps = xInfo->getProperties();
- const Property* pProps = aProps.getConstArray();
- sal_Int32 nPropsCount = aProps.getLength();
+ Sequence< Property > aProps = xInfo->getProperties();
+ const Property* pProps = aProps.getConstArray();
+ sal_Int32 nPropsCount = aProps.getLength();
Reference< XPropertyAccess > xPropertyAccess( rxSet, UNO_QUERY );
if ( xPropertyAccess.is() )
diff --git a/ucbhelper/source/provider/provconf.cxx b/ucbhelper/source/provider/provconf.cxx
index 9e58ba5006e1..f325d0106440 100644
--- a/ucbhelper/source/provider/provconf.cxx
+++ b/ucbhelper/source/provider/provconf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ using namespace com::sun::star;
//=========================================================================
-#define CONFIG_CONTENTPROVIDERS_KEY \
+#define CONFIG_CONTENTPROVIDERS_KEY \
"/org.openoffice.ucb.Configuration/ContentProviders"
//=========================================================================
diff --git a/ucbhelper/source/provider/provconf.hxx b/ucbhelper/source/provider/provconf.hxx
index e21a619114ce..91ecf42ea352 100644
--- a/ucbhelper/source/provider/provconf.hxx
+++ b/ucbhelper/source/provider/provconf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx
index 359e5c952463..cc96ff2eae56 100644
--- a/ucbhelper/source/provider/providerhelper.cxx
+++ b/ucbhelper/source/provider/providerhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ namespace ucbhelper_impl
struct equalString
{
- bool operator()(
+ bool operator()(
const rtl::OUString& rKey11, const rtl::OUString& rKey22 ) const
{
return !!( rKey11 == rKey22 );
@@ -94,9 +94,9 @@ Contents;
struct ContentProviderImplHelper_Impl
{
- uno::Reference< com::sun::star::ucb::XPropertySetRegistry >
+ uno::Reference< com::sun::star::ucb::XPropertySetRegistry >
m_xPropertySetRegistry;
- Contents
+ Contents
m_aContents;
};
@@ -226,7 +226,7 @@ void ContentProviderImplHelper::removeContent( ContentImplHelper* pContent )
cleanupRegisteredContents();
- const rtl::OUString aURL(
+ const rtl::OUString aURL(
pContent->getIdentifier()->getContentIdentifier() );
ucbhelper_impl::Contents::iterator it = m_pImpl->m_aContents.find( aURL );
@@ -238,7 +238,7 @@ void ContentProviderImplHelper::removeContent( ContentImplHelper* pContent )
//=========================================================================
rtl::Reference< ContentImplHelper >
ContentProviderImplHelper::queryExistingContent(
- const uno::Reference< com::sun::star::ucb::XContentIdentifier >&
+ const uno::Reference< com::sun::star::ucb::XContentIdentifier >&
Identifier )
{
return queryExistingContent( Identifier->getContentIdentifier() );
@@ -254,7 +254,7 @@ ContentProviderImplHelper::queryExistingContent( const rtl::OUString& rURL )
// Check, if a content with given id already exists...
- ucbhelper_impl::Contents::const_iterator it
+ ucbhelper_impl::Contents::const_iterator it
= m_pImpl->m_aContents.find( rURL );
if ( it != m_pImpl->m_aContents.end() )
{
@@ -276,9 +276,9 @@ void ContentProviderImplHelper::queryExistingContents(
cleanupRegisteredContents();
- ucbhelper_impl::Contents::const_iterator it
+ ucbhelper_impl::Contents::const_iterator it
= m_pImpl->m_aContents.begin();
- ucbhelper_impl::Contents::const_iterator end
+ ucbhelper_impl::Contents::const_iterator end
= m_pImpl->m_aContents.end();
while ( it != end )
@@ -295,7 +295,7 @@ void ContentProviderImplHelper::queryExistingContents(
}
//=========================================================================
-void ContentProviderImplHelper::registerNewContent(
+void ContentProviderImplHelper::registerNewContent(
const uno::Reference< ucb::XContent > & xContent )
{
if ( xContent.is() )
@@ -304,9 +304,9 @@ void ContentProviderImplHelper::registerNewContent(
cleanupRegisteredContents();
- const rtl::OUString aURL(
+ const rtl::OUString aURL(
xContent->getIdentifier()->getContentIdentifier() );
- ucbhelper_impl::Contents::const_iterator it
+ ucbhelper_impl::Contents::const_iterator it
= m_pImpl->m_aContents.find( aURL );
if ( it == m_pImpl->m_aContents.end() )
m_pImpl->m_aContents[ aURL ] = xContent;
@@ -323,10 +323,10 @@ ContentProviderImplHelper::getAdditionalPropertySetRegistry()
if ( !m_pImpl->m_xPropertySetRegistry.is() )
{
- uno::Reference< com::sun::star::ucb::XPropertySetRegistryFactory >
+ uno::Reference< com::sun::star::ucb::XPropertySetRegistryFactory >
xRegFac(
m_xSMgr->createInstance(
- rtl::OUString::createFromAscii(
+ rtl::OUString::createFromAscii(
"com.sun.star.ucb.Store" ) ),
uno::UNO_QUERY );
@@ -352,7 +352,7 @@ ContentProviderImplHelper::getAdditionalPropertySetRegistry()
//=========================================================================
uno::Reference< com::sun::star::ucb::XPersistentPropertySet >
-ContentProviderImplHelper::getAdditionalPropertySet(
+ContentProviderImplHelper::getAdditionalPropertySet(
const rtl::OUString& rKey, sal_Bool bCreate )
{
// Get propertyset registry.
@@ -362,7 +362,7 @@ ContentProviderImplHelper::getAdditionalPropertySet(
{
// Open/create persistent property set.
return uno::Reference< com::sun::star::ucb::XPersistentPropertySet >(
- m_pImpl->m_xPropertySetRegistry->openPropertySet(
+ m_pImpl->m_xPropertySetRegistry->openPropertySet(
rKey, bCreate ) );
}
@@ -391,30 +391,30 @@ sal_Bool ContentProviderImplHelper::renameAdditionalPropertySet(
m_pImpl->m_xPropertySetRegistry, uno::UNO_QUERY );
if ( xNameAccess.is() )
{
- uno::Sequence< rtl::OUString > aKeys
+ uno::Sequence< rtl::OUString > aKeys
= xNameAccess->getElementNames();
sal_Int32 nCount = aKeys.getLength();
if ( nCount > 0 )
{
rtl::OUString aOldKeyWithSlash = rOldKey;
rtl::OUString aOldKeyWithoutSlash;
- if ( aOldKeyWithSlash.lastIndexOf(
- sal_Unicode('/')
+ if ( aOldKeyWithSlash.lastIndexOf(
+ sal_Unicode('/')
!= aOldKeyWithSlash.getLength() - 1 ) )
{
aOldKeyWithSlash += rtl::OUString( sal_Unicode('/') );
aOldKeyWithoutSlash = rOldKey;
}
else if ( rOldKey.getLength() )
- aOldKeyWithoutSlash
+ aOldKeyWithoutSlash
= rOldKey.copy( 0, rOldKey.getLength() - 1 );
const rtl::OUString* pKeys = aKeys.getConstArray();
for ( sal_Int32 n = 0; n < nCount; ++n )
{
const rtl::OUString& rKey = pKeys[ n ];
- if ( rKey.compareTo(
- aOldKeyWithSlash,
+ if ( rKey.compareTo(
+ aOldKeyWithSlash,
aOldKeyWithSlash.getLength() ) == 0
|| rKey.equals( aOldKeyWithoutSlash ) )
{
@@ -442,7 +442,7 @@ sal_Bool ContentProviderImplHelper::renameAdditionalPropertySet(
if ( xOldSet.is() )
{
// Rename property set.
- uno::Reference< container::XNamed > xNamed(
+ uno::Reference< container::XNamed > xNamed(
xOldSet, uno::UNO_QUERY );
if ( xNamed.is() )
{
@@ -478,30 +478,30 @@ sal_Bool ContentProviderImplHelper::copyAdditionalPropertySet(
m_pImpl->m_xPropertySetRegistry, uno::UNO_QUERY );
if ( xNameAccess.is() )
{
- uno::Sequence< rtl::OUString > aKeys
+ uno::Sequence< rtl::OUString > aKeys
= xNameAccess->getElementNames();
sal_Int32 nCount = aKeys.getLength();
if ( nCount > 0 )
{
rtl::OUString aSrcKeyWithSlash = rSourceKey;
rtl::OUString aSrcKeyWithoutSlash;
- if ( aSrcKeyWithSlash.lastIndexOf(
- sal_Unicode('/')
+ if ( aSrcKeyWithSlash.lastIndexOf(
+ sal_Unicode('/')
!= aSrcKeyWithSlash.getLength() - 1 ) )
{
aSrcKeyWithSlash += rtl::OUString( sal_Unicode('/') );
aSrcKeyWithoutSlash = rSourceKey;
}
else if ( rSourceKey.getLength() )
- aSrcKeyWithoutSlash = rSourceKey.copy(
+ aSrcKeyWithoutSlash = rSourceKey.copy(
0, rSourceKey.getLength() - 1 );
const rtl::OUString* pKeys = aKeys.getConstArray();
for ( sal_Int32 n = 0; n < nCount; ++n )
{
const rtl::OUString& rKey = pKeys[ n ];
- if ( rKey.compareTo(
- aSrcKeyWithSlash,
+ if ( rKey.compareTo(
+ aSrcKeyWithSlash,
aSrcKeyWithSlash.getLength() ) == 0
|| rKey.equals( aSrcKeyWithoutSlash ) )
{
@@ -524,34 +524,34 @@ sal_Bool ContentProviderImplHelper::copyAdditionalPropertySet(
else
{
// Get old property set, if exists.
- uno::Reference< com::sun::star::ucb::XPersistentPropertySet >
+ uno::Reference< com::sun::star::ucb::XPersistentPropertySet >
xOldPropSet = getAdditionalPropertySet( rSourceKey, sal_False );
if ( !xOldPropSet.is() )
return sal_False;
- uno::Reference< beans::XPropertySetInfo > xPropSetInfo
+ uno::Reference< beans::XPropertySetInfo > xPropSetInfo
= xOldPropSet->getPropertySetInfo();
if ( !xPropSetInfo.is() )
return sal_False;
- uno::Reference< beans::XPropertyAccess > xOldPropAccess(
+ uno::Reference< beans::XPropertyAccess > xOldPropAccess(
xOldPropSet, uno::UNO_QUERY );
if ( !xOldPropAccess.is() )
return sal_False;
// Obtain all values from old set.
- uno::Sequence< beans::PropertyValue > aValues
+ uno::Sequence< beans::PropertyValue > aValues
= xOldPropAccess->getPropertyValues();
sal_Int32 nCount = aValues.getLength();
- uno::Sequence< beans::Property > aProps
+ uno::Sequence< beans::Property > aProps
= xPropSetInfo->getProperties();
if ( nCount )
{
// Fail, if property set with new key already exists.
- uno::Reference< com::sun::star::ucb::XPersistentPropertySet >
- xNewPropSet
+ uno::Reference< com::sun::star::ucb::XPersistentPropertySet >
+ xNewPropSet
= getAdditionalPropertySet( rTargetKey, sal_False );
if ( xNewPropSet.is() )
return sal_False;
@@ -617,30 +617,30 @@ sal_Bool ContentProviderImplHelper::removeAdditionalPropertySet(
m_pImpl->m_xPropertySetRegistry, uno::UNO_QUERY );
if ( xNameAccess.is() )
{
- uno::Sequence< rtl::OUString > aKeys
+ uno::Sequence< rtl::OUString > aKeys
= xNameAccess->getElementNames();
sal_Int32 nCount = aKeys.getLength();
if ( nCount > 0 )
{
rtl::OUString aKeyWithSlash = rKey;
rtl::OUString aKeyWithoutSlash;
- if ( aKeyWithSlash.lastIndexOf(
- sal_Unicode('/')
+ if ( aKeyWithSlash.lastIndexOf(
+ sal_Unicode('/')
!= aKeyWithSlash.getLength() - 1 ) )
{
aKeyWithSlash += rtl::OUString( (sal_Unicode)'/' );
aKeyWithoutSlash = rKey;
}
else if ( rKey.getLength() )
- aKeyWithoutSlash
+ aKeyWithoutSlash
= rKey.copy( 0, rKey.getLength() - 1 );
const rtl::OUString* pKeys = aKeys.getConstArray();
for ( sal_Int32 n = 0; n < nCount; ++n )
{
const rtl::OUString& rCurrKey = pKeys[ n ];
- if ( rCurrKey.compareTo(
- aKeyWithSlash,
+ if ( rCurrKey.compareTo(
+ aKeyWithSlash,
aKeyWithSlash.getLength() ) == 0
|| rCurrKey.equals( aKeyWithoutSlash ) )
{
diff --git a/ucbhelper/source/provider/registerucb.cxx b/ucbhelper/source/provider/registerucb.cxx
index 2f45d1507ef4..69c76297d5d8 100644
--- a/ucbhelper/source/provider/registerucb.cxx
+++ b/ucbhelper/source/provider/registerucb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index 9f2f97d558fd..dd7a620966a8 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ namespace ucbhelper_impl
struct PropertyInfo
{
- const char* pName;
+ const char* pName;
sal_Int32 nHandle;
sal_Int16 nAttributes;
const uno::Type& (*pGetCppuType)();
@@ -92,19 +92,19 @@ static const PropertyInfo aPropertyTable[] =
//=========================================================================
class PropertySetInfo :
- public cppu::OWeakObject,
- public lang::XTypeProvider,
+ public cppu::OWeakObject,
+ public lang::XTypeProvider,
public beans::XPropertySetInfo
{
uno::Reference< lang::XMultiServiceFactory > m_xSMgr;
- uno::Sequence< beans::Property >* m_pProps;
+ uno::Sequence< beans::Property >* m_pProps;
private:
- sal_Bool queryProperty(
+ sal_Bool queryProperty(
const rtl::OUString& aName, beans::Property& rProp );
public:
- PropertySetInfo(
+ PropertySetInfo(
const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
const PropertyInfo* pProps,
sal_Int32 nProps );
@@ -119,7 +119,7 @@ public:
// XPropertySetInfo
virtual uno::Sequence< beans::Property > SAL_CALL getProperties()
throw( uno::RuntimeException );
- virtual beans::Property SAL_CALL getPropertyByName(
+ virtual beans::Property SAL_CALL getPropertyByName(
const rtl::OUString& aName )
throw( beans::UnknownPropertyException, uno::RuntimeException );
virtual sal_Bool SAL_CALL hasPropertyByName( const rtl::OUString& Name )
@@ -183,24 +183,24 @@ namespace ucbhelper
struct ResultSet_Impl
{
- uno::Reference< lang::XMultiServiceFactory > m_xSMgr;
- uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xEnv;
- uno::Reference< beans::XPropertySetInfo > m_xPropSetInfo;
- uno::Reference< sdbc::XResultSetMetaData > m_xMetaData;
- uno::Sequence< beans::Property > m_aProperties;
- rtl::Reference< ResultSetDataSupplier > m_xDataSupplier;
- osl::Mutex m_aMutex;
- cppu::OInterfaceContainerHelper* m_pDisposeEventListeners;
- PropertyChangeListeners* m_pPropertyChangeListeners;
- sal_Int32 m_nPos;
- sal_Bool m_bWasNull;
- sal_Bool m_bAfterLast;
-
- inline ResultSet_Impl(
+ uno::Reference< lang::XMultiServiceFactory > m_xSMgr;
+ uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xEnv;
+ uno::Reference< beans::XPropertySetInfo > m_xPropSetInfo;
+ uno::Reference< sdbc::XResultSetMetaData > m_xMetaData;
+ uno::Sequence< beans::Property > m_aProperties;
+ rtl::Reference< ResultSetDataSupplier > m_xDataSupplier;
+ osl::Mutex m_aMutex;
+ cppu::OInterfaceContainerHelper* m_pDisposeEventListeners;
+ PropertyChangeListeners* m_pPropertyChangeListeners;
+ sal_Int32 m_nPos;
+ sal_Bool m_bWasNull;
+ sal_Bool m_bAfterLast;
+
+ inline ResultSet_Impl(
const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
const uno::Sequence< beans::Property >& rProperties,
const rtl::Reference< ResultSetDataSupplier >& rDataSupplier,
- const uno::Reference< com::sun::star::ucb::XCommandEnvironment >&
+ const uno::Reference< com::sun::star::ucb::XCommandEnvironment >&
rxEnv );
inline ~ResultSet_Impl();
};
@@ -237,11 +237,11 @@ inline ResultSet_Impl::~ResultSet_Impl()
//=========================================================================
//=========================================================================
-ResultSet::ResultSet(
+ResultSet::ResultSet(
const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
const uno::Sequence< beans::Property >& rProperties,
const rtl::Reference< ResultSetDataSupplier >& rDataSupplier )
-: m_pImpl( new ResultSet_Impl(
+: m_pImpl( new ResultSet_Impl(
rxSMgr,
rProperties,
rDataSupplier,
@@ -251,7 +251,7 @@ ResultSet::ResultSet(
}
//=========================================================================
-ResultSet::ResultSet(
+ResultSet::ResultSet(
const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
const uno::Sequence< beans::Property >& rProperties,
const rtl::Reference< ResultSetDataSupplier >& rDataSupplier,
@@ -610,7 +610,7 @@ sal_Bool SAL_CALL ResultSet::absolute( sal_Int32 row )
else if ( row == 0 )
{
// @throws SQLException
- // ... if row is 0 ...
+ // ... if row is 0 ...
throw sdbc::SQLException();
}
else // row > 0
@@ -649,8 +649,8 @@ sal_Bool SAL_CALL ResultSet::relative( sal_Int32 rows )
Calling relative( 0 ) is valid, but does not change the cursor position.
Calling relative( 1 ) is different from calling next() because it makes
- sense to call next() when there is no current row, for example, when
- the cursor is positioned before the first row or after the last row of
+ sense to call next() when there is no current row, for example, when
+ the cursor is positioned before the first row or after the last row of
the result set.
*/
if ( m_pImpl->m_bAfterLast || ( m_pImpl->m_nPos == 0 ) )
@@ -1148,7 +1148,7 @@ ResultSet::getCharacterStream( sal_Int32 columnIndex )
//=========================================================================
// virtual
-uno::Any SAL_CALL ResultSet::getObject(
+uno::Any SAL_CALL ResultSet::getObject(
sal_Int32 columnIndex,
const uno::Reference< container::XNameAccess >& typeMap )
throw( sdbc::SQLException, uno::RuntimeException )
@@ -1173,7 +1173,7 @@ uno::Any SAL_CALL ResultSet::getObject(
//=========================================================================
// virtual
-uno::Reference< sdbc::XRef > SAL_CALL
+uno::Reference< sdbc::XRef > SAL_CALL
ResultSet::getRef( sal_Int32 columnIndex )
throw( sdbc::SQLException, uno::RuntimeException )
{
@@ -1197,7 +1197,7 @@ ResultSet::getRef( sal_Int32 columnIndex )
//=========================================================================
// virtual
-uno::Reference< sdbc::XBlob > SAL_CALL
+uno::Reference< sdbc::XBlob > SAL_CALL
ResultSet::getBlob( sal_Int32 columnIndex )
throw( sdbc::SQLException, uno::RuntimeException )
{
@@ -1221,7 +1221,7 @@ ResultSet::getBlob( sal_Int32 columnIndex )
//=========================================================================
// virtual
-uno::Reference< sdbc::XClob > SAL_CALL
+uno::Reference< sdbc::XClob > SAL_CALL
ResultSet::getClob( sal_Int32 columnIndex )
throw( sdbc::SQLException, uno::RuntimeException )
{
@@ -1245,7 +1245,7 @@ ResultSet::getClob( sal_Int32 columnIndex )
//=========================================================================
// virtual
-uno::Reference< sdbc::XArray > SAL_CALL
+uno::Reference< sdbc::XArray > SAL_CALL
ResultSet::getArray( sal_Int32 columnIndex )
throw( sdbc::SQLException, uno::RuntimeException )
{
@@ -1300,7 +1300,7 @@ rtl::OUString SAL_CALL ResultSet::queryContentIdentifierString()
//=========================================================================
// virtual
-uno::Reference< com::sun::star::ucb::XContentIdentifier > SAL_CALL
+uno::Reference< com::sun::star::ucb::XContentIdentifier > SAL_CALL
ResultSet::queryContentIdentifier()
throw( uno::RuntimeException )
{
@@ -1313,7 +1313,7 @@ ResultSet::queryContentIdentifier()
//=========================================================================
// virtual
-uno::Reference< com::sun::star::ucb::XContent > SAL_CALL
+uno::Reference< com::sun::star::ucb::XContent > SAL_CALL
ResultSet::queryContent()
throw( uno::RuntimeException )
{
@@ -1330,7 +1330,7 @@ ResultSet::queryContent()
//=========================================================================
// virtual
-uno::Reference< beans::XPropertySetInfo > SAL_CALL
+uno::Reference< beans::XPropertySetInfo > SAL_CALL
ResultSet::getPropertySetInfo()
throw( uno::RuntimeException )
{
@@ -1377,7 +1377,7 @@ void SAL_CALL ResultSet::setPropertyValue( const rtl::OUString& aPropertyName,
//=========================================================================
// virtual
-uno::Any SAL_CALL ResultSet::getPropertyValue(
+uno::Any SAL_CALL ResultSet::getPropertyValue(
const rtl::OUString& PropertyName )
throw( beans::UnknownPropertyException,
lang::WrappedTargetException,
@@ -1467,7 +1467,7 @@ void SAL_CALL ResultSet::addVetoableChangeListener(
lang::WrappedTargetException,
uno::RuntimeException )
{
- // No constrained props, at the moment.
+ // No constrained props, at the moment.
}
//=========================================================================
@@ -1479,7 +1479,7 @@ void SAL_CALL ResultSet::removeVetoableChangeListener(
lang::WrappedTargetException,
uno::RuntimeException )
{
- // No constrained props, at the moment.
+ // No constrained props, at the moment.
}
//=========================================================================
@@ -1534,12 +1534,12 @@ void ResultSet::rowCountChanged( sal_uInt32 nOld, sal_uInt32 nNew )
return;
propertyChanged(
- beans::PropertyChangeEvent(
+ beans::PropertyChangeEvent(
static_cast< cppu::OWeakObject * >( this ),
rtl::OUString::createFromAscii( "RowCount" ),
sal_False,
1001,
- uno::makeAny( nOld ), // old value
+ uno::makeAny( nOld ), // old value
uno::makeAny( nNew ) ) ); // new value
}
@@ -1550,23 +1550,23 @@ void ResultSet::rowCountFinal()
return;
propertyChanged(
- beans::PropertyChangeEvent(
+ beans::PropertyChangeEvent(
static_cast< cppu::OWeakObject * >( this ),
rtl::OUString::createFromAscii( "IsRowCountFinal" ),
sal_False,
1000,
- uno:: makeAny( sal_False ), // old value
+ uno:: makeAny( sal_False ), // old value
uno::makeAny( sal_True ) ) ); // new value
}
//=========================================================================
-const uno::Sequence< beans::Property >& ResultSet::getProperties()
+const uno::Sequence< beans::Property >& ResultSet::getProperties()
{
return m_pImpl->m_aProperties;
}
//=========================================================================
-const uno::Reference< com::sun::star::ucb::XCommandEnvironment >&
+const uno::Reference< com::sun::star::ucb::XCommandEnvironment >&
ResultSet::getEnvironment()
{
return m_pImpl->m_xEnv;
@@ -1601,9 +1601,9 @@ PropertySetInfo::PropertySetInfo(
{
beans::Property& rProp = pProperties[ n ];
- rProp.Name = rtl::OUString::createFromAscii( pEntry->pName );
- rProp.Handle = pEntry->nHandle;
- rProp.Type = pEntry->pGetCppuType();
+ rProp.Name = rtl::OUString::createFromAscii( pEntry->pName );
+ rProp.Handle = pEntry->nHandle;
+ rProp.Type = pEntry->pGetCppuType();
rProp.Attributes = pEntry->nAttributes;
pEntry++;
@@ -1653,7 +1653,7 @@ uno::Sequence< beans::Property > SAL_CALL PropertySetInfo::getProperties()
//=========================================================================
// virtual
-beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
+beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
const rtl::OUString& aName )
throw( beans::UnknownPropertyException, uno::RuntimeException )
{
@@ -1666,7 +1666,7 @@ beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
//=========================================================================
// virtual
-sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName(
+sal_Bool SAL_CALL PropertySetInfo::hasPropertyByName(
const rtl::OUString& Name )
throw( uno::RuntimeException )
{
diff --git a/ucbhelper/source/provider/resultsethelper.cxx b/ucbhelper/source/provider/resultsethelper.cxx
index a508b47818c9..280ed00cf8b2 100644
--- a/ucbhelper/source/provider/resultsethelper.cxx
+++ b/ucbhelper/source/provider/resultsethelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -117,9 +117,9 @@ XTYPEPROVIDER_IMPL_3( ResultSetImplHelper,
//=========================================================================
XSERVICEINFO_NOFACTORY_IMPL_1( ResultSetImplHelper,
- rtl::OUString::createFromAscii(
+ rtl::OUString::createFromAscii(
"ResultSetImplHelper" ),
- rtl::OUString::createFromAscii(
+ rtl::OUString::createFromAscii(
DYNAMICRESULTSET_SERVICE_NAME ) );
//=========================================================================
@@ -151,7 +151,7 @@ void SAL_CALL ResultSetImplHelper::addEventListener(
osl::MutexGuard aGuard( m_aMutex );
if ( !m_pDisposeEventListeners )
- m_pDisposeEventListeners
+ m_pDisposeEventListeners
= new cppu::OInterfaceContainerHelper( m_aMutex );
m_pDisposeEventListeners->addInterface( Listener );
@@ -176,9 +176,9 @@ void SAL_CALL ResultSetImplHelper::removeEventListener(
//=========================================================================
// virtual
-uno::Reference< sdbc::XResultSet > SAL_CALL
+uno::Reference< sdbc::XResultSet > SAL_CALL
ResultSetImplHelper::getStaticResultSet()
- throw( com::sun::star::ucb::ListenerAlreadySetException,
+ throw( com::sun::star::ucb::ListenerAlreadySetException,
uno::RuntimeException )
{
osl::MutexGuard aGuard( m_aMutex );
@@ -217,13 +217,13 @@ void SAL_CALL ResultSetImplHelper::setListener(
init( sal_False );
uno::Any aInfo;
- aInfo <<= com::sun::star::ucb::WelcomeDynamicResultSetStruct(
+ aInfo <<= com::sun::star::ucb::WelcomeDynamicResultSetStruct(
m_xResultSet1 /* "old" */,
m_xResultSet2 /* "new" */ );
uno::Sequence< com::sun::star::ucb::ListAction > aActions( 1 );
- aActions.getArray()[ 0 ]
- = com::sun::star::ucb::ListAction(
+ aActions.getArray()[ 0 ]
+ = com::sun::star::ucb::ListAction(
0, // Position; not used
0, // Count; not used
com::sun::star::ucb::ListActionType::WELCOME,
@@ -231,7 +231,7 @@ void SAL_CALL ResultSetImplHelper::setListener(
aGuard.clear();
Listener->notify(
- com::sun::star::ucb::ListEvent(
+ com::sun::star::ucb::ListEvent(
static_cast< cppu::OWeakObject * >( this ), aActions ) );
}
@@ -247,7 +247,7 @@ sal_Int16 SAL_CALL ResultSetImplHelper::getCapabilities()
//=========================================================================
// virtual
void SAL_CALL ResultSetImplHelper::connectToCache(
- const uno::Reference< com::sun::star::ucb::XDynamicResultSet > &
+ const uno::Reference< com::sun::star::ucb::XDynamicResultSet > &
xCache )
throw( com::sun::star::ucb::ListenerAlreadySetException,
com::sun::star::ucb::AlreadyInitializedException,
@@ -260,17 +260,17 @@ void SAL_CALL ResultSetImplHelper::connectToCache(
if ( m_bStatic )
throw com::sun::star::ucb::ListenerAlreadySetException();
- uno::Reference< com::sun::star::ucb::XSourceInitialization >
+ uno::Reference< com::sun::star::ucb::XSourceInitialization >
xTarget( xCache, uno::UNO_QUERY );
if ( xTarget.is() )
{
- uno::Reference<
- com::sun::star::ucb::XCachedDynamicResultSetStubFactory >
+ uno::Reference<
+ com::sun::star::ucb::XCachedDynamicResultSetStubFactory >
xStubFactory;
try
{
- xStubFactory
- = uno::Reference<
+ xStubFactory
+ = uno::Reference<
com::sun::star::ucb::XCachedDynamicResultSetStubFactory >(
m_xSMgr->createInstance(
rtl::OUString::createFromAscii(
diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx
index d7697fb92533..2ca74aafd628 100644
--- a/ucbhelper/source/provider/resultsetmetadata.cxx
+++ b/ucbhelper/source/provider/resultsetmetadata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,10 +62,10 @@ namespace ucbhelper_impl {
struct ResultSetMetaData_Impl
{
- osl::Mutex m_aMutex;
+ osl::Mutex m_aMutex;
std::vector< ::ucbhelper::ResultSetColumnData > m_aColumnData;
- sal_Bool m_bObtainedTypes;
- sal_Bool m_bGlobalReadOnlyValue;
+ sal_Bool m_bObtainedTypes;
+ sal_Bool m_bGlobalReadOnlyValue;
ResultSetMetaData_Impl( sal_Int32 nSize )
: m_aColumnData( nSize ), m_bObtainedTypes( sal_False ),
@@ -462,34 +462,34 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column )
if ( rType == getCppuType( static_cast< const rtl::OUString * >( 0 ) ) )
nType = DataType::VARCHAR; // XRow::getString
else if ( rType == getCppuBooleanType() )
- nType = DataType::BIT; // XRow::getBoolean
+ nType = DataType::BIT; // XRow::getBoolean
else if ( rType == getCppuType( static_cast< const sal_Int32 * >( 0 ) ) )
- nType = DataType::INTEGER; // XRow::getInt
+ nType = DataType::INTEGER; // XRow::getInt
else if ( rType == getCppuType( static_cast< const sal_Int64 * >( 0 ) ) )
- nType = DataType::BIGINT; // XRow::getLong
+ nType = DataType::BIGINT; // XRow::getLong
else if ( rType == getCppuType( static_cast< const sal_Int16 * >( 0 ) ) )
- nType = DataType::SMALLINT; // XRow::getShort
+ nType = DataType::SMALLINT; // XRow::getShort
else if ( rType == getCppuType( static_cast< const sal_Int8 * >( 0 ) ) )
- nType = DataType::TINYINT; // XRow::getByte
+ nType = DataType::TINYINT; // XRow::getByte
else if ( rType == getCppuType( static_cast< const float * >( 0 ) ) )
- nType = DataType::REAL; // XRow::getFloat
+ nType = DataType::REAL; // XRow::getFloat
else if ( rType == getCppuType( static_cast< const double * >( 0 ) ) )
- nType = DataType::DOUBLE; // XRow::getDouble
+ nType = DataType::DOUBLE; // XRow::getDouble
else if ( rType == getCppuType( static_cast< const Sequence< sal_Int8 > * >( 0 ) ) )
nType = DataType::VARBINARY;// XRow::getBytes
else if ( rType == getCppuType( static_cast< const Date * >( 0 ) ) )
- nType = DataType::DATE; // XRow::getDate
+ nType = DataType::DATE; // XRow::getDate
else if ( rType == getCppuType( static_cast< const Time * >( 0 ) ) )
- nType = DataType::TIME; // XRow::getTime
+ nType = DataType::TIME; // XRow::getTime
else if ( rType == getCppuType( static_cast< const DateTime * >( 0 ) ) )
nType = DataType::TIMESTAMP;// XRow::getTimestamp
else if ( rType == getCppuType( static_cast< Reference< XInputStream > * >( 0 ) ) )
- nType = DataType::LONGVARBINARY; // XRow::getBinaryStream
-// nType = DataType::LONGVARCHAR; // XRow::getCharacterStream
+ nType = DataType::LONGVARBINARY; // XRow::getBinaryStream
+// nType = DataType::LONGVARCHAR; // XRow::getCharacterStream
else if ( rType == getCppuType( static_cast< Reference< XClob > * >( 0 ) ) )
- nType = DataType::CLOB; // XRow::getClob
+ nType = DataType::CLOB; // XRow::getClob
else if ( rType == getCppuType( static_cast< Reference< XBlob > * >( 0 ) ) )
- nType = DataType::BLOB; // XRow::getBlob
+ nType = DataType::BLOB; // XRow::getBlob
else if ( rType == getCppuType( static_cast< Reference< XArray > * >( 0 ) ) )
nType = DataType::ARRAY;// XRow::getArray
else if ( rType == getCppuType( static_cast< Reference< XRef > * >( 0 ) ) )
diff --git a/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx b/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx
index d3a7259d91cb..285893a09886 100644
--- a/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx
+++ b/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@ using namespace com::sun::star;
using namespace ucbhelper;
//=========================================================================
-SimpleCertificateValidationRequest::SimpleCertificateValidationRequest( const sal_Int32 & lCertificateValidity,
+SimpleCertificateValidationRequest::SimpleCertificateValidationRequest( const sal_Int32 & lCertificateValidity,
const com::sun::star::uno::Reference<com::sun::star::security::XCertificate> pCertificate,
const rtl::OUString & hostname)
{
@@ -44,9 +44,9 @@ SimpleCertificateValidationRequest::SimpleCertificateValidationRequest( const sa
aRequest.CertificateValidity = lCertificateValidity;
aRequest.Certificate = pCertificate;
aRequest.HostName = hostname;
-
+
setRequest( uno::makeAny( aRequest ) );
-
+
uno::Sequence< uno::Reference< task::XInteractionContinuation > > aContinuations( 2 );
aContinuations[ 0 ] = new InteractionAbort( this );
aContinuations[ 1 ] = new InteractionApprove( this );
diff --git a/ucbhelper/source/provider/simpleinteractionrequest.cxx b/ucbhelper/source/provider/simpleinteractionrequest.cxx
index e178b695da15..5c8921fce302 100644
--- a/ucbhelper/source/provider/simpleinteractionrequest.cxx
+++ b/ucbhelper/source/provider/simpleinteractionrequest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/provider/simpleioerrorrequest.cxx b/ucbhelper/source/provider/simpleioerrorrequest.cxx
index 4cf82b342365..6ba408019d25 100644
--- a/ucbhelper/source/provider/simpleioerrorrequest.cxx
+++ b/ucbhelper/source/provider/simpleioerrorrequest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/source/provider/simplenameclashresolverequest.cxx b/ucbhelper/source/provider/simplenameclashresolverequest.cxx
index 36fa09516fbf..9365e16144fc 100644
--- a/ucbhelper/source/provider/simplenameclashresolverequest.cxx
+++ b/ucbhelper/source/provider/simplenameclashresolverequest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/util/ucbhelper.xml b/ucbhelper/util/ucbhelper.xml
index 8e13b5f7bc0c..4b3dca3f5f03 100644
--- a/ucbhelper/util/ucbhelper.xml
+++ b/ucbhelper/util/ucbhelper.xml
@@ -9,10 +9,10 @@
<project-build-dependency> cppu </project-build-dependency>
<project-build-dependency> cppuhelper </project-build-dependency>
- <runtime-module-dependency> sal3 </runtime-module-dependency>
- <runtime-module-dependency> salhelper3$(COM) </runtime-module-dependency>
- <runtime-module-dependency> cppu3 </runtime-module-dependency>
- <runtime-module-dependency> cppuhelper3$(COM) </runtime-module-dependency>
+ <runtime-module-dependency> sal3 </runtime-module-dependency>
+ <runtime-module-dependency> salhelper3$(COM) </runtime-module-dependency>
+ <runtime-module-dependency> cppu3 </runtime-module-dependency>
+ <runtime-module-dependency> cppuhelper3$(COM) </runtime-module-dependency>
<service-dependency>
com.sun.star.configuration.ConfigurationAccess
diff --git a/ucbhelper/workben/myucp/myucp_content.cxx b/ucbhelper/workben/myucp/myucp_content.cxx
index a787ed64467f..027d0d1114cb 100644
--- a/ucbhelper/workben/myucp/myucp_content.cxx
+++ b/ucbhelper/workben/myucp/myucp_content.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -177,7 +177,7 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes()
rtl::OUString SAL_CALL Content::getImplementationName()
throw( uno::RuntimeException )
{
- // @@@ Adjust implementation name.
+ // @@@ Adjust implementation name.
// Prefix with reversed company domain name.
return rtl::OUString::createFromAscii( "com.sun.star.comp.myucp.Content" );
}
@@ -433,7 +433,7 @@ uno::Any SAL_CALL Content::execute(
removeAdditionalPropertySet( sal_True );
// Remove own and all childrens(!) persistent data.
-// removeData();
+// removeData();
}
#endif // IMPLEMENT_COMMAND_DELETE
else
@@ -486,7 +486,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
const uno::Reference< lang::XMultiServiceFactory >& rSMgr,
const uno::Sequence< beans::Property >& rProperties,
const ContentProperties& rData,
- const rtl::Reference<
+ const rtl::Reference<
::ucbhelper::ContentProviderImplHelper >& rProvider,
const rtl::OUString& rContentId )
{
@@ -646,11 +646,11 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
beans::PropertyChangeEvent aEvent;
aEvent.Source = static_cast< cppu::OWeakObject * >( this );
- aEvent.Further = sal_False;
-// aEvent.PropertyName =
+ aEvent.Further = sal_False;
+// aEvent.PropertyName =
aEvent.PropertyHandle = -1;
-// aEvent.OldValue =
-// aEvent.NewValue =
+// aEvent.OldValue =
+// aEvent.NewValue =
const beans::PropertyValue* pValues = rValues.getConstArray();
sal_Int32 nCount = rValues.getLength();
@@ -749,7 +749,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
rValue.Name, rValue.Value );
aEvent.PropertyName = rValue.Name;
- aEvent.OldValue = aOldValue;
+ aEvent.OldValue = aOldValue;
aEvent.NewValue = rValue.Value;
aChanges.getArray()[ nChanged ] = aEvent;
@@ -790,7 +790,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
if ( nChanged > 0 )
{
// @@@ Save changes.
-// storeData();
+// storeData();
aGuard.clear();
aChanges.realloc( nChanged );
@@ -831,7 +831,7 @@ void Content::queryChildren( ContentRefList& rChildren )
while ( it != end )
{
::ucbhelper::ContentImplHelperRef xChild = (*it);
- ::rtl::OUString aChildURL
+ ::rtl::OUString aChildURL
= xChild->getIdentifier()->getContentIdentifier();
// Is aURL a prefix of aChildURL?
@@ -903,7 +903,7 @@ void Content::insert(
m_xIdentifier = xId;
// @@@
-// storeData();
+// storeData();
aGuard.clear();
inserted();
diff --git a/ucbhelper/workben/myucp/myucp_content.hxx b/ucbhelper/workben/myucp/myucp_content.hxx
index d2a4668fbe98..861ba73b8a39 100644
--- a/ucbhelper/workben/myucp/myucp_content.hxx
+++ b/ucbhelper/workben/myucp/myucp_content.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,10 +63,10 @@ namespace myucp
struct ContentProperties
{
- ::rtl::OUString aTitle; // Title
- ::rtl::OUString aContentType; // ContentType
+ ::rtl::OUString aTitle; // Title
+ ::rtl::OUString aContentType; // ContentType
sal_Bool bIsDocument; // IsDocument
- sal_Bool bIsFolder; // IsFolder
+ sal_Bool bIsFolder; // IsFolder
// @@@ Add other properties supported by your content.
diff --git a/ucbhelper/workben/myucp/myucp_contentcaps.cxx b/ucbhelper/workben/myucp/myucp_contentcaps.cxx
index 4b5916077dbb..7d74282c843f 100644
--- a/ucbhelper/workben/myucp/myucp_contentcaps.cxx
+++ b/ucbhelper/workben/myucp/myucp_contentcaps.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,7 +83,7 @@ uno::Sequence< beans::Property > Content::getProperties(
// is preferred! In fact you should return a table conatining
// even that dynamicly added properties.
-// osl::Guard< osl::Mutex > aGuard( m_aMutex );
+// osl::Guard< osl::Mutex > aGuard( m_aMutex );
//=================================================================
//
@@ -141,7 +141,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands(
{
// @@@ Add additional commands...
-// osl::Guard< osl::Mutex > aGuard( m_aMutex );
+// osl::Guard< osl::Mutex > aGuard( m_aMutex );
//=================================================================
//
diff --git a/ucbhelper/workben/myucp/myucp_datasupplier.cxx b/ucbhelper/workben/myucp/myucp_datasupplier.cxx
index e0feb0e6d63a..ecdf861a8921 100644
--- a/ucbhelper/workben/myucp/myucp_datasupplier.cxx
+++ b/ucbhelper/workben/myucp/myucp_datasupplier.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,11 +57,11 @@ namespace myucp
struct ResultListEntry
{
- rtl::OUString aId;
+ rtl::OUString aId;
uno::Reference< ucb::XContentIdentifier > xId;
- uno::Reference< ucb::XContent > xContent;
- uno::Reference< sdbc::XRow > xRow;
- const ContentProperties& rData;
+ uno::Reference< ucb::XContent > xContent;
+ uno::Reference< sdbc::XRow > xRow;
+ const ContentProperties& rData;
ResultListEntry( const ContentProperties& rEntry ) : rData( rEntry ) {}
};
@@ -82,21 +82,21 @@ typedef std::vector< ResultListEntry* > ResultList;
struct DataSupplier_Impl
{
- osl::Mutex m_aMutex;
- ResultList m_aResults;
- rtl::Reference< Content > m_xContent;
+ osl::Mutex m_aMutex;
+ ResultList m_aResults;
+ rtl::Reference< Content > m_xContent;
uno::Reference< lang::XMultiServiceFactory > m_xSMgr;
// @@@ The data source and an iterator for it
-// Entry m_aFolder;
-// Entry::iterator m_aIterator;
- sal_Int32 m_nOpenMode;
- sal_Bool m_bCountFinal;
+// Entry m_aFolder;
+// Entry::iterator m_aIterator;
+ sal_Int32 m_nOpenMode;
+ sal_Bool m_bCountFinal;
DataSupplier_Impl( const uno::Reference< lang::XMultiServiceFactory >& rxSMgr,
const rtl::Reference< Content >& rContent,
sal_Int32 nOpenMode )
: m_xContent( rContent ), m_xSMgr( rxSMgr ),
-// m_aFolder( rxSMgr, rContent->getIdentifier()->getContentIdentifier() ),
+// m_aFolder( rxSMgr, rContent->getIdentifier()->getContentIdentifier() ),
m_nOpenMode( nOpenMode ), m_bCountFinal( sal_False ) {}
~DataSupplier_Impl();
};
@@ -167,7 +167,7 @@ rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex )
//=========================================================================
// virtual
-uno::Reference< ucb::XContentIdentifier >
+uno::Reference< ucb::XContentIdentifier >
DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
{
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
@@ -186,7 +186,7 @@ DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
rtl::OUString aId = queryContentIdentifierString( nIndex );
if ( aId.getLength() )
{
- uno::Reference< ucb::XContentIdentifier > xId
+ uno::Reference< ucb::XContentIdentifier > xId
= new ::ucbhelper::ContentIdentifier( aId );
m_pImpl->m_aResults[ nIndex ]->xId = xId;
return xId;
@@ -196,7 +196,7 @@ DataSupplier::queryContentIdentifier( sal_uInt32 nIndex )
//=========================================================================
// virtual
-uno::Reference< ucb::XContent >
+uno::Reference< ucb::XContent >
DataSupplier::queryContent( sal_uInt32 nIndex )
{
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
@@ -212,7 +212,7 @@ DataSupplier::queryContent( sal_uInt32 nIndex )
}
}
- uno::Reference< ucb::XContentIdentifier > xId
+ uno::Reference< ucb::XContentIdentifier > xId
= queryContentIdentifier( nIndex );
if ( xId.is() )
{
@@ -343,7 +343,7 @@ sal_Bool DataSupplier::isCountFinal()
//=========================================================================
// virtual
-uno::Reference< sdbc::XRow >
+uno::Reference< sdbc::XRow >
DataSupplier::queryPropertyValues( sal_uInt32 nIndex )
{
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
diff --git a/ucbhelper/workben/myucp/myucp_datasupplier.hxx b/ucbhelper/workben/myucp/myucp_datasupplier.hxx
index a4bafb8e4480..351280aa44e5 100644
--- a/ucbhelper/workben/myucp/myucp_datasupplier.hxx
+++ b/ucbhelper/workben/myucp/myucp_datasupplier.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/workben/myucp/myucp_provider.cxx b/ucbhelper/workben/myucp/myucp_provider.cxx
index f51ec34e261c..5e6b2a6bb222 100644
--- a/ucbhelper/workben/myucp/myucp_provider.cxx
+++ b/ucbhelper/workben/myucp/myucp_provider.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/workben/myucp/myucp_provider.hxx b/ucbhelper/workben/myucp/myucp_provider.hxx
index 729cb5a36687..522d4423c56d 100644
--- a/ucbhelper/workben/myucp/myucp_provider.hxx
+++ b/ucbhelper/workben/myucp/myucp_provider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,14 +43,14 @@ namespace myucp {
// create instances of the provider. Prefix with reversed company domain name.
#define MYUCP_CONTENT_PROVIDER_SERVICE_NAME \
"com.sun.star.ucb.MyContentProvider"
-#define MYUCP_CONTENT_PROVIDER_SERVICE_NAME_LENGTH 34
+#define MYUCP_CONTENT_PROVIDER_SERVICE_NAME_LENGTH 34
// URL scheme. This is the scheme the provider will be able to create
// contents for. The UCB will select the provider ( i.e. in order to create
// contents ) according to this scheme.
#define MYUCP_URL_SCHEME \
"vnd.sun.star.myucp"
-#define MYUCP_URL_SCHEME_LENGTH 18
+#define MYUCP_URL_SCHEME_LENGTH 18
// UCB Content Type.
#define MYUCP_CONTENT_TYPE \
diff --git a/ucbhelper/workben/myucp/myucp_resultset.cxx b/ucbhelper/workben/myucp/myucp_resultset.cxx
index 370ed3e68a96..ec1a22b83b1d 100644
--- a/ucbhelper/workben/myucp/myucp_resultset.cxx
+++ b/ucbhelper/workben/myucp/myucp_resultset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/workben/myucp/myucp_resultset.hxx b/ucbhelper/workben/myucp/myucp_resultset.hxx
index a36509f961ff..27dc73606bc4 100644
--- a/ucbhelper/workben/myucp/myucp_resultset.hxx
+++ b/ucbhelper/workben/myucp/myucp_resultset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/workben/myucp/myucp_services.cxx b/ucbhelper/workben/myucp/myucp_services.cxx
index 7ab10a200535..ae3d0b0395a4 100644
--- a/ucbhelper/workben/myucp/myucp_services.cxx
+++ b/ucbhelper/workben/myucp/myucp_services.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx b/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx
index cd8b03453c44..4f006cc6bba8 100644
--- a/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx
+++ b/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/ucbhelper/workben/ucbexplorer/ucbexplorer.hrc b/ucbhelper/workben/ucbexplorer/ucbexplorer.hrc
index e93730da99ef..919ca605a859 100644
--- a/ucbhelper/workben/ucbexplorer/ucbexplorer.hrc
+++ b/ucbhelper/workben/ucbexplorer/ucbexplorer.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,29 +37,29 @@
#ifndef _UCBEXPLORER_HRC
#define _UCBEXPLORER_HRC
-#define MENU_MAIN 1000
+#define MENU_MAIN 1000
#define MENU_FILE 100
#define MENU_EXIT 10
-#define MENU_POPUP 1001
-#define MENU_NEW 10
-#define MENU_RENAME 11
-#define MENU_DELETE 12
+#define MENU_POPUP 1001
+#define MENU_NEW 10
+#define MENU_RENAME 11
+#define MENU_DELETE 12
-#define TEXT_TITLEBAR 5000
+#define TEXT_TITLEBAR 5000
-#define BMP_FOLDER_CLOSED 6001
-#define BMP_FOLDER_OPENED 6002
-#define BMP_DOCUMENT 6003
-#define BMP_LINK 6004
+#define BMP_FOLDER_CLOSED 6001
+#define BMP_FOLDER_OPENED 6002
+#define BMP_DOCUMENT 6003
+#define BMP_LINK 6004
-#define DLG_STRINGINPUT 7000
-#define FT_STRINGINPUT_DLG_NAME 10
-#define ED_STRINGINPUT_DLG_NAME 11
-#define GB_STRINGINPUT_DLG_NAME 12
-#define BT_STRINGINPUT_DLG_OK 13
-#define BT_STRINGINPUT_DLG_CANCEL 14
-#define BT_STRINGINPUT_DLG_HELP 15
+#define DLG_STRINGINPUT 7000
+#define FT_STRINGINPUT_DLG_NAME 10
+#define ED_STRINGINPUT_DLG_NAME 11
+#define GB_STRINGINPUT_DLG_NAME 12
+#define BT_STRINGINPUT_DLG_OK 13
+#define BT_STRINGINPUT_DLG_CANCEL 14
+#define BT_STRINGINPUT_DLG_HELP 15
#endif /* !_UCBEXPLORER_HRC */
diff --git a/ucbhelper/workben/ucbexplorer/ucbexplorer.src b/ucbhelper/workben/ucbexplorer/ucbexplorer.src
index 4bee5900eaaf..8e7a1193934d 100644
--- a/ucbhelper/workben/ucbexplorer/ucbexplorer.src
+++ b/ucbhelper/workben/ucbexplorer/ucbexplorer.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/pch/precompiled_unotools.cxx b/unotools/inc/pch/precompiled_unotools.cxx
index 4f69205b57fb..5d1af014d3ce 100644
--- a/unotools/inc/pch/precompiled_unotools.cxx
+++ b/unotools/inc/pch/precompiled_unotools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/pch/precompiled_unotools.hxx b/unotools/inc/pch/precompiled_unotools.hxx
index 8a46e8e2ded7..cee9a30c86ad 100644
--- a/unotools/inc/pch/precompiled_unotools.hxx
+++ b/unotools/inc/pch/precompiled_unotools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/accelcfg.hxx b/unotools/inc/unotools/accelcfg.hxx
index 92ad6a0faaf5..5a3a0cd93f09 100644
--- a/unotools/inc/unotools/accelcfg.hxx
+++ b/unotools/inc/unotools/accelcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ public:
// get special accelerators
static SvtAcceleratorConfiguration* CreateFromStream( SvStream& rStream );
- static String GetStreamName();
+ static String GetStreamName();
static SvStream* GetDefaultStream( StreamMode );
virtual ~SvtAcceleratorConfiguration();
diff --git a/unotools/inc/unotools/accessiblerelationsethelper.hxx b/unotools/inc/unotools/accessiblerelationsethelper.hxx
index 7c20ed7a8281..117ddd6e7632 100644
--- a/unotools/inc/unotools/accessiblerelationsethelper.hxx
+++ b/unotools/inc/unotools/accessiblerelationsethelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,12 +52,12 @@ namespace utl
{
//.........................................................................
-/** @descr
+/** @descr
This base class provides an implementation of the
<code>AccessibleRelationSet</code> service.
*/
class UNOTOOLS_DLLPUBLIC AccessibleRelationSetHelper
- : public cppu::WeakImplHelper1<
+ : public cppu::WeakImplHelper1<
::com::sun::star::accessibility::XAccessibleRelationSet
>
{
@@ -66,7 +66,7 @@ public:
AccessibleRelationSetHelper ();
AccessibleRelationSetHelper (const AccessibleRelationSetHelper& rHelper);
protected:
- virtual ~AccessibleRelationSetHelper (void);
+ virtual ~AccessibleRelationSetHelper (void);
public:
//===== XAccessibleRelationSet ==========================================
@@ -133,25 +133,25 @@ public:
//===== XTypeProvider ===================================================
- /** Returns a sequence of all supported interfaces.
+ /** Returns a sequence of all supported interfaces.
*/
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL
getTypes (void)
throw (::com::sun::star::uno::RuntimeException);
- /** Returns a implementation id.
+ /** Returns a implementation id.
*/
virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
getImplementationId (void)
throw (::com::sun::star::uno::RuntimeException);
protected:
- /// Mutex guarding this object.
+ /// Mutex guarding this object.
::osl::Mutex maMutex;
private:
- /// The implementation of this helper interface.
- AccessibleRelationSetHelperImpl* mpHelperImpl;
+ /// The implementation of this helper interface.
+ AccessibleRelationSetHelperImpl* mpHelperImpl;
};
//.........................................................................
diff --git a/unotools/inc/unotools/accessiblestatesethelper.hxx b/unotools/inc/unotools/accessiblestatesethelper.hxx
index 5ef72a89f7eb..8b76f58e2020 100644
--- a/unotools/inc/unotools/accessiblestatesethelper.hxx
+++ b/unotools/inc/unotools/accessiblestatesethelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,12 +51,12 @@ namespace utl
{
//.........................................................................
-/** @descr
+/** @descr
This base class provides an implementation of the
<code>AccessibleStateSet</code> service.
*/
class UNOTOOLS_DLLPUBLIC AccessibleStateSetHelper
- : public cppu::WeakImplHelper1<
+ : public cppu::WeakImplHelper1<
::com::sun::star::accessibility::XAccessibleStateSet
>
{
@@ -77,7 +77,7 @@ public:
AccessibleStateSetHelper ( const AccessibleStateSetHelper& rHelper );
protected:
- virtual ~AccessibleStateSetHelper (void);
+ virtual ~AccessibleStateSetHelper (void);
public:
//===== XAccessibleStateSet ==============================================
@@ -131,12 +131,12 @@ public:
/** Adds a state to the set.
*/
- void AddState(sal_Int16 aState)
+ void AddState(sal_Int16 aState)
throw (::com::sun::star::uno::RuntimeException);
/** Removes a state from the set if the set contains the state, otherwise nothing is done.
*/
- void RemoveState(sal_Int16 aState)
+ void RemoveState(sal_Int16 aState)
throw (::com::sun::star::uno::RuntimeException);
/** Compares the set with the set given by rComparativeValue and puts the results
@@ -155,25 +155,25 @@ public:
//===== XTypeProvider ===================================================
- /** Returns a sequence of all supported interfaces.
+ /** Returns a sequence of all supported interfaces.
*/
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL
getTypes (void)
throw (::com::sun::star::uno::RuntimeException);
- /** Returns a implementation id.
+ /** Returns a implementation id.
*/
virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
getImplementationId (void)
throw (::com::sun::star::uno::RuntimeException);
protected:
- /// Mutex guarding this object.
+ /// Mutex guarding this object.
::osl::Mutex maMutex;
private:
- /// The implementation of this helper interface.
- AccessibleStateSetHelperImpl* mpHelperImpl;
+ /// The implementation of this helper interface.
+ AccessibleStateSetHelperImpl* mpHelperImpl;
};
//.........................................................................
diff --git a/unotools/inc/unotools/atom.hxx b/unotools/inc/unotools/atom.hxx
index ed32efb79626..cfd372722951 100644
--- a/unotools/inc/unotools/atom.hxx
+++ b/unotools/inc/unotools/atom.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/bootstrap.hxx b/unotools/inc/unotools/bootstrap.hxx
index d17e2940890d..9f29485a81f5 100644
--- a/unotools/inc/unotools/bootstrap.hxx
+++ b/unotools/inc/unotools/bootstrap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/cacheoptions.hxx b/unotools/inc/unotools/cacheoptions.hxx
index 698a297fffe7..f54fc189b060 100644
--- a/unotools/inc/unotools/cacheoptions.hxx
+++ b/unotools/inc/unotools/cacheoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#define INCLUDED_unotools_CACHEOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -39,12 +39,12 @@
#include <rtl/ustring.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -52,108 +52,108 @@
class SvtCacheOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about startup features
+ @short collect informations about startup features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtCacheOptions
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtCacheOptions();
~SvtCacheOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/_3D-Engine/..."
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/_3D-Engine/..."
@descr These options describe internal states to enable/disable features of installed office.
GetWriterOLE_Objects()
- SetWriterOLE_Objects() => set the number of Writer OLE objects to be cached
+ SetWriterOLE_Objects() => set the number of Writer OLE objects to be cached
GetDrawingEngineOLE_Objects()
- SetDrawingEngineOLE_Objects() => set the number of DrawingEngine OLE objects to be cached
+ SetDrawingEngineOLE_Objects() => set the number of DrawingEngine OLE objects to be cached
GetGraphicManagerTotalCacheSize()
- SetGraphicManagerTotalCacheSize() => set the maximum cache size used by GraphicManager to cache graphic objects
+ SetGraphicManagerTotalCacheSize() => set the maximum cache size used by GraphicManager to cache graphic objects
GetGraphicManagerObjectCacheSize()
- SetGraphicManagerObjectCacheSize() => set the maximum cache size for one GraphicObject to be cached by GraphicManager
+ SetGraphicManagerObjectCacheSize() => set the maximum cache size for one GraphicObject to be cached by GraphicManager
- @seealso configuration package "org.openoffice.Office.Common/_3D-Engine"
+ @seealso configuration package "org.openoffice.Office.Common/_3D-Engine"
*//*-*****************************************************************************************************/
- sal_Int32 GetWriterOLE_Objects() const;
- sal_Int32 GetDrawingEngineOLE_Objects() const;
- sal_Int32 GetGraphicManagerTotalCacheSize() const;
- sal_Int32 GetGraphicManagerObjectCacheSize() const;
- sal_Int32 GetGraphicManagerObjectReleaseTime() const;
+ sal_Int32 GetWriterOLE_Objects() const;
+ sal_Int32 GetDrawingEngineOLE_Objects() const;
+ sal_Int32 GetGraphicManagerTotalCacheSize() const;
+ sal_Int32 GetGraphicManagerObjectCacheSize() const;
+ sal_Int32 GetGraphicManagerObjectReleaseTime() const;
- void SetWriterOLE_Objects( sal_Int32 nObjects );
- void SetDrawingEngineOLE_Objects( sal_Int32 nObjects );
- void SetGraphicManagerTotalCacheSize( sal_Int32 nTotalCacheSize );
- void SetGraphicManagerObjectCacheSize( sal_Int32 nObjectCacheSize );
+ void SetWriterOLE_Objects( sal_Int32 nObjects );
+ void SetDrawingEngineOLE_Objects( sal_Int32 nObjects );
+ void SetGraphicManagerTotalCacheSize( sal_Int32 nTotalCacheSize );
+ void SetGraphicManagerObjectCacheSize( sal_Int32 nObjectCacheSize );
void SetGraphicManagerObjectReleaseTime( sal_Int32 nReleaseTimeSeconds );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class use his own static mutex to be threadsafe.
+ @short return a reference to a static mutex
+ @descr These class use his own static mutex to be threadsafe.
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -166,8 +166,8 @@ class UNOTOOLS_DLLPUBLIC SvtCacheOptions
Do it in your source only.
*/
- static SvtCacheOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtCacheOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
};
diff --git a/unotools/inc/unotools/calendarwrapper.hxx b/unotools/inc/unotools/calendarwrapper.hxx
index ee240d0a858c..db0c5751b841 100644
--- a/unotools/inc/unotools/calendarwrapper.hxx
+++ b/unotools/inc/unotools/calendarwrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,9 +53,9 @@ namespace com { namespace sun { namespace star {
class UNOTOOLS_DLLPUBLIC CalendarWrapper
{
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xSMgr;
- ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XExtendedCalendar > xC;
+ ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XExtendedCalendar > xC;
- DateTime aEpochStart; // 1Jan1970
+ DateTime aEpochStart; // 1Jan1970
public:
CalendarWrapper(
@@ -115,11 +115,11 @@ public:
{ return aEpochStart; }
/// set a local (!) Gregorian DateTime
- inline void setGregorianDateTime( const DateTime& rDateTime )
+ inline void setGregorianDateTime( const DateTime& rDateTime )
{ setLocalDateTime( rDateTime - aEpochStart ); }
/// get the DateTime as a local (!) Gregorian DateTime
- inline DateTime getGregorianDateTime() const
+ inline DateTime getGregorianDateTime() const
{ return aEpochStart + getLocalDateTime(); }
private:
diff --git a/unotools/inc/unotools/charclass.hxx b/unotools/inc/unotools/charclass.hxx
index 8cd379f678dd..0019a1b3b603 100644
--- a/unotools/inc/unotools/charclass.hxx
+++ b/unotools/inc/unotools/charclass.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#ifndef _UNOTOOLS_CHARCLASS_HXX
#define _UNOTOOLS_CHARCLASS_HXX
-#include <ctype.h> // isdigit(), isalpha()
+#include <ctype.h> // isdigit(), isalpha()
#include <tools/string.hxx>
#include <tools/solar.h>
#include <com/sun/star/i18n/KCharacterType.hpp>
@@ -76,17 +76,17 @@ const sal_Int32 nCharClassNumericTypeMask =
class UNOTOOLS_DLLPUBLIC CharClass
{
- ::com::sun::star::lang::Locale aLocale;
- ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCharacterClassification > xCC;
+ ::com::sun::star::lang::Locale aLocale;
+ ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCharacterClassification > xCC;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xSMgr;
mutable ::osl::Mutex aMutex;
// not implemented, prevent usage
CharClass( const CharClass& );
- CharClass& operator=( const CharClass& );
+ CharClass& operator=( const CharClass& );
// instantiate component somehow
- void getComponentInstance();
+ void getComponentInstance();
public:
/// Preferred ctor with service manager specified
@@ -104,49 +104,49 @@ public:
~CharClass();
/// set a new Locale
- void setLocale( const ::com::sun::star::lang::Locale& rLocale );
+ void setLocale( const ::com::sun::star::lang::Locale& rLocale );
/// get current Locale
const ::com::sun::star::lang::Locale& getLocale() const;
/// isdigit() on ascii values
- static inline sal_Bool isAsciiDigit( sal_Unicode c )
+ static inline sal_Bool isAsciiDigit( sal_Unicode c )
{ return c < 128 ? sal_Bool(isdigit( (unsigned char) c ) != 0) : sal_False; }
/// isalpha() on ascii values
- static inline sal_Bool isAsciiAlpha( sal_Unicode c )
+ static inline sal_Bool isAsciiAlpha( sal_Unicode c )
{ return c < 128 ? sal_Bool(isalpha( (unsigned char) c ) != 0) : sal_False; }
/// isalnum() on ascii values
- static inline sal_Bool isAsciiAlphaNumeric( sal_Unicode c )
+ static inline sal_Bool isAsciiAlphaNumeric( sal_Unicode c )
{ return c < 128 ? sal_Bool(isalnum( (unsigned char) c ) != 0) : sal_False; }
/// isdigit() on ascii values of entire string
- static sal_Bool isAsciiNumeric( const String& rStr );
+ static sal_Bool isAsciiNumeric( const String& rStr );
/// isalpha() on ascii values of entire string
- static sal_Bool isAsciiAlpha( const String& rStr );
+ static sal_Bool isAsciiAlpha( const String& rStr );
/// isalnum() on ascii values of entire string
- static sal_Bool isAsciiAlphaNumeric( const String& rStr );
+ static sal_Bool isAsciiAlphaNumeric( const String& rStr );
/// whether type is pure alpha or not, e.g. return of getStringType
- static inline sal_Bool isAlphaType( sal_Int32 nType )
+ static inline sal_Bool isAlphaType( sal_Int32 nType )
{
return ((nType & nCharClassAlphaType) != 0) &&
((nType & ~(nCharClassAlphaTypeMask)) == 0);
}
/// whether type is pure numeric or not, e.g. return of getStringType
- static inline sal_Bool isNumericType( sal_Int32 nType )
+ static inline sal_Bool isNumericType( sal_Int32 nType )
{
return ((nType & nCharClassNumericType) != 0) &&
((nType & ~(nCharClassNumericTypeMask)) == 0);
}
/// whether type is pure alphanumeric or not, e.g. return of getStringType
- static inline sal_Bool isAlphaNumericType( sal_Int32 nType )
+ static inline sal_Bool isAlphaNumericType( sal_Int32 nType )
{
return ((nType & (nCharClassAlphaType |
nCharClassNumericType)) != 0) &&
@@ -155,14 +155,14 @@ public:
}
/// whether type is pure letter or not, e.g. return of getStringType
- static inline sal_Bool isLetterType( sal_Int32 nType )
+ static inline sal_Bool isLetterType( sal_Int32 nType )
{
return ((nType & nCharClassLetterType) != 0) &&
((nType & ~(nCharClassLetterTypeMask)) == 0);
}
/// whether type is pure letternumeric or not, e.g. return of getStringType
- static inline sal_Bool isLetterNumericType( sal_Int32 nType )
+ static inline sal_Bool isLetterNumericType( sal_Int32 nType )
{
return ((nType & (nCharClassLetterType |
nCharClassNumericType)) != 0) &&
@@ -173,20 +173,20 @@ public:
// Wrapper implementations of class CharacterClassification
- String toUpper( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const;
- String toLower( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const;
- String toTitle( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const;
+ String toUpper( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const;
+ String toLower( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const;
+ String toTitle( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const;
- ::rtl::OUString toUpper_rtl( const ::rtl::OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
- ::rtl::OUString toLower_rtl( const ::rtl::OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
+ ::rtl::OUString toUpper_rtl( const ::rtl::OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
+ ::rtl::OUString toLower_rtl( const ::rtl::OUString& rStr, sal_Int32 nPos, sal_Int32 nCount ) const;
// use the postfix because compilers could get confused by the both similar versions
// (me thinks they shouldn't, but in fact MSCV 6 does)
- sal_Int16 getType( const String& rStr, xub_StrLen nPos ) const;
- sal_Int16 getCharacterDirection( const String& rStr, xub_StrLen nPos ) const;
- sal_Int16 getScript( const String& rStr, xub_StrLen nPos ) const;
- sal_Int32 getCharacterType( const String& rStr, xub_StrLen nPos ) const;
- sal_Int32 getStringType( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const;
+ sal_Int16 getType( const String& rStr, xub_StrLen nPos ) const;
+ sal_Int16 getCharacterDirection( const String& rStr, xub_StrLen nPos ) const;
+ sal_Int16 getScript( const String& rStr, xub_StrLen nPos ) const;
+ sal_Int32 getCharacterType( const String& rStr, xub_StrLen nPos ) const;
+ sal_Int32 getStringType( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const;
::com::sun::star::i18n::ParseResult parseAnyToken(
const String& rStr,
@@ -208,28 +208,28 @@ public:
// Functionality of class International methods
- sal_Bool isAlpha( const String& rStr, xub_StrLen nPos ) const;
- sal_Bool isLetter( const String& rStr, xub_StrLen nPos ) const;
- sal_Bool isDigit( const String& rStr, xub_StrLen nPos ) const;
- sal_Bool isAlphaNumeric( const String& rStr, xub_StrLen nPos ) const;
- sal_Bool isLetterNumeric( const String& rStr, xub_StrLen nPos ) const;
- sal_Bool isAlpha( const String& rStr ) const;
- sal_Bool isLetter( const String& rStr ) const;
- sal_Bool isNumeric( const String& rStr ) const;
- sal_Bool isAlphaNumeric( const String& rStr ) const;
- sal_Bool isLetterNumeric( const String& rStr ) const;
-
- void toUpper( String& rStr ) const
+ sal_Bool isAlpha( const String& rStr, xub_StrLen nPos ) const;
+ sal_Bool isLetter( const String& rStr, xub_StrLen nPos ) const;
+ sal_Bool isDigit( const String& rStr, xub_StrLen nPos ) const;
+ sal_Bool isAlphaNumeric( const String& rStr, xub_StrLen nPos ) const;
+ sal_Bool isLetterNumeric( const String& rStr, xub_StrLen nPos ) const;
+ sal_Bool isAlpha( const String& rStr ) const;
+ sal_Bool isLetter( const String& rStr ) const;
+ sal_Bool isNumeric( const String& rStr ) const;
+ sal_Bool isAlphaNumeric( const String& rStr ) const;
+ sal_Bool isLetterNumeric( const String& rStr ) const;
+
+ void toUpper( String& rStr ) const
{ rStr = toUpper( rStr, 0, rStr.Len() ); }
- void toLower( String& rStr ) const
+ void toLower( String& rStr ) const
{ rStr = toLower( rStr, 0, rStr.Len() ); }
- inline String upper( const String& rStr ) const
+ inline String upper( const String& rStr ) const
{ return toUpper( rStr, 0, rStr.Len() ); }
- inline String lower( const String& rStr ) const
+ inline String lower( const String& rStr ) const
{ return toLower( rStr, 0, rStr.Len() ); }
- const ::rtl::OUString& toUpper_rtl( ::rtl::OUString& _rStr ) const { return _rStr = toUpper_rtl( _rStr, 0, _rStr.getLength() ); }
- const ::rtl::OUString& toLower_rtl( ::rtl::OUString& _rStr ) const { return _rStr = toLower_rtl( _rStr, 0, _rStr.getLength() ); }
+ const ::rtl::OUString& toUpper_rtl( ::rtl::OUString& _rStr ) const { return _rStr = toUpper_rtl( _rStr, 0, _rStr.getLength() ); }
+ const ::rtl::OUString& toLower_rtl( ::rtl::OUString& _rStr ) const { return _rStr = toLower_rtl( _rStr, 0, _rStr.getLength() ); }
};
diff --git a/unotools/inc/unotools/cmdoptions.hxx b/unotools/inc/unotools/cmdoptions.hxx
index 719d99db4461..075c8884f94f 100644
--- a/unotools/inc/unotools/cmdoptions.hxx
+++ b/unotools/inc/unotools/cmdoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_CMDOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -41,22 +41,22 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// types, enums, ...
+// types, enums, ...
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @descr The method GetList() returns a list of property values.
+ @descr The method GetList() returns a list of property values.
Use follow defines to seperate values by names.
*//*-*************************************************************************************************************/
#define CMDOPTIONS_PROPERTYNAME_URL ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "CommandURL" ))
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -64,17 +64,17 @@
class SvtCommandOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
@short collect informations about dynamic menus
@descr Make it possible to configure dynamic menu structures of menus like "new" or "wizard".
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
@@ -82,7 +82,7 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
friend class SvtCommandOptions_Impl;
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
@@ -94,43 +94,43 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
};
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtCommandOptions();
virtual ~SvtCommandOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short clear complete sepcified list
+ @short clear complete sepcified list
@descr Call this methods to clear the whole list.
To fill it again use AppendItem().
- @seealso -
+ @seealso -
@param "eMenu" select right menu to clear.
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void Clear( CmdOption eOption );
@@ -140,7 +140,7 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
@descr Call it to get all entries of an dynamic menu.
We return a list of all nodes with his names and properties.
- @seealso -
+ @seealso -
@param "eOption" select the list to retrieve.
@return A list of command strings is returned.
@@ -151,16 +151,16 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
sal_Bool HasEntries( CmdOption eOption ) const;
/*-****************************************************************************************************//**
- @short Lookup if a command URL is inside a given list
+ @short Lookup if a command URL is inside a given list
@descr Lookup if a command URL is inside a given lst
- @seealso -
+ @seealso -
@param "eOption" select right command list
- @param "aCommandURL" a command URL that is used for the look up
- @return "sal_True" if the command is inside the list otherwise "sal_False"
+ @param "aCommandURL" a command URL that is used for the look up
+ @return "sal_True" if the command is inside the list otherwise "sal_False"
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
sal_Bool Lookup( CmdOption eOption, const ::rtl::OUString& aCommandURL ) const;
@@ -170,7 +170,7 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
@descr Call it to get all entries of an dynamic menu.
We return a list of all nodes with his names and properties.
- @seealso -
+ @seealso -
@param "eOption" select the list to retrieve.
@return A list of command strings is returned.
@@ -184,13 +184,13 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
@short adds a new command to specified options list
@descr You can add a command to specified options list!
- @seealso method Clear()
+ @seealso method Clear()
- @param "eOption" specifies the command list
+ @param "eOption" specifies the command list
@param "sURL" URL for dispatch
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void AddCommand( CmdOption eOption, const ::rtl::OUString& sURL );
@@ -213,29 +213,29 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
void EstablisFrameCallback(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame);
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -248,8 +248,8 @@ class UNOTOOLS_DLLPUBLIC SvtCommandOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtCommandOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtCommandOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
}; // class SvtCmdOptions
diff --git a/unotools/inc/unotools/collatorwrapper.hxx b/unotools/inc/unotools/collatorwrapper.hxx
index 3b90c8465cf1..e438faeef206 100644
--- a/unotools/inc/unotools/collatorwrapper.hxx
+++ b/unotools/inc/unotools/collatorwrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/compatibility.hxx b/unotools/inc/unotools/compatibility.hxx
index 42e207f08056..4f08699f25b3 100644
--- a/unotools/inc/unotools/compatibility.hxx
+++ b/unotools/inc/unotools/compatibility.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_COMPATIBILITY_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -40,7 +40,7 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// types, enums, ...
+// types, enums, ...
//_________________________________________________________________________________________________________________
enum CompatibilityOptions
@@ -59,7 +59,7 @@ enum CompatibilityOptions
};
/*-************************************************************************************************************//**
- @descr The method GetList() returns a list of property values.
+ @descr The method GetList() returns a list of property values.
Use follow defines to seperate values by names.
*//*-*************************************************************************************************************/
#define COMPATIBILITY_PROPERTYNAME_NAME OUString( RTL_CONSTASCII_USTRINGPARAM( "Name" ) )
@@ -79,12 +79,12 @@ enum CompatibilityOptions
#define COMPATIBILITY_DEFAULT_NAME OUString( RTL_CONSTASCII_USTRINGPARAM( "_default" ) )
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -92,64 +92,64 @@ enum CompatibilityOptions
class SvtCompatibilityOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
@short collect informations about dynamic menus
@descr Make it possible to configure dynamic menu structures of menus like "new" or "wizard".
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtCompatibilityOptions();
virtual ~SvtCompatibilityOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short clear complete specified list
+ @short clear complete specified list
@descr Call this methods to clear the whole list.
- @seealso -
+ @seealso -
@param -
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void Clear();
@@ -161,7 +161,7 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options
@descr Call it to get all entries of compatibility options.
We return a list of all nodes with its names and properties.
- @seealso -
+ @seealso -
@param -
@return A list of compatibility options is returned.
@@ -175,14 +175,14 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options
@short append a new item
@descr
- @seealso method Clear()
+ @seealso method Clear()
@param "sName" Name
@param "sModule" Module
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void AppendItem( const ::rtl::OUString& sName,
@@ -199,42 +199,42 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options
bool bConsiderWrappingStyle,
bool bExpandWordSpace );
- bool IsUsePrtDevice() const;
- bool IsAddSpacing() const;
- bool IsAddSpacingAtPages() const;
- bool IsUseOurTabStops() const;
- bool IsNoExtLeading() const;
- bool IsUseLineSpacing() const;
- bool IsAddTableSpacing() const;
- bool IsUseObjectPositioning() const;
- bool IsUseOurTextWrapping() const;
+ bool IsUsePrtDevice() const;
+ bool IsAddSpacing() const;
+ bool IsAddSpacingAtPages() const;
+ bool IsUseOurTabStops() const;
+ bool IsNoExtLeading() const;
+ bool IsUseLineSpacing() const;
+ bool IsAddTableSpacing() const;
+ bool IsUseObjectPositioning() const;
+ bool IsUseOurTextWrapping() const;
bool IsConsiderWrappingStyle() const;
bool IsExpandWordSpace() const;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -247,8 +247,8 @@ class UNOTOOLS_DLLPUBLIC SvtCompatibilityOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtCompatibilityOptions_Impl* m_pDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtCompatibilityOptions_Impl* m_pDataContainer; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
}; // class SvtCompatibilityOptions
diff --git a/unotools/inc/unotools/componentresmodule.hxx b/unotools/inc/unotools/componentresmodule.hxx
index 3f0924c5586a..56d5abe2a3a9 100644
--- a/unotools/inc/unotools/componentresmodule.hxx
+++ b/unotools/inc/unotools/componentresmodule.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/configitem.hxx b/unotools/inc/unotools/configitem.hxx
index ff85b878e5b5..854570e8cf50 100644
--- a/unotools/inc/unotools/configitem.hxx
+++ b/unotools/inc/unotools/configitem.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -199,7 +199,7 @@ namespace utl
sal_Bool IsModified() const;
/** writes the changed values into the sub tree. Always called in the Dtor of the derived class. */
- virtual void Commit()=0;
+ virtual void Commit()=0;
sal_Bool IsInValueChange() const;
@@ -207,7 +207,7 @@ namespace utl
/** checks if the configuration manager used by this item is valid.
*/
- sal_Bool IsValidConfigMgr() const;
+ sal_Bool IsValidConfigMgr() const;
};
}//namespace utl
#endif //_UTL_CONFIGITEM_HXX_
diff --git a/unotools/inc/unotools/configmgr.hxx b/unotools/inc/unotools/configmgr.hxx
index 61bcac6b8737..1692e5b8bb23 100644
--- a/unotools/inc/unotools/configmgr.hxx
+++ b/unotools/inc/unotools/configmgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/confignode.hxx b/unotools/inc/unotools/confignode.hxx
index baa812d28d56..6f48858b6824 100644
--- a/unotools/inc/unotools/confignode.hxx
+++ b/unotools/inc/unotools/confignode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,16 +58,16 @@ namespace utl
{
private:
::com::sun::star::uno::Reference< ::com::sun::star::container::XHierarchicalNameAccess >
- m_xHierarchyAccess; /// accessing children grandchildren (mandatory interface of our UNO object)
+ m_xHierarchyAccess; /// accessing children grandchildren (mandatory interface of our UNO object)
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >
- m_xDirectAccess; /// accessing children (mandatory interface of our UNO object)
+ m_xDirectAccess; /// accessing children (mandatory interface of our UNO object)
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace >
- m_xReplaceAccess; /// replacing child values
+ m_xReplaceAccess; /// replacing child values
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >
- m_xContainerAccess; /// modifying set nodes (optional interface of our UNO object)
+ m_xContainerAccess; /// modifying set nodes (optional interface of our UNO object)
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
m_xDummy;
- sal_Bool m_bEscapeNames; /// escape names before accessing children ?
+ sal_Bool m_bEscapeNames; /// escape names before accessing children ?
::rtl::OUString
m_sCompletePath;
@@ -102,11 +102,11 @@ namespace utl
::rtl::OUString getNodePath() const;
/** open a sub node
- @param _rPath access path of the to-be-opened sub node. May be a hierarchical path.
+ @param _rPath access path of the to-be-opened sub node. May be a hierarchical path.
*/
- OConfigurationNode openNode(const ::rtl::OUString& _rPath) const throw();
+ OConfigurationNode openNode(const ::rtl::OUString& _rPath) const throw();
- OConfigurationNode openNode( const sal_Char* _pAsciiPath ) const
+ OConfigurationNode openNode( const sal_Char* _pAsciiPath ) const
{
return openNode( ::rtl::OUString::createFromAscii( _pAsciiPath ) );
}
@@ -117,11 +117,11 @@ namespace utl
method will fail.<br/>
Unless the respective operations on the pure configuration API, the to-be-created node immediately
becomes a part of it's hierarchy, no explicit insertion is necessary.
- @param _rName name for the new child. Must be level-1-depth.
+ @param _rName name for the new child. Must be level-1-depth.
*/
- OConfigurationNode createNode(const ::rtl::OUString& _rName) const throw();
+ OConfigurationNode createNode(const ::rtl::OUString& _rName) const throw();
- OConfigurationNode createNode( const sal_Char* _pAsciiName ) const
+ OConfigurationNode createNode( const sal_Char* _pAsciiName ) const
{
return createNode( ::rtl::OUString::createFromAscii( _pAsciiName ) );
}
@@ -132,8 +132,8 @@ namespace utl
method will fail.<br/>
Unless the respective operations on the pure configuration API, the to-be-created node immediately
becomes a part of it's hierarchy, no explicit insertion is necessary.
- @param _rName name for the new child. Must be level-1-depth.
- @param _aNewNode the node which should be appended
+ @param _rName name for the new child. Must be level-1-depth.
+ @param _aNewNode the node which should be appended
*/
OConfigurationNode appendNode(const ::rtl::OUString& _rName,const OConfigurationNode& _aNewNode) const throw();
@@ -147,9 +147,9 @@ namespace utl
If the object represents a set node, this method may be used to delete an existent child. For non-set-nodes,
the method will fail.
*/
- sal_Bool removeNode(const ::rtl::OUString& _rName) const throw();
+ sal_Bool removeNode(const ::rtl::OUString& _rName) const throw();
- sal_Bool removeNode( const sal_Char* _pAsciiName ) const
+ sal_Bool removeNode( const sal_Char* _pAsciiName ) const
{
return removeNode( ::rtl::OUString::createFromAscii( _pAsciiName ) );
}
@@ -174,11 +174,11 @@ namespace utl
The value given is written into the node specified by the given relative path.<br/>
In opposite to <method>getNodeValue</method>, _rName must refer to a leaf in the configuration tree, not an inner
node.
- @return sal_True if and only if the write was successfull.
+ @return sal_True if and only if the write was successfull.
*/
- sal_Bool setNodeValue(const ::rtl::OUString& _rPath, const ::com::sun::star::uno::Any& _rValue) const throw();
+ sal_Bool setNodeValue(const ::rtl::OUString& _rPath, const ::com::sun::star::uno::Any& _rValue) const throw();
- sal_Bool setNodeValue( const sal_Char* _pAsciiPath, const ::com::sun::star::uno::Any& _rValue ) const
+ sal_Bool setNodeValue( const sal_Char* _pAsciiPath, const ::com::sun::star::uno::Any& _rValue ) const
{
return setNodeValue( ::rtl::OUString::createFromAscii( _pAsciiPath ), _rValue );
}
@@ -193,11 +193,11 @@ namespace utl
escaping for such names may not be supported by the underlying API objects.
@see getEscape
*/
- void setEscape(sal_Bool _bEnable = sal_True);
+ void setEscape(sal_Bool _bEnable = sal_True);
/** get the flag specifying the current escape behaviour
@see setEscape
*/
- sal_Bool getEscape() const { return m_bEscapeNames; }
+ sal_Bool getEscape() const { return m_bEscapeNames; }
/// invalidate the object
virtual void clear() throw();
@@ -229,8 +229,8 @@ namespace utl
protected:
enum NAMEORIGIN
{
- NO_CONFIGURATION, /// the name came from a configuration node
- NO_CALLER /// the name came from a client of this class
+ NO_CONFIGURATION, /// the name came from a configuration node
+ NO_CALLER /// the name came from a client of this class
};
::rtl::OUString normalizeName(const ::rtl::OUString& _rName, NAMEORIGIN _eOrigin) const;
};
@@ -304,12 +304,12 @@ namespace utl
In opposite to <method>createWithServiceFactory</method>, createWithProvider expects a configuration provider
to work with.
- @param _rxConfProvider configuration provider to use when retrieving the node.
- @param _rPath path to the node the object should represent
- @param _nDepth depth for node retrieval
- @param _eMode specifies which privileges should be applied when retrieving the node
+ @param _rxConfProvider configuration provider to use when retrieving the node.
+ @param _rPath path to the node the object should represent
+ @param _nDepth depth for node retrieval
+ @param _eMode specifies which privileges should be applied when retrieving the node
- @see createWithServiceFactory
+ @see createWithServiceFactory
*/
static OConfigurationTreeRoot createWithProvider(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxConfProvider,
@@ -325,11 +325,11 @@ namespace utl
or such).<br/>
In opposite to <method>createWithProvider</method>, createWithProvider expects a service factory. This factory
is used to create a configuration provider, and this provider is used to retrieve the node
- @see createWithProvider
- @param _rxORB service factory to use to create the configuration provider.
- @param _rPath path to the node the object should represent
- @param _nDepth depth for node retrieval
- @param _eMode specifies which privileges should be applied when retrieving the node
+ @see createWithProvider
+ @param _rxORB service factory to use to create the configuration provider.
+ @param _rPath path to the node the object should represent
+ @param _nDepth depth for node retrieval
+ @param _eMode specifies which privileges should be applied when retrieving the node
*/
static OConfigurationTreeRoot createWithServiceFactory(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB,
const ::rtl::OUString& _rPath, sal_Int32 _nDepth = -1, CREATION_MODE _eMode = CM_UPDATABLE, sal_Bool _bLazyWrite = sal_True);
@@ -346,7 +346,7 @@ namespace utl
/** commit all changes made on the subtree the object is the root for<p/>
All changes made on any <type>OConfigurationNode</type> object retrieved (maybe indirect) from this root
object are committed when calling this method.
- @return sal_True if and only if the commit was successfull
+ @return sal_True if and only if the commit was successfull
*/
sal_Bool commit() const throw();
@@ -355,7 +355,7 @@ namespace utl
};
//........................................................................
-} // namespace utl
+} // namespace utl
//........................................................................
#endif // _UNOTOOLS_CONFIGNODE_HXX_
diff --git a/unotools/inc/unotools/configpathes.hxx b/unotools/inc/unotools/configpathes.hxx
index 30a0845e3541..f570e70c372f 100644
--- a/unotools/inc/unotools/configpathes.hxx
+++ b/unotools/inc/unotools/configpathes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,24 +40,24 @@ namespace rtl
namespace utl
{
//----------------------------------------------------------------------------
- /** extract the local nodename and the parent nodepath
+ /** extract the local nodename and the parent nodepath
from a configuration path.
@param _sInPath
A configuration path that is not an empty or root path.<BR/>
- If this is not a valid configuration path, it is interpreted as
+ If this is not a valid configuration path, it is interpreted as
local name of a node.
@param _rsOutPath
- On exit: The configuration path obtained by dropping
+ On exit: The configuration path obtained by dropping
the last level off <var>_sInPath</var>.<BR/>
- If <var>_sInPath</var> could not be parsed as a valid
+ If <var>_sInPath</var> could not be parsed as a valid
configuration path, this is set to an empty string.
@param _rsLocalName
On exit: The plain (non-escaped) name of the node identified by
<var>_sInPath</var>. <BR/>
- If <var>_sInPath</var> could not be parsed as a valid
+ If <var>_sInPath</var> could not be parsed as a valid
configuration path, this is set to <var>_sInPath</var>.
@returns
@@ -65,7 +65,7 @@ namespace utl
<FALSE/>, if the path was a one-level path or an invalid path
*/
- UNOTOOLS_DLLPUBLIC sal_Bool splitLastFromConfigurationPath(::rtl::OUString const& _sInPath,
+ UNOTOOLS_DLLPUBLIC sal_Bool splitLastFromConfigurationPath(::rtl::OUString const& _sInPath,
::rtl::OUString& _rsOutPath,
::rtl::OUString& _rsLocalName);
@@ -74,7 +74,7 @@ namespace utl
@param _sInPath
A relative configuration path that is not empty.<BR/>
- If this is not a valid configuration path, it is interpreted as
+ If this is not a valid configuration path, it is interpreted as
a single name of a node.
@param _sOutPath
@@ -111,7 +111,7 @@ namespace utl
If both pathes are equal <TRUE/> is returned.
*/
- sal_Bool isPrefixOfConfigurationPath(::rtl::OUString const& _sNestedPath,
+ sal_Bool isPrefixOfConfigurationPath(::rtl::OUString const& _sNestedPath,
::rtl::OUString const& _sPrefixPath);
//----------------------------------------------------------------------------
@@ -136,38 +136,38 @@ namespace utl
<var>_sNestedPath</var> is returned unaltered.
*/
- UNOTOOLS_DLLPUBLIC ::rtl::OUString dropPrefixFromConfigurationPath(::rtl::OUString const& _sNestedPath,
+ UNOTOOLS_DLLPUBLIC ::rtl::OUString dropPrefixFromConfigurationPath(::rtl::OUString const& _sNestedPath,
::rtl::OUString const& _sPrefixPath);
//----------------------------------------------------------------------------
- /** Create a one-level relative configuration path from a set element name
+ /** Create a one-level relative configuration path from a set element name
without a known set element type.
@param _sElementName
- An arbitrary string that is to be interpreted as
+ An arbitrary string that is to be interpreted as
name of a configuration set element.
@returns
- A one-level relative path to the element, of the form
+ A one-level relative path to the element, of the form
"*['<Name>']", where <Name> is properly escaped.
*/
UNOTOOLS_DLLPUBLIC ::rtl::OUString wrapConfigurationElementName(::rtl::OUString const& _sElementName);
//----------------------------------------------------------------------------
- /** Create a one-level relative configuration path from a set element name
+ /** Create a one-level relative configuration path from a set element name
and a known set element type.
@param _sElementName
- An arbitrary string that is to be interpreted as
+ An arbitrary string that is to be interpreted as
name of a configuration set element.
@param _sTypeName
- An string identifying the type of the element. Usually this is be
+ An string identifying the type of the element. Usually this is be
the name of the element-template of the set.<BR/>
@returns
- A one-level relative path to the element, of the form
+ A one-level relative path to the element, of the form
"<Type>['<Name>']", where <Name> is properly escaped.
*/
@@ -175,7 +175,7 @@ namespace utl
::rtl::OUString const& _sTypeName);
//----------------------------------------------------------------------------
-} // namespace utl
+} // namespace utl
//----------------------------------------------------------------------------
#endif // UNOTOOLS_CONFIGPATHES_HXX_INCLUDED
diff --git a/unotools/inc/unotools/configvaluecontainer.hxx b/unotools/inc/unotools/configvaluecontainer.hxx
index fc7f1d732f63..be5728c67a26 100644
--- a/unotools/inc/unotools/configvaluecontainer.hxx
+++ b/unotools/inc/unotools/configvaluecontainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,11 +37,11 @@ namespace utl
{
//.........................................................................
-#define CVC_READONLY_ACCESS 0x0000
-#define CVC_UPDATE_ACCESS 0x0001
+#define CVC_READONLY_ACCESS 0x0000
+#define CVC_UPDATE_ACCESS 0x0001
-#define CVC_LAZY_UPDATE 0x0000
-#define CVC_IMMEDIATE_UPDATE 0x0002
+#define CVC_LAZY_UPDATE 0x0000
+#define CVC_IMMEDIATE_UPDATE 0x0002
struct OConfigurationValueContainerImpl;
struct NodeValueAccessor;
@@ -149,7 +149,7 @@ namespace utl
@param _rValueType
is the type of your accessort. This type must be supported by the configuration.
*/
- void registerExchangeLocation(
+ void registerExchangeLocation(
const sal_Char* _pRelativePathAscii,
void* _pContainer,
const ::com::sun::star::uno::Type& _rValueType
@@ -165,7 +165,7 @@ namespace utl
@param _pContainer
points to the Any you want to hold the value
*/
- void registerNullValueExchangeLocation(
+ void registerNullValueExchangeLocation(
const sal_Char* _pRelativePathAscii,
::com::sun::star::uno::Any* _pContainer
);
@@ -181,7 +181,7 @@ namespace utl
@see write
*/
- void read( );
+ void read( );
/** updates the configuration data
@@ -200,7 +200,7 @@ namespace utl
@see read
@see commit
*/
- void write( sal_Bool _bCommit = sal_True );
+ void write( sal_Bool _bCommit = sal_True );
/** commits any changes done
@@ -215,7 +215,7 @@ namespace utl
If <FALSE/>, only the current values in the config nodes (as present since the last call to
<method>write</method>) are committed.
*/
- void commit( sal_Bool _bWrite = sal_True );
+ void commit( sal_Bool _bWrite = sal_True );
private:
/// implements the ctors
@@ -226,11 +226,11 @@ namespace utl
);
/// registers a value container
- void implRegisterExchangeLocation( const NodeValueAccessor& _rAccessor );
+ void implRegisterExchangeLocation( const NodeValueAccessor& _rAccessor );
};
//.........................................................................
-} // namespace utl
+} // namespace utl
//.........................................................................
#endif // UNOTOOLS_CONFIGVALUECONTAINER_HXX
diff --git a/unotools/inc/unotools/datetime.hxx b/unotools/inc/unotools/datetime.hxx
index 282d6df3a63f..59cd2de36bd6 100644
--- a/unotools/inc/unotools/datetime.hxx
+++ b/unotools/inc/unotools/datetime.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace utl
UNOTOOLS_DLLPUBLIC void typeConvert(const starutil::DateTime& _rDateTime, DateTime& _rOut);
//.........................................................................
-} // namespace utl
+} // namespace utl
//.........................................................................
#endif // _UNOTOOLS_DATETIME_HXX_
diff --git a/unotools/inc/unotools/defaultoptions.hxx b/unotools/inc/unotools/defaultoptions.hxx
index 1e7d04125aa4..b062cfd565d6 100644
--- a/unotools/inc/unotools/defaultoptions.hxx
+++ b/unotools/inc/unotools/defaultoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,14 +41,14 @@ class SvtDefaultOptions_Impl;
class UNOTOOLS_DLLPUBLIC SvtDefaultOptions: public utl::detail::Options
{
private:
- SvtDefaultOptions_Impl* pImp;
+ SvtDefaultOptions_Impl* pImp;
public:
SvtDefaultOptions();
virtual ~SvtDefaultOptions();
- String GetDefaultPath( USHORT nId ) const;
+ String GetDefaultPath( USHORT nId ) const;
};
#endif // #ifndef INCLUDED_unotools_DEFAULTOPTIONS_HXX
diff --git a/unotools/inc/unotools/desktopterminationobserver.hxx b/unotools/inc/unotools/desktopterminationobserver.hxx
index 701097b08f7a..8eb6c5274603 100644
--- a/unotools/inc/unotools/desktopterminationobserver.hxx
+++ b/unotools/inc/unotools/desktopterminationobserver.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/digitgroupingiterator.hxx b/unotools/inc/unotools/digitgroupingiterator.hxx
index acf1dcc945f0..96d8c2578110 100644
--- a/unotools/inc/unotools/digitgroupingiterator.hxx
+++ b/unotools/inc/unotools/digitgroupingiterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ namespace utl {
The iterator advances over the digit groupings, returning the number of
digits per group. If the last group was encountered the iterator will
always return the last grouping.
-
+
Grouping values are sanitized to be 0 <= value <= SAL_MAX_UINT16, even if
originally Int32, to be able to easily cast it down to String's xub_StrLen.
This shouldn't make any difference in practice.
diff --git a/unotools/inc/unotools/docinfohelper.hxx b/unotools/inc/unotools/docinfohelper.hxx
index ed3ff52f2ca0..2b4d5a9dfae3 100644
--- a/unotools/inc/unotools/docinfohelper.hxx
+++ b/unotools/inc/unotools/docinfohelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ public:
};
-} // namespace utl
+} // namespace utl
#endif // _UNOTOOLS_DOCINFOHELPER_HXX_
diff --git a/unotools/inc/unotools/dynamicmenuoptions.hxx b/unotools/inc/unotools/dynamicmenuoptions.hxx
index e47bd0b6d723..d6e42ed19505 100644
--- a/unotools/inc/unotools/dynamicmenuoptions.hxx
+++ b/unotools/inc/unotools/dynamicmenuoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_DYNAMICMENUOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -40,11 +40,11 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// types, enums, ...
+// types, enums, ...
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @descr The method GetList() returns a list of property values.
+ @descr The method GetList() returns a list of property values.
Use follow defines to seperate values by names.
*//*-*************************************************************************************************************/
#define DYNAMICMENU_PROPERTYNAME_URL ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL" ))
@@ -62,12 +62,12 @@ enum EDynamicMenuType
E_HELPBOOKMARKS = 2
};
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -75,65 +75,65 @@ enum EDynamicMenuType
class SvtDynamicMenuOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
@short collect informations about dynamic menus
@descr Make it possible to configure dynamic menu structures of menus like "new" or "wizard".
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtDynamicMenuOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtDynamicMenuOptions();
virtual ~SvtDynamicMenuOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short clear complete sepcified list
+ @short clear complete sepcified list
@descr Call this methods to clear the whole list.
To fill it again use AppendItem().
- @seealso -
+ @seealso -
@param "eMenu" select right menu to clear.
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void Clear( EDynamicMenuType eMenu );
@@ -143,7 +143,7 @@ class UNOTOOLS_DLLPUBLIC SvtDynamicMenuOptions: public utl::detail::Options
@descr Call it to get all entries of an dynamic menu.
We return a list of all nodes with his names and properties.
- @seealso -
+ @seealso -
@param "eMenu" select right menu.
@return A list of menu items is returned.
@@ -158,16 +158,16 @@ class UNOTOOLS_DLLPUBLIC SvtDynamicMenuOptions: public utl::detail::Options
@descr You can append items to a menu only - removing isn't allowed for a special item!
We support a nothing or all mechanism only! Clear all or append something ...
- @seealso method Clear()
+ @seealso method Clear()
@param "eMenu" select right menu.
@param "sURL" URL for dispatch
@param "sTitle" label of menu entry
@param "sImageIdentifier" icon identifier
@param "sTargetName" target for dispatch
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void AppendItem( EDynamicMenuType eMenu ,
@@ -177,29 +177,29 @@ class UNOTOOLS_DLLPUBLIC SvtDynamicMenuOptions: public utl::detail::Options
const ::rtl::OUString& sTargetName );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
diff --git a/unotools/inc/unotools/eventcfg.hxx b/unotools/inc/unotools/eventcfg.hxx
index ec49bbc3090a..30f501467c3c 100644
--- a/unotools/inc/unotools/eventcfg.hxx
+++ b/unotools/inc/unotools/eventcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,30 +38,30 @@
#include <hash_map>
#include <vector>
-#define STR_EVENT_STARTAPP 0
-#define STR_EVENT_CLOSEAPP 1
-#define STR_EVENT_DOCCREATED 2
-#define STR_EVENT_CREATEDOC 3
+#define STR_EVENT_STARTAPP 0
+#define STR_EVENT_CLOSEAPP 1
+#define STR_EVENT_DOCCREATED 2
+#define STR_EVENT_CREATEDOC 3
#define STR_EVENT_LOADFINISHED 4
-#define STR_EVENT_OPENDOC 5
-#define STR_EVENT_PREPARECLOSEDOC 6
-#define STR_EVENT_CLOSEDOC 7
-#define STR_EVENT_SAVEDOC 8
-#define STR_EVENT_SAVEDOCDONE 9
+#define STR_EVENT_OPENDOC 5
+#define STR_EVENT_PREPARECLOSEDOC 6
+#define STR_EVENT_CLOSEDOC 7
+#define STR_EVENT_SAVEDOC 8
+#define STR_EVENT_SAVEDOCDONE 9
#define STR_EVENT_SAVEDOCFAILED 10
-#define STR_EVENT_SAVEASDOC 11
-#define STR_EVENT_SAVEASDOCDONE 12
+#define STR_EVENT_SAVEASDOC 11
+#define STR_EVENT_SAVEASDOCDONE 12
#define STR_EVENT_SAVEASDOCFAILED 13
#define STR_EVENT_SAVETODOC 14
#define STR_EVENT_SAVETODOCDONE 15
#define STR_EVENT_SAVETODOCFAILED 16
-#define STR_EVENT_ACTIVATEDOC 17
-#define STR_EVENT_DEACTIVATEDOC 18
-#define STR_EVENT_PRINTDOC 19
+#define STR_EVENT_ACTIVATEDOC 17
+#define STR_EVENT_DEACTIVATEDOC 18
+#define STR_EVENT_PRINTDOC 19
#define STR_EVENT_VIEWCREATED 20
#define STR_EVENT_PREPARECLOSEVIEW 21
#define STR_EVENT_CLOSEVIEW 22
-#define STR_EVENT_MODIFYCHANGED 23
+#define STR_EVENT_MODIFYCHANGED 23
#define STR_EVENT_TITLECHANGED 24
#define STR_EVENT_VISAREACHANGED 25
#define STR_EVENT_MODECHANGED 26
@@ -84,8 +84,8 @@ public:
~GlobalEventConfig_Impl( );
void EstablishFrameCallback(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame);
- void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
- void Commit();
+ void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
+ void Commit();
::com::sun::star::uno::Reference< ::com::sun::star::container::XNameReplace > SAL_CALL getEvents( ) throw (::com::sun::star::uno::RuntimeException);
void SAL_CALL replaceByName( const ::rtl::OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
diff --git a/unotools/inc/unotools/eventlisteneradapter.hxx b/unotools/inc/unotools/eventlisteneradapter.hxx
index 1252be9445fe..9cf1f997fc70 100644
--- a/unotools/inc/unotools/eventlisteneradapter.hxx
+++ b/unotools/inc/unotools/eventlisteneradapter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,11 +47,11 @@ namespace utl
friend class OEventListenerImpl;
private:
- UNOTOOLS_DLLPRIVATE OEventListenerAdapter( const OEventListenerAdapter& _rSource ); // never implemented
- UNOTOOLS_DLLPRIVATE const OEventListenerAdapter& operator=( const OEventListenerAdapter& _rSource ); // never implemented
+ UNOTOOLS_DLLPRIVATE OEventListenerAdapter( const OEventListenerAdapter& _rSource ); // never implemented
+ UNOTOOLS_DLLPRIVATE const OEventListenerAdapter& operator=( const OEventListenerAdapter& _rSource ); // never implemented
protected:
- OEventListenerAdapterImpl* m_pImpl;
+ OEventListenerAdapterImpl* m_pImpl;
protected:
OEventListenerAdapter();
@@ -65,7 +65,7 @@ namespace utl
};
//.........................................................................
-} // namespace utl
+} // namespace utl
//.........................................................................
#endif // _UNOTOOLS_EVENTLISTENERADAPTER_HXX_
diff --git a/unotools/inc/unotools/extendedsecurityoptions.hxx b/unotools/inc/unotools/extendedsecurityoptions.hxx
index 478e1f274663..d3a2e324ba64 100644
--- a/unotools/inc/unotools/extendedsecurityoptions.hxx
+++ b/unotools/inc/unotools/extendedsecurityoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_EXTENDEDSECURITYOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -40,12 +40,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -53,94 +53,94 @@
class SvtExtendedSecurityOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about security features
+ @short collect informations about security features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @ATTENTION This class is partially threadsafe.
+ @ATTENTION This class is partially threadsafe.
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtExtendedSecurityOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
// Must be zero based!
enum OpenHyperlinkMode
{
- OPEN_NEVER = 0,
+ OPEN_NEVER = 0,
OPEN_WITHSECURITYCHECK,
OPEN_ALWAYS
};
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtExtendedSecurityOptions();
virtual ~SvtExtendedSecurityOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
- sal_Bool IsSecureHyperlink( const rtl::OUString& aURL ) const;
- com::sun::star::uno::Sequence< rtl::OUString > GetSecureExtensionList() const;
+ sal_Bool IsSecureHyperlink( const rtl::OUString& aURL ) const;
+ com::sun::star::uno::Sequence< rtl::OUString > GetSecureExtensionList() const;
- OpenHyperlinkMode GetOpenHyperlinkMode();
- void SetOpenHyperlinkMode( OpenHyperlinkMode aMode );
+ OpenHyperlinkMode GetOpenHyperlinkMode();
+ void SetOpenHyperlinkMode( OpenHyperlinkMode aMode );
sal_Bool IsOpenHyperlinkModeReadOnly() const;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -153,10 +153,10 @@ class UNOTOOLS_DLLPUBLIC SvtExtendedSecurityOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtExtendedSecurityOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtExtendedSecurityOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtExtendedSecurityOptions
+}; // class SvtExtendedSecurityOptions
#endif // #ifndef INCLUDED_unotools_EXTENDEDSECURITYOPTIONS_HXX
diff --git a/unotools/inc/unotools/fltrcfg.hxx b/unotools/inc/unotools/fltrcfg.hxx
index e601804e6c53..12c67401f55c 100644
--- a/unotools/inc/unotools/fltrcfg.hxx
+++ b/unotools/inc/unotools/fltrcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,11 +41,11 @@ class UNOTOOLS_DLLPUBLIC SvtFilterOptions : public utl::ConfigItem
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
public:
SvtFilterOptions();
- virtual ~SvtFilterOptions();
+ virtual ~SvtFilterOptions();
- virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
- virtual void Commit();
- void Load();
+ virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
+ virtual void Commit();
+ void Load();
void SetLoadWordBasicCode( sal_Bool bFlag );
sal_Bool IsLoadWordBasicCode() const;
diff --git a/unotools/inc/unotools/fontcfg.hxx b/unotools/inc/unotools/fontcfg.hxx
index 56c93403197a..bc27cc4554cc 100644
--- a/unotools/inc/unotools/fontcfg.hxx
+++ b/unotools/inc/unotools/fontcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,7 +76,7 @@ class UNOTOOLS_DLLPUBLIC DefaultFontConfiguration
m_xConfigProvider;
com::sun::star::uno::Reference< com::sun::star::container::XNameAccess >
m_xConfigAccess;
-
+
struct LocaleAccess
{
// the real string used in the configuration
@@ -85,22 +85,22 @@ class UNOTOOLS_DLLPUBLIC DefaultFontConfiguration
// xAccess is mutable to be able to be filled on demand
mutable com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xAccess;
};
-
+
std::hash_map< com::sun::star::lang::Locale,
LocaleAccess,
utl::LocaleHash >
m_aConfig;
-
+
rtl::OUString tryLocale( const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rType ) const;
-
+
DefaultFontConfiguration();
public:
~DefaultFontConfiguration();
-
+
static DefaultFontConfiguration* get();
-
+
rtl::OUString getDefaultFont( const com::sun::star::lang::Locale& rLocale, int nType ) const;
- rtl::OUString getUserInterfaceFont( const com::sun::star::lang::Locale& rLocale ) const;
+ rtl::OUString getUserInterfaceFont( const com::sun::star::lang::Locale& rLocale ) const;
};
// IMPL_FONT_ATTR_DEFAULT - Default-Font like Andale Sans UI, Palace Script, Albany, Thorndale, Cumberland, ...
@@ -163,14 +163,14 @@ class UNOTOOLS_DLLPUBLIC DefaultFontConfiguration
struct UNOTOOLS_DLLPUBLIC FontNameAttr
{
- String Name;
- ::std::vector< String > Substitutions;
- ::std::vector< String > MSSubstitutions;
- ::std::vector< String > PSSubstitutions;
- ::std::vector< String > HTMLSubstitutions;
- FontWeight Weight;
- FontWidth Width;
- unsigned long Type; // bitfield of IMPL_FONT_ATTR_*
+ String Name;
+ ::std::vector< String > Substitutions;
+ ::std::vector< String > MSSubstitutions;
+ ::std::vector< String > PSSubstitutions;
+ ::std::vector< String > HTMLSubstitutions;
+ FontWeight Weight;
+ FontWidth Width;
+ unsigned long Type; // bitfield of IMPL_FONT_ATTR_*
};
class UNOTOOLS_DLLPUBLIC FontSubstConfiguration
@@ -189,14 +189,14 @@ private:
// a minimal match is sufficient (that is e.g. "Thorndale" will match
// "Thorndale BlaBlub"). Also names must be lower case.
mutable std::vector< FontNameAttr > aSubstAttributes;
-
+
LocaleSubst() : bConfigRead( false ) {}
};
std::hash_map< com::sun::star::lang::Locale, LocaleSubst, utl::LocaleHash > m_aSubst;
typedef std::hash_set< rtl::OUString, rtl::OUStringHash > UniqueSubstHash;
mutable UniqueSubstHash maSubstHash;
-
+
void fillSubstVector( const com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > xFont,
const rtl::OUString& rType,
std::vector< String >& rSubstVector ) const;
diff --git a/unotools/inc/unotools/fontcvt.hxx b/unotools/inc/unotools/fontcvt.hxx
index b5f912d97c70..99896339dd20 100644
--- a/unotools/inc/unotools/fontcvt.hxx
+++ b/unotools/inc/unotools/fontcvt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ public:
//allow somewhat more dubious transformations that are nevertheless
//recognizably similiar. Even in this mode there will be characters that fail.
//The users of this might want to make a distinction between failed characters
-//which were inside and those outside the unicode private area.
+//which were inside and those outside the unicode private area.
UNOTOOLS_DLLPUBLIC StarSymbolToMSMultiFont *CreateStarSymbolToMSMultiFont(bool bPerfectOnly=false);
#endif // _UNOTOOLS_FONTCVT_HXX
diff --git a/unotools/inc/unotools/fontdefs.hxx b/unotools/inc/unotools/fontdefs.hxx
index c48076f14b29..fcd0f564194f 100644
--- a/unotools/inc/unotools/fontdefs.hxx
+++ b/unotools/inc/unotools/fontdefs.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,8 +73,8 @@ public:
const sal_Unicode* mpCvtTab;
const char* mpSubsFontName;
sal_Unicode (*mpCvtFunc)( sal_Unicode );
- sal_Unicode RecodeChar( sal_Unicode c ) const;
- void RecodeString( String& rStra, xub_StrLen nIndex, xub_StrLen nLen ) const;
+ sal_Unicode RecodeChar( sal_Unicode c ) const;
+ void RecodeString( String& rStra, xub_StrLen nIndex, xub_StrLen nLen ) const;
static const ConvertChar* GetRecodeData( const String& rOrgFontName, const String& rMapFontName );
};
diff --git a/unotools/inc/unotools/fontoptions.hxx b/unotools/inc/unotools/fontoptions.hxx
index 1c438ae44570..d77ac641d11b 100644
--- a/unotools/inc/unotools/fontoptions.hxx
+++ b/unotools/inc/unotools/fontoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_FONTOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -39,12 +39,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -52,108 +52,108 @@
class SvtFontOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about font features
+ @short collect informations about font features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtFontOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtFontOptions();
virtual ~SvtFontOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/Font"
- @descr These values defines different states of font handling.
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/Font"
+ @descr These values defines different states of font handling.
- ..ReplacementTable..() => Determines if the list of font replacements is applied or not.
+ ..ReplacementTable..() => Determines if the list of font replacements is applied or not.
- ..FontHistory..() => The last 5 fonts will be shown and the last one will be the
+ ..FontHistory..() => The last 5 fonts will be shown and the last one will be the
first name on the list. These will be displayed in the Font name
combo box on the Object bar.
- ..FontWYSIWYG..() => With this option the names of the selectable fonts
+ ..FontWYSIWYG..() => With this option the names of the selectable fonts
(for example, the fonts in the Font field in the object bar)
will be formatted as the current font.
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror No error should occurre!
+ @onerror No error should occurre!
*//*-*****************************************************************************************************/
- sal_Bool IsReplacementTableEnabled ( ) const ;
- void EnableReplacementTable ( sal_Bool bState ) ;
+ sal_Bool IsReplacementTableEnabled ( ) const ;
+ void EnableReplacementTable ( sal_Bool bState ) ;
- sal_Bool IsFontHistoryEnabled ( ) const ;
- void EnableFontHistory ( sal_Bool bState ) ;
+ sal_Bool IsFontHistoryEnabled ( ) const ;
+ void EnableFontHistory ( sal_Bool bState ) ;
- sal_Bool IsFontWYSIWYGEnabled ( ) const ;
- void EnableFontWYSIWYG ( sal_Bool bState ) ;
+ sal_Bool IsFontWYSIWYGEnabled ( ) const ;
+ void EnableFontWYSIWYG ( sal_Bool bState ) ;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class use his own static mutex to be threadsafe.
+ @short return a reference to a static mutex
+ @descr These class use his own static mutex to be threadsafe.
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& impl_GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -166,10 +166,10 @@ class UNOTOOLS_DLLPUBLIC SvtFontOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtFontOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtFontOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtFontOptions
+}; // class SvtFontOptions
#endif // #ifndef INCLUDED_unotools_FONTOPTIONS_HXX
diff --git a/unotools/inc/unotools/historyoptions.hxx b/unotools/inc/unotools/historyoptions.hxx
index ee3b9c0dd5ea..ceeb5e93d3ba 100644
--- a/unotools/inc/unotools/historyoptions.hxx
+++ b/unotools/inc/unotools/historyoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_SVTOOLS_HISTORYOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -41,21 +41,21 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// types, enums, ...
+// types, enums, ...
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @descr The method GetList() returns a list of property values.
+ @descr The method GetList() returns a list of property values.
Use follow defines to seperate values by names.
*//*-*************************************************************************************************************/
-#define HISTORY_PROPERTYNAME_URL ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL" ))
-#define HISTORY_PROPERTYNAME_FILTER ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Filter" ))
-#define HISTORY_PROPERTYNAME_TITLE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Title" ))
-#define HISTORY_PROPERTYNAME_PASSWORD ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Password" ))
+#define HISTORY_PROPERTYNAME_URL ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL" ))
+#define HISTORY_PROPERTYNAME_FILTER ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Filter" ))
+#define HISTORY_PROPERTYNAME_TITLE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Title" ))
+#define HISTORY_PROPERTYNAME_PASSWORD ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Password" ))
/*-************************************************************************************************************//**
- @descr You can use these enum values to specify right history if you call ouer interface methods.
+ @descr You can use these enum values to specify right history if you call ouer interface methods.
*//*-*************************************************************************************************************/
enum EHistoryType
@@ -66,12 +66,12 @@ enum EHistoryType
};
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -79,156 +79,156 @@ enum EHistoryType
class SvtHistoryOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about history features
+ @short collect informations about history features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtHistoryOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtHistoryOptions();
virtual ~SvtHistoryOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/History/..."
- @descr key "PickList" : The last used documents displayed in the file menu.
- key "History" : The last opened documents general.
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/History/..."
+ @descr key "PickList" : The last used documents displayed in the file menu.
+ key "History" : The last opened documents general.
*//*-*****************************************************************************************************/
/*-****************************************************************************************************//**
- @short set/get max size of specified history
- @descr Call this methods to get information about max. size of specified list.
+ @short set/get max size of specified history
+ @descr Call this methods to get information about max. size of specified list.
These value lay down the max count of items in these history. If a new one
is add to it the oldest one is deleted automaticly!
- @seealso -
+ @seealso -
- @param "eHistory" select right history.
- @param "nSize" is the new max size of specified list. If new size smaller then the old one
+ @param "eHistory" select right history.
+ @param "nSize" is the new max size of specified list. If new size smaller then the old one
some oldest entries will be destroyed automaticly!
- @return Current max size of specified list.
+ @return Current max size of specified list.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- sal_uInt32 GetSize( EHistoryType eHistory ) const ;
- void SetSize( EHistoryType eHistory, sal_uInt32 nSize ) ;
+ sal_uInt32 GetSize( EHistoryType eHistory ) const ;
+ void SetSize( EHistoryType eHistory, sal_uInt32 nSize ) ;
/*-****************************************************************************************************//**
- @short clear complete sepcified list
- @descr Call this methods to clear the whole list. After that GetItemCount() will return 0 ...
+ @short clear complete sepcified list
+ @descr Call this methods to clear the whole list. After that GetItemCount() will return 0 ...
but GetSize() will return the old value!
- @seealso -
+ @seealso -
- @param "eHistory" select right history.
- @return -
+ @param "eHistory" select right history.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void Clear( EHistoryType eHistory );
/*-****************************************************************************************************//**
- @short return complete sepcified list
- @descr If you will show the whole list call this method to get it completly.
+ @short return complete sepcified list
+ @descr If you will show the whole list call this method to get it completly.
- @seealso -
+ @seealso -
- @param "eHistory" select right history.
- @return A list of history items is returned.
+ @param "eHistory" select right history.
+ @return A list of history items is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > > GetList( EHistoryType eHistory ) const ;
/*-****************************************************************************************************//**
- @short append a new item to specified list
- @descr You can append items to a list only - removing isn't allowed for a special item!
+ @short append a new item to specified list
+ @descr You can append items to a list only - removing isn't allowed for a special item!
The oldest entry is deleted automaticly if max size arrived or you can call Clear() ...
It exist two different overload methods to do this.
One for user which have an complete history item and another one for uncompletly data sets!
- @seealso method SetSize()
- @seealso method Clear()
+ @seealso method SetSize()
+ @seealso method Clear()
- @param "eHistory" select right history.
- @param "sURL" URL to save in history
- @param "sFilter" filter name to save in history
- @param "sTitle" document title to save in history
- @param "sPassword" password to save in history
- @return -
+ @param "eHistory" select right history.
+ @param "sURL" URL to save in history
+ @param "sFilter" filter name to save in history
+ @param "sTitle" document title to save in history
+ @param "sPassword" password to save in history
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- void AppendItem( EHistoryType eHistory ,
- const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sFilter ,
- const ::rtl::OUString& sTitle ,
- const ::rtl::OUString& sPassword );
+ void AppendItem( EHistoryType eHistory ,
+ const ::rtl::OUString& sURL ,
+ const ::rtl::OUString& sFilter ,
+ const ::rtl::OUString& sTitle ,
+ const ::rtl::OUString& sPassword );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr Make these class threadsafe.
+ @short return a reference to a static mutex
+ @descr Make these class threadsafe.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -241,11 +241,11 @@ class UNOTOOLS_DLLPUBLIC SvtHistoryOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtHistoryOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtHistoryOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtHistoryOptions
+}; // class SvtHistoryOptions
-#endif // #ifndef INCLUDED_SVTOOLS_HISTORYOPTIONS_HXX
+#endif // #ifndef INCLUDED_SVTOOLS_HISTORYOPTIONS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/inc/unotools/historyoptions_const.hxx b/unotools/inc/unotools/historyoptions_const.hxx
index b432e02a9f89..9c04892f75ce 100644
--- a/unotools/inc/unotools/historyoptions_const.hxx
+++ b/unotools/inc/unotools/historyoptions_const.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/idhelper.hxx b/unotools/inc/unotools/idhelper.hxx
index 0b66c6c67671..741a28a3e202 100644
--- a/unotools/inc/unotools/idhelper.hxx
+++ b/unotools/inc/unotools/idhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace utl
//=========================================================================
// to shorten some lines ...
-typedef ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > TypeSequence;
+typedef ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > TypeSequence;
// compare to Sequences of Types
struct TypeSequenceLess : public ::std::binary_function<TypeSequence, TypeSequence, bool>
@@ -78,14 +78,14 @@ public:
};
// declare the map
-DECLARE_STL_MAP ( TypeSequence,
+DECLARE_STL_MAP ( TypeSequence,
::cppu::OImplementationId,
TypeSequenceLess,
MapType2Id
);
//.........................................................................
-} // namespace utl
+} // namespace utl
//.........................................................................
//=========================================================================
@@ -107,39 +107,39 @@ DECLARE_STL_MAP ( TypeSequence,
cleared. The less classes use it, the earlier map entries which may have
been reused will be cleared.
*/
-#define DECLARE_IMPLEMENTATIONID_HELPER(_namespace, classname) \
-namespace _namespace { \
-class classname \
-{ \
- friend class classname##Ref; \
+#define DECLARE_IMPLEMENTATIONID_HELPER(_namespace, classname) \
+namespace _namespace { \
+class classname \
+{ \
+ friend class classname##Ref; \
\
- static sal_Int32 s_nReferenced; \
- static void* s_pMap; \
+ static sal_Int32 s_nReferenced; \
+ static void* s_pMap; \
\
- static ::osl::Mutex s_aMutex; \
+ static ::osl::Mutex s_aMutex; \
\
-public: \
- static void acquire(); \
- static void release(); \
+public: \
+ static void acquire(); \
+ static void release(); \
\
- static ::com::sun::star::uno::Sequence< sal_Int8 > getImplementationId( \
- const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >& _rTypes); \
+ static ::com::sun::star::uno::Sequence< sal_Int8 > getImplementationId( \
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >& _rTypes); \
\
-private: \
- static void implCreateMap(); \
+private: \
+ static void implCreateMap(); \
\
- classname() { } \
-}; \
+ classname() { } \
+}; \
\
-/*=======================================================================*/ \
-class classname##Ref \
-{ \
-public: \
- classname##Ref() { classname::acquire(); } \
- ~classname##Ref() { classname::release(); } \
-}; \
+/*=======================================================================*/ \
+class classname##Ref \
+{ \
+public: \
+ classname##Ref() { classname::acquire(); } \
+ ~classname##Ref() { classname::release(); } \
+}; \
\
-} /* _namespace */ \
+} /* _namespace */ \
\
/*************************************************************************
@@ -148,62 +148,62 @@ public: \
/** implement an id helper
*/
-#define IMPLEMENT_IMPLEMENTATIONID_HELPER(_namespace, classname) \
-namespace _namespace { \
+#define IMPLEMENT_IMPLEMENTATIONID_HELPER(_namespace, classname) \
+namespace _namespace { \
\
-/*=======================================================================*/ \
+/*=======================================================================*/ \
\
-sal_Int32 classname::s_nReferenced(0); \
-void* classname::s_pMap = NULL; \
-::osl::Mutex classname::s_aMutex; \
+sal_Int32 classname::s_nReferenced(0); \
+void* classname::s_pMap = NULL; \
+::osl::Mutex classname::s_aMutex; \
\
-/*-----------------------------------------------------------------------*/ \
-void classname::acquire() \
-{ \
- ::osl::MutexGuard aGuard(s_aMutex); \
- ++s_nReferenced; \
-} \
+/*-----------------------------------------------------------------------*/ \
+void classname::acquire() \
+{ \
+ ::osl::MutexGuard aGuard(s_aMutex); \
+ ++s_nReferenced; \
+} \
\
-/*-----------------------------------------------------------------------*/ \
-void classname::release() \
-{ \
- ::osl::MutexGuard aGuard(s_aMutex); \
- if (!--s_nReferenced) \
- { \
- delete static_cast< ::utl::MapType2Id *>( s_pMap ); \
- s_pMap = NULL; \
- } \
-} \
+/*-----------------------------------------------------------------------*/ \
+void classname::release() \
+{ \
+ ::osl::MutexGuard aGuard(s_aMutex); \
+ if (!--s_nReferenced) \
+ { \
+ delete static_cast< ::utl::MapType2Id *>( s_pMap ); \
+ s_pMap = NULL; \
+ } \
+} \
\
-/*-----------------------------------------------------------------------*/ \
-::com::sun::star::uno::Sequence< sal_Int8 > classname::getImplementationId( \
- const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >& _rTypes) \
-{ \
- ::osl::MutexGuard aGuard(s_aMutex); \
- DBG_ASSERT(s_nReferenced, \
- "classname::getImplementationId : you need to hold a reference to this class in order to use it !"); \
- /* give the calling class a member of type classname##Ref and all is fine .... */ \
+/*-----------------------------------------------------------------------*/ \
+::com::sun::star::uno::Sequence< sal_Int8 > classname::getImplementationId( \
+ const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >& _rTypes) \
+{ \
+ ::osl::MutexGuard aGuard(s_aMutex); \
+ DBG_ASSERT(s_nReferenced, \
+ "classname::getImplementationId : you need to hold a reference to this class in order to use it !"); \
+ /* give the calling class a member of type classname##Ref and all is fine .... */ \
\
- implCreateMap(); \
+ implCreateMap(); \
\
- ::utl::MapType2Id* pMap = static_cast< ::utl::MapType2Id *>(s_pMap); \
+ ::utl::MapType2Id* pMap = static_cast< ::utl::MapType2Id *>(s_pMap); \
\
- ::cppu::OImplementationId& rId = (*pMap)[_rTypes]; \
- /* this will create an entry for the given type sequence, if neccessary */ \
+ ::cppu::OImplementationId& rId = (*pMap)[_rTypes]; \
+ /* this will create an entry for the given type sequence, if neccessary */ \
\
- return rId.getImplementationId(); \
-} \
+ return rId.getImplementationId(); \
+} \
\
-/*-----------------------------------------------------------------------*/ \
-void classname::implCreateMap() \
-{ \
- if (s_pMap) \
- return; \
- s_pMap = new ::utl::MapType2Id(); \
-} \
+/*-----------------------------------------------------------------------*/ \
+void classname::implCreateMap() \
+{ \
+ if (s_pMap) \
+ return; \
+ s_pMap = new ::utl::MapType2Id(); \
+} \
\
\
-} /* _namespace */ \
+} /* _namespace */ \
\
diff --git a/unotools/inc/unotools/inetoptions.hxx b/unotools/inc/unotools/inetoptions.hxx
index ac738dd45e45..f5d4933768a7 100644
--- a/unotools/inc/unotools/inetoptions.hxx
+++ b/unotools/inc/unotools/inetoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/internaloptions.hxx b/unotools/inc/unotools/internaloptions.hxx
index 38bb8337dc55..07214bca4b7b 100644
--- a/unotools/inc/unotools/internaloptions.hxx
+++ b/unotools/inc/unotools/internaloptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_INTERNALOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -39,19 +39,19 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// namespaces!
+// namespaces!
//_________________________________________________________________________________________________________________
-#define MUTEX ::osl::Mutex
-#define OUSTRING ::rtl::OUString
+#define MUTEX ::osl::Mutex
+#define OUSTRING ::rtl::OUString
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -59,108 +59,108 @@
class SvtInternalOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about internal features
+ @short collect informations about internal features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @ATTENTION This class is partially threadsafe.
+ @ATTENTION This class is partially threadsafe.
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtInternalOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtInternalOptions();
virtual ~SvtInternalOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/Internal/..."
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/Internal/..."
@descr These options describe internal states to enable/disable features of installed office.
The values are fixed at runtime - and implemented as readonly!
- SlotCFGEnabled() => If this option is set (true), StarOffice is searching for the slot.cfg.
+ SlotCFGEnabled() => If this option is set (true), StarOffice is searching for the slot.cfg.
If the slot.cfg cannot be found, the start is aborted.
If this option is not set (false), the slot.cfg must not be available,
otherwise the start is also aborted.
- CrashMailEnabled() => Crash-Mail-Feature to document program crashes. After a crash,
+ CrashMailEnabled() => Crash-Mail-Feature to document program crashes. After a crash,
an e-mail with information about the system used is generated
automatically when starting StarOffice.
- @seealso configuration package "org.openoffice.Office.Common/Internal"
+ @seealso configuration package "org.openoffice.Office.Common/Internal"
*//*-*****************************************************************************************************/
- sal_Bool SlotCFGEnabled () const;
- sal_Bool CrashMailEnabled () const;
- sal_Bool MailUIEnabled () const;
- sal_Bool IsRemoveMenuEntryClose() const;
- sal_Bool IsRemoveMenuEntryBackToWebtop() const;
- sal_Bool IsRemoveMenuEntryNewWebtop() const;
- sal_Bool IsRemoveMenuEntryLogout() const;
+ sal_Bool SlotCFGEnabled () const;
+ sal_Bool CrashMailEnabled () const;
+ sal_Bool MailUIEnabled () const;
+ sal_Bool IsRemoveMenuEntryClose() const;
+ sal_Bool IsRemoveMenuEntryBackToWebtop() const;
+ sal_Bool IsRemoveMenuEntryNewWebtop() const;
+ sal_Bool IsRemoveMenuEntryLogout() const;
- OUSTRING GetCurrentTempURL() const;
- void SetCurrentTempURL( const OUSTRING& aNewCurrentTempURL );
+ OUSTRING GetCurrentTempURL() const;
+ void SetCurrentTempURL( const OUSTRING& aNewCurrentTempURL );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static MUTEX& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -173,10 +173,10 @@ class UNOTOOLS_DLLPUBLIC SvtInternalOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtInternalOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtInternalOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtInternalOptions
+}; // class SvtInternalOptions
#endif // #ifndef INCLUDED_unotools_INTERNALOPTIONS_HXX
diff --git a/unotools/inc/unotools/intlwrapper.hxx b/unotools/inc/unotools/intlwrapper.hxx
index 4273d3611ddf..8339ecaab4e2 100644
--- a/unotools/inc/unotools/intlwrapper.hxx
+++ b/unotools/inc/unotools/intlwrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ class UNOTOOLS_DLLPUBLIC IntlWrapper
{
private:
- ::com::sun::star::lang::Locale aLocale;
+ ::com::sun::star::lang::Locale aLocale;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xSMgr;
CharClass* pCharClass;
diff --git a/unotools/inc/unotools/itemholderbase.hxx b/unotools/inc/unotools/itemholderbase.hxx
index 8f14f9a17f11..57bd8ebf70cd 100644
--- a/unotools/inc/unotools/itemholderbase.hxx
+++ b/unotools/inc/unotools/itemholderbase.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/javaoptions.hxx b/unotools/inc/unotools/javaoptions.hxx
index 04c60bf4bab7..cc7f18cf39b1 100644
--- a/unotools/inc/unotools/javaoptions.hxx
+++ b/unotools/inc/unotools/javaoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/lingucfg.hxx b/unotools/inc/unotools/lingucfg.hxx
index 415d825fb248..0b4ab9482ae4 100644
--- a/unotools/inc/unotools/lingucfg.hxx
+++ b/unotools/inc/unotools/lingucfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,14 +50,14 @@ class SvtLinguConfigItem;
struct UNOTOOLS_DLLPUBLIC SvtLinguOptions
{
- ::com::sun::star::uno::Sequence< rtl::OUString > aActiveDics;
+ ::com::sun::star::uno::Sequence< rtl::OUString > aActiveDics;
::com::sun::star::uno::Sequence< rtl::OUString > aActiveConvDics;
BOOL bROActiveDics;
BOOL bROActiveConvDics;
// Hyphenator service specific options
- INT16 nHyphMinLeading,
+ INT16 nHyphMinLeading,
nHyphMinTrailing,
nHyphMinWordLength;
@@ -66,39 +66,39 @@ struct UNOTOOLS_DLLPUBLIC SvtLinguOptions
bROHyphMinWordLength;
// misc options (non-service specific)
- INT16 nDefaultLanguage;
- INT16 nDefaultLanguage_CJK;
- INT16 nDefaultLanguage_CTL;
+ INT16 nDefaultLanguage;
+ INT16 nDefaultLanguage_CJK;
+ INT16 nDefaultLanguage_CTL;
BOOL bRODefaultLanguage;
BOOL bRODefaultLanguage_CJK;
BOOL bRODefaultLanguage_CTL;
// spelling options (non-service specific)
- BOOL bIsSpellSpecial;
- BOOL bIsSpellAuto;
- BOOL bIsSpellReverse;
+ BOOL bIsSpellSpecial;
+ BOOL bIsSpellAuto;
+ BOOL bIsSpellReverse;
BOOL bROIsSpellSpecial;
BOOL bROIsSpellAuto;
BOOL bROIsSpellReverse;
// hyphenation options (non-service specific)
- BOOL bIsHyphSpecial;
- BOOL bIsHyphAuto;
+ BOOL bIsHyphSpecial;
+ BOOL bIsHyphAuto;
BOOL bROIsHyphSpecial;
BOOL bROIsHyphAuto;
// common to SpellChecker, Hyphenator and Thesaurus service
- BOOL bIsUseDictionaryList;
- BOOL bIsIgnoreControlCharacters;
+ BOOL bIsUseDictionaryList;
+ BOOL bIsIgnoreControlCharacters;
BOOL bROIsUseDictionaryList;
BOOL bROIsIgnoreControlCharacters;
// SpellChecker service specific options
- BOOL bIsSpellWithDigits,
+ BOOL bIsSpellWithDigits,
bIsSpellUpperCase,
bIsSpellCapitalization;
@@ -145,11 +145,11 @@ struct UNOTOOLS_DLLPUBLIC SvtLinguOptions
struct UNOTOOLS_DLLPUBLIC SvtLinguConfigDictionaryEntry
{
// the URL's pointing to the location of the files the dictionary consists of
- com::sun::star::uno::Sequence< rtl::OUString > aLocations;
+ com::sun::star::uno::Sequence< rtl::OUString > aLocations;
// the name of the dictionary format implement
- rtl::OUString aFormatName;
+ rtl::OUString aFormatName;
// the list of languages (ISO names) the dictionary can be used for
- com::sun::star::uno::Sequence< rtl::OUString > aLocaleNames;
+ com::sun::star::uno::Sequence< rtl::OUString > aLocaleNames;
};
//////////////////////////////////////////////////////////////////////
diff --git a/unotools/inc/unotools/linguprops.hxx b/unotools/inc/unotools/linguprops.hxx
index 902dc1c91f0a..ed8bacd84415 100644
--- a/unotools/inc/unotools/linguprops.hxx
+++ b/unotools/inc/unotools/linguprops.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,35 +31,35 @@
// UNO property names for general options
-#define UPN_IS_GERMAN_PRE_REFORM "IsGermanPreReform" /*! deprecated #i91949 !*/
-#define UPN_IS_USE_DICTIONARY_LIST "IsUseDictionaryList"
-#define UPN_IS_IGNORE_CONTROL_CHARACTERS "IsIgnoreControlCharacters"
-#define UPN_ACTIVE_DICTIONARIES "ActiveDictionaries"
+#define UPN_IS_GERMAN_PRE_REFORM "IsGermanPreReform" /*! deprecated #i91949 !*/
+#define UPN_IS_USE_DICTIONARY_LIST "IsUseDictionaryList"
+#define UPN_IS_IGNORE_CONTROL_CHARACTERS "IsIgnoreControlCharacters"
+#define UPN_ACTIVE_DICTIONARIES "ActiveDictionaries"
// UNO property names for SpellChecker
-#define UPN_IS_SPELL_UPPER_CASE "IsSpellUpperCase"
-#define UPN_IS_SPELL_WITH_DIGITS "IsSpellWithDigits"
-#define UPN_IS_SPELL_CAPITALIZATION "IsSpellCapitalization"
+#define UPN_IS_SPELL_UPPER_CASE "IsSpellUpperCase"
+#define UPN_IS_SPELL_WITH_DIGITS "IsSpellWithDigits"
+#define UPN_IS_SPELL_CAPITALIZATION "IsSpellCapitalization"
// UNO property names for Hyphenator
-#define UPN_HYPH_MIN_LEADING "HyphMinLeading"
-#define UPN_HYPH_MIN_TRAILING "HyphMinTrailing"
-#define UPN_HYPH_MIN_WORD_LENGTH "HyphMinWordLength"
+#define UPN_HYPH_MIN_LEADING "HyphMinLeading"
+#define UPN_HYPH_MIN_TRAILING "HyphMinTrailing"
+#define UPN_HYPH_MIN_WORD_LENGTH "HyphMinWordLength"
// UNO property names for Lingu
// (those not covered by the SpellChecker and Hyphenator
// properties and more likely to be used in other modules only)
-#define UPN_DEFAULT_LANGUAGE "DefaultLanguage"
-#define UPN_DEFAULT_LOCALE "DefaultLocale"
-#define UPN_DEFAULT_LOCALE_CJK "DefaultLocale_CJK"
-#define UPN_DEFAULT_LOCALE_CTL "DefaultLocale_CTL"
-#define UPN_IS_HYPH_AUTO "IsHyphAuto"
-#define UPN_IS_HYPH_SPECIAL "IsHyphSpecial"
-#define UPN_IS_SPELL_AUTO "IsSpellAuto"
-#define UPN_IS_SPELL_HIDE "IsSpellHide" /*! deprecated #i91949 !*/
-#define UPN_IS_SPELL_IN_ALL_LANGUAGES "IsSpellInAllLanguages" /*! deprecated #i91949 !*/
-#define UPN_IS_SPELL_SPECIAL "IsSpellSpecial"
-#define UPN_IS_WRAP_REVERSE "IsWrapReverse"
+#define UPN_DEFAULT_LANGUAGE "DefaultLanguage"
+#define UPN_DEFAULT_LOCALE "DefaultLocale"
+#define UPN_DEFAULT_LOCALE_CJK "DefaultLocale_CJK"
+#define UPN_DEFAULT_LOCALE_CTL "DefaultLocale_CTL"
+#define UPN_IS_HYPH_AUTO "IsHyphAuto"
+#define UPN_IS_HYPH_SPECIAL "IsHyphSpecial"
+#define UPN_IS_SPELL_AUTO "IsSpellAuto"
+#define UPN_IS_SPELL_HIDE "IsSpellHide" /*! deprecated #i91949 !*/
+#define UPN_IS_SPELL_IN_ALL_LANGUAGES "IsSpellInAllLanguages" /*! deprecated #i91949 !*/
+#define UPN_IS_SPELL_SPECIAL "IsSpellSpecial"
+#define UPN_IS_WRAP_REVERSE "IsWrapReverse"
#define UPN_DATA_FILES_CHANGED_CHECK_VALUE "DataFilesChangedCheckValue"
// UNO property names for text conversion options
@@ -85,28 +85,28 @@
#define UPN_IS_GRAMMAR_INTERACTIVE "IsInteractiveGrammarCheck"
// uno property handles
-#define UPH_IS_GERMAN_PRE_REFORM 0
-#define UPH_IS_USE_DICTIONARY_LIST 1
-#define UPH_IS_IGNORE_CONTROL_CHARACTERS 2
-#define UPH_IS_SPELL_UPPER_CASE 3
-#define UPH_IS_SPELL_WITH_DIGITS 4
-#define UPH_IS_SPELL_CAPITALIZATION 5
-#define UPH_HYPH_MIN_LEADING 6
-#define UPH_HYPH_MIN_TRAILING 7
-#define UPH_HYPH_MIN_WORD_LENGTH 8
-#define UPH_DEFAULT_LOCALE 9
-#define UPH_IS_SPELL_AUTO 10
-#define UPH_IS_SPELL_HIDE 11
-#define UPH_IS_SPELL_IN_ALL_LANGUAGES 12
-#define UPH_IS_SPELL_SPECIAL 13
-#define UPH_IS_HYPH_AUTO 14
-#define UPH_IS_HYPH_SPECIAL 15
-#define UPH_IS_WRAP_REVERSE 16
+#define UPH_IS_GERMAN_PRE_REFORM 0
+#define UPH_IS_USE_DICTIONARY_LIST 1
+#define UPH_IS_IGNORE_CONTROL_CHARACTERS 2
+#define UPH_IS_SPELL_UPPER_CASE 3
+#define UPH_IS_SPELL_WITH_DIGITS 4
+#define UPH_IS_SPELL_CAPITALIZATION 5
+#define UPH_HYPH_MIN_LEADING 6
+#define UPH_HYPH_MIN_TRAILING 7
+#define UPH_HYPH_MIN_WORD_LENGTH 8
+#define UPH_DEFAULT_LOCALE 9
+#define UPH_IS_SPELL_AUTO 10
+#define UPH_IS_SPELL_HIDE 11
+#define UPH_IS_SPELL_IN_ALL_LANGUAGES 12
+#define UPH_IS_SPELL_SPECIAL 13
+#define UPH_IS_HYPH_AUTO 14
+#define UPH_IS_HYPH_SPECIAL 15
+#define UPH_IS_WRAP_REVERSE 16
#define UPH_DATA_FILES_CHANGED_CHECK_VALUE 17
-#define UPH_DEFAULT_LANGUAGE 21
-#define UPH_DEFAULT_LOCALE_CJK 22
-#define UPH_DEFAULT_LOCALE_CTL 23
-#define UPH_ACTIVE_DICTIONARIES 24
+#define UPH_DEFAULT_LANGUAGE 21
+#define UPH_DEFAULT_LOCALE_CJK 22
+#define UPH_DEFAULT_LOCALE_CTL 23
+#define UPH_ACTIVE_DICTIONARIES 24
#define UPH_ACTIVE_CONVERSION_DICTIONARIES 25
#define UPH_IS_IGNORE_POST_POSITIONAL_WORD 26
#define UPH_IS_AUTO_CLOSE_DIALOG 27
diff --git a/unotools/inc/unotools/localedatawrapper.hxx b/unotools/inc/unotools/localedatawrapper.hxx
index 865bddb455b3..fb67cfd4f7a7 100644
--- a/unotools/inc/unotools/localedatawrapper.hxx
+++ b/unotools/inc/unotools/localedatawrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,50 +74,50 @@ class UNOTOOLS_DLLPUBLIC LocaleDataWrapper
::com::sun::star::uno::Sequence< ::rtl::OUString > aReservedWordSeq;
::com::sun::star::uno::Sequence< sal_Int32 > aGrouping;
// cached items
- String aLocaleItem[::com::sun::star::i18n::LocaleItem::COUNT];
- String aReservedWord[::com::sun::star::i18n::reservedWords::COUNT];
- String aCurrSymbol;
- String aCurrBankSymbol;
- int nDateFormat;
- int nLongDateFormat;
- USHORT nCurrPositiveFormat;
- USHORT nCurrNegativeFormat;
- USHORT nCurrDigits;
- BOOL bLocaleDataItemValid;
- BOOL bReservedWordValid;
+ String aLocaleItem[::com::sun::star::i18n::LocaleItem::COUNT];
+ String aReservedWord[::com::sun::star::i18n::reservedWords::COUNT];
+ String aCurrSymbol;
+ String aCurrBankSymbol;
+ int nDateFormat;
+ int nLongDateFormat;
+ USHORT nCurrPositiveFormat;
+ USHORT nCurrNegativeFormat;
+ USHORT nCurrDigits;
+ BOOL bLocaleDataItemValid;
+ BOOL bReservedWordValid;
mutable ::utl::ReadWriteMutex aMutex;
// dummies, to be implemented or provided by XML locale data
- sal_Unicode cCurrZeroChar;
+ sal_Unicode cCurrZeroChar;
// not implemented, prevent usage
LocaleDataWrapper( const LocaleDataWrapper& );
- LocaleDataWrapper& operator=( const LocaleDataWrapper& );
+ LocaleDataWrapper& operator=( const LocaleDataWrapper& );
// whenever Locale changes
- void invalidateData();
+ void invalidateData();
- void getOneLocaleItemImpl( sal_Int16 nItem );
- const String& getOneLocaleItem( sal_Int16 nItem ) const;
+ void getOneLocaleItemImpl( sal_Int16 nItem );
+ const String& getOneLocaleItem( sal_Int16 nItem ) const;
- void getOneReservedWordImpl( sal_Int16 nWord );
- const String& getOneReservedWord( sal_Int16 nWord ) const;
+ void getOneReservedWordImpl( sal_Int16 nWord );
+ const String& getOneReservedWord( sal_Int16 nWord ) const;
- void getCurrSymbolsImpl();
- void getCurrFormatsImpl();
+ void getCurrSymbolsImpl();
+ void getCurrFormatsImpl();
void scanCurrFormatImpl( const String& rCode,
xub_StrLen nStart, xub_StrLen& nSign,
xub_StrLen& nPar, xub_StrLen& nNum,
xub_StrLen& nBlank, xub_StrLen& nSym );
- void getDateFormatsImpl();
+ void getDateFormatsImpl();
DateFormat scanDateFormatImpl( const String& rCode );
void getDefaultCalendarImpl();
- sal_Unicode* ImplAddFormatNum( sal_Unicode* pBuf,
+ sal_Unicode* ImplAddFormatNum( sal_Unicode* pBuf,
sal_Int64 nNumber, USHORT nDecimals,
BOOL bUseThousandSep, BOOL bTrailingZeros ) const;
@@ -140,7 +140,7 @@ public:
const { return xSMgr; }
/// set a new Locale to request
- void setLocale( const ::com::sun::star::lang::Locale& rLocale );
+ void setLocale( const ::com::sun::star::lang::Locale& rLocale );
/// get current requested Locale
const ::com::sun::star::lang::Locale& getLocale() const;
@@ -176,7 +176,7 @@ public:
static ::com::sun::star::uno::Sequence< sal_uInt16 > getInstalledLanguageTypes();
/// maps the LocaleData string to the International enum
- MeasurementSystem mapMeasurementStringToEnum( const String& rMS ) const;
+ MeasurementSystem mapMeasurementStringToEnum( const String& rMS ) const;
/// Convenience method to obtain the default calendar.
const ::boost::shared_ptr< ::com::sun::star::i18n::Calendar > getDefaultCalendar() const;
@@ -201,56 +201,56 @@ public:
// Functionality of class International methods, LocaleItem
- inline const String& getDateSep() const
+ inline const String& getDateSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::DATE_SEPARATOR ); }
- inline const String& getNumThousandSep() const
+ inline const String& getNumThousandSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::THOUSAND_SEPARATOR ); }
- inline const String& getNumDecimalSep() const
+ inline const String& getNumDecimalSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::DECIMAL_SEPARATOR ); }
- inline const String& getTimeSep() const
+ inline const String& getTimeSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::TIME_SEPARATOR ); }
- inline const String& getTime100SecSep() const
+ inline const String& getTime100SecSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::TIME_100SEC_SEPARATOR ); }
- inline const String& getListSep() const
+ inline const String& getListSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::LIST_SEPARATOR ); }
- inline const String& getQuotationMarkStart() const
+ inline const String& getQuotationMarkStart() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::SINGLE_QUOTATION_START ); }
- inline const String& getQuotationMarkEnd() const
+ inline const String& getQuotationMarkEnd() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::SINGLE_QUOTATION_END ); }
- inline const String& getDoubleQuotationMarkStart() const
+ inline const String& getDoubleQuotationMarkStart() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::DOUBLE_QUOTATION_START ); }
- inline const String& getDoubleQuotationMarkEnd() const
+ inline const String& getDoubleQuotationMarkEnd() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::DOUBLE_QUOTATION_END ); }
- inline const String& getMeasurementSystem() const
+ inline const String& getMeasurementSystem() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::MEASUREMENT_SYSTEM ); }
- inline MeasurementSystem getMeasurementSystemEnum() const
+ inline MeasurementSystem getMeasurementSystemEnum() const
{ return mapMeasurementStringToEnum( getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::MEASUREMENT_SYSTEM ) ); }
- inline const String& getTimeAM() const
+ inline const String& getTimeAM() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::TIME_AM ); }
- inline const String& getTimePM() const
+ inline const String& getTimePM() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::TIME_PM ); }
- inline const String& getLongDateDayOfWeekSep() const
+ inline const String& getLongDateDayOfWeekSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::LONG_DATE_DAY_OF_WEEK_SEPARATOR ); }
- inline const String& getLongDateDaySep() const
+ inline const String& getLongDateDaySep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::LONG_DATE_DAY_SEPARATOR ); }
- inline const String& getLongDateMonthSep() const
+ inline const String& getLongDateMonthSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::LONG_DATE_MONTH_SEPARATOR ); }
- inline const String& getLongDateYearSep() const
+ inline const String& getLongDateYearSep() const
{ return getOneLocaleItem( ::com::sun::star::i18n::LocaleItem::LONG_DATE_YEAR_SEPARATOR ); }
// currency
- const String& getCurrSymbol() const;
- const String& getCurrBankSymbol() const;
- USHORT getCurrPositiveFormat() const;
- USHORT getCurrNegativeFormat() const;
- USHORT getCurrDigits() const;
+ const String& getCurrSymbol() const;
+ const String& getCurrBankSymbol() const;
+ USHORT getCurrPositiveFormat() const;
+ USHORT getCurrNegativeFormat() const;
+ USHORT getCurrDigits() const;
// simple date and time formatting
- DateFormat getDateFormat() const;
- DateFormat getLongDateFormat() const;
+ DateFormat getDateFormat() const;
+ DateFormat getLongDateFormat() const;
/// only numerical values of Gregorian calendar
- String getDate( const Date& rDate ) const;
- String getTime( const Time& rTime, BOOL bSec = TRUE,
+ String getDate( const Date& rDate ) const;
+ String getTime( const Time& rTime, BOOL bSec = TRUE,
BOOL b100Sec = FALSE ) const;
String getDuration( const Time& rTime,
BOOL bSec = TRUE, BOOL b100Sec = FALSE ) const;
@@ -304,7 +304,7 @@ public:
getCurrSymbol(), bUseThousandSep ); }
// dummy returns, to be implemented
- inline sal_Unicode getCurrZeroChar() const
+ inline sal_Unicode getCurrZeroChar() const
{ return cCurrZeroChar; }
inline BOOL isNumLeadingZero() const
{ return TRUE; }
@@ -317,16 +317,16 @@ public:
// reserved words
- inline const String& getTrueWord() const
+ inline const String& getTrueWord() const
{ return getOneReservedWord( ::com::sun::star::i18n::reservedWords::TRUE_WORD ); }
- inline const String& getFalseWord() const
+ inline const String& getFalseWord() const
{ return getOneReservedWord( ::com::sun::star::i18n::reservedWords::FALSE_WORD ); }
/// return a quarter string matching nQuarter (0..3) => "1st quarter" .. "4th quarter"
inline const String& getQuarterWord( sal_Int16 nQuarter ) const
{ return getOneReservedWord( ::com::sun::star::i18n::reservedWords::QUARTER1_WORD + nQuarter ); }
- inline const String& getAboveWord() const
+ inline const String& getAboveWord() const
{ return getOneReservedWord( ::com::sun::star::i18n::reservedWords::ABOVE_WORD ); }
- inline const String& getBelowWord() const
+ inline const String& getBelowWord() const
{ return getOneReservedWord( ::com::sun::star::i18n::reservedWords::BELOW_WORD ); }
/// return a quarter abbreviation string matching nQuarter (0..3) => "Q1" .. "Q2"
inline const String& getQuarterAbbreviation( sal_Int16 nQuarter ) const
@@ -346,7 +346,7 @@ public:
/** Append locale info to string, used with locale data checking.
A string similar to "de_DE requested\n en_US loaded" is appended. */
- String& appendLocaleInfo( String& rDebugMsg ) const;
+ String& appendLocaleInfo( String& rDebugMsg ) const;
/** Ouput a message during locale data checking. The (UTF-8) string is
written to stderr and in a non-product build or if DBG_UTIL is enabled
diff --git a/unotools/inc/unotools/localfilehelper.hxx b/unotools/inc/unotools/localfilehelper.hxx
index 08be26017cdc..6c57efcfac41 100644
--- a/unotools/inc/unotools/localfilehelper.hxx
+++ b/unotools/inc/unotools/localfilehelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/localisationoptions.hxx b/unotools/inc/unotools/localisationoptions.hxx
index f9aa7a850e0b..62a2ee6fe0ad 100644
--- a/unotools/inc/unotools/localisationoptions.hxx
+++ b/unotools/inc/unotools/localisationoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_LOCALISATIONOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <sal/types.h>
@@ -38,12 +38,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -51,114 +51,114 @@
class SvtLocalisationOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about localisation features
+ @short collect informations about localisation features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtLocalisationOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtLocalisationOptions();
virtual ~SvtLocalisationOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Localisation/AutoMnemonic"
- @descr These value specifies if shortcuts should be assigned automatically.
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Localisation/AutoMnemonic"
+ @descr These value specifies if shortcuts should be assigned automatically.
- @seealso -
+ @seealso -
- @param "bState", new value to set it in configuration.
- @return The value which represent current state of internal variable.
+ @param "bState", new value to set it in configuration.
+ @return The value which represent current state of internal variable.
- @onerror No error should occurre!
+ @onerror No error should occurre!
*//*-*****************************************************************************************************/
- sal_Bool IsAutoMnemonic ( ) const ;
- void SetAutoMnemonic ( sal_Bool bState ) ;
+ sal_Bool IsAutoMnemonic ( ) const ;
+ void SetAutoMnemonic ( sal_Bool bState ) ;
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Localisation/DialogScale"
- @descr These value specifies the factor for increasing controls.
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/View/Localisation/DialogScale"
+ @descr These value specifies the factor for increasing controls.
Value from [0..100] are allowed.
- @ATTENTION These methods don't check for valid or invalid values!
+ @ATTENTION These methods don't check for valid or invalid values!
Our configuration server can do it ... but these implementation don't get any notifications
about wrong commits ...!
=> If you set an invalid value - nothing will be changed. The information will lost.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "nScale" new value to set it in configuration.
- @return The value which represent current state of internal variable.
+ @param "nScale" new value to set it in configuration.
+ @return The value which represent current state of internal variable.
- @onerror No error should occurre!
+ @onerror No error should occurre!
*//*-*****************************************************************************************************/
- sal_Int32 GetDialogScale( ) const ;
- void SetDialogScale( sal_Int32 nScale ) ;
+ sal_Int32 GetDialogScale( ) const ;
+ void SetDialogScale( sal_Int32 nScale ) ;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -171,10 +171,10 @@ class UNOTOOLS_DLLPUBLIC SvtLocalisationOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtLocalisationOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtLocalisationOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtLocalisationOptions
+}; // class SvtLocalisationOptions
#endif // #ifndef INCLUDED_unotools_LOCALISATIONOPTIONS_HXX
diff --git a/unotools/inc/unotools/loghelper.hxx b/unotools/inc/unotools/loghelper.hxx
index 4427d45445f0..d9666320df42 100644
--- a/unotools/inc/unotools/loghelper.hxx
+++ b/unotools/inc/unotools/loghelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/misccfg.hxx b/unotools/inc/unotools/misccfg.hxx
index 87b8173da42e..21dbdd208515 100644
--- a/unotools/inc/unotools/misccfg.hxx
+++ b/unotools/inc/unotools/misccfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,23 +41,23 @@ namespace utl
class UNOTOOLS_DLLPUBLIC MiscCfg : public detail::Options
{
- SfxMiscCfg* pImpl;
+ SfxMiscCfg* pImpl;
public:
MiscCfg( );
virtual ~MiscCfg( );
- BOOL IsNotFoundWarning() const;
- void SetNotFoundWarning( BOOL bSet);
+ BOOL IsNotFoundWarning() const;
+ void SetNotFoundWarning( BOOL bSet);
- BOOL IsPaperSizeWarning() const;
- void SetPaperSizeWarning(BOOL bSet);
+ BOOL IsPaperSizeWarning() const;
+ void SetPaperSizeWarning(BOOL bSet);
- BOOL IsPaperOrientationWarning() const;
- void SetPaperOrientationWarning( BOOL bSet);
+ BOOL IsPaperOrientationWarning() const;
+ void SetPaperOrientationWarning( BOOL bSet);
// 0 ... 99
- sal_Int32 GetYear2000() const;
+ sal_Int32 GetYear2000() const;
void SetYear2000( sal_Int32 nSet );
};
diff --git a/unotools/inc/unotools/moduleoptions.hxx b/unotools/inc/unotools/moduleoptions.hxx
index a2b89f98528b..bd91e10af70a 100644
--- a/unotools/inc/unotools/moduleoptions.hxx
+++ b/unotools/inc/unotools/moduleoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#define INCLUDED_SVTOOLS_MODULEOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -43,44 +43,44 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
#define FEATUREFLAG_BASICIDE 0x00000020
-#define FEATUREFLAG_MATH 0x00000100
-#define FEATUREFLAG_CHART 0x00000200
-#define FEATUREFLAG_CALC 0x00000800
-#define FEATUREFLAG_DRAW 0x00001000
-#define FEATUREFLAG_WRITER 0x00002000
-#define FEATUREFLAG_IMPRESS 0x00008000
-#define FEATUREFLAG_INSIGHT 0x00010000
+#define FEATUREFLAG_MATH 0x00000100
+#define FEATUREFLAG_CHART 0x00000200
+#define FEATUREFLAG_CALC 0x00000800
+#define FEATUREFLAG_DRAW 0x00001000
+#define FEATUREFLAG_WRITER 0x00002000
+#define FEATUREFLAG_IMPRESS 0x00008000
+#define FEATUREFLAG_INSIGHT 0x00010000
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
class SvtModuleOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about installation state of modules
+ @short collect informations about installation state of modules
@descr Use these class to get installation state of different office modules like writer, calc etc
Further you can ask for additional informations; e.g. name of standard template file, which
should be used by corresponding module; or short/long name of these module factory.
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
@threadsafe yes
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtModuleOptions: public utl::detail::Options
@@ -121,24 +121,24 @@ class UNOTOOLS_DLLPUBLIC SvtModuleOptions: public utl::detail::Options
E_MATH = 6,
E_CHART = 7,
E_STARTMODULE = 8,
- E_DATABASE = 9,
+ E_DATABASE = 9,
E_BASIC = 10
};
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtModuleOptions();
virtual ~SvtModuleOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
sal_Bool IsModuleInstalled ( EModule eModule ) const;
::rtl::OUString GetModuleName ( EModule eModule ) const;
@@ -232,13 +232,13 @@ class UNOTOOLS_DLLPUBLIC SvtModuleOptions: public utl::detail::Options
::com::sun::star::uno::Sequence < ::rtl::OUString > GetAllServiceNames();
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& impl_GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -250,11 +250,11 @@ class UNOTOOLS_DLLPUBLIC SvtModuleOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtModuleOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtModuleOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtModuleOptions
+}; // class SvtModuleOptions
-#endif // #ifndef INCLUDED_SVTOOLS_MODULEOPTIONS_HXX
+#endif // #ifndef INCLUDED_SVTOOLS_MODULEOPTIONS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/inc/unotools/nativenumberwrapper.hxx b/unotools/inc/unotools/nativenumberwrapper.hxx
index 99acc411080b..d564c9e8d58c 100644
--- a/unotools/inc/unotools/nativenumberwrapper.hxx
+++ b/unotools/inc/unotools/nativenumberwrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,14 +61,14 @@ public:
sal_Int16 nNativeNumberMode ) const;
sal_Bool isValidNatNum(
- const ::com::sun::star::lang::Locale& rLocale,
+ const ::com::sun::star::lang::Locale& rLocale,
sal_Int16 nNativeNumberMode ) const;
::com::sun::star::i18n::NativeNumberXmlAttributes convertToXmlAttributes(
const ::com::sun::star::lang::Locale& rLocale,
sal_Int16 nNativeNumberMode ) const;
- sal_Int16 convertFromXmlAttributes(
+ sal_Int16 convertFromXmlAttributes(
const ::com::sun::star::i18n::NativeNumberXmlAttributes& rAttr ) const;
};
diff --git a/unotools/inc/unotools/numberformatcodewrapper.hxx b/unotools/inc/unotools/numberformatcodewrapper.hxx
index f0bf53f5da55..1f2b0b88018d 100644
--- a/unotools/inc/unotools/numberformatcodewrapper.hxx
+++ b/unotools/inc/unotools/numberformatcodewrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,12 +42,12 @@ namespace com { namespace sun { namespace star {
class UNOTOOLS_DLLPUBLIC NumberFormatCodeWrapper
{
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xSMgr;
- ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XNumberFormatCode > xNFC;
- ::com::sun::star::lang::Locale aLocale;
+ ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XNumberFormatCode > xNFC;
+ ::com::sun::star::lang::Locale aLocale;
// not implemented, prevent usage
NumberFormatCodeWrapper( const NumberFormatCodeWrapper& );
- NumberFormatCodeWrapper& operator=( const NumberFormatCodeWrapper& );
+ NumberFormatCodeWrapper& operator=( const NumberFormatCodeWrapper& );
public:
NumberFormatCodeWrapper(
@@ -59,10 +59,10 @@ public:
/// set a new Locale
- void setLocale( const ::com::sun::star::lang::Locale& rLocale );
+ void setLocale( const ::com::sun::star::lang::Locale& rLocale );
/// get current Locale
- const ::com::sun::star::lang::Locale& getLocale() const { return aLocale; }
+ const ::com::sun::star::lang::Locale& getLocale() const { return aLocale; }
// Wrapper implementations of class NumberFormatCodeMapper
diff --git a/unotools/inc/unotools/options.hxx b/unotools/inc/unotools/options.hxx
index 56f877e03fe7..5028ef8dbd13 100644
--- a/unotools/inc/unotools/options.hxx
+++ b/unotools/inc/unotools/options.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ namespace utl {
{
IMPL_ConfigurationListenerList* mpList;
sal_Int32 m_nBroadcastBlocked; // broadcast only if this is 0
- sal_uInt32 m_nBlockedHint;
+ sal_uInt32 m_nBlockedHint;
public:
void AddListener( utl::ConfigurationListener* pListener );
diff --git a/unotools/inc/unotools/optionsdlg.hxx b/unotools/inc/unotools/optionsdlg.hxx
index 9a0034e1a3c8..d29934b15024 100644
--- a/unotools/inc/unotools/optionsdlg.hxx
+++ b/unotools/inc/unotools/optionsdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/pathoptions.hxx b/unotools/inc/unotools/pathoptions.hxx
index 7b471ed68a1d..f9326e2b6ce6 100644
--- a/unotools/inc/unotools/pathoptions.hxx
+++ b/unotools/inc/unotools/pathoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ class SvtPathOptions_Impl;
class UNOTOOLS_DLLPUBLIC SvtPathOptions: public utl::detail::Options
{
private:
- SvtPathOptions_Impl* pImp;
+ SvtPathOptions_Impl* pImp;
public:
enum Pathes
@@ -77,28 +77,28 @@ public:
virtual ~SvtPathOptions();
// get the pathes, not const because of using a mutex
- const String& GetAddinPath() const;
- const String& GetAutoCorrectPath() const;
- const String& GetAutoTextPath() const;
- const String& GetBackupPath() const;
- const String& GetBasicPath() const;
- const String& GetBitmapPath() const;
- const String& GetConfigPath() const;
- const String& GetDictionaryPath() const;
- const String& GetFavoritesPath() const;
- const String& GetFilterPath() const;
- const String& GetGalleryPath() const;
- const String& GetGraphicPath() const;
- const String& GetHelpPath() const;
- const String& GetLinguisticPath() const;
- const String& GetModulePath() const;
- const String& GetPalettePath() const;
- const String& GetPluginPath() const;
- const String& GetStoragePath() const;
- const String& GetTempPath() const;
- const String& GetTemplatePath() const;
- const String& GetUserConfigPath() const;
- const String& GetWorkPath() const;
+ const String& GetAddinPath() const;
+ const String& GetAutoCorrectPath() const;
+ const String& GetAutoTextPath() const;
+ const String& GetBackupPath() const;
+ const String& GetBasicPath() const;
+ const String& GetBitmapPath() const;
+ const String& GetConfigPath() const;
+ const String& GetDictionaryPath() const;
+ const String& GetFavoritesPath() const;
+ const String& GetFilterPath() const;
+ const String& GetGalleryPath() const;
+ const String& GetGraphicPath() const;
+ const String& GetHelpPath() const;
+ const String& GetLinguisticPath() const;
+ const String& GetModulePath() const;
+ const String& GetPalettePath() const;
+ const String& GetPluginPath() const;
+ const String& GetStoragePath() const;
+ const String& GetTempPath() const;
+ const String& GetTemplatePath() const;
+ const String& GetUserConfigPath() const;
+ const String& GetWorkPath() const;
const String& GetUIConfigPath() const;
const String& GetFingerprintPath() const;
@@ -106,33 +106,33 @@ public:
const String& GetPath(Pathes ePath) const;
// set the pathes
- void SetAddinPath( const String& rPath );
- void SetAutoCorrectPath( const String& rPath );
- void SetAutoTextPath( const String& rPath );
- void SetBackupPath( const String& rPath );
- void SetBasicPath( const String& rPath );
- void SetBitmapPath( const String& rPath );
- void SetConfigPath( const String& rPath );
- void SetDictionaryPath( const String& rPath );
- void SetFavoritesPath( const String& rPath );
- void SetFilterPath( const String& rPath );
- void SetGalleryPath( const String& rPath );
- void SetGraphicPath( const String& rPath );
- void SetHelpPath( const String& rPath );
- void SetLinguisticPath( const String& rPath );
- void SetModulePath( const String& rPath );
- void SetPalettePath( const String& rPath );
- void SetPluginPath( const String& rPath );
- void SetStoragePath( const String& rPath );
- void SetTempPath( const String& rPath );
- void SetTemplatePath( const String& rPath );
- void SetUserConfigPath( const String& rPath );
- void SetWorkPath( const String& rPath );
+ void SetAddinPath( const String& rPath );
+ void SetAutoCorrectPath( const String& rPath );
+ void SetAutoTextPath( const String& rPath );
+ void SetBackupPath( const String& rPath );
+ void SetBasicPath( const String& rPath );
+ void SetBitmapPath( const String& rPath );
+ void SetConfigPath( const String& rPath );
+ void SetDictionaryPath( const String& rPath );
+ void SetFavoritesPath( const String& rPath );
+ void SetFilterPath( const String& rPath );
+ void SetGalleryPath( const String& rPath );
+ void SetGraphicPath( const String& rPath );
+ void SetHelpPath( const String& rPath );
+ void SetLinguisticPath( const String& rPath );
+ void SetModulePath( const String& rPath );
+ void SetPalettePath( const String& rPath );
+ void SetPluginPath( const String& rPath );
+ void SetStoragePath( const String& rPath );
+ void SetTempPath( const String& rPath );
+ void SetTemplatePath( const String& rPath );
+ void SetUserConfigPath( const String& rPath );
+ void SetWorkPath( const String& rPath );
void SetPath( SvtPathOptions::Pathes ePath, const String& rNewPath );
- String SubstituteVariable( const String& rVar );
- String UseVariable( const String& rVar );
- sal_Bool SearchFile( String& rIniFile, Pathes ePath = PATH_USERCONFIG );
+ String SubstituteVariable( const String& rVar );
+ String UseVariable( const String& rVar );
+ sal_Bool SearchFile( String& rIniFile, Pathes ePath = PATH_USERCONFIG );
::com::sun::star::lang::Locale GetLocale() const;
sal_Bool IsReadonly() const;
};
diff --git a/unotools/inc/unotools/printwarningoptions.hxx b/unotools/inc/unotools/printwarningoptions.hxx
index da8395a520d9..55b7add85035 100644
--- a/unotools/inc/unotools/printwarningoptions.hxx
+++ b/unotools/inc/unotools/printwarningoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/processfactory.hxx b/unotools/inc/unotools/processfactory.hxx
index a9573ec7f401..9def1111fbd3 100644
--- a/unotools/inc/unotools/processfactory.hxx
+++ b/unotools/inc/unotools/processfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,12 +33,12 @@
#include <com/sun/star/uno/Reference.hxx>
namespace com { namespace sun { namespace star { namespace lang {
- class XMultiServiceFactory;
+ class XMultiServiceFactory;
} } } }
namespace utl
{
-
+
/**
* This function set the process service factory.
*
diff --git a/unotools/inc/unotools/progresshandlerwrap.hxx b/unotools/inc/unotools/progresshandlerwrap.hxx
index c1623221ff30..caaf68f2db95 100644
--- a/unotools/inc/unotools/progresshandlerwrap.hxx
+++ b/unotools/inc/unotools/progresshandlerwrap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,15 +44,15 @@ public:
ProgressHandlerWrap( ::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator > xSI );
// XProgressHandler
- virtual void SAL_CALL push( const ::com::sun::star::uno::Any& Status )
+ virtual void SAL_CALL push( const ::com::sun::star::uno::Any& Status )
throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL update( const ::com::sun::star::uno::Any& Status )
throw (::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL pop()
+ virtual void SAL_CALL pop()
throw (::com::sun::star::uno::RuntimeException);
};
-} // namespace utl
+} // namespace utl
#endif // _UTL_PROGRESSHANDLERWRAP_HXX_
diff --git a/unotools/inc/unotools/propertysethelper.hxx b/unotools/inc/unotools/propertysethelper.hxx
index 5f6a80e2c03a..13c312e0ee5e 100644
--- a/unotools/inc/unotools/propertysethelper.hxx
+++ b/unotools/inc/unotools/propertysethelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/propertysetinfo.hxx b/unotools/inc/unotools/propertysetinfo.hxx
index 7ed5bed46e1a..7cbcb7b6095e 100644
--- a/unotools/inc/unotools/propertysetinfo.hxx
+++ b/unotools/inc/unotools/propertysetinfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/querydeep.hxx b/unotools/inc/unotools/querydeep.hxx
index 8b44a3c39672..53d4a9ce2816 100644
--- a/unotools/inc/unotools/querydeep.hxx
+++ b/unotools/inc/unotools/querydeep.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,48 +35,48 @@
/** */ //for docpp
namespace utl
-{
+{
//--------------------------------------------------------------------------------------------------------
/**
* Inspect interfaces types whether they are related by inheritance.
*<BR>
- * @return true if rType is derived from rBaseType
- * @param rBaseType a <type>Type</type> of an interface.
- * @param rType a <type>Type</type> of an interface.
+ * @return true if rType is derived from rBaseType
+ * @param rBaseType a <type>Type</type> of an interface.
+ * @param rType a <type>Type</type> of an interface.
*/
sal_Bool isDerivedFrom(
- const ::com::sun::star::uno::Type & rBaseType,
+ const ::com::sun::star::uno::Type & rBaseType,
const ::com::sun::star::uno::Type & rType );
//--------------------------------------------------------------------------------------------------------
/**
* Inspect interface types whether they are related by inheritance.
*<BR>
- * @return true if p is of a type derived from rBaseType
- * @param rBaseType a <type>Type</type> of an interface.
- * @param p a pointer to an interface.
+ * @return true if p is of a type derived from rBaseType
+ * @param rBaseType a <type>Type</type> of an interface.
+ * @param p a pointer to an interface.
*/
template <class Interface>
inline sal_Bool isDerivedFrom(
- const ::com::sun::star::uno::Type& rBaseType,
+ const ::com::sun::star::uno::Type& rBaseType,
Interface* /*p*/)
{
- return isDerivedFrom(
- rBaseType,
+ return isDerivedFrom(
+ rBaseType,
::getCppuType(static_cast<const ::com::sun::star::uno::Reference<Interface> *>(0)));
}
//--------------------------------------------------------------------------------------------------------
// possible optimization ?
-// Any aRet(::cppu::queryInterface(rType, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12));
-// if (aRet.hasValue())
-// return aRet;
+// Any aRet(::cppu::queryInterface(rType, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12));
+// if (aRet.hasValue())
+// return aRet;
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
+ * @param p1 a pointer to an interface.
*/
template< class Interface1 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -92,8 +92,8 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
*/
template< class Interface1, class Interface2 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -111,9 +111,9 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -133,10 +133,10 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -158,11 +158,11 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5 >
inline ::com::sun::star::uno::Any queryDeepInterface(
@@ -186,12 +186,12 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6 >
@@ -219,13 +219,13 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7 >
@@ -255,14 +255,14 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8 >
@@ -294,15 +294,15 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
- * @param p9 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
+ * @param p9 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8, class Interface9 >
@@ -336,16 +336,16 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
- * @param p9 a pointer to an interface.
- * @param p10 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
+ * @param p9 a pointer to an interface.
+ * @param p10 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8, class Interface9, class Interface10 >
@@ -381,17 +381,17 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
- * @param p9 a pointer to an interface.
- * @param p10 a pointer to an interface.
- * @param p11 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
+ * @param p9 a pointer to an interface.
+ * @param p10 a pointer to an interface.
+ * @param p11 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8, class Interface9, class Interface10,
@@ -431,18 +431,18 @@ inline ::com::sun::star::uno::Any queryDeepInterface(
/**
* Inspect types and choose return proper interface.
*<BR>
- * @param p1 a pointer to an interface.
- * @param p2 a pointer to an interface.
- * @param p3 a pointer to an interface.
- * @param p4 a pointer to an interface.
- * @param p5 a pointer to an interface.
- * @param p6 a pointer to an interface.
- * @param p7 a pointer to an interface.
- * @param p8 a pointer to an interface.
- * @param p9 a pointer to an interface.
- * @param p10 a pointer to an interface.
- * @param p11 a pointer to an interface.
- * @param p12 a pointer to an interface.
+ * @param p1 a pointer to an interface.
+ * @param p2 a pointer to an interface.
+ * @param p3 a pointer to an interface.
+ * @param p4 a pointer to an interface.
+ * @param p5 a pointer to an interface.
+ * @param p6 a pointer to an interface.
+ * @param p7 a pointer to an interface.
+ * @param p8 a pointer to an interface.
+ * @param p9 a pointer to an interface.
+ * @param p10 a pointer to an interface.
+ * @param p11 a pointer to an interface.
+ * @param p12 a pointer to an interface.
*/
template< class Interface1, class Interface2, class Interface3, class Interface4, class Interface5,
class Interface6, class Interface7, class Interface8, class Interface9, class Interface10,
diff --git a/unotools/inc/unotools/readwritemutexguard.hxx b/unotools/inc/unotools/readwritemutexguard.hxx
index f428e105faf7..f3d45644c0b3 100644
--- a/unotools/inc/unotools/readwritemutexguard.hxx
+++ b/unotools/inc/unotools/readwritemutexguard.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/regoptions.hxx b/unotools/inc/unotools/regoptions.hxx
index e43d61f9ba6b..b7dddcafdfc4 100644
--- a/unotools/inc/unotools/regoptions.hxx
+++ b/unotools/inc/unotools/regoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ namespace utl
class UNOTOOLS_DLLPUBLIC RegOptions
{
private:
- RegOptionsImpl* m_pImpl;
+ RegOptionsImpl* m_pImpl;
// the impl class is constructed upon need only (as this is expensive)
UNOTOOLS_DLLPRIVATE void ensureImpl( );
@@ -56,24 +56,24 @@ namespace utl
~RegOptions( );
// retrieves the URL which should be used for online registration
- String getRegistrationURL( ) const;
+ String getRegistrationURL( ) const;
// checks if the menu item which can be used to trigger the online registration should be available
- sal_Bool allowMenu( ) const;
+ sal_Bool allowMenu( ) const;
enum DialogPermission
- { // the registration dialog shall be executed ....
- dpDisabled, // ... never - it has been disabled
- dpNotThisSession, // ... later - no statement when, but _not now_
- dpRemindLater, // ... later at a reminder date
- dpThisSession // ... during this session
+ { // the registration dialog shall be executed ....
+ dpDisabled, // ... never - it has been disabled
+ dpNotThisSession, // ... later - no statement when, but _not now_
+ dpRemindLater, // ... later at a reminder date
+ dpThisSession // ... during this session
};
/** checks if the registration dialog is allowed
<p>A return value of <TRUE/> does not mean that during this session, the dialog is allowed to
be executed. It simply means executing it is allowed <em>in general</em></p>
*/
- DialogPermission getDialogPermission( ) const;
+ DialogPermission getDialogPermission( ) const;
/** claims that the current session is done with respect to the registration dialog.
@@ -88,7 +88,7 @@ namespace utl
<method>getDialogPermission</method> <em>may</em> return dpThisSession</li>
</ul></p>
*/
- void markSessionDone( );
+ void markSessionDone( );
/** activates the reminder
diff --git a/unotools/inc/unotools/regpathhelper.hxx b/unotools/inc/unotools/regpathhelper.hxx
index f1986d8bb58c..3e8501955a9a 100644
--- a/unotools/inc/unotools/regpathhelper.hxx
+++ b/unotools/inc/unotools/regpathhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,13 +39,13 @@ namespace utl
* Search for the user registry using the following rules:
* <dl>
* <dt> 1. (for further use) search in sversion.ini (.sversionrc) for an entry
- * REGISTRY_VERSION_STRING (example: UserRegistry 5.0/505=test.rdb) in the section
- * [Registry]. If found, then take this value instead of the name "user.rdb".
- * <dt> 2. Search in the config directory of the user for a file "user.rdb". If
- * found return the full path and name of the file. If not found, retry this
- * step with a dot before ".user.rdb".
- * <dt> 3. If not found a new user registry with name "user.rdb" will be created in the user
- * config directory.
+ * REGISTRY_VERSION_STRING (example: UserRegistry 5.0/505=test.rdb) in the section
+ * [Registry]. If found, then take this value instead of the name "user.rdb".
+ * <dt> 2. Search in the config directory of the user for a file "user.rdb". If
+ * found return the full path and name of the file. If not found, retry this
+ * step with a dot before ".user.rdb".
+ * <dt> 3. If not found a new user registry with name "user.rdb" will be created in the user
+ * config directory.
* </dl>
*<BR>
* @author Juergen Schmidt
@@ -55,7 +55,7 @@ namespace utl
/**
* This function returns a path to the system registry file.
* The system registry will always be searched in the same directory of the
- * executable. The name of the system registry is "applicat.rdb". If the system
+ * executable. The name of the system registry is "applicat.rdb". If the system
* registry was not found, then the environment variable STAR_REGISTRY will be checked.
* If this variable was set, it must contain a full path to a valid system registry.
* Search for the user registry using the following rules:
diff --git a/unotools/inc/unotools/saveopt.hxx b/unotools/inc/unotools/saveopt.hxx
index c2db897c0e74..d6bc4de1dc25 100644
--- a/unotools/inc/unotools/saveopt.hxx
+++ b/unotools/inc/unotools/saveopt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -102,14 +102,14 @@ public:
void SetSaveRelFSys( sal_Bool b );
sal_Bool IsSaveRelFSys() const;
- void SetSaveUnpacked( sal_Bool b );
- sal_Bool IsSaveUnpacked() const;
+ void SetSaveUnpacked( sal_Bool b );
+ sal_Bool IsSaveUnpacked() const;
void SetLoadUserSettings(sal_Bool b);
sal_Bool IsLoadUserSettings() const;
- void SetPrettyPrinting( sal_Bool _bEnable );
- sal_Bool IsPrettyPrinting( ) const;
+ void SetPrettyPrinting( sal_Bool _bEnable );
+ sal_Bool IsPrettyPrinting( ) const;
void SetWarnAlienFormat( sal_Bool _bEnable );
sal_Bool IsWarnAlienFormat( ) const;
diff --git a/unotools/inc/unotools/searchopt.hxx b/unotools/inc/unotools/searchopt.hxx
index d8cf6819f389..ace98246a41c 100644
--- a/unotools/inc/unotools/searchopt.hxx
+++ b/unotools/inc/unotools/searchopt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@ class SvtSearchOptions_Impl;
class UNOTOOLS_DLLPUBLIC SvtSearchOptions
{
- SvtSearchOptions_Impl *pImpl;
+ SvtSearchOptions_Impl *pImpl;
// disallow copy-constructor and assignment-operator for now
SvtSearchOptions( const SvtSearchOptions & );
@@ -48,71 +48,71 @@ public:
SvtSearchOptions();
~SvtSearchOptions();
- INT32 GetTransliterationFlags() const;
+ INT32 GetTransliterationFlags() const;
//
// General Options
//
- BOOL IsWholeWordsOnly() const;
- BOOL IsBackwards() const;
- BOOL IsUseRegularExpression() const;
- BOOL IsSearchForStyles() const;
- BOOL IsSimilaritySearch() const;
- BOOL IsUseAsianOptions() const;
- BOOL IsMatchCase() const; // also Japanese search option
- BOOL IsNotes() const;
-
- void SetWholeWordsOnly( BOOL bVal );
- void SetBackwards( BOOL bVal );
- void SetUseRegularExpression( BOOL bVal );
- void SetSearchForStyles( BOOL bVal );
- void SetSimilaritySearch( BOOL bVal );
- void SetUseAsianOptions( BOOL bVal );
- void SetMatchCase( BOOL bVal ); // also Japanese search option
- void SetNotes( BOOL bVal);
+ BOOL IsWholeWordsOnly() const;
+ BOOL IsBackwards() const;
+ BOOL IsUseRegularExpression() const;
+ BOOL IsSearchForStyles() const;
+ BOOL IsSimilaritySearch() const;
+ BOOL IsUseAsianOptions() const;
+ BOOL IsMatchCase() const; // also Japanese search option
+ BOOL IsNotes() const;
+
+ void SetWholeWordsOnly( BOOL bVal );
+ void SetBackwards( BOOL bVal );
+ void SetUseRegularExpression( BOOL bVal );
+ void SetSearchForStyles( BOOL bVal );
+ void SetSimilaritySearch( BOOL bVal );
+ void SetUseAsianOptions( BOOL bVal );
+ void SetMatchCase( BOOL bVal ); // also Japanese search option
+ void SetNotes( BOOL bVal);
//
// Japanese search options
//
- BOOL IsMatchFullHalfWidthForms() const;
- BOOL IsMatchHiraganaKatakana() const;
- BOOL IsMatchContractions() const;
- BOOL IsMatchMinusDashChoon() const;
- BOOL IsMatchRepeatCharMarks() const;
- BOOL IsMatchVariantFormKanji() const;
- BOOL IsMatchOldKanaForms() const;
- BOOL IsMatchDiziDuzu() const;
- BOOL IsMatchBavaHafa() const;
- BOOL IsMatchTsithichiDhizi() const;
- BOOL IsMatchHyuiyuByuvyu() const;
- BOOL IsMatchSesheZeje() const;
- BOOL IsMatchIaiya() const;
- BOOL IsMatchKiku() const;
- BOOL IsIgnorePunctuation() const;
- BOOL IsIgnoreWhitespace() const;
- BOOL IsIgnoreProlongedSoundMark() const;
- BOOL IsIgnoreMiddleDot() const;
-
- void SetMatchFullHalfWidthForms( BOOL bVal );
- void SetMatchHiraganaKatakana( BOOL bVal );
- void SetMatchContractions( BOOL bVal );
- void SetMatchMinusDashChoon( BOOL bVal );
- void SetMatchRepeatCharMarks( BOOL bVal );
- void SetMatchVariantFormKanji( BOOL bVal );
- void SetMatchOldKanaForms( BOOL bVal );
- void SetMatchDiziDuzu( BOOL bVal );
- void SetMatchBavaHafa( BOOL bVal );
- void SetMatchTsithichiDhizi( BOOL bVal );
- void SetMatchHyuiyuByuvyu( BOOL bVal );
- void SetMatchSesheZeje( BOOL bVal );
- void SetMatchIaiya( BOOL bVal );
- void SetMatchKiku( BOOL bVal );
- void SetIgnorePunctuation( BOOL bVal );
- void SetIgnoreWhitespace( BOOL bVal );
- void SetIgnoreProlongedSoundMark( BOOL bVal );
- void SetIgnoreMiddleDot( BOOL bVal );
+ BOOL IsMatchFullHalfWidthForms() const;
+ BOOL IsMatchHiraganaKatakana() const;
+ BOOL IsMatchContractions() const;
+ BOOL IsMatchMinusDashChoon() const;
+ BOOL IsMatchRepeatCharMarks() const;
+ BOOL IsMatchVariantFormKanji() const;
+ BOOL IsMatchOldKanaForms() const;
+ BOOL IsMatchDiziDuzu() const;
+ BOOL IsMatchBavaHafa() const;
+ BOOL IsMatchTsithichiDhizi() const;
+ BOOL IsMatchHyuiyuByuvyu() const;
+ BOOL IsMatchSesheZeje() const;
+ BOOL IsMatchIaiya() const;
+ BOOL IsMatchKiku() const;
+ BOOL IsIgnorePunctuation() const;
+ BOOL IsIgnoreWhitespace() const;
+ BOOL IsIgnoreProlongedSoundMark() const;
+ BOOL IsIgnoreMiddleDot() const;
+
+ void SetMatchFullHalfWidthForms( BOOL bVal );
+ void SetMatchHiraganaKatakana( BOOL bVal );
+ void SetMatchContractions( BOOL bVal );
+ void SetMatchMinusDashChoon( BOOL bVal );
+ void SetMatchRepeatCharMarks( BOOL bVal );
+ void SetMatchVariantFormKanji( BOOL bVal );
+ void SetMatchOldKanaForms( BOOL bVal );
+ void SetMatchDiziDuzu( BOOL bVal );
+ void SetMatchBavaHafa( BOOL bVal );
+ void SetMatchTsithichiDhizi( BOOL bVal );
+ void SetMatchHyuiyuByuvyu( BOOL bVal );
+ void SetMatchSesheZeje( BOOL bVal );
+ void SetMatchIaiya( BOOL bVal );
+ void SetMatchKiku( BOOL bVal );
+ void SetIgnorePunctuation( BOOL bVal );
+ void SetIgnoreWhitespace( BOOL bVal );
+ void SetIgnoreProlongedSoundMark( BOOL bVal );
+ void SetIgnoreMiddleDot( BOOL bVal );
};
diff --git a/unotools/inc/unotools/securityoptions.hxx b/unotools/inc/unotools/securityoptions.hxx
index fd1b7c757163..c1087925ad7b 100644
--- a/unotools/inc/unotools/securityoptions.hxx
+++ b/unotools/inc/unotools/securityoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_SECURITYOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -40,12 +40,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -53,7 +53,7 @@
class SvtSecurityOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
@@ -63,21 +63,21 @@ class SvtSecurityOptions_Impl;
enum EBasicSecurityMode
{
- eNEVER_EXECUTE = 0,
- eFROM_LIST = 1,
+ eNEVER_EXECUTE = 0,
+ eFROM_LIST = 1,
eALWAYS_EXECUTE = 2
};
/*-************************************************************************************************************//**
- @short collect informations about security features
+ @short collect informations about security features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @ATTENTION This class is partially threadsafe.
+ @ATTENTION This class is partially threadsafe.
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtSecurityOptions: public utl::detail::Options
@@ -90,10 +90,10 @@ class UNOTOOLS_DLLPUBLIC SvtSecurityOptions: public utl::detail::Options
enum EOption
{
E_SECUREURLS,
- E_BASICMODE, // xmlsec05 depricated
- E_EXECUTEPLUGINS, // xmlsec05 depricated
- E_WARNING, // xmlsec05 depricated
- E_CONFIRMATION, // xmlsec05 depricated
+ E_BASICMODE, // xmlsec05 depricated
+ E_EXECUTEPLUGINS, // xmlsec05 depricated
+ E_WARNING, // xmlsec05 depricated
+ E_CONFIRMATION, // xmlsec05 depricated
E_DOCWARN_SAVEORSEND,
E_DOCWARN_SIGNING,
E_DOCWARN_PRINT,
@@ -126,36 +126,36 @@ class UNOTOOLS_DLLPUBLIC SvtSecurityOptions: public utl::detail::Options
*/
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtSecurityOptions();
virtual ~SvtSecurityOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
@@ -172,111 +172,111 @@ class UNOTOOLS_DLLPUBLIC SvtSecurityOptions: public utl::detail::Options
sal_Bool IsReadOnly( EOption eOption ) const ;
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/Security/Scripting/SecureURL"
- @descr These value displays the list of all trustworthy URLs.
- zB.: file:/ => All scripts from the local file system including a LAN;
- private:explorer => Scripts from the Explorer;
- private:help => Scripts in the help system;
- private:newmenu => Scripts that are executed by the commands File-New and AutoPilot;
- private:schedule => Scripts of the scheduler;
- private:searchfolder => Scripts of the searchfolder;
- private:user => Scripts that are entered in the URL field.
- @seealso -
-
- @param "seqURLList", new values to set it in configuration.
- @return The values which represent current state of internal variable.
-
- @onerror No error should occurre!
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/Security/Scripting/SecureURL"
+ @descr These value displays the list of all trustworthy URLs.
+ zB.: file:/ => All scripts from the local file system including a LAN;
+ private:explorer => Scripts from the Explorer;
+ private:help => Scripts in the help system;
+ private:newmenu => Scripts that are executed by the commands File-New and AutoPilot;
+ private:schedule => Scripts of the scheduler;
+ private:searchfolder => Scripts of the searchfolder;
+ private:user => Scripts that are entered in the URL field.
+ @seealso -
+
+ @param "seqURLList", new values to set it in configuration.
+ @return The values which represent current state of internal variable.
+
+ @onerror No error should occurre!
*//*-*****************************************************************************************************/
- ::com::sun::star::uno::Sequence< ::rtl::OUString > GetSecureURLs( ) const ;
- void SetSecureURLs( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& seqURLList ) ;
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > GetSecureURLs( ) const ;
+ void SetSecureURLs( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& seqURLList ) ;
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/Security/Scripting/StarOfficeBasic"
- @descr These value determines how StarOffice Basic scripts should be handled.
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/Security/Scripting/StarOfficeBasic"
+ @descr These value determines how StarOffice Basic scripts should be handled.
It exist 3 different modes:
0 = never execute
1 = from list
2 = always execute
- @ATTENTION These methods don't check for valid or invalid values!
+ @ATTENTION These methods don't check for valid or invalid values!
Our configuration server can do it ... but these implementation don't get any notifications
about wrong commits ...!
=> If you set an invalid value - nothing will be changed. The information will lost.
- @seealso enum EBasicSecurityMode
+ @seealso enum EBasicSecurityMode
- @param "eMode" to set new mode ... Value must defined as an enum of type EBasicSecurityMode!
- @return An enum value, which present current mode.
+ @param "eMode" to set new mode ... Value must defined as an enum of type EBasicSecurityMode!
+ @return An enum value, which present current mode.
- @onerror No error should occurre!
+ @onerror No error should occurre!
*//*-*****************************************************************************************************/
- sal_Int32 GetMacroSecurityLevel ( ) const ;
- void SetMacroSecurityLevel ( sal_Int32 _nLevel ) ;
+ sal_Int32 GetMacroSecurityLevel ( ) const ;
+ void SetMacroSecurityLevel ( sal_Int32 _nLevel ) ;
- sal_Bool IsMacroDisabled ( ) const ;
+ sal_Bool IsMacroDisabled ( ) const ;
/*-****************************************************************************************************//**
- @short special method to check an URL and his referer corresponding to ouer internal security cessation
- @descr Give us an URL and his referer and we will say you if these url can be scripted or not!
+ @short special method to check an URL and his referer corresponding to ouer internal security cessation
+ @descr Give us an URL and his referer and we will say you if these url can be scripted or not!
- @seealso -
+ @seealso -
- @param "sURL" reference to URL for checking
- @param "sReferer" reference to referer which whish to run script by given URL
- @return sal_True if URL is secure or security is obsolete(!) or sal_False otherwise.
+ @param "sURL" reference to URL for checking
+ @param "sReferer" reference to referer which whish to run script by given URL
+ @return sal_True if URL is secure or security is obsolete(!) or sal_False otherwise.
- @onerror No error should occurre!
+ @onerror No error should occurre!
*//*-*****************************************************************************************************/
- sal_Bool IsSecureURL( const ::rtl::OUString& sURL ,
- const ::rtl::OUString& sReferer ) const ;
+ sal_Bool IsSecureURL( const ::rtl::OUString& sURL ,
+ const ::rtl::OUString& sReferer ) const ;
- ::com::sun::star::uno::Sequence< Certificate > GetTrustedAuthors ( ) const ;
- void SetTrustedAuthors ( const ::com::sun::star::uno::Sequence< Certificate >& rAuthors ) ;
- sal_Bool IsTrustedAuthorsEnabled ( ) ;
+ ::com::sun::star::uno::Sequence< Certificate > GetTrustedAuthors ( ) const ;
+ void SetTrustedAuthors ( const ::com::sun::star::uno::Sequence< Certificate >& rAuthors ) ;
+ sal_Bool IsTrustedAuthorsEnabled ( ) ;
// for bool options only!
- bool IsOptionSet ( EOption eOption ) const ;
- bool SetOption ( EOption eOption, bool bValue ) ;
- bool IsOptionEnabled ( EOption eOption ) const ;
+ bool IsOptionSet ( EOption eOption ) const ;
+ bool SetOption ( EOption eOption, bool bValue ) ;
+ bool IsOptionEnabled ( EOption eOption ) const ;
// xmlsec05 depricated methods
sal_Bool IsExecutePlugins() const;
void SetExecutePlugins( sal_Bool bSet );
- EBasicSecurityMode GetBasicMode( ) const ;
- void SetBasicMode( EBasicSecurityMode eMode ) ;
+ EBasicSecurityMode GetBasicMode( ) const ;
+ void SetBasicMode( EBasicSecurityMode eMode ) ;
sal_Bool IsWarningEnabled() const;
void SetWarningEnabled( sal_Bool bSet );
sal_Bool IsConfirmationEnabled() const;
void SetConfirmationEnabled( sal_Bool bSet );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
+ @short return a reference to a static mutex
+ @descr These class is partially threadsafe (for de-/initialization only).
All access methods are'nt safe!
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -289,10 +289,10 @@ class UNOTOOLS_DLLPUBLIC SvtSecurityOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtSecurityOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtSecurityOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtSecurityOptions
+}; // class SvtSecurityOptions
#endif // #ifndef INCLUDED_unotools_SECURITYOPTIONS_HXX
diff --git a/unotools/inc/unotools/sharedunocomponent.hxx b/unotools/inc/unotools/sharedunocomponent.hxx
index e4065387b6fb..fe4d9f8efe5b 100644
--- a/unotools/inc/unotools/sharedunocomponent.hxx
+++ b/unotools/inc/unotools/sharedunocomponent.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/sourceviewconfig.hxx b/unotools/inc/unotools/sourceviewconfig.hxx
index 2450ee27092b..e362a6c36fe7 100644
--- a/unotools/inc/unotools/sourceviewconfig.hxx
+++ b/unotools/inc/unotools/sourceviewconfig.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/startoptions.hxx b/unotools/inc/unotools/startoptions.hxx
index 7c964960999b..b59689289e13 100644
--- a/unotools/inc/unotools/startoptions.hxx
+++ b/unotools/inc/unotools/startoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/streamhelper.hxx b/unotools/inc/unotools/streamhelper.hxx
index 51c0b7fd4025..613025bb9b38 100644
--- a/unotools/inc/unotools/streamhelper.hxx
+++ b/unotools/inc/unotools/streamhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,23 +39,23 @@
namespace utl
{
- namespace stario = ::com::sun::star::io;
- namespace staruno = ::com::sun::star::uno;
+ namespace stario = ::com::sun::star::io;
+ namespace staruno = ::com::sun::star::uno;
/**
* The helper implementation for a using input streams based on SvLockBytes.
*
- * @author Dirk Grobler
- * @since 00/28/03
+ * @author Dirk Grobler
+ * @since 00/28/03
*/
typedef ::cppu::WeakImplHelper2<stario::XInputStream, stario::XSeekable> InputStreamHelper_Base;
// needed for some compilers
class UNOTOOLS_DLLPUBLIC OInputStreamHelper : public InputStreamHelper_Base
{
- ::osl::Mutex m_aMutex;
- SvLockBytesRef m_xLockBytes;
- sal_uInt32 m_nActPos;
- sal_Int32 m_nAvailable; // this is typically the chunk(buffer) size
+ ::osl::Mutex m_aMutex;
+ SvLockBytesRef m_xLockBytes;
+ sal_uInt32 m_nActPos;
+ sal_Int32 m_nAvailable; // this is typically the chunk(buffer) size
public:
OInputStreamHelper(const SvLockBytesRef& _xLockBytes,
@@ -84,16 +84,16 @@ public:
/**
* The helper implementation for a using output streams based on SvLockBytes.
*
- * @author Dirk Grobler
- * @since 00/28/03
+ * @author Dirk Grobler
+ * @since 00/28/03
*/
typedef ::cppu::WeakImplHelper1<stario::XOutputStream> OutputStreamHelper_Base;
// needed for some compilers
class UNOTOOLS_DLLPUBLIC OOutputStreamHelper : public OutputStreamHelper_Base
{
- ::osl::Mutex m_aMutex;
- SvLockBytesRef m_xLockBytes;
- sal_uInt32 m_nActPos;
+ ::osl::Mutex m_aMutex;
+ SvLockBytesRef m_xLockBytes;
+ sal_uInt32 m_nActPos;
public:
OOutputStreamHelper(const SvLockBytesRef& _xLockBytes, sal_uInt32 _nPos = 0)
@@ -110,7 +110,7 @@ public:
virtual void SAL_CALL closeOutput( ) throw(stario::NotConnectedException, stario::BufferSizeExceededException, stario::IOException, staruno::RuntimeException);
};
-} // namespace utl
+} // namespace utl
#endif // _UNOTOOLS_STREAM_WRAPPER_HXX_
diff --git a/unotools/inc/unotools/streamsection.hxx b/unotools/inc/unotools/streamsection.hxx
index 76860a2630ed..9545b4d7a53b 100644
--- a/unotools/inc/unotools/streamsection.hxx
+++ b/unotools/inc/unotools/streamsection.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,37 +36,37 @@
namespace utl
{
- namespace stario = ::com::sun::star::io;
- namespace staruno = ::com::sun::star::uno;
+ namespace stario = ::com::sun::star::io;
+ namespace staruno = ::com::sun::star::uno;
/** implements handling for compatibly reading/writing data from/into an input/output stream.
data written in a block secured by this class should be readable by older versions which
use the same mechanism.
- @author Frank Schoenheit
- @since 00/26/05
+ @author Frank Schoenheit
+ @since 00/26/05
*/
class OStreamSection
{
- staruno::Reference< stario::XMarkableStream > m_xMarkStream;
- staruno::Reference< stario::XDataInputStream > m_xInStream;
- staruno::Reference< stario::XDataOutputStream > m_xOutStream;
+ staruno::Reference< stario::XMarkableStream > m_xMarkStream;
+ staruno::Reference< stario::XDataInputStream > m_xInStream;
+ staruno::Reference< stario::XDataOutputStream > m_xOutStream;
- sal_Int32 m_nBlockStart;
- sal_Int32 m_nBlockLen;
+ sal_Int32 m_nBlockStart;
+ sal_Int32 m_nBlockLen;
public:
- /** starts reading of a "skippable" section of data within the given input stream<BR>
- @param _rxInput the stream to read from. Must support the
+ /** starts reading of a "skippable" section of data within the given input stream<BR>
+ @param _rxInput the stream to read from. Must support the
<type scope="com::sun::star::io">XMarkableStream</type> interface
*/
OStreamSection(const staruno::Reference< stario::XDataInputStream >& _rxInput);
- /** starts writing of a "skippable" section of data into the given output stream
- @param _rxOutput the stream the stream to write to. Must support the
+ /** starts writing of a "skippable" section of data into the given output stream
+ @param _rxOutput the stream the stream to write to. Must support the
<type scope="com::sun::star::io">XMarkableStream</type> interface
- @param _nPresumedLength estimation for the length of the upcoming section. If greater 0, this
+ @param _nPresumedLength estimation for the length of the upcoming section. If greater 0, this
value will be written as section length and corrected (in the dtor) only if
needed. If you know how much bytes you are about to write, you may
want to use this param, saving some stream operations this way.
@@ -79,7 +79,7 @@ public:
~OStreamSection();
};
-} // namespace utl
+} // namespace utl
#endif // _UNOTOOLS_STREAMSECTION_HXX_
diff --git a/unotools/inc/unotools/streamwrap.hxx b/unotools/inc/unotools/streamwrap.hxx
index 57eedfb533b6..80cde76afbf7 100644
--- a/unotools/inc/unotools/streamwrap.hxx
+++ b/unotools/inc/unotools/streamwrap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,22 +43,22 @@ class SvStream;
namespace utl
{
- namespace stario = ::com::sun::star::io;
- namespace staruno = ::com::sun::star::uno;
+ namespace stario = ::com::sun::star::io;
+ namespace staruno = ::com::sun::star::uno;
//==================================================================
//= OInputStreamWrapper
//==================================================================
-typedef ::cppu::WeakImplHelper1 < stario::XInputStream
+typedef ::cppu::WeakImplHelper1 < stario::XInputStream
> InputStreamWrapper_Base;
// needed for some compilers
/// helper class for wrapping an SvStream into an <type scope="com.sun.star.io">XInputStream</type>
class UNOTOOLS_DLLPUBLIC OInputStreamWrapper : public InputStreamWrapper_Base
{
protected:
- ::osl::Mutex m_aMutex;
- SvStream* m_pSvStream;
- sal_Bool m_bSvStreamOwner : 1;
+ ::osl::Mutex m_aMutex;
+ SvStream* m_pSvStream;
+ sal_Bool m_bSvStreamOwner : 1;
OInputStreamWrapper()
{ m_pSvStream = 0; m_bSvStreamOwner = sal_False; }
void SetStream(SvStream* _pStream, sal_Bool bOwner )
@@ -73,11 +73,11 @@ public:
DECLARE_UNO3_AGG_DEFAULTS(OInputStreamWrapper, InputStreamWrapper_Base);
// stario::XInputStream
- virtual sal_Int32 SAL_CALL readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
- virtual sal_Int32 SAL_CALL readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
- virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
- virtual sal_Int32 SAL_CALL available() throw(stario::NotConnectedException, staruno::RuntimeException);
- virtual void SAL_CALL closeInput() throw(stario::NotConnectedException, staruno::RuntimeException);
+ virtual sal_Int32 SAL_CALL readBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
+ virtual sal_Int32 SAL_CALL readSomeBytes(staruno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
+ virtual void SAL_CALL skipBytes(sal_Int32 nBytesToSkip) throw(stario::NotConnectedException, stario::BufferSizeExceededException, staruno::RuntimeException);
+ virtual sal_Int32 SAL_CALL available() throw(stario::NotConnectedException, staruno::RuntimeException);
+ virtual void SAL_CALL closeInput() throw(stario::NotConnectedException, staruno::RuntimeException);
protected:
/// throws a NotConnectedException if the object is not connected anymore
@@ -89,8 +89,8 @@ protected:
//==================================================================
//= OSeekableInputStreamWrapper
//==================================================================
-typedef ::cppu::ImplHelper1 < ::com::sun::star::io::XSeekable
- > OSeekableInputStreamWrapper_Base;
+typedef ::cppu::ImplHelper1 < ::com::sun::star::io::XSeekable
+ > OSeekableInputStreamWrapper_Base;
/** helper class for wrapping an SvStream into an <type scope="com.sun.star.io">XInputStream</type>
which is seekable (i.e. supports the <type scope="com.sun.star.io">XSeekable</type> interface).
*/
@@ -117,7 +117,7 @@ class UNOTOOLS_DLLPUBLIC OOutputStreamWrapper : public OutputStreamWrapper_Base
{
protected:
// TODO: thread safety!
- SvStream& rStream;
+ SvStream& rStream;
public:
OOutputStreamWrapper(SvStream& _rStream) :rStream(_rStream) { }
@@ -138,8 +138,8 @@ protected:
//==================================================================
//= OSeekableOutputStreamWrapper
//==================================================================
-typedef ::cppu::ImplHelper1 < ::com::sun::star::io::XSeekable
- > OSeekableOutputStreamWrapper_Base;
+typedef ::cppu::ImplHelper1 < ::com::sun::star::io::XSeekable
+ > OSeekableOutputStreamWrapper_Base;
/** helper class for wrapping an SvStream into an <type scope="com.sun.star.io">XOutputStream</type>
which is seekable (i.e. supports the <type scope="com.sun.star.io">XSeekable</type> interface).
*/
diff --git a/unotools/inc/unotools/syslocale.hxx b/unotools/inc/unotools/syslocale.hxx
index e9c5e0b938ea..b622142ca924 100644
--- a/unotools/inc/unotools/syslocale.hxx
+++ b/unotools/inc/unotools/syslocale.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,11 +73,11 @@ public:
*/
const LocaleDataWrapper* GetLocaleDataPtr() const;
const CharClass* GetCharClassPtr() const;
- SvtSysLocaleOptions& GetOptions() const;
+ SvtSysLocaleOptions& GetOptions() const;
com::sun::star::lang::Locale GetLocale() const;
- LanguageType GetLanguage() const;
+ LanguageType GetLanguage() const;
com::sun::star::lang::Locale GetUILocale() const;
- LanguageType GetUILanguage() const;
+ LanguageType GetUILanguage() const;
/** Get the best MIME encoding matching the system locale, or if that isn't
determinable one that matches the UI locale, or UTF8 if everything else
diff --git a/unotools/inc/unotools/syslocaleoptions.hxx b/unotools/inc/unotools/syslocaleoptions.hxx
index dc3721bcaba7..5269bd2ab4b7 100644
--- a/unotools/inc/unotools/syslocaleoptions.hxx
+++ b/unotools/inc/unotools/syslocaleoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -106,14 +106,14 @@ public:
void SetLocaleConfigString( const ::rtl::OUString& rStr );
com::sun::star::lang::Locale GetLocale() const;
com::sun::star::lang::Locale GetRealLocale() const;
- LanguageType GetRealLanguage() const;
+ LanguageType GetRealLanguage() const;
/// The config string may be empty to denote the SYSTEM locale
const ::rtl::OUString& GetUILocaleConfigString() const;
void SetUILocaleConfigString( const ::rtl::OUString& rStr );
com::sun::star::lang::Locale GetUILocale() const;
com::sun::star::lang::Locale GetRealUILocale() const;
- LanguageType GetRealUILanguage() const;
+ LanguageType GetRealUILanguage() const;
/// The config string may be empty to denote the default currency of the locale
const ::rtl::OUString& GetCurrencyConfigString() const;
diff --git a/unotools/inc/unotools/tempfile.hxx b/unotools/inc/unotools/tempfile.hxx
index 3565396dd612..377a88b0d5bb 100644
--- a/unotools/inc/unotools/tempfile.hxx
+++ b/unotools/inc/unotools/tempfile.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/textsearch.hxx b/unotools/inc/unotools/textsearch.hxx
index 664105bb8b47..16ae82f7a4ff 100644
--- a/unotools/inc/unotools/textsearch.hxx
+++ b/unotools/inc/unotools/textsearch.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,12 +62,12 @@ public:
private:
String sSrchStr; // the search string
- String sReplaceStr; // the replace string
+ String sReplaceStr; // the replace string
SearchType eSrchType; // search normal/regular/LevDist
- int bWordOnly : 1; // used by normal search
- int bSrchInSel : 1; // search only in the selection
+ int bWordOnly : 1; // used by normal search
+ int bSrchInSel : 1; // search only in the selection
int bCaseSense : 1; //
// values for the "weight Levenshtein-Distance"
@@ -87,44 +87,44 @@ public:
BOOL bSrchInSel = FALSE );
SearchParam( const SearchParam& );
- const String& GetSrchStr() const { return sSrchStr; }
- const String& GetReplaceStr() const { return sReplaceStr; }
+ const String& GetSrchStr() const { return sSrchStr; }
+ const String& GetReplaceStr() const { return sReplaceStr; }
SearchType GetSrchType() const { return eSrchType; }
int IsCaseSensitive() const { return bCaseSense; }
- int IsSrchInSelection() const { return bSrchInSel; }
- int IsSrchWordOnly() const { return bWordOnly; }
+ int IsSrchInSelection() const { return bSrchInSel; }
+ int IsSrchWordOnly() const { return bWordOnly; }
- void SetSrchStr( const String& rStr ) { sSrchStr = rStr; }
- void SetReplaceStr( const String& rStr ) { sReplaceStr = rStr; }
+ void SetSrchStr( const String& rStr ) { sSrchStr = rStr; }
+ void SetReplaceStr( const String& rStr ) { sReplaceStr = rStr; }
void SetSrchType( SearchType eType ) { eSrchType = eType; }
void SetCaseSensitive( int bFlag ) { bCaseSense = bFlag; }
void SetSrchInSelection( int bFlag ) { bSrchInSel = bFlag; }
void SetSrchWordOnly( int bFlag ) { bWordOnly = bFlag; }
- int IsSrchRelaxed() const { return bLEV_Relaxed; }
- int GetLEVOther() const { return nLEV_OtherX; }
- int GetLEVShorter() const { return nLEV_ShorterY; }
- int GetLEVLonger() const { return nLEV_LongerZ; }
+ int IsSrchRelaxed() const { return bLEV_Relaxed; }
+ int GetLEVOther() const { return nLEV_OtherX; }
+ int GetLEVShorter() const { return nLEV_ShorterY; }
+ int GetLEVLonger() const { return nLEV_LongerZ; }
void SetSrchRelaxed( int bFlag ) { bLEV_Relaxed = bFlag; }
- void SetLEVOther( int nValue ) { nLEV_OtherX = nValue; }
- void SetLEVShorter( int nValue ) { nLEV_ShorterY = nValue; }
- void SetLEVLonger( int nValue ) { nLEV_LongerZ = nValue; }
+ void SetLEVOther( int nValue ) { nLEV_OtherX = nValue; }
+ void SetLEVShorter( int nValue ) { nLEV_ShorterY = nValue; }
+ void SetLEVLonger( int nValue ) { nLEV_LongerZ = nValue; }
- long GetTransliterationFlags() const { return nTransliterationFlags; }
- void SetTransliterationFlags( long nValue ) { nTransliterationFlags = nValue; }
+ long GetTransliterationFlags() const { return nTransliterationFlags; }
+ void SetTransliterationFlags( long nValue ) { nTransliterationFlags = nValue; }
};
-// Klasse zum Suchen eines Strings in einem String.
-// Unterstuetzt werden folgende Verfahren:
-// - normalen Text (Bayer/Moore)
-// - regulaere Ausdruecke
-// - gewichtete Levenshtein Distanz
+// Klasse zum Suchen eines Strings in einem String.
+// Unterstuetzt werden folgende Verfahren:
+// - normalen Text (Bayer/Moore)
+// - regulaere Ausdruecke
+// - gewichtete Levenshtein Distanz
//
-// Es kann Vorwaerts und Rueckwaerts gesucht werden!
+// Es kann Vorwaerts und Rueckwaerts gesucht werden!
class UNOTOOLS_DLLPUBLIC TextSearch
{
@@ -148,7 +148,7 @@ public:
/* search in the (selected) text the search string:
rScrTxt - the text, in in which we search
- pStart - start position for the search
+ pStart - start position for the search
pEnde - end position for the search
RETURN values == TRUE: something is found
@@ -181,7 +181,7 @@ public:
};
// ............................................................................
-} // namespace utl
+} // namespace utl
// ............................................................................
#endif
diff --git a/unotools/inc/unotools/transliterationwrapper.hxx b/unotools/inc/unotools/transliterationwrapper.hxx
index c4c340d30150..350e03784568 100644
--- a/unotools/inc/unotools/transliterationwrapper.hxx
+++ b/unotools/inc/unotools/transliterationwrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ class UNOTOOLS_DLLPUBLIC TransliterationWrapper
// not implemented, prevent usage
TransliterationWrapper( const TransliterationWrapper& );
- TransliterationWrapper& operator=( const TransliterationWrapper& );
+ TransliterationWrapper& operator=( const TransliterationWrapper& );
void loadModuleImpl() const;
void setLanguageLocaleImpl( sal_uInt16 nLang );
@@ -68,7 +68,7 @@ public:
~TransliterationWrapper();
// get current Locale / Language
- const ::com::sun::star::lang::Locale& getLocale() const { return aLocale;}
+ const ::com::sun::star::lang::Locale& getLocale() const { return aLocale;}
sal_uInt16 getLanguage() const { return nLanguage; }
sal_uInt32 getType() const { return nType; }
diff --git a/unotools/inc/unotools/ucbhelper.hxx b/unotools/inc/unotools/ucbhelper.hxx
index 7bfd0d4f4a8c..3793150bab12 100644
--- a/unotools/inc/unotools/ucbhelper.hxx
+++ b/unotools/inc/unotools/ucbhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,9 +68,9 @@ namespace utl
static sal_Bool CanMakeFolder( const String& rFolder );
static sal_Bool MakeFolder( const String& rFolder, sal_Bool bNewOnly = sal_False );
- static sal_Bool MakeFolder( ::ucbhelper::Content& rParent,
- const String& rTitle,
- ::ucbhelper::Content& rNewFolder,
+ static sal_Bool MakeFolder( ::ucbhelper::Content& rParent,
+ const String& rTitle,
+ ::ucbhelper::Content& rNewFolder,
sal_Bool bNewOnly = sal_False );
static sal_Bool HasParentFolder( const String& rFolder );
@@ -80,7 +80,7 @@ namespace utl
static sal_Bool Exists( const String& rContent );
static sal_Bool FindInPath( const String& rPath, const String& rName, String& rFile, char cDelim = ';', BOOL bAllowWildCards = TRUE );
static sal_Bool Find( const String& rFolder, const String& rName, String& rFile, BOOL bAllowWildCards = FALSE );
- static sal_Bool IsSubPath( const ::rtl::OUString& rPath, const ::rtl::OUString& rChildCandidate, const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContentProvider >& xContentProvider = ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContentProvider >() );
+ static sal_Bool IsSubPath( const ::rtl::OUString& rPath, const ::rtl::OUString& rChildCandidate, const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContentProvider >& xContentProvider = ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContentProvider >() );
static sal_Bool EqualURLs( const ::rtl::OUString& aFirstURL, const ::rtl::OUString& aSecondURL );
};
}
diff --git a/unotools/inc/unotools/ucblockbytes.hxx b/unotools/inc/unotools/ucblockbytes.hxx
index a7090d5efebc..ffc8eb5fff00 100644
--- a/unotools/inc/unotools/ucblockbytes.hxx
+++ b/unotools/inc/unotools/ucblockbytes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -116,7 +116,7 @@ class UNOTOOLS_DLLPUBLIC UcbLockBytes : public virtual SvLockBytes
NS_UNO::Reference < NS_IO::XInputStream > m_xInputStream;
NS_UNO::Reference < NS_IO::XOutputStream > m_xOutputStream;
NS_UNO::Reference < NS_IO::XSeekable > m_xSeekable;
- void* m_pCommandThread; // is alive only for compatibility reasons
+ void* m_pCommandThread; // is alive only for compatibility reasons
UcbLockBytesHandlerRef m_xHandler;
sal_uInt32 m_nRead;
@@ -127,7 +127,7 @@ class UNOTOOLS_DLLPUBLIC UcbLockBytes : public virtual SvLockBytes
sal_Bool m_bDontClose : 1;
sal_Bool m_bStreamValid : 1;
- DECL_LINK( DataAvailHdl, void * );
+ DECL_LINK( DataAvailHdl, void * );
UcbLockBytes( UcbLockBytesHandler* pHandler=NULL );
protected:
diff --git a/unotools/inc/unotools/ucbstreamhelper.hxx b/unotools/inc/unotools/ucbstreamhelper.hxx
index 8c20fd506c7b..cbd3ee904736 100644
--- a/unotools/inc/unotools/ucbstreamhelper.hxx
+++ b/unotools/inc/unotools/ucbstreamhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/undoopt.hxx b/unotools/inc/unotools/undoopt.hxx
index 840687b4b1cb..2bb1fec9b72f 100644
--- a/unotools/inc/unotools/undoopt.hxx
+++ b/unotools/inc/unotools/undoopt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/unotoolsdllapi.h b/unotools/inc/unotools/unotoolsdllapi.h
index 8f0af8db744e..a2d5f90cc451 100644
--- a/unotools/inc/unotools/unotoolsdllapi.h
+++ b/unotools/inc/unotools/unotoolsdllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,16 +28,16 @@
#ifndef INCLUDED_UNOTOOLSDLLAPI_H
#define INCLUDED_UNOTOOLSDLLAPI_H
-
+
#include "sal/types.h"
-
+
#if defined(UNOTOOLS_DLLIMPLEMENTATION)
#define UNOTOOLS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define UNOTOOLS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define UNOTOOLS_DLLPRIVATE SAL_DLLPRIVATE
-
+
#endif /* INCLUDED_UNOTOOLSDLLAPI_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/inc/unotools/unotunnelhelper.hxx b/unotools/inc/unotools/unotunnelhelper.hxx
index de9c82da995a..5b79ad21b5dc 100644
--- a/unotools/inc/unotools/unotunnelhelper.hxx
+++ b/unotools/inc/unotools/unotunnelhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -113,7 +113,7 @@ public:
sal_Bool equalTo(staruno::Sequence<sal_Int8> const& rIdentifier) throw()
{
- return rIdentifier.getLength() == sizeof(tunnelId) &&
+ return rIdentifier.getLength() == sizeof(tunnelId) &&
rtl_compareMemory(tunnelId, rIdentifier.getConstArray(), sizeof(tunnelId)) == 0;
}
diff --git a/unotools/inc/unotools/useroptions.hxx b/unotools/inc/unotools/useroptions.hxx
index 7230e3bb2da6..78f12d551d9d 100644
--- a/unotools/inc/unotools/useroptions.hxx
+++ b/unotools/inc/unotools/useroptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,21 +36,21 @@
// define ----------------------------------------------------------------
-#define USER_OPT_CITY ((USHORT)0)
-#define USER_OPT_COMPANY ((USHORT)1)
-#define USER_OPT_COUNTRY ((USHORT)2)
-#define USER_OPT_EMAIL ((USHORT)3)
-#define USER_OPT_FAX ((USHORT)4)
-#define USER_OPT_FIRSTNAME ((USHORT)5)
-#define USER_OPT_LASTNAME ((USHORT)6)
-#define USER_OPT_POSITION ((USHORT)7)
-#define USER_OPT_STATE ((USHORT)8)
-#define USER_OPT_STREET ((USHORT)9)
-#define USER_OPT_TELEPHONEHOME ((USHORT)10)
-#define USER_OPT_TELEPHONEWORK ((USHORT)11)
-#define USER_OPT_TITLE ((USHORT)12)
-#define USER_OPT_ID ((USHORT)13)
-#define USER_OPT_ZIP ((USHORT)14)
+#define USER_OPT_CITY ((USHORT)0)
+#define USER_OPT_COMPANY ((USHORT)1)
+#define USER_OPT_COUNTRY ((USHORT)2)
+#define USER_OPT_EMAIL ((USHORT)3)
+#define USER_OPT_FAX ((USHORT)4)
+#define USER_OPT_FIRSTNAME ((USHORT)5)
+#define USER_OPT_LASTNAME ((USHORT)6)
+#define USER_OPT_POSITION ((USHORT)7)
+#define USER_OPT_STATE ((USHORT)8)
+#define USER_OPT_STREET ((USHORT)9)
+#define USER_OPT_TELEPHONEHOME ((USHORT)10)
+#define USER_OPT_TELEPHONEWORK ((USHORT)11)
+#define USER_OPT_TITLE ((USHORT)12)
+#define USER_OPT_ID ((USHORT)13)
+#define USER_OPT_ZIP ((USHORT)14)
#define USER_OPT_FATHERSNAME ((USHORT)15)
#define USER_OPT_APARTMENT ((USHORT)16)
@@ -61,58 +61,58 @@ class SvtUserOptions_Impl;
class UNOTOOLS_DLLPUBLIC SvtUserOptions: public utl::detail::Options
{
private:
- SvtUserOptions_Impl* pImp;
+ SvtUserOptions_Impl* pImp;
public:
SvtUserOptions();
virtual ~SvtUserOptions();
- static ::osl::Mutex& GetInitMutex();
+ static ::osl::Mutex& GetInitMutex();
// get the address token
- ::rtl::OUString GetCompany() const;
- ::rtl::OUString GetFirstName() const;
- ::rtl::OUString GetLastName() const;
- ::rtl::OUString GetID() const;
- ::rtl::OUString GetStreet() const;
- ::rtl::OUString GetCity() const;
- ::rtl::OUString GetState() const;
- ::rtl::OUString GetZip() const;
- ::rtl::OUString GetCountry() const;
- ::rtl::OUString GetPosition() const;
- ::rtl::OUString GetTitle() const;
- ::rtl::OUString GetTelephoneHome() const;
- ::rtl::OUString GetTelephoneWork() const;
- ::rtl::OUString GetFax() const;
- ::rtl::OUString GetEmail() const;
- ::rtl::OUString GetCustomerNumber() const;
+ ::rtl::OUString GetCompany() const;
+ ::rtl::OUString GetFirstName() const;
+ ::rtl::OUString GetLastName() const;
+ ::rtl::OUString GetID() const;
+ ::rtl::OUString GetStreet() const;
+ ::rtl::OUString GetCity() const;
+ ::rtl::OUString GetState() const;
+ ::rtl::OUString GetZip() const;
+ ::rtl::OUString GetCountry() const;
+ ::rtl::OUString GetPosition() const;
+ ::rtl::OUString GetTitle() const;
+ ::rtl::OUString GetTelephoneHome() const;
+ ::rtl::OUString GetTelephoneWork() const;
+ ::rtl::OUString GetFax() const;
+ ::rtl::OUString GetEmail() const;
+ ::rtl::OUString GetCustomerNumber() const;
::rtl::OUString GetFathersName() const;
::rtl::OUString GetApartment() const;
- ::rtl::OUString GetFullName() const;
- ::rtl::OUString GetLocale() const;
+ ::rtl::OUString GetFullName() const;
+ ::rtl::OUString GetLocale() const;
// set the address token
- void SetCompany( const ::rtl::OUString& rNewToken );
- void SetFirstName( const ::rtl::OUString& rNewToken );
- void SetLastName( const ::rtl::OUString& rNewToken );
- void SetID( const ::rtl::OUString& rNewToken );
- void SetStreet( const ::rtl::OUString& rNewToken );
- void SetCity( const ::rtl::OUString& rNewToken );
- void SetState( const ::rtl::OUString& rNewToken );
- void SetZip( const ::rtl::OUString& rNewToken );
- void SetCountry( const ::rtl::OUString& rNewToken );
- void SetPosition( const ::rtl::OUString& rNewToken );
- void SetTitle( const ::rtl::OUString& rNewToken );
- void SetTelephoneHome( const ::rtl::OUString& rNewToken );
- void SetTelephoneWork( const ::rtl::OUString& rNewToken );
- void SetFax( const ::rtl::OUString& rNewToken );
- void SetEmail( const ::rtl::OUString& rNewToken );
- void SetCustomerNumber( const ::rtl::OUString& rNewToken );
+ void SetCompany( const ::rtl::OUString& rNewToken );
+ void SetFirstName( const ::rtl::OUString& rNewToken );
+ void SetLastName( const ::rtl::OUString& rNewToken );
+ void SetID( const ::rtl::OUString& rNewToken );
+ void SetStreet( const ::rtl::OUString& rNewToken );
+ void SetCity( const ::rtl::OUString& rNewToken );
+ void SetState( const ::rtl::OUString& rNewToken );
+ void SetZip( const ::rtl::OUString& rNewToken );
+ void SetCountry( const ::rtl::OUString& rNewToken );
+ void SetPosition( const ::rtl::OUString& rNewToken );
+ void SetTitle( const ::rtl::OUString& rNewToken );
+ void SetTelephoneHome( const ::rtl::OUString& rNewToken );
+ void SetTelephoneWork( const ::rtl::OUString& rNewToken );
+ void SetFax( const ::rtl::OUString& rNewToken );
+ void SetEmail( const ::rtl::OUString& rNewToken );
+ void SetCustomerNumber( const ::rtl::OUString& rNewToken );
void SetFathersName( const ::rtl::OUString& rNewToken );
void SetApartment( const ::rtl::OUString& rNewToken );
- sal_Bool IsTokenReadonly( USHORT nToken ) const;
+ sal_Bool IsTokenReadonly( USHORT nToken ) const;
::rtl::OUString GetToken(USHORT nToken) const;
};
diff --git a/unotools/inc/unotools/useroptions_const.hxx b/unotools/inc/unotools/useroptions_const.hxx
index e71ef8f4003d..cd395b692c7c 100644
--- a/unotools/inc/unotools/useroptions_const.hxx
+++ b/unotools/inc/unotools/useroptions_const.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/inc/unotools/viewoptions.hxx b/unotools/inc/unotools/viewoptions.hxx
index 34c00590dc0a..07fefb26868d 100644
--- a/unotools/inc/unotools/viewoptions.hxx
+++ b/unotools/inc/unotools/viewoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_VIEWOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include "unotools/unotoolsdllapi.h"
@@ -43,29 +43,29 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
class SvtViewOptionsBase_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @descr Use these enum values to specify right list in configuration in which your view data are saved.
+ @descr Use these enum values to specify right list in configuration in which your view data are saved.
*//*-*************************************************************************************************************/
enum EViewType
{
- E_DIALOG = 0,
- E_TABDIALOG = 1,
- E_TABPAGE = 2,
- E_WINDOW = 3
+ E_DIALOG = 0,
+ E_TABDIALOG = 1,
+ E_TABPAGE = 2,
+ E_WINDOW = 3
};
/*-************************************************************************************************************//**
- @short collect informations about view features
+ @short collect informations about view features
@descr We support different basetypes of views like dialogs, tab-dialogs, tab-pages and normal windows.
You must specify your basetype by using right enum value and must give us a valid name for your
subkey in registry! We support some fix features for some bastypes and user data as string for all!
@@ -89,35 +89,35 @@ enum EViewType
structure of configuration:
- org.openoffice.Office.Views [package]
- /Dialogs [set]
- /Dialog_FileOpen [DialogType]
- /Dialog_ImportGraphics [DialogType]
+ org.openoffice.Office.Views [package]
+ /Dialogs [set]
+ /Dialog_FileOpen [DialogType]
+ /Dialog_ImportGraphics [DialogType]
...
- /Dialog_<YourName> [DialogType]
+ /Dialog_<YourName> [DialogType]
- /TabDialogs [set]
- /TabDialog_001 [TabDialogType]
- /TabDialog_Blubber [TabDialogType]
+ /TabDialogs [set]
+ /TabDialog_001 [TabDialogType]
+ /TabDialog_Blubber [TabDialogType]
...
- /TabDialog_<YourName> [TabDialogType]
+ /TabDialog_<YourName> [TabDialogType]
- /TabPages [set]
- /TabPage_XXX [TabPageType]
- /TabPage_Date [TabPageType]
+ /TabPages [set]
+ /TabPage_XXX [TabPageType]
+ /TabPage_Date [TabPageType]
...
- /TabPage_<YourName> [TabPageType]
+ /TabPage_<YourName> [TabPageType]
- /Windows [set]
- /Window_User [WindowType]
- /Window_Options [WindowType]
+ /Windows [set]
+ /Window_User [WindowType]
+ /Window_Options [WindowType]
...
- /Window_<YourName> [WindowType]
+ /Window_<YourName> [WindowType]
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class UNOTOOLS_DLLPUBLIC SvtViewOptions: public utl::detail::Options
@@ -145,28 +145,28 @@ class UNOTOOLS_DLLPUBLIC SvtViewOptions: public utl::detail::Options
*/
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will de-/initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will de-/initialize an instance with default values.
You must give us the basic type of your view and a name which specify right entry
in dynamical configuration list. If entry not exist, we create a new one!
- @seealso enum EViewType
+ @seealso enum EViewType
- @param "eType" specify type of your view and is used to use right data container!
- @param "sViewName" specify the name of your view and is the key name in data list too.
- @return -
+ @param "eType" specify type of your view and is used to use right data container!
+ @param "sViewName" specify the name of your view and is the key name in data list too.
+ @return -
- @onerror An assertion is thrown in debug version. Otherwise we do nothing!
+ @onerror An assertion is thrown in debug version. Otherwise we do nothing!
*//*-*****************************************************************************************************/
SvtViewOptions( EViewType eType ,
@@ -180,7 +180,7 @@ class UNOTOOLS_DLLPUBLIC SvtViewOptions: public utl::detail::Options
@seealso -
@param -
- @return -
+ @return -
@onerror -
*//*-*****************************************************************************************************/
@@ -189,35 +189,35 @@ class UNOTOOLS_DLLPUBLIC SvtViewOptions: public utl::detail::Options
static void ReleaseOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short use it to get information about existing entries in configuration
- @descr The methods to set/get the position or size will create a new entry automaticly if
+ @short use it to get information about existing entries in configuration
+ @descr The methods to set/get the position or size will create a new entry automaticly if
it not already exist and work with default values!
If this a problem for you - you MUST call these method before and
you must make up your own mind about that.
@seealso -
- @onerror No error should occure.
+ @onerror No error should occure.
*//*-*****************************************************************************************************/
sal_Bool Exists() const;
/*-****************************************************************************************************//**
- @short use it to delete an entry of dynamic view set
- @descr You can use this method to delete anexisting node in configuration.
+ @short use it to delete an entry of dynamic view set
+ @descr You can use this method to delete anexisting node in configuration.
But if you call a Set- or Get- method again on this instance
the item is created again! If you do nothing after this call
your view will die relay in configuration ...
- @seealso method Exist()
+ @seealso method Exist()
- @return True if delete OK, False otherwise.
+ @return True if delete OK, False otherwise.
- @onerror We return sal_False.
+ @onerror We return sal_False.
*//*-*****************************************************************************************************/
sal_Bool Delete();
@@ -237,41 +237,41 @@ class UNOTOOLS_DLLPUBLIC SvtViewOptions: public utl::detail::Options
void SetWindowState( const ::rtl::OUString& sState );
/*-****************************************************************************************************//**
- @short use it to set/get the page number which was the last active one
- @descr It's only supported for: - tab-dialogs
+ @short use it to set/get the page number which was the last active one
+ @descr It's only supported for: - tab-dialogs
If you call it for other ones you will get an assertion in debug version.
In a product version we do nothing!
- @seealso -
+ @seealso -
- @onerror An assertion is thrown in debug version. Otherwise we do nothing!
+ @onerror An assertion is thrown in debug version. Otherwise we do nothing!
*//*-*****************************************************************************************************/
sal_Int32 GetPageID( ) const;
void SetPageID( sal_Int32 nID );
/*-****************************************************************************************************//**
- @short use it to set/get the visual state of a window
- @descr It's only supported for: - windows
+ @short use it to set/get the visual state of a window
+ @descr It's only supported for: - windows
If you call it for other ones you will get an assertion in debug version.
In a product version we do nothing!
- @seealso -
+ @seealso -
- @onerror An assertion is thrown in debug version. Otherwise we do nothing!
+ @onerror An assertion is thrown in debug version. Otherwise we do nothing!
*//*-*****************************************************************************************************/
sal_Bool IsVisible ( ) const;
void SetVisible( sal_Bool bState );
/*-****************************************************************************************************//**
- @short use it to set/get the extended user data (consisting of a set of named scalar values)
- @descr It's supported for ALL types!
+ @short use it to set/get the extended user data (consisting of a set of named scalar values)
+ @descr It's supported for ALL types!
Every view can handle its own user defined data set.
@seealso -
- @onerror In the non-product version, an assertion is made. In a product version, errors are silently ignored.
+ @onerror In the non-product version, an assertion is made. In a product version, errors are silently ignored.
*//*-*****************************************************************************************************/
/*
#ifdef TF_OLDVIEW
@@ -289,7 +289,7 @@ class UNOTOOLS_DLLPUBLIC SvtViewOptions: public utl::detail::Options
@seealso -
- @onerror In the non-product version, an assertion is made. In a product version, errors are silently ignored.
+ @onerror In the non-product version, an assertion is made. In a product version, errors are silently ignored.
*//*-*****************************************************************************************************/
::com::sun::star::uno::Any GetUserItem( const ::rtl::OUString& sName ) const;
@@ -297,37 +297,37 @@ class UNOTOOLS_DLLPUBLIC SvtViewOptions: public utl::detail::Options
const ::com::sun::star::uno::Any& aValue );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class is threadsafe.
+ @short return a reference to a static mutex
+ @descr These class is threadsafe.
We create a static mutex only for one time and use it to protect our refcount and container
member!
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
UNOTOOLS_DLLPRIVATE static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
/// specify which list of views in configuration is used! This can't be a static value!!!
/// ... because we need this value to work with right static data container.
- EViewType m_eViewType ;
- ::rtl::OUString m_sViewName ;
+ EViewType m_eViewType ;
+ ::rtl::OUString m_sViewName ;
/// - impl. data container as dynamic pointer for smaller memory requirements!
/// - internal ref count mechanism
@@ -349,7 +349,7 @@ class UNOTOOLS_DLLPUBLIC SvtViewOptions: public utl::detail::Options
static SvtViewOptionsBase_Impl* m_pDataContainer_Windows ; /// hold data for all windows
static sal_Int32 m_nRefCount_Windows ;
-}; // class SvtViewOptions
+}; // class SvtViewOptions
#endif // #ifndef INCLUDED_unotools_VIEWOPTIONS_HXX
diff --git a/unotools/inc/unotools/workingsetoptions.hxx b/unotools/inc/unotools/workingsetoptions.hxx
index bad092a207cc..1a21e3706bb2 100644
--- a/unotools/inc/unotools/workingsetoptions.hxx
+++ b/unotools/inc/unotools/workingsetoptions.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
#define INCLUDED_unotools_WORKINGSETOPTIONS_HXX
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <sal/types.h>
@@ -39,12 +39,12 @@
#include <unotools/options.hxx>
//_________________________________________________________________________________________________________________
-// forward declarations
+// forward declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short forward declaration to our private date container implementation
- @descr We use these class as internal member to support small memory requirements.
+ @short forward declaration to our private date container implementation
+ @descr We use these class as internal member to support small memory requirements.
You can create the container if it is neccessary. The class which use these mechanism
is faster and smaller then a complete implementation!
*//*-*************************************************************************************************************/
@@ -52,91 +52,91 @@
class SvtWorkingSetOptions_Impl;
//_________________________________________________________________________________________________________________
-// declarations
+// declarations
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
- @short collect informations about security features
+ @short collect informations about security features
@descr -
- @implements -
- @base -
+ @implements -
+ @base -
- @devstatus ready to use
+ @devstatus ready to use
*//*-*************************************************************************************************************/
class SvtWorkingSetOptions: public utl::detail::Options
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short standard constructor and destructor
- @descr This will initialize an instance with default values.
+ @short standard constructor and destructor
+ @descr This will initialize an instance with default values.
We implement these class with a refcount mechanism! Every instance of this class increase it
at create and decrease it at delete time - but all instances use the same data container!
He is implemented as a static member ...
- @seealso member m_nRefCount
- @seealso member m_pDataContainer
+ @seealso member m_nRefCount
+ @seealso member m_pDataContainer
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
SvtWorkingSetOptions();
virtual ~SvtWorkingSetOptions();
//---------------------------------------------------------------------------------------------------------
- // interface
+ // interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short interface methods to get and set value of config key "org.openoffice.Office.Common/Security/Scripting/SecureURL"
- @descr These value defines the editing view for documents and windows, which have to be restored
+ @short interface methods to get and set value of config key "org.openoffice.Office.Common/Security/Scripting/SecureURL"
+ @descr These value defines the editing view for documents and windows, which have to be restored
when restarting StarOffice. The list gets filled, if Save/WorkingSet = true.
- @seealso -
+ @seealso -
- @param "seqWindowList", new values to set it in configuration.
- @return The values which represent current state of internal variable.
+ @param "seqWindowList", new values to set it in configuration.
+ @return The values which represent current state of internal variable.
- @onerror No error should occurre!
+ @onerror No error should occurre!
*//*-*****************************************************************************************************/
- ::com::sun::star::uno::Sequence< ::rtl::OUString > GetWindowList( ) const ;
- void SetWindowList( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& seqWindowList ) ;
+ ::com::sun::star::uno::Sequence< ::rtl::OUString > GetWindowList( ) const ;
+ void SetWindowList( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& seqWindowList ) ;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short return a reference to a static mutex
- @descr These class use his own static mutex to be threadsafe.
+ @short return a reference to a static mutex
+ @descr These class use his own static mutex to be threadsafe.
We create a static mutex only for one ime and use at different times.
- @seealso -
+ @seealso -
- @param -
- @return A reference to a static mutex member.
+ @param -
+ @return A reference to a static mutex member.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
static ::osl::Mutex& GetOwnStaticMutex();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -149,10 +149,10 @@ class SvtWorkingSetOptions: public utl::detail::Options
Do it in your source only.
*/
- static SvtWorkingSetOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
- static sal_Int32 m_nRefCount ; /// internal ref count mechanism
+ static SvtWorkingSetOptions_Impl* m_pDataContainer ; /// impl. data container as dynamic pointer for smaller memory requirements!
+ static sal_Int32 m_nRefCount ; /// internal ref count mechanism
-}; // class SvtWorkingSetOptions
+}; // class SvtWorkingSetOptions
#endif // #ifndef INCLUDED_unotools_WORKINGSETOPTIONS_HXX
diff --git a/unotools/inc/unotools/xmlaccelcfg.hxx b/unotools/inc/unotools/xmlaccelcfg.hxx
index d3421f65a064..3ee8006617d3 100644
--- a/unotools/inc/unotools/xmlaccelcfg.hxx
+++ b/unotools/inc/unotools/xmlaccelcfg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,10 +78,10 @@ class OReadAccelatorDocumentHandler : public ::com::sun::star::xml::sax::XDocume
private:
::rtl::OUString getErrorLineString();
- int m_nElementDepth;
- sal_Bool m_bAcceleratorMode;
- sal_Bool m_bItemCloseExpected;
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > m_xLocator;
+ int m_nElementDepth;
+ sal_Bool m_bAcceleratorMode;
+ sal_Bool m_bItemCloseExpected;
+ ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XLocator > m_xLocator;
SvtAcceleratorItemList& m_aReadAcceleratorList;
};
@@ -101,8 +101,8 @@ class OWriteAccelatorDocumentHandler
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XDocumentHandler > m_xWriteDocumentHandler;
::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > m_xEmptyList;
- ::rtl::OUString m_aAttributeType;
- const SvtAcceleratorItemList& m_aWriteAcceleratorList;
+ ::rtl::OUString m_aAttributeType;
+ const SvtAcceleratorItemList& m_aWriteAcceleratorList;
};
#endif // INCLUDED_unotools_XMLACCELCFG_HXX
diff --git a/unotools/qa/complex/tempfile/TempFileTest.java b/unotools/qa/complex/tempfile/TempFileTest.java
index fa50bdeee043..581d7ae97b15 100644
--- a/unotools/qa/complex/tempfile/TempFileTest.java
+++ b/unotools/qa/complex/tempfile/TempFileTest.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/qa/complex/tempfile/TempFileUnitTest.java b/unotools/qa/complex/tempfile/TempFileUnitTest.java
index 5cd0b7292105..bdecf39c0602 100644
--- a/unotools/qa/complex/tempfile/TempFileUnitTest.java
+++ b/unotools/qa/complex/tempfile/TempFileUnitTest.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,17 +37,17 @@ import com.sun.star.uno.UnoRuntime;
public class TempFileUnitTest extends ComplexTestCase {
private XMultiServiceFactory m_xMSF = null;
private XSimpleFileAccess m_xSFA = null;
-
+
public String[] getTestMethodNames() {
return new String[] {
"ExecuteTest01",
"ExecuteTest02"};
}
-
+
public String getTestObjectName() {
return "TempFileUnitTest";
}
-
+
public void before() {
m_xMSF = (XMultiServiceFactory)param.getMSF();
if ( m_xMSF == null ) {
@@ -67,17 +67,17 @@ public class TempFileUnitTest extends ComplexTestCase {
failed ( "Cannot get simple file access!" );
}
}
-
+
public void after() {
m_xMSF = null;
m_xSFA = null;
}
-
+
public void ExecuteTest01() {
TempFileTest aTest = new Test01( m_xMSF, m_xSFA, log );
assure( "Test01 failed!", aTest.test() );
}
-
+
public void ExecuteTest02() {
TempFileTest aTest = new Test02( m_xMSF, m_xSFA, log );
assure( "Test02 failed!", aTest.test() );
diff --git a/unotools/qa/complex/tempfile/Test01.java b/unotools/qa/complex/tempfile/Test01.java
index dbf3d6c15de2..ba8da9d0d189 100644
--- a/unotools/qa/complex/tempfile/Test01.java
+++ b/unotools/qa/complex/tempfile/Test01.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,13 +41,13 @@ public class Test01 implements TempFileTest {
XMultiServiceFactory m_xMSF = null;
XSimpleFileAccess m_xSFA = null;
TestHelper m_aTestHelper = null;
-
+
public Test01(XMultiServiceFactory xMSF, XSimpleFileAccess xSFA, LogWriter aLogWriter) {
m_xMSF = xMSF;
m_xSFA = xSFA;
m_aTestHelper = new TestHelper(aLogWriter, "Test01: ");
}
-
+
public boolean test() {
XTempFile xTempFile = null;
XTruncate xTruncate = null;
@@ -65,19 +65,19 @@ public class Test01 implements TempFileTest {
m_aTestHelper.Error( "Cannot create TempFile. exception: " + e );
return false;
}
-
+
//retrieve the tempfile URL
if ( xTempFile == null ) {
m_aTestHelper.Error( "Cannot get XTempFile interface." );
return false;
}
-
+
try {
//compare the file name with the name in the URL.
sFileURL = m_aTestHelper.GetTempFileURL( xTempFile );
sFileName = m_aTestHelper.GetTempFileName( xTempFile );
m_aTestHelper.CompareFileNameAndURL( sFileName, sFileURL );
-
+
//write to the stream using the service.
byte pBytesIn[] = new byte[9];
byte pBytesOut1[][] = new byte [1][9];
@@ -85,7 +85,7 @@ public class Test01 implements TempFileTest {
Random oRandom = new Random();
oRandom.nextBytes( pBytesIn );
m_aTestHelper.WriteBytesWithStream( pBytesIn, xTempFile );
-
+
//check the result by reading from the service.
xTempFile.seek(0);
m_aTestHelper.ReadBytesWithStream( pBytesOut1, pBytesIn.length + 1, xTempFile );
@@ -94,7 +94,7 @@ public class Test01 implements TempFileTest {
m_aTestHelper.Error( "Tempfile outputs false data!" );
}
}
-
+
//check the result by reading from the file directly.
m_aTestHelper.ReadDirectlyFromTempFile( pBytesOut2, pBytesIn.length + 1, m_xSFA, sFileURL );
for ( int i = 0; i < pBytesIn.length; i++ ) {
@@ -102,7 +102,7 @@ public class Test01 implements TempFileTest {
m_aTestHelper.Error( "Tempfile contains false data!" );
}
}
-
+
//close the object(by closing input and output), check that the file was removed.
xTempFile.setRemoveFile( false );
m_aTestHelper.CloseTempFile( xTempFile );
diff --git a/unotools/qa/complex/tempfile/Test02.java b/unotools/qa/complex/tempfile/Test02.java
index 18ca4de2e04b..b30231ad2fdb 100644
--- a/unotools/qa/complex/tempfile/Test02.java
+++ b/unotools/qa/complex/tempfile/Test02.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,17 +37,17 @@ import java.util.Random;
import share.LogWriter;
public class Test02 implements TempFileTest {
-
+
XMultiServiceFactory m_xMSF;
XSimpleFileAccess m_xSFA;
TestHelper m_aTestHelper;
-
+
public Test02(XMultiServiceFactory xMSF, XSimpleFileAccess xSFA, LogWriter aLogWriter) {
m_xMSF = xMSF;
m_xSFA = xSFA;
m_aTestHelper = new TestHelper(aLogWriter, "Test02: ");
}
-
+
public boolean test() {
Object oTempFile = null;
XTempFile xTempFile = null;
@@ -73,16 +73,16 @@ public class Test02 implements TempFileTest {
Random oRandom = new Random();
oRandom.nextBytes( pBytesIn );
m_aTestHelper.WriteBytesWithStream( pBytesIn, xTempFile );
-
+
//get the URL.
sFileURL = m_aTestHelper.GetTempFileURL( xTempFile );
-
+
//let the service not to remove the URL.
m_aTestHelper.SetTempFileRemove( xTempFile, false );
-
+
//close the tempfile by closing input and output.
m_aTestHelper.CloseTempFile( xTempFile );
-
+
//check that the file is still available.
//xTempFile.seek(0);
m_aTestHelper.ReadDirectlyFromTempFile( pBytesOut, pBytesIn.length + 1, m_xSFA, sFileURL );
diff --git a/unotools/qa/complex/tempfile/TestHelper.java b/unotools/qa/complex/tempfile/TestHelper.java
index 6edc2c362fa8..09d524b51005 100644
--- a/unotools/qa/complex/tempfile/TestHelper.java
+++ b/unotools/qa/complex/tempfile/TestHelper.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ import share.LogWriter;
public class TestHelper {
LogWriter m_aLogWriter;
String m_sTestPrefix;
-
+
public TestHelper( LogWriter aLogWriter, String sTestPrefix ) {
m_aLogWriter = aLogWriter;
m_sTestPrefix = sTestPrefix;
@@ -51,7 +51,7 @@ public class TestHelper {
Error( "Cannot set TempFileRemove. exception: " + e );
}
}
-
+
public boolean GetTempFileRemove ( XTempFile xTempFile ) {
boolean b = false;
try {
@@ -61,7 +61,7 @@ public class TestHelper {
}
return b;
}
-
+
public String GetTempFileURL ( XTempFile xTempFile ) {
String sTempFileURL = null;
try {
@@ -74,7 +74,7 @@ public class TestHelper {
}
return sTempFileURL;
}
-
+
public String GetTempFileName( XTempFile xTempFile ) {
String sTempFileName = null;
try {
@@ -87,7 +87,7 @@ public class TestHelper {
}
return sTempFileName;
}
-
+
public boolean CompareFileNameAndURL ( String sTempFileName, String sTempFileURL ) {
boolean bRet = false;
try {
@@ -100,7 +100,7 @@ public class TestHelper {
}
return bRet;
}
-
+
public void WriteBytesWithStream( byte [] pBytes, XTempFile xTempFile ) {
try {
XOutputStream xOutTemp = xTempFile.getOutputStream();
@@ -114,7 +114,7 @@ public class TestHelper {
Error( "Cannot write to stream. exception: " + e );
}
}
-
+
public void ReadBytesWithStream( byte [][] pBytes, int nBytes, XTempFile xTempFile ) {
try {
XInputStream xInTemp = xTempFile.getInputStream();
@@ -150,7 +150,7 @@ public class TestHelper {
"ReadDirectlyFromTempFile(). exception: " + e );
}
}
-
+
public void CloseTempFile( XTempFile xTempFile ) {
XOutputStream xOutTemp = null;
XInputStream xInTemp = null;
@@ -182,7 +182,7 @@ public class TestHelper {
Error( "Cannot close input stream. exception:" + e );
}
}
-
+
public void KillTempFile ( String sTempFileURL, XSimpleFileAccess xSFA ) {
try {
if ( sTempFileURL != null ) {
@@ -197,7 +197,7 @@ public class TestHelper {
"KillTempFile(): " + e);
}
}
-
+
public boolean IfTempFileExists( XSimpleFileAccess xSFA, String sTempFileURL ) {
boolean bRet = false;
try {
@@ -206,7 +206,7 @@ public class TestHelper {
bRet = xSFA.exists( sTempFileURL );
Message ( "Tempfile " + ( bRet ? "still " : "no longer " ) + "exists." );
}
- }
+ }
}
catch( Exception e ) {
Error( "Exception caught in TestHelper." +
@@ -214,11 +214,11 @@ public class TestHelper {
}
return bRet;
}
-
+
public void Error( String sError ) {
m_aLogWriter.println( m_sTestPrefix + "Error: " + sError );
}
-
+
public void Message( String sMessage ) {
m_aLogWriter.println( m_sTestPrefix + sMessage );
}
diff --git a/unotools/source/accessibility/accessiblerelationsethelper.cxx b/unotools/source/accessibility/accessiblerelationsethelper.cxx
index 55cfa3e6ef42..904947f54ca9 100644
--- a/unotools/source/accessibility/accessiblerelationsethelper.cxx
+++ b/unotools/source/accessibility/accessiblerelationsethelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,10 +35,10 @@
#include <vector>
#include <comphelper/sequence.hxx>
-using namespace ::utl;
-using namespace ::rtl;
-using namespace ::com::sun::star;
-using namespace ::com::sun::star::accessibility;
+using namespace ::utl;
+using namespace ::rtl;
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::accessibility;
class AccessibleRelationSetHelperImpl
{
diff --git a/unotools/source/accessibility/accessiblestatesethelper.cxx b/unotools/source/accessibility/accessiblestatesethelper.cxx
index d2f1e50960f6..6a371a048ae3 100644
--- a/unotools/source/accessibility/accessiblestatesethelper.cxx
+++ b/unotools/source/accessibility/accessiblestatesethelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,10 +38,10 @@
// it has the size of 64 because I use a uInt64
#define BITFIELDSIZE 64
-using namespace ::utl;
-using namespace ::rtl;
-using namespace ::com::sun::star;
-using namespace ::com::sun::star::accessibility;
+using namespace ::utl;
+using namespace ::rtl;
+using namespace ::com::sun::star;
+using namespace ::com::sun::star::accessibility;
class AccessibleStateSetHelperImpl
{
@@ -65,7 +65,7 @@ public:
AccessibleStateSetHelperImpl* pNewStates)
throw (uno::RuntimeException);
- inline void AddStates( const sal_Int64 _nStates ) SAL_THROW( ( ) );
+ inline void AddStates( const sal_Int64 _nStates ) SAL_THROW( ( ) );
private:
sal_uInt64 maStates;
diff --git a/unotools/source/config/accelcfg.cxx b/unotools/source/config/accelcfg.cxx
index a44e9639dcbf..e86444735325 100644
--- a/unotools/source/config/accelcfg.cxx
+++ b/unotools/source/config/accelcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,14 +68,14 @@ class SvtAcceleratorConfig_Impl
public:
SvtAcceleratorItemList aList;
- bool bModified;
+ bool bModified;
SvtAcceleratorConfig_Impl()
: bModified( FALSE )
{}
SvtAcceleratorConfig_Impl( Reference< XInputStream >& xInputStream );
- bool Commit( Reference< XOutputStream >& xOutputStream );
+ bool Commit( Reference< XOutputStream >& xOutputStream );
};
// -----------------------------------------------------------------------
diff --git a/unotools/source/config/bootstrap.cxx b/unotools/source/config/bootstrap.cxx
index a9248a03804f..786eed300053 100644
--- a/unotools/source/config/bootstrap.cxx
+++ b/unotools/source/config/bootstrap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,26 +51,26 @@
// ---------------------------------------------------------------------------------------
#define BOOTSTRAP_DATA_NAME SAL_CONFIGFILE("bootstrap")
-#define BOOTSTRAP_ITEM_PRODUCT_KEY "ProductKey"
+#define BOOTSTRAP_ITEM_PRODUCT_KEY "ProductKey"
#define BOOTSTRAP_ITEM_PRODUCT_SOURCE "ProductSource"
-#define BOOTSTRAP_ITEM_VERSIONFILE "Location"
-#define BOOTSTRAP_ITEM_BUILDID "buildid"
+#define BOOTSTRAP_ITEM_VERSIONFILE "Location"
+#define BOOTSTRAP_ITEM_BUILDID "buildid"
-#define BOOTSTRAP_ITEM_BASEINSTALLATION "BaseInstallation"
-#define BOOTSTRAP_ITEM_USERINSTALLATION "UserInstallation"
+#define BOOTSTRAP_ITEM_BASEINSTALLATION "BaseInstallation"
+#define BOOTSTRAP_ITEM_USERINSTALLATION "UserInstallation"
-#define BOOTSTRAP_ITEM_SHAREDIR "SharedDataDir"
-#define BOOTSTRAP_ITEM_USERDIR "UserDataDir"
+#define BOOTSTRAP_ITEM_SHAREDIR "SharedDataDir"
+#define BOOTSTRAP_ITEM_USERDIR "UserDataDir"
-#define BOOTSTRAP_DEFAULT_BASEINSTALL "$SYSBINDIR/.."
+#define BOOTSTRAP_DEFAULT_BASEINSTALL "$SYSBINDIR/.."
-#define BOOTSTRAP_DIRNAME_SHAREDIR "share"
-#define BOOTSTRAP_DIRNAME_USERDIR "user"
+#define BOOTSTRAP_DIRNAME_SHAREDIR "share"
+#define BOOTSTRAP_DIRNAME_USERDIR "user"
-#define VERSIONFILE_SECTION "Versions"
+#define VERSIONFILE_SECTION "Versions"
-#define SETUP_DATA_NAME SAL_CONFIGFILE("setup")
-#define SETUP_ITEM_ALLUSERS "ALLUSERS"
+#define SETUP_DATA_NAME SAL_CONFIGFILE("setup")
+#define SETUP_ITEM_ALLUSERS "ALLUSERS"
// ---------------------------------------------------------------------------------------
typedef char const * AsciiString;
// ---------------------------------------------------------------------------------------
@@ -196,23 +196,23 @@ PathStatus implCheckStatusOfURL(OUString const& _sURL, osl::DirectoryItem& aDirI
{
switch( DirectoryItem::get(_sURL, aDirItem) )
{
- case DirectoryItem::E_None: // Success
+ case DirectoryItem::E_None: // Success
eStatus = Bootstrap::PATH_EXISTS;
break;
- case DirectoryItem::E_NOENT: // No such file or directory<br>
+ case DirectoryItem::E_NOENT: // No such file or directory<br>
eStatus = Bootstrap::PATH_VALID;
break;
- case DirectoryItem::E_INVAL: // the format of the parameters was not valid<br>
- case DirectoryItem::E_NAMETOOLONG: // File name too long<br>
- case DirectoryItem::E_NOTDIR: // A component of the path prefix of path is not a directory<p>
+ case DirectoryItem::E_INVAL: // the format of the parameters was not valid<br>
+ case DirectoryItem::E_NAMETOOLONG: // File name too long<br>
+ case DirectoryItem::E_NOTDIR: // A component of the path prefix of path is not a directory<p>
eStatus = Bootstrap::DATA_INVALID;
break;
// how to handle these ?
- case DirectoryItem::E_LOOP: // Too many symbolic links encountered<br>
- case DirectoryItem::E_ACCES: // permission denied<br>
+ case DirectoryItem::E_LOOP: // Too many symbolic links encountered<br>
+ case DirectoryItem::E_ACCES: // permission denied<br>
// any other error - what to do ?
default:
eStatus = Bootstrap::DATA_UNKNOWN;
diff --git a/unotools/source/config/cacheoptions.cxx b/unotools/source/config/cacheoptions.cxx
index 45f0850e8969..b87c344455bb 100644
--- a/unotools/source/config/cacheoptions.cxx
+++ b/unotools/source/config/cacheoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
#include <com/sun/star/uno/Sequence.hxx>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
using namespace ::utl;
@@ -46,66 +46,66 @@ using namespace ::osl;
using namespace ::com::sun::star::uno;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Cache" ))
-#define DEFAULT_WRITEROLE 20
-#define DEFAULT_DRAWINGOLE 20
-#define DEFAULT_GRFMGR_TOTALSIZE 10000000
-#define DEFAULT_GRFMGR_OBJECTSIZE 2400000
-#define DEFAULT_GRFMGR_OBJECTRELEASE 600
-
-#define PROPERTYNAME_WRITEROLE OUString(RTL_CONSTASCII_USTRINGPARAM("Writer/OLE_Objects"))
-#define PROPERTYNAME_DRAWINGOLE OUString(RTL_CONSTASCII_USTRINGPARAM("DrawingEngine/OLE_Objects"))
-#define PROPERTYNAME_GRFMGR_TOTALSIZE OUString(RTL_CONSTASCII_USTRINGPARAM("GraphicManager/TotalCacheSize"))
-#define PROPERTYNAME_GRFMGR_OBJECTSIZE OUString(RTL_CONSTASCII_USTRINGPARAM("GraphicManager/ObjectCacheSize"))
+#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Cache" ))
+#define DEFAULT_WRITEROLE 20
+#define DEFAULT_DRAWINGOLE 20
+#define DEFAULT_GRFMGR_TOTALSIZE 10000000
+#define DEFAULT_GRFMGR_OBJECTSIZE 2400000
+#define DEFAULT_GRFMGR_OBJECTRELEASE 600
+
+#define PROPERTYNAME_WRITEROLE OUString(RTL_CONSTASCII_USTRINGPARAM("Writer/OLE_Objects"))
+#define PROPERTYNAME_DRAWINGOLE OUString(RTL_CONSTASCII_USTRINGPARAM("DrawingEngine/OLE_Objects"))
+#define PROPERTYNAME_GRFMGR_TOTALSIZE OUString(RTL_CONSTASCII_USTRINGPARAM("GraphicManager/TotalCacheSize"))
+#define PROPERTYNAME_GRFMGR_OBJECTSIZE OUString(RTL_CONSTASCII_USTRINGPARAM("GraphicManager/ObjectCacheSize"))
#define PROPERTYNAME_GRFMGR_OBJECTRELEASE OUString(RTL_CONSTASCII_USTRINGPARAM("GraphicManager/ObjectReleaseTime"))
-#define PROPERTYHANDLE_WRITEROLE 0
-#define PROPERTYHANDLE_DRAWINGOLE 1
-#define PROPERTYHANDLE_GRFMGR_TOTALSIZE 2
-#define PROPERTYHANDLE_GRFMGR_OBJECTSIZE 3
+#define PROPERTYHANDLE_WRITEROLE 0
+#define PROPERTYHANDLE_DRAWINGOLE 1
+#define PROPERTYHANDLE_GRFMGR_TOTALSIZE 2
+#define PROPERTYHANDLE_GRFMGR_OBJECTSIZE 3
#define PROPERTYHANDLE_GRFMGR_OBJECTRELEASE 4
-#define PROPERTYCOUNT 5
+#define PROPERTYCOUNT 5
class SvtCacheOptions_Impl : public ConfigItem
{
public:
//---------------------------------------------------------------------------------------------------------
-// constructor / destructor
+// constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtCacheOptions_Impl();
~SvtCacheOptions_Impl();
//---------------------------------------------------------------------------------------------------------
-// overloaded methods of baseclass
+// overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
- virtual void Commit();
+ virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
//---------------------------------------------------------------------------------------------------------
-// public interface
+// public interface
//---------------------------------------------------------------------------------------------------------
- sal_Int32 GetWriterOLE_Objects() const;
- sal_Int32 GetDrawingEngineOLE_Objects() const;
- sal_Int32 GetGraphicManagerTotalCacheSize() const;
- sal_Int32 GetGraphicManagerObjectCacheSize() const;
- sal_Int32 GetGraphicManagerObjectReleaseTime() const;
+ sal_Int32 GetWriterOLE_Objects() const;
+ sal_Int32 GetDrawingEngineOLE_Objects() const;
+ sal_Int32 GetGraphicManagerTotalCacheSize() const;
+ sal_Int32 GetGraphicManagerObjectCacheSize() const;
+ sal_Int32 GetGraphicManagerObjectReleaseTime() const;
- void SetWriterOLE_Objects( sal_Int32 nObjects );
- void SetDrawingEngineOLE_Objects( sal_Int32 nObjects );
- void SetGraphicManagerTotalCacheSize( sal_Int32 nTotalCacheSize );
- void SetGraphicManagerObjectCacheSize( sal_Int32 nObjectCacheSize );
+ void SetWriterOLE_Objects( sal_Int32 nObjects );
+ void SetDrawingEngineOLE_Objects( sal_Int32 nObjects );
+ void SetGraphicManagerTotalCacheSize( sal_Int32 nTotalCacheSize );
+ void SetGraphicManagerObjectCacheSize( sal_Int32 nObjectCacheSize );
void SetGraphicManagerObjectReleaseTime( sal_Int32 nReleaseTimeSeconds );
//-------------------------------------------------------------------------------------------------------------
-// private methods
+// private methods
//-------------------------------------------------------------------------------------------------------------
private:
@@ -113,41 +113,41 @@ private:
static Sequence< OUString > impl_GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
-// private member
+// private member
//-------------------------------------------------------------------------------------------------------------
private:
- sal_Int32 mnWriterOLE;
- sal_Int32 mnDrawingOLE;
- sal_Int32 mnGrfMgrTotalSize;
- sal_Int32 mnGrfMgrObjectSize;
+ sal_Int32 mnWriterOLE;
+ sal_Int32 mnDrawingOLE;
+ sal_Int32 mnGrfMgrTotalSize;
+ sal_Int32 mnGrfMgrObjectSize;
sal_Int32 mnGrfMgrObjectRelease;
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtCacheOptions_Impl::SvtCacheOptions_Impl() :
- ConfigItem( ROOTNODE_START ),
+ ConfigItem( ROOTNODE_START ),
mnWriterOLE( DEFAULT_WRITEROLE ),
mnDrawingOLE( DEFAULT_DRAWINGOLE ),
mnGrfMgrTotalSize( DEFAULT_GRFMGR_TOTALSIZE ),
mnGrfMgrObjectSize( DEFAULT_GRFMGR_OBJECTSIZE ),
mnGrfMgrObjectRelease( DEFAULT_GRFMGR_OBJECTRELEASE )
{
- Sequence< OUString > seqNames( impl_GetPropertyNames() );
- Sequence< Any > seqValues = GetProperties( seqNames ) ;
+ Sequence< OUString > seqNames( impl_GetPropertyNames() );
+ Sequence< Any > seqValues = GetProperties( seqNames ) ;
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtCacheOptions_Impl::SvtCacheOptions_Impl()\nI miss some values of configuration keys!\n" );
// Copy values from list in right order to ouer internal member.
sal_Int32 nPropertyCount = seqValues.getLength();
- sal_Int32 nProperty = 0;
+ sal_Int32 nProperty = 0;
for( nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
@@ -195,7 +195,7 @@ SvtCacheOptions_Impl::SvtCacheOptions_Impl() :
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtCacheOptions_Impl::~SvtCacheOptions_Impl()
{
@@ -204,12 +204,12 @@ SvtCacheOptions_Impl::~SvtCacheOptions_Impl()
}
//*****************************************************************************************************************
-// Commit
+// Commit
//*****************************************************************************************************************
void SvtCacheOptions_Impl::Commit()
{
- Sequence< OUString > aSeqNames( impl_GetPropertyNames() );
- Sequence< Any > aSeqValues( aSeqNames.getLength() );
+ Sequence< OUString > aSeqNames( impl_GetPropertyNames() );
+ Sequence< Any > aSeqValues( aSeqNames.getLength() );
for( sal_Int32 nProperty = 0, nCount = aSeqNames.getLength(); nProperty < nCount; ++nProperty )
{
@@ -245,7 +245,7 @@ void SvtCacheOptions_Impl::Notify( const Sequence< rtl::OUString >& )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions_Impl::GetWriterOLE_Objects() const
{
@@ -253,7 +253,7 @@ sal_Int32 SvtCacheOptions_Impl::GetWriterOLE_Objects() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions_Impl::GetDrawingEngineOLE_Objects() const
{
@@ -261,7 +261,7 @@ sal_Int32 SvtCacheOptions_Impl::GetDrawingEngineOLE_Objects() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions_Impl::GetGraphicManagerTotalCacheSize() const
{
@@ -269,7 +269,7 @@ sal_Int32 SvtCacheOptions_Impl::GetGraphicManagerTotalCacheSize() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions_Impl::GetGraphicManagerObjectCacheSize() const
{
@@ -277,7 +277,7 @@ sal_Int32 SvtCacheOptions_Impl::GetGraphicManagerObjectCacheSize() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions_Impl::GetGraphicManagerObjectReleaseTime() const
{
@@ -285,7 +285,7 @@ sal_Int32 SvtCacheOptions_Impl::GetGraphicManagerObjectReleaseTime() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions_Impl::SetWriterOLE_Objects( sal_Int32 nWriterOLE )
{
@@ -294,7 +294,7 @@ void SvtCacheOptions_Impl::SetWriterOLE_Objects( sal_Int32 nWriterOLE )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions_Impl::SetDrawingEngineOLE_Objects( sal_Int32 nDrawingOLE )
{
@@ -303,7 +303,7 @@ void SvtCacheOptions_Impl::SetDrawingEngineOLE_Objects( sal_Int32 nDrawingOLE )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions_Impl::SetGraphicManagerTotalCacheSize( sal_Int32 nGrfMgrTotalSize )
{
@@ -312,7 +312,7 @@ void SvtCacheOptions_Impl::SetGraphicManagerTotalCacheSize( sal_Int32 nGrfMgrTot
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions_Impl::SetGraphicManagerObjectCacheSize( sal_Int32 nGrfMgrObjectSize )
{
@@ -321,7 +321,7 @@ void SvtCacheOptions_Impl::SetGraphicManagerObjectCacheSize( sal_Int32 nGrfMgrOb
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions_Impl::SetGraphicManagerObjectReleaseTime( sal_Int32 nGrfMgrObjectReleaseTime )
{
@@ -330,7 +330,7 @@ void SvtCacheOptions_Impl::SetGraphicManagerObjectReleaseTime( sal_Int32 nGrfMgr
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtCacheOptions_Impl::impl_GetPropertyNames()
{
@@ -350,15 +350,15 @@ Sequence< OUString > SvtCacheOptions_Impl::impl_GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtCacheOptions_Impl* SvtCacheOptions::m_pDataContainer = NULL;
-sal_Int32 SvtCacheOptions::m_nRefCount = 0;
+SvtCacheOptions_Impl* SvtCacheOptions::m_pDataContainer = NULL;
+sal_Int32 SvtCacheOptions::m_nRefCount = 0;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtCacheOptions::SvtCacheOptions()
{
@@ -374,7 +374,7 @@ SvtCacheOptions::SvtCacheOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtCacheOptions::~SvtCacheOptions()
{
@@ -392,7 +392,7 @@ SvtCacheOptions::~SvtCacheOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions::GetWriterOLE_Objects() const
{
@@ -401,7 +401,7 @@ sal_Int32 SvtCacheOptions::GetWriterOLE_Objects() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions::GetDrawingEngineOLE_Objects() const
{
@@ -410,7 +410,7 @@ sal_Int32 SvtCacheOptions::GetDrawingEngineOLE_Objects() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions::GetGraphicManagerTotalCacheSize() const
{
@@ -419,7 +419,7 @@ sal_Int32 SvtCacheOptions::GetGraphicManagerTotalCacheSize() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions::GetGraphicManagerObjectCacheSize() const
{
@@ -428,7 +428,7 @@ sal_Int32 SvtCacheOptions::GetGraphicManagerObjectCacheSize() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtCacheOptions::GetGraphicManagerObjectReleaseTime() const
{
@@ -437,7 +437,7 @@ sal_Int32 SvtCacheOptions::GetGraphicManagerObjectReleaseTime() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions::SetWriterOLE_Objects( sal_Int32 nWriterOLE )
{
@@ -446,7 +446,7 @@ void SvtCacheOptions::SetWriterOLE_Objects( sal_Int32 nWriterOLE )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions::SetDrawingEngineOLE_Objects( sal_Int32 nDrawingOLE )
{
@@ -455,7 +455,7 @@ void SvtCacheOptions::SetDrawingEngineOLE_Objects( sal_Int32 nDrawingOLE )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions::SetGraphicManagerTotalCacheSize( sal_Int32 nGrfMgrTotalSize )
{
@@ -464,7 +464,7 @@ void SvtCacheOptions::SetGraphicManagerTotalCacheSize( sal_Int32 nGrfMgrTotalSiz
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions::SetGraphicManagerObjectCacheSize( sal_Int32 nGrfMgrObjectSize )
{
@@ -473,7 +473,7 @@ void SvtCacheOptions::SetGraphicManagerObjectCacheSize( sal_Int32 nGrfMgrObjectS
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCacheOptions::SetGraphicManagerObjectReleaseTime( sal_Int32 nGrfMgrObjectReleaseTime )
{
@@ -482,7 +482,7 @@ void SvtCacheOptions::SetGraphicManagerObjectReleaseTime( sal_Int32 nGrfMgrObjec
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtCacheOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/cmdoptions.cxx b/unotools/source/config/cmdoptions.cxx
index 3d8fea23c175..5f8a571f2da1 100644
--- a/unotools/source/config/cmdoptions.cxx
+++ b/unotools/source/config/cmdoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_unotools.hxx"
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <unotools/cmdoptions.hxx>
@@ -49,33 +49,33 @@
#include <hash_map>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::std ;
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
-using namespace ::com::sun::star::beans ;
+using namespace ::std ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
+using namespace ::com::sun::star::beans ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_CMDOPTIONS OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Commands/Execute" ))
-#define PATHDELIMITER OUString(RTL_CONSTASCII_USTRINGPARAM("/" ))
+#define ROOTNODE_CMDOPTIONS OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Commands/Execute" ))
+#define PATHDELIMITER OUString(RTL_CONSTASCII_USTRINGPARAM("/" ))
-#define SETNODE_DISABLED OUString(RTL_CONSTASCII_USTRINGPARAM("Disabled" ))
+#define SETNODE_DISABLED OUString(RTL_CONSTASCII_USTRINGPARAM("Disabled" ))
-#define PROPERTYNAME_CMD OUString(RTL_CONSTASCII_USTRINGPARAM("Command" ))
+#define PROPERTYNAME_CMD OUString(RTL_CONSTASCII_USTRINGPARAM("Command" ))
#define PROPERTYCOUNT 1
#define OFFSET_CMD 0
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
// Method to retrieve a hash code from a string. May be we have to change it to decrease collisions in the hash map
@@ -131,9 +131,9 @@ class SvtCmdOptions
// special strings "sEmpty" and "sSeperator" to perform too ...
Sequence< OUString > GetList() const
{
- sal_Int32 nCount = (sal_Int32)m_aCommandHashMap.size();
- sal_Int32 nIndex = 0;
- Sequence< OUString > aList( nCount );
+ sal_Int32 nCount = (sal_Int32)m_aCommandHashMap.size();
+ sal_Int32 nIndex = 0;
+ Sequence< OUString > aList( nCount );
CommandHashMap::const_iterator pEntry = m_aCommandHashMap.begin();
while ( pEntry != m_aCommandHashMap.end() )
@@ -143,10 +143,10 @@ class SvtCmdOptions
}
private:
- class CommandHashMap : public ::std::hash_map< ::rtl::OUString ,
- sal_Int32 ,
- OUStringHashCode ,
- ::std::equal_to< ::rtl::OUString > >
+ class CommandHashMap : public ::std::hash_map< ::rtl::OUString ,
+ sal_Int32 ,
+ OUStringHashCode ,
+ ::std::equal_to< ::rtl::OUString > >
{
public:
inline void free()
@@ -163,55 +163,55 @@ typedef ::std::vector< ::com::sun::star::uno::WeakReference< ::com::sun::star::f
class SvtCommandOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtCommandOptions_Impl();
~SvtCommandOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
@param "lPropertyNames" is the list of properties which should be updated.
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& lPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
@@ -219,45 +219,45 @@ class SvtCommandOptions_Impl : public ConfigItem
@descr These class is used as static member of "SvtDynamicMenuOptions" ...
=> The code exist only for one time and isn't duplicated for every instance!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- void Clear ( SvtCommandOptions::CmdOption eCmdOption );
+ void Clear ( SvtCommandOptions::CmdOption eCmdOption );
sal_Bool HasEntries ( SvtCommandOptions::CmdOption eOption ) const;
- sal_Bool Lookup ( SvtCommandOptions::CmdOption eCmdOption, const OUString& ) const;
- Sequence< OUString > GetList ( SvtCommandOptions::CmdOption eCmdOption ) const ;
- void AddCommand ( SvtCommandOptions::CmdOption eCmdOption,
- const OUString& sURL );
+ sal_Bool Lookup ( SvtCommandOptions::CmdOption eCmdOption, const OUString& ) const;
+ Sequence< OUString > GetList ( SvtCommandOptions::CmdOption eCmdOption ) const ;
+ void AddCommand ( SvtCommandOptions::CmdOption eCmdOption,
+ const OUString& sURL );
void EstablisFrameCallback(const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& xFrame);
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
@short return list of key names of our configuration management which represent oue module tree
- @descr These methods return the current list of key names! We need it to get needed values from our
+ @descr These methods return the current list of key names! We need it to get needed values from our
configuration management and support dynamical menu item lists!
- @seealso -
+ @seealso -
- @param "nDisabledCount" , returns count of menu entries for "new"
- @return A list of configuration key names is returned.
+ @param "nDisabledCount" , returns count of menu entries for "new"
+ @return A list of configuration key names is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
Sequence< OUString > impl_GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -266,11 +266,11 @@ class SvtCommandOptions_Impl : public ConfigItem
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtCommandOptions_Impl::SvtCommandOptions_Impl()
// Init baseclasses first
@@ -289,8 +289,8 @@ SvtCommandOptions_Impl::SvtCommandOptions_Impl()
// Copy values from list in right order to ouer internal member.
// Attention: List for names and values have an internal construction pattern!
- sal_Int32 nItem = 0 ;
- OUString sCmd ;
+ sal_Int32 nItem = 0 ;
+ OUString sCmd ;
// Set size of hash_map reach a used size of approx. 60%
m_aDisabledCommands.SetContainerSize( lNames.getLength() * 10 / 6 );
@@ -312,7 +312,7 @@ SvtCommandOptions_Impl::SvtCommandOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtCommandOptions_Impl::~SvtCommandOptions_Impl()
{
@@ -324,7 +324,7 @@ SvtCommandOptions_Impl::~SvtCommandOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCommandOptions_Impl::Notify( const Sequence< OUString >& )
{
@@ -340,8 +340,8 @@ void SvtCommandOptions_Impl::Notify( const Sequence< OUString >& )
// Copy values from list in right order to ouer internal member.
// Attention: List for names and values have an internal construction pattern!
- sal_Int32 nItem = 0 ;
- OUString sCmd ;
+ sal_Int32 nItem = 0 ;
+ OUString sCmd ;
// Set size of hash_map reach a used size of approx. 60%
m_aDisabledCommands.Clear();
@@ -368,7 +368,7 @@ void SvtCommandOptions_Impl::Notify( const Sequence< OUString >& )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCommandOptions_Impl::Commit()
{
@@ -376,7 +376,7 @@ void SvtCommandOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCommandOptions_Impl::Clear( SvtCommandOptions::CmdOption eCmdOption )
{
@@ -395,7 +395,7 @@ void SvtCommandOptions_Impl::Clear( SvtCommandOptions::CmdOption eCmdOption )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtCommandOptions_Impl::HasEntries( SvtCommandOptions::CmdOption eOption ) const
{
@@ -406,7 +406,7 @@ sal_Bool SvtCommandOptions_Impl::HasEntries( SvtCommandOptions::CmdOption eOptio
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< OUString > SvtCommandOptions_Impl::GetList( SvtCommandOptions::CmdOption eCmdOption ) const
{
@@ -428,7 +428,7 @@ Sequence< OUString > SvtCommandOptions_Impl::GetList( SvtCommandOptions::CmdOpti
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtCommandOptions_Impl::Lookup( SvtCommandOptions::CmdOption eCmdOption, const OUString& aCommand ) const
{
@@ -446,7 +446,7 @@ sal_Bool SvtCommandOptions_Impl::Lookup( SvtCommandOptions::CmdOption eCmdOption
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCommandOptions_Impl::AddCommand( SvtCommandOptions::CmdOption eCmdOption, const OUString& sCmd )
{
@@ -479,7 +479,7 @@ void SvtCommandOptions_Impl::EstablisFrameCallback(const ::com::sun::star::uno::
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtCommandOptions_Impl::impl_GetPropertyNames()
{
@@ -507,15 +507,15 @@ Sequence< OUString > SvtCommandOptions_Impl::impl_GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
SvtCommandOptions_Impl* SvtCommandOptions::m_pDataContainer = NULL ;
sal_Int32 SvtCommandOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtCommandOptions::SvtCommandOptions()
{
@@ -532,7 +532,7 @@ SvtCommandOptions::SvtCommandOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtCommandOptions::~SvtCommandOptions()
{
@@ -550,7 +550,7 @@ SvtCommandOptions::~SvtCommandOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCommandOptions::Clear( CmdOption eCmdOption )
{
@@ -559,7 +559,7 @@ void SvtCommandOptions::Clear( CmdOption eCmdOption )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtCommandOptions::HasEntries( CmdOption eOption ) const
{
@@ -568,7 +568,7 @@ sal_Bool SvtCommandOptions::HasEntries( CmdOption eOption ) const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtCommandOptions::Lookup( CmdOption eCmdOption, const OUString& aCommandURL ) const
{
@@ -577,7 +577,7 @@ sal_Bool SvtCommandOptions::Lookup( CmdOption eCmdOption, const OUString& aComma
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< OUString > SvtCommandOptions::GetList( CmdOption eCmdOption ) const
{
@@ -586,7 +586,7 @@ Sequence< OUString > SvtCommandOptions::GetList( CmdOption eCmdOption ) const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCommandOptions::AddCommand( CmdOption eCmdOption, const OUString& sURL )
{
@@ -604,7 +604,7 @@ void SvtCommandOptions::EstablisFrameCallback(const ::com::sun::star::uno::Refer
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtCommandOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx
index c65c83245e70..e039ed8f89b7 100644
--- a/unotools/source/config/compatibility.cxx
+++ b/unotools/source/config/compatibility.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_unotools.hxx"
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <unotools/compatibility.hxx>
@@ -50,7 +50,7 @@
#include <algorithm>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
using namespace ::std;
@@ -61,12 +61,12 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_OPTIONS OUString( RTL_CONSTASCII_USTRINGPARAM( "Office.Compatibility/" ) )
-#define PATHDELIMITER OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) )
-#define SETNODE_ALLFILEFORMATS OUString( RTL_CONSTASCII_USTRINGPARAM( "AllFileFormats" ) )
+#define ROOTNODE_OPTIONS OUString( RTL_CONSTASCII_USTRINGPARAM( "Office.Compatibility/" ) )
+#define PATHDELIMITER OUString( RTL_CONSTASCII_USTRINGPARAM( "/" ) )
+#define SETNODE_ALLFILEFORMATS OUString( RTL_CONSTASCII_USTRINGPARAM( "AllFileFormats" ) )
#define PROPERTYNAME_NAME COMPATIBILITY_PROPERTYNAME_NAME
#define PROPERTYNAME_MODULE COMPATIBILITY_PROPERTYNAME_MODULE
@@ -99,7 +99,7 @@ using namespace ::com::sun::star::beans;
#define OFFSET_EXPANDWORDSPACE 12
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
/*-****************************************************************************************************************
@@ -125,30 +125,30 @@ struct SvtCompatibilityEntry
bUseOurTextWrapping( false ), bConsiderWrappingStyle( false ),
bExpandWordSpace( true ) {}
- inline void SetUsePrtMetrics( bool _bSet ) { bUsePrtMetrics = _bSet; }
- inline void SetAddSpacing( bool _bSet ) { bAddSpacing = _bSet; }
- inline void SetAddSpacingAtPages( bool _bSet ) { bAddSpacingAtPages = _bSet; }
- inline void SetUseOurTabStops( bool _bSet ) { bUseOurTabStops = _bSet; }
- inline void SetNoExtLeading( bool _bSet ) { bNoExtLeading = _bSet; }
- inline void SetUseLineSpacing( bool _bSet ) { bUseLineSpacing = _bSet; }
- inline void SetAddTableSpacing( bool _bSet ) { bAddTableSpacing = _bSet; }
- inline void SetUseObjPos( bool _bSet ) { bUseObjPos = _bSet; }
- inline void SetUseOurTextWrapping( bool _bSet ) { bUseOurTextWrapping = _bSet; }
+ inline void SetUsePrtMetrics( bool _bSet ) { bUsePrtMetrics = _bSet; }
+ inline void SetAddSpacing( bool _bSet ) { bAddSpacing = _bSet; }
+ inline void SetAddSpacingAtPages( bool _bSet ) { bAddSpacingAtPages = _bSet; }
+ inline void SetUseOurTabStops( bool _bSet ) { bUseOurTabStops = _bSet; }
+ inline void SetNoExtLeading( bool _bSet ) { bNoExtLeading = _bSet; }
+ inline void SetUseLineSpacing( bool _bSet ) { bUseLineSpacing = _bSet; }
+ inline void SetAddTableSpacing( bool _bSet ) { bAddTableSpacing = _bSet; }
+ inline void SetUseObjPos( bool _bSet ) { bUseObjPos = _bSet; }
+ inline void SetUseOurTextWrapping( bool _bSet ) { bUseOurTextWrapping = _bSet; }
inline void SetConsiderWrappingStyle( bool _bSet ) { bConsiderWrappingStyle = _bSet; }
inline void SetExpandWordSpace( bool _bSet ) { bExpandWordSpace = _bSet; }
public:
OUString sName;
OUString sModule;
- bool bUsePrtMetrics;
- bool bAddSpacing;
- bool bAddSpacingAtPages;
- bool bUseOurTabStops;
- bool bNoExtLeading;
- bool bUseLineSpacing;
- bool bAddTableSpacing;
- bool bUseObjPos;
- bool bUseOurTextWrapping;
+ bool bUsePrtMetrics;
+ bool bAddSpacing;
+ bool bAddSpacingAtPages;
+ bool bUseOurTabStops;
+ bool bNoExtLeading;
+ bool bUseLineSpacing;
+ bool bAddTableSpacing;
+ bool bUseObjPos;
+ bool bUseOurTextWrapping;
bool bConsiderWrappingStyle;
bool bExpandWordSpace;
};
@@ -183,7 +183,7 @@ class SvtCompatibility
Sequence< Sequence< PropertyValue > > lResult( nCount );
const vector< SvtCompatibilityEntry >* pList = &lEntries;
- lProperties[ OFFSET_NAME ].Name = PROPERTYNAME_NAME;
+ lProperties[ OFFSET_NAME ].Name = PROPERTYNAME_NAME;
lProperties[ OFFSET_MODULE ].Name = PROPERTYNAME_MODULE;
lProperties[ OFFSET_USEPRTMETRICS ].Name = PROPERTYNAME_USEPRTMETRICS;
lProperties[ OFFSET_ADDSPACING ].Name = PROPERTYNAME_ADDSPACING;
@@ -220,7 +220,7 @@ class SvtCompatibility
return lResult;
}
- int size() const
+ int size() const
{
return lEntries.size();
}
@@ -237,13 +237,13 @@ class SvtCompatibility
class SvtCompatibilityOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtCompatibilityOptions_Impl();
@@ -252,42 +252,42 @@ class SvtCompatibilityOptions_Impl : public ConfigItem
void SetDefault( OUString sName, bool bValue );
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
@param "lPropertyNames" is the list of properties which should be updated.
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& lPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
@@ -295,17 +295,17 @@ class SvtCompatibilityOptions_Impl : public ConfigItem
@descr These class is used as static member of "SvtCompatibilityOptions" ...
=> The code exist only for one time and isn't duplicated for every instance!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void Clear();
Sequence< Sequence< PropertyValue > > GetList() const;
- void AppendItem( const ::rtl::OUString& _sName,
+ void AppendItem( const ::rtl::OUString& _sName,
const ::rtl::OUString& _sModule,
bool _bUsePrtMetrics,
bool _bAddSpacing,
@@ -332,22 +332,22 @@ class SvtCompatibilityOptions_Impl : public ConfigItem
inline bool IsExpandWordSpace() const { return m_aDefOptions.bExpandWordSpace; }
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
@short return list of key names of our configuration management which represent one module tree
- @descr These methods return the current list of key names! We need it to get needed values from our
+ @descr These methods return the current list of key names! We need it to get needed values from our
configuration management and support dynamical menu item lists!
- @seealso -
+ @seealso -
@param -
- @return A list of configuration key names is returned.
+ @return A list of configuration key names is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
Sequence< OUString > impl_GetPropertyNames( Sequence< OUString >& rItems );
@@ -361,30 +361,30 @@ class SvtCompatibilityOptions_Impl : public ConfigItem
@param "lSource" , original list
@param "lDestination" , destination of operation
- @return A list of configuration key names is returned.
+ @return A list of configuration key names is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void impl_ExpandPropertyNames( const Sequence< OUString >& lSource,
Sequence< OUString >& lDestination );
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
- SvtCompatibility m_aOptions;
- SvtCompatibilityEntry m_aDefOptions;
+ SvtCompatibility m_aOptions;
+ SvtCompatibilityEntry m_aDefOptions;
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtCompatibilityOptions_Impl::SvtCompatibilityOptions_Impl()
// Init baseclasses first
@@ -442,7 +442,7 @@ SvtCompatibilityOptions_Impl::SvtCompatibilityOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtCompatibilityOptions_Impl::~SvtCompatibilityOptions_Impl()
{
@@ -480,7 +480,7 @@ void SvtCompatibilityOptions_Impl::SetDefault( OUString sName, bool bValue )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCompatibilityOptions_Impl::Notify( const Sequence< OUString >& )
{
@@ -488,7 +488,7 @@ void SvtCompatibilityOptions_Impl::Notify( const Sequence< OUString >& )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCompatibilityOptions_Impl::Commit()
{
@@ -506,29 +506,29 @@ void SvtCompatibilityOptions_Impl::Commit()
aItem = m_aOptions[ nItem ];
sNode = SETNODE_ALLFILEFORMATS + PATHDELIMITER + aItem.sName + PATHDELIMITER;
- lPropertyValues[ OFFSET_MODULE - 1 ].Name = sNode + PROPERTYNAME_MODULE;
- lPropertyValues[ OFFSET_USEPRTMETRICS - 1 ].Name = sNode + PROPERTYNAME_USEPRTMETRICS;
- lPropertyValues[ OFFSET_ADDSPACING - 1 ].Name = sNode + PROPERTYNAME_ADDSPACING;
- lPropertyValues[ OFFSET_ADDSPACINGATPAGES - 1 ].Name = sNode + PROPERTYNAME_ADDSPACINGATPAGES;
- lPropertyValues[ OFFSET_USEOURTABSTOPS - 1 ].Name = sNode + PROPERTYNAME_USEOURTABSTOPS;
- lPropertyValues[ OFFSET_NOEXTLEADING - 1 ].Name = sNode + PROPERTYNAME_NOEXTLEADING;
- lPropertyValues[ OFFSET_USELINESPACING - 1 ].Name = sNode + PROPERTYNAME_USELINESPACING;
- lPropertyValues[ OFFSET_ADDTABLESPACING - 1 ].Name = sNode + PROPERTYNAME_ADDTABLESPACING;
- lPropertyValues[ OFFSET_USEOBJPOS - 1 ].Name = sNode + PROPERTYNAME_USEOBJPOS;
- lPropertyValues[ OFFSET_USEOURTEXTWRAPPING - 1 ].Name = sNode + PROPERTYNAME_USEOURTEXTWRAP;
+ lPropertyValues[ OFFSET_MODULE - 1 ].Name = sNode + PROPERTYNAME_MODULE;
+ lPropertyValues[ OFFSET_USEPRTMETRICS - 1 ].Name = sNode + PROPERTYNAME_USEPRTMETRICS;
+ lPropertyValues[ OFFSET_ADDSPACING - 1 ].Name = sNode + PROPERTYNAME_ADDSPACING;
+ lPropertyValues[ OFFSET_ADDSPACINGATPAGES - 1 ].Name = sNode + PROPERTYNAME_ADDSPACINGATPAGES;
+ lPropertyValues[ OFFSET_USEOURTABSTOPS - 1 ].Name = sNode + PROPERTYNAME_USEOURTABSTOPS;
+ lPropertyValues[ OFFSET_NOEXTLEADING - 1 ].Name = sNode + PROPERTYNAME_NOEXTLEADING;
+ lPropertyValues[ OFFSET_USELINESPACING - 1 ].Name = sNode + PROPERTYNAME_USELINESPACING;
+ lPropertyValues[ OFFSET_ADDTABLESPACING - 1 ].Name = sNode + PROPERTYNAME_ADDTABLESPACING;
+ lPropertyValues[ OFFSET_USEOBJPOS - 1 ].Name = sNode + PROPERTYNAME_USEOBJPOS;
+ lPropertyValues[ OFFSET_USEOURTEXTWRAPPING - 1 ].Name = sNode + PROPERTYNAME_USEOURTEXTWRAP;
lPropertyValues[ OFFSET_CONSIDERWRAPPINGSTYLE - 1 ].Name = sNode + PROPERTYNAME_CONSIDERWRAPSTYLE;
lPropertyValues[ OFFSET_EXPANDWORDSPACE - 1 ].Name = sNode + PROPERTYNAME_EXPANDWORDSPACE;
- lPropertyValues[ OFFSET_MODULE - 1 ].Value <<= aItem.sModule;
- lPropertyValues[ OFFSET_USEPRTMETRICS - 1 ].Value <<= aItem.bUsePrtMetrics;
- lPropertyValues[ OFFSET_ADDSPACING - 1 ].Value <<= aItem.bAddSpacing;
- lPropertyValues[ OFFSET_ADDSPACINGATPAGES - 1 ].Value <<= aItem.bAddSpacingAtPages;
- lPropertyValues[ OFFSET_USEOURTABSTOPS - 1 ].Value <<= aItem.bUseOurTabStops;
- lPropertyValues[ OFFSET_NOEXTLEADING - 1 ].Value <<= aItem.bNoExtLeading;
- lPropertyValues[ OFFSET_USELINESPACING - 1 ].Value <<= aItem.bUseLineSpacing;
- lPropertyValues[ OFFSET_ADDTABLESPACING - 1 ].Value <<= aItem.bAddTableSpacing;
- lPropertyValues[ OFFSET_USEOBJPOS - 1 ].Value <<= aItem.bUseObjPos;
- lPropertyValues[ OFFSET_USEOURTEXTWRAPPING - 1 ].Value <<= aItem.bUseOurTextWrapping;
+ lPropertyValues[ OFFSET_MODULE - 1 ].Value <<= aItem.sModule;
+ lPropertyValues[ OFFSET_USEPRTMETRICS - 1 ].Value <<= aItem.bUsePrtMetrics;
+ lPropertyValues[ OFFSET_ADDSPACING - 1 ].Value <<= aItem.bAddSpacing;
+ lPropertyValues[ OFFSET_ADDSPACINGATPAGES - 1 ].Value <<= aItem.bAddSpacingAtPages;
+ lPropertyValues[ OFFSET_USEOURTABSTOPS - 1 ].Value <<= aItem.bUseOurTabStops;
+ lPropertyValues[ OFFSET_NOEXTLEADING - 1 ].Value <<= aItem.bNoExtLeading;
+ lPropertyValues[ OFFSET_USELINESPACING - 1 ].Value <<= aItem.bUseLineSpacing;
+ lPropertyValues[ OFFSET_ADDTABLESPACING - 1 ].Value <<= aItem.bAddTableSpacing;
+ lPropertyValues[ OFFSET_USEOBJPOS - 1 ].Value <<= aItem.bUseObjPos;
+ lPropertyValues[ OFFSET_USEOURTEXTWRAPPING - 1 ].Value <<= aItem.bUseOurTextWrapping;
lPropertyValues[ OFFSET_CONSIDERWRAPPINGSTYLE - 1 ].Value <<= aItem.bConsiderWrappingStyle;
lPropertyValues[ OFFSET_EXPANDWORDSPACE - 1 ].Value <<= aItem.bExpandWordSpace;
@@ -537,7 +537,7 @@ void SvtCompatibilityOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCompatibilityOptions_Impl::Clear()
{
@@ -546,7 +546,7 @@ void SvtCompatibilityOptions_Impl::Clear()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< Sequence< PropertyValue > > SvtCompatibilityOptions_Impl::GetList() const
{
@@ -556,10 +556,10 @@ Sequence< Sequence< PropertyValue > > SvtCompatibilityOptions_Impl::GetList() co
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
-void SvtCompatibilityOptions_Impl::AppendItem( const ::rtl::OUString& _sName,
+void SvtCompatibilityOptions_Impl::AppendItem( const ::rtl::OUString& _sName,
const ::rtl::OUString& _sModule,
bool _bUsePrtMetrics,
bool _bAddSpacing,
@@ -595,7 +595,7 @@ void SvtCompatibilityOptions_Impl::AppendItem( const ::rtl::OUString& _sName,
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtCompatibilityOptions_Impl::impl_GetPropertyNames( Sequence< OUString >& rItems )
{
@@ -609,7 +609,7 @@ Sequence< OUString > SvtCompatibilityOptions_Impl::impl_GetPropertyNames( Sequen
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
void SvtCompatibilityOptions_Impl::impl_ExpandPropertyNames(
const Sequence< OUString >& lSource, Sequence< OUString >& lDestination )
@@ -665,15 +665,15 @@ void SvtCompatibilityOptions_Impl::impl_ExpandPropertyNames(
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtCompatibilityOptions_Impl* SvtCompatibilityOptions::m_pDataContainer = NULL;
-sal_Int32 SvtCompatibilityOptions::m_nRefCount = 0;
+SvtCompatibilityOptions_Impl* SvtCompatibilityOptions::m_pDataContainer = NULL;
+sal_Int32 SvtCompatibilityOptions::m_nRefCount = 0;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtCompatibilityOptions::SvtCompatibilityOptions()
{
@@ -690,7 +690,7 @@ SvtCompatibilityOptions::SvtCompatibilityOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtCompatibilityOptions::~SvtCompatibilityOptions()
{
@@ -708,7 +708,7 @@ SvtCompatibilityOptions::~SvtCompatibilityOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCompatibilityOptions::Clear()
{
@@ -722,7 +722,7 @@ void SvtCompatibilityOptions::SetDefault( ::rtl::OUString sName, bool bValue )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtCompatibilityOptions::AppendItem( const ::rtl::OUString& sName,
const ::rtl::OUString& sModule,
@@ -819,7 +819,7 @@ Sequence< Sequence< PropertyValue > > SvtCompatibilityOptions::GetList() const
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtCompatibilityOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index 4a330bcf18cc..7b7bf49d0d11 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,8 +95,8 @@ namespace utl{
>
{
public:
- ConfigItem* pParent;
- const Sequence< OUString > aPropertyNames;
+ ConfigItem* pParent;
+ const Sequence< OUString > aPropertyNames;
ConfigChangeListener_Impl(ConfigItem& rItem, const Sequence< OUString >& rNames);
~ConfigChangeListener_Impl();
@@ -111,12 +111,12 @@ namespace utl{
---------------------------------------------------------------------------*/
struct ConfigItem_Impl
{
- utl::ConfigManager* pManager;
- sal_Int16 nMode;
- sal_Bool bIsModified;
+ utl::ConfigManager* pManager;
+ sal_Int16 nMode;
+ sal_Bool bIsModified;
sal_Bool bEnableInternalNotification;
- sal_Int16 nInValueChange;
+ sal_Int16 nInValueChange;
ConfigItem_Impl() :
pManager(0),
nMode(0),
@@ -201,7 +201,7 @@ void ConfigChangeListener_Impl::changesOccurred( const ChangesEvent& rEvent ) th
{
const ElementChange* pElementChanges = rEvent.Changes.getConstArray();
- Sequence<OUString> aChangedNames(rEvent.Changes.getLength());
+ Sequence<OUString> aChangedNames(rEvent.Changes.getLength());
OUString* pNames = aChangedNames.getArray();
const OUString* pCheckPropertyNames = aPropertyNames.getConstArray();
@@ -255,7 +255,7 @@ ConfigItem::ConfigItem(const OUString rSubTree, sal_Int16 nSetMode ) :
/* -----------------------------17.11.00 13:53--------------------------------
---------------------------------------------------------------------------*/
-ConfigItem::ConfigItem(utl::ConfigManager& rManager, const rtl::OUString rSubTree) :
+ConfigItem::ConfigItem(utl::ConfigManager& rManager, const rtl::OUString rSubTree) :
sSubTree(rSubTree),
pImpl(new ConfigItem_Impl)
{
@@ -285,7 +285,7 @@ ConfigItem::~ConfigItem()
/* -----------------------------29.08.00 12:52--------------------------------
---------------------------------------------------------------------------*/
-void ConfigItem::ReleaseConfigMgr()
+void ConfigItem::ReleaseConfigMgr()
{
Reference<XHierarchicalNameAccess> xHierarchyAccess = GetTree();
if(xHierarchyAccess.is())
@@ -341,30 +341,30 @@ sal_Bool lcl_IsLocalProperty(const OUString& rSubTree, const OUString& rProperty
/* -----------------------------10.04.01 15:00--------------------------------
---------------------------------------------------------------------------*/
-void ConfigItem::impl_packLocalizedProperties( const Sequence< OUString >& lInNames ,
- const Sequence< Any >& lInValues ,
- Sequence< Any >& lOutValues )
+void ConfigItem::impl_packLocalizedProperties( const Sequence< OUString >& lInNames ,
+ const Sequence< Any >& lInValues ,
+ Sequence< Any >& lOutValues )
{
// Safe impossible cases.
// This method should be called for special ConfigItem-mode only!
OSL_ENSURE( ((pImpl->nMode & CONFIG_MODE_ALL_LOCALES ) == CONFIG_MODE_ALL_LOCALES), "ConfigItem::impl_packLocalizedProperties()\nWrong call of this method detected!\n" );
- sal_Int32 nSourceCounter ; // used to step during input lists
- sal_Int32 nSourceSize ; // marks end of loop over input lists
- sal_Int32 nDestinationCounter ; // actual position in output lists
- sal_Int32 nPropertyCounter ; // counter of inner loop for Sequence< PropertyValue >
- sal_Int32 nPropertiesSize ; // marks end of inner loop
- Sequence< OUString > lPropertyNames ; // list of all locales for localized entry
- Sequence< PropertyValue > lProperties ; // localized values of an configuration entry packed for return
- Reference< XInterface > xLocalizedNode ; // if cfg entry is localized ... lInValues contains an XInterface!
+ sal_Int32 nSourceCounter ; // used to step during input lists
+ sal_Int32 nSourceSize ; // marks end of loop over input lists
+ sal_Int32 nDestinationCounter ; // actual position in output lists
+ sal_Int32 nPropertyCounter ; // counter of inner loop for Sequence< PropertyValue >
+ sal_Int32 nPropertiesSize ; // marks end of inner loop
+ Sequence< OUString > lPropertyNames ; // list of all locales for localized entry
+ Sequence< PropertyValue > lProperties ; // localized values of an configuration entry packed for return
+ Reference< XInterface > xLocalizedNode ; // if cfg entry is localized ... lInValues contains an XInterface!
// Optimise follow algorithm ... A LITTLE BIT :-)
// There exist two different possibilities:
- // i ) There exist no localized entries ... => size of lOutValues will be the same like lInNames/lInValues!
- // ii) There exist some (mostly one or two) localized entries ... => size of lOutValues will be the same like lInNames/lInValues!
- // ... Why? If a localized value exist - the any is filled with an XInterface object (is a SetNode-service).
- // We read all his child nodes and pack it into Sequence< PropertyValue >.
- // The result list we pack into the return any. We never change size of lists!
+ // i ) There exist no localized entries ... => size of lOutValues will be the same like lInNames/lInValues!
+ // ii) There exist some (mostly one or two) localized entries ... => size of lOutValues will be the same like lInNames/lInValues!
+ // ... Why? If a localized value exist - the any is filled with an XInterface object (is a SetNode-service).
+ // We read all his child nodes and pack it into Sequence< PropertyValue >.
+ // The result list we pack into the return any. We never change size of lists!
nSourceSize = lInNames.getLength();
lOutValues.realloc( nSourceSize );
@@ -384,9 +384,9 @@ void ConfigItem::impl_packLocalizedProperties( const Sequence< OUString >&
Reference< XNameContainer > xSetAccess( xLocalizedNode, UNO_QUERY );
if( xSetAccess.is() == sal_True )
{
- lPropertyNames = xSetAccess->getElementNames() ;
- nPropertiesSize = lPropertyNames.getLength() ;
- lProperties.realloc( nPropertiesSize ) ;
+ lPropertyNames = xSetAccess->getElementNames() ;
+ nPropertiesSize = lPropertyNames.getLength() ;
+ lProperties.realloc( nPropertiesSize ) ;
for( nPropertyCounter=0; nPropertyCounter<nPropertiesSize; ++nPropertyCounter )
{
@@ -395,10 +395,10 @@ void ConfigItem::impl_packLocalizedProperties( const Sequence< OUString >&
OUString sPropName = lInNames[nSourceCounter];
OUString sLocaleName = lPropertyNames[nPropertyCounter];
#endif
- lProperties[nPropertyCounter].Name = lPropertyNames[nPropertyCounter] ;
+ lProperties[nPropertyCounter].Name = lPropertyNames[nPropertyCounter] ;
OUString sLocaleValue;
- xSetAccess->getByName( lPropertyNames[nPropertyCounter] ) >>= sLocaleValue ;
- lProperties[nPropertyCounter].Value <<= sLocaleValue;
+ xSetAccess->getByName( lPropertyNames[nPropertyCounter] ) >>= sLocaleValue ;
+ lProperties[nPropertyCounter].Value <<= sLocaleValue;
}
lOutValues[nDestinationCounter] <<= lProperties;
@@ -415,35 +415,35 @@ void ConfigItem::impl_packLocalizedProperties( const Sequence< OUString >&
/* -----------------------------10.04.01 15:00--------------------------------
---------------------------------------------------------------------------*/
-void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString >& lInNames ,
- const Sequence< Any >& lInValues ,
- Sequence< OUString >& lOutNames ,
- Sequence< Any >& lOutValues )
+void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString >& lInNames ,
+ const Sequence< Any >& lInValues ,
+ Sequence< OUString >& lOutNames ,
+ Sequence< Any >& lOutValues )
{
// Safe impossible cases.
// This method should be called for special ConfigItem-mode only!
OSL_ENSURE( ((pImpl->nMode & CONFIG_MODE_ALL_LOCALES ) == CONFIG_MODE_ALL_LOCALES), "ConfigItem::impl_unpackLocalizedProperties()\nWrong call of this method detected!\n" );
- sal_Int32 nSourceCounter ; // used to step during input lists
- sal_Int32 nSourceSize ; // marks end of loop over input lists
- sal_Int32 nDestinationCounter ; // actual position in output lists
- sal_Int32 nPropertyCounter ; // counter of inner loop for Sequence< PropertyValue >
- sal_Int32 nPropertiesSize ; // marks end of inner loop
- OUString sNodeName ; // base name of node ( e.g. "UIName/" ) ... expand to locale ( e.g. "UIName/de" )
- Sequence< PropertyValue > lProperties ; // localized values of an configuration entry getted from lInValues-Any
+ sal_Int32 nSourceCounter ; // used to step during input lists
+ sal_Int32 nSourceSize ; // marks end of loop over input lists
+ sal_Int32 nDestinationCounter ; // actual position in output lists
+ sal_Int32 nPropertyCounter ; // counter of inner loop for Sequence< PropertyValue >
+ sal_Int32 nPropertiesSize ; // marks end of inner loop
+ OUString sNodeName ; // base name of node ( e.g. "UIName/" ) ... expand to locale ( e.g. "UIName/de" )
+ Sequence< PropertyValue > lProperties ; // localized values of an configuration entry getted from lInValues-Any
// Optimise follow algorithm ... A LITTLE BIT :-)
// There exist two different possibilities:
- // i ) There exist no localized entries ... => size of lOutNames/lOutValues will be the same like lInNames/lInValues!
- // ii) There exist some (mostly one or two) localized entries ... => size of lOutNames/lOutValues will be some bytes greater then lInNames/lInValues.
- // => I think we should make it fast for i). ii) is a special case and mustn't be SOOOO... fast.
- // We should reserve same space for output list like input ones first.
- // Follow algorithm looks for these borders and change it for ii) only!
- // It will be faster then a "realloc()" call in every loop ...
+ // i ) There exist no localized entries ... => size of lOutNames/lOutValues will be the same like lInNames/lInValues!
+ // ii) There exist some (mostly one or two) localized entries ... => size of lOutNames/lOutValues will be some bytes greater then lInNames/lInValues.
+ // => I think we should make it fast for i). ii) is a special case and mustn't be SOOOO... fast.
+ // We should reserve same space for output list like input ones first.
+ // Follow algorithm looks for these borders and change it for ii) only!
+ // It will be faster then a "realloc()" call in every loop ...
nSourceSize = lInNames.getLength();
- lOutNames.realloc ( nSourceSize );
- lOutValues.realloc ( nSourceSize );
+ lOutNames.realloc ( nSourceSize );
+ lOutValues.realloc ( nSourceSize );
// Algorithm:
// Copy all names and values from const to return lists.
@@ -456,21 +456,21 @@ void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString >
// If item a special localized one ... split it and insert his parts to output lists ...
if( lInValues[nSourceCounter].getValueType() == ::getCppuType( (const Sequence< PropertyValue >*)NULL ) )
{
- lInValues[nSourceCounter] >>= lProperties ;
- sNodeName = lInNames[nSourceCounter] ;
- sNodeName += C2U("/") ;
- nPropertiesSize = lProperties.getLength() ;
+ lInValues[nSourceCounter] >>= lProperties ;
+ sNodeName = lInNames[nSourceCounter] ;
+ sNodeName += C2U("/") ;
+ nPropertiesSize = lProperties.getLength() ;
if( (nDestinationCounter+nPropertiesSize) > lOutNames.getLength() )
{
- lOutNames.realloc ( nDestinationCounter+nPropertiesSize );
- lOutValues.realloc ( nDestinationCounter+nPropertiesSize );
+ lOutNames.realloc ( nDestinationCounter+nPropertiesSize );
+ lOutValues.realloc ( nDestinationCounter+nPropertiesSize );
}
for( nPropertyCounter=0; nPropertyCounter<nPropertiesSize; ++nPropertyCounter )
{
- lOutNames [nDestinationCounter] = sNodeName + lProperties[nPropertyCounter].Name ;
- lOutValues[nDestinationCounter] = lProperties[nPropertyCounter].Value ;
+ lOutNames [nDestinationCounter] = sNodeName + lProperties[nPropertyCounter].Name ;
+ lOutValues[nDestinationCounter] = lProperties[nPropertyCounter].Value ;
++nDestinationCounter;
}
}
@@ -479,8 +479,8 @@ void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString >
{
if( (nDestinationCounter+1) > lOutNames.getLength() )
{
- lOutNames.realloc ( nDestinationCounter+1 );
- lOutValues.realloc ( nDestinationCounter+1 );
+ lOutNames.realloc ( nDestinationCounter+1 );
+ lOutValues.realloc ( nDestinationCounter+1 );
}
lOutNames [nDestinationCounter] = lInNames [nSourceCounter];
@@ -648,11 +648,11 @@ sal_Bool ConfigItem::PutProperties( const Sequence< OUString >& rNames,
sal_Bool bRet = xHierarchyAccess.is() && xTopNodeReplace.is();
if(bRet)
{
- Sequence< OUString > lNames ;
- Sequence< Any > lValues ;
- const OUString* pNames = NULL ;
- const Any* pValues = NULL ;
- sal_Int32 nNameCount ;
+ Sequence< OUString > lNames ;
+ Sequence< Any > lValues ;
+ const OUString* pNames = NULL ;
+ const Any* pValues = NULL ;
+ sal_Int32 nNameCount ;
if(( pImpl->nMode & CONFIG_MODE_ALL_LOCALES ) == CONFIG_MODE_ALL_LOCALES )
{
// If ConfigItem works in "ALL_LOCALES"-mode ... we must support a Sequence< PropertyValue >
@@ -660,17 +660,17 @@ sal_Bool ConfigItem::PutProperties( const Sequence< OUString >& rNames,
// How we can do that?
// We must split all PropertyValues to "Sequence< OUString >" AND "Sequence< Any >"!
impl_unpackLocalizedProperties( rNames, rValues, lNames, lValues );
- pNames = lNames.getConstArray ();
- pValues = lValues.getConstArray ();
- nNameCount = lNames.getLength ();
+ pNames = lNames.getConstArray ();
+ pValues = lValues.getConstArray ();
+ nNameCount = lNames.getLength ();
}
else
{
// This is the normal mode ...
// Use given input lists directly.
- pNames = rNames.getConstArray ();
- pValues = rValues.getConstArray ();
- nNameCount = rNames.getLength ();
+ pNames = rNames.getConstArray ();
+ pValues = rValues.getConstArray ();
+ nNameCount = rNames.getLength ();
}
for(int i = 0; i < nNameCount; i++)
{
@@ -1195,7 +1195,7 @@ sal_Bool ConfigItem::ReplaceSetProperties(
xCont->insertByName(pSubNodeNames[j], aVal);
}
}
- try { xBatch->commitChanges(); }
+ try { xBatch->commitChanges(); }
CATCH_INFO("Exception from commitChanges(): ")
const PropertyValue* pProperties = rValues.getConstArray();
@@ -1357,14 +1357,14 @@ sal_Bool ConfigItem::AddNode(const rtl::OUString& rNode, const rtl::OUString& rN
/* -----------------------------12.02.01 11:38--------------------------------
---------------------------------------------------------------------------*/
-sal_Int16 ConfigItem::GetMode() const
+sal_Int16 ConfigItem::GetMode() const
{
return pImpl->nMode;
}
/* -----------------------------12.02.01 13:31--------------------------------
---------------------------------------------------------------------------*/
-void ConfigItem::SetModified()
+void ConfigItem::SetModified()
{
pImpl->bIsModified = sal_True;
}
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index 13583c5d841b..fa9453347b8b 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,15 +90,15 @@ namespace
//-----------------------------------------------------------------------------
struct ConfigItemListEntry_Impl
{
- ConfigItem* pConfigItem;
+ ConfigItem* pConfigItem;
- ConfigItemListEntry_Impl(ConfigItem* pItem ) :
+ ConfigItemListEntry_Impl(ConfigItem* pItem ) :
pConfigItem(pItem){}
};
typedef std::list<ConfigItemListEntry_Impl> ConfigItemList;
struct utl::ConfigMgr_Impl
{
- ConfigItemList aItemList;
+ ConfigItemList aItemList;
};
/* -----------------------------28.08.00 15:35--------------------------------
@@ -490,7 +490,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
OUString sPath = OUString::createFromAscii(pConfigBaseURL);
switch(eProp)
{
- case LOCALE: sPath += UNISTRING("Setup/L10N"); break;
+ case LOCALE: sPath += UNISTRING("Setup/L10N"); break;
case PRODUCTNAME:
case PRODUCTVERSION:
@@ -501,7 +501,7 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
case OOOVENDOR:
case ABOUTBOXPRODUCTVERSION: sPath += UNISTRING("Setup/Product"); break;
- case DEFAULTCURRENCY: sPath += UNISTRING("Setup/L10N"); break;
+ case DEFAULTCURRENCY: sPath += UNISTRING("Setup/L10N"); break;
case WRITERCOMPATIBILITYVERSIONOOO11:
sPath += UNISTRING("Office.Compatibility/WriterCompatibilityVersion"); break;
@@ -528,17 +528,17 @@ Any ConfigManager::GetDirectConfigProperty(ConfigProperty eProp)
OUString sProperty;
switch(eProp)
{
- case LOCALE: sProperty = UNISTRING("ooLocale"); break;
- case PRODUCTNAME: sProperty = UNISTRING("ooName"); break;
- case PRODUCTVERSION: sProperty = UNISTRING("ooSetupVersion"); break;
- case ABOUTBOXPRODUCTVERSION: sProperty = UNISTRING("ooSetupVersionAboutBox"); break;
+ case LOCALE: sProperty = UNISTRING("ooLocale"); break;
+ case PRODUCTNAME: sProperty = UNISTRING("ooName"); break;
+ case PRODUCTVERSION: sProperty = UNISTRING("ooSetupVersion"); break;
+ case ABOUTBOXPRODUCTVERSION: sProperty = UNISTRING("ooSetupVersionAboutBox"); break;
case OOOVENDOR: sProperty = UNISTRING("ooVendor"); break;
- case PRODUCTEXTENSION: sProperty = UNISTRING("ooSetupExtension"); break;
+ case PRODUCTEXTENSION: sProperty = UNISTRING("ooSetupExtension"); break;
case PRODUCTXMLFILEFORMATNAME: sProperty = UNISTRING("ooXMLFileFormatName"); break;
case PRODUCTXMLFILEFORMATVERSION: sProperty = UNISTRING("ooXMLFileFormatVersion"); break;
case OPENSOURCECONTEXT: sProperty = UNISTRING("ooOpenSourceContext"); break;
case DEFAULTCURRENCY: sProperty = UNISTRING("ooSetupCurrency"); break;
- case WRITERCOMPATIBILITYVERSIONOOO11: sProperty = UNISTRING("OOo11"); break;
+ case WRITERCOMPATIBILITYVERSIONOOO11: sProperty = UNISTRING("OOo11"); break;
default:
break;
}
@@ -735,7 +735,7 @@ void ConfigManager::PutLocalProperty(const OUString& rProperty, const Any& rValu
/* -----------------------------13.12.00 08:47--------------------------------
---------------------------------------------------------------------------*/
-sal_Bool ConfigManager::IsLocalConfigProvider()
+sal_Bool ConfigManager::IsLocalConfigProvider()
{
return false;
}
diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx
index 5fba8c9bbc51..ef9eb19b4a5e 100644
--- a/unotools/source/config/confignode.cxx
+++ b/unotools/source/config/confignode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -281,7 +281,7 @@ namespace utl
Reference< XSingleServiceFactory > xChildFactory(m_xContainerAccess, UNO_QUERY);
OSL_ENSURE(xChildFactory.is(), "OConfigurationNode::createNode: object is invalid or read-only!");
- if (xChildFactory.is()) // implies m_xContainerAccess.is()
+ if (xChildFactory.is()) // implies m_xContainerAccess.is()
{
Reference< XInterface > xNewChild;
try
@@ -661,7 +661,7 @@ namespace utl
}
//........................................................................
-} // namespace utl
+} // namespace utl
//........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/config/configpathes.cxx b/unotools/source/config/configpathes.cxx
index fd813d4c7a9a..83ecdf271b22 100644
--- a/unotools/source/config/configpathes.cxx
+++ b/unotools/source/config/configpathes.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ void lcl_resolveCharEntities(OUString & aLocalString)
if (ch)
{
aResult.append(aLocalString.copy(nStart,nEscapePos-nStart)).append(ch);
-
+
sal_Int32 nEscapeEnd=aLocalString.indexOf(';',nEscapePos);
nStart = nEscapeEnd+1;
nEscapePos=aLocalString.indexOf('&',nStart);
@@ -82,12 +82,12 @@ void lcl_resolveCharEntities(OUString & aLocalString)
while ( nEscapePos > 0);
aResult.append(aLocalString.copy(nStart));
-
+
aLocalString = aResult.makeStringAndClear();
}
//----------------------------------------------------------------------------
-sal_Bool splitLastFromConfigurationPath(OUString const& _sInPath,
+sal_Bool splitLastFromConfigurationPath(OUString const& _sInPath,
OUString& _rsOutPath,
OUString& _rsLocalName)
{
@@ -139,8 +139,8 @@ sal_Bool splitLastFromConfigurationPath(OUString const& _sInPath,
nPos = _sInPath.lastIndexOf('/',nEnd);
nStart = nPos + 1;
}
- OSL_ASSERT( -1 <= nPos &&
- nPos < nStart &&
+ OSL_ASSERT( -1 <= nPos &&
+ nPos < nStart &&
nStart < nEnd &&
nEnd <= _sInPath.getLength() );
@@ -208,7 +208,7 @@ sal_Int32 lcl_findPrefixEnd(OUString const& _sNestedPath, OUString const& _sPref
OSL_ENSURE(nPrefixLength == 0 || _sPrefixPath[nPrefixLength-1] != '/',
"Cannot handle slash-terminated prefix pathes");
-
+
sal_Bool bIsPrefix;
if (_sNestedPath.getLength() > nPrefixLength)
{
@@ -224,19 +224,19 @@ sal_Int32 lcl_findPrefixEnd(OUString const& _sNestedPath, OUString const& _sPref
{
bIsPrefix = false;
}
-
+
return bIsPrefix ? nPrefixLength : 0;
}
//----------------------------------------------------------------------------
-sal_Bool isPrefixOfConfigurationPath(OUString const& _sNestedPath,
+sal_Bool isPrefixOfConfigurationPath(OUString const& _sNestedPath,
OUString const& _sPrefixPath)
{
return _sPrefixPath.getLength() == 0 || lcl_findPrefixEnd(_sNestedPath,_sPrefixPath) != 0;
}
//----------------------------------------------------------------------------
-OUString dropPrefixFromConfigurationPath(OUString const& _sNestedPath,
+OUString dropPrefixFromConfigurationPath(OUString const& _sNestedPath,
OUString const& _sPrefixPath)
{
if ( sal_Int32 nPrefixEnd = lcl_findPrefixEnd(_sNestedPath,_sPrefixPath) )
@@ -280,7 +280,7 @@ OUString lcl_wrapName(const OUString& _sContent, const OUString& _sType)
case sal_Unicode('\"'): aNormalized.appendAscii( RTL_CONSTASCII_STRINGPARAM("&quot;") ); break;
default: aNormalized.append( *pCur );
- }
+ }
}
// suffix: closing quote and bracket
diff --git a/unotools/source/config/configvaluecontainer.cxx b/unotools/source/config/configvaluecontainer.cxx
index 46f22b9c7a0a..2fb791dc658e 100644
--- a/unotools/source/config/configvaluecontainer.cxx
+++ b/unotools/source/config/configvaluecontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,10 +61,10 @@ namespace utl
struct NodeValueAccessor
{
private:
- ::rtl::OUString sRelativePath; // the relative path of the node
- LocationType eLocationType; // the type of location where the value is stored
- void* pLocation; // the pointer to the location
- Type aDataType; // the type object pointed to by pLocation
+ ::rtl::OUString sRelativePath; // the relative path of the node
+ LocationType eLocationType; // the type of location where the value is stored
+ void* pLocation; // the pointer to the location
+ Type aDataType; // the type object pointed to by pLocation
public:
NodeValueAccessor( const ::rtl::OUString& _rNodePath );
@@ -72,11 +72,11 @@ namespace utl
void bind( void* _pLocation, const Type& _rType );
void bind( Any* _pLocation );
- bool isBound( ) const { return ( ltUnbound != eLocationType ) && ( NULL != pLocation ); }
- const ::rtl::OUString& getPath( ) const { return sRelativePath; }
- LocationType getLocType( ) const { return eLocationType; }
- void* getLocation( ) const { return pLocation; }
- const Type& getDataType( ) const { return aDataType; }
+ bool isBound( ) const { return ( ltUnbound != eLocationType ) && ( NULL != pLocation ); }
+ const ::rtl::OUString& getPath( ) const { return sRelativePath; }
+ LocationType getLocType( ) const { return eLocationType; }
+ void* getLocation( ) const { return pLocation; }
+ const Type& getDataType( ) const { return aDataType; }
bool operator == ( const NodeValueAccessor& rhs ) const;
bool operator != ( const NodeValueAccessor& rhs ) const { return !operator == ( rhs ); }
@@ -97,9 +97,9 @@ namespace utl
bool NodeValueAccessor::operator == ( const NodeValueAccessor& rhs ) const
{
- return ( sRelativePath == rhs.sRelativePath )
- && ( eLocationType == rhs.eLocationType )
- && ( pLocation == rhs.pLocation );
+ return ( sRelativePath == rhs.sRelativePath )
+ && ( eLocationType == rhs.eLocationType )
+ && ( pLocation == rhs.pLocation );
}
//---------------------------------------------------------------------
@@ -157,7 +157,7 @@ namespace utl
aBuf.append("::utl::lcl_copyData( Accessor, Any ): could not assign the data (node path: ");
aBuf.append( rtl::OUStringToOString( _rAccessor.getPath(), RTL_TEXTENCODING_ASCII_US ) );
aBuf.append( " !" );
- DBG_ASSERT( bSuccess, aBuf.getStr() );
+ DBG_ASSERT( bSuccess, aBuf.getStr() );
#endif
}
else {
@@ -212,8 +212,8 @@ namespace utl
struct SubNodeAccess : public ::std::unary_function< NodeValueAccessor, void >
{
protected:
- const OConfigurationNode& m_rRootNode;
- ::osl::Mutex& m_rMutex;
+ const OConfigurationNode& m_rRootNode;
+ ::osl::Mutex& m_rMutex;
public:
SubNodeAccess( const OConfigurationNode& _rRootNode, ::osl::Mutex& _rMutex )
@@ -263,11 +263,11 @@ namespace utl
//=====================================================================
struct OConfigurationValueContainerImpl
{
- Reference< XMultiServiceFactory > xORB; // the service factory
- ::osl::Mutex& rMutex; // the mutex for accessing the data containers
- OConfigurationTreeRoot aConfigRoot; // the configuration node we're accessing
+ Reference< XMultiServiceFactory > xORB; // the service factory
+ ::osl::Mutex& rMutex; // the mutex for accessing the data containers
+ OConfigurationTreeRoot aConfigRoot; // the configuration node we're accessing
- NodeValueAccessors aAccessors; // the accessors to the node values
+ NodeValueAccessors aAccessors; // the accessors to the node values
OConfigurationValueContainerImpl( const Reference< XMultiServiceFactory >& _rxORB, ::osl::Mutex& _rMutex )
:xORB( _rxORB )
@@ -352,14 +352,14 @@ namespace utl
{
// checks ....
DBG_ASSERT( _pContainer, "OConfigurationValueContainer::registerExchangeLocation: invalid container location!" );
- DBG_ASSERT( ( TypeClass_CHAR == _rValueType.getTypeClass( ) )
- || ( TypeClass_BOOLEAN == _rValueType.getTypeClass( ) )
- || ( TypeClass_BYTE == _rValueType.getTypeClass( ) )
- || ( TypeClass_SHORT == _rValueType.getTypeClass( ) )
- || ( TypeClass_LONG == _rValueType.getTypeClass( ) )
- || ( TypeClass_DOUBLE == _rValueType.getTypeClass( ) )
- || ( TypeClass_STRING == _rValueType.getTypeClass( ) )
- || ( TypeClass_SEQUENCE == _rValueType.getTypeClass( ) ),
+ DBG_ASSERT( ( TypeClass_CHAR == _rValueType.getTypeClass( ) )
+ || ( TypeClass_BOOLEAN == _rValueType.getTypeClass( ) )
+ || ( TypeClass_BYTE == _rValueType.getTypeClass( ) )
+ || ( TypeClass_SHORT == _rValueType.getTypeClass( ) )
+ || ( TypeClass_LONG == _rValueType.getTypeClass( ) )
+ || ( TypeClass_DOUBLE == _rValueType.getTypeClass( ) )
+ || ( TypeClass_STRING == _rValueType.getTypeClass( ) )
+ || ( TypeClass_SEQUENCE == _rValueType.getTypeClass( ) ),
"OConfigurationValueContainer::registerExchangeLocation: invalid type!" );
// build an accessor for this container
@@ -452,7 +452,7 @@ namespace utl
}
//.........................................................................
-} // namespace utl
+} // namespace utl
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/config/defaultoptions.cxx b/unotools/source/config/defaultoptions.cxx
index a4611ab74ef5..422347814fcd 100644
--- a/unotools/source/config/defaultoptions.cxx
+++ b/unotools/source/config/defaultoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,28 +52,28 @@ using namespace com::sun::star::uno;
// define ----------------------------------------------------------------
-#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
-
-#define DEFAULTPATH__ADDIN 0
-#define DEFAULTPATH__AUTOCORRECT 1
-#define DEFAULTPATH__AUTOTEXT 2
-#define DEFAULTPATH__BACKUP 3
-#define DEFAULTPATH__BASIC 4
-#define DEFAULTPATH__BITMAP 5
-#define DEFAULTPATH__CONFIG 6
-#define DEFAULTPATH__DICTIONARY 7
-#define DEFAULTPATH__FAVORITES 8
-#define DEFAULTPATH__FILTER 9
-#define DEFAULTPATH__GALLERY 10
-#define DEFAULTPATH__GRAPHIC 11
-#define DEFAULTPATH__HELP 12
-#define DEFAULTPATH__LINGUISTIC 13
-#define DEFAULTPATH__MODULE 14
-#define DEFAULTPATH__PALETTE 15
-#define DEFAULTPATH__PLUGIN 16
-#define DEFAULTPATH__TEMP 17
-#define DEFAULTPATH__TEMPLATE 18
-#define DEFAULTPATH__USERCONFIG 19
+#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
+
+#define DEFAULTPATH__ADDIN 0
+#define DEFAULTPATH__AUTOCORRECT 1
+#define DEFAULTPATH__AUTOTEXT 2
+#define DEFAULTPATH__BACKUP 3
+#define DEFAULTPATH__BASIC 4
+#define DEFAULTPATH__BITMAP 5
+#define DEFAULTPATH__CONFIG 6
+#define DEFAULTPATH__DICTIONARY 7
+#define DEFAULTPATH__FAVORITES 8
+#define DEFAULTPATH__FILTER 9
+#define DEFAULTPATH__GALLERY 10
+#define DEFAULTPATH__GRAPHIC 11
+#define DEFAULTPATH__HELP 12
+#define DEFAULTPATH__LINGUISTIC 13
+#define DEFAULTPATH__MODULE 14
+#define DEFAULTPATH__PALETTE 15
+#define DEFAULTPATH__PLUGIN 16
+#define DEFAULTPATH__TEMP 17
+#define DEFAULTPATH__TEMPLATE 18
+#define DEFAULTPATH__USERCONFIG 19
#define DEFAULTPATH__WORK 20
#define DEFAULTPATH__USERDICTIONARY 21
@@ -82,47 +82,47 @@ using namespace com::sun::star::uno;
class SvtDefaultOptions_Impl : public utl::ConfigItem
{
public:
- String m_aAddinPath;
- String m_aAutoCorrectPath;
- String m_aAutoTextPath;
- String m_aBackupPath;
- String m_aBasicPath;
- String m_aBitmapPath;
- String m_aConfigPath;
- String m_aDictionaryPath;
- String m_aFavoritesPath;
- String m_aFilterPath;
- String m_aGalleryPath;
- String m_aGraphicPath;
- String m_aHelpPath;
- String m_aLinguisticPath;
- String m_aModulePath;
- String m_aPalettePath;
- String m_aPluginPath;
- String m_aTempPath;
- String m_aTemplatePath;
- String m_aUserConfigPath;
- String m_aWorkPath;
+ String m_aAddinPath;
+ String m_aAutoCorrectPath;
+ String m_aAutoTextPath;
+ String m_aBackupPath;
+ String m_aBasicPath;
+ String m_aBitmapPath;
+ String m_aConfigPath;
+ String m_aDictionaryPath;
+ String m_aFavoritesPath;
+ String m_aFilterPath;
+ String m_aGalleryPath;
+ String m_aGraphicPath;
+ String m_aHelpPath;
+ String m_aLinguisticPath;
+ String m_aModulePath;
+ String m_aPalettePath;
+ String m_aPluginPath;
+ String m_aTempPath;
+ String m_aTemplatePath;
+ String m_aUserConfigPath;
+ String m_aWorkPath;
String m_aUserDictionaryPath;
SvtDefaultOptions_Impl();
- String GetDefaultPath( USHORT nId ) const;
+ String GetDefaultPath( USHORT nId ) const;
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
};
// global ----------------------------------------------------------------
-static SvtDefaultOptions_Impl* pOptions = NULL;
-static sal_Int32 nRefCount = 0;
+static SvtDefaultOptions_Impl* pOptions = NULL;
+static sal_Int32 nRefCount = 0;
typedef String SvtDefaultOptions_Impl:: *PathStrPtr;
struct PathToDefaultMapping_Impl
{
- SvtPathOptions::Pathes _ePath;
- PathStrPtr _pDefaultPath;
+ SvtPathOptions::Pathes _ePath;
+ PathStrPtr _pDefaultPath;
};
static PathToDefaultMapping_Impl __READONLY_DATA PathMap_Impl[] =
@@ -156,27 +156,27 @@ Sequence< OUString > GetDefaultPropertyNames()
{
static const char* aPropNames[] =
{
- "Addin", // PATH_ADDIN
- "AutoCorrect", // PATH_AUTOCORRECT
- "AutoText", // PATH_AUTOTEXT
- "Backup", // PATH_BACKUP
- "Basic", // PATH_BASIC
- "Bitmap", // PATH_BITMAP
- "Config", // PATH_CONFIG
- "Dictionary", // PATH_DICTIONARY
- "Favorite", // PATH_FAVORITES
- "Filter", // PATH_FILTER
- "Gallery", // PATH_GALLERY
- "Graphic", // PATH_GRAPHIC
- "Help", // PATH_HELP
- "Linguistic", // PATH_LINGUISTIC
- "Module", // PATH_MODULE
- "Palette", // PATH_PALETTE
- "Plugin", // PATH_PLUGIN
- "Temp", // PATH_TEMP
- "Template", // PATH_TEMPLATE
- "UserConfig", // PATH_USERCONFIG
- "Work" // PATH_WORK
+ "Addin", // PATH_ADDIN
+ "AutoCorrect", // PATH_AUTOCORRECT
+ "AutoText", // PATH_AUTOTEXT
+ "Backup", // PATH_BACKUP
+ "Basic", // PATH_BASIC
+ "Bitmap", // PATH_BITMAP
+ "Config", // PATH_CONFIG
+ "Dictionary", // PATH_DICTIONARY
+ "Favorite", // PATH_FAVORITES
+ "Filter", // PATH_FILTER
+ "Gallery", // PATH_GALLERY
+ "Graphic", // PATH_GRAPHIC
+ "Help", // PATH_HELP
+ "Linguistic", // PATH_LINGUISTIC
+ "Module", // PATH_MODULE
+ "Palette", // PATH_PALETTE
+ "Plugin", // PATH_PLUGIN
+ "Temp", // PATH_TEMP
+ "Template", // PATH_TEMPLATE
+ "UserConfig", // PATH_USERCONFIG
+ "Work" // PATH_WORK
};
const int nCount = sizeof( aPropNames ) / sizeof( const char* );
@@ -293,27 +293,27 @@ SvtDefaultOptions_Impl::SvtDefaultOptions_Impl() : ConfigItem( ASCII_STR("Office
switch ( nProp )
{
- case DEFAULTPATH__ADDIN: m_aAddinPath = String( aFullPath ); break;
- case DEFAULTPATH__AUTOCORRECT: m_aAutoCorrectPath = String( aFullPath ); break;
- case DEFAULTPATH__AUTOTEXT: m_aAutoTextPath = String( aFullPath ); break;
- case DEFAULTPATH__BACKUP: m_aBackupPath = String( aFullPath ); break;
- case DEFAULTPATH__BASIC: m_aBasicPath = String( aFullPath ); break;
- case DEFAULTPATH__BITMAP: m_aBitmapPath = String( aFullPath ); break;
- case DEFAULTPATH__CONFIG: m_aConfigPath = String( aFullPath ); break;
- case DEFAULTPATH__DICTIONARY: m_aDictionaryPath = String( aFullPath ); break;
- case DEFAULTPATH__FAVORITES: m_aFavoritesPath = String( aFullPath ); break;
- case DEFAULTPATH__FILTER: m_aFilterPath = String( aFullPath ); break;
- case DEFAULTPATH__GALLERY: m_aGalleryPath = String( aFullPath ); break;
- case DEFAULTPATH__GRAPHIC: m_aGraphicPath = String( aFullPath ); break;
- case DEFAULTPATH__HELP: m_aHelpPath = String( aFullPath ); break;
- case DEFAULTPATH__LINGUISTIC: m_aLinguisticPath = String( aFullPath ); break;
- case DEFAULTPATH__MODULE: m_aModulePath = String( aFullPath ); break;
- case DEFAULTPATH__PALETTE: m_aPalettePath = String( aFullPath ); break;
- case DEFAULTPATH__PLUGIN: m_aPluginPath = String( aFullPath ); break;
- case DEFAULTPATH__TEMP: m_aTempPath = String( aFullPath ); break;
- case DEFAULTPATH__TEMPLATE: m_aTemplatePath = String( aFullPath ); break;
- case DEFAULTPATH__USERCONFIG: m_aUserConfigPath = String( aFullPath ); break;
- case DEFAULTPATH__WORK: m_aWorkPath = String( aFullPath ); break;
+ case DEFAULTPATH__ADDIN: m_aAddinPath = String( aFullPath ); break;
+ case DEFAULTPATH__AUTOCORRECT: m_aAutoCorrectPath = String( aFullPath ); break;
+ case DEFAULTPATH__AUTOTEXT: m_aAutoTextPath = String( aFullPath ); break;
+ case DEFAULTPATH__BACKUP: m_aBackupPath = String( aFullPath ); break;
+ case DEFAULTPATH__BASIC: m_aBasicPath = String( aFullPath ); break;
+ case DEFAULTPATH__BITMAP: m_aBitmapPath = String( aFullPath ); break;
+ case DEFAULTPATH__CONFIG: m_aConfigPath = String( aFullPath ); break;
+ case DEFAULTPATH__DICTIONARY: m_aDictionaryPath = String( aFullPath ); break;
+ case DEFAULTPATH__FAVORITES: m_aFavoritesPath = String( aFullPath ); break;
+ case DEFAULTPATH__FILTER: m_aFilterPath = String( aFullPath ); break;
+ case DEFAULTPATH__GALLERY: m_aGalleryPath = String( aFullPath ); break;
+ case DEFAULTPATH__GRAPHIC: m_aGraphicPath = String( aFullPath ); break;
+ case DEFAULTPATH__HELP: m_aHelpPath = String( aFullPath ); break;
+ case DEFAULTPATH__LINGUISTIC: m_aLinguisticPath = String( aFullPath ); break;
+ case DEFAULTPATH__MODULE: m_aModulePath = String( aFullPath ); break;
+ case DEFAULTPATH__PALETTE: m_aPalettePath = String( aFullPath ); break;
+ case DEFAULTPATH__PLUGIN: m_aPluginPath = String( aFullPath ); break;
+ case DEFAULTPATH__TEMP: m_aTempPath = String( aFullPath ); break;
+ case DEFAULTPATH__TEMPLATE: m_aTemplatePath = String( aFullPath ); break;
+ case DEFAULTPATH__USERCONFIG: m_aUserConfigPath = String( aFullPath ); break;
+ case DEFAULTPATH__WORK: m_aWorkPath = String( aFullPath ); break;
case DEFAULTPATH__USERDICTIONARY: m_aUserDictionaryPath = String( aFullPath );break;
default:
diff --git a/unotools/source/config/docinfohelper.cxx b/unotools/source/config/docinfohelper.cxx
index 4baa1d984687..2e49b3c07c86 100644
--- a/unotools/source/config/docinfohelper.cxx
+++ b/unotools/source/config/docinfohelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/dynamicmenuoptions.cxx b/unotools/source/config/dynamicmenuoptions.cxx
index 3dc775c6bdca..b9f565c4e631 100644
--- a/unotools/source/config/dynamicmenuoptions.cxx
+++ b/unotools/source/config/dynamicmenuoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,18 +46,18 @@
#include <algorithm>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::std ;
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
-using namespace ::com::sun::star::beans ;
+using namespace ::std ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
+using namespace ::com::sun::star::beans ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
#define ROOTNODE_MENUS OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Menus/" ))
@@ -83,7 +83,7 @@ using namespace ::com::sun::star::beans ;
#define PATHPREFIX_USER OUString(RTL_CONSTASCII_USTRINGPARAM("u" ))
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
/*-****************************************************************************************************************
@@ -249,55 +249,55 @@ class SvtDynMenu
class SvtDynamicMenuOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtDynamicMenuOptions_Impl();
~SvtDynamicMenuOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
@param "lPropertyNames" is the list of properties which should be updated.
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& lPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
@@ -305,12 +305,12 @@ class SvtDynamicMenuOptions_Impl : public ConfigItem
@descr These class is used as static member of "SvtDynamicMenuOptions" ...
=> The code exist only for one time and isn't duplicated for every instance!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void Clear ( EDynamicMenuType eMenu );
@@ -322,23 +322,23 @@ class SvtDynamicMenuOptions_Impl : public ConfigItem
const OUString& sTargetName );
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
@short return list of key names of our configuration management which represent oue module tree
- @descr These methods return the current list of key names! We need it to get needed values from our
+ @descr These methods return the current list of key names! We need it to get needed values from our
configuration management and support dynamical menu item lists!
- @seealso -
+ @seealso -
@param "nNewCount" , returns count of menu entries for "new"
@param "nWizardCount" , returns count of menu entries for "wizard"
- @return A list of configuration key names is returned.
+ @return A list of configuration key names is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
Sequence< OUString > impl_GetPropertyNames( sal_uInt32& nNewCount, sal_uInt32& nWizardCount, sal_uInt32& nHelpBookmarksCount );
@@ -377,9 +377,9 @@ class SvtDynamicMenuOptions_Impl : public ConfigItem
@param "lSource" , original list (e.g. [m1-m2-m3-m6-m0] )
@param "lDestination" , destination of operation
@param "sSetNode" , name of configuration set to build complete path
- @return A list of configuration key names is returned.
+ @return A list of configuration key names is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void impl_SortAndExpandPropertyNames( const Sequence< OUString >& lSource ,
@@ -387,7 +387,7 @@ class SvtDynamicMenuOptions_Impl : public ConfigItem
const OUString& sSetNode );
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -398,11 +398,11 @@ class SvtDynamicMenuOptions_Impl : public ConfigItem
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtDynamicMenuOptions_Impl::SvtDynamicMenuOptions_Impl()
// Init baseclasses first
@@ -517,7 +517,7 @@ SvtDynamicMenuOptions_Impl::SvtDynamicMenuOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtDynamicMenuOptions_Impl::~SvtDynamicMenuOptions_Impl()
{
@@ -529,7 +529,7 @@ SvtDynamicMenuOptions_Impl::~SvtDynamicMenuOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtDynamicMenuOptions_Impl::Notify( const Sequence< OUString >& )
{
@@ -537,7 +537,7 @@ void SvtDynamicMenuOptions_Impl::Notify( const Sequence< OUString >& )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtDynamicMenuOptions_Impl::Commit()
{
@@ -626,7 +626,7 @@ void SvtDynamicMenuOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtDynamicMenuOptions_Impl::Clear( EDynamicMenuType eMenu )
{
@@ -653,7 +653,7 @@ void SvtDynamicMenuOptions_Impl::Clear( EDynamicMenuType eMenu )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< Sequence< PropertyValue > > SvtDynamicMenuOptions_Impl::GetMenu( EDynamicMenuType eMenu ) const
{
@@ -679,7 +679,7 @@ Sequence< Sequence< PropertyValue > > SvtDynamicMenuOptions_Impl::GetMenu( EDyna
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtDynamicMenuOptions_Impl::AppendItem( EDynamicMenuType eMenu ,
const OUString& sURL ,
@@ -712,7 +712,7 @@ void SvtDynamicMenuOptions_Impl::AppendItem( EDynamicMenuType eMen
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtDynamicMenuOptions_Impl::impl_GetPropertyNames( sal_uInt32& nNewCount, sal_uInt32& nWizardCount, sal_uInt32& nHelpBookmarksCount )
{
@@ -767,7 +767,7 @@ class SelectByPrefix
};
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
void SvtDynamicMenuOptions_Impl::impl_SortAndExpandPropertyNames( const Sequence< OUString >& lSource ,
Sequence< OUString >& lDestination ,
@@ -816,15 +816,15 @@ void SvtDynamicMenuOptions_Impl::impl_SortAndExpandPropertyNames( const Sequence
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
SvtDynamicMenuOptions_Impl* SvtDynamicMenuOptions::m_pDataContainer = NULL ;
sal_Int32 SvtDynamicMenuOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtDynamicMenuOptions::SvtDynamicMenuOptions()
{
@@ -841,7 +841,7 @@ SvtDynamicMenuOptions::SvtDynamicMenuOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtDynamicMenuOptions::~SvtDynamicMenuOptions()
{
@@ -859,7 +859,7 @@ SvtDynamicMenuOptions::~SvtDynamicMenuOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtDynamicMenuOptions::Clear( EDynamicMenuType eMenu )
{
@@ -868,7 +868,7 @@ void SvtDynamicMenuOptions::Clear( EDynamicMenuType eMenu )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< Sequence< PropertyValue > > SvtDynamicMenuOptions::GetMenu( EDynamicMenuType eMenu ) const
{
@@ -877,7 +877,7 @@ Sequence< Sequence< PropertyValue > > SvtDynamicMenuOptions::GetMenu( EDynamicMe
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtDynamicMenuOptions::AppendItem( EDynamicMenuType eMenu ,
const OUString& sURL ,
@@ -890,7 +890,7 @@ void SvtDynamicMenuOptions::AppendItem( EDynamicMenuType eMenu
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtDynamicMenuOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index 5008c70cdb92..d81e576e222e 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,11 +46,11 @@
#include <algorithm>
-using namespace ::std ;
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::std ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
using namespace ::com::sun::star;
#define ROOTNODE_EVENTS OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Events/ApplicationEvents" ))
@@ -134,7 +134,7 @@ GlobalEventConfig_Impl::GlobalEventConfig_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
GlobalEventConfig_Impl::~GlobalEventConfig_Impl()
{
@@ -154,7 +154,7 @@ GlobalEventConfig_Impl::~GlobalEventConfig_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void GlobalEventConfig_Impl::Notify( const Sequence< OUString >& )
{
@@ -175,7 +175,7 @@ void GlobalEventConfig_Impl::Notify( const Sequence< OUString >& )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void GlobalEventConfig_Impl::Commit()
{
@@ -219,7 +219,7 @@ void GlobalEventConfig_Impl::EstablishFrameCallback(const ::com::sun::star::uno:
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
void GlobalEventConfig_Impl::initBindingInfo()
{
diff --git a/unotools/source/config/extendedsecurityoptions.cxx b/unotools/source/config/extendedsecurityoptions.cxx
index d393ccad30bc..0419e5e5f81b 100644
--- a/unotools/source/config/extendedsecurityoptions.cxx
+++ b/unotools/source/config/extendedsecurityoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#include "precompiled_unotools.hxx"
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <unotools/extendedsecurityoptions.hxx>
@@ -51,31 +51,31 @@
#include "itemholder1.hxx"
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_SECURITY OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Security"))
+#define ROOTNODE_SECURITY OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Security"))
-#define SECURE_EXTENSIONS_SET OUString(RTL_CONSTASCII_USTRINGPARAM("SecureExtensions"))
-#define EXTENSION_PROPNAME OUString(RTL_CONSTASCII_USTRINGPARAM("/Extension"))
+#define SECURE_EXTENSIONS_SET OUString(RTL_CONSTASCII_USTRINGPARAM("SecureExtensions"))
+#define EXTENSION_PROPNAME OUString(RTL_CONSTASCII_USTRINGPARAM("/Extension"))
-#define PROPERTYNAME_HYPERLINKS_OPEN OUString(RTL_CONSTASCII_USTRINGPARAM("Hyperlinks/Open"))
+#define PROPERTYNAME_HYPERLINKS_OPEN OUString(RTL_CONSTASCII_USTRINGPARAM("Hyperlinks/Open"))
-#define PROPERTYHANDLE_HYPERLINKS_OPEN 0
+#define PROPERTYHANDLE_HYPERLINKS_OPEN 0
#define PROPERTYCOUNT 1
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
struct OUStringHashCode
@@ -101,134 +101,134 @@ class ExtensionHashMap : public ::std::hash_map< ::rtl::OUString,
class SvtExtendedSecurityOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtExtendedSecurityOptions_Impl();
~SvtExtendedSecurityOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& seqPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short Access method to check for security problems
- @descr Different methods to check for security related problems.
+ @short Access method to check for security problems
+ @descr Different methods to check for security related problems.
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- sal_Bool IsSecureHyperlink( const rtl::OUString& aURL ) const;
- Sequence< rtl::OUString > GetSecureExtensionList() const;
+ sal_Bool IsSecureHyperlink( const rtl::OUString& aURL ) const;
+ Sequence< rtl::OUString > GetSecureExtensionList() const;
- SvtExtendedSecurityOptions::OpenHyperlinkMode GetOpenHyperlinkMode();
- void SetOpenHyperlinkMode( SvtExtendedSecurityOptions::OpenHyperlinkMode aMode );
+ SvtExtendedSecurityOptions::OpenHyperlinkMode GetOpenHyperlinkMode();
+ void SetOpenHyperlinkMode( SvtExtendedSecurityOptions::OpenHyperlinkMode aMode );
sal_Bool IsOpenHyperlinkModeReadOnly() const;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return list of key names of ouer configuration management which represent oue module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of key names of ouer configuration management which represent oue module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management.
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
static Sequence< OUString > GetPropertyNames();
/*-****************************************************************************************************//**
- @short Fills the hash map with all extensions known to be secure
- @descr These methods fills the given hash map object with all extensions known to be secure.
+ @short Fills the hash map with all extensions known to be secure
+ @descr These methods fills the given hash map object with all extensions known to be secure.
- @seealso -
+ @seealso -
- @param aHashMap
+ @param aHashMap
A hash map to be filled with secure extension strings.
- @return -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
void FillExtensionHashMap( ExtensionHashMap& aHashMap );
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
- OUString m_aSecureExtensionsSetName;
- OUString m_aExtensionPropName;
+ OUString m_aSecureExtensionsSetName;
+ OUString m_aExtensionPropName;
- SvtExtendedSecurityOptions::OpenHyperlinkMode m_eOpenHyperlinkMode;
+ SvtExtendedSecurityOptions::OpenHyperlinkMode m_eOpenHyperlinkMode;
sal_Bool m_bROOpenHyperlinkMode;
- ExtensionHashMap m_aExtensionHashMap;
+ ExtensionHashMap m_aExtensionHashMap;
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
// Init baseclasses first
- : ConfigItem ( ROOTNODE_SECURITY ),
+ : ConfigItem ( ROOTNODE_SECURITY ),
m_aSecureExtensionsSetName( SECURE_EXTENSIONS_SET ),
m_aExtensionPropName( EXTENSION_PROPNAME ),
m_bROOpenHyperlinkMode(sal_False)
@@ -237,8 +237,8 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
// Fill the extension hash map with all secure extension strings
FillExtensionHashMap( m_aExtensionHashMap );
- Sequence< OUString > seqNames = GetPropertyNames();
- Sequence< Any > seqValues = GetProperties( seqNames );
+ Sequence< OUString > seqNames = GetPropertyNames();
+ Sequence< Any > seqValues = GetProperties( seqNames );
Sequence< sal_Bool > seqRO = GetReadOnlyStates ( seqNames );
sal_Int32 nPropertyCount = seqValues.getLength();
@@ -273,7 +273,7 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtExtendedSecurityOptions_Impl::~SvtExtendedSecurityOptions_Impl()
{
@@ -285,7 +285,7 @@ SvtExtendedSecurityOptions_Impl::~SvtExtendedSecurityOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtExtendedSecurityOptions_Impl::Notify( const Sequence< OUString >& )
{
@@ -293,19 +293,19 @@ void SvtExtendedSecurityOptions_Impl::Notify( const Sequence< OUString >& )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtExtendedSecurityOptions_Impl::Commit()
{
// Get names of supported properties, create a list for values and copy current values to it.
- Sequence< OUString > seqNames = GetPropertyNames ();
- sal_Int32 nCount = seqNames.getLength();
- Sequence< Any > seqValues ( nCount );
+ Sequence< OUString > seqNames = GetPropertyNames ();
+ sal_Int32 nCount = seqNames.getLength();
+ Sequence< Any > seqValues ( nCount );
for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty )
{
switch( nProperty )
{
- case PROPERTYHANDLE_HYPERLINKS_OPEN: {
+ case PROPERTYHANDLE_HYPERLINKS_OPEN: {
seqValues[nProperty] <<= (sal_Int32)m_eOpenHyperlinkMode;
}
break;
@@ -317,7 +317,7 @@ void SvtExtendedSecurityOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtExtendedSecurityOptions_Impl::IsSecureHyperlink( const OUString& aURL ) const
{
@@ -334,7 +334,7 @@ sal_Bool SvtExtendedSecurityOptions_Impl::IsSecureHyperlink( const OUString& aUR
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< OUString > SvtExtendedSecurityOptions_Impl::GetSecureExtensionList() const
{
@@ -351,7 +351,7 @@ Sequence< OUString > SvtExtendedSecurityOptions_Impl::GetSecureExtensionList() c
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
SvtExtendedSecurityOptions::OpenHyperlinkMode SvtExtendedSecurityOptions_Impl::GetOpenHyperlinkMode()
{
@@ -366,7 +366,7 @@ sal_Bool SvtExtendedSecurityOptions_Impl::IsOpenHyperlinkModeReadOnly() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtExtendedSecurityOptions_Impl::SetOpenHyperlinkMode( SvtExtendedSecurityOptions::OpenHyperlinkMode eNewMode )
{
@@ -375,16 +375,16 @@ void SvtExtendedSecurityOptions_Impl::SetOpenHyperlinkMode( SvtExtendedSecurityO
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
void SvtExtendedSecurityOptions_Impl::FillExtensionHashMap( ExtensionHashMap& aHashMap )
{
// Get sequence with secure extensions from configuration
- Sequence< OUString > seqNodes = GetNodeNames( m_aSecureExtensionsSetName );
+ Sequence< OUString > seqNodes = GetNodeNames( m_aSecureExtensionsSetName );
- OUString aValue;
- Sequence< Any > aValues;
- Sequence< OUString > aPropSeq( 1 );
+ OUString aValue;
+ Sequence< Any > aValues;
+ Sequence< OUString > aPropSeq( 1 );
for ( int i = 0; i < seqNodes.getLength(); i++ )
{
// Create access name for property
@@ -410,7 +410,7 @@ void SvtExtendedSecurityOptions_Impl::FillExtensionHashMap( ExtensionHashMap& aH
}
//*****************************************************************************************************************
-// private method (currently not used)
+// private method (currently not used)
//*****************************************************************************************************************
Sequence< OUString > SvtExtendedSecurityOptions_Impl::GetPropertyNames()
{
@@ -426,15 +426,15 @@ Sequence< OUString > SvtExtendedSecurityOptions_Impl::GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtExtendedSecurityOptions_Impl* SvtExtendedSecurityOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtExtendedSecurityOptions::m_nRefCount = 0 ;
+SvtExtendedSecurityOptions_Impl* SvtExtendedSecurityOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtExtendedSecurityOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtExtendedSecurityOptions::SvtExtendedSecurityOptions()
{
@@ -453,7 +453,7 @@ SvtExtendedSecurityOptions::SvtExtendedSecurityOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtExtendedSecurityOptions::~SvtExtendedSecurityOptions()
{
@@ -471,7 +471,7 @@ SvtExtendedSecurityOptions::~SvtExtendedSecurityOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtExtendedSecurityOptions::IsSecureHyperlink( const rtl::OUString& aURL ) const
{
@@ -480,7 +480,7 @@ sal_Bool SvtExtendedSecurityOptions::IsSecureHyperlink( const rtl::OUString& aUR
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< rtl::OUString > SvtExtendedSecurityOptions::GetSecureExtensionList() const
{
@@ -489,7 +489,7 @@ Sequence< rtl::OUString > SvtExtendedSecurityOptions::GetSecureExtensionList() c
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
SvtExtendedSecurityOptions::OpenHyperlinkMode SvtExtendedSecurityOptions::GetOpenHyperlinkMode()
{
@@ -505,7 +505,7 @@ sal_Bool SvtExtendedSecurityOptions::IsOpenHyperlinkModeReadOnly() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtExtendedSecurityOptions::SetOpenHyperlinkMode( SvtExtendedSecurityOptions::OpenHyperlinkMode eMode )
{
@@ -514,7 +514,7 @@ void SvtExtendedSecurityOptions::SetOpenHyperlinkMode( SvtExtendedSecurityOption
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtExtendedSecurityOptions::GetInitMutex()
{
diff --git a/unotools/source/config/fltrcfg.cxx b/unotools/source/config/fltrcfg.cxx
index 592ed8373475..e0b46a0d0dd5 100644
--- a/unotools/source/config/fltrcfg.cxx
+++ b/unotools/source/config/fltrcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,26 +43,26 @@ using namespace com::sun::star::uno;
#define C2U(cChar) OUString::createFromAscii(cChar)
// -----------------------------------------------------------------------
-#define FILTERCFG_WORD_CODE 0x0001
-#define FILTERCFG_WORD_STORAGE 0x0002
-#define FILTERCFG_EXCEL_CODE 0x0004
-#define FILTERCFG_EXCEL_STORAGE 0x0008
-#define FILTERCFG_PPOINT_CODE 0x0010
-#define FILTERCFG_PPOINT_STORAGE 0x0020
-#define FILTERCFG_MATH_LOAD 0x0100
-#define FILTERCFG_MATH_SAVE 0x0200
-#define FILTERCFG_WRITER_LOAD 0x0400
-#define FILTERCFG_WRITER_SAVE 0x0800
-#define FILTERCFG_CALC_LOAD 0x1000
-#define FILTERCFG_CALC_SAVE 0x2000
-#define FILTERCFG_IMPRESS_LOAD 0x4000
-#define FILTERCFG_IMPRESS_SAVE 0x8000
-#define FILTERCFG_EXCEL_EXECTBL 0x10000
+#define FILTERCFG_WORD_CODE 0x0001
+#define FILTERCFG_WORD_STORAGE 0x0002
+#define FILTERCFG_EXCEL_CODE 0x0004
+#define FILTERCFG_EXCEL_STORAGE 0x0008
+#define FILTERCFG_PPOINT_CODE 0x0010
+#define FILTERCFG_PPOINT_STORAGE 0x0020
+#define FILTERCFG_MATH_LOAD 0x0100
+#define FILTERCFG_MATH_SAVE 0x0200
+#define FILTERCFG_WRITER_LOAD 0x0400
+#define FILTERCFG_WRITER_SAVE 0x0800
+#define FILTERCFG_CALC_LOAD 0x1000
+#define FILTERCFG_CALC_SAVE 0x2000
+#define FILTERCFG_IMPRESS_LOAD 0x4000
+#define FILTERCFG_IMPRESS_SAVE 0x8000
+#define FILTERCFG_EXCEL_EXECTBL 0x10000
#define FILTERCFG_ENABLE_PPT_PREVIEW 0x20000
#define FILTERCFG_ENABLE_EXCEL_PREVIEW 0x40000
#define FILTERCFG_ENABLE_WORD_PREVIEW 0x80000
-#define FILTERCFG_USE_ENHANCED_FIELDS 0x100000
-#define FILTERCFG_WORD_WBCTBL 0x200000
+#define FILTERCFG_USE_ENHANCED_FIELDS 0x100000
+#define FILTERCFG_WORD_WBCTBL 0x200000
static SvtFilterOptions* pOptions=0;
@@ -71,27 +71,27 @@ static SvtFilterOptions* pOptions=0;
---------------------------------------------------------------------------*/
class SvtAppFilterOptions_Impl : public utl::ConfigItem
{
- sal_Bool bLoadVBA;
- sal_Bool bSaveVBA;
+ sal_Bool bLoadVBA;
+ sal_Bool bSaveVBA;
public:
SvtAppFilterOptions_Impl(const OUString& rRoot) :
utl::ConfigItem(rRoot),
bLoadVBA(sal_False),
- bSaveVBA(sal_False) {}
+ bSaveVBA(sal_False) {}
~SvtAppFilterOptions_Impl();
- virtual void Commit();
- virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
- void Load();
+ virtual void Commit();
+ virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
+ void Load();
- sal_Bool IsLoad() const {return bLoadVBA;}
- void SetLoad(sal_Bool bSet)
+ sal_Bool IsLoad() const {return bLoadVBA;}
+ void SetLoad(sal_Bool bSet)
{
if(bSet != bLoadVBA)
SetModified();
bLoadVBA = bSet;
}
- sal_Bool IsSave() const {return bSaveVBA;}
- void SetSave(sal_Bool bSet)
+ sal_Bool IsSave() const {return bSaveVBA;}
+ void SetSave(sal_Bool bSet)
{
if(bSet != bSaveVBA)
SetModified();
@@ -110,7 +110,7 @@ SvtAppFilterOptions_Impl::~SvtAppFilterOptions_Impl()
/* -----------------------------22.01.01 10:38--------------------------------
---------------------------------------------------------------------------*/
-void SvtAppFilterOptions_Impl::Commit()
+void SvtAppFilterOptions_Impl::Commit()
{
Sequence<OUString> aNames(2);
OUString* pNames = aNames.getArray();
@@ -135,7 +135,7 @@ void SvtAppFilterOptions_Impl::Notify( const Sequence< rtl::OUString >& )
/* -----------------------------22.01.01 10:38--------------------------------
---------------------------------------------------------------------------*/
-void SvtAppFilterOptions_Impl::Load()
+void SvtAppFilterOptions_Impl::Load()
{
Sequence<OUString> aNames(2);
OUString* pNames = aNames.getArray();
@@ -154,17 +154,17 @@ void SvtAppFilterOptions_Impl::Load()
// -----------------------------------------------------------------------
class SvtWriterFilterOptions_Impl : public SvtAppFilterOptions_Impl
{
- sal_Bool bLoadExecutable;
+ sal_Bool bLoadExecutable;
public:
SvtWriterFilterOptions_Impl(const OUString& rRoot) :
SvtAppFilterOptions_Impl(rRoot),
bLoadExecutable(sal_False)
{}
- virtual void Commit();
- void Load();
+ virtual void Commit();
+ void Load();
- sal_Bool IsLoadExecutable() const {return bLoadExecutable;}
- void SetLoadExecutable(sal_Bool bSet)
+ sal_Bool IsLoadExecutable() const {return bLoadExecutable;}
+ void SetLoadExecutable(sal_Bool bSet)
{
if(bSet != bLoadExecutable)
SetModified();
@@ -200,17 +200,17 @@ void SvtWriterFilterOptions_Impl::Load()
// -----------------------------------------------------------------------
class SvtCalcFilterOptions_Impl : public SvtAppFilterOptions_Impl
{
- sal_Bool bLoadExecutable;
+ sal_Bool bLoadExecutable;
public:
SvtCalcFilterOptions_Impl(const OUString& rRoot) :
SvtAppFilterOptions_Impl(rRoot),
bLoadExecutable(sal_False)
{}
- virtual void Commit();
- void Load();
+ virtual void Commit();
+ void Load();
- sal_Bool IsLoadExecutable() const {return bLoadExecutable;}
- void SetLoadExecutable(sal_Bool bSet)
+ sal_Bool IsLoadExecutable() const {return bLoadExecutable;}
+ void SetLoadExecutable(sal_Bool bSet)
{
if(bSet != bLoadExecutable)
SetModified();
@@ -249,7 +249,7 @@ void SvtCalcFilterOptions_Impl::Load()
struct SvtFilterOptions_Impl
{
ULONG nFlags;
- SvtWriterFilterOptions_Impl aWriterCfg;
+ SvtWriterFilterOptions_Impl aWriterCfg;
SvtCalcFilterOptions_Impl aCalcCfg;
SvtAppFilterOptions_Impl aImpressCfg;
@@ -292,14 +292,14 @@ void SvtFilterOptions_Impl::SetFlag( ULONG nFlag, BOOL bSet )
{
switch(nFlag)
{
- case FILTERCFG_WORD_CODE: aWriterCfg.SetLoad(bSet);break;
- case FILTERCFG_WORD_STORAGE: aWriterCfg.SetSave(bSet);break;
- case FILTERCFG_WORD_WBCTBL: aWriterCfg.SetLoadExecutable(bSet);break;
- case FILTERCFG_EXCEL_CODE: aCalcCfg.SetLoad(bSet);break;
- case FILTERCFG_EXCEL_STORAGE: aCalcCfg.SetSave(bSet);break;
- case FILTERCFG_EXCEL_EXECTBL: aCalcCfg.SetLoadExecutable(bSet);break;
- case FILTERCFG_PPOINT_CODE: aImpressCfg.SetLoad(bSet);break;
- case FILTERCFG_PPOINT_STORAGE: aImpressCfg.SetSave(bSet);break;
+ case FILTERCFG_WORD_CODE: aWriterCfg.SetLoad(bSet);break;
+ case FILTERCFG_WORD_STORAGE: aWriterCfg.SetSave(bSet);break;
+ case FILTERCFG_WORD_WBCTBL: aWriterCfg.SetLoadExecutable(bSet);break;
+ case FILTERCFG_EXCEL_CODE: aCalcCfg.SetLoad(bSet);break;
+ case FILTERCFG_EXCEL_STORAGE: aCalcCfg.SetSave(bSet);break;
+ case FILTERCFG_EXCEL_EXECTBL: aCalcCfg.SetLoadExecutable(bSet);break;
+ case FILTERCFG_PPOINT_CODE: aImpressCfg.SetLoad(bSet);break;
+ case FILTERCFG_PPOINT_STORAGE: aImpressCfg.SetSave(bSet);break;
default:
if( bSet )
nFlags |= nFlag;
@@ -315,14 +315,14 @@ BOOL SvtFilterOptions_Impl::IsFlag( ULONG nFlag ) const
BOOL bRet;
switch(nFlag)
{
- case FILTERCFG_WORD_CODE : bRet = aWriterCfg.IsLoad();break;
- case FILTERCFG_WORD_STORAGE : bRet = aWriterCfg.IsSave();break;
- case FILTERCFG_WORD_WBCTBL : bRet = aWriterCfg.IsLoadExecutable();break;
- case FILTERCFG_EXCEL_CODE : bRet = aCalcCfg.IsLoad();break;
+ case FILTERCFG_WORD_CODE : bRet = aWriterCfg.IsLoad();break;
+ case FILTERCFG_WORD_STORAGE : bRet = aWriterCfg.IsSave();break;
+ case FILTERCFG_WORD_WBCTBL : bRet = aWriterCfg.IsLoadExecutable();break;
+ case FILTERCFG_EXCEL_CODE : bRet = aCalcCfg.IsLoad();break;
case FILTERCFG_EXCEL_STORAGE : bRet = aCalcCfg.IsSave();break;
- case FILTERCFG_EXCEL_EXECTBL : bRet = aCalcCfg.IsLoadExecutable();break;
- case FILTERCFG_PPOINT_CODE : bRet = aImpressCfg.IsLoad();break;
- case FILTERCFG_PPOINT_STORAGE : bRet = aImpressCfg.IsSave();break;
+ case FILTERCFG_EXCEL_EXECTBL : bRet = aCalcCfg.IsLoadExecutable();break;
+ case FILTERCFG_PPOINT_CODE : bRet = aImpressCfg.IsLoad();break;
+ case FILTERCFG_PPOINT_STORAGE : bRet = aImpressCfg.IsSave();break;
default:
bRet = 0 != (nFlags & nFlag );
}
@@ -356,17 +356,17 @@ const Sequence<OUString>& SvtFilterOptions::GetPropertyNames()
aNames.realloc(nCount);
static const char* aPropNames[] =
{
- "Import/MathTypeToMath", // 0
- "Import/WinWordToWriter", // 1
- "Import/PowerPointToImpress", // 2
- "Import/ExcelToCalc", // 3
+ "Import/MathTypeToMath", // 0
+ "Import/WinWordToWriter", // 1
+ "Import/PowerPointToImpress", // 2
+ "Import/ExcelToCalc", // 3
"Export/MathToMathType", // 4
"Export/WriterToWinWord", // 5
"Export/ImpressToPowerPoint", // 6
- "Export/CalcToExcel", // 7
- "Export/EnablePowerPointPreview", // 8
- "Export/EnableExcelPreview", // 9
- "Export/EnableWordPreview", // 10
+ "Export/CalcToExcel", // 7
+ "Export/EnablePowerPointPreview", // 8
+ "Export/EnableExcelPreview", // 9
+ "Export/EnableWordPreview", // 10
"Import/ImportWWFieldsAsEnhancedFields" // 11
};
OUString* pNames = aNames.getArray();
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index 408a208e7bee..0b64ba5e14fe 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -234,7 +234,7 @@ OUString DefaultFontConfiguration::tryLocale( const Locale& rLocale, const OUStr
}
}
}
-
+
return aRet;
}
@@ -244,7 +244,7 @@ OUString DefaultFontConfiguration::getDefaultFont( const Locale& rLocale, int nT
aLocale.Language = rLocale.Language.toAsciiLowerCase();
aLocale.Country = rLocale.Country.toAsciiUpperCase();
aLocale.Variant = rLocale.Variant.toAsciiUpperCase();
-
+
OUString aType = OUString::createFromAscii( getKeyType( nType ) );
OUString aRet = tryLocale( aLocale, aType );
if( ! aRet.getLength() && aLocale.Variant.getLength() )
@@ -571,7 +571,7 @@ struct ImplFontAttrWeightSearchData
static ImplFontAttrWeightSearchData const aImplWeightAttrSearchList[] =
{
// the attribute names are ordered by "first match wins"
-// e.g. "semilight" should wins over "semi"
+// e.g. "semilight" should wins over "semi"
{ "extrablack", WEIGHT_BLACK },
{ "ultrablack", WEIGHT_BLACK },
{ "ultrabold", WEIGHT_ULTRABOLD },
@@ -1087,7 +1087,7 @@ unsigned long FontSubstConfiguration::getSubstType( const com::sun::star::uno::R
catch( WrappedTargetException )
{
}
-
+
return type;
}
@@ -1119,7 +1119,7 @@ void FontSubstConfiguration::readLocaleSubst( const com::sun::star::lang::Locale
const OUString* pFontNames = aFonts.getConstArray();
// improve performance, heap fragmentation
it->second.aSubstAttributes.reserve( nFonts );
-
+
// strings for subst retrieval, construct only once
OUString aSubstFontsStr ( RTL_CONSTASCII_USTRINGPARAM( "SubstFonts" ) );
OUString aSubstFontsMSStr ( RTL_CONSTASCII_USTRINGPARAM( "SubstFontsMS" ) );
@@ -1161,7 +1161,7 @@ void FontSubstConfiguration::readLocaleSubst( const com::sun::star::lang::Locale
aAttr.Weight = getSubstWeight( xFont, aSubstWeightStr );
aAttr.Width = getSubstWidth( xFont, aSubstWidthStr );
aAttr.Type = getSubstType( xFont, aSubstTypeStr );
-
+
// finally insert this entry
it->second.aSubstAttributes.push_back( aAttr );
}
diff --git a/unotools/source/config/fontoptions.cxx b/unotools/source/config/fontoptions.cxx
index 13126e5612b9..253e1c85864b 100644
--- a/unotools/source/config/fontoptions.cxx
+++ b/unotools/source/config/fontoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,160 +40,160 @@
#include "itemholder1.hxx"
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_FONT OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Font" ))
+#define ROOTNODE_FONT OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Font" ))
-#define PROPERTYNAME_REPLACEMENTTABLE OUString(RTL_CONSTASCII_USTRINGPARAM("Substitution/Replacement" ))
-#define PROPERTYNAME_FONTHISTORY OUString(RTL_CONSTASCII_USTRINGPARAM("View/History" ))
-#define PROPERTYNAME_FONTWYSIWYG OUString(RTL_CONSTASCII_USTRINGPARAM("View/ShowFontBoxWYSIWYG" ))
+#define PROPERTYNAME_REPLACEMENTTABLE OUString(RTL_CONSTASCII_USTRINGPARAM("Substitution/Replacement" ))
+#define PROPERTYNAME_FONTHISTORY OUString(RTL_CONSTASCII_USTRINGPARAM("View/History" ))
+#define PROPERTYNAME_FONTWYSIWYG OUString(RTL_CONSTASCII_USTRINGPARAM("View/ShowFontBoxWYSIWYG" ))
-#define PROPERTYHANDLE_REPLACEMENTTABLE 0
-#define PROPERTYHANDLE_FONTHISTORY 1
-#define PROPERTYHANDLE_FONTWYSIWYG 2
+#define PROPERTYHANDLE_REPLACEMENTTABLE 0
+#define PROPERTYHANDLE_FONTHISTORY 1
+#define PROPERTYHANDLE_FONTWYSIWYG 2
-#define PROPERTYCOUNT 3
+#define PROPERTYCOUNT 3
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
class SvtFontOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtFontOptions_Impl();
~SvtFontOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& seqPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short access method to get internal values
- @descr These method give us a chance to regulate acces to ouer internal values.
+ @short access method to get internal values
+ @descr These method give us a chance to regulate acces to ouer internal values.
It's not used in the moment - but it's possible for the feature!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- sal_Bool IsReplacementTableEnabled ( ) const ;
- void EnableReplacementTable ( sal_Bool bState ) ;
+ sal_Bool IsReplacementTableEnabled ( ) const ;
+ void EnableReplacementTable ( sal_Bool bState ) ;
- sal_Bool IsFontHistoryEnabled ( ) const ;
- void EnableFontHistory ( sal_Bool bState ) ;
+ sal_Bool IsFontHistoryEnabled ( ) const ;
+ void EnableFontHistory ( sal_Bool bState ) ;
- sal_Bool IsFontWYSIWYGEnabled ( ) const ;
- void EnableFontWYSIWYG ( sal_Bool bState ) ;
+ sal_Bool IsFontWYSIWYGEnabled ( ) const ;
+ void EnableFontWYSIWYG ( sal_Bool bState ) ;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return list of key names of ouer configuration management which represent oue module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of key names of ouer configuration management which represent oue module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management.
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
static Sequence< OUString > impl_GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
- sal_Bool m_bReplacementTable ;
- sal_Bool m_bFontHistory ;
- sal_Bool m_bFontWYSIWYG ;
+ sal_Bool m_bReplacementTable ;
+ sal_Bool m_bFontHistory ;
+ sal_Bool m_bFontWYSIWYG ;
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtFontOptions_Impl::SvtFontOptions_Impl()
// Init baseclasses first
- : ConfigItem ( ROOTNODE_FONT )
+ : ConfigItem ( ROOTNODE_FONT )
// Init member then.
- , m_bReplacementTable ( sal_False )
- , m_bFontHistory ( sal_False )
- , m_bFontWYSIWYG ( sal_False )
+ , m_bReplacementTable ( sal_False )
+ , m_bFontHistory ( sal_False )
+ , m_bFontWYSIWYG ( sal_False )
{
// Use our static list of configuration keys to get his values.
- Sequence< OUString > seqNames = impl_GetPropertyNames ( );
- Sequence< Any > seqValues = GetProperties ( seqNames );
+ Sequence< OUString > seqNames = impl_GetPropertyNames ( );
+ Sequence< Any > seqValues = GetProperties ( seqNames );
// Safe impossible cases.
// We need values from ALL configuration keys.
@@ -209,17 +209,17 @@ SvtFontOptions_Impl::SvtFontOptions_Impl()
DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtFontOptions_Impl::SvtFontOptions_Impl()\nInvalid property value detected!\n" );
switch( nProperty )
{
- case PROPERTYHANDLE_REPLACEMENTTABLE : {
+ case PROPERTYHANDLE_REPLACEMENTTABLE : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtFontOptions_Impl::SvtFontOptions_Impl()\nWho has changed the value type of \"Office.Common\\Font\\Substitution\\Replacement\"?" );
seqValues[nProperty] >>= m_bReplacementTable;
}
break;
- case PROPERTYHANDLE_FONTHISTORY : {
+ case PROPERTYHANDLE_FONTHISTORY : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtFontOptions_Impl::SvtFontOptions_Impl()\nWho has changed the value type of \"Office.Common\\Font\\View\\History\"?" );
seqValues[nProperty] >>= m_bFontHistory;
}
break;
- case PROPERTYHANDLE_FONTWYSIWYG : {
+ case PROPERTYHANDLE_FONTWYSIWYG : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtFontOptions_Impl::SvtFontOptions_Impl()\nWho has changed the value type of \"Office.Common\\Font\\View\\ShowFontBoxWYSIWYG\"?" );
seqValues[nProperty] >>= m_bFontWYSIWYG;
}
@@ -233,7 +233,7 @@ SvtFontOptions_Impl::SvtFontOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtFontOptions_Impl::~SvtFontOptions_Impl()
{
@@ -245,7 +245,7 @@ SvtFontOptions_Impl::~SvtFontOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtFontOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
{
@@ -282,27 +282,27 @@ void SvtFontOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtFontOptions_Impl::Commit()
{
// Get names of supported properties, create a list for values and copy current values to it.
- Sequence< OUString > seqNames = impl_GetPropertyNames();
- sal_Int32 nCount = seqNames.getLength();
- Sequence< Any > seqValues ( nCount );
+ Sequence< OUString > seqNames = impl_GetPropertyNames();
+ sal_Int32 nCount = seqNames.getLength();
+ Sequence< Any > seqValues ( nCount );
for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty )
{
switch( nProperty )
{
- case PROPERTYHANDLE_REPLACEMENTTABLE : {
+ case PROPERTYHANDLE_REPLACEMENTTABLE : {
seqValues[nProperty] <<= m_bReplacementTable;
}
break;
- case PROPERTYHANDLE_FONTHISTORY : {
+ case PROPERTYHANDLE_FONTHISTORY : {
seqValues[nProperty] <<= m_bFontHistory;
}
break;
- case PROPERTYHANDLE_FONTWYSIWYG : {
+ case PROPERTYHANDLE_FONTWYSIWYG : {
seqValues[nProperty] <<= m_bFontWYSIWYG;
}
break;
@@ -313,7 +313,7 @@ void SvtFontOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtFontOptions_Impl::IsReplacementTableEnabled() const
{
@@ -321,7 +321,7 @@ sal_Bool SvtFontOptions_Impl::IsReplacementTableEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtFontOptions_Impl::EnableReplacementTable( sal_Bool bState )
{
@@ -330,7 +330,7 @@ void SvtFontOptions_Impl::EnableReplacementTable( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtFontOptions_Impl::IsFontHistoryEnabled() const
{
@@ -338,7 +338,7 @@ sal_Bool SvtFontOptions_Impl::IsFontHistoryEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtFontOptions_Impl::EnableFontHistory( sal_Bool bState )
{
@@ -347,7 +347,7 @@ void SvtFontOptions_Impl::EnableFontHistory( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtFontOptions_Impl::IsFontWYSIWYGEnabled() const
{
@@ -355,7 +355,7 @@ sal_Bool SvtFontOptions_Impl::IsFontWYSIWYGEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtFontOptions_Impl::EnableFontWYSIWYG( sal_Bool bState )
{
@@ -364,16 +364,16 @@ void SvtFontOptions_Impl::EnableFontWYSIWYG( sal_Bool bState )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtFontOptions_Impl::impl_GetPropertyNames()
{
// Build static list of configuration key names.
static const OUString pProperties[] =
{
- PROPERTYNAME_REPLACEMENTTABLE ,
- PROPERTYNAME_FONTHISTORY ,
- PROPERTYNAME_FONTWYSIWYG ,
+ PROPERTYNAME_REPLACEMENTTABLE ,
+ PROPERTYNAME_FONTHISTORY ,
+ PROPERTYNAME_FONTWYSIWYG ,
};
// Initialize return sequence with these list ...
static const Sequence< OUString > seqPropertyNames( pProperties, PROPERTYCOUNT );
@@ -382,15 +382,15 @@ Sequence< OUString > SvtFontOptions_Impl::impl_GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtFontOptions_Impl* SvtFontOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtFontOptions::m_nRefCount = 0 ;
+SvtFontOptions_Impl* SvtFontOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtFontOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtFontOptions::SvtFontOptions()
{
@@ -409,7 +409,7 @@ SvtFontOptions::SvtFontOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtFontOptions::~SvtFontOptions()
{
@@ -427,7 +427,7 @@ SvtFontOptions::~SvtFontOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtFontOptions::IsReplacementTableEnabled() const
{
@@ -436,7 +436,7 @@ sal_Bool SvtFontOptions::IsReplacementTableEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtFontOptions::EnableReplacementTable( sal_Bool bState )
{
@@ -445,7 +445,7 @@ void SvtFontOptions::EnableReplacementTable( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtFontOptions::IsFontHistoryEnabled() const
{
@@ -454,7 +454,7 @@ sal_Bool SvtFontOptions::IsFontHistoryEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtFontOptions::EnableFontHistory( sal_Bool bState )
{
@@ -463,7 +463,7 @@ void SvtFontOptions::EnableFontHistory( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtFontOptions::IsFontWYSIWYGEnabled() const
{
@@ -472,7 +472,7 @@ sal_Bool SvtFontOptions::IsFontWYSIWYGEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtFontOptions::EnableFontWYSIWYG( sal_Bool bState )
{
@@ -481,7 +481,7 @@ void SvtFontOptions::EnableFontWYSIWYG( sal_Bool bState )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtFontOptions::impl_GetOwnStaticMutex()
{
diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx
index dd18d399bc10..5aba5f134605 100644
--- a/unotools/source/config/historyoptions.cxx
+++ b/unotools/source/config/historyoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/inetoptions.cxx b/unotools/source/config/inetoptions.cxx
index 387bbe384edc..7a5ebee1ef2d 100644
--- a/unotools/source/config/inetoptions.cxx
+++ b/unotools/source/config/inetoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/internaloptions.cxx b/unotools/source/config/internaloptions.cxx
index d1501a612128..8ff1f4e4ba7a 100644
--- a/unotools/source/config/internaloptions.cxx
+++ b/unotools/source/config/internaloptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,39 +43,39 @@
#include "itemholder1.hxx"
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::std ;
-using namespace ::com::sun::star::uno ;
-using namespace ::com::sun::star::beans ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::std ;
+using namespace ::com::sun::star::uno ;
+using namespace ::com::sun::star::beans ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_INTERNAL OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Internal" ))
-#define DEFAULT_SLOTCFG sal_False
-#define DEFAULT_SENDCRASHMAIL sal_False
+#define ROOTNODE_INTERNAL OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Internal" ))
+#define DEFAULT_SLOTCFG sal_False
+#define DEFAULT_SENDCRASHMAIL sal_False
#define DEFAULT_USEMAILUI sal_True
-#define DEFAULT_CURRENTTEMPURL OUString(RTL_CONSTASCII_USTRINGPARAM(""))
+#define DEFAULT_CURRENTTEMPURL OUString(RTL_CONSTASCII_USTRINGPARAM(""))
-#define FIXPROPERTYNAME_SLOTCFG OUString(RTL_CONSTASCII_USTRINGPARAM("Slot" ))
-#define FIXPROPERTYNAME_SENDCRASHMAIL OUString(RTL_CONSTASCII_USTRINGPARAM("SendCrashMail" ))
+#define FIXPROPERTYNAME_SLOTCFG OUString(RTL_CONSTASCII_USTRINGPARAM("Slot" ))
+#define FIXPROPERTYNAME_SENDCRASHMAIL OUString(RTL_CONSTASCII_USTRINGPARAM("SendCrashMail" ))
#define FIXPROPERTYNAME_USEMAILUI OUString(RTL_CONSTASCII_USTRINGPARAM("UseMailUI" ))
-#define FIXPROPERTYNAME_CURRENTTEMPURL OUString(RTL_CONSTASCII_USTRINGPARAM("CurrentTempURL" ))
+#define FIXPROPERTYNAME_CURRENTTEMPURL OUString(RTL_CONSTASCII_USTRINGPARAM("CurrentTempURL" ))
//#define FIXPROPERTYNAME_REMOVEMENUENTRYCLOSE OUString(RTL_CONSTASCII_USTRINGPARAM("RemoveMenuEntryClose"))
//#define FIXPROPERTYNAME_REMOVEMENUENTRYBACKTOWEBTOP OUString(RTL_CONSTASCII_USTRINGPARAM("RemoveMenuEntryBackToWebtop"))
//#define FIXPROPERTYNAME_REMOVEMENUENTRYNEWWEBTOP OUString(RTL_CONSTASCII_USTRINGPARAM("RemoveMenuEntryNewWebtop"))
//#define FIXPROPERTYNAME_REMOVEMENUENTRYLOGOUT OUString(RTL_CONSTASCII_USTRINGPARAM("RemoveMenuEntryLogout"))
-#define FIXPROPERTYHANDLE_SLOTCFG 0
-#define FIXPROPERTYHANDLE_SENDCRASHMAIL 1
+#define FIXPROPERTYHANDLE_SLOTCFG 0
+#define FIXPROPERTYHANDLE_SENDCRASHMAIL 1
#define FIXPROPERTYHANDLE_USEMAILUI 2
-#define FIXPROPERTYHANDLE_CURRENTTEMPURL 3
+#define FIXPROPERTYHANDLE_CURRENTTEMPURL 3
//#define FIXPROPERTYHANDLE_REMOVEMENUENTRYCLOSE 3
//#define FIXPROPERTYHANDLE_REMOVEMENUENTRYBACKTOWEBTOP 4
//#define FIXPROPERTYHANDLE_REMOVEMENUENTRYNEWWEBTOP 5
@@ -83,42 +83,42 @@ using namespace ::com::sun::star::beans ;
#define FIXPROPERTYCOUNT 4
/*
-#define PROPERTYNAME_RECOVERYLIST OUString(RTL_CONSTASCII_USTRINGPARAM("RecoveryList" ))
-#define PROPERTYNAME_URL OUString(RTL_CONSTASCII_USTRINGPARAM("OrgURL" ))
-#define PROPERTYNAME_FILTER OUString(RTL_CONSTASCII_USTRINGPARAM("FilterName" ))
-#define PROPERTYNAME_TEMPNAME OUString(RTL_CONSTASCII_USTRINGPARAM("TempURL" ))
-
-#define OFFSET_URL 0
-#define OFFSET_FILTER 1
-#define OFFSET_TEMPNAME 2
+#define PROPERTYNAME_RECOVERYLIST OUString(RTL_CONSTASCII_USTRINGPARAM("RecoveryList" ))
+#define PROPERTYNAME_URL OUString(RTL_CONSTASCII_USTRINGPARAM("OrgURL" ))
+#define PROPERTYNAME_FILTER OUString(RTL_CONSTASCII_USTRINGPARAM("FilterName" ))
+#define PROPERTYNAME_TEMPNAME OUString(RTL_CONSTASCII_USTRINGPARAM("TempURL" ))
+
+#define OFFSET_URL 0
+#define OFFSET_FILTER 1
+#define OFFSET_TEMPNAME 2
*/
-#define PATHDELIMITER OUString(RTL_CONSTASCII_USTRINGPARAM("/" ))
-#define FIXR OUString(RTL_CONSTASCII_USTRINGPARAM("r" ))
+#define PATHDELIMITER OUString(RTL_CONSTASCII_USTRINGPARAM("/" ))
+#define FIXR OUString(RTL_CONSTASCII_USTRINGPARAM("r" ))
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
/*
struct tIMPL_RecoveryEntry
{
- OUString sURL ;
- OUString sFilter ;
- OUString sTempName ;
+ OUString sURL ;
+ OUString sFilter ;
+ OUString sTempName ;
tIMPL_RecoveryEntry()
{
- sURL = OUString();
- sFilter = OUString();
- sTempName = OUString();
+ sURL = OUString();
+ sFilter = OUString();
+ sTempName = OUString();
}
- tIMPL_RecoveryEntry( const OUString& sNewURL ,
- const OUString& sNewFilter ,
- const OUString& sNewTempName )
+ tIMPL_RecoveryEntry( const OUString& sNewURL ,
+ const OUString& sNewFilter ,
+ const OUString& sNewTempName )
{
- sURL = sNewURL ;
- sFilter = sNewFilter ;
- sTempName = sNewTempName ;
+ sURL = sNewURL ;
+ sFilter = sNewFilter ;
+ sTempName = sNewTempName ;
}
};
@@ -127,7 +127,7 @@ typedef deque< tIMPL_RecoveryEntry > tIMPL_RecoveryStack;
class SvtInternalOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
@@ -137,39 +137,39 @@ class SvtInternalOptions_Impl : public ConfigItem
sal_Bool m_bRemoveMenuEntryNewWebtop;
sal_Bool m_bRemoveMenuEntryLogout;
sal_Bool m_bSlotCFG ; /// cache "Slot" of Internal section
- sal_Bool m_bSendCrashMail ; /// cache "SendCrashMail" of Internal section
+ sal_Bool m_bSendCrashMail ; /// cache "SendCrashMail" of Internal section
sal_Bool m_bUseMailUI;
- OUString m_aCurrentTempURL ;
- // tIMPL_RecoveryStack m_aRecoveryList ; /// cache "RecoveryList" of Internal section
+ OUString m_aCurrentTempURL ;
+ // tIMPL_RecoveryStack m_aRecoveryList ; /// cache "RecoveryList" of Internal section
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtInternalOptions_Impl();
~SvtInternalOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& )
@@ -178,35 +178,35 @@ class SvtInternalOptions_Impl : public ConfigItem
}
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short access method to get internal values
- @descr These method give us a chance to regulate acces to ouer internal values.
+ @short access method to get internal values
+ @descr These method give us a chance to regulate acces to ouer internal values.
It's not used in the moment - but it's possible for the feature!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
sal_Bool IsRemoveMenuEntryClose() const { return m_bRemoveMenuEntryClose; }
@@ -217,46 +217,46 @@ class SvtInternalOptions_Impl : public ConfigItem
sal_Bool CrashMailEnabled () const { return m_bSendCrashMail; }
sal_Bool MailUIEnabled () const { return m_bUseMailUI; }
- OUString GetCurrentTempURL() const { return m_aCurrentTempURL; }
- void SetCurrentTempURL( const OUString& aNewCurrentTempURL );
+ OUString GetCurrentTempURL() const { return m_aCurrentTempURL; }
+ void SetCurrentTempURL( const OUString& aNewCurrentTempURL );
/*
- void PushRecoveryItem ( const OUString& sURL ,
- const OUString& sFilter ,
- const OUString& sTempName );
- void PopRecoveryItem ( OUString& sURL ,
- OUString& sFilter ,
- OUString& sTempName );
- sal_Bool IsRecoveryListEmpty ( ) const;
+ void PushRecoveryItem ( const OUString& sURL ,
+ const OUString& sFilter ,
+ const OUString& sTempName );
+ void PopRecoveryItem ( OUString& sURL ,
+ OUString& sFilter ,
+ OUString& sTempName );
+ sal_Bool IsRecoveryListEmpty ( ) const;
*/
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return list of fix key names of ouer configuration management which represent oue module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of fix key names of ouer configuration management which represent oue module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management. We return well known key names only - because the "UserData" node
is handled in a special way!
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
Sequence< OUString > impl_GetPropertyNames();
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtInternalOptions_Impl::SvtInternalOptions_Impl()
// Init baseclasses first
@@ -266,24 +266,24 @@ SvtInternalOptions_Impl::SvtInternalOptions_Impl()
, m_bRemoveMenuEntryBackToWebtop ( sal_False )
, m_bRemoveMenuEntryNewWebtop ( sal_False )
, m_bRemoveMenuEntryLogout ( sal_False )
- , m_bSlotCFG ( DEFAULT_SLOTCFG )
- , m_bSendCrashMail ( DEFAULT_SENDCRASHMAIL )
- , m_bUseMailUI ( DEFAULT_USEMAILUI )
- , m_aCurrentTempURL ( DEFAULT_CURRENTTEMPURL )
+ , m_bSlotCFG ( DEFAULT_SLOTCFG )
+ , m_bSendCrashMail ( DEFAULT_SENDCRASHMAIL )
+ , m_bUseMailUI ( DEFAULT_USEMAILUI )
+ , m_aCurrentTempURL ( DEFAULT_CURRENTTEMPURL )
{
// Use our list of configuration keys to get his values.
// structure of internal section: (first 2 entries are fixed - all other are member of a set!)
- // "Slot"
- // "SendCrashMail"
- // "RecoveryList/r1/URL"
- // "RecoveryList/r1/Filter"
- // "RecoveryList/r1/TempName"
- // "RecoveryList/r2/URL"
- // "RecoveryList/r2/Filter"
- // "RecoveryList/r2/TempName"
- // "RecoveryList/.."
- Sequence< OUString > seqNames = impl_GetPropertyNames() ;
- Sequence< Any > seqValues = GetProperties( seqNames ) ;
+ // "Slot"
+ // "SendCrashMail"
+ // "RecoveryList/r1/URL"
+ // "RecoveryList/r1/Filter"
+ // "RecoveryList/r1/TempName"
+ // "RecoveryList/r2/URL"
+ // "RecoveryList/r2/Filter"
+ // "RecoveryList/r2/TempName"
+ // "RecoveryList/.."
+ Sequence< OUString > seqNames = impl_GetPropertyNames() ;
+ Sequence< Any > seqValues = GetProperties( seqNames ) ;
// Safe impossible cases.
// We need values from ALL configuration keys.
@@ -291,12 +291,12 @@ SvtInternalOptions_Impl::SvtInternalOptions_Impl()
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtInternalOptions_Impl::SvtInternalOptions_Impl()\nI miss some values of configuration keys!\n" );
// Read fixed values first!
- DBG_ASSERT(!(seqValues[FIXPROPERTYHANDLE_SLOTCFG].getValueTypeClass()!=TypeClass_BOOLEAN) , "SvtInternalOptions_Impl::SvtInternalOptions_Impl()\nWho has changed the value type of \"Office.Common\\Internal\\Slot\"?" );
- DBG_ASSERT(!(seqValues[FIXPROPERTYHANDLE_SENDCRASHMAIL].getValueTypeClass()!=TypeClass_BOOLEAN) , "SvtInternalOptions_Impl::SvtInternalOptions_Impl()\nWho has changed the value type of \"Office.Common\\Internal\\SendCrashMail\"?" );
- seqValues[FIXPROPERTYHANDLE_SLOTCFG ] >>= m_bSlotCFG ;
- seqValues[FIXPROPERTYHANDLE_SENDCRASHMAIL ] >>= m_bSendCrashMail ;
+ DBG_ASSERT(!(seqValues[FIXPROPERTYHANDLE_SLOTCFG].getValueTypeClass()!=TypeClass_BOOLEAN) , "SvtInternalOptions_Impl::SvtInternalOptions_Impl()\nWho has changed the value type of \"Office.Common\\Internal\\Slot\"?" );
+ DBG_ASSERT(!(seqValues[FIXPROPERTYHANDLE_SENDCRASHMAIL].getValueTypeClass()!=TypeClass_BOOLEAN) , "SvtInternalOptions_Impl::SvtInternalOptions_Impl()\nWho has changed the value type of \"Office.Common\\Internal\\SendCrashMail\"?" );
+ seqValues[FIXPROPERTYHANDLE_SLOTCFG ] >>= m_bSlotCFG ;
+ seqValues[FIXPROPERTYHANDLE_SENDCRASHMAIL ] >>= m_bSendCrashMail ;
seqValues[FIXPROPERTYHANDLE_USEMAILUI ] >>= m_bUseMailUI ;
- seqValues[FIXPROPERTYHANDLE_CURRENTTEMPURL ] >>= m_aCurrentTempURL ;
+ seqValues[FIXPROPERTYHANDLE_CURRENTTEMPURL ] >>= m_aCurrentTempURL ;
// seqValues[FIXPROPERTYHANDLE_REMOVEMENUENTRYCLOSE ] >>= m_bRemoveMenuEntryClose ;
// seqValues[FIXPROPERTYHANDLE_REMOVEMENUENTRYBACKTOWEBTOP ] >>= m_bRemoveMenuEntryBackToWebtop ;
// seqValues[FIXPROPERTYHANDLE_REMOVEMENUENTRYNEWWEBTOP ] >>= m_bRemoveMenuEntryNewWebtop ;
@@ -306,16 +306,16 @@ SvtInternalOptions_Impl::SvtInternalOptions_Impl()
// 3 subkeys for every item!
// Attention: Start at next element after last fixed entry! We must ignore "Slot" and "SendCrashMail" ...
tIMPL_RecoveryEntry aEntry;
- sal_uInt32 nCount = seqValues.getLength() ;
- sal_uInt32 nPosition = FIXPROPERTYCOUNT ;
+ sal_uInt32 nCount = seqValues.getLength() ;
+ sal_uInt32 nPosition = FIXPROPERTYCOUNT ;
while( nPosition<nCount )
{
- seqValues[nPosition] >>= aEntry.sURL ;
+ seqValues[nPosition] >>= aEntry.sURL ;
++nPosition;
- seqValues[nPosition] >>= aEntry.sFilter ;
+ seqValues[nPosition] >>= aEntry.sFilter ;
++nPosition;
- seqValues[nPosition] >>= aEntry.sTempName ;
+ seqValues[nPosition] >>= aEntry.sTempName ;
++nPosition;
m_aRecoveryList.push_front( aEntry );
}
@@ -326,7 +326,7 @@ SvtInternalOptions_Impl::SvtInternalOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtInternalOptions_Impl::~SvtInternalOptions_Impl()
{
@@ -337,7 +337,7 @@ SvtInternalOptions_Impl::~SvtInternalOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtInternalOptions_Impl::Commit()
{
@@ -356,9 +356,9 @@ void SvtInternalOptions_Impl::Commit()
// Write set of dynamic properties then.
ClearNodeSet( PROPERTYNAME_RECOVERYLIST );
- tIMPL_RecoveryEntry aItem ;
- OUString sNode ;
- Sequence< PropertyValue > seqPropertyValues( 3 ) ; // Every node in set has 3 sub-nodes!( url, filter, tempname )
+ tIMPL_RecoveryEntry aItem ;
+ OUString sNode ;
+ Sequence< PropertyValue > seqPropertyValues( 3 ) ; // Every node in set has 3 sub-nodes!( url, filter, tempname )
// Copy list entries to save-list and write it to configuration.
@@ -368,12 +368,12 @@ void SvtInternalOptions_Impl::Commit()
aItem = m_aRecoveryList.top();
m_aRecoveryList.pop();
sNode = PROPERTYNAME_RECOVERYLIST + PATHDELIMITER + FIXR + OUString::valueOf( (sal_Int32)nItem ) + PATHDELIMITER;
- seqPropertyValues[OFFSET_URL ].Name = sNode + PROPERTYNAME_URL ;
- seqPropertyValues[OFFSET_FILTER ].Name = sNode + PROPERTYNAME_FILTER ;
- seqPropertyValues[OFFSET_TEMPNAME ].Name = sNode + PROPERTYNAME_TEMPNAME ;
- seqPropertyValues[OFFSET_URL ].Value <<= aItem.sURL ;
- seqPropertyValues[OFFSET_FILTER ].Value <<= aItem.sFilter ;
- seqPropertyValues[OFFSET_TEMPNAME ].Value <<= aItem.sTempName ;
+ seqPropertyValues[OFFSET_URL ].Name = sNode + PROPERTYNAME_URL ;
+ seqPropertyValues[OFFSET_FILTER ].Name = sNode + PROPERTYNAME_FILTER ;
+ seqPropertyValues[OFFSET_TEMPNAME ].Name = sNode + PROPERTYNAME_TEMPNAME ;
+ seqPropertyValues[OFFSET_URL ].Value <<= aItem.sURL ;
+ seqPropertyValues[OFFSET_FILTER ].Value <<= aItem.sFilter ;
+ seqPropertyValues[OFFSET_TEMPNAME ].Value <<= aItem.sTempName ;
SetSetProperties( PROPERTYNAME_RECOVERYLIST, seqPropertyValues );
}
@@ -384,12 +384,12 @@ void SvtInternalOptions_Impl::Commit()
aItem = *iRecovery;
sNode = PROPERTYNAME_RECOVERYLIST + PATHDELIMITER + FIXR +
OUString::valueOf( (sal_Int32)nItem ) + PATHDELIMITER;
- seqPropertyValues[OFFSET_URL ].Name = sNode + PROPERTYNAME_URL ;
- seqPropertyValues[OFFSET_FILTER ].Name = sNode + PROPERTYNAME_FILTER ;
- seqPropertyValues[OFFSET_TEMPNAME ].Name = sNode + PROPERTYNAME_TEMPNAME ;
- seqPropertyValues[OFFSET_URL ].Value <<= iRecovery->sURL ;
- seqPropertyValues[OFFSET_FILTER ].Value <<= iRecovery->sFilter ;
- seqPropertyValues[OFFSET_TEMPNAME ].Value <<= iRecovery->sTempName ;
+ seqPropertyValues[OFFSET_URL ].Name = sNode + PROPERTYNAME_URL ;
+ seqPropertyValues[OFFSET_FILTER ].Name = sNode + PROPERTYNAME_FILTER ;
+ seqPropertyValues[OFFSET_TEMPNAME ].Name = sNode + PROPERTYNAME_TEMPNAME ;
+ seqPropertyValues[OFFSET_URL ].Value <<= iRecovery->sURL ;
+ seqPropertyValues[OFFSET_FILTER ].Value <<= iRecovery->sFilter ;
+ seqPropertyValues[OFFSET_TEMPNAME ].Value <<= iRecovery->sTempName ;
SetSetProperties( PROPERTYNAME_RECOVERYLIST, seqPropertyValues );
}
@@ -397,7 +397,7 @@ void SvtInternalOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtInternalOptions_Impl::SetCurrentTempURL( const OUString& aNewCurrentTempURL )
{
@@ -407,7 +407,7 @@ void SvtInternalOptions_Impl::SetCurrentTempURL( const OUString& aNewCurrentTemp
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtInternalOptions_Impl::impl_GetPropertyNames()
{
@@ -423,9 +423,9 @@ Sequence< OUString > SvtInternalOptions_Impl::impl_GetPropertyNames()
// Add names of fix properties to list.
seqProperties[FIXPROPERTYHANDLE_SLOTCFG ] = FIXPROPERTYNAME_SLOTCFG ;
- seqProperties[FIXPROPERTYHANDLE_SENDCRASHMAIL ] = FIXPROPERTYNAME_SENDCRASHMAIL ;
+ seqProperties[FIXPROPERTYHANDLE_SENDCRASHMAIL ] = FIXPROPERTYNAME_SENDCRASHMAIL ;
seqProperties[FIXPROPERTYHANDLE_USEMAILUI ] = FIXPROPERTYNAME_USEMAILUI ;
- seqProperties[FIXPROPERTYHANDLE_CURRENTTEMPURL ] = FIXPROPERTYNAME_CURRENTTEMPURL ;
+ seqProperties[FIXPROPERTYHANDLE_CURRENTTEMPURL ] = FIXPROPERTYNAME_CURRENTTEMPURL ;
// seqProperties[FIXPROPERTYHANDLE_REMOVEMENUENTRYCLOSE ] = FIXPROPERTYNAME_REMOVEMENUENTRYCLOSE;
// seqProperties[FIXPROPERTYHANDLE_REMOVEMENUENTRYBACKTOWEBTOP ] = FIXPROPERTYNAME_REMOVEMENUENTRYBACKTOWEBTOP;
// seqProperties[FIXPROPERTYHANDLE_REMOVEMENUENTRYNEWWEBTOP ] = FIXPROPERTYNAME_REMOVEMENUENTRYNEWWEBTOP;
@@ -437,11 +437,11 @@ Sequence< OUString > SvtInternalOptions_Impl::impl_GetPropertyNames()
// nPosition is the start point of an list item, nItem an index into right list of node names!
for( sal_Int32 nItem=0; nItem<nRecoveryCount; ++nItem )
{
- seqProperties[nPosition] = PROPERTYNAME_RECOVERYLIST + PATHDELIMITER + seqRecoveryItems[nItem] + PATHDELIMITER + PROPERTYNAME_URL ;
+ seqProperties[nPosition] = PROPERTYNAME_RECOVERYLIST + PATHDELIMITER + seqRecoveryItems[nItem] + PATHDELIMITER + PROPERTYNAME_URL ;
++nPosition;
- seqProperties[nPosition] = PROPERTYNAME_RECOVERYLIST + PATHDELIMITER + seqRecoveryItems[nItem] + PATHDELIMITER + PROPERTYNAME_FILTER ;
+ seqProperties[nPosition] = PROPERTYNAME_RECOVERYLIST + PATHDELIMITER + seqRecoveryItems[nItem] + PATHDELIMITER + PROPERTYNAME_FILTER ;
++nPosition;
- seqProperties[nPosition] = PROPERTYNAME_RECOVERYLIST + PATHDELIMITER + seqRecoveryItems[nItem] + PATHDELIMITER + PROPERTYNAME_TEMPNAME ;
+ seqProperties[nPosition] = PROPERTYNAME_RECOVERYLIST + PATHDELIMITER + seqRecoveryItems[nItem] + PATHDELIMITER + PROPERTYNAME_TEMPNAME ;
++nPosition;
}
*/
@@ -450,15 +450,15 @@ Sequence< OUString > SvtInternalOptions_Impl::impl_GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtInternalOptions_Impl* SvtInternalOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtInternalOptions::m_nRefCount = 0 ;
+SvtInternalOptions_Impl* SvtInternalOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtInternalOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtInternalOptions::SvtInternalOptions()
{
@@ -477,7 +477,7 @@ SvtInternalOptions::SvtInternalOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtInternalOptions::~SvtInternalOptions()
{
@@ -495,7 +495,7 @@ SvtInternalOptions::~SvtInternalOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtInternalOptions::SlotCFGEnabled() const
{
@@ -504,7 +504,7 @@ sal_Bool SvtInternalOptions::SlotCFGEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtInternalOptions::CrashMailEnabled() const
{
@@ -513,7 +513,7 @@ sal_Bool SvtInternalOptions::CrashMailEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtInternalOptions::MailUIEnabled() const
{
@@ -561,7 +561,7 @@ void SvtInternalOptions::SetCurrentTempURL( const OUString& aNewCurrentTempURL )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtInternalOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/itemholder1.cxx b/unotools/source/config/itemholder1.cxx
index e906fc5da5b5..31db23f8239d 100644
--- a/unotools/source/config/itemholder1.cxx
+++ b/unotools/source/config/itemholder1.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/itemholder1.hxx b/unotools/source/config/itemholder1.hxx
index e04b423152ba..75719b9c26fc 100644
--- a/unotools/source/config/itemholder1.hxx
+++ b/unotools/source/config/itemholder1.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/javaoptions.cxx b/unotools/source/config/javaoptions.cxx
index 0fa713c8d7b4..0820257ae2e3 100644
--- a/unotools/source/config/javaoptions.cxx
+++ b/unotools/source/config/javaoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/lingucfg.cxx b/unotools/source/config/lingucfg.cxx
index c11403f47a26..ab5be38ef759 100644
--- a/unotools/source/config/lingucfg.cxx
+++ b/unotools/source/config/lingucfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,7 +76,7 @@ static BOOL lcl_SetLocale( INT16 &rLanguage, const uno::Any &rVal )
BOOL bSucc = FALSE;
lang::Locale aNew;
- if (rVal >>= aNew) // conversion successful?
+ if (rVal >>= aNew) // conversion successful?
{
INT16 nNew = MsLangId::convertLocaleToLanguage( aNew );
if (nNew != rLanguage)
@@ -115,16 +115,16 @@ SvtLinguOptions::SvtLinguOptions()
nDefaultLanguage_CTL = LANGUAGE_NONE;
// general options
- bIsUseDictionaryList =
- bIsIgnoreControlCharacters = TRUE;
+ bIsUseDictionaryList =
+ bIsIgnoreControlCharacters = TRUE;
// spelling options
- bIsSpellCapitalization =
- bIsSpellSpecial = TRUE;
- bIsSpellAuto =
- bIsSpellReverse =
- bIsSpellWithDigits =
- bIsSpellUpperCase = FALSE;
+ bIsSpellCapitalization =
+ bIsSpellSpecial = TRUE;
+ bIsSpellAuto =
+ bIsSpellReverse =
+ bIsSpellWithDigits =
+ bIsSpellUpperCase = FALSE;
// text conversion options
bIsIgnorePostPositionalWord = TRUE;
@@ -142,11 +142,11 @@ SvtLinguOptions::SvtLinguOptions()
bROIsReverseMapping = FALSE;
// hyphenation options
- bIsHyphSpecial = TRUE;
- bIsHyphAuto = FALSE;
- nHyphMinLeading =
- nHyphMinTrailing = 2;
- nHyphMinWordLength = 0;
+ bIsHyphSpecial = TRUE;
+ bIsHyphAuto = FALSE;
+ nHyphMinLeading =
+ nHyphMinTrailing = 2;
+ nHyphMinWordLength = 0;
nDataFilesChangedCheckValue = 0;
@@ -281,7 +281,7 @@ static struct NamesToHdl
{/* 31 */ "GrammarChecking/IsInteractiveCheck", UPN_IS_GRAMMAR_INTERACTIVE, UPH_IS_GRAMMAR_INTERACTIVE},
/* similar to entry 0 (thus no own configuration entry) but with different property name and type */
-{ NULL, UPN_DEFAULT_LANGUAGE, UPH_DEFAULT_LANGUAGE},
+{ NULL, UPN_DEFAULT_LANGUAGE, UPH_DEFAULT_LANGUAGE},
{ NULL, NULL, -1}
};
@@ -1130,8 +1130,8 @@ BOOL SvtLinguConfig::GetDictionaryEntry(
xNA.set( xNA->getByName( rNodeName ), uno::UNO_QUERY_THROW );
// read group data...
- uno::Sequence< rtl::OUString > aLocations;
- rtl::OUString aFormatName;
+ uno::Sequence< rtl::OUString > aLocations;
+ rtl::OUString aFormatName;
uno::Sequence< rtl::OUString > aLocaleNames;
bSuccess = (xNA->getByName( aG_Locations ) >>= aLocations) &&
(xNA->getByName( aG_Format ) >>= aFormatName) &&
@@ -1408,8 +1408,8 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage(
}
-::rtl::OUString SvtLinguConfig::GetThesaurusDialogImage(
- const ::rtl::OUString &rServiceImplName,
+::rtl::OUString SvtLinguConfig::GetThesaurusDialogImage(
+ const ::rtl::OUString &rServiceImplName,
bool bHighContrast ) const
{
rtl::OUString aRes;
@@ -1422,9 +1422,9 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage(
return aRes;
}
-
-::rtl::OUString SvtLinguConfig::GetSynonymsContextImage(
- const ::rtl::OUString &rServiceImplName,
+
+::rtl::OUString SvtLinguConfig::GetSynonymsContextImage(
+ const ::rtl::OUString &rServiceImplName,
bool bHighContrast ) const
{
rtl::OUString aRes;
@@ -1436,7 +1436,7 @@ rtl::OUString SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage(
}
return aRes;
}
-
+
bool SvtLinguConfig::HasVendorImages( const char *pImageName ) const
{
@@ -1466,9 +1466,9 @@ bool SvtLinguConfig::HasVendorImages( const char *pImageName ) const
{
bRes = true;
break;
- }
- }
- }
+ }
+ }
+ }
}
catch (uno::Exception &)
{
@@ -1477,7 +1477,7 @@ bool SvtLinguConfig::HasVendorImages( const char *pImageName ) const
}
return bRes;
}
-
+
bool SvtLinguConfig::HasGrammarChecker() const
{
diff --git a/unotools/source/config/localisationoptions.cxx b/unotools/source/config/localisationoptions.cxx
index 3f7713e3b854..a150e0f0adec 100644
--- a/unotools/source/config/localisationoptions.cxx
+++ b/unotools/source/config/localisationoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,154 +40,154 @@
#include "itemholder1.hxx"
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_LOCALISATION OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/View/Localisation"))
-#define DEFAULT_AUTOMNEMONIC sal_False
-#define DEFAULT_DIALOGSCALE 0
+#define ROOTNODE_LOCALISATION OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/View/Localisation"))
+#define DEFAULT_AUTOMNEMONIC sal_False
+#define DEFAULT_DIALOGSCALE 0
-#define PROPERTYNAME_AUTOMNEMONIC OUString(RTL_CONSTASCII_USTRINGPARAM("AutoMnemonic" ))
-#define PROPERTYNAME_DIALOGSCALE OUString(RTL_CONSTASCII_USTRINGPARAM("DialogScale" ))
+#define PROPERTYNAME_AUTOMNEMONIC OUString(RTL_CONSTASCII_USTRINGPARAM("AutoMnemonic" ))
+#define PROPERTYNAME_DIALOGSCALE OUString(RTL_CONSTASCII_USTRINGPARAM("DialogScale" ))
-#define PROPERTYHANDLE_AUTOMNEMONIC 0
-#define PROPERTYHANDLE_DIALOGSCALE 1
+#define PROPERTYHANDLE_AUTOMNEMONIC 0
+#define PROPERTYHANDLE_DIALOGSCALE 1
-#define PROPERTYCOUNT 2
+#define PROPERTYCOUNT 2
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
class SvtLocalisationOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtLocalisationOptions_Impl();
~SvtLocalisationOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& seqPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short access method to get internal values
- @descr These method give us a chance to regulate acces to ouer internal values.
+ @short access method to get internal values
+ @descr These method give us a chance to regulate acces to ouer internal values.
It's not used in the moment - but it's possible for the feature!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- sal_Bool IsAutoMnemonic ( ) const ;
- void SetAutoMnemonic ( sal_Bool bState ) ;
- sal_Int32 GetDialogScale ( ) const ;
- void SetDialogScale ( sal_Int32 nScale ) ;
+ sal_Bool IsAutoMnemonic ( ) const ;
+ void SetAutoMnemonic ( sal_Bool bState ) ;
+ sal_Int32 GetDialogScale ( ) const ;
+ void SetDialogScale ( sal_Int32 nScale ) ;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return list of key names of ouer configuration management which represent oue module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of key names of ouer configuration management which represent oue module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management.
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
static Sequence< OUString > GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
- sal_Bool m_bAutoMnemonic ;
- sal_Int32 m_nDialogScale ;
+ sal_Bool m_bAutoMnemonic ;
+ sal_Int32 m_nDialogScale ;
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()
// Init baseclasses first
- : ConfigItem ( ROOTNODE_LOCALISATION )
+ : ConfigItem ( ROOTNODE_LOCALISATION )
// Init member then.
- , m_bAutoMnemonic ( DEFAULT_AUTOMNEMONIC )
- , m_nDialogScale ( DEFAULT_DIALOGSCALE )
+ , m_bAutoMnemonic ( DEFAULT_AUTOMNEMONIC )
+ , m_nDialogScale ( DEFAULT_DIALOGSCALE )
{
// Use our static list of configuration keys to get his values.
- Sequence< OUString > seqNames = GetPropertyNames ( );
- Sequence< Any > seqValues = GetProperties ( seqNames );
+ Sequence< OUString > seqNames = GetPropertyNames ( );
+ Sequence< Any > seqValues = GetProperties ( seqNames );
// Safe impossible cases.
// We need values from ALL configuration keys.
@@ -203,13 +203,13 @@ SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()
DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()\nInvalid property value detected!\n" );
switch( nProperty )
{
- case PROPERTYHANDLE_AUTOMNEMONIC : {
+ case PROPERTYHANDLE_AUTOMNEMONIC : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()\nWho has changed the value type of \"Office.Common\\View\\Localisation\\AutoMnemonic\"?" );
seqValues[nProperty] >>= m_bAutoMnemonic;
}
break;
- case PROPERTYHANDLE_DIALOGSCALE : {
+ case PROPERTYHANDLE_DIALOGSCALE : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_LONG), "SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()\nWho has changed the value type of \"Office.Common\\View\\Localisation\\DialogScale\"?" );
seqValues[nProperty] >>= m_nDialogScale;
}
@@ -223,7 +223,7 @@ SvtLocalisationOptions_Impl::SvtLocalisationOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtLocalisationOptions_Impl::~SvtLocalisationOptions_Impl()
{
@@ -235,7 +235,7 @@ SvtLocalisationOptions_Impl::~SvtLocalisationOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtLocalisationOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
{
@@ -268,24 +268,24 @@ void SvtLocalisationOptions_Impl::Notify( const Sequence< OUString >& seqPropert
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtLocalisationOptions_Impl::Commit()
{
// Get names of supported properties, create a list for values and copy current values to it.
- Sequence< OUString > seqNames = GetPropertyNames ();
- sal_Int32 nCount = seqNames.getLength();
- Sequence< Any > seqValues ( nCount );
+ Sequence< OUString > seqNames = GetPropertyNames ();
+ sal_Int32 nCount = seqNames.getLength();
+ Sequence< Any > seqValues ( nCount );
for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty )
{
switch( nProperty )
{
- case PROPERTYHANDLE_AUTOMNEMONIC : {
+ case PROPERTYHANDLE_AUTOMNEMONIC : {
seqValues[nProperty] <<= m_bAutoMnemonic;
}
break;
- case PROPERTYHANDLE_DIALOGSCALE : {
+ case PROPERTYHANDLE_DIALOGSCALE : {
seqValues[nProperty] <<= m_nDialogScale;
}
break;
@@ -296,7 +296,7 @@ void SvtLocalisationOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtLocalisationOptions_Impl::IsAutoMnemonic() const
{
@@ -304,7 +304,7 @@ sal_Bool SvtLocalisationOptions_Impl::IsAutoMnemonic() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtLocalisationOptions_Impl::SetAutoMnemonic( sal_Bool bState )
{
@@ -313,7 +313,7 @@ void SvtLocalisationOptions_Impl::SetAutoMnemonic( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtLocalisationOptions_Impl::GetDialogScale() const
{
@@ -321,7 +321,7 @@ sal_Int32 SvtLocalisationOptions_Impl::GetDialogScale() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtLocalisationOptions_Impl::SetDialogScale( sal_Int32 nScale )
{
@@ -330,15 +330,15 @@ void SvtLocalisationOptions_Impl::SetDialogScale( sal_Int32 nScale )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtLocalisationOptions_Impl::GetPropertyNames()
{
// Build static list of configuration key names.
static const OUString pProperties[] =
{
- PROPERTYNAME_AUTOMNEMONIC ,
- PROPERTYNAME_DIALOGSCALE ,
+ PROPERTYNAME_AUTOMNEMONIC ,
+ PROPERTYNAME_DIALOGSCALE ,
};
// Initialize return sequence with these list ...
static const Sequence< OUString > seqPropertyNames( pProperties, PROPERTYCOUNT );
@@ -347,15 +347,15 @@ Sequence< OUString > SvtLocalisationOptions_Impl::GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtLocalisationOptions_Impl* SvtLocalisationOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtLocalisationOptions::m_nRefCount = 0 ;
+SvtLocalisationOptions_Impl* SvtLocalisationOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtLocalisationOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtLocalisationOptions::SvtLocalisationOptions()
{
@@ -374,7 +374,7 @@ SvtLocalisationOptions::SvtLocalisationOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtLocalisationOptions::~SvtLocalisationOptions()
{
@@ -392,7 +392,7 @@ SvtLocalisationOptions::~SvtLocalisationOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtLocalisationOptions::IsAutoMnemonic() const
{
@@ -401,7 +401,7 @@ sal_Bool SvtLocalisationOptions::IsAutoMnemonic() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtLocalisationOptions::SetAutoMnemonic( sal_Bool bState )
{
@@ -410,7 +410,7 @@ void SvtLocalisationOptions::SetAutoMnemonic( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtLocalisationOptions::GetDialogScale() const
{
@@ -419,7 +419,7 @@ sal_Int32 SvtLocalisationOptions::GetDialogScale() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtLocalisationOptions::SetDialogScale( sal_Int32 nScale )
{
@@ -428,7 +428,7 @@ void SvtLocalisationOptions::SetDialogScale( sal_Int32 nScale )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtLocalisationOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/misccfg.cxx b/unotools/source/config/misccfg.cxx
index bb09c47fe887..128896fba4da 100644
--- a/unotools/source/config/misccfg.cxx
+++ b/unotools/source/config/misccfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,8 +43,8 @@
#define DEFAULT_TAB 2000
-#define DEF_INCH 2540L
-#define DEF_RELTWIP 1440L
+#define DEF_INCH 2540L
+#define DEF_RELTWIP 1440L
using namespace rtl;
using namespace com::sun::star::uno;
@@ -59,32 +59,32 @@ static sal_Int32 nRefCount = 0;
class SfxMiscCfg : public utl::ConfigItem
{
- BOOL bPaperSize; // printer warnings
- BOOL bPaperOrientation;
- BOOL bNotFound;
- sal_Int32 nYear2000; // two digit year representation
+ BOOL bPaperSize; // printer warnings
+ BOOL bPaperOrientation;
+ BOOL bNotFound;
+ sal_Int32 nYear2000; // two digit year representation
const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
- void Load();
+ void Load();
public:
SfxMiscCfg( );
~SfxMiscCfg( );
- virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
- virtual void Commit();
+ virtual void Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
+ virtual void Commit();
- BOOL IsNotFoundWarning() const {return bNotFound;}
- void SetNotFoundWarning( BOOL bSet);
+ BOOL IsNotFoundWarning() const {return bNotFound;}
+ void SetNotFoundWarning( BOOL bSet);
- BOOL IsPaperSizeWarning() const {return bPaperSize;}
- void SetPaperSizeWarning(BOOL bSet);
+ BOOL IsPaperSizeWarning() const {return bPaperSize;}
+ void SetPaperSizeWarning(BOOL bSet);
- BOOL IsPaperOrientationWarning() const {return bPaperOrientation;}
- void SetPaperOrientationWarning( BOOL bSet);
+ BOOL IsPaperOrientationWarning() const {return bPaperOrientation;}
+ void SetPaperOrientationWarning( BOOL bSet);
// 0 ... 99
- sal_Int32 GetYear2000() const { return nYear2000; }
+ sal_Int32 GetYear2000() const { return nYear2000; }
void SetYear2000( sal_Int32 nSet );
};
@@ -100,7 +100,7 @@ SfxMiscCfg::SfxMiscCfg() :
nYear2000( 1930 )
{
RTL_LOGFILE_CONTEXT(aLog, "svl SfxMiscCfg::SfxMiscCfg()");
-
+
Load();
}
/* -----------------------------02.03.01 15:31--------------------------------
@@ -160,10 +160,10 @@ const Sequence<OUString>& SfxMiscCfg::GetPropertyNames()
{
static const char* aPropNames[] =
{
- "Print/Warning/PaperSize", // 0
- "Print/Warning/PaperOrientation", // 1
- "Print/Warning/NotFound", // 2
- "DateFormat/TwoDigitYear", // 3
+ "Print/Warning/PaperSize", // 0
+ "Print/Warning/PaperOrientation", // 1
+ "Print/Warning/NotFound", // 2
+ "DateFormat/TwoDigitYear", // 3
};
const int nCount = 4;
aNames.realloc(nCount);
@@ -191,7 +191,7 @@ void SfxMiscCfg::Load()
{
switch(nProp)
{
- case 0: bPaperSize = *(sal_Bool*)pValues[nProp].getValue(); break; //"Print/Warning/PaperSize",
+ case 0: bPaperSize = *(sal_Bool*)pValues[nProp].getValue(); break; //"Print/Warning/PaperSize",
case 1: bPaperOrientation = *(sal_Bool*)pValues[nProp].getValue(); break; //"Print/Warning/PaperOrientation",
case 2: bNotFound = *(sal_Bool*)pValues[nProp].getValue() ; break; //"Print/Warning/NotFound",
case 3: pValues[nProp] >>= nYear2000;break; //"DateFormat/TwoDigitYear",
@@ -221,7 +221,7 @@ void SfxMiscCfg::Commit()
{
switch(nProp)
{
- case 0: pValues[nProp].setValue(&bPaperSize, rType);break; //"Print/Warning/PaperSize",
+ case 0: pValues[nProp].setValue(&bPaperSize, rType);break; //"Print/Warning/PaperSize",
case 1: pValues[nProp].setValue(&bPaperOrientation, rType);break; //"Print/Warning/PaperOrientation",
case 2: pValues[nProp].setValue(&bNotFound, rType);break; //"Print/Warning/NotFound",
case 3: pValues[nProp] <<= nYear2000;break; //"DateFormat/TwoDigitYear",
@@ -267,17 +267,17 @@ MiscCfg::~MiscCfg( )
}
}
-BOOL MiscCfg::IsNotFoundWarning() const
+BOOL MiscCfg::IsNotFoundWarning() const
{
return pImpl->IsNotFoundWarning();
}
-void MiscCfg::SetNotFoundWarning( BOOL bSet)
+void MiscCfg::SetNotFoundWarning( BOOL bSet)
{
pImpl->SetNotFoundWarning( bSet );
}
-BOOL MiscCfg::IsPaperSizeWarning() const
+BOOL MiscCfg::IsPaperSizeWarning() const
{
return pImpl->IsPaperSizeWarning();
}
@@ -287,12 +287,12 @@ void MiscCfg::SetPaperSizeWarning(BOOL bSet)
pImpl->SetPaperSizeWarning( bSet );
}
-BOOL MiscCfg::IsPaperOrientationWarning() const
+BOOL MiscCfg::IsPaperOrientationWarning() const
{
return pImpl->IsPaperOrientationWarning();
}
-void MiscCfg::SetPaperOrientationWarning( BOOL bSet)
+void MiscCfg::SetPaperOrientationWarning( BOOL bSet)
{
pImpl->SetPaperOrientationWarning( bSet );
}
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx
index 32b1a2d84a90..7f56fad9a7b2 100644
--- a/unotools/source/config/moduleoptions.cxx
+++ b/unotools/source/config/moduleoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@
#include "itemholder1.hxx"
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
#ifndef css
@@ -58,7 +58,7 @@ namespace css = ::com::sun::star;
#endif
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
@@ -368,32 +368,32 @@ typedef FactoryInfo FactoryInfoList[FACTORYCOUNT];
a refcount and make it threadsafe by using an osl mutex. So we don't must do anything for that.
We can implement pure functionality to read/write configuration data only.
- @implements -
+ @implements -
@base ConfigItem
- @devstatus ready to use
+ @devstatus ready to use
@threadsafe no
*//*-*************************************************************************************************************/
class SvtModuleOptions_Impl : public ::utl::ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtModuleOptions_Impl(SvtModuleOptions* pOutsideClass);
~SvtModuleOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
virtual void Notify( const css::uno::Sequence< ::rtl::OUString >& lPropertyNames );
virtual void Commit( );
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
sal_Bool IsModuleInstalled ( SvtModuleOptions::EModule eModule ) const;
::com::sun::star::uno::Sequence < ::rtl::OUString > GetAllServiceNames();
@@ -416,7 +416,7 @@ class SvtModuleOptions_Impl : public ::utl::ConfigItem
void MakeReadonlyStatesAvailable();
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
static css::uno::Sequence< ::rtl::OUString > impl_ExpandSetNames ( const css::uno::Sequence< ::rtl::OUString >& lSetNames );
@@ -428,7 +428,7 @@ class SvtModuleOptions_Impl : public ::utl::ConfigItem
private:
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
FactoryInfoList m_lFactories;
@@ -437,7 +437,7 @@ class SvtModuleOptions_Impl : public ::utl::ConfigItem
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
@@ -555,8 +555,8 @@ void SvtModuleOptions_Impl::Commit()
sBasePath = PATHSEPERATOR + pInfo->getFactory() + PATHSEPERATOR;
const css::uno::Sequence< css::beans::PropertyValue > lChangedProperties = pInfo->getChangedProperties ( sBasePath );
- const css::beans::PropertyValue* pChangedProperties = lChangedProperties.getConstArray();
- sal_Int32 nPropertyCount = lChangedProperties.getLength();
+ const css::beans::PropertyValue* pChangedProperties = lChangedProperties.getConstArray();
+ sal_Int32 nPropertyCount = lChangedProperties.getLength();
for( sal_Int32 nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
lCommitProperties[nRealCount] = pChangedProperties[nProperty];
@@ -876,7 +876,7 @@ css::uno::Sequence< ::rtl::OUString > SvtModuleOptions_Impl::impl_ExpandSetNames
{
sal_Int32 nCount = lSetNames.getLength() ;
css::uno::Sequence< ::rtl::OUString > lPropNames ( nCount*PROPERTYCOUNT );
- ::rtl::OUString* pPropNames = lPropNames.getArray() ;
+ ::rtl::OUString* pPropNames = lPropNames.getArray() ;
sal_Int32 nPropStart = 0 ;
for( sal_Int32 nName=0; nName<nCount; ++nName )
@@ -1086,9 +1086,9 @@ void SvtModuleOptions_Impl::MakeReadonlyStatesAvailable()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
SvtModuleOptions_Impl* SvtModuleOptions::m_pDataContainer = NULL ;
sal_Int32 SvtModuleOptions::m_nRefCount = 0 ;
@@ -1388,7 +1388,7 @@ sal_uInt32 SvtModuleOptions::GetFeatures() const
case SvtModuleOptions::E_MATH : { return ::rtl::OUString::createFromAscii("Math"); }
case SvtModuleOptions::E_CHART : { return ::rtl::OUString::createFromAscii("Chart"); }
case SvtModuleOptions::E_BASIC : { return ::rtl::OUString::createFromAscii("Basic"); }
- case SvtModuleOptions::E_DATABASE : { return ::rtl::OUString::createFromAscii("Database"); }
+ case SvtModuleOptions::E_DATABASE : { return ::rtl::OUString::createFromAscii("Database"); }
default:
OSL_ASSERT( "unknown factory" );
break;
diff --git a/unotools/source/config/options.cxx b/unotools/source/config/options.cxx
index e8b5ad40bebd..d9d2a7b0932c 100644
--- a/unotools/source/config/options.cxx
+++ b/unotools/source/config/options.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/optionsdlg.cxx b/unotools/source/config/optionsdlg.cxx
index c922b1f2353b..0a10f729c19a 100644
--- a/unotools/source/config/optionsdlg.cxx
+++ b/unotools/source/config/optionsdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/optionsdrawinglayer.cxx b/unotools/source/config/optionsdrawinglayer.cxx
index c7fbad4a6db6..ff78da77cda3 100644
--- a/unotools/source/config/optionsdrawinglayer.cxx
+++ b/unotools/source/config/optionsdrawinglayer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,7 +30,7 @@
#endif
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <unotools/optionsdrawinglayer.hxx>
@@ -43,188 +43,188 @@
#include <vcl/outdev.hxx>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Drawinglayer" ))
-#define DEFAULT_OVERLAYBUFFER sal_True
-#define DEFAULT_PAINTBUFFER sal_True
-#define DEFAULT_STRIPE_COLOR_A 0
-#define DEFAULT_STRIPE_COLOR_B 16581375
-#define DEFAULT_STRIPE_LENGTH 4
+#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Drawinglayer" ))
+#define DEFAULT_OVERLAYBUFFER sal_True
+#define DEFAULT_PAINTBUFFER sal_True
+#define DEFAULT_STRIPE_COLOR_A 0
+#define DEFAULT_STRIPE_COLOR_B 16581375
+#define DEFAULT_STRIPE_LENGTH 4
// #i73602#
// #i74769#, #i75172# : Change default for Calc and Writer to True
-#define DEFAULT_OVERLAYBUFFER_CALC sal_True
-#define DEFAULT_OVERLAYBUFFER_WRITER sal_True
-#define DEFAULT_OVERLAYBUFFER_DRAWIMPRESS sal_True
+#define DEFAULT_OVERLAYBUFFER_CALC sal_True
+#define DEFAULT_OVERLAYBUFFER_WRITER sal_True
+#define DEFAULT_OVERLAYBUFFER_DRAWIMPRESS sal_True
// #i74769#, #i75172#
-#define DEFAULT_PAINTBUFFER_CALC sal_True
-#define DEFAULT_PAINTBUFFER_WRITER sal_True
-#define DEFAULT_PAINTBUFFER_DRAWIMPRESS sal_True
+#define DEFAULT_PAINTBUFFER_CALC sal_True
+#define DEFAULT_PAINTBUFFER_WRITER sal_True
+#define DEFAULT_PAINTBUFFER_DRAWIMPRESS sal_True
// #i4219#
-#define DEFAULT_MAXIMUMPAPERWIDTH 300
-#define DEFAULT_MAXIMUMPAPERHEIGHT 300
-#define DEFAULT_MAXIMUMPAPERLEFTMARGIN 9999
-#define DEFAULT_MAXIMUMPAPERRIGHTMARGIN 9999
-#define DEFAULT_MAXIMUMPAPERTOPMARGIN 9999
-#define DEFAULT_MAXIMUMPAPERBOTTOMMARGIN 9999
+#define DEFAULT_MAXIMUMPAPERWIDTH 300
+#define DEFAULT_MAXIMUMPAPERHEIGHT 300
+#define DEFAULT_MAXIMUMPAPERLEFTMARGIN 9999
+#define DEFAULT_MAXIMUMPAPERRIGHTMARGIN 9999
+#define DEFAULT_MAXIMUMPAPERTOPMARGIN 9999
+#define DEFAULT_MAXIMUMPAPERBOTTOMMARGIN 9999
// primitives
-#define DEFAULT_ANTIALIASING sal_True
-#define DEFAULT_SNAPHORVERLINESTODISCRETE sal_True
-#define DEFAULT_SOLIDDRAGCREATE sal_True
-#define DEFAULT_RENDERDECORATEDTEXTDIRECT sal_True
-#define DEFAULT_RENDERSIMPLETEXTDIRECT sal_True
-#define DEFAULT_QUADRATIC3DRENDERLIMIT 1000000
-#define DEFAULT_QUADRATICFORMCONTROLRENDERLIMIT 45000
+#define DEFAULT_ANTIALIASING sal_True
+#define DEFAULT_SNAPHORVERLINESTODISCRETE sal_True
+#define DEFAULT_SOLIDDRAGCREATE sal_True
+#define DEFAULT_RENDERDECORATEDTEXTDIRECT sal_True
+#define DEFAULT_RENDERSIMPLETEXTDIRECT sal_True
+#define DEFAULT_QUADRATIC3DRENDERLIMIT 1000000
+#define DEFAULT_QUADRATICFORMCONTROLRENDERLIMIT 45000
// #i97672# selection settings
-#define DEFAULT_TRANSPARENTSELECTION sal_True
-#define DEFAULT_TRANSPARENTSELECTIONPERCENT 75
+#define DEFAULT_TRANSPARENTSELECTION sal_True
+#define DEFAULT_TRANSPARENTSELECTIONPERCENT 75
#define DEFAULT_SELECTIONMAXIMUMLUMINANCEPERCENT 70
-#define PROPERTYNAME_OVERLAYBUFFER OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer" ))
-#define PROPERTYNAME_PAINTBUFFER OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer" ))
-#define PROPERTYNAME_STRIPE_COLOR_A OUString(RTL_CONSTASCII_USTRINGPARAM("StripeColorA" ))
-#define PROPERTYNAME_STRIPE_COLOR_B OUString(RTL_CONSTASCII_USTRINGPARAM("StripeColorB" ))
-#define PROPERTYNAME_STRIPE_LENGTH OUString(RTL_CONSTASCII_USTRINGPARAM("StripeLength" ))
+#define PROPERTYNAME_OVERLAYBUFFER OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer" ))
+#define PROPERTYNAME_PAINTBUFFER OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer" ))
+#define PROPERTYNAME_STRIPE_COLOR_A OUString(RTL_CONSTASCII_USTRINGPARAM("StripeColorA" ))
+#define PROPERTYNAME_STRIPE_COLOR_B OUString(RTL_CONSTASCII_USTRINGPARAM("StripeColorB" ))
+#define PROPERTYNAME_STRIPE_LENGTH OUString(RTL_CONSTASCII_USTRINGPARAM("StripeLength" ))
// #i73602#
-#define PROPERTYNAME_OVERLAYBUFFER_CALC OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_Calc"))
-#define PROPERTYNAME_OVERLAYBUFFER_WRITER OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_Writer"))
-#define PROPERTYNAME_OVERLAYBUFFER_DRAWIMPRESS OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_DrawImpress"))
+#define PROPERTYNAME_OVERLAYBUFFER_CALC OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_Calc"))
+#define PROPERTYNAME_OVERLAYBUFFER_WRITER OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_Writer"))
+#define PROPERTYNAME_OVERLAYBUFFER_DRAWIMPRESS OUString(RTL_CONSTASCII_USTRINGPARAM("OverlayBuffer_DrawImpress"))
// #i74769#, #i75172#
-#define PROPERTYNAME_PAINTBUFFER_CALC OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_Calc"))
-#define PROPERTYNAME_PAINTBUFFER_WRITER OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_Writer"))
-#define PROPERTYNAME_PAINTBUFFER_DRAWIMPRESS OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_DrawImpress"))
+#define PROPERTYNAME_PAINTBUFFER_CALC OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_Calc"))
+#define PROPERTYNAME_PAINTBUFFER_WRITER OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_Writer"))
+#define PROPERTYNAME_PAINTBUFFER_DRAWIMPRESS OUString(RTL_CONSTASCII_USTRINGPARAM("PaintBuffer_DrawImpress"))
// #i4219#
-#define PROPERTYNAME_MAXIMUMPAPERWIDTH OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperWidth"))
-#define PROPERTYNAME_MAXIMUMPAPERHEIGHT OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperHeight"))
-#define PROPERTYNAME_MAXIMUMPAPERLEFTMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperLeftMargin"))
-#define PROPERTYNAME_MAXIMUMPAPERRIGHTMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperRightMargin"))
-#define PROPERTYNAME_MAXIMUMPAPERTOPMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperTopMargin"))
-#define PROPERTYNAME_MAXIMUMPAPERBOTTOMMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperBottomMargin"))
+#define PROPERTYNAME_MAXIMUMPAPERWIDTH OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperWidth"))
+#define PROPERTYNAME_MAXIMUMPAPERHEIGHT OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperHeight"))
+#define PROPERTYNAME_MAXIMUMPAPERLEFTMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperLeftMargin"))
+#define PROPERTYNAME_MAXIMUMPAPERRIGHTMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperRightMargin"))
+#define PROPERTYNAME_MAXIMUMPAPERTOPMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperTopMargin"))
+#define PROPERTYNAME_MAXIMUMPAPERBOTTOMMARGIN OUString(RTL_CONSTASCII_USTRINGPARAM("MaximumPaperBottomMargin"))
// primitives
-#define PROPERTYNAME_ANTIALIASING OUString(RTL_CONSTASCII_USTRINGPARAM("AntiAliasing"))
-#define PROPERTYNAME_SNAPHORVERLINESTODISCRETE OUString(RTL_CONSTASCII_USTRINGPARAM("SnapHorVerLinesToDiscrete"))
-#define PROPERTYNAME_SOLIDDRAGCREATE OUString(RTL_CONSTASCII_USTRINGPARAM("SolidDragCreate"))
-#define PROPERTYNAME_RENDERDECORATEDTEXTDIRECT OUString(RTL_CONSTASCII_USTRINGPARAM("RenderDecoratedTextDirect"))
-#define PROPERTYNAME_RENDERSIMPLETEXTDIRECT OUString(RTL_CONSTASCII_USTRINGPARAM("RenderSimpleTextDirect"))
-#define PROPERTYNAME_QUADRATIC3DRENDERLIMIT OUString(RTL_CONSTASCII_USTRINGPARAM("Quadratic3DRenderLimit"))
-#define PROPERTYNAME_QUADRATICFORMCONTROLRENDERLIMIT OUString(RTL_CONSTASCII_USTRINGPARAM("QuadraticFormControlRenderLimit"))
+#define PROPERTYNAME_ANTIALIASING OUString(RTL_CONSTASCII_USTRINGPARAM("AntiAliasing"))
+#define PROPERTYNAME_SNAPHORVERLINESTODISCRETE OUString(RTL_CONSTASCII_USTRINGPARAM("SnapHorVerLinesToDiscrete"))
+#define PROPERTYNAME_SOLIDDRAGCREATE OUString(RTL_CONSTASCII_USTRINGPARAM("SolidDragCreate"))
+#define PROPERTYNAME_RENDERDECORATEDTEXTDIRECT OUString(RTL_CONSTASCII_USTRINGPARAM("RenderDecoratedTextDirect"))
+#define PROPERTYNAME_RENDERSIMPLETEXTDIRECT OUString(RTL_CONSTASCII_USTRINGPARAM("RenderSimpleTextDirect"))
+#define PROPERTYNAME_QUADRATIC3DRENDERLIMIT OUString(RTL_CONSTASCII_USTRINGPARAM("Quadratic3DRenderLimit"))
+#define PROPERTYNAME_QUADRATICFORMCONTROLRENDERLIMIT OUString(RTL_CONSTASCII_USTRINGPARAM("QuadraticFormControlRenderLimit"))
// #i97672# selection settings
-#define PROPERTYNAME_TRANSPARENTSELECTION OUString(RTL_CONSTASCII_USTRINGPARAM("TransparentSelection"))
-#define PROPERTYNAME_TRANSPARENTSELECTIONPERCENT OUString(RTL_CONSTASCII_USTRINGPARAM("TransparentSelectionPercent"))
-#define PROPERTYNAME_SELECTIONMAXIMUMLUMINANCEPERCENT OUString(RTL_CONSTASCII_USTRINGPARAM("SelectionMaximumLuminancePercent"))
+#define PROPERTYNAME_TRANSPARENTSELECTION OUString(RTL_CONSTASCII_USTRINGPARAM("TransparentSelection"))
+#define PROPERTYNAME_TRANSPARENTSELECTIONPERCENT OUString(RTL_CONSTASCII_USTRINGPARAM("TransparentSelectionPercent"))
+#define PROPERTYNAME_SELECTIONMAXIMUMLUMINANCEPERCENT OUString(RTL_CONSTASCII_USTRINGPARAM("SelectionMaximumLuminancePercent"))
-#define PROPERTYHANDLE_OVERLAYBUFFER 0
-#define PROPERTYHANDLE_PAINTBUFFER 1
-#define PROPERTYHANDLE_STRIPE_COLOR_A 2
-#define PROPERTYHANDLE_STRIPE_COLOR_B 3
-#define PROPERTYHANDLE_STRIPE_LENGTH 4
+#define PROPERTYHANDLE_OVERLAYBUFFER 0
+#define PROPERTYHANDLE_PAINTBUFFER 1
+#define PROPERTYHANDLE_STRIPE_COLOR_A 2
+#define PROPERTYHANDLE_STRIPE_COLOR_B 3
+#define PROPERTYHANDLE_STRIPE_LENGTH 4
// #i73602#
-#define PROPERTYHANDLE_OVERLAYBUFFER_CALC 5
-#define PROPERTYHANDLE_OVERLAYBUFFER_WRITER 6
-#define PROPERTYHANDLE_OVERLAYBUFFER_DRAWIMPRESS 7
+#define PROPERTYHANDLE_OVERLAYBUFFER_CALC 5
+#define PROPERTYHANDLE_OVERLAYBUFFER_WRITER 6
+#define PROPERTYHANDLE_OVERLAYBUFFER_DRAWIMPRESS 7
// #i74769#, #i75172#
-#define PROPERTYHANDLE_PAINTBUFFER_CALC 8
-#define PROPERTYHANDLE_PAINTBUFFER_WRITER 9
-#define PROPERTYHANDLE_PAINTBUFFER_DRAWIMPRESS 10
+#define PROPERTYHANDLE_PAINTBUFFER_CALC 8
+#define PROPERTYHANDLE_PAINTBUFFER_WRITER 9
+#define PROPERTYHANDLE_PAINTBUFFER_DRAWIMPRESS 10
// #i4219#
-#define PROPERTYHANDLE_MAXIMUMPAPERWIDTH 11
-#define PROPERTYHANDLE_MAXIMUMPAPERHEIGHT 12
-#define PROPERTYHANDLE_MAXIMUMPAPERLEFTMARGIN 13
-#define PROPERTYHANDLE_MAXIMUMPAPERRIGHTMARGIN 14
-#define PROPERTYHANDLE_MAXIMUMPAPERTOPMARGIN 15
-#define PROPERTYHANDLE_MAXIMUMPAPERBOTTOMMARGIN 16
+#define PROPERTYHANDLE_MAXIMUMPAPERWIDTH 11
+#define PROPERTYHANDLE_MAXIMUMPAPERHEIGHT 12
+#define PROPERTYHANDLE_MAXIMUMPAPERLEFTMARGIN 13
+#define PROPERTYHANDLE_MAXIMUMPAPERRIGHTMARGIN 14
+#define PROPERTYHANDLE_MAXIMUMPAPERTOPMARGIN 15
+#define PROPERTYHANDLE_MAXIMUMPAPERBOTTOMMARGIN 16
// primitives
-#define PROPERTYHANDLE_ANTIALIASING 17
-#define PROPERTYHANDLE_SNAPHORVERLINESTODISCRETE 18
-#define PROPERTYHANDLE_SOLIDDRAGCREATE 19
-#define PROPERTYHANDLE_RENDERDECORATEDTEXTDIRECT 20
-#define PROPERTYHANDLE_RENDERSIMPLETEXTDIRECT 21
-#define PROPERTYHANDLE_QUADRATIC3DRENDERLIMIT 22
-#define PROPERTYHANDLE_QUADRATICFORMCONTROLRENDERLIMIT 23
+#define PROPERTYHANDLE_ANTIALIASING 17
+#define PROPERTYHANDLE_SNAPHORVERLINESTODISCRETE 18
+#define PROPERTYHANDLE_SOLIDDRAGCREATE 19
+#define PROPERTYHANDLE_RENDERDECORATEDTEXTDIRECT 20
+#define PROPERTYHANDLE_RENDERSIMPLETEXTDIRECT 21
+#define PROPERTYHANDLE_QUADRATIC3DRENDERLIMIT 22
+#define PROPERTYHANDLE_QUADRATICFORMCONTROLRENDERLIMIT 23
// #i97672# selection settings
-#define PROPERTYHANDLE_TRANSPARENTSELECTION 24
-#define PROPERTYHANDLE_TRANSPARENTSELECTIONPERCENT 25
-#define PROPERTYHANDLE_SELECTIONMAXIMUMLUMINANCEPERCENT 26
+#define PROPERTYHANDLE_TRANSPARENTSELECTION 24
+#define PROPERTYHANDLE_TRANSPARENTSELECTIONPERCENT 25
+#define PROPERTYHANDLE_SELECTIONMAXIMUMLUMINANCEPERCENT 26
-#define PROPERTYCOUNT 27
+#define PROPERTYCOUNT 27
class SvtOptionsDrawinglayer_Impl : public ConfigItem
{
public:
//---------------------------------------------------------------------------------------------------------
-// constructor / destructor
+// constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtOptionsDrawinglayer_Impl();
~SvtOptionsDrawinglayer_Impl();
//---------------------------------------------------------------------------------------------------------
-// overloaded methods of baseclass
+// overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
-// public interface
+// public interface
//---------------------------------------------------------------------------------------------------------
- sal_Bool IsOverlayBuffer() const;
- sal_Bool IsPaintBuffer() const;
- Color GetStripeColorA() const;
- Color GetStripeColorB() const;
- sal_uInt16 GetStripeLength() const;
+ sal_Bool IsOverlayBuffer() const;
+ sal_Bool IsPaintBuffer() const;
+ Color GetStripeColorA() const;
+ Color GetStripeColorB() const;
+ sal_uInt16 GetStripeLength() const;
// #i73602#
- sal_Bool IsOverlayBuffer_Calc() const;
- sal_Bool IsOverlayBuffer_Writer() const;
- sal_Bool IsOverlayBuffer_DrawImpress() const;
+ sal_Bool IsOverlayBuffer_Calc() const;
+ sal_Bool IsOverlayBuffer_Writer() const;
+ sal_Bool IsOverlayBuffer_DrawImpress() const;
// #i74769#, #i75172#
- sal_Bool IsPaintBuffer_Calc() const;
- sal_Bool IsPaintBuffer_Writer() const;
- sal_Bool IsPaintBuffer_DrawImpress() const;
+ sal_Bool IsPaintBuffer_Calc() const;
+ sal_Bool IsPaintBuffer_Writer() const;
+ sal_Bool IsPaintBuffer_DrawImpress() const;
- void SetOverlayBuffer( sal_Bool bState );
- void SetPaintBuffer( sal_Bool bState );
- void SetStripeColorA( Color aColor );
- void SetStripeColorB( Color aColor );
- void SetStripeLength( sal_uInt16 nLength );
+ void SetOverlayBuffer( sal_Bool bState );
+ void SetPaintBuffer( sal_Bool bState );
+ void SetStripeColorA( Color aColor );
+ void SetStripeColorB( Color aColor );
+ void SetStripeLength( sal_uInt16 nLength );
// #i73602#
- void SetOverlayBuffer_Calc( sal_Bool bState );
- void SetOverlayBuffer_Writer( sal_Bool bState );
- void SetOverlayBuffer_DrawImpress( sal_Bool bState );
+ void SetOverlayBuffer_Calc( sal_Bool bState );
+ void SetOverlayBuffer_Writer( sal_Bool bState );
+ void SetOverlayBuffer_DrawImpress( sal_Bool bState );
// #i74769#, #i75172#
- void SetPaintBuffer_Calc( sal_Bool bState );
- void SetPaintBuffer_Writer( sal_Bool bState );
- void SetPaintBuffer_DrawImpress( sal_Bool bState );
+ void SetPaintBuffer_Calc( sal_Bool bState );
+ void SetPaintBuffer_Writer( sal_Bool bState );
+ void SetPaintBuffer_DrawImpress( sal_Bool bState );
// #i4219#
sal_uInt32 GetMaximumPaperWidth() const;
@@ -245,33 +245,33 @@ public:
sal_Bool IsAAPossibleOnThisSystem() const;
// primitives
- sal_Bool IsAntiAliasing() const;
- sal_Bool IsSnapHorVerLinesToDiscrete() const;
- sal_Bool IsSolidDragCreate() const;
- sal_Bool IsRenderDecoratedTextDirect() const;
- sal_Bool IsRenderSimpleTextDirect() const;
+ sal_Bool IsAntiAliasing() const;
+ sal_Bool IsSnapHorVerLinesToDiscrete() const;
+ sal_Bool IsSolidDragCreate() const;
+ sal_Bool IsRenderDecoratedTextDirect() const;
+ sal_Bool IsRenderSimpleTextDirect() const;
sal_uInt32 GetQuadratic3DRenderLimit() const;
sal_uInt32 GetQuadraticFormControlRenderLimit() const;
- void SetAntiAliasing( sal_Bool bState );
- void SetSnapHorVerLinesToDiscrete( sal_Bool bState );
- void SetSolidDragCreate( sal_Bool bState );
- void SetRenderDecoratedTextDirect( sal_Bool bState );
- void SetRenderSimpleTextDirect( sal_Bool bState );
+ void SetAntiAliasing( sal_Bool bState );
+ void SetSnapHorVerLinesToDiscrete( sal_Bool bState );
+ void SetSolidDragCreate( sal_Bool bState );
+ void SetRenderDecoratedTextDirect( sal_Bool bState );
+ void SetRenderSimpleTextDirect( sal_Bool bState );
void SetQuadratic3DRenderLimit(sal_uInt32 nNew);
void SetQuadraticFormControlRenderLimit(sal_uInt32 nNew);
// #i97672# selection settings
- sal_Bool IsTransparentSelection() const;
- sal_uInt16 GetTransparentSelectionPercent() const;
- sal_uInt16 GetSelectionMaximumLuminancePercent() const;
+ sal_Bool IsTransparentSelection() const;
+ sal_uInt16 GetTransparentSelectionPercent() const;
+ sal_uInt16 GetSelectionMaximumLuminancePercent() const;
- void SetTransparentSelection( sal_Bool bState );
- void SetTransparentSelectionPercent( sal_uInt16 nPercent );
- void SetSelectionMaximumLuminancePercent( sal_uInt16 nPercent );
+ void SetTransparentSelection( sal_Bool bState );
+ void SetTransparentSelectionPercent( sal_uInt16 nPercent );
+ void SetSelectionMaximumLuminancePercent( sal_uInt16 nPercent );
//-------------------------------------------------------------------------------------------------------------
-// private methods
+// private methods
//-------------------------------------------------------------------------------------------------------------
private:
@@ -279,48 +279,48 @@ private:
static Sequence< OUString > impl_GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
-// private member
+// private member
//-------------------------------------------------------------------------------------------------------------
private:
- sal_Bool m_bOverlayBuffer;
- sal_Bool m_bPaintBuffer;
- Color m_bStripeColorA;
- Color m_bStripeColorB;
- sal_uInt16 m_nStripeLength;
+ sal_Bool m_bOverlayBuffer;
+ sal_Bool m_bPaintBuffer;
+ Color m_bStripeColorA;
+ Color m_bStripeColorB;
+ sal_uInt16 m_nStripeLength;
// #i73602#
- sal_Bool m_bOverlayBuffer_Calc;
- sal_Bool m_bOverlayBuffer_Writer;
- sal_Bool m_bOverlayBuffer_DrawImpress;
+ sal_Bool m_bOverlayBuffer_Calc;
+ sal_Bool m_bOverlayBuffer_Writer;
+ sal_Bool m_bOverlayBuffer_DrawImpress;
// #i74769#, #i75172#
- sal_Bool m_bPaintBuffer_Calc;
- sal_Bool m_bPaintBuffer_Writer;
- sal_Bool m_bPaintBuffer_DrawImpress;
+ sal_Bool m_bPaintBuffer_Calc;
+ sal_Bool m_bPaintBuffer_Writer;
+ sal_Bool m_bPaintBuffer_DrawImpress;
// #i4219#
- sal_uInt32 m_nMaximumPaperWidth;
- sal_uInt32 m_nMaximumPaperHeight;
- sal_uInt32 m_nMaximumPaperLeftMargin;
- sal_uInt32 m_nMaximumPaperRightMargin;
- sal_uInt32 m_nMaximumPaperTopMargin;
- sal_uInt32 m_nMaximumPaperBottomMargin;
+ sal_uInt32 m_nMaximumPaperWidth;
+ sal_uInt32 m_nMaximumPaperHeight;
+ sal_uInt32 m_nMaximumPaperLeftMargin;
+ sal_uInt32 m_nMaximumPaperRightMargin;
+ sal_uInt32 m_nMaximumPaperTopMargin;
+ sal_uInt32 m_nMaximumPaperBottomMargin;
// primitives
- sal_Bool m_bAntiAliasing;
- sal_Bool m_bSnapHorVerLinesToDiscrete;
- sal_Bool m_bSolidDragCreate;
- sal_Bool m_bRenderDecoratedTextDirect;
- sal_Bool m_bRenderSimpleTextDirect;
- sal_uInt32 m_nQuadratic3DRenderLimit;
- sal_uInt32 m_nQuadraticFormControlRenderLimit;
+ sal_Bool m_bAntiAliasing;
+ sal_Bool m_bSnapHorVerLinesToDiscrete;
+ sal_Bool m_bSolidDragCreate;
+ sal_Bool m_bRenderDecoratedTextDirect;
+ sal_Bool m_bRenderSimpleTextDirect;
+ sal_uInt32 m_nQuadratic3DRenderLimit;
+ sal_uInt32 m_nQuadraticFormControlRenderLimit;
// #i97672# selection settings
- sal_uInt16 m_nTransparentSelectionPercent;
- sal_uInt16 m_nSelectionMaximumLuminancePercent;
- sal_Bool m_bTransparentSelection;
+ sal_uInt16 m_nTransparentSelectionPercent;
+ sal_uInt16 m_nSelectionMaximumLuminancePercent;
+ sal_Bool m_bTransparentSelection;
// local values
bool m_bAllowAA : 1;
@@ -328,14 +328,14 @@ private:
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl() :
- ConfigItem( ROOTNODE_START ),
+ ConfigItem( ROOTNODE_START ),
m_bOverlayBuffer( DEFAULT_OVERLAYBUFFER ),
m_bPaintBuffer( DEFAULT_PAINTBUFFER ),
m_bStripeColorA(Color(DEFAULT_STRIPE_COLOR_A)),
@@ -378,14 +378,14 @@ SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl() :
m_bAllowAA(true),
m_bAllowAAChecked(false)
{
- Sequence< OUString > seqNames( impl_GetPropertyNames() );
- Sequence< Any > seqValues = GetProperties( seqNames ) ;
+ Sequence< OUString > seqNames( impl_GetPropertyNames() );
+ Sequence< Any > seqValues = GetProperties( seqNames ) ;
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl()\nI miss some values of configuration keys!\n" );
// Copy values from list in right order to ouer internal member.
sal_Int32 nPropertyCount = seqValues.getLength();
- sal_Int32 nProperty = 0;
+ sal_Int32 nProperty = 0;
for( nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
@@ -595,7 +595,7 @@ SvtOptionsDrawinglayer_Impl::SvtOptionsDrawinglayer_Impl() :
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtOptionsDrawinglayer_Impl::~SvtOptionsDrawinglayer_Impl()
{
@@ -604,12 +604,12 @@ SvtOptionsDrawinglayer_Impl::~SvtOptionsDrawinglayer_Impl()
}
//*****************************************************************************************************************
-// Commit
+// Commit
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::Commit()
{
- Sequence< OUString > aSeqNames( impl_GetPropertyNames() );
- Sequence< Any > aSeqValues( aSeqNames.getLength() );
+ Sequence< OUString > aSeqNames( impl_GetPropertyNames() );
+ Sequence< Any > aSeqValues( aSeqNames.getLength() );
for( sal_Int32 nProperty = 0, nCount = aSeqNames.getLength(); nProperty < nCount; ++nProperty )
{
@@ -734,7 +734,7 @@ void SvtOptionsDrawinglayer_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtOptionsDrawinglayer_Impl::IsOverlayBuffer() const
{
@@ -742,7 +742,7 @@ sal_Bool SvtOptionsDrawinglayer_Impl::IsOverlayBuffer() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtOptionsDrawinglayer_Impl::IsPaintBuffer() const
{
@@ -750,7 +750,7 @@ sal_Bool SvtOptionsDrawinglayer_Impl::IsPaintBuffer() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Color SvtOptionsDrawinglayer_Impl::GetStripeColorA() const
{
@@ -758,7 +758,7 @@ Color SvtOptionsDrawinglayer_Impl::GetStripeColorA() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Color SvtOptionsDrawinglayer_Impl::GetStripeColorB() const
{
@@ -766,7 +766,7 @@ Color SvtOptionsDrawinglayer_Impl::GetStripeColorB() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_uInt16 SvtOptionsDrawinglayer_Impl::GetStripeLength() const
{
@@ -837,7 +837,7 @@ sal_uInt32 SvtOptionsDrawinglayer_Impl::GetMaximumPaperBottomMargin() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetOverlayBuffer( sal_Bool bState )
{
@@ -849,7 +849,7 @@ void SvtOptionsDrawinglayer_Impl::SetOverlayBuffer( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetPaintBuffer( sal_Bool bState )
{
@@ -861,7 +861,7 @@ void SvtOptionsDrawinglayer_Impl::SetPaintBuffer( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetStripeColorA( Color aColor )
{
@@ -873,7 +873,7 @@ void SvtOptionsDrawinglayer_Impl::SetStripeColorA( Color aColor )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetStripeColorB( Color aColor )
{
@@ -885,7 +885,7 @@ void SvtOptionsDrawinglayer_Impl::SetStripeColorB( Color aColor )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer_Impl::SetStripeLength( sal_uInt16 nLength )
{
@@ -1175,18 +1175,18 @@ sal_uInt16 SvtOptionsDrawinglayer_Impl::GetSelectionMaximumLuminancePercent() co
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtOptionsDrawinglayer_Impl::impl_GetPropertyNames()
{
// Build static list of configuration key names.
static const OUString pProperties[] =
{
- PROPERTYNAME_OVERLAYBUFFER ,
- PROPERTYNAME_PAINTBUFFER ,
- PROPERTYNAME_STRIPE_COLOR_A ,
- PROPERTYNAME_STRIPE_COLOR_B ,
- PROPERTYNAME_STRIPE_LENGTH ,
+ PROPERTYNAME_OVERLAYBUFFER ,
+ PROPERTYNAME_PAINTBUFFER ,
+ PROPERTYNAME_STRIPE_COLOR_A ,
+ PROPERTYNAME_STRIPE_COLOR_B ,
+ PROPERTYNAME_STRIPE_LENGTH ,
// #i73602#
PROPERTYNAME_OVERLAYBUFFER_CALC,
@@ -1228,15 +1228,15 @@ Sequence< OUString > SvtOptionsDrawinglayer_Impl::impl_GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
SvtOptionsDrawinglayer_Impl* SvtOptionsDrawinglayer::m_pDataContainer = NULL;
sal_Int32 SvtOptionsDrawinglayer::m_nRefCount = 0;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtOptionsDrawinglayer::SvtOptionsDrawinglayer()
{
@@ -1252,7 +1252,7 @@ SvtOptionsDrawinglayer::SvtOptionsDrawinglayer()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtOptionsDrawinglayer::~SvtOptionsDrawinglayer()
{
@@ -1270,7 +1270,7 @@ SvtOptionsDrawinglayer::~SvtOptionsDrawinglayer()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtOptionsDrawinglayer::IsOverlayBuffer() const
{
@@ -1279,7 +1279,7 @@ sal_Bool SvtOptionsDrawinglayer::IsOverlayBuffer() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtOptionsDrawinglayer::IsPaintBuffer() const
{
@@ -1288,7 +1288,7 @@ sal_Bool SvtOptionsDrawinglayer::IsPaintBuffer() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Color SvtOptionsDrawinglayer::GetStripeColorA() const
{
@@ -1297,7 +1297,7 @@ Color SvtOptionsDrawinglayer::GetStripeColorA() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Color SvtOptionsDrawinglayer::GetStripeColorB() const
{
@@ -1306,7 +1306,7 @@ Color SvtOptionsDrawinglayer::GetStripeColorB() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_uInt16 SvtOptionsDrawinglayer::GetStripeLength() const
{
@@ -1390,7 +1390,7 @@ sal_uInt32 SvtOptionsDrawinglayer::GetMaximumPaperBottomMargin() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetOverlayBuffer( sal_Bool bState )
{
@@ -1399,7 +1399,7 @@ void SvtOptionsDrawinglayer::SetOverlayBuffer( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetPaintBuffer( sal_Bool bState )
{
@@ -1408,7 +1408,7 @@ void SvtOptionsDrawinglayer::SetPaintBuffer( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetStripeColorA( Color aColor )
{
@@ -1417,7 +1417,7 @@ void SvtOptionsDrawinglayer::SetStripeColorA( Color aColor )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetStripeColorB( Color aColor )
{
@@ -1426,7 +1426,7 @@ void SvtOptionsDrawinglayer::SetStripeColorB( Color aColor )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtOptionsDrawinglayer::SetStripeLength( sal_uInt16 nLength )
{
@@ -1678,7 +1678,7 @@ void SvtOptionsDrawinglayer::SetSelectionMaximumLuminancePercent( sal_uInt16 nPe
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtOptionsDrawinglayer::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx
index 8c850a805372..5296a7fff11a 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -67,30 +67,30 @@ using namespace com::sun::star::lang;
// define ----------------------------------------------------------------
-#define SEARCHPATH_DELIMITER ';'
+#define SEARCHPATH_DELIMITER ';'
-#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
+#define ASCII_STR(s) OUString( RTL_CONSTASCII_USTRINGPARAM(s) )
-#define SIGN_STARTVARIABLE ASCII_STR("$(")
-#define SIGN_ENDVARIABLE ASCII_STR(")")
+#define SIGN_STARTVARIABLE ASCII_STR("$(")
+#define SIGN_ENDVARIABLE ASCII_STR(")")
// Supported variables by the old SvtPathOptions implementation
-#define SUBSTITUTE_INST "$(inst)"
-#define SUBSTITUTE_PROG "$(prog)"
-#define SUBSTITUTE_USER "$(user)"
+#define SUBSTITUTE_INST "$(inst)"
+#define SUBSTITUTE_PROG "$(prog)"
+#define SUBSTITUTE_USER "$(user)"
#define SUBSTITUTE_INSTPATH "$(instpath)"
#define SUBSTITUTE_PROGPATH "$(progpath)"
#define SUBSTITUTE_USERPATH "$(userpath)"
-#define SUBSTITUTE_INSTURL "$(insturl)"
-#define SUBSTITUTE_PROGURL "$(progurl)"
-#define SUBSTITUTE_USERURL "$(userurl)"
-#define SUBSTITUTE_PATH "$(path)"
-//#define SUBSTITUTE_LANG "$(lang)"
-#define SUBSTITUTE_LANGID "$(langid)"
-#define SUBSTITUTE_VLANG "$(vlang)"
-#define SUBSTITUTE_WORKDIRURL "$(workdirurl)"
+#define SUBSTITUTE_INSTURL "$(insturl)"
+#define SUBSTITUTE_PROGURL "$(progurl)"
+#define SUBSTITUTE_USERURL "$(userurl)"
+#define SUBSTITUTE_PATH "$(path)"
+//#define SUBSTITUTE_LANG "$(lang)"
+#define SUBSTITUTE_LANGID "$(langid)"
+#define SUBSTITUTE_VLANG "$(vlang)"
+#define SUBSTITUTE_WORKDIRURL "$(workdirurl)"
-#define STRPOS_NOTFOUND -1
+#define STRPOS_NOTFOUND -1
struct OUStringHashCode
{
@@ -106,7 +106,7 @@ enum VarNameProperty
VAR_NEEDS_FILEURL
};
-class NameToHandleMap : public ::std::hash_map< ::rtl::OUString, sal_Int32, OUStringHashCode, ::std::equal_to< ::rtl::OUString > >
+class NameToHandleMap : public ::std::hash_map< ::rtl::OUString, sal_Int32, OUStringHashCode, ::std::equal_to< ::rtl::OUString > >
{
public:
inline void free() { NameToHandleMap().swap( *this ); }
@@ -130,14 +130,14 @@ class SvtPathOptions_Impl
{
private:
// Local variables to return const references
- std::vector< String > m_aPathArray;
- Reference< XFastPropertySet > m_xPathSettings;
- Reference< XStringSubstitution > m_xSubstVariables;
+ std::vector< String > m_aPathArray;
+ Reference< XFastPropertySet > m_xPathSettings;
+ Reference< XStringSubstitution > m_xSubstVariables;
mutable EnumToHandleMap m_aMapEnumToPropHandle;
- VarNameToEnumMap m_aMapVarNamesToEnum;
+ VarNameToEnumMap m_aMapVarNamesToEnum;
- ::com::sun::star::lang::Locale m_aLocale;
- String m_aEmptyString;
+ ::com::sun::star::lang::Locale m_aLocale;
+ String m_aEmptyString;
mutable ::osl::Mutex m_aMutex;
public:
@@ -146,60 +146,60 @@ class SvtPathOptions_Impl
// get the pathes, not const because of using a mutex
const String& GetPath( SvtPathOptions::Pathes );
const String& GetAddinPath() { return GetPath( SvtPathOptions::PATH_ADDIN ); }
- const String& GetAutoCorrectPath() { return GetPath( SvtPathOptions::PATH_AUTOCORRECT ); }
- const String& GetAutoTextPath() { return GetPath( SvtPathOptions::PATH_AUTOTEXT ); }
- const String& GetBackupPath() { return GetPath( SvtPathOptions::PATH_BACKUP ); }
- const String& GetBasicPath() { return GetPath( SvtPathOptions::PATH_BASIC ); }
- const String& GetBitmapPath() { return GetPath( SvtPathOptions::PATH_BITMAP ); }
- const String& GetConfigPath() { return GetPath( SvtPathOptions::PATH_CONFIG ); }
- const String& GetDictionaryPath() { return GetPath( SvtPathOptions::PATH_DICTIONARY ); }
- const String& GetFavoritesPath() { return GetPath( SvtPathOptions::PATH_FAVORITES ); }
- const String& GetFilterPath() { return GetPath( SvtPathOptions::PATH_FILTER ); }
- const String& GetGalleryPath() { return GetPath( SvtPathOptions::PATH_GALLERY ); }
- const String& GetGraphicPath() { return GetPath( SvtPathOptions::PATH_GRAPHIC ); }
- const String& GetHelpPath() { return GetPath( SvtPathOptions::PATH_HELP ); }
- const String& GetLinguisticPath() { return GetPath( SvtPathOptions::PATH_LINGUISTIC ); }
- const String& GetModulePath() { return GetPath( SvtPathOptions::PATH_MODULE ); }
- const String& GetPalettePath() { return GetPath( SvtPathOptions::PATH_PALETTE ); }
- const String& GetPluginPath() { return GetPath( SvtPathOptions::PATH_PLUGIN ); }
- const String& GetStoragePath() { return GetPath( SvtPathOptions::PATH_STORAGE ); }
- const String& GetTempPath() { return GetPath( SvtPathOptions::PATH_TEMP ); }
- const String& GetTemplatePath() { return GetPath( SvtPathOptions::PATH_TEMPLATE ); }
- const String& GetUserConfigPath() { return GetPath( SvtPathOptions::PATH_USERCONFIG ); }
- const String& GetWorkPath() { return GetPath( SvtPathOptions::PATH_WORK ); }
+ const String& GetAutoCorrectPath() { return GetPath( SvtPathOptions::PATH_AUTOCORRECT ); }
+ const String& GetAutoTextPath() { return GetPath( SvtPathOptions::PATH_AUTOTEXT ); }
+ const String& GetBackupPath() { return GetPath( SvtPathOptions::PATH_BACKUP ); }
+ const String& GetBasicPath() { return GetPath( SvtPathOptions::PATH_BASIC ); }
+ const String& GetBitmapPath() { return GetPath( SvtPathOptions::PATH_BITMAP ); }
+ const String& GetConfigPath() { return GetPath( SvtPathOptions::PATH_CONFIG ); }
+ const String& GetDictionaryPath() { return GetPath( SvtPathOptions::PATH_DICTIONARY ); }
+ const String& GetFavoritesPath() { return GetPath( SvtPathOptions::PATH_FAVORITES ); }
+ const String& GetFilterPath() { return GetPath( SvtPathOptions::PATH_FILTER ); }
+ const String& GetGalleryPath() { return GetPath( SvtPathOptions::PATH_GALLERY ); }
+ const String& GetGraphicPath() { return GetPath( SvtPathOptions::PATH_GRAPHIC ); }
+ const String& GetHelpPath() { return GetPath( SvtPathOptions::PATH_HELP ); }
+ const String& GetLinguisticPath() { return GetPath( SvtPathOptions::PATH_LINGUISTIC ); }
+ const String& GetModulePath() { return GetPath( SvtPathOptions::PATH_MODULE ); }
+ const String& GetPalettePath() { return GetPath( SvtPathOptions::PATH_PALETTE ); }
+ const String& GetPluginPath() { return GetPath( SvtPathOptions::PATH_PLUGIN ); }
+ const String& GetStoragePath() { return GetPath( SvtPathOptions::PATH_STORAGE ); }
+ const String& GetTempPath() { return GetPath( SvtPathOptions::PATH_TEMP ); }
+ const String& GetTemplatePath() { return GetPath( SvtPathOptions::PATH_TEMPLATE ); }
+ const String& GetUserConfigPath() { return GetPath( SvtPathOptions::PATH_USERCONFIG ); }
+ const String& GetWorkPath() { return GetPath( SvtPathOptions::PATH_WORK ); }
const String& GetUIConfigPath() { return GetPath( SvtPathOptions::PATH_UICONFIG ); }
const String& GetFingerprintPath() { return GetPath( SvtPathOptions::PATH_FINGERPRINT ); }
// set the pathes
void SetPath( SvtPathOptions::Pathes, const String& rNewPath );
void SetAddinPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_ADDIN, rPath ); }
- void SetAutoCorrectPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_AUTOCORRECT, rPath ); }
- void SetAutoTextPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_AUTOTEXT, rPath ); }
- void SetBackupPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_BACKUP, rPath ); }
- void SetBasicPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_BASIC, rPath ); }
- void SetBitmapPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_BITMAP, rPath ); }
- void SetConfigPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_CONFIG, rPath ); }
- void SetDictionaryPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_DICTIONARY, rPath ); }
- void SetFavoritesPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_FAVORITES, rPath ); }
- void SetFilterPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_FILTER, rPath ); }
- void SetGalleryPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_GALLERY, rPath ); }
- void SetGraphicPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_GRAPHIC, rPath ); }
- void SetHelpPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_HELP, rPath ); }
- void SetLinguisticPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_LINGUISTIC, rPath ); }
- void SetModulePath( const String& rPath ) { SetPath( SvtPathOptions::PATH_MODULE, rPath ); }
- void SetPalettePath( const String& rPath ) { SetPath( SvtPathOptions::PATH_PALETTE, rPath ); }
- void SetPluginPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_PLUGIN, rPath ); }
- void SetStoragePath( const String& rPath ) { SetPath( SvtPathOptions::PATH_STORAGE, rPath ); }
- void SetTempPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_TEMP, rPath ); }
- void SetTemplatePath( const String& rPath ) { SetPath( SvtPathOptions::PATH_TEMPLATE, rPath ); }
- void SetUserConfigPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_USERCONFIG, rPath ); }
- void SetWorkPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_WORK, rPath ); }
-
- rtl::OUString SubstVar( const rtl::OUString& rVar );
- rtl::OUString SubstituteAndConvert( const rtl::OUString& rPath );
- rtl::OUString UsePathVariables( const rtl::OUString& rPath );
-
- ::com::sun::star::lang::Locale GetLocale() const { return m_aLocale; }
+ void SetAutoCorrectPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_AUTOCORRECT, rPath ); }
+ void SetAutoTextPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_AUTOTEXT, rPath ); }
+ void SetBackupPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_BACKUP, rPath ); }
+ void SetBasicPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_BASIC, rPath ); }
+ void SetBitmapPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_BITMAP, rPath ); }
+ void SetConfigPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_CONFIG, rPath ); }
+ void SetDictionaryPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_DICTIONARY, rPath ); }
+ void SetFavoritesPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_FAVORITES, rPath ); }
+ void SetFilterPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_FILTER, rPath ); }
+ void SetGalleryPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_GALLERY, rPath ); }
+ void SetGraphicPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_GRAPHIC, rPath ); }
+ void SetHelpPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_HELP, rPath ); }
+ void SetLinguisticPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_LINGUISTIC, rPath ); }
+ void SetModulePath( const String& rPath ) { SetPath( SvtPathOptions::PATH_MODULE, rPath ); }
+ void SetPalettePath( const String& rPath ) { SetPath( SvtPathOptions::PATH_PALETTE, rPath ); }
+ void SetPluginPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_PLUGIN, rPath ); }
+ void SetStoragePath( const String& rPath ) { SetPath( SvtPathOptions::PATH_STORAGE, rPath ); }
+ void SetTempPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_TEMP, rPath ); }
+ void SetTemplatePath( const String& rPath ) { SetPath( SvtPathOptions::PATH_TEMPLATE, rPath ); }
+ void SetUserConfigPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_USERCONFIG, rPath ); }
+ void SetWorkPath( const String& rPath ) { SetPath( SvtPathOptions::PATH_WORK, rPath ); }
+
+ rtl::OUString SubstVar( const rtl::OUString& rVar );
+ rtl::OUString SubstituteAndConvert( const rtl::OUString& rPath );
+ rtl::OUString UsePathVariables( const rtl::OUString& rPath );
+
+ ::com::sun::star::lang::Locale GetLocale() const { return m_aLocale; }
BOOL IsPathReadonly(SvtPathOptions::Pathes ePath)const;
};
@@ -212,50 +212,50 @@ static sal_Int32 nRefCount = 0;
// functions -------------------------------------------------------------
struct PropertyStruct
{
- const char* pPropName; // The ascii name of the Office path
- SvtPathOptions::Pathes ePath; // The enum value used by SvtPathOptions
+ const char* pPropName; // The ascii name of the Office path
+ SvtPathOptions::Pathes ePath; // The enum value used by SvtPathOptions
};
struct VarNameAttribute
{
- const char* pVarName; // The name of the path variable
- VarNameProperty eVarProperty; // Which return value is needed by this path variable
+ const char* pVarName; // The name of the path variable
+ VarNameProperty eVarProperty; // Which return value is needed by this path variable
};
static PropertyStruct aPropNames[] =
{
- { "Addin", SvtPathOptions::PATH_ADDIN },
- { "AutoCorrect", SvtPathOptions::PATH_AUTOCORRECT },
- { "AutoText", SvtPathOptions::PATH_AUTOTEXT },
- { "Backup", SvtPathOptions::PATH_BACKUP },
- { "Basic", SvtPathOptions::PATH_BASIC },
- { "Bitmap", SvtPathOptions::PATH_BITMAP },
- { "Config", SvtPathOptions::PATH_CONFIG },
- { "Dictionary", SvtPathOptions::PATH_DICTIONARY },
- { "Favorite", SvtPathOptions::PATH_FAVORITES },
- { "Filter", SvtPathOptions::PATH_FILTER },
- { "Gallery", SvtPathOptions::PATH_GALLERY },
- { "Graphic", SvtPathOptions::PATH_GRAPHIC },
- { "Help", SvtPathOptions::PATH_HELP },
- { "Linguistic", SvtPathOptions::PATH_LINGUISTIC },
- { "Module", SvtPathOptions::PATH_MODULE },
- { "Palette", SvtPathOptions::PATH_PALETTE },
- { "Plugin", SvtPathOptions::PATH_PLUGIN },
- { "Storage", SvtPathOptions::PATH_STORAGE },
- { "Temp", SvtPathOptions::PATH_TEMP },
- { "Template", SvtPathOptions::PATH_TEMPLATE },
- { "UserConfig", SvtPathOptions::PATH_USERCONFIG },
- { "Work", SvtPathOptions::PATH_WORK },
- { "UIConfig", SvtPathOptions::PATH_UICONFIG },
- { "Fingerprint", SvtPathOptions::PATH_FINGERPRINT }
+ { "Addin", SvtPathOptions::PATH_ADDIN },
+ { "AutoCorrect", SvtPathOptions::PATH_AUTOCORRECT },
+ { "AutoText", SvtPathOptions::PATH_AUTOTEXT },
+ { "Backup", SvtPathOptions::PATH_BACKUP },
+ { "Basic", SvtPathOptions::PATH_BASIC },
+ { "Bitmap", SvtPathOptions::PATH_BITMAP },
+ { "Config", SvtPathOptions::PATH_CONFIG },
+ { "Dictionary", SvtPathOptions::PATH_DICTIONARY },
+ { "Favorite", SvtPathOptions::PATH_FAVORITES },
+ { "Filter", SvtPathOptions::PATH_FILTER },
+ { "Gallery", SvtPathOptions::PATH_GALLERY },
+ { "Graphic", SvtPathOptions::PATH_GRAPHIC },
+ { "Help", SvtPathOptions::PATH_HELP },
+ { "Linguistic", SvtPathOptions::PATH_LINGUISTIC },
+ { "Module", SvtPathOptions::PATH_MODULE },
+ { "Palette", SvtPathOptions::PATH_PALETTE },
+ { "Plugin", SvtPathOptions::PATH_PLUGIN },
+ { "Storage", SvtPathOptions::PATH_STORAGE },
+ { "Temp", SvtPathOptions::PATH_TEMP },
+ { "Template", SvtPathOptions::PATH_TEMPLATE },
+ { "UserConfig", SvtPathOptions::PATH_USERCONFIG },
+ { "Work", SvtPathOptions::PATH_WORK },
+ { "UIConfig", SvtPathOptions::PATH_UICONFIG },
+ { "Fingerprint", SvtPathOptions::PATH_FINGERPRINT }
};
static VarNameAttribute aVarNameAttribute[] =
{
- { SUBSTITUTE_INSTPATH, VAR_NEEDS_SYSTEM_PATH }, // $(instpath)
- { SUBSTITUTE_PROGPATH, VAR_NEEDS_SYSTEM_PATH }, // $(progpath)
- { SUBSTITUTE_USERPATH, VAR_NEEDS_SYSTEM_PATH }, // $(userpath)
- { SUBSTITUTE_PATH, VAR_NEEDS_SYSTEM_PATH }, // $(path)
+ { SUBSTITUTE_INSTPATH, VAR_NEEDS_SYSTEM_PATH }, // $(instpath)
+ { SUBSTITUTE_PROGPATH, VAR_NEEDS_SYSTEM_PATH }, // $(progpath)
+ { SUBSTITUTE_USERPATH, VAR_NEEDS_SYSTEM_PATH }, // $(userpath)
+ { SUBSTITUTE_PATH, VAR_NEEDS_SYSTEM_PATH }, // $(path)
};
// class SvtPathOptions_Impl ---------------------------------------------
@@ -269,12 +269,12 @@ const String& SvtPathOptions_Impl::GetPath( SvtPathOptions::Pathes ePath )
try
{
- OUString aPathValue;
- String aResult;
- sal_Int32 nHandle = m_aMapEnumToPropHandle[ (sal_Int32)ePath ];
+ OUString aPathValue;
+ String aResult;
+ sal_Int32 nHandle = m_aMapEnumToPropHandle[ (sal_Int32)ePath ];
// Substitution is done by the service itself using the substition service
- Any a = m_xPathSettings->getFastPropertyValue( nHandle );
+ Any a = m_xPathSettings->getFastPropertyValue( nHandle );
a >>= aPathValue;
if( ePath == SvtPathOptions::PATH_ADDIN ||
ePath == SvtPathOptions::PATH_FILTER ||
@@ -325,9 +325,9 @@ void SvtPathOptions_Impl::SetPath( SvtPathOptions::Pathes ePath, const String& r
if ( ePath < SvtPathOptions::PATH_COUNT )
{
- String aResult;
- OUString aNewValue;
- Any a;
+ String aResult;
+ OUString aNewValue;
+ Any a;
switch ( ePath )
{
@@ -385,8 +385,8 @@ OUString SvtPathOptions_Impl::SubstVar( const OUString& rVar )
BOOL bConvertLocal = FALSE;
// Search for first occure of "$(...".
- sal_Int32 nPosition = aWorkText.indexOf( SIGN_STARTVARIABLE ); // = first position of "$(" in string
- sal_Int32 nLength = 0; // = count of letters from "$(" to ")" in string
+ sal_Int32 nPosition = aWorkText.indexOf( SIGN_STARTVARIABLE ); // = first position of "$(" in string
+ sal_Int32 nLength = 0; // = count of letters from "$(" to ")" in string
// Have we found any variable like "$(...)"?
if ( nPosition != STRPOS_NOTFOUND )
@@ -429,7 +429,7 @@ OUString SvtPathOptions_Impl::SubstVar( const OUString& rVar )
if ( nPosition != STRPOS_NOTFOUND )
{
// Yes; Get length of found variable. If no ")" was found - nLength must set to 0!
- nLength = 0;
+ nLength = 0;
sal_Int32 nEndPosition = aWorkText.indexOf( SIGN_ENDVARIABLE, nPosition );
if ( nEndPosition != STRPOS_NOTFOUND )
nLength = nEndPosition - nPosition + 1;
@@ -506,8 +506,8 @@ SvtPathOptions_Impl::SvtPathOptions_Impl() :
if ( pIter != aTempHashMap.end() )
{
- sal_Int32 nHandle = pIter->second;
- sal_Int32 nEnum = aPropNames[i].ePath;
+ sal_Int32 nHandle = pIter->second;
+ sal_Int32 nEnum = aPropNames[i].ePath;
m_aMapEnumToPropHandle.insert( EnumToHandleMap::value_type( nEnum, nHandle ));
}
}
@@ -948,30 +948,30 @@ sal_Bool SvtPathOptions::SearchFile( String& rIniFile, Pathes ePath )
String aPath;
switch ( ePath )
{
- case PATH_ADDIN: aPath = GetAddinPath(); break;
- case PATH_AUTOCORRECT: aPath = GetAutoCorrectPath(); break;
- case PATH_AUTOTEXT: aPath = GetAutoTextPath(); break;
- case PATH_BACKUP: aPath = GetBackupPath(); break;
- case PATH_BASIC: aPath = GetBasicPath(); break;
- case PATH_BITMAP: aPath = GetBitmapPath(); break;
- case PATH_CONFIG: aPath = GetConfigPath(); break;
- case PATH_DICTIONARY: aPath = GetDictionaryPath(); break;
- case PATH_FAVORITES: aPath = GetFavoritesPath(); break;
- case PATH_FILTER: aPath = GetFilterPath(); break;
- case PATH_GALLERY: aPath = GetGalleryPath(); break;
- case PATH_GRAPHIC: aPath = GetGraphicPath(); break;
- case PATH_HELP: aPath = GetHelpPath(); break;
- case PATH_LINGUISTIC: aPath = GetLinguisticPath(); break;
- case PATH_MODULE: aPath = GetModulePath(); break;
- case PATH_PALETTE: aPath = GetPalettePath(); break;
- case PATH_PLUGIN: aPath = GetPluginPath(); break;
- case PATH_STORAGE: aPath = GetStoragePath(); break;
- case PATH_TEMP: aPath = GetTempPath(); break;
- case PATH_TEMPLATE: aPath = GetTemplatePath(); break;
- case PATH_WORK: aPath = GetWorkPath(); break;
+ case PATH_ADDIN: aPath = GetAddinPath(); break;
+ case PATH_AUTOCORRECT: aPath = GetAutoCorrectPath(); break;
+ case PATH_AUTOTEXT: aPath = GetAutoTextPath(); break;
+ case PATH_BACKUP: aPath = GetBackupPath(); break;
+ case PATH_BASIC: aPath = GetBasicPath(); break;
+ case PATH_BITMAP: aPath = GetBitmapPath(); break;
+ case PATH_CONFIG: aPath = GetConfigPath(); break;
+ case PATH_DICTIONARY: aPath = GetDictionaryPath(); break;
+ case PATH_FAVORITES: aPath = GetFavoritesPath(); break;
+ case PATH_FILTER: aPath = GetFilterPath(); break;
+ case PATH_GALLERY: aPath = GetGalleryPath(); break;
+ case PATH_GRAPHIC: aPath = GetGraphicPath(); break;
+ case PATH_HELP: aPath = GetHelpPath(); break;
+ case PATH_LINGUISTIC: aPath = GetLinguisticPath(); break;
+ case PATH_MODULE: aPath = GetModulePath(); break;
+ case PATH_PALETTE: aPath = GetPalettePath(); break;
+ case PATH_PLUGIN: aPath = GetPluginPath(); break;
+ case PATH_STORAGE: aPath = GetStoragePath(); break;
+ case PATH_TEMP: aPath = GetTempPath(); break;
+ case PATH_TEMPLATE: aPath = GetTemplatePath(); break;
+ case PATH_WORK: aPath = GetWorkPath(); break;
case PATH_UICONFIG: aPath = GetUIConfigPath(); break;
case PATH_FINGERPRINT: aPath = GetFingerprintPath(); break;
- case PATH_USERCONFIG:/*-Wall???*/ break;
+ case PATH_USERCONFIG:/*-Wall???*/ break;
case PATH_COUNT: /*-Wall???*/ break;
}
@@ -1039,14 +1039,14 @@ void SvtPathOptions::SetPath( SvtPathOptions::Pathes ePath, const String& rNewPa
class PathService : public ::cppu::WeakImplHelper2< ::com::sun::star::frame::XConfigManager, ::com::sun::star::lang::XServiceInfo >
{
- virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL substituteVariables( const ::rtl::OUString& sText ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& sKeyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& sKeyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL flush( ) throw(::com::sun::star::uno::RuntimeException);
+ virtual ::rtl::OUString SAL_CALL substituteVariables( const ::rtl::OUString& sText ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& sKeyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& sKeyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL flush( ) throw(::com::sun::star::uno::RuntimeException);
};
// class PathService -----------------------------------------------------
diff --git a/unotools/source/config/printwarningoptions.cxx b/unotools/source/config/printwarningoptions.cxx
index 6f867c6b669c..a7247c61f62b 100644
--- a/unotools/source/config/printwarningoptions.cxx
+++ b/unotools/source/config/printwarningoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,16 +39,16 @@
#include <itemholder1.hxx>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Print"))
@@ -59,10 +59,10 @@ using namespace ::com::sun::star::uno ;
#define PROPERTYNAME_TRANSPARENCY OUString(RTL_CONSTASCII_USTRINGPARAM("Warning/Transparency"))
#define PROPERTYNAME_PRINTINGMODIFIESDOCUMENT OUString(RTL_CONSTASCII_USTRINGPARAM("PrintingModifiesDocument"))
-#define PROPERTYHANDLE_PAPERSIZE 0
-#define PROPERTYHANDLE_PAPERORIENTATION 1
-#define PROPERTYHANDLE_NOTFOUND 2
-#define PROPERTYHANDLE_TRANSPARENCY 3
+#define PROPERTYHANDLE_PAPERSIZE 0
+#define PROPERTYHANDLE_PAPERORIENTATION 1
+#define PROPERTYHANDLE_NOTFOUND 2
+#define PROPERTYHANDLE_TRANSPARENCY 3
#define PROPERTYHDL_PRINTINGMODIFIESDOCUMENT 4
#define PROPERTYCOUNT 5
@@ -72,37 +72,37 @@ class SvtPrintWarningOptions_Impl : public ConfigItem
public:
//---------------------------------------------------------------------------------------------------------
-// constructor / destructor
+// constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtPrintWarningOptions_Impl();
~SvtPrintWarningOptions_Impl();
//---------------------------------------------------------------------------------------------------------
-// overloaded methods of baseclass
+// overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
//---------------------------------------------------------------------------------------------------------
-// public interface
+// public interface
//---------------------------------------------------------------------------------------------------------
- sal_Bool IsPaperSize() const { return m_bPaperSize; }
- sal_Bool IsPaperOrientation() const { return m_bPaperOrientation; }
- sal_Bool IsNotFound() const { return m_bNotFound; }
- sal_Bool IsTransparency() const { return m_bTransparency; }
+ sal_Bool IsPaperSize() const { return m_bPaperSize; }
+ sal_Bool IsPaperOrientation() const { return m_bPaperOrientation; }
+ sal_Bool IsNotFound() const { return m_bNotFound; }
+ sal_Bool IsTransparency() const { return m_bTransparency; }
sal_Bool IsModifyDocumentOnPrintingAllowed() const { return m_bModifyDocumentOnPrintingAllowed; }
- void SetPaperSize( sal_Bool bState ) { m_bPaperSize = bState; SetModified(); }
- void SetPaperOrientation( sal_Bool bState ) { m_bPaperOrientation = bState; SetModified(); }
- void SetNotFound( sal_Bool bState ) { m_bNotFound = bState; SetModified(); }
- void SetTransparency( sal_Bool bState ) { m_bTransparency = bState; SetModified(); }
+ void SetPaperSize( sal_Bool bState ) { m_bPaperSize = bState; SetModified(); }
+ void SetPaperOrientation( sal_Bool bState ) { m_bPaperOrientation = bState; SetModified(); }
+ void SetNotFound( sal_Bool bState ) { m_bNotFound = bState; SetModified(); }
+ void SetTransparency( sal_Bool bState ) { m_bTransparency = bState; SetModified(); }
void SetModifyDocumentOnPrintingAllowed( sal_Bool bState ) { m_bModifyDocumentOnPrintingAllowed = bState; SetModified(); }
//-------------------------------------------------------------------------------------------------------------
-// private methods
+// private methods
//-------------------------------------------------------------------------------------------------------------
private:
@@ -110,41 +110,41 @@ private:
static Sequence< OUString > impl_GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
-// private member
+// private member
//-------------------------------------------------------------------------------------------------------------
private:
- sal_Bool m_bPaperSize;
- sal_Bool m_bPaperOrientation;
- sal_Bool m_bNotFound;
- sal_Bool m_bTransparency;
+ sal_Bool m_bPaperSize;
+ sal_Bool m_bPaperOrientation;
+ sal_Bool m_bNotFound;
+ sal_Bool m_bTransparency;
sal_Bool m_bModifyDocumentOnPrintingAllowed;
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtPrintWarningOptions_Impl::SvtPrintWarningOptions_Impl() :
- ConfigItem( ROOTNODE_START ),
+ ConfigItem( ROOTNODE_START ),
m_bPaperSize( sal_False ),
m_bPaperOrientation( sal_False ),
m_bNotFound( sal_False ),
m_bTransparency( sal_True ),
m_bModifyDocumentOnPrintingAllowed( sal_True )
{
- Sequence< OUString > seqNames( impl_GetPropertyNames() );
- Sequence< Any > seqValues( GetProperties( seqNames ) );
+ Sequence< OUString > seqNames( impl_GetPropertyNames() );
+ Sequence< Any > seqValues( GetProperties( seqNames ) );
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtPrintWarningOptions_Impl::SvtPrintWarningOptions_Impl()\nI miss some values of configuration keys!\n" );
// Copy values from list in right order to our internal member.
sal_Int32 nPropertyCount = seqValues.getLength();
- sal_Int32 nProperty = 0;
+ sal_Int32 nProperty = 0;
for( nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
@@ -191,7 +191,7 @@ SvtPrintWarningOptions_Impl::SvtPrintWarningOptions_Impl() :
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtPrintWarningOptions_Impl::~SvtPrintWarningOptions_Impl()
{
@@ -200,12 +200,12 @@ SvtPrintWarningOptions_Impl::~SvtPrintWarningOptions_Impl()
}
//*****************************************************************************************************************
-// Commit
+// Commit
//*****************************************************************************************************************
void SvtPrintWarningOptions_Impl::Commit()
{
- Sequence< OUString > aSeqNames( impl_GetPropertyNames() );
- Sequence< Any > aSeqValues( aSeqNames.getLength() );
+ Sequence< OUString > aSeqNames( impl_GetPropertyNames() );
+ Sequence< Any > aSeqValues( aSeqNames.getLength() );
for( sal_Int32 nProperty = 0, nCount = aSeqNames.getLength(); nProperty < nCount; ++nProperty )
{
@@ -240,7 +240,7 @@ void SvtPrintWarningOptions_Impl::Notify( const Sequence< rtl::OUString >& )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtPrintWarningOptions_Impl::impl_GetPropertyNames()
{
@@ -261,15 +261,15 @@ Sequence< OUString > SvtPrintWarningOptions_Impl::impl_GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
SvtPrintWarningOptions_Impl* SvtPrintWarningOptions::m_pDataContainer = NULL;
-sal_Int32 SvtPrintWarningOptions::m_nRefCount = 0;
+sal_Int32 SvtPrintWarningOptions::m_nRefCount = 0;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtPrintWarningOptions::SvtPrintWarningOptions()
{
@@ -286,7 +286,7 @@ SvtPrintWarningOptions::SvtPrintWarningOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtPrintWarningOptions::~SvtPrintWarningOptions()
{
@@ -304,7 +304,7 @@ SvtPrintWarningOptions::~SvtPrintWarningOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtPrintWarningOptions::IsPaperSize() const
{
@@ -313,7 +313,7 @@ sal_Bool SvtPrintWarningOptions::IsPaperSize() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtPrintWarningOptions::IsPaperOrientation() const
{
@@ -322,7 +322,7 @@ sal_Bool SvtPrintWarningOptions::IsPaperOrientation() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtPrintWarningOptions::IsNotFound() const
{
@@ -331,7 +331,7 @@ sal_Bool SvtPrintWarningOptions::IsNotFound() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtPrintWarningOptions::IsTransparency() const
{
@@ -340,7 +340,7 @@ sal_Bool SvtPrintWarningOptions::IsTransparency() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtPrintWarningOptions::SetPaperSize( sal_Bool bState )
{
@@ -349,7 +349,7 @@ void SvtPrintWarningOptions::SetPaperSize( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtPrintWarningOptions::SetPaperOrientation( sal_Bool bState )
{
@@ -358,7 +358,7 @@ void SvtPrintWarningOptions::SetPaperOrientation( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtPrintWarningOptions::SetNotFound( sal_Bool bState )
{
@@ -367,7 +367,7 @@ void SvtPrintWarningOptions::SetNotFound( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtPrintWarningOptions::SetTransparency( sal_Bool bState )
{
@@ -391,7 +391,7 @@ void SvtPrintWarningOptions::SetModifyDocumentOnPrintingAllowed( sal_Bool bState
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtPrintWarningOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/regoptions.cxx b/unotools/source/config/regoptions.cxx
index f102285ccf16..aedb9e9a1204 100644
--- a/unotools/source/config/regoptions.cxx
+++ b/unotools/source/config/regoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,20 +57,20 @@ namespace utl
static sal_Int32 lcl_convertString2Date( const ::rtl::OUString& _rStringRep )
{
sal_Int32 nDateIntRep = 0;
- if ( _rStringRep.getLength() == 2 + 1 + 2 + 1 + 4 ) // DD.MM.YYYY
+ if ( _rStringRep.getLength() == 2 + 1 + 2 + 1 + 4 ) // DD.MM.YYYY
{
// validate the string
sal_Bool bValid = sal_True;
const sal_Unicode* pStringRep = _rStringRep.getStr();
sal_Int32 nLen = _rStringRep.getLength();
- for ( sal_Int32 nPos = 0;
+ for ( sal_Int32 nPos = 0;
bValid && ( nPos < nLen );
++nPos, ++pStringRep
)
{
if ( ( 2 == nPos ) || ( 5 == nPos ) )
- bValid = '.' == *pStringRep; // the number separators
+ bValid = '.' == *pStringRep; // the number separators
else
bValid = ( *pStringRep >= '0' ) && ( *pStringRep <= '9' );
}
@@ -79,9 +79,9 @@ namespace utl
if ( bValid )
{
Date aDate;
- aDate.SetDay ( (USHORT)_rStringRep.copy( 0, 2 ).toInt32( ) );
- aDate.SetMonth ( (USHORT)_rStringRep.copy( 3, 2 ).toInt32( ) );
- aDate.SetYear ( (USHORT)_rStringRep.copy( 6, 4 ).toInt32( ) );
+ aDate.SetDay ( (USHORT)_rStringRep.copy( 0, 2 ).toInt32( ) );
+ aDate.SetMonth ( (USHORT)_rStringRep.copy( 3, 2 ).toInt32( ) );
+ aDate.SetYear ( (USHORT)_rStringRep.copy( 6, 4 ).toInt32( ) );
nDateIntRep = aDate.GetDate();
}
}
@@ -96,7 +96,7 @@ namespace utl
::rtl::OUString sLeanToken = ::rtl::OUString::valueOf( _nToken );
// check length
if ( sLeanToken.getLength() < _nDigits )
- { // fill
+ { // fill
OSL_ENSURE( _nDigits <= 4, "lcl_fillToken: invalid digit number!" );
_rToken = ::rtl::OUString( "0000", _nDigits - sLeanToken.getLength(), RTL_TEXTENCODING_ASCII_US );
_rToken += sLeanToken;
@@ -136,11 +136,11 @@ namespace utl
}
//--------------------------------------------------------------------
- #define DECLARE_STATIC_LAZY_USTRING( name ) \
- static const ::rtl::OUString& lcl_get##name##Name() \
- { \
- static const ::rtl::OUString sName = ::rtl::OUString::createFromAscii( #name ); \
- return sName; \
+ #define DECLARE_STATIC_LAZY_USTRING( name ) \
+ static const ::rtl::OUString& lcl_get##name##Name() \
+ { \
+ static const ::rtl::OUString sName = ::rtl::OUString::createFromAscii( #name ); \
+ return sName; \
}
DECLARE_STATIC_LAZY_USTRING( ReminderDate );
@@ -154,47 +154,47 @@ namespace utl
class RegOptionsImpl
{
private:
- OConfigurationTreeRoot m_aRegistrationNode; // the configuration node we need to access our persistent data
+ OConfigurationTreeRoot m_aRegistrationNode; // the configuration node we need to access our persistent data
- String m_sRegistrationURL; // the URL to use when doing an online registration
- Date m_aReminderDate; // the reminder date as found in the configuration
- sal_Int32 m_nDialogCounter; // the dialog counter - see getDialogPermission
- sal_Bool m_bShowMenuItem; // the flag indicating if the registration menu item is allowed
+ String m_sRegistrationURL; // the URL to use when doing an online registration
+ Date m_aReminderDate; // the reminder date as found in the configuration
+ sal_Int32 m_nDialogCounter; // the dialog counter - see getDialogPermission
+ sal_Bool m_bShowMenuItem; // the flag indicating if the registration menu item is allowed
- static RegOptionsImpl* s_pSingleInstance; // the one and only instance of this class
- static sal_Int32 s_nInstanceCount; // reference counter for the instances
- static sal_Bool s_bThisSessionDone; // the flag indicating if for this session, everything beeing relevant has already been done
+ static RegOptionsImpl* s_pSingleInstance; // the one and only instance of this class
+ static sal_Int32 s_nInstanceCount; // reference counter for the instances
+ static sal_Bool s_bThisSessionDone; // the flag indicating if for this session, everything beeing relevant has already been done
private:
RegOptionsImpl( );
- static ::osl::Mutex& getStaticMutex(); // get the mutex used to protect the static members of this class
+ static ::osl::Mutex& getStaticMutex(); // get the mutex used to protect the static members of this class
- void commit( );
+ void commit( );
sal_Int32 getBuildId() const;
private:
- RegOptions::DialogPermission implGetDialogPermission( ) const;
+ RegOptions::DialogPermission implGetDialogPermission( ) const;
public:
- static RegOptionsImpl* registerClient( );
- static void revokeClient( );
+ static RegOptionsImpl* registerClient( );
+ static void revokeClient( );
- inline sal_Bool hasURL( ) const { return ( 0 != m_sRegistrationURL.Len() ); }
- inline sal_Bool allowMenu( ) const { return hasURL() && m_bShowMenuItem; }
- inline String getRegistrationURL( ) const { return m_sRegistrationURL; }
+ inline sal_Bool hasURL( ) const { return ( 0 != m_sRegistrationURL.Len() ); }
+ inline sal_Bool allowMenu( ) const { return hasURL() && m_bShowMenuItem; }
+ inline String getRegistrationURL( ) const { return m_sRegistrationURL; }
- RegOptions::DialogPermission getDialogPermission( ) const;
- void markSessionDone( );
+ RegOptions::DialogPermission getDialogPermission( ) const;
+ void markSessionDone( );
void activateReminder( sal_Int32 _nDaysFromNow );
void removeReminder();
bool hasReminderDateCome() const;
};
//--------------------------------------------------------------------
- RegOptionsImpl* RegOptionsImpl::s_pSingleInstance = NULL;
- sal_Bool RegOptionsImpl::s_bThisSessionDone = sal_False;
- sal_Int32 RegOptionsImpl::s_nInstanceCount = 0;
+ RegOptionsImpl* RegOptionsImpl::s_pSingleInstance = NULL;
+ sal_Bool RegOptionsImpl::s_bThisSessionDone = sal_False;
+ sal_Int32 RegOptionsImpl::s_nInstanceCount = 0;
//--------------------------------------------------------------------
::osl::Mutex& RegOptionsImpl::getStaticMutex()
@@ -253,8 +253,8 @@ namespace utl
//--------------------------------------------------------------------
RegOptionsImpl::RegOptionsImpl( )
- :m_nDialogCounter ( 0 )
- ,m_bShowMenuItem ( sal_False )
+ :m_nDialogCounter ( 0 )
+ ,m_bShowMenuItem ( sal_False )
{
// create the config node for all our registration information
m_aRegistrationNode = OConfigurationTreeRoot::createWithServiceFactory(
@@ -298,7 +298,7 @@ namespace utl
if ( 1 == m_nDialogCounter )
{
if ( m_aReminderDate.IsValid( ) )
- { // valid reminder date
+ { // valid reminder date
// assume remind later
eResult = RegOptions::dpRemindLater;
// and check if we reached the reminder date
@@ -306,16 +306,16 @@ namespace utl
eResult = RegOptions::dpThisSession;
}
else
- eResult = RegOptions::dpThisSession; // execute in this session
+ eResult = RegOptions::dpThisSession; // execute in this session
}
else
- eResult = RegOptions::dpNotThisSession; // first trigger session not reached
+ eResult = RegOptions::dpNotThisSession; // first trigger session not reached
// a last check ....
- if ( ( s_bThisSessionDone ) // this session is already marked as "done"
- && ( RegOptions::dpThisSession == eResult )// but without this, the state would be "now"
+ if ( ( s_bThisSessionDone ) // this session is already marked as "done"
+ && ( RegOptions::dpThisSession == eResult )// but without this, the state would be "now"
)
- eResult = RegOptions::dpDisabled; // -> change state to "disabled"
+ eResult = RegOptions::dpDisabled; // -> change state to "disabled"
}
return eResult;
@@ -338,7 +338,7 @@ namespace utl
OSL_ENSURE( _nDaysFromNow > 0, "RegOptionsImpl::activateReminder: invalid argument!" );
// calc the reminder
- m_aReminderDate = Date() + _nDaysFromNow; // today (default ctor) + days
+ m_aReminderDate = Date() + _nDaysFromNow; // today (default ctor) + days
// remember the date
m_aRegistrationNode.setNodeValue(
@@ -440,7 +440,7 @@ namespace utl
s_bThisSessionDone = sal_True;
if ( RegOptions::dpRemindLater == eOldPermission )
- { // no action required. If we shall remind later, the counter is already at 1, we should not change this,
+ { // no action required. If we shall remind later, the counter is already at 1, we should not change this,
// as the next smaller number (which is 0 :) means that the dialog would be disabled
OSL_ENSURE( 1 == m_nDialogCounter, "RegOptionsImpl::markSessionDone: invalid session counter (1)!" );
}
@@ -520,7 +520,7 @@ namespace utl
{
/// we cache this setting, 'cause it is needed very often
static sal_Bool bKnowMenuPermission = sal_False;
- static sal_Bool bAllowMenu = sal_False;
+ static sal_Bool bAllowMenu = sal_False;
if ( !bKnowMenuPermission )
{
diff --git a/unotools/source/config/saveopt.cxx b/unotools/source/config/saveopt.cxx
index 5a812fece4f0..7330ddd32788 100644
--- a/unotools/source/config/saveopt.cxx
+++ b/unotools/source/config/saveopt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/searchopt.cxx b/unotools/source/config/searchopt.cxx
index c4cae792c953..a38be3a982bd 100644
--- a/unotools/source/config/searchopt.cxx
+++ b/unotools/source/config/searchopt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,39 +45,39 @@ using namespace utl;
using namespace com::sun::star::uno;
using namespace com::sun::star::i18n;
-#define MAX_FLAGS_OFFSET 25
+#define MAX_FLAGS_OFFSET 25
//////////////////////////////////////////////////////////////////////
class SvtSearchOptions_Impl : public ConfigItem
{
- INT32 nFlags;
- BOOL bModified;
+ INT32 nFlags;
+ BOOL bModified;
// disallow copy-constructor and assignment-operator for now
SvtSearchOptions_Impl( const SvtSearchOptions_Impl & );
SvtSearchOptions_Impl & operator = ( const SvtSearchOptions_Impl & );
protected:
- BOOL IsModified() const { return bModified; }
+ BOOL IsModified() const { return bModified; }
using ConfigItem::SetModified;
- void SetModified( BOOL bVal );
- BOOL Load();
- BOOL Save();
+ void SetModified( BOOL bVal );
+ BOOL Load();
+ BOOL Save();
- Sequence< OUString > GetPropertyNames() const;
+ Sequence< OUString > GetPropertyNames() const;
public:
SvtSearchOptions_Impl();
virtual ~SvtSearchOptions_Impl();
// ConfigItem
- virtual void Commit();
+ virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< rtl::OUString >& aPropertyNames );
- BOOL GetFlag( USHORT nOffset ) const;
- void SetFlag( USHORT nOffset, BOOL bVal );
+ BOOL GetFlag( USHORT nOffset ) const;
+ void SetFlag( USHORT nOffset, BOOL bVal );
};
@@ -86,7 +86,7 @@ SvtSearchOptions_Impl::SvtSearchOptions_Impl() :
ConfigItem( OUString::createFromAscii( "Office.Common/SearchOptions" ) )
{
RTL_LOGFILE_CONTEXT(aLog, "unotools SvtSearchOptions_Impl::SvtSearchOptions_Impl()");
- nFlags = 0x0003FFFF; // set all options values to 'true'
+ nFlags = 0x0003FFFF; // set all options values to 'true'
Load();
SetModified( FALSE );
}
@@ -144,33 +144,33 @@ Sequence< OUString > SvtSearchOptions_Impl::GetPropertyNames() const
{
static const char* aPropNames[ MAX_FLAGS_OFFSET + 1 ] =
{
- "IsWholeWordsOnly", // 0
- "IsBackwards", // 1
- "IsUseRegularExpression", // 2
- //"IsCurrentSelectionOnly", // interactively set or not...
- "IsSearchForStyles", // 3
- "IsSimilaritySearch", // 4
- "IsUseAsianOptions", // 5
- "IsMatchCase", // 6
- "Japanese/IsMatchFullHalfWidthForms", // 7
- "Japanese/IsMatchHiraganaKatakana", // 8
- "Japanese/IsMatchContractions", // 9
- "Japanese/IsMatchMinusDashCho-on", // 10
- "Japanese/IsMatchRepeatCharMarks", // 11
- "Japanese/IsMatchVariantFormKanji", // 12
- "Japanese/IsMatchOldKanaForms", // 13
- "Japanese/IsMatch_DiZi_DuZu", // 14
- "Japanese/IsMatch_BaVa_HaFa", // 15
- "Japanese/IsMatch_TsiThiChi_DhiZi", // 16
- "Japanese/IsMatch_HyuIyu_ByuVyu", // 17
- "Japanese/IsMatch_SeShe_ZeJe", // 18
- "Japanese/IsMatch_IaIya", // 19
- "Japanese/IsMatch_KiKu", // 20
- "Japanese/IsIgnorePunctuation", // 21
- "Japanese/IsIgnoreWhitespace", // 22
- "Japanese/IsIgnoreProlongedSoundMark", // 23
- "Japanese/IsIgnoreMiddleDot", // 24
- "IsNotes" // 25
+ "IsWholeWordsOnly", // 0
+ "IsBackwards", // 1
+ "IsUseRegularExpression", // 2
+ //"IsCurrentSelectionOnly", // interactively set or not...
+ "IsSearchForStyles", // 3
+ "IsSimilaritySearch", // 4
+ "IsUseAsianOptions", // 5
+ "IsMatchCase", // 6
+ "Japanese/IsMatchFullHalfWidthForms", // 7
+ "Japanese/IsMatchHiraganaKatakana", // 8
+ "Japanese/IsMatchContractions", // 9
+ "Japanese/IsMatchMinusDashCho-on", // 10
+ "Japanese/IsMatchRepeatCharMarks", // 11
+ "Japanese/IsMatchVariantFormKanji", // 12
+ "Japanese/IsMatchOldKanaForms", // 13
+ "Japanese/IsMatch_DiZi_DuZu", // 14
+ "Japanese/IsMatch_BaVa_HaFa", // 15
+ "Japanese/IsMatch_TsiThiChi_DhiZi", // 16
+ "Japanese/IsMatch_HyuIyu_ByuVyu", // 17
+ "Japanese/IsMatch_SeShe_ZeJe", // 18
+ "Japanese/IsMatch_IaIya", // 19
+ "Japanese/IsMatch_KiKu", // 20
+ "Japanese/IsIgnorePunctuation", // 21
+ "Japanese/IsIgnoreWhitespace", // 22
+ "Japanese/IsIgnoreProlongedSoundMark", // 23
+ "Japanese/IsIgnoreMiddleDot", // 24
+ "IsNotes" // 25
};
const int nCount = SAL_N_ELEMENTS( aPropNames );
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index fb0ea146b71c..216e5634ba66 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,78 +46,78 @@
#include "itemholder1.hxx"
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_SECURITY OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Security/Scripting"))
-#define DEFAULT_SECUREURL Sequence< OUString >()
-#define DEFAULT_SECLEVEL 3
-#define DEFAULT_TRUSTEDAUTHORS Sequence< SvtSecurityOptions::Certificate >()
+#define ROOTNODE_SECURITY OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/Security/Scripting"))
+#define DEFAULT_SECUREURL Sequence< OUString >()
+#define DEFAULT_SECLEVEL 3
+#define DEFAULT_TRUSTEDAUTHORS Sequence< SvtSecurityOptions::Certificate >()
// xmlsec05 depricated
-#define DEFAULT_STAROFFICEBASIC eALWAYS_EXECUTE
-
-#define CSTR_SECUREURL "SecureURL"
-#define CSTR_DOCWARN_SAVEORSEND "WarnSaveOrSendDoc"
-#define CSTR_DOCWARN_SIGNING "WarnSignDoc"
-#define CSTR_DOCWARN_PRINT "WarnPrintDoc"
-#define CSTR_DOCWARN_CREATEPDF "WarnCreatePDF"
-#define CSTR_DOCWARN_REMOVEPERSONALINFO "RemovePersonalInfoOnSaving"
-#define CSTR_DOCWARN_RECOMMENDPASSWORD "RecommendPasswordProtection"
+#define DEFAULT_STAROFFICEBASIC eALWAYS_EXECUTE
+
+#define CSTR_SECUREURL "SecureURL"
+#define CSTR_DOCWARN_SAVEORSEND "WarnSaveOrSendDoc"
+#define CSTR_DOCWARN_SIGNING "WarnSignDoc"
+#define CSTR_DOCWARN_PRINT "WarnPrintDoc"
+#define CSTR_DOCWARN_CREATEPDF "WarnCreatePDF"
+#define CSTR_DOCWARN_REMOVEPERSONALINFO "RemovePersonalInfoOnSaving"
+#define CSTR_DOCWARN_RECOMMENDPASSWORD "RecommendPasswordProtection"
#define CSTR_CTRLCLICK_HYPERLINK "HyperlinksWithCtrlClick"
-#define CSTR_MACRO_SECLEVEL "MacroSecurityLevel"
-#define CSTR_MACRO_TRUSTEDAUTHORS "TrustedAuthors"
-#define CSTR_MACRO_DISABLE "DisableMacrosExecution"
-#define CSTR_TRUSTEDAUTHOR_SUBJECTNAME "SubjectName"
-#define CSTR_TRUSTEDAUTHOR_SERIALNUMBER "SerialNumber"
-#define CSTR_TRUSTEDAUTHOR_RAWDATA "RawData"
-
-#define PROPERTYNAME_SECUREURL OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_SECUREURL ))
-#define PROPERTYNAME_DOCWARN_SAVEORSEND OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_SAVEORSEND ))
-#define PROPERTYNAME_DOCWARN_SIGNING OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_SIGNING ))
-#define PROPERTYNAME_DOCWARN_PRINT OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_PRINT ))
-#define PROPERTYNAME_DOCWARN_CREATEPDF OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_CREATEPDF ))
-#define PROPERTYNAME_DOCWARN_REMOVEPERSONALINFO OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_REMOVEPERSONALINFO ))
+#define CSTR_MACRO_SECLEVEL "MacroSecurityLevel"
+#define CSTR_MACRO_TRUSTEDAUTHORS "TrustedAuthors"
+#define CSTR_MACRO_DISABLE "DisableMacrosExecution"
+#define CSTR_TRUSTEDAUTHOR_SUBJECTNAME "SubjectName"
+#define CSTR_TRUSTEDAUTHOR_SERIALNUMBER "SerialNumber"
+#define CSTR_TRUSTEDAUTHOR_RAWDATA "RawData"
+
+#define PROPERTYNAME_SECUREURL OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_SECUREURL ))
+#define PROPERTYNAME_DOCWARN_SAVEORSEND OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_SAVEORSEND ))
+#define PROPERTYNAME_DOCWARN_SIGNING OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_SIGNING ))
+#define PROPERTYNAME_DOCWARN_PRINT OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_PRINT ))
+#define PROPERTYNAME_DOCWARN_CREATEPDF OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_CREATEPDF ))
+#define PROPERTYNAME_DOCWARN_REMOVEPERSONALINFO OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_REMOVEPERSONALINFO ))
#define PROPERTYNAME_DOCWARN_RECOMMENDPASSWORD OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_DOCWARN_RECOMMENDPASSWORD ))
#define PROPERTYNAME_CTRLCLICK_HYPERLINK OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_CTRLCLICK_HYPERLINK ))
-#define PROPERTYNAME_MACRO_SECLEVEL OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_MACRO_SECLEVEL ))
-#define PROPERTYNAME_MACRO_TRUSTEDAUTHORS OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_MACRO_TRUSTEDAUTHORS ))
-#define PROPERTYNAME_MACRO_DISABLE OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_MACRO_DISABLE ))
-#define PROPERTYNAME_TRUSTEDAUTHOR_SUBJECTNAME OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_TRUSTEDAUTHOR_SUBJECTNAME))
-#define PROPERTYNAME_TRUSTEDAUTHOR_SERIALNUMBER OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_TRUSTEDAUTHOR_SERIALNUMBER))
-#define PROPERTYNAME_TRUSTEDAUTHOR_RAWDATA OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_TRUSTEDAUTHOR_RAWDATA))
+#define PROPERTYNAME_MACRO_SECLEVEL OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_MACRO_SECLEVEL ))
+#define PROPERTYNAME_MACRO_TRUSTEDAUTHORS OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_MACRO_TRUSTEDAUTHORS ))
+#define PROPERTYNAME_MACRO_DISABLE OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_MACRO_DISABLE ))
+#define PROPERTYNAME_TRUSTEDAUTHOR_SUBJECTNAME OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_TRUSTEDAUTHOR_SUBJECTNAME))
+#define PROPERTYNAME_TRUSTEDAUTHOR_SERIALNUMBER OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_TRUSTEDAUTHOR_SERIALNUMBER))
+#define PROPERTYNAME_TRUSTEDAUTHOR_RAWDATA OUString(RTL_CONSTASCII_USTRINGPARAM(CSTR_TRUSTEDAUTHOR_RAWDATA))
// xmlsec05 depricated
-#define PROPERTYNAME_STAROFFICEBASIC OUString(RTL_CONSTASCII_USTRINGPARAM("OfficeBasic" ))
+#define PROPERTYNAME_STAROFFICEBASIC OUString(RTL_CONSTASCII_USTRINGPARAM("OfficeBasic" ))
#define PROPERTYNAME_EXECUTEPLUGINS OUString(RTL_CONSTASCII_USTRINGPARAM("ExecutePlugins" ))
#define PROPERTYNAME_WARNINGENABLED OUString(RTL_CONSTASCII_USTRINGPARAM("Warning" ))
#define PROPERTYNAME_CONFIRMATIONENABLED OUString(RTL_CONSTASCII_USTRINGPARAM("Confirmation" ))
// xmlsec05 depricated
-#define PROPERTYHANDLE_SECUREURL 0
+#define PROPERTYHANDLE_SECUREURL 0
// xmlsec05 depricated
-#define PROPERTYHANDLE_STAROFFICEBASIC 1
+#define PROPERTYHANDLE_STAROFFICEBASIC 1
#define PROPERTYHANDLE_EXECUTEPLUGINS 2
#define PROPERTYHANDLE_WARNINGENABLED 3
#define PROPERTYHANDLE_CONFIRMATIONENABLED 4
// xmlsec05 depricated
-#define PROPERTYHANDLE_DOCWARN_SAVEORSEND 5
-#define PROPERTYHANDLE_DOCWARN_SIGNING 6
-#define PROPERTYHANDLE_DOCWARN_PRINT 7
-#define PROPERTYHANDLE_DOCWARN_CREATEPDF 8
-#define PROPERTYHANDLE_DOCWARN_REMOVEPERSONALINFO 9
+#define PROPERTYHANDLE_DOCWARN_SAVEORSEND 5
+#define PROPERTYHANDLE_DOCWARN_SIGNING 6
+#define PROPERTYHANDLE_DOCWARN_PRINT 7
+#define PROPERTYHANDLE_DOCWARN_CREATEPDF 8
+#define PROPERTYHANDLE_DOCWARN_REMOVEPERSONALINFO 9
#define PROPERTYHANDLE_DOCWARN_RECOMMENDPASSWORD 10
#define PROPERTYHANDLE_CTRLCLICK_HYPERLINK 11
#define PROPERTYHANDLE_MACRO_SECLEVEL 12
@@ -125,131 +125,131 @@ using namespace ::com::sun::star::uno ;
#define PROPERTYHANDLE_MACRO_DISABLE 14
#define PROPERTYCOUNT 15
-#define PROPERTYHANDLE_INVALID -1
+#define PROPERTYHANDLE_INVALID -1
-#define CFG_READONLY_DEFAULT sal_False
+#define CFG_READONLY_DEFAULT sal_False
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
class SvtSecurityOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtSecurityOptions_Impl();
~SvtSecurityOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& seqPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
- sal_Bool IsReadOnly ( SvtSecurityOptions::EOption eOption ) const ;
+ sal_Bool IsReadOnly ( SvtSecurityOptions::EOption eOption ) const ;
- Sequence< OUString > GetSecureURLs ( ) const ;
- void SetSecureURLs ( const Sequence< OUString >& seqURLList ) ;
- sal_Bool IsSecureURL ( const OUString& sURL,
- const OUString& sReferer ) const ;
- inline sal_Int32 GetMacroSecurityLevel ( ) const ;
- void SetMacroSecurityLevel ( sal_Int32 _nLevel ) ;
+ Sequence< OUString > GetSecureURLs ( ) const ;
+ void SetSecureURLs ( const Sequence< OUString >& seqURLList ) ;
+ sal_Bool IsSecureURL ( const OUString& sURL,
+ const OUString& sReferer ) const ;
+ inline sal_Int32 GetMacroSecurityLevel ( ) const ;
+ void SetMacroSecurityLevel ( sal_Int32 _nLevel ) ;
- inline sal_Bool IsMacroDisabled ( ) const ;
+ inline sal_Bool IsMacroDisabled ( ) const ;
- Sequence< SvtSecurityOptions::Certificate > GetTrustedAuthors ( ) const ;
- void SetTrustedAuthors ( const Sequence< SvtSecurityOptions::Certificate >& rAuthors ) ;
- sal_Bool IsTrustedAuthorsEnabled ( ) ;
+ Sequence< SvtSecurityOptions::Certificate > GetTrustedAuthors ( ) const ;
+ void SetTrustedAuthors ( const Sequence< SvtSecurityOptions::Certificate >& rAuthors ) ;
+ sal_Bool IsTrustedAuthorsEnabled ( ) ;
- sal_Bool IsOptionSet ( SvtSecurityOptions::EOption eOption ) const ;
- sal_Bool SetOption ( SvtSecurityOptions::EOption eOption, sal_Bool bValue ) ;
- sal_Bool IsOptionEnabled ( SvtSecurityOptions::EOption eOption ) const ;
+ sal_Bool IsOptionSet ( SvtSecurityOptions::EOption eOption ) const ;
+ sal_Bool SetOption ( SvtSecurityOptions::EOption eOption, sal_Bool bValue ) ;
+ sal_Bool IsOptionEnabled ( SvtSecurityOptions::EOption eOption ) const ;
private:
/*-****************************************************************************************************//**
- @short return list of key names of ouer configuration management which represent our module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of key names of ouer configuration management which represent our module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management.
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- void SetProperty( sal_Int32 nHandle, const Any& rValue, sal_Bool bReadOnly );
- void LoadAuthors( void );
- static sal_Int32 GetHandle( const OUString& rPropertyName );
- bool GetOption( SvtSecurityOptions::EOption eOption, sal_Bool*& rpValue, sal_Bool*& rpRO );
+ void SetProperty( sal_Int32 nHandle, const Any& rValue, sal_Bool bReadOnly );
+ void LoadAuthors( void );
+ static sal_Int32 GetHandle( const OUString& rPropertyName );
+ bool GetOption( SvtSecurityOptions::EOption eOption, sal_Bool*& rpValue, sal_Bool*& rpRO );
static Sequence< OUString > GetPropertyNames();
- Sequence< OUString > m_seqSecureURLs;
- sal_Bool m_bSaveOrSend;
- sal_Bool m_bSigning;
- sal_Bool m_bPrint;
- sal_Bool m_bCreatePDF;
- sal_Bool m_bRemoveInfo;
+ Sequence< OUString > m_seqSecureURLs;
+ sal_Bool m_bSaveOrSend;
+ sal_Bool m_bSigning;
+ sal_Bool m_bPrint;
+ sal_Bool m_bCreatePDF;
+ sal_Bool m_bRemoveInfo;
sal_Bool m_bRecommendPwd;
sal_Bool m_bCtrlClickHyperlink;
- sal_Int32 m_nSecLevel;
- Sequence< SvtSecurityOptions::Certificate > m_seqTrustedAuthors;
- sal_Bool m_bDisableMacros;
-
- sal_Bool m_bROSecureURLs;
- sal_Bool m_bROSaveOrSend;
- sal_Bool m_bROSigning;
- sal_Bool m_bROPrint;
- sal_Bool m_bROCreatePDF;
- sal_Bool m_bRORemoveInfo;
+ sal_Int32 m_nSecLevel;
+ Sequence< SvtSecurityOptions::Certificate > m_seqTrustedAuthors;
+ sal_Bool m_bDisableMacros;
+
+ sal_Bool m_bROSecureURLs;
+ sal_Bool m_bROSaveOrSend;
+ sal_Bool m_bROSigning;
+ sal_Bool m_bROPrint;
+ sal_Bool m_bROCreatePDF;
+ sal_Bool m_bRORemoveInfo;
sal_Bool m_bRORecommendPwd;
sal_Bool m_bROCtrlClickHyperlink;
- sal_Bool m_bROSecLevel;
- sal_Bool m_bROTrustedAuthors;
- sal_Bool m_bRODisableMacros;
+ sal_Bool m_bROSecLevel;
+ sal_Bool m_bROTrustedAuthors;
+ sal_Bool m_bRODisableMacros;
// xmlsec05 depricated
@@ -269,37 +269,37 @@ private:
void SetConfirmationEnabled( sal_Bool bSet );
sal_Bool IsExecutePlugins() const;
void SetExecutePlugins( sal_Bool bSet );
- EBasicSecurityMode GetBasicMode ( ) const ;
- void SetBasicMode ( EBasicSecurityMode eMode ) ;
+ EBasicSecurityMode GetBasicMode ( ) const ;
+ void SetBasicMode ( EBasicSecurityMode eMode ) ;
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtSecurityOptions_Impl::SvtSecurityOptions_Impl()
- :ConfigItem ( ROOTNODE_SECURITY )
- ,m_seqSecureURLs ( DEFAULT_SECUREURL )
- ,m_bSaveOrSend ( sal_True )
- ,m_bSigning ( sal_True )
- ,m_bPrint ( sal_True )
- ,m_bCreatePDF ( sal_True )
- ,m_bRemoveInfo ( sal_True )
- ,m_nSecLevel ( sal_True )
- ,m_seqTrustedAuthors ( DEFAULT_TRUSTEDAUTHORS )
- ,m_bDisableMacros ( sal_False )
- ,m_bROSecureURLs ( CFG_READONLY_DEFAULT )
- ,m_bROSaveOrSend ( CFG_READONLY_DEFAULT )
- ,m_bROSigning ( CFG_READONLY_DEFAULT )
- ,m_bROPrint ( CFG_READONLY_DEFAULT )
- ,m_bROCreatePDF ( CFG_READONLY_DEFAULT )
- ,m_bRORemoveInfo ( CFG_READONLY_DEFAULT )
- ,m_bROSecLevel ( CFG_READONLY_DEFAULT )
- ,m_bROTrustedAuthors ( CFG_READONLY_DEFAULT )
- ,m_bRODisableMacros ( sal_True ) // currently is not intended to be changed
+ :ConfigItem ( ROOTNODE_SECURITY )
+ ,m_seqSecureURLs ( DEFAULT_SECUREURL )
+ ,m_bSaveOrSend ( sal_True )
+ ,m_bSigning ( sal_True )
+ ,m_bPrint ( sal_True )
+ ,m_bCreatePDF ( sal_True )
+ ,m_bRemoveInfo ( sal_True )
+ ,m_nSecLevel ( sal_True )
+ ,m_seqTrustedAuthors ( DEFAULT_TRUSTEDAUTHORS )
+ ,m_bDisableMacros ( sal_False )
+ ,m_bROSecureURLs ( CFG_READONLY_DEFAULT )
+ ,m_bROSaveOrSend ( CFG_READONLY_DEFAULT )
+ ,m_bROSigning ( CFG_READONLY_DEFAULT )
+ ,m_bROPrint ( CFG_READONLY_DEFAULT )
+ ,m_bROCreatePDF ( CFG_READONLY_DEFAULT )
+ ,m_bRORemoveInfo ( CFG_READONLY_DEFAULT )
+ ,m_bROSecLevel ( CFG_READONLY_DEFAULT )
+ ,m_bROTrustedAuthors ( CFG_READONLY_DEFAULT )
+ ,m_bRODisableMacros ( sal_True ) // currently is not intended to be changed
// xmlsec05 depricated
, m_eBasicMode ( DEFAULT_STAROFFICEBASIC )
@@ -313,9 +313,9 @@ SvtSecurityOptions_Impl::SvtSecurityOptions_Impl()
// xmlsec05 depricated
{
- Sequence< OUString > seqNames = GetPropertyNames ( );
- Sequence< Any > seqValues = GetProperties ( seqNames );
- Sequence< sal_Bool > seqRO = GetReadOnlyStates ( seqNames );
+ Sequence< OUString > seqNames = GetPropertyNames ( );
+ Sequence< Any > seqValues = GetProperties ( seqNames );
+ Sequence< sal_Bool > seqRO = GetReadOnlyStates ( seqNames );
// Safe impossible cases.
// We need values from ALL configuration keys.
@@ -323,7 +323,7 @@ SvtSecurityOptions_Impl::SvtSecurityOptions_Impl()
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtSecurityOptions_Impl::SvtSecurityOptions_Impl()\nI miss some values of configuration keys!\n" );
// Copy values from list in right order to our internal member.
- sal_Int32 nPropertyCount = seqValues.getLength();
+ sal_Int32 nPropertyCount = seqValues.getLength();
for( sal_Int32 nProperty = 0 ; nProperty < nPropertyCount ; ++nProperty )
SetProperty( nProperty, seqValues[ nProperty ], seqRO[ nProperty ] );
@@ -336,7 +336,7 @@ SvtSecurityOptions_Impl::SvtSecurityOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtSecurityOptions_Impl::~SvtSecurityOptions_Impl()
{
@@ -352,8 +352,8 @@ void SvtSecurityOptions_Impl::SetProperty( sal_Int32 nProperty, const Any& rValu
{
m_seqSecureURLs.realloc( 0 );
rValue >>= m_seqSecureURLs;
- SvtPathOptions aOpt;
- sal_uInt32 nCount = m_seqSecureURLs.getLength();
+ SvtPathOptions aOpt;
+ sal_uInt32 nCount = m_seqSecureURLs.getLength();
for( sal_uInt32 nItem = 0 ; nItem < nCount ; ++nItem )
m_seqSecureURLs[ nItem ] = aOpt.SubstituteVariable( m_seqSecureURLs[ nItem ] );
m_bROSecureURLs = bRO;
@@ -470,17 +470,17 @@ void SvtSecurityOptions_Impl::SetProperty( sal_Int32 nProperty, const Any& rValu
void SvtSecurityOptions_Impl::LoadAuthors( void )
{
- m_seqTrustedAuthors.realloc( 0 ); // first clear
- Sequence< OUString > lAuthors = GetNodeNames( PROPERTYNAME_MACRO_TRUSTEDAUTHORS );
- sal_Int32 c1 = lAuthors.getLength();
+ m_seqTrustedAuthors.realloc( 0 ); // first clear
+ Sequence< OUString > lAuthors = GetNodeNames( PROPERTYNAME_MACRO_TRUSTEDAUTHORS );
+ sal_Int32 c1 = lAuthors.getLength();
if( c1 )
{
- sal_Int32 c2 = c1 * 3; // 3 Properties inside Struct TrustedAuthor
- Sequence< OUString > lAllAuthors( c2 );
+ sal_Int32 c2 = c1 * 3; // 3 Properties inside Struct TrustedAuthor
+ Sequence< OUString > lAllAuthors( c2 );
- sal_Int32 i1;
- sal_Int32 i2;
- OUString aSep( RTL_CONSTASCII_USTRINGPARAM( "/" ) );
+ sal_Int32 i1;
+ sal_Int32 i2;
+ OUString aSep( RTL_CONSTASCII_USTRINGPARAM( "/" ) );
for( i1 = 0, i2 = 0 ; i1 < c1 ; ++i1 )
{
lAllAuthors[ i2 ] = PROPERTYNAME_MACRO_TRUSTEDAUTHORS + aSep + lAuthors[ i1 ] + aSep + PROPERTYNAME_TRUSTEDAUTHOR_SUBJECTNAME;
@@ -491,7 +491,7 @@ void SvtSecurityOptions_Impl::LoadAuthors( void )
++i2;
}
- Sequence< Any > lValues = GetProperties( lAllAuthors );
+ Sequence< Any > lValues = GetProperties( lAllAuthors );
if( lValues.getLength() == c2 )
{
m_seqTrustedAuthors.realloc( c1 );
@@ -512,7 +512,7 @@ void SvtSecurityOptions_Impl::LoadAuthors( void )
sal_Int32 SvtSecurityOptions_Impl::GetHandle( const OUString& rName )
{
- sal_Int32 nHandle;
+ sal_Int32 nHandle;
if( rName.compareToAscii( CSTR_SECUREURL ) == 0 )
nHandle = PROPERTYHANDLE_SECUREURL;
@@ -598,13 +598,13 @@ bool SvtSecurityOptions_Impl::GetOption( SvtSecurityOptions::EOption eOption, sa
void SvtSecurityOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
{
// Use given list of updated properties to get his values from configuration directly!
- Sequence< Any > seqValues = GetProperties( seqPropertyNames );
- Sequence< sal_Bool > seqRO = GetReadOnlyStates( seqPropertyNames );
+ Sequence< Any > seqValues = GetProperties( seqPropertyNames );
+ Sequence< sal_Bool > seqRO = GetReadOnlyStates( seqPropertyNames );
// Safe impossible cases.
// We need values from ALL notified configuration keys.
DBG_ASSERT( !(seqPropertyNames.getLength()!=seqValues.getLength()), "SvtSecurityOptions_Impl::Notify()\nI miss some values of configuration keys!\n" );
// Step over list of property names and get right value from coreesponding value list to set it on internal members!
- sal_Int32 nCount = seqPropertyNames.getLength();
+ sal_Int32 nCount = seqPropertyNames.getLength();
for( sal_Int32 nProperty = 0 ; nProperty < nCount ; ++nProperty )
SetProperty( GetHandle( seqPropertyNames[ nProperty ] ), seqValues[ nProperty ], seqRO[ nProperty ] );
@@ -621,7 +621,7 @@ void SvtSecurityOptions_Impl::Commit()
Sequence< OUString > lNames(nOrgCount);
Sequence< Any > lValues(nOrgCount);
sal_Int32 nRealCount = 0;
- bool bDone;
+ bool bDone;
ClearNodeSet( PROPERTYNAME_MACRO_TRUSTEDAUTHORS );
@@ -634,9 +634,9 @@ void SvtSecurityOptions_Impl::Commit()
bDone = !m_bROSecureURLs;
if( bDone )
{
- Sequence< OUString > lURLs( m_seqSecureURLs );
- SvtPathOptions aOpt;
- sal_Int32 nURLsCnt = lURLs.getLength();
+ Sequence< OUString > lURLs( m_seqSecureURLs );
+ SvtPathOptions aOpt;
+ sal_Int32 nURLsCnt = lURLs.getLength();
for( sal_Int32 nItem = 0 ; nItem < nURLsCnt ; ++nItem )
lURLs[ nItem ] = aOpt.UseVariable( lURLs[ nItem ] );
lValues[ nRealCount ] <<= lURLs;
@@ -713,20 +713,20 @@ void SvtSecurityOptions_Impl::Commit()
bDone = !m_bROTrustedAuthors;
if( bDone )
{
- sal_Int32 nCnt = m_seqTrustedAuthors.getLength();
+ sal_Int32 nCnt = m_seqTrustedAuthors.getLength();
if( nCnt )
{
- String s;
+ String s;
s.AppendAscii( CSTR_MACRO_TRUSTEDAUTHORS );
s.AppendAscii( "/a" );
Sequence< Sequence< com::sun::star::beans::PropertyValue > > lPropertyValuesSeq( nCnt );
for( sal_Int32 i = 0 ; i < nCnt ; ++i )
{
- String aPrefix( s );
+ String aPrefix( s );
aPrefix += String::CreateFromInt32( i );
aPrefix.AppendAscii( "/" );
- Sequence< com::sun::star::beans::PropertyValue > lPropertyValues( 3 );
+ Sequence< com::sun::star::beans::PropertyValue > lPropertyValues( 3 );
lPropertyValues[ 0 ].Name = aPrefix + PROPERTYNAME_TRUSTEDAUTHOR_SUBJECTNAME;
lPropertyValues[ 0 ].Value <<= m_seqTrustedAuthors[ i ][0];
lPropertyValues[ 1 ].Name = aPrefix + PROPERTYNAME_TRUSTEDAUTHOR_SERIALNUMBER;
@@ -738,7 +738,7 @@ void SvtSecurityOptions_Impl::Commit()
SetSetProperties( PROPERTYNAME_MACRO_TRUSTEDAUTHORS, lPropertyValues );
}
- bDone = false; // because we save in loop above!
+ bDone = false; // because we save in loop above!
}
else
bDone = false;
@@ -805,7 +805,7 @@ void SvtSecurityOptions_Impl::Commit()
sal_Bool SvtSecurityOptions_Impl::IsReadOnly( SvtSecurityOptions::EOption eOption ) const
{
- sal_Bool bReadonly;
+ sal_Bool bReadonly;
switch(eOption)
{
case SvtSecurityOptions::E_SECUREURLS :
@@ -881,8 +881,8 @@ void SvtSecurityOptions_Impl::SetSecureURLs( const Sequence< OUString >& seqURLL
}
}
-sal_Bool SvtSecurityOptions_Impl::IsSecureURL( const OUString& sURL ,
- const OUString& sReferer) const
+sal_Bool SvtSecurityOptions_Impl::IsSecureURL( const OUString& sURL ,
+ const OUString& sReferer) const
{
sal_Bool bState = sal_False;
@@ -977,9 +977,9 @@ sal_Bool SvtSecurityOptions_Impl::IsTrustedAuthorsEnabled()
sal_Bool SvtSecurityOptions_Impl::IsOptionSet( SvtSecurityOptions::EOption eOption ) const
{
- sal_Bool* pValue;
- sal_Bool* pRO;
- sal_Bool bRet = sal_False;
+ sal_Bool* pValue;
+ sal_Bool* pRO;
+ sal_Bool bRet = sal_False;
if( ( const_cast< SvtSecurityOptions_Impl* >( this ) )->GetOption( eOption, pValue, pRO ) )
bRet = *pValue;
@@ -989,9 +989,9 @@ sal_Bool SvtSecurityOptions_Impl::IsOptionSet( SvtSecurityOptions::EOption eOpti
sal_Bool SvtSecurityOptions_Impl::SetOption( SvtSecurityOptions::EOption eOption, sal_Bool bValue )
{
- sal_Bool* pValue;
- sal_Bool* pRO;
- sal_Bool bRet = sal_False;
+ sal_Bool* pValue;
+ sal_Bool* pRO;
+ sal_Bool bRet = sal_False;
if( GetOption( eOption, pValue, pRO ) )
{
@@ -1011,9 +1011,9 @@ sal_Bool SvtSecurityOptions_Impl::SetOption( SvtSecurityOptions::EOption eOption
sal_Bool SvtSecurityOptions_Impl::IsOptionEnabled( SvtSecurityOptions::EOption eOption ) const
{
- sal_Bool* pValue;
- sal_Bool* pRO;
- sal_Bool bRet = sal_False;
+ sal_Bool* pValue;
+ sal_Bool* pRO;
+ sal_Bool bRet = sal_False;
if( ( const_cast< SvtSecurityOptions_Impl* >( this ) )->GetOption( eOption, pValue, pRO ) )
bRet = !*pRO;
@@ -1049,12 +1049,12 @@ Sequence< OUString > SvtSecurityOptions_Impl::GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtSecurityOptions_Impl* SvtSecurityOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtSecurityOptions::m_nRefCount = 0 ;
+SvtSecurityOptions_Impl* SvtSecurityOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtSecurityOptions::m_nRefCount = 0 ;
SvtSecurityOptions::SvtSecurityOptions()
{
@@ -1105,8 +1105,8 @@ void SvtSecurityOptions::SetSecureURLs( const Sequence< OUString >& seqURLList )
m_pDataContainer->SetSecureURLs( seqURLList );
}
-sal_Bool SvtSecurityOptions::IsSecureURL( const OUString& sURL ,
- const OUString& sReferer ) const
+sal_Bool SvtSecurityOptions::IsSecureURL( const OUString& sURL ,
+ const OUString& sReferer ) const
{
MutexGuard aGuard( GetInitMutex() );
return m_pDataContainer->IsSecureURL( sURL, sReferer );
@@ -1136,7 +1136,7 @@ Sequence< SvtSecurityOptions::Certificate > SvtSecurityOptions::GetTrustedAuthor
return m_pDataContainer->GetTrustedAuthors();
}
-void SvtSecurityOptions::SetTrustedAuthors( const Sequence< Certificate >& rAuthors )
+void SvtSecurityOptions::SetTrustedAuthors( const Sequence< Certificate >& rAuthors )
{
MutexGuard aGuard( GetInitMutex() );
m_pDataContainer->SetTrustedAuthors( rAuthors );
diff --git a/unotools/source/config/sourceviewconfig.cxx b/unotools/source/config/sourceviewconfig.cxx
index 270a04702fef..3cbc6736d61b 100644
--- a/unotools/source/config/sourceviewconfig.cxx
+++ b/unotools/source/config/sourceviewconfig.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ public:
~SourceViewConfig_Impl();
virtual void Notify( const Sequence< rtl::OUString >& aPropertyNames );
- virtual void Commit();
+ virtual void Commit();
const rtl::OUString& GetFontName() const
{return m_sFontName;}
diff --git a/unotools/source/config/startoptions.cxx b/unotools/source/config/startoptions.cxx
index 98d17b9a739b..de80733f025a 100644
--- a/unotools/source/config/startoptions.cxx
+++ b/unotools/source/config/startoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,158 +39,158 @@
#include <rtl/logfile.hxx>
#include "itemholder1.hxx"
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define DEFAULT_SHOWINTRO sal_True
-#define DEFAULT_CONNECTIONURL OUString()
+#define DEFAULT_SHOWINTRO sal_True
+#define DEFAULT_CONNECTIONURL OUString()
-#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Setup/Office" ))
-#define PROPERTYNAME_SHOWINTRO OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupShowIntro" ))
-#define PROPERTYNAME_CONNECTIONURL OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupConnectionURL" ))
+#define ROOTNODE_START OUString(RTL_CONSTASCII_USTRINGPARAM("Setup/Office" ))
+#define PROPERTYNAME_SHOWINTRO OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupShowIntro" ))
+#define PROPERTYNAME_CONNECTIONURL OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupConnectionURL" ))
-#define PROPERTYHANDLE_SHOWINTRO 0
-#define PROPERTYHANDLE_CONNECTIONURL 1
+#define PROPERTYHANDLE_SHOWINTRO 0
+#define PROPERTYHANDLE_CONNECTIONURL 1
-#define PROPERTYCOUNT 2
+#define PROPERTYCOUNT 2
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
class SvtStartOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtStartOptions_Impl();
~SvtStartOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @ATTENTION We don't implement these method - because we support readonly values at runtime only!
+ @ATTENTION We don't implement these method - because we support readonly values at runtime only!
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& seqPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @ATTENTION We don't implement these method - because we support readonly values at runtime only!
+ @ATTENTION We don't implement these method - because we support readonly values at runtime only!
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short access method to get internal values
- @descr These method give us a chance to regulate acces to ouer internal values.
+ @short access method to get internal values
+ @descr These method give us a chance to regulate acces to ouer internal values.
It's not used in the moment - but it's possible for the feature!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- sal_Bool IsIntroEnabled ( ) const ;
- void EnableIntro ( sal_Bool bState ) ;
- OUString GetConnectionURL( ) const ;
- void SetConnectionURL( const OUString& sURL ) ;
+ sal_Bool IsIntroEnabled ( ) const ;
+ void EnableIntro ( sal_Bool bState ) ;
+ OUString GetConnectionURL( ) const ;
+ void SetConnectionURL( const OUString& sURL ) ;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return list of fix key names of ouer configuration management which represent oue module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of fix key names of ouer configuration management which represent oue module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management. We return well known key names only - because the "UserData" node
is handled in a special way!
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
static Sequence< OUString > impl_GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
- sal_Bool m_bShowIntro ; /// cache "ShowIntro" of Start section
- OUString m_sConnectionURL ; /// cache "Connection" of Start section
+ sal_Bool m_bShowIntro ; /// cache "ShowIntro" of Start section
+ OUString m_sConnectionURL ; /// cache "Connection" of Start section
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtStartOptions_Impl::SvtStartOptions_Impl()
// Init baseclasses first
- : ConfigItem ( ROOTNODE_START )
+ : ConfigItem ( ROOTNODE_START )
// Init member then.
- , m_bShowIntro ( DEFAULT_SHOWINTRO )
+ , m_bShowIntro ( DEFAULT_SHOWINTRO )
{
// Use our static list of configuration keys to get his values.
- Sequence< OUString > seqNames = impl_GetPropertyNames();
- Sequence< Any > seqValues = GetProperties( seqNames ) ;
+ Sequence< OUString > seqNames = impl_GetPropertyNames();
+ Sequence< Any > seqValues = GetProperties( seqNames ) ;
// Safe impossible cases.
// We need values from ALL configuration keys.
@@ -198,8 +198,8 @@ SvtStartOptions_Impl::SvtStartOptions_Impl()
DBG_ASSERT( !(seqNames.getLength()!=seqValues.getLength()), "SvtStartOptions_Impl::SvtStartOptions_Impl()\nI miss some values of configuration keys!\n" );
// Copy values from list in right order to ouer internal member.
- sal_Int32 nPropertyCount = seqValues.getLength() ;
- sal_Int32 nProperty = 0 ;
+ sal_Int32 nPropertyCount = seqValues.getLength() ;
+ sal_Int32 nProperty = 0 ;
for( nProperty=0; nProperty<nPropertyCount; ++nProperty )
{
// Safe impossible cases.
@@ -207,13 +207,13 @@ SvtStartOptions_Impl::SvtStartOptions_Impl()
DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtStartOptions_Impl::SvtStartOptions_Impl()\nInvalid property value for property detected!\n" );
switch( nProperty )
{
- case PROPERTYHANDLE_SHOWINTRO : {
+ case PROPERTYHANDLE_SHOWINTRO : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_BOOLEAN), "SvtStartOptions_Impl::SvtStartOptions_Impl()\nWho has changed the value type of \"Office.Common\\Start\\ShowIntro\"?" );
seqValues[nProperty] >>= m_bShowIntro;
}
break;
- case PROPERTYHANDLE_CONNECTIONURL : {
+ case PROPERTYHANDLE_CONNECTIONURL : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_STRING), "SvtStartOptions_Impl::SvtStartOptions_Impl()\nWho has changed the value type of \"Office.Common\\Start\\Connection\"?" );
seqValues[nProperty] >>= m_sConnectionURL;
}
@@ -226,7 +226,7 @@ SvtStartOptions_Impl::SvtStartOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtStartOptions_Impl::~SvtStartOptions_Impl()
{
@@ -238,7 +238,7 @@ SvtStartOptions_Impl::~SvtStartOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtStartOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
{
@@ -269,23 +269,23 @@ void SvtStartOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtStartOptions_Impl::Commit()
{
// Get names of supported properties, create a list for values and copy current values to it.
- Sequence< OUString > seqNames = impl_GetPropertyNames();
- sal_Int32 nCount = seqNames.getLength();
- Sequence< Any > seqValues ( nCount );
+ Sequence< OUString > seqNames = impl_GetPropertyNames();
+ sal_Int32 nCount = seqNames.getLength();
+ Sequence< Any > seqValues ( nCount );
for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty )
{
switch( nProperty )
{
- case PROPERTYHANDLE_SHOWINTRO : {
+ case PROPERTYHANDLE_SHOWINTRO : {
seqValues[nProperty] <<= m_bShowIntro;
}
break;
- case PROPERTYHANDLE_CONNECTIONURL : {
+ case PROPERTYHANDLE_CONNECTIONURL : {
seqValues[nProperty] <<= m_sConnectionURL;
}
break;
@@ -296,7 +296,7 @@ void SvtStartOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtStartOptions_Impl::IsIntroEnabled() const
{
@@ -304,7 +304,7 @@ sal_Bool SvtStartOptions_Impl::IsIntroEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtStartOptions_Impl::EnableIntro( sal_Bool bState )
{
@@ -313,7 +313,7 @@ void SvtStartOptions_Impl::EnableIntro( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
OUString SvtStartOptions_Impl::GetConnectionURL() const
{
@@ -321,7 +321,7 @@ OUString SvtStartOptions_Impl::GetConnectionURL() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtStartOptions_Impl::SetConnectionURL( const OUString& sURL )
{
@@ -330,15 +330,15 @@ void SvtStartOptions_Impl::SetConnectionURL( const OUString& sURL )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtStartOptions_Impl::impl_GetPropertyNames()
{
// Build static list of configuration key names.
static const OUString pProperties[] =
{
- PROPERTYNAME_SHOWINTRO ,
- PROPERTYNAME_CONNECTIONURL ,
+ PROPERTYNAME_SHOWINTRO ,
+ PROPERTYNAME_CONNECTIONURL ,
};
// Initialize return sequence with these list ...
static const Sequence< OUString > seqPropertyNames( pProperties, PROPERTYCOUNT );
@@ -347,15 +347,15 @@ Sequence< OUString > SvtStartOptions_Impl::impl_GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtStartOptions_Impl* SvtStartOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtStartOptions::m_nRefCount = 0 ;
+SvtStartOptions_Impl* SvtStartOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtStartOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtStartOptions::SvtStartOptions()
{
@@ -374,7 +374,7 @@ SvtStartOptions::SvtStartOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtStartOptions::~SvtStartOptions()
{
@@ -392,7 +392,7 @@ SvtStartOptions::~SvtStartOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtStartOptions::IsIntroEnabled() const
{
@@ -401,7 +401,7 @@ sal_Bool SvtStartOptions::IsIntroEnabled() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtStartOptions::EnableIntro( sal_Bool bState )
{
@@ -410,7 +410,7 @@ void SvtStartOptions::EnableIntro( sal_Bool bState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
OUString SvtStartOptions::GetConnectionURL() const
{
@@ -419,7 +419,7 @@ OUString SvtStartOptions::GetConnectionURL() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtStartOptions::SetConnectionURL( const OUString& sURL )
{
@@ -428,7 +428,7 @@ void SvtStartOptions::SetConnectionURL( const OUString& sURL )
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtStartOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx
index d16576be8fee..ba50b66f0c38 100644
--- a/unotools/source/config/syslocaleoptions.cxx
+++ b/unotools/source/config/syslocaleoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,10 +82,10 @@ com::sun::star::lang::Locale lcl_str_to_locale( const ::rtl::OUString rStr )
class SvtSysLocaleOptions_Impl : public utl::ConfigItem
{
- Locale m_aRealLocale;
- Locale m_aRealUILocale;
- LanguageType m_eRealLanguage;
- LanguageType m_eRealUILanguage;
+ Locale m_aRealLocale;
+ Locale m_aRealUILocale;
+ LanguageType m_eRealLanguage;
+ LanguageType m_eRealUILanguage;
OUString m_aLocaleString; // en-US or de-DE or empty for SYSTEM
OUString m_aUILocaleString; // en-US or de-DE or empty for SYSTEM
OUString m_aCurrencyString; // USD-en-US or EUR-de-DE
@@ -98,8 +98,8 @@ class SvtSysLocaleOptions_Impl : public utl::ConfigItem
sal_Bool m_bRODecimalSeparator;
static const Sequence< /* const */ OUString > GetPropertyNames();
- void MakeRealLocale();
- void MakeRealUILocale();
+ void MakeRealLocale();
+ void MakeRealUILocale();
public:
SvtSysLocaleOptions_Impl();
@@ -124,26 +124,26 @@ public:
void SetDecimalSeparatorAsLocale( sal_Bool bSet);
sal_Bool IsReadOnly( SvtSysLocaleOptions::EOption eOption ) const;
- const Locale& GetRealLocale() { return m_aRealLocale; }
- const Locale& GetRealUILocale() { return m_aRealUILocale; }
- LanguageType GetRealLanguage() { return m_eRealLanguage; }
- LanguageType GetRealUILanguage() { return m_eRealUILanguage; }
+ const Locale& GetRealLocale() { return m_aRealLocale; }
+ const Locale& GetRealUILocale() { return m_aRealUILocale; }
+ LanguageType GetRealLanguage() { return m_eRealLanguage; }
+ LanguageType GetRealUILanguage() { return m_eRealUILanguage; }
};
-#define ROOTNODE_SYSLOCALE OUString(RTL_CONSTASCII_USTRINGPARAM("Setup/L10N"))
+#define ROOTNODE_SYSLOCALE OUString(RTL_CONSTASCII_USTRINGPARAM("Setup/L10N"))
-#define PROPERTYNAME_LOCALE OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupSystemLocale"))
-#define PROPERTYNAME_UILOCALE OUString(RTL_CONSTASCII_USTRINGPARAM("ooLocale"))
-#define PROPERTYNAME_CURRENCY OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupCurrency"))
-#define PROPERTYNAME_DECIMALSEPARATOR OUString(RTL_CONSTASCII_USTRINGPARAM("DecimalSeparatorAsLocale"))
+#define PROPERTYNAME_LOCALE OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupSystemLocale"))
+#define PROPERTYNAME_UILOCALE OUString(RTL_CONSTASCII_USTRINGPARAM("ooLocale"))
+#define PROPERTYNAME_CURRENCY OUString(RTL_CONSTASCII_USTRINGPARAM("ooSetupCurrency"))
+#define PROPERTYNAME_DECIMALSEPARATOR OUString(RTL_CONSTASCII_USTRINGPARAM("DecimalSeparatorAsLocale"))
-#define PROPERTYHANDLE_LOCALE 0
-#define PROPERTYHANDLE_UILOCALE 1
-#define PROPERTYHANDLE_CURRENCY 2
+#define PROPERTYHANDLE_LOCALE 0
+#define PROPERTYHANDLE_UILOCALE 1
+#define PROPERTYHANDLE_CURRENCY 2
#define PROPERTYHANDLE_DECIMALSEPARATOR 3
-#define PROPERTYCOUNT 4
+#define PROPERTYCOUNT 4
const Sequence< OUString > SvtSysLocaleOptions_Impl::GetPropertyNames()
{
diff --git a/unotools/source/config/undoopt.cxx b/unotools/source/config/undoopt.cxx
index f7e985c71318..63821b59fae5 100644
--- a/unotools/source/config/undoopt.cxx
+++ b/unotools/source/config/undoopt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx
index 57f23586e6e7..8d3df7998bf7 100644
--- a/unotools/source/config/useroptions.cxx
+++ b/unotools/source/config/useroptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,26 +109,26 @@ public:
::rtl::OUString GetLocale() const { return m_aLocale; }
// set the address token
- void SetCompany( const ::rtl::OUString& rNewToken );
- void SetFirstName( const ::rtl::OUString& rNewToken );
- void SetLastName( const ::rtl::OUString& rNewToken );
- void SetID( const ::rtl::OUString& rNewToken );
- void SetStreet( const ::rtl::OUString& rNewToken );
- void SetCity( const ::rtl::OUString& rNewToken );
- void SetState( const ::rtl::OUString& rNewToken );
- void SetZip( const ::rtl::OUString& rNewToken );
- void SetCountry( const ::rtl::OUString& rNewToken );
- void SetPosition( const ::rtl::OUString& rNewToken );
- void SetTitle( const ::rtl::OUString& rNewToken );
- void SetTelephoneHome( const ::rtl::OUString& rNewToken );
- void SetTelephoneWork( const ::rtl::OUString& rNewToken );
- void SetFax( const ::rtl::OUString& rNewToken );
- void SetEmail( const ::rtl::OUString& rNewToken );
- void SetCustomerNumber( const ::rtl::OUString& rNewToken );
+ void SetCompany( const ::rtl::OUString& rNewToken );
+ void SetFirstName( const ::rtl::OUString& rNewToken );
+ void SetLastName( const ::rtl::OUString& rNewToken );
+ void SetID( const ::rtl::OUString& rNewToken );
+ void SetStreet( const ::rtl::OUString& rNewToken );
+ void SetCity( const ::rtl::OUString& rNewToken );
+ void SetState( const ::rtl::OUString& rNewToken );
+ void SetZip( const ::rtl::OUString& rNewToken );
+ void SetCountry( const ::rtl::OUString& rNewToken );
+ void SetPosition( const ::rtl::OUString& rNewToken );
+ void SetTitle( const ::rtl::OUString& rNewToken );
+ void SetTelephoneHome( const ::rtl::OUString& rNewToken );
+ void SetTelephoneWork( const ::rtl::OUString& rNewToken );
+ void SetFax( const ::rtl::OUString& rNewToken );
+ void SetEmail( const ::rtl::OUString& rNewToken );
+ void SetCustomerNumber( const ::rtl::OUString& rNewToken );
void SetFathersName( const ::rtl::OUString& rNewToken );
void SetApartment( const ::rtl::OUString& rNewToken );
- sal_Bool IsTokenReadonly( USHORT nToken ) const;
+ sal_Bool IsTokenReadonly( USHORT nToken ) const;
::rtl::OUString GetToken(USHORT nToken) const;
void Notify();
@@ -141,10 +141,10 @@ private:
// global ----------------------------------------------------------------
-static SvtUserOptions_Impl* pOptions = NULL;
-static sal_Int32 nRefCount = 0;
+static SvtUserOptions_Impl* pOptions = NULL;
+static sal_Int32 nRefCount = 0;
-#define READONLY_DEFAULT sal_False
+#define READONLY_DEFAULT sal_False
/*-- 16.06.2009 14:22:56---------------------------------------------------
@@ -951,7 +951,7 @@ SvtUserOptions::~SvtUserOptions()
if ( !--nRefCount )
{
//if ( pOptions->IsModified() )
- // pOptions->Commit();
+ // pOptions->Commit();
DELETEZ( pOptions );
}
}
diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx
index f3b93da38189..57ac2407eae9 100644
--- a/unotools/source/config/viewoptions.cxx
+++ b/unotools/source/config/viewoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_unotools.hxx"
//_________________________________________________________________________________________________________________
-// includes
+// includes
//_________________________________________________________________________________________________________________
#include <unotools/viewoptions.hxx>
@@ -48,13 +48,13 @@
#include <itemholder1.hxx>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
namespace css = ::com::sun::star;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
#ifdef CONST_ASCII
@@ -108,7 +108,7 @@ namespace css = ::com::sun::star;
}
//_________________________________________________________________________________________________________________
-// initialization!
+// initialization!
//_________________________________________________________________________________________________________________
SvtViewOptionsBase_Impl* SvtViewOptions::m_pDataContainer_Dialogs = NULL ;
@@ -121,7 +121,7 @@ SvtViewOptionsBase_Impl* SvtViewOptions::m_pDataContainer_Windows = NUL
sal_Int32 SvtViewOptions::m_nRefCount_Windows = 0 ;
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
/*-************************************************************************************************************//**
@@ -798,16 +798,16 @@ css::uno::Reference< css::uno::XInterface > SvtViewOptionsBase_Impl::impl_getSet
}
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtViewOptions::SvtViewOptions( EViewType eType ,
const ::rtl::OUString& sViewName )
- : m_eViewType ( eType )
- , m_sViewName ( sViewName )
+ : m_eViewType ( eType )
+ , m_sViewName ( sViewName )
{
// Global access, must be guarded (multithreading!)
::osl::MutexGuard aGuard( GetOwnStaticMutex() );
@@ -815,7 +815,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
// Search for right dat container for this view type and initialize right data container or set right ref count!
switch( eType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
// Increase ref count for dialog data container first.
++m_nRefCount_Dialogs;
// If these instance the first user of the dialog data container - create these impl static container!
@@ -827,7 +827,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
}
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
// Increase ref count for tab-dialog data container first.
++m_nRefCount_TabDialogs;
// If these instance the first user of the tab-dialog data container - create these impl static container!
@@ -838,7 +838,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
}
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
// Increase ref count for tab-page data container first.
++m_nRefCount_TabPages;
// If these instance the first user of the tab-page data container - create these impl static container!
@@ -849,7 +849,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
}
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
// Increase ref count for window data container first.
++m_nRefCount_Windows;
// If these instance the first user of the window data container - create these impl static container!
@@ -865,7 +865,7 @@ SvtViewOptions::SvtViewOptions( EViewType eType ,
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtViewOptions::~SvtViewOptions()
{
@@ -875,7 +875,7 @@ SvtViewOptions::~SvtViewOptions()
// Search for right dat container for this view type and deinitialize right data container or set right ref count!
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
// Decrease ref count for dialog data container first.
--m_nRefCount_Dialogs;
// If these instance the last user of the dialog data container - delete these impl static container!
@@ -886,7 +886,7 @@ SvtViewOptions::~SvtViewOptions()
}
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
// Decrease ref count for tab-dialog data container first.
--m_nRefCount_TabDialogs;
// If these instance the last user of the tab-dialog data container - delete these impl static container!
@@ -897,7 +897,7 @@ SvtViewOptions::~SvtViewOptions()
}
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
// Decrease ref count for tab-page data container first.
--m_nRefCount_TabPages;
// If these instance the last user of the tab-page data container - delete these impl static container!
@@ -908,7 +908,7 @@ SvtViewOptions::~SvtViewOptions()
}
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
// Decrease ref count for window data container first.
--m_nRefCount_Windows;
// If these instance the last user of the window data container - delete these impl static container!
@@ -923,7 +923,7 @@ SvtViewOptions::~SvtViewOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtViewOptions::Exists() const
{
@@ -933,19 +933,19 @@ sal_Bool SvtViewOptions::Exists() const
sal_Bool bExists = sal_False;
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
bExists = m_pDataContainer_Dialogs->Exists( m_sViewName );
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
bExists = m_pDataContainer_TabDialogs->Exists( m_sViewName );
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
bExists = m_pDataContainer_TabPages->Exists( m_sViewName );
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
bExists = m_pDataContainer_Windows->Exists( m_sViewName );
}
break;
@@ -954,7 +954,7 @@ sal_Bool SvtViewOptions::Exists() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtViewOptions::Delete()
{
@@ -964,19 +964,19 @@ sal_Bool SvtViewOptions::Delete()
sal_Bool bState = sal_False;
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
bState = m_pDataContainer_Dialogs->Delete( m_sViewName );
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
bState = m_pDataContainer_TabDialogs->Delete( m_sViewName );
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
bState = m_pDataContainer_TabPages->Delete( m_sViewName );
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
bState = m_pDataContainer_Windows->Delete( m_sViewName );
}
break;
@@ -985,7 +985,7 @@ sal_Bool SvtViewOptions::Delete()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
::rtl::OUString SvtViewOptions::GetWindowState() const
{
@@ -995,19 +995,19 @@ sal_Bool SvtViewOptions::Delete()
::rtl::OUString sState;
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
sState = m_pDataContainer_Dialogs->GetWindowState( m_sViewName );
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
sState = m_pDataContainer_TabDialogs->GetWindowState( m_sViewName );
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
sState = m_pDataContainer_TabPages->GetWindowState( m_sViewName );
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
sState = m_pDataContainer_Windows->GetWindowState( m_sViewName );
}
break;
@@ -1016,7 +1016,7 @@ sal_Bool SvtViewOptions::Delete()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtViewOptions::SetWindowState( const ::rtl::OUString& sState )
{
@@ -1025,19 +1025,19 @@ void SvtViewOptions::SetWindowState( const ::rtl::OUString& sState )
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
m_pDataContainer_Dialogs->SetWindowState( m_sViewName, sState );
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
m_pDataContainer_TabDialogs->SetWindowState( m_sViewName, sState );
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
m_pDataContainer_TabPages->SetWindowState( m_sViewName, sState );
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
m_pDataContainer_Windows->SetWindowState( m_sViewName, sState );
}
break;
@@ -1045,7 +1045,7 @@ void SvtViewOptions::SetWindowState( const ::rtl::OUString& sState )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Int32 SvtViewOptions::GetPageID() const
{
@@ -1063,7 +1063,7 @@ sal_Int32 SvtViewOptions::GetPageID() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtViewOptions::SetPageID( sal_Int32 nID )
{
@@ -1079,7 +1079,7 @@ void SvtViewOptions::SetPageID( sal_Int32 nID )
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
sal_Bool SvtViewOptions::IsVisible() const
{
@@ -1098,7 +1098,7 @@ sal_Bool SvtViewOptions::IsVisible() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtViewOptions::SetVisible( sal_Bool bState )
{
@@ -1122,19 +1122,19 @@ css::uno::Sequence< css::beans::NamedValue > SvtViewOptions::GetUserData() const
css::uno::Sequence< css::beans::NamedValue > lData;
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
lData = m_pDataContainer_Dialogs->GetUserData( m_sViewName );
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
lData = m_pDataContainer_TabDialogs->GetUserData( m_sViewName );
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
lData = m_pDataContainer_TabPages->GetUserData( m_sViewName );
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
lData = m_pDataContainer_Windows->GetUserData( m_sViewName );
}
break;
@@ -1150,19 +1150,19 @@ void SvtViewOptions::SetUserData( const css::uno::Sequence< css::beans::NamedVal
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
m_pDataContainer_Dialogs->SetUserData( m_sViewName, lData );
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
m_pDataContainer_TabDialogs->SetUserData( m_sViewName, lData );
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
m_pDataContainer_TabPages->SetUserData( m_sViewName, lData );
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
m_pDataContainer_Windows->SetUserData( m_sViewName, lData );
}
break;
@@ -1178,19 +1178,19 @@ css::uno::Any SvtViewOptions::GetUserItem( const ::rtl::OUString& sName ) const
css::uno::Any aItem;
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
aItem = m_pDataContainer_Dialogs->GetUserItem( m_sViewName, sName );
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
aItem = m_pDataContainer_TabDialogs->GetUserItem( m_sViewName, sName );
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
aItem = m_pDataContainer_TabPages->GetUserItem( m_sViewName, sName );
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
aItem = m_pDataContainer_Windows->GetUserItem( m_sViewName, sName );
}
break;
@@ -1207,19 +1207,19 @@ void SvtViewOptions::SetUserItem( const ::rtl::OUString& sName ,
switch( m_eViewType )
{
- case E_DIALOG : {
+ case E_DIALOG : {
m_pDataContainer_Dialogs->SetUserItem( m_sViewName, sName, aValue );
}
break;
- case E_TABDIALOG : {
+ case E_TABDIALOG : {
m_pDataContainer_TabDialogs->SetUserItem( m_sViewName, sName, aValue );
}
break;
- case E_TABPAGE : {
+ case E_TABPAGE : {
m_pDataContainer_TabPages->SetUserItem( m_sViewName, sName, aValue );
}
break;
- case E_WINDOW : {
+ case E_WINDOW : {
m_pDataContainer_Windows->SetUserItem( m_sViewName, sName, aValue );
}
break;
@@ -1227,7 +1227,7 @@ void SvtViewOptions::SetUserItem( const ::rtl::OUString& sName ,
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
::osl::Mutex& SvtViewOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/workingsetoptions.cxx b/unotools/source/config/workingsetoptions.cxx
index fd498c7b7556..40940b0198c4 100644
--- a/unotools/source/config/workingsetoptions.cxx
+++ b/unotools/source/config/workingsetoptions.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,147 +39,147 @@
#include <itemholder1.hxx>
//_________________________________________________________________________________________________________________
-// namespaces
+// namespaces
//_________________________________________________________________________________________________________________
-using namespace ::utl ;
-using namespace ::rtl ;
-using namespace ::osl ;
-using namespace ::com::sun::star::uno ;
+using namespace ::utl ;
+using namespace ::rtl ;
+using namespace ::osl ;
+using namespace ::com::sun::star::uno ;
//_________________________________________________________________________________________________________________
-// const
+// const
//_________________________________________________________________________________________________________________
-#define ROOTNODE_WORKINGSET OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/WorkingSet"))
-#define DEFAULT_WINDOWLIST Sequence< OUString >()
+#define ROOTNODE_WORKINGSET OUString(RTL_CONSTASCII_USTRINGPARAM("Office.Common/WorkingSet"))
+#define DEFAULT_WINDOWLIST Sequence< OUString >()
-#define PROPERTYNAME_WINDOWLIST OUString(RTL_CONSTASCII_USTRINGPARAM("WindowList" ))
+#define PROPERTYNAME_WINDOWLIST OUString(RTL_CONSTASCII_USTRINGPARAM("WindowList" ))
-#define PROPERTYHANDLE_WINDOWLIST 0
+#define PROPERTYHANDLE_WINDOWLIST 0
-#define PROPERTYCOUNT 1
+#define PROPERTYCOUNT 1
//_________________________________________________________________________________________________________________
-// private declarations!
+// private declarations!
//_________________________________________________________________________________________________________________
class SvtWorkingSetOptions_Impl : public ConfigItem
{
//-------------------------------------------------------------------------------------------------------------
- // public methods
+ // public methods
//-------------------------------------------------------------------------------------------------------------
public:
//---------------------------------------------------------------------------------------------------------
- // constructor / destructor
+ // constructor / destructor
//---------------------------------------------------------------------------------------------------------
SvtWorkingSetOptions_Impl();
~SvtWorkingSetOptions_Impl();
//---------------------------------------------------------------------------------------------------------
- // overloaded methods of baseclass
+ // overloaded methods of baseclass
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short called for notify of configmanager
- @descr These method is called from the ConfigManager before application ends or from the
+ @short called for notify of configmanager
+ @descr These method is called from the ConfigManager before application ends or from the
PropertyChangeListener if the sub tree broadcasts changes. You must update your
internal values.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param "seqPropertyNames" is the list of properties which should be updated.
- @return -
+ @param "seqPropertyNames" is the list of properties which should be updated.
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Notify( const Sequence< OUString >& seqPropertyNames );
/*-****************************************************************************************************//**
- @short write changes to configuration
- @descr These method writes the changed values into the sub tree
+ @short write changes to configuration
+ @descr These method writes the changed values into the sub tree
and should always called in our destructor to guarantee consistency of config data.
- @seealso baseclass ConfigItem
+ @seealso baseclass ConfigItem
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
virtual void Commit();
//---------------------------------------------------------------------------------------------------------
- // public interface
+ // public interface
//---------------------------------------------------------------------------------------------------------
/*-****************************************************************************************************//**
- @short access method to get internal values
- @descr These method give us a chance to regulate acces to ouer internal values.
+ @short access method to get internal values
+ @descr These method give us a chance to regulate acces to ouer internal values.
It's not used in the moment - but it's possible for the feature!
- @seealso -
+ @seealso -
- @param -
- @return -
+ @param -
+ @return -
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
- Sequence< OUString > GetWindowList( ) const ;
- void SetWindowList( const Sequence< OUString >& seqWindowList ) ;
+ Sequence< OUString > GetWindowList( ) const ;
+ void SetWindowList( const Sequence< OUString >& seqWindowList ) ;
//-------------------------------------------------------------------------------------------------------------
- // private methods
+ // private methods
//-------------------------------------------------------------------------------------------------------------
private:
/*-****************************************************************************************************//**
- @short return list of key names of ouer configuration management which represent oue module tree
- @descr These methods return a static const list of key names. We need it to get needed values from our
+ @short return list of key names of ouer configuration management which represent oue module tree
+ @descr These methods return a static const list of key names. We need it to get needed values from our
configuration management.
- @seealso -
+ @seealso -
- @param -
- @return A list of needed configuration keys is returned.
+ @param -
+ @return A list of needed configuration keys is returned.
- @onerror -
+ @onerror -
*//*-*****************************************************************************************************/
static Sequence< OUString > GetPropertyNames();
//-------------------------------------------------------------------------------------------------------------
- // private member
+ // private member
//-------------------------------------------------------------------------------------------------------------
private:
- Sequence< OUString > m_seqWindowList ;
+ Sequence< OUString > m_seqWindowList ;
};
//_________________________________________________________________________________________________________________
-// definitions
+// definitions
//_________________________________________________________________________________________________________________
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtWorkingSetOptions_Impl::SvtWorkingSetOptions_Impl()
// Init baseclasses first
- : ConfigItem ( ROOTNODE_WORKINGSET )
+ : ConfigItem ( ROOTNODE_WORKINGSET )
// Init member then.
- , m_seqWindowList ( DEFAULT_WINDOWLIST )
+ , m_seqWindowList ( DEFAULT_WINDOWLIST )
{
// Use our static list of configuration keys to get his values.
- Sequence< OUString > seqNames = GetPropertyNames ( );
- Sequence< Any > seqValues = GetProperties ( seqNames );
+ Sequence< OUString > seqNames = GetPropertyNames ( );
+ Sequence< Any > seqValues = GetProperties ( seqNames );
// Safe impossible cases.
// We need values from ALL configuration keys.
@@ -195,7 +195,7 @@ SvtWorkingSetOptions_Impl::SvtWorkingSetOptions_Impl()
DBG_ASSERT( !(seqValues[nProperty].hasValue()==sal_False), "SvtWorkingSetOptions_Impl::SvtWorkingSetOptions_Impl()\nInvalid property value detected!\n" );
switch( nProperty )
{
- case PROPERTYHANDLE_WINDOWLIST : {
+ case PROPERTYHANDLE_WINDOWLIST : {
DBG_ASSERT(!(seqValues[nProperty].getValueTypeClass()!=TypeClass_SEQUENCE), "SvtWorkingSetOptions_Impl::SvtWorkingSetOptions_Impl()\nWho has changed the value type of \"Office.Common\\WorkingSet\\WindowList\"?" );
seqValues[nProperty] >>= m_seqWindowList;
}
@@ -209,7 +209,7 @@ SvtWorkingSetOptions_Impl::SvtWorkingSetOptions_Impl()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtWorkingSetOptions_Impl::~SvtWorkingSetOptions_Impl()
{
@@ -221,7 +221,7 @@ SvtWorkingSetOptions_Impl::~SvtWorkingSetOptions_Impl()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtWorkingSetOptions_Impl::Notify( const Sequence< OUString >& seqPropertyNames )
{
@@ -246,19 +246,19 @@ void SvtWorkingSetOptions_Impl::Notify( const Sequence< OUString >& seqPropertyN
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtWorkingSetOptions_Impl::Commit()
{
// Get names of supported properties, create a list for values and copy current values to it.
- Sequence< OUString > seqNames = GetPropertyNames ();
- sal_Int32 nCount = seqNames.getLength();
- Sequence< Any > seqValues ( nCount );
+ Sequence< OUString > seqNames = GetPropertyNames ();
+ sal_Int32 nCount = seqNames.getLength();
+ Sequence< Any > seqValues ( nCount );
for( sal_Int32 nProperty=0; nProperty<nCount; ++nProperty )
{
switch( nProperty )
{
- case PROPERTYHANDLE_WINDOWLIST : {
+ case PROPERTYHANDLE_WINDOWLIST : {
seqValues[nProperty] <<= m_seqWindowList;
}
break;
@@ -269,7 +269,7 @@ void SvtWorkingSetOptions_Impl::Commit()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< OUString > SvtWorkingSetOptions_Impl::GetWindowList() const
{
@@ -277,7 +277,7 @@ Sequence< OUString > SvtWorkingSetOptions_Impl::GetWindowList() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtWorkingSetOptions_Impl::SetWindowList( const Sequence< OUString >& seqWindowList )
{
@@ -286,14 +286,14 @@ void SvtWorkingSetOptions_Impl::SetWindowList( const Sequence< OUString >& seqWi
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Sequence< OUString > SvtWorkingSetOptions_Impl::GetPropertyNames()
{
// Build static list of configuration key names.
static const OUString pProperties[] =
{
- PROPERTYNAME_WINDOWLIST ,
+ PROPERTYNAME_WINDOWLIST ,
};
// Initialize return sequence with these list ...
static const Sequence< OUString > seqPropertyNames( pProperties, PROPERTYCOUNT );
@@ -302,15 +302,15 @@ Sequence< OUString > SvtWorkingSetOptions_Impl::GetPropertyNames()
}
//*****************************************************************************************************************
-// initialize static member
-// DON'T DO IT IN YOUR HEADER!
-// see definition for further informations
+// initialize static member
+// DON'T DO IT IN YOUR HEADER!
+// see definition for further informations
//*****************************************************************************************************************
-SvtWorkingSetOptions_Impl* SvtWorkingSetOptions::m_pDataContainer = NULL ;
-sal_Int32 SvtWorkingSetOptions::m_nRefCount = 0 ;
+SvtWorkingSetOptions_Impl* SvtWorkingSetOptions::m_pDataContainer = NULL ;
+sal_Int32 SvtWorkingSetOptions::m_nRefCount = 0 ;
//*****************************************************************************************************************
-// constructor
+// constructor
//*****************************************************************************************************************
SvtWorkingSetOptions::SvtWorkingSetOptions()
{
@@ -327,7 +327,7 @@ SvtWorkingSetOptions::SvtWorkingSetOptions()
}
//*****************************************************************************************************************
-// destructor
+// destructor
//*****************************************************************************************************************
SvtWorkingSetOptions::~SvtWorkingSetOptions()
{
@@ -345,7 +345,7 @@ SvtWorkingSetOptions::~SvtWorkingSetOptions()
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
Sequence< OUString > SvtWorkingSetOptions::GetWindowList() const
{
@@ -354,7 +354,7 @@ Sequence< OUString > SvtWorkingSetOptions::GetWindowList() const
}
//*****************************************************************************************************************
-// public method
+// public method
//*****************************************************************************************************************
void SvtWorkingSetOptions::SetWindowList( const Sequence< OUString >& seqWindowList )
{
@@ -363,7 +363,7 @@ void SvtWorkingSetOptions::SetWindowList( const Sequence< OUString >& seqWindowL
}
//*****************************************************************************************************************
-// private method
+// private method
//*****************************************************************************************************************
Mutex& SvtWorkingSetOptions::GetOwnStaticMutex()
{
diff --git a/unotools/source/config/xmlaccelcfg.cxx b/unotools/source/config/xmlaccelcfg.cxx
index bd8f14c0373a..af902c0cbdb4 100644
--- a/unotools/source/config/xmlaccelcfg.cxx
+++ b/unotools/source/config/xmlaccelcfg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,14 +39,14 @@ using namespace rtl;
using namespace com::sun::star::uno;
using namespace com::sun::star::xml::sax;
-#define ELEMENT_ACCELERATORLIST "acceleratorlist"
-#define ELEMENT_ACCELERATORITEM "item"
+#define ELEMENT_ACCELERATORLIST "acceleratorlist"
+#define ELEMENT_ACCELERATORITEM "item"
-#define ATTRIBUTE_KEYCODE "code"
-#define ATTRIBUTE_MODIFIER "modifier"
-#define ATTRIBUTE_URL "url"
+#define ATTRIBUTE_KEYCODE "code"
+#define ATTRIBUTE_MODIFIER "modifier"
+#define ATTRIBUTE_URL "url"
-#define ATTRIBUTE_TYPE_CDATA "CDATA"
+#define ATTRIBUTE_TYPE_CDATA "CDATA"
// ------------------------------------------------------------------
@@ -81,9 +81,9 @@ struct TagAttribute
TagAttribute(){}
TagAttribute( const OUString &aName, const OUString &aType , const OUString &aValue )
{
- sName = aName;
- sType = aType;
- sValue = aValue;
+ sName = aName;
+ sType = aType;
+ sValue = aValue;
}
OUString sName;
@@ -180,7 +180,7 @@ AttributeListImpl::~AttributeListImpl()
}
-void AttributeListImpl::addAttribute( const OUString &sName ,
+void AttributeListImpl::addAttribute( const OUString &sName ,
const OUString &sType ,
const OUString &sValue )
{
@@ -220,7 +220,7 @@ throw( SAXException, RuntimeException )
void SAL_CALL OReadAccelatorDocumentHandler::setDocumentLocator(
const Reference< XLocator > &xLocator)
-throw( SAXException, RuntimeException )
+throw( SAXException, RuntimeException )
{
m_xLocator = xLocator;
}
@@ -315,7 +315,7 @@ throw( SAXException, RuntimeException )
void SAL_CALL OReadAccelatorDocumentHandler::characters(const rtl::OUString&)
-throw( SAXException, RuntimeException )
+throw( SAXException, RuntimeException )
{
}
diff --git a/unotools/source/i18n/calendarwrapper.cxx b/unotools/source/i18n/calendarwrapper.cxx
index add5d6733938..da520b9dc9e5 100644
--- a/unotools/source/i18n/calendarwrapper.cxx
+++ b/unotools/source/i18n/calendarwrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,7 +77,7 @@ CalendarWrapper::CalendarWrapper(
}
}
else
- { // try to get an instance somehow
+ { // try to get an instance somehow
DBG_ERRORFILE( "CalendarWrapper: no service manager, trying own" );
try
{
diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx
index 5c024bcc1c92..647c3633f331 100644
--- a/unotools/source/i18n/charclass.cxx
+++ b/unotools/source/i18n/charclass.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,7 +67,7 @@ CharClass::CharClass(
}
}
else
- { // try to get an instance somehow
+ { // try to get an instance somehow
getComponentInstance();
}
}
@@ -289,7 +289,7 @@ sal_Bool CharClass::isNumeric( const String& rStr ) const
}
-sal_Bool CharClass::isAlphaNumeric( const String& rStr, xub_StrLen nPos ) const
+sal_Bool CharClass::isAlphaNumeric( const String& rStr, xub_StrLen nPos ) const
{
sal_Unicode c = rStr.GetChar( nPos );
if ( c < 128 )
diff --git a/unotools/source/i18n/collatorwrapper.cxx b/unotools/source/i18n/collatorwrapper.cxx
index 58f0b1764914..ea0d49bc8047 100644
--- a/unotools/source/i18n/collatorwrapper.cxx
+++ b/unotools/source/i18n/collatorwrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/i18n/intlwrapper.cxx b/unotools/source/i18n/intlwrapper.cxx
index ccf039c7f63d..7b2ded5b6341 100644
--- a/unotools/source/i18n/intlwrapper.cxx
+++ b/unotools/source/i18n/intlwrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx
index 212454c8bde0..0888fa876675 100644
--- a/unotools/source/i18n/localedatawrapper.cxx
+++ b/unotools/source/i18n/localedatawrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,7 +109,7 @@ LocaleDataWrapper::LocaleDataWrapper(
}
}
else
- { // try to get an instance somehow
+ { // try to get an instance somehow
DBG_ERRORFILE( "LocaleDataWrapper: no service manager, trying own" );
try
{
@@ -464,7 +464,7 @@ void LocaleDataWrapper::invalidateData()
// In checks, exclude known problems because no MS-LCID defined.
if (areChecksEnabled() && eLang == LANGUAGE_DONTKNOW
-// && !aDebugLocale.EqualsAscii( "br_AE" ) // ?!? Breton in United Arabic Emirates
+// && !aDebugLocale.EqualsAscii( "br_AE" ) // ?!? Breton in United Arabic Emirates
)
{
String aMsg( RTL_CONSTASCII_USTRINGPARAM(
@@ -489,10 +489,10 @@ void LocaleDataWrapper::invalidateData()
// In checks, exclude known problems because no MS-LCID defined
// and default for Language found.
if ( areChecksEnabled()
- && !aDebugLocale.EqualsAscii( "ar_SD" ) // Sudan/ar
- && !aDebugLocale.EqualsAscii( "en_CB" ) // Carribean is not a country
-// && !aDebugLocale.EqualsAscii( "en_BG" ) // ?!? Bulgaria/en
-// && !aDebugLocale.EqualsAscii( "es_BR" ) // ?!? Brazil/es
+ && !aDebugLocale.EqualsAscii( "ar_SD" ) // Sudan/ar
+ && !aDebugLocale.EqualsAscii( "en_CB" ) // Carribean is not a country
+// && !aDebugLocale.EqualsAscii( "en_BG" ) // ?!? Bulgaria/en
+// && !aDebugLocale.EqualsAscii( "es_BR" ) // ?!? Brazil/es
)
{
String aMsg( RTL_CONSTASCII_USTRINGPARAM(
@@ -531,7 +531,7 @@ const String& LocaleDataWrapper::getOneLocaleItem( sal_Int16 nItem ) const
return aLocaleItem[0];
}
if ( aLocaleItem[nItem].Len() == 0 )
- { // no cached content
+ { // no cached content
aGuard.changeReadToWrite();
((LocaleDataWrapper*)this)->getOneLocaleItemImpl( nItem );
}
@@ -627,7 +627,7 @@ const String& LocaleDataWrapper::getOneReservedWord( sal_Int16 nWord ) const
nWord = reservedWords::FALSE_WORD;
}
if ( aReservedWord[nWord].Len() == 0 )
- { // no cached content
+ { // no cached content
aGuard.changeReadToWrite();
((LocaleDataWrapper*)this)->getOneReservedWordImpl( nWord );
}
@@ -673,7 +673,7 @@ const ::boost::shared_ptr< ::com::sun::star::i18n::Calendar > LocaleDataWrapper:
{
::utl::ReadWriteGuard aGuard( aMutex );
if (!xDefaultCalendar)
- { // no cached content
+ { // no cached content
aGuard.changeReadToWrite();
((LocaleDataWrapper*)this)->getDefaultCalendarImpl();
}
@@ -857,7 +857,7 @@ void LocaleDataWrapper::scanCurrFormatImpl( const String& rCode,
break;
default:
if ( !nInSection && nSym == STRING_NOTFOUND && rCode.Equals( aCurrSymbol, (xub_StrLen)(p-pStr), aCurrSymbol.Len() ) )
- { // currency symbol not surrounded by [$...]
+ { // currency symbol not surrounded by [$...]
nSym = (xub_StrLen)(p - pStr);
if ( nBlank == STRING_NOTFOUND && pStr < p && *(p-1) == ' ' )
nBlank = (xub_StrLen)(p - pStr - 1);
@@ -879,7 +879,7 @@ void LocaleDataWrapper::getCurrFormatsImpl()
= aNumberFormatCode.getAllFormatCode( KNumberFormatUsage::CURRENCY );
sal_Int32 nCnt = aFormatSeq.getLength();
if ( !nCnt )
- { // bad luck
+ { // bad luck
if (areChecksEnabled())
{
String aMsg( RTL_CONSTASCII_USTRINGPARAM(
@@ -938,16 +938,16 @@ void LocaleDataWrapper::getCurrFormatsImpl()
if ( nBlank == STRING_NOTFOUND )
{
if ( nSym < nNum )
- nCurrPositiveFormat = 0; // $1
+ nCurrPositiveFormat = 0; // $1
else
- nCurrPositiveFormat = 1; // 1$
+ nCurrPositiveFormat = 1; // 1$
}
else
{
if ( nSym < nNum )
- nCurrPositiveFormat = 2; // $ 1
+ nCurrPositiveFormat = 2; // $ 1
else
- nCurrPositiveFormat = 3; // 1 $
+ nCurrPositiveFormat = 3; // 1 $
}
// negative format
@@ -971,24 +971,24 @@ void LocaleDataWrapper::getCurrFormatsImpl()
if ( nSym < nNum )
{
if ( nPar < nSym )
- nCurrNegativeFormat = 0; // ($1)
+ nCurrNegativeFormat = 0; // ($1)
else if ( nSign < nSym )
- nCurrNegativeFormat = 1; // -$1
+ nCurrNegativeFormat = 1; // -$1
else if ( nNum < nSign )
- nCurrNegativeFormat = 3; // $1-
+ nCurrNegativeFormat = 3; // $1-
else
- nCurrNegativeFormat = 2; // $-1
+ nCurrNegativeFormat = 2; // $-1
}
else
{
if ( nPar < nNum )
- nCurrNegativeFormat = 4; // (1$)
+ nCurrNegativeFormat = 4; // (1$)
else if ( nSign < nNum )
- nCurrNegativeFormat = 5; // -1$
+ nCurrNegativeFormat = 5; // -1$
else if ( nSym < nSign )
- nCurrNegativeFormat = 7; // 1$-
+ nCurrNegativeFormat = 7; // 1$-
else
- nCurrNegativeFormat = 6; // 1-$
+ nCurrNegativeFormat = 6; // 1-$
}
}
else
@@ -996,24 +996,24 @@ void LocaleDataWrapper::getCurrFormatsImpl()
if ( nSym < nNum )
{
if ( nPar < nSym )
- nCurrNegativeFormat = 14; // ($ 1)
+ nCurrNegativeFormat = 14; // ($ 1)
else if ( nSign < nSym )
- nCurrNegativeFormat = 9; // -$ 1
+ nCurrNegativeFormat = 9; // -$ 1
else if ( nNum < nSign )
- nCurrNegativeFormat = 12; // $ 1-
+ nCurrNegativeFormat = 12; // $ 1-
else
- nCurrNegativeFormat = 11; // $ -1
+ nCurrNegativeFormat = 11; // $ -1
}
else
{
if ( nPar < nNum )
- nCurrNegativeFormat = 15; // (1 $)
+ nCurrNegativeFormat = 15; // (1 $)
else if ( nSign < nNum )
- nCurrNegativeFormat = 8; // -1 $
+ nCurrNegativeFormat = 8; // -1 $
else if ( nSym < nSign )
- nCurrNegativeFormat = 10; // 1 $-
+ nCurrNegativeFormat = 10; // 1 $-
else
- nCurrNegativeFormat = 13; // 1- $
+ nCurrNegativeFormat = 13; // 1- $
}
}
}
@@ -1058,9 +1058,9 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const String& rCode )
xub_StrLen nMonth = rCode.Search( 'M' );
xub_StrLen nYear = rCode.Search( 'Y' );
if ( nDay == STRING_NOTFOUND || nMonth == STRING_NOTFOUND || nYear == STRING_NOTFOUND )
- { // This algorithm assumes that all three parts (DMY) are present
+ { // This algorithm assumes that all three parts (DMY) are present
if ( nMonth == STRING_NOTFOUND )
- { // only Finnish has something else than 'M' for month
+ { // only Finnish has something else than 'M' for month
nMonth = rCode.Search( 'K' );
if ( nMonth != STRING_NOTFOUND )
{
@@ -1069,30 +1069,30 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const String& rCode )
}
}
else if ( nDay == STRING_NOTFOUND )
- { // We have a month 'M' if we reach this branch.
+ { // We have a month 'M' if we reach this branch.
// Possible languages containing 'M' but no 'D':
// German, French, Italian
- nDay = rCode.Search( 'T' ); // German
+ nDay = rCode.Search( 'T' ); // German
if ( nDay != STRING_NOTFOUND )
nYear = rCode.Search( 'J' );
else
{
- nYear = rCode.Search( 'A' ); // French, Italian
+ nYear = rCode.Search( 'A' ); // French, Italian
if ( nYear != STRING_NOTFOUND )
{
- nDay = rCode.Search( 'J' ); // French
+ nDay = rCode.Search( 'J' ); // French
if ( nDay == STRING_NOTFOUND )
- nDay = rCode.Search( 'G' ); // Italian
+ nDay = rCode.Search( 'G' ); // Italian
}
}
}
else
- { // We have a month 'M' and a day 'D'.
+ { // We have a month 'M' and a day 'D'.
// Possible languages containing 'D' and 'M' but not 'Y':
// Spanish, Dutch
- nYear = rCode.Search( 'A' ); // Spanish
+ nYear = rCode.Search( 'A' ); // Spanish
if ( nYear == STRING_NOTFOUND )
- nYear = rCode.Search( 'J' ); // Dutch
+ nYear = rCode.Search( 'J' ); // Dutch
}
if ( nDay == STRING_NOTFOUND || nMonth == STRING_NOTFOUND || nYear == STRING_NOTFOUND )
{
@@ -1112,7 +1112,7 @@ DateFormat LocaleDataWrapper::scanDateFormatImpl( const String& rCode )
}
// compare with <= because each position may equal rCode.Len()
if ( nDay <= nMonth && nMonth <= nYear )
- return DMY; // also if every position equals rCode.Len()
+ return DMY; // also if every position equals rCode.Len()
else if ( nMonth <= nDay && nDay <= nYear )
return MDY;
else if ( nYear <= nMonth && nMonth <= nDay )
@@ -1137,7 +1137,7 @@ void LocaleDataWrapper::getDateFormatsImpl()
= aNumberFormatCode.getAllFormatCode( KNumberFormatUsage::DATE );
sal_Int32 nCnt = aFormatSeq.getLength();
if ( !nCnt )
- { // bad luck
+ { // bad luck
if (areChecksEnabled())
{
String aMsg( RTL_CONSTASCII_USTRINGPARAM(
@@ -1261,7 +1261,7 @@ const ::com::sun::star::uno::Sequence< sal_Int32 > LocaleDataWrapper::getDigitGr
{
::utl::ReadWriteGuard aGuard( aMutex );
if (!aGrouping.getLength() || aGrouping[0] == 0)
- { // no cached content
+ { // no cached content
aGuard.changeReadToWrite();
((LocaleDataWrapper*)this)->getDigitGroupingImpl();
}
@@ -1398,9 +1398,9 @@ sal_Unicode* LocaleDataWrapper::ImplAddFormatNum( sal_Unicode* pBuf,
{
sal_Unicode aNumBuf[64];
sal_Unicode* pNumBuf;
- USHORT nNumLen;
- USHORT i = 0;
- BOOL bNeg;
+ USHORT nNumLen;
+ USHORT i = 0;
+ BOOL bNeg;
// negative number
if ( nNumber < 0 )
@@ -1707,7 +1707,7 @@ String LocaleDataWrapper::getNum( sal_Int64 nNumber, USHORT nDecimals,
BOOL bUseThousandSep, BOOL bTrailingZeros ) const
{
::utl::ReadWriteGuard aGuard( aMutex, ::utl::ReadWriteGuardMode::nBlockCritical );
- sal_Unicode aBuf[128]; // big enough for 64-bit long and crazy grouping
+ sal_Unicode aBuf[128]; // big enough for 64-bit long and crazy grouping
// check if digits and separators will fit into fixed buffer or allocate
size_t nGuess = ImplGetNumberStringLengthGuess( *this, nDecimals );
sal_Unicode* const pBuffer = (nGuess < 118 ? aBuf :
diff --git a/unotools/source/i18n/nativenumberwrapper.cxx b/unotools/source/i18n/nativenumberwrapper.cxx
index 71e74fd0c249..152128c552fa 100644
--- a/unotools/source/i18n/nativenumberwrapper.cxx
+++ b/unotools/source/i18n/nativenumberwrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/i18n/numberformatcodewrapper.cxx b/unotools/source/i18n/numberformatcodewrapper.cxx
index 116c64f9fc70..eb76c1080eb7 100644
--- a/unotools/source/i18n/numberformatcodewrapper.cxx
+++ b/unotools/source/i18n/numberformatcodewrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,7 +67,7 @@ NumberFormatCodeWrapper::NumberFormatCodeWrapper(
}
}
else
- { // try to get an instance somehow
+ { // try to get an instance somehow
DBG_ERRORFILE( "NumberFormatCodeWrapper: no service manager, trying own" );
try
{
diff --git a/unotools/source/i18n/readwritemutexguard.cxx b/unotools/source/i18n/readwritemutexguard.cxx
index c6e17024e6ea..da97a110743e 100644
--- a/unotools/source/i18n/readwritemutexguard.cxx
+++ b/unotools/source/i18n/readwritemutexguard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/i18n/textsearch.cxx b/unotools/source/i18n/textsearch.cxx
index 1c4d2b4b2fd5..80850457aba5 100644
--- a/unotools/source/i18n/textsearch.cxx
+++ b/unotools/source/i18n/textsearch.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -184,7 +184,7 @@ void TextSearch::Init( const SearchParam & rParam,
aSOpt.searchFlag |= SearchFlags::LEV_RELAXED;
break;
-// case SearchParam::SRCH_NORMAL:
+// case SearchParam::SRCH_NORMAL:
default:
aSOpt.algorithmType = SearchAlgorithms_ABSOLUTE;
if( rParam.IsSrchWordOnly() )
@@ -306,7 +306,7 @@ void TextSearch::ReplaceBackReferences( String& rReplaceStr, const String &rStr,
{
USHORT nStart = (USHORT)(rResult.startOffset[0]);
USHORT nLength = (USHORT)(rResult.endOffset[0] - rResult.startOffset[0]);
- rReplaceStr.Erase( nPos, 1 ); // delete ampersand
+ rReplaceStr.Erase( nPos, 1 ); // delete ampersand
// replace by found string
rReplaceStr.Insert( rStr, nStart, nLength, nPos );
// jump over
@@ -330,8 +330,8 @@ void TextSearch::ReplaceBackReferences( String& rReplaceStr, const String &rStr,
case '8':
case '9':
{
- rReplaceStr.Erase( nPos, 2 ); // delete both
- int i = sFndChar - '0'; // index
+ rReplaceStr.Erase( nPos, 2 ); // delete both
+ int i = sFndChar - '0'; // index
if(i < rResult.subRegExpressions)
{
USHORT nSttReg = (USHORT)(rResult.startOffset[i]);
@@ -374,10 +374,10 @@ void TextSearch::ReplaceBackReferences( String& rReplaceStr, const String &rStr,
rReplaceStr.Erase( nPos, 1 );
nPos++;
break;
- case 't':
+ case 't':
rReplaceStr.Erase( nPos, 2 ); // delete both
rReplaceStr.Insert( sTab, nPos ); // insert tabulator
- nPos++; // step over
+ nPos++; // step over
break;
default:
nPos += 2; // ignore both characters
@@ -398,7 +398,7 @@ void TextSearch::ReplaceBackReferences( String& rReplaceStr, const String &rStr,
#endif
// ............................................................................
-} // namespace utl
+} // namespace utl
// ............................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/i18n/transliterationwrapper.cxx b/unotools/source/i18n/transliterationwrapper.cxx
index 82b8492f80ce..557068352764 100644
--- a/unotools/source/i18n/transliterationwrapper.cxx
+++ b/unotools/source/i18n/transliterationwrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ TransliterationWrapper::TransliterationWrapper(
}
}
else
- { // try to get an instance somehow
+ { // try to get an instance somehow
DBG_ERRORFILE( "TransliterationWrapper: no service manager, trying own" );
try
{
@@ -193,7 +193,7 @@ void TransliterationWrapper::loadModuleIfNeeded( sal_uInt16 nLang )
if( !bLoad )
bLoad = needLanguageForTheMode();
}
- if( bLoad )
+ if( bLoad )
loadModuleImpl();
}
}
diff --git a/unotools/source/misc/atom.cxx b/unotools/source/misc/atom.cxx
index f0e73014bf89..7ce38a3d61c6 100644
--- a/unotools/source/misc/atom.cxx
+++ b/unotools/source/misc/atom.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,8 +66,8 @@ void AtomProvider::getAll( ::std::list< ::utl::AtomDescription >& atoms )
::utl::AtomDescription aDesc;
while( it != m_aAtomMap.end() )
{
- aDesc.atom = it->second;
- aDesc.description = it->first;
+ aDesc.atom = it->second;
+ aDesc.description = it->first;
atoms.push_back( aDesc );
++it;
}
@@ -76,7 +76,7 @@ void AtomProvider::getAll( ::std::list< ::utl::AtomDescription >& atoms )
void AtomProvider::getRecent( int atom, ::std::list< ::utl::AtomDescription >& atoms )
{
atoms.clear();
-
+
::std::hash_map< ::rtl::OUString, int, ::rtl::OUStringHash >::const_iterator it = m_aAtomMap.begin();
::utl::AtomDescription aDesc;
@@ -84,8 +84,8 @@ void AtomProvider::getRecent( int atom, ::std::list< ::utl::AtomDescription >& a
{
if( it->second > atom )
{
- aDesc.atom = it->second;
- aDesc.description = it->first;
+ aDesc.atom = it->second;
+ aDesc.description = it->first;
atoms.push_back( aDesc );
}
++it;
@@ -96,7 +96,7 @@ const ::rtl::OUString& AtomProvider::getString( int nAtom ) const
{
static ::rtl::OUString aEmpty;
::std::hash_map< int, ::rtl::OUString, ::std::hash< int > >::const_iterator it = m_aStringMap.find( nAtom );
-
+
return it == m_aStringMap.end() ? aEmpty : it->second;
}
@@ -244,8 +244,8 @@ Sequence< NMSP_UTIL::AtomDescription > AtomServer::getClass( sal_Int32 atomClass
Sequence< NMSP_UTIL::AtomDescription > aRet( atoms.size() );
for( int i = aRet.getLength()-1; i >= 0; i-- )
{
- aRet.getArray()[i].atom = atoms.back().atom;
- aRet.getArray()[i].description = atoms.back().description;
+ aRet.getArray()[i].atom = atoms.back().atom;
+ aRet.getArray()[i].description = atoms.back().description;
atoms.pop_back();
}
@@ -262,8 +262,8 @@ Sequence< NMSP_UTIL::AtomDescription > AtomServer::getRecentAtoms( sal_Int32 ato
Sequence< NMSP_UTIL::AtomDescription > aRet( atoms.size() );
for( int i = aRet.getLength()-1; i >= 0; i-- )
{
- aRet.getArray()[i].atom = atoms.back().atom;
- aRet.getArray()[i].description = atoms.back().description;
+ aRet.getArray()[i].atom = atoms.back().atom;
+ aRet.getArray()[i].description = atoms.back().description;
atoms.pop_back();
}
diff --git a/unotools/source/misc/componentresmodule.cxx b/unotools/source/misc/componentresmodule.cxx
index ea99f394aadf..9f578c44d4d0 100644
--- a/unotools/source/misc/componentresmodule.cxx
+++ b/unotools/source/misc/componentresmodule.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace utl
class OComponentResModuleImpl
{
private:
- ResMgr* m_pRessources;
+ ResMgr* m_pRessources;
bool m_bInitialized;
::rtl::OString m_sResFilePrefix;
@@ -73,7 +73,7 @@ namespace utl
/** retrieves our resource manager
*/
- ResMgr* getResManager();
+ ResMgr* getResManager();
private:
OComponentResModuleImpl(); // never implemented
@@ -89,7 +89,7 @@ namespace utl
}
//--------------------------------------------------------------------
- ResMgr* OComponentResModuleImpl::getResManager()
+ ResMgr* OComponentResModuleImpl::getResManager()
{
if ( !m_pRessources && !m_bInitialized )
{
@@ -97,10 +97,10 @@ namespace utl
ByteString aMgrName = m_sResFilePrefix;
m_pRessources = ResMgr::CreateResMgr( aMgrName.GetBuffer() );
- OSL_ENSURE( m_pRessources,
+ OSL_ENSURE( m_pRessources,
( ByteString( "OModuleImpl::getResManager: could not create the resource manager (file name: " )
- += aMgrName
- += ByteString( ")!" ) ).GetBuffer() );
+ += aMgrName
+ += ByteString( ")!" ) ).GetBuffer() );
m_bInitialized = sal_True;
}
@@ -123,7 +123,7 @@ namespace utl
}
//-------------------------------------------------------------------------
- ResMgr* OComponentResourceModule::getResManager()
+ ResMgr* OComponentResourceModule::getResManager()
{
::osl::MutexGuard aGuard( m_aMutex );
return m_pImpl->getResManager();
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index 428cc05f3cb3..a39253e1d9ab 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ void typeConvert(const starutil::DateTime& _rDateTime, DateTime& _rOut)
}
//-------------------------------------------------------------------------
-sal_Bool operator ==(const starutil::DateTime& _rLeft, const starutil::DateTime& _rRight)
+sal_Bool operator ==(const starutil::DateTime& _rLeft, const starutil::DateTime& _rRight)
{
return ( _rLeft.HundredthSeconds == _rRight.HundredthSeconds) &&
( _rLeft.Seconds == _rRight.Seconds) &&
@@ -100,7 +100,7 @@ sal_Bool operator ==(const starutil::DateTime& _rLeft, const starutil::DateTi
}
//-------------------------------------------------------------------------
-sal_Bool operator ==(const starutil::Date& _rLeft, const starutil::Date& _rRight)
+sal_Bool operator ==(const starutil::Date& _rLeft, const starutil::Date& _rRight)
{
return ( _rLeft.Day == _rRight.Day) &&
( _rLeft.Month == _rRight.Month) &&
@@ -108,7 +108,7 @@ sal_Bool operator ==(const starutil::Date& _rLeft, const starutil::Date& _rRi
}
//-------------------------------------------------------------------------
-sal_Bool operator ==(const starutil::Time& _rLeft, const starutil::Time& _rRight)
+sal_Bool operator ==(const starutil::Time& _rLeft, const starutil::Time& _rRight)
{
return ( _rLeft.HundredthSeconds == _rRight.HundredthSeconds) &&
( _rLeft.Seconds == _rRight.Seconds) &&
@@ -117,7 +117,7 @@ sal_Bool operator ==(const starutil::Time& _rLeft, const starutil::Time& _rRi
}
//.........................................................................
-} // namespace utl
+} // namespace utl
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/misc/desktopterminationobserver.cxx b/unotools/source/misc/desktopterminationobserver.cxx
index 064855a3c4f3..432a9d515e1e 100644
--- a/unotools/source/misc/desktopterminationobserver.cxx
+++ b/unotools/source/misc/desktopterminationobserver.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -145,7 +145,7 @@ namespace utl
throw TerminationVetoException();
}
}
-
+
//--------------------------------------------------------------------
void SAL_CALL OObserverImpl::notifyTermination( const EventObject& /*Event*/ ) throw (RuntimeException)
{
diff --git a/unotools/source/misc/eventlisteneradapter.cxx b/unotools/source/misc/eventlisteneradapter.cxx
index fe555d906347..c2814b9673c6 100644
--- a/unotools/source/misc/eventlisteneradapter.cxx
+++ b/unotools/source/misc/eventlisteneradapter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,17 +47,17 @@ namespace utl
class OEventListenerImpl : public ::cppu::WeakImplHelper1< XEventListener >
{
protected:
- OEventListenerAdapter* m_pAdapter;
- Reference< XEventListener > m_xKeepMeAlive;
+ OEventListenerAdapter* m_pAdapter;
+ Reference< XEventListener > m_xKeepMeAlive;
// imagine an implementation of XComponent which holds it's listeners with a weak reference ...
// would be very bad if we don't hold ourself
- Reference< XComponent > m_xComponent;
+ Reference< XComponent > m_xComponent;
public:
OEventListenerImpl( OEventListenerAdapter* _pAdapter, const Reference< XComponent >& _rxComp );
- void dispose();
- const Reference< XComponent >& getComponent() const { return m_xComponent; }
+ void dispose();
+ const Reference< XComponent >& getComponent() const { return m_xComponent; }
protected:
virtual void SAL_CALL disposing( const EventObject& _rSource ) throw (RuntimeException);
@@ -107,7 +107,7 @@ namespace utl
struct OEventListenerAdapterImpl
{
public:
- ::std::vector< void* > aListeners;
+ ::std::vector< void* > aListeners;
};
//=====================================================================
@@ -152,7 +152,7 @@ namespace utl
//---------------------------------------------------------------------
void OEventListenerAdapter::stopAllComponentListening( )
{
- for ( ::std::vector< void* >::const_iterator aDisposeLoop = m_pImpl->aListeners.begin();
+ for ( ::std::vector< void* >::const_iterator aDisposeLoop = m_pImpl->aListeners.begin();
aDisposeLoop != m_pImpl->aListeners.end();
++aDisposeLoop
)
@@ -179,7 +179,7 @@ namespace utl
}
//.........................................................................
-} // namespace utl
+} // namespace utl
//.........................................................................
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
index 95342a0f896b..fdacb790d24d 100644
--- a/unotools/source/misc/fontcvt.cxx
+++ b/unotools/source/misc/fontcvt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx
index ec8d947add8c..4e0b8120a709 100644
--- a/unotools/source/misc/fontdefs.cxx
+++ b/unotools/source/misc/fontdefs.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/misc/sharedunocomponent.cxx b/unotools/source/misc/sharedunocomponent.cxx
index a921ebae3a58..b47dea7978d6 100644
--- a/unotools/source/misc/sharedunocomponent.cxx
+++ b/unotools/source/misc/sharedunocomponent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,7 +92,7 @@ namespace utl
CloseableComponentImpl( const Reference< XInterface >& _rxComponent );
/** closes the component
-
+
@nofail
*/
void nf_closeComponent();
@@ -195,7 +195,7 @@ namespace utl
DBG_ASSERT( Source.Source == m_xCloseable, "CloseableComponentImpl::queryClosing: where did this come from?" );
throw CloseVetoException();
}
-
+
//--------------------------------------------------------------------
void SAL_CALL CloseableComponentImpl::notifyClosing( const EventObject&
#ifdef DBG_UTIL
diff --git a/unotools/source/misc/syslocale.cxx b/unotools/source/misc/syslocale.cxx
index f5382b2c2074..06294336e6ef 100644
--- a/unotools/source/misc/syslocale.cxx
+++ b/unotools/source/misc/syslocale.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,10 +55,10 @@ public:
CharClass* pCharClass;
SvtSysLocale_Impl();
- virtual ~SvtSysLocale_Impl();
+ virtual ~SvtSysLocale_Impl();
- CharClass* GetCharClass();
- virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 );
+ CharClass* GetCharClass();
+ virtual void ConfigurationChanged( utl::ConfigurationBroadcaster*, sal_uInt32 );
};
// -----------------------------------------------------------------------
@@ -68,7 +68,7 @@ SvtSysLocale_Impl::SvtSysLocale_Impl() : pCharClass(NULL)
pLocaleData = new LocaleDataWrapper( ::comphelper::getProcessServiceFactory(), aSysLocaleOptions.GetRealLocale() );
// listen for further changes
- aSysLocaleOptions.AddListener( this );
+ aSysLocaleOptions.AddListener( this );
}
@@ -194,7 +194,7 @@ rtl_TextEncoding SvtSysLocale::GetBestMimeEncoding()
const sal_Char* pCharSet = rtl_getBestMimeCharsetFromTextEncoding(
gsl_getSystemTextEncoding() );
if ( !pCharSet )
- {
+ {
// If the system locale is unknown to us, e.g. LC_ALL=xx, match the UI
// language if possible.
::com::sun::star::lang::Locale aLocale( SvtSysLocale().GetUILocale() );
diff --git a/unotools/source/processfactory/componentfactory.cxx b/unotools/source/processfactory/componentfactory.cxx
index eea66491fe0b..6fecdfe2cd3c 100644
--- a/unotools/source/processfactory/componentfactory.cxx
+++ b/unotools/source/processfactory/componentfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -182,6 +182,6 @@ Reference< XSingleServiceFactory > loadLibComponentFactory(
return xRet;
}
-} // namespace utl
+} // namespace utl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/source/processfactory/processfactory.cxx b/unotools/source/processfactory/processfactory.cxx
index e514c01bf324..1cd3ee183657 100644
--- a/unotools/source/processfactory/processfactory.cxx
+++ b/unotools/source/processfactory/processfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,12 +44,12 @@ namespace utl
void setProcessServiceFactory(const Reference< XMultiServiceFactory >& xSMgr)
{
::comphelper::setProcessServiceFactory(xSMgr);
- }
+ }
Reference< XMultiServiceFactory > getProcessServiceFactory()
{
return ::comphelper::getProcessServiceFactory();
- }
+ }
} // namesapce utl
diff --git a/unotools/source/property/propertysethelper.cxx b/unotools/source/property/propertysethelper.cxx
index 26901e2ca46e..267b7aef211d 100644
--- a/unotools/source/property/propertysethelper.cxx
+++ b/unotools/source/property/propertysethelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ class PropertySetHelperImpl
{
public:
PropertyMapEntry* find( const OUString& aName ) const throw();
-
+
PropertySetInfo* mpInfo;
};
}
diff --git a/unotools/source/property/propertysetinfo.cxx b/unotools/source/property/propertysetinfo.cxx
index a420ec3decd4..5bfc3b28c768 100644
--- a/unotools/source/property/propertysetinfo.cxx
+++ b/unotools/source/property/propertysetinfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx
index b4912d5ef89d..ebb803be820b 100644
--- a/unotools/source/streaming/streamhelper.cxx
+++ b/unotools/source/streaming/streamhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/streaming/streamwrap.cxx b/unotools/source/streaming/streamwrap.cxx
index e064f2222b20..871b890d9f56 100644
--- a/unotools/source/streaming/streamwrap.cxx
+++ b/unotools/source/streaming/streamwrap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -238,8 +238,8 @@ void SAL_CALL OOutputStreamWrapper::writeBytes(const staruno::Sequence< sal_Int8
{
sal_uInt32 nWritten = rStream.Write(aData.getConstArray(),aData.getLength());
ErrCode err = rStream.GetError();
- if ( (ERRCODE_NONE != err)
- || (nWritten != (sal_uInt32)aData.getLength())
+ if ( (ERRCODE_NONE != err)
+ || (nWritten != (sal_uInt32)aData.getLength())
)
{
throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));
@@ -349,8 +349,8 @@ void SAL_CALL OStreamWrapper::writeBytes(const staruno::Sequence< sal_Int8 >& aD
{
sal_uInt32 nWritten = m_pSvStream->Write(aData.getConstArray(),aData.getLength());
ErrCode err = m_pSvStream->GetError();
- if ( (ERRCODE_NONE != err)
- || (nWritten != (sal_uInt32)aData.getLength())
+ if ( (ERRCODE_NONE != err)
+ || (nWritten != (sal_uInt32)aData.getLength())
)
{
throw stario::BufferSizeExceededException(::rtl::OUString(),static_cast<staruno::XWeak*>(this));
diff --git a/unotools/source/ucbhelper/XTempFile.hxx b/unotools/source/ucbhelper/XTempFile.hxx
index da570ed39d1e..fcadd2871eb3 100644
--- a/unotools/source/ucbhelper/XTempFile.hxx
+++ b/unotools/source/ucbhelper/XTempFile.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,28 +44,28 @@
class SvStream;
namespace utl { class TempFile; }
-typedef ::cppu::WeakImplHelper5< ::com::sun::star::io::XTempFile
- , ::com::sun::star::io::XInputStream
- , ::com::sun::star::io::XOutputStream
- , ::com::sun::star::io::XTruncate
- , ::com::sun::star::lang::XServiceInfo
+typedef ::cppu::WeakImplHelper5< ::com::sun::star::io::XTempFile
+ , ::com::sun::star::io::XInputStream
+ , ::com::sun::star::io::XOutputStream
+ , ::com::sun::star::io::XTruncate
+ , ::com::sun::star::lang::XServiceInfo
>
OTempFileBase;
-class OTempFileService :
+class OTempFileService :
public OTempFileBase,
public ::cppu::PropertySetMixin< ::com::sun::star::io::XTempFile >
{
protected:
- ::utl::TempFile* mpTempFile;
- ::osl::Mutex maMutex;
- SvStream* mpStream;
- sal_Bool mbRemoveFile;
- sal_Bool mbInClosed;
- sal_Bool mbOutClosed;
+ ::utl::TempFile* mpTempFile;
+ ::osl::Mutex maMutex;
+ SvStream* mpStream;
+ sal_Bool mbRemoveFile;
+ sal_Bool mbInClosed;
+ sal_Bool mbOutClosed;
- sal_Int64 mnCachedPos;
- sal_Bool mbHasCachedPos;
+ sal_Int64 mnCachedPos;
+ sal_Bool mbHasCachedPos;
void checkError () const;
void checkConnected ();
@@ -74,20 +74,20 @@ public:
OTempFileService (::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & context);
//Methods
- // XInterface
+ // XInterface
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL acquire( )
throw ();
virtual void SAL_CALL release( )
throw ();
- // XTypeProvider
+ // XTypeProvider
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( )
throw (::com::sun::star::uno::RuntimeException);
virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL getImplementationId( )
throw (::com::sun::star::uno::RuntimeException);
- // XTempFile
+ // XTempFile
virtual ::sal_Bool SAL_CALL getRemoveFile()
throw (::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL setRemoveFile( ::sal_Bool _removefile )
diff --git a/unotools/source/ucbhelper/localfilehelper.cxx b/unotools/source/ucbhelper/localfilehelper.cxx
index 75b3dc650602..44bc3a20b3a0 100644
--- a/unotools/source/ucbhelper/localfilehelper.cxx
+++ b/unotools/source/ucbhelper/localfilehelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/ucbhelper/progresshandlerwrap.cxx b/unotools/source/ucbhelper/progresshandlerwrap.cxx
index 5a87e4f4bb55..956607b04032 100644
--- a/unotools/source/ucbhelper/progresshandlerwrap.cxx
+++ b/unotools/source/ucbhelper/progresshandlerwrap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ sal_Bool getStatusFromAny_Impl( const Any& aAny, ::rtl::OUString& aText, sal_Int
return bNumIsSet;
}
-void SAL_CALL ProgressHandlerWrap::push( const Any& Status )
+void SAL_CALL ProgressHandlerWrap::push( const Any& Status )
throw( RuntimeException )
{
if( !m_xStatusIndicator.is() )
@@ -88,7 +88,7 @@ void SAL_CALL ProgressHandlerWrap::update( const Any& Status )
}
}
-void SAL_CALL ProgressHandlerWrap::pop()
+void SAL_CALL ProgressHandlerWrap::pop()
throw( RuntimeException )
{
if( m_xStatusIndicator.is() )
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index 5a99c522035f..36982f2e8af6 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -255,8 +255,8 @@ umask(old_mode);
DirectoryItem aTmpItem;
FileStatus aTmpStatus( FileStatusMask_Type );
- if ( DirectoryItem::get( aTmp, aTmpItem ) != FileBase::E_None
- || aTmpItem.getFileStatus( aTmpStatus ) != FileBase::E_None
+ if ( DirectoryItem::get( aTmp, aTmpItem ) != FileBase::E_None
+ || aTmpItem.getFileStatus( aTmpStatus ) != FileBase::E_None
|| aTmpStatus.getFileType() != FileStatus::Directory )
break;
}
@@ -320,8 +320,8 @@ umask(old_mode);
DirectoryItem aTmpItem;
FileStatus aTmpStatus( FileStatusMask_Type );
- if ( DirectoryItem::get( aTmp, aTmpItem ) != FileBase::E_None
- || aTmpItem.getFileStatus( aTmpStatus ) != FileBase::E_None
+ if ( DirectoryItem::get( aTmp, aTmpItem ) != FileBase::E_None
+ || aTmpItem.getFileStatus( aTmpStatus ) != FileBase::E_None
|| aTmpStatus.getFileType() != FileStatus::Directory )
break;
}
diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx
index 01b99f85e8ec..dd0b36cc0c0d 100644
--- a/unotools/source/ucbhelper/ucbhelper.cxx
+++ b/unotools/source/ucbhelper/ucbhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index 272412d39fe2..5fcfbdf13ec1 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/ucbhelper/ucbstreamhelper.cxx b/unotools/source/ucbhelper/ucbstreamhelper.cxx
index dc99c388594c..53cb153bb69f 100644
--- a/unotools/source/ucbhelper/ucbstreamhelper.cxx
+++ b/unotools/source/ucbhelper/ucbstreamhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index cbe09fcd7a0f..716b09db1501 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ namespace css = com::sun::star;
// copy define from desktop\source\app\appinit.cxx
-#define DESKTOP_TEMPNAMEBASE_DIR "/temp/soffice.tmp"
+#define DESKTOP_TEMPNAMEBASE_DIR "/temp/soffice.tmp"
OTempFileService::OTempFileService(::css::uno::Reference< ::css::uno::XComponentContext > const & context)
: ::cppu::PropertySetMixin< ::css::io::XTempFile >(
@@ -88,7 +88,7 @@ throw ()
OTempFileBase::release();
}
-// XTypeProvider
+// XTypeProvider
::css::uno::Sequence< ::css::uno::Type > SAL_CALL OTempFileService::getTypes( )
throw ( ::css::uno::RuntimeException )
@@ -114,7 +114,7 @@ throw ( ::css::uno::RuntimeException )
return OTempFileBase::getImplementationId();
}
-// XTempFile
+// XTempFile
sal_Bool SAL_CALL OTempFileService::getRemoveFile()
throw ( ::css::uno::RuntimeException )
@@ -294,7 +294,7 @@ throw ( ::css::io::NotConnectedException, ::css::io::BufferSizeExceededException
checkConnected();
sal_uInt32 nWritten = mpStream->Write(aData.getConstArray(),aData.getLength());
checkError();
- if ( nWritten != (sal_uInt32)aData.getLength())
+ if ( nWritten != (sal_uInt32)aData.getLength())
throw ::css::io::BufferSizeExceededException( ::rtl::OUString(),static_cast < ::css::uno::XWeak * > ( this ) );
}
void SAL_CALL OTempFileService::flush( )
diff --git a/vcl/aqua/inc/aqua11yfactory.h b/vcl/aqua/inc/aqua11yfactory.h
index 15ba372ed320..9b8e599fb262 100644
--- a/vcl/aqua/inc/aqua11yfactory.h
+++ b/vcl/aqua/inc/aqua11yfactory.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@
+(AquaA11yWrapper *)wrapperForAccessibleContext: (::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext >) rxAccessibleContext createIfNotExists:(MacOSBOOL) bCreate asRadioGroup:(MacOSBOOL) asRadioGroup;
+(void)removeFromWrapperRepositoryFor: (::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext >) rxAccessibleContext;
+(void)registerView: (NSView *) theView;
-+(void)revokeView: (NSView *) theViewt;
++(void)revokeView: (NSView *) theViewt;
@end
#endif // _SV_AQUA11FACTORY_H
diff --git a/vcl/aqua/inc/aqua11yfocustracker.hxx b/vcl/aqua/inc/aqua11yfocustracker.hxx
index b9721619b8ac..5e4611852703 100644
--- a/vcl/aqua/inc/aqua11yfocustracker.hxx
+++ b/vcl/aqua/inc/aqua11yfocustracker.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ class AquaA11yFocusTracker : public rtl::Static< AquaA11yFocusTracker, AquaA11yF
public:
AquaA11yFocusTracker();
-
+
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > getFocusedObject() { return m_xFocusedObject; };
// sets the currently focus object and notifies the FocusEventListener (if any)
@@ -60,24 +60,24 @@ public:
// may evolve to add/remove later
void setFocusListener(const rtl::Reference< KeyboardFocusListener >& aFocusListener) { m_aFocusListener = aFocusListener; };
-
+
protected:
// received a WINDOW_GETFOCUS event for this window
virtual void window_got_focus(Window *pWindow);
-
+
// received a TOOLBOX_HIGHLIGHT event for this window
virtual void toolbox_highlight_on(Window *pWindow);
// received a TOOLBOX_HIGHLIGHTOFF event for this window
virtual void toolbox_highlight_off(Window *pWindow);
-
+
// received a TABPAGE_ACTIVATE event for this window
virtual void tabpage_activated(Window *pWindow);
-
+
// received a MENU_HIGHLIGHT event for this window
virtual void menu_highlighted(const ::VclMenuEvent *pEvent);
-
+
// toolbox items are widgets in gtk+ and Cocoa
virtual void notify_toolbox_item_focus(ToolBox *pToolBox);
@@ -87,23 +87,23 @@ protected:
// callback function for Application::addEventListener
static long WindowEventHandler(AquaA11yFocusTracker *pFocusTracker, ::VclSimpleEvent const *pEvent);
-private:
+private:
// the accessible object that has the keyboard focus (if any)
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > m_xFocusedObject;
-
+
// the listener for focus events
rtl::Reference< KeyboardFocusListener > m_aFocusListener;
-
+
// the list of Windows that need deeper (focus) investigation
std::set< Window *> m_aDocumentWindowList;
-
+
// the link object needed for Application::addEventListener
Link m_aWindowEventLink;
-
+
// the UNO XAccessibilityEventListener for Documents and other non VCL objects
const ::com::sun::star::uno::Reference< DocumentFocusListener > m_xDocumentFocusListener;
};
-#endif // _AQUA11YFOCUSTRACKER_HXX_
+#endif // _AQUA11YFOCUSTRACKER_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/inc/aqua11ylistener.hxx b/vcl/aqua/inc/aqua11ylistener.hxx
index cab8d8c89d58..ca8d0639e321 100644
--- a/vcl/aqua/inc/aqua11ylistener.hxx
+++ b/vcl/aqua/inc/aqua11ylistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#ifndef _AQUA11YLISTENER_HXX_
#define _AQUA11YLISTENER_HXX_
@@ -41,7 +41,7 @@
// - AquaA11yEventListener -
// -------------------------
-class AquaA11yEventListener :
+class AquaA11yEventListener :
public ::cppu::WeakImplHelper1< ::com::sun::star::accessibility::XAccessibleEventListener >
{
@@ -50,13 +50,13 @@ public:
virtual ~AquaA11yEventListener();
// XEventListener
- virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
+ virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
throw (::com::sun::star::uno::RuntimeException);
// XAccessibleEventListener
- virtual void SAL_CALL notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent )
+ virtual void SAL_CALL notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent )
throw( ::com::sun::star::uno::RuntimeException );
-
+
private:
const id m_wrapperObject;
const sal_Int16 m_role;
diff --git a/vcl/aqua/inc/aqua11ywrapper.h b/vcl/aqua/inc/aqua11ywrapper.h
index 66faca457622..b3fea12125ec 100644
--- a/vcl/aqua/inc/aqua11ywrapper.h
+++ b/vcl/aqua/inc/aqua11ywrapper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/aquaprintview.h b/vcl/aqua/inc/aquaprintview.h
index 5e209bfa6233..d8a9ec6330f9 100644
--- a/vcl/aqua/inc/aquaprintview.h
+++ b/vcl/aqua/inc/aquaprintview.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ struct PrintAccessoryViewState
{
bool bNeedRestart;
sal_Int32 nLastPage;
-
+
PrintAccessoryViewState()
: bNeedRestart( false ), nLastPage( 0 ) {}
};
@@ -61,7 +61,7 @@ struct PrintAccessoryViewState
@interface AquaPrintAccessoryView : NSObject
{
}
-+(NSObject*)setupPrinterPanel: (NSPrintOperation*)pOp withController: (vcl::PrinterController*)pController withState: (PrintAccessoryViewState*)pState;
++(NSObject*)setupPrinterPanel: (NSPrintOperation*)pOp withController: (vcl::PrinterController*)pController withState: (PrintAccessoryViewState*)pState;
@end
diff --git a/vcl/aqua/inc/aquavclevents.hxx b/vcl/aqua/inc/aquavclevents.hxx
index 034edd3882b5..907e1ea7d547 100644
--- a/vcl/aqua/inc/aquavclevents.hxx
+++ b/vcl/aqua/inc/aquavclevents.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/aquavcltypes.h b/vcl/aqua/inc/aquavcltypes.h
index 93003faecad7..81dd543e7b68 100644
--- a/vcl/aqua/inc/aquavcltypes.h
+++ b/vcl/aqua/inc/aquavcltypes.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/keyboardfocuslistener.hxx b/vcl/aqua/inc/keyboardfocuslistener.hxx
index bf9c70250005..b66b7e483c33 100644
--- a/vcl/aqua/inc/keyboardfocuslistener.hxx
+++ b/vcl/aqua/inc/keyboardfocuslistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/salatsuifontutils.hxx b/vcl/aqua/inc/salatsuifontutils.hxx
index e47745a5552a..5a11e6a29f7a 100644
--- a/vcl/aqua/inc/salatsuifontutils.hxx
+++ b/vcl/aqua/inc/salatsuifontutils.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ class SystemFontList
public:
SystemFontList();
~SystemFontList();
-
+
void AnnounceFonts( ImplDevFontList& ) const;
ImplMacFontData* GetFontDataFromId( ATSUFontID ) const;
@@ -57,9 +57,9 @@ private:
typedef std::hash_map<ATSUFontID,ImplMacFontData*> MacFontContainer;
MacFontContainer maFontContainer;
- void InitGlyphFallbacks();
+ void InitGlyphFallbacks();
};
-
-#endif // _SV_SALATSUIFONTUTILS_HXX
+
+#endif // _SV_SALATSUIFONTUTILS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/inc/salbmp.h b/vcl/aqua/inc/salbmp.h
index 818b25d38772..c438ea929c38 100644
--- a/vcl/aqua/inc/salbmp.h
+++ b/vcl/aqua/inc/salbmp.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,34 +42,34 @@
#include "basebmp/bitmapdevice.hxx"
// --------------
-// - SalBitmap -
+// - SalBitmap -
// --------------
-struct BitmapBuffer;
-class BitmapColor;
-class BitmapPalette;
-class AquaSalVirtualDevice;
-class AquaSalGraphics;
+struct BitmapBuffer;
+class BitmapColor;
+class BitmapPalette;
+class AquaSalVirtualDevice;
+class AquaSalGraphics;
class AquaSalBitmap : public SalBitmap
{
public:
- CGContextRef mxGraphicContext;
- mutable CGImageRef mxCachedImage;
- BitmapPalette maPalette;
- basebmp::RawMemorySharedArray maUserBuffer;
- basebmp::RawMemorySharedArray maContextBuffer;
- sal_uInt16 mnBits;
- int mnWidth;
- int mnHeight;
- sal_uInt32 mnBytesPerRow;
+ CGContextRef mxGraphicContext;
+ mutable CGImageRef mxCachedImage;
+ BitmapPalette maPalette;
+ basebmp::RawMemorySharedArray maUserBuffer;
+ basebmp::RawMemorySharedArray maContextBuffer;
+ sal_uInt16 mnBits;
+ int mnWidth;
+ int mnHeight;
+ sal_uInt32 mnBytesPerRow;
public:
AquaSalBitmap();
virtual ~AquaSalBitmap();
-
+
public:
-
+
// SalBitmap methods
bool Create( const Size& rSize, USHORT nBitCount, const BitmapPalette& rPal );
bool Create( const SalBitmap& rSalBmp );
@@ -78,12 +78,12 @@ public:
virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
Size& rSize,
bool bMask = false );
-
+
void Destroy();
-
+
Size GetSize() const;
USHORT GetBitCount() const;
-
+
BitmapBuffer *AcquireBuffer( bool bReadOnly );
void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
@@ -91,21 +91,21 @@ public:
private:
// quartz helper
- bool CreateContext();
+ bool CreateContext();
void DestroyContext();
- bool AllocateUserData();
+ bool AllocateUserData();
- void ConvertBitmapData( sal_uInt32 nWidth, sal_uInt32 nHeight,
+ void ConvertBitmapData( sal_uInt32 nWidth, sal_uInt32 nHeight,
sal_uInt16 nDestBits, sal_uInt32 nDestBytesPerRow, const BitmapPalette& rDestPalette, sal_uInt8* pDestData,
sal_uInt16 nSrcBits, sal_uInt32 nSrcBytesPerRow, const BitmapPalette& rSrcPalette, sal_uInt8* pSrcData );
public:
- bool Create( CGLayerRef xLayer, int nBitCount, int nX, int nY, int nWidth, int nHeight, bool bMirrorVert = true );
+ bool Create( CGLayerRef xLayer, int nBitCount, int nX, int nY, int nWidth, int nHeight, bool bMirrorVert = true );
public:
- CGImageRef CreateWithMask( const AquaSalBitmap& rMask, int nX, int nY, int nWidth, int nHeight ) const;
- CGImageRef CreateColorMask( int nX, int nY, int nWidth, int nHeight, SalColor nMaskColor ) const;
- CGImageRef CreateCroppedImage( int nX, int nY, int nWidth, int nHeight ) const;
+ CGImageRef CreateWithMask( const AquaSalBitmap& rMask, int nX, int nY, int nWidth, int nHeight ) const;
+ CGImageRef CreateColorMask( int nX, int nY, int nWidth, int nHeight, SalColor nMaskColor ) const;
+ CGImageRef CreateCroppedImage( int nX, int nY, int nWidth, int nHeight ) const;
};
#endif // _SV_SALBMP_HXX
diff --git a/vcl/aqua/inc/salcolorutils.hxx b/vcl/aqua/inc/salcolorutils.hxx
index ae6afdabb9ff..ca5e93e16c43 100644
--- a/vcl/aqua/inc/salcolorutils.hxx
+++ b/vcl/aqua/inc/salcolorutils.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,6 +50,6 @@ void SetSalColor( const SalColor& rColor, float* pQuartzColor );
// ------------------------------------------------------------------
-#endif // _SV_SALCOLORUTILS_HXX
+#endif // _SV_SALCOLORUTILS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/inc/salconst.h b/vcl/aqua/inc/salconst.h
index 50971a819c09..8d0a5aa1fdd9 100644
--- a/vcl/aqua/inc/salconst.h
+++ b/vcl/aqua/inc/salconst.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/saldata.hxx b/vcl/aqua/inc/saldata.hxx
index 4dbf2ea09ee2..5915ec8a3c86 100644
--- a/vcl/aqua/inc/saldata.hxx
+++ b/vcl/aqua/inc/saldata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,48 +81,48 @@ struct FrameHash : public std::hash<sal_IntPtr>
struct SalData
{
-
- SALTIMERPROC mpTimerProc; // timer callback proc
- AquaSalInstance *mpFirstInstance; // pointer of first instance
- std::list<AquaSalFrame*> maFrames; // pointer of first frame
+
+ SALTIMERPROC mpTimerProc; // timer callback proc
+ AquaSalInstance *mpFirstInstance; // pointer of first instance
+ std::list<AquaSalFrame*> maFrames; // pointer of first frame
std::hash_set<const AquaSalFrame*,FrameHash> maFrameCheck; // for fast check of frame existance
- SalObject *mpFirstObject; // pointer of first object window
- SalVirtualDevice *mpFirstVD; // first VirDev
- SalPrinter *mpFirstPrinter; // first printing printer
+ SalObject *mpFirstObject; // pointer of first object window
+ SalVirtualDevice *mpFirstVD; // first VirDev
+ SalPrinter *mpFirstPrinter; // first printing printer
SystemFontList *mpFontList;
NSStatusItem* mpStatusItem; // one status item that draws all our stati
// at the moment this is only one add menu button
-
+
CGColorSpaceRef mxRGBSpace;
CGColorSpaceRef mxGraySpace;
CGColorSpaceRef mxP50Space;
CGPatternRef mxP50Pattern;
-
+
std::vector< NSCursor* > maCursors;
std::vector< NSMenuItem* > maFallbackMenu;
std::map< NSEvent*, bool > maKeyEventAnswer;
-
+
static oslThreadKey s_aAutoReleaseKey;
- bool mbIsScrollbarDoubleMax; // TODO: support DoubleMin and DoubleBoth too
+ bool mbIsScrollbarDoubleMax; // TODO: support DoubleMin and DoubleBoth too
SInt32 mnSystemVersion; // Store System Version
MainController* mpMainController; // Apple Remote
-
+
NSObject* mpDockIconClickHandler;
long mnDPIX; // #i100617# read DPI only once per office life
long mnDPIY; // #i100617# read DPI only once per office life
-
+
com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
mxClipboard;
SalData();
~SalData();
-
+
NSCursor* getCursor( PointerStyle i_eStyle );
-
+
static void ensureThreadAutoreleasePool();
static void drainThreadAutoreleasePool();
-
+
static NSStatusItem* getStatusItem();
};
@@ -136,6 +136,6 @@ BOOL ImplSalYieldMutexTryToAcquire();
void ImplSalYieldMutexAcquire();
void ImplSalYieldMutexRelease();
-#endif // _SV_SALDATA_HXX
+#endif // _SV_SALDATA_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/inc/salfontutils.hxx b/vcl/aqua/inc/salfontutils.hxx
index 8394d874bf10..8c070da4ba08 100644
--- a/vcl/aqua/inc/salfontutils.hxx
+++ b/vcl/aqua/inc/salfontutils.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,6 +63,6 @@ static const char *kFontWeightRegular1 = "Regular";
static const char *kFontWeightRegular2 = "regular";
-#endif // _SV_SALFONTUTILS_HXX
+#endif // _SV_SALFONTUTILS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/inc/salframe.h b/vcl/aqua/inc/salframe.h
index bd0929829bc1..64f56cfae2cf 100644
--- a/vcl/aqua/inc/salframe.h
+++ b/vcl/aqua/inc/salframe.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,47 +61,47 @@ class AquaSalFrame : public SalFrame
{
public:
NSWindow* mpWindow; // Cocoa window
- NSView* mpView; // Cocoa view (actually a custom view, see below
+ NSView* mpView; // Cocoa view (actually a custom view, see below
NSMenuItem* mpDockMenuEntry; // entry in the dynamic dock menu
NSRect maScreenRect; // for mirroring purposes
- AquaSalGraphics* mpGraphics; // current frame graphics
- AquaSalFrame* mpParent; // pointer to parent frame
- SystemEnvData maSysData; // system data
+ AquaSalGraphics* mpGraphics; // current frame graphics
+ AquaSalFrame* mpParent; // pointer to parent frame
+ SystemEnvData maSysData; // system data
int mnMinWidth; // min. client width in pixels
int mnMinHeight; // min. client height in pixels
int mnMaxWidth; // max. client width in pixels
int mnMaxHeight; // max. client height in pixels
NSRect maFullScreenRect; // old window size when in FullScreen
- bool mbGraphics:1; // is Graphics used?
+ bool mbGraphics:1; // is Graphics used?
bool mbFullScreen:1; // is Window in FullScreen?
bool mbShown:1;
bool mbInitShow:1;
bool mbPositioned:1;
bool mbSized:1;
bool mbPresentation:1;
-
+
ULONG mnStyle;
unsigned int mnStyleMask; // our style mask from NSWindow creation
-
+
ULONG mnLastEventTime;
unsigned int mnLastModifierFlags;
AquaSalMenu* mpMenu;
-
+
SalExtStyle mnExtStyle; // currently document frames are marked this way
-
+
PointerStyle mePointerStyle; // currently active pointer style
-
+
NSTrackingRectTag mnTrackingRectTag; // used to get enter/leave messages
CGMutablePathRef mrClippingPath; // used for "shaping"
std::vector< CGRect > maClippingRects;
-
+
std::list<AquaBlinker*> maBlinkers;
-
+
Rectangle maInvalidRect;
-
+
ULONG mnICOptions;
-
+
boost::shared_ptr< Timer > mpActivityTimer; // Timer to prevent system sleep during presentation
public:
/** Constructor
@@ -114,49 +114,49 @@ public:
virtual ~AquaSalFrame();
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL PostEvent( void* pData );
- virtual void SetTitle( const XubString& rTitle );
- virtual void SetIcon( USHORT nIcon );
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual BOOL PostEvent( void* pData );
+ virtual void SetTitle( const XubString& rTitle );
+ virtual void SetIcon( USHORT nIcon );
virtual void SetRepresentedURL( const rtl::OUString& );
virtual void SetMenu( SalMenu* pSalMenu );
virtual void DrawMenuBar();
- virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
- virtual void Enable( BOOL bEnable );
+ virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
+ virtual void Enable( BOOL bEnable );
virtual void SetMinClientSize( long nWidth, long nHeight );
virtual void SetMaxClientSize( long nWidth, long nHeight );
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
- virtual void GetClientSize( long& rWidth, long& rHeight );
- virtual void GetWorkArea( Rectangle& rRect );
- virtual SalFrame* GetParent() const;
- virtual void SetWindowState( const SalFrameState* pState );
- virtual BOOL GetWindowState( SalFrameState* pState );
- virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
- virtual void StartPresentation( BOOL bStart );
- virtual void SetAlwaysOnTop( BOOL bOnTop );
- virtual void ToTop( USHORT nFlags );
- virtual void SetPointer( PointerStyle ePointerStyle );
- virtual void CaptureMouse( BOOL bMouse );
- virtual void SetPointerPos( long nX, long nY );
- virtual void Flush( void );
- virtual void Flush( const Rectangle& );
- virtual void Sync();
- virtual void SetInputContext( SalInputContext* pContext );
- virtual void EndExtTextInput( USHORT nFlags );
- virtual String GetKeyName( USHORT nKeyCode );
- virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
+ virtual void GetClientSize( long& rWidth, long& rHeight );
+ virtual void GetWorkArea( Rectangle& rRect );
+ virtual SalFrame* GetParent() const;
+ virtual void SetWindowState( const SalFrameState* pState );
+ virtual BOOL GetWindowState( SalFrameState* pState );
+ virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
+ virtual void StartPresentation( BOOL bStart );
+ virtual void SetAlwaysOnTop( BOOL bOnTop );
+ virtual void ToTop( USHORT nFlags );
+ virtual void SetPointer( PointerStyle ePointerStyle );
+ virtual void CaptureMouse( BOOL bMouse );
+ virtual void SetPointerPos( long nX, long nY );
+ virtual void Flush( void );
+ virtual void Flush( const Rectangle& );
+ virtual void Sync();
+ virtual void SetInputContext( SalInputContext* pContext );
+ virtual void EndExtTextInput( USHORT nFlags );
+ virtual String GetKeyName( USHORT nKeyCode );
+ virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
virtual BOOL MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
- virtual LanguageType GetInputLanguage();
- virtual SalBitmap* SnapShot();
- virtual void UpdateSettings( AllSettings& rSettings );
- virtual void Beep( SoundType eSoundType );
- virtual const SystemEnvData* GetSystemData() const;
- virtual SalPointerState GetPointerState();
+ virtual LanguageType GetInputLanguage();
+ virtual SalBitmap* SnapShot();
+ virtual void UpdateSettings( AllSettings& rSettings );
+ virtual void Beep( SoundType eSoundType );
+ virtual const SystemEnvData* GetSystemData() const;
+ virtual SalPointerState GetPointerState();
virtual SalIndicatorState GetIndicatorState();
virtual void SimulateKeyPress( USHORT nKeyCode );
- virtual void SetParent( SalFrame* pNewParent );
- virtual bool SetPluginParent( SystemParentData* pNewParent );
+ virtual void SetParent( SalFrame* pNewParent );
+ virtual bool SetPluginParent( SystemParentData* pNewParent );
virtual void SetExtendedFrameStyle( SalExtStyle );
virtual void SetBackgroundBitmap( SalBitmap* );
virtual void SetScreenNumber(unsigned int);
@@ -175,21 +175,21 @@ public:
virtual void SetClientSize( long nWidth, long nHeight );
void UpdateFrameGeometry();
-
+
// trigger painting of the window
void SendPaintEvent( const Rectangle* pRect = NULL );
static bool isAlive( const AquaSalFrame* pFrame )
{ return GetSalData()->maFrameCheck.find( pFrame ) != GetSalData()->maFrameCheck.end(); }
-
+
static AquaSalFrame* GetCaptureFrame() { return s_pCaptureFrame; }
-
+
NSWindow* getWindow() const { return mpWindow; }
NSView* getView() const { return mpView; }
unsigned int getStyleMask() const { return mnStyleMask; }
-
+
void getResolution( long& o_rDPIX, long& o_rDPIY );
-
+
// actually the follwing methods do the same thing: flipping y coordinates
// but having two of them makes clearer what the coordinate system
// is supposed to be before and after
@@ -198,11 +198,11 @@ public:
void VCLToCocoa( NSPoint& io_rPoint, bool bRelativeToScreen = true );
void CocoaToVCL( NSPoint& io_Point, bool bRelativeToScreen = true );
-
+
NSCursor* getCurrentCursor() const;
-
+
CGMutablePathRef getClipPath() const { return mrClippingPath; }
-
+
// called by VCL_NSApplication to indicate screen settings have changed
void screenParametersChanged();
@@ -210,12 +210,12 @@ public:
/** do things on initial show (like centering on parent or on screen)
*/
void initShow();
-
+
void initWindowAndView();
- private: // data
+ private: // data
static AquaSalFrame* s_pCaptureFrame;
-
+
// make AquaSalFrame non copyable
AquaSalFrame( const AquaSalFrame& );
AquaSalFrame& operator=(const AquaSalFrame&);
diff --git a/vcl/aqua/inc/salframeview.h b/vcl/aqua/inc/salframeview.h
index 55fbc3bf66c5..e073af25d240 100644
--- a/vcl/aqua/inc/salframeview.h
+++ b/vcl/aqua/inc/salframeview.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,8 +80,8 @@
NSEvent* mpLastSuperEvent;
// #i102807# used by magnify event handler
- NSTimeInterval mfLastMagnifyTime;
- float mfMagnifyDeltaSum;
+ NSTimeInterval mfLastMagnifyTime;
+ float mfMagnifyDeltaSum;
}
+(void)unsetMouseFrame: (AquaSalFrame*)pFrame;
-(id)initWithSalFrame: (AquaSalFrame*)pFrame;
@@ -187,10 +187,10 @@
actual mouse event initiating this drag operation.
Mouse events can only be received by subclassing
NSView and overriding methods like 'mouseDown' etc.
- hence we implement a event hook here so that the
- D&D service can register as listener for mouse
- messages and use the last 'mouseDown' or
- 'mouseDragged' message to initiate the drag
+ hence we implement a event hook here so that the
+ D&D service can register as listener for mouse
+ messages and use the last 'mouseDown' or
+ 'mouseDragged' message to initiate the drag
operation.
*/
-(void)registerMouseEventListener: (id)theListener;
diff --git a/vcl/aqua/inc/salgdi.h b/vcl/aqua/inc/salgdi.h
index 830de42caa95..eb203863ed95 100644
--- a/vcl/aqua/inc/salgdi.h
+++ b/vcl/aqua/inc/salgdi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,21 +59,21 @@ public:
virtual ImplFontData* Clone() const;
virtual ImplFontEntry* CreateFontInstance( ImplFontSelectData& ) const;
virtual sal_IntPtr GetFontId() const;
+
+ ImplFontCharMap* GetImplFontCharMap() const;
+ bool HasChar( sal_uInt32 cChar ) const;
- ImplFontCharMap* GetImplFontCharMap() const;
- bool HasChar( sal_uInt32 cChar ) const;
-
- void ReadOs2Table() const;
- void ReadMacCmapEncoding() const;
- bool HasCJKSupport() const;
+ void ReadOs2Table() const;
+ void ReadMacCmapEncoding() const;
+ bool HasCJKSupport() const;
private:
- const ATSUFontID mnFontId;
- mutable ImplFontCharMap* mpCharMap;
- mutable bool mbOs2Read; // true if OS2-table related info is valid
- mutable bool mbHasOs2Table;
- mutable bool mbCmapEncodingRead; // true if cmap encoding of Mac font is read
- mutable bool mbHasCJKSupport; // #i78970# CJK fonts need extra leading
+ const ATSUFontID mnFontId;
+ mutable ImplFontCharMap* mpCharMap;
+ mutable bool mbOs2Read; // true if OS2-table related info is valid
+ mutable bool mbHasOs2Table;
+ mutable bool mbCmapEncodingRead; // true if cmap encoding of Mac font is read
+ mutable bool mbHasCJKSupport; // #i78970# CJK fonts need extra leading
};
// abstracting quartz color instead of having to use an CGFloat[] array
@@ -82,9 +82,9 @@ class RGBAColor
public:
RGBAColor( SalColor );
RGBAColor( float fRed, float fGreen, float fBlue, float fAlpha ); //NOTUSEDYET
- const float* AsArray() const { return &mfRed; }
- bool IsVisible() const { return (mfAlpha > 0); }
- void SetAlpha( float fAlpha ) { mfAlpha = fAlpha; }
+ const float* AsArray() const { return &mfRed; }
+ bool IsVisible() const { return (mfAlpha > 0); }
+ void SetAlpha( float fAlpha ) { mfAlpha = fAlpha; }
private:
float mfRed, mfGreen, mfBlue, mfAlpha;
};
@@ -97,13 +97,13 @@ class AquaSalGraphics : public SalGraphics
friend class ATSLayout;
protected:
AquaSalFrame* mpFrame;
- CGLayerRef mxLayer; // Quartz graphics layer
- CGContextRef mrContext; // Quartz drawing context
- class XorEmulation* mpXorEmulation;
+ CGLayerRef mxLayer; // Quartz graphics layer
+ CGContextRef mrContext; // Quartz drawing context
+ class XorEmulation* mpXorEmulation;
int mnXorMode; // 0: off 1: on 2: invert only
- int mnWidth;
- int mnHeight;
- int mnBitmapDepth; // zero unless bitmap
+ int mnWidth;
+ int mnHeight;
+ int mnBitmapDepth; // zero unless bitmap
/// device resolution of this graphics
long mnRealDPIX;
long mnRealDPIY;
@@ -115,7 +115,7 @@ protected:
/// path representing current clip region
CGMutablePathRef mxClipPath;
- /// Drawing colors
+ /// Drawing colors
/// pen color RGBA
RGBAColor maLineColor;
/// brush color RGBA
@@ -124,7 +124,7 @@ protected:
// Device Font settings
const ImplMacFontData* mpMacFontData;
/// ATSU style object which carries all font attributes
- ATSUStyle maATSUStyle;
+ ATSUStyle maATSUStyle;
/// text rotation as ATSU angle
Fixed mnATSUIRotation;
/// workaround to prevent ATSU overflows for huge font sizes
@@ -135,7 +135,7 @@ protected:
bool mbNonAntialiasedText;
// Graphics types
-
+
/// is this a printer graphics
bool mbPrinter;
/// is this a virtual device graphics
@@ -144,12 +144,12 @@ protected:
bool mbWindow;
public:
- AquaSalGraphics();
+ AquaSalGraphics();
virtual ~AquaSalGraphics();
- bool IsPenVisible() const { return maLineColor.IsVisible(); }
- bool IsBrushVisible() const { return maFillColor.IsVisible(); }
-
+ bool IsPenVisible() const { return maLineColor.IsVisible(); }
+ bool IsBrushVisible() const { return maFillColor.IsVisible(); }
+
void SetWindowGraphics( AquaSalFrame* pFrame );
void SetPrinterGraphics( CGContextRef, long nRealDPIX, long nRealDPIY, double fFakeScale );
void SetVirDevGraphics( CGLayerRef, CGContextRef, int nBitDepth = 0 );
@@ -157,7 +157,7 @@ public:
void initResolution( NSWindow* );
void copyResolution( AquaSalGraphics& );
void updateResolution();
-
+
bool IsWindowGraphics() const { return mbWindow; }
bool IsPrinterGraphics() const { return mbPrinter; }
bool IsVirDevGraphics() const { return mbVirDev; }
@@ -165,67 +165,67 @@ public:
void setGraphicsFrame( AquaSalFrame* pFrame ) { mpFrame = pFrame; }
void ImplDrawPixel( long nX, long nY, const RGBAColor& ); // helper to draw single pixels
-
+
bool CheckContext();
void UpdateWindow( NSRect& ); // delivered in NSView coordinates
- void RefreshRect( const CGRect& );
- void RefreshRect( const NSRect& );
- void RefreshRect(float lX, float lY, float lWidth, float lHeight);
+ void RefreshRect( const CGRect& );
+ void RefreshRect( const NSRect& );
+ void RefreshRect(float lX, float lY, float lWidth, float lHeight);
void SetState();
void UnsetState();
// InvalidateContext does an UnsetState and sets mrContext to 0
void InvalidateContext();
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
// draw --> LineColor and FillColor and RasterOp and ClipRegion
- virtual void drawPixel( long nX, long nY );
- virtual void drawPixel( long nX, long nY, SalColor nSalColor );
- virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
- virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
- virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolyPolygon( ULONG nPoly, const ULONG* pPoints, PCONSTSALPOINT* pPtAry );
+ virtual void drawPixel( long nX, long nY );
+ virtual void drawPixel( long nX, long nY, SalColor nSalColor );
+ virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
+ virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
+ virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolyPolygon( ULONG nPoly, const ULONG* pPoints, PCONSTSALPOINT* pPtAry );
virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
- virtual sal_Bool drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
- virtual sal_Bool drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
- virtual sal_Bool drawPolyPolygonBezier( ULONG nPoly, const ULONG* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );
+ virtual sal_Bool drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
+ virtual sal_Bool drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
+ virtual sal_Bool drawPolyPolygonBezier( ULONG nPoly, const ULONG* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );
virtual bool drawPolyLine( const ::basegfx::B2DPolygon&, double fTransparency, const ::basegfx::B2DVector& rLineWidths, basegfx::B2DLineJoin );
// CopyArea --> No RasterOp, but ClipRegion
- virtual void copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
+ virtual void copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
long nSrcHeight, USHORT nFlags );
// CopyBits and DrawBitmap --> RasterOp and ClipRegion
// CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
- virtual void copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
- virtual void drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
+ virtual void drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap );
- virtual void drawMask( const SalTwoRect* pPosAry,
+ virtual void drawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor );
- virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
- virtual SalColor getPixel( long nX, long nY );
+ virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
+ virtual SalColor getPixel( long nX, long nY );
// invert --> ClipRegion (only Windows or VirDevs)
- virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
- virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
+ virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
+ virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
- virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
+ virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
- virtual bool drawAlphaBitmap( const SalTwoRect&,
+ virtual bool drawAlphaBitmap( const SalTwoRect&,
const SalBitmap& rSourceBitmap,
const SalBitmap& rAlphaBitmap );
- virtual bool drawAlphaRect( long nX, long nY, long nWidth,
+ virtual bool drawAlphaRect( long nX, long nY, long nWidth,
long nHeight, sal_uInt8 nTransparency );
CGPoint* makeCGptArray(ULONG nPoints, const SalPoint* pPtAry);
@@ -243,52 +243,52 @@ public:
Rectangle &rNativeBoundingRegion, Rectangle &rNativeContentRegion );
// get device resolution
- virtual void GetResolution( long& rDPIX, long& rDPIY );
+ virtual void GetResolution( long& rDPIX, long& rDPIY );
// get the depth of the device
- virtual USHORT GetBitCount();
+ virtual USHORT GetBitCount();
// get the width of the device
- virtual long GetGraphicsWidth() const;
+ virtual long GetGraphicsWidth() const;
// set the clip region to empty
- virtual void ResetClipRegion();
+ virtual void ResetClipRegion();
// begin setting the clip region, add rectangles to the
// region with the UnionClipRegion call
- virtual void BeginSetClipRegion( ULONG nCount );
+ virtual void BeginSetClipRegion( ULONG nCount );
// all rectangles were added and the clip region should be set now
- virtual void EndSetClipRegion();
+ virtual void EndSetClipRegion();
// set the line color to transparent (= don't draw lines)
- virtual void SetLineColor();
+ virtual void SetLineColor();
// set the line color to a specific color
- virtual void SetLineColor( SalColor nSalColor );
+ virtual void SetLineColor( SalColor nSalColor );
// set the fill color to transparent (= don't fill)
- virtual void SetFillColor();
+ virtual void SetFillColor();
// set the fill color to a specific color, shapes will be
// filled accordingly
- virtual void SetFillColor( SalColor nSalColor );
+ virtual void SetFillColor( SalColor nSalColor );
// enable/disable XOR drawing
- virtual void SetXORMode( bool bSet, bool bInvertOnly );
+ virtual void SetXORMode( bool bSet, bool bInvertOnly );
// set line color for raster operations
- virtual void SetROPLineColor( SalROPColor nROPColor );
+ virtual void SetROPLineColor( SalROPColor nROPColor );
// set fill color for raster operations
- virtual void SetROPFillColor( SalROPColor nROPColor );
+ virtual void SetROPFillColor( SalROPColor nROPColor );
// set the text color to a specific color
- virtual void SetTextColor( SalColor nSalColor );
+ virtual void SetTextColor( SalColor nSalColor );
// set the font
virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel );
// get the current font's etrics
- virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
+ virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
// get kernign pairs of the current font
// return only PairCount if (pKernPairs == NULL)
- virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
+ virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
// get the repertoire of the current font
virtual ImplFontCharMap* GetImplFontCharMap() const;
// graphics must fill supplied font list
- virtual void GetDevFontList( ImplDevFontList* );
+ virtual void GetDevFontList( ImplDevFontList* );
// graphics should call ImplAddDevFontSubstitute on supplied
// OutputDevice for all its device specific preferred font substitutions
- virtual void GetDevFontSubstList( OutputDevice* );
- virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
+ virtual void GetDevFontSubstList( OutputDevice* );
+ virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
// CreateFontSubset: a method to get a subset of glyhps of a font
// inside a new valid font file
// returns TRUE if creation of subset was successfull
@@ -301,7 +301,7 @@ public:
// rInfo: additional outgoing information
// implementation note: encoding 0 with glyph id 0 should be added implicitly
// as "undefined character"
- virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
+ virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
const ImplFontData* pFont,
long* pGlyphIDs,
sal_uInt8* pEncoding,
@@ -326,13 +326,13 @@ public:
// pWidths MUST support at least 256 members;
// rInfo: additional outgoing information
// pDataLen: out parameter, contains the byte length of the returned buffer
- virtual const void* GetEmbedFontData( const ImplFontData*,
+ virtual const void* GetEmbedFontData( const ImplFontData*,
const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
long* pDataLen );
// frees the font data again
- virtual void FreeEmbedFontData( const void* pData, long nDataLen );
+ virtual void FreeEmbedFontData( const void* pData, long nDataLen );
virtual void GetGlyphWidths( const ImplFontData*,
bool bVertical,
@@ -343,7 +343,7 @@ public:
virtual BOOL GetGlyphOutline( long nIndex, basegfx::B2DPolyPolygon& );
virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
- virtual void DrawServerFontLayout( const ServerFontLayout& );
+ virtual void DrawServerFontLayout( const ServerFontLayout& );
virtual bool supportsOperation( OutDevSupportType ) const;
// Query the platform layer for control support
@@ -367,25 +367,25 @@ class XorEmulation
{
public:
XorEmulation();
- /*final*/ ~XorEmulation();
+ /*final*/ ~XorEmulation();
- void SetTarget( int nWidth, int nHeight, int nBitmapDepth, CGContextRef, CGLayerRef );
- bool UpdateTarget();
- void Enable() { mbIsEnabled = true; }
- void Disable() { mbIsEnabled = false; }
- bool IsEnabled() const { return mbIsEnabled; }
- CGContextRef GetTargetContext() const { return mxTargetContext; }
- CGContextRef GetMaskContext() const { return (mbIsEnabled ? mxMaskContext : NULL); }
+ void SetTarget( int nWidth, int nHeight, int nBitmapDepth, CGContextRef, CGLayerRef );
+ bool UpdateTarget();
+ void Enable() { mbIsEnabled = true; }
+ void Disable() { mbIsEnabled = false; }
+ bool IsEnabled() const { return mbIsEnabled; }
+ CGContextRef GetTargetContext() const { return mxTargetContext; }
+ CGContextRef GetMaskContext() const { return (mbIsEnabled ? mxMaskContext : NULL); }
private:
- CGLayerRef mxTargetLayer;
- CGContextRef mxTargetContext;
- CGContextRef mxMaskContext;
- CGContextRef mxTempContext;
- ULONG* mpMaskBuffer;
- ULONG* mpTempBuffer;
- int mnBufferLongs;
- bool mbIsEnabled;
+ CGLayerRef mxTargetLayer;
+ CGContextRef mxTargetContext;
+ CGContextRef mxMaskContext;
+ CGContextRef mxTempContext;
+ ULONG* mpMaskBuffer;
+ ULONG* mpTempBuffer;
+ int mnBufferLongs;
+ bool mbIsEnabled;
};
@@ -402,17 +402,17 @@ inline void AquaSalGraphics::RefreshRect( const NSRect& rRect )
}
inline RGBAColor::RGBAColor( SalColor nSalColor )
-: mfRed( SALCOLOR_RED(nSalColor) * (1.0/255))
-, mfGreen( SALCOLOR_GREEN(nSalColor) * (1.0/255))
-, mfBlue( SALCOLOR_BLUE(nSalColor) * (1.0/255))
-, mfAlpha( 1.0 ) // opaque
+: mfRed( SALCOLOR_RED(nSalColor) * (1.0/255))
+, mfGreen( SALCOLOR_GREEN(nSalColor) * (1.0/255))
+, mfBlue( SALCOLOR_BLUE(nSalColor) * (1.0/255))
+, mfAlpha( 1.0 ) // opaque
{}
inline RGBAColor::RGBAColor( float fRed, float fGreen, float fBlue, float fAlpha )
-: mfRed( fRed )
-, mfGreen( fGreen )
-, mfBlue( fBlue )
-, mfAlpha( fAlpha )
+: mfRed( fRed )
+, mfGreen( fGreen )
+, mfBlue( fBlue )
+, mfAlpha( fAlpha )
{}
#endif // _SV_SALGDI_H
diff --git a/vcl/aqua/inc/salinst.h b/vcl/aqua/inc/salinst.h
index db5b0219f821..3861c0387e93 100644
--- a/vcl/aqua/inc/salinst.h
+++ b/vcl/aqua/inc/salinst.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,15 +50,15 @@ class Image;
class SalYieldMutex : public vcl::SolarMutexObject
{
- ULONG mnCount;
+ ULONG mnCount;
oslThreadIdentifier mnThreadId;
public:
SalYieldMutex();
- virtual void acquire();
- virtual void release();
- virtual sal_Bool tryToAcquire();
- ULONG GetAcquireCount() const { return mnCount; }
+ virtual void acquire();
+ virtual void release();
+ virtual sal_Bool tryToAcquire();
+ ULONG GetAcquireCount() const { return mnCount; }
oslThreadIdentifier GetThreadId() const { return mnThreadId; }
};
@@ -85,14 +85,14 @@ class AquaSalInstance : public SalInstance
AquaSalFrame* mpFrame;
void* mpData;
USHORT mnType;
-
+
SalUserEvent( AquaSalFrame* pFrame, void* pData, USHORT nType ) :
mpFrame( pFrame ), mpData( pData ), mnType( nType )
{}
};
-
+
public:
- SalYieldMutex* mpSalYieldMutex; // Sal-Yield-Mutex
+ SalYieldMutex* mpSalYieldMutex; // Sal-Yield-Mutex
rtl::OUString maDefaultPrinter;
oslThreadIdentifier maMainThread;
bool mbWaitingYield;
@@ -103,47 +103,47 @@ public:
typedef std::list<const ApplicationEvent*> AppEventList;
static AppEventList aAppEventList;
-
+
public:
AquaSalInstance();
virtual ~AquaSalInstance();
virtual SalSystem* CreateSystem();
virtual void DestroySystem(SalSystem*);
- virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
- virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
- virtual void DestroyFrame( SalFrame* pFrame );
- virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
- virtual void DestroyObject( SalObject* pObject );
- virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
+ virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
+ virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
+ virtual void DestroyFrame( SalFrame* pFrame );
+ virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
+ virtual void DestroyObject( SalObject* pObject );
+ virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
long nDX, long nDY,
USHORT nBitCount, const SystemGraphicsData *pData );
- virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
+ virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
- virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
+ virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData );
- virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
- virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
- virtual void DestroyPrinter( SalPrinter* pPrinter );
- virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
- virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
- virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
+ virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
+ virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
+ virtual void DestroyPrinter( SalPrinter* pPrinter );
+ virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
+ virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
+ virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
virtual String GetDefaultPrinter();
- virtual SalTimer* CreateSalTimer();
- virtual SalI18NImeStatus* CreateI18NImeStatus();
- virtual SalSystem* CreateSalSystem();
- virtual SalBitmap* CreateSalBitmap();
+ virtual SalTimer* CreateSalTimer();
+ virtual SalI18NImeStatus* CreateI18NImeStatus();
+ virtual SalSystem* CreateSalSystem();
+ virtual SalBitmap* CreateSalBitmap();
virtual osl::SolarMutex* GetYieldMutex();
- virtual ULONG ReleaseYieldMutex();
- virtual void AcquireYieldMutex( ULONG nCount );
- virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
- virtual bool AnyInput( USHORT nType );
- virtual SalMenu* CreateMenu( BOOL bMenuBar );
- virtual void DestroyMenu( SalMenu* );
- virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
- virtual void DestroyMenuItem( SalMenuItem* );
+ virtual ULONG ReleaseYieldMutex();
+ virtual void AcquireYieldMutex( ULONG nCount );
+ virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
+ virtual bool AnyInput( USHORT nType );
+ virtual SalMenu* CreateMenu( BOOL bMenuBar );
+ virtual void DestroyMenu( SalMenu* );
+ virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
+ virtual void DestroyMenuItem( SalMenuItem* );
virtual SalSession* CreateSalSession();
- virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+ virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
virtual void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
virtual void SetEventCallback( void* pInstance, bool(*pCallback)(void*,void*,int) );
virtual void SetErrorEventCallback( void* pInstance, bool(*pCallback)(void*,void*,int) );
@@ -155,31 +155,31 @@ public:
virtual com::sun::star::uno::Reference< com::sun::star::uno::XInterface > CreateDropTarget();
static void handleAppDefinedEvent( NSEvent* pEvent );
-
+
// check whether a particular string is passed on the command line
// this is needed to avoid duplicate open events through a) command line and b) NSApp's openFile
static bool isOnCommandLine( const rtl::OUString& );
-
+
void wakeupYield();
public:
friend class AquaSalFrame;
-
+
void PostUserEvent( AquaSalFrame* pFrame, USHORT nType, void* pData );
void delayedSettingsChanged( bool bInvalidate );
-
+
bool isNSAppThread() const;
-
+
void startedPrintJob() { mnActivePrintJobs++; }
void endedPrintJob() { mnActivePrintJobs--; }
-
+
// event subtypes for NSApplicationDefined events
static const short AppExecuteSVMain = 0x7fff;
static const short AppEndLoopEvent = 1;
static const short AppStartTimerEvent = 10;
static const short AppleRemoteEvent = 15;
static const short YieldWakeupEvent = 20;
-
+
static NSMenu* GetDynamicDockMenu();
};
diff --git a/vcl/aqua/inc/salmathutils.hxx b/vcl/aqua/inc/salmathutils.hxx
index e81f68e46b0b..e70735a04758 100644
--- a/vcl/aqua/inc/salmathutils.hxx
+++ b/vcl/aqua/inc/salmathutils.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ struct LRectCoor
//
// ------------------------------------------------------------------
-// LRectCoorVec is an abreviation for vectors in rectangular
+// LRectCoorVec is an abreviation for vectors in rectangular
// coordinates represented as long integers
typedef struct LRectCoor LRectCoor;
@@ -85,6 +85,6 @@ unsigned long Euclidian2Norm ( const LRectCoorVector pVec );
}
#endif
-#endif // _SV_SALMATHUTILS_HXX
+#endif // _SV_SALMATHUTILS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/inc/salmenu.h b/vcl/aqua/inc/salmenu.h
index 0d30deedb176..812399128c50 100644
--- a/vcl/aqua/inc/salmenu.h
+++ b/vcl/aqua/inc/salmenu.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ public: // for OOStatusView
};
private:
std::vector< MenuBarButtonEntry > maButtons;
-
+
MenuBarButtonEntry* findButtonItem( USHORT i_nItemId );
void releaseButtonEntry( MenuBarButtonEntry& i_rEntry );
static void statusLayout();
@@ -86,14 +86,14 @@ public:
int getItemIndexByPos( USHORT nPos ) const;
const AquaSalFrame* getFrame() const;
-
+
void setMainMenu();
static void unsetMainMenu();
static void setDefaultMenu();
static void enableMainMenu( bool bEnable );
static void addFallbackMenuItem( NSMenuItem* NewItem );
static void removeFallbackMenuItem( NSMenuItem* pOldItem );
-
+
const std::vector< MenuBarButtonEntry >& getButtons() const { return maButtons; }
bool mbMenuBar; // true - Menubar, false - Menu
@@ -101,9 +101,9 @@ public:
Menu* mpVCLMenu; // the corresponding vcl Menu object
const AquaSalFrame* mpFrame; // the frame to dispatch the menu events to
AquaSalMenu* mpParentSalMenu; // the parent menu that contains us (and perhaps has a frame)
-
+
static const AquaSalMenu* pCurrentMenuBar;
-
+
};
class AquaSalMenuItem : public SalMenuItem
diff --git a/vcl/aqua/inc/salnativewidgets.h b/vcl/aqua/inc/salnativewidgets.h
index fd6226c8030b..86db06d1180e 100644
--- a/vcl/aqua/inc/salnativewidgets.h
+++ b/vcl/aqua/inc/salnativewidgets.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
//tabs
#define TAB_HEIGHT_NORMAL 20
#define TAB_HEIGHT_SMALL 17
-#define TAB_HEIGHT_MINI 15
+#define TAB_HEIGHT_MINI 15
#define TAB_TEXT_OFFSET 12
#define VCL_TAB_TEXT_OFFSET 2
@@ -69,6 +69,6 @@
#define CLIP_FUZZ 1
-#endif // _SV_NATIVEWIDGETS_H
+#endif // _SV_NATIVEWIDGETS_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/inc/salnsmenu.h b/vcl/aqua/inc/salnsmenu.h
index fac4aec75792..eb29c3d6a47b 100644
--- a/vcl/aqua/inc/salnsmenu.h
+++ b/vcl/aqua/inc/salnsmenu.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/salnstimer.h b/vcl/aqua/inc/salnstimer.h
index 5c4ba0eea430..8e3f8dfc6cad 100644
--- a/vcl/aqua/inc/salnstimer.h
+++ b/vcl/aqua/inc/salnstimer.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/salobj.h b/vcl/aqua/inc/salobj.h
index 99dea9483b4b..d48d807f11fb 100644
--- a/vcl/aqua/inc/salobj.h
+++ b/vcl/aqua/inc/salobj.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,40 +48,40 @@ struct SalObjectData
class AquaSalObject : public SalObject
{
public:
- AquaSalFrame* mpFrame; // parent frame
+ AquaSalFrame* mpFrame; // parent frame
NSClipView* mpClipView;
SystemEnvData maSysData;
-
+
long mnClipX;
long mnClipY;
long mnClipWidth;
long mnClipHeight;
bool mbClip;
-
+
long mnX;
long mnY;
long mnWidth;
long mnHeight;
-
-
+
+
void setClippedPosSize();
-
+
AquaSalObject( AquaSalFrame* pFrame );
virtual ~AquaSalObject();
-
- virtual void ResetClipRegion();
- virtual USHORT GetClipRegionType();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
- virtual void Show( BOOL bVisible );
- virtual void Enable( BOOL nEnable );
- virtual void GrabFocus();
- virtual void SetBackground();
- virtual void SetBackground( SalColor nSalColor );
- virtual const SystemEnvData* GetSystemData() const;
+
+ virtual void ResetClipRegion();
+ virtual USHORT GetClipRegionType();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
+ virtual void Show( BOOL bVisible );
+ virtual void Enable( BOOL nEnable );
+ virtual void GrabFocus();
+ virtual void SetBackground();
+ virtual void SetBackground( SalColor nSalColor );
+ virtual const SystemEnvData* GetSystemData() const;
};
#endif // _SV_SALOBJ_H
diff --git a/vcl/aqua/inc/salprn.h b/vcl/aqua/inc/salprn.h
index 3682ea6b5a9f..bcae1cb8ffc1 100644
--- a/vcl/aqua/inc/salprn.h
+++ b/vcl/aqua/inc/salprn.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,56 +45,56 @@ class AquaSalGraphics;
class AquaSalInfoPrinter : public SalInfoPrinter
{
/// Printer graphics
- AquaSalGraphics* mpGraphics;
+ AquaSalGraphics* mpGraphics;
/// is Graphics used
- bool mbGraphics;
+ bool mbGraphics;
/// job active ?
bool mbJob;
-
+
/// cocoa printer object
NSPrinter* mpPrinter;
/// cocoa print info object
NSPrintInfo* mpPrintInfo;
-
+
/// FIXME: get real printer context for infoprinter if possible
/// fake context for info printer
/// graphics context for Quartz 2D
- CGContextRef mrContext;
+ CGContextRef mrContext;
/// memory for graphics bitmap context for querying metrics
boost::shared_array< sal_uInt8 > maContextMemory;
-
+
// since changes to NSPrintInfo during a job are ignored
// we have to care for some settings ourselves
// currently we do this for orientation;
// really needed however is a solution for paper formats
Orientation mePageOrientation;
-
+
int mnStartPageOffsetX;
int mnStartPageOffsetY;
sal_Int32 mnCurPageRangeStart;
sal_Int32 mnCurPageRangeCount;
-
+
public:
AquaSalInfoPrinter( const SalPrinterQueueInfo& pInfo );
virtual ~AquaSalInfoPrinter();
-
+
void SetupPrinterGraphics( CGContextRef i_xContext ) const;
-
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* i_pGraphics );
- virtual BOOL Setup( SalFrame* i_pFrame, ImplJobSetup* i_pSetupData );
- virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
- virtual BOOL SetData( ULONG i_nFlags, ImplJobSetup* i_pSetupData );
- virtual void GetPageInfo( const ImplJobSetup* i_pSetupData,
+
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* i_pGraphics );
+ virtual BOOL Setup( SalFrame* i_pFrame, ImplJobSetup* i_pSetupData );
+ virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
+ virtual BOOL SetData( ULONG i_nFlags, ImplJobSetup* i_pSetupData );
+ virtual void GetPageInfo( const ImplJobSetup* i_pSetupData,
long& o_rOutWidth, long& o_rOutHeight,
long& o_rPageOffX, long& o_rPageOffY,
long& o_rPageWidth, long& o_rPageHeight );
- virtual ULONG GetCapabilities( const ImplJobSetup* i_pSetupData, USHORT i_nType );
- virtual ULONG GetPaperBinCount( const ImplJobSetup* i_pSetupData );
- virtual String GetPaperBinName( const ImplJobSetup* i_pSetupData, ULONG i_nPaperBin );
- virtual void InitPaperFormats( const ImplJobSetup* i_pSetupData );
- virtual int GetLandscapeAngle( const ImplJobSetup* i_pSetupData );
-
+ virtual ULONG GetCapabilities( const ImplJobSetup* i_pSetupData, USHORT i_nType );
+ virtual ULONG GetPaperBinCount( const ImplJobSetup* i_pSetupData );
+ virtual String GetPaperBinName( const ImplJobSetup* i_pSetupData, ULONG i_nPaperBin );
+ virtual void InitPaperFormats( const ImplJobSetup* i_pSetupData );
+ virtual int GetLandscapeAngle( const ImplJobSetup* i_pSetupData );
+
// the artificial separation between InfoPrinter and Printer
// is not really useful for us
// so let's make AquaSalPrinter just a forwarder to AquaSalInfoPrinter
@@ -105,21 +105,21 @@ class AquaSalInfoPrinter : public SalInfoPrinter
const String& i_rAppName,
ImplJobSetup* i_pSetupData,
vcl::PrinterController& i_rController );
- BOOL EndJob();
- BOOL AbortJob();
- SalGraphics* StartPage( ImplJobSetup* i_pSetupData, BOOL i_bNewJobData );
- BOOL EndPage();
- ULONG GetErrorCode() const;
-
+ BOOL EndJob();
+ BOOL AbortJob();
+ SalGraphics* StartPage( ImplJobSetup* i_pSetupData, BOOL i_bNewJobData );
+ BOOL EndPage();
+ ULONG GetErrorCode() const;
+
NSPrintInfo* getPrintInfo() const { return mpPrintInfo; }
void setStartPageOffset( int nOffsetX, int nOffsetY ) { mnStartPageOffsetX = nOffsetX; mnStartPageOffsetY = nOffsetY; }
sal_Int32 getCurPageRangeStart() const { return mnCurPageRangeStart; }
sal_Int32 getCurPageRangeCount() const { return mnCurPageRangeCount; }
-
+
// match width/height against known paper formats, possibly switching orientation
const PaperInfo* matchPaper( long i_nWidth, long i_nHeight, Orientation& o_rOrientation ) const;
void setPaperSize( long i_nWidth, long i_nHeight, Orientation i_eSetOrientation );
-
+
private:
AquaSalInfoPrinter( const AquaSalInfoPrinter& );
AquaSalInfoPrinter& operator=(const AquaSalInfoPrinter&);
@@ -131,12 +131,12 @@ class AquaSalInfoPrinter : public SalInfoPrinter
class AquaSalPrinter : public SalPrinter
{
- AquaSalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter
+ AquaSalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter
public:
AquaSalPrinter( AquaSalInfoPrinter* i_pInfoPrinter );
virtual ~AquaSalPrinter();
-
- virtual BOOL StartJob( const XubString* i_pFileName,
+
+ virtual BOOL StartJob( const XubString* i_pFileName,
const XubString& i_rJobName,
const XubString& i_rAppName,
ULONG i_nCopies,
@@ -149,13 +149,13 @@ class AquaSalPrinter : public SalPrinter
const String& i_rAppName,
ImplJobSetup* i_pSetupData,
vcl::PrinterController& i_rListener );
-
- virtual BOOL EndJob();
- virtual BOOL AbortJob();
- virtual SalGraphics* StartPage( ImplJobSetup* i_pSetupData, BOOL i_bNewJobData );
- virtual BOOL EndPage();
- virtual ULONG GetErrorCode();
-
+
+ virtual BOOL EndJob();
+ virtual BOOL AbortJob();
+ virtual SalGraphics* StartPage( ImplJobSetup* i_pSetupData, BOOL i_bNewJobData );
+ virtual BOOL EndPage();
+ virtual ULONG GetErrorCode();
+
private:
AquaSalPrinter( const AquaSalPrinter& );
AquaSalPrinter& operator=(const AquaSalPrinter&);
diff --git a/vcl/aqua/inc/salsys.h b/vcl/aqua/inc/salsys.h
index 964da669301b..b0919c0c55a4 100644
--- a/vcl/aqua/inc/salsys.h
+++ b/vcl/aqua/inc/salsys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/saltimer.h b/vcl/aqua/inc/saltimer.h
index 0651ec584fef..929d16981c9b 100644
--- a/vcl/aqua/inc/saltimer.h
+++ b/vcl/aqua/inc/saltimer.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ class AquaSalTimer : public SalTimer
void Start( ULONG nMS );
void Stop();
-
+
static void handleStartTimerEvent( NSEvent* pEvent );
diff --git a/vcl/aqua/inc/salvd.h b/vcl/aqua/inc/salvd.h
index 5970c07f7f9c..117c42c0af88 100644
--- a/vcl/aqua/inc/salvd.h
+++ b/vcl/aqua/inc/salvd.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,9 +83,9 @@ private:
public:
AquaSalVirtualDevice( AquaSalGraphics* pGraphic, long nDX, long nDY, USHORT nBitCount, const SystemGraphicsData *pData );
virtual ~AquaSalVirtualDevice();
-
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
+
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
virtual BOOL SetSize( long nNewDX, long nNewDY );
virtual void GetSize( long& rWidth, long& rHeight );
};
diff --git a/vcl/aqua/inc/svsys.h b/vcl/aqua/inc/svsys.h
index 291e7801db75..4856908a3852 100644
--- a/vcl/aqua/inc/svsys.h
+++ b/vcl/aqua/inc/svsys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/inc/vclnsapp.h b/vcl/aqua/inc/vclnsapp.h
index 316f7e6af153..c8fbf12afffb 100644
--- a/vcl/aqua/inc/vclnsapp.h
+++ b/vcl/aqua/inc/vclnsapp.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11yactionwrapper.h b/vcl/aqua/source/a11y/aqua11yactionwrapper.h
index 0fd2fa1e25ff..749a9bda98ac 100644
--- a/vcl/aqua/source/a11y/aqua11yactionwrapper.h
+++ b/vcl/aqua/source/a11y/aqua11yactionwrapper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ycomponentwrapper.h b/vcl/aqua/source/a11y/aqua11ycomponentwrapper.h
index 3968e71f4992..8f83e650d0d3 100644
--- a/vcl/aqua/source/a11y/aqua11ycomponentwrapper.h
+++ b/vcl/aqua/source/a11y/aqua11ycomponentwrapper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11yfocuslistener.cxx b/vcl/aqua/source/a11y/aqua11yfocuslistener.cxx
index 8e93bd450bf8..7ed4b9bccc66 100644
--- a/vcl/aqua/source/a11y/aqua11yfocuslistener.cxx
+++ b/vcl/aqua/source/a11y/aqua11yfocuslistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ rtl::Reference< AquaA11yFocusListener > AquaA11yFocusListener::get()
{
if ( ! theListener.is() )
theListener = new AquaA11yFocusListener();
-
+
return theListener;
}
@@ -73,20 +73,20 @@ id AquaA11yFocusListener::getFocusedUIElement()
// intentionally do nothing ..
}
}
-
+
return m_focusedObject;
}
//------------------------------------------------------------------------------
-void SAL_CALL
+void SAL_CALL
AquaA11yFocusListener::focusedObjectChanged(const Reference< XAccessible >& xAccessible)
{
if ( nil != m_focusedObject ) {
[ m_focusedObject release ];
m_focusedObject = nil;
}
-
+
try {
if( xAccessible.is() ) {
Reference< XAccessibleContext > xContext(xAccessible->getAccessibleContext());
@@ -103,18 +103,18 @@ AquaA11yFocusListener::focusedObjectChanged(const Reference< XAccessible >& xAcc
//------------------------------------------------------------------------------
-oslInterlockedCount SAL_CALL
+oslInterlockedCount SAL_CALL
AquaA11yFocusListener::acquire() SAL_THROW(())
-{
- return ReferenceObject::acquire();
+{
+ return ReferenceObject::acquire();
}
//------------------------------------------------------------------------------
-oslInterlockedCount SAL_CALL
+oslInterlockedCount SAL_CALL
AquaA11yFocusListener::release() SAL_THROW(())
-{
- return ReferenceObject::release();
+{
+ return ReferenceObject::release();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/source/a11y/aqua11yfocuslistener.hxx b/vcl/aqua/source/a11y/aqua11yfocuslistener.hxx
index 192a1f04e278..0fbbc896f1b3 100644
--- a/vcl/aqua/source/a11y/aqua11yfocuslistener.hxx
+++ b/vcl/aqua/source/a11y/aqua11yfocuslistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,12 +34,12 @@
#include "keyboardfocuslistener.hxx"
#include "aquavcltypes.h"
-class AquaA11yFocusListener :
+class AquaA11yFocusListener :
public KeyboardFocusListener,
public salhelper::ReferenceObject
{
id m_focusedObject;
-
+
static rtl::Reference< AquaA11yFocusListener > theListener;
AquaA11yFocusListener::AquaA11yFocusListener();
@@ -47,15 +47,15 @@ class AquaA11yFocusListener :
public:
static rtl::Reference< AquaA11yFocusListener > get();
-
+
id getFocusedUIElement();
// KeyboardFocusListener
virtual void SAL_CALL focusedObjectChanged(const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& xAccessible);
-
+
// rtl::IReference
virtual oslInterlockedCount SAL_CALL acquire() SAL_THROW(());
- virtual oslInterlockedCount SAL_CALL release() SAL_THROW(());
+ virtual oslInterlockedCount SAL_CALL release() SAL_THROW(());
};
#endif // _AQUA11YFOCUSLISTENER_HXX_
diff --git a/vcl/aqua/source/a11y/aqua11yfocustracker.cxx b/vcl/aqua/source/a11y/aqua11yfocustracker.cxx
index f4b5393c7e8f..53e12b516aed 100644
--- a/vcl/aqua/source/a11y/aqua11yfocustracker.cxx
+++ b/vcl/aqua/source/a11y/aqua11yfocustracker.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ using namespace ::com::sun::star::uno;
//------------------------------------------------------------------------------
-static inline Window *
+static inline Window *
getWindow(const ::VclSimpleEvent *pEvent)
{
return static_cast< const ::VclWindowEvent *> (pEvent)->GetWindow();
@@ -87,13 +87,13 @@ long AquaA11yFocusTracker::WindowEventHandler(AquaA11yFocusTracker *pFocusTracke
default:
break;
};
-
+
return 0;
}
//------------------------------------------------------------------------------
-AquaA11yFocusTracker::AquaA11yFocusTracker() :
+AquaA11yFocusTracker::AquaA11yFocusTracker() :
m_aWindowEventLink(this, (PSTUB) WindowEventHandler),
m_xDocumentFocusListener(new DocumentFocusListener(*this))
{
@@ -106,9 +106,9 @@ AquaA11yFocusTracker::AquaA11yFocusTracker() :
void AquaA11yFocusTracker::setFocusedObject(const Reference< XAccessible >& xAccessible)
{
if( xAccessible != m_xFocusedObject )
- {
+ {
m_xFocusedObject = xAccessible;
-
+
if( m_aFocusListener.is() )
m_aFocusListener->focusedObjectChanged(xAccessible);
}
@@ -119,7 +119,7 @@ void AquaA11yFocusTracker::setFocusedObject(const Reference< XAccessible >& xAcc
void AquaA11yFocusTracker::notify_toolbox_item_focus(ToolBox *pToolBox)
{
Reference< XAccessible > xAccessible( pToolBox->GetAccessible() );
-
+
if( xAccessible.is() )
{
Reference< XAccessibleContext > xContext(xAccessible->getAccessibleContext());
@@ -179,7 +179,7 @@ void AquaA11yFocusTracker::toolbox_highlight_on(Window *pWindow)
if ( ! pToolBoxParent || ! pToolBoxParent->HasFocus() )
return;
}
-
+
notify_toolbox_item_focus(static_cast <ToolBox *> (pWindow));
}
@@ -188,7 +188,7 @@ void AquaA11yFocusTracker::toolbox_highlight_on(Window *pWindow)
void AquaA11yFocusTracker::toolbox_highlight_off(Window *pWindow)
{
ToolBox* pToolBoxParent = dynamic_cast< ToolBox * >( pWindow->GetParent() );
-
+
// Notify when leaving sub toolboxes
if( pToolBoxParent && pToolBoxParent->HasFocus() )
notify_toolbox_item_focus( pToolBoxParent );
@@ -199,14 +199,14 @@ void AquaA11yFocusTracker::toolbox_highlight_off(Window *pWindow)
void AquaA11yFocusTracker::tabpage_activated(Window *pWindow)
{
Reference< XAccessible > xAccessible( pWindow->GetAccessible() );
-
+
if( xAccessible.is() )
{
Reference< XAccessibleSelection > xSelection(xAccessible->getAccessibleContext(), UNO_QUERY);
-
+
if( xSelection.is() )
setFocusedObject( xSelection->getSelectedAccessibleChild(0) );
- }
+ }
}
//------------------------------------------------------------------------------
@@ -214,7 +214,7 @@ void AquaA11yFocusTracker::tabpage_activated(Window *pWindow)
void AquaA11yFocusTracker::menu_highlighted(const VclMenuEvent *pEvent)
{
Menu * pMenu = pEvent->GetMenu();
-
+
if( pMenu )
{
Reference< XAccessible > xAccessible( pMenu->GetAccessible() );
@@ -231,34 +231,34 @@ void AquaA11yFocusTracker::window_got_focus(Window *pWindow)
// The menu bar is handled through VCLEVENT_MENU_HIGHLIGHTED
if( ! pWindow || !pWindow->IsReallyVisible() || pWindow->GetType() == WINDOW_MENUBARWINDOW )
return;
-
+
// ToolBoxes are handled through VCLEVENT_TOOLBOX_HIGHLIGHT
if( pWindow->GetType() == WINDOW_TOOLBOX )
return;
-
+
if( pWindow->GetType() == WINDOW_TABCONTROL )
{
tabpage_activated( pWindow );
return;
}
-
+
Reference< XAccessible > xAccessible(pWindow->GetAccessible());
-
+
if( ! xAccessible.is() )
return;
-
+
Reference< XAccessibleContext > xContext = xAccessible->getAccessibleContext();
-
+
if( ! xContext.is() )
return;
-
+
Reference< XAccessibleStateSet > xStateSet = xContext->getAccessibleStateSet();
-
+
if( ! xStateSet.is() )
return;
-
+
/* the UNO ToolBox wrapper does not (yet?) support XAccessibleSelection, so we
- * need to add listeners to the children instead of re-using the tabpage stuff
+ * need to add listeners to the children instead of re-using the tabpage stuff
*/
if( xStateSet->contains(AccessibleStateType::FOCUSED) && (pWindow->GetType() != WINDOW_TREELISTBOX) )
{
diff --git a/vcl/aqua/source/a11y/aqua11ylistener.cxx b/vcl/aqua/source/a11y/aqua11ylistener.cxx
index 3b77f054a0ac..782580ff87ae 100644
--- a/vcl/aqua/source/a11y/aqua11ylistener.cxx
+++ b/vcl/aqua/source/a11y/aqua11ylistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#include "aqua11ylistener.hxx"
#include "aqua11yfactory.h"
#include "aqua11yfocustracker.hxx"
@@ -47,16 +47,16 @@ NSString * getTableNotification( const AccessibleEventObject& aEvent )
{
AccessibleTableModelChange aChange;
NSString * notification = nil;
-
+
if( (aEvent.NewValue >>= aChange) &&
( AccessibleTableModelChangeType::INSERT == aChange.Type || AccessibleTableModelChangeType::DELETE == aChange.Type ) &&
aChange.FirstRow != aChange.LastRow )
{
notification = NSAccessibilityRowCountChangedNotification;
}
-
+
return notification;
-}
+}
//------------------------------------------------------------------------------
@@ -67,14 +67,14 @@ AquaA11yEventListener::AquaA11yEventListener(id wrapperObject, sal_Int16 role) :
//------------------------------------------------------------------------------
-AquaA11yEventListener::~AquaA11yEventListener()
+AquaA11yEventListener::~AquaA11yEventListener()
{
[ m_wrapperObject release ];
}
//------------------------------------------------------------------------------
-void SAL_CALL
+void SAL_CALL
AquaA11yEventListener::disposing( const EventObject& Source ) throw( RuntimeException )
{
[ AquaA11yFactory removeFromWrapperRepositoryFor: [ (AquaA11yWrapper *) m_wrapperObject accessibleContext ] ];
@@ -82,13 +82,13 @@ AquaA11yEventListener::disposing( const EventObject& Source ) throw( RuntimeExce
//------------------------------------------------------------------------------
-void SAL_CALL
+void SAL_CALL
AquaA11yEventListener::notifyEvent( const AccessibleEventObject& aEvent ) throw( RuntimeException )
{
NSString * notification = nil;
id element = m_wrapperObject;
Rectangle bounds;
-
+
// TODO: NSAccessibilityValueChanged, NSAccessibilitySelectedRowsChangedNotification
switch( aEvent.EventId )
{
@@ -99,11 +99,11 @@ AquaA11yEventListener::notifyEvent( const AccessibleEventObject& aEvent ) throw(
AquaA11yFocusTracker::get().setFocusedObject( xAccessible );
}
break;
-
+
case AccessibleEventId::NAME_CHANGED:
notification = NSAccessibilityTitleChangedNotification;
break;
-
+
case AccessibleEventId::CHILD:
// only needed for tooltips (says Apple)
if ( m_role == AccessibleRole::TOOL_TIP ) {
@@ -114,11 +114,11 @@ AquaA11yEventListener::notifyEvent( const AccessibleEventObject& aEvent ) throw(
}
}
break;
-
+
case AccessibleEventId::INVALIDATE_ALL_CHILDREN:
- // TODO: depricate or remember all children
+ // TODO: depricate or remember all children
break;
-
+
case AccessibleEventId::BOUNDRECT_CHANGED:
bounds = [ element accessibleComponent ] -> getBounds();
if ( m_oldBounds.X != 0 && ( bounds.X != m_oldBounds.X || bounds.Y != m_oldBounds.Y ) ) {
@@ -129,23 +129,23 @@ AquaA11yEventListener::notifyEvent( const AccessibleEventObject& aEvent ) throw(
}
m_oldBounds = bounds;
break;
-
+
case AccessibleEventId::SELECTION_CHANGED:
notification = NSAccessibilitySelectedChildrenChangedNotification;
break;
-
+
case AccessibleEventId::TEXT_SELECTION_CHANGED:
notification = NSAccessibilitySelectedTextChangedNotification;
break;
-
+
case AccessibleEventId::TABLE_MODEL_CHANGED:
notification = getTableNotification(aEvent);
break;
-
+
case AccessibleEventId::CARET_CHANGED:
notification = NSAccessibilitySelectedTextChangedNotification;
break;
-
+
case AccessibleEventId::TEXT_CHANGED:
notification = NSAccessibilityValueChangedNotification;
break;
@@ -153,7 +153,7 @@ AquaA11yEventListener::notifyEvent( const AccessibleEventObject& aEvent ) throw(
default:
break;
}
-
+
if( nil != notification )
NSAccessibilityPostNotification(element, notification);
}
diff --git a/vcl/aqua/source/a11y/aqua11yrolehelper.h b/vcl/aqua/source/a11y/aqua11yrolehelper.h
index 38328c6a3d46..66e6e91b75d7 100644
--- a/vcl/aqua/source/a11y/aqua11yrolehelper.h
+++ b/vcl/aqua/source/a11y/aqua11yrolehelper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11yselectionwrapper.h b/vcl/aqua/source/a11y/aqua11yselectionwrapper.h
index 56a77ae9b728..ade4cf14a1b0 100644
--- a/vcl/aqua/source/a11y/aqua11yselectionwrapper.h
+++ b/vcl/aqua/source/a11y/aqua11yselectionwrapper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ytablewrapper.h b/vcl/aqua/source/a11y/aqua11ytablewrapper.h
index 8f3e48364257..acaa50bd43ee 100644
--- a/vcl/aqua/source/a11y/aqua11ytablewrapper.h
+++ b/vcl/aqua/source/a11y/aqua11ytablewrapper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.h b/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.h
index d7159de9f526..c54cbc360a9f 100644
--- a/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.h
+++ b/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ytextwrapper.h b/vcl/aqua/source/a11y/aqua11ytextwrapper.h
index c793ae01a69e..b4bc25cb0a4c 100644
--- a/vcl/aqua/source/a11y/aqua11ytextwrapper.h
+++ b/vcl/aqua/source/a11y/aqua11ytextwrapper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11yutil.h b/vcl/aqua/source/a11y/aqua11yutil.h
index 5007def0487b..7939685e8c34 100644
--- a/vcl/aqua/source/a11y/aqua11yutil.h
+++ b/vcl/aqua/source/a11y/aqua11yutil.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11yvaluewrapper.h b/vcl/aqua/source/a11y/aqua11yvaluewrapper.h
index 6b92718cc808..dbe8671f9948 100644
--- a/vcl/aqua/source/a11y/aqua11yvaluewrapper.h
+++ b/vcl/aqua/source/a11y/aqua11yvaluewrapper.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrapperbutton.h b/vcl/aqua/source/a11y/aqua11ywrapperbutton.h
index d232e111865e..b4ab2b19eed5 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapperbutton.h
+++ b/vcl/aqua/source/a11y/aqua11ywrapperbutton.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrappercheckbox.h b/vcl/aqua/source/a11y/aqua11ywrappercheckbox.h
index e689e829a6e2..d855d8e485ca 100644
--- a/vcl/aqua/source/a11y/aqua11ywrappercheckbox.h
+++ b/vcl/aqua/source/a11y/aqua11ywrappercheckbox.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrappercombobox.h b/vcl/aqua/source/a11y/aqua11ywrappercombobox.h
index ea58a227ed95..bc52420300f6 100644
--- a/vcl/aqua/source/a11y/aqua11ywrappercombobox.h
+++ b/vcl/aqua/source/a11y/aqua11ywrappercombobox.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrappergroup.h b/vcl/aqua/source/a11y/aqua11ywrappergroup.h
index 0e6deae658d1..622e9d51b038 100644
--- a/vcl/aqua/source/a11y/aqua11ywrappergroup.h
+++ b/vcl/aqua/source/a11y/aqua11ywrappergroup.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrapperlist.h b/vcl/aqua/source/a11y/aqua11ywrapperlist.h
index d0b0b17d3769..f6ddb58c3dd3 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapperlist.h
+++ b/vcl/aqua/source/a11y/aqua11ywrapperlist.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrapperradiobutton.h b/vcl/aqua/source/a11y/aqua11ywrapperradiobutton.h
index 6edc9b139b70..6df01c0147a5 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapperradiobutton.h
+++ b/vcl/aqua/source/a11y/aqua11ywrapperradiobutton.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrapperradiogroup.h b/vcl/aqua/source/a11y/aqua11ywrapperradiogroup.h
index f73a746046ad..a37c89ba194e 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapperradiogroup.h
+++ b/vcl/aqua/source/a11y/aqua11ywrapperradiogroup.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrapperrow.h b/vcl/aqua/source/a11y/aqua11ywrapperrow.h
index b4956ec466af..d4f4eca1e0ed 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapperrow.h
+++ b/vcl/aqua/source/a11y/aqua11ywrapperrow.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrapperscrollarea.h b/vcl/aqua/source/a11y/aqua11ywrapperscrollarea.h
index b92d9ac4a1cb..31ce6be739b3 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapperscrollarea.h
+++ b/vcl/aqua/source/a11y/aqua11ywrapperscrollarea.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrapperscrollbar.h b/vcl/aqua/source/a11y/aqua11ywrapperscrollbar.h
index 8fc87d02b0fe..81ba622c9549 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapperscrollbar.h
+++ b/vcl/aqua/source/a11y/aqua11ywrapperscrollbar.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrappersplitter.h b/vcl/aqua/source/a11y/aqua11ywrappersplitter.h
index dfe39d88949e..535b79bed0ac 100644
--- a/vcl/aqua/source/a11y/aqua11ywrappersplitter.h
+++ b/vcl/aqua/source/a11y/aqua11ywrappersplitter.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrapperstatictext.h b/vcl/aqua/source/a11y/aqua11ywrapperstatictext.h
index a87f238b6027..024368f8fa58 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapperstatictext.h
+++ b/vcl/aqua/source/a11y/aqua11ywrapperstatictext.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrappertabgroup.h b/vcl/aqua/source/a11y/aqua11ywrappertabgroup.h
index 9c448c057eff..cfad97feacc3 100644
--- a/vcl/aqua/source/a11y/aqua11ywrappertabgroup.h
+++ b/vcl/aqua/source/a11y/aqua11ywrappertabgroup.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrappertextarea.h b/vcl/aqua/source/a11y/aqua11ywrappertextarea.h
index 3e11797bb383..9a73adc18509 100644
--- a/vcl/aqua/source/a11y/aqua11ywrappertextarea.h
+++ b/vcl/aqua/source/a11y/aqua11ywrappertextarea.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/aqua11ywrappertoolbar.h b/vcl/aqua/source/a11y/aqua11ywrappertoolbar.h
index e7163fd8b373..6467abe643ed 100644
--- a/vcl/aqua/source/a11y/aqua11ywrappertoolbar.h
+++ b/vcl/aqua/source/a11y/aqua11ywrappertoolbar.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/a11y/documentfocuslistener.cxx b/vcl/aqua/source/a11y/documentfocuslistener.cxx
index 964f629bff51..a9f526f4b28a 100644
--- a/vcl/aqua/source/a11y/documentfocuslistener.cxx
+++ b/vcl/aqua/source/a11y/documentfocuslistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#include "documentfocuslistener.hxx"
#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
@@ -33,16 +33,16 @@
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
-
+
using namespace ::com::sun::star::accessibility;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;
-
+
//------------------------------------------------------------------------------
DocumentFocusListener::DocumentFocusListener(AquaA11yFocusTracker& rTracker) :
- m_aFocusTracker(rTracker)
+ m_aFocusTracker(rTracker)
{
}
@@ -52,7 +52,7 @@ void SAL_CALL
DocumentFocusListener::disposing( const EventObject& aEvent )
throw (RuntimeException)
{
- // Unref the object here, but do not remove as listener since the object
+ // Unref the object here, but do not remove as listener since the object
// might no longer be in a state that safely allows this.
if( aEvent.Source.is() )
m_aRefList.erase(aEvent.Source);
@@ -60,18 +60,18 @@ DocumentFocusListener::disposing( const EventObject& aEvent )
//------------------------------------------------------------------------------
-void SAL_CALL
-DocumentFocusListener::notifyEvent( const AccessibleEventObject& aEvent )
+void SAL_CALL
+DocumentFocusListener::notifyEvent( const AccessibleEventObject& aEvent )
throw( RuntimeException )
{
switch( aEvent.EventId )
{
case AccessibleEventId::STATE_CHANGED:
- try
+ try
{
sal_Int16 nState = AccessibleStateType::INVALID;
aEvent.NewValue >>= nState;
-
+
if( AccessibleStateType::FOCUSED == nState )
m_aFocusTracker.setFocusedObject( getAccessible(aEvent) );
}
@@ -80,18 +80,18 @@ DocumentFocusListener::notifyEvent( const AccessibleEventObject& aEvent )
OSL_TRACE("Focused object has invalid index in parent");
}
break;
-
+
case AccessibleEventId::CHILD:
{
Reference< XAccessible > xChild;
if( (aEvent.OldValue >>= xChild) && xChild.is() )
detachRecursive(xChild);
-
+
if( (aEvent.NewValue >>= xChild) && xChild.is() )
attachRecursive(xChild);
}
break;
-
+
case AccessibleEventId::INVALIDATE_ALL_CHILDREN:
{
Reference< XAccessible > xAccessible( getAccessible(aEvent) );
@@ -112,10 +112,10 @@ Reference< XAccessible > DocumentFocusListener::getAccessible(const EventObject&
throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessible > xAccessible(aEvent.Source, UNO_QUERY);
-
+
if( xAccessible.is() )
return xAccessible;
-
+
Reference< XAccessibleContext > xContext(aEvent.Source, UNO_QUERY);
if( xContext.is() )
@@ -130,13 +130,13 @@ Reference< XAccessible > DocumentFocusListener::getAccessible(const EventObject&
}
}
}
-
+
return Reference< XAccessible >();
}
//------------------------------------------------------------------------------
-void DocumentFocusListener::attachRecursive(const Reference< XAccessible >& xAccessible)
+void DocumentFocusListener::attachRecursive(const Reference< XAccessible >& xAccessible)
throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessibleContext > xContext = xAccessible->getAccessibleContext();
@@ -148,8 +148,8 @@ void DocumentFocusListener::attachRecursive(const Reference< XAccessible >& xAcc
//------------------------------------------------------------------------------
void DocumentFocusListener::attachRecursive(
- const Reference< XAccessible >& xAccessible,
- const Reference< XAccessibleContext >& xContext
+ const Reference< XAccessible >& xAccessible,
+ const Reference< XAccessibleContext >& xContext
) throw (IndexOutOfBoundsException, RuntimeException)
{
if( xContext.is() )
@@ -164,13 +164,13 @@ void DocumentFocusListener::attachRecursive(
//------------------------------------------------------------------------------
void DocumentFocusListener::attachRecursive(
- const Reference< XAccessible >& xAccessible,
+ const Reference< XAccessible >& xAccessible,
const Reference< XAccessibleContext >& xContext,
- const Reference< XAccessibleStateSet >& xStateSet
+ const Reference< XAccessibleStateSet >& xStateSet
) throw (IndexOutOfBoundsException,RuntimeException)
{
if( xStateSet->contains(AccessibleStateType::FOCUSED ) )
- m_aFocusTracker.setFocusedObject( xAccessible );
+ m_aFocusTracker.setFocusedObject( xAccessible );
Reference< XAccessibleEventBroadcaster > xBroadcaster =
Reference< XAccessibleEventBroadcaster >(xContext, UNO_QUERY);
@@ -186,7 +186,7 @@ void DocumentFocusListener::attachRecursive(
for( n = 0; n < nmax; n++ )
{
Reference< XAccessible > xChild( xContext->getAccessibleChild( n ) );
-
+
if( xChild.is() )
attachRecursive(xChild);
}
@@ -196,7 +196,7 @@ void DocumentFocusListener::attachRecursive(
//------------------------------------------------------------------------------
-void DocumentFocusListener::detachRecursive(const Reference< XAccessible >& xAccessible)
+void DocumentFocusListener::detachRecursive(const Reference< XAccessible >& xAccessible)
throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessibleContext > xContext = xAccessible->getAccessibleContext();
@@ -208,8 +208,8 @@ void DocumentFocusListener::detachRecursive(const Reference< XAccessible >& xAcc
//------------------------------------------------------------------------------
void DocumentFocusListener::detachRecursive(
- const Reference< XAccessible >& xAccessible,
- const Reference< XAccessibleContext >& xContext
+ const Reference< XAccessible >& xAccessible,
+ const Reference< XAccessibleContext >& xContext
) throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessibleStateSet > xStateSet = xContext->getAccessibleStateSet();
@@ -221,9 +221,9 @@ void DocumentFocusListener::detachRecursive(
//------------------------------------------------------------------------------
void DocumentFocusListener::detachRecursive(
- const Reference< XAccessible >&,
+ const Reference< XAccessible >&,
const Reference< XAccessibleContext >& xContext,
- const Reference< XAccessibleStateSet >& xStateSet
+ const Reference< XAccessibleStateSet >& xStateSet
) throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessibleEventBroadcaster > xBroadcaster =
@@ -232,19 +232,19 @@ void DocumentFocusListener::detachRecursive(
if( xBroadcaster.is() && 0 < m_aRefList.erase(xBroadcaster) )
{
xBroadcaster->removeEventListener(static_cast< XAccessibleEventListener *>(this));
-
+
if( ! xStateSet->contains(AccessibleStateType::MANAGES_DESCENDANTS ) )
{
sal_Int32 n, nmax = xContext->getAccessibleChildCount();
for( n = 0; n < nmax; n++ )
{
Reference< XAccessible > xChild( xContext->getAccessibleChild( n ) );
-
+
if( xChild.is() )
detachRecursive(xChild);
}
}
- }
+ }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/source/a11y/documentfocuslistener.hxx b/vcl/aqua/source/a11y/documentfocuslistener.hxx
index 6e3f3bd511ac..5b8ae53c2c68 100644
--- a/vcl/aqua/source/a11y/documentfocuslistener.hxx
+++ b/vcl/aqua/source/a11y/documentfocuslistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
// - DocumentFocusListener -
// -------------------------
-class DocumentFocusListener :
+class DocumentFocusListener :
public ::cppu::WeakImplHelper1< ::com::sun::star::accessibility::XAccessibleEventListener >
{
@@ -82,16 +82,16 @@ public:
throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
// XEventListener
- virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
+ virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
throw (::com::sun::star::uno::RuntimeException);
// XAccessibleEventListener
- virtual void SAL_CALL notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent )
+ virtual void SAL_CALL notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent )
throw( ::com::sun::star::uno::RuntimeException );
private:
std::set< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > > m_aRefList;
-
+
AquaA11yFocusTracker& m_aFocusTracker;
};
diff --git a/vcl/aqua/source/app/saldata.cxx b/vcl/aqua/source/app/saldata.cxx
index 28d3fc0df71b..96ae9829ddcb 100644
--- a/vcl/aqua/source/app/saldata.cxx
+++ b/vcl/aqua/source/app/saldata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ SalData::SalData()
if( s_aAutoReleaseKey == 0 )
s_aAutoReleaseKey = osl_createThreadKey( releasePool );
}
-
+
SalData::~SalData()
{
CGPatternRelease( mxP50Pattern );
@@ -89,7 +89,7 @@ SalData::~SalData()
osl_setThreadKeyData( s_aAutoReleaseKey, NULL );
[pPool release];
}
-
+
osl_destroyThreadKey( s_aAutoReleaseKey );
s_aAutoReleaseKey = 0;
}
@@ -247,11 +247,11 @@ NSCursor* SalData::getCursor( PointerStyle i_eStyle )
{
if( i_eStyle >= POINTER_COUNT )
return nil;
-
+
NSCursor* pCurs = maCursors[ i_eStyle ];
if( pCurs == INVALID_CURSOR_PTR )
{
- pCurs = nil;
+ pCurs = nil;
if( aCursorTab[ i_eStyle ].pBaseName )
{
NSPoint aHotSpot = aCursorTab[ i_eStyle ].aHotSpot;
diff --git a/vcl/aqua/source/app/salinst.cxx b/vcl/aqua/source/app/salinst.cxx
index 2cc777b80cd3..c6f573d99fa4 100644
--- a/vcl/aqua/source/app/salinst.cxx
+++ b/vcl/aqua/source/app/salinst.cxx
@@ -366,7 +366,7 @@ void DeInitSalMain()
SalYieldMutex::SalYieldMutex()
{
- mnCount = 0;
+ mnCount = 0;
mnThreadId = 0;
}
@@ -622,7 +622,7 @@ void AquaSalInstance::handleAppDefinedEvent( NSEvent* pEvent )
// kept for experimentation purpose (scheduled for future implementation)
// case kRemoteButtonMenu: nCommand = MEDIA_COMMAND_MENU; break;
- case kRemoteButtonPlus: nCommand = MEDIA_COMMAND_VOLUME_UP; break;
+ case kRemoteButtonPlus: nCommand = MEDIA_COMMAND_VOLUME_UP; break;
case kRemoteButtonMinus: nCommand = MEDIA_COMMAND_VOLUME_DOWN; break;
@@ -1049,8 +1049,8 @@ void AquaSalInstance::SetErrorEventCallback( void* pInstance, bool(*pCallback)(v
void* AquaSalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes )
{
- rReturnedBytes = 1;
- rReturnedType = AsciiCString;
+ rReturnedBytes = 1;
+ rReturnedType = AsciiCString;
return (void*)"";
}
diff --git a/vcl/aqua/source/app/salsys.cxx b/vcl/aqua/source/app/salsys.cxx
index a7ea84f78113..c279c1c7f88f 100644
--- a/vcl/aqua/source/app/salsys.cxx
+++ b/vcl/aqua/source/app/salsys.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ Rectangle AquaSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
pScreen = [pScreens objectAtIndex: nScreen];
else
pScreen = [NSScreen mainScreen];
-
+
if( pScreen )
{
NSRect aFrame = [pScreen frame];
@@ -88,7 +88,7 @@ Rectangle AquaSalSystem::GetDisplayWorkAreaPosSizePixel( unsigned int nScreen )
pScreen = [pScreens objectAtIndex: nScreen];
else
pScreen = [NSScreen mainScreen];
-
+
if( pScreen )
{
NSRect aFrame = [pScreen visibleFrame];
diff --git a/vcl/aqua/source/app/saltimer.cxx b/vcl/aqua/source/app/saltimer.cxx
index 75c5f92f820b..cb3033e4e496 100644
--- a/vcl/aqua/source/app/saltimer.cxx
+++ b/vcl/aqua/source/app/saltimer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/dtrans/DataFlavorMapping.cxx b/vcl/aqua/source/dtrans/DataFlavorMapping.cxx
index d811740956cb..1c9ae096efd4 100644
--- a/vcl/aqua/source/dtrans/DataFlavorMapping.cxx
+++ b/vcl/aqua/source/dtrans/DataFlavorMapping.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ namespace // private
const Type CPPUTYPE_SEQINT8 = getCppuType((Sequence<sal_Int8>*)0);
const Type CPPUTYPE_OUSTRING = getCppuType( (OUString*)0 );
- /* Determine whether or not a DataFlavor is valid.
+ /* Determine whether or not a DataFlavor is valid.
*/
bool isValidFlavor(const DataFlavor& aFlavor)
{
@@ -112,7 +112,7 @@ namespace // private
const char* FLAVOR_GDIMF = "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"";
const char* FLAVOR_WMF = "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"";
const char* FLAVOR_EMF = "application/x-openoffice-emf;windows_formatname=\"Image EMF\"";
-
+
const char* FLAVOR_DUMMY_INTERNAL = "application/x-openoffice-internal";
@@ -124,7 +124,7 @@ namespace // private
Type DataType;
};
- /* At the moment it appears as if only MS Office pastes "public.html" to the clipboard.
+ /* At the moment it appears as if only MS Office pastes "public.html" to the clipboard.
*/
FlavorMap flavorMap[] =
{
@@ -133,7 +133,7 @@ namespace // private
{ NSTIFFPboardType, "image/bmp", "Windows Bitmap", CPPUTYPE_SEQINT8 },
{ NSPICTPboardType, "image/bmp", "Windows Bitmap", CPPUTYPE_SEQINT8 },
{ NSHTMLPboardType, "text/html", "Plain Html", CPPUTYPE_SEQINT8 },
- { NSFilenamesPboardType, "application/x-openoffice-filelist;windows_formatname=\"FileList\"", "FileList", CPPUTYPE_SEQINT8 },
+ { NSFilenamesPboardType, "application/x-openoffice-filelist;windows_formatname=\"FileList\"", "FileList", CPPUTYPE_SEQINT8 },
{ PBTYPE_SESX, FLAVOR_SESX, "Star Embed Source (XML)", CPPUTYPE_SEQINT8 },
{ PBTYPE_SLSDX, FLAVOR_SLSDX, "Star Link Source Descriptor (XML)", CPPUTYPE_SEQINT8 },
{ PBTYPE_ESX, FLAVOR_ESX, "Star Embed Source (XML)", CPPUTYPE_SEQINT8 },
@@ -166,7 +166,7 @@ namespace // private
//###########################
-/* A base class for other data provider.
+/* A base class for other data provider.
*/
class DataProviderBaseImpl : public DataProvider
{
@@ -187,7 +187,7 @@ DataProviderBaseImpl::DataProviderBaseImpl(const Any& data) :
{
}
-DataProviderBaseImpl::DataProviderBaseImpl(id data) :
+DataProviderBaseImpl::DataProviderBaseImpl(id data) :
mSystemData(data)
{
[mSystemData retain];
@@ -208,7 +208,7 @@ class UniDataProvider : public DataProviderBaseImpl
{
public:
UniDataProvider(const Any& data);
-
+
UniDataProvider(NSData* data);
virtual NSData* getSystemData();
@@ -243,8 +243,8 @@ Any UniDataProvider::getOOoData()
if (mSystemData)
{
- oOOData = makeAny(OUString(reinterpret_cast<const sal_Char*>([mSystemData bytes]),
- [mSystemData length],
+ oOOData = makeAny(OUString(reinterpret_cast<const sal_Char*>([mSystemData bytes]),
+ [mSystemData length],
RTL_TEXTENCODING_UTF8));
}
else
@@ -285,7 +285,7 @@ NSData* ByteSequenceDataProvider::getSystemData()
Sequence<sal_Int8> rawData;
mData >>= rawData;
- return [NSData dataWithBytes: rawData.getArray() length: rawData.getLength()];
+ return [NSData dataWithBytes: rawData.getArray() length: rawData.getLength()];
}
Any ByteSequenceDataProvider::getOOoData()
@@ -304,7 +304,7 @@ Any ByteSequenceDataProvider::getOOoData()
{
oOOData = mData;
}
-
+
return oOOData;
}
@@ -363,14 +363,14 @@ Any HTMLFormatDataProvider::getOOoData()
plainHtml = HTMLFormatToTextHtml(unkHtmlData);
pPlainHtml = &plainHtml;
}
-
+
oOOData = makeAny(*pPlainHtml);
}
else
{
oOOData = mData;
}
-
+
return oOOData;
}
@@ -420,7 +420,7 @@ NSData* BMPDataProvider::getSystemData()
/* At the moment the OOo 'PCT' filter is not good enough to be used
and there is no flavor defined for exchanging 'PCT' with OOo so
we will at the moment convert 'PCT' to a Windows BMP and provide
- this to OOo
+ this to OOo
*/
Any BMPDataProvider::getOOoData()
{
@@ -434,7 +434,7 @@ Any BMPDataProvider::getOOoData()
memcpy(pictData.getArray(), [mSystemData bytes], flavorDataLength);
Sequence<sal_Int8> bmpData;
-
+
if (ImageToBMP(pictData, bmpData, meImageType))
{
oOOData = makeAny(bmpData);
@@ -444,7 +444,7 @@ Any BMPDataProvider::getOOoData()
{
oOOData = mData;
}
-
+
return oOOData;
}
@@ -493,7 +493,7 @@ Any FileListDataProvider::getOOoData()
Sequence<sal_Int8> oOOFileList(lenSeqRequired);
unichar* pBuffer = reinterpret_cast<unichar*>(oOOFileList.getArray());
rtl_zeroMemory(pBuffer, lenSeqRequired);
-
+
for (size_t i = 0; i < length; i++)
{
NSString* fname = [mSystemData objectAtIndex: i];
@@ -508,7 +508,7 @@ Any FileListDataProvider::getOOoData()
{
oOOData = mData;
}
-
+
return oOOData;
}
@@ -573,7 +573,7 @@ DataProviderPtr_t DataFlavorMapper::getDataProvider(NSString* systemFlavor, Refe
DataFlavor oOOFlavor = systemToOpenOfficeFlavor(systemFlavor);
Any data = rTransferable->getTransferData(oOOFlavor);
-
+
if (isByteSequenceType(data.getValueType()))
{
if ([systemFlavor caseInsensitiveCompare: NSHTMLPboardType] == NSOrderedSame)
@@ -680,7 +680,7 @@ NSArray* DataFlavorMapper::flavorSequenceToTypesArray(const com::sun::star::uno:
else
{
NSString* str = openOfficeToSystemFlavor(flavors[i]);
-
+
if (str != NULL)
{
[array addObject: str];
@@ -690,7 +690,7 @@ NSArray* DataFlavorMapper::flavorSequenceToTypesArray(const com::sun::star::uno:
// #i89462# #i90747#
// in case no system flavor was found to report
- // report at least one so D&D between OOo targets works
+ // report at least one so D&D between OOo targets works
if( [array count] == 0 )
{
[array addObject: PBTYPE_DUMMY_INTERNAL];
diff --git a/vcl/aqua/source/dtrans/DataFlavorMapping.hxx b/vcl/aqua/source/dtrans/DataFlavorMapping.hxx
index 51e29efed530..3d8cee3f39de 100644
--- a/vcl/aqua/source/dtrans/DataFlavorMapping.hxx
+++ b/vcl/aqua/source/dtrans/DataFlavorMapping.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,14 +42,14 @@
#include <boost/shared_ptr.hpp>
-/* An interface to get the clipboard data in either
+/* An interface to get the clipboard data in either
system or OOo format.
*/
class DataProvider
{
public:
virtual ~DataProvider() {};
-
+
/* Get the clipboard data in the system format.
The caller has to retain/release the returned
CFDataRef on demand.
@@ -76,8 +76,8 @@ public:
DataFlavorMapper();
- /* Map a system data flavor to an OpenOffice data flavor.
- Return an empty string if there is not suiteable
+ /* Map a system data flavor to an OpenOffice data flavor.
+ Return an empty string if there is not suiteable
mapping from a system data flavor to a OpenOffice data
flavor.
*/
@@ -99,11 +99,11 @@ public:
/* Get a data provider which is able to provide the data 'rTransferable' offers in a format that can
be put on to the system clipboard.
*/
- DataProviderPtr_t getDataProvider(NSString* systemFlavor,
+ DataProviderPtr_t getDataProvider(NSString* systemFlavor,
const com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable > rTransferable) const;
-
-
+
+
/* Get a data provider which is able to provide 'systemData' in the OOo expected format.
*/
DataProviderPtr_t getDataProvider(const NSString* systemFlavor, NSArray* systemData) const;
@@ -115,12 +115,12 @@ public:
/* Translate a sequence of DataFlavors into a NSArray of system types.
- Only those DataFlavors for which a suitable mapping to a system
+ Only those DataFlavors for which a suitable mapping to a system
type exist will be contained in the returned types array.
*/
NSArray* flavorSequenceToTypesArray(const com::sun::star::uno::Sequence<com::sun::star::datatransfer::DataFlavor>& flavors) const;
- /* Translate a NSArray of system types into a sequence of DataFlavors.
+ /* Translate a NSArray of system types into a sequence of DataFlavors.
Only those types for which a suitable mapping to a DataFlavor
exist will be contained in the new DataFlavor Sequence.
*/
@@ -141,6 +141,6 @@ private:
typedef boost::shared_ptr<DataFlavorMapper> DataFlavorMapperPtr_t;
-#endif
+#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/source/dtrans/DragActionConversion.cxx b/vcl/aqua/source/dtrans/DragActionConversion.cxx
index 1e6880566c24..fbcc02c68dea 100644
--- a/vcl/aqua/source/dtrans/DragActionConversion.cxx
+++ b/vcl/aqua/source/dtrans/DragActionConversion.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
using namespace com::sun::star::datatransfer::dnd;
-/* Convert office drag actions as defined in
+/* Convert office drag actions as defined in
<type>com::sun::star::datatransfer::dnd::DNDConstants</type>
into system conform drag actions.
*/
@@ -41,12 +41,12 @@ unsigned int OfficeToSystemDragActions(sal_Int8 dragActions)
{
unsigned int actions = NSDragOperationNone;
- if (dragActions & DNDConstants::ACTION_COPY)
+ if (dragActions & DNDConstants::ACTION_COPY)
{
actions |= NSDragOperationCopy;
}
- if (dragActions & DNDConstants::ACTION_MOVE)
+ if (dragActions & DNDConstants::ACTION_MOVE)
{
actions |= NSDragOperationMove;
}
@@ -60,7 +60,7 @@ unsigned int OfficeToSystemDragActions(sal_Int8 dragActions)
}
/* Convert system conform drag actions into office conform
- drag actions as defined in
+ drag actions as defined in
<type>com::sun::star::datatransfer::dnd::DNDConstants</type>.
*/
sal_Int8 SystemToOfficeDragActions(unsigned int dragActions)
diff --git a/vcl/aqua/source/dtrans/DragActionConversion.hxx b/vcl/aqua/source/dtrans/DragActionConversion.hxx
index d4b12ae8dce8..13f36e815ef8 100644
--- a/vcl/aqua/source/dtrans/DragActionConversion.hxx
+++ b/vcl/aqua/source/dtrans/DragActionConversion.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,14 +34,14 @@
#include <postmac.h>
-/* Convert office drag actions as defined in
+/* Convert office drag actions as defined in
<type>com::sun::star::datatransfer::dnd::DNDConstants</type>
into system conform drag actions.
*/
unsigned int OfficeToSystemDragActions(sal_Int8 dragActions);
/* Convert system conform drag actions into office conform
- drag actions as defined in
+ drag actions as defined in
<type>com::sun::star::datatransfer::dnd::DNDConstants</type>.
*/
sal_Int8 SystemToOfficeDragActions(unsigned int dragActions);
diff --git a/vcl/aqua/source/dtrans/DragSource.cxx b/vcl/aqua/source/dtrans/DragSource.cxx
index c702e4693355..1b5d651b0f8e 100644
--- a/vcl/aqua/source/dtrans/DragSource.cxx
+++ b/vcl/aqua/source/dtrans/DragSource.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -113,13 +113,13 @@ Sequence<OUString> dragSource_getSupportedServiceNames()
-(void)draggedImage:(NSImage*)anImage beganAt:(NSPoint)aPoint
{
- DragSourceDragEvent dsde(static_cast<OWeakObject*>(mDragSource),
- new DragSourceContext(mDragSource),
- mDragSource,
- DNDConstants::ACTION_COPY,
+ DragSourceDragEvent dsde(static_cast<OWeakObject*>(mDragSource),
+ new DragSourceContext(mDragSource),
+ mDragSource,
+ DNDConstants::ACTION_COPY,
DNDConstants::ACTION_COPY);
- mDragSource->mXDragSrcListener->dragEnter(dsde);
+ mDragSource->mXDragSrcListener->dragEnter(dsde);
}
@@ -130,7 +130,7 @@ Sequence<OUString> dragSource_getSupportedServiceNames()
bool bDropSuccess = operation != NSDragOperationNone;
if( DragSource::g_DropSuccessSet )
bDropSuccess = DragSource::g_DropSuccess;
-
+
DragSourceDropEvent dsde(static_cast<OWeakObject*>(mDragSource),
new DragSourceContext(mDragSource),
static_cast< XDragSource* >(mDragSource),
@@ -170,7 +170,7 @@ DragSource::~DragSource()
[(id <MouseEventListener>)mView unregisterMouseEventListener: mDragSourceHelper];
[mDragSourceHelper release];
}
-
+
void SAL_CALL DragSource::initialize(const Sequence< Any >& aArguments)
throw(Exception)
@@ -188,7 +188,7 @@ void SAL_CALL DragSource::initialize(const Sequence< Any >& aArguments)
/* All SalFrameView the base class for all VCL system views inherits from
NSView in order to get mouse and other events. This is the only way to
- get these events. In order to start a drag operation we need to provide
+ get these events. In order to start a drag operation we need to provide
the mouse event which was the trigger. SalFrameView therefor implements
a hook mechanism so that we can get mouse events for our purpose.
*/
@@ -198,7 +198,7 @@ void SAL_CALL DragSource::initialize(const Sequence< Any >& aArguments)
throw Exception(OUString(RTL_CONSTASCII_USTRINGPARAM("DragSource::initialize: Provided view doesn't support mouse listener")),
static_cast<OWeakObject*>(this));
}
-
+
mDragSourceHelper = [[DragSourceHelper alloc] initWithDragSource: this];
if (mDragSourceHelper == nil)
@@ -234,16 +234,16 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger,
sal_Int32 cursor,
sal_Int32 image,
const Reference<XTransferable >& transferable,
- const Reference<XDragSourceListener >& listener )
+ const Reference<XDragSourceListener >& listener )
throw( RuntimeException)
{
MutexGuard guard(m_aMutex);
-
+
OSL_ASSERT(listener.is() && "DragSource::startDrag: No XDragSourceListener provided\n");
OSL_ASSERT(transferable.is() && "DragSource::startDrag: No transferable provided\n");
-
- trigger.Event >>= mMouseEvent;
- m_MouseButton= mMouseEvent.Buttons;
+
+ trigger.Event >>= mMouseEvent;
+ m_MouseButton= mMouseEvent.Buttons;
mXDragSrcListener = listener;
mXCurrentContext = static_cast<XDragSourceContext*>(new DragSourceContext(this));
auto_ptr<AquaClipboard> clipb(new AquaClipboard(NULL, false));
@@ -258,11 +258,11 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger,
NSImage* dragImage;
dragImage = [[NSImage alloc] initWithSize: sz];
-
+
NSRect bounds;
bounds.origin = NSMakePoint(0,0);
bounds.size = sz;
-
+
[dragImage lockFocus];
[[NSColor blackColor] set];
[NSBezierPath fillRect: bounds];
@@ -278,9 +278,9 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger,
g_DropSuccessSet = false;
g_DropSuccess = false;
- [mView dragImage: dragImage
- at: p
- offset: NSMakeSize(0,0)
+ [mView dragImage: dragImage
+ at: p
+ offset: NSMakeSize(0,0)
event: mLastMouseEventBeforeStartDrag
pasteboard: clipb->getPasteboard()
source: mDragSourceHelper
@@ -299,7 +299,7 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger,
// In order to initiate a D&D operation we need to
// provide the triggering mouse event which we get
-// from the SalFrameView that is associated with
+// from the SalFrameView that is associated with
// this DragSource
void DragSource::saveMouseEvent(NSEvent* theEvent)
{
@@ -322,9 +322,9 @@ unsigned int DragSource::getSupportedDragOperations(bool isLocal) const
if (isLocal)
{
// Support NSDragOperation generic which means we can
- // decide which D&D operation to choose. We map
+ // decide which D&D operation to choose. We map
// NSDragOperationGenric to DNDConstants::ACTION_DEFAULT
- // in SystemToOfficeDragActions to signal this and
+ // in SystemToOfficeDragActions to signal this and
// use it in DropTarget::determineDropAction
srcActions |= NSDragOperationGeneric;
}
diff --git a/vcl/aqua/source/dtrans/DragSource.hxx b/vcl/aqua/source/dtrans/DragSource.hxx
index 498feaf819bb..dcdaac4cff63 100644
--- a/vcl/aqua/source/dtrans/DragSource.hxx
+++ b/vcl/aqua/source/dtrans/DragSource.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
class DragSource;
-/* The functions declared in this protocol are actually
+/* The functions declared in this protocol are actually
declared in vcl/aqua/inc/salframe.h. Because we want
to avoid importing VCL headers in UNO services and
on the other hand want to avoid warnings caused by
@@ -81,8 +81,8 @@ class DragSource;
class DragSource : public ::cppu::BaseMutex,
- public ::cppu::WeakComponentImplHelper3< com::sun::star::datatransfer::dnd::XDragSource,
- com::sun::star::lang::XInitialization,
+ public ::cppu::WeakComponentImplHelper3< com::sun::star::datatransfer::dnd::XDragSource,
+ com::sun::star::lang::XInitialization,
com::sun::star::lang::XServiceInfo >,
private ::boost::noncopyable
{
@@ -99,7 +99,7 @@ public:
virtual sal_Int32 SAL_CALL getDefaultCursor(sal_Int8 dragAction)
throw(com::sun::star::lang::IllegalArgumentException, com::sun::star::uno::RuntimeException);
-
+
virtual void SAL_CALL startDrag( const com::sun::star::datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions,
sal_Int32 cursor,
@@ -129,7 +129,7 @@ public:
// The mouse button that set off the drag and drop operation
short m_MouseButton;
sal_Int8 mDragSourceActions;
-
+
static com::sun::star::uno::Reference< com::sun::star::datatransfer::XTransferable > g_XTransferable;
static NSView* g_DragSourceView;
static bool g_DropSuccessSet;
diff --git a/vcl/aqua/source/dtrans/DragSourceContext.cxx b/vcl/aqua/source/dtrans/DragSourceContext.cxx
index 4d18379e90af..c613c17b0bb8 100644
--- a/vcl/aqua/source/dtrans/DragSourceContext.cxx
+++ b/vcl/aqua/source/dtrans/DragSourceContext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/dtrans/DragSourceContext.hxx b/vcl/aqua/source/dtrans/DragSourceContext.hxx
index 276567af3f99..b8d357e41baf 100644
--- a/vcl/aqua/source/dtrans/DragSourceContext.hxx
+++ b/vcl/aqua/source/dtrans/DragSourceContext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,16 +52,16 @@ public:
DragSourceContext(DragSource* pSource);
~DragSourceContext();
- virtual sal_Int32 SAL_CALL getCurrentCursor( )
+ virtual sal_Int32 SAL_CALL getCurrentCursor( )
throw( com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setCursor( sal_Int32 cursorId )
+ virtual void SAL_CALL setCursor( sal_Int32 cursorId )
throw( com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setImage( sal_Int32 imageId )
+ virtual void SAL_CALL setImage( sal_Int32 imageId )
throw( com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL transferablesFlavorsChanged( )
+ virtual void SAL_CALL transferablesFlavorsChanged( )
throw( com::sun::star::uno::RuntimeException);
private:
diff --git a/vcl/aqua/source/dtrans/DropTarget.cxx b/vcl/aqua/source/dtrans/DropTarget.cxx
index e376411df0a5..5404dc1186b4 100644
--- a/vcl/aqua/source/dtrans/DropTarget.cxx
+++ b/vcl/aqua/source/dtrans/DropTarget.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -98,7 +98,7 @@ namespace /* private */
{
self = [super init];
- if (self)
+ if (self)
{
mDropTarget = pdt;
}
@@ -169,8 +169,8 @@ sal_Int8 DropTarget::determineDropAction(sal_Int8 dropActions, id sender) const
{
sal_Int8 dropAct = dropActions;
bool srcAndDestEqual = false;
-
- if ([sender draggingSource] != nil)
+
+ if ([sender draggingSource] != nil)
{
// Internal DnD
NSView* destView = [[sender draggingDestinationWindow] contentView];
@@ -178,8 +178,8 @@ sal_Int8 DropTarget::determineDropAction(sal_Int8 dropActions, id sender) const
}
// If ACTION_DEFAULT is set this means NSDragOperationGeneric
- // has been set and we map this to ACTION_MOVE or ACTION_COPY
- // depending on whether or not source and dest are equal,
+ // has been set and we map this to ACTION_MOVE or ACTION_COPY
+ // depending on whether or not source and dest are equal,
// this hopefully satisfies all parties
if( (dropActions == DNDConstants::ACTION_DEFAULT)
|| ((dropActions == mDragSourceSupportedActions)
@@ -188,8 +188,8 @@ sal_Int8 DropTarget::determineDropAction(sal_Int8 dropActions, id sender) const
dropAct = srcAndDestEqual ? DNDConstants::ACTION_MOVE :
DNDConstants::ACTION_COPY;
}
- // if more than one drop actions have been specified
- // set ACTION_DEFAULT in order to let the drop target
+ // if more than one drop actions have been specified
+ // set ACTION_DEFAULT in order to let the drop target
// decide which one to use
else if (dropActions != DNDConstants::ACTION_NONE &&
dropActions != DNDConstants::ACTION_MOVE &&
@@ -207,7 +207,7 @@ sal_Int8 DropTarget::determineDropAction(sal_Int8 dropActions, id sender) const
else if (dropActions & DNDConstants::ACTION_MOVE)
dropAct = DNDConstants::ACTION_MOVE;
else if (dropActions & DNDConstants::ACTION_LINK)
- dropAct = DNDConstants::ACTION_LINK;
+ dropAct = DNDConstants::ACTION_LINK;
}
dropAct |= DNDConstants::ACTION_DEFAULT;
@@ -220,56 +220,56 @@ sal_Int8 DropTarget::determineDropAction(sal_Int8 dropActions, id sender) const
NSDragOperation DropTarget::draggingEntered(id sender)
{
// Initially when DnD will be started no modifier key can be pressed yet
- // thus we are getting all actions that the drag source supports, we save
+ // thus we are getting all actions that the drag source supports, we save
// this value because later the system masks the drag source actions if
// a modifier key will be pressed
mDragSourceSupportedActions = SystemToOfficeDragActions([sender draggingSourceOperationMask]);
-
+
// Only if the drop target is really interessted in the drag actions
// supported by the source
if (mDragSourceSupportedActions & mDefaultActions)
{
- sal_Int8 currentAction = determineDropAction(mDragSourceSupportedActions, sender);
+ sal_Int8 currentAction = determineDropAction(mDragSourceSupportedActions, sender);
NSRect bounds = [mView bounds];
NSPoint dragLocation = [sender draggedImageLocation];
-
+
CocoaToVCL(dragLocation, bounds);
-
+
sal_Int32 posX = static_cast<sal_Int32>(dragLocation.x);
sal_Int32 posY = static_cast<sal_Int32>(dragLocation.y);
NSPasteboard* dragPboard = [sender draggingPasteboard];
mXCurrentDragClipboard = new AquaClipboard(dragPboard, false);
-
+
Reference<XTransferable> xTransferable = DragSource::g_XTransferable.is() ?
DragSource::g_XTransferable : mXCurrentDragClipboard->getContents();
- DropTargetDragEnterEvent dtdee(static_cast<OWeakObject*>(this),
- 0,
- this,
- currentAction,
- posX,
- posY,
- mDragSourceSupportedActions,
+ DropTargetDragEnterEvent dtdee(static_cast<OWeakObject*>(this),
+ 0,
+ this,
+ currentAction,
+ posX,
+ posY,
+ mDragSourceSupportedActions,
xTransferable->getTransferDataFlavors());
- fire_dragEnter(dtdee);
+ fire_dragEnter(dtdee);
}
- return OfficeToSystemDragActions(mSelectedDropAction);
+ return OfficeToSystemDragActions(mSelectedDropAction);
}
NSDragOperation DropTarget::draggingUpdated(id sender)
{
- sal_Int8 currentDragSourceActions =
+ sal_Int8 currentDragSourceActions =
SystemToOfficeDragActions([sender draggingSourceOperationMask]);
NSDragOperation dragOp = NSDragOperationNone;
if (currentDragSourceActions & mDefaultActions)
{
- sal_Int8 currentAction = determineDropAction(currentDragSourceActions, sender);
+ sal_Int8 currentAction = determineDropAction(currentDragSourceActions, sender);
NSRect bounds = [mView bounds];
NSPoint dragLocation = [sender draggedImageLocation];
@@ -278,24 +278,24 @@ NSDragOperation DropTarget::draggingUpdated(id sender)
sal_Int32 posX = static_cast<sal_Int32>(dragLocation.x);
sal_Int32 posY = static_cast<sal_Int32>(dragLocation.y);
- DropTargetDragEvent dtde(static_cast<OWeakObject*>(this),
- 0,
- this,
+ DropTargetDragEvent dtde(static_cast<OWeakObject*>(this),
+ 0,
+ this,
currentAction,
posX,
- posY,
+ posY,
mDragSourceSupportedActions);
fire_dragOver(dtde);
- // drag over callbacks likely have rendered something
+ // drag over callbacks likely have rendered something
[mView setNeedsDisplay: TRUE];
-
+
dragOp = OfficeToSystemDragActions(mSelectedDropAction);
//NSLog(@"Drag update: Source actions: %x proposed action %x selected action %x", mDragSourceSupportedActions, currentAction, mSelectedDropAction);
}
-
+
// Weird but it appears as if there is no method in Cocoa
// to create a kThemeCopyArrowCursor hence we have to use
// Carbon to do it
@@ -303,7 +303,7 @@ NSDragOperation DropTarget::draggingUpdated(id sender)
SetThemeCursor(kThemeNotAllowedCursor);
else if (dragOp == NSDragOperationCopy)
SetThemeCursor(kThemeCopyArrowCursor);
- else
+ else
SetThemeCursor(kThemeArrowCursor);
return dragOp;
@@ -334,11 +334,11 @@ MacOSBOOL DropTarget::performDragOperation(id sender)
{
Reference<XTransferable> xTransferable = DragSource::g_XTransferable;
- if (!DragSource::g_XTransferable.is())
+ if (!DragSource::g_XTransferable.is())
{
xTransferable = mXCurrentDragClipboard->getContents();
}
-
+
NSRect bounds = [mView bounds];
NSPoint dragLocation = [sender draggedImageLocation];
@@ -352,10 +352,10 @@ MacOSBOOL DropTarget::performDragOperation(id sender)
this,
mSelectedDropAction,
posX,
- posY,
+ posY,
mDragSourceSupportedActions,
xTransferable);
-
+
fire_drop(dtde);
bSuccess = true;
@@ -397,10 +397,10 @@ MacOSBOOL DropTarget::performDragOperation(id sender)
mView = (id)tmp;
mDropTargetHelper = [[DropTargetHelper alloc] initWithDropTarget: this];
-
+
[(id <DraggingDestinationHandler>)mView registerDraggingDestinationHandler:mDropTargetHelper];
[mView registerForDraggedTypes: mDataFlavorMapper->getAllSupportedPboardTypes()];
-
+
id wnd = [mView window];
NSWindow* parentWnd = [wnd parentWindow];
unsigned int topWndStyle = (NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask);
@@ -483,7 +483,7 @@ MacOSBOOL DropTarget::performDragOperation(id sender)
void SAL_CALL DropTarget::dropComplete(sal_Bool success) throw (RuntimeException)
{
- // Reset the internal transferable used as shortcut in case this is
+ // Reset the internal transferable used as shortcut in case this is
// an internal D&D operation
DragSource::g_XTransferable = Reference<XTransferable>();
DragSource::g_DropSuccessSet = true;
@@ -535,7 +535,7 @@ MacOSBOOL DropTarget::performDragOperation(id sender)
while( iter.hasMoreElements())
{
Reference<XDropTargetListener> listener( static_cast<XDropTargetListener*>( iter.next()));
-
+
try { listener->dragExit( dte); }
catch (RuntimeException&) {}
}
@@ -581,7 +581,7 @@ MacOSBOOL DropTarget::performDragOperation(id sender)
OUString SAL_CALL DropTarget::getImplementationName() throw (RuntimeException)
{
- return dropTarget_getImplementationName();
+ return dropTarget_getImplementationName();
}
diff --git a/vcl/aqua/source/dtrans/DropTarget.hxx b/vcl/aqua/source/dtrans/DropTarget.hxx
index bb25497244a6..d0fc443017ba 100644
--- a/vcl/aqua/source/dtrans/DropTarget.hxx
+++ b/vcl/aqua/source/dtrans/DropTarget.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@
class DropTarget;
-/* The functions declared in this protocol are actually
+/* The functions declared in this protocol are actually
declared in vcl/aqua/inc/salframe.h. Because we want
to avoid importing VCL headers in UNO services and
on the other hand want to avoid warnings caused by
@@ -83,8 +83,8 @@ class DropTarget;
class DropTarget: public cppu::BaseMutex,
- public cppu::WeakComponentImplHelper5< com::sun::star::lang::XInitialization,
- com::sun::star::datatransfer::dnd::XDropTarget,
+ public cppu::WeakComponentImplHelper5< com::sun::star::lang::XInitialization,
+ com::sun::star::datatransfer::dnd::XDropTarget,
com::sun::star::datatransfer::dnd::XDropTargetDragContext,
com::sun::star::datatransfer::dnd::XDropTargetDropContext,
com::sun::star::lang::XServiceInfo >,
@@ -120,7 +120,7 @@ public:
virtual void SAL_CALL acceptDrag(sal_Int8 dragOperation) throw(com::sun::star::uno::RuntimeException);
virtual void SAL_CALL rejectDrag() throw(com::sun::star::uno::RuntimeException);
- // XDropTargetDragContext
+ // XDropTargetDragContext
virtual void SAL_CALL acceptDrop(sal_Int8 dropOperation) throw (com::sun::star::uno::RuntimeException);
virtual void SAL_CALL rejectDrop() throw (com::sun::star::uno::RuntimeException);
virtual void SAL_CALL dropComplete(sal_Bool success) throw (com::sun::star::uno::RuntimeException);
diff --git a/vcl/aqua/source/dtrans/HtmlFmtFlt.cxx b/vcl/aqua/source/dtrans/HtmlFmtFlt.cxx
index 0bd461d81096..9f5bf7483616 100644
--- a/vcl/aqua/source/dtrans/HtmlFmtFlt.cxx
+++ b/vcl/aqua/source/dtrans/HtmlFmtFlt.cxx
@@ -17,23 +17,23 @@ using namespace com::sun::star::uno;
// well known under MS Windows
// the MS HTML Format has a header before the real html data
//
-// Version:1.0 Version number of the clipboard. Staring is 0.9
-// StartHTML: Byte count from the beginning of the clipboard to the start
-// of the context, or -1 if no context
-// EndHTML: Byte count from the beginning of the clipboard to the end
-// of the context, or -1 if no context
-// StartFragment: Byte count from the beginning of the clipboard to the
-// start of the fragment
-// EndFragment: Byte count from the beginning of the clipboard to the
-// end of the fragment
-// StartSelection: Byte count from the beginning of the clipboard to the
-// start of the selection
-// EndSelection: Byte count from the beginning of the clipboard to the
-// end of the selection
+// Version:1.0 Version number of the clipboard. Staring is 0.9
+// StartHTML: Byte count from the beginning of the clipboard to the start
+// of the context, or -1 if no context
+// EndHTML: Byte count from the beginning of the clipboard to the end
+// of the context, or -1 if no context
+// StartFragment: Byte count from the beginning of the clipboard to the
+// start of the fragment
+// EndFragment: Byte count from the beginning of the clipboard to the
+// end of the fragment
+// StartSelection: Byte count from the beginning of the clipboard to the
+// start of the selection
+// EndSelection: Byte count from the beginning of the clipboard to the
+// end of the selection
//
// StartSelection and EndSelection are optional
// The fragment should be preceded and followed by the HTML comments
-// <!--StartFragment--> and <!--EndFragment--> (no space between !-- and the
+// <!--StartFragment--> and <!--EndFragment--> (no space between !-- and the
// text
//------------------------------------------------------------------------------
@@ -66,37 +66,37 @@ const std::string TAG_END_BODY = std::string("</BODY");
Sequence<sal_Int8> SAL_CALL TextHtmlToHTMLFormat(Sequence<sal_Int8>& aTextHtml)
{
OSL_ASSERT(aTextHtml.getLength() > 0);
-
+
if (!(aTextHtml.getLength() > 0))
return Sequence<sal_Int8>();
-
+
// fill the buffer with dummy values to calc the exact length
- std::string dummyHtmlHeader = GetHtmlFormatHeader(0, 0, 0, 0);
+ std::string dummyHtmlHeader = GetHtmlFormatHeader(0, 0, 0, 0);
size_t lHtmlFormatHeader = dummyHtmlHeader.length();
-
+
std::string textHtml(
- reinterpret_cast<const sal_Char*>(aTextHtml.getConstArray()),
+ reinterpret_cast<const sal_Char*>(aTextHtml.getConstArray()),
reinterpret_cast<const sal_Char*>(aTextHtml.getConstArray()) + aTextHtml.getLength());
-
+
std::string::size_type nStartHtml = textHtml.find(TAG_HTML) + lHtmlFormatHeader - 1; // we start one before '<HTML>' Word 2000 does also so
std::string::size_type nEndHtml = textHtml.find(TAG_END_HTML) + lHtmlFormatHeader + TAG_END_HTML.length() + 1; // our SOffice 5.2 wants 2 behind </HTML>?
-
+
// The body tag may have parameters so we need to search for the
// closing '>' manually e.g. <BODY param> #92840#
- std::string::size_type nStartFragment = textHtml.find(">", textHtml.find(TAG_BODY)) + lHtmlFormatHeader + 1;
+ std::string::size_type nStartFragment = textHtml.find(">", textHtml.find(TAG_BODY)) + lHtmlFormatHeader + 1;
std::string::size_type nEndFragment = textHtml.find(TAG_END_BODY) + lHtmlFormatHeader;
- std::string htmlFormat = GetHtmlFormatHeader(nStartHtml, nEndHtml, nStartFragment, nEndFragment);
+ std::string htmlFormat = GetHtmlFormatHeader(nStartHtml, nEndHtml, nStartFragment, nEndFragment);
htmlFormat += textHtml;
-
+
Sequence<sal_Int8> byteSequence(htmlFormat.length() + 1); // space the trailing '\0'
- rtl_zeroMemory(byteSequence.getArray(), byteSequence.getLength());
-
+ rtl_zeroMemory(byteSequence.getArray(), byteSequence.getLength());
+
rtl_copyMemory(
static_cast<void*>(byteSequence.getArray()),
static_cast<const void*>(htmlFormat.c_str()),
htmlFormat.length());
-
+
return byteSequence;
}
@@ -113,7 +113,7 @@ Sequence<sal_Int8> HTMLFormatToTextHtml(const Sequence<sal_Int8>& aHTMLFormat)
BOOST_ASSERT(htmlStartTag && "Seems to be no HTML at all");
- // It doesn't seem to be HTML? Well then simply return what has been
+ // It doesn't seem to be HTML? Well then simply return what has been
// provided in non-debug builds
if (htmlStartTag == NULL)
{
@@ -131,7 +131,7 @@ Sequence<sal_Int8> HTMLFormatToTextHtml(const Sequence<sal_Int8>& aHTMLFormat)
/* A simple format detection. We are just comparing the first few bytes
of the provided byte sequence to see whether or not it is the MS
Office Html format. If it shows that this is not reliable enough we
- can improve this
+ can improve this
*/
const char HtmlFormatStart[] = "Version:";
int HtmlFormatStartLen = (sizeof(HtmlFormatStart) - 1);
@@ -141,9 +141,9 @@ bool isHTMLFormat(const Sequence<sal_Int8>& aHtmlSequence)
if (aHtmlSequence.getLength() < HtmlFormatStartLen)
return false;
- return rtl_str_compareIgnoreAsciiCase_WithLength(HtmlFormatStart,
- HtmlFormatStartLen,
- reinterpret_cast<const sal_Char*>(aHtmlSequence.getConstArray()),
+ return rtl_str_compareIgnoreAsciiCase_WithLength(HtmlFormatStart,
+ HtmlFormatStartLen,
+ reinterpret_cast<const sal_Char*>(aHtmlSequence.getConstArray()),
HtmlFormatStartLen) == 0;
}
diff --git a/vcl/aqua/source/dtrans/HtmlFmtFlt.hxx b/vcl/aqua/source/dtrans/HtmlFmtFlt.hxx
index bbf2fc5164eb..cfcaaab558ec 100644
--- a/vcl/aqua/source/dtrans/HtmlFmtFlt.hxx
+++ b/vcl/aqua/source/dtrans/HtmlFmtFlt.hxx
@@ -4,7 +4,7 @@
#include <com/sun/star/uno/Sequence.hxx>
-/* Transform plain HTML into the format expected by MS Office.
+/* Transform plain HTML into the format expected by MS Office.
*/
com::sun::star::uno::Sequence<sal_Int8> TextHtmlToHTMLFormat(com::sun::star::uno::Sequence<sal_Int8>& aTextHtml);
diff --git a/vcl/aqua/source/dtrans/OSXTransferable.cxx b/vcl/aqua/source/dtrans/OSXTransferable.cxx
index c9ba3cc02599..a65a66f4b2c2 100644
--- a/vcl/aqua/source/dtrans/OSXTransferable.cxx
+++ b/vcl/aqua/source/dtrans/OSXTransferable.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ using namespace com::sun::star::container;
const Type CPPUTYPE_SEQINT8 = getCppuType((Sequence<sal_Int8>*)0);
const Type CPPUTYPE_OUSTRING = getCppuType((OUString*)0);
-namespace // private
+namespace // private
{
bool isValidFlavor( const DataFlavor& aFlavor )
{
@@ -60,12 +60,12 @@ namespace // private
OSXTransferable::OSXTransferable(const Reference<XMimeContentTypeFactory> rXMimeCntFactory,
- DataFlavorMapperPtr_t pDataFlavorMapper,
+ DataFlavorMapperPtr_t pDataFlavorMapper,
NSPasteboard* pasteboard) :
mrXMimeCntFactory(rXMimeCntFactory),
mDataFlavorMapper(pDataFlavorMapper),
mPasteboard(pasteboard)
-{
+{
[mPasteboard retain];
initClipboardItemList();
@@ -78,7 +78,7 @@ OSXTransferable::~OSXTransferable()
}
-Any SAL_CALL OSXTransferable::getTransferData( const DataFlavor& aFlavor )
+Any SAL_CALL OSXTransferable::getTransferData( const DataFlavor& aFlavor )
throw( UnsupportedFlavorException, IOException, RuntimeException )
{
if (!isValidFlavor(aFlavor) || !isDataFlavorSupported(aFlavor))
@@ -87,7 +87,7 @@ Any SAL_CALL OSXTransferable::getTransferData( const DataFlavor& aFlavor )
static_cast<XTransferable*>(this));
}
- NSString* sysFormat =
+ NSString* sysFormat =
(aFlavor.MimeType.compareToAscii( "image/bmp", 9 ) == 0)
? mDataFlavorMapper->openOfficeImageToSystemFlavor( mPasteboard )
: mDataFlavorMapper->openOfficeToSystemFlavor(aFlavor);
@@ -120,14 +120,14 @@ bool OSXTransferable::isUnicodeText(const DataFlavor& flavor)
}
-Sequence< DataFlavor > SAL_CALL OSXTransferable::getTransferDataFlavors( )
+Sequence< DataFlavor > SAL_CALL OSXTransferable::getTransferDataFlavors( )
throw( RuntimeException )
-{
+{
return mFlavorList;
}
-sal_Bool SAL_CALL OSXTransferable::isDataFlavorSupported(const DataFlavor& aFlavor)
+sal_Bool SAL_CALL OSXTransferable::isDataFlavorSupported(const DataFlavor& aFlavor)
throw( RuntimeException )
{
for (sal_Int32 i = 0; i < mFlavorList.getLength(); i++)
@@ -141,13 +141,13 @@ sal_Bool SAL_CALL OSXTransferable::isDataFlavorSupported(const DataFlavor& aFlav
void OSXTransferable::initClipboardItemList()
{
NSArray* pboardFormats = [mPasteboard types];
-
+
if (pboardFormats == NULL)
{
- throw RuntimeException(OUString(RTL_CONSTASCII_USTRINGPARAM("AquaClipboard: Cannot get clipboard data")),
+ throw RuntimeException(OUString(RTL_CONSTASCII_USTRINGPARAM("AquaClipboard: Cannot get clipboard data")),
static_cast<XTransferable*>(this));
}
-
+
mFlavorList = mDataFlavorMapper->typesArrayToFlavorSequence(pboardFormats);
}
@@ -179,7 +179,7 @@ bool OSXTransferable::compareDataFlavors(const DataFlavor& lhs, const DataFlavor
}
-bool OSXTransferable::cmpAllContentTypeParameter(const Reference<XMimeContentType> xLhs,
+bool OSXTransferable::cmpAllContentTypeParameter(const Reference<XMimeContentType> xLhs,
const Reference<XMimeContentType> xRhs) const
{
Sequence<OUString> xLhsFlavors = xLhs->getParameters();
@@ -190,12 +190,12 @@ bool OSXTransferable::cmpAllContentTypeParameter(const Reference<XMimeContentTyp
return false;
try
- {
+ {
OUString pLhs;
OUString pRhs;
for (sal_Int32 i = 0; i < xLhsFlavors.getLength(); i++)
- {
+ {
pLhs = xLhs->getParameterValue(xLhsFlavors[i]);
pRhs = xRhs->getParameterValue(xLhsFlavors[i]);
diff --git a/vcl/aqua/source/dtrans/OSXTransferable.hxx b/vcl/aqua/source/dtrans/OSXTransferable.hxx
index 82e8fea57e20..531a1005d8c9 100644
--- a/vcl/aqua/source/dtrans/OSXTransferable.hxx
+++ b/vcl/aqua/source/dtrans/OSXTransferable.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,7 +58,7 @@ public:
explicit OSXTransferable(com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XMimeContentTypeFactory> rXMimeCntFactory,
DataFlavorMapperPtr_t pDataFlavorMapper,
- NSPasteboard* pasteboard);
+ NSPasteboard* pasteboard);
virtual ~OSXTransferable();
@@ -66,13 +66,13 @@ public:
// XTransferable
//------------------------------------------------------------------------
- virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
+ virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
throw( ::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
throw( ::com::sun::star::uno::RuntimeException );
-
- virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
+
+ virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------------------------------
@@ -88,11 +88,11 @@ public:
bool compareDataFlavors( const com::sun::star::datatransfer::DataFlavor& lhs,
const com::sun::star::datatransfer::DataFlavor& rhs );
- bool cmpAllContentTypeParameter( const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType > xLhs,
+ bool cmpAllContentTypeParameter( const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType > xLhs,
const com::sun::star::uno::Reference< com::sun::star::datatransfer::XMimeContentType > xRhs ) const;
private:
- com::sun::star::uno::Sequence< com::sun::star::datatransfer::DataFlavor > mFlavorList;
+ com::sun::star::uno::Sequence< com::sun::star::datatransfer::DataFlavor > mFlavorList;
::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XMimeContentTypeFactory> mrXMimeCntFactory;
DataFlavorMapperPtr_t mDataFlavorMapper;
NSPasteboard* mPasteboard;
diff --git a/vcl/aqua/source/dtrans/PictToBmpFlt.cxx b/vcl/aqua/source/dtrans/PictToBmpFlt.cxx
index 7a9b2963ddb1..07da1fe77f99 100644
--- a/vcl/aqua/source/dtrans/PictToBmpFlt.cxx
+++ b/vcl/aqua/source/dtrans/PictToBmpFlt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,14 +29,14 @@
*
************************************************************************/
-/* This is a work-around to prevent 'deprecated' warning for 'KillPicture' API
+/* This is a work-around to prevent 'deprecated' warning for 'KillPicture' API
Hopefully we can get rid of this whole code again when the OOo PICT filter
are good enough to be used see #i78953 thus this hack would vanish to again.
*/
#include <premac.h>
#include <AvailabilityMacros.h>
#undef DEPRECATED_ATTRIBUTE
-#define DEPRECATED_ATTRIBUTE
+#define DEPRECATED_ATTRIBUTE
#include <Carbon/Carbon.h>
#include <QuickTime/QuickTime.h>
@@ -44,10 +44,10 @@
#include "PictToBmpFlt.hxx"
-bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
+bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
com::sun::star::uno::Sequence<sal_Int8>& aBmp)
{
-
+
bool result = false;
ComponentInstance bmpExporter;
@@ -65,7 +65,7 @@ bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
}
Handle hBmp;
- if ((GraphicsExportSetInputPicture(bmpExporter, (PicHandle)hPict) != noErr) ||
+ if ((GraphicsExportSetInputPicture(bmpExporter, (PicHandle)hPict) != noErr) ||
((hBmp = NewHandleClear(0)) == NULL))
{
CloseComponent(bmpExporter);
@@ -84,7 +84,7 @@ bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
HUnlock(hBmp);
result = true;
- }
+ }
DisposeHandle(hPict);
DisposeHandle(hBmp);
@@ -93,14 +93,14 @@ bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
return result;
}
-bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
+bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
com::sun::star::uno::Sequence<sal_Int8>& aPict)
{
bool result = false;
Handle hBmp;
ComponentInstance pictExporter;
- if ((PtrToHand(aBmp.getArray(), &hBmp, aBmp.getLength()) != noErr))
+ if ((PtrToHand(aBmp.getArray(), &hBmp, aBmp.getLength()) != noErr))
{
return result;
}
@@ -112,7 +112,7 @@ bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
DisposeHandle(hBmp);
return result;
}
-
+
if (GraphicsImportSetDataHandle(pictExporter, hBmp) != noErr)
{
DisposeHandle(hBmp);
@@ -131,28 +131,28 @@ bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
HUnlock((Handle)hPict);
// Release the data associated with the picture
- // Note: This function is deprecated in Mac OS X
+ // Note: This function is deprecated in Mac OS X
// 10.4.
- KillPicture(hPict);
+ KillPicture(hPict);
result = true;
}
-
+
DisposeHandle(hBmp);
CloseComponent(pictExporter);
-
+
return result;
}
-bool ImageToBMP( com::sun::star::uno::Sequence<sal_Int8>& aPict,
+bool ImageToBMP( com::sun::star::uno::Sequence<sal_Int8>& aPict,
com::sun::star::uno::Sequence<sal_Int8>& aBmp,
NSBitmapImageFileType eInFormat)
{
if( eInFormat == PICTImageFileType )
return PICTtoBMP( aPict, aBmp );
-
+
bool bResult = false;
-
+
NSData* pData = [NSData dataWithBytesNoCopy: (void*)aPict.getConstArray() length: aPict.getLength() freeWhenDone: 0];
if( pData )
{
@@ -168,20 +168,20 @@ bool ImageToBMP( com::sun::star::uno::Sequence<sal_Int8>& aPict,
}
}
}
-
+
return bResult;
}
-bool BMPToImage( com::sun::star::uno::Sequence<sal_Int8>& aBmp,
+bool BMPToImage( com::sun::star::uno::Sequence<sal_Int8>& aBmp,
com::sun::star::uno::Sequence<sal_Int8>& aPict,
NSBitmapImageFileType eOutFormat
)
{
if( eOutFormat == PICTImageFileType )
return BMPtoPICT( aBmp, aPict );
-
+
bool bResult = false;
-
+
NSData* pData = [NSData dataWithBytesNoCopy: const_cast<sal_Int8*>(aBmp.getConstArray()) length: aBmp.getLength() freeWhenDone: 0];
if( pData )
{
@@ -197,7 +197,7 @@ bool BMPToImage( com::sun::star::uno::Sequence<sal_Int8>& aBmp,
}
}
}
-
+
return bResult;
}
diff --git a/vcl/aqua/source/dtrans/PictToBmpFlt.hxx b/vcl/aqua/source/dtrans/PictToBmpFlt.hxx
index cdd0c41d5f4b..4673c4d73798 100644
--- a/vcl/aqua/source/dtrans/PictToBmpFlt.hxx
+++ b/vcl/aqua/source/dtrans/PictToBmpFlt.hxx
@@ -10,10 +10,10 @@
/* Transform PICT into the a Window BMP.
- Returns true if the conversion was successful false
+ Returns true if the conversion was successful false
otherwise.
*/
-bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
+bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
com::sun::star::uno::Sequence<sal_Int8>& aBmp);
/* Transform a Windows BMP to a PICT.
@@ -21,16 +21,16 @@ bool PICTtoBMP(com::sun::star::uno::Sequence<sal_Int8>& aPict,
Returns true if the conversion was successful false
otherwise.
*/
-bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
+bool BMPtoPICT(com::sun::star::uno::Sequence<sal_Int8>& aBmp,
com::sun::star::uno::Sequence<sal_Int8>& aPict);
#define PICTImageFileType ((NSBitmapImageFileType)~0)
-bool ImageToBMP( com::sun::star::uno::Sequence<sal_Int8>& aPict,
+bool ImageToBMP( com::sun::star::uno::Sequence<sal_Int8>& aPict,
com::sun::star::uno::Sequence<sal_Int8>& aBmp,
NSBitmapImageFileType eInFormat);
-bool BMPToImage( com::sun::star::uno::Sequence<sal_Int8>& aBmp,
+bool BMPToImage( com::sun::star::uno::Sequence<sal_Int8>& aBmp,
com::sun::star::uno::Sequence<sal_Int8>& aPict,
NSBitmapImageFileType eOutFormat
);
diff --git a/vcl/aqua/source/dtrans/aqua_clipboard.cxx b/vcl/aqua/source/dtrans/aqua_clipboard.cxx
index 21b8bc5c96d9..4a95fc7a8734 100644
--- a/vcl/aqua/source/dtrans/aqua_clipboard.cxx
+++ b/vcl/aqua/source/dtrans/aqua_clipboard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,12 +53,12 @@ using namespace comphelper;
@implementation EventListener;
-(EventListener*)initWithAquaClipboard: (AquaClipboard*) pcb
-{
+{
self = [super init];
-
+
if (self)
pAquaClipboard = pcb;
-
+
return self;
}
@@ -103,9 +103,9 @@ AquaClipboard::AquaClipboard(NSPasteboard* pasteboard, bool bUseSystemPasteboard
OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.datatransfer.MimeContentTypeFactory"))), UNO_QUERY);
if (!mrXMimeCntFactory.is())
- {
+ {
throw RuntimeException(OUString(
- RTL_CONSTASCII_USTRINGPARAM("AquaClipboard: Cannot create com.sun.star.datatransfer.MimeContentTypeFactory")),
+ RTL_CONSTASCII_USTRINGPARAM("AquaClipboard: Cannot create com.sun.star.datatransfer.MimeContentTypeFactory")),
static_cast<XClipboardEx*>(this));
}
@@ -118,13 +118,13 @@ AquaClipboard::AquaClipboard(NSPasteboard* pasteboard, bool bUseSystemPasteboard
}
else
{
- mPasteboard = bUseSystemPasteboard ? [NSPasteboard generalPasteboard] :
+ mPasteboard = bUseSystemPasteboard ? [NSPasteboard generalPasteboard] :
[NSPasteboard pasteboardWithName: NSDragPboard];
if (mPasteboard == nil)
- {
+ {
throw RuntimeException(OUString(
- RTL_CONSTASCII_USTRINGPARAM("AquaClipboard: Cannot create Cocoa pasteboard")),
+ RTL_CONSTASCII_USTRINGPARAM("AquaClipboard: Cannot create Cocoa pasteboard")),
static_cast<XClipboardEx*>(this));
}
}
@@ -138,7 +138,7 @@ AquaClipboard::AquaClipboard(NSPasteboard* pasteboard, bool bUseSystemPasteboard
[mPasteboard release];
throw RuntimeException(
- OUString(RTL_CONSTASCII_USTRINGPARAM("AquaClipboard: Cannot create pasteboard change listener")),
+ OUString(RTL_CONSTASCII_USTRINGPARAM("AquaClipboard: Cannot create pasteboard change listener")),
static_cast<XClipboardEx*>(this));
}
@@ -146,10 +146,10 @@ AquaClipboard::AquaClipboard(NSPasteboard* pasteboard, bool bUseSystemPasteboard
{
NSNotificationCenter* notificationCenter = [NSNotificationCenter defaultCenter];
- [notificationCenter addObserver: mEventListener
- selector: @selector(applicationDidBecomeActive:)
- name: @"NSApplicationDidBecomeActiveNotification"
- object: [NSApplication sharedApplication]];
+ [notificationCenter addObserver: mEventListener
+ selector: @selector(applicationDidBecomeActive:)
+ name: @"NSApplicationDidBecomeActiveNotification"
+ object: [NSApplication sharedApplication]];
}
mPasteboardChangeCount = [mPasteboard changeCount];
@@ -158,7 +158,7 @@ AquaClipboard::AquaClipboard(NSPasteboard* pasteboard, bool bUseSystemPasteboard
AquaClipboard::~AquaClipboard()
{
- if (mIsSystemPasteboard)
+ if (mIsSystemPasteboard)
{
[[NSNotificationCenter defaultCenter] removeObserver: mEventListener];
}
@@ -172,22 +172,22 @@ AquaClipboard::~AquaClipboard()
Reference<XTransferable> SAL_CALL AquaClipboard::getContents() throw(RuntimeException)
{
MutexGuard aGuard(m_aMutex);
-
- // Shortcut: If we are clipboard owner already we don't need
+
+ // Shortcut: If we are clipboard owner already we don't need
// to drag the data through the system clipboard
if (mXClipboardContent.is())
{
return mXClipboardContent;
}
- return Reference<XTransferable>(new OSXTransferable(mrXMimeCntFactory,
- mpDataFlavorMapper,
+ return Reference<XTransferable>(new OSXTransferable(mrXMimeCntFactory,
+ mpDataFlavorMapper,
mPasteboard));
}
-void SAL_CALL AquaClipboard::setContents(const Reference<XTransferable>& xTransferable,
- const Reference<XClipboardOwner>& xClipboardOwner)
+void SAL_CALL AquaClipboard::setContents(const Reference<XTransferable>& xTransferable,
+ const Reference<XClipboardOwner>& xClipboardOwner)
throw( RuntimeException )
{
NSArray* types = xTransferable.is() ?
@@ -195,24 +195,24 @@ void SAL_CALL AquaClipboard::setContents(const Reference<XTransferable>& xTransf
[NSArray array];
ClearableMutexGuard aGuard(m_aMutex);
-
+
Reference<XClipboardOwner> oldOwner(mXClipboardOwner);
mXClipboardOwner = xClipboardOwner;
-
+
Reference<XTransferable> oldContent(mXClipboardContent);
mXClipboardContent = xTransferable;
-
+
mPasteboardChangeCount = [mPasteboard declareTypes: types owner: mEventListener];
aGuard.clear();
-
+
// if we are already the owner of the clipboard
// then fire lost ownership event
if (oldOwner.is())
{
fireLostClipboardOwnershipEvent(oldOwner, oldContent);
}
-
+
fireClipboardChangedEvent();
}
@@ -229,26 +229,26 @@ sal_Int8 SAL_CALL AquaClipboard::getRenderingCapabilities() throw( RuntimeExcept
}
-void SAL_CALL AquaClipboard::addClipboardListener(const Reference< XClipboardListener >& listener)
+void SAL_CALL AquaClipboard::addClipboardListener(const Reference< XClipboardListener >& listener)
throw( RuntimeException )
{
MutexGuard aGuard(m_aMutex);
-
+
if (!listener.is())
- throw IllegalArgumentException(OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")),
+ throw IllegalArgumentException(OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")),
static_cast<XClipboardEx*>(this), 1);
-
+
mClipboardListeners.push_back(listener);
}
-void SAL_CALL AquaClipboard::removeClipboardListener(const Reference< XClipboardListener >& listener)
+void SAL_CALL AquaClipboard::removeClipboardListener(const Reference< XClipboardListener >& listener)
throw( RuntimeException )
{
MutexGuard aGuard(m_aMutex);
if (!listener.is())
- throw IllegalArgumentException(OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")),
+ throw IllegalArgumentException(OUString(RTL_CONSTASCII_USTRINGPARAM("empty reference")),
static_cast<XClipboardEx*>(this), 1);
mClipboardListeners.remove(listener);
@@ -317,7 +317,7 @@ void AquaClipboard::fireLostClipboardOwnershipEvent(Reference<XClipboardOwner> o
BOOST_ASSERT(oldOwner.is());
try { oldOwner->lostOwnership(static_cast<XClipboardEx*>(this), oldContent); }
- catch(RuntimeException&) { }
+ catch(RuntimeException&) { }
}
@@ -327,10 +327,10 @@ void AquaClipboard::provideDataForType(NSPasteboard* sender, NSString* type)
{
DataProviderPtr_t dp = mpDataFlavorMapper->getDataProvider(type, mXClipboardContent);
NSData* pBoardData = NULL;
-
+
if (dp.get() != NULL)
{
- pBoardData = (NSData*)dp->getSystemData();
+ pBoardData = (NSData*)dp->getSystemData();
[sender setData: pBoardData forType: type];
}
}
@@ -340,19 +340,19 @@ void AquaClipboard::provideDataForType(NSPasteboard* sender, NSString* type)
//------------------------------------------------
// XFlushableClipboard
//------------------------------------------------
-
-void SAL_CALL AquaClipboard::flushClipboard()
+
+void SAL_CALL AquaClipboard::flushClipboard()
throw(RuntimeException)
{
if (mXClipboardContent.is())
{
- Sequence<DataFlavor> flavorList = mXClipboardContent->getTransferDataFlavors();
+ Sequence<DataFlavor> flavorList = mXClipboardContent->getTransferDataFlavors();
sal_uInt32 nFlavors = flavorList.getLength();
-
+
for (sal_uInt32 i = 0; i < nFlavors; i++)
{
NSString* sysType = mpDataFlavorMapper->openOfficeToSystemFlavor(flavorList[i]);
-
+
if (sysType != NULL)
{
provideDataForType(mPasteboard, sysType);
diff --git a/vcl/aqua/source/dtrans/aqua_clipboard.hxx b/vcl/aqua/source/dtrans/aqua_clipboard.hxx
index e495ee3c239e..ce6f463499e9 100644
--- a/vcl/aqua/source/dtrans/aqua_clipboard.hxx
+++ b/vcl/aqua/source/dtrans/aqua_clipboard.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,22 +72,22 @@ class AquaClipboard;
class AquaClipboard : public ::cppu::BaseMutex,
- public ::cppu::WeakComponentImplHelper4< com::sun::star::datatransfer::clipboard::XClipboardEx,
- com::sun::star::datatransfer::clipboard::XClipboardNotifier,
+ public ::cppu::WeakComponentImplHelper4< com::sun::star::datatransfer::clipboard::XClipboardEx,
+ com::sun::star::datatransfer::clipboard::XClipboardNotifier,
com::sun::star::datatransfer::clipboard::XFlushableClipboard,
com::sun::star::lang::XServiceInfo >,
private ::boost::noncopyable
{
public:
- /* Create a clipboard instance.
-
- @param pasteboard
+ /* Create a clipboard instance.
+
+ @param pasteboard
If not equal NULL the instance will be instantiated with the provided
pasteboard reference and 'bUseSystemClipboard' will be ignored
@param bUseSystemClipboard
If 'pasteboard' is NULL 'bUseSystemClipboard' determines whether the
- system clipboard will be created (bUseSystemClipboard == true) or if
+ system clipboard will be created (bUseSystemClipboard == true) or if
the DragPasteboard if bUseSystemClipboard == false
*/
AquaClipboard(NSPasteboard* pasteboard = NULL,
@@ -98,51 +98,51 @@ public:
//------------------------------------------------
// XClipboard
//------------------------------------------------
-
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
+
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL setContents( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable,
- const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
+ virtual void SAL_CALL setContents( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
throw( ::com::sun::star::uno::RuntimeException );
- virtual ::rtl::OUString SAL_CALL getName()
+ virtual ::rtl::OUString SAL_CALL getName()
throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
- // XClipboardEx
+ // XClipboardEx
//------------------------------------------------
virtual sal_Int8 SAL_CALL getRenderingCapabilities()
throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
- // XClipboardNotifier
+ // XClipboardNotifier
//------------------------------------------------
- virtual void SAL_CALL addClipboardListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL addClipboardListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw( ::com::sun::star::uno::RuntimeException );
- virtual void SAL_CALL removeClipboardListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL removeClipboardListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw( ::com::sun::star::uno::RuntimeException );
//------------------------------------------------
// XFlushableClipboard
//------------------------------------------------
-
+
virtual void SAL_CALL flushClipboard( ) throw( com::sun::star::uno::RuntimeException );
//------------------------------------------------
// XServiceInfo
- //------------------------------------------------
+ //------------------------------------------------
virtual ::rtl::OUString SAL_CALL getImplementationName()
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
+ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
throw(::com::sun::star::uno::RuntimeException);
/* Get a reference to the used pastboard.
diff --git a/vcl/aqua/source/dtrans/aqua_service.cxx b/vcl/aqua/source/dtrans/aqua_service.cxx
index 65f438b0180d..4fa1a2c2a1ef 100644
--- a/vcl/aqua/source/dtrans/aqua_service.cxx
+++ b/vcl/aqua/source/dtrans/aqua_service.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ Reference< XInterface > SAL_CALL createInstance( const Reference< XMultiServiceF
} // namespace aqua
-extern "C"
+extern "C"
{
void SAL_CALL component_getImplementationEnvironment(
@@ -67,13 +67,13 @@ sal_Bool SAL_CALL component_writeInfo( void* pServiceManager, void* pRegistryKey
{
try
{
- Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
+ Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) );
pXNewKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( AQUA_CLIPBOARD_REGKEY_NAME ) ) );
bRetVal = sal_True;
}
catch( InvalidRegistryException& )
- {
- OSL_ENSURE(sal_False, "InvalidRegistryException caught");
+ {
+ OSL_ENSURE(sal_False, "InvalidRegistryException caught");
bRetVal = sal_False;
}
}
@@ -88,8 +88,8 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, AQUA_CLIPBOARD_IMPL_NAME ) ) )
{
Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( AQUA_CLIPBOARD_SERVICE_NAME ) );
-
+ aSNS.getArray()[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( AQUA_CLIPBOARD_SERVICE_NAME ) );
+
//OUString( RTL_CONSTASCII_USTRINGPARAM( FPS_IMPL_NAME ) )
Reference< XSingleServiceFactory > xFactory ( createOneInstanceFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
@@ -100,7 +100,7 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p
{
xFactory->acquire();
pRet = xFactory.get();
- }
+ }
}
return pRet;
diff --git a/vcl/aqua/source/dtrans/service_entry.cxx b/vcl/aqua/source/dtrans/service_entry.cxx
index 73476525b6b4..1e683b413ec0 100644
--- a/vcl/aqua/source/dtrans/service_entry.cxx
+++ b/vcl/aqua/source/dtrans/service_entry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/dtrans/test_aquacb.cxx b/vcl/aqua/source/dtrans/test_aquacb.cxx
index 6a223a9bcec1..9a0ec9af4187 100644
--- a/vcl/aqua/source/dtrans/test_aquacb.cxx
+++ b/vcl/aqua/source/dtrans/test_aquacb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,26 +44,26 @@
#include <stdio.h>
-using namespace ::rtl;
+using namespace ::rtl;
using namespace ::std;
using namespace ::cppu;
using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::datatransfer::clipboard;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::io;
-using namespace ::com::sun::star::lang;
+using namespace ::com::sun::star::lang;
Reference< XTransferable > rXTransfRead;
class TestTransferable : public WeakImplHelper2< XClipboardOwner, XTransferable >
{
-public:
+public:
TestTransferable();
virtual Any SAL_CALL getTransferData( const DataFlavor& aFlavor ) throw(UnsupportedFlavorException, IOException, RuntimeException);
virtual Sequence< DataFlavor > SAL_CALL getTransferDataFlavors() throw(RuntimeException);
virtual sal_Bool SAL_CALL isDataFlavorSupported( const DataFlavor& aFlavor ) throw(RuntimeException);
virtual void SAL_CALL lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans ) throw(RuntimeException);
-
+
private:
Sequence< DataFlavor > m_seqDFlv;
OUString m_Data;
@@ -74,16 +74,16 @@ TestTransferable::TestTransferable() :
m_Data( RTL_CONSTASCII_USTRINGPARAM( "This is a test string" ) )
{
DataFlavor df;
-
+
df.MimeType = OUString::createFromAscii( "text/html" );
df.DataType = getCppuType( ( Sequence< sal_Int8 >* )0 );
- m_seqDFlv[0] = df;
+ m_seqDFlv[0] = df;
}
-Any SAL_CALL TestTransferable::getTransferData( const DataFlavor& aFlavor )
+Any SAL_CALL TestTransferable::getTransferData( const DataFlavor& aFlavor )
throw(UnsupportedFlavorException, IOException, RuntimeException)
-{
+{
Any anyData;
if ( aFlavor.MimeType == m_seqDFlv[0].MimeType )
@@ -101,13 +101,13 @@ Any SAL_CALL TestTransferable::getTransferData( const DataFlavor& aFlavor )
return anyData;
}
-Sequence< DataFlavor > SAL_CALL TestTransferable::getTransferDataFlavors()
+Sequence< DataFlavor > SAL_CALL TestTransferable::getTransferDataFlavors()
throw(RuntimeException)
{
return m_seqDFlv;
}
-sal_Bool SAL_CALL TestTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
+sal_Bool SAL_CALL TestTransferable::isDataFlavorSupported( const DataFlavor& aFlavor )
throw(RuntimeException)
{
sal_Int32 nLength = m_seqDFlv.getLength();
@@ -125,7 +125,7 @@ sal_Bool SAL_CALL TestTransferable::isDataFlavorSupported( const DataFlavor& aFl
return bRet;
}
-void SAL_CALL TestTransferable::lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
+void SAL_CALL TestTransferable::lostOwnership( const Reference< XClipboard >& xClipboard, const Reference< XTransferable >& xTrans )
throw(RuntimeException)
{
}
@@ -197,13 +197,13 @@ int SAL_CALL main( int argc, char** argv )
if ( !xComponent.is() )
OSL_ENSURE(sal_False, "Error shuting down");
-
+
// Dispose and clear factory
xComponent->dispose();
g_xFactory.clear();
g_xFactory = Reference< XMultiServiceFactory >();
- return 0;
+ return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/aqua/source/gdi/salatslayout.cxx b/vcl/aqua/source/gdi/salatslayout.cxx
index f79da3559b35..d6abb0cf93dd 100644
--- a/vcl/aqua/source/gdi/salatslayout.cxx
+++ b/vcl/aqua/source/gdi/salatslayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,11 +43,11 @@ public:
ATSLayout( ATSUStyle&, float fFontScale );
virtual ~ATSLayout();
- virtual bool LayoutText( ImplLayoutArgs& );
- virtual void AdjustLayout( ImplLayoutArgs& );
- virtual void DrawText( SalGraphics& ) const;
+ virtual bool LayoutText( ImplLayoutArgs& );
+ virtual void AdjustLayout( ImplLayoutArgs& );
+ virtual void DrawText( SalGraphics& ) const;
- virtual int GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos, int&,
+ virtual int GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos, int&,
sal_Int32* pGlyphAdvances, int* pCharIndexes ) const;
virtual long GetTextWidth() const;
@@ -65,49 +65,49 @@ public:
virtual void Simplify( bool bIsBase );
private:
- ATSUStyle& mrATSUStyle;
- ATSUTextLayout maATSULayout;
- int mnCharCount; // ==mnEndCharPos-mnMinCharPos
+ ATSUStyle& mrATSUStyle;
+ ATSUTextLayout maATSULayout;
+ int mnCharCount; // ==mnEndCharPos-mnMinCharPos
// to prevent ATS overflowing the Fixed16.16 values
// ATS font requests get size limited by downscaling huge fonts
// in these cases the font scale becomes something bigger than 1.0
- float mfFontScale;
+ float mfFontScale;
private:
- bool InitGIA( ImplLayoutArgs* pArgs = NULL ) const;
- bool GetIdealX() const;
- bool GetDeltaY() const;
- void InvalidateMeasurements();
+ bool InitGIA( ImplLayoutArgs* pArgs = NULL ) const;
+ bool GetIdealX() const;
+ bool GetDeltaY() const;
+ void InvalidateMeasurements();
- int Fixed2Vcl( Fixed ) const; // convert ATSU-Fixed units to VCL units
- int AtsuPix2Vcl( int ) const; // convert ATSU-Pixel units to VCL units
- Fixed Vcl2Fixed( int ) const; // convert VCL units to ATSU-Fixed units
+ int Fixed2Vcl( Fixed ) const; // convert ATSU-Fixed units to VCL units
+ int AtsuPix2Vcl( int ) const; // convert ATSU-Pixel units to VCL units
+ Fixed Vcl2Fixed( int ) const; // convert VCL units to ATSU-Fixed units
// cached details about the resulting layout
// mutable members since these details are all lazy initialized
- mutable int mnGlyphCount; // glyph count
- mutable Fixed mnCachedWidth; // cached value of resulting typographical width
- int mnTrailingSpaceWidth; // in Pixels
-
- mutable ATSGlyphRef* mpGlyphIds; // ATSU glyph ids
- mutable Fixed* mpCharWidths; // map relative charpos to charwidth
- mutable int* mpChars2Glyphs; // map relative charpos to absolute glyphpos
- mutable int* mpGlyphs2Chars; // map absolute glyphpos to absolute charpos
- mutable bool* mpGlyphRTLFlags; // BiDi status for glyphs: true if RTL
- mutable Fixed* mpGlyphAdvances; // contains glyph widths for the justified layout
- mutable Fixed* mpGlyphOrigAdvs; // contains glyph widths for the unjustified layout
- mutable Fixed* mpDeltaY; // vertical offset from the baseline
+ mutable int mnGlyphCount; // glyph count
+ mutable Fixed mnCachedWidth; // cached value of resulting typographical width
+ int mnTrailingSpaceWidth; // in Pixels
+
+ mutable ATSGlyphRef* mpGlyphIds; // ATSU glyph ids
+ mutable Fixed* mpCharWidths; // map relative charpos to charwidth
+ mutable int* mpChars2Glyphs; // map relative charpos to absolute glyphpos
+ mutable int* mpGlyphs2Chars; // map absolute glyphpos to absolute charpos
+ mutable bool* mpGlyphRTLFlags; // BiDi status for glyphs: true if RTL
+ mutable Fixed* mpGlyphAdvances; // contains glyph widths for the justified layout
+ mutable Fixed* mpGlyphOrigAdvs; // contains glyph widths for the unjustified layout
+ mutable Fixed* mpDeltaY; // vertical offset from the baseline
struct SubPortion { int mnMinCharPos, mnEndCharPos; Fixed mnXOffset; };
typedef std::vector<SubPortion> SubPortionVector;
- mutable SubPortionVector maSubPortions; // Writer&ATSUI layouts can differ quite a bit...
+ mutable SubPortionVector maSubPortions; // Writer&ATSUI layouts can differ quite a bit...
// storing details about fonts used in glyph-fallback for this layout
- mutable class FallbackInfo* mpFallbackInfo;
+ mutable class FallbackInfo* mpFallbackInfo;
// x-offset relative to layout origin
// currently only used in RTL-layouts
- mutable Fixed mnBaseAdv;
+ mutable Fixed mnBaseAdv;
};
class FallbackInfo
@@ -155,7 +155,7 @@ ATSLayout::~ATSLayout()
if( maATSULayout )
ATSUDisposeTextLayout( maATSULayout );
-
+
delete[] mpGlyphRTLFlags;
delete[] mpGlyphs2Chars;
delete[] mpChars2Glyphs;
@@ -181,7 +181,7 @@ inline int ATSLayout::Fixed2Vcl( Fixed nFixed ) const
inline int ATSLayout::AtsuPix2Vcl( int nAtsuPixel) const
{
float fVclPixel = mfFontScale * nAtsuPixel;
- fVclPixel += (fVclPixel>=0) ? +0.5 : -0.5; // prepare rounding to int
+ fVclPixel += (fVclPixel>=0) ? +0.5 : -0.5; // prepare rounding to int
int nVclPixel = static_cast<int>( fVclPixel);
return nVclPixel;
}
@@ -200,8 +200,8 @@ inline Fixed ATSLayout::Vcl2Fixed( int nPixel ) const
* @param rArgs: contains array of char to be layouted, starting and ending position of the text to layout
*
* Typographic layout of text by using the style maATSUStyle
- *
- * @return : true if everything is ok
+ *
+ * @return : true if everything is ok
**/
bool ATSLayout::LayoutText( ImplLayoutArgs& rArgs )
{
@@ -211,7 +211,7 @@ bool ATSLayout::LayoutText( ImplLayoutArgs& rArgs )
maATSULayout = NULL;
// Layout text
- // set up our locals, verify parameters...
+ // set up our locals, verify parameters...
DBG_ASSERT( (rArgs.mpStr!=NULL), "ATSLayout::LayoutText() with rArgs.mpStr==NULL !!!");
DBG_ASSERT( (mrATSUStyle!=NULL), "ATSLayout::LayoutText() with ATSUStyle==NULL !!!");
@@ -287,8 +287,8 @@ bool ATSLayout::LayoutText( ImplLayoutArgs& rArgs )
* @param rArgs: contains attributes relevant to do a text specific layout
*
* Adjust text layout by moving glyphs to match the requested logical widths
- *
- * @return : none
+ *
+ * @return : none
**/
void ATSLayout::AdjustLayout( ImplLayoutArgs& rArgs )
{
@@ -330,7 +330,7 @@ void ATSLayout::AdjustLayout( ImplLayoutArgs& rArgs )
// changing the layout will make all previous measurements invalid
InvalidateMeasurements();
-
+
ATSUAttributeTag nTags[3];
ATSUAttributeValuePtr nVals[3];
ByteCount nBytes[3];
@@ -367,17 +367,17 @@ void ATSLayout::AdjustLayout( ImplLayoutArgs& rArgs )
*
* Draw the layouted text to the CGContext
*
- * @return : none
+ * @return : none
**/
void ATSLayout::DrawText( SalGraphics& rGraphics ) const
{
AquaSalGraphics& rAquaGraphics = static_cast<AquaSalGraphics&>(rGraphics);
-
- // short circuit if there is nothing to do
+
+ // short circuit if there is nothing to do
if( (mnCharCount <= 0)
|| !rAquaGraphics.CheckContext() )
return;
-
+
// the view is vertically flipped => flipped glyphs
// so apply a temporary transformation that it flips back
// also compensate if the font was size limited
@@ -469,7 +469,7 @@ void ATSLayout::DrawText( SalGraphics& rGraphics ) const
* ATSLayout::GetNextGlyphs : Get info about next glyphs in the layout
*
* @param nLen: max number of char
- * @param pGlyphs: returned array of glyph ids
+ * @param pGlyphs: returned array of glyph ids
* @param rPos: returned x starting position
* @param nStart: index of the first requested glyph
* @param pGlyphAdvances: returned array of glyphs advances
@@ -576,14 +576,14 @@ int ATSLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIDs, Point& rPos, int
nCharPos = nStart + mnMinCharPos;
*(pCharIndexes++) = nCharPos;
}
-
+
// stop at last glyph
if( ++nStart >= mnGlyphCount )
break;
// stop when next the x-position is unexpected
if( !maSubPortions.empty() )
- break; // TODO: finish the complete sub-portion
+ break; // TODO: finish the complete sub-portion
if( !pGlyphAdvances && mpGlyphOrigAdvs )
if( mpGlyphAdvances[nStart-1] != mpGlyphOrigAdvs[nStart-1] )
break;
@@ -603,7 +603,7 @@ int ATSLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIDs, Point& rPos, int
*
* Get typographic bounds of the text
*
- * @return : text width
+ * @return : text width
**/
long ATSLayout::GetTextWidth() const
{
@@ -680,7 +680,7 @@ long ATSLayout::FillDXArray( long* pDXArray ) const
DBG_ASSERT( !mnTrailingSpaceWidth, "ATSLayout::FillDXArray() with nTSW!=0" );
// initialize details about the resulting layout
- InitGIA();
+ InitGIA();
// distribute the widths among the string elements
int nPixWidth = 0;
@@ -708,7 +708,7 @@ long ATSLayout::FillDXArray( long* pDXArray ) const
* Measure the layouted text to find the typographical line break
* the result is needed by the language specific line breaking
*
- * @return : string index corresponding to the suggested line break
+ * @return : string index corresponding to the suggested line break
**/
int ATSLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) const
{
@@ -750,7 +750,7 @@ int ATSLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) cons
// initial measurement of text break position
UniCharArrayOffset nBreakPos = mnMinCharPos;
- const ATSUTextMeasurement nATSUMaxWidth = Vcl2Fixed( nPixelWidth );
+ const ATSUTextMeasurement nATSUMaxWidth = Vcl2Fixed( nPixelWidth );
if( nATSUMaxWidth <= 0xFFFF ) // #i108584# avoid ATSU rejecting the parameter
return mnMinCharPos; // or do ATSUMaxWidth=0x10000;
OSStatus eStatus = ATSUBreakLine( maATSULayout, mnMinCharPos,
@@ -794,7 +794,7 @@ int ATSLayout::GetTextBreak( long nMaxWidth, long nCharExtra, int nFactor ) cons
*
* Fill the array of positions of carets (for cursors and selections)
*
- * @return : none
+ * @return : none
**/
void ATSLayout::GetCaretPositions( int nMaxIndex, long* pCaretXArray ) const
{
@@ -817,7 +817,7 @@ void ATSLayout::GetCaretPositions( int nMaxIndex, long* pCaretXArray ) const
&aCaret0, &aCaret1, &bIsSplit );
if( eStatus != noErr )
continue;
- const Fixed nFixedPos = mnBaseAdv + aCaret0.fX;
+ const Fixed nFixedPos = mnBaseAdv + aCaret0.fX;
// convert the measurement to pixel units
const int nPixelPos = Fixed2Vcl( nFixedPos );
// update previous trailing position
@@ -838,7 +838,7 @@ void ATSLayout::GetCaretPositions( int nMaxIndex, long* pCaretXArray ) const
*
* Get ink bounds of the text
*
- * @return : measurement valid
+ * @return : measurement valid
**/
bool ATSLayout::GetBoundRect( SalGraphics&, Rectangle& rVCLRect ) const
{
@@ -865,7 +865,7 @@ bool ATSLayout::GetBoundRect( SalGraphics&, Rectangle& rVCLRect ) const
* ATSLayout::InitGIA() : get many informations about layouted text
*
* Fills arrays of information about the gylph layout previously done
- * in ASTLayout::LayoutText() : glyph advance (width), glyph delta Y (from baseline),
+ * in ASTLayout::LayoutText() : glyph advance (width), glyph delta Y (from baseline),
* mapping between glyph index and character index, chars widths
*
* @return : true if everything could be computed, otherwise false
@@ -876,14 +876,14 @@ bool ATSLayout::InitGIA( ImplLayoutArgs* pArgs ) const
if( mnGlyphCount >= 0 )
return true;
mnGlyphCount = 0;
-
+
// Workaround a bug in ATSUI with empty string
if( mnCharCount <= 0 )
return false;
// initialize character details
- mpCharWidths = new Fixed[ mnCharCount ];
- mpChars2Glyphs = new int[ mnCharCount ];
+ mpCharWidths = new Fixed[ mnCharCount ];
+ mpChars2Glyphs = new int[ mnCharCount ];
for( int n = 0; n < mnCharCount; ++n )
{
mpCharWidths[ n ] = 0;
@@ -903,8 +903,8 @@ bool ATSLayout::InitGIA( ImplLayoutArgs* pArgs ) const
// initialize glyph details
mpGlyphIds = new ATSGlyphRef[ iLayoutDataCount ];
- mpGlyphAdvances = new Fixed[ iLayoutDataCount ];
- mpGlyphs2Chars = new int[ iLayoutDataCount ];
+ mpGlyphAdvances = new Fixed[ iLayoutDataCount ];
+ mpGlyphs2Chars = new int[ iLayoutDataCount ];
// measure details of the glyph layout
Fixed nLeftPos = 0;
@@ -916,7 +916,7 @@ bool ATSLayout::InitGIA( ImplLayoutArgs* pArgs ) const
const int nRelativeIdx = (rALR.originalOffset / 2);
if( i+1 < iLayoutDataCount )
mpCharWidths[ nRelativeIdx ] += pALR[i+1].realPos - rALR.realPos;
-
+
// new glyph is available => finish measurement of old glyph
if( mnGlyphCount > 0 )
mpGlyphAdvances[ mnGlyphCount-1 ] = rALR.realPos - nLeftPos;
@@ -1058,17 +1058,17 @@ bool ATSLayout::GetDeltaY() const
if( mpDeltaY == NULL )
return true;
-
+
if( nDeltaCount != (ItemCount)mnGlyphCount )
{
DBG_WARNING( "ATSLayout::GetDeltaY() : wrong deltaY count!" );
ATSUDirectReleaseLayoutDataArrayPtr( NULL,
- kATSUDirectDataBaselineDeltaFixedArray, (void**)&mpDeltaY );
+ kATSUDirectDataBaselineDeltaFixedArray, (void**)&mpDeltaY );
mpDeltaY = NULL;
return false;
}
#endif
-
+
return true;
}
diff --git a/vcl/aqua/source/gdi/salatsuifontutils.cxx b/vcl/aqua/source/gdi/salatsuifontutils.cxx
index c11ca9764400..9884c4fb6486 100644
--- a/vcl/aqua/source/gdi/salatsuifontutils.cxx
+++ b/vcl/aqua/source/gdi/salatsuifontutils.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -216,10 +216,10 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
return false;
// all scalable fonts on this platform are subsettable
- rDFA.mbSubsettable = true;
- rDFA.mbEmbeddable = false;
+ rDFA.mbSubsettable = true;
+ rDFA.mbEmbeddable = false;
- // prepare iterating over all name strings of the font
+ // prepare iterating over all name strings of the font
ItemCount nFontNameCount = 0;
rc = ATSUCountFontNames( nFontID, &nFontNameCount );
if( rc != noErr )
@@ -236,9 +236,9 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
{
ByteCount nNameLength = 0;
- FontNameCode eFontNameCode;
- FontPlatformCode eFontNamePlatform;
- FontScriptCode eFontNameScript;
+ FontNameCode eFontNameCode;
+ FontPlatformCode eFontNamePlatform;
+ FontScriptCode eFontNameScript;
FontLanguageCode eFontNameLanguage;
rc = ATSUGetIndFontName( nFontID, nNameIndex, 0, NULL,
&nNameLength, &eFontNameCode, &eFontNamePlatform, &eFontNameScript, &eFontNameLanguage );
@@ -267,13 +267,13 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
case 0x30A: nNameValue += 0; // Win-UCS-4
eEncoding = RTL_TEXTENCODING_UCS4;
break;
- case 0x100: nNameValue += 21; // Mac Roman
+ case 0x100: nNameValue += 21; // Mac Roman
eEncoding = RTL_TEXTENCODING_APPLE_ROMAN;
break;
case 0x300: nNameValue = 0; // Win Symbol encoded name!
rDFA.mbSymbolFlag = true; // (often seen for symbol fonts)
break;
- default: nNameValue = 0; // ignore other encodings
+ default: nNameValue = 0; // ignore other encodings
break;
}
diff --git a/vcl/aqua/source/gdi/salbmp.cxx b/vcl/aqua/source/gdi/salbmp.cxx
index 3a37f6d32d39..9d14d686472f 100644
--- a/vcl/aqua/source/gdi/salbmp.cxx
+++ b/vcl/aqua/source/gdi/salbmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -136,7 +136,7 @@ bool AquaSalBitmap::Create( const SalBitmap& rSalBmp, USHORT nNewBitCount )
{
const AquaSalBitmap& rSourceBitmap = static_cast<const AquaSalBitmap&>(rSalBmp);
- if( isValidBitCount( nNewBitCount ) && rSourceBitmap.maUserBuffer.get() )
+ if( isValidBitCount( nNewBitCount ) && rSourceBitmap.maUserBuffer.get() )
{
mnBits = nNewBitCount;
mnWidth = rSourceBitmap.mnWidth;
@@ -258,17 +258,17 @@ bool AquaSalBitmap::AllocateUserData()
switch( mnBits )
{
- case 1: mnBytesPerRow = (mnWidth + 7) >> 3; break;
- case 4: mnBytesPerRow = (mnWidth + 1) >> 1; break;
- case 8: mnBytesPerRow = mnWidth; break;
- case 16: mnBytesPerRow = mnWidth << 1; break;
- case 24: mnBytesPerRow = (mnWidth << 1) + mnWidth; break;
- case 32: mnBytesPerRow = mnWidth << 2; break;
+ case 1: mnBytesPerRow = (mnWidth + 7) >> 3; break;
+ case 4: mnBytesPerRow = (mnWidth + 1) >> 1; break;
+ case 8: mnBytesPerRow = mnWidth; break;
+ case 16: mnBytesPerRow = mnWidth << 1; break;
+ case 24: mnBytesPerRow = (mnWidth << 1) + mnWidth; break;
+ case 32: mnBytesPerRow = mnWidth << 2; break;
default:
DBG_ERROR("vcl::AquaSalBitmap::AllocateUserData(), illegal bitcount!");
}
}
-
+
try
{
if( mnBytesPerRow )
@@ -280,7 +280,7 @@ bool AquaSalBitmap::AllocateUserData()
maUserBuffer.reset( NULL );
mnBytesPerRow = 0;
}
-
+
return maUserBuffer.get() != 0;
}
@@ -292,7 +292,7 @@ protected:
sal_uInt8* pData;
public:
static ImplPixelFormat* GetFormat( sal_uInt16 nBits, const BitmapPalette& rPalette );
-
+
virtual void StartLine( sal_uInt8* pLine ) { pData = pLine; }
virtual void SkipPixel( sal_uInt32 nPixel ) = 0;
virtual ColorData ReadPixel() = 0;
@@ -350,7 +350,7 @@ class ImplPixelFormat16 : public ImplPixelFormat
protected:
sal_uInt16* pData16;
public:
-
+
virtual void StartLine( sal_uInt8* pLine )
{
pData16 = (sal_uInt16*)pLine;
@@ -367,7 +367,7 @@ public:
}
virtual void WritePixel( ColorData nColor )
{
- *pData++ = ((COLORDATA_RED( nColor ) & 0xf8 ) << 7 ) ||
+ *pData++ = ((COLORDATA_RED( nColor ) & 0xf8 ) << 7 ) ||
((COLORDATA_GREEN( nColor ) & 0xf8 ) << 2 ) ||
((COLORDATA_BLUE( nColor ) & 0xf8 ) >> 3 );
}
@@ -424,14 +424,14 @@ public:
}
virtual ColorData ReadPixel()
{
- const BitmapColor& rColor = mrPalette[( pData[mnX >> 1] >> mnShift) & 0x0f];
+ const BitmapColor& rColor = mrPalette[( pData[mnX >> 1] >> mnShift) & 0x0f];
mnX++;
mnShift ^= 4;
return rColor.operator Color().GetColor();
}
virtual void WritePixel( ColorData nColor )
{
- const BitmapColor aColor( COLORDATA_RED( nColor ), COLORDATA_GREEN( nColor ), COLORDATA_BLUE( nColor ) );
+ const BitmapColor aColor( COLORDATA_RED( nColor ), COLORDATA_GREEN( nColor ), COLORDATA_BLUE( nColor ) );
pData[mnX>>1] &= (0xf0 >> mnShift);
pData[mnX>>1] |= (static_cast< sal_uInt8 >( mrPalette.GetBestIndex( aColor ) ) & 0x0f);
mnX++;
@@ -461,13 +461,13 @@ public:
}
virtual ColorData ReadPixel()
{
- const BitmapColor& rColor = mrPalette[ (pData[mnX >> 3 ] >> ( 7 - ( mnX & 7 ) )) & 1];
+ const BitmapColor& rColor = mrPalette[ (pData[mnX >> 3 ] >> ( 7 - ( mnX & 7 ) )) & 1];
mnX++;
return rColor.operator Color().GetColor();
}
virtual void WritePixel( ColorData nColor )
{
- const BitmapColor aColor( COLORDATA_RED( nColor ), COLORDATA_GREEN( nColor ), COLORDATA_BLUE( nColor ) );
+ const BitmapColor aColor( COLORDATA_RED( nColor ), COLORDATA_GREEN( nColor ), COLORDATA_BLUE( nColor ) );
if( mrPalette.GetBestIndex( aColor ) & 1 )
pData[ mnX >> 3 ] |= 1 << ( 7 - ( mnX & 7 ) );
else
@@ -487,7 +487,7 @@ ImplPixelFormat* ImplPixelFormat::GetFormat( sal_uInt16 nBits, const BitmapPalet
case 24: return new ImplPixelFormat24;
case 32: return new ImplPixelFormat32;
}
-
+
return 0;
}
@@ -549,7 +549,7 @@ void AquaSalBitmap::ConvertBitmapData( sal_uInt32 nWidth, sal_uInt32 nHeight,
sal_uInt32 nX = nWidth;
while( nX-- )
pD->WritePixel( pS->ReadPixel() );
-
+
pSrcData += nSrcBytesPerRow;
pDestData += nDestBytesPerRow;
}
@@ -583,21 +583,21 @@ static struct pal_entry
}
const aImplSalSysPalEntryAry[ 16 ] =
{
-{ 0, 0, 0 },
-{ 0, 0, 0x80 },
-{ 0, 0x80, 0 },
-{ 0, 0x80, 0x80 },
-{ 0x80, 0, 0 },
+{ 0, 0, 0 },
+{ 0, 0, 0x80 },
+{ 0, 0x80, 0 },
+{ 0, 0x80, 0x80 },
+{ 0x80, 0, 0 },
{ 0x80, 0, 0x80 },
-{ 0x80, 0x80, 0 },
+{ 0x80, 0x80, 0 },
{ 0x80, 0x80, 0x80 },
{ 0xC0, 0xC0, 0xC0 },
-{ 0, 0, 0xFF },
-{ 0, 0xFF, 0 },
-{ 0, 0xFF, 0xFF },
-{ 0xFF, 0, 0 },
+{ 0, 0, 0xFF },
+{ 0, 0xFF, 0 },
+{ 0, 0xFF, 0xFF },
+{ 0xFF, 0, 0 },
{ 0xFF, 0, 0xFF },
-{ 0xFF, 0xFF, 0 },
+{ 0xFF, 0xFF, 0 },
{ 0xFF, 0xFF, 0xFF }
};
@@ -618,7 +618,7 @@ const BitmapPalette& GetDefaultPalette( int mnBits, bool bMonochrome )
aDefPalette256.SetEntryCount( 256 );
aDefPalette16.SetEntryCount( 16 );
aDefPalette2.SetEntryCount( 2 );
-
+
// Standard colors
unsigned int i;
for( i = 0; i < 16; i++ )
@@ -666,7 +666,7 @@ const BitmapPalette& GetDefaultPalette( int mnBits, bool bMonochrome )
BitmapBuffer* AquaSalBitmap::AcquireBuffer( bool bReadOnly )
{
if( !maUserBuffer.get() )
-// || maContextBuffer.get() && (maUserBuffer.get() != maContextBuffer.get()) )
+// || maContextBuffer.get() && (maUserBuffer.get() != maContextBuffer.get()) )
{
fprintf(stderr,"ASB::Acq(%dx%d,d=%d)\n",mnWidth,mnHeight,mnBits);
// TODO: AllocateUserData();
@@ -682,14 +682,14 @@ BitmapBuffer* AquaSalBitmap::AcquireBuffer( bool bReadOnly )
pBuffer->mnBitCount = mnBits;
switch( mnBits )
{
- case 1: pBuffer->mnFormat = BMP_FORMAT_1BIT_MSB_PAL; break;
- case 4: pBuffer->mnFormat = BMP_FORMAT_4BIT_MSN_PAL; break;
- case 8: pBuffer->mnFormat = BMP_FORMAT_8BIT_PAL; break;
- case 16: pBuffer->mnFormat = BMP_FORMAT_16BIT_TC_MSB_MASK;
+ case 1: pBuffer->mnFormat = BMP_FORMAT_1BIT_MSB_PAL; break;
+ case 4: pBuffer->mnFormat = BMP_FORMAT_4BIT_MSN_PAL; break;
+ case 8: pBuffer->mnFormat = BMP_FORMAT_8BIT_PAL; break;
+ case 16: pBuffer->mnFormat = BMP_FORMAT_16BIT_TC_MSB_MASK;
pBuffer->maColorMask = ColorMask( k16BitRedColorMask, k16BitGreenColorMask, k16BitBlueColorMask );
break;
- case 24: pBuffer->mnFormat = BMP_FORMAT_24BIT_TC_BGR; break;
- case 32: pBuffer->mnFormat = BMP_FORMAT_32BIT_TC_ARGB;
+ case 24: pBuffer->mnFormat = BMP_FORMAT_24BIT_TC_BGR; break;
+ case 32: pBuffer->mnFormat = BMP_FORMAT_32BIT_TC_ARGB;
pBuffer->maColorMask = ColorMask( k32BitRedColorMask, k32BitGreenColorMask, k32BitBlueColorMask );
break;
}
@@ -713,7 +713,7 @@ void AquaSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
if( mxGraphicContext )
DestroyContext();
}
-
+
delete pBuffer;
}
@@ -770,7 +770,7 @@ CGImageRef AquaSalBitmap::CreateWithMask( const AquaSalBitmap& rMask,
if( !CGImageIsMask(xMask) || (CGImageGetColorSpace(xMask) != GetSalData()->mxGraySpace) )
{
const CGRect xImageRect=CGRectMake( 0, 0, nWidth, nHeight );//the rect has no offset
-
+
// create the alpha mask image fitting our image
// TODO: is caching the full mask or the subimage mask worth it?
int nMaskBytesPerRow = ((nWidth + 3) & ~3);
@@ -785,13 +785,13 @@ CGImageRef AquaSalBitmap::CreateWithMask( const AquaSalBitmap& rMask,
xMask = CGImageMaskCreate( nWidth, nHeight, 8, 8, nMaskBytesPerRow, xDataProvider, pDecode, false );
CFRelease( xDataProvider );
CFRelease( xMaskContext );
- }
-
+ }
+
if( !xMask )
return xImage;
// combine image and alpha mask
- CGImageRef xMaskedImage = CGImageCreateWithMask( xImage, xMask );
+ CGImageRef xMaskedImage = CGImageCreateWithMask( xImage, xMask );
CFRelease( xMask );
CFRelease( xImage );
return xMaskedImage;
@@ -822,7 +822,7 @@ CGImageRef AquaSalBitmap::CreateColorMask( int nX, int nY, int nWidth, int nHeig
sal_uInt8* pSource = maUserBuffer.get();
if( nY )
pSource += nY * mnBytesPerRow;
-
+
int y = nHeight;
while( y-- )
{
@@ -853,7 +853,7 @@ CGImageRef AquaSalBitmap::CreateColorMask( int nX, int nY, int nWidth, int nHeig
// =======================================================================
/** AquaSalBitmap::GetSystemData Get platform native image data from existing image
- *
+ *
* @param rData struct BitmapSystemData, defined in vcl/inc/bitmap.hxx
* @return true if successful
**/
@@ -863,7 +863,7 @@ bool AquaSalBitmap::GetSystemData( BitmapSystemData& rData )
if( !mxGraphicContext )
CreateContext();
-
+
if ( mxGraphicContext )
{
bRet = true;
@@ -875,9 +875,9 @@ bool AquaSalBitmap::GetSystemData( BitmapSystemData& rData )
* We need to hack things because VCL does not use kCGBitmapByteOrder32Host, while Cairo requires it.
*/
OSL_TRACE("AquaSalBitmap::%s(): kCGBitmapByteOrder32Host not found => inserting it.",__func__);
-
+
CGImageRef xImage = CGBitmapContextCreateImage (mxGraphicContext);
-
+
// re-create the context with single change: include kCGBitmapByteOrder32Host flag.
CGContextRef mxGraphicContextNew = CGBitmapContextCreate( CGBitmapContextGetData(mxGraphicContext),
CGBitmapContextGetWidth(mxGraphicContext),
@@ -887,27 +887,27 @@ bool AquaSalBitmap::GetSystemData( BitmapSystemData& rData )
CGBitmapContextGetColorSpace(mxGraphicContext),
CGBitmapContextGetBitmapInfo(mxGraphicContext) | kCGBitmapByteOrder32Host);
CFRelease(mxGraphicContext);
-
+
// Needs to be flipped
CGContextSaveGState( mxGraphicContextNew );
CGContextTranslateCTM (mxGraphicContextNew, 0, CGBitmapContextGetHeight(mxGraphicContextNew));
CGContextScaleCTM (mxGraphicContextNew, 1.0, -1.0);
-
+
CGContextDrawImage(mxGraphicContextNew, CGRectMake( 0, 0, CGImageGetWidth(xImage), CGImageGetHeight(xImage)), xImage);
-
+
// Flip back
CGContextRestoreGState( mxGraphicContextNew );
-
+
CGImageRelease( xImage );
mxGraphicContext = mxGraphicContextNew;
- }
+ }
#endif
rData.rImageContext = (void *) mxGraphicContext;
rData.mnWidth = mnWidth;
rData.mnHeight = mnHeight;
}
-
+
return bRet;
}
diff --git a/vcl/aqua/source/gdi/salcolorutils.cxx b/vcl/aqua/source/gdi/salcolorutils.cxx
index 664011b2684d..1c5408e7a981 100644
--- a/vcl/aqua/source/gdi/salcolorutils.cxx
+++ b/vcl/aqua/source/gdi/salcolorutils.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/aqua/source/gdi/salgdi.cxx b/vcl/aqua/source/gdi/salgdi.cxx
index 5061a90d41e2..4585699d12ee 100644
--- a/vcl/aqua/source/gdi/salgdi.cxx
+++ b/vcl/aqua/source/gdi/salgdi.cxx
@@ -68,11 +68,11 @@ typedef std::vector<unsigned char> ByteVector;
ImplMacFontData::ImplMacFontData( const ImplDevFontAttributes& rDFA, ATSUFontID nFontId )
: ImplFontData( rDFA, 0 )
, mnFontId( nFontId )
-, mpCharMap( NULL )
-, mbOs2Read( false )
-, mbHasOs2Table( false )
-, mbCmapEncodingRead( false )
-, mbHasCJKSupport( false )
+, mpCharMap( NULL )
+, mbOs2Read( false )
+, mbHasOs2Table( false )
+, mbCmapEncodingRead( false )
+, mbHasCJKSupport( false )
{}
// -----------------------------------------------------------------------
@@ -510,9 +510,9 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
bPendingCurve |= rPolygon.isPrevControlPointUsed( nClosedIdx );
}
- if( !bPendingCurve ) // line segment
+ if( !bPendingCurve ) // line segment
CGPathAddLineToPoint( xPath, pTransform, aPoint.getX(), aPoint.getY() );
- else // cubic bezier segment
+ else // cubic bezier segment
{
basegfx::B2DPoint aCP1 = rPolygon.getNextControlPoint( nPrevIdx );
basegfx::B2DPoint aCP2 = rPolygon.getPrevControlPoint( nClosedIdx );
@@ -1012,11 +1012,11 @@ bool AquaSalGraphics::drawPolyLine( const ::basegfx::B2DPolygon& rPolyLine,
// setup line attributes
CGLineJoin aCGLineJoin = kCGLineJoinMiter;
switch( eLineJoin ) {
- case ::basegfx::B2DLINEJOIN_NONE: aCGLineJoin = /*TODO?*/kCGLineJoinMiter; break;
- case ::basegfx::B2DLINEJOIN_MIDDLE: aCGLineJoin = /*TODO?*/kCGLineJoinMiter; break;
- case ::basegfx::B2DLINEJOIN_BEVEL: aCGLineJoin = kCGLineJoinBevel; break;
- case ::basegfx::B2DLINEJOIN_MITER: aCGLineJoin = kCGLineJoinMiter; break;
- case ::basegfx::B2DLINEJOIN_ROUND: aCGLineJoin = kCGLineJoinRound; break;
+ case ::basegfx::B2DLINEJOIN_NONE: aCGLineJoin = /*TODO?*/kCGLineJoinMiter; break;
+ case ::basegfx::B2DLINEJOIN_MIDDLE: aCGLineJoin = /*TODO?*/kCGLineJoinMiter; break;
+ case ::basegfx::B2DLINEJOIN_BEVEL: aCGLineJoin = kCGLineJoinBevel; break;
+ case ::basegfx::B2DLINEJOIN_MITER: aCGLineJoin = kCGLineJoinMiter; break;
+ case ::basegfx::B2DLINEJOIN_ROUND: aCGLineJoin = kCGLineJoinRound; break;
}
// setup poly-polygon path
@@ -1167,7 +1167,7 @@ void AquaSalGraphics::copyArea( long nDstX, long nDstY,long nSrcX, long nSrcY, l
// drawing a layer onto its own context causes trouble on OSX => copy it first
// TODO: is it possible to get rid of this unneeded copy more often?
// e.g. on OSX>=10.5 only this situation causes problems:
- // mnBitmapDepth && (aDstPoint.x + pSrc->mnWidth) > mnWidth
+ // mnBitmapDepth && (aDstPoint.x + pSrc->mnWidth) > mnWidth
CGLayerRef xSrcLayer = mxLayer;
// TODO: if( mnBitmapDepth > 0 )
{
@@ -1431,7 +1431,7 @@ BOOL AquaSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight,
// NOTE: flip drawing, else the nsimage would be drawn upside down
CGContextSaveGState( mrContext );
-// CGContextTranslateCTM( mrContext, 0, +mnHeight );
+// CGContextTranslateCTM( mrContext, 0, +mnHeight );
CGContextScaleCTM( mrContext, +1, -1 );
nY = /*mnHeight*/ - (nY + nHeight);
@@ -1707,7 +1707,7 @@ bool AquaSalGraphics::AddTempDevFont( ImplDevFontList* pFontList,
#else
FSSpec aFontFSSpec;
eStatus = ::FSGetCatalogInfo( &aNewRef, kFSCatInfoNone,
- NULL, NULL, &aFontFSSpec, NULL );
+ NULL, NULL, &aFontFSSpec, NULL );
if( eStatus != noErr )
return false;
@@ -1773,7 +1773,7 @@ BOOL AquaSalGraphics::GetGlyphOutline( long nGlyphId, basegfx::B2DPolyPolygon& r
aGgoData.mpPolyPoly = &rPolyPoly;
rPolyPoly.clear();
- ATSUStyle rATSUStyle = maATSUStyle; // TODO: handle glyph fallback when CWS pdffix02 is integrated
+ ATSUStyle rATSUStyle = maATSUStyle; // TODO: handle glyph fallback when CWS pdffix02 is integrated
OSStatus eGgoStatus = noErr;
OSStatus eStatus = ATSUGlyphGetCubicPaths( rATSUStyle, nGlyphId,
GgoMoveToProc, GgoLineToProc, GgoCurveToProc, GgoClosePathProc,
@@ -1811,7 +1811,7 @@ long AquaSalGraphics::GetGraphicsWidth() const
BOOL AquaSalGraphics::GetGlyphBoundRect( long nGlyphId, Rectangle& rRect )
{
- ATSUStyle rATSUStyle = maATSUStyle; // TODO: handle glyph fallback
+ ATSUStyle rATSUStyle = maATSUStyle; // TODO: handle glyph fallback
GlyphID aGlyphId = nGlyphId;
ATSGlyphScreenMetrics aGlyphMetrics;
OSStatus eStatus = ATSUGlyphGetScreenMetrics( rATSUStyle,
@@ -1997,8 +1997,8 @@ static void FakeDirEntry( FourCharCode eFCC, ByteCount nOfs, ByteCount nLen,
rpDest[ 2] = (char)(eFCC >> 8);
rpDest[ 3] = (char)(eFCC >> 0);
// TODO: get entry checksum and write it
- // not too important since the subsetter doesn't care currently
- // for( pData+nOfs ... pData+nOfs+nLen )
+ // not too important since the subsetter doesn't care currently
+ // for( pData+nOfs ... pData+nOfs+nLen )
// write entry offset
rpDest[ 8] = (char)(nOfs >> 24);
rpDest[ 9] = (char)(nOfs >> 16);
@@ -2036,34 +2036,34 @@ static bool GetRawFontData( const ImplFontData* pFontData,
}
// get font table availability and size in bytes
- ByteCount nHeadLen = 0;
+ ByteCount nHeadLen = 0;
eStatus = ATSFontGetTable( rFont, GetTag("head"), 0, 0, NULL, &nHeadLen);
if( (eStatus != noErr) || (nHeadLen <= 0) )
return false;
- ByteCount nMaxpLen = 0;
+ ByteCount nMaxpLen = 0;
eStatus = ATSFontGetTable( rFont, GetTag("maxp"), 0, 0, NULL, &nMaxpLen);
if( (eStatus != noErr) || (nMaxpLen <= 0) )
return false;
- ByteCount nCmapLen = 0;
+ ByteCount nCmapLen = 0;
eStatus = ATSFontGetTable( rFont, GetTag("cmap"), 0, 0, NULL, &nCmapLen);
if( (eStatus != noErr) || (nCmapLen <= 0) )
return false;
- ByteCount nNameLen = 0;
+ ByteCount nNameLen = 0;
eStatus = ATSFontGetTable( rFont, GetTag("name"), 0, 0, NULL, &nNameLen);
if( (eStatus != noErr) || (nNameLen <= 0) )
return false;
- ByteCount nHheaLen = 0;
+ ByteCount nHheaLen = 0;
eStatus = ATSFontGetTable( rFont, GetTag("hhea"), 0, 0, NULL, &nHheaLen);
if( (eStatus != noErr) || (nHheaLen <= 0) )
return false;
- ByteCount nHmtxLen = 0;
+ ByteCount nHmtxLen = 0;
eStatus = ATSFontGetTable( rFont, GetTag("hmtx"), 0, 0, NULL, &nHmtxLen);
if( (eStatus != noErr) || (nHmtxLen <= 0) )
return false;
// get the glyph outline tables
- ByteCount nLocaLen = 0;
- ByteCount nGlyfLen = 0;
+ ByteCount nLocaLen = 0;
+ ByteCount nGlyfLen = 0;
if( (eStatus != noErr) || (nCffLen <= 0) )
{
eStatus = ATSFontGetTable( rFont, GetTag("loca"), 0, 0, NULL, &nLocaLen);
@@ -2075,7 +2075,7 @@ static bool GetRawFontData( const ImplFontData* pFontData,
}
ByteCount nPrepLen=0, nCvtLen=0, nFpgmLen=0;
- if( nGlyfLen ) // TODO: reduce PDF size by making hint subsetting optional
+ if( nGlyfLen ) // TODO: reduce PDF size by making hint subsetting optional
{
eStatus = ATSFontGetTable( rFont, GetTag("prep"), 0, 0, NULL, &nPrepLen);
eStatus = ATSFontGetTable( rFont, GetTag("cvt "), 0, 0, NULL, &nCvtLen);
@@ -2101,11 +2101,11 @@ static bool GetRawFontData( const ImplFontData* pFontData,
{
int nLog2 = 0;
while( (nTableCount >> nLog2) > 1 ) ++nLog2;
- rBuffer[ 1] = 1; // Win-TTF style scaler
- rBuffer[ 5] = nTableCount; // table count
- rBuffer[ 7] = nLog2*16; // searchRange
- rBuffer[ 9] = nLog2; // entrySelector
- rBuffer[11] = (nTableCount-nLog2)*16; // rangeShift
+ rBuffer[ 1] = 1; // Win-TTF style scaler
+ rBuffer[ 5] = nTableCount; // table count
+ rBuffer[ 7] = nLog2*16; // searchRange
+ rBuffer[ 9] = nLog2; // entrySelector
+ rBuffer[11] = (nTableCount-nLog2)*16; // rangeShift
}
// get font table raw data and update the fake directory entries
@@ -2213,17 +2213,17 @@ BOOL AquaSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
::GetTTGlobalFontInfo( pSftFont, &aTTInfo );
rInfo.m_nFontType = FontSubsetInfo::SFNT_TTF;
rInfo.m_aPSName = String( aTTInfo.psname, RTL_TEXTENCODING_UTF8 );
- rInfo.m_aFontBBox = Rectangle( Point( aTTInfo.xMin, aTTInfo.yMin ),
+ rInfo.m_aFontBBox = Rectangle( Point( aTTInfo.xMin, aTTInfo.yMin ),
Point( aTTInfo.xMax, aTTInfo.yMax ) );
- rInfo.m_nCapHeight = aTTInfo.yMax; // Well ...
- rInfo.m_nAscent = +aTTInfo.winAscent;
+ rInfo.m_nCapHeight = aTTInfo.yMax; // Well ...
+ rInfo.m_nAscent = +aTTInfo.winAscent;
rInfo.m_nDescent = -aTTInfo.winDescent;
// mac fonts usually do not have an OS2-table
// => get valid ascent/descent values from other tables
if( !rInfo.m_nAscent )
- rInfo.m_nAscent = +aTTInfo.typoAscender;
+ rInfo.m_nAscent = +aTTInfo.typoAscender;
if( !rInfo.m_nAscent )
- rInfo.m_nAscent = +aTTInfo.ascender;
+ rInfo.m_nAscent = +aTTInfo.ascender;
if( !rInfo.m_nDescent )
rInfo.m_nDescent = +aTTInfo.typoDescender;
if( !rInfo.m_nDescent )
@@ -2281,9 +2281,9 @@ BOOL AquaSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
::GetTTSimpleGlyphMetrics( pSftFont, aShortIDs, nGlyphCount, bVertical );
if( !pGlyphMetrics )
return FALSE;
- sal_uInt16 nNotDefAdv = pGlyphMetrics[0].adv;
- pGlyphMetrics[0].adv = pGlyphMetrics[nNotDef].adv;
- pGlyphMetrics[nNotDef].adv = nNotDefAdv;
+ sal_uInt16 nNotDefAdv = pGlyphMetrics[0].adv;
+ pGlyphMetrics[0].adv = pGlyphMetrics[nNotDef].adv;
+ pGlyphMetrics[nNotDef].adv = nNotDefAdv;
for( int i = 0; i < nOrigCount; ++i )
pGlyphWidths[i] = pGlyphMetrics[i].adv;
free( pGlyphMetrics );
@@ -2372,7 +2372,7 @@ const Ucs2SIntMap* AquaSalGraphics::GetFontEncodingVector(
// -----------------------------------------------------------------------
-const void* AquaSalGraphics::GetEmbedFontData( const ImplFontData* pFontData,
+const void* AquaSalGraphics::GetEmbedFontData( const ImplFontData* pFontData,
const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
@@ -2386,7 +2386,7 @@ const void* AquaSalGraphics::GetEmbedFontData( const ImplFontData* pFontData,
void AquaSalGraphics::FreeEmbedFontData( const void* pData, long nDataLen )
{
// TODO: implementing this only makes sense when the implementation of
- // AquaSalGraphics::GetEmbedFontData() returns non-NULL
+ // AquaSalGraphics::GetEmbedFontData() returns non-NULL
DBG_ASSERT( (pData!=NULL), "AquaSalGraphics::FreeEmbedFontData() is not implemented\n");
}
@@ -2502,14 +2502,14 @@ void AquaSalGraphics::ApplyXorContext()
// ======================================================================
XorEmulation::XorEmulation()
-: mxTargetLayer( NULL )
-, mxTargetContext( NULL )
-, mxMaskContext( NULL )
-, mxTempContext( NULL )
-, mpMaskBuffer( NULL )
-, mpTempBuffer( NULL )
-, mnBufferLongs( 0 )
-, mbIsEnabled( false )
+: mxTargetLayer( NULL )
+, mxTargetContext( NULL )
+, mxMaskContext( NULL )
+, mxTempContext( NULL )
+, mpMaskBuffer( NULL )
+, mpTempBuffer( NULL )
+, mnBufferLongs( 0 )
+, mbIsEnabled( false )
{}
// ----------------------------------------------------------------------
diff --git a/vcl/aqua/source/gdi/salgdiutils.cxx b/vcl/aqua/source/gdi/salgdiutils.cxx
index 56d40d3c7e72..6dd8317b8827 100644
--- a/vcl/aqua/source/gdi/salgdiutils.cxx
+++ b/vcl/aqua/source/gdi/salgdiutils.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,7 +60,7 @@ void AquaSalGraphics::SetPrinterGraphics( CGContextRef xContext, long nDPIX, lon
mbWindow = false;
mbPrinter = true;
mbVirDev = false;
-
+
mrContext = xContext;
mfFakeDPIScale = fScale;
mnRealDPIX = nDPIX;
@@ -90,7 +90,7 @@ void AquaSalGraphics::SetVirDevGraphics( CGLayerRef xLayer, CGContextRef xContex
mbVirDev = true;
// set graphics properties
- mxLayer = xLayer;
+ mxLayer = xLayer;
mrContext = xContext;
mnBitmapDepth = nBitmapDepth;
@@ -248,7 +248,7 @@ void AquaSalGraphics::RefreshRect(float lX, float lY, float lWidth, float lHeigh
// this helps with antialiased rendering
const Rectangle aVclRect(Point(static_cast<long int>(lX-1),
static_cast<long int>(lY-1) ),
- Size( static_cast<long int>(lWidth+2),
+ Size( static_cast<long int>(lWidth+2),
static_cast<long int>(lHeight+2) ) );
mpFrame->maInvalidRect.Union( aVclRect );
}
@@ -257,14 +257,14 @@ void AquaSalGraphics::RefreshRect(float lX, float lY, float lWidth, float lHeigh
CGPoint* AquaSalGraphics::makeCGptArray(ULONG nPoints, const SalPoint* pPtAry)
{
CGPoint *CGpoints = new (CGPoint[nPoints]);
- if ( CGpoints )
+ if ( CGpoints )
{
for(ULONG i=0;i<nPoints;i++)
{
- CGpoints[i].x = (float)(pPtAry[i].mnX);
- CGpoints[i].y = (float)(pPtAry[i].mnY);
+ CGpoints[i].x = (float)(pPtAry[i].mnX);
+ CGpoints[i].y = (float)(pPtAry[i].mnY);
}
- }
+ }
return CGpoints;
}
diff --git a/vcl/aqua/source/gdi/salmathutils.cxx b/vcl/aqua/source/gdi/salmathutils.cxx
index 26516902c5c1..8a5612788429 100644
--- a/vcl/aqua/source/gdi/salmathutils.cxx
+++ b/vcl/aqua/source/gdi/salmathutils.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -102,7 +102,7 @@ void ULSwap ( unsigned long &rX, unsigned long &rY )
// -----------------------------------------------------------------------
//
// This way of measuring distance is also called the "Manhattan distance."
-// Manhattan distance takes advantage of the fact that the sum of the
+// Manhattan distance takes advantage of the fact that the sum of the
// lengths of the three components of a 3D vector is a rough approxima-
// tion of the vector's length.
//
@@ -111,7 +111,7 @@ void ULSwap ( unsigned long &rX, unsigned long &rY )
unsigned long Euclidian2Norm ( const LRectCoorVector pVec )
{
unsigned long ndist = 0;
-
+
if ( pVec )
{
long nDX = 0;
@@ -120,29 +120,29 @@ unsigned long Euclidian2Norm ( const LRectCoorVector pVec )
unsigned long nMax = 0;
unsigned long nMed = 0;
unsigned long nMin = 0;
-
+
// Find |x'-x|, |y'-y|, and |z'-z| from (x,y,z) and (x',y',z')
-
+
nDX = pVec[1].x - pVec[0].x;
nDY = pVec[1].y - pVec[0].y;
nDZ = pVec[1].z - pVec[0].z;
-
+
nMax = (unsigned long)abs( nDX );
nMed = (unsigned long)abs( nDY );
nMin = (unsigned long)abs( nDZ );
-
+
// Sort them (3 compares, 0-3 swaps)
-
+
if ( nMax < nMed )
{
Swap( nMax, nMed );
} // if
-
+
if ( nMax < nMin )
{
Swap( nMax, nMin );
} // if
-
+
// Approximate Euclidian distance:
//
// d = max + (11/32)*med + (1/4)*min
@@ -150,11 +150,11 @@ unsigned long Euclidian2Norm ( const LRectCoorVector pVec )
// with +/- 8% error, where the exact formulae for d is
//
// || (x',y',z') - (x,y,z) || = { |x'-x|^2 + |y'-y|^2 + |z'-z|^2 }^(1/2)
-
- ndist = nMax + ( nMin >> 2UL )
+
+ ndist = nMax + ( nMin >> 2UL )
+ ( ( ( nMed << 3UL ) + ( nMed << 1UL ) + nMed ) >> 5UL );
} // if
-
+
return ndist;
} // RGBDistance
diff --git a/vcl/aqua/source/gdi/salnativewidgets.cxx b/vcl/aqua/source/gdi/salnativewidgets.cxx
index 4e40bfa7077d..9d62a87dfdd5 100644
--- a/vcl/aqua/source/gdi/salnativewidgets.cxx
+++ b/vcl/aqua/source/gdi/salnativewidgets.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,11 +51,11 @@ class AquaBlinker : public Timer
{
mpFrame->maBlinkers.push_back( this );
}
-
+
public:
-
+
static void Blink( AquaSalFrame*, const Rectangle&, int nTimeout = 80 );
-
+
virtual void Timeout()
{
Stop();
@@ -219,7 +219,7 @@ static bool AquaGetScrollRect( /* TODO: int nScreen, */ ControlPart nPart,
if( GetSalData()->mbIsScrollbarDoubleMax )
rResultRect.Bottom() += 8;
else
- rResultRect.Bottom() += 4;
+ rResultRect.Bottom() += 4;
break;
case PART_TRACK_VERT_LOWER:
if( GetSalData()->mbIsScrollbarDoubleMax )
@@ -267,25 +267,25 @@ BOOL AquaSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart n
nPart == HAS_THREE_BUTTONS )
return true;
break;
-
+
case CTRL_SLIDER:
if( nPart == PART_TRACK_HORZ_AREA || nPart == PART_TRACK_VERT_AREA )
return true;
break;
- case CTRL_EDITBOX:
+ case CTRL_EDITBOX:
if( nPart == PART_ENTIRE_CONTROL ||
nPart == HAS_BACKGROUND_TEXTURE )
return true;
break;
- case CTRL_MULTILINE_EDITBOX:
+ case CTRL_MULTILINE_EDITBOX:
if( nPart == PART_ENTIRE_CONTROL ||
nPart == HAS_BACKGROUND_TEXTURE )
return true;
break;
- case CTRL_SPINBOX:
+ case CTRL_SPINBOX:
if( nPart == PART_ENTIRE_CONTROL ||
nPart == PART_ALL_BUTTONS ||
nPart == HAS_BACKGROUND_TEXTURE )
@@ -420,14 +420,14 @@ BOOL AquaSalGraphics::hitTestNativeControl( ControlType nType, ControlPart nPart
kThemeStatePressedUp = 2,
kThemeStatePressedDown = 3
-#define CTRL_STATE_ENABLED 0x0001
-#define CTRL_STATE_FOCUSED 0x0002
-#define CTRL_STATE_PRESSED 0x0004
-#define CTRL_STATE_ROLLOVER 0x0008
-#define CTRL_STATE_HIDDEN 0x0010
-#define CTRL_STATE_DEFAULT 0x0020
-#define CTRL_STATE_SELECTED 0x0040
-#define CTRL_CACHING_ALLOWED 0x8000 // set when the control is completely visible (i.e. not clipped)
+#define CTRL_STATE_ENABLED 0x0001
+#define CTRL_STATE_FOCUSED 0x0002
+#define CTRL_STATE_PRESSED 0x0004
+#define CTRL_STATE_ROLLOVER 0x0008
+#define CTRL_STATE_HIDDEN 0x0010
+#define CTRL_STATE_DEFAULT 0x0020
+#define CTRL_STATE_SELECTED 0x0040
+#define CTRL_CACHING_ALLOWED 0x8000 // set when the control is completely visible (i.e. not clipped)
*/
UInt32 AquaSalGraphics::getState( ControlState nState )
{
@@ -463,9 +463,9 @@ UInt32 AquaSalGraphics::getTrackState( ControlState nState )
*
* Draws the requested control described by nPart/nState.
*
- * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
ControlPart nPart,
@@ -584,22 +584,22 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
if( nState & CTRL_STATE_PRESSED ) {//checked, else it is not displayed (see vcl/source/window/menu.cxx)
HIThemeTextInfo aTextInfo;
aTextInfo.version = 0;
- aTextInfo.state = ((nState & CTRL_STATE_ENABLED)==0) ? kThemeStateInactive: kThemeStateActive;
+ aTextInfo.state = ((nState & CTRL_STATE_ENABLED)==0) ? kThemeStateInactive: kThemeStateActive;
aTextInfo.fontID = kThemeMenuItemMarkFont;
aTextInfo.horizontalFlushness=kHIThemeTextHorizontalFlushCenter;
aTextInfo.verticalFlushness=kHIThemeTextVerticalFlushTop;
aTextInfo.options=kHIThemeTextBoxOptionNone;
aTextInfo.truncationPosition=kHIThemeTextTruncationNone;
//aTextInfo.truncationMaxLines unused because of kHIThemeTextTruncationNone
-
+
if( nState & CTRL_STATE_SELECTED) aTextInfo.state = kThemeStatePressed; //item highlighted
-
+
UniChar mark=( nPart == PART_MENU_ITEM_CHECK_MARK ) ? kCheckUnicode: kBulletUnicode;//0x2713;
CFStringRef cfString = CFStringCreateWithCharactersNoCopy(kCFAllocatorDefault, &mark, 1, kCFAllocatorNull);
- HIThemeDrawTextBox(cfString, &rc, &aTextInfo, mrContext, kHIThemeOrientationNormal);
+ HIThemeDrawTextBox(cfString, &rc, &aTextInfo, mrContext, kHIThemeOrientationNormal);
if (cfString)
CFRelease(cfString);
-
+
bOK = true;
}
}
@@ -620,7 +620,7 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aPushInfo.animation.time.current = 0;
PushButtonValue* pPBVal = aValue.getType() == CTRL_PUSHBUTTON ? (PushButtonValue*)&aValue : NULL;
int nPaintHeight = static_cast<int>(rc.size.height);
-
+
if( pPBVal && pPBVal->mbBevelButton )
{
aPushInfo.kind = kThemeRoundedBevelButton;
@@ -634,7 +634,7 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
{
aPushInfo.kind = kThemePushButtonNormal;
nPaintHeight = PB_Norm_Height;
-
+
// avoid clipping when focused
rc.origin.x += FOCUS_RING_WIDTH/2;
rc.size.width -= FOCUS_RING_WIDTH;
@@ -697,11 +697,11 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
bOK = true;
}
break;
-
+
case CTRL_LISTNODE:
{
ButtonValue aButtonValue = aValue.getTristateVal();
-
+
if( Application::GetSettings().GetLayoutRTL() && aButtonValue == BUTTONVALUE_OFF )
{
// FIXME: a value of kThemeDisclosureLeft
@@ -709,7 +709,7 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
// sadly this does not seem to work, so we'll draw a left
// grey equilateral triangle here ourselves.
// Perhaps some other HIThemeButtonDrawInfo setting would do the trick ?
-
+
CGContextSetShouldAntialias( mrContext, true );
float aGrey[] = { 0.45, 0.45, 0.45, 1.0 };
CGContextSetFillColor( mrContext, aGrey );
@@ -731,9 +731,9 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aInfo.kind = kThemeDisclosureTriangle;
aInfo.value = kThemeDisclosureRight;
aInfo.state = getState( nState );
-
+
aInfo.adornment = kThemeAdornmentNone;
-
+
switch( aButtonValue ) {
case BUTTONVALUE_ON: aInfo.value = kThemeDisclosureDown;//expanded
break;
@@ -749,13 +749,13 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
default:
break;
}
-
+
HIThemeDrawButton( &rc, &aInfo, mrContext, kHIThemeOrientationNormal, NULL );
}
bOK = true;
}
break;
-
+
case CTRL_PROGRESS:
case CTRL_INTROPROGRESS:
{
@@ -779,12 +779,12 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTrackInfo.enableState = kThemeTrackActive;
aTrackInfo.filler1 = 0;
aTrackInfo.trackInfo.progress.phase = static_cast<UInt8>(CFAbsoluteTimeGetCurrent()*10.0);
-
+
HIThemeDrawTrack( &aTrackInfo, NULL, mrContext, kHIThemeOrientationNormal );
bOK = true;
}
break;
-
+
case CTRL_SLIDER:
{
SliderValue* pSLVal = (SliderValue*)&aValue;
@@ -869,8 +869,8 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
}
}
break;
-
-//#define OLD_TAB_STYLE
+
+//#define OLD_TAB_STYLE
#ifdef OLD_TAB_STYLE
case CTRL_TAB_PANE:
{
@@ -879,17 +879,17 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTabPaneDrawInfo.state = kThemeStateActive;
aTabPaneDrawInfo.direction=kThemeTabNorth;
aTabPaneDrawInfo.size=kHIThemeTabSizeNormal;
-
+
//the border is outside the rect rc for Carbon
//but for VCL it should be inside
rc.origin.x+=1;
rc.size.width-=2;
-
+
HIThemeDrawTabPane(&rc, &aTabPaneDrawInfo, mrContext, kHIThemeOrientationNormal);
bOK = true;
}
break;
-
+
case CTRL_TAB_ITEM:
{
HIThemeTabDrawInfo aTabItemDrawInfo;
@@ -898,25 +898,25 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTabItemDrawInfo.direction=kThemeTabNorth;
aTabItemDrawInfo.size=kHIThemeTabSizeNormal;
aTabItemDrawInfo.adornment=kHIThemeTabAdornmentNone;
-
+
if(nState & CTRL_STATE_SELECTED) {
aTabItemDrawInfo.style=kThemeTabFront;
}
if(nState & CTRL_STATE_FOCUSED) {
aTabItemDrawInfo.adornment=kHIThemeTabAdornmentFocus;
}
-
+
/*if(rc.size.height>=TAB_HEIGHT_NORMAL) rc.size.height=TAB_HEIGHT_NORMAL;
else if(rc.size.height>=TAB_HEIGHT_SMALL) rc.size.height=TAB_HEIGHT_SMALL;
else rc.size.height=TAB_HEIGHT_MINI;*/
//now we only use the default size
rc.size.height=TAB_HEIGHT_NORMAL;
-
+
HIThemeDrawTab(&rc, &aTabItemDrawInfo, mrContext, kHIThemeOrientationNormal, &rc );
-
+
bOK=true;
}
- break;
+ break;
#else
case CTRL_TAB_PANE:
{
@@ -926,20 +926,20 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTabPaneDrawInfo.direction=kThemeTabNorth;
aTabPaneDrawInfo.size=kHIThemeTabSizeNormal;
aTabPaneDrawInfo.kind=kHIThemeTabKindNormal;
-
+
//the border is outside the rect rc for Carbon
//but for VCL it should be inside
rc.origin.x+=1;
rc.origin.y-=TAB_HEIGHT_NORMAL/2;
rc.size.height+=TAB_HEIGHT_NORMAL/2;
rc.size.width-=2;
-
+
HIThemeDrawTabPane(&rc, &aTabPaneDrawInfo, mrContext, kHIThemeOrientationNormal);
-
+
bOK = true;
}
break;
-
+
case CTRL_TAB_ITEM:
{
HIThemeTabDrawInfo aTabItemDrawInfo;
@@ -948,22 +948,22 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTabItemDrawInfo.direction=kThemeTabNorth;
aTabItemDrawInfo.size=kHIThemeTabSizeNormal;
aTabItemDrawInfo.adornment=kHIThemeTabAdornmentTrailingSeparator;
- //State
+ //State
if(nState & CTRL_STATE_SELECTED) {
aTabItemDrawInfo.style=kThemeTabFront;
}
if(nState & CTRL_STATE_FOCUSED) {
aTabItemDrawInfo.adornment|=kHIThemeTabAdornmentFocus;
}
-
+
//first, last or middle tab
aTabItemDrawInfo.position=kHIThemeTabPositionMiddle;
-
+
TabitemValue* pTabValue = (TabitemValue *) &aValue;
unsigned int nAlignment = pTabValue->mnAlignment;
//TABITEM_LEFTALIGNED (and TABITEM_RIGHTALIGNED) for the leftmost (or rightmost) tab
- //when there are several lines of tabs because there is only one first tab and one
- //last tab and TABITEM_FIRST_IN_GROUP (and TABITEM_LAST_IN_GROUP) because when the
+ //when there are several lines of tabs because there is only one first tab and one
+ //last tab and TABITEM_FIRST_IN_GROUP (and TABITEM_LAST_IN_GROUP) because when the
//line width is different from window width, there may not be TABITEM_RIGHTALIGNED
if( ( (nAlignment & TABITEM_LEFTALIGNED)&&(nAlignment & TABITEM_RIGHTALIGNED) ) ||
( (nAlignment & TABITEM_FIRST_IN_GROUP)&&(nAlignment & TABITEM_LAST_IN_GROUP) )
@@ -971,26 +971,26 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTabItemDrawInfo.position=kHIThemeTabPositionOnly;
else if((nAlignment & TABITEM_LEFTALIGNED)||(nAlignment & TABITEM_FIRST_IN_GROUP))
aTabItemDrawInfo.position=kHIThemeTabPositionFirst;
- else if((nAlignment & TABITEM_RIGHTALIGNED)||(nAlignment & TABITEM_LAST_IN_GROUP))
+ else if((nAlignment & TABITEM_RIGHTALIGNED)||(nAlignment & TABITEM_LAST_IN_GROUP))
aTabItemDrawInfo.position=kHIThemeTabPositionLast;
-
+
//support for RTL
//see issue 79748
if( Application::GetSettings().GetLayoutRTL() ) {
- if( aTabItemDrawInfo.position == kHIThemeTabPositionFirst )
+ if( aTabItemDrawInfo.position == kHIThemeTabPositionFirst )
aTabItemDrawInfo.position = kHIThemeTabPositionLast;
- else if( aTabItemDrawInfo.position == kHIThemeTabPositionLast )
+ else if( aTabItemDrawInfo.position == kHIThemeTabPositionLast )
aTabItemDrawInfo.position = kHIThemeTabPositionFirst;
}
-
+
rc.size.width+=2;//because VCL has 2 empty pixels between 2 tabs
rc.origin.x-=1;
-
+
HIThemeDrawTab(&rc, &aTabItemDrawInfo, mrContext, kHIThemeOrientationNormal, &rc );
-
+
bOK=true;
}
- break;
+ break;
#endif
case CTRL_LISTBOX:
@@ -1008,7 +1008,7 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aListInfo.adornment = kThemeAdornmentDefault;
if( (nState & CTRL_STATE_FOCUSED) != 0 )
aListInfo.adornment |= kThemeAdornmentFocus;
-
+
HIThemeDrawButton(&rc, &aListInfo, mrContext, kHIThemeOrientationNormal,&rc);
bOK = true;
break;
@@ -1020,19 +1020,19 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTextDrawInfo.kind=kHIThemeFrameTextFieldSquare;
aTextDrawInfo.state=getState( nState );
aTextDrawInfo.isFocused=false;
-
+
rc.size.width+=1;//else there's a white space because aqua theme hasn't a 3D border
rc.size.height+=1;
HIThemeDrawFrame(&rc, &aTextDrawInfo, mrContext, kHIThemeOrientationNormal);
-
+
if(nState & CTRL_STATE_FOCUSED) HIThemeDrawFocusRect(&rc, true, mrContext, kHIThemeOrientationNormal);
-
+
bOK=true;
break;
}
}
break;
-
+
case CTRL_EDITBOX:
case CTRL_MULTILINE_EDITBOX:
{
@@ -1041,11 +1041,11 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTextDrawInfo.kind=kHIThemeFrameTextFieldSquare;
aTextDrawInfo.state=getState( nState );
aTextDrawInfo.isFocused=false;
-
+
rc.size.width += 1; // else there may be a white space because aqua theme hasn't a 3D border
// change rc so that the frame will encompass only the content region
// see counterpart in GetNativeControlRegion
- rc.size.width += 2;
+ rc.size.width += 2;
rc.size.height += 2;
//CGContextSetFillColorWithColor
@@ -1053,13 +1053,13 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
//fill a white background, because drawFrame only draws the border
HIThemeDrawFrame(&rc, &aTextDrawInfo, mrContext, kHIThemeOrientationNormal);
-
+
if(nState & CTRL_STATE_FOCUSED) HIThemeDrawFocusRect(&rc, true, mrContext, kHIThemeOrientationNormal);
-
+
bOK=true;
}
break;
-
+
case CTRL_SPINBOX:
{
if(nPart == PART_ENTIRE_CONTROL)
@@ -1070,7 +1070,7 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aTextDrawInfo.kind=kHIThemeFrameTextFieldSquare;
aTextDrawInfo.state=getState( nState );
aTextDrawInfo.isFocused=false;
-
+
//rc.size.width contains the full size of the spinbox ie textfield + button
//so we remove the button width and the space between the button and the textfield
rc.size.width -= SPIN_BUTTON_SPACE + SPIN_BUTTON_WIDTH + 2*FOCUS_RING_WIDTH;
@@ -1082,9 +1082,9 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
//fill a white background, because drawFrame only draws the border
HIThemeDrawFrame(&rc, &aTextDrawInfo, mrContext, kHIThemeOrientationNormal);
-
+
if(nState & CTRL_STATE_FOCUSED) HIThemeDrawFocusRect(&rc, true, mrContext, kHIThemeOrientationNormal);
-
+
//buttons:
SpinbuttonValue* pSpinButtonVal = (SpinbuttonValue *)&aValue;
ControlState nUpperState = CTRL_STATE_ENABLED;//state of the upper button
@@ -1107,17 +1107,17 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
aSpinInfo.state = kThemeStateInactive;
else if((nUpperState & CTRL_STATE_ROLLOVER)||(nLowerState & CTRL_STATE_ROLLOVER))
aSpinInfo.state = kThemeStateRollover;
-
+
Rectangle aSpinRect( pSpinButtonVal->maUpperRect );
aSpinRect.Union( pSpinButtonVal->maLowerRect );
HIRect buttonRc = ImplGetHIRectFromRectangle(aSpinRect);
-
+
// FIXME: without this fuzz factor there is some unwanted clipping
if( Application::GetSettings().GetLayoutRTL() )
buttonRc.origin.x -= FOCUS_RING_WIDTH - CLIP_FUZZ;
else
buttonRc.origin.x += FOCUS_RING_WIDTH + CLIP_FUZZ;
-
+
switch( aValue.getTristateVal() )
{
case BUTTONVALUE_ON: aSpinInfo.value = kThemeButtonOn;
@@ -1125,27 +1125,27 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
case BUTTONVALUE_OFF: aSpinInfo.value = kThemeButtonOff;
break;
case BUTTONVALUE_MIXED:
- case BUTTONVALUE_DONTKNOW:
+ case BUTTONVALUE_DONTKNOW:
default: aSpinInfo.value = kThemeButtonMixed;
break;
}
-
+
aSpinInfo.adornment = ( ((nUpperState & CTRL_STATE_DEFAULT) != 0 ) ||
((nLowerState & CTRL_STATE_DEFAULT) != 0 )) ?
- kThemeAdornmentDefault :
+ kThemeAdornmentDefault :
kThemeAdornmentNone;
if( ((nUpperState & CTRL_STATE_FOCUSED) != 0 ) || ((nLowerState & CTRL_STATE_FOCUSED) != 0 ))
aSpinInfo.adornment |= kThemeAdornmentFocus;
-
+
HIThemeDrawButton( &buttonRc, &aSpinInfo, mrContext, kHIThemeOrientationNormal, NULL );
}
-
+
bOK=true;
}
-
+
}
break;
-
+
case CTRL_FRAME:
{
USHORT nStyle = aValue.getNumericVal();
@@ -1159,38 +1159,38 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
{
CGMutablePathRef rPath = CGPathCreateMutable();
CGPathAddRect( rPath, NULL, CGRectMake( 0, 0, mpFrame->maGeometry.nWidth-1, mpFrame->maGeometry.nHeight-1 ) );
-
+
CGContextBeginPath( mrContext );
CGContextAddPath( mrContext, rPath );
- CGContextClip( mrContext );
+ CGContextClip( mrContext );
CGPathRelease( rPath );
}
-
+
HIThemeFrameDrawInfo aTextDrawInfo;
aTextDrawInfo.version=0;
aTextDrawInfo.kind=kHIThemeFrameListBox;
aTextDrawInfo.state=kThemeStateActive;
aTextDrawInfo.isFocused=false;
-
+
HIThemeDrawFrame(&rc, &aTextDrawInfo, mrContext, kHIThemeOrientationNormal);
-
+
bOK=true;
}
}
}
break;
-
+
case CTRL_LISTNET:
{
//do nothing as there isn't net for listviews on macos
bOK=true;
}
break;
-
+
}
CGContextRestoreGState( mrContext );
-
+
/* #i90291# in most cases invalidating the whole control region instead
of just the unclipped part of it is sufficient (and probably faster).
However for the window background we should not unnecessarily enlarge
@@ -1206,10 +1206,10 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
if( aRect.size.width != 0 && aRect.size.height != 0 )
buttonRect.Intersection( Rectangle( Point( static_cast<long int>(aRect.origin.x),
static_cast<long int>(aRect.origin.y) ),
- Size( static_cast<long int>(aRect.size.width),
+ Size( static_cast<long int>(aRect.size.width),
static_cast<long int>(aRect.size.height) ) ) );
}
-
+
RefreshRect( buttonRect.Left(), buttonRect.Top(), buttonRect.GetWidth(), buttonRect.GetHeight() );
return bOK;
@@ -1221,9 +1221,9 @@ BOOL AquaSalGraphics::drawNativeControl(ControlType nType,
* OPTIONAL. Draws the requested text for the control described by nPart/nState.
* Used if text not drawn by DrawNativeControl().
*
- * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
BOOL AquaSalGraphics::drawNativeControlText( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion,
ControlState nState, const ImplControlValue& aValue,
@@ -1242,9 +1242,9 @@ BOOL AquaSalGraphics::drawNativeControlText( ControlType nType, ControlPart nPar
* within the control that can be safely drawn into without drawing over
* the borders of the control.
*
- * rControlRegion: The bounding region of the control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion, ControlState nState,
const ImplControlValue& aValue, const rtl::OUString& aCaption,
@@ -1257,7 +1257,7 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
short x = aCtrlBoundRect.Left();
short y = aCtrlBoundRect.Top();
short w, h;
-
+
sal_uInt8 nBorderCleanup = 0;
switch (nType)
@@ -1280,7 +1280,7 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
}
}
break;
-
+
case CTRL_SCROLLBAR:
{
Rectangle aRect;
@@ -1306,16 +1306,16 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
{
// checkbox and radio borders need cleanup after unchecking them
nBorderCleanup = 4;
-
+
// TEXT_SEPARATOR to respect Aqua HIG
w = BUTTON_WIDTH + TEXT_SEPARATOR;
h = BUTTON_HEIGHT;
-
+
}
-
+
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h + nBorderCleanup) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
-
+
toReturn = TRUE;
}
break;
@@ -1331,7 +1331,7 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
toReturn = TRUE;
}
break;
-
+
case CTRL_INTROPROGRESS:
{
Rectangle aRect( aCtrlBoundRect );
@@ -1341,11 +1341,11 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
toReturn = TRUE;
}
break;
-
+
case CTRL_TAB_ITEM:
-
+
w = aCtrlBoundRect.GetWidth() + 2*TAB_TEXT_OFFSET - 2*VCL_TAB_TEXT_OFFSET;
-
+
#ifdef OLD_TAB_STYLE
h = TAB_HEIGHT_NORMAL;
#else
@@ -1355,9 +1355,9 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
toReturn = TRUE;
-
+
break;
-
+
case CTRL_EDITBOX:
{
w = aCtrlBoundRect.GetWidth();
@@ -1369,7 +1369,7 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
rNativeContentRegion = Rectangle( Point( x+FOCUS_RING_WIDTH, y+FOCUS_RING_WIDTH ), Size( w-2*(FOCUS_RING_WIDTH+1), h-2*(FOCUS_RING_WIDTH+1) ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
-
+
toReturn = TRUE;
}
break;
@@ -1380,10 +1380,10 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
{
w = aCtrlBoundRect.GetWidth();
h = COMBOBOX_HEIGHT_NORMAL;//listboxes and comboxes have the same height
-
+
rNativeContentRegion = Rectangle( Point( x+FOCUS_RING_WIDTH, y+FOCUS_RING_WIDTH ), Size( w-2*FOCUS_RING_WIDTH, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h+2*FOCUS_RING_WIDTH ) );
-
+
toReturn = TRUE;
}
else if( nPart == PART_BUTTON_DOWN )
@@ -1392,14 +1392,14 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
if( w < 3+2*FOCUS_RING_WIDTH )
w = 3+2*FOCUS_RING_WIDTH;
h = COMBOBOX_HEIGHT_NORMAL;//listboxes and comboxes have the same height
-
+
x += w-DROPDOWN_BUTTON_WIDTH - FOCUS_RING_WIDTH;
y += FOCUS_RING_WIDTH;
w = DROPDOWN_BUTTON_WIDTH;
-
+
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w+FOCUS_RING_WIDTH, h+2*FOCUS_RING_WIDTH ) );
-
+
toReturn = true;
}
else if( nPart == PART_SUB_EDIT )
@@ -1415,10 +1415,10 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
if( nType == CTRL_LISTBOX )
w -= 9; // HIG specifies 9 units distance between dropdown button area and content
h -= 4; // don't draw into lower border
-
+
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w+FOCUS_RING_WIDTH, h+2*FOCUS_RING_WIDTH ) );
-
+
toReturn = true;
}
}
@@ -1429,10 +1429,10 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
if( w < 3+2*FOCUS_RING_WIDTH+SPIN_BUTTON_SPACE+SPIN_BUTTON_WIDTH )
w = 3+2*FOCUS_RING_WIDTH+SPIN_BUTTON_SPACE+SPIN_BUTTON_WIDTH;
h = TEXT_EDIT_HEIGHT_NORMAL;
-
+
rNativeContentRegion = Rectangle( Point( x+FOCUS_RING_WIDTH, y ), Size( w-2*FOCUS_RING_WIDTH, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h+2*FOCUS_RING_WIDTH ) );
-
+
toReturn = TRUE;
}
else if( nPart == PART_SUB_EDIT ) {
@@ -1442,10 +1442,10 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
y += 2; // don't draw into upper border
w -= 8; // offset for left and right rounded border
h -= 4; // don't draw into upper or ower border
-
+
rNativeContentRegion = Rectangle( Point( x + FOCUS_RING_WIDTH, y + FOCUS_RING_WIDTH ), Size( w - 2* FOCUS_RING_WIDTH, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h+2*FOCUS_RING_WIDTH ) );
-
+
toReturn = TRUE;
}
else if( nPart == PART_BUTTON_UP ) {
@@ -1456,10 +1456,10 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
y += FOCUS_RING_WIDTH - CLIP_FUZZ;
w = SPIN_BUTTON_WIDTH + 2*CLIP_FUZZ;
h = SPIN_UPPER_BUTTON_HEIGHT + 2*CLIP_FUZZ;
-
+
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
-
+
toReturn = TRUE;
}
else if( nPart == PART_BUTTON_DOWN ) {
@@ -1467,10 +1467,10 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
y += SPIN_UPPER_BUTTON_HEIGHT + FOCUS_RING_WIDTH - CLIP_FUZZ;
w = SPIN_BUTTON_WIDTH + 2*CLIP_FUZZ;
h = SPIN_LOWER_BUTTON_HEIGHT + 2*CLIP_FUZZ;
-
+
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
-
+
toReturn = TRUE;
}
break;
@@ -1483,38 +1483,38 @@ BOOL AquaSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPa
Rectangle aRect(aCtrlBoundRect);
if( nStyle & FRAME_DRAW_DOUBLEIN )
{
- aRect.Left() += 1;
- aRect.Top() += 1;
- //rRect.Right() -= 1;
- //rRect.Bottom() -= 1;
+ aRect.Left() += 1;
+ aRect.Top() += 1;
+ //rRect.Right() -= 1;
+ //rRect.Bottom() -= 1;
}
else
{
- aRect.Left() += 1;
- aRect.Top() += 1;
- aRect.Right() -= 1;
- aRect.Bottom() -= 1;
+ aRect.Left() += 1;
+ aRect.Top() += 1;
+ aRect.Right() -= 1;
+ aRect.Bottom() -= 1;
}
rNativeContentRegion = aRect;
rNativeBoundingRegion = aRect;
-
+
toReturn = TRUE;
}
}
break;
-
+
case CTRL_MENUBAR:
case CTRL_MENU_POPUP:
{
if(( nPart == PART_MENU_ITEM_CHECK_MARK )||( nPart == PART_MENU_ITEM_RADIO_MARK )) {
-
+
w=10;
h=10;//dimensions of the mark (10px font)
-
+
rNativeContentRegion = Rectangle( Point( x, y ), Size( w, h ) );
rNativeBoundingRegion = Rectangle( Point( x, y ), Size( w, h ) );
-
+
toReturn = TRUE;
}
}
diff --git a/vcl/aqua/source/gdi/salprn.cxx b/vcl/aqua/source/gdi/salprn.cxx
index 28d554ba9054..686fdb2cba3b 100644
--- a/vcl/aqua/source/gdi/salprn.cxx
+++ b/vcl/aqua/source/gdi/salprn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,7 +74,7 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) :
NSString* pStr = CreateNSString( i_rQueue.maPrinterName );
mpPrinter = [NSPrinter printerWithName: pStr];
[pStr release];
-
+
NSPrintInfo* pShared = [NSPrintInfo sharedPrintInfo];
if( pShared )
{
@@ -83,13 +83,13 @@ AquaSalInfoPrinter::AquaSalInfoPrinter( const SalPrinterQueueInfo& i_rQueue ) :
mePageOrientation = ([mpPrintInfo orientation] == NSLandscapeOrientation) ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT;
[mpPrintInfo setOrientation: NSPortraitOrientation];
}
-
+
mpGraphics = new AquaSalGraphics();
-
+
const int nWidth = 100, nHeight = 100;
maContextMemory.reset( reinterpret_cast<sal_uInt8*>( rtl_allocateMemory( nWidth * 4 * nHeight ) ),
boost::bind( rtl_freeMemory, _1 ) );
-
+
if( maContextMemory )
{
mrContext = CGBitmapContextCreate( maContextMemory.get(), nWidth, nHeight, 8, nWidth * 4, GetSalData()->mxRGBSpace, kCGImageAlphaNoneSkipFirst );
@@ -120,7 +120,7 @@ void AquaSalInfoPrinter::SetupPrinterGraphics( CGContextRef i_rContext ) const
// FIXME: get printer resolution
long nDPIX = 720, nDPIY = 720;
NSSize aPaperSize = [mpPrintInfo paperSize];
-
+
NSRect aImageRect = [mpPrintInfo imageablePageBounds];
if( mePageOrientation == ORIENTATION_PORTRAIT )
{
@@ -228,7 +228,7 @@ static Paper recognizePaper( double i_fWidth, double i_fHeight )
aPaper = PAPER_USER;
break;
}
-
+
if( aPaper == PAPER_USER )
{
// search with fuzz factor
@@ -243,7 +243,7 @@ static Paper recognizePaper( double i_fWidth, double i_fHeight )
}
}
}
-
+
return aPaper;
}
@@ -253,9 +253,9 @@ BOOL AquaSalInfoPrinter::SetPrinterData( ImplJobSetup* io_pSetupData )
if( io_pSetupData && io_pSetupData->mpDriverData )
return SetData( ~0, io_pSetupData );
-
+
BOOL bSuccess = TRUE;
-
+
// set system type
io_pSetupData->mnSystem = JOBSETUP_SYSTEM_MAC;
@@ -277,17 +277,17 @@ BOOL AquaSalInfoPrinter::SetPrinterData( ImplJobSetup* io_pSetupData )
io_pSetupData->mnPaperHeight = 0;
}
- // set orientation
+ // set orientation
io_pSetupData->meOrientation = mePageOrientation;
-
+
io_pSetupData->mnPaperBin = 0;
io_pSetupData->mpDriverData = reinterpret_cast<BYTE*>(rtl_allocateMemory( 4 ));
io_pSetupData->mnDriverDataLen = 4;
}
else
bSuccess = FALSE;
-
-
+
+
return bSuccess;
}
@@ -295,10 +295,10 @@ BOOL AquaSalInfoPrinter::SetPrinterData( ImplJobSetup* io_pSetupData )
void AquaSalInfoPrinter::setPaperSize( long i_nWidth, long i_nHeight, Orientation i_eSetOrientation )
{
-
+
Orientation ePaperOrientation = ORIENTATION_PORTRAIT;
const PaperInfo* pPaper = matchPaper( i_nWidth, i_nHeight, ePaperOrientation );
-
+
if( pPaper )
{
NSString* pPaperName = [CreateNSString( rtl::OStringToOUString(PaperInfo::toPSName(pPaper->getPaper()), RTL_TEXTENCODING_ASCII_US) ) autorelease];
@@ -320,7 +320,7 @@ BOOL AquaSalInfoPrinter::SetData( ULONG i_nFlags, ImplJobSetup* io_pSetupData )
if( ! io_pSetupData || io_pSetupData->mnSystem != JOBSETUP_SYSTEM_MAC )
return FALSE;
-
+
if( mpPrintInfo )
{
if( (i_nFlags & SAL_JOBSET_ORIENTATION) != 0 )
@@ -346,11 +346,11 @@ BOOL AquaSalInfoPrinter::SetData( ULONG i_nFlags, ImplJobSetup* io_pSetupData )
width = static_cast<long>(PtTo10Mu( w ));
height = static_cast<long>(PtTo10Mu( h ));
}
-
+
setPaperSize( width, height, mePageOrientation );
- }
+ }
}
-
+
return mpPrintInfo != nil;
}
@@ -484,7 +484,7 @@ void AquaSalInfoPrinter::GetPageInfo( const ImplJobSetup*,
o_rPageOffY = static_cast<long>( (aPaperSize.height - aImageRect.size.height - aImageRect.origin.y) * fYScaling );
o_rOutWidth = static_cast<long>( aImageRect.size.width * fXScaling );
o_rOutHeight = static_cast<long>( aImageRect.size.height * fYScaling );
-
+
if( mePageOrientation == ORIENTATION_LANDSCAPE )
{
std::swap( o_rOutWidth, o_rOutHeight );
@@ -521,20 +521,20 @@ BOOL AquaSalInfoPrinter::StartJob( const String* i_pFileName,
{
if( mbJob )
return FALSE;
-
+
BOOL bSuccess = FALSE;
bool bWasAborted = false;
AquaSalInstance* pInst = GetSalData()->mpFirstInstance;
PrintAccessoryViewState aAccViewState;
sal_Int32 nAllPages = 0;
-
+
// reset IsLastPage
i_rController.setLastPage( sal_False );
// update job data
if( i_pSetupData )
SetData( ~0, i_pSetupData );
-
+
// do we want a progress panel ?
sal_Bool bShowProgressPanel = sal_True;
beans::PropertyValue* pMonitor = i_rController.getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "MonitorVisible" ) ) );
@@ -575,21 +575,21 @@ BOOL AquaSalInfoPrinter::StartJob( const String* i_pFileName,
mnCurPageRangeCount = 0;
nAllPages = i_rController.getFilteredPageCount();
}
-
+
aAccViewState.bNeedRestart = false;
-
+
Size aCurSize( 21000, 29700 );
if( nAllPages > 0 )
{
mnCurPageRangeCount = 1;
aCurSize = getPageSize( i_rController, mnCurPageRangeStart );
Size aNextSize( aCurSize );
-
+
// print pages up to a different size
while( mnCurPageRangeCount + mnCurPageRangeStart < nAllPages )
{
aNextSize = getPageSize( i_rController, mnCurPageRangeStart + mnCurPageRangeCount );
- if( aCurSize == aNextSize // same page size
+ if( aCurSize == aNextSize // same page size
||
(aCurSize.Width() == aNextSize.Height() && aCurSize.Height() == aNextSize.Width()) // same size, but different orientation
)
@@ -602,7 +602,7 @@ BOOL AquaSalInfoPrinter::StartJob( const String* i_pFileName,
}
else
mnCurPageRangeCount = 0;
-
+
// now for the current run
mnStartPageOffsetX = mnStartPageOffsetY = 0;
// setup the paper size and orientation
@@ -614,12 +614,12 @@ BOOL AquaSalInfoPrinter::StartJob( const String* i_pFileName,
boost::shared_ptr<Printer> pPrinter( i_rController.getPrinter() );
pPrinter->SetMapMode( MapMode( MAP_100TH_MM ) );
pPrinter->SetPaperSizeUser( aCurSize, true );
-
+
// create view
NSView* pPrintView = [[AquaPrintView alloc] initWithController: &i_rController withInfoPrinter: this];
-
+
NSMutableDictionary* pPrintDict = [mpPrintInfo dictionary];
-
+
// set filename
if( i_pFileName )
{
@@ -628,7 +628,7 @@ BOOL AquaSalInfoPrinter::StartJob( const String* i_pFileName,
[pPrintDict setObject: pPath forKey: NSPrintSavePath];
[pPath release];
}
-
+
[pPrintDict setObject: [[NSNumber numberWithInt: nCopies] autorelease] forKey: NSPrintCopies];
if( nCopies > 1 )
[pPrintDict setObject: [[NSNumber numberWithBool: pPrinter->IsCollateCopy()] autorelease] forKey: NSPrintMustCollate];
@@ -638,25 +638,25 @@ BOOL AquaSalInfoPrinter::StartJob( const String* i_pFileName,
// leads do a double free malloc error. Why this value should behave differently from all the others
// is a mystery.
[pPrintDict setObject: [NSNumber numberWithInt: mnCurPageRangeCount] forKey: NSPrintLastPage];
-
-
+
+
// create print operation
NSPrintOperation* pPrintOperation = [NSPrintOperation printOperationWithView: pPrintView printInfo: mpPrintInfo];
-
+
if( pPrintOperation )
{
NSObject* pReleaseAfterUse = nil;
bool bShowPanel = (! i_rController.isDirectPrint() && getUseNativeDialog() && i_rController.isShowDialogs() );
[pPrintOperation setShowsPrintPanel: bShowPanel ? YES : NO ];
[pPrintOperation setShowsProgressPanel: bShowProgressPanel ? YES : NO];
-
+
// set job title (since MacOSX 10.5)
if( [pPrintOperation respondsToSelector: @selector(setJobTitle:)] )
[pPrintOperation performSelector: @selector(setJobTitle:) withObject: [CreateNSString( i_rJobName ) autorelease]];
-
+
if( bShowPanel && mnCurPageRangeStart == 0 && nCurJob == 0) // only the first range of pages (in the first job) gets the accesory view
pReleaseAfterUse = [AquaPrintAccessoryView setupPrinterPanel: pPrintOperation withController: &i_rController withState: &aAccViewState];
-
+
bSuccess = TRUE;
mbJob = true;
pInst->startedPrintJob();
@@ -667,12 +667,12 @@ BOOL AquaSalInfoPrinter::StartJob( const String* i_pFileName,
if( pReleaseAfterUse )
[pReleaseAfterUse release];
}
-
+
mnCurPageRangeStart += mnCurPageRangeCount;
mnCurPageRangeCount = 1;
} while( aAccViewState.bNeedRestart || mnCurPageRangeStart + mnCurPageRangeCount < nAllPages );
}
-
+
// inform application that it can release its data
// this is awkward, but the XRenderable interface has no method for this,
// so we need to call XRenderadble::render one last time with IsLastPage = TRUE
@@ -681,11 +681,11 @@ BOOL AquaSalInfoPrinter::StartJob( const String* i_pFileName,
if( mrContext )
SetupPrinterGraphics( mrContext );
i_rController.getFilteredPageFile( 0, aPageFile );
-
+
i_rController.setJobState( bWasAborted
? view::PrintableState_JOB_ABORTED
: view::PrintableState_JOB_SPOOLED );
-
+
mnCurPageRangeStart = mnCurPageRangeCount = 0;
return bSuccess;
@@ -705,7 +705,7 @@ BOOL AquaSalInfoPrinter::EndJob()
BOOL AquaSalInfoPrinter::AbortJob()
{
mbJob = false;
-
+
// FIXME: implementation
return FALSE;
}
@@ -716,11 +716,11 @@ SalGraphics* AquaSalInfoPrinter::StartPage( ImplJobSetup* i_pSetupData, BOOL i_b
{
if( i_bNewJobData && i_pSetupData )
SetPrinterData( i_pSetupData );
-
+
CGContextRef rContext = reinterpret_cast<CGContextRef>([[NSGraphicsContext currentContext] graphicsPort]);
-
+
SetupPrinterGraphics( rContext );
-
+
return mpGraphics;
}
@@ -816,7 +816,7 @@ void AquaSalInfoPrinter::InitPaperFormats( const ImplJobSetup* i_pSetupData )
{
m_aPaperFormats.clear();
m_bPapersInit = true;
-
+
if( mpPrinter )
{
if( [mpPrinter statusForTable: @"PPD"] == NSPrinterTableOK )
@@ -845,7 +845,7 @@ const PaperInfo* AquaSalInfoPrinter::matchPaper( long i_nWidth, long i_nHeight,
{
if( ! m_bPapersInit )
const_cast<AquaSalInfoPrinter*>(this)->InitPaperFormats( NULL );
-
+
const PaperInfo* pMatch = NULL;
o_rOrientation = ORIENTATION_PORTRAIT;
for( int n = 0; n < 2 ; n++ )
diff --git a/vcl/aqua/source/gdi/salvd.cxx b/vcl/aqua/source/gdi/salvd.cxx
index de09867e4071..d67aea8d3657 100644
--- a/vcl/aqua/source/gdi/salvd.cxx
+++ b/vcl/aqua/source/gdi/salvd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ SalVirtualDevice* AquaSalInstance::CreateVirtualDevice( SalGraphics* pGraphics,
{
// #i92075# can be called first in a thread
SalData::ensureThreadAutoreleasePool();
-
+
return new AquaSalVirtualDevice( static_cast< AquaSalGraphics* >( pGraphics ), nDX, nDY, nBitCount, pData );
}
@@ -58,10 +58,10 @@ void AquaSalInstance::DestroyVirtualDevice( SalVirtualDevice* pDevice )
// =======================================================================
AquaSalVirtualDevice::AquaSalVirtualDevice( AquaSalGraphics* pGraphic, long nDX, long nDY, USHORT nBitCount, const SystemGraphicsData *pData )
-: mbGraphicsUsed( false )
-, mxBitmapContext( NULL )
-, mnBitmapDepth( 0 )
-, mxLayer( NULL )
+: mbGraphicsUsed( false )
+, mxBitmapContext( NULL )
+, mnBitmapDepth( 0 )
+, mxLayer( NULL )
{
if( pGraphic && pData && pData->rCGContext )
{
@@ -91,7 +91,7 @@ AquaSalVirtualDevice::AquaSalVirtualDevice( AquaSalGraphics* pGraphic, long nDX,
if( nDX && nDY )
SetSize( nDX, nDY );
-
+
// NOTE: if SetSize does not succeed, we just ignore the nDX and nDY
}
}
@@ -203,9 +203,9 @@ BOOL AquaSalVirtualDevice::SetSize( long nDX, long nDY )
xCGContext = reinterpret_cast<CGContextRef>([pNSContext graphicsPort]);
}
}
-
+
DBG_ASSERT( xCGContext, "no context" );
-
+
const CGSize aNewSize = { nDX, nDY };
mxLayer = CGLayerCreateWithContext( xCGContext, aNewSize, NULL );
diff --git a/vcl/aqua/source/window/salframe.cxx b/vcl/aqua/source/window/salframe.cxx
index e280a583b3d5..745152fd2e28 100644
--- a/vcl/aqua/source/window/salframe.cxx
+++ b/vcl/aqua/source/window/salframe.cxx
@@ -2,7 +2,7 @@
/************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,7 +93,7 @@ AquaSalFrame::AquaSalFrame( SalFrame* pParent, ULONG salFrameStyle ) :
maSysData.nSize = sizeof( SystemEnvData );
mpParent = dynamic_cast<AquaSalFrame*>(pParent);
-
+
initWindowAndView();
SalData* pSalData = GetSalData();
@@ -112,20 +112,20 @@ AquaSalFrame::~AquaSalFrame()
// cleanup clipping stuff
ResetClipRegion();
-
+
[SalFrameView unsetMouseFrame: this];
-
+
SalData* pSalData = GetSalData();
pSalData->maFrames.remove( this );
pSalData->maFrameCheck.erase( this );
-
+
DBG_ASSERT( this != s_pCaptureFrame, "capture frame destroyed" );
if( this == s_pCaptureFrame )
s_pCaptureFrame = NULL;
if ( mpGraphics )
delete mpGraphics;
-
+
if( mpDockMenuEntry )
// life cycle comment: the menu has ownership of the item, so no release
[AquaSalInstance::GetDynamicDockMenu() removeItem: mpDockMenuEntry];
@@ -151,12 +151,12 @@ void AquaSalFrame::initWindowAndView()
// calculate some default geometry
NSRect aVisibleRect = [pScreen visibleFrame];
CocoaToVCL( aVisibleRect );
-
+
maGeometry.nX = static_cast<int>(aVisibleRect.origin.x + aVisibleRect.size.width / 10);
maGeometry.nY = static_cast<int>(aVisibleRect.origin.y + aVisibleRect.size.height / 10);
maGeometry.nWidth = static_cast<unsigned int>(aVisibleRect.size.width * 0.8);
maGeometry.nHeight = static_cast<unsigned int>(aVisibleRect.size.height * 0.8);
-
+
// calculate style mask
if( (mnStyle & SAL_FRAME_STYLE_FLOAT) ||
(mnStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION) )
@@ -191,7 +191,7 @@ void AquaSalFrame::initWindowAndView()
if( mnStyleMask != 0 )
mnStyleMask |= NSTitledWindowMask;
}
-
+
mpWindow = [[SalFrameWindow alloc] initWithSalFrame: this];
mpView = [[SalFrameView alloc] initWithSalFrame: this];
if( (mnStyle & SAL_FRAME_STYLE_TOOLTIP) )
@@ -200,14 +200,14 @@ void AquaSalFrame::initWindowAndView()
[mpWindow setAcceptsMouseMovedEvents: YES];
[mpWindow setHasShadow: YES];
[mpWindow setDelegate: mpWindow];
-
+
NSRect aRect = { { 0,0 }, { maGeometry.nWidth, maGeometry.nHeight } };
mnTrackingRectTag = [mpView addTrackingRect: aRect owner: mpView userData: nil assumeInside: NO];
-
+
maSysData.pView = mpView;
-
+
UpdateFrameGeometry();
-
+
// setContentView causes a display; in multithreaded use this can deadlock
//YieldMutexReleaser aRel;
[mpWindow setContentView: mpView];
@@ -252,7 +252,7 @@ void AquaSalFrame::VCLToCocoa( NSPoint& io_rPoint, bool bRelativeToScreen )
void AquaSalFrame::screenParametersChanged()
{
UpdateFrameGeometry();
-
+
if( mpGraphics )
mpGraphics->updateResolution();
CallCallback( SALEVENT_DISPLAYCHANGED, 0 );
@@ -296,7 +296,7 @@ void AquaSalFrame::SetTitle(const XubString& rTitle)
{
NSString* pTitle = CreateNSString( rTitle );
[mpWindow setTitle: pTitle];
-
+
// create an entry in the dock menu
const ULONG nAppWindowStyle = (SAL_FRAME_STYLE_CLOSEABLE | SAL_FRAME_STYLE_MOVEABLE);
if( mpParent == NULL &&
@@ -310,14 +310,14 @@ void AquaSalFrame::SetTitle(const XubString& rTitle)
keyEquivalent: @""
atIndex: 0];
[mpDockMenuEntry setTarget: mpWindow];
-
+
// TODO: image (either the generic window image or an icon
// check mark (for "main" window ?)
}
else
[mpDockMenuEntry setTitle: pTitle];
}
-
+
if (pTitle)
[pTitle release];
}
@@ -379,7 +379,7 @@ void AquaSalFrame::initShow()
SetPosSize( nNewX, nNewY, 0, 0, SAL_FRAME_POSSIZE_X | SAL_FRAME_POSSIZE_Y );
}
}
-
+
// make sure the view is present in the wrapper list before any children receive focus
[AquaA11yFactory registerView: mpView];
}
@@ -394,7 +394,7 @@ void AquaSalFrame::SendPaintEvent( const Rectangle* pRect )
aPaintEvt.mnBoundWidth = pRect->GetWidth();
aPaintEvt.mnBoundHeight = pRect->GetHeight();
}
-
+
CallCallback(SALEVENT_PAINT, &aPaintEvt);
}
@@ -407,23 +407,23 @@ void AquaSalFrame::Show(BOOL bVisible, BOOL bNoActivate)
{
if( mbInitShow )
initShow();
-
+
CallCallback(SALEVENT_RESIZE, 0);
// trigger filling our backbuffer
SendPaintEvent();
-
+
//YieldMutexReleaser aRel;
if( bNoActivate || [mpWindow canBecomeKeyWindow] == NO )
[mpWindow orderFront: NSApp];
else
[mpWindow makeKeyAndOrderFront: NSApp];
-
+
if( mpParent )
{
/* #i92674# #i96433# we do not want an invisible parent to show up (which adding a visible
child implicitly does). However we also do not want a parentless toolbar.
-
+
HACK: try to decide when we should not insert a child to its parent
floaters and ownerdraw windows have not yet shown up in cases where
we don't want the parent to become visible
@@ -433,7 +433,7 @@ void AquaSalFrame::Show(BOOL bVisible, BOOL bNoActivate)
[mpParent->mpWindow addChildWindow: mpWindow ordered: NSWindowAbove];
}
}
-
+
if( mbPresentation )
[mpWindow makeMainWindow];
}
@@ -450,11 +450,11 @@ void AquaSalFrame::Show(BOOL bVisible, BOOL bNoActivate)
// if a child gets hidden for a parent window
if( mpParent && mpParent->mbShown && [mpWindow isKeyWindow] )
[mpParent->mpWindow makeKeyAndOrderFront: NSApp];
-
+
[SalFrameView unsetMouseFrame: this];
if( mpParent && [mpWindow parentWindow] == mpParent->mpWindow )
[mpParent->mpWindow removeChildWindow: mpWindow];
-
+
[mpWindow orderOut: NSApp];
}
}
@@ -520,7 +520,7 @@ void AquaSalFrame::SetClientSize( long nWidth, long nHeight )
if( mpWindow )
{
NSSize aSize = { nWidth, nHeight };
-
+
[mpWindow setContentSize: aSize];
UpdateFrameGeometry();
if( mbShown )
@@ -563,7 +563,7 @@ void AquaSalFrame::SetWindowState( const SalFrameState* pState )
aStateRect.size.height = float(pState->mnHeight);
VCLToCocoa( aStateRect );
aStateRect = [NSWindow frameRectForContentRect: aStateRect styleMask: mnStyleMask];
-
+
// relase and acquire mutex again since this call can block waiting for an internal lock
{
//YieldMutexReleaser aRel;
@@ -571,10 +571,10 @@ void AquaSalFrame::SetWindowState( const SalFrameState* pState )
}
// FIXME: HTH maximized state ?
-
+
// get new geometry
UpdateFrameGeometry();
-
+
USHORT nEvent = 0;
if( pState->mnMask & (SAL_FRAMESTATE_MASK_X | SAL_FRAMESTATE_MASK_X) )
{
@@ -598,7 +598,7 @@ void AquaSalFrame::SetWindowState( const SalFrameState* pState )
// tell the system the views need to be updated
//YieldMutexReleaser aRel;
-
+
[mpWindow display];
}
}
@@ -620,9 +620,9 @@ BOOL AquaSalFrame::GetWindowState( SalFrameState* pState )
pState->mnY = long(aStateRect.origin.y);
pState->mnWidth = long(aStateRect.size.width);
pState->mnHeight = long(aStateRect.size.height);
-
+
// FIXME: HTH maximized state ?
-
+
if( [mpWindow isMiniaturized] )
pState->mnState = SAL_FRAMESTATE_MINIMIZED;
else if( ! [mpWindow isZoomed] )
@@ -645,7 +645,7 @@ void AquaSalFrame::SetScreenNumber(unsigned int nScreen)
// get new screen frame
pScreen = [pScreens objectAtIndex: nScreen];
NSRect aNewScreen = [pScreen frame];
-
+
// get current screen frame
pScreen = [mpWindow screen];
if( pScreen )
@@ -674,14 +674,14 @@ void AquaSalFrame::ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay )
{
if( mbFullScreen == bFullScreen )
return;
-
+
mbFullScreen = bFullScreen;
if( bFullScreen )
{
// hide the dock and the menubar if we are on the menu screen
// which is always on index 0 according to documentation
bool bHideMenu = (nDisplay == 0);
-
+
NSRect aNewContentRect = { { 0, 0 }, { 0, 0 } };
// get correct screen
NSScreen* pScreen = nil;
@@ -721,7 +721,7 @@ void AquaSalFrame::ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay )
pScreen = [mpWindow screen];
if( pScreen == nil )
pScreen = [NSScreen mainScreen];
-
+
aNewContentRect = [pScreen frame];
}
@@ -768,11 +768,11 @@ public:
SetTimeout( 30000 );
Start();
}
-
+
virtual ~PreventSleepTimer()
{
}
-
+
virtual void Timeout()
{
UpdateSystemActivity(OverallAct);
@@ -843,12 +843,12 @@ NSCursor* AquaSalFrame::getCurrentCursor() const
case POINTER_WINDOW_WSIZE:
pCursor = [NSCursor resizeLeftRightCursor]; break;
case POINTER_REFHAND: pCursor = [NSCursor pointingHandCursor]; break;
-
+
default:
pCursor = GetSalData()->getCursor( mePointerStyle );
if( pCursor == nil )
{
- DBG_ERROR( "unmapped cursor" );
+ DBG_ERROR( "unmapped cursor" );
pCursor = [NSCursor arrowCursor];
}
break;
@@ -861,7 +861,7 @@ void AquaSalFrame::SetPointer( PointerStyle ePointerStyle )
if( ePointerStyle >= POINTER_COUNT || ePointerStyle == mePointerStyle )
return;
mePointerStyle = ePointerStyle;
-
+
[mpWindow invalidateCursorRectsForView: mpView];
}
@@ -870,7 +870,7 @@ void AquaSalFrame::SetPointer( PointerStyle ePointerStyle )
void AquaSalFrame::SetPointerPos( long nX, long nY )
{
// FIXME: use Cocoa functions
-
+
// FIXME: multiscreen support
CGPoint aPoint = { nX + maGeometry.nX, nY + maGeometry.nY };
CGDirectDisplayID mainDisplayID = CGMainDisplayID();
@@ -922,7 +922,7 @@ void AquaSalFrame::Sync()
if( mbGraphics && mpGraphics && mpView && mbShown )
{
//YieldMutexReleaser aRel;
-
+
[mpView setNeedsDisplay: YES];
[mpView display];
}
@@ -937,7 +937,7 @@ void AquaSalFrame::SetInputContext( SalInputContext* pContext )
mnICOptions = 0;
return;
}
-
+
mnICOptions = pContext->mnOptions;
if(!(pContext->mnOptions & SAL_INPUTCONTEXT_TEXT))
@@ -969,7 +969,7 @@ XubString AquaSalFrame::GetKeyName( USHORT nKeyCode )
aKey.append( sal_Int32( i - KEY_F1 + 1 ) );
aKeyMap[ i ] = aKey.makeStringAndClear();
}
-
+
aKeyMap[ KEY_DOWN ] = rtl::OUString( sal_Unicode( 0x21e3 ) );
aKeyMap[ KEY_UP ] = rtl::OUString( sal_Unicode( 0x21e1 ) );
aKeyMap[ KEY_LEFT ] = rtl::OUString( sal_Unicode( 0x21e0 ) );
@@ -991,7 +991,7 @@ XubString AquaSalFrame::GetKeyName( USHORT nKeyCode )
aKeyMap[ KEY_POINT ] = rtl::OUString( sal_Unicode( '.' ) );
aKeyMap[ KEY_COMMA ] = rtl::OUString( sal_Unicode( ',' ) );
aKeyMap[ KEY_LESS ] = rtl::OUString( sal_Unicode( '<' ) );
- aKeyMap[ KEY_GREATER ] = rtl::OUString( sal_Unicode( '>' ) );
+ aKeyMap[ KEY_GREATER ] = rtl::OUString( sal_Unicode( '>' ) );
aKeyMap[ KEY_EQUAL ] = rtl::OUString( sal_Unicode( '=' ) );
aKeyMap[ KEY_OPEN ] = rtl::OUString( sal_Unicode( 0x23cf ) );
@@ -1015,9 +1015,9 @@ XubString AquaSalFrame::GetKeyName( USHORT nKeyCode )
*/
}
-
+
rtl::OUStringBuffer aResult( 16 );
-
+
USHORT nUnmodifiedCode = (nKeyCode & KEY_CODE);
std::map< USHORT, rtl::OUString >::const_iterator it = aKeyMap.find( nUnmodifiedCode );
if( it != aKeyMap.end() )
@@ -1030,10 +1030,10 @@ XubString AquaSalFrame::GetKeyName( USHORT nKeyCode )
// we map it to MOD3, whichis actually Command
if( (nKeyCode & (KEY_MOD2|KEY_MOD3)) != 0 )
aResult.append( sal_Unicode( 0x2303 ) );
-
+
aResult.append( it->second );
}
-
+
return aResult.makeStringAndClear();
}
@@ -1053,7 +1053,7 @@ static void getAppleScrollBarVariant(void)
CFStringRef AppleScrollBarType = CFSTR("AppleScrollBarVariant");
if( AppleScrollBarType )
{
- CFStringRef ScrollBarVariant = ((CFStringRef)CFPreferencesCopyAppValue( AppleScrollBarType, kCFPreferencesCurrentApplication ));
+ CFStringRef ScrollBarVariant = ((CFStringRef)CFPreferencesCopyAppValue( AppleScrollBarType, kCFPreferencesCurrentApplication ));
if( ScrollBarVariant )
{
if( CFGetTypeID( ScrollBarVariant ) == CFStringGetTypeID() )
@@ -1079,7 +1079,7 @@ static void getAppleScrollBarVariant(void)
CFStringRef jumpScroll = CFSTR("AppleScrollerPagingBehavior");
if( jumpScroll )
{
- CFBooleanRef jumpStr = ((CFBooleanRef)CFPreferencesCopyAppValue( jumpScroll, kCFPreferencesCurrentApplication ));
+ CFBooleanRef jumpStr = ((CFBooleanRef)CFPreferencesCopyAppValue( jumpScroll, kCFPreferencesCurrentApplication ));
if( jumpStr )
{
if( CFGetTypeID( jumpStr ) == CFBooleanGetTypeID() )
@@ -1123,7 +1123,7 @@ static Font getFont( NSFont* pFont, long nDPIY, const Font& rDefault )
aResult.SetItalic( ([pFont italicAngle] != 0.0) ? ITALIC_NORMAL : ITALIC_NONE );
// FIMXE: bold ?
}
-
+
return aResult;
}
@@ -1146,7 +1146,7 @@ void AquaSalFrame::getResolution( long& o_rDPIX, long& o_rDPIY )
void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
{
[mpView lockFocus];
-
+
StyleSettings aStyleSettings = rSettings.GetStyleSettings();
// Background Color
@@ -1156,7 +1156,7 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
Color aInactiveTabColor( aBackgroundColor );
aInactiveTabColor.DecreaseLuminance( 32 );
aStyleSettings.SetInactiveTabColor( aInactiveTabColor );
-
+
aStyleSettings.SetDialogColor( aBackgroundColor );
aStyleSettings.SetLightBorderColor( aBackgroundColor );
Color aShadowColor( aStyleSettings.GetShadowColor() );
@@ -1176,7 +1176,7 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
aStyleSettings.SetAppFont( aAppFont );
aStyleSettings.SetHelpFont( aAppFont );
aStyleSettings.SetPushButtonFont( aAppFont );
-
+
Font aTitleFont( getFont( [NSFont titleBarFontOfSize: 0], nDPIY, aAppFont ) );
aStyleSettings.SetTitleFont( aTitleFont );
aStyleSettings.SetFloatTitleFont( aTitleFont );
@@ -1200,14 +1200,14 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
Color aHighlightTextColor( getColor( [NSColor selectedTextColor],
aStyleSettings.GetHighlightTextColor(), mpWindow ) );
aStyleSettings.SetHighlightTextColor( aHighlightTextColor );
-
+
Color aMenuHighlightColor( getColor( [NSColor selectedMenuItemColor],
aStyleSettings.GetMenuHighlightColor(), mpWindow ) );
aStyleSettings.SetMenuHighlightColor( aMenuHighlightColor );
Color aMenuHighlightTextColor( getColor( [NSColor selectedMenuItemTextColor],
aStyleSettings.GetMenuHighlightTextColor(), mpWindow ) );
aStyleSettings.SetMenuHighlightTextColor( aMenuHighlightTextColor );
-
+
aStyleSettings.SetMenuColor( aBackgroundColor );
Color aMenuTextColor( getColor( [NSColor textColor],
aStyleSettings.GetMenuTextColor(), mpWindow ) );
@@ -1215,18 +1215,18 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings )
aStyleSettings.SetMenuBarTextColor( aMenuTextColor );
aStyleSettings.SetCursorBlinkTime( 500 );
-
+
// no mnemonics on aqua
aStyleSettings.SetOptions( aStyleSettings.GetOptions() | STYLE_OPTION_NOMNEMONICS );
-
+
getAppleScrollBarVariant();
-
+
// set scrollbar size
aStyleSettings.SetScrollBarSize( static_cast<long int>([NSScroller scrollerWidth]) );
// images in menus false for MacOSX
aStyleSettings.SetPreferredUseImagesInMenus( false );
-
+
rSettings.SetStyleSettings( aStyleSettings );
[mpView unlockFocus];
@@ -1277,7 +1277,7 @@ void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, USHOR
NSRect aFrameRect = [mpWindow frame];
NSRect aContentRect = [NSWindow contentRectForFrameRect: aFrameRect styleMask: mnStyleMask];
-
+
// position is always relative to parent frame
NSRect aParentContentRect;
@@ -1295,10 +1295,10 @@ void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, USHOR
}
else
aParentContentRect = maScreenRect; // use screen if no parent
-
+
CocoaToVCL( aContentRect );
CocoaToVCL( aParentContentRect );
-
+
bool bPaint = false;
if( (nFlags & (SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT)) != 0 )
{
@@ -1317,7 +1317,7 @@ void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, USHOR
aContentRect.size.width = nWidth;
if( (nFlags & SAL_FRAME_POSSIZE_HEIGHT) != 0)
aContentRect.size.height = nHeight;
-
+
VCLToCocoa( aContentRect );
// do not display yet, we need to update our backbuffer
@@ -1325,7 +1325,7 @@ void AquaSalFrame::SetPosSize(long nX, long nY, long nWidth, long nHeight, USHOR
//YieldMutexReleaser aRel;
[mpWindow setFrame: [NSWindow frameRectForContentRect: aContentRect styleMask: mnStyleMask] display: NO];
}
-
+
UpdateFrameGeometry();
if (nEvent)
@@ -1355,11 +1355,11 @@ void AquaSalFrame::GetWorkArea( Rectangle& rRect )
rRect.nBottom = static_cast<long>(aRect.origin.y + aRect.size.height - 1);
}
-SalPointerState AquaSalFrame::GetPointerState()
+SalPointerState AquaSalFrame::GetPointerState()
{
SalPointerState state;
state.mnState = 0;
-
+
// get position
NSPoint aPt = [mpWindow mouseLocationOutsideOfEventStream];
CocoaToVCL( aPt, false );
@@ -1399,7 +1399,7 @@ SalPointerState AquaSalFrame::GetPointerState()
state.mnState |= KEY_MOD2;
if( (nMask & NSCommandKeyMask) != 0 )
state.mnState |= KEY_MOD1;
-
+
}
else
{
@@ -1410,7 +1410,7 @@ SalPointerState AquaSalFrame::GetPointerState()
// and all mouse events for button state in VCL_NSApllication::sendEvent,
// but it is unclear whether this will get us the same result.
// leave in GetCurrentEventButtonState and GetCurrentEventKeyModifiers for now
-
+
// fill in button state
UInt32 nState = GetCurrentEventButtonState();
state.mnState = 0;
@@ -1420,7 +1420,7 @@ SalPointerState AquaSalFrame::GetPointerState()
state.mnState |= MOUSE_RIGHT; // secondary button
if( nState & 4 )
state.mnState |= MOUSE_MIDDLE; // tertiary button
-
+
// fill in modifier state
nState = GetCurrentEventKeyModifiers();
if( nState & shiftKey )
@@ -1432,8 +1432,8 @@ SalPointerState AquaSalFrame::GetPointerState()
if( nState & cmdKey )
state.mnState |= KEY_MOD1;
}
-
-
+
+
return state;
}
@@ -1512,13 +1512,13 @@ void AquaSalFrame::SetParent( SalFrame* pNewParent )
mpParent = (AquaSalFrame*)pNewParent;
// insert to correct parent and paint
Show( bShown );
-}
+}
void AquaSalFrame::UpdateFrameGeometry()
{
// keep in mind that view and window coordinates are lower left
// whereas vcl's are upper left
-
+
// update screen rect
NSScreen * pScreen = [mpWindow screen];
if( pScreen )
@@ -1528,7 +1528,7 @@ void AquaSalFrame::UpdateFrameGeometry()
if( pScreens )
maGeometry.nScreenNumber = [pScreens indexOfObject: pScreen];
}
-
+
NSRect aFrameRect = [mpWindow frame];
NSRect aContentRect = [NSWindow contentRectForFrameRect: aFrameRect styleMask: mnStyleMask];
@@ -1548,7 +1548,7 @@ void AquaSalFrame::UpdateFrameGeometry()
maGeometry.nLeftDecoration = static_cast<unsigned int>(aContentRect.origin.x - aFrameRect.origin.x);
maGeometry.nRightDecoration = static_cast<unsigned int>((aFrameRect.origin.x + aFrameRect.size.width) -
(aContentRect.origin.x + aContentRect.size.width));
-
+
maGeometry.nTopDecoration = static_cast<unsigned int>(aContentRect.origin.y - aFrameRect.origin.y);
maGeometry.nBottomDecoration = static_cast<unsigned int>((aFrameRect.origin.y + aFrameRect.size.height) -
(aContentRect.origin.y + aContentRect.size.height));
@@ -1566,15 +1566,15 @@ void AquaSalFrame::CaptureMouse( BOOL bCapture )
on MacOSX (neither carbon nor cocoa) there is a
CaptureMouse equivalent (in Carbon there is TrackMouseLocation
but this is useless to use since it is blocking)
-
+
However on cocoa the active frame seems to get mouse events
also outside the window, so we'll try to forward mouse events
to the capture frame in the hope that one of our frames
gets a mouse event.
-
+
This will break as soon as the user activates another app, but
a mouse click will normally lead to a release of the mouse anyway.
-
+
Let's see how far we get this way. Alternatively we could use one
large overlay window like we did for the carbon implementation,
however that is resource intensive.
@@ -1591,7 +1591,7 @@ void AquaSalFrame::ResetClipRegion()
// release old path and indicate no clipping
CGPathRelease( mrClippingPath );
mrClippingPath = NULL;
-
+
if( mpView && mbShown )
[mpView setNeedsDisplay: YES];
if( mpWindow )
@@ -1609,7 +1609,7 @@ void AquaSalFrame::BeginSetClipRegion( ULONG nRects )
CGPathRelease( mrClippingPath );
mrClippingPath = NULL;
}
-
+
if( maClippingRects.size() > SAL_CLIPRECT_COUNT && nRects < maClippingRects.size() )
{
std::vector<CGRect> aEmptyVec;
diff --git a/vcl/aqua/source/window/salmenu.cxx b/vcl/aqua/source/window/salmenu.cxx
index df1de50d8709..4423a1e6f964 100644
--- a/vcl/aqua/source/window/salmenu.cxx
+++ b/vcl/aqua/source/window/salmenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -108,7 +108,7 @@ static void initAppMenu()
{
// create the action selector
pMainMenuSelector = [[MainMenuSelector alloc] init];
-
+
// get the proper submenu
NSMenu* pAppMenu = [[pMainMenu itemAtIndex: 0] submenu];
if( pAppMenu )
@@ -127,7 +127,7 @@ static void initAppMenu()
[pNewItem setTarget: pMainMenuSelector];
[pAppMenu insertItem: [NSMenuItem separatorItem] atIndex: 1];
}
-
+
// insert preferences entry
String aPref( ResId( SV_STDTEXT_PREFERENCES, *pMgr ) );
pString = CreateNSString( aPref );
@@ -143,9 +143,9 @@ static void initAppMenu()
[pNewItem setTarget: pMainMenuSelector];
[pAppMenu insertItem: [NSMenuItem separatorItem] atIndex: 3];
}
-
+
// WARNING: ultra ugly code ahead
-
+
// rename standard entries
// rename "Services"
pNewItem = [pAppMenu itemAtIndex: 4];
@@ -207,7 +207,7 @@ static void initAppMenu()
SalMenu* AquaSalInstance::CreateMenu( BOOL bMenuBar )
{
initAppMenu();
-
+
AquaSalMenu *pAquaSalMenu = new AquaSalMenu( bMenuBar );
return pAquaSalMenu;
@@ -267,11 +267,11 @@ AquaSalMenu::~AquaSalMenu()
if( mpFrame && AquaSalFrame::isAlive( mpFrame ) && mpFrame->mpMenu == this )
const_cast<AquaSalFrame*>(mpFrame)->mpMenu = NULL;
- // this should normally be empty already, but be careful...
+ // this should normally be empty already, but be careful...
for( size_t i = 0; i < maButtons.size(); i++ )
releaseButtonEntry( maButtons[i] );
maButtons.clear();
-
+
// is this leaking in some cases ? the release often leads to a duplicate release
// it seems the parent item gets ownership of the menu
if( mpMenu )
@@ -279,7 +279,7 @@ AquaSalMenu::~AquaSalMenu()
if( mbMenuBar )
{
if( pCurrentMenuBar == this )
- {
+ {
// if the current menubar gets destroyed, set the default menubar
setDefaultMenu();
}
@@ -289,7 +289,7 @@ AquaSalMenu::~AquaSalMenu()
{
// so set the pointer to this AquaSalMenu to NULL
// to protect from calling a dead object
-
+
// in ! mbMenuBar case our mpMenu is actually a SalNSMenu*
// so we can safely cast here
[static_cast<SalNSMenu*>(mpMenu) setSalMenu: NULL];
@@ -351,7 +351,7 @@ bool AquaSalMenu::ShowNativePopupMenu(FloatingWindow * pWin, const Rectangle& rR
NSView * pParentNSView = [pParentNSWindow contentView];
NSView * pPopupNSView = ((AquaSalFrame *) pWin->ImplGetWindow()->ImplGetFrame())->mpView;
NSRect popupFrame = [pPopupNSView frame];
-
+
// since we manipulate the menu below (removing entries)
// let's rather make a copy here and work with that
NSMenu* pCopyMenu = [mpMenu copy];
@@ -370,11 +370,11 @@ bool AquaSalMenu::ShowNativePopupMenu(FloatingWindow * pWin, const Rectangle& rR
displayPopupFrame.origin.x = pWin->ImplGetFrame()->maGeometry.nX - pParentAquaSalFrame->maGeometry.nX + offset;
displayPopupFrame.origin.y = pWin->ImplGetFrame()->maGeometry.nY - pParentAquaSalFrame->maGeometry.nY + offset;
pParentAquaSalFrame->VCLToCocoa(displayPopupFrame, false);
-
+
// #i111992# if this menu was opened due to a key event, prevent dispatching that yet again
if( [pParentNSView respondsToSelector: @selector(clearLastEvent)] )
[pParentNSView performSelector:@selector(clearLastEvent)];
-
+
// open popup menu
NSPopUpButtonCell * pPopUpButtonCell = [[NSPopUpButtonCell alloc] initTextCell:@"" pullsDown:NO];
[pPopUpButtonCell setMenu: pCopyMenu];
@@ -383,7 +383,7 @@ bool AquaSalMenu::ShowNativePopupMenu(FloatingWindow * pWin, const Rectangle& rR
[pPopUpButtonCell performClickWithFrame:displayPopupFrame inView:pParentNSView];
[pPopUpButtonCell release];
[AquaA11yWrapper setPopupMenuOpen: NO];
-
+
// clean up the copy
[pCopyMenu release];
return true;
@@ -414,7 +414,7 @@ void AquaSalMenu::unsetMainMenu()
// remove items from main menu
NSMenu* pMenu = [NSApp mainMenu];
for( int nItems = [pMenu numberOfItems]; nItems > 1; nItems-- )
- [pMenu removeItemAtIndex: 1];
+ [pMenu removeItemAtIndex: 1];
}
void AquaSalMenu::setMainMenu()
@@ -432,7 +432,7 @@ void AquaSalMenu::setMainMenu()
[mpMenu insertItem: pItem atIndex: i+1];
}
pCurrentMenuBar = this;
-
+
// change status item
statusLayout();
}
@@ -488,7 +488,7 @@ void AquaSalMenu::addFallbackMenuItem( NSMenuItem* pNewItem )
// push the item to the back and retain it
[pNewItem retain];
rFallbackMenu.push_back( pNewItem );
-
+
if( pCurrentMenuBar == NULL )
setDefaultMenu();
}
@@ -580,9 +580,9 @@ void AquaSalMenu::RemoveItem( unsigned nPos )
DBG_ERROR( "invalid item index in remove" );
return;
}
-
+
pRemoveItem->mpParentMenu = NULL;
-
+
if( ! mbMenuBar || pCurrentMenuBar == this )
[mpMenu removeItemAtIndex: getItemIndexByPos(nPos)];
}
@@ -599,7 +599,7 @@ void AquaSalMenu::SetSubMenu( SalMenuItem* pSalMenuItem, SalMenu* pSubMenu, unsi
{
subAquaSalMenu->mpParentSalMenu = this;
[pAquaSalMenuItem->mpMenuItem setSubmenu: subAquaSalMenu->mpMenu];
-
+
// set title of submenu
[subAquaSalMenu->mpMenu setTitle: [pAquaSalMenuItem->mpMenuItem title]];
}
@@ -610,7 +610,7 @@ void AquaSalMenu::SetSubMenu( SalMenuItem* pSalMenuItem, SalMenu* pSubMenu, unsi
// let's hope that NSMenu copy does the right thing
NSMenu* pCopy = [subAquaSalMenu->mpMenu copy];
[pAquaSalMenuItem->mpMenuItem setSubmenu: pCopy];
-
+
// set title of submenu
[pCopy setTitle: [pAquaSalMenuItem->mpMenuItem title]];
}
@@ -652,7 +652,7 @@ void AquaSalMenu::SetItemImage( unsigned nPos, SalMenuItem* pSMI, const Image& r
return;
NSImage* pImage = CreateNSImage( rImage );
-
+
[pSalMenuItem->mpMenuItem setImage: pImage];
if( pImage )
[pImage release];
@@ -669,7 +669,7 @@ void AquaSalMenu::SetItemText( unsigned i_nPos, SalMenuItem* i_pSalMenuItem, con
// Delete mnemonics
aText.EraseAllChars( '~' );
-
+
/* #i90015# until there is a correct solution
strip out any appended (.*) in menubar entries
*/
@@ -683,7 +683,7 @@ void AquaSalMenu::SetItemText( unsigned i_nPos, SalMenuItem* i_pSalMenuItem, con
aText.Erase( nPos, nPos2-nPos+1 );
}
}
-
+
NSString* pString = CreateNSString( aText );
if (pString)
{
@@ -746,7 +746,7 @@ void AquaSalMenu::SetAccelerator( unsigned nPos, SalMenuItem* pSalMenuItem, cons
}
else // not even a code ? nonsense -> ignore
return;
-
+
DBG_ASSERT( nCommandKey, "unmapped accelerator key" );
nModifier=rKeyCode.GetAllModifier();
@@ -766,7 +766,7 @@ void AquaSalMenu::SetAccelerator( unsigned nPos, SalMenuItem* pSalMenuItem, cons
if(nModifier & KEY_MOD2)
nItemModifier |= NSAlternateKeyMask;
-
+
if(nModifier & KEY_MOD3)
nItemModifier |= NSControlKeyMask;
@@ -822,7 +822,7 @@ bool AquaSalMenu::AddMenuBarButton( const SalMenuButtonItem& i_rNewItem )
{
if( ! mbMenuBar || ! VisibleMenuBar() )
return false;
-
+
MenuBarButtonEntry* pEntry = findButtonItem( i_rNewItem.mnId );
if( pEntry )
{
@@ -838,13 +838,13 @@ bool AquaSalMenu::AddMenuBarButton( const SalMenuButtonItem& i_rNewItem )
maButtons.back().mpNSImage = CreateNSImage( i_rNewItem.maImage );
maButtons.back().mpToolTipString = CreateNSString( i_rNewItem.maToolTipText );
}
-
+
// lazy create status item
SalData::getStatusItem();
-
+
if( pCurrentMenuBar == this )
statusLayout();
-
+
return true;
}
@@ -866,19 +866,19 @@ Rectangle AquaSalMenu::GetMenuBarButtonRectPixel( USHORT i_nItemId, SalFrame* i_
{
if( GetSalData()->mnSystemVersion < VER_LEOPARD )
return Rectangle( Point( -1, -1 ), Size( 1, 1 ) );
-
+
if( ! i_pReferenceFrame || ! AquaSalFrame::isAlive( static_cast<AquaSalFrame*>(i_pReferenceFrame) ) )
return Rectangle();
-
+
MenuBarButtonEntry* pEntry = findButtonItem( i_nItemId );
-
+
if( ! pEntry )
return Rectangle();
-
+
NSStatusItem* pItem = SalData::getStatusItem();
if( ! pItem )
return Rectangle();
-
+
NSView* pView = [pItem view];
if( ! pView )
return Rectangle();
@@ -888,18 +888,18 @@ Rectangle AquaSalMenu::GetMenuBarButtonRectPixel( USHORT i_nItemId, SalFrame* i_
NSRect aRect = [pWin frame];
aRect.origin = [pWin convertBaseToScreen: NSMakePoint( 0, 0 )];
-
+
// make coordinates relative to reference frame
static_cast<AquaSalFrame*>(i_pReferenceFrame)->CocoaToVCL( aRect.origin );
aRect.origin.x -= i_pReferenceFrame->maGeometry.nX;
aRect.origin.y -= i_pReferenceFrame->maGeometry.nY + aRect.size.height;
-
- return Rectangle( Point(static_cast<long int>(aRect.origin.x),
+
+ return Rectangle( Point(static_cast<long int>(aRect.origin.x),
static_cast<long int>(aRect.origin.y)
- ),
+ ),
Size( static_cast<long int>(aRect.size.width),
static_cast<long int>(aRect.size.height)
- )
+ )
);
}
diff --git a/vcl/aqua/source/window/salobj.cxx b/vcl/aqua/source/window/salobj.cxx
index 23df35581ecb..ef8d59f391a3 100644
--- a/vcl/aqua/source/window/salobj.cxx
+++ b/vcl/aqua/source/window/salobj.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ AquaSalObject::AquaSalObject( AquaSalFrame* pFrame ) :
{
maSysData.nSize = sizeof( maSysData );
maSysData.pView = NULL;
-
+
NSRect aInitFrame = { { 0, 0 }, { 20, 20 } };
mpClipView = [[NSClipView alloc] initWithFrame: aInitFrame ];
if( mpClipView )
@@ -91,7 +91,7 @@ AquaSalObject::~AquaSalObject()
similar effect to non-rectangular windows is achieved by using a
non-opaque window and not painting where one wants the background
to shine through.
-
+
With respect to SalObject this leaves us to having an NSClipView
containing the child view. Even a QTMovieView respects the boundaries of
that, which gives us a clip "region" consisting of one rectangle.
@@ -179,7 +179,7 @@ void AquaSalObject::setClippedPosSize()
NSView *pView = maSysData.pView;
[pView setFrame: aViewRect];
}
-
+
NSRect aClipViewRect = { { mnX, mnY }, { mnWidth, mnHeight } };
NSPoint aClipPt = { 0, 0 };
if( mbClip )
@@ -192,10 +192,10 @@ void AquaSalObject::setClippedPosSize()
if( mnClipY == 0 )
aClipPt.y = mnHeight - mnClipHeight;;
}
-
+
mpFrame->VCLToCocoa( aClipViewRect, false );
[mpClipView setFrame: aClipViewRect];
-
+
[mpClipView scrollToPoint: aClipPt];
}
diff --git a/vcl/inc/cupsmgr.hxx b/vcl/inc/cupsmgr.hxx
index 4a9f25ee7317..e7b835e9870e 100644
--- a/vcl/inc/cupsmgr.hxx
+++ b/vcl/inc/cupsmgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,23 +48,23 @@ struct FPtrHash
class CUPSManager : public PrinterInfoManager
{
- CUPSWrapper* m_pCUPSWrapper;
- std::hash_map< FILE*, rtl::OString, FPtrHash > m_aSpoolFiles;
- int m_nDests;
- void* m_pDests;
- bool m_bNewDests;
- std::hash_map< rtl::OUString, int, rtl::OUStringHash > m_aCUPSDestMap;
+ CUPSWrapper* m_pCUPSWrapper;
+ std::hash_map< FILE*, rtl::OString, FPtrHash > m_aSpoolFiles;
+ int m_nDests;
+ void* m_pDests;
+ bool m_bNewDests;
+ std::hash_map< rtl::OUString, int, rtl::OUStringHash > m_aCUPSDestMap;
std::hash_map< rtl::OUString, PPDContext, rtl::OUStringHash > m_aDefaultContexts;
- rtl::OString m_aUser;
+ rtl::OString m_aUser;
// this is a security risk, but the CUPS API demands
// to deliver a pointer to a static buffer containing
// the password, so this cannot be helped
- rtl::OString m_aPassword;
+ rtl::OString m_aPassword;
- osl::Mutex m_aCUPSMutex;
- oslThread m_aDestThread;
+ osl::Mutex m_aCUPSMutex;
+ oslThread m_aDestThread;
CUPSManager( CUPSWrapper* );
virtual ~CUPSManager();
@@ -76,7 +76,7 @@ class CUPSManager : public PrinterInfoManager
public:
// public for stub
static void runDestThread(void* pMgr);
-
+
static CUPSManager* tryLoadCUPS();
const PPDParser* createCUPSParser( const rtl::OUString& rPrinter );
@@ -100,7 +100,7 @@ public:
virtual bool removePrinter( const rtl::OUString& rPrinterName, bool bCheckOnly = false );
virtual bool writePrinterConfig();
virtual bool setDefaultPrinter( const rtl::OUString& rPrinterName );
-
+
virtual bool addOrRemovePossible() const;
};
diff --git a/vcl/inc/list.h b/vcl/inc/list.h
index 78c7edce2839..224bfe784514 100644
--- a/vcl/inc/list.h
+++ b/vcl/inc/list.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ extern "C"
typedef struct _list *list;
typedef void (*list_destructor)(void *);
-
+
/*- constructors and a destructor */
list listNewEmpty(void);
#ifdef TEST
diff --git a/vcl/inc/pch/precompiled_vcl.cxx b/vcl/inc/pch/precompiled_vcl.cxx
index 66c95bc3b2e1..dfebb860dd7f 100644
--- a/vcl/inc/pch/precompiled_vcl.cxx
+++ b/vcl/inc/pch/precompiled_vcl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/pch/precompiled_vcl.hxx b/vcl/inc/pch/precompiled_vcl.hxx
index c07523757071..7b713cdbf9e8 100644
--- a/vcl/inc/pch/precompiled_vcl.hxx
+++ b/vcl/inc/pch/precompiled_vcl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/sft.hxx b/vcl/inc/sft.hxx
index 8e18a2d539e1..85e6faf0e87b 100644
--- a/vcl/inc/sft.hxx
+++ b/vcl/inc/sft.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@
* C3 - CRC-32 of the array of encoding numbers used to generate the subset
*
*/
-
+
#ifndef __SUBFONT_H
#define __SUBFONT_H
@@ -73,7 +73,7 @@
namespace vcl
{
-
+
/*@{*/
typedef sal_Int16 F2Dot14; /**< fixed: 2.14 */
typedef sal_Int32 F16Dot16; /**< fixed: 16.16 */
@@ -166,8 +166,8 @@ namespace vcl
};
#endif
-
-
+
+
/** Structure used by GetTTSimpleGlyphMetrics() and GetTTSimpleCharMetrics() functions */
typedef struct {
@@ -208,11 +208,11 @@ namespace vcl
typedef struct {
char *family; /**< family name */
- sal_uInt16 *ufamily; /**< family name UCS2 */
+ sal_uInt16 *ufamily; /**< family name UCS2 */
char *subfamily; /**< subfamily name */
sal_uInt16 *usubfamily; /**< subfamily name UCS2 */
char *psname; /**< PostScript name */
- sal_uInt16 macStyle; /**< macstyle bits from 'HEAD' table */
+ sal_uInt16 macStyle; /**< macstyle bits from 'HEAD' table */
int weight; /**< value of WeightClass or 0 if can't be determined */
int width; /**< value of WidthClass or 0 if can't be determined */
int pitch; /**< 0: proportianal font, otherwise: monospaced */
@@ -280,7 +280,7 @@ namespace vcl
/**
- * TrueTypeFont constructor.
+ * TrueTypeFont constructor.
* The font file has to be provided as a memory buffer and length
* @param facenum - logical font number within a TTC file. This value is ignored
* for TrueType fonts
@@ -290,7 +290,7 @@ namespace vcl
int OpenTTFontBuffer(void* pBuffer, sal_uInt32 nLen, sal_uInt32 facenum, TrueTypeFont** ttf); /*FOLD01*/
#if !defined(WIN32) && !defined(OS2)
/**
- * TrueTypeFont constructor.
+ * TrueTypeFont constructor.
* Reads the font file and allocates the memory for the structure.
* on WIN32 the font has to be provided as a memory buffer and length
* @param facenum - logical font number within a TTC file. This value is ignored
@@ -561,23 +561,23 @@ namespace vcl
* Returns nonzero if font is a symbol encoded font
*/
int CheckSymbolEncoding(TrueTypeFont* ttf);
-
+
/**
* returns the number of glyphs in a font
*/
int GetTTGlyphCount( TrueTypeFont* ttf );
-
+
/**
* provide access to the raw data of a SFNT-container's subtable
*/
bool GetSfntTable( TrueTypeFont* ttf, int nSubtableIndex,
const sal_uInt8** ppRawBytes, int* pRawLength );
-
+
/*- private definitions */ /*FOLD00*/
struct _TrueTypeFont {
sal_uInt32 tag;
-
+
char *fname;
sal_Int32 fsize;
sal_uInt8 *ptr;
diff --git a/vcl/inc/vcl/ImageListProvider.hxx b/vcl/inc/vcl/ImageListProvider.hxx
index 7fc678b485fd..79f90659ebaa 100644
--- a/vcl/inc/vcl/ImageListProvider.hxx
+++ b/vcl/inc/vcl/ImageListProvider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/abstdlg.hxx b/vcl/inc/vcl/abstdlg.hxx
index 3e2ef6554079..ab5ee9f44d88 100644
--- a/vcl/inc/vcl/abstdlg.hxx
+++ b/vcl/inc/vcl/abstdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,9 +41,9 @@ class Link;
class VCL_DLLPUBLIC VclAbstractDialog
{
public:
- virtual short Execute() = 0;
- //virtual void Show( BOOL bVisible = TRUE, USHORT nFlags = 0 ) = 0;
- virtual ~VclAbstractDialog();
+ virtual short Execute() = 0;
+ //virtual void Show( BOOL bVisible = TRUE, USHORT nFlags = 0 ) = 0;
+ virtual ~VclAbstractDialog();
};
class VCL_DLLPUBLIC VclAbstractDialog2
@@ -57,7 +57,7 @@ public:
class VCL_DLLPUBLIC VclAbstractTerminatedDialog : public VclAbstractDialog
{
public:
- virtual void EndDialog(long nResult =0) = 0;
+ virtual void EndDialog(long nResult =0) = 0;
};
class VCL_DLLPUBLIC VclAbstractRefreshableDialog : public VclAbstractDialog
@@ -80,13 +80,13 @@ public:
class VCL_DLLPUBLIC VclAbstractDialogFactory
{
public:
- virtual ~VclAbstractDialogFactory(); // needed for export of vtable
- static VclAbstractDialogFactory* Create();
+ virtual ~VclAbstractDialogFactory(); // needed for export of vtable
+ static VclAbstractDialogFactory* Create();
// nDialogId was previously a ResId without ResMgr; the ResourceId is now
// an implementation detail of the factory
- virtual VclAbstractDialog* CreateVclDialog( Window* pParent, sal_uInt32 nResId ) = 0;
-
- // creates instance of PasswordToOpenModifyDialog from cui
+ virtual VclAbstractDialog* CreateVclDialog( Window* pParent, sal_uInt32 nResId ) = 0;
+
+ // creates instance of PasswordToOpenModifyDialog from cui
virtual AbstractPasswordToOpenModifyDialog * CreatePasswordToOpenModifyDialog( Window * pParent, sal_uInt16 nMinPasswdLen, sal_uInt16 nMaxPasswdLen, bool bIsPasswordToModify ) = 0;
};
diff --git a/vcl/inc/vcl/accel.h b/vcl/inc/vcl/accel.h
index aec7e7c1bbd2..86ce9835c5e1 100644
--- a/vcl/inc/vcl/accel.h
+++ b/vcl/inc/vcl/accel.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,11 +43,11 @@ class Accelerator;
class ImplAccelEntry
{
public:
- USHORT mnId;
- KeyCode maKeyCode;
- Accelerator* mpAccel;
- Accelerator* mpAutoAccel;
- BOOL mbEnabled;
+ USHORT mnId;
+ KeyCode maKeyCode;
+ Accelerator* mpAccel;
+ Accelerator* mpAutoAccel;
+ BOOL mbEnabled;
};
// -----------------
@@ -57,6 +57,6 @@ public:
// in KEYCOD.CXX
void ImplGetKeyCode( KeyFuncType eFunc, USHORT& rCode1, USHORT& rCode2, USHORT& rCode3, USHORT& rCode4 );
-#endif // _SV_ACCEL_H
+#endif // _SV_ACCEL_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/accel.hxx b/vcl/inc/vcl/accel.hxx
index 8c5ee6dfeb68..7973bb0608f1 100644
--- a/vcl/inc/vcl/accel.hxx
+++ b/vcl/inc/vcl/accel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,18 +47,18 @@ class VCL_DLLPUBLIC Accelerator : public Resource
friend class ImplAccelManager;
private:
- ImplAccelData* mpData;
- XubString maHelpStr;
- Link maActivateHdl;
- Link maDeactivateHdl;
- Link maSelectHdl;
+ ImplAccelData* mpData;
+ XubString maHelpStr;
+ Link maActivateHdl;
+ Link maDeactivateHdl;
+ Link maSelectHdl;
// Werden vom AcceleratorManager gesetzt
- KeyCode maCurKeyCode;
- USHORT mnCurId;
- USHORT mnCurRepeat;
- BOOL mbIsCancel;
- BOOL* mpDel;
+ KeyCode maCurKeyCode;
+ USHORT mnCurId;
+ USHORT mnCurRepeat;
+ BOOL mbIsCancel;
+ BOOL* mpDel;
SAL_DLLPRIVATE void ImplInit();
SAL_DLLPRIVATE void ImplCopyData( ImplAccelData& rAccelData );
@@ -75,55 +75,55 @@ public:
Accelerator();
Accelerator( const Accelerator& rAccel );
Accelerator( const ResId& rResId );
- virtual ~Accelerator();
-
- virtual void Activate();
- virtual void Deactivate();
- virtual void Select();
-
- void InsertItem( USHORT nItemId, const KeyCode& rKeyCode );
- void InsertItem( const ResId& rResId );
- void RemoveItem( USHORT nItemId );
- void RemoveItem( const KeyCode rKeyCode );
- void Clear();
-
- USHORT GetCurItemId() const { return mnCurId; }
- const KeyCode& GetCurKeyCode() const { return maCurKeyCode; }
- USHORT GetCurRepeat() const { return mnCurRepeat; }
- BOOL IsCancel() const { return mbIsCancel; }
-
- USHORT GetItemCount() const;
- USHORT GetItemId( USHORT nPos ) const;
- KeyCode GetItemKeyCode( USHORT nPos ) const;
- USHORT GetItemId( const KeyCode& rKeyCode ) const;
- KeyCode GetKeyCode( USHORT nItemId ) const;
- BOOL IsIdValid( USHORT nItemId ) const;
- BOOL IsKeyCodeValid( const KeyCode rKeyCode ) const;
- BOOL Call( const KeyCode& rKeyCode, USHORT nRepeat = 0 );
-
- void SetAccel( USHORT nItemId, Accelerator* pAccel );
- Accelerator* GetAccel( USHORT nItemId ) const;
- void SetAccel( const KeyCode rKeyCode, Accelerator* pAccel );
- Accelerator* GetAccel( const KeyCode rKeyCode ) const;
-
- void EnableItem( USHORT nItemId, BOOL bEnable = TRUE );
- BOOL IsItemEnabled( USHORT nItemId ) const;
- void EnableItem( const KeyCode rKeyCode, BOOL bEnable = TRUE );
- BOOL IsItemEnabled( const KeyCode rKeyCode ) const;
-
- void SetHelpText( const XubString& rHelpText ) { maHelpStr = rHelpText; }
+ virtual ~Accelerator();
+
+ virtual void Activate();
+ virtual void Deactivate();
+ virtual void Select();
+
+ void InsertItem( USHORT nItemId, const KeyCode& rKeyCode );
+ void InsertItem( const ResId& rResId );
+ void RemoveItem( USHORT nItemId );
+ void RemoveItem( const KeyCode rKeyCode );
+ void Clear();
+
+ USHORT GetCurItemId() const { return mnCurId; }
+ const KeyCode& GetCurKeyCode() const { return maCurKeyCode; }
+ USHORT GetCurRepeat() const { return mnCurRepeat; }
+ BOOL IsCancel() const { return mbIsCancel; }
+
+ USHORT GetItemCount() const;
+ USHORT GetItemId( USHORT nPos ) const;
+ KeyCode GetItemKeyCode( USHORT nPos ) const;
+ USHORT GetItemId( const KeyCode& rKeyCode ) const;
+ KeyCode GetKeyCode( USHORT nItemId ) const;
+ BOOL IsIdValid( USHORT nItemId ) const;
+ BOOL IsKeyCodeValid( const KeyCode rKeyCode ) const;
+ BOOL Call( const KeyCode& rKeyCode, USHORT nRepeat = 0 );
+
+ void SetAccel( USHORT nItemId, Accelerator* pAccel );
+ Accelerator* GetAccel( USHORT nItemId ) const;
+ void SetAccel( const KeyCode rKeyCode, Accelerator* pAccel );
+ Accelerator* GetAccel( const KeyCode rKeyCode ) const;
+
+ void EnableItem( USHORT nItemId, BOOL bEnable = TRUE );
+ BOOL IsItemEnabled( USHORT nItemId ) const;
+ void EnableItem( const KeyCode rKeyCode, BOOL bEnable = TRUE );
+ BOOL IsItemEnabled( const KeyCode rKeyCode ) const;
+
+ void SetHelpText( const XubString& rHelpText ) { maHelpStr = rHelpText; }
const XubString& GetHelpText() const { return maHelpStr; }
- void SetActivateHdl( const Link& rLink ) { maActivateHdl = rLink; }
- const Link& GetActivateHdl() const { return maActivateHdl; }
- void SetDeactivateHdl( const Link& rLink ) { maDeactivateHdl = rLink; }
- const Link& GetDeactivateHdl() const { return maDeactivateHdl; }
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetActivateHdl( const Link& rLink ) { maActivateHdl = rLink; }
+ const Link& GetActivateHdl() const { return maActivateHdl; }
+ void SetDeactivateHdl( const Link& rLink ) { maDeactivateHdl = rLink; }
+ const Link& GetDeactivateHdl() const { return maDeactivateHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
- Accelerator& operator=( const Accelerator& rAccel );
+ Accelerator& operator=( const Accelerator& rAccel );
};
-#endif // _SV_ACCEL_HXX
+#endif // _SV_ACCEL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/accmgr.hxx b/vcl/inc/vcl/accmgr.hxx
index cafbd5750b57..e36201420589 100644
--- a/vcl/inc/vcl/accmgr.hxx
+++ b/vcl/inc/vcl/accmgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/alpha.hxx b/vcl/inc/vcl/alpha.hxx
index a31e68832ba1..9d4647fee9dd 100644
--- a/vcl/inc/vcl/alpha.hxx
+++ b/vcl/inc/vcl/alpha.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,25 +58,25 @@ public:
AlphaMask( const Size& rSizePixel, BYTE* pEraseTransparency = NULL );
~AlphaMask();
- AlphaMask& operator=( const Bitmap& rBitmap );
- AlphaMask& operator=( const AlphaMask& rAlphaMask ) { return (AlphaMask&) Bitmap::operator=( rAlphaMask ); }
- BOOL operator!() const { return Bitmap::operator!(); }
- BOOL operator==( const AlphaMask& rAlphaMask ) const { return Bitmap::operator==( rAlphaMask ); }
- BOOL operator!=( const AlphaMask& rAlphaMask ) const { return Bitmap::operator!=( rAlphaMask ); }
+ AlphaMask& operator=( const Bitmap& rBitmap );
+ AlphaMask& operator=( const AlphaMask& rAlphaMask ) { return (AlphaMask&) Bitmap::operator=( rAlphaMask ); }
+ BOOL operator!() const { return Bitmap::operator!(); }
+ BOOL operator==( const AlphaMask& rAlphaMask ) const { return Bitmap::operator==( rAlphaMask ); }
+ BOOL operator!=( const AlphaMask& rAlphaMask ) const { return Bitmap::operator!=( rAlphaMask ); }
- const MapMode& GetPrefMapMode() const { return Bitmap::GetPrefMapMode(); }
- void SetPrefMapMode( const MapMode& rMapMode ) { Bitmap::SetPrefMapMode( rMapMode ); }
+ const MapMode& GetPrefMapMode() const { return Bitmap::GetPrefMapMode(); }
+ void SetPrefMapMode( const MapMode& rMapMode ) { Bitmap::SetPrefMapMode( rMapMode ); }
- const Size& GetPrefSize() const { return Bitmap::GetPrefSize(); }
- void SetPrefSize( const Size& rSize ) { Bitmap::SetPrefSize( rSize ); }
+ const Size& GetPrefSize() const { return Bitmap::GetPrefSize(); }
+ void SetPrefSize( const Size& rSize ) { Bitmap::SetPrefSize( rSize ); }
- Size GetSizePixel() const { return Bitmap::GetSizePixel(); }
- void SetSizePixel( const Size& rNewSize ) { Bitmap::SetSizePixel( rNewSize ); }
+ Size GetSizePixel() const { return Bitmap::GetSizePixel(); }
+ void SetSizePixel( const Size& rNewSize ) { Bitmap::SetSizePixel( rNewSize ); }
- ULONG GetSizeBytes() const { return Bitmap::GetSizeBytes(); }
- ULONG GetChecksum() const { return Bitmap::GetChecksum(); }
+ ULONG GetSizeBytes() const { return Bitmap::GetSizeBytes(); }
+ ULONG GetChecksum() const { return Bitmap::GetChecksum(); }
- Bitmap GetBitmap() const;
+ Bitmap GetBitmap() const;
public:
@@ -96,14 +96,14 @@ public:
public:
- BitmapReadAccess* AcquireReadAccess() { return Bitmap::AcquireReadAccess(); }
- BitmapWriteAccess* AcquireWriteAccess() { return Bitmap::AcquireWriteAccess(); }
- void ReleaseAccess( BitmapReadAccess* pAccess );
+ BitmapReadAccess* AcquireReadAccess() { return Bitmap::AcquireReadAccess(); }
+ BitmapWriteAccess* AcquireWriteAccess() { return Bitmap::AcquireWriteAccess(); }
+ void ReleaseAccess( BitmapReadAccess* pAccess );
public:
- BOOL Read( SvStream& rIStm, BOOL bFileHeader = TRUE ) { return Bitmap::Read( rIStm, bFileHeader ); }
- BOOL Write( SvStream& rOStm, BOOL bCompressed = TRUE, BOOL bFileHeader = TRUE ) const { return Bitmap::Write( rOStm, bCompressed, bFileHeader ); }
+ BOOL Read( SvStream& rIStm, BOOL bFileHeader = TRUE ) { return Bitmap::Read( rIStm, bFileHeader ); }
+ BOOL Write( SvStream& rOStm, BOOL bCompressed = TRUE, BOOL bFileHeader = TRUE ) const { return Bitmap::Write( rOStm, bCompressed, bFileHeader ); }
friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const BitmapEx& rBitmapEx );
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, BitmapEx& rBitmapEx );
diff --git a/vcl/inc/vcl/animate.hxx b/vcl/inc/vcl/animate.hxx
index 5a9b1b6dfc4f..b7b816c2b822 100644
--- a/vcl/inc/vcl/animate.hxx
+++ b/vcl/inc/vcl/animate.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ enum Disposal
DISPOSE_NOT,
DISPOSE_BACK,
DISPOSE_FULL,
- DISPOSE_PREVIOUS
+ DISPOSE_PREVIOUS
};
enum CycleMode
@@ -66,25 +66,25 @@ enum CycleMode
struct VCL_DLLPUBLIC AnimationBitmap
{
- BitmapEx aBmpEx;
- Point aPosPix;
- Size aSizePix;
- long nWait;
- Disposal eDisposal;
- BOOL bUserInput;
+ BitmapEx aBmpEx;
+ Point aPosPix;
+ Size aSizePix;
+ long nWait;
+ Disposal eDisposal;
+ BOOL bUserInput;
AnimationBitmap() {}
AnimationBitmap( const BitmapEx& rBmpEx, const Point& rPosPix,
const Size& rSizePix, long _nWait = 0L,
Disposal _eDisposal = DISPOSE_NOT ) :
- aBmpEx ( rBmpEx ),
- aPosPix ( rPosPix ),
- aSizePix ( rSizePix ),
- nWait ( _nWait ),
- eDisposal ( _eDisposal ),
- bUserInput ( FALSE ) {}
-
- BOOL operator==( const AnimationBitmap& rAnimBmp ) const
+ aBmpEx ( rBmpEx ),
+ aPosPix ( rPosPix ),
+ aSizePix ( rSizePix ),
+ nWait ( _nWait ),
+ eDisposal ( _eDisposal ),
+ bUserInput ( FALSE ) {}
+
+ BOOL operator==( const AnimationBitmap& rAnimBmp ) const
{
return( rAnimBmp.aBmpEx == aBmpEx &&
rAnimBmp.aPosPix == aPosPix &&
@@ -94,9 +94,9 @@ struct VCL_DLLPUBLIC AnimationBitmap
rAnimBmp.bUserInput == bUserInput );
}
- BOOL operator!=( const AnimationBitmap& rAnimBmp ) const { return !( *this == rAnimBmp ); }
+ BOOL operator!=( const AnimationBitmap& rAnimBmp ) const { return !( *this == rAnimBmp ); }
- BOOL IsEqual( const AnimationBitmap& rAnimBmp ) const
+ BOOL IsEqual( const AnimationBitmap& rAnimBmp ) const
{
return( rAnimBmp.aPosPix == aPosPix &&
rAnimBmp.aSizePix == aSizePix &&
@@ -106,7 +106,7 @@ struct VCL_DLLPUBLIC AnimationBitmap
rAnimBmp.aBmpEx.IsEqual( aBmpEx ) );
}
- ULONG GetChecksum() const;
+ ULONG GetChecksum() const;
};
// -------------------
@@ -115,21 +115,21 @@ struct VCL_DLLPUBLIC AnimationBitmap
struct AInfo
{
- Bitmap aLastSaveBitmap;
- Bitmap aBackBitmap;
- Rectangle aClipRect;
- Size aLastSaveSize;
- Point aLastSavePoint;
- Point aStartOrg;
- Size aStartSize;
- OutputDevice* pOutDev;
- void* pViewData;
- long nExtraData;
- BOOL bWithSize;
- BOOL bPause;
-
- AInfo() : pOutDev( NULL ),
- pViewData( NULL ),
+ Bitmap aLastSaveBitmap;
+ Bitmap aBackBitmap;
+ Rectangle aClipRect;
+ Size aLastSaveSize;
+ Point aLastSavePoint;
+ Point aStartOrg;
+ Size aStartSize;
+ OutputDevice* pOutDev;
+ void* pViewData;
+ long nExtraData;
+ BOOL bWithSize;
+ BOOL bPause;
+
+ AInfo() : pOutDev( NULL ),
+ pViewData( NULL ),
nExtraData( 0L ),
bWithSize( FALSE ),
bPause( FALSE ) {}
@@ -141,26 +141,26 @@ struct AInfo
class VCL_DLLPUBLIC Animation
{
- SAL_DLLPRIVATE static ULONG mnAnimCount;
-
- List maList;
- List maAInfoList;
- Link maNotifyLink;
- BitmapEx maBitmapEx;
- Timer maTimer;
- Size maGlobalSize;
- List* mpViewList;
- void* mpExtraData;
- long mnLoopCount;
- long mnLoops;
- long mnPos;
- Disposal meLastDisposal;
- CycleMode meCycleMode;
- BOOL mbFirst;
- BOOL mbIsInAnimation;
- BOOL mbWithSize;
- BOOL mbLoopTerminated;
- BOOL mbIsWaiting;
+ SAL_DLLPRIVATE static ULONG mnAnimCount;
+
+ List maList;
+ List maAInfoList;
+ Link maNotifyLink;
+ BitmapEx maBitmapEx;
+ Timer maTimer;
+ Size maGlobalSize;
+ List* mpViewList;
+ void* mpExtraData;
+ long mnLoopCount;
+ long mnLoops;
+ long mnPos;
+ Disposal meLastDisposal;
+ CycleMode meCycleMode;
+ BOOL mbFirst;
+ BOOL mbIsInAnimation;
+ BOOL mbWithSize;
+ BOOL mbLoopTerminated;
+ BOOL mbIsWaiting;
SAL_DLLPRIVATE void ImplRestartTimer( ULONG nTimeout );
@@ -173,81 +173,81 @@ public:
SAL_DLLPRIVATE ULONG ImplGetCurPos() const { return mnPos; }
-public:
+public:
Animation();
Animation( const Animation& rAnimation );
~Animation();
- Animation& operator=( const Animation& rAnimation );
- BOOL operator==( const Animation& rAnimation ) const;
- BOOL operator!=( const Animation& rAnimation ) const { return !(*this==rAnimation); }
+ Animation& operator=( const Animation& rAnimation );
+ BOOL operator==( const Animation& rAnimation ) const;
+ BOOL operator!=( const Animation& rAnimation ) const { return !(*this==rAnimation); }
- BOOL IsEqual( const Animation& rAnimation ) const;
+ BOOL IsEqual( const Animation& rAnimation ) const;
- BOOL IsEmpty() const;
- void SetEmpty();
+ BOOL IsEmpty() const;
+ void SetEmpty();
- void Clear();
+ void Clear();
- BOOL Start( OutputDevice* pOutDev, const Point& rDestPt, long nExtraData = 0,
+ BOOL Start( OutputDevice* pOutDev, const Point& rDestPt, long nExtraData = 0,
OutputDevice* pFirstFrameOutDev = NULL );
- BOOL Start( OutputDevice* pOutDev, const Point& rDestPt, const Size& rDestSz, long nExtraData = 0,
+ BOOL Start( OutputDevice* pOutDev, const Point& rDestPt, const Size& rDestSz, long nExtraData = 0,
OutputDevice* pFirstFrameOutDev = NULL );
- void Stop( OutputDevice* pOutDev = NULL, long nExtraData = 0 );
+ void Stop( OutputDevice* pOutDev = NULL, long nExtraData = 0 );
- void Draw( OutputDevice* pOutDev, const Point& rDestPt ) const;
- void Draw( OutputDevice* pOutDev, const Point& rDestPt, const Size& rDestSz ) const;
+ void Draw( OutputDevice* pOutDev, const Point& rDestPt ) const;
+ void Draw( OutputDevice* pOutDev, const Point& rDestPt, const Size& rDestSz ) const;
- BOOL IsInAnimation() const { return mbIsInAnimation; }
- BOOL IsTransparent() const;
- BOOL IsTerminated() const { return mbLoopTerminated; }
+ BOOL IsInAnimation() const { return mbIsInAnimation; }
+ BOOL IsTransparent() const;
+ BOOL IsTerminated() const { return mbLoopTerminated; }
- const Size& GetDisplaySizePixel() const { return maGlobalSize; }
- void SetDisplaySizePixel( const Size& rSize ) { maGlobalSize = rSize; }
+ const Size& GetDisplaySizePixel() const { return maGlobalSize; }
+ void SetDisplaySizePixel( const Size& rSize ) { maGlobalSize = rSize; }
- const BitmapEx& GetBitmapEx() const { return maBitmapEx; }
- void SetBitmapEx( const BitmapEx& rBmpEx ) { maBitmapEx = rBmpEx; }
+ const BitmapEx& GetBitmapEx() const { return maBitmapEx; }
+ void SetBitmapEx( const BitmapEx& rBmpEx ) { maBitmapEx = rBmpEx; }
- ULONG GetLoopCount() const { return mnLoopCount; }
- void SetLoopCount( const ULONG nLoopCount );
- void ResetLoopCount();
+ ULONG GetLoopCount() const { return mnLoopCount; }
+ void SetLoopCount( const ULONG nLoopCount );
+ void ResetLoopCount();
- void SetCycleMode( CycleMode eMode );
- CycleMode GetCycleMode() const { return meCycleMode; }
+ void SetCycleMode( CycleMode eMode );
+ CycleMode GetCycleMode() const { return meCycleMode; }
- void SetNotifyHdl( const Link& rLink ) { maNotifyLink = rLink; }
- const Link& GetNotifyHdl() const { return maNotifyLink; }
+ void SetNotifyHdl( const Link& rLink ) { maNotifyLink = rLink; }
+ const Link& GetNotifyHdl() const { return maNotifyLink; }
- USHORT Count() const { return (USHORT) maList.Count(); }
- BOOL Insert( const AnimationBitmap& rAnimationBitmap );
- const AnimationBitmap& Get( USHORT nAnimation ) const;
- void Replace( const AnimationBitmap& rNewAnimationBmp, USHORT nAnimation );
+ USHORT Count() const { return (USHORT) maList.Count(); }
+ BOOL Insert( const AnimationBitmap& rAnimationBitmap );
+ const AnimationBitmap& Get( USHORT nAnimation ) const;
+ void Replace( const AnimationBitmap& rNewAnimationBmp, USHORT nAnimation );
- List* GetAInfoList() { return &maAInfoList; }
- ULONG GetSizeBytes() const;
- ULONG GetChecksum() const;
+ List* GetAInfoList() { return &maAInfoList; }
+ ULONG GetSizeBytes() const;
+ ULONG GetChecksum() const;
public:
- BOOL Convert( BmpConversion eConversion );
- BOOL ReduceColors( USHORT nNewColorCount,
+ BOOL Convert( BmpConversion eConversion );
+ BOOL ReduceColors( USHORT nNewColorCount,
BmpReduce eReduce = BMP_REDUCE_SIMPLE );
- BOOL Invert();
- BOOL Mirror( ULONG nMirrorFlags );
- BOOL Dither( ULONG nDitherFlags = BMP_DITHER_MATRIX );
- BOOL Adjust( short nLuminancePercent = 0,
+ BOOL Invert();
+ BOOL Mirror( ULONG nMirrorFlags );
+ BOOL Dither( ULONG nDitherFlags = BMP_DITHER_MATRIX );
+ BOOL Adjust( short nLuminancePercent = 0,
short nContrastPercent = 0,
- short nChannelRPercent = 0,
- short nChannelGPercent = 0,
+ short nChannelRPercent = 0,
+ short nChannelGPercent = 0,
short nChannelBPercent = 0,
double fGamma = 1.0,
BOOL bInvert = FALSE );
- BOOL Filter( BmpFilter eFilter,
+ BOOL Filter( BmpFilter eFilter,
const BmpFilterParam* pFilterParam = NULL,
const Link* pProgress = NULL );
- friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, Animation& rAnimation );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const Animation& rAnimation );
+ friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, Animation& rAnimation );
+ friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const Animation& rAnimation );
};
#endif // _SV_ANIMATE_HXX
diff --git a/vcl/inc/vcl/apptypes.hxx b/vcl/inc/vcl/apptypes.hxx
index eba7f779ee81..b2f17a34e8f1 100644
--- a/vcl/inc/vcl/apptypes.hxx
+++ b/vcl/inc/vcl/apptypes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/arrange.hxx b/vcl/inc/vcl/arrange.hxx
index 45433f4f351e..8cb5af4a77c3 100644
--- a/vcl/inc/vcl/arrange.hxx
+++ b/vcl/inc/vcl/arrange.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ namespace vcl
{}
void deleteChild() { m_pChild.reset(); }
-
+
sal_Int32 getExpandPriority() const;
Size getOptimalSize( WindowSizeType ) const;
bool isVisible() const;
@@ -101,11 +101,11 @@ namespace vcl
WindowArranger* m_pParentArranger;
Rectangle m_aManagedArea;
long m_nOuterBorder;
-
+
virtual Element* getElement( size_t i_nIndex ) = 0;
const Element* getConstElement( size_t i_nIndex ) const
{ return const_cast<WindowArranger*>(this)->getElement( i_nIndex ); }
-
+
public:
WindowArranger( WindowArranger* i_pParent = NULL )
@@ -125,7 +125,7 @@ namespace vcl
// be direct children of that window
// violating that condition will result in undefined behavior
virtual void setParentWindow( Window* );
-
+
virtual void setParent( WindowArranger* );
virtual size_t countElements() const = 0;
@@ -139,21 +139,21 @@ namespace vcl
const Element* pEle = getConstElement( i_nIndex );
return pEle ? pEle->m_pElement : NULL;
}
-
+
virtual bool isVisible() const; // true if any element is visible
-
+
sal_Int32 getExpandPriority( size_t i_nIndex ) const
{
const Element* pEle = getConstElement( i_nIndex );
return pEle ? pEle->getExpandPriority() : 0;
}
-
+
Size getMinimumSize( size_t i_nIndex ) const
{
const Element* pEle = getConstElement( i_nIndex );
return pEle ? pEle->m_aMinSize : Size();
}
-
+
bool setMinimumSize( size_t i_nIndex, const Size& i_rMinSize )
{
Element* pEle = getElement( i_nIndex );
@@ -173,7 +173,7 @@ namespace vcl
pEle->m_nBottomBorder = i_nBottom;
}
}
-
+
void show( bool i_bShow = true, bool i_bImmediateUpdate = true );
void setManagedArea( const Rectangle& i_rArea )
@@ -227,7 +227,7 @@ namespace vcl
size_t addChild( WindowArranger* i_pNewChild, sal_Int32 i_nExpandPrio = 0, size_t i_nIndex = ~0 )
{ return addChild( boost::shared_ptr<WindowArranger>( i_pNewChild ), i_nExpandPrio, i_nIndex ); }
void remove( boost::shared_ptr<WindowArranger> const & );
-
+
long getBorderWidth() const { return m_nBorderWidth; }
};
@@ -268,13 +268,13 @@ namespace vcl
void setElement( boost::shared_ptr<WindowArranger> const & );
void setLabelColumnWidth( long i_nWidth )
{ m_nLabelColumnWidth = i_nWidth; }
-
+
Size getLabelSize( WindowSizeType i_eType ) const
{ return m_aLabel.getOptimalSize( i_eType ); }
Size getElementSize( WindowSizeType i_eType ) const
{ return m_aElement.getOptimalSize( i_eType ); }
};
-
+
class LabelColumn : public RowOrColumn
{
long getLabelWidth() const;
@@ -283,10 +283,10 @@ namespace vcl
: RowOrColumn( i_pParent, true, i_nBorderWidth )
{}
virtual ~LabelColumn();
-
+
virtual Size getOptimalSize( WindowSizeType ) const;
virtual void resize();
-
+
// returns the index of the added label
size_t addRow( Window* i_pLabel, boost::shared_ptr<WindowArranger> const& i_rElement, long i_nIndent = 0 );
size_t addRow( Window* i_pLabel, Window* i_pElement, long i_nIndent = 0 );
@@ -325,7 +325,7 @@ namespace vcl
void setChild( WindowArranger* i_pChild, sal_Int32 i_nExpandPrio = 0 )
{ setChild( boost::shared_ptr<WindowArranger>( i_pChild ), i_nExpandPrio ); }
};
-
+
class Spacer : public WindowArranger
{
WindowArranger::Element m_aElement;
@@ -356,18 +356,18 @@ namespace vcl
{
long m_nBorderX;
long m_nBorderY;
-
+
struct MatrixElement : public WindowArranger::Element
{
sal_uInt32 m_nX;
sal_uInt32 m_nY;
-
+
MatrixElement()
: WindowArranger::Element()
, m_nX( 0 )
, m_nY( 0 )
{}
-
+
MatrixElement( Window* i_pWin,
sal_uInt32 i_nX, sal_uInt32 i_nY,
boost::shared_ptr<WindowArranger> const & i_pChild = boost::shared_ptr<WindowArranger>(),
@@ -382,7 +382,7 @@ namespace vcl
std::vector< MatrixElement > m_aElements;
std::map< sal_uInt64, size_t > m_aMatrixMap; // maps (x | (y << 32)) to index in m_aElements
-
+
sal_uInt64 getMap( sal_uInt32 i_nX, sal_uInt32 i_nY )
{ return static_cast< sal_uInt64 >(i_nX) | (static_cast< sal_uInt64>(i_nY) << 32 ); }
diff --git a/vcl/inc/vcl/bitmap.hxx b/vcl/inc/vcl/bitmap.hxx
index b84ed70db927..58195e9ae7dd 100644
--- a/vcl/inc/vcl/bitmap.hxx
+++ b/vcl/inc/vcl/bitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,35 +39,35 @@
// - Defines -
// -----------
-#define BMP_MIRROR_NONE 0x00000000UL
-#define BMP_MIRROR_HORZ 0x00000001UL
-#define BMP_MIRROR_VERT 0x00000002UL
+#define BMP_MIRROR_NONE 0x00000000UL
+#define BMP_MIRROR_HORZ 0x00000001UL
+#define BMP_MIRROR_VERT 0x00000002UL
// -----------------------------------------------------------------------------
-#define BMP_SCALE_NONE 0x00000000UL
-#define BMP_SCALE_FAST 0x00000001UL
-#define BMP_SCALE_INTERPOLATE 0x00000002UL
+#define BMP_SCALE_NONE 0x00000000UL
+#define BMP_SCALE_FAST 0x00000001UL
+#define BMP_SCALE_INTERPOLATE 0x00000002UL
// -----------------------------------------------------------------------------
-#define BMP_DITHER_NONE 0x00000000UL
-#define BMP_DITHER_MATRIX 0x00000001UL
-#define BMP_DITHER_FLOYD 0x00000002UL
-#define BMP_DITHER_FLOYD_16 0x00000004UL
+#define BMP_DITHER_NONE 0x00000000UL
+#define BMP_DITHER_MATRIX 0x00000001UL
+#define BMP_DITHER_FLOYD 0x00000002UL
+#define BMP_DITHER_FLOYD_16 0x00000004UL
// -----------------------------------------------------------------------------
-#define BMP_VECTORIZE_NONE BMP_VECTORIZE_OUTER
-#define BMP_VECTORIZE_INNER 0x00000001UL
-#define BMP_VECTORIZE_OUTER 0x00000002UL
-#define BMP_VECTORIZE_BOUND_ONLY 0x00000004UL
-#define BMP_VECTORIZE_REDUCE_EDGES 0x00000008UL
+#define BMP_VECTORIZE_NONE BMP_VECTORIZE_OUTER
+#define BMP_VECTORIZE_INNER 0x00000001UL
+#define BMP_VECTORIZE_OUTER 0x00000002UL
+#define BMP_VECTORIZE_BOUND_ONLY 0x00000004UL
+#define BMP_VECTORIZE_REDUCE_EDGES 0x00000008UL
// -----------------------------------------------------------------------------
-#define BMP_COL_TRANS Color( 252, 3, 251 )
-#define BMP_COLOR_MONOCHROME_THRESHOLD 128
+#define BMP_COL_TRANS Color( 252, 3, 251 )
+#define BMP_COLOR_MONOCHROME_THRESHOLD 128
// ---------
// - Enums -
@@ -164,9 +164,9 @@ class VCL_DLLPUBLIC BmpFilterParam
friend class Animation;
private:
- BmpFilter meFilter;
- ULONG mnProgressStart;
- ULONG mnProgressEnd;
+ BmpFilter meFilter;
+ ULONG mnProgressStart;
+ ULONG mnProgressEnd;
public:
struct MosaicTileSize
@@ -184,8 +184,8 @@ public:
private:
union
{
- USHORT mnSepiaPercent;
- BYTE mcSolarGreyThreshold;
+ USHORT mnSepiaPercent;
+ BYTE mcSolarGreyThreshold;
MosaicTileSize maMosaicTileSize;
EmbossAngles maEmbossAngles;
@@ -231,8 +231,8 @@ class Color;
class SvStream;
struct DIBInfoHeader;
class ResId;
-class GDIMetaFile;
-class AlphaMask;
+class GDIMetaFile;
+class AlphaMask;
class OutputDevice;
class SalBitmap;
@@ -288,25 +288,25 @@ public:
SAL_DLLPRIVATE BOOL ImplMakeGreyscales( USHORT nGreyscales );
SAL_DLLPRIVATE BOOL ImplConvertUp( USHORT nBitCount, Color* pExtColor = NULL );
SAL_DLLPRIVATE BOOL ImplConvertDown( USHORT nBitCount, Color* pExtColor = NULL );
- SAL_DLLPRIVATE BOOL ImplConvertGhosted();
- SAL_DLLPRIVATE BOOL ImplDitherMatrix();
- SAL_DLLPRIVATE BOOL ImplDitherFloyd();
- SAL_DLLPRIVATE BOOL ImplDitherFloyd16();
- SAL_DLLPRIVATE BOOL ImplReduceSimple( USHORT nColorCount );
- SAL_DLLPRIVATE BOOL ImplReducePopular( USHORT nColorCount );
- SAL_DLLPRIVATE BOOL ImplReduceMedian( USHORT nColorCount );
- SAL_DLLPRIVATE void ImplMedianCut( ULONG* pColBuf, BitmapPalette& rPal,
+ SAL_DLLPRIVATE BOOL ImplConvertGhosted();
+ SAL_DLLPRIVATE BOOL ImplDitherMatrix();
+ SAL_DLLPRIVATE BOOL ImplDitherFloyd();
+ SAL_DLLPRIVATE BOOL ImplDitherFloyd16();
+ SAL_DLLPRIVATE BOOL ImplReduceSimple( USHORT nColorCount );
+ SAL_DLLPRIVATE BOOL ImplReducePopular( USHORT nColorCount );
+ SAL_DLLPRIVATE BOOL ImplReduceMedian( USHORT nColorCount );
+ SAL_DLLPRIVATE void ImplMedianCut( ULONG* pColBuf, BitmapPalette& rPal,
long nR1, long nR2, long nG1, long nG2, long nB1, long nB2,
long nColors, long nPixels, long& rIndex );
- SAL_DLLPRIVATE BOOL ImplConvolute3( const long* pMatrix, long nDivisor,
+ SAL_DLLPRIVATE BOOL ImplConvolute3( const long* pMatrix, long nDivisor,
const BmpFilterParam* pFilterParam, const Link* pProgress );
- SAL_DLLPRIVATE BOOL ImplMedianFilter( const BmpFilterParam* pFilterParam, const Link* pProgress );
- SAL_DLLPRIVATE BOOL ImplSobelGrey( const BmpFilterParam* pFilterParam, const Link* pProgress );
- SAL_DLLPRIVATE BOOL ImplEmbossGrey( const BmpFilterParam* pFilterParam, const Link* pProgress );
- SAL_DLLPRIVATE BOOL ImplSolarize( const BmpFilterParam* pFilterParam, const Link* pProgress );
- SAL_DLLPRIVATE BOOL ImplSepia( const BmpFilterParam* pFilterParam, const Link* pProgress );
- SAL_DLLPRIVATE BOOL ImplMosaic( const BmpFilterParam* pFilterParam, const Link* pProgress );
- SAL_DLLPRIVATE BOOL ImplPopArt( const BmpFilterParam* pFilterParam, const Link* pProgress );
+ SAL_DLLPRIVATE BOOL ImplMedianFilter( const BmpFilterParam* pFilterParam, const Link* pProgress );
+ SAL_DLLPRIVATE BOOL ImplSobelGrey( const BmpFilterParam* pFilterParam, const Link* pProgress );
+ SAL_DLLPRIVATE BOOL ImplEmbossGrey( const BmpFilterParam* pFilterParam, const Link* pProgress );
+ SAL_DLLPRIVATE BOOL ImplSolarize( const BmpFilterParam* pFilterParam, const Link* pProgress );
+ SAL_DLLPRIVATE BOOL ImplSepia( const BmpFilterParam* pFilterParam, const Link* pProgress );
+ SAL_DLLPRIVATE BOOL ImplMosaic( const BmpFilterParam* pFilterParam, const Link* pProgress );
+ SAL_DLLPRIVATE BOOL ImplPopArt( const BmpFilterParam* pFilterParam, const Link* pProgress );
public:
@@ -322,11 +322,11 @@ public:
inline BOOL operator==( const Bitmap& rBitmap ) const;
inline BOOL operator!=( const Bitmap& rBitmap ) const;
- inline BOOL IsSameInstance( const Bitmap& rBmp ) const;
- BOOL IsEqual( const Bitmap& rBmp ) const;
+ inline BOOL IsSameInstance( const Bitmap& rBmp ) const;
+ BOOL IsEqual( const Bitmap& rBmp ) const;
- inline BOOL IsEmpty() const;
- void SetEmpty();
+ inline BOOL IsEmpty() const;
+ void SetEmpty();
inline const MapMode& GetPrefMapMode() const;
inline void SetPrefMapMode( const MapMode& rMapMode );
@@ -335,7 +335,7 @@ public:
inline void SetPrefSize( const Size& rSize );
Size GetSizePixel() const;
- void SetSizePixel( const Size& rNewSize );
+ void SetSizePixel( const Size& rNewSize );
/**
* The pixel size of a bitmap's source (e.g. an image file)
@@ -349,17 +349,17 @@ public:
USHORT GetBitCount() const;
inline ULONG GetColorCount() const;
inline ULONG GetSizeBytes() const;
- BOOL HasGreyPalette() const;
+ BOOL HasGreyPalette() const;
/** get system dependent bitmap data
-
+
@param rData
The system dependent BitmapSystemData structure to be filled
-
+
@return TRUE if the bitmap has a valid system object (e.g. not empty)
*/
bool GetSystemData( BitmapSystemData& rData ) const;
- ULONG GetChecksum() const;
+ ULONG GetChecksum() const;
Bitmap CreateDisplayBitmap( OutputDevice* pDisplay );
Bitmap GetColorTransformedBitmap( BmpColorMode eColorMode ) const;
@@ -390,7 +390,7 @@ public:
@return TRUE, if the color reduction operation was completed successfully.
*/
- BOOL ReduceColors( USHORT nNewColorCount,
+ BOOL ReduceColors( USHORT nNewColorCount,
BmpReduce eReduce = BMP_REDUCE_SIMPLE );
/** Apply a dither algorithm to the bitmap
@@ -405,7 +405,7 @@ public:
@param pDitherPal
A custom palette to be used when dithering (not yet implemented, leave NULL)
*/
- BOOL Dither( ULONG nDitherFlags = BMP_DITHER_MATRIX );
+ BOOL Dither( ULONG nDitherFlags = BMP_DITHER_MATRIX );
/** Crop the bitmap
@@ -425,7 +425,7 @@ public:
/** Expand the bitmap by pixel padding
- @param nDX
+ @param nDX
Number of pixel to pad at the right border of the bitmap
@param nDY
@@ -438,7 +438,7 @@ public:
not only returned when the operation failed, but also if
nothing had to be done, e.g. because nDX and nDY were zero.
*/
- BOOL Expand( ULONG nDX, ULONG nDY,
+ BOOL Expand( ULONG nDX, ULONG nDY,
const Color* pInitColor = NULL );
/** Copy a rectangular area from another bitmap
@@ -471,7 +471,7 @@ public:
@param rMask
The mask bitmap in the selected combine operation
-
+
@param eCombine
The combine operation to perform on the bitmap
@@ -496,8 +496,8 @@ public:
@return TRUE, if blending was successful, FALSE otherwise
*/
- BOOL Blend( const AlphaMask& rAlpha,
- const Color& rBackgroundColor );
+ BOOL Blend( const AlphaMask& rAlpha,
+ const Color& rBackgroundColor );
/** Fill the entire bitmap with the given color
@@ -513,13 +513,13 @@ public:
@return TRUE, if the operation was completed successfully.
*/
BOOL Invert();
-
+
/** Mirror the bitmap
@param nMirrorFlags
About which axis (horizontal, vertical, or both) to mirror
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
BOOL Mirror( ULONG nMirrorFlags );
@@ -531,7 +531,7 @@ public:
@param nScaleFlag
The algorithm to be used for scaling
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
BOOL Scale( const Size& rNewSize,
ULONG nScaleFlag = BMP_SCALE_FAST );
@@ -544,9 +544,9 @@ public:
@param rScaleY
The scale factor in y direction.
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Scale( const double& rScaleX, const double& rScaleY,
+ BOOL Scale( const double& rScaleX, const double& rScaleY,
ULONG nScaleFlag = BMP_SCALE_FAST );
/** Rotate bitmap by the specified angle
@@ -560,7 +560,7 @@ public:
in. The empty spaces around that rotated original bitmap are
then filled with this color.
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
BOOL Rotate( long nAngle10, const Color& rFillColor );
@@ -593,17 +593,17 @@ public:
@return the generated region.
*/
- Region CreateRegion( const Color& rColor, const Rectangle& rRect ) const;
+ Region CreateRegion( const Color& rColor, const Rectangle& rRect ) const;
/** Replace all pixel where the given mask is on with the specified color
@param rMask
Mask specifying which pixel should be replaced
-
+
@param rReplaceColor
Color to be placed in all changed pixel
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
BOOL Replace( const Bitmap& rMask, const Color& rReplaceColor );
@@ -611,11 +611,11 @@ public:
@param rAlpha
Alpha mask specifying the amount of background color to merge in
-
+
@param rMergeColor
Background color to be used for merging
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
BOOL Replace( const AlphaMask& rAlpha, const Color& rMergeColor );
@@ -623,7 +623,7 @@ public:
@param rSearchColor
Color specifying which pixel should be replaced
-
+
@param rReplaceColor
Color to be placed in all changed pixel
@@ -632,7 +632,7 @@ public:
rSearchColor and the individual pixel values, such that the
corresponding pixel is still regarded a match.
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
BOOL Replace( const Color& rSearchColor, const Color& rReplaceColor, ULONG nTol = 0 );
@@ -640,7 +640,7 @@ public:
@param pSearchColor
Array of colors specifying which pixel should be replaced
-
+
@param pReplaceColor
Array of colors to be placed in all changed pixel
@@ -652,12 +652,12 @@ public:
pSearchColor colors and the individual pixel values, such that
the corresponding pixel is still regarded a match.
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Replace( const Color* pSearchColors, const Color* rReplaceColors,
+ BOOL Replace( const Color* pSearchColors, const Color* rReplaceColors,
ULONG nColorCount, ULONG* pTols = NULL );
- /** Convert the bitmap to a PolyPolygon
+ /** Convert the bitmap to a PolyPolygon
This works by putting continuous areas of the same color into
a polygon, by tracing its bounding line.
@@ -672,9 +672,9 @@ public:
@param pProgress
A callback for showing the progress of the vectorization
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Vectorize( PolyPolygon& rPolyPoly,
+ BOOL Vectorize( PolyPolygon& rPolyPoly,
ULONG nFlags = BMP_VECTORIZE_OUTER,
const Link* pProgress = NULL );
@@ -697,9 +697,9 @@ public:
@param pProgress
A callback for showing the progress of the vectorization
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Vectorize( GDIMetaFile& rMtf, BYTE cReduce = 0,
+ BOOL Vectorize( GDIMetaFile& rMtf, BYTE cReduce = 0,
ULONG nFlags = BMP_VECTORIZE_INNER,
const Link* pProgress = NULL );
@@ -728,12 +728,12 @@ public:
@param bInvert
If TRUE, invert the channel values with the logical 'not' operator
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Adjust( short nLuminancePercent = 0,
+ BOOL Adjust( short nLuminancePercent = 0,
short nContrastPercent = 0,
- short nChannelRPercent = 0,
- short nChannelGPercent = 0,
+ short nChannelRPercent = 0,
+ short nChannelGPercent = 0,
short nChannelBPercent = 0,
double fGamma = 1.0,
BOOL bInvert = FALSE );
@@ -748,10 +748,10 @@ public:
@param pProgress
A callback for showing the progress of the vectorization
-
- @return TRUE, if the operation was completed successfully.
+
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Filter( BmpFilter eFilter,
+ BOOL Filter( BmpFilter eFilter,
const BmpFilterParam* pFilterParam = NULL,
const Link* pProgress = NULL );
@@ -801,7 +801,7 @@ inline BOOL Bitmap::IsSameInstance( const Bitmap& rBitmap ) const
// ------------------------------------------------------------------
-inline BOOL Bitmap::IsEmpty() const
+inline BOOL Bitmap::IsEmpty() const
{
return( mpImpBmp == NULL );
}
diff --git a/vcl/inc/vcl/bitmapex.hxx b/vcl/inc/vcl/bitmapex.hxx
index 15e38cf1c286..79cee2120378 100644
--- a/vcl/inc/vcl/bitmapex.hxx
+++ b/vcl/inc/vcl/bitmapex.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
enum TransparentType
{
- TRANSPARENT_NONE,
+ TRANSPARENT_NONE,
TRANSPARENT_COLOR,
TRANSPARENT_BITMAP
};
@@ -55,12 +55,12 @@ class VCL_DLLPUBLIC BitmapEx
private:
- Bitmap aBitmap;
- Bitmap aMask;
- Size aBitmapSize;
- Color aTransparentColor;
- TransparentType eTransparent;
- BOOL bAlpha;
+ Bitmap aBitmap;
+ Bitmap aMask;
+ Size aBitmapSize;
+ Color aTransparentColor;
+ TransparentType eTransparent;
+ BOOL bAlpha;
public:
@@ -80,51 +80,51 @@ public:
BitmapEx( const Bitmap& rBmp, const Color& rTransparentColor );
~BitmapEx();
- BitmapEx& operator=( const BitmapEx& rBitmapEx );
- BOOL operator==( const BitmapEx& rBitmapEx ) const;
- BOOL operator!=( const BitmapEx& rBitmapEx ) const { return !(*this==rBitmapEx); }
- BOOL operator!() const { return !aBitmap; }
+ BitmapEx& operator=( const BitmapEx& rBitmapEx );
+ BOOL operator==( const BitmapEx& rBitmapEx ) const;
+ BOOL operator!=( const BitmapEx& rBitmapEx ) const { return !(*this==rBitmapEx); }
+ BOOL operator!() const { return !aBitmap; }
- BOOL IsEqual( const BitmapEx& rBmpEx ) const;
+ BOOL IsEqual( const BitmapEx& rBmpEx ) const;
- BOOL IsEmpty() const;
- void SetEmpty();
- void Clear();
+ BOOL IsEmpty() const;
+ void SetEmpty();
+ void Clear();
- void Draw( OutputDevice* pOutDev,
+ void Draw( OutputDevice* pOutDev,
const Point& rDestPt ) const;
- void Draw( OutputDevice* pOutDev,
+ void Draw( OutputDevice* pOutDev,
const Point& rDestPt, const Size& rDestSize ) const;
- void Draw( OutputDevice* pOutDev,
+ void Draw( OutputDevice* pOutDev,
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel ) const;
- BOOL IsTransparent() const;
- TransparentType GetTransparentType() const { return eTransparent; }
+ BOOL IsTransparent() const;
+ TransparentType GetTransparentType() const { return eTransparent; }
- Bitmap GetBitmap( const Color* pTransReplaceColor = NULL ) const;
- Bitmap GetMask() const;
+ Bitmap GetBitmap( const Color* pTransReplaceColor = NULL ) const;
+ Bitmap GetMask() const;
BitmapEx GetColorTransformedBitmapEx( BmpColorMode eColorMode ) const;
- BOOL IsAlpha() const;
- AlphaMask GetAlpha() const;
+ BOOL IsAlpha() const;
+ AlphaMask GetAlpha() const;
const Size& GetSizePixel() const { return aBitmapSize; }
- void SetSizePixel( const Size& rNewSize );
+ void SetSizePixel( const Size& rNewSize );
- const Size& GetPrefSize() const { return aBitmap.GetPrefSize(); }
- void SetPrefSize( const Size& rPrefSize ) { aBitmap.SetPrefSize( rPrefSize ); }
+ const Size& GetPrefSize() const { return aBitmap.GetPrefSize(); }
+ void SetPrefSize( const Size& rPrefSize ) { aBitmap.SetPrefSize( rPrefSize ); }
- const MapMode& GetPrefMapMode() const { return aBitmap.GetPrefMapMode(); }
- void SetPrefMapMode( const MapMode& rPrefMapMode ) { aBitmap.SetPrefMapMode( rPrefMapMode ); }
+ const MapMode& GetPrefMapMode() const { return aBitmap.GetPrefMapMode(); }
+ void SetPrefMapMode( const MapMode& rPrefMapMode ) { aBitmap.SetPrefMapMode( rPrefMapMode ); }
- const Color& GetTransparentColor() const { return aTransparentColor; }
- void SetTransparentColor( const Color& rColor ) { aTransparentColor = rColor; }
+ const Color& GetTransparentColor() const { return aTransparentColor; }
+ void SetTransparentColor( const Color& rColor ) { aTransparentColor = rColor; }
- USHORT GetBitCount() const { return aBitmap.GetBitCount(); }
- ULONG GetSizeBytes() const;
- ULONG GetChecksum() const;
+ USHORT GetBitCount() const { return aBitmap.GetBitCount(); }
+ ULONG GetSizeBytes() const;
+ ULONG GetChecksum() const;
public:
@@ -135,7 +135,7 @@ public:
@return TRUE, if the conversion was completed successfully.
*/
- BOOL Convert( BmpConversion eConversion );
+ BOOL Convert( BmpConversion eConversion );
/** Reduce number of colors for the bitmap
@@ -147,7 +147,7 @@ public:
@return TRUE, if the color reduction operation was completed successfully.
*/
- BOOL ReduceColors( USHORT nNewColorCount,
+ BOOL ReduceColors( USHORT nNewColorCount,
BmpReduce eReduce = BMP_REDUCE_SIMPLE );
/** Apply a dither algorithm to the bitmap
@@ -159,7 +159,7 @@ public:
@param nDitherFlags
The algorithm to be used for dithering
*/
- BOOL Dither( ULONG nDitherFlags = BMP_DITHER_MATRIX );
+ BOOL Dither( ULONG nDitherFlags = BMP_DITHER_MATRIX );
/** Crop the bitmap
@@ -175,11 +175,11 @@ public:
nothing had to be cropped, because e.g. the crop rectangle
included the bitmap, FALSE is returned, too!
*/
- BOOL Crop( const Rectangle& rRectPixel );
+ BOOL Crop( const Rectangle& rRectPixel );
/** Expand the bitmap by pixel padding
- @param nDX
+ @param nDX
Number of pixel to pad at the right border of the bitmap
@param nDY
@@ -192,8 +192,8 @@ public:
not only returned when the operation failed, but also if
nothing had to be done, e.g. because nDX and nDY were zero.
*/
- BOOL Expand( ULONG nDX, ULONG nDY,
- const Color* pInitColor = NULL,
+ BOOL Expand( ULONG nDX, ULONG nDY,
+ const Color* pInitColor = NULL,
BOOL bExpandTransparent = FALSE );
/** Copy a rectangular area from another bitmap
@@ -218,7 +218,7 @@ public:
nothing had to be done, e.g. because one of the rectangles are
empty.
*/
- BOOL CopyPixel( const Rectangle& rRectDst,
+ BOOL CopyPixel( const Rectangle& rRectDst,
const Rectangle& rRectSrc,
const BitmapEx* pBmpExSrc = NULL );
@@ -230,22 +230,22 @@ public:
@return TRUE, if the operation was completed successfully.
*/
- BOOL Erase( const Color& rFillColor );
+ BOOL Erase( const Color& rFillColor );
/** Perform the Invert operation on every pixel
@return TRUE, if the operation was completed successfully.
*/
- BOOL Invert();
+ BOOL Invert();
/** Mirror the bitmap
@param nMirrorFlags
About which axis (horizontal, vertical, or both) to mirror
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Mirror( ULONG nMirrorFlags );
+ BOOL Mirror( ULONG nMirrorFlags );
/** Scale the bitmap
@@ -255,9 +255,9 @@ public:
@param nScaleFlag
The algorithm to be used for scaling
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Scale( const Size& rNewSize, ULONG nScaleFlag = BMP_SCALE_FAST );
+ BOOL Scale( const Size& rNewSize, ULONG nScaleFlag = BMP_SCALE_FAST );
/** Scale the bitmap
@@ -267,9 +267,9 @@ public:
@param rScaleY
The scale factor in y direction.
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Scale( const double& rScaleX, const double& rScaleY, ULONG nScaleFlag = BMP_SCALE_FAST );
+ BOOL Scale( const double& rScaleX, const double& rScaleY, ULONG nScaleFlag = BMP_SCALE_FAST );
/** Rotate bitmap by the specified angle
@@ -282,15 +282,15 @@ public:
in. The empty spaces around that rotated original bitmap are
then filled with this color.
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Rotate( long nAngle10, const Color& rFillColor );
+ BOOL Rotate( long nAngle10, const Color& rFillColor );
/** Replace all pixel having the search color with the specified color
@param rSearchColor
Color specifying which pixel should be replaced
-
+
@param rReplaceColor
Color to be placed in all changed pixel
@@ -299,15 +299,15 @@ public:
rSearchColor and the individual pixel values, such that the
corresponding pixel is still regarded a match.
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Replace( const Color& rSearchColor, const Color& rReplaceColor, ULONG nTol = 0 );
+ BOOL Replace( const Color& rSearchColor, const Color& rReplaceColor, ULONG nTol = 0 );
/** Replace all pixel having one the search colors with the corresponding replace color
@param pSearchColor
Array of colors specifying which pixel should be replaced
-
+
@param pReplaceColor
Array of colors to be placed in all changed pixel
@@ -319,9 +319,9 @@ public:
pSearchColor colors and the individual pixel values, such that
the corresponding pixel is still regarded a match.
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Replace( const Color* pSearchColors, const Color* pReplaceColors,
+ BOOL Replace( const Color* pSearchColors, const Color* pReplaceColors,
ULONG nColorCount, const ULONG* pTols = NULL );
/** Change various global color characteristics
@@ -349,12 +349,12 @@ public:
@param bInvert
If TRUE, invert the channel values with the logical 'not' operator
- @return TRUE, if the operation was completed successfully.
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Adjust( short nLuminancePercent = 0,
+ BOOL Adjust( short nLuminancePercent = 0,
short nContrastPercent = 0,
- short nChannelRPercent = 0,
- short nChannelGPercent = 0,
+ short nChannelRPercent = 0,
+ short nChannelGPercent = 0,
short nChannelBPercent = 0,
double fGamma = 1.0,
BOOL bInvert = FALSE );
@@ -369,10 +369,10 @@ public:
@param pProgress
A callback for showing the progress of the vectorization
-
- @return TRUE, if the operation was completed successfully.
+
+ @return TRUE, if the operation was completed successfully.
*/
- BOOL Filter( BmpFilter eFilter,
+ BOOL Filter( BmpFilter eFilter,
const BmpFilterParam* pFilterParam = NULL,
const Link* pProgress = NULL );
@@ -391,8 +391,8 @@ public:
public:
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const BitmapEx& rBitmapEx );
- friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, BitmapEx& rBitmapEx );
+ friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const BitmapEx& rBitmapEx );
+ friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, BitmapEx& rBitmapEx );
static BitmapEx AutoScaleBitmap(BitmapEx & aBitmap, const long aStandardSize);
};
diff --git a/vcl/inc/vcl/bmpacc.hxx b/vcl/inc/vcl/bmpacc.hxx
index e3530b786e65..3c1801b6b798 100644
--- a/vcl/inc/vcl/bmpacc.hxx
+++ b/vcl/inc/vcl/bmpacc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,7 +89,7 @@ private:
BitmapReadAccess() {}
BitmapReadAccess( const BitmapReadAccess& ) {}
- BitmapReadAccess& operator=( const BitmapReadAccess& ) { return *this; }
+ BitmapReadAccess& operator=( const BitmapReadAccess& ) { return *this; }
protected:
Bitmap maBitmap;
@@ -168,8 +168,8 @@ public:
inline BitmapColor GetPixelFromData( const BYTE* pData, long nX ) const;
inline void SetPixelOnData( BYTE* pData, long nX, const BitmapColor& rBitmapColor );
inline BitmapColor GetPixel( long nY, long nX ) const;
- inline BitmapColor GetColor( long nY, long nX ) const;
- inline BYTE GetLuminance( long nY, long nX ) const;
+ inline BitmapColor GetColor( long nY, long nX ) const;
+ inline BYTE GetLuminance( long nY, long nX ) const;
};
// ---------------------
@@ -184,7 +184,7 @@ public:
virtual ~BitmapWriteAccess();
void CopyScanline( long nY, const BitmapReadAccess& rReadAcc );
- void CopyScanline( long nY, ConstScanline aSrcScanline,
+ void CopyScanline( long nY, ConstScanline aSrcScanline,
ULONG nSrcScanlineFormat, ULONG nSrcScanlineSize );
void CopyBuffer( const BitmapReadAccess& rReadAcc );
@@ -195,15 +195,15 @@ public:
inline void SetPixel( long nY, long nX, const BitmapColor& rBitmapColor );
- void SetLineColor();
- void SetLineColor( const Color& rColor );
- Color GetLineColor() const;
+ void SetLineColor();
+ void SetLineColor( const Color& rColor );
+ Color GetLineColor() const;
- void SetFillColor();
- void SetFillColor( const Color& rColor );
- Color GetFillColor() const;
+ void SetFillColor();
+ void SetFillColor( const Color& rColor );
+ Color GetFillColor() const;
- void Erase( const Color& rColor );
+ void Erase( const Color& rColor );
void DrawLine( const Point& rStart, const Point& rEnd );
@@ -219,18 +219,18 @@ public:
private:
BitmapColor* mpLineColor;
- BitmapColor* mpFillColor;
+ BitmapColor* mpFillColor;
BitmapWriteAccess() {}
BitmapWriteAccess( const BitmapWriteAccess& ) : BitmapReadAccess() {}
- BitmapWriteAccess& operator=( const BitmapWriteAccess& ) { return *this; }
+ BitmapWriteAccess& operator=( const BitmapWriteAccess& ) { return *this; }
};
// -------------------
// - Accessor Helper -
// -------------------
-/** This template handles BitmapAccess the RAII way.
+/** This template handles BitmapAccess the RAII way.
Please don't use directly, but the ready-made typedefs for
BitmapReadAccess and BitmapWriteAccess below.
@@ -250,23 +250,23 @@ public:
mrBitmap.ReleaseAccess( mpAccess );
}
- Access* get() { return mpAccess; }
- const Access* get() const { return mpAccess; }
+ Access* get() { return mpAccess; }
+ const Access* get() const { return mpAccess; }
- Access* operator->() { return mpAccess; }
- const Access* operator->() const { return mpAccess; }
+ Access* operator->() { return mpAccess; }
+ const Access* operator->() const { return mpAccess; }
- Access& operator*() { return *mpAccess; }
- const Access& operator*() const { return *mpAccess; }
+ Access& operator*() { return *mpAccess; }
+ const Access& operator*() const { return *mpAccess; }
private:
- Access* mpAccess;
- Bitmap& mrBitmap;
+ Access* mpAccess;
+ Bitmap& mrBitmap;
};
/** This wrapper handles BitmapReadAccess the RAII way.
- Use as follows:
+ Use as follows:
Bitmap aBitmap
ScopedBitmapReadAccess pReadAccess( aBitmap.AcquireReadAccess(), aBitmap );
pReadAccess->SetPixel()...
@@ -280,7 +280,7 @@ typedef ScopedBitmapAccess< BitmapReadAccess > ScopedBitmapReadAccess;
/** This wrapper handles BitmapWriteAccess the RAII way.
- Use as follows:
+ Use as follows:
Bitmap aBitmap
ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(), aBitmap );
pWriteAccess->SetPixel()...
diff --git a/vcl/inc/vcl/bmpfast.hxx b/vcl/inc/vcl/bmpfast.hxx
index b43df0e115b2..ae4fe0b033af 100644
--- a/vcl/inc/vcl/bmpfast.hxx
+++ b/vcl/inc/vcl/bmpfast.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/brdwin.hxx b/vcl/inc/vcl/brdwin.hxx
index 016e50e1366e..219cbb84bba6 100644
--- a/vcl/inc/vcl/brdwin.hxx
+++ b/vcl/inc/vcl/brdwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,55 +38,55 @@ class ImplBorderWindowView;
// - ImplBorderWindow-Types -
// --------------------------
-#define BORDERWINDOW_STYLE_OVERLAP ((USHORT)0x0001)
-#define BORDERWINDOW_STYLE_BORDER ((USHORT)0x0002)
-#define BORDERWINDOW_STYLE_FLOAT ((USHORT)0x0004)
-#define BORDERWINDOW_STYLE_FRAME ((USHORT)0x0008)
-#define BORDERWINDOW_STYLE_APP ((USHORT)0x0010)
-
-#define BORDERWINDOW_HITTEST_TITLE ((USHORT)0x0001)
-#define BORDERWINDOW_HITTEST_LEFT ((USHORT)0x0002)
-#define BORDERWINDOW_HITTEST_MENU ((USHORT)0x0004)
-#define BORDERWINDOW_HITTEST_TOP ((USHORT)0x0008)
-#define BORDERWINDOW_HITTEST_RIGHT ((USHORT)0x0010)
-#define BORDERWINDOW_HITTEST_BOTTOM ((USHORT)0x0020)
-#define BORDERWINDOW_HITTEST_TOPLEFT ((USHORT)0x0040)
-#define BORDERWINDOW_HITTEST_TOPRIGHT ((USHORT)0x0080)
-#define BORDERWINDOW_HITTEST_BOTTOMLEFT ((USHORT)0x0100)
-#define BORDERWINDOW_HITTEST_BOTTOMRIGHT ((USHORT)0x0200)
-#define BORDERWINDOW_HITTEST_CLOSE ((USHORT)0x0400)
-#define BORDERWINDOW_HITTEST_ROLL ((USHORT)0x0800)
-#define BORDERWINDOW_HITTEST_DOCK ((USHORT)0x1000)
-#define BORDERWINDOW_HITTEST_HIDE ((USHORT)0x2000)
-#define BORDERWINDOW_HITTEST_HELP ((USHORT)0x4000)
-#define BORDERWINDOW_HITTEST_PIN ((USHORT)0x8000)
-
-#define BORDERWINDOW_DRAW_TITLE ((USHORT)0x0001)
-#define BORDERWINDOW_DRAW_BORDER ((USHORT)0x0002)
-#define BORDERWINDOW_DRAW_FRAME ((USHORT)0x0004)
-#define BORDERWINDOW_DRAW_CLOSE ((USHORT)0x0008)
-#define BORDERWINDOW_DRAW_ROLL ((USHORT)0x0010)
-#define BORDERWINDOW_DRAW_DOCK ((USHORT)0x0020)
-#define BORDERWINDOW_DRAW_HIDE ((USHORT)0x0040)
-#define BORDERWINDOW_DRAW_HELP ((USHORT)0x0080)
-#define BORDERWINDOW_DRAW_PIN ((USHORT)0x0100)
-#define BORDERWINDOW_DRAW_MENU ((USHORT)0x0200)
-#define BORDERWINDOW_DRAW_ALL (BORDERWINDOW_DRAW_TITLE | \
- BORDERWINDOW_DRAW_BORDER | \
- BORDERWINDOW_DRAW_FRAME | \
- BORDERWINDOW_DRAW_CLOSE | \
- BORDERWINDOW_DRAW_ROLL | \
- BORDERWINDOW_DRAW_DOCK | \
- BORDERWINDOW_DRAW_HIDE | \
- BORDERWINDOW_DRAW_HELP | \
- BORDERWINDOW_DRAW_PIN | \
+#define BORDERWINDOW_STYLE_OVERLAP ((USHORT)0x0001)
+#define BORDERWINDOW_STYLE_BORDER ((USHORT)0x0002)
+#define BORDERWINDOW_STYLE_FLOAT ((USHORT)0x0004)
+#define BORDERWINDOW_STYLE_FRAME ((USHORT)0x0008)
+#define BORDERWINDOW_STYLE_APP ((USHORT)0x0010)
+
+#define BORDERWINDOW_HITTEST_TITLE ((USHORT)0x0001)
+#define BORDERWINDOW_HITTEST_LEFT ((USHORT)0x0002)
+#define BORDERWINDOW_HITTEST_MENU ((USHORT)0x0004)
+#define BORDERWINDOW_HITTEST_TOP ((USHORT)0x0008)
+#define BORDERWINDOW_HITTEST_RIGHT ((USHORT)0x0010)
+#define BORDERWINDOW_HITTEST_BOTTOM ((USHORT)0x0020)
+#define BORDERWINDOW_HITTEST_TOPLEFT ((USHORT)0x0040)
+#define BORDERWINDOW_HITTEST_TOPRIGHT ((USHORT)0x0080)
+#define BORDERWINDOW_HITTEST_BOTTOMLEFT ((USHORT)0x0100)
+#define BORDERWINDOW_HITTEST_BOTTOMRIGHT ((USHORT)0x0200)
+#define BORDERWINDOW_HITTEST_CLOSE ((USHORT)0x0400)
+#define BORDERWINDOW_HITTEST_ROLL ((USHORT)0x0800)
+#define BORDERWINDOW_HITTEST_DOCK ((USHORT)0x1000)
+#define BORDERWINDOW_HITTEST_HIDE ((USHORT)0x2000)
+#define BORDERWINDOW_HITTEST_HELP ((USHORT)0x4000)
+#define BORDERWINDOW_HITTEST_PIN ((USHORT)0x8000)
+
+#define BORDERWINDOW_DRAW_TITLE ((USHORT)0x0001)
+#define BORDERWINDOW_DRAW_BORDER ((USHORT)0x0002)
+#define BORDERWINDOW_DRAW_FRAME ((USHORT)0x0004)
+#define BORDERWINDOW_DRAW_CLOSE ((USHORT)0x0008)
+#define BORDERWINDOW_DRAW_ROLL ((USHORT)0x0010)
+#define BORDERWINDOW_DRAW_DOCK ((USHORT)0x0020)
+#define BORDERWINDOW_DRAW_HIDE ((USHORT)0x0040)
+#define BORDERWINDOW_DRAW_HELP ((USHORT)0x0080)
+#define BORDERWINDOW_DRAW_PIN ((USHORT)0x0100)
+#define BORDERWINDOW_DRAW_MENU ((USHORT)0x0200)
+#define BORDERWINDOW_DRAW_ALL (BORDERWINDOW_DRAW_TITLE | \
+ BORDERWINDOW_DRAW_BORDER | \
+ BORDERWINDOW_DRAW_FRAME | \
+ BORDERWINDOW_DRAW_CLOSE | \
+ BORDERWINDOW_DRAW_ROLL | \
+ BORDERWINDOW_DRAW_DOCK | \
+ BORDERWINDOW_DRAW_HIDE | \
+ BORDERWINDOW_DRAW_HELP | \
+ BORDERWINDOW_DRAW_PIN | \
BORDERWINDOW_DRAW_MENU)
-#define BORDERWINDOW_TITLE_NORMAL ((USHORT)0x0001)
-#define BORDERWINDOW_TITLE_SMALL ((USHORT)0x0002)
-#define BORDERWINDOW_TITLE_TEAROFF ((USHORT)0x0004)
-#define BORDERWINDOW_TITLE_POPUP ((USHORT)0x0008)
-#define BORDERWINDOW_TITLE_NONE ((USHORT)0x0010)
+#define BORDERWINDOW_TITLE_NORMAL ((USHORT)0x0001)
+#define BORDERWINDOW_TITLE_SMALL ((USHORT)0x0002)
+#define BORDERWINDOW_TITLE_TEAROFF ((USHORT)0x0004)
+#define BORDERWINDOW_TITLE_POPUP ((USHORT)0x0008)
+#define BORDERWINDOW_TITLE_NONE ((USHORT)0x0010)
// --------------------
// - ImplBorderWindow -
@@ -100,34 +100,34 @@ class ImplBorderWindow : public Window
friend class ImplStdBorderWindowView;
private:
- ImplBorderWindowView* mpBorderView;
- Window* mpMenuBarWindow;
- long mnMinWidth;
- long mnMinHeight;
- long mnMaxWidth;
- long mnMaxHeight;
- long mnRollHeight;
- long mnOrgMenuHeight;
- USHORT mnTitleType;
- USHORT mnBorderStyle;
- BOOL mbFloatWindow;
- BOOL mbSmallOutBorder;
- BOOL mbFrameBorder;
- BOOL mbPined;
- BOOL mbRollUp;
- BOOL mbMenuHide;
- BOOL mbDockBtn;
- BOOL mbHideBtn;
- BOOL mbHelpBtn;
+ ImplBorderWindowView* mpBorderView;
+ Window* mpMenuBarWindow;
+ long mnMinWidth;
+ long mnMinHeight;
+ long mnMaxWidth;
+ long mnMaxHeight;
+ long mnRollHeight;
+ long mnOrgMenuHeight;
+ USHORT mnTitleType;
+ USHORT mnBorderStyle;
+ BOOL mbFloatWindow;
+ BOOL mbSmallOutBorder;
+ BOOL mbFrameBorder;
+ BOOL mbPined;
+ BOOL mbRollUp;
+ BOOL mbMenuHide;
+ BOOL mbDockBtn;
+ BOOL mbHideBtn;
+ BOOL mbHelpBtn;
BOOL mbMenuBtn;
- BOOL mbDisplayActive;
+ BOOL mbDisplayActive;
using Window::ImplInit;
- void ImplInit( Window* pParent,
+ void ImplInit( Window* pParent,
WinBits nStyle, USHORT nTypeStyle,
SystemParentData* pParentData );
- void ImplInit( Window* pParent,
- WinBits nStyle, USHORT nTypeStyle,
+ void ImplInit( Window* pParent,
+ WinBits nStyle, USHORT nTypeStyle,
const ::com::sun::star::uno::Any& );
// Copy assignment is forbidden and not implemented.
@@ -142,53 +142,53 @@ public:
ImplBorderWindow( Window* pParent, WinBits nStyle = 0,
USHORT nTypeStyle = 0 );
ImplBorderWindow( Window* pParent,
- WinBits nStyle, USHORT nTypeStyle,
+ WinBits nStyle, USHORT nTypeStyle,
const ::com::sun::star::uno::Any& );
~ImplBorderWindow();
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rTEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Activate();
- virtual void Deactivate();
- virtual void Resize();
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
-
- void InitView();
- void UpdateView( BOOL bNewView, const Size& rNewOutSize );
- void InvalidateBorder();
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Activate();
+ virtual void Deactivate();
+ virtual void Resize();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ void InitView();
+ void UpdateView( BOOL bNewView, const Size& rNewOutSize );
+ void InvalidateBorder();
using Window::Draw;
- void Draw( const Rectangle& rRect, OutputDevice* pDev, const Point& rPos );
-
- void SetDisplayActive( BOOL bActive );
- BOOL IsDisplayActive() const { return mbDisplayActive; }
- void SetTitleType( USHORT nTitleType, const Size& rSize );
- void SetBorderStyle( USHORT nStyle );
- USHORT GetBorderStyle() const { return mnBorderStyle; }
- void SetPin( BOOL bPin );
- void SetRollUp( BOOL bRollUp, const Size& rSize );
- void SetCloser();
- void SetDockButton( BOOL bDockButton );
- void SetHideButton( BOOL bHideButton );
- void SetHelpButton( BOOL bHelpButton );
- void SetMenuButton( BOOL bMenuButton );
-
- void UpdateMenuHeight();
- void SetMenuBarWindow( Window* pWindow );
- void SetMenuBarMode( BOOL bHide );
-
- void SetMinOutputSize( long nWidth, long nHeight )
+ void Draw( const Rectangle& rRect, OutputDevice* pDev, const Point& rPos );
+
+ void SetDisplayActive( BOOL bActive );
+ BOOL IsDisplayActive() const { return mbDisplayActive; }
+ void SetTitleType( USHORT nTitleType, const Size& rSize );
+ void SetBorderStyle( USHORT nStyle );
+ USHORT GetBorderStyle() const { return mnBorderStyle; }
+ void SetPin( BOOL bPin );
+ void SetRollUp( BOOL bRollUp, const Size& rSize );
+ void SetCloser();
+ void SetDockButton( BOOL bDockButton );
+ void SetHideButton( BOOL bHideButton );
+ void SetHelpButton( BOOL bHelpButton );
+ void SetMenuButton( BOOL bMenuButton );
+
+ void UpdateMenuHeight();
+ void SetMenuBarWindow( Window* pWindow );
+ void SetMenuBarMode( BOOL bHide );
+
+ void SetMinOutputSize( long nWidth, long nHeight )
{ mnMinWidth = nWidth; mnMinHeight = nHeight; }
- void SetMaxOutputSize( long nWidth, long nHeight )
+ void SetMaxOutputSize( long nWidth, long nHeight )
{ mnMaxWidth = nWidth; mnMaxHeight = nHeight; }
- void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
+ void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const;
- long CalcTitleWidth() const;
+ long CalcTitleWidth() const;
Rectangle GetMenuRect() const;
};
@@ -201,42 +201,42 @@ public:
struct ImplBorderFrameData
{
- ImplBorderWindow* mpBorderWindow;
- OutputDevice* mpOutDev;
- Rectangle maTitleRect;
- Rectangle maPinRect;
- Rectangle maCloseRect;
- Rectangle maRollRect;
- Rectangle maDockRect;
- Rectangle maMenuRect;
- Rectangle maHideRect;
- Rectangle maHelpRect;
- Point maMouseOff;
- long mnWidth;
- long mnHeight;
- long mnTrackX;
- long mnTrackY;
- long mnTrackWidth;
- long mnTrackHeight;
- sal_Int32 mnLeftBorder;
- sal_Int32 mnTopBorder;
- sal_Int32 mnRightBorder;
- sal_Int32 mnBottomBorder;
- long mnNoTitleTop;
- long mnBorderSize;
- long mnTitleHeight;
- long mnTitleOff;
- USHORT mnHitTest;
- USHORT mnPinState;
- USHORT mnCloseState;
- USHORT mnRollState;
- USHORT mnDockState;
- USHORT mnMenuState;
- USHORT mnHideState;
- USHORT mnHelpState;
- USHORT mnTitleType;
- BOOL mbFloatWindow;
- BOOL mbDragFull;
+ ImplBorderWindow* mpBorderWindow;
+ OutputDevice* mpOutDev;
+ Rectangle maTitleRect;
+ Rectangle maPinRect;
+ Rectangle maCloseRect;
+ Rectangle maRollRect;
+ Rectangle maDockRect;
+ Rectangle maMenuRect;
+ Rectangle maHideRect;
+ Rectangle maHelpRect;
+ Point maMouseOff;
+ long mnWidth;
+ long mnHeight;
+ long mnTrackX;
+ long mnTrackY;
+ long mnTrackWidth;
+ long mnTrackHeight;
+ sal_Int32 mnLeftBorder;
+ sal_Int32 mnTopBorder;
+ sal_Int32 mnRightBorder;
+ sal_Int32 mnBottomBorder;
+ long mnNoTitleTop;
+ long mnBorderSize;
+ long mnTitleHeight;
+ long mnTitleOff;
+ USHORT mnHitTest;
+ USHORT mnPinState;
+ USHORT mnCloseState;
+ USHORT mnRollState;
+ USHORT mnDockState;
+ USHORT mnMenuState;
+ USHORT mnHideState;
+ USHORT mnHelpState;
+ USHORT mnTitleType;
+ BOOL mbFloatWindow;
+ BOOL mbDragFull;
BOOL mbTitleClipped;
};
@@ -249,27 +249,27 @@ struct ImplBorderFrameData
class ImplBorderWindowView
{
public:
- virtual ~ImplBorderWindowView();
+ virtual ~ImplBorderWindowView();
- virtual BOOL MouseMove( const MouseEvent& rMEvt );
- virtual BOOL MouseButtonDown( const MouseEvent& rMEvt );
- virtual BOOL Tracking( const TrackingEvent& rTEvt );
- virtual String RequestHelp( const Point& rPos, Rectangle& rHelpRect );
+ virtual BOOL MouseMove( const MouseEvent& rMEvt );
+ virtual BOOL MouseButtonDown( const MouseEvent& rMEvt );
+ virtual BOOL Tracking( const TrackingEvent& rTEvt );
+ virtual String RequestHelp( const Point& rPos, Rectangle& rHelpRect );
- virtual void Init( OutputDevice* pDev, long nWidth, long nHeight ) = 0;
- virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
+ virtual void Init( OutputDevice* pDev, long nWidth, long nHeight ) = 0;
+ virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const = 0;
- virtual long CalcTitleWidth() const = 0;
- virtual void DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev = NULL, const Point* pOffset = NULL ) = 0;
+ virtual long CalcTitleWidth() const = 0;
+ virtual void DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev = NULL, const Point* pOffset = NULL ) = 0;
virtual Rectangle GetMenuRect() const;
- void ImplInitTitle( ImplBorderFrameData* pData );
- USHORT ImplHitTest( ImplBorderFrameData* pData, const Point& rPos );
- BOOL ImplMouseMove( ImplBorderFrameData* pData, const MouseEvent& rMEvt );
- BOOL ImplMouseButtonDown( ImplBorderFrameData* pData, const MouseEvent& rMEvt );
- BOOL ImplTracking( ImplBorderFrameData* pData, const TrackingEvent& rTEvt );
- String ImplRequestHelp( ImplBorderFrameData* pData, const Point& rPos, Rectangle& rHelpRect );
- long ImplCalcTitleWidth( const ImplBorderFrameData* pData ) const;
+ void ImplInitTitle( ImplBorderFrameData* pData );
+ USHORT ImplHitTest( ImplBorderFrameData* pData, const Point& rPos );
+ BOOL ImplMouseMove( ImplBorderFrameData* pData, const MouseEvent& rMEvt );
+ BOOL ImplMouseButtonDown( ImplBorderFrameData* pData, const MouseEvent& rMEvt );
+ BOOL ImplTracking( ImplBorderFrameData* pData, const TrackingEvent& rTEvt );
+ String ImplRequestHelp( ImplBorderFrameData* pData, const Point& rPos, Rectangle& rHelpRect );
+ long ImplCalcTitleWidth( const ImplBorderFrameData* pData ) const;
};
// =======================================================================
@@ -283,11 +283,11 @@ class ImplNoBorderWindowView : public ImplBorderWindowView
public:
ImplNoBorderWindowView( ImplBorderWindow* pBorderWindow );
- virtual void Init( OutputDevice* pDev, long nWidth, long nHeight );
- virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
+ virtual void Init( OutputDevice* pDev, long nWidth, long nHeight );
+ virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const;
- virtual long CalcTitleWidth() const;
- virtual void DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev, const Point* pOffset );
+ virtual long CalcTitleWidth() const;
+ virtual void DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev, const Point* pOffset );
};
@@ -299,24 +299,24 @@ public:
class ImplSmallBorderWindowView : public ImplBorderWindowView
{
- ImplBorderWindow* mpBorderWindow;
- OutputDevice* mpOutDev;
- long mnWidth;
- long mnHeight;
- sal_Int32 mnLeftBorder;
- sal_Int32 mnTopBorder;
- sal_Int32 mnRightBorder;
- sal_Int32 mnBottomBorder;
+ ImplBorderWindow* mpBorderWindow;
+ OutputDevice* mpOutDev;
+ long mnWidth;
+ long mnHeight;
+ sal_Int32 mnLeftBorder;
+ sal_Int32 mnTopBorder;
+ sal_Int32 mnRightBorder;
+ sal_Int32 mnBottomBorder;
bool mbNWFBorder;
public:
ImplSmallBorderWindowView( ImplBorderWindow* pBorderWindow );
- virtual void Init( OutputDevice* pOutDev, long nWidth, long nHeight );
- virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
+ virtual void Init( OutputDevice* pOutDev, long nWidth, long nHeight );
+ virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const;
- virtual long CalcTitleWidth() const;
- virtual void DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev, const Point* pOffset );
+ virtual long CalcTitleWidth() const;
+ virtual void DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev, const Point* pOffset );
};
@@ -329,28 +329,28 @@ public:
class ImplStdBorderWindowView : public ImplBorderWindowView
{
- ImplBorderFrameData maFrameData;
- VirtualDevice* mpATitleVirDev;
- VirtualDevice* mpDTitleVirDev;
+ ImplBorderFrameData maFrameData;
+ VirtualDevice* mpATitleVirDev;
+ VirtualDevice* mpDTitleVirDev;
public:
ImplStdBorderWindowView( ImplBorderWindow* pBorderWindow );
~ImplStdBorderWindowView();
- virtual BOOL MouseMove( const MouseEvent& rMEvt );
- virtual BOOL MouseButtonDown( const MouseEvent& rMEvt );
- virtual BOOL Tracking( const TrackingEvent& rTEvt );
- virtual String RequestHelp( const Point& rPos, Rectangle& rHelpRect );
+ virtual BOOL MouseMove( const MouseEvent& rMEvt );
+ virtual BOOL MouseButtonDown( const MouseEvent& rMEvt );
+ virtual BOOL Tracking( const TrackingEvent& rTEvt );
+ virtual String RequestHelp( const Point& rPos, Rectangle& rHelpRect );
virtual Rectangle GetMenuRect() const;
- virtual void Init( OutputDevice* pDev, long nWidth, long nHeight );
- virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
+ virtual void Init( OutputDevice* pDev, long nWidth, long nHeight );
+ virtual void GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const;
- virtual long CalcTitleWidth() const;
- virtual void DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev, const Point* pOffset );
+ virtual long CalcTitleWidth() const;
+ virtual void DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev, const Point* pOffset );
};
-#endif // _SV_BRDWIN_HXX
+#endif // _SV_BRDWIN_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/btndlg.hxx b/vcl/inc/vcl/btndlg.hxx
index b5dca5cdad21..71f962538e76 100644
--- a/vcl/inc/vcl/btndlg.hxx
+++ b/vcl/inc/vcl/btndlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,13 +41,13 @@ class PushButton;
// - ButtonDialog-Types -
// ----------------------
-#define BUTTONDIALOG_BUTTON_NOTFOUND ((USHORT)0xFFFF)
+#define BUTTONDIALOG_BUTTON_NOTFOUND ((USHORT)0xFFFF)
-#define BUTTONDIALOG_DEFBUTTON ((USHORT)0x0001)
-#define BUTTONDIALOG_OKBUTTON ((USHORT)0x0002)
-#define BUTTONDIALOG_CANCELBUTTON ((USHORT)0x0004)
-#define BUTTONDIALOG_HELPBUTTON ((USHORT)0x0008)
-#define BUTTONDIALOG_FOCUSBUTTON ((USHORT)0x0010)
+#define BUTTONDIALOG_DEFBUTTON ((USHORT)0x0001)
+#define BUTTONDIALOG_OKBUTTON ((USHORT)0x0002)
+#define BUTTONDIALOG_CANCELBUTTON ((USHORT)0x0004)
+#define BUTTONDIALOG_HELPBUTTON ((USHORT)0x0008)
+#define BUTTONDIALOG_FOCUSBUTTON ((USHORT)0x0010)
// ----------------
// - ButtonDialog -
@@ -57,19 +57,19 @@ class VCL_DLLPUBLIC ButtonDialog : public Dialog
{
private:
ImplBtnDlgItemList* mpItemList;
- Size maPageSize;
- Size maCtrlSize;
- long mnButtonSize;
- USHORT mnCurButtonId;
- USHORT mnFocusButtonId;
- BOOL mbFormat;
- Link maClickHdl;
-
- SAL_DLLPRIVATE void ImplInitButtonDialogData();
- SAL_DLLPRIVATE PushButton* ImplCreatePushButton( USHORT nBtnFlags );
- SAL_DLLPRIVATE ImplBtnDlgItem* ImplGetItem( USHORT nId ) const;
+ Size maPageSize;
+ Size maCtrlSize;
+ long mnButtonSize;
+ USHORT mnCurButtonId;
+ USHORT mnFocusButtonId;
+ BOOL mbFormat;
+ Link maClickHdl;
+
+ SAL_DLLPRIVATE void ImplInitButtonDialogData();
+ SAL_DLLPRIVATE PushButton* ImplCreatePushButton( USHORT nBtnFlags );
+ SAL_DLLPRIVATE ImplBtnDlgItem* ImplGetItem( USHORT nId ) const;
DECL_DLLPRIVATE_LINK( ImplClickHdl, PushButton* pBtn );
- SAL_DLLPRIVATE void ImplPosControls();
+ SAL_DLLPRIVATE void ImplPosControls();
// Copy assignment is forbidden and not implemented.
SAL_DLLPRIVATE ButtonDialog( const ButtonDialog & );
@@ -83,38 +83,38 @@ public:
ButtonDialog( Window* pParent, const ResId& rResId );
~ButtonDialog();
- virtual void Resize();
- virtual void StateChanged( StateChangedType nStateChange );
+ virtual void Resize();
+ virtual void StateChanged( StateChangedType nStateChange );
- virtual void Click();
+ virtual void Click();
- void SetPageSizePixel( const Size& rSize ) { maPageSize = rSize; }
- const Size& GetPageSizePixel() const { return maPageSize; }
+ void SetPageSizePixel( const Size& rSize ) { maPageSize = rSize; }
+ const Size& GetPageSizePixel() const { return maPageSize; }
- USHORT GetCurButtonId() const { return mnCurButtonId; }
+ USHORT GetCurButtonId() const { return mnCurButtonId; }
- void AddButton( const XubString& rText, USHORT nId, USHORT nBtnFlags, long nSepPixel = 0 );
- void AddButton( StandardButtonType eType, USHORT nId, USHORT nBtnFlags, long nSepPixel = 0 );
- void AddButton( PushButton* pBtn, USHORT nId, USHORT nBtnFlags, long nSepPixel = 0 );
- void RemoveButton( USHORT nId );
- void Clear();
- USHORT GetButtonCount() const;
- USHORT GetButtonId( USHORT nButton ) const;
- PushButton* GetPushButton( USHORT nId ) const;
- void SetButtonText( USHORT nId, const XubString& rText );
- XubString GetButtonText( USHORT nId ) const;
- void SetButtonHelpText( USHORT nId, const XubString& rText );
- XubString GetButtonHelpText( USHORT nId ) const;
- void SetButtonHelpId( USHORT nId, ULONG nHelpId );
- ULONG GetButtonHelpId( USHORT nId ) const;
+ void AddButton( const XubString& rText, USHORT nId, USHORT nBtnFlags, long nSepPixel = 0 );
+ void AddButton( StandardButtonType eType, USHORT nId, USHORT nBtnFlags, long nSepPixel = 0 );
+ void AddButton( PushButton* pBtn, USHORT nId, USHORT nBtnFlags, long nSepPixel = 0 );
+ void RemoveButton( USHORT nId );
+ void Clear();
+ USHORT GetButtonCount() const;
+ USHORT GetButtonId( USHORT nButton ) const;
+ PushButton* GetPushButton( USHORT nId ) const;
+ void SetButtonText( USHORT nId, const XubString& rText );
+ XubString GetButtonText( USHORT nId ) const;
+ void SetButtonHelpText( USHORT nId, const XubString& rText );
+ XubString GetButtonHelpText( USHORT nId ) const;
+ void SetButtonHelpId( USHORT nId, ULONG nHelpId );
+ ULONG GetButtonHelpId( USHORT nId ) const;
- void SetFocusButton( USHORT nId = BUTTONDIALOG_BUTTON_NOTFOUND ) { mnFocusButtonId = nId; }
- USHORT GetFocusButton() const { return mnFocusButtonId; }
+ void SetFocusButton( USHORT nId = BUTTONDIALOG_BUTTON_NOTFOUND ) { mnFocusButtonId = nId; }
+ USHORT GetFocusButton() const { return mnFocusButtonId; }
- void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; }
- const Link& GetClickHdl() const { return maClickHdl; }
+ void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; }
+ const Link& GetClickHdl() const { return maClickHdl; }
};
-#endif // _SV_BTNDLG_HXX
+#endif // _SV_BTNDLG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/button.hxx b/vcl/inc/vcl/button.hxx
index 706e831869a1..81da43294217 100644
--- a/vcl/inc/vcl/button.hxx
+++ b/vcl/inc/vcl/button.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,7 +79,7 @@ public:
~Button();
virtual void Click();
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; }
const Link& GetClickHdl() const { return maClickHdl; }
@@ -340,14 +340,14 @@ protected:
virtual const Color&
GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
- inline void SetMouseRect( const Rectangle& _rMouseRect ) { maMouseRect = _rMouseRect; }
- inline const Rectangle& GetMouseRect( ) const { return maMouseRect; }
- inline void SetStateRect( const Rectangle& _rStateRect ) { maStateRect = _rStateRect; }
- inline const Rectangle& GetStateRect( ) const { return maStateRect; }
+ inline void SetMouseRect( const Rectangle& _rMouseRect ) { maMouseRect = _rMouseRect; }
+ inline const Rectangle& GetMouseRect( ) const { return maMouseRect; }
+ inline void SetStateRect( const Rectangle& _rStateRect ) { maStateRect = _rStateRect; }
+ inline const Rectangle& GetStateRect( ) const { return maStateRect; }
// draws the radio button (the knob image), in it's current state (pressed/checked)
// at the usual location, which can be overridden with SetStateRect
- void DrawRadioButtonState( );
+ void DrawRadioButtonState( );
public:
RadioButton( Window* pParent, WinBits nWinStyle = 0 );
@@ -391,17 +391,17 @@ public:
void SetToggleHdl( const Link& rLink ) { maToggleHdl = rLink; }
const Link& GetToggleHdl() const { return maToggleHdl; }
-
+
/** GetRadioButtonGroup returns a list of pointers to <code>RadioButton</code>s in the same group.
-
+
The pointers in the returned list are valid at the time call returns. However rescheduling
or giving up the SolarMutex may mean events get executed that lead to the pointers getting
invalid.
-
+
@param io_rGroup
gets cleared on entering the function. on return contains the <code>RadioButton</code>s
in the same group as this <code>RadioButton</code>.
-
+
@param bIncludeThis
defines whether <code>this</code> is contained in the returned list
*/
@@ -451,9 +451,9 @@ protected:
SAL_DLLPRIVATE virtual void ImplDrawCheckBoxState();
SAL_DLLPRIVATE const Rectangle& GetStateRect() const { return maStateRect; }
- SAL_DLLPRIVATE const Rectangle& GetMouseRect() const { return maMouseRect; }
+ SAL_DLLPRIVATE const Rectangle& GetMouseRect() const { return maMouseRect; }
public:
- SAL_DLLPRIVATE void ImplCheck();
+ SAL_DLLPRIVATE void ImplCheck();
SAL_DLLPRIVATE void ImplSetMinimumNWFSize();
public:
CheckBox( Window* pParent, WinBits nStyle = 0 );
diff --git a/vcl/inc/vcl/canvasbitmap.hxx b/vcl/inc/vcl/canvasbitmap.hxx
index 4c4ef77ff5f7..0ad9249fb6f0 100644
--- a/vcl/inc/vcl/canvasbitmap.hxx
+++ b/vcl/inc/vcl/canvasbitmap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace vcl
{
namespace unotools
{
- class VCL_DLLPUBLIC VclCanvasBitmap :
+ class VCL_DLLPUBLIC VclCanvasBitmap :
public cppu::WeakImplHelper3< com::sun::star::rendering::XIntegerReadOnlyBitmap,
com::sun::star::rendering::XBitmapPalette,
com::sun::star::rendering::XIntegerBitmapColorSpace >
@@ -120,7 +120,7 @@ namespace unotools
are not reflected in this object (copy on write).
*/
explicit VclCanvasBitmap( const BitmapEx& rBitmap );
-
+
/// Retrieve contained bitmap. Call me with locked Solar mutex!
BitmapEx getBitmapEx() const;
};
diff --git a/vcl/inc/vcl/canvastools.hxx b/vcl/inc/vcl/canvastools.hxx
index e82d397a92f0..556af319b871 100644
--- a/vcl/inc/vcl/canvastools.hxx
+++ b/vcl/inc/vcl/canvastools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace basegfx
class B2DPolyPolygon;
}
-namespace com { namespace sun { namespace star { namespace geometry
+namespace com { namespace sun { namespace star { namespace geometry
{
struct RealPoint2D;
struct RealSize2D;
@@ -68,7 +68,7 @@ namespace com { namespace sun { namespace star { namespace geometry
struct RealBezierSegment2D;
} } } }
-namespace com { namespace sun { namespace star { namespace rendering
+namespace com { namespace sun { namespace star { namespace rendering
{
class XGraphicDevice;
class XBitmap;
@@ -86,40 +86,40 @@ namespace vcl
/** Create an XPolyPolygon from VCL/Tools polygon
*/
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
- VCL_DLLPUBLIC xPolyPolygonFromPolygon( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
- const ::Polygon& inputPolygon );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
+ VCL_DLLPUBLIC xPolyPolygonFromPolygon( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
+ const ::Polygon& inputPolygon );
/** Create an XPolyPolygon from VCL/Tools polyPolygon
*/
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
- VCL_DLLPUBLIC xPolyPolygonFromPolyPolygon( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
- const ::PolyPolygon& inputPolyPolygon );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >
+ VCL_DLLPUBLIC xPolyPolygonFromPolyPolygon( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
+ const ::PolyPolygon& inputPolyPolygon );
/** Create an VCL/Tools polygon from a point sequence
*/
- ::Polygon VCL_DLLPUBLIC polygonFromPoint2DSequence(
- const ::com::sun::star::uno::Sequence<
+ ::Polygon VCL_DLLPUBLIC polygonFromPoint2DSequence(
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::geometry::RealPoint2D >& rPoints );
/** Create an VCL/Tools polyPolygon from a point sequence sequence
*/
- ::PolyPolygon VCL_DLLPUBLIC polyPolygonFromPoint2DSequenceSequence(
- const ::com::sun::star::uno::Sequence<
+ ::PolyPolygon VCL_DLLPUBLIC polyPolygonFromPoint2DSequenceSequence(
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > >& rPoints );
/** Create an VCL/Tools polygon from a bezier segment sequence
*/
- ::Polygon VCL_DLLPUBLIC polygonFromBezier2DSequence(
- const ::com::sun::star::uno::Sequence<
+ ::Polygon VCL_DLLPUBLIC polygonFromBezier2DSequence(
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::geometry::RealBezierSegment2D >& rPoints );
/** Create an VCL/Tools polyPolygon from a bezier segment sequence sequence
*/
- ::PolyPolygon VCL_DLLPUBLIC polyPolygonFromBezier2DSequenceSequence(
- const ::com::sun::star::uno::Sequence<
+ ::PolyPolygon VCL_DLLPUBLIC polyPolygonFromBezier2DSequenceSequence(
+ const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealBezierSegment2D > >& rPoints );
// Bitmap conversions
@@ -127,21 +127,21 @@ namespace vcl
/** Create an XBitmap from VCL Bitmap
*/
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
- VCL_DLLPUBLIC xBitmapFromBitmap( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
- const ::Bitmap& inputBitmap );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
+ VCL_DLLPUBLIC xBitmapFromBitmap( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
+ const ::Bitmap& inputBitmap );
/** Create an XBitmap from VCL BitmapEx
*/
- ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
- VCL_DLLPUBLIC xBitmapFromBitmapEx( const ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
- const ::BitmapEx& inputBitmap );
+ ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
+ VCL_DLLPUBLIC xBitmapFromBitmapEx( const ::com::sun::star::uno::Reference<
+ ::com::sun::star::rendering::XGraphicDevice >& xGraphicDevice,
+ const ::BitmapEx& inputBitmap );
/** Create a BitmapEx from an XBitmap
*/
- ::BitmapEx VCL_DLLPUBLIC bitmapExFromXBitmap( const ::com::sun::star::uno::Reference<
+ ::BitmapEx VCL_DLLPUBLIC bitmapExFromXBitmap( const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XIntegerReadOnlyBitmap >& xInputBitmap );
/** get a unique identifier for identification in XUnoTunnel interface
@@ -157,7 +157,7 @@ namespace vcl
Note that this method assumes a color space equivalent to
the one returned from createStandardColorSpace()
*/
- ::com::sun::star::uno::Sequence< double >
+ ::com::sun::star::uno::Sequence< double >
VCL_DLLPUBLIC colorToStdColorSpaceSequence( const Color& rColor );
/** Convert color to device color sequence
@@ -168,9 +168,9 @@ namespace vcl
@param xColorSpace
Color space to convert into
*/
- ::com::sun::star::uno::Sequence< double >
+ ::com::sun::star::uno::Sequence< double >
VCL_DLLPUBLIC colorToDoubleSequence( const Color& rColor,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XColorSpace >& xColorSpace );
/** Convert from standard device color space to VCL/Tools color
@@ -178,7 +178,7 @@ namespace vcl
Note that this method assumes a color space equivalent to
the one returned from createStandardColorSpace()
*/
- Color VCL_DLLPUBLIC stdColorSpaceSequenceToColor(
+ Color VCL_DLLPUBLIC stdColorSpaceSequenceToColor(
const ::com::sun::star::uno::Sequence< double >& rColor );
/** Convert color to device color sequence
@@ -190,7 +190,7 @@ namespace vcl
Color space to convert from
*/
Color VCL_DLLPUBLIC doubleSequenceToColor( const ::com::sun::star::uno::Sequence< double > rColor,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XColorSpace >& xColorSpace );
/// Convert [0,1] double value to [0,255] int
@@ -213,41 +213,41 @@ namespace vcl
// Geometry conversions (vcl/tools <-> x)
// ===================================================================
- // geometry::Real
- ::com::sun::star::geometry::RealSize2D VCL_DLLPUBLIC size2DFromSize( const Size& );
- ::com::sun::star::geometry::RealPoint2D VCL_DLLPUBLIC point2DFromPoint( const Point& );
- ::com::sun::star::geometry::RealRectangle2D VCL_DLLPUBLIC rectangle2DFromRectangle( const Rectangle& );
+ // geometry::Real
+ ::com::sun::star::geometry::RealSize2D VCL_DLLPUBLIC size2DFromSize( const Size& );
+ ::com::sun::star::geometry::RealPoint2D VCL_DLLPUBLIC point2DFromPoint( const Point& );
+ ::com::sun::star::geometry::RealRectangle2D VCL_DLLPUBLIC rectangle2DFromRectangle( const Rectangle& );
- Size VCL_DLLPUBLIC sizeFromRealSize2D( const ::com::sun::star::geometry::RealSize2D& );
- Point VCL_DLLPUBLIC pointFromRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& );
- Rectangle VCL_DLLPUBLIC rectangleFromRealRectangle2D( const ::com::sun::star::geometry::RealRectangle2D& );
+ Size VCL_DLLPUBLIC sizeFromRealSize2D( const ::com::sun::star::geometry::RealSize2D& );
+ Point VCL_DLLPUBLIC pointFromRealPoint2D( const ::com::sun::star::geometry::RealPoint2D& );
+ Rectangle VCL_DLLPUBLIC rectangleFromRealRectangle2D( const ::com::sun::star::geometry::RealRectangle2D& );
- // geometry::Integer
- ::com::sun::star::geometry::IntegerSize2D VCL_DLLPUBLIC integerSize2DFromSize( const Size& );
- ::com::sun::star::geometry::IntegerPoint2D VCL_DLLPUBLIC integerPoint2DFromPoint( const Point& );
- ::com::sun::star::geometry::IntegerRectangle2D VCL_DLLPUBLIC integerRectangle2DFromRectangle( const Rectangle& );
+ // geometry::Integer
+ ::com::sun::star::geometry::IntegerSize2D VCL_DLLPUBLIC integerSize2DFromSize( const Size& );
+ ::com::sun::star::geometry::IntegerPoint2D VCL_DLLPUBLIC integerPoint2DFromPoint( const Point& );
+ ::com::sun::star::geometry::IntegerRectangle2D VCL_DLLPUBLIC integerRectangle2DFromRectangle( const Rectangle& );
- Size VCL_DLLPUBLIC sizeFromIntegerSize2D( const ::com::sun::star::geometry::IntegerSize2D& );
- Point VCL_DLLPUBLIC pointFromIntegerPoint2D( const ::com::sun::star::geometry::IntegerPoint2D& );
- Rectangle VCL_DLLPUBLIC rectangleFromIntegerRectangle2D( const ::com::sun::star::geometry::IntegerRectangle2D& );
+ Size VCL_DLLPUBLIC sizeFromIntegerSize2D( const ::com::sun::star::geometry::IntegerSize2D& );
+ Point VCL_DLLPUBLIC pointFromIntegerPoint2D( const ::com::sun::star::geometry::IntegerPoint2D& );
+ Rectangle VCL_DLLPUBLIC rectangleFromIntegerRectangle2D( const ::com::sun::star::geometry::IntegerRectangle2D& );
- // basegfx::B2D
- Size VCL_DLLPUBLIC sizeFromB2DSize( const ::basegfx::B2DVector& );
- Point VCL_DLLPUBLIC pointFromB2DPoint( const ::basegfx::B2DPoint& );
- Rectangle VCL_DLLPUBLIC rectangleFromB2DRectangle( const ::basegfx::B2DRange& );
+ // basegfx::B2D
+ Size VCL_DLLPUBLIC sizeFromB2DSize( const ::basegfx::B2DVector& );
+ Point VCL_DLLPUBLIC pointFromB2DPoint( const ::basegfx::B2DPoint& );
+ Rectangle VCL_DLLPUBLIC rectangleFromB2DRectangle( const ::basegfx::B2DRange& );
- basegfx::B2DVector VCL_DLLPUBLIC b2DSizeFromSize( const Size& );
- basegfx::B2DPoint VCL_DLLPUBLIC b2DPointFromPoint( const Point& );
- basegfx::B2DRange VCL_DLLPUBLIC b2DRectangleFromRectangle( const Rectangle& );
+ basegfx::B2DVector VCL_DLLPUBLIC b2DSizeFromSize( const Size& );
+ basegfx::B2DPoint VCL_DLLPUBLIC b2DPointFromPoint( const Point& );
+ basegfx::B2DRange VCL_DLLPUBLIC b2DRectangleFromRectangle( const Rectangle& );
// basegfx::B2I
- Size VCL_DLLPUBLIC sizeFromB2ISize( const ::basegfx::B2IVector& );
- Point VCL_DLLPUBLIC pointFromB2IPoint( const ::basegfx::B2IPoint& );
- Rectangle VCL_DLLPUBLIC rectangleFromB2IRectangle( const ::basegfx::B2IRange& );
+ Size VCL_DLLPUBLIC sizeFromB2ISize( const ::basegfx::B2IVector& );
+ Point VCL_DLLPUBLIC pointFromB2IPoint( const ::basegfx::B2IPoint& );
+ Rectangle VCL_DLLPUBLIC rectangleFromB2IRectangle( const ::basegfx::B2IRange& );
- basegfx::B2IVector VCL_DLLPUBLIC b2ISizeFromSize( const Size& );
- basegfx::B2IPoint VCL_DLLPUBLIC b2IPointFromPoint( const Point& );
- basegfx::B2IRange VCL_DLLPUBLIC b2IRectangleFromRectangle( const Rectangle& );
+ basegfx::B2IVector VCL_DLLPUBLIC b2ISizeFromSize( const Size& );
+ basegfx::B2IPoint VCL_DLLPUBLIC b2IPointFromPoint( const Point& );
+ basegfx::B2IRange VCL_DLLPUBLIC b2IRectangleFromRectangle( const Rectangle& );
}
}
diff --git a/vcl/inc/vcl/cmdevt.h b/vcl/inc/vcl/cmdevt.h
index 0ecf03ca22bb..2143d40b398a 100644
--- a/vcl/inc/vcl/cmdevt.h
+++ b/vcl/inc/vcl/cmdevt.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,31 +33,31 @@
// - CommandVoiceData -
// --------------------
-#define DICTATIONCOMMAND_SYSTEM 0x1000
-#define DICTATIONCOMMAND_USER 0x2000
+#define DICTATIONCOMMAND_SYSTEM 0x1000
+#define DICTATIONCOMMAND_USER 0x2000
-#define DICTATIONCOMMAND_UNKNOWN 0x0001
-#define DICTATIONCOMMAND_NEWPARAGRAPH 0x0002
-#define DICTATIONCOMMAND_NEWLINE 0x0003
-#define DICTATIONCOMMAND_BOLD_ON 0x0004
-#define DICTATIONCOMMAND_BOLD_OFF 0x0005
-#define DICTATIONCOMMAND_ITALIC_ON 0x0006
-#define DICTATIONCOMMAND_ITALIC_OFF 0x0007
-#define DICTATIONCOMMAND_UNDERLINE_ON 0x0008
-#define DICTATIONCOMMAND_UNDERLINE_OFF 0x0009
-#define DICTATIONCOMMAND_NUMBERING_ON 0x0010
-#define DICTATIONCOMMAND_NUMBERING_OFF 0x0011
-#define DICTATIONCOMMAND_TAB 0x0012
-#define DICTATIONCOMMAND_LEFT 0x0013
-#define DICTATIONCOMMAND_RIGHT 0x0014
-#define DICTATIONCOMMAND_UP 0x0015
-#define DICTATIONCOMMAND_DOWN 0x0016
-#define DICTATIONCOMMAND_UNDO 0x0017
-#define DICTATIONCOMMAND_REPEAT 0x0018
-#define DICTATIONCOMMAND_DEL 0x0019
+#define DICTATIONCOMMAND_UNKNOWN 0x0001
+#define DICTATIONCOMMAND_NEWPARAGRAPH 0x0002
+#define DICTATIONCOMMAND_NEWLINE 0x0003
+#define DICTATIONCOMMAND_BOLD_ON 0x0004
+#define DICTATIONCOMMAND_BOLD_OFF 0x0005
+#define DICTATIONCOMMAND_ITALIC_ON 0x0006
+#define DICTATIONCOMMAND_ITALIC_OFF 0x0007
+#define DICTATIONCOMMAND_UNDERLINE_ON 0x0008
+#define DICTATIONCOMMAND_UNDERLINE_OFF 0x0009
+#define DICTATIONCOMMAND_NUMBERING_ON 0x0010
+#define DICTATIONCOMMAND_NUMBERING_OFF 0x0011
+#define DICTATIONCOMMAND_TAB 0x0012
+#define DICTATIONCOMMAND_LEFT 0x0013
+#define DICTATIONCOMMAND_RIGHT 0x0014
+#define DICTATIONCOMMAND_UP 0x0015
+#define DICTATIONCOMMAND_DOWN 0x0016
+#define DICTATIONCOMMAND_UNDO 0x0017
+#define DICTATIONCOMMAND_REPEAT 0x0018
+#define DICTATIONCOMMAND_DEL 0x0019
-#define DICTATIONCOMMAND_COMMANDMODE (DICTATIONCOMMAND_SYSTEM + 1)
-#define DICTATIONCOMMAND_DICTATIONMODE (DICTATIONCOMMAND_SYSTEM + 2)
+#define DICTATIONCOMMAND_COMMANDMODE (DICTATIONCOMMAND_SYSTEM + 1)
+#define DICTATIONCOMMAND_DICTATIONMODE (DICTATIONCOMMAND_SYSTEM + 2)
#endif // _VCL_CMDEVT_H
diff --git a/vcl/inc/vcl/cmdevt.hxx b/vcl/inc/vcl/cmdevt.hxx
index 24508a3b3e2f..02ffb79bd3f4 100644
--- a/vcl/inc/vcl/cmdevt.hxx
+++ b/vcl/inc/vcl/cmdevt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -164,7 +164,7 @@ public:
{ return ((mnCode & KEY_MOD1) != 0); }
BOOL IsMod2() const
{ return ((mnCode & KEY_MOD2) != 0); }
- BOOL IsMod3() const
+ BOOL IsMod3() const
{ return ((mnCode & KEY_MOD3) != 0); }
};
@@ -319,7 +319,7 @@ class VCL_DLLPUBLIC CommandDialogData
CommandDialogData( int nDialogId = SHOWDIALOG_ID_PREFERENCES )
: m_nDialogId( nDialogId )
{}
-
+
int GetDialogId() const { return m_nDialogId; }
};
@@ -327,23 +327,23 @@ class VCL_DLLPUBLIC CommandDialogData
// Media Commands
// --------------
-#define MEDIA_COMMAND_CHANNEL_DOWN ((sal_Int16)1) // Decrement the channel value, for example, for a TV or radio tuner.
-#define MEDIA_COMMAND_CHANNEL_UP ((sal_Int16)2) // Increment the channel value, for example, for a TV or radio tuner.
-#define MEDIA_COMMAND_NEXTTRACK ((sal_Int16)3) // Go to next media track/slide.
-#define MEDIA_COMMAND_PAUSE ((sal_Int16)4) // Pause. If already paused, take no further action. This is a direct PAUSE command that has no state.
-#define MEDIA_COMMAND_PLAY ((sal_Int16)5) // Begin playing at the current position. If already paused, it will resume. This is a direct PLAY command that has no state.
-#define MEDIA_COMMAND_PLAY_PAUSE ((sal_Int16)6) // Play or pause playback.
-#define MEDIA_COMMAND_PREVIOUSTRACK ((sal_Int16)7) // Go to previous media track/slide.
-#define MEDIA_COMMAND_RECORD ((sal_Int16)8) // Begin recording the current stream.
-#define MEDIA_COMMAND_REWIND ((sal_Int16)9)// Go backward in a stream at a higher rate of speed.
-#define MEDIA_COMMAND_STOP ((sal_Int16)10)// Stop playback.
-#define MEDIA_COMMAND_MIC_ON_OFF_TOGGLE ((sal_Int16)11)// Toggle the microphone.
+#define MEDIA_COMMAND_CHANNEL_DOWN ((sal_Int16)1) // Decrement the channel value, for example, for a TV or radio tuner.
+#define MEDIA_COMMAND_CHANNEL_UP ((sal_Int16)2) // Increment the channel value, for example, for a TV or radio tuner.
+#define MEDIA_COMMAND_NEXTTRACK ((sal_Int16)3) // Go to next media track/slide.
+#define MEDIA_COMMAND_PAUSE ((sal_Int16)4) // Pause. If already paused, take no further action. This is a direct PAUSE command that has no state.
+#define MEDIA_COMMAND_PLAY ((sal_Int16)5) // Begin playing at the current position. If already paused, it will resume. This is a direct PLAY command that has no state.
+#define MEDIA_COMMAND_PLAY_PAUSE ((sal_Int16)6) // Play or pause playback.
+#define MEDIA_COMMAND_PREVIOUSTRACK ((sal_Int16)7) // Go to previous media track/slide.
+#define MEDIA_COMMAND_RECORD ((sal_Int16)8) // Begin recording the current stream.
+#define MEDIA_COMMAND_REWIND ((sal_Int16)9)// Go backward in a stream at a higher rate of speed.
+#define MEDIA_COMMAND_STOP ((sal_Int16)10)// Stop playback.
+#define MEDIA_COMMAND_MIC_ON_OFF_TOGGLE ((sal_Int16)11)// Toggle the microphone.
#define MEDIA_COMMAND_MICROPHONE_VOLUME_DOWN ((sal_Int16)12)// Increase microphone volume.
#define MEDIA_COMMAND_MICROPHONE_VOLUME_MUTE ((sal_Int16)13)// Mute the microphone.
#define MEDIA_COMMAND_MICROPHONE_VOLUME_UP ((sal_Int16)14)// Decrease microphone volume.
-#define MEDIA_COMMAND_VOLUME_DOWN ((sal_Int16)15)// Lower the volume.
-#define MEDIA_COMMAND_VOLUME_MUTE ((sal_Int16)16)// Mute the volume.
-#define MEDIA_COMMAND_VOLUME_UP ((sal_Int16)17)// Raise the volume.
+#define MEDIA_COMMAND_VOLUME_DOWN ((sal_Int16)15)// Lower the volume.
+#define MEDIA_COMMAND_VOLUME_MUTE ((sal_Int16)16)// Mute the volume.
+#define MEDIA_COMMAND_VOLUME_UP ((sal_Int16)17)// Raise the volume.
#define MEDIA_COMMAND_MENU ((sal_Int16)18)// Button Menu pressed.
#define MEDIA_COMMAND_MENU_HOLD ((sal_Int16)19)// Button Menu (long) pressed.
#define MEDIA_COMMAND_PLAY_HOLD ((sal_Int16)20)// Button Play (long) pressed.
@@ -401,7 +401,7 @@ inline CommandSelectionChangeData::CommandSelectionChangeData( ULONG nStart,
#define COMMAND_HANGUL_HANJA_CONVERSION ((USHORT)14)
#define COMMAND_INPUTLANGUAGECHANGE ((USHORT)15)
#define COMMAND_SHOWDIALOG ((USHORT)16)
-#define COMMAND_MEDIA ((USHORT)17)
+#define COMMAND_MEDIA ((USHORT)17)
#define COMMAND_SELECTIONCHANGE ((USHORT)18)
#define COMMAND_PREPARERECONVERSION ((USHORT)19)
#define COMMAND_USER ((USHORT)4096)
@@ -429,9 +429,9 @@ public:
const CommandWheelData* GetWheelData() const;
const CommandScrollData* GetAutoScrollData() const;
const CommandVoiceData* GetVoiceData() const;
- const CommandModKeyData* GetModKeyData() const;
+ const CommandModKeyData* GetModKeyData() const;
const CommandDialogData* GetDialogData() const;
- sal_Int16 GetMediaCommand() const;
+ sal_Int16 GetMediaCommand() const;
const CommandSelectionChangeData* GetSelectionChangeData() const;
};
diff --git a/vcl/inc/vcl/combobox.h b/vcl/inc/vcl/combobox.h
index cfcec12d75bc..14057dfcce0d 100644
--- a/vcl/inc/vcl/combobox.h
+++ b/vcl/inc/vcl/combobox.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,12 +29,12 @@
#ifndef _SV_COMBOBOX_H
#define _SV_COMBOBOX_H
-#define COMBOBOX_APPEND ((USHORT)0xFFFF)
-#define COMBOBOX_ENTRY_NOTFOUND ((USHORT)0xFFFF)
-#define COMBOBOX_ERROR ((USHORT)0xFFFF)
+#define COMBOBOX_APPEND ((USHORT)0xFFFF)
+#define COMBOBOX_ENTRY_NOTFOUND ((USHORT)0xFFFF)
+#define COMBOBOX_ERROR ((USHORT)0xFFFF)
-#define COMBOBOX_USERDRAW_SELECTED ((USHORT)0x0001)
+#define COMBOBOX_USERDRAW_SELECTED ((USHORT)0x0001)
-#endif // _SV_COMBOBOX_H
+#endif // _SV_COMBOBOX_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/combobox.hxx b/vcl/inc/vcl/combobox.hxx
index 3ab9f6dfa630..b232de1bc54c 100644
--- a/vcl/inc/vcl/combobox.hxx
+++ b/vcl/inc/vcl/combobox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -107,11 +107,11 @@ public:
virtual void SetPosSizePixel( long nX, long nY, long nWidth, long nHeight, USHORT nFlags = WINDOW_POSSIZE_ALL );
void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
{ Edit::SetPosSizePixel( rNewPos, rNewSize ); }
- void SetDropDownSizePixel( const Size& rNewSize )
+ void SetDropDownSizePixel( const Size& rNewSize )
{ if( IsDropDownBox() ) SetPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(), WINDOW_POSSIZE_SIZE | WINDOW_POSSIZE_DROPDOWN ); }
- Rectangle GetDropDownPosSizePixel() const;
- Rectangle GetListPosSizePixel() const;
+ Rectangle GetDropDownPosSizePixel() const;
+ Rectangle GetListPosSizePixel() const;
// returns empty rectangle in DropDown mode,
// else it returns the PosSize of the ListBox
@@ -143,7 +143,7 @@ public:
BOOL IsTravelSelect() const;
BOOL IsInDropDown() const;
- void ToggleDropDown();
+ void ToggleDropDown();
long CalcWindowSizePixel( USHORT nLines ) const;
@@ -188,20 +188,20 @@ public:
void SetEntryData( USHORT nPos, void* pNewData );
void* GetEntryData( USHORT nPos ) const;
- void SetTopEntry( USHORT nPos );
+ void SetTopEntry( USHORT nPos );
void ShowProminentEntry( USHORT nPos );
- USHORT GetTopEntry() const;
+ USHORT GetTopEntry() const;
void SetProminentEntryType( ProminentEntry eType );
ProminentEntry GetProminentEntryType() const;
- USHORT GetDisplayLineCount() const;
+ USHORT GetDisplayLineCount() const;
- USHORT GetSelectEntryCount() const;
- USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const;
- BOOL IsEntryPosSelected( USHORT nPos ) const;
- void SelectEntryPos( USHORT nPos, BOOL bSelect = TRUE );
- void SetNoSelection();
+ USHORT GetSelectEntryCount() const;
+ USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const;
+ BOOL IsEntryPosSelected( USHORT nPos ) const;
+ void SelectEntryPos( USHORT nPos, BOOL bSelect = TRUE );
+ void SetNoSelection();
Rectangle GetBoundingRectangle( USHORT nItem ) const;
/** checks whether a certain point lies within the bounds of
diff --git a/vcl/inc/vcl/configsettings.hxx b/vcl/inc/vcl/configsettings.hxx
index c40e9681513d..e33e76d4520f 100644
--- a/vcl/inc/vcl/configsettings.hxx
+++ b/vcl/inc/vcl/configsettings.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ namespace vcl
const rtl::OUString& getValue( const rtl::OUString& rGroup, const rtl::OUString& rKey ) const;
void setValue( const rtl::OUString& rGroup, const rtl::OUString& rKey, const rtl::OUString& rValue );
-
+
virtual void Commit();
};
diff --git a/vcl/inc/vcl/controldata.hxx b/vcl/inc/vcl/controldata.hxx
index b30184be2481..0306a8d395f6 100644
--- a/vcl/inc/vcl/controldata.hxx
+++ b/vcl/inc/vcl/controldata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/controllayout.hxx b/vcl/inc/vcl/controllayout.hxx
index 0cad923c6b33..3d43f0177061 100644
--- a/vcl/inc/vcl/controllayout.hxx
+++ b/vcl/inc/vcl/controllayout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,14 +44,14 @@ struct VCL_DLLPUBLIC ControlLayoutData
// contains the string really displayed
// there must be exactly one bounding rectangle in m_aUnicodeBoundRects
// for every character in m_aDisplayText
- String m_aDisplayText;
+ String m_aDisplayText;
// the bounding rectangle of every character
// where one character may consist of many glyphs
- std::vector< Rectangle > m_aUnicodeBoundRects;
+ std::vector< Rectangle > m_aUnicodeBoundRects;
// start indices of lines
- std::vector< long > m_aLineIndices;
+ std::vector< long > m_aLineIndices;
// notify parent control on destruction
- const Control* m_pParent;
+ const Control* m_pParent;
ControlLayoutData() : m_pParent( NULL ) {}
~ControlLayoutData();
diff --git a/vcl/inc/vcl/ctrl.hxx b/vcl/inc/vcl/ctrl.hxx
index 1790096f8cdd..f9d423a7b6d4 100644
--- a/vcl/inc/vcl/ctrl.hxx
+++ b/vcl/inc/vcl/ctrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,9 +48,9 @@ protected:
::vcl::ImplControlData* mpControlData;
private:
- BOOL mbHasFocus;
- Link maGetFocusHdl;
- Link maLoseFocusHdl;
+ BOOL mbHasFocus;
+ Link maGetFocusHdl;
+ Link maLoseFocusHdl;
SAL_DLLPRIVATE void ImplInitControlData();
@@ -60,10 +60,10 @@ private:
protected:
Control( WindowType nType );
- virtual void FillLayoutData() const;
+ virtual void FillLayoutData() const;
// helper method for composite controls
- void AppendLayoutData( const Control& rSubControl ) const;
+ void AppendLayoutData( const Control& rSubControl ) const;
/// creates the mpData->mpLayoutData structure
void CreateLayoutData() const;
@@ -87,7 +87,7 @@ protected:
@return
if the Control instance has been destroyed in any of the call
*/
- BOOL ImplCallEventListenersAndHandler(
+ BOOL ImplCallEventListenersAndHandler(
ULONG nEvent, const Link& rHandler, void* pCaller
);
@@ -137,15 +137,15 @@ public:
Control( Window* pParent, const ResId& rResId );
~Control();
- virtual void GetFocus();
- virtual void LoseFocus();
- virtual long Notify( NotifyEvent& rNEvt );
- virtual void StateChanged( StateChangedType nStateChange );
+ virtual void GetFocus();
+ virtual void LoseFocus();
+ virtual long Notify( NotifyEvent& rNEvt );
+ virtual void StateChanged( StateChangedType nStateChange );
virtual void Resize();
virtual void DataChanged( const DataChangedEvent& rDCEvt );
// invalidates layout data
- virtual void SetText( const String& rStr );
+ virtual void SetText( const String& rStr );
// gets the displayed text
virtual String GetDisplayText() const;
// returns the bounding box for the character at index nIndex (in control coordinates)
@@ -173,12 +173,12 @@ public:
*/
long ToRelativeLineIndex( long nIndex ) const;
- void SetGetFocusHdl( const Link& rLink ) { maGetFocusHdl = rLink; }
- const Link& GetGetFocusHdl() const { return maGetFocusHdl; }
- void SetLoseFocusHdl( const Link& rLink ) { maLoseFocusHdl = rLink; }
- const Link& GetLoseFocusHdl() const { return maLoseFocusHdl; }
+ void SetGetFocusHdl( const Link& rLink ) { maGetFocusHdl = rLink; }
+ const Link& GetGetFocusHdl() const { return maGetFocusHdl; }
+ void SetLoseFocusHdl( const Link& rLink ) { maLoseFocusHdl = rLink; }
+ const Link& GetLoseFocusHdl() const { return maLoseFocusHdl; }
- void SetLayoutDataParent( const Control* pParent ) const;
+ void SetLayoutDataParent( const Control* pParent ) const;
virtual Size GetOptimalSize(WindowSizeType eType) const;
@@ -197,6 +197,6 @@ public:
}
};
-#endif // _SV_CTRL_HXX
+#endif // _SV_CTRL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/cursor.hxx b/vcl/inc/vcl/cursor.hxx
index f1f07957db96..afa8c9324705 100644
--- a/vcl/inc/vcl/cursor.hxx
+++ b/vcl/inc/vcl/cursor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ class Window;
// - Cursor-Styles -
// -----------------
-#define CURSOR_SHADOW ((USHORT)0x0001)
+#define CURSOR_SHADOW ((USHORT)0x0001)
#define CURSOR_DIRECTION_NONE ((unsigned char)0x00)
#define CURSOR_DIRECTION_LTR ((unsigned char)0x01)
#define CURSOR_DIRECTION_RTL ((unsigned char)0x02)
@@ -54,67 +54,67 @@ class Window;
class VCL_DLLPUBLIC Cursor
{
private:
- ImplCursorData* mpData; // Interne Daten
- Window* mpWindow; // Window (only for shadow cursor)
- long mnSlant; // Schraegstellung
- long mnOffsetY; // Offset fuer Rotation
- Size maSize; // Groesse
- Point maPos; // Position
- short mnOrientation; // Rotation
- USHORT mnStyle; // Style
- BOOL mbVisible; // Ist Cursor sichtbar
- unsigned char mnDirection; // indicates direction
+ ImplCursorData* mpData; // Interne Daten
+ Window* mpWindow; // Window (only for shadow cursor)
+ long mnSlant; // Schraegstellung
+ long mnOffsetY; // Offset fuer Rotation
+ Size maSize; // Groesse
+ Point maPos; // Position
+ short mnOrientation; // Rotation
+ USHORT mnStyle; // Style
+ BOOL mbVisible; // Ist Cursor sichtbar
+ unsigned char mnDirection; // indicates direction
public:
- SAL_DLLPRIVATE void ImplDraw();
- SAL_DLLPRIVATE void ImplRestore();
+ SAL_DLLPRIVATE void ImplDraw();
+ SAL_DLLPRIVATE void ImplRestore();
DECL_DLLPRIVATE_LINK( ImplTimerHdl, AutoTimer* );
- SAL_DLLPRIVATE void ImplShow( BOOL bDrawDirect = TRUE );
- SAL_DLLPRIVATE void ImplHide();
- SAL_DLLPRIVATE void ImplNew();
+ SAL_DLLPRIVATE void ImplShow( BOOL bDrawDirect = TRUE );
+ SAL_DLLPRIVATE void ImplHide();
+ SAL_DLLPRIVATE void ImplNew();
public:
Cursor();
Cursor( const Cursor& rCursor );
~Cursor();
- void SetStyle( USHORT nStyle );
- USHORT GetStyle() const { return mnStyle; }
+ void SetStyle( USHORT nStyle );
+ USHORT GetStyle() const { return mnStyle; }
- void Show();
- void Hide();
- BOOL IsVisible() const { return mbVisible; }
+ void Show();
+ void Hide();
+ BOOL IsVisible() const { return mbVisible; }
- void SetWindow( Window* pWindow );
- Window* GetWindow() const { return mpWindow; }
+ void SetWindow( Window* pWindow );
+ Window* GetWindow() const { return mpWindow; }
- void SetPos( const Point& rNewPos );
- const Point& GetPos() const { return maPos; }
- void SetOffsetY( long mnOffsetY = 0 );
- long GetOffsetY() const { return mnOffsetY; }
+ void SetPos( const Point& rNewPos );
+ const Point& GetPos() const { return maPos; }
+ void SetOffsetY( long mnOffsetY = 0 );
+ long GetOffsetY() const { return mnOffsetY; }
- void SetSize( const Size& rNewSize );
- const Size& GetSize() const { return maSize; }
- void SetWidth( long nNewWidth );
- long GetWidth() const { return maSize.Width(); }
- void SetHeight( long nNewHeight );
- long GetHeight() const { return maSize.Height(); }
+ void SetSize( const Size& rNewSize );
+ const Size& GetSize() const { return maSize; }
+ void SetWidth( long nNewWidth );
+ long GetWidth() const { return maSize.Width(); }
+ void SetHeight( long nNewHeight );
+ long GetHeight() const { return maSize.Height(); }
- void SetSlant( long nSlant = 0 );
- long GetSlant() const { return mnSlant; }
+ void SetSlant( long nSlant = 0 );
+ long GetSlant() const { return mnSlant; }
- void SetOrientation( short nOrientation = 0 );
- short GetOrientation() const { return mnOrientation; }
+ void SetOrientation( short nOrientation = 0 );
+ short GetOrientation() const { return mnOrientation; }
- void SetDirection( unsigned char nDirection = 0 );
- unsigned char GetDirection() const { return mnDirection; }
+ void SetDirection( unsigned char nDirection = 0 );
+ unsigned char GetDirection() const { return mnDirection; }
- Cursor& operator=( const Cursor& rCursor );
- BOOL operator==( const Cursor& rCursor ) const;
- BOOL operator!=( const Cursor& rCursor ) const
+ Cursor& operator=( const Cursor& rCursor );
+ BOOL operator==( const Cursor& rCursor ) const;
+ BOOL operator!=( const Cursor& rCursor ) const
{ return !(Cursor::operator==( rCursor )); }
};
-#endif // _SV_CURSOR_HXX
+#endif // _SV_CURSOR_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/cvtgrf.hxx b/vcl/inc/vcl/cvtgrf.hxx
index 37a3c271b52c..259f28c84b40 100644
--- a/vcl/inc/vcl/cvtgrf.hxx
+++ b/vcl/inc/vcl/cvtgrf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,15 +37,15 @@
// - GraphicConverter -
// --------------------
-struct ConvertData;
-class Graphic;
+struct ConvertData;
+class Graphic;
class VCL_DLLPUBLIC GraphicConverter
{
private:
- Link maFilterHdl;
- ConvertData* mpConvertData;
+ Link maFilterHdl;
+ ConvertData* mpConvertData;
public:
SAL_DLLPRIVATE ULONG ImplConvert( ULONG nInFormat, void* pInBuffer, ULONG nInBufSize,
@@ -56,13 +56,13 @@ public:
GraphicConverter();
~GraphicConverter();
- static ULONG Import( SvStream& rIStm, Graphic& rGraphic, ULONG nFormat = CVT_UNKNOWN );
- static ULONG Export( SvStream& rOStm, const Graphic& rGraphic, ULONG nFormat );
+ static ULONG Import( SvStream& rIStm, Graphic& rGraphic, ULONG nFormat = CVT_UNKNOWN );
+ static ULONG Export( SvStream& rOStm, const Graphic& rGraphic, ULONG nFormat );
- ConvertData* GetConvertData() { return mpConvertData; }
+ ConvertData* GetConvertData() { return mpConvertData; }
- void SetFilterHdl( const Link& rLink ) { maFilterHdl = rLink; }
- const Link& GetFilterHdl() const { return maFilterHdl; }
+ void SetFilterHdl( const Link& rLink ) { maFilterHdl = rLink; }
+ const Link& GetFilterHdl() const { return maFilterHdl; }
};
#endif // _SV_CVTGRF_HXX
diff --git a/vcl/inc/vcl/cvtsvm.hxx b/vcl/inc/vcl/cvtsvm.hxx
index f7c45f50ed16..0b41f6f64338 100644
--- a/vcl/inc/vcl/cvtsvm.hxx
+++ b/vcl/inc/vcl/cvtsvm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,55 +37,55 @@
// - Defines -
// -----------
-#define CONVERT_TO_SVM1 0x00000001UL
-#define CONVERT_FROM_SVM1 0x00000002UL
+#define CONVERT_TO_SVM1 0x00000001UL
+#define CONVERT_FROM_SVM1 0x00000002UL
-#define GDI_PIXEL_ACTION 1
-#define GDI_POINT_ACTION 2
-#define GDI_LINE_ACTION 3
-#define GDI_RECT_ACTION 4
-#define GDI_ELLIPSE_ACTION 5
-#define GDI_ARC_ACTION 6
-#define GDI_PIE_ACTION 7
-#define GDI_INVERTRECT_ACTION 8
-#define GDI_HIGHLIGHTRECT_ACTION 9
-#define GDI_POLYLINE_ACTION 10
-#define GDI_POLYGON_ACTION 11
-#define GDI_POLYPOLYGON_ACTION 12
-#define GDI_TEXT_ACTION 13
-#define GDI_TEXTARRAY_ACTION 14
-#define GDI_STRETCHTEXT_ACTION 15
-#define GDI_ICON_ACTION 16
-#define GDI_BITMAP_ACTION 17
-#define GDI_BITMAPSCALE_ACTION 18
-#define GDI_PEN_ACTION 19
-#define GDI_FONT_ACTION 20
-#define GDI_BACKBRUSH_ACTION 21
-#define GDI_FILLBRUSH_ACTION 22
-#define GDI_MAPMODE_ACTION 23
-#define GDI_CLIPREGION_ACTION 24
-#define GDI_RASTEROP_ACTION 25
-#define GDI_PUSH_ACTION 26
-#define GDI_POP_ACTION 27
-#define GDI_MOVECLIPREGION_ACTION 28
-#define GDI_ISECTCLIPREGION_ACTION 29
-#define GDI_MTF_ACTION 30
-#define GDI_BITMAPSCALEPART_ACTION 32
-#define GDI_GRADIENT_ACTION 33
+#define GDI_PIXEL_ACTION 1
+#define GDI_POINT_ACTION 2
+#define GDI_LINE_ACTION 3
+#define GDI_RECT_ACTION 4
+#define GDI_ELLIPSE_ACTION 5
+#define GDI_ARC_ACTION 6
+#define GDI_PIE_ACTION 7
+#define GDI_INVERTRECT_ACTION 8
+#define GDI_HIGHLIGHTRECT_ACTION 9
+#define GDI_POLYLINE_ACTION 10
+#define GDI_POLYGON_ACTION 11
+#define GDI_POLYPOLYGON_ACTION 12
+#define GDI_TEXT_ACTION 13
+#define GDI_TEXTARRAY_ACTION 14
+#define GDI_STRETCHTEXT_ACTION 15
+#define GDI_ICON_ACTION 16
+#define GDI_BITMAP_ACTION 17
+#define GDI_BITMAPSCALE_ACTION 18
+#define GDI_PEN_ACTION 19
+#define GDI_FONT_ACTION 20
+#define GDI_BACKBRUSH_ACTION 21
+#define GDI_FILLBRUSH_ACTION 22
+#define GDI_MAPMODE_ACTION 23
+#define GDI_CLIPREGION_ACTION 24
+#define GDI_RASTEROP_ACTION 25
+#define GDI_PUSH_ACTION 26
+#define GDI_POP_ACTION 27
+#define GDI_MOVECLIPREGION_ACTION 28
+#define GDI_ISECTCLIPREGION_ACTION 29
+#define GDI_MTF_ACTION 30
+#define GDI_BITMAPSCALEPART_ACTION 32
+#define GDI_GRADIENT_ACTION 33
-#define GDI_TRANSPARENT_COMMENT 1024
-#define GDI_HATCH_COMMENT 1025
-#define GDI_REFPOINT_COMMENT 1026
-#define GDI_TEXTLINECOLOR_COMMENT 1027
-#define GDI_TEXTLINE_COMMENT 1028
-#define GDI_FLOATTRANSPARENT_COMMENT 1029
-#define GDI_GRADIENTEX_COMMENT 1030
-#define GDI_COMMENT_COMMENT 1031
-#define GDI_UNICODE_COMMENT 1032
+#define GDI_TRANSPARENT_COMMENT 1024
+#define GDI_HATCH_COMMENT 1025
+#define GDI_REFPOINT_COMMENT 1026
+#define GDI_TEXTLINECOLOR_COMMENT 1027
+#define GDI_TEXTLINE_COMMENT 1028
+#define GDI_FLOATTRANSPARENT_COMMENT 1029
+#define GDI_GRADIENTEX_COMMENT 1030
+#define GDI_COMMENT_COMMENT 1031
+#define GDI_UNICODE_COMMENT 1032
-#define GDI_LINEJOIN_ACTION 1033
-#define GDI_EXTENDEDPOLYGON_ACTION 1034
-#define GDI_LINEDASHDOT_ACTION 1035
+#define GDI_LINEJOIN_ACTION 1033
+#define GDI_EXTENDEDPOLYGON_ACTION 1034
+#define GDI_LINEDASHDOT_ACTION 1035
// ----------------
// - SVMConverter -
@@ -96,9 +96,9 @@ class Stack;
class VCL_DLLPUBLIC SVMConverter
{
private:
- SAL_DLLPRIVATE void ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf );
- SAL_DLLPRIVATE void ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf );
- SAL_DLLPRIVATE ULONG ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
+ SAL_DLLPRIVATE void ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf );
+ SAL_DLLPRIVATE void ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf );
+ SAL_DLLPRIVATE ULONG ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
VirtualDevice& rSaveVDev, BOOL& rRop_0_1,
Color& rLineCol, Stack& rLineColStack,
rtl_TextEncoding& rActualCharSet );
@@ -110,7 +110,7 @@ public:
private:
// Not implemented
SVMConverter( const SVMConverter& );
- SVMConverter& operator=( const SVMConverter& );
+ SVMConverter& operator=( const SVMConverter& );
};
#endif // _SV_CVTMTF_HXX
diff --git a/vcl/inc/vcl/dbggui.hxx b/vcl/inc/vcl/dbggui.hxx
index 326111273a1c..55777f7b06e3 100644
--- a/vcl/inc/vcl/dbggui.hxx
+++ b/vcl/inc/vcl/dbggui.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/decoview.hxx b/vcl/inc/vcl/decoview.hxx
index f5317c204a29..1b81be0bbbfe 100644
--- a/vcl/inc/vcl/decoview.hxx
+++ b/vcl/inc/vcl/decoview.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,45 +43,45 @@ class OutputDevice;
// ------------------------
// Flags for DrawSymbol()
-#define SYMBOL_DRAW_MONO ((USHORT)0x0001)
-#define SYMBOL_DRAW_DISABLE ((USHORT)0x0002)
+#define SYMBOL_DRAW_MONO ((USHORT)0x0001)
+#define SYMBOL_DRAW_DISABLE ((USHORT)0x0002)
// Flags for DrawFrame()
-#define FRAME_DRAW_IN ((USHORT)0x0001)
-#define FRAME_DRAW_OUT ((USHORT)0x0002)
-#define FRAME_DRAW_GROUP ((USHORT)0x0003)
-#define FRAME_DRAW_DOUBLEIN ((USHORT)0x0004)
-#define FRAME_DRAW_DOUBLEOUT ((USHORT)0x0005)
+#define FRAME_DRAW_IN ((USHORT)0x0001)
+#define FRAME_DRAW_OUT ((USHORT)0x0002)
+#define FRAME_DRAW_GROUP ((USHORT)0x0003)
+#define FRAME_DRAW_DOUBLEIN ((USHORT)0x0004)
+#define FRAME_DRAW_DOUBLEOUT ((USHORT)0x0005)
#define FRAME_DRAW_MENU ((USHORT)0x0010)
#define FRAME_DRAW_WINDOWBORDER ((USHORT)0x0020)
#define FRAME_DRAW_BORDERWINDOWBORDER ((USHORT)0x0040)
-#define FRAME_DRAW_MONO ((USHORT)0x1000)
-#define FRAME_DRAW_NODRAW ((USHORT)0x8000)
-#define FRAME_DRAW_STYLE ((USHORT)0x000F)
+#define FRAME_DRAW_MONO ((USHORT)0x1000)
+#define FRAME_DRAW_NODRAW ((USHORT)0x8000)
+#define FRAME_DRAW_STYLE ((USHORT)0x000F)
// Flags for DrawHighlightFrame()
-#define FRAME_HIGHLIGHT_IN ((USHORT)0x0001)
-#define FRAME_HIGHLIGHT_OUT ((USHORT)0x0002)
-#define FRAME_HIGHLIGHT_TESTBACKGROUND ((USHORT)0x4000)
-#define FRAME_HIGHLIGHT_STYLE ((USHORT)0x000F)
+#define FRAME_HIGHLIGHT_IN ((USHORT)0x0001)
+#define FRAME_HIGHLIGHT_OUT ((USHORT)0x0002)
+#define FRAME_HIGHLIGHT_TESTBACKGROUND ((USHORT)0x4000)
+#define FRAME_HIGHLIGHT_STYLE ((USHORT)0x000F)
// Flags for DrawButton()
-#define BUTTON_DRAW_DEFAULT ((USHORT)0x0001)
-#define BUTTON_DRAW_NOLIGHTBORDER ((USHORT)0x0002)
-#define BUTTON_DRAW_PRESSED ((USHORT)0x0004)
-#define BUTTON_DRAW_CHECKED ((USHORT)0x0008)
-#define BUTTON_DRAW_DONTKNOW ((USHORT)0x0010)
-#define BUTTON_DRAW_MONO ((USHORT)0x0020)
-#define BUTTON_DRAW_NOFILL ((USHORT)0x0040)
-#define BUTTON_DRAW_DISABLED ((USHORT)0x0080)
-#define BUTTON_DRAW_HIGHLIGHT ((USHORT)0x0100)
-#define BUTTON_DRAW_FLAT ((USHORT)0x0200)
-#define BUTTON_DRAW_NOTOPLIGHTBORDER ((USHORT)0x0400)
-#define BUTTON_DRAW_NOBOTTOMSHADOWBORDER ((USHORT)0x0800)
-#define BUTTON_DRAW_NOLEFTLIGHTBORDER ((USHORT)0x1000)
-#define BUTTON_DRAW_NOTEXT ((USHORT)0x2000)
-#define BUTTON_DRAW_NOIMAGE ((USHORT)0x4000)
-#define BUTTON_DRAW_NODRAW ((USHORT)0x8000)
+#define BUTTON_DRAW_DEFAULT ((USHORT)0x0001)
+#define BUTTON_DRAW_NOLIGHTBORDER ((USHORT)0x0002)
+#define BUTTON_DRAW_PRESSED ((USHORT)0x0004)
+#define BUTTON_DRAW_CHECKED ((USHORT)0x0008)
+#define BUTTON_DRAW_DONTKNOW ((USHORT)0x0010)
+#define BUTTON_DRAW_MONO ((USHORT)0x0020)
+#define BUTTON_DRAW_NOFILL ((USHORT)0x0040)
+#define BUTTON_DRAW_DISABLED ((USHORT)0x0080)
+#define BUTTON_DRAW_HIGHLIGHT ((USHORT)0x0100)
+#define BUTTON_DRAW_FLAT ((USHORT)0x0200)
+#define BUTTON_DRAW_NOTOPLIGHTBORDER ((USHORT)0x0400)
+#define BUTTON_DRAW_NOBOTTOMSHADOWBORDER ((USHORT)0x0800)
+#define BUTTON_DRAW_NOLEFTLIGHTBORDER ((USHORT)0x1000)
+#define BUTTON_DRAW_NOTEXT ((USHORT)0x2000)
+#define BUTTON_DRAW_NOIMAGE ((USHORT)0x4000)
+#define BUTTON_DRAW_NODRAW ((USHORT)0x8000)
// ------------------
// - DecorationView -
@@ -90,21 +90,21 @@ class OutputDevice;
class VCL_DLLPUBLIC DecorationView
{
private:
- OutputDevice* mpOutDev;
+ OutputDevice* mpOutDev;
public:
DecorationView( OutputDevice* pOutDev )
{ mpOutDev = pOutDev; }
- void DrawSymbol( const Rectangle& rRect, SymbolType eType,
+ void DrawSymbol( const Rectangle& rRect, SymbolType eType,
const Color& rColor, USHORT nStyle = 0 );
- void DrawFrame( const Rectangle& rRect,
+ void DrawFrame( const Rectangle& rRect,
const Color& rLeftTopColor,
const Color& rRightBottomColor );
- void DrawHighlightFrame( const Rectangle& rRect,
+ void DrawHighlightFrame( const Rectangle& rRect,
USHORT nStyle = FRAME_HIGHLIGHT_OUT );
- Rectangle DrawFrame( const Rectangle& rRect, USHORT nStyle = FRAME_DRAW_OUT );
- Rectangle DrawButton( const Rectangle& rRect, USHORT nStyle );
+ Rectangle DrawFrame( const Rectangle& rRect, USHORT nStyle = FRAME_DRAW_OUT );
+ Rectangle DrawButton( const Rectangle& rRect, USHORT nStyle );
void DrawSeparator( const Point& rStart, const Point& rStop, bool bVertical = true );
};
diff --git a/vcl/inc/vcl/dialog.hxx b/vcl/inc/vcl/dialog.hxx
index 404b18127af8..0f7dbfd0082a 100644
--- a/vcl/inc/vcl/dialog.hxx
+++ b/vcl/inc/vcl/dialog.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,15 +46,15 @@ struct DialogImpl;
class VCL_DLLPUBLIC Dialog : public SystemWindow
{
private:
- Window* mpDialogParent;
- Dialog* mpPrevExecuteDlg;
+ Window* mpDialogParent;
+ Dialog* mpPrevExecuteDlg;
DialogImpl* mpDialogImpl;
- long mnMousePositioned;
- BOOL mbInExecute;
- BOOL mbOldSaveBack;
- BOOL mbInClose;
- BOOL mbModalMode;
- sal_Int8 mnCancelClose; //liuchen 2009-7-22, support Excel VBA UserForm_QueryClose event
+ long mnMousePositioned;
+ BOOL mbInExecute;
+ BOOL mbOldSaveBack;
+ BOOL mbInClose;
+ BOOL mbModalMode;
+ sal_Int8 mnCancelClose; //liuchen 2009-7-22, support Excel VBA UserForm_QueryClose event
SAL_DLLPRIVATE void ImplInitDialogData();
SAL_DLLPRIVATE void ImplInitSettings();
@@ -75,24 +75,24 @@ public:
protected:
Dialog( WindowType nType );
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
public:
Dialog( Window* pParent, WinBits nStyle = WB_STDDIALOG );
Dialog( Window* pParent, const ResId& rResId );
virtual ~Dialog();
- virtual long Notify( NotifyEvent& rNEvt );
- virtual void StateChanged( StateChangedType nStateChange );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual BOOL Close();
+ virtual BOOL Close();
- virtual short Execute();
- BOOL IsInExecute() const { return mbInExecute; }
+ virtual short Execute();
+ BOOL IsInExecute() const { return mbInExecute; }
- sal_Int8 GetCloseFlag() const { return mnCancelClose; } //liuchen 2009-7-22, support Excel VBA UserForm_QueryClose event
- void SetCloseFlag( sal_Int8 nCancel ) { mnCancelClose = nCancel; } //liuchen 2009-7-22, support Excel VBA UserForm_QueryClose event
+ sal_Int8 GetCloseFlag() const { return mnCancelClose; } //liuchen 2009-7-22, support Excel VBA UserForm_QueryClose event
+ void SetCloseFlag( sal_Int8 nCancel ) { mnCancelClose = nCancel; } //liuchen 2009-7-22, support Excel VBA UserForm_QueryClose event
////////////////////////////////////////
// Dialog::Execute replacement API
@@ -109,17 +109,17 @@ public:
// Dialog::Execute replacement API
////////////////////////////////////////
- void EndDialog( long nResult = 0 );
- static void EndAllDialogs( Window* pParent=NULL );
+ void EndDialog( long nResult = 0 );
+ static void EndAllDialogs( Window* pParent=NULL );
void GetDrawWindowBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const;
- void SetModalInputMode( BOOL bModal );
- void SetModalInputMode( BOOL bModal, BOOL bSubModalDialogs );
- BOOL IsModalInputMode() const { return mbModalMode; }
+ void SetModalInputMode( BOOL bModal );
+ void SetModalInputMode( BOOL bModal, BOOL bSubModalDialogs );
+ BOOL IsModalInputMode() const { return mbModalMode; }
- void GrabFocusToFirstControl();
+ void GrabFocusToFirstControl();
};
// ------------------
@@ -149,15 +149,15 @@ public:
private:
using Window::Show;
- void Show( BOOL bVisible = TRUE );
+ void Show( BOOL bVisible = TRUE );
using Window::Hide;
- void Hide();
+ void Hide();
// Copy assignment is forbidden and not implemented.
SAL_DLLPRIVATE ModalDialog (const ModalDialog &);
SAL_DLLPRIVATE ModalDialog & operator= (const ModalDialog &);
};
-#endif // _SV_DIALOG_HXX
+#endif // _SV_DIALOG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/dllapi.h b/vcl/inc/vcl/dllapi.h
index dfe59bb5b739..3be73d34f0e5 100644
--- a/vcl/inc/vcl/dllapi.h
+++ b/vcl/inc/vcl/dllapi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/dndevdis.hxx b/vcl/inc/vcl/dndevdis.hxx
index 41be5ba3fc38..e568cb582b5e 100644
--- a/vcl/inc/vcl/dndevdis.hxx
+++ b/vcl/inc/vcl/dndevdis.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,10 +36,10 @@
#include <cppuhelper/implbase3.hxx>
#include <vcl/window.hxx>
-class DNDEventDispatcher: public ::cppu::WeakImplHelper3<
+class DNDEventDispatcher: public ::cppu::WeakImplHelper3<
::com::sun::star::datatransfer::dnd::XDropTargetListener,
::com::sun::star::datatransfer::dnd::XDropTargetDragContext,
- ::com::sun::star::datatransfer::dnd::XDragGestureListener >
+ ::com::sun::star::datatransfer::dnd::XDragGestureListener >
{
Window * m_pTopWindow;
Window * m_pCurrentWindow;
@@ -51,24 +51,24 @@ class DNDEventDispatcher: public ::cppu::WeakImplHelper3<
/*
* fire the events on the dnd listener container of the specified window
*/
-
- sal_Int32 fireDragEnterEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext,
- const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction,
+
+ sal_Int32 fireDragEnterEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext,
+ const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction,
const ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor >& aFlavorList ) throw(::com::sun::star::uno::RuntimeException);
- sal_Int32 fireDragOverEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext,
- const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction ) throw(::com::sun::star::uno::RuntimeException);
+ sal_Int32 fireDragOverEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext,
+ const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction ) throw(::com::sun::star::uno::RuntimeException);
sal_Int32 fireDragExitEvent( Window *pWindow ) throw(::com::sun::star::uno::RuntimeException);
- sal_Int32 fireDropActionChangedEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext,
- const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction ) throw(::com::sun::star::uno::RuntimeException);
+ sal_Int32 fireDropActionChangedEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDragContext >& xContext,
+ const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction ) throw(::com::sun::star::uno::RuntimeException);
- sal_Int32 fireDropEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDropContext >& xContext,
- const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction,
+ sal_Int32 fireDropEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDropContext >& xContext,
+ const sal_Int8 nDropAction, const Point& rLocation, const sal_Int8 nSourceAction,
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable ) throw(::com::sun::star::uno::RuntimeException);
- sal_Int32 fireDragGestureEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragSource >& xSource,
+ sal_Int32 fireDragGestureEvent( Window *pWindow, const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragSource >& xSource,
const ::com::sun::star::uno::Any event, const Point& rOrigin, const sal_Int8 nDragAction )throw(::com::sun::star::uno::RuntimeException);
public:
@@ -96,7 +96,7 @@ public:
/*
* XDragGestureListener
*/
-
+
virtual void SAL_CALL dragGestureRecognized( const ::com::sun::star::datatransfer::dnd::DragGestureEvent& dge ) throw(::com::sun::star::uno::RuntimeException);
@@ -104,11 +104,11 @@ public:
* XEventListener
*/
- virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& eo ) throw(::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& eo ) throw(::com::sun::star::uno::RuntimeException);
};
//==================================================================================================
-//
+//
//==================================================================================================
#endif
diff --git a/vcl/inc/vcl/dndhelp.hxx b/vcl/inc/vcl/dndhelp.hxx
index 73adc8a4508a..b8d7749b1707 100644
--- a/vcl/inc/vcl/dndhelp.hxx
+++ b/vcl/inc/vcl/dndhelp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,14 +91,14 @@ class VCL_DLLPUBLIC DragAndDropWrapper :
private:
DragAndDropClient* mpClient;
-public:
+public:
DragAndDropWrapper( DragAndDropClient* pClient );
~DragAndDropWrapper();
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::lang::XEventListener
void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
@@ -121,7 +121,7 @@ public:
void SAL_CALL dropActionChanged( const ::com::sun::star::datatransfer::dnd::DropTargetDragEvent& dtde ) throw (::com::sun::star::uno::RuntimeException);
};
-}} // namespace vcl::unohelper
+}} // namespace vcl::unohelper
#endif // _VCL_DNDHELP_HXX
diff --git a/vcl/inc/vcl/dndlcon.hxx b/vcl/inc/vcl/dndlcon.hxx
index 1c3654c1a9ea..62ddbecafa1f 100644
--- a/vcl/inc/vcl/dndlcon.hxx
+++ b/vcl/inc/vcl/dndlcon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,8 +38,8 @@
#include <vcl/unohelp2.hxx>
-class DNDListenerContainer : public ::vcl::unohelper::MutexHelper,
- public ::cppu::WeakComponentImplHelper4<
+class DNDListenerContainer : public ::vcl::unohelper::MutexHelper,
+ public ::cppu::WeakComponentImplHelper4<
::com::sun::star::datatransfer::dnd::XDragGestureRecognizer, \
::com::sun::star::datatransfer::dnd::XDropTargetDragContext,
::com::sun::star::datatransfer::dnd::XDropTargetDropContext,
@@ -56,7 +56,7 @@ public:
DNDListenerContainer( sal_Int8 nDefaultActions );
virtual ~DNDListenerContainer();
- sal_uInt32 fireDropEvent(
+ sal_uInt32 fireDropEvent(
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetDropContext >& context,
sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions,
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::XTransferable >& transferable );
@@ -77,14 +77,14 @@ public:
sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions );
sal_uInt32 fireDragGestureEvent(
- sal_Int8 dragAction, sal_Int32 dragOriginX, sal_Int32 dragOriginY,
+ sal_Int8 dragAction, sal_Int32 dragOriginX, sal_Int32 dragOriginY,
const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragSource >& dragSource,
const ::com::sun::star::uno::Any& triggerEvent );
/*
* XDragGestureRecognizer
*/
-
+
virtual void SAL_CALL addDragGestureListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureListener >& dgl ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeDragGestureListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDragGestureListener >& dgl ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL resetRecognizer( ) throw(::com::sun::star::uno::RuntimeException);
@@ -108,7 +108,7 @@ public:
/*
* XDropTarget
*/
-
+
virtual void SAL_CALL addDropTargetListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& dtl ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeDropTargetListener( const ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& dtl ) throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL isActive( ) throw(::com::sun::star::uno::RuntimeException);
@@ -119,7 +119,7 @@ public:
//==================================================================================================
-//
+//
//==================================================================================================
#endif
diff --git a/vcl/inc/vcl/dockingarea.hxx b/vcl/inc/vcl/dockingarea.hxx
index cc56a57f3315..3cda9021551b 100644
--- a/vcl/inc/vcl/dockingarea.hxx
+++ b/vcl/inc/vcl/dockingarea.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@
#include <vcl/window.hxx>
// ------------------------------------------
-// A simple container for docked toolbars
+// A simple container for docked toolbars
// - its main purpose is theming support
// ------------------------------------------
diff --git a/vcl/inc/vcl/dockwin.hxx b/vcl/inc/vcl/dockwin.hxx
index 4950e267a786..33e5a4b201c5 100644
--- a/vcl/inc/vcl/dockwin.hxx
+++ b/vcl/inc/vcl/dockwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,30 +88,30 @@ class ImplDockingWindowWrapper
private:
// the original 'Docking'window
- Window *mpDockingWindow;
+ Window *mpDockingWindow;
// the original DockingWindow members
FloatingWindow* mpFloatWin;
- Window* mpOldBorderWin;
- Window* mpParent;
- Point maFloatPos;
- Point maDockPos;
- Point maMouseOff;
- Point maMouseStart;
- Size maRollUpOutSize;
- Size maMinOutSize;
- Size maMaxOutSize;
+ Window* mpOldBorderWin;
+ Window* mpParent;
+ Point maFloatPos;
+ Point maDockPos;
+ Point maMouseOff;
+ Point maMouseStart;
+ Size maRollUpOutSize;
+ Size maMinOutSize;
+ Size maMaxOutSize;
Rectangle maDragArea;
- long mnTrackX;
- long mnTrackY;
- long mnTrackWidth;
- long mnTrackHeight;
- sal_Int32 mnDockLeft;
- sal_Int32 mnDockTop;
- sal_Int32 mnDockRight;
- sal_Int32 mnDockBottom;
- WinBits mnFloatBits;
- BOOL mbDockCanceled:1,
+ long mnTrackX;
+ long mnTrackY;
+ long mnTrackWidth;
+ long mnTrackHeight;
+ sal_Int32 mnDockLeft;
+ sal_Int32 mnDockTop;
+ sal_Int32 mnDockRight;
+ sal_Int32 mnDockBottom;
+ WinBits mnFloatBits;
+ BOOL mbDockCanceled:1,
mbFloatPrevented:1,
mbDockable:1,
mbDocking:1,
@@ -126,7 +126,7 @@ private:
mbStartDockingEnabled:1,
mbLocked:1;
- void ImplInitData();
+ void ImplInitData();
DECL_LINK( PopupModeEnd, void* );
void ImplEnableStartDocking( BOOL bEnable = TRUE ) { mbStartDockingEnabled = bEnable; }
@@ -140,11 +140,11 @@ public:
BOOL ImplStartDocking( const Point& rPos );
// those methods actually call the corresponding handlers
- void StartDocking( const Point& rPos, Rectangle& rRect );
- BOOL Docking( const Point& rPos, Rectangle& rRect );
- void EndDocking( const Rectangle& rRect, BOOL bFloatMode );
- BOOL PrepareToggleFloatingMode();
- void ToggleFloatingMode();
+ void StartDocking( const Point& rPos, Rectangle& rRect );
+ BOOL Docking( const Point& rPos, Rectangle& rRect );
+ void EndDocking( const Rectangle& rRect, BOOL bFloatMode );
+ BOOL PrepareToggleFloatingMode();
+ void ToggleFloatingMode();
void SetDragArea( const Rectangle& rRect );
Rectangle GetDragArea() const;
@@ -156,60 +156,60 @@ public:
void StartPopupMode( ToolBox* pParentToolBox, ULONG nPopupModeFlags );
BOOL IsInPopupMode() const;
- void TitleButtonClick( USHORT nButton );
- void Pin();
- void Roll();
- void PopupModeEnd();
- void Resizing( Size& rSize );
- BOOL Close();
- void Tracking( const TrackingEvent& rTEvt );
- long Notify( NotifyEvent& rNEvt );
+ void TitleButtonClick( USHORT nButton );
+ void Pin();
+ void Roll();
+ void PopupModeEnd();
+ void Resizing( Size& rSize );
+ BOOL Close();
+ void Tracking( const TrackingEvent& rTEvt );
+ long Notify( NotifyEvent& rNEvt );
- void ShowTitleButton( USHORT nButton, BOOL bVisible = TRUE );
- BOOL IsTitleButtonVisible( USHORT nButton ) const;
+ void ShowTitleButton( USHORT nButton, BOOL bVisible = TRUE );
+ BOOL IsTitleButtonVisible( USHORT nButton ) const;
- void SetPin( BOOL bPin );
- BOOL IsPined() const;
+ void SetPin( BOOL bPin );
+ BOOL IsPined() const;
- void RollUp();
- void RollDown();
- BOOL IsRollUp() const;
+ void RollUp();
+ void RollDown();
+ BOOL IsRollUp() const;
- void SetRollUpOutputSizePixel( const Size& rSize );
- Size GetRollUpOutputSizePixel() const;
+ void SetRollUpOutputSizePixel( const Size& rSize );
+ Size GetRollUpOutputSizePixel() const;
- void SetMinOutputSizePixel( const Size& rSize );
- const Size& GetMinOutputSizePixel() const;
+ void SetMinOutputSizePixel( const Size& rSize );
+ const Size& GetMinOutputSizePixel() const;
- void SetMaxOutputSizePixel( const Size& rSize );
- const Size& GetMaxOutputSizePixel() const;
+ void SetMaxOutputSizePixel( const Size& rSize );
+ const Size& GetMaxOutputSizePixel() const;
- BOOL IsDocking() const { return mbDocking; }
- BOOL IsDockable() const { return mbDockable; }
- BOOL IsDockingCanceled() const { return mbDockCanceled; }
- BOOL IsFloatingPrevented() const { return mbFloatPrevented; }
+ BOOL IsDocking() const { return mbDocking; }
+ BOOL IsDockable() const { return mbDockable; }
+ BOOL IsDockingCanceled() const { return mbDockCanceled; }
+ BOOL IsFloatingPrevented() const { return mbFloatPrevented; }
- void SetFloatingMode( BOOL bFloatMode = FALSE );
- BOOL IsFloatingMode() const;
+ void SetFloatingMode( BOOL bFloatMode = FALSE );
+ BOOL IsFloatingMode() const;
FloatingWindow* GetFloatingWindow() const { return mpFloatWin; }
- void SetFloatingPos( const Point& rNewPos );
- Point GetFloatingPos() const;
+ void SetFloatingPos( const Point& rNewPos );
+ Point GetFloatingPos() const;
- void SetFloatStyle( WinBits nWinStyle );
- WinBits GetFloatStyle() const;
- void SetTabStop();
+ void SetFloatStyle( WinBits nWinStyle );
+ WinBits GetFloatStyle() const;
+ void SetTabStop();
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void SetPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
USHORT nFlags = WINDOW_POSSIZE_ALL );
- void SetPosSizePixel( const Point& rNewPos,
+ void SetPosSizePixel( const Point& rNewPos,
const Size& rNewSize )
{ mpDockingWindow->SetPosSizePixel( rNewPos, rNewSize ); }
- Point GetPosPixel() const;
- Size GetSizePixel() const;
- void SetOutputSizePixel( const Size& rNewSize );
- Size GetOutputSizePixel() const;
+ Point GetPosPixel() const;
+ Size GetSizePixel() const;
+ void SetOutputSizePixel( const Size& rNewSize );
+ Size GetOutputSizePixel() const;
};
class VCL_DLLPUBLIC DockingManager
@@ -238,11 +238,11 @@ public:
void StartPopupMode( ToolBox *pParentToolBox, const Window *pWin, ULONG nPopupModeFlags );
BOOL IsInPopupMode( const Window *pWin );
- void EndPopupMode( const Window *pWin );
+ void EndPopupMode( const Window *pWin );
// required because those methods are not virtual in Window (!!!) and must
// be availbale from the toolkit
- void SetPosSizePixel( Window *pWin, long nX, long nY,
+ void SetPosSizePixel( Window *pWin, long nX, long nY,
long nWidth, long nHeight,
USHORT nFlags = WINDOW_POSSIZE_ALL );
Rectangle GetPosSizePixel( const Window *pWin );
@@ -257,24 +257,24 @@ class VCL_DLLPUBLIC DockingWindow : public Window
class ImplData;
private:
FloatingWindow* mpFloatWin;
- Window* mpOldBorderWin;
+ Window* mpOldBorderWin;
ImplData* mpImplData;
- Point maFloatPos;
- Point maDockPos;
- Point maMouseOff;
- Point maMouseStart;
- Size maRollUpOutSize;
- Size maMinOutSize;
- long mnTrackX;
- long mnTrackY;
- long mnTrackWidth;
- long mnTrackHeight;
- sal_Int32 mnDockLeft;
- sal_Int32 mnDockTop;
- sal_Int32 mnDockRight;
- sal_Int32 mnDockBottom;
- WinBits mnFloatBits;
- BOOL mbDockCanceled:1,
+ Point maFloatPos;
+ Point maDockPos;
+ Point maMouseOff;
+ Point maMouseStart;
+ Size maRollUpOutSize;
+ Size maMinOutSize;
+ long mnTrackX;
+ long mnTrackY;
+ long mnTrackWidth;
+ long mnTrackHeight;
+ sal_Int32 mnDockLeft;
+ sal_Int32 mnDockTop;
+ sal_Int32 mnDockRight;
+ sal_Int32 mnDockBottom;
+ WinBits mnFloatBits;
+ BOOL mbDockCanceled:1,
mbDockPrevented:1,
mbFloatPrevented:1,
mbDockable:1,
@@ -311,69 +311,69 @@ public:
DockingWindow( Window* pParent, const ResId& rResId );
~DockingWindow();
- virtual void StartDocking();
- virtual BOOL Docking( const Point& rPos, Rectangle& rRect );
- virtual void EndDocking( const Rectangle& rRect, BOOL bFloatMode );
- virtual BOOL PrepareToggleFloatingMode();
- virtual void ToggleFloatingMode();
-
- virtual void TitleButtonClick( USHORT nButton );
- virtual void Pin();
- virtual void Roll();
- virtual void PopupModeEnd();
- virtual void Resizing( Size& rSize );
- virtual BOOL Close();
- virtual void Tracking( const TrackingEvent& rTEvt );
- virtual long Notify( NotifyEvent& rNEvt );
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
-
- void ShowTitleButton( USHORT nButton, BOOL bVisible = TRUE );
- BOOL IsTitleButtonVisible( USHORT nButton ) const;
-
- void SetPin( BOOL bPin );
- BOOL IsPined() const;
-
- void RollUp();
- void RollDown();
- BOOL IsRollUp() const;
-
- void SetRollUpOutputSizePixel( const Size& rSize );
- Size GetRollUpOutputSizePixel() const;
-
- void SetMinOutputSizePixel( const Size& rSize );
- const Size& GetMinOutputSizePixel() const;
-
- void SetMaxOutputSizePixel( const Size& rSize );
- const Size& GetMaxOutputSizePixel() const;
-
- BOOL IsDocking() const { return mbDocking; }
- BOOL IsDockable() const { return mbDockable; }
- BOOL IsDockingCanceled() const { return mbDockCanceled; }
- BOOL IsDockingPrevented() const { return mbDockPrevented; }
- BOOL IsFloatingPrevented() const { return mbFloatPrevented; }
-
- void SetFloatingMode( BOOL bFloatMode = FALSE );
- BOOL IsFloatingMode() const;
+ virtual void StartDocking();
+ virtual BOOL Docking( const Point& rPos, Rectangle& rRect );
+ virtual void EndDocking( const Rectangle& rRect, BOOL bFloatMode );
+ virtual BOOL PrepareToggleFloatingMode();
+ virtual void ToggleFloatingMode();
+
+ virtual void TitleButtonClick( USHORT nButton );
+ virtual void Pin();
+ virtual void Roll();
+ virtual void PopupModeEnd();
+ virtual void Resizing( Size& rSize );
+ virtual BOOL Close();
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ void ShowTitleButton( USHORT nButton, BOOL bVisible = TRUE );
+ BOOL IsTitleButtonVisible( USHORT nButton ) const;
+
+ void SetPin( BOOL bPin );
+ BOOL IsPined() const;
+
+ void RollUp();
+ void RollDown();
+ BOOL IsRollUp() const;
+
+ void SetRollUpOutputSizePixel( const Size& rSize );
+ Size GetRollUpOutputSizePixel() const;
+
+ void SetMinOutputSizePixel( const Size& rSize );
+ const Size& GetMinOutputSizePixel() const;
+
+ void SetMaxOutputSizePixel( const Size& rSize );
+ const Size& GetMaxOutputSizePixel() const;
+
+ BOOL IsDocking() const { return mbDocking; }
+ BOOL IsDockable() const { return mbDockable; }
+ BOOL IsDockingCanceled() const { return mbDockCanceled; }
+ BOOL IsDockingPrevented() const { return mbDockPrevented; }
+ BOOL IsFloatingPrevented() const { return mbFloatPrevented; }
+
+ void SetFloatingMode( BOOL bFloatMode = FALSE );
+ BOOL IsFloatingMode() const;
FloatingWindow* GetFloatingWindow() const { return mpFloatWin; }
- void SetFloatingPos( const Point& rNewPos );
- Point GetFloatingPos() const;
+ void SetFloatingPos( const Point& rNewPos );
+ Point GetFloatingPos() const;
- void SetFloatStyle( WinBits nWinStyle );
- WinBits GetFloatStyle() const;
- void SetTabStop();
+ void SetFloatStyle( WinBits nWinStyle );
+ WinBits GetFloatStyle() const;
+ void SetTabStop();
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void SetPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
USHORT nFlags = WINDOW_POSSIZE_ALL );
- void SetPosSizePixel( const Point& rNewPos,
+ void SetPosSizePixel( const Point& rNewPos,
const Size& rNewSize )
{ Window::SetPosSizePixel( rNewPos, rNewSize ); }
- Point GetPosPixel() const;
- Size GetSizePixel() const;
- void SetOutputSizePixel( const Size& rNewSize );
- Size GetOutputSizePixel() const;
+ Point GetPosPixel() const;
+ Size GetSizePixel() const;
+ void SetOutputSizePixel( const Size& rNewSize );
+ Size GetOutputSizePixel() const;
};
inline void DockingWindow::SetPin( BOOL bPin )
@@ -448,6 +448,6 @@ inline void DockingWindow::SetFloatingPos( const Point& rNewPos )
}
-#endif // _SV_DOCKWIN_HXX
+#endif // _SV_DOCKWIN_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/edit.hxx b/vcl/inc/vcl/edit.hxx
index 6b0ca12eae8e..b8549cdf855e 100644
--- a/vcl/inc/vcl/edit.hxx
+++ b/vcl/inc/vcl/edit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,8 +53,8 @@ struct Impl_IMEInfos;
// - Edit-Types -
// --------------
-#define EDIT_NOLIMIT STRING_LEN
-#define EDIT_UPDATEDATA_TIMEOUT 350
+#define EDIT_NOLIMIT STRING_LEN
+#define EDIT_UPDATEDATA_TIMEOUT 350
typedef XubString (*FncGetSpecialChars)( Window* pWin, const Font& rFont );
@@ -68,20 +68,20 @@ class VCL_DLLPUBLIC Edit : public Control, public vcl::unohelper::DragAndDropCli
{
private:
Edit* mpSubEdit;
- Timer* mpUpdateDataTimer;
- DDInfo* mpDDInfo;
- Impl_IMEInfos* mpIMEInfos;
- XubString maText;
- XubString maSaveValue;
- XubString maUndoText;
- XubString maRedoText;
- long mnXOffset;
- Selection maSelection;
- USHORT mnAlign;
- xub_StrLen mnMaxTextLen;
- AutocompleteAction meAutocompleteAction;
- xub_Unicode mcEchoChar;
- BOOL mbModified:1,
+ Timer* mpUpdateDataTimer;
+ DDInfo* mpDDInfo;
+ Impl_IMEInfos* mpIMEInfos;
+ XubString maText;
+ XubString maSaveValue;
+ XubString maUndoText;
+ XubString maRedoText;
+ long mnXOffset;
+ Selection maSelection;
+ USHORT mnAlign;
+ xub_StrLen mnMaxTextLen;
+ AutocompleteAction meAutocompleteAction;
+ xub_Unicode mcEchoChar;
+ BOOL mbModified:1,
mbInternModified:1,
mbReadOnly:1,
mbInsertMode:1,
@@ -89,9 +89,9 @@ private:
mbIsSubEdit:1,
mbInMBDown:1,
mbActivePopup:1;
- Link maModifyHdl;
- Link maUpdateDataHdl;
- Link maAutocompleteHdl;
+ Link maModifyHdl;
+ Link maUpdateDataHdl;
+ Link maAutocompleteHdl;
DECL_DLLPRIVATE_LINK( ImplUpdateDataHdl, Timer* );
@@ -111,7 +111,7 @@ private:
SAL_DLLPRIVATE void ImplAlignAndPaint();
SAL_DLLPRIVATE xub_StrLen ImplGetCharPos( const Point& rWindowPos ) const;
SAL_DLLPRIVATE void ImplSetCursorPos( xub_StrLen nChar, BOOL bSelect );
- SAL_DLLPRIVATE void ImplShowDDCursor();
+ SAL_DLLPRIVATE void ImplShowDDCursor();
SAL_DLLPRIVATE void ImplHideDDCursor();
SAL_DLLPRIVATE BOOL ImplHandleKeyEvent( const KeyEvent& rKEvt );
SAL_DLLPRIVATE void ImplCopyToSelectionClipboard();
@@ -160,91 +160,91 @@ public:
Edit( Window* pParent, const ResId& rResId, bool bDisableAccessibleLabeledByRelation );
virtual ~Edit();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Resize();
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- virtual void GetFocus();
- virtual void LoseFocus();
- virtual void Tracking( const TrackingEvent& rTEvt );
- virtual void Command( const CommandEvent& rCEvt );
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Resize();
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void GetFocus();
+ virtual void LoseFocus();
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual void Command( const CommandEvent& rCEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
virtual Window* GetPreferredKeyInputWindow();
- virtual void Modify();
- virtual void UpdateData();
+ virtual void Modify();
+ virtual void UpdateData();
- static BOOL IsCharInput( const KeyEvent& rKEvt );
+ static BOOL IsCharInput( const KeyEvent& rKEvt );
- virtual void SetModifyFlag();
- virtual void ClearModifyFlag();
- virtual BOOL IsModified() const { return mpSubEdit ? mpSubEdit->mbModified : mbModified; }
+ virtual void SetModifyFlag();
+ virtual void ClearModifyFlag();
+ virtual BOOL IsModified() const { return mpSubEdit ? mpSubEdit->mbModified : mbModified; }
- virtual void EnableUpdateData( ULONG nTimeout = EDIT_UPDATEDATA_TIMEOUT );
- virtual void DisableUpdateData() { delete mpUpdateDataTimer; mpUpdateDataTimer = NULL; }
- virtual ULONG IsUpdateDataEnabled() const;
+ virtual void EnableUpdateData( ULONG nTimeout = EDIT_UPDATEDATA_TIMEOUT );
+ virtual void DisableUpdateData() { delete mpUpdateDataTimer; mpUpdateDataTimer = NULL; }
+ virtual ULONG IsUpdateDataEnabled() const;
- void SetEchoChar( xub_Unicode c );
- xub_Unicode GetEchoChar() const { return mcEchoChar; }
+ void SetEchoChar( xub_Unicode c );
+ xub_Unicode GetEchoChar() const { return mcEchoChar; }
- virtual void SetReadOnly( BOOL bReadOnly = TRUE );
- virtual BOOL IsReadOnly() const { return mbReadOnly; }
+ virtual void SetReadOnly( BOOL bReadOnly = TRUE );
+ virtual BOOL IsReadOnly() const { return mbReadOnly; }
- void SetInsertMode( BOOL bInsert );
- BOOL IsInsertMode() const;
+ void SetInsertMode( BOOL bInsert );
+ BOOL IsInsertMode() const;
- virtual void SetMaxTextLen( xub_StrLen nMaxLen = EDIT_NOLIMIT );
- virtual xub_StrLen GetMaxTextLen() const { return mnMaxTextLen; }
+ virtual void SetMaxTextLen( xub_StrLen nMaxLen = EDIT_NOLIMIT );
+ virtual xub_StrLen GetMaxTextLen() const { return mnMaxTextLen; }
- virtual void SetSelection( const Selection& rSelection );
- virtual const Selection& GetSelection() const;
+ virtual void SetSelection( const Selection& rSelection );
+ virtual const Selection& GetSelection() const;
- virtual void ReplaceSelected( const XubString& rStr );
- virtual void DeleteSelected();
- virtual XubString GetSelected() const;
+ virtual void ReplaceSelected( const XubString& rStr );
+ virtual void DeleteSelected();
+ virtual XubString GetSelected() const;
- virtual void Cut();
- virtual void Copy();
- virtual void Paste();
- void Undo();
+ virtual void Cut();
+ virtual void Copy();
+ virtual void Paste();
+ void Undo();
- virtual void SetText( const XubString& rStr );
- virtual void SetText( const XubString& rStr, const Selection& rNewSelection );
- virtual XubString GetText() const;
+ virtual void SetText( const XubString& rStr );
+ virtual void SetText( const XubString& rStr, const Selection& rNewSelection );
+ virtual XubString GetText() const;
- void SaveValue() { maSaveValue = GetText(); }
- const XubString& GetSavedValue() const { return maSaveValue; }
+ void SaveValue() { maSaveValue = GetText(); }
+ const XubString& GetSavedValue() const { return maSaveValue; }
- virtual void SetModifyHdl( const Link& rLink ) { maModifyHdl = rLink; }
- virtual const Link& GetModifyHdl() const { return maModifyHdl; }
- virtual void SetUpdateDataHdl( const Link& rLink ) { maUpdateDataHdl = rLink; }
+ virtual void SetModifyHdl( const Link& rLink ) { maModifyHdl = rLink; }
+ virtual const Link& GetModifyHdl() const { return maModifyHdl; }
+ virtual void SetUpdateDataHdl( const Link& rLink ) { maUpdateDataHdl = rLink; }
virtual const Link& GetUpdateDataHdl() const { return maUpdateDataHdl; }
- void SetSubEdit( Edit* pEdit );
- Edit* GetSubEdit() const { return mpSubEdit; }
+ void SetSubEdit( Edit* pEdit );
+ Edit* GetSubEdit() const { return mpSubEdit; }
- void SetAutocompleteHdl( const Link& rHdl );
- const Link& GetAutocompleteHdl() const { return maAutocompleteHdl; }
- AutocompleteAction GetAutocompleteAction() const { return meAutocompleteAction; }
+ void SetAutocompleteHdl( const Link& rHdl );
+ const Link& GetAutocompleteHdl() const { return maAutocompleteHdl; }
+ AutocompleteAction GetAutocompleteAction() const { return meAutocompleteAction; }
- virtual Size CalcMinimumSize() const;
+ virtual Size CalcMinimumSize() const;
virtual Size GetOptimalSize(WindowSizeType eType) const;
- virtual Size CalcSize( USHORT nChars ) const;
- virtual xub_StrLen GetMaxVisChars() const;
+ virtual Size CalcSize( USHORT nChars ) const;
+ virtual xub_StrLen GetMaxVisChars() const;
xub_StrLen GetCharPos( const Point& rWindowPos ) const;
-
+
// shows a warning box saying "text too long, truncated"
static void ShowTruncationWarning( Window* pParent );
- static void SetGetSpecialCharsFunction( FncGetSpecialChars fn );
- static FncGetSpecialChars GetGetSpecialCharsFunction();
+ static void SetGetSpecialCharsFunction( FncGetSpecialChars fn );
+ static FncGetSpecialChars GetGetSpecialCharsFunction();
- static PopupMenu* CreatePopupMenu();
- static void DeletePopupMenu( PopupMenu* pMenu );
+ static PopupMenu* CreatePopupMenu();
+ static void DeletePopupMenu( PopupMenu* pMenu );
virtual XubString GetSurroundingText() const;
virtual Selection GetSurroundingTextSelection() const;
@@ -258,6 +258,6 @@ inline ULONG Edit::IsUpdateDataEnabled() const
return FALSE;
}
-#endif // _SV_EDIT_HXX
+#endif // _SV_EDIT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/event.hxx b/vcl/inc/vcl/event.hxx
index ef4eb87a9b18..64377b6a7ac2 100644
--- a/vcl/inc/vcl/event.hxx
+++ b/vcl/inc/vcl/event.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ namespace com { namespace sun { namespace star { namespace awt {
enum TextDirectionality {
TextDirectionality_LeftToRight_TopToBottom,
TextDirectionality_RightToLeft_TopToBottom,
- TextDirectionality_TopToBottom_RightToLeft
+ TextDirectionality_TopToBottom_RightToLeft
};
// ------------
@@ -219,7 +219,7 @@ public:
const Point& GetMousePosPixel() const;
USHORT GetMode() const { return mnMode; }
BOOL KeyboardActivated() const { return mbKeyboardActivated; }
- void SetKeyboardActivated( BOOL bKeyboard ) { mbKeyboardActivated = bKeyboard; }
+ void SetKeyboardActivated( BOOL bKeyboard ) { mbKeyboardActivated = bKeyboard; }
};
inline HelpEvent::HelpEvent()
diff --git a/vcl/inc/vcl/evntpost.hxx b/vcl/inc/vcl/evntpost.hxx
index 2a27bbfff033..aa70ed36f528 100644
--- a/vcl/inc/vcl/evntpost.hxx
+++ b/vcl/inc/vcl/evntpost.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/extoutdevdata.hxx b/vcl/inc/vcl/extoutdevdata.hxx
index 28f9a05c5b9f..c23c8b27b7a2 100644
--- a/vcl/inc/vcl/extoutdevdata.hxx
+++ b/vcl/inc/vcl/extoutdevdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/field.hxx b/vcl/inc/vcl/field.hxx
index c5cfe8947796..a1e989c29329 100644
--- a/vcl/inc/vcl/field.hxx
+++ b/vcl/inc/vcl/field.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -209,10 +209,10 @@ public:
void SetUseThousandSep( BOOL b );
BOOL IsUseThousandSep() const { return mbThousandSep; }
-
+
void SetShowTrailingZeros( BOOL bShowTrailingZeros );
BOOL IsShowTrailingZeros() const { return mbShowTrailingZeros; }
-
+
void SetUserValue( sal_Int64 nNewValue );
virtual void SetValue( sal_Int64 nNewValue );
@@ -598,7 +598,7 @@ public:
FieldUnit eInUnit, MapUnit eOutUnit );
static double ConvertDoubleValue( double nValue, USHORT nDecDigits,
MapUnit eInUnit, FieldUnit eOutUnit );
-
+
// for backwards compatibility
// caution: conversion to double loses precision
static double ConvertDoubleValue( sal_Int64 nValue, sal_Int64 nBaseValue, USHORT nDecDigits,
diff --git a/vcl/inc/vcl/fixbrd.hxx b/vcl/inc/vcl/fixbrd.hxx
index 70916cfb8704..295de6de5e82 100644
--- a/vcl/inc/vcl/fixbrd.hxx
+++ b/vcl/inc/vcl/fixbrd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,11 +38,11 @@
// - FixedBorder-Types -
// ---------------------
-#define FIXEDBORDER_TYPE_IN (FRAME_DRAW_IN)
-#define FIXEDBORDER_TYPE_OUT (FRAME_DRAW_OUT)
-#define FIXEDBORDER_TYPE_GROUP (FRAME_DRAW_GROUP)
-#define FIXEDBORDER_TYPE_DOUBLEIN (FRAME_DRAW_DOUBLEIN)
-#define FIXEDBORDER_TYPE_DOUBLEOUT (FRAME_DRAW_DOUBLEOUT)
+#define FIXEDBORDER_TYPE_IN (FRAME_DRAW_IN)
+#define FIXEDBORDER_TYPE_OUT (FRAME_DRAW_OUT)
+#define FIXEDBORDER_TYPE_GROUP (FRAME_DRAW_GROUP)
+#define FIXEDBORDER_TYPE_DOUBLEIN (FRAME_DRAW_DOUBLEIN)
+#define FIXEDBORDER_TYPE_DOUBLEOUT (FRAME_DRAW_DOUBLEOUT)
// ---------------
// - FixedBorder -
@@ -51,16 +51,16 @@
class VCL_DLLPUBLIC FixedBorder : public Control
{
private:
- USHORT mnType;
- BOOL mbTransparent;
+ USHORT mnType;
+ BOOL mbTransparent;
private:
using Control::ImplInitSettings;
using Window::ImplInit;
SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
SAL_DLLPRIVATE WinBits ImplInitStyle( WinBits nStyle );
- SAL_DLLPRIVATE void ImplInitSettings();
- SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
+ SAL_DLLPRIVATE void ImplInitSettings();
+ SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
const Point& rPos, const Size& rSize );
public:
@@ -68,18 +68,18 @@ public:
FixedBorder( Window* pParent, const ResId& rResId );
~FixedBorder();
- virtual void Paint( const Rectangle& rRect );
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- virtual void Resize();
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void Resize();
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
- void SetTransparent( BOOL bTransparent );
- BOOL IsTransparent() const { return mbTransparent; }
- void SetBorderType( USHORT nType );
- USHORT GetBorderType() const { return mnType; }
+ void SetTransparent( BOOL bTransparent );
+ BOOL IsTransparent() const { return mbTransparent; }
+ void SetBorderType( USHORT nType );
+ USHORT GetBorderType() const { return mnType; }
};
-#endif // _SV_FIXBRD_HXX
+#endif // _SV_FIXBRD_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/fixed.hxx b/vcl/inc/vcl/fixed.hxx
index d14cc750d6ea..a2a52ef598b1 100644
--- a/vcl/inc/vcl/fixed.hxx
+++ b/vcl/inc/vcl/fixed.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@ private:
SAL_DLLPRIVATE void ImplDraw( bool bLayout = false );
protected:
- virtual void FillLayoutData() const;
+ virtual void FillLayoutData() const;
virtual const Font&
GetCanonicalFont( const StyleSettings& _rStyle ) const;
virtual const Color&
diff --git a/vcl/inc/vcl/fldunit.hxx b/vcl/inc/vcl/fldunit.hxx
index 93c89ada98a0..c5a84fcaa8a0 100644
--- a/vcl/inc/vcl/fldunit.hxx
+++ b/vcl/inc/vcl/fldunit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/floatwin.hxx b/vcl/inc/vcl/floatwin.hxx
index eb15b116938e..7007c7ec7724 100644
--- a/vcl/inc/vcl/floatwin.hxx
+++ b/vcl/inc/vcl/floatwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,34 +40,34 @@ class PopupModeEvent;
// - FloatingWindow-Types -
// ------------------------
-#define FLOATWIN_POPUPMODE_ALLOWTEAROFF ((ULONG)0x00000001)
-#define FLOATWIN_POPUPMODE_ANIMATIONSLIDE ((ULONG)0x00000002)
-#define FLOATWIN_POPUPMODE_NOAUTOARRANGE ((ULONG)0x00000004)
-#define FLOATWIN_POPUPMODE_NOANIMATION ((ULONG)0x00000008)
-#define FLOATWIN_POPUPMODE_DOWN ((ULONG)0x00000010)
-#define FLOATWIN_POPUPMODE_UP ((ULONG)0x00000020)
-#define FLOATWIN_POPUPMODE_LEFT ((ULONG)0x00000040)
-#define FLOATWIN_POPUPMODE_RIGHT ((ULONG)0x00000080)
-#define FLOATWIN_POPUPMODE_NOFOCUSCLOSE ((ULONG)0x00000100)
-#define FLOATWIN_POPUPMODE_NOKEYCLOSE ((ULONG)0x00000200)
-#define FLOATWIN_POPUPMODE_NOMOUSECLOSE ((ULONG)0x00000400)
-#define FLOATWIN_POPUPMODE_NOMOUSERECTCLOSE ((ULONG)0x00000800)
-#define FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE ((ULONG)0x00001000)
-#define FLOATWIN_POPUPMODE_NOAPPFOCUSCLOSE ((ULONG)0x00002000)
+#define FLOATWIN_POPUPMODE_ALLOWTEAROFF ((ULONG)0x00000001)
+#define FLOATWIN_POPUPMODE_ANIMATIONSLIDE ((ULONG)0x00000002)
+#define FLOATWIN_POPUPMODE_NOAUTOARRANGE ((ULONG)0x00000004)
+#define FLOATWIN_POPUPMODE_NOANIMATION ((ULONG)0x00000008)
+#define FLOATWIN_POPUPMODE_DOWN ((ULONG)0x00000010)
+#define FLOATWIN_POPUPMODE_UP ((ULONG)0x00000020)
+#define FLOATWIN_POPUPMODE_LEFT ((ULONG)0x00000040)
+#define FLOATWIN_POPUPMODE_RIGHT ((ULONG)0x00000080)
+#define FLOATWIN_POPUPMODE_NOFOCUSCLOSE ((ULONG)0x00000100)
+#define FLOATWIN_POPUPMODE_NOKEYCLOSE ((ULONG)0x00000200)
+#define FLOATWIN_POPUPMODE_NOMOUSECLOSE ((ULONG)0x00000400)
+#define FLOATWIN_POPUPMODE_NOMOUSERECTCLOSE ((ULONG)0x00000800)
+#define FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE ((ULONG)0x00001000)
+#define FLOATWIN_POPUPMODE_NOAPPFOCUSCLOSE ((ULONG)0x00002000)
#define FLOATWIN_POPUPMODE_PATHMOUSECANCELCLICK ((ULONG)0x00004000)
-#define FLOATWIN_POPUPMODE_NEWLEVEL ((ULONG)0x00008000)
-#define FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE ((ULONG)0x00010000)
-#define FLOATWIN_POPUPMODE_GRABFOCUS ((ULONG)0x00020000)
+#define FLOATWIN_POPUPMODE_NEWLEVEL ((ULONG)0x00008000)
+#define FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE ((ULONG)0x00010000)
+#define FLOATWIN_POPUPMODE_GRABFOCUS ((ULONG)0x00020000)
-#define FLOATWIN_POPUPMODEEND_CANCEL ((USHORT)0x0001)
-#define FLOATWIN_POPUPMODEEND_TEAROFF ((USHORT)0x0002)
-#define FLOATWIN_POPUPMODEEND_DONTCALLHDL ((USHORT)0x0004)
-#define FLOATWIN_POPUPMODEEND_CLOSEALL ((USHORT)0x0008)
+#define FLOATWIN_POPUPMODEEND_CANCEL ((USHORT)0x0001)
+#define FLOATWIN_POPUPMODEEND_TEAROFF ((USHORT)0x0002)
+#define FLOATWIN_POPUPMODEEND_DONTCALLHDL ((USHORT)0x0004)
+#define FLOATWIN_POPUPMODEEND_CLOSEALL ((USHORT)0x0008)
-#define FLOATWIN_TITLE_NORMAL ((USHORT)0x0001)
-#define FLOATWIN_TITLE_TEAROFF ((USHORT)0x0002)
-#define FLOATWIN_TITLE_POPUP ((USHORT)0x0004)
-#define FLOATWIN_TITLE_NONE ((USHORT)0x0008)
+#define FLOATWIN_TITLE_NORMAL ((USHORT)0x0001)
+#define FLOATWIN_TITLE_TEAROFF ((USHORT)0x0002)
+#define FLOATWIN_TITLE_POPUP ((USHORT)0x0004)
+#define FLOATWIN_TITLE_NONE ((USHORT)0x0008)
// ------------------
// - FloatingWindow -
@@ -78,22 +78,22 @@ class VCL_DLLPUBLIC FloatingWindow : public SystemWindow
class ImplData;
private:
FloatingWindow* mpNextFloat;
- Window* mpFirstPopupModeWin;
+ Window* mpFirstPopupModeWin;
ImplData* mpImplData;
- Rectangle maFloatRect;
- ULONG mnPostId;
- ULONG mnPopupModeFlags;
- USHORT mnTitle;
- USHORT mnOldTitle;
- BOOL mbInPopupMode;
- BOOL mbPopupMode;
- BOOL mbPopupModeCanceled;
- BOOL mbPopupModeTearOff;
- BOOL mbMouseDown;
- BOOL mbOldSaveBackMode;
- BOOL mbGrabFocus; // act as key input window, although focus is not set
- BOOL mbInCleanUp;
- Link maPopupModeEndHdl;
+ Rectangle maFloatRect;
+ ULONG mnPostId;
+ ULONG mnPopupModeFlags;
+ USHORT mnTitle;
+ USHORT mnOldTitle;
+ BOOL mbInPopupMode;
+ BOOL mbPopupMode;
+ BOOL mbPopupModeCanceled;
+ BOOL mbPopupModeTearOff;
+ BOOL mbMouseDown;
+ BOOL mbOldSaveBackMode;
+ BOOL mbGrabFocus; // act as key input window, although focus is not set
+ BOOL mbInCleanUp;
+ Link maPopupModeEndHdl;
SAL_DLLPRIVATE void ImplCallPopupModeEnd();
DECL_DLLPRIVATE_LINK( ImplEndPopupModeHdl, void* );
@@ -109,18 +109,18 @@ protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public:
-#define IMPL_FLOATWIN_HITTEST_OUTSIDE ((USHORT)0x0001)
-#define IMPL_FLOATWIN_HITTEST_WINDOW ((USHORT)0x0002)
-#define IMPL_FLOATWIN_HITTEST_RECT ((USHORT)0x0004)
+#define IMPL_FLOATWIN_HITTEST_OUTSIDE ((USHORT)0x0001)
+#define IMPL_FLOATWIN_HITTEST_WINDOW ((USHORT)0x0002)
+#define IMPL_FLOATWIN_HITTEST_RECT ((USHORT)0x0004)
SAL_DLLPRIVATE FloatingWindow* ImplFloatHitTest( Window* pReference, const Point& rPos, USHORT& rHitTest );
SAL_DLLPRIVATE FloatingWindow* ImplFindLastLevelFloat();
- SAL_DLLPRIVATE BOOL ImplIsFloatPopupModeWindow( const Window* pWindow );
- SAL_DLLPRIVATE void ImplSetMouseDown() { mbMouseDown = TRUE; }
- SAL_DLLPRIVATE BOOL ImplIsMouseDown() const { return mbMouseDown; }
- SAL_DLLPRIVATE static Point ImplCalcPos( Window* pWindow,
+ SAL_DLLPRIVATE BOOL ImplIsFloatPopupModeWindow( const Window* pWindow );
+ SAL_DLLPRIVATE void ImplSetMouseDown() { mbMouseDown = TRUE; }
+ SAL_DLLPRIVATE BOOL ImplIsMouseDown() const { return mbMouseDown; }
+ SAL_DLLPRIVATE static Point ImplCalcPos( Window* pWindow,
const Rectangle& rRect, ULONG nFlags,
USHORT& rArrangeIndex );
- SAL_DLLPRIVATE void ImplEndPopupMode( USHORT nFlags = 0, ULONG nFocusId = 0 );
+ SAL_DLLPRIVATE void ImplEndPopupMode( USHORT nFlags = 0, ULONG nFocusId = 0 );
SAL_DLLPRIVATE Rectangle& ImplGetItemEdgeClipRect();
SAL_DLLPRIVATE BOOL ImplIsInPrivatePopupMode() const { return mbInPopupMode; }
@@ -129,29 +129,29 @@ public:
FloatingWindow( Window* pParent, const ResId& rResId );
~FloatingWindow();
- virtual long Notify( NotifyEvent& rNEvt );
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
-
- virtual void PopupModeEnd();
-
- void SetTitleType( USHORT nTitle );
- USHORT GetTitleType() const { return mnTitle; }
-
- void StartPopupMode( const Rectangle& rRect, ULONG nFlags = 0 );
- void StartPopupMode( ToolBox* pBox, ULONG nFlags = 0 );
- void EndPopupMode( USHORT nFlags = 0 );
- void AddPopupModeWindow( Window* pWindow );
- void RemovePopupModeWindow( Window* pWindow );
- ULONG GetPopupModeFlags() const { return mnPopupModeFlags; }
- void SetPopupModeFlags( ULONG nFlags ) { mnPopupModeFlags = nFlags; }
- BOOL IsInPopupMode() const { return mbPopupMode; }
- BOOL IsInCleanUp() const { return mbInCleanUp; }
- BOOL IsPopupModeCanceled() const { return mbPopupModeCanceled; }
- BOOL IsPopupModeTearOff() const { return mbPopupModeTearOff; }
-
- void SetPopupModeEndHdl( const Link& rLink ) { maPopupModeEndHdl = rLink; }
- const Link& GetPopupModeEndHdl() const { return maPopupModeEndHdl; }
+ virtual long Notify( NotifyEvent& rNEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+
+ virtual void PopupModeEnd();
+
+ void SetTitleType( USHORT nTitle );
+ USHORT GetTitleType() const { return mnTitle; }
+
+ void StartPopupMode( const Rectangle& rRect, ULONG nFlags = 0 );
+ void StartPopupMode( ToolBox* pBox, ULONG nFlags = 0 );
+ void EndPopupMode( USHORT nFlags = 0 );
+ void AddPopupModeWindow( Window* pWindow );
+ void RemovePopupModeWindow( Window* pWindow );
+ ULONG GetPopupModeFlags() const { return mnPopupModeFlags; }
+ void SetPopupModeFlags( ULONG nFlags ) { mnPopupModeFlags = nFlags; }
+ BOOL IsInPopupMode() const { return mbPopupMode; }
+ BOOL IsInCleanUp() const { return mbInCleanUp; }
+ BOOL IsPopupModeCanceled() const { return mbPopupModeCanceled; }
+ BOOL IsPopupModeTearOff() const { return mbPopupModeTearOff; }
+
+ void SetPopupModeEndHdl( const Link& rLink ) { maPopupModeEndHdl = rLink; }
+ const Link& GetPopupModeEndHdl() const { return maPopupModeEndHdl; }
BOOL GrabsFocus() const { return mbGrabFocus; }
diff --git a/vcl/inc/vcl/fntstyle.hxx b/vcl/inc/vcl/fntstyle.hxx
index 72705fde16f2..103863dbe272 100644
--- a/vcl/inc/vcl/fntstyle.hxx
+++ b/vcl/inc/vcl/fntstyle.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,9 +48,9 @@ enum FontRelief { RELIEF_NONE, RELIEF_EMBOSSED, RELIEF_ENGRAVED, FontRelief_FORC
// --------------
typedef BYTE FontKerning;
-#define KERNING_FONTSPECIFIC ((FontKerning)0x01)
-#define KERNING_ASIAN ((FontKerning)0x02)
+#define KERNING_FONTSPECIFIC ((FontKerning)0x01)
+#define KERNING_ASIAN ((FontKerning)0x02)
-#endif // _VCL_FNTSTYLE_HXX
+#endif // _VCL_FNTSTYLE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/font.hxx b/vcl/inc/vcl/font.hxx
index d9c4d62f57d0..e59575d9407f 100644
--- a/vcl/inc/vcl/font.hxx
+++ b/vcl/inc/vcl/font.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,8 +50,8 @@ class ImplFontAttributes;
class VCL_DLLPUBLIC Font
{
private:
- Impl_Font* mpImplFont;
- void MakeUnique();
+ Impl_Font* mpImplFont;
+ void MakeUnique();
public:
Font();
@@ -61,83 +61,83 @@ public:
Font( FontFamily eFamily, const Size& );
~Font();
- void SetColor( const Color& );
- const Color& GetColor() const;
- void SetFillColor( const Color& );
- const Color& GetFillColor() const;
- void SetTransparent( BOOL bTransparent );
- BOOL IsTransparent() const;
- void SetAlign( FontAlign );
- FontAlign GetAlign() const;
-
- void SetName( const String& rFamilyName );
- const String& GetName() const;
- void SetStyleName( const String& rStyleName );
- const String& GetStyleName() const;
- void SetSize( const Size& );
- const Size& GetSize() const;
- void SetHeight( long nHeight );
- long GetHeight() const;
- void SetWidth( long nWidth );
- long GetWidth() const;
-
- void SetFamily( FontFamily );
- FontFamily GetFamily() const;
- void SetCharSet( rtl_TextEncoding );
- rtl_TextEncoding GetCharSet() const;
- void SetLanguage( LanguageType );
- LanguageType GetLanguage() const;
- void SetCJKContextLanguage( LanguageType );
- LanguageType GetCJKContextLanguage() const;
- void SetPitch( FontPitch ePitch );
- FontPitch GetPitch() const;
-
- void SetOrientation( short nLineOrientation );
- short GetOrientation() const;
- void SetVertical( BOOL bVertical );
- BOOL IsVertical() const;
- void SetKerning( FontKerning nKerning );
- FontKerning GetKerning() const;
- BOOL IsKerning() const;
-
- void SetWeight( FontWeight );
- FontWeight GetWeight() const;
- void SetWidthType( FontWidth );
- FontWidth GetWidthType() const;
- void SetItalic( FontItalic );
- FontItalic GetItalic() const;
- void SetOutline( BOOL bOutline );
- BOOL IsOutline() const;
- void SetShadow( BOOL bShadow );
- BOOL IsShadow() const;
- void SetRelief( FontRelief );
- FontRelief GetRelief() const;
- void SetUnderline( FontUnderline );
- FontUnderline GetUnderline() const;
- void SetOverline( FontUnderline );
- FontUnderline GetOverline() const;
- void SetStrikeout( FontStrikeout );
- FontStrikeout GetStrikeout() const;
- void SetEmphasisMark( FontEmphasisMark );
- FontEmphasisMark GetEmphasisMark() const;
- void SetWordLineMode( BOOL bWordLine );
- BOOL IsWordLineMode() const;
-
- void Merge( const Font& rFont );
+ void SetColor( const Color& );
+ const Color& GetColor() const;
+ void SetFillColor( const Color& );
+ const Color& GetFillColor() const;
+ void SetTransparent( BOOL bTransparent );
+ BOOL IsTransparent() const;
+ void SetAlign( FontAlign );
+ FontAlign GetAlign() const;
+
+ void SetName( const String& rFamilyName );
+ const String& GetName() const;
+ void SetStyleName( const String& rStyleName );
+ const String& GetStyleName() const;
+ void SetSize( const Size& );
+ const Size& GetSize() const;
+ void SetHeight( long nHeight );
+ long GetHeight() const;
+ void SetWidth( long nWidth );
+ long GetWidth() const;
+
+ void SetFamily( FontFamily );
+ FontFamily GetFamily() const;
+ void SetCharSet( rtl_TextEncoding );
+ rtl_TextEncoding GetCharSet() const;
+ void SetLanguage( LanguageType );
+ LanguageType GetLanguage() const;
+ void SetCJKContextLanguage( LanguageType );
+ LanguageType GetCJKContextLanguage() const;
+ void SetPitch( FontPitch ePitch );
+ FontPitch GetPitch() const;
+
+ void SetOrientation( short nLineOrientation );
+ short GetOrientation() const;
+ void SetVertical( BOOL bVertical );
+ BOOL IsVertical() const;
+ void SetKerning( FontKerning nKerning );
+ FontKerning GetKerning() const;
+ BOOL IsKerning() const;
+
+ void SetWeight( FontWeight );
+ FontWeight GetWeight() const;
+ void SetWidthType( FontWidth );
+ FontWidth GetWidthType() const;
+ void SetItalic( FontItalic );
+ FontItalic GetItalic() const;
+ void SetOutline( BOOL bOutline );
+ BOOL IsOutline() const;
+ void SetShadow( BOOL bShadow );
+ BOOL IsShadow() const;
+ void SetRelief( FontRelief );
+ FontRelief GetRelief() const;
+ void SetUnderline( FontUnderline );
+ FontUnderline GetUnderline() const;
+ void SetOverline( FontUnderline );
+ FontUnderline GetOverline() const;
+ void SetStrikeout( FontStrikeout );
+ FontStrikeout GetStrikeout() const;
+ void SetEmphasisMark( FontEmphasisMark );
+ FontEmphasisMark GetEmphasisMark() const;
+ void SetWordLineMode( BOOL bWordLine );
+ BOOL IsWordLineMode() const;
+
+ void Merge( const Font& rFont );
void GetFontAttributes( ImplFontAttributes& rAttrs ) const;
- Font& operator=( const Font& );
- BOOL operator==( const Font& ) const;
- BOOL operator!=( const Font& rFont ) const
+ Font& operator=( const Font& );
+ BOOL operator==( const Font& ) const;
+ BOOL operator!=( const Font& rFont ) const
{ return !(Font::operator==( rFont )); }
- BOOL IsSameInstance( const Font& ) const;
-
- friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Font& );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const Font& );
+ BOOL IsSameInstance( const Font& ) const;
+ friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Font& );
+ friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const Font& );
+
static Font identifyFont( const void* pBuffer, sal_uInt32 nLen );
};
-#endif // _VCL_FONT_HXX
+#endif // _VCL_FONT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/fontcache.hxx b/vcl/inc/vcl/fontcache.hxx
index 726549ae6e5b..8beb1e4c6a70 100644
--- a/vcl/inc/vcl/fontcache.hxx
+++ b/vcl/inc/vcl/fontcache.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,24 +49,24 @@ class VCL_DLLPUBLIC FontCache
typedef std::list< PrintFontManager::PrintFont* > FontCacheEntry;
struct FontFile
{
- FontCacheEntry m_aEntry;
+ FontCacheEntry m_aEntry;
};
typedef std::hash_map< ::rtl::OString, FontFile, ::rtl::OStringHash > FontDirMap;
struct FontDir
{
- sal_Int64 m_nTimestamp;
- bool m_bNoFiles;
+ sal_Int64 m_nTimestamp;
+ bool m_bNoFiles;
bool m_bUserOverrideOnly;
- FontDirMap m_aEntries;
+ FontDirMap m_aEntries;
FontDir() : m_nTimestamp(0), m_bNoFiles(false), m_bUserOverrideOnly( false ) {}
};
-
+
typedef std::hash_map< int, FontDir > FontCacheData;
- FontCacheData m_aCache;
- String m_aCacheFile;
- bool m_bDoFlush;
+ FontCacheData m_aCache;
+ String m_aCacheFile;
+ bool m_bDoFlush;
void read();
void clearCache();
diff --git a/vcl/inc/vcl/fontmanager.hxx b/vcl/inc/vcl/fontmanager.hxx
index ef9175cde698..8a97e0449053 100644
--- a/vcl/inc/vcl/fontmanager.hxx
+++ b/vcl/inc/vcl/fontmanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,7 +80,7 @@ enum type {
UltraExpanded = 9
};
}
-
+
namespace pitch
{
enum type {
@@ -110,13 +110,13 @@ enum type {
namespace family
{
enum type {
- Unknown = 0,
- Decorative = 1,
+ Unknown = 0,
+ Decorative = 1,
Modern = 2,
- Roman = 3,
- Script = 4,
- Swiss = 5,
- System = 6
+ Roman = 3,
+ Script = 4,
+ Swiss = 5,
+ System = 6
};
}
@@ -130,12 +130,12 @@ enum type {
};
}
-namespace fcstatus
+namespace fcstatus
{
-enum type {
+enum type {
istrue,
isunset,
- isfalse
+ isfalse
};
}
@@ -151,19 +151,19 @@ enum type {
struct FastPrintFontInfo
{
- fontID m_nID; // FontID
- fonttype::type m_eType;
-
+ fontID m_nID; // FontID
+ fonttype::type m_eType;
+
// font attributes
- rtl::OUString m_aFamilyName;
+ rtl::OUString m_aFamilyName;
rtl::OUString m_aStyleName;
- std::list< rtl::OUString > m_aAliases;
- family::type m_eFamilyStyle;
- italic::type m_eItalic;
- width::type m_eWidth;
- weight::type m_eWeight;
- pitch::type m_ePitch;
- rtl_TextEncoding m_aEncoding;
+ std::list< rtl::OUString > m_aAliases;
+ family::type m_eFamilyStyle;
+ italic::type m_eItalic;
+ width::type m_eWidth;
+ weight::type m_eWeight;
+ pitch::type m_ePitch;
+ rtl_TextEncoding m_aEncoding;
bool m_bSubsettable;
bool m_bEmbeddable;
@@ -181,10 +181,10 @@ struct FastPrintFontInfo
struct PrintFontInfo : public FastPrintFontInfo
{
- int m_nAscend;
- int m_nDescend;
- int m_nLeading;
- int m_nWidth;
+ int m_nAscend;
+ int m_nDescend;
+ int m_nLeading;
+ int m_nWidth;
PrintFontInfo() :
FastPrintFontInfo(),
@@ -257,20 +257,20 @@ class VCL_DLLPUBLIC PrintFontManager
bool m_bKernPairsQueried;
std::list< KernPair > m_aXKernPairs;
std::list< KernPair > m_aYKernPairs;
- std::hash_map< sal_Unicode, bool > m_bVerticalSubstitutions;
+ std::hash_map< sal_Unicode, bool > m_bVerticalSubstitutions;
PrintFontMetrics() : m_bKernPairsQueried( false ) {}
-
+
bool isEmpty() const { return m_aMetrics.empty(); }
};
struct PrintFont
{
fonttype::type m_eType;
-
+
// font attributes
int m_nFamilyName; // atom
- std::list< int > m_aAliases;
+ std::list< int > m_aAliases;
int m_nPSName; // atom
rtl::OUString m_aStyleName;
italic::type m_eItalic;
@@ -278,22 +278,22 @@ class VCL_DLLPUBLIC PrintFontManager
weight::type m_eWeight;
pitch::type m_ePitch;
rtl_TextEncoding m_aEncoding;
- bool m_bFontEncodingOnly; // set if font should be only accessed by builtin encoding
+ bool m_bFontEncodingOnly; // set if font should be only accessed by builtin encoding
CharacterMetric m_aGlobalMetricX;
CharacterMetric m_aGlobalMetricY;
PrintFontMetrics* m_pMetrics;
int m_nAscend;
int m_nDescend;
int m_nLeading;
- int m_nXMin; // font bounding box
- int m_nYMin;
- int m_nXMax;
- int m_nYMax;
- bool m_bHaveVerticalSubstitutedGlyphs;
+ int m_nXMin; // font bounding box
+ int m_nYMin;
+ int m_nXMax;
+ int m_nYMax;
+ bool m_bHaveVerticalSubstitutedGlyphs;
bool m_bUserOverride;
- std::map< sal_Unicode, sal_Int32 > m_aEncodingVector;
- std::map< sal_Unicode, rtl::OString > m_aNonEncoded;
+ std::map< sal_Unicode, sal_Int32 > m_aEncodingVector;
+ std::map< sal_Unicode, rtl::OString > m_aNonEncoded;
PrintFont( fonttype::type eType );
virtual ~PrintFont();
@@ -319,11 +319,11 @@ class VCL_DLLPUBLIC PrintFontManager
struct TrueTypeFontFile : public PrintFont
{
- int m_nDirectory; // atom containing system dependent path
+ int m_nDirectory; // atom containing system dependent path
rtl::OString m_aFontFile; // relative to directory
rtl::OString m_aXLFD; // mainly for administration, contains the XLFD from fonts.dir
int m_nCollectionEntry; // -1 for regular fonts, 0 to ... for fonts stemming from collections
- unsigned int m_nTypeFlags; // copyright bits and PS-OpenType flag
+ unsigned int m_nTypeFlags; // copyright bits and PS-OpenType flag
TrueTypeFontFile();
virtual ~TrueTypeFontFile();
@@ -342,25 +342,25 @@ class VCL_DLLPUBLIC PrintFontManager
struct XLFDEntry
{
- static const int MaskFoundry = 1;
- static const int MaskFamily = 2;
- static const int MaskAddStyle = 4;
- static const int MaskItalic = 8;
- static const int MaskWeight = 16;
- static const int MaskWidth = 32;
- static const int MaskPitch = 64;
- static const int MaskEncoding = 128;
-
- int nMask; // contains a bit set for every valid member
-
- rtl::OString aFoundry;
- rtl::OString aFamily;
- rtl::OString aAddStyle;
- italic::type eItalic;
- weight::type eWeight;
- width::type eWidth;
- pitch::type ePitch;
- rtl_TextEncoding aEncoding;
+ static const int MaskFoundry = 1;
+ static const int MaskFamily = 2;
+ static const int MaskAddStyle = 4;
+ static const int MaskItalic = 8;
+ static const int MaskWeight = 16;
+ static const int MaskWidth = 32;
+ static const int MaskPitch = 64;
+ static const int MaskEncoding = 128;
+
+ int nMask; // contains a bit set for every valid member
+
+ rtl::OString aFoundry;
+ rtl::OString aFamily;
+ rtl::OString aAddStyle;
+ italic::type eItalic;
+ weight::type eWeight;
+ width::type eWidth;
+ pitch::type ePitch;
+ rtl_TextEncoding aEncoding;
XLFDEntry() { nMask = 0; }
@@ -375,7 +375,7 @@ class VCL_DLLPUBLIC PrintFontManager
std::hash_map< int, family::type > m_aFamilyTypes;
std::list< rtl::OUString > m_aPrinterDrivers;
std::list< rtl::OString > m_aFontDirectories;
- std::list< int > m_aPrivateFontDirectories;
+ std::list< int > m_aPrivateFontDirectories;
std::map< struct XLFDEntry, std::list< struct XLFDEntry > >
m_aXLFD_Aliases;
utl::MultiAtomProvider* m_pAtoms;
@@ -392,14 +392,14 @@ class VCL_DLLPUBLIC PrintFontManager
m_aAdobenameToUnicode;
std::hash_multimap< sal_Unicode, rtl::OString >
m_aUnicodeToAdobename;
- std::hash_multimap< sal_Unicode, sal_uInt8 > m_aUnicodeToAdobecode;
- std::hash_multimap< sal_uInt8, sal_Unicode > m_aAdobecodeToUnicode;
+ std::hash_multimap< sal_Unicode, sal_uInt8 > m_aUnicodeToAdobecode;
+ std::hash_multimap< sal_uInt8, sal_Unicode > m_aAdobecodeToUnicode;
mutable FontCache* m_pFontCache;
bool m_bFontconfigSuccess;
mutable std::vector< fontID > m_aOverrideFonts;
-
+
rtl::OString getAfmFile( PrintFont* pFont ) const;
rtl::OString getFontFile( PrintFont* pFont ) const;
@@ -447,18 +447,18 @@ class VCL_DLLPUBLIC PrintFontManager
since fontconfig is asked for font substitutes before OOo will check for font availability
and fontconfig will happily substitute fonts it doesn't know (e.g. "Arial Narrow" -> "DejaVu Sans Book"!)
- it becomes necessary to tell the library about all the hidden font treasures
-
+ it becomes necessary to tell the library about all the hidden font treasures
+
@returns
true if libfontconfig accepted the directory
false else (e.g. no libfontconfig found)
*/
bool addFontconfigDir(const rtl::OString& rDirectory);
-
+
static bool parseXLFD( const rtl::OString& rXLFD, XLFDEntry& rEntry );
void parseXLFD_appendAliases( const std::list< rtl::OString >& rXLFDs, std::list< XLFDEntry >& rEntries ) const;
void initFontsAlias();
-
+
bool readOverrideMetrics();
PrintFontManager();
@@ -466,17 +466,17 @@ class VCL_DLLPUBLIC PrintFontManager
public:
static PrintFontManager& get(); // one instance only
- int addFontFile( const rtl::OString& rFileName, int nFaceNum );
+ int addFontFile( const rtl::OString& rFileName, int nFaceNum );
void initialize();
// returns the number of managed fonts
int getFontCount() const { return m_aFonts.size(); }
-
+
// caution: the getFontList* methods can change the font list on demand
// depending on the pParser argument. That is getFontCount() may
// return a larger value after getFontList()
-
+
// returns the ids of all managed fonts. on pParser != NULL
// all fonttype::Builtin type fonts are not listed
// which do not occur in the PPD of pParser
@@ -503,7 +503,7 @@ public:
// get a specific fonts family name aliases
void getFontFamilyAliases( fontID nFontID ) const;
-
+
// get a specific fonts type
fonttype::type getFontType( fontID nFontID ) const
{
@@ -733,8 +733,8 @@ public:
bool matchFont( FastPrintFontInfo& rInfo, const com::sun::star::lang::Locale& rLocale );
bool getFontOptions( const FastPrintFontInfo&, int nSize, void (*subcallback)(void*), ImplFontOptions& rResult ) const;
- rtl::OUString Substitute( const rtl::OUString& rFontName, rtl::OUString& rMissingCodes,
- const rtl::OString& rLangAttrib, italic::type& rItalic, weight::type& rWeight,
+ rtl::OUString Substitute( const rtl::OUString& rFontName, rtl::OUString& rMissingCodes,
+ const rtl::OString& rLangAttrib, italic::type& rItalic, weight::type& rWeight,
width::type& rWidth, pitch::type& rPitch) const;
bool hasFontconfig() const { return m_bFontconfigSuccess; }
diff --git a/vcl/inc/vcl/fontsubset.hxx b/vcl/inc/vcl/fontsubset.hxx
index f710434698de..392ad42a7c56 100644
--- a/vcl/inc/vcl/fontsubset.hxx
+++ b/vcl/inc/vcl/fontsubset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,60 +38,60 @@ namespace vcl { struct _TrueTypeFont; } // SFT's idea of a TTF font
class FontSubsetInfo
{
public:
- explicit FontSubsetInfo( void );
- virtual ~FontSubsetInfo( void );
+ explicit FontSubsetInfo( void );
+ virtual ~FontSubsetInfo( void );
enum FontType {
- NO_FONT = 0,
- SFNT_TTF = 1<<1, // SFNT container with TrueType glyphs
- SFNT_CFF = 1<<2, // SFNT container with CFF-container
- TYPE1_PFA = 1<<3, // PSType1 Postscript Font Ascii
- TYPE1_PFB = 1<<4, // PSType1 Postscript Font Binary
- CFF_FONT = 1<<5, // CFF-container with PSType2 glyphs
- TYPE3_FONT = 1<<6, // PSType3 Postscript font
- TYPE42_FONT = 1<<7, // PSType42 wrapper for an SFNT_TTF
- ANY_SFNT = SFNT_TTF | SFNT_CFF,
- ANY_TYPE1 = TYPE1_PFA | TYPE1_PFB,
- ANY_FONT = 0xFF
+ NO_FONT = 0,
+ SFNT_TTF = 1<<1, // SFNT container with TrueType glyphs
+ SFNT_CFF = 1<<2, // SFNT container with CFF-container
+ TYPE1_PFA = 1<<3, // PSType1 Postscript Font Ascii
+ TYPE1_PFB = 1<<4, // PSType1 Postscript Font Binary
+ CFF_FONT = 1<<5, // CFF-container with PSType2 glyphs
+ TYPE3_FONT = 1<<6, // PSType3 Postscript font
+ TYPE42_FONT = 1<<7, // PSType42 wrapper for an SFNT_TTF
+ ANY_SFNT = SFNT_TTF | SFNT_CFF,
+ ANY_TYPE1 = TYPE1_PFA | TYPE1_PFB,
+ ANY_FONT = 0xFF
};
- bool LoadFont( FontType eInFontType,
+ bool LoadFont( FontType eInFontType,
const unsigned char* pFontBytes, int nByteLength );
- bool LoadFont( vcl::_TrueTypeFont* pSftTrueTypeFont );
+ bool LoadFont( vcl::_TrueTypeFont* pSftTrueTypeFont );
- bool CreateFontSubset( int nOutFontTypeMask,
+ bool CreateFontSubset( int nOutFontTypeMask,
FILE* pOutFile, const char* pOutFontName,
const long* pReqGlyphIds, const sal_uInt8* pEncodedIds,
int nReqGlyphCount, sal_Int32* pOutGlyphWidths = NULL );
public: // TODO: make subsetter results private and provide accessor methods instead
// subsetter-provided subset details needed by e.g. Postscript or PDF
- String m_aPSName;
- int m_nAscent; // all metrics in PS font units
- int m_nDescent;
- int m_nCapHeight;
- Rectangle m_aFontBBox;
- FontType m_nFontType; // font-type of subset result
+ String m_aPSName;
+ int m_nAscent; // all metrics in PS font units
+ int m_nDescent;
+ int m_nCapHeight;
+ Rectangle m_aFontBBox;
+ FontType m_nFontType; // font-type of subset result
private:
// input-font-specific details
- unsigned const char* mpInFontBytes;
- int mnInByteLength;
- FontType meInFontType; // allowed mask of input font-types
- vcl::_TrueTypeFont* mpSftTTFont;
+ unsigned const char* mpInFontBytes;
+ int mnInByteLength;
+ FontType meInFontType; // allowed mask of input font-types
+ vcl::_TrueTypeFont* mpSftTTFont;
// subset-request details
- int mnReqFontTypeMask; // allowed subset-target font types
- FILE* mpOutFile;
- const char* mpReqFontName;
- const long* mpReqGlyphIds;
- const sal_uInt8* mpReqEncodedIds;
- int mnReqGlyphCount;
+ int mnReqFontTypeMask; // allowed subset-target font types
+ FILE* mpOutFile;
+ const char* mpReqFontName;
+ const long* mpReqGlyphIds;
+ const sal_uInt8* mpReqEncodedIds;
+ int mnReqGlyphCount;
protected:
- bool CreateFontSubsetFromCff( sal_Int32* pOutGlyphWidths = NULL );
- bool CreateFontSubsetFromSfnt( sal_Int32* pOutGlyphWidths = NULL );
- bool CreateFontSubsetFromType1( sal_Int32* pOutGlyphWidths = NULL );
+ bool CreateFontSubsetFromCff( sal_Int32* pOutGlyphWidths = NULL );
+ bool CreateFontSubsetFromSfnt( sal_Int32* pOutGlyphWidths = NULL );
+ bool CreateFontSubsetFromType1( sal_Int32* pOutGlyphWidths = NULL );
};
#endif // _SV_FONTSUBSET_HXX
diff --git a/vcl/inc/vcl/gdimtf.hxx b/vcl/inc/vcl/gdimtf.hxx
index 63ecaad720b9..4bf3d4669fbc 100644
--- a/vcl/inc/vcl/gdimtf.hxx
+++ b/vcl/inc/vcl/gdimtf.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,20 +55,20 @@ class Gradient;
#define GDI_METAFILE_LABEL_NOTFOUND ((ULONG)0xFFFFFFFF)
#ifndef METAFILE_END
-#define METAFILE_END GDI_METAFILE_END
+#define METAFILE_END GDI_METAFILE_END
#endif
#ifndef METAFILE_LABEL_NOTFOUND
-#define METAFILE_LABEL_NOTFOUND GDI_METAFILE_LABEL_NOTFOUND
+#define METAFILE_LABEL_NOTFOUND GDI_METAFILE_LABEL_NOTFOUND
#endif
// -----------
// - Defines -
// -----------
-#define MTF_MIRROR_NONE 0x00000000UL
-#define MTF_MIRROR_HORZ 0x00000001UL
-#define MTF_MIRROR_VERT 0x00000002UL
+#define MTF_MIRROR_NONE 0x00000000UL
+#define MTF_MIRROR_HORZ 0x00000001UL
+#define MTF_MIRROR_VERT 0x00000002UL
// ---------
// - Enums -
@@ -112,29 +112,29 @@ private:
SAL_DLLPRIVATE static Color ImplColAdjustFnc( const Color& rColor, const void* pColParam );
SAL_DLLPRIVATE static BitmapEx ImplBmpAdjustFnc( const BitmapEx& rBmpEx, const void* pBmpParam );
- SAL_DLLPRIVATE static Color ImplColConvertFnc( const Color& rColor, const void* pColParam );
+ SAL_DLLPRIVATE static Color ImplColConvertFnc( const Color& rColor, const void* pColParam );
SAL_DLLPRIVATE static BitmapEx ImplBmpConvertFnc( const BitmapEx& rBmpEx, const void* pBmpParam );
- SAL_DLLPRIVATE static Color ImplColMonoFnc( const Color& rColor, const void* pColParam );
+ SAL_DLLPRIVATE static Color ImplColMonoFnc( const Color& rColor, const void* pColParam );
SAL_DLLPRIVATE static BitmapEx ImplBmpMonoFnc( const BitmapEx& rBmpEx, const void* pBmpParam );
- SAL_DLLPRIVATE static Color ImplColReplaceFnc( const Color& rColor, const void* pColParam );
+ SAL_DLLPRIVATE static Color ImplColReplaceFnc( const Color& rColor, const void* pColParam );
SAL_DLLPRIVATE static BitmapEx ImplBmpReplaceFnc( const BitmapEx& rBmpEx, const void* pBmpParam );
- SAL_DLLPRIVATE void ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pColParam,
+ SAL_DLLPRIVATE void ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pColParam,
BmpExchangeFnc pFncBmp, const void* pBmpParam );
- SAL_DLLPRIVATE Point ImplGetRotatedPoint( const Point& rPt, const Point& rRotatePt,
+ SAL_DLLPRIVATE Point ImplGetRotatedPoint( const Point& rPt, const Point& rRotatePt,
const Size& rOffset, double fSin, double fCos );
- SAL_DLLPRIVATE Polygon ImplGetRotatedPolygon( const Polygon& rPoly, const Point& rRotatePt,
+ SAL_DLLPRIVATE Polygon ImplGetRotatedPolygon( const Polygon& rPoly, const Point& rRotatePt,
const Size& rOffset, double fSin, double fCos );
- SAL_DLLPRIVATE PolyPolygon ImplGetRotatedPolyPolygon( const PolyPolygon& rPoly, const Point& rRotatePt,
+ SAL_DLLPRIVATE PolyPolygon ImplGetRotatedPolyPolygon( const PolyPolygon& rPoly, const Point& rRotatePt,
const Size& rOffset, double fSin, double fCos );
- SAL_DLLPRIVATE void ImplAddGradientEx( GDIMetaFile& rMtf,
+ SAL_DLLPRIVATE void ImplAddGradientEx( GDIMetaFile& rMtf,
const OutputDevice& rMapDev,
const PolyPolygon& rPolyPoly,
- const Gradient& rGrad );
- SAL_DLLPRIVATE bool ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, Size rDestSize );
+ const Gradient& rGrad );
+ SAL_DLLPRIVATE bool ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, Size rDestSize );
SAL_DLLPRIVATE void ImplDelegate2PluggableRenderer( const MetaCommentAction* pAct, OutputDevice* pOut );
@@ -146,16 +146,16 @@ protected:
public:
GDIMetaFile();
GDIMetaFile( const GDIMetaFile& rMtf );
- virtual ~GDIMetaFile();
+ virtual ~GDIMetaFile();
using List::operator==;
using List::operator!=;
GDIMetaFile& operator=( const GDIMetaFile& rMtf );
- BOOL operator==( const GDIMetaFile& rMtf ) const;
- BOOL operator!=( const GDIMetaFile& rMtf ) const { return !( *this == rMtf ); }
+ BOOL operator==( const GDIMetaFile& rMtf ) const;
+ BOOL operator!=( const GDIMetaFile& rMtf ) const { return !( *this == rMtf ); }
void Clear();
- sal_Bool IsEqual( const GDIMetaFile& rMtf ) const;
+ sal_Bool IsEqual( const GDIMetaFile& rMtf ) const;
BOOL Mirror( ULONG nMirrorFlags );
void Move( long nX, long nY );
// additional Move method getting specifics how to handle MapMode( MAP_PIXEL )
@@ -173,12 +173,12 @@ public:
*/
Rectangle GetBoundRect( OutputDevice& i_rReference );
- void Adjust( short nLuminancePercent = 0, short nContrastPercent = 0,
- short nChannelRPercent = 0, short nChannelGPercent = 0,
+ void Adjust( short nLuminancePercent = 0, short nContrastPercent = 0,
+ short nChannelRPercent = 0, short nChannelGPercent = 0,
short nChannelBPercent = 0, double fGamma = 1.0, BOOL bInvert = FALSE );
- void Convert( MtfConversion eConversion );
- void ReplaceColors( const Color& rSearchColor, const Color& rReplaceColor, ULONG nTol = 0 );
- void ReplaceColors( const Color* pSearchColors, const Color* rReplaceColors,
+ void Convert( MtfConversion eConversion );
+ void ReplaceColors( const Color& rSearchColor, const Color& rReplaceColor, ULONG nTol = 0 );
+ void ReplaceColors( const Color* pSearchColors, const Color* rReplaceColors,
ULONG nColorCount, ULONG* pTols = NULL );
GDIMetaFile GetMonochromeMtf( const Color& rCol ) const;
@@ -205,12 +205,12 @@ public:
ULONG GetActionCount() const { return Count(); }
void AddAction( MetaAction* pAction );
void AddAction( MetaAction* pAction, ULONG nPos );
- void RemoveAction( ULONG nPos );
+ void RemoveAction( ULONG nPos );
MetaAction* CopyAction( ULONG nPos ) const;
MetaAction* GetCurAction() const { return (MetaAction*) GetCurObject(); }
MetaAction* GetAction( ULONG nAction ) const { return (MetaAction*) GetObject( nAction ); }
- MetaAction* FirstAction() { return (MetaAction*) First(); }
- MetaAction* NextAction() { return (MetaAction*) Next(); }
+ MetaAction* FirstAction() { return (MetaAction*) First(); }
+ MetaAction* NextAction() { return (MetaAction*) Next(); }
MetaAction* ReplaceAction( MetaAction* pAction, ULONG nAction ) { return (MetaAction*) Replace( pAction, nAction ); }
ULONG GetActionPos( const String& rLabel );
@@ -231,13 +231,13 @@ public:
void SetHookHdl( const Link& rLink ) { aHookHdlLink = rLink; }
const Link& GetHookHdl() const { return aHookHdlLink; }
- ULONG GetChecksum() const;
+ ULONG GetChecksum() const;
ULONG GetSizeBytes() const;
// Methoden zum Lesen und Schreiben des neuen Formats;
// die Read-Methode kann auch das alte Format lesen
- SvStream& Read( SvStream& rIStm );
- SvStream& Write( SvStream& rOStm );
+ SvStream& Read( SvStream& rIStm );
+ SvStream& Write( SvStream& rOStm );
// Stream-Operatoren schreiben das alte Format (noch)
// und lesen sowohl das alte wie auch das neue Format
diff --git a/vcl/inc/vcl/gfxlink.hxx b/vcl/inc/vcl/gfxlink.hxx
index 5f1b593ba44a..29b6461b8f5a 100644
--- a/vcl/inc/vcl/gfxlink.hxx
+++ b/vcl/inc/vcl/gfxlink.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,8 +40,8 @@
struct ImpBuffer
{
- ULONG mnRefCount;
- BYTE* mpBuffer;
+ ULONG mnRefCount;
+ BYTE* mpBuffer;
ImpBuffer( ULONG nSize )
{
@@ -60,18 +60,18 @@ struct ImpBuffer
struct ImpSwap
{
- rtl::OUString maURL;
- ULONG mnDataSize;
- ULONG mnRefCount;
+ rtl::OUString maURL;
+ ULONG mnDataSize;
+ ULONG mnRefCount;
ImpSwap( BYTE* pData, ULONG nDataSize );
~ImpSwap();
- BYTE* GetData() const;
+ BYTE* GetData() const;
- BOOL IsSwapped() const { return maURL.getLength() > 0; }
+ BOOL IsSwapped() const { return maURL.getLength() > 0; }
- void WriteTo( SvStream& rOStm ) const;
+ void WriteTo( SvStream& rOStm ) const;
};
// --------------
@@ -82,14 +82,14 @@ struct ImpGfxLink
{
MapMode maPrefMapMode;
Size maPrefSize;
- bool mbPrefMapModeValid;
- bool mbPrefSizeValid;
+ bool mbPrefMapModeValid;
+ bool mbPrefSizeValid;
- ImpGfxLink() :
+ ImpGfxLink() :
maPrefMapMode(),
maPrefSize(),
- mbPrefMapModeValid( false ),
- mbPrefSizeValid( false )
+ mbPrefMapModeValid( false ),
+ mbPrefSizeValid( false )
{}
};
@@ -101,20 +101,20 @@ struct ImpGfxLink
enum GfxLinkType
{
- GFX_LINK_TYPE_NONE = 0,
- GFX_LINK_TYPE_EPS_BUFFER = 1,
- GFX_LINK_TYPE_NATIVE_GIF = 2, // Don't forget to update the following defines
- GFX_LINK_TYPE_NATIVE_JPG = 3, // Don't forget to update the following defines
- GFX_LINK_TYPE_NATIVE_PNG = 4, // Don't forget to update the following defines
- GFX_LINK_TYPE_NATIVE_TIF = 5, // Don't forget to update the following defines
- GFX_LINK_TYPE_NATIVE_WMF = 6, // Don't forget to update the following defines
- GFX_LINK_TYPE_NATIVE_MET = 7, // Don't forget to update the following defines
- GFX_LINK_TYPE_NATIVE_PCT = 8, // Don't forget to update the following defines
- GFX_LINK_TYPE_USER = 0xffff
+ GFX_LINK_TYPE_NONE = 0,
+ GFX_LINK_TYPE_EPS_BUFFER = 1,
+ GFX_LINK_TYPE_NATIVE_GIF = 2, // Don't forget to update the following defines
+ GFX_LINK_TYPE_NATIVE_JPG = 3, // Don't forget to update the following defines
+ GFX_LINK_TYPE_NATIVE_PNG = 4, // Don't forget to update the following defines
+ GFX_LINK_TYPE_NATIVE_TIF = 5, // Don't forget to update the following defines
+ GFX_LINK_TYPE_NATIVE_WMF = 6, // Don't forget to update the following defines
+ GFX_LINK_TYPE_NATIVE_MET = 7, // Don't forget to update the following defines
+ GFX_LINK_TYPE_NATIVE_PCT = 8, // Don't forget to update the following defines
+ GFX_LINK_TYPE_USER = 0xffff
};
-#define GFX_LINK_FIRST_NATIVE_ID GFX_LINK_TYPE_NATIVE_GIF
-#define GFX_LINK_LAST_NATIVE_ID GFX_LINK_TYPE_NATIVE_PCT
+#define GFX_LINK_FIRST_NATIVE_ID GFX_LINK_TYPE_NATIVE_GIF
+#define GFX_LINK_LAST_NATIVE_ID GFX_LINK_TYPE_NATIVE_PCT
// -----------
// - GfxLink -
@@ -129,58 +129,58 @@ class VCL_DLLPUBLIC GfxLink
{
private:
- GfxLinkType meType;
- ImpBuffer* mpBuf;
- ImpSwap* mpSwap;
- sal_uInt32 mnBufSize;
- sal_uInt32 mnUserId;
+ GfxLinkType meType;
+ ImpBuffer* mpBuf;
+ ImpSwap* mpSwap;
+ sal_uInt32 mnBufSize;
+ sal_uInt32 mnUserId;
ImpGfxLink* mpImpData;
- ULONG mnExtra2;
+ ULONG mnExtra2;
- SAL_DLLPRIVATE void ImplCopy( const GfxLink& rGfxLink );
+ SAL_DLLPRIVATE void ImplCopy( const GfxLink& rGfxLink );
-public:
+public:
GfxLink();
GfxLink( const GfxLink& );
GfxLink( const String& rPath, GfxLinkType nType );
GfxLink( BYTE* pBuf, sal_uInt32 nBufSize, GfxLinkType nType, BOOL bOwns );
~GfxLink();
- GfxLink& operator=( const GfxLink& );
- sal_Bool IsEqual( const GfxLink& ) const;
+ GfxLink& operator=( const GfxLink& );
+ sal_Bool IsEqual( const GfxLink& ) const;
- GfxLinkType GetType() const;
+ GfxLinkType GetType() const;
- void SetUserId( sal_uInt32 nUserId ) { mnUserId = nUserId; }
- sal_uInt32 GetUserId() const { return mnUserId; }
+ void SetUserId( sal_uInt32 nUserId ) { mnUserId = nUserId; }
+ sal_uInt32 GetUserId() const { return mnUserId; }
- sal_uInt32 GetDataSize() const;
- void SetData( BYTE* pBuf, sal_uInt32 nSize, GfxLinkType nType, BOOL bOwns );
- const BYTE* GetData() const;
+ sal_uInt32 GetDataSize() const;
+ void SetData( BYTE* pBuf, sal_uInt32 nSize, GfxLinkType nType, BOOL bOwns );
+ const BYTE* GetData() const;
- const Size& GetPrefSize() const;
- void SetPrefSize( const Size& rPrefSize );
- bool IsPrefSizeValid();
+ const Size& GetPrefSize() const;
+ void SetPrefSize( const Size& rPrefSize );
+ bool IsPrefSizeValid();
- const MapMode& GetPrefMapMode() const;
- void SetPrefMapMode( const MapMode& rPrefMapMode );
- bool IsPrefMapModeValid();
+ const MapMode& GetPrefMapMode() const;
+ void SetPrefMapMode( const MapMode& rPrefMapMode );
+ bool IsPrefMapModeValid();
- BOOL IsNative() const;
- BOOL IsUser() const { return( GFX_LINK_TYPE_USER == meType ); }
+ BOOL IsNative() const;
+ BOOL IsUser() const { return( GFX_LINK_TYPE_USER == meType ); }
- BOOL LoadNative( Graphic& rGraphic );
+ BOOL LoadNative( Graphic& rGraphic );
- BOOL ExportNative( SvStream& rOStream ) const;
+ BOOL ExportNative( SvStream& rOStream ) const;
- void SwapOut();
- void SwapIn();
- BOOL IsSwappedOut() const { return( mpSwap != NULL ); }
+ void SwapOut();
+ void SwapIn();
+ BOOL IsSwappedOut() const { return( mpSwap != NULL ); }
public:
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const GfxLink& rGfxLink );
- friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, GfxLink& rGfxLink );
+ friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const GfxLink& rGfxLink );
+ friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, GfxLink& rGfxLink );
};
#endif
diff --git a/vcl/inc/vcl/glyphcache.hxx b/vcl/inc/vcl/glyphcache.hxx
index 525ac7357271..9731440a6c98 100644
--- a/vcl/inc/vcl/glyphcache.hxx
+++ b/vcl/inc/vcl/glyphcache.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ public:
explicit GlyphCache( GlyphCachePeer& );
/*virtual*/ ~GlyphCache();
- static GlyphCache& GetInstance();
+ static GlyphCache& GetInstance();
void LoadFonts();
void ClearFontPath();
diff --git a/vcl/inc/vcl/gradient.hxx b/vcl/inc/vcl/gradient.hxx
index 741af923ce8e..46abd8dd83a2 100644
--- a/vcl/inc/vcl/gradient.hxx
+++ b/vcl/inc/vcl/gradient.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,9 +80,9 @@ public:
class VCL_DLLPUBLIC Gradient
{
-private:
- Impl_Gradient* mpImplGradient;
- void MakeUnique();
+private:
+ Impl_Gradient* mpImplGradient;
+ void MakeUnique();
public:
Gradient();
diff --git a/vcl/inc/vcl/graph.h b/vcl/inc/vcl/graph.h
index 803df074882d..62a9a67cd99f 100644
--- a/vcl/inc/vcl/graph.h
+++ b/vcl/inc/vcl/graph.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/graph.hxx b/vcl/inc/vcl/graph.hxx
index 78994327041e..1f98376234b5 100644
--- a/vcl/inc/vcl/graph.hxx
+++ b/vcl/inc/vcl/graph.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -203,7 +203,7 @@ public:
GfxLink GetLink() const;
BOOL IsLink() const;
- BOOL ExportNative( SvStream& rOStream ) const;
+ BOOL ExportNative( SvStream& rOStream ) const;
friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const Graphic& rGraphic );
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, Graphic& rGraphic );
diff --git a/vcl/inc/vcl/graphictools.hxx b/vcl/inc/vcl/graphictools.hxx
index edd29ab9db01..5ace72cf27aa 100644
--- a/vcl/inc/vcl/graphictools.hxx
+++ b/vcl/inc/vcl/graphictools.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,29 +65,29 @@ class VCL_DLLPUBLIC SvtGraphicStroke
{
public:
/// Style for open stroke ends
- enum CapType
+ enum CapType
{
/// No additional cap
- capButt=0,
+ capButt=0,
/// Half-round cap at the line end, the center lying at the end point
- capRound,
+ capRound,
/// Half-square cap at the line end, the center lying at the end point
capSquare
};
/// Style for joins of individual stroke segments
- enum JoinType
+ enum JoinType
{
/// Extend segment edges, until they cross
- joinMiter=0,
+ joinMiter=0,
/// Connect segments by a filled round arc
- joinRound,
+ joinRound,
/// Connect segments by a direct straight line
- joinBevel,
+ joinBevel,
/// Perform no join, leads to visible gaps between thick line segments
joinNone
};
enum
- {
+ {
/// Width of stroke start/end arrow to exactly fit the joining stroke
normalizedArrowWidth=65536
};
@@ -98,19 +98,19 @@ public:
See accessor method descriptions for argument description
*/
- SvtGraphicStroke( const Polygon& rPath,
- const PolyPolygon& rStartArrow,
- const PolyPolygon& rEndArrow,
- double fTransparency,
- double fStrokeWidth,
- CapType aCap,
- JoinType aJoin,
- double fMiterLimit,
- const DashArray& rDashArray ); // TODO: Dash array offset (position where to start, see PS)
+ SvtGraphicStroke( const Polygon& rPath,
+ const PolyPolygon& rStartArrow,
+ const PolyPolygon& rEndArrow,
+ double fTransparency,
+ double fStrokeWidth,
+ CapType aCap,
+ JoinType aJoin,
+ double fMiterLimit,
+ const DashArray& rDashArray ); // TODO: Dash array offset (position where to start, see PS)
// accessors
/// Query path to stroke
- void getPath ( Polygon& ) const;
+ void getPath ( Polygon& ) const;
/** Get the polygon that is put at the start of the line
The polygon is in a special normalized position: the center of
@@ -124,7 +124,7 @@ public:
width, it has to fit every stroke with every stroke width
exactly.
*/
- void getStartArrow ( PolyPolygon& ) const;
+ void getStartArrow ( PolyPolygon& ) const;
/** Get the polygon that is put at the end of the line
The polygon is in a special normalized position, and already
@@ -138,28 +138,28 @@ public:
arrow does have this width, it has to fit every stroke with
every stroke width exactly.
*/
- void getEndArrow ( PolyPolygon& ) const;
+ void getEndArrow ( PolyPolygon& ) const;
/** Get stroke transparency
@return the transparency, ranging from 0.0 (opaque) to 1.0 (fully translucent)
*/
- double getTransparency () const;
+ double getTransparency () const;
/// Get width of the stroke
- double getStrokeWidth () const;
+ double getStrokeWidth () const;
/// Get the style in which open stroke ends are drawn
- CapType getCapType () const;
+ CapType getCapType () const;
/// Get the style in which the stroke segments are joined
- JoinType getJoinType () const;
+ JoinType getJoinType () const;
/// Get the maximum length of mitered joins
- double getMiterLimit () const;
+ double getMiterLimit () const;
/// Get an array of "on" and "off" lengths for stroke dashing
- void getDashArray ( DashArray& ) const;
+ void getDashArray ( DashArray& ) const;
/// Query a textual representation of the object's content
- ::rtl::OString toString () const;
+ ::rtl::OString toString () const;
// mutators
/// Set path to stroke
- void setPath ( const Polygon& );
+ void setPath ( const Polygon& );
/** Set the polygon that is put at the start of the line
The polygon has to be in a special normalized position, and
@@ -173,7 +173,7 @@ public:
arrow does have this width, it will fit every stroke with
every stroke width exactly.
*/
- void setStartArrow ( const PolyPolygon& );
+ void setStartArrow ( const PolyPolygon& );
/** Set the polygon that is put at the end of the line
The polygon has to be in a special normalized position, and
@@ -187,38 +187,38 @@ public:
arrow does have this width, it will fit every stroke with
every stroke width exactly.
*/
- void setEndArrow ( const PolyPolygon& );
+ void setEndArrow ( const PolyPolygon& );
/** Set stroke transparency
@param fTrans
The transparency, ranging from 0.0 (opaque) to 1.0 (fully translucent)
*/
- void setTransparency ( double fTrans );
+ void setTransparency ( double fTrans );
/// Set width of the stroke
- void setStrokeWidth ( double );
+ void setStrokeWidth ( double );
/// Set the style in which open stroke ends are drawn
- void setCapType ( CapType );
+ void setCapType ( CapType );
/// Set the style in which the stroke segments are joined
- void setJoinType ( JoinType );
+ void setJoinType ( JoinType );
/// Set the maximum length of mitered joins
- void setMiterLimit ( double );
+ void setMiterLimit ( double );
/// Set the array of "on" and "off" lengths for stroke dashing
- void setDashArray ( const DashArray& );
+ void setDashArray ( const DashArray& );
private:
// friends
VCL_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const SvtGraphicStroke& rClass );
VCL_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, SvtGraphicStroke& rClass );
- Polygon maPath;
- PolyPolygon maStartArrow;
- PolyPolygon maEndArrow;
- double mfTransparency;
- double mfStrokeWidth;
- CapType maCapType;
- JoinType maJoinType;
- double mfMiterLimit;
- DashArray maDashArray;
+ Polygon maPath;
+ PolyPolygon maStartArrow;
+ PolyPolygon maEndArrow;
+ double mfTransparency;
+ double mfStrokeWidth;
+ CapType maCapType;
+ JoinType maJoinType;
+ double mfMiterLimit;
+ DashArray maDashArray;
};
/** Encapsulates geometry and associated attributes of a filled area
@@ -249,7 +249,7 @@ public:
one. The part of the scanline where the winding number is
non-zero gets filled.
*/
- fillNonZero=0,
+ fillNonZero=0,
/** Even-odd fill rule
Fill shape scanline-wise. Starting at the left, count the
@@ -262,11 +262,11 @@ public:
enum FillType
{
/// Fill with a specified solid color
- fillSolid=0,
+ fillSolid=0,
/// Fill with the specified gradient
- fillGradient,
+ fillGradient,
/// Fill with the specified hatch
- fillHatch,
+ fillHatch,
/// Fill with the specified texture (a Graphic object)
fillTexture
};
@@ -274,9 +274,9 @@ public:
enum HatchType
{
/// horizontal parallel lines, one unit apart
- hatchSingle=0,
+ hatchSingle=0,
/// horizontal and verticall orthogonally crossing lines, one unit apart
- hatchDouble,
+ hatchDouble,
/// three crossing lines, like HatchType::hatchDouble, but
/// with an additional diagonal line, rising to the upper
/// right corner. The first diagonal line goes through the
@@ -313,40 +313,40 @@ public:
See accessor method descriptions for argument description
*/
- SvtGraphicFill( const PolyPolygon& rPath,
- Color aFillColor,
- double fTransparency,
- FillRule aFillRule,
- FillType aFillType, // TODO: Multitexturing
- const Transform& aFillTransform,
- bool bTiling,
- HatchType aHatchType, // TODO: vector of directions and start points
- Color aHatchColor,
- GradientType aGradientType, // TODO: Transparent gradients (orthogonal to normal ones)
- Color aGradient1stColor, // TODO: vector of colors and offsets
- Color aGradient2ndColor,
- int aGradientStepCount, // numbers of steps to render the gradient. gradientStepsInfinite means infinitely many.
- const Graphic& aFillGraphic );
+ SvtGraphicFill( const PolyPolygon& rPath,
+ Color aFillColor,
+ double fTransparency,
+ FillRule aFillRule,
+ FillType aFillType, // TODO: Multitexturing
+ const Transform& aFillTransform,
+ bool bTiling,
+ HatchType aHatchType, // TODO: vector of directions and start points
+ Color aHatchColor,
+ GradientType aGradientType, // TODO: Transparent gradients (orthogonal to normal ones)
+ Color aGradient1stColor, // TODO: vector of colors and offsets
+ Color aGradient2ndColor,
+ int aGradientStepCount, // numbers of steps to render the gradient. gradientStepsInfinite means infinitely many.
+ const Graphic& aFillGraphic );
// accessors
/// Query path to fill
- void getPath ( PolyPolygon& ) const;
+ void getPath ( PolyPolygon& ) const;
/// Get color used for solid fills
- Color getFillColor () const;
+ Color getFillColor () const;
/** Get stroke transparency
@return the transparency, ranging from 0.0 (opaque) to 1.0 (fully translucent)
*/
- double getTransparency () const;
+ double getTransparency () const;
/// Get fill rule used
- FillRule getFillRule () const;
+ FillRule getFillRule () const;
/** Get fill type used
Currently, only one of the fill types can be used
simultaneously. If you specify e.g. FillRule::fillGradient,
hatching, texture and solid fill color are ignored.
*/
- FillType getFillType () const;
+ FillType getFillType () const;
/** Get transformation applied to hatch, gradient or texture during fill
A fill operation generally starts at the top left position of
@@ -358,29 +358,29 @@ public:
top left corner plus the translation components.
*/
- void getTransform ( Transform& ) const;
+ void getTransform ( Transform& ) const;
/// deprecated
- bool IsTiling () const;
+ bool IsTiling () const;
/** Query state of texture tiling
@return true, if texture is tiled, false, if output only once.
*/
- bool isTiling () const;
+ bool isTiling () const;
/// Get type of hatch used
- HatchType getHatchType () const;
+ HatchType getHatchType () const;
/// Get color used for drawing the hatch
- Color getHatchColor () const;
+ Color getHatchColor () const;
/// Get type of gradient used
- GradientType getGradientType () const;
+ GradientType getGradientType () const;
/// Get start color of the gradient
- Color getGradient1stColor () const;
+ Color getGradient1stColor () const;
/// Get end color of the gradient
- Color getGradient2ndColor () const;
- /** Get the numbers of steps to render the gradient.
+ Color getGradient2ndColor () const;
+ /** Get the numbers of steps to render the gradient.
@return the step count. gradientStepsInfinite means infinitely many.
*/
- int getGradientStepCount() const;
+ int getGradientStepCount() const;
/** Get the texture graphic used
The Graphic object returned is used to fill the geometry, if
@@ -388,76 +388,76 @@ public:
assumed to be of size 1x1, the transformation is used to scale
it to the appropriate size.
*/
- void getGraphic ( Graphic& ) const;
+ void getGraphic ( Graphic& ) const;
/// Query a textual representation of the object's content
- ::rtl::OString toString () const;
+ ::rtl::OString toString () const;
// mutators
/// Set path to fill
- void setPath ( const PolyPolygon& rPath );
- /// Set color used for solid fills
- void setFillColor ( Color aFillColor );
+ void setPath ( const PolyPolygon& rPath );
+ /// Set color used for solid fills
+ void setFillColor ( Color aFillColor );
/** Set stroke transparency
@param fTransparency
The transparency, ranging from 0.0 (opaque) to 1.0 (fully translucent)
*/
- void setTransparency ( double fTransparency );
+ void setTransparency ( double fTransparency );
/// Set fill rule used
- void setFillRule ( FillRule aFillRule );
+ void setFillRule ( FillRule aFillRule );
/** Set fill type used
Currently, only one of the fill types can be used
simultaneously. If you specify e.g. FillRule::fillGradient,
hatching, texture and solid fill color are ignored.
*/
- void setFillType ( FillType aFillType );
+ void setFillType ( FillType aFillType );
/// Set transformation applied to hatch, gradient or texture during fill
- void setTransform ( const Transform& pTransform );
+ void setTransform ( const Transform& pTransform );
/** Set state of texture tiling
@param bTiling
If set to true, texture is tiled, if set to false, texture is output only once.
*/
- void setTiling ( bool bTiling = true );
+ void setTiling ( bool bTiling = true );
/// Set type of hatch used
- void setHatchType ( HatchType aHatchType );
+ void setHatchType ( HatchType aHatchType );
/// Set color used for drawing the hatch
- void setHatchColor ( Color aHatchColor );
+ void setHatchColor ( Color aHatchColor );
/// Set type of gradient used
- void setGradientType ( GradientType aGradType );
+ void setGradientType ( GradientType aGradType );
/// Set start color of the gradient
- void setGradient1stColor ( Color aColor );
+ void setGradient1stColor ( Color aColor );
/// Set end color of the gradient
- void setGradient2ndColor ( Color aColor );
- /** Set the numbers of steps to render the gradient.
+ void setGradient2ndColor ( Color aColor );
+ /** Set the numbers of steps to render the gradient.
@param aCount
The step count. gradientStepsInfinite means use infinitely many.
*/
- void setGradientStepCount( int aCount );
+ void setGradientStepCount( int aCount );
/// Set the texture graphic used
- void setGraphic ( const Graphic& rGraphic );
+ void setGraphic ( const Graphic& rGraphic );
private:
// friends
VCL_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const SvtGraphicFill& rClass );
VCL_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, SvtGraphicFill& rClass );
- PolyPolygon maPath;
- Color maFillColor;
- double mfTransparency;
- FillRule maFillRule;
- FillType maFillType;
- Transform maFillTransform;
- bool mbTiling;
- HatchType maHatchType;
- Color maHatchColor;
- GradientType maGradientType;
- Color maGradient1stColor;
- Color maGradient2ndColor;
- int maGradientStepCount;
- Graphic maFillGraphic;
+ PolyPolygon maPath;
+ Color maFillColor;
+ double mfTransparency;
+ FillRule maFillRule;
+ FillType maFillType;
+ Transform maFillTransform;
+ bool mbTiling;
+ HatchType maHatchType;
+ Color maHatchColor;
+ GradientType maGradientType;
+ Color maGradient1stColor;
+ Color maGradient2ndColor;
+ int maGradientStepCount;
+ Graphic maFillGraphic;
};
#endif /* _VCL_GRAPHICTOOLS_HXX_ */
diff --git a/vcl/inc/vcl/graphite_adaptors.hxx b/vcl/inc/vcl/graphite_adaptors.hxx
index 62c1f97cd823..66413031f504 100644
--- a/vcl/inc/vcl/graphite_adaptors.hxx
+++ b/vcl/inc/vcl/graphite_adaptors.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/graphite_cache.hxx b/vcl/inc/vcl/graphite_cache.hxx
index 9891fb6aad7e..1c2aff06414f 100644
--- a/vcl/inc/vcl/graphite_cache.hxx
+++ b/vcl/inc/vcl/graphite_cache.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/graphite_features.hxx b/vcl/inc/vcl/graphite_features.hxx
index a817fa190f6e..1cb109e77aaa 100644
--- a/vcl/inc/vcl/graphite_features.hxx
+++ b/vcl/inc/vcl/graphite_features.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/graphite_layout.hxx b/vcl/inc/vcl/graphite_layout.hxx
index 3192822db391..f3abdfe0623a 100644
--- a/vcl/inc/vcl/graphite_layout.hxx
+++ b/vcl/inc/vcl/graphite_layout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/graphite_serverfont.hxx b/vcl/inc/vcl/graphite_serverfont.hxx
index 06a61db42f80..21873e0582a1 100644
--- a/vcl/inc/vcl/graphite_serverfont.hxx
+++ b/vcl/inc/vcl/graphite_serverfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/group.hxx b/vcl/inc/vcl/group.hxx
index 765021fbe89b..5eff89280e45 100644
--- a/vcl/inc/vcl/group.hxx
+++ b/vcl/inc/vcl/group.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ private:
SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
const Point& rPos, const Size& rSize, bool bLayout = false );
- virtual void FillLayoutData() const;
+ virtual void FillLayoutData() const;
virtual const Font&
GetCanonicalFont( const StyleSettings& _rStyle ) const;
virtual const Color&
diff --git a/vcl/inc/vcl/hatch.hxx b/vcl/inc/vcl/hatch.hxx
index 3cdcd0e24c2c..d8826ac5d199 100644
--- a/vcl/inc/vcl/hatch.hxx
+++ b/vcl/inc/vcl/hatch.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,17 +42,17 @@ class SvStream;
struct ImplHatch
{
- ULONG mnRefCount;
- Color maColor;
- HatchStyle meStyle;
- long mnDistance;
- USHORT mnAngle;
+ ULONG mnRefCount;
+ Color maColor;
+ HatchStyle meStyle;
+ long mnDistance;
+ USHORT mnAngle;
ImplHatch();
ImplHatch( const ImplHatch& rImplHatch );
- friend SvStream& operator>>( SvStream& rIStm, ImplHatch& rImplHatch );
- friend SvStream& operator<<( SvStream& rOStm, const ImplHatch& rImplHatch );
+ friend SvStream& operator>>( SvStream& rIStm, ImplHatch& rImplHatch );
+ friend SvStream& operator<<( SvStream& rOStm, const ImplHatch& rImplHatch );
};
// ---------
@@ -61,10 +61,10 @@ struct ImplHatch
class VCL_DLLPUBLIC Hatch
{
-private:
+private:
- ImplHatch* mpImplHatch;
- SAL_DLLPRIVATE void ImplMakeUnique();
+ ImplHatch* mpImplHatch;
+ SAL_DLLPRIVATE void ImplMakeUnique();
public:
@@ -73,19 +73,19 @@ public:
Hatch( HatchStyle eStyle, const Color& rHatchColor, long nDistance, USHORT nAngle10 = 0 );
~Hatch();
- Hatch& operator=( const Hatch& rHatch );
+ Hatch& operator=( const Hatch& rHatch );
BOOL operator==( const Hatch& rHatch ) const;
BOOL operator!=( const Hatch& rHatch ) const { return !(Hatch::operator==( rHatch ) ); }
BOOL IsSameInstance( const Hatch& rHatch ) const { return( mpImplHatch == rHatch.mpImplHatch ); }
void SetStyle( HatchStyle eStyle );
- HatchStyle GetStyle() const { return mpImplHatch->meStyle; }
+ HatchStyle GetStyle() const { return mpImplHatch->meStyle; }
void SetColor( const Color& rColor );
- const Color& GetColor() const { return mpImplHatch->maColor; }
+ const Color& GetColor() const { return mpImplHatch->maColor; }
void SetDistance( long nDistance );
- long GetDistance() const { return mpImplHatch->mnDistance; }
+ long GetDistance() const { return mpImplHatch->mnDistance; }
void SetAngle( USHORT nAngle10 );
USHORT GetAngle() const { return mpImplHatch->mnAngle; }
diff --git a/vcl/inc/vcl/help.hxx b/vcl/inc/vcl/help.hxx
index e91b459ee8cc..60ab16ae077c 100644
--- a/vcl/inc/vcl/help.hxx
+++ b/vcl/inc/vcl/help.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,20 +41,20 @@ class Window;
// - Help-Types -
// --------------
-#define QUICKHELP_LEFT ((USHORT)0x0001)
-#define QUICKHELP_CENTER ((USHORT)0x0002)
-#define QUICKHELP_RIGHT ((USHORT)0x0004)
-#define QUICKHELP_TOP ((USHORT)0x0008)
-#define QUICKHELP_VCENTER ((USHORT)0x0010)
-#define QUICKHELP_BOTTOM ((USHORT)0x0020)
+#define QUICKHELP_LEFT ((USHORT)0x0001)
+#define QUICKHELP_CENTER ((USHORT)0x0002)
+#define QUICKHELP_RIGHT ((USHORT)0x0004)
+#define QUICKHELP_TOP ((USHORT)0x0008)
+#define QUICKHELP_VCENTER ((USHORT)0x0010)
+#define QUICKHELP_BOTTOM ((USHORT)0x0020)
#define QUICKHELP_NOAUTOPOS (QUICKHELP_LEFT | QUICKHELP_CENTER | QUICKHELP_RIGHT | QUICKHELP_TOP | QUICKHELP_VCENTER | QUICKHELP_BOTTOM)
-#define QUICKHELP_CTRLTEXT ((USHORT)0x0040)
+#define QUICKHELP_CTRLTEXT ((USHORT)0x0040)
#define QUICKHELP_NOEVADEPOINTER ((USHORT)0x4000)
-#define QUICKHELP_BIDI_RTL ((USHORT)0x8000)
+#define QUICKHELP_BIDI_RTL ((USHORT)0x8000)
// By changes you must also change: rsc/vclrsc.hxx
-#define OOO_HELP_INDEX ((ULONG)0xFFFFFFFF)
-#define OOO_HELP_HELPONHELP ((ULONG)0xFFFFFFFE)
+#define OOO_HELP_INDEX ((ULONG)0xFFFFFFFF)
+#define OOO_HELP_HELPONHELP ((ULONG)0xFFFFFFFE)
// --------
// - Help -
@@ -63,64 +63,64 @@ class Window;
class VCL_DLLPUBLIC Help
{
private:
- String maHelpFile;
+ String maHelpFile;
public:
Help();
- virtual ~Help();
+ virtual ~Help();
- void SetHelpFile( const String& rFileName ) { maHelpFile = rFileName; }
- const String& GetHelpFile() const { return maHelpFile; }
+ void SetHelpFile( const String& rFileName ) { maHelpFile = rFileName; }
+ const String& GetHelpFile() const { return maHelpFile; }
- virtual BOOL Start( ULONG nHelpId, const Window* pWindow );
- virtual BOOL Start( const XubString& rKeyWord, const Window* pWindow );
- virtual void OpenHelpAgent( ULONG nHelpId );
- virtual XubString GetHelpText( ULONG nHelpId, const Window* pWindow );
+ virtual BOOL Start( ULONG nHelpId, const Window* pWindow );
+ virtual BOOL Start( const XubString& rKeyWord, const Window* pWindow );
+ virtual void OpenHelpAgent( ULONG nHelpId );
+ virtual XubString GetHelpText( ULONG nHelpId, const Window* pWindow );
virtual XubString GetHelpText( const String& aHelpURL, const Window* pWindow );
- static void EnableContextHelp();
- static void DisableContextHelp();
- static BOOL IsContextHelpEnabled();
- static BOOL StartContextHelp();
-
- static void EnableExtHelp();
- static void DisableExtHelp();
- static BOOL IsExtHelpEnabled();
- static BOOL StartExtHelp();
- static BOOL EndExtHelp();
- static BOOL IsExtHelpActive();
-
- static void EnableBalloonHelp();
- static void DisableBalloonHelp();
- static BOOL IsBalloonHelpEnabled();
- static BOOL ShowBalloon( Window* pParent,
+ static void EnableContextHelp();
+ static void DisableContextHelp();
+ static BOOL IsContextHelpEnabled();
+ static BOOL StartContextHelp();
+
+ static void EnableExtHelp();
+ static void DisableExtHelp();
+ static BOOL IsExtHelpEnabled();
+ static BOOL StartExtHelp();
+ static BOOL EndExtHelp();
+ static BOOL IsExtHelpActive();
+
+ static void EnableBalloonHelp();
+ static void DisableBalloonHelp();
+ static BOOL IsBalloonHelpEnabled();
+ static BOOL ShowBalloon( Window* pParent,
const Point& rScreenPos,
const XubString& rHelpText );
- static BOOL ShowBalloon( Window* pParent,
+ static BOOL ShowBalloon( Window* pParent,
const Point& rScreenPos,
const Rectangle&,
const XubString& rHelpText );
- static void EnableQuickHelp();
- static void DisableQuickHelp();
- static BOOL IsQuickHelpEnabled();
- static BOOL ShowQuickHelp( Window* pParent,
+ static void EnableQuickHelp();
+ static void DisableQuickHelp();
+ static BOOL IsQuickHelpEnabled();
+ static BOOL ShowQuickHelp( Window* pParent,
const Rectangle& rScreenRect,
const XubString& rHelpText,
const XubString& rLongHelpText,
USHORT nStyle = 0 );
- static BOOL ShowQuickHelp( Window* pParent,
+ static BOOL ShowQuickHelp( Window* pParent,
const Rectangle& rScreenRect,
const XubString& rHelpText,
USHORT nStyle = 0 )
{ return Help::ShowQuickHelp( pParent, rScreenRect, rHelpText, XubString(), nStyle ); }
- static ULONG ShowTip( Window* pParent,
+ static ULONG ShowTip( Window* pParent,
const Rectangle& rScreenRect,
const XubString& rText, USHORT nStyle = 0 );
- static void HideTip( ULONG nId );
+ static void HideTip( ULONG nId );
};
-#endif // _SV_HELP_HXX
+#endif // _SV_HELP_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/helper.hxx b/vcl/inc/vcl/helper.hxx
index 732e98080c62..f5bb4816f210 100644
--- a/vcl/inc/vcl/helper.hxx
+++ b/vcl/inc/vcl/helper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/helpwin.hxx b/vcl/inc/vcl/helpwin.hxx
index 9066012d05f2..bf0fde690133 100644
--- a/vcl/inc/vcl/helpwin.hxx
+++ b/vcl/inc/vcl/helpwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,48 +39,48 @@
class HelpTextWindow : public FloatingWindow
{
private:
- Point maPos;
- Rectangle maHelpArea; // Wenn naechste Hilfe fuers gleiche Rectangle, gleicher Text, dann Fenster stehen lassen
+ Point maPos;
+ Rectangle maHelpArea; // Wenn naechste Hilfe fuers gleiche Rectangle, gleicher Text, dann Fenster stehen lassen
- Rectangle maTextRect; // Bei umgebrochenen Text in QuickHelp
+ Rectangle maTextRect; // Bei umgebrochenen Text in QuickHelp
- String maHelpText;
- String maStatusText;
+ String maHelpText;
+ String maStatusText;
- Timer maShowTimer;
- Timer maHideTimer;
+ Timer maShowTimer;
+ Timer maHideTimer;
- USHORT mnHelpWinStyle;
- USHORT mnStyle;
+ USHORT mnHelpWinStyle;
+ USHORT mnStyle;
protected:
DECL_LINK( TimerHdl, Timer* );
- virtual void Paint( const Rectangle& );
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual String GetText() const;
- void ImplShow();
+ virtual void Paint( const Rectangle& );
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual String GetText() const;
+ void ImplShow();
public:
HelpTextWindow( Window* pParent, const String& rText, USHORT nHelpWinStyle, USHORT nStyle );
~HelpTextWindow();
- const String& GetHelpText() const { return maHelpText; }
- void SetHelpText( const String& rHelpText );
- USHORT GetWinStyle() const { return mnHelpWinStyle; }
+ const String& GetHelpText() const { return maHelpText; }
+ void SetHelpText( const String& rHelpText );
+ USHORT GetWinStyle() const { return mnHelpWinStyle; }
// Nur merken:
- void SetStatusText( const String& rStatusText ) { maStatusText = rStatusText; }
- void SetHelpArea( const Rectangle& rRect ) { maHelpArea = rRect; }
+ void SetStatusText( const String& rStatusText ) { maStatusText = rStatusText; }
+ void SetHelpArea( const Rectangle& rRect ) { maHelpArea = rRect; }
- void ShowHelp( USHORT nDelayMode );
+ void ShowHelp( USHORT nDelayMode );
- Size CalcOutSize() const;
- const Rectangle& GetHelpArea() const { return maHelpArea; }
+ Size CalcOutSize() const;
+ const Rectangle& GetHelpArea() const { return maHelpArea; }
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
- BOOL RegisterAccessibleParent();
- void RevokeAccessibleParent();
+ BOOL RegisterAccessibleParent();
+ void RevokeAccessibleParent();
};
void ImplShowHelpWindow( Window* pParent, USHORT nHelpWinStyle, USHORT nStyle,
diff --git a/vcl/inc/vcl/i18nhelp.hxx b/vcl/inc/vcl/i18nhelp.hxx
index 428032ae2017..d8b460338bd5 100644
--- a/vcl/inc/vcl/i18nhelp.hxx
+++ b/vcl/inc/vcl/i18nhelp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ namespace com {
namespace sun {
namespace star {
namespace lang {
- class XMultiServiceFactory;
+ class XMultiServiceFactory;
}
}}}
@@ -57,7 +57,7 @@ namespace vcl
class VCL_DLLPUBLIC I18nHelper
{
private:
- ::osl::Mutex maMutex;
+ ::osl::Mutex maMutex;
::com::sun::star::lang::Locale maLocale;
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMSF;
@@ -88,11 +88,11 @@ public:
String GetDate( const Date& rDate ) const;
String GetNum( long nNumber, USHORT nDecimals, BOOL bUseThousandSep = TRUE, BOOL bTrailingZeros = TRUE ) const;
-
+
static String filterFormattingChars( const String& );
};
-} // namespace vcl
+} // namespace vcl
#endif // _VCL_I18NHELP_HXX
diff --git a/vcl/inc/vcl/idlemgr.hxx b/vcl/inc/vcl/idlemgr.hxx
index 75729f5ab493..edb449d960a7 100644
--- a/vcl/inc/vcl/idlemgr.hxx
+++ b/vcl/inc/vcl/idlemgr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/ilstbox.hxx b/vcl/inc/vcl/ilstbox.hxx
index 110e57233550..17ddd3033a49 100644
--- a/vcl/inc/vcl/ilstbox.hxx
+++ b/vcl/inc/vcl/ilstbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,8 +45,8 @@ class ScrollBarBox;
// - ListBox-Types -
// -----------------
-#define HORZ_SCROLL 4
-#define IMG_TXT_DISTANCE 6
+#define HORZ_SCROLL 4
+#define IMG_TXT_DISTANCE 6
enum LB_EVENT_TYPE
{
@@ -63,11 +63,11 @@ enum LB_EVENT_TYPE
struct ImplEntryType
{
- XubString maStr;
- Image maImage;
- void* mpUserData;
- BOOL mbIsSelected;
- long mnFlags;
+ XubString maStr;
+ Image maImage;
+ void* mpUserData;
+ BOOL mbIsSelected;
+ long mnFlags;
long mnHeight;
ImplEntryType( const XubString& rStr, const Image& rImage ) :
@@ -107,31 +107,31 @@ class ImplEntryList : private List
{
private:
Window* mpWindow; // For getting the current locale when matching strings
- USHORT mnLastSelected;
- USHORT mnSelectionAnchor;
- USHORT mnImages;
+ USHORT mnLastSelected;
+ USHORT mnSelectionAnchor;
+ USHORT mnImages;
- USHORT mnMRUCount;
- USHORT mnMaxMRUCount;
+ USHORT mnMRUCount;
+ USHORT mnMaxMRUCount;
- Link maSelectionChangedHdl;
- BOOL mbCallSelectionChangedHdl;
+ Link maSelectionChangedHdl;
+ BOOL mbCallSelectionChangedHdl;
- ImplEntryType* GetEntry( USHORT nPos ) const { return (ImplEntryType*)List::GetObject( nPos ); }
+ ImplEntryType* GetEntry( USHORT nPos ) const { return (ImplEntryType*)List::GetObject( nPos ); }
public:
ImplEntryList( Window* pWindow );
~ImplEntryList();
- USHORT InsertEntry( USHORT nPos, ImplEntryType* pNewEntry, BOOL bSort );
- void RemoveEntry( USHORT nPos );
- const ImplEntryType* GetEntryPtr( USHORT nPos ) const { return (const ImplEntryType*) GetObject( nPos ); }
- ImplEntryType* GetMutableEntryPtr( USHORT nPos ) const { return (ImplEntryType*) GetObject( nPos ); }
- void Clear();
+ USHORT InsertEntry( USHORT nPos, ImplEntryType* pNewEntry, BOOL bSort );
+ void RemoveEntry( USHORT nPos );
+ const ImplEntryType* GetEntryPtr( USHORT nPos ) const { return (const ImplEntryType*) GetObject( nPos ); }
+ ImplEntryType* GetMutableEntryPtr( USHORT nPos ) const { return (ImplEntryType*) GetObject( nPos ); }
+ void Clear();
- USHORT FindMatchingEntry( const XubString& rStr, USHORT nStart = 0, BOOL bForward = TRUE, BOOL bLazy = TRUE ) const;
- USHORT FindEntry( const XubString& rStr, BOOL bSearchMRUArea = FALSE ) const;
- USHORT FindEntry( const void* pData ) const;
+ USHORT FindMatchingEntry( const XubString& rStr, USHORT nStart = 0, BOOL bForward = TRUE, BOOL bLazy = TRUE ) const;
+ USHORT FindEntry( const XubString& rStr, BOOL bSearchMRUArea = FALSE ) const;
+ USHORT FindEntry( const void* pData ) const;
// helper: add up heights up to index nEndIndex.
// GetAddedHeight( 0 ) returns 0
@@ -140,54 +140,54 @@ public:
long GetAddedHeight( USHORT nEndIndex, USHORT nBeginIndex = 0, long nBeginHeight = 0 ) const;
long GetEntryHeight( USHORT nPos ) const;
- USHORT GetEntryCount() const { return (USHORT)List::Count(); }
- BOOL HasImages() const { return mnImages ? TRUE : FALSE; }
+ USHORT GetEntryCount() const { return (USHORT)List::Count(); }
+ BOOL HasImages() const { return mnImages ? TRUE : FALSE; }
- XubString GetEntryText( USHORT nPos ) const;
+ XubString GetEntryText( USHORT nPos ) const;
- BOOL HasEntryImage( USHORT nPos ) const;
- Image GetEntryImage( USHORT nPos ) const;
+ BOOL HasEntryImage( USHORT nPos ) const;
+ Image GetEntryImage( USHORT nPos ) const;
- void SetEntryData( USHORT nPos, void* pNewData );
- void* GetEntryData( USHORT nPos ) const;
+ void SetEntryData( USHORT nPos, void* pNewData );
+ void* GetEntryData( USHORT nPos ) const;
- void SetEntryFlags( USHORT nPos, long nFlags );
- long GetEntryFlags( USHORT nPos ) const;
+ void SetEntryFlags( USHORT nPos, long nFlags );
+ long GetEntryFlags( USHORT nPos ) const;
- void SelectEntry( USHORT nPos, BOOL bSelect );
+ void SelectEntry( USHORT nPos, BOOL bSelect );
- USHORT GetSelectEntryCount() const;
- XubString GetSelectEntry( USHORT nIndex ) const;
- USHORT GetSelectEntryPos( USHORT nIndex ) const;
- BOOL IsEntrySelected( const XubString& rStr ) const;
- BOOL IsEntryPosSelected( USHORT nIndex ) const;
+ USHORT GetSelectEntryCount() const;
+ XubString GetSelectEntry( USHORT nIndex ) const;
+ USHORT GetSelectEntryPos( USHORT nIndex ) const;
+ BOOL IsEntrySelected( const XubString& rStr ) const;
+ BOOL IsEntryPosSelected( USHORT nIndex ) const;
- void SetLastSelected( USHORT nPos ) { mnLastSelected = nPos; }
- USHORT GetLastSelected() const { return mnLastSelected; }
+ void SetLastSelected( USHORT nPos ) { mnLastSelected = nPos; }
+ USHORT GetLastSelected() const { return mnLastSelected; }
- void SetSelectionAnchor( USHORT nPos ) { mnSelectionAnchor = nPos; }
- USHORT GetSelectionAnchor() const { return mnSelectionAnchor; }
+ void SetSelectionAnchor( USHORT nPos ) { mnSelectionAnchor = nPos; }
+ USHORT GetSelectionAnchor() const { return mnSelectionAnchor; }
- void SetSelectionChangedHdl( const Link& rLnk ) { maSelectionChangedHdl = rLnk; }
- void SetCallSelectionChangedHdl( BOOL bCall ) { mbCallSelectionChangedHdl = bCall; }
+ void SetSelectionChangedHdl( const Link& rLnk ) { maSelectionChangedHdl = rLnk; }
+ void SetCallSelectionChangedHdl( BOOL bCall ) { mbCallSelectionChangedHdl = bCall; }
- void SetMRUCount( USHORT n ) { mnMRUCount = n; }
- USHORT GetMRUCount() const { return mnMRUCount; }
+ void SetMRUCount( USHORT n ) { mnMRUCount = n; }
+ USHORT GetMRUCount() const { return mnMRUCount; }
- void SetMaxMRUCount( USHORT n ) { mnMaxMRUCount = n; }
- USHORT GetMaxMRUCount() const { return mnMaxMRUCount; }
+ void SetMaxMRUCount( USHORT n ) { mnMaxMRUCount = n; }
+ USHORT GetMaxMRUCount() const { return mnMaxMRUCount; }
- /** An Entry is selectable if its mnFlags does not have the
+ /** An Entry is selectable if its mnFlags does not have the
LISTBOX_ENTRY_FLAG_DISABLE_SELECTION flag set. */
- bool IsEntrySelectable( USHORT nPos ) const;
+ bool IsEntrySelectable( USHORT nPos ) const;
/** returns the first entry found from the given position nPos that is selectable
or LISTBOX_ENTRY_NOTFOUND if non is found. If the entry at nPos is not selectable,
it returns the first selectable entry after nPos if bForward is true and the
first selectable entry after nPos is bForward is false.
*/
- USHORT FindFirstSelectable( USHORT nPos, bool bForward = true );
+ USHORT FindFirstSelectable( USHORT nPos, bool bForward = true );
};
// ---------------------
@@ -197,89 +197,89 @@ public:
class ImplListBoxWindow : public Control
{
private:
- ImplEntryList* mpEntryList; // EntryListe
- Rectangle maFocusRect;
- String maSearchStr;
- Timer maSearchTimeout;
+ ImplEntryList* mpEntryList; // EntryListe
+ Rectangle maFocusRect;
+ String maSearchStr;
+ Timer maSearchTimeout;
- Size maUserItemSize;
+ Size maUserItemSize;
- long mnMaxTxtHeight; // Maximale Hoehe eines Text-Items
- long mnMaxTxtWidth; // Maximale Breite eines Text-Items
+ long mnMaxTxtHeight; // Maximale Hoehe eines Text-Items
+ long mnMaxTxtWidth; // Maximale Breite eines Text-Items
// Entry ohne Image
- long mnMaxImgTxtWidth;// Maximale Breite eines Text-Items
+ long mnMaxImgTxtWidth;// Maximale Breite eines Text-Items
// Entry UND Image
- long mnMaxImgWidth; // Maximale Breite eines Image-Items
- long mnMaxImgHeight; // Maximale Hoehe eines Image-Items
- long mnMaxWidth; // Maximale Breite eines Eintrags
- long mnMaxHeight; // Maximale Hoehe eines Eintrags
+ long mnMaxImgWidth; // Maximale Breite eines Image-Items
+ long mnMaxImgHeight; // Maximale Hoehe eines Image-Items
+ long mnMaxWidth; // Maximale Breite eines Eintrags
+ long mnMaxHeight; // Maximale Hoehe eines Eintrags
- USHORT mnCurrentPos; // Position (Focus)
- USHORT mnTrackingSaveSelection; // Selektion vor Tracking();
+ USHORT mnCurrentPos; // Position (Focus)
+ USHORT mnTrackingSaveSelection; // Selektion vor Tracking();
- USHORT mnSeparatorPos; // Separator
+ USHORT mnSeparatorPos; // Separator
- USHORT mnUserDrawEntry;
+ USHORT mnUserDrawEntry;
- USHORT mnTop; // Ausgabe ab Zeile
- long mnLeft; // Ausgabe ab Spalte
- long mnBorder; // Abstand Rahmen - Text
- long mnTextHeight; // Texthoehe
+ USHORT mnTop; // Ausgabe ab Zeile
+ long mnLeft; // Ausgabe ab Spalte
+ long mnBorder; // Abstand Rahmen - Text
+ long mnTextHeight; // Texthoehe
ProminentEntry meProminentType; // where is the "prominent" entry
- USHORT mnSelectModifier; // Modifiers
-
- BOOL mbHasFocusRect: 1,
- mbSort: 1, // ListBox sortiert
- mbTrack: 1, // Tracking
- mbMulti: 1, // MultiListBox
- mbStackMode: 1, // StackSelection
- mbSimpleMode: 1, // SimpleMode fuer MultiListBox
- mbImgsDiffSz: 1, // Images haben verschiedene Groessen
- mbTravelSelect: 1, // TravelSelect
- mbTrackingSelect: 1, // Selektiert bei MouseMove
- mbSelectionChanged: 1, // Select() nicht zu oft rufen...
- mbMouseMoveSelect: 1, // Selektieren bei MouseMove
- mbGrabFocus: 1, // Focus bei MBDown grabben
- mbUserDrawEnabled: 1, // UserDraw possible
- mbInUserDraw: 1, // In UserDraw
- mbReadOnly: 1, // ReadOnly
- mbMirroring: 1, // pb: #106948# explicit mirroring for calc
+ USHORT mnSelectModifier; // Modifiers
+
+ BOOL mbHasFocusRect: 1,
+ mbSort: 1, // ListBox sortiert
+ mbTrack: 1, // Tracking
+ mbMulti: 1, // MultiListBox
+ mbStackMode: 1, // StackSelection
+ mbSimpleMode: 1, // SimpleMode fuer MultiListBox
+ mbImgsDiffSz: 1, // Images haben verschiedene Groessen
+ mbTravelSelect: 1, // TravelSelect
+ mbTrackingSelect: 1, // Selektiert bei MouseMove
+ mbSelectionChanged: 1, // Select() nicht zu oft rufen...
+ mbMouseMoveSelect: 1, // Selektieren bei MouseMove
+ mbGrabFocus: 1, // Focus bei MBDown grabben
+ mbUserDrawEnabled: 1, // UserDraw possible
+ mbInUserDraw: 1, // In UserDraw
+ mbReadOnly: 1, // ReadOnly
+ mbMirroring: 1, // pb: #106948# explicit mirroring for calc
mbRight: 1, // right align Text output
mbCenter: 1; // center Text output
- Link maScrollHdl;
- Link maSelectHdl;
- Link maCancelHdl;
- Link maDoubleClickHdl;
- Link maUserDrawHdl;
- Link maMRUChangedHdl;
+ Link maScrollHdl;
+ Link maSelectHdl;
+ Link maCancelHdl;
+ Link maDoubleClickHdl;
+ Link maUserDrawHdl;
+ Link maMRUChangedHdl;
protected:
- DECL_LINK( SearchStringTimeout, Timer* );
-
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rTEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Resize();
- virtual void GetFocus();
- virtual void LoseFocus();
-
- BOOL SelectEntries( USHORT nSelect, LB_EVENT_TYPE eLET, BOOL bShift = FALSE, BOOL bCtrl = FALSE );
- void ImplPaint( USHORT nPos, BOOL bErase = FALSE, bool bLayout = false );
- void ImplDoPaint( const Rectangle& rRect, bool bLayout = false );
- void ImplCalcMetrics();
- void ImplUpdateEntryMetrics( ImplEntryType& rEntry );
- void ImplCallSelect();
+ DECL_LINK( SearchStringTimeout, Timer* );
+
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Resize();
+ virtual void GetFocus();
+ virtual void LoseFocus();
+
+ BOOL SelectEntries( USHORT nSelect, LB_EVENT_TYPE eLET, BOOL bShift = FALSE, BOOL bCtrl = FALSE );
+ void ImplPaint( USHORT nPos, BOOL bErase = FALSE, bool bLayout = false );
+ void ImplDoPaint( const Rectangle& rRect, bool bLayout = false );
+ void ImplCalcMetrics();
+ void ImplUpdateEntryMetrics( ImplEntryType& rEntry );
+ void ImplCallSelect();
void ImplShowFocusRect();
void ImplHideFocusRect();
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
public:
virtual void FillLayoutData() const;
@@ -287,99 +287,99 @@ public:
ImplListBoxWindow( Window* pParent, WinBits nWinStyle );
~ImplListBoxWindow();
- ImplEntryList* GetEntryList() const { return mpEntryList; }
+ ImplEntryList* GetEntryList() const { return mpEntryList; }
- USHORT InsertEntry( USHORT nPos, ImplEntryType* pNewEntry );
- void RemoveEntry( USHORT nPos );
- void Clear();
- void ResetCurrentPos() { mnCurrentPos = LISTBOX_ENTRY_NOTFOUND; }
- USHORT GetCurrentPos() const { return mnCurrentPos; }
- USHORT GetDisplayLineCount() const;
+ USHORT InsertEntry( USHORT nPos, ImplEntryType* pNewEntry );
+ void RemoveEntry( USHORT nPos );
+ void Clear();
+ void ResetCurrentPos() { mnCurrentPos = LISTBOX_ENTRY_NOTFOUND; }
+ USHORT GetCurrentPos() const { return mnCurrentPos; }
+ USHORT GetDisplayLineCount() const;
void SetEntryFlags( USHORT nPos, long nFlags );
- void DrawEntry( USHORT nPos, BOOL bDrawImage, BOOL bDrawText, BOOL bDrawTextAtImagePos = FALSE, bool bLayout = false );
+ void DrawEntry( USHORT nPos, BOOL bDrawImage, BOOL bDrawText, BOOL bDrawTextAtImagePos = FALSE, bool bLayout = false );
- void SelectEntry( USHORT nPos, BOOL bSelect );
- void DeselectAll();
- USHORT GetEntryPosForPoint( const Point& rPoint ) const;
+ void SelectEntry( USHORT nPos, BOOL bSelect );
+ void DeselectAll();
+ USHORT GetEntryPosForPoint( const Point& rPoint ) const;
USHORT GetLastVisibleEntry() const;
- BOOL ProcessKeyInput( const KeyEvent& rKEvt );
+ BOOL ProcessKeyInput( const KeyEvent& rKEvt );
- void SetTopEntry( USHORT nTop );
- USHORT GetTopEntry() const { return mnTop; }
+ void SetTopEntry( USHORT nTop );
+ USHORT GetTopEntry() const { return mnTop; }
// ShowProminentEntry will set the entry correspoding to nEntryPos
// either at top or in the middle depending on the chosen style
void ShowProminentEntry( USHORT nEntryPos );
void SetProminentEntryType( ProminentEntry eType ) { meProminentType = eType; }
ProminentEntry GetProminentEntryType() const { return meProminentType; }
using Window::IsVisible;
- BOOL IsVisible( USHORT nEntry ) const;
+ BOOL IsVisible( USHORT nEntry ) const;
- long GetLeftIndent() const { return mnLeft; }
- void SetLeftIndent( long n );
- void ScrollHorz( long nDiff );
+ long GetLeftIndent() const { return mnLeft; }
+ void SetLeftIndent( long n );
+ void ScrollHorz( long nDiff );
- void AllowGrabFocus( BOOL b ) { mbGrabFocus = b; }
- BOOL IsGrabFocusAllowed() const { return mbGrabFocus; }
+ void AllowGrabFocus( BOOL b ) { mbGrabFocus = b; }
+ BOOL IsGrabFocusAllowed() const { return mbGrabFocus; }
- void SetSeparatorPos( USHORT n ) { mnSeparatorPos = n; }
- USHORT GetSeparatorPos() const { return mnSeparatorPos; }
+ void SetSeparatorPos( USHORT n ) { mnSeparatorPos = n; }
+ USHORT GetSeparatorPos() const { return mnSeparatorPos; }
void SetTravelSelect( BOOL bTravelSelect ) { mbTravelSelect = bTravelSelect; }
- BOOL IsTravelSelect() const { return mbTravelSelect; }
- BOOL IsTrackingSelect() const { return mbTrackingSelect; }
+ BOOL IsTravelSelect() const { return mbTravelSelect; }
+ BOOL IsTrackingSelect() const { return mbTrackingSelect; }
- void SetUserItemSize( const Size& rSz );
- const Size& GetUserItemSize() const { return maUserItemSize; }
+ void SetUserItemSize( const Size& rSz );
+ const Size& GetUserItemSize() const { return maUserItemSize; }
- void EnableUserDraw( BOOL bUserDraw ) { mbUserDrawEnabled = bUserDraw; }
- BOOL IsUserDrawEnabled() const { return mbUserDrawEnabled; }
+ void EnableUserDraw( BOOL bUserDraw ) { mbUserDrawEnabled = bUserDraw; }
+ BOOL IsUserDrawEnabled() const { return mbUserDrawEnabled; }
- void EnableMultiSelection( BOOL bMulti, BOOL bStackMode ) { mbMulti = bMulti; mbStackMode = bStackMode; }
- BOOL IsMultiSelectionEnabled() const { return mbMulti; }
+ void EnableMultiSelection( BOOL bMulti, BOOL bStackMode ) { mbMulti = bMulti; mbStackMode = bStackMode; }
+ BOOL IsMultiSelectionEnabled() const { return mbMulti; }
- void SetMultiSelectionSimpleMode( BOOL bSimple ) { mbSimpleMode = bSimple; }
- BOOL IsMultiSelectionSimpleMode() const { return mbSimpleMode; }
+ void SetMultiSelectionSimpleMode( BOOL bSimple ) { mbSimpleMode = bSimple; }
+ BOOL IsMultiSelectionSimpleMode() const { return mbSimpleMode; }
- void EnableMouseMoveSelect( BOOL bMouseMoveSelect ) { mbMouseMoveSelect = bMouseMoveSelect; }
- BOOL IsMouseMoveSelectEnabled() const { return mbMouseMoveSelect; }
- BOOL IsMouseMoveSelect() const { return mbMouseMoveSelect||mbStackMode; }
+ void EnableMouseMoveSelect( BOOL bMouseMoveSelect ) { mbMouseMoveSelect = bMouseMoveSelect; }
+ BOOL IsMouseMoveSelectEnabled() const { return mbMouseMoveSelect; }
+ BOOL IsMouseMoveSelect() const { return mbMouseMoveSelect||mbStackMode; }
- Size CalcSize( USHORT nMaxLines ) const;
+ Size CalcSize( USHORT nMaxLines ) const;
Rectangle GetBoundingRectangle( USHORT nItem ) const;
- long GetEntryHeight() const { return mnMaxHeight; }
- long GetMaxEntryWidth() const { return mnMaxWidth; }
+ long GetEntryHeight() const { return mnMaxHeight; }
+ long GetMaxEntryWidth() const { return mnMaxWidth; }
- void SetScrollHdl( const Link& rLink ) { maScrollHdl = rLink; }
- const Link& GetScrollHdl() const { return maScrollHdl; }
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
- void SetCancelHdl( const Link& rLink ) { maCancelHdl = rLink; }
- const Link& GetCancelHdl() const { return maCancelHdl; }
- void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
- const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
- const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
- void SetMRUChangedHdl( const Link& rLink ) { maMRUChangedHdl = rLink; }
- const Link& GetMRUChangedHdl() const { return maMRUChangedHdl; }
+ void SetScrollHdl( const Link& rLink ) { maScrollHdl = rLink; }
+ const Link& GetScrollHdl() const { return maScrollHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetCancelHdl( const Link& rLink ) { maCancelHdl = rLink; }
+ const Link& GetCancelHdl() const { return maCancelHdl; }
+ void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
+ const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
+ void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
+ const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
+ void SetMRUChangedHdl( const Link& rLink ) { maMRUChangedHdl = rLink; }
+ const Link& GetMRUChangedHdl() const { return maMRUChangedHdl; }
- BOOL IsSelectionChanged() const { return mbSelectionChanged; }
- USHORT GetSelectModifier() const { return mnSelectModifier; }
+ BOOL IsSelectionChanged() const { return mbSelectionChanged; }
+ USHORT GetSelectModifier() const { return mnSelectModifier; }
- void EnableSort( BOOL b ) { mbSort = b; }
+ void EnableSort( BOOL b ) { mbSort = b; }
- void SetReadOnly( BOOL bReadOnly ) { mbReadOnly = bReadOnly; }
- BOOL IsReadOnly() const { return mbReadOnly; }
+ void SetReadOnly( BOOL bReadOnly ) { mbReadOnly = bReadOnly; }
+ BOOL IsReadOnly() const { return mbReadOnly; }
using Control::ImplInitSettings;
- void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
USHORT ImplGetTextStyle() const;
// pb: #106948# explicit mirroring for calc
- inline void EnableMirroring() { mbMirroring = TRUE; }
- inline BOOL IsMirroring() const { return mbMirroring; }
+ inline void EnableMirroring() { mbMirroring = TRUE; }
+ inline BOOL IsMirroring() const { return mbMirroring; }
};
// ---------------
@@ -389,119 +389,119 @@ public:
class ImplListBox : public Control
{
private:
- ImplListBoxWindow maLBWindow;
- ScrollBar* mpHScrollBar;
- ScrollBar* mpVScrollBar;
- ScrollBarBox* mpScrollBarBox;
- BOOL mbVScroll : 1, // VScroll an oder aus
- mbHScroll : 1, // HScroll an oder aus
- mbAutoHScroll : 1; // AutoHScroll an oder aus
- Link maScrollHdl; // Weil der vom ImplListBoxWindow selbst benoetigt wird.
+ ImplListBoxWindow maLBWindow;
+ ScrollBar* mpHScrollBar;
+ ScrollBar* mpVScrollBar;
+ ScrollBarBox* mpScrollBarBox;
+ BOOL mbVScroll : 1, // VScroll an oder aus
+ mbHScroll : 1, // HScroll an oder aus
+ mbAutoHScroll : 1; // AutoHScroll an oder aus
+ Link maScrollHdl; // Weil der vom ImplListBoxWindow selbst benoetigt wird.
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxDNDListenerContainer;
protected:
- virtual void GetFocus();
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void GetFocus();
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
- long Notify( NotifyEvent& rNEvt );
+ long Notify( NotifyEvent& rNEvt );
- void ImplResizeControls();
- void ImplCheckScrollBars();
- void ImplInitScrollBars();
+ void ImplResizeControls();
+ void ImplCheckScrollBars();
+ void ImplInitScrollBars();
- DECL_LINK( ScrollBarHdl, ScrollBar* );
- DECL_LINK( LBWindowScrolled, void* );
- DECL_LINK( MRUChanged, void* );
+ DECL_LINK( ScrollBarHdl, ScrollBar* );
+ DECL_LINK( LBWindowScrolled, void* );
+ DECL_LINK( MRUChanged, void* );
public:
ImplListBox( Window* pParent, WinBits nWinStyle );
~ImplListBox();
- const ImplEntryList* GetEntryList() const { return maLBWindow.GetEntryList(); }
- ImplListBoxWindow* GetMainWindow() { return &maLBWindow; }
+ const ImplEntryList* GetEntryList() const { return maLBWindow.GetEntryList(); }
+ ImplListBoxWindow* GetMainWindow() { return &maLBWindow; }
- virtual void Resize();
+ virtual void Resize();
virtual const Wallpaper& GetDisplayBackground() const;
virtual Window* GetPreferredKeyInputWindow();
- USHORT InsertEntry( USHORT nPos, const XubString& rStr );
- USHORT InsertEntry( USHORT nPos, const Image& rImage );
- USHORT InsertEntry( USHORT nPos, const XubString& rStr, const Image& rImage );
- void RemoveEntry( USHORT nPos );
- void SetEntryData( USHORT nPos, void* pNewData ) { maLBWindow.GetEntryList()->SetEntryData( nPos, pNewData ); }
- void Clear();
+ USHORT InsertEntry( USHORT nPos, const XubString& rStr );
+ USHORT InsertEntry( USHORT nPos, const Image& rImage );
+ USHORT InsertEntry( USHORT nPos, const XubString& rStr, const Image& rImage );
+ void RemoveEntry( USHORT nPos );
+ void SetEntryData( USHORT nPos, void* pNewData ) { maLBWindow.GetEntryList()->SetEntryData( nPos, pNewData ); }
+ void Clear();
- void SetEntryFlags( USHORT nPos, long nFlags );
- long GetEntryFlags( USHORT nPos ) const;
+ void SetEntryFlags( USHORT nPos, long nFlags );
+ long GetEntryFlags( USHORT nPos ) const;
- void SelectEntry( USHORT nPos, BOOL bSelect );
- void SetNoSelection();
- void ResetCurrentPos() { maLBWindow.ResetCurrentPos(); }
- USHORT GetCurrentPos() const { return maLBWindow.GetCurrentPos(); }
+ void SelectEntry( USHORT nPos, BOOL bSelect );
+ void SetNoSelection();
+ void ResetCurrentPos() { maLBWindow.ResetCurrentPos(); }
+ USHORT GetCurrentPos() const { return maLBWindow.GetCurrentPos(); }
- BOOL ProcessKeyInput( const KeyEvent& rKEvt ) { return maLBWindow.ProcessKeyInput( rKEvt ); }
- BOOL HandleWheelAsCursorTravel( const CommandEvent& rCEvt );
+ BOOL ProcessKeyInput( const KeyEvent& rKEvt ) { return maLBWindow.ProcessKeyInput( rKEvt ); }
+ BOOL HandleWheelAsCursorTravel( const CommandEvent& rCEvt );
- void SetSeparatorPos( USHORT n ) { maLBWindow.SetSeparatorPos( n ); }
- USHORT GetSeparatorPos() const { return maLBWindow.GetSeparatorPos(); }
+ void SetSeparatorPos( USHORT n ) { maLBWindow.SetSeparatorPos( n ); }
+ USHORT GetSeparatorPos() const { return maLBWindow.GetSeparatorPos(); }
- void SetTopEntry( USHORT nTop ) { maLBWindow.SetTopEntry( nTop ); }
- USHORT GetTopEntry() const { return maLBWindow.GetTopEntry(); }
+ void SetTopEntry( USHORT nTop ) { maLBWindow.SetTopEntry( nTop ); }
+ USHORT GetTopEntry() const { return maLBWindow.GetTopEntry(); }
void ShowProminentEntry( USHORT nPos ) { maLBWindow.ShowProminentEntry( nPos ); }
using Window::IsVisible;
- BOOL IsVisible( USHORT nEntry ) const { return maLBWindow.IsVisible( nEntry ); }
+ BOOL IsVisible( USHORT nEntry ) const { return maLBWindow.IsVisible( nEntry ); }
void SetProminentEntryType( ProminentEntry eType ) { maLBWindow.SetProminentEntryType( eType ); }
ProminentEntry GetProminentEntryType() const { return maLBWindow.GetProminentEntryType(); }
- long GetLeftIndent() const { return maLBWindow.GetLeftIndent(); }
- void SetLeftIndent( USHORT n ) { maLBWindow.SetLeftIndent( n ); }
- void ScrollHorz( short nDiff ) { maLBWindow.ScrollHorz( nDiff ); }
+ long GetLeftIndent() const { return maLBWindow.GetLeftIndent(); }
+ void SetLeftIndent( USHORT n ) { maLBWindow.SetLeftIndent( n ); }
+ void ScrollHorz( short nDiff ) { maLBWindow.ScrollHorz( nDiff ); }
void SetTravelSelect( BOOL bTravelSelect ) { maLBWindow.SetTravelSelect( bTravelSelect ); }
- BOOL IsTravelSelect() const { return maLBWindow.IsTravelSelect(); }
- BOOL IsTrackingSelect() const { return maLBWindow.IsTrackingSelect(); }
-
- void EnableMultiSelection( BOOL bMulti, BOOL bStackMode ) { maLBWindow.EnableMultiSelection( bMulti, bStackMode ); }
- BOOL IsMultiSelectionEnabled() const { return maLBWindow.IsMultiSelectionEnabled(); }
-
- void SetMultiSelectionSimpleMode( BOOL bSimple ) { maLBWindow.SetMultiSelectionSimpleMode( bSimple ); }
- BOOL IsMultiSelectionSimpleMode() const { return maLBWindow.IsMultiSelectionSimpleMode(); }
-
- void SetReadOnly( BOOL b ) { maLBWindow.SetReadOnly( b ); }
- BOOL IsReadOnly() const { return maLBWindow.IsReadOnly(); }
-
-
- Size CalcSize( USHORT nMaxLines ) const { return maLBWindow.CalcSize( nMaxLines ); }
- long GetEntryHeight() const { return maLBWindow.GetEntryHeight(); }
- long GetMaxEntryWidth() const { return maLBWindow.GetMaxEntryWidth(); }
-
- void SetScrollHdl( const Link& rLink ) { maScrollHdl = rLink; }
- const Link& GetScrollHdl() const { return maScrollHdl; }
- void SetSelectHdl( const Link& rLink ) { maLBWindow.SetSelectHdl( rLink ); }
- const Link& GetSelectHdl() const { return maLBWindow.GetSelectHdl(); }
- void SetCancelHdl( const Link& rLink ) { maLBWindow.SetCancelHdl( rLink ); }
- const Link& GetCancelHdl() const { return maLBWindow.GetCancelHdl(); }
- void SetDoubleClickHdl( const Link& rLink ) { maLBWindow.SetDoubleClickHdl( rLink ); }
- const Link& GetDoubleClickHdl() const { return maLBWindow.GetDoubleClickHdl(); }
- void SetUserDrawHdl( const Link& rLink ) { maLBWindow.SetUserDrawHdl( rLink ); }
- const Link& GetUserDrawHdl() const { return maLBWindow.GetUserDrawHdl(); }
-
- void SetSelectionChangedHdl( const Link& rLnk ) { maLBWindow.GetEntryList()->SetSelectionChangedHdl( rLnk ); }
- void SetCallSelectionChangedHdl( BOOL bCall ) { maLBWindow.GetEntryList()->SetCallSelectionChangedHdl( bCall ); }
- BOOL IsSelectionChanged() const { return maLBWindow.IsSelectionChanged(); }
- USHORT GetSelectModifier() const { return maLBWindow.GetSelectModifier(); }
-
- void SetMRUEntries( const XubString& rEntries, xub_Unicode cSep );
- XubString GetMRUEntries( xub_Unicode cSep ) const;
- void SetMaxMRUCount( USHORT n ) { maLBWindow.GetEntryList()->SetMaxMRUCount( n ); }
- USHORT GetMaxMRUCount() const { return maLBWindow.GetEntryList()->GetMaxMRUCount(); }
- USHORT GetDisplayLineCount() const
+ BOOL IsTravelSelect() const { return maLBWindow.IsTravelSelect(); }
+ BOOL IsTrackingSelect() const { return maLBWindow.IsTrackingSelect(); }
+
+ void EnableMultiSelection( BOOL bMulti, BOOL bStackMode ) { maLBWindow.EnableMultiSelection( bMulti, bStackMode ); }
+ BOOL IsMultiSelectionEnabled() const { return maLBWindow.IsMultiSelectionEnabled(); }
+
+ void SetMultiSelectionSimpleMode( BOOL bSimple ) { maLBWindow.SetMultiSelectionSimpleMode( bSimple ); }
+ BOOL IsMultiSelectionSimpleMode() const { return maLBWindow.IsMultiSelectionSimpleMode(); }
+
+ void SetReadOnly( BOOL b ) { maLBWindow.SetReadOnly( b ); }
+ BOOL IsReadOnly() const { return maLBWindow.IsReadOnly(); }
+
+
+ Size CalcSize( USHORT nMaxLines ) const { return maLBWindow.CalcSize( nMaxLines ); }
+ long GetEntryHeight() const { return maLBWindow.GetEntryHeight(); }
+ long GetMaxEntryWidth() const { return maLBWindow.GetMaxEntryWidth(); }
+
+ void SetScrollHdl( const Link& rLink ) { maScrollHdl = rLink; }
+ const Link& GetScrollHdl() const { return maScrollHdl; }
+ void SetSelectHdl( const Link& rLink ) { maLBWindow.SetSelectHdl( rLink ); }
+ const Link& GetSelectHdl() const { return maLBWindow.GetSelectHdl(); }
+ void SetCancelHdl( const Link& rLink ) { maLBWindow.SetCancelHdl( rLink ); }
+ const Link& GetCancelHdl() const { return maLBWindow.GetCancelHdl(); }
+ void SetDoubleClickHdl( const Link& rLink ) { maLBWindow.SetDoubleClickHdl( rLink ); }
+ const Link& GetDoubleClickHdl() const { return maLBWindow.GetDoubleClickHdl(); }
+ void SetUserDrawHdl( const Link& rLink ) { maLBWindow.SetUserDrawHdl( rLink ); }
+ const Link& GetUserDrawHdl() const { return maLBWindow.GetUserDrawHdl(); }
+
+ void SetSelectionChangedHdl( const Link& rLnk ) { maLBWindow.GetEntryList()->SetSelectionChangedHdl( rLnk ); }
+ void SetCallSelectionChangedHdl( BOOL bCall ) { maLBWindow.GetEntryList()->SetCallSelectionChangedHdl( bCall ); }
+ BOOL IsSelectionChanged() const { return maLBWindow.IsSelectionChanged(); }
+ USHORT GetSelectModifier() const { return maLBWindow.GetSelectModifier(); }
+
+ void SetMRUEntries( const XubString& rEntries, xub_Unicode cSep );
+ XubString GetMRUEntries( xub_Unicode cSep ) const;
+ void SetMaxMRUCount( USHORT n ) { maLBWindow.GetEntryList()->SetMaxMRUCount( n ); }
+ USHORT GetMaxMRUCount() const { return maLBWindow.GetEntryList()->GetMaxMRUCount(); }
+ USHORT GetDisplayLineCount() const
{ return maLBWindow.GetDisplayLineCount(); }
// pb: #106948# explicit mirroring for calc
- inline void EnableMirroring() { maLBWindow.EnableMirroring(); }
+ inline void EnableMirroring() { maLBWindow.EnableMirroring(); }
inline void SetDropTraget(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& i_xDNDListenerContainer){ mxDNDListenerContainer= i_xDNDListenerContainer; }
};
@@ -512,40 +512,40 @@ public:
class ImplListBoxFloatingWindow : public FloatingWindow
{
private:
- ImplListBox* mpImplLB;
- Size maPrefSz;
- USHORT mnDDLineCount;
+ ImplListBox* mpImplLB;
+ Size maPrefSz;
+ USHORT mnDDLineCount;
USHORT mnPopupModeStartSaveSelection;
- BOOL mbAutoWidth;
+ BOOL mbAutoWidth;
protected:
- long PreNotify( NotifyEvent& rNEvt );
+ long PreNotify( NotifyEvent& rNEvt );
public:
ImplListBoxFloatingWindow( Window* pParent );
- void SetImplListBox( ImplListBox* pLB ) { mpImplLB = pLB; }
+ void SetImplListBox( ImplListBox* pLB ) { mpImplLB = pLB; }
- void SetPrefSize( const Size& rSz ) { maPrefSz = rSz; }
- const Size& GetPrefSize() const { return maPrefSz; }
+ void SetPrefSize( const Size& rSz ) { maPrefSz = rSz; }
+ const Size& GetPrefSize() const { return maPrefSz; }
- void SetAutoWidth( BOOL b ) { mbAutoWidth = b; }
+ void SetAutoWidth( BOOL b ) { mbAutoWidth = b; }
BOOL IsAutoWidth() const { return mbAutoWidth; }
- Size CalcFloatSize();
- void StartFloat( BOOL bStartTracking );
+ Size CalcFloatSize();
+ void StartFloat( BOOL bStartTracking );
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void SetPosSizePixel( long nX, long nY,
long nWidth, long nHeight, USHORT nFlags = WINDOW_POSSIZE_ALL );
- void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
+ void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
{ FloatingWindow::SetPosSizePixel( rNewPos, rNewSize ); }
- void SetDropDownLineCount( USHORT n ) { mnDDLineCount = n; }
- USHORT GetDropDownLineCount() const { return mnDDLineCount; }
+ void SetDropDownLineCount( USHORT n ) { mnDDLineCount = n; }
+ USHORT GetDropDownLineCount() const { return mnDDLineCount; }
USHORT GetPopupModeStartSaveSelection() const { return mnPopupModeStartSaveSelection; }
- virtual void Resize();
+ virtual void Resize();
};
// -----------
@@ -556,19 +556,19 @@ class ImplWin : public Control
{
private:
- USHORT mnItemPos; // wegen UserDraw muss ich wissen, welches Item ich darstelle.
- XubString maString;
- Image maImage;
- Image maImageHC;
+ USHORT mnItemPos; // wegen UserDraw muss ich wissen, welches Item ich darstelle.
+ XubString maString;
+ Image maImage;
+ Image maImageHC;
- Rectangle maFocusRect;
- Size maUserItemSize;
+ Rectangle maFocusRect;
+ Size maUserItemSize;
- Link maMBDownHdl;
- Link maUserDrawHdl;
+ Link maMBDownHdl;
+ Link maUserDrawHdl;
- BOOL mbUserDrawEnabled : 1,
- mbInUserDraw : 1;
+ BOOL mbUserDrawEnabled : 1,
+ mbInUserDraw : 1;
void ImplDraw( bool bLayout = false );
@@ -579,40 +579,40 @@ public:
ImplWin( Window* pParent, WinBits nWinStyle = 0 );
~ImplWin() {};
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Resize();
- virtual void GetFocus();
- virtual void LoseFocus();
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Resize();
+ virtual void GetFocus();
+ virtual void LoseFocus();
virtual long PreNotify( NotifyEvent& rNEvt );
- USHORT GetItemPos() const { return mnItemPos; }
- void SetItemPos( USHORT n ) { mnItemPos = n; }
+ USHORT GetItemPos() const { return mnItemPos; }
+ void SetItemPos( USHORT n ) { mnItemPos = n; }
const XubString& GetString() const { return maString; }
- void SetString( const XubString& rStr ) { maString = rStr; }
+ void SetString( const XubString& rStr ) { maString = rStr; }
- const Image& GetImage() const { return maImage; }
- void SetImage( const Image& rImg ) { maImage = rImg; }
+ const Image& GetImage() const { return maImage; }
+ void SetImage( const Image& rImg ) { maImage = rImg; }
BOOL SetModeImage( const Image& rImage, BmpColorMode eMode = BMP_COLOR_NORMAL );
const Image& GetModeImage( BmpColorMode eMode = BMP_COLOR_NORMAL ) const;
- virtual void MBDown();
- void SetMBDownHdl( const Link& rLink ) { maMBDownHdl = rLink; }
- const Link& GetMBDownHdl() const { return maMBDownHdl; }
+ virtual void MBDown();
+ void SetMBDownHdl( const Link& rLink ) { maMBDownHdl = rLink; }
+ const Link& GetMBDownHdl() const { return maMBDownHdl; }
- void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
- const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
+ void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
+ const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
- void SetUserItemSize( const Size& rSz ) { maUserItemSize = rSz; }
- const Size& GetUserItemSize() const { return maUserItemSize; }
+ void SetUserItemSize( const Size& rSz ) { maUserItemSize = rSz; }
+ const Size& GetUserItemSize() const { return maUserItemSize; }
- void EnableUserDraw( BOOL bUserDraw ) { mbUserDrawEnabled = bUserDraw; }
- BOOL IsUserDrawEnabled() const { return mbUserDrawEnabled; }
+ void EnableUserDraw( BOOL bUserDraw ) { mbUserDrawEnabled = bUserDraw; }
+ BOOL IsUserDrawEnabled() const { return mbUserDrawEnabled; }
- void DrawEntry( BOOL bDrawImage, BOOL bDrawText, BOOL bDrawTextAtImagePos = FALSE, bool bLayout = false );
+ void DrawEntry( BOOL bDrawImage, BOOL bDrawText, BOOL bDrawTextAtImagePos = FALSE, bool bLayout = false );
};
// -----------
@@ -622,25 +622,25 @@ public:
class ImplBtn : public PushButton
{
private:
- BOOL mbDown;
+ BOOL mbDown;
- Link maMBDownHdl;
+ Link maMBDownHdl;
public:
ImplBtn( Window* pParent, WinBits nWinStyle = 0 );
~ImplBtn() {};
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MBDown();
- void SetMBDownHdl( const Link& rLink ) { maMBDownHdl = rLink; }
- const Link& GetMBDownHdl() const { return maMBDownHdl; }
+ virtual void MBDown();
+ void SetMBDownHdl( const Link& rLink ) { maMBDownHdl = rLink; }
+ const Link& GetMBDownHdl() const { return maMBDownHdl; }
};
void ImplInitFieldSettings( Window* pWin, BOOL bFont, BOOL bForeground, BOOL bBackground );
void ImplInitDropDownButton( PushButton* pButton );
-#endif // _SV_ILSTBOX_HXX
+#endif // _SV_ILSTBOX_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/image.h b/vcl/inc/vcl/image.h
index 397cde3af506..0234d57f6811 100644
--- a/vcl/inc/vcl/image.h
+++ b/vcl/inc/vcl/image.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,34 +44,34 @@ public:
ImplImageBmp();
~ImplImageBmp();
- void Create( long nItemWidth, long nItemHeight, USHORT nInitSize );
- void Create( const BitmapEx& rBmpEx, long nItemWidth, long nItemHeight,USHORT nInitSize );
+ void Create( long nItemWidth, long nItemHeight, USHORT nInitSize );
+ void Create( const BitmapEx& rBmpEx, long nItemWidth, long nItemHeight,USHORT nInitSize );
- void Expand( USHORT nGrowSize );
+ void Expand( USHORT nGrowSize );
- void Replace( USHORT nPos, USHORT nSrcPos );
- void Replace( USHORT nPos, const ImplImageBmp& rImageBmp, USHORT nSrcPos );
- void Replace( USHORT nPos, const BitmapEx& rBmpEx );
+ void Replace( USHORT nPos, USHORT nSrcPos );
+ void Replace( USHORT nPos, const ImplImageBmp& rImageBmp, USHORT nSrcPos );
+ void Replace( USHORT nPos, const BitmapEx& rBmpEx );
void ReplaceColors( const Color* pSrcColors, const Color* pDstColors, ULONG nColorCount );
- void ColorTransform( BmpColorMode eColorMode );
- void Invert();
+ void ColorTransform( BmpColorMode eColorMode );
+ void Invert();
- BitmapEx GetBitmapEx( USHORT nPosCount, USHORT* pPosAry ) const;
+ BitmapEx GetBitmapEx( USHORT nPosCount, USHORT* pPosAry ) const;
- void Draw( USHORT nPos, OutputDevice* pDev, const Point& rPos, USHORT nStyle, const Size* pSize = NULL );
+ void Draw( USHORT nPos, OutputDevice* pDev, const Point& rPos, USHORT nStyle, const Size* pSize = NULL );
private:
- BitmapEx maBmpEx;
- BitmapEx maDisabledBmpEx;
- BitmapEx* mpDisplayBmp;
- Size maSize;
- BYTE* mpInfoAry;
- USHORT mnSize;
+ BitmapEx maBmpEx;
+ BitmapEx maDisabledBmpEx;
+ BitmapEx* mpDisplayBmp;
+ Size maSize;
+ BYTE* mpInfoAry;
+ USHORT mnSize;
- void ImplUpdateDisplayBmp( OutputDevice* pOutDev );
- void ImplUpdateDisabledBmpEx( int nPos );
+ void ImplUpdateDisplayBmp( OutputDevice* pOutDev );
+ void ImplUpdateDisabledBmpEx( int nPos );
private: // prevent assignment and copy construction
ImplImageBmp( const ImplImageBmp& );
@@ -90,9 +90,9 @@ enum ImageType { IMAGETYPE_BITMAP, IMAGETYPE_IMAGE };
struct ImageAryData
{
- ::rtl::OUString maName;
+ ::rtl::OUString maName;
// Images identified by either name, or by id
- USHORT mnId;
+ USHORT mnId;
BitmapEx maBitmapEx;
ImageAryData();
@@ -104,7 +104,7 @@ struct ImageAryData
bool IsLoadable() { return maBitmapEx.IsEmpty() && maName.getLength(); }
void Load(const rtl::OUString &rPrefix);
- ImageAryData& operator=( const ImageAryData& rData );
+ ImageAryData& operator=( const ImageAryData& rData );
};
// ------------------------------------------------------------------------------
@@ -118,7 +118,7 @@ struct ImplImageList
ImageAryDataVec maImages;
ImageAryDataNameHash maNameHash;
rtl::OUString maPrefix;
- Size maImageSize;
+ Size maImageSize;
ULONG mnRefCount;
ImplImageList();
@@ -137,13 +137,13 @@ struct ImplImageList
struct ImplImageRefData
{
- ImplImageList* mpImplData;
- USHORT mnIndex;
+ ImplImageList* mpImplData;
+ USHORT mnIndex;
- ImplImageRefData() {} // Um Warning zu umgehen
+ ImplImageRefData() {} // Um Warning zu umgehen
~ImplImageRefData();
- BOOL IsEqual( const ImplImageRefData& rData );
+ BOOL IsEqual( const ImplImageRefData& rData );
};
// ----------------
@@ -152,13 +152,13 @@ struct ImplImageRefData
struct ImplImageData
{
- ImplImageBmp* mpImageBitmap;
- BitmapEx maBmpEx;
+ ImplImageBmp* mpImageBitmap;
+ BitmapEx maBmpEx;
ImplImageData( const BitmapEx& rBmpEx );
~ImplImageData();
- BOOL IsEqual( const ImplImageData& rData );
+ BOOL IsEqual( const ImplImageData& rData );
};
// -------------
@@ -167,10 +167,10 @@ struct ImplImageData
struct ImplImage
{
- ULONG mnRefCount;
+ ULONG mnRefCount;
// TODO: use inheritance to get rid of meType+mpData
- void* mpData;
- ImageType meType;
+ void* mpData;
+ ImageType meType;
ImplImage();
~ImplImage();
diff --git a/vcl/inc/vcl/image.hxx b/vcl/inc/vcl/image.hxx
index c0c7cf63be51..600e86ecf652 100644
--- a/vcl/inc/vcl/image.hxx
+++ b/vcl/inc/vcl/image.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,8 +46,8 @@ namespace com { namespace sun { namespace star { namespace graphic { class XGrap
// - Defines -
// -----------
-#define IMAGE_STDBTN_COLOR Color( 0xC0, 0xC0, 0xC0 )
-#define IMAGELIST_IMAGE_NOTFOUND ((USHORT)0xFFFF)
+#define IMAGE_STDBTN_COLOR Color( 0xC0, 0xC0, 0xC0 )
+#define IMAGELIST_IMAGE_NOTFOUND ((USHORT)0xFFFF)
// -----------------------
// - ImageColorTransform -
@@ -81,9 +81,9 @@ public:
Image( const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& rxGraphic );
~Image();
- Size GetSizePixel() const;
+ Size GetSizePixel() const;
- BitmapEx GetBitmapEx() const;
+ BitmapEx GetBitmapEx() const;
::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > GetXGraphic() const;
Image GetColorTransformedImage( ImageColorTransform eColorTransform ) const;
@@ -91,14 +91,14 @@ public:
void Invert();
- BOOL operator!() const { return( !mpImplData ? true : false ); }
- Image& operator=( const Image& rImage );
- BOOL operator==( const Image& rImage ) const;
- BOOL operator!=( const Image& rImage ) const { return !(Image::operator==( rImage )); }
+ BOOL operator!() const { return( !mpImplData ? true : false ); }
+ Image& operator=( const Image& rImage );
+ BOOL operator==( const Image& rImage ) const;
+ BOOL operator!=( const Image& rImage ) const { return !(Image::operator==( rImage )); }
private:
- ImplImage* mpImplData;
+ ImplImage* mpImplData;
SAL_DLLPRIVATE void ImplInit( const BitmapEx& rBmpEx );
};
@@ -118,53 +118,53 @@ public:
ImageList( const ImageList& rImageList );
~ImageList();
- void Clear();
- void InsertFromHorizontalStrip( const BitmapEx &rBitmapEx,
+ void Clear();
+ void InsertFromHorizontalStrip( const BitmapEx &rBitmapEx,
const std::vector< rtl::OUString > &rNameVector );
- void InsertFromHorizontalBitmap( const ResId& rResId,
+ void InsertFromHorizontalBitmap( const ResId& rResId,
USHORT nCount,
const Color *pNonAlphaMaskColor,
const Color *pSearchColors = NULL,
const Color *pReplaceColors = NULL,
ULONG nColorCount = 0);
- BitmapEx GetAsHorizontalStrip() const;
- USHORT GetImageCount() const;
- Size GetImageSize() const;
+ BitmapEx GetAsHorizontalStrip() const;
+ USHORT GetImageCount() const;
+ Size GetImageSize() const;
- void AddImage( USHORT nNewId, const Image& rImage );
- void AddImage( const ::rtl::OUString& rImageName, const Image& rImage );
+ void AddImage( USHORT nNewId, const Image& rImage );
+ void AddImage( const ::rtl::OUString& rImageName, const Image& rImage );
- void ReplaceImage( USHORT nId, const Image& rImage );
- void ReplaceImage( const ::rtl::OUString& rImageName, const Image& rImage );
+ void ReplaceImage( USHORT nId, const Image& rImage );
+ void ReplaceImage( const ::rtl::OUString& rImageName, const Image& rImage );
- void ReplaceImage( USHORT nId, USHORT nReplaceId );
- void ReplaceImage( const ::rtl::OUString& rImageName, const ::rtl::OUString& rReplaceName );
+ void ReplaceImage( USHORT nId, USHORT nReplaceId );
+ void ReplaceImage( const ::rtl::OUString& rImageName, const ::rtl::OUString& rReplaceName );
- void RemoveImage( USHORT nId );
- void RemoveImage( const ::rtl::OUString& rImageName );
+ void RemoveImage( USHORT nId );
+ void RemoveImage( const ::rtl::OUString& rImageName );
- Image GetImage( USHORT nId ) const;
- Image GetImage( const ::rtl::OUString& rImageName ) const;
+ Image GetImage( USHORT nId ) const;
+ Image GetImage( const ::rtl::OUString& rImageName ) const;
- USHORT GetImagePos( USHORT nId ) const;
- bool HasImageAtPos( USHORT nId ) const;
- USHORT GetImagePos( const ::rtl::OUString& rImageName ) const;
+ USHORT GetImagePos( USHORT nId ) const;
+ bool HasImageAtPos( USHORT nId ) const;
+ USHORT GetImagePos( const ::rtl::OUString& rImageName ) const;
- USHORT GetImageId( USHORT nPos ) const;
- void GetImageIds( ::std::vector< USHORT >& rIds ) const;
+ USHORT GetImageId( USHORT nPos ) const;
+ void GetImageIds( ::std::vector< USHORT >& rIds ) const;
- ::rtl::OUString GetImageName( USHORT nPos ) const;
- void GetImageNames( ::std::vector< ::rtl::OUString >& rNames ) const;
+ ::rtl::OUString GetImageName( USHORT nPos ) const;
+ void GetImageNames( ::std::vector< ::rtl::OUString >& rNames ) const;
- ImageList& operator=( const ImageList& rImageList );
- BOOL operator==( const ImageList& rImageList ) const;
- BOOL operator!=( const ImageList& rImageList ) const { return !(ImageList::operator==( rImageList )); }
+ ImageList& operator=( const ImageList& rImageList );
+ BOOL operator==( const ImageList& rImageList ) const;
+ BOOL operator!=( const ImageList& rImageList ) const { return !(ImageList::operator==( rImageList )); }
private:
- ImplImageList* mpImplData;
- USHORT mnInitSize;
- USHORT mnGrowSize;
+ ImplImageList* mpImplData;
+ USHORT mnInitSize;
+ USHORT mnGrowSize;
SAL_DLLPRIVATE void ImplInitBitmapEx( const ::rtl::OUString& rUserImageName,
const ::std::vector< ::rtl::OUString >& rImageNames,
@@ -176,6 +176,6 @@ private:
SAL_DLLPRIVATE void ImplMakeUnique();
};
-#endif // _SV_IMAGE_HXX
+#endif // _SV_IMAGE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/imagerepository.hxx b/vcl/inc/vcl/imagerepository.hxx
index 7f0a3da28648..a9009df3dd29 100644
--- a/vcl/inc/vcl/imagerepository.hxx
+++ b/vcl/inc/vcl/imagerepository.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/imgctrl.hxx b/vcl/inc/vcl/imgctrl.hxx
index 4b68d89130b4..c72743397f05 100644
--- a/vcl/inc/vcl/imgctrl.hxx
+++ b/vcl/inc/vcl/imgctrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@
class VCL_DLLPUBLIC ImageControl : public FixedImage
{
private:
- BitmapEx maBmp;
- BitmapEx maBmpHC;
+ BitmapEx maBmp;
+ BitmapEx maBmpHC;
::sal_Int16 mnScaleMode;
public:
@@ -52,19 +52,19 @@ public:
void SetScaleMode( const ::sal_Int16 _nMode );
::sal_Int16 GetScaleMode() const { return mnScaleMode; }
- virtual void Resize();
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
+ virtual void Resize();
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
virtual void Paint( const Rectangle& rRect );
virtual void GetFocus();
virtual void LoseFocus();
- void SetBitmap( const BitmapEx& rBmp );
+ void SetBitmap( const BitmapEx& rBmp );
using OutputDevice::GetBitmap;
const BitmapEx& GetBitmap() const { return maBmp; }
BOOL SetModeBitmap( const BitmapEx& rBitmap, BmpColorMode eMode = BMP_COLOR_NORMAL );
const BitmapEx& GetModeBitmap( BmpColorMode eMode = BMP_COLOR_NORMAL ) const;
};
-#endif // _SV_IMGCTRL_HXX
+#endif // _SV_IMGCTRL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/impbmp.hxx b/vcl/inc/vcl/impbmp.hxx
index 1292cce59ef5..fedf9a11a993 100644
--- a/vcl/inc/vcl/impbmp.hxx
+++ b/vcl/inc/vcl/impbmp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ struct BitmapBuffer;
class SalBitmap;
class BitmapPalette;
class SalGraphics;
-class ImplServerBitmap;
+class ImplServerBitmap;
class Bitmap;
class OutputDevice;
class Color;
@@ -50,11 +50,11 @@ class ImpBitmap
{
private:
- ULONG mnRefCount;
- ULONG mnChecksum;
- SalBitmap* mpSalBitmap;
- Size maSourceSize;
-
+ ULONG mnRefCount;
+ ULONG mnChecksum;
+ SalBitmap* mpSalBitmap;
+ Size maSourceSize;
+
public:
ImpBitmap();
@@ -64,34 +64,34 @@ public:
public:
- void ImplSetSalBitmap( SalBitmap* pSalBitmap );
- SalBitmap* ImplGetSalBitmap() const { return mpSalBitmap; }
+ void ImplSetSalBitmap( SalBitmap* pSalBitmap );
+ SalBitmap* ImplGetSalBitmap() const { return mpSalBitmap; }
public:
- BOOL ImplCreate( const Size& rSize, USHORT nBitCount, const BitmapPalette& rPal );
- BOOL ImplCreate( const ImpBitmap& rImpBitmap );
- BOOL ImplCreate( const ImpBitmap& rImpBitmap, SalGraphics* pGraphics );
- BOOL ImplCreate( const ImpBitmap& rImpBitmap, USHORT nNewBitCount );
-
- void ImplDestroy();
-
- Size ImplGetSize() const;
- Size ImplGetSourceSize() const;
- void ImplSetSourceSize( const Size&);
- USHORT ImplGetBitCount() const;
-
- BitmapBuffer* ImplAcquireBuffer( BOOL bReadOnly );
- void ImplReleaseBuffer( BitmapBuffer* pBuffer, BOOL bReadOnly );
-
-public:
-
- ULONG ImplGetRefCount() const { return mnRefCount; }
- void ImplIncRefCount() { mnRefCount++; }
- void ImplDecRefCount() { mnRefCount--; }
-
- inline void ImplSetChecksum( ULONG nChecksum ) { mnChecksum = nChecksum; }
- inline ULONG ImplGetChecksum() const { return mnChecksum; }
+ BOOL ImplCreate( const Size& rSize, USHORT nBitCount, const BitmapPalette& rPal );
+ BOOL ImplCreate( const ImpBitmap& rImpBitmap );
+ BOOL ImplCreate( const ImpBitmap& rImpBitmap, SalGraphics* pGraphics );
+ BOOL ImplCreate( const ImpBitmap& rImpBitmap, USHORT nNewBitCount );
+
+ void ImplDestroy();
+
+ Size ImplGetSize() const;
+ Size ImplGetSourceSize() const;
+ void ImplSetSourceSize( const Size&);
+ USHORT ImplGetBitCount() const;
+
+ BitmapBuffer* ImplAcquireBuffer( BOOL bReadOnly );
+ void ImplReleaseBuffer( BitmapBuffer* pBuffer, BOOL bReadOnly );
+
+public:
+
+ ULONG ImplGetRefCount() const { return mnRefCount; }
+ void ImplIncRefCount() { mnRefCount++; }
+ void ImplDecRefCount() { mnRefCount--; }
+
+ inline void ImplSetChecksum( ULONG nChecksum ) { mnChecksum = nChecksum; }
+ inline ULONG ImplGetChecksum() const { return mnChecksum; }
#endif // PRIVATE
};
diff --git a/vcl/inc/vcl/impbmpconv.hxx b/vcl/inc/vcl/impbmpconv.hxx
index 0d82ed119d6d..b949ea898c3f 100644
--- a/vcl/inc/vcl/impbmpconv.hxx
+++ b/vcl/inc/vcl/impbmpconv.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/impdel.hxx b/vcl/inc/vcl/impdel.hxx
index 90ab82bd1878..5e39eff5541e 100644
--- a/vcl/inc/vcl/impdel.hxx
+++ b/vcl/inc/vcl/impdel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,14 +28,14 @@
#ifndef _VCL_IMPDEL_HXX
#define _VCL_IMPDEL_HXX
-
+
#include <list>
-
+
namespace vcl
{
-
+
class DeletionListener;
-
+
class DeletionNotifier
{
std::list< DeletionListener* > m_aListeners;
@@ -44,23 +44,23 @@
~DeletionNotifier()
{ notifyDelete(); }
-
+
inline void notifyDelete();
- public:
+ public:
void addDel( DeletionListener* pListener )
{ m_aListeners.push_back( pListener ); }
-
+
void removeDel( DeletionListener* pListener )
{ m_aListeners.remove( pListener ); }
};
-
+
class DeletionListener
{
- DeletionNotifier* m_pNotifier;
+ DeletionNotifier* m_pNotifier;
public:
DeletionListener( DeletionNotifier* pNotifier )
- : m_pNotifier( pNotifier )
+ : m_pNotifier( pNotifier )
{
if( m_pNotifier )
m_pNotifier->addDel( this );
@@ -79,12 +79,12 @@
for( std::list< DeletionListener* >::const_iterator it =
m_aListeners.begin(); it != m_aListeners.end(); ++it )
(*it)->deleted();
-
+
m_aListeners.clear();
}
-
+
} // namespace vcl
-
+
#endif // _VCL_IMPDEL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/impfont.hxx b/vcl/inc/vcl/impfont.hxx
index 06031c2c5df9..b7a0368f89bf 100644
--- a/vcl/inc/vcl/impfont.hxx
+++ b/vcl/inc/vcl/impfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,38 +59,38 @@ private:
friend class Font;
void AskConfig();
- int mnRefCount;
- String maFamilyName;
- String maStyleName;
- Size maSize;
- Color maColor; // compatibility, now on output device
- Color maFillColor; // compatibility, now on output device
- rtl_TextEncoding meCharSet;
- LanguageType meLanguage;
- LanguageType meCJKLanguage;
- FontFamily meFamily;
- FontPitch mePitch;
- TextAlign meAlign;
- FontWeight meWeight;
- FontWidth meWidthType;
- FontItalic meItalic;
- FontUnderline meUnderline;
- FontUnderline meOverline;
- FontStrikeout meStrikeout;
- FontRelief meRelief;
- FontEmphasisMark meEmphasisMark;
- FontType meType; // used by metrics only
- short mnOrientation;
- FontKerning mnKerning;
- BOOL mbWordLine:1,
+ int mnRefCount;
+ String maFamilyName;
+ String maStyleName;
+ Size maSize;
+ Color maColor; // compatibility, now on output device
+ Color maFillColor; // compatibility, now on output device
+ rtl_TextEncoding meCharSet;
+ LanguageType meLanguage;
+ LanguageType meCJKLanguage;
+ FontFamily meFamily;
+ FontPitch mePitch;
+ TextAlign meAlign;
+ FontWeight meWeight;
+ FontWidth meWidthType;
+ FontItalic meItalic;
+ FontUnderline meUnderline;
+ FontUnderline meOverline;
+ FontStrikeout meStrikeout;
+ FontRelief meRelief;
+ FontEmphasisMark meEmphasisMark;
+ FontType meType; // used by metrics only
+ short mnOrientation;
+ FontKerning mnKerning;
+ BOOL mbWordLine:1,
mbOutline:1,
mbConfigLookup:1, // there was a config lookup
mbShadow:1,
mbVertical:1,
- mbTransparent:1; // compatibility, now on output device
+ mbTransparent:1; // compatibility, now on output device
- friend SvStream& operator>>( SvStream& rIStm, Impl_Font& );
- friend SvStream& operator<<( SvStream& rOStm, const Impl_Font& );
+ friend SvStream& operator>>( SvStream& rIStm, Impl_Font& );
+ friend SvStream& operator<<( SvStream& rOStm, const Impl_Font& );
};
// ------------------
@@ -148,18 +148,18 @@ public:
FontHintStyle meHintStyle; // type of font hinting to be used
public:
ImplFontOptions() :
- meEmbeddedBitmap(EMBEDDEDBITMAP_DONTKNOW),
- meAntiAlias(ANTIALIAS_DONTKNOW),
- meAutoHint(AUTOHINT_DONTKNOW),
- meHinting(HINTING_DONTKNOW),
+ meEmbeddedBitmap(EMBEDDEDBITMAP_DONTKNOW),
+ meAntiAlias(ANTIALIAS_DONTKNOW),
+ meAutoHint(AUTOHINT_DONTKNOW),
+ meHinting(HINTING_DONTKNOW),
meHintStyle(HINT_SLIGHT)
{}
- ImplFontOptions( FontEmbeddedBitmap eEmbeddedBitmap, FontAntiAlias eAntiAlias,
+ ImplFontOptions( FontEmbeddedBitmap eEmbeddedBitmap, FontAntiAlias eAntiAlias,
FontAutoHint eAutoHint, FontHinting eHinting, FontHintStyle eHintStyle) :
- meEmbeddedBitmap(eEmbeddedBitmap),
- meAntiAlias(eAntiAlias),
- meAutoHint(eAutoHint),
- meHinting(eHinting),
+ meEmbeddedBitmap(eEmbeddedBitmap),
+ meAntiAlias(eAntiAlias),
+ meAutoHint(eAutoHint),
+ meHinting(eHinting),
meHintStyle(eHintStyle)
{}
FontAutoHint GetUseAutoHint() const { return meAutoHint; }
@@ -226,16 +226,16 @@ class
CmapResult
{
public:
- explicit CmapResult( bool bSymbolic = false,
+ explicit CmapResult( bool bSymbolic = false,
const sal_uInt32* pRangeCodes = NULL, int nRangeCount = 0,
const int* pStartGlyphs = 0, const USHORT* pGlyphIds = NULL );
const sal_uInt32* mpRangeCodes;
const int* mpStartGlyphs;
const USHORT* mpGlyphIds;
- int mnRangeCount;
- bool mbSymbolic;
- bool mbRecoded;
+ int mnRangeCount;
+ bool mbSymbolic;
+ bool mbRecoded;
};
bool ParseCMAP( const unsigned char* pRawData, int nRawLength, CmapResult& );
diff --git a/vcl/inc/vcl/impgraph.hxx b/vcl/inc/vcl/impgraph.hxx
index dfb47a153f2d..fc6b12a7e863 100644
--- a/vcl/inc/vcl/impgraph.hxx
+++ b/vcl/inc/vcl/impgraph.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,17 +42,17 @@
struct ImpSwapInfo
{
- MapMode maPrefMapMode;
- Size maPrefSize;
+ MapMode maPrefMapMode;
+ Size maPrefSize;
};
// --------------
// - ImpGraphic -
// --------------
-class OutputDevice;
-class GfxLink;
-struct ImpSwapFile;
+class OutputDevice;
+class GfxLink;
+struct ImpSwapFile;
class GraphicConversionParameters;
class ImpGraphic
@@ -61,20 +61,20 @@ class ImpGraphic
private:
- GDIMetaFile maMetaFile;
- BitmapEx maEx;
- ImpSwapInfo maSwapInfo;
- Animation* mpAnimation;
- GraphicReader* mpContext;
- ImpSwapFile* mpSwapFile;
- GfxLink* mpGfxLink;
- GraphicType meType;
- String maDocFileURLStr;
- ULONG mnDocFilePos;
+ GDIMetaFile maMetaFile;
+ BitmapEx maEx;
+ ImpSwapInfo maSwapInfo;
+ Animation* mpAnimation;
+ GraphicReader* mpContext;
+ ImpSwapFile* mpSwapFile;
+ GfxLink* mpGfxLink;
+ GraphicType meType;
+ String maDocFileURLStr;
+ ULONG mnDocFilePos;
mutable ULONG mnSizeBytes;
- ULONG mnRefCount;
- BOOL mbSwapOut;
- BOOL mbSwapUnderway;
+ ULONG mnRefCount;
+ BOOL mbSwapOut;
+ BOOL mbSwapUnderway;
private:
@@ -84,94 +84,94 @@ private:
ImpGraphic( const BitmapEx& rBmpEx );
ImpGraphic( const Animation& rAnimation );
ImpGraphic( const GDIMetaFile& rMtf );
- virtual ~ImpGraphic();
-
- ImpGraphic& operator=( const ImpGraphic& rImpGraphic );
- BOOL operator==( const ImpGraphic& rImpGraphic ) const;
- BOOL operator!=( const ImpGraphic& rImpGraphic ) const { return !( *this == rImpGraphic ); }
+ virtual ~ImpGraphic();
- void ImplClearGraphics( BOOL bCreateSwapInfo );
- void ImplClear();
+ ImpGraphic& operator=( const ImpGraphic& rImpGraphic );
+ BOOL operator==( const ImpGraphic& rImpGraphic ) const;
+ BOOL operator!=( const ImpGraphic& rImpGraphic ) const { return !( *this == rImpGraphic ); }
- GraphicType ImplGetType() const;
- void ImplSetDefaultType();
- BOOL ImplIsSupportedGraphic() const;
+ void ImplClearGraphics( BOOL bCreateSwapInfo );
+ void ImplClear();
- BOOL ImplIsTransparent() const;
- BOOL ImplIsAlpha() const;
- BOOL ImplIsAnimated() const;
+ GraphicType ImplGetType() const;
+ void ImplSetDefaultType();
+ BOOL ImplIsSupportedGraphic() const;
- Bitmap ImplGetBitmap(const GraphicConversionParameters& rParameters) const;
- BitmapEx ImplGetBitmapEx(const GraphicConversionParameters& rParameters) const;
- Animation ImplGetAnimation() const;
- const GDIMetaFile& ImplGetGDIMetaFile() const;
+ BOOL ImplIsTransparent() const;
+ BOOL ImplIsAlpha() const;
+ BOOL ImplIsAnimated() const;
- Size ImplGetPrefSize() const;
- void ImplSetPrefSize( const Size& rPrefSize );
+ Bitmap ImplGetBitmap(const GraphicConversionParameters& rParameters) const;
+ BitmapEx ImplGetBitmapEx(const GraphicConversionParameters& rParameters) const;
+ Animation ImplGetAnimation() const;
+ const GDIMetaFile& ImplGetGDIMetaFile() const;
- MapMode ImplGetPrefMapMode() const;
- void ImplSetPrefMapMode( const MapMode& rPrefMapMode );
+ Size ImplGetPrefSize() const;
+ void ImplSetPrefSize( const Size& rPrefSize );
+
+ MapMode ImplGetPrefMapMode() const;
+ void ImplSetPrefMapMode( const MapMode& rPrefMapMode );
- ULONG ImplGetSizeBytes() const;
+ ULONG ImplGetSizeBytes() const;
- void ImplDraw( OutputDevice* pOutDev,
+ void ImplDraw( OutputDevice* pOutDev,
const Point& rDestPt ) const;
- void ImplDraw( OutputDevice* pOutDev,
- const Point& rDestPt,
+ void ImplDraw( OutputDevice* pOutDev,
+ const Point& rDestPt,
const Size& rDestSize ) const;
- void ImplStartAnimation( OutputDevice* pOutDev,
+ void ImplStartAnimation( OutputDevice* pOutDev,
const Point& rDestPt,
long nExtraData = 0,
OutputDevice* pFirstFrameOutDev = NULL );
- void ImplStartAnimation( OutputDevice* pOutDev,
+ void ImplStartAnimation( OutputDevice* pOutDev,
const Point& rDestPt,
- const Size& rDestSize,
+ const Size& rDestSize,
long nExtraData = 0,
OutputDevice* pFirstFrameOutDev = NULL );
- void ImplStopAnimation( OutputDevice* pOutputDevice = NULL,
+ void ImplStopAnimation( OutputDevice* pOutputDevice = NULL,
long nExtraData = 0 );
- void ImplSetAnimationNotifyHdl( const Link& rLink );
- Link ImplGetAnimationNotifyHdl() const;
+ void ImplSetAnimationNotifyHdl( const Link& rLink );
+ Link ImplGetAnimationNotifyHdl() const;
- ULONG ImplGetAnimationLoopCount() const;
- void ImplResetAnimationLoopCount();
+ ULONG ImplGetAnimationLoopCount() const;
+ void ImplResetAnimationLoopCount();
- List* ImplGetAnimationInfoList() const;
+ List* ImplGetAnimationInfoList() const;
private:
- GraphicReader* ImplGetContext();
- void ImplSetContext( GraphicReader* pReader );
+ GraphicReader* ImplGetContext();
+ void ImplSetContext( GraphicReader* pReader );
private:
- void ImplSetDocFileName( const String& rName, ULONG nFilePos );
- const String& ImplGetDocFileName() const;
- ULONG ImplGetDocFilePos() const;
+ void ImplSetDocFileName( const String& rName, ULONG nFilePos );
+ const String& ImplGetDocFileName() const;
+ ULONG ImplGetDocFilePos() const;
- BOOL ImplReadEmbedded( SvStream& rIStream, BOOL bSwap = FALSE );
- BOOL ImplWriteEmbedded( SvStream& rOStream );
+ BOOL ImplReadEmbedded( SvStream& rIStream, BOOL bSwap = FALSE );
+ BOOL ImplWriteEmbedded( SvStream& rOStream );
- BOOL ImplSwapIn();
- BOOL ImplSwapIn( SvStream* pIStm );
+ BOOL ImplSwapIn();
+ BOOL ImplSwapIn( SvStream* pIStm );
- BOOL ImplSwapOut();
- BOOL ImplSwapOut( SvStream* pOStm );
+ BOOL ImplSwapOut();
+ BOOL ImplSwapOut( SvStream* pOStm );
- BOOL ImplIsSwapOut() const;
+ BOOL ImplIsSwapOut() const;
- void ImplSetLink( const GfxLink& );
- GfxLink ImplGetLink();
- BOOL ImplIsLink() const;
+ void ImplSetLink( const GfxLink& );
+ GfxLink ImplGetLink();
+ BOOL ImplIsLink() const;
- ULONG ImplGetChecksum() const;
+ ULONG ImplGetChecksum() const;
- BOOL ImplExportNative( SvStream& rOStm ) const;
+ BOOL ImplExportNative( SvStream& rOStm ) const;
- friend SvStream& operator<<( SvStream& rOStm, const ImpGraphic& rImpGraphic );
- friend SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic );
+ friend SvStream& operator<<( SvStream& rOStm, const ImpGraphic& rImpGraphic );
+ friend SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic );
};
#endif // _SV_IMPGRAPH_HXX
diff --git a/vcl/inc/vcl/impimagetree.hxx b/vcl/inc/vcl/impimagetree.hxx
index 849e98bb234c..8b694eb8625b 100644
--- a/vcl/inc/vcl/impimagetree.hxx
+++ b/vcl/inc/vcl/impimagetree.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/impoct.hxx b/vcl/inc/vcl/impoct.hxx
index 1679b4802c63..6437027db402 100644
--- a/vcl/inc/vcl/impoct.hxx
+++ b/vcl/inc/vcl/impoct.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,28 +37,28 @@
class ImpErrorQuad
{
- long nRed;
- long nGreen;
- long nBlue;
- long nReserved;
-
-public:
-
- inline ImpErrorQuad() {}
- inline ImpErrorQuad( const BitmapColor& rColor ) :
- nRed ( (long) rColor.GetRed() << 5L ),
- nGreen ( (long) rColor.GetGreen() << 5L ),
- nBlue ( (long) rColor.GetBlue() << 5L ) {}
-
- inline void operator=( const BitmapColor& rColor );
- inline ImpErrorQuad& operator-=( const BitmapColor& rColor );
-
- inline void ImplAddColorError1( const ImpErrorQuad& rErrQuad );
- inline void ImplAddColorError3( const ImpErrorQuad& rErrQuad );
- inline void ImplAddColorError5( const ImpErrorQuad& rErrQuad );
- inline void ImplAddColorError7( const ImpErrorQuad& rErrQuad );
-
- inline BitmapColor ImplGetColor();
+ long nRed;
+ long nGreen;
+ long nBlue;
+ long nReserved;
+
+public:
+
+ inline ImpErrorQuad() {}
+ inline ImpErrorQuad( const BitmapColor& rColor ) :
+ nRed ( (long) rColor.GetRed() << 5L ),
+ nGreen ( (long) rColor.GetGreen() << 5L ),
+ nBlue ( (long) rColor.GetBlue() << 5L ) {}
+
+ inline void operator=( const BitmapColor& rColor );
+ inline ImpErrorQuad& operator-=( const BitmapColor& rColor );
+
+ inline void ImplAddColorError1( const ImpErrorQuad& rErrQuad );
+ inline void ImplAddColorError3( const ImpErrorQuad& rErrQuad );
+ inline void ImplAddColorError5( const ImpErrorQuad& rErrQuad );
+ inline void ImplAddColorError7( const ImpErrorQuad& rErrQuad );
+
+ inline BitmapColor ImplGetColor();
};
// ------------------------------------------------------------------------
@@ -121,8 +121,8 @@ inline void ImpErrorQuad::ImplAddColorError7( const ImpErrorQuad& rErrQuad )
inline BitmapColor ImpErrorQuad::ImplGetColor()
{
- return BitmapColor( (BYTE) ( ( nRed < 0L ? 0L : nRed > 8160L ? 8160L : nRed ) >> 5L ),
- (BYTE) ( ( nGreen < 0L ? 0L : nGreen > 8160L ? 8160L : nGreen ) >> 5L ),
+ return BitmapColor( (BYTE) ( ( nRed < 0L ? 0L : nRed > 8160L ? 8160L : nRed ) >> 5L ),
+ (BYTE) ( ( nGreen < 0L ? 0L : nGreen > 8160L ? 8160L : nGreen ) >> 5L ),
(BYTE) ( ( nBlue < 0L ? 0L : nBlue > 8160L ? 8160L : nBlue ) >> 5L ) );
}
@@ -132,19 +132,19 @@ inline BitmapColor ImpErrorQuad::ImplGetColor()
class ImpNodeCache
{
- OctreeNode* pActNode;
- ULONG nNew;
- ULONG nDelete;
- ULONG nGet;
- ULONG nRelease;
-
-public:
-
+ OctreeNode* pActNode;
+ ULONG nNew;
+ ULONG nDelete;
+ ULONG nGet;
+ ULONG nRelease;
+
+public:
+
ImpNodeCache( const ULONG nInitSize );
~ImpNodeCache();
- inline OctreeNode* ImplGetFreeNode();
- inline void ImplReleaseNode( OctreeNode* pNode );
+ inline OctreeNode* ImplGetFreeNode();
+ inline void ImplReleaseNode( OctreeNode* pNode );
};
// ------------------------------------------------------------------------
diff --git a/vcl/inc/vcl/inputctx.hxx b/vcl/inc/vcl/inputctx.hxx
index 26a43530c8d0..474d84c85d34 100644
--- a/vcl/inc/vcl/inputctx.hxx
+++ b/vcl/inc/vcl/inputctx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,10 +37,10 @@
// - InputContext-Flags -
// ----------------------
-#define INPUTCONTEXT_TEXT ((ULONG)0x00000001)
-#define INPUTCONTEXT_EXTTEXTINPUT ((ULONG)0x00000002)
-#define INPUTCONTEXT_EXTTEXTINPUT_ON ((ULONG)0x00000004)
-#define INPUTCONTEXT_EXTTEXTINPUT_OFF ((ULONG)0x00000008)
+#define INPUTCONTEXT_TEXT ((ULONG)0x00000001)
+#define INPUTCONTEXT_EXTTEXTINPUT ((ULONG)0x00000002)
+#define INPUTCONTEXT_EXTTEXTINPUT_ON ((ULONG)0x00000004)
+#define INPUTCONTEXT_EXTTEXTINPUT_OFF ((ULONG)0x00000008)
// ----------------
// - InputContext -
@@ -49,8 +49,8 @@
class VCL_DLLPUBLIC InputContext
{
private:
- Font maFont;
- ULONG mnOptions;
+ Font maFont;
+ ULONG mnOptions;
public:
InputContext() { mnOptions = 0; }
@@ -61,29 +61,29 @@ public:
maFont( rFont )
{ mnOptions = nOptions; }
- void SetFont( const Font& rFont ) { maFont = rFont; }
- const Font& GetFont() const { return maFont; }
+ void SetFont( const Font& rFont ) { maFont = rFont; }
+ const Font& GetFont() const { return maFont; }
- void SetOptions( ULONG nOptions ) { mnOptions = nOptions; }
- ULONG GetOptions() const { return mnOptions; }
+ void SetOptions( ULONG nOptions ) { mnOptions = nOptions; }
+ ULONG GetOptions() const { return mnOptions; }
- InputContext& operator=( const InputContext& rInputContext );
- BOOL operator==( const InputContext& rInputContext ) const;
- BOOL operator!=( const InputContext& rInputContext ) const
+ InputContext& operator=( const InputContext& rInputContext );
+ BOOL operator==( const InputContext& rInputContext ) const;
+ BOOL operator!=( const InputContext& rInputContext ) const
{ return !(InputContext::operator==( rInputContext )); }
};
inline InputContext& InputContext::operator=( const InputContext& rInputContext )
{
- maFont = rInputContext.maFont;
- mnOptions = rInputContext.mnOptions;
+ maFont = rInputContext.maFont;
+ mnOptions = rInputContext.mnOptions;
return *this;
}
inline BOOL InputContext::operator==( const InputContext& rInputContext ) const
{
- return ((mnOptions == rInputContext.mnOptions) &&
- (maFont == rInputContext.maFont));
+ return ((mnOptions == rInputContext.mnOptions) &&
+ (maFont == rInputContext.maFont));
}
#endif // _VCL_INPUTCTX_HXX
diff --git a/vcl/inc/vcl/introwin.hxx b/vcl/inc/vcl/introwin.hxx
index e5503bc5dfd6..128f7afae15a 100644
--- a/vcl/inc/vcl/introwin.hxx
+++ b/vcl/inc/vcl/introwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/javachild.hxx b/vcl/inc/vcl/javachild.hxx
index 5765adfd26f1..413e0cf14fdf 100644
--- a/vcl/inc/vcl/javachild.hxx
+++ b/vcl/inc/vcl/javachild.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ public:
JavaChildWindow( Window* pParent, const ResId& rResId );
~JavaChildWindow();
- sal_IntPtr getParentWindowHandleForJava();
+ sal_IntPtr getParentWindowHandleForJava();
private:
diff --git a/vcl/inc/vcl/jobdata.hxx b/vcl/inc/vcl/jobdata.hxx
index b51282d57b1e..baefe2ac4819 100644
--- a/vcl/inc/vcl/jobdata.hxx
+++ b/vcl/inc/vcl/jobdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ struct JobData
JobData& operator=(const psp::JobData& rRight);
JobData( const JobData& rData ) { *this = rData; }
-
+
void setCollate( bool bCollate );
// creates a new buffer using new
diff --git a/vcl/inc/vcl/jobset.h b/vcl/inc/vcl/jobset.h
index 7d460b908a55..096f31020f5b 100644
--- a/vcl/inc/vcl/jobset.h
+++ b/vcl/inc/vcl/jobset.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,11 +40,11 @@
// ------------------
// see com.sun.star.portal.client.JobSetupSystem.idl:
-#define JOBSETUP_SYSTEM_DONTKNOW 0
-#define JOBSETUP_SYSTEM_WINDOWS 1
-#define JOBSETUP_SYSTEM_OS2 2
-#define JOBSETUP_SYSTEM_UNIX 3
-#define JOBSETUP_SYSTEM_MAC 4
+#define JOBSETUP_SYSTEM_DONTKNOW 0
+#define JOBSETUP_SYSTEM_WINDOWS 1
+#define JOBSETUP_SYSTEM_OS2 2
+#define JOBSETUP_SYSTEM_UNIX 3
+#define JOBSETUP_SYSTEM_MAC 4
#define JOBSETUP_SYSTEM_JAVA 5
// ----------------
@@ -53,19 +53,19 @@
struct ImplJobSetup
{
- USHORT mnRefCount; // RefCount (only independ data)
- USHORT mnSystem; // Sytem - JOBSETUP_SYSTEM_xxxx
- String maPrinterName; // Printer-Name
- String maDriver; // Driver-Name
- Orientation meOrientation; // Orientation
+ USHORT mnRefCount; // RefCount (only independ data)
+ USHORT mnSystem; // Sytem - JOBSETUP_SYSTEM_xxxx
+ String maPrinterName; // Printer-Name
+ String maDriver; // Driver-Name
+ Orientation meOrientation; // Orientation
DuplexMode meDuplexMode; // Duplex
- USHORT mnPaperBin; // paper bin / in tray
- Paper mePaperFormat; // paper format
- long mnPaperWidth; // paper width (100th mm)
- long mnPaperHeight; // paper height (100th mm)
- ULONG mnDriverDataLen; // length of system specific data
- BYTE* mpDriverData; // system specific data (will be streamed a byte block)
- ::std::hash_map< ::rtl::OUString, ::rtl::OUString, ::rtl::OUStringHash > maValueMap;
+ USHORT mnPaperBin; // paper bin / in tray
+ Paper mePaperFormat; // paper format
+ long mnPaperWidth; // paper width (100th mm)
+ long mnPaperHeight; // paper height (100th mm)
+ ULONG mnDriverDataLen; // length of system specific data
+ BYTE* mpDriverData; // system specific data (will be streamed a byte block)
+ ::std::hash_map< ::rtl::OUString, ::rtl::OUString, ::rtl::OUStringHash > maValueMap;
ImplJobSetup();
ImplJobSetup( const ImplJobSetup& rJobSetup );
@@ -77,6 +77,6 @@ struct ImplJobSetup
// Papierbreite/hoehe wird wenn 0 im unabhaengigen Teil automatisch aus
// Papierformat berechnet, wenn dieses ungleich PAPER_USER ist
-#endif // _SV_JOBSET_H
+#endif // _SV_JOBSET_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/jobset.hxx b/vcl/inc/vcl/jobset.hxx
index a5a3735c3da5..80f52d90068c 100644
--- a/vcl/inc/vcl/jobset.hxx
+++ b/vcl/inc/vcl/jobset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,11 +46,11 @@ class VCL_DLLPUBLIC JobSetup
friend class Printer;
private:
- ImplJobSetup* mpData;
+ ImplJobSetup* mpData;
public:
- SAL_DLLPRIVATE ImplJobSetup* ImplGetData();
- SAL_DLLPRIVATE ImplJobSetup* ImplGetConstData();
+ SAL_DLLPRIVATE ImplJobSetup* ImplGetData();
+ SAL_DLLPRIVATE ImplJobSetup* ImplGetConstData();
SAL_DLLPRIVATE const ImplJobSetup* ImplGetConstData() const;
public:
@@ -58,27 +58,27 @@ public:
JobSetup( const JobSetup& rJob );
~JobSetup();
- String GetPrinterName() const;
- String GetDriverName() const;
+ String GetPrinterName() const;
+ String GetDriverName() const;
- /* Get/SetValue are used to read/store additional
- * Parameters in the job setup that may be used
- * by the printer driver. One possible use are phone
- * numbers for faxes (which disguise as printers)
+ /* Get/SetValue are used to read/store additional
+ * Parameters in the job setup that may be used
+ * by the printer driver. One possible use are phone
+ * numbers for faxes (which disguise as printers)
*/
- String GetValue( const String& rKey ) const;
- void SetValue( const String& rKey, const String& rValue );
+ String GetValue( const String& rKey ) const;
+ void SetValue( const String& rKey, const String& rValue );
- JobSetup& operator=( const JobSetup& rJob );
+ JobSetup& operator=( const JobSetup& rJob );
- BOOL operator==( const JobSetup& rJobSetup ) const;
- BOOL operator!=( const JobSetup& rJobSetup ) const
+ BOOL operator==( const JobSetup& rJobSetup ) const;
+ BOOL operator!=( const JobSetup& rJobSetup ) const
{ return !(JobSetup::operator==( rJobSetup )); }
- friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup );
+ friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup );
+ friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup );
};
-#endif // _SV_JOBSET_HXX
+#endif // _SV_JOBSET_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/keycod.hxx b/vcl/inc/vcl/keycod.hxx
index 8092f2a6d964..c1792fd715ea 100644
--- a/vcl/inc/vcl/keycod.hxx
+++ b/vcl/inc/vcl/keycod.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ enum KeyFuncType { KEYFUNC_DONTKNOW, KEYFUNC_NEW, KEYFUNC_OPEN,
class VCL_DLLPUBLIC KeyCode
{
private:
- USHORT nCode;
+ USHORT nCode;
KeyFuncType eFunc;
public:
@@ -74,40 +74,40 @@ public:
KeyCode( USHORT nKey, BOOL bShift, BOOL bMod1, BOOL bMod2, BOOL bMod3 );
KeyCode( KeyFuncType eFunction );
- USHORT GetFullCode() const { return nCode; }
- USHORT GetFullKeyCode() const { return (nCode) ; }
+ USHORT GetFullCode() const { return nCode; }
+ USHORT GetFullKeyCode() const { return (nCode) ; }
KeyFuncType GetFullFunction() const { return eFunc; }
- BOOL IsDefinedKeyCodeEqual( const KeyCode& rKeyCode ) const;
+ BOOL IsDefinedKeyCodeEqual( const KeyCode& rKeyCode ) const;
- USHORT GetCode() const
+ USHORT GetCode() const
{ return (nCode & KEY_CODE); }
- USHORT GetModifier() const
+ USHORT GetModifier() const
{ return (nCode & KEY_MODTYPE); }
- USHORT GetAllModifier() const
+ USHORT GetAllModifier() const
{ return (nCode & KEY_ALLMODTYPE); }
- BOOL IsShift() const
+ BOOL IsShift() const
{ return ((nCode & KEY_SHIFT) != 0); }
- BOOL IsMod1() const
+ BOOL IsMod1() const
{ return ((nCode & KEY_MOD1) != 0); }
- BOOL IsMod2() const
+ BOOL IsMod2() const
{ return ((nCode & KEY_MOD2) != 0); }
- BOOL IsMod3() const
- { return ((nCode & KEY_MOD3) != 0); }
- USHORT GetGroup() const
+ BOOL IsMod3() const
+ { return ((nCode & KEY_MOD3) != 0); }
+ USHORT GetGroup() const
{ return (nCode & KEYGROUP_TYPE); }
- XubString GetName( Window* pWindow = NULL ) const;
- XubString GetSymbolName( const XubString& rFontName, Window* pWindow = NULL ) const;
+ XubString GetName( Window* pWindow = NULL ) const;
+ XubString GetSymbolName( const XubString& rFontName, Window* pWindow = NULL ) const;
- BOOL IsFunction() const
+ BOOL IsFunction() const
{ return ((eFunc != KEYFUNC_DONTKNOW) ? TRUE : FALSE); }
KeyFuncType GetFunction() const;
KeyCode& operator = ( const KeyCode& rKeyCode );
- BOOL operator ==( const KeyCode& rKeyCode ) const;
- BOOL operator !=( const KeyCode& rKeyCode ) const;
+ BOOL operator ==( const KeyCode& rKeyCode ) const;
+ BOOL operator !=( const KeyCode& rKeyCode ) const;
};
inline KeyCode::KeyCode( USHORT nKey, BOOL bShift, BOOL bMod1, BOOL bMod2, BOOL bMod3 )
diff --git a/vcl/inc/vcl/keycodes.hxx b/vcl/inc/vcl/keycodes.hxx
index ace5df3343b4..41c21bc4d51d 100644
--- a/vcl/inc/vcl/keycodes.hxx
+++ b/vcl/inc/vcl/keycodes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,118 +40,118 @@
// By changes you must also change: rsc/vclrsc.hxx
// Key-Gruppen
-#define KEYGROUP_NUM ((USHORT)::com::sun::star::awt::KeyGroup::NUM)
-#define KEYGROUP_ALPHA ((USHORT)::com::sun::star::awt::KeyGroup::ALPHA)
-#define KEYGROUP_FKEYS ((USHORT)::com::sun::star::awt::KeyGroup::FKEYS)
+#define KEYGROUP_NUM ((USHORT)::com::sun::star::awt::KeyGroup::NUM)
+#define KEYGROUP_ALPHA ((USHORT)::com::sun::star::awt::KeyGroup::ALPHA)
+#define KEYGROUP_FKEYS ((USHORT)::com::sun::star::awt::KeyGroup::FKEYS)
#define KEYGROUP_CURSOR ((USHORT)::com::sun::star::awt::KeyGroup::CURSOR)
-#define KEYGROUP_MISC ((USHORT)::com::sun::star::awt::KeyGroup::MISC)
-#define KEYGROUP_TYPE ((USHORT)::com::sun::star::awt::KeyGroup::TYPE)
+#define KEYGROUP_MISC ((USHORT)::com::sun::star::awt::KeyGroup::MISC)
+#define KEYGROUP_TYPE ((USHORT)::com::sun::star::awt::KeyGroup::TYPE)
// Key-Codes
-#define KEY_0 ((USHORT)::com::sun::star::awt::Key::NUM0)
-#define KEY_1 ((USHORT)::com::sun::star::awt::Key::NUM1)
-#define KEY_2 ((USHORT)::com::sun::star::awt::Key::NUM2)
-#define KEY_3 ((USHORT)::com::sun::star::awt::Key::NUM3)
-#define KEY_4 ((USHORT)::com::sun::star::awt::Key::NUM4)
-#define KEY_5 ((USHORT)::com::sun::star::awt::Key::NUM5)
-#define KEY_6 ((USHORT)::com::sun::star::awt::Key::NUM6)
-#define KEY_7 ((USHORT)::com::sun::star::awt::Key::NUM7)
-#define KEY_8 ((USHORT)::com::sun::star::awt::Key::NUM8)
-#define KEY_9 ((USHORT)::com::sun::star::awt::Key::NUM9)
-
-#define KEY_A ((USHORT)::com::sun::star::awt::Key::A)
-#define KEY_B ((USHORT)::com::sun::star::awt::Key::B)
-#define KEY_C ((USHORT)::com::sun::star::awt::Key::C)
-#define KEY_D ((USHORT)::com::sun::star::awt::Key::D)
-#define KEY_E ((USHORT)::com::sun::star::awt::Key::E)
-#define KEY_F ((USHORT)::com::sun::star::awt::Key::F)
-#define KEY_G ((USHORT)::com::sun::star::awt::Key::G)
-#define KEY_H ((USHORT)::com::sun::star::awt::Key::H)
-#define KEY_I ((USHORT)::com::sun::star::awt::Key::I)
-#define KEY_J ((USHORT)::com::sun::star::awt::Key::J)
-#define KEY_K ((USHORT)::com::sun::star::awt::Key::K)
-#define KEY_L ((USHORT)::com::sun::star::awt::Key::L)
-#define KEY_M ((USHORT)::com::sun::star::awt::Key::M)
-#define KEY_N ((USHORT)::com::sun::star::awt::Key::N)
-#define KEY_O ((USHORT)::com::sun::star::awt::Key::O)
-#define KEY_P ((USHORT)::com::sun::star::awt::Key::P)
-#define KEY_Q ((USHORT)::com::sun::star::awt::Key::Q)
-#define KEY_R ((USHORT)::com::sun::star::awt::Key::R)
-#define KEY_S ((USHORT)::com::sun::star::awt::Key::S)
-#define KEY_T ((USHORT)::com::sun::star::awt::Key::T)
-#define KEY_U ((USHORT)::com::sun::star::awt::Key::U)
-#define KEY_V ((USHORT)::com::sun::star::awt::Key::V)
-#define KEY_W ((USHORT)::com::sun::star::awt::Key::W)
-#define KEY_X ((USHORT)::com::sun::star::awt::Key::X)
-#define KEY_Y ((USHORT)::com::sun::star::awt::Key::Y)
-#define KEY_Z ((USHORT)::com::sun::star::awt::Key::Z)
-
-#define KEY_F1 ((USHORT)::com::sun::star::awt::Key::F1)
-#define KEY_F2 ((USHORT)::com::sun::star::awt::Key::F2)
-#define KEY_F3 ((USHORT)::com::sun::star::awt::Key::F3)
-#define KEY_F4 ((USHORT)::com::sun::star::awt::Key::F4)
-#define KEY_F5 ((USHORT)::com::sun::star::awt::Key::F5)
-#define KEY_F6 ((USHORT)::com::sun::star::awt::Key::F6)
-#define KEY_F7 ((USHORT)::com::sun::star::awt::Key::F7)
-#define KEY_F8 ((USHORT)::com::sun::star::awt::Key::F8)
-#define KEY_F9 ((USHORT)::com::sun::star::awt::Key::F9)
-#define KEY_F10 ((USHORT)::com::sun::star::awt::Key::F10)
-#define KEY_F11 ((USHORT)::com::sun::star::awt::Key::F11)
-#define KEY_F12 ((USHORT)::com::sun::star::awt::Key::F12)
-#define KEY_F13 ((USHORT)::com::sun::star::awt::Key::F13)
-#define KEY_F14 ((USHORT)::com::sun::star::awt::Key::F14)
-#define KEY_F15 ((USHORT)::com::sun::star::awt::Key::F15)
-#define KEY_F16 ((USHORT)::com::sun::star::awt::Key::F16)
-#define KEY_F17 ((USHORT)::com::sun::star::awt::Key::F17)
-#define KEY_F18 ((USHORT)::com::sun::star::awt::Key::F18)
-#define KEY_F19 ((USHORT)::com::sun::star::awt::Key::F19)
-#define KEY_F20 ((USHORT)::com::sun::star::awt::Key::F20)
-#define KEY_F21 ((USHORT)::com::sun::star::awt::Key::F21)
-#define KEY_F22 ((USHORT)::com::sun::star::awt::Key::F22)
-#define KEY_F23 ((USHORT)::com::sun::star::awt::Key::F23)
-#define KEY_F24 ((USHORT)::com::sun::star::awt::Key::F24)
-#define KEY_F25 ((USHORT)::com::sun::star::awt::Key::F25)
-#define KEY_F26 ((USHORT)::com::sun::star::awt::Key::F26)
-
-#define KEY_DOWN ((USHORT)::com::sun::star::awt::Key::DOWN)
-#define KEY_UP ((USHORT)::com::sun::star::awt::Key::UP)
-#define KEY_LEFT ((USHORT)::com::sun::star::awt::Key::LEFT)
-#define KEY_RIGHT ((USHORT)::com::sun::star::awt::Key::RIGHT)
-#define KEY_HOME ((USHORT)::com::sun::star::awt::Key::HOME)
-#define KEY_END ((USHORT)::com::sun::star::awt::Key::END)
-#define KEY_PAGEUP ((USHORT)::com::sun::star::awt::Key::PAGEUP)
-#define KEY_PAGEDOWN ((USHORT)::com::sun::star::awt::Key::PAGEDOWN)
-
-#define KEY_RETURN ((USHORT)::com::sun::star::awt::Key::RETURN)
-#define KEY_ESCAPE ((USHORT)::com::sun::star::awt::Key::ESCAPE)
-#define KEY_TAB ((USHORT)::com::sun::star::awt::Key::TAB)
-#define KEY_BACKSPACE ((USHORT)::com::sun::star::awt::Key::BACKSPACE)
-#define KEY_SPACE ((USHORT)::com::sun::star::awt::Key::SPACE)
-#define KEY_INSERT ((USHORT)::com::sun::star::awt::Key::INSERT)
-#define KEY_DELETE ((USHORT)::com::sun::star::awt::Key::DELETE)
-
-#define KEY_ADD ((USHORT)::com::sun::star::awt::Key::ADD)
-#define KEY_SUBTRACT ((USHORT)::com::sun::star::awt::Key::SUBTRACT)
-#define KEY_MULTIPLY ((USHORT)::com::sun::star::awt::Key::MULTIPLY)
-#define KEY_DIVIDE ((USHORT)::com::sun::star::awt::Key::DIVIDE)
-#define KEY_POINT ((USHORT)::com::sun::star::awt::Key::POINT)
-#define KEY_COMMA ((USHORT)::com::sun::star::awt::Key::COMMA)
-#define KEY_LESS ((USHORT)::com::sun::star::awt::Key::LESS)
-#define KEY_GREATER ((USHORT)::com::sun::star::awt::Key::GREATER)
-#define KEY_EQUAL ((USHORT)::com::sun::star::awt::Key::EQUAL)
-
-#define KEY_OPEN ((USHORT)::com::sun::star::awt::Key::OPEN)
-#define KEY_CUT ((USHORT)::com::sun::star::awt::Key::CUT)
-#define KEY_COPY ((USHORT)::com::sun::star::awt::Key::COPY)
-#define KEY_PASTE ((USHORT)::com::sun::star::awt::Key::PASTE)
-#define KEY_UNDO ((USHORT)::com::sun::star::awt::Key::UNDO)
-#define KEY_REPEAT ((USHORT)::com::sun::star::awt::Key::REPEAT)
-#define KEY_FIND ((USHORT)::com::sun::star::awt::Key::FIND)
-#define KEY_PROPERTIES ((USHORT)::com::sun::star::awt::Key::PROPERTIES)
-#define KEY_FRONT ((USHORT)::com::sun::star::awt::Key::FRONT)
+#define KEY_0 ((USHORT)::com::sun::star::awt::Key::NUM0)
+#define KEY_1 ((USHORT)::com::sun::star::awt::Key::NUM1)
+#define KEY_2 ((USHORT)::com::sun::star::awt::Key::NUM2)
+#define KEY_3 ((USHORT)::com::sun::star::awt::Key::NUM3)
+#define KEY_4 ((USHORT)::com::sun::star::awt::Key::NUM4)
+#define KEY_5 ((USHORT)::com::sun::star::awt::Key::NUM5)
+#define KEY_6 ((USHORT)::com::sun::star::awt::Key::NUM6)
+#define KEY_7 ((USHORT)::com::sun::star::awt::Key::NUM7)
+#define KEY_8 ((USHORT)::com::sun::star::awt::Key::NUM8)
+#define KEY_9 ((USHORT)::com::sun::star::awt::Key::NUM9)
+
+#define KEY_A ((USHORT)::com::sun::star::awt::Key::A)
+#define KEY_B ((USHORT)::com::sun::star::awt::Key::B)
+#define KEY_C ((USHORT)::com::sun::star::awt::Key::C)
+#define KEY_D ((USHORT)::com::sun::star::awt::Key::D)
+#define KEY_E ((USHORT)::com::sun::star::awt::Key::E)
+#define KEY_F ((USHORT)::com::sun::star::awt::Key::F)
+#define KEY_G ((USHORT)::com::sun::star::awt::Key::G)
+#define KEY_H ((USHORT)::com::sun::star::awt::Key::H)
+#define KEY_I ((USHORT)::com::sun::star::awt::Key::I)
+#define KEY_J ((USHORT)::com::sun::star::awt::Key::J)
+#define KEY_K ((USHORT)::com::sun::star::awt::Key::K)
+#define KEY_L ((USHORT)::com::sun::star::awt::Key::L)
+#define KEY_M ((USHORT)::com::sun::star::awt::Key::M)
+#define KEY_N ((USHORT)::com::sun::star::awt::Key::N)
+#define KEY_O ((USHORT)::com::sun::star::awt::Key::O)
+#define KEY_P ((USHORT)::com::sun::star::awt::Key::P)
+#define KEY_Q ((USHORT)::com::sun::star::awt::Key::Q)
+#define KEY_R ((USHORT)::com::sun::star::awt::Key::R)
+#define KEY_S ((USHORT)::com::sun::star::awt::Key::S)
+#define KEY_T ((USHORT)::com::sun::star::awt::Key::T)
+#define KEY_U ((USHORT)::com::sun::star::awt::Key::U)
+#define KEY_V ((USHORT)::com::sun::star::awt::Key::V)
+#define KEY_W ((USHORT)::com::sun::star::awt::Key::W)
+#define KEY_X ((USHORT)::com::sun::star::awt::Key::X)
+#define KEY_Y ((USHORT)::com::sun::star::awt::Key::Y)
+#define KEY_Z ((USHORT)::com::sun::star::awt::Key::Z)
+
+#define KEY_F1 ((USHORT)::com::sun::star::awt::Key::F1)
+#define KEY_F2 ((USHORT)::com::sun::star::awt::Key::F2)
+#define KEY_F3 ((USHORT)::com::sun::star::awt::Key::F3)
+#define KEY_F4 ((USHORT)::com::sun::star::awt::Key::F4)
+#define KEY_F5 ((USHORT)::com::sun::star::awt::Key::F5)
+#define KEY_F6 ((USHORT)::com::sun::star::awt::Key::F6)
+#define KEY_F7 ((USHORT)::com::sun::star::awt::Key::F7)
+#define KEY_F8 ((USHORT)::com::sun::star::awt::Key::F8)
+#define KEY_F9 ((USHORT)::com::sun::star::awt::Key::F9)
+#define KEY_F10 ((USHORT)::com::sun::star::awt::Key::F10)
+#define KEY_F11 ((USHORT)::com::sun::star::awt::Key::F11)
+#define KEY_F12 ((USHORT)::com::sun::star::awt::Key::F12)
+#define KEY_F13 ((USHORT)::com::sun::star::awt::Key::F13)
+#define KEY_F14 ((USHORT)::com::sun::star::awt::Key::F14)
+#define KEY_F15 ((USHORT)::com::sun::star::awt::Key::F15)
+#define KEY_F16 ((USHORT)::com::sun::star::awt::Key::F16)
+#define KEY_F17 ((USHORT)::com::sun::star::awt::Key::F17)
+#define KEY_F18 ((USHORT)::com::sun::star::awt::Key::F18)
+#define KEY_F19 ((USHORT)::com::sun::star::awt::Key::F19)
+#define KEY_F20 ((USHORT)::com::sun::star::awt::Key::F20)
+#define KEY_F21 ((USHORT)::com::sun::star::awt::Key::F21)
+#define KEY_F22 ((USHORT)::com::sun::star::awt::Key::F22)
+#define KEY_F23 ((USHORT)::com::sun::star::awt::Key::F23)
+#define KEY_F24 ((USHORT)::com::sun::star::awt::Key::F24)
+#define KEY_F25 ((USHORT)::com::sun::star::awt::Key::F25)
+#define KEY_F26 ((USHORT)::com::sun::star::awt::Key::F26)
+
+#define KEY_DOWN ((USHORT)::com::sun::star::awt::Key::DOWN)
+#define KEY_UP ((USHORT)::com::sun::star::awt::Key::UP)
+#define KEY_LEFT ((USHORT)::com::sun::star::awt::Key::LEFT)
+#define KEY_RIGHT ((USHORT)::com::sun::star::awt::Key::RIGHT)
+#define KEY_HOME ((USHORT)::com::sun::star::awt::Key::HOME)
+#define KEY_END ((USHORT)::com::sun::star::awt::Key::END)
+#define KEY_PAGEUP ((USHORT)::com::sun::star::awt::Key::PAGEUP)
+#define KEY_PAGEDOWN ((USHORT)::com::sun::star::awt::Key::PAGEDOWN)
+
+#define KEY_RETURN ((USHORT)::com::sun::star::awt::Key::RETURN)
+#define KEY_ESCAPE ((USHORT)::com::sun::star::awt::Key::ESCAPE)
+#define KEY_TAB ((USHORT)::com::sun::star::awt::Key::TAB)
+#define KEY_BACKSPACE ((USHORT)::com::sun::star::awt::Key::BACKSPACE)
+#define KEY_SPACE ((USHORT)::com::sun::star::awt::Key::SPACE)
+#define KEY_INSERT ((USHORT)::com::sun::star::awt::Key::INSERT)
+#define KEY_DELETE ((USHORT)::com::sun::star::awt::Key::DELETE)
+
+#define KEY_ADD ((USHORT)::com::sun::star::awt::Key::ADD)
+#define KEY_SUBTRACT ((USHORT)::com::sun::star::awt::Key::SUBTRACT)
+#define KEY_MULTIPLY ((USHORT)::com::sun::star::awt::Key::MULTIPLY)
+#define KEY_DIVIDE ((USHORT)::com::sun::star::awt::Key::DIVIDE)
+#define KEY_POINT ((USHORT)::com::sun::star::awt::Key::POINT)
+#define KEY_COMMA ((USHORT)::com::sun::star::awt::Key::COMMA)
+#define KEY_LESS ((USHORT)::com::sun::star::awt::Key::LESS)
+#define KEY_GREATER ((USHORT)::com::sun::star::awt::Key::GREATER)
+#define KEY_EQUAL ((USHORT)::com::sun::star::awt::Key::EQUAL)
+
+#define KEY_OPEN ((USHORT)::com::sun::star::awt::Key::OPEN)
+#define KEY_CUT ((USHORT)::com::sun::star::awt::Key::CUT)
+#define KEY_COPY ((USHORT)::com::sun::star::awt::Key::COPY)
+#define KEY_PASTE ((USHORT)::com::sun::star::awt::Key::PASTE)
+#define KEY_UNDO ((USHORT)::com::sun::star::awt::Key::UNDO)
+#define KEY_REPEAT ((USHORT)::com::sun::star::awt::Key::REPEAT)
+#define KEY_FIND ((USHORT)::com::sun::star::awt::Key::FIND)
+#define KEY_PROPERTIES ((USHORT)::com::sun::star::awt::Key::PROPERTIES)
+#define KEY_FRONT ((USHORT)::com::sun::star::awt::Key::FRONT)
#define KEY_CONTEXTMENU ((USHORT)::com::sun::star::awt::Key::CONTEXTMENU)
-#define KEY_MENU ((USHORT)::com::sun::star::awt::Key::MENU)
-#define KEY_HELP ((USHORT)::com::sun::star::awt::Key::HELP)
+#define KEY_MENU ((USHORT)::com::sun::star::awt::Key::MENU)
+#define KEY_HELP ((USHORT)::com::sun::star::awt::Key::HELP)
#define KEY_HANGUL_HANJA ((USHORT)::com::sun::star::awt::Key::HANGUL_HANJA)
#define KEY_DECIMAL ((USHORT)::com::sun::star::awt::Key::DECIMAL)
#define KEY_TILDE ((USHORT)::com::sun::star::awt::Key::TILDE)
@@ -164,15 +164,15 @@
#define KEY_NUMLOCK ((USHORT)::com::sun::star::awt::Key::NUMLOCK)
#define KEY_SCROLLLOCK ((USHORT)::com::sun::star::awt::Key::SCROLLLOCK)
-#define KEY_CODE ((USHORT)0x0FFF)
+#define KEY_CODE ((USHORT)0x0FFF)
// Modifier-Tasten
-#define KEY_SHIFT ((USHORT)0x1000)
-#define KEY_MOD1 ((USHORT)0x2000)
-#define KEY_MOD2 ((USHORT)0x4000)
-#define KEY_MOD3 ((USHORT)0x8000)
-#define KEY_MODTYPE ((USHORT)0xF000)
-#define KEY_ALLMODTYPE ((USHORT)0xF000)
+#define KEY_SHIFT ((USHORT)0x1000)
+#define KEY_MOD1 ((USHORT)0x2000)
+#define KEY_MOD2 ((USHORT)0x4000)
+#define KEY_MOD3 ((USHORT)0x8000)
+#define KEY_MODTYPE ((USHORT)0xF000)
+#define KEY_ALLMODTYPE ((USHORT)0xF000)
// extended Modifier-Keys (only used for modkey events)
#define MODKEY_LSHIFT 0x0001
@@ -192,9 +192,9 @@
// - Mouse-Types -
// ---------------
-#define MOUSE_LEFT ((USHORT)0x0001)
-#define MOUSE_MIDDLE ((USHORT)0x0002)
-#define MOUSE_RIGHT ((USHORT)0x0004)
+#define MOUSE_LEFT ((USHORT)0x0001)
+#define MOUSE_MIDDLE ((USHORT)0x0002)
+#define MOUSE_RIGHT ((USHORT)0x0004)
// -------------------
// - Indicator-Types -
diff --git a/vcl/inc/vcl/lazydelete.hxx b/vcl/inc/vcl/lazydelete.hxx
index 46804f3b54cb..713e22ef022a 100644
--- a/vcl/inc/vcl/lazydelete.hxx
+++ b/vcl/inc/vcl/lazydelete.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,23 +43,23 @@
namespace vcl
{
/* Helpers for lazy object deletion
-
+
With vcl it is often necessary to delete objects (especially Windows)
in the right order as well as in a way ensuring that the deleted objects
are not still on the stack (e.g. deleting a Window in its key handler). To
make this easier a helper class is given here which takes care of both
sorting as well as lazy deletion.
-
+
The grisly details:
LazyDelete is a class that LazyDeletor register to. When vcl's event
loop (that is Application::Yield or Application::Reschedule) comes out
of the last level, the LazyDelete::flush is called. This will cause
LazyDelete to delete all registered LazyDeletor objects.
-
+
LazyDeletor<T> is a one instance object that contains a list of
<T> objects to be deleted in sorted order. It is derived from
LazyDeletorBase as to be able to register itself in LazyDelete.
-
+
The user calls the static method LazyDeletor<T>::Delete( T* ) with the
object to be destroyed lazy. The static method creates the LazyDeletor<T>
(which in turn registers itself in LazyDelete) if this is the first time
@@ -68,19 +68,19 @@ namespace vcl
that will ensure the correct order of deletion via the specialized is_less method
(e.g. if a Window is a child of another Window and therefore should be destroyed
first it is "less" in this sense)
-
+
LazyDelete::flush will be called when the top of the nested event loop is
reached again and will then destroy each registered LazyDeletor<T> which
in turn destroys the objects needed to be destroyed lazily. After this
the state is as before entering the event loop.
-
+
Preconditions:
- The class <T> of which objects are to be destroyed needs a virtual
destructor or must be final, else the wrong type will be destroyed.
- The destructor of <T> should call LazyDeletor<T>::Undelete( this ). This
prevents duplicate deletionin case someone destroys the object prematurely.
*/
-
+
class LazyDeletorBase;
class VCL_DLLPUBLIC LazyDelete
{
@@ -105,27 +105,27 @@ namespace vcl
class VCL_DLLPUBLIC LazyDeletor : public LazyDeletorBase
{
static LazyDeletor< T >* s_pOneInstance;
-
+
struct DeleteObjectEntry
{
T* m_pObject;
bool m_bDeleted;
-
+
DeleteObjectEntry() :
m_pObject( NULL ),
m_bDeleted( false )
{}
-
+
DeleteObjectEntry( T* i_pObject ) :
m_pObject( i_pObject ),
m_bDeleted( false )
{}
};
-
+
std::vector< DeleteObjectEntry > m_aObjects;
typedef std::hash_map< sal_IntPtr, unsigned int > PtrToIndexMap;
PtrToIndexMap m_aPtrToIndex;
-
+
/** strict weak ordering funtion to bring objects to be destroyed lazily
in correct order, e.g. for Window objects children before parents
*/
@@ -140,7 +140,7 @@ namespace vcl
#endif
if( s_pOneInstance == this ) // sanity check
s_pOneInstance = NULL;
-
+
// do the actual work
unsigned int nCount = m_aObjects.size();
std::vector<T*> aRealDelete;
@@ -169,7 +169,7 @@ namespace vcl
delete aRealDelete[n];
}
}
-
+
public:
/** mark an object for lazy deletion
*/
@@ -203,7 +203,7 @@ namespace vcl
}
}
};
-
+
/*
class DeleteOnDeinit matches a similar need as LazyDelete for static objects:
you may not access vcl objects after DeInitVCL has been called this includes their destruction
@@ -211,36 +211,36 @@ namespace vcl
To work around this use DeleteOnDeinit<BitmapEx> which will allow you to have a static object container,
that will have its contents destroyed on DeinitVCL. The single drawback is that you need to check on the
container object whether it still contains content before actually accessing it.
-
+
caveat: when constructing a vcl object, you certainly want to ensure that InitVCL has run already.
However this is not necessarily the case when using a class static member or a file level static variable.
In these cases make judicious use of the set() method of DeleteOnDeinit, but beware of the changing
ownership.
-
+
example use case: use a lazy initialized on call BitmapEx in a paint method. Of course a paint method
would not normally be called after DeInitVCL anyway, so the check might not be necessary in a
Window::Paint implementation, but always checking is a good idea.
-
+
SomeWindow::Paint()
{
static vcl::DeleteOnDeinit< BitmapEx > aBmp( new BitmapEx( ResId( 1000, myResMgr ) ) );
-
+
if( aBmp.get() ) // check whether DeInitVCL has been called already
DrawBitmapEx( Point( 10, 10 ), *aBmp.get() );
}
*/
-
+
class VCL_DLLPUBLIC DeleteOnDeinitBase
{
public:
static void SAL_DLLPRIVATE ImplDeleteOnDeInit();
virtual ~DeleteOnDeinitBase();
protected:
- static void addDeinitContainer( DeleteOnDeinitBase* i_pContainer );
+ static void addDeinitContainer( DeleteOnDeinitBase* i_pContainer );
virtual void doCleanup() = 0;
};
-
+
template < typename T >
class DeleteOnDeinit : public DeleteOnDeinitBase
{
@@ -249,10 +249,10 @@ namespace vcl
public:
DeleteOnDeinit( T* i_pT ) : m_pT( i_pT ) { addDeinitContainer( this ); }
virtual ~DeleteOnDeinit() {}
-
+
// get contents
T* get() { return m_pT; }
-
+
// set contents, returning old contents
// ownership is transfered !
T* set( T* i_pNew ) { T* pOld = m_pT; m_pT = i_pNew; return pOld; }
diff --git a/vcl/inc/vcl/lineinfo.hxx b/vcl/inc/vcl/lineinfo.hxx
index be17988dd71d..333b61f9ca3f 100644
--- a/vcl/inc/vcl/lineinfo.hxx
+++ b/vcl/inc/vcl/lineinfo.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,22 +43,22 @@ namespace basegfx { class B2DPolyPolygon; }
struct ImplLineInfo
{
- ULONG mnRefCount;
- LineStyle meStyle;
- long mnWidth;
- USHORT mnDashCount;
- long mnDashLen;
- USHORT mnDotCount;
- long mnDotLen;
- long mnDistance;
-
+ ULONG mnRefCount;
+ LineStyle meStyle;
+ long mnWidth;
+ USHORT mnDashCount;
+ long mnDashLen;
+ USHORT mnDotCount;
+ long mnDotLen;
+ long mnDistance;
+
basegfx::B2DLineJoin meLineJoin;
ImplLineInfo();
ImplLineInfo( const ImplLineInfo& rImplLineInfo );
- friend SvStream& operator>>( SvStream& rIStm, ImplLineInfo& rImplLineInfo );
- friend SvStream& operator<<( SvStream& rOStm, const ImplLineInfo& rImplLineInfo );
+ friend SvStream& operator>>( SvStream& rIStm, ImplLineInfo& rImplLineInfo );
+ friend SvStream& operator<<( SvStream& rOStm, const ImplLineInfo& rImplLineInfo );
};
// ------------
@@ -67,12 +67,12 @@ struct ImplLineInfo
class VCL_DLLPUBLIC LineInfo
{
-private:
+private:
- ImplLineInfo* mpImplLineInfo;
- long n1;
- long n2;
- long n3;
+ ImplLineInfo* mpImplLineInfo;
+ long n1;
+ long n2;
+ long n3;
SAL_DLLPRIVATE void ImplMakeUnique();
@@ -82,36 +82,36 @@ public:
LineInfo( const LineInfo& rLineInfo );
~LineInfo();
- LineInfo& operator=( const LineInfo& rLineInfo );
+ LineInfo& operator=( const LineInfo& rLineInfo );
BOOL operator==( const LineInfo& rLineInfo ) const;
BOOL operator!=( const LineInfo& rLineInfo ) const { return !(LineInfo::operator==( rLineInfo ) ); }
BOOL IsSameInstance( const LineInfo& rLineInfo ) const { return( mpImplLineInfo == rLineInfo.mpImplLineInfo ); }
void SetStyle( LineStyle eStyle );
- LineStyle GetStyle() const { return mpImplLineInfo->meStyle; }
+ LineStyle GetStyle() const { return mpImplLineInfo->meStyle; }
void SetWidth( long nWidth );
- long GetWidth() const { return mpImplLineInfo->mnWidth; }
+ long GetWidth() const { return mpImplLineInfo->mnWidth; }
- void SetDashCount( USHORT nDashCount );
- USHORT GetDashCount() const { return mpImplLineInfo->mnDashCount; }
+ void SetDashCount( USHORT nDashCount );
+ USHORT GetDashCount() const { return mpImplLineInfo->mnDashCount; }
- void SetDashLen( long nDashLen );
- long GetDashLen() const { return mpImplLineInfo->mnDashLen; }
+ void SetDashLen( long nDashLen );
+ long GetDashLen() const { return mpImplLineInfo->mnDashLen; }
- void SetDotCount( USHORT nDotCount );
- USHORT GetDotCount() const { return mpImplLineInfo->mnDotCount; }
+ void SetDotCount( USHORT nDotCount );
+ USHORT GetDotCount() const { return mpImplLineInfo->mnDotCount; }
- void SetDotLen( long nDotLen );
- long GetDotLen() const { return mpImplLineInfo->mnDotLen; }
+ void SetDotLen( long nDotLen );
+ long GetDotLen() const { return mpImplLineInfo->mnDotLen; }
- void SetDistance( long nDistance );
- long GetDistance() const { return mpImplLineInfo->mnDistance; }
+ void SetDistance( long nDistance );
+ long GetDistance() const { return mpImplLineInfo->mnDistance; }
void SetLineJoin(basegfx::B2DLineJoin eLineJoin);
basegfx::B2DLineJoin GetLineJoin() const { return mpImplLineInfo->meLineJoin; }
- BOOL IsDefault() const { return( !mpImplLineInfo->mnWidth && ( LINE_SOLID == mpImplLineInfo->meStyle ) ); }
+ BOOL IsDefault() const { return( !mpImplLineInfo->mnWidth && ( LINE_SOLID == mpImplLineInfo->meStyle ) ); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, LineInfo& rLineInfo );
friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const LineInfo& rLineInfo );
diff --git a/vcl/inc/vcl/longcurr.hxx b/vcl/inc/vcl/longcurr.hxx
index fdbb36f7af6c..31c7752da3d4 100644
--- a/vcl/inc/vcl/longcurr.hxx
+++ b/vcl/inc/vcl/longcurr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,24 +46,24 @@ private:
SAL_DLLPRIVATE void ImpInit();
protected:
- BigInt mnFieldValue;
- BigInt mnLastValue;
- BigInt mnMin;
- BigInt mnMax;
- BigInt mnCorrectedValue;
+ BigInt mnFieldValue;
+ BigInt mnLastValue;
+ BigInt mnMin;
+ BigInt mnMax;
+ BigInt mnCorrectedValue;
String maCurrencySymbol;
- USHORT mnType;
+ USHORT mnType;
USHORT mnDecimalDigits;
BOOL mbThousandSep;
LongCurrencyFormatter();
- SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
+ SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public:
~LongCurrencyFormatter();
- virtual void Reformat();
- virtual void ReformatAll();
+ virtual void Reformat();
+ virtual void ReformatAll();
void SetUseThousandSep( BOOL b );
BOOL IsUseThousandSep() const { return mbThousandSep; }
@@ -71,25 +71,25 @@ public:
void SetCurrencySymbol( const String& rStr );
String GetCurrencySymbol() const;
- void SetMin( BigInt nNewMin );
- BigInt GetMin() const { return mnMin; }
- void SetMax( BigInt nNewMax );
- BigInt GetMax() const { return mnMax; }
+ void SetMin( BigInt nNewMin );
+ BigInt GetMin() const { return mnMin; }
+ void SetMax( BigInt nNewMax );
+ BigInt GetMax() const { return mnMax; }
- void SetDecimalDigits( USHORT nDigits );
- USHORT GetDecimalDigits() const;
- void SetValue( BigInt nNewValue );
- void SetUserValue( BigInt nNewValue );
- BigInt GetValue() const;
- BOOL IsValueModified() const;
+ void SetDecimalDigits( USHORT nDigits );
+ USHORT GetDecimalDigits() const;
+ void SetValue( BigInt nNewValue );
+ void SetUserValue( BigInt nNewValue );
+ BigInt GetValue() const;
+ BOOL IsValueModified() const;
- void SetEmptyValue();
- BOOL IsEmptyValue() const { return !GetField()->GetText().Len(); }
+ void SetEmptyValue();
+ BOOL IsEmptyValue() const { return !GetField()->GetText().Len(); }
- BigInt GetCorrectedValue() const { return mnCorrectedValue; }
+ BigInt GetCorrectedValue() const { return mnCorrectedValue; }
- BigInt Normalize( BigInt nValue ) const;
- BigInt Denormalize( BigInt nValue ) const;
+ BigInt Normalize( BigInt nValue ) const;
+ BigInt Denormalize( BigInt nValue ) const;
};
// ---------------------
@@ -101,9 +101,9 @@ class VCL_DLLPUBLIC LongCurrencyField : public SpinField, public LongCurrencyFor
friend void ImplNewLongCurrencyFieldValue( LongCurrencyField*, BigInt );
private:
- BigInt mnSpinSize;
- BigInt mnFirst;
- BigInt mnLast;
+ BigInt mnSpinSize;
+ BigInt mnFirst;
+ BigInt mnLast;
protected:
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
@@ -113,21 +113,21 @@ public:
LongCurrencyField( Window* pParent, const ResId& rResId );
~LongCurrencyField();
- long PreNotify( NotifyEvent& rNEvt );
- long Notify( NotifyEvent& rNEvt );
-
- void Modify();
- void Up();
- void Down();
- void First();
- void Last();
-
- void SetFirst( BigInt nNewFirst ) { mnFirst = nNewFirst; }
- BigInt GetFirst() const { return mnFirst; }
- void SetLast( BigInt nNewLast ) { mnLast = nNewLast; }
- BigInt GetLast() const { return mnLast; }
- void SetSpinSize( BigInt nNewSize ) { mnSpinSize = nNewSize; }
- BigInt GetSpinSize() const { return mnSpinSize; }
+ long PreNotify( NotifyEvent& rNEvt );
+ long Notify( NotifyEvent& rNEvt );
+
+ void Modify();
+ void Up();
+ void Down();
+ void First();
+ void Last();
+
+ void SetFirst( BigInt nNewFirst ) { mnFirst = nNewFirst; }
+ BigInt GetFirst() const { return mnFirst; }
+ void SetLast( BigInt nNewLast ) { mnLast = nNewLast; }
+ BigInt GetLast() const { return mnLast; }
+ void SetSpinSize( BigInt nNewSize ) { mnSpinSize = nNewSize; }
+ BigInt GetSpinSize() const { return mnSpinSize; }
};
// -------------------
@@ -141,19 +141,19 @@ public:
LongCurrencyBox( Window* pParent, const ResId& rResId );
~LongCurrencyBox();
- long PreNotify( NotifyEvent& rNEvt );
- long Notify( NotifyEvent& rNEvt );
+ long PreNotify( NotifyEvent& rNEvt );
+ long Notify( NotifyEvent& rNEvt );
- void Modify();
- void ReformatAll();
+ void Modify();
+ void ReformatAll();
- void InsertValue( BigInt nValue,
+ void InsertValue( BigInt nValue,
USHORT nPos = COMBOBOX_APPEND );
- void RemoveValue( BigInt nValue );
- BigInt GetValue() const
+ void RemoveValue( BigInt nValue );
+ BigInt GetValue() const
{ return LongCurrencyFormatter::GetValue(); }
- BigInt GetValue( USHORT nPos ) const;
- USHORT GetValuePos( BigInt nValue ) const;
+ BigInt GetValue( USHORT nPos ) const;
+ USHORT GetValuePos( BigInt nValue ) const;
};
#endif // _LONGCURR_HXX
diff --git a/vcl/inc/vcl/lstbox.h b/vcl/inc/vcl/lstbox.h
index 454156f83627..1a4824ca23b2 100644
--- a/vcl/inc/vcl/lstbox.h
+++ b/vcl/inc/vcl/lstbox.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,11 +29,11 @@
#ifndef _SV_LSTBOX_H
#define _SV_LSTBOX_H
-#define LISTBOX_APPEND ((USHORT)0xFFFF)
-#define LISTBOX_ENTRY_NOTFOUND ((USHORT)0xFFFF)
-#define LISTBOX_ERROR ((USHORT)0xFFFF)
+#define LISTBOX_APPEND ((USHORT)0xFFFF)
+#define LISTBOX_ENTRY_NOTFOUND ((USHORT)0xFFFF)
+#define LISTBOX_ERROR ((USHORT)0xFFFF)
-#define LISTBOX_USERDRAW_SELECTED ((USHORT)0x0001)
+#define LISTBOX_USERDRAW_SELECTED ((USHORT)0x0001)
// --------------------------------------------------------------------
@@ -42,14 +42,14 @@
// !! Do not use these flags for user data as they are reserved !!
// !! to change the internal behaviour of the ListBox implementation !!
-// !! for specific entries. !!
+// !! for specific entries. !!
/** this flag disables a selection of an entry completly. It is not
possible to select such entries either from the user interface
nor from the ListBox methods. Cursor traveling is handled correctly.
This flag can be used to add titles to a ListBox.
*/
-#define LISTBOX_ENTRY_FLAG_DISABLE_SELECTION 0x0000001
+#define LISTBOX_ENTRY_FLAG_DISABLE_SELECTION 0x0000001
/** this flag can be used to make an entry multine capable
A normal entry is single line and will therefore be clipped
@@ -63,6 +63,6 @@
*/
#define LISTBOX_ENTRY_FLAG_DRAW_DISABLED 0x0000004
-#endif // _SV_LSTBOX_H
+#endif // _SV_LSTBOX_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/lstbox.hxx b/vcl/inc/vcl/lstbox.hxx
index 5d74ce5c7a99..0b0a69265a75 100644
--- a/vcl/inc/vcl/lstbox.hxx
+++ b/vcl/inc/vcl/lstbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,21 +40,21 @@ class ImplBtn;
class ImplWin;
// --------------------------------------------------------------------
-// - ListBox -
+// - ListBox -
// --------------------------------------------------------------------
class VCL_DLLPUBLIC ListBox : public Control
{
private:
- ImplListBox* mpImplLB;
- ImplListBoxFloatingWindow* mpFloatWin;
- ImplWin* mpImplWin;
- ImplBtn* mpBtn;
- USHORT mnDDHeight;
- USHORT mnSaveValue;
- BOOL mbDDAutoSize;
- Link maSelectHdl;
- Link maDoubleClickHdl;
+ ImplListBox* mpImplLB;
+ ImplListBoxFloatingWindow* mpFloatWin;
+ ImplWin* mpImplWin;
+ ImplBtn* mpBtn;
+ USHORT mnDDHeight;
+ USHORT mnSaveValue;
+ BOOL mbDDAutoSize;
+ Link maSelectHdl;
+ Link maDoubleClickHdl;
USHORT mnLineCount;
private:
@@ -74,7 +74,7 @@ protected:
SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
SAL_DLLPRIVATE WinBits ImplInitStyle( WinBits nStyle );
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
- BOOL IsDropDownBox() const { return mpFloatWin ? TRUE : FALSE; }
+ BOOL IsDropDownBox() const { return mpFloatWin ? TRUE : FALSE; }
protected:
ListBox( WindowType nType );
@@ -86,66 +86,66 @@ public:
ListBox( Window* pParent, const ResId& rResId );
~ListBox();
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- virtual void Resize();
- virtual long PreNotify( NotifyEvent& rNEvt );
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
-
- virtual void Select();
- virtual void DoubleClick();
- virtual void GetFocus();
- virtual void LoseFocus();
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void Resize();
+ virtual long PreNotify( NotifyEvent& rNEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
+
+ virtual void Select();
+ virtual void DoubleClick();
+ virtual void GetFocus();
+ virtual void LoseFocus();
virtual Window* GetPreferredKeyInputWindow();
virtual const Wallpaper& GetDisplayBackground() const;
- virtual void SetPosSizePixel( long nX, long nY,
+ virtual void SetPosSizePixel( long nX, long nY,
long nWidth, long nHeight, USHORT nFlags = WINDOW_POSSIZE_ALL );
- void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
+ void SetPosSizePixel( const Point& rNewPos, const Size& rNewSize )
{ Control::SetPosSizePixel( rNewPos, rNewSize ); }
- void SetDropDownSizePixel( const Size& rNewSize )
+ void SetDropDownSizePixel( const Size& rNewSize )
{ if( IsDropDownBox() ) SetPosSizePixel( 0, 0, rNewSize.Width(), rNewSize.Height(), WINDOW_POSSIZE_SIZE | WINDOW_POSSIZE_DROPDOWN ); }
- Rectangle GetDropDownPosSizePixel() const;
+ Rectangle GetDropDownPosSizePixel() const;
- void SetDropDownLineCount( USHORT nLines );
- USHORT GetDropDownLineCount() const;
+ void SetDropDownLineCount( USHORT nLines );
+ USHORT GetDropDownLineCount() const;
- void EnableAutoSize( BOOL bAuto );
- BOOL IsAutoSizeEnabled() const { return mbDDAutoSize; }
+ void EnableAutoSize( BOOL bAuto );
+ BOOL IsAutoSizeEnabled() const { return mbDDAutoSize; }
void EnableDDAutoWidth( BOOL b );
BOOL IsDDAutoWidthEnabled() const;
- virtual USHORT InsertEntry( const XubString& rStr, USHORT nPos = LISTBOX_APPEND );
- virtual USHORT InsertEntry( const Image& rImage, USHORT nPos = LISTBOX_APPEND );
- virtual USHORT InsertEntry( const XubString& rStr, const Image& rImage, USHORT nPos = LISTBOX_APPEND );
- virtual void RemoveEntry( const XubString& rStr );
- virtual void RemoveEntry( USHORT nPos );
+ virtual USHORT InsertEntry( const XubString& rStr, USHORT nPos = LISTBOX_APPEND );
+ virtual USHORT InsertEntry( const Image& rImage, USHORT nPos = LISTBOX_APPEND );
+ virtual USHORT InsertEntry( const XubString& rStr, const Image& rImage, USHORT nPos = LISTBOX_APPEND );
+ virtual void RemoveEntry( const XubString& rStr );
+ virtual void RemoveEntry( USHORT nPos );
- virtual void Clear();
+ virtual void Clear();
- virtual USHORT GetEntryPos( const XubString& rStr ) const;
- virtual USHORT GetEntryPos( const void* pData ) const;
+ virtual USHORT GetEntryPos( const XubString& rStr ) const;
+ virtual USHORT GetEntryPos( const void* pData ) const;
Image GetEntryImage( USHORT nPos ) const;
virtual XubString GetEntry( USHORT nPos ) const;
- virtual USHORT GetEntryCount() const;
+ virtual USHORT GetEntryCount() const;
- virtual void SelectEntry( const XubString& rStr, BOOL bSelect = TRUE );
- virtual void SelectEntryPos( USHORT nPos, BOOL bSelect = TRUE );
+ virtual void SelectEntry( const XubString& rStr, BOOL bSelect = TRUE );
+ virtual void SelectEntryPos( USHORT nPos, BOOL bSelect = TRUE );
- virtual USHORT GetSelectEntryCount() const;
- virtual XubString GetSelectEntry( USHORT nSelIndex = 0 ) const;
- virtual USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const;
+ virtual USHORT GetSelectEntryCount() const;
+ virtual XubString GetSelectEntry( USHORT nSelIndex = 0 ) const;
+ virtual USHORT GetSelectEntryPos( USHORT nSelIndex = 0 ) const;
- virtual BOOL IsEntrySelected( const XubString& rStr ) const;
- virtual BOOL IsEntryPosSelected( USHORT nPos ) const;
- virtual void SetNoSelection();
+ virtual BOOL IsEntrySelected( const XubString& rStr ) const;
+ virtual BOOL IsEntryPosSelected( USHORT nPos ) const;
+ virtual void SetNoSelection();
- void SetEntryData( USHORT nPos, void* pNewData );
- void* GetEntryData( USHORT nPos ) const;
+ void SetEntryData( USHORT nPos, void* pNewData );
+ void* GetEntryData( USHORT nPos ) const;
/** this methods stores a combination of flags from the
LISTBOX_ENTRY_FLAG_* defines at the given entry.
@@ -155,71 +155,71 @@ public:
to change the internal behaviour of the ListBox implementation
for specific entries.
*/
- void SetEntryFlags( USHORT nPos, long nFlags );
+ void SetEntryFlags( USHORT nPos, long nFlags );
/** this methods gets the current combination of flags from the
LISTBOX_ENTRY_FLAG_* defines from the given entry.
See description of the possible LISTBOX_ENTRY_FLAG_* flags
for details.
*/
- long GetEntryFlags( USHORT nPos ) const;
+ long GetEntryFlags( USHORT nPos ) const;
- void SetTopEntry( USHORT nPos );
+ void SetTopEntry( USHORT nPos );
void ShowProminentEntry( USHORT nPos );
- void SetTopEntryStr( const XubString& rStr );
- USHORT GetTopEntry() const;
+ void SetTopEntryStr( const XubString& rStr );
+ USHORT GetTopEntry() const;
void SetProminentEntryType( ProminentEntry eType );
ProminentEntry GetProminentEntryType() const;
- void SaveValue() { mnSaveValue = GetSelectEntryPos(); }
- USHORT GetSavedValue() const { return mnSaveValue; }
+ void SaveValue() { mnSaveValue = GetSelectEntryPos(); }
+ USHORT GetSavedValue() const { return mnSaveValue; }
- void SetSeparatorPos( USHORT n );
- void SetSeparatorPos();
- USHORT GetSeparatorPos() const;
+ void SetSeparatorPos( USHORT n );
+ void SetSeparatorPos();
+ USHORT GetSeparatorPos() const;
- BOOL IsTravelSelect() const;
- BOOL IsInDropDown() const;
- void ToggleDropDown();
+ BOOL IsTravelSelect() const;
+ BOOL IsInDropDown() const;
+ void ToggleDropDown();
- void EnableMultiSelection( BOOL bMulti, BOOL bStackSelection );
- void EnableMultiSelection( BOOL bMulti );
- BOOL IsMultiSelectionEnabled() const;
+ void EnableMultiSelection( BOOL bMulti, BOOL bStackSelection );
+ void EnableMultiSelection( BOOL bMulti );
+ BOOL IsMultiSelectionEnabled() const;
- void SetReadOnly( BOOL bReadOnly = TRUE );
- BOOL IsReadOnly() const;
+ void SetReadOnly( BOOL bReadOnly = TRUE );
+ BOOL IsReadOnly() const;
- long CalcWindowSizePixel( USHORT nLines ) const;
+ long CalcWindowSizePixel( USHORT nLines ) const;
Rectangle GetBoundingRectangle( USHORT nItem ) const;
- void SetUserItemSize( const Size& rSz );
- const Size& GetUserItemSize() const;
+ void SetUserItemSize( const Size& rSz );
+ const Size& GetUserItemSize() const;
- void EnableUserDraw( BOOL bUserDraw );
- BOOL IsUserDrawEnabled() const;
+ void EnableUserDraw( BOOL bUserDraw );
+ BOOL IsUserDrawEnabled() const;
- void DrawEntry( const UserDrawEvent& rEvt, BOOL bDrawImage, BOOL bDrawText, BOOL bDrawTextAtImagePos = FALSE );
+ void DrawEntry( const UserDrawEvent& rEvt, BOOL bDrawImage, BOOL bDrawText, BOOL bDrawTextAtImagePos = FALSE );
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
- void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
- const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
+ const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- Size CalcMinimumSize() const;
+ Size CalcMinimumSize() const;
virtual Size GetOptimalSize(WindowSizeType eType) const;
- Size CalcAdjustedSize( const Size& rPrefSize ) const;
- Size CalcSize( USHORT nColumns, USHORT nLines ) const;
- void GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const;
+ Size CalcAdjustedSize( const Size& rPrefSize ) const;
+ Size CalcSize( USHORT nColumns, USHORT nLines ) const;
+ void GetMaxVisColumnsAndLines( USHORT& rnCols, USHORT& rnLines ) const;
- void SetMRUEntries( const XubString& rEntries, xub_Unicode cSep = ';' );
- XubString GetMRUEntries( xub_Unicode cSep = ';' ) const;
- void SetMaxMRUCount( USHORT n );
- USHORT GetMaxMRUCount() const;
+ void SetMRUEntries( const XubString& rEntries, xub_Unicode cSep = ';' );
+ XubString GetMRUEntries( xub_Unicode cSep = ';' ) const;
+ void SetMaxMRUCount( USHORT n );
+ USHORT GetMaxMRUCount() const;
- USHORT GetDisplayLineCount() const;
+ USHORT GetDisplayLineCount() const;
- void EnableMirroring();
+ void EnableMirroring();
/** checks whether a certain point lies within the bounds of
a listbox item and returns the item as well as the character position
@@ -254,14 +254,14 @@ public:
using ListBox::GetSavedValue;
private:
// Bei MultiListBox nicht erlaubt...
- void SaveValue();
- USHORT GetSavedValue();
+ void SaveValue();
+ USHORT GetSavedValue();
public:
MultiListBox( Window* pParent, WinBits nStyle = 0 );
MultiListBox( Window* pParent, const ResId& rResId );
};
-#endif // _SV_LSTBOX_HXX
+#endif // _SV_LSTBOX_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/mapmod.hxx b/vcl/inc/vcl/mapmod.hxx
index 53cea6801cb2..6888595135a5 100644
--- a/vcl/inc/vcl/mapmod.hxx
+++ b/vcl/inc/vcl/mapmod.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,20 +42,20 @@ class SvStream;
// - ImplMapMode -
// --------------
-class OutputDevice;
+class OutputDevice;
class ImplMapMode
{
- friend class MapMode;
- friend class OutputDevice;
+ friend class MapMode;
+ friend class OutputDevice;
private:
- ULONG mnRefCount;
- MapUnit meUnit;
- Point maOrigin;
- Fraction maScaleX;
- Fraction maScaleY;
- BOOL mbSimple;
+ ULONG mnRefCount;
+ MapUnit meUnit;
+ Point maOrigin;
+ Fraction maScaleX;
+ Fraction maScaleY;
+ BOOL mbSimple;
friend SvStream& operator>>( SvStream& rIStm, ImplMapMode& rMapMode );
friend SvStream& operator<<( SvStream& rOStm, const ImplMapMode& rMapMode );
@@ -72,10 +72,10 @@ public:
class VCL_DLLPUBLIC MapMode
{
- friend class OutputDevice;
+ friend class OutputDevice;
private:
- ImplMapMode* mpImplMapMode;
+ ImplMapMode* mpImplMapMode;
SAL_DLLPRIVATE void ImplMakeUnique();
@@ -87,33 +87,33 @@ public:
const Fraction& rScaleX, const Fraction& rScaleY );
~MapMode();
- void SetMapUnit( MapUnit eUnit );
- MapUnit GetMapUnit() const
+ void SetMapUnit( MapUnit eUnit );
+ MapUnit GetMapUnit() const
{ return mpImplMapMode->meUnit; }
- void SetOrigin( const Point& rOrigin );
- const Point& GetOrigin() const
+ void SetOrigin( const Point& rOrigin );
+ const Point& GetOrigin() const
{ return mpImplMapMode->maOrigin; }
- void SetScaleX( const Fraction& rScaleX );
+ void SetScaleX( const Fraction& rScaleX );
const Fraction& GetScaleX() const
{ return mpImplMapMode->maScaleX; }
- void SetScaleY( const Fraction& rScaleY );
+ void SetScaleY( const Fraction& rScaleY );
const Fraction& GetScaleY() const
{ return mpImplMapMode->maScaleY; }
- MapMode& operator=( const MapMode& rMapMode );
- BOOL operator==( const MapMode& rMapMode ) const;
- BOOL operator!=( const MapMode& rMapMode ) const
+ MapMode& operator=( const MapMode& rMapMode );
+ BOOL operator==( const MapMode& rMapMode ) const;
+ BOOL operator!=( const MapMode& rMapMode ) const
{ return !(MapMode::operator==( rMapMode )); }
- BOOL IsDefault() const;
- BOOL IsSameInstance( const MapMode& rMapMode ) const
+ BOOL IsDefault() const;
+ BOOL IsSameInstance( const MapMode& rMapMode ) const
{ return (mpImplMapMode == rMapMode.mpImplMapMode); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, MapMode& rMapMode );
friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const MapMode& rMapMode );
};
-#endif // _SV_MAPMOD_HXX
+#endif // _SV_MAPMOD_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/mapunit.hxx b/vcl/inc/vcl/mapunit.hxx
index f8fb7581c469..dfb5c121abd7 100644
--- a/vcl/inc/vcl/mapunit.hxx
+++ b/vcl/inc/vcl/mapunit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,6 +31,6 @@
#include <tools/mapunit.hxx>
-#endif // _VCL_MAPUNIT_HXX
+#endif // _VCL_MAPUNIT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/menu.hxx b/vcl/inc/vcl/menu.hxx
index 751f4ac16ca5..4351f1cd49a0 100644
--- a/vcl/inc/vcl/menu.hxx
+++ b/vcl/inc/vcl/menu.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,12 +68,12 @@ namespace vcl { struct MenuLayoutData; }
// - Menu-Types -
// --------------
-#define MENU_APPEND ((USHORT)0xFFFF)
-#define MENU_ITEM_NOTFOUND ((USHORT)0xFFFF)
+#define MENU_APPEND ((USHORT)0xFFFF)
+#define MENU_ITEM_NOTFOUND ((USHORT)0xFFFF)
-#define POPUPMENU_EXECUTE_DOWN ((USHORT)0x0001)
-#define POPUPMENU_EXECUTE_UP ((USHORT)0x0002)
-#define POPUPMENU_EXECUTE_LEFT ((USHORT)0x0004)
+#define POPUPMENU_EXECUTE_DOWN ((USHORT)0x0001)
+#define POPUPMENU_EXECUTE_UP ((USHORT)0x0002)
+#define POPUPMENU_EXECUTE_LEFT ((USHORT)0x0004)
#define POPUPMENU_EXECUTE_RIGHT ((USHORT)0x0008)
#define POPUPMENU_NOMOUSEUPCLOSE ((USHORT)0x0010)
@@ -84,22 +84,22 @@ enum MenuItemType { MENUITEM_DONTKNOW, MENUITEM_STRING, MENUITEM_IMAGE,
// By changes you must also change: rsc/vclrsc.hxx
typedef USHORT MenuItemBits;
-#define MIB_CHECKABLE ((MenuItemBits)0x0001)
-#define MIB_RADIOCHECK ((MenuItemBits)0x0002)
-#define MIB_AUTOCHECK ((MenuItemBits)0x0004)
-#define MIB_ABOUT ((MenuItemBits)0x0008)
-#define MIB_HELP ((MenuItemBits)0x0010)
-#define MIB_POPUPSELECT ((MenuItemBits)0x0020)
+#define MIB_CHECKABLE ((MenuItemBits)0x0001)
+#define MIB_RADIOCHECK ((MenuItemBits)0x0002)
+#define MIB_AUTOCHECK ((MenuItemBits)0x0004)
+#define MIB_ABOUT ((MenuItemBits)0x0008)
+#define MIB_HELP ((MenuItemBits)0x0010)
+#define MIB_POPUPSELECT ((MenuItemBits)0x0020)
// not in rsc/vclsrc.hxx because only a prelimitary solution
-#define MIB_NOSELECT ((MenuItemBits)0x0040)
-#define MIB_ICON ((MenuItemBits)0x0080)
-#define MIB_TEXT ((MenuItemBits)0x0100)
+#define MIB_NOSELECT ((MenuItemBits)0x0040)
+#define MIB_ICON ((MenuItemBits)0x0080)
+#define MIB_TEXT ((MenuItemBits)0x0100)
-#define MENU_FLAG_NOAUTOMNEMONICS 0x0001
-#define MENU_FLAG_HIDEDISABLEDENTRIES 0x0002
+#define MENU_FLAG_NOAUTOMNEMONICS 0x0001
+#define MENU_FLAG_HIDEDISABLEDENTRIES 0x0002
// overrides default hiding of disabled entries in popup menus
-#define MENU_FLAG_ALWAYSSHOWDISABLEDENTRIES 0x0004
+#define MENU_FLAG_ALWAYSSHOWDISABLEDENTRIES 0x0004
// forces images & toggle visibility for toolbar config popup
#define MENU_FLAG_SHOWCHECKIMAGES 0x0008
@@ -121,9 +121,9 @@ struct ImplMenuDelData
struct MenuLogo
{
- BitmapEx aBitmap;
- Color aStartColor;
- Color aEndColor;
+ BitmapEx aBitmap;
+ Color aStartColor;
+ Color aEndColor;
};
class VCL_DLLPUBLIC Menu : public Resource
@@ -135,205 +135,205 @@ class VCL_DLLPUBLIC Menu : public Resource
friend class SystemWindow;
friend struct ImplMenuDelData;
private:
- ImplMenuDelData* mpFirstDel;
- MenuItemList* pItemList; // Liste mit den MenuItems
- MenuLogo* pLogo;
- Menu* pStartedFrom;
- Window* pWindow;
-
- Link aActivateHdl; // Active-Handler
- Link aDeactivateHdl; // Deactivate-Handler
- Link aHighlightHdl; // Highlight-Handler
- Link aSelectHdl; // Highlight-Handler
-
+ ImplMenuDelData* mpFirstDel;
+ MenuItemList* pItemList; // Liste mit den MenuItems
+ MenuLogo* pLogo;
+ Menu* pStartedFrom;
+ Window* pWindow;
+
+ Link aActivateHdl; // Active-Handler
+ Link aDeactivateHdl; // Deactivate-Handler
+ Link aHighlightHdl; // Highlight-Handler
+ Link aSelectHdl; // Highlight-Handler
+
VclEventListeners maEventListeners;
VclEventListeners maChildEventListeners;
- XubString aTitleText; // PopupMenu-Text
+ XubString aTitleText; // PopupMenu-Text
- ULONG nEventId;
- USHORT mnHighlightedItemPos; // for native menues: keeps track of the highlighted item
- USHORT nMenuFlags;
- USHORT nDefaultItem; // Id vom Default-Item
- USHORT nSelectedId;
+ ULONG nEventId;
+ USHORT mnHighlightedItemPos; // for native menues: keeps track of the highlighted item
+ USHORT nMenuFlags;
+ USHORT nDefaultItem; // Id vom Default-Item
+ USHORT nSelectedId;
// Fuer Ausgabe:
- USHORT nCheckPos;
- USHORT nImagePos;
- USHORT nTextPos;
+ USHORT nCheckPos;
+ USHORT nImagePos;
+ USHORT nTextPos;
- BOOL bIsMenuBar : 1, // Handelt es sich um den MenuBar
- bCanceled : 1, // Waehrend eines Callbacks abgebrochen
- bInCallback : 1, // In Activate/Deactivate
- bKilled : 1; // Gekillt...
+ BOOL bIsMenuBar : 1, // Handelt es sich um den MenuBar
+ bCanceled : 1, // Waehrend eines Callbacks abgebrochen
+ bInCallback : 1, // In Activate/Deactivate
+ bKilled : 1; // Gekillt...
::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > mxAccessible;
mutable vcl::MenuLayoutData* mpLayoutData;
- SalMenu* mpSalMenu;
+ SalMenu* mpSalMenu;
protected:
- SAL_DLLPRIVATE void ImplInit();
- SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
- SAL_DLLPRIVATE Menu* ImplGetStartMenu();
- SAL_DLLPRIVATE Menu* ImplFindSelectMenu();
- SAL_DLLPRIVATE Menu* ImplFindMenu( USHORT nId );
- SAL_DLLPRIVATE Size ImplCalcSize( Window* pWin );
- SAL_DLLPRIVATE BOOL ImplIsVisible( USHORT nPos ) const;
+ SAL_DLLPRIVATE void ImplInit();
+ SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
+ SAL_DLLPRIVATE Menu* ImplGetStartMenu();
+ SAL_DLLPRIVATE Menu* ImplFindSelectMenu();
+ SAL_DLLPRIVATE Menu* ImplFindMenu( USHORT nId );
+ SAL_DLLPRIVATE Size ImplCalcSize( Window* pWin );
+ SAL_DLLPRIVATE BOOL ImplIsVisible( USHORT nPos ) const;
SAL_DLLPRIVATE BOOL ImplIsSelectable( USHORT nPos ) const;
- SAL_DLLPRIVATE USHORT ImplGetVisibleItemCount() const;
- SAL_DLLPRIVATE USHORT ImplGetFirstVisible() const;
- SAL_DLLPRIVATE USHORT ImplGetPrevVisible( USHORT nPos ) const;
- SAL_DLLPRIVATE USHORT ImplGetNextVisible( USHORT nPos ) const;
- SAL_DLLPRIVATE void ImplPaint( Window* pWin, USHORT nBorder, long nOffY = 0, MenuItemData* pThisDataOnly = 0, BOOL bHighlighted = FALSE, bool bLayout = false ) const;
- SAL_DLLPRIVATE void ImplSelect();
- SAL_DLLPRIVATE void ImplCallHighlight( USHORT nHighlightItem );
+ SAL_DLLPRIVATE USHORT ImplGetVisibleItemCount() const;
+ SAL_DLLPRIVATE USHORT ImplGetFirstVisible() const;
+ SAL_DLLPRIVATE USHORT ImplGetPrevVisible( USHORT nPos ) const;
+ SAL_DLLPRIVATE USHORT ImplGetNextVisible( USHORT nPos ) const;
+ SAL_DLLPRIVATE void ImplPaint( Window* pWin, USHORT nBorder, long nOffY = 0, MenuItemData* pThisDataOnly = 0, BOOL bHighlighted = FALSE, bool bLayout = false ) const;
+ SAL_DLLPRIVATE void ImplSelect();
+ SAL_DLLPRIVATE void ImplCallHighlight( USHORT nHighlightItem );
SAL_DLLPRIVATE void ImplCallEventListeners( ULONG nEvent, USHORT nPos );
DECL_DLLPRIVATE_LINK( ImplCallSelect, Menu* );
- SAL_DLLPRIVATE void ImplFillLayoutData() const;
+ SAL_DLLPRIVATE void ImplFillLayoutData() const;
SAL_DLLPRIVATE SalMenu* ImplGetSalMenu() { return mpSalMenu; }
SAL_DLLPRIVATE void ImplSetSalMenu( SalMenu *pMenu );
SAL_DLLPRIVATE const XubString& ImplGetHelpText( USHORT nItemId ) const;
-
+
// returns native check and option menu symbol height;
- // return value is Max( rCheckHeight, rRadioHeight )
+ // return value is Max( rCheckHeight, rRadioHeight )
SAL_DLLPRIVATE long ImplGetNativeCheckAndRadioSize( Window*, long& rCheckHeight, long& rRadioHeight, long &rMaxWidth ) const;
SAL_DLLPRIVATE void ImplAddDel( ImplMenuDelData &rDel );
SAL_DLLPRIVATE void ImplRemoveDel( ImplMenuDelData &rDel );
public:
- SAL_DLLPRIVATE void ImplKillLayoutData() const;
+ SAL_DLLPRIVATE void ImplKillLayoutData() const;
SAL_DLLPRIVATE Menu* ImplGetStartedFrom() const;
Menu();
Menu( BOOL bMenuBar );
SAL_DLLPRIVATE Window* ImplGetWindow() const { return pWindow; }
-
+
SAL_DLLPRIVATE void ImplSelectWithStart( Menu* pStartMenu = NULL );
public:
- virtual ~Menu();
+ virtual ~Menu();
- virtual void Activate();
- virtual void Deactivate();
- virtual void Highlight();
- virtual void Select();
- virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void Activate();
+ virtual void Deactivate();
+ virtual void Highlight();
+ virtual void Select();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
- void InsertItem( USHORT nItemId, const XubString& rStr,
+ void InsertItem( USHORT nItemId, const XubString& rStr,
MenuItemBits nItemBits = 0,
USHORT nPos = MENU_APPEND );
- void InsertItem( USHORT nItemId, const Image& rImage,
+ void InsertItem( USHORT nItemId, const Image& rImage,
MenuItemBits nItemBits = 0,
USHORT nPos = MENU_APPEND );
- void InsertItem( USHORT nItemId,
+ void InsertItem( USHORT nItemId,
const XubString& rString, const Image& rImage,
MenuItemBits nItemBits = 0,
USHORT nPos = MENU_APPEND );
- void InsertItem( const ResId& rResId, USHORT nPos = MENU_APPEND );
- void InsertSeparator( USHORT nPos = MENU_APPEND );
- void RemoveItem( USHORT nPos );
- void CopyItem( const Menu& rMenu, USHORT nPos,
+ void InsertItem( const ResId& rResId, USHORT nPos = MENU_APPEND );
+ void InsertSeparator( USHORT nPos = MENU_APPEND );
+ void RemoveItem( USHORT nPos );
+ void CopyItem( const Menu& rMenu, USHORT nPos,
USHORT nNewPos = MENU_APPEND );
- void Clear();
+ void Clear();
void CreateAutoMnemonics();
- void SetMenuFlags( USHORT nFlags ) { nMenuFlags = nFlags; }
- USHORT GetMenuFlags() const { return nMenuFlags; }
+ void SetMenuFlags( USHORT nFlags ) { nMenuFlags = nFlags; }
+ USHORT GetMenuFlags() const { return nMenuFlags; }
- USHORT GetItemCount() const;
- USHORT GetItemId( USHORT nPos ) const;
- USHORT GetItemPos( USHORT nItemId ) const;
- MenuItemType GetItemType( USHORT nPos ) const;
- USHORT GetCurItemId() const;
+ USHORT GetItemCount() const;
+ USHORT GetItemId( USHORT nPos ) const;
+ USHORT GetItemPos( USHORT nItemId ) const;
+ MenuItemType GetItemType( USHORT nPos ) const;
+ USHORT GetCurItemId() const;
- void SetDefaultItem( USHORT nItemId ) { nDefaultItem = nItemId; }
- USHORT GetDefaultItem() const { return nDefaultItem; }
+ void SetDefaultItem( USHORT nItemId ) { nDefaultItem = nItemId; }
+ USHORT GetDefaultItem() const { return nDefaultItem; }
- void SetItemBits( USHORT nItemId, MenuItemBits nBits );
- MenuItemBits GetItemBits( USHORT nItemId ) const;
+ void SetItemBits( USHORT nItemId, MenuItemBits nBits );
+ MenuItemBits GetItemBits( USHORT nItemId ) const;
- void SetUserValue( USHORT nItemId, ULONG nValue );
- ULONG GetUserValue( USHORT nItemId ) const;
+ void SetUserValue( USHORT nItemId, ULONG nValue );
+ ULONG GetUserValue( USHORT nItemId ) const;
- void SetPopupMenu( USHORT nItemId, PopupMenu* pMenu );
- PopupMenu* GetPopupMenu( USHORT nItemId ) const;
+ void SetPopupMenu( USHORT nItemId, PopupMenu* pMenu );
+ PopupMenu* GetPopupMenu( USHORT nItemId ) const;
- void SetAccelKey( USHORT nItemId, const KeyCode& rKeyCode );
- KeyCode GetAccelKey( USHORT nItemId ) const;
+ void SetAccelKey( USHORT nItemId, const KeyCode& rKeyCode );
+ KeyCode GetAccelKey( USHORT nItemId ) const;
- void CheckItem( USHORT nItemId, BOOL bCheck = TRUE );
- BOOL IsItemChecked( USHORT nItemId ) const;
+ void CheckItem( USHORT nItemId, BOOL bCheck = TRUE );
+ BOOL IsItemChecked( USHORT nItemId ) const;
- void SelectItem( USHORT nItemId );
- void DeSelect() { SelectItem( 0xFFFF ); } // MENUITEMPOS_INVALID
+ void SelectItem( USHORT nItemId );
+ void DeSelect() { SelectItem( 0xFFFF ); } // MENUITEMPOS_INVALID
- void EnableItem( USHORT nItemId, BOOL bEnable = TRUE );
- BOOL IsItemEnabled( USHORT nItemId ) const;
+ void EnableItem( USHORT nItemId, BOOL bEnable = TRUE );
+ BOOL IsItemEnabled( USHORT nItemId ) const;
void ShowItem( USHORT nItemId, BOOL bVisible = TRUE );
void HideItem( USHORT nItemId ) { ShowItem( nItemId, FALSE ); }
- BOOL IsItemVisible( USHORT nItemId ) const;
- BOOL IsItemPosVisible( USHORT nItemPos ) const;
- BOOL IsMenuVisible() const;
- BOOL IsMenuBar() const { return bIsMenuBar; }
+ BOOL IsItemVisible( USHORT nItemId ) const;
+ BOOL IsItemPosVisible( USHORT nItemPos ) const;
+ BOOL IsMenuVisible() const;
+ BOOL IsMenuBar() const { return bIsMenuBar; }
- void RemoveDisabledEntries( BOOL bCheckPopups = TRUE, BOOL bRemoveEmptyPopups = FALSE );
- BOOL HasValidEntries( BOOL bCheckPopups = TRUE );
+ void RemoveDisabledEntries( BOOL bCheckPopups = TRUE, BOOL bRemoveEmptyPopups = FALSE );
+ BOOL HasValidEntries( BOOL bCheckPopups = TRUE );
- void SetItemText( USHORT nItemId, const XubString& rStr );
- XubString GetItemText( USHORT nItemId ) const;
+ void SetItemText( USHORT nItemId, const XubString& rStr );
+ XubString GetItemText( USHORT nItemId ) const;
- void SetItemImage( USHORT nItemId, const Image& rImage );
- Image GetItemImage( USHORT nItemId ) const;
- void SetItemImageAngle( USHORT nItemId, long nAngle10 );
- long GetItemImageAngle( USHORT nItemId ) const;
- void SetItemImageMirrorMode( USHORT nItemId, BOOL bMirror );
- BOOL GetItemImageMirrorMode( USHORT ) const;
+ void SetItemImage( USHORT nItemId, const Image& rImage );
+ Image GetItemImage( USHORT nItemId ) const;
+ void SetItemImageAngle( USHORT nItemId, long nAngle10 );
+ long GetItemImageAngle( USHORT nItemId ) const;
+ void SetItemImageMirrorMode( USHORT nItemId, BOOL bMirror );
+ BOOL GetItemImageMirrorMode( USHORT ) const;
- void SetItemCommand( USHORT nItemId, const XubString& rCommand );
- const XubString& GetItemCommand( USHORT nItemId ) const;
+ void SetItemCommand( USHORT nItemId, const XubString& rCommand );
+ const XubString& GetItemCommand( USHORT nItemId ) const;
- void SetHelpText( USHORT nItemId, const XubString& rString );
- const XubString& GetHelpText( USHORT nItemId ) const;
+ void SetHelpText( USHORT nItemId, const XubString& rString );
+ const XubString& GetHelpText( USHORT nItemId ) const;
- void SetTipHelpText( USHORT nItemId, const XubString& rString );
- const XubString& GetTipHelpText( USHORT nItemId ) const;
+ void SetTipHelpText( USHORT nItemId, const XubString& rString );
+ const XubString& GetTipHelpText( USHORT nItemId ) const;
void SetHelpCommand( USHORT nItemId, const XubString& rString );
const XubString& GetHelpCommand( USHORT nItemId ) const;
+
+ void SetHelpId( USHORT nItemId, ULONG nHelpId );
+ ULONG GetHelpId( USHORT nItemId ) const;
- void SetHelpId( USHORT nItemId, ULONG nHelpId );
- ULONG GetHelpId( USHORT nItemId ) const;
-
- void SetActivateHdl( const Link& rLink ) { aActivateHdl = rLink; }
- const Link& GetActivateHdl() const { return aActivateHdl; }
+ void SetActivateHdl( const Link& rLink ) { aActivateHdl = rLink; }
+ const Link& GetActivateHdl() const { return aActivateHdl; }
- void SetDeactivateHdl( const Link& rLink ) { aDeactivateHdl = rLink; }
- const Link& GetDeactivateHdl() const { return aDeactivateHdl; }
+ void SetDeactivateHdl( const Link& rLink ) { aDeactivateHdl = rLink; }
+ const Link& GetDeactivateHdl() const { return aDeactivateHdl; }
- void SetHighlightHdl( const Link& rLink ) { aHighlightHdl = rLink; }
- const Link& GetHighlightHdl() const { return aHighlightHdl; }
+ void SetHighlightHdl( const Link& rLink ) { aHighlightHdl = rLink; }
+ const Link& GetHighlightHdl() const { return aHighlightHdl; }
- void SetSelectHdl( const Link& rLink ) { aSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return aSelectHdl; }
-
- void SetLogo( const MenuLogo& rLogo );
- void SetLogo();
- BOOL HasLogo() const { return pLogo ? TRUE : FALSE; }
- MenuLogo GetLogo() const;
+ void SetSelectHdl( const Link& rLink ) { aSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return aSelectHdl; }
+ void SetLogo( const MenuLogo& rLogo );
+ void SetLogo();
+ BOOL HasLogo() const { return pLogo ? TRUE : FALSE; }
+ MenuLogo GetLogo() const;
+
void AddEventListener( const Link& rEventListener );
void RemoveEventListener( const Link& rEventListener );
//void AddChildEventListener( const Link& rEventListener );
//void RemoveChildEventListener( const Link& rEventListener );
-
- Menu& operator =( const Menu& rMenu );
+
+ Menu& operator =( const Menu& rMenu );
// Fuer Menu-'Funktionen'
- MenuItemList* GetItemList() const { return pItemList; }
+ MenuItemList* GetItemList() const { return pItemList; }
// returns the system's menu handle if native menues are supported
// pData must point to a SystemMenuData structure
@@ -369,21 +369,21 @@ public:
// gets the activation key of the specified item
KeyEvent GetActivationKey( USHORT nItemId ) const;
- Window* GetWindow() const { return pWindow; }
-
- void SetAccessibleName( USHORT nItemId, const XubString& rStr );
- XubString GetAccessibleName( USHORT nItemId ) const;
+ Window* GetWindow() const { return pWindow; }
- void SetAccessibleDescription( USHORT nItemId, const XubString& rStr );
- XubString GetAccessibleDescription( USHORT nItemId ) const;
+ void SetAccessibleName( USHORT nItemId, const XubString& rStr );
+ XubString GetAccessibleName( USHORT nItemId ) const;
+ void SetAccessibleDescription( USHORT nItemId, const XubString& rStr );
+ XubString GetAccessibleDescription( USHORT nItemId ) const;
+
// returns whether the item a position nItemPos is highlighted or not.
bool IsHighlighted( USHORT nItemPos ) const;
void HighlightItem( USHORT nItemPos );
void DeHighlight() { HighlightItem( 0xFFFF ); } // MENUITEMPOS_INVALID
-
-
+
+
void doLazyDelete();
};
@@ -393,13 +393,13 @@ public:
class VCL_DLLPUBLIC MenuBar : public Menu
{
- Link maCloserHdl;
- Link maFloatHdl;
- Link maHideHdl;
- BOOL mbCloserVisible;
- BOOL mbFloatBtnVisible;
- BOOL mbHideBtnVisible;
- BOOL mbDisplayable;
+ Link maCloserHdl;
+ Link maFloatHdl;
+ Link maHideHdl;
+ BOOL mbCloserVisible;
+ BOOL mbFloatBtnVisible;
+ BOOL mbHideBtnVisible;
+ BOOL mbDisplayable;
friend class Application;
friend class Menu;
@@ -407,9 +407,9 @@ class VCL_DLLPUBLIC MenuBar : public Menu
friend class MenuFloatingWindow;
friend class SystemWindow;
- SAL_DLLPRIVATE static Window* ImplCreate( Window* pParent, Window* pWindow, MenuBar* pMenu );
- SAL_DLLPRIVATE static void ImplDestroy( MenuBar* pMenu, BOOL bDelete );
- SAL_DLLPRIVATE BOOL ImplHandleKeyEvent( const KeyEvent& rKEvent, BOOL bFromMenu = TRUE );
+ SAL_DLLPRIVATE static Window* ImplCreate( Window* pParent, Window* pWindow, MenuBar* pMenu );
+ SAL_DLLPRIVATE static void ImplDestroy( MenuBar* pMenu, BOOL bDelete );
+ SAL_DLLPRIVATE BOOL ImplHandleKeyEvent( const KeyEvent& rKEvent, BOOL bFromMenu = TRUE );
public:
MenuBar();
@@ -417,29 +417,29 @@ public:
MenuBar( const MenuBar& rMenu );
~MenuBar();
- MenuBar& operator =( const MenuBar& rMenu );
+ MenuBar& operator =( const MenuBar& rMenu );
- void ShowCloser( BOOL bShow = TRUE );
- BOOL HasCloser() const { return mbCloserVisible; }
- void ShowFloatButton( BOOL bShow = TRUE );
- BOOL HasFloatButton() const { return mbFloatBtnVisible; }
- void ShowHideButton( BOOL bShow = TRUE );
- BOOL HasHideButton() const { return mbHideBtnVisible; }
- void ShowButtons( BOOL bClose, BOOL bFloat, BOOL bHide );
+ void ShowCloser( BOOL bShow = TRUE );
+ BOOL HasCloser() const { return mbCloserVisible; }
+ void ShowFloatButton( BOOL bShow = TRUE );
+ BOOL HasFloatButton() const { return mbFloatBtnVisible; }
+ void ShowHideButton( BOOL bShow = TRUE );
+ BOOL HasHideButton() const { return mbHideBtnVisible; }
+ void ShowButtons( BOOL bClose, BOOL bFloat, BOOL bHide );
- void SelectEntry( USHORT nId );
+ void SelectEntry( USHORT nId );
BOOL HandleMenuActivateEvent( Menu *pMenu ) const;
BOOL HandleMenuDeActivateEvent( Menu *pMenu ) const;
BOOL HandleMenuHighlightEvent( Menu *pMenu, USHORT nEventId ) const;
BOOL HandleMenuCommandEvent( Menu *pMenu, USHORT nEventId ) const;
BOOL HandleMenuButtonEvent( Menu *pMenu, USHORT nEventId ) const;
- void SetCloserHdl( const Link& rLink ) { maCloserHdl = rLink; }
- const Link& GetCloserHdl() const { return maCloserHdl; }
- void SetFloatButtonClickHdl( const Link& rLink ) { maFloatHdl = rLink; }
- const Link& GetFloatButtonClickHdl() const { return maFloatHdl; }
- void SetHideButtonClickHdl( const Link& rLink ) { maHideHdl = rLink; }
- const Link& GetHideButtonClickHdl() const { return maHideHdl; }
+ void SetCloserHdl( const Link& rLink ) { maCloserHdl = rLink; }
+ const Link& GetCloserHdl() const { return maCloserHdl; }
+ void SetFloatButtonClickHdl( const Link& rLink ) { maFloatHdl = rLink; }
+ const Link& GetFloatButtonClickHdl() const { return maFloatHdl; }
+ void SetHideButtonClickHdl( const Link& rLink ) { maHideHdl = rLink; }
+ const Link& GetHideButtonClickHdl() const { return maHideHdl; }
// - by default a menubar is displayable
// - if a menubar is not displayable, its MenuBarWindow will never be shown
@@ -491,14 +491,14 @@ class VCL_DLLPUBLIC PopupMenu : public Menu
friend struct MenuItemData;
private:
- Menu** pRefAutoSubMenu; // keeps track if a pointer to this Menu is stored in the MenuItemData
+ Menu** pRefAutoSubMenu; // keeps track if a pointer to this Menu is stored in the MenuItemData
SAL_DLLPRIVATE MenuFloatingWindow* ImplGetFloatingWindow() const { return (MenuFloatingWindow*)Menu::ImplGetWindow(); }
protected:
SAL_DLLPRIVATE USHORT ImplExecute( Window* pWindow, const Rectangle& rRect, ULONG nPopupFlags, Menu* pStaredFrom, BOOL bPreSelectFirst );
- SAL_DLLPRIVATE long ImplCalcHeight( USHORT nEntries ) const;
- SAL_DLLPRIVATE USHORT ImplCalcVisEntries( long nMaxHeight, USHORT nStartEntry = 0, USHORT* pLastVisible = NULL ) const;
+ SAL_DLLPRIVATE long ImplCalcHeight( USHORT nEntries ) const;
+ SAL_DLLPRIVATE USHORT ImplCalcVisEntries( long nMaxHeight, USHORT nStartEntry = 0, USHORT* pLastVisible = NULL ) const;
public:
PopupMenu();
@@ -506,21 +506,21 @@ public:
PopupMenu( const ResId& rResId );
~PopupMenu();
- void SetText( const XubString& rTitle ) { aTitleText = rTitle; }
- const XubString& GetText() const { return aTitleText; }
+ void SetText( const XubString& rTitle ) { aTitleText = rTitle; }
+ const XubString& GetText() const { return aTitleText; }
- USHORT Execute( Window* pWindow, const Point& rPopupPos );
- USHORT Execute( Window* pWindow, const Rectangle& rRect, USHORT nFlags = 0 );
+ USHORT Execute( Window* pWindow, const Point& rPopupPos );
+ USHORT Execute( Window* pWindow, const Rectangle& rRect, USHORT nFlags = 0 );
// Fuer das TestTool
- void EndExecute( USHORT nSelect = 0 );
- void SelectEntry( USHORT nId );
+ void EndExecute( USHORT nSelect = 0 );
+ void SelectEntry( USHORT nId );
void SetSelectedEntry( USHORT nId ); // for use by native submenu only
- static BOOL IsInExecute();
- static PopupMenu* GetActivePopupMenu();
+ static BOOL IsInExecute();
+ static PopupMenu* GetActivePopupMenu();
- PopupMenu& operator =( const PopupMenu& rMenu );
+ PopupMenu& operator =( const PopupMenu& rMenu );
};
inline PopupMenu& PopupMenu::operator =( const PopupMenu& rMenu )
diff --git a/vcl/inc/vcl/menubtn.hxx b/vcl/inc/vcl/menubtn.hxx
index 588bdd4772cd..f55ffdffd206 100644
--- a/vcl/inc/vcl/menubtn.hxx
+++ b/vcl/inc/vcl/menubtn.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ class PopupMenu;
// - MenuButton-Types -
// --------------------
-#define MENUBUTTON_MENUMODE_TIMED ((USHORT)0x0001)
+#define MENUBUTTON_MENUMODE_TIMED ((USHORT)0x0001)
// --------------
// - MenuButton -
@@ -49,14 +49,14 @@ class PopupMenu;
class VCL_DLLPUBLIC MenuButton : public PushButton
{
private:
- Rectangle maFocusRect;
- Timer* mpMenuTimer;
- PopupMenu* mpOwnMenu;
- PopupMenu* mpMenu;
- USHORT mnCurItemId;
- USHORT mnMenuMode;
- Link maActivateHdl;
- Link maSelectHdl;
+ Rectangle maFocusRect;
+ Timer* mpMenuTimer;
+ PopupMenu* mpOwnMenu;
+ PopupMenu* mpMenu;
+ USHORT mnCurItemId;
+ USHORT mnMenuMode;
+ Link maActivateHdl;
+ Link maSelectHdl;
SAL_DLLPRIVATE void ImplInitMenuButtonData();
SAL_DLLPRIVATE void ImplExecuteMenu();
@@ -76,26 +76,26 @@ public:
MenuButton( Window* pParent, const ResId& rResId );
~MenuButton();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void Activate();
- virtual void Select();
+ virtual void Activate();
+ virtual void Select();
- void SetMenuMode( USHORT nMode );
- USHORT GetMenuMode() const { return mnMenuMode; }
+ void SetMenuMode( USHORT nMode );
+ USHORT GetMenuMode() const { return mnMenuMode; }
- void SetPopupMenu( PopupMenu* pNewMenu );
- PopupMenu* GetPopupMenu() const { return mpMenu; }
+ void SetPopupMenu( PopupMenu* pNewMenu );
+ PopupMenu* GetPopupMenu() const { return mpMenu; }
- USHORT GetCurItemId() const { return mnCurItemId; }
+ USHORT GetCurItemId() const { return mnCurItemId; }
- void SetActivateHdl( const Link& rLink ) { maActivateHdl = rLink; }
- const Link& GetActivateHdl() const { return maActivateHdl; }
- void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
- const Link& GetSelectHdl() const { return maSelectHdl; }
+ void SetActivateHdl( const Link& rLink ) { maActivateHdl = rLink; }
+ const Link& GetActivateHdl() const { return maActivateHdl; }
+ void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
+ const Link& GetSelectHdl() const { return maSelectHdl; }
};
-#endif // _SV_MENUBTN_HXX
+#endif // _SV_MENUBTN_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/metaact.hxx b/vcl/inc/vcl/metaact.hxx
index f507063982bb..5a85e3b7fbb3 100644
--- a/vcl/inc/vcl/metaact.hxx
+++ b/vcl/inc/vcl/metaact.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,91 +50,91 @@ class SvStream;
// - Defines -
// -----------
-#define META_NULL_ACTION (0)
-#define META_PIXEL_ACTION (100)
-#define META_POINT_ACTION (101)
-#define META_LINE_ACTION (102)
-#define META_RECT_ACTION (103)
-#define META_ROUNDRECT_ACTION (104)
-#define META_ELLIPSE_ACTION (105)
-#define META_ARC_ACTION (106)
-#define META_PIE_ACTION (107)
-#define META_CHORD_ACTION (108)
-#define META_POLYLINE_ACTION (109)
-#define META_POLYGON_ACTION (110)
-#define META_POLYPOLYGON_ACTION (111)
-#define META_TEXT_ACTION (112)
-#define META_TEXTARRAY_ACTION (113)
-#define META_STRETCHTEXT_ACTION (114)
-#define META_TEXTRECT_ACTION (115)
-#define META_BMP_ACTION (116)
-#define META_BMPSCALE_ACTION (117)
-#define META_BMPSCALEPART_ACTION (118)
-#define META_BMPEX_ACTION (119)
-#define META_BMPEXSCALE_ACTION (120)
-#define META_BMPEXSCALEPART_ACTION (121)
-#define META_MASK_ACTION (122)
-#define META_MASKSCALE_ACTION (123)
-#define META_MASKSCALEPART_ACTION (124)
-#define META_GRADIENT_ACTION (125)
-#define META_HATCH_ACTION (126)
-#define META_WALLPAPER_ACTION (127)
-#define META_CLIPREGION_ACTION (128)
-#define META_ISECTRECTCLIPREGION_ACTION (129)
-#define META_ISECTREGIONCLIPREGION_ACTION (130)
-#define META_MOVECLIPREGION_ACTION (131)
-#define META_LINECOLOR_ACTION (132)
-#define META_FILLCOLOR_ACTION (133)
-#define META_TEXTCOLOR_ACTION (134)
-#define META_TEXTFILLCOLOR_ACTION (135)
-#define META_TEXTALIGN_ACTION (136)
-#define META_MAPMODE_ACTION (137)
-#define META_FONT_ACTION (138)
-#define META_PUSH_ACTION (139)
-#define META_POP_ACTION (140)
-#define META_RASTEROP_ACTION (141)
-#define META_TRANSPARENT_ACTION (142)
-#define META_EPS_ACTION (143)
-#define META_REFPOINT_ACTION (144)
-#define META_TEXTLINECOLOR_ACTION (145)
-#define META_TEXTLINE_ACTION (146)
-#define META_FLOATTRANSPARENT_ACTION (147)
-#define META_GRADIENTEX_ACTION (148)
-#define META_LAYOUTMODE_ACTION (149)
-#define META_TEXTLANGUAGE_ACTION (150)
-#define META_OVERLINECOLOR_ACTION (151)
-
-#define META_COMMENT_ACTION (512)
+#define META_NULL_ACTION (0)
+#define META_PIXEL_ACTION (100)
+#define META_POINT_ACTION (101)
+#define META_LINE_ACTION (102)
+#define META_RECT_ACTION (103)
+#define META_ROUNDRECT_ACTION (104)
+#define META_ELLIPSE_ACTION (105)
+#define META_ARC_ACTION (106)
+#define META_PIE_ACTION (107)
+#define META_CHORD_ACTION (108)
+#define META_POLYLINE_ACTION (109)
+#define META_POLYGON_ACTION (110)
+#define META_POLYPOLYGON_ACTION (111)
+#define META_TEXT_ACTION (112)
+#define META_TEXTARRAY_ACTION (113)
+#define META_STRETCHTEXT_ACTION (114)
+#define META_TEXTRECT_ACTION (115)
+#define META_BMP_ACTION (116)
+#define META_BMPSCALE_ACTION (117)
+#define META_BMPSCALEPART_ACTION (118)
+#define META_BMPEX_ACTION (119)
+#define META_BMPEXSCALE_ACTION (120)
+#define META_BMPEXSCALEPART_ACTION (121)
+#define META_MASK_ACTION (122)
+#define META_MASKSCALE_ACTION (123)
+#define META_MASKSCALEPART_ACTION (124)
+#define META_GRADIENT_ACTION (125)
+#define META_HATCH_ACTION (126)
+#define META_WALLPAPER_ACTION (127)
+#define META_CLIPREGION_ACTION (128)
+#define META_ISECTRECTCLIPREGION_ACTION (129)
+#define META_ISECTREGIONCLIPREGION_ACTION (130)
+#define META_MOVECLIPREGION_ACTION (131)
+#define META_LINECOLOR_ACTION (132)
+#define META_FILLCOLOR_ACTION (133)
+#define META_TEXTCOLOR_ACTION (134)
+#define META_TEXTFILLCOLOR_ACTION (135)
+#define META_TEXTALIGN_ACTION (136)
+#define META_MAPMODE_ACTION (137)
+#define META_FONT_ACTION (138)
+#define META_PUSH_ACTION (139)
+#define META_POP_ACTION (140)
+#define META_RASTEROP_ACTION (141)
+#define META_TRANSPARENT_ACTION (142)
+#define META_EPS_ACTION (143)
+#define META_REFPOINT_ACTION (144)
+#define META_TEXTLINECOLOR_ACTION (145)
+#define META_TEXTLINE_ACTION (146)
+#define META_FLOATTRANSPARENT_ACTION (147)
+#define META_GRADIENTEX_ACTION (148)
+#define META_LAYOUTMODE_ACTION (149)
+#define META_TEXTLANGUAGE_ACTION (150)
+#define META_OVERLINECOLOR_ACTION (151)
+
+#define META_COMMENT_ACTION (512)
// ------------------------------------------------------------------------
struct ImplMetaReadData
{
- rtl_TextEncoding meActualCharSet;
+ rtl_TextEncoding meActualCharSet;
};
// ------------------------------------------------------------------------
struct ImplMetaWriteData
{
- rtl_TextEncoding meActualCharSet;
+ rtl_TextEncoding meActualCharSet;
};
// ------------------------------------------------------------------------
-#define DECL_META_ACTION( Name, nType ) \
- Meta##Name##Action(); \
+#define DECL_META_ACTION( Name, nType ) \
+ Meta##Name##Action(); \
protected: \
- virtual ~Meta##Name##Action(); \
+ virtual ~Meta##Name##Action(); \
public: \
- virtual void Execute( OutputDevice* pOut ); \
- virtual MetaAction* Clone(); \
- virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData ); \
- virtual void Read( SvStream& rIStm, ImplMetaReadData* pData );
-
-#define IMPL_META_ACTION( Name, nType ) \
-Meta##Name##Action::Meta##Name##Action() : \
- MetaAction( nType ) {} \
+ virtual void Execute( OutputDevice* pOut ); \
+ virtual MetaAction* Clone(); \
+ virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData ); \
+ virtual void Read( SvStream& rIStm, ImplMetaReadData* pData );
+
+#define IMPL_META_ACTION( Name, nType ) \
+Meta##Name##Action::Meta##Name##Action() : \
+ MetaAction( nType ) {} \
Meta##Name##Action::~Meta##Name##Action() {}
// --------------
@@ -144,38 +144,38 @@ Meta##Name##Action::~Meta##Name##Action() {}
class VCL_DLLPUBLIC MetaAction
{
private:
- ULONG mnRefCount;
- UINT16 mnType;
+ ULONG mnRefCount;
+ UINT16 mnType;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
protected:
- virtual ~MetaAction();
+ virtual ~MetaAction();
public:
MetaAction();
MetaAction( USHORT nType );
- virtual void Execute( OutputDevice* pOut );
+ virtual void Execute( OutputDevice* pOut );
virtual MetaAction* Clone();
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData );
- virtual void Read( SvStream& rIStm, ImplMetaReadData* pData );
+ virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData );
+ virtual void Read( SvStream& rIStm, ImplMetaReadData* pData );
- sal_Bool IsEqual( const MetaAction& ) const;
+ sal_Bool IsEqual( const MetaAction& ) const;
- USHORT GetType() const { return mnType; }
- ULONG GetRefCount() const { return mnRefCount; }
- void ResetRefCount() { mnRefCount = 1; }
- void Duplicate() { mnRefCount++; }
- void Delete() { if ( 0 == --mnRefCount ) delete this; }
+ USHORT GetType() const { return mnType; }
+ ULONG GetRefCount() const { return mnRefCount; }
+ void ResetRefCount() { mnRefCount = 1; }
+ void Duplicate() { mnRefCount++; }
+ void Delete() { if ( 0 == --mnRefCount ) delete this; }
public:
- static MetaAction* ReadMetaAction( SvStream& rIStm, ImplMetaReadData* pData );
+ static MetaAction* ReadMetaAction( SvStream& rIStm, ImplMetaReadData* pData );
};
// -------------------
@@ -185,21 +185,21 @@ public:
class VCL_DLLPUBLIC MetaPixelAction : public MetaAction
{
private:
- Point maPt;
- Color maColor;
+ Point maPt;
+ Color maColor;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Pixel, META_PIXEL_ACTION )
MetaPixelAction( const Point& rPt, const Color& rColor );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Point& GetPoint() const { return maPt; }
- const Color& GetColor() const { return maColor; }
+ const Point& GetPoint() const { return maPt; }
+ const Color& GetColor() const { return maColor; }
};
// -------------------
@@ -209,19 +209,19 @@ public:
class VCL_DLLPUBLIC MetaPointAction : public MetaAction
{
private:
- Point maPt;
+ Point maPt;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Point, META_POINT_ACTION )
MetaPointAction( const Point& rPt );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Point& GetPoint() const { return maPt; }
+ const Point& GetPoint() const { return maPt; }
};
// ------------------
@@ -232,11 +232,11 @@ class VCL_DLLPUBLIC MetaLineAction : public MetaAction
{
private:
- LineInfo maLineInfo;
- Point maStartPt;
- Point maEndPt;
+ LineInfo maLineInfo;
+ Point maStartPt;
+ Point maEndPt;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Line, META_LINE_ACTION )
@@ -245,12 +245,12 @@ public:
MetaLineAction( const Point& rStart, const Point& rEnd,
const LineInfo& rLineInfo );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Point& GetStartPoint() const { return maStartPt; }
- const Point& GetEndPoint() const { return maEndPt; }
- const LineInfo& GetLineInfo() const { return maLineInfo; }
+ const Point& GetStartPoint() const { return maStartPt; }
+ const Point& GetEndPoint() const { return maEndPt; }
+ const LineInfo& GetLineInfo() const { return maLineInfo; }
};
// ------------------
@@ -261,18 +261,18 @@ class VCL_DLLPUBLIC MetaRectAction : public MetaAction
{
private:
- Rectangle maRect;
+ Rectangle maRect;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Rect, META_RECT_ACTION )
MetaRectAction( const Rectangle& rRect );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
+ const Rectangle& GetRect() const { return maRect; }
};
// -----------------------
@@ -283,11 +283,11 @@ class VCL_DLLPUBLIC MetaRoundRectAction : public MetaAction
{
private:
- Rectangle maRect;
- sal_uInt32 mnHorzRound;
- sal_uInt32 mnVertRound;
+ Rectangle maRect;
+ sal_uInt32 mnHorzRound;
+ sal_uInt32 mnVertRound;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( RoundRect, META_ROUNDRECT_ACTION )
@@ -295,12 +295,12 @@ public:
MetaRoundRectAction( const Rectangle& rRect,
sal_uInt32 nHorzRound, sal_uInt32 nVertRound );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
- sal_uInt32 GetHorzRound() const { return mnHorzRound; }
- sal_uInt32 GetVertRound() const { return mnVertRound; }
+ const Rectangle& GetRect() const { return maRect; }
+ sal_uInt32 GetHorzRound() const { return mnHorzRound; }
+ sal_uInt32 GetVertRound() const { return mnVertRound; }
};
// ---------------------
@@ -311,19 +311,19 @@ class VCL_DLLPUBLIC MetaEllipseAction : public MetaAction
{
private:
- Rectangle maRect;
+ Rectangle maRect;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Ellipse, META_ELLIPSE_ACTION )
MetaEllipseAction( const Rectangle& rRect );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
+ const Rectangle& GetRect() const { return maRect; }
};
// -----------------
@@ -334,11 +334,11 @@ class VCL_DLLPUBLIC MetaArcAction : public MetaAction
{
private:
- Rectangle maRect;
- Point maStartPt;
- Point maEndPt;
+ Rectangle maRect;
+ Point maStartPt;
+ Point maEndPt;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Arc, META_ARC_ACTION )
@@ -346,12 +346,12 @@ public:
MetaArcAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
- const Point& GetStartPoint() const { return maStartPt; }
- const Point& GetEndPoint() const { return maEndPt; }
+ const Rectangle& GetRect() const { return maRect; }
+ const Point& GetStartPoint() const { return maStartPt; }
+ const Point& GetEndPoint() const { return maEndPt; }
};
// -----------------
@@ -362,11 +362,11 @@ class VCL_DLLPUBLIC MetaPieAction : public MetaAction
{
private:
- Rectangle maRect;
- Point maStartPt;
- Point maEndPt;
+ Rectangle maRect;
+ Point maStartPt;
+ Point maEndPt;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Pie, META_PIE_ACTION )
@@ -374,12 +374,12 @@ public:
MetaPieAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
- const Point& GetStartPoint() const { return maStartPt; }
- const Point& GetEndPoint() const { return maEndPt; }
+ const Rectangle& GetRect() const { return maRect; }
+ const Point& GetStartPoint() const { return maStartPt; }
+ const Point& GetEndPoint() const { return maEndPt; }
};
// -------------------
@@ -390,11 +390,11 @@ class VCL_DLLPUBLIC MetaChordAction : public MetaAction
{
private:
- Rectangle maRect;
- Point maStartPt;
- Point maEndPt;
+ Rectangle maRect;
+ Point maStartPt;
+ Point maEndPt;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Chord, META_CHORD_ACTION )
@@ -402,12 +402,12 @@ public:
MetaChordAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
- const Point& GetStartPoint() const { return maStartPt; }
- const Point& GetEndPoint() const { return maEndPt; }
+ const Rectangle& GetRect() const { return maRect; }
+ const Point& GetStartPoint() const { return maStartPt; }
+ const Point& GetEndPoint() const { return maEndPt; }
};
// ----------------------
@@ -418,10 +418,10 @@ class VCL_DLLPUBLIC MetaPolyLineAction : public MetaAction
{
private:
- LineInfo maLineInfo;
- Polygon maPoly;
+ LineInfo maLineInfo;
+ Polygon maPoly;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( PolyLine, META_POLYLINE_ACTION )
@@ -429,11 +429,11 @@ public:
MetaPolyLineAction( const Polygon& rPoly );
MetaPolyLineAction( const Polygon& rPoly, const LineInfo& rLineInfo );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Polygon& GetPolygon() const { return maPoly; }
- const LineInfo& GetLineInfo() const { return maLineInfo; }
+ const Polygon& GetPolygon() const { return maPoly; }
+ const LineInfo& GetLineInfo() const { return maLineInfo; }
};
// ---------------------
@@ -444,19 +444,19 @@ class VCL_DLLPUBLIC MetaPolygonAction : public MetaAction
{
private:
- Polygon maPoly;
+ Polygon maPoly;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Polygon, META_POLYGON_ACTION )
MetaPolygonAction( const Polygon& rPoly );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Polygon& GetPolygon() const { return maPoly; }
+ const Polygon& GetPolygon() const { return maPoly; }
};
// -------------------------
@@ -467,19 +467,19 @@ class VCL_DLLPUBLIC MetaPolyPolygonAction : public MetaAction
{
private:
- PolyPolygon maPolyPoly;
+ PolyPolygon maPolyPoly;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( PolyPolygon, META_POLYPOLYGON_ACTION )
MetaPolyPolygonAction( const PolyPolygon& rPolyPoly );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
+ const PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
};
// ------------------
@@ -490,12 +490,12 @@ class VCL_DLLPUBLIC MetaTextAction : public MetaAction
{
private:
- Point maPt;
- XubString maStr;
- USHORT mnIndex;
- USHORT mnLen;
+ Point maPt;
+ XubString maStr;
+ USHORT mnIndex;
+ USHORT mnLen;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Text, META_TEXT_ACTION )
@@ -503,13 +503,13 @@ public:
MetaTextAction( const Point& rPt, const XubString& rStr,
USHORT nIndex, USHORT nLen );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Point& GetPoint() const { return maPt; }
- const XubString& GetText() const { return maStr; }
- USHORT GetIndex() const { return mnIndex; }
- USHORT GetLen() const { return mnLen; }
+ const Point& GetPoint() const { return maPt; }
+ const XubString& GetText() const { return maStr; }
+ USHORT GetIndex() const { return mnIndex; }
+ USHORT GetLen() const { return mnLen; }
};
// -----------------------
@@ -520,16 +520,16 @@ class VCL_DLLPUBLIC MetaTextArrayAction : public MetaAction
{
private:
- Point maStartPt;
- XubString maStr;
- sal_Int32* mpDXAry;
- USHORT mnIndex;
- USHORT mnLen;
+ Point maStartPt;
+ XubString maStr;
+ sal_Int32* mpDXAry;
+ USHORT mnIndex;
+ USHORT mnLen;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
protected:
- virtual ~MetaTextArrayAction();
+ virtual ~MetaTextArrayAction();
public:
MetaTextArrayAction();
@@ -540,21 +540,21 @@ public:
USHORT nIndex,
USHORT nLen );
- virtual void Execute( OutputDevice* pOut );
+ virtual void Execute( OutputDevice* pOut );
virtual MetaAction* Clone();
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData );
- virtual void Read( SvStream& rIStm, ImplMetaReadData* pData );
+ virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData );
+ virtual void Read( SvStream& rIStm, ImplMetaReadData* pData );
- const Point& GetPoint() const { return maStartPt; }
- const XubString& GetText() const { return maStr; }
- USHORT GetIndex() const { return mnIndex; }
- USHORT GetLen() const { return mnLen; }
- sal_Int32* GetDXArray() const { return mpDXAry; }
+ const Point& GetPoint() const { return maStartPt; }
+ const XubString& GetText() const { return maStr; }
+ USHORT GetIndex() const { return mnIndex; }
+ USHORT GetLen() const { return mnLen; }
+ sal_Int32* GetDXArray() const { return mpDXAry; }
};
// -------------------------
@@ -565,13 +565,13 @@ class VCL_DLLPUBLIC MetaStretchTextAction : public MetaAction
{
private:
- Point maPt;
- XubString maStr;
- sal_uInt32 mnWidth;
- USHORT mnIndex;
- USHORT mnLen;
+ Point maPt;
+ XubString maStr;
+ sal_uInt32 mnWidth;
+ USHORT mnIndex;
+ USHORT mnLen;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( StretchText, META_STRETCHTEXT_ACTION )
@@ -580,14 +580,14 @@ public:
const XubString& rStr,
USHORT nIndex, USHORT nLen );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Point& GetPoint() const { return maPt; }
- const XubString& GetText() const { return maStr; }
- sal_uInt32 GetWidth() const { return mnWidth; }
- USHORT GetIndex() const { return mnIndex; }
- USHORT GetLen() const { return mnLen; }
+ const Point& GetPoint() const { return maPt; }
+ const XubString& GetText() const { return maStr; }
+ sal_uInt32 GetWidth() const { return mnWidth; }
+ USHORT GetIndex() const { return mnIndex; }
+ USHORT GetLen() const { return mnLen; }
};
// ----------------------
@@ -598,11 +598,11 @@ class VCL_DLLPUBLIC MetaTextRectAction : public MetaAction
{
private:
- Rectangle maRect;
- XubString maStr;
- USHORT mnStyle;
+ Rectangle maRect;
+ XubString maStr;
+ USHORT mnStyle;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( TextRect, META_TEXTRECT_ACTION )
@@ -610,12 +610,12 @@ public:
MetaTextRectAction( const Rectangle& rRect,
const XubString& rStr, USHORT nStyle );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
- const XubString& GetText() const { return maStr; }
- USHORT GetStyle() const { return mnStyle; }
+ const Rectangle& GetRect() const { return maRect; }
+ const XubString& GetText() const { return maStr; }
+ USHORT GetStyle() const { return mnStyle; }
};
// ----------------------
@@ -626,13 +626,13 @@ class VCL_DLLPUBLIC MetaTextLineAction : public MetaAction
{
private:
- Point maPos;
- long mnWidth;
- FontStrikeout meStrikeout;
- FontUnderline meUnderline;
- FontUnderline meOverline;
+ Point maPos;
+ long mnWidth;
+ FontStrikeout meStrikeout;
+ FontUnderline meUnderline;
+ FontUnderline meOverline;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( TextLine, META_TEXTLINE_ACTION )
@@ -641,14 +641,14 @@ public:
FontStrikeout eStrikeout,
FontUnderline eUnderline,
FontUnderline eOverline );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
-
- const Point& GetStartPoint() const { return maPos; }
- long GetWidth() const { return mnWidth; }
- FontStrikeout GetStrikeout() const { return meStrikeout; }
- FontUnderline GetUnderline() const { return meUnderline; }
- FontUnderline GetOverline() const { return meOverline; }
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
+
+ const Point& GetStartPoint() const { return maPos; }
+ long GetWidth() const { return mnWidth; }
+ FontStrikeout GetStrikeout() const { return meStrikeout; }
+ FontUnderline GetUnderline() const { return meUnderline; }
+ FontUnderline GetOverline() const { return meOverline; }
};
// -----------------
@@ -659,21 +659,21 @@ class VCL_DLLPUBLIC MetaBmpAction : public MetaAction
{
private:
- Bitmap maBmp;
- Point maPt;
+ Bitmap maBmp;
+ Point maPt;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Bmp, META_BMP_ACTION )
MetaBmpAction( const Point& rPt, const Bitmap& rBmp );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Bitmap& GetBitmap() const { return maBmp; }
- const Point& GetPoint() const { return maPt; }
+ const Bitmap& GetBitmap() const { return maBmp; }
+ const Point& GetPoint() const { return maPt; }
};
// ----------------------
@@ -684,11 +684,11 @@ class VCL_DLLPUBLIC MetaBmpScaleAction : public MetaAction
{
private:
- Bitmap maBmp;
- Point maPt;
- Size maSz;
+ Bitmap maBmp;
+ Point maPt;
+ Size maSz;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( BmpScale, META_BMPSCALE_ACTION )
@@ -696,12 +696,12 @@ public:
MetaBmpScaleAction( const Point& rPt, const Size& rSz,
const Bitmap& rBmp );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Bitmap& GetBitmap() const { return maBmp; }
- const Point& GetPoint() const { return maPt; }
- const Size& GetSize() const { return maSz; }
+ const Bitmap& GetBitmap() const { return maBmp; }
+ const Point& GetPoint() const { return maPt; }
+ const Size& GetSize() const { return maSz; }
};
// --------------------------
@@ -712,13 +712,13 @@ class VCL_DLLPUBLIC MetaBmpScalePartAction : public MetaAction
{
private:
- Bitmap maBmp;
- Point maDstPt;
- Size maDstSz;
- Point maSrcPt;
- Size maSrcSz;
+ Bitmap maBmp;
+ Point maDstPt;
+ Size maDstSz;
+ Point maSrcPt;
+ Size maSrcSz;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( BmpScalePart, META_BMPSCALEPART_ACTION )
@@ -727,14 +727,14 @@ public:
const Point& rSrcPt, const Size& rSrcSz,
const Bitmap& rBmp );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Bitmap& GetBitmap() const { return maBmp; }
- const Point& GetDestPoint() const { return maDstPt; }
- const Size& GetDestSize() const { return maDstSz; }
- const Point& GetSrcPoint() const { return maSrcPt; }
- const Size& GetSrcSize() const { return maSrcSz; }
+ const Bitmap& GetBitmap() const { return maBmp; }
+ const Point& GetDestPoint() const { return maDstPt; }
+ const Size& GetDestSize() const { return maDstSz; }
+ const Point& GetSrcPoint() const { return maSrcPt; }
+ const Size& GetSrcSize() const { return maSrcSz; }
};
// -----------------
@@ -745,21 +745,21 @@ class VCL_DLLPUBLIC MetaBmpExAction : public MetaAction
{
private:
- BitmapEx maBmpEx;
- Point maPt;
+ BitmapEx maBmpEx;
+ Point maPt;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( BmpEx, META_BMPEX_ACTION )
MetaBmpExAction( const Point& rPt, const BitmapEx& rBmpEx );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const BitmapEx& GetBitmapEx() const { return maBmpEx; }
- const Point& GetPoint() const { return maPt; }
+ const BitmapEx& GetBitmapEx() const { return maBmpEx; }
+ const Point& GetPoint() const { return maPt; }
};
// ----------------------
@@ -770,11 +770,11 @@ class VCL_DLLPUBLIC MetaBmpExScaleAction : public MetaAction
{
private:
- BitmapEx maBmpEx;
- Point maPt;
- Size maSz;
+ BitmapEx maBmpEx;
+ Point maPt;
+ Size maSz;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( BmpExScale, META_BMPEXSCALE_ACTION )
@@ -782,12 +782,12 @@ public:
MetaBmpExScaleAction( const Point& rPt, const Size& rSz,
const BitmapEx& rBmpEx ) ;
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const BitmapEx& GetBitmapEx() const { return maBmpEx; }
- const Point& GetPoint() const { return maPt; }
- const Size& GetSize() const { return maSz; }
+ const BitmapEx& GetBitmapEx() const { return maBmpEx; }
+ const Point& GetPoint() const { return maPt; }
+ const Size& GetSize() const { return maSz; }
};
// ----------------------------
@@ -798,13 +798,13 @@ class VCL_DLLPUBLIC MetaBmpExScalePartAction : public MetaAction
{
private:
- BitmapEx maBmpEx;
- Point maDstPt;
- Size maDstSz;
- Point maSrcPt;
- Size maSrcSz;
+ BitmapEx maBmpEx;
+ Point maDstPt;
+ Size maDstSz;
+ Point maSrcPt;
+ Size maSrcSz;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( BmpExScalePart, META_BMPEXSCALEPART_ACTION )
@@ -813,14 +813,14 @@ public:
const Point& rSrcPt, const Size& rSrcSz,
const BitmapEx& rBmpEx );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const BitmapEx& GetBitmapEx() const { return maBmpEx; }
- const Point& GetDestPoint() const { return maDstPt; }
- const Size& GetDestSize() const { return maDstSz; }
- const Point& GetSrcPoint() const { return maSrcPt; }
- const Size& GetSrcSize() const { return maSrcSz; }
+ const BitmapEx& GetBitmapEx() const { return maBmpEx; }
+ const Point& GetDestPoint() const { return maDstPt; }
+ const Size& GetDestSize() const { return maDstSz; }
+ const Point& GetSrcPoint() const { return maSrcPt; }
+ const Size& GetSrcSize() const { return maSrcSz; }
};
// ------------------
@@ -831,11 +831,11 @@ class VCL_DLLPUBLIC MetaMaskAction : public MetaAction
{
private:
- Bitmap maBmp;
- Color maColor;
- Point maPt;
+ Bitmap maBmp;
+ Color maColor;
+ Point maPt;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Mask, META_MASK_ACTION )
@@ -844,12 +844,12 @@ public:
const Bitmap& rBmp,
const Color& rColor );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Bitmap& GetBitmap() const { return maBmp; }
- const Color& GetColor() const { return maColor; }
- const Point& GetPoint() const { return maPt; }
+ const Bitmap& GetBitmap() const { return maBmp; }
+ const Color& GetColor() const { return maColor; }
+ const Point& GetPoint() const { return maPt; }
};
// -----------------------
@@ -860,12 +860,12 @@ class VCL_DLLPUBLIC MetaMaskScaleAction : public MetaAction
{
private:
- Bitmap maBmp;
- Color maColor;
- Point maPt;
- Size maSz;
+ Bitmap maBmp;
+ Color maColor;
+ Point maPt;
+ Size maSz;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( MaskScale, META_MASKSCALE_ACTION )
@@ -874,13 +874,13 @@ public:
const Bitmap& rBmp,
const Color& rColor );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Bitmap& GetBitmap() const { return maBmp; }
- const Color& GetColor() const { return maColor; }
- const Point& GetPoint() const { return maPt; }
- const Size& GetSize() const { return maSz; }
+ const Bitmap& GetBitmap() const { return maBmp; }
+ const Color& GetColor() const { return maColor; }
+ const Point& GetPoint() const { return maPt; }
+ const Size& GetSize() const { return maSz; }
};
// ---------------------------
@@ -891,14 +891,14 @@ class VCL_DLLPUBLIC MetaMaskScalePartAction : public MetaAction
{
private:
- Bitmap maBmp;
- Color maColor;
- Point maDstPt;
- Size maDstSz;
- Point maSrcPt;
- Size maSrcSz;
+ Bitmap maBmp;
+ Color maColor;
+ Point maDstPt;
+ Size maDstSz;
+ Point maSrcPt;
+ Size maSrcSz;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( MaskScalePart, META_MASKSCALEPART_ACTION )
@@ -908,15 +908,15 @@ public:
const Bitmap& rBmp,
const Color& rColor );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Bitmap& GetBitmap() const { return maBmp; }
- const Color& GetColor() const { return maColor; }
- const Point& GetDestPoint() const { return maDstPt; }
- const Size& GetDestSize() const { return maDstSz; }
- const Point& GetSrcPoint() const { return maSrcPt; }
- const Size& GetSrcSize() const { return maSrcSz; }
+ const Bitmap& GetBitmap() const { return maBmp; }
+ const Color& GetColor() const { return maColor; }
+ const Point& GetDestPoint() const { return maDstPt; }
+ const Size& GetDestSize() const { return maDstSz; }
+ const Point& GetSrcPoint() const { return maSrcPt; }
+ const Size& GetSrcSize() const { return maSrcSz; }
};
// ----------------------
@@ -927,21 +927,21 @@ class VCL_DLLPUBLIC MetaGradientAction : public MetaAction
{
private:
- Rectangle maRect;
- Gradient maGradient;
+ Rectangle maRect;
+ Gradient maGradient;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Gradient, META_GRADIENT_ACTION )
MetaGradientAction( const Rectangle& rRect, const Gradient& rGradient );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
- const Gradient& GetGradient() const { return maGradient; }
+ const Rectangle& GetRect() const { return maRect; }
+ const Gradient& GetGradient() const { return maGradient; }
};
// ------------------------
@@ -952,21 +952,21 @@ class VCL_DLLPUBLIC MetaGradientExAction : public MetaAction
{
private:
- PolyPolygon maPolyPoly;
- Gradient maGradient;
+ PolyPolygon maPolyPoly;
+ Gradient maGradient;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( GradientEx, META_GRADIENTEX_ACTION )
MetaGradientExAction( const PolyPolygon& rPolyPoly, const Gradient& rGradient );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
- const Gradient& GetGradient() const { return maGradient; }
+ const PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
+ const Gradient& GetGradient() const { return maGradient; }
};
// -------------------
@@ -977,21 +977,21 @@ class VCL_DLLPUBLIC MetaHatchAction : public MetaAction
{
private:
- PolyPolygon maPolyPoly;
- Hatch maHatch;
+ PolyPolygon maPolyPoly;
+ Hatch maHatch;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Hatch, META_HATCH_ACTION )
MetaHatchAction( const PolyPolygon& rPolyPoly, const Hatch& rHatch );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
- const Hatch& GetHatch() const { return maHatch; }
+ const PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
+ const Hatch& GetHatch() const { return maHatch; }
};
// -----------------------
@@ -1002,10 +1002,10 @@ class VCL_DLLPUBLIC MetaWallpaperAction : public MetaAction
{
private:
- Rectangle maRect;
- Wallpaper maWallpaper;
+ Rectangle maRect;
+ Wallpaper maWallpaper;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Wallpaper, META_WALLPAPER_ACTION )
@@ -1013,11 +1013,11 @@ public:
MetaWallpaperAction( const Rectangle& rRect,
const Wallpaper& rPaper );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
- const Wallpaper& GetWallpaper() const { return maWallpaper; }
+ const Rectangle& GetRect() const { return maRect; }
+ const Wallpaper& GetWallpaper() const { return maWallpaper; }
};
// ------------------------
@@ -1028,21 +1028,21 @@ class VCL_DLLPUBLIC MetaClipRegionAction : public MetaAction
{
private:
- Region maRegion;
- BOOL mbClip;
+ Region maRegion;
+ BOOL mbClip;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( ClipRegion, META_CLIPREGION_ACTION )
MetaClipRegionAction( const Region& rRegion, BOOL bClip );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Region& GetRegion() const { return maRegion; }
- BOOL IsClipping() const { return mbClip; }
+ const Region& GetRegion() const { return maRegion; }
+ BOOL IsClipping() const { return mbClip; }
};
// ---------------------------------
@@ -1053,19 +1053,19 @@ class VCL_DLLPUBLIC MetaISectRectClipRegionAction : public MetaAction
{
private:
- Rectangle maRect;
+ Rectangle maRect;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( ISectRectClipRegion, META_ISECTRECTCLIPREGION_ACTION )
MetaISectRectClipRegionAction( const Rectangle& rRect );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Rectangle& GetRect() const { return maRect; }
+ const Rectangle& GetRect() const { return maRect; }
};
// -----------------------------------
@@ -1076,19 +1076,19 @@ class VCL_DLLPUBLIC MetaISectRegionClipRegionAction : public MetaAction
{
private:
- Region maRegion;
+ Region maRegion;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( ISectRegionClipRegion, META_ISECTREGIONCLIPREGION_ACTION )
MetaISectRegionClipRegionAction( const Region& rRegion );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Region& GetRegion() const { return maRegion; }
+ const Region& GetRegion() const { return maRegion; }
};
// ----------------------------
@@ -1099,20 +1099,20 @@ class VCL_DLLPUBLIC MetaMoveClipRegionAction : public MetaAction
{
private:
- long mnHorzMove;
- long mnVertMove;
+ long mnHorzMove;
+ long mnVertMove;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( MoveClipRegion, META_MOVECLIPREGION_ACTION )
MetaMoveClipRegionAction( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Scale( double fScaleX, double fScaleY );
- long GetHorzMove() const { return mnHorzMove; }
- long GetVertMove() const { return mnVertMove; }
+ long GetHorzMove() const { return mnHorzMove; }
+ long GetVertMove() const { return mnVertMove; }
};
// -----------------------
@@ -1123,18 +1123,18 @@ class VCL_DLLPUBLIC MetaLineColorAction : public MetaAction
{
private:
- Color maColor;
- BOOL mbSet;
+ Color maColor;
+ BOOL mbSet;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( LineColor, META_LINECOLOR_ACTION )
MetaLineColorAction( const Color& rColor, BOOL bSet );
- const Color& GetColor() const { return maColor; }
- BOOL IsSetting() const { return mbSet; }
+ const Color& GetColor() const { return maColor; }
+ BOOL IsSetting() const { return mbSet; }
};
// -----------------------
@@ -1145,18 +1145,18 @@ class VCL_DLLPUBLIC MetaFillColorAction : public MetaAction
{
private:
- Color maColor;
- BOOL mbSet;
+ Color maColor;
+ BOOL mbSet;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( FillColor, META_FILLCOLOR_ACTION )
MetaFillColorAction( const Color& rColor, BOOL bSet );
- const Color& GetColor() const { return maColor; }
- BOOL IsSetting() const { return mbSet; }
+ const Color& GetColor() const { return maColor; }
+ BOOL IsSetting() const { return mbSet; }
};
// -----------------------
@@ -1167,16 +1167,16 @@ class VCL_DLLPUBLIC MetaTextColorAction : public MetaAction
{
private:
- Color maColor;
+ Color maColor;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( TextColor, META_TEXTCOLOR_ACTION )
MetaTextColorAction( const Color& rColor );
- const Color& GetColor() const { return maColor; }
+ const Color& GetColor() const { return maColor; }
};
// ---------------------------
@@ -1187,18 +1187,18 @@ class VCL_DLLPUBLIC MetaTextFillColorAction : public MetaAction
{
private:
- Color maColor;
- BOOL mbSet;
+ Color maColor;
+ BOOL mbSet;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( TextFillColor, META_TEXTFILLCOLOR_ACTION )
MetaTextFillColorAction( const Color& rColor, BOOL bSet );
- const Color& GetColor() const { return maColor; }
- BOOL IsSetting() const { return mbSet; }
+ const Color& GetColor() const { return maColor; }
+ BOOL IsSetting() const { return mbSet; }
};
// ---------------------------
@@ -1209,18 +1209,18 @@ class VCL_DLLPUBLIC MetaTextLineColorAction : public MetaAction
{
private:
- Color maColor;
- BOOL mbSet;
+ Color maColor;
+ BOOL mbSet;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( TextLineColor, META_TEXTLINECOLOR_ACTION )
MetaTextLineColorAction( const Color& rColor, BOOL bSet );
- const Color& GetColor() const { return maColor; }
- BOOL IsSetting() const { return mbSet; }
+ const Color& GetColor() const { return maColor; }
+ BOOL IsSetting() const { return mbSet; }
};
// ---------------------------
@@ -1231,18 +1231,18 @@ class VCL_DLLPUBLIC MetaOverlineColorAction : public MetaAction
{
private:
- Color maColor;
- BOOL mbSet;
+ Color maColor;
+ BOOL mbSet;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( OverlineColor, META_OVERLINECOLOR_ACTION )
MetaOverlineColorAction( const Color& rColor, BOOL bSet );
- const Color& GetColor() const { return maColor; }
- BOOL IsSetting() const { return mbSet; }
+ const Color& GetColor() const { return maColor; }
+ BOOL IsSetting() const { return mbSet; }
};
// -----------------------
@@ -1253,16 +1253,16 @@ class VCL_DLLPUBLIC MetaTextAlignAction : public MetaAction
{
private:
- TextAlign maAlign;
+ TextAlign maAlign;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( TextAlign, META_TEXTALIGN_ACTION )
MetaTextAlignAction( TextAlign aAlign );
- TextAlign GetTextAlign() const { return maAlign; }
+ TextAlign GetTextAlign() const { return maAlign; }
};
// ---------------------
@@ -1273,18 +1273,18 @@ class VCL_DLLPUBLIC MetaMapModeAction : public MetaAction
{
private:
- MapMode maMapMode;
+ MapMode maMapMode;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( MapMode, META_MAPMODE_ACTION )
MetaMapModeAction( const MapMode& rMapMode );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Scale( double fScaleX, double fScaleY );
- const MapMode& GetMapMode() const { return maMapMode; }
+ const MapMode& GetMapMode() const { return maMapMode; }
};
// ---------------------
@@ -1295,18 +1295,18 @@ class VCL_DLLPUBLIC MetaFontAction : public MetaAction
{
private:
- Font maFont;
+ Font maFont;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Font, META_FONT_ACTION )
MetaFontAction( const Font& rFont );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Scale( double fScaleX, double fScaleY );
- const Font& GetFont() const { return maFont; }
+ const Font& GetFont() const { return maFont; }
};
// ------------------
@@ -1317,16 +1317,16 @@ class VCL_DLLPUBLIC MetaPushAction : public MetaAction
{
private:
- USHORT mnFlags;
+ USHORT mnFlags;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Push, META_PUSH_ACTION )
MetaPushAction( USHORT nFlags );
- USHORT GetFlags() const { return mnFlags; }
+ USHORT GetFlags() const { return mnFlags; }
};
// -----------------
@@ -1348,16 +1348,16 @@ class VCL_DLLPUBLIC MetaRasterOpAction : public MetaAction
{
private:
- RasterOp meRasterOp;
+ RasterOp meRasterOp;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( RasterOp, META_RASTEROP_ACTION )
MetaRasterOpAction( RasterOp eRasterOp );
- RasterOp GetRasterOp() const { return meRasterOp; }
+ RasterOp GetRasterOp() const { return meRasterOp; }
};
// -------------------------
@@ -1368,21 +1368,21 @@ class VCL_DLLPUBLIC MetaTransparentAction : public MetaAction
{
private:
- PolyPolygon maPolyPoly;
- USHORT mnTransPercent;
+ PolyPolygon maPolyPoly;
+ USHORT mnTransPercent;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( Transparent, META_TRANSPARENT_ACTION )
MetaTransparentAction( const PolyPolygon& rPolyPoly, USHORT nTransPercent );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
- USHORT GetTransparence() const { return mnTransPercent; }
+ const PolyPolygon& GetPolyPolygon() const { return maPolyPoly; }
+ USHORT GetTransparence() const { return mnTransPercent; }
};
// ------------------------------
@@ -1393,12 +1393,12 @@ class VCL_DLLPUBLIC MetaFloatTransparentAction : public MetaAction
{
private:
- GDIMetaFile maMtf;
- Point maPoint;
- Size maSize;
- Gradient maGradient;
+ GDIMetaFile maMtf;
+ Point maPoint;
+ Size maSize;
+ Gradient maGradient;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( FloatTransparent, META_FLOATTRANSPARENT_ACTION )
@@ -1406,13 +1406,13 @@ public:
MetaFloatTransparentAction( const GDIMetaFile& rMtf, const Point& rPos,
const Size& rSize, const Gradient& rGradient );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const GDIMetaFile& GetGDIMetaFile() const { return maMtf; }
- const Point& GetPoint() const { return maPoint; }
- const Size& GetSize() const { return maSize; }
- const Gradient& GetGradient() const { return maGradient; }
+ const GDIMetaFile& GetGDIMetaFile() const { return maMtf; }
+ const Point& GetPoint() const { return maPoint; }
+ const Size& GetSize() const { return maSize; }
+ const Gradient& GetGradient() const { return maGradient; }
};
// ---------------------
@@ -1423,12 +1423,12 @@ class VCL_DLLPUBLIC MetaEPSAction : public MetaAction
{
private:
- GfxLink maGfxLink;
- GDIMetaFile maSubst;
- Point maPoint;
- Size maSize;
+ GfxLink maGfxLink;
+ GDIMetaFile maSubst;
+ Point maPoint;
+ Size maSize;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( EPS, META_EPS_ACTION )
@@ -1436,13 +1436,13 @@ public:
MetaEPSAction( const Point& rPoint, const Size& rSize,
const GfxLink& rGfxLink, const GDIMetaFile& rSubst );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- const GfxLink& GetLink() const { return maGfxLink; }
- const GDIMetaFile& GetSubstitute() const { return maSubst; }
- const Point& GetPoint() const { return maPoint; }
- const Size& GetSize() const { return maSize; }
+ const GfxLink& GetLink() const { return maGfxLink; }
+ const GDIMetaFile& GetSubstitute() const { return maSubst; }
+ const Point& GetPoint() const { return maPoint; }
+ const Size& GetSize() const { return maSize; }
};
// ----------------------
@@ -1453,18 +1453,18 @@ class VCL_DLLPUBLIC MetaRefPointAction : public MetaAction
{
private:
- Point maRefPoint;
- BOOL mbSet;
+ Point maRefPoint;
+ BOOL mbSet;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( RefPoint, META_REFPOINT_ACTION )
MetaRefPointAction( const Point& rRefPoint, BOOL bSet );
- const Point& GetRefPoint() const { return maRefPoint; }
- BOOL IsSetting() const { return mbSet; }
+ const Point& GetRefPoint() const { return maRefPoint; }
+ BOOL IsSetting() const { return mbSet; }
};
// ---------------------
@@ -1475,13 +1475,13 @@ class VCL_DLLPUBLIC MetaCommentAction : public MetaAction
{
private:
- ByteString maComment;
- sal_Int32 mnValue;
- sal_uInt32 mnDataSize;
- BYTE* mpData;
+ ByteString maComment;
+ sal_Int32 mnValue;
+ sal_uInt32 mnDataSize;
+ BYTE* mpData;
- SAL_DLLPRIVATE void ImplInitDynamicData( const BYTE* pData, sal_uInt32 nDataSize );
- virtual sal_Bool Compare( const MetaAction& ) const;
+ SAL_DLLPRIVATE void ImplInitDynamicData( const BYTE* pData, sal_uInt32 nDataSize );
+ virtual sal_Bool Compare( const MetaAction& ) const;
protected:
~MetaCommentAction();
@@ -1492,18 +1492,18 @@ public:
MetaCommentAction( const ByteString& rComment, sal_Int32 nValue = 0L, const BYTE* pData = NULL, sal_uInt32 nDataSize = 0UL );
MetaCommentAction( const BYTE* pData, sal_uInt32 nDataSize );
- virtual void Move( long nHorzMove, long nVertMove );
- virtual void Scale( double fScaleX, double fScaleY );
+ virtual void Move( long nHorzMove, long nVertMove );
+ virtual void Scale( double fScaleX, double fScaleY );
- virtual void Execute( OutputDevice* pOut );
+ virtual void Execute( OutputDevice* pOut );
virtual MetaAction* Clone();
- virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData );
- virtual void Read( SvStream& rIStm, ImplMetaReadData* pData );
+ virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData );
+ virtual void Read( SvStream& rIStm, ImplMetaReadData* pData );
- const ByteString& GetComment() const { return maComment; }
- sal_Int32 GetValue() const { return mnValue; }
- sal_uInt32 GetDataSize() const { return mnDataSize; }
- const BYTE* GetData() const { return mpData; }
+ const ByteString& GetComment() const { return maComment; }
+ sal_Int32 GetValue() const { return mnValue; }
+ sal_uInt32 GetDataSize() const { return mnDataSize; }
+ const BYTE* GetData() const { return mpData; }
};
// ------------------------
@@ -1514,15 +1514,15 @@ class VCL_DLLPUBLIC MetaLayoutModeAction : public MetaAction
{
private:
- sal_uInt32 mnLayoutMode;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ sal_uInt32 mnLayoutMode;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( LayoutMode, META_LAYOUTMODE_ACTION )
MetaLayoutModeAction( sal_uInt32 nLayoutMode );
- sal_uInt32 GetLayoutMode() const { return mnLayoutMode; }
+ sal_uInt32 GetLayoutMode() const { return mnLayoutMode; }
};
// ------------------------
@@ -1533,15 +1533,15 @@ class VCL_DLLPUBLIC MetaTextLanguageAction : public MetaAction
{
private:
- LanguageType meTextLanguage;
- virtual sal_Bool Compare( const MetaAction& ) const;
+ LanguageType meTextLanguage;
+ virtual sal_Bool Compare( const MetaAction& ) const;
public:
DECL_META_ACTION( TextLanguage, META_TEXTLANGUAGE_ACTION )
MetaTextLanguageAction( LanguageType );
- LanguageType GetTextLanguage() const { return meTextLanguage; }
+ LanguageType GetTextLanguage() const { return meTextLanguage; }
};
#endif // _SV_METAACT_HXX
diff --git a/vcl/inc/vcl/metric.hxx b/vcl/inc/vcl/metric.hxx
index 41cb707ffd62..b78ce5df9247 100644
--- a/vcl/inc/vcl/metric.hxx
+++ b/vcl/inc/vcl/metric.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,22 +46,22 @@ class VCL_DLLPUBLIC FontInfo : public Font
friend class OutputDevice;
protected:
- ImplFontMetric* mpImplMetric; // Implementation
+ ImplFontMetric* mpImplMetric; // Implementation
public:
FontInfo();
FontInfo( const FontInfo& );
~FontInfo();
- FontType GetType() const;
- BOOL IsDeviceFont() const;
- BOOL SupportsLatin() const;
- BOOL SupportsCJK() const;
- BOOL SupportsCTL() const;
+ FontType GetType() const;
+ BOOL IsDeviceFont() const;
+ BOOL SupportsLatin() const;
+ BOOL SupportsCJK() const;
+ BOOL SupportsCTL() const;
- FontInfo& operator=( const FontInfo& );
- BOOL operator==( const FontInfo& ) const;
- BOOL operator!=( const FontInfo& rInfo ) const
+ FontInfo& operator=( const FontInfo& );
+ BOOL operator==( const FontInfo& ) const;
+ BOOL operator!=( const FontInfo& rInfo ) const
{ return !operator==( rInfo ); }
};
@@ -76,16 +76,16 @@ public:
FontMetric( const FontMetric& );
~FontMetric() {}
- long GetAscent() const;
- long GetDescent() const;
- long GetIntLeading() const;
- long GetExtLeading() const;
- long GetLineHeight() const;
- long GetSlant() const;
+ long GetAscent() const;
+ long GetDescent() const;
+ long GetIntLeading() const;
+ long GetExtLeading() const;
+ long GetLineHeight() const;
+ long GetSlant() const;
- FontMetric& operator=( const FontMetric& rMetric );
- BOOL operator==( const FontMetric& rMetric ) const;
- BOOL operator!=( const FontMetric& rMetric ) const
+ FontMetric& operator=( const FontMetric& rMetric );
+ BOOL operator==( const FontMetric& rMetric ) const;
+ BOOL operator!=( const FontMetric& rMetric ) const
{ return !operator==( rMetric ); }
};
@@ -135,30 +135,30 @@ class VCL_DLLPUBLIC TextRectInfo
friend class OutputDevice;
private:
- long mnMaxWidth;
- USHORT mnLineCount;
- BOOL mbEllipsis;
+ long mnMaxWidth;
+ USHORT mnLineCount;
+ BOOL mbEllipsis;
public:
TextRectInfo();
- USHORT GetLineCount() const { return mnLineCount; }
- long GetMaxLineWidth() const { return mnMaxWidth; }
- BOOL IsEllipses() const { return mbEllipsis; }
+ USHORT GetLineCount() const { return mnLineCount; }
+ long GetMaxLineWidth() const { return mnMaxWidth; }
+ BOOL IsEllipses() const { return mbEllipsis; }
- BOOL operator ==( const TextRectInfo& rInfo ) const
- { return ((mnMaxWidth == rInfo.mnMaxWidth) &&
- (mnLineCount == rInfo.mnLineCount) &&
- (mbEllipsis == rInfo.mbEllipsis)); }
- BOOL operator !=( const TextRectInfo& rInfo ) const
+ BOOL operator ==( const TextRectInfo& rInfo ) const
+ { return ((mnMaxWidth == rInfo.mnMaxWidth) &&
+ (mnLineCount == rInfo.mnLineCount) &&
+ (mbEllipsis == rInfo.mbEllipsis)); }
+ BOOL operator !=( const TextRectInfo& rInfo ) const
{ return !(TextRectInfo::operator==( rInfo )); }
};
inline TextRectInfo::TextRectInfo()
{
- mnMaxWidth = 0;
- mnLineCount = 0;
- mbEllipsis = FALSE;
+ mnMaxWidth = 0;
+ mnLineCount = 0;
+ mbEllipsis = FALSE;
}
#endif // _SV_METRIC_HXX
diff --git a/vcl/inc/vcl/mnemonic.hxx b/vcl/inc/vcl/mnemonic.hxx
index 801ba7d26190..bdea35ffc471 100644
--- a/vcl/inc/vcl/mnemonic.hxx
+++ b/vcl/inc/vcl/mnemonic.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,25 +40,25 @@
// Mnemonic Chars, which we want support
// Latin 0-9
-#define MNEMONIC_RANGE_1_START 0x30
-#define MNEMONIC_RANGE_1_END 0x39
+#define MNEMONIC_RANGE_1_START 0x30
+#define MNEMONIC_RANGE_1_END 0x39
// Latin A-Z
-#define MNEMONIC_RANGE_2_START 0x41
-#define MNEMONIC_RANGE_2_END 0x5A
+#define MNEMONIC_RANGE_2_START 0x41
+#define MNEMONIC_RANGE_2_END 0x5A
// Cyrillic
-#define MNEMONIC_RANGE_3_START 0x0410
-#define MNEMONIC_RANGE_3_END 0x042F
+#define MNEMONIC_RANGE_3_START 0x0410
+#define MNEMONIC_RANGE_3_END 0x042F
// Greek
-#define MNEMONIC_RANGE_4_START 0x0391
-#define MNEMONIC_RANGE_4_END 0x03AB
-#define MNEMONIC_RANGES 4
-#define MAX_MNEMONICS ((MNEMONIC_RANGE_1_END-MNEMONIC_RANGE_1_START+1)+\
+#define MNEMONIC_RANGE_4_START 0x0391
+#define MNEMONIC_RANGE_4_END 0x03AB
+#define MNEMONIC_RANGES 4
+#define MAX_MNEMONICS ((MNEMONIC_RANGE_1_END-MNEMONIC_RANGE_1_START+1)+\
(MNEMONIC_RANGE_2_END-MNEMONIC_RANGE_2_START+1)+\
(MNEMONIC_RANGE_3_END-MNEMONIC_RANGE_3_START+1)+\
(MNEMONIC_RANGE_4_END-MNEMONIC_RANGE_4_START+1))
-#define MNEMONIC_CHAR ((sal_Unicode)'~')
-#define MNEMONIC_INDEX_NOTFOUND ((USHORT)0xFFFF)
+#define MNEMONIC_CHAR ((sal_Unicode)'~')
+#define MNEMONIC_INDEX_NOTFOUND ((USHORT)0xFFFF)
// -------------------------
// - MnemonicGenerator -
@@ -68,18 +68,18 @@ class VCL_DLLPUBLIC MnemonicGenerator
{
private:
// 0 == Mnemonic; >0 == count of characters
- BYTE maMnemonics[MAX_MNEMONICS];
+ BYTE maMnemonics[MAX_MNEMONICS];
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCharacterClassification > mxCharClass;
protected:
- SAL_DLLPRIVATE USHORT ImplGetMnemonicIndex( sal_Unicode c );
- SAL_DLLPRIVATE sal_Unicode ImplFindMnemonic( const XubString& rKey );
+ SAL_DLLPRIVATE USHORT ImplGetMnemonicIndex( sal_Unicode c );
+ SAL_DLLPRIVATE sal_Unicode ImplFindMnemonic( const XubString& rKey );
public:
MnemonicGenerator();
- void RegisterMnemonic( const XubString& rKey );
- BOOL CreateMnemonic( XubString& rKey );
+ void RegisterMnemonic( const XubString& rKey );
+ BOOL CreateMnemonic( XubString& rKey );
::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCharacterClassification > GetCharClass();
// returns a string where all '~'-characters and CJK mnemonics of the form (~A) are completely removed
diff --git a/vcl/inc/vcl/mnemonicengine.hxx b/vcl/inc/vcl/mnemonicengine.hxx
index cf32d7b70626..3e196cbaf6bf 100644
--- a/vcl/inc/vcl/mnemonicengine.hxx
+++ b/vcl/inc/vcl/mnemonicengine.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/morebtn.hxx b/vcl/inc/vcl/morebtn.hxx
index fe787d2b1b26..0a9c930ebb80 100644
--- a/vcl/inc/vcl/morebtn.hxx
+++ b/vcl/inc/vcl/morebtn.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ private:
protected:
using Window::ImplInit;
SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
- SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
+ SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
public:
MoreButton( Window* pParent, WinBits nStyle = 0 );
diff --git a/vcl/inc/vcl/msgbox.hxx b/vcl/inc/vcl/msgbox.hxx
index 7b02444ed4d7..d3af9841f861 100644
--- a/vcl/inc/vcl/msgbox.hxx
+++ b/vcl/inc/vcl/msgbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,20 +45,20 @@ class CheckBox;
// Return-Werte von Execute
//!!! bei Aenderungen \basic\source\runtime\methods.cxx msgbox anpassen
-#define RET_OK TRUE
-#define RET_CANCEL FALSE
-#define RET_YES 2
-#define RET_NO 3
-#define RET_RETRY 4
+#define RET_OK TRUE
+#define RET_CANCEL FALSE
+#define RET_YES 2
+#define RET_NO 3
+#define RET_RETRY 4
#define RET_IGNORE 5
-#define BUTTONID_OK RET_OK
-#define BUTTONID_CANCEL RET_CANCEL
-#define BUTTONID_YES RET_YES
-#define BUTTONID_NO RET_NO
-#define BUTTONID_RETRY RET_RETRY
+#define BUTTONID_OK RET_OK
+#define BUTTONID_CANCEL RET_CANCEL
+#define BUTTONID_YES RET_YES
+#define BUTTONID_NO RET_NO
+#define BUTTONID_RETRY RET_RETRY
#define BUTTONID_IGNORE RET_IGNORE
-#define BUTTONID_HELP 10
+#define BUTTONID_HELP 10
// -----------
// - MessBox -
@@ -67,24 +67,24 @@ class CheckBox;
class VCL_DLLPUBLIC MessBox : public ButtonDialog
{
protected:
- FixedText* mpFixedText;
- FixedImage* mpFixedImage;
- XubString maMessText;
- Image maImage;
- Image maImageHC;
- USHORT mnSoundType;
- BOOL mbHelpBtn;
- BOOL mbSound;
+ FixedText* mpFixedText;
+ FixedImage* mpFixedImage;
+ XubString maMessText;
+ Image maImage;
+ Image maImageHC;
+ USHORT mnSoundType;
+ BOOL mbHelpBtn;
+ BOOL mbSound;
CheckBox* mpCheckBox;
XubString maCheckBoxText;
BOOL mbCheck;
- SAL_DLLPRIVATE void ImplInitMessBoxData();
- SAL_DLLPRIVATE void ImplInitButtons();
- SAL_DLLPRIVATE void ImplPosControls();
+ SAL_DLLPRIVATE void ImplInitMessBoxData();
+ SAL_DLLPRIVATE void ImplInitButtons();
+ SAL_DLLPRIVATE void ImplPosControls();
protected:
- SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
+ SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
MessBox( WindowType nType );
public:
@@ -93,13 +93,13 @@ public:
MessBox( Window* pParent, const ResId& rResId );
~MessBox();
- virtual void StateChanged( StateChangedType nStateChange );
+ virtual void StateChanged( StateChangedType nStateChange );
- void SetMessText( const XubString& rText ) { maMessText = rText; }
- const XubString& GetMessText() const { return maMessText; }
+ void SetMessText( const XubString& rText ) { maMessText = rText; }
+ const XubString& GetMessText() const { return maMessText; }
- void SetImage( const Image& rImage ) { maImage = rImage; }
- const Image& GetImage() const { return maImage; }
+ void SetImage( const Image& rImage ) { maImage = rImage; }
+ const Image& GetImage() const { return maImage; }
BOOL SetModeImage( const Image& rImage, BmpColorMode eMode = BMP_COLOR_NORMAL );
const Image& GetModeImage( BmpColorMode eMode = BMP_COLOR_NORMAL ) const;
@@ -120,14 +120,14 @@ public:
class VCL_DLLPUBLIC InfoBox : public MessBox
{
private:
- SAL_DLLPRIVATE void ImplInitInfoBoxData();
+ SAL_DLLPRIVATE void ImplInitInfoBoxData();
public:
InfoBox( Window* pParent, const XubString& rMessage );
InfoBox( Window* pParent, const ResId & rResId );
- static Image GetStandardImage();
- static Image GetStandardImageHC();
+ static Image GetStandardImage();
+ static Image GetStandardImageHC();
};
// --------------
@@ -137,7 +137,7 @@ public:
class VCL_DLLPUBLIC WarningBox : public MessBox
{
private:
- SAL_DLLPRIVATE void ImplInitWarningBoxData();
+ SAL_DLLPRIVATE void ImplInitWarningBoxData();
public:
WarningBox( Window* pParent, WinBits nStyle,
@@ -146,8 +146,8 @@ public:
void SetDefaultCheckBoxText();
- static Image GetStandardImage();
- static Image GetStandardImageHC();
+ static Image GetStandardImage();
+ static Image GetStandardImageHC();
};
// ------------
@@ -157,15 +157,15 @@ public:
class VCL_DLLPUBLIC ErrorBox : public MessBox
{
private:
- SAL_DLLPRIVATE void ImplInitErrorBoxData();
+ SAL_DLLPRIVATE void ImplInitErrorBoxData();
public:
ErrorBox( Window* pParent, WinBits nStyle,
const XubString& rMessage );
ErrorBox( Window* pParent, const ResId& rResId );
- static Image GetStandardImage();
- static Image GetStandardImageHC();
+ static Image GetStandardImage();
+ static Image GetStandardImageHC();
};
// ------------
@@ -175,7 +175,7 @@ public:
class VCL_DLLPUBLIC QueryBox : public MessBox
{
private:
- SAL_DLLPRIVATE void ImplInitQueryBoxData();
+ SAL_DLLPRIVATE void ImplInitQueryBoxData();
public:
QueryBox( Window* pParent, WinBits nStyle,
@@ -184,10 +184,10 @@ public:
void SetDefaultCheckBoxText();
- static Image GetStandardImage();
- static Image GetStandardImageHC();
+ static Image GetStandardImage();
+ static Image GetStandardImageHC();
};
-#endif // _SV_MSGBOX_HXX
+#endif // _SV_MSGBOX_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/octree.hxx b/vcl/inc/vcl/octree.hxx
index 085ef648f98f..08f5153b7754 100644
--- a/vcl/inc/vcl/octree.hxx
+++ b/vcl/inc/vcl/octree.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,8 +36,8 @@
// - Defines -
// -----------
-#define OCTREE_BITS 5
-#define OCTREE_BITS_1 10
+#define OCTREE_BITS 5
+#define OCTREE_BITS_1 10
// --------------
// - OctreeNode -
@@ -45,19 +45,19 @@
typedef struct OctreeNode
{
- ULONG nCount;
- ULONG nRed;
- ULONG nGreen;
- ULONG nBlue;
+ ULONG nCount;
+ ULONG nRed;
+ ULONG nGreen;
+ ULONG nBlue;
OctreeNode* pChild[ 8 ];
- OctreeNode* pNext;
- OctreeNode* pNextInCache;
- USHORT nPalIndex;
- BOOL bLeaf;
+ OctreeNode* pNext;
+ OctreeNode* pNextInCache;
+ USHORT nPalIndex;
+ BOOL bLeaf;
} NODE;
-typedef NODE* PNODE;
-typedef PNODE* PPNODE;
+typedef NODE* PNODE;
+typedef PNODE* PPNODE;
// ----------
// - Octree -
@@ -70,37 +70,37 @@ class VCL_DLLPUBLIC Octree
{
private:
- BitmapPalette aPal;
- ULONG nMax;
- ULONG nLeafCount;
- ULONG nLevel;
- PNODE pTree;
- PNODE pReduce[ OCTREE_BITS + 1 ];
- BitmapColor* pColor;
- ImpNodeCache* pNodeCache;
- const BitmapReadAccess* pAcc;
- USHORT nPalIndex;
+ BitmapPalette aPal;
+ ULONG nMax;
+ ULONG nLeafCount;
+ ULONG nLevel;
+ PNODE pTree;
+ PNODE pReduce[ OCTREE_BITS + 1 ];
+ BitmapColor* pColor;
+ ImpNodeCache* pNodeCache;
+ const BitmapReadAccess* pAcc;
+ USHORT nPalIndex;
Octree() {};
- void CreatePalette( PNODE pNode );
- void GetPalIndex( PNODE pNode );
+ void CreatePalette( PNODE pNode );
+ void GetPalIndex( PNODE pNode );
SAL_DLLPRIVATE void ImplCreateOctree();
- SAL_DLLPRIVATE void ImplDeleteOctree( PPNODE ppNode );
- SAL_DLLPRIVATE void ImplAdd( PPNODE ppNode );
- SAL_DLLPRIVATE void ImplReduce();
+ SAL_DLLPRIVATE void ImplDeleteOctree( PPNODE ppNode );
+ SAL_DLLPRIVATE void ImplAdd( PPNODE ppNode );
+ SAL_DLLPRIVATE void ImplReduce();
-public:
+public:
Octree( const BitmapReadAccess& rReadAcc, ULONG nColors );
Octree( ULONG nColors );
~Octree();
- void AddColor( const BitmapColor& rColor );
+ void AddColor( const BitmapColor& rColor );
- inline const BitmapPalette& GetPalette();
- inline USHORT GetBestPaletteIndex( const BitmapColor& rColor );
+ inline const BitmapPalette& GetPalette();
+ inline USHORT GetBestPaletteIndex( const BitmapColor& rColor );
};
// ------------------------------------------------------------------------
@@ -132,27 +132,27 @@ class VCL_DLLPUBLIC InverseColorMap
{
private:
- BYTE* pBuffer;
- BYTE* pMap;
- const ULONG nBits;
+ BYTE* pBuffer;
+ BYTE* pMap;
+ const ULONG nBits;
- SAL_DLLPRIVATE void ImplCreateBuffers( const ULONG nMax );
+ SAL_DLLPRIVATE void ImplCreateBuffers( const ULONG nMax );
public:
InverseColorMap( const BitmapPalette& rPal );
~InverseColorMap();
- inline USHORT GetBestPaletteIndex( const BitmapColor& rColor );
+ inline USHORT GetBestPaletteIndex( const BitmapColor& rColor );
};
// ------------------------------------------------------------------------
inline USHORT InverseColorMap::GetBestPaletteIndex( const BitmapColor& rColor )
{
- return pMap[ ( ( (ULONG) rColor.GetRed() >> nBits ) << OCTREE_BITS_1 ) |
- ( ( (ULONG) rColor.GetGreen() >> nBits ) << OCTREE_BITS ) |
+ return pMap[ ( ( (ULONG) rColor.GetRed() >> nBits ) << OCTREE_BITS_1 ) |
+ ( ( (ULONG) rColor.GetGreen() >> nBits ) << OCTREE_BITS ) |
( (ULONG) rColor.GetBlue() >> nBits ) ];
}
diff --git a/vcl/inc/vcl/oldprintadaptor.hxx b/vcl/inc/vcl/oldprintadaptor.hxx
index 1a6705b42cb8..2d68a08eee53 100644
--- a/vcl/inc/vcl/oldprintadaptor.hxx
+++ b/vcl/inc/vcl/oldprintadaptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,10 +40,10 @@ namespace vcl
public:
OldStylePrintAdaptor( const boost::shared_ptr< Printer >& );
virtual ~OldStylePrintAdaptor();
-
+
void StartPage();
void EndPage();
-
+
virtual int getPageCount() const;
virtual com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > getPageParameters( int i_nPage ) const;
virtual void printPage( int i_nPage ) const;
diff --git a/vcl/inc/vcl/outdata.hxx b/vcl/inc/vcl/outdata.hxx
index 2f4a9b5ed7aa..e0a3a541d42c 100644
--- a/vcl/inc/vcl/outdata.hxx
+++ b/vcl/inc/vcl/outdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/outdev.h b/vcl/inc/vcl/outdev.h
index a25636987439..3b9b07eefb74 100644
--- a/vcl/inc/vcl/outdev.h
+++ b/vcl/inc/vcl/outdev.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -140,10 +140,10 @@ public:
// nowadays these substitutions are needed for backward compatibility and tight platform integration:
// - substitutions from configuration entries (Tools->Options->FontReplacement and/or fontconfig)
// - device specific substitutions (e.g. for PS printer builtin fonts)
-// - substitutions for missing fonts defined by configuration entries (generic and/or platform dependent fallbacks)
+// - substitutions for missing fonts defined by configuration entries (generic and/or platform dependent fallbacks)
// - substitutions for missing fonts defined by multi-token fontnames (e.g. fontname="SpecialFont;FallbackA;FallbackB")
// - substitutions for incomplete fonts (implicit, generic, EUDC and/or platform dependent fallbacks)
-// - substitutions for missing symbol fonts by translating code points into other symbol fonts
+// - substitutions for missing symbol fonts by translating code points into other symbol fonts
class ImplFontSubstitution
{
@@ -250,14 +250,14 @@ namespace basegfx { class B2DHomMatrix; }
struct ImplOutDevData
{
- VirtualDevice* mpRotateDev;
- vcl::ControlLayoutData* mpRecordLayout;
- Rectangle maRecordRect;
- ImplDirectFontSubstitution maDevFontSubst;
+ VirtualDevice* mpRotateDev;
+ vcl::ControlLayoutData* mpRecordLayout;
+ Rectangle maRecordRect;
+ ImplDirectFontSubstitution maDevFontSubst;
// #i75163#
- basegfx::B2DHomMatrix* mpViewTransform;
- basegfx::B2DHomMatrix* mpInverseViewTransform;
+ basegfx::B2DHomMatrix* mpViewTransform;
+ basegfx::B2DHomMatrix* mpInverseViewTransform;
};
void ImplFreeOutDevFontData();
diff --git a/vcl/inc/vcl/outdev.hxx b/vcl/inc/vcl/outdev.hxx
index cdabea609410..e975de6f7dbd 100644
--- a/vcl/inc/vcl/outdev.hxx
+++ b/vcl/inc/vcl/outdev.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -196,10 +196,10 @@ struct KerningPair
#define IMAGE_DRAW_DISABLE ((USHORT)0x0001)
#define IMAGE_DRAW_HIGHLIGHT ((USHORT)0x0002)
#define IMAGE_DRAW_DEACTIVE ((USHORT)0x0004)
-#define IMAGE_DRAW_COLORTRANSFORM ((USHORT)0x0008)
+#define IMAGE_DRAW_COLORTRANSFORM ((USHORT)0x0008)
#define IMAGE_DRAW_SEMITRANSPARENT ((USHORT)0x0010)
-#define IMAGE_DRAW_MONOCHROME_BLACK ((USHORT)0x0020)
-#define IMAGE_DRAW_MONOCHROME_WHITE ((USHORT)0x0040)
+#define IMAGE_DRAW_MONOCHROME_BLACK ((USHORT)0x0020)
+#define IMAGE_DRAW_MONOCHROME_WHITE ((USHORT)0x0040)
#define IMAGE_DRAW_3DLOOK 0
#define IMAGE_DRAW_BTNLOOK 0
@@ -310,19 +310,19 @@ private:
ImplOutDevData* mpOutDevData;
List* mpUnoGraphicsList;
vcl::PDFWriterImpl* mpPDFWriter;
- vcl::ExtOutDevData* mpExtOutDevData;
+ vcl::ExtOutDevData* mpExtOutDevData;
// TEMP TEMP TEMP
VirtualDevice* mpAlphaVDev;
/// Additional output pixel offset, applied in LogicToPixel (used by SetPixelOffset/GetPixelOffset)
- long mnOutOffOrigX;
+ long mnOutOffOrigX;
/// Additional output offset in _logical_ coordinates, applied in PixelToLogic (used by SetPixelOffset/GetPixelOffset)
- long mnOutOffLogicX;
+ long mnOutOffLogicX;
/// Additional output pixel offset, applied in LogicToPixel (used by SetPixelOffset/GetPixelOffset)
- long mnOutOffOrigY;
+ long mnOutOffOrigY;
/// Additional output offset in _logical_ coordinates, applied in PixelToLogic (used by SetPixelOffset/GetPixelOffset)
- long mnOutOffLogicY;
+ long mnOutOffLogicY;
/// Output offset for device output in pixel (pseudo window offset within window system's frames)
long mnOutOffX;
/// Output offset for device output in pixel (pseudo window offset within window system's frames)
@@ -380,25 +380,25 @@ private:
mbEnableRTL:1;
public:
- SAL_DLLPRIVATE sal_Int32 ImplGetDPIX() const { return mnDPIX; }
- SAL_DLLPRIVATE sal_Int32 ImplGetDPIY() const { return mnDPIY; }
- SAL_DLLPRIVATE int ImplGetGraphics() const;
- SAL_DLLPRIVATE void ImplReleaseGraphics( BOOL bRelease = TRUE );
+ SAL_DLLPRIVATE sal_Int32 ImplGetDPIX() const { return mnDPIX; }
+ SAL_DLLPRIVATE sal_Int32 ImplGetDPIY() const { return mnDPIY; }
+ SAL_DLLPRIVATE int ImplGetGraphics() const;
+ SAL_DLLPRIVATE void ImplReleaseGraphics( BOOL bRelease = TRUE );
SAL_DLLPRIVATE BOOL ImplHasMirroredGraphics();
SAL_DLLPRIVATE void ImplReMirror( Point &rPoint ) const;
SAL_DLLPRIVATE void ImplReMirror( Rectangle &rRect ) const;
SAL_DLLPRIVATE void ImplReMirror( Region &rRegion ) const;
- SAL_DLLPRIVATE void ImplInitOutDevData();
- SAL_DLLPRIVATE void ImplDeInitOutDevData();
- SAL_DLLPRIVATE void ImplInitLineColor();
- SAL_DLLPRIVATE void ImplInitFillColor();
- SAL_DLLPRIVATE bool ImplNewFont() const;
- SAL_DLLPRIVATE void ImplInitFont() const;
- SAL_DLLPRIVATE void ImplInitTextColor();
- SAL_DLLPRIVATE void ImplInitClipRegion();
- SAL_DLLPRIVATE bool ImplSelectClipRegion( const Region&, SalGraphics* pGraphics = NULL );
- SAL_DLLPRIVATE void ImplSetClipRegion( const Region* pRegion );
- SAL_DLLPRIVATE void ImplSetTriangleClipRegion( const PolyPolygon &rPolyPolygon );
+ SAL_DLLPRIVATE void ImplInitOutDevData();
+ SAL_DLLPRIVATE void ImplDeInitOutDevData();
+ SAL_DLLPRIVATE void ImplInitLineColor();
+ SAL_DLLPRIVATE void ImplInitFillColor();
+ SAL_DLLPRIVATE bool ImplNewFont() const;
+ SAL_DLLPRIVATE void ImplInitFont() const;
+ SAL_DLLPRIVATE void ImplInitTextColor();
+ SAL_DLLPRIVATE void ImplInitClipRegion();
+ SAL_DLLPRIVATE bool ImplSelectClipRegion( const Region&, SalGraphics* pGraphics = NULL );
+ SAL_DLLPRIVATE void ImplSetClipRegion( const Region* pRegion );
+ SAL_DLLPRIVATE void ImplSetTriangleClipRegion( const PolyPolygon &rPolyPolygon );
SAL_DLLPRIVATE SalLayout* ImplLayout( const String&, xub_StrLen nIndex,
xub_StrLen nLen, const Point& rLogicPos = Point(0,0),
@@ -425,78 +425,78 @@ public:
SAL_DLLPRIVATE void ImplDrawSpecialText( SalLayout& );
SAL_DLLPRIVATE void ImplDrawText( SalLayout& );
SAL_DLLPRIVATE Rectangle ImplGetTextBoundRect( const SalLayout& );
- SAL_DLLPRIVATE void ImplDrawEmphasisMarks( SalLayout& );
+ SAL_DLLPRIVATE void ImplDrawEmphasisMarks( SalLayout& );
- SAL_DLLPRIVATE void ImplDrawTextRect( long nBaseX, long nBaseY, long nX, long nY, long nWidth, long nHeight );
+ SAL_DLLPRIVATE void ImplDrawTextRect( long nBaseX, long nBaseY, long nX, long nY, long nWidth, long nHeight );
- SAL_DLLPRIVATE void ImplInitTextLineSize();
- SAL_DLLPRIVATE void ImplInitAboveTextLineSize();
- SAL_DLLPRIVATE void ImplDrawWaveLine( long nBaseX, long nBaseY, long nStartX, long nStartY, long nWidth, long nHeight, long nLineWidth, short nOrientation, const Color& rColor );
+ SAL_DLLPRIVATE void ImplInitTextLineSize();
+ SAL_DLLPRIVATE void ImplInitAboveTextLineSize();
+ SAL_DLLPRIVATE void ImplDrawWaveLine( long nBaseX, long nBaseY, long nStartX, long nStartY, long nWidth, long nHeight, long nLineWidth, short nOrientation, const Color& rColor );
SAL_DLLPRIVATE void ImplDrawWaveTextLine( long nBaseX, long nBaseY, long nX, long nY, long nWidth, FontUnderline eTextLine, Color aColor, BOOL bIsAbove );
SAL_DLLPRIVATE void ImplDrawStraightTextLine( long nBaseX, long nBaseY, long nX, long nY, long nWidth, FontUnderline eTextLine, Color aColor, BOOL bIsAbove );
SAL_DLLPRIVATE void ImplDrawStrikeoutLine( long nBaseX, long nBaseY, long nX, long nY, long nWidth, FontStrikeout eStrikeout, Color aColor );
SAL_DLLPRIVATE void ImplDrawStrikeoutChar( long nBaseX, long nBaseY, long nX, long nY, long nWidth, FontStrikeout eStrikeout, Color aColor );
SAL_DLLPRIVATE void ImplDrawTextLine( long nBaseX, long nX, long nY, long nWidth, FontStrikeout eStrikeout, FontUnderline eUnderline, FontUnderline eOverline, BOOL bUnderlineAbove );
- SAL_DLLPRIVATE void ImplDrawMnemonicLine( long nX, long nY, long nWidth );
- SAL_DLLPRIVATE void ImplGetEmphasisMark( PolyPolygon& rPolyPoly, BOOL& rPolyLine, Rectangle& rRect1, Rectangle& rRect2, long& rYOff, long& rWidth, FontEmphasisMark eEmphasis, long nHeight, short nOrient );
- SAL_DLLPRIVATE void ImplDrawEmphasisMark( long nBaseX, long nX, long nY, const PolyPolygon& rPolyPoly, BOOL bPolyLine, const Rectangle& rRect1, const Rectangle& rRect2 );
+ SAL_DLLPRIVATE void ImplDrawMnemonicLine( long nX, long nY, long nWidth );
+ SAL_DLLPRIVATE void ImplGetEmphasisMark( PolyPolygon& rPolyPoly, BOOL& rPolyLine, Rectangle& rRect1, Rectangle& rRect2, long& rYOff, long& rWidth, FontEmphasisMark eEmphasis, long nHeight, short nOrient );
+ SAL_DLLPRIVATE void ImplDrawEmphasisMark( long nBaseX, long nX, long nY, const PolyPolygon& rPolyPoly, BOOL bPolyLine, const Rectangle& rRect1, const Rectangle& rRect2 );
static
SAL_DLLPRIVATE long ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo, long nWidth, const XubString& rStr, USHORT nStyle, const ::vcl::ITextLayout& _rLayout );
- SAL_DLLPRIVATE void ImplInitFontList() const;
- SAL_DLLPRIVATE void ImplUpdateFontData( bool bNewFontLists );
- SAL_DLLPRIVATE static void ImplUpdateAllFontData( bool bNewFontLists );
-
- SAL_DLLPRIVATE long ImplLogicXToDevicePixel( long nX ) const;
- SAL_DLLPRIVATE long ImplLogicYToDevicePixel( long nY ) const;
- SAL_DLLPRIVATE long ImplLogicWidthToDevicePixel( long nWidth ) const;
- SAL_DLLPRIVATE long ImplLogicHeightToDevicePixel( long nHeight ) const;
- SAL_DLLPRIVATE long ImplDevicePixelToLogicWidth( long nWidth ) const;
- SAL_DLLPRIVATE long ImplDevicePixelToLogicHeight( long nHeight ) const;
- SAL_DLLPRIVATE float ImplFloatLogicWidthToDevicePixel( float ) const;
- SAL_DLLPRIVATE float ImplFloatLogicHeightToDevicePixel( float ) const;
- SAL_DLLPRIVATE float ImplFloatDevicePixelToLogicWidth( float ) const;
- SAL_DLLPRIVATE float ImplFloatDevicePixelToLogicHeight( float ) const;
- SAL_DLLPRIVATE Point ImplLogicToDevicePixel( const Point& rLogicPt ) const;
- SAL_DLLPRIVATE Size ImplLogicToDevicePixel( const Size& rLogicSize ) const;
- SAL_DLLPRIVATE Rectangle ImplLogicToDevicePixel( const Rectangle& rLogicRect ) const;
+ SAL_DLLPRIVATE void ImplInitFontList() const;
+ SAL_DLLPRIVATE void ImplUpdateFontData( bool bNewFontLists );
+ SAL_DLLPRIVATE static void ImplUpdateAllFontData( bool bNewFontLists );
+
+ SAL_DLLPRIVATE long ImplLogicXToDevicePixel( long nX ) const;
+ SAL_DLLPRIVATE long ImplLogicYToDevicePixel( long nY ) const;
+ SAL_DLLPRIVATE long ImplLogicWidthToDevicePixel( long nWidth ) const;
+ SAL_DLLPRIVATE long ImplLogicHeightToDevicePixel( long nHeight ) const;
+ SAL_DLLPRIVATE long ImplDevicePixelToLogicWidth( long nWidth ) const;
+ SAL_DLLPRIVATE long ImplDevicePixelToLogicHeight( long nHeight ) const;
+ SAL_DLLPRIVATE float ImplFloatLogicWidthToDevicePixel( float ) const;
+ SAL_DLLPRIVATE float ImplFloatLogicHeightToDevicePixel( float ) const;
+ SAL_DLLPRIVATE float ImplFloatDevicePixelToLogicWidth( float ) const;
+ SAL_DLLPRIVATE float ImplFloatDevicePixelToLogicHeight( float ) const;
+ SAL_DLLPRIVATE Point ImplLogicToDevicePixel( const Point& rLogicPt ) const;
+ SAL_DLLPRIVATE Size ImplLogicToDevicePixel( const Size& rLogicSize ) const;
+ SAL_DLLPRIVATE Rectangle ImplLogicToDevicePixel( const Rectangle& rLogicRect ) const;
SAL_DLLPRIVATE ::basegfx::B2DPolygon ImplLogicToDevicePixel( const ::basegfx::B2DPolygon& ) const;
SAL_DLLPRIVATE ::basegfx::B2DPolyPolygon ImplLogicToDevicePixel( const ::basegfx::B2DPolyPolygon& ) const;
- SAL_DLLPRIVATE Polygon ImplLogicToDevicePixel( const Polygon& rLogicPoly ) const;
- SAL_DLLPRIVATE PolyPolygon ImplLogicToDevicePixel( const PolyPolygon& rLogicPolyPoly ) const;
- SAL_DLLPRIVATE LineInfo ImplLogicToDevicePixel( const LineInfo& rLineInfo ) const;
- SAL_DLLPRIVATE Rectangle ImplDevicePixelToLogic( const Rectangle& rLogicRect ) const;
- SAL_DLLPRIVATE Region ImplPixelToDevicePixel( const Region& rRegion ) const;
- SAL_DLLPRIVATE void ImplInvalidateViewTransform();
+ SAL_DLLPRIVATE Polygon ImplLogicToDevicePixel( const Polygon& rLogicPoly ) const;
+ SAL_DLLPRIVATE PolyPolygon ImplLogicToDevicePixel( const PolyPolygon& rLogicPolyPoly ) const;
+ SAL_DLLPRIVATE LineInfo ImplLogicToDevicePixel( const LineInfo& rLineInfo ) const;
+ SAL_DLLPRIVATE Rectangle ImplDevicePixelToLogic( const Rectangle& rLogicRect ) const;
+ SAL_DLLPRIVATE Region ImplPixelToDevicePixel( const Region& rRegion ) const;
+ SAL_DLLPRIVATE void ImplInvalidateViewTransform();
SAL_DLLPRIVATE basegfx::B2DHomMatrix ImplGetDeviceTransformation() const;
- SAL_DLLPRIVATE void ImplDrawPolygon( const Polygon& rPoly, const PolyPolygon* pClipPolyPoly = NULL );
- SAL_DLLPRIVATE void ImplDrawPolyPolygon( const PolyPolygon& rPolyPoly, const PolyPolygon* pClipPolyPoly = NULL );
- SAL_DLLPRIVATE void ImplDrawPolyPolygon( USHORT nPoly, const PolyPolygon& rPolyPoly );
- SAL_DLLPRIVATE void ImplDrawLinearGradient( const Rectangle& rRect, const Gradient& rGradient, BOOL bMtf, const PolyPolygon* pClipPolyPoly );
- SAL_DLLPRIVATE void ImplDrawComplexGradient( const Rectangle& rRect, const Gradient& rGradient, BOOL bMtf, const PolyPolygon* pClipPolyPoly );
+ SAL_DLLPRIVATE void ImplDrawPolygon( const Polygon& rPoly, const PolyPolygon* pClipPolyPoly = NULL );
+ SAL_DLLPRIVATE void ImplDrawPolyPolygon( const PolyPolygon& rPolyPoly, const PolyPolygon* pClipPolyPoly = NULL );
+ SAL_DLLPRIVATE void ImplDrawPolyPolygon( USHORT nPoly, const PolyPolygon& rPolyPoly );
+ SAL_DLLPRIVATE void ImplDrawLinearGradient( const Rectangle& rRect, const Gradient& rGradient, BOOL bMtf, const PolyPolygon* pClipPolyPoly );
+ SAL_DLLPRIVATE void ImplDrawComplexGradient( const Rectangle& rRect, const Gradient& rGradient, BOOL bMtf, const PolyPolygon* pClipPolyPoly );
- SAL_DLLPRIVATE void ImplDrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch, BOOL bMtf );
- SAL_DLLPRIVATE void ImplCalcHatchValues( const Rectangle& rRect, long nDist, USHORT nAngle10, Point& rPt1, Point& rPt2, Size& rInc, Point& rEndPt1 );
- SAL_DLLPRIVATE void ImplDrawHatchLine( const Line& rLine, const PolyPolygon& rPolyPoly, Point* pPtBuffer, BOOL bMtf );
+ SAL_DLLPRIVATE void ImplDrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch, BOOL bMtf );
+ SAL_DLLPRIVATE void ImplCalcHatchValues( const Rectangle& rRect, long nDist, USHORT nAngle10, Point& rPt1, Point& rPt2, Size& rInc, Point& rEndPt1 );
+ SAL_DLLPRIVATE void ImplDrawHatchLine( const Line& rLine, const PolyPolygon& rPolyPoly, Point* pPtBuffer, BOOL bMtf );
- SAL_DLLPRIVATE void ImplDrawWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
- SAL_DLLPRIVATE void ImplDrawColorWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
- SAL_DLLPRIVATE void ImplDrawBitmapWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
- SAL_DLLPRIVATE void ImplDrawGradientWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
- SAL_DLLPRIVATE void ImplDraw2ColorFrame( const Rectangle& rRect, const Color& rLeftTopColor, const Color& rRightBottomColor );
+ SAL_DLLPRIVATE void ImplDrawWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
+ SAL_DLLPRIVATE void ImplDrawColorWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
+ SAL_DLLPRIVATE void ImplDrawBitmapWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
+ SAL_DLLPRIVATE void ImplDrawGradientWallpaper( long nX, long nY, long nWidth, long nHeight, const Wallpaper& rWallpaper );
+ SAL_DLLPRIVATE void ImplDraw2ColorFrame( const Rectangle& rRect, const Color& rLeftTopColor, const Color& rRightBottomColor );
- SAL_DLLPRIVATE void ImplDrawOutDevDirect( const OutputDevice* pSrcDev, void* pPosAry );
- SAL_DLLPRIVATE void ImplDrawBitmap( const Point& rDestPt, const Size& rDestSize,
+ SAL_DLLPRIVATE void ImplDrawOutDevDirect( const OutputDevice* pSrcDev, void* pPosAry );
+ SAL_DLLPRIVATE void ImplDrawBitmap( const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel,
const Bitmap& rBitmap, const ULONG nAction );
- SAL_DLLPRIVATE void ImplDrawBitmapEx( const Point& rDestPt, const Size& rDestSize,
+ SAL_DLLPRIVATE void ImplDrawBitmapEx( const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel,
const BitmapEx& rBitmapEx, const ULONG nAction );
- SAL_DLLPRIVATE void ImplDrawMask( const Point& rDestPt, const Size& rDestSize,
+ SAL_DLLPRIVATE void ImplDrawMask( const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel,
const Bitmap& rBitmap, const Color& rMaskColor,
const ULONG nAction );
- SAL_DLLPRIVATE void ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
+ SAL_DLLPRIVATE void ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel );
SAL_DLLPRIVATE Bitmap ImplBlend( Bitmap aBmp,
@@ -522,20 +522,20 @@ public:
const sal_Int32 nDstWidth,
const long* pMapX,
const long* pMapY );
- SAL_DLLPRIVATE void ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask,
+ SAL_DLLPRIVATE void ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask,
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel );
- SAL_DLLPRIVATE void ImplPrintMask( const Bitmap& rMask, const Color& rMaskColor,
+ SAL_DLLPRIVATE void ImplPrintMask( const Bitmap& rMask, const Color& rMaskColor,
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel );
- SAL_DLLPRIVATE void ImplDrawFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize,
+ SAL_DLLPRIVATE void ImplDrawFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize,
const OutputDevice& rOutDev, const Region& rRegion );
- SAL_DLLPRIVATE void ImplGetFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize,
+ SAL_DLLPRIVATE void ImplGetFrameDev( const Point& rPt, const Point& rDevPt, const Size& rDevSize,
OutputDevice& rOutDev );
- SAL_DLLPRIVATE void ImplGetFrameBitmap( const Point& rPt, const Size& rSize,
+ SAL_DLLPRIVATE void ImplGetFrameBitmap( const Point& rPt, const Size& rSize,
Bitmap& rBitmap ) const;
- SAL_DLLPRIVATE BOOL ImplIsRecordLayout() const;
+ SAL_DLLPRIVATE BOOL ImplIsRecordLayout() const;
void ImplAddDevFontSubstitute( const XubString& rFontName,
const XubString& rReplaceFontName,
@@ -543,7 +543,7 @@ public:
SAL_DLLPRIVATE static FontEmphasisMark ImplGetEmphasisMarkStyle( const Font& rFont );
SAL_DLLPRIVATE static BOOL ImplIsUnderlineAbove( const Font& );
-
+
// tells whether this output device is RTL in an LTR UI or LTR in a RTL UI
SAL_DLLPRIVATE bool ImplIsAntiparallel() const ;
@@ -551,7 +551,7 @@ public:
// Helper which holds the old line geometry creation and is extended to use AA when
// switched on. Advantage is that line geometry is only temporarily used for paint
SAL_DLLPRIVATE void ImpDrawPolyLineWithLineInfo(const Polygon& rPoly, const LineInfo& rLineInfo);
-
+
// #i101491#
// Helper who implements the DrawPolyPolygon functionality for basegfx::B2DPolyPolygon
// without MetaFile processing
@@ -585,8 +585,8 @@ public:
vcl::PDFWriterImpl* GetPDFWriter() const { return mpPDFWriter; }
- void SetExtOutDevData( vcl::ExtOutDevData* pExtOutDevData ) { mpExtOutDevData = pExtOutDevData; }
- vcl::ExtOutDevData* GetExtOutDevData() const { return mpExtOutDevData; }
+ void SetExtOutDevData( vcl::ExtOutDevData* pExtOutDevData ) { mpExtOutDevData = pExtOutDevData; }
+ vcl::ExtOutDevData* GetExtOutDevData() const { return mpExtOutDevData; }
void DrawTextLine( const Point& rPos, long nWidth,
FontStrikeout eStrikeout,
@@ -836,7 +836,7 @@ public:
void SetClipRegion();
void SetClipRegion( const Region& rRegion );
- void SetTriangleClipRegion( const PolyPolygon &rRegion );
+ void SetTriangleClipRegion( const PolyPolygon &rRegion );
Region GetClipRegion() const;
BOOL IsClipRegion() const { return mbClipRegion; }
Region GetActiveClipRegion() const;
@@ -932,7 +932,7 @@ public:
// #i75163#
basegfx::B2DHomMatrix GetViewTransformation() const;
basegfx::B2DHomMatrix GetInverseViewTransformation() const;
-
+
basegfx::B2DHomMatrix GetViewTransformation( const MapMode& rMapMode ) const;
basegfx::B2DHomMatrix GetInverseViewTransformation( const MapMode& rMapMode ) const;
@@ -959,7 +959,7 @@ public:
@param rOffset
The offset in pixel
*/
- void SetPixelOffset( const Size& rOffset );
+ void SetPixelOffset( const Size& rOffset );
/** Get the offset in pixel
@@ -967,7 +967,7 @@ public:
@return the current offset in pixel
*/
- Size GetPixelOffset() const;
+ Size GetPixelOffset() const;
Point LogicToPixel( const Point& rLogicPt ) const;
Size LogicToPixel( const Size& rLogicSize ) const;
@@ -1050,13 +1050,13 @@ public:
static basegfx::B2DPolyPolygon LogicToLogic( const basegfx::B2DPolyPolygon& rPolyPoly,
const MapMode& rMapModeSource,
const MapMode& rMapModeDest );
-
+
Size GetOutputSizePixel() const
{ return Size( mnOutWidth, mnOutHeight ); }
- long GetOutputWidthPixel() const { return mnOutWidth; }
- long GetOutputHeightPixel() const { return mnOutHeight; }
- long GetOutOffXPixel() const { return mnOutOffX; }
- long GetOutOffYPixel() const { return mnOutOffY; }
+ long GetOutputWidthPixel() const { return mnOutWidth; }
+ long GetOutputHeightPixel() const { return mnOutHeight; }
+ long GetOutOffXPixel() const { return mnOutOffX; }
+ long GetOutOffYPixel() const { return mnOutOffY; }
Size GetOutputSize() const
{ return PixelToLogic( GetOutputSizePixel() ); }
@@ -1084,7 +1084,7 @@ public:
// i60594
// validate kashida positions against the current font
// returns count of invalid kashida positions
- xub_StrLen ValidateKashidas ( const String& rTxt,
+ xub_StrLen ValidateKashidas ( const String& rTxt,
xub_StrLen nIdx, xub_StrLen nLen,
xub_StrLen nKashCount, // number of suggested kashida positions (in)
const xub_StrLen* pKashidaPos, // suggested kashida positions (in)
@@ -1111,7 +1111,7 @@ public:
@return TRUE, if this device has an alpha channel.
*/
- BOOL HasAlpha();
+ BOOL HasAlpha();
/** Added return value to see if EPS could be painted directly.
Theoreticaly, handing over a matrix would be needed to handle
@@ -1190,14 +1190,14 @@ public:
BOOL IsNativeControlSupported( ControlType nType, ControlPart nPart );
// Query the native control to determine if it was acted upon
- BOOL HitTestNativeControl( ControlType nType,
+ BOOL HitTestNativeControl( ControlType nType,
ControlPart nPart,
const Rectangle& rControlRegion,
const Point& aPos,
BOOL& rIsInside );
// Request rendering of a particular control and/or part
- BOOL DrawNativeControl( ControlType nType,
+ BOOL DrawNativeControl( ControlType nType,
ControlPart nPart,
const Rectangle& rControlRegion,
ControlState nState,
@@ -1205,7 +1205,7 @@ public:
::rtl::OUString aCaption );
// Request rendering of a caption string for a control
- BOOL DrawNativeControlText( ControlType nType,
+ BOOL DrawNativeControlText( ControlType nType,
ControlPart nPart,
const Rectangle& rControlRegion,
ControlState nState,
@@ -1213,7 +1213,7 @@ public:
::rtl::OUString aCaption );
// Query the native control's actual drawing region (including adornment)
- BOOL GetNativeControlRegion( ControlType nType,
+ BOOL GetNativeControlRegion( ControlType nType,
ControlPart nPart,
const Rectangle& rControlRegion,
ControlState nState,
diff --git a/vcl/inc/vcl/outfont.hxx b/vcl/inc/vcl/outfont.hxx
index 2bbc4d591ce6..5555930b8f35 100644
--- a/vcl/inc/vcl/outfont.hxx
+++ b/vcl/inc/vcl/outfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -273,7 +273,7 @@ public:
void ImplInitAboveTextLineSize();
public: // TODO: hide members behind accessor methods
- // font instance attributes from the font request
+ // font instance attributes from the font request
long mnWidth; // Reference Width
short mnOrientation; // Rotation in 1/10 degrees
diff --git a/vcl/inc/vcl/pdfextoutdevdata.hxx b/vcl/inc/vcl/pdfextoutdevdata.hxx
index 804e8c03287e..59fdc76d354b 100644
--- a/vcl/inc/vcl/pdfextoutdevdata.hxx
+++ b/vcl/inc/vcl/pdfextoutdevdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@
class Graphic;
-namespace vcl { class PDFWriter; }
+namespace vcl { class PDFWriter; }
namespace vcl
{
@@ -53,8 +53,8 @@ namespace vcl
*/
struct PDFExtOutDevBookmarkEntry
{
- sal_Int32 nLinkId;
- rtl::OUString aBookmark;
+ sal_Int32 nLinkId;
+ rtl::OUString aBookmark;
};
/*
@@ -69,19 +69,19 @@ class VCL_DLLPUBLIC PDFExtOutDevData : public ExtOutDevData
const OutputDevice& mrOutDev;
sal_Bool mbTaggedPDF;
- sal_Bool mbExportNotes;
- sal_Bool mbTransitionEffects;
- sal_Bool mbUseLosslessCompression;
- sal_Bool mbReduceImageResolution;
+ sal_Bool mbExportNotes;
+ sal_Bool mbTransitionEffects;
+ sal_Bool mbUseLosslessCompression;
+ sal_Bool mbReduceImageResolution;
sal_Bool mbExportFormFields;
sal_Bool mbExportBookmarks;
sal_Bool mbExportNDests; //i56629
sal_Int32 mnFormsFormat;
- sal_Int32 mnPage;
+ sal_Int32 mnPage;
com::sun::star::lang::Locale maDocLocale;
- PageSyncData* mpPageSyncData;
- GlobalSyncData* mpGlobalSyncData;
+ PageSyncData* mpPageSyncData;
+ GlobalSyncData* mpGlobalSyncData;
std::vector< PDFExtOutDevBookmarkEntry > maBookmarks;
@@ -98,20 +98,20 @@ public :
- sal_Bool GetIsExportNotes() const;
- void SetIsExportNotes( const sal_Bool bExportNotes );
+ sal_Bool GetIsExportNotes() const;
+ void SetIsExportNotes( const sal_Bool bExportNotes );
- sal_Bool GetIsExportTaggedPDF() const;
- void SetIsExportTaggedPDF( const sal_Bool bTaggedPDF );
+ sal_Bool GetIsExportTaggedPDF() const;
+ void SetIsExportTaggedPDF( const sal_Bool bTaggedPDF );
- sal_Bool GetIsExportTransitionEffects() const;
- void SetIsExportTransitionEffects( const sal_Bool bTransitionalEffects );
+ sal_Bool GetIsExportTransitionEffects() const;
+ void SetIsExportTransitionEffects( const sal_Bool bTransitionalEffects );
sal_Bool GetIsExportFormFields() const;
void SetIsExportFormFields( const sal_Bool bExportFormFields );
- sal_Int32 GetFormsFormat() const;
- void SetFormsFormat( const sal_Int32 nFormsFormat );
+ sal_Int32 GetFormsFormat() const;
+ void SetFormsFormat( const sal_Int32 nFormsFormat );
sal_Bool GetIsExportBookmarks() const;
void SetIsExportBookmarks( const sal_Bool bExportBookmarks );
@@ -120,14 +120,14 @@ public :
void SetIsExportNamedDestinations( const sal_Bool bExportNDests ); //i56629
// PageNumber, Compression is being set by the PDFExport
- sal_Int32 GetCurrentPageNumber() const;
- void SetCurrentPageNumber( const sal_Int32 nPage );
+ sal_Int32 GetCurrentPageNumber() const;
+ void SetCurrentPageNumber( const sal_Int32 nPage );
- sal_Bool GetIsLosslessCompression() const;
- void SetIsLosslessCompression( const sal_Bool bLosslessCompression );
+ sal_Bool GetIsLosslessCompression() const;
+ void SetIsLosslessCompression( const sal_Bool bLosslessCompression );
- sal_Bool GetIsReduceImageResolution() const;
- void SetIsReduceImageResolution( const sal_Bool bReduceImageResolution );
+ sal_Bool GetIsReduceImageResolution() const;
+ void SetIsReduceImageResolution( const sal_Bool bReduceImageResolution );
const com::sun::star::lang::Locale& GetDocumentLocale() const;
void SetDocumentLocale( const com::sun::star::lang::Locale& rLoc );
@@ -138,14 +138,14 @@ public :
Use this method to group render output.
*/
- void BeginGroup();
+ void BeginGroup();
/** End render output
This method ends grouped render output without
further actions.
*/
- void EndGroup();
+ void EndGroup();
/** End render output
@@ -170,20 +170,20 @@ public :
The visible part of the output. This might be less than
rOutputRect, e.g. for cropped graphics.
*/
- void EndGroup( const Graphic& rGraphic,
- BYTE nTransparency,
- const Rectangle& rOutputRect,
- const Rectangle& rVisibleOutputRect );
+ void EndGroup( const Graphic& rGraphic,
+ BYTE nTransparency,
+ const Rectangle& rOutputRect,
+ const Rectangle& rVisibleOutputRect );
//--->i56629
/** Create a new named destination to be used in a link to this document from another PDF document
(see PDF spec 1.4, 8.2.1)
-
+
@parm sDestName
the name this destination will be addressed with from others PDF document
@param rRect
target rectangle on page to be displayed if dest is jumped to
-
+
@param nPageNr
number of page the dest is on (as returned by NewPage)
or -1 in which case the current page is used
@@ -202,7 +202,7 @@ public :
@param rRect
target rectangle on page to be displayed if dest is jumped to
-
+
@param nPageNr
number of page the dest is on (as returned by NewPage)
or -1 in which case the current page is used
@@ -248,14 +248,14 @@ public :
<p>will change a dest type link to an URL type link if necessary</p>
@param nLinkId
the link to be changed
-
+
@param rURL
the URL the link shall point to.
there will be no error checking or any kind of
conversion done to this parameter execept this:
it will be output as 7bit Ascii. The URL
will appear literally in the PDF file produced
-
+
@returns
0 for success
-1 in case the link id does not exist
@@ -307,7 +307,7 @@ public :
-1 if the item does not exist
*/
sal_Int32 SetOutlineItemText( sal_Int32 nItem, const rtl::OUString& rText );
-
+
/** Set an outline item's destination
@param nItem
@@ -374,7 +374,7 @@ public :
*/
sal_Int32 BeginStructureElement( PDFWriter::StructElement eType, const rtl::OUString& rAlias = rtl::OUString() );
/** end a logical structure element
-
+
@see BeginStructureElement
*/
void EndStructureElement();
@@ -399,14 +399,14 @@ public :
*/
bool SetCurrentStructureElement( sal_Int32 nElement );
/** get the current structure element id
-
+
@returns
the id of the current structure element
*/
sal_Int32 GetCurrentStructureElement();
/** set a structure attribute on the current structural element
-
+
SetStructureAttribute sets an attribute of the current structural element to a
new value. A consistency check is performed before actually setting the value;
if the check fails, the function returns <FALSE/> and the attribute remains
@@ -424,7 +424,7 @@ public :
*/
bool SetStructureAttribute( PDFWriter::StructAttribute eAttr, PDFWriter::StructAttributeValue eVal );
/** set a structure attribute on the current structural element
-
+
SetStructureAttributeNumerical sets an attribute of the current structural element
to a new numerical value. A consistency check is performed before actually setting
the value; if the check fails, the function returns <FALSE/> and the attribute
diff --git a/vcl/inc/vcl/pdfwriter.hxx b/vcl/inc/vcl/pdfwriter.hxx
index 4ea221e5ff54..c5d4dd136cfe 100644
--- a/vcl/inc/vcl/pdfwriter.hxx
+++ b/vcl/inc/vcl/pdfwriter.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,18 +64,18 @@ namespace vcl
struct PDFDocInfo
{
- String Title; // document title
- String Author; // document author
- String Subject; // subject
- String Keywords; // keywords
- String Creator; // application that created the original document
- String Producer; // OpenOffice
+ String Title; // document title
+ String Author; // document author
+ String Subject; // subject
+ String Keywords; // keywords
+ String Creator; // application that created the original document
+ String Producer; // OpenOffice
};
struct PDFNote
{
- String Title; // optional title for the popup containing the note
- String Contents; // contents of the note
+ String Title; // optional title for the popup containing the note
+ String Contents; // contents of the note
};
class VCL_DLLPUBLIC PDFOutputStream
@@ -231,21 +231,21 @@ public:
struct VCL_DLLPUBLIC AnyWidget
{
protected:
- WidgetType Type; // primitive RTTI
+ WidgetType Type; // primitive RTTI
public:
- rtl::OUString Name; // a distinct name to identify the control
- rtl::OUString Description;// descriptive text for the contro (e.g. for tool tip)
- rtl::OUString Text; // user text to appear on the control
- USHORT TextStyle; // style flags
- bool ReadOnly;
- Rectangle Location; // describes the area filled by the control
- bool Border; // true: widget should have a border, false: no border
- Color BorderColor;// COL_TRANSPARENT and Border=true means get color from application settings
- bool Background; // true: widget shall draw its background, false: no background
- Color BackgroundColor; // COL_TRANSPARENT and Background=true means get color from application settings
- Font TextFont; // an empty font will be replaced by the
+ rtl::OUString Name; // a distinct name to identify the control
+ rtl::OUString Description;// descriptive text for the contro (e.g. for tool tip)
+ rtl::OUString Text; // user text to appear on the control
+ USHORT TextStyle; // style flags
+ bool ReadOnly;
+ Rectangle Location; // describes the area filled by the control
+ bool Border; // true: widget should have a border, false: no border
+ Color BorderColor;// COL_TRANSPARENT and Border=true means get color from application settings
+ bool Background; // true: widget shall draw its background, false: no background
+ Color BackgroundColor; // COL_TRANSPARENT and Background=true means get color from application settings
+ Font TextFont; // an empty font will be replaced by the
// appropriate font from the user settings
- Color TextColor; // COL_TRANSPARENT will be replaced by the appropriate color from application settings
+ Color TextColor; // COL_TRANSPARENT will be replaced by the appropriate color from application settings
sal_Int32 TabOrder; // lowest number is first in tab order
/* style flags for text are those for OutputDevice::DrawText
@@ -328,7 +328,7 @@ public:
will appear literally in the PDF file produced
*/
sal_Int32 Dest;
- rtl::OUString URL;
+ rtl::OUString URL;
bool Submit;
bool SubmitGet;
@@ -345,8 +345,8 @@ public:
struct CheckBoxWidget : public AnyWidget
{
- bool Checked;
- bool ButtonIsLeft;
+ bool Checked;
+ bool ButtonIsLeft;
CheckBoxWidget()
: AnyWidget( vcl::PDFWriter::CheckBox ),
@@ -362,9 +362,9 @@ public:
struct RadioButtonWidget : public AnyWidget
{
- bool Selected;
- sal_Int32 RadioGroup;
- bool ButtonIsLeft;
+ bool Selected;
+ sal_Int32 RadioGroup;
+ bool ButtonIsLeft;
rtl::OUString OnValue; // the value of the radio button if it is selected
RadioButtonWidget()
@@ -390,10 +390,10 @@ public:
struct EditWidget : public AnyWidget
{
- bool MultiLine; // whether multiple lines are allowed
- bool Password; // visible echo off
- bool FileSelect; // field is a file selector
- sal_Int32 MaxLen; // maximum field length in characters, 0 means unlimited
+ bool MultiLine; // whether multiple lines are allowed
+ bool Password; // visible echo off
+ bool FileSelect; // field is a file selector
+ sal_Int32 MaxLen; // maximum field length in characters, 0 means unlimited
EditWidget()
: AnyWidget( vcl::PDFWriter::Edit ),
@@ -411,10 +411,10 @@ public:
struct ListBoxWidget : public AnyWidget
{
- bool DropDown;
- bool Sort;
- bool MultiSelect;
- std::vector<rtl::OUString> Entries;
+ bool DropDown;
+ bool Sort;
+ bool MultiSelect;
+ std::vector<rtl::OUString> Entries;
std::vector<sal_Int32> SelectedEntries;
// if MultiSelect is false only the first entry of SelectedEntries
// will be taken into account. the same is implicit for PDF < 1.4
@@ -436,8 +436,8 @@ public:
// note: PDF only supports dropdown comboboxes
struct ComboBoxWidget : public AnyWidget
{
- bool Sort;
- std::vector<rtl::OUString> Entries;
+ bool Sort;
+ std::vector<rtl::OUString> Entries;
// set the current value in AnyWidget::Text
ComboBoxWidget()
@@ -493,7 +493,7 @@ The following structure describes the permissions used in PDF security
struct PDFSecPermissions
{
//for both 40 and 128 bit security, see 3.5.2 PDF v 1.4 table 3.15, v 1.5 and v 1.6 table 3.20.
- bool CanPrintTheDocument;
+ bool CanPrintTheDocument;
bool CanModifyTheContent;
bool CanCopyOrExtract;
bool CanAddOrModify;
@@ -504,23 +504,23 @@ The following structure describes the permissions used in PDF security
bool CanPrintFull;
//permission default set for 128 bit, accessibility only
PDFSecPermissions() :
- CanPrintTheDocument ( false ),
- CanModifyTheContent ( false ),
- CanCopyOrExtract ( false ),
- CanAddOrModify ( false ),
- CanFillInteractive ( false ),
- CanExtractForAccessibility ( true ),
- CanAssemble ( false ),
- CanPrintFull ( false )
+ CanPrintTheDocument ( false ),
+ CanModifyTheContent ( false ),
+ CanCopyOrExtract ( false ),
+ CanAddOrModify ( false ),
+ CanFillInteractive ( false ),
+ CanExtractForAccessibility ( true ),
+ CanAssemble ( false ),
+ CanPrintFull ( false )
{}
};
struct PDFWriterContext
{
/* must be a valid file: URL usable by osl */
- rtl::OUString URL;
+ rtl::OUString URL;
/* the URL of the document being exported, used for relative links*/
- rtl::OUString BaseURL;
+ rtl::OUString BaseURL;
/*if relative to file system should be formed*/
bool RelFsys;//i56629, i49415?, i64585?
/*the action to set the PDF hyperlink to*/
@@ -532,17 +532,17 @@ The following structure describes the permissions used in PDF security
bool ForcePDFAction;
/* decides the PDF language level to be produced */
- PDFVersion Version;
+ PDFVersion Version;
/* valid for PDF >= 1.4
causes the MarkInfo entry in the document catalog to be set
*/
- bool Tagged;
+ bool Tagged;
/* forces the embedding of PDF standard fonts */
bool EmbedStandardFonts;
/* determines in which format a form
will be submitted.
*/
- PDFWriter::ExportDataFormat SubmitFormat;
+ PDFWriter::ExportDataFormat SubmitFormat;
bool AllowDuplicateFieldNames;
bool FieldsUseSystemFonts;
/* the following data members are used to customize the PDF viewer
@@ -571,12 +571,12 @@ The following structure describes the permissions used in PDF security
sal_Int32 InitialPage;
sal_Int32 OpenBookmarkLevels; // -1 means all levels
- struct PDFSecPermissions AccessPermissions;
+ struct PDFSecPermissions AccessPermissions;
- bool Encrypt; // main encryption flag, must be true to encript
- bool Security128bit; // true to select 128 bit encryption, false for 40 bit
- rtl::OUString OwnerPassword; // owner password for PDF, in clear text
- rtl::OUString UserPassword; // user password for PDF, in clear text
+ bool Encrypt; // main encryption flag, must be true to encript
+ bool Security128bit; // true to select 128 bit encryption, false for 40 bit
+ rtl::OUString OwnerPassword; // owner password for PDF, in clear text
+ rtl::OUString UserPassword; // user password for PDF, in clear text
com::sun::star::lang::Locale DocumentLocale; // defines the document default language
@@ -667,8 +667,8 @@ The following structure describes the permissions used in PDF security
/* functions for graphics state */
/* flag values: see vcl/outdev.hxx */
- void Push( USHORT nFlags = 0xffff );
- void Pop();
+ void Push( USHORT nFlags = 0xffff );
+ void Pop();
void SetClipRegion();
void SetClipRegion( const basegfx::B2DPolyPolygon& rRegion );
@@ -703,81 +703,81 @@ The following structure describes the permissions used in PDF security
/* actual drawing functions */
- void DrawText( const Point& rPos, const String& rText );
+ void DrawText( const Point& rPos, const String& rText );
- void DrawTextLine( const Point& rPos, long nWidth,
+ void DrawTextLine( const Point& rPos, long nWidth,
FontStrikeout eStrikeout,
FontUnderline eUnderline,
FontUnderline eOverline,
BOOL bUnderlineAbove = FALSE );
- void DrawTextArray( const Point& rStartPt, const XubString& rStr,
+ void DrawTextArray( const Point& rStartPt, const XubString& rStr,
const sal_Int32* pDXAry = NULL,
xub_StrLen nIndex = 0,
xub_StrLen nLen = STRING_LEN );
- void DrawStretchText( const Point& rStartPt, ULONG nWidth,
+ void DrawStretchText( const Point& rStartPt, ULONG nWidth,
const XubString& rStr,
xub_StrLen nIndex = 0, xub_StrLen nLen = STRING_LEN );
- void DrawText( const Rectangle& rRect,
+ void DrawText( const Rectangle& rRect,
const XubString& rStr, USHORT nStyle = 0 );
- void DrawPixel( const Point& rPt, const Color& rColor );
- void DrawPixel( const Point& rPt )
+ void DrawPixel( const Point& rPt, const Color& rColor );
+ void DrawPixel( const Point& rPt )
{ DrawPixel( rPt, Color( COL_TRANSPARENT ) ); }
- void DrawPixel( const Polygon& rPts, const Color* pColors = NULL );
- void DrawPixel( const Polygon& rPts, const Color& rColor )
+ void DrawPixel( const Polygon& rPts, const Color* pColors = NULL );
+ void DrawPixel( const Polygon& rPts, const Color& rColor )
{ Push(); SetLineColor( rColor ); DrawPixel( rPts ); Pop(); }
- void DrawLine( const Point& rStartPt, const Point& rEndPt );
- void DrawLine( const Point& rStartPt, const Point& rEndPt,
+ void DrawLine( const Point& rStartPt, const Point& rEndPt );
+ void DrawLine( const Point& rStartPt, const Point& rEndPt,
const LineInfo& rLineInfo );
- void DrawPolyLine( const Polygon& rPoly );
- void DrawPolyLine( const Polygon& rPoly,
+ void DrawPolyLine( const Polygon& rPoly );
+ void DrawPolyLine( const Polygon& rPoly,
const LineInfo& rLineInfo );
void DrawPolyLine( const Polygon& rPoly, const ExtLineInfo& rInfo );
- void DrawPolygon( const Polygon& rPoly );
- void DrawPolyPolygon( const PolyPolygon& rPolyPoly );
- void DrawRect( const Rectangle& rRect );
- void DrawRect( const Rectangle& rRect,
+ void DrawPolygon( const Polygon& rPoly );
+ void DrawPolyPolygon( const PolyPolygon& rPolyPoly );
+ void DrawRect( const Rectangle& rRect );
+ void DrawRect( const Rectangle& rRect,
ULONG nHorzRount, ULONG nVertRound );
- void DrawEllipse( const Rectangle& rRect );
- void DrawArc( const Rectangle& rRect,
+ void DrawEllipse( const Rectangle& rRect );
+ void DrawArc( const Rectangle& rRect,
const Point& rStartPt, const Point& rEndPt );
- void DrawPie( const Rectangle& rRect,
+ void DrawPie( const Rectangle& rRect,
const Point& rStartPt, const Point& rEndPt );
- void DrawChord( const Rectangle& rRect,
+ void DrawChord( const Rectangle& rRect,
const Point& rStartPt, const Point& rEndPt );
- void DrawBitmap( const Point& rDestPt,
+ void DrawBitmap( const Point& rDestPt,
const Bitmap& rBitmap );
- void DrawBitmap( const Point& rDestPt, const Size& rDestSize,
+ void DrawBitmap( const Point& rDestPt, const Size& rDestSize,
const Bitmap& rBitmap );
- void DrawBitmap( const Point& rDestPt, const Size& rDestSize,
+ void DrawBitmap( const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel,
const Bitmap& rBitmap );
- void DrawBitmapEx( const Point& rDestPt,
+ void DrawBitmapEx( const Point& rDestPt,
const BitmapEx& rBitmapEx );
- void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize,
+ void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize,
const BitmapEx& rBitmapEx );
- void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize,
+ void DrawBitmapEx( const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel,
const BitmapEx& rBitmapEx );
- void DrawMask( const Point& rDestPt,
+ void DrawMask( const Point& rDestPt,
const Bitmap& rBitmap, const Color& rMaskColor );
- void DrawMask( const Point& rDestPt, const Size& rDestSize,
+ void DrawMask( const Point& rDestPt, const Size& rDestSize,
const Bitmap& rBitmap, const Color& rMaskColor );
- void DrawMask( const Point& rDestPt, const Size& rDestSize,
+ void DrawMask( const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel,
const Bitmap& rBitmap, const Color& rMaskColor );
- void DrawGradient( const Rectangle& rRect, const Gradient& rGradient );
- void DrawGradient( const PolyPolygon& rPolyPoly, const Gradient& rGradient );
+ void DrawGradient( const Rectangle& rRect, const Gradient& rGradient );
+ void DrawGradient( const PolyPolygon& rPolyPoly, const Gradient& rGradient );
- void DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch );
+ void DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch );
- void DrawWallpaper( const Rectangle& rRect, const Wallpaper& rWallpaper );
- void DrawTransparent( const PolyPolygon& rPolyPoly,
+ void DrawWallpaper( const Rectangle& rRect, const Wallpaper& rWallpaper );
+ void DrawTransparent( const PolyPolygon& rPolyPoly,
USHORT nTransparencePercent );
/** Start a transparency group
@@ -798,7 +798,7 @@ The following structure describes the permissions used in PDF security
will be ignored if the produced PDF has a lower version. The drawing
operations will be emitted normally.
*/
- void BeginTransparencyGroup();
+ void BeginTransparencyGroup();
/** End a transparency group with constant transparency factor
@@ -811,7 +811,7 @@ The following structure describes the permissions used in PDF security
@param nTransparencePercent
The transparency factor
*/
- void EndTransparencyGroup( const Rectangle& rBoundRect, USHORT nTransparencePercent );
+ void EndTransparencyGroup( const Rectangle& rBoundRect, USHORT nTransparencePercent );
/** End a transparency group with an alpha mask
@@ -824,7 +824,7 @@ The following structure describes the permissions used in PDF security
@param rAlphaMask
The transparency mask; must be an 8 bit grayscale image
*/
- void EndTransparencyGroup( const Rectangle& rBoundRect, const Bitmap& rAlphaMask );
+ void EndTransparencyGroup( const Rectangle& rBoundRect, const Bitmap& rAlphaMask );
/** Insert a JPG encoded image (optionally with mask)
@@ -845,7 +845,7 @@ The following structure describes the permissions used in PDF security
the same pixel size as the image and
be either 1 bit black&white or 8 bit grey
*/
- void DrawJPGBitmap( SvStream& rJPGData, bool bIsTrueColor, const Size& rSrcSizePixel, const Rectangle& rTargetArea, const Bitmap& rMask );
+ void DrawJPGBitmap( SvStream& rJPGData, bool bIsTrueColor, const Size& rSrcSizePixel, const Rectangle& rTargetArea, const Bitmap& rMask );
/** Create a new named destination to be used in a link from another PDF document
@@ -866,7 +866,7 @@ The following structure describes the permissions used in PDF security
the destination id (to be used in SetLinkDest) or
-1 if page id does not exist
*/
- sal_Int32 CreateNamedDest( const rtl::OUString& sDestName, const Rectangle& rRect, sal_Int32 nPageNr = -1, DestAreaType eType = XYZ );
+ sal_Int32 CreateNamedDest( const rtl::OUString& sDestName, const Rectangle& rRect, sal_Int32 nPageNr = -1, DestAreaType eType = XYZ );
/** Create a new destination to be used in a link
@param rRect
@@ -883,7 +883,7 @@ The following structure describes the permissions used in PDF security
the destination id (to be used in SetLinkDest) or
-1 if page id does not exist
*/
- sal_Int32 CreateDest( const Rectangle& rRect, sal_Int32 nPageNr = -1, DestAreaType eType = XYZ );
+ sal_Int32 CreateDest( const Rectangle& rRect, sal_Int32 nPageNr = -1, DestAreaType eType = XYZ );
/** Create a new link on a page
@param rRect
@@ -898,7 +898,7 @@ The following structure describes the permissions used in PDF security
the link id (to be used in SetLinkDest, SetLinkURL) or
-1 if page id does not exist
*/
- sal_Int32 CreateLink( const Rectangle& rRect, sal_Int32 nPageNr = -1 );
+ sal_Int32 CreateLink( const Rectangle& rRect, sal_Int32 nPageNr = -1 );
/** Set the destination for a link
<p>will change a URL type link to a dest link if necessary</p>
@@ -912,7 +912,7 @@ The following structure describes the permissions used in PDF security
-1 in case the link id does not exist
-2 in case the dest id does not exist
*/
- sal_Int32 SetLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId );
+ sal_Int32 SetLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId );
/** Set the URL for a link
<p>will change a dest type link to an URL type link if necessary</p>
@param nLinkId
@@ -927,7 +927,7 @@ The following structure describes the permissions used in PDF security
0 for success
-1 in case the link id does not exist
*/
- sal_Int32 SetLinkURL( sal_Int32 nLinkId, const rtl::OUString& rURL );
+ sal_Int32 SetLinkURL( sal_Int32 nLinkId, const rtl::OUString& rURL );
/** Resolve link in logical structure
<p>
If a link is created after the corresponding visual appearance was drawn
@@ -957,7 +957,7 @@ The following structure describes the permissions used in PDF security
the arbitrary id set in a <code>Link</code> structure element to address
the link with real id <code>nLinkId</code>
*/
- void SetLinkPropertyID( sal_Int32 nLinkId, sal_Int32 nPropertyID );
+ void SetLinkPropertyID( sal_Int32 nLinkId, sal_Int32 nPropertyID );
/** Create a new outline item
@param nParent
diff --git a/vcl/inc/vcl/pngread.hxx b/vcl/inc/vcl/pngread.hxx
index 64385f604537..c22ee413233b 100644
--- a/vcl/inc/vcl/pngread.hxx
+++ b/vcl/inc/vcl/pngread.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace vcl
class VCL_DLLPUBLIC PNGReader
{
- PNGReaderImpl* mpImpl;
+ PNGReaderImpl* mpImpl;
public:
@@ -54,15 +54,15 @@ namespace vcl
/* an empty preview size hint (=default) will read the whole image
*/
- BitmapEx Read( const Size& i_rPreviewHint = Size() );
+ BitmapEx Read( const Size& i_rPreviewHint = Size() );
// retrieve every chunk that resides inside the PNG
struct ChunkData
{
- sal_uInt32 nType;
- std::vector< sal_uInt8 > aData;
+ sal_uInt32 nType;
+ std::vector< sal_uInt8 > aData;
};
- const std::vector< ChunkData >& GetChunks() const;
+ const std::vector< ChunkData >& GetChunks() const;
void SetIgnoreGammaChunk( sal_Bool b );
};
diff --git a/vcl/inc/vcl/pngwrite.hxx b/vcl/inc/vcl/pngwrite.hxx
index 15c8c624a5ff..6894c651f047 100644
--- a/vcl/inc/vcl/pngwrite.hxx
+++ b/vcl/inc/vcl/pngwrite.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ namespace vcl
class VCL_DLLPUBLIC PNGWriter
{
- PNGWriterImpl* mpImpl;
+ PNGWriterImpl* mpImpl;
public:
@@ -58,8 +58,8 @@ namespace vcl
// additional method to be able to modify all chunk before they are stored
struct ChunkData
{
- sal_uInt32 nType;
- std::vector< sal_uInt8 > aData;
+ sal_uInt32 nType;
+ std::vector< sal_uInt8 > aData;
};
std::vector< vcl::PNGWriter::ChunkData >& GetChunks();
};
diff --git a/vcl/inc/vcl/pointr.hxx b/vcl/inc/vcl/pointr.hxx
index f003300b1f56..642e3c9c5cb1 100644
--- a/vcl/inc/vcl/pointr.hxx
+++ b/vcl/inc/vcl/pointr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ class Point;
class VCL_DLLPUBLIC Pointer
{
- PointerStyle meStyle;
+ PointerStyle meStyle;
public:
Pointer()
@@ -49,11 +49,11 @@ public:
Pointer( PointerStyle eStyle )
{ meStyle = eStyle; }
- PointerStyle GetStyle() const { return meStyle; }
+ PointerStyle GetStyle() const { return meStyle; }
- BOOL operator==( const Pointer& rPointer ) const
+ BOOL operator==( const Pointer& rPointer ) const
{ return (meStyle == rPointer.meStyle); }
- BOOL operator!=( const Pointer& rPointer ) const
+ BOOL operator!=( const Pointer& rPointer ) const
{ return !(Pointer::operator==( rPointer )); }
};
diff --git a/vcl/inc/vcl/polyscan.hxx b/vcl/inc/vcl/polyscan.hxx
index a8d9b6a31b5a..83859edec270 100644
--- a/vcl/inc/vcl/polyscan.hxx
+++ b/vcl/inc/vcl/polyscan.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,14 +37,14 @@
struct ScanlinePoint
{
- long mnX;
- ScanlinePoint* mpNext;
+ long mnX;
+ ScanlinePoint* mpNext;
ScanlinePoint() : mnX( 0L ), mpNext( NULL ) {};
ScanlinePoint( long nX, ScanlinePoint* pNext ) : mnX( nX ), mpNext( pNext ) {};
~ScanlinePoint() {};
- void Set( long nX, ScanlinePoint* pNext ) { mnX = nX, mpNext = pNext; }
+ void Set( long nX, ScanlinePoint* pNext ) { mnX = nX, mpNext = pNext; }
};
// -------------------
@@ -53,11 +53,11 @@ struct ScanlinePoint
struct PolyScanSegment
{
- long mnStart;
- long mnEnd;
-
+ long mnStart;
+ long mnEnd;
+
PolyScanSegment() : mnStart( 0L ), mnEnd( 0L ) {};
- PolyScanSegment( long nStart, long nEnd ) : mnStart( nStart ), mnEnd( nEnd ) {};
+ PolyScanSegment( long nStart, long nEnd ) : mnStart( nStart ), mnEnd( nEnd ) {};
~PolyScanSegment() {};
};
@@ -65,36 +65,36 @@ struct PolyScanSegment
// - PolyScanline -
// ----------------
-struct ScanlinePoint;
-class Polygon;
-class PolyPolygon;
+struct ScanlinePoint;
+class Polygon;
+class PolyPolygon;
class PolyScanline
{
private:
- ScanlinePoint* mpFirst;
- ScanlinePoint* mpLast;
- ScanlinePoint* mpAct;
- long mnLeft;
- long mnRight;
-
- void ImplDelete();
-
+ ScanlinePoint* mpFirst;
+ ScanlinePoint* mpLast;
+ ScanlinePoint* mpAct;
+ long mnLeft;
+ long mnRight;
+
+ void ImplDelete();
+
public:
-
+
PolyScanline();
~PolyScanline();
-
- void Insert( long nX );
- void Set( long nStart, long nEnd );
- void Set( const PolyScanSegment& rSegment ) { Set( rSegment.mnStart, rSegment.mnEnd ); }
-
- inline BOOL GetFirstX( long& rX );
- inline BOOL GetNextX( long& rX );
-
- BOOL GetFirstSegment( PolyScanSegment& rSegment );
- BOOL GetNextSegment( PolyScanSegment& rSegment );
+
+ void Insert( long nX );
+ void Set( long nStart, long nEnd );
+ void Set( const PolyScanSegment& rSegment ) { Set( rSegment.mnStart, rSegment.mnEnd ); }
+
+ inline BOOL GetFirstX( long& rX );
+ inline BOOL GetNextX( long& rX );
+
+ BOOL GetFirstSegment( PolyScanSegment& rSegment );
+ BOOL GetNextSegment( PolyScanSegment& rSegment );
};
// ------------------------------------------------------------------------
@@ -119,18 +119,18 @@ inline BOOL PolyScanline::GetNextX( long& rX )
class PolyScanner
{
private:
-
- PolyScanline* mpArray;
- long mnLeft;
- long mnTop;
- long mnRight;
- long mnBottom;
+
+ PolyScanline* mpArray;
+ long mnLeft;
+ long mnTop;
+ long mnRight;
+ long mnBottom;
PolyScanner() {};
protected:
- void InsertLine( const Point& rStart, const Point& rEnd );
+ void InsertLine( const Point& rStart, const Point& rEnd );
public:
@@ -139,18 +139,18 @@ public:
PolyScanner( const PolyPolygon& rPolyPoly );
~PolyScanner();
- long Left() const { return mnLeft; }
- long Top() const { return mnTop; }
- long Right() const { return mnRight; }
- long Bottom() const { return mnBottom; }
+ long Left() const { return mnLeft; }
+ long Top() const { return mnTop; }
+ long Right() const { return mnRight; }
+ long Bottom() const { return mnBottom; }
- long Width() const { return( mnRight - mnLeft + 1L ); }
- long Height() const { return( mnBottom - mnTop + 1L ); }
+ long Width() const { return( mnRight - mnLeft + 1L ); }
+ long Height() const { return( mnBottom - mnTop + 1L ); }
- Rectangle GetBoundRect() const { return Rectangle( mnLeft, mnTop, mnRight, mnBottom ); }
+ Rectangle GetBoundRect() const { return Rectangle( mnLeft, mnTop, mnRight, mnBottom ); }
- ULONG Count() const { return Height(); }
- PolyScanline* operator[]( ULONG nPos ) const;
+ ULONG Count() const { return Height(); }
+ PolyScanline* operator[]( ULONG nPos ) const;
};
#endif // _SV_POLYSCAN_HXX
diff --git a/vcl/inc/vcl/popupmenuwindow.hxx b/vcl/inc/vcl/popupmenuwindow.hxx
index 9759ab42fb73..59cdad454a43 100644
--- a/vcl/inc/vcl/popupmenuwindow.hxx
+++ b/vcl/inc/vcl/popupmenuwindow.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/ppdparser.hxx b/vcl/inc/vcl/ppdparser.hxx
index e306bf2dd61d..047b0677eca2 100644
--- a/vcl/inc/vcl/ppdparser.hxx
+++ b/vcl/inc/vcl/ppdparser.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,22 +66,22 @@ class PPDKey
typedef ::std::hash_map< ::rtl::OUString, PPDValue, ::rtl::OUStringHash > hash_type;
typedef ::std::vector< PPDValue* > value_type;
- String m_aKey;
- hash_type m_aValues;
- value_type m_aOrderedValues;
- const PPDValue* m_pDefaultValue;
- bool m_bQueryValue;
- PPDValue m_aQueryValue;
+ String m_aKey;
+ hash_type m_aValues;
+ value_type m_aOrderedValues;
+ const PPDValue* m_pDefaultValue;
+ bool m_bQueryValue;
+ PPDValue m_aQueryValue;
public:
enum UIType { PickOne, PickMany, Boolean };
enum SetupType { ExitServer, Prolog, DocumentSetup, PageSetup, JCLSetup, AnySetup };
private:
- bool m_bUIOption;
- UIType m_eUIType;
- int m_nOrderDependency;
- SetupType m_eSetupType;
+ bool m_bUIOption;
+ UIType m_eUIType;
+ int m_nOrderDependency;
+ SetupType m_eSetupType;
void eraseValue( const String& rOption );
public:
@@ -146,42 +146,42 @@ private:
static ::std::hash_map< rtl::OUString, rtl::OUString, rtl::OUStringHash >*
pAllPPDFiles;
- hash_type m_aKeys;
- value_type m_aOrderedKeys;
- ::std::list< PPDConstraint > m_aConstraints;
+ hash_type m_aKeys;
+ value_type m_aOrderedKeys;
+ ::std::list< PPDConstraint > m_aConstraints;
// some identifying fields
- String m_aPrinterName;
- String m_aNickName;
+ String m_aPrinterName;
+ String m_aNickName;
// the full path of the PPD file
- String m_aFile;
+ String m_aFile;
// some basic attributes
- bool m_bColorDevice;
- bool m_bType42Capable;
- ULONG m_nLanguageLevel;
+ bool m_bColorDevice;
+ bool m_bType42Capable;
+ ULONG m_nLanguageLevel;
rtl_TextEncoding m_aFileEncoding;
// shortcuts to important keys and their default values
// imageable area
- const PPDValue* m_pDefaultImageableArea;
- const PPDKey* m_pImageableAreas;
+ const PPDValue* m_pDefaultImageableArea;
+ const PPDKey* m_pImageableAreas;
// paper dimensions
- const PPDValue* m_pDefaultPaperDimension;
- const PPDKey* m_pPaperDimensions;
+ const PPDValue* m_pDefaultPaperDimension;
+ const PPDKey* m_pPaperDimensions;
// paper trays
- const PPDValue* m_pDefaultInputSlot;
- const PPDKey* m_pInputSlots;
+ const PPDValue* m_pDefaultInputSlot;
+ const PPDKey* m_pInputSlots;
// resolutions
- const PPDValue* m_pDefaultResolution;
- const PPDKey* m_pResolutions;
+ const PPDValue* m_pDefaultResolution;
+ const PPDKey* m_pResolutions;
// duplex commands
- const PPDValue* m_pDefaultDuplexType;
- const PPDKey* m_pDuplexTypes;
+ const PPDValue* m_pDefaultDuplexType;
+ const PPDKey* m_pDuplexTypes;
// fonts
- const PPDKey* m_pFontList;
-
+ const PPDKey* m_pFontList;
+
// translations
PPDTranslator* m_pTranslator;
@@ -192,7 +192,7 @@ private:
void parseOpenUI( const ByteString& rLine );
void parseConstraint( const ByteString& rLine );
void parse( std::list< ByteString >& rLines );
-
+
String handleTranslation( const ByteString& i_rString, bool i_bIsGlobalized );
static void scanPPDDir( const String& rDir );
@@ -237,15 +237,15 @@ public:
// match the best paper for width and height
String matchPaper( int nWidth, int nHeight ) const;
-
+
bool getMargins( const String& rPaperName,
int &rLeft, int& rRight,
int &rUpper, int& rLower ) const;
// values in pt
// returns true if paper found
-
+
// values int pt
-
+
String getDefaultInputSlot() const;
int getInputSlots() const
{ return m_pInputSlots ? m_pInputSlots->countValues() : 0; }
@@ -277,8 +277,8 @@ public:
String& rEncoding,
String& rCharset ) const;
String getFont( int ) const;
-
-
+
+
rtl::OUString translateKey( const rtl::OUString& i_rKey,
const com::sun::star::lang::Locale& i_rLocale = com::sun::star::lang::Locale() ) const;
rtl::OUString translateOption( const rtl::OUString& i_rKey,
diff --git a/vcl/inc/vcl/print.h b/vcl/inc/vcl/print.h
index 5928cd6649a5..57c4bf074395 100644
--- a/vcl/inc/vcl/print.h
+++ b/vcl/inc/vcl/print.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,8 +48,8 @@ namespace vcl
struct ImplPrnQueueData
{
- QueueInfo* mpQueueInfo;
- SalPrinterQueueInfo* mpSalQueueInfo;
+ QueueInfo* mpQueueInfo;
+ SalPrinterQueueInfo* mpSalQueueInfo;
};
// --------------------
@@ -67,7 +67,7 @@ public:
ImplPrnQueueList() {}
~ImplPrnQueueList();
- void Add( SalPrinterQueueInfo* pData );
+ void Add( SalPrinterQueueInfo* pData );
ImplPrnQueueData* Get( const rtl::OUString& rPrinter );
};
diff --git a/vcl/inc/vcl/print.hxx b/vcl/inc/vcl/print.hxx
index 85f41d564686..db41a166dcd2 100644
--- a/vcl/inc/vcl/print.hxx
+++ b/vcl/inc/vcl/print.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ namespace vcl {
// - Printer-Types -
// -----------------
-#define PAGEQUEUE_ALLPAGES 0xFFFF
+#define PAGEQUEUE_ALLPAGES 0xFFFF
enum PrinterSupport { SUPPORT_SET_ORIENTATION, SUPPORT_SET_PAPERBIN,
SUPPORT_SET_PAPERSIZE, SUPPORT_SET_PAPER,
@@ -106,29 +106,29 @@ class VCL_DLLPUBLIC QueueInfo
friend class Printer;
private:
- XubString maPrinterName;
- XubString maDriver;
- XubString maLocation;
- XubString maComment;
- sal_uInt32 mnStatus;
- sal_uInt32 mnJobs;
+ XubString maPrinterName;
+ XubString maDriver;
+ XubString maLocation;
+ XubString maComment;
+ sal_uInt32 mnStatus;
+ sal_uInt32 mnJobs;
public:
QueueInfo();
QueueInfo( const QueueInfo& rInfo );
~QueueInfo();
- const XubString& GetPrinterName() const { return maPrinterName; }
- const XubString& GetDriver() const { return maDriver; }
- const XubString& GetLocation() const { return maLocation; }
- const XubString& GetComment() const { return maComment; }
- sal_uInt32 GetStatus() const { return mnStatus; }
- sal_uInt32 GetJobs() const { return mnJobs; }
+ const XubString& GetPrinterName() const { return maPrinterName; }
+ const XubString& GetDriver() const { return maDriver; }
+ const XubString& GetLocation() const { return maLocation; }
+ const XubString& GetComment() const { return maComment; }
+ sal_uInt32 GetStatus() const { return mnStatus; }
+ sal_uInt32 GetJobs() const { return mnJobs; }
bool operator==( const QueueInfo& rInfo ) const;
- friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, QueueInfo& rInfo );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const QueueInfo& rInfo );
+ friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, QueueInfo& rInfo );
+ friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const QueueInfo& rInfo );
};
// ------------------
@@ -136,7 +136,7 @@ public:
// ------------------
enum PrinterTransparencyMode
-{
+{
PRINTER_TRANSPARENCY_AUTO = 0,
PRINTER_TRANSPARENCY_NONE = 1
};
@@ -144,7 +144,7 @@ enum PrinterTransparencyMode
// -----------------------------------------------------------------------------
enum PrinterGradientMode
-{
+{
PRINTER_GRADIENT_STRIPES = 0,
PRINTER_GRADIENT_COLOR = 1
};
@@ -152,7 +152,7 @@ enum PrinterGradientMode
// -----------------------------------------------------------------------------
enum PrinterBitmapMode
-{
+{
PRINTER_BITMAP_OPTIMAL = 0,
PRINTER_BITMAP_NORMAL = 1,
PRINTER_BITMAP_RESOLUTION = 2
@@ -176,31 +176,31 @@ private:
BOOL mbConvertToGreyscales;
public:
-
+
PrinterOptions();
~PrinterOptions();
BOOL IsReduceTransparency() const { return mbReduceTransparency; }
void SetReduceTransparency( BOOL bSet ) { mbReduceTransparency = bSet; }
-
+
PrinterTransparencyMode GetReducedTransparencyMode() const { return meReducedTransparencyMode; }
void SetReducedTransparencyMode( PrinterTransparencyMode eMode ) { meReducedTransparencyMode = eMode; }
-
+
BOOL IsReduceGradients() const { return mbReduceGradients; }
void SetReduceGradients( BOOL bSet ) { mbReduceGradients = bSet; }
-
+
PrinterGradientMode GetReducedGradientMode() const { return meReducedGradientsMode; }
void SetReducedGradientMode( PrinterGradientMode eMode ) { meReducedGradientsMode = eMode; }
USHORT GetReducedGradientStepCount() const { return mnReducedGradientStepCount; }
void SetReducedGradientStepCount( USHORT nStepCount ) { mnReducedGradientStepCount = nStepCount; }
-
+
BOOL IsReduceBitmaps() const { return mbReduceBitmaps; }
void SetReduceBitmaps( BOOL bSet ) { mbReduceBitmaps = bSet; }
-
+
PrinterBitmapMode GetReducedBitmapMode() const { return meReducedBitmapMode; }
void SetReducedBitmapMode( PrinterBitmapMode eMode ) { meReducedBitmapMode = eMode; }
-
+
USHORT GetReducedBitmapResolution() const { return mnReducedBitmapResolution; }
void SetReducedBitmapResolution( USHORT nResolution ) { mnReducedBitmapResolution = nResolution; }
@@ -221,53 +221,53 @@ class VCL_DLLPUBLIC Printer : public OutputDevice
friend class ImplQPrinter;
private:
- SalInfoPrinter* mpInfoPrinter;
- SalPrinter* mpPrinter;
- SalGraphics* mpJobGraphics;
- Printer* mpPrev;
- Printer* mpNext;
- VirtualDevice* mpDisplayDev;
+ SalInfoPrinter* mpInfoPrinter;
+ SalPrinter* mpPrinter;
+ SalGraphics* mpJobGraphics;
+ Printer* mpPrev;
+ Printer* mpNext;
+ VirtualDevice* mpDisplayDev;
PrinterOptions* mpPrinterOptions;
- XubString maPrinterName;
- XubString maDriver;
- XubString maPrintFile;
- XubString maJobName;
- JobSetup maJobSetup;
- Point maPageOffset;
- Size maPaperSize;
- ULONG mnError;
- USHORT mnCurPage;
- USHORT mnCurPrintPage;
- USHORT mnPageQueueSize;
- USHORT mnCopyCount;
- BOOL mbDefPrinter;
- BOOL mbPrinting;
- BOOL mbJobActive;
- BOOL mbCollateCopy;
- BOOL mbPrintFile;
- BOOL mbInPrintPage;
- BOOL mbNewJobSetup;
- BOOL mbIsQueuePrinter;
- BOOL mbUserSetupCompleted;
- BOOL mbUserSetupResult;
- Link maErrorHdl;
-
- SAL_DLLPRIVATE void ImplInitData();
- SAL_DLLPRIVATE void ImplInit( SalPrinterQueueInfo* pInfo );
- SAL_DLLPRIVATE void ImplInitDisplay( const Window* pWindow );
+ XubString maPrinterName;
+ XubString maDriver;
+ XubString maPrintFile;
+ XubString maJobName;
+ JobSetup maJobSetup;
+ Point maPageOffset;
+ Size maPaperSize;
+ ULONG mnError;
+ USHORT mnCurPage;
+ USHORT mnCurPrintPage;
+ USHORT mnPageQueueSize;
+ USHORT mnCopyCount;
+ BOOL mbDefPrinter;
+ BOOL mbPrinting;
+ BOOL mbJobActive;
+ BOOL mbCollateCopy;
+ BOOL mbPrintFile;
+ BOOL mbInPrintPage;
+ BOOL mbNewJobSetup;
+ BOOL mbIsQueuePrinter;
+ BOOL mbUserSetupCompleted;
+ BOOL mbUserSetupResult;
+ Link maErrorHdl;
+
+ SAL_DLLPRIVATE void ImplInitData();
+ SAL_DLLPRIVATE void ImplInit( SalPrinterQueueInfo* pInfo );
+ SAL_DLLPRIVATE void ImplInitDisplay( const Window* pWindow );
SAL_DLLPRIVATE static SalPrinterQueueInfo* ImplGetQueueInfo( const XubString& rPrinterName,
const XubString* pDriver );
- SAL_DLLPRIVATE void ImplUpdatePageData();
- SAL_DLLPRIVATE void ImplUpdateFontList();
- SAL_DLLPRIVATE void ImplFindPaperFormatForUserSize( JobSetup&, bool bMatchNearest );
+ SAL_DLLPRIVATE void ImplUpdatePageData();
+ SAL_DLLPRIVATE void ImplUpdateFontList();
+ SAL_DLLPRIVATE void ImplFindPaperFormatForUserSize( JobSetup&, bool bMatchNearest );
DECL_DLLPRIVATE_LINK( ImplDestroyPrinterAsync, void* );
SAL_DLLPRIVATE bool StartJob( const rtl::OUString& rJobName, boost::shared_ptr<vcl::PrinterController>& );
-
+
static SAL_DLLPRIVATE ULONG ImplSalPrinterErrorCodeToVCL( ULONG nError );
private:
- SAL_DLLPRIVATE void ImplEndPrint();
+ SAL_DLLPRIVATE void ImplEndPrint();
SAL_DLLPRIVATE BOOL EndJob();
SAL_DLLPRIVATE Printer( const Printer& rPrinter );
SAL_DLLPRIVATE Printer& operator =( const Printer& rPrinter );
@@ -280,8 +280,8 @@ public:
protected:
- void SetSelfAsQueuePrinter( BOOL bQueuePrinter ) { mbIsQueuePrinter = bQueuePrinter; }
- BOOL IsQueuePrinter() const { return mbIsQueuePrinter; }
+ void SetSelfAsQueuePrinter( BOOL bQueuePrinter ) { mbIsQueuePrinter = bQueuePrinter; }
+ BOOL IsQueuePrinter() const { return mbIsQueuePrinter; }
public:
Printer();
@@ -289,84 +289,84 @@ public:
Printer( const JobSetup& rJobSetup );
Printer( const QueueInfo& rQueueInfo );
Printer( const XubString& rPrinterName );
- virtual ~Printer();
+ virtual ~Printer();
static const std::vector< rtl::OUString >& GetPrinterQueues();
static const QueueInfo* GetQueueInfo( const String& rPrinterName, bool bStatusUpdate );
- static XubString GetDefaultPrinterName();
+ static XubString GetDefaultPrinterName();
- virtual void Error();
+ virtual void Error();
- const XubString& GetName() const { return maPrinterName; }
- const XubString& GetDriverName() const { return maDriver; }
- BOOL IsDefPrinter() const { return mbDefPrinter; }
- BOOL IsDisplayPrinter() const { return mpDisplayDev != NULL; }
- BOOL IsValid() const { return !IsDisplayPrinter(); }
+ const XubString& GetName() const { return maPrinterName; }
+ const XubString& GetDriverName() const { return maDriver; }
+ BOOL IsDefPrinter() const { return mbDefPrinter; }
+ BOOL IsDisplayPrinter() const { return mpDisplayDev != NULL; }
+ BOOL IsValid() const { return !IsDisplayPrinter(); }
- ULONG GetCapabilities( USHORT nType ) const;
- BOOL HasSupport( PrinterSupport eFeature ) const;
+ ULONG GetCapabilities( USHORT nType ) const;
+ BOOL HasSupport( PrinterSupport eFeature ) const;
- BOOL SetJobSetup( const JobSetup& rSetup );
- const JobSetup& GetJobSetup() const { return maJobSetup; }
- String GetJobValue( const String& rKey ) const { return maJobSetup.GetValue( rKey ); }
- void SetJobValue( const String& rKey, const String& rValue ) { maJobSetup.SetValue( rKey, rValue ); }
+ BOOL SetJobSetup( const JobSetup& rSetup );
+ const JobSetup& GetJobSetup() const { return maJobSetup; }
+ String GetJobValue( const String& rKey ) const { return maJobSetup.GetValue( rKey ); }
+ void SetJobValue( const String& rKey, const String& rValue ) { maJobSetup.SetValue( rKey, rValue ); }
- BOOL Setup( Window* pWindow = NULL );
- BOOL SetPrinterProps( const Printer* pPrinter );
+ BOOL Setup( Window* pWindow = NULL );
+ BOOL SetPrinterProps( const Printer* pPrinter );
void SetPrinterOptions( const PrinterOptions& rOptions ) { *mpPrinterOptions = rOptions; }
const PrinterOptions& GetPrinterOptions() const { return( *mpPrinterOptions ); }
- BOOL SetOrientation( Orientation eOrient );
- Orientation GetOrientation() const;
+ BOOL SetOrientation( Orientation eOrient );
+ Orientation GetOrientation() const;
DuplexMode GetDuplexMode() const;
BOOL SetDuplexMode( DuplexMode );
// returns the angle that a landscape page will be turned counterclockwise
// wrt to portrait. The return value may be only valid for
// the current paper
- int GetLandscapeAngle() const;
- BOOL SetPaperBin( USHORT nPaperBin );
- USHORT GetPaperBin() const;
- BOOL SetPaper( Paper ePaper );
- BOOL SetPaperSizeUser( const Size& rSize );
- BOOL SetPaperSizeUser( const Size& rSize, bool bMatchNearest );
- Paper GetPaper() const;
+ int GetLandscapeAngle() const;
+ BOOL SetPaperBin( USHORT nPaperBin );
+ USHORT GetPaperBin() const;
+ BOOL SetPaper( Paper ePaper );
+ BOOL SetPaperSizeUser( const Size& rSize );
+ BOOL SetPaperSizeUser( const Size& rSize, bool bMatchNearest );
+ Paper GetPaper() const;
// returns number of available paper formats
- int GetPaperInfoCount() const;
+ int GetPaperInfoCount() const;
// returns info about paper format nPaper
- const PaperInfo& GetPaperInfo( int nPaper ) const;
- USHORT GetPaperBinCount() const;
- XubString GetPaperBinName( USHORT nPaperBin ) const;
-
- const Size& GetPaperSizePixel() const { return maPaperSize; }
- Size GetPaperSize() const { return PixelToLogic( maPaperSize ); }
- const Point& GetPageOffsetPixel() const { return maPageOffset; }
- Point GetPageOffset() const { return PixelToLogic( maPageOffset ); }
-
- BOOL SetCopyCount( USHORT nCopy, BOOL bCollate = FALSE );
- USHORT GetCopyCount() const { return mnCopyCount; }
- BOOL IsCollateCopy() const { return mbCollateCopy; }
-
- BOOL IsPrinting() const { return mbPrinting; }
-
- void SetPrintFile( const XubString& rFileName ) { maPrintFile = rFileName; }
- const XubString& GetPrintFile() const { return maPrintFile; }
- void EnablePrintFile( BOOL bEnable ) { mbPrintFile = bEnable; }
- BOOL IsPrintFileEnabled() const { return mbPrintFile; }
- BOOL AbortJob();
- const XubString& GetCurJobName() const { return maJobName; }
- USHORT GetCurPage() const { return mnCurPage; }
- BOOL IsJobActive() const { return mbJobActive; }
-
- ULONG GetError() const { return ERRCODE_TOERROR(mnError); }
- ULONG GetErrorCode() const { return mnError; }
-
- void SetErrorHdl( const Link& rLink ) { maErrorHdl = rLink; }
- const Link& GetErrorHdl() const { return maErrorHdl; }
-
+ const PaperInfo& GetPaperInfo( int nPaper ) const;
+ USHORT GetPaperBinCount() const;
+ XubString GetPaperBinName( USHORT nPaperBin ) const;
+
+ const Size& GetPaperSizePixel() const { return maPaperSize; }
+ Size GetPaperSize() const { return PixelToLogic( maPaperSize ); }
+ const Point& GetPageOffsetPixel() const { return maPageOffset; }
+ Point GetPageOffset() const { return PixelToLogic( maPageOffset ); }
+
+ BOOL SetCopyCount( USHORT nCopy, BOOL bCollate = FALSE );
+ USHORT GetCopyCount() const { return mnCopyCount; }
+ BOOL IsCollateCopy() const { return mbCollateCopy; }
+
+ BOOL IsPrinting() const { return mbPrinting; }
+
+ void SetPrintFile( const XubString& rFileName ) { maPrintFile = rFileName; }
+ const XubString& GetPrintFile() const { return maPrintFile; }
+ void EnablePrintFile( BOOL bEnable ) { mbPrintFile = bEnable; }
+ BOOL IsPrintFileEnabled() const { return mbPrintFile; }
+ BOOL AbortJob();
+ const XubString& GetCurJobName() const { return maJobName; }
+ USHORT GetCurPage() const { return mnCurPage; }
+ BOOL IsJobActive() const { return mbJobActive; }
+
+ ULONG GetError() const { return ERRCODE_TOERROR(mnError); }
+ ULONG GetErrorCode() const { return mnError; }
+
+ void SetErrorHdl( const Link& rLink ) { maErrorHdl = rLink; }
+ const Link& GetErrorHdl() const { return maErrorHdl; }
+
void Compat_OldPrinterMetrics( bool bSet );
-
+
/** checks the printer list and updates it necessary
*
* sends a DataChanged event of type DATACHANGED_PRINTER
@@ -375,9 +375,9 @@ public:
static void updatePrinters();
/** execute a print job
-
+
starts a print job asynchronously (that is will return
-
+
*/
static void PrintJob( const boost::shared_ptr<vcl::PrinterController>& i_pController,
const JobSetup& i_rInitSetup
@@ -417,7 +417,7 @@ public:
long nVerticalSpacing;
bool bDrawBorder;
PrinterController::NupOrderType nOrder;
-
+
MultiPageSetup()
: nRows( 1 ), nColumns( 1 ), nRepeat( 1 ), aPaperSize( 21000, 29700 )
, nLeftMargin( 0 ), nTopMargin( 0 )
@@ -428,30 +428,30 @@ public:
{
}
};
-
+
struct PageSize
{
Size aSize; // in 100th mm
bool bFullPaper; // full paper, not only imageable area is printed
-
+
PageSize( const Size& i_rSize = Size( 21000, 29700 ),
bool i_bFullPaper = false
) : aSize( i_rSize ), bFullPaper( i_bFullPaper ) {}
};
-
+
PrinterController();
virtual ~PrinterController();
-
+
const boost::shared_ptr<Printer>& getPrinter() const;
/* for implementations: get current job properties as changed by e.g. print dialog
this gets the current set of properties initially told to Printer::PrintJob
-
+
For convenience a second sequence will be merged in to get a combined sequence.
In case of duplicate property names, the value of i_MergeList wins.
*/
com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >
getJobProperties( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& i_rMergeList ) const;
-
+
/* get the PropertyValue of a Property
*/
com::sun::star::beans::PropertyValue* getValue( const rtl::OUString& i_rPropertyName );
@@ -462,12 +462,12 @@ public:
in case the property is unknown or not convertible to bool, i_bFallback is returned
*/
sal_Bool getBoolProperty( const rtl::OUString& i_rPropertyName, sal_Bool i_bFallback ) const;
-
+
/* set a property value - can also be used to add another UI property
*/
void setValue( const rtl::OUString& i_rPropertyName, const com::sun::star::uno::Any& i_rValue );
void setValue( const com::sun::star::beans::PropertyValue& i_rValue );
-
+
/* return the currently active UI options. These are the same that were passed to setUIOptions.
*/
const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& getUIOptions() const;
@@ -486,7 +486,7 @@ public:
/* makeEnabled will chage the property rPropName depends on to the value
that makes rPropName enabled. If the dependency itself is also disabled,
no action will be performed.
-
+
returns the property name rPropName depends on or an empty string
if no change was made.
*/
@@ -505,14 +505,14 @@ public:
virtual void printPage( int i_nPage ) const = 0; // must be overloaded by the app
virtual void jobStarted(); // will be called after a possible dialog has been shown and the real printjob starts
virtual void jobFinished( com::sun::star::view::PrintableState );
-
+
com::sun::star::view::PrintableState getJobState() const;
-
+
void abortJob();
-
+
bool isShowDialogs() const;
bool isDirectPrint() const;
-
+
// implementation details, not usable outside vcl
SAL_DLLPRIVATE int getFilteredPageCount();
SAL_DLLPRIVATE PageSize getPageFile( int i_inUnfilteredPage, GDIMetaFile& rMtf, bool i_bMayUseCache = false );
@@ -530,10 +530,10 @@ public:
SAL_DLLPRIVATE void pushPropertiesToPrinter();
SAL_DLLPRIVATE void setJobState( com::sun::star::view::PrintableState );
SAL_DLLPRIVATE bool setupPrinter( Window* i_pDlgParent );
-
+
SAL_DLLPRIVATE int getPageCountProtected() const;
SAL_DLLPRIVATE com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > getPageParametersProtected( int i_nPage ) const;
-
+
SAL_DLLPRIVATE ULONG removeTransparencies( GDIMetaFile& i_rIn, GDIMetaFile& o_rOut );
};
@@ -567,7 +567,7 @@ class VCL_DLLPUBLIC PrinterOptionsHelper
bool hasProperty( const rtl::OUString& i_rPropertyName ) const;
bool hasProperty( const char* i_pPropertyName ) const
{ return hasProperty( rtl::OUString::createFromAscii( i_pPropertyName ) ); }
-
+
// returns an empty Any for not existing properties
com::sun::star::uno::Any getValue( const rtl::OUString& i_rPropertyName ) const;
// change a value in the property set; this will not have an effect to an eventual PrinterController
@@ -601,7 +601,7 @@ class VCL_DLLPUBLIC PrinterOptionsHelper
sal_Bool mbInternalOnly;
sal_Bool mbEnabled;
com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > maAddProps;
-
+
UIControlOptions( const rtl::OUString& i_rDependsOnName = rtl::OUString(),
sal_Int32 i_nDependsOnEntry = -1,
sal_Bool i_bAttachToDependency = sal_False,
@@ -643,7 +643,7 @@ class VCL_DLLPUBLIC PrinterOptionsHelper
sal_Bool i_bValue,
const UIControlOptions& i_rControlOptions = UIControlOptions()
);
-
+
// create a set of choices (either a radio button group or a list box)
static com::sun::star::uno::Any getChoiceControlOpt( const rtl::OUString& i_rTitle,
const com::sun::star::uno::Sequence< rtl::OUString >& i_rHelpText,
@@ -678,6 +678,6 @@ class VCL_DLLPUBLIC PrinterOptionsHelper
}
-#endif // _SV_PRINT_HXX
+#endif // _SV_PRINT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/printergfx.hxx b/vcl/inc/vcl/printergfx.hxx
index 61ace3af65bf..e625cd9d13b7 100644
--- a/vcl/inc/vcl/printergfx.hxx
+++ b/vcl/inc/vcl/printergfx.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,10 +61,10 @@ private:
public:
- PrinterColor () :
- meColorspace(eInvalid)
+ PrinterColor () :
+ meColorspace(eInvalid)
{}
- PrinterColor (sal_uInt16 nRed, sal_uInt16 nGreen,
+ PrinterColor (sal_uInt16 nRed, sal_uInt16 nGreen,
sal_uInt16 nBlue) :
mnRed (nRed),
mnGreen (nGreen),
@@ -92,11 +92,11 @@ public:
sal_uInt16 GetBlue () const
{ return mnBlue; }
sal_Bool operator== (const PrinterColor& aColor) const
- {
- return aColor.Is() && this->Is()
- && mnRed == aColor.mnRed
- && mnGreen == aColor.mnGreen
- && mnBlue == aColor.mnBlue;
+ {
+ return aColor.Is() && this->Is()
+ && mnRed == aColor.mnRed
+ && mnGreen == aColor.mnGreen
+ && mnBlue == aColor.mnBlue;
}
sal_Bool operator!= (const PrinterColor& aColor) const
{ return ! (aColor==*this); }
@@ -107,7 +107,7 @@ public:
mnGreen = aColor.mnGreen;
mnBlue = aColor.mnBlue;
- return *this;
+ return *this;
}
PrinterColor& operator= (sal_uInt32 nRGB)
@@ -117,7 +117,7 @@ public:
mnGreen = (nRGB & 0x0000ff00) >> 8;
mnRed = (nRGB & 0x00ff0000) >> 16;
- return *this;
+ return *this;
}
};
@@ -135,7 +135,7 @@ struct CharacterMetric;
/*
* Bitmap Interface, this has to be filled with your actual bitmap implementation
* sample implementations can be found in:
- * psprint/workben/cui/pspdem.cxx
+ * psprint/workben/cui/pspdem.cxx
* vcl/unx/source/gdi/salgdi2.cxx
*/
@@ -156,22 +156,22 @@ public:
typedef enum {
InvalidType = 0,
- TrueColorImage,
- MonochromeImage,
- PaletteImage,
+ TrueColorImage,
+ MonochromeImage,
+ PaletteImage,
GrayScaleImage
} ImageType;
/*
- * printer raster operations
+ * printer raster operations
*/
struct GraphicsStatus
{
rtl::OString maFont;
- rtl_TextEncoding maEncoding;
- bool mbArtItalic;
- bool mbArtBold;
+ rtl_TextEncoding maEncoding;
+ bool mbArtItalic;
+ bool mbArtBold;
sal_Int32 mnTextHeight;
sal_Int32 mnTextWidth;
PrinterColor maColor;
@@ -184,8 +184,8 @@ class Font3;
class PrinterGfx
{
-private:
-
+private:
+
/* common settings */
double mfScaleX;
@@ -201,18 +201,18 @@ private:
osl::File* mpPageHeader;
osl::File* mpPageBody;
- void TranslateCoordinates (sal_Int32 &rXOut, sal_Int32 &rYOut,
+ void TranslateCoordinates (sal_Int32 &rXOut, sal_Int32 &rYOut,
sal_Int32 nXIn, sal_Int32 nYIn )
{ rXOut = nXIn; rYOut = nYIn; }
void TranslateCoordinates (Point& rOut, const Point& rIn)
{ rOut = rIn; }
- /* text/font related data, for a type1 font it has to be checked
+ /* text/font related data, for a type1 font it has to be checked
whether this font has already been downloaded. A TrueType font
will be converted into one or more Type3 fonts, containing glyphs
- in no particular order. In addition to the existence of the
- glyph in one of the subfonts, the mapping from unicode to the
- glyph has to be remembered */
+ in no particular order. In addition to the existence of the
+ glyph in one of the subfonts, the mapping from unicode to the
+ glyph has to be remembered */
std::list< sal_Int32 > maPS1Font;
std::list< GlyphSet > maPS3Font;
@@ -221,10 +221,10 @@ private:
sal_Int32 mnFallbackID;
sal_Int32 mnTextAngle;
bool mbTextVertical;
- PrintFontManager& mrFontMgr;
+ PrintFontManager& mrFontMgr;
/* bitmap drawing implementation */
-
+
sal_Bool mbCompressBmp;
void DrawPS1GrayImage (const PrinterBmp& rBitmap, const Rectangle& rArea);
@@ -254,9 +254,9 @@ private:
/* font / font substitution */
friend class Font3;
const ::std::hash_map< fontID, fontID >* mpFontSubstitutes;
- int getCharWidth (sal_Bool b_vert, sal_Unicode n_char,
+ int getCharWidth (sal_Bool b_vert, sal_Unicode n_char,
CharacterMetric *p_bbox);
- fontID getCharMetric (const Font3 &rFont, sal_Unicode n_char,
+ fontID getCharMetric (const Font3 &rFont, sal_Unicode n_char,
CharacterMetric *p_bbox);
fontID getFontSubstitute () const;
fontID getFallbackID () const { return mnFallbackID; }
@@ -273,7 +273,7 @@ public:
{ maVirtualStatus.maColor = rColor; }
void PSUploadPS1Font (sal_Int32 nFontID);
- void PSSetFont (const rtl::OString& rName,
+ void PSSetFont (const rtl::OString& rName,
rtl_TextEncoding nEncoding = RTL_TEXTENCODING_DONTKNOW)
{ maVirtualStatus.maFont = rName; maVirtualStatus.maEncoding = nEncoding; }
@@ -284,14 +284,14 @@ public:
/* PS helpers */
enum pspath_t { moveto = 0, lineto = 1 };
- void PSBinLineTo (const Point& rCurrent, Point& rOld,
+ void PSBinLineTo (const Point& rCurrent, Point& rOld,
sal_Int32& nColumn);
- void PSBinMoveTo (const Point& rCurrent, Point& rOld,
+ void PSBinMoveTo (const Point& rCurrent, Point& rOld,
sal_Int32& nColumn);
void PSBinStartPath ();
void PSBinEndPath ();
void PSBinCurrentPath (sal_uInt32 nPoints, const Point* pPath);
- void PSBinPath (const Point& rCurrent, Point& rOld,
+ void PSBinPath (const Point& rCurrent, Point& rOld,
pspath_t eType, sal_Int32& nColumn);
void PSRotate (sal_Int32 nAngle);
@@ -303,27 +303,27 @@ public:
void PSPointOp (const Point& rPoint, const sal_Char* pOperator);
void PSHexString (const sal_uChar* pString, sal_Int16 nLen);
void PSDeltaArray (const sal_Int32 *pArray, sal_Int16 nEntries);
- void PSShowText (const sal_uChar* pString,
- sal_Int16 nGlyphs, sal_Int16 nBytes,
+ void PSShowText (const sal_uChar* pString,
+ sal_Int16 nGlyphs, sal_Int16 nBytes,
const sal_Int32* pDeltaArray = NULL);
- void PSComment (const sal_Char* pComment );
- void LicenseWarning (const Point& rPoint, const sal_Unicode* pStr,
- sal_Int16 nLen, const sal_Int32* pDeltaArray);
+ void PSComment (const sal_Char* pComment );
+ void LicenseWarning (const Point& rPoint, const sal_Unicode* pStr,
+ sal_Int16 nLen, const sal_Int32* pDeltaArray);
- void OnEndPage ();
- void OnEndJob ();
- void writeResources( osl::File* pFile, std::list< rtl::OString >& rSuppliedFonts, std::list< rtl::OString >& rNeededFonts );
+ void OnEndPage ();
+ void OnEndJob ();
+ void writeResources( osl::File* pFile, std::list< rtl::OString >& rSuppliedFonts, std::list< rtl::OString >& rNeededFonts );
PrintFontManager& GetFontMgr () { return mrFontMgr; }
void drawVerticalizedText (const Point& rPoint,
const sal_Unicode* pStr,
sal_Int16 nLen,
const sal_Int32* pDeltaArray );
- void drawText (const Point& rPoint,
- const sal_Unicode* pStr, sal_Int16 nLen,
+ void drawText (const Point& rPoint,
+ const sal_Unicode* pStr, sal_Int16 nLen,
const sal_Int32* pDeltaArray = NULL);
- void drawGlyphs( const Point& rPoint,
+ void drawGlyphs( const Point& rPoint,
sal_GlyphId* pGlyphIds,
sal_Unicode* pUnicodes,
sal_Int16 nLen,
@@ -335,14 +335,14 @@ public:
sal_Bool Init (const JobData& rData);
void Clear();
- // query depth and size
+ // query depth and size
void GetResolution (sal_Int32 &rDpiX, sal_Int32 &rDpiY) const;
sal_uInt16 GetBitCount ();
// clip region
void ResetClipRegion ();
void BeginSetClipRegion (sal_uInt32);
- sal_Bool UnionClipRegion (sal_Int32 nX, sal_Int32 nY,
+ sal_Bool UnionClipRegion (sal_Int32 nX, sal_Int32 nY,
sal_Int32 nDX, sal_Int32 nDY);
void EndSetClipRegion ();
@@ -351,7 +351,7 @@ public:
{ maLineColor = rLineColor; }
void SetFillColor (const PrinterColor& rFillColor = PrinterColor())
{ maFillColor = rFillColor; }
-
+
// drawing primitives
void DrawPixel (const Point& rPoint, const PrinterColor& rPixelColor);
void DrawPixel (const Point& rPoint)
@@ -360,17 +360,17 @@ public:
void DrawRect (const Rectangle& rRectangle);
void DrawPolyLine (sal_uInt32 nPoints, const Point* pPath );
void DrawPolygon (sal_uInt32 nPoints, const Point* pPath);
- void DrawPolyPolygon (sal_uInt32 nPoly,
- const sal_uInt32 *pPolygonSize,
+ void DrawPolyPolygon (sal_uInt32 nPoly,
+ const sal_uInt32 *pPolygonSize,
const Point** pPolygonList);
- void DrawPolyLineBezier (sal_uInt32 nPoints,
+ void DrawPolyLineBezier (sal_uInt32 nPoints,
const Point* pPath,
const BYTE* pFlgAry );
- void DrawPolygonBezier (sal_uInt32 nPoints,
+ void DrawPolygonBezier (sal_uInt32 nPoints,
const Point* pPath,
const BYTE* pFlgAry);
void DrawPolyPolygonBezier (sal_uInt32 nPoly,
- const sal_uInt32* pPoints,
+ const sal_uInt32* pPoints,
const Point* const* pPtAry,
const BYTE* const* pFlgAry);
@@ -378,12 +378,12 @@ public:
sal_Bool DrawEPS ( const Rectangle& rBoundingBox, void* pPtr, sal_uInt32 nSize);
// image drawing
- void DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
+ void DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
const PrinterBmp& rBitmap);
- void DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
- const PrinterBmp& rBitmap,
+ void DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
+ const PrinterBmp& rBitmap,
const PrinterBmp& rTransBitmap);
- void DrawMask (const Rectangle& rDest, const Rectangle& rSrc,
+ void DrawMask (const Rectangle& rDest, const Rectangle& rSrc,
const PrinterBmp &rBitmap, PrinterColor& rMaskColor);
// font and text handling
@@ -401,37 +401,37 @@ public:
{ return mnTextAngle; }
sal_Int32 GetFontID () const
{ return mnFontID; }
- bool GetFontVertical() const
+ bool GetFontVertical() const
{ return mbTextVertical; }
sal_Int32 GetFontHeight () const
{ return maVirtualStatus.mnTextHeight; }
sal_Int32 GetFontWidth () const
{ return maVirtualStatus.mnTextWidth; }
- bool GetArtificialItalic() const
+ bool GetArtificialItalic() const
{ return maVirtualStatus.mbArtItalic; }
- bool GetArtificialBold() const
+ bool GetArtificialBold() const
{ return maVirtualStatus.mbArtBold; }
- void DrawText (const Point& rPoint,
- const sal_Unicode* pStr, sal_Int16 nLen,
+ void DrawText (const Point& rPoint,
+ const sal_Unicode* pStr, sal_Int16 nLen,
const sal_Int32* pDeltaArray = NULL);
void SetTextColor (PrinterColor& rTextColor)
{ maTextColor = rTextColor; }
- sal_Int32 GetCharWidth (sal_uInt16 nFrom, sal_uInt16 nTo,
+ sal_Int32 GetCharWidth (sal_uInt16 nFrom, sal_uInt16 nTo,
long *pWidthArray);
const ::std::list< KernPair >& getKernPairs( bool bVertical = false ) const;
// advanced font handling
sal_Bool GetGlyphBoundRect (sal_Unicode c, Rectangle& rOutRect);
- sal_uInt32 GetGlyphOutline (sal_Unicode c,
- sal_uInt16 **ppPolySizes, Point **ppPoints,
+ sal_uInt32 GetGlyphOutline (sal_Unicode c,
+ sal_uInt16 **ppPolySizes, Point **ppPoints,
sal_uInt8 **ppFlags);
// for CTL
- void DrawGlyphs( const Point& rPoint,
+ void DrawGlyphs( const Point& rPoint,
sal_GlyphId* pGlyphIds,
sal_Unicode* pUnicodes,
sal_Int16 nLen,
sal_Int32* pDeltaArray );
-
+
bool getStrictSO52Compatibility() const;
void setStrictSO52Compatibility( bool );
};
diff --git a/vcl/inc/vcl/printerinfomanager.hxx b/vcl/inc/vcl/printerinfomanager.hxx
index ad1debee266b..1d271d192016 100644
--- a/vcl/inc/vcl/printerinfomanager.hxx
+++ b/vcl/inc/vcl/printerinfomanager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -127,16 +127,16 @@ protected:
std::list< WatchFile > m_aWatchFiles;
rtl::OUString m_aDefaultPrinter;
rtl::OUString m_aSystemPrintCommand;
-
+
std::list< SystemPrintQueue > m_aSystemPrintQueues;
- SystemQueueInfo* m_pQueueInfo;
+ SystemQueueInfo* m_pQueueInfo;
- Type m_eType;
+ Type m_eType;
bool m_bUseIncludeFeature;
bool m_bUseJobPatch;
rtl::OUString m_aSystemDefaultPaper;
-
+
bool m_bDisableCUPS;
PrinterInfoManager( Type eType = Default );
@@ -147,12 +147,12 @@ protected:
// fill in font substitutions
// the resulting hash_map maps from source to target font ids
void fillFontSubstitutions( PrinterInfo& rInfo ) const;
-
+
// fill default paper if not configured in config file
// default paper is e.g. locale dependent
// if a paper is already set it will not be overwritten
void setDefaultPaper( PPDContext& rInfo ) const;
-
+
void initSystemDefaultPaper();
public:
@@ -170,7 +170,7 @@ public:
// gets info about a named printer
const PrinterInfo& getPrinterInfo( const rtl::OUString& rPrinter ) const;
-
+
// gets the name of the default printer
const rtl::OUString& getDefaultPrinter() const { return m_aDefaultPrinter; }
@@ -209,7 +209,7 @@ public:
// primarily used internally but also by padmin
// returns the printer queue names
virtual const std::list< SystemPrintQueue >& getSystemPrintQueues();
-
+
// similar but returnse whole commandlines
virtual void getSystemPrintCommands( std::list< rtl::OUString >& rCommands );
@@ -220,23 +220,23 @@ public:
// close the FILE* returned by startSpool and does the actual spooling
// returns a numerical job id
virtual int endSpool( const rtl::OUString& rPrinterName, const rtl::OUString& rJobTitle, FILE* pFile, const JobData& rDocumentJobData );
-
+
// for spadmin: whether adding or removing a printer is possible
virtual bool addOrRemovePossible() const;
-
+
bool getUseIncludeFeature() const { return m_bUseIncludeFeature; }
bool getUseJobPatch() const { return m_bUseJobPatch; }
-
+
// check whether a printer's feature string contains a subfeature
bool checkFeatureToken( const rtl::OUString& rPrinterName, const char* pToken ) const;
-
+
// set m_bDisableCUPS and update printer config
void setCUPSDisabled( bool );
-
+
// gets m_bDisableCUPS, initialized from printer config
bool isCUPSDisabled() const;
};
-
+
} // namespace
#endif // _PSPRINT_PRINTERINFOMANAGER_HXX_
diff --git a/vcl/inc/vcl/printerjob.hxx b/vcl/inc/vcl/printerjob.hxx
index 62a1c078bc32..1d70218437d4 100644
--- a/vcl/inc/vcl/printerjob.hxx
+++ b/vcl/inc/vcl/printerjob.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,14 +41,14 @@ namespace psp {
class PrinterGfx;
-class PrinterJob
+class PrinterJob
{
private: // private data
rtl::OUString maSpoolDirName;
rtl::OUString maFileName; // empty: spool to command, else spool to named file
- rtl::OUString maJobTitle;
- int mnFileMode;
+ rtl::OUString maJobTitle;
+ int mnFileMode;
osl::File* mpJobHeader;
osl::File* mpJobTrailer;
@@ -80,21 +80,21 @@ private: // private data
sal_Int32 mnErrorCode;
bool m_bQuickJob;
-
+
private: // private methods
- osl::File* CreateSpoolFile (const rtl::OUString& rName,
+ osl::File* CreateSpoolFile (const rtl::OUString& rName,
const rtl::OUString& rExtension);
void InitPaperSize (const JobData& rJobSetup);
- bool writeFeatureList( osl::File* pFile, const JobData&, bool bDocumentSetup );
+ bool writeFeatureList( osl::File* pFile, const JobData&, bool bDocumentSetup );
bool writeSetup( osl::File* pFile, const JobData& );
bool writePageSetup( osl::File* pFile, const JobData&, bool bWriteFeatures = true );
- void writeJobPatch( osl::File* File, const JobData& );
+ void writeJobPatch( osl::File* File, const JobData& );
bool writeProlog (osl::File* pFile, const JobData& );
public: // for usage in PrinterGfx
-
+
sal_uInt32 GetResolution () const { return mnResolution; }
void GetScale (double &rXScale, double &rYScale) const;
sal_uInt16 GetDepth () const;
@@ -138,7 +138,7 @@ public:
sal_Bool AbortJob ();
- sal_Bool StartPage (const JobData& rJobSetup);
+ sal_Bool StartPage (const JobData& rJobSetup);
sal_Bool EndPage ();
sal_uInt32 GetErrorCode ();
diff --git a/vcl/inc/vcl/prndlg.hxx b/vcl/inc/vcl/prndlg.hxx
index f741cb6cd0d3..00265d725f4e 100644
--- a/vcl/inc/vcl/prndlg.hxx
+++ b/vcl/inc/vcl/prndlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,12 +60,12 @@ namespace vcl
VirtualDevice maPageVDev;
rtl::OUString maReplacementString;
rtl::OUString maToolTipString;
-
+
bool useHCColorReplacement() const;
public:
PrintPreviewWindow( Window* pParent, const ResId& );
virtual ~PrintPreviewWindow();
-
+
virtual void Paint( const Rectangle& rRect );
virtual void Command( const CommandEvent& );
virtual void Resize();
@@ -75,7 +75,7 @@ namespace vcl
sal_Int32 i_nDPIX, sal_Int32 i_nDPIY
);
};
-
+
class ShowNupOrderWindow : public Window
{
int mnOrderMode;
@@ -85,9 +85,9 @@ namespace vcl
public:
ShowNupOrderWindow( Window* pParent );
virtual ~ShowNupOrderWindow();
-
+
virtual void Paint( const Rectangle& );
-
+
void setValues( int i_nOrderMode, int i_nColumns, int i_nRows )
{
mnOrderMode = i_nOrderMode;
@@ -96,7 +96,7 @@ namespace vcl
Invalidate();
}
};
-
+
class NUpTabPage : public TabPage
{
public:
@@ -105,10 +105,10 @@ namespace vcl
RadioButton maBrochureBtn;
FixedText maPagesBoxTitleTxt;
ListBox maNupPagesBox;
-
+
// controls for "Custom" page mode
FixedText maNupNumPagesTxt;
- NumericField maNupColEdt;
+ NumericField maNupColEdt;
FixedText maNupTimesTxt;
NumericField maNupRowsEdt;
FixedText maPageMarginTxt1;
@@ -126,26 +126,26 @@ namespace vcl
ShowNupOrderWindow maNupOrderWin;
// border around each page
CheckBox maBorderCB;
-
+
vcl::RowOrColumn maLayout;
boost::shared_ptr< vcl::RowOrColumn > mxBrochureDep;
boost::shared_ptr< vcl::LabeledElement >mxPagesBtnLabel;
-
+
void setupLayout();
-
+
NUpTabPage( Window*, const ResId& );
virtual ~NUpTabPage();
-
+
void readFromSettings();
void storeToSettings();
void initFromMultiPageSetup( const vcl::PrinterController::MultiPageSetup& );
void enableNupControls( bool bEnable );
-
+
void showAdvancedControls( bool );
-
+
virtual void Resize();
};
-
+
class JobTabPage : public TabPage
{
public:
@@ -158,38 +158,38 @@ namespace vcl
FixedText maLocationTxt;
FixedText maCommentLabel;
FixedText maCommentTxt;
-
+
PushButton maSetupButton;
-
+
FixedLine maCopies;
FixedLine maCopySpacer;
FixedText maCopyCount;
NumericField maCopyCountField;
CheckBox maCollateBox;
FixedImage maCollateImage;
-
+
Image maCollateImg;
Image maCollateHCImg;
Image maNoCollateImg;
Image maNoCollateHCImg;
-
+
long mnCollateUIMode;
vcl::RowOrColumn maLayout;
boost::shared_ptr<vcl::RowOrColumn> mxPrintRange;
boost::shared_ptr<vcl::WindowArranger> mxDetails;
-
+
JobTabPage( Window*, const ResId& );
virtual ~JobTabPage();
void readFromSettings();
void storeToSettings();
-
+
virtual void Resize();
-
+
void setupLayout();
};
-
+
class OutputOptPage : public TabPage
{
public:
@@ -200,7 +200,7 @@ namespace vcl
vcl::RowOrColumn maLayout;
boost::shared_ptr<vcl::RowOrColumn> mxOptGroup;
-
+
OutputOptPage( Window*, const ResId& );
virtual ~OutputOptPage();
@@ -220,21 +220,21 @@ namespace vcl
FixedText maNumPagesText;
PushButton maBackwardBtn;
PushButton maForwardBtn;
-
+
TabControl maTabCtrl;
NUpTabPage maNUpPage;
JobTabPage maJobPage;
OutputOptPage maOptionsPage;
-
+
FixedLine maButtonLine;
-
+
boost::shared_ptr< PrinterController > maPController;
-
+
rtl::OUString maPageStr;
rtl::OUString maNoPageStr;
sal_Int32 mnCurPage;
sal_Int32 mnCachedPages;
-
+
std::list< Window* > maControls;
std::map< Window*, rtl::OUString > maControlToPropertyMap;
std::map< rtl::OUString, std::vector< Window* > >
@@ -244,22 +244,22 @@ namespace vcl
Size maNupPortraitSize;
Size maNupLandscapeSize;
-
+
// internal, used for automatic Nup-Portrait/landscape
Size maFirstPageSize;
-
+
rtl::OUString maPrintToFileText;
rtl::OUString maPrintText;
rtl::OUString maDefPrtText;
-
+
vcl::RowOrColumn maLayout;
boost::shared_ptr<vcl::RowOrColumn> mxPreviewCtrls;
-
+
Size maDetailsCollapsedSize;
Size maDetailsExpandedSize;
-
+
sal_Bool mbShowLayoutPage;
-
+
Size getJobPageSize();
void updateNup();
void updateNupFromPages();
@@ -274,41 +274,41 @@ namespace vcl
void readFromSettings();
void storeToSettings();
com::sun::star::beans::PropertyValue* getValueForWindow( Window* ) const;
-
+
virtual void Resize();
virtual void Command( const CommandEvent& );
virtual void DataChanged( const DataChangedEvent& );
-
+
DECL_LINK( SelectHdl, ListBox* );
DECL_LINK( ClickHdl, Button* );
DECL_LINK( ModifyHdl, Edit* );
DECL_LINK( UIOptionsChanged, void* );
-
+
DECL_LINK( UIOption_CheckHdl, CheckBox* );
DECL_LINK( UIOption_RadioHdl, RadioButton* );
DECL_LINK( UIOption_SelectHdl, ListBox* );
DECL_LINK( UIOption_ModifyHdl, Edit* );
-
+
void setupLayout();
public:
PrintDialog( Window*, const boost::shared_ptr< PrinterController >& );
virtual ~PrintDialog();
-
+
bool isPrintToFile();
int getCopyCount();
bool isCollate();
bool isSingleJobs();
-
+
void previewForward();
void previewBackward();
};
-
+
class PrintProgressDialog : public ModelessDialog
{
String maStr;
FixedText maText;
CancelButton maButton;
-
+
bool mbCanceled;
sal_Int32 mnCur;
sal_Int32 mnMax;
@@ -317,17 +317,17 @@ namespace vcl
bool mbNativeProgress;
DECL_LINK( ClickHdl, Button* );
-
+
void implCalcProgressRect();
public:
PrintProgressDialog( Window* i_pParent, int i_nMax );
~PrintProgressDialog();
-
+
bool isCanceled() const { return mbCanceled; }
void setProgress( int i_nCurrent, int i_nMax = -1 );
void tick();
void reset();
-
+
virtual void Paint( const Rectangle& );
};
}
diff --git a/vcl/inc/vcl/prntypes.hxx b/vcl/inc/vcl/prntypes.hxx
index 086cc7314c7b..3e26ee5f175c 100644
--- a/vcl/inc/vcl/prntypes.hxx
+++ b/vcl/inc/vcl/prntypes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,33 +49,33 @@ enum Orientation { ORIENTATION_PORTRAIT, ORIENTATION_LANDSCAPE };
// - QueueInfo-Types -
// -------------------
-#define QUEUE_STATUS_READY ((ULONG)0x00000001)
-#define QUEUE_STATUS_PAUSED ((ULONG)0x00000002)
-#define QUEUE_STATUS_PENDING_DELETION ((ULONG)0x00000004)
-#define QUEUE_STATUS_BUSY ((ULONG)0x00000008)
-#define QUEUE_STATUS_INITIALIZING ((ULONG)0x00000010)
-#define QUEUE_STATUS_WAITING ((ULONG)0x00000020)
-#define QUEUE_STATUS_WARMING_UP ((ULONG)0x00000040)
-#define QUEUE_STATUS_PROCESSING ((ULONG)0x00000080)
-#define QUEUE_STATUS_PRINTING ((ULONG)0x00000100)
-#define QUEUE_STATUS_OFFLINE ((ULONG)0x00000200)
-#define QUEUE_STATUS_ERROR ((ULONG)0x00000400)
-#define QUEUE_STATUS_SERVER_UNKNOWN ((ULONG)0x00000800)
-#define QUEUE_STATUS_PAPER_JAM ((ULONG)0x00001000)
-#define QUEUE_STATUS_PAPER_OUT ((ULONG)0x00002000)
-#define QUEUE_STATUS_MANUAL_FEED ((ULONG)0x00004000)
-#define QUEUE_STATUS_PAPER_PROBLEM ((ULONG)0x00008000)
-#define QUEUE_STATUS_IO_ACTIVE ((ULONG)0x00010000)
-#define QUEUE_STATUS_OUTPUT_BIN_FULL ((ULONG)0x00020000)
-#define QUEUE_STATUS_TONER_LOW ((ULONG)0x00040000)
-#define QUEUE_STATUS_NO_TONER ((ULONG)0x00080000)
-#define QUEUE_STATUS_PAGE_PUNT ((ULONG)0x00100000)
-#define QUEUE_STATUS_USER_INTERVENTION ((ULONG)0x00200000)
-#define QUEUE_STATUS_OUT_OF_MEMORY ((ULONG)0x00400000)
-#define QUEUE_STATUS_DOOR_OPEN ((ULONG)0x00800000)
-#define QUEUE_STATUS_POWER_SAVE ((ULONG)0x01000000)
+#define QUEUE_STATUS_READY ((ULONG)0x00000001)
+#define QUEUE_STATUS_PAUSED ((ULONG)0x00000002)
+#define QUEUE_STATUS_PENDING_DELETION ((ULONG)0x00000004)
+#define QUEUE_STATUS_BUSY ((ULONG)0x00000008)
+#define QUEUE_STATUS_INITIALIZING ((ULONG)0x00000010)
+#define QUEUE_STATUS_WAITING ((ULONG)0x00000020)
+#define QUEUE_STATUS_WARMING_UP ((ULONG)0x00000040)
+#define QUEUE_STATUS_PROCESSING ((ULONG)0x00000080)
+#define QUEUE_STATUS_PRINTING ((ULONG)0x00000100)
+#define QUEUE_STATUS_OFFLINE ((ULONG)0x00000200)
+#define QUEUE_STATUS_ERROR ((ULONG)0x00000400)
+#define QUEUE_STATUS_SERVER_UNKNOWN ((ULONG)0x00000800)
+#define QUEUE_STATUS_PAPER_JAM ((ULONG)0x00001000)
+#define QUEUE_STATUS_PAPER_OUT ((ULONG)0x00002000)
+#define QUEUE_STATUS_MANUAL_FEED ((ULONG)0x00004000)
+#define QUEUE_STATUS_PAPER_PROBLEM ((ULONG)0x00008000)
+#define QUEUE_STATUS_IO_ACTIVE ((ULONG)0x00010000)
+#define QUEUE_STATUS_OUTPUT_BIN_FULL ((ULONG)0x00020000)
+#define QUEUE_STATUS_TONER_LOW ((ULONG)0x00040000)
+#define QUEUE_STATUS_NO_TONER ((ULONG)0x00080000)
+#define QUEUE_STATUS_PAGE_PUNT ((ULONG)0x00100000)
+#define QUEUE_STATUS_USER_INTERVENTION ((ULONG)0x00200000)
+#define QUEUE_STATUS_OUT_OF_MEMORY ((ULONG)0x00400000)
+#define QUEUE_STATUS_DOOR_OPEN ((ULONG)0x00800000)
+#define QUEUE_STATUS_POWER_SAVE ((ULONG)0x01000000)
-#define QUEUE_JOBS_DONTKNOW ((ULONG)0xFFFFFFFF)
+#define QUEUE_JOBS_DONTKNOW ((ULONG)0xFFFFFFFF)
// -----------------
// - Printer-Types -
@@ -93,6 +93,6 @@ enum Orientation { ORIENTATION_PORTRAIT, ORIENTATION_LANDSCAPE };
#define PRINTER_CAPABILITIES_EXTERNALDIALOG ((USHORT)10)
#define PRINTER_CAPABILITIES_SETDUPLEX ((USHORT)11)
-#endif // _SV_PRNTYPES_HXX
+#endif // _SV_PRNTYPES_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/ptrstyle.hxx b/vcl/inc/vcl/ptrstyle.hxx
index 75502de85823..4ed6fd53ad17 100644
--- a/vcl/inc/vcl/ptrstyle.hxx
+++ b/vcl/inc/vcl/ptrstyle.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,94 +37,94 @@
typedef USHORT PointerStyle;
-#define POINTER_ARROW ((PointerStyle)0)
-#define POINTER_NULL ((PointerStyle)1)
-#define POINTER_WAIT ((PointerStyle)2)
-#define POINTER_TEXT ((PointerStyle)3)
-#define POINTER_HELP ((PointerStyle)4)
-#define POINTER_CROSS ((PointerStyle)5)
-#define POINTER_MOVE ((PointerStyle)6)
-#define POINTER_NSIZE ((PointerStyle)7)
-#define POINTER_SSIZE ((PointerStyle)8)
-#define POINTER_WSIZE ((PointerStyle)9)
-#define POINTER_ESIZE ((PointerStyle)10)
-#define POINTER_NWSIZE ((PointerStyle)11)
-#define POINTER_NESIZE ((PointerStyle)12)
-#define POINTER_SWSIZE ((PointerStyle)13)
-#define POINTER_SESIZE ((PointerStyle)14)
-#define POINTER_WINDOW_NSIZE ((PointerStyle)15)
-#define POINTER_WINDOW_SSIZE ((PointerStyle)16)
-#define POINTER_WINDOW_WSIZE ((PointerStyle)17)
-#define POINTER_WINDOW_ESIZE ((PointerStyle)18)
-#define POINTER_WINDOW_NWSIZE ((PointerStyle)19)
-#define POINTER_WINDOW_NESIZE ((PointerStyle)20)
-#define POINTER_WINDOW_SWSIZE ((PointerStyle)21)
-#define POINTER_WINDOW_SESIZE ((PointerStyle)22)
-#define POINTER_HSPLIT ((PointerStyle)23)
-#define POINTER_VSPLIT ((PointerStyle)24)
-#define POINTER_HSIZEBAR ((PointerStyle)25)
-#define POINTER_VSIZEBAR ((PointerStyle)26)
-#define POINTER_HAND ((PointerStyle)27)
-#define POINTER_REFHAND ((PointerStyle)28)
-#define POINTER_PEN ((PointerStyle)29)
-#define POINTER_MAGNIFY ((PointerStyle)30)
-#define POINTER_FILL ((PointerStyle)31)
-#define POINTER_ROTATE ((PointerStyle)32)
-#define POINTER_HSHEAR ((PointerStyle)33)
-#define POINTER_VSHEAR ((PointerStyle)34)
-#define POINTER_MIRROR ((PointerStyle)35)
-#define POINTER_CROOK ((PointerStyle)36)
-#define POINTER_CROP ((PointerStyle)37)
-#define POINTER_MOVEPOINT ((PointerStyle)38)
-#define POINTER_MOVEBEZIERWEIGHT ((PointerStyle)39)
-#define POINTER_MOVEDATA ((PointerStyle)40)
-#define POINTER_COPYDATA ((PointerStyle)41)
-#define POINTER_LINKDATA ((PointerStyle)42)
-#define POINTER_MOVEDATALINK ((PointerStyle)43)
-#define POINTER_COPYDATALINK ((PointerStyle)44)
-#define POINTER_MOVEFILE ((PointerStyle)45)
-#define POINTER_COPYFILE ((PointerStyle)46)
-#define POINTER_LINKFILE ((PointerStyle)47)
-#define POINTER_MOVEFILELINK ((PointerStyle)48)
-#define POINTER_COPYFILELINK ((PointerStyle)49)
-#define POINTER_MOVEFILES ((PointerStyle)50)
-#define POINTER_COPYFILES ((PointerStyle)51)
-#define POINTER_NOTALLOWED ((PointerStyle)52)
-#define POINTER_DRAW_LINE ((PointerStyle)53)
-#define POINTER_DRAW_RECT ((PointerStyle)54)
-#define POINTER_DRAW_POLYGON ((PointerStyle)55)
-#define POINTER_DRAW_BEZIER ((PointerStyle)56)
-#define POINTER_DRAW_ARC ((PointerStyle)57)
-#define POINTER_DRAW_PIE ((PointerStyle)58)
-#define POINTER_DRAW_CIRCLECUT ((PointerStyle)59)
-#define POINTER_DRAW_ELLIPSE ((PointerStyle)60)
-#define POINTER_DRAW_FREEHAND ((PointerStyle)61)
-#define POINTER_DRAW_CONNECT ((PointerStyle)62)
-#define POINTER_DRAW_TEXT ((PointerStyle)63)
-#define POINTER_DRAW_CAPTION ((PointerStyle)64)
-#define POINTER_CHART ((PointerStyle)65)
-#define POINTER_DETECTIVE ((PointerStyle)66)
-#define POINTER_PIVOT_COL ((PointerStyle)67)
-#define POINTER_PIVOT_ROW ((PointerStyle)68)
-#define POINTER_PIVOT_FIELD ((PointerStyle)69)
-#define POINTER_CHAIN ((PointerStyle)70)
-#define POINTER_CHAIN_NOTALLOWED ((PointerStyle)71)
-#define POINTER_TIMEEVENT_MOVE ((PointerStyle)72)
-#define POINTER_TIMEEVENT_SIZE ((PointerStyle)73)
-#define POINTER_AUTOSCROLL_N ((PointerStyle)74)
-#define POINTER_AUTOSCROLL_S ((PointerStyle)75)
-#define POINTER_AUTOSCROLL_W ((PointerStyle)76)
-#define POINTER_AUTOSCROLL_E ((PointerStyle)77)
-#define POINTER_AUTOSCROLL_NW ((PointerStyle)78)
-#define POINTER_AUTOSCROLL_NE ((PointerStyle)79)
-#define POINTER_AUTOSCROLL_SW ((PointerStyle)80)
-#define POINTER_AUTOSCROLL_SE ((PointerStyle)81)
-#define POINTER_AUTOSCROLL_NS ((PointerStyle)82)
-#define POINTER_AUTOSCROLL_WE ((PointerStyle)83)
-#define POINTER_AUTOSCROLL_NSWE ((PointerStyle)84)
-#define POINTER_AIRBRUSH ((PointerStyle)85)
-#define POINTER_TEXT_VERTICAL ((PointerStyle)86)
-#define POINTER_PIVOT_DELETE ((PointerStyle)87)
+#define POINTER_ARROW ((PointerStyle)0)
+#define POINTER_NULL ((PointerStyle)1)
+#define POINTER_WAIT ((PointerStyle)2)
+#define POINTER_TEXT ((PointerStyle)3)
+#define POINTER_HELP ((PointerStyle)4)
+#define POINTER_CROSS ((PointerStyle)5)
+#define POINTER_MOVE ((PointerStyle)6)
+#define POINTER_NSIZE ((PointerStyle)7)
+#define POINTER_SSIZE ((PointerStyle)8)
+#define POINTER_WSIZE ((PointerStyle)9)
+#define POINTER_ESIZE ((PointerStyle)10)
+#define POINTER_NWSIZE ((PointerStyle)11)
+#define POINTER_NESIZE ((PointerStyle)12)
+#define POINTER_SWSIZE ((PointerStyle)13)
+#define POINTER_SESIZE ((PointerStyle)14)
+#define POINTER_WINDOW_NSIZE ((PointerStyle)15)
+#define POINTER_WINDOW_SSIZE ((PointerStyle)16)
+#define POINTER_WINDOW_WSIZE ((PointerStyle)17)
+#define POINTER_WINDOW_ESIZE ((PointerStyle)18)
+#define POINTER_WINDOW_NWSIZE ((PointerStyle)19)
+#define POINTER_WINDOW_NESIZE ((PointerStyle)20)
+#define POINTER_WINDOW_SWSIZE ((PointerStyle)21)
+#define POINTER_WINDOW_SESIZE ((PointerStyle)22)
+#define POINTER_HSPLIT ((PointerStyle)23)
+#define POINTER_VSPLIT ((PointerStyle)24)
+#define POINTER_HSIZEBAR ((PointerStyle)25)
+#define POINTER_VSIZEBAR ((PointerStyle)26)
+#define POINTER_HAND ((PointerStyle)27)
+#define POINTER_REFHAND ((PointerStyle)28)
+#define POINTER_PEN ((PointerStyle)29)
+#define POINTER_MAGNIFY ((PointerStyle)30)
+#define POINTER_FILL ((PointerStyle)31)
+#define POINTER_ROTATE ((PointerStyle)32)
+#define POINTER_HSHEAR ((PointerStyle)33)
+#define POINTER_VSHEAR ((PointerStyle)34)
+#define POINTER_MIRROR ((PointerStyle)35)
+#define POINTER_CROOK ((PointerStyle)36)
+#define POINTER_CROP ((PointerStyle)37)
+#define POINTER_MOVEPOINT ((PointerStyle)38)
+#define POINTER_MOVEBEZIERWEIGHT ((PointerStyle)39)
+#define POINTER_MOVEDATA ((PointerStyle)40)
+#define POINTER_COPYDATA ((PointerStyle)41)
+#define POINTER_LINKDATA ((PointerStyle)42)
+#define POINTER_MOVEDATALINK ((PointerStyle)43)
+#define POINTER_COPYDATALINK ((PointerStyle)44)
+#define POINTER_MOVEFILE ((PointerStyle)45)
+#define POINTER_COPYFILE ((PointerStyle)46)
+#define POINTER_LINKFILE ((PointerStyle)47)
+#define POINTER_MOVEFILELINK ((PointerStyle)48)
+#define POINTER_COPYFILELINK ((PointerStyle)49)
+#define POINTER_MOVEFILES ((PointerStyle)50)
+#define POINTER_COPYFILES ((PointerStyle)51)
+#define POINTER_NOTALLOWED ((PointerStyle)52)
+#define POINTER_DRAW_LINE ((PointerStyle)53)
+#define POINTER_DRAW_RECT ((PointerStyle)54)
+#define POINTER_DRAW_POLYGON ((PointerStyle)55)
+#define POINTER_DRAW_BEZIER ((PointerStyle)56)
+#define POINTER_DRAW_ARC ((PointerStyle)57)
+#define POINTER_DRAW_PIE ((PointerStyle)58)
+#define POINTER_DRAW_CIRCLECUT ((PointerStyle)59)
+#define POINTER_DRAW_ELLIPSE ((PointerStyle)60)
+#define POINTER_DRAW_FREEHAND ((PointerStyle)61)
+#define POINTER_DRAW_CONNECT ((PointerStyle)62)
+#define POINTER_DRAW_TEXT ((PointerStyle)63)
+#define POINTER_DRAW_CAPTION ((PointerStyle)64)
+#define POINTER_CHART ((PointerStyle)65)
+#define POINTER_DETECTIVE ((PointerStyle)66)
+#define POINTER_PIVOT_COL ((PointerStyle)67)
+#define POINTER_PIVOT_ROW ((PointerStyle)68)
+#define POINTER_PIVOT_FIELD ((PointerStyle)69)
+#define POINTER_CHAIN ((PointerStyle)70)
+#define POINTER_CHAIN_NOTALLOWED ((PointerStyle)71)
+#define POINTER_TIMEEVENT_MOVE ((PointerStyle)72)
+#define POINTER_TIMEEVENT_SIZE ((PointerStyle)73)
+#define POINTER_AUTOSCROLL_N ((PointerStyle)74)
+#define POINTER_AUTOSCROLL_S ((PointerStyle)75)
+#define POINTER_AUTOSCROLL_W ((PointerStyle)76)
+#define POINTER_AUTOSCROLL_E ((PointerStyle)77)
+#define POINTER_AUTOSCROLL_NW ((PointerStyle)78)
+#define POINTER_AUTOSCROLL_NE ((PointerStyle)79)
+#define POINTER_AUTOSCROLL_SW ((PointerStyle)80)
+#define POINTER_AUTOSCROLL_SE ((PointerStyle)81)
+#define POINTER_AUTOSCROLL_NS ((PointerStyle)82)
+#define POINTER_AUTOSCROLL_WE ((PointerStyle)83)
+#define POINTER_AUTOSCROLL_NSWE ((PointerStyle)84)
+#define POINTER_AIRBRUSH ((PointerStyle)85)
+#define POINTER_TEXT_VERTICAL ((PointerStyle)86)
+#define POINTER_PIVOT_DELETE ((PointerStyle)87)
// --> FME 2004-07-30 #i32329# Enhanced table selection
#define POINTER_TAB_SELECT_S ((PointerStyle)88)
diff --git a/vcl/inc/vcl/regband.hxx b/vcl/inc/vcl/regband.hxx
index 39f0bd3b0a08..3de3fbf70bcb 100644
--- a/vcl/inc/vcl/regband.hxx
+++ b/vcl/inc/vcl/regband.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,10 +55,10 @@ IsOver.
// element for the list with x-separations
struct ImplRegionBandSep
{
- ImplRegionBandSep* mpNextSep;
- long mnXLeft;
- long mnXRight;
- BOOL mbRemoved;
+ ImplRegionBandSep* mpNextSep;
+ long mnXLeft;
+ long mnXRight;
+ BOOL mbRemoved;
};
enum LineType { LINE_ASCENDING, LINE_DESCENDING, LINE_HORIZONTAL };
@@ -66,11 +66,11 @@ enum LineType { LINE_ASCENDING, LINE_DESCENDING, LINE_HORIZONTAL };
// element for the list with x-separations
struct ImplRegionBandPoint
{
- ImplRegionBandPoint* mpNextBandPoint;
- long mnX;
- long mnLineId;
- BOOL mbEndPoint;
- LineType meLineType;
+ ImplRegionBandPoint* mpNextBandPoint;
+ long mnX;
+ long mnLineId;
+ BOOL mbEndPoint;
+ LineType meLineType;
};
// ------------------
@@ -80,13 +80,13 @@ struct ImplRegionBandPoint
class ImplRegionBand
{
public:
- ImplRegionBand* mpNextBand; // pointer to the next element of the list
- ImplRegionBand* mpPrevBand; // pointer to the previous element of the list (only used temporaery)
- ImplRegionBandSep* mpFirstSep; // root of the list with x-separations
- ImplRegionBandPoint* mpFirstBandPoint; // root of the list with lines
- long mnYTop; // actual boundary of the band
- long mnYBottom;
- BOOL mbTouched;
+ ImplRegionBand* mpNextBand; // pointer to the next element of the list
+ ImplRegionBand* mpPrevBand; // pointer to the previous element of the list (only used temporaery)
+ ImplRegionBandSep* mpFirstSep; // root of the list with x-separations
+ ImplRegionBandPoint* mpFirstBandPoint; // root of the list with lines
+ long mnYTop; // actual boundary of the band
+ long mnYBottom;
+ BOOL mbTouched;
// create y-band with boundaries
ImplRegionBand( long nYTop, long nYBottom );
@@ -107,34 +107,34 @@ public:
const bool bIgnorePoints = true);
~ImplRegionBand();
- long GetXLeftBoundary() const;
- long GetXRightBoundary() const;
+ long GetXLeftBoundary() const;
+ long GetXRightBoundary() const;
// combine overlapping bands
- BOOL OptimizeBand();
+ BOOL OptimizeBand();
// generate separations from lines and process
// union with existing separations
- void ProcessPoints();
+ void ProcessPoints();
// insert point in the list for later processing
- BOOL InsertPoint( long nX, long nLineID,
+ BOOL InsertPoint( long nX, long nLineID,
BOOL bEndPoint, LineType eLineType );
- void Union( long nXLeft, long nXRight );
- void Intersect( long nXLeft, long nXRight );
- void Exclude( long nXLeft, long nXRight );
- void XOr( long nXLeft, long nXRight );
+ void Union( long nXLeft, long nXRight );
+ void Intersect( long nXLeft, long nXRight );
+ void Exclude( long nXLeft, long nXRight );
+ void XOr( long nXLeft, long nXRight );
- void MoveX( long nHorzMove );
- void ScaleX( double fHorzScale );
+ void MoveX( long nHorzMove );
+ void ScaleX( double fHorzScale );
- BOOL IsInside( long nX );
- BOOL IsInside( long nLeft, long nRight );
- BOOL IsOver( long nLeft, long nRight );
+ BOOL IsInside( long nX );
+ BOOL IsInside( long nLeft, long nRight );
+ BOOL IsOver( long nLeft, long nRight );
- BOOL IsEmpty() const { return ((!mpFirstSep) && (!mpFirstBandPoint)); }
+ BOOL IsEmpty() const { return ((!mpFirstSep) && (!mpFirstBandPoint)); }
- BOOL operator==( const ImplRegionBand& rRegionBand ) const;
+ BOOL operator==( const ImplRegionBand& rRegionBand ) const;
/** Split the called band at the given vertical coordinate. After the
split the called band will cover the upper part not including nY.
@@ -148,6 +148,6 @@ public:
ImplRegionBand* SplitBand (const sal_Int32 nY);
};
-#endif // _SV_REGBAND_HXX
+#endif // _SV_REGBAND_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/region.h b/vcl/inc/vcl/region.h
index 62c5e51db070..3c83d0b3a136 100644
--- a/vcl/inc/vcl/region.h
+++ b/vcl/inc/vcl/region.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,10 +47,10 @@ const char* ImplDbgTestRegion( const void* pObj );
struct ImplRegionHandle
{
- Region* mpRegion;
- ImplRegionBand* mpCurrRectBand;
- ImplRegionBandSep* mpCurrRectBandSep;
- BOOL mbFirst;
+ Region* mpRegion;
+ ImplRegionBand* mpCurrRectBand;
+ ImplRegionBandSep* mpCurrRectBandSep;
+ BOOL mbFirst;
};
// ------------------
@@ -59,8 +59,8 @@ struct ImplRegionHandle
struct ImplRegionInfo
{
- void* mpVoidCurrRectBand;
- void* mpVoidCurrRectBandSep;
+ void* mpVoidCurrRectBand;
+ void* mpVoidCurrRectBandSep;
};
// --------------
@@ -73,9 +73,9 @@ public:
ImplRegionBase( int nCount = 1 ); // TODO: replace manual refcounting
virtual ~ImplRegionBase();
public:
- ULONG mnRefCount;
- ULONG mnRectCount;
- PolyPolygon* mpPolyPoly;
+ ULONG mnRefCount;
+ ULONG mnRectCount;
+ PolyPolygon* mpPolyPoly;
basegfx::B2DPolyPolygon* mpB2DPolyPoly;
};
@@ -84,8 +84,8 @@ class ImplRegion : public ImplRegionBase
friend class Region;
private:
- ImplRegionBand* mpFirstBand; // root of the list with y-bands
- ImplRegionBand* mpLastCheckedBand;
+ ImplRegionBand* mpFirstBand; // root of the list with y-bands
+ ImplRegionBand* mpLastCheckedBand;
public:
ImplRegion();
@@ -94,17 +94,17 @@ public:
ImplRegion( const ImplRegion& rImplRegion );
~ImplRegion();
- ImplRegionBand* ImplGetFirstRegionBand() const { return mpFirstBand; }
- PolyPolygon* ImplGetPolyPoly() const { return mpPolyPoly; }
+ ImplRegionBand* ImplGetFirstRegionBand() const { return mpFirstBand; }
+ PolyPolygon* ImplGetPolyPoly() const { return mpPolyPoly; }
- void CreateBandRange( long nYTop, long nYBottom );
- void InsertBands( long nYTop, long nYBottom );
- BOOL InsertSingleBand( ImplRegionBand* mpImplRegionBand,
+ void CreateBandRange( long nYTop, long nYBottom );
+ void InsertBands( long nYTop, long nYBottom );
+ BOOL InsertSingleBand( ImplRegionBand* mpImplRegionBand,
long nYBandPosition );
- BOOL InsertLine( const Point & rFirstPoint,
+ BOOL InsertLine( const Point & rFirstPoint,
const Point & rSecondPoint,
long nLineID );
- BOOL InsertPoint( const Point &rPoint,
+ BOOL InsertPoint( const Point &rPoint,
long nLineID,
BOOL bEndPoint, LineType eLineType );
@@ -120,18 +120,18 @@ public:
*/
void InsertBand (ImplRegionBand* pPreviousBand,
ImplRegionBand* pBandToInsert);
-
- void Union( long nLeft, long nTop, long nRight, long nBottom );
- void Exclude( long nLeft, long nTop, long nRight, long nBottom );
- void XOr( long nLeft, long nTop, long nRight, long nBottom );
+
+ void Union( long nLeft, long nTop, long nRight, long nBottom );
+ void Exclude( long nLeft, long nTop, long nRight, long nBottom );
+ void XOr( long nLeft, long nTop, long nRight, long nBottom );
// remove emtpy rects
- BOOL OptimizeBandList();
+ BOOL OptimizeBandList();
- friend SvStream& operator>>( SvStream& rIStm, Region& rRegion );
- friend SvStream& operator<<( SvStream& rOStm, const Region& rRegion );
+ friend SvStream& operator>>( SvStream& rIStm, Region& rRegion );
+ friend SvStream& operator<<( SvStream& rOStm, const Region& rRegion );
};
-#endif // _SV_REGION_H
+#endif // _SV_REGION_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/region.hxx b/vcl/inc/vcl/region.hxx
index 4a9c146a158c..52516552a442 100644
--- a/vcl/inc/vcl/region.hxx
+++ b/vcl/inc/vcl/region.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,25 +61,25 @@ class VCL_DLLPUBLIC Region
friend class Bitmap;
private:
- ImplRegion* mpImplRegion;
-
- SAL_DLLPRIVATE void ImplCopyData();
- SAL_DLLPRIVATE void ImplCreateRectRegion( const Rectangle& rRect );
- SAL_DLLPRIVATE void ImplCreatePolyPolyRegion( const PolyPolygon& rPolyPoly );
- SAL_DLLPRIVATE void ImplPolyPolyRegionToBandRegionFunc();
- SAL_DLLPRIVATE inline void ImplPolyPolyRegionToBandRegion();
- SAL_DLLPRIVATE const ImplRegion* ImplGetImplRegion() const { return mpImplRegion; }
- SAL_DLLPRIVATE ImplRegion* ImplGetImplRegion() { return mpImplRegion; }
- SAL_DLLPRIVATE BOOL ImplGetFirstRect( ImplRegionInfo& rImplRegionInfo,
+ ImplRegion* mpImplRegion;
+
+ SAL_DLLPRIVATE void ImplCopyData();
+ SAL_DLLPRIVATE void ImplCreateRectRegion( const Rectangle& rRect );
+ SAL_DLLPRIVATE void ImplCreatePolyPolyRegion( const PolyPolygon& rPolyPoly );
+ SAL_DLLPRIVATE void ImplPolyPolyRegionToBandRegionFunc();
+ SAL_DLLPRIVATE inline void ImplPolyPolyRegionToBandRegion();
+ SAL_DLLPRIVATE const ImplRegion* ImplGetImplRegion() const { return mpImplRegion; }
+ SAL_DLLPRIVATE ImplRegion* ImplGetImplRegion() { return mpImplRegion; }
+ SAL_DLLPRIVATE BOOL ImplGetFirstRect( ImplRegionInfo& rImplRegionInfo,
long& nX, long& nY, long& nWidth, long& nHeight ) const;
- SAL_DLLPRIVATE BOOL ImplGetNextRect( ImplRegionInfo& rImplRegionInfo,
+ SAL_DLLPRIVATE BOOL ImplGetNextRect( ImplRegionInfo& rImplRegionInfo,
long& nX, long& nY, long& nWidth, long& nHeight ) const;
- SAL_DLLPRIVATE void ImplBeginAddRect( );
- SAL_DLLPRIVATE BOOL ImplAddRect( const Rectangle& rRect );
- SAL_DLLPRIVATE void ImplEndAddRect( );
+ SAL_DLLPRIVATE void ImplBeginAddRect( );
+ SAL_DLLPRIVATE BOOL ImplAddRect( const Rectangle& rRect );
+ SAL_DLLPRIVATE void ImplEndAddRect( );
#ifdef DBG_UTIL
- friend const char* ImplDbgTestRegion( const void* pObj );
+ friend const char* ImplDbgTestRegion( const void* pObj );
#endif
public:
@@ -92,25 +92,25 @@ public:
Region( const Region& rRegion );
~Region();
- void Move( long nHorzMove, long nVertMove );
- void Scale( double fScaleX, double fScaleY );
- BOOL Union( const Rectangle& rRegion );
- BOOL Intersect( const Rectangle& rRegion );
- BOOL Exclude( const Rectangle& rRegion );
- BOOL XOr( const Rectangle& rRegion );
- BOOL Union( const Region& rRegion );
- BOOL Intersect( const Region& rRegion );
- BOOL Exclude( const Region& rRegion );
- BOOL XOr( const Region& rRegion );
+ void Move( long nHorzMove, long nVertMove );
+ void Scale( double fScaleX, double fScaleY );
+ BOOL Union( const Rectangle& rRegion );
+ BOOL Intersect( const Rectangle& rRegion );
+ BOOL Exclude( const Rectangle& rRegion );
+ BOOL XOr( const Rectangle& rRegion );
+ BOOL Union( const Region& rRegion );
+ BOOL Intersect( const Region& rRegion );
+ BOOL Exclude( const Region& rRegion );
+ BOOL XOr( const Region& rRegion );
- RegionType GetType() const;
- BOOL IsEmpty() const { return GetType() == REGION_EMPTY; };
- BOOL IsNull() const { return GetType() == REGION_NULL; };
+ RegionType GetType() const;
+ BOOL IsEmpty() const { return GetType() == REGION_EMPTY; };
+ BOOL IsNull() const { return GetType() == REGION_NULL; };
- void SetEmpty();
- void SetNull();
+ void SetEmpty();
+ void SetNull();
- Rectangle GetBoundRect() const;
+ Rectangle GetBoundRect() const;
BOOL HasPolyPolygon() const;
PolyPolygon GetPolyPolygon() const;
@@ -120,22 +120,22 @@ public:
// or created from the constituent rectangles
basegfx::B2DPolyPolygon ConvertToB2DPolyPolygon();
- ULONG GetRectCount() const;
- RegionHandle BeginEnumRects();
- BOOL GetEnumRects( RegionHandle hRegionHandle, Rectangle& rRect );
- BOOL GetNextEnumRect( RegionHandle hRegionHandle, Rectangle& rRect )
+ ULONG GetRectCount() const;
+ RegionHandle BeginEnumRects();
+ BOOL GetEnumRects( RegionHandle hRegionHandle, Rectangle& rRect );
+ BOOL GetNextEnumRect( RegionHandle hRegionHandle, Rectangle& rRect )
{ return GetEnumRects( hRegionHandle, rRect ); }
- void EndEnumRects( RegionHandle hRegionHandle );
+ void EndEnumRects( RegionHandle hRegionHandle );
- BOOL IsInside( const Point& rPoint ) const;
- BOOL IsInside( const Rectangle& rRect ) const;
- BOOL IsOver( const Rectangle& rRect ) const;
+ BOOL IsInside( const Point& rPoint ) const;
+ BOOL IsInside( const Rectangle& rRect ) const;
+ BOOL IsOver( const Rectangle& rRect ) const;
- Region& operator=( const Region& rRegion );
- Region& operator=( const Rectangle& rRect );
+ Region& operator=( const Region& rRegion );
+ Region& operator=( const Rectangle& rRect );
- BOOL operator==( const Region& rRegion ) const;
- BOOL operator!=( const Region& rRegion ) const
+ BOOL operator==( const Region& rRegion ) const;
+ BOOL operator!=( const Region& rRegion ) const
{ return !(Region::operator==( rRegion )); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Region& rRegion );
@@ -153,6 +153,6 @@ public:
static Region GetRegionFromPolyPolygon( const PolyPolygon& rPolyPoly );
};
-#endif // _SV_REGION_HXX
+#endif // _SV_REGION_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/salatype.hxx b/vcl/inc/vcl/salatype.hxx
index 7507c6607dbe..2fd87f31ca51 100644
--- a/vcl/inc/vcl/salatype.hxx
+++ b/vcl/inc/vcl/salatype.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,13 +37,13 @@
// Derzeit doppelt und in apptypes.hxx auch vorhanden
-#define INPUT_MOUSE 0x0001
-#define INPUT_KEYBOARD 0x0002
-#define INPUT_PAINT 0x0004
-#define INPUT_TIMER 0x0008
-#define INPUT_OTHER 0x0010
-#define INPUT_MOUSEANDKEYBOARD (INPUT_MOUSE | INPUT_KEYBOARD)
-#define INPUT_ANY (INPUT_MOUSEANDKEYBOARD | INPUT_PAINT | INPUT_TIMER | INPUT_OTHER)
+#define INPUT_MOUSE 0x0001
+#define INPUT_KEYBOARD 0x0002
+#define INPUT_PAINT 0x0004
+#define INPUT_TIMER 0x0008
+#define INPUT_OTHER 0x0010
+#define INPUT_MOUSEANDKEYBOARD (INPUT_MOUSE | INPUT_KEYBOARD)
+#define INPUT_ANY (INPUT_MOUSEANDKEYBOARD | INPUT_PAINT | INPUT_TIMER | INPUT_OTHER)
#endif // _SV_SALATYPE_HXX
diff --git a/vcl/inc/vcl/salbmp.hxx b/vcl/inc/vcl/salbmp.hxx
index e2234323e80d..95bb9ac37fe2 100644
--- a/vcl/inc/vcl/salbmp.hxx
+++ b/vcl/inc/vcl/salbmp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,23 +45,23 @@ public:
SalBitmap() {}
virtual ~SalBitmap();
- virtual bool Create( const Size& rSize,
- USHORT nBitCount,
+ virtual bool Create( const Size& rSize,
+ USHORT nBitCount,
const BitmapPalette& rPal ) = 0;
- virtual bool Create( const SalBitmap& rSalBmp ) = 0;
- virtual bool Create( const SalBitmap& rSalBmp,
+ virtual bool Create( const SalBitmap& rSalBmp ) = 0;
+ virtual bool Create( const SalBitmap& rSalBmp,
SalGraphics* pGraphics ) = 0;
- virtual bool Create( const SalBitmap& rSalBmp,
+ virtual bool Create( const SalBitmap& rSalBmp,
USHORT nNewBitCount ) = 0;
- virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
+ virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
Size& rSize,
bool bMask = false ) = 0;
- virtual void Destroy() = 0;
- virtual Size GetSize() const = 0;
- virtual USHORT GetBitCount() const = 0;
+ virtual void Destroy() = 0;
+ virtual Size GetSize() const = 0;
+ virtual USHORT GetBitCount() const = 0;
- virtual BitmapBuffer* AcquireBuffer( bool bReadOnly ) = 0;
- virtual void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly ) = 0;
+ virtual BitmapBuffer* AcquireBuffer( bool bReadOnly ) = 0;
+ virtual void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly ) = 0;
virtual bool GetSystemData( BitmapSystemData& rData ) = 0;
};
diff --git a/vcl/inc/vcl/salbtype.hxx b/vcl/inc/vcl/salbtype.hxx
index 1721e201b1ae..5ace8c9afc93 100644
--- a/vcl/inc/vcl/salbtype.hxx
+++ b/vcl/inc/vcl/salbtype.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,63 +43,63 @@
// - Memory -
// ----------
-typedef BYTE* HPBYTE;
-typedef HPBYTE Scanline;
-typedef const BYTE* ConstHPBYTE;
-typedef ConstHPBYTE ConstScanline;
+typedef BYTE* HPBYTE;
+typedef HPBYTE Scanline;
+typedef const BYTE* ConstHPBYTE;
+typedef ConstHPBYTE ConstScanline;
// ------------------
// - Bitmap formats -
// ------------------
-#define BMP_FORMAT_BOTTOM_UP 0x00000000UL
-#define BMP_FORMAT_TOP_DOWN 0x80000000UL
+#define BMP_FORMAT_BOTTOM_UP 0x00000000UL
+#define BMP_FORMAT_TOP_DOWN 0x80000000UL
-#define BMP_FORMAT_1BIT_MSB_PAL 0x00000001UL
-#define BMP_FORMAT_1BIT_LSB_PAL 0x00000002UL
+#define BMP_FORMAT_1BIT_MSB_PAL 0x00000001UL
+#define BMP_FORMAT_1BIT_LSB_PAL 0x00000002UL
-#define BMP_FORMAT_4BIT_MSN_PAL 0x00000004UL
-#define BMP_FORMAT_4BIT_LSN_PAL 0x00000008UL
+#define BMP_FORMAT_4BIT_MSN_PAL 0x00000004UL
+#define BMP_FORMAT_4BIT_LSN_PAL 0x00000008UL
-#define BMP_FORMAT_8BIT_PAL 0x00000010UL
-#define BMP_FORMAT_8BIT_TC_MASK 0x00000020UL
+#define BMP_FORMAT_8BIT_PAL 0x00000010UL
+#define BMP_FORMAT_8BIT_TC_MASK 0x00000020UL
-// #define BMP_FORMAT_16BIT_TC_MASK 0x00000040UL
+// #define BMP_FORMAT_16BIT_TC_MASK 0x00000040UL
-#define BMP_FORMAT_24BIT_TC_BGR 0x00000080UL
-#define BMP_FORMAT_24BIT_TC_RGB 0x00000100UL
-#define BMP_FORMAT_24BIT_TC_MASK 0x00000200UL
+#define BMP_FORMAT_24BIT_TC_BGR 0x00000080UL
+#define BMP_FORMAT_24BIT_TC_RGB 0x00000100UL
+#define BMP_FORMAT_24BIT_TC_MASK 0x00000200UL
-#define BMP_FORMAT_32BIT_TC_ABGR 0x00000400UL
-#define BMP_FORMAT_32BIT_TC_ARGB 0x00000800UL
-#define BMP_FORMAT_32BIT_TC_BGRA 0x00001000UL
-#define BMP_FORMAT_32BIT_TC_RGBA 0x00002000UL
-#define BMP_FORMAT_32BIT_TC_MASK 0x00004000UL
+#define BMP_FORMAT_32BIT_TC_ABGR 0x00000400UL
+#define BMP_FORMAT_32BIT_TC_ARGB 0x00000800UL
+#define BMP_FORMAT_32BIT_TC_BGRA 0x00001000UL
+#define BMP_FORMAT_32BIT_TC_RGBA 0x00002000UL
+#define BMP_FORMAT_32BIT_TC_MASK 0x00004000UL
-#define BMP_FORMAT_16BIT_TC_MSB_MASK 0x00008000UL
-#define BMP_FORMAT_16BIT_TC_LSB_MASK 0x00010000UL
+#define BMP_FORMAT_16BIT_TC_MSB_MASK 0x00008000UL
+#define BMP_FORMAT_16BIT_TC_LSB_MASK 0x00010000UL
-#define BMP_SCANLINE_ADJUSTMENT( Mac_nBmpFormat ) ( (Mac_nBmpFormat) & 0x80000000UL )
-#define BMP_SCANLINE_FORMAT( Mac_nBmpFormat ) ( (Mac_nBmpFormat) & 0x7FFFFFFFUL )
+#define BMP_SCANLINE_ADJUSTMENT( Mac_nBmpFormat ) ( (Mac_nBmpFormat) & 0x80000000UL )
+#define BMP_SCANLINE_FORMAT( Mac_nBmpFormat ) ( (Mac_nBmpFormat) & 0x7FFFFFFFUL )
// ------------------------------------------------------------------
-#define MASK_TO_COLOR( d_nVal, d_RM, d_GM, d_BM, d_RS, d_GS, d_BS, d_Col ) \
-ULONG _def_cR = (BYTE) ( d_RS < 0L ? ( (d_nVal) & d_RM ) << -d_RS : ( (d_nVal) & d_RM ) >> d_RS ); \
-ULONG _def_cG = (BYTE) ( d_GS < 0L ? ( (d_nVal) & d_GM ) << -d_GS : ( (d_nVal) & d_GM ) >> d_GS ); \
-ULONG _def_cB = (BYTE) ( d_BS < 0L ? ( (d_nVal) & d_BM ) << -d_BS : ( (d_nVal) & d_BM ) >> d_BS ); \
-d_Col = BitmapColor( (BYTE) ( _def_cR | ( ( _def_cR & mnROr ) >> mnROrShift ) ), \
- (BYTE) ( _def_cG | ( ( _def_cG & mnGOr ) >> mnGOrShift ) ), \
+#define MASK_TO_COLOR( d_nVal, d_RM, d_GM, d_BM, d_RS, d_GS, d_BS, d_Col ) \
+ULONG _def_cR = (BYTE) ( d_RS < 0L ? ( (d_nVal) & d_RM ) << -d_RS : ( (d_nVal) & d_RM ) >> d_RS ); \
+ULONG _def_cG = (BYTE) ( d_GS < 0L ? ( (d_nVal) & d_GM ) << -d_GS : ( (d_nVal) & d_GM ) >> d_GS ); \
+ULONG _def_cB = (BYTE) ( d_BS < 0L ? ( (d_nVal) & d_BM ) << -d_BS : ( (d_nVal) & d_BM ) >> d_BS ); \
+d_Col = BitmapColor( (BYTE) ( _def_cR | ( ( _def_cR & mnROr ) >> mnROrShift ) ), \
+ (BYTE) ( _def_cG | ( ( _def_cG & mnGOr ) >> mnGOrShift ) ), \
(BYTE) ( _def_cB | ( ( _def_cB & mnBOr ) >> mnBOrShift ) ) );
// ------------------------------------------------------------------
#define COLOR_TO_MASK( d_rCol, d_RM, d_GM, d_BM, d_RS, d_GS, d_BS ) \
-( ( ( ( d_RS < 0L ) ? ( (UINT32) (d_rCol).GetRed() >> -d_RS ) : \
- ( (UINT32) (d_rCol).GetRed() << d_RS ) ) & d_RM ) | \
- ( ( ( d_GS < 0L ) ? ( (UINT32) (d_rCol).GetGreen() >> -d_GS ) : \
- ( (UINT32) (d_rCol).GetGreen() << d_GS ) ) & d_GM ) | \
- ( ( ( d_BS < 0L ) ? ( (UINT32) (d_rCol).GetBlue() >> -d_BS ) : \
+( ( ( ( d_RS < 0L ) ? ( (UINT32) (d_rCol).GetRed() >> -d_RS ) : \
+ ( (UINT32) (d_rCol).GetRed() << d_RS ) ) & d_RM ) | \
+ ( ( ( d_GS < 0L ) ? ( (UINT32) (d_rCol).GetGreen() >> -d_GS ) : \
+ ( (UINT32) (d_rCol).GetGreen() << d_GS ) ) & d_GM ) | \
+ ( ( ( d_BS < 0L ) ? ( (UINT32) (d_rCol).GetBlue() >> -d_BS ) : \
( (UINT32) (d_rCol).GetBlue() << d_BS ) ) & d_BM ) )
// ---------------
@@ -111,59 +111,59 @@ class Color;
class VCL_DLLPUBLIC BitmapColor
{
private:
-
+
// !!! Achtung:
// !!! da auf die Member dieser Klasse via memcpy
// !!! zugegriffen wird, darf diese Klasse weder
// !!! in der Groesse noch der Reihenfolge der
// !!! Member veraendert werden (KA 02.09.97)
- BYTE mcBlueOrIndex;
- BYTE mcGreen;
- BYTE mcRed;
- BYTE mbIndex;
+ BYTE mcBlueOrIndex;
+ BYTE mcGreen;
+ BYTE mcRed;
+ BYTE mbIndex;
public:
- inline BitmapColor();
- inline BitmapColor( const BitmapColor& rBitmapColor );
- inline BitmapColor( BYTE cRed, BYTE cGreen, BYTE cBlue );
- inline BitmapColor( const Color& rColor );
- inline BitmapColor( BYTE cIndex );
- inline ~BitmapColor() {};
+ inline BitmapColor();
+ inline BitmapColor( const BitmapColor& rBitmapColor );
+ inline BitmapColor( BYTE cRed, BYTE cGreen, BYTE cBlue );
+ inline BitmapColor( const Color& rColor );
+ inline BitmapColor( BYTE cIndex );
+ inline ~BitmapColor() {};
- inline BOOL operator==( const BitmapColor& rBitmapColor ) const;
- inline BOOL operator!=( const BitmapColor& rBitmapColor ) const;
+ inline BOOL operator==( const BitmapColor& rBitmapColor ) const;
+ inline BOOL operator!=( const BitmapColor& rBitmapColor ) const;
inline BitmapColor& operator=( const BitmapColor& rBitmapColor );
- inline BOOL IsIndex() const;
+ inline BOOL IsIndex() const;
- inline BYTE GetRed() const;
- inline void SetRed( BYTE cRed );
+ inline BYTE GetRed() const;
+ inline void SetRed( BYTE cRed );
- inline BYTE GetGreen() const;
- inline void SetGreen( BYTE cGreen );
+ inline BYTE GetGreen() const;
+ inline void SetGreen( BYTE cGreen );
- inline BYTE GetBlue() const;
- inline void SetBlue( BYTE cBlue );
+ inline BYTE GetBlue() const;
+ inline void SetBlue( BYTE cBlue );
- inline BYTE GetIndex() const;
- inline void SetIndex( BYTE cIndex );
+ inline BYTE GetIndex() const;
+ inline void SetIndex( BYTE cIndex );
- operator Color() const;
- inline operator BYTE() const;
+ operator Color() const;
+ inline operator BYTE() const;
inline BYTE GetBlueOrIndex() const;
inline BitmapColor& Invert();
- inline BYTE GetLuminance() const;
+ inline BYTE GetLuminance() const;
inline BitmapColor& IncreaseLuminance( BYTE cGreyInc );
inline BitmapColor& DecreaseLuminance( BYTE cGreyDec );
+
+ inline BitmapColor& Merge( const BitmapColor& rColor, BYTE cTransparency );
+ inline BitmapColor& Merge( BYTE cR, BYTE cG, BYTE cB, BYTE cTransparency );
- inline BitmapColor& Merge( const BitmapColor& rColor, BYTE cTransparency );
- inline BitmapColor& Merge( BYTE cR, BYTE cG, BYTE cB, BYTE cTransparency );
-
- inline ULONG GetColorError( const BitmapColor& rBitmapColor ) const;
+ inline ULONG GetColorError( const BitmapColor& rBitmapColor ) const;
};
// ---------------
@@ -179,35 +179,35 @@ class VCL_DLLPUBLIC BitmapPalette
private:
- BitmapColor* mpBitmapColor;
- USHORT mnCount;
+ BitmapColor* mpBitmapColor;
+ USHORT mnCount;
public:
-
+
SAL_DLLPRIVATE inline BitmapColor* ImplGetColorBuffer() const;
public:
- inline BitmapPalette();
- inline BitmapPalette( const BitmapPalette& rBitmapPalette );
- inline BitmapPalette( USHORT nCount );
- inline ~BitmapPalette();
+ inline BitmapPalette();
+ inline BitmapPalette( const BitmapPalette& rBitmapPalette );
+ inline BitmapPalette( USHORT nCount );
+ inline ~BitmapPalette();
- inline BitmapPalette& operator=( const BitmapPalette& rBitmapPalette );
- inline BOOL operator==( const BitmapPalette& rBitmapPalette ) const;
- inline BOOL operator!=( const BitmapPalette& rBitmapPalette ) const;
- inline BOOL operator!();
+ inline BitmapPalette& operator=( const BitmapPalette& rBitmapPalette );
+ inline BOOL operator==( const BitmapPalette& rBitmapPalette ) const;
+ inline BOOL operator!=( const BitmapPalette& rBitmapPalette ) const;
+ inline BOOL operator!();
- inline USHORT GetEntryCount() const;
- inline void SetEntryCount( USHORT nCount );
+ inline USHORT GetEntryCount() const;
+ inline void SetEntryCount( USHORT nCount );
- inline const BitmapColor& operator[]( USHORT nIndex ) const;
- inline BitmapColor& operator[]( USHORT nIndex );
+ inline const BitmapColor& operator[]( USHORT nIndex ) const;
+ inline BitmapColor& operator[]( USHORT nIndex );
- inline USHORT GetBestIndex( const BitmapColor& rCol ) const;
- bool IsGreyPalette() const;
+ inline USHORT GetBestIndex( const BitmapColor& rCol ) const;
+ bool IsGreyPalette() const;
};
// ---------------
@@ -216,43 +216,43 @@ public:
class VCL_DLLPUBLIC ColorMask
{
- ULONG mnRMask;
- ULONG mnGMask;
- ULONG mnBMask;
- long mnRShift;
- long mnGShift;
- long mnBShift;
- ULONG mnROrShift;
- ULONG mnGOrShift;
- ULONG mnBOrShift;
- ULONG mnROr;
- ULONG mnGOr;
- ULONG mnBOr;
+ ULONG mnRMask;
+ ULONG mnGMask;
+ ULONG mnBMask;
+ long mnRShift;
+ long mnGShift;
+ long mnBShift;
+ ULONG mnROrShift;
+ ULONG mnGOrShift;
+ ULONG mnBOrShift;
+ ULONG mnROr;
+ ULONG mnGOr;
+ ULONG mnBOr;
SAL_DLLPRIVATE inline long ImplCalcMaskShift( ULONG nMask, ULONG& rOr, ULONG& rOrShift ) const;
public:
- inline ColorMask( ULONG nRedMask = 0UL, ULONG nGreenMask = 0UL, ULONG nBlueMask = 0UL );
- inline ~ColorMask() {}
+ inline ColorMask( ULONG nRedMask = 0UL, ULONG nGreenMask = 0UL, ULONG nBlueMask = 0UL );
+ inline ~ColorMask() {}
- inline ULONG GetRedMask() const;
- inline ULONG GetGreenMask() const;
- inline ULONG GetBlueMask() const;
+ inline ULONG GetRedMask() const;
+ inline ULONG GetGreenMask() const;
+ inline ULONG GetBlueMask() const;
- inline void GetColorFor8Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
- inline void SetColorFor8Bit( const BitmapColor& rColor, HPBYTE pPixel ) const;
+ inline void GetColorFor8Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
+ inline void SetColorFor8Bit( const BitmapColor& rColor, HPBYTE pPixel ) const;
- inline void GetColorFor16BitMSB( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
- inline void SetColorFor16BitMSB( const BitmapColor& rColor, HPBYTE pPixel ) const;
- inline void GetColorFor16BitLSB( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
- inline void SetColorFor16BitLSB( const BitmapColor& rColor, HPBYTE pPixel ) const;
+ inline void GetColorFor16BitMSB( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
+ inline void SetColorFor16BitMSB( const BitmapColor& rColor, HPBYTE pPixel ) const;
+ inline void GetColorFor16BitLSB( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
+ inline void SetColorFor16BitLSB( const BitmapColor& rColor, HPBYTE pPixel ) const;
- inline void GetColorFor24Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
- inline void SetColorFor24Bit( const BitmapColor& rColor, HPBYTE pPixel ) const;
+ inline void GetColorFor24Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
+ inline void SetColorFor24Bit( const BitmapColor& rColor, HPBYTE pPixel ) const;
- inline void GetColorFor32Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
- inline void SetColorFor32Bit( const BitmapColor& rColor, HPBYTE pPixel ) const;
+ inline void GetColorFor32Bit( BitmapColor& rColor, ConstHPBYTE pPixel ) const;
+ inline void SetColorFor32Bit( const BitmapColor& rColor, HPBYTE pPixel ) const;
};
// ---------------
@@ -261,14 +261,14 @@ public:
struct VCL_DLLPUBLIC BitmapBuffer
{
- ULONG mnFormat;
- long mnWidth;
- long mnHeight;
- long mnScanlineSize;
- USHORT mnBitCount;
- ColorMask maColorMask;
- BitmapPalette maPalette;
- BYTE* mpBits;
+ ULONG mnFormat;
+ long mnWidth;
+ long mnHeight;
+ long mnScanlineSize;
+ USHORT mnBitCount;
+ ColorMask maColorMask;
+ BitmapPalette maPalette;
+ BYTE* mpBits;
BitmapBuffer(){}
~BitmapBuffer() {}
@@ -278,56 +278,56 @@ struct VCL_DLLPUBLIC BitmapBuffer
// - StretchAndConvert -
// ---------------------
-VCL_DLLPUBLIC BitmapBuffer* StretchAndConvert( const BitmapBuffer& rSrcBuffer, const SalTwoRect& rTwoRect,
+VCL_DLLPUBLIC BitmapBuffer* StretchAndConvert( const BitmapBuffer& rSrcBuffer, const SalTwoRect& rTwoRect,
ULONG nDstBitmapFormat, BitmapPalette* pDstPal = NULL, ColorMask* pDstMask = NULL );
// ------------------------------------------------------------------
inline BitmapColor::BitmapColor() :
- mcBlueOrIndex ( 0 ),
- mcGreen ( 0 ),
- mcRed ( 0 ),
- mbIndex ( FALSE )
+ mcBlueOrIndex ( 0 ),
+ mcGreen ( 0 ),
+ mcRed ( 0 ),
+ mbIndex ( FALSE )
{
}
// ------------------------------------------------------------------
inline BitmapColor::BitmapColor( BYTE cRed, BYTE cGreen, BYTE cBlue ) :
- mcBlueOrIndex ( cBlue ),
- mcGreen ( cGreen ),
- mcRed ( cRed ),
- mbIndex ( FALSE )
+ mcBlueOrIndex ( cBlue ),
+ mcGreen ( cGreen ),
+ mcRed ( cRed ),
+ mbIndex ( FALSE )
{
}
// ------------------------------------------------------------------
inline BitmapColor::BitmapColor( const BitmapColor& rBitmapColor ) :
- mcBlueOrIndex ( rBitmapColor.mcBlueOrIndex ),
- mcGreen ( rBitmapColor.mcGreen ),
- mcRed ( rBitmapColor.mcRed ),
- mbIndex ( rBitmapColor.mbIndex )
+ mcBlueOrIndex ( rBitmapColor.mcBlueOrIndex ),
+ mcGreen ( rBitmapColor.mcGreen ),
+ mcRed ( rBitmapColor.mcRed ),
+ mbIndex ( rBitmapColor.mbIndex )
{
}
// ------------------------------------------------------------------
inline BitmapColor::BitmapColor( const Color& rColor ) :
- mcBlueOrIndex ( rColor.GetBlue() ),
- mcGreen ( rColor.GetGreen() ),
- mcRed ( rColor.GetRed() ),
- mbIndex ( 0 )
+ mcBlueOrIndex ( rColor.GetBlue() ),
+ mcGreen ( rColor.GetGreen() ),
+ mcRed ( rColor.GetRed() ),
+ mbIndex ( 0 )
{
}
// ------------------------------------------------------------------
inline BitmapColor::BitmapColor( BYTE cIndex ) :
- mcBlueOrIndex ( cIndex ),
- mcGreen ( 0 ),
- mcRed ( 0 ),
- mbIndex ( TRUE )
+ mcBlueOrIndex ( cIndex ),
+ mcGreen ( 0 ),
+ mcRed ( 0 ),
+ mbIndex ( TRUE )
{
}
@@ -498,26 +498,26 @@ inline BitmapColor& BitmapColor::DecreaseLuminance( BYTE cGreyDec )
// ------------------------------------------------------------------
-inline BitmapColor& BitmapColor::Merge( const BitmapColor& rBitmapColor, BYTE cTransparency )
+inline BitmapColor& BitmapColor::Merge( const BitmapColor& rBitmapColor, BYTE cTransparency )
{
DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" );
DBG_ASSERT( !rBitmapColor.mbIndex, "Pixel represents index into colortable!" );
mcBlueOrIndex = COLOR_CHANNEL_MERGE( mcBlueOrIndex, rBitmapColor.mcBlueOrIndex, cTransparency );
mcGreen = COLOR_CHANNEL_MERGE( mcGreen, rBitmapColor.mcGreen, cTransparency );
mcRed = COLOR_CHANNEL_MERGE( mcRed, rBitmapColor.mcRed, cTransparency );
-
+
return *this;
}
// ------------------------------------------------------------------
-inline BitmapColor& BitmapColor::Merge( BYTE cR, BYTE cG, BYTE cB, BYTE cTransparency )
+inline BitmapColor& BitmapColor::Merge( BYTE cR, BYTE cG, BYTE cB, BYTE cTransparency )
{
DBG_ASSERT( !mbIndex, "Pixel represents index into colortable!" );
mcBlueOrIndex = COLOR_CHANNEL_MERGE( mcBlueOrIndex, cB, cTransparency );
mcGreen = COLOR_CHANNEL_MERGE( mcGreen, cG, cTransparency );
mcRed = COLOR_CHANNEL_MERGE( mcRed, cR, cTransparency );
-
+
return *this;
}
@@ -535,8 +535,8 @@ inline ULONG BitmapColor::GetColorError( const BitmapColor& rBitmapColor ) const
// ------------------------------------------------------------------
inline BitmapPalette::BitmapPalette() :
- mpBitmapColor ( NULL ),
- mnCount ( 0 )
+ mpBitmapColor ( NULL ),
+ mnCount ( 0 )
{
}
@@ -654,9 +654,9 @@ inline void BitmapPalette::SetEntryCount( USHORT nCount )
{
const ULONG nNewSize = nCount * sizeof( BitmapColor );
const ULONG nMinSize = Min( mnCount, nCount ) * sizeof( BitmapColor );
- BYTE* pNewColor = new BYTE[ nNewSize ];
+ BYTE* pNewColor = new BYTE[ nNewSize ];
- if ( nMinSize && mpBitmapColor )
+ if ( nMinSize && mpBitmapColor )
memcpy( pNewColor, mpBitmapColor, nMinSize );
delete[] (BYTE*) mpBitmapColor;
memset( pNewColor + nMinSize, 0, nNewSize - nMinSize );
@@ -737,9 +737,9 @@ inline ColorMask::ColorMask( ULONG nRedMask, ULONG nGreenMask, ULONG nBlueMask )
inline long ColorMask::ImplCalcMaskShift( ULONG nMask, ULONG& rOr, ULONG& rOrShift ) const
{
- long nShift;
- long nRet;
- ULONG nLen = 0UL;
+ long nShift;
+ long nRet;
+ ULONG nLen = 0UL;
// bei welchen Bits faengt die Maske an
for( nShift = 31L; ( nShift >= 0L ) && !( nMask & ( 1 << (ULONG) nShift ) ); nShift-- )
diff --git a/vcl/inc/vcl/salctrlhandle.hxx b/vcl/inc/vcl/salctrlhandle.hxx
index 2cdb5af3a3e5..d3fe8dec3e94 100644
--- a/vcl/inc/vcl/salctrlhandle.hxx
+++ b/vcl/inc/vcl/salctrlhandle.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ class SalControlHandle
virtual ~SalControlHandle();
// TODO: derive Sal implementation
- //SalControlHandleData maData;
+ //SalControlHandleData maData;
};
#endif
diff --git a/vcl/inc/vcl/salctype.hxx b/vcl/inc/vcl/salctype.hxx
index c7136b98b5bf..5e9927551390 100644
--- a/vcl/inc/vcl/salctype.hxx
+++ b/vcl/inc/vcl/salctype.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,17 +35,17 @@
// - Defines -
// -----------
-#define CVT_UNKNOWN (0x00000000UL)
-#define CVT_BMP (0x00000001UL)
-#define CVT_GIF (0x00000002UL)
-#define CVT_JPG (0x00000003UL)
-#define CVT_MET (0x00000004UL)
-#define CVT_PCT (0x00000005UL)
-#define CVT_PNG (0x00000006UL)
-#define CVT_SVM (0x00000007UL)
-#define CVT_TIF (0x00000008UL)
-#define CVT_WMF (0x00000009UL)
-#define CVT_EMF (0x0000000aUL)
+#define CVT_UNKNOWN (0x00000000UL)
+#define CVT_BMP (0x00000001UL)
+#define CVT_GIF (0x00000002UL)
+#define CVT_JPG (0x00000003UL)
+#define CVT_MET (0x00000004UL)
+#define CVT_PCT (0x00000005UL)
+#define CVT_PNG (0x00000006UL)
+#define CVT_SVM (0x00000007UL)
+#define CVT_TIF (0x00000008UL)
+#define CVT_WMF (0x00000009UL)
+#define CVT_EMF (0x0000000aUL)
// ---------------
// - ConvertData -
@@ -61,9 +61,9 @@ private:
public:
- Graphic maGraphic;
- SvStream& mrStm;
- ULONG mnFormat;
+ Graphic maGraphic;
+ SvStream& mrStm;
+ ULONG mnFormat;
ConvertData( const Graphic& rGraphic, SvStream& rStm, ULONG nFormat ) :
maGraphic( rGraphic ), mrStm( rStm ), mnFormat( nFormat ) {}
@@ -74,7 +74,7 @@ public:
// - Callback -
// ------------
-typedef ULONG (*SALGRFCVTPROC)( void* pInst,
+typedef ULONG (*SALGRFCVTPROC)( void* pInst,
ULONG nInFormat, void* pInBuffer, ULONG nInBufSize,
ULONG nOutFormat, void** ppOutBuffer );
diff --git a/vcl/inc/vcl/saldatabasic.hxx b/vcl/inc/vcl/saldatabasic.hxx
index c4716507e7e6..77968c95aef4 100644
--- a/vcl/inc/vcl/saldatabasic.hxx
+++ b/vcl/inc/vcl/saldatabasic.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,8 +36,8 @@
class VCL_DLLPUBLIC SalData
{
public:
- SalInstance* m_pInstance; // pointer to instance
- oslModule m_pPlugin; // plugin library handle
+ SalInstance* m_pInstance; // pointer to instance
+ oslModule m_pPlugin; // plugin library handle
SalData();
virtual ~SalData();
diff --git a/vcl/inc/vcl/salframe.hxx b/vcl/inc/vcl/salframe.hxx
index 9e7a1ab0e007..3e4671dd3a7d 100644
--- a/vcl/inc/vcl/salframe.hxx
+++ b/vcl/inc/vcl/salframe.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ struct SystemEnvData;
#define SAL_FRAME_TOTOP_RESTOREWHENMIN ((USHORT)0x0001)
#define SAL_FRAME_TOTOP_FOREGROUNDTASK ((USHORT)0x0002)
#define SAL_FRAME_TOTOP_GRABFOCUS ((USHORT)0x0004)
-#define SAL_FRAME_TOTOP_GRABFOCUS_ONLY ((USHORT)0x0008)
+#define SAL_FRAME_TOTOP_GRABFOCUS_ONLY ((USHORT)0x0008)
#define SAL_FRAME_ENDEXTTEXTINPUT_COMPLETE ((USHORT)0x0001)
#define SAL_FRAME_ENDEXTTEXTINPUT_CANCEL ((USHORT)0x0002)
@@ -143,76 +143,76 @@ struct SystemParentData;
class VCL_DLLPUBLIC SalFrame : public vcl::DeletionNotifier
{
// the VCL window corresponding to this frame
- Window* m_pWindow;
- SALFRAMEPROC m_pProc;
+ Window* m_pWindow;
+ SALFRAMEPROC m_pProc;
public: // public for Sal Implementation
SalFrame() : m_pWindow( NULL ), m_pProc( NULL ) {}
virtual ~SalFrame();
public: // public for Sal Implementation
- SalFrameGeometry maGeometry;
+ SalFrameGeometry maGeometry;
public:
// SalGraphics or NULL, but two Graphics for all SalFrames
// must be returned
- virtual SalGraphics* GetGraphics() = 0;
- virtual void ReleaseGraphics( SalGraphics* pGraphics ) = 0;
+ virtual SalGraphics* GetGraphics() = 0;
+ virtual void ReleaseGraphics( SalGraphics* pGraphics ) = 0;
// Event must be destroyed, when Frame is destroyed
// When Event is called, SalInstance::Yield() must be returned
- virtual BOOL PostEvent( void* pData ) = 0;
+ virtual BOOL PostEvent( void* pData ) = 0;
- virtual void SetTitle( const XubString& rTitle ) = 0;
- virtual void SetIcon( USHORT nIcon ) = 0;
+ virtual void SetTitle( const XubString& rTitle ) = 0;
+ virtual void SetIcon( USHORT nIcon ) = 0;
virtual void SetRepresentedURL( const rtl::OUString& );
virtual void SetMenu( SalMenu *pSalMenu ) = 0;
virtual void DrawMenuBar() = 0;
virtual void SetExtendedFrameStyle( SalExtStyle nExtStyle ) = 0;
-
+
// Before the window is visible, a resize event
// must be sent with the correct size
- virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE ) = 0;
- virtual void Enable( BOOL bEnable ) = 0;
+ virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE ) = 0;
+ virtual void Enable( BOOL bEnable ) = 0;
// Set ClientSize and Center the Window to the desktop
// and send/post a resize message
virtual void SetMinClientSize( long nWidth, long nHeight ) = 0;
virtual void SetMaxClientSize( long nWidth, long nHeight ) = 0;
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags ) = 0;
- virtual void GetClientSize( long& rWidth, long& rHeight ) = 0;
- virtual void GetWorkArea( Rectangle& rRect ) = 0;
- virtual SalFrame* GetParent() const = 0;
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags ) = 0;
+ virtual void GetClientSize( long& rWidth, long& rHeight ) = 0;
+ virtual void GetWorkArea( Rectangle& rRect ) = 0;
+ virtual SalFrame* GetParent() const = 0;
// Note: x will be mirrored at parent if UI mirroring is active
- SalFrameGeometry GetGeometry();
- const SalFrameGeometry& GetUnmirroredGeometry() const { return maGeometry; }
- virtual void SetWindowState( const SalFrameState* pState ) = 0;
- virtual BOOL GetWindowState( SalFrameState* pState ) = 0;
- virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay ) = 0;
+ SalFrameGeometry GetGeometry();
+ const SalFrameGeometry& GetUnmirroredGeometry() const { return maGeometry; }
+ virtual void SetWindowState( const SalFrameState* pState ) = 0;
+ virtual BOOL GetWindowState( SalFrameState* pState ) = 0;
+ virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay ) = 0;
// Enable/Disable ScreenSaver, SystemAgents, ...
- virtual void StartPresentation( BOOL bStart ) = 0;
+ virtual void StartPresentation( BOOL bStart ) = 0;
// Show Window over all other Windows
- virtual void SetAlwaysOnTop( BOOL bOnTop ) = 0;
+ virtual void SetAlwaysOnTop( BOOL bOnTop ) = 0;
// Window to top and grab focus
- virtual void ToTop( USHORT nFlags ) = 0;
+ virtual void ToTop( USHORT nFlags ) = 0;
// this function can call with the same
// pointer style
- virtual void SetPointer( PointerStyle ePointerStyle ) = 0;
- virtual void CaptureMouse( BOOL bMouse ) = 0;
- virtual void SetPointerPos( long nX, long nY ) = 0;
+ virtual void SetPointer( PointerStyle ePointerStyle ) = 0;
+ virtual void CaptureMouse( BOOL bMouse ) = 0;
+ virtual void SetPointerPos( long nX, long nY ) = 0;
// flush output buffer
- virtual void Flush( void) = 0;
+ virtual void Flush( void) = 0;
virtual void Flush( const Rectangle& );
// flush output buffer, wait till outstanding operations are done
- virtual void Sync() = 0;
+ virtual void Sync() = 0;
- virtual void SetInputContext( SalInputContext* pContext ) = 0;
- virtual void EndExtTextInput( USHORT nFlags ) = 0;
+ virtual void SetInputContext( SalInputContext* pContext ) = 0;
+ virtual void EndExtTextInput( USHORT nFlags ) = 0;
- virtual String GetKeyName( USHORT nKeyCode ) = 0;
- virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode ) = 0;
+ virtual String GetKeyName( USHORT nKeyCode ) = 0;
+ virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode ) = 0;
// returns in 'rKeyCode' the single keycode that translates to the given unicode when using a keyboard layout of language 'aLangType'
// returns FALSE if no mapping exists or function not supported
@@ -221,17 +221,17 @@ public:
// returns the input language used for the last key stroke
// may be LANGUAGE_DONTKNOW if not supported by the OS
- virtual LanguageType GetInputLanguage() = 0;
+ virtual LanguageType GetInputLanguage() = 0;
- virtual SalBitmap* SnapShot() = 0;
+ virtual SalBitmap* SnapShot() = 0;
- virtual void UpdateSettings( AllSettings& rSettings ) = 0;
+ virtual void UpdateSettings( AllSettings& rSettings ) = 0;
- virtual void Beep( SoundType eSoundType ) = 0;
+ virtual void Beep( SoundType eSoundType ) = 0;
// returns system data (most prominent: window handle)
- virtual const SystemEnvData* GetSystemData() const = 0;
-
+ virtual const SystemEnvData* GetSystemData() const = 0;
+
// sets a background bitmap on the frame; the implementation
// must not make assumptions about the lifetime of the passed SalBitmap
// but should copy its contents to an own buffer
@@ -245,7 +245,7 @@ public:
Point maPos; // in frame coordinates
};
- virtual SalPointerState GetPointerState() = 0;
+ virtual SalPointerState GetPointerState() = 0;
struct SalIndicatorState
{
@@ -257,12 +257,12 @@ public:
virtual void SimulateKeyPress( USHORT nKeyCode ) = 0;
// set new parent window
- virtual void SetParent( SalFrame* pNewParent ) = 0;
+ virtual void SetParent( SalFrame* pNewParent ) = 0;
// reparent window to act as a plugin; implementation
// may choose to use a new system window inetrnally
// return false to indicate failure
- virtual bool SetPluginParent( SystemParentData* pNewParent ) = 0;
-
+ virtual bool SetPluginParent( SystemParentData* pNewParent ) = 0;
+
// move the frame to a new screen
virtual void SetScreenNumber( unsigned int nScreen ) = 0;
@@ -270,18 +270,18 @@ public:
// shaped system windows
// set clip region to none (-> rectangular windows, normal state)
- virtual void ResetClipRegion() = 0;
+ virtual void ResetClipRegion() = 0;
// start setting the clipregion consisting of nRects rectangles
- virtual void BeginSetClipRegion( ULONG nRects ) = 0;
+ virtual void BeginSetClipRegion( ULONG nRects ) = 0;
// add a rectangle to the clip region
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) = 0;
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) = 0;
// done setting up the clipregion
- virtual void EndSetClipRegion() = 0;
+ virtual void EndSetClipRegion() = 0;
// Callbacks (indepent part in vcl/source/window/winproc.cxx)
// for default message handling return 0
- void SetCallback( Window* pWindow, SALFRAMEPROC pProc )
+ void SetCallback( Window* pWindow, SALFRAMEPROC pProc )
{ m_pWindow = pWindow; m_pProc = pProc; }
// returns the instance set
@@ -290,7 +290,7 @@ public:
// Call the callback set; this sometimes necessary for implementation classes
// that should not now more than necessary about the SalFrame implementation
// (e.g. input methods, printer update handlers).
- long CallCallback( USHORT nEvent, const void* pEvent ) const
+ long CallCallback( USHORT nEvent, const void* pEvent ) const
{ return m_pProc ? m_pProc( m_pWindow, const_cast<SalFrame*>(this), nEvent, pEvent ) : 0; }
};
diff --git a/vcl/inc/vcl/salgdi.hxx b/vcl/inc/vcl/salgdi.hxx
index 0e29449ebda7..a92a7d91cdf1 100644
--- a/vcl/inc/vcl/salgdi.hxx
+++ b/vcl/inc/vcl/salgdi.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,7 +100,7 @@ typedef std::vector< sal_Int32 > Int32Vector;
class VCL_DLLPUBLIC SalGraphics
{
- int m_nLayout; // 0: mirroring off, 1: mirror x-axis
+ int m_nLayout; // 0: mirroring off, 1: mirror x-axis
protected:
// flags which hold the SetAntialiasing() value from OutputDevice
@@ -115,48 +115,48 @@ public:
virtual ~SalGraphics();
protected:
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight ) = 0;
- virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& ) = 0;
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight ) = 0;
+ virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& ) = 0;
// draw --> LineColor and FillColor and RasterOp and ClipRegion
- virtual void drawPixel( long nX, long nY ) = 0;
- virtual void drawPixel( long nX, long nY, SalColor nSalColor ) = 0;
- virtual void drawLine( long nX1, long nY1, long nX2, long nY2 ) = 0;
- virtual void drawRect( long nX, long nY, long nWidth, long nHeight ) = 0;
- virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry ) = 0;
- virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry ) = 0;
- virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry ) = 0;
+ virtual void drawPixel( long nX, long nY ) = 0;
+ virtual void drawPixel( long nX, long nY, SalColor nSalColor ) = 0;
+ virtual void drawLine( long nX1, long nY1, long nX2, long nY2 ) = 0;
+ virtual void drawRect( long nX, long nY, long nWidth, long nHeight ) = 0;
+ virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry ) = 0;
+ virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry ) = 0;
+ virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry ) = 0;
virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency ) = 0;
virtual bool drawPolyLine( const ::basegfx::B2DPolygon&, double fTransparency, const ::basegfx::B2DVector& rLineWidths, basegfx::B2DLineJoin ) = 0;
- virtual sal_Bool drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) = 0;
- virtual sal_Bool drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) = 0;
- virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry ) = 0;
+ virtual sal_Bool drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) = 0;
+ virtual sal_Bool drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry ) = 0;
+ virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry ) = 0;
// CopyArea --> No RasterOp, but ClipRegion
- virtual void copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
+ virtual void copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
long nSrcHeight, USHORT nFlags ) = 0;
// CopyBits and DrawBitmap --> RasterOp and ClipRegion
// CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
- virtual void copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics ) = 0;
- virtual void drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap ) = 0;
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics ) = 0;
+ virtual void drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap ) = 0;
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor ) = 0;
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rMaskBitmap ) = 0;
- virtual void drawMask( const SalTwoRect* pPosAry,
+ virtual void drawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor ) = 0;
- virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight ) = 0;
- virtual SalColor getPixel( long nX, long nY ) = 0;
+ virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight ) = 0;
+ virtual SalColor getPixel( long nX, long nY ) = 0;
// invert --> ClipRegion (only Windows or VirDevs)
- virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags) = 0;
- virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags ) = 0;
+ virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags) = 0;
+ virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags ) = 0;
- virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize ) = 0;
+ virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize ) = 0;
// native widget rendering methods that require mirroring
virtual BOOL hitTestNativeControl( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion,
@@ -183,7 +183,7 @@ protected:
otherwise. In this case, clients should try to emulate alpha
compositing themselves
*/
- virtual bool drawAlphaBitmap( const SalTwoRect&,
+ virtual bool drawAlphaBitmap( const SalTwoRect&,
const SalBitmap& rSourceBitmap,
const SalBitmap& rAlphaBitmap ) = 0;
/** Render solid rectangle with given transparency
@@ -192,61 +192,61 @@ protected:
Transparency value (0-255) to use. 0 blits and opaque, 255 a
fully transparent rectangle
*/
- virtual bool drawAlphaRect( long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency ) = 0;
+ virtual bool drawAlphaRect( long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency ) = 0;
public:
// public SalGraphics methods, the interface to the independent vcl part
// get device resolution
- virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY ) = 0;
+ virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY ) = 0;
// get the depth of the device
- virtual USHORT GetBitCount() = 0;
+ virtual USHORT GetBitCount() = 0;
// get the width of the device
- virtual long GetGraphicsWidth() const = 0;
+ virtual long GetGraphicsWidth() const = 0;
// set the clip region to empty
- virtual void ResetClipRegion() = 0;
+ virtual void ResetClipRegion() = 0;
// begin setting the clip region, add rectangles to the
// region with the UnionClipRegion call
- virtual void BeginSetClipRegion( ULONG nCount ) = 0;
+ virtual void BeginSetClipRegion( ULONG nCount ) = 0;
// all rectangles were added and the clip region should be set now
- virtual void EndSetClipRegion() = 0;
+ virtual void EndSetClipRegion() = 0;
// set the line color to transparent (= don't draw lines)
- virtual void SetLineColor() = 0;
+ virtual void SetLineColor() = 0;
// set the line color to a specific color
- virtual void SetLineColor( SalColor nSalColor ) = 0;
+ virtual void SetLineColor( SalColor nSalColor ) = 0;
// set the fill color to transparent (= don't fill)
- virtual void SetFillColor() = 0;
+ virtual void SetFillColor() = 0;
// set the fill color to a specific color, shapes will be
// filled accordingly
- virtual void SetFillColor( SalColor nSalColor ) = 0;
+ virtual void SetFillColor( SalColor nSalColor ) = 0;
// enable/disable XOR drawing
- virtual void SetXORMode( bool bSet, bool bInvertOnly ) = 0;
+ virtual void SetXORMode( bool bSet, bool bInvertOnly ) = 0;
// set line color for raster operations
- virtual void SetROPLineColor( SalROPColor nROPColor ) = 0;
+ virtual void SetROPLineColor( SalROPColor nROPColor ) = 0;
// set fill color for raster operations
- virtual void SetROPFillColor( SalROPColor nROPColor ) = 0;
+ virtual void SetROPFillColor( SalROPColor nROPColor ) = 0;
// set the text color to a specific color
- virtual void SetTextColor( SalColor nSalColor ) = 0;
+ virtual void SetTextColor( SalColor nSalColor ) = 0;
// set the font
virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel ) = 0;
// release the fonts
void ReleaseFonts() { SetFont( NULL, 0 ); }
// get the current font's metrics
- virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel = 0 ) = 0;
+ virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel = 0 ) = 0;
// get kernign pairs of the current font
// return only PairCount if (pKernPairs == NULL)
- virtual ULONG GetKernPairs( ULONG nMaxPairCount, ImplKernPairData* ) = 0;
+ virtual ULONG GetKernPairs( ULONG nMaxPairCount, ImplKernPairData* ) = 0;
// get the repertoire of the current font
virtual ImplFontCharMap* GetImplFontCharMap() const = 0;
// graphics must fill supplied font list
- virtual void GetDevFontList( ImplDevFontList* ) = 0;
+ virtual void GetDevFontList( ImplDevFontList* ) = 0;
// graphics should call ImplAddDevFontSubstitute on supplied
// OutputDevice for all its device specific preferred font substitutions
- virtual void GetDevFontSubstList( OutputDevice* ) = 0;
- virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName ) = 0;
+ virtual void GetDevFontSubstList( OutputDevice* ) = 0;
+ virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName ) = 0;
// CreateFontSubset: a method to get a subset of glyhps of a font
// inside a new valid font file
// returns TRUE if creation of subset was successfull
@@ -259,7 +259,7 @@ public:
// rInfo: additional outgoing information
// implementation note: encoding 0 with glyph id 0 should be added implicitly
// as "undefined character"
- virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
+ virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
const ImplFontData* pFont,
sal_Int32* pGlyphIDs,
sal_uInt8* pEncoding,
@@ -292,8 +292,8 @@ public:
FontSubsetInfo& rInfo,
long* pDataLen ) = 0;
// frees the font data again
- virtual void FreeEmbedFontData( const void* pData, long nDataLen ) = 0;
-
+ virtual void FreeEmbedFontData( const void* pData, long nDataLen ) = 0;
+
// get the same widths as in CreateFontSubset and GetEmbedFontData
// in case of an embeddable font also fill the mapping
// between unicode and glyph id
@@ -307,7 +307,7 @@ public:
virtual BOOL GetGlyphOutline( long nIndex, basegfx::B2DPolyPolygon& ) = 0;
virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel ) = 0;
- virtual void DrawServerFontLayout( const ServerFontLayout& ) = 0;
+ virtual void DrawServerFontLayout( const ServerFontLayout& ) = 0;
/** Filter text from DrawText commands in a device specific manner
<p>
This function allows a device (or rather the corresponding SalGraphics
@@ -340,16 +340,16 @@ public:
false: no substitution has taken place, rNewText, rLen, rCutStart, rCutStop remain unchanged
*/
virtual bool filterText( const String& rOrigText, String& rNewText, xub_StrLen nIndex, xub_StrLen& rLen, xub_StrLen& rCutStart, xub_StrLen& rCutStop );
-
+
virtual bool supportsOperation( OutDevSupportType ) const = 0;
// mirroring specifica
- int GetLayout() { return m_nLayout; }
- void SetLayout( int aLayout ) { m_nLayout = aLayout;}
+ int GetLayout() { return m_nLayout; }
+ void SetLayout( int aLayout ) { m_nLayout = aLayout;}
- void mirror( long& nX, const OutputDevice *pOutDev, bool bBack = false ) const;
- void mirror( long& nX, long& nWidth, const OutputDevice *pOutDev, bool bBack = false ) const;
- BOOL mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev, bool bBack = false ) const;
+ void mirror( long& nX, const OutputDevice *pOutDev, bool bBack = false ) const;
+ void mirror( long& nX, long& nWidth, const OutputDevice *pOutDev, bool bBack = false ) const;
+ BOOL mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev, bool bBack = false ) const;
void mirror( Rectangle& rRect, const OutputDevice*, bool bBack = false ) const;
void mirror( Region& rRgn, const OutputDevice *pOutDev, bool bBack = false ) const;
void mirror( ControlType,const ImplControlValue&,const OutputDevice*,bool bBack = false) const;
@@ -359,8 +359,8 @@ public:
// non virtual methods; these do eventual coordinate mirroring and
// then delegate to protected virtual methods
- BOOL UnionClipRegion( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev );
- BOOL UnionClipRegion( const ::basegfx::B2DPolyPolygon&, const OutputDevice* );
+ BOOL UnionClipRegion( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev );
+ BOOL UnionClipRegion( const ::basegfx::B2DPolyPolygon&, const OutputDevice* );
// draw --> LineColor and FillColor and RasterOp and ClipRegion
void DrawPixel( long nX, long nY, const OutputDevice *pOutDev );
@@ -485,7 +485,7 @@ public:
const SalBitmap& rAlphaBitmap,
const OutputDevice *pOutDev );
- bool DrawAlphaRect( long nX, long nY, long nWidth, long nHeight,
+ bool DrawAlphaRect( long nX, long nY, long nWidth, long nHeight,
sal_uInt8 nTransparency, const OutputDevice *pOutDev );
virtual SystemGraphicsData GetGraphicsData() const = 0;
diff --git a/vcl/inc/vcl/salgeom.hxx b/vcl/inc/vcl/salgeom.hxx
index c512d0a195fa..48d8e39d5121 100644
--- a/vcl/inc/vcl/salgeom.hxx
+++ b/vcl/inc/vcl/salgeom.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ typedef struct _SalFrameGeometry {
nRightDecoration,
nBottomDecoration;
unsigned int nScreenNumber;
-
+
_SalFrameGeometry() :
nX( 0 ), nY( 0 ), nWidth( 1 ), nHeight( 1 ),
nLeftDecoration( 0 ), nTopDecoration( 0 ),
diff --git a/vcl/inc/vcl/salgtype.hxx b/vcl/inc/vcl/salgtype.hxx
index d6f0b6d7de2f..ea98f91c58f3 100644
--- a/vcl/inc/vcl/salgtype.hxx
+++ b/vcl/inc/vcl/salgtype.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,11 +36,11 @@
// ------------
typedef UINT32 SalColor;
-#define MAKE_SALCOLOR( r, g, b ) ((SalColor)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16))
-#define SALCOLOR_RED( n ) ((UINT8)((n)>>16))
-#define SALCOLOR_GREEN( n ) ((UINT8)(((UINT16)(n)) >> 8))
-#define SALCOLOR_BLUE( n ) ((UINT8)(n))
-#define SALCOLOR_NONE (~(SalColor)0)
+#define MAKE_SALCOLOR( r, g, b ) ((SalColor)(((UINT32)((UINT8)(b))))|(((UINT32)((UINT8)(g)))<<8)|(((UINT32)((UINT8)(r)))<<16))
+#define SALCOLOR_RED( n ) ((UINT8)((n)>>16))
+#define SALCOLOR_GREEN( n ) ((UINT8)(((UINT16)(n)) >> 8))
+#define SALCOLOR_BLUE( n ) ((UINT8)(n))
+#define SALCOLOR_NONE (~(SalColor)0)
// ------------
// - SalPoint -
// ------------
@@ -48,8 +48,8 @@ typedef UINT32 SalColor;
// must equal to class Point
struct SalPoint
{
- long mnX;
- long mnY;
+ long mnX;
+ long mnY;
};
typedef const SalPoint* PCONSTSALPOINT;
@@ -60,14 +60,14 @@ typedef const SalPoint* PCONSTSALPOINT;
struct SalTwoRect
{
- long mnSrcX;
- long mnSrcY;
- long mnSrcWidth;
- long mnSrcHeight;
- long mnDestX;
- long mnDestY;
- long mnDestWidth;
- long mnDestHeight;
+ long mnSrcX;
+ long mnSrcY;
+ long mnSrcWidth;
+ long mnSrcHeight;
+ long mnDestX;
+ long mnDestY;
+ long mnDestWidth;
+ long mnDestHeight;
};
// ---------------
@@ -75,18 +75,18 @@ struct SalTwoRect
// ---------------
typedef USHORT SalROPColor;
-#define SAL_ROP_0 ((SalROPColor)0)
-#define SAL_ROP_1 ((SalROPColor)1)
-#define SAL_ROP_INVERT ((SalROPColor)2)
+#define SAL_ROP_0 ((SalROPColor)0)
+#define SAL_ROP_1 ((SalROPColor)1)
+#define SAL_ROP_INVERT ((SalROPColor)2)
// -------------
// - SalInvert -
// -------------
typedef USHORT SalInvert;
-#define SAL_INVERT_HIGHLIGHT ((SalInvert)0x0001)
-#define SAL_INVERT_50 ((SalInvert)0x0002)
-#define SAL_INVERT_TRACKFRAME ((SalInvert)0x0004)
+#define SAL_INVERT_HIGHLIGHT ((SalInvert)0x0001)
+#define SAL_INVERT_50 ((SalInvert)0x0002)
+#define SAL_INVERT_TRACKFRAME ((SalInvert)0x0004)
#endif // _SV_SALGTYPE_HXX
diff --git a/vcl/inc/vcl/salimestatus.hxx b/vcl/inc/vcl/salimestatus.hxx
index 76255e4f495c..c43038b8ea0f 100644
--- a/vcl/inc/vcl/salimestatus.hxx
+++ b/vcl/inc/vcl/salimestatus.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/salinst.hxx b/vcl/inc/vcl/salinst.hxx
index 30187dde2108..a69980c9acea 100644
--- a/vcl/inc/vcl/salinst.hxx
+++ b/vcl/inc/vcl/salinst.hxx
@@ -71,10 +71,10 @@ class VCL_DLLPUBLIC SalInstance
public:
typedef bool(*Callback)(void*,void*,int);
private:
- void* m_pEventInst;
- void* m_pErrorInst;
- Callback m_pEventCallback;
- Callback m_pErrorCallback;
+ void* m_pEventInst;
+ void* m_pErrorInst;
+ Callback m_pEventCallback;
+ Callback m_pErrorCallback;
public:
SalInstance() :
@@ -87,57 +87,57 @@ public:
// Frame
// DisplayName for Unix ???
- virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle ) = 0;
- virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle ) = 0;
- virtual void DestroyFrame( SalFrame* pFrame ) = 0;
+ virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle ) = 0;
+ virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle ) = 0;
+ virtual void DestroyFrame( SalFrame* pFrame ) = 0;
// Object (System Child Window)
- virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE ) = 0;
- virtual void DestroyObject( SalObject* pObject ) = 0;
+ virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE ) = 0;
+ virtual void DestroyObject( SalObject* pObject ) = 0;
// VirtualDevice
// nDX and nDY in Pixel
// nBitCount: 0 == Default(=as window) / 1 == Mono
// pData allows for using a system dependent graphics or device context
- virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
+ virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
long nDX, long nDY,
USHORT nBitCount, const SystemGraphicsData *pData = NULL ) = 0;
- virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice ) = 0;
+ virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice ) = 0;
// Printer
// pSetupData->mpDriverData can be 0
// pSetupData must be updatet with the current
// JobSetup
- virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
+ virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData ) = 0;
- virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter ) = 0;
- virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter ) = 0;
- virtual void DestroyPrinter( SalPrinter* pPrinter ) = 0;
+ virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter ) = 0;
+ virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter ) = 0;
+ virtual void DestroyPrinter( SalPrinter* pPrinter ) = 0;
- virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList ) = 0;
- virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo ) = 0;
- virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo ) = 0;
+ virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList ) = 0;
+ virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo ) = 0;
+ virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo ) = 0;
virtual String GetDefaultPrinter() = 0;
// SalTimer
- virtual SalTimer* CreateSalTimer() = 0;
+ virtual SalTimer* CreateSalTimer() = 0;
// SalI18NImeStatus
- virtual SalI18NImeStatus* CreateI18NImeStatus() = 0;
+ virtual SalI18NImeStatus* CreateI18NImeStatus() = 0;
// SalSystem
- virtual SalSystem* CreateSalSystem() = 0;
+ virtual SalSystem* CreateSalSystem() = 0;
// SalBitmap
- virtual SalBitmap* CreateSalBitmap() = 0;
+ virtual SalBitmap* CreateSalBitmap() = 0;
// YieldMutex
virtual osl::SolarMutex* GetYieldMutex() = 0;
- virtual ULONG ReleaseYieldMutex() = 0;
- virtual void AcquireYieldMutex( ULONG nCount ) = 0;
+ virtual ULONG ReleaseYieldMutex() = 0;
+ virtual void AcquireYieldMutex( ULONG nCount ) = 0;
// wait next event and dispatch
// must returned by UserEvent (SalFrame::PostEvent)
// and timer
- virtual void Yield( bool bWait, bool bHandleAllCurrentEvents ) = 0;
- virtual bool AnyInput( USHORT nType ) = 0;
+ virtual void Yield( bool bWait, bool bHandleAllCurrentEvents ) = 0;
+ virtual bool AnyInput( USHORT nType ) = 0;
// Menues
virtual SalMenu* CreateMenu( BOOL bMenuBar ) = 0;
@@ -146,7 +146,7 @@ public:
virtual void DestroyMenuItem( SalMenuItem* pItem ) = 0;
// may return NULL to disable session management
- virtual SalSession* CreateSalSession() = 0;
+ virtual SalSession* CreateSalSession() = 0;
// methods for XDisplayConnection
@@ -154,21 +154,21 @@ public:
// void* pInst: pInstance form the SetCallback call
// void* pEvent: address of the system specific event structure
// int nBytes: length of the system specific event structure
- void SetEventCallback( void* pInstance, Callback pCallback )
+ void SetEventCallback( void* pInstance, Callback pCallback )
{ m_pEventInst = pInstance; m_pEventCallback = pCallback; }
Callback GetEventCallback() const
{ return m_pEventCallback; }
- bool CallEventCallback( void* pEvent, int nBytes )
+ bool CallEventCallback( void* pEvent, int nBytes )
{ return m_pEventCallback ? m_pEventCallback( m_pEventInst, pEvent, nBytes ) : false; }
- void SetErrorEventCallback( void* pInstance, Callback pCallback )
+ void SetErrorEventCallback( void* pInstance, Callback pCallback )
{ m_pErrorInst = pInstance; m_pErrorCallback = pCallback; }
- Callback GetErrorEventCallback() const
+ Callback GetErrorEventCallback() const
{ return m_pErrorCallback; }
- bool CallErrorCallback( void* pEvent, int nBytes )
+ bool CallErrorCallback( void* pEvent, int nBytes )
{ return m_pErrorCallback ? m_pErrorCallback( m_pErrorInst, pEvent, nBytes ) : false; }
enum ConnectionIdentifierType { AsciiCString, Blob };
- virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes ) = 0;
+ virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes ) = 0;
// this is a vehicle for PrintFontManager to bridge the gap between vcl and libvclplug_*
// this is only necessary because PrintFontManager is an exported vcl API and therefore
diff --git a/vcl/inc/vcl/sallayout.hxx b/vcl/inc/vcl/sallayout.hxx
index b26970c708d5..ffcec7f1f3e2 100644
--- a/vcl/inc/vcl/sallayout.hxx
+++ b/vcl/inc/vcl/sallayout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -197,7 +197,7 @@ public:
int GetUnitsPerPixel() const { return mnUnitsPerPixel; }
int GetOrientation() const { return mnOrientation; }
-
+
virtual const ImplFontData* GetFallbackFontData( sal_GlyphId ) const;
// methods using string indexing
@@ -330,9 +330,9 @@ public:
enum{ FALLBACK_MASK=0xFF, IS_IN_CLUSTER=0x100, IS_RTL_GLYPH=0x200, IS_DIACRITIC=0x400 };
- bool IsClusterStart() const { return ((mnFlags & IS_IN_CLUSTER) == 0); }
- bool IsRTLGlyph() const { return ((mnFlags & IS_RTL_GLYPH) != 0); }
- bool IsDiacritic() const { return ((mnFlags & IS_DIACRITIC) != 0); }
+ bool IsClusterStart() const { return ((mnFlags & IS_IN_CLUSTER) == 0); }
+ bool IsRTLGlyph() const { return ((mnFlags & IS_RTL_GLYPH) != 0); }
+ bool IsDiacritic() const { return ((mnFlags & IS_DIACRITIC) != 0); }
};
// ---------------
diff --git a/vcl/inc/vcl/salmenu.hxx b/vcl/inc/vcl/salmenu.hxx
index 3ddcb95d4475..44857692866f 100644
--- a/vcl/inc/vcl/salmenu.hxx
+++ b/vcl/inc/vcl/salmenu.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,12 +41,12 @@ class SalFrame;
struct SalItemParams
{
- USHORT nId; // item Id
- MenuItemType eType; // MenuItem-Type
- MenuItemBits nBits; // MenuItem-Bits
- Menu* pMenu; // Pointer to Menu
- XubString aText; // Menu-Text
- Image aImage; // Image
+ USHORT nId; // item Id
+ MenuItemType eType; // MenuItem-Type
+ MenuItemBits nBits; // MenuItem-Bits
+ Menu* pMenu; // Pointer to Menu
+ XubString aText; // Menu-Text
+ Image aImage; // Image
};
@@ -55,7 +55,7 @@ struct SalMenuButtonItem
USHORT mnId;
Image maImage;
rtl::OUString maToolTipText;
-
+
SalMenuButtonItem() : mnId( 0 ) {}
SalMenuButtonItem( USHORT i_nId, const Image& rImg, const rtl::OUString& i_rTTText = rtl::OUString() )
: mnId( i_nId ), maImage( rImg ), maToolTipText( i_rTTText ) {}
@@ -90,7 +90,7 @@ public:
virtual bool ShowNativePopupMenu(FloatingWindow * pWin, const Rectangle& rRect, ULONG nFlags);
virtual bool AddMenuBarButton( const SalMenuButtonItem& ); // return false if not implemented or failure
virtual void RemoveMenuBarButton( USHORT nId );
-
+
// return an empty rectangle if not implemented
// return Rectangle( Point( -1, -1 ), Size( 1, 1 ) ) if menu bar buttons implemented
// but rectangle cannot be determined
diff --git a/vcl/inc/vcl/salnativewidgets.hxx b/vcl/inc/vcl/salnativewidgets.hxx
index 89b6be637005..be3eeb6c2022 100644
--- a/vcl/inc/vcl/salnativewidgets.hxx
+++ b/vcl/inc/vcl/salnativewidgets.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,32 +40,32 @@
* control if it were composite).
*/
-typedef sal_uInt32 ControlType;
+typedef sal_uInt32 ControlType;
// for use in general purpose ImplControlValue
#define CTRL_GENERIC 0
// Normal PushButton/Command Button
-#define CTRL_PUSHBUTTON 1
+#define CTRL_PUSHBUTTON 1
// Normal single radio button
-#define CTRL_RADIOBUTTON 2
+#define CTRL_RADIOBUTTON 2
// Normal single checkbox
-#define CTRL_CHECKBOX 10
+#define CTRL_CHECKBOX 10
// Combobox, i.e. a ListBox
// that allows data entry by user
-#define CTRL_COMBOBOX 20
+#define CTRL_COMBOBOX 20
// Control that allows text entry
-#define CTRL_EDITBOX 30
+#define CTRL_EDITBOX 30
// Control that allows text entry, but without the usual border
// Has to be handled separately, because this one cannot handle
// HAS_BACKGROUND_TEXTURE, which is drawn in the edit box'es
// border window.
-#define CTRL_EDITBOX_NOBORDER 31
+#define CTRL_EDITBOX_NOBORDER 31
// Control that allows text entry
// ( some systems distingish between single and multi line edit boxes )
@@ -73,61 +73,61 @@ typedef sal_uInt32 ControlType;
// Control that pops up a menu,
// but does NOT allow data entry
-#define CTRL_LISTBOX 35
+#define CTRL_LISTBOX 35
-// An edit field together with two little
+// An edit field together with two little
// buttons on the side (aka spin field)
-#define CTRL_SPINBOX 40
+#define CTRL_SPINBOX 40
// Two standalone spin buttons
// without an edit field
-#define CTRL_SPINBUTTONS 45
+#define CTRL_SPINBUTTONS 45
// A single tab
-#define CTRL_TAB_ITEM 50
+#define CTRL_TAB_ITEM 50
// The border around a tab area,
// but without the tabs themselves.
// May have a gap at the top for
// the active tab
-#define CTRL_TAB_PANE 55
+#define CTRL_TAB_PANE 55
// Background of a Tab Pane
-#define CTRL_TAB_BODY 56
+#define CTRL_TAB_BODY 56
// Normal scrollbar, including
// all parts like slider, buttons
-#define CTRL_SCROLLBAR 60
+#define CTRL_SCROLLBAR 60
#define CTRL_SLIDER 65
// Border around a group of related
// items, perhaps also displaying
// a label of identification
-#define CTRL_GROUPBOX 70
+#define CTRL_GROUPBOX 70
// A separator line
-#define CTRL_FIXEDLINE 80
+#define CTRL_FIXEDLINE 80
// A rectangular border, like a
// Tab Pane, but without the
// possible gap for a tab
-#define CTRL_FIXEDBORDER 90
+#define CTRL_FIXEDBORDER 90
// A toolbar control with buttons and a grip
-#define CTRL_TOOLBAR 100
+#define CTRL_TOOLBAR 100
// The menubar
-#define CTRL_MENUBAR 120
+#define CTRL_MENUBAR 120
// popup menu
#define CTRL_MENU_POPUP 121
// The statusbar
-#define CTRL_STATUSBAR 130
+#define CTRL_STATUSBAR 130
#define CTRL_PROGRESS 131
// Progress bar for the intro window
// (aka splash screen), in case some
-// wants native progress bar in the
+// wants native progress bar in the
// application but not for the splash
// screen (used in desktop/)
#define CTRL_INTROPROGRESS 132
@@ -155,24 +155,24 @@ typedef sal_uInt32 ControlType;
* for example the slider of a scroll bar.
*/
-typedef sal_uInt32 ControlPart;
+typedef sal_uInt32 ControlPart;
-#define PART_ENTIRE_CONTROL 1
+#define PART_ENTIRE_CONTROL 1
#define PART_WINDOW 5 // the static listbox window containing the list
-#define PART_BUTTON 100
-#define PART_BUTTON_UP 101
-#define PART_BUTTON_DOWN 102 // Also for ComboBoxes/ListBoxes
-#define PART_BUTTON_LEFT 103
-#define PART_BUTTON_RIGHT 104
-#define PART_ALL_BUTTONS 105
-#define PART_TRACK_HORZ_LEFT 200
-#define PART_TRACK_VERT_UPPER 201
-#define PART_TRACK_HORZ_RIGHT 202
-#define PART_TRACK_VERT_LOWER 203
-#define PART_TRACK_HORZ_AREA 204
-#define PART_TRACK_VERT_AREA 205
-#define PART_THUMB_HORZ 210 // Also used as toolbar grip
-#define PART_THUMB_VERT 211 // Also used as toolbar grip
+#define PART_BUTTON 100
+#define PART_BUTTON_UP 101
+#define PART_BUTTON_DOWN 102 // Also for ComboBoxes/ListBoxes
+#define PART_BUTTON_LEFT 103
+#define PART_BUTTON_RIGHT 104
+#define PART_ALL_BUTTONS 105
+#define PART_TRACK_HORZ_LEFT 200
+#define PART_TRACK_VERT_UPPER 201
+#define PART_TRACK_HORZ_RIGHT 202
+#define PART_TRACK_VERT_LOWER 203
+#define PART_TRACK_HORZ_AREA 204
+#define PART_TRACK_VERT_AREA 205
+#define PART_THUMB_HORZ 210 // Also used as toolbar grip
+#define PART_THUMB_VERT 211 // Also used as toolbar grip
#define PART_MENU_ITEM 250
#define PART_MENU_ITEM_CHECK_MARK 251
#define PART_MENU_ITEM_RADIO_MARK 252
@@ -184,10 +184,10 @@ typedef sal_uInt32 ControlPart;
However aqua draws a little outside. The canonical way would be to enhance the
HitTestNativeControl passing a ScrollbarValue additionally so all necessary
information is available in the call.
- .
+ .
However since there is only this one small exception we will deviate a little and
instead pass the respective rect as control region to allow for a small correction.
-
+
So all places using HitTestNativeControl on PART_THUMB_HORZ, PART_THUMB_VERT,
PART_TRACK_HORZ_LEFT, PART_TRACK_HORZ_RIGHT, PART_TRACK_VERT_UPPER, PART_TRACK_VERT_LOWER
do not use the control rectangle as region but the actuall part rectangle, making
@@ -208,12 +208,12 @@ typedef sal_uInt32 ControlPart;
// in to draw this part is expected to be the entire
// area of the control.
// A control may respond to one or both.
-#define PART_DRAW_BACKGROUND_HORZ 1000
-#define PART_DRAW_BACKGROUND_VERT 1001
+#define PART_DRAW_BACKGROUND_HORZ 1000
+#define PART_DRAW_BACKGROUND_VERT 1001
-// GTK+ also draws tabs right->left since there is a
+// GTK+ also draws tabs right->left since there is a
// hardcoded 2 pixel overlap between adjacent tabs
-#define PART_TABS_DRAW_RTL 3000
+#define PART_TABS_DRAW_RTL 3000
// For themes that do not want to have the focus
// rectangle part drawn by VCL but take care of the
@@ -240,16 +240,16 @@ typedef sal_uInt32 ControlPart;
* in the ControlState.
*/
-typedef sal_uInt32 ControlState;
+typedef sal_uInt32 ControlState;
-#define CTRL_STATE_ENABLED 0x0001
-#define CTRL_STATE_FOCUSED 0x0002
-#define CTRL_STATE_PRESSED 0x0004
-#define CTRL_STATE_ROLLOVER 0x0008
-#define CTRL_STATE_HIDDEN 0x0010
-#define CTRL_STATE_DEFAULT 0x0020
-#define CTRL_STATE_SELECTED 0x0040
-#define CTRL_CACHING_ALLOWED 0x8000 // set when the control is completely visible (i.e. not clipped)
+#define CTRL_STATE_ENABLED 0x0001
+#define CTRL_STATE_FOCUSED 0x0002
+#define CTRL_STATE_PRESSED 0x0004
+#define CTRL_STATE_ROLLOVER 0x0008
+#define CTRL_STATE_HIDDEN 0x0010
+#define CTRL_STATE_DEFAULT 0x0020
+#define CTRL_STATE_SELECTED 0x0040
+#define CTRL_CACHING_ALLOWED 0x8000 // set when the control is completely visible (i.e. not clipped)
/* ButtonValue:
*
@@ -276,7 +276,7 @@ class VCL_DLLPUBLIC ImplControlValue
private:
ControlType mType;
ButtonValue mTristate; // Tristate value: on, off, mixed
- long mNumber; // numeric value
+ long mNumber; // numeric value
protected:
ImplControlValue( ControlType i_eType, ButtonValue i_eTriState, long i_nNumber )
: mType( i_eType )
@@ -293,35 +293,35 @@ class VCL_DLLPUBLIC ImplControlValue
: mType( CTRL_GENERIC ), mTristate(BUTTONVALUE_DONTKNOW), mNumber(0) {}
virtual ~ImplControlValue();
-
+
ControlType getType() const { return mType; }
- inline ButtonValue getTristateVal( void ) const { return mTristate; }
- inline void setTristateVal( ButtonValue nTristate ) { mTristate = nTristate; }
+ inline ButtonValue getTristateVal( void ) const { return mTristate; }
+ inline void setTristateVal( ButtonValue nTristate ) { mTristate = nTristate; }
- inline long getNumericVal( void ) const { return mNumber; }
- inline void setNumericVal( long nNumeric ) { mNumber = nNumeric; }
+ inline long getNumericVal( void ) const { return mNumber; }
+ inline void setNumericVal( long nNumeric ) { mNumber = nNumeric; }
};
/* ScrollbarValue:
*
* Value container for scrollbars.
*/
- class VCL_DLLPUBLIC ScrollbarValue : public ImplControlValue
+ class VCL_DLLPUBLIC ScrollbarValue : public ImplControlValue
{
public:
- long mnMin;
- long mnMax;
- long mnCur;
- long mnVisibleSize;
- Rectangle maThumbRect;
- Rectangle maButton1Rect;
- Rectangle maButton2Rect;
- ControlState mnButton1State;
- ControlState mnButton2State;
- ControlState mnThumbState;
- ControlState mnPage1State;
- ControlState mnPage2State;
+ long mnMin;
+ long mnMax;
+ long mnCur;
+ long mnVisibleSize;
+ Rectangle maThumbRect;
+ Rectangle maButton1Rect;
+ Rectangle maButton2Rect;
+ ControlState mnButton1State;
+ ControlState mnButton2State;
+ ControlState mnThumbState;
+ ControlState mnPage1State;
+ ControlState mnPage2State;
inline ScrollbarValue()
: ImplControlValue( CTRL_SCROLLBAR, BUTTONVALUE_DONTKNOW, 0 )
@@ -336,12 +336,12 @@ class VCL_DLLPUBLIC ImplControlValue
class VCL_DLLPUBLIC SliderValue : public ImplControlValue
{
public:
- long mnMin;
- long mnMax;
- long mnCur;
+ long mnMin;
+ long mnMax;
+ long mnCur;
Rectangle maThumbRect;
ControlState mnThumbState;
-
+
SliderValue()
: ImplControlValue( CTRL_SLIDER, BUTTONVALUE_DONTKNOW, 0 )
, mnMin( 0 ), mnMax( 0 ), mnCur( 0 ), mnThumbState( 0 )
@@ -390,12 +390,12 @@ class VCL_DLLPUBLIC TabitemValue : public ImplControlValue
class VCL_DLLPUBLIC SpinbuttonValue : public ImplControlValue
{
public:
- Rectangle maUpperRect;
- Rectangle maLowerRect;
- ControlState mnUpperState;
- ControlState mnLowerState;
- int mnUpperPart;
- int mnLowerPart;
+ Rectangle maUpperRect;
+ Rectangle maLowerRect;
+ ControlState mnUpperState;
+ ControlState mnLowerState;
+ int mnUpperPart;
+ int mnLowerPart;
inline SpinbuttonValue()
: ImplControlValue( CTRL_SPINBUTTONS, BUTTONVALUE_DONTKNOW, 0 )
@@ -405,7 +405,7 @@ class VCL_DLLPUBLIC SpinbuttonValue : public ImplControlValue
virtual ~SpinbuttonValue();
};
-/* Toolbarvalue:
+/* Toolbarvalue:
*
* Value container for toolbars detailing the grip position
*/
@@ -415,12 +415,12 @@ public:
ToolbarValue() : ImplControlValue( CTRL_TOOLBAR, BUTTONVALUE_DONTKNOW, 0 )
{ mbIsTopDockingArea = FALSE; }
virtual ~ToolbarValue();
- Rectangle maGripRect;
+ Rectangle maGripRect;
BOOL mbIsTopDockingArea; // indicates that this is the top aligned dockingarea
// adjacent to the menubar
};
-/* MenubarValue:
+/* MenubarValue:
*
* Value container for menubars specifying height of adjacent docking area
*/
@@ -433,7 +433,7 @@ public:
int maTopDockingAreaHeight;
};
-/* PushButtonValue:
+/* PushButtonValue:
*
* Value container for pushbuttons specifying additional drawing hints
*/
@@ -444,7 +444,7 @@ public:
: ImplControlValue( CTRL_PUSHBUTTON, BUTTONVALUE_DONTKNOW, 0 )
, mbBevelButton( false ), mbSingleLine( true ) {}
virtual ~PushButtonValue();
-
+
bool mbBevelButton:1;
bool mbSingleLine:1;
};
diff --git a/vcl/inc/vcl/salobj.hxx b/vcl/inc/vcl/salobj.hxx
index 6ba025befdbe..ca6880652d10 100644
--- a/vcl/inc/vcl/salobj.hxx
+++ b/vcl/inc/vcl/salobj.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,9 +40,9 @@ struct SystemEnvData;
// - SalObject-Types -
// -------------------
-#define SAL_OBJECT_CLIP_INCLUDERECTS ((USHORT)0x0001)
-#define SAL_OBJECT_CLIP_EXCLUDERECTS ((USHORT)0x0002)
-#define SAL_OBJECT_CLIP_ABSOLUTE ((USHORT)0x0004)
+#define SAL_OBJECT_CLIP_INCLUDERECTS ((USHORT)0x0001)
+#define SAL_OBJECT_CLIP_EXCLUDERECTS ((USHORT)0x0002)
+#define SAL_OBJECT_CLIP_ABSOLUTE ((USHORT)0x0004)
// -------------
// - SalObject -
@@ -50,35 +50,35 @@ struct SystemEnvData;
class VCL_DLLPUBLIC SalObject
{
- void* m_pInst;
- SALOBJECTPROC m_pCallback;
+ void* m_pInst;
+ SALOBJECTPROC m_pCallback;
BOOL m_bMouseTransparent:1,
m_bEraseBackground:1;
public:
SalObject() : m_pInst( NULL ), m_pCallback( NULL ), m_bMouseTransparent( FALSE ), m_bEraseBackground( TRUE ) {}
virtual ~SalObject();
- virtual void ResetClipRegion() = 0;
- virtual USHORT GetClipRegionType() = 0;
- virtual void BeginSetClipRegion( ULONG nRects ) = 0;
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) = 0;
- virtual void EndSetClipRegion() = 0;
+ virtual void ResetClipRegion() = 0;
+ virtual USHORT GetClipRegionType() = 0;
+ virtual void BeginSetClipRegion( ULONG nRects ) = 0;
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) = 0;
+ virtual void EndSetClipRegion() = 0;
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight ) = 0;
- virtual void Show( BOOL bVisible ) = 0;
- virtual void Enable( BOOL nEnable ) = 0;
- virtual void GrabFocus() = 0;
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight ) = 0;
+ virtual void Show( BOOL bVisible ) = 0;
+ virtual void Enable( BOOL nEnable ) = 0;
+ virtual void GrabFocus() = 0;
- virtual void SetBackground() = 0;
- virtual void SetBackground( SalColor nSalColor ) = 0;
+ virtual void SetBackground() = 0;
+ virtual void SetBackground( SalColor nSalColor ) = 0;
- virtual void SetForwardKey( BOOL /*bEnable*/ ) {}
+ virtual void SetForwardKey( BOOL /*bEnable*/ ) {}
- virtual const SystemEnvData* GetSystemData() const = 0;
+ virtual const SystemEnvData* GetSystemData() const = 0;
- void SetCallback( void* pInst, SALOBJECTPROC pProc )
+ void SetCallback( void* pInst, SALOBJECTPROC pProc )
{ m_pInst = pInst; m_pCallback = pProc; }
- long CallCallback( USHORT nEvent, const void* pEvent )
+ long CallCallback( USHORT nEvent, const void* pEvent )
{ return m_pCallback ? m_pCallback( m_pInst, this, nEvent, pEvent ) : 0; }
void SetMouseTransparent( BOOL bMouseTransparent )
{ m_bMouseTransparent = bMouseTransparent; }
diff --git a/vcl/inc/vcl/salprn.hxx b/vcl/inc/vcl/salprn.hxx
index be387b4f1c7f..9c8cea57d228 100644
--- a/vcl/inc/vcl/salprn.hxx
+++ b/vcl/inc/vcl/salprn.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,13 +47,13 @@ namespace vcl { class PrinterController; }
struct VCL_DLLPUBLIC SalPrinterQueueInfo
{
- XubString maPrinterName;
- XubString maDriver;
- XubString maLocation;
- XubString maComment;
- ULONG mnStatus;
- ULONG mnJobs;
- void* mpSysData;
+ XubString maPrinterName;
+ XubString maDriver;
+ XubString maLocation;
+ XubString maComment;
+ ULONG mnStatus;
+ ULONG mnJobs;
+ void* mpSysData;
SalPrinterQueueInfo();
~SalPrinterQueueInfo();
@@ -66,8 +66,8 @@ struct VCL_DLLPUBLIC SalPrinterQueueInfo
class VCL_DLLPUBLIC SalInfoPrinter
{
public:
- std::vector< PaperInfo > m_aPaperFormats; // all printer supported formats
- bool m_bPapersInit; // set to true after InitPaperFormats
+ std::vector< PaperInfo > m_aPaperFormats; // all printer supported formats
+ bool m_bPapersInit; // set to true after InitPaperFormats
bool m_bCompatMetrics;
SalInfoPrinter() : m_bPapersInit( false ), m_bCompatMetrics( false ) {}
@@ -75,30 +75,30 @@ public:
// SalGraphics or NULL, but two Graphics for all SalFrames
// must be returned
- virtual SalGraphics* GetGraphics() = 0;
- virtual void ReleaseGraphics( SalGraphics* pGraphics ) = 0;
+ virtual SalGraphics* GetGraphics() = 0;
+ virtual void ReleaseGraphics( SalGraphics* pGraphics ) = 0;
- virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData ) = 0;
+ virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData ) = 0;
// This function set the driver data and
// set the new indepen data in pSetupData
- virtual BOOL SetPrinterData( ImplJobSetup* pSetupData ) = 0;
+ virtual BOOL SetPrinterData( ImplJobSetup* pSetupData ) = 0;
// This function merged the indepen driver data
// and set the new indepen data in pSetupData
// Only the data must changed, where the bit
// in nFlags is set
- virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData ) = 0;
+ virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData ) = 0;
- virtual void GetPageInfo( const ImplJobSetup* pSetupData,
+ virtual void GetPageInfo( const ImplJobSetup* pSetupData,
long& rOutWidth, long& rOutHeight,
long& rPageOffX, long& rPageOffY,
long& rPageWidth, long& rPageHeight ) = 0;
- virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType ) = 0;
- virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData ) = 0;
- virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin ) = 0;
+ virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType ) = 0;
+ virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData ) = 0;
+ virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin ) = 0;
// fills m_aPaperFormats and sets m_bPapersInit to true
- virtual void InitPaperFormats( const ImplJobSetup* pSetupData ) = 0;
+ virtual void InitPaperFormats( const ImplJobSetup* pSetupData ) = 0;
// returns angle that a landscape page will be turned counterclockwise wrt to portrait
- virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData ) = 0;
+ virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData ) = 0;
};
// --------------
@@ -107,11 +107,11 @@ public:
class VCL_DLLPUBLIC SalPrinter
{
-public: // public for Sal Implementation
+public: // public for Sal Implementation
SalPrinter() {}
virtual ~SalPrinter();
- virtual BOOL StartJob( const String* pFileName,
+ virtual BOOL StartJob( const String* pFileName,
const String& rJobName,
const String& rAppName,
ULONG nCopies,
@@ -127,12 +127,12 @@ public: // public for Sal Implementation
ImplJobSetup* pSetupData,
vcl::PrinterController& rController );
- virtual BOOL EndJob() = 0;
- virtual BOOL AbortJob() = 0;
- virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData ) = 0;
- virtual BOOL EndPage() = 0;
- virtual ULONG GetErrorCode() = 0;
-
+ virtual BOOL EndJob() = 0;
+ virtual BOOL AbortJob() = 0;
+ virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData ) = 0;
+ virtual BOOL EndPage() = 0;
+ virtual ULONG GetErrorCode() = 0;
+
};
#endif // _SV_SALPRN_HXX
diff --git a/vcl/inc/vcl/salptype.hxx b/vcl/inc/vcl/salptype.hxx
index 7ad8b2a2c5f9..aa0ba427b5f3 100644
--- a/vcl/inc/vcl/salptype.hxx
+++ b/vcl/inc/vcl/salptype.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,8 +48,8 @@
// - SalPrinterError -
// -------------------
-#define SAL_PRINTER_ERROR_GENERALERROR 1
-#define SAL_PRINTER_ERROR_ABORT 2
+#define SAL_PRINTER_ERROR_GENERALERROR 1
+#define SAL_PRINTER_ERROR_ABORT 2
// -------------------
// - SalPrinterProcs -
diff --git a/vcl/inc/vcl/salsession.hxx b/vcl/inc/vcl/salsession.hxx
index 5d2fc5cf34ff..8e38e78f33b1 100644
--- a/vcl/inc/vcl/salsession.hxx
+++ b/vcl/inc/vcl/salsession.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,18 +41,18 @@ enum SalSessionEventType
struct SalSessionEvent
{
- SalSessionEventType m_eType;
+ SalSessionEventType m_eType;
- SalSessionEvent( SalSessionEventType eType )
+ SalSessionEvent( SalSessionEventType eType )
: m_eType( eType )
{}
};
struct SalSessionInteractionEvent : public SalSessionEvent
{
- bool m_bInteractionGranted;
+ bool m_bInteractionGranted;
- SalSessionInteractionEvent( bool bGranted )
+ SalSessionInteractionEvent( bool bGranted )
: SalSessionEvent( Interaction ),
m_bInteractionGranted( bGranted )
{}
@@ -60,10 +60,10 @@ struct SalSessionInteractionEvent : public SalSessionEvent
struct SalSessionSaveRequestEvent : public SalSessionEvent
{
- bool m_bShutdown;
- bool m_bCancelable;
+ bool m_bShutdown;
+ bool m_bCancelable;
- SalSessionSaveRequestEvent( bool bShutdown, bool bCancelable )
+ SalSessionSaveRequestEvent( bool bShutdown, bool bCancelable )
: SalSessionEvent( SaveRequest ),
m_bShutdown( bShutdown ),
m_bCancelable( bCancelable )
@@ -72,14 +72,14 @@ struct SalSessionSaveRequestEvent : public SalSessionEvent
struct SalSessionShutdownCancelEvent : public SalSessionEvent
{
- SalSessionShutdownCancelEvent()
+ SalSessionShutdownCancelEvent()
: SalSessionEvent( ShutdownCancel )
{}
};
struct SalSessionQuitEvent : public SalSessionEvent
{
- SalSessionQuitEvent()
+ SalSessionQuitEvent()
: SalSessionEvent( Quit )
{}
};
@@ -88,14 +88,14 @@ typedef void(*SessionProc)( SalSessionEvent *pEvent);
class VCL_DLLPUBLIC SalSession
{
- SessionProc m_aProc;
+ SessionProc m_aProc;
public:
- SalSession()
+ SalSession()
: m_aProc( 0 )
{}
virtual ~SalSession();
-
- void SetCallback( SessionProc aCallback )
+
+ void SetCallback( SessionProc aCallback )
{
m_aProc = aCallback;
}
@@ -104,7 +104,7 @@ public:
if( m_aProc )
m_aProc( pEvent );
}
-
+
// query the session manager for a user interaction slot
virtual void queryInteraction() = 0;
// signal the session manager that we're done with user interaction
diff --git a/vcl/inc/vcl/salsys.hxx b/vcl/inc/vcl/salsys.hxx
index df8223ca8759..f197c77e4910 100644
--- a/vcl/inc/vcl/salsys.hxx
+++ b/vcl/inc/vcl/salsys.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,16 +64,16 @@ class VCL_DLLPUBLIC SalSystem
public:
SalSystem() {}
virtual ~SalSystem();
-
+
// get info about the display
/* Gets the number of active screens attached to the display
-
+
@returns the number of active screens
*/
virtual unsigned int GetDisplayScreenCount() = 0;
/* Queries whether multiple screens are truly separate
-
+
@returns true if screens are distinct and windows cannot
be moved between them or span multiple of them
false if screens form up one big display
@@ -82,57 +82,57 @@ public:
/* Queries the default screen number. The default screen is the
screen on which windows will appear if no special positioning
is made.
-
+
@returns the default screen number
*/
virtual unsigned int GetDefaultDisplayNumber() = 0;
/* Gets relative position and size of the screens attached to the display
-
+
@param nScreen
The screen number to be queried
-
+
@returns position: (0,0) in case of IsMultiscreen() == true
else position relative to whole display
size: size of the screen
*/
virtual Rectangle GetDisplayScreenPosSizePixel( unsigned int nScreen ) = 0;
/* Gets position and size of the work area of a screen attached to the display
-
+
@param nScreen
The screen number to be queried
-
+
@returns position and size relative to the scree
*/
virtual Rectangle GetDisplayWorkAreaPosSizePixel( unsigned int nScreen ) = 0;
/* Gets the name of a screen
-
+
@param nScreen
The screen number to be queried
-
+
@returns the name of the screen
*/
virtual rtl::OUString GetScreenName( unsigned int nScreen ) = 0;
/* Shows a native message box with the specified title, message and button
- combination.
-
+ combination.
+
@param rTitle
The title to be shown by the dialog box.
-
+
@param rMessage
The message to be shown by the dialog box.
-
+
@param nButtonCombination
Specify which button combination the message box should display.
See button combinations above.
-
+
@param nDefaultButton
- Specifies which button has the focus initially.
- See button identifiers above.
+ Specifies which button has the focus initially.
+ See button identifiers above.
The effect of specifying a button that doesn't belong
to the specified button combination is undefined.
-
- @returns the identifier of the button that was pressed by the user.
+
+ @returns the identifier of the button that was pressed by the user.
See button identifier above. If the function fails the
return value is 0.
*/
diff --git a/vcl/inc/vcl/saltimer.hxx b/vcl/inc/vcl/saltimer.hxx
index 78c27769c7a6..ed79e586d97d 100644
--- a/vcl/inc/vcl/saltimer.hxx
+++ b/vcl/inc/vcl/saltimer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,22 +45,22 @@
class VCL_DLLPUBLIC SalTimer
{
- SALTIMERPROC m_pProc;
+ SALTIMERPROC m_pProc;
public:
SalTimer() : m_pProc( NULL ) {}
virtual ~SalTimer();
// AutoRepeat and Restart
- virtual void Start( ULONG nMS ) = 0;
- virtual void Stop() = 0;
+ virtual void Start( ULONG nMS ) = 0;
+ virtual void Stop() = 0;
// Callbacks (indepen in \sv\source\app\timer.cxx)
- void SetCallback( SALTIMERPROC pProc )
+ void SetCallback( SALTIMERPROC pProc )
{
- m_pProc = pProc;
+ m_pProc = pProc;
}
- void CallCallback()
+ void CallCallback()
{
if( m_pProc )
m_pProc();
diff --git a/vcl/inc/vcl/salvd.hxx b/vcl/inc/vcl/salvd.hxx
index 2b6c6191add6..37e9958644de 100644
--- a/vcl/inc/vcl/salvd.hxx
+++ b/vcl/inc/vcl/salvd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,14 +46,14 @@ public: // public for Sal Implementation
// SalGraphics or NULL, but two Graphics for all SalVirtualDevices
// must be returned
- virtual SalGraphics* GetGraphics() = 0;
- virtual void ReleaseGraphics( SalGraphics* pGraphics ) = 0;
+ virtual SalGraphics* GetGraphics() = 0;
+ virtual void ReleaseGraphics( SalGraphics* pGraphics ) = 0;
// Set new size, without saving the old contents
virtual BOOL SetSize( long nNewDX, long nNewDY ) = 0;
/// Get actual VDev size in pixel
- virtual void GetSize( long& rWidth, long& rHeight ) = 0;
+ virtual void GetSize( long& rWidth, long& rHeight ) = 0;
};
#endif // _SV_SALVD_HXX
diff --git a/vcl/inc/vcl/salwtype.hxx b/vcl/inc/vcl/salwtype.hxx
index 90ccb92af6a2..fbc7832055bd 100644
--- a/vcl/inc/vcl/salwtype.hxx
+++ b/vcl/inc/vcl/salwtype.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -136,7 +136,7 @@ struct SalMenuEvent
{
USHORT mnId; // Menu item ID
void* mpMenu; // pointer to VCL menu (class Menu)
-
+
SalMenuEvent() : mnId( 0 ), mpMenu( NULL ) {}
SalMenuEvent( USHORT i_nId, void* i_pMenu )
: mnId( i_nId ), mpMenu( i_pMenu ) {}
@@ -158,7 +158,7 @@ struct SalPaintEvent
long mnBoundWidth; // BoundRect - Width
long mnBoundHeight; // BoundRect - Height
bool mbImmediateUpdate; // set to true to force an immediate update
-
+
SalPaintEvent( long x, long y, long w, long h, bool bImmediate = false ) :
mnBoundX( x ), mnBoundY( y ),
mnBoundWidth( w ), mnBoundHeight( h ),
@@ -182,7 +182,7 @@ struct SalWheelMouseEvent
USHORT mnCode; // SV-ModifierCode (KEY_SHIFT | KEY_MOD1 | KEY_MOD2 | MOUSE_LEFT | MOUSE_MIDDLE | MOUSE_RIGHT)
BOOL mbHorz; // Horizontal
BOOL mbDeltaIsPixel; // delta value is a pixel value (on mac)
-
+
SalWheelMouseEvent()
: mnTime( 0 ), mnX( 0 ), mnY( 0 ), mnDelta( 0 ), mnNotchDelta( 0 ), mnScrollLines( 0 ), mnCode( 0 ), mbHorz( FALSE ), mbDeltaIsPixel( FALSE )
{}
diff --git a/vcl/inc/vcl/scrbar.hxx b/vcl/inc/vcl/scrbar.hxx
index fd675461cac5..8106317685fb 100644
--- a/vcl/inc/vcl/scrbar.hxx
+++ b/vcl/inc/vcl/scrbar.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,19 +79,19 @@ private:
SAL_DLLPRIVATE Rectangle* ImplFindPartRect( const Point& rPt );
using Window::ImplInit;
- SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
- SAL_DLLPRIVATE void ImplInitStyle( WinBits nStyle );
- SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
- SAL_DLLPRIVATE void ImplUpdateRects( BOOL bUpdate = TRUE );
- SAL_DLLPRIVATE long ImplCalcThumbPos( long nPixPos );
- SAL_DLLPRIVATE long ImplCalcThumbPosPix( long nPos );
- SAL_DLLPRIVATE void ImplCalc( BOOL bUpdate = TRUE );
- SAL_DLLPRIVATE void ImplDraw( USHORT nDrawFlags, OutputDevice* pOutDev );
+ SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
+ SAL_DLLPRIVATE void ImplInitStyle( WinBits nStyle );
+ SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
+ SAL_DLLPRIVATE void ImplUpdateRects( BOOL bUpdate = TRUE );
+ SAL_DLLPRIVATE long ImplCalcThumbPos( long nPixPos );
+ SAL_DLLPRIVATE long ImplCalcThumbPosPix( long nPos );
+ SAL_DLLPRIVATE void ImplCalc( BOOL bUpdate = TRUE );
+ SAL_DLLPRIVATE void ImplDraw( USHORT nDrawFlags, OutputDevice* pOutDev );
using Window::ImplScroll;
- SAL_DLLPRIVATE long ImplScroll( long nNewPos, BOOL bCallEndScroll );
- SAL_DLLPRIVATE long ImplDoAction( BOOL bCallEndScroll );
- SAL_DLLPRIVATE void ImplDoMouseAction( const Point& rPos, BOOL bCallAction = TRUE );
- SAL_DLLPRIVATE void ImplInvert();
+ SAL_DLLPRIVATE long ImplScroll( long nNewPos, BOOL bCallEndScroll );
+ SAL_DLLPRIVATE long ImplDoAction( BOOL bCallEndScroll );
+ SAL_DLLPRIVATE void ImplDoMouseAction( const Point& rPos, BOOL bCallAction = TRUE );
+ SAL_DLLPRIVATE void ImplInvert();
SAL_DLLPRIVATE BOOL ImplDrawNative( USHORT nDrawFlags );
SAL_DLLPRIVATE void ImplDragThumb( const Point& rMousePos );
DECL_DLLPRIVATE_LINK( ImplTimerHdl, Timer* );
diff --git a/vcl/inc/vcl/seleng.hxx b/vcl/inc/vcl/seleng.hxx
index b0ccdec69cbb..bcbe3a265860 100644
--- a/vcl/inc/vcl/seleng.hxx
+++ b/vcl/inc/vcl/seleng.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ public:
virtual void BeginDrag() = 0;
virtual void CreateAnchor() = 0; // Anker-Pos := Cursor-Pos
- virtual void DestroyAnchor() = 0;
+ virtual void DestroyAnchor() = 0;
// Cursor neu setzen, dabei die beim Anker beginnende
// Selektion der neuen Cursor-Position anpassen. TRUE == Ok
@@ -77,7 +77,7 @@ public:
#define SELENG_HAS_ANCH 0x0020
#define SELENG_CMDEVT 0x0040
#define SELENG_WAIT_UPEVT 0x0080
-#define SELENG_EXPANDONMOVE 0x0100
+#define SELENG_EXPANDONMOVE 0x0100
class VCL_DLLPUBLIC SelectionEngine
{
@@ -94,7 +94,7 @@ private:
USHORT nFlags;
DECL_DLLPRIVATE_LINK( ImpWatchDog, Timer * );
- inline BOOL ShouldDeselect( BOOL bModifierKey1 ) const;
+ inline BOOL ShouldDeselect( BOOL bModifierKey1 ) const;
// determines to deselect or not when Ctrl-key is pressed on CursorPosChanging
public:
@@ -159,7 +159,7 @@ public:
void SetAnchor( BOOL bAnchor );
// wird im Ctor eingeschaltet
- void ExpandSelectionOnMouseMove( BOOL bExpand = TRUE )
+ void ExpandSelectionOnMouseMove( BOOL bExpand = TRUE )
{
if( bExpand )
nFlags |= SELENG_EXPANDONMOVE;
@@ -248,6 +248,6 @@ inline void SelectionEngine::SetAnchor( BOOL bAnchor )
nFlags &= (~SELENG_HAS_ANCH);
}
-#endif // _SV_SELENG_HXX
+#endif // _SV_SELENG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/settings.hxx b/vcl/inc/vcl/settings.hxx
index 78deb9600850..5fa547d6cf02 100644
--- a/vcl/inc/vcl/settings.hxx
+++ b/vcl/inc/vcl/settings.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -339,7 +339,7 @@ class ImplStyleData
private:
ULONG mnRefCount;
- void* mpStyleData_NotUsedYet;
+ void* mpStyleData_NotUsedYet;
Color maActiveBorderColor;
Color maActiveColor;
@@ -513,20 +513,20 @@ private:
#define STYLE_TABCONTROL_SINGLELINE ((USHORT)0x0001)
#define STYLE_TABCONTROL_COLOR ((USHORT)0x0002)
-#define STYLE_TOOLBAR_ICONSIZE_UNKNOWN ((ULONG)0)
-#define STYLE_TOOLBAR_ICONSIZE_SMALL ((ULONG)1)
-#define STYLE_TOOLBAR_ICONSIZE_LARGE ((ULONG)2)
+#define STYLE_TOOLBAR_ICONSIZE_UNKNOWN ((ULONG)0)
+#define STYLE_TOOLBAR_ICONSIZE_SMALL ((ULONG)1)
+#define STYLE_TOOLBAR_ICONSIZE_LARGE ((ULONG)2)
-#define STYLE_SYMBOLS_AUTO ((ULONG)0)
-#define STYLE_SYMBOLS_DEFAULT ((ULONG)1)
-#define STYLE_SYMBOLS_HICONTRAST ((ULONG)2)
-#define STYLE_SYMBOLS_INDUSTRIAL ((ULONG)3)
-#define STYLE_SYMBOLS_CRYSTAL ((ULONG)4)
+#define STYLE_SYMBOLS_AUTO ((ULONG)0)
+#define STYLE_SYMBOLS_DEFAULT ((ULONG)1)
+#define STYLE_SYMBOLS_HICONTRAST ((ULONG)2)
+#define STYLE_SYMBOLS_INDUSTRIAL ((ULONG)3)
+#define STYLE_SYMBOLS_CRYSTAL ((ULONG)4)
#define STYLE_SYMBOLS_TANGO ((ULONG)5)
#define STYLE_SYMBOLS_OXYGEN ((ULONG)6)
-#define STYLE_SYMBOLS_CLASSIC ((ULONG)7)
-#define STYLE_SYMBOLS_HUMAN ((ULONG)8)
-#define STYLE_SYMBOLS_THEMES_MAX ((ULONG)9)
+#define STYLE_SYMBOLS_CLASSIC ((ULONG)7)
+#define STYLE_SYMBOLS_HUMAN ((ULONG)8)
+#define STYLE_SYMBOLS_THEMES_MAX ((ULONG)9)
#define STYLE_MENUIMAGES_OFF ((USHORT)0)
#define STYLE_MENUIMAGES_ON ((USHORT)1)
@@ -736,33 +736,33 @@ public:
const Color& GetInactiveTabColor() const
{ return mpData->maInactiveTabColor; }
- void SetHighContrastMode( BOOL bHighContrast )
+ void SetHighContrastMode( BOOL bHighContrast )
{ CopyData(); mpData->mnHighContrast = bHighContrast; }
- BOOL GetHighContrastMode() const
+ BOOL GetHighContrastMode() const
{ return (BOOL) mpData->mnHighContrast; }
- BOOL IsHighContrastBlackAndWhite() const;
- void SetUseSystemUIFonts( BOOL bUseSystemUIFonts )
+ BOOL IsHighContrastBlackAndWhite() const;
+ void SetUseSystemUIFonts( BOOL bUseSystemUIFonts )
{ CopyData(); mpData->mnUseSystemUIFonts = bUseSystemUIFonts; }
- BOOL GetUseSystemUIFonts() const
+ BOOL GetUseSystemUIFonts() const
{ return (BOOL) mpData->mnUseSystemUIFonts; }
- void SetUseFlatBorders( BOOL bUseFlatBorders )
+ void SetUseFlatBorders( BOOL bUseFlatBorders )
{ CopyData(); mpData->mnUseFlatBorders = bUseFlatBorders; }
- BOOL GetUseFlatBorders() const
+ BOOL GetUseFlatBorders() const
{ return (BOOL) mpData->mnUseFlatBorders; }
- void SetUseFlatMenues( BOOL bUseFlatMenues )
+ void SetUseFlatMenues( BOOL bUseFlatMenues )
{ CopyData(); mpData->mnUseFlatMenues = bUseFlatMenues; }
- BOOL GetUseFlatMenues() const
+ BOOL GetUseFlatMenues() const
{ return (BOOL) mpData->mnUseFlatMenues; }
- void SetUseImagesInMenus( BOOL bUseImagesInMenus )
+ void SetUseImagesInMenus( BOOL bUseImagesInMenus )
{ CopyData(); mpData->mnUseImagesInMenus = bUseImagesInMenus; }
- BOOL GetUseImagesInMenus() const;
+ BOOL GetUseImagesInMenus() const;
void SetPreferredUseImagesInMenus( BOOL bPreferredUseImagesInMenus )
{ CopyData(); mpData->mbPreferredUseImagesInMenus = bPreferredUseImagesInMenus; }
BOOL GetPreferredUseImagesInMenus() const
{ return mpData->mbPreferredUseImagesInMenus; }
- void SetSkipDisabledInMenus( BOOL bSkipDisabledInMenus )
+ void SetSkipDisabledInMenus( BOOL bSkipDisabledInMenus )
{ CopyData(); mpData->mnSkipDisabledInMenus = bSkipDisabledInMenus; }
- BOOL GetSkipDisabledInMenus() const
+ BOOL GetSkipDisabledInMenus() const
{ return (BOOL) mpData->mnSkipDisabledInMenus; }
void SetCairoFontOptions( const void *pOptions )
@@ -937,9 +937,9 @@ public:
{ CopyData(); mpData->mnOptions = nOptions; }
ULONG GetOptions() const
{ return mpData->mnOptions; }
- void SetAutoMnemonic( BOOL bAutoMnemonic )
+ void SetAutoMnemonic( BOOL bAutoMnemonic )
{ CopyData(); mpData->mnAutoMnemonic = (USHORT)bAutoMnemonic; }
- BOOL GetAutoMnemonic() const
+ BOOL GetAutoMnemonic() const
{ return mpData->mnAutoMnemonic ? TRUE : FALSE; }
void SetFontColor( const Color& rColor )
@@ -947,34 +947,34 @@ public:
const Color& GetFontColor() const
{ return mpData->maFontColor; }
- void SetToolbarIconSize( ULONG nSize )
+ void SetToolbarIconSize( ULONG nSize )
{ CopyData(); mpData->mnToolbarIconSize = nSize; }
- ULONG GetToolbarIconSize() const
+ ULONG GetToolbarIconSize() const
{ return mpData->mnToolbarIconSize; }
- void SetSymbolsStyle( ULONG nStyle )
+ void SetSymbolsStyle( ULONG nStyle )
{ CopyData(); mpData->mnSymbolsStyle = nStyle; }
- ULONG GetSymbolsStyle() const
+ ULONG GetSymbolsStyle() const
{ return mpData->mnSymbolsStyle; }
- void SetPreferredSymbolsStyle( ULONG nStyle )
+ void SetPreferredSymbolsStyle( ULONG nStyle )
{ CopyData(); mpData->mnPreferredSymbolsStyle = nStyle; }
- void SetPreferredSymbolsStyleName( const ::rtl::OUString &rName );
- ULONG GetPreferredSymbolsStyle() const
+ void SetPreferredSymbolsStyleName( const ::rtl::OUString &rName );
+ ULONG GetPreferredSymbolsStyle() const
{ return mpData->mnPreferredSymbolsStyle; }
- // check whether the symbols style is supported (icons are installed)
- bool CheckSymbolStyle( ULONG nStyle ) const;
+ // check whether the symbols style is supported (icons are installed)
+ bool CheckSymbolStyle( ULONG nStyle ) const;
ULONG GetAutoSymbolsStyle() const;
- ULONG GetCurrentSymbolsStyle() const;
+ ULONG GetCurrentSymbolsStyle() const;
- void SetSymbolsStyleName( const ::rtl::OUString &rName )
+ void SetSymbolsStyleName( const ::rtl::OUString &rName )
{ return SetSymbolsStyle( ImplNameToSymbolsStyle( rName ) ); }
- ::rtl::OUString GetSymbolsStyleName() const
+ ::rtl::OUString GetSymbolsStyleName() const
{ return ImplSymbolsStyleToName( GetSymbolsStyle() ); }
- ::rtl::OUString GetCurrentSymbolsStyleName() const
+ ::rtl::OUString GetCurrentSymbolsStyleName() const
{ return ImplSymbolsStyleToName( GetCurrentSymbolsStyle() ); }
-
+
const Wallpaper& GetWorkspaceGradient() const
{ return mpData->maWorkspaceGradient; }
void SetWorkspaceGradient( const Wallpaper& rWall )
@@ -993,8 +993,8 @@ public:
{ return !(*this == rSet); }
protected:
- ::rtl::OUString ImplSymbolsStyleToName( ULONG nStyle ) const;
- ULONG ImplNameToSymbolsStyle( const ::rtl::OUString &rName ) const;
+ ::rtl::OUString ImplSymbolsStyleToName( ULONG nStyle ) const;
+ ULONG ImplNameToSymbolsStyle( const ::rtl::OUString &rName ) const;
};
// ----------------
@@ -1031,12 +1031,12 @@ public:
MiscSettings( const MiscSettings& rSet );
~MiscSettings();
- void SetEnableATToolSupport( BOOL bEnable );
- BOOL GetEnableATToolSupport() const;
- void SetDisablePrinting( BOOL bEnable );
- BOOL GetDisablePrinting() const;
- void SetEnableLocalizedDecimalSep( BOOL bEnable );
- BOOL GetEnableLocalizedDecimalSep() const;
+ void SetEnableATToolSupport( BOOL bEnable );
+ BOOL GetEnableATToolSupport() const;
+ void SetDisablePrinting( BOOL bEnable );
+ BOOL GetDisablePrinting() const;
+ void SetEnableLocalizedDecimalSep( BOOL bEnable );
+ BOOL GetEnableLocalizedDecimalSep() const;
const MiscSettings& operator =( const MiscSettings& rSet );
BOOL operator ==( const MiscSettings& rSet ) const;
@@ -1156,7 +1156,7 @@ public:
class LocaleConfigurationListener;
class ImplAllSettingsData
{
- friend class AllSettings;
+ friend class AllSettings;
ImplAllSettingsData();
ImplAllSettingsData( const ImplAllSettingsData& rData );
@@ -1183,8 +1183,8 @@ private:
CollatorWrapper* mpUICollatorWrapper;
vcl::I18nHelper* mpI18nHelper;
vcl::I18nHelper* mpUII18nHelper;
- LocaleConfigurationListener* mpLocaleCfgListener;
- SvtSysLocale maSysLocale;
+ LocaleConfigurationListener* mpLocaleCfgListener;
+ SvtSysLocale maSysLocale;
};
// ---------------
@@ -1208,7 +1208,7 @@ private:
SETTINGS_SOUND | SETTINGS_NOTIFICATION |\
SETTINGS_HELP |\
SETTINGS_LOCALE | SETTINGS_UILOCALE )
-#define SETTINGS_IN_UPDATE_SETTINGS ((ULONG)0x00000800) // this flag indicates that the data changed event was created
+#define SETTINGS_IN_UPDATE_SETTINGS ((ULONG)0x00000800) // this flag indicates that the data changed event was created
// in Windows::UpdateSettings probably because of a global
// settings changed
@@ -1301,8 +1301,8 @@ public:
BOOL operator ==( const AllSettings& rSet ) const;
BOOL operator !=( const AllSettings& rSet ) const
{ return !(*this == rSet); }
- static void LocaleSettingsChanged( sal_uInt32 nHint );
- SvtSysLocale& GetSysLocale() { return mpData->maSysLocale; }
+ static void LocaleSettingsChanged( sal_uInt32 nHint );
+ SvtSysLocale& GetSysLocale() { return mpData->maSysLocale; }
};
#endif // _SV_SETTINGS_HXX
diff --git a/vcl/inc/vcl/slider.hxx b/vcl/inc/vcl/slider.hxx
index 5208fffcfb54..fa8f5b40b277 100644
--- a/vcl/inc/vcl/slider.hxx
+++ b/vcl/inc/vcl/slider.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,92 +42,92 @@
class VCL_DLLPUBLIC Slider : public Control
{
private:
- Rectangle maChannel1Rect;
- Rectangle maChannel2Rect;
- Rectangle maThumbRect;
- long mnStartPos;
- long mnMouseOff;
- long mnThumbPixOffset;
- long mnThumbPixRange;
- long mnThumbPixPos;
- long mnChannelPixOffset;
- long mnChannelPixRange;
- long mnChannelPixTop;
- long mnChannelPixBottom;
- long mnMinRange;
- long mnMaxRange;
- long mnThumbPos;
- long mnLineSize;
- long mnPageSize;
- long mnDelta;
- USHORT mnDragDraw;
- USHORT mnStateFlags;
- ScrollType meScrollType;
- BOOL mbCalcSize;
- BOOL mbFullDrag;
- Link maSlideHdl;
- Link maEndSlideHdl;
+ Rectangle maChannel1Rect;
+ Rectangle maChannel2Rect;
+ Rectangle maThumbRect;
+ long mnStartPos;
+ long mnMouseOff;
+ long mnThumbPixOffset;
+ long mnThumbPixRange;
+ long mnThumbPixPos;
+ long mnChannelPixOffset;
+ long mnChannelPixRange;
+ long mnChannelPixTop;
+ long mnChannelPixBottom;
+ long mnMinRange;
+ long mnMaxRange;
+ long mnThumbPos;
+ long mnLineSize;
+ long mnPageSize;
+ long mnDelta;
+ USHORT mnDragDraw;
+ USHORT mnStateFlags;
+ ScrollType meScrollType;
+ BOOL mbCalcSize;
+ BOOL mbFullDrag;
+ Link maSlideHdl;
+ Link maEndSlideHdl;
using Control::ImplInitSettings;
using Window::ImplInit;
- SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
- SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
- SAL_DLLPRIVATE void ImplInitSettings();
- SAL_DLLPRIVATE void ImplUpdateRects( BOOL bUpdate = TRUE );
- SAL_DLLPRIVATE long ImplCalcThumbPos( long nPixPos );
- SAL_DLLPRIVATE long ImplCalcThumbPosPix( long nPos );
- SAL_DLLPRIVATE void ImplCalc( BOOL bUpdate = TRUE );
- SAL_DLLPRIVATE void ImplDraw( USHORT nDrawFlags );
- SAL_DLLPRIVATE BOOL ImplIsPageUp( const Point& rPos );
- SAL_DLLPRIVATE BOOL ImplIsPageDown( const Point& rPos );
- SAL_DLLPRIVATE long ImplSlide( long nNewPos, BOOL bCallEndSlide );
- SAL_DLLPRIVATE long ImplDoAction( BOOL bCallEndSlide );
- SAL_DLLPRIVATE void ImplDoMouseAction( const Point& rPos, BOOL bCallAction = TRUE );
- SAL_DLLPRIVATE long ImplDoSlide( long nNewPos );
- SAL_DLLPRIVATE long ImplDoSlideAction( ScrollType eScrollType );
+ SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
+ SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
+ SAL_DLLPRIVATE void ImplInitSettings();
+ SAL_DLLPRIVATE void ImplUpdateRects( BOOL bUpdate = TRUE );
+ SAL_DLLPRIVATE long ImplCalcThumbPos( long nPixPos );
+ SAL_DLLPRIVATE long ImplCalcThumbPosPix( long nPos );
+ SAL_DLLPRIVATE void ImplCalc( BOOL bUpdate = TRUE );
+ SAL_DLLPRIVATE void ImplDraw( USHORT nDrawFlags );
+ SAL_DLLPRIVATE BOOL ImplIsPageUp( const Point& rPos );
+ SAL_DLLPRIVATE BOOL ImplIsPageDown( const Point& rPos );
+ SAL_DLLPRIVATE long ImplSlide( long nNewPos, BOOL bCallEndSlide );
+ SAL_DLLPRIVATE long ImplDoAction( BOOL bCallEndSlide );
+ SAL_DLLPRIVATE void ImplDoMouseAction( const Point& rPos, BOOL bCallAction = TRUE );
+ SAL_DLLPRIVATE long ImplDoSlide( long nNewPos );
+ SAL_DLLPRIVATE long ImplDoSlideAction( ScrollType eScrollType );
public:
Slider( Window* pParent, WinBits nStyle = WB_HORZ );
Slider( Window* pParent, const ResId& rResId );
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rTEvt );
- virtual void KeyInput( const KeyEvent& rKEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Resize();
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual void KeyInput( const KeyEvent& rKEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Resize();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual void Slide();
- virtual void EndSlide();
+ virtual void Slide();
+ virtual void EndSlide();
- void EnableDrag( BOOL bEnable = TRUE )
+ void EnableDrag( BOOL bEnable = TRUE )
{ mbFullDrag = bEnable; }
- BOOL IsDragEnabled() const { return mbFullDrag; }
+ BOOL IsDragEnabled() const { return mbFullDrag; }
- void SetRangeMin( long nNewRange );
- long GetRangeMin() const { return mnMinRange; }
- void SetRangeMax( long nNewRange );
- long GetRangeMax() const { return mnMaxRange; }
- void SetRange( const Range& rRange );
- Range GetRange() const { return Range( GetRangeMin(), GetRangeMax() ); }
- void SetThumbPos( long nThumbPos );
- long GetThumbPos() const { return mnThumbPos; }
- void SetLineSize( long nNewSize ) { mnLineSize = nNewSize; }
- long GetLineSize() const { return mnLineSize; }
- void SetPageSize( long nNewSize ) { mnPageSize = nNewSize; }
- long GetPageSize() const { return mnPageSize; }
+ void SetRangeMin( long nNewRange );
+ long GetRangeMin() const { return mnMinRange; }
+ void SetRangeMax( long nNewRange );
+ long GetRangeMax() const { return mnMaxRange; }
+ void SetRange( const Range& rRange );
+ Range GetRange() const { return Range( GetRangeMin(), GetRangeMax() ); }
+ void SetThumbPos( long nThumbPos );
+ long GetThumbPos() const { return mnThumbPos; }
+ void SetLineSize( long nNewSize ) { mnLineSize = nNewSize; }
+ long GetLineSize() const { return mnLineSize; }
+ void SetPageSize( long nNewSize ) { mnPageSize = nNewSize; }
+ long GetPageSize() const { return mnPageSize; }
- long GetDelta() const { return mnDelta; }
+ long GetDelta() const { return mnDelta; }
- Size CalcWindowSizePixel();
+ Size CalcWindowSizePixel();
- void SetSlideHdl( const Link& rLink ) { maSlideHdl = rLink; }
- const Link& GetSlideHdl() const { return maSlideHdl; }
- void SetEndSlideHdl( const Link& rLink ) { maEndSlideHdl = rLink; }
- const Link& GetEndSlideHdl() const { return maEndSlideHdl; }
+ void SetSlideHdl( const Link& rLink ) { maSlideHdl = rLink; }
+ const Link& GetSlideHdl() const { return maSlideHdl; }
+ void SetEndSlideHdl( const Link& rLink ) { maEndSlideHdl = rLink; }
+ const Link& GetEndSlideHdl() const { return maEndSlideHdl; }
};
#endif // _SV_SLIDER_HXX
diff --git a/vcl/inc/vcl/smartid.hxx b/vcl/inc/vcl/smartid.hxx
index fa005db25c80..e1ed09463ef5 100644
--- a/vcl/inc/vcl/smartid.hxx
+++ b/vcl/inc/vcl/smartid.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/sndstyle.hxx b/vcl/inc/vcl/sndstyle.hxx
index 62268d34a6ba..1767b2610bbe 100644
--- a/vcl/inc/vcl/sndstyle.hxx
+++ b/vcl/inc/vcl/sndstyle.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/sound.hxx b/vcl/inc/vcl/sound.hxx
index 1a32a27154ce..abb962a2501d 100644
--- a/vcl/inc/vcl/sound.hxx
+++ b/vcl/inc/vcl/sound.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/spin.h b/vcl/inc/vcl/spin.h
index e20cb9aaa86a..eb52925fcf66 100644
--- a/vcl/inc/vcl/spin.h
+++ b/vcl/inc/vcl/spin.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/spin.hxx b/vcl/inc/vcl/spin.hxx
index 6250c5020717..5a0d59feff54 100644
--- a/vcl/inc/vcl/spin.hxx
+++ b/vcl/inc/vcl/spin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/spinfld.hxx b/vcl/inc/vcl/spinfld.hxx
index db46c16d331b..f2b95084a382 100644
--- a/vcl/inc/vcl/spinfld.hxx
+++ b/vcl/inc/vcl/spinfld.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,16 +41,16 @@
class VCL_DLLPUBLIC SpinField : public Edit
{
protected:
- Edit* mpEdit;
- AutoTimer maRepeatTimer;
- Rectangle maUpperRect;
- Rectangle maLowerRect;
- Rectangle maDropDownRect; // noch nicht angebunden...
- Link maUpHdlLink;
- Link maDownHdlLink;
- Link maFirstHdlLink;
- Link maLastHdlLink;
- BOOL mbRepeat:1,
+ Edit* mpEdit;
+ AutoTimer maRepeatTimer;
+ Rectangle maUpperRect;
+ Rectangle maLowerRect;
+ Rectangle maDropDownRect; // noch nicht angebunden...
+ Link maUpHdlLink;
+ Link maDownHdlLink;
+ Link maFirstHdlLink;
+ Link maLastHdlLink;
+ BOOL mbRepeat:1,
mbSpin:1,
mbInitialUp:1,
mbInitialDown:1,
@@ -60,20 +60,20 @@ protected:
mbInDropDown:1;
using Window::ImplInit;
- SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
+ SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
private:
DECL_DLLPRIVATE_LINK( ImplTimeout, Timer* );
- SAL_DLLPRIVATE void ImplInitSpinFieldData();
- SAL_DLLPRIVATE void ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rectangle& rDDArea, Rectangle& rSpinUpArea, Rectangle& rSpinDownArea );
+ SAL_DLLPRIVATE void ImplInitSpinFieldData();
+ SAL_DLLPRIVATE void ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rectangle& rDDArea, Rectangle& rSpinUpArea, Rectangle& rSpinDownArea );
protected:
SpinField( WindowType nTyp );
- virtual long Notify( NotifyEvent& rNEvt );
- virtual void Command( const CommandEvent& rCEvt );
+ virtual long Notify( NotifyEvent& rNEvt );
+ virtual void Command( const CommandEvent& rCEvt );
- void EndDropDown();
+ void EndDropDown();
virtual void FillLayoutData() const;
Rectangle * ImplFindPartRect( const Point& rPt );
@@ -82,35 +82,35 @@ public:
SpinField( Window* pParent, const ResId& rResId );
~SpinField();
- virtual BOOL ShowDropDown( BOOL bShow );
-
- virtual void Up();
- virtual void Down();
- virtual void First();
- virtual void Last();
-
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- virtual void Resize();
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual BOOL ShowDropDown( BOOL bShow );
+
+ virtual void Up();
+ virtual void Down();
+ virtual void First();
+ virtual void Last();
+
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
+ virtual void Resize();
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
virtual long PreNotify( NotifyEvent& rNEvt );
- void SetUpHdl( const Link& rLink ) { maUpHdlLink = rLink; }
- const Link& GetUpHdl() const { return maUpHdlLink; }
- void SetDownHdl( const Link& rLink ) { maDownHdlLink = rLink; }
- const Link& GetDownHdl() const { return maDownHdlLink; }
- void SetFirstHdl( const Link& rLink ) { maFirstHdlLink = rLink; }
- const Link& GetFirstHdl() const { return maFirstHdlLink; }
- void SetLastHdl( const Link& rLink ) { maLastHdlLink = rLink; }
- const Link& GetLastHdl() const { return maLastHdlLink; }
+ void SetUpHdl( const Link& rLink ) { maUpHdlLink = rLink; }
+ const Link& GetUpHdl() const { return maUpHdlLink; }
+ void SetDownHdl( const Link& rLink ) { maDownHdlLink = rLink; }
+ const Link& GetDownHdl() const { return maDownHdlLink; }
+ void SetFirstHdl( const Link& rLink ) { maFirstHdlLink = rLink; }
+ const Link& GetFirstHdl() const { return maFirstHdlLink; }
+ void SetLastHdl( const Link& rLink ) { maLastHdlLink = rLink; }
+ const Link& GetLastHdl() const { return maLastHdlLink; }
- virtual Size CalcMinimumSize() const;
+ virtual Size CalcMinimumSize() const;
virtual Size GetOptimalSize(WindowSizeType eType) const;
- virtual Size CalcSize( USHORT nChars ) const;
+ virtual Size CalcSize( USHORT nChars ) const;
};
#endif // _SV_SPINFLD_HXX
diff --git a/vcl/inc/vcl/split.hxx b/vcl/inc/vcl/split.hxx
index 9cd77275820a..d8a9634d2a97 100644
--- a/vcl/inc/vcl/split.hxx
+++ b/vcl/inc/vcl/split.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,8 +57,8 @@ private:
Link maSplitHdl;
Link maEndSplitHdl;
- SAL_DLLPRIVATE void ImplInitSplitterData();
- SAL_DLLPRIVATE void ImplDrawSplitter();
+ SAL_DLLPRIVATE void ImplInitSplitterData();
+ SAL_DLLPRIVATE void ImplDrawSplitter();
SAL_DLLPRIVATE void ImplSplitMousePos( Point& rPos );
SAL_DLLPRIVATE void ImplStartKbdSplitting();
SAL_DLLPRIVATE void ImplKbdTracking( KeyCode aKeyCode );
@@ -72,7 +72,7 @@ private:
protected:
using Window::ImplInit;
- SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nWinStyle );
+ SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nWinStyle );
public:
Splitter( Window* pParent, WinBits nStyle = WB_VSCROLL );
diff --git a/vcl/inc/vcl/splitwin.hxx b/vcl/inc/vcl/splitwin.hxx
index c6671f2799c0..cdc6d0e9928e 100644
--- a/vcl/inc/vcl/splitwin.hxx
+++ b/vcl/inc/vcl/splitwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,18 +46,18 @@ typedef USHORT SplitWindowItemBits;
// - Bits fuer SplitWindow-Items -
// -------------------------------
-#define SWIB_FIXED ((SplitWindowItemBits)0x0001)
-#define SWIB_RELATIVESIZE ((SplitWindowItemBits)0x0002)
-#define SWIB_PERCENTSIZE ((SplitWindowItemBits)0x0004)
-#define SWIB_COLSET ((SplitWindowItemBits)0x0008)
-#define SWIB_INVISIBLE ((SplitWindowItemBits)0x0010)
+#define SWIB_FIXED ((SplitWindowItemBits)0x0001)
+#define SWIB_RELATIVESIZE ((SplitWindowItemBits)0x0002)
+#define SWIB_PERCENTSIZE ((SplitWindowItemBits)0x0004)
+#define SWIB_COLSET ((SplitWindowItemBits)0x0008)
+#define SWIB_INVISIBLE ((SplitWindowItemBits)0x0010)
// ---------------------
// - SplitWindow-Types -
// ---------------------
-#define SPLITWINDOW_APPEND ((USHORT)0xFFFF)
-#define SPLITWINDOW_ITEM_NOTFOUND ((USHORT)0xFFFF)
+#define SPLITWINDOW_APPEND ((USHORT)0xFFFF)
+#define SPLITWINDOW_ITEM_NOTFOUND ((USHORT)0xFFFF)
// ---------------
// - SplitWindow -
@@ -66,27 +66,27 @@ typedef USHORT SplitWindowItemBits;
class VCL_DLLPUBLIC SplitWindow : public DockingWindow
{
private:
- ImplSplitSet* mpMainSet;
- ImplSplitSet* mpBaseSet;
- ImplSplitSet* mpSplitSet;
- long* mpLastSizes;
- Rectangle maDragRect;
- long mnDX;
- long mnDY;
- long mnLeftBorder;
- long mnTopBorder;
- long mnRightBorder;
- long mnBottomBorder;
- long mnMaxSize;
- long mnMouseOff;
- long mnMStartPos;
- long mnMSplitPos;
- WinBits mnWinStyle;
- WindowAlign meAlign;
- USHORT mnSplitTest;
- USHORT mnSplitPos;
- USHORT mnMouseModifier;
- BOOL mbDragFull:1,
+ ImplSplitSet* mpMainSet;
+ ImplSplitSet* mpBaseSet;
+ ImplSplitSet* mpSplitSet;
+ long* mpLastSizes;
+ Rectangle maDragRect;
+ long mnDX;
+ long mnDY;
+ long mnLeftBorder;
+ long mnTopBorder;
+ long mnRightBorder;
+ long mnBottomBorder;
+ long mnMaxSize;
+ long mnMouseOff;
+ long mnMStartPos;
+ long mnMSplitPos;
+ WinBits mnWinStyle;
+ WindowAlign meAlign;
+ USHORT mnSplitTest;
+ USHORT mnSplitPos;
+ USHORT mnMouseModifier;
+ BOOL mbDragFull:1,
mbHorz:1,
mbBottomRight:1,
mbCalc:1,
@@ -106,30 +106,30 @@ private:
mbFadeOutPressed:1,
mbFadeNoButtonMode:1,
mbNoAlign:1;
- Link maStartSplitHdl;
- Link maSplitHdl;
- Link maSplitResizeHdl;
- Link maAutoHideHdl;
- Link maFadeInHdl;
- Link maFadeOutHdl;
+ Link maStartSplitHdl;
+ Link maSplitHdl;
+ Link maSplitResizeHdl;
+ Link maAutoHideHdl;
+ Link maFadeInHdl;
+ Link maFadeOutHdl;
using Window::ImplInit;
- SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
- SAL_DLLPRIVATE void ImplInitSettings();
- SAL_DLLPRIVATE void ImplCalcLayout();
- SAL_DLLPRIVATE void ImplUpdate();
- SAL_DLLPRIVATE void ImplUpdateSet( ImplSplitSet* pSet );
- SAL_DLLPRIVATE void ImplSetWindowSize( long nDelta );
- SAL_DLLPRIVATE void ImplSplitMousePos( Point& rMousePos );
- SAL_DLLPRIVATE void ImplGetButtonRect( Rectangle& rRect, long nEx, BOOL bTest ) const;
- SAL_DLLPRIVATE void ImplGetAutoHideRect( Rectangle& rRect, BOOL bTest = FALSE ) const;
- SAL_DLLPRIVATE void ImplGetFadeInRect( Rectangle& rRect, BOOL bTest = FALSE ) const;
- SAL_DLLPRIVATE void ImplGetFadeOutRect( Rectangle& rRect, BOOL bTest = FALSE ) const;
- SAL_DLLPRIVATE void ImplDrawButtonRect( const Rectangle& rRect, long nSize );
- SAL_DLLPRIVATE void ImplDrawAutoHide( BOOL bInPaint );
- SAL_DLLPRIVATE void ImplDrawFadeIn( BOOL bInPaint );
- SAL_DLLPRIVATE void ImplDrawFadeOut( BOOL bInPaint );
- SAL_DLLPRIVATE void ImplNewAlign();
+ SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
+ SAL_DLLPRIVATE void ImplInitSettings();
+ SAL_DLLPRIVATE void ImplCalcLayout();
+ SAL_DLLPRIVATE void ImplUpdate();
+ SAL_DLLPRIVATE void ImplUpdateSet( ImplSplitSet* pSet );
+ SAL_DLLPRIVATE void ImplSetWindowSize( long nDelta );
+ SAL_DLLPRIVATE void ImplSplitMousePos( Point& rMousePos );
+ SAL_DLLPRIVATE void ImplGetButtonRect( Rectangle& rRect, long nEx, BOOL bTest ) const;
+ SAL_DLLPRIVATE void ImplGetAutoHideRect( Rectangle& rRect, BOOL bTest = FALSE ) const;
+ SAL_DLLPRIVATE void ImplGetFadeInRect( Rectangle& rRect, BOOL bTest = FALSE ) const;
+ SAL_DLLPRIVATE void ImplGetFadeOutRect( Rectangle& rRect, BOOL bTest = FALSE ) const;
+ SAL_DLLPRIVATE void ImplDrawButtonRect( const Rectangle& rRect, long nSize );
+ SAL_DLLPRIVATE void ImplDrawAutoHide( BOOL bInPaint );
+ SAL_DLLPRIVATE void ImplDrawFadeIn( BOOL bInPaint );
+ SAL_DLLPRIVATE void ImplDrawFadeOut( BOOL bInPaint );
+ SAL_DLLPRIVATE void ImplNewAlign();
SAL_DLLPRIVATE void ImplDrawGrip( const Rectangle& rRect, BOOL bHorz, BOOL bLeft );
SAL_DLLPRIVATE void ImplDrawFadeArrow( const Point& rPt, BOOL bHorz, BOOL bLeft );
SAL_DLLPRIVATE void ImplStartSplit( const MouseEvent& rMEvt );
@@ -156,116 +156,116 @@ public:
SplitWindow( Window* pParent, const ResId& rResId );
~SplitWindow();
- virtual void StartSplit();
- virtual void Split();
- virtual void SplitResize();
- virtual void AutoHide();
- virtual void FadeIn();
- virtual void FadeOut();
+ virtual void StartSplit();
+ virtual void Split();
+ virtual void SplitResize();
+ virtual void AutoHide();
+ virtual void FadeIn();
+ virtual void FadeOut();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void Tracking( const TrackingEvent& rTEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Move();
- virtual void Resize();
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void Tracking( const TrackingEvent& rTEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Move();
+ virtual void Resize();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
virtual long PreNotify( NotifyEvent& rNEvt );
- void InsertItem( USHORT nId, Window* pWindow, long nSize,
+ void InsertItem( USHORT nId, Window* pWindow, long nSize,
USHORT nPos = SPLITWINDOW_APPEND, USHORT nSetId = 0,
SplitWindowItemBits nBits = 0 );
- void InsertItem( USHORT nId, long nSize,
+ void InsertItem( USHORT nId, long nSize,
USHORT nPos = SPLITWINDOW_APPEND, USHORT nSetId = 0,
SplitWindowItemBits nBits = 0 );
- void MoveItem( USHORT nId, USHORT nNewPos, USHORT nNewSetId = 0 );
- void RemoveItem( USHORT nId, BOOL bHide = TRUE );
- void Clear();
+ void MoveItem( USHORT nId, USHORT nNewPos, USHORT nNewSetId = 0 );
+ void RemoveItem( USHORT nId, BOOL bHide = TRUE );
+ void Clear();
- void SetBaseSet( USHORT nSetId = 0 );
- USHORT GetBaseSet() const;
+ void SetBaseSet( USHORT nSetId = 0 );
+ USHORT GetBaseSet() const;
- void SetSplitSize( USHORT nSetId, long nSplitSize,
+ void SetSplitSize( USHORT nSetId, long nSplitSize,
BOOL bWithChilds = FALSE );
- long GetSplitSize( USHORT nSetId ) const;
- void SetItemBackground( USHORT nSetId );
- void SetItemBackground( USHORT nSetId, const Wallpaper& rWallpaper );
- Wallpaper GetItemBackground( USHORT nSetId ) const;
- BOOL IsItemBackground( USHORT nSetId ) const;
- void SetItemBitmap( USHORT nSetId, const Bitmap& rBitmap );
- Bitmap GetItemBitmap( USHORT nSetId ) const;
+ long GetSplitSize( USHORT nSetId ) const;
+ void SetItemBackground( USHORT nSetId );
+ void SetItemBackground( USHORT nSetId, const Wallpaper& rWallpaper );
+ Wallpaper GetItemBackground( USHORT nSetId ) const;
+ BOOL IsItemBackground( USHORT nSetId ) const;
+ void SetItemBitmap( USHORT nSetId, const Bitmap& rBitmap );
+ Bitmap GetItemBitmap( USHORT nSetId ) const;
- void SplitItem( USHORT nId, long nNewSize,
+ void SplitItem( USHORT nId, long nNewSize,
BOOL bPropSmall = FALSE,
BOOL bPropGreat = FALSE );
- void SetItemSize( USHORT nId, long nNewSize );
- long GetItemSize( USHORT nId ) const;
- long GetItemSize( USHORT nId, SplitWindowItemBits nBits ) const;
- void SetItemBits( USHORT nId, SplitWindowItemBits nNewBits );
+ void SetItemSize( USHORT nId, long nNewSize );
+ long GetItemSize( USHORT nId ) const;
+ long GetItemSize( USHORT nId, SplitWindowItemBits nBits ) const;
+ void SetItemBits( USHORT nId, SplitWindowItemBits nNewBits );
SplitWindowItemBits GetItemBits( USHORT nId ) const;
- Window* GetItemWindow( USHORT nId ) const;
- USHORT GetSet( USHORT nId ) const;
- BOOL GetSet( USHORT nId, USHORT& rSetId, USHORT& rPos ) const;
- USHORT GetItemId( Window* pWindow ) const;
- USHORT GetItemId( const Point& rPos ) const;
- USHORT GetItemPos( USHORT nId, USHORT nSetId = 0 ) const;
- USHORT GetItemId( USHORT nPos, USHORT nSetId = 0 ) const;
- USHORT GetItemCount( USHORT nSetId = 0 ) const;
- BOOL IsItemValid( USHORT nId ) const;
+ Window* GetItemWindow( USHORT nId ) const;
+ USHORT GetSet( USHORT nId ) const;
+ BOOL GetSet( USHORT nId, USHORT& rSetId, USHORT& rPos ) const;
+ USHORT GetItemId( Window* pWindow ) const;
+ USHORT GetItemId( const Point& rPos ) const;
+ USHORT GetItemPos( USHORT nId, USHORT nSetId = 0 ) const;
+ USHORT GetItemId( USHORT nPos, USHORT nSetId = 0 ) const;
+ USHORT GetItemCount( USHORT nSetId = 0 ) const;
+ BOOL IsItemValid( USHORT nId ) const;
- void SetNoAlign( BOOL bNoAlign );
- BOOL IsNoAlign() const { return mbNoAlign; }
- void SetAlign( WindowAlign eNewAlign = WINDOWALIGN_TOP );
- WindowAlign GetAlign() const { return meAlign; }
- BOOL IsHorizontal() const { return mbHorz; }
+ void SetNoAlign( BOOL bNoAlign );
+ BOOL IsNoAlign() const { return mbNoAlign; }
+ void SetAlign( WindowAlign eNewAlign = WINDOWALIGN_TOP );
+ WindowAlign GetAlign() const { return meAlign; }
+ BOOL IsHorizontal() const { return mbHorz; }
- BOOL IsSplitting() const { return IsTracking(); }
+ BOOL IsSplitting() const { return IsTracking(); }
- void SetMaxSizePixel( long nNewMaxSize ) { mnMaxSize = nNewMaxSize; }
- long GetMaxSizePixel() const { return mnMaxSize; }
+ void SetMaxSizePixel( long nNewMaxSize ) { mnMaxSize = nNewMaxSize; }
+ long GetMaxSizePixel() const { return mnMaxSize; }
- static Size CalcWindowSizePixel( const Size& rSize,
+ static Size CalcWindowSizePixel( const Size& rSize,
WindowAlign eAlign,
WinBits nWinStyle,
BOOL bExtra = FALSE );
- Size CalcWindowSizePixel( const Size& rSize )
+ Size CalcWindowSizePixel( const Size& rSize )
{ return CalcWindowSizePixel( rSize, meAlign, mnWinStyle, (mbAutoHide || mbFadeOut) ); }
- Size CalcLayoutSizePixel( const Size& aNewSize );
+ Size CalcLayoutSizePixel( const Size& aNewSize );
- void ShowAutoHideButton( BOOL bShow = TRUE );
- BOOL IsAutoHideButtonVisible() const { return mbAutoHide; }
- void ShowFadeInHideButton( BOOL bShow = TRUE );
- void ShowFadeInButton( BOOL bShow = TRUE ) { ShowFadeInHideButton( bShow ); }
- BOOL IsFadeInButtonVisible() const { return mbFadeIn; }
- void ShowFadeOutButton( BOOL bShow = TRUE );
- BOOL IsFadeOutButtonVisible() const { return mbFadeOut; }
- long GetFadeInSize() const;
- BOOL IsFadeNoButtonMode() const { return mbFadeNoButtonMode; }
+ void ShowAutoHideButton( BOOL bShow = TRUE );
+ BOOL IsAutoHideButtonVisible() const { return mbAutoHide; }
+ void ShowFadeInHideButton( BOOL bShow = TRUE );
+ void ShowFadeInButton( BOOL bShow = TRUE ) { ShowFadeInHideButton( bShow ); }
+ BOOL IsFadeInButtonVisible() const { return mbFadeIn; }
+ void ShowFadeOutButton( BOOL bShow = TRUE );
+ BOOL IsFadeOutButtonVisible() const { return mbFadeOut; }
+ long GetFadeInSize() const;
+ BOOL IsFadeNoButtonMode() const { return mbFadeNoButtonMode; }
- void SetAutoHideState( BOOL bAutoHide );
- BOOL GetAutoHideState() const { return mbAutoHideIn; }
+ void SetAutoHideState( BOOL bAutoHide );
+ BOOL GetAutoHideState() const { return mbAutoHideIn; }
- Rectangle GetAutoHideRect() const;
- Rectangle GetFadeInRect() const;
- Rectangle GetFadeOutRect() const;
+ Rectangle GetAutoHideRect() const;
+ Rectangle GetFadeInRect() const;
+ Rectangle GetFadeOutRect() const;
- void SetStartSplitHdl( const Link& rLink ) { maStartSplitHdl = rLink; }
- const Link& GetStartSplitHdl() const { return maStartSplitHdl; }
- void SetSplitHdl( const Link& rLink ) { maSplitHdl = rLink; }
- const Link& GetSplitHdl() const { return maSplitHdl; }
- void SetSplitResizeHdl( const Link& rLink ) { maSplitResizeHdl = rLink; }
- const Link& GetSplitResizeHdl() const { return maSplitResizeHdl; }
- void SetAutoHideHdl( const Link& rLink ) { maAutoHideHdl = rLink; }
- const Link& GetAutoHideHdl() const { return maAutoHideHdl; }
- void SetFadeInHdl( const Link& rLink ) { maFadeInHdl = rLink; }
- const Link& GetFadeInHdl() const { return maFadeInHdl; }
- void SetFadeOutHdl( const Link& rLink ) { maFadeOutHdl = rLink; }
- const Link& GetFadeOutHdl() const { return maFadeOutHdl; }
+ void SetStartSplitHdl( const Link& rLink ) { maStartSplitHdl = rLink; }
+ const Link& GetStartSplitHdl() const { return maStartSplitHdl; }
+ void SetSplitHdl( const Link& rLink ) { maSplitHdl = rLink; }
+ const Link& GetSplitHdl() const { return maSplitHdl; }
+ void SetSplitResizeHdl( const Link& rLink ) { maSplitResizeHdl = rLink; }
+ const Link& GetSplitResizeHdl() const { return maSplitResizeHdl; }
+ void SetAutoHideHdl( const Link& rLink ) { maAutoHideHdl = rLink; }
+ const Link& GetAutoHideHdl() const { return maAutoHideHdl; }
+ void SetFadeInHdl( const Link& rLink ) { maFadeInHdl = rLink; }
+ const Link& GetFadeInHdl() const { return maFadeInHdl; }
+ void SetFadeOutHdl( const Link& rLink ) { maFadeOutHdl = rLink; }
+ const Link& GetFadeOutHdl() const { return maFadeOutHdl; }
};
-#endif // _SV_SPLITWIN_HXX
+#endif // _SV_SPLITWIN_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/status.hxx b/vcl/inc/vcl/status.hxx
index 7d5a9a1c9f2d..6574b6ac3c1e 100644
--- a/vcl/inc/vcl/status.hxx
+++ b/vcl/inc/vcl/status.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,22 +55,22 @@ typedef USHORT StatusBarItemBits;
// - Bits fuer StatusBarItems -
// ----------------------------
-#define SIB_LEFT ((StatusBarItemBits)0x0001)
-#define SIB_CENTER ((StatusBarItemBits)0x0002)
-#define SIB_RIGHT ((StatusBarItemBits)0x0004)
-#define SIB_IN ((StatusBarItemBits)0x0008)
-#define SIB_OUT ((StatusBarItemBits)0x0010)
-#define SIB_FLAT ((StatusBarItemBits)0x0020)
-#define SIB_AUTOSIZE ((StatusBarItemBits)0x0040)
-#define SIB_USERDRAW ((StatusBarItemBits)0x0080)
+#define SIB_LEFT ((StatusBarItemBits)0x0001)
+#define SIB_CENTER ((StatusBarItemBits)0x0002)
+#define SIB_RIGHT ((StatusBarItemBits)0x0004)
+#define SIB_IN ((StatusBarItemBits)0x0008)
+#define SIB_OUT ((StatusBarItemBits)0x0010)
+#define SIB_FLAT ((StatusBarItemBits)0x0020)
+#define SIB_AUTOSIZE ((StatusBarItemBits)0x0040)
+#define SIB_USERDRAW ((StatusBarItemBits)0x0080)
// -------------------
// - StatusBar-Types -
// -------------------
-#define STATUSBAR_APPEND ((USHORT)0xFFFF)
-#define STATUSBAR_ITEM_NOTFOUND ((USHORT)0xFFFF)
-#define STATUSBAR_OFFSET ((long)5)
+#define STATUSBAR_APPEND ((USHORT)0xFFFF)
+#define STATUSBAR_ITEM_NOTFOUND ((USHORT)0xFFFF)
+#define STATUSBAR_OFFSET ((long)5)
// -------------
// - StatusBar -
@@ -82,38 +82,38 @@ class VCL_DLLPUBLIC StatusBar : public Window
private:
ImplStatusItemList* mpItemList;
ImplData* mpImplData;
- XubString maPrgsTxt;
- Point maPrgsTxtPos;
- Rectangle maPrgsFrameRect;
- long mnPrgsSize;
- long mnItemsWidth;
- long mnDX;
- long mnDY;
- long mnCalcHeight;
- long mnTextY;
- long mnItemY;
- USHORT mnCurItemId;
- USHORT mnPercent;
- USHORT mnPercentCount;
- BOOL mbVisibleItems;
- BOOL mbFormat;
- BOOL mbProgressMode;
- BOOL mbInUserDraw;
- BOOL mbBottomBorder;
- Link maClickHdl;
- Link maDoubleClickHdl;
+ XubString maPrgsTxt;
+ Point maPrgsTxtPos;
+ Rectangle maPrgsFrameRect;
+ long mnPrgsSize;
+ long mnItemsWidth;
+ long mnDX;
+ long mnDY;
+ long mnCalcHeight;
+ long mnTextY;
+ long mnItemY;
+ USHORT mnCurItemId;
+ USHORT mnPercent;
+ USHORT mnPercentCount;
+ BOOL mbVisibleItems;
+ BOOL mbFormat;
+ BOOL mbProgressMode;
+ BOOL mbInUserDraw;
+ BOOL mbBottomBorder;
+ Link maClickHdl;
+ Link maDoubleClickHdl;
using Window::ImplInit;
- SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
- SAL_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
- SAL_DLLPRIVATE void ImplFormat();
- SAL_DLLPRIVATE BOOL ImplIsItemUpdate();
+ SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
+ SAL_DLLPRIVATE void ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBackground );
+ SAL_DLLPRIVATE void ImplFormat();
+ SAL_DLLPRIVATE BOOL ImplIsItemUpdate();
using OutputDevice::ImplDrawText;
- SAL_DLLPRIVATE void ImplDrawText( BOOL bOffScreen, long nOldTextWidth );
- SAL_DLLPRIVATE void ImplDrawItem( BOOL bOffScreen, USHORT nPos, BOOL bDrawText, BOOL bDrawFrame );
- SAL_DLLPRIVATE void ImplDrawProgress( BOOL bPaint,
+ SAL_DLLPRIVATE void ImplDrawText( BOOL bOffScreen, long nOldTextWidth );
+ SAL_DLLPRIVATE void ImplDrawItem( BOOL bOffScreen, USHORT nPos, BOOL bDrawText, BOOL bDrawFrame );
+ SAL_DLLPRIVATE void ImplDrawProgress( BOOL bPaint,
USHORT nOldPerc, USHORT nNewPerc );
- SAL_DLLPRIVATE void ImplCalcProgressRect();
+ SAL_DLLPRIVATE void ImplCalcProgressRect();
SAL_DLLPRIVATE Rectangle ImplGetItemRectPos( USHORT nPos ) const;
SAL_DLLPRIVATE USHORT ImplGetFirstVisiblePos() const;
SAL_DLLPRIVATE void ImplCalcBorder();
@@ -124,104 +124,104 @@ public:
StatusBar( Window* pParent, const ResId& rResId );
~StatusBar();
- virtual void MouseButtonDown( const MouseEvent& rMEvt );
- virtual void Paint( const Rectangle& rRect );
- virtual void Move();
- virtual void Resize();
- virtual void RequestHelp( const HelpEvent& rHEvt );
- virtual void StateChanged( StateChangedType nType );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void MouseButtonDown( const MouseEvent& rMEvt );
+ virtual void Paint( const Rectangle& rRect );
+ virtual void Move();
+ virtual void Resize();
+ virtual void RequestHelp( const HelpEvent& rHEvt );
+ virtual void StateChanged( StateChangedType nType );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual void Click();
- virtual void DoubleClick();
- virtual void UserDraw( const UserDrawEvent& rUDEvt );
+ virtual void Click();
+ virtual void DoubleClick();
+ virtual void UserDraw( const UserDrawEvent& rUDEvt );
- void InsertItem( USHORT nItemId, ULONG nWidth,
+ void InsertItem( USHORT nItemId, ULONG nWidth,
StatusBarItemBits nBits = SIB_CENTER | SIB_IN,
long nOffset = STATUSBAR_OFFSET,
USHORT nPos = STATUSBAR_APPEND );
- void RemoveItem( USHORT nItemId );
+ void RemoveItem( USHORT nItemId );
- void ShowItem( USHORT nItemId );
- void HideItem( USHORT nItemId );
- BOOL IsItemVisible( USHORT nItemId ) const;
+ void ShowItem( USHORT nItemId );
+ void HideItem( USHORT nItemId );
+ BOOL IsItemVisible( USHORT nItemId ) const;
- void ShowItems();
- void HideItems();
- BOOL AreItemsVisible() const { return mbVisibleItems; }
+ void ShowItems();
+ void HideItems();
+ BOOL AreItemsVisible() const { return mbVisibleItems; }
- void CopyItems( const StatusBar& rStatusBar );
- void Clear();
+ void CopyItems( const StatusBar& rStatusBar );
+ void Clear();
- USHORT GetItemCount() const;
- USHORT GetItemId( USHORT nPos ) const;
- USHORT GetItemId( const Point& rPos ) const;
- USHORT GetItemPos( USHORT nItemId ) const;
- Rectangle GetItemRect( USHORT nItemId ) const;
- Point GetItemTextPos( USHORT nItemId ) const;
- USHORT GetCurItemId() const { return mnCurItemId; }
+ USHORT GetItemCount() const;
+ USHORT GetItemId( USHORT nPos ) const;
+ USHORT GetItemId( const Point& rPos ) const;
+ USHORT GetItemPos( USHORT nItemId ) const;
+ Rectangle GetItemRect( USHORT nItemId ) const;
+ Point GetItemTextPos( USHORT nItemId ) const;
+ USHORT GetCurItemId() const { return mnCurItemId; }
- ULONG GetItemWidth( USHORT nItemId ) const;
- StatusBarItemBits GetItemBits( USHORT nItemId ) const;
- long GetItemOffset( USHORT nItemId ) const;
+ ULONG GetItemWidth( USHORT nItemId ) const;
+ StatusBarItemBits GetItemBits( USHORT nItemId ) const;
+ long GetItemOffset( USHORT nItemId ) const;
- void SetItemText( USHORT nItemId, const XubString& rText );
- const XubString& GetItemText( USHORT nItemId ) const;
+ void SetItemText( USHORT nItemId, const XubString& rText );
+ const XubString& GetItemText( USHORT nItemId ) const;
- void SetItemData( USHORT nItemId, void* pNewData );
- void* GetItemData( USHORT nItemId ) const;
+ void SetItemData( USHORT nItemId, void* pNewData );
+ void* GetItemData( USHORT nItemId ) const;
void SetItemCommand( USHORT nItemId, const XubString& rCommand );
const XubString& GetItemCommand( USHORT nItemId );
- void SetHelpText( USHORT nItemId, const XubString& rText );
- const XubString& GetHelpText( USHORT nItemId ) const;
+ void SetHelpText( USHORT nItemId, const XubString& rText );
+ const XubString& GetHelpText( USHORT nItemId ) const;
using Window::SetQuickHelpText;
void SetQuickHelpText( USHORT nItemId, const XubString& rText );
using Window::GetQuickHelpText;
const XubString& GetQuickHelpText( USHORT nItemId ) const;
- void SetHelpId( USHORT nItemId, ULONG nHelpId );
- ULONG GetHelpId( USHORT nItemId ) const;
+ void SetHelpId( USHORT nItemId, ULONG nHelpId );
+ ULONG GetHelpId( USHORT nItemId ) const;
- void SetBottomBorder( BOOL bBottomBorder = TRUE );
- BOOL IsBottomBorder() const { return mbBottomBorder; }
+ void SetBottomBorder( BOOL bBottomBorder = TRUE );
+ BOOL IsBottomBorder() const { return mbBottomBorder; }
- void SetTopBorder( BOOL bTopBorder = TRUE );
- BOOL IsTopBorder() const;
+ void SetTopBorder( BOOL bTopBorder = TRUE );
+ BOOL IsTopBorder() const;
- void StartProgressMode( const XubString& rText );
- void SetProgressValue( USHORT nPercent );
- void EndProgressMode();
- BOOL IsProgressMode() const { return mbProgressMode; }
- void ResetProgressMode();
+ void StartProgressMode( const XubString& rText );
+ void SetProgressValue( USHORT nPercent );
+ void EndProgressMode();
+ BOOL IsProgressMode() const { return mbProgressMode; }
+ void ResetProgressMode();
- void SetText( const XubString& rText );
+ void SetText( const XubString& rText );
- void SetHelpText( const XubString& rText )
+ void SetHelpText( const XubString& rText )
{ Window::SetHelpText( rText ); }
- const XubString& GetHelpText() const
+ const XubString& GetHelpText() const
{ return Window::GetHelpText(); }
- void SetHelpId( ULONG nId )
+ void SetHelpId( ULONG nId )
{ Window::SetHelpId( nId ); }
- ULONG GetHelpId() const
+ ULONG GetHelpId() const
{ return Window::GetHelpId(); }
- Size CalcWindowSizePixel() const;
+ Size CalcWindowSizePixel() const;
- void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; }
- const Link& GetClickHdl() const { return maClickHdl; }
- void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
- const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
+ void SetClickHdl( const Link& rLink ) { maClickHdl = rLink; }
+ const Link& GetClickHdl() const { return maClickHdl; }
+ void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
+ const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
using Window::SetAccessibleName;
- void SetAccessibleName( USHORT nItemId, const XubString& rName );
+ void SetAccessibleName( USHORT nItemId, const XubString& rName );
using Window::GetAccessibleName;
- const XubString& GetAccessibleName( USHORT nItemId ) const;
+ const XubString& GetAccessibleName( USHORT nItemId ) const;
};
-#endif // _SV_STATUS_HXX
+#endif // _SV_STATUS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/stdtext.hxx b/vcl/inc/vcl/stdtext.hxx
index 96bd7ec14a1f..3d10073d455c 100644
--- a/vcl/inc/vcl/stdtext.hxx
+++ b/vcl/inc/vcl/stdtext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,9 +39,9 @@ class Window;
// - Standard-Texte -
// ------------------
-#define STANDARD_TEXT_FIRST STANDARD_TEXT_SERVICE_NOT_AVAILABLE
-#define STANDARD_TEXT_SERVICE_NOT_AVAILABLE ((USHORT)0)
-#define STANDARD_TEXT_LAST STANDARD_TEXT_SERVICE_NOT_AVAILABLE
+#define STANDARD_TEXT_FIRST STANDARD_TEXT_SERVICE_NOT_AVAILABLE
+#define STANDARD_TEXT_SERVICE_NOT_AVAILABLE ((USHORT)0)
+#define STANDARD_TEXT_LAST STANDARD_TEXT_SERVICE_NOT_AVAILABLE
XubString VCL_DLLPUBLIC GetStandardText( USHORT nStdText );
@@ -51,6 +51,6 @@ XubString VCL_DLLPUBLIC GetStandardText( USHORT nStdText );
void VCL_DLLPUBLIC ShowServiceNotAvailableError( Window* pParent, const XubString& rServiceName, BOOL bError );
-#endif // _VCL_STDTEXT_HXX
+#endif // _VCL_STDTEXT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/strhelper.hxx b/vcl/inc/vcl/strhelper.hxx
index 3cb88ea14bdc..a41cd65c9a34 100644
--- a/vcl/inc/vcl/strhelper.hxx
+++ b/vcl/inc/vcl/strhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/subedit.hxx b/vcl/inc/vcl/subedit.hxx
index 17b22e2b5587..310af9abbee8 100644
--- a/vcl/inc/vcl/subedit.hxx
+++ b/vcl/inc/vcl/subedit.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/sv.h b/vcl/inc/vcl/sv.h
index 543e08caec8f..5d6527a16602 100644
--- a/vcl/inc/vcl/sv.h
+++ b/vcl/inc/vcl/sv.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/svapp.hxx b/vcl/inc/vcl/svapp.hxx
index e608b61d0b7f..860f41db193b 100644
--- a/vcl/inc/vcl/svapp.hxx
+++ b/vcl/inc/vcl/svapp.hxx
@@ -157,12 +157,12 @@ inline BOOL ApplicationAddress::IsConnectToSame( const ApplicationAddress& rAdr
return FALSE;
}
-#define APPEVENT_PARAM_DELIMITER '\n'
+#define APPEVENT_PARAM_DELIMITER '\n'
-#define APPEVENT_OPEN_STRING "Open"
-#define APPEVENT_PRINT_STRING "Print"
-#define APPEVENT_DISKINSERT_STRING "DiskInsert"
-#define APPEVENT_SAVEDOCUMENTS_STRING "SaveDocuments"
+#define APPEVENT_OPEN_STRING "Open"
+#define APPEVENT_PRINT_STRING "Print"
+#define APPEVENT_DISKINSERT_STRING "DiskInsert"
+#define APPEVENT_SAVEDOCUMENTS_STRING "SaveDocuments"
class VCL_DLLPUBLIC ApplicationEvent
{
@@ -314,7 +314,7 @@ public:
<TRUE/> if the system font is suitable for our UI
<FALSE/> if the test string could not be displayed with the system font
*/
- static bool ValidateSystemFont();
+ static bool ValidateSystemFont();
static void SetSettings( const AllSettings& rSettings );
static const AllSettings& GetSettings();
@@ -330,8 +330,8 @@ public:
static ULONG PostKeyEvent( ULONG nEvent, Window *pWin, KeyEvent* pKeyEvent );
static ULONG PostMouseEvent( ULONG nEvent, Window *pWin, MouseEvent* pMouseEvent );
- static void RemoveMouseAndKeyEvents( Window *pWin );
- static BOOL IsProcessedMouseOrKeyEvent( ULONG nEventId );
+ static void RemoveMouseAndKeyEvents( Window *pWin );
+ static BOOL IsProcessedMouseOrKeyEvent( ULONG nEventId );
static ULONG PostUserEvent( ULONG nEvent, void* pEventData = NULL );
static ULONG PostUserEvent( const Link& rLink, void* pCaller = NULL );
@@ -378,7 +378,7 @@ public:
static bool IsMultiDisplay();
static Rectangle GetScreenPosSizePixel( unsigned int nScreen );
static Rectangle GetWorkAreaPosSizePixel( unsigned int nScreen );
- static rtl::OUString GetScreenName( unsigned int nScreen );
+ static rtl::OUString GetScreenName( unsigned int nScreen );
static unsigned int GetDefaultDisplayNumber();
// if IsMultiDisplay() == false the return value will be
// nearest screen of the target rectangle
diff --git a/vcl/inc/vcl/svcompat.hxx b/vcl/inc/vcl/svcompat.hxx
index 2aa0c82ad284..2c7ef26c7af5 100644
--- a/vcl/inc/vcl/svcompat.hxx
+++ b/vcl/inc/vcl/svcompat.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,9 +36,9 @@
// -----------
#define COMPAT_FORMAT( char1, char2, char3, char4 ) \
- ((ULONG)((((ULONG)(char)(char1)))| \
- (((ULONG)(char)(char2))<<8UL)| \
- (((ULONG)(char)(char3))<<16UL)| \
+ ((ULONG)((((ULONG)(char)(char1)))| \
+ (((ULONG)(char)(char2))<<8UL)| \
+ (((ULONG)(char)(char3))<<16UL)| \
((ULONG)(char)(char4))<<24UL))
diff --git a/vcl/inc/vcl/svdata.hxx b/vcl/inc/vcl/svdata.hxx
index 3229b6f1654d..f2d0f6e08bd2 100644
--- a/vcl/inc/vcl/svdata.hxx
+++ b/vcl/inc/vcl/svdata.hxx
@@ -236,7 +236,7 @@ struct ImplSVWinData
USHORT mnTrackFlags; // tracking flags
USHORT mnAutoScrollFlags; // auto scroll flags
BOOL mbNoDeactivate; // TRUE: keine Deactivate durchfuehren
- BOOL mbNoSaveFocus; // TRUE: menues must not save/restore focus
+ BOOL mbNoSaveFocus; // TRUE: menues must not save/restore focus
BOOL mbNoSaveBackground; // TRUE: save background is unnecessary or even less performant
};
@@ -336,9 +336,9 @@ struct ImplSVData
ULONG mnThreadCount; // is VCL MultiThread enabled
ImplConfigData* mpFirstConfigData; // Zeiger auf ersten Config-Block
ImplTimerData* mpFirstTimerData; // list of all running timers
- SalTimer* mpSalTimer; // interface to sal event loop/timers
- SalI18NImeStatus* mpImeStatus; // interface to ime status window
- SalSystem* mpSalSystem; // SalSystem interface
+ SalTimer* mpSalTimer; // interface to sal event loop/timers
+ SalI18NImeStatus* mpImeStatus; // interface to ime status window
+ SalSystem* mpSalSystem; // SalSystem interface
ResMgr* mpResMgr; // SV-Resource-Manager
ULONG mnTimerPeriod; // current timer period
ULONG mnTimerUpdate; // TimerCallbackProcs on stack
@@ -361,7 +361,7 @@ struct ImplSVData
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxAccessBridge;
com::sun::star::uno::Reference< com::sun::star::frame::XSessionManagerClient > xSMClient;
- ::vcl::SettingsConfigItem* mpSettingsConfigItem;
+ ::vcl::SettingsConfigItem* mpSettingsConfigItem;
std::list< vcl::DeleteOnDeinitBase* >* mpDeinitDeleteList;
};
diff --git a/vcl/inc/vcl/svids.hrc b/vcl/inc/vcl/svids.hrc
index 059ed1524b7c..1f688bc1be2e 100644
--- a/vcl/inc/vcl/svids.hrc
+++ b/vcl/inc/vcl/svids.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,47 +30,47 @@
#include "svl/solar.hrc"
-#define SV_RESID_STDOFFSET 0
-#define SV_RESID_WINOFFSET 1
-#define SV_RESID_OS2OFFSET 2
-#define SV_RESID_MACOFFSET 3
-#define SV_RESID_UNIXOFFSET 4
-#define SV_RESID_MONOOFFSET 5
+#define SV_RESID_STDOFFSET 0
+#define SV_RESID_WINOFFSET 1
+#define SV_RESID_OS2OFFSET 2
+#define SV_RESID_MACOFFSET 3
+#define SV_RESID_UNIXOFFSET 4
+#define SV_RESID_MONOOFFSET 5
// Achtung: Diese Id's muessen min. 10 Werte auseinanderliegen, da
// je nach Style noch ein Offset aufgerechnet wird
-#define SV_RESID_BITMAP_CHECK 1000
-#define SV_RESID_BITMAP_RADIO 1010
+#define SV_RESID_BITMAP_CHECK 1000
+#define SV_RESID_BITMAP_RADIO 1010
-#define SV_RESID_BITMAP_MSGBOX 1020
+#define SV_RESID_BITMAP_MSGBOX 1020
#define SV_RESID_BITMAP_MSGBOX_HC 1021
-#define SV_RESID_BITMAP_PIN 1030
+#define SV_RESID_BITMAP_PIN 1030
-#define SV_RESID_BITMAP_SPLITHPIN 1040
-#define SV_RESID_BITMAP_SPLITVPIN 1041
-#define SV_RESID_BITMAP_SPLITHARW 1042
-#define SV_RESID_BITMAP_SPLITVARW 1043
+#define SV_RESID_BITMAP_SPLITHPIN 1040
+#define SV_RESID_BITMAP_SPLITVPIN 1041
+#define SV_RESID_BITMAP_SPLITHARW 1042
+#define SV_RESID_BITMAP_SPLITVARW 1043
-#define SV_RESID_BITMAP_SCROLLMSK 1050
-#define SV_RESID_BITMAP_SCROLLBMP 1051
-#define SV_RESID_BITMAP_CLOSEDOC 1052
-#define SV_RESID_BITMAP_CLOSEDOCHC 1053
+#define SV_RESID_BITMAP_SCROLLMSK 1050
+#define SV_RESID_BITMAP_SCROLLBMP 1051
+#define SV_RESID_BITMAP_CLOSEDOC 1052
+#define SV_RESID_BITMAP_CLOSEDOCHC 1053
#define SV_DISCLOSURE_PLUS 1060
#define SV_DISCLOSURE_MINUS 1061
#define SV_DISCLOSURE_PLUS_HC 1062
#define SV_DISCLOSURE_MINUS_HC 1063
-#define SV_RESID_MENU_EDIT 2000
-#define SV_MENU_EDIT_UNDO 1
-#define SV_MENU_EDIT_CUT 2
-#define SV_MENU_EDIT_COPY 3
-#define SV_MENU_EDIT_PASTE 4
-#define SV_MENU_EDIT_DELETE 5
-#define SV_MENU_EDIT_SELECTALL 6
-#define SV_MENU_EDIT_INSERTSYMBOL 7
-#define SV_RESID_STRING_NOSELECTIONPOSSIBLE 2001
+#define SV_RESID_MENU_EDIT 2000
+#define SV_MENU_EDIT_UNDO 1
+#define SV_MENU_EDIT_CUT 2
+#define SV_MENU_EDIT_COPY 3
+#define SV_MENU_EDIT_PASTE 4
+#define SV_MENU_EDIT_DELETE 5
+#define SV_MENU_EDIT_SELECTALL 6
+#define SV_MENU_EDIT_INSERTSYMBOL 7
+#define SV_RESID_STRING_NOSELECTIONPOSSIBLE 2001
#define SV_MENU_MAC_SERVICES 2002
#define SV_MENU_MAC_HIDEAPP 2003
@@ -164,34 +164,34 @@
#define SV_PRINT_NOPRINTERWARNING 2051
#define SV_PRINT_NOCONTENT 2052
-#define SV_HELPTEXT_CLOSE 10000
-#define SV_HELPTEXT_MINIMIZE 10001
-#define SV_HELPTEXT_MAXIMIZE 10002
-#define SV_HELPTEXT_RESTORE 10003
-#define SV_HELPTEXT_ROLLDOWN 10004
-#define SV_HELPTEXT_ROLLUP 10005
-#define SV_HELPTEXT_HELP 10006
-#define SV_HELPTEXT_ALWAYSVISIBLE 10007
-#define SV_HELPTEXT_FADEIN 10008
-#define SV_HELPTEXT_FADEOUT 10009
-#define SV_HELPTEXT_SPLITFLOATING 10010
-#define SV_HELPTEXT_SPLITFIXED 10011
+#define SV_HELPTEXT_CLOSE 10000
+#define SV_HELPTEXT_MINIMIZE 10001
+#define SV_HELPTEXT_MAXIMIZE 10002
+#define SV_HELPTEXT_RESTORE 10003
+#define SV_HELPTEXT_ROLLDOWN 10004
+#define SV_HELPTEXT_ROLLUP 10005
+#define SV_HELPTEXT_HELP 10006
+#define SV_HELPTEXT_ALWAYSVISIBLE 10007
+#define SV_HELPTEXT_FADEIN 10008
+#define SV_HELPTEXT_FADEOUT 10009
+#define SV_HELPTEXT_SPLITFLOATING 10010
+#define SV_HELPTEXT_SPLITFIXED 10011
#define SV_HELPTEXT_CLOSEDOCUMENT 10012
-#define SV_BUTTONTEXT_OK 10100
-#define SV_BUTTONTEXT_CANCEL 10101
-#define SV_BUTTONTEXT_YES 10102
-#define SV_BUTTONTEXT_NO 10103
-#define SV_BUTTONTEXT_RETRY 10104
-#define SV_BUTTONTEXT_HELP 10105
-#define SV_BUTTONTEXT_CLOSE SV_HELPTEXT_CLOSE
-#define SV_BUTTONTEXT_MORE 10107
-#define SV_BUTTONTEXT_IGNORE 10108
-#define SV_BUTTONTEXT_ABORT 10109
-#define SV_BUTTONTEXT_LESS 10110
+#define SV_BUTTONTEXT_OK 10100
+#define SV_BUTTONTEXT_CANCEL 10101
+#define SV_BUTTONTEXT_YES 10102
+#define SV_BUTTONTEXT_NO 10103
+#define SV_BUTTONTEXT_RETRY 10104
+#define SV_BUTTONTEXT_HELP 10105
+#define SV_BUTTONTEXT_CLOSE SV_HELPTEXT_CLOSE
+#define SV_BUTTONTEXT_MORE 10107
+#define SV_BUTTONTEXT_IGNORE 10108
+#define SV_BUTTONTEXT_ABORT 10109
+#define SV_BUTTONTEXT_LESS 10110
-#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
-#define SV_STDTEXT_SERVICENOTAVAILABLE 10200
+#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
+#define SV_STDTEXT_SERVICENOTAVAILABLE 10200
#define SV_STDTEXT_DONTHINTAGAIN 10201
#define SV_STDTEXT_DONTASKAGAIN 10202
#define SV_STDTEXT_DONTWARNAGAIN 10203
@@ -199,20 +199,20 @@
#define SV_STDTEXT_PREFERENCES 10205
#define SV_MAC_SCREENNNAME 10206
#define SV_STDTEXT_ALLFILETYPES 10207
-#define SV_STDTEXT_LAST SV_STDTEXT_ALLFILETYPES
+#define SV_STDTEXT_LAST SV_STDTEXT_ALLFILETYPES
-#define SV_ACCESSERROR_FIRST SV_ACCESSERROR_WRONG_VERSION
-#define SV_ACCESSERROR_WRONG_VERSION 10500
-#define SV_ACCESSERROR_BRIDGE_MSG 10501
+#define SV_ACCESSERROR_FIRST SV_ACCESSERROR_WRONG_VERSION
+#define SV_ACCESSERROR_WRONG_VERSION 10500
+#define SV_ACCESSERROR_BRIDGE_MSG 10501
#define SV_ACCESSERROR_OK_CANCEL_MSG 10502
-#define SV_ACCESSERROR_MISSING_BRIDGE 10503
-#define SV_ACCESSERROR_FAULTY_JAVA 10504
-#define SV_ACCESSERROR_JAVA_MSG 10505
-#define SV_ACCESSERROR_MISSING_JAVA 10506
+#define SV_ACCESSERROR_MISSING_BRIDGE 10503
+#define SV_ACCESSERROR_FAULTY_JAVA 10504
+#define SV_ACCESSERROR_JAVA_MSG 10505
+#define SV_ACCESSERROR_MISSING_JAVA 10506
#define SV_ACCESSERROR_JAVA_NOT_CONFIGURED 10507
#define SV_ACCESSERROR_JAVA_DISABLED 10508
#define SV_ACCESSERROR_TURNAROUND_MSG 10509
-#define SV_ACCESSERROR_LAST SV_ACCESSERROR_TURNAROUND_MSG
+#define SV_ACCESSERROR_LAST SV_ACCESSERROR_TURNAROUND_MSG
#define SV_SHORTCUT_HELP 10600
#define SV_SHORTCUT_CONTEXTHELP 10601
@@ -258,4 +258,4 @@
#define HID_PRINTDLG HID_VCL_START
-#endif // _SV_SVIDS_HRC
+#endif // _SV_SVIDS_HRC
diff --git a/vcl/inc/vcl/symbol.hxx b/vcl/inc/vcl/symbol.hxx
index cb7074986911..7a745a433d9a 100644
--- a/vcl/inc/vcl/symbol.hxx
+++ b/vcl/inc/vcl/symbol.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,47 +37,47 @@
// By changes you must also change: rsc/vclrsc.hxx
typedef USHORT SymbolType;
-#define SYMBOL_DONTKNOW ((SymbolType)0)
-#define SYMBOL_IMAGE ((SymbolType)1)
-#define SYMBOL_ARROW_UP ((SymbolType)2)
-#define SYMBOL_ARROW_DOWN ((SymbolType)3)
-#define SYMBOL_ARROW_LEFT ((SymbolType)4)
-#define SYMBOL_ARROW_RIGHT ((SymbolType)5)
-#define SYMBOL_SPIN_UP ((SymbolType)6)
-#define SYMBOL_SPIN_DOWN ((SymbolType)7)
-#define SYMBOL_SPIN_LEFT ((SymbolType)8)
-#define SYMBOL_SPIN_RIGHT ((SymbolType)9)
-#define SYMBOL_FIRST ((SymbolType)10)
-#define SYMBOL_LAST ((SymbolType)11)
-#define SYMBOL_PREV ((SymbolType)12)
-#define SYMBOL_NEXT ((SymbolType)13)
-#define SYMBOL_PAGEUP ((SymbolType)14)
-#define SYMBOL_PAGEDOWN ((SymbolType)15)
-#define SYMBOL_PLAY ((SymbolType)16)
-#define SYMBOL_REVERSEPLAY ((SymbolType)17)
-#define SYMBOL_RECORD ((SymbolType)18)
-#define SYMBOL_STOP ((SymbolType)19)
-#define SYMBOL_PAUSE ((SymbolType)20)
-#define SYMBOL_WINDSTART ((SymbolType)21)
-#define SYMBOL_WINDEND ((SymbolType)22)
-#define SYMBOL_WINDBACKWARD ((SymbolType)23)
-#define SYMBOL_WINDFORWARD ((SymbolType)24)
-#define SYMBOL_CLOSE ((SymbolType)25)
-#define SYMBOL_ROLLUP ((SymbolType)26)
-#define SYMBOL_ROLLDOWN ((SymbolType)27)
-#define SYMBOL_CHECKMARK ((SymbolType)28)
-#define SYMBOL_RADIOCHECKMARK ((SymbolType)29)
-#define SYMBOL_SPIN_UPDOWN ((SymbolType)30)
-#define SYMBOL_FLOAT ((SymbolType)31)
-#define SYMBOL_DOCK ((SymbolType)32)
-#define SYMBOL_HIDE ((SymbolType)33)
-#define SYMBOL_HELP ((SymbolType)34)
-#define SYMBOL_OS2CLOSE ((SymbolType)35)
-#define SYMBOL_OS2FLOAT ((SymbolType)36)
-#define SYMBOL_OS2HIDE ((SymbolType)37)
-#define SYMBOL_MENU SYMBOL_SPIN_DOWN
+#define SYMBOL_DONTKNOW ((SymbolType)0)
+#define SYMBOL_IMAGE ((SymbolType)1)
+#define SYMBOL_ARROW_UP ((SymbolType)2)
+#define SYMBOL_ARROW_DOWN ((SymbolType)3)
+#define SYMBOL_ARROW_LEFT ((SymbolType)4)
+#define SYMBOL_ARROW_RIGHT ((SymbolType)5)
+#define SYMBOL_SPIN_UP ((SymbolType)6)
+#define SYMBOL_SPIN_DOWN ((SymbolType)7)
+#define SYMBOL_SPIN_LEFT ((SymbolType)8)
+#define SYMBOL_SPIN_RIGHT ((SymbolType)9)
+#define SYMBOL_FIRST ((SymbolType)10)
+#define SYMBOL_LAST ((SymbolType)11)
+#define SYMBOL_PREV ((SymbolType)12)
+#define SYMBOL_NEXT ((SymbolType)13)
+#define SYMBOL_PAGEUP ((SymbolType)14)
+#define SYMBOL_PAGEDOWN ((SymbolType)15)
+#define SYMBOL_PLAY ((SymbolType)16)
+#define SYMBOL_REVERSEPLAY ((SymbolType)17)
+#define SYMBOL_RECORD ((SymbolType)18)
+#define SYMBOL_STOP ((SymbolType)19)
+#define SYMBOL_PAUSE ((SymbolType)20)
+#define SYMBOL_WINDSTART ((SymbolType)21)
+#define SYMBOL_WINDEND ((SymbolType)22)
+#define SYMBOL_WINDBACKWARD ((SymbolType)23)
+#define SYMBOL_WINDFORWARD ((SymbolType)24)
+#define SYMBOL_CLOSE ((SymbolType)25)
+#define SYMBOL_ROLLUP ((SymbolType)26)
+#define SYMBOL_ROLLDOWN ((SymbolType)27)
+#define SYMBOL_CHECKMARK ((SymbolType)28)
+#define SYMBOL_RADIOCHECKMARK ((SymbolType)29)
+#define SYMBOL_SPIN_UPDOWN ((SymbolType)30)
+#define SYMBOL_FLOAT ((SymbolType)31)
+#define SYMBOL_DOCK ((SymbolType)32)
+#define SYMBOL_HIDE ((SymbolType)33)
+#define SYMBOL_HELP ((SymbolType)34)
+#define SYMBOL_OS2CLOSE ((SymbolType)35)
+#define SYMBOL_OS2FLOAT ((SymbolType)36)
+#define SYMBOL_OS2HIDE ((SymbolType)37)
+#define SYMBOL_MENU SYMBOL_SPIN_DOWN
-#define SYMBOL_NOSYMBOL (SYMBOL_DONTKNOW)
+#define SYMBOL_NOSYMBOL (SYMBOL_DONTKNOW)
#endif // _SV_SYMBOL_HXX
diff --git a/vcl/inc/vcl/syschild.hxx b/vcl/inc/vcl/syschild.hxx
index 459f97e68abd..ba1c2e5d1cdb 100644
--- a/vcl/inc/vcl/syschild.hxx
+++ b/vcl/inc/vcl/syschild.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ public:
SystemChildWindow( Window* pParent, const ResId& rResId );
~SystemChildWindow();
- const SystemEnvData* GetSystemData() const;
+ const SystemEnvData* GetSystemData() const;
// per default systemchildwindows erase their background for better plugin support
// however, this might not always be required
diff --git a/vcl/inc/vcl/sysdata.hxx b/vcl/inc/vcl/sysdata.hxx
index b25a1275673e..108371b115c4 100644
--- a/vcl/inc/vcl/sysdata.hxx
+++ b/vcl/inc/vcl/sysdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,23 +48,23 @@ class NSView;
struct SystemEnvData
{
- unsigned long nSize; // size in bytes of this structure
+ unsigned long nSize; // size in bytes of this structure
#if defined( WNT ) || defined( OS2 )
- HWND hWnd; // the window hwnd
+ HWND hWnd; // the window hwnd
#elif defined( QUARTZ )
NSView* pView; // the cocoa (NSView *) implementing this object
#elif defined( UNX )
- void* pDisplay; // the relevant display connection
- long aWindow; // the window of the object
- void* pSalFrame; // contains a salframe, if object has one
- void* pWidget; // the corresponding widget
- void* pVisual; // the visual in use
- int nScreen; // the current screen of the window
- int nDepth; // depth of said visual
- long aColormap; // the colormap being used
- void* pAppContext; // the application context in use
- long aShellWindow; // the window of the frame's shell
- void* pShellWidget; // the frame's shell widget
+ void* pDisplay; // the relevant display connection
+ long aWindow; // the window of the object
+ void* pSalFrame; // contains a salframe, if object has one
+ void* pWidget; // the corresponding widget
+ void* pVisual; // the visual in use
+ int nScreen; // the current screen of the window
+ int nDepth; // depth of said visual
+ long aColormap; // the colormap being used
+ void* pAppContext; // the application context in use
+ long aShellWindow; // the window of the frame's shell
+ void* pShellWidget; // the frame's shell widget
#endif
};
@@ -76,13 +76,13 @@ struct SystemEnvData
struct SystemParentData
{
- unsigned long nSize; // size in bytes of this structure
+ unsigned long nSize; // size in bytes of this structure
#if defined( WNT ) || defined( OS2 )
- HWND hWnd; // the window hwnd
+ HWND hWnd; // the window hwnd
#elif defined( QUARTZ )
NSView* pView; // the cocoa (NSView *) implementing this object
#elif defined( UNX )
- long aWindow; // the window of the object
+ long aWindow; // the window of the object
bool bXEmbedSupport:1; // decides whether the object in question
// should support the XEmbed protocol
#endif
@@ -94,13 +94,13 @@ struct SystemParentData
struct SystemMenuData
{
- unsigned long nSize; // size in bytes of this structure
+ unsigned long nSize; // size in bytes of this structure
#if defined( WNT )
- HMENU hMenu; // the menu handle of the menu bar
+ HMENU hMenu; // the menu handle of the menu bar
#elif defined( QUARTZ )
//not defined
#elif defined( UNX )
- long aMenu; // ???
+ long aMenu; // ???
#endif
};
@@ -110,19 +110,19 @@ struct SystemMenuData
struct SystemGraphicsData
{
- unsigned long nSize; // size in bytes of this structure
+ unsigned long nSize; // size in bytes of this structure
#if defined( WNT )
- HDC hDC; // handle to a device context
+ HDC hDC; // handle to a device context
#elif defined( QUARTZ )
- CGContextRef rCGContext; // QUARTZ graphic context
+ CGContextRef rCGContext; // QUARTZ graphic context
#elif defined( UNX )
- void* pDisplay; // the relevant display connection
- long hDrawable; // a drawable
- void* pVisual; // the visual in use
- int nScreen; // the current screen of the drawable
- int nDepth; // depth of said visual
- long aColormap; // the colormap being used
- void* pXRenderFormat; // render format for drawable
+ void* pDisplay; // the relevant display connection
+ long hDrawable; // a drawable
+ void* pVisual; // the visual in use
+ int nScreen; // the current screen of the drawable
+ int nDepth; // depth of said visual
+ long aColormap; // the colormap being used
+ void* pXRenderFormat; // render format for drawable
#endif
};
@@ -133,11 +133,11 @@ struct SystemGraphicsData
struct SystemWindowData
{
- unsigned long nSize; // size in bytes of this structure
+ unsigned long nSize; // size in bytes of this structure
#if defined( WNT ) // meaningless on Windows
#elif defined( QUARTZ ) // meaningless on Mac OS X / Quartz
#elif defined( UNX )
- void* pVisual; // the visual to be used
+ void* pVisual; // the visual to be used
#endif
};
@@ -161,10 +161,10 @@ struct SystemGlyphData
struct SystemFontData
{
- unsigned long nSize; // size in bytes of this structure
+ unsigned long nSize; // size in bytes of this structure
#if defined( WNT )
HFONT hFont; // native font object
-#elif defined( QUARTZ )
+#elif defined( QUARTZ )
void* aATSUFontID; // native font object
#elif defined( UNX )
void* nFontId; // native font id
@@ -175,7 +175,7 @@ struct SystemFontData
bool bAntialias; // Should this font be antialiased
bool bVerticalCharacterType; // Is the font using vertical character type
};
-
+
// --------------------
// - SystemTextLayoutData -
// --------------------
@@ -183,7 +183,7 @@ struct SystemFontData
typedef std::vector<SystemGlyphData> SystemGlyphDataVector;
struct SystemTextLayoutData
{
- unsigned long nSize; // size in bytes of this structure
+ unsigned long nSize; // size in bytes of this structure
SystemGlyphDataVector rGlyphData; // glyph data
int orientation; // Text orientation
};
diff --git a/vcl/inc/vcl/syswin.hxx b/vcl/inc/vcl/syswin.hxx
index dcc287a4e2cc..db240c18f31f 100644
--- a/vcl/inc/vcl/syswin.hxx
+++ b/vcl/inc/vcl/syswin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ class TaskPaneList;
#define ICON_MATH_DOCUMENT 15
#define ICON_TEMPLATE 16
#define ICON_MACROLIBRARY 17
-#define ICON_PLAYER 100
+#define ICON_PLAYER 100
#define ICON_SETUP 500
// -------------------
@@ -179,7 +179,7 @@ private:
// Copy assignment is forbidden and not implemented.
SystemWindow (const SystemWindow &);
SystemWindow & operator= (const SystemWindow &);
-
+
SAL_DLLPRIVATE void ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, long i_nHeight, Window* i_pConfigureWin );
protected:
@@ -239,34 +239,34 @@ public:
void SetMenuBarMode( USHORT nMode );
USHORT GetMenuBarMode() const { return mnMenuBarMode; }
- TaskPaneList* GetTaskPaneList();
+ TaskPaneList* GetTaskPaneList();
void GetWindowStateData( WindowStateData& rData ) const;
-
+
/**
Returns the screen number the window is on
-
+
The screen number is counted the same way that
<code>Application::GetScreenPosSizePixel</code>,
<code>Application::GetWorkAreaPosSizePixel</code>,
<code>Application::GetScreenName</code>
and of course <code>SystemWindow::SetScreenNumber</code>
are counted in.
-
+
In case the window is positioned on multiple screens the
screen number returned will be of the screen containing the
upper left pixel of the frame area (that is of the client
area on system decorated windows, or the frame area of
undecorated resp. owner decorated windows.
-
+
@returns the screen number
-
+
@see SystemWindow::SetScreenNumber
*/
unsigned int GetScreenNumber() const;
/**
Move the Window to a new screen. The same rules for
positioning apply as in <code>SystemWindow::GetScreenNumber</code>
-
+
The screen number is counted the same way that
<code>Application::GetScreenPosSizePixel</code>,
<code>Application::GetWorkAreaPosSizePixel</code>,
diff --git a/vcl/inc/vcl/tabctrl.hxx b/vcl/inc/vcl/tabctrl.hxx
index 25925a89b1d7..877772f284aa 100644
--- a/vcl/inc/vcl/tabctrl.hxx
+++ b/vcl/inc/vcl/tabctrl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,10 +91,10 @@ private:
SAL_DLLPRIVATE void ImplSetFirstPagePos( USHORT nPagePos );
SAL_DLLPRIVATE void ImplShowFocus();
SAL_DLLPRIVATE void ImplDrawItem( ImplTabItem* pItem, const Rectangle& rCurRect, bool bLayout = false, bool bFirstInGroup = false, bool bLastInGroup = false, bool bIsCurrentItem = false );
- SAL_DLLPRIVATE void ImplPaint( const Rectangle& rRect, bool bLayout = false );
- SAL_DLLPRIVATE void ImplFreeLayoutData();
- SAL_DLLPRIVATE long ImplHandleKeyEvent( const KeyEvent& rKeyEvent );
-
+ SAL_DLLPRIVATE void ImplPaint( const Rectangle& rRect, bool bLayout = false );
+ SAL_DLLPRIVATE void ImplFreeLayoutData();
+ SAL_DLLPRIVATE long ImplHandleKeyEvent( const KeyEvent& rKeyEvent );
+
DECL_DLLPRIVATE_LINK( ImplScrollBtnHdl, PushButton* pBtn );
DECL_DLLPRIVATE_LINK( ImplListBoxSelectHdl, ListBox* );
DECL_DLLPRIVATE_LINK( ImplWindowEventListener, VclSimpleEvent* );
@@ -105,7 +105,7 @@ protected:
SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
- virtual void FillLayoutData() const;
+ virtual void FillLayoutData() const;
virtual const Font& GetCanonicalFont( const StyleSettings& _rStyle ) const;
virtual const Color& GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
SAL_DLLPRIVATE Rectangle* ImplFindPartRect( const Point& rPt );
@@ -180,7 +180,7 @@ public:
void SetHelpId( USHORT nPageId, ULONG nHelpId );
ULONG GetHelpId( USHORT nPageId ) const;
-
+
void SetPageImage( USHORT nPageId, const Image& rImage );
const Image* GetPageImage( USHORT nPageId ) const;
diff --git a/vcl/inc/vcl/tabdlg.hxx b/vcl/inc/vcl/tabdlg.hxx
index 51591522d8e5..ec340af68cbc 100644
--- a/vcl/inc/vcl/tabdlg.hxx
+++ b/vcl/inc/vcl/tabdlg.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,13 +43,13 @@ class TabControl;
class VCL_DLLPUBLIC TabDialog : public Dialog
{
private:
- FixedLine* mpFixedLine;
- Window* mpViewWindow;
- WindowAlign meViewAlign;
- BOOL mbPosControls;
+ FixedLine* mpFixedLine;
+ Window* mpViewWindow;
+ WindowAlign meViewAlign;
+ BOOL mbPosControls;
- SAL_DLLPRIVATE void ImplInitTabDialogData();
- SAL_DLLPRIVATE void ImplPosControls();
+ SAL_DLLPRIVATE void ImplInitTabDialogData();
+ SAL_DLLPRIVATE void ImplPosControls();
public:
TabDialog( Window* pParent,
@@ -57,17 +57,17 @@ public:
TabDialog( Window* pParent, const ResId& rResId );
~TabDialog();
- virtual void Resize();
- virtual void StateChanged( StateChangedType nStateChange );
-
- void AdjustLayout();
+ virtual void Resize();
+ virtual void StateChanged( StateChangedType nStateChange );
+
+ void AdjustLayout();
- void SetViewWindow( Window* pWindow ) { mpViewWindow = pWindow; }
- Window* GetViewWindow() const { return mpViewWindow; }
- void SetViewAlign( WindowAlign eAlign ) { meViewAlign = eAlign; }
- WindowAlign GetViewAlign() const { return meViewAlign; }
+ void SetViewWindow( Window* pWindow ) { mpViewWindow = pWindow; }
+ Window* GetViewWindow() const { return mpViewWindow; }
+ void SetViewAlign( WindowAlign eAlign ) { meViewAlign = eAlign; }
+ WindowAlign GetViewAlign() const { return meViewAlign; }
};
-#endif // _SV_TABDLG_HXX
+#endif // _SV_TABDLG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/tabpage.hxx b/vcl/inc/vcl/tabpage.hxx
index 442ac960a011..bececc316fa4 100644
--- a/vcl/inc/vcl/tabpage.hxx
+++ b/vcl/inc/vcl/tabpage.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@ class VCL_DLLPUBLIC TabPage : public Window
{
private:
using Window::ImplInit;
- SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
- SAL_DLLPRIVATE void ImplInitSettings();
+ SAL_DLLPRIVATE void ImplInit( Window* pParent, WinBits nStyle );
+ SAL_DLLPRIVATE void ImplInitSettings();
public:
TabPage( Window* pParent, WinBits nStyle = 0 );
@@ -51,15 +51,15 @@ public:
virtual void Paint( const Rectangle& rRect );
virtual void Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG nFlags );
- virtual void StateChanged( StateChangedType nStateChange );
- virtual void DataChanged( const DataChangedEvent& rDCEvt );
+ virtual void StateChanged( StateChangedType nStateChange );
+ virtual void DataChanged( const DataChangedEvent& rDCEvt );
- virtual void ActivatePage();
- virtual void DeactivatePage();
+ virtual void ActivatePage();
+ virtual void DeactivatePage();
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > CreateAccessible();
};
-#endif // _SV_TABPAGE_HXX
+#endif // _SV_TABPAGE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/taskpanelist.hxx b/vcl/inc/vcl/taskpanelist.hxx
index 0eb4f20cd97d..0331c1220858 100644
--- a/vcl/inc/vcl/taskpanelist.hxx
+++ b/vcl/inc/vcl/taskpanelist.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/textlayout.hxx b/vcl/inc/vcl/textlayout.hxx
index 0f593ed00e21..7f42ecafe158 100644
--- a/vcl/inc/vcl/textlayout.hxx
+++ b/vcl/inc/vcl/textlayout.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/threadex.hxx b/vcl/inc/vcl/threadex.hxx
index 429b43e6ac7c..1e1ab0e69b23 100644
--- a/vcl/inc/vcl/threadex.hxx
+++ b/vcl/inc/vcl/threadex.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,9 +41,9 @@ namespace vcl
{
class VCL_DLLPUBLIC ThreadExecutor
{
- oslThread m_aThread;
- oslCondition m_aFinish;
- long m_nReturn;
+ oslThread m_aThread;
+ oslCondition m_aFinish;
+ long m_nReturn;
#ifdef THREADEX_IMPLEMENTATION
public:
@@ -60,8 +60,8 @@ namespace vcl
class VCL_DLLPUBLIC SolarThreadExecutor
{
oslCondition m_aStart;
- oslCondition m_aFinish;
- long m_nReturn;
+ oslCondition m_aFinish;
+ long m_nReturn;
bool m_bTimeout;
DECL_DLLPRIVATE_LINK( worker, void* );
diff --git a/vcl/inc/vcl/timer.hxx b/vcl/inc/vcl/timer.hxx
index ae2ca9a3ba99..4cacc5662a35 100644
--- a/vcl/inc/vcl/timer.hxx
+++ b/vcl/inc/vcl/timer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ protected:
public:
Timer();
Timer( const Timer& rTimer );
- virtual ~Timer();
+ virtual ~Timer();
virtual void Timeout();
diff --git a/vcl/inc/vcl/toolbox.h b/vcl/inc/vcl/toolbox.h
index bc169c18e160..014be121b349 100644
--- a/vcl/inc/vcl/toolbox.h
+++ b/vcl/inc/vcl/toolbox.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,28 +59,28 @@ class Window;
struct ImplToolItem
{
- Window* mpWindow;
- void* mpUserData;
- Image maImage;
- Image maHighImage;
- long mnImageAngle;
- bool mbMirrorMode;
- XubString maText;
- XubString maQuickHelpText;
- XubString maHelpText;
- String maCommandStr;
- ULONG mnHelpId;
- Rectangle maRect;
- Rectangle maCalcRect;
+ Window* mpWindow;
+ void* mpUserData;
+ Image maImage;
+ Image maHighImage;
+ long mnImageAngle;
+ bool mbMirrorMode;
+ XubString maText;
+ XubString maQuickHelpText;
+ XubString maHelpText;
+ String maCommandStr;
+ ULONG mnHelpId;
+ Rectangle maRect;
+ Rectangle maCalcRect;
// the overall horizontal item size, including one or more of [image size + textlength + dropdown arrow]
- Size maItemSize;
- long mnSepSize;
+ Size maItemSize;
+ long mnSepSize;
long mnDropDownArrowWidth;
- ToolBoxItemType meType;
- ToolBoxItemBits mnBits;
- TriState meState;
- USHORT mnId;
- BOOL mbEnabled:1,
+ ToolBoxItemType meType;
+ ToolBoxItemBits mnBits;
+ TriState meState;
+ USHORT mnId;
+ BOOL mbEnabled:1,
mbVisible:1,
mbEmptyBtn:1,
mbShowWindow:1,
@@ -104,7 +104,7 @@ struct ImplToolItem
// the default size is the precomputed size for standard items
// ie those that are just ordinary buttons (no windows or text etc.)
// bCheckMaxWidth indicates that item windows must not exceed maxWidth in which case they will be painted as buttons
- Size GetSize( BOOL bHorz, BOOL bCheckMaxWidth, long maxWidth, const Size& rDefaultSize );
+ Size GetSize( BOOL bHorz, BOOL bCheckMaxWidth, long maxWidth, const Size& rDefaultSize );
// only useful for buttons: returns if the text or image part or both can be drawn according to current button drawing style
void DetermineButtonDrawStyle( ButtonType eButtonType, BOOL& rbImage, BOOL& rbText ) const;
@@ -123,8 +123,8 @@ namespace vcl
struct ToolBoxLayoutData : public ControlLayoutData
{
- std::vector< USHORT > m_aLineItemIds;
- std::vector< USHORT > m_aLineItemPositions;
+ std::vector< USHORT > m_aLineItemIds;
+ std::vector< USHORT > m_aLineItemPositions;
};
@@ -133,8 +133,8 @@ struct ToolBoxLayoutData : public ControlLayoutData
struct ImplToolBoxPrivateData
{
- vcl::ToolBoxLayoutData* m_pLayoutData;
- std::vector< ImplToolItem > m_aItems;
+ vcl::ToolBoxLayoutData* m_pLayoutData;
+ std::vector< ImplToolItem > m_aItems;
ImplToolBoxPrivateData();
~ImplToolBoxPrivateData();
@@ -143,7 +143,7 @@ struct ImplToolBoxPrivateData
// called when dropdown items are clicked
Link maDropdownClickHdl;
- Timer maDropdownTimer; // for opening dropdown items on "long click"
+ Timer maDropdownTimer; // for opening dropdown items on "long click"
// large or small buttons ?
ToolBoxButtonSize meButtonSize;
@@ -154,14 +154,14 @@ struct ImplToolBoxPrivateData
ULONG mnEventId;
// called when menu button is clicked and before the popup menu is executed
- Link maMenuButtonHdl;
+ Link maMenuButtonHdl;
// a dummy item representing the custom menu button
ImplToolItem maMenubuttonItem;
long mnMenuButtonWidth;
-
+
Wallpaper maDisplayBackground;
-
+
// support for highcontrast
vcl::IImageListProvider* mpImageListProvider;
vcl::ImageListType meImageListType;
@@ -170,8 +170,8 @@ struct ImplToolBoxPrivateData
mbAssumeDocked:1, // only used during calculations to override current floating/popup mode
mbAssumeFloating:1,
mbAssumePopupMode:1,
- mbKeyInputDisabled:1, // no KEY input if all items disabled, closing/docking will be allowed though
- mbIsPaintLocked:1, // don't allow paints
+ mbKeyInputDisabled:1, // no KEY input if all items disabled, closing/docking will be allowed though
+ mbIsPaintLocked:1, // don't allow paints
mbMenubuttonSelected:1, // menu button is highlighted
mbPageScroll:1, // determines if we scroll a page at a time
mbNativeButtons:1, // system supports native toolbar buttons
@@ -180,6 +180,6 @@ struct ImplToolBoxPrivateData
};
-#endif // _SV_TOOLBOX_H
+#endif // _SV_TOOLBOX_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/toolbox.hxx b/vcl/inc/vcl/toolbox.hxx
index 094e831af702..e6b241729148 100644
--- a/vcl/inc/vcl/toolbox.hxx
+++ b/vcl/inc/vcl/toolbox.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -170,8 +170,8 @@ class VCL_DLLPUBLIC ToolBox : public DockingWindow
friend class ImplTBDragMgr;
private:
- ImplToolBoxPrivateData* mpData;
- VirtualDevice* mpBtnDev; // TODO: remove unused member
+ ImplToolBoxPrivateData* mpData;
+ VirtualDevice* mpBtnDev; // TODO: remove unused member
ImplToolSizeArray* mpFloatSizeAry;
XubString maCvtStr;
XubString maNextToolBoxStr;
@@ -199,7 +199,7 @@ private:
long mnLastResizeDY;
long mnActivateCount;
USHORT mnLastFocusItemId;
- USHORT mnFocusPos;
+ USHORT mnFocusPos;
USHORT mnOutStyle;
USHORT mnHighItemId;
USHORT mnCurItemId;
@@ -270,8 +270,8 @@ private:
SAL_DLLPRIVATE const XubString& ImplConvertMenuString( const XubString& rStr );
SAL_DLLPRIVATE BOOL ImplHandleMouseMove( const MouseEvent& rMEvt, BOOL bRepeat = FALSE );
SAL_DLLPRIVATE BOOL ImplHandleMouseButtonUp( const MouseEvent& rMEvt, BOOL bCancel = FALSE );
- SAL_DLLPRIVATE void ImplChangeHighlight( ImplToolItem* pItem, BOOL bNoGrabFocus = FALSE );
- SAL_DLLPRIVATE BOOL ImplChangeHighlightUpDn( BOOL bUp, BOOL bNoCycle = FALSE );
+ SAL_DLLPRIVATE void ImplChangeHighlight( ImplToolItem* pItem, BOOL bNoGrabFocus = FALSE );
+ SAL_DLLPRIVATE BOOL ImplChangeHighlightUpDn( BOOL bUp, BOOL bNoCycle = FALSE );
SAL_DLLPRIVATE USHORT ImplGetItemLine( ImplToolItem* pCurrentItem );
SAL_DLLPRIVATE ImplToolItem* ImplGetFirstValidItem( USHORT nLine );
SAL_DLLPRIVATE ImplToolItem* ImplGetLastValidItem( USHORT nLine );
@@ -279,8 +279,8 @@ private:
SAL_DLLPRIVATE BOOL ImplActivateItem( KeyCode aKeyCode );
SAL_DLLPRIVATE void ImplShowFocus();
SAL_DLLPRIVATE void ImplHideFocus();
- SAL_DLLPRIVATE void ImplUpdateInputEnable();
- SAL_DLLPRIVATE void ImplFillLayoutData() const;
+ SAL_DLLPRIVATE void ImplUpdateInputEnable();
+ SAL_DLLPRIVATE void ImplFillLayoutData() const;
SAL_DLLPRIVATE void ImplUpdateCustomMenu();
SAL_DLLPRIVATE BOOL ImplHasClippedItems();
SAL_DLLPRIVATE Point ImplGetPopupPosition( const Rectangle& rRect, const Size& rSize ) const;
@@ -410,7 +410,7 @@ public:
void RecalcItems();
const ImageList& GetImageList() const { return maImageList; }
- void SetImageList( const ImageList& rImageList );
+ void SetImageList( const ImageList& rImageList );
void SetButtonType( ButtonType eNewType = BUTTON_SYMBOL );
ButtonType GetButtonType() const { return meButtonType; }
@@ -455,7 +455,7 @@ public:
USHORT GetDownItemId() const { return mnDownItemId; }
USHORT GetClicks() const { return mnMouseClicks; }
USHORT GetModifier() const { return mnMouseModifier; }
- USHORT GetKeyModifier() const { return mnKeyModifier; }
+ USHORT GetKeyModifier() const { return mnKeyModifier; }
void SetItemBits( USHORT nItemId, ToolBoxItemBits nBits );
ToolBoxItemBits GetItemBits( USHORT nItemId ) const;
@@ -464,10 +464,10 @@ public:
void* GetItemData( USHORT nItemId ) const;
void SetItemImage( USHORT nItemId, const Image& rImage );
Image GetItemImage( USHORT nItemId ) const;
- void SetItemImageAngle( USHORT nItemId, long nAngle10 );
- long GetItemImageAngle( USHORT nItemId ) const;
- void SetItemImageMirrorMode( USHORT nItemId, BOOL bMirror );
- BOOL GetItemImageMirrorMode( USHORT ) const;
+ void SetItemImageAngle( USHORT nItemId, long nAngle10 );
+ long GetItemImageAngle( USHORT nItemId ) const;
+ void SetItemImageMirrorMode( USHORT nItemId, BOOL bMirror );
+ BOOL GetItemImageMirrorMode( USHORT ) const;
void SetItemHighImage( USHORT nItemId, const Image& rImage );
Image GetItemHighImage( USHORT nItemId ) const;
void SetItemText( USHORT nItemId, const XubString& rText );
diff --git a/vcl/inc/vcl/unobrok.hxx b/vcl/inc/vcl/unobrok.hxx
index 67c83ea83952..91916f4dfebe 100644
--- a/vcl/inc/vcl/unobrok.hxx
+++ b/vcl/inc/vcl/unobrok.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,6 +37,6 @@ namespace vcl_accept
sal_Bool accept(const ::rtl::OUString & accDcp, const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory> & rSMgr);
}
-#endif // _UNOBROK_HXX
+#endif // _UNOBROK_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/unohelp.hxx b/vcl/inc/vcl/unohelp.hxx
index 2126d5e77ba6..1dc6c226db22 100644
--- a/vcl/inc/vcl/unohelp.hxx
+++ b/vcl/inc/vcl/unohelp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace i18n {
class XCollator;
}
namespace lang {
- class XMultiServiceFactory;
+ class XMultiServiceFactory;
}
}}}
@@ -50,7 +50,7 @@ namespace com {
namespace sun {
namespace star {
namespace accessibility {
- struct AccessibleEventObject;
+ struct AccessibleEventObject;
}
}}}
@@ -65,7 +65,7 @@ namespace unohelper
::com::sun::star::uno::Reference < ::com::sun::star::i18n::XCollator > VCL_DLLPUBLIC CreateCollator();
::rtl::OUString VCL_DLLPUBLIC CreateLibraryName( const sal_Char* pModName, sal_Bool bSUPD );
void VCL_DLLPUBLIC NotifyAccessibleStateEventGlobally( const ::com::sun::star::accessibility::AccessibleEventObject& rEventObject );
-}} // namespace vcl::unohelper
+}} // namespace vcl::unohelper
#endif // _VCL_UNOHELP_HXX
diff --git a/vcl/inc/vcl/unohelp2.hxx b/vcl/inc/vcl/unohelp2.hxx
index 5824f016c57c..0a51a5eb909e 100644
--- a/vcl/inc/vcl/unohelp2.hxx
+++ b/vcl/inc/vcl/unohelp2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,18 +46,18 @@ namespace vcl { namespace unohelper {
public ::cppu::OWeakObject
{
private:
- String maText;
+ String maText;
- public:
+ public:
TextDataObject( const String& rText );
~TextDataObject();
- String& GetString() { return maText; }
+ String& GetString() { return maText; }
// ::com::sun::star::uno::XInterface
- ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
- void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
- void SAL_CALL release() throw() { OWeakObject::release(); }
+ ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
+ void SAL_CALL acquire() throw() { OWeakObject::acquire(); }
+ void SAL_CALL release() throw() { OWeakObject::release(); }
// ::com::sun::star::datatransfer::XTransferable
::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor ) throw(::com::sun::star::datatransfer::UnsupportedFlavorException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
@@ -79,7 +79,7 @@ namespace vcl { namespace unohelper {
::osl::Mutex& GetMutex() { return maMutex; }
};
-}} // namespace vcl::unohelper
+}} // namespace vcl::unohelper
#endif // _VCL_UNOHELP2_HXX
diff --git a/vcl/inc/vcl/unowrap.hxx b/vcl/inc/vcl/unowrap.hxx
index 3691014d7477..258b49f59cce 100644
--- a/vcl/inc/vcl/unowrap.hxx
+++ b/vcl/inc/vcl/unowrap.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,17 +34,17 @@
#include <com/sun/star/uno/Reference.h>
class XWindowPeer;
-class XToolkit;
-class XVclToolkit;
-class EventList;
+class XToolkit;
+class XVclToolkit;
+class EventList;
class Window;
-class OutputDevice;
+class OutputDevice;
class MouseEvent;
class CommandEvent;
class KeyEvent;
class Rectangle;
class XVclComponentPeer;
-class Menu;
+class Menu;
namespace com {
namespace sun {
@@ -68,27 +68,27 @@ namespace accessibility {
class VCL_DLLPUBLIC UnoWrapperBase
{
-public:
- virtual void Destroy() = 0;
+public:
+ virtual void Destroy() = 0;
// Toolkit
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit > GetVCLToolkit() = 0;
// Graphics
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > CreateGraphics( OutputDevice* pOutDev ) = 0;
- virtual void ReleaseAllGraphics( OutputDevice* pOutDev ) = 0;
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > CreateGraphics( OutputDevice* pOutDev ) = 0;
+ virtual void ReleaseAllGraphics( OutputDevice* pOutDev ) = 0;
// Window
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer> GetWindowInterface( Window* pWindow, sal_Bool bCreate ) = 0;
- virtual void SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace ) = 0;
+ virtual void SetWindowInterface( Window* pWindow, ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer > xIFace ) = 0;
- virtual void WindowDestroyed( Window* pWindow ) = 0;
+ virtual void WindowDestroyed( Window* pWindow ) = 0;
// Accessibility
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
CreateAccessible( Menu* pMenu, sal_Bool bIsMenuBar ) = 0;
};
-#endif // _VCL_UNOWRAP_HXX
+#endif // _VCL_UNOWRAP_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/vclenum.hxx b/vcl/inc/vcl/vclenum.hxx
index 492f2293afaf..6fac4e31c438 100644
--- a/vcl/inc/vcl/vclenum.hxx
+++ b/vcl/inc/vcl/vclenum.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,13 +67,13 @@ enum ExtDateFieldFormat { XTDATEF_SYSTEM_SHORT, XTDATEF_SYSTEM_SHORT_YY, XTDATEF
// ------------------------------------------------------------
// to avoid conflicts with enum's declared otherwise
-#define GRADIENT_LINEAR GradientStyle_LINEAR
-#define GRADIENT_AXIAL GradientStyle_AXIAL
-#define GRADIENT_RADIAL GradientStyle_RADIAL
-#define GRADIENT_ELLIPTICAL GradientStyle_ELLIPTICAL
-#define GRADIENT_SQUARE GradientStyle_SQUARE
-#define GRADIENT_RECT GradientStyle_RECT
-#define GRADIENT_FORCE_EQUAL_SIZE GradientStyle_FORCE_EQUAL_SIZE
+#define GRADIENT_LINEAR GradientStyle_LINEAR
+#define GRADIENT_AXIAL GradientStyle_AXIAL
+#define GRADIENT_RADIAL GradientStyle_RADIAL
+#define GRADIENT_ELLIPTICAL GradientStyle_ELLIPTICAL
+#define GRADIENT_SQUARE GradientStyle_SQUARE
+#define GRADIENT_RECT GradientStyle_RECT
+#define GRADIENT_FORCE_EQUAL_SIZE GradientStyle_FORCE_EQUAL_SIZE
#ifndef ENUM_GRADIENTSTYLE_DECLARED
#define ENUM_GRADIENTSTYLE_DECLARED
@@ -94,10 +94,10 @@ enum GradientStyle
// ------------------------------------------------------------
// to avoid conflicts with enum's declared otherwise
-#define HATCH_SINGLE HatchStyle_SINGLE
-#define HATCH_DOUBLE HatchStyle_DOUBLE
-#define HATCH_TRIPLE HatchStyle_TRIPLE
-#define HATCH_FORCE_EQUAL_SIZE HatchStyle_FORCE_EQUAL_SIZE
+#define HATCH_SINGLE HatchStyle_SINGLE
+#define HATCH_DOUBLE HatchStyle_DOUBLE
+#define HATCH_TRIPLE HatchStyle_TRIPLE
+#define HATCH_FORCE_EQUAL_SIZE HatchStyle_FORCE_EQUAL_SIZE
#ifndef ENUM_HATCHSTYLE_DECLARED
#define ENUM_HATCHSTYLE_DECLARED
@@ -115,10 +115,10 @@ enum HatchStyle
// ------------------------------------------------------------
// to avoid conflicts with enum's declared otherwise
-#define LINE_NONE LineStyle_NONE
-#define LINE_SOLID LineStyle_SOLID
-#define LINE_DASH LineStyle_DASH
-#define LINE_FORCE_EQUAL_SIZE LineStyle_FORCE_EQUAL_SIZE
+#define LINE_NONE LineStyle_NONE
+#define LINE_SOLID LineStyle_SOLID
+#define LINE_DASH LineStyle_DASH
+#define LINE_FORCE_EQUAL_SIZE LineStyle_FORCE_EQUAL_SIZE
#ifndef ENUM_LINESTYLE_DECLARED
#define ENUM_LINESTYLE_DECLARED
@@ -241,20 +241,20 @@ enum FontStrikeout { STRIKEOUT_NONE, STRIKEOUT_SINGLE, STRIKEOUT_DOUBLE,
#define ENUM_FONTEMPHASISMARK_DECLARED
typedef USHORT FontEmphasisMark;
-#define EMPHASISMARK_NONE ((FontEmphasisMark)0x0000)
-#define EMPHASISMARK_DOT ((FontEmphasisMark)0x0001)
-#define EMPHASISMARK_CIRCLE ((FontEmphasisMark)0x0002)
-#define EMPHASISMARK_DISC ((FontEmphasisMark)0x0003)
-#define EMPHASISMARK_ACCENT ((FontEmphasisMark)0x0004)
-#define EMPHASISMARK_STYLE ((FontEmphasisMark)0x00FF)
-#define EMPHASISMARK_POS_ABOVE ((FontEmphasisMark)0x1000)
-#define EMPHASISMARK_POS_BELOW ((FontEmphasisMark)0x2000)
+#define EMPHASISMARK_NONE ((FontEmphasisMark)0x0000)
+#define EMPHASISMARK_DOT ((FontEmphasisMark)0x0001)
+#define EMPHASISMARK_CIRCLE ((FontEmphasisMark)0x0002)
+#define EMPHASISMARK_DISC ((FontEmphasisMark)0x0003)
+#define EMPHASISMARK_ACCENT ((FontEmphasisMark)0x0004)
+#define EMPHASISMARK_STYLE ((FontEmphasisMark)0x00FF)
+#define EMPHASISMARK_POS_ABOVE ((FontEmphasisMark)0x1000)
+#define EMPHASISMARK_POS_BELOW ((FontEmphasisMark)0x2000)
// Only for kompability
-#define EMPHASISMARK_DOTS_ABOVE (EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE)
-#define EMPHASISMARK_DOTS_BELOW (EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW)
-#define EMPHASISMARK_SIDE_DOTS (EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE)
-#define EMPHASISMARK_CIRCLE_ABOVE (EMPHASISMARK_CIRCLE | EMPHASISMARK_POS_ABOVE)
+#define EMPHASISMARK_DOTS_ABOVE (EMPHASISMARK_DOT | EMPHASISMARK_POS_ABOVE)
+#define EMPHASISMARK_DOTS_BELOW (EMPHASISMARK_DOT | EMPHASISMARK_POS_BELOW)
+#define EMPHASISMARK_SIDE_DOTS (EMPHASISMARK_ACCENT | EMPHASISMARK_POS_ABOVE)
+#define EMPHASISMARK_CIRCLE_ABOVE (EMPHASISMARK_CIRCLE | EMPHASISMARK_POS_ABOVE)
#endif
@@ -317,7 +317,7 @@ enum KeyFuncType { KEYFUNC_DONTKNOW, KEYFUNC_NEW, KEYFUNC_OPEN, KEYFUNC_SAVE,
#endif
-typedef sal_uInt32 sal_UCS4; // TODO: this should be moved to rtl
+typedef sal_uInt32 sal_UCS4; // TODO: this should be moved to rtl
#ifndef ENUM_OUTDEVSUPPORT_DECLARED
#define ENUM_OUTDEVSUPPORT_DECLARED
@@ -326,6 +326,6 @@ enum OutDevSupportType { OutDevSupport_TransparentRect, OutDevSupport_B2DClip, O
#endif
-#endif // _VCL_VCLENUM_HXX
+#endif // _VCL_VCLENUM_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/vclevent.hxx b/vcl/inc/vcl/vclevent.hxx
index 42e76bc92bd8..f4cc2f5afff8 100644
--- a/vcl/inc/vcl/vclevent.hxx
+++ b/vcl/inc/vcl/vclevent.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -109,14 +109,14 @@ namespace com { namespace sun { namespace star {
#define VCLEVENT_LISTBOX_SCROLLED 1127
#define VCLEVENT_COMBOBOX_SCROLLED 1128
#define VCLEVENT_EDIT_SELECTIONCHANGED 1129
-#define VCLEVENT_DROPDOWN_OPEN 1130
-#define VCLEVENT_DROPDOWN_CLOSE 1131
+#define VCLEVENT_DROPDOWN_OPEN 1130
+#define VCLEVENT_DROPDOWN_CLOSE 1131
#define VCLEVENT_TOOLBOX_ITEMADDED 1132 // pData = itempos
#define VCLEVENT_TOOLBOX_ITEMREMOVED 1133 // pData = itempos
#define VCLEVENT_TOOLBOX_ALLITEMSCHANGED 1134
#define VCLEVENT_TOOLBOX_HIGHLIGHTOFF 1135 // pData = itempos
-#define VCLEVENT_WINDOW_MENUBARADDED 1136 // pData = pMenuBar
+#define VCLEVENT_WINDOW_MENUBARADDED 1136 // pData = pMenuBar
#define VCLEVENT_TABPAGE_ACTIVATE 1137 // pData = pageid
#define VCLEVENT_TABPAGE_DEACTIVATE 1138 // pData = pageid
#define VCLEVENT_TABBAR_PAGEENABLED 1139 // pData = pageid
@@ -146,8 +146,8 @@ namespace com { namespace sun { namespace star {
#define VCLEVENT_STATUSBAR_HIDEITEM 1163 // pData = itemid
#define VCLEVENT_STATUSBAR_SHOWALLITEMS 1164
#define VCLEVENT_STATUSBAR_HIDEALLITEMS 1165
-#define VCLEVENT_STATUSBAR_DRAWITEM 1166 // pData = itemid
-#define VCLEVENT_STATUSBAR_NAMECHANGED 1167 // pData = itemid
+#define VCLEVENT_STATUSBAR_DRAWITEM 1166 // pData = itemid
+#define VCLEVENT_STATUSBAR_NAMECHANGED 1167 // pData = itemid
#define VCLEVENT_TOOLBOX_ITEMENABLED 1168 // pData = itempos
#define VCLEVENT_TOOLBOX_ITEMDISABLED 1169 // pData = itempos
#define VCLEVENT_TABPAGE_PAGETEXTCHANGED 1170 // pData = pageid
@@ -173,10 +173,10 @@ namespace com { namespace sun { namespace star {
#define VCLEVENT_MENU_SUBMENUCHANGED 1209
#define VCLEVENT_MENU_DEHIGHLIGHT 1210
#define VCLEVENT_MENU_DISABLE 1211
-#define VCLEVENT_MENU_ITEMTEXTCHANGED 1212
-#define VCLEVENT_MENU_ITEMCHECKED 1213
-#define VCLEVENT_MENU_ITEMUNCHECKED 1214
-#define VCLEVENT_MENU_ACCESSIBLENAMECHANGED 1215
+#define VCLEVENT_MENU_ITEMTEXTCHANGED 1212
+#define VCLEVENT_MENU_ITEMCHECKED 1213
+#define VCLEVENT_MENU_ITEMUNCHECKED 1214
+#define VCLEVENT_MENU_ACCESSIBLENAMECHANGED 1215
#define VCLEVENT_MENU_SHOW 1250
#define VCLEVENT_MENU_HIDE 1251
@@ -193,7 +193,7 @@ namespace com { namespace sun { namespace star {
#define VCLEVENT_TOOLBOX_BUTTONSTATECHANGED 1223 // pData = itempos
#define VCLEVENT_TABLECELL_NAMECHANGED 1224 // pData = struct(Entry, Column, oldText)
-#define VCLEVENT_TABLEROW_SELECT 1225
+#define VCLEVENT_TABLEROW_SELECT 1225
class VCL_DLLPUBLIC VclSimpleEvent
{
@@ -279,7 +279,7 @@ class VCL_DLLPUBLIC VclEventListeners2 : public vcl::DeletionNotifier
{
std::list< Link >::iterator m_aIt;
bool m_bWasInvalidated;
-
+
ListenerIt(const std::list<Link>::iterator& rIt)
: m_aIt(rIt)
, m_bWasInvalidated( false )
@@ -287,15 +287,15 @@ class VCL_DLLPUBLIC VclEventListeners2 : public vcl::DeletionNotifier
};
std::vector< ListenerIt > m_aIterators;
-
-
+
+
public:
VclEventListeners2();
~VclEventListeners2();
-
+
void addListener( const Link& );
void removeListener( const Link& );
-
+
void callListeners( VclSimpleEvent* );
};
diff --git a/vcl/inc/vcl/virdev.hxx b/vcl/inc/vcl/virdev.hxx
index f3e52813c486..c73713cc6788 100644
--- a/vcl/inc/vcl/virdev.hxx
+++ b/vcl/inc/vcl/virdev.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,26 +47,26 @@ class VCL_DLLPUBLIC VirtualDevice : public OutputDevice
friend class OutputDevice;
private:
- SalVirtualDevice* mpVirDev;
- VirtualDevice* mpPrev;
- VirtualDevice* mpNext;
- USHORT mnBitCount;
- BOOL mbScreenComp;
- sal_Int8 mnAlphaDepth;
- BYTE meRefDevMode;
+ SalVirtualDevice* mpVirDev;
+ VirtualDevice* mpPrev;
+ VirtualDevice* mpNext;
+ USHORT mnBitCount;
+ BOOL mbScreenComp;
+ sal_Int8 mnAlphaDepth;
+ BYTE meRefDevMode;
- SAL_DLLPRIVATE void ImplInitVirDev( const OutputDevice* pOutDev, long nDX, long nDY, USHORT nBitCount, const SystemGraphicsData *pData = NULL );
- SAL_DLLPRIVATE BOOL ImplSetOutputSizePixel( const Size& rNewSize, BOOL bErase );
+ SAL_DLLPRIVATE void ImplInitVirDev( const OutputDevice* pOutDev, long nDX, long nDY, USHORT nBitCount, const SystemGraphicsData *pData = NULL );
+ SAL_DLLPRIVATE BOOL ImplSetOutputSizePixel( const Size& rNewSize, BOOL bErase );
// Copy assignment is forbidden and not implemented.
VirtualDevice (const VirtualDevice &);
VirtualDevice & operator= (const VirtualDevice &);
- /** Used for alpha VDev, to set areas to opaque
+ /** Used for alpha VDev, to set areas to opaque
@since #i32109#
*/
- SAL_DLLPRIVATE void ImplFillOpaqueRectangle( const Rectangle& rRect );
+ SAL_DLLPRIVATE void ImplFillOpaqueRectangle( const Rectangle& rRect );
// TODO: add extra member for refdev backward compatibility options
#define REFDEV_FORCE_ZERO_EXTLEAD 0x80
@@ -101,10 +101,10 @@ public:
*/
VirtualDevice( const SystemGraphicsData *pData, USHORT nBitCount );
- virtual ~VirtualDevice();
+ virtual ~VirtualDevice();
- BOOL SetOutputSizePixel( const Size& rNewSize, BOOL bErase = TRUE );
- BOOL SetOutputSize( const Size& rNewSize, BOOL bErase = TRUE )
+ BOOL SetOutputSizePixel( const Size& rNewSize, BOOL bErase = TRUE );
+ BOOL SetOutputSize( const Size& rNewSize, BOOL bErase = TRUE )
{ return SetOutputSizePixel( LogicToPixel( rNewSize ), bErase ); }
// reference device modes for different compatibility levels
@@ -119,7 +119,7 @@ public:
void SetReferenceDevice( RefDevMode );
void Compat_ZeroExtleadBug(); // enable workaround for #i60495#
-
+
void SetReferenceDevice( sal_Int32 i_nDPIX, sal_Int32 i_nDPIY );
private:
diff --git a/vcl/inc/vcl/waitobj.hxx b/vcl/inc/vcl/waitobj.hxx
index 1bbdd04506e9..ee9874569f02 100644
--- a/vcl/inc/vcl/waitobj.hxx
+++ b/vcl/inc/vcl/waitobj.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/wall.hxx b/vcl/inc/vcl/wall.hxx
index 0011501392be..e69314ade2f4 100644
--- a/vcl/inc/vcl/wall.hxx
+++ b/vcl/inc/vcl/wall.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,37 +42,37 @@ class ImplWallpaper;
// - Wallpaper-Types -
// -------------------
-#define WALLPAPER_NULL WallpaperStyle_NULL
-#define WALLPAPER_TILE WallpaperStyle_TILE
-#define WALLPAPER_CENTER WallpaperStyle_CENTER
-#define WALLPAPER_SCALE WallpaperStyle_SCALE
-#define WALLPAPER_TOPLEFT WallpaperStyle_TOPLEFT
-#define WALLPAPER_TOP WallpaperStyle_TOP
-#define WALLPAPER_TOPRIGHT WallpaperStyle_TOPRIGHT
-#define WALLPAPER_LEFT WallpaperStyle_LEFT
-#define WALLPAPER_RIGHT WallpaperStyle_RIGHT
-#define WALLPAPER_BOTTOMLEFT WallpaperStyle_BOTTOMLEFT
-#define WALLPAPER_BOTTOM WallpaperStyle_BOTTOM
-#define WALLPAPER_BOTTOMRIGHT WallpaperStyle_BOTTOMRIGHT
-#define WALLPAPER_APPLICATIONGRADIENT WallpaperStyle_APPLICATIONGRADIENT
-#define WALLPAPER_FORCE_EQUAL_SIZE WallpaperStyle_FORCE_EQUAL_SIZE
+#define WALLPAPER_NULL WallpaperStyle_NULL
+#define WALLPAPER_TILE WallpaperStyle_TILE
+#define WALLPAPER_CENTER WallpaperStyle_CENTER
+#define WALLPAPER_SCALE WallpaperStyle_SCALE
+#define WALLPAPER_TOPLEFT WallpaperStyle_TOPLEFT
+#define WALLPAPER_TOP WallpaperStyle_TOP
+#define WALLPAPER_TOPRIGHT WallpaperStyle_TOPRIGHT
+#define WALLPAPER_LEFT WallpaperStyle_LEFT
+#define WALLPAPER_RIGHT WallpaperStyle_RIGHT
+#define WALLPAPER_BOTTOMLEFT WallpaperStyle_BOTTOMLEFT
+#define WALLPAPER_BOTTOM WallpaperStyle_BOTTOM
+#define WALLPAPER_BOTTOMRIGHT WallpaperStyle_BOTTOMRIGHT
+#define WALLPAPER_APPLICATIONGRADIENT WallpaperStyle_APPLICATIONGRADIENT
+#define WALLPAPER_FORCE_EQUAL_SIZE WallpaperStyle_FORCE_EQUAL_SIZE
#ifndef ENUM_WALLPAPERSTYLE_DECLARED
#define ENUM_WALLPAPERSTYLE_DECLARED
-enum WallpaperStyle
+enum WallpaperStyle
{
- WALLPAPER_NULL,
+ WALLPAPER_NULL,
WALLPAPER_TILE,
WALLPAPER_CENTER,
WALLPAPER_SCALE,
- WALLPAPER_TOPLEFT,
- WALLPAPER_TOP,
+ WALLPAPER_TOPLEFT,
+ WALLPAPER_TOP,
WALLPAPER_TOPRIGHT,
- WALLPAPER_LEFT,
+ WALLPAPER_LEFT,
WALLPAPER_RIGHT,
- WALLPAPER_BOTTOMLEFT,
- WALLPAPER_BOTTOM,
+ WALLPAPER_BOTTOMLEFT,
+ WALLPAPER_BOTTOM,
WALLPAPER_BOTTOMRIGHT,
WALLPAPER_APPLICATIONGRADIENT, // defines a gradient that internally covers the whole application
// and uses a color derived from the face color
@@ -88,9 +88,9 @@ enum WallpaperStyle
class VCL_DLLPUBLIC Wallpaper
{
private:
- ImplWallpaper* mpImplWallpaper;
+ ImplWallpaper* mpImplWallpaper;
- SAL_DLLPRIVATE void ImplMakeUnique( BOOL bReleaseCache = TRUE );
+ SAL_DLLPRIVATE void ImplMakeUnique( BOOL bReleaseCache = TRUE );
SAL_DLLPRIVATE Gradient ImplGetApplicationGradient() const;
public:
@@ -105,41 +105,41 @@ public:
Wallpaper( const Gradient& rGradient );
~Wallpaper();
- void SetColor( const Color& rColor );
- const Color& GetColor() const;
+ void SetColor( const Color& rColor );
+ const Color& GetColor() const;
- void SetStyle( WallpaperStyle eStyle );
- WallpaperStyle GetStyle() const;
+ void SetStyle( WallpaperStyle eStyle );
+ WallpaperStyle GetStyle() const;
- void SetBitmap( const BitmapEx& rBitmap );
- void SetBitmap();
- BitmapEx GetBitmap() const;
- BOOL IsBitmap() const;
+ void SetBitmap( const BitmapEx& rBitmap );
+ void SetBitmap();
+ BitmapEx GetBitmap() const;
+ BOOL IsBitmap() const;
- void SetGradient( const Gradient& rGradient );
- void SetGradient();
- Gradient GetGradient() const;
- BOOL IsGradient() const;
+ void SetGradient( const Gradient& rGradient );
+ void SetGradient();
+ Gradient GetGradient() const;
+ BOOL IsGradient() const;
- void SetRect( const Rectangle& rRect );
- void SetRect();
- Rectangle GetRect() const;
- BOOL IsRect() const;
+ void SetRect( const Rectangle& rRect );
+ void SetRect();
+ Rectangle GetRect() const;
+ BOOL IsRect() const;
- BOOL IsFixed() const;
- BOOL IsScrollable() const;
+ BOOL IsFixed() const;
+ BOOL IsScrollable() const;
- Wallpaper& operator=( const Wallpaper& rWallpaper );
- BOOL operator==( const Wallpaper& rWallpaper ) const;
- BOOL operator!=( const Wallpaper& rWallpaper ) const
+ Wallpaper& operator=( const Wallpaper& rWallpaper );
+ BOOL operator==( const Wallpaper& rWallpaper ) const;
+ BOOL operator!=( const Wallpaper& rWallpaper ) const
{ return !(Wallpaper::operator==( rWallpaper )); }
- BOOL IsSameInstance( const Wallpaper& rWallpaper ) const
+ BOOL IsSameInstance( const Wallpaper& rWallpaper ) const
{ return (mpImplWallpaper == rWallpaper.mpImplWallpaper); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Wallpaper& rWallpaper );
friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const Wallpaper& rWallpaper );
};
-#endif // _SV_WALL_HXX
+#endif // _SV_WALL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/wall2.hxx b/vcl/inc/vcl/wall2.hxx
index 311ad3b9cf1c..df95c48e6385 100644
--- a/vcl/inc/vcl/wall2.hxx
+++ b/vcl/inc/vcl/wall2.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,13 +36,13 @@ class ImplWallpaper
friend class Wallpaper;
private:
- Color maColor;
- BitmapEx* mpBitmap;
- Gradient* mpGradient;
- Rectangle* mpRect;
- WallpaperStyle meStyle;
- ULONG mnRefCount;
- BitmapEx* mpCache;
+ Color maColor;
+ BitmapEx* mpBitmap;
+ Gradient* mpGradient;
+ Rectangle* mpRect;
+ WallpaperStyle meStyle;
+ ULONG mnRefCount;
+ BitmapEx* mpCache;
friend SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper );
friend SvStream& operator<<( SvStream& rOStm, const ImplWallpaper& rImplWallpaper );
@@ -52,12 +52,12 @@ public:
ImplWallpaper( const ImplWallpaper& rImplWallpaper );
~ImplWallpaper();
- void ImplSetCachedBitmap( BitmapEx& rBmp );
- const BitmapEx* ImplGetCachedBitmap() { return mpCache; }
- void ImplReleaseCachedBitmap();
+ void ImplSetCachedBitmap( BitmapEx& rBmp );
+ const BitmapEx* ImplGetCachedBitmap() { return mpCache; }
+ void ImplReleaseCachedBitmap();
};
-#endif // _SV_WALL2_HXX
+#endif // _SV_WALL2_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/vcl/windata.hxx b/vcl/inc/vcl/windata.hxx
index bd8815b83f77..65a8acadbb92 100644
--- a/vcl/inc/vcl/windata.hxx
+++ b/vcl/inc/vcl/windata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/window.h b/vcl/inc/vcl/window.h
index d52616a1c183..8958a1e7e2a7 100644
--- a/vcl/inc/vcl/window.h
+++ b/vcl/inc/vcl/window.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -118,7 +118,7 @@ struct ImplWinData
Rectangle* mpFocusRect;
Rectangle* mpTrackRect;
USHORT mnTrackFlags;
- USHORT mnIsTopWindow;
+ USHORT mnIsTopWindow;
BOOL mbMouseOver; // tracks mouse over for native widget paint effect
BOOL mbEnableNativeWidget; // toggle native widget rendering
SmartId* mpSmartHelpId;
@@ -148,7 +148,7 @@ struct ImplOverlapData
struct ImplFrameData
{
Timer maPaintTimer; // paint timer
- Timer maResizeTimer; // resize timer
+ Timer maResizeTimer; // resize timer
InputContext maOldInputContext; // Last set Input Context
Window* mpNextFrame; // next frame window
Window* mpFirstOverlap; // first overlap window
@@ -236,7 +236,7 @@ public:
VclEventListeners maChildEventListeners;
// The canvas interface for this VCL window. Is persistent after the first GetCanvas() call
- ::com::sun::star::uno::WeakReference< ::com::sun::star::rendering::XCanvas > mxCanvas;
+ ::com::sun::star::uno::WeakReference< ::com::sun::star::rendering::XCanvas > mxCanvas;
ImplDelData* mpFirstDel;
void* mpUserData;
diff --git a/vcl/inc/vcl/window.hxx b/vcl/inc/vcl/window.hxx
index e6bd75afdcba..32c5621f2c59 100644
--- a/vcl/inc/vcl/window.hxx
+++ b/vcl/inc/vcl/window.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -317,7 +317,7 @@ typedef USHORT StateChangedType;
#define DLGWINDOW_NEXT 1
#define DLGWINDOW_FIRST 2
-enum WindowSizeType {
+enum WindowSizeType {
WINDOWSIZE_MINIMUM,
WINDOWSIZE_PREFERRED,
WINDOWSIZE_MAXIMUM
@@ -380,7 +380,7 @@ public:
SAL_DLLPRIVATE WinBits ImplInitRes( const ResId& rResId );
SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId );
SAL_DLLPRIVATE void ImplWindowRes( const ResId& rResId );
- SAL_DLLPRIVATE void ImplSetFrameParent( const Window* pParent );
+ SAL_DLLPRIVATE void ImplSetFrameParent( const Window* pParent );
SAL_DLLPRIVATE void ImplInsertWindow( Window* pParent );
SAL_DLLPRIVATE void ImplRemoveWindow( BOOL bRemoveFrameData );
SAL_DLLPRIVATE Window* ImplGetWindow();
@@ -480,7 +480,7 @@ public:
<TRUE/> if the font can be used as UI font
<FALSE/> if the font is unsuitable as UI font
*/
- SAL_DLLPRIVATE bool ImplCheckUIFont( const Font& rFont );
+ SAL_DLLPRIVATE bool ImplCheckUIFont( const Font& rFont );
SAL_DLLPRIVATE void ImplUpdateGlobalSettings( AllSettings& rSettings, BOOL bCallHdl = TRUE );
SAL_DLLPRIVATE void ImplAlignChilds();
SAL_DLLPRIVATE void ImplPosSizeWindow( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
@@ -545,15 +545,15 @@ public:
SAL_DLLPRIVATE Rectangle ImplGetWindowExtentsRelative( Window *pRelativeWindow, BOOL bClientOnly ) const;
SAL_DLLPRIVATE void ImplNotifyIconifiedState( BOOL bIconified );
- SAL_DLLPRIVATE bool ImplStopDnd();
- SAL_DLLPRIVATE void ImplStartDnd();
+ SAL_DLLPRIVATE bool ImplStopDnd();
+ SAL_DLLPRIVATE void ImplStartDnd();
SAL_DLLPRIVATE static void ImplInitAppFontData( Window* pWindow );
- SAL_DLLPRIVATE void ImplPaintToDevice( OutputDevice* pTargetOutDev, const Point& rPos );
+ SAL_DLLPRIVATE void ImplPaintToDevice( OutputDevice* pTargetOutDev, const Point& rPos );
SAL_DLLPRIVATE BOOL ImplIsInTaskPaneList();
SAL_DLLPRIVATE void ImplIsInTaskPaneList( BOOL mbIsInTaskList );
- SAL_DLLPRIVATE ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas >
+ SAL_DLLPRIVATE ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas >
ImplGetCanvas( const Size& rFullscreenSize, bool bFullscreen, bool bSpriteCanvas ) const;
private:
@@ -728,7 +728,7 @@ public:
// while IsInPaint returns true ExpandPaintClipRegion adds the
// submitted region to the paint clip region so you can
// paint additional parts of your window if necessary
- void ExpandPaintClipRegion( const Region& rRegion );
+ void ExpandPaintClipRegion( const Region& rRegion );
void SetParent( Window* pNewParent );
Window* GetParent() const;
@@ -750,16 +750,16 @@ public:
void EnableInput( BOOL bEnable, BOOL bChild, BOOL bSysWin,
const Window* pExcludeWindow = NULL );
BOOL IsInputEnabled() const;
-
+
/** Override <code>EnableInput</code>. This can be necessary due to other people
using EnableInput for whole window hierarchies.
-
-
+
+
<code>AlwaysEnableInput</code> and <code>AlwaysDisableInput</code> are
mutually exclusive; the last setter wins.
@param bAlways
sets always enabled flag
-
+
@param bChild
if true children are recursively set to AlwaysEnableInput
*/
@@ -773,13 +773,13 @@ public:
Windows with AlwaysDisableInput will not get key events even if enabled
and input enabled.This can be necessary due to other people using EnableInput
for whole window hierarchies.
-
+
<code>AlwaysEnableInput</code> and <code>AlwaysDisableInput</code> are
mutually exclusive; the last setter wins.
-
+
@param bAlways
sets always disable flag
-
+
@param bChild
if true children are recursively set to AlwaysDisableInput
*/
@@ -795,25 +795,25 @@ public:
not evaluate events but still react to those events externally. In these
rare cases call SetCallHandlersOnInputDisabled( true ) to have your handler
called anyway.
-
+
Currently only mouse events get this special treatment.
-
+
Use this sparingly, chances are if you want to use it you're wroking around
the real problem.
-
+
@param bCall
Enable/Disable calling event handlers for this disabled, modal or input disabled window.
This call is implicity done recursively for possible child windows.
*/
void SetCallHandlersOnInputDisabled( bool bCall );
/** get state of SetCallHandlersOnInputDisabled
-
+
@returns whether handlers are called regardless of input enabled state
*/
bool IsCallHandlersOnInputDisabled() const;
/** A window is in modal mode if one of its children or subchildren
is a running modal window (a modal dialog)
-
+
@returns TRUE if a child or subchild is a running modal window
*/
BOOL IsInModalMode() const;
@@ -887,10 +887,10 @@ public:
BOOL IsActive() const;
BOOL HasActiveChildFrame();
USHORT GetGetFocusFlags() const;
- void GrabFocusToDocument();
+ void GrabFocusToDocument();
- /**
- * Set this when you need to act as if the window has focus even if it
+ /**
+ * Set this when you need to act as if the window has focus even if it
* doesn't. This is necessary for implementing tab stops inside floating
* windows, but floating windows don't get focus from the system.
*/
@@ -928,11 +928,11 @@ public:
long CalcZoom( long n ) const;
virtual void SetText( const XubString& rStr );
- virtual String GetText() const;
+ virtual String GetText() const;
// return the actual text displayed
// this may have e.g. accellerators removed or portions
// replaced by ellipsis
- virtual String GetDisplayText() const;
+ virtual String GetDisplayText() const;
// gets the visible background color. for transparent windows
// this may be the parent's background color; for controls
// this may be a child's background color (e.g. ListBox)
@@ -1035,19 +1035,19 @@ public:
BOOL IsAccessibilityEventsSuppressed( BOOL bTraverseParentPath = TRUE );
/// request XCanvas render interface for this window
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XCanvas > GetCanvas() const;
/// request XSpriteCanvas render interface for this window
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XSpriteCanvas > GetSpriteCanvas() const;
/// request fullscreen XSpriteCanvas render interface for this window
- ::com::sun::star::uno::Reference<
+ ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XSpriteCanvas > GetFullscreenSpriteCanvas( const Size& rFullscreenSize ) const;
/* records all DrawText operations within the passed rectangle;
* a synchronous paint is sent to achieve this
*/
- void RecordLayoutData( vcl::ControlLayoutData* pLayout, const Rectangle& rRect );
+ void RecordLayoutData( vcl::ControlLayoutData* pLayout, const Rectangle& rRect );
// Setzen und Abfragen fuer das Toolkit
VCLXWindow* GetWindowPeer() const;
@@ -1057,11 +1057,11 @@ public:
BOOL IsCreatedWithToolkit() const;
void SetCreatedWithToolkit( BOOL b );
- Window* GetLabelFor() const;
- Window* GetLabeledBy() const;
- virtual Window* GetParentLabelFor( const Window* pLabel ) const;
- virtual Window* GetParentLabeledBy( const Window* pLabeled ) const;
- KeyEvent GetActivationKey() const;
+ Window* GetLabelFor() const;
+ Window* GetLabeledBy() const;
+ virtual Window* GetParentLabelFor( const Window* pLabel ) const;
+ virtual Window* GetParentLabeledBy( const Window* pLabeled ) const;
+ KeyEvent GetActivationKey() const;
// Drag and Drop interfaces
virtual ::com::sun::star::uno::Reference< ::com::sun::star::datatransfer::dnd::XDropTarget > GetDropTarget();
@@ -1087,7 +1087,7 @@ public:
// a helper method for a Control's Draw method
void PaintToDevice( OutputDevice* pDevice, const Point& rPos, const Size& rSize );
-
+
/* mark Window for deletion in top of event queue
*/
void doLazyDelete();
diff --git a/vcl/inc/vcl/wintypes.hxx b/vcl/inc/vcl/wintypes.hxx
index 55de8b4fb5be..2252ff9d2e4e 100644
--- a/vcl/inc/vcl/wintypes.hxx
+++ b/vcl/inc/vcl/wintypes.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/inc/vcl/wrkwin.hxx b/vcl/inc/vcl/wrkwin.hxx
index 50c1cf60dbb7..c188e30cd170 100644
--- a/vcl/inc/vcl/wrkwin.hxx
+++ b/vcl/inc/vcl/wrkwin.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -97,13 +97,13 @@ public:
BOOL IsMinimized() const;
- BOOL SetPluginParent( SystemParentData* pParent );
+ BOOL SetPluginParent( SystemParentData* pParent );
void Minimize();
void Restore();
- void Maximize( BOOL bMaximize = TRUE );
- BOOL IsMaximized() const;
+ void Maximize( BOOL bMaximize = TRUE );
+ BOOL IsMaximized() const;
};
#endif // _SV_WRKWIN_HXX
diff --git a/vcl/inc/vcl/xconnection.hxx b/vcl/inc/vcl/xconnection.hxx
index 1c4c5dd45140..c8faa3bbb659 100644
--- a/vcl/inc/vcl/xconnection.hxx
+++ b/vcl/inc/vcl/xconnection.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,12 +43,12 @@ namespace vcl {
class DisplayConnection :
public ::cppu::WeakImplHelper1< ::com::sun::star::awt::XDisplayConnection >
{
- ::osl::Mutex m_aMutex;
+ ::osl::Mutex m_aMutex;
::std::list< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XEventHandler > >
m_aHandlers;
::std::list< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XEventHandler > >
m_aErrorHandlers;
- ::com::sun::star::uno::Any m_aAny;
+ ::com::sun::star::uno::Any m_aAny;
public:
DisplayConnection();
virtual ~DisplayConnection();
diff --git a/vcl/os2/inc/salbmp.h b/vcl/os2/inc/salbmp.h
index 50ba652c051b..5b40fa564b79 100644
--- a/vcl/os2/inc/salbmp.h
+++ b/vcl/os2/inc/salbmp.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,8 +50,8 @@ class Os2SalBitmap : public SalBitmap
private:
Size maSize;
- HANDLE mhDIB;
- HANDLE mhDIB1Subst;
+ HANDLE mhDIB;
+ HANDLE mhDIB1Subst;
HBITMAP mhDDB;
USHORT mnBitCount;
@@ -59,19 +59,19 @@ public:
HANDLE ImplGethDIB() const { return mhDIB; }
HBITMAP ImplGethDDB() const { return mhDDB; }
- HANDLE ImplGethDIB1Subst() const { return mhDIB1Subst; }
+ HANDLE ImplGethDIB1Subst() const { return mhDIB1Subst; }
- void ImplReplacehDIB1Subst( HANDLE hDIB1Subst );
+ void ImplReplacehDIB1Subst( HANDLE hDIB1Subst );
static HANDLE ImplCreateDIB( const Size& rSize, USHORT nBitCount, const BitmapPalette& rPal );
- static HANDLE ImplCreateDIB4FromDIB1( HANDLE hDIB1 );
+ static HANDLE ImplCreateDIB4FromDIB1( HANDLE hDIB1 );
static HANDLE ImplCopyDIBOrDDB( HANDLE hHdl, BOOL bDIB );
static USHORT ImplGetDIBColorCount( HANDLE hDIB );
static void ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf,
const Size& rSizePixel, BOOL bRLE4 );
//BOOL Create( HANDLE hBitmap, BOOL bDIB, BOOL bCopyHandle );
-
+
public:
Os2SalBitmap();
@@ -89,8 +89,8 @@ public:
//Size GetSize() const { return maSize; }
//USHORT GetBitCount() const { return mnBitCount; }
- //BitmapBuffer* AcquireBuffer( bool bReadOnly );
- //void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
+ //BitmapBuffer* AcquireBuffer( bool bReadOnly );
+ //void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
bool Create( HANDLE hBitmap, bool bDIB, bool bCopyHandle );
virtual bool Create( const Size& rSize, USHORT nBitCount, const BitmapPalette& rPal );
virtual bool Create( const SalBitmap& rSalBmpImpl );
@@ -102,7 +102,7 @@ public:
virtual Size GetSize() const { return maSize; }
virtual USHORT GetBitCount() const { return mnBitCount; }
- virtual BitmapBuffer* AcquireBuffer( bool bReadOnly );
+ virtual BitmapBuffer* AcquireBuffer( bool bReadOnly );
virtual void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
virtual bool GetSystemData( BitmapSystemData& rData );
};
diff --git a/vcl/os2/inc/saldata.hxx b/vcl/os2/inc/saldata.hxx
index 2b2e3f03da7c..347989d9f85a 100644
--- a/vcl/os2/inc/saldata.hxx
+++ b/vcl/os2/inc/saldata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,19 +66,19 @@ typedef APIRET (APIENTRY ImQueryIMModeFunc)( HIMI himi, PULONG pulInputMode, PUL
struct SalIMEData
{
- HMODULE mhModIME;
- ImAssociateInstanceFunc* mpAssocIME;
- ImGetInstanceFunc* mpGetIME;
- ImReleaseInstanceFunc* mpReleaseIME;
- ImSetConversionFontFunc* mpSetConversionFont;
- ImSetConversionFontSizeFunc* mpSetConversionFontSize;
- ImGetConversionStringFunc* mpGetConversionString;
- ImGetResultStringFunc* mpGetResultString;
- ImSetCandidateWindowPosFunc* mpSetCandidateWin;
- ImQueryIMEPropertyFunc* mpQueryIMEProperty;
- ImRequestIMEFunc* mpRequestIME;
- ImSetIMModeFunc* mpSetIMEMode;
- ImQueryIMModeFunc* mpQueryIMEMode;
+ HMODULE mhModIME;
+ ImAssociateInstanceFunc* mpAssocIME;
+ ImGetInstanceFunc* mpGetIME;
+ ImReleaseInstanceFunc* mpReleaseIME;
+ ImSetConversionFontFunc* mpSetConversionFont;
+ ImSetConversionFontSizeFunc* mpSetConversionFontSize;
+ ImGetConversionStringFunc* mpGetConversionString;
+ ImGetResultStringFunc* mpGetResultString;
+ ImSetCandidateWindowPosFunc* mpSetCandidateWin;
+ ImQueryIMEPropertyFunc* mpQueryIMEProperty;
+ ImRequestIMEFunc* mpRequestIME;
+ ImSetIMModeFunc* mpSetIMEMode;
+ ImQueryIMModeFunc* mpQueryIMEMode;
};
#endif
@@ -102,31 +102,31 @@ struct SalIcon
struct SalData
{
- HAB mhAB; // anchor block handle
- HMQ mhMQ; // handle of os2 message queue
- int mnArgc; // commandline param count
- char** mpArgv; // commandline
- ULONG mnNewTimerMS; // Neue Zeit, mit dem der Timer gestartet werden soll
- ULONG mnTimerMS; // Current Time (in MS) of the Timer
- ULONG mnTimerOrgMS; // Current Original Time (in MS)
- ULONG mnNextTimerTime;
- ULONG mnLastEventTime;
- ULONG mnTimerId; // os2 timer id
- BOOL mbInTimerProc; // timer event is currently being dispatched
- //SALTIMERPROC mpTimerProc; // timer callback proc
- HWND mhWantLeaveMsg; // window handle, that want a MOUSELEAVE message
- AutoTimer* mpMouseLeaveTimer; // Timer for MouseLeave Test
- Os2SalInstance* mpFirstInstance; // pointer of first instance
- Os2SalFrame* mpFirstFrame; // pointer of first frame
- Os2SalFrame* mpCreateFrame; // Create-Frame for WM_CREATE
- Os2SalObject* mpFirstObject; // pointer of first object window
- ULONG mnAppThreadId; // Id from Applikation-Thread
- ULONG mnFontMetricCount; // number of entries in the font list
- PFONTMETRICS mpFontMetrics; // cached font list
- BOOL mbObjClassInit; // Ist SALOBJECTCLASS initialised
+ HAB mhAB; // anchor block handle
+ HMQ mhMQ; // handle of os2 message queue
+ int mnArgc; // commandline param count
+ char** mpArgv; // commandline
+ ULONG mnNewTimerMS; // Neue Zeit, mit dem der Timer gestartet werden soll
+ ULONG mnTimerMS; // Current Time (in MS) of the Timer
+ ULONG mnTimerOrgMS; // Current Original Time (in MS)
+ ULONG mnNextTimerTime;
+ ULONG mnLastEventTime;
+ ULONG mnTimerId; // os2 timer id
+ BOOL mbInTimerProc; // timer event is currently being dispatched
+ //SALTIMERPROC mpTimerProc; // timer callback proc
+ HWND mhWantLeaveMsg; // window handle, that want a MOUSELEAVE message
+ AutoTimer* mpMouseLeaveTimer; // Timer for MouseLeave Test
+ Os2SalInstance* mpFirstInstance; // pointer of first instance
+ Os2SalFrame* mpFirstFrame; // pointer of first frame
+ Os2SalFrame* mpCreateFrame; // Create-Frame for WM_CREATE
+ Os2SalObject* mpFirstObject; // pointer of first object window
+ ULONG mnAppThreadId; // Id from Applikation-Thread
+ ULONG mnFontMetricCount; // number of entries in the font list
+ PFONTMETRICS mpFontMetrics; // cached font list
+ BOOL mbObjClassInit; // Ist SALOBJECTCLASS initialised
#ifdef ENABLE_IME
- SalIMEData* mpIMEData; // SalIME-Data
- BOOL mbIMEInit; // SalIME-Data-Init
+ SalIMEData* mpIMEData; // SalIME-Data
+ BOOL mbIMEInit; // SalIME-Data-Init
#endif
SalIcon* mpFirstIcon; // icon cache, points to first icon, NULL if none
@@ -141,15 +141,15 @@ inline SalData* GetAppSalData() { return (SalData*)ImplGetAppSVData()->mpSalData
// - SalShlData -
// --------------
-#define OS2_VER_211 211
-#define OS2_VER_WARP3 230
-#define OS2_VER_WARP4 240
+#define OS2_VER_211 211
+#define OS2_VER_WARP3 230
+#define OS2_VER_WARP4 240
struct SalShlData
{
- HMODULE mhMod; // Module handle of SAL-DLL
- USHORT mnVersion; // 211 = OS2 2.11; 230 = OS2 3.0; 240 = OS2 4.0
- PFNWP mpFrameProc; // old frame proc
+ HMODULE mhMod; // Module handle of SAL-DLL
+ USHORT mnVersion; // 211 = OS2 2.11; 230 = OS2 3.0; 240 = OS2 4.0
+ PFNWP mpFrameProc; // old frame proc
};
extern SalShlData aSalShlData;
@@ -205,46 +205,46 @@ void ImplReleaseSALIMEData();
// - Defines -
// -----------
-#define SAL_PROFILE_APPNAME ((PSZ)"StarOffice")
-#define SAL_PROFILE_USEDJP ((PSZ)"UseDJP")
-#define SAL_PROFILE_PRINTDJP ((PSZ)"PrintDJP")
-#define SAL_PROFILE_PRINTRAW ((PSZ)"PrintRAW")
+#define SAL_PROFILE_APPNAME ((PSZ)"StarOffice")
+#define SAL_PROFILE_USEDJP ((PSZ)"UseDJP")
+#define SAL_PROFILE_PRINTDJP ((PSZ)"PrintDJP")
+#define SAL_PROFILE_PRINTRAW ((PSZ)"PrintRAW")
-#define SAL_FRAME_WNDEXTRA sizeof(ULONG)
-#define SAL_FRAME_THIS 0
-#define SAL_FRAME_CLASSNAME "SALFRAME"
-#define SAL_SUBFRAME_CLASSNAME "SALSUBFRAME"
-#define SAL_OBJECT_WNDEXTRA sizeof(ULONG)
-#define SAL_OBJECT_THIS 0
-#define SAL_OBJECT_CLASSNAME "SALOBJECT"
-#define SAL_OBJECT_CHILDCLASSNAME "SALOBJECTCHILD"
-#define SAL_OBJECT_CLIPCLASSNAME "SALOBJECTCLIP"
-#define SAL_COM_CLASSNAME "SALCOMWND"
+#define SAL_FRAME_WNDEXTRA sizeof(ULONG)
+#define SAL_FRAME_THIS 0
+#define SAL_FRAME_CLASSNAME "SALFRAME"
+#define SAL_SUBFRAME_CLASSNAME "SALSUBFRAME"
+#define SAL_OBJECT_WNDEXTRA sizeof(ULONG)
+#define SAL_OBJECT_THIS 0
+#define SAL_OBJECT_CLASSNAME "SALOBJECT"
+#define SAL_OBJECT_CHILDCLASSNAME "SALOBJECTCHILD"
+#define SAL_OBJECT_CLIPCLASSNAME "SALOBJECTCLIP"
+#define SAL_COM_CLASSNAME "SALCOMWND"
-#define SAL_MOUSELEAVE_TIMEOUT 300
+#define SAL_MOUSELEAVE_TIMEOUT 300
// MP1 == 0; MP2 == pData
-#define SAL_MSG_USEREVENT (WM_USER+111)
+#define SAL_MSG_USEREVENT (WM_USER+111)
// MP1 == 0; MP2 == MousePosition relativ to upper left of screen
-#define SAL_MSG_MOUSELEAVE (WM_USER+112)
+#define SAL_MSG_MOUSELEAVE (WM_USER+112)
// MP1 == hDC; MP2 == 0
-#define SAL_MSG_PRINTABORTJOB (WM_USER+113)
+#define SAL_MSG_PRINTABORTJOB (WM_USER+113)
// MP1 == 0; MP2 == 0
-#define SAL_MSG_STARTTIMER (WM_USER+114)
+#define SAL_MSG_STARTTIMER (WM_USER+114)
// MP1 == nFrameStyle; MP2 == pParent; lResult pFrame
-#define SAL_MSG_CREATEFRAME (WM_USER+115)
+#define SAL_MSG_CREATEFRAME (WM_USER+115)
// MP1 == 0; MP2 == pParent; lResult pObject
-#define SAL_MSG_CREATEOBJECT (WM_USER+116)
+#define SAL_MSG_CREATEOBJECT (WM_USER+116)
// MP1 == bWait; MP2 == pMutex
-#define SAL_MSG_THREADYIELD (WM_USER+117)
+#define SAL_MSG_THREADYIELD (WM_USER+117)
// MP1 == 0; MP2 == 0
-#define SAL_MSG_RELEASEWAITYIELD (WM_USER+118)
+#define SAL_MSG_RELEASEWAITYIELD (WM_USER+118)
// MP1 == 0; MP2 == pData
-#define SAL_MSG_SYSPROCESSMENU (WM_USER+119)
+#define SAL_MSG_SYSPROCESSMENU (WM_USER+119)
// POSTFOCUS-Message; MP1 == nMP1; MP2 == nMP2 (SHORT1( bFocus ), 0)
-#define SAL_MSG_POSTFOCUS (WM_USER+120)
+#define SAL_MSG_POSTFOCUS (WM_USER+120)
// POSTSIZE-Message; MP1 == nMP1; MP2 == nMP2
-#define SAL_MSG_POSTSIZE (WM_USER+121)
+#define SAL_MSG_POSTSIZE (WM_USER+121)
// wParam == wParam; lParam == lParam
#define SAL_MSG_POSTMOVE (WM_USER+136)
@@ -256,9 +256,9 @@ void ImplReleaseSALIMEData();
#define SAL_MSG_SHOW (WM_USER+143)
// SysChild-ToTop; nMP1 = 0; nMP2 = 0
-#define SALOBJ_MSG_TOTOP (WM_USER+150)
+#define SALOBJ_MSG_TOTOP (WM_USER+150)
// POSTFOCUS-Message; MP1 == nMP1; MP2 == nMP2 (SHORT1( bFocus ), 0)
-#define SALOBJ_MSG_POSTFOCUS (WM_USER+151)
+#define SALOBJ_MSG_POSTFOCUS (WM_USER+151)
// wParam == 0; lParam == 0
#define SAL_MSG_DESTROYFRAME (WM_USER+160)
@@ -276,7 +276,7 @@ void ImplReleaseSALIMEData();
#define SAL_MSG_RECREATEHWND (WM_USER+166)
// wParam == newParentHwnd; lParam == oldHwnd; lResult == newhWnd
#define SAL_MSG_RECREATECHILDHWND (WM_USER+167)
-// wParam == 0; lParam == HWND;
+// wParam == 0; lParam == HWND;
#define SAL_MSG_DESTROYHWND (WM_USER+168)
// POSTTIMER-Message; wparam = 0, lParam == time
#define SAL_MSG_POSTTIMER (WM_USER+169)
@@ -305,6 +305,6 @@ inline Os2SalObject* GetSalObjWindowPtr( HWND hWnd )
return (Os2SalObject*)WinQueryWindowULong( hWnd, SAL_OBJECT_THIS );
}
-#endif // _SV_SALDATA_HXX
+#endif // _SV_SALDATA_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/os2/inc/salframe.h b/vcl/os2/inc/salframe.h
index cd3d910a7d30..2098050d1481 100644
--- a/vcl/os2/inc/salframe.h
+++ b/vcl/os2/inc/salframe.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,28 +61,28 @@ class Os2SalGraphics;
class Os2SalFrame : public SalFrame
{
public:
- HWND mhWndFrame; // HWND-Frame
- HWND mhWndClient; // HWND-Client
- HAB mhAB; // HAB
- HPOINTER mhPointer; // Current MousePointer
- void* mpInst; // VCL-Instance
- //SALFRAMEPROC mpProc; // VCL-Proc
- Os2SalGraphics* mpGraphics; // current frame graphics
- Os2SalFrame* mpNextFrame; // pointer to next frame
- SystemEnvData maSysData; // system data
- SalFrameState maState; // frame state
+ HWND mhWndFrame; // HWND-Frame
+ HWND mhWndClient; // HWND-Client
+ HAB mhAB; // HAB
+ HPOINTER mhPointer; // Current MousePointer
+ void* mpInst; // VCL-Instance
+ //SALFRAMEPROC mpProc; // VCL-Proc
+ Os2SalGraphics* mpGraphics; // current frame graphics
+ Os2SalFrame* mpNextFrame; // pointer to next frame
+ SystemEnvData maSysData; // system data
+ SalFrameState maState; // frame state
int mnShowState; // show state
- ULONG mnStyle; // SalFrameStyle
- long mnWidth; // Window-Witdth
- long mnHeight; // Window-Height
- SWP maFullScreenRect; // WindowRect befor FullScreenMode
- BOOL mbGraphics; // is Graphics used
- BOOL mbAllwayOnTop; // Allways on top modus
- BOOL mbVisible; // Visible Show/Hide-Status
- BOOL mbMinHide; // hide called from OS2
- BOOL mbHandleIME; // TRUE: Wir handeln die IME-Messages
- BOOL mbConversionMode; // TRUE: Wir befinden uns im Conversion-Modus
- BOOL mbCandidateMode; // TRUE: Wir befinden uns im Candidate-Modus
+ ULONG mnStyle; // SalFrameStyle
+ long mnWidth; // Window-Witdth
+ long mnHeight; // Window-Height
+ SWP maFullScreenRect; // WindowRect befor FullScreenMode
+ BOOL mbGraphics; // is Graphics used
+ BOOL mbAllwayOnTop; // Allways on top modus
+ BOOL mbVisible; // Visible Show/Hide-Status
+ BOOL mbMinHide; // hide called from OS2
+ BOOL mbHandleIME; // TRUE: Wir handeln die IME-Messages
+ BOOL mbConversionMode; // TRUE: Wir befinden uns im Conversion-Modus
+ BOOL mbCandidateMode; // TRUE: Wir befinden uns im Candidate-Modus
BOOL mbCaption; // has window a caption
BOOL mbBorder; // has window a border
BOOL mbFixBorder; // has window a fixed border
@@ -108,62 +108,62 @@ public:
static BOOL mbInReparent; // TRUE: ignore focus lost and gain due to reparenting
private:
- Os2SalFrame* mpParentFrame; // parent frame pointer
+ Os2SalFrame* mpParentFrame; // parent frame pointer
public:
Os2SalFrame();
virtual ~Os2SalFrame();
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL PostEvent( void* pData );
- virtual void SetTitle( const XubString& rTitle );
- virtual void SetIcon( USHORT nIcon );
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual BOOL PostEvent( void* pData );
+ virtual void SetTitle( const XubString& rTitle );
+ virtual void SetIcon( USHORT nIcon );
virtual void SetMenu( SalMenu* pSalMenu );
virtual void DrawMenuBar();
virtual void SetExtendedFrameStyle( SalExtStyle nExtStyle );
- virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
- virtual void Enable( BOOL bEnable );
+ virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
+ virtual void Enable( BOOL bEnable );
virtual void SetMinClientSize( long nWidth, long nHeight );
virtual void SetMaxClientSize( long nWidth, long nHeight );
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
- virtual void GetClientSize( long& rWidth, long& rHeight );
- virtual void GetWorkArea( RECTL& rRect );
- virtual void GetWorkArea( Rectangle& rRect );
- virtual SalFrame* GetParent() const;
- virtual void SetWindowState( const SalFrameState* pState );
- virtual BOOL GetWindowState( SalFrameState* pState );
- virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
- virtual void StartPresentation( BOOL bStart );
- virtual void SetAlwaysOnTop( BOOL bOnTop );
- virtual void ToTop( USHORT nFlags );
- virtual void SetPointer( PointerStyle ePointerStyle );
- virtual void CaptureMouse( BOOL bMouse );
- virtual void SetPointerPos( long nX, long nY );
- virtual void Flush();
- virtual void Sync();
- virtual void SetInputContext( SalInputContext* pContext );
- virtual void EndExtTextInput( USHORT nFlags );
- virtual String GetKeyName( USHORT nKeyCode );
- virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
+ virtual void GetClientSize( long& rWidth, long& rHeight );
+ virtual void GetWorkArea( RECTL& rRect );
+ virtual void GetWorkArea( Rectangle& rRect );
+ virtual SalFrame* GetParent() const;
+ virtual void SetWindowState( const SalFrameState* pState );
+ virtual BOOL GetWindowState( SalFrameState* pState );
+ virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
+ virtual void StartPresentation( BOOL bStart );
+ virtual void SetAlwaysOnTop( BOOL bOnTop );
+ virtual void ToTop( USHORT nFlags );
+ virtual void SetPointer( PointerStyle ePointerStyle );
+ virtual void CaptureMouse( BOOL bMouse );
+ virtual void SetPointerPos( long nX, long nY );
+ virtual void Flush();
+ virtual void Sync();
+ virtual void SetInputContext( SalInputContext* pContext );
+ virtual void EndExtTextInput( USHORT nFlags );
+ virtual String GetKeyName( USHORT nKeyCode );
+ virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
virtual BOOL MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
- virtual LanguageType GetInputLanguage();
- virtual SalBitmap* SnapShot();
- virtual void UpdateSettings( AllSettings& rSettings );
- virtual void Beep( SoundType eSoundType );
- virtual const SystemEnvData* GetSystemData() const;
- virtual SalPointerState GetPointerState();
+ virtual LanguageType GetInputLanguage();
+ virtual SalBitmap* SnapShot();
+ virtual void UpdateSettings( AllSettings& rSettings );
+ virtual void Beep( SoundType eSoundType );
+ virtual const SystemEnvData* GetSystemData() const;
+ virtual SalPointerState GetPointerState();
virtual SalIndicatorState GetIndicatorState();
virtual void SimulateKeyPress( USHORT nKeyCode );
- virtual void SetParent( SalFrame* pNewParent );
- virtual bool SetPluginParent( SystemParentData* pNewParent );
+ virtual void SetParent( SalFrame* pNewParent );
+ virtual bool SetPluginParent( SystemParentData* pNewParent );
virtual void SetBackgroundBitmap( SalBitmap* );
virtual void SetScreenNumber( unsigned int );
virtual void SetApplicationID( const rtl::OUString &rApplicationID );
- virtual void ResetClipRegion();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
+ virtual void ResetClipRegion();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
};
diff --git a/vcl/os2/inc/salgdi.h b/vcl/os2/inc/salgdi.h
index a3991a80125f..621451d18178 100644
--- a/vcl/os2/inc/salgdi.h
+++ b/vcl/os2/inc/salgdi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -119,137 +119,137 @@ public:
class Os2SalGraphics : public SalGraphics
{
public:
- HPS mhPS; // HPS
- HDC mhDC; // HDC
- HWND mhWnd; // HWND
- LONG mnHeight; // Height of frame Window
- ULONG mnClipElementCount; // number of clip rects in clip rect array
- RECTL* mpClipRectlAry; // clip rect array
- ULONG mnFontMetricCount; // number of entries in the font list
- PFONTMETRICS mpFontMetrics; // cached font list
- LONG mnOrientationX; // X-Font orientation
- LONG mnOrientationY; // Y-Font orientation
- BOOL mbLine; // draw lines
- BOOL mbFill; // fill areas
- BOOL mbPrinter; // is Printer
- BOOL mbVirDev; // is VirDev
- BOOL mbWindow; // is Window
- BOOL mbScreen; // is Screen compatible
- bool mbXORMode; // _every_ output with RasterOp XOR
- ULONG mhFonts[ MAX_FALLBACK ]; // Font + Fallbacks
- const ImplOs2FontData* mpOs2FontData[ MAX_FALLBACK ]; // pointer to the most recent font face
- ImplOs2FontEntry* mpOs2FontEntry[ MAX_FALLBACK ]; // pointer to the most recent font instance
- ULONG mhDefFont; // DefaultFont
- float mfFontScale; // allows metrics emulation of huge font sizes
- BOOL mbFontKernInit; // FALSE: FontKerns must be queried
- KERNINGPAIRS* mpFontKernPairs; // Kerning Pairs of the current Font
- ULONG mnFontKernPairCount;// Number of Kerning Pairs of the current Font
-
- USHORT ImplDoSetFont( ImplFontSelectData* i_pFont, float& o_rFontScale, int );
+ HPS mhPS; // HPS
+ HDC mhDC; // HDC
+ HWND mhWnd; // HWND
+ LONG mnHeight; // Height of frame Window
+ ULONG mnClipElementCount; // number of clip rects in clip rect array
+ RECTL* mpClipRectlAry; // clip rect array
+ ULONG mnFontMetricCount; // number of entries in the font list
+ PFONTMETRICS mpFontMetrics; // cached font list
+ LONG mnOrientationX; // X-Font orientation
+ LONG mnOrientationY; // Y-Font orientation
+ BOOL mbLine; // draw lines
+ BOOL mbFill; // fill areas
+ BOOL mbPrinter; // is Printer
+ BOOL mbVirDev; // is VirDev
+ BOOL mbWindow; // is Window
+ BOOL mbScreen; // is Screen compatible
+ bool mbXORMode; // _every_ output with RasterOp XOR
+ ULONG mhFonts[ MAX_FALLBACK ]; // Font + Fallbacks
+ const ImplOs2FontData* mpOs2FontData[ MAX_FALLBACK ]; // pointer to the most recent font face
+ ImplOs2FontEntry* mpOs2FontEntry[ MAX_FALLBACK ]; // pointer to the most recent font instance
+ ULONG mhDefFont; // DefaultFont
+ float mfFontScale; // allows metrics emulation of huge font sizes
+ BOOL mbFontKernInit; // FALSE: FontKerns must be queried
+ KERNINGPAIRS* mpFontKernPairs; // Kerning Pairs of the current Font
+ ULONG mnFontKernPairCount;// Number of Kerning Pairs of the current Font
+
+ USHORT ImplDoSetFont( ImplFontSelectData* i_pFont, float& o_rFontScale, int );
public:
Os2SalGraphics();
virtual ~Os2SalGraphics();
protected:
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
// draw --> LineColor and FillColor and RasterOp and ClipRegion
- virtual void drawPixel( long nX, long nY );
- virtual void drawPixel( long nX, long nY, SalColor nSalColor );
- virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
- virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
- virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolyPolygon( ULONG nPoly, const ULONG* pPoints, PCONSTSALPOINT* pPtAry );
+ virtual void drawPixel( long nX, long nY );
+ virtual void drawPixel( long nX, long nY, SalColor nSalColor );
+ virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
+ virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
+ virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolyPolygon( ULONG nPoly, const ULONG* pPoints, PCONSTSALPOINT* pPtAry );
virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
virtual bool drawPolyLine( const ::basegfx::B2DPolygon&, double fTransparency, const ::basegfx::B2DVector& rLineWidth, basegfx::B2DLineJoin );
- virtual sal_Bool drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
- virtual sal_Bool drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
- virtual sal_Bool drawPolyPolygonBezier( ULONG nPoly, const ULONG* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );
+ virtual sal_Bool drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
+ virtual sal_Bool drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
+ virtual sal_Bool drawPolyPolygonBezier( ULONG nPoly, const ULONG* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );
// CopyArea --> No RasterOp, but ClipRegion
- virtual void copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
+ virtual void copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
long nSrcHeight, USHORT nFlags );
// CopyBits and DrawBitmap --> RasterOp and ClipRegion
// CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
- virtual void copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
- virtual void drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
+ virtual void drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap );
- virtual void drawMask( const SalTwoRect* pPosAry,
+ virtual void drawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor );
- virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
- virtual SalColor getPixel( long nX, long nY );
+ virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
+ virtual SalColor getPixel( long nX, long nY );
// invert --> ClipRegion (only Windows or VirDevs)
- virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
- virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
+ virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
+ virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
- virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
+ virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
- virtual bool drawAlphaBitmap( const SalTwoRect&,
+ virtual bool drawAlphaBitmap( const SalTwoRect&,
const SalBitmap& rSourceBitmap,
const SalBitmap& rAlphaBitmap );
- virtual bool drawAlphaRect( long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency );
+ virtual bool drawAlphaRect( long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency );
public:
// public SalGraphics methods, the interface to teh independent vcl part
// get device resolution
- virtual void GetResolution( long& rDPIX, long& rDPIY );
+ virtual void GetResolution( long& rDPIX, long& rDPIY );
// get the depth of the device
- virtual USHORT GetBitCount();
+ virtual USHORT GetBitCount();
// get the width of the device
- virtual long GetGraphicsWidth() const;
+ virtual long GetGraphicsWidth() const;
// set the clip region to empty
- virtual void ResetClipRegion();
+ virtual void ResetClipRegion();
// begin setting the clip region, add rectangles to the
// region with the UnionClipRegion call
- virtual void BeginSetClipRegion( ULONG nCount );
+ virtual void BeginSetClipRegion( ULONG nCount );
// all rectangles were added and the clip region should be set now
- virtual void EndSetClipRegion();
+ virtual void EndSetClipRegion();
// set the line color to transparent (= don't draw lines)
- virtual void SetLineColor();
+ virtual void SetLineColor();
// set the line color to a specific color
- virtual void SetLineColor( SalColor nSalColor );
+ virtual void SetLineColor( SalColor nSalColor );
// set the fill color to transparent (= don't fill)
- virtual void SetFillColor();
+ virtual void SetFillColor();
// set the fill color to a specific color, shapes will be
// filled accordingly
- virtual void SetFillColor( SalColor nSalColor );
+ virtual void SetFillColor( SalColor nSalColor );
// enable/disable XOR drawing
- virtual void SetXORMode( bool bSet, bool );
+ virtual void SetXORMode( bool bSet, bool );
// set line color for raster operations
- virtual void SetROPLineColor( SalROPColor nROPColor );
+ virtual void SetROPLineColor( SalROPColor nROPColor );
// set fill color for raster operations
- virtual void SetROPFillColor( SalROPColor nROPColor );
+ virtual void SetROPFillColor( SalROPColor nROPColor );
// set the text color to a specific color
- virtual void SetTextColor( SalColor nSalColor );
+ virtual void SetTextColor( SalColor nSalColor );
// set the font
virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel );
// get the current font's etrics
- virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
+ virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
// get kernign pairs of the current font
// return only PairCount if (pKernPairs == NULL)
- virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
+ virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
// get the repertoire of the current font
virtual ImplFontCharMap* GetImplFontCharMap() const;
// graphics must fill supplied font list
- virtual void GetDevFontList( ImplDevFontList* );
+ virtual void GetDevFontList( ImplDevFontList* );
// graphics should call ImplAddDevFontSubstitute on supplied
// OutputDevice for all its device specific preferred font substitutions
- virtual void GetDevFontSubstList( OutputDevice* );
- virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
+ virtual void GetDevFontSubstList( OutputDevice* );
+ virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
// CreateFontSubset: a method to get a subset of glyhps of a font
// inside a new valid font file
// returns TRUE if creation of subset was successfull
@@ -262,7 +262,7 @@ public:
// rInfo: additional outgoing information
// implementation note: encoding 0 with glyph id 0 should be added implicitly
// as "undefined character"
- virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
+ virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
const ImplFontData* pFont,
long* pGlyphIDs,
sal_uInt8* pEncoding,
@@ -287,13 +287,13 @@ public:
// pWidths MUST support at least 256 members;
// rInfo: additional outgoing information
// pDataLen: out parameter, contains the byte length of the returned buffer
- virtual const void* GetEmbedFontData( const ImplFontData*,
+ virtual const void* GetEmbedFontData( const ImplFontData*,
const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
long* pDataLen );
// frees the font data again
- virtual void FreeEmbedFontData( const void* pData, long nDataLen );
+ virtual void FreeEmbedFontData( const void* pData, long nDataLen );
virtual void GetGlyphWidths( const ImplFontData* pFont,
bool bVertical,
@@ -304,7 +304,7 @@ public:
virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
- virtual void DrawServerFontLayout( const ServerFontLayout& );
+ virtual void DrawServerFontLayout( const ServerFontLayout& );
virtual bool supportsOperation( OutDevSupportType ) const;
// Query the platform layer for control support
@@ -322,11 +322,11 @@ void ImplSalDeInitGraphics( Os2SalGraphics* mpData );
// - Defines -
// -----------
-#define RGBCOLOR(r,g,b) ((ULONG)(((BYTE)(b)|((USHORT)(g)<<8))|(((ULONG)(BYTE)(r))<<16)))
-#define TY( y ) (mnHeight-(y)-1)
+#define RGBCOLOR(r,g,b) ((ULONG)(((BYTE)(b)|((USHORT)(g)<<8))|(((ULONG)(BYTE)(r))<<16)))
+#define TY( y ) (mnHeight-(y)-1)
// offset for lcid field, used for fallback font selection
-#define LCID_BASE 100
+#define LCID_BASE 100
// -----------
// - Inlines -
diff --git a/vcl/os2/inc/salids.hrc b/vcl/os2/inc/salids.hrc
index b5f2260d307f..7a8dcc8c0568 100644
--- a/vcl/os2/inc/salids.hrc
+++ b/vcl/os2/inc/salids.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,74 +29,74 @@
#define _SV_SALIDS_HRC
// Pointer
-#define SAL_RESID_POINTER_NULL 10000
-#define SAL_RESID_POINTER_HELP 10001
-#define SAL_RESID_POINTER_CROSS 10002
-#define SAL_RESID_POINTER_MOVE 10003
-#define SAL_RESID_POINTER_HSPLIT 10004
-#define SAL_RESID_POINTER_VSPLIT 10005
-#define SAL_RESID_POINTER_HSIZEBAR 10006
-#define SAL_RESID_POINTER_VSIZEBAR 10007
-#define SAL_RESID_POINTER_HAND 10008
-#define SAL_RESID_POINTER_REFHAND 10009
-#define SAL_RESID_POINTER_PEN 10010
-#define SAL_RESID_POINTER_MAGNIFY 10011
-#define SAL_RESID_POINTER_FILL 10012
-#define SAL_RESID_POINTER_ROTATE 10013
-#define SAL_RESID_POINTER_HSHEAR 10014
-#define SAL_RESID_POINTER_VSHEAR 10015
-#define SAL_RESID_POINTER_MIRROR 10016
-#define SAL_RESID_POINTER_CROOK 10017
-#define SAL_RESID_POINTER_CROP 10018
-#define SAL_RESID_POINTER_MOVEPOINT 10019
-#define SAL_RESID_POINTER_MOVEBEZIERWEIGHT 10020
-#define SAL_RESID_POINTER_MOVEDATA 10021
-#define SAL_RESID_POINTER_COPYDATA 10022
-#define SAL_RESID_POINTER_LINKDATA 10023
-#define SAL_RESID_POINTER_MOVEDATALINK 10024
-#define SAL_RESID_POINTER_COPYDATALINK 10025
-#define SAL_RESID_POINTER_MOVEFILE 10026
-#define SAL_RESID_POINTER_COPYFILE 10027
-#define SAL_RESID_POINTER_LINKFILE 10028
-#define SAL_RESID_POINTER_MOVEFILELINK 10029
-#define SAL_RESID_POINTER_COPYFILELINK 10030
-#define SAL_RESID_POINTER_MOVEFILES 10031
-#define SAL_RESID_POINTER_COPYFILES 10032
-#define SAL_RESID_POINTER_DRAW_LINE 10033
-#define SAL_RESID_POINTER_DRAW_RECT 10034
-#define SAL_RESID_POINTER_DRAW_POLYGON 10035
-#define SAL_RESID_POINTER_DRAW_BEZIER 10036
-#define SAL_RESID_POINTER_DRAW_ARC 10037
-#define SAL_RESID_POINTER_DRAW_PIE 10038
-#define SAL_RESID_POINTER_DRAW_CIRCLECUT 10039
-#define SAL_RESID_POINTER_DRAW_ELLIPSE 10040
-#define SAL_RESID_POINTER_DRAW_FREEHAND 10041
-#define SAL_RESID_POINTER_DRAW_CONNECT 10042
-#define SAL_RESID_POINTER_DRAW_TEXT 10043
-#define SAL_RESID_POINTER_DRAW_CAPTION 10044
-#define SAL_RESID_POINTER_CHART 10045
-#define SAL_RESID_POINTER_DETECTIVE 10046
-#define SAL_RESID_POINTER_PIVOT_COL 10047
-#define SAL_RESID_POINTER_PIVOT_ROW 10048
-#define SAL_RESID_POINTER_PIVOT_FIELD 10049
-#define SAL_RESID_POINTER_CHAIN 10050
-#define SAL_RESID_POINTER_CHAIN_NOTALLOWED 10051
-#define SAL_RESID_POINTER_TIMEEVENT_MOVE 10052
-#define SAL_RESID_POINTER_TIMEEVENT_SIZE 10053
-#define SAL_RESID_POINTER_AUTOSCROLL_N 10054
-#define SAL_RESID_POINTER_AUTOSCROLL_S 10055
-#define SAL_RESID_POINTER_AUTOSCROLL_W 10056
-#define SAL_RESID_POINTER_AUTOSCROLL_E 10057
-#define SAL_RESID_POINTER_AUTOSCROLL_NW 10058
-#define SAL_RESID_POINTER_AUTOSCROLL_NE 10059
-#define SAL_RESID_POINTER_AUTOSCROLL_SW 10060
-#define SAL_RESID_POINTER_AUTOSCROLL_SE 10061
-#define SAL_RESID_POINTER_AUTOSCROLL_NS 10062
-#define SAL_RESID_POINTER_AUTOSCROLL_WE 10063
-#define SAL_RESID_POINTER_AUTOSCROLL_NSWE 10064
+#define SAL_RESID_POINTER_NULL 10000
+#define SAL_RESID_POINTER_HELP 10001
+#define SAL_RESID_POINTER_CROSS 10002
+#define SAL_RESID_POINTER_MOVE 10003
+#define SAL_RESID_POINTER_HSPLIT 10004
+#define SAL_RESID_POINTER_VSPLIT 10005
+#define SAL_RESID_POINTER_HSIZEBAR 10006
+#define SAL_RESID_POINTER_VSIZEBAR 10007
+#define SAL_RESID_POINTER_HAND 10008
+#define SAL_RESID_POINTER_REFHAND 10009
+#define SAL_RESID_POINTER_PEN 10010
+#define SAL_RESID_POINTER_MAGNIFY 10011
+#define SAL_RESID_POINTER_FILL 10012
+#define SAL_RESID_POINTER_ROTATE 10013
+#define SAL_RESID_POINTER_HSHEAR 10014
+#define SAL_RESID_POINTER_VSHEAR 10015
+#define SAL_RESID_POINTER_MIRROR 10016
+#define SAL_RESID_POINTER_CROOK 10017
+#define SAL_RESID_POINTER_CROP 10018
+#define SAL_RESID_POINTER_MOVEPOINT 10019
+#define SAL_RESID_POINTER_MOVEBEZIERWEIGHT 10020
+#define SAL_RESID_POINTER_MOVEDATA 10021
+#define SAL_RESID_POINTER_COPYDATA 10022
+#define SAL_RESID_POINTER_LINKDATA 10023
+#define SAL_RESID_POINTER_MOVEDATALINK 10024
+#define SAL_RESID_POINTER_COPYDATALINK 10025
+#define SAL_RESID_POINTER_MOVEFILE 10026
+#define SAL_RESID_POINTER_COPYFILE 10027
+#define SAL_RESID_POINTER_LINKFILE 10028
+#define SAL_RESID_POINTER_MOVEFILELINK 10029
+#define SAL_RESID_POINTER_COPYFILELINK 10030
+#define SAL_RESID_POINTER_MOVEFILES 10031
+#define SAL_RESID_POINTER_COPYFILES 10032
+#define SAL_RESID_POINTER_DRAW_LINE 10033
+#define SAL_RESID_POINTER_DRAW_RECT 10034
+#define SAL_RESID_POINTER_DRAW_POLYGON 10035
+#define SAL_RESID_POINTER_DRAW_BEZIER 10036
+#define SAL_RESID_POINTER_DRAW_ARC 10037
+#define SAL_RESID_POINTER_DRAW_PIE 10038
+#define SAL_RESID_POINTER_DRAW_CIRCLECUT 10039
+#define SAL_RESID_POINTER_DRAW_ELLIPSE 10040
+#define SAL_RESID_POINTER_DRAW_FREEHAND 10041
+#define SAL_RESID_POINTER_DRAW_CONNECT 10042
+#define SAL_RESID_POINTER_DRAW_TEXT 10043
+#define SAL_RESID_POINTER_DRAW_CAPTION 10044
+#define SAL_RESID_POINTER_CHART 10045
+#define SAL_RESID_POINTER_DETECTIVE 10046
+#define SAL_RESID_POINTER_PIVOT_COL 10047
+#define SAL_RESID_POINTER_PIVOT_ROW 10048
+#define SAL_RESID_POINTER_PIVOT_FIELD 10049
+#define SAL_RESID_POINTER_CHAIN 10050
+#define SAL_RESID_POINTER_CHAIN_NOTALLOWED 10051
+#define SAL_RESID_POINTER_TIMEEVENT_MOVE 10052
+#define SAL_RESID_POINTER_TIMEEVENT_SIZE 10053
+#define SAL_RESID_POINTER_AUTOSCROLL_N 10054
+#define SAL_RESID_POINTER_AUTOSCROLL_S 10055
+#define SAL_RESID_POINTER_AUTOSCROLL_W 10056
+#define SAL_RESID_POINTER_AUTOSCROLL_E 10057
+#define SAL_RESID_POINTER_AUTOSCROLL_NW 10058
+#define SAL_RESID_POINTER_AUTOSCROLL_NE 10059
+#define SAL_RESID_POINTER_AUTOSCROLL_SW 10060
+#define SAL_RESID_POINTER_AUTOSCROLL_SE 10061
+#define SAL_RESID_POINTER_AUTOSCROLL_NS 10062
+#define SAL_RESID_POINTER_AUTOSCROLL_WE 10063
+#define SAL_RESID_POINTER_AUTOSCROLL_NSWE 10064
#define SAL_RESID_POINTER_AIRBRUSH 10070
-#define SAL_RESID_POINTER_TEXT_VERTICAL 10071
-#define SAL_RESID_POINTER_PIVOT_DELETE 10072
+#define SAL_RESID_POINTER_TEXT_VERTICAL 10071
+#define SAL_RESID_POINTER_PIVOT_DELETE 10072
#define SAL_RESID_POINTER_TAB_SELECT_S 10073
#define SAL_RESID_POINTER_TAB_SELECT_E 10074
#define SAL_RESID_POINTER_TAB_SELECT_SE 10075
@@ -104,6 +104,6 @@
#define SAL_RESID_POINTER_TAB_SELECT_SW 10077
#define SAL_RESID_POINTER_PAINTBRUSH 10078
-#define SAL_RESID_ICON_DEFAULT 1
+#define SAL_RESID_ICON_DEFAULT 1
#endif // _SV_SALIDS_HRC
diff --git a/vcl/os2/inc/salinst.h b/vcl/os2/inc/salinst.h
index c533c0b8339c..aec53974e1f6 100644
--- a/vcl/os2/inc/salinst.h
+++ b/vcl/os2/inc/salinst.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,61 +39,61 @@
class SalYieldMutex;
-#define SAL_COMMANDLINENOINIT ((USHORT)0xFFFF)
-#define SAL_MAXPARAM 40
+#define SAL_COMMANDLINENOINIT ((USHORT)0xFFFF)
+#define SAL_MAXPARAM 40
class Os2SalInstance : public SalInstance
{
public:
- HAB mhAB; // anchor block handle
- HMQ mhMQ; // handle of os2 message queue
- HPOINTER mhAppIcon; // app icon
- int mnArgc; // commandline param count
- char** mpArgv; // commandline
- HWND mhComWnd; // window, for communication (between threads and the main thread)
- SalYieldMutex* mpSalYieldMutex; // Sal-Yield-Mutex
+ HAB mhAB; // anchor block handle
+ HMQ mhMQ; // handle of os2 message queue
+ HPOINTER mhAppIcon; // app icon
+ int mnArgc; // commandline param count
+ char** mpArgv; // commandline
+ HWND mhComWnd; // window, for communication (between threads and the main thread)
+ SalYieldMutex* mpSalYieldMutex; // Sal-Yield-Mutex
osl::Mutex* mpSalWaitMutex; // Sal-Wait-Mutex
- USHORT mnYieldWaitCount; // Wait-Count
+ USHORT mnYieldWaitCount; // Wait-Count
public:
Os2SalInstance();
virtual ~Os2SalInstance();
- virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
- virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
- virtual void DestroyFrame( SalFrame* pFrame );
- virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
- virtual void DestroyObject( SalObject* pObject );
- virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
+ virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
+ virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
+ virtual void DestroyFrame( SalFrame* pFrame );
+ virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
+ virtual void DestroyObject( SalObject* pObject );
+ virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
long nDX, long nDY,
USHORT nBitCount, const SystemGraphicsData *pData );
- virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
+ virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
- virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
+ virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData );
- virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
- virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
- virtual void DestroyPrinter( SalPrinter* pPrinter );
- virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
- virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
- virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
+ virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
+ virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
+ virtual void DestroyPrinter( SalPrinter* pPrinter );
+ virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
+ virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
+ virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
virtual String GetDefaultPrinter();
- virtual SalTimer* CreateSalTimer();
- virtual SalI18NImeStatus* CreateI18NImeStatus();
- virtual SalSystem* CreateSalSystem();
- virtual SalBitmap* CreateSalBitmap();
+ virtual SalTimer* CreateSalTimer();
+ virtual SalI18NImeStatus* CreateI18NImeStatus();
+ virtual SalSystem* CreateSalSystem();
+ virtual SalBitmap* CreateSalBitmap();
virtual osl::SolarMutex* GetYieldMutex();
- virtual ULONG ReleaseYieldMutex();
- virtual void AcquireYieldMutex( ULONG nCount );
- virtual void Yield( bool, bool );
- virtual bool AnyInput( USHORT nType );
- virtual SalMenu* CreateMenu( BOOL bMenuBar );
- virtual void DestroyMenu( SalMenu* );
- virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
- virtual void DestroyMenuItem( SalMenuItem* );
+ virtual ULONG ReleaseYieldMutex();
+ virtual void AcquireYieldMutex( ULONG nCount );
+ virtual void Yield( bool, bool );
+ virtual bool AnyInput( USHORT nType );
+ virtual SalMenu* CreateMenu( BOOL bMenuBar );
+ virtual void DestroyMenu( SalMenu* );
+ virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
+ virtual void DestroyMenuItem( SalMenuItem* );
virtual SalSession* CreateSalSession();
- virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
- virtual void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
+ virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+ virtual void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
};
SalFrame* ImplSalCreateFrame( Os2SalInstance* pInst, HWND hWndParent, ULONG nSalFrameStyle );
diff --git a/vcl/os2/inc/sallang.hxx b/vcl/os2/inc/sallang.hxx
index f9122cf2b3a4..05025044f021 100644
--- a/vcl/os2/inc/sallang.hxx
+++ b/vcl/os2/inc/sallang.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,28 +36,28 @@
// --------------------
// --- Key-Namen ---
-#define LSTR_KEY_SHIFT 0
-#define LSTR_KEY_CTRL 1
-#define LSTR_KEY_ALT 2
-#define LSTR_KEY_UP 3
-#define LSTR_KEY_DOWN 4
-#define LSTR_KEY_LEFT 5
-#define LSTR_KEY_RIGHT 6
-#define LSTR_KEY_HOME 7
-#define LSTR_KEY_END 8
-#define LSTR_KEY_PAGEUP 9
-#define LSTR_KEY_PAGEDOWN 10
-#define LSTR_KEY_RETURN 11
-#define LSTR_KEY_ESC 12
-#define LSTR_KEY_TAB 13
-#define LSTR_KEY_BACKSPACE 14
-#define LSTR_KEY_SPACE 15
-#define LSTR_KEY_INSERT 16
-#define LSTR_KEY_DELETE 17
+#define LSTR_KEY_SHIFT 0
+#define LSTR_KEY_CTRL 1
+#define LSTR_KEY_ALT 2
+#define LSTR_KEY_UP 3
+#define LSTR_KEY_DOWN 4
+#define LSTR_KEY_LEFT 5
+#define LSTR_KEY_RIGHT 6
+#define LSTR_KEY_HOME 7
+#define LSTR_KEY_END 8
+#define LSTR_KEY_PAGEUP 9
+#define LSTR_KEY_PAGEDOWN 10
+#define LSTR_KEY_RETURN 11
+#define LSTR_KEY_ESC 12
+#define LSTR_KEY_TAB 13
+#define LSTR_KEY_BACKSPACE 14
+#define LSTR_KEY_SPACE 15
+#define LSTR_KEY_INSERT 16
+#define LSTR_KEY_DELETE 17
// --- Anzahl der Texte ---
-#define LSTR_COUNT 18
+#define LSTR_COUNT 18
// --------------------------------------------
// - Methoden zum Abfragen der Sprach-Strings -
diff --git a/vcl/os2/inc/sallayout.h b/vcl/os2/inc/sallayout.h
index d08c36420405..d8bd3c4eae41 100644
--- a/vcl/os2/inc/sallayout.h
+++ b/vcl/os2/inc/sallayout.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/os2/inc/salmenu.h b/vcl/os2/inc/salmenu.h
index 8c46b638f063..d87384326219 100644
--- a/vcl/os2/inc/salmenu.h
+++ b/vcl/os2/inc/salmenu.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/os2/inc/salobj.h b/vcl/os2/inc/salobj.h
index fc4a1c027159..2712a1f2371e 100644
--- a/vcl/os2/inc/salobj.h
+++ b/vcl/os2/inc/salobj.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,32 +39,32 @@
class Os2SalObject : public SalObject
{
public:
- HWND mhWnd; // Window handle
- HWND mhWndChild; // Child Window handle
- HWND mhLastFocusWnd; // Child-Window, welches als letztes den Focus hatte
- SystemChildData maSysData; // SystemEnvData
- HWND mhLastClipWnd; // LastClip-Window
- HWND mhOldLastClipWnd; // LastClip-Window befor BeginSetClipRegion
- long mnHeight; // Fenster-Hoehe fuer Positionsumrechnung
- Os2SalObject* mpNextObject; // pointer to next object
- void* mpInst; // instance handle for callback
- SALOBJECTPROC mpProc; // callback proc
+ HWND mhWnd; // Window handle
+ HWND mhWndChild; // Child Window handle
+ HWND mhLastFocusWnd; // Child-Window, welches als letztes den Focus hatte
+ SystemChildData maSysData; // SystemEnvData
+ HWND mhLastClipWnd; // LastClip-Window
+ HWND mhOldLastClipWnd; // LastClip-Window befor BeginSetClipRegion
+ long mnHeight; // Fenster-Hoehe fuer Positionsumrechnung
+ Os2SalObject* mpNextObject; // pointer to next object
+ void* mpInst; // instance handle for callback
+ SALOBJECTPROC mpProc; // callback proc
Os2SalObject();
virtual ~Os2SalObject();
- virtual void ResetClipRegion();
- virtual USHORT GetClipRegionType();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
- virtual void Show( BOOL bVisible );
- virtual void Enable( BOOL nEnable );
- virtual void GrabFocus();
- virtual void SetBackground();
- virtual void SetBackground( SalColor nSalColor );
- virtual const SystemEnvData* GetSystemData() const;
+ virtual void ResetClipRegion();
+ virtual USHORT GetClipRegionType();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
+ virtual void Show( BOOL bVisible );
+ virtual void Enable( BOOL nEnable );
+ virtual void GrabFocus();
+ virtual void SetBackground();
+ virtual void SetBackground( SalColor nSalColor );
+ virtual const SystemEnvData* GetSystemData() const;
};
#endif // _SV_SALOBJ_H
diff --git a/vcl/os2/inc/salprn.h b/vcl/os2/inc/salprn.h
index 1bcd47465aab..9f66d240cc9e 100644
--- a/vcl/os2/inc/salprn.h
+++ b/vcl/os2/inc/salprn.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,39 +48,39 @@ typedef ImplTrayInfo* PIMPLTRAYINFO;
class Os2SalInfoPrinter : public SalInfoPrinter
{
public:
- Os2SalGraphics* mpGraphics; // Graphics
- HDC mhDC; // printer hdc
- HPS mhPS; // printer hps
- ByteString maPrinterName; // pszPrinters
- ByteString maName; // pszName bzw. LogAdress
- ByteString maDriverName; // pszDriverName nach .
- ByteString maDeviceName; // pszDriverName bis .
- ByteString maJobSetupDeviceName; // DeviceName aus pDriverData
- PIMPLFORMINFO* mpFormArray; // PaperForm-Names
- USHORT mnFormCount; // PaperForm-Count
- PIMPLTRAYINFO* mpTrayArray; // PaperTray-Names
- USHORT mnTrayCount; // PaperTray-Count
- BOOL mbDJPSupported; // is driver DJP enabled
- BOOL mbGraphics; // is Graphics used
+ Os2SalGraphics* mpGraphics; // Graphics
+ HDC mhDC; // printer hdc
+ HPS mhPS; // printer hps
+ ByteString maPrinterName; // pszPrinters
+ ByteString maName; // pszName bzw. LogAdress
+ ByteString maDriverName; // pszDriverName nach .
+ ByteString maDeviceName; // pszDriverName bis .
+ ByteString maJobSetupDeviceName; // DeviceName aus pDriverData
+ PIMPLFORMINFO* mpFormArray; // PaperForm-Names
+ USHORT mnFormCount; // PaperForm-Count
+ PIMPLTRAYINFO* mpTrayArray; // PaperTray-Names
+ USHORT mnTrayCount; // PaperTray-Count
+ BOOL mbDJPSupported; // is driver DJP enabled
+ BOOL mbGraphics; // is Graphics used
public:
Os2SalInfoPrinter();
virtual ~Os2SalInfoPrinter();
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
- virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
- virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData );
- virtual void GetPageInfo( const ImplJobSetup* pSetupData,
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
+ virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
+ virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData );
+ virtual void GetPageInfo( const ImplJobSetup* pSetupData,
long& rOutWidth, long& rOutHeight,
long& rPageOffX, long& rPageOffY,
long& rPageWidth, long& rPageHeight );
- virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
- virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData );
- virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
- virtual void InitPaperFormats( const ImplJobSetup* pSetupData );
- virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData );
+ virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
+ virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData );
+ virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
+ virtual void InitPaperFormats( const ImplJobSetup* pSetupData );
+ virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData );
};
// ------------------
@@ -90,16 +90,16 @@ public:
class SalPrinterData00
{
public:
- Os2SalGraphics* mpGraphics; // current Printer graphics
- SalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter
- HDC mhDC; // printer hdc
- HPS mhPS; // printer hps
- ULONG mnError; // Error Code
- BOOL mbFirstPage; // IsFirstPage
- BOOL mbAbort; // JobAborted
- BOOL mbPrintDJPSupported; // is driver PrintDJP enabled (DEVESC_NEWFRAME_WPROP)
- char maCommentBuf[33]; // Comment
- char maCopyBuf[10]; // Kopien
+ Os2SalGraphics* mpGraphics; // current Printer graphics
+ SalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter
+ HDC mhDC; // printer hdc
+ HPS mhPS; // printer hps
+ ULONG mnError; // Error Code
+ BOOL mbFirstPage; // IsFirstPage
+ BOOL mbAbort; // JobAborted
+ BOOL mbPrintDJPSupported; // is driver PrintDJP enabled (DEVESC_NEWFRAME_WPROP)
+ char maCommentBuf[33]; // Comment
+ char maCopyBuf[10]; // Kopien
};
// -----------------
@@ -109,39 +109,39 @@ public:
class Os2SalPrinter : public SalPrinter
{
public:
- Os2SalGraphics* mpGraphics; // current Printer graphics
- Os2SalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter
- Os2SalPrinter* mpNextPrinter; // next printing printer
- HDC mhDC; // printer hdc
- HPS mhPS; // printer hps
- ULONG mnError; // Error Code
- BOOL mbFirstPage; // IsFirstPage
- BOOL mbAbort; // JobAborted
- BOOL mbPrintDJPSupported; // is driver PrintDJP enabled (DEVESC_NEWFRAME_WPROP)
- char maCommentBuf[33]; // Comment
- char maCopyBuf[16]; // Kopien
- //HDC mhDC; // printer hdc
- //ULONG mnError; // Error Code
- //ULONG mnCopies; // Kopien
- //BOOL mbCollate; // Sortierte Kopien
- //BOOL mbAbort; // Job Aborted
+ Os2SalGraphics* mpGraphics; // current Printer graphics
+ Os2SalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter
+ Os2SalPrinter* mpNextPrinter; // next printing printer
+ HDC mhDC; // printer hdc
+ HPS mhPS; // printer hps
+ ULONG mnError; // Error Code
+ BOOL mbFirstPage; // IsFirstPage
+ BOOL mbAbort; // JobAborted
+ BOOL mbPrintDJPSupported; // is driver PrintDJP enabled (DEVESC_NEWFRAME_WPROP)
+ char maCommentBuf[33]; // Comment
+ char maCopyBuf[16]; // Kopien
+ //HDC mhDC; // printer hdc
+ //ULONG mnError; // Error Code
+ //ULONG mnCopies; // Kopien
+ //BOOL mbCollate; // Sortierte Kopien
+ //BOOL mbAbort; // Job Aborted
public:
Os2SalPrinter();
virtual ~Os2SalPrinter();
- virtual BOOL StartJob( const XubString* pFileName,
+ virtual BOOL StartJob( const XubString* pFileName,
const XubString& rJobName,
const XubString& rAppName,
ULONG nCopies,
bool bCollate,
bool bDirect,
ImplJobSetup* pSetupData );
- virtual BOOL EndJob();
- virtual BOOL AbortJob();
- virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData );
- virtual BOOL EndPage();
- virtual ULONG GetErrorCode();
+ virtual BOOL EndJob();
+ virtual BOOL AbortJob();
+ virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData );
+ virtual BOOL EndPage();
+ virtual ULONG GetErrorCode();
};
#endif // _SV_SALPRN_H
diff --git a/vcl/os2/inc/salsound.h b/vcl/os2/inc/salsound.h
index 2445bbe3c1a0..27a7a9aa1aff 100644
--- a/vcl/os2/inc/salsound.h
+++ b/vcl/os2/inc/salsound.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,50 +46,50 @@
class Os2SalSound : public SalSound
{
private:
-
- static HMODULE mhMCILib;
- static ULONG mnSoundState;
- static void* mpMCIFnc;
- SALSOUNDPROC mpProc;
- void* mpInst;
- ULONG mnStartTime;
- ULONG mnPlayLen;
- HWND mhSoundWnd;
- USHORT mnDeviceId;
- BOOL mbLoop;
- BOOL mbPaused;
+
+ static HMODULE mhMCILib;
+ static ULONG mnSoundState;
+ static void* mpMCIFnc;
+ SALSOUNDPROC mpProc;
+ void* mpInst;
+ ULONG mnStartTime;
+ ULONG mnPlayLen;
+ HWND mhSoundWnd;
+ USHORT mnDeviceId;
+ BOOL mbLoop;
+ BOOL mbPaused;
public:
void ImplSetError( ULONG nMciErr );
- void ImplNotify( SoundNotification eNotification, ULONG nError );
+ void ImplNotify( SoundNotification eNotification, ULONG nError );
-public:
+public:
- BOOL Create();
- //static BOOL IsValid() { return( SOUND_STATE_VALID == Os2SalSound::mnSoundState ); }
- //BOOL Init( SalFrame* pFrame, const String& rSoundName, ULONG& rSoundLen );
- //BOOL Init( SalFrame* pFrame, const BYTE* pSound, ULONG nDataLen, ULONG& rSoundLen );
+ BOOL Create();
+ //static BOOL IsValid() { return( SOUND_STATE_VALID == Os2SalSound::mnSoundState ); }
+ //BOOL Init( SalFrame* pFrame, const String& rSoundName, ULONG& rSoundLen );
+ //BOOL Init( SalFrame* pFrame, const BYTE* pSound, ULONG nDataLen, ULONG& rSoundLen );
- void SetNotifyProc( void* pInst, SALSOUNDPROC pProc )
+ void SetNotifyProc( void* pInst, SALSOUNDPROC pProc )
{ mpInst = pInst; mpProc = pProc; }
public:
Os2SalSound();
virtual ~Os2SalSound();
+
+ virtual bool IsValid();
+ virtual bool Init( const String& rSoundName, ULONG& rSoundLen );
+ virtual void Play( ULONG nStartTime, ULONG nPlayTime, bool bLoop );
+ virtual void Stop();
+ virtual void Pause();
+ virtual void Continue();
+ virtual bool IsLoopMode() const;
+ virtual bool IsPlaying() const;
+ virtual bool IsPaused() const;
- virtual bool IsValid();
- virtual bool Init( const String& rSoundName, ULONG& rSoundLen );
- virtual void Play( ULONG nStartTime, ULONG nPlayTime, bool bLoop );
- virtual void Stop();
- virtual void Pause();
- virtual void Continue();
- virtual bool IsLoopMode() const;
- virtual bool IsPlaying() const;
- virtual bool IsPaused() const;
-
- bool ImplCreate();
- void ImplDestroy();
- static void Release();
+ bool ImplCreate();
+ void ImplDestroy();
+ static void Release();
};
#endif // _SV_SALSOUND_H
diff --git a/vcl/os2/inc/salsound.hxx b/vcl/os2/inc/salsound.hxx
index e46e3e666a2c..3007a861b1f0 100644
--- a/vcl/os2/inc/salsound.hxx
+++ b/vcl/os2/inc/salsound.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,40 +43,40 @@
class SalSound
{
private:
-
- static HMODULE mhMCILib;
- static ULONG mnSoundState;
- static void* mpMCIFnc;
- SALSOUNDPROC mpProc;
- void* mpInst;
- ULONG mnStartTime;
- ULONG mnPlayLen;
- HWND mhSoundWnd;
- USHORT mnDeviceId;
- BOOL mbLoop;
- BOOL mbPaused;
+
+ static HMODULE mhMCILib;
+ static ULONG mnSoundState;
+ static void* mpMCIFnc;
+ SALSOUNDPROC mpProc;
+ void* mpInst;
+ ULONG mnStartTime;
+ ULONG mnPlayLen;
+ HWND mhSoundWnd;
+ USHORT mnDeviceId;
+ BOOL mbLoop;
+ BOOL mbPaused;
public:
void ImplSetError( ULONG nMciErr );
- void ImplNotify( SoundNotification eNotification, ULONG nError );
-
-public:
+ void ImplNotify( SoundNotification eNotification, ULONG nError );
+public:
+
SalSound();
~SalSound();
- BOOL Create();
- static void Release();
- static BOOL IsValid() { return( SOUND_STATE_VALID == SalSound::mnSoundState ); }
+ BOOL Create();
+ static void Release();
+ static BOOL IsValid() { return( SOUND_STATE_VALID == SalSound::mnSoundState ); }
- BOOL Init( SalFrame* pFrame, const String& rSoundName, ULONG& rSoundLen );
- BOOL Init( SalFrame* pFrame, const BYTE* pSound, ULONG nDataLen, ULONG& rSoundLen );
- void Play( ULONG nStartTime, ULONG nPlayTime, BOOL bLoop );
- void Stop();
- void Pause();
+ BOOL Init( SalFrame* pFrame, const String& rSoundName, ULONG& rSoundLen );
+ BOOL Init( SalFrame* pFrame, const BYTE* pSound, ULONG nDataLen, ULONG& rSoundLen );
+ void Play( ULONG nStartTime, ULONG nPlayTime, BOOL bLoop );
+ void Stop();
+ void Pause();
- void SetNotifyProc( void* pInst, SALSOUNDPROC pProc )
+ void SetNotifyProc( void* pInst, SALSOUNDPROC pProc )
{ mpInst = pInst; mpProc = pProc; }
};
diff --git a/vcl/os2/inc/salsys.h b/vcl/os2/inc/salsys.h
index 24472a4c43d4..ac17c26991c9 100644
--- a/vcl/os2/inc/salsys.h
+++ b/vcl/os2/inc/salsys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/os2/inc/saltimer.h b/vcl/os2/inc/saltimer.h
index de150fcfb10c..09e618bb6613 100644
--- a/vcl/os2/inc/saltimer.h
+++ b/vcl/os2/inc/saltimer.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,8 +38,8 @@ public:
virtual ~Os2SalTimer();
// overload all pure virtual methods
- void Start( ULONG nMS );
- void Stop();
+ void Start( ULONG nMS );
+ void Stop();
};
#endif
diff --git a/vcl/os2/inc/salvd.h b/vcl/os2/inc/salvd.h
index b5250c913c7e..d613215290e9 100644
--- a/vcl/os2/inc/salvd.h
+++ b/vcl/os2/inc/salvd.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,21 +42,21 @@ class Os2SalGraphics;
class Os2SalVirtualDevice : public SalVirtualDevice
{
public:
- HPS mhPS; // HPS
- HDC mhDC; // HDC
- HBITMAP mhBmp; // Memory Bitmap
- HBITMAP mhDefBmp; // Default Bitmap
- Os2SalGraphics* mpGraphics; // current VirDev graphics
- USHORT mnBitCount; // BitCount (0 or 1)
- BOOL mbGraphics; // is Graphics used
+ HPS mhPS; // HPS
+ HDC mhDC; // HDC
+ HBITMAP mhBmp; // Memory Bitmap
+ HBITMAP mhDefBmp; // Default Bitmap
+ Os2SalGraphics* mpGraphics; // current VirDev graphics
+ USHORT mnBitCount; // BitCount (0 or 1)
+ BOOL mbGraphics; // is Graphics used
Os2SalVirtualDevice();
virtual ~Os2SalVirtualDevice();
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
virtual BOOL SetSize( long nNewDX, long nNewDY );
- virtual void GetSize( long& rWidth, long& rHeight );
+ virtual void GetSize( long& rWidth, long& rHeight );
};
// Help-Functions
diff --git a/vcl/os2/inc/svsys.h b/vcl/os2/inc/svsys.h
index 354f53fb6d3a..d87dab98d707 100644
--- a/vcl/os2/inc/svsys.h
+++ b/vcl/os2/inc/svsys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/os2/inc/wingdi.h b/vcl/os2/inc/wingdi.h
index c6cf93964df7..67e508afb89c 100644
--- a/vcl/os2/inc/wingdi.h
+++ b/vcl/os2/inc/wingdi.h
@@ -39,11 +39,11 @@ typedef struct tagTTPOLYGONHEADER
typedef struct
{
- UINT gmBlackBoxX;
- UINT gmBlackBoxY;
- POINT gmptGlyphOrigin;
- SHORT gmCellIncX;
- SHORT gmCellIncY;
+ UINT gmBlackBoxX;
+ UINT gmBlackBoxY;
+ POINT gmptGlyphOrigin;
+ SHORT gmCellIncX;
+ SHORT gmCellIncY;
} GLYPHMETRICS, *LPGLYPHMETRICS;
#define GGO_METRICS 0
diff --git a/vcl/os2/source/app/salinfo.cxx b/vcl/os2/source/app/salinfo.cxx
index 08ca8b031982..3eca27b13b92 100644
--- a/vcl/os2/source/app/salinfo.cxx
+++ b/vcl/os2/source/app/salinfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -131,7 +131,7 @@ int Os2SalSystem::ShowNativeMessageBox(const String& rTitle, const String& rMess
pSVData->mpIntroWindow->Hide();
return WinMessageBox(
- HWND_DESKTOP, HWND_DESKTOP,
+ HWND_DESKTOP, HWND_DESKTOP,
(PSZ)CHAR_POINTER(rMessage),
(PSZ)CHAR_POINTER(rTitle),
0, nFlags);
diff --git a/vcl/os2/source/app/salinst.cxx b/vcl/os2/source/app/salinst.cxx
index 90483bdb3a9b..632263733a46 100644
--- a/vcl/os2/source/app/salinst.cxx
+++ b/vcl/os2/source/app/salinst.cxx
@@ -85,9 +85,9 @@ MRESULT EXPENTRY SalComWndProc( HWND hWnd, ULONG nMsg, MPARAM nMP1, MPARAM nMP2
class SalYieldMutex : public vcl::SolarMutexObject
{
public:
- Os2SalInstance* mpInstData;
- ULONG mnCount;
- ULONG mnThreadId;
+ Os2SalInstance* mpInstData;
+ ULONG mnCount;
+ ULONG mnThreadId;
public:
SalYieldMutex( Os2SalInstance* pInstData );
@@ -96,16 +96,16 @@ public:
virtual void SAL_CALL release();
virtual sal_Bool SAL_CALL tryToAcquire();
- ULONG GetAcquireCount( ULONG nThreadId );
+ ULONG GetAcquireCount( ULONG nThreadId );
};
// -----------------------------------------------------------------------
SalYieldMutex::SalYieldMutex( Os2SalInstance* pInstData )
{
- mpInstData = pInstData;
- mnCount = 0;
- mnThreadId = 0;
+ mpInstData = pInstData;
+ mnCount = 0;
+ mnThreadId = 0;
}
// -----------------------------------------------------------------------
@@ -299,8 +299,8 @@ void ImplSalAcquireYieldMutex( ULONG nCount )
void ImplDbgTestSolarMutex()
{
- SalData* pSalData = GetSalData();
- ULONG nCurThreadId = GetCurrentThreadId();
+ SalData* pSalData = GetSalData();
+ ULONG nCurThreadId = GetCurrentThreadId();
if ( pSalData->mnAppThreadId != nCurThreadId )
{
if ( pSalData->mpFirstInstance )
@@ -404,7 +404,7 @@ printf("DeInitSalMain\n");
SalInstance* CreateSalInstance()
{
- SalData* pSalData = GetSalData();
+ SalData* pSalData = GetSalData();
// determine the os2 version
ULONG nMayor;
@@ -449,12 +449,12 @@ SalInstance* CreateSalInstance()
Os2SalInstance* pInst = new Os2SalInstance;
// init instance (only one instance in this version !!!)
- pSalData->mpFirstInstance = pInst;
- pInst->mhAB = pSalData->mhAB;
- pInst->mhMQ = pSalData->mhMQ;
- pInst->mnArgc = pSalData->mnArgc;
- pInst->mpArgv = pSalData->mpArgv;
- pInst->mhComWnd = hComWnd;
+ pSalData->mpFirstInstance = pInst;
+ pInst->mhAB = pSalData->mhAB;
+ pInst->mhMQ = pSalData->mhMQ;
+ pInst->mnArgc = pSalData->mnArgc;
+ pInst->mpArgv = pSalData->mpArgv;
+ pInst->mhComWnd = hComWnd;
// AppIcon ermitteln
ImplLoadSalIcon( SAL_RESID_ICON_DEFAULT, pInst->mhAppIcon);
@@ -471,7 +471,7 @@ void DestroySalInstance( SalInstance* pInst )
{
SalData* pSalData = GetSalData();
- // (only one instance in this version !!!)
+ // (only one instance in this version !!!)
ImplFreeSalGDI();
#ifdef ENABLE_IME
@@ -491,9 +491,9 @@ void DestroySalInstance( SalInstance* pInst )
Os2SalInstance::Os2SalInstance()
{
- mhComWnd = 0;
- mpSalYieldMutex = new SalYieldMutex( this );
- mpSalWaitMutex = new osl::Mutex;
+ mhComWnd = 0;
+ mpSalYieldMutex = new SalYieldMutex( this );
+ mpSalWaitMutex = new osl::Mutex;
mnYieldWaitCount = 0;
mpSalYieldMutex->acquire();
::tools::SolarMutex::SetSolarMutex( mpSalYieldMutex );
@@ -534,7 +534,7 @@ void Os2SalInstance::AcquireYieldMutex( ULONG nCount )
static void ImplSalYield( BOOL bWait, BOOL bHandleAllCurrentEvents )
{
- QMSG aMsg;
+ QMSG aMsg;
bool bWasMsg = false, bOneEvent = false;
bool bQuit = false;
@@ -579,11 +579,11 @@ static void ImplSalYield( BOOL bWait, BOOL bHandleAllCurrentEvents )
void Os2SalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
{
- SalYieldMutex* pYieldMutex = mpSalYieldMutex;
- SalData* pSalData = GetSalData();
- ULONG nCurThreadId = GetCurrentThreadId();
- ULONG nCount = pYieldMutex->GetAcquireCount( nCurThreadId );
- ULONG n = nCount;
+ SalYieldMutex* pYieldMutex = mpSalYieldMutex;
+ SalData* pSalData = GetSalData();
+ ULONG nCurThreadId = GetCurrentThreadId();
+ ULONG nCount = pYieldMutex->GetAcquireCount( nCurThreadId );
+ ULONG n = nCount;
while ( n )
{
pYieldMutex->release();
@@ -697,7 +697,7 @@ MRESULT EXPENTRY SalComWndProc( HWND hWnd, ULONG nMsg,
bool Os2SalInstance::AnyInput( USHORT nType )
{
SalData* pSalData = GetSalData();
- QMSG aQMSG;
+ QMSG aQMSG;
if ( (nType & (INPUT_ANY)) == INPUT_ANY )
{
@@ -803,8 +803,8 @@ void Os2SalInstance::DestroyObject( SalObject* pObject )
void* Os2SalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes )
{
- rReturnedBytes = 1;
- rReturnedType = AsciiCString;
+ rReturnedBytes = 1;
+ rReturnedType = AsciiCString;
return (void*) "";
}
diff --git a/vcl/os2/source/app/sallang.cxx b/vcl/os2/source/app/sallang.cxx
index b93787013bbb..1701343a634d 100644
--- a/vcl/os2/source/app/sallang.cxx
+++ b/vcl/os2/source/app/sallang.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/os2/source/app/salshl.cxx b/vcl/os2/source/app/salshl.cxx
index de9e64e3a1fb..917f81b37595 100644
--- a/vcl/os2/source/app/salshl.cxx
+++ b/vcl/os2/source/app/salshl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,16 +41,16 @@ static HMODULE mhMod = ImplGetModule();
// =======================================================================
-APIRET APIENTRY DosQueryModFromEIP (HMODULE *phMod, ULONG *pObjNum,
- ULONG BuffLen, PCHAR pBuff, ULONG *pOffset, ULONG Address);
+APIRET APIENTRY DosQueryModFromEIP (HMODULE *phMod, ULONG *pObjNum,
+ ULONG BuffLen, PCHAR pBuff, ULONG *pOffset, ULONG Address);
HMODULE ImplGetModule(void)
{
- HMODULE hMod;
- ULONG ObjNum;
- CHAR Buff[2*_MAX_PATH];
- ULONG Offset;
- APIRET rc;
+ HMODULE hMod;
+ ULONG ObjNum;
+ CHAR Buff[2*_MAX_PATH];
+ ULONG Offset;
+ APIRET rc;
// get module handle (and name)
rc = DosQueryModFromEIP( &hMod, &ObjNum, sizeof( Buff), Buff, &Offset, (ULONG)ImplGetModule);
diff --git a/vcl/os2/source/app/saltimer.cxx b/vcl/os2/source/app/saltimer.cxx
index a27458edd793..c46e954dcfd8 100644
--- a/vcl/os2/source/app/saltimer.cxx
+++ b/vcl/os2/source/app/saltimer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,14 +36,14 @@
// =======================================================================
// Maximale Periode
-#define MAX_SYSPERIOD 65533
-#define IDTIMER 10
+#define MAX_SYSPERIOD 65533
+#define IDTIMER 10
// =======================================================================
void ImplSalStartTimer( ULONG nMS, BOOL bMutex )
{
- SalData* pSalData = GetSalData();
+ SalData* pSalData = GetSalData();
// Periode darf nicht zu gross sein, da OS2 2.11 mit USHORT arbeitet
// Remenber the time of the timer
@@ -91,7 +91,7 @@ void Os2SalTimer::Start( ULONG nMS )
void Os2SalTimer::Stop()
{
- SalData* pSalData = GetSalData();
+ SalData* pSalData = GetSalData();
// Exitstiert ein Timer, dann diesen zerstoeren
if ( pSalData->mnTimerId ) {
diff --git a/vcl/os2/source/gdi/os2layout.cxx b/vcl/os2/source/gdi/os2layout.cxx
index 0d30679bf309..4724c9bb5185 100644
--- a/vcl/os2/source/gdi/os2layout.cxx
+++ b/vcl/os2/source/gdi/os2layout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,7 +74,7 @@ public:
void SetKernData( int, const KERNINGPAIRS* );
int GetKerning( sal_Unicode, sal_Unicode ) const;
private:
- KERNINGPAIRS* mpKerningPairs;
+ KERNINGPAIRS* mpKerningPairs;
int mnKerningPairs;
#endif // GCP_KERN_HACK
@@ -111,8 +111,8 @@ public:
float GetFontScale() const { return mfFontScale; }
protected:
- HPS mhPS; // OS2 device handle
- FATTRS mhFont;
+ HPS mhPS; // OS2 device handle
+ FATTRS mhFont;
int mnBaseAdv; // x-offset relative to Layout origin
float mfFontScale; // allows metrics emulation of huge font sizes
@@ -334,7 +334,7 @@ bool Os2SalLayout::LayoutText( ImplLayoutArgs& rArgs )
nGcpOption |= GCP_USEKERNING;
#endif // GCP_KERN_HACK
- LONG lLcid = Ft2QueryCharSet( mhPS);
+ LONG lLcid = Ft2QueryCharSet( mhPS);
for( i = 0; i < mnGlyphCount; ++i )
mpOutGlyphs[i] = pBidiStr[ i ];
@@ -570,9 +570,9 @@ void Os2SalLayout::DrawText( SalGraphics& rGraphics ) const
if( mnGlyphCount <= 0 )
return;
- Point aPos = GetDrawPosition( Point( mnBaseAdv, 0 ) );
- POINTL aPt;
- APIRET rc;
+ Point aPos = GetDrawPosition( Point( mnBaseAdv, 0 ) );
+ POINTL aPt;
+ APIRET rc;
aPt.x = aPos.X();
aPt.y = static_cast<Os2SalGraphics&>(rGraphics).mnHeight - aPos.Y();
@@ -583,13 +583,13 @@ void Os2SalLayout::DrawText( SalGraphics& rGraphics ) const
// convert to codepage
ByteString str( mpOutGlyphs, gsl_getSystemTextEncoding() );
// gliph size is not recalculated, so it could be wrong!
- rc = Ft2CharStringPosAtA( static_cast<Os2SalGraphics&>(rGraphics).mhPS,
- &aPt, NULL, CHS_VECTOR, mnGlyphCount, (PSZ)str.GetBuffer(),
+ rc = Ft2CharStringPosAtA( static_cast<Os2SalGraphics&>(rGraphics).mhPS,
+ &aPt, NULL, CHS_VECTOR, mnGlyphCount, (PSZ)str.GetBuffer(),
(LONG*)mpGlyphAdvances, 0);
} else {
// try unicode rendering to screen
- rc = Ft2CharStringPosAtW( static_cast<Os2SalGraphics&>(rGraphics).mhPS,
- &aPt, NULL, CHS_VECTOR, mnGlyphCount, (LPWSTR)mpOutGlyphs,
+ rc = Ft2CharStringPosAtW( static_cast<Os2SalGraphics&>(rGraphics).mhPS,
+ &aPt, NULL, CHS_VECTOR, mnGlyphCount, (LPWSTR)mpOutGlyphs,
(LONG*)mpGlyphAdvances, 0);
if (rc == GPI_ERROR) {
// if *W fails, convert to codepage and use *A (fallback to GPI into ft2)
@@ -598,8 +598,8 @@ void Os2SalLayout::DrawText( SalGraphics& rGraphics ) const
debug_printf("Os2SalLayout::DrawText HPS %08x PosAtW failed '%s'!\n",static_cast<Os2SalGraphics&>(rGraphics).mhPS,str.GetBuffer());
#endif
// gliph size is not recalculated, so it could be wrong!
- rc = Ft2CharStringPosAtA( static_cast<Os2SalGraphics&>(rGraphics).mhPS,
- &aPt, NULL, CHS_VECTOR, mnGlyphCount, (PSZ)str.GetBuffer(),
+ rc = Ft2CharStringPosAtA( static_cast<Os2SalGraphics&>(rGraphics).mhPS,
+ &aPt, NULL, CHS_VECTOR, mnGlyphCount, (PSZ)str.GetBuffer(),
(LONG*)mpGlyphAdvances, 0);
}
}
diff --git a/vcl/os2/source/gdi/salbmp.cxx b/vcl/os2/source/gdi/salbmp.cxx
index c6ee24011212..414371847e17 100644
--- a/vcl/os2/source/gdi/salbmp.cxx
+++ b/vcl/os2/source/gdi/salbmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -182,11 +182,11 @@ bool Os2SalBitmap::Create( const SalBitmap& rSSalBmp, SalGraphics* pSGraphics )
if( rSalBmp.mhDIB )
{
- HPS hPS = pGraphics->mhPS;
- HBITMAP hNewDDB;
- BITMAPINFOHEADER2 aInfoHeader;
- const Size aSize( rSalBmp.GetSize() );
- long nFormat[ 2 ];
+ HPS hPS = pGraphics->mhPS;
+ HBITMAP hNewDDB;
+ BITMAPINFOHEADER2 aInfoHeader;
+ const Size aSize( rSalBmp.GetSize() );
+ long nFormat[ 2 ];
memset( &aInfoHeader, 0, sizeof( aInfoHeader ) );
aInfoHeader.cbFix = 16;
@@ -206,8 +206,8 @@ bool Os2SalBitmap::Create( const SalBitmap& rSSalBmp, SalGraphics* pSGraphics )
// BitCount == 1 ist wegen aller moeglichen Treiberfehler nicht moeglich
if( rSalBmp.GetBitCount() == 1 )
{
- HANDLE hTmp = ImplCreateDIB4FromDIB1( rSalBmp.mhDIB );
- PBYTE pBits = (PBYTE) hTmp + *(ULONG*) hTmp + ImplGetDIBColorCount( hTmp ) * sizeof( RGB2 );
+ HANDLE hTmp = ImplCreateDIB4FromDIB1( rSalBmp.mhDIB );
+ PBYTE pBits = (PBYTE) hTmp + *(ULONG*) hTmp + ImplGetDIBColorCount( hTmp ) * sizeof( RGB2 );
hNewDDB = GpiCreateBitmap( hPS, &aInfoHeader, CBM_INIT, pBits, (PBITMAPINFO2) hTmp );
rtl_freeMemory( (void*)hTmp );
@@ -349,16 +349,16 @@ HANDLE Os2SalBitmap::ImplCreateDIB( const Size& rSize, USHORT nBits, const Bitma
if ( rSize.Width() && rSize.Height() && ( nBits == 1 || nBits == 4 || nBits == 8 || nBits == 24 ) )
{
- const ULONG nImageSize = AlignedWidth4Bytes( nBits * rSize.Width() ) * rSize.Height();
- const USHORT nColors = ( nBits <= 8 ) ? ( 1 << nBits ) : 0;
+ const ULONG nImageSize = AlignedWidth4Bytes( nBits * rSize.Width() ) * rSize.Height();
+ const USHORT nColors = ( nBits <= 8 ) ? ( 1 << nBits ) : 0;
hDIB = (HANDLE) rtl_allocateZeroMemory( sizeof( BITMAPINFOHEADER2 ) + nColors * sizeof( RGB2 ) + nImageSize );
if( hDIB )
{
// bitmap infos can be found at the beginning of the memory
- PBITMAPINFO2 pBI = (PBITMAPINFO2) hDIB;
- PBITMAPINFOHEADER2 pBIH = (PBITMAPINFOHEADER2) pBI;
+ PBITMAPINFO2 pBI = (PBITMAPINFO2) hDIB;
+ PBITMAPINFOHEADER2 pBIH = (PBITMAPINFOHEADER2) pBI;
pBIH->cbFix = sizeof( BITMAPINFOHEADER2 );
pBIH->cx = rSize.Width();
diff --git a/vcl/os2/source/gdi/salgdi.cxx b/vcl/os2/source/gdi/salgdi.cxx
index 35930904d1c8..c5fc42c6efa3 100644
--- a/vcl/os2/source/gdi/salgdi.cxx
+++ b/vcl/os2/source/gdi/salgdi.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@
// -----------
// ClipRegions funktionieren immer noch nicht auf allen getesteten Druckern
-#define SAL_PRINTER_CLIPPATH 1
+#define SAL_PRINTER_CLIPPATH 1
// #define SAL_PRINTER_POLYPATH 1
// =======================================================================
@@ -61,7 +61,7 @@ void ImplInitSalGDI()
void ImplFreeSalGDI()
{
- SalData* pSalData = GetSalData();
+ SalData* pSalData = GetSalData();
// delete icon cache
SalIcon* pIcon = pSalData->mpFirstIcon;
@@ -101,19 +101,19 @@ Os2SalGraphics::Os2SalGraphics()
mfFontScale = 1.0;
- mhPS = 0;
- mhDC = 0;
- mbLine = FALSE;
- mbFill = FALSE;
- mbXORMode = FALSE;
- mnFontMetricCount = 0;
- mpFontMetrics = NULL;
- mpClipRectlAry = NULL;
+ mhPS = 0;
+ mhDC = 0;
+ mbLine = FALSE;
+ mbFill = FALSE;
+ mbXORMode = FALSE;
+ mnFontMetricCount = 0;
+ mpFontMetrics = NULL;
+ mpClipRectlAry = NULL;
- mhDefFont = 0;
- mpFontKernPairs = NULL;
- mnFontKernPairCount = 0;
- mbFontKernInit = FALSE;
+ mhDefFont = 0;
+ mpFontKernPairs = NULL;
+ mnFontKernPairCount = 0;
+ mbFontKernInit = FALSE;
}
@@ -218,7 +218,7 @@ void Os2SalGraphics::ResetClipRegion()
void Os2SalGraphics::BeginSetClipRegion( ULONG nCount )
{
- mpClipRectlAry = new RECTL[ nCount ];
+ mpClipRectlAry = new RECTL[ nCount ];
mnClipElementCount = 0;
}
@@ -493,11 +493,11 @@ void Os2SalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight )
void Os2SalGraphics::drawPolyLine( ULONG nPoints, const SalPoint* pPtAry )
{
// convert all points to sys orientation
- POINTL* pOS2PtAry = new POINTL[ nPoints ];
- POINTL* pTempOS2PtAry = pOS2PtAry;
- const SalPoint* pTempPtAry = pPtAry;
- ULONG nTempPoints = nPoints;
- long nHeight = mnHeight - 1;
+ POINTL* pOS2PtAry = new POINTL[ nPoints ];
+ POINTL* pTempOS2PtAry = pOS2PtAry;
+ const SalPoint* pTempPtAry = pPtAry;
+ ULONG nTempPoints = nPoints;
+ long nHeight = mnHeight - 1;
while( nTempPoints-- )
{
@@ -523,10 +523,10 @@ void Os2SalGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
aPolygon.ulPoints = nPoints;
// convert all points to sys orientation
- POINTL* pTempOS2PtAry = aPolygon.aPointl;
- const SalPoint* pTempPtAry = pPtAry;
- ULONG nTempPoints = nPoints;
- long nHeight = mnHeight - 1;
+ POINTL* pTempOS2PtAry = aPolygon.aPointl;
+ const SalPoint* pTempPtAry = pPtAry;
+ ULONG nTempPoints = nPoints;
+ long nHeight = mnHeight - 1;
while( nTempPoints-- )
{
@@ -585,9 +585,9 @@ void Os2SalGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
void Os2SalGraphics::drawPolyPolygon( ULONG nPoly, const ULONG* pPoints,
PCONSTSALPOINT* pPtAry )
{
- ULONG i;
- long nHeight = mnHeight - 1;
- PM_POLYGON* aPolygonAry = new PM_POLYGON[ nPoly ];
+ ULONG i;
+ long nHeight = mnHeight - 1;
+ PM_POLYGON* aPolygonAry = new PM_POLYGON[ nPoly ];
for( i = 0; i < nPoly; i++ )
{
@@ -670,7 +670,7 @@ bool Os2SalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double /
bool Os2SalGraphics::drawPolyLine(
const basegfx::B2DPolygon& /*rPolygon*/,
double /*fTransparency*/,
- const basegfx::B2DVector& /*rLineWidths*/,
+ const basegfx::B2DVector& /*rLineWidths*/,
basegfx::B2DLineJoin /*eLineJoin*/)
{
// TODO: implement
@@ -702,15 +702,15 @@ sal_Bool Os2SalGraphics::drawPolyPolygonBezier( ULONG nPoly, const ULONG* pPoint
// =======================================================================
// MAXIMUM BUFSIZE EQ 0xFFFF
-#define POSTSCRIPT_BUFSIZE 0x4000
+#define POSTSCRIPT_BUFSIZE 0x4000
// we only try to get the BoundingBox in the first 4096 bytes
-#define POSTSCRIPT_BOUNDINGSEARCH 0x1000
+#define POSTSCRIPT_BOUNDINGSEARCH 0x1000
static BYTE* ImplSearchEntry( BYTE* pSource, BYTE* pDest, ULONG nComp, ULONG nSize )
{
while ( nComp-- >= nSize )
{
- ULONG i;
+ ULONG i;
for ( i = 0; i < nSize; i++ )
{
if ( ( pSource[i]&~0x20 ) != ( pDest[i]&~0x20 ) )
@@ -726,7 +726,7 @@ static BYTE* ImplSearchEntry( BYTE* pSource, BYTE* pDest, ULONG nComp, ULONG nSi
static BOOL ImplGetBoundingBox( double* nNumb, BYTE* pSource, ULONG nSize )
{
- BOOL bRetValue = FALSE;
+ BOOL bRetValue = FALSE;
BYTE* pDest = ImplSearchEntry( pSource, (BYTE*)"%%BoundingBox:", nSize, 14 );
if ( pDest )
{
@@ -735,15 +735,15 @@ static BOOL ImplGetBoundingBox( double* nNumb, BYTE* pSource, ULONG nSize )
int nSizeLeft = nSize - ( pDest - pSource );
if ( nSizeLeft > 100 )
- nSizeLeft = 100; // only 100 bytes following the bounding box will be checked
+ nSizeLeft = 100; // only 100 bytes following the bounding box will be checked
int i;
for ( i = 0; ( i < 4 ) && nSizeLeft; i++ )
{
- int nDivision = 1;
- BOOL bDivision = FALSE;
- BOOL bNegative = FALSE;
- BOOL bValid = TRUE;
+ int nDivision = 1;
+ BOOL bDivision = FALSE;
+ BOOL bNegative = FALSE;
+ BOOL bValid = TRUE;
while ( ( --nSizeLeft ) && ( *pDest == ' ' ) || ( *pDest == 0x9 ) ) pDest++;
BYTE nByte = *pDest;
@@ -762,7 +762,7 @@ static BOOL ImplGetBoundingBox( double* nNumb, BYTE* pSource, ULONG nSize )
break;
default :
if ( ( nByte < '0' ) || ( nByte > '9' ) )
- nSizeLeft = 1; // error parsing the bounding box values
+ nSizeLeft = 1; // error parsing the bounding box values
else if ( bValid )
{
if ( bDivision )
@@ -797,18 +797,18 @@ BOOL Os2SalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
if ( !mbPrinter )
return FALSE;
- BOOL bRet = FALSE;
- LONG nLong = 0;
+ BOOL bRet = FALSE;
+ LONG nLong = 0;
if ( !(DevQueryCaps( mhDC, CAPS_TECHNOLOGY, 1, &nLong ) &&
(CAPS_TECH_POSTSCRIPT == nLong)) )
return FALSE;
- BYTE* pBuf = new BYTE[ POSTSCRIPT_BUFSIZE ];
- double nBoundingBox[4];
+ BYTE* pBuf = new BYTE[ POSTSCRIPT_BUFSIZE ];
+ double nBoundingBox[4];
if ( pBuf && ImplGetBoundingBox( nBoundingBox, (BYTE*)pPtr, nSize ) )
{
- LONG pOS2DXAry[4]; // hack -> print always 2 white space
+ LONG pOS2DXAry[4]; // hack -> print always 2 white space
POINTL aPt;
aPt.x = 0;
aPt.y = 0;
@@ -818,7 +818,7 @@ BOOL Os2SalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
Ft2CharStringPosAt( mhPS, &aPt, NULL, 0, 2, (PCH)pStr,(PLONG)&pOS2DXAry[0] );
OStringBuffer aBuf( POSTSCRIPT_BUFSIZE );
-
+
// reserve place for a USHORT
aBuf.append( "aa" );
@@ -858,7 +858,7 @@ BOOL Os2SalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
//Escape ( mhDC, nEscape, aBuf.getLength(), (LPTSTR)aBuf.getStr(), 0 );
DevEscape( mhDC, DEVESC_RAWDATA, aBuf.getLength(),
(PBYTE)aBuf.getStr(), 0, NULL );
-
+
double dM11 = nWidth / ( nBoundingBox[2] - nBoundingBox[0] );
double dM22 = - ( nHeight / (nBoundingBox[1] - nBoundingBox[3] ) );
@@ -899,7 +899,7 @@ BOOL Os2SalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
if ( DevEscape( mhDC, DEVESC_RAWDATA, 9, (PBYTE)pBuf,
0, NULL ) == DEV_OK ) bRet = TRUE;
}
-
+
// #107797# Write out EPS encapsulation footer
// ----------------------------------------------------------------------------------
// reserve a USHORT again
@@ -912,7 +912,7 @@ BOOL Os2SalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
DevEscape( mhDC, DEVESC_RAWDATA, aBuf.getLength(),
(PBYTE)aBuf.getStr(), 0, NULL );
bRet = TRUE;
-
+
}
}
delete [] pBuf;
diff --git a/vcl/os2/source/gdi/salgdi2.cxx b/vcl/os2/source/gdi/salgdi2.cxx
index 2ab59b8a3c46..6dd54a15e384 100644
--- a/vcl/os2/source/gdi/salgdi2.cxx
+++ b/vcl/os2/source/gdi/salgdi2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ BOOL bFastTransparent = FALSE;
// -----------
#define RGBCOLOR( r, g, b ) ((ULONG)(((BYTE)(b)|((USHORT)(g)<<8))|(((ULONG)(BYTE)(r))<<16)))
-#define TY( y ) (mnHeight-(y)-1)
+#define TY( y ) (mnHeight-(y)-1)
// ---------------
// - SalGraphics -
@@ -63,9 +63,9 @@ bool Os2SalGraphics::supportsOperation( OutDevSupportType ) const
void Os2SalGraphics::copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics )
{
- HPS hSrcPS;
- POINTL thePoints[4];
- long nSrcHeight;
+ HPS hSrcPS;
+ POINTL thePoints[4];
+ long nSrcHeight;
if ( pSrcGraphics )
{
@@ -132,39 +132,39 @@ void Os2SalGraphics::copyArea( long nDestX, long nDestY,
if ( (nFlags & SAL_COPYAREA_WINDOWINVALIDATE) && mbWindow )
{
// Overlap-Bereich berechnen und invalidieren
- Point aVCLSrcPos( nSrcX, nSrcY );
- Size aVCLSrcSize( nSrcWidth, nSrcHeight );
- Rectangle aVCLSrcRect( aVCLSrcPos, aVCLSrcSize );
- Rectangle aVCLClipRect;
- SWP aSWP;
+ Point aVCLSrcPos( nSrcX, nSrcY );
+ Size aVCLSrcSize( nSrcWidth, nSrcHeight );
+ Rectangle aVCLSrcRect( aVCLSrcPos, aVCLSrcSize );
+ Rectangle aVCLClipRect;
+ SWP aSWP;
WinQueryWindowPos( mhWnd, &aSWP );
- aVCLClipRect.Right() = aSWP.cx-1;
- aVCLClipRect.Bottom() = aSWP.cy-1;
+ aVCLClipRect.Right() = aSWP.cx-1;
+ aVCLClipRect.Bottom() = aSWP.cy-1;
if ( !aVCLSrcRect.Intersection( aVCLClipRect ).IsEmpty() )
{
- RECTL aSrcRect;
- RECTL aTempRect;
- HRGN hInvalidateRgn;
- HRGN hTempRgn;
- HWND hWnd;
- long nRgnType;
-
- long nVCLScrHeight = aVCLSrcRect.GetHeight();
- aSrcRect.xLeft = aVCLSrcRect.Left();
- aSrcRect.yBottom = TY( aVCLSrcRect.Top()+nVCLScrHeight-1 );
- aSrcRect.xRight = aSrcRect.xLeft+aVCLSrcRect.GetWidth();
- aSrcRect.yTop = aSrcRect.yBottom+nVCLScrHeight;
+ RECTL aSrcRect;
+ RECTL aTempRect;
+ HRGN hInvalidateRgn;
+ HRGN hTempRgn;
+ HWND hWnd;
+ long nRgnType;
+
+ long nVCLScrHeight = aVCLSrcRect.GetHeight();
+ aSrcRect.xLeft = aVCLSrcRect.Left();
+ aSrcRect.yBottom = TY( aVCLSrcRect.Top()+nVCLScrHeight-1 );
+ aSrcRect.xRight = aSrcRect.xLeft+aVCLSrcRect.GetWidth();
+ aSrcRect.yTop = aSrcRect.yBottom+nVCLScrHeight;
// Rechteck in Screen-Koordinaaten umrechnen
- POINTL aPt;
- long nScreenDX = WinQuerySysValue( HWND_DESKTOP, SV_CXSCREEN );
- long nScreenDY = WinQuerySysValue( HWND_DESKTOP, SV_CYSCREEN );
+ POINTL aPt;
+ long nScreenDX = WinQuerySysValue( HWND_DESKTOP, SV_CXSCREEN );
+ long nScreenDY = WinQuerySysValue( HWND_DESKTOP, SV_CYSCREEN );
aPt.x = 0;
aPt.y = 0;
WinMapWindowPoints( mhWnd, HWND_DESKTOP, &aPt, 1 );
- aSrcRect.xLeft += aPt.x;
- aSrcRect.yTop += aPt.y;
+ aSrcRect.xLeft += aPt.x;
+ aSrcRect.yTop += aPt.y;
aSrcRect.xRight += aPt.x;
aSrcRect.yBottom += aPt.y;
hInvalidateRgn = 0;
@@ -173,10 +173,10 @@ void Os2SalGraphics::copyArea( long nDestX, long nDestY,
{
if ( !hInvalidateRgn )
hInvalidateRgn = GpiCreateRegion( mhPS, 1, &aSrcRect );
- aTempRect.xLeft = -31999;
- aTempRect.yBottom = 0;
- aTempRect.xRight = 0;
- aTempRect.yTop = 31999;
+ aTempRect.xLeft = -31999;
+ aTempRect.yBottom = 0;
+ aTempRect.xRight = 0;
+ aTempRect.yTop = 31999;
hTempRgn = GpiCreateRegion( mhPS, 1, &aTempRect );
GpiCombineRegion( mhPS, hInvalidateRgn, hInvalidateRgn, hTempRgn, CRGN_DIFF );
GpiDestroyRegion( mhPS, hTempRgn );
@@ -185,10 +185,10 @@ void Os2SalGraphics::copyArea( long nDestX, long nDestY,
{
if ( !hInvalidateRgn )
hInvalidateRgn = GpiCreateRegion( mhPS, 1, &aSrcRect );
- aTempRect.xLeft = 0;
- aTempRect.yBottom = -31999;
- aTempRect.xRight = 31999;
- aTempRect.yTop = 0;
+ aTempRect.xLeft = 0;
+ aTempRect.yBottom = -31999;
+ aTempRect.xRight = 31999;
+ aTempRect.yTop = 0;
hTempRgn = GpiCreateRegion( mhPS, 1, &aTempRect );
GpiCombineRegion( mhPS, hInvalidateRgn, hInvalidateRgn, hTempRgn, CRGN_DIFF );
GpiDestroyRegion( mhPS, hTempRgn );
@@ -197,10 +197,10 @@ void Os2SalGraphics::copyArea( long nDestX, long nDestY,
{
if ( !hInvalidateRgn )
hInvalidateRgn = GpiCreateRegion( mhPS, 1, &aSrcRect );
- aTempRect.xLeft = nScreenDX;
- aTempRect.yBottom = 0;
- aTempRect.xRight = 31999;
- aTempRect.yTop = 31999;
+ aTempRect.xLeft = nScreenDX;
+ aTempRect.yBottom = 0;
+ aTempRect.xRight = 31999;
+ aTempRect.yTop = 31999;
hTempRgn = GpiCreateRegion( mhPS, 1, &aTempRect );
GpiCombineRegion( mhPS, hInvalidateRgn, hInvalidateRgn, hTempRgn, CRGN_DIFF );
GpiDestroyRegion( mhPS, hTempRgn );
@@ -209,10 +209,10 @@ void Os2SalGraphics::copyArea( long nDestX, long nDestY,
{
if ( !hInvalidateRgn )
hInvalidateRgn = GpiCreateRegion( mhPS, 1, &aSrcRect );
- aTempRect.xLeft = 0;
- aTempRect.yBottom = nScreenDY;
- aTempRect.xRight = 31999;
- aTempRect.yTop = 31999;
+ aTempRect.xLeft = 0;
+ aTempRect.yBottom = nScreenDY;
+ aTempRect.xRight = 31999;
+ aTempRect.yTop = 31999;
hTempRgn = GpiCreateRegion( mhPS, 1, &aTempRect );
GpiCombineRegion( mhPS, hInvalidateRgn, hInvalidateRgn, hTempRgn, CRGN_DIFF );
GpiDestroyRegion( mhPS, hTempRgn );
@@ -237,10 +237,10 @@ void Os2SalGraphics::copyArea( long nDestX, long nDestY,
{
if ( !hInvalidateRgn )
hInvalidateRgn = GpiCreateRegion( mhPS, 1, &aSrcRect );
- aTempRect.xLeft = aSWP.x;
- aTempRect.yBottom = aSWP.y;
- aTempRect.xRight = aTempRect.xLeft+aSWP.cx;
- aTempRect.yTop = aTempRect.yBottom+aSWP.cy;
+ aTempRect.xLeft = aSWP.x;
+ aTempRect.yBottom = aSWP.y;
+ aTempRect.xRight = aTempRect.xLeft+aSWP.cx;
+ aTempRect.yTop = aTempRect.yBottom+aSWP.cy;
hTempRgn = GpiCreateRegion( mhPS, 1, &aTempRect );
GpiCombineRegion( mhPS, hInvalidateRgn, hInvalidateRgn, hTempRgn, CRGN_DIFF );
GpiDestroyRegion( mhPS, hTempRgn );
@@ -267,8 +267,8 @@ void Os2SalGraphics::copyArea( long nDestX, long nDestY,
// MainThread ist, damit es beim Bearbeiten der
// Paint-Message keinen Deadlock gibt, da der
// SolarMutex durch diesen Thread schon gelockt ist
- SalData* pSalData = GetSalData();
- ULONG nCurThreadId = GetCurrentThreadId();
+ SalData* pSalData = GetSalData();
+ ULONG nCurThreadId = GetCurrentThreadId();
if ( pSalData->mnAppThreadId == nCurThreadId )
WinUpdateWindow( mhWnd );
}
@@ -290,11 +290,11 @@ void ImplDrawBitmap( HPS hPS, long nScreenHeight,
{
if( hPS )
{
- HANDLE hDrawDIB;
- HBITMAP hDrawDDB = rSalBitmap.ImplGethDDB();
- Os2SalBitmap* pTmpSalBmp = NULL;
- BOOL bPrintDDB = ( bPrinter && hDrawDDB );
- BOOL bDrawDDB1 = ( ( rSalBitmap.GetBitCount() == 1 ) && hDrawDDB );
+ HANDLE hDrawDIB;
+ HBITMAP hDrawDDB = rSalBitmap.ImplGethDDB();
+ Os2SalBitmap* pTmpSalBmp = NULL;
+ BOOL bPrintDDB = ( bPrinter && hDrawDDB );
+ BOOL bDrawDDB1 = ( ( rSalBitmap.GetBitCount() == 1 ) && hDrawDDB );
if( bPrintDDB || bDrawDDB1 )
{
@@ -307,13 +307,13 @@ void ImplDrawBitmap( HPS hPS, long nScreenHeight,
if( hDrawDIB )
{
- HANDLE hSubst = rSalBitmap.ImplGethDIB1Subst();
- POINTL pts[ 4 ];
- BITMAPINFO2* pBI = (BITMAPINFO2*) hDrawDIB;
- BITMAPINFOHEADER2* pBIH = (BITMAPINFOHEADER2*) pBI;
- const long nHeight = pBIH->cy;
- long nInfoSize = *(ULONG*) pBI + rSalBitmap.ImplGetDIBColorCount( hDrawDIB ) * sizeof( RGB2 );
- BYTE* pBits = (BYTE*) pBI + nInfoSize;
+ HANDLE hSubst = rSalBitmap.ImplGethDIB1Subst();
+ POINTL pts[ 4 ];
+ BITMAPINFO2* pBI = (BITMAPINFO2*) hDrawDIB;
+ BITMAPINFOHEADER2* pBIH = (BITMAPINFOHEADER2*) pBI;
+ const long nHeight = pBIH->cy;
+ long nInfoSize = *(ULONG*) pBI + rSalBitmap.ImplGetDIBColorCount( hDrawDIB ) * sizeof( RGB2 );
+ BYTE* pBits = (BYTE*) pBI + nInfoSize;
pts[0].x = pPosAry->mnDestX;
pts[0].y = nScreenHeight - pPosAry->mnDestY - pPosAry->mnDestHeight;
@@ -352,12 +352,12 @@ void ImplDrawBitmap( HPS hPS, long nScreenHeight,
// have problems to print these DIB's (strange)
if( pBIH->cBitCount == 8 && pBIH->ulCompression == BCA_UNCOMP )
{
- const long nWidth = pBIH->cx;
- const long nHeight = pBIH->cy;
- const long nWidthAl8 = AlignedWidth4Bytes( nWidth * 8 );
- const long nWidthAl24 = AlignedWidth4Bytes( nWidth * 24 );
- const long nNewImageSize = nHeight * nWidthAl24;
- BITMAPINFOHEADER2* pNewInfo;
+ const long nWidth = pBIH->cx;
+ const long nHeight = pBIH->cy;
+ const long nWidthAl8 = AlignedWidth4Bytes( nWidth * 8 );
+ const long nWidthAl24 = AlignedWidth4Bytes( nWidth * 24 );
+ const long nNewImageSize = nHeight * nWidthAl24;
+ BITMAPINFOHEADER2* pNewInfo;
pDummy = new BYTE[ sizeof( BITMAPINFO2 ) + nNewImageSize ];
memset( pDummy, 0, sizeof( BITMAPINFO2 ) );
@@ -466,7 +466,7 @@ void Os2SalGraphics::drawBitmap( const SalTwoRect* pPosAry,
const Os2SalBitmap& rSalBitmap = static_cast<const Os2SalBitmap&>(rSSalBitmap);
const Os2SalBitmap& rTransparentBitmap = static_cast<const Os2SalBitmap&>(rSTransparentBitmap);
-
+
if( bFastTransparent )
{
ImplDrawBitmap( mhPS, mnHeight, pPosAry, rTransparentBitmap, FALSE, ROP_SRCAND );
@@ -474,25 +474,25 @@ void Os2SalGraphics::drawBitmap( const SalTwoRect* pPosAry,
}
else
{
- SalTwoRect aPosAry = *pPosAry;
- int nDstX = (int) aPosAry.mnDestX;
- int nDstY = (int) aPosAry.mnDestY;
- int nDstWidth = (int) aPosAry.mnDestWidth;
- int nDstHeight = (int) aPosAry.mnDestHeight;
- HAB hAB = GetSalData()->mhAB;
- HPS hPS = mhPS;
- DEVOPENSTRUC aDevOpenStruc = { NULL, (PSZ)"DISPLAY", NULL, NULL, NULL, NULL, NULL, NULL, NULL };
- SIZEL aSizeL = { nDstWidth, nDstHeight };
- POINTL aPtL[ 3 ];
-
- HDC hMemDC = DevOpenDC( hAB, OD_MEMORY, (PSZ)"*", 5L, (PDEVOPENDATA)&aDevOpenStruc, 0 );
- HPS hMemPS = Ft2CreatePS( hAB, hMemDC, &aSizeL, GPIT_MICRO | GPIA_ASSOC | PU_PELS );
- HBITMAP hMemBitmap = ImplCreateVirDevBitmap( hMemDC, hMemPS, nDstWidth, nDstHeight, 0 );
- HBITMAP hMemOld = (HBITMAP) Ft2SetBitmap( hMemPS, hMemBitmap );
- HDC hMaskDC = DevOpenDC( hAB, OD_MEMORY, (PSZ)"*", 5L, (PDEVOPENDATA)&aDevOpenStruc, 0 );
- HPS hMaskPS = Ft2CreatePS( hAB, hMaskDC, &aSizeL, GPIT_MICRO | GPIA_ASSOC | PU_PELS );
- HBITMAP hMaskBitmap = ImplCreateVirDevBitmap( hMaskDC, hMaskPS, nDstWidth, nDstHeight, 0 );
- HBITMAP hMaskOld = (HBITMAP) Ft2SetBitmap( hMaskPS, hMaskBitmap );
+ SalTwoRect aPosAry = *pPosAry;
+ int nDstX = (int) aPosAry.mnDestX;
+ int nDstY = (int) aPosAry.mnDestY;
+ int nDstWidth = (int) aPosAry.mnDestWidth;
+ int nDstHeight = (int) aPosAry.mnDestHeight;
+ HAB hAB = GetSalData()->mhAB;
+ HPS hPS = mhPS;
+ DEVOPENSTRUC aDevOpenStruc = { NULL, (PSZ)"DISPLAY", NULL, NULL, NULL, NULL, NULL, NULL, NULL };
+ SIZEL aSizeL = { nDstWidth, nDstHeight };
+ POINTL aPtL[ 3 ];
+
+ HDC hMemDC = DevOpenDC( hAB, OD_MEMORY, (PSZ)"*", 5L, (PDEVOPENDATA)&aDevOpenStruc, 0 );
+ HPS hMemPS = Ft2CreatePS( hAB, hMemDC, &aSizeL, GPIT_MICRO | GPIA_ASSOC | PU_PELS );
+ HBITMAP hMemBitmap = ImplCreateVirDevBitmap( hMemDC, hMemPS, nDstWidth, nDstHeight, 0 );
+ HBITMAP hMemOld = (HBITMAP) Ft2SetBitmap( hMemPS, hMemBitmap );
+ HDC hMaskDC = DevOpenDC( hAB, OD_MEMORY, (PSZ)"*", 5L, (PDEVOPENDATA)&aDevOpenStruc, 0 );
+ HPS hMaskPS = Ft2CreatePS( hAB, hMaskDC, &aSizeL, GPIT_MICRO | GPIA_ASSOC | PU_PELS );
+ HBITMAP hMaskBitmap = ImplCreateVirDevBitmap( hMaskDC, hMaskPS, nDstWidth, nDstHeight, 0 );
+ HBITMAP hMaskOld = (HBITMAP) Ft2SetBitmap( hMaskPS, hMaskBitmap );
/*
HPS hMemPS = ImplGetCachedPS( CACHED_HPS_1, 0 );
HPS hMaskPS = ImplGetCachedPS( CACHED_HPS_2, 0 );
@@ -543,7 +543,7 @@ void Os2SalGraphics::drawBitmap( const SalTwoRect* pPosAry,
// -----------------------------------------------------------------------
bool Os2SalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
- const SalBitmap& rSrcBitmap,
+ const SalBitmap& rSrcBitmap,
const SalBitmap& rAlphaBmp )
{
// TODO(P3) implement alpha blending
@@ -552,7 +552,7 @@ bool Os2SalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
// -----------------------------------------------------------------------
-bool Os2SalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
+bool Os2SalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
long nHeight, sal_uInt8 nTransparency )
{
// TODO(P3) implement alpha blending
@@ -566,13 +566,13 @@ void Os2SalGraphics::drawMask( const SalTwoRect* pPosAry,
SalColor nMaskColor )
{
DBG_ASSERT( !mbPrinter, "No transparency print possible!" );
-
+
const Os2SalBitmap& rSalBitmap = static_cast<const Os2SalBitmap&>(rSSalBitmap);
- SalTwoRect aPosAry = *pPosAry;
- HPS hPS = mhPS;
+ SalTwoRect aPosAry = *pPosAry;
+ HPS hPS = mhPS;
IMAGEBUNDLE aBundle, aOldBundle;
- AREABUNDLE aAreaBundle, aOldAreaBundle;
+ AREABUNDLE aAreaBundle, aOldAreaBundle;
const ULONG nColor = RGBCOLOR( SALCOLOR_RED( nMaskColor ),
SALCOLOR_GREEN( nMaskColor ),
SALCOLOR_BLUE( nMaskColor ) );
@@ -603,16 +603,16 @@ void Os2SalGraphics::drawMask( const SalTwoRect* pPosAry,
SalBitmap* Os2SalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
{
- HAB hAB = GetSalData()->mhAB;
- SIZEL size = { nDX, nDY };
- Os2SalBitmap* pSalBitmap = NULL;
+ HAB hAB = GetSalData()->mhAB;
+ SIZEL size = { nDX, nDY };
+ Os2SalBitmap* pSalBitmap = NULL;
// create device context (at this time allways display compatible)
- DEVOPENSTRUC aDevOpenStruc = { NULL, (PSZ)"DISPLAY", NULL, NULL, NULL, NULL, NULL, NULL, NULL };
- HDC hMemDC = DevOpenDC( hAB, OD_MEMORY, (PSZ)"*", 5L, (PDEVOPENDATA)&aDevOpenStruc, 0 );
- HPS hMemPS = Ft2CreatePS( hAB, hMemDC, &size, GPIT_MICRO | GPIA_ASSOC | PU_PELS );
- HBITMAP hMemBmp = ImplCreateVirDevBitmap( hMemDC, hMemPS, nDX, nDY, 0 );
- HBITMAP hMemOld = Ft2SetBitmap( hMemPS, hMemBmp );
+ DEVOPENSTRUC aDevOpenStruc = { NULL, (PSZ)"DISPLAY", NULL, NULL, NULL, NULL, NULL, NULL, NULL };
+ HDC hMemDC = DevOpenDC( hAB, OD_MEMORY, (PSZ)"*", 5L, (PDEVOPENDATA)&aDevOpenStruc, 0 );
+ HPS hMemPS = Ft2CreatePS( hAB, hMemDC, &size, GPIT_MICRO | GPIA_ASSOC | PU_PELS );
+ HBITMAP hMemBmp = ImplCreateVirDevBitmap( hMemDC, hMemPS, nDX, nDY, 0 );
+ HBITMAP hMemOld = Ft2SetBitmap( hMemPS, hMemBmp );
// creation successfull?
if( hMemDC && hMemPS && hMemBmp )
@@ -666,8 +666,8 @@ SalBitmap* Os2SalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
SalColor Os2SalGraphics::getPixel( long nX, long nY )
{
- POINTL aPt = { nX, TY( nY ) };
- LONG nColor = Ft2QueryPel( mhPS, &aPt );
+ POINTL aPt = { nX, TY( nY ) };
+ LONG nColor = Ft2QueryPel( mhPS, &aPt );
return MAKE_SALCOLOR( (BYTE) ( nColor >> 16 ), (BYTE) ( nColor >> 8 ), (BYTE) nColor );
}
diff --git a/vcl/os2/source/gdi/salgdi3.cxx b/vcl/os2/source/gdi/salgdi3.cxx
index b403bf5128da..751abc4eadad 100644
--- a/vcl/os2/source/gdi/salgdi3.cxx
+++ b/vcl/os2/source/gdi/salgdi3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,7 +96,7 @@ inline int IntTimes256FromFixed(W32FIXED f)
// -----------
// this is a special codepage code, used to identify OS/2 symbol font.
-#define SYMBOL_CHARSET 65400
+#define SYMBOL_CHARSET 65400
// =======================================================================
@@ -337,7 +337,7 @@ static ImplDevFontAttributes Os2Font2DevFontAttributes( const PFONTMETRICS pFont
|| aDFA.maName.EqualsAscii( "ZapfChancery" )
|| aDFA.maName.EqualsAscii( "ZapfDingbats" ) )
aDFA.mnQuality += 500;
- }
+ }
aDFA.meEmbeddedBitmap = EMBEDDEDBITMAP_DONTKNOW;
aDFA.meAntiAlias = ANTIALIAS_DONTKNOW;
@@ -355,7 +355,7 @@ static ImplDevFontAttributes Os2Font2DevFontAttributes( const PFONTMETRICS pFont
ImplOs2FontData::ImplOs2FontData( PFONTMETRICS _pFontMetric,
int nHeight, BYTE nPitchAndFamily )
-: ImplFontData( Os2Font2DevFontAttributes(_pFontMetric), 0 ),
+: ImplFontData( Os2Font2DevFontAttributes(_pFontMetric), 0 ),
pFontMetric( _pFontMetric ),
meOs2CharSet( _pFontMetric->usCodePage),
mnPitchAndFamily( nPitchAndFamily ),
@@ -401,8 +401,8 @@ void ImplOs2FontData::UpdateFromHPS( HPS hPS ) const
// even if the font works some fonts have problems with the glyph API
// => the heuristic below tries to figure out which fonts have the problem
- DWORD fontType = Ft2QueryFontType( 0, pFontMetric->szFacename);
- if( fontType != FT2_FONTTYPE_TRUETYPE
+ DWORD fontType = Ft2QueryFontType( 0, pFontMetric->szFacename);
+ if( fontType != FT2_FONTTYPE_TRUETYPE
&& (pFontMetric->fsDefn & FM_DEFN_GENERIC) == 0)
mbDisableGlyphApi = true;
}
@@ -592,16 +592,16 @@ USHORT Os2SalGraphics::ImplDoSetFont( ImplFontSelectData* i_pFont, float& o_rFon
#endif
ImplOs2FontData* pFontData = (ImplOs2FontData*)i_pFont->mpFontData;
- PFONTMETRICS pFontMetric = NULL;
- FATTRS aFAttrs;
- BOOL bOutline = FALSE;
- APIRET rc;
+ PFONTMETRICS pFontMetric = NULL;
+ FATTRS aFAttrs;
+ BOOL bOutline = FALSE;
+ APIRET rc;
memset( &aFAttrs, 0, sizeof( FATTRS ) );
aFAttrs.usRecordLength = sizeof( FATTRS );
aFAttrs.lMaxBaselineExt = i_pFont->mnHeight;
- aFAttrs.lAveCharWidth = i_pFont->mnWidth;
+ aFAttrs.lAveCharWidth = i_pFont->mnWidth;
// do we have a pointer to the FONTMETRICS of the selected font? -> use it!
if ( pFontData )
@@ -611,9 +611,9 @@ USHORT Os2SalGraphics::ImplDoSetFont( ImplFontSelectData* i_pFont, float& o_rFon
bOutline = (pFontMetric->fsDefn & FM_DEFN_OUTLINE) != 0;
// use match&registry fields to get correct match
- aFAttrs.lMatch = pFontMetric->lMatch;
- aFAttrs.idRegistry = pFontMetric->idRegistry;
- aFAttrs.usCodePage = pFontMetric->usCodePage;
+ aFAttrs.lMatch = pFontMetric->lMatch;
+ aFAttrs.idRegistry = pFontMetric->idRegistry;
+ aFAttrs.usCodePage = pFontMetric->usCodePage;
if ( bOutline )
{
@@ -624,14 +624,14 @@ USHORT Os2SalGraphics::ImplDoSetFont( ImplFontSelectData* i_pFont, float& o_rFon
else
{
aFAttrs.lMaxBaselineExt = pFontMetric->lMaxBaselineExt;
- aFAttrs.lAveCharWidth = pFontMetric->lAveCharWidth;
+ aFAttrs.lAveCharWidth = pFontMetric->lAveCharWidth;
}
}
// use family name for outline fonts
if ( mbPrinter ) {
- // use font face name for printers because otherwise ft2lib will fail
+ // use font face name for printers because otherwise ft2lib will fail
// to select the correct font for GPI (ticket#117)
strncpy( (char*)(aFAttrs.szFacename), pFontMetric->szFacename, sizeof( aFAttrs.szFacename ) );
} else if ( !pFontMetric) {
@@ -708,7 +708,7 @@ USHORT Os2SalGraphics::ImplDoSetFont( ImplFontSelectData* i_pFont, float& o_rFon
{
nAttrs |= CBB_ANGLE;
double alpha = (double)(i_pFont->mnOrientation);
- alpha *= 0.0017453292; // *PI / 1800
+ alpha *= 0.0017453292; // *PI / 1800
mnOrientationY = (long) (1000.0 * sin( alpha ));
mnOrientationX = (long) (1000.0 * cos( alpha ));
aBundle.ptlAngle.x = mnOrientationX;
@@ -822,8 +822,8 @@ void Os2SalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLe
}
#endif
- pMetric->maName = UniString( aOS2Metric.szFamilyname, gsl_getSystemTextEncoding());
- pMetric->maStyleName = ImpStyleNameToSal( aOS2Metric.szFamilyname,
+ pMetric->maName = UniString( aOS2Metric.szFamilyname, gsl_getSystemTextEncoding());
+ pMetric->maStyleName = ImpStyleNameToSal( aOS2Metric.szFamilyname,
aOS2Metric.szFacename,
strlen( aOS2Metric.szFamilyname ) );
@@ -855,17 +855,17 @@ void Os2SalGraphics::GetFontMetric( ImplFontMetricData* pMetric, int nFallbackLe
// transformation dependend font metrics
if ( aOS2Metric.fsDefn & FM_DEFN_OUTLINE )
{
- pMetric->mnWidth = aOS2Metric.lEmInc;
+ pMetric->mnWidth = aOS2Metric.lEmInc;
}
else
{
- pMetric->mnWidth = aOS2Metric.lAveCharWidth;
+ pMetric->mnWidth = aOS2Metric.lAveCharWidth;
pMetric->mnOrientation = 0;
}
- pMetric->mnIntLeading = aOS2Metric.lInternalLeading;
- pMetric->mnExtLeading = aOS2Metric.lExternalLeading;
- pMetric->mnAscent = aOS2Metric.lMaxAscender;
- pMetric->mnDescent = aOS2Metric.lMaxDescender;
+ pMetric->mnIntLeading = aOS2Metric.lInternalLeading;
+ pMetric->mnExtLeading = aOS2Metric.lExternalLeading;
+ pMetric->mnAscent = aOS2Metric.lMaxAscender;
+ pMetric->mnDescent = aOS2Metric.lMaxDescender;
// #107888# improved metric compatibility for Asian fonts...
// TODO: assess workaround below for CWS >= extleading
@@ -979,9 +979,9 @@ bool Os2SalGraphics::AddTempDevFont( ImplDevFontList* pFontList,
void Os2SalGraphics::GetDevFontList( ImplDevFontList* pList )
{
- PFONTMETRICS pFontMetrics;
- ULONG nFontMetricCount;
- SalData* pSalData;
+ PFONTMETRICS pFontMetrics;
+ ULONG nFontMetricCount;
+ SalData* pSalData;
#if OSL_DEBUG_LEVEL>0
debug_printf("Os2SalGraphics::GetDevFontList\n");
@@ -989,12 +989,12 @@ void Os2SalGraphics::GetDevFontList( ImplDevFontList* pList )
// install OpenSymbol
HMODULE hMod;
- ULONG ObjNum, Offset, rc;
- CHAR Buff[2*_MAX_PATH];
- char drive[_MAX_DRIVE], dir[_MAX_DIR];
- char fname[_MAX_FNAME], ext[_MAX_EXT];
+ ULONG ObjNum, Offset, rc;
+ CHAR Buff[2*_MAX_PATH];
+ char drive[_MAX_DRIVE], dir[_MAX_DIR];
+ char fname[_MAX_FNAME], ext[_MAX_EXT];
// get module handle (and name)
- rc = DosQueryModFromEIP( &hMod, &ObjNum, sizeof( Buff), Buff,
+ rc = DosQueryModFromEIP( &hMod, &ObjNum, sizeof( Buff), Buff,
&Offset, (ULONG)ImplSalGetUniString);
DosQueryModuleName(hMod, sizeof(Buff), Buff);
// replace module path with font path
@@ -1011,20 +1011,20 @@ void Os2SalGraphics::GetDevFontList( ImplDevFontList* pList )
// dies im unabhaengigen Teil auch so gemacht wird und wir
// ansonsten auf geloeschten Systemdaten arbeiten koennten
pSalData = GetSalData();
- nFontMetricCount = pSalData->mnFontMetricCount;
- pFontMetrics = pSalData->mpFontMetrics;
+ nFontMetricCount = pSalData->mnFontMetricCount;
+ pFontMetrics = pSalData->mpFontMetrics;
// Bei Bildschirm-Devices holen wir uns die Fontliste jedesmal neu
if ( pFontMetrics )
{
delete pFontMetrics;
- pFontMetrics = NULL;
- nFontMetricCount = 0;
+ pFontMetrics = NULL;
+ nFontMetricCount = 0;
}
}
else
{
- nFontMetricCount = mnFontMetricCount;
- pFontMetrics = mpFontMetrics;
+ nFontMetricCount = mnFontMetricCount;
+ pFontMetrics = mpFontMetrics;
}
// do we have to create the cached font list first?
@@ -1054,13 +1054,13 @@ void Os2SalGraphics::GetDevFontList( ImplDevFontList* pList )
if ( !mbPrinter )
{
- pSalData->mnFontMetricCount = nFontMetricCount;
- pSalData->mpFontMetrics = pFontMetrics;
+ pSalData->mnFontMetricCount = nFontMetricCount;
+ pSalData->mpFontMetrics = pFontMetrics;
}
else
{
- mnFontMetricCount = nFontMetricCount;
- mpFontMetrics = pFontMetrics;
+ mnFontMetricCount = nFontMetricCount;
+ mpFontMetrics = pFontMetrics;
}
}
@@ -1075,7 +1075,7 @@ void Os2SalGraphics::GetDevFontList( ImplDevFontList* pList )
continue;
// skip bitmap fonts (but keep WarpSans)
- if ( (pFontMetric->fsDefn & FM_DEFN_OUTLINE) == 0
+ if ( (pFontMetric->fsDefn & FM_DEFN_OUTLINE) == 0
&& strncmp( pFontMetric->szFacename, "WarpSans", 8) )
// Font nicht aufnehmen
continue;
@@ -1086,7 +1086,7 @@ void Os2SalGraphics::GetDevFontList( ImplDevFontList* pList )
*dash++ = ' ';
// create new font list element
- ImplOs2FontData* pData = new ImplOs2FontData( pFontMetric, 0, 0 );
+ ImplOs2FontData* pData = new ImplOs2FontData( pFontMetric, 0, 0 );
// add font list element to font list
pList->Add( pData );
@@ -1316,7 +1316,7 @@ BOOL Os2SalGraphics::GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& rB
const double fFactor((1.0/256) * mfFontScale);
rB2DPolyPoly.transform(basegfx::tools::createScaleB2DHomMatrix(fFactor, fFactor));
}
-
+
return bRet;
}
@@ -1418,8 +1418,8 @@ BOOL Os2SalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
// open font file
sal_uInt32 nFaceNum = 0;
- if( !*xRawFontData.get() ) // TTC candidate
- nFaceNum = ~0U; // indicate "TTC font extracts only"
+ if( !*xRawFontData.get() ) // TTC candidate
+ nFaceNum = ~0U; // indicate "TTC font extracts only"
ScopedTrueTypeFont aSftTTF;
int nRC = aSftTTF.open( xRawFontData.get(), nFontSize1, nFaceNum );
@@ -1428,18 +1428,18 @@ BOOL Os2SalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
TTGlobalFontInfo aTTInfo;
::GetTTGlobalFontInfo( aSftTTF.get(), &aTTInfo );
- rInfo.m_nFontType = SAL_FONTSUBSETINFO_TYPE_TRUETYPE;
- rInfo.m_aPSName = ImplSalGetUniString( aTTInfo.psname );
- rInfo.m_nAscent = +aTTInfo.winAscent;
- rInfo.m_nDescent = -aTTInfo.winDescent;
- rInfo.m_aFontBBox = Rectangle( Point( aTTInfo.xMin, aTTInfo.yMin ),
+ rInfo.m_nFontType = SAL_FONTSUBSETINFO_TYPE_TRUETYPE;
+ rInfo.m_aPSName = ImplSalGetUniString( aTTInfo.psname );
+ rInfo.m_nAscent = +aTTInfo.winAscent;
+ rInfo.m_nDescent = -aTTInfo.winDescent;
+ rInfo.m_aFontBBox = Rectangle( Point( aTTInfo.xMin, aTTInfo.yMin ),
Point( aTTInfo.xMax, aTTInfo.yMax ) );
- rInfo.m_nCapHeight = aTTInfo.yMax; // Well ...
+ rInfo.m_nCapHeight = aTTInfo.yMax; // Well ...
// subset glyphs and get their properties
// take care that subset fonts require the NotDef glyph in pos 0
int nOrigCount = nGlyphCount;
- USHORT aShortIDs[ 256 ];
+ USHORT aShortIDs[ 256 ];
sal_uInt8 aTempEncs[ 256 ];
int nNotDef=-1, i;
@@ -1484,9 +1484,9 @@ BOOL Os2SalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
::GetTTSimpleGlyphMetrics( aSftTTF.get(), aShortIDs, nGlyphCount, aIFSD.mbVertical );
if( !pMetrics )
return FALSE;
- sal_uInt16 nNotDefAdv = pMetrics[0].adv;
- pMetrics[0].adv = pMetrics[nNotDef].adv;
- pMetrics[nNotDef].adv = nNotDefAdv;
+ sal_uInt16 nNotDefAdv = pMetrics[0].adv;
+ pMetrics[0].adv = pMetrics[nNotDef].adv;
+ pMetrics[nNotDef].adv = nNotDefAdv;
for( i = 0; i < nOrigCount; ++i )
pGlyphWidths[i] = pMetrics[i].adv;
free( pMetrics );
@@ -1525,18 +1525,18 @@ const void* Os2SalGraphics::GetEmbedFontData( const ImplFontData* pFont,
DWORD nFontSize2 = Ft2GetFontData( mhPS, 0, 0, pData, nFontSize1 );
if( nFontSize1 != nFontSize2 )
*pDataLen = 0;
-
+
// get important font properties
FONTMETRICS aOS2Metric;
if (Ft2QueryFontMetrics( mhPS, sizeof( aOS2Metric ), &aOS2Metric ) == GPI_ERROR)
*pDataLen = 0;
- rInfo.m_nFontType = SAL_FONTSUBSETINFO_TYPE_TYPE1;
- rInfo.m_aPSName = ImplSalGetUniString( aOS2Metric.szFacename );
- rInfo.m_nAscent = +aOS2Metric.lMaxAscender;
- rInfo.m_nDescent = -aOS2Metric.lMaxDescender;
- rInfo.m_aFontBBox = Rectangle( Point( 0, -aOS2Metric.lMaxDescender ),
+ rInfo.m_nFontType = SAL_FONTSUBSETINFO_TYPE_TYPE1;
+ rInfo.m_aPSName = ImplSalGetUniString( aOS2Metric.szFacename );
+ rInfo.m_nAscent = +aOS2Metric.lMaxAscender;
+ rInfo.m_nDescent = -aOS2Metric.lMaxDescender;
+ rInfo.m_aFontBBox = Rectangle( Point( 0, -aOS2Metric.lMaxDescender ),
Point( aOS2Metric.lMaxCharInc, aOS2Metric.lMaxAscender+aOS2Metric.lExternalLeading ) );
- rInfo.m_nCapHeight = aOS2Metric.lMaxAscender; // Well ...
+ rInfo.m_nCapHeight = aOS2Metric.lMaxAscender; // Well ...
// get individual character widths
for( int i = 0; i < 256; ++i )
@@ -1594,10 +1594,10 @@ void Os2SalGraphics::GetGlyphWidths( const ImplFontData* pFont,
// TODO: much better solution: move SetFont and restoration of old font to caller
ScopedFont aOldFont(*this);
-
+
float fScale = 0.0;
ImplDoSetFont( &aIFSD, fScale, 0);
-
+
if( pFont->IsSubsettable() )
{
// get raw font file data
@@ -1613,12 +1613,12 @@ void Os2SalGraphics::GetGlyphWidths( const ImplFontData* pFont,
sal_uInt32 nFaceNum = 0;
if( !*xRawFontData.get() ) // TTC candidate
nFaceNum = ~0U; // indicate "TTC font extracts only"
-
+
ScopedTrueTypeFont aSftTTF;
int nRC = aSftTTF.open( xRawFontData.get(), nFontSize1, nFaceNum );
if( nRC != SF_OK )
return;
-
+
int nGlyphs = GetTTGlyphCount( aSftTTF.get() );
if( nGlyphs > 0 )
{
@@ -1672,7 +1672,7 @@ void Os2SalGraphics::GetGlyphWidths( const ImplFontData* pFont,
rWidths.push_back( nCharWidth );
}
}
- }
+ }
}
//--------------------------------------------------------------------------
@@ -1688,14 +1688,14 @@ SystemFontData Os2SalGraphics::GetSysFontData( int nFallbacklevel ) const
if (nFallbacklevel >= MAX_FALLBACK) nFallbacklevel = MAX_FALLBACK - 1;
if (nFallbacklevel < 0 ) nFallbacklevel = 0;
-
+
aSysFontData.nSize = sizeof( SystemFontData );
- aSysFontData.hFont = mhFonts[nFallbacklevel];
+ aSysFontData.hFont = mhFonts[nFallbacklevel];
aSysFontData.bFakeBold = false;
aSysFontData.bFakeItalic = false;
aSysFontData.bAntialias = true;
aSysFontData.bVerticalCharacterType = false;
-
+
return aSysFontData;
}
diff --git a/vcl/os2/source/gdi/salprn.cxx b/vcl/os2/source/gdi/salprn.cxx
index 7290cdbcb9fe..62613011c0f5 100644
--- a/vcl/os2/source/gdi/salprn.cxx
+++ b/vcl/os2/source/gdi/salprn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -68,10 +68,10 @@
struct ImplFormInfo
{
- long mnPaperWidth;
- long mnPaperHeight;
+ long mnPaperWidth;
+ long mnPaperHeight;
#ifndef NO_DJP
- DJPT_PAPERSIZE mnId;
+ DJPT_PAPERSIZE mnId;
#endif
};
@@ -83,12 +83,12 @@ struct ImplFormInfo
struct ImplTrayInfo
{
- CHAR maName[32];
- CHAR maDisplayName[64];
- DJPT_TRAYTYPE mnId;
+ CHAR maName[32];
+ CHAR maDisplayName[64];
+ DJPT_TRAYTYPE mnId;
ImplTrayInfo( const char* pTrayName,
- const char* pTrayDisplayName )
+ const char* pTrayDisplayName )
{
strcpy( maName, pTrayName);
strcpy( maDisplayName, pTrayDisplayName);
@@ -99,12 +99,12 @@ struct ImplTrayInfo
struct ImplQueueSalSysData
{
- ByteString maPrinterName; // pszPrinters
- ByteString maName; // pszName bzw. LogAddress
- ByteString maOrgDriverName; // pszDriverName (maDriverName.maDeviceName)
- ByteString maDriverName; // pszDriverName bis .
- ByteString maDeviceName; // pszDriverName nach .
- PDRIVDATA mpDrivData;
+ ByteString maPrinterName; // pszPrinters
+ ByteString maName; // pszName bzw. LogAddress
+ ByteString maOrgDriverName; // pszDriverName (maDriverName.maDeviceName)
+ ByteString maDriverName; // pszDriverName bis .
+ ByteString maDeviceName; // pszDriverName nach .
+ PDRIVDATA mpDrivData;
ImplQueueSalSysData( const ByteString& rPrinterName,
const ByteString& rName,
@@ -187,11 +187,11 @@ void Os2SalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
ByteString aOrgDriverName( pPrqInfo->pszDriverName);
ByteString aName( pPrqInfo->pszName);
- pInfo->maDriver = ::rtl::OStringToOUString (aOrgDriverName, gsl_getSystemTextEncoding());
+ pInfo->maDriver = ::rtl::OStringToOUString (aOrgDriverName, gsl_getSystemTextEncoding());
pInfo->maPrinterName = ::rtl::OStringToOUString (pPrqInfo->pszComment, gsl_getSystemTextEncoding());
- pInfo->maLocation = ::rtl::OStringToOUString (aName, gsl_getSystemTextEncoding());
- pInfo->mnStatus = ImplPMQueueStatusToSal( pPrqInfo->fsStatus );
- pInfo->mnJobs = pPrqInfo->cJobs;
+ pInfo->maLocation = ::rtl::OStringToOUString (aName, gsl_getSystemTextEncoding());
+ pInfo->mnStatus = ImplPMQueueStatusToSal( pPrqInfo->fsStatus );
+ pInfo->mnJobs = pPrqInfo->cJobs;
// pInfo->maComment = !!!
// Feststellen, ob Name doppelt
@@ -214,7 +214,7 @@ void Os2SalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
if ( (pDriverName = strchr( pPrqInfo->pszDriverName, '.' )) != 0 )
{
*pDriverName = 0;
- pDeviceName = pDriverName + 1;
+ pDeviceName = pDriverName + 1;
}
else
pDeviceName = NULL;
@@ -280,7 +280,7 @@ void Os2SalInstance::GetPrinterQueueState( SalPrinterQueueInfo* pInfo )
pSysData->maOrgDriverName.Equals( pPrqInfo->pszDriverName ) )
{
pInfo->mnStatus = ImplPMQueueStatusToSal( pPrqInfo->fsStatus );
- pInfo->mnJobs = pPrqInfo->cJobs;
+ pInfo->mnJobs = pPrqInfo->cJobs;
break;
}
@@ -303,12 +303,12 @@ void Os2SalInstance::DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo )
XubString Os2SalInstance::GetDefaultPrinter()
{
- APIRET rc;
- ULONG nNeeded;
- ULONG nReturned;
- ULONG nTotal;
- char szQueueName[255];
- XubString aDefaultName;
+ APIRET rc;
+ ULONG nNeeded;
+ ULONG nReturned;
+ ULONG nTotal;
+ char szQueueName[255];
+ XubString aDefaultName;
// query default queue
if ( !PrfQueryProfileString( HINI_PROFILE, SPL_INI_SPOOLER, "QUEUE", 0, szQueueName, sizeof( szQueueName ) ) )
@@ -510,11 +510,11 @@ static void ImplFormatInputList( PDJP_ITEM pDJP, PQUERYTUPLE pTuple )
BOOL fContinue = TRUE;
do
{
- pDJP->cb = sizeof (DJP_ITEM);
- pDJP->ulProperty = pTuple->ulProperty;
- pDJP->lType = pTuple->lType;
+ pDJP->cb = sizeof (DJP_ITEM);
+ pDJP->ulProperty = pTuple->ulProperty;
+ pDJP->lType = pTuple->lType;
pDJP->ulNumReturned = 0;
- pDJP->ulValue = DJP_NONE;
+ pDJP->ulValue = DJP_NONE;
// at EOL?
fContinue = DJP_NONE != pTuple->ulProperty;
@@ -555,19 +555,19 @@ static void ImplGetFormAndTrayList( Os2SalInfoPrinter* pOs2SalInfoPrinter, const
LONG alQuery[] =
{
- 0, 0, // First two members of QUERYSIZE
- DJP_CJ_FORM, DJP_ALL,
- DJP_CJ_TRAYNAME, DJP_ALL,
- DJP_NONE, DJP_NONE // EOL marker
+ 0, 0, // First two members of QUERYSIZE
+ DJP_CJ_FORM, DJP_ALL,
+ DJP_CJ_TRAYNAME, DJP_ALL,
+ DJP_NONE, DJP_NONE // EOL marker
};
- APIRET rc;
- PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
- PBYTE pBuffer = NULL;
- LONG nAlloc = 0;
- PDRIVDATA pCopyDrivData = ImplPrnDrivData( pSetupData );
- LONG nDrivDataSize = pCopyDrivData->cb;
- PBYTE pDrivData = (PBYTE)pCopyDrivData;
+ APIRET rc;
+ PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
+ PBYTE pBuffer = NULL;
+ LONG nAlloc = 0;
+ PDRIVDATA pCopyDrivData = ImplPrnDrivData( pSetupData );
+ LONG nDrivDataSize = pCopyDrivData->cb;
+ PBYTE pDrivData = (PBYTE)pCopyDrivData;
// find out how many bytes to allocate
pQuerySize->cb = sizeof( alQuery );
@@ -616,10 +616,10 @@ static void ImplGetFormAndTrayList( Os2SalInfoPrinter* pOs2SalInfoPrinter, const
pOs2SalInfoPrinter->mpFormArray = new PIMPLFORMINFO[pOs2SalInfoPrinter->mnFormCount];
for( int i = 0; i < pDJP->ulNumReturned; i++, pElm++ )
{
- ImplFormInfo* pInfo = new ImplFormInfo;
- pInfo->mnPaperWidth = pElm->hcInfo.cx;
- pInfo->mnPaperHeight = pElm->hcInfo.cy;
- pInfo->mnId = pElm->djppsFormID;
+ ImplFormInfo* pInfo = new ImplFormInfo;
+ pInfo->mnPaperWidth = pElm->hcInfo.cx;
+ pInfo->mnPaperHeight = pElm->hcInfo.cy;
+ pInfo->mnId = pElm->djppsFormID;
pOs2SalInfoPrinter->mpFormArray[i] = pInfo;
}
}
@@ -634,8 +634,8 @@ static void ImplGetFormAndTrayList( Os2SalInfoPrinter* pOs2SalInfoPrinter, const
pOs2SalInfoPrinter->mpTrayArray = new PIMPLTRAYINFO[pOs2SalInfoPrinter->mnTrayCount];
for( int i = 0; i < pDJP->ulNumReturned; i++, pElm++ )
{
- ImplTrayInfo* pInfo = new ImplTrayInfo( pElm->szTrayname, pElm->szDisplayTrayname );
- pInfo->mnId = pElm->djpttTrayID;
+ ImplTrayInfo* pInfo = new ImplTrayInfo( pElm->szTrayname, pElm->szDisplayTrayname );
+ pInfo->mnId = pElm->djpttTrayID;
pOs2SalInfoPrinter->mpTrayArray[i] = pInfo;
}
}
@@ -659,20 +659,20 @@ static BOOL ImplGetCurrentSettings( Os2SalInfoPrinter* pOs2SalInfoPrinter, ImplJ
LONG alQuery[] =
{
- 0, 0, // First two members of QUERYSIZE
- DJP_SJ_ORIENTATION, DJP_CURRENT,
- DJP_CJ_FORM, DJP_CURRENT,
- DJP_NONE, DJP_NONE // EOL marker
+ 0, 0, // First two members of QUERYSIZE
+ DJP_SJ_ORIENTATION, DJP_CURRENT,
+ DJP_CJ_FORM, DJP_CURRENT,
+ DJP_NONE, DJP_NONE // EOL marker
};
- APIRET rc;
- PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
- PBYTE pBuffer = NULL;
- LONG nAlloc = 0;
- PDRIVDATA pCopyDrivData = ImplPrnDrivData( pSetupData );
- LONG nDrivDataSize = pCopyDrivData->cb;
- PBYTE pDrivData = (PBYTE)pCopyDrivData;
- BOOL bResult;
+ APIRET rc;
+ PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
+ PBYTE pBuffer = NULL;
+ LONG nAlloc = 0;
+ PDRIVDATA pCopyDrivData = ImplPrnDrivData( pSetupData );
+ LONG nDrivDataSize = pCopyDrivData->cb;
+ PBYTE pDrivData = (PBYTE)pCopyDrivData;
+ BOOL bResult;
// find out how many bytes to allocate
pQuerySize->cb = sizeof( alQuery );
@@ -770,8 +770,8 @@ static BOOL ImplGetCurrentSettings( Os2SalInfoPrinter* pOs2SalInfoPrinter, ImplJ
}
// Wir suchen zuerst ueber den Namen/Id und dann ueber die Id
- BOOL bTrayFound = FALSE;
- USHORT j;
+ BOOL bTrayFound = FALSE;
+ USHORT j;
for ( j = 0; j < pOs2SalInfoPrinter->mnTrayCount; j++ )
{
if ( (pOs2SalInfoPrinter->mpTrayArray[j]->mnId == pElm->djpttTrayID) &&
@@ -825,16 +825,16 @@ static BOOL ImplSetOrientation( HDC hPrinterDC, PDRIVDATA pDriverData,
{
LONG alQuery[] =
{
- 0, 0, // First two members of QUERYSIZE
- DJP_SJ_ORIENTATION, DJP_CURRENT,
- DJP_NONE, DJP_NONE // EOL marker
+ 0, 0, // First two members of QUERYSIZE
+ DJP_SJ_ORIENTATION, DJP_CURRENT,
+ DJP_NONE, DJP_NONE // EOL marker
};
- APIRET rc;
- PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
- PBYTE pBuffer = NULL;
- LONG nAlloc = 0;
- LONG nDrivDataSize = pDriverData->cb;
+ APIRET rc;
+ PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
+ PBYTE pBuffer = NULL;
+ LONG nAlloc = 0;
+ LONG nDrivDataSize = pDriverData->cb;
// find out how many bytes to allocate
pQuerySize->cb = sizeof( alQuery );
@@ -855,10 +855,10 @@ static BOOL ImplSetOrientation( HDC hPrinterDC, PDRIVDATA pDriverData,
PDJP_ITEM pDJP = (PDJP_ITEM)pBuffer;
ImplFormatInputList( pDJP, pQuerySize->aTuples );
- pDJP->cb = sizeof( DJP_ITEM );
+ pDJP->cb = sizeof( DJP_ITEM );
pDJP->ulProperty = DJP_SJ_ORIENTATION;
- pDJP->lType = DJP_CURRENT;
- pDJP->ulValue = (eOrientation == ORIENTATION_PORTRAIT)
+ pDJP->lType = DJP_CURRENT;
+ pDJP->ulValue = (eOrientation == ORIENTATION_PORTRAIT)
? DJP_ORI_PORTRAIT
: DJP_ORI_LANDSCAPE;
@@ -882,16 +882,16 @@ static BOOL ImplSetPaperSize( HDC hPrinterDC, PDRIVDATA pDriverData,
{
LONG alQuery[] =
{
- 0, 0, // First two members of QUERYSIZE
- DJP_SJ_PAPERSIZE, DJP_CURRENT,
- DJP_NONE, DJP_NONE // EOL marker
+ 0, 0, // First two members of QUERYSIZE
+ DJP_SJ_PAPERSIZE, DJP_CURRENT,
+ DJP_NONE, DJP_NONE // EOL marker
};
- APIRET rc;
- PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
- PBYTE pBuffer = NULL;
- LONG nAlloc = 0;
- LONG nDrivDataSize = pDriverData->cb;
+ APIRET rc;
+ PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
+ PBYTE pBuffer = NULL;
+ LONG nAlloc = 0;
+ LONG nDrivDataSize = pDriverData->cb;
// find out how many bytes to allocate
pQuerySize->cb = sizeof( alQuery );
@@ -914,10 +914,10 @@ static BOOL ImplSetPaperSize( HDC hPrinterDC, PDRIVDATA pDriverData,
ImplFormatInputList( pDJP, pQuerySize->aTuples );
// Neue Daten zuweisen
- pDJP->cb = sizeof( DJP_ITEM );
+ pDJP->cb = sizeof( DJP_ITEM );
pDJP->ulProperty = DJP_SJ_PAPERSIZE;
- pDJP->lType = DJP_CURRENT;
- pDJP->ulValue = nOS2PaperFormat;
+ pDJP->lType = DJP_CURRENT;
+ pDJP->ulValue = nOS2PaperFormat;
// und setzen
rc = DevEscape( hPrinterDC,
@@ -939,16 +939,16 @@ static BOOL ImplSetPaperBin( HDC hPrinterDC, PDRIVDATA pDriverData,
{
LONG alQuery[] =
{
- 0, 0, // First two members of QUERYSIZE
- DJP_SJ_TRAYTYPE, DJP_CURRENT,
- DJP_NONE, DJP_NONE // EOL marker
+ 0, 0, // First two members of QUERYSIZE
+ DJP_SJ_TRAYTYPE, DJP_CURRENT,
+ DJP_NONE, DJP_NONE // EOL marker
};
- APIRET rc;
- PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
- PBYTE pBuffer = NULL;
- LONG nAlloc = 0;
- LONG nDrivDataSize = pDriverData->cb;
+ APIRET rc;
+ PQUERYSIZE pQuerySize = (PQUERYSIZE)alQuery;
+ PBYTE pBuffer = NULL;
+ LONG nAlloc = 0;
+ LONG nDrivDataSize = pDriverData->cb;
// find out how many bytes to allocate
pQuerySize->cb = sizeof( alQuery );
@@ -970,10 +970,10 @@ static BOOL ImplSetPaperBin( HDC hPrinterDC, PDRIVDATA pDriverData,
ImplFormatInputList( pDJP, pQuerySize->aTuples );
// Neue Daten zuweisen
- pDJP->cb = sizeof( DJP_ITEM );
+ pDJP->cb = sizeof( DJP_ITEM );
pDJP->ulProperty = DJP_SJ_TRAYTYPE;
- pDJP->lType = DJP_CURRENT;
- pDJP->ulValue = pTrayInfo->mnId;
+ pDJP->lType = DJP_CURRENT;
+ pDJP->ulValue = pTrayInfo->mnId;
// und setzen
rc = DevEscape( hPrinterDC,
@@ -998,10 +998,10 @@ static BOOL ImplSalCreateInfoPrn( Os2SalInfoPrinter* pPrinter, PDRIVDATA pDriver
// create info context
DEVOPENSTRUC devOpenStruc;
memset( &devOpenStruc, 0, sizeof( devOpenStruc ) );
- devOpenStruc.pszLogAddress = (char*)pPrinter->maName.GetBuffer();
- devOpenStruc.pszDriverName = (char*)pPrinter->maDriverName.GetBuffer();
- devOpenStruc.pdriv = pDriverData;
- devOpenStruc.pszDataType = "PM_Q_STD";
+ devOpenStruc.pszLogAddress = (char*)pPrinter->maName.GetBuffer();
+ devOpenStruc.pszDriverName = (char*)pPrinter->maDriverName.GetBuffer();
+ devOpenStruc.pdriv = pDriverData;
+ devOpenStruc.pszDataType = "PM_Q_STD";
HDC hDC = DevOpenDC( pSalData->mhAB, OD_INFO, "*",
4, (PDEVOPENDATA)&devOpenStruc, (HDC)NULL);
@@ -1041,15 +1041,15 @@ SalInfoPrinter* Os2SalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueIn
{
ImplQueueSalSysData* pSysQueueData = (ImplQueueSalSysData*)(pQueueInfo->mpSysData);
Os2SalInfoPrinter* pPrinter = new Os2SalInfoPrinter;
- pPrinter->maPrinterName = pSysQueueData->maPrinterName;
- pPrinter->maName = pSysQueueData->maName;
- pPrinter->maDriverName = pSysQueueData->maDriverName;
- pPrinter->maDeviceName = pSysQueueData->maDeviceName;
+ pPrinter->maPrinterName = pSysQueueData->maPrinterName;
+ pPrinter->maName = pSysQueueData->maName;
+ pPrinter->maDriverName = pSysQueueData->maDriverName;
+ pPrinter->maDeviceName = pSysQueueData->maDeviceName;
// Nur Setup-Daten uebernehmen, wenn Treiber und Laenge der Treiberdaten
// uebereinstimmt
- PDRIVDATA pDriverData;
- BOOL bUpdateDriverData;
+ PDRIVDATA pDriverData;
+ BOOL bUpdateDriverData;
if ( pSetupData->mpDriverData && pSysQueueData->mpDrivData &&
(pSetupData->mnSystem == JOBSETUP_SYSTEM_OS2) &&
(pSetupData->mnDriverDataLen == pSysQueueData->mpDrivData->cb) &&
@@ -1077,16 +1077,16 @@ SalInfoPrinter* Os2SalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueIn
// create graphics object for output
Os2SalGraphics* pGraphics = new Os2SalGraphics;
- pGraphics->mhDC = pPrinter->mhDC;
- pGraphics->mhPS = pPrinter->mhPS;
- pGraphics->mhWnd = 0;
- pGraphics->mbPrinter = TRUE;
- pGraphics->mbVirDev = FALSE;
- pGraphics->mbWindow = FALSE;
- pGraphics->mbScreen = FALSE;
+ pGraphics->mhDC = pPrinter->mhDC;
+ pGraphics->mhPS = pPrinter->mhPS;
+ pGraphics->mhWnd = 0;
+ pGraphics->mbPrinter = TRUE;
+ pGraphics->mbVirDev = FALSE;
+ pGraphics->mbWindow = FALSE;
+ pGraphics->mbScreen = FALSE;
ImplSalInitGraphics( pGraphics );
- pPrinter->mpGraphics = pGraphics;
+ pPrinter->mpGraphics = pGraphics;
// check printer driver for DJP support
pPrinter->mbDJPSupported = ImplIsDriverDJPEnabled( pPrinter->mhDC );
@@ -1119,15 +1119,15 @@ void Os2SalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter )
Os2SalInfoPrinter::Os2SalInfoPrinter()
{
- mhDC = 0;
- mhPS = 0;
- mpGraphics = NULL;
- mbGraphics = FALSE;
- mbDJPSupported = FALSE;
- mnFormCount = 0;
- mpFormArray = NULL;
- mnTrayCount = 0;
- mpTrayArray = NULL;
+ mhDC = 0;
+ mhPS = 0;
+ mpGraphics = NULL;
+ mbGraphics = FALSE;
+ mbDJPSupported = FALSE;
+ mnFormCount = 0;
+ mpFormArray = NULL;
+ mnTrayCount = 0;
+ mpTrayArray = NULL;
}
// -----------------------------------------------------------------------
@@ -1317,8 +1317,8 @@ BOOL Os2SalInfoPrinter::SetData( ULONG nFlags, ImplJobSetup* pSetupData )
{
nOS2PaperFormat = DJP_PSI_NONE;
// OS2 rechnet in Millimetern
- long nPaperWidth = pSetupData->mnPaperWidth / 100;
- long nPaperHeight = pSetupData->mnPaperHeight / 100;
+ long nPaperWidth = pSetupData->mnPaperWidth / 100;
+ long nPaperHeight = pSetupData->mnPaperHeight / 100;
// Ansonsten ueber die Papiergroesse suchen
for( int i = 0; i < mnFormCount; i++ )
{
@@ -1453,7 +1453,7 @@ void Os2SalInfoPrinter::GetPageInfo( const ImplJobSetup*,
HDC hDC = mhDC;
// search current form
- HCINFO aInfo;
+ HCINFO aInfo;
int nForms = DevQueryHardcopyCaps( hDC, 0, 0, &aInfo );
for( int i = 0; i < nForms; i++ )
{
@@ -1466,12 +1466,12 @@ void Os2SalInfoPrinter::GetPageInfo( const ImplJobSetup*,
long nYResolution;
DevQueryCaps( hDC, CAPS_HORIZONTAL_RESOLUTION, 1, &nXResolution );
DevQueryCaps( hDC, CAPS_VERTICAL_RESOLUTION, 1, &nYResolution );
- rPageOffX = aInfo.xLeftClip * nXResolution / 1000;
- rPageOffY = (aInfo.cy-aInfo.yTopClip) * nYResolution / 1000;
- rPageWidth = aInfo.cx * nXResolution / 1000;
+ rPageOffX = aInfo.xLeftClip * nXResolution / 1000;
+ rPageOffY = (aInfo.cy-aInfo.yTopClip) * nYResolution / 1000;
+ rPageWidth = aInfo.cx * nXResolution / 1000;
rPageHeight = aInfo.cy * nYResolution / 1000;
- rOutWidth = aInfo.xPels;
- rOutHeight = aInfo.yPels;
+ rOutWidth = aInfo.xPels;
+ rOutHeight = aInfo.yPels;
return;
}
}
@@ -1482,11 +1482,11 @@ void Os2SalInfoPrinter::GetPageInfo( const ImplJobSetup*,
long lCapsHeight = 0;
DevQueryCaps( hDC, CAPS_WIDTH, 1L, &lCapsWidth );
DevQueryCaps( hDC, CAPS_HEIGHT, 1L, &lCapsHeight );
- rPageOffX = 0;
- rPageOffY = 0;
- rOutWidth = lCapsWidth;
- rOutHeight = lCapsHeight;
- rPageWidth = rOutWidth;
+ rPageOffX = 0;
+ rPageOffY = 0;
+ rOutWidth = lCapsWidth;
+ rOutHeight = lCapsHeight;
+ rPageWidth = rOutWidth;
rPageHeight = rOutHeight;
}
@@ -1539,11 +1539,11 @@ void Os2SalInstance::DestroyPrinter( SalPrinter* pPrinter )
Os2SalPrinter::Os2SalPrinter()
{
- mhDC = 0;
- mhPS = 0;
- mpGraphics = NULL;
- mbAbort = FALSE;
- mbPrintDJPSupported = FALSE;
+ mhDC = 0;
+ mhPS = 0;
+ mpGraphics = NULL;
+ mbAbort = FALSE;
+ mbPrintDJPSupported = FALSE;
}
// -----------------------------------------------------------------------
@@ -1562,9 +1562,9 @@ BOOL Os2SalPrinter::StartJob( const XubString* pFileName,
bool bDirect,
ImplJobSetup* pSetupData )
{
- DEVOPENSTRUC aDevOpenStruc;
- LONG lType;
- APIRET rc;
+ DEVOPENSTRUC aDevOpenStruc;
+ LONG lType;
+ APIRET rc;
// prepare queue information
memset( &aDevOpenStruc, 0, sizeof( aDevOpenStruc ) );
@@ -1601,8 +1601,8 @@ BOOL Os2SalPrinter::StartJob( const XubString* pFileName,
}
// open device context
- SalData* pSalData = GetSalData();
- HAB hAB = pSalData->mhAB;
+ SalData* pSalData = GetSalData();
+ HAB hAB = pSalData->mhAB;
aDevOpenStruc.pdriv = (PDRIVDATA)pSetupData->mpDriverData;
mhDC = DevOpenDC( hAB,
lType,
@@ -1721,20 +1721,20 @@ SalGraphics* Os2SalPrinter::StartPage( ImplJobSetup* pSetupData, BOOL bNewJobSet
mbFirstPage = FALSE;
else
{
- PBYTE pJobData;
- LONG nJobDataSize;
- LONG nEscape;
+ PBYTE pJobData;
+ LONG nJobDataSize;
+ LONG nEscape;
if ( mbPrintDJPSupported && bNewJobSetup )
{
- nEscape = DEVESC_NEWFRAME_WPROP;
- nJobDataSize = ((PDRIVDATA)(pSetupData->mpDriverData))->cb;
- pJobData = (PBYTE)(pSetupData->mpDriverData);
+ nEscape = DEVESC_NEWFRAME_WPROP;
+ nJobDataSize = ((PDRIVDATA)(pSetupData->mpDriverData))->cb;
+ pJobData = (PBYTE)(pSetupData->mpDriverData);
}
else
{
- nEscape = DEVESC_NEWFRAME;
- nJobDataSize = 0;
- pJobData = NULL;
+ nEscape = DEVESC_NEWFRAME;
+ nJobDataSize = 0;
+ pJobData = NULL;
}
rc = DevEscape( mhDC,
nEscape,
@@ -1754,23 +1754,23 @@ SalGraphics* Os2SalPrinter::StartPage( ImplJobSetup* pSetupData, BOOL bNewJobSet
// create SalGraphics with copy of hPS
Os2SalGraphics* pGraphics = new Os2SalGraphics;
- pGraphics->mhDC = mhDC;
- pGraphics->mhPS = mhPS;
- pGraphics->mhWnd = 0;
- pGraphics->mbPrinter = TRUE;
- pGraphics->mbVirDev = FALSE;
- pGraphics->mbWindow = FALSE;
- pGraphics->mbScreen = FALSE;
- pGraphics->mnHeight = 0;
+ pGraphics->mhDC = mhDC;
+ pGraphics->mhPS = mhPS;
+ pGraphics->mhWnd = 0;
+ pGraphics->mbPrinter = TRUE;
+ pGraphics->mbVirDev = FALSE;
+ pGraphics->mbWindow = FALSE;
+ pGraphics->mbScreen = FALSE;
+ pGraphics->mnHeight = 0;
// search current form for actual page height
- HCINFO aInfo;
- int nForms = DevQueryHardcopyCaps( mhDC, 0, 0, &aInfo );
+ HCINFO aInfo;
+ int nForms = DevQueryHardcopyCaps( mhDC, 0, 0, &aInfo );
for( int i = 0; i < nForms; i++ )
{
if ( DevQueryHardcopyCaps( mhDC, i, 1, &aInfo ) >= 0 )
{
if ( aInfo.flAttributes & HCAPS_CURRENT )
- pGraphics->mnHeight = aInfo.yPels;
+ pGraphics->mnHeight = aInfo.yPels;
}
}
// use device caps if no form selected/found
diff --git a/vcl/os2/source/gdi/salvd.cxx b/vcl/os2/source/gdi/salvd.cxx
index 5f7ab7bb0cf0..15ad701ea8a9 100644
--- a/vcl/os2/source/gdi/salvd.cxx
+++ b/vcl/os2/source/gdi/salvd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,9 +60,9 @@ HBITMAP ImplCreateVirDevBitmap( HDC hDC, HPS hPS, long nDX, long nDY,
HBITMAP hBitmap;
BITMAPINFOHEADER2 aBitmapInfo;
memset( &aBitmapInfo, 0, sizeof( BITMAPINFOHEADER2 ) );
- aBitmapInfo.cbFix = sizeof( BITMAPINFOHEADER2 );
- aBitmapInfo.cx = nDX;
- aBitmapInfo.cy = nDY;
+ aBitmapInfo.cbFix = sizeof( BITMAPINFOHEADER2 );
+ aBitmapInfo.cx = nDX;
+ aBitmapInfo.cy = nDY;
aBitmapInfo.cPlanes = nPlanes;
aBitmapInfo.cBitCount = (nBitCount < 4) ? 4 : nBitCount;
hBitmap = GpiCreateBitmap( hPS, &aBitmapInfo, 0, NULL, NULL );
@@ -77,8 +77,8 @@ SalVirtualDevice* Os2SalInstance::CreateVirtualDevice( SalGraphics* pSGraphics,
const SystemGraphicsData* pData )
{
Os2SalGraphics* pGraphics = static_cast<Os2SalGraphics*>(pSGraphics);
- HAB hAB = GetSalData()->mhAB;
- SIZEL size;
+ HAB hAB = GetSalData()->mhAB;
+ SIZEL size;
// create device context (at this time allways display compatible)
DEVOPENSTRUC aDevOpenStruc = { NULL, "DISPLAY", NULL, NULL, NULL, NULL, NULL, NULL, NULL };
@@ -106,26 +106,26 @@ SalVirtualDevice* Os2SalInstance::CreateVirtualDevice( SalGraphics* pSGraphics,
}
// init data
- Os2SalVirtualDevice* pVDev = new Os2SalVirtualDevice;
- Os2SalGraphics* pVirGraphics = new Os2SalGraphics;
-
- pVirGraphics->mhDC = hDC;
- pVirGraphics->mhPS = hPS;
- pVirGraphics->mhWnd = 0;
- pVirGraphics->mnHeight = nDY;
- pVirGraphics->mbPrinter = FALSE;
- pVirGraphics->mbVirDev = TRUE;
- pVirGraphics->mbWindow = FALSE;
- pVirGraphics->mbScreen = pGraphics->mbScreen;
+ Os2SalVirtualDevice* pVDev = new Os2SalVirtualDevice;
+ Os2SalGraphics* pVirGraphics = new Os2SalGraphics;
+
+ pVirGraphics->mhDC = hDC;
+ pVirGraphics->mhPS = hPS;
+ pVirGraphics->mhWnd = 0;
+ pVirGraphics->mnHeight = nDY;
+ pVirGraphics->mbPrinter = FALSE;
+ pVirGraphics->mbVirDev = TRUE;
+ pVirGraphics->mbWindow = FALSE;
+ pVirGraphics->mbScreen = pGraphics->mbScreen;
ImplSalInitGraphics( pVirGraphics );
- pVDev->mhDC = hDC;
- pVDev->mhPS = hPS;
- pVDev->mhBmp = hBmp;
- pVDev->mhDefBmp = Ft2SetBitmap( hPS, hBmp );
- pVDev->mpGraphics = pVirGraphics;
- pVDev->mnBitCount = nBitCount;
- pVDev->mbGraphics = FALSE;
+ pVDev->mhDC = hDC;
+ pVDev->mhPS = hPS;
+ pVDev->mhBmp = hBmp;
+ pVDev->mhDefBmp = Ft2SetBitmap( hPS, hBmp );
+ pVDev->mpGraphics = pVirGraphics;
+ pVDev->mnBitCount = nBitCount;
+ pVDev->mbGraphics = FALSE;
return pVDev;
}
diff --git a/vcl/os2/source/window/salframe.cxx b/vcl/os2/source/window/salframe.cxx
index 743bdce64802..dc54c6ba5f56 100644
--- a/vcl/os2/source/window/salframe.cxx
+++ b/vcl/os2/source/window/salframe.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -83,10 +83,10 @@ ULONG Os2SalFrame::mnInputLang = 0;
// =======================================================================
// define a new flag
-#define SWP_CENTER (SWP_NOAUTOCLOSE<<4)
-#define SWP_SHOWMAXIMIZED (SWP_ACTIVATE | SWP_SHOW | SWP_MAXIMIZE)
-#define SWP_SHOWMINIMIZED (SWP_ACTIVATE | SWP_SHOW | SWP_MINIMIZE)
-#define SWP_SHOWNORMAL (SWP_ACTIVATE | SWP_SHOW | SWP_RESTORE)
+#define SWP_CENTER (SWP_NOAUTOCLOSE<<4)
+#define SWP_SHOWMAXIMIZED (SWP_ACTIVATE | SWP_SHOW | SWP_MAXIMIZE)
+#define SWP_SHOWMINIMIZED (SWP_ACTIVATE | SWP_SHOW | SWP_MINIMIZE)
+#define SWP_SHOWNORMAL (SWP_ACTIVATE | SWP_SHOW | SWP_RESTORE)
static LONG nScreenHeight = WinQuerySysValue( HWND_DESKTOP, SV_CYSCREEN);
static LONG nScreenWidth = WinQuerySysValue( HWND_DESKTOP, SV_CXSCREEN );
@@ -113,7 +113,7 @@ BOOL APIENTRY _WinQueryWindowPos( Os2SalFrame* pFrame, PSWP pswp)
BOOL rc = WinQueryWindowPos( pFrame->mhWndFrame, pswp);
#if OSL_DEBUG_LEVEL>1
- debug_printf( "> WinQueryWindowPos hwnd %x at %d,%d (%dx%d)\n",
+ debug_printf( "> WinQueryWindowPos hwnd %x at %d,%d (%dx%d)\n",
pFrame->mhWndFrame, pswp->x, pswp->y, pswp->cx, pswp->cy);
#endif
@@ -123,11 +123,11 @@ BOOL APIENTRY _WinQueryWindowPos( Os2SalFrame* pFrame, PSWP pswp)
if ( pParentFrame )
{
POINTL ptlOwner = {0};
-
- // coords are relative to screen, map to parent frame client area
+
+ // coords are relative to screen, map to parent frame client area
ptlOwner.x = pswp->x;
ptlOwner.y = pswp->y;
- WinMapWindowPoints( HWND_DESKTOP, pParentFrame->mhWndClient, &ptlOwner, 1);
+ WinMapWindowPoints( HWND_DESKTOP, pParentFrame->mhWndClient, &ptlOwner, 1);
pswp->x = ptlOwner.x;
pswp->y = ptlOwner.y;
// get parent client area size
@@ -143,7 +143,7 @@ BOOL APIENTRY _WinQueryWindowPos( Os2SalFrame* pFrame, PSWP pswp)
pswp->y = swpOwner.cy - (pswp->y + pswp->cy);
#if OSL_DEBUG_LEVEL>1
- debug_printf( "< WinQueryWindowPos hwnd %x at %d,%d (%dx%d)\n",
+ debug_printf( "< WinQueryWindowPos hwnd %x at %d,%d (%dx%d)\n",
pFrame->mhWndFrame, pswp->x, pswp->y, pswp->cx, pswp->cy);
#endif
return rc;
@@ -152,32 +152,32 @@ BOOL APIENTRY _WinQueryWindowPos( Os2SalFrame* pFrame, PSWP pswp)
BOOL APIENTRY _WinSetWindowPos( Os2SalFrame* pFrame, HWND hwndInsertBehind, LONG x, LONG y,
LONG cx, LONG cy, ULONG fl)
{
- SWP swpOwner = {0};
- POINTL ptlOwner = {0};
- HWND hParent = NULL;
+ SWP swpOwner = {0};
+ POINTL ptlOwner = {0};
+ HWND hParent = NULL;
#if OSL_DEBUG_LEVEL>1
- debug_printf( ">WinSetWindowPos hwnd %x at %d,%d (%dx%d) fl 0x%08x\n",
+ debug_printf( ">WinSetWindowPos hwnd %x at %d,%d (%dx%d) fl 0x%08x\n",
pFrame->mhWndFrame, x, y, cx, cy, fl);
#endif
// first resize window if requested
- if ( (fl & SWP_SIZE) ) {
- ULONG flag = SWP_SIZE;
- LONG nX = 0, nY = 0;
- LONG frameFrameX, frameFrameY, frameCaptionY;
+ if ( (fl & SWP_SIZE) ) {
+ ULONG flag = SWP_SIZE;
+ LONG nX = 0, nY = 0;
+ LONG frameFrameX, frameFrameY, frameCaptionY;
ImplSalCalcFrameSize( pFrame, frameFrameX, frameFrameY, frameCaptionY );
// if we change y size, we need to move the window down
// because os2 window origin is lower left corner
if (pFrame->maGeometry.nHeight != cy) {
- SWP aSWP;
+ SWP aSWP;
WinQueryWindowPos( pFrame->mhWndFrame, &aSWP);
nX = aSWP.x;
nY = aSWP.y - (cy + 2*frameFrameY + frameCaptionY - aSWP.cy);
flag |= SWP_MOVE;
}
- WinSetWindowPos( pFrame->mhWndFrame, NULL, nX, nY,
+ WinSetWindowPos( pFrame->mhWndFrame, NULL, nX, nY,
cx+2*frameFrameX, cy+2*frameFrameY+frameCaptionY, flag);
fl = fl & ~SWP_SIZE;
}
@@ -200,8 +200,8 @@ BOOL APIENTRY _WinSetWindowPos( Os2SalFrame* pFrame, HWND hwndInsertBehind, LONG
WinQueryWindowPos( hParent, &swpOwner);
//YD adjust to owner coordinates only when moving and not centering
- //if (!(fl & SWP_CENTER) && (fl & SWP_MOVE))
- if ((fl & SWP_MOVE))
+ //if (!(fl & SWP_CENTER) && (fl & SWP_MOVE))
+ if ((fl & SWP_MOVE))
{
// if SWP_CENTER is specified, change position to parent center
@@ -212,30 +212,30 @@ BOOL APIENTRY _WinSetWindowPos( Os2SalFrame* pFrame, HWND hwndInsertBehind, LONG
debug_printf( "_WinSetWindowPos SWP_CENTER\n");
#endif
fl = fl & ~SWP_CENTER;
- } else {
- // coords are relative to parent frame client area, map to screen
+ } else {
+ // coords are relative to parent frame client area, map to screen
// map Y to OS/2 system coordinates
ptlOwner.x = x;
ptlOwner.y = swpOwner.cy - (y + cy);
#if OSL_DEBUG_LEVEL>0
- debug_printf( "_WinSetWindowPos owner 0x%x at %d,%d (%dx%d) OS2\n",
+ debug_printf( "_WinSetWindowPos owner 0x%x at %d,%d (%dx%d) OS2\n",
hParent, ptlOwner.x, ptlOwner.y, swpOwner.cx, swpOwner.cy);
#endif
}
// map from client area to screen
- WinMapWindowPoints( hParent, HWND_DESKTOP, &ptlOwner, 1);
+ WinMapWindowPoints( hParent, HWND_DESKTOP, &ptlOwner, 1);
x = ptlOwner.x;
y = ptlOwner.y;
#if OSL_DEBUG_LEVEL>0
- debug_printf( "_WinSetWindowPos owner 0x%x at %d,%d (%dx%d) MAPPED OS2\n",
+ debug_printf( "_WinSetWindowPos owner 0x%x at %d,%d (%dx%d) MAPPED OS2\n",
hParent, ptlOwner.x, ptlOwner.y, swpOwner.cx, swpOwner.cy);
#endif
}
#if OSL_DEBUG_LEVEL>0
- debug_printf( "<WinSetWindowPos hwnd %x at %d,%d (%dx%d) fl=%x\n",
+ debug_printf( "<WinSetWindowPos hwnd %x at %d,%d (%dx%d) fl=%x\n",
pFrame->mhWndFrame, x, y, cx, cy, fl);
#endif
return WinSetWindowPos( pFrame->mhWndFrame, hwndInsertBehind, x, y, 0, 0, fl);
@@ -247,8 +247,8 @@ BOOL APIENTRY _WinSetWindowPos( Os2SalFrame* pFrame, HWND hwndInsertBehind, LONG
static void dumpWindowInfo( char* fnc, HWND hwnd)
{
SWP aSWP;
- HWND hwnd2;
- char szTitle[256];
+ HWND hwnd2;
+ char szTitle[256];
}
#endif
@@ -392,9 +392,9 @@ static void ImplSaveFrameState( Os2SalFrame* pFrame )
if ( bVisible )
pFrame->mnShowState = SWP_SHOWNORMAL;
pFrame->mbRestoreMaximize = FALSE;
- //debug_printf( "ImplSaveFrameState: window %08x at %d,%d (size %dx%d)\n",
- // pFrame->mhWndFrame,
- // pFrame->maState.mnX, pFrame->maState.mnY, pFrame->maState.mnWidth, pFrame->maState.mnHeight);
+ //debug_printf( "ImplSaveFrameState: window %08x at %d,%d (size %dx%d)\n",
+ // pFrame->mhWndFrame,
+ // pFrame->maState.mnX, pFrame->maState.mnY, pFrame->maState.mnWidth, pFrame->maState.mnHeight);
}
}
}
@@ -444,7 +444,7 @@ static void ImplSalCalcFrameSize( const Os2SalFrame* pFrame,
nCaptionY = WinQuerySysValue( HWND_DESKTOP, SV_CYTITLEBAR );
else
nCaptionY = 0;
-
+
#if OSL_DEBUG_LEVEL>0
//if (_bCapture)
debug_printf("ImplSalCalcFrameSize 0x%08x x=%d y=%d t=%d\n", pFrame->mhWndFrame, nFrameX, nFrameY, nCaptionY);
@@ -561,14 +561,14 @@ static USHORT aImplTranslateKeyTab[KEY_TAB_SIZE] =
SalFrame* ImplSalCreateFrame( Os2SalInstance* pInst, HWND hWndParent, ULONG nSalFrameStyle )
{
- SalData* pSalData = GetSalData();
- Os2SalFrame* pFrame = new Os2SalFrame;
- HWND hWndFrame;
- HWND hWndClient;
- ULONG nFrameFlags = FCF_NOBYTEALIGN | FCF_SCREENALIGN;
- ULONG nFrameStyle = 0;
- ULONG nClientStyle = WS_CLIPSIBLINGS;
- BOOL bSubFrame = FALSE;
+ SalData* pSalData = GetSalData();
+ Os2SalFrame* pFrame = new Os2SalFrame;
+ HWND hWndFrame;
+ HWND hWndClient;
+ ULONG nFrameFlags = FCF_NOBYTEALIGN | FCF_SCREENALIGN;
+ ULONG nFrameStyle = 0;
+ ULONG nClientStyle = WS_CLIPSIBLINGS;
+ BOOL bSubFrame = FALSE;
#if OSL_DEBUG_LEVEL>0
debug_printf(">ImplSalCreateFrame hWndParent 0x%x, nSalFrameStyle 0x%x\n", hWndParent, nSalFrameStyle);
@@ -607,7 +607,7 @@ SalFrame* ImplSalCreateFrame( Os2SalInstance* pInst, HWND hWndParent, ULONG nSal
nFrameFlags |= FCF_TASKLIST;
}
}
-
+
if( nSalFrameStyle & SAL_FRAME_STYLE_TOOLWINDOW )
{
pFrame->mbNoIcon = TRUE;
@@ -631,12 +631,12 @@ SalFrame* ImplSalCreateFrame( Os2SalInstance* pInst, HWND hWndParent, ULONG nSal
// create frame
//YD FIXME this is a potential bug with multiple threads and cuncurrent
//window creation, because this field is accessed in
- //WM_CREATE to get window data,
+ //WM_CREATE to get window data,
pSalData->mpCreateFrame = pFrame;
//YD FIXME if SAL_FRAME_CHILD is specified, use hWndParent as parent handle...
hWndFrame = WinCreateStdWindow( HWND_DESKTOP, nFrameStyle, &nFrameFlags,
- (PSZ)(bSubFrame ? SAL_SUBFRAME_CLASSNAME : SAL_FRAME_CLASSNAME),
+ (PSZ)(bSubFrame ? SAL_SUBFRAME_CLASSNAME : SAL_FRAME_CLASSNAME),
NULL,
nClientStyle, 0, 0, &hWndClient );
debug_printf("ImplSalCreateFrame hWndParent 0x%x, hWndFrame 0x%x, hWndClient 0x%x\n", hWndParent, hWndFrame, hWndClient);
@@ -647,7 +647,7 @@ SalFrame* ImplSalCreateFrame( Os2SalInstance* pInst, HWND hWndParent, ULONG nSal
}
// Parent setzen (Owner)
- if ( hWndParent != 0 && hWndParent != HWND_DESKTOP )
+ if ( hWndParent != 0 && hWndParent != HWND_DESKTOP )
WinSetOwner( hWndFrame, hWndParent );
Os2SalFrame* pParentFrame = GetWindowPtr( hWndParent );
@@ -690,7 +690,7 @@ SalFrame* ImplSalCreateFrame( Os2SalInstance* pInst, HWND hWndParent, ULONG nSal
// init OS/2 frame data
pFrame->mhAB = pInst->mhAB;
- // YD 18/08 under OS/2, invisible frames have size 0,0 at 0,0, so
+ // YD 18/08 under OS/2, invisible frames have size 0,0 at 0,0, so
// we need to set an initial size/position manually
SWP aSWP;
memset( &aSWP, 0, sizeof( aSWP ) );
@@ -796,7 +796,7 @@ Os2SalFrame::Os2SalFrame()
mbNoIcon = FALSE;
//mSelectedhMenu = 0;
//mLastActivatedhMenu = 0;
- mpParentFrame = NULL;
+ mpParentFrame = NULL;
memset( &maState, 0, sizeof( SalFrameState ) );
maSysData.nSize = sizeof( SystemEnvData );
@@ -1021,8 +1021,8 @@ void Os2SalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight,
USHORT nFlags )
{
// calculation frame size
- USHORT nEvent = 0;
- ULONG nPosFlags = 0;
+ USHORT nEvent = 0;
+ ULONG nPosFlags = 0;
#if OSL_DEBUG_LEVEL > 0
//dumpWindowInfo( "-Os2SalFrame::SetPosSize", mhWndFrame);
@@ -1061,7 +1061,7 @@ void Os2SalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight,
#endif
nEvent = (nEvent == SALEVENT_MOVE) ? SALEVENT_MOVERESIZE : SALEVENT_RESIZE;
}
-
+
// Default-Position, dann zentrieren, ansonsten Position beibehalten
if ( mbDefPos && !(nPosFlags & SWP_MOVE))
{
@@ -1129,14 +1129,14 @@ void Os2SalFrame::SetParent( SalFrame* pNewParent )
{
APIRET rc;
#if OSL_DEBUG_LEVEL>0
- debug_printf("Os2SalFrame::SetParent mhWndFrame 0x%08x to 0x%08x\n",
+ debug_printf("Os2SalFrame::SetParent mhWndFrame 0x%08x to 0x%08x\n",
static_cast<Os2SalFrame*>(this)->mhWndFrame,
static_cast<Os2SalFrame*>(pNewParent)->mhWndClient);
#endif
Os2SalFrame::mbInReparent = TRUE;
- //rc = WinSetParent(static_cast<Os2SalFrame*>(this)->mhWndFrame,
+ //rc = WinSetParent(static_cast<Os2SalFrame*>(this)->mhWndFrame,
// static_cast<Os2SalFrame*>(pNewParent)->mhWndClient, TRUE);
- rc = WinSetOwner(static_cast<Os2SalFrame*>(this)->mhWndFrame,
+ rc = WinSetOwner(static_cast<Os2SalFrame*>(this)->mhWndFrame,
static_cast<Os2SalFrame*>(pNewParent)->mhWndClient);
mpParentFrame = static_cast<Os2SalFrame*>(pNewParent);
Os2SalFrame::mbInReparent = FALSE;
@@ -1151,7 +1151,7 @@ bool Os2SalFrame::SetPluginParent( SystemParentData* pNewParent )
}
Os2SalFrame::mbInReparent = TRUE;
- rc = WinSetOwner(static_cast<Os2SalFrame*>(this)->mhWndFrame,
+ rc = WinSetOwner(static_cast<Os2SalFrame*>(this)->mhWndFrame,
pNewParent->hWnd);
Os2SalFrame::mbInReparent = FALSE;
return true;
@@ -1191,11 +1191,11 @@ void Os2SalFrame::GetClientSize( long& rWidth, long& rHeight )
void Os2SalFrame::SetWindowState( const SalFrameState* pState )
{
- LONG nX;
- LONG nY;
- LONG nWidth;
- LONG nHeight;
- ULONG nPosSize = 0;
+ LONG nX;
+ LONG nY;
+ LONG nWidth;
+ LONG nHeight;
+ ULONG nPosSize = 0;
#if OSL_DEBUG_LEVEL>0
debug_printf("Os2SalFrame::SetWindowState\n");
@@ -1207,7 +1207,7 @@ void Os2SalFrame::SetWindowState( const SalFrameState* pState )
BOOL bVisible = WinIsWindowVisible( mhWndFrame );
// get screen coordinates
- SWP aSWP;
+ SWP aSWP;
WinQueryWindowPos( mhWndFrame, &aSWP );
LONG nFrameX, nFrameY, nCaptionY;
ImplSalCalcFrameSize( this, nFrameX, nFrameY, nCaptionY );
@@ -1242,7 +1242,7 @@ void Os2SalFrame::SetWindowState( const SalFrameState* pState )
nHeight = (int)pState->mnHeight + nTopDeco + nBottomDeco;
else
nHeight = aSWP.cy;
-
+
#if OSL_DEBUG_LEVEL>0
debug_printf("Os2SalFrame::SetWindowState (%dx%d) at %d,%d\n", nWidth,nHeight,nX,nY);
#endif
@@ -1310,8 +1310,8 @@ void Os2SalFrame::SetWindowState( const SalFrameState* pState )
// Wenn Fenster nicht minimiert/maximiert ist oder nicht optisch
// umgesetzt werden muss, dann SetWindowPos() benutzen, da
// SetWindowPlacement() die TaskBar mit einrechnet
- if ( !(aPlacement.fl & SWP_MINIMIZE)
- && !( aPlacement.fl & SWP_MAXIMIZE )
+ if ( !(aPlacement.fl & SWP_MINIMIZE)
+ && !( aPlacement.fl & SWP_MAXIMIZE )
&& (!bVisible || (aPlacement.fl == SWP_RESTORE)) )
{
if( bUpdateHiddenFramePos )
@@ -1321,7 +1321,7 @@ void Os2SalFrame::SetWindowState( const SalFrameState* pState )
SetMaximizedFrameGeometry( mhWndFrame, this );
}
else
- WinSetWindowPos( mhWndFrame, 0, nX,
+ WinSetWindowPos( mhWndFrame, 0, nX,
nScreenHeight - (nY+nHeight), nWidth, nHeight, nPosSize);
}
else
@@ -1333,7 +1333,7 @@ void Os2SalFrame::SetWindowState( const SalFrameState* pState )
aPlacement.cx = nWidth;
aPlacement.cy = nHeight;
}
- WinSetWindowPos( mhWndFrame, 0, aPlacement.x, aPlacement.y,
+ WinSetWindowPos( mhWndFrame, 0, aPlacement.x, aPlacement.y,
aPlacement.cx, aPlacement.cy, aPlacement.fl );
}
@@ -1443,7 +1443,7 @@ static void ImplSalToTop( HWND hWnd, ULONG nFlags )
if ( nFlags & SAL_FRAME_TOTOP_RESTOREWHENMIN )
{
- ULONG nStyle;
+ ULONG nStyle;
if ( pFrame->mbRestoreMaximize )
nStyle = SWP_MAXIMIZE;
else
@@ -1458,7 +1458,7 @@ static void ImplSalToTop( HWND hWnd, ULONG nFlags )
void Os2SalFrame::ToTop( USHORT nFlags )
{
- nFlags &= ~SAL_FRAME_TOTOP_GRABFOCUS; // this flag is not needed on win32
+ nFlags &= ~SAL_FRAME_TOTOP_GRABFOCUS; // this flag is not needed on win32
// Post this Message to the window, because this only works
// in the thread of the window, which has create this window.
// We post this message to avoid deadlocks
@@ -1474,7 +1474,7 @@ void Os2SalFrame::SetPointer( PointerStyle ePointerStyle )
{
struct ImplPtrData
{
- HPOINTER mhPointer;
+ HPOINTER mhPointer;
ULONG mnSysId;
ULONG mnOwnId;
};
@@ -1588,7 +1588,7 @@ void Os2SalFrame::SetPointer( PointerStyle ePointerStyle )
#endif
//debug_printf("Os2SalFrame::SetPointer\n");
-
+
// Mousepointer loaded ?
if ( !aImplPtrTab[ePointerStyle].mhPointer )
{
@@ -1820,7 +1820,7 @@ XubString Os2SalFrame::GetKeyName( USHORT nCode )
case KEY_DELETE:
aCode = pLangTab[LSTR_KEY_DELETE];
break;
-
+
case KEY_ADD:
aCode += '+';
break;
@@ -1991,7 +1991,7 @@ static BOOL ImplOS2NameFontToVCLFont( const char* pFontName, Font& rFont )
rFont.SetItalic( ITALIC_NONE );
// search for a style embedded in the name, e.g. 'WarpSans Bold'
// because we need to split the style from the family name
- if (strstr( pFontName, " Bold")
+ if (strstr( pFontName, " Bold")
|| strstr( pFontName, " Italic")
|| strstr( pFontName, "-Normal"))
{
@@ -2014,13 +2014,13 @@ static BOOL ImplOS2NameFontToVCLFont( const char* pFontName, Font& rFont )
// store family name
rFont.SetName( ::rtl::OStringToOUString ( fontName, gsl_getSystemTextEncoding()) );
free( fontName);
- }
+ }
else
{
rFont.SetName( ::rtl::OStringToOUString (pFontName, gsl_getSystemTextEncoding()) );
rFont.SetStyleName( ::rtl::OStringToOUString ("", gsl_getSystemTextEncoding()) );
}
-
+
rFont.SetSize( Size( 0, nFontHeight ) );
return TRUE;
}
@@ -2451,7 +2451,7 @@ static long ImplHandleMouseMsg( HWND hWnd,
// and sent a mouse leave message to the application which killed the help window, ie ourself
if( !WinIsWindow( pFrame->mhAB, hWnd ) )
return 0;
-
+
#if OSL_DEBUG_LEVEL>10
//if (_bCapture)
debug_printf("ImplHandleMouseMsg mouse %d,%d\n",aMouseEvt.mnX,aMouseEvt.mnY);
@@ -2465,7 +2465,7 @@ static long ImplHandleMouseMsg( HWND hWnd,
// --- RTL --- (mirror mouse pos)
//if( Application::GetSettings().GetLayoutRTL() )
// aMouseEvt.mnX = pFrame->maGeometry.nWidth-1-aMouseEvt.mnX;
-
+
nRet = pFrame->CallCallback( nEvent, &aMouseEvt );
if ( nMsg == WM_MOUSEMOVE )
{
@@ -2498,13 +2498,13 @@ static long ImplHandleWheelMsg( HWND hWnd, UINT nMsg, MPARAM nMP1, MPARAM nMP2 )
aPt.y = pFrame->mnHeight - aPt.y - 1;
SalWheelMouseEvent aWheelEvt;
- aWheelEvt.mnTime = WinQueryMsgTime( pFrame->mhAB );
- aWheelEvt.mnX = aPt.x;
- aWheelEvt.mnY = aPt.y;
- aWheelEvt.mnCode = 0;
+ aWheelEvt.mnTime = WinQueryMsgTime( pFrame->mhAB );
+ aWheelEvt.mnX = aPt.x;
+ aWheelEvt.mnY = aPt.y;
+ aWheelEvt.mnCode = 0;
bool bNeg = (SHORT2FROMMP(nMP2) == SB_LINEDOWN || SHORT2FROMMP(nMP2) == SB_PAGEDOWN );
- aWheelEvt.mnDelta = bNeg ? -120 : 120;
- aWheelEvt.mnNotchDelta = bNeg ? -1 : 1;
+ aWheelEvt.mnDelta = bNeg ? -120 : 120;
+ aWheelEvt.mnNotchDelta = bNeg ? -1 : 1;
if (SHORT2FROMMP(nMP2) == SB_PAGEUP || SHORT2FROMMP(nMP2) == SB_PAGEDOWN)
aWheelEvt.mnScrollLines = SAL_WHEELMOUSE_EVENT_PAGESCROLL;
else
@@ -2538,7 +2538,7 @@ static USHORT ImplSalGetKeyCode( Os2SalFrame* pFrame, MPARAM aMP1, MPARAM aMP2 )
UCHAR nCharCode = (UCHAR)SHORT1FROMMP( aMP2 );
USHORT nKeyCode = (UCHAR)SHORT2FROMMP( aMP2 );
UCHAR nScanCode = (UCHAR)CHAR4FROMMP( aMP1 );
- USHORT rSVCode = 0;
+ USHORT rSVCode = 0;
// Ist virtueller KeyCode gesetzt und befindet sich der KeyCode in der
// Tabelle, dann mappen
@@ -2598,7 +2598,7 @@ static USHORT ImplSalGetKeyCode( Os2SalFrame* pFrame, MPARAM aMP1, MPARAM aMP2 )
rSVCode = KEY_COMMA;
if ( nCharCode == '.' )
rSVCode = KEY_POINT;
-
+
return rSVCode;
}
@@ -2606,15 +2606,15 @@ static USHORT ImplSalGetKeyCode( Os2SalFrame* pFrame, MPARAM aMP1, MPARAM aMP2 )
static void ImplUpdateInputLang( Os2SalFrame* pFrame )
{
- BOOL bLanguageChange = FALSE;
- ULONG nLang = 0;
- APIRET rc;
+ BOOL bLanguageChange = FALSE;
+ ULONG nLang = 0;
+ APIRET rc;
UconvObject uconv_object = NULL;
LocaleObject locale_object = NULL;
- UniChar *pinfo_item;
+ UniChar *pinfo_item;
- // we do not support change of input language while working,
- // so exit if already defined (mnInputLang is a static class field)
+ // we do not support change of input language while working,
+ // so exit if already defined (mnInputLang is a static class field)
if (pFrame->mnInputLang)
return;
@@ -2638,14 +2638,14 @@ static void ImplUpdateInputLang( Os2SalFrame* pFrame )
// keep input lang up-to-date
#if OSL_DEBUG_LEVEL>10
- debug_printf("ImplUpdateInputLang pFrame %08x lang changed from %d to %d\n",
+ debug_printf("ImplUpdateInputLang pFrame %08x lang changed from %d to %d\n",
pFrame, pFrame->mnInputLang, nLang);
#endif
pFrame->mnInputLang = nLang;
}
-static sal_Unicode ImplGetCharCode( Os2SalFrame* pFrame, USHORT nKeyFlags,
+static sal_Unicode ImplGetCharCode( Os2SalFrame* pFrame, USHORT nKeyFlags,
sal_Char nCharCode, UCHAR nScanCode )
{
ImplUpdateInputLang( pFrame );
@@ -2684,7 +2684,7 @@ static sal_Unicode ImplConvertKey( Os2SalFrame* pFrame, MPARAM aMP1, MPARAM aMP2
UCHAR nCharCode = (UCHAR)SHORT1FROMMP( aMP2 );
USHORT nKeyCode = (UCHAR)SHORT2FROMMP( aMP2 );
UCHAR nScanCode = (UCHAR)CHAR4FROMMP( aMP1 );
- sal_Unicode rSVCharCode = 0;
+ sal_Unicode rSVCharCode = 0;
// Ist Character-Code gesetzt
// !!! Bei CTRL/ALT ist KC_CHAR nicht gesetzt, jedoch moechten wir
@@ -2709,7 +2709,7 @@ static long ImplHandleKeyMsg( HWND hWnd,
USHORT nModCode = 0;
USHORT nSVCode = 0;
USHORT nOS2KeyCode = (UCHAR)SHORT2FROMMP( nMP2 );
- sal_Unicode nSVCharCode = 0;
+ sal_Unicode nSVCharCode = 0;
long nRet = 0;
Os2SalFrame* pFrame = GetWindowPtr( hWnd );
@@ -2882,17 +2882,17 @@ static void UpdateFrameGeometry( HWND hWnd, Os2SalFrame* pFrame )
if( !pFrame )
return;
- //SalFrame has a
- //maGeometry member that holds absolute screen positions (and needs to be
+ //SalFrame has a
+ //maGeometry member that holds absolute screen positions (and needs to be
//updated if the window is moved by the way).
-
+
// reset data
memset(&pFrame->maGeometry, 0, sizeof(SalFrameGeometry) );
- SWP swp;
+ SWP swp;
LONG nFrameX, nFrameY, nCaptionY;
-
- // get frame size
+
+ // get frame size
WinQueryWindowPos(pFrame->mhWndFrame, &swp);
if (swp.fl & SWP_MINIMIZE)
return;
@@ -2945,16 +2945,16 @@ static void ImplHandleMoveMsg( HWND hWnd)
ImplSalFrameFullScreenPos( pFrame );
pFrame->mbInMoveMsg = FALSE;
}
-
+
// Status merken
ImplSaveFrameState( pFrame );
-
+
// Call Hdl
//#93851 if we call this handler, VCL floating windows are not updated correctly
//ImplCallMoveHdl( hWnd );
}
-
+
ImplSalYieldMutexRelease();
}
else
@@ -3364,10 +3364,10 @@ inline void ImplHandleIMECloseCandidate( Os2SalFrame* pFrame )
MRESULT EXPENTRY SalFrameWndProc( HWND hWnd, ULONG nMsg,
MPARAM nMP1, MPARAM nMP2 )
{
- Os2SalFrame* pFrame = (Os2SalFrame*)GetWindowPtr( hWnd );
- MRESULT nRet = (MRESULT)0;
- BOOL bDef = TRUE;
- bool bCheckTimers= false;
+ Os2SalFrame* pFrame = (Os2SalFrame*)GetWindowPtr( hWnd );
+ MRESULT nRet = (MRESULT)0;
+ BOOL bDef = TRUE;
+ bool bCheckTimers= false;
#if OSL_DEBUG_LEVEL>10
if (nMsg!=WM_TIMER && nMsg!=WM_MOUSEMOVE)
diff --git a/vcl/os2/source/window/salmenu.cxx b/vcl/os2/source/window/salmenu.cxx
index fa8f74202b0a..92834fadfb9d 100644
--- a/vcl/os2/source/window/salmenu.cxx
+++ b/vcl/os2/source/window/salmenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ Os2SalMenu::~Os2SalMenu()
BOOL Os2SalMenu::VisibleMenuBar()
{
- return FALSE;
+ return FALSE;
}
void Os2SalMenu::SetFrame( const SalFrame *pFrame )
diff --git a/vcl/os2/source/window/salobj.cxx b/vcl/os2/source/window/salobj.cxx
index 0827f0de9a14..3b7c9b0b3266 100644
--- a/vcl/os2/source/window/salobj.cxx
+++ b/vcl/os2/source/window/salobj.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,8 +56,8 @@ static BOOL ImplIsSysWindowOrChild( HWND hWndParent, HWND hWndChild )
static Os2SalObject* ImplFindOs2SalObject( HWND hWndChild )
{
- SalData* pSalData = GetSalData();
- Os2SalObject* pObject = pSalData->mpFirstObject;
+ SalData* pSalData = GetSalData();
+ Os2SalObject* pObject = pSalData->mpFirstObject;
while ( pObject )
{
if ( ImplIsSysWindowOrChild( pObject->mhWndChild, hWndChild ) )
@@ -77,8 +77,8 @@ BOOL EXPENTRY SalSysMsgProc( HAB /* hAB */, QMSG* pMsg, ULONG /* fs */ )
(pMsg->msg == WM_BUTTON2DOWN) ||
(pMsg->msg == WM_BUTTON3DOWN) )
{
- SalData* pSalData = GetSalData();
- Os2SalObject* pObject = ImplFindOs2SalObject( pMsg->hwnd );
+ SalData* pSalData = GetSalData();
+ Os2SalObject* pObject = ImplFindOs2SalObject( pMsg->hwnd );
if ( pObject )
WinPostMsg( pObject->mhWnd, SALOBJ_MSG_TOTOP, 0, 0 );
}
@@ -95,9 +95,9 @@ BOOL EXPENTRY SalSysMsgProc( HAB /* hAB */, QMSG* pMsg, ULONG /* fs */ )
MRESULT EXPENTRY SalSysObjWndProc( HWND hWnd, ULONG nMsg,
MPARAM nMP1, MPARAM nMP2 )
{
- Os2SalObject* pSysObj;
- MRESULT nRet = 0;
- int bDef = TRUE;
+ Os2SalObject* pSysObj;
+ MRESULT nRet = 0;
+ int bDef = TRUE;
#if OSL_DEBUG_LEVEL>0
debug_printf( "SalSysObjWndProc hWnd 0x%x nMsg %d\n", hWnd, nMsg);
@@ -111,8 +111,8 @@ MRESULT EXPENTRY SalSysObjWndProc( HWND hWnd, ULONG nMsg,
break;
case WM_PAINT:
{
- HPS hPS;
- RECTL aRect;
+ HPS hPS;
+ RECTL aRect;
hPS = WinBeginPaint( hWnd, NULLHANDLE, &aRect );
WinEndPaint( hPS );
bDef = FALSE;
@@ -194,8 +194,8 @@ MRESULT EXPENTRY SalSysObjWndProc( HWND hWnd, ULONG nMsg,
MRESULT EXPENTRY SalSysObjChildWndProc( HWND hWnd, ULONG nMsg,
MPARAM nMP1, MPARAM nMP2 )
{
- MRESULT nRet = 0;
- int bDef = TRUE;
+ MRESULT nRet = 0;
+ int bDef = TRUE;
debug_printf( "SalSysObjChildWndProc hWnd 0x%x nMsg %d\n", hWnd, nMsg);
@@ -210,8 +210,8 @@ MRESULT EXPENTRY SalSysObjChildWndProc( HWND hWnd, ULONG nMsg,
break;
case WM_PAINT:
{
- HPS hPS;
- RECTL aRect;
+ HPS hPS;
+ RECTL aRect;
hPS = WinBeginPaint( hWnd, NULLHANDLE, &aRect );
WinEndPaint( hPS );
bDef = FALSE;
@@ -229,8 +229,8 @@ MRESULT EXPENTRY SalSysObjChildWndProc( HWND hWnd, ULONG nMsg,
MRESULT EXPENTRY SalSysObjClipWndProc( HWND hWnd, ULONG nMsg,
MPARAM nMP1, MPARAM nMP2 )
{
- MRESULT nRet = 0;
- int bDef = TRUE;
+ MRESULT nRet = 0;
+ int bDef = TRUE;
debug_printf( "SalSysObjClipWndProc hWnd 0x%x nMsg %d\n", hWnd, nMsg);
@@ -283,8 +283,8 @@ MRESULT EXPENTRY SalSysObjClipWndProc( HWND hWnd, ULONG nMsg,
break;
case WM_PAINT:
{
- HPS hPS;
- RECTL aRect;
+ HPS hPS;
+ RECTL aRect;
hPS = WinBeginPaint( hWnd, NULLHANDLE, &aRect );
WinEndPaint( hPS );
bDef = FALSE;
@@ -384,15 +384,15 @@ Os2SalObject::Os2SalObject()
{
SalData* pSalData = GetSalData();
- mhLastClipWnd = HWND_TOP;
+ mhLastClipWnd = HWND_TOP;
- mhWnd = 0;
- mhWndChild = 0;
- mhLastFocusWnd = 0;
- maSysData.nSize = sizeof( SystemEnvData );
- mnHeight = 0;
- mpInst = NULL;
- mpProc = ImplSalObjCallbackDummy;
+ mhWnd = 0;
+ mhWndChild = 0;
+ mhLastFocusWnd = 0;
+ maSysData.nSize = sizeof( SystemEnvData );
+ mnHeight = 0;
+ mpInst = NULL;
+ mpProc = ImplSalObjCallbackDummy;
// Hook installieren, wenn es das erste Os2SalObject ist
if ( !pSalData->mpFirstObject )
diff --git a/vcl/qa/complex/memCheck/CheckMemoryUsage.java b/vcl/qa/complex/memCheck/CheckMemoryUsage.java
index 9f8272240403..0e61cf22c3e7 100644
--- a/vcl/qa/complex/memCheck/CheckMemoryUsage.java
+++ b/vcl/qa/complex/memCheck/CheckMemoryUsage.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,12 +47,12 @@ import util.WriterTools;
import util.utils;
/**
- * Documents are opened and exported with StarOffice. The memory usage of
+ * Documents are opened and exported with StarOffice. The memory usage of
* StarOffice is monitored and if the usage exceeds the allowed kilobytes,
- * the test is failed. Used for monitoring the StarOffice process is the
+ * the test is failed. Used for monitoring the StarOffice process is the
* command line tool 'pmap', available on Solaris or Linux. This test will not
- * run on Windows.<br>Test procedure: every given document type is searched in
- * the source directory
+ * run on Windows.<br>Test procedure: every given document type is searched in
+ * the source directory
* Needed paramters:
* <ul>
* <li>"TestDocumentPath" - the path where test documents are located.</li>
@@ -85,7 +85,7 @@ public class CheckMemoryUsage extends ComplexTestCase {
private String[][] sDocuments;
private int iAllowMemoryIncrease = 10;
private int iExportDocCount = 25;
-
+
/**
* Get all test methods
* @return The test methods.
@@ -93,7 +93,7 @@ public class CheckMemoryUsage extends ComplexTestCase {
public String[] getTestMethodNames() {
return new String[] {"loadAndSaveDocuments"};
}
-
+
/**
* Collect all documnets to load and all filters used for export.
*/
@@ -104,12 +104,12 @@ public class CheckMemoryUsage extends ComplexTestCase {
+ "displays the memory usage of StarOffice.");
failed("Test does not run on Windows, only on Solaris or Linux.");
}
-
+
// how many times is every document exported.
int count = param.getInt("ExportDocCount");
if (count != 0)
iExportDocCount = count;
-
+
// get the temp dir for creating the command scripts.
sTempDir = System.getProperty("java.io.tmpdir");
sProcessIdCommand = sTempDir + "getPS";
@@ -130,7 +130,7 @@ public class CheckMemoryUsage extends ComplexTestCase {
v.add(sCalcDoc);
v.add(sImpressDoc);
}
- // store a file extension
+ // store a file extension
sDocTypeExportFilter = new String[v.size()][2];
for (int i=0; i<v.size(); i++) {
// 2do: error routine for wrong given params
@@ -173,14 +173,14 @@ public class CheckMemoryUsage extends ComplexTestCase {
f = new File(sOfficeMemoryCommand);
f.delete();
}
-
+
/**
* Thet etst function: load documents and save them using the given filters
* for each given document type.
*/
public void loadAndSaveDocuments() {
int storageBefore = getOfficeMemoryUsage();
-
+
XMultiServiceFactory xMSF = (XMultiServiceFactory)param.getMSF();
// iterate over all document types
@@ -233,14 +233,14 @@ public class CheckMemoryUsage extends ComplexTestCase {
mem = storageAfter;
storageAfter = getOfficeMemoryUsage();
shortWait(1000);
- }
+ }
assure("The Office consumes now " + (storageAfter - storageBefore)
+ "K more memory than at the start of the test; allowed were "
- + iAllowMemoryIncrease * iExportDocCount + "K.",
+ + iAllowMemoryIncrease * iExportDocCount + "K.",
storageAfter - storageBefore < iAllowMemoryIncrease * iExportDocCount);
-
+
}
-
+
/**
* Get the process ID from the Office
* @return the Id as String
@@ -258,7 +258,7 @@ public class CheckMemoryUsage extends ComplexTestCase {
String id = aToken.nextToken();
return id;
}
-
+
/**
* Get the memory usage of the Office in KByte.
* @return The memory used by the Office.
@@ -271,16 +271,16 @@ public class CheckMemoryUsage extends ComplexTestCase {
String text = processID.getOutputText();
if (text == null || text.equals("") || text.indexOf(' ') == -1) {
failed("Could not determine Office memory usage. Check " + sOfficeMemoryCommand);
- }
+ }
StringTokenizer aToken = new StringTokenizer(text);
// this works, because the output of pmap is quite standardized.
aToken.nextToken();
String mem = aToken.nextToken();
- mem = mem.substring(0, mem.indexOf('K'));
+ mem = mem.substring(0, mem.indexOf('K'));
Integer memory = new Integer(mem);
return memory.intValue();
}
-
+
/**
* Write a script file and set its rights to rwxrwxrwx.
* @param fileName The name of the created file
@@ -309,9 +309,9 @@ public class CheckMemoryUsage extends ComplexTestCase {
Thread.sleep(milliSeconds);
}
catch(java.lang.InterruptedException e) { // ignore
- }
+ }
}
-
+
/**
* Own file filter, will just return ok for all files that end with a given
* suffix
diff --git a/vcl/qa/complex/persistent_window_states/DocumentHandle.java b/vcl/qa/complex/persistent_window_states/DocumentHandle.java
index 0b32eaaeff51..c7c3b6a045b0 100644
--- a/vcl/qa/complex/persistent_window_states/DocumentHandle.java
+++ b/vcl/qa/complex/persistent_window_states/DocumentHandle.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/qa/complex/persistent_window_states/PersistentWindowTest.java b/vcl/qa/complex/persistent_window_states/PersistentWindowTest.java
index edceeeafd883..1e5d3a8e7a2c 100644
--- a/vcl/qa/complex/persistent_window_states/PersistentWindowTest.java
+++ b/vcl/qa/complex/persistent_window_states/PersistentWindowTest.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx
index cee78645b9f2..9bfb6d2d5bab 100644
--- a/vcl/source/app/dbggui.cxx
+++ b/vcl/source/app/dbggui.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -626,9 +626,9 @@ BOOL DbgWindow::Close()
// remember window position
ByteString aState( GetWindowState() );
DbgData* pData = DbgGetData();
- strncpy( pData->aDbgWinState,
- aState.GetBuffer(),
- std::min( sizeof( pData->aDbgWinState ),
+ strncpy( pData->aDbgWinState,
+ aState.GetBuffer(),
+ std::min( sizeof( pData->aDbgWinState ),
size_t(aState.Len() + 1U )) );
pData->aDbgWinState[ sizeof( pData->aDbgWinState ) - 1 ] = 0;
// and save for next session
@@ -998,7 +998,7 @@ DbgDialog::DbgDialog() :
maOverwrite.SetPosSizePixel( LogicToPixel( Point( 205, 130 ), aAppMap ),
aButtonSize );
}
-
+
{
maHookOSLBox.Show();
maHookOSLBox.SetText( XubString( RTL_CONSTASCII_USTRINGPARAM( "Reroute osl debug ~messages" ) ) );
@@ -1526,7 +1526,7 @@ void DbgDialogTest( Window* pWindow )
"%s should have a mnemonic char (~): %s",
pClass,
ByteString( aErrorText, RTL_TEXTENCODING_UTF8 ).GetBuffer() );
-
+
// check text width
int aWidth=0;
switch( pChild->GetType() )
@@ -1575,7 +1575,7 @@ void DbgDialogTest( Window* pWindow )
int aWidth=0;
if( nAccelPos != STRING_NOTFOUND )
{
- aWidth = pChild->GetTextWidth( aText, 0, nAccelPos ) +
+ aWidth = pChild->GetTextWidth( aText, 0, nAccelPos ) +
pChild->GetTextWidth( aText, nAccelPos+1, aText.Len() - nAccelPos - 1);
}
else
@@ -1799,7 +1799,7 @@ class DbgMessageBox : public ErrorBox
SetText( String( RTL_CONSTASCII_USTRINGPARAM("Debug Output") ) );
AddButton( String( RTL_CONSTASCII_USTRINGPARAM( "Copy" ) ), COPY_BUTTON_ID, 0 );
}
-
+
virtual void Click()
{
if( GetCurButtonId() == COPY_BUTTON_ID )
diff --git a/vcl/source/app/dndhelp.cxx b/vcl/source/app/dndhelp.cxx
index ceaa8f904816..46a0eac19d4a 100644
--- a/vcl/source/app/dndhelp.cxx
+++ b/vcl/source/app/dndhelp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@ vcl::unohelper::DragAndDropWrapper::DragAndDropWrapper( DragAndDropClient* pClie
vcl::unohelper::DragAndDropWrapper::~DragAndDropWrapper()
{
}
-
+
// uno::XInterface
uno::Any vcl::unohelper::DragAndDropWrapper::queryInterface( const uno::Type & rType ) throw(uno::RuntimeException)
{
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
index 277154394541..c6fc815854d0 100644
--- a/vcl/source/app/help.cxx
+++ b/vcl/source/app/help.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,15 +41,15 @@
// =======================================================================
-#define HELPWINSTYLE_QUICK 0
-#define HELPWINSTYLE_BALLOON 1
+#define HELPWINSTYLE_QUICK 0
+#define HELPWINSTYLE_BALLOON 1
-#define HELPTEXTMARGIN_QUICK 3
-#define HELPTEXTMARGIN_BALLOON 6
+#define HELPTEXTMARGIN_QUICK 3
+#define HELPTEXTMARGIN_BALLOON 6
-#define HELPDELAY_NORMAL 1
-#define HELPDELAY_SHORT 2
-#define HELPDELAY_NONE 3
+#define HELPDELAY_NORMAL 1
+#define HELPDELAY_SHORT 2
+#define HELPDELAY_NONE 3
// =======================================================================
@@ -125,8 +125,8 @@ BOOL Help::StartContextHelp()
Window* pWindow = pSVData->maWinData.mpFocusWin;
if ( pWindow )
{
- Point aMousePos = pWindow->OutputToScreenPixel( pWindow->GetPointerPosPixel() );
- HelpEvent aHelpEvent( aMousePos, HELPMODE_CONTEXT );
+ Point aMousePos = pWindow->OutputToScreenPixel( pWindow->GetPointerPosPixel() );
+ HelpEvent aHelpEvent( aMousePos, HELPMODE_CONTEXT );
pWindow->RequestHelp( aHelpEvent );
return TRUE;
}
@@ -322,7 +322,7 @@ HelpTextWindow::HelpTextWindow( Window* pParent, const XubString& rText, USHORT
mnHelpWinStyle = nHelpWinStyle;
mnStyle = nStyle;
// on windows this will raise the application window, because help windows are system windows now
-// EnableAlwaysOnTop();
+// EnableAlwaysOnTop();
EnableSaveBackground();
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
@@ -397,9 +397,9 @@ void HelpTextWindow::SetHelpText( const String& rHelpText )
}
else // HELPWINSTYLE_BALLOON
{
- Point aTmpPoint;
- USHORT nCharsInLine = 35 + ((maHelpText.Len()/100)*5);
- XubString aXXX;
+ Point aTmpPoint;
+ USHORT nCharsInLine = 35 + ((maHelpText.Len()/100)*5);
+ XubString aXXX;
aXXX.Fill( nCharsInLine, 'x' ); // Durchschnittliche Breite, damit nicht jedes Fenster anders.
long nWidth = GetTextWidth( aXXX );
Size aTmpSize( nWidth, 0x7FFFFFFF );
@@ -635,7 +635,7 @@ void ImplShowHelpWindow( Window* pParent, USHORT nHelpWinStyle, USHORT nStyle,
ULONG nCurTime = Time::GetSystemTicks();
if( (nCurTime - pSVData->maHelpData.mnLastHelpHideTime) < pParent->GetSettings().GetHelpSettings().GetTipDelay() )
nDelayMode = HELPDELAY_NONE;
-
+
DBG_ASSERT( !pHelpWin, "Noch ein HelpWin ?!" );
pHelpWin = new HelpTextWindow( pParent, rHelpText, nHelpWinStyle, nStyle );
pSVData->maHelpData.mpHelpWin = pHelpWin;
@@ -643,7 +643,7 @@ void ImplShowHelpWindow( Window* pParent, USHORT nHelpWinStyle, USHORT nStyle,
if ( pHelpArea )
pHelpWin->SetHelpArea( *pHelpArea );
- // positioning
+ // positioning
Size aSz = pHelpWin->CalcOutSize();
pHelpWin->SetOutputSizePixel( aSz );
ImplSetHelpWindowPos( pHelpWin, nHelpWinStyle, nStyle, rScreenPos, pHelpArea );
@@ -681,9 +681,9 @@ void ImplDestroyHelpWindow( bool bUpdateHideTime )
void ImplSetHelpWindowPos( Window* pHelpWin, USHORT nHelpWinStyle, USHORT nStyle,
const Point& rPos, const Rectangle* pHelpArea )
{
- Point aPos = rPos;
- Size aSz = pHelpWin->GetSizePixel();
- Rectangle aScreenRect = pHelpWin->ImplGetFrameWindow()->GetDesktopRectPixel();
+ Point aPos = rPos;
+ Size aSz = pHelpWin->GetSizePixel();
+ Rectangle aScreenRect = pHelpWin->ImplGetFrameWindow()->GetDesktopRectPixel();
aPos = pHelpWin->GetParent()->ImplGetFrameWindow()->OutputToAbsoluteScreenPixel( aPos );
// get mouse screen coords
Point mPos( pHelpWin->GetParent()->ImplGetFrameWindow()->GetPointerPosPixel() );
diff --git a/vcl/source/app/i18nhelp.cxx b/vcl/source/app/i18nhelp.cxx
index 6841d84b424b..c5cd3e796bb6 100644
--- a/vcl/source/app/i18nhelp.cxx
+++ b/vcl/source/app/i18nhelp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,16 +87,16 @@ LocaleDataWrapper& vcl::I18nHelper::ImplGetLocaleDataWrapper() const
return *mpLocaleDataWrapper;
}
-const ::com::sun::star::lang::Locale& vcl::I18nHelper::getLocale() const
+const ::com::sun::star::lang::Locale& vcl::I18nHelper::getLocale() const
{
- return maLocale;
+ return maLocale;
}
inline bool is_formatting_mark( sal_Unicode c )
{
- if( (c >= 0x200B) && (c <= 0x200F) ) // BiDi and zero-width-markers
+ if( (c >= 0x200B) && (c <= 0x200F) ) // BiDi and zero-width-markers
return true;
- if( (c >= 0x2028) && (c <= 0x202E) ) // BiDi and paragraph-markers
+ if( (c >= 0x2028) && (c <= 0x202E) ) // BiDi and paragraph-markers
return true;
return false;
}
@@ -105,7 +105,7 @@ inline bool is_formatting_mark( sal_Unicode c )
the transliteration. The real solution would have been an additional TransliterationModule
to ignore these marks during transliteration; however changin the code in i18npool that actually
implements this could produce unwanted side effects.
-
+
Of course this copying around is not really good, but looking at i18npool, one more time
will not hurt.
*/
@@ -136,7 +136,7 @@ sal_Int32 vcl::I18nHelper::CompareString( const String& rStr1, const String& rSt
((vcl::I18nHelper*)this)->mpTransliterationWrapper = NULL;
}
-
+
String aStr1( filterFormattingChars(rStr1) );
String aStr2( filterFormattingChars(rStr2) );
return ImplGetTransliterationWrapper().compareString( aStr1, aStr2 );
diff --git a/vcl/source/app/idlemgr.cxx b/vcl/source/app/idlemgr.cxx
index 775c57cc7b99..c90dc4cd297c 100644
--- a/vcl/source/app/idlemgr.cxx
+++ b/vcl/source/app/idlemgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 08f199d5281c..78de44aae9c8 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/app/session.cxx b/vcl/source/app/session.cxx
index 6874eb80285b..c3a36fb1c537 100644
--- a/vcl/source/app/session.cxx
+++ b/vcl/source/app/session.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,10 +53,10 @@ class VCLSession : public cppu::WeakComponentImplHelper1 < XSessionManagerClient
{
struct Listener
{
- Reference< XSessionManagerListener > m_xListener;
- bool m_bInteractionRequested;
- bool m_bInteractionDone;
- bool m_bSaveDone;
+ Reference< XSessionManagerListener > m_xListener;
+ bool m_bInteractionRequested;
+ bool m_bInteractionDone;
+ bool m_bSaveDone;
Listener( const Reference< XSessionManagerListener >& xListener )
: m_xListener( xListener ),
@@ -66,13 +66,13 @@ class VCLSession : public cppu::WeakComponentImplHelper1 < XSessionManagerClient
{}
};
- std::list< Listener > m_aListeners;
- SalSession* m_pSession;
- osl::Mutex m_aMutex;
- bool m_bInteractionRequested;
- bool m_bInteractionGranted;
- bool m_bInteractionDone;
- bool m_bSaveDone;
+ std::list< Listener > m_aListeners;
+ SalSession* m_pSession;
+ osl::Mutex m_aMutex;
+ bool m_bInteractionRequested;
+ bool m_bInteractionGranted;
+ bool m_bInteractionDone;
+ bool m_bSaveDone;
static void SalSessionEventProc( SalSessionEvent* pEvent );
static VCLSession* pOneInstance;
@@ -84,7 +84,7 @@ class VCLSession : public cppu::WeakComponentImplHelper1 < XSessionManagerClient
public:
VCLSession();
virtual ~VCLSession();
-
+
virtual void SAL_CALL addSessionManagerListener( const Reference< XSessionManagerListener >& xListener ) throw( RuntimeException );
virtual void SAL_CALL removeSessionManagerListener( const Reference< XSessionManagerListener>& xListener ) throw( RuntimeException );
virtual void SAL_CALL queryInteraction( const Reference< XSessionManagerListener >& xListener ) throw( RuntimeException );
@@ -136,7 +136,7 @@ void VCLSession::callSaveRequested( bool bShutdown, bool bCancelable )
// without session we assume UI is always possible,
// so it was reqeusted and granted
m_bInteractionRequested = m_bInteractionGranted = m_pSession ? false : true;
-
+
// answer the session manager even if no listeners available anymore
DBG_ASSERT( ! aListeners.empty(), "saveRequested but no listeners !" );
if( aListeners.empty() )
@@ -178,7 +178,7 @@ void VCLSession::callInteractionGranted( bool bInteractionGranted )
ULONG nAcquireCount = Application::ReleaseSolarMutex();
for( std::list< Listener >::const_iterator it = aListeners.begin(); it != aListeners.end(); ++it )
it->m_xListener->approveInteraction( bInteractionGranted );
-
+
Application::AcquireSolarMutex( nAcquireCount );
}
@@ -248,7 +248,7 @@ void VCLSession::SalSessionEventProc( SalSessionEvent* pEvent )
void SAL_CALL VCLSession::addSessionManagerListener( const Reference<XSessionManagerListener>& xListener ) throw( RuntimeException )
{
osl::MutexGuard aGuard( m_aMutex );
-
+
m_aListeners.push_back( Listener( xListener ) );
}
@@ -266,7 +266,7 @@ void SAL_CALL VCLSession::removeSessionManagerListener( const Reference<XSession
}
else
++it;
- }
+ }
}
void SAL_CALL VCLSession::queryInteraction( const Reference<XSessionManagerListener>& xListener ) throw( RuntimeException )
@@ -290,8 +290,8 @@ void SAL_CALL VCLSession::queryInteraction( const Reference<XSessionManagerListe
{
if( it->m_xListener == xListener )
{
- it->m_bInteractionRequested = true;
- it->m_bInteractionDone = false;
+ it->m_bInteractionRequested = true;
+ it->m_bInteractionDone = false;
}
}
}
@@ -365,7 +365,7 @@ Reference< XInterface > SAL_CALL vcl_session_createInstance( const Reference< XM
ImplSVData* pSVData = ImplGetSVData();
if( ! pSVData->xSMClient.is() )
pSVData->xSMClient = new VCLSession();
-
+
return Reference< XInterface >(pSVData->xSMClient, UNO_QUERY );
}
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index df3c0a5c62ac..ddcaf0d6bbaf 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -430,11 +430,11 @@ ImplStyleData::ImplStyleData()
mnSelectionOptions = 0;
mnDisplayOptions = 0;
mnOptions = 0;
- mnAutoMnemonic = 1;
- mnToolbarIconSize = STYLE_TOOLBAR_ICONSIZE_UNKNOWN;
- mnSymbolsStyle = STYLE_SYMBOLS_AUTO;
- mnUseImagesInMenus = STYLE_MENUIMAGES_AUTO;
- mnPreferredSymbolsStyle = STYLE_SYMBOLS_AUTO;
+ mnAutoMnemonic = 1;
+ mnToolbarIconSize = STYLE_TOOLBAR_ICONSIZE_UNKNOWN;
+ mnSymbolsStyle = STYLE_SYMBOLS_AUTO;
+ mnUseImagesInMenus = STYLE_MENUIMAGES_AUTO;
+ mnPreferredSymbolsStyle = STYLE_SYMBOLS_AUTO;
mpFontOptions = NULL;
SetStandardStyles();
@@ -532,17 +532,17 @@ ImplStyleData::ImplStyleData( const ImplStyleData& rData ) :
mnSelectionOptions = rData.mnSelectionOptions;
mnDisplayOptions = rData.mnDisplayOptions;
mnOptions = rData.mnOptions;
- mnHighContrast = rData.mnHighContrast;
- mnUseSystemUIFonts = rData.mnUseSystemUIFonts;
- mnUseFlatBorders = rData.mnUseFlatBorders;
- mnUseFlatMenues = rData.mnUseFlatMenues;
- mnAutoMnemonic = rData.mnAutoMnemonic;
- mnUseImagesInMenus = rData.mnUseImagesInMenus;
- mbPreferredUseImagesInMenus = rData.mbPreferredUseImagesInMenus;
- mnSkipDisabledInMenus = rData.mnSkipDisabledInMenus;
- mnToolbarIconSize = rData.mnToolbarIconSize;
- mnSymbolsStyle = rData.mnSymbolsStyle;
- mnPreferredSymbolsStyle = rData.mnPreferredSymbolsStyle;
+ mnHighContrast = rData.mnHighContrast;
+ mnUseSystemUIFonts = rData.mnUseSystemUIFonts;
+ mnUseFlatBorders = rData.mnUseFlatBorders;
+ mnUseFlatMenues = rData.mnUseFlatMenues;
+ mnAutoMnemonic = rData.mnAutoMnemonic;
+ mnUseImagesInMenus = rData.mnUseImagesInMenus;
+ mbPreferredUseImagesInMenus = rData.mbPreferredUseImagesInMenus;
+ mnSkipDisabledInMenus = rData.mnSkipDisabledInMenus;
+ mnToolbarIconSize = rData.mnToolbarIconSize;
+ mnSymbolsStyle = rData.mnSymbolsStyle;
+ mnPreferredSymbolsStyle = rData.mnPreferredSymbolsStyle;
mpFontOptions = rData.mpFontOptions;
}
@@ -615,7 +615,7 @@ void ImplStyleData::SetStandardStyles()
maLinkColor = Color( COL_BLUE );
maVisitedLinkColor = Color( 0x00, 0x00, 0xCC );
maHighlightLinkColor = Color( COL_LIGHTBLUE );
- maFontColor = Color( COL_BLACK );
+ maFontColor = Color( COL_BLACK );
mnRadioButtonStyle &= ~STYLE_RADIOBUTTON_STYLE;
mnCheckBoxStyle &= ~STYLE_CHECKBOX_STYLE;
@@ -628,12 +628,12 @@ void ImplStyleData::SetStandardStyles()
mnFloatTitleHeight = 13;
mnTearOffTitleHeight = 8;
mnMenuBarHeight = 14;
- mnHighContrast = 0;
- mnUseSystemUIFonts = 1;
- mnUseFlatBorders = 0;
- mnUseFlatMenues = 0;
- mbPreferredUseImagesInMenus = TRUE;
- mnSkipDisabledInMenus = (USHORT)FALSE;
+ mnHighContrast = 0;
+ mnUseSystemUIFonts = 1;
+ mnUseFlatBorders = 0;
+ mnUseFlatMenues = 0;
+ mbPreferredUseImagesInMenus = TRUE;
+ mnSkipDisabledInMenus = (USHORT)FALSE;
Gradient aGrad( GRADIENT_LINEAR, DEFAULT_WORKSPACE_GRADIENT_START_COLOR, DEFAULT_WORKSPACE_GRADIENT_END_COLOR );
maWorkspaceGradient = Wallpaper( aGrad );
@@ -1034,7 +1034,7 @@ BOOL StyleSettings::operator ==( const StyleSettings& rSet ) const
return TRUE;
if ( (mpData->mnOptions == rSet.mpData->mnOptions) &&
- (mpData->mnAutoMnemonic == rSet.mpData->mnAutoMnemonic) &&
+ (mpData->mnAutoMnemonic == rSet.mpData->mnAutoMnemonic) &&
(mpData->mnLogoDisplayTime == rSet.mpData->mnLogoDisplayTime) &&
(mpData->mnDragFullOptions == rSet.mpData->mnDragFullOptions) &&
(mpData->mnAnimationOptions == rSet.mpData->mnAnimationOptions) &&
@@ -1060,10 +1060,10 @@ BOOL StyleSettings::operator ==( const StyleSettings& rSet ) const
(mpData->mnCheckBoxStyle == rSet.mpData->mnCheckBoxStyle) &&
(mpData->mnPushButtonStyle == rSet.mpData->mnPushButtonStyle) &&
(mpData->mnTabControlStyle == rSet.mpData->mnTabControlStyle) &&
- (mpData->mnHighContrast == rSet.mpData->mnHighContrast) &&
- (mpData->mnUseSystemUIFonts == rSet.mpData->mnUseSystemUIFonts) &&
- (mpData->mnUseFlatBorders == rSet.mpData->mnUseFlatBorders) &&
- (mpData->mnUseFlatMenues == rSet.mpData->mnUseFlatMenues) &&
+ (mpData->mnHighContrast == rSet.mpData->mnHighContrast) &&
+ (mpData->mnUseSystemUIFonts == rSet.mpData->mnUseSystemUIFonts) &&
+ (mpData->mnUseFlatBorders == rSet.mpData->mnUseFlatBorders) &&
+ (mpData->mnUseFlatMenues == rSet.mpData->mnUseFlatMenues) &&
(mpData->maFaceColor == rSet.mpData->maFaceColor) &&
(mpData->maCheckedColor == rSet.mpData->maCheckedColor) &&
(mpData->maLightColor == rSet.mpData->maLightColor) &&
@@ -1120,11 +1120,11 @@ BOOL StyleSettings::operator ==( const StyleSettings& rSet ) const
(mpData->maRadioCheckFont == rSet.mpData->maRadioCheckFont) &&
(mpData->maPushButtonFont == rSet.mpData->maPushButtonFont) &&
(mpData->maFieldFont == rSet.mpData->maFieldFont) &&
- (mpData->maIconFont == rSet.mpData->maIconFont) &&
- (mpData->mnUseImagesInMenus == rSet.mpData->mnUseImagesInMenus) &&
+ (mpData->maIconFont == rSet.mpData->maIconFont) &&
+ (mpData->mnUseImagesInMenus == rSet.mpData->mnUseImagesInMenus) &&
(mpData->mbPreferredUseImagesInMenus == rSet.mpData->mbPreferredUseImagesInMenus) &&
- (mpData->mnSkipDisabledInMenus == rSet.mpData->mnSkipDisabledInMenus) &&
- (mpData->maFontColor == rSet.mpData->maFontColor ))
+ (mpData->mnSkipDisabledInMenus == rSet.mpData->mnSkipDisabledInMenus) &&
+ (mpData->maFontColor == rSet.mpData->maFontColor ))
return TRUE;
else
return FALSE;
@@ -1135,8 +1135,8 @@ BOOL StyleSettings::operator ==( const StyleSettings& rSet ) const
ImplMiscData::ImplMiscData()
{
mnRefCount = 1;
- mnEnableATT = sal::static_int_cast<USHORT>(~0U);
- mnDisablePrinting = sal::static_int_cast<USHORT>(~0U);
+ mnEnableATT = sal::static_int_cast<USHORT>(~0U);
+ mnDisablePrinting = sal::static_int_cast<USHORT>(~0U);
static const char* pEnv = getenv("SAL_DECIMALSEP_ENABLED" ); // set default without UI
mbEnableLocalizedDecimalSep = (pEnv != NULL) ? TRUE : FALSE;
}
@@ -1146,8 +1146,8 @@ ImplMiscData::ImplMiscData()
ImplMiscData::ImplMiscData( const ImplMiscData& rData )
{
mnRefCount = 1;
- mnEnableATT = rData.mnEnableATT;
- mnDisablePrinting = rData.mnDisablePrinting;
+ mnEnableATT = rData.mnEnableATT;
+ mnDisablePrinting = rData.mnDisablePrinting;
mbEnableLocalizedDecimalSep = rData.mbEnableLocalizedDecimalSep;
}
@@ -1219,8 +1219,8 @@ BOOL MiscSettings::operator ==( const MiscSettings& rSet ) const
if ( mpData == rSet.mpData )
return TRUE;
- if ( (mpData->mnEnableATT == rSet.mpData->mnEnableATT ) &&
- (mpData->mnDisablePrinting == rSet.mpData->mnDisablePrinting ) &&
+ if ( (mpData->mnEnableATT == rSet.mpData->mnEnableATT ) &&
+ (mpData->mnDisablePrinting == rSet.mpData->mnDisablePrinting ) &&
(mpData->mbEnableLocalizedDecimalSep == rSet.mpData->mbEnableLocalizedDecimalSep ) )
return TRUE;
else
@@ -1341,7 +1341,7 @@ void MiscSettings::SetEnableATToolSupport( BOOL bEnable )
DWORD cbData = sizeof(Data);
if( ERROR_SUCCESS == RegQueryValueEx(hkey, "SupportAssistiveTechnology",
- NULL, &dwType, Data, &cbData) )
+ NULL, &dwType, Data, &cbData) )
{
switch (dwType)
{
@@ -1354,7 +1354,7 @@ void MiscSettings::SetEnableATToolSupport( BOOL bEnable )
case REG_DWORD:
((DWORD *) Data)[0] = bEnable ? 1 : 0;
RegSetValueEx(hkey, "SupportAssistiveTechnology",
- NULL, dwType, Data, sizeof(DWORD));
+ NULL, dwType, Data, sizeof(DWORD));
break;
default:
// Unsupported registry type
@@ -1862,7 +1862,7 @@ BOOL AllSettings::operator ==( const AllSettings& rSet ) const
(mpData->maNotificationSettings == rSet.mpData->maNotificationSettings) &&
(mpData->maHelpSettings == rSet.mpData->maHelpSettings) &&
(mpData->mnSystemUpdate == rSet.mpData->mnSystemUpdate) &&
- (mpData->maLocale == rSet.mpData->maLocale) &&
+ (mpData->maLocale == rSet.mpData->maLocale) &&
(mpData->mnWindowUpdate == rSet.mpData->mnWindowUpdate) )
{
return TRUE;
diff --git a/vcl/source/app/sound.cxx b/vcl/source/app/sound.cxx
index cae4991b3f18..30ecf5c3a3a4 100644
--- a/vcl/source/app/sound.cxx
+++ b/vcl/source/app/sound.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/app/stdtext.cxx b/vcl/source/app/stdtext.cxx
index 22b51d8afef5..ba8d69abbd3e 100644
--- a/vcl/source/app/stdtext.cxx
+++ b/vcl/source/app/stdtext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index f9c21b462ab0..b86477f32fb4 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -183,12 +183,12 @@ struct ImplEventHook
struct ImplPostEventData
{
- ULONG mnEvent;
- const Window* mpWin;
- ULONG mnEventId;
- KeyEvent maKeyEvent;
- MouseEvent maMouseEvent;
-
+ ULONG mnEvent;
+ const Window* mpWin;
+ ULONG mnEventId;
+ KeyEvent maKeyEvent;
+ MouseEvent maMouseEvent;
+
ImplPostEventData( ULONG nEvent, const Window* pWin, const KeyEvent& rKeyEvent ) :
mnEvent( nEvent ), mpWin( pWin ), mnEventId( 0 ), maKeyEvent( rKeyEvent ) {}
@@ -457,7 +457,7 @@ void Application::Execute()
inline void ImplYield( bool i_bWait, bool i_bAllEvents )
{
ImplSVData* pSVData = ImplGetSVData();
-
+
// run timers that have timed out
if ( !pSVData->mbNoCallTimer )
while ( pSVData->mbNotAllTimerCalled )
@@ -474,7 +474,7 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents )
// flush lazy deleted objects
if( pSVData->maAppData.mnDispatchLevel == 0 )
vcl::LazyDelete::flush();
-
+
// the system timer events will not necesseraly come in in non waiting mode
// e.g. on aqua; need to trigger timer checks manually
if( pSVData->maAppData.mbNoYield && !pSVData->mbNoCallTimer )
@@ -707,7 +707,7 @@ void Application::SetSettings( const AllSettings& rSettings )
{
GetSettings();
*pSVData->maAppData.mpSettings = rSettings;
- ResMgr::SetDefaultLocale( rSettings.GetUILocale() );
+ ResMgr::SetDefaultLocale( rSettings.GetUILocale() );
}
else
{
@@ -717,7 +717,7 @@ void Application::SetSettings( const AllSettings& rSettings )
delete pSVData->mpResMgr;
pSVData->mpResMgr = NULL;
}
- ResMgr::SetDefaultLocale( rSettings.GetUILocale() );
+ ResMgr::SetDefaultLocale( rSettings.GetUILocale() );
*pSVData->maAppData.mpSettings = rSettings;
ULONG nChangeFlags = aOldSettings.GetChangeFlags( *pSVData->maAppData.mpSettings );
if ( nChangeFlags )
@@ -919,21 +919,21 @@ BOOL Application::HandleKey( ULONG nEvent, Window *pWin, KeyEvent* pKeyEvent )
ULONG Application::PostKeyEvent( ULONG nEvent, Window *pWin, KeyEvent* pKeyEvent )
{
const SolarMutexGuard aGuard;
- ULONG nEventId = 0;
-
+ ULONG nEventId = 0;
+
if( pWin && pKeyEvent )
{
ImplPostEventData* pPostEventData = new ImplPostEventData( nEvent, pWin, *pKeyEvent );
-
+
PostUserEvent( nEventId,
STATIC_LINK( NULL, Application, PostEventHandler ),
pPostEventData );
-
+
if( nEventId )
{
pPostEventData->mnEventId = nEventId;
aPostedEventList.push_back( ImplPostEventPair( pWin, pPostEventData ) );
- }
+ }
else
delete pPostEventData;
}
@@ -946,29 +946,29 @@ ULONG Application::PostKeyEvent( ULONG nEvent, Window *pWin, KeyEvent* pKeyEvent
ULONG Application::PostMouseEvent( ULONG nEvent, Window *pWin, MouseEvent* pMouseEvent )
{
const SolarMutexGuard aGuard;
- ULONG nEventId = 0;
-
+ ULONG nEventId = 0;
+
if( pWin && pMouseEvent )
{
Point aTransformedPos( pMouseEvent->GetPosPixel() );
-
+
aTransformedPos.X() += pWin->mnOutOffX;
aTransformedPos.Y() += pWin->mnOutOffY;
-
+
const MouseEvent aTransformedEvent( aTransformedPos, pMouseEvent->GetClicks(), pMouseEvent->GetMode(),
pMouseEvent->GetButtons(), pMouseEvent->GetModifier() );
ImplPostEventData* pPostEventData = new ImplPostEventData( nEvent, pWin, aTransformedEvent );
-
+
PostUserEvent( nEventId,
STATIC_LINK( NULL, Application, PostEventHandler ),
pPostEventData );
-
+
if( nEventId )
{
pPostEventData->mnEventId = nEventId;
aPostedEventList.push_back( ImplPostEventPair( pWin, pPostEventData ) );
- }
+ }
else
delete pPostEventData;
}
@@ -981,35 +981,35 @@ ULONG Application::PostMouseEvent( ULONG nEvent, Window *pWin, MouseEvent* pMous
IMPL_STATIC_LINK_NOINSTANCE( Application, PostEventHandler, void*, pCallData )
{
const SolarMutexGuard aGuard;
- ImplPostEventData* pData = static_cast< ImplPostEventData * >( pCallData );
- const void* pEventData;
+ ImplPostEventData* pData = static_cast< ImplPostEventData * >( pCallData );
+ const void* pEventData;
ULONG nEvent;
- const ULONG nEventId = pData->mnEventId;
-
+ const ULONG nEventId = pData->mnEventId;
+
switch( pData->mnEvent )
{
- case VCLEVENT_WINDOW_MOUSEMOVE:
+ case VCLEVENT_WINDOW_MOUSEMOVE:
nEvent = SALEVENT_EXTERNALMOUSEMOVE;
- pEventData = &pData->maMouseEvent;
+ pEventData = &pData->maMouseEvent;
break;
-
- case VCLEVENT_WINDOW_MOUSEBUTTONDOWN:
+
+ case VCLEVENT_WINDOW_MOUSEBUTTONDOWN:
nEvent = SALEVENT_EXTERNALMOUSEBUTTONDOWN;
pEventData = &pData->maMouseEvent;
break;
-
- case VCLEVENT_WINDOW_MOUSEBUTTONUP:
- nEvent = SALEVENT_EXTERNALMOUSEBUTTONUP;
+
+ case VCLEVENT_WINDOW_MOUSEBUTTONUP:
+ nEvent = SALEVENT_EXTERNALMOUSEBUTTONUP;
pEventData = &pData->maMouseEvent;
break;
- case VCLEVENT_WINDOW_KEYINPUT:
- nEvent = SALEVENT_EXTERNALKEYINPUT;
+ case VCLEVENT_WINDOW_KEYINPUT:
+ nEvent = SALEVENT_EXTERNALKEYINPUT;
pEventData = &pData->maKeyEvent;
break;
-
- case VCLEVENT_WINDOW_KEYUP:
- nEvent = SALEVENT_EXTERNALKEYUP;
+
+ case VCLEVENT_WINDOW_KEYUP:
+ nEvent = SALEVENT_EXTERNALKEYUP;
pEventData = &pData->maKeyEvent;
break;
@@ -1021,10 +1021,10 @@ IMPL_STATIC_LINK_NOINSTANCE( Application, PostEventHandler, void*, pCallData )
if( pData->mpWin && pData->mpWin->mpWindowImpl->mpFrameWindow && pEventData )
ImplWindowFrameProc( pData->mpWin->mpWindowImpl->mpFrameWindow, NULL, (USHORT) nEvent, pEventData );
-
+
// remove this event from list of posted events, watch for destruction of internal data
::std::list< ImplPostEventPair >::iterator aIter( aPostedEventList.begin() );
-
+
while( aIter != aPostedEventList.end() )
{
if( nEventId == (*aIter).second->mnEventId )
@@ -1035,7 +1035,7 @@ IMPL_STATIC_LINK_NOINSTANCE( Application, PostEventHandler, void*, pCallData )
else
++aIter;
}
-
+
return 0;
}
@@ -1047,14 +1047,14 @@ void Application::RemoveMouseAndKeyEvents( Window* pWin )
// remove all events for specific window, watch for destruction of internal data
::std::list< ImplPostEventPair >::iterator aIter( aPostedEventList.begin() );
-
+
while( aIter != aPostedEventList.end() )
{
if( pWin == (*aIter).first )
{
if( (*aIter).second->mnEventId )
RemoveUserEvent( (*aIter).second->mnEventId );
-
+
delete (*aIter).second;
aIter = aPostedEventList.erase( aIter );
}
@@ -1071,12 +1071,12 @@ BOOL Application::IsProcessedMouseOrKeyEvent( ULONG nEventId )
// find event
::std::list< ImplPostEventPair >::iterator aIter( aPostedEventList.begin() );
-
+
while( aIter != aPostedEventList.end() )
{
if( (*aIter).second->mnEventId == nEventId )
return FALSE;
-
+
else
++aIter;
}
@@ -1409,8 +1409,8 @@ unsigned int Application::GetBestScreen( const Rectangle& i_rRect )
{
if( IsMultiDisplay() )
return GetDefaultDisplayNumber();
-
- const unsigned int nScreens = GetScreenCount();
+
+ const unsigned int nScreens = GetScreenCount();
unsigned int nBestMatchScreen = 0;
unsigned long nOverlap = 0;
for( unsigned int i = 0; i < nScreens; i++ )
@@ -1433,7 +1433,7 @@ unsigned int Application::GetBestScreen( const Rectangle& i_rRect )
}
if( nOverlap > 0 )
return nBestMatchScreen;
-
+
// finally the screen which center is nearest to the rect is the best
const Point aCenter( (i_rRect.Left() + i_rRect.Right())/2,
(i_rRect.Top() + i_rRect.Bottom())/2 );
@@ -1598,12 +1598,12 @@ Window* Application::GetDefDialogParent()
{
DBG_ERROR( "Window hierarchy corrupted!" );
pSVData->maWinData.mpFocusWin = NULL; // avoid further access
- return NULL;
+ return NULL;
}
-
+
// MAV: before the implementation has used only decorated windows,
// but it is not true in case of ActiveX or plugin scenario,
- // so this check is commented out
+ // so this check is commented out
// if( pWin->mpWindowImpl->mpFrameWindow->GetStyle() & (WB_MOVEABLE | WB_SIZEABLE) )
return pWin->mpWindowImpl->mpFrameWindow->ImplGetWindow();
// else
@@ -2041,7 +2041,7 @@ BOOL InitAccessBridge( BOOL bShowCancel, BOOL &rCancelled )
(void) rCancelled; // unused
#else
bRet = ImplInitAccessBridge( bShowCancel, rCancelled );
-
+
if( !bRet && bShowCancel && !rCancelled )
{
// disable accessibility if the user chooses to continue
diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx
index db166af1b295..269ca4700cab 100644
--- a/vcl/source/app/svdata.cxx
+++ b/vcl/source/app/svdata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ using namespace rtl;
namespace
{
- struct private_aImplSVData :
+ struct private_aImplSVData :
public rtl::Static<ImplSVData, private_aImplSVData> {};
}
@@ -178,7 +178,7 @@ Window* ImplGetDefaultWindow()
// First test if we already have a default window.
// Don't only place a single if..else inside solar mutex lockframe
- // because then we might have to wait for the solar mutex what is not neccessary
+ // because then we might have to wait for the solar mutex what is not neccessary
// if we already have a default window.
if ( !pSVData->mpDefaultWin )
@@ -211,7 +211,7 @@ ResMgr* ImplGetResMgr()
{
::com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILocale();
pSVData->mpResMgr = ResMgr::SearchCreateResMgr( VCL_CREATERESMGR_NAME( vcl ), aLocale );
-
+
static bool bMessageOnce = false;
if( !pSVData->mpResMgr && ! bMessageOnce )
{
@@ -232,7 +232,7 @@ ResId VclResId( sal_Int32 nId )
ResMgr* pMgr = ImplGetResMgr();
if( ! pMgr )
throw std::bad_alloc();
-
+
return ResId( nId, *pMgr );
}
@@ -251,7 +251,7 @@ public:
AccessBridgeCurrentContext(
const com::sun::star::uno::Reference< com::sun::star::uno::XCurrentContext > &context ) :
m_prevContext( context ) {}
-
+
// XCurrentContext
virtual com::sun::star::uno::Any SAL_CALL getValueByName( const rtl::OUString& Name )
throw (com::sun::star::uno::RuntimeException);
@@ -307,7 +307,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
if( xFactory.is() )
{
- Reference< XExtendedToolkit > xToolkit =
+ Reference< XExtendedToolkit > xToolkit =
Reference< XExtendedToolkit >(Application::GetVCLToolkit(), UNO_QUERY);
Sequence< Any > arguments(1);
@@ -317,7 +317,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
// for a disabled user. Use native message boxes which are accessible without java support.
// No need to do this when activated by Tools-Options dialog ..
if( bAllowCancel )
- {
+ {
// customize the java-not-available-interaction-handler entry within the
// current context when called at startup.
com::sun::star::uno::ContextLayer layer(
@@ -325,22 +325,22 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
pSVData->mxAccessBridge = xFactory->createInstanceWithArguments(
OUString::createFromAscii( "com.sun.star.accessibility.AccessBridge" ),
- arguments
+ arguments
);
}
else
{
pSVData->mxAccessBridge = xFactory->createInstanceWithArguments(
OUString::createFromAscii( "com.sun.star.accessibility.AccessBridge" ),
- arguments
+ arguments
);
}
-
+
if( !pSVData->mxAccessBridge.is() )
bSuccess = false;
}
}
-
+
return bSuccess;
}
@@ -365,7 +365,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
if( SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL == ret )
rCancelled = TRUE;
}
-
+
return false;
}
@@ -390,7 +390,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
if( SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL == ret )
rCancelled = TRUE;
}
-
+
return false;
}
@@ -415,7 +415,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
if( SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL == ret )
rCancelled = TRUE;
}
-
+
return false;
}
@@ -440,7 +440,7 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
if( SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL == ret )
rCancelled = TRUE;
}
-
+
return false;
}
@@ -473,8 +473,8 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
aMessage += String(ResId(SV_ACCESSERROR_OK_CANCEL_MSG, *pResMgr));
int ret = ImplGetSalSystem()->ShowNativeMessageBox(
- aTitle,
- ReplaceJavaErrorMessages(aMessage),
+ aTitle,
+ ReplaceJavaErrorMessages(aMessage),
SALSYSTEM_SHOWNATIVEMSGBOX_BTNCOMBI_OK_CANCEL,
SALSYSTEM_SHOWNATIVEMSGBOX_BTN_CANCEL);
@@ -487,14 +487,14 @@ bool ImplInitAccessBridge(BOOL bAllowCancel, BOOL &rCancelled)
// The user tried to activate accessibility support using Tools-Options dialog,
// so we don't offer to terminate here !
ImplGetSalSystem()->ShowNativeMessageBox(
- aTitle,
- ReplaceJavaErrorMessages(aMessage),
+ aTitle,
+ ReplaceJavaErrorMessages(aMessage),
SALSYSTEM_SHOWNATIVEMSGBOX_BTNCOMBI_OK,
SALSYSTEM_SHOWNATIVEMSGBOX_BTN_OK);
}
}
}
-
+
return false;
}
diff --git a/vcl/source/app/svmainhook.cxx b/vcl/source/app/svmainhook.cxx
index 7291a141a16f..8b6e5fe61255 100644
--- a/vcl/source/app/svmainhook.cxx
+++ b/vcl/source/app/svmainhook.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ static void RunSVMain(void *pData)
// running
while (!CFRunLoopIsWaiting(*tcx->pRunLoopRef))
usleep(100);
-
+
*tcx->pRet = ImplSVMain();
// Force exit since some JVMs won't shutdown when only exit() is invoked
diff --git a/vcl/source/app/timer.cxx b/vcl/source/app/timer.cxx
index 7749aa8ba0de..80b1f1047e63 100644
--- a/vcl/source/app/timer.cxx
+++ b/vcl/source/app/timer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@
// =======================================================================
-#define MAX_TIMER_PERIOD ((ULONG)0xFFFFFFFF)
+#define MAX_TIMER_PERIOD ((ULONG)0xFFFFFFFF)
// ---------------------
// - TimeManager-Types -
@@ -50,20 +50,20 @@
struct ImplTimerData
{
- ImplTimerData* mpNext; // Pointer to the next Instance
- Timer* mpSVTimer; // Pointer to SV Timer instance
- ULONG mnUpdateTime; // Last Update Time
- ULONG mnTimerUpdate; // TimerCallbackProcs on stack
- BOOL mbDelete; // Wurde Timer waehren Update() geloescht
- BOOL mbInTimeout; // Befinden wir uns im Timeout-Handler
+ ImplTimerData* mpNext; // Pointer to the next Instance
+ Timer* mpSVTimer; // Pointer to SV Timer instance
+ ULONG mnUpdateTime; // Last Update Time
+ ULONG mnTimerUpdate; // TimerCallbackProcs on stack
+ BOOL mbDelete; // Wurde Timer waehren Update() geloescht
+ BOOL mbInTimeout; // Befinden wir uns im Timeout-Handler
};
// =======================================================================
void Timer::ImplDeInitTimer()
{
- ImplSVData* pSVData = ImplGetSVData();
- ImplTimerData* pTimerData = pSVData->mpFirstTimerData;
+ ImplSVData* pSVData = ImplGetSVData();
+ ImplTimerData* pTimerData = pSVData->mpFirstTimerData;
if ( pTimerData )
{
@@ -80,8 +80,8 @@ void Timer::ImplDeInitTimer()
}
while ( pTimerData );
- pSVData->mpFirstTimerData = NULL;
- pSVData->mnTimerPeriod = 0;
+ pSVData->mpFirstTimerData = NULL;
+ pSVData->mnTimerPeriod = 0;
delete pSVData->mpSalTimer;
pSVData->mpSalTimer = NULL;
}
@@ -105,12 +105,12 @@ static void ImplStartTimer( ImplSVData* pSVData, ULONG nMS )
void Timer::ImplTimerCallbackProc()
{
- ImplSVData* pSVData = ImplGetSVData();
- ImplTimerData* pTimerData;
- ImplTimerData* pPrevTimerData;
- ULONG nMinPeriod = MAX_TIMER_PERIOD;
- ULONG nDeltaTime;
- ULONG nTime = Time::GetSystemTicks();
+ ImplSVData* pSVData = ImplGetSVData();
+ ImplTimerData* pTimerData;
+ ImplTimerData* pPrevTimerData;
+ ULONG nMinPeriod = MAX_TIMER_PERIOD;
+ ULONG nDeltaTime;
+ ULONG nTime = Time::GetSystemTicks();
if ( pSVData->mbNoCallTimer )
return;
@@ -220,21 +220,21 @@ void Timer::ImplTimerCallbackProc()
Timer::Timer()
{
- mpTimerData = NULL;
- mnTimeout = 1;
- mbAuto = FALSE;
- mbActive = FALSE;
+ mpTimerData = NULL;
+ mnTimeout = 1;
+ mbAuto = FALSE;
+ mbActive = FALSE;
}
// -----------------------------------------------------------------------
Timer::Timer( const Timer& rTimer )
{
- mpTimerData = NULL;
- mnTimeout = rTimer.mnTimeout;
- mbAuto = FALSE;
- mbActive = FALSE;
- maTimeoutHdl = rTimer.maTimeoutHdl;
+ mpTimerData = NULL;
+ mnTimeout = rTimer.mnTimeout;
+ mbAuto = FALSE;
+ mbActive = FALSE;
+ maTimeoutHdl = rTimer.maTimeoutHdl;
if ( rTimer.IsActive() )
Start();
@@ -293,12 +293,12 @@ void Timer::Start()
}
// insert timer and start
- mpTimerData = new ImplTimerData;
- mpTimerData->mpSVTimer = this;
- mpTimerData->mnUpdateTime = Time::GetSystemTicks();
- mpTimerData->mnTimerUpdate = pSVData->mnTimerUpdate;
- mpTimerData->mbDelete = FALSE;
- mpTimerData->mbInTimeout = FALSE;
+ mpTimerData = new ImplTimerData;
+ mpTimerData->mpSVTimer = this;
+ mpTimerData->mnUpdateTime = Time::GetSystemTicks();
+ mpTimerData->mnTimerUpdate = pSVData->mnTimerUpdate;
+ mpTimerData->mbDelete = FALSE;
+ mpTimerData->mbInTimeout = FALSE;
// !!!!! Wegen SFX hinten einordnen !!!!!
ImplTimerData* pPrev = NULL;
@@ -323,9 +323,9 @@ void Timer::Start()
}
else
{
- mpTimerData->mnUpdateTime = Time::GetSystemTicks();
- mpTimerData->mnTimerUpdate = pSVData->mnTimerUpdate;
- mpTimerData->mbDelete = FALSE;
+ mpTimerData->mnUpdateTime = Time::GetSystemTicks();
+ mpTimerData->mnTimerUpdate = pSVData->mnTimerUpdate;
+ mpTimerData->mbDelete = FALSE;
}
}
@@ -346,9 +346,9 @@ Timer& Timer::operator=( const Timer& rTimer )
if ( IsActive() )
Stop();
- mbActive = FALSE;
- mnTimeout = rTimer.mnTimeout;
- maTimeoutHdl = rTimer.maTimeoutHdl;
+ mbActive = FALSE;
+ mnTimeout = rTimer.mnTimeout;
+ maTimeoutHdl = rTimer.maTimeoutHdl;
if ( rTimer.IsActive() )
Start();
diff --git a/vcl/source/app/unohelp.cxx b/vcl/source/app/unohelp.cxx
index 4cd397151081..d49f5f888acb 100644
--- a/vcl/source/app/unohelp.cxx
+++ b/vcl/source/app/unohelp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,13 +58,13 @@
using namespace ::com::sun::star;
using namespace ::rtl;
-#define DOSTRING( x ) #x
-#define STRING( x ) DOSTRING( x )
+#define DOSTRING( x ) #x
+#define STRING( x ) DOSTRING( x )
struct VCLRegServiceInfo
{
- const sal_Char* pLibName;
- sal_Bool bHasSUPD;
+ const sal_Char* pLibName;
+ sal_Bool bHasSUPD;
};
static VCLRegServiceInfo aVCLComponentsArray[] =
@@ -107,7 +107,7 @@ uno::Reference< lang::XMultiServiceFactory > vcl::unohelper::GetMultiServiceFact
pSVData->maAppData.mxMSF = ::cppu::createRegistryServiceFactory( aTempFileName, rtl::OUString(), sal_False );
uno::Reference < registry::XImplementationRegistration > xReg(
pSVData->maAppData.mxMSF->createInstance( OUString::createFromAscii( "com.sun.star.registry.ImplementationRegistration" )), uno::UNO_QUERY );
-
+
if( xReg.is() )
{
sal_Int32 nCompCount = 0;
@@ -234,7 +234,7 @@ void vcl::unohelper::NotifyAccessibleStateEventGlobally( const ::com::sun::star:
if ( nType == ::com::sun::star::accessibility::AccessibleStateType::FOCUSED )
xExtToolkit->fireFocusLost( rEventObject.Source );
}
-
+
}
}
diff --git a/vcl/source/app/unohelp2.cxx b/vcl/source/app/unohelp2.cxx
index 0640d9cfbc49..15e8aec9063d 100644
--- a/vcl/source/app/unohelp2.cxx
+++ b/vcl/source/app/unohelp2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ namespace vcl { namespace unohelper {
TextDataObject::~TextDataObject()
{
}
-
+
void TextDataObject::CopyStringTo( const String& rContent,
const uno::Reference< datatransfer::clipboard::XClipboard >& rxClipboard )
{
@@ -110,6 +110,6 @@ namespace vcl { namespace unohelper {
return ( nT == SOT_FORMAT_STRING );
}
-}} // namespace vcl::unohelper
+}} // namespace vcl::unohelper
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/app/vclevent.cxx b/vcl/source/app/vclevent.cxx
index 02e482711616..65a490b5563b 100644
--- a/vcl/source/app/vclevent.cxx
+++ b/vcl/source/app/vclevent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -106,7 +106,7 @@ VclEventListeners2::VclEventListeners2()
VclEventListeners2::~VclEventListeners2()
{
}
-
+
void VclEventListeners2::addListener( const Link& i_rLink )
{
// ensure uniqueness
@@ -135,7 +135,7 @@ void VclEventListeners2::removeListener( const Link& i_rLink )
void VclEventListeners2::callListeners( VclSimpleEvent* i_pEvent )
{
vcl::DeletionListener aDel( this );
-
+
m_aIterators.push_back(ListenerIt(m_aListeners.begin()));
size_t nIndex = m_aIterators.size() - 1;
while( ! aDel.isDeleted() && m_aIterators[ nIndex ].m_aIt != m_aListeners.end() )
diff --git a/vcl/source/components/display.cxx b/vcl/source/components/display.cxx
index 39f2613ac6b5..7e150205f71b 100644
--- a/vcl/source/components/display.cxx
+++ b/vcl/source/components/display.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -180,7 +180,7 @@ Sequence< OUString > SAL_CALL DisplayInfo::getSupportedServiceNames( ) throw (R
}
// ====================================================================
-
+
class DisplayAccess : public ::cppu::WeakAggImplHelper4< XPropertySet, XPropertySetInfo, XIndexAccess, XServiceInfo >
{
public:
@@ -284,7 +284,7 @@ Property SAL_CALL DisplayAccess::getPropertyByName( const OUString& aName ) thro
{
if( aName.equalsAscii( pMultiDisplayName ) )
return Property( aName, 0, ::getCppuType( (sal_Bool const *)0 ), PropertyAttribute::READONLY );
-
+
if( aName.equalsAscii( pDefaultDisplayName ) )
return Property( aName, 0, ::getCppuType( (sal_Int32 const *)0 ), PropertyAttribute::READONLY );
throw UnknownPropertyException();
diff --git a/vcl/source/components/dtranscomp.cxx b/vcl/source/components/dtranscomp.cxx
index b46e33686b9b..1d19dea6952e 100644
--- a/vcl/source/components/dtranscomp.cxx
+++ b/vcl/source/components/dtranscomp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,7 +92,7 @@ public:
* XServiceInfo
*/
- virtual rtl::OUString SAL_CALL getImplementationName() throw( RuntimeException );
+ virtual rtl::OUString SAL_CALL getImplementationName() throw( RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( RuntimeException );
virtual Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( RuntimeException );
@@ -103,16 +103,16 @@ public:
* XClipboard
*/
- virtual Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
+ virtual Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
throw(RuntimeException);
- virtual void SAL_CALL setContents(
- const Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans,
- const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
+ virtual void SAL_CALL setContents(
+ const Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans,
+ const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
throw(RuntimeException);
- virtual ::rtl::OUString SAL_CALL getName()
- throw(RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getName()
+ throw(RuntimeException);
/*
* XClipboardEx
@@ -124,13 +124,13 @@ public:
/*
* XClipboardNotifier
*/
- virtual void SAL_CALL addClipboardListener(
- const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL addClipboardListener(
+ const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw(RuntimeException);
- virtual void SAL_CALL removeClipboardListener(
- const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
- throw(RuntimeException);
+ virtual void SAL_CALL removeClipboardListener(
+ const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ throw(RuntimeException);
};
GenericClipboard::~GenericClipboard()
@@ -175,9 +175,9 @@ Reference< ::com::sun::star::datatransfer::XTransferable > GenericClipboard::get
{
return m_aContents;
}
-
-void GenericClipboard::setContents(
- const Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans,
+
+void GenericClipboard::setContents(
+ const Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans,
const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
throw( RuntimeException )
{
@@ -192,7 +192,7 @@ void GenericClipboard::setContents(
aEv.Contents = m_aContents;
aGuard.clear();
-
+
if( xOldOwner.is() && xOldOwner != xClipboardOwner )
xOldOwner->lostOwnership( this, xOldContents );
for( std::list< Reference< datatransfer::clipboard::XClipboardListener > >::iterator it =
@@ -224,7 +224,7 @@ void GenericClipboard::removeClipboardListener( const Reference< datatransfer::c
throw( RuntimeException )
{
osl::ClearableMutexGuard aGuard( m_aMutex );
-
+
m_aListeners.remove( listener );
}
@@ -318,11 +318,11 @@ class GenericDragSource : public cppu::WeakComponentImplHelper2<
public:
GenericDragSource() : cppu::WeakComponentImplHelper2< datatransfer::dnd::XDragSource, XInitialization >( m_aMutex ) {}
virtual ~GenericDragSource();
-
+
// XDragSource
- virtual sal_Bool SAL_CALL isDragImageSupported() throw();
- virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) throw();
- virtual void SAL_CALL startDrag(
+ virtual sal_Bool SAL_CALL isDragImageSupported() throw();
+ virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) throw();
+ virtual void SAL_CALL startDrag(
const datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image,
const Reference< datatransfer::XTransferable >& transferable,
@@ -330,15 +330,15 @@ public:
) throw();
// XInitialization
- virtual void SAL_CALL initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception );
-
+ virtual void SAL_CALL initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception );
+
static Sequence< OUString > getSupportedServiceNames_static()
{
Sequence< OUString > aRet( 1 );
aRet[0] = OUString::createFromAscii( "com.sun.star.datatransfer.dnd.GenericDragSource" );
return aRet;
}
-
+
static OUString getImplementationName_static()
{
return OUString::createFromAscii( "com.sun.star.datatransfer.dnd.VclGenericDragSource" );
@@ -434,15 +434,15 @@ public:
virtual ~GenericDropTarget();
// XInitialization
- virtual void SAL_CALL initialize( const Sequence< Any >& args ) throw ( Exception );
+ virtual void SAL_CALL initialize( const Sequence< Any >& args ) throw ( Exception );
// XDropTarget
- virtual void SAL_CALL addDropTargetListener( const Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& ) throw();
- virtual void SAL_CALL removeDropTargetListener( const Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& ) throw();
- virtual sal_Bool SAL_CALL isActive() throw();
- virtual void SAL_CALL setActive( sal_Bool active ) throw();
- virtual sal_Int8 SAL_CALL getDefaultActions() throw();
- virtual void SAL_CALL setDefaultActions( sal_Int8 actions ) throw();
+ virtual void SAL_CALL addDropTargetListener( const Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& ) throw();
+ virtual void SAL_CALL removeDropTargetListener( const Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& ) throw();
+ virtual sal_Bool SAL_CALL isActive() throw();
+ virtual void SAL_CALL setActive( sal_Bool active ) throw();
+ virtual sal_Int8 SAL_CALL getDefaultActions() throw();
+ virtual void SAL_CALL setDefaultActions( sal_Int8 actions ) throw();
static Sequence< OUString > getSupportedServiceNames_static()
{
@@ -534,7 +534,7 @@ Reference< XInterface > SAL_CALL DropTarget_createInstance( const Reference< XMu
} // namespace vcl
/*
-* SalInstance generic
+* SalInstance generic
*/
Reference< XInterface > SalInstance::CreateClipboard( const Sequence< Any >& )
{
diff --git a/vcl/source/components/factory.cxx b/vcl/source/components/factory.cxx
index 69be4002928f..096b5941ea6d 100644
--- a/vcl/source/components/factory.cxx
+++ b/vcl/source/components/factory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ extern "C" {
try
{
Reference< ::com::sun::star::registry::XRegistryKey > xKey( reinterpret_cast< ::com::sun::star::registry::XRegistryKey* >( pXUnoKey ) );
-
+
OUStringBuffer aImplName(64);
aImplName.appendAscii( "/" );
aImplName.append( vcl_session_getImplementationName() );
diff --git a/vcl/source/components/fontident.cxx b/vcl/source/components/fontident.cxx
index e411dcf49aba..6559df8a1081 100644
--- a/vcl/source/components/fontident.cxx
+++ b/vcl/source/components/fontident.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,10 +71,10 @@ FontIdentificator() {}
virtual OUString SAL_CALL getImplementationName( ) throw (RuntimeException);
virtual ::sal_Bool SAL_CALL supportsService( const OUString& ) throw (RuntimeException);
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (RuntimeException);
-
+
// XInitialization
virtual void SAL_CALL initialize( const Sequence< Any >& ) throw (Exception, RuntimeException);
-
+
// XMaterialHolder
virtual Any SAL_CALL getMaterial() throw(RuntimeException);
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index a2bbfb67baf4..7110598386c2 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -401,7 +401,7 @@ void Button::ImplDrawAlignedImage( OutputDevice* pDev, Point& rPos,
aImageSize.Width() = CalcZoom( aImageSize.Width() );
aImageSize.Height() = CalcZoom( aImageSize.Height() );
-
+
// Drawing text or symbol only is simple, use style and output rectangle
if ( bHasSymbol && !bDrawImage && !bDrawText )
{
@@ -509,7 +509,7 @@ void Button::ImplDrawAlignedImage( OutputDevice* pDev, Point& rPos,
if ( aTSSize.Height() < aTextSize.Height() )
aTSSize.Height() = aTextSize.Height();
-
+
if( bAddImageSep && bDrawImage )
{
long nDiff = (aImageSize.Height() - aTextSize.Height()) / 3;
@@ -1330,11 +1330,11 @@ void PushButton::ImplDrawPushButton( bool bLayout )
ImplControlValue aControlValue;
ControlState nState = 0;
- if ( mbPressed ) nState |= CTRL_STATE_PRESSED;
- if ( ImplGetButtonState() & BUTTON_DRAW_PRESSED ) nState |= CTRL_STATE_PRESSED;
- if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
- if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
- if ( Window::IsEnabled() ) nState |= CTRL_STATE_ENABLED;
+ if ( mbPressed ) nState |= CTRL_STATE_PRESSED;
+ if ( ImplGetButtonState() & BUTTON_DRAW_PRESSED ) nState |= CTRL_STATE_PRESSED;
+ if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
+ if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
+ if ( Window::IsEnabled() ) nState |= CTRL_STATE_ENABLED;
if ( IsMouseOver() && aInRect.IsInside( GetPointerPosPixel() ) )
nState |= CTRL_STATE_ROLLOVER;
@@ -1352,18 +1352,18 @@ void PushButton::ImplDrawPushButton( bool bLayout )
if ( (bNativeOK=IsNativeControlSupported(CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL)) == TRUE )
{
PushButtonValue aControlValue;
- Rectangle aCtrlRegion( aInRect );
- ControlState nState = 0;
+ Rectangle aCtrlRegion( aInRect );
+ ControlState nState = 0;
if ( mbPressed || IsChecked() ) nState |= CTRL_STATE_PRESSED;
if ( ImplGetButtonState() & BUTTON_DRAW_PRESSED ) nState |= CTRL_STATE_PRESSED;
- if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
- if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
- if ( Window::IsEnabled() ) nState |= CTRL_STATE_ENABLED;
+ if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
+ if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
+ if ( Window::IsEnabled() ) nState |= CTRL_STATE_ENABLED;
if ( bRollOver )
nState |= CTRL_STATE_ROLLOVER;
-
+
if( GetStyle() & WB_BEVELBUTTON )
aControlValue.mbBevelButton = true;
@@ -1378,7 +1378,7 @@ void PushButton::ImplDrawPushButton( bool bLayout )
aInRect.Bottom()-=4;
aInRect.Left()+=4;
aInRect.Right()-=4;
-
+
// prepare single line hint (needed on mac to decide between normal push button and
// rectangular bevel button look)
Size aFontSize( Application::GetSettings().GetStyleSettings().GetPushButtonFont().GetSize() );
@@ -1449,8 +1449,8 @@ void PushButton::ImplSetDefButton( BOOL bSet )
Rectangle aCtrlRect( 0, 0, 80, 20 ); // use a constant size to avoid accumulating
// will not work if the theme has dynamic adornment sizes
ImplControlValue aControlValue;
- Rectangle aCtrlRegion( aCtrlRect );
- ControlState nState = CTRL_STATE_DEFAULT|CTRL_STATE_ENABLED;
+ Rectangle aCtrlRegion( aCtrlRect );
+ ControlState nState = CTRL_STATE_DEFAULT|CTRL_STATE_ENABLED;
// get native size of a 'default' button
// and adjust the VCL button if more space for adornment is required
@@ -2034,7 +2034,7 @@ Size PushButton::CalcMinimumSize( long nMaxWidth ) const
}
return CalcWindowSize( aSize );
-}
+}
Size PushButton::GetOptimalSize(WindowSizeType eType) const
{
@@ -2344,14 +2344,14 @@ void RadioButton::ImplDrawRadioButtonState()
// no native drawing for image radio buttons
if ( !maImage && (bNativeOK=IsNativeControlSupported(CTRL_RADIOBUTTON, PART_ENTIRE_CONTROL)) == TRUE )
{
- ImplControlValue aControlValue( mbChecked ? BUTTONVALUE_ON : BUTTONVALUE_OFF );
- Rectangle aCtrlRect( maStateRect.TopLeft(), maStateRect.GetSize() );
- ControlState nState = 0;
+ ImplControlValue aControlValue( mbChecked ? BUTTONVALUE_ON : BUTTONVALUE_OFF );
+ Rectangle aCtrlRect( maStateRect.TopLeft(), maStateRect.GetSize() );
+ ControlState nState = 0;
- if ( ImplGetButtonState() & BUTTON_DRAW_PRESSED ) nState |= CTRL_STATE_PRESSED;
- if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
- if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
- if ( IsEnabled() ) nState |= CTRL_STATE_ENABLED;
+ if ( ImplGetButtonState() & BUTTON_DRAW_PRESSED ) nState |= CTRL_STATE_PRESSED;
+ if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
+ if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
+ if ( IsEnabled() ) nState |= CTRL_STATE_ENABLED;
if ( IsMouseOver() && maMouseRect.IsInside( GetPointerPosPixel() ) )
nState |= CTRL_STATE_ROLLOVER;
@@ -2463,8 +2463,8 @@ void RadioButton::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
WinBits nWinStyle = GetStyle();
XubString aText( GetText() );
Rectangle aRect( rPos, rSize );
- MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : NULL;
- String* pDisplayText = bLayout ? &mpControlData->mpLayoutData->m_aDisplayText : NULL;
+ MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : NULL;
+ String* pDisplayText = bLayout ? &mpControlData->mpLayoutData->m_aDisplayText : NULL;
pDev->Push( PUSH_CLIPREGION );
pDev->IntersectClipRegion( Rectangle( rPos, rSize ) );
@@ -2626,7 +2626,7 @@ void RadioButton::GetRadioButtonGroup( std::vector< RadioButton* >& io_rGroup, b
{
// empty the list
io_rGroup.clear();
-
+
// go back to first in group;
Window* pFirst = const_cast<RadioButton*>(this);
while( ( pFirst->GetStyle() & WB_GROUP ) == 0 )
@@ -3207,8 +3207,8 @@ Size RadioButton::ImplGetRadioImageSize() const
{
ImplControlValue aControlValue;
// #i45896# workaround gcc3.3 temporary problem
- Rectangle aCtrlRegion( Point( 0, 0 ), GetSizePixel() );
- ControlState nState = CTRL_STATE_DEFAULT|CTRL_STATE_ENABLED;
+ Rectangle aCtrlRegion( Point( 0, 0 ), GetSizePixel() );
+ ControlState nState = CTRL_STATE_DEFAULT|CTRL_STATE_ENABLED;
Rectangle aBoundingRgn, aContentRgn;
// get native size of a radio button
@@ -3247,7 +3247,7 @@ static void LoadThemedImageList (const StyleSettings &rStyleSettings,
Color aMaskColor(0x00, 0x00, 0xFF );
DBG_ASSERT( sizeof(aColorAry1) == sizeof(aColorAry2), "aColorAry1 must match aColorAry2" );
// FIXME: do we want the mask for the checkbox ?
- pList->InsertFromHorizontalBitmap (rResId, nImages, &aMaskColor,
+ pList->InsertFromHorizontalBitmap (rResId, nImages, &aMaskColor,
aColorAry1, aColorAry2, sizeof(aColorAry1) / sizeof(Color));
}
@@ -3333,21 +3333,21 @@ void RadioButton::ImplSetMinimumNWFSize()
Size aCurSize( GetSizePixel() );
Rectangle aCtrlRegion( Point( 0, 0 ), aCurSize );
Rectangle aBoundingRgn, aContentRgn;
-
+
// get native size of a radiobutton
if( GetNativeControlRegion( CTRL_RADIOBUTTON, PART_ENTIRE_CONTROL, aCtrlRegion,
CTRL_STATE_DEFAULT|CTRL_STATE_ENABLED, aControlValue, rtl::OUString(),
aBoundingRgn, aContentRgn ) )
{
Size aSize = aContentRgn.GetSize();
-
+
if( aSize.Height() > aCurSize.Height() )
{
aCurSize.Height() = aSize.Height();
SetSizePixel( aCurSize );
}
}
-
+
Pop();
}
@@ -3512,7 +3512,7 @@ void CheckBox::ImplInvalidateOrDrawCheckBoxState()
void CheckBox::ImplDrawCheckBoxState()
{
- bool bNativeOK = TRUE;
+ bool bNativeOK = TRUE;
if ( (bNativeOK=IsNativeControlSupported(CTRL_CHECKBOX, PART_ENTIRE_CONTROL)) == TRUE )
{
@@ -3520,10 +3520,10 @@ void CheckBox::ImplDrawCheckBoxState()
Rectangle aCtrlRegion( maStateRect );
ControlState nState = 0;
- if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
- if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
- if ( ImplGetButtonState() & BUTTON_DRAW_PRESSED ) nState |= CTRL_STATE_PRESSED;
- if ( IsEnabled() ) nState |= CTRL_STATE_ENABLED;
+ if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
+ if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
+ if ( ImplGetButtonState() & BUTTON_DRAW_PRESSED ) nState |= CTRL_STATE_PRESSED;
+ if ( IsEnabled() ) nState |= CTRL_STATE_ENABLED;
if ( meState == STATE_CHECK )
aControlValue.setTristateVal( BUTTONVALUE_ON );
@@ -3563,7 +3563,7 @@ void CheckBox::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
{
WinBits nWinStyle = GetStyle();
XubString aText( GetText() );
-
+
pDev->Push( PUSH_CLIPREGION | PUSH_LINECOLOR );
pDev->IntersectClipRegion( Rectangle( rPos, rSize ) );
@@ -3637,12 +3637,12 @@ void CheckBox::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
ImplSetFocusRect( rStateRect );
}
-
+
const int nLineSpace = 4;
if( (GetStyle() & WB_CBLINESTYLE) != 0 &&
rMouseRect.Right()-1-nLineSpace < rPos.X()+rSize.Width() )
{
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
if ( rStyleSettings.GetOptions() & STYLE_OPTION_MONO )
SetLineColor( Color( COL_BLACK ) );
else
@@ -4080,9 +4080,9 @@ long CheckBox::PreNotify( NotifyEvent& rNEvt )
// trigger redraw if mouse over state has changed
if( IsNativeControlSupported(CTRL_CHECKBOX, PART_ENTIRE_CONTROL) )
{
- if( ( maMouseRect.IsInside( GetPointerPosPixel()) &&
+ if( ( maMouseRect.IsInside( GetPointerPosPixel()) &&
!maMouseRect.IsInside( GetLastPointerPosPixel()) ) ||
- ( maMouseRect.IsInside( GetLastPointerPosPixel()) &&
+ ( maMouseRect.IsInside( GetLastPointerPosPixel()) &&
!maMouseRect.IsInside( GetPointerPosPixel()) ) ||
pMouseEvt->IsLeaveWindow() || pMouseEvt->IsEnterWindow() )
{
@@ -4151,10 +4151,10 @@ Size CheckBox::ImplGetCheckImageSize() const
{
ImplControlValue aControlValue;
// #i45896# workaround gcc3.3 temporary problem
- Rectangle aCtrlRegion( Point( 0, 0 ), GetSizePixel() );
- ControlState nState = CTRL_STATE_DEFAULT|CTRL_STATE_ENABLED;
+ Rectangle aCtrlRegion( Point( 0, 0 ), GetSizePixel() );
+ ControlState nState = CTRL_STATE_DEFAULT|CTRL_STATE_ENABLED;
Rectangle aBoundingRgn, aContentRgn;
-
+
// get native size of a check box
if( pThis->GetNativeControlRegion( CTRL_CHECKBOX, PART_ENTIRE_CONTROL, aCtrlRegion,
nState, aControlValue, rtl::OUString(),
@@ -4164,7 +4164,7 @@ Size CheckBox::ImplGetCheckImageSize() const
bDefaultSize = false;
}
}
- if( bDefaultSize )
+ if( bDefaultSize )
aSize = GetCheckImage( GetSettings(), 0 ).GetSizePixel();
return aSize;
}
@@ -4242,21 +4242,21 @@ void CheckBox::ImplSetMinimumNWFSize()
Size aCurSize( GetSizePixel() );
Rectangle aCtrlRegion( Point( 0, 0 ), aCurSize );
Rectangle aBoundingRgn, aContentRgn;
-
+
// get native size of a radiobutton
if( GetNativeControlRegion( CTRL_CHECKBOX, PART_ENTIRE_CONTROL, aCtrlRegion,
CTRL_STATE_DEFAULT|CTRL_STATE_ENABLED, aControlValue, rtl::OUString(),
aBoundingRgn, aContentRgn ) )
{
Size aSize = aContentRgn.GetSize();
-
+
if( aSize.Height() > aCurSize.Height() )
{
aCurSize.Height() = aSize.Height();
SetSizePixel( aCurSize );
}
}
-
+
Pop();
}
@@ -4446,16 +4446,16 @@ void DisclosureButton::ImplDrawCheckBoxState()
would have to be overloaded for DisclosureButton; also GetNativeControlRegion
for CTRL_LISTNODE would have to be implemented and taken into account
*/
-
+
Rectangle aStateRect( GetStateRect() );
-
+
ImplControlValue aControlValue( GetState() == STATE_CHECK ? BUTTONVALUE_ON : BUTTONVALUE_OFF );
Rectangle aCtrlRegion( aStateRect );
ControlState nState = 0;
- if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
- if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
- if ( Window::IsEnabled() ) nState |= CTRL_STATE_ENABLED;
+ if ( HasFocus() ) nState |= CTRL_STATE_FOCUSED;
+ if ( ImplGetButtonState() & BUTTON_DRAW_DEFAULT ) nState |= CTRL_STATE_DEFAULT;
+ if ( Window::IsEnabled() ) nState |= CTRL_STATE_ENABLED;
if ( IsMouseOver() && GetMouseRect().IsInside( GetPointerPosPixel() ) )
nState |= CTRL_STATE_ROLLOVER;
@@ -4471,21 +4471,21 @@ void DisclosureButton::ImplDrawCheckBoxState()
rCtrlData.mpDisclosureMinus = new Image( BitmapEx( VclResId( SV_DISCLOSURE_MINUS ) ) );
if( ! rCtrlData.mpDisclosureMinusHC )
rCtrlData.mpDisclosureMinusHC = new Image( BitmapEx( VclResId( SV_DISCLOSURE_MINUS_HC ) ) );
-
+
Image* pImg = NULL;
if( GetSettings().GetStyleSettings().GetHighContrastMode() )
pImg = IsChecked() ? rCtrlData.mpDisclosureMinusHC : rCtrlData.mpDisclosurePlusHC;
else
pImg = IsChecked() ? rCtrlData.mpDisclosureMinus : rCtrlData.mpDisclosurePlus;
-
+
DBG_ASSERT( pImg, "no disclosure image" );
if( ! pImg )
return;
-
+
USHORT nStyle = 0;
if( ! IsEnabled() )
nStyle |= IMAGE_DRAW_DISABLE;
-
+
Size aSize( aStateRect.GetSize() );
Size aImgSize( pImg->GetSizePixel() );
Point aOff( (aSize.Width() - aImgSize.Width())/2,
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index e65925db282c..178974de59c7 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -116,16 +116,16 @@ ComboBox::~ComboBox()
void ComboBox::ImplInitComboBoxData()
{
- mpSubEdit = NULL;
- mpBtn = NULL;
- mpImplLB = NULL;
- mpFloatWin = NULL;
+ mpSubEdit = NULL;
+ mpBtn = NULL;
+ mpImplLB = NULL;
+ mpFloatWin = NULL;
- mnDDHeight = 0;
- mbDDAutoSize = TRUE;
- mbSyntheticModify = FALSE;
- mbMatchCase = FALSE;
- mcMultiSep = ';';
+ mnDDHeight = 0;
+ mbDDAutoSize = TRUE;
+ mbSyntheticModify = FALSE;
+ mbMatchCase = FALSE;
+ mcMultiSep = ';';
}
// -----------------------------------------------------------------------
@@ -330,8 +330,8 @@ IMPL_LINK( ComboBox, ImplPopupModeEndHdl, void*, EMPTYARG )
IMPL_LINK( ComboBox, ImplAutocompleteHdl, Edit*, pEdit )
{
- Selection aSel = pEdit->GetSelection();
- AutocompleteAction eAction = pEdit->GetAutocompleteAction();
+ Selection aSel = pEdit->GetSelection();
+ AutocompleteAction eAction = pEdit->GetAutocompleteAction();
/* If there is no current selection do not auto complete on
Tab/Shift-Tab since then we would not cycle to the next field.
@@ -339,9 +339,9 @@ IMPL_LINK( ComboBox, ImplAutocompleteHdl, Edit*, pEdit )
if ( aSel.Len() ||
((eAction != AUTOCOMPLETE_TABFORWARD) && (eAction != AUTOCOMPLETE_TABBACKWARD)) )
{
- XubString aFullText = pEdit->GetText();
- XubString aStartText = aFullText.Copy( 0, (xub_StrLen)aSel.Max() );
- USHORT nStart = mpImplLB->GetCurrentPos();
+ XubString aFullText = pEdit->GetText();
+ XubString aStartText = aFullText.Copy( 0, (xub_StrLen)aSel.Max() );
+ USHORT nStart = mpImplLB->GetCurrentPos();
if ( nStart == LISTBOX_ENTRY_NOTFOUND )
nStart = 0;
@@ -400,11 +400,11 @@ IMPL_LINK( ComboBox, ImplSelectHdl, void*, EMPTYARG )
xub_StrLen nIndex = 0;
while ( nIndex != STRING_NOTFOUND )
{
- xub_StrLen nPrevIndex = nIndex;
- XubString aToken = aText.GetToken( 0, mcMultiSep, nIndex );
- xub_StrLen nTokenLen = aToken.Len();
+ xub_StrLen nPrevIndex = nIndex;
+ XubString aToken = aText.GetToken( 0, mcMultiSep, nIndex );
+ xub_StrLen nTokenLen = aToken.Len();
aToken.EraseLeadingAndTrailingChars( ' ' );
- USHORT nP = mpImplLB->GetEntryList()->FindEntry( aToken );
+ USHORT nP = mpImplLB->GetEntryList()->FindEntry( aToken );
if ( (nP != LISTBOX_ENTRY_NOTFOUND) && (!mpImplLB->GetEntryList()->IsEntryPosSelected( nP )) )
{
aText.Erase( nPrevIndex, nTokenLen );
@@ -625,8 +625,8 @@ void ComboBox::Resize()
if( IsDropDownBox() )
{
long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
- long nTop = 0;
- long nBottom = aOutSz.Height();
+ long nTop = 0;
+ long nBottom = aOutSz.Height();
Window *pBorder = GetWindow( WINDOW_BORDER );
ImplControlValue aControlValue;
@@ -813,7 +813,7 @@ long ComboBox::Notify( NotifyEvent& rNEvt )
&& !IsReadOnly() )
{
KeyEvent aKeyEvt = *rNEvt.GetKeyEvent();
- USHORT nKeyCode = aKeyEvt.GetKeyCode().GetCode();
+ USHORT nKeyCode = aKeyEvt.GetKeyCode().GetCode();
switch( nKeyCode )
{
case KEY_UP:
@@ -927,9 +927,9 @@ void ComboBox::ImplUpdateFloatSelection()
mpImplLB->SetCallSelectionChangedHdl( FALSE );
if ( !IsMultiSelectionEnabled() )
{
- XubString aSearchStr( mpSubEdit->GetText() );
- USHORT nSelect = LISTBOX_ENTRY_NOTFOUND;
- BOOL bSelect = TRUE;
+ XubString aSearchStr( mpSubEdit->GetText() );
+ USHORT nSelect = LISTBOX_ENTRY_NOTFOUND;
+ BOOL bSelect = TRUE;
if ( mpImplLB->GetCurrentPos() != LISTBOX_ENTRY_NOTFOUND )
{
diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx
index ad45da3b706e..7be3ad1b1a54 100644
--- a/vcl/source/control/ctrl.cxx
+++ b/vcl/source/control/ctrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ using namespace vcl;
void Control::ImplInitControlData()
{
- mbHasFocus = FALSE;
+ mbHasFocus = FALSE;
mpControlData = new ImplControlData;
}
@@ -215,7 +215,7 @@ long Control::GetLineCount() const
Pair ControlLayoutData::GetLineStartEnd( long nLine ) const
{
Pair aPair( -1, -1 );
-
+
int nDisplayLines = m_aLineIndices.size();
if( nLine >= 0 && nLine < nDisplayLines )
{
@@ -332,11 +332,11 @@ long Control::Notify( NotifyEvent& rNEvt )
void Control::StateChanged( StateChangedType nStateChange )
{
- if( nStateChange == STATE_CHANGE_INITSHOW ||
- nStateChange == STATE_CHANGE_VISIBLE ||
- nStateChange == STATE_CHANGE_FORMAT ||
- nStateChange == STATE_CHANGE_ZOOM ||
- nStateChange == STATE_CHANGE_BORDER ||
+ if( nStateChange == STATE_CHANGE_INITSHOW ||
+ nStateChange == STATE_CHANGE_VISIBLE ||
+ nStateChange == STATE_CHANGE_FORMAT ||
+ nStateChange == STATE_CHANGE_ZOOM ||
+ nStateChange == STATE_CHANGE_BORDER ||
nStateChange == STATE_CHANGE_CONTROLFONT
)
{
@@ -442,7 +442,7 @@ void Control::DataChanged( const DataChangedEvent& rDCEvt)
{
// we don't want to loose some style settings for controls created with the
// toolkit
- if ( IsCreatedWithToolkit() &&
+ if ( IsCreatedWithToolkit() &&
(rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
(rDCEvt.GetFlags() & SETTINGS_STYLE) )
{
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 0ef45ccabd94..cc4e3017a9a8 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,27 +95,27 @@ static FncGetSpecialChars pImplFncGetSpecialChars = NULL;
// =======================================================================
-#define EDIT_ALIGN_LEFT 1
-#define EDIT_ALIGN_CENTER 2
-#define EDIT_ALIGN_RIGHT 3
+#define EDIT_ALIGN_LEFT 1
+#define EDIT_ALIGN_CENTER 2
+#define EDIT_ALIGN_RIGHT 3
-#define EDIT_DEL_LEFT 1
-#define EDIT_DEL_RIGHT 2
+#define EDIT_DEL_LEFT 1
+#define EDIT_DEL_RIGHT 2
-#define EDIT_DELMODE_SIMPLE 11
-#define EDIT_DELMODE_RESTOFWORD 12
-#define EDIT_DELMODE_RESTOFCONTENT 13
+#define EDIT_DELMODE_SIMPLE 11
+#define EDIT_DELMODE_RESTOFWORD 12
+#define EDIT_DELMODE_RESTOFCONTENT 13
// =======================================================================
struct DDInfo
{
- Cursor aCursor;
+ Cursor aCursor;
Selection aDndStartSel;
- xub_StrLen nDropPos;
- BOOL bStarterOfDD;
- BOOL bDroppedInMe;
- BOOL bVisCursor;
+ xub_StrLen nDropPos;
+ BOOL bStarterOfDD;
+ BOOL bDroppedInMe;
+ BOOL bVisCursor;
DDInfo()
{
@@ -132,17 +132,17 @@ struct DDInfo
struct Impl_IMEInfos
{
String aOldTextAfterStartPos;
- USHORT* pAttribs;
- xub_StrLen nPos;
- xub_StrLen nLen;
- BOOL bCursor;
- BOOL bWasCursorOverwrite;
+ USHORT* pAttribs;
+ xub_StrLen nPos;
+ xub_StrLen nLen;
+ BOOL bCursor;
+ BOOL bWasCursorOverwrite;
Impl_IMEInfos( xub_StrLen nPos, const String& rOldTextAfterStartPos );
~Impl_IMEInfos();
- void CopyAttribs( const xub_StrLen* pA, xub_StrLen nL );
- void DestroyAttribs();
+ void CopyAttribs( const xub_StrLen* pA, xub_StrLen nL );
+ void DestroyAttribs();
};
// -----------------------------------------------------------------------
@@ -275,23 +275,23 @@ Edit::~Edit()
void Edit::ImplInitEditData()
{
- mpSubEdit = NULL;
- mpUpdateDataTimer = NULL;
- mnXOffset = 0;
- mnAlign = EDIT_ALIGN_LEFT;
- mnMaxTextLen = EDIT_NOLIMIT;
- meAutocompleteAction = AUTOCOMPLETE_KEYINPUT;
- mbModified = FALSE;
- mbInternModified = FALSE;
- mbReadOnly = FALSE;
- mbInsertMode = TRUE;
- mbClickedInSelection = FALSE;
- mbActivePopup = FALSE;
- mbIsSubEdit = FALSE;
- mbInMBDown = FALSE;
- mpDDInfo = NULL;
- mpIMEInfos = NULL;
- mcEchoChar = 0;
+ mpSubEdit = NULL;
+ mpUpdateDataTimer = NULL;
+ mnXOffset = 0;
+ mnAlign = EDIT_ALIGN_LEFT;
+ mnMaxTextLen = EDIT_NOLIMIT;
+ meAutocompleteAction = AUTOCOMPLETE_KEYINPUT;
+ mbModified = FALSE;
+ mbInternModified = FALSE;
+ mbReadOnly = FALSE;
+ mbInsertMode = TRUE;
+ mbClickedInSelection = FALSE;
+ mbActivePopup = FALSE;
+ mbIsSubEdit = FALSE;
+ mbInMBDown = FALSE;
+ mpDDInfo = NULL;
+ mpIMEInfos = NULL;
+ mcEchoChar = 0;
// --- RTL --- no default mirroring for Edit controls
// note: controls that use a subedit will revert this (SpinField, ComboBox)
@@ -332,7 +332,7 @@ void Edit::ImplInit( Window* pParent, WinBits nStyle )
// --- RTL --- hack: right align until keyinput and cursor travelling works
if( IsRTLEnabled() )
- mnAlign = EDIT_ALIGN_RIGHT;
+ mnAlign = EDIT_ALIGN_RIGHT;
if ( nStyle & WB_RIGHT )
mnAlign = EDIT_ALIGN_RIGHT;
@@ -453,7 +453,7 @@ XubString Edit::ImplGetText() const
{
if ( mcEchoChar || (GetStyle() & WB_PASSWORD) )
{
- XubString aText;
+ XubString aText;
xub_Unicode cEchoChar;
if ( mcEchoChar )
cEchoChar = mcEchoChar;
@@ -503,9 +503,9 @@ void Edit::ImplRepaint( xub_StrLen nStart, xub_StrLen nEnd, bool bLayout )
nStart = 0;
nEnd = aText.Len();
- sal_Int32 nDXBuffer[256];
- sal_Int32* pDXBuffer = NULL;
- sal_Int32* pDX = nDXBuffer;
+ sal_Int32 nDXBuffer[256];
+ sal_Int32* pDXBuffer = NULL;
+ sal_Int32* pDX = nDXBuffer;
if( aText.Len() )
{
@@ -518,8 +518,8 @@ void Edit::ImplRepaint( xub_StrLen nStart, xub_StrLen nEnd, bool bLayout )
GetCaretPositions( aText, pDX, nStart, nEnd );
}
- long nTH = GetTextHeight();
- Point aPos( mnXOffset, ImplGetTextYPosition() );
+ long nTH = GetTextHeight();
+ Point aPos( mnXOffset, ImplGetTextYPosition() );
if( bLayout )
{
@@ -888,8 +888,8 @@ void Edit::ImplInsertText( const XubString& rStr, const Selection* pNewSel, sal_
sal_Bool bCTLSequenceChecking = sal_False;
sal_Bool bCTLSequenceCheckingRestricted = sal_False;
sal_Bool bCTLSequenceCheckingTypeAndReplace = sal_False;
- sal_Bool bCTLFontEnabled = sal_False;
- sal_Bool bIsInputSequenceChecking = sal_False;
+ sal_Bool bCTLFontEnabled = sal_False;
+ sal_Bool bIsInputSequenceChecking = sal_False;
//
// get access to the configuration of this office module
try
@@ -915,7 +915,7 @@ void Edit::ImplInsertText( const XubString& rStr, const Selection* pNewSel, sal_
}
catch(...)
{
- bIsInputSequenceChecking = sal_False; // continue with inserting the new text
+ bIsInputSequenceChecking = sal_False; // continue with inserting the new text
}
//
uno::Reference < i18n::XBreakIterator > xBI( ImplGetBreakIterator(), UNO_QUERY );
@@ -961,7 +961,7 @@ void Edit::ImplInsertText( const XubString& rStr, const Selection* pNewSel, sal_
if (aChgText.Len())
{
aNewText = aChgText;
- aSelection.Min() = nChgPos; // position for new text to be inserted
+ aSelection.Min() = nChgPos; // position for new text to be inserted
}
else
aNewText = String::EmptyString();
@@ -1162,14 +1162,14 @@ void Edit::ImplShowCursor( BOOL bOnlyIfVisible )
if ( !IsUpdateMode() || ( bOnlyIfVisible && !IsReallyVisible() ) )
return;
- Cursor* pCursor = GetCursor();
- XubString aText = ImplGetText();
+ Cursor* pCursor = GetCursor();
+ XubString aText = ImplGetText();
long nTextPos = 0;
- sal_Int32 nDXBuffer[256];
- sal_Int32* pDXBuffer = NULL;
- sal_Int32* pDX = nDXBuffer;
+ sal_Int32 nDXBuffer[256];
+ sal_Int32* pDXBuffer = NULL;
+ sal_Int32* pDX = nDXBuffer;
if( aText.Len() )
{
@@ -1220,7 +1220,7 @@ void Edit::ImplShowCursor( BOOL bOnlyIfVisible )
}
nCursorPosX = nTextPos + mnXOffset + ImplGetExtraOffset();
- if ( nCursorPosX == aOutSize.Width() ) // dann nicht sichtbar...
+ if ( nCursorPosX == aOutSize.Width() ) // dann nicht sichtbar...
nCursorPosX--;
if ( mnXOffset != nOldXOffset )
@@ -1272,7 +1272,7 @@ void Edit::ImplAlign()
else if( mnAlign == EDIT_ALIGN_CENTER )
{
// Mit Abfrage schoener, wenn gescrollt, dann aber nicht zentriert im gescrollten Zustand...
-// if ( nTextWidth < nOutWidth )
+// if ( nTextWidth < nOutWidth )
mnXOffset = (nOutWidth - nTextWidth) / 2;
}
}
@@ -1294,9 +1294,9 @@ xub_StrLen Edit::ImplGetCharPos( const Point& rWindowPos ) const
xub_StrLen nIndex = STRING_LEN;
String aText = ImplGetText();
- sal_Int32 nDXBuffer[256];
- sal_Int32* pDXBuffer = NULL;
- sal_Int32* pDX = nDXBuffer;
+ sal_Int32 nDXBuffer[256];
+ sal_Int32* pDXBuffer = NULL;
+ sal_Int32* pDX = nDXBuffer;
if( 2*aText.Len() > xub_StrLen(SAL_N_ELEMENTS(nDXBuffer)) )
{
pDXBuffer = new sal_Int32[2*(aText.Len()+1)];
@@ -1465,7 +1465,7 @@ void Edit::MouseButtonDown( const MouseEvent& rMEvt )
StartTracking( STARTTRACK_SCROLLREPEAT );
}
- mbInMBDown = TRUE; // Dann im GetFocus nicht alles selektieren
+ mbInMBDown = TRUE; // Dann im GetFocus nicht alles selektieren
GrabFocus();
mbInMBDown = FALSE;
}
@@ -1523,8 +1523,8 @@ void Edit::Tracking( const TrackingEvent& rTEvt )
BOOL Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
{
- BOOL bDone = FALSE;
- USHORT nCode = rKEvt.GetKeyCode().GetCode();
+ BOOL bDone = FALSE;
+ USHORT nCode = rKEvt.GetKeyCode().GetCode();
KeyFuncType eFunc = rKEvt.GetKeyCode().GetFunction();
mbInternModified = FALSE;
@@ -1590,7 +1590,7 @@ BOOL Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
{
if ( pImplFncGetSpecialChars )
{
- Selection aSaveSel = GetSelection(); // Falls jemand in Get/LoseFocus die Selektion verbiegt, z.B. URL-Zeile...
+ Selection aSaveSel = GetSelection(); // Falls jemand in Get/LoseFocus die Selektion verbiegt, z.B. URL-Zeile...
XubString aChars = pImplFncGetSpecialChars( this, GetFont() );
SetSelection( aSaveSel );
if ( aChars.Len() )
@@ -1613,7 +1613,7 @@ BOOL Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
bDone = TRUE;
}
break;
-
+
case KEY_LEFT:
case KEY_RIGHT:
case KEY_HOME:
@@ -1647,7 +1647,7 @@ BOOL Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
bool bGoRight = (nCode == KEY_RIGHT);
bool bGoHome = (nCode == KEY_HOME);
bool bGoEnd = (nCode == KEY_END);
-
+
switch( nCode )
{
case com::sun::star::awt::Key::MOVE_WORD_FORWARD:
@@ -1679,7 +1679,7 @@ BOOL Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
default:
break;
};
-
+
// Range wird in ImplSetSelection geprueft...
if ( bGoLeft && aSel.Max() )
{
@@ -1819,7 +1819,7 @@ BOOL Edit::ImplHandleKeyEvent( const KeyEvent& rKEvt )
{
if ( IsCharInput( rKEvt ) )
{
- bDone = TRUE; // Auch bei ReadOnly die Zeichen schlucken.
+ bDone = TRUE; // Auch bei ReadOnly die Zeichen schlucken.
if ( !mbReadOnly )
{
ImplInsertText( rKEvt.GetCharCode(), 0, sal_True );
@@ -1936,12 +1936,12 @@ void Edit::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, ULONG
}
}
- XubString aText = ImplGetText();
- long nTextHeight = pDev->GetTextHeight();
- long nTextWidth = pDev->GetTextWidth( aText );
- long nOnePixel = GetDrawPixel( pDev, 1 );
- long nOffX = 3*nOnePixel;
- long nOffY = (aSize.Height() - nTextHeight) / 2;
+ XubString aText = ImplGetText();
+ long nTextHeight = pDev->GetTextHeight();
+ long nTextWidth = pDev->GetTextWidth( aText );
+ long nOnePixel = GetDrawPixel( pDev, 1 );
+ long nOffX = 3*nOnePixel;
+ long nOffY = (aSize.Height() - nTextHeight) / 2;
// Clipping?
if ( (nOffY < 0) ||
@@ -2075,7 +2075,7 @@ void Edit::LoseFocus()
}
if ( !mbActivePopup && !( GetStyle() & WB_NOHIDESELECTION ) && maSelection.Len() )
- ImplInvalidateOrRepaint(); // Selektion malen
+ ImplInvalidateOrRepaint(); // Selektion malen
}
Control::LoseFocus();
@@ -2138,7 +2138,7 @@ void Edit::Command( const CommandEvent& rCEvt )
}
mbActivePopup = TRUE;
- Selection aSaveSel = GetSelection(); // Falls jemand in Get/LoseFocus die Selektion verbiegt, z.B. URL-Zeile...
+ Selection aSaveSel = GetSelection(); // Falls jemand in Get/LoseFocus die Selektion verbiegt, z.B. URL-Zeile...
Point aPos = rCEvt.GetMousePosPixel();
if ( !rCEvt.IsMouseEvent() )
{
@@ -2216,7 +2216,7 @@ void Edit::Command( const CommandEvent& rCEvt )
break;
case DICTATIONCOMMAND_DEL:
{
- ImplHandleKeyEvent( KeyEvent( 0, KeyCode( KEY_LEFT, KEY_MOD1|KEY_SHIFT ) ) );
+ ImplHandleKeyEvent( KeyEvent( 0, KeyCode( KEY_LEFT, KEY_MOD1|KEY_SHIFT ) ) );
DeleteSelected();
}
break;
@@ -2334,7 +2334,7 @@ void Edit::StateChanged( StateChangedType nType )
{
if ( !mpSubEdit )
{
- mnXOffset = 0; // Falls vorher GrabFocus, als Groesse noch falsch.
+ mnXOffset = 0; // Falls vorher GrabFocus, als Groesse noch falsch.
ImplAlign();
if ( !mpSubEdit )
ImplShowCursor( FALSE );
@@ -2368,7 +2368,7 @@ void Edit::StateChanged( StateChangedType nType )
if( mbIsSubEdit && GetParent()->IsRTLEnabled() )
{
if( GetParent()->GetStyle() & WB_LEFT )
- mnAlign = EDIT_ALIGN_RIGHT;
+ mnAlign = EDIT_ALIGN_RIGHT;
if ( nType == STATE_CHANGE_MIRRORING )
SetLayoutMode( TEXT_LAYOUT_BIDI_RTL | TEXT_LAYOUT_TEXTORIGIN_LEFT );
}
@@ -2764,10 +2764,10 @@ void Edit::Undo()
void Edit::SetText( const XubString& rStr )
{
if ( mpSubEdit )
- mpSubEdit->SetText( rStr ); // Nicht direkt ImplSetText, falls SetText ueberladen
+ mpSubEdit->SetText( rStr ); // Nicht direkt ImplSetText, falls SetText ueberladen
else
{
- Selection aNewSel( 0, 0 ); // Damit nicht gescrollt wird
+ Selection aNewSel( 0, 0 ); // Damit nicht gescrollt wird
ImplSetText( rStr, &aNewSel );
}
}
@@ -2819,7 +2819,7 @@ void Edit::SetSubEdit( Edit* pEdit )
mpSubEdit = pEdit;
if ( mpSubEdit )
{
- SetPointer( POINTER_ARROW ); // Nur das SubEdit hat den BEAM...
+ SetPointer( POINTER_ARROW ); // Nur das SubEdit hat den BEAM...
mpSubEdit->mbIsSubEdit = TRUE;
mpSubEdit->SetReadOnly( mbReadOnly );
@@ -2838,7 +2838,7 @@ Size Edit::CalcMinimumSize() const
aSize.Width() = aMinSize.Width();
// add some space between text entry and border
aSize.Height() += 4;
-
+
aSize = CalcWindowSize( aSize );
// ask NWF what if it has an opinion, too
@@ -2960,7 +2960,7 @@ void Edit::dragGestureRecognized( const ::com::sun::star::datatransfer::dnd::Dra
if ( IsTracking() )
- EndTracking(); // Vor D&D Tracking ausschalten
+ EndTracking(); // Vor D&D Tracking ausschalten
::vcl::unohelper::TextDataObject* pDataObj = new ::vcl::unohelper::TextDataObject( GetSelected() );
sal_Int8 nActions = datatransfer::dnd::DNDConstants::ACTION_COPY;
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index a01be7411c18..8833f2b6a92d 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -152,7 +152,7 @@ static USHORT ImplGetNum( const sal_Unicode*& rpBuf, BOOL& rbError )
static void ImplSkipDelimiters( const sal_Unicode*& rpBuf )
{
- while( ( *rpBuf == ',' ) || ( *rpBuf == '.' ) || ( *rpBuf == ';' ) ||
+ while( ( *rpBuf == ',' ) || ( *rpBuf == '.' ) || ( *rpBuf == ';' ) ||
( *rpBuf == ':' ) || ( *rpBuf == '-' ) || ( *rpBuf == '/' ) )
{
rpBuf++;
@@ -836,16 +836,16 @@ void PatternFormatter::ImplLoadRes( const ResId& rResId )
if( pMgr )
{
ULONG nMask = pMgr->ReadLong();
-
+
if ( PATTERNFORMATTER_STRICTFORMAT & nMask )
SetStrictFormat( (BOOL)pMgr->ReadShort() );
-
+
if ( PATTERNFORMATTER_EDITMASK & nMask )
aEditMask = ByteString( pMgr->ReadString(), RTL_TEXTENCODING_ASCII_US );
-
+
if ( PATTERNFORMATTER_LITTERALMASK & nMask )
aLiteralMask = pMgr->ReadString();
-
+
if ( (PATTERNFORMATTER_EDITMASK | PATTERNFORMATTER_LITTERALMASK) & nMask )
ImplSetMask( aEditMask, aLiteralMask );
}
@@ -1564,7 +1564,7 @@ void DateField::ImplDateSpinArea( BOOL bUp )
nPos++;
}
}
-
+
switch( eFormat )
{
@@ -1647,7 +1647,7 @@ void DateFormatter::ImplLoadRes( const ResId& rResId )
if( pMgr )
{
ULONG nMask = pMgr->ReadLong();
-
+
if ( DATEFORMATTER_MIN & nMask )
{
maMin = Date( ResId( (RSHEADER_TYPE *)pMgr->GetClass(), *pMgr ) );
@@ -1660,10 +1660,10 @@ void DateFormatter::ImplLoadRes( const ResId& rResId )
}
if ( DATEFORMATTER_LONGFORMAT & nMask )
mbLongFormat = (BOOL)pMgr->ReadShort();
-
+
if ( DATEFORMATTER_STRICTFORMAT & nMask )
SetStrictFormat( (BOOL)pMgr->ReadShort() );
-
+
if ( DATEFORMATTER_VALUE & nMask )
{
maFieldDate = Date( ResId( (RSHEADER_TYPE *)pMgr->GetClass(), *pMgr ) );
@@ -2083,12 +2083,12 @@ DateField::DateField( Window* pParent, const ResId& rResId ) :
void DateField::ImplLoadRes( const ResId& rResId )
{
SpinField::ImplLoadRes( rResId );
-
+
ResMgr* pMgr = rResId.GetResMgr();
if( pMgr )
{
DateFormatter::ImplLoadRes( ResId( (RSHEADER_TYPE *)GetClassRes(), *pMgr ) );
-
+
ULONG nMask = ReadLongRes();
if ( DATEFIELD_FIRST & nMask )
{
@@ -2816,28 +2816,28 @@ void TimeFormatter::ImplLoadRes( const ResId& rResId )
if( pMgr )
{
ULONG nMask = pMgr->ReadLong();
-
+
if ( TIMEFORMATTER_MIN & nMask )
{
SetMin( Time( ResId( (RSHEADER_TYPE *)pMgr->GetClass(), *pMgr ) ) );
pMgr->Increment( pMgr->GetObjSize( (RSHEADER_TYPE *)pMgr->GetClass() ) );
}
-
+
if ( TIMEFORMATTER_MAX & nMask )
{
SetMax( Time( ResId( (RSHEADER_TYPE *)pMgr->GetClass(), *pMgr ) ) );
pMgr->Increment( pMgr->GetObjSize( (RSHEADER_TYPE *)pMgr->GetClass() ) );
}
-
+
if ( TIMEFORMATTER_TIMEFIELDFORMAT & nMask )
meFormat = (TimeFieldFormat)pMgr->ReadLong();
-
+
if ( TIMEFORMATTER_DURATION & nMask )
mbDuration = (BOOL)pMgr->ReadShort();
-
+
if ( TIMEFORMATTER_STRICTFORMAT & nMask )
SetStrictFormat( (BOOL)pMgr->ReadShort() );
-
+
if ( TIMEFORMATTER_VALUE & nMask )
{
maFieldTime = Time( ResId( (RSHEADER_TYPE *)pMgr->GetClass(), *pMgr ) );
@@ -2846,7 +2846,7 @@ void TimeFormatter::ImplLoadRes( const ResId& rResId )
if ( maFieldTime < GetMin() )
maFieldTime = GetMin();
maLastTime = maFieldTime;
-
+
pMgr->Increment( pMgr->GetObjSize( (RSHEADER_TYPE *)pMgr->GetClass() ) );
}
}
@@ -3137,9 +3137,9 @@ void TimeField::ImplLoadRes( const ResId& rResId )
if( pMgr )
{
TimeFormatter::ImplLoadRes( ResId( (RSHEADER_TYPE *)GetClassRes(), *pMgr ) );
-
+
ULONG nMask = ReadLongRes();
-
+
if ( TIMEFIELD_FIRST & nMask )
{
maFirst = Time( ResId( (RSHEADER_TYPE *)GetClassRes(), *pMgr ) );
@@ -3151,7 +3151,7 @@ void TimeField::ImplLoadRes( const ResId& rResId )
IncrementRes( GetObjSizeRes( (RSHEADER_TYPE *)GetClassRes() ) );
}
}
-
+
Reformat();
}
diff --git a/vcl/source/control/fixbrd.cxx b/vcl/source/control/fixbrd.cxx
index 374d15f599f8..664c42394a0d 100644
--- a/vcl/source/control/fixbrd.cxx
+++ b/vcl/source/control/fixbrd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,8 +39,8 @@
void FixedBorder::ImplInit( Window* pParent, WinBits nStyle )
{
- mnType = FIXEDBORDER_TYPE_DOUBLEOUT;
- mbTransparent = TRUE;
+ mnType = FIXEDBORDER_TYPE_DOUBLEOUT;
+ mbTransparent = TRUE;
nStyle = ImplInitStyle( nStyle );
Control::ImplInit( pParent, nStyle, NULL );
@@ -118,9 +118,9 @@ FixedBorder::~FixedBorder()
void FixedBorder::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
const Point& rPos, const Size& rSize )
{
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- Rectangle aRect( rPos, rSize );
- USHORT nBorderStyle = mnType;
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ Rectangle aRect( rPos, rSize );
+ USHORT nBorderStyle = mnType;
if ( (nDrawFlags & WINDOW_DRAW_MONO) ||
(rStyleSettings.GetOptions() & STYLE_OPTION_MONO) )
@@ -143,7 +143,7 @@ void FixedBorder::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
else
*/
{
- DecorationView aDecoView( pDev );
+ DecorationView aDecoView( pDev );
aDecoView.DrawFrame( aRect, nBorderStyle );
}
}
@@ -160,8 +160,8 @@ void FixedBorder::Paint( const Rectangle& )
void FixedBorder::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
ULONG nFlags )
{
- Point aPos = pDev->LogicToPixel( rPos );
- Size aSize = pDev->LogicToPixel( rSize );
+ Point aPos = pDev->LogicToPixel( rPos );
+ Size aSize = pDev->LogicToPixel( rSize );
pDev->Push();
pDev->SetMapMode();
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx
index fafe06e47c89..c0588e941df1 100644
--- a/vcl/source/control/fixed.cxx
+++ b/vcl/source/control/fixed.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,21 +38,21 @@
// =======================================================================
-#define FIXEDLINE_TEXT_BORDER 4
+#define FIXEDLINE_TEXT_BORDER 4
-#define FIXEDTEXT_VIEW_STYLE (WB_3DLOOK | \
- WB_LEFT | WB_CENTER | WB_RIGHT | \
- WB_TOP | WB_VCENTER | WB_BOTTOM | \
- WB_WORDBREAK | WB_NOLABEL | \
+#define FIXEDTEXT_VIEW_STYLE (WB_3DLOOK | \
+ WB_LEFT | WB_CENTER | WB_RIGHT | \
+ WB_TOP | WB_VCENTER | WB_BOTTOM | \
+ WB_WORDBREAK | WB_NOLABEL | \
WB_INFO | WB_PATHELLIPSIS)
-#define FIXEDLINE_VIEW_STYLE (WB_3DLOOK | WB_NOLABEL)
-#define FIXEDBITMAP_VIEW_STYLE (WB_3DLOOK | \
- WB_LEFT | WB_CENTER | WB_RIGHT | \
- WB_TOP | WB_VCENTER | WB_BOTTOM | \
+#define FIXEDLINE_VIEW_STYLE (WB_3DLOOK | WB_NOLABEL)
+#define FIXEDBITMAP_VIEW_STYLE (WB_3DLOOK | \
+ WB_LEFT | WB_CENTER | WB_RIGHT | \
+ WB_TOP | WB_VCENTER | WB_BOTTOM | \
WB_SCALE)
-#define FIXEDIMAGE_VIEW_STYLE (WB_3DLOOK | \
- WB_LEFT | WB_CENTER | WB_RIGHT | \
- WB_TOP | WB_VCENTER | WB_BOTTOM | \
+#define FIXEDIMAGE_VIEW_STYLE (WB_3DLOOK | \
+ WB_LEFT | WB_CENTER | WB_RIGHT | \
+ WB_TOP | WB_VCENTER | WB_BOTTOM | \
WB_SCALE)
// =======================================================================
@@ -60,8 +60,8 @@
static Point ImplCalcPos( WinBits nStyle, const Point& rPos,
const Size& rObjSize, const Size& rWinSize )
{
- long nX;
- long nY;
+ long nX;
+ long nY;
if ( nStyle & WB_LEFT )
nX = 0;
@@ -229,10 +229,10 @@ void FixedText::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
bool bFillLayout
) const
{
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- WinBits nWinStyle = GetStyle();
- XubString aText( GetText() );
- USHORT nTextStyle = FixedText::ImplGetTextStyle( nWinStyle );
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ WinBits nWinStyle = GetStyle();
+ XubString aText( GetText() );
+ USHORT nTextStyle = FixedText::ImplGetTextStyle( nWinStyle );
Point aPos = rPos;
if ( nWinStyle & WB_EXTRAOFFSET )
@@ -284,9 +284,9 @@ void FixedText::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
{
ImplInitSettings( TRUE, TRUE, TRUE );
- Point aPos = pDev->LogicToPixel( rPos );
- Size aSize = pDev->LogicToPixel( rSize );
- Font aFont = GetDrawPixelFont( pDev );
+ Point aPos = pDev->LogicToPixel( rPos );
+ Size aSize = pDev->LogicToPixel( rSize );
+ Font aFont = GetDrawPixelFont( pDev );
pDev->Push();
pDev->SetMapMode();
@@ -348,7 +348,7 @@ void FixedText::StateChanged( StateChangedType nType )
Invalidate();
}
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
+ else if ( (nType == STATE_CHANGE_ZOOM) ||
(nType == STATE_CHANGE_CONTROLFONT) )
{
ImplInitSettings( TRUE, FALSE, FALSE );
@@ -495,11 +495,11 @@ void FixedLine::ImplInitSettings( BOOL bFont,
void FixedLine::ImplDraw( bool bLayout )
{
- Size aOutSize = GetOutputSizePixel();
- String aText = GetText();
- WinBits nWinStyle = GetStyle();
- MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : NULL;
- String* pDisplayText = bLayout ? &mpControlData->mpLayoutData->m_aDisplayText : NULL;
+ Size aOutSize = GetOutputSizePixel();
+ String aText = GetText();
+ WinBits nWinStyle = GetStyle();
+ MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : NULL;
+ String* pDisplayText = bLayout ? &mpControlData->mpLayoutData->m_aDisplayText : NULL;
DecorationView aDecoView( this );
if ( !aText.Len() || (nWinStyle & WB_VERT) )
@@ -523,8 +523,8 @@ void FixedLine::ImplDraw( bool bLayout )
}
else
{
- USHORT nStyle = TEXT_DRAW_MNEMONIC | TEXT_DRAW_LEFT | TEXT_DRAW_VCENTER | TEXT_DRAW_ENDELLIPSIS;
- Rectangle aRect( 0, 0, aOutSize.Width(), aOutSize.Height() );
+ USHORT nStyle = TEXT_DRAW_MNEMONIC | TEXT_DRAW_LEFT | TEXT_DRAW_VCENTER | TEXT_DRAW_ENDELLIPSIS;
+ Rectangle aRect( 0, 0, aOutSize.Width(), aOutSize.Height() );
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
if ( !IsEnabled() )
@@ -617,7 +617,7 @@ void FixedLine::StateChanged( StateChangedType nType )
(GetStyle() & FIXEDLINE_VIEW_STYLE) )
Invalidate();
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
+ else if ( (nType == STATE_CHANGE_ZOOM) ||
(nType == STATE_CHANGE_STYLE) ||
(nType == STATE_CHANGE_CONTROLFONT) )
{
@@ -807,9 +807,9 @@ void FixedBitmap::Paint( const Rectangle& )
void FixedBitmap::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
ULONG nFlags )
{
- Point aPos = pDev->LogicToPixel( rPos );
- Size aSize = pDev->LogicToPixel( rSize );
- Rectangle aRect( aPos, aSize );
+ Point aPos = pDev->LogicToPixel( rPos );
+ Size aSize = pDev->LogicToPixel( rSize );
+ Rectangle aRect( aPos, aSize );
pDev->Push();
pDev->SetMapMode();
@@ -1059,9 +1059,9 @@ void FixedImage::UserDraw( const UserDrawEvent& )
void FixedImage::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
ULONG nFlags )
{
- Point aPos = pDev->LogicToPixel( rPos );
- Size aSize = pDev->LogicToPixel( rSize );
- Rectangle aRect( aPos, aSize );
+ Point aPos = pDev->LogicToPixel( rPos );
+ Size aSize = pDev->LogicToPixel( rSize );
+ Rectangle aRect( aPos, aSize );
pDev->Push();
pDev->SetMapMode();
diff --git a/vcl/source/control/group.cxx b/vcl/source/control/group.cxx
index 73d303b871ea..9922b458717d 100644
--- a/vcl/source/control/group.cxx
+++ b/vcl/source/control/group.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,10 +38,10 @@
// =======================================================================
-#define GROUP_BORDER 12
-#define GROUP_TEXT_BORDER 2
+#define GROUP_BORDER 12
+#define GROUP_TEXT_BORDER 2
-#define GROUP_VIEW_STYLE (WB_3DLOOK | WB_NOLABEL)
+#define GROUP_VIEW_STYLE (WB_3DLOOK | WB_NOLABEL)
// =======================================================================
@@ -135,12 +135,12 @@ GroupBox::GroupBox( Window* pParent, const ResId& rResId ) :
void GroupBox::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
const Point& rPos, const Size& rSize, bool bLayout )
{
- long nTop;
- long nTextOff;
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- XubString aText( GetText() );
- Rectangle aRect( rPos, rSize );
- USHORT nTextStyle = TEXT_DRAW_LEFT | TEXT_DRAW_TOP | TEXT_DRAW_ENDELLIPSIS | TEXT_DRAW_MNEMONIC;
+ long nTop;
+ long nTextOff;
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ XubString aText( GetText() );
+ Rectangle aRect( rPos, rSize );
+ USHORT nTextStyle = TEXT_DRAW_LEFT | TEXT_DRAW_TOP | TEXT_DRAW_ENDELLIPSIS | TEXT_DRAW_MNEMONIC;
if ( GetStyle() & WB_NOLABEL )
nTextStyle &= ~TEXT_DRAW_MNEMONIC;
@@ -185,7 +185,7 @@ void GroupBox::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
pDev->SetLineColor( Color( COL_BLACK ) );
else
pDev->SetLineColor( rStyleSettings.GetShadowColor() );
-
+
if ( !aText.Len() )
pDev->DrawLine( Point( rPos.X(), nTop ), Point( rPos.X()+rSize.Width()-2, nTop ) );
else
@@ -227,7 +227,7 @@ void GroupBox::ImplDraw( OutputDevice* pDev, ULONG nDrawFlags,
void GroupBox::FillLayoutData() const
{
mpControlData->mpLayoutData = new vcl::ControlLayoutData();
- const_cast<GroupBox*>(this)-> ImplDraw( const_cast<GroupBox*>(this), 0, Point(), GetOutputSizePixel(), true );
+ const_cast<GroupBox*>(this)-> ImplDraw( const_cast<GroupBox*>(this), 0, Point(), GetOutputSizePixel(), true );
}
// -----------------------------------------------------------------------
@@ -242,9 +242,9 @@ void GroupBox::Paint( const Rectangle& )
void GroupBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
ULONG nFlags )
{
- Point aPos = pDev->LogicToPixel( rPos );
- Size aSize = pDev->LogicToPixel( rSize );
- Font aFont = GetDrawPixelFont( pDev );
+ Point aPos = pDev->LogicToPixel( rPos );
+ Size aSize = pDev->LogicToPixel( rSize );
+ Font aFont = GetDrawPixelFont( pDev );
pDev->Push();
pDev->SetMapMode();
@@ -287,7 +287,7 @@ void GroupBox::StateChanged( StateChangedType nType )
(GetStyle() & GROUP_VIEW_STYLE) )
Invalidate();
}
- else if ( (nType == STATE_CHANGE_ZOOM) ||
+ else if ( (nType == STATE_CHANGE_ZOOM) ||
(nType == STATE_CHANGE_CONTROLFONT) )
{
ImplInitSettings( TRUE, FALSE, FALSE );
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 14a2fb947662..5c8f4229fa88 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -278,10 +278,10 @@ USHORT ImplEntryList::FindEntry( const XubString& rString, BOOL bSearchMRUArea )
USHORT ImplEntryList::FindMatchingEntry( const XubString& rStr, USHORT nStart, BOOL bForward, BOOL bLazy ) const
{
- USHORT nPos = LISTBOX_ENTRY_NOTFOUND;
- USHORT nEntryCount = GetEntryCount();
+ USHORT nPos = LISTBOX_ENTRY_NOTFOUND;
+ USHORT nEntryCount = GetEntryCount();
if ( !bForward )
- nStart++; // wird sofort dekrementiert
+ nStart++; // wird sofort dekrementiert
const vcl::I18nHelper& rI18nHelper = mpWindow->GetSettings().GetLocaleI18nHelper();
for ( USHORT n = nStart; bForward ? ( n < nEntryCount ) : n; )
@@ -336,7 +336,7 @@ long ImplEntryList::GetAddedHeight( USHORT i_nEndIndex, USHORT i_nBeginIndex, lo
nStop = nEntryCount-1;
if( nStart > nEntryCount-1 )
nStart = nEntryCount-1;
-
+
USHORT nIndex = nStart;
while( nIndex != LISTBOX_ENTRY_NOTFOUND && nIndex < nStop )
{
@@ -526,37 +526,37 @@ USHORT ImplEntryList::FindFirstSelectable( USHORT nPos, bool bForward /* = true
ImplListBoxWindow::ImplListBoxWindow( Window* pParent, WinBits nWinStyle ) :
Control( pParent, 0 )
{
- mpEntryList = new ImplEntryList( this );
-
- mnTop = 0;
- mnLeft = 0;
- mnBorder = 1;
- mnSelectModifier = 0;
- mnUserDrawEntry = LISTBOX_ENTRY_NOTFOUND;
- mbTrack = FALSE;
- mbImgsDiffSz = FALSE;
- mbTravelSelect = FALSE;
- mbTrackingSelect = FALSE;
- mbSelectionChanged = FALSE;
- mbMouseMoveSelect = FALSE;
- mbMulti = FALSE;
- mbStackMode = FALSE;
- mbGrabFocus = FALSE;
- mbUserDrawEnabled = FALSE;
- mbInUserDraw = FALSE;
- mbReadOnly = FALSE;
+ mpEntryList = new ImplEntryList( this );
+
+ mnTop = 0;
+ mnLeft = 0;
+ mnBorder = 1;
+ mnSelectModifier = 0;
+ mnUserDrawEntry = LISTBOX_ENTRY_NOTFOUND;
+ mbTrack = FALSE;
+ mbImgsDiffSz = FALSE;
+ mbTravelSelect = FALSE;
+ mbTrackingSelect = FALSE;
+ mbSelectionChanged = FALSE;
+ mbMouseMoveSelect = FALSE;
+ mbMulti = FALSE;
+ mbStackMode = FALSE;
+ mbGrabFocus = FALSE;
+ mbUserDrawEnabled = FALSE;
+ mbInUserDraw = FALSE;
+ mbReadOnly = FALSE;
mbHasFocusRect = FALSE;
mbRight = ( nWinStyle & WB_RIGHT ) ? TRUE : FALSE;
mbCenter = ( nWinStyle & WB_CENTER ) ? TRUE : FALSE;
- mbSimpleMode = ( nWinStyle & WB_SIMPLEMODE ) ? TRUE : FALSE;
- mbSort = ( nWinStyle & WB_SORT ) ? TRUE : FALSE;
+ mbSimpleMode = ( nWinStyle & WB_SIMPLEMODE ) ? TRUE : FALSE;
+ mbSort = ( nWinStyle & WB_SORT ) ? TRUE : FALSE;
// pb: #106948# explicit mirroring for calc
- mbMirroring = FALSE;
+ mbMirroring = FALSE;
- mnCurrentPos = LISTBOX_ENTRY_NOTFOUND;
+ mnCurrentPos = LISTBOX_ENTRY_NOTFOUND;
mnTrackingSaveSelection = LISTBOX_ENTRY_NOTFOUND;
- mnSeparatorPos = LISTBOX_ENTRY_NOTFOUND;
+ mnSeparatorPos = LISTBOX_ENTRY_NOTFOUND;
meProminentType = PROMINENT_TOP;
SetLineColor();
@@ -589,11 +589,11 @@ void ImplListBoxWindow::ImplInitSettings( BOOL bFont, BOOL bForeground, BOOL bBa
void ImplListBoxWindow::ImplCalcMetrics()
{
- mnMaxWidth = 0;
- mnMaxTxtWidth = 0;
- mnMaxImgWidth = 0;
+ mnMaxWidth = 0;
+ mnMaxTxtWidth = 0;
+ mnMaxImgWidth = 0;
mnMaxImgTxtWidth= 0;
- mnMaxImgHeight = 0;
+ mnMaxImgHeight = 0;
mnTextHeight = (USHORT)GetTextHeight();
mnMaxTxtHeight = mnTextHeight + mnBorder;
@@ -631,15 +631,15 @@ void ImplListBoxWindow::Clear()
{
mpEntryList->Clear();
- mnMaxHeight = mnMaxTxtHeight;
- mnMaxWidth = 0;
- mnMaxTxtWidth = 0;
+ mnMaxHeight = mnMaxTxtHeight;
+ mnMaxWidth = 0;
+ mnMaxTxtWidth = 0;
mnMaxImgTxtWidth= 0;
- mnMaxImgWidth = 0;
- mnMaxImgHeight = 0;
- mnTop = 0;
- mnLeft = 0;
- mbImgsDiffSz = FALSE;
+ mnMaxImgWidth = 0;
+ mnMaxImgHeight = 0;
+ mnTop = 0;
+ mnLeft = 0;
+ mbImgsDiffSz = FALSE;
ImplClearLayoutData();
mnCurrentPos = LISTBOX_ENTRY_NOTFOUND;
@@ -658,13 +658,13 @@ void ImplListBoxWindow::SetUserItemSize( const Size& rSz )
struct ImplEntryMetrics
{
- BOOL bText;
- BOOL bImage;
- long nEntryWidth;
- long nEntryHeight;
- long nTextWidth;
- long nImgWidth;
- long nImgHeight;
+ BOOL bText;
+ BOOL bImage;
+ long nEntryWidth;
+ long nEntryHeight;
+ long nTextWidth;
+ long nImgWidth;
+ long nImgHeight;
};
// -----------------------------------------------------------------------
@@ -710,7 +710,7 @@ void ImplListBoxWindow::ImplUpdateEntryMetrics( ImplEntryType& rEntry )
if ( aMetrics.bImage )
{
Size aImgSz = rEntry.maImage.GetSizePixel();
- aMetrics.nImgWidth = (USHORT) CalcZoom( aImgSz.Width() );
+ aMetrics.nImgWidth = (USHORT) CalcZoom( aImgSz.Width() );
aMetrics.nImgHeight = (USHORT) CalcZoom( aImgSz.Height() );
if( mnMaxImgWidth && ( aMetrics.nImgWidth != mnMaxImgWidth ) )
@@ -725,7 +725,7 @@ void ImplListBoxWindow::ImplUpdateEntryMetrics( ImplEntryType& rEntry )
mnMaxImgTxtWidth = Max( mnMaxImgTxtWidth, aMetrics.nTextWidth );
aMetrics.nEntryHeight = Max( aMetrics.nImgHeight, aMetrics.nEntryHeight );
-
+
}
if ( IsUserDrawEnabled() || aMetrics.bImage )
{
@@ -747,7 +747,7 @@ void ImplListBoxWindow::ImplUpdateEntryMetrics( ImplEntryType& rEntry )
mnMaxWidth = aMetrics.nEntryWidth;
if ( aMetrics.nEntryHeight > mnMaxHeight )
mnMaxHeight = aMetrics.nEntryHeight;
-
+
rEntry.mnHeight = aMetrics.nEntryHeight;
}
@@ -803,7 +803,7 @@ USHORT ImplListBoxWindow::InsertEntry( USHORT nPos, ImplEntryType* pNewEntry )
if( (GetStyle() & WB_WORDBREAK) )
pNewEntry->mnFlags |= LISTBOX_ENTRY_FLAG_MULTILINE;
-
+
ImplUpdateEntryMetrics( *pNewEntry );
return nNewPos;
}
@@ -856,7 +856,7 @@ void ImplListBoxWindow::ImplHideFocusRect()
USHORT ImplListBoxWindow::GetEntryPosForPoint( const Point& rPoint ) const
{
long nY = mnBorder;
-
+
USHORT nSelect = mnTop;
const ImplEntryType* pEntry = mpEntryList->GetEntryPtr( nSelect );
while( pEntry && rPoint.Y() > pEntry->mnHeight + nY )
@@ -875,7 +875,7 @@ USHORT ImplListBoxWindow::GetEntryPosForPoint( const Point& rPoint ) const
BOOL ImplListBoxWindow::IsVisible( USHORT i_nEntry ) const
{
BOOL bRet = FALSE;
-
+
if( i_nEntry >= mnTop )
{
if( mpEntryList->GetAddedHeight( i_nEntry, mnTop ) <
@@ -884,7 +884,7 @@ BOOL ImplListBoxWindow::IsVisible( USHORT i_nEntry ) const
bRet = TRUE;
}
}
-
+
return bRet;
}
@@ -898,13 +898,13 @@ USHORT ImplListBoxWindow::GetLastVisibleEntry() const
long nDiff;
for( nDiff = 0; nDiff < nWindowHeight && nPos < nCount; nDiff = mpEntryList->GetAddedHeight( nPos, mnTop ) )
nPos++;
-
+
if( nDiff > nWindowHeight && nPos > mnTop )
nPos--;
-
+
if( nPos >= nCount )
nPos = nCount-1;
-
+
return nPos;
}
@@ -912,7 +912,7 @@ USHORT ImplListBoxWindow::GetLastVisibleEntry() const
void ImplListBoxWindow::MouseButtonDown( const MouseEvent& rMEvt )
{
- mbMouseMoveSelect = FALSE; // Nur bis zum ersten MouseButtonDown
+ mbMouseMoveSelect = FALSE; // Nur bis zum ersten MouseButtonDown
maSearchStr.Erase();
if ( !IsReadOnly() )
@@ -986,7 +986,7 @@ void ImplListBoxWindow::MouseMove( const MouseEvent& rMEvt )
nSelect = Min( nSelect, GetLastVisibleEntry() );
nSelect = Min( nSelect, (USHORT) ( mpEntryList->GetEntryCount() - 1 ) );
// Select only visible Entries with MouseMove, otherwise Tracking...
- if ( IsVisible( nSelect ) &&
+ if ( IsVisible( nSelect ) &&
mpEntryList->IsEntrySelectable( nSelect ) &&
( ( nSelect != mnCurrentPos ) || !GetEntryList()->GetSelectEntryCount() || ( nSelect != GetEntryList()->GetSelectEntryPos( 0 ) ) ) )
{
@@ -1298,7 +1298,7 @@ void ImplListBoxWindow::Tracking( const TrackingEvent& rTEvt )
MouseEvent aMEvt = rTEvt.GetMouseEvent();
Point aPt( aMEvt.GetPosPixel() );
BOOL bShift = aMEvt.IsShift();
- BOOL bCtrl = aMEvt.IsMod1();
+ BOOL bCtrl = aMEvt.IsMod1();
USHORT nSelect = LISTBOX_ENTRY_NOTFOUND;
if( aPt.Y() < 0 )
@@ -1314,7 +1314,7 @@ void ImplListBoxWindow::Tracking( const TrackingEvent& rTEvt )
{
if ( mnCurrentPos != LISTBOX_ENTRY_NOTFOUND )
{
- nSelect = Min( (USHORT)(mnCurrentPos+1), (USHORT)(mpEntryList->GetEntryCount()-1) );
+ nSelect = Min( (USHORT)(mnCurrentPos+1), (USHORT)(mpEntryList->GetEntryCount()-1) );
if( nSelect >= GetLastVisibleEntry() )
SetTopEntry( mnTop+1 );
}
@@ -1417,9 +1417,9 @@ void ImplListBoxWindow::KeyInput( const KeyEvent& rKEvt )
// -----------------------------------------------------------------------
-#define IMPL_SELECT_NODIRECTION 0
-#define IMPL_SELECT_UP 1
-#define IMPL_SELECT_DOWN 2
+#define IMPL_SELECT_NODIRECTION 0
+#define IMPL_SELECT_UP 1
+#define IMPL_SELECT_DOWN 2
BOOL ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
@@ -1430,12 +1430,12 @@ BOOL ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
KeyCode aKeyCode = rKEvt.GetKeyCode();
BOOL bShift = aKeyCode.IsShift();
- BOOL bCtrl = aKeyCode.IsMod1() || aKeyCode.IsMod3();
+ BOOL bCtrl = aKeyCode.IsMod1() || aKeyCode.IsMod3();
BOOL bMod2 = aKeyCode.IsMod2();
BOOL bDone = FALSE;
switch( aKeyCode.GetCode() )
- {
+ {
case KEY_UP:
{
if ( IsReadOnly() )
@@ -1512,7 +1512,7 @@ BOOL ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
USHORT nCurVis = GetLastVisibleEntry() - mnTop +1;
SetTopEntry( ( mnTop > nCurVis ) ? ( mnTop-nCurVis+1 ) : 0 );
}
-
+
// find first selectable starting from mnTop looking foreward
nSelect = mpEntryList->FindFirstSelectable( mnTop, true );
}
@@ -1631,7 +1631,7 @@ BOOL ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
{
mnSelectModifier = rKEvt.GetKeyCode().GetModifier();
ImplCallSelect();
- bDone = FALSE; // RETURN nicht abfangen.
+ bDone = FALSE; // RETURN nicht abfangen.
}
maSearchStr.Erase();
}
@@ -1660,16 +1660,16 @@ BOOL ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
BOOL bUpdates = IsUpdateMode();
SetUpdateMode( FALSE );
- USHORT nEntryCount = mpEntryList->GetEntryCount();
+ USHORT nEntryCount = mpEntryList->GetEntryCount();
for( USHORT i = 0; i < nEntryCount; i++ )
SelectEntry( i, TRUE );
-
+
// restore update mode
SetUpdateMode( bUpdates );
Invalidate();
-
+
maSearchStr.Erase();
-
+
bDone = TRUE;
break;
}
@@ -1743,7 +1743,7 @@ BOOL ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
void ImplListBoxWindow::ImplPaint( USHORT nPos, BOOL bErase, bool bLayout )
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
-
+
const ImplEntryType* pEntry = mpEntryList->GetEntryPtr( nPos );
if( ! pEntry )
return;
@@ -1796,8 +1796,8 @@ void ImplListBoxWindow::DrawEntry( USHORT nPos, BOOL bDrawImage, BOOL bDrawText,
{
const ImplEntryType* pEntry = mpEntryList->GetEntryPtr( nPos );
if( ! pEntry )
- return;
-
+ return;
+
// Bei Aenderungen in dieser Methode ggf. auch ImplWin::DrawEntry() anpassen.
if ( mbInUserDraw )
@@ -1871,7 +1871,7 @@ void ImplListBoxWindow::DrawEntry( USHORT nPos, BOOL bDrawImage, BOOL bDrawText,
nDrawStyle |= MULTILINE_ENTRY_DRAW_FLAGS;
if( (pEntry->mnFlags & LISTBOX_ENTRY_FLAG_DRAW_DISABLED) )
nDrawStyle |= TEXT_DRAW_DISABLE;
-
+
DrawText( aTextRect, aStr, nDrawStyle, pVector, pDisplayText );
}
}
@@ -1947,7 +1947,7 @@ void ImplListBoxWindow::Paint( const Rectangle& rRect )
USHORT ImplListBoxWindow::GetDisplayLineCount() const
{
// FIXME: LISTBOX_ENTRY_FLAG_MULTILINE
-
+
USHORT nCount = mpEntryList->GetEntryCount();
long nHeight = GetOutputSizePixel().Height();// - mnMaxHeight + mnBorder;
USHORT nEntries = static_cast< USHORT >( ( nHeight + mnMaxHeight - 1 ) / mnMaxHeight );
@@ -2020,16 +2020,16 @@ void ImplListBoxWindow::SetTopEntry( USHORT nTop )
{
if( mpEntryList->GetEntryCount() == 0 )
return;
-
+
long nWHeight = PixelToLogic( GetSizePixel() ).Height();
-
+
USHORT nLastEntry = mpEntryList->GetEntryCount()-1;
if( nTop > nLastEntry )
nTop = nLastEntry;
const ImplEntryType* pLast = mpEntryList->GetEntryPtr( nLastEntry );
while( nTop > 0 && mpEntryList->GetAddedHeight( nLastEntry, nTop-1 ) + pLast->mnHeight <= nWHeight )
nTop--;
-
+
if ( nTop != mnTop )
{
ImplClearLayoutData();
@@ -2107,10 +2107,10 @@ void ImplListBoxWindow::ScrollHorz( long n )
Size ImplListBoxWindow::CalcSize( USHORT nMaxLines ) const
{
// FIXME: LISTBOX_ENTRY_FLAG_MULTILINE
-
+
Size aSz;
-// USHORT nL = Min( nMaxLines, mpEntryList->GetEntryCount() );
- aSz.Height() = nMaxLines * mnMaxHeight;
+// USHORT nL = Min( nMaxLines, mpEntryList->GetEntryCount() );
+ aSz.Height() = nMaxLines * mnMaxHeight;
aSz.Width() = mnMaxWidth + 2*mnBorder;
return aSz;
}
@@ -2208,17 +2208,17 @@ ImplListBox::ImplListBox( Window* pParent, WinBits nWinStyle ) :
// for native widget rendering we must be able to detect this window type
SetType( WINDOW_LISTBOXWINDOW );
- mpVScrollBar = new ScrollBar( this, WB_VSCROLL | WB_DRAG );
- mpHScrollBar = new ScrollBar( this, WB_HSCROLL | WB_DRAG );
- mpScrollBarBox = new ScrollBarBox( this );
+ mpVScrollBar = new ScrollBar( this, WB_VSCROLL | WB_DRAG );
+ mpHScrollBar = new ScrollBar( this, WB_HSCROLL | WB_DRAG );
+ mpScrollBarBox = new ScrollBarBox( this );
Link aLink( LINK( this, ImplListBox, ScrollBarHdl ) );
mpVScrollBar->SetScrollHdl( aLink );
mpHScrollBar->SetScrollHdl( aLink );
- mbVScroll = FALSE;
- mbHScroll = FALSE;
- mbAutoHScroll = ( nWinStyle & WB_AUTOHSCROLL ) ? TRUE : FALSE;
+ mbVScroll = FALSE;
+ mbHScroll = FALSE;
+ mbAutoHScroll = ( nWinStyle & WB_AUTOHSCROLL ) ? TRUE : FALSE;
maLBWindow.SetScrollHdl( LINK( this, ImplListBox, LBWindowScrolled ) );
maLBWindow.SetMRUChangedHdl( LINK( this, ImplListBox, MRUChanged ) );
@@ -2390,7 +2390,7 @@ void ImplListBox::ImplCheckScrollBars()
mbVScroll = TRUE;
// Ueberpruefung des rausgescrollten Bereichs
- SetTopEntry( GetTopEntry() ); // MaxTop wird geprueft...
+ SetTopEntry( GetTopEntry() ); // MaxTop wird geprueft...
}
else
{
@@ -2414,7 +2414,7 @@ void ImplListBox::ImplCheckScrollBars()
bArrange = TRUE;
mbHScroll = TRUE;
- if ( !mbVScroll ) // ggf. brauchen wir jetzt doch einen
+ if ( !mbVScroll ) // ggf. brauchen wir jetzt doch einen
{
nMaxVisEntries = (USHORT) ( ( aOutSz.Height() - mpHScrollBar->GetSizePixel().Height() ) / GetEntryHeight() );
if( nEntries > nMaxVisEntries )
@@ -2423,7 +2423,7 @@ void ImplListBox::ImplCheckScrollBars()
mbVScroll = TRUE;
// Ueberpruefung des rausgescrollten Bereichs
- SetTopEntry( GetTopEntry() ); // MaxTop wird geprueft...
+ SetTopEntry( GetTopEntry() ); // MaxTop wird geprueft...
}
}
@@ -2547,8 +2547,8 @@ void ImplListBox::StateChanged( StateChangedType nType )
{
BOOL bUpdate = IsUpdateMode();
maLBWindow.SetUpdateMode( bUpdate );
-// mpHScrollBar->SetUpdateMode( bUpdate );
-// mpVScrollBar->SetUpdateMode( bUpdate );
+// mpHScrollBar->SetUpdateMode( bUpdate );
+// mpVScrollBar->SetUpdateMode( bUpdate );
if ( bUpdate && IsReallyVisible() )
ImplCheckScrollBars();
}
@@ -2591,13 +2591,13 @@ void ImplListBox::StateChanged( StateChangedType nType )
void ImplListBox::DataChanged( const DataChangedEvent& rDCEvt )
{
-// if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
-// (rDCEvt.GetFlags() & SETTINGS_STYLE) )
-// {
-// maLBWindow.SetSettings( GetSettings() );
-// Resize();
-// }
-// else
+// if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) &&
+// (rDCEvt.GetFlags() & SETTINGS_STYLE) )
+// {
+// maLBWindow.SetSettings( GetSettings() );
+// Resize();
+// }
+// else
Control::DataChanged( rDCEvt );
}
@@ -2746,7 +2746,7 @@ void ImplWin::MouseButtonDown( const MouseEvent& )
{
if( IsEnabled() )
{
-// Control::MouseButtonDown( rMEvt );
+// Control::MouseButtonDown( rMEvt );
MBDown();
}
}
@@ -2807,7 +2807,7 @@ void ImplWin::ImplDraw( bool bLayout )
nState &= ~CTRL_STATE_ENABLED;
if ( pWin->HasFocus() )
nState |= CTRL_STATE_FOCUSED;
-
+
// The listbox is painted over the entire control including the
// border, but ImplWin does not contain the border => correction
// needed.
@@ -2823,10 +2823,10 @@ void ImplWin::ImplDraw( bool bLayout )
while( pChild && (bMouseOver = pChild->IsMouseOver()) == FALSE )
pChild = pChild->GetWindow( WINDOW_NEXT );
}
-
+
if( bMouseOver )
nState |= CTRL_STATE_ROLLOVER;
-
+
// if parent has no border, then nobody has drawn the background
// since no border window exists. so draw it here.
WinBits nParentStyle = pWin->GetStyle();
@@ -2836,7 +2836,7 @@ void ImplWin::ImplDraw( bool bLayout )
pWin->DrawNativeControl( CTRL_LISTBOX, PART_ENTIRE_CONTROL, aParentRect,
nState, aControlValue, rtl::OUString() );
}
-
+
bNativeOK = DrawNativeControl( CTRL_LISTBOX, PART_ENTIRE_CONTROL, aCtrlRegion, nState,
aControlValue, rtl::OUString() );
}
@@ -3007,7 +3007,7 @@ void ImplWin::LoseFocus()
ImplBtn::ImplBtn( Window* pParent, WinBits nWinStyle ) :
PushButton( pParent, nWinStyle ),
- mbDown ( FALSE )
+ mbDown ( FALSE )
{
}
@@ -3043,7 +3043,7 @@ ImplListBoxFloatingWindow::ImplListBoxFloatingWindow( Window* pParent ) :
mnPopupModeStartSaveSelection = LISTBOX_ENTRY_NOTFOUND;
EnableSaveBackground();
-
+
Window * pBorderWindow = ImplGetBorderWindow();
if( pBorderWindow )
{
@@ -3093,7 +3093,7 @@ void ImplListBoxFloatingWindow::SetPosSizePixel( long nX, long nY, long nWidth,
SetPosPixel( ImplCalcPos( this, Rectangle( aPos, GetParent()->GetSizePixel() ), FLOATWIN_POPUPMODE_DOWN, nIndex ) );
}
-// if( !IsReallyVisible() )
+// if( !IsReallyVisible() )
{
// Die ImplListBox erhaelt kein Resize, weil nicht sichtbar.
// Die Fenster muessen aber ein Resize() erhalten, damit die
diff --git a/vcl/source/control/imgctrl.cxx b/vcl/source/control/imgctrl.cxx
index dfb74ecc4880..436ab5e45a16 100644
--- a/vcl/source/control/imgctrl.cxx
+++ b/vcl/source/control/imgctrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -233,7 +233,7 @@ void ImageControl::Paint( const Rectangle& rRect )
if( HasFocus() )
{
Window *pWin = GetWindow( WINDOW_BORDER );
-
+
BOOL bFlat = (GetBorderStyle() == 2);
Rectangle aRect( Point(0,0), pWin->GetOutputSizePixel() );
Color oldLineCol = pWin->GetLineColor();
diff --git a/vcl/source/control/longcurr.cxx b/vcl/source/control/longcurr.cxx
index e072b406faae..610dbd92d469 100644
--- a/vcl/source/control/longcurr.cxx
+++ b/vcl/source/control/longcurr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,14 +48,14 @@
// =======================================================================
-#define FORMAT_LONGCURRENCY 4
+#define FORMAT_LONGCURRENCY 4
// =======================================================================
static BigInt ImplPower10( USHORT n )
{
USHORT i;
- BigInt nValue = 1;
+ BigInt nValue = 1;
for ( i=0; i < n; i++ )
nValue *= 10;
@@ -82,7 +82,7 @@ static XubString ImplGetCurr( const LocaleDataWrapper& rLocaleDataWrapper, const
if ( !aInteger.IsZero() )
{
aFraction += aTmp;
- aTmp = 1000000000L;
+ aTmp = 1000000000L;
}
if ( rNumber.IsNeg() )
aFraction *= -1;
@@ -122,7 +122,7 @@ static BOOL ImplNumericProcessKeyInput( Edit*, const KeyEvent& rKEvt,
else
{
sal_Unicode cChar = rKEvt.GetCharCode();
- USHORT nGroup = rKEvt.GetKeyCode().GetGroup();
+ USHORT nGroup = rKEvt.GetKeyCode().GetGroup();
if ( (nGroup == KEYGROUP_FKEYS) || (nGroup == KEYGROUP_CURSOR) ||
(nGroup == KEYGROUP_MISC) ||
@@ -142,12 +142,12 @@ static BOOL ImplNumericGetValue( const XubString& rStr, BigInt& rValue,
USHORT nDecDigits, const LocaleDataWrapper& rLocaleDataWrapper,
BOOL bCurrency = FALSE )
{
- XubString aStr = rStr;
- XubString aStr1;
- XubString aStr2;
- USHORT nDecPos;
- BOOL bNegative = FALSE;
- xub_StrLen i;
+ XubString aStr = rStr;
+ XubString aStr1;
+ XubString aStr2;
+ USHORT nDecPos;
+ BOOL bNegative = FALSE;
+ xub_StrLen i;
// Reaktion auf leeren String
if ( !rStr.Len() )
@@ -314,7 +314,7 @@ BOOL ImplLongCurrencyReformat( const XubString& rStr, BigInt nMin, BigInt nMax,
}
}
- rOutStr = ImplGetCurr( rLocaleDataWrapper, nTempVal, nDecDigits, rFormatter.GetCurrencySymbol(), rFormatter.IsUseThousandSep() );
+ rOutStr = ImplGetCurr( rLocaleDataWrapper, nTempVal, nDecDigits, rFormatter.GetCurrencySymbol(), rFormatter.IsUseThousandSep() );
return TRUE;
}
}
@@ -324,14 +324,14 @@ BOOL ImplLongCurrencyReformat( const XubString& rStr, BigInt nMin, BigInt nMax,
void LongCurrencyFormatter::ImpInit()
{
- mnFieldValue = 0;
- mnLastValue = 0;
- mnMin = 0;
- mnMax = 0x7FFFFFFF;
- mnMax *= 0x7FFFFFFF;
- mnCorrectedValue = 0;
+ mnFieldValue = 0;
+ mnLastValue = 0;
+ mnMin = 0;
+ mnMax = 0x7FFFFFFF;
+ mnMax *= 0x7FFFFFFF;
+ mnCorrectedValue = 0;
mnDecimalDigits = 0;
- mnType = FORMAT_LONGCURRENCY;
+ mnType = FORMAT_LONGCURRENCY;
mbThousandSep = TRUE;
SetDecimalDigits( 0 );
}
@@ -349,23 +349,23 @@ void LongCurrencyFormatter::ImplLoadRes( const ResId& rResId )
{
ImpInit();
- ResMgr* pMgr = rResId.GetResMgr();
+ ResMgr* pMgr = rResId.GetResMgr();
if( pMgr )
{
- ULONG nMask = pMgr->ReadLong();
-
+ ULONG nMask = pMgr->ReadLong();
+
if ( NUMERICFORMATTER_MIN & nMask )
mnMin = pMgr->ReadLong();
-
+
if ( NUMERICFORMATTER_MAX & nMask )
mnMax = pMgr->ReadLong();
-
+
if ( NUMERICFORMATTER_STRICTFORMAT & nMask )
SetStrictFormat( (BOOL)pMgr->ReadShort() );
-
+
if ( NUMERICFORMATTER_DECIMALDIGITS & nMask )
SetDecimalDigits( pMgr->ReadShort() );
-
+
if ( NUMERICFORMATTER_VALUE & nMask )
{
mnFieldValue = pMgr->ReadLong();
@@ -515,11 +515,11 @@ void LongCurrencyFormatter::SetUseThousandSep( BOOL b )
void LongCurrencyFormatter::SetDecimalDigits( USHORT nDigits )
{
-// DBG_ASSERT( nDigits < 10, "LongCurrency duerfen nur maximal 9 Nachkommastellen haben" );
+// DBG_ASSERT( nDigits < 10, "LongCurrency duerfen nur maximal 9 Nachkommastellen haben" );
if ( nDigits > 9 )
nDigits = 9;
-
+
mnDecimalDigits = nDigits;
ReformatAll();
}
@@ -600,9 +600,9 @@ LongCurrencyField::LongCurrencyField( Window* pParent, WinBits nWinStyle ) :
SpinField( pParent, nWinStyle )
{
SetField( this );
- mnSpinSize = 1;
- mnFirst = mnMin;
- mnLast = mnMax;
+ mnSpinSize = 1;
+ mnFirst = mnMin;
+ mnLast = mnMax;
Reformat();
}
@@ -617,9 +617,9 @@ LongCurrencyField::LongCurrencyField( Window* pParent, const ResId& rResId ) :
SpinField::ImplInit( pParent, nStyle );
SetField( this );
- mnSpinSize = 1;
- mnFirst = mnMin;
- mnLast = mnMax;
+ mnSpinSize = 1;
+ mnFirst = mnMin;
+ mnLast = mnMax;
Reformat();
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index 3ae3c47c0428..2a5158230283 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,13 +100,13 @@ ListBox::~ListBox()
void ListBox::ImplInitListBoxData()
{
- mpFloatWin = NULL;
- mpImplWin = NULL;
- mpBtn = NULL;
+ mpFloatWin = NULL;
+ mpImplWin = NULL;
+ mpBtn = NULL;
- mnDDHeight = 0;
- mbDDAutoSize = TRUE;
- mnSaveValue = LISTBOX_ENTRY_NOTFOUND;
+ mnDDHeight = 0;
+ mbDDAutoSize = TRUE;
+ mnSaveValue = LISTBOX_ENTRY_NOTFOUND;
mnLineCount = 0;
}
@@ -176,7 +176,7 @@ void ListBox::ImplInit( Window* pParent, WinBits nStyle )
mpImplLB->SetUserDrawHdl( LINK( this, ListBox, ImplUserDrawHdl ) );
mpImplLB->SetPosPixel( Point() );
mpImplLB->Show();
-
+
mpImplLB->GetDropTarget()->addDropTargetListener(xDrop);
mpImplLB->SetDropTraget(xDrop);
@@ -217,7 +217,7 @@ void ListBox::ImplLoadRes( const ResId& rResId )
long nId = ReadLongRes();
if( nId )
- SetEntryData( nPos, (void *)nId ); // ID als UserData
+ SetEntryData( nPos, (void *)nId ); // ID als UserData
}
if( nSelPos < nNumber )
@@ -450,11 +450,11 @@ void ListBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, UL
if ( IsDropDownBox() )
{
- XubString aText = GetSelectEntry();
- long nTextHeight = pDev->GetTextHeight();
- long nTextWidth = pDev->GetTextWidth( aText );
- long nOffX = 3*nOnePixel;
- long nOffY = (aSize.Height()-nTextHeight) / 2;
+ XubString aText = GetSelectEntry();
+ long nTextHeight = pDev->GetTextHeight();
+ long nTextWidth = pDev->GetTextWidth( aText );
+ long nOffX = 3*nOnePixel;
+ long nOffY = (aSize.Height()-nTextHeight) / 2;
// Clipping?
if ( (nOffY < 0) ||
@@ -471,9 +471,9 @@ void ListBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, UL
}
else
{
- long nTextHeight = pDev->GetTextHeight();
- USHORT nLines = (USHORT)(aSize.Height() / nTextHeight);
- Rectangle aClip( aPos, aSize );
+ long nTextHeight = pDev->GetTextHeight();
+ USHORT nLines = (USHORT)(aSize.Height() / nTextHeight);
+ Rectangle aClip( aPos, aSize );
pDev->IntersectClipRegion( aClip );
@@ -487,7 +487,7 @@ void ListBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, UL
if ( bSelected )
{
pDev->SetFillColor( COL_BLACK );
- pDev->DrawRect( Rectangle( Point( aPos.X(), aPos.Y() + n*nTextHeight ),
+ pDev->DrawRect( Rectangle( Point( aPos.X(), aPos.Y() + n*nTextHeight ),
Point( aPos.X() + aSize.Width(), aPos.Y() + (n+1)*nTextHeight + 2*nOnePixel ) ) );
pDev->SetFillColor();
pDev->SetTextColor( COL_WHITE );
@@ -566,7 +566,7 @@ void ListBox::DataChanged( const DataChangedEvent& rDCEvt )
if ( mpImplWin )
{
- mpImplWin->SetSettings( GetSettings() ); // Falls noch nicht eingestellt...
+ mpImplWin->SetSettings( GetSettings() ); // Falls noch nicht eingestellt...
ImplInitFieldSettings( mpImplWin, TRUE, TRUE, TRUE );
mpBtn->SetSettings( GetSettings() );
@@ -655,8 +655,8 @@ void ListBox::Resize()
{
// initialize the dropdown button size with the standard scrollbar width
long nSBWidth = GetSettings().GetStyleSettings().GetScrollBarSize();
- long nTop = 0;
- long nBottom = aOutSz.Height();
+ long nTop = 0;
+ long nBottom = aOutSz.Height();
// note: in case of no border, pBorder will actually be this
Window *pBorder = GetWindow( WINDOW_BORDER );
@@ -760,7 +760,7 @@ long ListBox::GetIndexForPoint( const Point& rPoint, USHORT& rPos ) const
// point must be either in main list window
// or in impl window (dropdown case)
ImplListBoxWindow* pMain = mpImplLB->GetMainWindow();
-
+
// convert coordinates to ImplListBoxWindow pixel coordinate space
Point aConvPoint = LogicToPixel( rPoint );
aConvPoint = OutputToAbsoluteScreenPixel( aConvPoint );
@@ -1350,7 +1350,7 @@ Size ListBox::CalcMinimumSize() const
}
aSz = CalcWindowSize( aSz );
-
+
if ( IsDropDownBox() ) // check minimum height of dropdown box
{
ImplControlValue aControlValue;
@@ -1363,7 +1363,7 @@ Size ListBox::CalcMinimumSize() const
aSz.Height() = aBound.GetHeight();
}
}
-
+
return aSz;
}
@@ -1411,7 +1411,7 @@ Size ListBox::CalcSize( USHORT nColumns, USHORT nLines ) const
{
// ggf. werden ScrollBars eingeblendet
Size aMinSz = CalcMinimumSize();
-// aMinSz = ImplCalcOutSz( aMinSz );
+// aMinSz = ImplCalcOutSz( aMinSz );
Size aSz;
diff --git a/vcl/source/control/menubtn.cxx b/vcl/source/control/menubtn.cxx
index 74780c805cac..9e0de107161f 100644
--- a/vcl/source/control/menubtn.cxx
+++ b/vcl/source/control/menubtn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,20 +40,20 @@
// =======================================================================
-#define IMAGEBUTTON_BORDER_OFF1 11
-#define IMAGEBUTTON_BORDER_OFF2 16
+#define IMAGEBUTTON_BORDER_OFF1 11
+#define IMAGEBUTTON_BORDER_OFF2 16
// =======================================================================
void MenuButton::ImplInitMenuButtonData()
{
- mnDDStyle = PUSHBUTTON_DROPDOWN_MENUBUTTON;
+ mnDDStyle = PUSHBUTTON_DROPDOWN_MENUBUTTON;
- mpMenuTimer = NULL;
- mpMenu = NULL;
- mpOwnMenu = NULL;
- mnCurItemId = 0;
- mnMenuMode = 0;
+ mpMenuTimer = NULL;
+ mpMenu = NULL;
+ mpOwnMenu = NULL;
+ mnCurItemId = 0;
+ mnMenuMode = 0;
}
// -----------------------------------------------------------------------
@@ -81,10 +81,10 @@ void MenuButton::ImplExecuteMenu()
if ( !((GetStyle() & (WB_RECTSTYLE | WB_SMALLSTYLE)) ||
!(rStyleSettings.GetOptions() & STYLE_OPTION_MACSTYLE)) )
{
- aRect.Left() += 2;
- aRect.Top() += 2;
- aRect.Right() -= 2;
- aRect.Bottom() -= 2;
+ aRect.Left() += 2;
+ aRect.Top() += 2;
+ aRect.Right() -= 2;
+ aRect.Bottom() -= 2;
}
SetPressed( TRUE );
EndSelection();
@@ -180,10 +180,10 @@ void MenuButton::MouseButtonDown( const MouseEvent& rMEvt )
mpMenuTimer = new Timer;
mpMenuTimer->SetTimeoutHdl( LINK( this, MenuButton, ImplMenuTimeoutHdl ) );
}
-
+
mpMenuTimer->SetTimeout( GetSettings().GetMouseSettings().GetActionDelay() );
mpMenuTimer->Start();
-
+
PushButton::MouseButtonDown( rMEvt );
bExecute = false;
}
diff --git a/vcl/source/control/morebtn.cxx b/vcl/source/control/morebtn.cxx
index c00ab079d9ca..837118786959 100644
--- a/vcl/source/control/morebtn.cxx
+++ b/vcl/source/control/morebtn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,9 +50,9 @@ struct ImplMoreButtonData
void MoreButton::ImplInit( Window* pParent, WinBits nStyle )
{
mpMBData = new ImplMoreButtonData;
- mnDelta = 0;
- meUnit = MAP_PIXEL;
- mbState = FALSE;
+ mnDelta = 0;
+ meUnit = MAP_PIXEL;
+ mbState = FALSE;
mpMBData->mpItemList = NULL;
@@ -147,10 +147,10 @@ MoreButton::~MoreButton()
void MoreButton::Click()
{
- Window* pParent = GetParent();
- Size aSize( pParent->GetSizePixel() );
- Window* pWindow = (mpMBData->mpItemList) ? mpMBData->mpItemList->First() : NULL;
- long nDeltaPixel = LogicToPixel( Size( 0, mnDelta ), meUnit ).Height();
+ Window* pParent = GetParent();
+ Size aSize( pParent->GetSizePixel() );
+ Window* pWindow = (mpMBData->mpItemList) ? mpMBData->mpItemList->First() : NULL;
+ long nDeltaPixel = LogicToPixel( Size( 0, mnDelta ), meUnit ).Height();
// Status aendern
mbState = !mbState;
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index 966037bca441..eacb6ed57edf 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,10 +50,10 @@ using namespace rtl;
However aqua draws a little outside. The canonical way would be to enhance the
HitTestNativeControl passing a ScrollbarValue additionally so all necessary
information is available in the call.
- .
+ .
However since there is only this one small exception we will deviate a little and
instead pass the respective rect as control region to allow for a small correction.
-
+
So all places using HitTestNativeControl on PART_THUMB_HORZ, PART_THUMB_VERT,
PART_TRACK_HORZ_LEFT, PART_TRACK_HORZ_RIGHT, PART_TRACK_VERT_UPPER, PART_TRACK_VERT_LOWER
do not use the control rectangle as region but the actuall part rectangle, making
@@ -93,9 +93,9 @@ static long ImplMulDiv( long nNumber, long nNumerator, long nDenominator )
struct ImplScrollBarData
{
- AutoTimer maTimer; // Timer
+ AutoTimer maTimer; // Timer
BOOL mbHide;
- Rectangle maTrackRect; // TODO: move to ScrollBar class when binary incompatibility of ScrollBar class is no longer problematic
+ Rectangle maTrackRect; // TODO: move to ScrollBar class when binary incompatibility of ScrollBar class is no longer problematic
};
// =======================================================================
@@ -376,8 +376,8 @@ void ScrollBar::ImplCalc( BOOL bUpdate )
if( mnThumbPixRange > 0 )
{
maPage1Rect.Left() = maTrackRect.Left();
- maPage1Rect.Bottom() =
- maPage2Rect.Bottom() =
+ maPage1Rect.Bottom() =
+ maPage2Rect.Bottom() =
maThumbRect.Bottom() = maTrackRect.Bottom();
}
else
@@ -417,8 +417,8 @@ void ScrollBar::ImplCalc( BOOL bUpdate )
if( mnThumbPixRange > 0 )
{
maPage1Rect.Top() = maTrackRect.Top();
- maPage1Rect.Right() =
- maPage2Rect.Right() =
+ maPage1Rect.Right() =
+ maPage2Rect.Right() =
maThumbRect.Right() = maTrackRect.Right();
}
else
@@ -499,7 +499,7 @@ void ScrollBar::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
pDev->SetSettings( aSettings );
}
- // for printing:
+ // for printing:
// -calculate the size of the rects
// -because this is zero-based add the correct offset
// -print
@@ -535,7 +535,7 @@ BOOL ScrollBar::ImplDrawNative( USHORT nDrawFlags )
// Draw the entire background if the control supports it
if( IsNativeControlSupported(CTRL_SCROLLBAR, bHorz ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT) )
{
- ControlState nState = ( IsEnabled() ? CTRL_STATE_ENABLED : 0 ) | ( HasFocus() ? CTRL_STATE_FOCUSED : 0 );
+ ControlState nState = ( IsEnabled() ? CTRL_STATE_ENABLED : 0 ) | ( HasFocus() ? CTRL_STATE_FOCUSED : 0 );
scrValue.mnMin = mnMinRange;
scrValue.mnMax = mnMaxRange;
@@ -583,8 +583,8 @@ BOOL ScrollBar::ImplDrawNative( USHORT nDrawFlags )
{
if ( (nDrawFlags & SCRBAR_DRAW_PAGE1) || (nDrawFlags & SCRBAR_DRAW_PAGE2) )
{
- sal_uInt32 part1 = bHorz ? PART_TRACK_HORZ_LEFT : PART_TRACK_VERT_UPPER;
- sal_uInt32 part2 = bHorz ? PART_TRACK_HORZ_RIGHT : PART_TRACK_VERT_LOWER;
+ sal_uInt32 part1 = bHorz ? PART_TRACK_HORZ_LEFT : PART_TRACK_VERT_UPPER;
+ sal_uInt32 part2 = bHorz ? PART_TRACK_HORZ_RIGHT : PART_TRACK_VERT_LOWER;
Rectangle aCtrlRegion1( maPage1Rect );
Rectangle aCtrlRegion2( maPage2Rect );
ControlState nState1 = (IsEnabled() ? CTRL_STATE_ENABLED : 0) | (HasFocus() ? CTRL_STATE_FOCUSED : 0);
@@ -606,19 +606,19 @@ BOOL ScrollBar::ImplDrawNative( USHORT nDrawFlags )
}
if ( nDrawFlags & SCRBAR_DRAW_PAGE1 )
- bNativeOK = DrawNativeControl( CTRL_SCROLLBAR, part1, aCtrlRegion1, nState1,
+ bNativeOK = DrawNativeControl( CTRL_SCROLLBAR, part1, aCtrlRegion1, nState1,
scrValue, rtl::OUString() );
if ( nDrawFlags & SCRBAR_DRAW_PAGE2 )
- bNativeOK = DrawNativeControl( CTRL_SCROLLBAR, part2, aCtrlRegion2, nState2,
+ bNativeOK = DrawNativeControl( CTRL_SCROLLBAR, part2, aCtrlRegion2, nState2,
scrValue, rtl::OUString() );
}
if ( (nDrawFlags & SCRBAR_DRAW_BTN1) || (nDrawFlags & SCRBAR_DRAW_BTN2) )
{
- sal_uInt32 part1 = bHorz ? PART_BUTTON_LEFT : PART_BUTTON_UP;
- sal_uInt32 part2 = bHorz ? PART_BUTTON_RIGHT : PART_BUTTON_DOWN;
- Rectangle aCtrlRegion1( maBtn1Rect );
- Rectangle aCtrlRegion2( maBtn2Rect );
+ sal_uInt32 part1 = bHorz ? PART_BUTTON_LEFT : PART_BUTTON_UP;
+ sal_uInt32 part2 = bHorz ? PART_BUTTON_RIGHT : PART_BUTTON_DOWN;
+ Rectangle aCtrlRegion1( maBtn1Rect );
+ Rectangle aCtrlRegion2( maBtn2Rect );
ControlState nState1 = HasFocus() ? CTRL_STATE_FOCUSED : 0;
ControlState nState2 = nState1;
@@ -648,17 +648,17 @@ BOOL ScrollBar::ImplDrawNative( USHORT nDrawFlags )
}
if ( nDrawFlags & SCRBAR_DRAW_BTN1 )
- bNativeOK = DrawNativeControl( CTRL_SCROLLBAR, part1, aCtrlRegion1, nState1,
+ bNativeOK = DrawNativeControl( CTRL_SCROLLBAR, part1, aCtrlRegion1, nState1,
scrValue, rtl::OUString() );
if ( nDrawFlags & SCRBAR_DRAW_BTN2 )
- bNativeOK = DrawNativeControl( CTRL_SCROLLBAR, part2, aCtrlRegion2, nState2,
+ bNativeOK = DrawNativeControl( CTRL_SCROLLBAR, part2, aCtrlRegion2, nState2,
scrValue, rtl::OUString() );
}
if ( (nDrawFlags & SCRBAR_DRAW_THUMB) && !maThumbRect.IsEmpty() )
{
- ControlState nState = IsEnabled() ? CTRL_STATE_ENABLED : 0;
- Rectangle aCtrlRegion( maThumbRect );
+ ControlState nState = IsEnabled() ? CTRL_STATE_ENABLED : 0;
+ Rectangle aCtrlRegion( maThumbRect );
if ( mnStateFlags & SCRBAR_STATE_THUMB_DOWN )
nState |= CTRL_STATE_PRESSED;
@@ -700,7 +700,7 @@ void ScrollBar::ImplDraw( USHORT nDrawFlags, OutputDevice* pOutDev )
Window *pWin = NULL;
if( pOutDev->GetOutDevType() == OUTDEV_WINDOW )
pWin = (Window*) pOutDev;
-
+
// Draw the entire control if the native theme engine needs it
if ( nDrawFlags && pWin && pWin->IsNativeControlSupported(CTRL_SCROLLBAR, PART_DRAW_BACKGROUND_HORZ) )
{
@@ -1068,13 +1068,13 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt )
if( HasFocus() )
ImplDraw( SCRBAR_DRAW_THUMB, this ); // paint without focus
}
-
+
if ( mnVisibleSize < mnMaxRange-mnMinRange )
{
nTrackFlags = 0;
meScrollType = SCROLL_DRAG;
mnDragDraw = SCRBAR_DRAW_THUMB;
-
+
// calculate mouse offset
if( rMEvt.IsMiddle() || (ImplGetSVData()->maNWFData.mbScrollbarJumpPage && !bThumbHit) )
{
@@ -1091,7 +1091,7 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt )
else
mnMouseOff = rMousePos.Y()-maThumbRect.Top();
}
-
+
mnStateFlags |= SCRBAR_STATE_THUMB_DOWN;
ImplDraw( mnDragDraw, this );
}
@@ -1103,11 +1103,11 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt )
bIsInside : TRUE )
{
nTrackFlags = STARTTRACK_BUTTONREPEAT;
-
+
// HitTestNativeControl, see remark at top of file
if ( HitTestNativeControl( CTRL_SCROLLBAR, bHorizontal? PART_TRACK_HORZ_LEFT : PART_TRACK_VERT_UPPER,
maPage1Rect, rMousePos, bIsInside )?
- bIsInside:
+ bIsInside:
maPage1Rect.IsInside( rMousePos ) )
{
meScrollType = SCROLL_PAGEUP;
@@ -1126,12 +1126,12 @@ void ScrollBar::MouseButtonDown( const MouseEvent& rMEvt )
{
// remember original position in case of abort or EndScroll-Delta
mnStartPos = mnThumbPos;
- // #92906# Call StartTracking() before ImplDoMouseAction(), otherwise
- // MouseButtonUp() / EndTracking() may be called if somebody is spending
+ // #92906# Call StartTracking() before ImplDoMouseAction(), otherwise
+ // MouseButtonUp() / EndTracking() may be called if somebody is spending
// a lot of time in the scroll handler
StartTracking( nTrackFlags );
ImplDoMouseAction( rMousePos );
-
+
if( bDragToMouse )
ImplDragThumb( rMousePos );
}
@@ -1280,7 +1280,7 @@ void ScrollBar::ImplInvert()
aRect.Left() += 2;
aRect.Right() -= 2;
}
- if( aRect.getHeight() > 4 )
+ if( aRect.getHeight() > 4 )
{
aRect.Top() += 2;
aRect.Bottom() -= 2;
@@ -1438,7 +1438,7 @@ long ScrollBar::PreNotify( NotifyEvent& rNEvt )
aClipRegion.Union( *pRect );
if ( pLastRect )
aClipRegion.Union( *pLastRect );
-
+
// Support for 3-button scroll bars
BOOL bHas3Buttons = IsNativeControlSupported( CTRL_SCROLLBAR, HAS_THREE_BUTTONS );
if ( bHas3Buttons && ( pRect == &maBtn1Rect || pLastRect == &maBtn1Rect ) )
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 6d3c813dbe59..ce0ffc4a75b1 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,49 +46,49 @@ static long ImplMulDiv( long nNumber, long nNumerator, long nDenominator )
// =======================================================================
-#define SLIDER_DRAW_THUMB ((USHORT)0x0001)
-#define SLIDER_DRAW_CHANNEL1 ((USHORT)0x0002)
-#define SLIDER_DRAW_CHANNEL2 ((USHORT)0x0004)
-#define SLIDER_DRAW_CHANNEL (SLIDER_DRAW_CHANNEL1 | SLIDER_DRAW_CHANNEL2)
-#define SLIDER_DRAW_ALL (SLIDER_DRAW_THUMB | SLIDER_DRAW_CHANNEL)
+#define SLIDER_DRAW_THUMB ((USHORT)0x0001)
+#define SLIDER_DRAW_CHANNEL1 ((USHORT)0x0002)
+#define SLIDER_DRAW_CHANNEL2 ((USHORT)0x0004)
+#define SLIDER_DRAW_CHANNEL (SLIDER_DRAW_CHANNEL1 | SLIDER_DRAW_CHANNEL2)
+#define SLIDER_DRAW_ALL (SLIDER_DRAW_THUMB | SLIDER_DRAW_CHANNEL)
-#define SLIDER_STATE_CHANNEL1_DOWN ((USHORT)0x0001)
-#define SLIDER_STATE_CHANNEL2_DOWN ((USHORT)0x0002)
-#define SLIDER_STATE_THUMB_DOWN ((USHORT)0x0004)
+#define SLIDER_STATE_CHANNEL1_DOWN ((USHORT)0x0001)
+#define SLIDER_STATE_CHANNEL2_DOWN ((USHORT)0x0002)
+#define SLIDER_STATE_THUMB_DOWN ((USHORT)0x0004)
-#define SLIDER_THUMB_SIZE 9
-#define SLIDER_THUMB_HALFSIZE 4
-#define SLIDER_CHANNEL_OFFSET 0
-#define SLIDER_CHANNEL_SIZE 4
-#define SLIDER_CHANNEL_HALFSIZE 2
+#define SLIDER_THUMB_SIZE 9
+#define SLIDER_THUMB_HALFSIZE 4
+#define SLIDER_CHANNEL_OFFSET 0
+#define SLIDER_CHANNEL_SIZE 4
+#define SLIDER_CHANNEL_HALFSIZE 2
-#define SLIDER_HEIGHT 16
+#define SLIDER_HEIGHT 16
-#define SLIDER_VIEW_STYLE (WB_3DLOOK | WB_HORZ | WB_VERT)
+#define SLIDER_VIEW_STYLE (WB_3DLOOK | WB_HORZ | WB_VERT)
// =======================================================================
void Slider::ImplInit( Window* pParent, WinBits nStyle )
{
- mnThumbPixOffset = 0;
- mnThumbPixRange = 0;
- mnThumbPixPos = 0; // between mnThumbPixOffset and mnThumbPixOffset+mnThumbPixRange
- mnChannelPixOffset = 0;
- mnChannelPixRange = 0;
- mnChannelPixTop = 0;
- mnChannelPixBottom = 0;
-
- mnMinRange = 0;
- mnMaxRange = 100;
- mnThumbPos = 0;
- mnLineSize = 1;
- mnPageSize = 1;
- mnDelta = 0;
- mnDragDraw = 0;
- mnStateFlags = 0;
- meScrollType = SCROLL_DONTKNOW;
- mbCalcSize = TRUE;
- mbFullDrag = TRUE;
+ mnThumbPixOffset = 0;
+ mnThumbPixRange = 0;
+ mnThumbPixPos = 0; // between mnThumbPixOffset and mnThumbPixOffset+mnThumbPixRange
+ mnChannelPixOffset = 0;
+ mnChannelPixRange = 0;
+ mnChannelPixTop = 0;
+ mnChannelPixBottom = 0;
+
+ mnMinRange = 0;
+ mnMaxRange = 100;
+ mnThumbPos = 0;
+ mnLineSize = 1;
+ mnPageSize = 1;
+ mnDelta = 0;
+ mnDragDraw = 0;
+ mnStateFlags = 0;
+ meScrollType = SCROLL_DONTKNOW;
+ mbCalcSize = TRUE;
+ mbFullDrag = TRUE;
Control::ImplInit( pParent, nStyle, NULL );
@@ -124,12 +124,12 @@ void Slider::ImplLoadRes( const ResId& rResId )
{
Control::ImplLoadRes( rResId );
- INT16 nMin = ReadShortRes();
- INT16 nMax = ReadShortRes();
- INT16 nThumbPos = ReadShortRes();
- INT16 nPage = ReadShortRes();
- INT16 nStep = ReadShortRes();
- /* INT16 nVisibleSize = */ ReadShortRes();
+ INT16 nMin = ReadShortRes();
+ INT16 nMax = ReadShortRes();
+ INT16 nThumbPos = ReadShortRes();
+ INT16 nPage = ReadShortRes();
+ INT16 nStep = ReadShortRes();
+ /* INT16 nVisibleSize = */ ReadShortRes();
SetRange( Range( nMin, nMax ) );
SetLineSize( nStep );
@@ -173,27 +173,27 @@ void Slider::ImplUpdateRects( BOOL bUpdate )
{
if ( GetStyle() & WB_HORZ )
{
- maThumbRect.Left() = mnThumbPixPos-SLIDER_THUMB_HALFSIZE;
- maThumbRect.Right() = maThumbRect.Left()+SLIDER_THUMB_SIZE-1;
+ maThumbRect.Left() = mnThumbPixPos-SLIDER_THUMB_HALFSIZE;
+ maThumbRect.Right() = maThumbRect.Left()+SLIDER_THUMB_SIZE-1;
if ( mnChannelPixOffset < maThumbRect.Left() )
{
- maChannel1Rect.Left() = mnChannelPixOffset;
- maChannel1Rect.Right() = maThumbRect.Left()-1;
- maChannel1Rect.Top() = mnChannelPixTop;
+ maChannel1Rect.Left() = mnChannelPixOffset;
+ maChannel1Rect.Right() = maThumbRect.Left()-1;
+ maChannel1Rect.Top() = mnChannelPixTop;
maChannel1Rect.Bottom() = mnChannelPixBottom;
}
else
maChannel1Rect.SetEmpty();
if ( mnChannelPixOffset+mnChannelPixRange-1 > maThumbRect.Right() )
{
- maChannel2Rect.Left() = maThumbRect.Right()+1;
- maChannel2Rect.Right() = mnChannelPixOffset+mnChannelPixRange-1;
- maChannel2Rect.Top() = mnChannelPixTop;
+ maChannel2Rect.Left() = maThumbRect.Right()+1;
+ maChannel2Rect.Right() = mnChannelPixOffset+mnChannelPixRange-1;
+ maChannel2Rect.Top() = mnChannelPixTop;
maChannel2Rect.Bottom() = mnChannelPixBottom;
}
else
maChannel2Rect.SetEmpty();
-
+
const Rectangle aControlRegion( Rectangle( Point(0,0), Size( SLIDER_THUMB_SIZE, 10 ) ) );
Rectangle aThumbBounds, aThumbContent;
if ( GetNativeControlRegion( CTRL_SLIDER, PART_THUMB_HORZ,
@@ -207,23 +207,23 @@ void Slider::ImplUpdateRects( BOOL bUpdate )
}
else
{
- maThumbRect.Top() = mnThumbPixPos-SLIDER_THUMB_HALFSIZE;
- maThumbRect.Bottom() = maThumbRect.Top()+SLIDER_THUMB_SIZE-1;
+ maThumbRect.Top() = mnThumbPixPos-SLIDER_THUMB_HALFSIZE;
+ maThumbRect.Bottom() = maThumbRect.Top()+SLIDER_THUMB_SIZE-1;
if ( mnChannelPixOffset < maThumbRect.Top() )
{
- maChannel1Rect.Top() = mnChannelPixOffset;
+ maChannel1Rect.Top() = mnChannelPixOffset;
maChannel1Rect.Bottom() = maThumbRect.Top()-1;
- maChannel1Rect.Left() = mnChannelPixTop;
- maChannel1Rect.Right() = mnChannelPixBottom;
+ maChannel1Rect.Left() = mnChannelPixTop;
+ maChannel1Rect.Right() = mnChannelPixBottom;
}
else
maChannel1Rect.SetEmpty();
if ( mnChannelPixOffset+mnChannelPixRange-1 > maThumbRect.Bottom() )
{
- maChannel2Rect.Top() = maThumbRect.Bottom()+1;
+ maChannel2Rect.Top() = maThumbRect.Bottom()+1;
maChannel2Rect.Bottom() = mnChannelPixOffset+mnChannelPixRange-1;
- maChannel2Rect.Left() = mnChannelPixTop;
- maChannel2Rect.Right() = mnChannelPixBottom;
+ maChannel2Rect.Left() = mnChannelPixTop;
+ maChannel2Rect.Right() = mnChannelPixBottom;
}
else
maChannel2Rect.SetEmpty();
@@ -257,7 +257,7 @@ void Slider::ImplUpdateRects( BOOL bUpdate )
{
Region aInvalidRegion( aOldThumbRect );
aInvalidRegion.Union( maThumbRect );
-
+
if( !IsBackground() && GetParent() )
{
const Point aPos( GetPosPixel() );
@@ -308,10 +308,10 @@ void Slider::ImplCalc( BOOL bUpdate )
if ( mbCalcSize )
{
- long nOldChannelPixOffset = mnChannelPixOffset;
- long nOldChannelPixRange = mnChannelPixRange;
- long nOldChannelPixTop = mnChannelPixTop;
- long nOldChannelPixBottom = mnChannelPixBottom;
+ long nOldChannelPixOffset = mnChannelPixOffset;
+ long nOldChannelPixRange = mnChannelPixRange;
+ long nOldChannelPixTop = mnChannelPixTop;
+ long nOldChannelPixBottom = mnChannelPixBottom;
long nCalcWidth;
long nCalcHeight;
@@ -322,28 +322,28 @@ void Slider::ImplCalc( BOOL bUpdate )
Size aSize = GetOutputSizePixel();
if ( GetStyle() & WB_HORZ )
{
- nCalcWidth = aSize.Width();
- nCalcHeight = aSize.Height();
- maThumbRect.Top() = 0;
+ nCalcWidth = aSize.Width();
+ nCalcHeight = aSize.Height();
+ maThumbRect.Top() = 0;
maThumbRect.Bottom()= aSize.Height()-1;
}
else
{
- nCalcWidth = aSize.Height();
- nCalcHeight = aSize.Width();
- maThumbRect.Left() = 0;
+ nCalcWidth = aSize.Height();
+ nCalcHeight = aSize.Width();
+ maThumbRect.Left() = 0;
maThumbRect.Right() = aSize.Width()-1;
}
if ( nCalcWidth >= SLIDER_THUMB_SIZE )
{
- mnThumbPixOffset = SLIDER_THUMB_HALFSIZE;
- mnThumbPixRange = nCalcWidth-(SLIDER_THUMB_HALFSIZE*2);
- mnThumbPixPos = 0;
- mnChannelPixOffset = SLIDER_CHANNEL_OFFSET;
- mnChannelPixRange = nCalcWidth-(SLIDER_CHANNEL_OFFSET*2);
- mnChannelPixTop = (nCalcHeight/2)-SLIDER_CHANNEL_HALFSIZE;
- mnChannelPixBottom = mnChannelPixTop+SLIDER_CHANNEL_SIZE-1;
+ mnThumbPixOffset = SLIDER_THUMB_HALFSIZE;
+ mnThumbPixRange = nCalcWidth-(SLIDER_THUMB_HALFSIZE*2);
+ mnThumbPixPos = 0;
+ mnChannelPixOffset = SLIDER_CHANNEL_OFFSET;
+ mnChannelPixRange = nCalcWidth-(SLIDER_CHANNEL_OFFSET*2);
+ mnChannelPixTop = (nCalcHeight/2)-SLIDER_CHANNEL_HALFSIZE;
+ mnChannelPixBottom = mnChannelPixTop+SLIDER_CHANNEL_SIZE-1;
}
else
{
@@ -375,10 +375,10 @@ void Slider::ImplCalc( BOOL bUpdate )
void Slider::ImplDraw( USHORT nDrawFlags )
{
- DecorationView aDecoView( this );
- USHORT nStyle;
- const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
- BOOL bEnabled = IsEnabled();
+ DecorationView aDecoView( this );
+ USHORT nStyle;
+ const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
+ BOOL bEnabled = IsEnabled();
// Evt. noch offene Berechnungen nachholen
if ( mbCalcSize )
@@ -387,12 +387,12 @@ void Slider::ImplDraw( USHORT nDrawFlags )
ControlPart nPart = (GetStyle() & WB_HORZ) ? PART_TRACK_HORZ_AREA : PART_TRACK_VERT_AREA;
ControlState nState = ( IsEnabled() ? CTRL_STATE_ENABLED : 0 ) | ( HasFocus() ? CTRL_STATE_FOCUSED : 0 );
SliderValue sldValue;
-
+
sldValue.mnMin = mnMinRange;
sldValue.mnMax = mnMaxRange;
sldValue.mnCur = mnThumbPos;
sldValue.maThumbRect = maThumbRect;
-
+
if( IsMouseOver() )
{
if( maThumbRect.IsInside( GetPointerPosPixel() ) )
@@ -407,8 +407,8 @@ void Slider::ImplDraw( USHORT nDrawFlags )
if ( (nDrawFlags & SLIDER_DRAW_CHANNEL1) && !maChannel1Rect.IsEmpty() )
{
- long nRectSize;
- Rectangle aRect = maChannel1Rect;
+ long nRectSize;
+ Rectangle aRect = maChannel1Rect;
SetLineColor( rStyleSettings.GetShadowColor() );
if ( GetStyle() & WB_HORZ )
{
@@ -451,8 +451,8 @@ void Slider::ImplDraw( USHORT nDrawFlags )
if ( (nDrawFlags & SLIDER_DRAW_CHANNEL2) && !maChannel2Rect.IsEmpty() )
{
- long nRectSize;
- Rectangle aRect = maChannel2Rect;
+ long nRectSize;
+ Rectangle aRect = maChannel2Rect;
SetLineColor( rStyleSettings.GetLightColor() );
if ( GetStyle() & WB_HORZ )
{
@@ -519,13 +519,13 @@ BOOL Slider::ImplIsPageUp( const Point& rPos )
Rectangle aRect = maChannel1Rect;
if ( GetStyle() & WB_HORZ )
{
- aRect.Top() = 0;
- aRect.Bottom() = aSize.Height()-1;
+ aRect.Top() = 0;
+ aRect.Bottom() = aSize.Height()-1;
}
else
{
- aRect.Left() = 0;
- aRect.Right() = aSize.Width()-1;
+ aRect.Left() = 0;
+ aRect.Right() = aSize.Width()-1;
}
return aRect.IsInside( rPos );
}
@@ -538,13 +538,13 @@ BOOL Slider::ImplIsPageDown( const Point& rPos )
Rectangle aRect = maChannel2Rect;
if ( GetStyle() & WB_HORZ )
{
- aRect.Top() = 0;
- aRect.Bottom() = aSize.Height()-1;
+ aRect.Top() = 0;
+ aRect.Bottom() = aSize.Height()-1;
}
else
{
- aRect.Left() = 0;
- aRect.Right() = aSize.Width()-1;
+ aRect.Left() = 0;
+ aRect.Right() = aSize.Width()-1;
}
return aRect.IsInside( rPos );
}
@@ -605,15 +605,15 @@ long Slider::ImplDoAction( BOOL bCallEndSlide )
void Slider::ImplDoMouseAction( const Point& rMousePos, BOOL bCallAction )
{
- USHORT nOldStateFlags = mnStateFlags;
- BOOL bAction = FALSE;
+ USHORT nOldStateFlags = mnStateFlags;
+ BOOL bAction = FALSE;
switch ( meScrollType )
- {
+ {
case( SCROLL_SET ):
{
const bool bUp = ImplIsPageUp( rMousePos ), bDown = ImplIsPageDown( rMousePos );
-
+
if ( bUp || bDown )
{
bAction = bCallAction;
@@ -623,7 +623,7 @@ void Slider::ImplDoMouseAction( const Point& rMousePos, BOOL bCallAction )
mnStateFlags &= ~( SLIDER_STATE_CHANNEL1_DOWN | SLIDER_STATE_CHANNEL2_DOWN );
break;
}
-
+
case SCROLL_PAGEUP:
if ( ImplIsPageUp( rMousePos ) )
{
@@ -697,14 +697,14 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
{
if ( rMEvt.IsLeft() )
{
- const Point& rMousePos = rMEvt.GetPosPixel();
- USHORT nTrackFlags = 0;
+ const Point& rMousePos = rMEvt.GetPosPixel();
+ USHORT nTrackFlags = 0;
if ( maThumbRect.IsInside( rMousePos ) )
{
- nTrackFlags = 0;
- meScrollType = SCROLL_DRAG;
- mnDragDraw = SLIDER_DRAW_THUMB;
+ nTrackFlags = 0;
+ meScrollType = SCROLL_DRAG;
+ mnDragDraw = SLIDER_DRAW_THUMB;
// Zusaetzliche Daten berechnen
Point aCenterPos = maThumbRect.Center();
@@ -729,7 +729,7 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
nTrackFlags = STARTTRACK_BUTTONREPEAT;
meScrollType = SCROLL_PAGEUP;
}
-
+
mnDragDraw = SLIDER_DRAW_CHANNEL;
}
else if ( ImplIsPageDown( rMousePos ) )
@@ -741,7 +741,7 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
nTrackFlags = STARTTRACK_BUTTONREPEAT;
meScrollType = SCROLL_PAGEDOWN;
}
-
+
mnDragDraw = SLIDER_DRAW_CHANNEL;
}
@@ -752,7 +752,7 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
mnStartPos = mnThumbPos;
ImplDoMouseAction( rMousePos, meScrollType != SCROLL_SET );
Update();
-
+
if( meScrollType != SCROLL_SET )
StartTracking( nTrackFlags );
}
@@ -767,12 +767,12 @@ void Slider::MouseButtonUp( const MouseEvent& )
{
// Button und PageRect-Status wieder herstellen
const USHORT nOldStateFlags = mnStateFlags;
-
+
mnStateFlags &= ~( SLIDER_STATE_CHANNEL1_DOWN | SLIDER_STATE_CHANNEL2_DOWN | SLIDER_STATE_THUMB_DOWN );
-
+
if ( nOldStateFlags != mnStateFlags )
ImplDraw( mnDragDraw );
-
+
mnDragDraw = 0;
ImplDoAction( TRUE );
meScrollType = SCROLL_DONTKNOW;
@@ -1076,13 +1076,13 @@ Size Slider::CalcWindowSizePixel()
Size aSize;
if ( GetStyle() & WB_HORZ )
{
- aSize.Width() = nWidth;
- aSize.Height() = nHeight;
+ aSize.Width() = nWidth;
+ aSize.Height() = nHeight;
}
else
{
- aSize.Height() = nWidth;
- aSize.Width() = nHeight;
+ aSize.Height() = nWidth;
+ aSize.Width() = nHeight;
}
return aSize;
}
diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx
index 353dae629164..703733cdf2c5 100644
--- a/vcl/source/control/spinbtn.cxx
+++ b/vcl/source/control/spinbtn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -168,7 +168,7 @@ void SpinButton::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
{
Point aPos = pDev->LogicToPixel( rPos );
Size aSize = pDev->LogicToPixel( rSize );
-
+
pDev->Push();
pDev->SetMapMode();
if ( !(nFlags & WINDOW_DRAW_MONO) )
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index 1124819af8ab..628b2e8c2710 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,7 +89,7 @@ BOOL ImplDrawNativeSpinfield( Window *pWin, const SpinbuttonValue& rSpinbuttonVa
// there is just no useful native support for spinfields with dropdown
!(pWin->GetStyle() & WB_DROPDOWN) )
{
- if( pWin->IsNativeControlSupported(CTRL_SPINBOX, rSpinbuttonValue.mnUpperPart) &&
+ if( pWin->IsNativeControlSupported(CTRL_SPINBOX, rSpinbuttonValue.mnUpperPart) &&
pWin->IsNativeControlSupported(CTRL_SPINBOX, rSpinbuttonValue.mnLowerPart) )
{
// only paint the embedded spin buttons, all buttons are painted at once
@@ -121,7 +121,7 @@ BOOL ImplDrawNativeSpinfield( Window *pWin, const SpinbuttonValue& rSpinbuttonVa
{
aSize = aContent.GetSize();
}
-
+
Rectangle aRgn( aPt, aSize );
bNativeOK = pBorder->DrawNativeControl( CTRL_SPINBOX, PART_ENTIRE_CONTROL, aRgn, CTRL_STATE_ENABLED,
rSpinbuttonValue, rtl::OUString() );
@@ -297,15 +297,15 @@ void ImplDrawSpinButton( OutputDevice* pOutDev,
void SpinField::ImplInitSpinFieldData()
{
- mpEdit = NULL;
- mbSpin = FALSE;
- mbRepeat = FALSE;
- mbUpperIn = FALSE;
- mbLowerIn = FALSE;
- mbInitialUp = FALSE;
- mbInitialDown = FALSE;
- mbNoSelect = FALSE;
- mbInDropDown = FALSE;
+ mpEdit = NULL;
+ mbSpin = FALSE;
+ mbRepeat = FALSE;
+ mbUpperIn = FALSE;
+ mbLowerIn = FALSE;
+ mbInitialUp = FALSE;
+ mbInitialDown = FALSE;
+ mbNoSelect = FALSE;
+ mbInDropDown = FALSE;
}
// --------------------------------------------------------------------
@@ -317,11 +317,11 @@ void SpinField::ImplInit( Window* pParent, WinBits nWinStyle )
if ( nWinStyle & (WB_SPIN|WB_DROPDOWN) )
{
mbSpin = TRUE;
-
+
// Some themes want external spin buttons, therefore the main
// spinfield should not overdraw the border between its encapsulated
// edit field and the spin buttons
- if ( (nWinStyle & WB_SPIN) && ImplUseNativeBorder( nWinStyle ) )
+ if ( (nWinStyle & WB_SPIN) && ImplUseNativeBorder( nWinStyle ) )
{
SetBackground();
mpEdit = new Edit( this, WB_NOBORDER );
@@ -425,13 +425,13 @@ void SpinField::MouseButtonDown( const MouseEvent& rMEvt )
{
if ( maUpperRect.IsInside( rMEvt.GetPosPixel() ) )
{
- mbUpperIn = TRUE;
+ mbUpperIn = TRUE;
mbInitialUp = TRUE;
Invalidate( maUpperRect );
}
else if ( maLowerRect.IsInside( rMEvt.GetPosPixel() ) )
{
- mbLowerIn = TRUE;
+ mbLowerIn = TRUE;
mbInitialDown = TRUE;
Invalidate( maLowerRect );
}
@@ -644,7 +644,7 @@ void SpinField::Paint( const Rectangle& rRect )
{
if ( mbSpin )
{
- BOOL bEnable = IsEnabled();
+ BOOL bEnable = IsEnabled();
ImplDrawSpinButton( this, maUpperRect, maLowerRect,
mbUpperIn, mbLowerIn, bEnable, bEnable );
}
@@ -719,12 +719,12 @@ void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rec
// use the full extent of the control
Rectangle aArea( aPoint, pBorder->GetOutputSizePixel() );
- bNativeRegionOK =
+ bNativeRegionOK =
pWin->GetNativeControlRegion(CTRL_SPINBOX, PART_BUTTON_UP,
aArea, 0, aControlValue, rtl::OUString(), aBound, aContentUp) &&
pWin->GetNativeControlRegion(CTRL_SPINBOX, PART_BUTTON_DOWN,
aArea, 0, aControlValue, rtl::OUString(), aBound, aContentDown);
-
+
if( bNativeRegionOK )
{
// convert back from border space to local coordinates
@@ -771,7 +771,7 @@ void SpinField::Resize()
ImplControlValue aControlValue;
Point aPoint;
Rectangle aContent, aBound;
-
+
// use the full extent of the control
Window *pBorder = GetWindow( WINDOW_BORDER );
Rectangle aArea( aPoint, pBorder->GetOutputSizePixel() );
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index e94691f42da7..a8ad1ea3de2e 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,11 +77,11 @@ struct ImplTabItem
struct ImplTabCtrlData
{
- PushButton* mpLeftBtn;
- PushButton* mpRightBtn;
- std::hash_map< int, int > maLayoutPageIdToLine;
- std::hash_map< int, int > maLayoutLineToPageId;
- std::vector< Rectangle > maTabRectangles;
+ PushButton* mpLeftBtn;
+ PushButton* mpRightBtn;
+ std::hash_map< int, int > maLayoutPageIdToLine;
+ std::hash_map< int, int > maLayoutLineToPageId;
+ std::vector< Rectangle > maTabRectangles;
Point maItemsOffset; // offset of the tabitems
std::vector< ImplTabItem > maItemList;
ListBox* mpListBox;
@@ -118,22 +118,22 @@ void TabControl::ImplInit( Window* pParent, WinBits nStyle )
Control::ImplInit( pParent, nStyle, NULL );
- mnLastWidth = 0;
- mnLastHeight = 0;
- mnBtnSize = 0;
- mnMaxPageWidth = 0;
- mnActPageId = 0;
- mnCurPageId = 0;
- mnFirstPagePos = 0;
- mnLastFirstPagePos = 0;
- mbFormat = TRUE;
- mbRestoreHelpId = FALSE;
- mbRestoreUnqId = FALSE;
- mbSingleLine = FALSE;
- mbScroll = FALSE;
+ mnLastWidth = 0;
+ mnLastHeight = 0;
+ mnBtnSize = 0;
+ mnMaxPageWidth = 0;
+ mnActPageId = 0;
+ mnCurPageId = 0;
+ mnFirstPagePos = 0;
+ mnLastFirstPagePos = 0;
+ mbFormat = TRUE;
+ mbRestoreHelpId = FALSE;
+ mbRestoreUnqId = FALSE;
+ mbSingleLine = FALSE;
+ mbScroll = FALSE;
mbRestoreSmartId = FALSE;
- mbSmallInvalidate = FALSE;
- mbExtraSpace = FALSE;
+ mbSmallInvalidate = FALSE;
+ mbExtraSpace = FALSE;
mpTabCtrlData = new ImplTabCtrlData;
mpTabCtrlData->mpLeftBtn = NULL;
mpTabCtrlData->mpRightBtn = NULL;
@@ -154,7 +154,7 @@ void TabControl::ImplInit( Window* pParent, WinBits nStyle )
// otherwise they will paint with a wrong background
if( IsNativeControlSupported(CTRL_TAB_PANE, PART_ENTIRE_CONTROL) )
EnableChildTransparentMode( TRUE );
-
+
if ( pParent->IsDialog() )
pParent->AddChildEventListener( LINK( this, TabControl, ImplWindowEventListener ) );
}
@@ -923,7 +923,7 @@ void TabControl::ImplDrawItem( ImplTabItem* pItem, const Rectangle& rCurRect, bo
if( !bLayout && (bNativeOK = IsNativeControlSupported(CTRL_TAB_ITEM, PART_ENTIRE_CONTROL)) == TRUE )
{
Rectangle aCtrlRegion( pItem->maRect );
- ControlState nState = 0;
+ ControlState nState = 0;
if( pItem->mnId == mnCurPageId )
{
@@ -1062,7 +1062,7 @@ void TabControl::ImplDrawItem( ImplTabItem* pItem, const Rectangle& rCurRect, bo
long TabControl::ImplHandleKeyEvent( const KeyEvent& rKeyEvent )
{
long nRet = 0;
-
+
if ( GetPageCount() > 1 )
{
KeyCode aKeyCode = rKeyEvent.GetKeyCode();
@@ -1087,8 +1087,8 @@ long TabControl::ImplHandleKeyEvent( const KeyEvent& rKeyEvent )
}
}
}
- }
-
+ }
+
return nRet;
}
@@ -1296,9 +1296,9 @@ void TabControl::ImplPaint( const Rectangle& rRect, bool bLayout )
{
// Some native toolkits (GTK+) draw tabs right-to-left, with an
// overlap between adjacent tabs
- bool bDrawTabsRTL = IsNativeControlSupported( CTRL_TAB_ITEM, PART_TABS_DRAW_RTL );
- ImplTabItem * pFirstTab = NULL;
- ImplTabItem * pLastTab = NULL;
+ bool bDrawTabsRTL = IsNativeControlSupported( CTRL_TAB_ITEM, PART_TABS_DRAW_RTL );
+ ImplTabItem * pFirstTab = NULL;
+ ImplTabItem * pLastTab = NULL;
size_t idx;
// Event though there is a tab overlap with GTK+, the first tab is not
@@ -1361,7 +1361,7 @@ void TabControl::Resize()
if ( !IsReallyShown() )
return;
-
+
if( mpTabCtrlData->mpListBox )
{
// get the listbox' preferred size
@@ -1802,7 +1802,7 @@ void TabControl::InsertPage( USHORT nPageId, const XubString& rText,
mpTabCtrlData->mpListBox->SelectEntryPos( 0 );
mpTabCtrlData->mpListBox->SetDropDownLineCount( mpTabCtrlData->mpListBox->GetEntryCount() );
}
-
+
// set current page id
if ( !mnCurPageId )
mnCurPageId = nPageId;
diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx
index a94e46659a41..854c03a7ce22 100644
--- a/vcl/source/fontsubset/cff.cxx
+++ b/vcl/source/fontsubset/cff.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,104 +52,104 @@ typedef std::vector<ValType> ValVector;
// ====================================================================
static const char* pStringIds[] = {
-/*0*/ ".notdef", "space", "exclam", "quotedbl",
- "numbersign", "dollar", "percent", "ampersand",
- "quoteright", "parenleft", "parenright", "asterisk",
- "plus", "comma", "hyphen", "period",
-/*16*/ "slash", "zero", "one", "two",
- "three", "four", "five", "six",
- "seven", "eight", "nine", "colon",
- "semicolon", "less", "equal", "greater",
-/*32*/ "question", "at", "A", "B",
- "C", "D", "E", "F",
- "G", "H", "I", "J",
- "K", "L", "M", "N",
-/*48*/ "O", "P", "Q", "R",
- "S", "T", "U", "V",
- "W", "X", "Y", "Z",
- "bracketleft", "backslash", "bracketright", "asciicircum",
-/*64*/ "underscore", "quoteleft", "a", "b",
- "c", "d", "e", "f",
- "g", "h", "i", "j",
- "k", "l", "m", "n",
-/*80*/ "o", "p", "q", "r",
- "s", "t", "u", "v",
- "w", "x", "y", "z",
- "braceleft", "bar", "braceright", "asciitilde",
-/*96*/ "exclamdown", "cent", "sterlin", "fraction",
- "yen", "florin", "section", "currency",
- "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft",
- "guilsinglright", "fi", "fl", "endash",
-/*112*/ "dagger", "daggerdbl", "periodcentered", "paragraph",
- "bullet", "quotesinglbase", "quotedblbase", "quotedblright",
- "guillemotright", "ellipsis", "perthousand", "questiondown",
- "grave", "acute", "circumflex", "tilde",
-/*128*/ "macron", "breve", "dotaccent", "dieresis",
- "ring", "cedilla", "hungarumlaut", "ogonek",
- "caron", "endash", "AE", "ordfeminine",
- "Lslash", "Oslash", "OE", "ordmasculine",
-/*144*/ "ae", "dotlessi", "lslash", "oslash",
- "oe", "germandbls", "onesuperior", "logicalnot",
- "mu", "trademark", "Eth", "onehalf",
- "plusminus", "Thorn", "onequarter", "divide",
-/*160*/ "brokenbar", "degree", "thorn", "threequarters",
- "twosuperior", "registered", "minus", "eth",
- "multiply", "threesuperior", "copyright", "Aacute",
- "Acircumflex", "Adieresis", "Agrave", "Aring",
-/*176*/ "Atilde", "Ccedilla", "Eacute", "Ecircumflex",
- "Edieresis", "Egrave", "Iacute", "Icircumflex",
- "Idieresis", "Igrave", "Ntilde", "Oacute",
- "Ocircumflex", "Odieresis", "Ograve", "Otilde",
-/*192*/ "Scaron", "Uacute", "Ucircumflex", "Udieresis",
- "Ugrave", "Yacute", "Ydieresis", "Zcaron",
- "aacute", "acircumflex", "adieresis", "agrave",
- "aring", "atilde", "ccedilla", "eacute",
-/*208*/ "ecircumflex", "edieresis", "egrave", "iacute",
- "icircumflex", "idieresis", "igrave", "ntilde",
- "oacute", "ocircumflex", "odieresis", "ograve",
- "otilde", "scaron", "uacute", "ucircumflex",
-/*224*/ "udieresis", "ugrave", "yacute", "ydieresis",
- "zcaron", "exclamsmall", "Hungarumlautsmall","dollaroldstyle",
- "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior",
- "parenrightsuperior","twodotenleader", "onedotenleader", "zerooldstyle",
-/*240*/ "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle",
- "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle",
- "nineoldstile", "commasuperior", "threequartersemdash","periodsuperior",
- "questionsmall", "asuperior", "bsuperior", "centsuperior",
-/*256*/ "dsuperior", "esuperior", "isuperior", "lsuperior",
- "msuperior", "nsuperior", "osuperior", "rsuperior",
- "ssuperior", "tsuperior", "ff", "ffi",
- "ffl", "parenleftinferior","parenrightinferior","Circumflexsmall",
-/*272*/ "hyphensuperior","Gravesmall", "Asmall", "Bsmall",
- "Csmall", "Dsmall", "Esmall", "Fsmall",
- "Gsmall", "Hsmall", "Ismall", "Jsmall",
- "Ksmall", "Lsmall", "Msmall", "Nsmall",
-/*288*/ "Osmall", "Psmall", "Qsmall", "Rsmall",
- "Ssmall", "Tsmall", "Usmall", "Vsmall",
- "Wsmall", "Xsmall", "Ysmall", "Zsmall",
- "colonmonetary", "onefitted", "rupia", "Tildesmall",
-/*304*/ "exclamdownsmall","centoldstyle", "Lslashsmall", "Scaronsmall",
- "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall",
- "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior",
- "Ogoneksmall", "Ringsmall", "Cedillasmall", "questiondownsmall",
-/*320*/ "oneeight", "threeeights", "fiveeights", "seveneights",
- "onethird", "twothirds", "zerosuperior", "foursuperior",
- "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior",
- "ninesuperior", "zeroinferior", "oneinferior", "twoinferior",
-/*336*/ "threeinferior","fourinferior", "fiveinferior", "sixinferior",
- "seveninferior", "eightinferior", "nineinferior", "centinferior",
- "dollarinferior", "periodinferior", "commainferior", "Agravesmall",
- "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall",
-/*352*/ "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall",
- "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall",
- "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall",
- "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall",
-/*368*/ "Otildesmall", "Odieressissmall", "OEsmall", "Oslashsmall",
- "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall",
- "Yacutesmall", "Thornsmall", "Ydieresissmall", "001.000",
- "001.001", "001.002", "001.003", "Black",
-/*384*/ "Bold", "Book", "Light", "Medium",
- "Regular", "Roman", "Semibold"
+/*0*/ ".notdef", "space", "exclam", "quotedbl",
+ "numbersign", "dollar", "percent", "ampersand",
+ "quoteright", "parenleft", "parenright", "asterisk",
+ "plus", "comma", "hyphen", "period",
+/*16*/ "slash", "zero", "one", "two",
+ "three", "four", "five", "six",
+ "seven", "eight", "nine", "colon",
+ "semicolon", "less", "equal", "greater",
+/*32*/ "question", "at", "A", "B",
+ "C", "D", "E", "F",
+ "G", "H", "I", "J",
+ "K", "L", "M", "N",
+/*48*/ "O", "P", "Q", "R",
+ "S", "T", "U", "V",
+ "W", "X", "Y", "Z",
+ "bracketleft", "backslash", "bracketright", "asciicircum",
+/*64*/ "underscore", "quoteleft", "a", "b",
+ "c", "d", "e", "f",
+ "g", "h", "i", "j",
+ "k", "l", "m", "n",
+/*80*/ "o", "p", "q", "r",
+ "s", "t", "u", "v",
+ "w", "x", "y", "z",
+ "braceleft", "bar", "braceright", "asciitilde",
+/*96*/ "exclamdown", "cent", "sterlin", "fraction",
+ "yen", "florin", "section", "currency",
+ "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft",
+ "guilsinglright", "fi", "fl", "endash",
+/*112*/ "dagger", "daggerdbl", "periodcentered", "paragraph",
+ "bullet", "quotesinglbase", "quotedblbase", "quotedblright",
+ "guillemotright", "ellipsis", "perthousand", "questiondown",
+ "grave", "acute", "circumflex", "tilde",
+/*128*/ "macron", "breve", "dotaccent", "dieresis",
+ "ring", "cedilla", "hungarumlaut", "ogonek",
+ "caron", "endash", "AE", "ordfeminine",
+ "Lslash", "Oslash", "OE", "ordmasculine",
+/*144*/ "ae", "dotlessi", "lslash", "oslash",
+ "oe", "germandbls", "onesuperior", "logicalnot",
+ "mu", "trademark", "Eth", "onehalf",
+ "plusminus", "Thorn", "onequarter", "divide",
+/*160*/ "brokenbar", "degree", "thorn", "threequarters",
+ "twosuperior", "registered", "minus", "eth",
+ "multiply", "threesuperior", "copyright", "Aacute",
+ "Acircumflex", "Adieresis", "Agrave", "Aring",
+/*176*/ "Atilde", "Ccedilla", "Eacute", "Ecircumflex",
+ "Edieresis", "Egrave", "Iacute", "Icircumflex",
+ "Idieresis", "Igrave", "Ntilde", "Oacute",
+ "Ocircumflex", "Odieresis", "Ograve", "Otilde",
+/*192*/ "Scaron", "Uacute", "Ucircumflex", "Udieresis",
+ "Ugrave", "Yacute", "Ydieresis", "Zcaron",
+ "aacute", "acircumflex", "adieresis", "agrave",
+ "aring", "atilde", "ccedilla", "eacute",
+/*208*/ "ecircumflex", "edieresis", "egrave", "iacute",
+ "icircumflex", "idieresis", "igrave", "ntilde",
+ "oacute", "ocircumflex", "odieresis", "ograve",
+ "otilde", "scaron", "uacute", "ucircumflex",
+/*224*/ "udieresis", "ugrave", "yacute", "ydieresis",
+ "zcaron", "exclamsmall", "Hungarumlautsmall","dollaroldstyle",
+ "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior",
+ "parenrightsuperior","twodotenleader", "onedotenleader", "zerooldstyle",
+/*240*/ "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle",
+ "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle",
+ "nineoldstile", "commasuperior", "threequartersemdash","periodsuperior",
+ "questionsmall", "asuperior", "bsuperior", "centsuperior",
+/*256*/ "dsuperior", "esuperior", "isuperior", "lsuperior",
+ "msuperior", "nsuperior", "osuperior", "rsuperior",
+ "ssuperior", "tsuperior", "ff", "ffi",
+ "ffl", "parenleftinferior","parenrightinferior","Circumflexsmall",
+/*272*/ "hyphensuperior","Gravesmall", "Asmall", "Bsmall",
+ "Csmall", "Dsmall", "Esmall", "Fsmall",
+ "Gsmall", "Hsmall", "Ismall", "Jsmall",
+ "Ksmall", "Lsmall", "Msmall", "Nsmall",
+/*288*/ "Osmall", "Psmall", "Qsmall", "Rsmall",
+ "Ssmall", "Tsmall", "Usmall", "Vsmall",
+ "Wsmall", "Xsmall", "Ysmall", "Zsmall",
+ "colonmonetary", "onefitted", "rupia", "Tildesmall",
+/*304*/ "exclamdownsmall","centoldstyle", "Lslashsmall", "Scaronsmall",
+ "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall",
+ "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior",
+ "Ogoneksmall", "Ringsmall", "Cedillasmall", "questiondownsmall",
+/*320*/ "oneeight", "threeeights", "fiveeights", "seveneights",
+ "onethird", "twothirds", "zerosuperior", "foursuperior",
+ "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior",
+ "ninesuperior", "zeroinferior", "oneinferior", "twoinferior",
+/*336*/ "threeinferior","fourinferior", "fiveinferior", "sixinferior",
+ "seveninferior", "eightinferior", "nineinferior", "centinferior",
+ "dollarinferior", "periodinferior", "commainferior", "Agravesmall",
+ "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall",
+/*352*/ "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall",
+ "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall",
+ "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall",
+ "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall",
+/*368*/ "Otildesmall", "Odieressissmall", "OEsmall", "Oslashsmall",
+ "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall",
+ "Yacutesmall", "Thornsmall", "Ydieresissmall", "001.000",
+ "001.001", "001.002", "001.003", "Black",
+/*384*/ "Bold", "Book", "Light", "Medium",
+ "Regular", "Roman", "Semibold"
};
// --------------------------------------------------------------------
@@ -158,57 +158,57 @@ static const char* pStringIds[] = {
// TOP DICT keywords (also covers PRIV DICT keywords)
static const char* pDictOps[] = {
- "sVersion", "sNotice", "sFullName", "sFamilyName",
- "sWeight", "aFontBBox", "dBlueValues", "dOtherBlues",
- "dFamilyBlues", "dFamilyOtherBlues", "nStdHW", "nStdVW",
- "xESC", "nUniqueID", "aXUID", "nCharset",
- "nEncoding", "nCharStrings", "PPrivate", "nSubrs",
- "nDefaultWidthX", "nNominalWidthX", NULL, NULL,
- NULL, NULL, NULL, NULL,
- "shortint", "longint", "BCD", NULL
+ "sVersion", "sNotice", "sFullName", "sFamilyName",
+ "sWeight", "aFontBBox", "dBlueValues", "dOtherBlues",
+ "dFamilyBlues", "dFamilyOtherBlues", "nStdHW", "nStdVW",
+ "xESC", "nUniqueID", "aXUID", "nCharset",
+ "nEncoding", "nCharStrings", "PPrivate", "nSubrs",
+ "nDefaultWidthX", "nNominalWidthX", NULL, NULL,
+ NULL, NULL, NULL, NULL,
+ "shortint", "longint", "BCD", NULL
};
// --------------------------------------------------------------------
// TOP DICT escapes (also covers PRIV DICT escapes)
static const char* pDictEscs[] = {
- "sCopyright", "bIsFixedPitch", "nItalicAngle", "nUnderlinePosition",
- "nUnderlineThickness", "nPaintType", "tCharstringType", "aFontMatrix",
- "nStrokeWidth", "nBlueScale", "nBlueShift", "nBlueFuzz",
- "dStemSnapH", "dStemSnapV", "bForceBold", NULL,
- NULL, "nLanguageGroup", "nExpansionFactor", "nInitialRandomSeed",
- "nSyntheticBase", "sPostScript", "sBaseFontName", "dBaseFontBlend",
- NULL, NULL, NULL, NULL,
- NULL, NULL, "rROS", "nCIDFontVersion",
- "nCIDFontRevision", "nCIDFontType", "nCIDCount", "nUIDBase",
- "nFDArray", "nFDSelect", "sFontName"
+ "sCopyright", "bIsFixedPitch", "nItalicAngle", "nUnderlinePosition",
+ "nUnderlineThickness", "nPaintType", "tCharstringType", "aFontMatrix",
+ "nStrokeWidth", "nBlueScale", "nBlueShift", "nBlueFuzz",
+ "dStemSnapH", "dStemSnapV", "bForceBold", NULL,
+ NULL, "nLanguageGroup", "nExpansionFactor", "nInitialRandomSeed",
+ "nSyntheticBase", "sPostScript", "sBaseFontName", "dBaseFontBlend",
+ NULL, NULL, NULL, NULL,
+ NULL, NULL, "rROS", "nCIDFontVersion",
+ "nCIDFontRevision", "nCIDFontType", "nCIDCount", "nUIDBase",
+ "nFDArray", "nFDSelect", "sFontName"
};
// --------------------------------------------------------------------
static const char* pType1Ops[] = {
- NULL, "2hstem", NULL, "2vstem",
- "1vmoveto", "Arlineto", "1hlineto", "1vlineto",
- "Crrcurveto", "0closepath", "Lcallsubr", "0return",
- "xT1ESC", "2hsbw", "0endchar", NULL,
- NULL, NULL, NULL, NULL,
- NULL, "2rmoveto", "1hmoveto", NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, "4vhcurveto", "4hvcurveto"
+ NULL, "2hstem", NULL, "2vstem",
+ "1vmoveto", "Arlineto", "1hlineto", "1vlineto",
+ "Crrcurveto", "0closepath", "Lcallsubr", "0return",
+ "xT1ESC", "2hsbw", "0endchar", NULL,
+ NULL, NULL, NULL, NULL,
+ NULL, "2rmoveto", "1hmoveto", NULL,
+ NULL, NULL, NULL, NULL,
+ NULL, NULL, "4vhcurveto", "4hvcurveto"
};
// --------------------------------------------------------------------
static const char* pT1EscOps[] = {
- "0dotsection", "6vstem3", "6hstem3", NULL,
- NULL, NULL, "5seac", "4sbw",
- NULL, "1abs", "2add", "2sub",
- "2div", NULL, NULL, NULL,
- "Gcallothersubr", "1pop", NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
- NULL, "2setcurrentpoint"
+ "0dotsection", "6vstem3", "6hstem3", NULL,
+ NULL, NULL, "5seac", "4sbw",
+ NULL, "1abs", "2add", "2sub",
+ "2div", NULL, NULL, NULL,
+ "Gcallothersubr", "1pop", NULL, NULL,
+ NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, NULL,
+ NULL, "2setcurrentpoint"
};
// --------------------------------------------------------------------
@@ -217,47 +217,47 @@ struct TYPE1OP
{
enum OPS
{
- HSTEM=1, VSTEM=3, VMOVETO=4, RLINETO=5,
- HLINETO=6, VLINETO=7, RCURVETO=8, CLOSEPATH=9,
- CALLSUBR=10, RETURN=11, T1ESC=12, HSBW=13,
- ENDCHAR=14, RMOVETO=21, HMOVETO=22, VHCURVETO=30,
+ HSTEM=1, VSTEM=3, VMOVETO=4, RLINETO=5,
+ HLINETO=6, VLINETO=7, RCURVETO=8, CLOSEPATH=9,
+ CALLSUBR=10, RETURN=11, T1ESC=12, HSBW=13,
+ ENDCHAR=14, RMOVETO=21, HMOVETO=22, VHCURVETO=30,
HVCURVETO=31
};
enum ESCS
{
- DOTSECTION=0, VSTEM3=1, HSTEM3=2, SEAC=6,
- SBW=7, ABS=9, ADD=10, SUB=11,
- DIV=12, CALLOTHERSUBR=16, POP=17, SETCURRENTPOINT=33
+ DOTSECTION=0, VSTEM3=1, HSTEM3=2, SEAC=6,
+ SBW=7, ABS=9, ADD=10, SUB=11,
+ DIV=12, CALLOTHERSUBR=16, POP=17, SETCURRENTPOINT=33
};
};
// --------------------------------------------------------------------
static const char* pType2Ops[] = {
- NULL, "hhstem", NULL, "vvstem",
- "mvmoveto", "Arlineto", "Ehlineto", "Evlineto",
- "Crrcurveto", NULL, "Lcallsubr", "Xreturn",
- "xT2ESC", NULL, "eendchar", NULL,
- NULL, NULL, "Hhstemhm", "Khintmask",
- "Kcntrmask", "Mrmoveto", "mhmoveto", "Vvstemhm",
- ".rcurveline", ".rlinecurve", ".vvcurveto", ".hhcurveto",
- ".shortint", "Gcallgsubr", ".vhcurveto", ".hvcurveto"
+ NULL, "hhstem", NULL, "vvstem",
+ "mvmoveto", "Arlineto", "Ehlineto", "Evlineto",
+ "Crrcurveto", NULL, "Lcallsubr", "Xreturn",
+ "xT2ESC", NULL, "eendchar", NULL,
+ NULL, NULL, "Hhstemhm", "Khintmask",
+ "Kcntrmask", "Mrmoveto", "mhmoveto", "Vvstemhm",
+ ".rcurveline", ".rlinecurve", ".vvcurveto", ".hhcurveto",
+ ".shortint", "Gcallgsubr", ".vhcurveto", ".hvcurveto"
};
// --------------------------------------------------------------------
static const char* pT2EscOps[] = {
- NULL, NULL, NULL, "2and",
- "2or", "1not", NULL, NULL,
- NULL, "1abs", "2add", "2sub",
- "2div", NULL, "1neg", "2eq",
- NULL, NULL, "1drop", NULL,
- "1put", "1get", "4ifelse", "0random",
- "2mul", NULL, "1sqrt", "1dup",
- "2exch", "Iindex", "Rroll", NULL,
- NULL, NULL, "7hflex", "Fflex",
- "9hflex1", "fflex1"
+ NULL, NULL, NULL, "2and",
+ "2or", "1not", NULL, NULL,
+ NULL, "1abs", "2add", "2sub",
+ "2div", NULL, "1neg", "2eq",
+ NULL, NULL, "1drop", NULL,
+ "1put", "1get", "4ifelse", "0random",
+ "2mul", NULL, "1sqrt", "1dup",
+ "2exch", "Iindex", "Rroll", NULL,
+ NULL, NULL, "7hflex", "Fflex",
+ "9hflex1", "fflex1"
};
// --------------------------------------------------------------------
@@ -266,23 +266,23 @@ struct TYPE2OP
{
enum OPS
{
- HSTEM=1, VSTEM=3, VMOVETO=4, RLINETO=5,
- HLINETO=6, VLINETO=7, RCURVETO=8, CALLSUBR=10,
- RETURN=11, T2ESC=12, ENDCHAR=14, HSTEMHM=18,
- HINTMASK=19, CNTRMASK=20, RMOVETO=21, HMOVETO=22,
- VSTEMHM=23, RCURVELINE=24, RLINECURVE=25, VVCURVETO=26,
- HHCURVETO=27, SHORTINT=28, CALLGSUBR=29, VHCURVETO=30,
+ HSTEM=1, VSTEM=3, VMOVETO=4, RLINETO=5,
+ HLINETO=6, VLINETO=7, RCURVETO=8, CALLSUBR=10,
+ RETURN=11, T2ESC=12, ENDCHAR=14, HSTEMHM=18,
+ HINTMASK=19, CNTRMASK=20, RMOVETO=21, HMOVETO=22,
+ VSTEMHM=23, RCURVELINE=24, RLINECURVE=25, VVCURVETO=26,
+ HHCURVETO=27, SHORTINT=28, CALLGSUBR=29, VHCURVETO=30,
HVCURVETO=31
};
enum ESCS
{
- AND=3, OR=4, NOT=5, ABS=9,
- ADD=10, SUB=11, DIV=12, NEG=14,
- EQ=15, DROP=18, PUT=20, GET=21,
- IFELSE=22, RANDOM=23, MUL=24, SQRT=26,
- DUP=27, EXCH=28, INDEX=29, ROLL=30,
- HFLEX=34, FLEX=35, HFLEX1=36, FLEX1=37
+ AND=3, OR=4, NOT=5, ABS=9,
+ ADD=10, SUB=11, DIV=12, NEG=14,
+ EQ=15, DROP=18, PUT=20, GET=21,
+ IFELSE=22, RANDOM=23, MUL=24, SQRT=26,
+ DUP=27, EXCH=28, INDEX=29, ROLL=30,
+ HFLEX=34, FLEX=35, HFLEX1=36, FLEX1=37
};
};
@@ -292,28 +292,28 @@ struct CffGlobal
{
explicit CffGlobal();
- int mnNameIdxBase;
- int mnNameIdxCount;
- int mnStringIdxBase;
- int mnStringIdxCount;
- bool mbCIDFont;
- int mnCharStrBase;
- int mnCharStrCount;
- int mnEncodingBase;
- int mnCharsetBase;
- int mnGlobalSubrBase;
- int mnGlobalSubrCount;
- int mnGlobalSubrBias;
- int mnFDSelectBase;
- int mnFontDictBase;
- int mnFDAryCount;
-
- ValVector maFontBBox;
- ValVector maFontMatrix;
-
- int mnFontNameSID;
- int mnFullNameSID;
- int mnFamilyNameSID;
+ int mnNameIdxBase;
+ int mnNameIdxCount;
+ int mnStringIdxBase;
+ int mnStringIdxCount;
+ bool mbCIDFont;
+ int mnCharStrBase;
+ int mnCharStrCount;
+ int mnEncodingBase;
+ int mnCharsetBase;
+ int mnGlobalSubrBase;
+ int mnGlobalSubrCount;
+ int mnGlobalSubrBias;
+ int mnFDSelectBase;
+ int mnFontDictBase;
+ int mnFDAryCount;
+
+ ValVector maFontBBox;
+ ValVector maFontMatrix;
+
+ int mnFontNameSID;
+ int mnFullNameSID;
+ int mnFamilyNameSID;
};
// ====================================================================
@@ -322,31 +322,31 @@ struct CffLocal
{
explicit CffLocal();
- int mnPrivDictBase;
- int mnPrivDictSize;
- int mnLocalSubrOffs;
- int mnLocalSubrBase;
- int mnLocalSubrCount;
- int mnLocalSubrBias;
+ int mnPrivDictBase;
+ int mnPrivDictSize;
+ int mnLocalSubrOffs;
+ int mnLocalSubrBase;
+ int mnLocalSubrCount;
+ int mnLocalSubrBias;
- ValType maNominalWidth;
+ ValType maNominalWidth;
ValType maDefaultWidth;
// ATM hinting related values
- ValType maStemStdHW;
- ValType maStemStdVW;
- ValVector maStemSnapH;
- ValVector maStemSnapV;
- ValVector maBlueValues;
- ValVector maOtherBlues;
- ValVector maFamilyBlues;
- ValVector maFamilyOtherBlues;
- RealType mfBlueScale;
- RealType mfBlueShift;
- RealType mfBlueFuzz;
- RealType mfExpFactor;
- int mnLangGroup;
- bool mbForceBold;
+ ValType maStemStdHW;
+ ValType maStemStdVW;
+ ValVector maStemSnapH;
+ ValVector maStemSnapV;
+ ValVector maBlueValues;
+ ValVector maOtherBlues;
+ ValVector maFamilyBlues;
+ ValVector maFamilyOtherBlues;
+ RealType mfBlueScale;
+ RealType mfBlueShift;
+ RealType mfBlueFuzz;
+ RealType mfExpFactor;
+ int mnLangGroup;
+ bool mbForceBold;
};
// ====================================================================
@@ -368,32 +368,32 @@ SubsetterContext::~SubsetterContext( void)
// ====================================================================
class CffSubsetterContext
-: public SubsetterContext
-, private CffGlobal
+: public SubsetterContext
+, private CffGlobal
{
public:
- static const int NMAXSTACK = 48; // see CFF.appendixB
- static const int NMAXHINTS = 2*96; // see CFF.appendixB
- static const int NMAXTRANS = 32; // see CFF.appendixB
+ static const int NMAXSTACK = 48; // see CFF.appendixB
+ static const int NMAXHINTS = 2*96; // see CFF.appendixB
+ static const int NMAXTRANS = 32; // see CFF.appendixB
public:
explicit CffSubsetterContext( const U8* pBasePtr, int nBaseLen);
- virtual ~CffSubsetterContext( void);
+ virtual ~CffSubsetterContext( void);
- void initialCffRead( void);
- bool emitAsType1( class Type1Emitter&,
+ void initialCffRead( void);
+ bool emitAsType1( class Type1Emitter&,
const long* pGlyphIDs, const U8* pEncoding,
GlyphWidth* pGlyphWidths, int nGlyphCount, FontSubsetInfo& );
// used by charstring converter
- void setCharStringType( int);
- void fakeLocalSubrCount( int nLocalSubrs ) { maCffLocal[0].mnLocalSubrCount=nLocalSubrs;}
+ void setCharStringType( int);
+ void fakeLocalSubrCount( int nLocalSubrs ) { maCffLocal[0].mnLocalSubrCount=nLocalSubrs;}
protected:
- int convert2Type1Ops( CffLocal*, const U8* pType2Ops, int nType2Len, U8* pType1Ops);
+ int convert2Type1Ops( CffLocal*, const U8* pType2Ops, int nType2Len, U8* pType1Ops);
private:
- void convertOneTypeOp( void);
- void convertOneTypeEsc( void);
- void callType2Subr( bool bGlobal, int nSubrNumber);
- long getReadOfs( void) const { return (long)(mpReadPtr - mpBasePtr);}
+ void convertOneTypeOp( void);
+ void convertOneTypeEsc( void);
+ void callType2Subr( bool bGlobal, int nSubrNumber);
+ long getReadOfs( void) const { return (long)(mpReadPtr - mpBasePtr);}
const U8* mpBasePtr;
const U8* mpBaseEnd;
@@ -401,90 +401,90 @@ private:
const U8* mpReadPtr;
const U8* mpReadEnd;
- U8* mpWritePtr;
- bool mbSawError;
- bool mbNeedClose;
- bool mbIgnoreHints;
- long mnCntrMask;
+ U8* mpWritePtr;
+ bool mbSawError;
+ bool mbNeedClose;
+ bool mbIgnoreHints;
+ long mnCntrMask;
private:
- int seekIndexData( int nIndexBase, int nDataIndex);
- void seekIndexEnd( int nIndexBase);
+ int seekIndexData( int nIndexBase, int nDataIndex);
+ void seekIndexEnd( int nIndexBase);
private:
- const char** mpCharStringOps;
- const char** mpCharStringEscs;
+ const char** mpCharStringOps;
+ const char** mpCharStringEscs;
- CffLocal maCffLocal[16];
- CffLocal* mpCffLocal;
+ CffLocal maCffLocal[16];
+ CffLocal* mpCffLocal;
- void readDictOp( void);
- RealType readRealVal( void);
- const char* getString( int nStringID);
- int getFDSelect( int nGlyphIndex) const;
- int getGlyphSID( int nGlyphIndex) const;
+ void readDictOp( void);
+ RealType readRealVal( void);
+ const char* getString( int nStringID);
+ int getFDSelect( int nGlyphIndex) const;
+ int getGlyphSID( int nGlyphIndex) const;
const char* getGlyphName( int nGlyphIndex);
- void read2push( void);
- void pop2write( void);
- void writeType1Val( ValType);
- void writeTypeOp( int nTypeOp);
- void writeTypeEsc( int nTypeOp);
- void writeCurveTo( int nStackPos, int nIX1, int nIY1, int nIX2, int nIY2, int nIX3, int nIY3);
- void pop2MultiWrite( int nArgsPerTypo, int nTypeOp, int nTypeXor=0);
- void popAll2Write( int nTypeOp);
+ void read2push( void);
+ void pop2write( void);
+ void writeType1Val( ValType);
+ void writeTypeOp( int nTypeOp);
+ void writeTypeEsc( int nTypeOp);
+ void writeCurveTo( int nStackPos, int nIX1, int nIY1, int nIX2, int nIY2, int nIX3, int nIY3);
+ void pop2MultiWrite( int nArgsPerTypo, int nTypeOp, int nTypeXor=0);
+ void popAll2Write( int nTypeOp);
public: // TODO: is public really needed?
// accessing the value stack
// TODO: add more checks
- void push( ValType nVal) { mnValStack[ mnStackIdx++] = nVal;}
- ValType popVal( void) { return ((mnStackIdx>0) ? mnValStack[ --mnStackIdx] : 0);}
+ void push( ValType nVal) { mnValStack[ mnStackIdx++] = nVal;}
+ ValType popVal( void) { return ((mnStackIdx>0) ? mnValStack[ --mnStackIdx] : 0);}
ValType peekVal( void) const { return ((mnStackIdx>0) ? mnValStack[ mnStackIdx-1] : 0);}
ValType getVal( int nIndex) const { return mnValStack[ nIndex];}
- int popInt( void);
- int peekInt( void) const;
- int getInt( int nIndex) const;
- int size( void) const { return mnStackIdx;}
- bool empty( void) const { return !mnStackIdx;}
- void clear( void) { mnStackIdx = 0;}
+ int popInt( void);
+ int peekInt( void) const;
+ int getInt( int nIndex) const;
+ int size( void) const { return mnStackIdx;}
+ bool empty( void) const { return !mnStackIdx;}
+ void clear( void) { mnStackIdx = 0;}
// accessing the charstring hints
- void addHints( bool bVerticalHints);
- int getHorzHintCount( void) const { return (mnHorzHintSize/2);}
- int getVertHintCount( void) const { return (mnHintSize-mnHorzHintSize)/2;}
- void getHintPair( int nIndex, ValType* nMin, ValType* nEnd) const;
+ void addHints( bool bVerticalHints);
+ int getHorzHintCount( void) const { return (mnHorzHintSize/2);}
+ int getVertHintCount( void) const { return (mnHintSize-mnHorzHintSize)/2;}
+ void getHintPair( int nIndex, ValType* nMin, ValType* nEnd) const;
// accessing other charstring specifics
- bool hasCharWidth( void) const { return (maCharWidth > 0);}
- ValType getCharWidth( void) const { return maCharWidth;}
- void setNominalWidth( ValType aWidth) { mpCffLocal->maNominalWidth = aWidth;}
- void setDefaultWidth( ValType aWidth) { mpCffLocal->maDefaultWidth = aWidth;}
- void updateWidth( bool bUseFirstVal);
+ bool hasCharWidth( void) const { return (maCharWidth > 0);}
+ ValType getCharWidth( void) const { return maCharWidth;}
+ void setNominalWidth( ValType aWidth) { mpCffLocal->maNominalWidth = aWidth;}
+ void setDefaultWidth( ValType aWidth) { mpCffLocal->maDefaultWidth = aWidth;}
+ void updateWidth( bool bUseFirstVal);
private:
// typeop exceution context
- int mnStackIdx;
- ValType mnValStack[ NMAXSTACK+4];
- ValType mnTransVals[ NMAXTRANS];
+ int mnStackIdx;
+ ValType mnValStack[ NMAXSTACK+4];
+ ValType mnTransVals[ NMAXTRANS];
- int mnHintSize;
- int mnHorzHintSize;
- ValType mnHintStack[ NMAXHINTS];
+ int mnHintSize;
+ int mnHorzHintSize;
+ ValType mnHintStack[ NMAXHINTS];
- ValType maCharWidth;
+ ValType maCharWidth;
};
// --------------------------------------------------------------------
CffSubsetterContext::CffSubsetterContext( const U8* pBasePtr, int nBaseLen)
-: mpBasePtr( pBasePtr)
-, mpBaseEnd( pBasePtr+nBaseLen)
-, mnStackIdx(0)
-, mnHintSize(0)
-, mnHorzHintSize(0)
-, maCharWidth(-1)
+: mpBasePtr( pBasePtr)
+, mpBaseEnd( pBasePtr+nBaseLen)
+, mnStackIdx(0)
+, mnHintSize(0)
+, mnHorzHintSize(0)
+, maCharWidth(-1)
{
-// setCharStringType( 1);
+// setCharStringType( 1);
// TODO: new CffLocal[ mnFDAryCount];
mpCffLocal = &maCffLocal[0];
}
@@ -627,36 +627,36 @@ void CffSubsetterContext::readDictOp( void)
//TODO: if( nStackIdx > 0)
switch( *pCmdName) {
default: fprintf( stderr, "unsupported DictOp.type=\'%c\'\n", *pCmdName); break;
- case 'b': // bool
+ case 'b': // bool
nInt = popInt();
switch( nOpId) {
case 915: mpCffLocal->mbForceBold = nInt; break; // "ForceBold"
default: break; // TODO: handle more boolean dictops?
}
break;
- case 'n': // dict-op number
+ case 'n': // dict-op number
nVal = popVal();
nInt = static_cast<int>(nVal);
switch( nOpId) {
- case 10: mpCffLocal->maStemStdHW = nVal; break; // "StdHW"
- case 11: mpCffLocal->maStemStdVW = nVal; break; // "StdVW"
- case 15: mnCharsetBase = nInt; break; // "charset"
- case 16: mnEncodingBase = nInt; break; // "nEncoding"
- case 17: mnCharStrBase = nInt; break; // "nCharStrings"
+ case 10: mpCffLocal->maStemStdHW = nVal; break; // "StdHW"
+ case 11: mpCffLocal->maStemStdVW = nVal; break; // "StdVW"
+ case 15: mnCharsetBase = nInt; break; // "charset"
+ case 16: mnEncodingBase = nInt; break; // "nEncoding"
+ case 17: mnCharStrBase = nInt; break; // "nCharStrings"
case 19: mpCffLocal->mnLocalSubrOffs = nInt; break;// "nSubrs"
- case 20: setDefaultWidth( nVal ); break; // "defaultWidthX"
- case 21: setNominalWidth( nVal ); break; // "nominalWidthX"
- case 909: mpCffLocal->mfBlueScale = nVal; break; // "BlueScale"
- case 910: mpCffLocal->mfBlueShift = nVal; break; // "BlueShift"
- case 911: mpCffLocal->mfBlueFuzz = nVal; break; // "BlueFuzz"
- case 912: mpCffLocal->mfExpFactor = nVal; break; // "ExpansionFactor"
- case 917: mpCffLocal->mnLangGroup = nInt; break; // "LanguageGroup"
- case 936: mnFontDictBase = nInt; break; // "nFDArray"
- case 937: mnFDSelectBase = nInt; break; // "nFDSelect"
+ case 20: setDefaultWidth( nVal ); break; // "defaultWidthX"
+ case 21: setNominalWidth( nVal ); break; // "nominalWidthX"
+ case 909: mpCffLocal->mfBlueScale = nVal; break; // "BlueScale"
+ case 910: mpCffLocal->mfBlueShift = nVal; break; // "BlueShift"
+ case 911: mpCffLocal->mfBlueFuzz = nVal; break; // "BlueFuzz"
+ case 912: mpCffLocal->mfExpFactor = nVal; break; // "ExpansionFactor"
+ case 917: mpCffLocal->mnLangGroup = nInt; break; // "LanguageGroup"
+ case 936: mnFontDictBase = nInt; break; // "nFDArray"
+ case 937: mnFDSelectBase = nInt; break; // "nFDSelect"
default: break; // TODO: handle more numeric dictops?
}
break;
- case 'a': { // array
+ case 'a': { // array
switch( nOpId) {
case 5: maFontBBox.clear(); break; // "FontBBox"
case 907: maFontMatrix.clear(); break; // "FontMatrix"
@@ -672,36 +672,36 @@ void CffSubsetterContext::readDictOp( void)
}
clear();
} break;
- case 'd': { // delta array
+ case 'd': { // delta array
nVal = 0;
for( int i = 0; i < size(); ++i ) {
nVal += getVal(i);
switch( nOpId) {
- case 6: mpCffLocal->maBlueValues.push_back( nVal); break; // "BlueValues"
- case 7: mpCffLocal->maOtherBlues.push_back( nVal); break; // "OtherBlues"
- case 8: mpCffLocal->maFamilyBlues.push_back( nVal); break; // "FamilyBlues"
+ case 6: mpCffLocal->maBlueValues.push_back( nVal); break; // "BlueValues"
+ case 7: mpCffLocal->maOtherBlues.push_back( nVal); break; // "OtherBlues"
+ case 8: mpCffLocal->maFamilyBlues.push_back( nVal); break; // "FamilyBlues"
case 9: mpCffLocal->maFamilyOtherBlues.push_back( nVal); break;// "FamilyOtherBlues"
- case 912: mpCffLocal->maStemSnapH.push_back( nVal); break; // "StemSnapH"
- case 913: mpCffLocal->maStemSnapV.push_back( nVal); break; // "StemSnapV"
+ case 912: mpCffLocal->maStemSnapH.push_back( nVal); break; // "StemSnapH"
+ case 913: mpCffLocal->maStemSnapV.push_back( nVal); break; // "StemSnapV"
default: break; // TODO: handle more delta-array dictops?
}
}
clear();
} break;
- case 's': // stringid (SID)
+ case 's': // stringid (SID)
nInt = popInt();
switch( nOpId ) {
- case 2: mnFullNameSID = nInt; break; // "FullName"
- case 3: mnFamilyNameSID = nInt; break; // "FamilyName"
- case 938: mnFontNameSID = nInt; break; // "FontName"
+ case 2: mnFullNameSID = nInt; break; // "FullName"
+ case 3: mnFamilyNameSID = nInt; break; // "FamilyName"
+ case 938: mnFontNameSID = nInt; break; // "FontName"
default: break; // TODO: handle more string dictops?
}
break;
- case 'P': // private dict
+ case 'P': // private dict
mpCffLocal->mnPrivDictBase = popInt();
mpCffLocal->mnPrivDictSize = popInt();
break;
- case 'r': { // ROS operands
+ case 'r': { // ROS operands
int nSid1 = popInt();
int nSid2 = popInt();
(void)nSid1; // TODO: use
@@ -709,30 +709,30 @@ void CffSubsetterContext::readDictOp( void)
nVal = popVal();
mbCIDFont = true;
} break;
- case 't': // CharstringType
+ case 't': // CharstringType
nInt = popInt();
setCharStringType( nInt );
break;
}
- return;
+ return;
}
if( (c >= 32) || (c == 28) ) {
-// --mpReadPtr;
+// --mpReadPtr;
read2push();
- } else if( c == 29 ) { // longint
- ++mpReadPtr; // skip 29
+ } else if( c == 29 ) { // longint
+ ++mpReadPtr; // skip 29
int nS32 = mpReadPtr[0] << 24;
nS32 += mpReadPtr[1] << 16;
nS32 += mpReadPtr[2] << 8;
nS32 += mpReadPtr[3] << 0;
if( (sizeof(nS32) != 4) && (nS32 & (1<<31)))
- nS32 |= (~0U) << 31; // assuming 2s complement
+ nS32 |= (~0U) << 31; // assuming 2s complement
mpReadPtr += 4;
nVal = static_cast<ValType>(nS32);
push( nVal );
- } else if( c == 30) { // real number
+ } else if( c == 30) { // real number
++mpReadPtr; // skip 30
const RealType fReal = readRealVal();
// push value onto stack
@@ -752,22 +752,22 @@ void CffSubsetterContext::read2push()
if( c == 28 ) {
short nS16 = (p[1] << 8) + p[2];
if( (sizeof(nS16) != 2) && (nS16 & (1<<15)))
- nS16 |= (~0U) << 15; // assuming 2s complement
+ nS16 |= (~0U) << 15; // assuming 2s complement
aVal = nS16;
p += 3;
- } else if( c <= 246 ) { // -107..+107
+ } else if( c <= 246 ) { // -107..+107
aVal = static_cast<ValType>(p[0] - 139);
p += 1;
- } else if( c <= 250 ) { // +108..+1131
+ } else if( c <= 250 ) { // +108..+1131
aVal = static_cast<ValType>(((p[0] << 8) + p[1]) - 63124);
p += 2;
- } else if( c <= 254 ) { // -108..-1131
+ } else if( c <= 254 ) { // -108..-1131
aVal = static_cast<ValType>(64148 - ((p[0] << 8) + p[1]));
p += 2;
- } else /*if( c == 255)*/ { // Fixed16.16
+ } else /*if( c == 255)*/ { // Fixed16.16
int nS32 = (p[1] << 24) + (p[2] << 16) + (p[3] << 8) + p[4];
if( (sizeof(nS32) != 2) && (nS32 & (1<<31)))
- nS32 |= (~0U) << 31; // assuming 2s complement
+ nS32 |= (~0U) << 31; // assuming 2s complement
aVal = static_cast<ValType>(nS32 * (1.0 / 0x10000));
p += 5;
}
@@ -785,19 +785,19 @@ void CffSubsetterContext::writeType1Val( ValType aVal)
static const int nOutCharstrType = 1;
if( (nInt != aVal) && (nOutCharstrType == 2)) {
// numtype==255 means int32 for Type1, but 16.16 for Type2 charstrings!!!
- *(pOut++) = 255; // Fixed 16.16
+ *(pOut++) = 255; // Fixed 16.16
*(pOut++) = static_cast<U8>(nInt >> 8);
*(pOut++) = static_cast<U8>(nInt);
nInt = static_cast<int>(aVal * 0x10000) & 0xFFFF;
*(pOut++) = static_cast<U8>(nInt >> 8);
*(pOut++) = static_cast<U8>(nInt);
} else if( (nInt >= -107) && (nInt <= +107)) {
- *(pOut++) = static_cast<U8>(nInt + 139); // -107..+107
+ *(pOut++) = static_cast<U8>(nInt + 139); // -107..+107
} else if( (nInt >= -1131) && (nInt <= +1131)) {
if( nInt >= 0)
- nInt += 63124; // +108..+1131
+ nInt += 63124; // +108..+1131
else
- nInt = 64148 - nInt; // -108..-1131
+ nInt = 64148 - nInt; // -108..-1131
*(pOut++) = static_cast<U8>(nInt >> 8);
*(pOut++) = static_cast<U8>(nInt);
} else if( nOutCharstrType == 1) {
@@ -846,7 +846,7 @@ void CffSubsetterContext::pop2MultiWrite( int nArgsPerTypo, int nTypeOp, int nTy
}
i += nArgsPerTypo;
writeTypeOp( nTypeOp);
- nTypeOp ^= nTypeXor; // for toggling vlineto/hlineto
+ nTypeOp ^= nTypeXor; // for toggling vlineto/hlineto
}
clear();
}
@@ -1332,7 +1332,7 @@ int CffSubsetterContext::convert2Type1Ops( CffLocal* pCffLocal, const U8* const
// prepare the charstring conversion
mpWritePtr = pT1Ops;
-#if 1 // TODO: update caller
+#if 1 // TODO: update caller
U8 aType1Ops[ MAX_T1OPS_SIZE];
if( !pT1Ops)
mpWritePtr = aType1Ops;
@@ -1362,10 +1362,10 @@ mnHintSize=mnHorzHintSize=mnStackIdx=0; maCharWidth=-1;//#######
mnCntrMask = 0;
while( mpReadPtr < mpReadEnd)
convertOneTypeOp();
-// if( bActivePath)
-// writeTypeOp( TYPE1OP::CLOSEPATH);
-// if( bSubRoutine)
-// writeTypeOp( TYPE1OP::RETURN);
+// if( bActivePath)
+// writeTypeOp( TYPE1OP::CLOSEPATH);
+// if( bSubRoutine)
+// writeTypeOp( TYPE1OP::RETURN);
if( mbSawError) {
mpWritePtr = pT1Ops+4;
// create an "idiotproof" charstring
@@ -1392,7 +1392,7 @@ if( mbSawError) {
// encrypt the Type1 charstring
int nRDCryptR = 4330; // TODO: mnRDCryptSeed;
for( U8* p = pT1Ops; p < mpWritePtr; ++p) {
- *p ^= (nRDCryptR >> 8);
+ *p ^= (nRDCryptR >> 8);
nRDCryptR = (*(U8*)p + nRDCryptR) * 52845 + 22719;
}
@@ -1416,44 +1416,44 @@ RealType CffSubsetterContext::readRealVal()
if( nH <= 9) {
nNumber = nNumber * 10 + nH;
--nExpVal;
- } else if( nH == 10) { // comma
+ } else if( nH == 10) { // comma
nExpVal = 0;
bComma = true;
- } else if( nH == 11) { // +exp
+ } else if( nH == 11) { // +exp
fReal *= nNumber;
nExpSign = +1;
nNumber = 0;
- } else if( nH == 12) { // -exp
+ } else if( nH == 12) { // -exp
fReal *= nNumber;
nExpSign = -1;
nNumber = 0;
- } else if( nH == 13) { // reserved
+ } else if( nH == 13) { // reserved
// TODO: ignore or error?
- } else if( nH == 14) // minus
+ } else if( nH == 14) // minus
fReal = -fReal;
- else if( nH == 15) // end
+ else if( nH == 15) // end
break;
// parse low nibble
const U8 nL = c & 0x0F;
if( nL <= 9) {
nNumber = nNumber * 10 + nL;
--nExpVal;
- } else if( nL == 10) { // comma
+ } else if( nL == 10) { // comma
nExpVal = 0;
bComma = true;
- } else if( nL == 11) { // +exp
+ } else if( nL == 11) { // +exp
fReal *= nNumber;
nNumber = 0;
nExpSign = +1;
- } else if( nL == 12) { // -exp
+ } else if( nL == 12) { // -exp
fReal *= nNumber;
nNumber = 0;
nExpSign = -1;
- } else if( nL == 13) { // reserved
+ } else if( nL == 13) { // reserved
// TODO: ignore or error?
- } else if( nL == 14) // minus
+ } else if( nL == 14) // minus
fReal = -fReal;
- else if( nL == 15) // end
+ else if( nL == 15) // end
break;
}
@@ -1488,19 +1488,19 @@ int CffSubsetterContext::seekIndexData( int nIndexBase, int nDataIndex)
int nOfs1 = 0;
switch( nDataOfsSz) {
default: fprintf( stderr, "\tINVALID nDataOfsSz=%d\n\n", nDataOfsSz); return -1;
- case 1: nOfs1 = mpReadPtr[0]; break;
- case 2: nOfs1 = (mpReadPtr[0]<<8) + mpReadPtr[1]; break;
- case 3: nOfs1 = (mpReadPtr[0]<<16) + (mpReadPtr[1]<<8) + mpReadPtr[2]; break;
- case 4: nOfs1 = (mpReadPtr[0]<<24) + (mpReadPtr[1]<<16) + (mpReadPtr[2]<<8) + mpReadPtr[3]; break;
+ case 1: nOfs1 = mpReadPtr[0]; break;
+ case 2: nOfs1 = (mpReadPtr[0]<<8) + mpReadPtr[1]; break;
+ case 3: nOfs1 = (mpReadPtr[0]<<16) + (mpReadPtr[1]<<8) + mpReadPtr[2]; break;
+ case 4: nOfs1 = (mpReadPtr[0]<<24) + (mpReadPtr[1]<<16) + (mpReadPtr[2]<<8) + mpReadPtr[3]; break;
}
mpReadPtr += nDataOfsSz;
int nOfs2 = 0;
switch( nDataOfsSz) {
- case 1: nOfs2 = mpReadPtr[0]; break;
- case 2: nOfs2 = (mpReadPtr[0]<<8) + mpReadPtr[1]; break;
- case 3: nOfs2 = (mpReadPtr[0]<<16) + (mpReadPtr[1]<<8) + mpReadPtr[2]; break;
- case 4: nOfs2 = (mpReadPtr[0]<<24) + (mpReadPtr[1]<<16) + (mpReadPtr[2]<<8) + mpReadPtr[3]; break;
+ case 1: nOfs2 = mpReadPtr[0]; break;
+ case 2: nOfs2 = (mpReadPtr[0]<<8) + mpReadPtr[1]; break;
+ case 3: nOfs2 = (mpReadPtr[0]<<16) + (mpReadPtr[1]<<8) + mpReadPtr[2]; break;
+ case 4: nOfs2 = (mpReadPtr[0]<<24) + (mpReadPtr[1]<<16) + (mpReadPtr[2]<<8) + mpReadPtr[3]; break;
}
mpReadPtr = mpBasePtr + (nIndexBase + 2) + nDataOfsSz * (nDataCount + 1) + nOfs1;
@@ -1526,10 +1526,10 @@ void CffSubsetterContext::seekIndexEnd( int nIndexBase)
int nEndOfs = 0;
switch( nDataOfsSz) {
default: fprintf( stderr, "\tINVALID nDataOfsSz=%d\n\n", nDataOfsSz); return;
- case 1: nEndOfs = mpReadPtr[0]; break;
- case 2: nEndOfs = (mpReadPtr[0]<<8) + mpReadPtr[1]; break;
- case 3: nEndOfs = (mpReadPtr[0]<<16) + (mpReadPtr[1]<<8) + mpReadPtr[2];break;
- case 4: nEndOfs = (mpReadPtr[0]<<24) + (mpReadPtr[1]<<16) + (mpReadPtr[2]<<8) + mpReadPtr[3]; break;
+ case 1: nEndOfs = mpReadPtr[0]; break;
+ case 2: nEndOfs = (mpReadPtr[0]<<8) + mpReadPtr[1]; break;
+ case 3: nEndOfs = (mpReadPtr[0]<<16) + (mpReadPtr[1]<<8) + mpReadPtr[2];break;
+ case 4: nEndOfs = (mpReadPtr[0]<<24) + (mpReadPtr[1]<<16) + (mpReadPtr[2]<<8) + mpReadPtr[3]; break;
}
mpReadPtr += nDataOfsSz;
mpReadPtr += nEndOfs - 1;
@@ -1542,22 +1542,22 @@ void CffSubsetterContext::seekIndexEnd( int nIndexBase)
// initialize FONTDICT specific values
CffLocal::CffLocal( void)
-: mnPrivDictBase( 0)
-, mnPrivDictSize( 0)
-, mnLocalSubrOffs( 0)
-, mnLocalSubrBase( 0)
-, mnLocalSubrCount( 0)
-, mnLocalSubrBias( 0)
-, maNominalWidth( 0)
-, maDefaultWidth( 0)
-, maStemStdHW( 0)
-, maStemStdVW( 0)
-, mfBlueScale( 0.0)
-, mfBlueShift( 0.0)
-, mfBlueFuzz( 0.0)
-, mfExpFactor( 0.0)
-, mnLangGroup( 0)
-, mbForceBold( false)
+: mnPrivDictBase( 0)
+, mnPrivDictSize( 0)
+, mnLocalSubrOffs( 0)
+, mnLocalSubrBase( 0)
+, mnLocalSubrCount( 0)
+, mnLocalSubrBias( 0)
+, maNominalWidth( 0)
+, maDefaultWidth( 0)
+, maStemStdHW( 0)
+, maStemStdVW( 0)
+, mfBlueScale( 0.0)
+, mfBlueShift( 0.0)
+, mfBlueFuzz( 0.0)
+, mfExpFactor( 0.0)
+, mnLangGroup( 0)
+, mbForceBold( false)
{
maStemSnapH.clear();
maStemSnapV.clear();
@@ -1570,24 +1570,24 @@ CffLocal::CffLocal( void)
// --------------------------------------------------------------------
CffGlobal::CffGlobal( void)
-: mnNameIdxBase( 0)
-, mnNameIdxCount( 0)
-, mnStringIdxBase( 0)
-, mnStringIdxCount( 0)
-, mbCIDFont( false)
-, mnCharStrBase( 0)
-, mnCharStrCount( 0)
-, mnEncodingBase( 0)
-, mnCharsetBase( 0)
-, mnGlobalSubrBase( 0)
-, mnGlobalSubrCount( 0)
-, mnGlobalSubrBias( 0)
-, mnFDSelectBase( 0)
-, mnFontDictBase( 0)
-, mnFDAryCount( 1)
-, mnFontNameSID( 0)
-, mnFullNameSID( 0)
-, mnFamilyNameSID( 0)
+: mnNameIdxBase( 0)
+, mnNameIdxCount( 0)
+, mnStringIdxBase( 0)
+, mnStringIdxCount( 0)
+, mbCIDFont( false)
+, mnCharStrBase( 0)
+, mnCharStrCount( 0)
+, mnEncodingBase( 0)
+, mnCharsetBase( 0)
+, mnGlobalSubrBase( 0)
+, mnGlobalSubrCount( 0)
+, mnGlobalSubrBias( 0)
+, mnFDSelectBase( 0)
+, mnFontDictBase( 0)
+, mnFDAryCount( 1)
+, mnFontNameSID( 0)
+, mnFullNameSID( 0)
+, mnFamilyNameSID( 0)
{
maFontBBox.clear();
// TODO; maFontMatrix.clear();
@@ -1635,22 +1635,22 @@ void CffSubsetterContext::initialCffRead( void)
mnGlobalSubrCount = (mpReadPtr[0]<<8) + mpReadPtr[1];
mnGlobalSubrBias = (mnGlobalSubrCount<1240)?107:(mnGlobalSubrCount<33900)?1131:32768;
// skip past the last GlobalSubr entry
-// seekIndexEnd( mnGlobalSubrBase);
+// seekIndexEnd( mnGlobalSubrBase);
// get/skip the Encodings (we got mnEncodingBase from TOPDICT)
-// seekEncodingsEnd( mnEncodingBase);
+// seekEncodingsEnd( mnEncodingBase);
// get/skip the Charsets (we got mnCharsetBase from TOPDICT)
-// seekCharsetsEnd( mnCharStrBase);
+// seekCharsetsEnd( mnCharStrBase);
// get/skip FDSelect (CID only) data
// prepare access to the CharStrings index (we got the base from TOPDICT)
mpReadPtr = mpBasePtr + mnCharStrBase;
mnCharStrCount = (mpReadPtr[0]<<8) + mpReadPtr[1];
-// seekIndexEnd( mnCharStrBase);
+// seekIndexEnd( mnCharStrBase);
// read the FDArray index (CID only)
if( mbCIDFont) {
-// assert( mnFontDictBase == tellRel());
+// assert( mnFontDictBase == tellRel());
mpReadPtr = mpBasePtr + mnFontDictBase;
mnFDAryCount = (mpReadPtr[0]<<8) + mpReadPtr[1];
assert( mnFDAryCount < (int)(sizeof(maCffLocal)/sizeof(*maCffLocal)));
@@ -1689,7 +1689,7 @@ void CffSubsetterContext::initialCffRead( void)
const int nSubrCount = (mpReadPtr[0] << 8) + mpReadPtr[1];
mpCffLocal->mnLocalSubrCount = nSubrCount;
mpCffLocal->mnLocalSubrBias = (nSubrCount<1240)?107:(nSubrCount<33900)?1131:32768;
-// seekIndexEnd( mpCffLocal->mnLocalSubrBase);
+// seekIndexEnd( mpCffLocal->mnLocalSubrBase);
}
}
@@ -1766,7 +1766,7 @@ int CffSubsetterContext::getFDSelect( int nGlyphIndex) const
nPrev = nNext;
}
} break;
- default: // invalid FDselect format
+ default: // invalid FDselect format
fprintf( stderr, "invalid CFF.FdselType=%d\n", nFDSelFormat);
break;
}
@@ -1867,40 +1867,40 @@ const char* CffSubsetterContext::getGlyphName( int nGlyphIndex)
class Type1Emitter
{
public:
- explicit Type1Emitter( const char* pOutFileName, bool bPfbSubset = true);
- explicit Type1Emitter( FILE* pOutFile, bool bPfbSubset = true);
- /*virtual*/ ~Type1Emitter( void);
- void setSubsetName( const char* );
-
- void emitRawData( const char* pData, int nLength) const;
- void emitAllRaw( void);
- void emitAllHex( void);
- void emitAllCrypted( void);
- int tellPos( void) const;
- void updateLen( int nTellPos, int nLength);
- void emitValVector( const char* pLineHead, const char* pLineTail, const ValVector&);
+ explicit Type1Emitter( const char* pOutFileName, bool bPfbSubset = true);
+ explicit Type1Emitter( FILE* pOutFile, bool bPfbSubset = true);
+ /*virtual*/ ~Type1Emitter( void);
+ void setSubsetName( const char* );
+
+ void emitRawData( const char* pData, int nLength) const;
+ void emitAllRaw( void);
+ void emitAllHex( void);
+ void emitAllCrypted( void);
+ int tellPos( void) const;
+ void updateLen( int nTellPos, int nLength);
+ void emitValVector( const char* pLineHead, const char* pLineTail, const ValVector&);
private:
- FILE* mpFileOut;
- bool mbCloseOutfile;
- char maBuffer[MAX_T1OPS_SIZE]; // TODO: dynamic allocation
- int mnEECryptR;
+ FILE* mpFileOut;
+ bool mbCloseOutfile;
+ char maBuffer[MAX_T1OPS_SIZE]; // TODO: dynamic allocation
+ int mnEECryptR;
public:
- char* mpPtr;
+ char* mpPtr;
- char maSubsetName[256];
- bool mbPfbSubset;
- int mnHexLineCol;
+ char maSubsetName[256];
+ bool mbPfbSubset;
+ int mnHexLineCol;
};
// --------------------------------------------------------------------
Type1Emitter::Type1Emitter( const char* pPfbFileName, bool bPfbSubset)
-: mpFileOut( NULL)
-, mbCloseOutfile( true)
-, mnEECryptR( 55665) // default eexec seed, TODO: mnEECryptSeed
-, mpPtr( maBuffer)
-, mbPfbSubset( bPfbSubset)
-, mnHexLineCol( 0)
+: mpFileOut( NULL)
+, mbCloseOutfile( true)
+, mnEECryptR( 55665) // default eexec seed, TODO: mnEECryptSeed
+, mpPtr( maBuffer)
+, mbPfbSubset( bPfbSubset)
+, mnHexLineCol( 0)
{
mpFileOut = fopen( pPfbFileName, "wb");
maSubsetName[0] = '\0';
@@ -1909,12 +1909,12 @@ Type1Emitter::Type1Emitter( const char* pPfbFileName, bool bPfbSubset)
// --------------------------------------------------------------------
Type1Emitter::Type1Emitter( FILE* pOutFile, bool bPfbSubset)
-: mpFileOut( pOutFile)
-, mbCloseOutfile( false)
-, mnEECryptR( 55665) // default eexec seed, TODO: mnEECryptSeed
-, mpPtr( maBuffer)
-, mbPfbSubset( bPfbSubset)
-, mnHexLineCol( 0)
+: mpFileOut( pOutFile)
+, mbCloseOutfile( false)
+, mnEECryptR( 55665) // default eexec seed, TODO: mnEECryptSeed
+, mpPtr( maBuffer)
+, mbPfbSubset( bPfbSubset)
+, mnHexLineCol( 0)
{
maSubsetName[0] = '\0';
}
@@ -2112,7 +2112,7 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
pOut += sprintf( pOut, "%%!FontType1-1.0: %s 001.003\n", rEmitter.maSubsetName);
// emit TOPDICT
pOut += sprintf( pOut,
- "11 dict begin\n" // TODO: dynamic entry count for TOPDICT
+ "11 dict begin\n" // TODO: dynamic entry count for TOPDICT
"/FontType 1 def\n"
"/PaintType 0 def\n");
pOut += sprintf( pOut, "/FontName /%s def\n", rEmitter.maSubsetName);
@@ -2129,7 +2129,7 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
pOut += sprintf( pOut, "/FontBBox {0 0 999 999}readonly def\n");
// emit FONTINFO into TOPDICT
pOut += sprintf( pOut,
- "/FontInfo 2 dict dup begin\n" // TODO: check fontinfo entry count
+ "/FontInfo 2 dict dup begin\n" // TODO: check fontinfo entry count
" /FullName (%s) readonly def\n"
" /FamilyName (%s) readonly def\n"
"end readonly def\n",
@@ -2154,9 +2154,9 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
// update PFB header segment
const int nPfbHeaderLen = rEmitter.tellPos() - 6;
rEmitter.updateLen( 2, nPfbHeaderLen);
-
+
// prepare start of eexec segment
- rEmitter.emitRawData( "\x80\x02\x00\x00\x00\x00", 6); // segment start
+ rEmitter.emitRawData( "\x80\x02\x00\x00\x00\x00", 6); // segment start
}
const int nEExecSegTell = rEmitter.tellPos();
@@ -2190,11 +2190,11 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
"/ND{noaccess def}executeonly def\n"
"/NP{noaccess put}executeonly def\n"
"/MinFeature{16 16}ND\n"
- "/password 5839 def\n", // TODO: mnRDCryptSeed?
+ "/password 5839 def\n", // TODO: mnRDCryptSeed?
nPrivEntryCount);
#if defined(IGNORE_HINTS)
- pOut += sprintf( pOut, "/BlueValues []ND\n"); // BlueValues are mandatory
+ pOut += sprintf( pOut, "/BlueValues []ND\n"); // BlueValues are mandatory
#else
// emit blue hint related privdict entries
if( !mpCffLocal->maBlueValues.empty())
@@ -2210,12 +2210,12 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
pOut += dbl2str( pOut, mpCffLocal->mfBlueScale, 6);
pOut += sprintf( pOut, " def\n");
}
- if( mpCffLocal->mfBlueShift) { // default BlueShift==7
+ if( mpCffLocal->mfBlueShift) { // default BlueShift==7
pOut += sprintf( pOut, "/BlueShift ");
pOut += dbl2str( pOut, mpCffLocal->mfBlueShift);
pOut += sprintf( pOut, " def\n");
}
- if( mpCffLocal->mfBlueFuzz) { // default BlueFuzz==1
+ if( mpCffLocal->mfBlueFuzz) { // default BlueFuzz==1
pOut += sprintf( pOut, "/BlueFuzz ");
pOut += dbl2str( pOut, mpCffLocal->mfBlueFuzz);
pOut += sprintf( pOut, " def\n");
@@ -2325,7 +2325,7 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
const int nEExecLen = rEmitter.tellPos() - nEExecSegTell;
rEmitter.updateLen( nEExecSegTell-4, nEExecLen);
}
-
+
// create PFB footer
static const char aPfxFooter[] = "\x80\x01\x14\x02\x00\x00\n" // TODO: check segment len
"0000000000000000000000000000000000000000000000000000000000000000\n"
@@ -2358,12 +2358,12 @@ bool CffSubsetterContext::emitAsType1( Type1Emitter& rEmitter,
static_cast<long>(maFontBBox[3] * fYFactor) ) );
// PDF-Spec says the values below mean the ink bounds!
// TODO: use better approximations for these ink bounds
- rFSInfo.m_nAscent = +rFSInfo.m_aFontBBox.Bottom(); // for capital letters
- rFSInfo.m_nDescent = -rFSInfo.m_aFontBBox.Top(); // for all letters
- rFSInfo.m_nCapHeight = rFSInfo.m_nAscent; // for top-flat capital letters
+ rFSInfo.m_nAscent = +rFSInfo.m_aFontBBox.Bottom(); // for capital letters
+ rFSInfo.m_nDescent = -rFSInfo.m_aFontBBox.Top(); // for all letters
+ rFSInfo.m_nCapHeight = rFSInfo.m_nAscent; // for top-flat capital letters
rFSInfo.m_nFontType = rEmitter.mbPfbSubset ? FontSubsetInfo::TYPE1_PFB : FontSubsetInfo::TYPE1_PFA;
- rFSInfo.m_aPSName = String( rEmitter.maSubsetName, RTL_TEXTENCODING_UTF8 );
+ rFSInfo.m_aPSName = String( rEmitter.maSubsetName, RTL_TEXTENCODING_UTF8 );
return true;
}
diff --git a/vcl/source/fontsubset/fontsubset.cxx b/vcl/source/fontsubset/fontsubset.cxx
index b492033d078e..cbcf30612cb5 100644
--- a/vcl/source/fontsubset/fontsubset.cxx
+++ b/vcl/source/fontsubset/fontsubset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,14 +36,14 @@
// ====================================================================
FontSubsetInfo::FontSubsetInfo()
-: m_nAscent( 0)
-, m_nDescent( 0)
-, m_nCapHeight( 0)
-, m_nFontType( FontSubsetInfo::NO_FONT)
-, mpInFontBytes( NULL)
-, mnInByteLength( 0)
-, meInFontType( FontSubsetInfo::NO_FONT)
-, mpSftTTFont( NULL)
+: m_nAscent( 0)
+, m_nDescent( 0)
+, m_nCapHeight( 0)
+, m_nFontType( FontSubsetInfo::NO_FONT)
+, mpInFontBytes( NULL)
+, mnInByteLength( 0)
+, meInFontType( FontSubsetInfo::NO_FONT)
+, mpSftTTFont( NULL)
{}
// --------------------------------------------------------------------
@@ -86,15 +86,15 @@ bool FontSubsetInfo::CreateFontSubset(
{
// prepare request details needed by all underlying subsetters
mnReqFontTypeMask = nReqFontTypeMask;
- mpOutFile = pOutFile;
- mpReqFontName = pReqFontName;
- mpReqGlyphIds = pReqGlyphIds;
- mpReqEncodedIds = pReqEncodedIds;
- mnReqGlyphCount = nReqGlyphCount;
+ mpOutFile = pOutFile;
+ mpReqFontName = pReqFontName;
+ mpReqGlyphIds = pReqGlyphIds;
+ mpReqEncodedIds = pReqEncodedIds;
+ mnReqGlyphCount = nReqGlyphCount;
// TODO: move the glyphid/encid/notdef reshuffling from the callers to here
- // dispatch to underlying subsetters
+ // dispatch to underlying subsetters
bool bOK = false;
// TODO: better match available input-type to possible subset-types
diff --git a/vcl/source/fontsubset/gsub.cxx b/vcl/source/fontsubset/gsub.cxx
index 9fc03ca81185..450a70b6e544 100644
--- a/vcl/source/fontsubset/gsub.cxx
+++ b/vcl/source/fontsubset/gsub.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -186,10 +186,10 @@ int ReadGSUB( struct _TrueTypeFont* pTTFile,
if( aFeatureIndexList[0] != nFeatureIndex ) // do not ignore the required feature
{
const int nRequested = std::count( aFeatureIndexList.begin(), aFeatureIndexList.end(), nFeatureIndex);
- if( !nRequested ) // ignore features that are not requested
+ if( !nRequested ) // ignore features that are not requested
continue;
const int nAvailable = std::count( aReqFeatureTagList.begin(), aReqFeatureTagList.end(), nTag);
- if( !nAvailable ) // some fonts don't provide features they request!
+ if( !nAvailable ) // some fonts don't provide features they request!
continue;
}
diff --git a/vcl/source/fontsubset/gsub.h b/vcl/source/fontsubset/gsub.h
index bb4543f372da..e8cce6981d17 100644
--- a/vcl/source/fontsubset/gsub.h
+++ b/vcl/source/fontsubset/gsub.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
namespace vcl
{
-
+
int HasVerticalGSUB( struct vcl::_TrueTypeFont* pTTFile );
int UseGSUB( struct vcl::_TrueTypeFont* pTTFile, int nGlyph, int wmode );
diff --git a/vcl/source/fontsubset/list.c b/vcl/source/fontsubset/list.c
index c58e4497d2cf..001b15cdd6ac 100644
--- a/vcl/source/fontsubset/list.c
+++ b/vcl/source/fontsubset/list.c
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 3555b701ef8a..aa6fd99301f6 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,7 +94,7 @@ struct PSPathElement
int x1, y1;
int x2, y2;
int x3, y3;
-
+
PSPathElement( PathSegmentType i_eType ) : type( i_eType ),
x1( 0 ), y1( 0 ),
x2( 0 ), y2( 0 ),
@@ -542,11 +542,11 @@ static int GetSimpleTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPoin
/* printf("GetSimpleTTOutline(%d)\n", glyphID); */
- if( glyphID >= ttf->nglyphs ) /*- glyph is not present in the font */
+ if( glyphID >= ttf->nglyphs ) /*- glyph is not present in the font */
return 0;
const sal_uInt8* ptr = table + ttf->goffsets[glyphID];
const sal_Int16 numberOfContours = GetInt16(ptr, 0, 1);
- if( numberOfContours <= 0 ) /*- glyph is not simple */
+ if( numberOfContours <= 0 ) /*- glyph is not simple */
return 0;
if (metrics) { /*- GetCompoundTTOutline() calls this function with NULL metrics -*/
@@ -810,7 +810,7 @@ static int GetCompoundTTOutline(TrueTypeFont *ttf, sal_uInt32 glyphID, ControlPo
pa = (ControlPoint*)calloc(np, sizeof(ControlPoint));
assert(pa != 0);
-
+
memcpy( pa, &myPoints[0], np*sizeof(ControlPoint) );
*pointArray = pa;
@@ -1178,7 +1178,7 @@ static void GetNames(TrueTypeFont *t)
{
t->subfamily = strdup("");
}
-
+
/* #i60349# sanity check psname
* psname parctically has to be 7bit ascii and should not contains spaces
* there is a class of broken fonts which do not fullfill that at all, so let's try
@@ -1410,7 +1410,7 @@ static void FindCmap(TrueTypeFont *ttf)
for (i = 0; i < ncmaps; i++) {
sal_uInt32 offset;
sal_uInt16 pID, eID;
-
+
/* sanity check, cmap entry must lie within table */
if( i*8+4 > table_size )
break;
@@ -1418,14 +1418,14 @@ static void FindCmap(TrueTypeFont *ttf)
pID = GetUInt16(table, 4 + i * 8, 1);
eID = GetUInt16(table, 6 + i * 8, 1);
offset = GetUInt32(table, 8 + i * 8, 1);
-
+
/* sanity check, cmap must lie within file */
if( (table - ttf->ptr) + offset > (sal_uInt32)ttf->fsize )
continue;
/* Unicode tables in Apple fonts */
if (pID == 0) {
- AppleUni = offset;
+ AppleUni = offset;
}
if (pID == 3) {
@@ -1554,10 +1554,10 @@ static void KernGlyphsPrim1(TrueTypeFont *ttf, sal_uInt16 *glyphs, int nglyphs,
{
(void)ttf; /* avoid warning */
(void)glyphs; /* avoid warning */
- (void)nglyphs; /* avoid warning */
- (void)wmode; /* avoid warning */
- (void)nglyphs; /* avoid warning */
- (void)kern; /* avoid warning */
+ (void)nglyphs; /* avoid warning */
+ (void)wmode; /* avoid warning */
+ (void)nglyphs; /* avoid warning */
+ (void)kern; /* avoid warning */
fprintf(stderr, "MacOS kerning tables have not been implemented yet!\n");
}
@@ -1660,7 +1660,7 @@ int OpenTTFontFile( const char* fname, sal_uInt32 facenum, TrueTypeFont** ttf )
struct stat st;
if (!fname || !*fname) return SF_BADFILE;
-
+
allocTrueTypeFont( ttf );
if( ! *ttf )
return SF_MEMORY;
@@ -1700,7 +1700,7 @@ int OpenTTFontFile( const char* fname, sal_uInt32 facenum, TrueTypeFont** ttf )
goto cleanup;
}
close(fd);
-
+
return doOpenTTFont( facenum, *ttf );
cleanup:
@@ -1718,12 +1718,12 @@ int OpenTTFontBuffer(void* pBuffer, sal_uInt32 nLen, sal_uInt32 facenum, TrueTyp
allocTrueTypeFont( ttf );
if( *ttf == NULL )
return SF_MEMORY;
-
+
(*ttf)->fname = NULL;
(*ttf)->fsize = nLen;
(*ttf)->ptr = (sal_uInt8*)pBuffer;
-
- return doOpenTTFont( facenum, *ttf );
+
+ return doOpenTTFont( facenum, *ttf );
}
static int doOpenTTFont( sal_uInt32 facenum, TrueTypeFont* t )
@@ -1812,8 +1812,8 @@ static int doOpenTTFont( sal_uInt32 facenum, TrueTypeFont* t )
if( !pHead )
return SF_TTFORMAT;
/* limit Head candidate to TTC extract's limits */
- if( pHead > t->ptr + (t->fsize - 54) )
- pHead = t->ptr + (t->fsize - 54);
+ if( pHead > t->ptr + (t->fsize - 54) )
+ pHead = t->ptr + (t->fsize - 54);
/* TODO: find better method than searching head table's magic */
sal_uInt8* p = NULL;
for( p = pHead + 12; p > t->ptr; --p ) {
@@ -1837,7 +1837,7 @@ static int doOpenTTFont( sal_uInt32 facenum, TrueTypeFont* t )
* tables, but this would be quite time intensive.
* Try to fix tables, so we can cope with minor problems.
*/
-
+
if( (sal_uInt8*)t->tables[i] < t->ptr )
{
#if OSL_DEBUG_LEVEL > 1
@@ -1894,7 +1894,7 @@ static int doOpenTTFont( sal_uInt32 facenum, TrueTypeFont* t )
for( i = 0; i <= (int)t->nglyphs; ++i )
t->goffsets[i] = indexfmt ? GetUInt32(table, i << 2, 1) : (sal_uInt32)GetUInt16(table, i << 1, 1) << 1;
- } else if( getTable(t, O_CFF) ) { /* PS-OpenType */
+ } else if( getTable(t, O_CFF) ) { /* PS-OpenType */
t->goffsets = (sal_uInt32 *) calloc(1+t->nglyphs, sizeof(sal_uInt32));
/* TODO: implement to get subsetting */
assert(t->goffsets != 0);
@@ -2234,7 +2234,7 @@ int CreateTTFromTTGlyphs(TrueTypeFont *ttf,
for (i = 0; i < nGlyphs; i++) {
gID[i] = glyfAdd(glyf, GetTTRawGlyphData(ttf, glyphArray[i]), ttf);
}
-
+
/** cmap **/
cmap = TrueTypeTableNew_cmap();
diff --git a/vcl/source/fontsubset/ttcr.cxx b/vcl/source/fontsubset/ttcr.cxx
index 7a785b9bf99f..8235c3a27e82 100644
--- a/vcl/source/fontsubset/ttcr.cxx
+++ b/vcl/source/fontsubset/ttcr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,7 +57,7 @@ namespace vcl
sal_uInt32 tag; /**< TrueType file tag */
list tables; /**< List of table tags and pointers */
};
-
+
/* These must be #defined so that they can be used in initializers */
#define T_maxp 0x6D617870
#define T_glyf 0x676C7966
@@ -168,7 +168,7 @@ _inline void PutInt16(sal_Int16 val, sal_uInt8 *ptr, sal_uInt32 offset, int bige
ptr[offset] = (sal_uInt8)(val & 0xFF);
}
}
-
+
_inline void PutUInt16(sal_uInt16 val, sal_uInt8 *ptr, sal_uInt32 offset, int bigendian)
{
assert(ptr != 0);
@@ -240,7 +240,7 @@ static int NameRecordCompareF(const void *l, const void *r)
}
return 0;
}
-
+
static sal_uInt32 CheckSum(sal_uInt32 *ptr, sal_uInt32 length)
{
@@ -293,7 +293,7 @@ int AddTable(TrueTypeCreator *_this, TrueTypeTable *table)
void RemoveTable(TrueTypeCreator *_this, sal_uInt32 tag)
{
int done = 0;
-
+
if (listCount(_this->tables)) {
listToFirst(_this->tables);
do {
@@ -317,16 +317,16 @@ int StreamToMemory(TrueTypeCreator *_this, sal_uInt8 **ptr, sal_uInt32 *length)
sal_uInt32 *p;
int i=0, n;
sal_uInt8 *head = NULL; /* saved pointer to the head table data for checkSumAdjustment calculation */
-
+
if ((n = listCount(_this->tables)) == 0) return SF_TTFORMAT;
ProcessTables(_this);
/* ProcessTables() adds 'loca' and 'hmtx' */
-
+
n = listCount(_this->tables);
numTables = (sal_uInt16) n;
-
+
TableEntry* te = (TableEntry*)scalloc(n, sizeof(TableEntry));
@@ -337,7 +337,7 @@ int StreamToMemory(TrueTypeCreator *_this, sal_uInt8 **ptr, sal_uInt32 *length)
}
qsort(te, n, sizeof(TableEntry), TableEntryCompareF);
-
+
do {
searchRange *= 2;
entrySelector++;
@@ -387,7 +387,7 @@ int StreamToMemory(TrueTypeCreator *_this, sal_uInt8 **ptr, sal_uInt32 *length)
*ptr = ttf;
*length = s;
-
+
return SF_OK;
}
@@ -477,12 +477,12 @@ typedef struct {
sal_uInt32 isFixedPitch;
void *ptr; /* format-specific pointer */
} tdata_post;
-
+
/* allocate memory for a TT table */
static sal_uInt8 *ttmalloc(sal_uInt32 nbytes)
{
- sal_uInt32 n;
+ sal_uInt32 n;
n = (nbytes + 3) & (sal_uInt32) ~3;
sal_uInt8* res = (sal_uInt8*)malloc(n);
@@ -491,7 +491,7 @@ static sal_uInt8 *ttmalloc(sal_uInt32 nbytes)
return res;
}
-
+
static void FreeGlyphData(void *ptr)
{
GlyphData *p = (GlyphData *) ptr;
@@ -560,7 +560,7 @@ static void TrueTypeTableDispose_cmap(TrueTypeTable *_this)
table_cmap *t;
CmapSubTable *s;
sal_uInt32 i;
-
+
if (_this) {
t = (table_cmap *) _this->data;
if (t) {
@@ -618,7 +618,7 @@ static struct {
{T_cmap, TrueTypeTableDispose_cmap},
{T_name, TrueTypeTableDispose_name},
{T_post, TrueTypeTableDispose_post}
-
+
};
static int GetRawData_generic(TrueTypeTable *_this, sal_uInt8 **ptr, sal_uInt32 *len, sal_uInt32 *tag)
@@ -639,7 +639,7 @@ static int GetRawData_head(TrueTypeTable *_this, sal_uInt8 **ptr, sal_uInt32 *le
*len = TABLESIZE_head;
*ptr = (sal_uInt8 *) _this->data;
*tag = T_head;
-
+
return TTCR_OK;
}
@@ -648,7 +648,7 @@ static int GetRawData_hhea(TrueTypeTable *_this, sal_uInt8 **ptr, sal_uInt32 *le
*len = TABLESIZE_hhea;
*ptr = (sal_uInt8 *) _this->data;
*tag = T_hhea;
-
+
return TTCR_OK;
}
@@ -674,7 +674,7 @@ static int GetRawData_maxp(TrueTypeTable *_this, sal_uInt8 **ptr, sal_uInt32 *le
*len = TABLESIZE_maxp;
*ptr = (sal_uInt8 *) _this->data;
*tag = T_maxp;
-
+
return TTCR_OK;
}
@@ -766,7 +766,7 @@ static sal_uInt8 *PackCmapType6(CmapSubTable *s, sal_uInt32 *length)
return ptr;
}
-
+
/* XXX it only handles Format 0 encoding tables */
static sal_uInt8 *PackCmap(CmapSubTable *s, sal_uInt32 *length)
@@ -863,7 +863,7 @@ static int GetRawData_name(TrueTypeTable *_this, sal_uInt8 **ptr, sal_uInt32 *le
qsort(nr, n, sizeof(NameRecord), NameRecordCompareF);
int nameLen = stringLen + 12 * n + 6;
- sal_uInt8* name = (sal_uInt8*)ttmalloc(nameLen);
+ sal_uInt8* name = (sal_uInt8*)ttmalloc(nameLen);
PutUInt16(0, name, 0, 1);
PutUInt16(n, name, 2, 1);
@@ -927,9 +927,9 @@ static int GetRawData_post(TrueTypeTable *_this, sal_uInt8 **ptr, sal_uInt32 *le
return ret;
}
+
-
-
+
static struct {
sal_uInt32 tag;
@@ -945,10 +945,10 @@ static struct {
{T_cmap, GetRawData_cmap},
{T_name, GetRawData_name},
{T_post, GetRawData_post}
-
-
+
+
};
-
+
/*
* TrueTypeTable public methods
*/
@@ -969,11 +969,11 @@ TrueTypeTable *TrueTypeTableNew(sal_uInt32 tag,
const sal_uInt8* ptr)
{
TrueTypeTable* table = (TrueTypeTable*)smalloc(sizeof(TrueTypeTable));
- tdata_generic* pdata = (tdata_generic*)smalloc(sizeof(tdata_generic));
+ tdata_generic* pdata = (tdata_generic*)smalloc(sizeof(tdata_generic));
pdata->nbytes = nbytes;
pdata->tag = tag;
if (nbytes) {
- pdata->ptr = ttmalloc(nbytes);
+ pdata->ptr = ttmalloc(nbytes);
memcpy(pdata->ptr, ptr, nbytes);
} else {
pdata->ptr = 0;
@@ -985,7 +985,7 @@ TrueTypeTable *TrueTypeTableNew(sal_uInt32 tag,
return table;
}
-
+
TrueTypeTable *TrueTypeTableNew_head(sal_uInt32 fontRevision,
sal_uInt16 flags,
sal_uInt16 unitsPerEm,
@@ -996,7 +996,7 @@ TrueTypeTable *TrueTypeTableNew_head(sal_uInt32 fontRevision,
{
assert(created != 0);
- TrueTypeTable* table = (TrueTypeTable*)smalloc(sizeof(TrueTypeTable));
+ TrueTypeTable* table = (TrueTypeTable*)smalloc(sizeof(TrueTypeTable));
sal_uInt8* ptr = (sal_uInt8*)ttmalloc(TABLESIZE_head);
@@ -1040,7 +1040,7 @@ TrueTypeTable *TrueTypeTableNew_hhea(sal_Int16 ascender,
PutUInt16(0, ptr, 28, 1); /* reserved 4 */
PutUInt16(0, ptr, 30, 1); /* reserved 5 */
PutUInt16(0, ptr, 32, 1); /* metricDataFormat */
-
+
table->data = (void *) ptr;
table->tag = T_hhea;
table->rawdata = 0;
@@ -1070,7 +1070,7 @@ TrueTypeTable *TrueTypeTableNew_maxp( const sal_uInt8* maxp, int size)
if (maxp && size == TABLESIZE_maxp) {
memcpy(table->data, maxp, TABLESIZE_maxp);
}
-
+
table->tag = T_maxp;
table->rawdata = 0;
@@ -1081,7 +1081,7 @@ TrueTypeTable *TrueTypeTableNew_glyf(void)
{
TrueTypeTable* table = (TrueTypeTable*)smalloc(sizeof(TrueTypeTable));
list l = listNewEmpty();
-
+
assert(l != 0);
listSetElementDtor(l, (list_destructor)FreeGlyphData);
@@ -1097,12 +1097,12 @@ TrueTypeTable *TrueTypeTableNew_cmap(void)
{
TrueTypeTable* table = (TrueTypeTable*)smalloc(sizeof(TrueTypeTable));
table_cmap* cmap = (table_cmap*)smalloc(sizeof(table_cmap));
-
+
cmap->n = 0;
cmap->m = CMAP_SUBTABLE_INIT;
cmap->s = (CmapSubTable *) scalloc(CMAP_SUBTABLE_INIT, sizeof(CmapSubTable));
memset(cmap->s, 0, sizeof(CmapSubTable) * CMAP_SUBTABLE_INIT);
-
+
table->data = (table_cmap *) cmap;
table->rawdata = 0;
@@ -1138,7 +1138,7 @@ TrueTypeTable *TrueTypeTableNew_name(int n, NameRecord *nr)
{
TrueTypeTable* table = (TrueTypeTable*)smalloc(sizeof(TrueTypeTable));
list l = listNewEmpty();
-
+
assert(l != 0);
listSetElementDtor(l, (list_destructor)DisposeNameRecord);
@@ -1207,7 +1207,7 @@ int GetRawData(TrueTypeTable *_this, sal_uInt8 **ptr, sal_uInt32 *len, sal_uInt3
assert(!"Unknwon TrueType table.\n");
return TTCR_UNKNOWN;
}
-
+
void cmapAdd(TrueTypeTable *table, sal_uInt32 id, sal_uInt32 c, sal_uInt32 g)
{
sal_uInt32 i, found;
@@ -1230,7 +1230,7 @@ void cmapAdd(TrueTypeTable *table, sal_uInt32 id, sal_uInt32 c, sal_uInt32 g)
if (!found) {
if (t->n == t->m) {
- CmapSubTable* tmp = (CmapSubTable*)scalloc(t->m + CMAP_SUBTABLE_INCR, sizeof(CmapSubTable));
+ CmapSubTable* tmp = (CmapSubTable*)scalloc(t->m + CMAP_SUBTABLE_INCR, sizeof(CmapSubTable));
memset(tmp, 0, t->m + CMAP_SUBTABLE_INCR * sizeof(CmapSubTable));
memcpy(tmp, s, sizeof(CmapSubTable) * t->m);
t->m += CMAP_SUBTABLE_INCR;
@@ -1336,7 +1336,7 @@ sal_uInt32 glyfCount(const TrueTypeTable *table)
assert(table->tag == T_glyf);
return listCount((list) table->data);
}
-
+
void nameAdd(TrueTypeTable *table, NameRecord *nr)
{
@@ -1426,10 +1426,10 @@ static void ProcessTables(TrueTypeCreator *tt)
z = GetInt16(gd->ptr, 4, 1);
if (z < yMin) yMin = z;
-
+
z = GetInt16(gd->ptr, 6, 1);
if (z > xMax) xMax = z;
-
+
z = GetInt16(gd->ptr, 8, 1);
if (z > yMax) yMax = z;
}
@@ -1441,14 +1441,14 @@ static void ProcessTables(TrueTypeCreator *tt)
if (gd->npoints > maxCompositePoints) maxCompositePoints = gd->npoints;
if (gd->ncontours > maxCompositeContours) maxCompositeContours = gd->ncontours;
}
-
+
} while (listNext(glyphlist));
indexToLocFormat = (glyfLen / 2 > 0xFFFF) ? 1 : 0;
locaLen = indexToLocFormat ? (nGlyphs + 1) << 2 : (nGlyphs + 1) << 1;
sal_uInt8* glyfPtr = ttmalloc(glyfLen);
- sal_uInt8* locaPtr = ttmalloc(locaLen);
+ sal_uInt8* locaPtr = ttmalloc(locaLen);
TTSimpleGlyphMetrics* met = (TTSimpleGlyphMetrics*)scalloc(nGlyphs, sizeof(TTSimpleGlyphMetrics));
i = 0;
@@ -1457,7 +1457,7 @@ static void ProcessTables(TrueTypeCreator *tt)
p2 = locaPtr;
do {
GlyphData *gd = (GlyphData *) listCurrent(glyphlist);
-
+
if (gd->compflag) { /* re-number all components */
sal_uInt16 flags, index;
sal_uInt8 *ptr = gd->ptr + 10;
@@ -1526,7 +1526,7 @@ static void ProcessTables(TrueTypeCreator *tt)
((tdata_loca *) loca->data)->nbytes = locaLen;
AddTable(tt, loca);
-
+
head = FindTable(tt, T_head);
sal_uInt8* const pHeadData = (sal_uInt8*)head->data;
PutInt16(xMin, pHeadData, 36, 1);
@@ -1577,7 +1577,7 @@ static void ProcessTables(TrueTypeCreator *tt)
}
} // namespace vcl
-
+
extern "C"
{
/**
@@ -1597,11 +1597,11 @@ extern "C"
{
/* XXX do a binary search */
unsigned int i;
-
+
assert(_this != 0);
-
+
if (_this->rawdata) free(_this->rawdata);
-
+
for(i=0; i < sizeof(vcl::vtable1)/sizeof(*vcl::vtable1); i++) {
if (_this->tag == vcl::vtable1[i].tag) {
vcl::vtable1[i].f(_this);
@@ -1611,7 +1611,7 @@ extern "C"
assert(!"Unknown TrueType table.\n");
}
}
-
+
#ifdef TEST_TTCR
int main(void)
diff --git a/vcl/source/fontsubset/ttcr.hxx b/vcl/source/fontsubset/ttcr.hxx
index b2beb0549174..41ab42fa74b9 100644
--- a/vcl/source/fontsubset/ttcr.hxx
+++ b/vcl/source/fontsubset/ttcr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,7 +56,7 @@ namespace vcl
};
/** Error codes for most functions */
- enum TTCRErrCodes {
+ enum TTCRErrCodes {
TTCR_OK = 0, /**< no error */
TTCR_ZEROGLYPHS = 1, /**< At least one glyph should be defined */
TTCR_UNKNOWN = 2, /**< Unknown TrueType table */
@@ -213,7 +213,7 @@ namespace vcl
* Table manipulation functions
*
*------------------------------------------------------------------------------*/
-
+
/**
* Add a character/glyph pair to a cmap table
@@ -243,7 +243,7 @@ namespace vcl
*/
void nameAdd(TrueTypeTable *, NameRecord *nr);
-} // namespace
+} // namespace
extern "C"
diff --git a/vcl/source/fontsubset/xlat.cxx b/vcl/source/fontsubset/xlat.cxx
index 1df7a5a2fdde..9c442d5b0748 100644
--- a/vcl/source/fontsubset/xlat.cxx
+++ b/vcl/source/fontsubset/xlat.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,12 +38,12 @@ namespace { // anonymous namespace
class ConverterCache
{
public:
- explicit ConverterCache( void );
+ explicit ConverterCache( void );
~ConverterCache( void );
- sal_uInt16 convertOne( int nSelect, sal_Unicode );
- void convertStr( int nSelect, const sal_Unicode* pSrc, sal_uInt16* pDst, int nCount );
+ sal_uInt16 convertOne( int nSelect, sal_Unicode );
+ void convertStr( int nSelect, const sal_Unicode* pSrc, sal_uInt16* pDst, int nCount );
protected:
- void ensureConverter( int nSelect );
+ void ensureConverter( int nSelect );
private:
rtl_UnicodeToTextConverter maConverterCache[ MAX_CVT_SELECT+1 ];
rtl_UnicodeToTextContext maContexts[ MAX_CVT_SELECT+1 ];
@@ -192,22 +192,22 @@ sal_uInt16 TranslateChar16(sal_uInt16 src)
{
return aCC.convertOne( 6, src);
}
-
+
void TranslateString12(sal_uInt16 *src, sal_uInt16 *dst, sal_uInt32 n)
{
aCC.convertStr( 2, src, dst, n);
}
-
+
void TranslateString13(sal_uInt16 *src, sal_uInt16 *dst, sal_uInt32 n)
{
aCC.convertStr( 3, src, dst, n);
}
-
+
void TranslateString14(sal_uInt16 *src, sal_uInt16 *dst, sal_uInt32 n)
{
aCC.convertStr( 4, src, dst, n);
}
-
+
void TranslateString15(sal_uInt16 *src, sal_uInt16 *dst, sal_uInt32 n)
{
aCC.convertStr( 5, src, dst, n);
@@ -217,7 +217,7 @@ void TranslateString16(sal_uInt16 *src, sal_uInt16 *dst, sal_uInt32 n)
{
aCC.convertStr( 6, src, dst, n);
}
-
+
} // namespace vcl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/fontsubset/xlat.hxx b/vcl/source/fontsubset/xlat.hxx
index 3d8622bf9ae7..700c15ff0efd 100644
--- a/vcl/source/fontsubset/xlat.hxx
+++ b/vcl/source/fontsubset/xlat.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/gdi/alpha.cxx b/vcl/source/gdi/alpha.cxx
index d144fe550882..27a4862acd61 100644
--- a/vcl/source/gdi/alpha.cxx
+++ b/vcl/source/gdi/alpha.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -127,15 +127,15 @@ BOOL AlphaMask::Expand( ULONG nDX, ULONG nDY, BYTE* pInitTransparency )
// -----------------------------------------------------------------------------
-BOOL AlphaMask::CopyPixel( const Rectangle& rRectDst, const Rectangle& rRectSrc,
+BOOL AlphaMask::CopyPixel( const Rectangle& rRectDst, const Rectangle& rRectSrc,
const AlphaMask* pAlphaSrc )
{
// Note: this code is copied from Bitmap::CopyPixel but avoids any palette lookups
// this optimization is possible because the palettes of AlphaMasks are always identical (8bit GreyPalette, see ctor)
- const Size aSizePix( GetSizePixel() );
- Rectangle aRectDst( rRectDst );
- BOOL bRet = FALSE;
+ const Size aSizePix( GetSizePixel() );
+ Rectangle aRectDst( rRectDst );
+ BOOL bRet = FALSE;
aRectDst.Intersection( Rectangle( Point(), aSizePix ) );
@@ -143,9 +143,9 @@ BOOL AlphaMask::CopyPixel( const Rectangle& rRectDst, const Rectangle& rRectSrc,
{
if( pAlphaSrc && ( *pAlphaSrc != *this ) )
{
- Bitmap* pSrc = (Bitmap*) pAlphaSrc;
- const Size aCopySizePix( pSrc->GetSizePixel() );
- Rectangle aRectSrc( rRectSrc );
+ Bitmap* pSrc = (Bitmap*) pAlphaSrc;
+ const Size aCopySizePix( pSrc->GetSizePixel() );
+ Rectangle aRectSrc( rRectSrc );
aRectSrc.Intersection( Rectangle( Point(), aCopySizePix ) );
@@ -159,11 +159,11 @@ BOOL AlphaMask::CopyPixel( const Rectangle& rRectDst, const Rectangle& rRectSrc,
if( pWriteAcc )
{
- const long nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
- const long nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
- const long nSrcEndX = aRectSrc.Left() + nWidth;
- const long nSrcEndY = aRectSrc.Top() + nHeight;
- long nDstY = aRectDst.Top();
+ const long nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
+ const long nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
+ const long nSrcEndX = aRectSrc.Left() + nWidth;
+ const long nSrcEndY = aRectSrc.Top() + nHeight;
+ long nDstY = aRectDst.Top();
for( long nSrcY = aRectSrc.Top(); nSrcY < nSrcEndY; nSrcY++, nDstY++ )
for( long nSrcX = aRectSrc.Left(), nDstX = aRectDst.Left(); nSrcX < nSrcEndX; nSrcX++, nDstX++ )
@@ -185,20 +185,20 @@ BOOL AlphaMask::CopyPixel( const Rectangle& rRectDst, const Rectangle& rRectSrc,
if( !aRectSrc.IsEmpty() && ( aRectSrc != aRectDst ) )
{
- BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();
+ BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();
if( pWriteAcc )
{
- const long nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
- const long nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
- const long nSrcX = aRectSrc.Left();
- const long nSrcY = aRectSrc.Top();
- const long nSrcEndX1 = nSrcX + nWidth - 1L;
- const long nSrcEndY1 = nSrcY + nHeight - 1L;
- const long nDstX = aRectDst.Left();
- const long nDstY = aRectDst.Top();
- const long nDstEndX1 = nDstX + nWidth - 1L;
- const long nDstEndY1 = nDstY + nHeight - 1L;
+ const long nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
+ const long nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
+ const long nSrcX = aRectSrc.Left();
+ const long nSrcY = aRectSrc.Top();
+ const long nSrcEndX1 = nSrcX + nWidth - 1L;
+ const long nSrcEndY1 = nSrcY + nHeight - 1L;
+ const long nDstX = aRectDst.Left();
+ const long nDstY = aRectDst.Top();
+ const long nDstEndX1 = nDstX + nWidth - 1L;
+ const long nDstEndY1 = nDstY + nHeight - 1L;
if( ( nDstX <= nSrcX ) && ( nDstY <= nSrcY ) )
{
@@ -247,14 +247,14 @@ BOOL AlphaMask::Erase( BYTE cTransparency )
BOOL AlphaMask::Invert()
{
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pAcc && pAcc->GetBitCount() == 8 )
{
- BitmapColor aCol( 0 );
- const long nWidth = pAcc->Width(), nHeight = pAcc->Height();
- BYTE* pMap = new BYTE[ 256 ];
+ BitmapColor aCol( 0 );
+ const long nWidth = pAcc->Width(), nHeight = pAcc->Height();
+ BYTE* pMap = new BYTE[ 256 ];
for( long i = 0; i < 256; i++ )
pMap[ i ] = ~(BYTE) i;
@@ -320,16 +320,16 @@ BOOL AlphaMask::Rotate( long nAngle10, BYTE cFillTransparency )
BOOL AlphaMask::Replace( const Bitmap& rMask, BYTE cReplaceTransparency )
{
- BitmapReadAccess* pMaskAcc = ( (Bitmap&) rMask ).AcquireReadAccess();
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pMaskAcc = ( (Bitmap&) rMask ).AcquireReadAccess();
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pMaskAcc && pAcc )
{
- const BitmapColor aReplace( cReplaceTransparency );
- const long nWidth = Min( pMaskAcc->Width(), pAcc->Width() );
- const long nHeight = Min( pMaskAcc->Height(), pAcc->Height() );
- const BitmapColor aMaskWhite( pMaskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ const BitmapColor aReplace( cReplaceTransparency );
+ const long nWidth = Min( pMaskAcc->Width(), pAcc->Width() );
+ const long nHeight = Min( pMaskAcc->Height(), pAcc->Height() );
+ const BitmapColor aMaskWhite( pMaskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
for( long nY = 0L; nY < nHeight; nY++ )
for( long nX = 0L; nX < nWidth; nX++ )
@@ -351,8 +351,8 @@ nTol
#endif
)
{
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
DBG_ASSERT( !nTol, "AlphaMask::Replace: nTol not used yet" );
@@ -375,7 +375,7 @@ nTol
}
else
{
- BitmapColor aReplace( cReplaceTransparency );
+ BitmapColor aReplace( cReplaceTransparency );
for( long nY = 0L; nY < nHeight; nY++ )
{
@@ -401,9 +401,9 @@ nTol
BOOL AlphaMask::Replace( BYTE* pSearchTransparencies, BYTE* pReplaceTransparencies,
ULONG nColorCount, ULONG* pTols )
{
- Color* pSearchColors = new Color[ nColorCount ];
- Color* pReplaceColors = new Color[ nColorCount ];
- BOOL bRet;
+ Color* pSearchColors = new Color[ nColorCount ];
+ Color* pReplaceColors = new Color[ nColorCount ];
+ BOOL bRet;
for( ULONG i = 0; i < nColorCount; i++ )
{
diff --git a/vcl/source/gdi/animate.cxx b/vcl/source/gdi/animate.cxx
index 0da492c1fecb..7bd825fe04c2 100644
--- a/vcl/source/gdi/animate.cxx
+++ b/vcl/source/gdi/animate.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,8 +58,8 @@ ULONG Animation::mnAnimCount = 0UL;
ULONG AnimationBitmap::GetChecksum() const
{
- sal_uInt32 nCrc = aBmpEx.GetChecksum();
- SVBT32 aBT32;
+ sal_uInt32 nCrc = aBmpEx.GetChecksum();
+ SVBT32 aBT32;
UInt32ToSVBT32( aPosPix.X(), aBT32 );
nCrc = rtl_crc32( nCrc, aBT32, 4 );
@@ -90,13 +90,13 @@ ULONG AnimationBitmap::GetChecksum() const
// -------------
Animation::Animation() :
- mnLoopCount ( 0 ),
- mnLoops ( 0 ),
- mnPos ( 0 ),
- meCycleMode ( CYCLE_NORMAL ),
- mbIsInAnimation ( FALSE ),
- mbLoopTerminated ( FALSE ),
- mbIsWaiting ( FALSE )
+ mnLoopCount ( 0 ),
+ mnLoops ( 0 ),
+ mnPos ( 0 ),
+ meCycleMode ( CYCLE_NORMAL ),
+ mbIsInAnimation ( FALSE ),
+ mbLoopTerminated ( FALSE ),
+ mbIsWaiting ( FALSE )
{
DBG_CTOR( Animation, NULL );
maTimer.SetTimeoutHdl( LINK( this, Animation, ImplTimeoutHdl ) );
@@ -106,14 +106,14 @@ Animation::Animation() :
// -----------------------------------------------------------------------
Animation::Animation( const Animation& rAnimation ) :
- maBitmapEx ( rAnimation.maBitmapEx ),
- maGlobalSize ( rAnimation.maGlobalSize ),
- mnLoopCount ( rAnimation.mnLoopCount ),
- mnPos ( rAnimation.mnPos ),
- meCycleMode ( rAnimation.meCycleMode ),
- mbIsInAnimation ( FALSE ),
- mbLoopTerminated ( rAnimation.mbLoopTerminated ),
- mbIsWaiting ( rAnimation.mbIsWaiting )
+ maBitmapEx ( rAnimation.maBitmapEx ),
+ maGlobalSize ( rAnimation.maGlobalSize ),
+ mnLoopCount ( rAnimation.mnLoopCount ),
+ mnPos ( rAnimation.mnPos ),
+ meCycleMode ( rAnimation.meCycleMode ),
+ mbIsInAnimation ( FALSE ),
+ mbLoopTerminated ( rAnimation.mbLoopTerminated ),
+ mbIsWaiting ( rAnimation.mbIsWaiting )
{
DBG_CTOR( Animation, NULL );
@@ -169,7 +169,7 @@ Animation& Animation::operator=( const Animation& rAnimation )
BOOL Animation::operator==( const Animation& rAnimation ) const
{
const ULONG nCount = maList.Count();
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
if( rAnimation.maList.Count() == nCount &&
rAnimation.maBitmapEx == maBitmapEx &&
@@ -197,7 +197,7 @@ BOOL Animation::operator==( const Animation& rAnimation ) const
BOOL Animation::IsEqual( const Animation& rAnimation ) const
{
const ULONG nCount = maList.Count();
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
if( rAnimation.maList.Count() == nCount &&
rAnimation.maBitmapEx.IsEqual( maBitmapEx ) &&
@@ -248,9 +248,9 @@ void Animation::Clear()
BOOL Animation::IsTransparent() const
{
- Point aPoint;
- Rectangle aRect( aPoint, maGlobalSize );
- BOOL bRet = FALSE;
+ Point aPoint;
+ Rectangle aRect( aPoint, maGlobalSize );
+ BOOL bRet = FALSE;
// Falls irgendein 'kleines' Bildchen durch den Hintergrund
// ersetzt werden soll, muessen wir 'transparent' sein, um
@@ -292,8 +292,8 @@ ULONG Animation::GetSizeBytes() const
ULONG Animation::GetChecksum() const
{
- SVBT32 aBT32;
- sal_uInt32 nCrc = GetBitmapEx().GetChecksum();
+ SVBT32 aBT32;
+ sal_uInt32 nCrc = GetBitmapEx().GetChecksum();
UInt32ToSVBT32( maList.Count(), aBT32 );
nCrc = rtl_crc32( nCrc, aBT32, 4 );
@@ -336,8 +336,8 @@ BOOL Animation::Start( OutputDevice* pOut, const Point& rDestPt, const Size& rDe
if( ( pOut->GetOutDevType() == OUTDEV_WINDOW ) && !mbLoopTerminated &&
( ANIMATION_TIMEOUT_ON_CLICK != ( (AnimationBitmap*) maList.GetObject( mnPos ) )->nWait ) )
{
- ImplAnimView* pView;
- ImplAnimView* pMatch = NULL;
+ ImplAnimView* pView;
+ ImplAnimView* pMatch = NULL;
for( pView = (ImplAnimView*) mpViewList->First(); pView; pView = (ImplAnimView*) mpViewList->Next() )
{
@@ -455,8 +455,8 @@ IMPL_LINK( Animation, ImplTimeoutHdl, Timer*, EMPTYARG )
if( nAnimCount )
{
- ImplAnimView* pView;
- BOOL bGlobalPause = TRUE;
+ ImplAnimView* pView;
+ BOOL bGlobalPause = TRUE;
if( maNotifyLink.IsSet() )
{
@@ -510,7 +510,7 @@ IMPL_LINK( Animation, ImplTimeoutHdl, Timer*, EMPTYARG )
}
}
else
- bGlobalPause = FALSE;
+ bGlobalPause = FALSE;
if( !mpViewList->Count() )
Stop();
@@ -579,8 +579,8 @@ BOOL Animation::Insert( const AnimationBitmap& rStepBmp )
if( !IsInAnimation() )
{
- Point aPoint;
- Rectangle aGlobalRect( aPoint, maGlobalSize );
+ Point aPoint;
+ Rectangle aGlobalRect( aPoint, maGlobalSize );
maGlobalSize = aGlobalRect.Union( Rectangle( rStepBmp.aPosPix, rStepBmp.aSizePix ) ).GetSize();
maList.Insert( new AnimationBitmap( rStepBmp ), LIST_APPEND );
@@ -713,7 +713,7 @@ BOOL Animation::Mirror( ULONG nMirrorFlags )
{
DBG_ASSERT( !IsInAnimation(), "Animation modified while it is animated" );
- BOOL bRet;
+ BOOL bRet;
if( !IsInAnimation() && maList.Count() )
{
@@ -829,8 +829,8 @@ SvStream& operator<<( SvStream& rOStm, const Animation& rAnimation )
if( nCount )
{
- const ByteString aDummyStr;
- const UINT32 nDummy32 = 0UL;
+ const ByteString aDummyStr;
+ const UINT32 nDummy32 = 0UL;
// Falls keine BitmapEx gesetzt wurde, schreiben wir
// einfach die erste Bitmap der Animation
@@ -844,8 +844,8 @@ SvStream& operator<<( SvStream& rOStm, const Animation& rAnimation )
for( USHORT i = 0; i < nCount; i++ )
{
- const AnimationBitmap& rAnimBmp = rAnimation.Get( i );
- const UINT16 nRest = nCount - i - 1;
+ const AnimationBitmap& rAnimBmp = rAnimation.Get( i );
+ const UINT16 nRest = nCount - i - 1;
// AnimationBitmap schreiben
rOStm << rAnimBmp.aBmpEx;
@@ -856,11 +856,11 @@ SvStream& operator<<( SvStream& rOStm, const Animation& rAnimation )
rOStm << (UINT16) rAnimBmp.eDisposal;
rOStm << (BYTE) rAnimBmp.bUserInput;
rOStm << (UINT32) rAnimation.mnLoopCount;
- rOStm << nDummy32; // unbenutzt
- rOStm << nDummy32; // unbenutzt
- rOStm << nDummy32; // unbenutzt
+ rOStm << nDummy32; // unbenutzt
+ rOStm << nDummy32; // unbenutzt
+ rOStm << nDummy32; // unbenutzt
rOStm << aDummyStr; // unbenutzt
- rOStm << nRest; // Anzahl der Strukturen, die noch _folgen_
+ rOStm << nRest; // Anzahl der Strukturen, die noch _folgen_
}
}
@@ -871,11 +871,11 @@ SvStream& operator<<( SvStream& rOStm, const Animation& rAnimation )
SvStream& operator>>( SvStream& rIStm, Animation& rAnimation )
{
- Bitmap aBmp;
- ULONG nStmPos = rIStm.Tell();
- UINT32 nAnimMagic1, nAnimMagic2;
- USHORT nOldFormat = rIStm.GetNumberFormatInt();
- BOOL bReadAnimations = FALSE;
+ Bitmap aBmp;
+ ULONG nStmPos = rIStm.Tell();
+ UINT32 nAnimMagic1, nAnimMagic2;
+ USHORT nOldFormat = rIStm.GetNumberFormatInt();
+ BOOL bReadAnimations = FALSE;
rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
nStmPos = rIStm.Tell();
@@ -905,11 +905,11 @@ SvStream& operator>>( SvStream& rIStm, Animation& rAnimation )
if( bReadAnimations )
{
AnimationBitmap aAnimBmp;
- BitmapEx aBmpEx;
- ByteString aDummyStr;
- UINT32 nTmp32;
- UINT16 nTmp16;
- BYTE cTmp;
+ BitmapEx aBmpEx;
+ ByteString aDummyStr;
+ UINT32 nTmp32;
+ UINT16 nTmp16;
+ BYTE cTmp;
do
{
@@ -921,11 +921,11 @@ SvStream& operator>>( SvStream& rIStm, Animation& rAnimation )
rIStm >> nTmp16; aAnimBmp.eDisposal = ( Disposal) nTmp16;
rIStm >> cTmp; aAnimBmp.bUserInput = (BOOL) cTmp;
rIStm >> nTmp32; rAnimation.mnLoopCount = (USHORT) nTmp32;
- rIStm >> nTmp32; // unbenutzt
- rIStm >> nTmp32; // unbenutzt
- rIStm >> nTmp32; // unbenutzt
+ rIStm >> nTmp32; // unbenutzt
+ rIStm >> nTmp32; // unbenutzt
+ rIStm >> nTmp32; // unbenutzt
rIStm >> aDummyStr; // unbenutzt
- rIStm >> nTmp16; // Rest zu lesen
+ rIStm >> nTmp16; // Rest zu lesen
rAnimation.Insert( aAnimBmp );
}
diff --git a/vcl/source/gdi/base14.cxx b/vcl/source/gdi/base14.cxx
index 02524920a2bb..da30404052d6 100644
--- a/vcl/source/gdi/base14.cxx
+++ b/vcl/source/gdi/base14.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ OString PDFWriterImpl::BuiltinFont::getNameObject() const
OStringBuffer aBuf( 16 );
aBuf.append( '/' );
const char* pRun = m_pPSName;
-
+
unsigned int nCopied = 0;
while( *pRun )
{
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx
index 335533f429b1..8fa4ab638e85 100644
--- a/vcl/source/gdi/bitmap.cxx
+++ b/vcl/source/gdi/bitmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,16 +57,16 @@ Bitmap::Bitmap( const ResId& rResId ) :
mpImpBmp( NULL )
{
const BitmapEx aBmpEx( rResId );
-
+
if( !aBmpEx.IsEmpty() )
- *this = aBmpEx.GetBitmap();
+ *this = aBmpEx.GetBitmap();
}
// ------------------------------------------------------------------
Bitmap::Bitmap( const Bitmap& rBitmap ) :
- maPrefMapMode ( rBitmap.maPrefMapMode ),
- maPrefSize ( rBitmap.maPrefSize )
+ maPrefMapMode ( rBitmap.maPrefMapMode ),
+ maPrefSize ( rBitmap.maPrefSize )
{
mpImpBmp = rBitmap.mpImpBmp;
@@ -90,8 +90,8 @@ Bitmap::Bitmap( const Size& rSizePixel, USHORT nBitCount, const BitmapPalette* p
{
if( rSizePixel.Width() && rSizePixel.Height() )
{
- BitmapPalette aPal;
- BitmapPalette* pRealPal = NULL;
+ BitmapPalette aPal;
+ BitmapPalette* pRealPal = NULL;
if( nBitCount <= 8 )
{
@@ -318,8 +318,8 @@ USHORT Bitmap::GetBitCount() const
BOOL Bitmap::HasGreyPalette() const
{
- const USHORT nBitCount = GetBitCount();
- BOOL bRet = FALSE;
+ const USHORT nBitCount = GetBitCount();
+ BOOL bRet = FALSE;
if( 1 == nBitCount )
{
@@ -347,7 +347,7 @@ BOOL Bitmap::HasGreyPalette() const
{
if( pRAcc->HasPalette() && ( (BitmapPalette&) pRAcc->GetPalette() == GetGreyPalette( 1 << nBitCount ) ) )
bRet = TRUE;
-
+
( (Bitmap*) this )->ReleaseAccess( pRAcc );
}
}
@@ -371,8 +371,8 @@ ULONG Bitmap::GetChecksum() const
if( pRAcc && pRAcc->Width() && pRAcc->Height() )
{
- sal_uInt32 nCrc = 0;
- SVBT32 aBT32;
+ sal_uInt32 nCrc = 0;
+ SVBT32 aBT32;
pRAcc->ImplZeroInitUnusedBits();
@@ -393,7 +393,7 @@ ULONG Bitmap::GetChecksum() const
UInt32ToSVBT32( pRAcc->GetColorMask().GetBlueMask(), aBT32 );
nCrc = rtl_crc32( nCrc, aBT32, 4 );
-
+
if( pRAcc->HasPalette() )
{
nCrc = rtl_crc32( nCrc, pRAcc->GetPalette().ImplGetColorBuffer(),
@@ -401,7 +401,7 @@ ULONG Bitmap::GetChecksum() const
}
nCrc = rtl_crc32( nCrc, pRAcc->GetBuffer(), pRAcc->GetScanlineSize() * pRAcc->Height() );
-
+
mpImpBmp->ImplSetChecksum( nRet = nCrc );
}
@@ -447,10 +447,10 @@ void Bitmap::ImplMakeUnique()
void Bitmap::ImplAssignWithSize( const Bitmap& rBitmap )
{
- const Size aOldSizePix( GetSizePixel() );
- const Size aNewSizePix( rBitmap.GetSizePixel() );
- const MapMode aOldMapMode( maPrefMapMode );
- Size aNewPrefSize;
+ const Size aOldSizePix( GetSizePixel() );
+ const Size aNewSizePix( rBitmap.GetSizePixel() );
+ const MapMode aOldMapMode( maPrefMapMode );
+ Size aNewPrefSize;
if( ( aOldSizePix != aNewSizePix ) && aOldSizePix.Width() && aOldSizePix.Height() )
{
@@ -527,15 +527,15 @@ BOOL Bitmap::Erase( const Color& rFillColor )
{
if( !(*this) )
return TRUE;
-
- BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+
+ BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pWriteAcc )
{
const ULONG nFormat = pWriteAcc->GetScanlineFormat();
- BYTE cIndex = 0;
- BOOL bFast = FALSE;
+ BYTE cIndex = 0;
+ BOOL bFast = FALSE;
switch( nFormat )
{
@@ -607,15 +607,15 @@ BOOL Bitmap::Erase( const Color& rFillColor )
BOOL Bitmap::Invert()
{
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pAcc )
{
if( pAcc->HasPalette() )
{
- BitmapPalette aBmpPal( pAcc->GetPalette() );
- const USHORT nCount = aBmpPal.GetEntryCount();
+ BitmapPalette aBmpPal( pAcc->GetPalette() );
+ const USHORT nCount = aBmpPal.GetEntryCount();
for( USHORT i = 0; i < nCount; i++ )
aBmpPal[ i ].Invert();
@@ -624,8 +624,8 @@ BOOL Bitmap::Invert()
}
else
{
- const long nWidth = pAcc->Width();
- const long nHeight = pAcc->Height();
+ const long nWidth = pAcc->Width();
+ const long nHeight = pAcc->Height();
for( long nX = 0L; nX < nWidth; nX++ )
for( long nY = 0L; nY < nHeight; nY++ )
@@ -649,14 +649,14 @@ BOOL Bitmap::Mirror( ULONG nMirrorFlags )
if( bHorz && !bVert )
{
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
if( pAcc )
{
- const long nWidth = pAcc->Width();
- const long nHeight = pAcc->Height();
- const long nWidth1 = nWidth - 1L;
- const long nWidth_2 = nWidth >> 1L;
+ const long nWidth = pAcc->Width();
+ const long nHeight = pAcc->Height();
+ const long nWidth1 = nWidth - 1L;
+ const long nWidth_2 = nWidth >> 1L;
for( long nY = 0L; nY < nHeight; nY++ )
{
@@ -675,15 +675,15 @@ BOOL Bitmap::Mirror( ULONG nMirrorFlags )
}
else if( bVert && !bHorz )
{
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
if( pAcc )
{
- const long nScanSize = pAcc->GetScanlineSize();
- BYTE* pBuffer = new BYTE[ nScanSize ];
- const long nHeight = pAcc->Height();
- const long nHeight1 = nHeight - 1L;
- const long nHeight_2 = nHeight >> 1L;
+ const long nScanSize = pAcc->GetScanlineSize();
+ BYTE* pBuffer = new BYTE[ nScanSize ];
+ const long nHeight = pAcc->Height();
+ const long nHeight1 = nHeight - 1L;
+ const long nHeight_2 = nHeight >> 1L;
for( long nY = 0L, nOther = nHeight1; nY < nHeight_2; nY++, nOther-- )
{
@@ -699,14 +699,14 @@ BOOL Bitmap::Mirror( ULONG nMirrorFlags )
}
else if( bHorz && bVert )
{
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
if( pAcc )
{
- const long nWidth = pAcc->Width();
- const long nWidth1 = nWidth - 1L;
- const long nHeight = pAcc->Height();
- long nHeight_2 = nHeight >> 1;
+ const long nWidth = pAcc->Width();
+ const long nWidth1 = nWidth - 1L;
+ const long nHeight = pAcc->Height();
+ long nHeight_2 = nHeight >> 1;
for( long nY = 0L, nOtherY = nHeight - 1L; nY < nHeight_2; nY++, nOtherY-- )
{
@@ -749,33 +749,33 @@ BOOL Bitmap::Rotate( long nAngle10, const Color& rFillColor )
nAngle10 %= 3600L;
nAngle10 = ( nAngle10 < 0L ) ? ( 3599L + nAngle10 ) : nAngle10;
- if( !nAngle10 )
+ if( !nAngle10 )
bRet = TRUE;
else if( 1800L == nAngle10 )
bRet = Mirror( BMP_MIRROR_HORZ | BMP_MIRROR_VERT );
else
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- Bitmap aRotatedBmp;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ Bitmap aRotatedBmp;
if( pReadAcc )
{
- const Size aSizePix( GetSizePixel() );
+ const Size aSizePix( GetSizePixel() );
if( ( 900L == nAngle10 ) || ( 2700L == nAngle10 ) )
{
- const Size aNewSizePix( aSizePix.Height(), aSizePix.Width() );
- Bitmap aNewBmp( aNewSizePix, GetBitCount(), &pReadAcc->GetPalette() );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ const Size aNewSizePix( aSizePix.Height(), aSizePix.Width() );
+ Bitmap aNewBmp( aNewSizePix, GetBitCount(), &pReadAcc->GetPalette() );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const long nWidth = aSizePix.Width();
- const long nWidth1 = nWidth - 1L;
- const long nHeight = aSizePix.Height();
- const long nHeight1 = nHeight - 1L;
- const long nNewWidth = aNewSizePix.Width();
- const long nNewHeight = aNewSizePix.Height();
+ const long nWidth = aSizePix.Width();
+ const long nWidth1 = nWidth - 1L;
+ const long nHeight = aSizePix.Height();
+ const long nHeight1 = nHeight - 1L;
+ const long nNewWidth = aNewSizePix.Width();
+ const long nNewHeight = aNewSizePix.Height();
if( 900L == nAngle10 )
{
@@ -797,37 +797,37 @@ BOOL Bitmap::Rotate( long nAngle10, const Color& rFillColor )
}
else
{
- Point aTmpPoint;
- Rectangle aTmpRectangle( aTmpPoint, aSizePix );
- Polygon aPoly( aTmpRectangle );
+ Point aTmpPoint;
+ Rectangle aTmpRectangle( aTmpPoint, aSizePix );
+ Polygon aPoly( aTmpRectangle );
aPoly.Rotate( aTmpPoint, (USHORT) nAngle10 );
- Rectangle aNewBound( aPoly.GetBoundRect() );
- const Size aNewSizePix( aNewBound.GetSize() );
- Bitmap aNewBmp( aNewSizePix, GetBitCount(), &pReadAcc->GetPalette() );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Rectangle aNewBound( aPoly.GetBoundRect() );
+ const Size aNewSizePix( aNewBound.GetSize() );
+ Bitmap aNewBmp( aNewSizePix, GetBitCount(), &pReadAcc->GetPalette() );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const BitmapColor aFillColor( pWriteAcc->GetBestMatchingColor( rFillColor ) );
- const double fCosAngle = cos( nAngle10 * F_PI1800 );
- const double fSinAngle = sin( nAngle10 * F_PI1800 );
- const double fXMin = aNewBound.Left();
- const double fYMin = aNewBound.Top();
- const long nWidth = aSizePix.Width();
- const long nHeight = aSizePix.Height();
- const long nNewWidth = aNewSizePix.Width();
- const long nNewHeight = aNewSizePix.Height();
- long nX;
- long nY;
- long nRotX;
- long nRotY;
- long nSinY;
- long nCosY;
- long* pCosX = new long[ nNewWidth ];
- long* pSinX = new long[ nNewWidth ];
- long* pCosY = new long[ nNewHeight ];
- long* pSinY = new long[ nNewHeight ];
+ const BitmapColor aFillColor( pWriteAcc->GetBestMatchingColor( rFillColor ) );
+ const double fCosAngle = cos( nAngle10 * F_PI1800 );
+ const double fSinAngle = sin( nAngle10 * F_PI1800 );
+ const double fXMin = aNewBound.Left();
+ const double fYMin = aNewBound.Top();
+ const long nWidth = aSizePix.Width();
+ const long nHeight = aSizePix.Height();
+ const long nNewWidth = aNewSizePix.Width();
+ const long nNewHeight = aNewSizePix.Height();
+ long nX;
+ long nY;
+ long nRotX;
+ long nRotY;
+ long nSinY;
+ long nCosY;
+ long* pCosX = new long[ nNewWidth ];
+ long* pSinX = new long[ nNewWidth ];
+ long* pCosY = new long[ nNewHeight ];
+ long* pSinY = new long[ nNewHeight ];
for ( nX = 0; nX < nNewWidth; nX++ )
{
@@ -887,9 +887,9 @@ BOOL Bitmap::Rotate( long nAngle10, const Color& rFillColor )
BOOL Bitmap::Crop( const Rectangle& rRectPixel )
{
- const Size aSizePix( GetSizePixel() );
- Rectangle aRect( rRectPixel );
- BOOL bRet = FALSE;
+ const Size aSizePix( GetSizePixel() );
+ Rectangle aRect( rRectPixel );
+ BOOL bRet = FALSE;
aRect.Intersection( Rectangle( Point(), aSizePix ) );
@@ -899,10 +899,10 @@ BOOL Bitmap::Crop( const Rectangle& rRectPixel )
if( pReadAcc )
{
- Point aTmpPoint;
- const Rectangle aNewRect( aTmpPoint, aRect.GetSize() );
- Bitmap aNewBmp( aNewRect.GetSize(), GetBitCount(), &pReadAcc->GetPalette() );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Point aTmpPoint;
+ const Rectangle aNewRect( aTmpPoint, aRect.GetSize() );
+ Bitmap aNewBmp( aNewRect.GetSize(), GetBitCount(), &pReadAcc->GetPalette() );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
@@ -934,9 +934,9 @@ BOOL Bitmap::Crop( const Rectangle& rRectPixel )
BOOL Bitmap::CopyPixel( const Rectangle& rRectDst,
const Rectangle& rRectSrc, const Bitmap* pBmpSrc )
{
- const Size aSizePix( GetSizePixel() );
- Rectangle aRectDst( rRectDst );
- BOOL bRet = FALSE;
+ const Size aSizePix( GetSizePixel() );
+ Rectangle aRectDst( rRectDst );
+ BOOL bRet = FALSE;
aRectDst.Intersection( Rectangle( Point(), aSizePix ) );
@@ -944,11 +944,11 @@ BOOL Bitmap::CopyPixel( const Rectangle& rRectDst,
{
if( pBmpSrc && ( *pBmpSrc != *this ) )
{
- Bitmap* pSrc = (Bitmap*) pBmpSrc;
- const Size aCopySizePix( pSrc->GetSizePixel() );
- Rectangle aRectSrc( rRectSrc );
- const USHORT nSrcBitCount = pBmpSrc->GetBitCount();
- const USHORT nDstBitCount = GetBitCount();
+ Bitmap* pSrc = (Bitmap*) pBmpSrc;
+ const Size aCopySizePix( pSrc->GetSizePixel() );
+ Rectangle aRectSrc( rRectSrc );
+ const USHORT nSrcBitCount = pBmpSrc->GetBitCount();
+ const USHORT nDstBitCount = GetBitCount();
if( nSrcBitCount > nDstBitCount )
{
@@ -969,14 +969,14 @@ BOOL Bitmap::CopyPixel( const Rectangle& rRectDst,
if( nNextIndex )
{
- BitmapReadAccess* pSrcAcc = pSrc->AcquireReadAccess();
- BitmapWriteAccess* pDstAcc = AcquireWriteAccess();
+ BitmapReadAccess* pSrcAcc = pSrc->AcquireReadAccess();
+ BitmapWriteAccess* pDstAcc = AcquireWriteAccess();
if( pSrcAcc && pDstAcc )
{
- const long nSrcCount = pDstAcc->GetPaletteEntryCount();
- const long nDstCount = 1 << nDstBitCount;
- BOOL bFound;
+ const long nSrcCount = pDstAcc->GetPaletteEntryCount();
+ const long nDstCount = 1 << nDstBitCount;
+ BOOL bFound;
for( long i = 0L; ( i < nSrcCount ) && ( nNextIndex < nSrcCount ); i++ )
{
@@ -1018,16 +1018,16 @@ BOOL Bitmap::CopyPixel( const Rectangle& rRectDst,
if( pWriteAcc )
{
- const long nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
- const long nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
- const long nSrcEndX = aRectSrc.Left() + nWidth;
- const long nSrcEndY = aRectSrc.Top() + nHeight;
- long nDstY = aRectDst.Top();
+ const long nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
+ const long nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
+ const long nSrcEndX = aRectSrc.Left() + nWidth;
+ const long nSrcEndY = aRectSrc.Top() + nHeight;
+ long nDstY = aRectDst.Top();
if( pReadAcc->HasPalette() && pWriteAcc->HasPalette() )
{
- const USHORT nCount = pReadAcc->GetPaletteEntryCount();
- BYTE* pMap = new BYTE[ nCount ];
+ const USHORT nCount = pReadAcc->GetPaletteEntryCount();
+ BYTE* pMap = new BYTE[ nCount ];
// Index-Map fuer Farbtabelle
// aufbauen, da das Bild ja (relativ) farbgenau
@@ -1068,20 +1068,20 @@ BOOL Bitmap::CopyPixel( const Rectangle& rRectDst,
if( !aRectSrc.IsEmpty() && ( aRectSrc != aRectDst ) )
{
- BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();
+ BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();
if( pWriteAcc )
{
- const long nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
- const long nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
- const long nSrcX = aRectSrc.Left();
- const long nSrcY = aRectSrc.Top();
- const long nSrcEndX1 = nSrcX + nWidth - 1L;
- const long nSrcEndY1 = nSrcY + nHeight - 1L;
- const long nDstX = aRectDst.Left();
- const long nDstY = aRectDst.Top();
- const long nDstEndX1 = nDstX + nWidth - 1L;
- const long nDstEndY1 = nDstY + nHeight - 1L;
+ const long nWidth = Min( aRectSrc.GetWidth(), aRectDst.GetWidth() );
+ const long nHeight = Min( aRectSrc.GetHeight(), aRectDst.GetHeight() );
+ const long nSrcX = aRectSrc.Left();
+ const long nSrcY = aRectSrc.Top();
+ const long nSrcEndX1 = nSrcX + nWidth - 1L;
+ const long nSrcEndY1 = nSrcY + nHeight - 1L;
+ const long nDstX = aRectDst.Left();
+ const long nDstY = aRectDst.Top();
+ const long nDstEndX1 = nDstX + nWidth - 1L;
+ const long nDstEndY1 = nDstY + nHeight - 1L;
if( ( nDstX <= nSrcX ) && ( nDstY <= nSrcY ) )
{
@@ -1126,27 +1126,27 @@ BOOL Bitmap::Expand( ULONG nDX, ULONG nDY, const Color* pInitColor )
if( nDX || nDY )
{
- const Size aSizePixel( GetSizePixel() );
- const long nWidth = aSizePixel.Width();
- const long nHeight = aSizePixel.Height();
- const Size aNewSize( nWidth + nDX, nHeight + nDY );
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ const Size aSizePixel( GetSizePixel() );
+ const long nWidth = aSizePixel.Width();
+ const long nHeight = aSizePixel.Height();
+ const Size aNewSize( nWidth + nDX, nHeight + nDY );
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
if( pReadAcc )
{
- BitmapPalette aBmpPal( pReadAcc->GetPalette() );
- Bitmap aNewBmp( aNewSize, GetBitCount(), &aBmpPal );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ BitmapPalette aBmpPal( pReadAcc->GetPalette() );
+ Bitmap aNewBmp( aNewSize, GetBitCount(), &aBmpPal );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
BitmapColor aColor;
- const long nNewX = nWidth;
- const long nNewY = nHeight;
- const long nNewWidth = pWriteAcc->Width();
- const long nNewHeight = pWriteAcc->Height();
- long nX;
- long nY;
+ const long nNewX = nWidth;
+ const long nNewY = nHeight;
+ const long nNewWidth = pWriteAcc->Width();
+ const long nNewHeight = pWriteAcc->Height();
+ long nX;
+ long nY;
if( pInitColor )
aColor = pWriteAcc->GetBestMatchingColor( *pInitColor );
@@ -1183,9 +1183,9 @@ BOOL Bitmap::Expand( ULONG nDX, ULONG nDY, const Color* pInitColor )
Bitmap Bitmap::CreateMask( const Color& rTransColor, ULONG nTol ) const
{
- Bitmap aNewBmp( GetSizePixel(), 1 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
- BOOL bRet = FALSE;
+ Bitmap aNewBmp( GetSizePixel(), 1 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pWriteAcc )
{
@@ -1193,15 +1193,15 @@ Bitmap Bitmap::CreateMask( const Color& rTransColor, ULONG nTol ) const
if( pReadAcc )
{
- const long nWidth = pReadAcc->Width();
- const long nHeight = pReadAcc->Height();
- const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) );
- const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ const long nWidth = pReadAcc->Width();
+ const long nHeight = pReadAcc->Height();
+ const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) );
+ const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
if( !nTol )
{
- const BitmapColor aTest( pReadAcc->GetBestMatchingColor( rTransColor ) );
- long nX, nY, nShift;
+ const BitmapColor aTest( pReadAcc->GetBestMatchingColor( rTransColor ) );
+ long nX, nY, nShift;
if( pReadAcc->GetScanlineFormat() == BMP_FORMAT_4BIT_MSN_PAL ||
pReadAcc->GetScanlineFormat() == BMP_FORMAT_4BIT_LSN_PAL )
@@ -1210,7 +1210,7 @@ Bitmap Bitmap::CreateMask( const Color& rTransColor, ULONG nTol ) const
const BYTE cTest = aTest.GetIndex();
const long nShiftInit = ( ( pReadAcc->GetScanlineFormat() == BMP_FORMAT_4BIT_MSN_PAL ) ? 4 : 0 );
- if( pWriteAcc->GetScanlineFormat() == BMP_FORMAT_1BIT_MSB_PAL &&
+ if( pWriteAcc->GetScanlineFormat() == BMP_FORMAT_1BIT_MSB_PAL &&
aWhite.GetIndex() == 1 )
{
// optimized for 1Bit-MSB destination palette
@@ -1247,7 +1247,7 @@ Bitmap Bitmap::CreateMask( const Color& rTransColor, ULONG nTol ) const
// optimized for 8Bit source palette
const BYTE cTest = aTest.GetIndex();
- if( pWriteAcc->GetScanlineFormat() == BMP_FORMAT_1BIT_MSB_PAL &&
+ if( pWriteAcc->GetScanlineFormat() == BMP_FORMAT_1BIT_MSB_PAL &&
aWhite.GetIndex() == 1 )
{
// optimized for 1Bit-MSB destination palette
@@ -1297,13 +1297,13 @@ Bitmap Bitmap::CreateMask( const Color& rTransColor, ULONG nTol ) const
else
{
BitmapColor aCol;
- long nR, nG, nB;
- const long nMinR = MinMax( (long) rTransColor.GetRed() - nTol, 0, 255 );
- const long nMaxR = MinMax( (long) rTransColor.GetRed() + nTol, 0, 255 );
- const long nMinG = MinMax( (long) rTransColor.GetGreen() - nTol, 0, 255 );
- const long nMaxG = MinMax( (long) rTransColor.GetGreen() + nTol, 0, 255 );
- const long nMinB = MinMax( (long) rTransColor.GetBlue() - nTol, 0, 255 );
- const long nMaxB = MinMax( (long) rTransColor.GetBlue() + nTol, 0, 255 );
+ long nR, nG, nB;
+ const long nMinR = MinMax( (long) rTransColor.GetRed() - nTol, 0, 255 );
+ const long nMaxR = MinMax( (long) rTransColor.GetRed() + nTol, 0, 255 );
+ const long nMinG = MinMax( (long) rTransColor.GetGreen() - nTol, 0, 255 );
+ const long nMaxG = MinMax( (long) rTransColor.GetGreen() + nTol, 0, 255 );
+ const long nMinB = MinMax( (long) rTransColor.GetBlue() - nTol, 0, 255 );
+ const long nMaxB = MinMax( (long) rTransColor.GetBlue() + nTol, 0, 255 );
if( pReadAcc->HasPalette() )
{
@@ -1373,21 +1373,21 @@ Bitmap Bitmap::CreateMask( const Color& rTransColor, ULONG nTol ) const
Region Bitmap::CreateRegion( const Color& rColor, const Rectangle& rRect ) const
{
- Region aRegion;
- Rectangle aRect( rRect );
- BitmapReadAccess* pReadAcc = ( (Bitmap*) this )->AcquireReadAccess();
+ Region aRegion;
+ Rectangle aRect( rRect );
+ BitmapReadAccess* pReadAcc = ( (Bitmap*) this )->AcquireReadAccess();
aRect.Intersection( Rectangle( Point(), GetSizePixel() ) );
aRect.Justify();
if( pReadAcc )
{
- Rectangle aSubRect;
- const long nLeft = aRect.Left();
- const long nTop = aRect.Top();
- const long nRight = aRect.Right();
- const long nBottom = aRect.Bottom();
- const BitmapColor aMatch( pReadAcc->GetBestMatchingColor( rColor ) );
+ Rectangle aSubRect;
+ const long nLeft = aRect.Left();
+ const long nTop = aRect.Top();
+ const long nRight = aRect.Right();
+ const long nBottom = aRect.Bottom();
+ const BitmapColor aMatch( pReadAcc->GetBestMatchingColor( rColor ) );
aRegion.ImplBeginAddRect();
@@ -1426,16 +1426,16 @@ Region Bitmap::CreateRegion( const Color& rColor, const Rectangle& rRect ) const
BOOL Bitmap::Replace( const Bitmap& rMask, const Color& rReplaceColor )
{
- BitmapReadAccess* pMaskAcc = ( (Bitmap&) rMask ).AcquireReadAccess();
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pMaskAcc = ( (Bitmap&) rMask ).AcquireReadAccess();
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pMaskAcc && pAcc )
{
- const long nWidth = Min( pMaskAcc->Width(), pAcc->Width() );
- const long nHeight = Min( pMaskAcc->Height(), pAcc->Height() );
- const BitmapColor aMaskWhite( pMaskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
- BitmapColor aReplace;
+ const long nWidth = Min( pMaskAcc->Width(), pAcc->Width() );
+ const long nHeight = Min( pMaskAcc->Height(), pAcc->Height() );
+ const BitmapColor aMaskWhite( pMaskAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ BitmapColor aReplace;
if( pAcc->HasPalette() )
{
@@ -1504,17 +1504,17 @@ BOOL Bitmap::Replace( const Bitmap& rMask, const Color& rReplaceColor )
BOOL Bitmap::Replace( const AlphaMask& rAlpha, const Color& rMergeColor )
{
- Bitmap aNewBmp( GetSizePixel(), 24 );
- BitmapReadAccess* pAcc = AcquireReadAccess();
- BitmapReadAccess* pAlphaAcc = ( (AlphaMask&) rAlpha ).AcquireReadAccess();
- BitmapWriteAccess* pNewAcc = aNewBmp.AcquireWriteAccess();
- BOOL bRet = FALSE;
+ Bitmap aNewBmp( GetSizePixel(), 24 );
+ BitmapReadAccess* pAcc = AcquireReadAccess();
+ BitmapReadAccess* pAlphaAcc = ( (AlphaMask&) rAlpha ).AcquireReadAccess();
+ BitmapWriteAccess* pNewAcc = aNewBmp.AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pAcc && pAlphaAcc && pNewAcc )
{
- BitmapColor aCol;
- const long nWidth = Min( pAlphaAcc->Width(), pAcc->Width() );
- const long nHeight = Min( pAlphaAcc->Height(), pAcc->Height() );
+ BitmapColor aCol;
+ const long nWidth = Min( pAlphaAcc->Width(), pAcc->Width() );
+ const long nHeight = Min( pAlphaAcc->Height(), pAcc->Height() );
for( long nY = 0L; nY < nHeight; nY++ )
{
@@ -1534,8 +1534,8 @@ BOOL Bitmap::Replace( const AlphaMask& rAlpha, const Color& rMergeColor )
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -1555,17 +1555,17 @@ BOOL Bitmap::Replace( const Color& rSearchColor, const Color& rReplaceColor, ULO
if( 1 == GetBitCount() )
Convert( BMP_CONVERSION_4BIT_COLORS );
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pAcc )
{
- const long nMinR = MinMax( (long) rSearchColor.GetRed() - nTol, 0, 255 );
- const long nMaxR = MinMax( (long) rSearchColor.GetRed() + nTol, 0, 255 );
- const long nMinG = MinMax( (long) rSearchColor.GetGreen() - nTol, 0, 255 );
- const long nMaxG = MinMax( (long) rSearchColor.GetGreen() + nTol, 0, 255 );
- const long nMinB = MinMax( (long) rSearchColor.GetBlue() - nTol, 0, 255 );
- const long nMaxB = MinMax( (long) rSearchColor.GetBlue() + nTol, 0, 255 );
+ const long nMinR = MinMax( (long) rSearchColor.GetRed() - nTol, 0, 255 );
+ const long nMaxR = MinMax( (long) rSearchColor.GetRed() + nTol, 0, 255 );
+ const long nMinG = MinMax( (long) rSearchColor.GetGreen() - nTol, 0, 255 );
+ const long nMaxG = MinMax( (long) rSearchColor.GetGreen() + nTol, 0, 255 );
+ const long nMinB = MinMax( (long) rSearchColor.GetBlue() - nTol, 0, 255 );
+ const long nMaxB = MinMax( (long) rSearchColor.GetBlue() + nTol, 0, 255 );
if( pAcc->HasPalette() )
{
@@ -1583,8 +1583,8 @@ BOOL Bitmap::Replace( const Color& rSearchColor, const Color& rReplaceColor, ULO
}
else
{
- BitmapColor aCol;
- const BitmapColor aReplace( pAcc->GetBestMatchingColor( rReplaceColor ) );
+ BitmapColor aCol;
+ const BitmapColor aReplace( pAcc->GetBestMatchingColor( rReplaceColor ) );
for( long nY = 0L, nHeight = pAcc->Height(); nY < nHeight; nY++ )
{
@@ -1619,19 +1619,19 @@ BOOL Bitmap::Replace( const Color* pSearchColors, const Color* pReplaceColors,
if( 1 == GetBitCount() )
Convert( BMP_CONVERSION_4BIT_COLORS );
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pAcc )
{
- long* pMinR = new long[ nColorCount ];
- long* pMaxR = new long[ nColorCount ];
- long* pMinG = new long[ nColorCount ];
- long* pMaxG = new long[ nColorCount ];
- long* pMinB = new long[ nColorCount ];
- long* pMaxB = new long[ nColorCount ];
- long* pTols;
- ULONG i;
+ long* pMinR = new long[ nColorCount ];
+ long* pMaxR = new long[ nColorCount ];
+ long* pMinG = new long[ nColorCount ];
+ long* pMaxG = new long[ nColorCount ];
+ long* pMinB = new long[ nColorCount ];
+ long* pMaxB = new long[ nColorCount ];
+ long* pTols;
+ ULONG i;
if( !_pTols )
{
@@ -1643,8 +1643,8 @@ BOOL Bitmap::Replace( const Color* pSearchColors, const Color* pReplaceColors,
for( i = 0UL; i < nColorCount; i++ )
{
- const Color& rCol = pSearchColors[ i ];
- const long nTol = pTols[ i ];
+ const Color& rCol = pSearchColors[ i ];
+ const long nTol = pTols[ i ];
pMinR[ i ] = MinMax( (long) rCol.GetRed() - nTol, 0, 255 );
pMaxR[ i ] = MinMax( (long) rCol.GetRed() + nTol, 0, 255 );
@@ -1674,8 +1674,8 @@ BOOL Bitmap::Replace( const Color* pSearchColors, const Color* pReplaceColors,
}
else
{
- BitmapColor aCol;
- BitmapColor* pReplaces = new BitmapColor[ nColorCount ];
+ BitmapColor aCol;
+ BitmapColor* pReplaces = new BitmapColor[ nColorCount ];
for( i = 0UL; i < nColorCount; i++ )
pReplaces[ i ] = pAcc->GetBestMatchingColor( pReplaceColors[ i ] );
@@ -1742,19 +1742,19 @@ Bitmap Bitmap::CreateDisplayBitmap( OutputDevice* pDisplay )
Bitmap Bitmap::GetColorTransformedBitmap( BmpColorMode eColorMode ) const
{
Bitmap aRet;
-
+
if( BMP_COLOR_HIGHCONTRAST == eColorMode )
{
Color* pSrcColors = NULL;
Color* pDstColors = NULL;
ULONG nColorCount = 0;
-
+
aRet = *this;
Image::GetColorTransformArrays( (ImageColorTransform) eColorMode, pSrcColors, pDstColors, nColorCount );
if( nColorCount && pSrcColors && pDstColors )
- aRet.Replace( pSrcColors, pDstColors, nColorCount );
+ aRet.Replace( pSrcColors, pDstColors, nColorCount );
delete[] pSrcColors;
delete[] pDstColors;
@@ -1765,7 +1765,7 @@ Bitmap Bitmap::GetColorTransformedBitmap( BmpColorMode eColorMode ) const
aRet = *this;
aRet.MakeMono( BMP_COLOR_MONOCHROME_THRESHOLD );
}
-
+
return aRet;
}
@@ -1773,20 +1773,20 @@ Bitmap Bitmap::GetColorTransformedBitmap( BmpColorMode eColorMode ) const
BOOL Bitmap::CombineSimple( const Bitmap& rMask, BmpCombine eCombine )
{
- BitmapReadAccess* pMaskAcc = ( (Bitmap&) rMask ).AcquireReadAccess();
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pMaskAcc = ( (Bitmap&) rMask ).AcquireReadAccess();
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pMaskAcc && pAcc )
{
- const long nWidth = Min( pMaskAcc->Width(), pAcc->Width() );
- const long nHeight = Min( pMaskAcc->Height(), pAcc->Height() );
- const Color aColBlack( COL_BLACK );
- BitmapColor aPixel;
- BitmapColor aMaskPixel;
- const BitmapColor aWhite( pAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
- const BitmapColor aBlack( pAcc->GetBestMatchingColor( aColBlack ) );
- const BitmapColor aMaskBlack( pMaskAcc->GetBestMatchingColor( aColBlack ) );
+ const long nWidth = Min( pMaskAcc->Width(), pAcc->Width() );
+ const long nHeight = Min( pMaskAcc->Height(), pAcc->Height() );
+ const Color aColBlack( COL_BLACK );
+ BitmapColor aPixel;
+ BitmapColor aMaskPixel;
+ const BitmapColor aWhite( pAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ const BitmapColor aBlack( pAcc->GetBestMatchingColor( aColBlack ) );
+ const BitmapColor aMaskBlack( pMaskAcc->GetBestMatchingColor( aColBlack ) );
switch( eCombine )
{
@@ -1920,19 +1920,19 @@ BOOL Bitmap::Blend( const AlphaMask& rAlpha, const Color& rBackgroundColor )
if( GetBitCount() <= 8 )
Convert( BMP_CONVERSION_24BIT );
- BitmapReadAccess* pAlphaAcc = const_cast<AlphaMask&>(rAlpha).AcquireReadAccess();
- BitmapWriteAccess* pAcc = AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pAlphaAcc = const_cast<AlphaMask&>(rAlpha).AcquireReadAccess();
+ BitmapWriteAccess* pAcc = AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pAlphaAcc && pAcc )
{
- const long nWidth = Min( pAlphaAcc->Width(), pAcc->Width() );
- const long nHeight = Min( pAlphaAcc->Height(), pAcc->Height() );
+ const long nWidth = Min( pAlphaAcc->Width(), pAcc->Width() );
+ const long nHeight = Min( pAlphaAcc->Height(), pAcc->Height() );
for( long nY = 0L; nY < nHeight; ++nY )
for( long nX = 0L; nX < nWidth; ++nX )
- pAcc->SetPixel( nY, nX,
- pAcc->GetPixel( nY, nX ).Merge( rBackgroundColor,
+ pAcc->SetPixel( nY, nX,
+ pAcc->GetPixel( nY, nX ).Merge( rBackgroundColor,
255 - pAlphaAcc->GetPixel( nY, nX ) ) );
bRet = TRUE;
@@ -1962,7 +1962,7 @@ bool Bitmap::GetSystemData( BitmapSystemData& rData ) const
if( pSalBitmap )
bRet = pSalBitmap->GetSystemData( rData );
}
-
+
return bRet;
}
diff --git a/vcl/source/gdi/bitmap2.cxx b/vcl/source/gdi/bitmap2.cxx
index e11671e0f2c6..3fc6f86ea7f4 100644
--- a/vcl/source/gdi/bitmap2.cxx
+++ b/vcl/source/gdi/bitmap2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,8 +43,8 @@
// - Defines -
// -----------
-#define DIBCOREHEADERSIZE ( 12UL )
-#define DIBINFOHEADERSIZE ( sizeof( DIBInfoHeader ) )
+#define DIBCOREHEADERSIZE ( 12UL )
+#define DIBINFOHEADERSIZE ( sizeof( DIBInfoHeader ) )
#define BITMAPINFOHEADER 0x28
#define SETPIXEL4( pBuf, nX, cChar )( (pBuf)[ (nX) >> 1 ] |= ( (nX) & 1 ) ? ( cChar ): (cChar) << 4 );
@@ -53,12 +53,12 @@
// - Compression defines
// ----------------------
-#define COMPRESS_OWN ('S'|('D'<<8UL))
-#define COMPRESS_NONE ( 0UL )
-#define RLE_8 ( 1UL )
-#define RLE_4 ( 2UL )
-#define BITFIELDS ( 3UL )
-#define ZCOMPRESS ( COMPRESS_OWN | 0x01000000UL ) /* == 'SD01' (binary) */
+#define COMPRESS_OWN ('S'|('D'<<8UL))
+#define COMPRESS_NONE ( 0UL )
+#define RLE_8 ( 1UL )
+#define RLE_4 ( 2UL )
+#define BITFIELDS ( 3UL )
+#define ZCOMPRESS ( COMPRESS_OWN | 0x01000000UL ) /* == 'SD01' (binary) */
// -----------------
// - DIBInfoHeader -
@@ -66,17 +66,17 @@
struct DIBInfoHeader
{
- sal_uInt32 nSize;
- sal_Int32 nWidth;
- sal_Int32 nHeight;
- sal_uInt16 nPlanes;
- sal_uInt16 nBitCount;
- sal_uInt32 nCompression;
- sal_uInt32 nSizeImage;
- sal_Int32 nXPelsPerMeter;
- sal_Int32 nYPelsPerMeter;
- sal_uInt32 nColsUsed;
- sal_uInt32 nColsImportant;
+ sal_uInt32 nSize;
+ sal_Int32 nWidth;
+ sal_Int32 nHeight;
+ sal_uInt16 nPlanes;
+ sal_uInt16 nBitCount;
+ sal_uInt32 nCompression;
+ sal_uInt32 nSizeImage;
+ sal_Int32 nXPelsPerMeter;
+ sal_Int32 nYPelsPerMeter;
+ sal_uInt32 nColsUsed;
+ sal_uInt32 nColsImportant;
DIBInfoHeader() :
nSize( 0UL ),
@@ -132,10 +132,10 @@ SvStream& operator<<( SvStream& rOStm, const Bitmap& rBitmap )
BOOL Bitmap::Read( SvStream& rIStm, BOOL bFileHeader, BOOL bIsMSOFormat )
{
- const USHORT nOldFormat = rIStm.GetNumberFormatInt();
- const ULONG nOldPos = rIStm.Tell();
- ULONG nOffset = 0UL;
- BOOL bRet = FALSE;
+ const USHORT nOldFormat = rIStm.GetNumberFormatInt();
+ const ULONG nOldPos = rIStm.Tell();
+ ULONG nOffset = 0UL;
+ BOOL bRet = FALSE;
rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
@@ -164,26 +164,26 @@ BOOL Bitmap::Read( SvStream& rIStm, BOOL bFileHeader, BOOL bIsMSOFormat )
BOOL Bitmap::ImplReadDIB( SvStream& rIStm, Bitmap& rBmp, ULONG nOffset, BOOL bIsMSOFormat )
{
- DIBInfoHeader aHeader;
- const ULONG nStmPos = rIStm.Tell();
- BOOL bRet = FALSE;
- sal_Bool bTopDown = sal_False;
+ DIBInfoHeader aHeader;
+ const ULONG nStmPos = rIStm.Tell();
+ BOOL bRet = FALSE;
+ sal_Bool bTopDown = sal_False;
if( ImplReadDIBInfoHeader( rIStm, aHeader, bTopDown, bIsMSOFormat ) && aHeader.nWidth && aHeader.nHeight && aHeader.nBitCount )
{
const USHORT nBitCount( discretizeBitcount(aHeader.nBitCount) );
- const Size aSizePixel( aHeader.nWidth, abs(aHeader.nHeight) );
- BitmapPalette aDummyPal;
- Bitmap aNewBmp( aSizePixel, nBitCount, &aDummyPal );
- BitmapWriteAccess* pAcc = aNewBmp.AcquireWriteAccess();
+ const Size aSizePixel( aHeader.nWidth, abs(aHeader.nHeight) );
+ BitmapPalette aDummyPal;
+ Bitmap aNewBmp( aSizePixel, nBitCount, &aDummyPal );
+ BitmapWriteAccess* pAcc = aNewBmp.AcquireWriteAccess();
if( pAcc )
{
- USHORT nColors;
- SvStream* pIStm;
- SvMemoryStream* pMemStm = NULL;
- BYTE* pData = NULL;
+ USHORT nColors;
+ SvStream* pIStm;
+ SvMemoryStream* pMemStm = NULL;
+ BYTE* pData = NULL;
if( nBitCount <= 8 )
{
@@ -197,24 +197,24 @@ BOOL Bitmap::ImplReadDIB( SvStream& rIStm, Bitmap& rBmp, ULONG nOffset, BOOL bIs
if( ZCOMPRESS == aHeader.nCompression )
{
- ZCodec aCodec;
+ ZCodec aCodec;
sal_uInt32 nCodedSize, nUncodedSize;
- ULONG nCodedPos;
+ ULONG nCodedPos;
// read coding information
rIStm >> nCodedSize >> nUncodedSize >> aHeader.nCompression;
pData = (BYTE*) rtl_allocateMemory( nUncodedSize );
-
+
// decode buffer
nCodedPos = rIStm.Tell();
aCodec.BeginCompression();
aCodec.Read( rIStm, pData, nUncodedSize );
aCodec.EndCompression();
-
+
// skip unread bytes from coded buffer
rIStm.SeekRel( nCodedSize - ( rIStm.Tell() - nCodedPos ) );
-
- // set decoded bytes to memory stream,
+
+ // set decoded bytes to memory stream,
// from which we will read the bitmap data
pIStm = pMemStm = new SvMemoryStream;
pMemStm->SetBuffer( (char*) pData, nUncodedSize, FALSE, nUncodedSize );
@@ -251,7 +251,7 @@ BOOL Bitmap::ImplReadDIB( SvStream& rIStm, Bitmap& rBmp, ULONG nOffset, BOOL bIs
if( pData )
rtl_freeMemory( pData );
-
+
delete pMemStm;
aNewBmp.ReleaseAccess( pAcc );
@@ -267,9 +267,9 @@ BOOL Bitmap::ImplReadDIB( SvStream& rIStm, Bitmap& rBmp, ULONG nOffset, BOOL bIs
BOOL Bitmap::ImplReadDIBFileHeader( SvStream& rIStm, ULONG& rOffset )
{
- UINT32 nTmp32;
- UINT16 nTmp16 = 0;
- BOOL bRet = FALSE;
+ UINT32 nTmp32;
+ UINT16 nTmp16 = 0;
+ BOOL bRet = FALSE;
rIStm >> nTmp16;
@@ -407,7 +407,7 @@ BOOL Bitmap::ImplReadDIBInfoHeader( SvStream& rIStm, DIBInfoHeader& rHeader, sal
if ( rHeader.nWidth < 0 )
rIStm.SetError( SVSTREAM_FILEFORMAT_ERROR );
-
+
// #144105# protect a little against damaged files
if( rHeader.nSizeImage > ( 16 * static_cast< sal_uInt32 >( rHeader.nWidth * rHeader.nHeight ) ) )
rHeader.nSizeImage = 0;
@@ -419,9 +419,9 @@ BOOL Bitmap::ImplReadDIBInfoHeader( SvStream& rIStm, DIBInfoHeader& rHeader, sal
BOOL Bitmap::ImplReadDIBPalette( SvStream& rIStm, BitmapWriteAccess& rAcc, BOOL bQuad )
{
- const USHORT nColors = rAcc.GetPaletteEntryCount();
- const ULONG nPalSize = nColors * ( bQuad ? 4UL : 3UL );
- BitmapColor aPalColor;
+ const USHORT nColors = rAcc.GetPaletteEntryCount();
+ const ULONG nPalSize = nColors * ( bQuad ? 4UL : 3UL );
+ BitmapColor aPalColor;
BYTE* pEntries = new BYTE[ nPalSize ];
rIStm.Read( pEntries, nPalSize );
@@ -449,12 +449,12 @@ BOOL Bitmap::ImplReadDIBPalette( SvStream& rIStm, BitmapWriteAccess& rAcc, BOOL
BOOL Bitmap::ImplReadDIBBits( SvStream& rIStm, DIBInfoHeader& rHeader, BitmapWriteAccess& rAcc, sal_Bool bTopDown )
{
const ULONG nAlignedWidth = AlignedWidth4Bytes( rHeader.nWidth * rHeader.nBitCount );
- UINT32 nRMask = 0;
- UINT32 nGMask = 0;
- UINT32 nBMask = 0;
- BOOL bNative;
- BOOL bTCMask = ( rHeader.nBitCount == 16 ) || ( rHeader.nBitCount == 32 );
- BOOL bRLE = ( RLE_8 == rHeader.nCompression && rHeader.nBitCount == 8 ) ||
+ UINT32 nRMask = 0;
+ UINT32 nGMask = 0;
+ UINT32 nBMask = 0;
+ BOOL bNative;
+ BOOL bTCMask = ( rHeader.nBitCount == 16 ) || ( rHeader.nBitCount == 32 );
+ BOOL bRLE = ( RLE_8 == rHeader.nCompression && rHeader.nBitCount == 8 ) ||
( RLE_4 == rHeader.nCompression && rHeader.nBitCount == 4 );
// Is native format?
@@ -526,9 +526,9 @@ BOOL Bitmap::ImplReadDIBBits( SvStream& rIStm, DIBInfoHeader& rHeader, BitmapWri
}
else
{
- const long nWidth = rHeader.nWidth;
- const long nHeight = abs(rHeader.nHeight);
- BYTE* pBuf = new BYTE[ nAlignedWidth ];
+ const long nWidth = rHeader.nWidth;
+ const long nHeight = abs(rHeader.nHeight);
+ BYTE* pBuf = new BYTE[ nAlignedWidth ];
// true color DIB's can have a (optimization) palette
if( rHeader.nColsUsed && rHeader.nBitCount > 8 )
@@ -537,13 +537,13 @@ BOOL Bitmap::ImplReadDIBBits( SvStream& rIStm, DIBInfoHeader& rHeader, BitmapWri
const long nI = bTopDown ? 1 : -1;
long nY = bTopDown ? 0 : nHeight - 1;
long nCount = nHeight;
-
+
switch( rHeader.nBitCount )
{
case( 1 ):
{
- BYTE* pTmp;
- BYTE cTmp;
+ BYTE* pTmp;
+ BYTE cTmp;
for( ; nCount--; nY += nI )
{
@@ -566,8 +566,8 @@ BOOL Bitmap::ImplReadDIBBits( SvStream& rIStm, DIBInfoHeader& rHeader, BitmapWri
case( 4 ):
{
- BYTE* pTmp;
- BYTE cTmp;
+ BYTE* pTmp;
+ BYTE cTmp;
for( ; nCount--; nY += nI )
{
@@ -590,7 +590,7 @@ BOOL Bitmap::ImplReadDIBBits( SvStream& rIStm, DIBInfoHeader& rHeader, BitmapWri
case( 8 ):
{
- BYTE* pTmp;
+ BYTE* pTmp;
for( ; nCount--; nY += nI )
{
@@ -604,9 +604,9 @@ BOOL Bitmap::ImplReadDIBBits( SvStream& rIStm, DIBInfoHeader& rHeader, BitmapWri
case( 16 ):
{
- ColorMask aMask( nRMask, nGMask, nBMask );
+ ColorMask aMask( nRMask, nGMask, nBMask );
BitmapColor aColor;
- UINT16* pTmp16;
+ UINT16* pTmp16;
for( ; nCount--; nY += nI )
{
@@ -624,7 +624,7 @@ BOOL Bitmap::ImplReadDIBBits( SvStream& rIStm, DIBInfoHeader& rHeader, BitmapWri
case( 24 ):
{
BitmapColor aPixelColor;
- BYTE* pTmp;
+ BYTE* pTmp;
for( ; nCount--; nY += nI )
{
@@ -643,9 +643,9 @@ BOOL Bitmap::ImplReadDIBBits( SvStream& rIStm, DIBInfoHeader& rHeader, BitmapWri
case( 32 ):
{
- ColorMask aMask( nRMask, nGMask, nBMask );
+ ColorMask aMask( nRMask, nGMask, nBMask );
BitmapColor aColor;
- UINT32* pTmp32;
+ UINT32* pTmp32;
for( ; nCount--; nY += nI )
{
@@ -673,14 +673,14 @@ BOOL Bitmap::Write( SvStream& rOStm, BOOL bCompressed, BOOL bFileHeader ) const
{
DBG_ASSERT( mpImpBmp, "Empty Bitmaps can't be saved" );
- const Size aSizePix( GetSizePixel() );
- BOOL bRet = FALSE;
+ const Size aSizePix( GetSizePixel() );
+ BOOL bRet = FALSE;
if( mpImpBmp && aSizePix.Width() && aSizePix.Height() )
{
- BitmapReadAccess* pAcc = ( (Bitmap*) this)->AcquireReadAccess();
- const USHORT nOldFormat = rOStm.GetNumberFormatInt();
- const ULONG nOldPos = rOStm.Tell();
+ BitmapReadAccess* pAcc = ( (Bitmap*) this)->AcquireReadAccess();
+ const USHORT nOldFormat = rOStm.GetNumberFormatInt();
+ const ULONG nOldPos = rOStm.Tell();
rOStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
@@ -713,12 +713,12 @@ BOOL Bitmap::Write( SvStream& rOStm, BOOL bCompressed, BOOL bFileHeader ) const
BOOL Bitmap::ImplWriteDIB( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bCompressed ) const
{
- const MapMode aMapPixel( MAP_PIXEL );
- DIBInfoHeader aHeader;
- ULONG nImageSizePos;
- ULONG nEndPos;
- sal_uInt32 nCompression = 0;
- BOOL bRet = FALSE;
+ const MapMode aMapPixel( MAP_PIXEL );
+ DIBInfoHeader aHeader;
+ ULONG nImageSizePos;
+ ULONG nEndPos;
+ sal_uInt32 nCompression = 0;
+ BOOL bRet = FALSE;
aHeader.nSize = DIBINFOHEADERSIZE;
aHeader.nWidth = rAcc.Width();
@@ -729,7 +729,7 @@ BOOL Bitmap::ImplWriteDIB( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bCompre
{
aHeader.nBitCount = ( rAcc.GetScanlineFormat() == BMP_FORMAT_16BIT_TC_LSB_MASK ) ? 16 : 32;
aHeader.nSizeImage = rAcc.Height() * rAcc.GetScanlineSize();
-
+
nCompression = BITFIELDS;
}
else
@@ -746,7 +746,7 @@ BOOL Bitmap::ImplWriteDIB( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bCompre
const UINT16 nBitCount( sal::static_int_cast<UINT16>(rAcc.GetBitCount()) );
aHeader.nBitCount = discretizeBitcount( nBitCount );
- aHeader.nSizeImage = rAcc.Height() *
+ aHeader.nSizeImage = rAcc.Height() *
AlignedWidth4Bytes( rAcc.Width()*aHeader.nBitCount );
if( bCompressed )
@@ -760,7 +760,7 @@ BOOL Bitmap::ImplWriteDIB( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bCompre
nCompression = COMPRESS_NONE;
}
- if( ( rOStm.GetCompressMode() & COMPRESSMODE_ZBITMAP ) &&
+ if( ( rOStm.GetCompressMode() & COMPRESSMODE_ZBITMAP ) &&
( rOStm.GetVersion() >= SOFFICE_FILEFORMAT_40 ) )
{
aHeader.nCompression = ZCOMPRESS;
@@ -776,10 +776,10 @@ BOOL Bitmap::ImplWriteDIB( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bCompre
// MapMode is integer-based, and suffers from roundoffs,
// especially if maPrefSize is small. Trying to circumvent
// that by performing part of the math in floating point.
- const Size aScale100000(
+ const Size aScale100000(
OutputDevice::LogicToLogic( Size(100000L,
- 100000L),
- MAP_100TH_MM,
+ 100000L),
+ MAP_100TH_MM,
maPrefMapMode ) );
const double fBmpWidthM((double)maPrefSize.Width() / aScale100000.Width() );
const double fBmpHeightM((double)maPrefSize.Height() / aScale100000.Height() );
@@ -811,15 +811,15 @@ BOOL Bitmap::ImplWriteDIB( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bCompre
if( aHeader.nCompression == ZCOMPRESS )
{
- ZCodec aCodec;
- SvMemoryStream aMemStm( aHeader.nSizeImage + 4096, 65535 );
- ULONG nCodedPos = rOStm.Tell(), nLastPos;
- sal_uInt32 nCodedSize, nUncodedSize;
+ ZCodec aCodec;
+ SvMemoryStream aMemStm( aHeader.nSizeImage + 4096, 65535 );
+ ULONG nCodedPos = rOStm.Tell(), nLastPos;
+ sal_uInt32 nCodedSize, nUncodedSize;
// write uncoded data palette
if( aHeader.nColsUsed )
ImplWriteDIBPalette( aMemStm, rAcc );
-
+
// write uncoded bits
bRet = ImplWriteDIBBits( aMemStm, rAcc, nCompression, aHeader.nSizeImage );
@@ -828,12 +828,12 @@ BOOL Bitmap::ImplWriteDIB( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bCompre
// seek over compress info
rOStm.SeekRel( 12 );
-
+
// write compressed data
aCodec.BeginCompression( 3 );
aCodec.Write( rOStm, (BYTE*) aMemStm.GetData(), nUncodedSize );
aCodec.EndCompression();
-
+
// update compress info ( coded size, uncoded size, uncoded compression )
nCodedSize = ( nLastPos = rOStm.Tell() ) - nCodedPos - 12;
rOStm.Seek( nCodedPos );
@@ -863,9 +863,9 @@ BOOL Bitmap::ImplWriteDIB( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bCompre
BOOL Bitmap::ImplWriteDIBFileHeader( SvStream& rOStm, BitmapReadAccess& rAcc )
{
- UINT32 nPalCount = ( rAcc.HasPalette() ? rAcc.GetPaletteEntryCount() :
+ UINT32 nPalCount = ( rAcc.HasPalette() ? rAcc.GetPaletteEntryCount() :
isBitfieldCompression( rAcc.GetScanlineFormat() ) ? 3UL : 0UL );
- UINT32 nOffset = 14 + DIBINFOHEADERSIZE + nPalCount * 4UL;
+ UINT32 nOffset = 14 + DIBINFOHEADERSIZE + nPalCount * 4UL;
rOStm << (UINT16) 0x4D42;
rOStm << (UINT32) ( nOffset + ( rAcc.Height() * rAcc.GetScanlineSize() ) );
@@ -880,11 +880,11 @@ BOOL Bitmap::ImplWriteDIBFileHeader( SvStream& rOStm, BitmapReadAccess& rAcc )
BOOL Bitmap::ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess& rAcc )
{
- const USHORT nColors = rAcc.GetPaletteEntryCount();
- const ULONG nPalSize = nColors * 4UL;
- BYTE* pEntries = new BYTE[ nPalSize ];
- BYTE* pTmpEntry = pEntries;
- BitmapColor aPalColor;
+ const USHORT nColors = rAcc.GetPaletteEntryCount();
+ const ULONG nPalSize = nColors * 4UL;
+ BYTE* pEntries = new BYTE[ nPalSize ];
+ BYTE* pTmpEntry = pEntries;
+ BitmapColor aPalColor;
for( USHORT i = 0; i < nColors; i++ )
{
@@ -909,8 +909,8 @@ BOOL Bitmap::ImplWriteDIBBits( SvStream& rOStm, BitmapReadAccess& rAcc,
{
if( BITFIELDS == nCompression )
{
- const ColorMask& rMask = rAcc.GetColorMask();
- SVBT32 aVal32;
+ const ColorMask& rMask = rAcc.GetColorMask();
+ SVBT32 aVal32;
UInt32ToSVBT32( rMask.GetRedMask(), aVal32 );
rOStm.Write( (BYTE*) aVal32, 4UL );
@@ -947,9 +947,9 @@ BOOL Bitmap::ImplWriteDIBBits( SvStream& rOStm, BitmapReadAccess& rAcc,
// #i59239# discretize bitcount for aligned width to 1,4,8,24
// (other cases are not written below)
const USHORT nBitCount( sal::static_int_cast<USHORT>(rAcc.GetBitCount()) );
- const ULONG nAlignedWidth = AlignedWidth4Bytes( rAcc.Width() *
+ const ULONG nAlignedWidth = AlignedWidth4Bytes( rAcc.Width() *
discretizeBitcount(nBitCount));
- BOOL bNative = FALSE;
+ BOOL bNative = FALSE;
switch( rAcc.GetScanlineFormat() )
{
@@ -973,11 +973,11 @@ BOOL Bitmap::ImplWriteDIBBits( SvStream& rOStm, BitmapReadAccess& rAcc,
rOStm.Write( rAcc.GetBuffer(), nAlignedWidth * rAcc.Height() );
else
{
- const long nWidth = rAcc.Width();
- const long nHeight = rAcc.Height();
- BYTE* pBuf = new BYTE[ nAlignedWidth ];
- BYTE* pTmp;
- BYTE cTmp;
+ const long nWidth = rAcc.Width();
+ const long nHeight = rAcc.Height();
+ BYTE* pBuf = new BYTE[ nAlignedWidth ];
+ BYTE* pTmp;
+ BYTE cTmp;
switch( nBitCount )
{
@@ -1083,14 +1083,14 @@ BOOL Bitmap::ImplWriteDIBBits( SvStream& rOStm, BitmapReadAccess& rAcc,
void Bitmap::ImplDecodeRLE( BYTE* pBuffer, DIBInfoHeader& rHeader,
BitmapWriteAccess& rAcc, BOOL bRLE4 )
{
- Scanline pRLE = pBuffer;
- long nY = abs(rHeader.nHeight) - 1L;
- const ULONG nWidth = rAcc.Width();
- ULONG nCountByte;
- ULONG nRunByte;
- ULONG nX = 0UL;
- BYTE cTmp;
- BOOL bEndDecoding = FALSE;
+ Scanline pRLE = pBuffer;
+ long nY = abs(rHeader.nHeight) - 1L;
+ const ULONG nWidth = rAcc.Width();
+ ULONG nCountByte;
+ ULONG nRunByte;
+ ULONG nX = 0UL;
+ BYTE cTmp;
+ BOOL bEndDecoding = FALSE;
do
{
@@ -1107,7 +1107,7 @@ void Bitmap::ImplDecodeRLE( BYTE* pBuffer, DIBInfoHeader& rHeader,
for( ULONG i = 0UL; i < nCountByte; i++ )
{
cTmp = *pRLE++;
-
+
if( nX < nWidth )
rAcc.SetPixel( nY, nX++, cTmp >> 4 );
@@ -1189,15 +1189,15 @@ BOOL Bitmap::ImplWriteRLE( SvStream& rOStm, BitmapReadAccess& rAcc, BOOL bRLE4 )
{
const ULONG nWidth = rAcc.Width();
const ULONG nHeight = rAcc.Height();
- ULONG nX;
- ULONG nSaveIndex;
- ULONG nCount;
- ULONG nBufCount;
- BYTE* pBuf = new BYTE[ ( nWidth << 1 ) + 2 ];
- BYTE* pTmp;
- BYTE cPix;
- BYTE cLast;
- BOOL bFound;
+ ULONG nX;
+ ULONG nSaveIndex;
+ ULONG nCount;
+ ULONG nBufCount;
+ BYTE* pBuf = new BYTE[ ( nWidth << 1 ) + 2 ];
+ BYTE* pTmp;
+ BYTE cPix;
+ BYTE cLast;
+ BOOL bFound;
for ( long nY = nHeight - 1L; nY >= 0L; nY-- )
{
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 112ef297dc92..fcd60f2dcda5 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,36 +41,36 @@
// - Defines -
// -----------
-#define RGB15( _def_cR, _def_cG, _def_cB ) (((ULONG)(_def_cR)<<10UL)|((ULONG)(_def_cG)<<5UL)|(ULONG)(_def_cB))
-#define GAMMA( _def_cVal, _def_InvGamma ) ((BYTE)MinMax(FRound(pow( _def_cVal/255.0,_def_InvGamma)*255.0),0L,255L))
-
-#define CALC_ERRORS \
- nTemp = p1T[nX++] >> 12; \
- nBErr = MinMax( nTemp, 0, 255 ); \
- nBErr = nBErr - FloydIndexMap[ nBC = FloydMap[nBErr] ]; \
- nTemp = p1T[nX++] >> 12; \
- nGErr = MinMax( nTemp, 0, 255 ); \
- nGErr = nGErr - FloydIndexMap[ nGC = FloydMap[nGErr] ]; \
- nTemp = p1T[nX] >> 12; \
- nRErr = MinMax( nTemp, 0, 255 ); \
+#define RGB15( _def_cR, _def_cG, _def_cB ) (((ULONG)(_def_cR)<<10UL)|((ULONG)(_def_cG)<<5UL)|(ULONG)(_def_cB))
+#define GAMMA( _def_cVal, _def_InvGamma ) ((BYTE)MinMax(FRound(pow( _def_cVal/255.0,_def_InvGamma)*255.0),0L,255L))
+
+#define CALC_ERRORS \
+ nTemp = p1T[nX++] >> 12; \
+ nBErr = MinMax( nTemp, 0, 255 ); \
+ nBErr = nBErr - FloydIndexMap[ nBC = FloydMap[nBErr] ]; \
+ nTemp = p1T[nX++] >> 12; \
+ nGErr = MinMax( nTemp, 0, 255 ); \
+ nGErr = nGErr - FloydIndexMap[ nGC = FloydMap[nGErr] ]; \
+ nTemp = p1T[nX] >> 12; \
+ nRErr = MinMax( nTemp, 0, 255 ); \
nRErr = nRErr - FloydIndexMap[ nRC = FloydMap[nRErr] ];
-#define CALC_TABLES3 \
- p2T[nX++] += FloydError3[nBErr]; \
- p2T[nX++] += FloydError3[nGErr]; \
+#define CALC_TABLES3 \
+ p2T[nX++] += FloydError3[nBErr]; \
+ p2T[nX++] += FloydError3[nGErr]; \
p2T[nX++] += FloydError3[nRErr];
-#define CALC_TABLES5 \
- p2T[nX++] += FloydError5[nBErr]; \
- p2T[nX++] += FloydError5[nGErr]; \
+#define CALC_TABLES5 \
+ p2T[nX++] += FloydError5[nBErr]; \
+ p2T[nX++] += FloydError5[nGErr]; \
p2T[nX++] += FloydError5[nRErr];
-#define CALC_TABLES7 \
- p1T[++nX] += FloydError7[nBErr]; \
- p2T[nX++] += FloydError1[nBErr]; \
- p1T[nX] += FloydError7[nGErr]; \
- p2T[nX++] += FloydError1[nGErr]; \
- p1T[nX] += FloydError7[nRErr]; \
+#define CALC_TABLES7 \
+ p1T[++nX] += FloydError7[nBErr]; \
+ p2T[nX++] += FloydError1[nBErr]; \
+ p1T[nX] += FloydError7[nGErr]; \
+ p2T[nX++] += FloydError1[nGErr]; \
+ p1T[nX] += FloydError7[nRErr]; \
p2T[nX] += FloydError1[nRErr];
// -----------
@@ -245,12 +245,12 @@ long FloydIndexMap[6] =
void ImplCreateDitherMatrix( BYTE (*pDitherMatrix)[16][16] )
{
- double fVal = 3.125;
- const double fVal16 = fVal / 16.;
- long i, j, k, l;
- USHORT pMtx[ 16 ][ 16 ];
- USHORT nMax = 0;
- static BYTE pMagic[4][4] = { { 0, 14, 3, 13, },
+ double fVal = 3.125;
+ const double fVal16 = fVal / 16.;
+ long i, j, k, l;
+ USHORT pMtx[ 16 ][ 16 ];
+ USHORT nMax = 0;
+ static BYTE pMagic[4][4] = { { 0, 14, 3, 13, },
{11, 5, 8, 6, },
{12, 2, 15, 1, },
{7, 9, 4, 10 } };
@@ -275,8 +275,8 @@ void ImplCreateDitherMatrix( BYTE (*pDitherMatrix)[16][16] )
BOOL Bitmap::Convert( BmpConversion eConversion )
{
- const USHORT nBitCount = GetBitCount();
- BOOL bRet = FALSE;
+ const USHORT nBitCount = GetBitCount();
+ BOOL bRet = FALSE;
switch( eConversion )
{
@@ -365,20 +365,20 @@ BOOL Bitmap::Convert( BmpConversion eConversion )
BOOL Bitmap::ImplMakeMono( BYTE cThreshold )
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ BOOL bRet = FALSE;
if( pReadAcc )
{
- Bitmap aNewBmp( GetSizePixel(), 1 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), 1 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) );
- const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
+ const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) );
+ const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
if( pReadAcc->HasPalette() )
{
@@ -421,8 +421,8 @@ BOOL Bitmap::ImplMakeMono( BYTE cThreshold )
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -438,21 +438,21 @@ BOOL Bitmap::ImplMakeMono( BYTE cThreshold )
BOOL Bitmap::ImplMakeMonoDither()
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ BOOL bRet = FALSE;
if( pReadAcc )
{
- Bitmap aNewBmp( GetSizePixel(), 1 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), 1 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) );
- const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
- BYTE pDitherMatrix[ 16 ][ 16 ];
+ const BitmapColor aBlack( pWriteAcc->GetBestMatchingColor( Color( COL_BLACK ) ) );
+ const BitmapColor aWhite( pWriteAcc->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
+ BYTE pDitherMatrix[ 16 ][ 16 ];
ImplCreateDitherMatrix( &pDitherMatrix );
@@ -497,8 +497,8 @@ BOOL Bitmap::ImplMakeMonoDither()
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -516,27 +516,27 @@ BOOL Bitmap::ImplMakeGreyscales( USHORT nGreys )
{
DBG_ASSERT( nGreys == 16 || nGreys == 256, "Only 16 or 256 greyscales are supported!" );
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ BOOL bRet = FALSE;
if( pReadAcc )
{
- const BitmapPalette& rPal = GetGreyPalette( nGreys );
- ULONG nShift = ( ( nGreys == 16 ) ? 4UL : 0UL );
- BOOL bPalDiffers = !pReadAcc->HasPalette() || ( rPal.GetEntryCount() != pReadAcc->GetPaletteEntryCount() );
+ const BitmapPalette& rPal = GetGreyPalette( nGreys );
+ ULONG nShift = ( ( nGreys == 16 ) ? 4UL : 0UL );
+ BOOL bPalDiffers = !pReadAcc->HasPalette() || ( rPal.GetEntryCount() != pReadAcc->GetPaletteEntryCount() );
if( !bPalDiffers )
bPalDiffers = ( (BitmapPalette&) rPal != pReadAcc->GetPalette() );
if( bPalDiffers )
{
- Bitmap aNewBmp( GetSizePixel(), ( nGreys == 16 ) ? 4 : 8, &rPal );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), ( nGreys == 16 ) ? 4 : 8, &rPal );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
if( pReadAcc->HasPalette() )
{
@@ -565,7 +565,7 @@ BOOL Bitmap::ImplMakeGreyscales( USHORT nGreys )
const ULONG nB = *pReadScan++;
const ULONG nG = *pReadScan++;
const ULONG nR = *pReadScan++;
-
+
*pWriteScan++ = (BYTE) ( ( nB * 28UL + nG * 151UL + nR * 77UL ) >> nShift );
}
}
@@ -585,7 +585,7 @@ BOOL Bitmap::ImplMakeGreyscales( USHORT nGreys )
const ULONG nR = *pReadScan++;
const ULONG nG = *pReadScan++;
const ULONG nB = *pReadScan++;
-
+
*pWriteScan++ = (BYTE) ( ( nB * 28UL + nG * 151UL + nR * 77UL ) >> nShift );
}
}
@@ -605,8 +605,8 @@ BOOL Bitmap::ImplMakeGreyscales( USHORT nGreys )
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -630,24 +630,24 @@ BOOL Bitmap::ImplConvertUp( USHORT nBitCount, Color* pExtColor )
{
DBG_ASSERT( nBitCount > GetBitCount(), "New BitCount must be greater!" );
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ BOOL bRet = FALSE;
if( pReadAcc )
{
- BitmapPalette aPal;
- Bitmap aNewBmp( GetSizePixel(), nBitCount, pReadAcc->HasPalette() ? &pReadAcc->GetPalette() : &aPal );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ BitmapPalette aPal;
+ Bitmap aNewBmp( GetSizePixel(), nBitCount, pReadAcc->HasPalette() ? &pReadAcc->GetPalette() : &aPal );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
if( pWriteAcc->HasPalette() )
{
- const USHORT nOldCount = 1 << GetBitCount();
- const BitmapPalette& rOldPal = pReadAcc->GetPalette();
+ const USHORT nOldCount = 1 << GetBitCount();
+ const BitmapPalette& rOldPal = pReadAcc->GetPalette();
aPal.SetEntryCount( 1 << nBitCount );
@@ -687,8 +687,8 @@ BOOL Bitmap::ImplConvertUp( USHORT nBitCount, Color* pExtColor )
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -706,33 +706,33 @@ BOOL Bitmap::ImplConvertDown( USHORT nBitCount, Color* pExtColor )
{
DBG_ASSERT( nBitCount <= GetBitCount(), "New BitCount must be lower ( or equal when pExtColor is set )!" );
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ BOOL bRet = FALSE;
if( pReadAcc )
{
- BitmapPalette aPal;
- Bitmap aNewBmp( GetSizePixel(), nBitCount, &aPal );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ BitmapPalette aPal;
+ Bitmap aNewBmp( GetSizePixel(), nBitCount, &aPal );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const USHORT nCount = 1 << nBitCount;
- const long nWidth = pWriteAcc->Width();
- const long nWidth1 = nWidth - 1L;
- const long nHeight = pWriteAcc->Height();
- Octree aOctree( *pReadAcc, pExtColor ? ( nCount - 1 ) : nCount );
+ const USHORT nCount = 1 << nBitCount;
+ const long nWidth = pWriteAcc->Width();
+ const long nWidth1 = nWidth - 1L;
+ const long nHeight = pWriteAcc->Height();
+ Octree aOctree( *pReadAcc, pExtColor ? ( nCount - 1 ) : nCount );
InverseColorMap aColorMap( aPal = aOctree.GetPalette() );
- BitmapColor aColor;
- ImpErrorQuad aErrQuad;
- ImpErrorQuad* pErrQuad1 = new ImpErrorQuad[ nWidth ];
- ImpErrorQuad* pErrQuad2 = new ImpErrorQuad[ nWidth ];
- ImpErrorQuad* pQLine1 = pErrQuad1;
- ImpErrorQuad* pQLine2 = 0;
- long nX, nY;
- long nYTmp = 0L;
- BYTE cIndex;
- BOOL bQ1 = TRUE;
+ BitmapColor aColor;
+ ImpErrorQuad aErrQuad;
+ ImpErrorQuad* pErrQuad1 = new ImpErrorQuad[ nWidth ];
+ ImpErrorQuad* pErrQuad2 = new ImpErrorQuad[ nWidth ];
+ ImpErrorQuad* pQLine1 = pErrQuad1;
+ ImpErrorQuad* pQLine2 = 0;
+ long nX, nY;
+ long nYTmp = 0L;
+ BYTE cIndex;
+ BOOL bQ1 = TRUE;
if( pExtColor )
{
@@ -813,8 +813,8 @@ BOOL Bitmap::ImplConvertDown( USHORT nBitCount, Color* pExtColor )
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -830,9 +830,9 @@ BOOL Bitmap::ImplConvertDown( USHORT nBitCount, Color* pExtColor )
BOOL Bitmap::ImplConvertGhosted()
{
- Bitmap aNewBmp;
- BitmapReadAccess* pR = AcquireReadAccess();
- BOOL bRet = FALSE;
+ Bitmap aNewBmp;
+ BitmapReadAccess* pR = AcquireReadAccess();
+ BOOL bRet = FALSE;
if( pR )
{
@@ -873,7 +873,7 @@ BOOL Bitmap::ImplConvertGhosted()
for( long nX = 0; nX < nWidth; nX++ )
{
const BitmapColor aOld( pR->GetPixel( nY, nX ) );
- pW->SetPixel( nY, nX, BitmapColor( ( aOld.GetRed() >> 1 ) | 0x80,
+ pW->SetPixel( nY, nX, BitmapColor( ( aOld.GetRed() >> 1 ) | 0x80,
( aOld.GetGreen() >> 1 ) | 0x80,
( aOld.GetBlue() >> 1 ) | 0x80 ) );
@@ -890,8 +890,8 @@ BOOL Bitmap::ImplConvertGhosted()
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -927,8 +927,8 @@ BOOL Bitmap::Scale( const double& rScaleX, const double& rScaleY, ULONG nScaleFl
BOOL Bitmap::Scale( const Size& rNewSize, ULONG nScaleFlag )
{
- const Size aSize( GetSizePixel() );
- BOOL bRet;
+ const Size aSize( GetSizePixel() );
+ BOOL bRet;
if( aSize.Width() && aSize.Height() )
{
@@ -946,27 +946,27 @@ BOOL Bitmap::Scale( const Size& rNewSize, ULONG nScaleFlag )
BOOL Bitmap::ImplScaleFast( const double& rScaleX, const double& rScaleY )
{
- const Size aSizePix( GetSizePixel() );
- const long nNewWidth = FRound( aSizePix.Width() * rScaleX );
- const long nNewHeight = FRound( aSizePix.Height() * rScaleY );
- BOOL bRet = FALSE;
+ const Size aSizePix( GetSizePixel() );
+ const long nNewWidth = FRound( aSizePix.Width() * rScaleX );
+ const long nNewHeight = FRound( aSizePix.Height() * rScaleY );
+ BOOL bRet = FALSE;
if( nNewWidth && nNewHeight )
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- Bitmap aNewBmp( Size( nNewWidth, nNewHeight ), GetBitCount(), &pReadAcc->GetPalette() );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ Bitmap aNewBmp( Size( nNewWidth, nNewHeight ), GetBitCount(), &pReadAcc->GetPalette() );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pReadAcc && pWriteAcc )
{
- const long nScanlineSize = pWriteAcc->GetScanlineSize();
- const long nNewWidth1 = nNewWidth - 1L;
- const long nNewHeight1 = nNewHeight - 1L;
- const long nWidth1 = pReadAcc->Width() - 1L;
- const long nHeight1 = pReadAcc->Height() - 1L;
- long* pLutX = new long[ nNewWidth ];
- long* pLutY = new long[ nNewHeight ];
- long nX, nY, nMapY, nActY = 0L;
+ const long nScanlineSize = pWriteAcc->GetScanlineSize();
+ const long nNewWidth1 = nNewWidth - 1L;
+ const long nNewHeight1 = nNewHeight - 1L;
+ const long nWidth1 = pReadAcc->Width() - 1L;
+ const long nHeight1 = pReadAcc->Height() - 1L;
+ long* pLutX = new long[ nNewWidth ];
+ long* pLutY = new long[ nNewHeight ];
+ long nX, nY, nMapY, nActY = 0L;
if( nNewWidth1 && nNewHeight1 )
{
@@ -1014,32 +1014,32 @@ BOOL Bitmap::ImplScaleFast( const double& rScaleX, const double& rScaleY )
BOOL Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rScaleY )
{
- const Size aSizePix( GetSizePixel() );
- const long nNewWidth = FRound( aSizePix.Width() * rScaleX );
- const long nNewHeight = FRound( aSizePix.Height() * rScaleY );
- BOOL bRet = FALSE;
+ const Size aSizePix( GetSizePixel() );
+ const long nNewWidth = FRound( aSizePix.Width() * rScaleX );
+ const long nNewHeight = FRound( aSizePix.Height() * rScaleY );
+ BOOL bRet = FALSE;
if( ( nNewWidth > 1L ) && ( nNewHeight > 1L ) )
{
- BitmapColor aCol0;
- BitmapColor aCol1;
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- long nWidth = pReadAcc->Width();
- long nHeight = pReadAcc->Height();
- Bitmap aNewBmp( Size( nNewWidth, nHeight ), 24 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
- long* pLutInt;
- long* pLutFrac;
- long nX, nY;
- long lXB0, lXB1, lXG0, lXG1, lXR0, lXR1;
- double fTemp;
- long nTemp;
+ BitmapColor aCol0;
+ BitmapColor aCol1;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ long nWidth = pReadAcc->Width();
+ long nHeight = pReadAcc->Height();
+ Bitmap aNewBmp( Size( nNewWidth, nHeight ), 24 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ long* pLutInt;
+ long* pLutFrac;
+ long nX, nY;
+ long lXB0, lXB1, lXG0, lXG1, lXR0, lXR1;
+ double fTemp;
+ long nTemp;
if( pReadAcc && pWriteAcc )
{
- const long nNewWidth1 = nNewWidth - 1L;
- const long nWidth1 = pReadAcc->Width() - 1L;
- const double fRevScaleX = (double) nWidth1 / nNewWidth1;
+ const long nNewWidth1 = nNewWidth - 1L;
+ const long nWidth1 = pReadAcc->Width() - 1L;
+ const double fRevScaleX = (double) nWidth1 / nNewWidth1;
pLutInt = new long[ nNewWidth ];
pLutFrac = new long[ nNewWidth ];
@@ -1141,9 +1141,9 @@ BOOL Bitmap::ImplScaleInterpolate( const double& rScaleX, const double& rScaleY
if( pReadAcc && pWriteAcc )
{
- const long nNewHeight1 = nNewHeight - 1L;
- const long nHeight1 = pReadAcc->Height() - 1L;
- const double fRevScaleY = (double) nHeight1 / nNewHeight1;
+ const long nNewHeight1 = nNewHeight - 1L;
+ const long nHeight1 = pReadAcc->Height() - 1L;
+ const double fRevScaleY = (double) nHeight1 / nNewHeight1;
pLutInt = new long[ nNewHeight ];
pLutFrac = new long[ nNewHeight ];
@@ -1270,16 +1270,16 @@ BOOL Bitmap::Dither( ULONG nDitherFlags )
BOOL Bitmap::ImplDitherMatrix()
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- Bitmap aNewBmp( GetSizePixel(), 8 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ Bitmap aNewBmp( GetSizePixel(), 8 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pReadAcc && pWriteAcc )
{
- const ULONG nWidth = pReadAcc->Width();
- const ULONG nHeight = pReadAcc->Height();
- BitmapColor aIndex( (BYTE) 0 );
+ const ULONG nWidth = pReadAcc->Width();
+ const ULONG nHeight = pReadAcc->Height();
+ BitmapColor aIndex( (BYTE) 0 );
if( pReadAcc->HasPalette() )
{
@@ -1287,11 +1287,11 @@ BOOL Bitmap::ImplDitherMatrix()
{
for( ULONG nX = 0UL, nModY = ( nY & 0x0FUL ) << 4UL; nX < nWidth; nX++ )
{
- const BitmapColor aCol( pReadAcc->GetPaletteColor( pReadAcc->GetPixel( nY, nX ) ) );
- const ULONG nD = nVCLDitherLut[ nModY + ( nX & 0x0FUL ) ];
- const ULONG nR = ( nVCLLut[ aCol.GetRed() ] + nD ) >> 16UL;
- const ULONG nG = ( nVCLLut[ aCol.GetGreen() ] + nD ) >> 16UL;
- const ULONG nB = ( nVCLLut[ aCol.GetBlue() ] + nD ) >> 16UL;
+ const BitmapColor aCol( pReadAcc->GetPaletteColor( pReadAcc->GetPixel( nY, nX ) ) );
+ const ULONG nD = nVCLDitherLut[ nModY + ( nX & 0x0FUL ) ];
+ const ULONG nR = ( nVCLLut[ aCol.GetRed() ] + nD ) >> 16UL;
+ const ULONG nG = ( nVCLLut[ aCol.GetGreen() ] + nD ) >> 16UL;
+ const ULONG nB = ( nVCLLut[ aCol.GetBlue() ] + nD ) >> 16UL;
aIndex.SetIndex( (BYTE) ( nVCLRLut[ nR ] + nVCLGLut[ nG ] + nVCLBLut[ nB ] ) );
pWriteAcc->SetPixel( nY, nX, aIndex );
@@ -1304,11 +1304,11 @@ BOOL Bitmap::ImplDitherMatrix()
{
for( ULONG nX = 0UL, nModY = ( nY & 0x0FUL ) << 4UL; nX < nWidth; nX++ )
{
- const BitmapColor aCol( pReadAcc->GetPixel( nY, nX ) );
- const ULONG nD = nVCLDitherLut[ nModY + ( nX & 0x0FUL ) ];
- const ULONG nR = ( nVCLLut[ aCol.GetRed() ] + nD ) >> 16UL;
- const ULONG nG = ( nVCLLut[ aCol.GetGreen() ] + nD ) >> 16UL;
- const ULONG nB = ( nVCLLut[ aCol.GetBlue() ] + nD ) >> 16UL;
+ const BitmapColor aCol( pReadAcc->GetPixel( nY, nX ) );
+ const ULONG nD = nVCLDitherLut[ nModY + ( nX & 0x0FUL ) ];
+ const ULONG nR = ( nVCLLut[ aCol.GetRed() ] + nD ) >> 16UL;
+ const ULONG nG = ( nVCLLut[ aCol.GetGreen() ] + nD ) >> 16UL;
+ const ULONG nB = ( nVCLLut[ aCol.GetBlue() ] + nD ) >> 16UL;
aIndex.SetIndex( (BYTE) ( nVCLRLut[ nR ] + nVCLGLut[ nG ] + nVCLBLut[ nB ] ) );
pWriteAcc->SetPixel( nY, nX, aIndex );
@@ -1324,8 +1324,8 @@ BOOL Bitmap::ImplDitherMatrix()
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -1340,34 +1340,34 @@ BOOL Bitmap::ImplDitherMatrix()
BOOL Bitmap::ImplDitherFloyd()
{
- const Size aSize( GetSizePixel() );
- BOOL bRet = FALSE;
+ const Size aSize( GetSizePixel() );
+ BOOL bRet = FALSE;
if( ( aSize.Width() > 3 ) && ( aSize.Height() > 2 ) )
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- Bitmap aNewBmp( GetSizePixel(), 8 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ Bitmap aNewBmp( GetSizePixel(), 8 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pReadAcc && pWriteAcc )
{
- BitmapColor aColor;
- long nWidth = pReadAcc->Width();
- long nWidth1 = nWidth - 1L;
- long nHeight = pReadAcc->Height();
- long nX;
- long nW = nWidth * 3L;
- long nW2 = nW - 3L;
- long nRErr, nGErr, nBErr;
- long nRC, nGC, nBC;
- long nTemp;
- long nZ;
- long* p1 = new long[ nW ];
- long* p2 = new long[ nW ];
- long* p1T = p1;
- long* p2T = p2;
- long* pTmp;
- BOOL bPal = pReadAcc->HasPalette();
+ BitmapColor aColor;
+ long nWidth = pReadAcc->Width();
+ long nWidth1 = nWidth - 1L;
+ long nHeight = pReadAcc->Height();
+ long nX;
+ long nW = nWidth * 3L;
+ long nW2 = nW - 3L;
+ long nRErr, nGErr, nBErr;
+ long nRC, nGC, nBC;
+ long nTemp;
+ long nZ;
+ long* p1 = new long[ nW ];
+ long* p2 = new long[ nW ];
+ long* p1T = p1;
+ long* p2T = p2;
+ long* pTmp;
+ BOOL bPal = pReadAcc->HasPalette();
pTmp = p2T;
@@ -1464,8 +1464,8 @@ BOOL Bitmap::ImplDitherFloyd()
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aPrefSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aPrefSize( maPrefSize );
*this = aNewBmp;
@@ -1481,26 +1481,26 @@ BOOL Bitmap::ImplDitherFloyd()
BOOL Bitmap::ImplDitherFloyd16()
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- Bitmap aNewBmp( GetSizePixel(), 24 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ Bitmap aNewBmp( GetSizePixel(), 24 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ BOOL bRet = FALSE;
if( pReadAcc && pWriteAcc )
{
- const long nWidth = pWriteAcc->Width();
- const long nWidth1 = nWidth - 1L;
- const long nHeight = pWriteAcc->Height();
- BitmapColor aColor;
- BitmapColor aBestCol;
- ImpErrorQuad aErrQuad;
- ImpErrorQuad* pErrQuad1 = new ImpErrorQuad[ nWidth ];
- ImpErrorQuad* pErrQuad2 = new ImpErrorQuad[ nWidth ];
- ImpErrorQuad* pQLine1 = pErrQuad1;
- ImpErrorQuad* pQLine2 = 0;
- long nX, nY;
- long nYTmp = 0L;
- BOOL bQ1 = TRUE;
+ const long nWidth = pWriteAcc->Width();
+ const long nWidth1 = nWidth - 1L;
+ const long nHeight = pWriteAcc->Height();
+ BitmapColor aColor;
+ BitmapColor aBestCol;
+ ImpErrorQuad aErrQuad;
+ ImpErrorQuad* pErrQuad1 = new ImpErrorQuad[ nWidth ];
+ ImpErrorQuad* pErrQuad2 = new ImpErrorQuad[ nWidth ];
+ ImpErrorQuad* pQLine1 = pErrQuad1;
+ ImpErrorQuad* pQLine2 = 0;
+ long nX, nY;
+ long nYTmp = 0L;
+ BOOL bQ1 = TRUE;
for( nY = 0L; nY < Min( nHeight, 2L ); nY++, nYTmp++ )
for( nX = 0L, pQLine2 = !nY ? pErrQuad1 : pErrQuad2; nX < nWidth; nX++ )
@@ -1556,8 +1556,8 @@ BOOL Bitmap::ImplDitherFloyd16()
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -1595,11 +1595,11 @@ BOOL Bitmap::ReduceColors( USHORT nColorCount, BmpReduce eReduce )
BOOL Bitmap::ImplReduceSimple( USHORT nColorCount )
{
- Bitmap aNewBmp;
- BitmapReadAccess* pRAcc = AcquireReadAccess();
- const USHORT nColCount = Min( nColorCount, (USHORT) 256 );
- USHORT nBitCount;
- BOOL bRet = FALSE;
+ Bitmap aNewBmp;
+ BitmapReadAccess* pRAcc = AcquireReadAccess();
+ const USHORT nColCount = Min( nColorCount, (USHORT) 256 );
+ USHORT nBitCount;
+ BOOL bRet = FALSE;
if( nColCount <= 2 )
nBitCount = 1;
@@ -1610,9 +1610,9 @@ BOOL Bitmap::ImplReduceSimple( USHORT nColorCount )
if( pRAcc )
{
- Octree aOct( *pRAcc, nColCount );
- const BitmapPalette& rPal = aOct.GetPalette();
- BitmapWriteAccess* pWAcc;
+ Octree aOct( *pRAcc, nColCount );
+ const BitmapPalette& rPal = aOct.GetPalette();
+ BitmapWriteAccess* pWAcc;
aNewBmp = Bitmap( GetSizePixel(), nBitCount, &rPal );
pWAcc = aNewBmp.AcquireWriteAccess();
@@ -1644,8 +1644,8 @@ BOOL Bitmap::ImplReduceSimple( USHORT nColorCount )
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
maPrefMapMode = aMap;
@@ -1659,8 +1659,8 @@ BOOL Bitmap::ImplReduceSimple( USHORT nColorCount )
struct PopularColorCount
{
- sal_uInt32 mnIndex;
- sal_uInt32 mnCount;
+ sal_uInt32 mnIndex;
+ sal_uInt32 mnCount;
};
// ------------------------------------------------------------------------
@@ -1671,11 +1671,11 @@ extern "C" int __LOADONCALLAPI ImplPopularCmpFnc( const void* p1, const void* p2
if( ( (PopularColorCount*) p1 )->mnCount < ( (PopularColorCount*) p2 )->mnCount )
nRet = 1;
- else if( ( (PopularColorCount*) p1 )->mnCount == ( (PopularColorCount*) p2 )->mnCount )
+ else if( ( (PopularColorCount*) p1 )->mnCount == ( (PopularColorCount*) p2 )->mnCount )
nRet = 0;
else
nRet = -1;
-
+
return nRet;
}
@@ -1683,9 +1683,9 @@ extern "C" int __LOADONCALLAPI ImplPopularCmpFnc( const void* p1, const void* p2
BOOL Bitmap::ImplReducePopular( USHORT nColCount )
{
- BitmapReadAccess* pRAcc = AcquireReadAccess();
- USHORT nBitCount;
- BOOL bRet = FALSE;
+ BitmapReadAccess* pRAcc = AcquireReadAccess();
+ USHORT nBitCount;
+ BOOL bRet = FALSE;
if( nColCount > 256 )
nColCount = 256;
@@ -1697,17 +1697,17 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
if( pRAcc )
{
- const sal_uInt32 nValidBits = 4;
- const sal_uInt32 nRightShiftBits = 8 - nValidBits;
- const sal_uInt32 nLeftShiftBits1 = nValidBits;
- const sal_uInt32 nLeftShiftBits2 = nValidBits << 1;
- const sal_uInt32 nColorsPerComponent = 1 << nValidBits;
- const sal_uInt32 nColorOffset = 256 / nColorsPerComponent;
- const sal_uInt32 nTotalColors = nColorsPerComponent * nColorsPerComponent * nColorsPerComponent;
- const long nWidth = pRAcc->Width();
- const long nHeight = pRAcc->Height();
- PopularColorCount* pCountTable = new PopularColorCount[ nTotalColors ];
- long nX, nY, nR, nG, nB, nIndex;
+ const sal_uInt32 nValidBits = 4;
+ const sal_uInt32 nRightShiftBits = 8 - nValidBits;
+ const sal_uInt32 nLeftShiftBits1 = nValidBits;
+ const sal_uInt32 nLeftShiftBits2 = nValidBits << 1;
+ const sal_uInt32 nColorsPerComponent = 1 << nValidBits;
+ const sal_uInt32 nColorOffset = 256 / nColorsPerComponent;
+ const sal_uInt32 nTotalColors = nColorsPerComponent * nColorsPerComponent * nColorsPerComponent;
+ const long nWidth = pRAcc->Width();
+ const long nHeight = pRAcc->Height();
+ PopularColorCount* pCountTable = new PopularColorCount[ nTotalColors ];
+ long nX, nY, nR, nG, nB, nIndex;
rtl_zeroMemory( pCountTable, nTotalColors * sizeof( PopularColorCount ) );
@@ -1731,7 +1731,7 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
{
const BitmapColor& rCol = pRAcc->GetPaletteColor( pRAcc->GetPixel( nY, nX ) );
pCountTable[ ( ( ( (sal_uInt32) rCol.GetRed() ) >> nRightShiftBits ) << nLeftShiftBits2 ) |
- ( ( ( (sal_uInt32) rCol.GetGreen() ) >> nRightShiftBits ) << nLeftShiftBits1 ) |
+ ( ( ( (sal_uInt32) rCol.GetGreen() ) >> nRightShiftBits ) << nLeftShiftBits1 ) |
( ( (sal_uInt32) rCol.GetBlue() ) >> nRightShiftBits ) ].mnCount++;
}
}
@@ -1744,8 +1744,8 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
{
const BitmapColor aCol( pRAcc->GetPixel( nY, nX ) );
pCountTable[ ( ( ( (sal_uInt32) aCol.GetRed() ) >> nRightShiftBits ) << nLeftShiftBits2 ) |
- ( ( ( (sal_uInt32) aCol.GetGreen() ) >> nRightShiftBits ) << nLeftShiftBits1 ) |
- ( ( (sal_uInt32) aCol.GetBlue() ) >> nRightShiftBits ) ].mnCount++;
+ ( ( ( (sal_uInt32) aCol.GetGreen() ) >> nRightShiftBits ) << nLeftShiftBits1 ) |
+ ( ( (sal_uInt32) aCol.GetBlue() ) >> nRightShiftBits ) ].mnCount++;
}
}
}
@@ -1753,22 +1753,22 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
BitmapPalette aNewPal( nColCount );
qsort( pCountTable, nTotalColors, sizeof( PopularColorCount ), ImplPopularCmpFnc );
-
+
for( USHORT n = 0; n < nColCount; n++ )
{
const PopularColorCount& rPop = pCountTable[ n ];
- aNewPal[ n ] = BitmapColor( (BYTE) ( ( rPop.mnIndex >> nLeftShiftBits2 ) << nRightShiftBits ),
+ aNewPal[ n ] = BitmapColor( (BYTE) ( ( rPop.mnIndex >> nLeftShiftBits2 ) << nRightShiftBits ),
(BYTE) ( ( ( rPop.mnIndex >> nLeftShiftBits1 ) & ( nColorsPerComponent - 1 ) ) << nRightShiftBits ),
(BYTE) ( ( rPop.mnIndex & ( nColorsPerComponent - 1 ) ) << nRightShiftBits ) );
}
- Bitmap aNewBmp( GetSizePixel(), nBitCount, &aNewPal );
- BitmapWriteAccess* pWAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), nBitCount, &aNewPal );
+ BitmapWriteAccess* pWAcc = aNewBmp.AcquireWriteAccess();
if( pWAcc )
{
- BitmapColor aDstCol( (BYTE) 0 );
- BYTE* pIndexMap = new BYTE[ nTotalColors ];
+ BitmapColor aDstCol( (BYTE) 0 );
+ BYTE* pIndexMap = new BYTE[ nTotalColors ];
for( nR = 0, nIndex = 0; nR < 256; nR += nColorOffset )
for( nG = 0; nG < 256; nG += nColorOffset )
@@ -1783,7 +1783,7 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
{
const BitmapColor& rCol = pRAcc->GetPaletteColor( pRAcc->GetPixel( nY, nX ) );
aDstCol.SetIndex( pIndexMap[ ( ( ( (sal_uInt32) rCol.GetRed() ) >> nRightShiftBits ) << nLeftShiftBits2 ) |
- ( ( ( (sal_uInt32) rCol.GetGreen() ) >> nRightShiftBits ) << nLeftShiftBits1 ) |
+ ( ( ( (sal_uInt32) rCol.GetGreen() ) >> nRightShiftBits ) << nLeftShiftBits1 ) |
( ( (sal_uInt32) rCol.GetBlue() ) >> nRightShiftBits ) ] );
pWAcc->SetPixel( nY, nX, aDstCol );
}
@@ -1797,7 +1797,7 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
{
const BitmapColor aCol( pRAcc->GetPixel( nY, nX ) );
aDstCol.SetIndex( pIndexMap[ ( ( ( (sal_uInt32) aCol.GetRed() ) >> nRightShiftBits ) << nLeftShiftBits2 ) |
- ( ( ( (sal_uInt32) aCol.GetGreen() ) >> nRightShiftBits ) << nLeftShiftBits1 ) |
+ ( ( ( (sal_uInt32) aCol.GetGreen() ) >> nRightShiftBits ) << nLeftShiftBits1 ) |
( ( (sal_uInt32) aCol.GetBlue() ) >> nRightShiftBits ) ] );
pWAcc->SetPixel( nY, nX, aDstCol );
}
@@ -1814,8 +1814,8 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
maPrefMapMode = aMap;
@@ -1830,9 +1830,9 @@ BOOL Bitmap::ImplReducePopular( USHORT nColCount )
BOOL Bitmap::ImplReduceMedian( USHORT nColCount )
{
- BitmapReadAccess* pRAcc = AcquireReadAccess();
- USHORT nBitCount;
- BOOL bRet = FALSE;
+ BitmapReadAccess* pRAcc = AcquireReadAccess();
+ USHORT nBitCount;
+ BOOL bRet = FALSE;
if( nColCount < 17 )
nBitCount = 4;
@@ -1847,16 +1847,16 @@ BOOL Bitmap::ImplReduceMedian( USHORT nColCount )
if( pRAcc )
{
- Bitmap aNewBmp( GetSizePixel(), nBitCount );
- BitmapWriteAccess* pWAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), nBitCount );
+ BitmapWriteAccess* pWAcc = aNewBmp.AcquireWriteAccess();
if( pWAcc )
{
- const ULONG nSize = 32768UL * sizeof( ULONG );
- ULONG* pColBuf = (ULONG*) rtl_allocateMemory( nSize );
- const long nWidth = pWAcc->Width();
- const long nHeight = pWAcc->Height();
- long nIndex = 0L;
+ const ULONG nSize = 32768UL * sizeof( ULONG );
+ ULONG* pColBuf = (ULONG*) rtl_allocateMemory( nSize );
+ const long nWidth = pWAcc->Width();
+ const long nHeight = pWAcc->Height();
+ long nIndex = 0L;
memset( (HPBYTE) pColBuf, 0, nSize );
@@ -1886,7 +1886,7 @@ BOOL Bitmap::ImplReduceMedian( USHORT nColCount )
// create palette via median cut
BitmapPalette aPal( pWAcc->GetPaletteEntryCount() );
- ImplMedianCut( pColBuf, aPal, 0, 31, 0, 31, 0, 31,
+ ImplMedianCut( pColBuf, aPal, 0, 31, 0, 31, 0, 31,
nColCount, nWidth * nHeight, nIndex );
// do mapping of colors to palette
@@ -1905,8 +1905,8 @@ BOOL Bitmap::ImplReduceMedian( USHORT nColCount )
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
maPrefMapMode = aMap;
@@ -1919,19 +1919,19 @@ BOOL Bitmap::ImplReduceMedian( USHORT nColCount )
// ------------------------------------------------------------------------
-void Bitmap::ImplMedianCut( ULONG* pColBuf, BitmapPalette& rPal,
+void Bitmap::ImplMedianCut( ULONG* pColBuf, BitmapPalette& rPal,
long nR1, long nR2, long nG1, long nG2, long nB1, long nB2,
long nColors, long nPixels, long& rIndex )
{
if( !nPixels )
return;
- BitmapColor aCol;
- const long nRLen = nR2 - nR1;
- const long nGLen = nG2 - nG1;
- const long nBLen = nB2 - nB1;
- long nR, nG, nB;
- ULONG* pBuf = pColBuf;
+ BitmapColor aCol;
+ const long nRLen = nR2 - nR1;
+ const long nGLen = nG2 - nG1;
+ const long nBLen = nB2 - nB1;
+ long nR, nG, nB;
+ ULONG* pBuf = pColBuf;
if( !nRLen && !nGLen && !nBLen )
{
@@ -1974,9 +1974,9 @@ void Bitmap::ImplMedianCut( ULONG* pColBuf, BitmapPalette& rPal,
}
else
{
- const long nTest = ( nPixels >> 1 );
- long nPixOld = 0;
- long nPixNew = 0;
+ const long nTest = ( nPixels >> 1 );
+ long nPixOld = 0;
+ long nPixNew = 0;
if( nBLen > nGLen && nBLen > nRLen )
{
@@ -2074,7 +2074,7 @@ BOOL Bitmap::Adjust( short nLuminancePercent, short nContrastPercent,
BOOL bRet = FALSE;
// nothing to do => return quickly
- if( !nLuminancePercent && !nContrastPercent &&
+ if( !nLuminancePercent && !nContrastPercent &&
!nChannelRPercent && !nChannelGPercent && !nChannelBPercent &&
( fGamma == 1.0 ) && !bInvert )
{
@@ -2086,15 +2086,15 @@ BOOL Bitmap::Adjust( short nLuminancePercent, short nContrastPercent,
if( pAcc )
{
- BitmapColor aCol;
- const long nW = pAcc->Width();
- const long nH = pAcc->Height();
- BYTE* cMapR = new BYTE[ 256 ];
- BYTE* cMapG = new BYTE[ 256 ];
- BYTE* cMapB = new BYTE[ 256 ];
- long nX, nY;
- double fM, fROff, fGOff, fBOff, fOff;
-
+ BitmapColor aCol;
+ const long nW = pAcc->Width();
+ const long nH = pAcc->Height();
+ BYTE* cMapR = new BYTE[ 256 ];
+ BYTE* cMapG = new BYTE[ 256 ];
+ BYTE* cMapB = new BYTE[ 256 ];
+ long nX, nY;
+ double fM, fROff, fGOff, fBOff, fOff;
+
// calculate slope
if( nContrastPercent >= 0 )
fM = 128.0 / ( 128.0 - 1.27 * MinMax( nContrastPercent, 0L, 100L ) );
@@ -2142,7 +2142,7 @@ BOOL Bitmap::Adjust( short nLuminancePercent, short nContrastPercent,
for( USHORT i = 0, nCount = pAcc->GetPaletteEntryCount(); i < nCount; i++ )
{
- const BitmapColor& rCol = pAcc->GetPaletteColor( i );
+ const BitmapColor& rCol = pAcc->GetPaletteColor( i );
aNewCol.SetRed( cMapR[ rCol.GetRed() ] );
aNewCol.SetGreen( cMapG[ rCol.GetGreen() ] );
aNewCol.SetBlue( cMapB[ rCol.GetBlue() ] );
diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx
index 1f18b9375ea9..ab8bf914bf46 100644
--- a/vcl/source/gdi/bitmap4.cxx
+++ b/vcl/source/gdi/bitmap4.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,13 +37,13 @@
// - Defines -
// -----------
-#define S2(a,b) { register long t; if( ( t = b - a ) < 0 ) { a += t; b -= t; } }
-#define MN3(a,b,c) S2(a,b); S2(a,c);
-#define MX3(a,b,c) S2(b,c); S2(a,c);
-#define MNMX3(a,b,c) MX3(a,b,c); S2(a,b);
-#define MNMX4(a,b,c,d) S2(a,b); S2(c,d); S2(a,c); S2(b,d);
-#define MNMX5(a,b,c,d,e) S2(a,b); S2(c,d); MN3(a,c,e); MX3(b,d,e);
-#define MNMX6(a,b,c,d,e,f) S2(a,d); S2(b,e); S2(c,f); MN3(a,b,c); MX3(d,e,f);
+#define S2(a,b) { register long t; if( ( t = b - a ) < 0 ) { a += t; b -= t; } }
+#define MN3(a,b,c) S2(a,b); S2(a,c);
+#define MX3(a,b,c) S2(b,c); S2(a,c);
+#define MNMX3(a,b,c) MX3(a,b,c); S2(a,b);
+#define MNMX4(a,b,c,d) S2(a,b); S2(c,d); S2(a,c); S2(b,d);
+#define MNMX5(a,b,c,d,e) S2(a,b); S2(c,d); MN3(a,c,e); MX3(b,d,e);
+#define MNMX6(a,b,c,d,e,f) S2(a,d); S2(b,e); S2(c,f); MN3(a,b,c); MX3(d,e,f);
// ----------
// - Bitmap -
@@ -110,30 +110,30 @@ BOOL Bitmap::Filter( BmpFilter eFilter, const BmpFilterParam* pFilterParam, cons
BOOL Bitmap::ImplConvolute3( const long* pMatrix, long nDivisor,
const BmpFilterParam* /*pFilterParam*/, const Link* /*pProgress*/ )
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ BOOL bRet = FALSE;
if( pReadAcc )
{
- Bitmap aNewBmp( GetSizePixel(), 24 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), 24 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const long nWidth = pWriteAcc->Width(), nWidth2 = nWidth + 2;
- const long nHeight = pWriteAcc->Height(), nHeight2 = nHeight + 2;
- long* pColm = new long[ nWidth2 ];
- long* pRows = new long[ nHeight2 ];
- BitmapColor* pColRow1 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
- BitmapColor* pColRow2 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
- BitmapColor* pColRow3 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
- BitmapColor* pRowTmp1 = pColRow1;
- BitmapColor* pRowTmp2 = pColRow2;
- BitmapColor* pRowTmp3 = pColRow3;
- BitmapColor* pColor;
- long nY, nX, i, nSumR, nSumG, nSumB, nMatrixVal, nTmp;
- long (*pKoeff)[ 256 ] = new long[ 9 ][ 256 ];
- long* pTmp;
+ const long nWidth = pWriteAcc->Width(), nWidth2 = nWidth + 2;
+ const long nHeight = pWriteAcc->Height(), nHeight2 = nHeight + 2;
+ long* pColm = new long[ nWidth2 ];
+ long* pRows = new long[ nHeight2 ];
+ BitmapColor* pColRow1 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
+ BitmapColor* pColRow2 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
+ BitmapColor* pColRow3 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
+ BitmapColor* pRowTmp1 = pColRow1;
+ BitmapColor* pRowTmp2 = pColRow2;
+ BitmapColor* pRowTmp3 = pColRow3;
+ BitmapColor* pColor;
+ long nY, nX, i, nSumR, nSumG, nSumB, nMatrixVal, nTmp;
+ long (*pKoeff)[ 256 ] = new long[ 9 ][ 256 ];
+ long* pTmp;
// create LUT of products of matrix value and possible color component values
for( nY = 0; nY < 9; nY++ )
@@ -143,13 +143,13 @@ BOOL Bitmap::ImplConvolute3( const long* pMatrix, long nDivisor,
// create column LUT
for( i = 0; i < nWidth2; i++ )
pColm[ i ] = ( i > 0 ) ? ( i - 1 ) : 0;
-
+
pColm[ nWidth + 1 ] = pColm[ nWidth ];
// create row LUT
for( i = 0; i < nHeight2; i++ )
pRows[ i ] = ( i > 0 ) ? ( i - 1 ) : 0;
-
+
pRows[ nHeight + 1 ] = pRows[ nHeight ];
// read first three rows of bitmap color
@@ -240,8 +240,8 @@ BOOL Bitmap::ImplConvolute3( const long* pMatrix, long nDivisor,
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -257,42 +257,42 @@ BOOL Bitmap::ImplConvolute3( const long* pMatrix, long nDivisor,
BOOL Bitmap::ImplMedianFilter( const BmpFilterParam* /*pFilterParam*/, const Link* /*pProgress*/ )
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- BOOL bRet = FALSE;
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ BOOL bRet = FALSE;
if( pReadAcc )
{
- Bitmap aNewBmp( GetSizePixel(), 24 );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), 24 );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- const long nWidth = pWriteAcc->Width(), nWidth2 = nWidth + 2;
- const long nHeight = pWriteAcc->Height(), nHeight2 = nHeight + 2;
- long* pColm = new long[ nWidth2 ];
- long* pRows = new long[ nHeight2 ];
- BitmapColor* pColRow1 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
- BitmapColor* pColRow2 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
- BitmapColor* pColRow3 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
- BitmapColor* pRowTmp1 = pColRow1;
- BitmapColor* pRowTmp2 = pColRow2;
- BitmapColor* pRowTmp3 = pColRow3;
- BitmapColor* pColor;
- long nY, nX, i;
- long nR1, nR2, nR3, nR4, nR5, nR6, nR7, nR8, nR9;
- long nG1, nG2, nG3, nG4, nG5, nG6, nG7, nG8, nG9;
- long nB1, nB2, nB3, nB4, nB5, nB6, nB7, nB8, nB9;
+ const long nWidth = pWriteAcc->Width(), nWidth2 = nWidth + 2;
+ const long nHeight = pWriteAcc->Height(), nHeight2 = nHeight + 2;
+ long* pColm = new long[ nWidth2 ];
+ long* pRows = new long[ nHeight2 ];
+ BitmapColor* pColRow1 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
+ BitmapColor* pColRow2 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
+ BitmapColor* pColRow3 = (BitmapColor*) new BYTE[ sizeof( BitmapColor ) * nWidth2 ];
+ BitmapColor* pRowTmp1 = pColRow1;
+ BitmapColor* pRowTmp2 = pColRow2;
+ BitmapColor* pRowTmp3 = pColRow3;
+ BitmapColor* pColor;
+ long nY, nX, i;
+ long nR1, nR2, nR3, nR4, nR5, nR6, nR7, nR8, nR9;
+ long nG1, nG2, nG3, nG4, nG5, nG6, nG7, nG8, nG9;
+ long nB1, nB2, nB3, nB4, nB5, nB6, nB7, nB8, nB9;
// create column LUT
for( i = 0; i < nWidth2; i++ )
pColm[ i ] = ( i > 0 ) ? ( i - 1 ) : 0;
-
+
pColm[ nWidth + 1 ] = pColm[ nWidth ];
// create row LUT
for( i = 0; i < nHeight2; i++ )
pRows[ i ] = ( i > 0 ) ? ( i - 1 ) : 0;
-
+
pRows[ nHeight + 1 ] = pRows[ nHeight ];
// read first three rows of bitmap color
@@ -314,7 +314,7 @@ BOOL Bitmap::ImplMedianFilter( const BmpFilterParam* /*pFilterParam*/, const Lin
nR1 = ( pColor = pRowTmp1 + nX )->GetRed(), nG1 = pColor->GetGreen(), nB1 = pColor->GetBlue();
nR2 = ( ++pColor )->GetRed(), nG2 = pColor->GetGreen(), nB2 = pColor->GetBlue();
nR3 = ( ++pColor )->GetRed(), nG3 = pColor->GetGreen(), nB3 = pColor->GetBlue();
-
+
nR4 = ( pColor = pRowTmp2 + nX )->GetRed(), nG4 = pColor->GetGreen(), nB4 = pColor->GetBlue();
nR5 = ( ++pColor )->GetRed(), nG5 = pColor->GetGreen(), nB5 = pColor->GetBlue();
nR6 = ( ++pColor )->GetRed(), nG6 = pColor->GetGreen(), nB6 = pColor->GetBlue();
@@ -322,7 +322,7 @@ BOOL Bitmap::ImplMedianFilter( const BmpFilterParam* /*pFilterParam*/, const Lin
nR7 = ( pColor = pRowTmp3 + nX )->GetRed(), nG7 = pColor->GetGreen(), nB7 = pColor->GetBlue();
nR8 = ( ++pColor )->GetRed(), nG8 = pColor->GetGreen(), nB8 = pColor->GetBlue();
nR9 = ( ++pColor )->GetRed(), nG9 = pColor->GetGreen(), nB9 = pColor->GetBlue();
-
+
MNMX6( nR1, nR2, nR3, nR4, nR5, nR6 );
MNMX5( nR7, nR2, nR3, nR4, nR5 );
MNMX4( nR8, nR2, nR3, nR4 );
@@ -337,7 +337,7 @@ BOOL Bitmap::ImplMedianFilter( const BmpFilterParam* /*pFilterParam*/, const Lin
MNMX5( nB7, nB2, nB3, nB4, nB5 );
MNMX4( nB8, nB2, nB3, nB4 );
MNMX3( nB9, nB2, nB3 );
-
+
// set destination color
pWriteAcc->SetPixel( nY, nX, BitmapColor( (BYTE) nR2, (BYTE) nG2, (BYTE) nB2 ) );
}
@@ -371,8 +371,8 @@ BOOL Bitmap::ImplMedianFilter( const BmpFilterParam* /*pFilterParam*/, const Lin
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -395,29 +395,29 @@ BOOL Bitmap::ImplSobelGrey( const BmpFilterParam* /*pFilterParam*/, const Link*
bRet = FALSE;
BitmapReadAccess* pReadAcc = AcquireReadAccess();
-
+
if( pReadAcc )
{
- Bitmap aNewBmp( GetSizePixel(), 8, &pReadAcc->GetPalette() );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), 8, &pReadAcc->GetPalette() );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- BitmapColor aGrey( (BYTE) 0 );
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
- const long nMask111 = -1, nMask121 = 0, nMask131 = 1;
- const long nMask211 = -2, nMask221 = 0, nMask231 = 2;
- const long nMask311 = -1, nMask321 = 0, nMask331 = 1;
- const long nMask112 = 1, nMask122 = 2, nMask132 = 1;
- const long nMask212 = 0, nMask222 = 0, nMask232 = 0;
- const long nMask312 = -1, nMask322 = -2, nMask332 = -1;
- long nGrey11, nGrey12, nGrey13;
- long nGrey21, nGrey22, nGrey23;
- long nGrey31, nGrey32, nGrey33;
- long* pHMap = new long[ nWidth + 2 ];
- long* pVMap = new long[ nHeight + 2 ];
- long nX, nY, nSum1, nSum2;
+ BitmapColor aGrey( (BYTE) 0 );
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
+ const long nMask111 = -1, nMask121 = 0, nMask131 = 1;
+ const long nMask211 = -2, nMask221 = 0, nMask231 = 2;
+ const long nMask311 = -1, nMask321 = 0, nMask331 = 1;
+ const long nMask112 = 1, nMask122 = 2, nMask132 = 1;
+ const long nMask212 = 0, nMask222 = 0, nMask232 = 0;
+ const long nMask312 = -1, nMask322 = -2, nMask332 = -1;
+ long nGrey11, nGrey12, nGrey13;
+ long nGrey21, nGrey22, nGrey23;
+ long nGrey31, nGrey32, nGrey33;
+ long* pHMap = new long[ nWidth + 2 ];
+ long* pVMap = new long[ nHeight + 2 ];
+ long nX, nY, nSum1, nSum2;
// fill mapping tables
pHMap[ 0 ] = 0;
@@ -498,8 +498,8 @@ BOOL Bitmap::ImplSobelGrey( const BmpFilterParam* /*pFilterParam*/, const Link*
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -523,33 +523,33 @@ BOOL Bitmap::ImplEmbossGrey( const BmpFilterParam* pFilterParam, const Link* /*p
bRet = FALSE;
BitmapReadAccess* pReadAcc = AcquireReadAccess();
-
+
if( pReadAcc )
{
- Bitmap aNewBmp( GetSizePixel(), 8, &pReadAcc->GetPalette() );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), 8, &pReadAcc->GetPalette() );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- BitmapColor aGrey( (BYTE) 0 );
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
- long nGrey11, nGrey12, nGrey13;
- long nGrey21, nGrey22, nGrey23;
- long nGrey31, nGrey32, nGrey33;
- double fAzim = ( ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_EMBOSS_GREY ) ?
+ BitmapColor aGrey( (BYTE) 0 );
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
+ long nGrey11, nGrey12, nGrey13;
+ long nGrey21, nGrey22, nGrey23;
+ long nGrey31, nGrey32, nGrey33;
+ double fAzim = ( ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_EMBOSS_GREY ) ?
( pFilterParam->maEmbossAngles.mnAzimuthAngle100 * 0.01 ) : 0.0 ) * F_PI180;
- double fElev = ( ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_EMBOSS_GREY ) ?
+ double fElev = ( ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_EMBOSS_GREY ) ?
( pFilterParam->maEmbossAngles.mnElevationAngle100 * 0.01 ) : 90.0 ) * F_PI180;
- long* pHMap = new long[ nWidth + 2 ];
- long* pVMap = new long[ nHeight + 2 ];
- long nX, nY, nNx, nNy, nDotL;
- const long nLx = FRound( cos( fAzim ) * cos( fElev ) * 255.0 );
- const long nLy = FRound( sin( fAzim ) * cos( fElev ) * 255.0 );
- const long nLz = FRound( sin( fElev ) * 255.0 );
- const long nZ2 = ( ( 6 * 255 ) / 4 ) * ( ( 6 * 255 ) / 4 );
- const long nNzLz = ( ( 6 * 255 ) / 4 ) * nLz;
- const BYTE cLz = (BYTE) SAL_BOUND( nLz, 0, 255 );
+ long* pHMap = new long[ nWidth + 2 ];
+ long* pVMap = new long[ nHeight + 2 ];
+ long nX, nY, nNx, nNy, nDotL;
+ const long nLx = FRound( cos( fAzim ) * cos( fElev ) * 255.0 );
+ const long nLy = FRound( sin( fAzim ) * cos( fElev ) * 255.0 );
+ const long nLz = FRound( sin( fElev ) * 255.0 );
+ const long nZ2 = ( ( 6 * 255 ) / 4 ) * ( ( 6 * 255 ) / 4 );
+ const long nNzLz = ( ( 6 * 255 ) / 4 ) * nLz;
+ const BYTE cLz = (BYTE) SAL_BOUND( nLz, 0, 255 );
// fill mapping tables
pHMap[ 0 ] = 0;
@@ -588,7 +588,7 @@ BOOL Bitmap::ImplEmbossGrey( const BmpFilterParam* pFilterParam, const Link* /*p
const double fGrey = nDotL / sqrt( (double)(nNx * nNx + nNy * nNy + nZ2) );
aGrey.SetIndex( (BYTE) SAL_BOUND( fGrey, 0, 255 ) );
}
-
+
pWriteAcc->SetPixel( nY, nX, aGrey );
if( nX < ( nWidth - 1 ) )
@@ -612,8 +612,8 @@ BOOL Bitmap::ImplEmbossGrey( const BmpFilterParam* pFilterParam, const Link* /*p
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -630,12 +630,12 @@ BOOL Bitmap::ImplEmbossGrey( const BmpFilterParam* pFilterParam, const Link* /*p
BOOL Bitmap::ImplSolarize( const BmpFilterParam* pFilterParam, const Link* /*pProgress*/ )
{
- BOOL bRet = FALSE;
- BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();
-
+ BOOL bRet = FALSE;
+ BitmapWriteAccess* pWriteAcc = AcquireWriteAccess();
+
if( pWriteAcc )
{
- const BYTE cThreshold = ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_SOLARIZE ) ?
+ const BYTE cThreshold = ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_SOLARIZE ) ?
pFilterParam->mcSolarGreyThreshold : 128;
if( pWriteAcc->HasPalette() )
@@ -653,16 +653,16 @@ BOOL Bitmap::ImplSolarize( const BmpFilterParam* pFilterParam, const Link* /*pPr
}
else
{
- BitmapColor aCol;
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
+ BitmapColor aCol;
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
for( long nY = 0; nY < nHeight ; nY++ )
{
for( long nX = 0; nX < nWidth; nX++ )
{
aCol = pWriteAcc->GetPixel( nY, nX );
-
+
if( aCol.GetLuminance() >= cThreshold )
pWriteAcc->SetPixel( nY, nX, aCol.Invert() );
}
@@ -680,43 +680,43 @@ BOOL Bitmap::ImplSolarize( const BmpFilterParam* pFilterParam, const Link* /*pPr
BOOL Bitmap::ImplSepia( const BmpFilterParam* pFilterParam, const Link* /*pProgress*/ )
{
- BitmapReadAccess* pReadAcc = AcquireReadAccess();
- BOOL bRet = FALSE;
-
+ BitmapReadAccess* pReadAcc = AcquireReadAccess();
+ BOOL bRet = FALSE;
+
if( pReadAcc )
{
- long nSepiaPercent = ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_SEPIA ) ?
+ long nSepiaPercent = ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_SEPIA ) ?
pFilterParam->mcSolarGreyThreshold : 10;
- const long nSepia = 10000 - 100 * SAL_BOUND( nSepiaPercent, 0, 100 );
- BitmapPalette aSepiaPal( 256 );
+ const long nSepia = 10000 - 100 * SAL_BOUND( nSepiaPercent, 0, 100 );
+ BitmapPalette aSepiaPal( 256 );
DBG_ASSERT( nSepiaPercent <= 100, "Bitmap::ImplSepia(): sepia value out of range; defaulting to 100%" );
for( USHORT i = 0; i < 256; i++ )
{
- BitmapColor& rCol = aSepiaPal[ i ];
- const BYTE cSepiaValue = (BYTE) ( ( nSepia * i ) / 10000 );
+ BitmapColor& rCol = aSepiaPal[ i ];
+ const BYTE cSepiaValue = (BYTE) ( ( nSepia * i ) / 10000 );
rCol.SetRed( (BYTE) i );
rCol.SetGreen( cSepiaValue );
rCol.SetBlue( cSepiaValue );
}
- Bitmap aNewBmp( GetSizePixel(), 8, &aSepiaPal );
- BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
+ Bitmap aNewBmp( GetSizePixel(), 8, &aSepiaPal );
+ BitmapWriteAccess* pWriteAcc = aNewBmp.AcquireWriteAccess();
if( pWriteAcc )
{
- BitmapColor aCol( (BYTE) 0 );
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
+ BitmapColor aCol( (BYTE) 0 );
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
if( pReadAcc->HasPalette() )
{
for( long nY = 0; nY < nHeight ; nY++ )
{
- const USHORT nPalCount = pReadAcc->GetPaletteEntryCount();
- BYTE* pIndexMap = new BYTE[ nPalCount ];
+ const USHORT nPalCount = pReadAcc->GetPaletteEntryCount();
+ BYTE* pIndexMap = new BYTE[ nPalCount ];
for( USHORT i = 0; i < nPalCount; i++ )
pIndexMap[ i ] = pReadAcc->GetPaletteColor( i ).GetLuminance();
@@ -750,8 +750,8 @@ BOOL Bitmap::ImplSepia( const BmpFilterParam* pFilterParam, const Link* /*pProgr
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = aNewBmp;
@@ -767,11 +767,11 @@ BOOL Bitmap::ImplSepia( const BmpFilterParam* pFilterParam, const Link* /*pProgr
BOOL Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProgress*/ )
{
- ULONG nTileWidth = ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_MOSAIC ) ?
+ ULONG nTileWidth = ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_MOSAIC ) ?
pFilterParam->maMosaicTileSize.mnTileWidth : 4;
- ULONG nTileHeight = ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_MOSAIC ) ?
+ ULONG nTileHeight = ( pFilterParam && pFilterParam->meFilter == BMP_FILTER_MOSAIC ) ?
pFilterParam->maMosaicTileSize.mnTileHeight : 4;
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
if( !nTileWidth )
nTileWidth = 1;
@@ -781,9 +781,9 @@ BOOL Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
if( nTileWidth > 1 || nTileHeight > 1 )
{
- Bitmap* pNewBmp;
- BitmapReadAccess* pReadAcc;
- BitmapWriteAccess* pWriteAcc;
+ Bitmap* pNewBmp;
+ BitmapReadAccess* pReadAcc;
+ BitmapWriteAccess* pWriteAcc;
if( GetBitCount() > 8 )
{
@@ -796,14 +796,14 @@ BOOL Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
pReadAcc = AcquireReadAccess();
pWriteAcc = pNewBmp->AcquireWriteAccess();
}
-
+
if( pReadAcc && pWriteAcc )
{
- BitmapColor aCol;
- long nWidth = pReadAcc->Width();
- long nHeight = pReadAcc->Height();
- long nX, nY, nX1, nX2, nY1, nY2, nSumR, nSumG, nSumB;
- double fArea_1;
+ BitmapColor aCol;
+ long nWidth = pReadAcc->Width();
+ long nHeight = pReadAcc->Height();
+ long nX, nY, nX1, nX2, nY1, nY2, nSumR, nSumG, nSumB;
+ double fArea_1;
nY1 = 0; nY2 = nTileHeight - 1;
@@ -816,7 +816,7 @@ BOOL Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
if( nX2 >= nWidth )
nX2 = nWidth - 1;
-
+
fArea_1 = 1.0 / ( ( nX2 - nX1 + 1 ) * ( nY2 - nY1 + 1 ) );
if( !pNewBmp )
@@ -904,8 +904,8 @@ BOOL Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
if( bRet )
{
- const MapMode aMap( maPrefMapMode );
- const Size aSize( maPrefSize );
+ const MapMode aMap( maPrefMapMode );
+ const Size aSize( maPrefSize );
*this = *pNewBmp;
@@ -918,7 +918,7 @@ BOOL Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
}
else
bRet = TRUE;
-
+
return bRet;
}
@@ -926,8 +926,8 @@ BOOL Bitmap::ImplMosaic( const BmpFilterParam* pFilterParam, const Link* /*pProg
struct PopArtEntry
{
- sal_uInt32 mnIndex;
- sal_uInt32 mnCount;
+ sal_uInt32 mnIndex;
+ sal_uInt32 mnCount;
};
// ------------------------------------------------------------------------
@@ -938,11 +938,11 @@ extern "C" int __LOADONCALLAPI ImplPopArtCmpFnc( const void* p1, const void* p2
if( ( (PopArtEntry*) p1 )->mnCount < ( (PopArtEntry*) p2 )->mnCount )
nRet = 1;
- else if( ( (PopArtEntry*) p1 )->mnCount == ( (PopArtEntry*) p2 )->mnCount )
+ else if( ( (PopArtEntry*) p1 )->mnCount == ( (PopArtEntry*) p2 )->mnCount )
nRet = 0;
else
nRet = -1;
-
+
return nRet;
}
@@ -960,11 +960,11 @@ BOOL Bitmap::ImplPopArt( const BmpFilterParam* /*pFilterParam*/, const Link* /*p
if( pWriteAcc )
{
- const long nWidth = pWriteAcc->Width();
- const long nHeight = pWriteAcc->Height();
- const ULONG nEntryCount = 1 << pWriteAcc->GetBitCount();
- ULONG n;
- PopArtEntry* pPopArtTable = new PopArtEntry[ nEntryCount ];
+ const long nWidth = pWriteAcc->Width();
+ const long nHeight = pWriteAcc->Height();
+ const ULONG nEntryCount = 1 << pWriteAcc->GetBitCount();
+ ULONG n;
+ PopArtEntry* pPopArtTable = new PopArtEntry[ nEntryCount ];
for( n = 0; n < nEntryCount; n++ )
{
@@ -980,7 +980,7 @@ BOOL Bitmap::ImplPopArt( const BmpFilterParam* /*pFilterParam*/, const Link* /*p
// sort table
qsort( pPopArtTable, nEntryCount, sizeof( PopArtEntry ), ImplPopArtCmpFnc );
-
+
// get last used entry
ULONG nFirstEntry;
ULONG nLastEntry = 0;
@@ -993,7 +993,7 @@ BOOL Bitmap::ImplPopArt( const BmpFilterParam* /*pFilterParam*/, const Link* /*p
const BitmapColor aFirstCol( pWriteAcc->GetPaletteColor( sal::static_int_cast<USHORT>(pPopArtTable[ 0 ].mnIndex) ) );
for( nFirstEntry = 0; nFirstEntry < nLastEntry; nFirstEntry++ )
{
- pWriteAcc->SetPaletteColor( sal::static_int_cast<USHORT>(pPopArtTable[ nFirstEntry ].mnIndex),
+ pWriteAcc->SetPaletteColor( sal::static_int_cast<USHORT>(pPopArtTable[ nFirstEntry ].mnIndex),
pWriteAcc->GetPaletteColor( sal::static_int_cast<USHORT>(pPopArtTable[ nFirstEntry + 1 ].mnIndex) ) );
}
pWriteAcc->SetPaletteColor( sal::static_int_cast<USHORT>(pPopArtTable[ nLastEntry ].mnIndex), aFirstCol );
diff --git a/vcl/source/gdi/bitmapex.cxx b/vcl/source/gdi/bitmapex.cxx
index 12cb2958b43c..43589e3813f7 100644
--- a/vcl/source/gdi/bitmapex.cxx
+++ b/vcl/source/gdi/bitmapex.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,25 +50,25 @@
BitmapEx::BitmapEx() :
eTransparent( TRANSPARENT_NONE ),
- bAlpha ( FALSE )
+ bAlpha ( FALSE )
{
}
// ------------------------------------------------------------------
BitmapEx::BitmapEx( const BitmapEx& rBitmapEx ) :
- aBitmap ( rBitmapEx.aBitmap ),
- aMask ( rBitmapEx.aMask ),
- aBitmapSize ( rBitmapEx.aBitmapSize ),
- aTransparentColor ( rBitmapEx.aTransparentColor ),
- eTransparent ( rBitmapEx.eTransparent ),
- bAlpha ( rBitmapEx.bAlpha )
+ aBitmap ( rBitmapEx.aBitmap ),
+ aMask ( rBitmapEx.aMask ),
+ aBitmapSize ( rBitmapEx.aBitmapSize ),
+ aTransparentColor ( rBitmapEx.aTransparentColor ),
+ eTransparent ( rBitmapEx.eTransparent ),
+ bAlpha ( rBitmapEx.bAlpha )
{
}
BitmapEx::BitmapEx( const BitmapEx& rBitmapEx, Point aSrc, Size aSize ) :
eTransparent( TRANSPARENT_NONE ),
- bAlpha ( FALSE )
+ bAlpha ( FALSE )
{
if( rBitmapEx.IsEmpty() )
return;
@@ -82,7 +82,7 @@ BitmapEx::BitmapEx( const BitmapEx& rBitmapEx, Point aSrc, Size aSize ) :
}
else if( rBitmapEx.IsTransparent() )
aMask = Bitmap( aSize, rBitmapEx.aMask.GetBitCount() );
-
+
Rectangle aDestRect( Point( 0, 0 ), aSize );
Rectangle aSrcRect( aSrc, aSize );
CopyPixel( aDestRect, aSrcRect, &rBitmapEx );
@@ -92,21 +92,21 @@ BitmapEx::BitmapEx( const BitmapEx& rBitmapEx, Point aSrc, Size aSize ) :
BitmapEx::BitmapEx( const ResId& rResId ) :
eTransparent( TRANSPARENT_NONE ),
- bAlpha ( FALSE )
+ bAlpha ( FALSE )
{
- static ImplImageTreeSingletonRef aImageTree;
- ResMgr* pResMgr = NULL;
+ static ImplImageTreeSingletonRef aImageTree;
+ ResMgr* pResMgr = NULL;
ResMgr::GetResourceSkipHeader( rResId.SetRT( RSC_BITMAP ), &pResMgr );
pResMgr->ReadLong();
pResMgr->ReadLong();
-
+
const String aFileName( pResMgr->ReadString() );
::rtl::OUString aCurrentSymbolsStyle = Application::GetSettings().GetStyleSettings().GetCurrentSymbolsStyleName();
-
+
if( !aImageTree->loadImage( aFileName, aCurrentSymbolsStyle, *this ) )
{
-#ifdef DBG_UTIL
+#ifdef DBG_UTIL
ByteString aErrorStr( "BitmapEx::BitmapEx( const ResId& rResId ): could not load image <" );
DBG_ERROR( ( ( aErrorStr += ByteString( aFileName, RTL_TEXTENCODING_ASCII_US ) ) += '>' ).GetBuffer() );
#endif
@@ -116,21 +116,21 @@ BitmapEx::BitmapEx( const ResId& rResId ) :
// ------------------------------------------------------------------
BitmapEx::BitmapEx( const Bitmap& rBmp ) :
- aBitmap ( rBmp ),
- aBitmapSize ( aBitmap.GetSizePixel() ),
+ aBitmap ( rBmp ),
+ aBitmapSize ( aBitmap.GetSizePixel() ),
eTransparent( TRANSPARENT_NONE ),
- bAlpha ( FALSE )
+ bAlpha ( FALSE )
{
}
// ------------------------------------------------------------------
BitmapEx::BitmapEx( const Bitmap& rBmp, const Bitmap& rMask ) :
- aBitmap ( rBmp ),
- aMask ( rMask ),
- aBitmapSize ( aBitmap.GetSizePixel() ),
- eTransparent ( !rMask ? TRANSPARENT_NONE : TRANSPARENT_BITMAP ),
- bAlpha ( FALSE )
+ aBitmap ( rBmp ),
+ aMask ( rMask ),
+ aBitmapSize ( aBitmap.GetSizePixel() ),
+ eTransparent ( !rMask ? TRANSPARENT_NONE : TRANSPARENT_BITMAP ),
+ bAlpha ( FALSE )
{
DBG_ASSERT( !rMask || rBmp.GetSizePixel() == rMask.GetSizePixel(),
"BitmapEx::BitmapEx(): size mismatch for bitmap and mask." );
@@ -146,18 +146,18 @@ BitmapEx::BitmapEx( const Bitmap& rBmp, const Bitmap& rMask ) :
// ------------------------------------------------------------------
BitmapEx::BitmapEx( const Bitmap& rBmp, const AlphaMask& rAlphaMask ) :
- aBitmap ( rBmp ),
- aMask ( rAlphaMask.ImplGetBitmap() ),
- aBitmapSize ( aBitmap.GetSizePixel() ),
- eTransparent ( !rAlphaMask ? TRANSPARENT_NONE : TRANSPARENT_BITMAP ),
- bAlpha ( !rAlphaMask ? FALSE : TRUE )
+ aBitmap ( rBmp ),
+ aMask ( rAlphaMask.ImplGetBitmap() ),
+ aBitmapSize ( aBitmap.GetSizePixel() ),
+ eTransparent ( !rAlphaMask ? TRANSPARENT_NONE : TRANSPARENT_BITMAP ),
+ bAlpha ( !rAlphaMask ? FALSE : TRUE )
{
DBG_ASSERT( !rAlphaMask || rBmp.GetSizePixel() == rAlphaMask.GetSizePixel(),
"BitmapEx::BitmapEx(): size mismatch for bitmap and alpha mask." );
// #i75531# the workaround below can go when
// X11SalGraphics::drawAlphaBitmap()'s render acceleration
- // can handle the bitmap depth mismatch directly
+ // can handle the bitmap depth mismatch directly
if( aBitmap.GetBitCount() < aMask.GetBitCount() )
aBitmap.Convert( BMP_CONVERSION_24BIT );
}
@@ -165,11 +165,11 @@ BitmapEx::BitmapEx( const Bitmap& rBmp, const AlphaMask& rAlphaMask ) :
// ------------------------------------------------------------------
BitmapEx::BitmapEx( const Bitmap& rBmp, const Color& rTransparentColor ) :
- aBitmap ( rBmp ),
- aBitmapSize ( aBitmap.GetSizePixel() ),
- aTransparentColor ( rTransparentColor ),
- eTransparent ( TRANSPARENT_BITMAP ),
- bAlpha ( FALSE )
+ aBitmap ( rBmp ),
+ aBitmapSize ( aBitmap.GetSizePixel() ),
+ aTransparentColor ( rTransparentColor ),
+ eTransparent ( TRANSPARENT_BITMAP ),
+ bAlpha ( FALSE )
{
aMask = aBitmap.CreateMask( aTransparentColor );
@@ -301,7 +301,7 @@ Bitmap BitmapEx::GetBitmap( const Color* pTransReplaceColor ) const
BitmapEx BitmapEx::GetColorTransformedBitmapEx( BmpColorMode eColorMode ) const
{
BitmapEx aRet;
-
+
if( BMP_COLOR_HIGHCONTRAST == eColorMode )
{
aRet = *this;
@@ -312,7 +312,7 @@ BitmapEx BitmapEx::GetColorTransformedBitmapEx( BmpColorMode eColorMode ) const
{
aRet = *this;
aRet.aBitmap = aRet.aBitmap.GetColorTransformedBitmap( eColorMode );
-
+
if( !aRet.aMask.IsEmpty() )
{
aRet.aMask.CombineSimple( aRet.aBitmap, BMP_COMBINE_OR );
@@ -368,8 +368,8 @@ ULONG BitmapEx::GetSizeBytes() const
ULONG BitmapEx::GetChecksum() const
{
- sal_uInt32 nCrc = aBitmap.GetChecksum();
- SVBT32 aBT32;
+ sal_uInt32 nCrc = aBitmap.GetChecksum();
+ SVBT32 aBT32;
UInt32ToSVBT32( (long) eTransparent, aBT32 );
nCrc = rtl_crc32( nCrc, aBT32, 4 );
@@ -615,8 +615,8 @@ BOOL BitmapEx::CopyPixel( const Rectangle& rRectDst, const Rectangle& rRectSrc,
}
else
{
- sal_uInt8 cBlack = 0;
- AlphaMask* pAlpha = new AlphaMask( GetSizePixel(), &cBlack );
+ sal_uInt8 cBlack = 0;
+ AlphaMask* pAlpha = new AlphaMask( GetSizePixel(), &cBlack );
aMask = pAlpha->ImplGetBitmap();
delete pAlpha;
@@ -644,7 +644,7 @@ BOOL BitmapEx::CopyPixel( const Rectangle& rRectDst, const Rectangle& rRectSrc,
}
else if( IsAlpha() )
{
- sal_uInt8 cBlack = 0;
+ sal_uInt8 cBlack = 0;
const AlphaMask aAlphaSrc( pBmpExSrc->GetSizePixel(), &cBlack );
aMask.CopyPixel( rRectDst, rRectSrc, &aAlphaSrc.ImplGetBitmap() );
@@ -911,8 +911,8 @@ SvStream& operator>>( SvStream& rIStm, BitmapEx& rBitmapEx )
if( !rIStm.GetError() )
{
const ULONG nStmPos = rIStm.Tell();
- UINT32 nMagic1 = 0;
- UINT32 nMagic2 = 0;
+ UINT32 nMagic1 = 0;
+ UINT32 nMagic2 = 0;
rIStm >> nMagic1 >> nMagic2;
diff --git a/vcl/source/gdi/bmpacc.cxx b/vcl/source/gdi/bmpacc.cxx
index 51b27501ddc6..1d742672853f 100644
--- a/vcl/source/gdi/bmpacc.cxx
+++ b/vcl/source/gdi/bmpacc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,11 +39,11 @@
// --------------------
BitmapReadAccess::BitmapReadAccess( Bitmap& rBitmap, BOOL bModify ) :
- mpBuffer ( NULL ),
- mpScanBuf ( NULL ),
- mFncGetPixel ( NULL ),
- mFncSetPixel ( NULL ),
- mbModify ( bModify )
+ mpBuffer ( NULL ),
+ mpScanBuf ( NULL ),
+ mFncGetPixel ( NULL ),
+ mFncSetPixel ( NULL ),
+ mbModify ( bModify )
{
ImplCreate( rBitmap );
}
@@ -51,11 +51,11 @@ BitmapReadAccess::BitmapReadAccess( Bitmap& rBitmap, BOOL bModify ) :
// ------------------------------------------------------------------
BitmapReadAccess::BitmapReadAccess( Bitmap& rBitmap ) :
- mpBuffer ( NULL ),
- mpScanBuf ( NULL ),
- mFncGetPixel ( NULL ),
- mFncSetPixel ( NULL ),
- mbModify ( FALSE )
+ mpBuffer ( NULL ),
+ mpScanBuf ( NULL ),
+ mFncGetPixel ( NULL ),
+ mFncSetPixel ( NULL ),
+ mbModify ( FALSE )
{
ImplCreate( rBitmap );
}
@@ -106,8 +106,8 @@ void BitmapReadAccess::ImplCreate( Bitmap& rBitmap )
if( mpBuffer )
{
- const long nHeight = mpBuffer->mnHeight;
- Scanline pTmpLine = mpBuffer->mpBits;
+ const long nHeight = mpBuffer->mnHeight;
+ Scanline pTmpLine = mpBuffer->mpBits;
mpScanBuf = new Scanline[ nHeight ];
maColorMask = mpBuffer->maColorMask;
@@ -266,13 +266,13 @@ void BitmapReadAccess::ImplZeroInitUnusedBits()
if( nLeftOverBits != 0 ) // else there is really nothing to do
{
const sal_uInt32 nBytes = (nLeftOverBits + 7U) >> 3U;
- sal_uInt8 nMask;
-
+ sal_uInt8 nMask;
+
if( bMsb )
nMask = static_cast<sal_uInt8>(0xffU << (nLeftOverBits & 3UL));
else
nMask = static_cast<sal_uInt8>(0xffU >> (nLeftOverBits & 3UL));
-
+
BYTE* pLastBytes = (BYTE*)GetBuffer() + ( nScanSize - nBytes );
for( sal_uInt32 i = 0; i < nHeight; i++, pLastBytes += nScanSize )
{
@@ -284,8 +284,8 @@ void BitmapReadAccess::ImplZeroInitUnusedBits()
}
else if( nBits & 0x1f )
{
- sal_uInt32 nMask = 0xffffffff << ( ( nScanSize << 3 ) - nBits );
- BYTE* pLast4Bytes = (BYTE*) GetBuffer() + ( nScanSize - 4 );
+ sal_uInt32 nMask = 0xffffffff << ( ( nScanSize << 3 ) - nBits );
+ BYTE* pLast4Bytes = (BYTE*) GetBuffer() + ( nScanSize - 4 );
#ifdef OSL_LITENDIAN
nMask = SWAPLONG( nMask );
@@ -394,22 +394,22 @@ void BitmapWriteAccess::CopyScanline( long nY, ConstScanline aSrcScanline,
switch( nFormat )
{
- case( BMP_FORMAT_1BIT_MSB_PAL ): pFncGetPixel = GetPixelFor_1BIT_MSB_PAL; break;
- case( BMP_FORMAT_1BIT_LSB_PAL ): pFncGetPixel = GetPixelFor_1BIT_LSB_PAL; break;
- case( BMP_FORMAT_4BIT_MSN_PAL ): pFncGetPixel = GetPixelFor_4BIT_MSN_PAL; break;
- case( BMP_FORMAT_4BIT_LSN_PAL ): pFncGetPixel = GetPixelFor_4BIT_LSN_PAL; break;
- case( BMP_FORMAT_8BIT_PAL ): pFncGetPixel = GetPixelFor_8BIT_PAL; break;
- case( BMP_FORMAT_8BIT_TC_MASK ): pFncGetPixel = GetPixelFor_8BIT_TC_MASK; break;
- case( BMP_FORMAT_16BIT_TC_MSB_MASK ): pFncGetPixel = GetPixelFor_16BIT_TC_MSB_MASK; break;
- case( BMP_FORMAT_16BIT_TC_LSB_MASK ): pFncGetPixel = GetPixelFor_16BIT_TC_LSB_MASK; break;
- case( BMP_FORMAT_24BIT_TC_BGR ): pFncGetPixel = GetPixelFor_24BIT_TC_BGR; break;
- case( BMP_FORMAT_24BIT_TC_RGB ): pFncGetPixel = GetPixelFor_24BIT_TC_RGB; break;
- case( BMP_FORMAT_24BIT_TC_MASK ): pFncGetPixel = GetPixelFor_24BIT_TC_MASK; break;
- case( BMP_FORMAT_32BIT_TC_ABGR ): pFncGetPixel = GetPixelFor_32BIT_TC_ABGR; break;
- case( BMP_FORMAT_32BIT_TC_ARGB ): pFncGetPixel = GetPixelFor_32BIT_TC_ARGB; break;
- case( BMP_FORMAT_32BIT_TC_BGRA ): pFncGetPixel = GetPixelFor_32BIT_TC_BGRA; break;
- case( BMP_FORMAT_32BIT_TC_RGBA ): pFncGetPixel = GetPixelFor_32BIT_TC_RGBA; break;
- case( BMP_FORMAT_32BIT_TC_MASK ): pFncGetPixel = GetPixelFor_32BIT_TC_MASK; break;
+ case( BMP_FORMAT_1BIT_MSB_PAL ): pFncGetPixel = GetPixelFor_1BIT_MSB_PAL; break;
+ case( BMP_FORMAT_1BIT_LSB_PAL ): pFncGetPixel = GetPixelFor_1BIT_LSB_PAL; break;
+ case( BMP_FORMAT_4BIT_MSN_PAL ): pFncGetPixel = GetPixelFor_4BIT_MSN_PAL; break;
+ case( BMP_FORMAT_4BIT_LSN_PAL ): pFncGetPixel = GetPixelFor_4BIT_LSN_PAL; break;
+ case( BMP_FORMAT_8BIT_PAL ): pFncGetPixel = GetPixelFor_8BIT_PAL; break;
+ case( BMP_FORMAT_8BIT_TC_MASK ): pFncGetPixel = GetPixelFor_8BIT_TC_MASK; break;
+ case( BMP_FORMAT_16BIT_TC_MSB_MASK ): pFncGetPixel = GetPixelFor_16BIT_TC_MSB_MASK; break;
+ case( BMP_FORMAT_16BIT_TC_LSB_MASK ): pFncGetPixel = GetPixelFor_16BIT_TC_LSB_MASK; break;
+ case( BMP_FORMAT_24BIT_TC_BGR ): pFncGetPixel = GetPixelFor_24BIT_TC_BGR; break;
+ case( BMP_FORMAT_24BIT_TC_RGB ): pFncGetPixel = GetPixelFor_24BIT_TC_RGB; break;
+ case( BMP_FORMAT_24BIT_TC_MASK ): pFncGetPixel = GetPixelFor_24BIT_TC_MASK; break;
+ case( BMP_FORMAT_32BIT_TC_ABGR ): pFncGetPixel = GetPixelFor_32BIT_TC_ABGR; break;
+ case( BMP_FORMAT_32BIT_TC_ARGB ): pFncGetPixel = GetPixelFor_32BIT_TC_ARGB; break;
+ case( BMP_FORMAT_32BIT_TC_BGRA ): pFncGetPixel = GetPixelFor_32BIT_TC_BGRA; break;
+ case( BMP_FORMAT_32BIT_TC_RGBA ): pFncGetPixel = GetPixelFor_32BIT_TC_RGBA; break;
+ case( BMP_FORMAT_32BIT_TC_MASK ): pFncGetPixel = GetPixelFor_32BIT_TC_MASK; break;
default:
pFncGetPixel = NULL;
@@ -437,7 +437,7 @@ void BitmapWriteAccess::CopyBuffer( const BitmapReadAccess& rReadAcc )
if( ( GetScanlineFormat() == rReadAcc.GetScanlineFormat() ) &&
( GetScanlineSize() == rReadAcc.GetScanlineSize() ) )
{
- const long nHeight = Min( mpBuffer->mnHeight, rReadAcc.Height() );
+ const long nHeight = Min( mpBuffer->mnHeight, rReadAcc.Height() );
const ULONG nCount = nHeight * mpBuffer->mnScanlineSize;
memcpy( mpBuffer->mpBits, rReadAcc.GetBuffer(), nCount );
diff --git a/vcl/source/gdi/bmpacc2.cxx b/vcl/source/gdi/bmpacc2.cxx
index 6cff281556ab..34f56c34e6f5 100644
--- a/vcl/source/gdi/bmpacc2.cxx
+++ b/vcl/source/gdi/bmpacc2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,7 +80,7 @@ IMPL_FORMAT_SETPIXEL_NOMASK( _4BIT_MSN_PAL )
{
BYTE& rByte = pScanline[ nX >> 1 ];
- ( nX & 1 ) ? ( rByte &= 0xf0, rByte |= ( rBitmapColor.GetIndex() & 0x0f ) ) :
+ ( nX & 1 ) ? ( rByte &= 0xf0, rByte |= ( rBitmapColor.GetIndex() & 0x0f ) ) :
( rByte &= 0x0f, rByte |= ( rBitmapColor.GetIndex() << 4 ) );
}
@@ -97,7 +97,7 @@ IMPL_FORMAT_SETPIXEL_NOMASK( _4BIT_LSN_PAL )
{
BYTE& rByte = pScanline[ nX >> 1 ];
- ( nX & 1 ) ? ( rByte &= 0x0f, rByte |= ( rBitmapColor.GetIndex() << 4 ) ) :
+ ( nX & 1 ) ? ( rByte &= 0x0f, rByte |= ( rBitmapColor.GetIndex() << 4 ) ) :
( rByte &= 0xf0, rByte |= ( rBitmapColor.GetIndex() & 0x0f ) );
}
@@ -111,7 +111,7 @@ IMPL_FORMAT_GETPIXEL_NOMASK( _8BIT_PAL )
// ------------------------------------------------------------------
IMPL_FORMAT_SETPIXEL_NOMASK( _8BIT_PAL )
-{
+{
pScanline[ nX ] = rBitmapColor.GetIndex();
}
@@ -285,7 +285,7 @@ IMPL_FORMAT_GETPIXEL_NOMASK( _32BIT_TC_BGRA )
// ------------------------------------------------------------------
IMPL_FORMAT_SETPIXEL_NOMASK( _32BIT_TC_BGRA )
-{
+{
*( pScanline = pScanline + ( nX << 2 ) )++ = rBitmapColor.GetBlue();
*pScanline++ = rBitmapColor.GetGreen();
*pScanline++ = rBitmapColor.GetRed();
diff --git a/vcl/source/gdi/bmpacc3.cxx b/vcl/source/gdi/bmpacc3.cxx
index 55f4a8b412a6..50fdcfac9ece 100644
--- a/vcl/source/gdi/bmpacc3.cxx
+++ b/vcl/source/gdi/bmpacc3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ void BitmapWriteAccess::SetLineColor()
void BitmapWriteAccess::SetLineColor( const Color& rColor )
{
delete mpLineColor;
-
+
if( rColor.GetTransparency() == 255 )
mpLineColor = NULL;
else
@@ -62,12 +62,12 @@ void BitmapWriteAccess::SetLineColor( const Color& rColor )
Color BitmapWriteAccess::GetLineColor() const
{
Color aRet;
-
+
if( mpLineColor )
aRet = (const Color&) *mpLineColor;
else
aRet.SetTransparency( 255 );
-
+
return aRet;
}
@@ -84,7 +84,7 @@ void BitmapWriteAccess::SetFillColor()
void BitmapWriteAccess::SetFillColor( const Color& rColor )
{
delete mpFillColor;
-
+
if( rColor.GetTransparency() == 255 )
mpFillColor = NULL;
else
@@ -96,7 +96,7 @@ void BitmapWriteAccess::SetFillColor( const Color& rColor )
Color BitmapWriteAccess::GetFillColor() const
{
Color aRet;
-
+
if( mpFillColor )
aRet = (const Color&) *mpFillColor;
else
@@ -119,9 +119,9 @@ void BitmapWriteAccess::Erase( const Color& rColor )
return;
// use the canonical method to clear the bitmap
- BitmapColor* pOldFillColor = mpFillColor ? new BitmapColor( *mpFillColor ) : NULL;
- const Point aPoint;
- const Rectangle aRect( aPoint, maBitmap.GetSizePixel() );
+ BitmapColor* pOldFillColor = mpFillColor ? new BitmapColor( *mpFillColor ) : NULL;
+ const Point aPoint;
+ const Rectangle aRect( aPoint, maBitmap.GetSizePixel() );
SetFillColor( rColor );
FillRect( aRect );
@@ -135,17 +135,17 @@ void BitmapWriteAccess::DrawLine( const Point& rStart, const Point& rEnd )
{
if( mpLineColor )
{
- const BitmapColor& rLineColor = *mpLineColor;
- long nX, nY;
-
+ const BitmapColor& rLineColor = *mpLineColor;
+ long nX, nY;
+
if ( rStart.X() == rEnd.X() )
{
// vertikale Line
const long nEndY = rEnd.Y();
-
+
nX = rStart.X();
nY = rStart.Y();
-
+
if ( nEndY > nY )
{
for (; nY <= nEndY; nY++ )
@@ -161,10 +161,10 @@ void BitmapWriteAccess::DrawLine( const Point& rStart, const Point& rEnd )
{
// horizontale Line
const long nEndX = rEnd.X();
-
+
nX = rStart.X();
nY = rStart.Y();
-
+
if ( nEndX > nX )
{
for (; nX <= nEndX; nX++ )
@@ -178,13 +178,13 @@ void BitmapWriteAccess::DrawLine( const Point& rStart, const Point& rEnd )
}
else
{
- const long nDX = labs( rEnd.X() - rStart.X() );
- const long nDY = labs( rEnd.Y() - rStart.Y() );
- long nX1;
- long nY1;
- long nX2;
- long nY2;
-
+ const long nDX = labs( rEnd.X() - rStart.X() );
+ const long nDY = labs( rEnd.Y() - rStart.Y() );
+ long nX1;
+ long nY1;
+ long nX2;
+ long nY2;
+
if ( nDX >= nDY )
{
if ( rStart.X() < rEnd.X() )
@@ -201,22 +201,22 @@ void BitmapWriteAccess::DrawLine( const Point& rStart, const Point& rEnd )
nX2 = rStart.X();
nY2 = rStart.Y();
}
-
- const long nDYX = ( nDY - nDX ) << 1;
- const long nDY2 = nDY << 1;
- long nD = nDY2 - nDX;
- BOOL bPos = nY1 < nY2;
-
+
+ const long nDYX = ( nDY - nDX ) << 1;
+ const long nDY2 = nDY << 1;
+ long nD = nDY2 - nDX;
+ BOOL bPos = nY1 < nY2;
+
for ( nX = nX1, nY = nY1; nX <= nX2; nX++ )
{
SetPixel( nY, nX, rLineColor );
-
+
if ( nD < 0 )
nD += nDY2;
else
{
nD += nDYX;
-
+
if ( bPos )
nY++;
else
@@ -240,22 +240,22 @@ void BitmapWriteAccess::DrawLine( const Point& rStart, const Point& rEnd )
nX2 = rStart.X();
nY2 = rStart.Y();
}
-
- const long nDYX = ( nDX - nDY ) << 1;
- const long nDY2 = nDX << 1;
- long nD = nDY2 - nDY;
- BOOL bPos = nX1 < nX2;
-
+
+ const long nDYX = ( nDX - nDY ) << 1;
+ const long nDY2 = nDX << 1;
+ long nD = nDY2 - nDY;
+ BOOL bPos = nX1 < nX2;
+
for ( nX = nX1, nY = nY1; nY <= nY2; nY++ )
{
SetPixel( nY, nX, rLineColor );
-
+
if ( nD < 0 )
nD += nDY2;
else
{
nD += nDYX;
-
+
if ( bPos )
nX++;
else
@@ -273,19 +273,19 @@ void BitmapWriteAccess::FillRect( const Rectangle& rRect )
{
if( mpFillColor )
{
- const BitmapColor& rFillColor = *mpFillColor;
- Point aPoint;
- Rectangle aRect( aPoint, maBitmap.GetSizePixel() );
+ const BitmapColor& rFillColor = *mpFillColor;
+ Point aPoint;
+ Rectangle aRect( aPoint, maBitmap.GetSizePixel() );
aRect.Intersection( rRect );
if( !aRect.IsEmpty() )
{
- const long nStartX = rRect.Left();
- const long nStartY = rRect.Top();
- const long nEndX = rRect.Right();
- const long nEndY = rRect.Bottom();
-
+ const long nStartX = rRect.Left();
+ const long nStartY = rRect.Top();
+ const long nEndX = rRect.Right();
+ const long nEndY = rRect.Bottom();
+
for( long nY = nStartY; nY <= nEndY; nY++ )
for( long nX = nStartX; nX <= nEndX; nX++ )
SetPixel( nY, nX, rFillColor );
@@ -299,7 +299,7 @@ void BitmapWriteAccess::DrawRect( const Rectangle& rRect )
{
if( mpFillColor )
FillRect( rRect );
-
+
if( mpLineColor && ( !mpFillColor || ( *mpFillColor != *mpLineColor ) ) )
{
DrawLine( rRect.TopLeft(), rRect.TopRight() );
@@ -317,9 +317,9 @@ void BitmapWriteAccess::FillPolygon( const Polygon& rPoly )
if( nSize && mpFillColor )
{
- const BitmapColor& rFillColor = *mpFillColor;
- Region aRegion( rPoly );
- Rectangle aRect;
+ const BitmapColor& rFillColor = *mpFillColor;
+ Region aRegion( rPoly );
+ Rectangle aRect;
aRegion.Intersect( Rectangle( Point(), Size( Width(), Height() ) ) );
@@ -364,16 +364,16 @@ void BitmapWriteAccess::FillPolyPolygon( const PolyPolygon& rPolyPoly )
if( nCount && mpFillColor )
{
- const BitmapColor& rFillColor = *mpFillColor;
- Region aRegion( rPolyPoly );
- Rectangle aRect;
+ const BitmapColor& rFillColor = *mpFillColor;
+ Region aRegion( rPolyPoly );
+ Rectangle aRect;
aRegion.Intersect( Rectangle( Point(), Size( Width(), Height() ) ) );
if( !aRegion.IsEmpty() )
{
RegionHandle aRegHandle( aRegion.BeginEnumRects() );
-
+
while( aRegion.GetNextEnumRect( aRegHandle, aRect ) )
for( long nY = aRect.Top(), nEndY = aRect.Bottom(); nY <= nEndY; nY++ )
for( long nX = aRect.Left(), nEndX = aRect.Right(); nX <= nEndX; nX++ )
@@ -390,13 +390,13 @@ void BitmapWriteAccess::DrawPolyPolygon( const PolyPolygon& rPolyPoly )
{
if( mpFillColor )
FillPolyPolygon( rPolyPoly );
-
+
if( mpLineColor && ( !mpFillColor || ( *mpFillColor != *mpLineColor ) ) )
{
for( USHORT n = 0, nCount = rPolyPoly.Count(); n < nCount; )
{
- const Polygon& rPoly = rPolyPoly[ n++ ];
- const USHORT nSize = rPoly.GetSize();
+ const Polygon& rPoly = rPolyPoly[ n++ ];
+ const USHORT nSize = rPoly.GetSize();
if( nSize )
{
diff --git a/vcl/source/gdi/bmpconv.cxx b/vcl/source/gdi/bmpconv.cxx
index c47b3ca4908d..94c913c68a90 100644
--- a/vcl/source/gdi/bmpconv.cxx
+++ b/vcl/source/gdi/bmpconv.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,12 +51,12 @@ namespace vcl {
class BmpTransporter :
public cppu::WeakImplHelper1< com::sun::star::awt::XBitmap >
{
- Sequence<sal_Int8> m_aBM;
- com::sun::star::awt::Size m_aSize;
+ Sequence<sal_Int8> m_aBM;
+ com::sun::star::awt::Size m_aSize;
public:
BmpTransporter( const Bitmap& rBM );
virtual ~BmpTransporter();
-
+
virtual com::sun::star::awt::Size SAL_CALL getSize() throw();
virtual Sequence< sal_Int8 > SAL_CALL getDIB() throw();
virtual Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw();
@@ -68,7 +68,7 @@ class BmpConverter :
public:
BmpConverter();
virtual ~BmpConverter();
-
+
virtual Reference< XIntrospectionAccess > SAL_CALL getIntrospection() throw();
virtual void SAL_CALL setValue( const OUString& rProperty, const Any& rValue )
throw( UnknownPropertyException );
@@ -76,7 +76,7 @@ public:
throw( UnknownPropertyException );
virtual sal_Bool SAL_CALL hasMethod( const OUString& rName ) throw();
virtual sal_Bool SAL_CALL hasProperty( const OUString& rProp ) throw();
-
+
virtual Any SAL_CALL invoke( const OUString& rFunction,
const Sequence< Any >& rParams,
Sequence< sal_Int16 >& rOutParamIndex,
@@ -169,10 +169,10 @@ Any SAL_CALL BmpConverter::invoke(
{
switch( nTargetDepth )
{
- case 1: aBM.Convert( BMP_CONVERSION_1BIT_THRESHOLD );break;
- case 4: aBM.ReduceColors( BMP_CONVERSION_4BIT_COLORS );break;
- case 8: aBM.ReduceColors( BMP_CONVERSION_8BIT_COLORS );break;
- case 24: aBM.Convert( BMP_CONVERSION_24BIT );break;
+ case 1: aBM.Convert( BMP_CONVERSION_1BIT_THRESHOLD );break;
+ case 4: aBM.ReduceColors( BMP_CONVERSION_4BIT_COLORS );break;
+ case 8: aBM.ReduceColors( BMP_CONVERSION_8BIT_COLORS );break;
+ case 24: aBM.Convert( BMP_CONVERSION_24BIT );break;
}
}
xBM = new BmpTransporter( aBM );
diff --git a/vcl/source/gdi/bmpfast.cxx b/vcl/source/gdi/bmpfast.cxx
index 4c9ab03ea9c1..afccabc3309f 100644
--- a/vcl/source/gdi/bmpfast.cxx
+++ b/vcl/source/gdi/bmpfast.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -482,7 +482,7 @@ inline bool ImplConvertFromBitmap( BitmapBuffer& rDst, const BitmapBuffer& rSrc
case BMP_FORMAT_32BIT_TC_RGBA:
return ImplConvertToBitmap<BMP_FORMAT_32BIT_TC_RGBA>( aSrcType, rDst, rSrc );
}
-
+
#ifdef DEBUG
static int nNotAccelerated = 0;
if( rSrc.mnWidth * rSrc.mnHeight >= 4000 )
diff --git a/vcl/source/gdi/configsettings.cxx b/vcl/source/gdi/configsettings.cxx
index c8be4e9145d3..004dc4db1f6b 100644
--- a/vcl/source/gdi/configsettings.cxx
+++ b/vcl/source/gdi/configsettings.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ using namespace com::sun::star::container;
#define SETTINGS_CONFIGNODE "VCL/Settings"
/*
- * SettingsConfigItem::get
+ * SettingsConfigItem::get
*/
SettingsConfigItem* SettingsConfigItem::get()
@@ -104,10 +104,10 @@ void SettingsConfigItem::Commit()
String aName( aKeyName );
aName.Append( '/' );
aName.Append( String( it->first ) );
- pValues[nIndex].Name = aName;
- pValues[nIndex].Handle = 0;
+ pValues[nIndex].Name = aName;
+ pValues[nIndex].Handle = 0;
pValues[nIndex].Value <<= it->second;
- pValues[nIndex].State = PropertyState_DIRECT_VALUE;
+ pValues[nIndex].State = PropertyState_DIRECT_VALUE;
nIndex++;
}
ReplaceSetProperties( aKeyName, aValues );
diff --git a/vcl/source/gdi/cvtgrf.cxx b/vcl/source/gdi/cvtgrf.cxx
index 4b2522601c7b..ae033d497778 100644
--- a/vcl/source/gdi/cvtgrf.cxx
+++ b/vcl/source/gdi/cvtgrf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@
#include <vcl/cvtgrf.hxx>
// --------------
-// - Callback -
+// - Callback -
// --------------
// --------------------
@@ -65,8 +65,8 @@ ULONG GraphicConverter::ImplConvert( ULONG nInFormat, void* pInBuffer, ULONG nIn
{
if( ( nInFormat == CVT_SVM ) || ( nInFormat == CVT_BMP ) )
{
- SvMemoryStream aIStm;
- Graphic aGraphic;
+ SvMemoryStream aIStm;
+ Graphic aGraphic;
aIStm.SetBuffer( (char*) pInBuffer, nInBufSize, FALSE, nInBufSize );
aIStm >> aGraphic;
@@ -76,7 +76,7 @@ ULONG GraphicConverter::ImplConvert( ULONG nInFormat, void* pInBuffer, ULONG nIn
SvMemoryStream aOStm( 64535, 64535 );
mpConvertData = new ConvertData( aGraphic, aOStm, nOutFormat );
-
+
if( maFilterHdl.IsSet() && maFilterHdl.Call( mpConvertData ) )
{
nRetBufSize = aOStm.Seek( STREAM_SEEK_TO_END );
@@ -90,15 +90,15 @@ ULONG GraphicConverter::ImplConvert( ULONG nInFormat, void* pInBuffer, ULONG nIn
}
else if( ( nOutFormat == CVT_SVM ) || ( nOutFormat == CVT_BMP ) )
{
- SvMemoryStream aIStm;
+ SvMemoryStream aIStm;
aIStm.SetBuffer( (char*) pInBuffer, nInBufSize, FALSE, nInBufSize );
mpConvertData = new ConvertData( Graphic(), aIStm, nInFormat );
-
+
if( maFilterHdl.IsSet() && maFilterHdl.Call( mpConvertData ) )
{
- SvMemoryStream aOStm( 645535, 64535 );
- Graphic& rGraphic = mpConvertData->maGraphic;
+ SvMemoryStream aOStm( 645535, 64535 );
+ Graphic& rGraphic = mpConvertData->maGraphic;
if( ( rGraphic.GetType() == GRAPHIC_BITMAP ) && ( CVT_SVM == nOutFormat ) )
{
@@ -134,13 +134,13 @@ ULONG GraphicConverter::ImplConvert( ULONG nInFormat, void* pInBuffer, ULONG nIn
ULONG GraphicConverter::Import( SvStream& rIStm, Graphic& rGraphic, ULONG nFormat )
{
- GraphicConverter* pCvt = ImplGetSVData()->maGDIData.mpGrfConverter;
- ULONG nRet = ERRCODE_IO_GENERAL;
+ GraphicConverter* pCvt = ImplGetSVData()->maGDIData.mpGrfConverter;
+ ULONG nRet = ERRCODE_IO_GENERAL;
if( pCvt && pCvt->GetFilterHdl().IsSet() )
{
- ConvertData aData( rGraphic, rIStm, nFormat );
-
+ ConvertData aData( rGraphic, rIStm, nFormat );
+
if( pCvt->GetFilterHdl().Call( &aData ) )
{
rGraphic = aData.maGraphic;
@@ -149,7 +149,7 @@ ULONG GraphicConverter::Import( SvStream& rIStm, Graphic& rGraphic, ULONG nForma
else if( rIStm.GetError() )
nRet = rIStm.GetError();
}
-
+
return nRet;
}
@@ -157,19 +157,19 @@ ULONG GraphicConverter::Import( SvStream& rIStm, Graphic& rGraphic, ULONG nForma
ULONG GraphicConverter::Export( SvStream& rOStm, const Graphic& rGraphic, ULONG nFormat )
{
- GraphicConverter* pCvt = ImplGetSVData()->maGDIData.mpGrfConverter;
- ULONG nRet = ERRCODE_IO_GENERAL;
+ GraphicConverter* pCvt = ImplGetSVData()->maGDIData.mpGrfConverter;
+ ULONG nRet = ERRCODE_IO_GENERAL;
if( pCvt && pCvt->GetFilterHdl().IsSet() )
{
- ConvertData aData( rGraphic, rOStm, nFormat );
-
+ ConvertData aData( rGraphic, rOStm, nFormat );
+
if( pCvt->GetFilterHdl().Call( &aData ) )
nRet = ERRCODE_NONE;
else if( rOStm.GetError() )
nRet = rOStm.GetError();
}
-
+
return nRet;
}
diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx
index b32f4933ace7..a2bbd6ee0e6e 100644
--- a/vcl/source/gdi/cvtsvm.cxx
+++ b/vcl/source/gdi/cvtsvm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ void ImplWriteRect( SvStream& rOStm, const Rectangle& rRect )
void ImplReadPoly( SvStream& rIStm, Polygon& rPoly )
{
- INT32 nSize;
+ INT32 nSize;
rIStm >> nSize;
rPoly = Polygon( (USHORT) nSize );
@@ -89,7 +89,7 @@ void ImplReadPoly( SvStream& rIStm, Polygon& rPoly )
void ImplReadPolyPoly( SvStream& rIStm, PolyPolygon& rPolyPoly )
{
Polygon aPoly;
- INT32 nPolyCount;
+ INT32 nPolyCount;
rIStm >> nPolyCount;
@@ -104,9 +104,9 @@ void ImplReadPolyPoly( SvStream& rIStm, PolyPolygon& rPolyPoly )
void ImplWritePolyPolyAction( SvStream& rOStm, const PolyPolygon& rPolyPoly )
{
- const USHORT nPoly = rPolyPoly.Count();
- USHORT nPoints = 0;
- USHORT n;
+ const USHORT nPoly = rPolyPoly.Count();
+ USHORT nPoints = 0;
+ USHORT n;
for( n = 0; n < nPoly; n++ )
nPoints = sal::static_int_cast<USHORT>(nPoints + rPolyPoly[ n ].GetSize());
@@ -162,12 +162,12 @@ void ImplWriteColor( SvStream& rOStm, const Color& rColor )
void ImplReadMapMode( SvStream& rIStm, MapMode& rMapMode )
{
- Point aOrg;
- INT32 nXNum;
- INT32 nXDenom;
- INT32 nYNum;
- INT32 nYDenom;
- INT16 nUnit;
+ Point aOrg;
+ INT32 nXNum;
+ INT32 nXDenom;
+ INT32 nYNum;
+ INT32 nYDenom;
+ INT16 nUnit;
rIStm >> nUnit >> aOrg >> nXNum >> nXDenom >> nYNum >> nYDenom;
rMapMode = MapMode( (MapUnit) nUnit, aOrg, Fraction( nXNum, nXDenom ), Fraction( nYNum, nYDenom ) );
@@ -245,8 +245,8 @@ void ImplWriteFillColor( SvStream& rOStm, const Color& rColor, INT16 nStyle )
void ImplWriteFont( SvStream& rOStm, const Font& rFont,
rtl_TextEncoding& rActualCharSet )
{
- char aName[32];
- short nWeight;
+ char aName[32];
+ short nWeight;
ByteString aByteName( rFont.GetName(), rOStm.GetStreamCharSet() );
strncpy( aName, aByteName.GetBuffer(), 32 );
@@ -314,8 +314,8 @@ sal_Bool ImplWriteUnicodeComment( SvStream& rOStm, const String& rString )
xub_StrLen i, nStringLen = rString.Len();
if ( nStringLen )
{
- sal_uInt32 nSize = ( nStringLen << 1 ) + 4;
- sal_uInt16 nType = GDI_UNICODE_COMMENT;
+ sal_uInt32 nSize = ( nStringLen << 1 ) + 4;
+ sal_uInt16 nType = GDI_UNICODE_COMMENT;
rOStm << nType << nSize;
for ( i = 0; i < nStringLen; i++ )
@@ -334,12 +334,12 @@ void ImplReadUnicodeComment( sal_uInt32 nStrmPos, SvStream& rIStm, String& rStri
sal_uInt32 nOld = rIStm.Tell();
if ( nStrmPos )
{
- sal_uInt16 nType;
- sal_uInt32 nActionSize;
+ sal_uInt16 nType;
+ sal_uInt32 nActionSize;
xub_StrLen nStringLen;
-
+
rIStm.Seek( nStrmPos );
- rIStm >> nType
+ rIStm >> nType
>> nActionSize;
nStringLen = sal::static_int_cast<xub_StrLen>(( nActionSize - 4 ) >> 1);
@@ -401,14 +401,14 @@ bool ImplWriteExtendedPolyPolygonAction(SvStream& rOStm, const PolyPolygon& rPol
if((bOnlyWhenCurve && nAllFlagCount) || (!bOnlyWhenCurve && nAllPointCount))
{
rOStm << (INT16) GDI_EXTENDEDPOLYGON_ACTION;
-
+
const sal_Int32 nActionSize(
- 4 + // Action size
- 2 + // PolygonCount
- (nAllPolygonCount * 2) + // Points per polygon
- (nAllPointCount << 3) + // Points themselves
- nAllPolygonCount + // Bool if (when poly has points) it has flags, too
- nAllFlagCount); // Flags themselves
+ 4 + // Action size
+ 2 + // PolygonCount
+ (nAllPolygonCount * 2) + // Points per polygon
+ (nAllPointCount << 3) + // Points themselves
+ nAllPolygonCount + // Bool if (when poly has points) it has flags, too
+ nAllFlagCount); // Flags themselves
rOStm << nActionSize;
rOStm << (sal_uInt16)nAllPolygonCount;
@@ -509,26 +509,26 @@ SVMConverter::SVMConverter( SvStream& rStm, GDIMetaFile& rMtf, ULONG nConvertMod
void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
{
- const ULONG nPos = rIStm.Tell();
- const USHORT nOldFormat = rIStm.GetNumberFormatInt();
+ const ULONG nPos = rIStm.Tell();
+ const USHORT nOldFormat = rIStm.GetNumberFormatInt();
rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
- char aCode[ 5 ];
- Size aPrefSz;
- INT16 nSize;
- INT16 nVersion;
+ char aCode[ 5 ];
+ Size aPrefSz;
+ INT16 nSize;
+ INT16 nVersion;
// read header
- rIStm.Read( (char*) &aCode, sizeof( aCode ) ); // Kennung
- rIStm >> nSize; // Size
- rIStm >> nVersion; // Version
- rIStm >> aPrefSz.Width(); // PrefSize.Width()
- rIStm >> aPrefSz.Height(); // PrefSize.Height()
+ rIStm.Read( (char*) &aCode, sizeof( aCode ) ); // Kennung
+ rIStm >> nSize; // Size
+ rIStm >> nVersion; // Version
+ rIStm >> aPrefSz.Width(); // PrefSize.Width()
+ rIStm >> aPrefSz.Height(); // PrefSize.Height()
// check header-magic and version
if( rIStm.GetError()
- || ( memcmp( aCode, "SVGDI", sizeof( aCode ) ) != 0 )
+ || ( memcmp( aCode, "SVGDI", sizeof( aCode ) ) != 0 )
|| ( nVersion != 200 ) )
{
rIStm.SetError( SVSTREAM_FILEFORMAT_ERROR );
@@ -537,28 +537,28 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
return;
}
- LineInfo aLineInfo( LINE_NONE, 0 );
- Stack aLIStack;
- VirtualDevice aFontVDev;
- rtl_TextEncoding eActualCharSet = gsl_getSystemTextEncoding();
- BOOL bFatLine = FALSE;
+ LineInfo aLineInfo( LINE_NONE, 0 );
+ Stack aLIStack;
+ VirtualDevice aFontVDev;
+ rtl_TextEncoding eActualCharSet = gsl_getSystemTextEncoding();
+ BOOL bFatLine = FALSE;
// TODO: fix reindentation below if you can accept being blamed by the SCM
MapMode aMapMode;
- Polygon aActionPoly;
- Rectangle aRect;
- Point aPt, aPt1;
- Size aSz;
- Color aActionColor;
- INT32 nTmp, nTmp1, nActionSize;
- INT32 nActions;
- INT16 nType;
+ Polygon aActionPoly;
+ Rectangle aRect;
+ Point aPt, aPt1;
+ Size aSz;
+ Color aActionColor;
+ INT32 nTmp, nTmp1, nActionSize;
+ INT32 nActions;
+ INT16 nType;
- sal_uInt32 nUnicodeCommentStreamPos = 0;
- INT32 nUnicodeCommentActionNumber = 0;
+ sal_uInt32 nUnicodeCommentStreamPos = 0;
+ INT32 nUnicodeCommentActionNumber = 0;
- ImplReadMapMode( rIStm, aMapMode ); // MapMode
- rIStm >> nActions; // Action count
+ ImplReadMapMode( rIStm, aMapMode ); // MapMode
+ rIStm >> nActions; // Action count
rMtf.SetPrefSize( aPrefSz );
rMtf.SetPrefMapMode( aMapMode );
@@ -567,7 +567,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
for( INT32 i = 0L; i < nActions; i++ )
{
rIStm >> nType;
- sal_Int32 nActBegin = rIStm.Tell();
+ sal_Int32 nActBegin = rIStm.Tell();
rIStm >> nActionSize;
DBG_ASSERT( ( nType <= 33 ) || ( nType >= 1024 ), "Unknown GDIMetaAction while converting!" );
@@ -644,7 +644,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
{
rMtf.ReplaceAction(
new MetaPolyLineAction(
- aInputPolyPolygon.GetObject(0),
+ aInputPolyPolygon.GetObject(0),
pPolyLineAction->GetLineInfo()),
nLastPolygonAction);
pPolyLineAction->Delete();
@@ -834,12 +834,12 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_FONT_ACTION ):
{
- Font aFont;
- char aName[ 32 ];
- INT32 nWidth, nHeight;
- INT16 nCharSet, nFamily, nPitch, nAlign, nWeight, nUnderline, nStrikeout;
- INT16 nCharOrient, nLineOrient;
- BOOL bItalic, bOutline, bShadow, bTransparent;
+ Font aFont;
+ char aName[ 32 ];
+ INT32 nWidth, nHeight;
+ INT16 nCharSet, nFamily, nPitch, nAlign, nWeight, nUnderline, nStrikeout;
+ INT16 nCharOrient, nLineOrient;
+ BOOL bItalic, bOutline, bShadow, bTransparent;
ImplReadColor( rIStm, aActionColor ); aFont.SetColor( aActionColor );
ImplReadColor( rIStm, aActionColor ); aFont.SetFillColor( aActionColor );
@@ -868,7 +868,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
eActualCharSet = aFont.GetCharSet();
if ( eActualCharSet == RTL_TEXTENCODING_DONTKNOW )
eActualCharSet = gsl_getSystemTextEncoding();
-
+
rMtf.AddAction( new MetaFontAction( aFont ) );
rMtf.AddAction( new MetaTextAlignAction( aFont.GetAlign() ) );
rMtf.AddAction( new MetaTextColorAction( aFont.GetColor() ) );
@@ -881,9 +881,9 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_TEXT_ACTION ):
{
- ByteString aByteStr;
- INT32 nIndex, nLen;
-
+ ByteString aByteStr;
+ INT32 nIndex, nLen;
+
rIStm >> aPt >> nIndex >> nLen >> nTmp;
if ( nTmp && ( static_cast< sal_uInt32 >( nTmp ) < ( SAL_MAX_UINT16 - 1 ) ) )
{
@@ -899,9 +899,9 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_TEXTARRAY_ACTION ):
{
- ByteString aByteStr;
- sal_Int32* pDXAry = NULL;
- INT32 nIndex, nLen, nAryLen;
+ ByteString aByteStr;
+ sal_Int32* pDXAry = NULL;
+ INT32 nIndex, nLen, nAryLen;
rIStm >> aPt >> nIndex >> nLen >> nTmp >> nAryLen;
if ( nTmp && ( static_cast< sal_uInt32 >( nTmp ) < ( SAL_MAX_UINT16 - 1 ) ) )
@@ -926,7 +926,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
sal_Int32* pTmpAry = new sal_Int32[nStrLen];
aFontVDev.GetTextArray( aStr, pTmpAry, (USHORT) nIndex, (USHORT) nLen );
-
+
// now, the difference between the
// last and the second last DX array
// is the advancement for the last
@@ -960,8 +960,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_STRETCHTEXT_ACTION ):
{
- ByteString aByteStr;
- INT32 nIndex, nLen, nWidth;
+ ByteString aByteStr;
+ INT32 nIndex, nLen, nWidth;
rIStm >> aPt >> nIndex >> nLen >> nTmp >> nWidth;
if ( nTmp && ( static_cast< sal_uInt32 >( nTmp ) < ( SAL_MAX_INT16 - 1 ) ) )
@@ -996,8 +996,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_BITMAPSCALEPART_ACTION ):
{
- Bitmap aBmp;
- Size aSz2;
+ Bitmap aBmp;
+ Size aSz2;
rIStm >> aPt >> aSz >> aPt1 >> aSz2 >> aBmp;
rMtf.AddAction( new MetaBmpScalePartAction( aPt, aSz, aPt1, aSz2, aBmp ) );
@@ -1044,10 +1044,10 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_CLIPREGION_ACTION ):
{
- Region aRegion;
- INT16 nRegType;
- INT16 bIntersect;
- BOOL bClip = FALSE;
+ Region aRegion;
+ INT16 nRegType;
+ INT16 bIntersect;
+ BOOL bClip = FALSE;
rIStm >> nRegType >> bIntersect;
ImplReadRect( rIStm, aRect );
@@ -1078,7 +1078,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( 3 ):
{
PolyPolygon aPolyPoly;
- INT32 nPolyCount;
+ INT32 nPolyCount;
rIStm >> nPolyCount;
@@ -1117,8 +1117,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_RASTEROP_ACTION ):
{
- RasterOp eRasterOp;
- INT16 nRasterOp;
+ RasterOp eRasterOp;
+ INT16 nRasterOp;
rIStm >> nRasterOp;
@@ -1174,15 +1174,15 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_GRADIENT_ACTION ):
{
- Color aStartCol;
- Color aEndCol;
- INT16 nStyle;
- INT16 nAngle;
- INT16 nBorder;
- INT16 nOfsX;
- INT16 nOfsY;
- INT16 nIntensityStart;
- INT16 nIntensityEnd;
+ Color aStartCol;
+ Color aEndCol;
+ INT16 nStyle;
+ INT16 nAngle;
+ INT16 nBorder;
+ INT16 nOfsX;
+ INT16 nOfsY;
+ INT16 nIntensityStart;
+ INT16 nIntensityEnd;
ImplReadRect( rIStm, aRect );
rIStm >> nStyle;
@@ -1205,8 +1205,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_TRANSPARENT_COMMENT ):
{
PolyPolygon aPolyPoly;
- INT32 nFollowingActionCount;
- INT16 nTrans;
+ INT32 nFollowingActionCount;
+ INT16 nTrans;
rIStm >> aPolyPoly >> nTrans >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
@@ -1221,10 +1221,10 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_FLOATTRANSPARENT_COMMENT ):
{
GDIMetaFile aMtf;
- Point aPos;
- Size aSize;
- Gradient aGradient;
- INT32 nFollowingActionCount;
+ Point aPos;
+ Size aSize;
+ Gradient aGradient;
+ INT32 nFollowingActionCount;
rIStm >> aMtf >> aPos >> aSize >> aGradient >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
@@ -1239,8 +1239,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_HATCH_COMMENT ):
{
PolyPolygon aPolyPoly;
- Hatch aHatch;
- INT32 nFollowingActionCount;
+ Hatch aHatch;
+ INT32 nFollowingActionCount;
rIStm >> aPolyPoly >> aHatch >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
@@ -1254,9 +1254,9 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_REFPOINT_COMMENT ):
{
- Point aRefPoint;
- BOOL bSet;
- INT32 nFollowingActionCount;
+ Point aRefPoint;
+ BOOL bSet;
+ INT32 nFollowingActionCount;
rIStm >> aRefPoint >> bSet >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
@@ -1276,9 +1276,9 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_TEXTLINECOLOR_COMMENT ):
{
- Color aColor;
- BOOL bSet;
- INT32 nFollowingActionCount;
+ Color aColor;
+ BOOL bSet;
+ INT32 nFollowingActionCount;
rIStm >> aColor >> bSet >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
@@ -1292,11 +1292,11 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_TEXTLINE_COMMENT ):
{
- Point aStartPt;
- long nWidth;
+ Point aStartPt;
+ long nWidth;
sal_uInt32 nStrikeout;
sal_uInt32 nUnderline;
- INT32 nFollowingActionCount;
+ INT32 nFollowingActionCount;
rIStm >> aStartPt >> nWidth >> nStrikeout >> nUnderline >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
@@ -1314,8 +1314,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_GRADIENTEX_COMMENT ):
{
PolyPolygon aPolyPoly;
- Gradient aGradient;
- INT32 nFollowingActionCount;
+ Gradient aGradient;
+ INT32 nFollowingActionCount;
rIStm >> aPolyPoly >> aGradient >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
@@ -1329,11 +1329,11 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_COMMENT_COMMENT ):
{
- ByteString aComment;
- sal_Int32 nValue;
- sal_uInt32 nDataSize;
- BYTE* pData;
- INT32 nFollowingActionCount;
+ ByteString aComment;
+ sal_Int32 nValue;
+ sal_uInt32 nDataSize;
+ BYTE* pData;
+ INT32 nFollowingActionCount;
rIStm >> aComment >> nValue >> nDataSize;
@@ -1380,24 +1380,24 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf )
{
- ULONG nPos;
- ULONG nCountPos;
- Font aSaveFont;
- const USHORT nOldFormat = rOStm.GetNumberFormatInt();
- rtl_TextEncoding eActualCharSet = gsl_getSystemTextEncoding();
- const Size aPrefSize( rMtf.GetPrefSize() );
- BOOL bRop_0_1 = FALSE;
- VirtualDevice aSaveVDev;
- Color aLineCol( COL_BLACK );
- Stack aLineColStack;
+ ULONG nPos;
+ ULONG nCountPos;
+ Font aSaveFont;
+ const USHORT nOldFormat = rOStm.GetNumberFormatInt();
+ rtl_TextEncoding eActualCharSet = gsl_getSystemTextEncoding();
+ const Size aPrefSize( rMtf.GetPrefSize() );
+ BOOL bRop_0_1 = FALSE;
+ VirtualDevice aSaveVDev;
+ Color aLineCol( COL_BLACK );
+ Stack aLineColStack;
rOStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
//MagicCode schreiben
rOStm << "SVGDI"; // Kennung
nPos = rOStm.Tell();
- rOStm << (INT16) 42; // HeaderSize
- rOStm << (INT16) 200; // VERSION
+ rOStm << (INT16) 42; // HeaderSize
+ rOStm << (INT16) 200; // VERSION
rOStm << (INT32) aPrefSize.Width();
rOStm << (INT32) aPrefSize.Height();
ImplWriteMapMode( rOStm, rMtf.GetPrefMapMode() );
@@ -1498,12 +1498,12 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
{
ImplWritePopAction( rOStm );
nCount += 3;
-
+
if(bLineJoin)
{
nCount += 1;
}
-
+
if(bLineDashDot)
{
nCount += 1;
@@ -1577,10 +1577,10 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_CHORD_ACTION ):
{
- MetaChordAction* pAct = (MetaChordAction*) pAction;
- Polygon aChordPoly( pAct->GetRect(), pAct->GetStartPoint(),
+ MetaChordAction* pAct = (MetaChordAction*) pAction;
+ Polygon aChordPoly( pAct->GetRect(), pAct->GetStartPoint(),
pAct->GetEndPoint(), POLY_CHORD );
- const USHORT nPoints = aChordPoly.GetSize();
+ const USHORT nPoints = aChordPoly.GetSize();
rOStm << (INT16) GDI_POLYGON_ACTION;
rOStm << (INT32) ( 8 + ( nPoints << 3 ) );
@@ -1652,13 +1652,13 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
{
ImplWritePopAction( rOStm );
nCount += 3;
-
+
if(bLineJoin)
{
nCount += 1;
}
}
-
+
if(bLineDashDot)
{
nCount += 1;
@@ -1684,7 +1684,7 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm << aSimplePoly[ n ];
nCount++;
-
+
const PolyPolygon aPolyPolygon(pAct->GetPolygon());
if(ImplWriteExtendedPolyPolygonAction(rOStm, aPolyPolygon, true))
{
@@ -1698,7 +1698,7 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
MetaPolyPolygonAction* pAct = (MetaPolyPolygonAction*) pAction;
ImplWritePolyPolyAction( rOStm, pAct->GetPolyPolygon() );
nCount++;
-
+
if(ImplWriteExtendedPolyPolygonAction(rOStm, pAct->GetPolyPolygon(), true))
{
nCount++;
@@ -1709,9 +1709,9 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_TEXT_ACTION ):
{
MetaTextAction* pAct = (MetaTextAction*) pAction;
- String aUniText( pAct->GetText() );
- ByteString aText( aUniText, rActualCharSet );
- const ULONG nStrLen = aText.Len();
+ String aUniText( pAct->GetText() );
+ ByteString aText( aUniText, rActualCharSet );
+ const ULONG nStrLen = aText.Len();
if ( ImplWriteUnicodeComment( rOStm, aUniText ) )
nCount++;
@@ -1729,13 +1729,13 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_TEXTARRAY_ACTION ):
{
- MetaTextArrayAction* pAct = (MetaTextArrayAction*)pAction;
- ByteString aText( pAct->GetText(), rActualCharSet );
- String aUniText( pAct->GetText(), pAct->GetIndex(), pAct->GetLen() );
- ULONG nAryLen;
- ULONG nLen = pAct->GetLen();
- const ULONG nTextLen = aText.Len();
- sal_Int32* pDXArray = pAct->GetDXArray();
+ MetaTextArrayAction* pAct = (MetaTextArrayAction*)pAction;
+ ByteString aText( pAct->GetText(), rActualCharSet );
+ String aUniText( pAct->GetText(), pAct->GetIndex(), pAct->GetLen() );
+ ULONG nAryLen;
+ ULONG nLen = pAct->GetLen();
+ const ULONG nTextLen = aText.Len();
+ sal_Int32* pDXArray = pAct->GetDXArray();
if ( ImplWriteUnicodeComment( rOStm, aUniText ) )
nCount++;
@@ -1751,7 +1751,7 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
if( !pDXArray || !nLen )
nAryLen = 0;
else
- nAryLen = nLen; // #105987# Write out all of DX array
+ nAryLen = nLen; // #105987# Write out all of DX array
rOStm << (INT16) GDI_TEXTARRAY_ACTION;
rOStm << (INT32) ( 28 + ( nLen + 1 ) + ( nAryLen * 4 ) );
@@ -1771,10 +1771,10 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_STRETCHTEXT_ACTION ):
{
- MetaStretchTextAction* pAct = (MetaStretchTextAction*) pAction;
- String aUniText( pAct->GetText() );
- ByteString aText( aUniText, rActualCharSet );
- const ULONG nStrLen = aText.Len();
+ MetaStretchTextAction* pAct = (MetaStretchTextAction*) pAction;
+ String aUniText( pAct->GetText() );
+ ByteString aText( aUniText, rActualCharSet );
+ const ULONG nStrLen = aText.Len();
if ( ImplWriteUnicodeComment( rOStm, aUniText ) )
nCount++;
@@ -1833,8 +1833,8 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_BMPEX_ACTION ):
{
- MetaBmpExAction* pAct = (MetaBmpExAction*) pAction;
- const Bitmap aBmp( Graphic( pAct->GetBitmapEx() ).GetBitmap() );
+ MetaBmpExAction* pAct = (MetaBmpExAction*) pAction;
+ const Bitmap aBmp( Graphic( pAct->GetBitmapEx() ).GetBitmap() );
rOStm << (INT16) GDI_BITMAP_ACTION;
rOStm << (INT32) 12;
@@ -1846,8 +1846,8 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_BMPEXSCALE_ACTION ):
{
- MetaBmpExScaleAction* pAct = (MetaBmpExScaleAction*) pAction;
- const Bitmap aBmp( Graphic( pAct->GetBitmapEx() ).GetBitmap() );
+ MetaBmpExScaleAction* pAct = (MetaBmpExScaleAction*) pAction;
+ const Bitmap aBmp( Graphic( pAct->GetBitmapEx() ).GetBitmap() );
rOStm << (INT16) GDI_BITMAPSCALE_ACTION;
rOStm << (INT32) 20;
@@ -1861,7 +1861,7 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_BMPEXSCALEPART_ACTION ):
{
MetaBmpExScalePartAction* pAct = (MetaBmpExScalePartAction*) pAction;
- const Bitmap aBmp( Graphic( pAct->GetBitmapEx() ).GetBitmap() );
+ const Bitmap aBmp( Graphic( pAct->GetBitmapEx() ).GetBitmap() );
rOStm << (INT16) GDI_BITMAPSCALEPART_ACTION;
rOStm << (INT32) 36;
@@ -1877,7 +1877,7 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_GRADIENT_ACTION ):
{
MetaGradientAction* pAct = (MetaGradientAction*) pAction;
- const Gradient& rGrad = pAct->GetGradient();
+ const Gradient& rGrad = pAct->GetGradient();
rOStm << (INT16) GDI_GRADIENT_ACTION;
rOStm << (INT32) 46;
@@ -1898,7 +1898,7 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_GRADIENTEX_ACTION ):
{
const MetaGradientExAction* pA = (MetaGradientExAction*) pAction;
- ULONG nOldPos, nNewPos;
+ ULONG nOldPos, nNewPos;
// write RefPoint comment
rOStm << (INT16) GDI_GRADIENTEX_COMMENT;
@@ -1923,8 +1923,8 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_WALLPAPER_ACTION ):
{
- MetaWallpaperAction* pAct = (MetaWallpaperAction*) pAction;
- const Color& rColor = pAct->GetWallpaper().GetColor();
+ MetaWallpaperAction* pAct = (MetaWallpaperAction*) pAction;
+ const Color& rColor = pAct->GetWallpaper().GetColor();
ImplWritePushAction( rOStm );
ImplWriteLineColor( rOStm, rColor, 1 );
@@ -1943,9 +1943,9 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_CLIPREGION_ACTION ):
{
- MetaClipRegionAction* pAct = (MetaClipRegionAction*) pAction;
- const Region& rRegion = pAct->GetRegion();
- Rectangle aClipRect;
+ MetaClipRegionAction* pAct = (MetaClipRegionAction*) pAction;
+ const Region& rRegion = pAct->GetRegion();
+ Rectangle aClipRect;
rOStm << (INT16) GDI_CLIPREGION_ACTION;
rOStm << (INT32) 24;
@@ -2028,8 +2028,8 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_TEXTFILLCOLOR_ACTION ):
{
- MetaTextFillColorAction* pAct = (MetaTextFillColorAction*) pAction;
- Font aSaveFont( rSaveVDev.GetFont() );
+ MetaTextFillColorAction* pAct = (MetaTextFillColorAction*) pAction;
+ Font aSaveFont( rSaveVDev.GetFont() );
if( pAct->IsSetting() )
aSaveFont.SetFillColor( pAct->GetColor() );
@@ -2110,9 +2110,9 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
switch( pAct->GetRasterOp() )
{
case( ROP_OVERPAINT ) : nRasterOp = 0; break;
- case( ROP_XOR ) : nRasterOp = 4; break;
- case( ROP_INVERT ): nRasterOp = 1; break;
- default: nRasterOp = 0; break;
+ case( ROP_XOR ) : nRasterOp = 4; break;
+ case( ROP_INVERT ): nRasterOp = 1; break;
+ default: nRasterOp = 0; break;
}
ImplWriteRasterOpAction( rOStm, nRasterOp );
@@ -2143,10 +2143,10 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_TRANSPARENT_ACTION ):
{
- const PolyPolygon& rPolyPoly = ( (MetaTransparentAction*) pAction )->GetPolyPolygon();
- const INT16 nTrans = ( (MetaTransparentAction*) pAction )->GetTransparence();
- const INT16 nBrushStyle = ( nTrans < 38 ) ? 8 : ( nTrans < 63 ) ? 9 : 10;
- ULONG nOldPos, nNewPos;
+ const PolyPolygon& rPolyPoly = ( (MetaTransparentAction*) pAction )->GetPolyPolygon();
+ const INT16 nTrans = ( (MetaTransparentAction*) pAction )->GetTransparence();
+ const INT16 nBrushStyle = ( nTrans < 38 ) ? 8 : ( nTrans < 63 ) ? 9 : 10;
+ ULONG nOldPos, nNewPos;
// write transparence comment
rOStm << (INT16) GDI_TRANSPARENT_COMMENT;
@@ -2204,12 +2204,12 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_FLOATTRANSPARENT_ACTION ):
{
- const MetaFloatTransparentAction* pA = (MetaFloatTransparentAction*) pAction;
- const GDIMetaFile& rTransMtf = pA->GetGDIMetaFile();
- const Point& rPos = pA->GetPoint();
- const Size& rSize = pA->GetSize();
- const Gradient& rGradient = pA->GetGradient();
- ULONG nOldPos, nNewPos;
+ const MetaFloatTransparentAction* pA = (MetaFloatTransparentAction*) pAction;
+ const GDIMetaFile& rTransMtf = pA->GetGDIMetaFile();
+ const Point& rPos = pA->GetPoint();
+ const Size& rSize = pA->GetSize();
+ const Gradient& rGradient = pA->GetGradient();
+ ULONG nOldPos, nNewPos;
// write RefPoint comment
rOStm << (INT16) GDI_FLOATTRANSPARENT_COMMENT;
@@ -2229,13 +2229,13 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
{
// write actions for float transparence
- ULONG nAddCount;
- GDIMetaFile aMtf( rTransMtf );
- const Size aSrcSize( rTransMtf.GetPrefSize() );
- Point aSrcPt( rTransMtf.GetPrefMapMode().GetOrigin() );
- const double fScaleX = aSrcSize.Width() ? (double) rSize.Width() / aSrcSize.Width() : 1.0;
- const double fScaleY = aSrcSize.Height() ? (double) rSize.Height() / aSrcSize.Height() : 1.0;
- long nMoveX, nMoveY;
+ ULONG nAddCount;
+ GDIMetaFile aMtf( rTransMtf );
+ const Size aSrcSize( rTransMtf.GetPrefSize() );
+ Point aSrcPt( rTransMtf.GetPrefMapMode().GetOrigin() );
+ const double fScaleX = aSrcSize.Width() ? (double) rSize.Width() / aSrcSize.Width() : 1.0;
+ const double fScaleY = aSrcSize.Height() ? (double) rSize.Height() / aSrcSize.Height() : 1.0;
+ long nMoveX, nMoveY;
if( fScaleX != 1.0 || fScaleY != 1.0 )
{
@@ -2265,10 +2265,10 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_HATCH_ACTION ):
{
- const MetaHatchAction* pA = (MetaHatchAction*) pAction;
- const PolyPolygon& rPolyPoly = pA->GetPolyPolygon();
- const Hatch& rHatch = pA->GetHatch();
- ULONG nOldPos, nNewPos, nAddCount;
+ const MetaHatchAction* pA = (MetaHatchAction*) pAction;
+ const PolyPolygon& rPolyPoly = pA->GetPolyPolygon();
+ const Hatch& rHatch = pA->GetHatch();
+ ULONG nOldPos, nNewPos, nAddCount;
// write hatch comment
rOStm << (INT16) GDI_HATCH_COMMENT;
@@ -2289,8 +2289,8 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
{
// write actions for hatch
- VirtualDevice aVDev;
- GDIMetaFile aTmpMtf;
+ VirtualDevice aVDev;
+ GDIMetaFile aTmpMtf;
aVDev.AddHatchActions( rPolyPoly, rHatch, aTmpMtf );
nAddCount = ImplWriteActions( rOStm, aTmpMtf, rSaveVDev, rRop_0_1, rLineCol, rLineColStack, rActualCharSet );
@@ -2310,10 +2310,10 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_REFPOINT_ACTION ):
{
- const MetaRefPointAction* pA = (MetaRefPointAction*) pAction;
- const Point& rRefPoint = pA->GetRefPoint();
- const BOOL bSet = pA->IsSetting();
- ULONG nOldPos, nNewPos;
+ const MetaRefPointAction* pA = (MetaRefPointAction*) pAction;
+ const Point& rRefPoint = pA->GetRefPoint();
+ const BOOL bSet = pA->IsSetting();
+ ULONG nOldPos, nNewPos;
// write RefPoint comment
rOStm << (INT16) GDI_REFPOINT_COMMENT;
@@ -2338,10 +2338,10 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_TEXTLINECOLOR_ACTION ):
{
- const MetaTextLineColorAction* pA = (MetaTextLineColorAction*) pAction;
- const Color& rColor = pA->GetColor();
- const BOOL bSet = pA->IsSetting();
- ULONG nOldPos, nNewPos;
+ const MetaTextLineColorAction* pA = (MetaTextLineColorAction*) pAction;
+ const Color& rColor = pA->GetColor();
+ const BOOL bSet = pA->IsSetting();
+ ULONG nOldPos, nNewPos;
// write RefPoint comment
rOStm << (INT16) GDI_TEXTLINECOLOR_COMMENT;
@@ -2366,12 +2366,12 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_TEXTLINE_ACTION ):
{
- const MetaTextLineAction* pA = (MetaTextLineAction*) pAction;
- const Point& rStartPt = pA->GetStartPoint();
- const long nWidth = pA->GetWidth();
- const FontStrikeout eStrikeout = pA->GetStrikeout();
- const FontUnderline eUnderline = pA->GetUnderline();
- ULONG nOldPos, nNewPos;
+ const MetaTextLineAction* pA = (MetaTextLineAction*) pAction;
+ const Point& rStartPt = pA->GetStartPoint();
+ const long nWidth = pA->GetWidth();
+ const FontStrikeout eStrikeout = pA->GetStrikeout();
+ const FontUnderline eUnderline = pA->GetUnderline();
+ ULONG nOldPos, nNewPos;
// write RefPoint comment
rOStm << (INT16) GDI_TEXTLINE_COMMENT;
@@ -2381,8 +2381,8 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.SeekRel( 4 );
// write data
- rOStm << rStartPt << nWidth <<
- static_cast<sal_uInt32>(eStrikeout) <<
+ rOStm << rStartPt << nWidth <<
+ static_cast<sal_uInt32>(eStrikeout) <<
static_cast<sal_uInt32>(eUnderline);
rOStm << (INT32) 0; // number of actions that follow this comment
@@ -2401,9 +2401,9 @@ ULONG SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( META_COMMENT_ACTION ):
{
- const MetaCommentAction* pA = (MetaCommentAction*) pAction;
- const sal_uInt32 nDataSize = pA->GetDataSize();
- ULONG nOldPos, nNewPos;
+ const MetaCommentAction* pA = (MetaCommentAction*) pAction;
+ const sal_uInt32 nDataSize = pA->GetDataSize();
+ ULONG nOldPos, nNewPos;
// write RefPoint comment
rOStm << (INT16) GDI_COMMENT_COMMENT;
diff --git a/vcl/source/gdi/extoutdevdata.cxx b/vcl/source/gdi/extoutdevdata.cxx
index 2b8ad0fb9ae6..20e057ba1442 100644
--- a/vcl/source/gdi/extoutdevdata.cxx
+++ b/vcl/source/gdi/extoutdevdata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/gdi/font.cxx b/vcl/source/gdi/font.cxx
index 61db9f110a9e..6e89a36376e7 100644
--- a/vcl/source/gdi/font.cxx
+++ b/vcl/source/gdi/font.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,29 +54,29 @@ Impl_Font::Impl_Font() :
maColor( COL_TRANSPARENT ),
maFillColor( COL_TRANSPARENT )
{
- mnRefCount = 1;
- meCharSet = RTL_TEXTENCODING_DONTKNOW;
- meLanguage = LANGUAGE_DONTKNOW;
- meCJKLanguage = LANGUAGE_DONTKNOW;
- meFamily = FAMILY_DONTKNOW;
- mePitch = PITCH_DONTKNOW;
- meAlign = ALIGN_TOP;
- meWeight = WEIGHT_DONTKNOW;
- meWidthType = WIDTH_DONTKNOW;
- meItalic = ITALIC_NONE;
- meUnderline = UNDERLINE_NONE;
- meOverline = UNDERLINE_NONE;
- meStrikeout = STRIKEOUT_NONE;
- meRelief = RELIEF_NONE;
- meEmphasisMark = EMPHASISMARK_NONE;
- mnOrientation = 0;
- mnKerning = 0;
- mbWordLine = false;
- mbOutline = false;
- mbShadow = false;
- mbVertical = false;
- mbTransparent = true;
- mbConfigLookup = false;
+ mnRefCount = 1;
+ meCharSet = RTL_TEXTENCODING_DONTKNOW;
+ meLanguage = LANGUAGE_DONTKNOW;
+ meCJKLanguage = LANGUAGE_DONTKNOW;
+ meFamily = FAMILY_DONTKNOW;
+ mePitch = PITCH_DONTKNOW;
+ meAlign = ALIGN_TOP;
+ meWeight = WEIGHT_DONTKNOW;
+ meWidthType = WIDTH_DONTKNOW;
+ meItalic = ITALIC_NONE;
+ meUnderline = UNDERLINE_NONE;
+ meOverline = UNDERLINE_NONE;
+ meStrikeout = STRIKEOUT_NONE;
+ meRelief = RELIEF_NONE;
+ meEmphasisMark = EMPHASISMARK_NONE;
+ mnOrientation = 0;
+ mnKerning = 0;
+ mbWordLine = false;
+ mbOutline = false;
+ mbShadow = false;
+ mbVertical = false;
+ mbTransparent = true;
+ mbConfigLookup = false;
}
// -----------------------------------------------------------------------
@@ -88,29 +88,29 @@ Impl_Font::Impl_Font( const Impl_Font& rImplFont )
maColor( rImplFont.maColor ),
maFillColor( rImplFont.maFillColor )
{
- mnRefCount = 1;
- meCharSet = rImplFont.meCharSet;
- meLanguage = rImplFont.meLanguage;
- meCJKLanguage = rImplFont.meCJKLanguage;
- meFamily = rImplFont.meFamily;
- mePitch = rImplFont.mePitch;
- meAlign = rImplFont.meAlign;
- meWeight = rImplFont.meWeight;
- meWidthType = rImplFont.meWidthType;
- meItalic = rImplFont.meItalic;
- meUnderline = rImplFont.meUnderline;
- meOverline = rImplFont.meOverline;
- meStrikeout = rImplFont.meStrikeout;
- meRelief = rImplFont.meRelief;
- meEmphasisMark = rImplFont.meEmphasisMark;
- mnOrientation = rImplFont.mnOrientation;
- mnKerning = rImplFont.mnKerning;
- mbWordLine = rImplFont.mbWordLine;
- mbOutline = rImplFont.mbOutline;
- mbShadow = rImplFont.mbShadow;
- mbVertical = rImplFont.mbVertical;
- mbTransparent = rImplFont.mbTransparent;
- mbConfigLookup = rImplFont.mbConfigLookup;
+ mnRefCount = 1;
+ meCharSet = rImplFont.meCharSet;
+ meLanguage = rImplFont.meLanguage;
+ meCJKLanguage = rImplFont.meCJKLanguage;
+ meFamily = rImplFont.meFamily;
+ mePitch = rImplFont.mePitch;
+ meAlign = rImplFont.meAlign;
+ meWeight = rImplFont.meWeight;
+ meWidthType = rImplFont.meWidthType;
+ meItalic = rImplFont.meItalic;
+ meUnderline = rImplFont.meUnderline;
+ meOverline = rImplFont.meOverline;
+ meStrikeout = rImplFont.meStrikeout;
+ meRelief = rImplFont.meRelief;
+ meEmphasisMark = rImplFont.meEmphasisMark;
+ mnOrientation = rImplFont.mnOrientation;
+ mnKerning = rImplFont.mnKerning;
+ mbWordLine = rImplFont.mbWordLine;
+ mbOutline = rImplFont.mbOutline;
+ mbShadow = rImplFont.mbShadow;
+ mbVertical = rImplFont.mbVertical;
+ mbTransparent = rImplFont.mbTransparent;
+ mbConfigLookup = rImplFont.mbConfigLookup;
}
// -----------------------------------------------------------------------
@@ -277,9 +277,9 @@ Font::Font( const String& rFamilyName, const Size& rSize )
{
DBG_CTOR( Font, NULL );
- mpImplFont = new Impl_Font;
+ mpImplFont = new Impl_Font;
mpImplFont->maFamilyName= rFamilyName;
- mpImplFont->maSize = rSize;
+ mpImplFont->maSize = rSize;
}
// -----------------------------------------------------------------------
@@ -288,10 +288,10 @@ Font::Font( const String& rFamilyName, const String& rStyleName, const Size& rSi
{
DBG_CTOR( Font, NULL );
- mpImplFont = new Impl_Font;
+ mpImplFont = new Impl_Font;
mpImplFont->maFamilyName= rFamilyName;
mpImplFont->maStyleName = rStyleName;
- mpImplFont->maSize = rSize;
+ mpImplFont->maSize = rSize;
}
// -----------------------------------------------------------------------
@@ -300,9 +300,9 @@ Font::Font( FontFamily eFamily, const Size& rSize )
{
DBG_CTOR( Font, NULL );
- mpImplFont = new Impl_Font;
- mpImplFont->meFamily = eFamily;
- mpImplFont->maSize = rSize;
+ mpImplFont = new Impl_Font;
+ mpImplFont->meFamily = eFamily;
+ mpImplFont->maSize = rSize;
}
// -----------------------------------------------------------------------
@@ -758,7 +758,7 @@ void Font::Merge( const Font& rFont )
void Font::GetFontAttributes( ImplFontAttributes& rAttrs ) const
{
- // #i56788# Use members directly, don't risc config access.
+ // #i56788# Use members directly, don't risc config access.
rAttrs.maName = mpImplFont->maFamilyName;
rAttrs.maStyleName = mpImplFont->maStyleName;
rAttrs.meFamily = mpImplFont->meFamily;
@@ -774,10 +774,10 @@ void Font::GetFontAttributes( ImplFontAttributes& rAttrs ) const
SvStream& operator>>( SvStream& rIStm, Impl_Font& rImpl_Font )
{
- VersionCompat aCompat( rIStm, STREAM_READ );
- UINT16 nTmp16;
- BOOL bTmp;
- BYTE nTmp8;
+ VersionCompat aCompat( rIStm, STREAM_READ );
+ UINT16 nTmp16;
+ BOOL bTmp;
+ BYTE nTmp8;
rIStm.ReadByteString( rImpl_Font.maFamilyName, rIStm.GetStreamCharSet() );
rIStm.ReadByteString( rImpl_Font.maStyleName, rIStm.GetStreamCharSet() );
@@ -802,10 +802,10 @@ SvStream& operator>>( SvStream& rIStm, Impl_Font& rImpl_Font )
if( aCompat.GetVersion() >= 2 )
{
- rIStm >> nTmp8; rImpl_Font.meRelief = (FontRelief)nTmp8;
- rIStm >> nTmp16; rImpl_Font.meCJKLanguage = (LanguageType)nTmp16;
- rIStm >> bTmp; rImpl_Font.mbVertical = bTmp;
- rIStm >> nTmp16; rImpl_Font.meEmphasisMark = (FontEmphasisMark)nTmp16;
+ rIStm >> nTmp8; rImpl_Font.meRelief = (FontRelief)nTmp8;
+ rIStm >> nTmp16; rImpl_Font.meCJKLanguage = (LanguageType)nTmp16;
+ rIStm >> bTmp; rImpl_Font.mbVertical = bTmp;
+ rIStm >> nTmp16; rImpl_Font.meEmphasisMark = (FontEmphasisMark)nTmp16;
}
if( aCompat.GetVersion() >= 3 )
{
@@ -844,10 +844,10 @@ SvStream& operator<<( SvStream& rOStm, const Impl_Font& rImpl_Font )
rOStm << (BYTE) rImpl_Font.mnKerning;
// new in version 2
- rOStm << (BYTE) rImpl_Font.meRelief;
- rOStm << (UINT16) rImpl_Font.meCJKLanguage;
- rOStm << (BOOL) rImpl_Font.mbVertical;
- rOStm << (UINT16) rImpl_Font.meEmphasisMark;
+ rOStm << (BYTE) rImpl_Font.meRelief;
+ rOStm << (UINT16) rImpl_Font.meCJKLanguage;
+ rOStm << (BOOL) rImpl_Font.mbVertical;
+ rOStm << (UINT16) rImpl_Font.meEmphasisMark;
// new in version 3
rOStm << (UINT16) rImpl_Font.meOverline;
@@ -937,16 +937,16 @@ namespace
}
// set italic
o_rResult.SetItalic( (aInfo.italicAngle != 0) ? ITALIC_NORMAL : ITALIC_NONE );
-
+
// set pitch
o_rResult.SetPitch( (aInfo.pitch == 0) ? PITCH_VARIABLE : PITCH_FIXED );
-
+
// set style name
if( aInfo.usubfamily )
o_rResult.SetStyleName( rtl::OUString( aInfo.usubfamily ) );
else if( aInfo.subfamily )
o_rResult.SetStyleName( rtl::OUString::createFromAscii( aInfo.subfamily ) );
-
+
// cleanup
CloseTTFont( pTTF );
// success
@@ -955,13 +955,13 @@ namespace
#endif
return bResult;
}
-
+
struct WeightSearchEntry
{
const char* string;
int string_len;
FontWeight weight;
-
+
bool operator<( const WeightSearchEntry& rRight ) const
{
return rtl_str_compareIgnoreAsciiCase_WithLength( string, string_len, rRight.string, rRight.string_len ) < 0;
@@ -980,7 +980,7 @@ namespace
{ "super", 5, WEIGHT_ULTRABOLD },
{ "thin", 4, WEIGHT_THIN }
};
-
+
bool identifyType1Font( const char* i_pBuffer, sal_uInt32 i_nSize, Font& o_rResult )
{
bool bResult = false;
@@ -1007,7 +1007,7 @@ namespace
o_rResult.SetName( rtl::OStringToOUString( rtl::OString( pOpen+1, pClose-pOpen-1 ), RTL_TEXTENCODING_ASCII_US ) );
}
}
-
+
// parse /ItalicAngle
static const char* pItalic = "/ItalicAngle";
const char* pItalicPos = std::search( pStream, pExecPos, pItalic, pItalic+12 );
@@ -1016,7 +1016,7 @@ namespace
sal_Int32 nItalic = rtl_str_toInt32( pItalicPos+12, 10 );
o_rResult.SetItalic( (nItalic != 0) ? ITALIC_NORMAL : ITALIC_NONE );
}
-
+
// parse /Weight
static const char* pWeight = "/Weight";
const char* pWeightPos = std::search( pStream, pExecPos, pWeight, pWeight+7 );
@@ -1079,7 +1079,7 @@ Font Font::identifyFont( const void* i_pBuffer, sal_uInt32 i_nSize )
identifyType1Font( pStream, i_nSize, aResult );
}
}
-
+
return aResult;
}
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 655b3ec2fe8a..8202bf1f3f4e 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ using namespace com::sun::star;
// - Defines -
// -----------
-#define GAMMA( _def_cVal, _def_InvGamma ) ((BYTE)MinMax(FRound(pow( _def_cVal/255.0,_def_InvGamma)*255.0),0L,255L))
+#define GAMMA( _def_cVal, _def_InvGamma ) ((BYTE)MinMax(FRound(pow( _def_cVal/255.0,_def_InvGamma)*255.0),0L,255L))
// --------------------------
// - Color exchange structs -
@@ -70,32 +70,32 @@ using namespace com::sun::star;
struct ImplColAdjustParam
{
- BYTE* pMapR;
- BYTE* pMapG;
- BYTE* pMapB;
+ BYTE* pMapR;
+ BYTE* pMapG;
+ BYTE* pMapB;
};
struct ImplBmpAdjustParam
{
- short nLuminancePercent;
- short nContrastPercent;
- short nChannelRPercent;
- short nChannelGPercent;
- short nChannelBPercent;
- double fGamma;
- BOOL bInvert;
+ short nLuminancePercent;
+ short nContrastPercent;
+ short nChannelRPercent;
+ short nChannelGPercent;
+ short nChannelBPercent;
+ double fGamma;
+ BOOL bInvert;
};
// -----------------------------------------------------------------------------
struct ImplColConvertParam
{
- MtfConversion eConversion;
+ MtfConversion eConversion;
};
struct ImplBmpConvertParam
{
- BmpConversion eConversion;
+ BmpConversion eConversion;
};
// -----------------------------------------------------------------------------
@@ -114,22 +114,22 @@ struct ImplBmpMonoParam
struct ImplColReplaceParam
{
- ULONG* pMinR;
- ULONG* pMaxR;
- ULONG* pMinG;
- ULONG* pMaxG;
- ULONG* pMinB;
- ULONG* pMaxB;
- const Color* pDstCols;
- ULONG nCount;
+ ULONG* pMinR;
+ ULONG* pMaxR;
+ ULONG* pMinG;
+ ULONG* pMaxG;
+ ULONG* pMinB;
+ ULONG* pMaxB;
+ const Color* pDstCols;
+ ULONG nCount;
};
struct ImplBmpReplaceParam
{
- const Color* pSrcCols;
- const Color* pDstCols;
- ULONG nCount;
- const ULONG* pTols;
+ const Color* pSrcCols;
+ const Color* pDstCols;
+ ULONG nCount;
+ const ULONG* pTols;
};
@@ -139,8 +139,8 @@ struct ImplBmpReplaceParam
struct ImpLabel
{
- String aLabelName;
- ULONG nActionPos;
+ String aLabelName;
+ ULONG nActionPos;
ImpLabel( const String& rLabelName, ULONG _nActionPos ) :
aLabelName( rLabelName ),
@@ -159,14 +159,14 @@ public:
ImpLabelList( const ImpLabelList& rList );
~ImpLabelList();
- void ImplInsert( ImpLabel* p ) { Insert( p, LIST_APPEND ); }
- ImpLabel* ImplRemove( ULONG nPos ) { return (ImpLabel*) Remove( nPos ); }
- void ImplReplace( ImpLabel* p ) { Replace( (void*)p ); }
- ImpLabel* ImplFirst() { return (ImpLabel*) First(); }
- ImpLabel* ImplNext() { return (ImpLabel*) Next(); }
- ImpLabel* ImplGetLabel( ULONG nPos ) const { return (ImpLabel*) GetObject( nPos ); }
- ULONG ImplGetLabelPos( const String& rLabelName );
- ULONG ImplCount() const { return Count(); }
+ void ImplInsert( ImpLabel* p ) { Insert( p, LIST_APPEND ); }
+ ImpLabel* ImplRemove( ULONG nPos ) { return (ImpLabel*) Remove( nPos ); }
+ void ImplReplace( ImpLabel* p ) { Replace( (void*)p ); }
+ ImpLabel* ImplFirst() { return (ImpLabel*) First(); }
+ ImpLabel* ImplNext() { return (ImpLabel*) Next(); }
+ ImpLabel* ImplGetLabel( ULONG nPos ) const { return (ImpLabel*) GetObject( nPos ); }
+ ULONG ImplGetLabelPos( const String& rLabelName );
+ ULONG ImplCount() const { return Count(); }
};
// ------------------------------------------------------------------------
@@ -209,14 +209,14 @@ ULONG ImpLabelList::ImplGetLabelPos( const String& rLabelName )
// ---------------
GDIMetaFile::GDIMetaFile() :
- List ( 0x3EFF, 64, 64 ),
- aPrefSize ( 1, 1 ),
- pPrev ( NULL ),
- pNext ( NULL ),
- pOutDev ( NULL ),
- pLabelList ( NULL ),
- bPause ( FALSE ),
- bRecord ( FALSE ),
+ List ( 0x3EFF, 64, 64 ),
+ aPrefSize ( 1, 1 ),
+ pPrev ( NULL ),
+ pNext ( NULL ),
+ pOutDev ( NULL ),
+ pLabelList ( NULL ),
+ bPause ( FALSE ),
+ bRecord ( FALSE ),
bUseCanvas ( FALSE )
{
}
@@ -224,16 +224,16 @@ GDIMetaFile::GDIMetaFile() :
// ------------------------------------------------------------------------
GDIMetaFile::GDIMetaFile( const GDIMetaFile& rMtf ) :
- List ( rMtf ),
- aPrefMapMode ( rMtf.aPrefMapMode ),
- aPrefSize ( rMtf.aPrefSize ),
- aHookHdlLink ( rMtf.aHookHdlLink ),
- pPrev ( rMtf.pPrev ),
- pNext ( rMtf.pNext ),
- pOutDev ( NULL ),
- bPause ( FALSE ),
- bRecord ( FALSE ),
- bUseCanvas ( rMtf.bUseCanvas )
+ List ( rMtf ),
+ aPrefMapMode ( rMtf.aPrefMapMode ),
+ aPrefSize ( rMtf.aPrefSize ),
+ aHookHdlLink ( rMtf.aHookHdlLink ),
+ pPrev ( rMtf.pPrev ),
+ pNext ( rMtf.pNext ),
+ pOutDev ( NULL ),
+ bPause ( FALSE ),
+ bRecord ( FALSE ),
+ bUseCanvas ( rMtf.bUseCanvas )
{
// RefCount der MetaActions erhoehen
for( void* pAct = First(); pAct; pAct = Next() )
@@ -306,7 +306,7 @@ GDIMetaFile& GDIMetaFile::operator=( const GDIMetaFile& rMtf )
BOOL GDIMetaFile::operator==( const GDIMetaFile& rMtf ) const
{
const ULONG nObjCount = Count();
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
if( this == &rMtf )
bRet = TRUE;
@@ -334,7 +334,7 @@ BOOL GDIMetaFile::operator==( const GDIMetaFile& rMtf ) const
sal_Bool GDIMetaFile::IsEqual( const GDIMetaFile& rMtf ) const
{
const ULONG nObjCount = Count();
- BOOL bRet = FALSE;
+ BOOL bRet = FALSE;
if( this == &rMtf )
bRet = TRUE;
@@ -463,7 +463,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, ULONG nPos )
{
MetaAction* pAction = GetCurAction();
const ULONG nObjCount = Count();
- ULONG i = 0, nSyncCount = ( pOut->GetOutDevType() == OUTDEV_WINDOW ) ? 0x000000ff : 0xffffffff;
+ ULONG i = 0, nSyncCount = ( pOut->GetOutDevType() == OUTDEV_WINDOW ) ? 0x000000ff : 0xffffffff;
if( nPos > nObjCount )
nPos = nObjCount;
@@ -656,13 +656,13 @@ void GDIMetaFile::ImplDelegate2PluggableRenderer( const MetaCommentAction* pAct,
void GDIMetaFile::Play( OutputDevice* pOut, const Point& rPos,
const Size& rSize, ULONG nPos )
{
- Region aDrawClipRegion;
+ Region aDrawClipRegion;
MapMode aDrawMap( GetPrefMapMode() );
- Size aDestSize( pOut->LogicToPixel( rSize ) );
+ Size aDestSize( pOut->LogicToPixel( rSize ) );
if( aDestSize.Width() && aDestSize.Height() )
{
- GDIMetaFile* pMtf = pOut->GetConnectMetaFile();
+ GDIMetaFile* pMtf = pOut->GetConnectMetaFile();
if( bUseCanvas && !pMtf && ImplPlayWithRenderer( pOut, rPos, aDestSize ) )
return;
@@ -680,7 +680,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, const Point& rPos,
aScaleX *= aDrawMap.GetScaleX(); aDrawMap.SetScaleX( aScaleX );
aScaleY *= aDrawMap.GetScaleY(); aDrawMap.SetScaleY( aScaleY );
-
+
// #i47260# Convert logical output position to offset within
// the metafile's mapmode. Therefore, disable pixel offset on
// outdev, it's inverse mnOutOffLogicX/Y is calculated for a
@@ -959,9 +959,9 @@ BOOL GDIMetaFile::SaveStatus()
BOOL GDIMetaFile::Mirror( ULONG nMirrorFlags )
{
- const Size aOldPrefSize( GetPrefSize() );
- long nMoveX, nMoveY;
- double fScaleX, fScaleY;
+ const Size aOldPrefSize( GetPrefSize() );
+ long nMoveX, nMoveY;
+ double fScaleX, fScaleY;
BOOL bRet;
if( nMirrorFlags & MTF_MIRROR_HORZ )
@@ -997,7 +997,7 @@ void GDIMetaFile::Move( long nX, long nY )
aMapVDev.EnableOutput( FALSE );
aMapVDev.SetMapMode( GetPrefMapMode() );
-
+
for( MetaAction* pAct = (MetaAction*) First(); pAct; pAct = (MetaAction*) Next() )
{
const long nType = pAct->GetType();
@@ -1011,7 +1011,7 @@ void GDIMetaFile::Move( long nX, long nY )
else
pModAct = pAct;
- if( ( META_MAPMODE_ACTION == nType ) ||
+ if( ( META_MAPMODE_ACTION == nType ) ||
( META_PUSH_ACTION == nType ) ||
( META_POP_ACTION == nType ) )
{
@@ -1032,7 +1032,7 @@ void GDIMetaFile::Move( long nX, long nY, long nDPIX, long nDPIY )
aMapVDev.EnableOutput( FALSE );
aMapVDev.SetReferenceDevice( nDPIX, nDPIY );
aMapVDev.SetMapMode( GetPrefMapMode() );
-
+
for( MetaAction* pAct = (MetaAction*) First(); pAct; pAct = (MetaAction*) Next() )
{
const long nType = pAct->GetType();
@@ -1046,7 +1046,7 @@ void GDIMetaFile::Move( long nX, long nY, long nDPIX, long nDPIY )
else
pModAct = pAct;
- if( ( META_MAPMODE_ACTION == nType ) ||
+ if( ( META_MAPMODE_ACTION == nType ) ||
( META_PUSH_ACTION == nType ) ||
( META_POP_ACTION == nType ) )
{
@@ -1110,7 +1110,7 @@ void GDIMetaFile::Clip( const Rectangle& i_rClipRect )
{
const long nType = pAct->GetType();
- if( ( META_MAPMODE_ACTION == nType ) ||
+ if( ( META_MAPMODE_ACTION == nType ) ||
( META_PUSH_ACTION == nType ) ||
( META_POP_ACTION == nType ) )
{
@@ -1144,7 +1144,7 @@ Point GDIMetaFile::ImplGetRotatedPoint( const Point& rPt, const Point& rRotatePt
// ------------------------------------------------------------------------
-Polygon GDIMetaFile::ImplGetRotatedPolygon( const Polygon& rPoly, const Point& rRotatePt,
+Polygon GDIMetaFile::ImplGetRotatedPolygon( const Polygon& rPoly, const Point& rRotatePt,
const Size& rOffset, double fSin, double fCos )
{
Polygon aRet( rPoly );
@@ -1157,7 +1157,7 @@ Polygon GDIMetaFile::ImplGetRotatedPolygon( const Polygon& rPoly, const Point& r
// ------------------------------------------------------------------------
-PolyPolygon GDIMetaFile::ImplGetRotatedPolyPolygon( const PolyPolygon& rPolyPoly, const Point& rRotatePt,
+PolyPolygon GDIMetaFile::ImplGetRotatedPolyPolygon( const PolyPolygon& rPolyPoly, const Point& rRotatePt,
const Size& rOffset, double fSin, double fCos )
{
PolyPolygon aRet( rPolyPoly );
@@ -1170,16 +1170,16 @@ PolyPolygon GDIMetaFile::ImplGetRotatedPolyPolygon( const PolyPolygon& rPolyPoly
// ------------------------------------------------------------------------
-void GDIMetaFile::ImplAddGradientEx( GDIMetaFile& rMtf,
+void GDIMetaFile::ImplAddGradientEx( GDIMetaFile& rMtf,
const OutputDevice& rMapDev,
const PolyPolygon& rPolyPoly,
- const Gradient& rGrad )
+ const Gradient& rGrad )
{
// #105055# Generate comment, GradientEx and Gradient actions
// (within DrawGradient)
VirtualDevice aVDev( rMapDev, 0 );
aVDev.EnableOutput( FALSE );
- GDIMetaFile aGradMtf;
+ GDIMetaFile aGradMtf;
aGradMtf.Record( &aVDev );
aVDev.DrawGradient( rPolyPoly, rGrad );
@@ -1208,7 +1208,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
const double fAngle = F_PI1800 * nAngle10;
const double fSin = sin( fAngle );
const double fCos = cos( fAngle );
- Rectangle aRect=Rectangle( Point(), GetPrefSize() );
+ Rectangle aRect=Rectangle( Point(), GetPrefSize() );
Polygon aPoly( aRect );
aPoly.Rotate( Point(), fSin, fCos );
@@ -1217,10 +1217,10 @@ void GDIMetaFile::Rotate( long nAngle10 )
aMapVDev.SetMapMode( GetPrefMapMode() );
const Rectangle aNewBound( aPoly.GetBoundRect() );
-
+
const Point aOrigin( GetPrefMapMode().GetOrigin().X(), GetPrefMapMode().GetOrigin().Y() );
const Size aOffset( -aNewBound.Left(), -aNewBound.Top() );
-
+
Point aRotAnchor( aOrigin );
Size aRotOffset( aOffset );
@@ -1233,8 +1233,8 @@ void GDIMetaFile::Rotate( long nAngle10 )
case( META_PIXEL_ACTION ):
{
MetaPixelAction* pAct = (MetaPixelAction*) pAction;
- aMtf.AddAction( new MetaPixelAction( ImplGetRotatedPoint( pAct->GetPoint(), aRotAnchor, aRotOffset, fSin, fCos ),
- pAct->GetColor() ) );
+ aMtf.AddAction( new MetaPixelAction( ImplGetRotatedPoint( pAct->GetPoint(), aRotAnchor, aRotOffset, fSin, fCos ),
+ pAct->GetColor() ) );
}
break;
@@ -1248,60 +1248,60 @@ void GDIMetaFile::Rotate( long nAngle10 )
case( META_LINE_ACTION ):
{
MetaLineAction* pAct = (MetaLineAction*) pAction;
- aMtf.AddAction( new MetaLineAction( ImplGetRotatedPoint( pAct->GetStartPoint(), aRotAnchor, aRotOffset, fSin, fCos ),
+ aMtf.AddAction( new MetaLineAction( ImplGetRotatedPoint( pAct->GetStartPoint(), aRotAnchor, aRotOffset, fSin, fCos ),
ImplGetRotatedPoint( pAct->GetEndPoint(), aRotAnchor, aRotOffset, fSin, fCos ),
pAct->GetLineInfo() ) );
}
break;
-
+
case( META_RECT_ACTION ):
{
MetaRectAction* pAct = (MetaRectAction*) pAction;
- aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( pAct->GetRect(), aRotAnchor, aRotOffset, fSin, fCos ) ) );
+ aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( pAct->GetRect(), aRotAnchor, aRotOffset, fSin, fCos ) ) );
}
break;
-
+
case( META_ROUNDRECT_ACTION ):
{
MetaRoundRectAction* pAct = (MetaRoundRectAction*) pAction;
const Polygon aRoundRectPoly( pAct->GetRect(), pAct->GetHorzRound(), pAct->GetVertRound() );
-
- aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( aRoundRectPoly, aRotAnchor, aRotOffset, fSin, fCos ) ) );
+
+ aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( aRoundRectPoly, aRotAnchor, aRotOffset, fSin, fCos ) ) );
}
break;
-
+
case( META_ELLIPSE_ACTION ):
{
MetaEllipseAction* pAct = (MetaEllipseAction*) pAction;
const Polygon aEllipsePoly( pAct->GetRect().Center(), pAct->GetRect().GetWidth() >> 1, pAct->GetRect().GetHeight() >> 1 );
-
- aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( aEllipsePoly, aRotAnchor, aRotOffset, fSin, fCos ) ) );
+
+ aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( aEllipsePoly, aRotAnchor, aRotOffset, fSin, fCos ) ) );
}
break;
-
+
case( META_ARC_ACTION ):
{
MetaArcAction* pAct = (MetaArcAction*) pAction;
const Polygon aArcPoly( pAct->GetRect(), pAct->GetStartPoint(), pAct->GetEndPoint(), POLY_ARC );
-
+
aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( aArcPoly, aRotAnchor, aRotOffset, fSin, fCos ) ) );
}
break;
-
+
case( META_PIE_ACTION ):
{
MetaPieAction* pAct = (MetaPieAction*) pAction;
const Polygon aPiePoly( pAct->GetRect(), pAct->GetStartPoint(), pAct->GetEndPoint(), POLY_PIE );
-
+
aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( aPiePoly, aRotAnchor, aRotOffset, fSin, fCos ) ) );
}
break;
-
- case( META_CHORD_ACTION ):
+
+ case( META_CHORD_ACTION ):
{
MetaChordAction* pAct = (MetaChordAction*) pAction;
const Polygon aChordPoly( pAct->GetRect(), pAct->GetStartPoint(), pAct->GetEndPoint(), POLY_CHORD );
-
+
aMtf.AddAction( new MetaPolygonAction( ImplGetRotatedPolygon( aChordPoly, aRotAnchor, aRotOffset, fSin, fCos ) ) );
}
break;
@@ -1335,14 +1335,14 @@ void GDIMetaFile::Rotate( long nAngle10 )
}
break;
- case( META_TEXTARRAY_ACTION ):
+ case( META_TEXTARRAY_ACTION ):
{
MetaTextArrayAction* pAct = (MetaTextArrayAction*) pAction;
aMtf.AddAction( new MetaTextArrayAction( ImplGetRotatedPoint( pAct->GetPoint(), aRotAnchor, aRotOffset, fSin, fCos ),
pAct->GetText(), pAct->GetDXArray(), pAct->GetIndex(), pAct->GetLen() ) );
}
break;
-
+
case( META_STRETCHTEXT_ACTION ):
{
MetaStretchTextAction* pAct = (MetaStretchTextAction*) pAction;
@@ -1350,7 +1350,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
pAct->GetWidth(), pAct->GetText(), pAct->GetIndex(), pAct->GetLen() ) );
}
break;
-
+
case( META_TEXTLINE_ACTION ):
{
MetaTextLineAction* pAct = (MetaTextLineAction*) pAction;
@@ -1366,8 +1366,8 @@ void GDIMetaFile::Rotate( long nAngle10 )
Rectangle aBmpRect( aBmpPoly.GetBoundRect() );
BitmapEx aBmpEx( pAct->GetBitmap() );
- aBmpEx.Rotate( nAngle10, Color( COL_TRANSPARENT ) );
- aMtf.AddAction( new MetaBmpExScaleAction( aBmpRect.TopLeft(), aBmpRect.GetSize(),
+ aBmpEx.Rotate( nAngle10, Color( COL_TRANSPARENT ) );
+ aMtf.AddAction( new MetaBmpExScaleAction( aBmpRect.TopLeft(), aBmpRect.GetSize(),
aBmpEx ) );
}
break;
@@ -1381,7 +1381,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
aBmpEx.Crop( Rectangle( pAct->GetSrcPoint(), pAct->GetSrcSize() ) );
aBmpEx.Rotate( nAngle10, Color( COL_TRANSPARENT ) );
-
+
aMtf.AddAction( new MetaBmpExScaleAction( aBmpRect.TopLeft(), aBmpRect.GetSize(), aBmpEx ) );
}
break;
@@ -1393,8 +1393,8 @@ void GDIMetaFile::Rotate( long nAngle10 )
Rectangle aBmpRect( aBmpPoly.GetBoundRect() );
BitmapEx aBmpEx( pAct->GetBitmapEx() );
- aBmpEx.Rotate( nAngle10, Color( COL_TRANSPARENT ) );
-
+ aBmpEx.Rotate( nAngle10, Color( COL_TRANSPARENT ) );
+
aMtf.AddAction( new MetaBmpExScaleAction( aBmpRect.TopLeft(), aBmpRect.GetSize(), aBmpEx ) );
}
break;
@@ -1408,7 +1408,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
aBmpEx.Crop( Rectangle( pAct->GetSrcPoint(), pAct->GetSrcSize() ) );
aBmpEx.Rotate( nAngle10, Color( COL_TRANSPARENT ) );
-
+
aMtf.AddAction( new MetaBmpExScaleAction( aBmpRect.TopLeft(), aBmpRect.GetSize(), aBmpEx ) );
}
break;
@@ -1417,7 +1417,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
{
MetaGradientAction* pAct = (MetaGradientAction*) pAction;
- ImplAddGradientEx( aMtf, aMapVDev,
+ ImplAddGradientEx( aMtf, aMapVDev,
ImplGetRotatedPolygon( pAct->GetRect(), aRotAnchor, aRotOffset, fSin, fCos ),
pAct->GetGradient() );
}
@@ -1439,17 +1439,17 @@ void GDIMetaFile::Rotate( long nAngle10 )
{
int nBeginComments( 1 );
pAction = (MetaAction*) Next();
-
+
// skip everything, except gradientex action
while( pAction )
{
const USHORT nType = pAction->GetType();
-
+
if( META_GRADIENTEX_ACTION == nType )
{
// Add rotated gradientex
MetaGradientExAction* pAct = (MetaGradientExAction*) pAction;
- ImplAddGradientEx( aMtf, aMapVDev,
+ ImplAddGradientEx( aMtf, aMapVDev,
ImplGetRotatedPolyPolygon( pAct->GetPolyPolygon(), aRotAnchor, aRotOffset, fSin, fCos ),
pAct->GetGradient() );
}
@@ -1522,11 +1522,11 @@ void GDIMetaFile::Rotate( long nAngle10 )
case( META_HATCH_ACTION ):
{
- MetaHatchAction* pAct = (MetaHatchAction*) pAction;
- Hatch aHatch( pAct->GetHatch() );
+ MetaHatchAction* pAct = (MetaHatchAction*) pAction;
+ Hatch aHatch( pAct->GetHatch() );
aHatch.SetAngle( aHatch.GetAngle() + (USHORT) nAngle10 );
- aMtf.AddAction( new MetaHatchAction( ImplGetRotatedPolyPolygon( pAct->GetPolyPolygon(), aRotAnchor, aRotOffset, fSin, fCos ),
+ aMtf.AddAction( new MetaHatchAction( ImplGetRotatedPolyPolygon( pAct->GetPolyPolygon(), aRotAnchor, aRotOffset, fSin, fCos ),
aHatch ) );
}
break;
@@ -1542,20 +1542,20 @@ void GDIMetaFile::Rotate( long nAngle10 )
case( META_FLOATTRANSPARENT_ACTION ):
{
MetaFloatTransparentAction* pAct = (MetaFloatTransparentAction*) pAction;
- GDIMetaFile aTransMtf( pAct->GetGDIMetaFile() );
+ GDIMetaFile aTransMtf( pAct->GetGDIMetaFile() );
Polygon aMtfPoly( ImplGetRotatedPolygon( Rectangle( pAct->GetPoint(), pAct->GetSize() ), aRotAnchor, aRotOffset, fSin, fCos ) );
Rectangle aMtfRect( aMtfPoly.GetBoundRect() );
aTransMtf.Rotate( nAngle10 );
- aMtf.AddAction( new MetaFloatTransparentAction( aTransMtf, aMtfRect.TopLeft(), aMtfRect.GetSize(),
+ aMtf.AddAction( new MetaFloatTransparentAction( aTransMtf, aMtfRect.TopLeft(), aMtfRect.GetSize(),
pAct->GetGradient() ) );
}
break;
case( META_EPS_ACTION ):
{
- MetaEPSAction* pAct = (MetaEPSAction*) pAction;
- GDIMetaFile aEPSMtf( pAct->GetSubstitute() );
+ MetaEPSAction* pAct = (MetaEPSAction*) pAction;
+ GDIMetaFile aEPSMtf( pAct->GetSubstitute() );
Polygon aEPSPoly( ImplGetRotatedPolygon( Rectangle( pAct->GetPoint(), pAct->GetSize() ), aRotAnchor, aRotOffset, fSin, fCos ) );
Rectangle aEPSRect( aEPSPoly.GetBoundRect() );
@@ -1581,12 +1581,12 @@ void GDIMetaFile::Rotate( long nAngle10 )
case( META_ISECTRECTCLIPREGION_ACTION ):
{
- MetaISectRectClipRegionAction* pAct = (MetaISectRectClipRegionAction*) pAction;
- aMtf.AddAction( new MetaISectRegionClipRegionAction( ImplGetRotatedPolygon( pAct->GetRect(), aRotAnchor, aRotOffset, fSin, fCos ) ) );
+ MetaISectRectClipRegionAction* pAct = (MetaISectRectClipRegionAction*) pAction;
+ aMtf.AddAction( new MetaISectRegionClipRegionAction( ImplGetRotatedPolygon( pAct->GetRect(), aRotAnchor, aRotOffset, fSin, fCos ) ) );
}
break;
- case( META_ISECTREGIONCLIPREGION_ACTION ):
+ case( META_ISECTREGIONCLIPREGION_ACTION ):
{
MetaISectRegionClipRegionAction* pAct = (MetaISectRegionClipRegionAction*) pAction;
const Region& rRegion = pAct->GetRegion();
@@ -1611,7 +1611,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
case( META_FONT_ACTION ):
{
MetaFontAction* pAct = (MetaFontAction*) pAction;
- Font aFont( pAct->GetFont() );
+ Font aFont( pAct->GetFont() );
aFont.SetOrientation( aFont.GetOrientation() + (USHORT) nAngle10 );
aMtf.AddAction( new MetaFontAction( aFont ) );
@@ -1638,7 +1638,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
aMtf.AddAction( pAction );
// update rotation point and offset, if necessary
- if( ( META_MAPMODE_ACTION == nActionType ) ||
+ if( ( META_MAPMODE_ACTION == nActionType ) ||
( META_PUSH_ACTION == nActionType ) ||
( META_POP_ACTION == nActionType ) )
{
@@ -1679,19 +1679,19 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
{
GDIMetaFile aMtf;
VirtualDevice aMapVDev( i_rReference );
-
+
aMapVDev.EnableOutput( FALSE );
aMapVDev.SetMapMode( GetPrefMapMode() );
-
+
std::vector<Rectangle> aClipStack( 1, Rectangle() );
std::vector<USHORT> aPushFlagStack;
-
+
Rectangle aBound;
-
+
for( MetaAction* pAction = (MetaAction*) First(); pAction; pAction = (MetaAction*) Next() )
{
const USHORT nActionType = pAction->GetType();
-
+
switch( nActionType )
{
case( META_PIXEL_ACTION ):
@@ -1703,7 +1703,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
aClipStack );
}
break;
-
+
case( META_POINT_ACTION ):
{
MetaPointAction* pAct = (MetaPointAction*) pAction;
@@ -1713,7 +1713,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
aClipStack );
}
break;
-
+
case( META_LINE_ACTION ):
{
MetaLineAction* pAct = (MetaLineAction*) pAction;
@@ -1723,28 +1723,28 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_RECT_ACTION ):
{
MetaRectAction* pAct = (MetaRectAction*) pAction;
ImplActionBounds( aBound, aMapVDev.LogicToLogic( pAct->GetRect(), aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_ROUNDRECT_ACTION ):
{
MetaRoundRectAction* pAct = (MetaRoundRectAction*) pAction;
ImplActionBounds( aBound, aMapVDev.LogicToLogic( pAct->GetRect(), aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_ELLIPSE_ACTION ):
{
MetaEllipseAction* pAct = (MetaEllipseAction*) pAction;
ImplActionBounds( aBound, aMapVDev.LogicToLogic( pAct->GetRect(), aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_ARC_ACTION ):
{
MetaArcAction* pAct = (MetaArcAction*) pAction;
@@ -1753,7 +1753,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( pAct->GetRect(), aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_PIE_ACTION ):
{
MetaPieAction* pAct = (MetaPieAction*) pAction;
@@ -1762,8 +1762,8 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( pAct->GetRect(), aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
- case( META_CHORD_ACTION ):
+
+ case( META_CHORD_ACTION ):
{
MetaChordAction* pAct = (MetaChordAction*) pAction;
// FIXME: this is imprecise
@@ -1771,7 +1771,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( pAct->GetRect(), aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_POLYLINE_ACTION ):
{
MetaPolyLineAction* pAct = (MetaPolyLineAction*) pAction;
@@ -1779,7 +1779,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_POLYGON_ACTION ):
{
MetaPolygonAction* pAct = (MetaPolygonAction*) pAction;
@@ -1787,7 +1787,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_POLYPOLYGON_ACTION ):
{
MetaPolyPolygonAction* pAct = (MetaPolyPolygonAction*) pAction;
@@ -1795,7 +1795,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_TEXT_ACTION ):
{
MetaTextAction* pAct = (MetaTextAction*) pAction;
@@ -1807,8 +1807,8 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
- case( META_TEXTARRAY_ACTION ):
+
+ case( META_TEXTARRAY_ACTION ):
{
MetaTextArrayAction* pAct = (MetaTextArrayAction*) pAction;
Rectangle aRect;
@@ -1820,10 +1820,10 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_STRETCHTEXT_ACTION ):
{
- MetaStretchTextAction* pAct = (MetaStretchTextAction*) pAction;
+ MetaStretchTextAction* pAct = (MetaStretchTextAction*) pAction;
Rectangle aRect;
// hdu said base = index
aMapVDev.GetTextBoundRect( aRect, pAct->GetText(), pAct->GetIndex(), pAct->GetIndex(), pAct->GetLen(),
@@ -1833,14 +1833,14 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_TEXTLINE_ACTION ):
{
MetaTextLineAction* pAct = (MetaTextLineAction*) pAction;
// measure a test string to get ascend and descent right
static const sal_Unicode pStr[] = { 0xc4, 0x67, 0 };
String aStr( pStr );
-
+
Rectangle aRect;
aMapVDev.GetTextBoundRect( aRect, aStr, 0, 0, aStr.Len(), 0, NULL );
Point aPt( pAct->GetStartPoint() );
@@ -1849,7 +1849,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_BMPSCALE_ACTION ):
{
MetaBmpScaleAction* pAct = (MetaBmpScaleAction*) pAction;
@@ -1857,7 +1857,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_BMPSCALEPART_ACTION ):
{
MetaBmpScalePartAction* pAct = (MetaBmpScalePartAction*) pAction;
@@ -1865,7 +1865,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_BMPEXSCALE_ACTION ):
{
MetaBmpExScaleAction* pAct = (MetaBmpExScaleAction*) pAction;
@@ -1873,7 +1873,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_BMPEXSCALEPART_ACTION ):
{
MetaBmpExScalePartAction* pAct = (MetaBmpExScalePartAction*) pAction;
@@ -1881,7 +1881,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_GRADIENT_ACTION ):
{
MetaGradientAction* pAct = (MetaGradientAction*) pAction;
@@ -1889,7 +1889,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_GRADIENTEX_ACTION ):
{
MetaGradientExAction* pAct = (MetaGradientExAction*) pAction;
@@ -1897,21 +1897,21 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_COMMENT_ACTION ):
{
// nothing to do
};
break;
-
+
case( META_HATCH_ACTION ):
{
- MetaHatchAction* pAct = (MetaHatchAction*) pAction;
+ MetaHatchAction* pAct = (MetaHatchAction*) pAction;
Rectangle aRect( pAct->GetPolyPolygon().GetBoundRect() );
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_TRANSPARENT_ACTION ):
{
MetaTransparentAction* pAct = (MetaTransparentAction*) pAction;
@@ -1919,11 +1919,11 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_FLOATTRANSPARENT_ACTION ):
{
MetaFloatTransparentAction* pAct = (MetaFloatTransparentAction*) pAction;
- GDIMetaFile aTransMtf( pAct->GetGDIMetaFile() );
+ GDIMetaFile aTransMtf( pAct->GetGDIMetaFile() );
// get the bound rect of the contained metafile
Rectangle aRect( aTransMtf.GetBoundRect( i_rReference ) );
// scale the rect now on the assumption that the correct top left of the metafile
@@ -1937,22 +1937,22 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
aRect.Right() = long(double(aRect.Right())*fX);
aRect.Top() = long(double(aRect.Top())*fY);
aRect.Bottom() = long(double(aRect.Bottom())*fY);
-
+
// transform the rect to current VDev state
aRect = aMapVDev.LogicToLogic( aRect, aTransMtf.GetPrefMapMode(), aMapVDev.GetMapMode() );
-
+
ImplActionBounds( aBound, aRect, aClipStack );
}
break;
-
+
case( META_EPS_ACTION ):
{
- MetaEPSAction* pAct = (MetaEPSAction*) pAction;
+ MetaEPSAction* pAct = (MetaEPSAction*) pAction;
Rectangle aRect( pAct->GetPoint(), pAct->GetSize() );
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_CLIPREGION_ACTION ):
{
MetaClipRegionAction* pAct = (MetaClipRegionAction*) pAction;
@@ -1962,7 +1962,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
aClipStack.back() = Rectangle();
}
break;
-
+
case( META_ISECTRECTCLIPREGION_ACTION ):
{
MetaISectRectClipRegionAction* pAct = (MetaISectRectClipRegionAction*) pAction;
@@ -1973,8 +1973,8 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
aClipStack.back().Intersection( aRect );
}
break;
-
- case( META_ISECTREGIONCLIPREGION_ACTION ):
+
+ case( META_ISECTREGIONCLIPREGION_ACTION ):
{
MetaISectRegionClipRegionAction* pAct = (MetaISectRegionClipRegionAction*) pAction;
Rectangle aRect( aMapVDev.LogicToLogic( pAct->GetRegion().GetBoundRect(), aMapVDev.GetMapMode(), GetPrefMapMode() ) );
@@ -1984,7 +1984,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
aClipStack.back().Intersection( aRect );
}
break;
-
+
case( META_BMP_ACTION ):
{
MetaBmpAction* pAct = (MetaBmpAction*) pAction;
@@ -1992,7 +1992,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_BMPEX_ACTION ):
{
MetaBmpExAction* pAct = (MetaBmpExAction*) pAction;
@@ -2000,7 +2000,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_MASK_ACTION ):
{
MetaMaskAction* pAct = (MetaMaskAction*) pAction;
@@ -2008,7 +2008,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_MASKSCALE_ACTION ):
{
MetaMaskScalePartAction* pAct = (MetaMaskScalePartAction*) pAction;
@@ -2016,7 +2016,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_MASKSCALEPART_ACTION ):
{
MetaMaskScalePartAction* pAct = (MetaMaskScalePartAction*) pAction;
@@ -2024,7 +2024,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_WALLPAPER_ACTION ):
{
MetaWallpaperAction* pAct = (MetaWallpaperAction*) pAction;
@@ -2032,7 +2032,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_TEXTRECT_ACTION ):
{
MetaTextRectAction* pAct = (MetaTextRectAction*) pAction;
@@ -2040,7 +2040,7 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
ImplActionBounds( aBound, aMapVDev.LogicToLogic( aRect, aMapVDev.GetMapMode(), GetPrefMapMode() ), aClipStack );
}
break;
-
+
case( META_MOVECLIPREGION_ACTION ):
{
MetaMoveClipRegionAction* pAct = (MetaMoveClipRegionAction*) pAction;
@@ -2052,11 +2052,11 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
}
}
break;
-
+
default:
{
pAction->Execute( &aMapVDev );
-
+
if( nActionType == META_PUSH_ACTION )
{
MetaPushAction* pAct = (MetaPushAction*) pAction;
@@ -2091,9 +2091,9 @@ Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference )
Color GDIMetaFile::ImplColAdjustFnc( const Color& rColor, const void* pColParam )
{
- return Color( rColor.GetTransparency(),
- ( (const ImplColAdjustParam*) pColParam )->pMapR[ rColor.GetRed() ],
- ( (const ImplColAdjustParam*) pColParam )->pMapG[ rColor.GetGreen() ],
+ return Color( rColor.GetTransparency(),
+ ( (const ImplColAdjustParam*) pColParam )->pMapR[ rColor.GetRed() ],
+ ( (const ImplColAdjustParam*) pColParam )->pMapG[ rColor.GetGreen() ],
( (const ImplColAdjustParam*) pColParam )->pMapB[ rColor.GetBlue() ] );
}
@@ -2102,11 +2102,11 @@ Color GDIMetaFile::ImplColAdjustFnc( const Color& rColor, const void* pColParam
BitmapEx GDIMetaFile::ImplBmpAdjustFnc( const BitmapEx& rBmpEx, const void* pBmpParam )
{
- const ImplBmpAdjustParam* p = (const ImplBmpAdjustParam*) pBmpParam;
- BitmapEx aRet( rBmpEx );
+ const ImplBmpAdjustParam* p = (const ImplBmpAdjustParam*) pBmpParam;
+ BitmapEx aRet( rBmpEx );
aRet.Adjust( p->nLuminancePercent, p->nContrastPercent,
- p->nChannelRPercent, p->nChannelGPercent, p->nChannelBPercent,
+ p->nChannelRPercent, p->nChannelGPercent, p->nChannelBPercent,
p->fGamma, p->bInvert );
return aRet;
@@ -2170,17 +2170,17 @@ Color GDIMetaFile::ImplColReplaceFnc( const Color& rColor, const void* pColParam
const ULONG nR = rColor.GetRed(), nG = rColor.GetGreen(), nB = rColor.GetBlue();
for( ULONG i = 0; i < ( (const ImplColReplaceParam*) pColParam )->nCount; i++ )
- {
- if( ( ( (const ImplColReplaceParam*) pColParam )->pMinR[ i ] <= nR ) &&
+ {
+ if( ( ( (const ImplColReplaceParam*) pColParam )->pMinR[ i ] <= nR ) &&
( ( (const ImplColReplaceParam*) pColParam )->pMaxR[ i ] >= nR ) &&
( ( (const ImplColReplaceParam*) pColParam )->pMinG[ i ] <= nG ) &&
( ( (const ImplColReplaceParam*) pColParam )->pMaxG[ i ] >= nG ) &&
( ( (const ImplColReplaceParam*) pColParam )->pMinB[ i ] <= nB ) &&
( ( (const ImplColReplaceParam*) pColParam )->pMaxB[ i ] >= nB ) )
- {
+ {
return( ( (const ImplColReplaceParam*) pColParam )->pDstCols[ i ] );
- }
- }
+ }
+ }
return rColor;
}
@@ -2189,8 +2189,8 @@ Color GDIMetaFile::ImplColReplaceFnc( const Color& rColor, const void* pColParam
BitmapEx GDIMetaFile::ImplBmpReplaceFnc( const BitmapEx& rBmpEx, const void* pBmpParam )
{
- const ImplBmpReplaceParam* p = (const ImplBmpReplaceParam*) pBmpParam;
- BitmapEx aRet( rBmpEx );
+ const ImplBmpReplaceParam* p = (const ImplBmpReplaceParam*) pBmpParam;
+ BitmapEx aRet( rBmpEx );
aRet.Replace( p->pSrcCols, p->pDstCols, p->nCount, p->pTols );
@@ -2199,7 +2199,7 @@ BitmapEx GDIMetaFile::ImplBmpReplaceFnc( const BitmapEx& rBmpEx, const void* pBm
// ------------------------------------------------------------------------
-void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pColParam,
+void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pColParam,
BmpExchangeFnc pFncBmp, const void* pBmpParam )
{
GDIMetaFile aMtf;
@@ -2295,7 +2295,7 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
case( META_FONT_ACTION ):
{
MetaFontAction* pAct = (MetaFontAction*) pAction;
- Font aFont( pAct->GetFont() );
+ Font aFont( pAct->GetFont() );
aFont.SetColor( pFncCol( aFont.GetColor(), pColParam ) );
aFont.SetFillColor( pFncCol( aFont.GetFillColor(), pColParam ) );
@@ -2305,9 +2305,9 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
case( META_WALLPAPER_ACTION ):
{
- MetaWallpaperAction* pAct = (MetaWallpaperAction*) pAction;
- Wallpaper aWall( pAct->GetWallpaper() );
- const Rectangle& rRect = pAct->GetRect();
+ MetaWallpaperAction* pAct = (MetaWallpaperAction*) pAction;
+ Wallpaper aWall( pAct->GetWallpaper() );
+ const Rectangle& rRect = pAct->GetRect();
aWall.SetColor( pFncCol( aWall.GetColor(), pColParam ) );
@@ -2338,8 +2338,8 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
case( META_BMPSCALE_ACTION ):
{
MetaBmpScaleAction* pAct = (MetaBmpScaleAction*) pAction;
- aMtf.Insert( new MetaBmpScaleAction( pAct->GetPoint(), pAct->GetSize(),
- pFncBmp( pAct->GetBitmap(), pBmpParam ).GetBitmap() ),
+ aMtf.Insert( new MetaBmpScaleAction( pAct->GetPoint(), pAct->GetSize(),
+ pFncBmp( pAct->GetBitmap(), pBmpParam ).GetBitmap() ),
LIST_APPEND );
}
break;
@@ -2349,7 +2349,7 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
MetaBmpScalePartAction* pAct = (MetaBmpScalePartAction*) pAction;
aMtf.Insert( new MetaBmpScalePartAction( pAct->GetDestPoint(), pAct->GetDestSize(),
pAct->GetSrcPoint(), pAct->GetSrcSize(),
- pFncBmp( pAct->GetBitmap(), pBmpParam ).GetBitmap() ),
+ pFncBmp( pAct->GetBitmap(), pBmpParam ).GetBitmap() ),
LIST_APPEND );
}
break;
@@ -2357,7 +2357,7 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
case( META_BMPEXSCALE_ACTION ):
{
MetaBmpExScaleAction* pAct = (MetaBmpExScaleAction*) pAction;
- aMtf.Insert( new MetaBmpExScaleAction( pAct->GetPoint(), pAct->GetSize(),
+ aMtf.Insert( new MetaBmpExScaleAction( pAct->GetPoint(), pAct->GetSize(),
pFncBmp( pAct->GetBitmapEx(), pBmpParam ) ),
LIST_APPEND );
}
@@ -2397,7 +2397,7 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
case( META_GRADIENT_ACTION ):
{
MetaGradientAction* pAct = (MetaGradientAction*) pAction;
- Gradient aGradient( pAct->GetGradient() );
+ Gradient aGradient( pAct->GetGradient() );
aGradient.SetStartColor( pFncCol( aGradient.GetStartColor(), pColParam ) );
aGradient.SetEndColor( pFncCol( aGradient.GetEndColor(), pColParam ) );
@@ -2408,7 +2408,7 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
case( META_GRADIENTEX_ACTION ):
{
MetaGradientExAction* pAct = (MetaGradientExAction*) pAction;
- Gradient aGradient( pAct->GetGradient() );
+ Gradient aGradient( pAct->GetGradient() );
aGradient.SetStartColor( pFncCol( aGradient.GetStartColor(), pColParam ) );
aGradient.SetEndColor( pFncCol( aGradient.GetEndColor(), pColParam ) );
@@ -2418,8 +2418,8 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
case( META_HATCH_ACTION ):
{
- MetaHatchAction* pAct = (MetaHatchAction*) pAction;
- Hatch aHatch( pAct->GetHatch() );
+ MetaHatchAction* pAct = (MetaHatchAction*) pAction;
+ Hatch aHatch( pAct->GetHatch() );
aHatch.SetColor( pFncCol( aHatch.GetColor(), pColParam ) );
aMtf.Insert( new MetaHatchAction( pAct->GetPolyPolygon(), aHatch ), LIST_APPEND );
@@ -2429,24 +2429,24 @@ void GDIMetaFile::ImplExchangeColors( ColorExchangeFnc pFncCol, const void* pCol
case( META_FLOATTRANSPARENT_ACTION ):
{
MetaFloatTransparentAction* pAct = (MetaFloatTransparentAction*) pAction;
- GDIMetaFile aTransMtf( pAct->GetGDIMetaFile() );
+ GDIMetaFile aTransMtf( pAct->GetGDIMetaFile() );
aTransMtf.ImplExchangeColors( pFncCol, pColParam, pFncBmp, pBmpParam );
- aMtf.Insert( new MetaFloatTransparentAction( aTransMtf,
+ aMtf.Insert( new MetaFloatTransparentAction( aTransMtf,
pAct->GetPoint(), pAct->GetSize(),
- pAct->GetGradient() ),
+ pAct->GetGradient() ),
LIST_APPEND );
}
break;
case( META_EPS_ACTION ):
{
- MetaEPSAction* pAct = (MetaEPSAction*) pAction;
- GDIMetaFile aSubst( pAct->GetSubstitute() );
+ MetaEPSAction* pAct = (MetaEPSAction*) pAction;
+ GDIMetaFile aSubst( pAct->GetSubstitute() );
aSubst.ImplExchangeColors( pFncCol, pColParam, pFncBmp, pBmpParam );
- aMtf.Insert( new MetaEPSAction( pAct->GetPoint(), pAct->GetSize(),
- pAct->GetLink(), aSubst ),
+ aMtf.Insert( new MetaEPSAction( pAct->GetPoint(), pAct->GetSize(),
+ pAct->GetLink(), aSubst ),
LIST_APPEND );
}
break;
@@ -2474,9 +2474,9 @@ void GDIMetaFile::Adjust( short nLuminancePercent, short nContrastPercent,
nChannelRPercent || nChannelGPercent || nChannelBPercent ||
( fGamma != 1.0 ) || bInvert )
{
- double fM, fROff, fGOff, fBOff, fOff;
- ImplColAdjustParam aColParam;
- ImplBmpAdjustParam aBmpParam;
+ double fM, fROff, fGOff, fBOff, fOff;
+ ImplColAdjustParam aColParam;
+ ImplBmpAdjustParam aBmpParam;
aColParam.pMapR = new BYTE[ 256 ];
aColParam.pMapG = new BYTE[ 256 ];
@@ -2491,7 +2491,7 @@ void GDIMetaFile::Adjust( short nLuminancePercent, short nContrastPercent,
// total offset = luminance offset + contrast offset
fOff = MinMax( nLuminancePercent, -100L, 100L ) * 2.55 + 128.0 - fM * 128.0;
- // channel offset = channel offset + total offset
+ // channel offset = channel offset + total offset
fROff = nChannelRPercent * 2.55 + fOff;
fGOff = nChannelGPercent * 2.55 + fOff;
fBOff = nChannelBPercent * 2.55 + fOff;
@@ -2546,8 +2546,8 @@ void GDIMetaFile::Convert( MtfConversion eConversion )
// nothing to do? => return quickly
if( eConversion != MTF_CONVERSION_NONE )
{
- ImplColConvertParam aColParam;
- ImplBmpConvertParam aBmpParam;
+ ImplColConvertParam aColParam;
+ ImplBmpConvertParam aBmpParam;
aColParam.eConversion = eConversion;
aBmpParam.eConversion = ( MTF_CONVERSION_1BIT_THRESHOLD == eConversion ) ? BMP_CONVERSION_1BIT_THRESHOLD : BMP_CONVERSION_8BIT_GREYS;
@@ -2579,8 +2579,8 @@ void GDIMetaFile::ReplaceColors( const Color* pSearchColors, const Color* pRepla
for( ULONG i = 0; i < nColorCount; i++ )
{
- const long nTol = pTols ? ( pTols[ i ] * 255 ) / 100 : 0;
- long nVal;
+ const long nTol = pTols ? ( pTols[ i ] * 255 ) / 100 : 0;
+ long nVal;
nVal = pSearchColors[ i ].GetRed();
aColParam.pMinR[ i ] = (ULONG) Max( nVal - nTol, 0L );
@@ -2619,8 +2619,8 @@ GDIMetaFile GDIMetaFile::GetMonochromeMtf( const Color& rColor ) const
{
GDIMetaFile aRet( *this );
- ImplColMonoParam aColParam;
- ImplBmpMonoParam aBmpParam;
+ ImplColMonoParam aColParam;
+ ImplBmpMonoParam aBmpParam;
aColParam.aColor = rColor;
aBmpParam.aColor = rColor;
@@ -2634,12 +2634,12 @@ GDIMetaFile GDIMetaFile::GetMonochromeMtf( const Color& rColor ) const
ULONG GDIMetaFile::GetChecksum() const
{
- GDIMetaFile aMtf;
- SvMemoryStream aMemStm( 65535, 65535 );
- ImplMetaWriteData aWriteData; aWriteData.meActualCharSet = aMemStm.GetStreamCharSet();
- SVBT16 aBT16;
- SVBT32 aBT32;
- ULONG nCrc = 0;
+ GDIMetaFile aMtf;
+ SvMemoryStream aMemStm( 65535, 65535 );
+ ImplMetaWriteData aWriteData; aWriteData.meActualCharSet = aMemStm.GetStreamCharSet();
+ SVBT16 aBT16;
+ SVBT32 aBT32;
+ ULONG nCrc = 0;
for( ULONG i = 0, nObjCount = GetActionCount(); i < nObjCount; i++ )
{
@@ -2823,7 +2823,7 @@ ULONG GDIMetaFile::GetChecksum() const
nCrc = rtl_crc32( nCrc, aBT32, 4 );
}
break;
-
+
case( META_MASKSCALE_ACTION ):
{
MetaMaskScaleAction* pAct = (MetaMaskScaleAction*) pAction;
@@ -2929,21 +2929,21 @@ ULONG GDIMetaFile::GetSizeBytes() const
case( META_BMP_ACTION ): nSizeBytes += ( (MetaBmpAction*) pAction )->GetBitmap().GetSizeBytes(); break;
case( META_BMPSCALE_ACTION ): nSizeBytes += ( (MetaBmpScaleAction*) pAction )->GetBitmap().GetSizeBytes(); break;
case( META_BMPSCALEPART_ACTION ): nSizeBytes += ( (MetaBmpScalePartAction*) pAction )->GetBitmap().GetSizeBytes(); break;
-
+
case( META_BMPEX_ACTION ): nSizeBytes += ( (MetaBmpExAction*) pAction )->GetBitmapEx().GetSizeBytes(); break;
case( META_BMPEXSCALE_ACTION ): nSizeBytes += ( (MetaBmpExScaleAction*) pAction )->GetBitmapEx().GetSizeBytes(); break;
case( META_BMPEXSCALEPART_ACTION ): nSizeBytes += ( (MetaBmpExScalePartAction*) pAction )->GetBitmapEx().GetSizeBytes(); break;
-
+
case( META_MASK_ACTION ): nSizeBytes += ( (MetaMaskAction*) pAction )->GetBitmap().GetSizeBytes(); break;
case( META_MASKSCALE_ACTION ): nSizeBytes += ( (MetaMaskScaleAction*) pAction )->GetBitmap().GetSizeBytes(); break;
case( META_MASKSCALEPART_ACTION ): nSizeBytes += ( (MetaMaskScalePartAction*) pAction )->GetBitmap().GetSizeBytes(); break;
-
+
case( META_POLYLINE_ACTION ): nSizeBytes += ( ( (MetaPolyLineAction*) pAction )->GetPolygon().GetSize() * sizeof( Point ) ); break;
case( META_POLYGON_ACTION ): nSizeBytes += ( ( (MetaPolygonAction*) pAction )->GetPolygon().GetSize() * sizeof( Point ) ); break;
case( META_POLYPOLYGON_ACTION ):
{
const PolyPolygon& rPolyPoly = ( (MetaPolyPolygonAction*) pAction )->GetPolyPolygon();
-
+
for( USHORT n = 0; n < rPolyPoly.Count(); ++n )
nSizeBytes += ( rPolyPoly[ n ].GetSize() * sizeof( Point ) );
}
@@ -2952,22 +2952,22 @@ ULONG GDIMetaFile::GetSizeBytes() const
case( META_TEXT_ACTION ): nSizeBytes += ( ( (MetaTextAction*) pAction )->GetText().Len() * sizeof( sal_Unicode ) ); break;
case( META_STRETCHTEXT_ACTION ): nSizeBytes += ( ( (MetaStretchTextAction*) pAction )->GetText().Len() * sizeof( sal_Unicode ) ); break;
case( META_TEXTRECT_ACTION ): nSizeBytes += ( ( (MetaTextRectAction*) pAction )->GetText().Len() * sizeof( sal_Unicode ) ); break;
- case( META_TEXTARRAY_ACTION ):
+ case( META_TEXTARRAY_ACTION ):
{
MetaTextArrayAction* pTextArrayAction = (MetaTextArrayAction*) pAction;
-
+
nSizeBytes += ( pTextArrayAction->GetText().Len() * sizeof( sal_Unicode ) );
-
+
if( pTextArrayAction->GetDXArray() )
nSizeBytes += ( pTextArrayAction->GetLen() << 2 );
}
break;
-
+
default:
break;
}
}
-
+
return( nSizeBytes );
}
@@ -2977,9 +2977,9 @@ SvStream& operator>>( SvStream& rIStm, GDIMetaFile& rGDIMetaFile )
{
if( !rIStm.GetError() )
{
- char aId[ 7 ];
- ULONG nStmPos = rIStm.Tell();
- USHORT nOldFormat = rIStm.GetNumberFormatInt();
+ char aId[ 7 ];
+ ULONG nStmPos = rIStm.Tell();
+ USHORT nOldFormat = rIStm.GetNumberFormatInt();
rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
@@ -2990,10 +2990,10 @@ SvStream& operator>>( SvStream& rIStm, GDIMetaFile& rGDIMetaFile )
if ( !strcmp( aId, "VCLMTF" ) )
{
// new format
- VersionCompat* pCompat;
- MetaAction* pAction;
- UINT32 nStmCompressMode = 0;
- UINT32 nCount = 0;
+ VersionCompat* pCompat;
+ MetaAction* pAction;
+ UINT32 nStmCompressMode = 0;
+ UINT32 nCount = 0;
pCompat = new VersionCompat( rIStm, STREAM_READ );
@@ -3064,9 +3064,9 @@ SvStream& GDIMetaFile::Read( SvStream& rIStm )
SvStream& GDIMetaFile::Write( SvStream& rOStm )
{
- VersionCompat* pCompat;
- const UINT32 nStmCompressMode = rOStm.GetCompressMode();
- USHORT nOldFormat = rOStm.GetNumberFormatInt();
+ VersionCompat* pCompat;
+ const UINT32 nStmCompressMode = rOStm.GetCompressMode();
+ USHORT nOldFormat = rOStm.GetNumberFormatInt();
rOStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
rOStm.Write( "VCLMTF", 6 );
@@ -3098,21 +3098,21 @@ SvStream& GDIMetaFile::Write( SvStream& rOStm )
// ------------------------------------------------------------------------
BOOL GDIMetaFile::CreateThumbnail( sal_uInt32 nMaximumExtent,
- BitmapEx& rBmpEx,
+ BitmapEx& rBmpEx,
const BitmapEx* pOverlay,
const Rectangle* pOverlayRect ) const
{
// the implementation is provided by KA
// initialization seems to be complicated but is used to avoid rounding errors
- VirtualDevice aVDev;
+ VirtualDevice aVDev;
const Point aNullPt;
const Point aTLPix( aVDev.LogicToPixel( aNullPt, GetPrefMapMode() ) );
const Point aBRPix( aVDev.LogicToPixel( Point( GetPrefSize().Width() - 1, GetPrefSize().Height() - 1 ), GetPrefMapMode() ) );
Size aDrawSize( aVDev.LogicToPixel( GetPrefSize(), GetPrefMapMode() ) );
- Size aSizePix( labs( aBRPix.X() - aTLPix.X() ) + 1, labs( aBRPix.Y() - aTLPix.Y() ) + 1 );
- Point aPosPix;
-
+ Size aSizePix( labs( aBRPix.X() - aTLPix.X() ) + 1, labs( aBRPix.Y() - aTLPix.Y() ) + 1 );
+ Point aPosPix;
+
if ( !rBmpEx.IsEmpty() )
rBmpEx.SetEmpty();
@@ -3137,23 +3137,23 @@ BOOL GDIMetaFile::CreateThumbnail( sal_uInt32 nMaximumExtent,
aSizePix.Width() = nMaximumExtent;
aSizePix.Height() = FRound( nMaximumExtent / fWH );
}
-
+
aDrawSize.Width() = FRound( ( static_cast< double >( aDrawSize.Width() ) * aSizePix.Width() ) / aOldSizePix.Width() );
aDrawSize.Height() = FRound( ( static_cast< double >( aDrawSize.Height() ) * aSizePix.Height() ) / aOldSizePix.Height() );
}
-
- Size aFullSize;
- Point aBackPosPix;
- Rectangle aOverlayRect;
+
+ Size aFullSize;
+ Point aBackPosPix;
+ Rectangle aOverlayRect;
// calculate addigtional positions and sizes if an overlay image is used
if ( pOverlay )
{
aFullSize = Size( nMaximumExtent, nMaximumExtent );
aOverlayRect = Rectangle( aNullPt, aFullSize );
-
+
aOverlayRect.Intersection( pOverlayRect ? *pOverlayRect : Rectangle( aNullPt, pOverlay->GetSizePixel() ) );
-
+
if ( !aOverlayRect.IsEmpty() )
aBackPosPix = Point( ( nMaximumExtent - aSizePix.Width() ) >> 1, ( nMaximumExtent - aSizePix.Height() ) >> 1 );
else
@@ -3164,36 +3164,36 @@ BOOL GDIMetaFile::CreateThumbnail( sal_uInt32 nMaximumExtent,
aFullSize = aSizePix;
pOverlay = NULL;
}
-
+
// draw image(s) into VDev and get resulting image
if ( aVDev.SetOutputSizePixel( aFullSize ) )
{
// draw metafile into VDev
const_cast<GDIMetaFile *>(this)->WindStart();
const_cast<GDIMetaFile *>(this)->Play( &aVDev, aBackPosPix, aDrawSize );
-
+
// draw overlay if neccessary
if ( pOverlay )
aVDev.DrawBitmapEx( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), *pOverlay );
-
+
// get paint bitmap
Bitmap aBmp( aVDev.GetBitmap( aNullPt, aVDev.GetOutputSizePixel() ) );
-
+
// assure that we have a true color image
if ( aBmp.GetBitCount() != 24 )
aBmp.Convert( BMP_CONVERSION_24BIT );
-
+
// create resulting mask bitmap with metafile output set to black
GDIMetaFile aMonchromeMtf( GetMonochromeMtf( COL_BLACK ) );
aVDev.DrawWallpaper( Rectangle( aNullPt, aSizePix ), Wallpaper( Color( COL_WHITE ) ) );
aMonchromeMtf.WindStart();
aMonchromeMtf.Play( &aVDev, aBackPosPix, aDrawSize );
-
+
// watch for overlay mask
if ( pOverlay )
{
Bitmap aOverlayMergeBmp( aVDev.GetBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize() ) );
-
+
// create ANDed resulting mask at overlay area
if ( pOverlay->IsTransparent() )
aVDev.DrawBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), pOverlay->GetMask() );
@@ -3202,15 +3202,15 @@ BOOL GDIMetaFile::CreateThumbnail( sal_uInt32 nMaximumExtent,
aVDev.SetLineColor( COL_BLACK );
aVDev.SetFillColor( COL_BLACK );
aVDev.DrawRect( aOverlayRect);
- }
-
+ }
+
aOverlayMergeBmp.CombineSimple( aVDev.GetBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize() ), BMP_COMBINE_AND );
aVDev.DrawBitmap( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), aOverlayMergeBmp );
}
-
+
rBmpEx = BitmapEx( aBmp, aVDev.GetBitmap( aNullPt, aVDev.GetOutputSizePixel() ) );
}
-
+
return !rBmpEx.IsEmpty();
}
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx
index 3a5b48ad2a0d..8f9dd042e605 100644
--- a/vcl/source/gdi/gfxlink.cxx
+++ b/vcl/source/gdi/gfxlink.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,11 +46,11 @@
// -----------
GfxLink::GfxLink() :
- meType ( GFX_LINK_TYPE_NONE ),
- mpBuf ( NULL ),
- mpSwap ( NULL ),
- mnBufSize ( 0 ),
- mnUserId ( 0UL ),
+ meType ( GFX_LINK_TYPE_NONE ),
+ mpBuf ( NULL ),
+ mpSwap ( NULL ),
+ mnBufSize ( 0 ),
+ mnUserId ( 0UL ),
mpImpData ( new ImpGfxLink )
{
}
@@ -83,7 +83,7 @@ GfxLink::GfxLink( BYTE* pBuf, sal_uInt32 nSize, GfxLinkType nType, BOOL bOwns )
mpBuf = new ImpBuffer( nSize );
memcpy( mpBuf->mpBuffer, pBuf, nSize );
}
- else
+ else
mpBuf = NULL;
}
@@ -132,7 +132,7 @@ sal_Bool GfxLink::IsEqual( const GfxLink& rGfxLink ) const
sal_uInt32 nDestSize = rGfxLink.GetDataSize();
if ( pSource && pDest && ( nSourceSize == nDestSize ) )
{
- bIsEqual = memcmp( pSource, pDest, nSourceSize ) == 0;
+ bIsEqual = memcmp( pSource, pDest, nSourceSize ) == 0;
}
else if ( ( pSource == 0 ) && ( pDest == 0 ) )
bIsEqual = sal_True;
@@ -191,7 +191,7 @@ const BYTE* GfxLink::GetData() const
// ------------------------------------------------------------------------
-const Size& GfxLink::GetPrefSize() const
+const Size& GfxLink::GetPrefSize() const
{
return mpImpData->maPrefSize;
}
@@ -245,8 +245,8 @@ BOOL GfxLink::LoadNative( Graphic& rGraphic )
if( pData )
{
- SvMemoryStream aMemStm;
- ULONG nCvtType;
+ SvMemoryStream aMemStm;
+ ULONG nCvtType;
aMemStm.SetBuffer( (char*) pData, mnBufSize, FALSE, mnBufSize );
@@ -259,7 +259,7 @@ BOOL GfxLink::LoadNative( Graphic& rGraphic )
case( GFX_LINK_TYPE_NATIVE_WMF ): nCvtType = CVT_WMF; break;
case( GFX_LINK_TYPE_NATIVE_MET ): nCvtType = CVT_MET; break;
case( GFX_LINK_TYPE_NATIVE_PCT ): nCvtType = CVT_PCT; break;
-
+
default: nCvtType = CVT_UNKNOWN; break;
}
@@ -301,7 +301,7 @@ void GfxLink::SwapIn()
if( IsSwappedOut() )
{
mpBuf = new ImpBuffer( mpSwap->GetData() );
-
+
if( !( --mpSwap->mnRefCount ) )
delete mpSwap;
@@ -329,15 +329,15 @@ BOOL GfxLink::ExportNative( SvStream& rOStream ) const
SvStream& operator<<( SvStream& rOStream, const GfxLink& rGfxLink )
{
VersionCompat* pCompat = new VersionCompat( rOStream, STREAM_WRITE, 2 );
-
+
// Version 1
rOStream << (UINT16) rGfxLink.GetType() << rGfxLink.GetDataSize() << rGfxLink.GetUserId();
-
+
// Version 2
- rOStream << rGfxLink.GetPrefSize() << rGfxLink.GetPrefMapMode();
-
+ rOStream << rGfxLink.GetPrefSize() << rGfxLink.GetPrefMapMode();
+
delete pCompat;
-
+
if( rGfxLink.GetDataSize() )
{
if( rGfxLink.IsSwappedOut() )
@@ -355,12 +355,12 @@ SvStream& operator>>( SvStream& rIStream, GfxLink& rGfxLink)
{
Size aSize;
MapMode aMapMode;
- sal_uInt32 nSize;
- sal_uInt32 nUserId;
- UINT16 nType;
- BYTE* pBuf;
- bool bMapAndSizeValid( false );
- VersionCompat* pCompat = new VersionCompat( rIStream, STREAM_READ );
+ sal_uInt32 nSize;
+ sal_uInt32 nUserId;
+ UINT16 nType;
+ BYTE* pBuf;
+ bool bMapAndSizeValid( false );
+ VersionCompat* pCompat = new VersionCompat( rIStream, STREAM_READ );
// Version 1
rIStream >> nType >> nSize >> nUserId;
@@ -370,12 +370,12 @@ SvStream& operator>>( SvStream& rIStream, GfxLink& rGfxLink)
rIStream >> aSize >> aMapMode;
bMapAndSizeValid = true;
}
-
+
delete pCompat;
pBuf = new BYTE[ nSize ];
rIStream.Read( pBuf, nSize );
-
+
rGfxLink = GfxLink( pBuf, nSize, (GfxLinkType) nType, TRUE );
rGfxLink.SetUserId( nUserId );
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx
index 80572a1b9457..d11d62ed6233 100644
--- a/vcl/source/gdi/gradient.cxx
+++ b/vcl/source/gdi/gradient.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -291,8 +291,8 @@ BOOL Gradient::operator==( const Gradient& rGradient ) const
SvStream& operator>>( SvStream& rIStm, Impl_Gradient& rImpl_Gradient )
{
- VersionCompat aCompat( rIStm, STREAM_READ );
- UINT16 nTmp16;
+ VersionCompat aCompat( rIStm, STREAM_READ );
+ UINT16 nTmp16;
rIStm >> nTmp16; rImpl_Gradient.meStyle = (GradientStyle) nTmp16;
diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx
index e6bb0b1e3e8a..5f4d3148584b 100644
--- a/vcl/source/gdi/graph.cxx
+++ b/vcl/source/gdi/graph.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -261,9 +261,9 @@ Graphic::Graphic( const GDIMetaFile& rMtf )
Graphic::Graphic( const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >& rxGraphic )
{
- uno::Reference< lang::XUnoTunnel > xTunnel( rxGraphic, uno::UNO_QUERY );
- uno::Reference< lang::XTypeProvider > xProv( rxGraphic, uno::UNO_QUERY );
- const ::Graphic* pGraphic = ( ( xTunnel.is() && xProv.is() ) ?
+ uno::Reference< lang::XUnoTunnel > xTunnel( rxGraphic, uno::UNO_QUERY );
+ uno::Reference< lang::XTypeProvider > xProv( rxGraphic, uno::UNO_QUERY );
+ const ::Graphic* pGraphic = ( ( xTunnel.is() && xProv.is() ) ?
reinterpret_cast< ::Graphic* >( xTunnel->getSomething( xProv->getImplementationId() ) ) :
NULL );
@@ -472,8 +472,8 @@ uno::Reference< graphic::XGraphic > Graphic::GetXGraphic() const
if( xProv.is() )
{
- uno::Sequence< beans::PropertyValue > aLoadProps( 1 );
- ::rtl::OUString aURL( RTL_CONSTASCII_USTRINGPARAM( "private:memorygraphic/" ) );
+ uno::Sequence< beans::PropertyValue > aLoadProps( 1 );
+ ::rtl::OUString aURL( RTL_CONSTASCII_USTRINGPARAM( "private:memorygraphic/" ) );
aLoadProps[ 0 ].Name = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "URL" ) );
aLoadProps[ 0 ].Value <<= ( aURL += ::rtl::OUString::valueOf( reinterpret_cast< sal_Int64 >( this ) ) );
diff --git a/vcl/source/gdi/graphictools.cxx b/vcl/source/gdi/graphictools.cxx
index 3edf63925c9e..49236ae44e7f 100644
--- a/vcl/source/gdi/graphictools.cxx
+++ b/vcl/source/gdi/graphictools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ static ::rtl::OString polyToString( const Polygon& rPoly )
aStr += ",";
aStr += ::rtl::OString::valueOf( static_cast< double >( rPoly[nVertex].getY() ) );
aStr += ") ";
- }
+ }
return aStr;
}
@@ -119,7 +119,7 @@ SvtGraphicFill::Transform::Transform()
{
matrix[0] = 1.0; matrix[1] = 0.0; matrix[2] = 0.0;
matrix[3] = 0.0; matrix[4] = 1.0; matrix[5] = 0.0;
-}
+}
////////////////////////////////////////////////////////////////////////////
@@ -133,18 +133,18 @@ SvtGraphicStroke::SvtGraphicStroke() :
maJoinType(),
mfMiterLimit( 3.0 ),
maDashArray()
-{
-}
-
-SvtGraphicStroke::SvtGraphicStroke( const Polygon& rPath,
- const PolyPolygon& rStartArrow,
- const PolyPolygon& rEndArrow,
- double fTransparency,
- double fStrokeWidth,
- CapType aCap,
- JoinType aJoin,
- double fMiterLimit,
- const DashArray& rDashArray ) :
+{
+}
+
+SvtGraphicStroke::SvtGraphicStroke( const Polygon& rPath,
+ const PolyPolygon& rStartArrow,
+ const PolyPolygon& rEndArrow,
+ double fTransparency,
+ double fStrokeWidth,
+ CapType aCap,
+ JoinType aJoin,
+ double fMiterLimit,
+ const DashArray& rDashArray ) :
maPath( rPath ),
maStartArrow( rStartArrow ),
maEndArrow( rEndArrow ),
@@ -208,7 +208,7 @@ void SvtGraphicStroke::getDashArray( DashArray& rDashArray ) const
aStr += polyToString( maPath );
aStr += "trans: ";
- aStr += ::rtl::OString::valueOf( static_cast< double >(getTransparency()) );
+ aStr += ::rtl::OString::valueOf( static_cast< double >(getTransparency()) );
aStr += " width: ";
aStr += ::rtl::OString::valueOf( static_cast< double >(getStrokeWidth()) );
aStr += " cap: ";
@@ -322,7 +322,7 @@ void SvtGraphicStroke::setDashArray( const DashArray& rDashArray )
SvStream& operator<<( SvStream& rOStm, const SvtGraphicStroke& rClass )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
-
+
rClass.maPath.Write( rOStm );
rClass.maStartArrow.Write( rOStm );
rClass.maEndArrow.Write( rOStm );
@@ -345,7 +345,7 @@ SvStream& operator<<( SvStream& rOStm, const SvtGraphicStroke& rClass )
SvStream& operator>>( SvStream& rIStm, SvtGraphicStroke& rClass )
{
VersionCompat aCompat( rIStm, STREAM_READ );
-
+
rClass.maPath.Read( rIStm );
rClass.maStartArrow.Read( rIStm );
rClass.maEndArrow.Read( rIStm );
@@ -364,7 +364,7 @@ SvStream& operator>>( SvStream& rIStm, SvtGraphicStroke& rClass )
size_t i;
for(i=0; i<rClass.maDashArray.size(); ++i)
rIStm >> rClass.maDashArray[i];
-
+
return rIStm;
}
@@ -388,20 +388,20 @@ SvtGraphicFill::SvtGraphicFill() :
{
}
-SvtGraphicFill::SvtGraphicFill( const PolyPolygon& rPath,
- Color aFillColor,
- double fTransparency,
- FillRule aFillRule,
- FillType aFillType,
- const Transform& aFillTransform,
- bool bTiling,
- HatchType aHatchType,
- Color aHatchColor,
- GradientType aGradientType,
- Color aGradient1stColor,
- Color aGradient2ndColor,
- int aGradientStepCount,
- const Graphic& aFillGraphic ) :
+SvtGraphicFill::SvtGraphicFill( const PolyPolygon& rPath,
+ Color aFillColor,
+ double fTransparency,
+ FillRule aFillRule,
+ FillType aFillType,
+ const Transform& aFillTransform,
+ bool bTiling,
+ HatchType aHatchType,
+ Color aHatchColor,
+ GradientType aGradientType,
+ Color aGradient1stColor,
+ Color aGradient2ndColor,
+ int aGradientStepCount,
+ const Graphic& aFillGraphic ) :
maPath( rPath ),
maFillColor( aFillColor ),
mfTransparency( fTransparency ),
@@ -502,7 +502,7 @@ void SvtGraphicFill::getGraphic( Graphic& rGraphic ) const
aStr += "fill";
aStr += colorToString( getFillColor() );
aStr += " trans: ";
- aStr += ::rtl::OString::valueOf( static_cast< double >(getTransparency()) );
+ aStr += ::rtl::OString::valueOf( static_cast< double >(getTransparency()) );
aStr += " rule: ";
switch( getFillRule() )
{
@@ -545,7 +545,7 @@ void SvtGraphicFill::getGraphic( Graphic& rGraphic ) const
aStr += " transform: [ ";
int i;
for(i=0; i<Transform::MatrixSize; ++i)
- aStr += ::rtl::OString::valueOf( maFillTransform.matrix[i] );
+ aStr += ::rtl::OString::valueOf( maFillTransform.matrix[i] );
aStr += " ] ";
aStr += " hatch: ";
@@ -606,15 +606,15 @@ void SvtGraphicFill::getGraphic( Graphic& rGraphic ) const
switch( maFillGraphic.GetType() )
{
case GRAPHIC_BITMAP:
- aStr += "bitmap";
+ aStr += "bitmap";
break;
case GRAPHIC_GDIMETAFILE:
- aStr += "metafile";
+ aStr += "metafile";
break;
case GRAPHIC_DEFAULT:
- aStr += "default";
+ aStr += "default";
break;
default:
@@ -623,7 +623,7 @@ void SvtGraphicFill::getGraphic( Graphic& rGraphic ) const
}
aStr += " of ";
- aStr += ::rtl::OString::valueOf( static_cast< sal_Int32 >(maFillGraphic.GetSizeBytes()) );
+ aStr += ::rtl::OString::valueOf( static_cast< sal_Int32 >(maFillGraphic.GetSizeBytes()) );
aStr += " bytes";
}
@@ -703,7 +703,7 @@ void SvtGraphicFill::setGraphic( const Graphic& rGraphic )
SvStream& operator<<( SvStream& rOStm, const SvtGraphicFill& rClass )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
-
+
rClass.maPath.Write( rOStm );
rOStm << rClass.maFillColor;
rOStm << rClass.mfTransparency;
@@ -732,7 +732,7 @@ SvStream& operator<<( SvStream& rOStm, const SvtGraphicFill& rClass )
SvStream& operator>>( SvStream& rIStm, SvtGraphicFill& rClass )
{
VersionCompat aCompat( rIStm, STREAM_READ );
-
+
rClass.maPath.Read( rIStm );
rIStm >> rClass.maFillColor;
rIStm >> rClass.mfTransparency;
diff --git a/vcl/source/gdi/hatch.cxx b/vcl/source/gdi/hatch.cxx
index 00b3d13991fd..b8a2a55d4c4d 100644
--- a/vcl/source/gdi/hatch.cxx
+++ b/vcl/source/gdi/hatch.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,22 +40,22 @@ DBG_NAME( Hatch )
// --------------
ImplHatch::ImplHatch() :
- mnRefCount ( 1 ),
- maColor ( COL_BLACK ),
- meStyle ( HATCH_SINGLE ),
- mnDistance ( 1 ),
- mnAngle ( 0 )
+ mnRefCount ( 1 ),
+ maColor ( COL_BLACK ),
+ meStyle ( HATCH_SINGLE ),
+ mnDistance ( 1 ),
+ mnAngle ( 0 )
{
}
// -----------------------------------------------------------------------
ImplHatch::ImplHatch( const ImplHatch& rImplHatch ) :
- mnRefCount ( 1 ),
- maColor ( rImplHatch.maColor ),
- meStyle ( rImplHatch.meStyle ),
- mnDistance ( rImplHatch.mnDistance ),
- mnAngle ( rImplHatch.mnAngle )
+ mnRefCount ( 1 ),
+ maColor ( rImplHatch.maColor ),
+ meStyle ( rImplHatch.meStyle ),
+ mnDistance ( rImplHatch.mnDistance ),
+ mnAngle ( rImplHatch.mnAngle )
{
}
@@ -112,7 +112,7 @@ Hatch& Hatch::operator=( const Hatch& rHatch )
if( !( --mpImplHatch->mnRefCount ) )
delete mpImplHatch;
-
+
mpImplHatch = rHatch.mpImplHatch;
return *this;
}
@@ -184,8 +184,8 @@ void Hatch::SetAngle( USHORT nAngle10 )
SvStream& operator>>( SvStream& rIStm, ImplHatch& rImplHatch )
{
- VersionCompat aCompat( rIStm, STREAM_READ );
- UINT16 nTmp16;
+ VersionCompat aCompat( rIStm, STREAM_READ );
+ UINT16 nTmp16;
rIStm >> nTmp16; rImplHatch.meStyle = (HatchStyle) nTmp16;
rIStm >> rImplHatch.maColor >> rImplHatch.mnDistance >> rImplHatch.mnAngle;
diff --git a/vcl/source/gdi/image.cxx b/vcl/source/gdi/image.cxx
index e74d41967a7d..47c77da623a4 100644
--- a/vcl/source/gdi/image.cxx
+++ b/vcl/source/gdi/image.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,9 +28,9 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_vcl.hxx"
-#include <boost/scoped_ptr.hpp>
-#include <boost/scoped_array.hpp>
-
+#include <boost/scoped_ptr.hpp>
+#include <boost/scoped_array.hpp>
+
#include <rtl/logfile.hxx>
#include <tools/debug.hxx>
#include <tools/stream.hxx>
@@ -80,8 +80,8 @@ Image::Image( const ResId& rResId ) :
{
pResMgr->Increment( sizeof( RSHEADER_TYPE ) );
- BitmapEx aBmpEx;
- ULONG nObjMask = pResMgr->ReadLong();
+ BitmapEx aBmpEx;
+ ULONG nObjMask = pResMgr->ReadLong();
if( nObjMask & RSC_IMAGE_IMAGEBITMAP )
{
@@ -154,7 +154,7 @@ Image::Image( const Bitmap& rBitmap, const Bitmap& rMaskBitmap ) :
DBG_CTOR( Image, NULL );
const BitmapEx aBmpEx( rBitmap, rMaskBitmap );
-
+
ImplInit( aBmpEx );
}
@@ -166,7 +166,7 @@ Image::Image( const Bitmap& rBitmap, const Color& rColor ) :
DBG_CTOR( Image, NULL );
const BitmapEx aBmpEx( rBitmap, rColor );
-
+
ImplInit( aBmpEx );
}
@@ -176,7 +176,7 @@ Image::Image( const uno::Reference< graphic::XGraphic >& rxGraphic ) :
mpImplData( NULL )
{
DBG_CTOR( Image, NULL );
-
+
const Graphic aGraphic( rxGraphic );
ImplInit( aGraphic.GetBitmapEx() );
}
@@ -218,7 +218,7 @@ void Image::ImplInit( const BitmapEx& rBmpEx )
Size Image::GetSizePixel() const
{
DBG_CHKTHIS( Image, NULL );
-
+
Size aRet;
if( mpImplData )
@@ -243,7 +243,7 @@ Size Image::GetSizePixel() const
BitmapEx Image::GetBitmapEx() const
{
DBG_CHKTHIS( Image, NULL );
-
+
BitmapEx aRet;
if( mpImplData )
@@ -268,7 +268,7 @@ BitmapEx Image::GetBitmapEx() const
uno::Reference< graphic::XGraphic > Image::GetXGraphic() const
{
const Graphic aGraphic( GetBitmapEx() );
-
+
return aGraphic.GetXGraphic();
}
@@ -294,7 +294,7 @@ Image Image::GetColorTransformedImage( ImageColorTransform eColorTransform ) con
if( nColorCount && pSrcColors && pDstColors )
{
- aBmpEx.Replace( pSrcColors, pDstColors, nColorCount );
+ aBmpEx.Replace( pSrcColors, pDstColors, nColorCount );
aRet = Image( aBmpEx );
}
@@ -368,7 +368,7 @@ Image& Image::operator=( const Image& rImage )
if( mpImplData && ( 0 == --mpImplData->mnRefCount ) )
delete mpImplData;
-
+
mpImplData = rImage.mpImplData;
return *this;
@@ -380,7 +380,7 @@ BOOL Image::operator==( const Image& rImage ) const
{
DBG_CHKTHIS( Image, NULL );
DBG_CHKOBJ( &rImage, Image, NULL );
-
+
bool bRet = false;
if( rImage.mpImplData == mpImplData )
@@ -400,7 +400,7 @@ BOOL Image::operator==( const Image& rImage ) const
case IMAGETYPE_IMAGE:
bRet = static_cast< ImplImageData* >( rImage.mpImplData->mpData )->IsEqual( *static_cast< ImplImageData* >( mpImplData->mpData ) );
break;
-
+
default:
bRet = false;
break;
@@ -432,30 +432,30 @@ ImageList::ImageList( const ResId& rResId ) :
RTL_LOGFILE_CONTEXT( aLog, "vcl: ImageList::ImageList( const ResId& rResId )" );
DBG_CTOR( ImageList, NULL );
-
+
rResId.SetRT( RSC_IMAGELIST );
-
+
ResMgr* pResMgr = rResId.GetResMgr();
if( pResMgr && pResMgr->GetResource( rResId ) )
{
pResMgr->Increment( sizeof( RSHEADER_TYPE ) );
- ULONG nObjMask = pResMgr->ReadLong();
- const String aPrefix( pResMgr->ReadString() );
+ ULONG nObjMask = pResMgr->ReadLong();
+ const String aPrefix( pResMgr->ReadString() );
::boost::scoped_ptr< Color > spMaskColor;
if( nObjMask & RSC_IMAGE_MASKCOLOR )
spMaskColor.reset( new Color( ResId( (RSHEADER_TYPE*)pResMgr->GetClass(), *pResMgr ) ) );
-
+
pResMgr->Increment( pResMgr->GetObjSize( (RSHEADER_TYPE*)pResMgr->GetClass() ) );
-
+
if( nObjMask & RSC_IMAGELIST_IDLIST )
{
for( sal_Int32 i = 0, nCount = pResMgr->ReadLong(); i < nCount; ++i )
pResMgr->ReadLong();
}
-
+
sal_Int32 nCount = pResMgr->ReadLong();
ImplInit( static_cast< USHORT >( nCount ), Size() );
@@ -474,8 +474,8 @@ ImageList::ImageList( const ResId& rResId ) :
// -----------------------------------------------------------------------
-ImageList::ImageList( const ::std::vector< ::rtl::OUString >& rNameVector,
- const ::rtl::OUString& rPrefix,
+ImageList::ImageList( const ::std::vector< ::rtl::OUString >& rNameVector,
+ const ::rtl::OUString& rPrefix,
const Color* ) :
mpImplData( NULL ),
mnInitSize( 1 ),
@@ -490,8 +490,8 @@ ImageList::ImageList( const ::std::vector< ::rtl::OUString >& rNameVector,
mpImplData->maPrefix = rPrefix;
for( sal_uInt32 i = 0; i < rNameVector.size(); ++i )
{
-// fprintf (stderr, "List %p [%d]: '%s'\n",
-// this, i, rtl::OUStringToOString( rNameVector[i], RTL_TEXTENCODING_UTF8 ).getStr() );
+// fprintf (stderr, "List %p [%d]: '%s'\n",
+// this, i, rtl::OUStringToOString( rNameVector[i], RTL_TEXTENCODING_UTF8 ).getStr() );
mpImplData->AddImage( rNameVector[ i ], static_cast< USHORT >( i ) + 1, BitmapEx() );
}
}
@@ -537,8 +537,8 @@ void ImageAryData::Load(const rtl::OUString &rPrefix)
BitmapEx aBmpEx;
-// fprintf (stderr, "Attempt load of '%s'\n",
-// rtl::OUStringToOString( maName, RTL_TEXTENCODING_UTF8 ).getStr() );
+// fprintf (stderr, "Attempt load of '%s'\n",
+// rtl::OUStringToOString( maName, RTL_TEXTENCODING_UTF8 ).getStr() );
rtl::OUString aFileName = rPrefix;
aFileName += maName;
@@ -616,7 +616,7 @@ void ImageList::InsertFromHorizontalStrip( const BitmapEx &rBitmapEx,
{
USHORT nItems = sal::static_int_cast< USHORT >( rNameVector.size() );
-// fprintf (stderr, "InsertFromHorizontalStrip (1) [%d items]\n", nItems);
+// fprintf (stderr, "InsertFromHorizontalStrip (1) [%d items]\n", nItems);
if (!nItems)
return;
@@ -639,7 +639,7 @@ void ImageList::InsertFromHorizontalStrip( const BitmapEx &rBitmapEx,
void ImageList::InsertFromHorizontalBitmap( const ResId& rResId,
USHORT nCount,
const Color *pMaskColor,
- const Color *pSearchColors,
+ const Color *pSearchColors,
const Color *pReplaceColors,
ULONG nColorCount)
{
@@ -653,7 +653,7 @@ void ImageList::InsertFromHorizontalBitmap( const ResId& rResId,
}
if ( nColorCount && pSearchColors && pReplaceColors )
aBmpEx.Replace( pSearchColors, pReplaceColors, nColorCount );
-
+
std::vector< rtl::OUString > aNames( nCount );
InsertFromHorizontalStrip( aBmpEx, aNames );
}
@@ -722,7 +722,7 @@ void ImageList::ReplaceImage( const ::rtl::OUString& rImageName, const Image& rI
if( nId )
{
RemoveImage( nId );
-
+
if( !mpImplData )
ImplInit( 0, rImage.GetSizePixel() );
mpImplData->AddImage( rImageName, nId, rImage.GetBitmapEx());
@@ -789,7 +789,7 @@ Image ImageList::GetImage( USHORT nId ) const
{
DBG_CHKTHIS( ImageList, NULL );
-// fprintf (stderr, "GetImage %d\n", nId);
+// fprintf (stderr, "GetImage %d\n", nId);
Image aRet;
@@ -816,13 +816,13 @@ Image ImageList::GetImage( USHORT nId ) const
Image ImageList::GetImage( const ::rtl::OUString& rImageName ) const
{
-// fprintf (stderr, "GetImage '%s'\n",
-// rtl::OUStringToOString( rImageName, RTL_TEXTENCODING_UTF8 ).getStr() );
+// fprintf (stderr, "GetImage '%s'\n",
+// rtl::OUStringToOString( rImageName, RTL_TEXTENCODING_UTF8 ).getStr() );
if( mpImplData )
{
ImageAryData *pImg = mpImplData->maNameHash[ rImageName ];
-
+
if( pImg )
{
if( pImg->IsLoadable() )
@@ -830,7 +830,7 @@ Image ImageList::GetImage( const ::rtl::OUString& rImageName ) const
return Image( pImg->maBitmapEx );
}
}
-// fprintf (stderr, "no such image\n");
+// fprintf (stderr, "no such image\n");
return Image();
}
@@ -852,7 +852,7 @@ void ImageList::Clear()
USHORT ImageList::GetImageCount() const
{
DBG_CHKTHIS( ImageList, NULL );
-
+
return mpImplData ? static_cast< USHORT >( mpImplData->maImages.size() ) : 0;
}
@@ -918,7 +918,7 @@ void ImageList::GetImageIds( ::std::vector< USHORT >& rIds ) const
DBG_CHKTHIS( ImageList, NULL );
rIds = ::std::vector< USHORT >();
-
+
if( mpImplData )
{
for( sal_uInt32 i = 0; i < mpImplData->maImages.size(); i++ )
@@ -928,7 +928,7 @@ void ImageList::GetImageIds( ::std::vector< USHORT >& rIds ) const
// -----------------------------------------------------------------------
-::rtl::OUString ImageList::GetImageName( USHORT nPos ) const
+::rtl::OUString ImageList::GetImageName( USHORT nPos ) const
{
DBG_CHKTHIS( ImageList, NULL );
@@ -947,7 +947,7 @@ void ImageList::GetImageNames( ::std::vector< ::rtl::OUString >& rNames ) const
DBG_CHKTHIS( ImageList, NULL );
rNames = ::std::vector< ::rtl::OUString >();
-
+
if( mpImplData )
{
for( sal_uInt32 i = 0; i < mpImplData->maImages.size(); i++ )
@@ -964,7 +964,7 @@ void ImageList::GetImageNames( ::std::vector< ::rtl::OUString >& rNames ) const
Size ImageList::GetImageSize() const
{
DBG_CHKTHIS( ImageList, NULL );
-
+
Size aRet;
if( mpImplData )
@@ -979,8 +979,8 @@ Size ImageList::GetImageSize() const
aRet = mpImplData->maImageSize = aTmp.GetSizePixel();
}
}
-// fprintf (stderr, "GetImageSize returns %d, %d\n",
-// aRet.Width(), aRet.Height());
+// fprintf (stderr, "GetImageSize returns %d, %d\n",
+// aRet.Width(), aRet.Height());
return aRet;
}
@@ -1009,7 +1009,7 @@ BOOL ImageList::operator==( const ImageList& rImageList ) const
{
DBG_CHKTHIS( ImageList, NULL );
DBG_CHKOBJ( &rImageList, ImageList, NULL );
-
+
bool bRet = false;
if( rImageList.mpImplData == mpImplData )
diff --git a/vcl/source/gdi/imagerepository.cxx b/vcl/source/gdi/imagerepository.cxx
index e9765d46b07a..fa358c9d77db 100644
--- a/vcl/source/gdi/imagerepository.cxx
+++ b/vcl/source/gdi/imagerepository.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/gdi/impanmvw.cxx b/vcl/source/gdi/impanmvw.cxx
index bafb5ea8c490..d568d9a9d473 100644
--- a/vcl/source/gdi/impanmvw.cxx
+++ b/vcl/source/gdi/impanmvw.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,20 +42,20 @@ ImplAnimView::ImplAnimView( Animation* pParent, OutputDevice* pOut,
const Point& rPt, const Size& rSz,
ULONG nExtraData,
OutputDevice* pFirstFrameOutDev ) :
- mpParent ( pParent ),
- mpOut ( pFirstFrameOutDev ? pFirstFrameOutDev : pOut ),
- mnExtraData ( nExtraData ),
- maPt ( rPt ),
- maSz ( rSz ),
- maSzPix ( mpOut->LogicToPixel( maSz ) ),
- maClip ( mpOut->GetClipRegion() ),
- mpBackground ( new VirtualDevice ),
- mpRestore ( new VirtualDevice ),
- meLastDisposal ( DISPOSE_BACK ),
- mbPause ( FALSE ),
- mbMarked ( FALSE ),
- mbHMirr ( maSz.Width() < 0L ),
- mbVMirr ( maSz.Height() < 0L )
+ mpParent ( pParent ),
+ mpOut ( pFirstFrameOutDev ? pFirstFrameOutDev : pOut ),
+ mnExtraData ( nExtraData ),
+ maPt ( rPt ),
+ maSz ( rSz ),
+ maSzPix ( mpOut->LogicToPixel( maSz ) ),
+ maClip ( mpOut->GetClipRegion() ),
+ mpBackground ( new VirtualDevice ),
+ mpRestore ( new VirtualDevice ),
+ meLastDisposal ( DISPOSE_BACK ),
+ mbPause ( FALSE ),
+ mbMarked ( FALSE ),
+ mbHMirr ( maSz.Width() < 0L ),
+ mbVMirr ( maSz.Height() < 0L )
{
mpParent->ImplIncAnimCount();
@@ -98,7 +98,7 @@ ImplAnimView::ImplAnimView( Animation* pParent, OutputDevice* pOut,
}
else
mpBackground->DrawOutDev( Point(), maSzPix, maDispPt, maDispSz, *mpOut );
-
+
// initial drawing to actual position
ImplDrawToPos( mpParent->ImplGetCurPos() );
@@ -122,7 +122,7 @@ ImplAnimView::~ImplAnimView()
BOOL ImplAnimView::ImplMatches( OutputDevice* pOut, long nExtraData ) const
{
BOOL bRet = FALSE;
-
+
if( nExtraData )
{
if( ( mnExtraData == nExtraData ) && ( !pOut || ( pOut == mpOut ) ) )
@@ -139,9 +139,9 @@ BOOL ImplAnimView::ImplMatches( OutputDevice* pOut, long nExtraData ) const
void ImplAnimView::ImplGetPosSize( const AnimationBitmap& rAnm, Point& rPosPix, Size& rSizePix )
{
const Size& rAnmSize = mpParent->GetDisplaySizePixel();
- Point aPt2( rAnm.aPosPix.X() + rAnm.aSizePix.Width() - 1L,
+ Point aPt2( rAnm.aPosPix.X() + rAnm.aSizePix.Width() - 1L,
rAnm.aPosPix.Y() + rAnm.aSizePix.Height() - 1L );
- double fFactX, fFactY;
+ double fFactX, fFactY;
// calculate x scaling
if( rAnmSize.Width() > 1L )
@@ -177,8 +177,8 @@ void ImplAnimView::ImplGetPosSize( const AnimationBitmap& rAnm, Point& rPosPix,
void ImplAnimView::ImplDrawToPos( ULONG nPos )
{
- VirtualDevice aVDev;
- Region* pOldClip = !maClip.IsNull() ? new Region( mpOut->GetClipRegion() ) : NULL;
+ VirtualDevice aVDev;
+ Region* pOldClip = !maClip.IsNull() ? new Region( mpOut->GetClipRegion() ) : NULL;
aVDev.SetOutputSizePixel( maSzPix, FALSE );
nPos = Min( nPos, (ULONG) mpParent->Count() - 1UL );
@@ -202,7 +202,7 @@ void ImplAnimView::ImplDrawToPos( ULONG nPos )
void ImplAnimView::ImplDraw( ULONG nPos )
{
- ImplDraw( nPos, NULL );
+ ImplDraw( nPos, NULL );
}
// ------------------------------------------------------------------------
@@ -216,13 +216,13 @@ void ImplAnimView::ImplDraw( ULONG nPos, VirtualDevice* pVDev )
ImplSetMarked( TRUE );
else if( !mbPause )
{
- VirtualDevice* pDev;
- Point aPosPix;
- Point aBmpPosPix;
- Size aSizePix;
- Size aBmpSizePix;
- const ULONG nLastPos = mpParent->Count() - 1;
- const AnimationBitmap& rAnm = mpParent->Get( (USHORT) ( mnActPos = Min( nPos, nLastPos ) ) );
+ VirtualDevice* pDev;
+ Point aPosPix;
+ Point aBmpPosPix;
+ Size aSizePix;
+ Size aBmpSizePix;
+ const ULONG nLastPos = mpParent->Count() - 1;
+ const AnimationBitmap& rAnm = mpParent->Get( (USHORT) ( mnActPos = Min( nPos, nLastPos ) ) );
ImplGetPosSize( rAnm, aPosPix, aSizePix );
@@ -308,7 +308,7 @@ void ImplAnimView::ImplDraw( ULONG nPos, VirtualDevice* pVDev )
mpOut->SetClipRegion( *pOldClip );
delete pOldClip;
}
-
+
delete pDev;
if( mpOut->GetOutDevType() == OUTDEV_WINDOW )
@@ -335,7 +335,7 @@ void ImplAnimView::ImplRepaint()
mpBackground->DrawOutDev( Point(), maSzPix, maDispPt, maDispSz, *mpOut );
mbPause = FALSE;
- ImplDrawToPos( mnActPos );
+ ImplDrawToPos( mnActPos );
mbPause = bOldPause;
}
diff --git a/vcl/source/gdi/impanmvw.hxx b/vcl/source/gdi/impanmvw.hxx
index 84e3273fc8c5..bdd46dd76460 100644
--- a/vcl/source/gdi/impanmvw.hxx
+++ b/vcl/source/gdi/impanmvw.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,30 +44,30 @@ class ImplAnimView
{
private:
- Animation* mpParent;
- OutputDevice* mpOut;
- long mnExtraData;
- Point maPt;
- Point maDispPt;
- Point maRestPt;
- Size maSz;
- Size maSzPix;
- Size maDispSz;
- Size maRestSz;
- MapMode maMap;
- Region maClip;
- VirtualDevice* mpBackground;
- VirtualDevice* mpRestore;
- ULONG mnActPos;
- Disposal meLastDisposal;
- BOOL mbPause;
- BOOL mbFirst;
- BOOL mbMarked;
- BOOL mbHMirr;
- BOOL mbVMirr;
-
- void ImplGetPosSize( const AnimationBitmap& rAnm, Point& rPosPix, Size& rSizePix );
- void ImplDraw( ULONG nPos, VirtualDevice* pVDev );
+ Animation* mpParent;
+ OutputDevice* mpOut;
+ long mnExtraData;
+ Point maPt;
+ Point maDispPt;
+ Point maRestPt;
+ Size maSz;
+ Size maSzPix;
+ Size maDispSz;
+ Size maRestSz;
+ MapMode maMap;
+ Region maClip;
+ VirtualDevice* mpBackground;
+ VirtualDevice* mpRestore;
+ ULONG mnActPos;
+ Disposal meLastDisposal;
+ BOOL mbPause;
+ BOOL mbFirst;
+ BOOL mbMarked;
+ BOOL mbHMirr;
+ BOOL mbVMirr;
+
+ void ImplGetPosSize( const AnimationBitmap& rAnm, Point& rPosPix, Size& rSizePix );
+ void ImplDraw( ULONG nPos, VirtualDevice* pVDev );
public:
@@ -76,22 +76,22 @@ public:
OutputDevice* pFirstFrameOutDev = NULL );
~ImplAnimView();
- BOOL ImplMatches( OutputDevice* pOut, long nExtraData ) const;
- void ImplDrawToPos( ULONG nPos );
- void ImplDraw( ULONG nPos );
- void ImplRepaint();
- AInfo* ImplCreateAInfo() const;
+ BOOL ImplMatches( OutputDevice* pOut, long nExtraData ) const;
+ void ImplDrawToPos( ULONG nPos );
+ void ImplDraw( ULONG nPos );
+ void ImplRepaint();
+ AInfo* ImplCreateAInfo() const;
- const Point& ImplGetOutPos() const { return maPt; }
+ const Point& ImplGetOutPos() const { return maPt; }
- const Size& ImplGetOutSize() const { return maSz; }
- const Size& ImplGetOutSizePix() const { return maSzPix; }
+ const Size& ImplGetOutSize() const { return maSz; }
+ const Size& ImplGetOutSizePix() const { return maSzPix; }
- void ImplPause( BOOL bPause ) { mbPause = bPause; }
- BOOL ImplIsPause() const { return mbPause; }
+ void ImplPause( BOOL bPause ) { mbPause = bPause; }
+ BOOL ImplIsPause() const { return mbPause; }
- void ImplSetMarked( BOOL bMarked ) { mbMarked = bMarked; }
- BOOL ImplIsMarked() const { return mbMarked; }
+ void ImplSetMarked( BOOL bMarked ) { mbMarked = bMarked; }
+ BOOL ImplIsMarked() const { return mbMarked; }
};
#endif
diff --git a/vcl/source/gdi/impbmp.cxx b/vcl/source/gdi/impbmp.cxx
index 4b4b1f4289b6..25c57c446abc 100644
--- a/vcl/source/gdi/impbmp.cxx
+++ b/vcl/source/gdi/impbmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,12 +38,12 @@
#include <vcl/salinst.hxx>
// --------------
-// - ImpBitmap -
+// - ImpBitmap -
// --------------
ImpBitmap::ImpBitmap() :
- mnRefCount ( 1UL ),
- mnChecksum ( 0UL ),
+ mnRefCount ( 1UL ),
+ mnChecksum ( 0UL ),
mpSalBitmap ( ImplGetSVData()->mpDefInst->CreateSalBitmap() ),
maSourceSize( 0, 0 )
{
@@ -63,7 +63,7 @@ void ImpBitmap::ImplSetSalBitmap( SalBitmap* pBitmap )
}
// -----------------------------------------------------------------------
-
+
BOOL ImpBitmap::ImplCreate( const Size& rSize, USHORT nBitCount, const BitmapPalette& rPal )
{
maSourceSize = rSize;
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index 63b30b483fcb..a353e034ed33 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,17 +50,17 @@
// - Defines -
// -----------
-#define GRAPHIC_MAXPARTLEN 256000L
-#define GRAPHIC_MTFTOBMP_MAXEXT 2048
-#define GRAPHIC_STREAMBUFSIZE 8192UL
-
-#define SYS_WINMETAFILE 0x00000003L
-#define SYS_WNTMETAFILE 0x00000004L
-#define SYS_OS2METAFILE 0x00000005L
-#define SYS_MACMETAFILE 0x00000006L
+#define GRAPHIC_MAXPARTLEN 256000L
+#define GRAPHIC_MTFTOBMP_MAXEXT 2048
+#define GRAPHIC_STREAMBUFSIZE 8192UL
-#define GRAPHIC_FORMAT_50 static_cast<sal_uInt32>(COMPAT_FORMAT( 'G', 'R', 'F', '5' ))
-#define NATIVE_FORMAT_50 static_cast<sal_uInt32>(COMPAT_FORMAT( 'N', 'A', 'T', '5' ))
+#define SYS_WINMETAFILE 0x00000003L
+#define SYS_WNTMETAFILE 0x00000004L
+#define SYS_OS2METAFILE 0x00000005L
+#define SYS_MACMETAFILE 0x00000006L
+
+#define GRAPHIC_FORMAT_50 static_cast<sal_uInt32>(COMPAT_FORMAT( 'G', 'R', 'F', '5' ))
+#define NATIVE_FORMAT_50 static_cast<sal_uInt32>(COMPAT_FORMAT( 'N', 'A', 'T', '5' ))
// ---------------
// - ImpSwapFile -
@@ -68,8 +68,8 @@
struct ImpSwapFile
{
- INetURLObject aSwapURL;
- ULONG nRefCount;
+ INetURLObject aSwapURL;
+ ULONG nRefCount;
};
// -----------------
@@ -132,33 +132,33 @@ Size GraphicReader::GetPreviewSize() const
// --------------
ImpGraphic::ImpGraphic() :
- mpAnimation ( NULL ),
- mpContext ( NULL ),
- mpSwapFile ( NULL ),
- mpGfxLink ( NULL ),
- meType ( GRAPHIC_NONE ),
+ mpAnimation ( NULL ),
+ mpContext ( NULL ),
+ mpSwapFile ( NULL ),
+ mpGfxLink ( NULL ),
+ meType ( GRAPHIC_NONE ),
mnDocFilePos ( 0UL ),
mnSizeBytes ( 0UL ),
mnRefCount ( 1UL ),
mbSwapOut ( FALSE ),
- mbSwapUnderway ( FALSE )
+ mbSwapUnderway ( FALSE )
{
}
// ------------------------------------------------------------------------
ImpGraphic::ImpGraphic( const ImpGraphic& rImpGraphic ) :
- maMetaFile ( rImpGraphic.maMetaFile ),
- maEx ( rImpGraphic.maEx ),
- mpContext ( NULL ),
- mpSwapFile ( rImpGraphic.mpSwapFile ),
- meType ( rImpGraphic.meType ),
- maDocFileURLStr ( rImpGraphic.maDocFileURLStr ),
- mnDocFilePos ( rImpGraphic.mnDocFilePos ),
+ maMetaFile ( rImpGraphic.maMetaFile ),
+ maEx ( rImpGraphic.maEx ),
+ mpContext ( NULL ),
+ mpSwapFile ( rImpGraphic.mpSwapFile ),
+ meType ( rImpGraphic.meType ),
+ maDocFileURLStr ( rImpGraphic.maDocFileURLStr ),
+ mnDocFilePos ( rImpGraphic.mnDocFilePos ),
mnSizeBytes ( rImpGraphic.mnSizeBytes ),
- mnRefCount ( 1UL ),
- mbSwapOut ( rImpGraphic.mbSwapOut ),
- mbSwapUnderway ( FALSE )
+ mnRefCount ( 1UL ),
+ mbSwapOut ( rImpGraphic.mbSwapOut ),
+ mbSwapUnderway ( FALSE )
{
if( mpSwapFile )
mpSwapFile->nRefCount++;
@@ -180,68 +180,68 @@ ImpGraphic::ImpGraphic( const ImpGraphic& rImpGraphic ) :
// ------------------------------------------------------------------------
ImpGraphic::ImpGraphic( const Bitmap& rBitmap ) :
- maEx ( rBitmap ),
- mpAnimation ( NULL ),
- mpContext ( NULL ),
- mpSwapFile ( NULL ),
- mpGfxLink ( NULL ),
- meType ( !rBitmap ? GRAPHIC_NONE : GRAPHIC_BITMAP ),
- mnDocFilePos ( 0UL ),
+ maEx ( rBitmap ),
+ mpAnimation ( NULL ),
+ mpContext ( NULL ),
+ mpSwapFile ( NULL ),
+ mpGfxLink ( NULL ),
+ meType ( !rBitmap ? GRAPHIC_NONE : GRAPHIC_BITMAP ),
+ mnDocFilePos ( 0UL ),
mnSizeBytes ( 0UL ),
- mnRefCount ( 1UL ),
- mbSwapOut ( FALSE ),
- mbSwapUnderway ( FALSE )
+ mnRefCount ( 1UL ),
+ mbSwapOut ( FALSE ),
+ mbSwapUnderway ( FALSE )
{
}
// ------------------------------------------------------------------------
ImpGraphic::ImpGraphic( const BitmapEx& rBitmapEx ) :
- maEx ( rBitmapEx ),
- mpAnimation ( NULL ),
- mpContext ( NULL ),
- mpSwapFile ( NULL ),
- mpGfxLink ( NULL ),
- meType ( !rBitmapEx ? GRAPHIC_NONE : GRAPHIC_BITMAP ),
- mnDocFilePos ( 0UL ),
+ maEx ( rBitmapEx ),
+ mpAnimation ( NULL ),
+ mpContext ( NULL ),
+ mpSwapFile ( NULL ),
+ mpGfxLink ( NULL ),
+ meType ( !rBitmapEx ? GRAPHIC_NONE : GRAPHIC_BITMAP ),
+ mnDocFilePos ( 0UL ),
mnSizeBytes ( 0UL ),
- mnRefCount ( 1UL ),
- mbSwapOut ( FALSE ),
- mbSwapUnderway ( FALSE )
+ mnRefCount ( 1UL ),
+ mbSwapOut ( FALSE ),
+ mbSwapUnderway ( FALSE )
{
}
// ------------------------------------------------------------------------
ImpGraphic::ImpGraphic( const Animation& rAnimation ) :
- maEx ( rAnimation.GetBitmapEx() ),
- mpAnimation ( new Animation( rAnimation ) ),
- mpContext ( NULL ),
- mpSwapFile ( NULL ),
- mpGfxLink ( NULL ),
- meType ( GRAPHIC_BITMAP ),
- mnDocFilePos ( 0UL ),
+ maEx ( rAnimation.GetBitmapEx() ),
+ mpAnimation ( new Animation( rAnimation ) ),
+ mpContext ( NULL ),
+ mpSwapFile ( NULL ),
+ mpGfxLink ( NULL ),
+ meType ( GRAPHIC_BITMAP ),
+ mnDocFilePos ( 0UL ),
mnSizeBytes ( 0UL ),
- mnRefCount ( 1UL ),
- mbSwapOut ( FALSE ),
- mbSwapUnderway ( FALSE )
+ mnRefCount ( 1UL ),
+ mbSwapOut ( FALSE ),
+ mbSwapUnderway ( FALSE )
{
}
// ------------------------------------------------------------------------
ImpGraphic::ImpGraphic( const GDIMetaFile& rMtf ) :
- maMetaFile ( rMtf ),
- mpAnimation ( NULL ),
- mpContext ( NULL ),
- mpSwapFile ( NULL ),
- mpGfxLink ( NULL ),
- meType ( GRAPHIC_GDIMETAFILE ),
- mnDocFilePos ( 0UL ),
+ maMetaFile ( rMtf ),
+ mpAnimation ( NULL ),
+ mpContext ( NULL ),
+ mpSwapFile ( NULL ),
+ mpGfxLink ( NULL ),
+ meType ( GRAPHIC_GDIMETAFILE ),
+ mnDocFilePos ( 0UL ),
mnSizeBytes ( 0UL ),
- mnRefCount ( 1UL ),
- mbSwapOut ( FALSE ),
- mbSwapUnderway ( FALSE )
+ mnRefCount ( 1UL ),
+ mbSwapOut ( FALSE ),
+ mbSwapUnderway ( FALSE )
{
}
@@ -486,7 +486,7 @@ Bitmap ImpGraphic::ImplGetBitmap(const GraphicConversionParameters& rParameters)
if( meType == GRAPHIC_BITMAP )
{
const BitmapEx& rRetBmpEx = ( mpAnimation ? mpAnimation->GetBitmapEx() : maEx );
- const Color aReplaceColor( COL_WHITE );
+ const Color aReplaceColor( COL_WHITE );
aRetBmp = rRetBmpEx.GetBitmap( &aReplaceColor );
@@ -495,26 +495,26 @@ Bitmap ImpGraphic::ImplGetBitmap(const GraphicConversionParameters& rParameters)
}
else if( ( meType != GRAPHIC_DEFAULT ) && ImplIsSupportedGraphic() )
{
- // use corner points of graphic to determine the pixel
+ // use corner points of graphic to determine the pixel
// extent of the graphic (rounding errors are possible else)
- VirtualDevice aVDev;
+ VirtualDevice aVDev;
const Point aNullPt;
const Point aTLPix( aVDev.LogicToPixel( aNullPt, maMetaFile.GetPrefMapMode() ) );
const Point aBRPix( aVDev.LogicToPixel( Point( maMetaFile.GetPrefSize().Width() - 1, maMetaFile.GetPrefSize().Height() - 1 ), maMetaFile.GetPrefMapMode() ) );
Size aDrawSize( aVDev.LogicToPixel( maMetaFile.GetPrefSize(), maMetaFile.GetPrefMapMode() ) );
- Size aSizePix( labs( aBRPix.X() - aTLPix.X() ) + 1, labs( aBRPix.Y() - aTLPix.Y() ) + 1 );
+ Size aSizePix( labs( aBRPix.X() - aTLPix.X() ) + 1, labs( aBRPix.Y() - aTLPix.Y() ) + 1 );
if(rParameters.getSizePixel().Width() && rParameters.getSizePixel().Height())
{
- aDrawSize.Width() = FRound((double)rParameters.getSizePixel().Width() *
+ aDrawSize.Width() = FRound((double)rParameters.getSizePixel().Width() *
(double)aDrawSize.Width() / (double)aSizePix.Width());
- aDrawSize.Height() = FRound((double)rParameters.getSizePixel().Height() *
+ aDrawSize.Height() = FRound((double)rParameters.getSizePixel().Height() *
(double)aDrawSize.Height() / (double)aSizePix.Height());
aSizePix = rParameters.getSizePixel();
}
- if( aSizePix.Width() && aSizePix.Height() && !rParameters.getUnlimitedSize()
+ if( aSizePix.Width() && aSizePix.Height() && !rParameters.getUnlimitedSize()
&& (aSizePix.Width() > GRAPHIC_MTFTOBMP_MAXEXT || aSizePix.Height() > GRAPHIC_MTFTOBMP_MAXEXT))
{
const Size aOldSizePix( aSizePix );
@@ -535,7 +535,7 @@ Bitmap ImpGraphic::ImplGetBitmap(const GraphicConversionParameters& rParameters)
{
aVDev.SetAntialiasing(aVDev.GetAntialiasing() | ANTIALIASING_ENABLE_B2DDRAW);
}
-
+
if(rParameters.getSnapHorVerLines())
{
aVDev.SetAntialiasing(aVDev.GetAntialiasing() | ANTIALIASING_PIXELSNAPHAIRLINE);
@@ -735,7 +735,7 @@ ULONG ImpGraphic::ImplGetSizeBytes() const
if( meType == GRAPHIC_BITMAP )
{
mnSizeBytes = mpAnimation ? mpAnimation->GetSizeBytes() : maEx.GetSizeBytes();
- }
+ }
else if( meType == GRAPHIC_GDIMETAFILE )
{
mnSizeBytes = maMetaFile.GetSizeBytes();
@@ -919,20 +919,20 @@ ULONG ImpGraphic::ImplGetDocFilePos() const
BOOL ImpGraphic::ImplReadEmbedded( SvStream& rIStm, BOOL bSwap )
{
- MapMode aMapMode;
- Size aSize;
- const ULONG nStartPos = rIStm.Tell();
- sal_uInt32 nId;
- ULONG nHeaderLen;
- long nType;
- long nLen;
- const USHORT nOldFormat = rIStm.GetNumberFormatInt();
- BOOL bRet = FALSE;
+ MapMode aMapMode;
+ Size aSize;
+ const ULONG nStartPos = rIStm.Tell();
+ sal_uInt32 nId;
+ ULONG nHeaderLen;
+ long nType;
+ long nLen;
+ const USHORT nOldFormat = rIStm.GetNumberFormatInt();
+ BOOL bRet = FALSE;
if( !mbSwapUnderway )
{
- const String aTempURLStr( maDocFileURLStr );
- const ULONG nTempPos = mnDocFilePos;
+ const String aTempURLStr( maDocFileURLStr );
+ const ULONG nTempPos = mnDocFilePos;
ImplClear();
@@ -1021,8 +1021,8 @@ BOOL ImpGraphic::ImplReadEmbedded( SvStream& rIStm, BOOL bSwap )
}
else
{
- ::utl::TempFile aTempFile;
- const INetURLObject aTmpURL( aTempFile.GetURL() );
+ ::utl::TempFile aTempFile;
+ const INetURLObject aTmpURL( aTempFile.GetURL() );
if( aTmpURL.GetMainURL( INetURLObject::NO_DECODE ).getLength() )
{
@@ -1030,9 +1030,9 @@ BOOL ImpGraphic::ImplReadEmbedded( SvStream& rIStm, BOOL bSwap )
if( pOStm )
{
- ULONG nFullLen = nHeaderLen + nLen;
- ULONG nPartLen = Min( nFullLen, (ULONG) GRAPHIC_MAXPARTLEN );
- BYTE* pBuffer = (BYTE*) rtl_allocateMemory( nPartLen );
+ ULONG nFullLen = nHeaderLen + nLen;
+ ULONG nPartLen = Min( nFullLen, (ULONG) GRAPHIC_MAXPARTLEN );
+ BYTE* pBuffer = (BYTE*) rtl_allocateMemory( nPartLen );
pOStm->SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
@@ -1100,7 +1100,7 @@ BOOL ImpGraphic::ImplReadEmbedded( SvStream& rIStm, BOOL bSwap )
else if( meType >= SYS_WINMETAFILE && meType <= SYS_MACMETAFILE )
{
Graphic aSysGraphic;
- ULONG nCvtType;
+ ULONG nCvtType;
switch( sal::static_int_cast<ULONG>(meType) )
{
@@ -1145,10 +1145,10 @@ BOOL ImpGraphic::ImplWriteEmbedded( SvStream& rOStm )
if( ( meType != GRAPHIC_NONE ) && ( meType != GRAPHIC_DEFAULT ) && !ImplIsSwapOut() )
{
- const MapMode aMapMode( ImplGetPrefMapMode() );
- const Size aSize( ImplGetPrefSize() );
- const USHORT nOldFormat = rOStm.GetNumberFormatInt();
- ULONG nDataFieldPos;
+ const MapMode aMapMode( ImplGetPrefMapMode() );
+ const Size aSize( ImplGetPrefSize() );
+ const USHORT nOldFormat = rOStm.GetNumberFormatInt();
+ ULONG nDataFieldPos;
rOStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
@@ -1226,8 +1226,8 @@ BOOL ImpGraphic::ImplSwapOut()
{
if( !maDocFileURLStr.Len() )
{
- ::utl::TempFile aTempFile;
- const INetURLObject aTmpURL( aTempFile.GetURL() );
+ ::utl::TempFile aTempFile;
+ const INetURLObject aTmpURL( aTempFile.GetURL() );
if( aTmpURL.GetMainURL( INetURLObject::NO_DECODE ).getLength() )
{
@@ -1418,7 +1418,7 @@ BOOL ImpGraphic::ImplIsSwapOut() const
// ------------------------------------------------------------------------
-void ImpGraphic::ImplSetLink( const GfxLink& rGfxLink )
+void ImpGraphic::ImplSetLink( const GfxLink& rGfxLink )
{
delete mpGfxLink;
mpGfxLink = new GfxLink( rGfxLink );
@@ -1503,7 +1503,7 @@ SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
{
if( !rIStm.GetError() )
{
- const ULONG nStmPos1 = rIStm.Tell();
+ const ULONG nStmPos1 = rIStm.Tell();
sal_uInt32 nTmp;
if ( !rImpGraphic.mbSwapUnderway )
@@ -1513,16 +1513,16 @@ SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
rIStm >> nTmp;
// if there is no more data, avoid further expensive
- // reading which will create VDevs and other stuff, just to
+ // reading which will create VDevs and other stuff, just to
// read nothing. CAUTION: Eof is only true AFTER reading another
// byte, a speciality of SvMemoryStream (!)
if(!rIStm.GetError() && !rIStm.IsEof())
{
if( NATIVE_FORMAT_50 == nTmp )
{
- Graphic aGraphic;
- GfxLink aLink;
- VersionCompat* pCompat;
+ Graphic aGraphic;
+ GfxLink aLink;
+ VersionCompat* pCompat;
// read compat info
pCompat = new VersionCompat( rIStm, STREAM_READ );
@@ -1559,8 +1559,8 @@ SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
}
else
{
- BitmapEx aBmpEx;
- const USHORT nOldFormat = rIStm.GetNumberFormatInt();
+ BitmapEx aBmpEx;
+ const USHORT nOldFormat = rIStm.GetNumberFormatInt();
rIStm.SeekRel( -4 );
rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
@@ -1568,8 +1568,8 @@ SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
if( !rIStm.GetError() )
{
- UINT32 nMagic1(0), nMagic2(0);
- ULONG nActPos = rIStm.Tell();
+ UINT32 nMagic1(0), nMagic2(0);
+ ULONG nActPos = rIStm.Tell();
rIStm >> nMagic1 >> nMagic2;
rIStm.Seek( nActPos );
diff --git a/vcl/source/gdi/impimage.cxx b/vcl/source/gdi/impimage.cxx
index 120445f53aec..ad91356e801f 100644
--- a/vcl/source/gdi/impimage.cxx
+++ b/vcl/source/gdi/impimage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,9 +41,9 @@
// - Defines -
// -----------
-#define IMPSYSIMAGEITEM_MASK ( 0x01 )
-#define IMPSYSIMAGEITEM_ALPHA ( 0x02 )
-#define DISA_ALL ( 0xffff )
+#define IMPSYSIMAGEITEM_MASK ( 0x01 )
+#define IMPSYSIMAGEITEM_ALPHA ( 0x02 )
+#define DISA_ALL ( 0xffff )
// ----------------
// - ImageAryData -
@@ -254,9 +254,9 @@ void ImplImageBmp::Create( const BitmapEx& rBmpEx, long nItemWidth, long nItemHe
void ImplImageBmp::Expand( USHORT nGrowSize )
{
- const ULONG nDX = nGrowSize * maSize.Width();
- const USHORT nOldSize = mnSize;
- BYTE* pNewAry = new BYTE[ mnSize = sal::static_int_cast<USHORT>(mnSize+nGrowSize) ];
+ const ULONG nDX = nGrowSize * maSize.Width();
+ const USHORT nOldSize = mnSize;
+ BYTE* pNewAry = new BYTE[ mnSize = sal::static_int_cast<USHORT>(mnSize+nGrowSize) ];
maBmpEx.Expand( nDX, 0UL );
@@ -358,8 +358,8 @@ void ImplImageBmp::ColorTransform( BmpColorMode eColorMode )
BitmapEx ImplImageBmp::GetBitmapEx( USHORT nPosCount, USHORT* pPosAry ) const
{
- const Bitmap aNewBmp( Size( nPosCount * maSize.Width(), maSize.Height() ), maBmpEx.GetBitmap().GetBitCount() );
- BitmapEx aRet;
+ const Bitmap aNewBmp( Size( nPosCount * maSize.Width(), maSize.Height() ), maBmpEx.GetBitmap().GetBitCount() );
+ BitmapEx aRet;
if( maBmpEx.IsAlpha() )
{
// initialize target bitmap with an empty alpha mask
@@ -374,7 +374,7 @@ BitmapEx ImplImageBmp::GetBitmapEx( USHORT nPosCount, USHORT* pPosAry ) const
for( USHORT i = 0; i < nPosCount; i++ )
{
const Point aSrcPos( pPosAry[ i ] * maSize.Width(), 0L );
- const Point aPos( i * maSize.Width(), 0L );
+ const Point aPos( i * maSize.Width(), 0L );
const Rectangle aSrcRect( aSrcPos, maSize );
const Rectangle aDstRect( aPos, maSize );
@@ -393,7 +393,7 @@ void ImplImageBmp::Draw( USHORT nPos, OutputDevice* pOutDev,
if( pOutDev->IsDeviceOutputNecessary() )
{
const Point aSrcPos( nPos * maSize.Width(), 0 );
- Size aOutSize;
+ Size aOutSize;
aOutSize = ( pSize ? *pSize : pOutDev->PixelToLogic( maSize ) );
@@ -434,15 +434,15 @@ void ImplImageBmp::Draw( USHORT nPos, OutputDevice* pOutDev,
if( pAcc )
{
- const StyleSettings& rSettings = pOutDev->GetSettings().GetStyleSettings();
- Color aColor;
- BitmapColor aCol;
- const long nW = pAcc->Width();
- const long nH = pAcc->Height();
- BYTE* pMapR = new BYTE[ 256 ];
- BYTE* pMapG = new BYTE[ 256 ];
- BYTE* pMapB = new BYTE[ 256 ];
- long nX, nY;
+ const StyleSettings& rSettings = pOutDev->GetSettings().GetStyleSettings();
+ Color aColor;
+ BitmapColor aCol;
+ const long nW = pAcc->Width();
+ const long nH = pAcc->Height();
+ BYTE* pMapR = new BYTE[ 256 ];
+ BYTE* pMapG = new BYTE[ 256 ];
+ BYTE* pMapB = new BYTE[ 256 ];
+ long nX, nY;
if( nStyle & IMAGE_DRAW_HIGHLIGHT )
aColor = rSettings.GetHighlightColor();
@@ -605,7 +605,7 @@ void ImplImageBmp::ImplUpdateDisabledBmpEx( int nPos )
if( pBmp && pBmpAlphaMask && pGrey && pGreyAlphaMask )
{
- BitmapColor aGreyVal( 0 );
+ BitmapColor aGreyVal( 0 );
BitmapColor aGreyAlphaMaskVal( 0 );
const Point aPos( ( nPos < 0 ) ? 0 : ( nPos * maSize.Width() ), 0 );
const int nLeft = aPos.X(), nRight = nLeft + ( ( nPos < 0 ) ? aTotalSize.Width() : maSize.Width() );
diff --git a/vcl/source/gdi/impimagetree.cxx b/vcl/source/gdi/impimagetree.cxx
index 54fa97e5f46f..51435965c040 100644
--- a/vcl/source/gdi/impimagetree.cxx
+++ b/vcl/source/gdi/impimagetree.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx
index dba961c5556f..5cd2c4c51c98 100644
--- a/vcl/source/gdi/impvect.cxx
+++ b/vcl/source/gdi/impvect.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,16 +53,16 @@
// -----------------------------------------------------------------------------
-#define VECT_POLY_INLINE_INNER 1UL
-#define VECT_POLY_INLINE_OUTER 2UL
-#define VECT_POLY_OUTLINE_INNER 4UL
-#define VECT_POLY_OUTLINE_OUTER 8UL
+#define VECT_POLY_INLINE_INNER 1UL
+#define VECT_POLY_INLINE_OUTER 2UL
+#define VECT_POLY_OUTLINE_INNER 4UL
+#define VECT_POLY_OUTLINE_OUTER 8UL
// -----------------------------------------------------------------------------
-#define VECT_MAP( _def_pIn, _def_pOut, _def_nVal ) _def_pOut[_def_nVal]=(_def_pIn[_def_nVal]=((_def_nVal)*4L)+1L)+5L;
-#define BACK_MAP( _def_nVal ) ((((_def_nVal)+2)>>2)-1)
-#define VECT_PROGRESS( _def_pProgress, _def_nVal ) if(_def_pProgress&&_def_pProgress->IsSet())(_def_pProgress->Call((void*)_def_nVal));
+#define VECT_MAP( _def_pIn, _def_pOut, _def_nVal ) _def_pOut[_def_nVal]=(_def_pIn[_def_nVal]=((_def_nVal)*4L)+1L)+5L;
+#define BACK_MAP( _def_nVal ) ((((_def_nVal)+2)>>2)-1)
+#define VECT_PROGRESS( _def_pProgress, _def_nVal ) if(_def_pProgress&&_def_pProgress->IsSet())(_def_pProgress->Call((void*)_def_nVal));
// -----------
// - statics -
@@ -70,7 +70,7 @@
struct ChainMove { long nDX; long nDY; };
-static ChainMove aImplMove[ 8 ] = {
+static ChainMove aImplMove[ 8 ] = {
{ 1L, 0L },
{ 0L, -1L },
{ -1L, 0L },
@@ -81,7 +81,7 @@ static ChainMove aImplMove[ 8 ] = {
{ 1L, 1L }
};
-static ChainMove aImplMoveInner[ 8 ] = {
+static ChainMove aImplMoveInner[ 8 ] = {
{ 0L, 1L },
{ 1L, 0L },
{ 0L, -1L },
@@ -92,7 +92,7 @@ static ChainMove aImplMoveInner[ 8 ] = {
{ -1L, 0L }
};
-static ChainMove aImplMoveOuter[ 8 ] = {
+static ChainMove aImplMoveOuter[ 8 ] = {
{ 0L, -1L },
{ -1L, 0L },
{ 0L, 1L },
@@ -110,11 +110,11 @@ static ChainMove aImplMoveOuter[ 8 ] = {
struct ImplColorSet
{
BitmapColor maColor;
- USHORT mnIndex;
- BOOL mbSet;
+ USHORT mnIndex;
+ BOOL mbSet;
- BOOL operator<( const ImplColorSet& rSet ) const;
- BOOL operator>( const ImplColorSet& rSet ) const;
+ BOOL operator<( const ImplColorSet& rSet ) const;
+ BOOL operator>( const ImplColorSet& rSet ) const;
};
// ----------------------------------------------------------------------------
@@ -135,9 +135,9 @@ inline BOOL ImplColorSet::operator>( const ImplColorSet& rSet ) const
extern "C" int __LOADONCALLAPI ImplColorSetCmpFnc( const void* p1, const void* p2 )
{
- ImplColorSet* pSet1 = (ImplColorSet*) p1;
- ImplColorSet* pSet2 = (ImplColorSet*) p2;
- int nRet;
+ ImplColorSet* pSet1 = (ImplColorSet*) p1;
+ ImplColorSet* pSet2 = (ImplColorSet*) p2;
+ int nRet;
if( pSet1->mbSet && pSet2->mbSet )
{
@@ -161,32 +161,32 @@ extern "C" int __LOADONCALLAPI ImplColorSetCmpFnc( const void* p1, const void* p
class ImplPointArray
{
- Point* mpArray;
- ULONG mnSize;
- ULONG mnRealSize;
+ Point* mpArray;
+ ULONG mnSize;
+ ULONG mnRealSize;
public:
ImplPointArray();
~ImplPointArray();
- void ImplSetSize( ULONG nSize );
+ void ImplSetSize( ULONG nSize );
- ULONG ImplGetRealSize() const { return mnRealSize; }
- void ImplSetRealSize( ULONG nRealSize ) { mnRealSize = nRealSize; }
+ ULONG ImplGetRealSize() const { return mnRealSize; }
+ void ImplSetRealSize( ULONG nRealSize ) { mnRealSize = nRealSize; }
- inline Point& operator[]( ULONG nPos );
- inline const Point& operator[]( ULONG nPos ) const;
+ inline Point& operator[]( ULONG nPos );
+ inline const Point& operator[]( ULONG nPos ) const;
- void ImplCreatePoly( Polygon& rPoly ) const;
+ void ImplCreatePoly( Polygon& rPoly ) const;
};
// -----------------------------------------------------------------------------
ImplPointArray::ImplPointArray() :
- mpArray ( NULL ),
- mnSize ( 0UL ),
- mnRealSize ( 0UL )
+ mpArray ( NULL ),
+ mnSize ( 0UL ),
+ mnRealSize ( 0UL )
{
}
@@ -246,10 +246,10 @@ class ImplVectMap
{
private:
- Scanline mpBuf;
- Scanline* mpScan;
- long mnWidth;
- long mnHeight;
+ Scanline mpBuf;
+ Scanline* mpScan;
+ long mnWidth;
+ long mnHeight;
ImplVectMap() {};
@@ -258,27 +258,27 @@ public:
ImplVectMap( long nWidth, long nHeight );
~ImplVectMap();
- inline long Width() const { return mnWidth; }
- inline long Height() const { return mnHeight; }
+ inline long Width() const { return mnWidth; }
+ inline long Height() const { return mnHeight; }
- inline void Set( long nY, long nX, BYTE cVal );
- inline BYTE Get( long nY, long nX ) const;
+ inline void Set( long nY, long nX, BYTE cVal );
+ inline BYTE Get( long nY, long nX ) const;
- inline BOOL IsFree( long nY, long nX ) const;
- inline BOOL IsCont( long nY, long nX ) const;
- inline BOOL IsDone( long nY, long nX ) const;
+ inline BOOL IsFree( long nY, long nX ) const;
+ inline BOOL IsCont( long nY, long nX ) const;
+ inline BOOL IsDone( long nY, long nX ) const;
};
// -----------------------------------------------------------------------------
ImplVectMap::ImplVectMap( long nWidth, long nHeight ) :
- mnWidth ( nWidth ),
+ mnWidth ( nWidth ),
mnHeight( nHeight )
{
- const long nWidthAl = ( nWidth >> 2L ) + 1L;
- const long nSize = nWidthAl * nHeight;
- Scanline pTmp = mpBuf = (Scanline) rtl_allocateMemory( nSize );
+ const long nWidthAl = ( nWidth >> 2L ) + 1L;
+ const long nSize = nWidthAl * nHeight;
+ Scanline pTmp = mpBuf = (Scanline) rtl_allocateMemory( nSize );
memset( mpBuf, 0, nSize );
mpScan = (Scanline*) rtl_allocateMemory( nHeight * sizeof( Scanline ) );
@@ -298,7 +298,7 @@ ImplVectMap::~ImplVectMap()
// -----------------------------------------------------------------------------
-inline void ImplVectMap::Set( long nY, long nX, BYTE cVal )
+inline void ImplVectMap::Set( long nY, long nX, BYTE cVal )
{
const BYTE cShift = sal::static_int_cast<BYTE>(6 - ( ( nX & 3 ) << 1 ));
( ( mpScan[ nY ][ nX >> 2 ] ) &= ~( 3 << cShift ) ) |= ( cVal << cShift );
@@ -306,7 +306,7 @@ inline void ImplVectMap::Set( long nY, long nX, BYTE cVal )
// -----------------------------------------------------------------------------
-inline BYTE ImplVectMap::Get( long nY, long nX ) const
+inline BYTE ImplVectMap::Get( long nY, long nX ) const
{
return sal::static_int_cast<BYTE>( ( ( mpScan[ nY ][ nX >> 2 ] ) >> ( 6 - ( ( nX & 3 ) << 1 ) ) ) & 3 );
}
@@ -340,38 +340,38 @@ class ImplChain
{
private:
- Polygon maPoly;
- Point maStartPt;
- ULONG mnArraySize;
- ULONG mnCount;
- long mnResize;
- BYTE* mpCodes;
+ Polygon maPoly;
+ Point maStartPt;
+ ULONG mnArraySize;
+ ULONG mnCount;
+ long mnResize;
+ BYTE* mpCodes;
- void ImplGetSpace();
+ void ImplGetSpace();
- void ImplCreate();
- void ImplCreateInner();
- void ImplCreateOuter();
- void ImplPostProcess( const ImplPointArray& rArr );
+ void ImplCreate();
+ void ImplCreateInner();
+ void ImplCreateOuter();
+ void ImplPostProcess( const ImplPointArray& rArr );
public:
ImplChain( ULONG nInitCount = 1024UL, long nResize = -1L );
~ImplChain();
- void ImplBeginAdd( const Point& rStartPt );
- inline void ImplAdd( BYTE nCode );
- void ImplEndAdd( ULONG nTypeFlag );
+ void ImplBeginAdd( const Point& rStartPt );
+ inline void ImplAdd( BYTE nCode );
+ void ImplEndAdd( ULONG nTypeFlag );
- const Polygon& ImplGetPoly() { return maPoly; }
+ const Polygon& ImplGetPoly() { return maPoly; }
};
// -----------------------------------------------------------------------------
ImplChain::ImplChain( ULONG nInitCount, long nResize ) :
- mnArraySize ( nInitCount ),
- mnCount ( 0UL ),
- mnResize ( nResize )
+ mnArraySize ( nInitCount ),
+ mnCount ( 0UL ),
+ mnResize ( nResize )
{
DBG_ASSERT( nInitCount && nResize, "ImplChain::ImplChain(): invalid parameters!" );
mpCodes = new BYTE[ mnArraySize ];
@@ -389,7 +389,7 @@ ImplChain::~ImplChain()
void ImplChain::ImplGetSpace()
{
const ULONG nOldArraySize = mnArraySize;
- BYTE* pNewCodes;
+ BYTE* pNewCodes;
mnArraySize = ( mnResize < 0L ) ? ( mnArraySize << 1UL ) : ( mnArraySize + (ULONG) mnResize );
pNewCodes = new BYTE[ mnArraySize ];
@@ -409,7 +409,7 @@ void ImplChain::ImplBeginAdd( const Point& rStartPt )
// -----------------------------------------------------------------------------
-inline void ImplChain::ImplAdd( BYTE nCode )
+inline void ImplChain::ImplAdd( BYTE nCode )
{
if( mnCount == mnArraySize )
ImplGetSpace();
@@ -437,12 +437,12 @@ void ImplChain::ImplEndAdd( ULONG nFlag )
USHORT i, nPolyPos;
for( i = 0, nPolyPos = 0; i < ( mnCount - 1 ); i++ )
{
- const BYTE cMove = mpCodes[ i ];
- const BYTE cNextMove = mpCodes[ i + 1 ];
- const ChainMove& rMove = aImplMove[ cMove ];
- const ChainMove& rMoveInner = aImplMoveInner[ cMove ];
-// Point& rPt = aArr[ nPolyPos ];
- BOOL bDone = TRUE;
+ const BYTE cMove = mpCodes[ i ];
+ const BYTE cNextMove = mpCodes[ i + 1 ];
+ const ChainMove& rMove = aImplMove[ cMove ];
+ const ChainMove& rMoveInner = aImplMoveInner[ cMove ];
+// Point& rPt = aArr[ nPolyPos ];
+ BOOL bDone = TRUE;
nLastX += rMove.nDX;
nLastY += rMove.nDY;
@@ -544,12 +544,12 @@ void ImplChain::ImplEndAdd( ULONG nFlag )
USHORT i, nPolyPos;
for( i = 0, nPolyPos = 0; i < ( mnCount - 1 ); i++ )
{
- const BYTE cMove = mpCodes[ i ];
- const BYTE cNextMove = mpCodes[ i + 1 ];
- const ChainMove& rMove = aImplMove[ cMove ];
- const ChainMove& rMoveOuter = aImplMoveOuter[ cMove ];
-// Point& rPt = aArr[ nPolyPos ];
- BOOL bDone = TRUE;
+ const BYTE cMove = mpCodes[ i ];
+ const BYTE cNextMove = mpCodes[ i + 1 ];
+ const ChainMove& rMove = aImplMove[ cMove ];
+ const ChainMove& rMoveOuter = aImplMoveOuter[ cMove ];
+// Point& rPt = aArr[ nPolyPos ];
+ BOOL bDone = TRUE;
nLastX += rMove.nDX;
nLastY += rMove.nDY;
@@ -665,13 +665,13 @@ void ImplChain::ImplEndAdd( ULONG nFlag )
void ImplChain::ImplPostProcess( const ImplPointArray& rArr )
{
- ImplPointArray aNewArr1;
- ImplPointArray aNewArr2;
- Point* pLast;
- Point* pLeast;
- ULONG nNewPos;
- ULONG nCount = rArr.ImplGetRealSize();
- ULONG n;
+ ImplPointArray aNewArr1;
+ ImplPointArray aNewArr2;
+ Point* pLast;
+ Point* pLeast;
+ ULONG nNewPos;
+ ULONG nCount = rArr.ImplGetRealSize();
+ ULONG n;
// pass 1
aNewArr1.ImplSetSize( nCount );
@@ -682,8 +682,8 @@ void ImplChain::ImplPostProcess( const ImplPointArray& rArr )
for( n = nNewPos = 1; n < nCount; )
{
const Point& rPt = rArr[ n++ ];
- const long nX = BACK_MAP( rPt.X() );
- const long nY = BACK_MAP( rPt.Y() );
+ const long nX = BACK_MAP( rPt.X() );
+ const long nY = BACK_MAP( rPt.Y() );
if( nX != pLast->X() || nY != pLast->Y() )
{
@@ -745,19 +745,19 @@ BOOL ImplVectorizer::ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rMtf,
VECT_PROGRESS( pProgress, 0 );
- Bitmap* pBmp = new Bitmap( rColorBmp );
- BitmapReadAccess* pRAcc = pBmp->AcquireReadAccess();
+ Bitmap* pBmp = new Bitmap( rColorBmp );
+ BitmapReadAccess* pRAcc = pBmp->AcquireReadAccess();
if( pRAcc )
{
- PolyPolygon aPolyPoly;
- double fPercent = 0.0;
- double fPercentStep_2 = 0.0;
- const long nWidth = pRAcc->Width();
- const long nHeight = pRAcc->Height();
- const USHORT nColorCount = pRAcc->GetPaletteEntryCount();
- USHORT n;
- ImplColorSet* pColorSet = (ImplColorSet*) new BYTE[ 256 * sizeof( ImplColorSet ) ];
+ PolyPolygon aPolyPoly;
+ double fPercent = 0.0;
+ double fPercentStep_2 = 0.0;
+ const long nWidth = pRAcc->Width();
+ const long nHeight = pRAcc->Height();
+ const USHORT nColorCount = pRAcc->GetPaletteEntryCount();
+ USHORT n;
+ ImplColorSet* pColorSet = (ImplColorSet*) new BYTE[ 256 * sizeof( ImplColorSet ) ];
memset( pColorSet, 0, 256 * sizeof( ImplColorSet ) );
rMtf.Clear();
@@ -786,10 +786,10 @@ BOOL ImplVectorizer::ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rMtf,
for( USHORT i = 0; i < n; i++ )
{
- const BitmapColor aBmpCol( pRAcc->GetPaletteColor( pColorSet[ i ].mnIndex ) );
- const Color aFindColor( aBmpCol.GetRed(), aBmpCol.GetGreen(), aBmpCol.GetBlue() );
-// const BYTE cLum = aFindColor.GetLuminance();
- ImplVectMap* pMap = ImplExpand( pRAcc, aFindColor );
+ const BitmapColor aBmpCol( pRAcc->GetPaletteColor( pColorSet[ i ].mnIndex ) );
+ const Color aFindColor( aBmpCol.GetRed(), aBmpCol.GetGreen(), aBmpCol.GetBlue() );
+// const BYTE cLum = aFindColor.GetLuminance();
+ ImplVectMap* pMap = ImplExpand( pRAcc, aFindColor );
VECT_PROGRESS( pProgress, FRound( fPercent += fPercentStep_2 ) );
@@ -822,9 +822,9 @@ BOOL ImplVectorizer::ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rMtf,
if( rMtf.GetActionCount() )
{
- MapMode aMap( MAP_100TH_MM );
- VirtualDevice aVDev;
- const Size aLogSize1( aVDev.PixelToLogic( Size( 1, 1 ), aMap ) );
+ MapMode aMap( MAP_100TH_MM );
+ VirtualDevice aVDev;
+ const Size aLogSize1( aVDev.PixelToLogic( Size( 1, 1 ), aMap ) );
rMtf.SetPrefMapMode( aMap );
rMtf.SetPrefSize( Size( nWidth + 2, nHeight + 2 ) );
@@ -847,10 +847,10 @@ BOOL ImplVectorizer::ImplVectorize( const Bitmap& rMonoBmp,
PolyPolygon& rPolyPoly,
ULONG nFlags, const Link* pProgress )
{
- Bitmap* pBmp = new Bitmap( rMonoBmp );
- BitmapReadAccess* pRAcc;
- ImplVectMap* pMap;
- BOOL bRet = FALSE;
+ Bitmap* pBmp = new Bitmap( rMonoBmp );
+ BitmapReadAccess* pRAcc;
+ ImplVectMap* pMap;
+ BOOL bRet = FALSE;
VECT_PROGRESS( pProgress, 10 );
@@ -886,10 +886,10 @@ BOOL ImplVectorizer::ImplVectorize( const Bitmap& rMonoBmp,
for( ; nCurPoly < nCount; ++nCurPoly )
{
- const Polygon& rPoly = rPolyPoly.GetObject( nCurPoly );
+ const Polygon& rPoly = rPolyPoly.GetObject( nCurPoly );
const sal_uInt16 nSize( rPoly.GetSize() );
- sal_uInt16 nDepth( 0 ), i( 0 );
- const bool bRight( rPoly.IsRightOrientated() );
+ sal_uInt16 nDepth( 0 ), i( 0 );
+ const bool bRight( rPoly.IsRightOrientated() );
for( ; i < nCount; ++i )
if( ( i != nCurPoly ) && rPolyPoly.GetObject( i ).IsInside( rPoly[ 0 ] ) )
@@ -899,7 +899,7 @@ BOOL ImplVectorizer::ImplVectorize( const Bitmap& rMonoBmp,
if( nSize && ( ( !bRight && !bHole ) || ( bRight && bHole ) ) )
{
- Polygon aNewPoly( nSize );
+ Polygon aNewPoly( nSize );
sal_uInt16 nPrim( 0 ), nSec( nSize - 1 );
if( rPoly.HasFlags() )
@@ -929,7 +929,7 @@ BOOL ImplVectorizer::ImplVectorize( const Bitmap& rMonoBmp,
rPolyPoly.Remove( static_cast< USHORT >( nFirstPoly ) );
rPolyPoly.Insert( aFirst, 0 );
}
-
+
bRet = TRUE;
}
@@ -945,8 +945,8 @@ void ImplVectorizer::ImplLimitPolyPoly( PolyPolygon& rPolyPoly )
if( rPolyPoly.Count() > VECT_POLY_MAX )
{
PolyPolygon aNewPolyPoly;
- long nReduce = 0;
- USHORT nNewCount;
+ long nReduce = 0;
+ USHORT nNewCount;
do
{
@@ -980,14 +980,14 @@ ImplVectMap* ImplVectorizer::ImplExpand( BitmapReadAccess* pRAcc, const Color& r
if( pRAcc && pRAcc->Width() && pRAcc->Height() )
{
- const long nOldWidth = pRAcc->Width();
- const long nOldHeight = pRAcc->Height();
- const long nNewWidth = ( nOldWidth << 2L ) + 4L;
- const long nNewHeight = ( nOldHeight << 2L ) + 4L;
- const BitmapColor aTest( pRAcc->GetBestMatchingColor( rColor ) );
- long* pMapIn = new long[ Max( nOldWidth, nOldHeight ) ];
- long* pMapOut = new long[ Max( nOldWidth, nOldHeight ) ];
- long nX, nY, nTmpX, nTmpY;
+ const long nOldWidth = pRAcc->Width();
+ const long nOldHeight = pRAcc->Height();
+ const long nNewWidth = ( nOldWidth << 2L ) + 4L;
+ const long nNewHeight = ( nOldHeight << 2L ) + 4L;
+ const BitmapColor aTest( pRAcc->GetBestMatchingColor( rColor ) );
+ long* pMapIn = new long[ Max( nOldWidth, nOldHeight ) ];
+ long* pMapOut = new long[ Max( nOldWidth, nOldHeight ) ];
+ long nX, nY, nTmpX, nTmpY;
pMap = new ImplVectMap( nNewWidth, nNewHeight );
@@ -1073,8 +1073,8 @@ void ImplVectorizer::ImplCalculate( ImplVectMap* pMap, PolyPolygon& rPolyPoly, B
for( long nY = 0L; nY < nHeight; nY++ )
{
- long nX = 0L;
- BOOL bInner = TRUE;
+ long nX = 0L;
+ BOOL bInner = TRUE;
while( nX < nWidth )
{
@@ -1088,8 +1088,8 @@ void ImplVectorizer::ImplCalculate( ImplVectMap* pMap, PolyPolygon& rPolyPoly, B
if( pMap->IsCont( nY, nX ) )
{
// new contour
- ImplChain aChain;
- const Point aStartPt( nX++, nY );
+ ImplChain aChain;
+ const Point aStartPt( nX++, nY );
// get chain code
aChain.ImplBeginAdd( aStartPt );
@@ -1106,7 +1106,7 @@ void ImplVectorizer::ImplCalculate( ImplVectMap* pMap, PolyPolygon& rPolyPoly, B
{
if( cReduce )
{
- const Rectangle aBound( rPoly.GetBoundRect() );
+ const Rectangle aBound( rPoly.GetBoundRect() );
if( aBound.GetWidth() > cReduce && aBound.GetHeight() > cReduce )
rPolyPoly.Insert( rPoly );
@@ -1136,15 +1136,15 @@ void ImplVectorizer::ImplCalculate( ImplVectMap* pMap, PolyPolygon& rPolyPoly, B
// -----------------------------------------------------------------------------
-BOOL ImplVectorizer::ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain )
+BOOL ImplVectorizer::ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain )
{
- long nActX = rStartPt.X();
- long nActY = rStartPt.Y();
- long nTryX;
- long nTryY;
- ULONG nFound;
- ULONG nLastDir = 0UL;
- ULONG nDir;
+ long nActX = rStartPt.X();
+ long nActY = rStartPt.Y();
+ long nTryX;
+ long nTryY;
+ ULONG nFound;
+ ULONG nLastDir = 0UL;
+ ULONG nDir;
do
{
diff --git a/vcl/source/gdi/impvect.hxx b/vcl/source/gdi/impvect.hxx
index cf81e1799494..db1213e14e9b 100644
--- a/vcl/source/gdi/impvect.hxx
+++ b/vcl/source/gdi/impvect.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,21 +43,21 @@ class ImplVectMap;
class ImplVectorizer
{
private:
-
- ImplVectMap* ImplExpand( BitmapReadAccess* pRAcc, const Color& rColor );
- void ImplCalculate( ImplVectMap* pMap, PolyPolygon& rPolyPoly, BYTE cReduce, ULONG nFlags );
- BOOL ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain );
- BOOL ImplIsUp( ImplVectMap* pMap, long nY, long nX ) const;
- void ImplLimitPolyPoly( PolyPolygon& rPolyPoly );
-
-public:
+
+ ImplVectMap* ImplExpand( BitmapReadAccess* pRAcc, const Color& rColor );
+ void ImplCalculate( ImplVectMap* pMap, PolyPolygon& rPolyPoly, BYTE cReduce, ULONG nFlags );
+ BOOL ImplGetChain( ImplVectMap* pMap, const Point& rStartPt, ImplChain& rChain );
+ BOOL ImplIsUp( ImplVectMap* pMap, long nY, long nX ) const;
+ void ImplLimitPolyPoly( PolyPolygon& rPolyPoly );
+
+public:
ImplVectorizer();
~ImplVectorizer();
-
- BOOL ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rMtf,
+
+ BOOL ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rMtf,
BYTE cReduce, ULONG nFlags, const Link* pProgress );
- BOOL ImplVectorize( const Bitmap& rMonoBmp, PolyPolygon& rPolyPoly,
+ BOOL ImplVectorize( const Bitmap& rMonoBmp, PolyPolygon& rPolyPoly,
ULONG nFlags, const Link* pProgress );
};
diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx
index 416b9db18725..5174caaffc96 100644
--- a/vcl/source/gdi/jobset.cxx
+++ b/vcl/source/gdi/jobset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,44 +38,44 @@
DBG_NAME( JobSetup )
-#define JOBSET_FILEFORMAT2 3780
-#define JOBSET_FILE364_SYSTEM ((USHORT)0xFFFF)
-#define JOBSET_FILE605_SYSTEM ((USHORT)0xFFFE)
+#define JOBSET_FILEFORMAT2 3780
+#define JOBSET_FILE364_SYSTEM ((USHORT)0xFFFF)
+#define JOBSET_FILE605_SYSTEM ((USHORT)0xFFFE)
struct ImplOldJobSetupData
{
- char cPrinterName[64];
- char cDeviceName[32];
- char cPortName[32];
- char cDriverName[32];
+ char cPrinterName[64];
+ char cDeviceName[32];
+ char cPortName[32];
+ char cDriverName[32];
};
struct Impl364JobSetupData
{
- SVBT16 nSize;
- SVBT16 nSystem;
- SVBT32 nDriverDataLen;
- SVBT16 nOrientation;
- SVBT16 nPaperBin;
- SVBT16 nPaperFormat;
- SVBT32 nPaperWidth;
- SVBT32 nPaperHeight;
+ SVBT16 nSize;
+ SVBT16 nSystem;
+ SVBT32 nDriverDataLen;
+ SVBT16 nOrientation;
+ SVBT16 nPaperBin;
+ SVBT16 nPaperFormat;
+ SVBT32 nPaperWidth;
+ SVBT32 nPaperHeight;
};
// =======================================================================
ImplJobSetup::ImplJobSetup()
{
- mnRefCount = 1;
- mnSystem = 0;
- meOrientation = ORIENTATION_PORTRAIT;
+ mnRefCount = 1;
+ mnSystem = 0;
+ meOrientation = ORIENTATION_PORTRAIT;
meDuplexMode = DUPLEX_UNKNOWN;
- mnPaperBin = 0;
- mePaperFormat = PAPER_USER;
- mnPaperWidth = 0;
- mnPaperHeight = 0;
- mnDriverDataLen = 0;
- mpDriverData = NULL;
+ mnPaperBin = 0;
+ mePaperFormat = PAPER_USER;
+ mnPaperWidth = 0;
+ mnPaperHeight = 0;
+ mnDriverDataLen = 0;
+ mpDriverData = NULL;
}
// -----------------------------------------------------------------------
@@ -84,15 +84,15 @@ ImplJobSetup::ImplJobSetup( const ImplJobSetup& rJobSetup ) :
maPrinterName( rJobSetup.maPrinterName ),
maDriver( rJobSetup.maDriver )
{
- mnRefCount = 1;
- mnSystem = rJobSetup.mnSystem;
- meOrientation = rJobSetup.meOrientation;
+ mnRefCount = 1;
+ mnSystem = rJobSetup.mnSystem;
+ meOrientation = rJobSetup.meOrientation;
meDuplexMode = rJobSetup.meDuplexMode;
- mnPaperBin = rJobSetup.mnPaperBin;
- mePaperFormat = rJobSetup.mePaperFormat;
- mnPaperWidth = rJobSetup.mnPaperWidth;
- mnPaperHeight = rJobSetup.mnPaperHeight;
- mnDriverDataLen = rJobSetup.mnDriverDataLen;
+ mnPaperBin = rJobSetup.mnPaperBin;
+ mePaperFormat = rJobSetup.mePaperFormat;
+ mnPaperWidth = rJobSetup.mnPaperWidth;
+ mnPaperHeight = rJobSetup.mnPaperHeight;
+ mnDriverDataLen = rJobSetup.mnDriverDataLen;
if ( rJobSetup.mpDriverData )
{
mpDriverData = (BYTE*)rtl_allocateMemory( mnDriverDataLen );
@@ -100,7 +100,7 @@ ImplJobSetup::ImplJobSetup( const ImplJobSetup& rJobSetup ) :
}
else
mpDriverData = NULL;
- maValueMap = rJobSetup.maValueMap;
+ maValueMap = rJobSetup.maValueMap;
}
// -----------------------------------------------------------------------
@@ -271,18 +271,18 @@ BOOL JobSetup::operator==( const JobSetup& rJobSetup ) const
ImplJobSetup* pData1 = mpData;
ImplJobSetup* pData2 = rJobSetup.mpData;
- if ( (pData1->mnSystem == pData2->mnSystem) &&
- (pData1->maPrinterName == pData2->maPrinterName) &&
- (pData1->maDriver == pData2->maDriver) &&
- (pData1->meOrientation == pData2->meOrientation) &&
- (pData1->meDuplexMode == pData2->meDuplexMode) &&
- (pData1->mnPaperBin == pData2->mnPaperBin) &&
- (pData1->mePaperFormat == pData2->mePaperFormat) &&
- (pData1->mnPaperWidth == pData2->mnPaperWidth) &&
- (pData1->mnPaperHeight == pData2->mnPaperHeight) &&
- (pData1->mnDriverDataLen == pData2->mnDriverDataLen) &&
- (memcmp( pData1->mpDriverData, pData2->mpDriverData, pData1->mnDriverDataLen ) == 0) &&
- (pData1->maValueMap == pData2->maValueMap)
+ if ( (pData1->mnSystem == pData2->mnSystem) &&
+ (pData1->maPrinterName == pData2->maPrinterName) &&
+ (pData1->maDriver == pData2->maDriver) &&
+ (pData1->meOrientation == pData2->meOrientation) &&
+ (pData1->meDuplexMode == pData2->meDuplexMode) &&
+ (pData1->mnPaperBin == pData2->mnPaperBin) &&
+ (pData1->mePaperFormat == pData2->mePaperFormat) &&
+ (pData1->mnPaperWidth == pData2->mnPaperWidth) &&
+ (pData1->mnPaperHeight == pData2->mnPaperHeight) &&
+ (pData1->mnDriverDataLen == pData2->mnDriverDataLen) &&
+ (memcmp( pData1->mpDriverData, pData2->mpDriverData, pData1->mnDriverDataLen ) == 0) &&
+ (pData1->maValueMap == pData2->maValueMap)
)
return TRUE;
@@ -296,7 +296,7 @@ SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup )
DBG_ASSERTWARNING( rIStream.GetVersion(), "JobSetup::>> - Solar-Version not set on rOStream" );
// Zur Zeit haben wir noch kein neues FileFormat
-// if ( rIStream.GetVersion() < JOBSET_FILEFORMAT2 )
+// if ( rIStream.GetVersion() < JOBSET_FILEFORMAT2 )
{
USHORT nLen;
USHORT nSystem;
@@ -317,30 +317,30 @@ SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup )
else
rJobSetup.mpData->mnRefCount--;
}
-
+
rtl_TextEncoding aStreamEncoding = RTL_TEXTENCODING_UTF8;
if( nSystem == JOBSET_FILE364_SYSTEM )
aStreamEncoding = rIStream.GetStreamCharSet();
-
+
rJobSetup.mpData = new ImplJobSetup;
ImplJobSetup* pJobData = rJobSetup.mpData;
pJobData->maPrinterName = UniString( pData->cPrinterName, aStreamEncoding );
- pJobData->maDriver = UniString( pData->cDriverName, aStreamEncoding );
+ pJobData->maDriver = UniString( pData->cDriverName, aStreamEncoding );
// Sind es unsere neuen JobSetup-Daten?
if ( nSystem == JOBSET_FILE364_SYSTEM ||
nSystem == JOBSET_FILE605_SYSTEM )
{
- Impl364JobSetupData* pOldJobData = (Impl364JobSetupData*)(pTempBuf + sizeof( ImplOldJobSetupData ));
- USHORT nOldJobDataSize = SVBT16ToShort( pOldJobData->nSize );
- pJobData->mnSystem = SVBT16ToShort( pOldJobData->nSystem );
- pJobData->mnDriverDataLen = SVBT32ToUInt32( pOldJobData->nDriverDataLen );
- pJobData->meOrientation = (Orientation)SVBT16ToShort( pOldJobData->nOrientation );
+ Impl364JobSetupData* pOldJobData = (Impl364JobSetupData*)(pTempBuf + sizeof( ImplOldJobSetupData ));
+ USHORT nOldJobDataSize = SVBT16ToShort( pOldJobData->nSize );
+ pJobData->mnSystem = SVBT16ToShort( pOldJobData->nSystem );
+ pJobData->mnDriverDataLen = SVBT32ToUInt32( pOldJobData->nDriverDataLen );
+ pJobData->meOrientation = (Orientation)SVBT16ToShort( pOldJobData->nOrientation );
pJobData->meDuplexMode = DUPLEX_UNKNOWN;
- pJobData->mnPaperBin = SVBT16ToShort( pOldJobData->nPaperBin );
- pJobData->mePaperFormat = (Paper)SVBT16ToShort( pOldJobData->nPaperFormat );
- pJobData->mnPaperWidth = (long)SVBT32ToUInt32( pOldJobData->nPaperWidth );
- pJobData->mnPaperHeight = (long)SVBT32ToUInt32( pOldJobData->nPaperHeight );
+ pJobData->mnPaperBin = SVBT16ToShort( pOldJobData->nPaperBin );
+ pJobData->mePaperFormat = (Paper)SVBT16ToShort( pOldJobData->nPaperFormat );
+ pJobData->mnPaperWidth = (long)SVBT32ToUInt32( pOldJobData->nPaperWidth );
+ pJobData->mnPaperHeight = (long)SVBT32ToUInt32( pOldJobData->nPaperHeight );
if ( pJobData->mnDriverDataLen )
{
BYTE* pDriverData = ((BYTE*)pOldJobData) + nOldJobDataSize;
@@ -393,7 +393,7 @@ SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup )
DBG_ASSERTWARNING( rOStream.GetVersion(), "JobSetup::<< - Solar-Version not set on rOStream" );
// Zur Zeit haben wir noch kein neues FileFormat
-// if ( rOStream.GetVersion() < JOBSET_FILEFORMAT2 )
+// if ( rOStream.GetVersion() < JOBSET_FILEFORMAT2 )
{
USHORT nLen = 0;
if ( !rJobSetup.mpData )
@@ -404,7 +404,7 @@ SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup )
const ImplJobSetup* pJobData = rJobSetup.ImplGetConstData();
Impl364JobSetupData aOldJobData;
- USHORT nOldJobDataSize = sizeof( aOldJobData );
+ USHORT nOldJobDataSize = sizeof( aOldJobData );
ShortToSVBT16( nOldJobDataSize, aOldJobData.nSize );
ShortToSVBT16( pJobData->mnSystem, aOldJobData.nSystem );
UInt32ToSVBT32( pJobData->mnDriverDataLen, aOldJobData.nDriverDataLen );
@@ -420,7 +420,7 @@ SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup )
strncpy( aOldData.cPrinterName, aPrnByteName.GetBuffer(), 63 );
ByteString aDriverByteName( rJobSetup.GetDriverName(), RTL_TEXTENCODING_UTF8 );
strncpy( aOldData.cDriverName, aDriverByteName.GetBuffer(), 31 );
-// nLen = sizeof( aOldData ) + 4 + nOldJobDataSize + pJobData->mnDriverDataLen;
+// nLen = sizeof( aOldData ) + 4 + nOldJobDataSize + pJobData->mnDriverDataLen;
int nPos = rOStream.Tell();
rOStream << nLen;
rOStream << nSystem;
@@ -436,10 +436,10 @@ SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup )
rOStream.WriteByteString( "COMPAT_DUPLEX_MODE" ) ;
switch( pJobData->meDuplexMode )
{
- case DUPLEX_UNKNOWN: rOStream.WriteByteString( "DUPLEX_UNKNOWN" );break;
- case DUPLEX_OFF: rOStream.WriteByteString( "DUPLEX_OFF" );break;
- case DUPLEX_SHORTEDGE: rOStream.WriteByteString( "DUPLEX_SHORTEDGE" );break;
- case DUPLEX_LONGEDGE: rOStream.WriteByteString( "DUPLEX_LONGEDGE" );break;
+ case DUPLEX_UNKNOWN: rOStream.WriteByteString( "DUPLEX_UNKNOWN" );break;
+ case DUPLEX_OFF: rOStream.WriteByteString( "DUPLEX_OFF" );break;
+ case DUPLEX_SHORTEDGE: rOStream.WriteByteString( "DUPLEX_SHORTEDGE" );break;
+ case DUPLEX_LONGEDGE: rOStream.WriteByteString( "DUPLEX_LONGEDGE" );break;
}
nLen = sal::static_int_cast<USHORT>(rOStream.Tell() - nPos);
rOStream.Seek( nPos );
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx
index 8b97c2ecdbff..b2357d82619b 100644
--- a/vcl/source/gdi/lineinfo.cxx
+++ b/vcl/source/gdi/lineinfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,14 +44,14 @@ DBG_NAME( LineInfo )
// ----------------
ImplLineInfo::ImplLineInfo() :
- mnRefCount ( 1 ),
- meStyle ( LINE_SOLID ),
- mnWidth ( 0 ),
- mnDashCount ( 0 ),
- mnDashLen ( 0 ),
- mnDotCount ( 0 ),
- mnDotLen ( 0 ),
- mnDistance ( 0 ),
+ mnRefCount ( 1 ),
+ meStyle ( LINE_SOLID ),
+ mnWidth ( 0 ),
+ mnDashCount ( 0 ),
+ mnDashLen ( 0 ),
+ mnDotCount ( 0 ),
+ mnDotLen ( 0 ),
+ mnDistance ( 0 ),
meLineJoin ( basegfx::B2DLINEJOIN_ROUND )
{
}
@@ -59,14 +59,14 @@ ImplLineInfo::ImplLineInfo() :
// -----------------------------------------------------------------------
ImplLineInfo::ImplLineInfo( const ImplLineInfo& rImplLineInfo ) :
- mnRefCount ( 1 ),
- meStyle ( rImplLineInfo.meStyle ),
- mnWidth ( rImplLineInfo.mnWidth ),
- mnDashCount ( rImplLineInfo.mnDashCount ),
- mnDashLen ( rImplLineInfo.mnDashLen ),
- mnDotCount ( rImplLineInfo.mnDotCount ),
- mnDotLen ( rImplLineInfo.mnDotLen ),
- mnDistance ( rImplLineInfo.mnDistance ),
+ mnRefCount ( 1 ),
+ meStyle ( rImplLineInfo.meStyle ),
+ mnWidth ( rImplLineInfo.mnWidth ),
+ mnDashCount ( rImplLineInfo.mnDashCount ),
+ mnDashLen ( rImplLineInfo.mnDashLen ),
+ mnDotCount ( rImplLineInfo.mnDotCount ),
+ mnDotLen ( rImplLineInfo.mnDotLen ),
+ mnDistance ( rImplLineInfo.mnDistance ),
meLineJoin ( rImplLineInfo.meLineJoin )
{
}
@@ -113,7 +113,7 @@ LineInfo& LineInfo::operator=( const LineInfo& rLineInfo )
if( !( --mpImplLineInfo->mnRefCount ) )
delete mpImplLineInfo;
-
+
mpImplLineInfo = rLineInfo.mpImplLineInfo;
return *this;
}
@@ -228,8 +228,8 @@ void LineInfo::SetLineJoin(basegfx::B2DLineJoin eLineJoin)
SvStream& operator>>( SvStream& rIStm, ImplLineInfo& rImplLineInfo )
{
- VersionCompat aCompat( rIStm, STREAM_READ );
- UINT16 nTmp16;
+ VersionCompat aCompat( rIStm, STREAM_READ );
+ UINT16 nTmp16;
rIStm >> nTmp16; rImplLineInfo.meStyle = (LineStyle) nTmp16;
rIStm >> rImplLineInfo.mnWidth;
@@ -345,15 +345,15 @@ void LineInfo::applyToB2DPolyPolygon(
if(GetWidth() > 1 && io_rLinePolyPolygon.count())
{
const double fHalfLineWidth((GetWidth() * 0.5) + 0.5);
-
+
for(sal_uInt32 a(0); a < io_rLinePolyPolygon.count(); a++)
{
o_rFillPolyPolygon.append(basegfx::tools::createAreaGeometry(
- io_rLinePolyPolygon.getB2DPolygon(a),
- fHalfLineWidth,
+ io_rLinePolyPolygon.getB2DPolygon(a),
+ fHalfLineWidth,
GetLineJoin()));
}
-
+
io_rLinePolyPolygon.clear();
}
}
diff --git a/vcl/source/gdi/mapmod.cxx b/vcl/source/gdi/mapmod.cxx
index 31486c1aad05..596734ca7891 100644
--- a/vcl/source/gdi/mapmod.cxx
+++ b/vcl/source/gdi/mapmod.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,8 +65,8 @@ ImplMapMode::ImplMapMode( const ImplMapMode& rImplMapMode ) :
SvStream& operator>>( SvStream& rIStm, ImplMapMode& rImplMapMode )
{
- VersionCompat aCompat( rIStm, STREAM_READ );
- UINT16 nTmp16;
+ VersionCompat aCompat( rIStm, STREAM_READ );
+ UINT16 nTmp16;
rIStm >> nTmp16; rImplMapMode.meUnit = (MapUnit) nTmp16;
rIStm >> rImplMapMode.maOrigin >> rImplMapMode.maScaleX >>
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 6f9d1a85e510..a56756c293c0 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,8 +89,8 @@ inline void ImplScaleLineInfo( LineInfo& rLineInfo, double fScaleX, double fScal
#define COMPAT( _def_rIStm ) VersionCompat aCompat( ( _def_rIStm ), STREAM_READ );
#define COMPAT_VERSION() aCompat.GetVersion()
-#define WRITE_BASE_COMPAT( _def_rOStm, _def_nVer, _pWriteData ) \
- MetaAction::Write( ( _def_rOStm ), _pWriteData ); \
+#define WRITE_BASE_COMPAT( _def_rOStm, _def_nVer, _pWriteData ) \
+ MetaAction::Write( ( _def_rOStm ), _pWriteData ); \
VersionCompat aCompat( ( _def_rOStm ), STREAM_WRITE, ( _def_nVer ) );
// ========================================================================
@@ -155,7 +155,7 @@ sal_Bool MetaAction::IsEqual( const MetaAction& rMetaAction ) const
return sal_False;
else
return Compare( rMetaAction );
-}
+}
// ------------------------------------------------------------------------
@@ -176,7 +176,7 @@ void MetaAction::Read( SvStream& rIStm, ImplMetaReadData* )
MetaAction* MetaAction::ReadMetaAction( SvStream& rIStm, ImplMetaReadData* pData )
{
MetaAction* pAction = NULL;
- UINT16 nType;
+ UINT16 nType;
rIStm >> nType;
@@ -259,9 +259,9 @@ IMPL_META_ACTION( Pixel, META_PIXEL_ACTION )
// ------------------------------------------------------------------------
MetaPixelAction::MetaPixelAction( const Point& rPt, const Color& rColor ) :
- MetaAction ( META_PIXEL_ACTION ),
- maPt ( rPt ),
- maColor ( rColor )
+ MetaAction ( META_PIXEL_ACTION ),
+ maPt ( rPt ),
+ maColor ( rColor )
{
}
@@ -328,8 +328,8 @@ IMPL_META_ACTION( Point, META_POINT_ACTION )
// ------------------------------------------------------------------------
MetaPointAction::MetaPointAction( const Point& rPt ) :
- MetaAction ( META_POINT_ACTION ),
- maPt ( rPt )
+ MetaAction ( META_POINT_ACTION ),
+ maPt ( rPt )
{
}
@@ -393,9 +393,9 @@ IMPL_META_ACTION( Line, META_LINE_ACTION )
// ------------------------------------------------------------------------
MetaLineAction::MetaLineAction( const Point& rStart, const Point& rEnd ) :
- MetaAction ( META_LINE_ACTION ),
- maStartPt ( rStart ),
- maEndPt ( rEnd )
+ MetaAction ( META_LINE_ACTION ),
+ maStartPt ( rStart ),
+ maEndPt ( rEnd )
{
}
@@ -403,10 +403,10 @@ MetaLineAction::MetaLineAction( const Point& rStart, const Point& rEnd ) :
MetaLineAction::MetaLineAction( const Point& rStart, const Point& rEnd,
const LineInfo& rLineInfo ) :
- MetaAction ( META_LINE_ACTION ),
- maLineInfo ( rLineInfo ),
- maStartPt ( rStart ),
- maEndPt ( rEnd )
+ MetaAction ( META_LINE_ACTION ),
+ maLineInfo ( rLineInfo ),
+ maStartPt ( rStart ),
+ maEndPt ( rEnd )
{
}
@@ -461,8 +461,8 @@ void MetaLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maStartPt << maEndPt; // Version 1
- rOStm << maLineInfo; // Version 2
+ rOStm << maStartPt << maEndPt; // Version 1
+ rOStm << maLineInfo; // Version 2
}
// ------------------------------------------------------------------------
@@ -488,8 +488,8 @@ IMPL_META_ACTION( Rect, META_RECT_ACTION )
// ------------------------------------------------------------------------
MetaRectAction::MetaRectAction( const Rectangle& rRect ) :
- MetaAction ( META_RECT_ACTION ),
- maRect ( rRect )
+ MetaAction ( META_RECT_ACTION ),
+ maRect ( rRect )
{
}
@@ -554,8 +554,8 @@ IMPL_META_ACTION( RoundRect, META_ROUNDRECT_ACTION )
MetaRoundRectAction::MetaRoundRectAction( const Rectangle& rRect,
sal_uInt32 nHorzRound, sal_uInt32 nVertRound ) :
- MetaAction ( META_ROUNDRECT_ACTION ),
- maRect ( rRect ),
+ MetaAction ( META_ROUNDRECT_ACTION ),
+ maRect ( rRect ),
mnHorzRound ( nHorzRound ),
mnVertRound ( nVertRound )
{
@@ -625,8 +625,8 @@ IMPL_META_ACTION( Ellipse, META_ELLIPSE_ACTION )
// ------------------------------------------------------------------------
MetaEllipseAction::MetaEllipseAction( const Rectangle& rRect ) :
- MetaAction ( META_ELLIPSE_ACTION ),
- maRect ( rRect )
+ MetaAction ( META_ELLIPSE_ACTION ),
+ maRect ( rRect )
{
}
@@ -691,10 +691,10 @@ IMPL_META_ACTION( Arc, META_ARC_ACTION )
MetaArcAction::MetaArcAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd ) :
- MetaAction ( META_ARC_ACTION ),
- maRect ( rRect ),
- maStartPt ( rStart ),
- maEndPt ( rEnd )
+ MetaAction ( META_ARC_ACTION ),
+ maRect ( rRect ),
+ maStartPt ( rStart ),
+ maEndPt ( rEnd )
{
}
@@ -765,10 +765,10 @@ IMPL_META_ACTION( Pie, META_PIE_ACTION )
MetaPieAction::MetaPieAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd ) :
- MetaAction ( META_PIE_ACTION ),
- maRect ( rRect ),
- maStartPt ( rStart ),
- maEndPt ( rEnd )
+ MetaAction ( META_PIE_ACTION ),
+ maRect ( rRect ),
+ maStartPt ( rStart ),
+ maEndPt ( rEnd )
{
}
@@ -839,10 +839,10 @@ IMPL_META_ACTION( Chord, META_CHORD_ACTION )
MetaChordAction::MetaChordAction( const Rectangle& rRect,
const Point& rStart, const Point& rEnd ) :
- MetaAction ( META_CHORD_ACTION ),
- maRect ( rRect ),
- maStartPt ( rStart ),
- maEndPt ( rEnd )
+ MetaAction ( META_CHORD_ACTION ),
+ maRect ( rRect ),
+ maStartPt ( rStart ),
+ maEndPt ( rEnd )
{
}
@@ -912,17 +912,17 @@ IMPL_META_ACTION( PolyLine, META_POLYLINE_ACTION )
// ------------------------------------------------------------------------
MetaPolyLineAction::MetaPolyLineAction( const Polygon& rPoly ) :
- MetaAction ( META_POLYLINE_ACTION ),
- maPoly ( rPoly )
+ MetaAction ( META_POLYLINE_ACTION ),
+ maPoly ( rPoly )
{
}
// ------------------------------------------------------------------------
MetaPolyLineAction::MetaPolyLineAction( const Polygon& rPoly, const LineInfo& rLineInfo ) :
- MetaAction ( META_POLYLINE_ACTION ),
- maLineInfo ( rLineInfo ),
- maPoly ( rPoly )
+ MetaAction ( META_POLYLINE_ACTION ),
+ maLineInfo ( rLineInfo ),
+ maPoly ( rPoly )
{
}
@@ -977,16 +977,16 @@ sal_Bool MetaPolyLineAction::Compare( const MetaAction& rMetaAction ) const
void MetaPolyLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
- WRITE_BASE_COMPAT( rOStm, 3, pData );
+ WRITE_BASE_COMPAT( rOStm, 3, pData );
Polygon aSimplePoly;
maPoly.AdaptiveSubdivide( aSimplePoly );
- rOStm << aSimplePoly; // Version 1
- rOStm << maLineInfo; // Version 2
+ rOStm << aSimplePoly; // Version 1
+ rOStm << maLineInfo; // Version 2
- sal_uInt8 bHasPolyFlags = maPoly.HasFlags(); // Version 3
- rOStm << bHasPolyFlags;
+ sal_uInt8 bHasPolyFlags = maPoly.HasFlags(); // Version 3
+ rOStm << bHasPolyFlags;
if ( bHasPolyFlags )
maPoly.Write( rOStm );
}
@@ -1019,8 +1019,8 @@ IMPL_META_ACTION( Polygon, META_POLYGON_ACTION )
// ------------------------------------------------------------------------
MetaPolygonAction::MetaPolygonAction( const Polygon& rPoly ) :
- MetaAction ( META_POLYGON_ACTION ),
- maPoly ( rPoly )
+ MetaAction ( META_POLYGON_ACTION ),
+ maPoly ( rPoly )
{
}
@@ -1067,11 +1067,11 @@ void MetaPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- Polygon aSimplePoly; // Version 1
+ Polygon aSimplePoly; // Version 1
maPoly.AdaptiveSubdivide( aSimplePoly );
- rOStm << aSimplePoly;
+ rOStm << aSimplePoly;
- sal_uInt8 bHasPolyFlags = maPoly.HasFlags(); // Version 2
+ sal_uInt8 bHasPolyFlags = maPoly.HasFlags(); // Version 2
rOStm << bHasPolyFlags;
if ( bHasPolyFlags )
maPoly.Write( rOStm );
@@ -1083,9 +1083,9 @@ void MetaPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPoly; // Version 1
+ rIStm >> maPoly; // Version 1
- if( aCompat.GetVersion() >= 2 ) // Version 2
+ if( aCompat.GetVersion() >= 2 ) // Version 2
{
sal_uInt8 bHasPolyFlags;
rIStm >> bHasPolyFlags;
@@ -1101,8 +1101,8 @@ IMPL_META_ACTION( PolyPolygon, META_POLYPOLYGON_ACTION )
// ------------------------------------------------------------------------
MetaPolyPolygonAction::MetaPolyPolygonAction( const PolyPolygon& rPolyPoly ) :
- MetaAction ( META_POLYPOLYGON_ACTION ),
- maPolyPoly ( rPolyPoly )
+ MetaAction ( META_POLYPOLYGON_ACTION ),
+ maPolyPoly ( rPolyPoly )
{
}
@@ -1153,7 +1153,7 @@ void MetaPolyPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
sal_uInt16 nNumberOfComplexPolygons = 0;
sal_uInt16 i, nPolyCount = maPolyPoly.Count();
- Polygon aSimplePoly; // Version 1
+ Polygon aSimplePoly; // Version 1
rOStm << nPolyCount;
for ( i = 0; i < nPolyCount; i++ )
{
@@ -1164,7 +1164,7 @@ void MetaPolyPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
rOStm << aSimplePoly;
}
- rOStm << nNumberOfComplexPolygons; // Version 2
+ rOStm << nNumberOfComplexPolygons; // Version 2
for ( i = 0; nNumberOfComplexPolygons && ( i < nPolyCount ); i++ )
{
const Polygon& rPoly = maPolyPoly.GetObject( i );
@@ -1183,9 +1183,9 @@ void MetaPolyPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaPolyPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPolyPoly; // Version 1
-
- if ( aCompat.GetVersion() >= 2 ) // Version 2
+ rIStm >> maPolyPoly; // Version 1
+
+ if ( aCompat.GetVersion() >= 2 ) // Version 2
{
sal_uInt16 i, nIndex, nNumberOfComplexPolygons;
rIStm >> nNumberOfComplexPolygons;
@@ -1207,11 +1207,11 @@ IMPL_META_ACTION( Text, META_TEXT_ACTION )
MetaTextAction::MetaTextAction( const Point& rPt, const XubString& rStr,
USHORT nIndex, USHORT nLen ) :
- MetaAction ( META_TEXT_ACTION ),
- maPt ( rPt ),
- maStr ( rStr ),
- mnIndex ( nIndex ),
- mnLen ( nLen )
+ MetaAction ( META_TEXT_ACTION ),
+ maPt ( rPt ),
+ maStr ( rStr ),
+ mnIndex ( nIndex ),
+ mnLen ( nLen )
{
}
@@ -1260,12 +1260,12 @@ sal_Bool MetaTextAction::Compare( const MetaAction& rMetaAction ) const
void MetaTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maPt;
+ rOStm << maPt;
rOStm.WriteByteString( maStr, pData->meActualCharSet );
- rOStm << mnIndex;
- rOStm << mnLen;
+ rOStm << mnIndex;
+ rOStm << mnLen;
- sal_uInt16 i, nLen = maStr.Len(); // version 2
+ sal_uInt16 i, nLen = maStr.Len(); // version 2
rOStm << nLen;
for ( i = 0; i < nLen; i++ )
{
@@ -1279,12 +1279,12 @@ void MetaTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
COMPAT( rIStm );
- rIStm >> maPt;
+ rIStm >> maPt;
rIStm.ReadByteString( maStr, pData->meActualCharSet );
- rIStm >> mnIndex;
- rIStm >> mnLen;
+ rIStm >> mnIndex;
+ rIStm >> mnLen;
- if ( aCompat.GetVersion() >= 2 ) // Version 2
+ if ( aCompat.GetVersion() >= 2 ) // Version 2
{
sal_uInt16 nLen;
rIStm >> nLen;
@@ -1297,21 +1297,21 @@ void MetaTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
// ========================================================================
MetaTextArrayAction::MetaTextArrayAction() :
- MetaAction ( META_TEXTARRAY_ACTION ),
- mpDXAry ( NULL ),
- mnIndex ( 0 ),
- mnLen ( 0 )
+ MetaAction ( META_TEXTARRAY_ACTION ),
+ mpDXAry ( NULL ),
+ mnIndex ( 0 ),
+ mnLen ( 0 )
{
}
// ------------------------------------------------------------------------
MetaTextArrayAction::MetaTextArrayAction( const MetaTextArrayAction& rAction ) :
- MetaAction ( META_TEXTARRAY_ACTION ),
- maStartPt ( rAction.maStartPt ),
- maStr ( rAction.maStr ),
- mnIndex ( rAction.mnIndex ),
- mnLen ( rAction.mnLen )
+ MetaAction ( META_TEXTARRAY_ACTION ),
+ maStartPt ( rAction.maStartPt ),
+ maStr ( rAction.maStr ),
+ mnIndex ( rAction.mnIndex ),
+ mnLen ( rAction.mnLen )
{
if( rAction.mpDXAry )
{
@@ -1331,11 +1331,11 @@ MetaTextArrayAction::MetaTextArrayAction( const Point& rStartPt,
const sal_Int32* pDXAry,
USHORT nIndex,
USHORT nLen ) :
- MetaAction ( META_TEXTARRAY_ACTION ),
- maStartPt ( rStartPt ),
- maStr ( rStr ),
- mnIndex ( nIndex ),
- mnLen ( ( nLen == STRING_LEN ) ? rStr.Len() : nLen )
+ MetaAction ( META_TEXTARRAY_ACTION ),
+ maStartPt ( rStartPt ),
+ maStr ( rStr ),
+ mnIndex ( nIndex ),
+ mnLen ( ( nLen == STRING_LEN ) ? rStr.Len() : nLen )
{
const ULONG nAryLen = pDXAry ? mnLen : 0;
@@ -1409,16 +1409,16 @@ void MetaTextArrayAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
const sal_uInt32 nAryLen = mpDXAry ? mnLen : 0;
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maStartPt;
+ rOStm << maStartPt;
rOStm.WriteByteString( maStr, pData->meActualCharSet );
- rOStm << mnIndex;
- rOStm << mnLen;
- rOStm << nAryLen;
+ rOStm << mnIndex;
+ rOStm << mnLen;
+ rOStm << nAryLen;
for( ULONG i = 0UL; i < nAryLen; i++ )
rOStm << mpDXAry[ i ];
- sal_uInt16 j, nLen = maStr.Len(); // version 2
+ sal_uInt16 j, nLen = maStr.Len(); // version 2
rOStm << nLen;
for ( j = 0; j < nLen; j++ )
{
@@ -1436,11 +1436,11 @@ void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
delete[] mpDXAry;
COMPAT( rIStm );
- rIStm >> maStartPt;
+ rIStm >> maStartPt;
rIStm.ReadByteString( maStr, pData->meActualCharSet );
- rIStm >> mnIndex;
- rIStm >> mnLen;
- rIStm >> nAryLen;
+ rIStm >> mnIndex;
+ rIStm >> mnLen;
+ rIStm >> nAryLen;
if ( mnIndex + mnLen > maStr.Len() )
{
@@ -1475,7 +1475,7 @@ void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
else
mpDXAry = NULL;
- if ( aCompat.GetVersion() >= 2 ) // Version 2
+ if ( aCompat.GetVersion() >= 2 ) // Version 2
{
sal_uInt16 nLen;
rIStm >> nLen;
@@ -1500,12 +1500,12 @@ IMPL_META_ACTION( StretchText, META_STRETCHTEXT_ACTION )
MetaStretchTextAction::MetaStretchTextAction( const Point& rPt, sal_uInt32 nWidth,
const XubString& rStr,
USHORT nIndex, USHORT nLen ) :
- MetaAction ( META_STRETCHTEXT_ACTION ),
- maPt ( rPt ),
- maStr ( rStr ),
- mnWidth ( nWidth ),
- mnIndex ( nIndex ),
- mnLen ( nLen )
+ MetaAction ( META_STRETCHTEXT_ACTION ),
+ maPt ( rPt ),
+ maStr ( rStr ),
+ mnWidth ( nWidth ),
+ mnIndex ( nIndex ),
+ mnLen ( nLen )
{
}
@@ -1556,13 +1556,13 @@ sal_Bool MetaStretchTextAction::Compare( const MetaAction& rMetaAction ) const
void MetaStretchTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maPt;
+ rOStm << maPt;
rOStm.WriteByteString( maStr, pData->meActualCharSet );
- rOStm << mnWidth;
- rOStm << mnIndex;
- rOStm << mnLen;
+ rOStm << mnWidth;
+ rOStm << mnIndex;
+ rOStm << mnLen;
- sal_uInt16 i, nLen = maStr.Len(); // version 2
+ sal_uInt16 i, nLen = maStr.Len(); // version 2
rOStm << nLen;
for ( i = 0; i < nLen; i++ )
{
@@ -1576,13 +1576,13 @@ void MetaStretchTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaStretchTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
COMPAT( rIStm );
- rIStm >> maPt;
+ rIStm >> maPt;
rIStm.ReadByteString( maStr, pData->meActualCharSet );
- rIStm >> mnWidth;
- rIStm >> mnIndex;
- rIStm >> mnLen;
+ rIStm >> mnWidth;
+ rIStm >> mnIndex;
+ rIStm >> mnLen;
- if ( aCompat.GetVersion() >= 2 ) // Version 2
+ if ( aCompat.GetVersion() >= 2 ) // Version 2
{
sal_uInt16 nLen;
rIStm >> nLen;
@@ -1600,10 +1600,10 @@ IMPL_META_ACTION( TextRect, META_TEXTRECT_ACTION )
MetaTextRectAction::MetaTextRectAction( const Rectangle& rRect,
const XubString& rStr, USHORT nStyle ) :
- MetaAction ( META_TEXTRECT_ACTION ),
- maRect ( rRect ),
- maStr ( rStr ),
- mnStyle ( nStyle )
+ MetaAction ( META_TEXTRECT_ACTION ),
+ maRect ( rRect ),
+ maStr ( rStr ),
+ mnStyle ( nStyle )
{
}
@@ -1651,11 +1651,11 @@ sal_Bool MetaTextRectAction::Compare( const MetaAction& rMetaAction ) const
void MetaTextRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maRect;
+ rOStm << maRect;
rOStm.WriteByteString( maStr, pData->meActualCharSet );
- rOStm << mnStyle;
+ rOStm << mnStyle;
- sal_uInt16 i, nLen = maStr.Len(); // version 2
+ sal_uInt16 i, nLen = maStr.Len(); // version 2
rOStm << nLen;
for ( i = 0; i < nLen; i++ )
{
@@ -1669,11 +1669,11 @@ void MetaTextRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaTextRectAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
COMPAT( rIStm );
- rIStm >> maRect;
+ rIStm >> maRect;
rIStm.ReadByteString( maStr, pData->meActualCharSet );
- rIStm >> mnStyle;
+ rIStm >> mnStyle;
- if ( aCompat.GetVersion() >= 2 ) // Version 2
+ if ( aCompat.GetVersion() >= 2 ) // Version 2
{
sal_uInt16 nLen;
rIStm >> nLen;
@@ -1693,9 +1693,9 @@ MetaTextLineAction::MetaTextLineAction( const Point& rPos, long nWidth,
FontStrikeout eStrikeout,
FontUnderline eUnderline,
FontUnderline eOverline ) :
- MetaAction ( META_TEXTLINE_ACTION ),
- maPos ( rPos ),
- mnWidth ( nWidth ),
+ MetaAction ( META_TEXTLINE_ACTION ),
+ maPos ( rPos ),
+ mnWidth ( nWidth ),
meStrikeout ( eStrikeout ),
meUnderline ( eUnderline ),
meOverline ( eOverline )
@@ -1784,9 +1784,9 @@ IMPL_META_ACTION( Bmp, META_BMP_ACTION )
// ------------------------------------------------------------------------
MetaBmpAction::MetaBmpAction( const Point& rPt, const Bitmap& rBmp ) :
- MetaAction ( META_BMP_ACTION ),
- maBmp ( rBmp ),
- maPt ( rPt )
+ MetaAction ( META_BMP_ACTION ),
+ maBmp ( rBmp ),
+ maPt ( rPt )
{
}
@@ -1855,10 +1855,10 @@ IMPL_META_ACTION( BmpScale, META_BMPSCALE_ACTION )
MetaBmpScaleAction::MetaBmpScaleAction( const Point& rPt, const Size& rSz,
const Bitmap& rBmp ) :
- MetaAction ( META_BMPSCALE_ACTION ),
- maBmp ( rBmp ),
- maPt ( rPt ),
- maSz ( rSz )
+ MetaAction ( META_BMPSCALE_ACTION ),
+ maBmp ( rBmp ),
+ maPt ( rPt ),
+ maSz ( rSz )
{
}
@@ -1932,12 +1932,12 @@ IMPL_META_ACTION( BmpScalePart, META_BMPSCALEPART_ACTION )
MetaBmpScalePartAction::MetaBmpScalePartAction( const Point& rDstPt, const Size& rDstSz,
const Point& rSrcPt, const Size& rSrcSz,
const Bitmap& rBmp ) :
- MetaAction ( META_BMPSCALEPART_ACTION ),
- maBmp ( rBmp ),
- maDstPt ( rDstPt ),
- maDstSz ( rDstSz ),
- maSrcPt ( rSrcPt ),
- maSrcSz ( rSrcSz )
+ MetaAction ( META_BMPSCALEPART_ACTION ),
+ maBmp ( rBmp ),
+ maDstPt ( rDstPt ),
+ maDstSz ( rDstSz ),
+ maSrcPt ( rSrcPt ),
+ maSrcSz ( rSrcSz )
{
}
@@ -2011,9 +2011,9 @@ IMPL_META_ACTION( BmpEx, META_BMPEX_ACTION )
// ------------------------------------------------------------------------
MetaBmpExAction::MetaBmpExAction( const Point& rPt, const BitmapEx& rBmpEx ) :
- MetaAction ( META_BMPEX_ACTION ),
- maBmpEx ( rBmpEx ),
- maPt ( rPt )
+ MetaAction ( META_BMPEX_ACTION ),
+ maBmpEx ( rBmpEx ),
+ maPt ( rPt )
{
}
@@ -2082,10 +2082,10 @@ IMPL_META_ACTION( BmpExScale, META_BMPEXSCALE_ACTION )
MetaBmpExScaleAction::MetaBmpExScaleAction( const Point& rPt, const Size& rSz,
const BitmapEx& rBmpEx ) :
- MetaAction ( META_BMPEXSCALE_ACTION ),
- maBmpEx ( rBmpEx ),
- maPt ( rPt ),
- maSz ( rSz )
+ MetaAction ( META_BMPEXSCALE_ACTION ),
+ maBmpEx ( rBmpEx ),
+ maPt ( rPt ),
+ maSz ( rSz )
{
}
@@ -2159,12 +2159,12 @@ IMPL_META_ACTION( BmpExScalePart, META_BMPEXSCALEPART_ACTION )
MetaBmpExScalePartAction::MetaBmpExScalePartAction( const Point& rDstPt, const Size& rDstSz,
const Point& rSrcPt, const Size& rSrcSz,
const BitmapEx& rBmpEx ) :
- MetaAction ( META_BMPEXSCALEPART_ACTION ),
- maBmpEx ( rBmpEx ),
- maDstPt ( rDstPt ),
- maDstSz ( rDstSz ),
- maSrcPt ( rSrcPt ),
- maSrcSz ( rSrcSz )
+ MetaAction ( META_BMPEXSCALEPART_ACTION ),
+ maBmpEx ( rBmpEx ),
+ maDstPt ( rDstPt ),
+ maDstSz ( rDstSz ),
+ maSrcPt ( rSrcPt ),
+ maSrcSz ( rSrcSz )
{
}
@@ -2240,10 +2240,10 @@ IMPL_META_ACTION( Mask, META_MASK_ACTION )
MetaMaskAction::MetaMaskAction( const Point& rPt,
const Bitmap& rBmp,
const Color& rColor ) :
- MetaAction ( META_MASK_ACTION ),
- maBmp ( rBmp ),
- maColor ( rColor ),
- maPt ( rPt )
+ MetaAction ( META_MASK_ACTION ),
+ maBmp ( rBmp ),
+ maColor ( rColor ),
+ maPt ( rPt )
{
}
@@ -2314,11 +2314,11 @@ IMPL_META_ACTION( MaskScale, META_MASKSCALE_ACTION )
MetaMaskScaleAction::MetaMaskScaleAction( const Point& rPt, const Size& rSz,
const Bitmap& rBmp,
const Color& rColor ) :
- MetaAction ( META_MASKSCALE_ACTION ),
- maBmp ( rBmp ),
- maColor ( rColor ),
- maPt ( rPt ),
- maSz ( rSz )
+ MetaAction ( META_MASKSCALE_ACTION ),
+ maBmp ( rBmp ),
+ maColor ( rColor ),
+ maPt ( rPt ),
+ maSz ( rSz )
{
}
@@ -2394,13 +2394,13 @@ MetaMaskScalePartAction::MetaMaskScalePartAction( const Point& rDstPt, const Siz
const Point& rSrcPt, const Size& rSrcSz,
const Bitmap& rBmp,
const Color& rColor ) :
- MetaAction ( META_MASKSCALEPART_ACTION ),
- maBmp ( rBmp ),
- maColor ( rColor ),
- maDstPt ( rDstPt ),
- maDstSz ( rDstSz ),
- maSrcPt ( rSrcPt ),
- maSrcSz ( rSrcSz )
+ MetaAction ( META_MASKSCALEPART_ACTION ),
+ maBmp ( rBmp ),
+ maColor ( rColor ),
+ maDstPt ( rDstPt ),
+ maDstSz ( rDstSz ),
+ maSrcPt ( rSrcPt ),
+ maSrcSz ( rSrcSz )
{
}
@@ -2479,9 +2479,9 @@ IMPL_META_ACTION( Gradient, META_GRADIENT_ACTION )
// ------------------------------------------------------------------------
MetaGradientAction::MetaGradientAction( const Rectangle& rRect, const Gradient& rGradient ) :
- MetaAction ( META_GRADIENT_ACTION ),
- maRect ( rRect ),
- maGradient ( rGradient )
+ MetaAction ( META_GRADIENT_ACTION ),
+ maRect ( rRect ),
+ maGradient ( rGradient )
{
}
@@ -2542,16 +2542,16 @@ void MetaGradientAction::Read( SvStream& rIStm, ImplMetaReadData* )
// ========================================================================
MetaGradientExAction::MetaGradientExAction() :
- MetaAction ( META_GRADIENTEX_ACTION )
+ MetaAction ( META_GRADIENTEX_ACTION )
{
}
// ------------------------------------------------------------------------
MetaGradientExAction::MetaGradientExAction( const PolyPolygon& rPolyPoly, const Gradient& rGradient ) :
- MetaAction ( META_GRADIENTEX_ACTION ),
- maPolyPoly ( rPolyPoly ),
- maGradient ( rGradient )
+ MetaAction ( META_GRADIENTEX_ACTION ),
+ maPolyPoly ( rPolyPoly ),
+ maGradient ( rGradient )
{
}
@@ -2630,9 +2630,9 @@ IMPL_META_ACTION( Hatch, META_HATCH_ACTION )
// ------------------------------------------------------------------------
MetaHatchAction::MetaHatchAction( const PolyPolygon& rPolyPoly, const Hatch& rHatch ) :
- MetaAction ( META_HATCH_ACTION ),
- maPolyPoly ( rPolyPoly ),
- maHatch ( rHatch )
+ MetaAction ( META_HATCH_ACTION ),
+ maPolyPoly ( rPolyPoly ),
+ maHatch ( rHatch )
{
}
@@ -2705,8 +2705,8 @@ IMPL_META_ACTION( Wallpaper, META_WALLPAPER_ACTION )
MetaWallpaperAction::MetaWallpaperAction( const Rectangle& rRect,
const Wallpaper& rPaper ) :
- MetaAction ( META_WALLPAPER_ACTION ),
- maRect ( rRect ),
+ MetaAction ( META_WALLPAPER_ACTION ),
+ maRect ( rRect ),
maWallpaper ( rPaper )
{
}
@@ -2772,9 +2772,9 @@ IMPL_META_ACTION( ClipRegion, META_CLIPREGION_ACTION )
// ------------------------------------------------------------------------
MetaClipRegionAction::MetaClipRegionAction( const Region& rRegion, BOOL bClip ) :
- MetaAction ( META_CLIPREGION_ACTION ),
- maRegion ( rRegion ),
- mbClip ( bClip )
+ MetaAction ( META_CLIPREGION_ACTION ),
+ maRegion ( rRegion ),
+ mbClip ( bClip )
{
}
@@ -2842,8 +2842,8 @@ IMPL_META_ACTION( ISectRectClipRegion, META_ISECTRECTCLIPREGION_ACTION )
// ------------------------------------------------------------------------
MetaISectRectClipRegionAction::MetaISectRectClipRegionAction( const Rectangle& rRect ) :
- MetaAction ( META_ISECTRECTCLIPREGION_ACTION ),
- maRect ( rRect )
+ MetaAction ( META_ISECTRECTCLIPREGION_ACTION ),
+ maRect ( rRect )
{
}
@@ -2907,8 +2907,8 @@ IMPL_META_ACTION( ISectRegionClipRegion, META_ISECTREGIONCLIPREGION_ACTION )
// ------------------------------------------------------------------------
MetaISectRegionClipRegionAction::MetaISectRegionClipRegionAction( const Region& rRegion ) :
- MetaAction ( META_ISECTREGIONCLIPREGION_ACTION ),
- maRegion ( rRegion )
+ MetaAction ( META_ISECTREGIONCLIPREGION_ACTION ),
+ maRegion ( rRegion )
{
}
@@ -2972,9 +2972,9 @@ IMPL_META_ACTION( MoveClipRegion, META_MOVECLIPREGION_ACTION )
// ------------------------------------------------------------------------
MetaMoveClipRegionAction::MetaMoveClipRegionAction( long nHorzMove, long nVertMove ) :
- MetaAction ( META_MOVECLIPREGION_ACTION ),
- mnHorzMove ( nHorzMove ),
- mnVertMove ( nVertMove )
+ MetaAction ( META_MOVECLIPREGION_ACTION ),
+ mnHorzMove ( nHorzMove ),
+ mnVertMove ( nVertMove )
{
}
@@ -3033,9 +3033,9 @@ IMPL_META_ACTION( LineColor, META_LINECOLOR_ACTION )
// ------------------------------------------------------------------------
MetaLineColorAction::MetaLineColorAction( const Color& rColor, BOOL bSet ) :
- MetaAction ( META_LINECOLOR_ACTION ),
- maColor ( rColor ),
- mbSet ( bSet )
+ MetaAction ( META_LINECOLOR_ACTION ),
+ maColor ( rColor ),
+ mbSet ( bSet )
{
}
@@ -3091,9 +3091,9 @@ IMPL_META_ACTION( FillColor, META_FILLCOLOR_ACTION )
// ------------------------------------------------------------------------
MetaFillColorAction::MetaFillColorAction( const Color& rColor, BOOL bSet ) :
- MetaAction ( META_FILLCOLOR_ACTION ),
- maColor ( rColor ),
- mbSet ( bSet )
+ MetaAction ( META_FILLCOLOR_ACTION ),
+ maColor ( rColor ),
+ mbSet ( bSet )
{
}
@@ -3149,8 +3149,8 @@ IMPL_META_ACTION( TextColor, META_TEXTCOLOR_ACTION )
// ------------------------------------------------------------------------
MetaTextColorAction::MetaTextColorAction( const Color& rColor ) :
- MetaAction ( META_TEXTCOLOR_ACTION ),
- maColor ( rColor )
+ MetaAction ( META_TEXTCOLOR_ACTION ),
+ maColor ( rColor )
{
}
@@ -3200,9 +3200,9 @@ IMPL_META_ACTION( TextFillColor, META_TEXTFILLCOLOR_ACTION )
// ------------------------------------------------------------------------
MetaTextFillColorAction::MetaTextFillColorAction( const Color& rColor, BOOL bSet ) :
- MetaAction ( META_TEXTFILLCOLOR_ACTION ),
- maColor ( rColor ),
- mbSet ( bSet )
+ MetaAction ( META_TEXTFILLCOLOR_ACTION ),
+ maColor ( rColor ),
+ mbSet ( bSet )
{
}
@@ -3258,9 +3258,9 @@ IMPL_META_ACTION( TextLineColor, META_TEXTLINECOLOR_ACTION )
// ------------------------------------------------------------------------
MetaTextLineColorAction::MetaTextLineColorAction( const Color& rColor, BOOL bSet ) :
- MetaAction ( META_TEXTLINECOLOR_ACTION ),
- maColor ( rColor ),
- mbSet ( bSet )
+ MetaAction ( META_TEXTLINECOLOR_ACTION ),
+ maColor ( rColor ),
+ mbSet ( bSet )
{
}
@@ -3316,9 +3316,9 @@ IMPL_META_ACTION( OverlineColor, META_OVERLINECOLOR_ACTION )
// ------------------------------------------------------------------------
MetaOverlineColorAction::MetaOverlineColorAction( const Color& rColor, BOOL bSet ) :
- MetaAction ( META_OVERLINECOLOR_ACTION ),
- maColor ( rColor ),
- mbSet ( bSet )
+ MetaAction ( META_OVERLINECOLOR_ACTION ),
+ maColor ( rColor ),
+ mbSet ( bSet )
{
}
@@ -3374,8 +3374,8 @@ IMPL_META_ACTION( TextAlign, META_TEXTALIGN_ACTION )
// ------------------------------------------------------------------------
MetaTextAlignAction::MetaTextAlignAction( TextAlign aAlign ) :
- MetaAction ( META_TEXTALIGN_ACTION ),
- maAlign ( aAlign )
+ MetaAction ( META_TEXTALIGN_ACTION ),
+ maAlign ( aAlign )
{
}
@@ -3427,8 +3427,8 @@ IMPL_META_ACTION( MapMode, META_MAPMODE_ACTION )
// ------------------------------------------------------------------------
MetaMapModeAction::MetaMapModeAction( const MapMode& rMapMode ) :
- MetaAction ( META_MAPMODE_ACTION ),
- maMapMode ( rMapMode )
+ MetaAction ( META_MAPMODE_ACTION ),
+ maMapMode ( rMapMode )
{
}
@@ -3488,15 +3488,15 @@ IMPL_META_ACTION( Font, META_FONT_ACTION )
// ------------------------------------------------------------------------
MetaFontAction::MetaFontAction( const Font& rFont ) :
- MetaAction ( META_FONT_ACTION ),
- maFont ( rFont )
+ MetaAction ( META_FONT_ACTION ),
+ maFont ( rFont )
{
// #96876: because RTL_TEXTENCODING_SYMBOL is often set at the StarSymbol font,
// we change the textencoding to RTL_TEXTENCODING_UNICODE here, which seems
- // to be the right way; changing the textencoding at other sources
+ // to be the right way; changing the textencoding at other sources
// is too dangerous at the moment
if( ( ( maFont.GetName().SearchAscii( "StarSymbol" ) != STRING_NOTFOUND )
- || ( maFont.GetName().SearchAscii( "OpenSymbol" ) != STRING_NOTFOUND ) )
+ || ( maFont.GetName().SearchAscii( "OpenSymbol" ) != STRING_NOTFOUND ) )
&& ( maFont.GetCharSet() != RTL_TEXTENCODING_UNICODE ) )
{
maFont.SetCharSet( RTL_TEXTENCODING_UNICODE );
@@ -3565,8 +3565,8 @@ IMPL_META_ACTION( Push, META_PUSH_ACTION )
// ------------------------------------------------------------------------
MetaPushAction::MetaPushAction( USHORT nFlags ) :
- MetaAction ( META_PUSH_ACTION ),
- mnFlags ( nFlags )
+ MetaAction ( META_PUSH_ACTION ),
+ mnFlags ( nFlags )
{
}
@@ -3650,8 +3650,8 @@ IMPL_META_ACTION( RasterOp, META_RASTEROP_ACTION )
// ------------------------------------------------------------------------
MetaRasterOpAction::MetaRasterOpAction( RasterOp eRasterOp ) :
- MetaAction ( META_RASTEROP_ACTION ),
- meRasterOp ( eRasterOp )
+ MetaAction ( META_RASTEROP_ACTION ),
+ meRasterOp ( eRasterOp )
{
}
@@ -3703,9 +3703,9 @@ IMPL_META_ACTION( Transparent, META_TRANSPARENT_ACTION )
// ------------------------------------------------------------------------
MetaTransparentAction::MetaTransparentAction( const PolyPolygon& rPolyPoly, USHORT nTransPercent ) :
- MetaAction ( META_TRANSPARENT_ACTION ),
- maPolyPoly ( rPolyPoly ),
- mnTransPercent ( nTransPercent )
+ MetaAction ( META_TRANSPARENT_ACTION ),
+ maPolyPoly ( rPolyPoly ),
+ mnTransPercent ( nTransPercent )
{
}
@@ -3787,11 +3787,11 @@ IMPL_META_ACTION( FloatTransparent, META_FLOATTRANSPARENT_ACTION )
MetaFloatTransparentAction::MetaFloatTransparentAction( const GDIMetaFile& rMtf, const Point& rPos,
const Size& rSize, const Gradient& rGradient ) :
- MetaAction ( META_FLOATTRANSPARENT_ACTION ),
- maMtf ( rMtf ),
- maPoint ( rPos ),
- maSize ( rSize ),
- maGradient ( rGradient )
+ MetaAction ( META_FLOATTRANSPARENT_ACTION ),
+ maMtf ( rMtf ),
+ maPoint ( rPos ),
+ maSize ( rSize ),
+ maGradient ( rGradient )
{
}
@@ -3843,7 +3843,7 @@ sal_Bool MetaFloatTransparentAction::Compare( const MetaAction& rMetaAction ) co
void MetaFloatTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
-
+
maMtf.Write( rOStm );
rOStm << maPoint << maSize << maGradient;
}
@@ -3864,11 +3864,11 @@ IMPL_META_ACTION( EPS, META_EPS_ACTION )
MetaEPSAction::MetaEPSAction( const Point& rPoint, const Size& rSize,
const GfxLink& rGfxLink, const GDIMetaFile& rSubst ) :
- MetaAction ( META_EPS_ACTION ),
- maGfxLink ( rGfxLink ),
- maSubst ( rSubst ),
- maPoint ( rPoint ),
- maSize ( rSize )
+ MetaAction ( META_EPS_ACTION ),
+ maGfxLink ( rGfxLink ),
+ maSubst ( rSubst ),
+ maPoint ( rPoint ),
+ maSize ( rSize )
{
}
@@ -3944,9 +3944,9 @@ IMPL_META_ACTION( RefPoint, META_REFPOINT_ACTION )
// ------------------------------------------------------------------------
MetaRefPointAction::MetaRefPointAction( const Point& rRefPoint, BOOL bSet ) :
- MetaAction ( META_REFPOINT_ACTION ),
- maRefPoint ( rRefPoint ),
- mbSet ( bSet )
+ MetaAction ( META_REFPOINT_ACTION ),
+ maRefPoint ( rRefPoint ),
+ mbSet ( bSet )
{
}
@@ -3996,8 +3996,8 @@ void MetaRefPointAction::Read( SvStream& rIStm, ImplMetaReadData* )
// ========================================================================
MetaCommentAction::MetaCommentAction( sal_Int32 nValue ) :
- MetaAction ( META_COMMENT_ACTION ),
- mnValue ( nValue )
+ MetaAction ( META_COMMENT_ACTION ),
+ mnValue ( nValue )
{
ImplInitDynamicData( NULL, 0UL );
}
@@ -4005,9 +4005,9 @@ MetaCommentAction::MetaCommentAction( sal_Int32 nValue ) :
// ------------------------------------------------------------------------
MetaCommentAction::MetaCommentAction( const MetaCommentAction& rAct ) :
- MetaAction ( META_COMMENT_ACTION ),
- maComment ( rAct.maComment ),
- mnValue ( rAct.mnValue )
+ MetaAction ( META_COMMENT_ACTION ),
+ maComment ( rAct.maComment ),
+ mnValue ( rAct.mnValue )
{
ImplInitDynamicData( rAct.mpData, rAct.mnDataSize );
}
@@ -4015,9 +4015,9 @@ MetaCommentAction::MetaCommentAction( const MetaCommentAction& rAct ) :
// ------------------------------------------------------------------------
MetaCommentAction::MetaCommentAction( const ByteString& rComment, sal_Int32 nValue, const BYTE* pData, sal_uInt32 nDataSize ) :
- MetaAction ( META_COMMENT_ACTION ),
- maComment ( rComment ),
- mnValue ( nValue )
+ MetaAction ( META_COMMENT_ACTION ),
+ maComment ( rComment ),
+ mnValue ( nValue )
{
ImplInitDynamicData( pData, nDataSize );
}
@@ -4025,8 +4025,8 @@ MetaCommentAction::MetaCommentAction( const ByteString& rComment, sal_Int32 nVal
// ------------------------------------------------------------------------
MetaCommentAction::MetaCommentAction( const BYTE* pData, sal_uInt32 nDataSize ) :
- MetaAction ( META_COMMENT_ACTION ),
- mnValue ( 0L )
+ MetaAction ( META_COMMENT_ACTION ),
+ mnValue ( 0L )
{
ImplInitDynamicData( pData, nDataSize );
}
@@ -4081,8 +4081,8 @@ void MetaCommentAction::Move( long nXMove, long nYMove )
sal_Bool bPathStroke = maComment.Equals( "XPATHSTROKE_SEQ_BEGIN" );
if ( bPathStroke || maComment.Equals( "XPATHFILL_SEQ_BEGIN" ) )
{
- SvMemoryStream aMemStm( (void*)mpData, mnDataSize, STREAM_READ );
- SvMemoryStream aDest;
+ SvMemoryStream aMemStm( (void*)mpData, mnDataSize, STREAM_READ );
+ SvMemoryStream aDest;
if ( bPathStroke )
{
SvtGraphicStroke aStroke;
@@ -4124,8 +4124,8 @@ void MetaCommentAction::Scale( double fXScale, double fYScale )
sal_Bool bPathStroke = maComment.Equals( "XPATHSTROKE_SEQ_BEGIN" );
if ( bPathStroke || maComment.Equals( "XPATHFILL_SEQ_BEGIN" ) )
{
- SvMemoryStream aMemStm( (void*)mpData, mnDataSize, STREAM_READ );
- SvMemoryStream aDest;
+ SvMemoryStream aMemStm( (void*)mpData, mnDataSize, STREAM_READ );
+ SvMemoryStream aDest;
if ( bPathStroke )
{
SvtGraphicStroke aStroke;
@@ -4149,8 +4149,8 @@ void MetaCommentAction::Scale( double fXScale, double fYScale )
delete[] mpData;
ImplInitDynamicData( static_cast<const BYTE*>( aDest.GetData() ), aDest.Tell() );
} else if( maComment.Equals( "EMF_PLUS_HEADER_INFO" ) ) {
- SvMemoryStream aMemStm( (void*)mpData, mnDataSize, STREAM_READ );
- SvMemoryStream aDest;
+ SvMemoryStream aMemStm( (void*)mpData, mnDataSize, STREAM_READ );
+ SvMemoryStream aDest;
sal_Int32 nLeft, nRight, nTop, nBottom;
sal_Int32 nPixX, nPixY, nMillX, nMillY;
@@ -4226,7 +4226,7 @@ IMPL_META_ACTION( LayoutMode, META_LAYOUTMODE_ACTION )
// ------------------------------------------------------------------------
MetaLayoutModeAction::MetaLayoutModeAction( sal_uInt32 nLayoutMode ) :
- MetaAction ( META_LAYOUTMODE_ACTION ),
+ MetaAction ( META_LAYOUTMODE_ACTION ),
mnLayoutMode( nLayoutMode )
{
}
@@ -4277,7 +4277,7 @@ IMPL_META_ACTION( TextLanguage, META_TEXTLANGUAGE_ACTION )
// ------------------------------------------------------------------------
MetaTextLanguageAction::MetaTextLanguageAction( LanguageType eTextLanguage ) :
- MetaAction ( META_TEXTLANGUAGE_ACTION ),
+ MetaAction ( META_TEXTLANGUAGE_ACTION ),
meTextLanguage( eTextLanguage )
{
}
diff --git a/vcl/source/gdi/metric.cxx b/vcl/source/gdi/metric.cxx
index 5a65b04391f0..64386cf33059 100644
--- a/vcl/source/gdi/metric.cxx
+++ b/vcl/source/gdi/metric.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -237,12 +237,12 @@ BOOL FontMetric::operator==( const FontMetric& rMetric ) const
CmapResult::CmapResult( bool bSymbolic,
const sal_uInt32* pRangeCodes, int nRangeCount,
const int* pStartGlyphs, const USHORT* pExtraGlyphIds )
-: mpRangeCodes( pRangeCodes)
-, mpStartGlyphs( pStartGlyphs)
-, mpGlyphIds( pExtraGlyphIds)
-, mnRangeCount( nRangeCount)
-, mbSymbolic( bSymbolic)
-, mbRecoded( false)
+: mpRangeCodes( pRangeCodes)
+, mpStartGlyphs( pStartGlyphs)
+, mpGlyphIds( pExtraGlyphIds)
+, mnRangeCount( nRangeCount)
+, mbSymbolic( bSymbolic)
+, mbRecoded( false)
{}
// =======================================================================
@@ -299,8 +299,8 @@ ImplFontCharMap* ImplFontCharMap::GetDefaultMap( bool bSymbols)
int nCodesCount = sizeof(aDefaultUnicodeRanges) / sizeof(*pRangeCodes);
if( bSymbols )
{
- pRangeCodes = aDefaultSymbolRanges;
- nCodesCount = sizeof(aDefaultSymbolRanges) / sizeof(*pRangeCodes);
+ pRangeCodes = aDefaultSymbolRanges;
+ nCodesCount = sizeof(aDefaultSymbolRanges) / sizeof(*pRangeCodes);
}
CmapResult aDefaultCR( bSymbols, pRangeCodes, nCodesCount/2 );
@@ -378,7 +378,7 @@ int ImplFontCharMap::GetGlyphIndex( sal_uInt32 cChar ) const
// return -1 if the object doesn't know the glyph ids
if( !mpStartGlyphs )
return -1;
-
+
// return 0 if the unicode doesn't have a matching glyph
int nRange = ImplFindRangeIndex( cChar );
// check that we are inside any range
@@ -394,7 +394,7 @@ int ImplFontCharMap::GetGlyphIndex( sal_uInt32 cChar ) const
// check that we are inside a range
if( (nRange & 1) != 0 )
return 0;
-
+
// get glyph index directly or indirectly
int nGlyphIndex = cChar - mpRangeCodes[ nRange ];
const int nStartIndex = mpStartGlyphs[ nRange/2 ];
@@ -534,7 +534,7 @@ bool ParseCMAP( const unsigned char* pCmap, int nLength, CmapResult& rResult )
{
rResult.mpRangeCodes = NULL;
rResult.mpStartGlyphs= NULL;
- rResult.mpGlyphIds = NULL;
+ rResult.mpGlyphIds = NULL;
rResult.mnRangeCount = 0;
rResult.mbRecoded = false;
rResult.mbSymbolic = false;
@@ -797,7 +797,7 @@ bool ParseCMAP( const unsigned char* pCmap, int nLength, CmapResult& rResult )
*(pOut++) = *(it++);
}
- // update the result struct
+ // update the result struct
rResult.mpRangeCodes = pCodePairs;
rResult.mpStartGlyphs = pStartGlyphs;
rResult.mnRangeCount = nRangeCount;
diff --git a/vcl/source/gdi/octree.cxx b/vcl/source/gdi/octree.cxx
index 4e5f50124277..65c201d03053 100644
--- a/vcl/source/gdi/octree.cxx
+++ b/vcl/source/gdi/octree.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -298,7 +298,7 @@ void Octree::GetPalIndex( PNODE pNode )
InverseColorMap::InverseColorMap( const BitmapPalette& rPal ) :
nBits( 8 - OCTREE_BITS )
{
- ULONG* cdp;
+ ULONG* cdp;
BYTE* crgbp;
const ULONG nColorMax = 1 << OCTREE_BITS;
const ULONG xsqr = 1 << ( nBits << 1 );
@@ -316,9 +316,9 @@ InverseColorMap::InverseColorMap( const BitmapPalette& rPal ) :
for( ULONG nIndex = 0; nIndex < nColors; nIndex++ )
{
const BitmapColor& rColor = rPal[ (USHORT) nIndex ];
- const BYTE cRed = rColor.GetRed();
- const BYTE cGreen = rColor.GetGreen();
- const BYTE cBlue = rColor.GetBlue();
+ const BYTE cRed = rColor.GetRed();
+ const BYTE cGreen = rColor.GetGreen();
+ const BYTE cBlue = rColor.GetBlue();
rdist = cRed - x2;
gdist = cGreen - x2;
diff --git a/vcl/source/gdi/oldprintadaptor.cxx b/vcl/source/gdi/oldprintadaptor.cxx
index 4d87c06471ee..2846d8d53b6f 100644
--- a/vcl/source/gdi/oldprintadaptor.cxx
+++ b/vcl/source/gdi/oldprintadaptor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ void OldStylePrintAdaptor::StartPage()
mpData->maPages.back().maPageSize.Width = aPaperSize.getWidth();
mpData->maPages.back().maPageSize.Height = aPaperSize.getHeight();
getPrinter()->SetConnectMetaFile( &mpData->maPages.back().maPage );
-
+
// copy state into metafile
boost::shared_ptr<Printer> pPrinter( getPrinter() );
pPrinter->SetMapMode( pPrinter->GetMapMode() );
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx
index 08c27603e193..5fe5755f2765 100644
--- a/vcl/source/gdi/outdev.cxx
+++ b/vcl/source/gdi/outdev.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,7 +100,7 @@ const char* ImplDbgCheckOutputDevice( const void* pObj )
// =======================================================================
-#define OUTDEV_POLYPOLY_STACKBUF 32
+#define OUTDEV_POLYPOLY_STACKBUF 32
// =======================================================================
@@ -221,14 +221,14 @@ bool OutputDevice::ImplSelectClipRegion( const Region& rRegion, SalGraphics* pGr
return true;
}
- long nX;
- long nY;
- long nWidth;
- long nHeight;
- ULONG nRectCount;
- ImplRegionInfo aInfo;
- BOOL bRegionRect;
- BOOL bClipRegion = TRUE;
+ long nX;
+ long nY;
+ long nWidth;
+ long nHeight;
+ ULONG nRectCount;
+ ImplRegionInfo aInfo;
+ BOOL bRegionRect;
+ BOOL bClipRegion = TRUE;
const BOOL bClipDeviceBounds( !pOutDev->GetPDFWriter()
&& pOutDev->GetOutDevType() != OUTDEV_PRINTER );
@@ -333,36 +333,36 @@ void OutputDevice::ImplDrawPolyPolygon( USHORT nPoly, const PolyPolygon& rPolyPo
if(!nPoly)
return;
- sal_uInt32 aStackAry1[OUTDEV_POLYPOLY_STACKBUF];
- PCONSTSALPOINT aStackAry2[OUTDEV_POLYPOLY_STACKBUF];
- BYTE* aStackAry3[OUTDEV_POLYPOLY_STACKBUF];
- sal_uInt32* pPointAry;
- PCONSTSALPOINT* pPointAryAry;
- const BYTE** pFlagAryAry;
- USHORT i = 0, j = 0, last = 0;
- BOOL bHaveBezier = sal_False;
+ sal_uInt32 aStackAry1[OUTDEV_POLYPOLY_STACKBUF];
+ PCONSTSALPOINT aStackAry2[OUTDEV_POLYPOLY_STACKBUF];
+ BYTE* aStackAry3[OUTDEV_POLYPOLY_STACKBUF];
+ sal_uInt32* pPointAry;
+ PCONSTSALPOINT* pPointAryAry;
+ const BYTE** pFlagAryAry;
+ USHORT i = 0, j = 0, last = 0;
+ BOOL bHaveBezier = sal_False;
if ( nPoly > OUTDEV_POLYPOLY_STACKBUF )
{
- pPointAry = new sal_uInt32[nPoly];
- pPointAryAry = new PCONSTSALPOINT[nPoly];
- pFlagAryAry = new const BYTE*[nPoly];
+ pPointAry = new sal_uInt32[nPoly];
+ pPointAryAry = new PCONSTSALPOINT[nPoly];
+ pFlagAryAry = new const BYTE*[nPoly];
}
else
{
- pPointAry = aStackAry1;
- pPointAryAry = aStackAry2;
- pFlagAryAry = (const BYTE**)aStackAry3;
+ pPointAry = aStackAry1;
+ pPointAryAry = aStackAry2;
+ pFlagAryAry = (const BYTE**)aStackAry3;
}
do
{
- const Polygon& rPoly = rPolyPoly.GetObject( i );
- USHORT nSize = rPoly.GetSize();
+ const Polygon& rPoly = rPolyPoly.GetObject( i );
+ USHORT nSize = rPoly.GetSize();
if ( nSize )
{
- pPointAry[j] = nSize;
+ pPointAry[j] = nSize;
pPointAryAry[j] = (PCONSTSALPOINT)rPoly.GetConstPointAry();
pFlagAryAry[j] = rPoly.GetConstFlagAry();
- last = i;
+ last = i;
if( pFlagAryAry[j] )
bHaveBezier = sal_True;
@@ -425,81 +425,81 @@ OutputDevice::OutputDevice() :
{
DBG_CTOR( OutputDevice, ImplDbgCheckOutputDevice );
- mpGraphics = NULL;
- mpUnoGraphicsList = NULL;
- mpPrevGraphics = NULL;
- mpNextGraphics = NULL;
- mpMetaFile = NULL;
- mpFontEntry = NULL;
- mpFontCache = NULL;
- mpFontList = NULL;
- mpGetDevFontList = NULL;
- mpGetDevSizeList = NULL;
- mpObjStack = NULL;
- mpOutDevData = NULL;
- mpPDFWriter = NULL;
- mpAlphaVDev = NULL;
- mpExtOutDevData = NULL;
- mnOutOffX = 0;
- mnOutOffY = 0;
- mnOutWidth = 0;
- mnOutHeight = 0;
- mnDPIX = 0;
- mnDPIY = 0;
- mnTextOffX = 0;
- mnTextOffY = 0;
- mnOutOffOrigX = 0;
- mnOutOffLogicX = 0;
- mnOutOffOrigY = 0;
- mnOutOffLogicY = 0;
- mnEmphasisAscent = 0;
- mnEmphasisDescent = 0;
- mnDrawMode = 0;
+ mpGraphics = NULL;
+ mpUnoGraphicsList = NULL;
+ mpPrevGraphics = NULL;
+ mpNextGraphics = NULL;
+ mpMetaFile = NULL;
+ mpFontEntry = NULL;
+ mpFontCache = NULL;
+ mpFontList = NULL;
+ mpGetDevFontList = NULL;
+ mpGetDevSizeList = NULL;
+ mpObjStack = NULL;
+ mpOutDevData = NULL;
+ mpPDFWriter = NULL;
+ mpAlphaVDev = NULL;
+ mpExtOutDevData = NULL;
+ mnOutOffX = 0;
+ mnOutOffY = 0;
+ mnOutWidth = 0;
+ mnOutHeight = 0;
+ mnDPIX = 0;
+ mnDPIY = 0;
+ mnTextOffX = 0;
+ mnTextOffY = 0;
+ mnOutOffOrigX = 0;
+ mnOutOffLogicX = 0;
+ mnOutOffOrigY = 0;
+ mnOutOffLogicY = 0;
+ mnEmphasisAscent = 0;
+ mnEmphasisDescent = 0;
+ mnDrawMode = 0;
mnTextLayoutMode = TEXT_LAYOUT_DEFAULT;
if( Application::GetSettings().GetLayoutRTL() ) //#i84553# tip BiDi preference to RTL
mnTextLayoutMode = TEXT_LAYOUT_BIDI_RTL | TEXT_LAYOUT_TEXTORIGIN_LEFT;
- meOutDevType = OUTDEV_DONTKNOW;
+ meOutDevType = OUTDEV_DONTKNOW;
meOutDevViewType = OUTDEV_VIEWTYPE_DONTKNOW;
- mbMap = FALSE;
- mbMapIsDefault = TRUE;
- mbClipRegion = FALSE;
- mbBackground = FALSE;
- mbOutput = TRUE;
- mbDevOutput = FALSE;
- mbOutputClipped = FALSE;
- maTextColor = Color( COL_BLACK );
- maOverlineColor = Color( COL_TRANSPARENT );
- meTextAlign = maFont.GetAlign();
- meRasterOp = ROP_OVERPAINT;
- mnAntialiasing = 0;
+ mbMap = FALSE;
+ mbMapIsDefault = TRUE;
+ mbClipRegion = FALSE;
+ mbBackground = FALSE;
+ mbOutput = TRUE;
+ mbDevOutput = FALSE;
+ mbOutputClipped = FALSE;
+ maTextColor = Color( COL_BLACK );
+ maOverlineColor = Color( COL_TRANSPARENT );
+ meTextAlign = maFont.GetAlign();
+ meRasterOp = ROP_OVERPAINT;
+ mnAntialiasing = 0;
meTextLanguage = 0; // TODO: get default from configuration?
- mbLineColor = TRUE;
- mbFillColor = TRUE;
- mbInitLineColor = TRUE;
- mbInitFillColor = TRUE;
- mbInitFont = TRUE;
- mbInitTextColor = TRUE;
- mbInitClipRegion = TRUE;
- mbClipRegionSet = FALSE;
- mbKerning = FALSE;
- mbNewFont = TRUE;
- mbTextLines = FALSE;
- mbTextSpecial = FALSE;
- mbRefPoint = FALSE;
+ mbLineColor = TRUE;
+ mbFillColor = TRUE;
+ mbInitLineColor = TRUE;
+ mbInitFillColor = TRUE;
+ mbInitFont = TRUE;
+ mbInitTextColor = TRUE;
+ mbInitClipRegion = TRUE;
+ mbClipRegionSet = FALSE;
+ mbKerning = FALSE;
+ mbNewFont = TRUE;
+ mbTextLines = FALSE;
+ mbTextSpecial = FALSE;
+ mbRefPoint = FALSE;
mbEnableRTL = FALSE; // mirroring must be explicitly allowed (typically for windows only)
// struct ImplMapRes
- maMapRes.mnMapOfsX = 0;
- maMapRes.mnMapOfsY = 0;
- maMapRes.mnMapScNumX = 1;
- maMapRes.mnMapScNumY = 1;
- maMapRes.mnMapScDenomX = 1;
- maMapRes.mnMapScDenomY = 1;
+ maMapRes.mnMapOfsX = 0;
+ maMapRes.mnMapOfsY = 0;
+ maMapRes.mnMapScNumX = 1;
+ maMapRes.mnMapScNumY = 1;
+ maMapRes.mnMapScDenomX = 1;
+ maMapRes.mnMapScDenomY = 1;
// struct ImplThresholdRes
- maThresRes.mnThresLogToPixX = 0;
- maThresRes.mnThresLogToPixY = 0;
- maThresRes.mnThresPixToLogX = 0;
- maThresRes.mnThresPixToLogY = 0;
+ maThresRes.mnThresLogToPixX = 0;
+ maThresRes.mnThresLogToPixY = 0;
+ maThresRes.mnThresPixToLogX = 0;
+ maThresRes.mnThresPixToLogY = 0;
}
// -----------------------------------------------------------------------
@@ -597,7 +597,7 @@ void OutputDevice::EnableRTL( BOOL bEnable )
Window* pWin = dynamic_cast<Window*>(this);
if( pWin )
pWin->StateChanged( STATE_CHANGE_MIRRORING );
-
+
if( mpAlphaVDev )
mpAlphaVDev->EnableRTL( bEnable );
}
@@ -630,12 +630,12 @@ void OutputDevice::ImplReMirror( Rectangle &rRect ) const
}
void OutputDevice::ImplReMirror( Region &rRegion ) const
{
- long nX;
- long nY;
- long nWidth;
- long nHeight;
- ImplRegionInfo aInfo;
- BOOL bRegionRect;
+ long nX;
+ long nY;
+ long nWidth;
+ long nHeight;
+ ImplRegionInfo aInfo;
+ BOOL bRegionRect;
Region aMirroredRegion;
bRegionRect = rRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight );
@@ -659,11 +659,11 @@ int OutputDevice::ImplGetGraphics() const
if ( mpGraphics )
return TRUE;
- mbInitLineColor = TRUE;
- mbInitFillColor = TRUE;
- mbInitFont = TRUE;
- mbInitTextColor = TRUE;
- mbInitClipRegion = TRUE;
+ mbInitLineColor = TRUE;
+ mbInitFillColor = TRUE;
+ mbInitFont = TRUE;
+ mbInitTextColor = TRUE;
+ mbInitClipRegion = TRUE;
ImplSVData* pSVData = ImplGetSVData();
if ( meOutDevType == OUTDEV_WINDOW )
@@ -917,9 +917,9 @@ void OutputDevice::ImplReleaseGraphics( BOOL bRelease )
}
}
- mpGraphics = NULL;
- mpPrevGraphics = NULL;
- mpNextGraphics = NULL;
+ mpGraphics = NULL;
+ mpPrevGraphics = NULL;
+ mpNextGraphics = NULL;
}
// -----------------------------------------------------------------------
@@ -1037,7 +1037,7 @@ void OutputDevice::ImplInitClipRegion()
if ( GetOutDevType() == OUTDEV_WINDOW )
{
Window* pWindow = (Window*)this;
- Region aRegion;
+ Region aRegion;
// Hintergrund-Sicherung zuruecksetzen
if ( pWindow->mpWindowImpl->mpFrameData->mpFirstBackWin )
@@ -1104,16 +1104,16 @@ void OutputDevice::ImplSetClipRegion( const Region* pRegion )
{
if ( mbClipRegion )
{
- maRegion = Region( REGION_NULL );
- mbClipRegion = FALSE;
- mbInitClipRegion = TRUE;
+ maRegion = Region( REGION_NULL );
+ mbClipRegion = FALSE;
+ mbInitClipRegion = TRUE;
}
}
else
{
- maRegion = *pRegion;
- mbClipRegion = TRUE;
- mbInitClipRegion = TRUE;
+ maRegion = *pRegion;
+ mbClipRegion = TRUE;
+ mbInitClipRegion = TRUE;
}
}
@@ -1142,8 +1142,8 @@ namespace
return 0x80000000;
if(a >= 0)
return a / b;
- int q = -(-a / b); // quotient
- int r = -a % b; // remainder
+ int q = -(-a / b); // quotient
+ int r = -a % b; // remainder
if(r)
q--;
return q;
@@ -1155,7 +1155,7 @@ namespace
return 0x80000000;
if(a >= 0)
return a % b;
- int r = -a % b; // remainder
+ int r = -a % b; // remainder
if(r)
r = b - r;
return r;
@@ -1168,8 +1168,8 @@ namespace
a += - 1 + b;
if(a >= 0)
return a / b;
- int q = -(-a / b); // quotient
- int r = -a % b; // remainder
+ int q = -(-a / b); // quotient
+ int r = -a % b; // remainder
if(r)
q--;
return q;
@@ -1940,8 +1940,8 @@ void OutputDevice::IntersectClipRegion( const Rectangle& rRect )
Rectangle aRect = LogicToPixel( rRect );
maRegion.Intersect( aRect );
- mbClipRegion = TRUE;
- mbInitClipRegion = TRUE;
+ mbClipRegion = TRUE;
+ mbInitClipRegion = TRUE;
if( mpAlphaVDev )
mpAlphaVDev->IntersectClipRegion( rRect );
@@ -1964,8 +1964,8 @@ void OutputDevice::IntersectClipRegion( const Region& rRegion )
Region aRegion = LogicToPixel( rRegion );
maRegion.Intersect( aRegion );
- mbClipRegion = TRUE;
- mbInitClipRegion = TRUE;
+ mbClipRegion = TRUE;
+ mbInitClipRegion = TRUE;
}
if( mpAlphaVDev )
@@ -2284,7 +2284,7 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt )
ImplInitLineColor();
// #i101598# support AA and snap for lines, too
- if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& mpGraphics->supportsOperation(OutDevSupport_B2DDraw)
&& ROP_OVERPAINT == GetRasterOp()
&& IsLineColor())
@@ -2325,7 +2325,7 @@ void OutputDevice::impPaintLineGeometryWithEvtlExpand(
const LineInfo& rInfo,
basegfx::B2DPolyPolygon aLinePolyPolygon)
{
- const bool bTryAA((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ const bool bTryAA((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& mpGraphics->supportsOperation(OutDevSupport_B2DDraw)
&& ROP_OVERPAINT == GetRasterOp()
&& IsLineColor());
@@ -2381,19 +2381,19 @@ void OutputDevice::impPaintLineGeometryWithEvtlExpand(
// #i110768# When area geometry has to be created, do not
// use the fallback bezier decomposition inside createAreaGeometry,
// but one that is at least as good as ImplSubdivideBezier was.
- // There, Polygon::AdaptiveSubdivide was used with default parameter
+ // There, Polygon::AdaptiveSubdivide was used with default parameter
// 1.0 as quality index.
aLinePolyPolygon = basegfx::tools::adaptiveSubdivideByDistance(aLinePolyPolygon, 1.0);
}
-
+
for(sal_uInt32 a(0); a < aLinePolyPolygon.count(); a++)
{
aFillPolyPolygon.append(basegfx::tools::createAreaGeometry(
- aLinePolyPolygon.getB2DPolygon(a),
- fHalfLineWidth,
+ aLinePolyPolygon.getB2DPolygon(a),
+ fHalfLineWidth,
rInfo.GetLineJoin()));
}
-
+
aLinePolyPolygon.clear();
}
@@ -2422,8 +2422,8 @@ void OutputDevice::impPaintLineGeometryWithEvtlExpand(
if(aFillPolyPolygon.count())
{
- const Color aOldLineColor( maLineColor );
- const Color aOldFillColor( maFillColor );
+ const Color aOldLineColor( maLineColor );
+ const Color aOldFillColor( maFillColor );
SetLineColor();
ImplInitLineColor();
@@ -2431,7 +2431,7 @@ void OutputDevice::impPaintLineGeometryWithEvtlExpand(
ImplInitFillColor();
bool bDone(false);
-
+
if(bTryAA)
{
bDone = mpGraphics->DrawPolyPolygon(aFillPolyPolygon, 0.0, this);
@@ -2445,7 +2445,7 @@ void OutputDevice::impPaintLineGeometryWithEvtlExpand(
mpGraphics->DrawPolygon(aPolygon.GetSize(), (const SalPoint*)aPolygon.GetConstPointAry(), this);
}
}
-
+
SetFillColor( aOldFillColor );
SetLineColor( aOldLineColor );
}
@@ -2578,7 +2578,7 @@ void OutputDevice::DrawPolyLine( const Polygon& rPoly )
if ( mbInitLineColor )
ImplInitLineColor();
- const bool bTryAA((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ const bool bTryAA((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& mpGraphics->supportsOperation(OutDevSupport_B2DDraw)
&& ROP_OVERPAINT == GetRasterOp()
&& IsLineColor());
@@ -2643,7 +2643,7 @@ void OutputDevice::DrawPolyLine( const Polygon& rPoly, const LineInfo& rLineInfo
// #i101491#
// Try direct Fallback to B2D-Version of DrawPolyLine
- if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& LINE_SOLID == rLineInfo.GetStyle())
{
DrawPolyLine( rPoly.getB2DPolygon(), (double)rLineInfo.GetWidth(), rLineInfo.GetLineJoin());
@@ -2666,7 +2666,7 @@ void OutputDevice::ImpDrawPolyLineWithLineInfo(const Polygon& rPoly, const LineI
Polygon aPoly = ImplLogicToDevicePixel( rPoly );
// #100127# LineInfo is not curve-safe, subdivide always
- //
+ //
// What shall this mean? It's wrong to subdivide here when the
// polygon is a fat line. In that case, the painted geometry
// WILL be much different.
@@ -2711,7 +2711,7 @@ void OutputDevice::ImpDrawPolyLineWithLineInfo(const Polygon& rPoly, const LineI
aPoly = ImplSubdivideBezier( aPoly );
nPoints = aPoly.GetSize();
}
-
+
mpGraphics->DrawPolyLine(nPoints, (const SalPoint*)aPoly.GetConstPointAry(), this);
}
@@ -2751,7 +2751,7 @@ void OutputDevice::DrawPolygon( const Polygon& rPoly )
ImplInitFillColor();
// use b2dpolygon drawing if possible
- if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& mpGraphics->supportsOperation(OutDevSupport_B2DDraw)
&& ROP_OVERPAINT == GetRasterOp()
&& (IsLineColor() || IsFillColor()))
@@ -2841,7 +2841,7 @@ void OutputDevice::DrawPolyPolygon( const PolyPolygon& rPolyPoly )
ImplInitFillColor();
// use b2dpolygon drawing if possible
- if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& mpGraphics->supportsOperation(OutDevSupport_B2DDraw)
&& ROP_OVERPAINT == GetRasterOp()
&& (IsLineColor() || IsFillColor()))
@@ -2956,7 +2956,7 @@ void OutputDevice::ImpDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyPo
if( mbInitFillColor )
ImplInitFillColor();
- if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& mpGraphics->supportsOperation(OutDevSupport_B2DDraw)
&& ROP_OVERPAINT == GetRasterOp()
&& (IsLineColor() || IsFillColor()))
@@ -3010,7 +3010,7 @@ bool OutputDevice::ImpTryDrawPolyLineDirect(
{
const basegfx::B2DHomMatrix aTransform = ImplGetDeviceTransformation();
basegfx::B2DVector aB2DLineWidth(1.0, 1.0);
-
+
// transform the line width if used
if( fLineWidth != 0.0 )
{
@@ -3020,8 +3020,8 @@ bool OutputDevice::ImpTryDrawPolyLineDirect(
// transform the polygon
basegfx::B2DPolygon aB2DPolygon(rB2DPolygon);
aB2DPolygon.transform(aTransform);
-
- if((mnAntialiasing & ANTIALIASING_PIXELSNAPHAIRLINE)
+
+ if((mnAntialiasing & ANTIALIASING_PIXELSNAPHAIRLINE)
&& aB2DPolygon.count() < 1000)
{
// #i98289#, #i101491#
@@ -3071,7 +3071,7 @@ void OutputDevice::DrawPolyLine(
if( mbInitLineColor )
ImplInitLineColor();
- const bool bTryAA((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ const bool bTryAA((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& mpGraphics->supportsOperation(OutDevSupport_B2DDraw)
&& ROP_OVERPAINT == GetRasterOp()
&& IsLineColor());
@@ -3086,7 +3086,7 @@ void OutputDevice::DrawPolyLine(
// no output yet; fallback to geometry decomposition and use filled polygon paint
// when line is fat and not too complex. ImpDrawPolyPolygonWithB2DPolyPolygon
// will do internal needed AA checks etc.
- if(fLineWidth >= 2.5
+ if(fLineWidth >= 2.5
&& rB2DPolygon.count()
&& rB2DPolygon.count() <= 1000)
{
@@ -3234,8 +3234,8 @@ void OutputDevice::Pop()
if( mpMetaFile )
mpMetaFile->AddAction( new MetaPopAction() );
- GDIMetaFile* pOldMetaFile = mpMetaFile;
- ImplObjStack* pData = mpObjStack;
+ GDIMetaFile* pOldMetaFile = mpMetaFile;
+ ImplObjStack* pData = mpObjStack;
mpMetaFile = NULL;
if ( !pData )
diff --git a/vcl/source/gdi/outdev2.cxx b/vcl/source/gdi/outdev2.cxx
index 4cae28705edf..271bebb92051 100644
--- a/vcl/source/gdi/outdev2.cxx
+++ b/vcl/source/gdi/outdev2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,23 +64,23 @@ DBG_NAMEEX( OutputDevice )
// - Defines -
// -----------
-#define OUTDEV_INIT() \
-{ \
- if ( !IsDeviceOutputNecessary() ) \
- return; \
+#define OUTDEV_INIT() \
+{ \
+ if ( !IsDeviceOutputNecessary() ) \
+ return; \
\
- if ( !mpGraphics ) \
- if ( !ImplGetGraphics() ) \
- return; \
+ if ( !mpGraphics ) \
+ if ( !ImplGetGraphics() ) \
+ return; \
\
- if ( mbInitClipRegion ) \
- ImplInitClipRegion(); \
+ if ( mbInitClipRegion ) \
+ ImplInitClipRegion(); \
\
- if ( mbOutputClipped ) \
- return; \
+ if ( mbOutputClipped ) \
+ return; \
}
-#define TwoRect SalTwoRect
+#define TwoRect SalTwoRect
// -------------
// - externals -
@@ -115,13 +115,13 @@ ULONG ImplAdjustTwoRect( TwoRect& rTwoRect, const Size& rSizePix )
}
if( ( rTwoRect.mnSrcX < 0 ) || ( rTwoRect.mnSrcX >= rSizePix.Width() ) ||
- ( rTwoRect.mnSrcY < 0 ) || ( rTwoRect.mnSrcY >= rSizePix.Height() ) ||
+ ( rTwoRect.mnSrcY < 0 ) || ( rTwoRect.mnSrcY >= rSizePix.Height() ) ||
( ( rTwoRect.mnSrcX + rTwoRect.mnSrcWidth ) > rSizePix.Width() ) ||
( ( rTwoRect.mnSrcY + rTwoRect.mnSrcHeight ) > rSizePix.Height() ) )
{
- const Rectangle aSourceRect( Point( rTwoRect.mnSrcX, rTwoRect.mnSrcY ),
+ const Rectangle aSourceRect( Point( rTwoRect.mnSrcX, rTwoRect.mnSrcY ),
Size( rTwoRect.mnSrcWidth, rTwoRect.mnSrcHeight ) );
- Rectangle aCropRect( aSourceRect );
+ Rectangle aCropRect( aSourceRect );
aCropRect.Intersection( Rectangle( Point(), rSizePix ) );
@@ -129,8 +129,8 @@ ULONG ImplAdjustTwoRect( TwoRect& rTwoRect, const Size& rSizePix )
rTwoRect.mnSrcWidth = rTwoRect.mnSrcHeight = rTwoRect.mnDestWidth = rTwoRect.mnDestHeight = 0;
else
{
- const double fFactorX = ( rTwoRect.mnSrcWidth > 1 ) ? (double) ( rTwoRect.mnDestWidth - 1 ) / ( rTwoRect.mnSrcWidth - 1 ) : 0.0;
- const double fFactorY = ( rTwoRect.mnSrcHeight > 1 ) ? (double) ( rTwoRect.mnDestHeight - 1 ) / ( rTwoRect.mnSrcHeight - 1 ) : 0.0;
+ const double fFactorX = ( rTwoRect.mnSrcWidth > 1 ) ? (double) ( rTwoRect.mnDestWidth - 1 ) / ( rTwoRect.mnSrcWidth - 1 ) : 0.0;
+ const double fFactorY = ( rTwoRect.mnSrcHeight > 1 ) ? (double) ( rTwoRect.mnDestHeight - 1 ) / ( rTwoRect.mnSrcHeight - 1 ) : 0.0;
const long nDstX1 = rTwoRect.mnDestX + FRound( fFactorX * ( aCropRect.Left() - rTwoRect.mnSrcX ) );
const long nDstY1 = rTwoRect.mnDestY + FRound( fFactorY * ( aCropRect.Top() - rTwoRect.mnSrcY ) );
@@ -155,8 +155,8 @@ ULONG ImplAdjustTwoRect( TwoRect& rTwoRect, const Size& rSizePix )
void OutputDevice::ImplDrawOutDevDirect( const OutputDevice* pSrcDev, void* pVoidPosAry )
{
- TwoRect* pPosAry = (TwoRect*)pVoidPosAry;
- SalGraphics* pGraphics2;
+ TwoRect* pPosAry = (TwoRect*)pVoidPosAry;
+ SalGraphics* pGraphics2;
if ( pPosAry->mnSrcWidth && pPosAry->mnSrcHeight && pPosAry->mnDestWidth && pPosAry->mnDestHeight )
{
@@ -199,12 +199,12 @@ void OutputDevice::ImplDrawOutDevDirect( const OutputDevice* pSrcDev, void* pVoi
}
// #102532# Offset only has to be pseudo window offset
- Rectangle aSrcOutRect( Point( pSrcDev->mnOutOffX, pSrcDev->mnOutOffY ),
+ Rectangle aSrcOutRect( Point( pSrcDev->mnOutOffX, pSrcDev->mnOutOffY ),
Size( pSrcDev->mnOutWidth, pSrcDev->mnOutHeight ) );
- Rectangle aSrcRect( Point( pPosAry->mnSrcX, pPosAry->mnSrcY ),
+ Rectangle aSrcRect( Point( pPosAry->mnSrcX, pPosAry->mnSrcY ),
Size( pPosAry->mnSrcWidth, pPosAry->mnSrcHeight ) );
- const long nOldRight = aSrcRect.Right();
- const long nOldBottom = aSrcRect.Bottom();
+ const long nOldRight = aSrcRect.Right();
+ const long nOldBottom = aSrcRect.Bottom();
if ( !aSrcRect.Intersection( aSrcOutRect ).IsEmpty() )
{
@@ -229,7 +229,7 @@ void OutputDevice::ImplDrawOutDevDirect( const OutputDevice* pSrcDev, void* pVoi
if( (GetOutDevType() != OUTDEV_WINDOW) && pGraphics2 && (pGraphics2->GetLayout() & SAL_LAYOUT_BIDI_RTL) )
{
SalTwoRect pPosAry2 = *pPosAry;
- pGraphics2->mirror( pPosAry2.mnSrcX, pPosAry2.mnSrcWidth, pSrcDev );
+ pGraphics2->mirror( pPosAry2.mnSrcX, pPosAry2.mnSrcWidth, pSrcDev );
mpGraphics->CopyBits( &pPosAry2, pGraphics2, this, pSrcDev );
}
else
@@ -268,24 +268,24 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize,
OUTDEV_INIT();
TwoRect aPosAry;
- aPosAry.mnSrcWidth = ImplLogicWidthToDevicePixel( rSrcSize.Width() );
+ aPosAry.mnSrcWidth = ImplLogicWidthToDevicePixel( rSrcSize.Width() );
aPosAry.mnSrcHeight = ImplLogicHeightToDevicePixel( rSrcSize.Height() );
aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() );
aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() );
if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight && aPosAry.mnDestWidth && aPosAry.mnDestHeight )
{
- aPosAry.mnSrcX = ImplLogicXToDevicePixel( rSrcPt.X() );
- aPosAry.mnSrcY = ImplLogicYToDevicePixel( rSrcPt.Y() );
- aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() );
- aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() );
+ aPosAry.mnSrcX = ImplLogicXToDevicePixel( rSrcPt.X() );
+ aPosAry.mnSrcY = ImplLogicYToDevicePixel( rSrcPt.Y() );
+ aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() );
+ aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() );
- Rectangle aSrcOutRect( Point( mnOutOffX, mnOutOffY ),
+ Rectangle aSrcOutRect( Point( mnOutOffX, mnOutOffY ),
Size( mnOutWidth, mnOutHeight ) );
- Rectangle aSrcRect( Point( aPosAry.mnSrcX, aPosAry.mnSrcY ),
+ Rectangle aSrcRect( Point( aPosAry.mnSrcX, aPosAry.mnSrcY ),
Size( aPosAry.mnSrcWidth, aPosAry.mnSrcHeight ) );
- long nOldRight = aSrcRect.Right();
- long nOldBottom = aSrcRect.Bottom();
+ long nOldRight = aSrcRect.Right();
+ long nOldBottom = aSrcRect.Bottom();
if ( !aSrcRect.Intersection( aSrcOutRect ).IsEmpty() )
{
@@ -341,12 +341,12 @@ void OutputDevice::DrawOutDev( const Point& rDestPt, const Size& rDestSize,
OUTDEV_INIT();
TwoRect aPosAry;
- aPosAry.mnSrcX = rOutDev.ImplLogicXToDevicePixel( rSrcPt.X() );
- aPosAry.mnSrcY = rOutDev.ImplLogicYToDevicePixel( rSrcPt.Y() );
- aPosAry.mnSrcWidth = rOutDev.ImplLogicWidthToDevicePixel( rSrcSize.Width() );
+ aPosAry.mnSrcX = rOutDev.ImplLogicXToDevicePixel( rSrcPt.X() );
+ aPosAry.mnSrcY = rOutDev.ImplLogicYToDevicePixel( rSrcPt.Y() );
+ aPosAry.mnSrcWidth = rOutDev.ImplLogicWidthToDevicePixel( rSrcSize.Width() );
aPosAry.mnSrcHeight = rOutDev.ImplLogicHeightToDevicePixel( rSrcSize.Height() );
- aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() );
- aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() );
+ aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() );
+ aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() );
aPosAry.mnDestWidth = ImplLogicWidthToDevicePixel( rDestSize.Width() );
aPosAry.mnDestHeight = ImplLogicHeightToDevicePixel( rDestSize.Height() );
@@ -403,22 +403,22 @@ void OutputDevice::CopyArea( const Point& rDestPt,
OUTDEV_INIT();
TwoRect aPosAry;
- aPosAry.mnSrcWidth = ImplLogicWidthToDevicePixel( rSrcSize.Width() );
+ aPosAry.mnSrcWidth = ImplLogicWidthToDevicePixel( rSrcSize.Width() );
aPosAry.mnSrcHeight = ImplLogicHeightToDevicePixel( rSrcSize.Height() );
if ( aPosAry.mnSrcWidth && aPosAry.mnSrcHeight )
{
- aPosAry.mnSrcX = ImplLogicXToDevicePixel( rSrcPt.X() );
- aPosAry.mnSrcY = ImplLogicYToDevicePixel( rSrcPt.Y() );
- aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() );
- aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() );
+ aPosAry.mnSrcX = ImplLogicXToDevicePixel( rSrcPt.X() );
+ aPosAry.mnSrcY = ImplLogicYToDevicePixel( rSrcPt.Y() );
+ aPosAry.mnDestX = ImplLogicXToDevicePixel( rDestPt.X() );
+ aPosAry.mnDestY = ImplLogicYToDevicePixel( rDestPt.Y() );
- Rectangle aSrcOutRect( Point( mnOutOffX, mnOutOffY ),
+ Rectangle aSrcOutRect( Point( mnOutOffX, mnOutOffY ),
Size( mnOutWidth, mnOutHeight ) );
- Rectangle aSrcRect( Point( aPosAry.mnSrcX, aPosAry.mnSrcY ),
+ Rectangle aSrcRect( Point( aPosAry.mnSrcX, aPosAry.mnSrcY ),
Size( aPosAry.mnSrcWidth, aPosAry.mnSrcHeight ) );
- long nOldRight = aSrcRect.Right();
- long nOldBottom = aSrcRect.Bottom();
+ long nOldRight = aSrcRect.Right();
+ long nOldBottom = aSrcRect.Bottom();
if ( !aSrcRect.Intersection( aSrcOutRect ).IsEmpty() )
{
@@ -462,9 +462,9 @@ void OutputDevice::ImplDrawFrameDev( const Point& rPt, const Point& rDevPt, cons
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
- GDIMetaFile* pOldMetaFile = mpMetaFile;
- BOOL bOldMap = mbMap;
- RasterOp eOldROP = GetRasterOp();
+ GDIMetaFile* pOldMetaFile = mpMetaFile;
+ BOOL bOldMap = mbMap;
+ RasterOp eOldROP = GetRasterOp();
mpMetaFile = NULL;
mbMap = FALSE;
SetRasterOp( ROP_OVERPAINT );
@@ -485,12 +485,12 @@ void OutputDevice::ImplDrawFrameDev( const Point& rPt, const Point& rDevPt, cons
ImplSelectClipRegion( rRegion );
TwoRect aPosAry;
- aPosAry.mnSrcX = rDevPt.X();
- aPosAry.mnSrcY = rDevPt.Y();
- aPosAry.mnSrcWidth = rDevSize.Width();
+ aPosAry.mnSrcX = rDevPt.X();
+ aPosAry.mnSrcY = rDevPt.Y();
+ aPosAry.mnSrcWidth = rDevSize.Width();
aPosAry.mnSrcHeight = rDevSize.Height();
- aPosAry.mnDestX = rPt.X();
- aPosAry.mnDestY = rPt.Y();
+ aPosAry.mnDestX = rPt.X();
+ aPosAry.mnDestY = rPt.Y();
aPosAry.mnDestWidth = rDevSize.Width();
aPosAry.mnDestHeight = rDevSize.Height();
ImplDrawOutDevDirect( &rOutDev, &aPosAry );
@@ -590,7 +590,7 @@ void OutputDevice::ImplDrawBitmap( const Point& rDestPt, const Size& rDestSize,
DrawRect( Rectangle( rDestPt, rDestSize ) );
return;
}
- else if ( mnDrawMode & ( DRAWMODE_BLACKBITMAP | DRAWMODE_WHITEBITMAP |
+ else if ( mnDrawMode & ( DRAWMODE_BLACKBITMAP | DRAWMODE_WHITEBITMAP |
DRAWMODE_GRAYBITMAP | DRAWMODE_GHOSTEDBITMAP ) )
{
if ( mnDrawMode & ( DRAWMODE_BLACKBITMAP | DRAWMODE_WHITEBITMAP ) )
@@ -660,7 +660,7 @@ void OutputDevice::ImplDrawBitmap( const Point& rDestPt, const Size& rDestSize,
{
if ( nMirrFlags )
aBmp.Mirror( nMirrFlags );
-
+
/* #i75264# (corrected with #i81576#)
* sometimes a bitmap is scaled to a ridiculous size and drawn
* to a quite normal VDev, so only a very small part of
@@ -690,7 +690,7 @@ void OutputDevice::ImplDrawBitmap( const Point& rDestPt, const Size& rDestSize,
if( aPosAry.mnDestWidth > 3*mnOutWidth && aPosAry.mnSrcWidth )
{
const double nScaleX = aPosAry.mnDestWidth/double(aPosAry.mnSrcWidth);
-
+
if( aPosAry.mnDestX + aPosAry.mnDestWidth > mnOutWidth )
{
aPosAry.mnDestWidth = Max(long(0),mnOutWidth-aPosAry.mnDestX);
@@ -701,14 +701,14 @@ void OutputDevice::ImplDrawBitmap( const Point& rDestPt, const Size& rDestSize,
aPosAry.mnSrcX -= sal::static_int_cast<long>(aPosAry.mnDestX / nScaleX);
aPosAry.mnDestX = 0;
}
-
+
aPosAry.mnSrcWidth = sal::static_int_cast<long>(aPosAry.mnDestWidth / nScaleX);
}
-
+
if( aPosAry.mnDestHeight > 3*mnOutHeight && aPosAry.mnSrcHeight != 0 )
{
const double nScaleY = aPosAry.mnDestHeight/double(aPosAry.mnSrcHeight);
-
+
if( aPosAry.mnDestY + aPosAry.mnDestHeight > mnOutHeight )
{
aPosAry.mnDestHeight = Max(long(0),mnOutHeight-aPosAry.mnDestY);
@@ -719,7 +719,7 @@ void OutputDevice::ImplDrawBitmap( const Point& rDestPt, const Size& rDestSize,
aPosAry.mnSrcY -= sal::static_int_cast<long>(aPosAry.mnDestY / nScaleY);
aPosAry.mnDestY = 0;
}
-
+
aPosAry.mnSrcHeight = sal::static_int_cast<long>(aPosAry.mnDestHeight / nScaleY);
}
}
@@ -801,13 +801,13 @@ void OutputDevice::ImplDrawBitmapEx( const Point& rDestPt, const Size& rDestSize
DrawRect( Rectangle( rDestPt, rDestSize ) );
return;
}
- else if ( mnDrawMode & ( DRAWMODE_BLACKBITMAP | DRAWMODE_WHITEBITMAP |
+ else if ( mnDrawMode & ( DRAWMODE_BLACKBITMAP | DRAWMODE_WHITEBITMAP |
DRAWMODE_GRAYBITMAP | DRAWMODE_GHOSTEDBITMAP ) )
{
if ( mnDrawMode & ( DRAWMODE_BLACKBITMAP | DRAWMODE_WHITEBITMAP ) )
{
- Bitmap aColorBmp( aBmpEx.GetSizePixel(), ( mnDrawMode & DRAWMODE_GHOSTEDBITMAP ) ? 4 : 1 );
- BYTE cCmpVal;
+ Bitmap aColorBmp( aBmpEx.GetSizePixel(), ( mnDrawMode & DRAWMODE_GHOSTEDBITMAP ) ? 4 : 1 );
+ BYTE cCmpVal;
if ( mnDrawMode & DRAWMODE_BLACKBITMAP )
cCmpVal = ( mnDrawMode & DRAWMODE_GHOSTEDBITMAP ) ? 0x80 : 0;
@@ -947,7 +947,7 @@ void OutputDevice::ImplDrawBitmapEx( const Point& rDestPt, const Size& rDestSize
aPosAry.mnDestHeight == aPosAry.mnSrcHeight )
{
// now intersect dest rect with clip region
- aClipRegionBounds.Intersection( Rectangle( aPosAry.mnDestX,
+ aClipRegionBounds.Intersection( Rectangle( aPosAry.mnDestX,
aPosAry.mnDestY,
aPosAry.mnDestX + aPosAry.mnDestWidth - 1,
aPosAry.mnDestY + aPosAry.mnDestHeight - 1 ) );
@@ -962,7 +962,7 @@ void OutputDevice::ImplDrawBitmapEx( const Point& rDestPt, const Size& rDestSize
aPosAry.mnSrcY += aClipRegionBounds.Top() - aPosAry.mnDestY;
aPosAry.mnSrcWidth = aClipRegionBounds.GetWidth();
aPosAry.mnSrcHeight = aClipRegionBounds.GetHeight();
-
+
aPosAry.mnDestX = aClipRegionBounds.Left();
aPosAry.mnDestY = aClipRegionBounds.Top();
aPosAry.mnDestWidth = aClipRegionBounds.GetWidth();
@@ -970,13 +970,13 @@ void OutputDevice::ImplDrawBitmapEx( const Point& rDestPt, const Size& rDestSize
}
}
- mpGraphics->DrawBitmap( &aPosAry, *pImpBmp->ImplGetSalBitmap(),
- *pMaskBmp->ImplGetSalBitmap(),
+ mpGraphics->DrawBitmap( &aPosAry, *pImpBmp->ImplGetSalBitmap(),
+ *pMaskBmp->ImplGetSalBitmap(),
this );
// #110958# Paint mask to alpha channel. Luckily, the
// black and white representation of the mask maps to
- // the alpha channel
+ // the alpha channel
// #i25167# Restrict mask painting to _opaque_ areas
// of the mask, otherwise we spoil areas where no
@@ -984,8 +984,8 @@ void OutputDevice::ImplDrawBitmapEx( const Point& rDestPt, const Size& rDestSize
// enough, this can be achieved by taking the mask as
// the transparency mask of itself
if( mpAlphaVDev )
- mpAlphaVDev->DrawBitmapEx( rDestPt,
- rDestSize,
+ mpAlphaVDev->DrawBitmapEx( rDestPt,
+ rDestSize,
BitmapEx( aBmpEx.GetMask(),
aBmpEx.GetMask() ) );
}
@@ -1025,8 +1025,8 @@ void OutputDevice::DrawMask( const Point& rDestPt,
// bitmap content was ever visible. Interestingly
// enough, this can be achieved by taking the mask as
// the transparency mask of itself
- mpAlphaVDev->DrawBitmapEx( rDestPt,
- PixelToLogic( aSizePix ),
+ mpAlphaVDev->DrawBitmapEx( rDestPt,
+ PixelToLogic( aSizePix ),
BitmapEx( rMask, rMask ) );
}
}
@@ -1053,8 +1053,8 @@ void OutputDevice::DrawMask( const Point& rDestPt, const Size& rDestSize,
// bitmap content was ever visible. Interestingly
// enough, this can be achieved by taking the mask as
// the transparency mask of itself
- mpAlphaVDev->DrawBitmapEx( rDestPt,
- rDestSize,
+ mpAlphaVDev->DrawBitmapEx( rDestPt,
+ rDestSize,
BitmapEx( rMask, rMask ) );
}
}
@@ -1082,9 +1082,9 @@ void OutputDevice::DrawMask( const Point& rDestPt, const Size& rDestSize,
// bitmap content was ever visible. Interestingly
// enough, this can be achieved by taking the mask as
// the transparency mask of itself
- mpAlphaVDev->DrawBitmapEx( rDestPt,
- rDestSize,
- rSrcPtPixel,
+ mpAlphaVDev->DrawBitmapEx( rDestPt,
+ rDestSize,
+ rSrcPtPixel,
rSrcSizePixel,
BitmapEx( rMask, rMask ) );
}
@@ -1175,10 +1175,10 @@ void OutputDevice::ImplDrawMask( const Point& rDestPt, const Size& rDestSize,
void OutputDevice::DrawImage( const Point& rPos, const Image& rImage, USHORT nStyle )
{
DBG_ASSERT( GetOutDevType() != OUTDEV_PRINTER, "DrawImage(): Images can't be drawn on any mprinter" );
-
+
if( !rImage.mpImplData || ImplIsRecordLayout() )
return;
-
+
switch( rImage.mpImplData->meType )
{
case IMAGETYPE_BITMAP:
@@ -1192,7 +1192,7 @@ void OutputDevice::DrawImage( const Point& rPos, const Image& rImage, USHORT nSt
if( !pData->mpImageBitmap )
{
const Size aSize( pData->maBmpEx.GetSizePixel() );
-
+
pData->mpImageBitmap = new ImplImageBmp;
pData->mpImageBitmap->Create( pData->maBmpEx, aSize.Width(), aSize.Height(), 1 );
}
@@ -1220,23 +1220,23 @@ void OutputDevice::DrawImage( const Point& rPos, const Size& rSize,
case IMAGETYPE_BITMAP:
DrawBitmap( rPos, rSize, *static_cast< Bitmap* >( rImage.mpImplData->mpData ) );
break;
-
+
case IMAGETYPE_IMAGE:
{
ImplImageData* pData = static_cast< ImplImageData* >( rImage.mpImplData->mpData );
-
+
if ( !pData->mpImageBitmap )
{
const Size aSize( pData->maBmpEx.GetSizePixel() );
-
+
pData->mpImageBitmap = new ImplImageBmp;
pData->mpImageBitmap->Create( pData->maBmpEx, aSize.Width(), aSize.Height(), 1 );
}
-
+
pData->mpImageBitmap->Draw( 0, this, rPos, nStyle, &rSize );
}
break;
-
+
default:
break;
}
@@ -1249,18 +1249,18 @@ Bitmap OutputDevice::GetBitmap( const Point& rSrcPt, const Size& rSize ) const
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
- Bitmap aBmp;
- long nX = ImplLogicXToDevicePixel( rSrcPt.X() );
- long nY = ImplLogicYToDevicePixel( rSrcPt.Y() );
- long nWidth = ImplLogicWidthToDevicePixel( rSize.Width() );
- long nHeight = ImplLogicHeightToDevicePixel( rSize.Height() );
+ Bitmap aBmp;
+ long nX = ImplLogicXToDevicePixel( rSrcPt.X() );
+ long nY = ImplLogicYToDevicePixel( rSrcPt.Y() );
+ long nWidth = ImplLogicWidthToDevicePixel( rSize.Width() );
+ long nHeight = ImplLogicHeightToDevicePixel( rSize.Height() );
if ( mpGraphics || ( (OutputDevice*) this )->ImplGetGraphics() )
{
if ( nWidth && nHeight )
{
- Rectangle aRect( Point( nX, nY ), Size( nWidth, nHeight ) );
- BOOL bClipped = FALSE;
+ Rectangle aRect( Point( nX, nY ), Size( nWidth, nHeight ) );
+ BOOL bClipped = FALSE;
// X-Koordinate ausserhalb des Bereichs?
if ( nX < mnOutOffX )
@@ -1281,7 +1281,7 @@ Bitmap OutputDevice::GetBitmap( const Point& rSrcPt, const Size& rSize ) const
// Breite ausserhalb des Bereichs?
if ( (nWidth + nX) > (mnOutWidth + mnOutOffX) )
{
- nWidth = mnOutOffX + mnOutWidth - nX;
+ nWidth = mnOutOffX + mnOutWidth - nX;
bClipped = TRUE;
}
@@ -1393,9 +1393,9 @@ Color OutputDevice::GetPixel( const Point& rPt ) const
if ( !mbOutputClipped )
{
- const long nX = ImplLogicXToDevicePixel( rPt.X() );
- const long nY = ImplLogicYToDevicePixel( rPt.Y() );
- const SalColor aSalCol = mpGraphics->GetPixel( nX, nY, this );
+ const long nX = ImplLogicXToDevicePixel( rPt.X() );
+ const long nY = ImplLogicYToDevicePixel( rPt.Y() );
+ const SalColor aSalCol = mpGraphics->GetPixel( nX, nY, this );
aColor.SetRed( SALCOLOR_RED( aSalCol ) );
aColor.SetGreen( SALCOLOR_GREEN( aSalCol ) );
aColor.SetBlue( SALCOLOR_BLUE( aSalCol ) );
@@ -1410,8 +1410,8 @@ Color* OutputDevice::GetPixel( const Polygon& rPts ) const
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
- Color* pColors = NULL;
- const USHORT nSize = rPts.GetSize();
+ Color* pColors = NULL;
+ const USHORT nSize = rPts.GetSize();
if( nSize )
{
@@ -1426,9 +1426,9 @@ Color* OutputDevice::GetPixel( const Polygon& rPts ) const
for( USHORT i = 0; i < nSize; i++ )
{
- Color& rCol = pColors[ i ];
- const Point& rPt = rPts[ i ];
- const SalColor aSalCol( mpGraphics->GetPixel( ImplLogicXToDevicePixel( rPt.X() ),
+ Color& rCol = pColors[ i ];
+ const Point& rPt = rPts[ i ];
+ const SalColor aSalCol( mpGraphics->GetPixel( ImplLogicXToDevicePixel( rPt.X() ),
ImplLogicYToDevicePixel( rPt.Y() ) , this) );
rCol.SetRed( SALCOLOR_RED( aSalCol ) );
@@ -1487,7 +1487,7 @@ void OutputDevice::DrawPixel( const Point& rPt, const Color& rColor )
Color aColor( rColor );
- if( mnDrawMode & ( DRAWMODE_BLACKLINE | DRAWMODE_WHITELINE |
+ if( mnDrawMode & ( DRAWMODE_BLACKLINE | DRAWMODE_WHITELINE |
DRAWMODE_GRAYLINE | DRAWMODE_GHOSTEDLINE |
DRAWMODE_SETTINGSLINE ) )
{
@@ -1597,8 +1597,8 @@ void OutputDevice::DrawPixel( const Polygon& rPts, const Color& rColor )
{
if( rColor != COL_TRANSPARENT && ! ImplIsRecordLayout() )
{
- const USHORT nSize = rPts.GetSize();
- Color* pColArray = new Color[ nSize ];
+ const USHORT nSize = rPts.GetSize();
+ Color* pColArray = new Color[ nSize ];
for( USHORT i = 0; i < nSize; i++ )
pColArray[ i ] = rColor;
@@ -1626,12 +1626,12 @@ namespace
// ------------------------------------------------------------------------
Bitmap OutputDevice::ImplBlendWithAlpha( Bitmap aBmp,
- BitmapReadAccess* pP,
- BitmapReadAccess* pA,
+ BitmapReadAccess* pP,
+ BitmapReadAccess* pA,
const Rectangle& aDstRect,
- const sal_Int32 nOffY,
- const sal_Int32 nDstHeight,
- const sal_Int32 nOffX,
+ const sal_Int32 nOffY,
+ const sal_Int32 nDstHeight,
+ const sal_Int32 nOffX,
const sal_Int32 nDstWidth,
const long* pMapX,
const long* pMapY )
@@ -1647,14 +1647,14 @@ Bitmap OutputDevice::ImplBlendWithAlpha( Bitmap aBmp,
mpAlphaVDev->EnableMapMode(FALSE);
Bitmap aAlphaBitmap( mpAlphaVDev->GetBitmap( aDstRect.TopLeft(), aDstRect.GetSize() ) );
- BitmapWriteAccess* pAlphaW = aAlphaBitmap.AcquireWriteAccess();
+ BitmapWriteAccess* pAlphaW = aAlphaBitmap.AcquireWriteAccess();
if( GetBitCount() <= 8 )
{
- Bitmap aDither( aBmp.GetSizePixel(), 8 );
- BitmapColor aIndex( 0 );
- BitmapReadAccess* pB = aBmp.AcquireReadAccess();
- BitmapWriteAccess* pW = aDither.AcquireWriteAccess();
+ Bitmap aDither( aBmp.GetSizePixel(), 8 );
+ BitmapColor aIndex( 0 );
+ BitmapReadAccess* pB = aBmp.AcquireReadAccess();
+ BitmapWriteAccess* pW = aDither.AcquireWriteAccess();
if( pB && pP && pA && pW && pAlphaW )
{
@@ -1665,7 +1665,7 @@ Bitmap OutputDevice::ImplBlendWithAlpha( Bitmap aBmp,
for( nX = 0, nOutX = nOffX; nX < nDstWidth; nX++, nOutX++ )
{
- const long nMapX = pMapX[ nX ];
+ const long nMapX = pMapX[ nX ];
const ULONG nD = nVCLDitherLut[ nModY | ( nOutX & 0x0FL ) ];
aSrcCol = pP->GetColor( nMapY, nMapX );
@@ -1702,12 +1702,12 @@ Bitmap OutputDevice::ImplBlendWithAlpha( Bitmap aBmp,
}
else
{
- BitmapWriteAccess* pB = aBmp.AcquireWriteAccess();
+ BitmapWriteAccess* pB = aBmp.AcquireWriteAccess();
if( pP && pA && pB )
{
for( nY = 0; nY < nDstHeight; nY++ )
{
- const long nMapY = pMapY[ nY ];
+ const long nMapY = pMapY[ nY ];
for( nX = 0; nX < nDstWidth; nX++ )
{
@@ -1749,13 +1749,13 @@ Bitmap OutputDevice::ImplBlendWithAlpha( Bitmap aBmp,
// ------------------------------------------------------------------------
Bitmap OutputDevice::ImplBlend( Bitmap aBmp,
- BitmapReadAccess* pP,
- BitmapReadAccess* pA,
- const sal_Int32 nOffY,
- const sal_Int32 nDstHeight,
- const sal_Int32 nOffX,
+ BitmapReadAccess* pP,
+ BitmapReadAccess* pA,
+ const sal_Int32 nOffY,
+ const sal_Int32 nDstHeight,
+ const sal_Int32 nOffX,
const sal_Int32 nDstWidth,
- const Rectangle& aBmpRect,
+ const Rectangle& aBmpRect,
const Size& aOutSz,
const bool bHMirr,
const bool bVMirr,
@@ -1768,10 +1768,10 @@ Bitmap OutputDevice::ImplBlend( Bitmap aBmp,
if( GetBitCount() <= 8 )
{
- Bitmap aDither( aBmp.GetSizePixel(), 8 );
- BitmapColor aIndex( 0 );
- BitmapReadAccess* pB = aBmp.AcquireReadAccess();
- BitmapWriteAccess* pW = aDither.AcquireWriteAccess();
+ Bitmap aDither( aBmp.GetSizePixel(), 8 );
+ BitmapColor aIndex( 0 );
+ BitmapReadAccess* pB = aBmp.AcquireReadAccess();
+ BitmapWriteAccess* pW = aDither.AcquireWriteAccess();
if( pB && pP && pA && pW )
{
@@ -1782,7 +1782,7 @@ Bitmap OutputDevice::ImplBlend( Bitmap aBmp,
for( nX = 0, nOutX = nOffX; nX < nDstWidth; nX++, nOutX++ )
{
- const long nMapX = pMapX[ nX ];
+ const long nMapX = pMapX[ nX ];
const ULONG nD = nVCLDitherLut[ nModY | ( nOutX & 0x0FL ) ];
aDstCol = pB->GetColor( nY, nX );
@@ -1801,7 +1801,7 @@ Bitmap OutputDevice::ImplBlend( Bitmap aBmp,
}
else
{
- BitmapWriteAccess* pB = aBmp.AcquireWriteAccess();
+ BitmapWriteAccess* pB = aBmp.AcquireWriteAccess();
bool bFastBlend = false;
if( pP && pA && pB )
@@ -1828,9 +1828,9 @@ Bitmap OutputDevice::ImplBlend( Bitmap aBmp,
{
for( nY = 0; nY < nDstHeight; nY++ )
{
- const long nMapY = pMapY[ nY ];
- Scanline pPScan = pP->GetScanline( nMapY );
- Scanline pAScan = pA->GetScanline( nMapY );
+ const long nMapY = pMapY[ nY ];
+ Scanline pPScan = pP->GetScanline( nMapY );
+ Scanline pAScan = pA->GetScanline( nMapY );
for( nX = 0; nX < nDstWidth; nX++ )
{
@@ -1847,14 +1847,14 @@ Bitmap OutputDevice::ImplBlend( Bitmap aBmp,
{
for( nY = 0; nY < nDstHeight; nY++ )
{
- const long nMapY = pMapY[ nY ];
- Scanline pPScan = pP->GetScanline( nMapY );
- Scanline pAScan = pA->GetScanline( nMapY );
+ const long nMapY = pMapY[ nY ];
+ Scanline pPScan = pP->GetScanline( nMapY );
+ Scanline pAScan = pA->GetScanline( nMapY );
for( nX = 0; nX < nDstWidth; nX++ )
{
- const long nMapX = pMapX[ nX ];
- Scanline pTmp = pPScan + nMapX * 3;
+ const long nMapX = pMapX[ nX ];
+ Scanline pTmp = pPScan + nMapX * 3;
aDstCol = pB->GetPixel( nY, nX );
pB->SetPixel( nY, nX, aDstCol.Merge( pTmp[ 2 ], pTmp[ 1 ], pTmp[ 0 ],
@@ -1868,13 +1868,13 @@ Bitmap OutputDevice::ImplBlend( Bitmap aBmp,
{
for( nY = 0; nY < nDstHeight; nY++ )
{
- const long nMapY = pMapY[ nY ];
- Scanline pPScan = pP->GetScanline( nMapY );
- Scanline pAScan = pA->GetScanline( nMapY );
+ const long nMapY = pMapY[ nY ];
+ Scanline pPScan = pP->GetScanline( nMapY );
+ Scanline pAScan = pA->GetScanline( nMapY );
for( nX = 0; nX < nDstWidth; nX++ )
{
- const long nMapX = pMapX[ nX ];
+ const long nMapX = pMapX[ nX ];
Scanline pTmp = pPScan + nMapX * 3;
aDstCol = pB->GetPixel( nY, nX );
@@ -1889,8 +1889,8 @@ Bitmap OutputDevice::ImplBlend( Bitmap aBmp,
{
for( nY = 0; nY < nDstHeight; nY++ )
{
- const long nMapY = pMapY[ nY ];
- Scanline pAScan = pA->GetScanline( nMapY );
+ const long nMapY = pMapY[ nY ];
+ Scanline pAScan = pA->GetScanline( nMapY );
for( nX = 0; nX < nDstWidth; nX++ )
{
@@ -1919,10 +1919,10 @@ void OutputDevice::ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
const Point& rSrcPtPixel, const Size& rSrcSizePixel )
{
const Point aNullPt;
- Point aOutPt( LogicToPixel( rDestPt ) );
+ Point aOutPt( LogicToPixel( rDestPt ) );
Size aOutSz( LogicToPixel( rDestSize ) );
- Rectangle aDstRect( aNullPt, GetOutputSizePixel() );
- const BOOL bHMirr = aOutSz.Width() < 0, bVMirr = aOutSz.Height() < 0;
+ Rectangle aDstRect( aNullPt, GetOutputSizePixel() );
+ const BOOL bHMirr = aOutSz.Width() < 0, bVMirr = aOutSz.Height() < 0;
if( OUTDEV_WINDOW == meOutDevType )
{
@@ -1950,7 +1950,7 @@ void OutputDevice::ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
static const char* pDisableNative = getenv( "SAL_DISABLE_NATIVE_ALPHA");
// #i83087# Naturally, system alpha blending cannot work with
// separate alpha VDev
- if( !mpAlphaVDev && !pDisableNative && !bHMirr && !bVMirr )
+ if( !mpAlphaVDev && !pDisableNative && !bHMirr && !bVMirr )
{
Point aRelPt = aOutPt + Point( mnOutOffX, mnOutOffY );
SalTwoRect aTR = {
@@ -1968,11 +1968,11 @@ void OutputDevice::ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
Rectangle aBmpRect( aNullPt, rBmp.GetSizePixel() );
if( !bNativeAlpha
- && !aBmpRect.Intersection( Rectangle( rSrcPtPixel, rSrcSizePixel ) ).IsEmpty() )
+ && !aBmpRect.Intersection( Rectangle( rSrcPtPixel, rSrcSizePixel ) ).IsEmpty() )
{
- GDIMetaFile* pOldMetaFile = mpMetaFile; mpMetaFile = NULL;
- const BOOL bOldMap = mbMap; mbMap = FALSE;
- Bitmap aBmp( GetBitmap( aDstRect.TopLeft(), aDstRect.GetSize() ) );
+ GDIMetaFile* pOldMetaFile = mpMetaFile; mpMetaFile = NULL;
+ const BOOL bOldMap = mbMap; mbMap = FALSE;
+ Bitmap aBmp( GetBitmap( aDstRect.TopLeft(), aDstRect.GetSize() ) );
// #109044# The generated bitmap need not necessarily be
// of aDstRect dimensions, it's internally clipped to
@@ -1983,24 +1983,24 @@ void OutputDevice::ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
if( aBmp.ImplGetImpBitmap() )
aDstRect.SetSize( aBmp.GetSizePixel() );
- BitmapColor aDstCol;
- const long nSrcWidth = aBmpRect.GetWidth(), nSrcHeight = aBmpRect.GetHeight();
- const long nDstWidth = aDstRect.GetWidth(), nDstHeight = aDstRect.GetHeight();
- const long nOutWidth = aOutSz.Width(), nOutHeight = aOutSz.Height();
+ BitmapColor aDstCol;
+ const long nSrcWidth = aBmpRect.GetWidth(), nSrcHeight = aBmpRect.GetHeight();
+ const long nDstWidth = aDstRect.GetWidth(), nDstHeight = aDstRect.GetHeight();
+ const long nOutWidth = aOutSz.Width(), nOutHeight = aOutSz.Height();
// calculate offset in original bitmap
// in RTL case this is a little more complicated since the contents of the
// bitmap is not mirrored (it never is), however the paint region and bmp region
// are in mirrored coordinates, so the intersection of (aOutPt,aOutSz) with these
// is content wise somewhere else and needs to take mirroring into account
- const long nOffX = IsRTLEnabled()
+ const long nOffX = IsRTLEnabled()
? aOutSz.Width() - aDstRect.GetWidth() - (aDstRect.Left() - aOutPt.X())
: aDstRect.Left() - aOutPt.X(),
nOffY = aDstRect.Top() - aOutPt.Y();
- long nX, nOutX, nY, nOutY;
- long nMirrOffX = 0;
- long nMirrOffY = 0;
- long* pMapX = new long[ nDstWidth ];
- long* pMapY = new long[ nDstHeight ];
+ long nX, nOutX, nY, nOutY;
+ long nMirrOffX = 0;
+ long nMirrOffY = 0;
+ long* pMapX = new long[ nDstWidth ];
+ long* pMapY = new long[ nDstHeight ];
// create horizontal mapping table
if( bHMirr )
@@ -2012,7 +2012,7 @@ void OutputDevice::ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
if( bHMirr )
pMapX[ nX ] = nMirrOffX - pMapX[ nX ];
}
-
+
// create vertical mapping table
if( bVMirr )
nMirrOffY = ( aBmpRect.Top() << 1 ) + nSrcHeight - 1;
@@ -2025,11 +2025,11 @@ void OutputDevice::ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
pMapY[ nY ] = nMirrOffY - pMapY[ nY ];
}
- BitmapReadAccess* pP = ( (Bitmap&) rBmp ).AcquireReadAccess();
- BitmapReadAccess* pA = ( (AlphaMask&) rAlpha ).AcquireReadAccess();
+ BitmapReadAccess* pP = ( (Bitmap&) rBmp ).AcquireReadAccess();
+ BitmapReadAccess* pA = ( (AlphaMask&) rAlpha ).AcquireReadAccess();
DBG_ASSERT( pA->GetScanlineFormat() == BMP_FORMAT_8BIT_PAL ||
- pA->GetScanlineFormat() == BMP_FORMAT_8BIT_TC_MASK,
+ pA->GetScanlineFormat() == BMP_FORMAT_8BIT_TC_MASK,
"OutputDevice::ImplDrawAlpha(): non-8bit alpha no longer supported!" );
// #i38887# reading from screen may sometimes fail
@@ -2062,13 +2062,13 @@ void OutputDevice::ImplDrawAlpha( const Bitmap& rBmp, const AlphaMask& rAlpha,
if( mpAlphaVDev )
mpAlphaVDev = NULL;
- DrawBitmap( aDstRect.TopLeft(),
+ DrawBitmap( aDstRect.TopLeft(),
aTmp );
// #110958# Enable alpha VDev again
mpAlphaVDev = pOldVDev;
}
-
+
( (Bitmap&) rBmp ).ReleaseAccess( pP );
( (AlphaMask&) rAlpha ).ReleaseAccess( pA );
@@ -2086,17 +2086,17 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel )
{
- Point aPt;
- Point aDestPt( LogicToPixel( rDestPt ) );
- Size aDestSz( LogicToPixel( rDestSize ) );
- Rectangle aSrcRect( rSrcPtPixel, rSrcSizePixel );
+ Point aPt;
+ Point aDestPt( LogicToPixel( rDestPt ) );
+ Size aDestSz( LogicToPixel( rDestSize ) );
+ Rectangle aSrcRect( rSrcPtPixel, rSrcSizePixel );
aSrcRect.Justify();
if( !rBmp.IsEmpty() && aSrcRect.GetWidth() && aSrcRect.GetHeight() && aDestSz.Width() && aDestSz.Height() )
{
- Bitmap aPaint( rBmp ), aMask( rMask );
- ULONG nMirrFlags = 0UL;
+ Bitmap aPaint( rBmp ), aMask( rMask );
+ ULONG nMirrFlags = 0UL;
if( aMask.GetBitCount() > 1 )
aMask.Convert( BMP_CONVERSION_1BIT_THRESHOLD );
@@ -2139,11 +2139,11 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask
}
// do painting
- const long nSrcWidth = aSrcRect.GetWidth(), nSrcHeight = aSrcRect.GetHeight();
- long nX, nY, nWorkX, nWorkY, nWorkWidth, nWorkHeight;
- long* pMapX = new long[ nSrcWidth + 1 ];
- long* pMapY = new long[ nSrcHeight + 1 ];
- const BOOL bOldMap = mbMap;
+ const long nSrcWidth = aSrcRect.GetWidth(), nSrcHeight = aSrcRect.GetHeight();
+ long nX, nY, nWorkX, nWorkY, nWorkWidth, nWorkHeight;
+ long* pMapX = new long[ nSrcWidth + 1 ];
+ long* pMapY = new long[ nSrcHeight + 1 ];
+ const BOOL bOldMap = mbMap;
mbMap = FALSE;
@@ -2153,10 +2153,10 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask
for( nY = 0L; nY <= nSrcHeight; nY++ )
pMapY[ nY ] = aDestPt.Y() + FRound( (double) aDestSz.Height() * nY / nSrcHeight );
-
+
// walk through all rectangles of mask
Region aWorkRgn( aMask.CreateRegion( COL_BLACK, Rectangle( Point(), aMask.GetSizePixel() ) ) );
- ImplRegionInfo aInfo;
+ ImplRegionInfo aInfo;
BOOL bRgnRect = aWorkRgn.ImplGetFirstRect( aInfo, nWorkX, nWorkY, nWorkWidth, nWorkHeight );
while( bRgnRect )
@@ -2165,7 +2165,7 @@ void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask
const Rectangle aBandRect( Point( nWorkX, nWorkY ), Size( nWorkWidth, nWorkHeight ) );
const Point aMapPt( pMapX[ nWorkX ], pMapY[ nWorkY ] );
const Size aMapSz( pMapX[ nWorkX + nWorkWidth ] - aMapPt.X(), pMapY[ nWorkY + nWorkHeight ] - aMapPt.Y() );
-
+
aBandBmp.Crop( aBandRect );
ImplDrawBitmap( aMapPt, aMapSz, Point(), aBandBmp.GetSizePixel(), aBandBmp, META_BMPSCALEPART_ACTION );
bRgnRect = aWorkRgn.ImplGetNextRect( aInfo, nWorkX, nWorkY, nWorkWidth, nWorkHeight );
@@ -2184,17 +2184,17 @@ void OutputDevice::ImplPrintMask( const Bitmap& rMask, const Color& rMaskColor,
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel )
{
- Point aPt;
- Point aDestPt( LogicToPixel( rDestPt ) );
- Size aDestSz( LogicToPixel( rDestSize ) );
- Rectangle aSrcRect( rSrcPtPixel, rSrcSizePixel );
+ Point aPt;
+ Point aDestPt( LogicToPixel( rDestPt ) );
+ Size aDestSz( LogicToPixel( rDestSize ) );
+ Rectangle aSrcRect( rSrcPtPixel, rSrcSizePixel );
aSrcRect.Justify();
if( !rMask.IsEmpty() && aSrcRect.GetWidth() && aSrcRect.GetHeight() && aDestSz.Width() && aDestSz.Height() )
{
- Bitmap aMask( rMask );
- ULONG nMirrFlags = 0UL;
+ Bitmap aMask( rMask );
+ ULONG nMirrFlags = 0UL;
if( aMask.GetBitCount() > 1 )
aMask.Convert( BMP_CONVERSION_1BIT_THRESHOLD );
@@ -2224,12 +2224,12 @@ void OutputDevice::ImplPrintMask( const Bitmap& rMask, const Color& rMaskColor,
aMask.Mirror( nMirrFlags );
// do painting
- const long nSrcWidth = aSrcRect.GetWidth(), nSrcHeight = aSrcRect.GetHeight();
- long nX, nY, nWorkX, nWorkY, nWorkWidth, nWorkHeight;
- long* pMapX = new long[ nSrcWidth + 1 ];
- long* pMapY = new long[ nSrcHeight + 1 ];
+ const long nSrcWidth = aSrcRect.GetWidth(), nSrcHeight = aSrcRect.GetHeight();
+ long nX, nY, nWorkX, nWorkY, nWorkWidth, nWorkHeight;
+ long* pMapX = new long[ nSrcWidth + 1 ];
+ long* pMapY = new long[ nSrcHeight + 1 ];
GDIMetaFile* pOldMetaFile = mpMetaFile;
- const BOOL bOldMap = mbMap;
+ const BOOL bOldMap = mbMap;
mpMetaFile = NULL;
mbMap = FALSE;
@@ -2245,10 +2245,10 @@ void OutputDevice::ImplPrintMask( const Bitmap& rMask, const Color& rMaskColor,
for( nY = 0L; nY <= nSrcHeight; nY++ )
pMapY[ nY ] = aDestPt.Y() + FRound( (double) aDestSz.Height() * nY / nSrcHeight );
-
+
// walk through all rectangles of mask
Region aWorkRgn( aMask.CreateRegion( COL_BLACK, Rectangle( Point(), aMask.GetSizePixel() ) ) );
- ImplRegionInfo aInfo;
+ ImplRegionInfo aInfo;
BOOL bRgnRect = aWorkRgn.ImplGetFirstRect( aInfo, nWorkX, nWorkY, nWorkWidth, nWorkHeight );
while( bRgnRect )
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 21ce054e7df5..96bfab559360 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -430,7 +430,7 @@ bool ImplDirectFontSubstitution::GetFontSubstitute( int nIndex,
String& rFontName, String& rSubstFontName, USHORT& rFlags ) const
{
FontSubstList::const_iterator it = maFontSubstList.begin();
- for( int nCount = 0; (it != maFontSubstList.end()) && (nCount++ != nIndex); ++it ) ;
+ for( int nCount = 0; (it != maFontSubstList.end()) && (nCount++ != nIndex); ++it ) ;
if( it == maFontSubstList.end() )
return false;
@@ -558,7 +558,7 @@ Font OutputDevice::GetDefaultFont( USHORT nType, LanguageType eLang,
case DEFAULTFONT_CJK_SPREADSHEET:
case DEFAULTFONT_CJK_HEADING:
case DEFAULTFONT_CJK_DISPLAY:
- aFont.SetFamily( FAMILY_SYSTEM ); // don't care, but don't use font subst config later...
+ aFont.SetFamily( FAMILY_SYSTEM ); // don't care, but don't use font subst config later...
break;
case DEFAULTFONT_CTL_TEXT:
@@ -566,7 +566,7 @@ Font OutputDevice::GetDefaultFont( USHORT nType, LanguageType eLang,
case DEFAULTFONT_CTL_SPREADSHEET:
case DEFAULTFONT_CTL_HEADING:
case DEFAULTFONT_CTL_DISPLAY:
- aFont.SetFamily( FAMILY_SYSTEM ); // don't care, but don't use font subst config later...
+ aFont.SetFamily( FAMILY_SYSTEM ); // don't care, but don't use font subst config later...
break;
}
@@ -654,35 +654,35 @@ Font OutputDevice::GetDefaultFont( USHORT nType, LanguageType eLang,
const char* s = "DEFAULTFONT_SANS_UNKNOWN";
switch ( nType )
{
- case DEFAULTFONT_SANS_UNICODE: s = "DEFAULTFONT_SANS_UNICODE"; break;
- case DEFAULTFONT_UI_SANS: s = "DEFAULTFONT_UI_SANS"; break;
+ case DEFAULTFONT_SANS_UNICODE: s = "DEFAULTFONT_SANS_UNICODE"; break;
+ case DEFAULTFONT_UI_SANS: s = "DEFAULTFONT_UI_SANS"; break;
- case DEFAULTFONT_SANS: s = "DEFAULTFONT_SANS"; break;
- case DEFAULTFONT_LATIN_HEADING: s = "DEFAULTFONT_LATIN_HEADING"; break;
- case DEFAULTFONT_LATIN_SPREADSHEET: s = "DEFAULTFONT_LATIN_SPREADSHEET"; break;
- case DEFAULTFONT_LATIN_DISPLAY: s = "DEFAULTFONT_LATIN_DISPLAY"; break;
+ case DEFAULTFONT_SANS: s = "DEFAULTFONT_SANS"; break;
+ case DEFAULTFONT_LATIN_HEADING: s = "DEFAULTFONT_LATIN_HEADING"; break;
+ case DEFAULTFONT_LATIN_SPREADSHEET: s = "DEFAULTFONT_LATIN_SPREADSHEET"; break;
+ case DEFAULTFONT_LATIN_DISPLAY: s = "DEFAULTFONT_LATIN_DISPLAY"; break;
- case DEFAULTFONT_SERIF: s = "DEFAULTFONT_SERIF"; break;
- case DEFAULTFONT_LATIN_TEXT: s = "DEFAULTFONT_LATIN_TEXT"; break;
- case DEFAULTFONT_LATIN_PRESENTATION: s = "DEFAULTFONT_LATIN_PRESENTATION"; break;
+ case DEFAULTFONT_SERIF: s = "DEFAULTFONT_SERIF"; break;
+ case DEFAULTFONT_LATIN_TEXT: s = "DEFAULTFONT_LATIN_TEXT"; break;
+ case DEFAULTFONT_LATIN_PRESENTATION: s = "DEFAULTFONT_LATIN_PRESENTATION"; break;
- case DEFAULTFONT_FIXED: s = "DEFAULTFONT_FIXED"; break;
- case DEFAULTFONT_LATIN_FIXED: s = "DEFAULTFONT_LATIN_FIXED"; break;
- case DEFAULTFONT_UI_FIXED: s = "DEFAULTFONT_UI_FIXED"; break;
+ case DEFAULTFONT_FIXED: s = "DEFAULTFONT_FIXED"; break;
+ case DEFAULTFONT_LATIN_FIXED: s = "DEFAULTFONT_LATIN_FIXED"; break;
+ case DEFAULTFONT_UI_FIXED: s = "DEFAULTFONT_UI_FIXED"; break;
- case DEFAULTFONT_SYMBOL: s = "DEFAULTFONT_SYMBOL"; break;
+ case DEFAULTFONT_SYMBOL: s = "DEFAULTFONT_SYMBOL"; break;
- case DEFAULTFONT_CJK_TEXT: s = "DEFAULTFONT_CJK_TEXT"; break;
- case DEFAULTFONT_CJK_PRESENTATION: s = "DEFAULTFONT_CJK_PRESENTATION"; break;
- case DEFAULTFONT_CJK_SPREADSHEET: s = "DEFAULTFONT_CJK_SPREADSHEET"; break;
- case DEFAULTFONT_CJK_HEADING: s = "DEFAULTFONT_CJK_HEADING"; break;
- case DEFAULTFONT_CJK_DISPLAY: s = "DEFAULTFONT_CJK_DISPLAY"; break;
+ case DEFAULTFONT_CJK_TEXT: s = "DEFAULTFONT_CJK_TEXT"; break;
+ case DEFAULTFONT_CJK_PRESENTATION: s = "DEFAULTFONT_CJK_PRESENTATION"; break;
+ case DEFAULTFONT_CJK_SPREADSHEET: s = "DEFAULTFONT_CJK_SPREADSHEET"; break;
+ case DEFAULTFONT_CJK_HEADING: s = "DEFAULTFONT_CJK_HEADING"; break;
+ case DEFAULTFONT_CJK_DISPLAY: s = "DEFAULTFONT_CJK_DISPLAY"; break;
- case DEFAULTFONT_CTL_TEXT: s = "DEFAULTFONT_CTL_TEXT"; break;
- case DEFAULTFONT_CTL_PRESENTATION: s = "DEFAULTFONT_CTL_PRESENTATION"; break;
- case DEFAULTFONT_CTL_SPREADSHEET: s = "DEFAULTFONT_CTL_SPREADSHEET"; break;
- case DEFAULTFONT_CTL_HEADING: s = "DEFAULTFONT_CTL_HEADING"; break;
- case DEFAULTFONT_CTL_DISPLAY: s = "DEFAULTFONT_CTL_DISPLAY"; break;
+ case DEFAULTFONT_CTL_TEXT: s = "DEFAULTFONT_CTL_TEXT"; break;
+ case DEFAULTFONT_CTL_PRESENTATION: s = "DEFAULTFONT_CTL_PRESENTATION"; break;
+ case DEFAULTFONT_CTL_SPREADSHEET: s = "DEFAULTFONT_CTL_SPREADSHEET"; break;
+ case DEFAULTFONT_CTL_HEADING: s = "DEFAULTFONT_CTL_HEADING"; break;
+ case DEFAULTFONT_CTL_DISPLAY: s = "DEFAULTFONT_CTL_DISPLAY"; break;
}
fprintf( stderr, " OutputDevice::GetDefaultFont() Type=\"%s\" lang=%d flags=%ld FontName=\"%s\"\n",
s, eLang, nFlags,
@@ -3266,7 +3266,7 @@ ImplFontMetricData::ImplFontMetricData( const ImplFontSelectData& rFontSelData )
mnWidth = rFontSelData.mnWidth;
mnOrientation = sal::static_int_cast<short>(rFontSelData.mnOrientation);
- // intialize the used font name
+ // intialize the used font name
if( rFontSelData.mpFontData )
{
maName = rFontSelData.mpFontData->maName;
@@ -3283,7 +3283,7 @@ ImplFontMetricData::ImplFontMetricData( const ImplFontSelectData& rFontSelData )
mbKernableFont = false;
}
- // reset metrics that are usually measured for the font instance
+ // reset metrics that are usually measured for the font instance
mnAscent = 0;
mnDescent = 0;
mnIntLeading = 0;
@@ -3989,7 +3989,7 @@ void OutputDevice::ImplDrawStrikeoutChar( long nBaseX, long nBaseY,
SalLayout* pLayout = ImplLayout( aStrikeoutTest, 0, nTestStrLen );
if( pLayout )
{
- nStrikeoutWidth = (pLayout->GetTextWidth() +nTestStrLen/2) / (nTestStrLen * pLayout->GetUnitsPerPixel());
+ nStrikeoutWidth = (pLayout->GetTextWidth() +nTestStrLen/2) / (nTestStrLen * pLayout->GetUnitsPerPixel());
pLayout->Release();
}
if( nStrikeoutWidth <= 0 ) // sanity check
@@ -4743,7 +4743,7 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
uno::Reference < i18n::XBreakIterator > xBI;
// get service provider
uno::Reference< lang::XMultiServiceFactory > xSMgr( unohelper::GetMultiServiceFactory() );
-
+
uno::Reference< linguistic2::XHyphenator > xHyph;
if( xSMgr.is() )
{
@@ -4753,7 +4753,7 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
xHyph = xLinguMgr->getHyphenator();
}
}
-
+
i18n::LineBreakHyphenationOptions aHyphOptions( xHyph, uno::Sequence <beans::PropertyValue>(), 1 );
i18n::LineBreakUserOptions aUserOptions;
@@ -4795,8 +4795,8 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
sal_Unicode cAlternateReplChar = 0;
sal_Unicode cAlternateExtraChar = 0;
i18n::Boundary aBoundary = xBI->getWordBoundary( aText, nBreakPos, rDefLocale, ::com::sun::star::i18n::WordType::DICTIONARY_WORD, sal_True );
- // sal_uInt16 nWordStart = nBreakPos;
- // sal_uInt16 nBreakPos_OLD = nBreakPos;
+ // sal_uInt16 nWordStart = nBreakPos;
+ // sal_uInt16 nBreakPos_OLD = nBreakPos;
sal_uInt16 nWordStart = nPos;
sal_uInt16 nWordEnd = (USHORT) aBoundary.endPos;
DBG_ASSERT( nWordEnd > nWordStart, "ImpBreakLine: Start >= End?" );
@@ -4807,7 +4807,7 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
// #104415# May happen, because getLineBreak may differ from getWordBoudary with DICTIONARY_WORD
// DBG_ASSERT( nWordEnd >= nMaxBreakPos, "Hyph: Break?" );
String aWord( aText, nWordStart, nWordLen );
- sal_uInt16 nMinTrail = static_cast<sal_uInt16>(nWordEnd-nSoftBreak+1); //+1: Vor dem angeknacksten Buchstaben
+ sal_uInt16 nMinTrail = static_cast<sal_uInt16>(nWordEnd-nSoftBreak+1); //+1: Vor dem angeknacksten Buchstaben
uno::Reference< linguistic2::XHyphenatedWord > xHyphWord;
if (xHyph.is())
xHyphWord = xHyph->hyphenate( aWord, rDefLocale, aWord.Len() - nMinTrail, uno::Sequence< beans::PropertyValue >() );
@@ -4896,7 +4896,7 @@ long OutputDevice::ImplGetTextLines( ImplMultiTextLineInfo& rLineInfo,
nW = _rLayout.GetTextWidth( rStr, nPos, nSpacePos-nPos );
}
} while( nW > nWidth );
-
+
if( nSpacePos != STRING_NOTFOUND )
{
nBreakPos = nSpacePos;
@@ -6069,7 +6069,7 @@ SalLayout* OutputDevice::ImplGlyphFallbackLayout( SalLayout* pSalLayout, ImplLay
for( int nFallbackLevel = 1; nFallbackLevel < MAX_FALLBACK; ++nFallbackLevel )
{
// find a font family suited for glyph fallback
-#ifndef FONTFALLBACK_HOOKS_DISABLED
+#ifndef FONTFALLBACK_HOOKS_DISABLED
// GetGlyphFallbackFont() needs a valid aFontSelData.mpFontEntry
// if the system-specific glyph fallback is active
aFontSelData.mpFontEntry = mpFontEntry; // reset the fontentry to base-level
@@ -6291,11 +6291,11 @@ void OutputDevice::ImplDrawText( OutputDevice& rTargetDevice, const Rectangle& r
// but it may be totally wrong. the background color
// was typically already reset
aCol = rStyleSettings.GetFaceColor();
-
+
bHighContrastBlack = aCol.IsDark();
bHighContrastWhite = aCol.IsBright();
}
-
+
aOldTextColor = rTargetDevice.GetTextColor();
if ( rTargetDevice.IsTextFillColor() )
{
@@ -6977,7 +6977,7 @@ void OutputDevice::DrawCtrlText( const Point& rPos, const XubString& rStr,
bHighContrastWhite = aCol.IsBright();
}
}
-
+
aOldTextColor = GetTextColor();
if ( IsTextFillColor() )
{
@@ -7292,7 +7292,7 @@ SystemFontData OutputDevice::GetSysFontData(int nFallbacklevel) const
if (!mpGraphics) ImplGetGraphics();
if (mpGraphics) aSysFontData = mpGraphics->GetSysFontData(nFallbacklevel);
-
+
return aSysFontData;
}
@@ -7309,7 +7309,7 @@ SystemFontData OutputDevice::GetSysFontData(int nFallbacklevel) const
*
* Export finalized glyph layout data as platform independent SystemTextLayoutData
* (see vcl/inc/vcl/sysdata.hxx)
- *
+ *
* Only parameters rStartPt and rStr are mandatory, the rest is optional
* (default values will be used)
*
@@ -7324,18 +7324,18 @@ SystemTextLayoutData OutputDevice::GetSysTextLayoutData(const Point& rStartPt, c
SystemTextLayoutData aSysLayoutData;
aSysLayoutData.nSize = sizeof(aSysLayoutData);
aSysLayoutData.rGlyphData.reserve( 256 );
-
+
if ( mpMetaFile ) {
if (pDXAry)
mpMetaFile->AddAction( new MetaTextArrayAction( rStartPt, rStr, pDXAry, nIndex, nLen ) );
else
mpMetaFile->AddAction( new MetaTextAction( rStartPt, rStr, nIndex, nLen ) );
}
-
+
if ( !IsDeviceOutputNecessary() ) return aSysLayoutData;
-
+
SalLayout* rLayout = ImplLayout( rStr, nIndex, nLen, rStartPt, 0, pDXAry, true );
-
+
// setup glyphs
Point aPos;
sal_GlyphId aGlyphId;
@@ -7343,7 +7343,7 @@ SystemTextLayoutData OutputDevice::GetSysTextLayoutData(const Point& rStartPt, c
{
// NOTE: Windows backend is producing unicode chars (ucs4), so on windows,
// ETO_GLYPH_INDEX is unusable, unless extra glyph conversion is made.
-
+
SystemGlyphData aGlyph;
aGlyph.index = static_cast<unsigned long> (aGlyphId & GF_IDXMASK);
aGlyph.x = aPos.X();
@@ -7355,7 +7355,7 @@ SystemTextLayoutData OutputDevice::GetSysTextLayoutData(const Point& rStartPt, c
// Get font data
aSysLayoutData.orientation = rLayout->GetOrientation();
-
+
rLayout->Release();
return aSysLayoutData;
@@ -7388,9 +7388,9 @@ long OutputDevice::GetMinKashida( const Font& rFont ) const
}
// -----------------------------------------------------------------------
-xub_StrLen OutputDevice::ValidateKashidas ( const String& rTxt,
+xub_StrLen OutputDevice::ValidateKashidas ( const String& rTxt,
xub_StrLen nIdx, xub_StrLen nLen,
- xub_StrLen nKashCount,
+ xub_StrLen nKashCount,
const xub_StrLen* pKashidaPos,
xub_StrLen* pKashidaPosDropped ) const
{
@@ -7874,7 +7874,7 @@ BOOL OutputDevice::GetTextOutlines( ::basegfx::B2DPolyPolygonVector& rVector,
// ignore "empty" glyphs:
if( aPolyPoly.Count() > 0 )
{
- // convert to B2DPolyPolygon
+ // convert to B2DPolyPolygon
// TODO: get rid of intermediate tool's PolyPolygon
::basegfx::B2DPolyPolygon aB2DPolyPoly = aPolyPoly.getB2DPolyPolygon();
::basegfx::B2DHomMatrix aMatrix;
@@ -7971,7 +7971,7 @@ BOOL OutputDevice::GetFontCharMap( FontCharMap& rFontCharMap ) const
for( i = nUsedItems; --i >= 0; )
if( pFontData == aCache[i].mpFontData )
break;
- if( i >= 0 ) // found in cache
+ if( i >= 0 ) // found in cache
{
rFontCharMap.Reset( aCache[i].maCharMap.mpImpl );
}
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index 3a1644ebf7aa..e550225223d4 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,8 +57,8 @@
// - Defines -
// -----------
-#define HATCH_MAXPOINTS 1024
-#define GRADIENT_DEFAULT_STEPCOUNT 0
+#define HATCH_MAXPOINTS 1024
+#define GRADIENT_DEFAULT_STEPCOUNT 0
// ----------------
// - Cmp-Function -
@@ -113,9 +113,9 @@ void OutputDevice::ImplDrawPolyPolygon( const PolyPolygon& rPolyPoly, const Poly
if( pPolyPoly->Count() == 1 )
{
- const Polygon rPoly = pPolyPoly->GetObject( 0 );
- USHORT nSize = rPoly.GetSize();
-
+ const Polygon rPoly = pPolyPoly->GetObject( 0 );
+ USHORT nSize = rPoly.GetSize();
+
if( nSize >= 2 )
{
const SalPoint* pPtAry = (const SalPoint*)rPoly.GetConstPointAry();
@@ -124,17 +124,17 @@ void OutputDevice::ImplDrawPolyPolygon( const PolyPolygon& rPolyPoly, const Poly
}
else if( pPolyPoly->Count() )
{
- USHORT nCount = pPolyPoly->Count();
- sal_uInt32* pPointAry = new sal_uInt32[nCount];
- PCONSTSALPOINT* pPointAryAry = new PCONSTSALPOINT[nCount];
- USHORT i = 0;
+ USHORT nCount = pPolyPoly->Count();
+ sal_uInt32* pPointAry = new sal_uInt32[nCount];
+ PCONSTSALPOINT* pPointAryAry = new PCONSTSALPOINT[nCount];
+ USHORT i = 0;
do
{
- const Polygon& rPoly = pPolyPoly->GetObject( i );
- USHORT nSize = rPoly.GetSize();
+ const Polygon& rPoly = pPolyPoly->GetObject( i );
+ USHORT nSize = rPoly.GetSize();
if ( nSize )
{
- pPointAry[i] = nSize;
+ pPointAry[i] = nSize;
pPointAryAry[i] = (PCONSTSALPOINT)rPoly.GetConstPointAry();
i++;
}
@@ -147,7 +147,7 @@ void OutputDevice::ImplDrawPolyPolygon( const PolyPolygon& rPolyPoly, const Poly
mpGraphics->DrawPolygon( *pPointAry, *pPointAryAry, this );
else
mpGraphics->DrawPolyPolygon( nCount, pPointAry, pPointAryAry, this );
-
+
delete[] pPointAry;
delete[] pPointAryAry;
}
@@ -180,26 +180,26 @@ void OutputDevice::ImplDrawLinearGradient( const Rectangle& rRect,
aRect.Top()--;
aRect.Right()++;
aRect.Bottom()++;
- USHORT nAngle = rGradient.GetAngle() % 3600;
- double fAngle = nAngle * F_PI1800;
- double fWidth = aRect.GetWidth();
- double fHeight = aRect.GetHeight();
- double fDX = fWidth * fabs( cos( fAngle ) ) +
+ USHORT nAngle = rGradient.GetAngle() % 3600;
+ double fAngle = nAngle * F_PI1800;
+ double fWidth = aRect.GetWidth();
+ double fHeight = aRect.GetHeight();
+ double fDX = fWidth * fabs( cos( fAngle ) ) +
fHeight * fabs( sin( fAngle ) );
- double fDY = fHeight * fabs( cos( fAngle ) ) +
+ double fDY = fHeight * fabs( cos( fAngle ) ) +
fWidth * fabs( sin( fAngle ) );
- fDX = (fDX - fWidth) * 0.5 + 0.5;
- fDY = (fDY - fHeight) * 0.5 + 0.5;
+ fDX = (fDX - fWidth) * 0.5 + 0.5;
+ fDY = (fDY - fHeight) * 0.5 + 0.5;
aRect.Left() -= (long)fDX;
aRect.Right() += (long)fDX;
aRect.Top() -= (long)fDY;
aRect.Bottom() += (long)fDY;
// Rand berechnen und Rechteck neu setzen
- Point aCenter = rRect.Center();
- Rectangle aFullRect = aRect;
- long nBorder = (long)rGradient.GetBorder() * aRect.GetHeight() / 100;
- BOOL bLinear;
+ Point aCenter = rRect.Center();
+ Rectangle aFullRect = aRect;
+ long nBorder = (long)rGradient.GetBorder() * aRect.GetHeight() / 100;
+ BOOL bLinear;
// Rand berechnen und Rechteck neu setzen fuer linearen Farbverlauf
if ( rGradient.GetStyle() == GRADIENT_LINEAR )
@@ -224,35 +224,35 @@ void OutputDevice::ImplDrawLinearGradient( const Rectangle& rRect,
// Intensitaeten von Start- und Endfarbe ggf. aendern und
// Farbschrittweiten berechnen
- long nFactor;
- Color aStartCol = rGradient.GetStartColor();
- Color aEndCol = rGradient.GetEndColor();
- long nStartRed = aStartCol.GetRed();
- long nStartGreen = aStartCol.GetGreen();
- long nStartBlue = aStartCol.GetBlue();
- long nEndRed = aEndCol.GetRed();
- long nEndGreen = aEndCol.GetGreen();
- long nEndBlue = aEndCol.GetBlue();
- nFactor = rGradient.GetStartIntensity();
- nStartRed = (nStartRed * nFactor) / 100;
+ long nFactor;
+ Color aStartCol = rGradient.GetStartColor();
+ Color aEndCol = rGradient.GetEndColor();
+ long nStartRed = aStartCol.GetRed();
+ long nStartGreen = aStartCol.GetGreen();
+ long nStartBlue = aStartCol.GetBlue();
+ long nEndRed = aEndCol.GetRed();
+ long nEndGreen = aEndCol.GetGreen();
+ long nEndBlue = aEndCol.GetBlue();
+ nFactor = rGradient.GetStartIntensity();
+ nStartRed = (nStartRed * nFactor) / 100;
nStartGreen = (nStartGreen * nFactor) / 100;
- nStartBlue = (nStartBlue * nFactor) / 100;
- nFactor = rGradient.GetEndIntensity();
- nEndRed = (nEndRed * nFactor) / 100;
- nEndGreen = (nEndGreen * nFactor) / 100;
- nEndBlue = (nEndBlue * nFactor) / 100;
- long nRedSteps = nEndRed - nStartRed;
- long nGreenSteps = nEndGreen - nStartGreen;
- long nBlueSteps = nEndBlue - nStartBlue;
+ nStartBlue = (nStartBlue * nFactor) / 100;
+ nFactor = rGradient.GetEndIntensity();
+ nEndRed = (nEndRed * nFactor) / 100;
+ nEndGreen = (nEndGreen * nFactor) / 100;
+ nEndBlue = (nEndBlue * nFactor) / 100;
+ long nRedSteps = nEndRed - nStartRed;
+ long nGreenSteps = nEndGreen - nStartGreen;
+ long nBlueSteps = nEndBlue - nStartBlue;
long nStepCount = rGradient.GetSteps();
// Bei nicht linearen Farbverlaeufen haben wir nur die halben Steps
// pro Farbe
if ( !bLinear )
{
- nRedSteps <<= 1;
+ nRedSteps <<= 1;
nGreenSteps <<= 1;
- nBlueSteps <<= 1;
+ nBlueSteps <<= 1;
}
// Anzahl der Schritte berechnen, falls nichts uebergeben wurde
@@ -298,29 +298,29 @@ void OutputDevice::ImplDrawLinearGradient( const Rectangle& rRect,
double fScanInc = (double)aRect.GetHeight() / (double)nSteps;
// Startfarbe berechnen und setzen
- UINT8 nRed;
- UINT8 nGreen;
- UINT8 nBlue;
- long nSteps2;
- long nStepsHalf = 0;
+ UINT8 nRed;
+ UINT8 nGreen;
+ UINT8 nBlue;
+ long nSteps2;
+ long nStepsHalf = 0;
if ( bLinear )
{
// Um 1 erhoeht, um die Border innerhalb der Schleife
// zeichnen zu koennen
- nSteps2 = nSteps + 1;
- nRed = (UINT8)nStartRed;
- nGreen = (UINT8)nStartGreen;
- nBlue = (UINT8)nStartBlue;
+ nSteps2 = nSteps + 1;
+ nRed = (UINT8)nStartRed;
+ nGreen = (UINT8)nStartGreen;
+ nBlue = (UINT8)nStartBlue;
}
else
{
// Um 2 erhoeht, um die Border innerhalb der Schleife
// zeichnen zu koennen
- nSteps2 = nSteps + 2;
- nRed = (UINT8)nEndRed;
- nGreen = (UINT8)nEndGreen;
- nBlue = (UINT8)nEndBlue;
- nStepsHalf = nSteps >> 1;
+ nSteps2 = nSteps + 2;
+ nRed = (UINT8)nEndRed;
+ nGreen = (UINT8)nEndGreen;
+ nBlue = (UINT8)nEndBlue;
+ nStepsHalf = nSteps >> 1;
}
if ( bMtf )
@@ -329,8 +329,8 @@ void OutputDevice::ImplDrawLinearGradient( const Rectangle& rRect,
mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) );
// Startpolygon erzeugen (== Borderpolygon)
- Polygon aPoly( 4 );
- Polygon aTempPoly( 2 );
+ Polygon aPoly( 4 );
+ Polygon aTempPoly( 2 );
aPoly[0] = aFullRect.TopLeft();
aPoly[1] = aFullRect.TopRight();
aPoly[2] = aRect.TopRight();
@@ -371,9 +371,9 @@ void OutputDevice::ImplDrawLinearGradient( const Rectangle& rRect,
// fuer lineare FV
if ( bLinear )
{
- nRed = ImplGetGradientColorValue( nStartRed+((nRedSteps*i)/nSteps2) );
- nGreen = ImplGetGradientColorValue( nStartGreen+((nGreenSteps*i)/nSteps2) );
- nBlue = ImplGetGradientColorValue( nStartBlue+((nBlueSteps*i)/nSteps2) );
+ nRed = ImplGetGradientColorValue( nStartRed+((nRedSteps*i)/nSteps2) );
+ nGreen = ImplGetGradientColorValue( nStartGreen+((nGreenSteps*i)/nSteps2) );
+ nBlue = ImplGetGradientColorValue( nStartBlue+((nBlueSteps*i)/nSteps2) );
}
// fuer radiale FV
else
@@ -385,25 +385,25 @@ void OutputDevice::ImplDrawLinearGradient( const Rectangle& rRect,
// on.
if ( i >= nSteps )
{
- nRed = (UINT8)nEndRed;
- nGreen = (UINT8)nEndGreen;
- nBlue = (UINT8)nEndBlue;
+ nRed = (UINT8)nEndRed;
+ nGreen = (UINT8)nEndGreen;
+ nBlue = (UINT8)nEndBlue;
}
else
{
if ( i <= nStepsHalf )
{
- nRed = ImplGetGradientColorValue( nEndRed-((nRedSteps*i)/nSteps2) );
- nGreen = ImplGetGradientColorValue( nEndGreen-((nGreenSteps*i)/nSteps2) );
- nBlue = ImplGetGradientColorValue( nEndBlue-((nBlueSteps*i)/nSteps2) );
+ nRed = ImplGetGradientColorValue( nEndRed-((nRedSteps*i)/nSteps2) );
+ nGreen = ImplGetGradientColorValue( nEndGreen-((nGreenSteps*i)/nSteps2) );
+ nBlue = ImplGetGradientColorValue( nEndBlue-((nBlueSteps*i)/nSteps2) );
}
// genau die Mitte und hoeher
else
{
long i2 = i - nStepsHalf;
- nRed = ImplGetGradientColorValue( nStartRed+((nRedSteps*i2)/nSteps2) );
- nGreen = ImplGetGradientColorValue( nStartGreen+((nGreenSteps*i2)/nSteps2) );
- nBlue = ImplGetGradientColorValue( nStartBlue+((nBlueSteps*i2)/nSteps2) );
+ nRed = ImplGetGradientColorValue( nStartRed+((nRedSteps*i2)/nSteps2) );
+ nGreen = ImplGetGradientColorValue( nStartGreen+((nGreenSteps*i2)/nSteps2) );
+ nBlue = ImplGetGradientColorValue( nStartBlue+((nBlueSteps*i2)/nSteps2) );
}
}
}
@@ -430,21 +430,21 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
// Virtuelle Device werden auch ausgeklammert, da einige Treiber
// ansonsten zu langsam sind
PolyPolygon* pPolyPoly;
- Rectangle aRect( rRect );
- Color aStartCol( rGradient.GetStartColor() );
- Color aEndCol( rGradient.GetEndColor() );
- long nStartRed = ( (long) aStartCol.GetRed() * rGradient.GetStartIntensity() ) / 100;
- long nStartGreen = ( (long) aStartCol.GetGreen() * rGradient.GetStartIntensity() ) / 100;
- long nStartBlue = ( (long) aStartCol.GetBlue() * rGradient.GetStartIntensity() ) / 100;
- long nEndRed = ( (long) aEndCol.GetRed() * rGradient.GetEndIntensity() ) / 100;
- long nEndGreen = ( (long) aEndCol.GetGreen() * rGradient.GetEndIntensity() ) / 100;
- long nEndBlue = ( (long) aEndCol.GetBlue() * rGradient.GetEndIntensity() ) / 100;
- long nRedSteps = nEndRed - nStartRed;
- long nGreenSteps = nEndGreen - nStartGreen;
- long nBlueSteps = nEndBlue - nStartBlue;
+ Rectangle aRect( rRect );
+ Color aStartCol( rGradient.GetStartColor() );
+ Color aEndCol( rGradient.GetEndColor() );
+ long nStartRed = ( (long) aStartCol.GetRed() * rGradient.GetStartIntensity() ) / 100;
+ long nStartGreen = ( (long) aStartCol.GetGreen() * rGradient.GetStartIntensity() ) / 100;
+ long nStartBlue = ( (long) aStartCol.GetBlue() * rGradient.GetStartIntensity() ) / 100;
+ long nEndRed = ( (long) aEndCol.GetRed() * rGradient.GetEndIntensity() ) / 100;
+ long nEndGreen = ( (long) aEndCol.GetGreen() * rGradient.GetEndIntensity() ) / 100;
+ long nEndBlue = ( (long) aEndCol.GetBlue() * rGradient.GetEndIntensity() ) / 100;
+ long nRedSteps = nEndRed - nStartRed;
+ long nGreenSteps = nEndGreen - nStartGreen;
+ long nBlueSteps = nEndBlue - nStartBlue;
long nStepCount = rGradient.GetSteps();
- USHORT nAngle = rGradient.GetAngle() % 3600;
-
+ USHORT nAngle = rGradient.GetAngle() % 3600;
+
if( (meRasterOp != ROP_OVERPAINT) || (meOutDevType != OUTDEV_WINDOW) || bMtf )
pPolyPoly = new PolyPolygon( 2 );
else
@@ -452,23 +452,23 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
if( rGradient.GetStyle() == GRADIENT_SQUARE || rGradient.GetStyle() == GRADIENT_RECT )
{
- const double fAngle = nAngle * F_PI1800;
- const double fWidth = aRect.GetWidth();
+ const double fAngle = nAngle * F_PI1800;
+ const double fWidth = aRect.GetWidth();
const double fHeight = aRect.GetHeight();
- double fDX = fWidth * fabs( cos( fAngle ) ) + fHeight * fabs( sin( fAngle ) );
- double fDY = fHeight * fabs( cos( fAngle ) ) + fWidth * fabs( sin( fAngle ) );
+ double fDX = fWidth * fabs( cos( fAngle ) ) + fHeight * fabs( sin( fAngle ) );
+ double fDY = fHeight * fabs( cos( fAngle ) ) + fWidth * fabs( sin( fAngle ) );
fDX = ( fDX - fWidth ) * 0.5 + 0.5;
fDY = ( fDY - fHeight ) * 0.5 + 0.5;
-
+
aRect.Left() -= (long) fDX;
aRect.Right() += (long) fDX;
aRect.Top() -= (long) fDY;
aRect.Bottom() += (long) fDY;
}
-
+
Size aSize( aRect.GetSize() );
-
+
if( rGradient.GetStyle() == GRADIENT_RADIAL )
{
// Radien-Berechnung fuer Kreis
@@ -490,11 +490,11 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
}
// neue Mittelpunkte berechnen
- long nZWidth = aRect.GetWidth() * (long) rGradient.GetOfsX() / 100;
- long nZHeight = aRect.GetHeight() * (long) rGradient.GetOfsY() / 100;
- long nBorderX = (long) rGradient.GetBorder() * aSize.Width() / 100;
- long nBorderY = (long) rGradient.GetBorder() * aSize.Height() / 100;
- Point aCenter( aRect.Left() + nZWidth, aRect.Top() + nZHeight );
+ long nZWidth = aRect.GetWidth() * (long) rGradient.GetOfsX() / 100;
+ long nZHeight = aRect.GetHeight() * (long) rGradient.GetOfsY() / 100;
+ long nBorderX = (long) rGradient.GetBorder() * aSize.Width() / 100;
+ long nBorderY = (long) rGradient.GetBorder() * aSize.Height() / 100;
+ Point aCenter( aRect.Left() + nZWidth, aRect.Top() + nZHeight );
// Rand beruecksichtigen
aSize.Width() -= nBorderX;
@@ -503,7 +503,7 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
// Ausgaberechteck neu setzen
aRect.Left() = aCenter.X() - ( aSize.Width() >> 1 );
aRect.Top() = aCenter.Y() - ( aSize.Height() >> 1 );
-
+
aRect.SetSize( aSize );
long nMinRect = Min( aRect.GetWidth(), aRect.GetHeight() );
@@ -527,7 +527,7 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
nStepCount = nMinRect / nInc;
}
-
+
// minimal drei Schritte und maximal die Anzahl der Farbunterschiede
long nSteps = Max( nStepCount, 2L );
long nCalcSteps = Abs( nRedSteps );
@@ -550,7 +550,7 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
double fScanBottom = aRect.Bottom();
double fScanInc = (double) nMinRect / (double) nSteps * 0.5;
UINT8 nRed = (UINT8) nStartRed, nGreen = (UINT8) nStartGreen, nBlue = (UINT8) nStartBlue;
- bool bPaintLastPolygon( false ); // #107349# Paint last polygon only if loop has generated any output
+ bool bPaintLastPolygon( false ); // #107349# Paint last polygon only if loop has generated any output
if( bMtf )
mpMetaFile->AddAction( new MetaFillColorAction( Color( nRed, nGreen, nBlue ), TRUE ) );
@@ -558,7 +558,7 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) );
if( pPolyPoly )
- {
+ {
pPolyPoly->Insert( aPoly = rRect );
pPolyPoly->Insert( aPoly );
}
@@ -641,7 +641,7 @@ void OutputDevice::ImplDrawComplexGradient( const Rectangle& rRect,
if( pPolyPoly )
{
const Polygon& rPoly = pPolyPoly->GetObject( 1 );
-
+
if( !rPoly.GetBoundRect().IsEmpty() )
{
// #107349# Paint last polygon with end color only if loop
@@ -694,7 +694,7 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
if ( mnDrawMode & DRAWMODE_GHOSTEDGRADIENT )
{
- aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80,
+ aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80,
( aColor.GetGreen() >> 1 ) | 0x80,
( aColor.GetBlue() >> 1 ) | 0x80 );
}
@@ -720,14 +720,14 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
aStartCol = Color( cStartLum, cStartLum, cStartLum );
aEndCol = Color( cEndLum, cEndLum, cEndLum );
}
-
+
if ( mnDrawMode & DRAWMODE_GHOSTEDGRADIENT )
{
- aStartCol = Color( ( aStartCol.GetRed() >> 1 ) | 0x80,
+ aStartCol = Color( ( aStartCol.GetRed() >> 1 ) | 0x80,
( aStartCol.GetGreen() >> 1 ) | 0x80,
( aStartCol.GetBlue() >> 1 ) | 0x80 );
- aEndCol = Color( ( aEndCol.GetRed() >> 1 ) | 0x80,
+ aEndCol = Color( ( aEndCol.GetRed() >> 1 ) | 0x80,
( aEndCol.GetGreen() >> 1 ) | 0x80,
( aEndCol.GetBlue() >> 1 ) | 0x80 );
}
@@ -741,7 +741,7 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
if( !IsDeviceOutputNecessary() || ImplIsRecordLayout() )
return;
-
+
// Rechteck in Pixel umrechnen
Rectangle aRect( ImplLogicToDevicePixel( rRect ) );
aRect.Justify();
@@ -769,7 +769,7 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
if ( mbInitClipRegion )
ImplInitClipRegion();
-
+
if ( !mbOutputClipped )
{
// Gradienten werden ohne Umrandung gezeichnet
@@ -778,7 +778,7 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
mpGraphics->SetLineColor();
mbInitLineColor = TRUE;
}
-
+
mbInitFillColor = TRUE;
// calculate step count if neccessary
@@ -812,7 +812,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if( mbInitClipRegion )
ImplInitClipRegion();
-
+
if( mbOutputClipped )
return;
@@ -835,7 +835,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if ( mnDrawMode & DRAWMODE_GHOSTEDGRADIENT )
{
- aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80,
+ aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80,
( aColor.GetGreen() >> 1 ) | 0x80,
( aColor.GetBlue() >> 1 ) | 0x80 );
}
@@ -850,7 +850,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if( mpMetaFile )
{
- const Rectangle aRect( rPolyPoly.GetBoundRect() );
+ const Rectangle aRect( rPolyPoly.GetBoundRect() );
mpMetaFile->AddAction( new MetaCommentAction( "XGRAD_SEQ_BEGIN" ) );
mpMetaFile->AddAction( new MetaGradientExAction( rPolyPoly, rGradient ) );
@@ -864,7 +864,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
}
else
{
- const BOOL bOldOutput = IsOutputEnabled();
+ const BOOL bOldOutput = IsOutputEnabled();
EnableOutput( FALSE );
Push( PUSH_RASTEROP );
@@ -898,14 +898,14 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
aStartCol = Color( cStartLum, cStartLum, cStartLum );
aEndCol = Color( cEndLum, cEndLum, cEndLum );
}
-
+
if ( mnDrawMode & DRAWMODE_GHOSTEDGRADIENT )
{
- aStartCol = Color( ( aStartCol.GetRed() >> 1 ) | 0x80,
+ aStartCol = Color( ( aStartCol.GetRed() >> 1 ) | 0x80,
( aStartCol.GetGreen() >> 1 ) | 0x80,
( aStartCol.GetBlue() >> 1 ) | 0x80 );
- aEndCol = Color( ( aEndCol.GetRed() >> 1 ) | 0x80,
+ aEndCol = Color( ( aEndCol.GetRed() >> 1 ) | 0x80,
( aEndCol.GetGreen() >> 1 ) | 0x80,
( aEndCol.GetBlue() >> 1 ) | 0x80 );
}
@@ -916,7 +916,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if( OUTDEV_PRINTER == meOutDevType || ImplGetSVData()->maGDIData.mbNoXORClipping )
{
- const Rectangle aBoundRect( rPolyPoly.GetBoundRect() );
+ const Rectangle aBoundRect( rPolyPoly.GetBoundRect() );
if( !Rectangle( PixelToLogic( Point() ), GetOutputSize() ).IsEmpty() )
{
@@ -932,7 +932,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if( mbInitClipRegion )
ImplInitClipRegion();
-
+
if( !mbOutputClipped )
{
PolyPolygon aClipPolyPoly( ImplLogicToDevicePixel( rPolyPoly ) );
@@ -943,7 +943,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
mpGraphics->SetLineColor();
mbInitLineColor = TRUE;
}
-
+
mbInitFillColor = TRUE;
// calculate step count if neccessary
@@ -960,29 +960,29 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
}
else
{
- const PolyPolygon aPolyPoly( LogicToPixel( rPolyPoly ) );
- const Rectangle aBoundRect( aPolyPoly.GetBoundRect() );
+ const PolyPolygon aPolyPoly( LogicToPixel( rPolyPoly ) );
+ const Rectangle aBoundRect( aPolyPoly.GetBoundRect() );
Point aPoint;
- Rectangle aDstRect( aPoint, GetOutputSizePixel() );
+ Rectangle aDstRect( aPoint, GetOutputSizePixel() );
aDstRect.Intersection( aBoundRect );
if( OUTDEV_WINDOW == meOutDevType )
{
const Region aPaintRgn( ( (Window*) this )->GetPaintRegion() );
-
+
if( !aPaintRgn.IsNull() )
aDstRect.Intersection( LogicToPixel( aPaintRgn ).GetBoundRect() );
}
if( !aDstRect.IsEmpty() )
{
- VirtualDevice* pVDev;
- const Size aDstSize( aDstRect.GetSize() );
+ VirtualDevice* pVDev;
+ const Size aDstSize( aDstRect.GetSize() );
if( HasAlpha() )
{
- // #110958# Pay attention to alpha VDevs here, otherwise,
+ // #110958# Pay attention to alpha VDevs here, otherwise,
// background will be wrong: Temp VDev has to have alpha, too.
pVDev = new VirtualDevice( *this, 0, GetAlphaBitCount() > 1 ? 0 : 1 );
}
@@ -994,8 +994,8 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if( pVDev->SetOutputSizePixel( aDstSize) )
{
- MapMode aVDevMap;
- const BOOL bOldMap = mbMap;
+ MapMode aVDevMap;
+ const BOOL bOldMap = mbMap;
EnableMapMode( FALSE );
@@ -1040,8 +1040,8 @@ void OutputDevice::AddGradientActions( const Rectangle& rRect, const Gradient& r
// Wenn Rechteck leer ist, brauchen wir nichts machen
if ( !aRect.IsEmpty() )
{
- Gradient aGradient( rGradient );
- GDIMetaFile* pOldMtf = mpMetaFile;
+ Gradient aGradient( rGradient );
+ GDIMetaFile* pOldMtf = mpMetaFile;
mpMetaFile = &rMtf;
mpMetaFile->AddAction( new MetaPushAction( PUSH_ALL ) );
@@ -1078,7 +1078,7 @@ void OutputDevice::DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch
Hatch aHatch( rHatch );
- if ( mnDrawMode & ( DRAWMODE_BLACKLINE | DRAWMODE_WHITELINE |
+ if ( mnDrawMode & ( DRAWMODE_BLACKLINE | DRAWMODE_WHITELINE |
DRAWMODE_GRAYLINE | DRAWMODE_GHOSTEDLINE |
DRAWMODE_SETTINGSLINE ) )
{
@@ -1100,8 +1100,8 @@ void OutputDevice::DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch
if ( mnDrawMode & DRAWMODE_GHOSTEDLINE )
{
- aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80,
- ( aColor.GetGreen() >> 1 ) | 0x80,
+ aColor = Color( ( aColor.GetRed() >> 1 ) | 0x80,
+ ( aColor.GetGreen() >> 1 ) | 0x80,
( aColor.GetBlue() >> 1 ) | 0x80);
}
@@ -1124,10 +1124,10 @@ void OutputDevice::DrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch
return;
if( rPolyPoly.Count() )
- {
- PolyPolygon aPolyPoly( LogicToPixel( rPolyPoly ) );
- GDIMetaFile* pOldMetaFile = mpMetaFile;
- BOOL bOldMap = mbMap;
+ {
+ PolyPolygon aPolyPoly( LogicToPixel( rPolyPoly ) );
+ GDIMetaFile* pOldMetaFile = mpMetaFile;
+ BOOL bOldMap = mbMap;
aPolyPoly.Optimize( POLY_OPTIMIZE_NO_SAME );
aHatch.SetDistance( ImplLogicWidthToDevicePixel( aHatch.GetDistance() ) );
@@ -1154,11 +1154,11 @@ void OutputDevice::AddHatchActions( const PolyPolygon& rPolyPoly, const Hatch& r
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
- PolyPolygon aPolyPoly( rPolyPoly );
+ PolyPolygon aPolyPoly( rPolyPoly );
aPolyPoly.Optimize( POLY_OPTIMIZE_NO_SAME | POLY_OPTIMIZE_CLOSE );
if( aPolyPoly.Count() )
- {
+ {
GDIMetaFile* pOldMtf = mpMetaFile;
mpMetaFile = &rMtf;
@@ -1174,12 +1174,12 @@ void OutputDevice::AddHatchActions( const PolyPolygon& rPolyPoly, const Hatch& r
void OutputDevice::ImplDrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch, BOOL bMtf )
{
- Rectangle aRect( rPolyPoly.GetBoundRect() );
- const long nLogPixelWidth = ImplDevicePixelToLogicWidth( 1 );
- const long nWidth = ImplDevicePixelToLogicWidth( Max( ImplLogicWidthToDevicePixel( rHatch.GetDistance() ), 3L ) );
- Point* pPtBuffer = new Point[ HATCH_MAXPOINTS ];
- Point aPt1, aPt2, aEndPt1;
- Size aInc;
+ Rectangle aRect( rPolyPoly.GetBoundRect() );
+ const long nLogPixelWidth = ImplDevicePixelToLogicWidth( 1 );
+ const long nWidth = ImplDevicePixelToLogicWidth( Max( ImplLogicWidthToDevicePixel( rHatch.GetDistance() ), 3L ) );
+ Point* pPtBuffer = new Point[ HATCH_MAXPOINTS ];
+ Point aPt1, aPt2, aEndPt1;
+ Size aInc;
// Single hatch
aRect.Left() -= nLogPixelWidth; aRect.Top() -= nLogPixelWidth; aRect.Right() += nLogPixelWidth; aRect.Bottom() += nLogPixelWidth;
@@ -1226,9 +1226,9 @@ void OutputDevice::ImplDrawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHa
void OutputDevice::ImplCalcHatchValues( const Rectangle& rRect, long nDist, USHORT nAngle10,
Point& rPt1, Point& rPt2, Size& rInc, Point& rEndPt1 )
{
- Point aRef;
- long nAngle = nAngle10 % 1800;
- long nOffset = 0;
+ Point aRef;
+ long nAngle = nAngle10 % 1800;
+ long nOffset = 0;
if( nAngle > 900 )
nAngle -= 1800;
@@ -1267,10 +1267,10 @@ void OutputDevice::ImplCalcHatchValues( const Rectangle& rRect, long nDist, USHO
}
else if( nAngle >= -450 && nAngle <= 450 )
{
- const double fAngle = F_PI1800 * labs( nAngle );
- const double fTan = tan( fAngle );
- const long nYOff = FRound( ( rRect.Right() - rRect.Left() ) * fTan );
- long nPY;
+ const double fAngle = F_PI1800 * labs( nAngle );
+ const double fTan = tan( fAngle );
+ const long nYOff = FRound( ( rRect.Right() - rRect.Left() ) * fTan );
+ long nPY;
rInc = Size( 0, nDist = FRound( nDist / cos( fAngle ) ) );
@@ -1301,8 +1301,8 @@ void OutputDevice::ImplCalcHatchValues( const Rectangle& rRect, long nDist, USHO
{
const double fAngle = F_PI1800 * labs( nAngle );
const double fTan = tan( fAngle );
- const long nXOff = FRound( ( rRect.Bottom() - rRect.Top() ) / fTan );
- long nPX;
+ const long nXOff = FRound( ( rRect.Bottom() - rRect.Top() ) / fTan );
+ long nPX;
rInc = Size( nDist = FRound( nDist / sin( fAngle ) ), 0 );
@@ -1336,8 +1336,8 @@ void OutputDevice::ImplCalcHatchValues( const Rectangle& rRect, long nDist, USHO
void OutputDevice::ImplDrawHatchLine( const Line& rLine, const PolyPolygon& rPolyPoly,
Point* pPtBuffer, BOOL bMtf )
{
- double fX, fY;
- long nAdd, nPCounter = 0;
+ double fX, fY;
+ long nAdd, nPCounter = 0;
for( long nPoly = 0, nPolyCount = rPolyPoly.Count(); nPoly < nPolyCount; nPoly++ )
{
@@ -1345,7 +1345,7 @@ void OutputDevice::ImplDrawHatchLine( const Line& rLine, const PolyPolygon& rPol
if( rPoly.GetSize() > 1 )
{
- Line aCurSegment( rPoly[ 0 ], Point() );
+ Line aCurSegment( rPoly[ 0 ], Point() );
for( long i = 1, nCount = rPoly.GetSize(); i <= nCount; i++ )
{
@@ -1354,25 +1354,25 @@ void OutputDevice::ImplDrawHatchLine( const Line& rLine, const PolyPolygon& rPol
if( rLine.Intersection( aCurSegment, fX, fY ) )
{
- if( ( fabs( fX - aCurSegment.GetStart().X() ) <= 0.0000001 ) &&
+ if( ( fabs( fX - aCurSegment.GetStart().X() ) <= 0.0000001 ) &&
( fabs( fY - aCurSegment.GetStart().Y() ) <= 0.0000001 ) )
{
- const Line aPrevSegment( rPoly[ (USHORT)( ( i > 1 ) ? ( i - 2 ) : ( nCount - 1 ) ) ], aCurSegment.GetStart() );
- const double fPrevDistance = rLine.GetDistance( aPrevSegment.GetStart() );
- const double fCurDistance = rLine.GetDistance( aCurSegment.GetEnd() );
+ const Line aPrevSegment( rPoly[ (USHORT)( ( i > 1 ) ? ( i - 2 ) : ( nCount - 1 ) ) ], aCurSegment.GetStart() );
+ const double fPrevDistance = rLine.GetDistance( aPrevSegment.GetStart() );
+ const double fCurDistance = rLine.GetDistance( aCurSegment.GetEnd() );
- if( ( fPrevDistance <= 0.0 && fCurDistance > 0.0 ) ||
+ if( ( fPrevDistance <= 0.0 && fCurDistance > 0.0 ) ||
( fPrevDistance > 0.0 && fCurDistance < 0.0 ) )
{
nAdd = 1;
}
}
- else if( ( fabs( fX - aCurSegment.GetEnd().X() ) <= 0.0000001 ) &&
+ else if( ( fabs( fX - aCurSegment.GetEnd().X() ) <= 0.0000001 ) &&
( fabs( fY - aCurSegment.GetEnd().Y() ) <= 0.0000001 ) )
{
const Line aNextSegment( aCurSegment.GetEnd(), rPoly[ (USHORT)( ( i + 1 ) % nCount ) ] );
- if( ( fabs( rLine.GetDistance( aNextSegment.GetEnd() ) ) <= 0.0000001 ) &&
+ if( ( fabs( rLine.GetDistance( aNextSegment.GetEnd() ) ) <= 0.0000001 ) &&
( rLine.GetDistance( aCurSegment.GetStart() ) > 0.0 ) )
{
nAdd = 1;
diff --git a/vcl/source/gdi/outdev5.cxx b/vcl/source/gdi/outdev5.cxx
index 108945bf9160..deae3b9de4f3 100644
--- a/vcl/source/gdi/outdev5.cxx
+++ b/vcl/source/gdi/outdev5.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,7 +94,7 @@ void OutputDevice::DrawRect( const Rectangle& rRect,
if ( aRoundRectPoly.GetSize() >= 2 )
{
const SalPoint* pPtAry = (const SalPoint*) aRoundRectPoly.GetConstPointAry();
-
+
if ( !mbFillColor )
mpGraphics->DrawPolyLine( aRoundRectPoly.GetSize(), pPtAry, this );
else
@@ -116,7 +116,7 @@ void OutputDevice::DrawEllipse( const Rectangle& rRect )
if ( mpMetaFile )
mpMetaFile->AddAction( new MetaEllipseAction( rRect ) );
- if ( !IsDeviceOutputNecessary() || (!mbLineColor && !mbFillColor) || ImplIsRecordLayout() )
+ if ( !IsDeviceOutputNecessary() || (!mbLineColor && !mbFillColor) || ImplIsRecordLayout() )
return;
Rectangle aRect( ImplLogicToDevicePixel( rRect ) );
@@ -189,9 +189,9 @@ void OutputDevice::DrawArc( const Rectangle& rRect,
if ( mbInitLineColor )
ImplInitLineColor();
- const Point aStart( ImplLogicToDevicePixel( rStartPt ) );
- const Point aEnd( ImplLogicToDevicePixel( rEndPt ) );
- Polygon aArcPoly( aRect, aStart, aEnd, POLY_ARC );
+ const Point aStart( ImplLogicToDevicePixel( rStartPt ) );
+ const Point aEnd( ImplLogicToDevicePixel( rEndPt ) );
+ Polygon aArcPoly( aRect, aStart, aEnd, POLY_ARC );
if ( aArcPoly.GetSize() >= 2 )
{
@@ -236,9 +236,9 @@ void OutputDevice::DrawPie( const Rectangle& rRect,
if ( mbInitLineColor )
ImplInitLineColor();
- const Point aStart( ImplLogicToDevicePixel( rStartPt ) );
- const Point aEnd( ImplLogicToDevicePixel( rEndPt ) );
- Polygon aPiePoly( aRect, aStart, aEnd, POLY_PIE );
+ const Point aStart( ImplLogicToDevicePixel( rStartPt ) );
+ const Point aEnd( ImplLogicToDevicePixel( rEndPt ) );
+ Polygon aPiePoly( aRect, aStart, aEnd, POLY_PIE );
if ( aPiePoly.GetSize() >= 2 )
{
@@ -290,9 +290,9 @@ void OutputDevice::DrawChord( const Rectangle& rRect,
if ( mbInitLineColor )
ImplInitLineColor();
- const Point aStart( ImplLogicToDevicePixel( rStartPt ) );
- const Point aEnd( ImplLogicToDevicePixel( rEndPt ) );
- Polygon aChordPoly( aRect, aStart, aEnd, POLY_CHORD );
+ const Point aStart( ImplLogicToDevicePixel( rStartPt ) );
+ const Point aEnd( ImplLogicToDevicePixel( rEndPt ) );
+ Polygon aChordPoly( aRect, aStart, aEnd, POLY_CHORD );
if ( aChordPoly.GetSize() >= 2 )
{
diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx
index 63f2b7f1f27c..bf26e1711b10 100644
--- a/vcl/source/gdi/outdev6.cxx
+++ b/vcl/source/gdi/outdev6.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,18 +78,18 @@ void OutputDevice::DrawGrid( const Rectangle& rRect, const Size& rDist, ULONG nF
if( mbOutputClipped )
return;
- const long nDistX = Max( rDist.Width(), 1L );
- const long nDistY = Max( rDist.Height(), 1L );
- long nX = ( rRect.Left() >= aDstRect.Left() ) ? rRect.Left() : ( rRect.Left() + ( ( aDstRect.Left() - rRect.Left() ) / nDistX ) * nDistX );
- long nY = ( rRect.Top() >= aDstRect.Top() ) ? rRect.Top() : ( rRect.Top() + ( ( aDstRect.Top() - rRect.Top() ) / nDistY ) * nDistY );
- const long nRight = aDstRect.Right();
- const long nBottom = aDstRect.Bottom();
- const long nStartX = ImplLogicXToDevicePixel( nX );
- const long nEndX = ImplLogicXToDevicePixel( nRight );
- const long nStartY = ImplLogicYToDevicePixel( nY );
- const long nEndY = ImplLogicYToDevicePixel( nBottom );
- long nHorzCount = 0L;
- long nVertCount = 0L;
+ const long nDistX = Max( rDist.Width(), 1L );
+ const long nDistY = Max( rDist.Height(), 1L );
+ long nX = ( rRect.Left() >= aDstRect.Left() ) ? rRect.Left() : ( rRect.Left() + ( ( aDstRect.Left() - rRect.Left() ) / nDistX ) * nDistX );
+ long nY = ( rRect.Top() >= aDstRect.Top() ) ? rRect.Top() : ( rRect.Top() + ( ( aDstRect.Top() - rRect.Top() ) / nDistY ) * nDistY );
+ const long nRight = aDstRect.Right();
+ const long nBottom = aDstRect.Bottom();
+ const long nStartX = ImplLogicXToDevicePixel( nX );
+ const long nEndX = ImplLogicXToDevicePixel( nRight );
+ const long nStartY = ImplLogicYToDevicePixel( nY );
+ const long nEndY = ImplLogicYToDevicePixel( nBottom );
+ long nHorzCount = 0L;
+ long nVertCount = 0L;
::com::sun::star::uno::Sequence< sal_Int32 > aVertBuf;
::com::sun::star::uno::Sequence< sal_Int32 > aHorzBuf;
@@ -181,7 +181,7 @@ void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly,
if( mbInitFillColor )
ImplInitFillColor();
- if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
+ if((mnAntialiasing & ANTIALIASING_ENABLE_B2DDRAW)
&& mpGraphics->supportsOperation(OutDevSupport_B2DDraw)
&& ROP_OVERPAINT == GetRasterOp() )
{
@@ -192,7 +192,7 @@ void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly,
// transform the polygon into device space and ensure it is closed
aB2DPolyPolygon.transform( aTransform );
aB2DPolyPolygon.setClosed( true );
-
+
bool bDrawnOk = true;
if( IsFillColor() )
bDrawnOk = mpGraphics->DrawPolyPolygon( aB2DPolyPolygon, fTransparency, this );
@@ -268,7 +268,7 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
// try hard to draw it directly, because the emulation layers are slower
if( !pDisableNative
- && mpGraphics->supportsOperation( OutDevSupport_B2DDraw )
+ && mpGraphics->supportsOperation( OutDevSupport_B2DDraw )
#if defined UNX && ! defined QUARTZ
&& GetBitCount() > 8
#endif
@@ -341,11 +341,11 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
return;
}
- Rectangle aPolyRect( LogicToPixel( rPolyPoly ).GetBoundRect() );
- const Size aDPISize( LogicToPixel( Size( 1, 1 ), MAP_INCH ) );
- const long nBaseExtent = Max( FRound( aDPISize.Width() / 300. ), 1L );
- long nMove;
- const USHORT nTrans = ( nTransparencePercent < 13 ) ? 0 :
+ Rectangle aPolyRect( LogicToPixel( rPolyPoly ).GetBoundRect() );
+ const Size aDPISize( LogicToPixel( Size( 1, 1 ), MAP_INCH ) );
+ const long nBaseExtent = Max( FRound( aDPISize.Width() / 300. ), 1L );
+ long nMove;
+ const USHORT nTrans = ( nTransparencePercent < 13 ) ? 0 :
( nTransparencePercent < 38 ) ? 25 :
( nTransparencePercent < 63 ) ? 50 :
( nTransparencePercent < 88 ) ? 75 : 100;
@@ -396,10 +396,10 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
}
else
{
- PolyPolygon aPolyPoly( LogicToPixel( rPolyPoly ) );
- Rectangle aPolyRect( aPolyPoly.GetBoundRect() );
- Point aPoint;
- Rectangle aDstRect( aPoint, GetOutputSizePixel() );
+ PolyPolygon aPolyPoly( LogicToPixel( rPolyPoly ) );
+ Rectangle aPolyRect( aPolyPoly.GetBoundRect() );
+ Point aPoint;
+ Rectangle aDstRect( aPoint, GetOutputSizePixel() );
aDstRect.Intersection( aPolyRect );
@@ -424,25 +424,25 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
if( 1 )
{
if ( mbInitClipRegion )
- ImplInitClipRegion();
+ ImplInitClipRegion();
if ( mbInitLineColor )
ImplInitLineColor();
if ( mbInitFillColor )
ImplInitFillColor();
-
+
Rectangle aLogicPolyRect( rPolyPoly.GetBoundRect() );
Rectangle aPixelRect( ImplLogicToDevicePixel( aLogicPolyRect ) );
if( !mbOutputClipped )
{
- bDrawn = mpGraphics->DrawAlphaRect(
- aPixelRect.Left(), aPixelRect.Top(),
+ bDrawn = mpGraphics->DrawAlphaRect(
+ aPixelRect.Left(), aPixelRect.Top(),
// #i98405# use methods with small g, else one pixel too much will be painted.
// This is because the source is a polygon which when painted would not paint
- // the rightmost and lowest pixel line(s), so use one pixel less for the
+ // the rightmost and lowest pixel line(s), so use one pixel less for the
// rectangle, too.
aPixelRect.getWidth(), aPixelRect.getHeight(),
- sal::static_int_cast<sal_uInt8>(nTransparencePercent),
+ sal::static_int_cast<sal_uInt8>(nTransparencePercent),
this );
}
else
@@ -452,9 +452,9 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
if( !bDrawn )
{
- VirtualDevice aVDev( *this, 1 );
- const Size aDstSz( aDstRect.GetSize() );
- const BYTE cTrans = (BYTE) MinMax( FRound( nTransparencePercent * 2.55 ), 0, 255 );
+ VirtualDevice aVDev( *this, 1 );
+ const Size aDstSz( aDstRect.GetSize() );
+ const BYTE cTrans = (BYTE) MinMax( FRound( nTransparencePercent * 2.55 ), 0, 255 );
if( aDstRect.Left() || aDstRect.Top() )
aPolyPoly.Move( -aDstRect.Left(), -aDstRect.Top() );
@@ -469,30 +469,30 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
aVDev.SetFillColor( COL_BLACK );
aVDev.DrawPolyPolygon( aPolyPoly );
- Bitmap aPaint( GetBitmap( aDstRect.TopLeft(), aDstSz ) );
- Bitmap aPolyMask( aVDev.GetBitmap( Point(), aDstSz ) );
+ Bitmap aPaint( GetBitmap( aDstRect.TopLeft(), aDstSz ) );
+ Bitmap aPolyMask( aVDev.GetBitmap( Point(), aDstSz ) );
// #107766# check for non-empty bitmaps before accessing them
if( !!aPaint && !!aPolyMask )
{
- BitmapWriteAccess* pW = aPaint.AcquireWriteAccess();
- BitmapReadAccess* pR = aPolyMask.AcquireReadAccess();
+ BitmapWriteAccess* pW = aPaint.AcquireWriteAccess();
+ BitmapReadAccess* pR = aPolyMask.AcquireReadAccess();
if( pW && pR )
{
- BitmapColor aPixCol;
- const BitmapColor aFillCol( GetFillColor() );
- const BitmapColor aWhite( pR->GetBestMatchingColor( Color( COL_WHITE ) ) );
- const BitmapColor aBlack( pR->GetBestMatchingColor( Color( COL_BLACK ) ) );
- const long nWidth = pW->Width(), nHeight = pW->Height();
- const long nR = aFillCol.GetRed(), nG = aFillCol.GetGreen(), nB = aFillCol.GetBlue();
- long nX, nY;
+ BitmapColor aPixCol;
+ const BitmapColor aFillCol( GetFillColor() );
+ const BitmapColor aWhite( pR->GetBestMatchingColor( Color( COL_WHITE ) ) );
+ const BitmapColor aBlack( pR->GetBestMatchingColor( Color( COL_BLACK ) ) );
+ const long nWidth = pW->Width(), nHeight = pW->Height();
+ const long nR = aFillCol.GetRed(), nG = aFillCol.GetGreen(), nB = aFillCol.GetBlue();
+ long nX, nY;
if( aPaint.GetBitCount() <= 8 )
{
- const BitmapPalette& rPal = pW->GetPalette();
- const USHORT nCount = rPal.GetEntryCount();
- BitmapColor* pMap = (BitmapColor*) new BYTE[ nCount * sizeof( BitmapColor ) ];
+ const BitmapPalette& rPal = pW->GetPalette();
+ const USHORT nCount = rPal.GetEntryCount();
+ BitmapColor* pMap = (BitmapColor*) new BYTE[ nCount * sizeof( BitmapColor ) ];
for( USHORT i = 0; i < nCount; i++ )
{
@@ -507,9 +507,9 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
for( nY = 0; nY < nHeight; nY++ )
{
- Scanline pWScan = pW->GetScanline( nY );
- Scanline pRScan = pR->GetScanline( nY );
- BYTE cBit = 128;
+ Scanline pWScan = pW->GetScanline( nY );
+ Scanline pRScan = pR->GetScanline( nY );
+ BYTE cBit = 128;
for( nX = 0; nX < nWidth; nX++, cBit >>= 1, pWScan++ )
{
@@ -540,9 +540,9 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
for( nY = 0; nY < nHeight; nY++ )
{
- Scanline pWScan = pW->GetScanline( nY );
- Scanline pRScan = pR->GetScanline( nY );
- BYTE cBit = 128;
+ Scanline pWScan = pW->GetScanline( nY );
+ Scanline pRScan = pR->GetScanline( nY );
+ BYTE cBit = 128;
for( nX = 0; nX < nWidth; nX++, cBit >>= 1, pWScan += 3 )
{
@@ -639,10 +639,10 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
}
else
{
- GDIMetaFile* pOldMetaFile = mpMetaFile;
- Rectangle aOutRect( LogicToPixel( rPos ), LogicToPixel( rSize ) );
- Point aPoint;
- Rectangle aDstRect( aPoint, GetOutputSizePixel() );
+ GDIMetaFile* pOldMetaFile = mpMetaFile;
+ Rectangle aOutRect( LogicToPixel( rPos ), LogicToPixel( rSize ) );
+ Point aPoint;
+ Rectangle aDstRect( aPoint, GetOutputSizePixel() );
mpMetaFile = NULL;
aDstRect.Intersection( aOutRect );
@@ -686,7 +686,7 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
// copy MapMode state and disable for buffer
const bool bBufferMapModeEnabled(pVDev->IsMapModeEnabled());
pVDev->EnableMapMode(false);
-
+
// copy content from original to buffer
pVDev->DrawOutDev(
aPoint, pVDev->GetOutputSizePixel(), // dest
@@ -717,15 +717,15 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
}
else
{
- Bitmap aPaint, aMask;
- AlphaMask aAlpha;
- MapMode aMap( GetMapMode() );
- Point aOutPos( PixelToLogic( aDstRect.TopLeft() ) );
- const BOOL bOldMap = mbMap;
+ Bitmap aPaint, aMask;
+ AlphaMask aAlpha;
+ MapMode aMap( GetMapMode() );
+ Point aOutPos( PixelToLogic( aDstRect.TopLeft() ) );
+ const BOOL bOldMap = mbMap;
aMap.SetOrigin( Point( -aOutPos.X(), -aOutPos.Y() ) );
pVDev->SetMapMode( aMap );
- const BOOL bVDevOldMap = pVDev->IsMapModeEnabled();
+ const BOOL bVDevOldMap = pVDev->IsMapModeEnabled();
// create paint bitmap
( (GDIMetaFile&) rMtf ).WindStart();
@@ -797,16 +797,16 @@ void OutputDevice::ImplDrawBitmapWallpaper( long nX, long nY,
long nWidth, long nHeight,
const Wallpaper& rWallpaper )
{
- BitmapEx aBmpEx;
- const BitmapEx* pCached = rWallpaper.ImplGetImpWallpaper()->ImplGetCachedBitmap();
- Point aPos;
- Size aSize;
- GDIMetaFile* pOldMetaFile = mpMetaFile;
- const WallpaperStyle eStyle = rWallpaper.GetStyle();
- const BOOL bOldMap = mbMap;
- BOOL bDrawn = FALSE;
- BOOL bDrawGradientBackground = FALSE;
- BOOL bDrawColorBackground = FALSE;
+ BitmapEx aBmpEx;
+ const BitmapEx* pCached = rWallpaper.ImplGetImpWallpaper()->ImplGetCachedBitmap();
+ Point aPos;
+ Size aSize;
+ GDIMetaFile* pOldMetaFile = mpMetaFile;
+ const WallpaperStyle eStyle = rWallpaper.GetStyle();
+ const BOOL bOldMap = mbMap;
+ BOOL bDrawn = FALSE;
+ BOOL bDrawGradientBackground = FALSE;
+ BOOL bDrawColorBackground = FALSE;
if( pCached )
aBmpEx = *pCached;
@@ -936,10 +936,10 @@ void OutputDevice::ImplDrawBitmapWallpaper( long nX, long nY,
default:
{
- const long nRight = nX + nWidth - 1L;
- const long nBottom = nY + nHeight - 1L;
- long nFirstX;
- long nFirstY;
+ const long nRight = nX + nWidth - 1L;
+ const long nBottom = nY + nHeight - 1L;
+ long nFirstX;
+ long nFirstY;
if( eStyle == WALLPAPER_TILE )
{
@@ -952,10 +952,10 @@ void OutputDevice::ImplDrawBitmapWallpaper( long nX, long nY,
nFirstY = aPos.Y() + ( ( aSize.Height() - nBmpHeight ) >> 1 );
}
- const long nOffX = ( nFirstX - nX ) % nBmpWidth;
- const long nOffY = ( nFirstY - nY ) % nBmpHeight;
- long nStartX = nX + nOffX;
- long nStartY = nY + nOffY;
+ const long nOffX = ( nFirstX - nX ) % nBmpWidth;
+ const long nOffY = ( nFirstY - nY ) % nBmpHeight;
+ long nStartX = nX + nOffX;
+ long nStartY = nY + nOffY;
if( nOffX > 0L )
nStartX -= nBmpWidth;
@@ -977,11 +977,11 @@ void OutputDevice::ImplDrawBitmapWallpaper( long nX, long nY,
// optimized for non-transparent bitmaps
if( bDrawColorBackground )
{
- const Size aBmpSize( aBmpEx.GetSizePixel() );
- const Point aTmpPoint;
+ const Size aBmpSize( aBmpEx.GetSizePixel() );
+ const Point aTmpPoint;
const Rectangle aOutRect( aTmpPoint, GetOutputSizePixel() );
const Rectangle aColRect( Point( nX, nY ), Size( nWidth, nHeight ) );
- Rectangle aWorkRect;
+ Rectangle aWorkRect;
aWorkRect = Rectangle( 0, 0, aOutRect.Right(), aPos.Y() - 1L );
aWorkRect.Justify();
@@ -1040,9 +1040,9 @@ void OutputDevice::ImplDrawGradientWallpaper( long nX, long nY,
long nWidth, long nHeight,
const Wallpaper& rWallpaper )
{
- Rectangle aBound;
- GDIMetaFile* pOldMetaFile = mpMetaFile;
- const BOOL bOldMap = mbMap;
+ Rectangle aBound;
+ GDIMetaFile* pOldMetaFile = mpMetaFile;
+ const BOOL bOldMap = mbMap;
BOOL bNeedGradient = TRUE;
/*
@@ -1120,7 +1120,7 @@ void OutputDevice::DrawWallpaper( const Rectangle& rRect,
rWallpaper );
}
}
-
+
if( mpAlphaVDev )
mpAlphaVDev->DrawWallpaper( rRect, rWallpaper );
}
@@ -1131,20 +1131,20 @@ void OutputDevice::Erase()
{
if ( !IsDeviceOutputNecessary() || ImplIsRecordLayout() )
return;
-
- BOOL bNativeOK = FALSE;
+
+ BOOL bNativeOK = FALSE;
if( meOutDevType == OUTDEV_WINDOW )
{
Window* pWindow = static_cast<Window*>(this);
- ControlPart aCtrlPart = pWindow->ImplGetWindowImpl()->mnNativeBackground;
+ ControlPart aCtrlPart = pWindow->ImplGetWindowImpl()->mnNativeBackground;
if( aCtrlPart != 0 && ! pWindow->IsControlBackground() )
{
ImplControlValue aControlValue;
Point aGcc3WorkaroundTemporary;
Rectangle aCtrlRegion( aGcc3WorkaroundTemporary, GetOutputSizePixel() );
ControlState nState = 0;
-
- if( pWindow->IsEnabled() ) nState |= CTRL_STATE_ENABLED;
+
+ if( pWindow->IsEnabled() ) nState |= CTRL_STATE_ENABLED;
bNativeOK = pWindow->DrawNativeControl( CTRL_WINDOW_BACKGROUND, aCtrlPart, aCtrlRegion,
nState, aControlValue, rtl::OUString() );
}
@@ -1201,7 +1201,7 @@ bool OutputDevice::DrawEPS( const Point& rPoint, const Size& rSize,
if( mbOutputClipped )
return bDrawn;
- Rectangle aRect( ImplLogicToDevicePixel( Rectangle( rPoint, rSize ) ) );
+ Rectangle aRect( ImplLogicToDevicePixel( Rectangle( rPoint, rSize ) ) );
if( !aRect.IsEmpty() )
{
diff --git a/vcl/source/gdi/outdevnative.cxx b/vcl/source/gdi/outdevnative.cxx
index 32abe784073d..746e642edb7c 100644
--- a/vcl/source/gdi/outdevnative.cxx
+++ b/vcl/source/gdi/outdevnative.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -256,7 +256,7 @@ BOOL OutputDevice::DrawNativeControl( ControlType nType,
aTestRegion.Intersect( rControlRegion );
if( aTestRegion == rControlRegion )
nState |= CTRL_CACHING_ALLOWED; // control is not clipped, caching allowed
-
+
BOOL bRet = mpGraphics->DrawNativeControl(nType, nPart, screenRegion, nState, *aScreenCtrlValue, aCaption, this );
return bRet;
@@ -296,7 +296,7 @@ BOOL OutputDevice::DrawNativeControlText(ControlType nType,
Rectangle screenRegion( ImplLogicToDevicePixel( rControlRegion ) );
BOOL bRet = mpGraphics->DrawNativeControlText(nType, nPart, screenRegion, nState, *aScreenCtrlValue, aCaption, this );
-
+
return bRet;
}
@@ -329,7 +329,7 @@ BOOL OutputDevice::GetNativeControlRegion( ControlType nType,
rNativeContentRegion, this );
if( bRet )
{
- // transform back native regions
+ // transform back native regions
rNativeBoundingRegion = ImplDevicePixelToLogic( rNativeBoundingRegion );
rNativeContentRegion = ImplDevicePixelToLogic( rNativeContentRegion );
}
diff --git a/vcl/source/gdi/outmap.cxx b/vcl/source/gdi/outmap.cxx
index a4d4e2b9b909..41ce5e10bcc0 100644
--- a/vcl/source/gdi/outmap.cxx
+++ b/vcl/source/gdi/outmap.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,7 +64,7 @@ DBG_NAMEEX( Region )
// =======================================================================
static long aImplNumeratorAry[MAP_PIXEL+1] =
- { 1, 1, 5, 50, 1, 1, 1, 1, 1, 1, 1 };
+ { 1, 1, 5, 50, 1, 1, 1, 1, 1, 1, 1 };
static long aImplDenominatorAry[MAP_PIXEL+1] =
{ 2540, 254, 127, 127, 1000, 100, 10, 1, 72, 1440, 1 };
@@ -115,10 +115,10 @@ static Fraction ImplMakeFraction( long nN1, long nN2, long nD1, long nD2 )
// -----------------------------------------------------------------------
// Fraction.GetNumerator()
-// Fraction.GetDenominator() > 0
-// rOutRes.nPixPerInch? > 0
+// Fraction.GetDenominator() > 0
+// rOutRes.nPixPerInch? > 0
// rMapRes.nMapScNum?
-// rMapRes.nMapScDenom? > 0
+// rMapRes.nMapScDenom? > 0
static void ImplCalcBigIntThreshold( long nDPIX, long nDPIY,
const ImplMapRes& rMapRes,
@@ -132,9 +132,9 @@ static void ImplCalcBigIntThreshold( long nDPIX, long nDPIY,
else
{
// Schwellenwerte fuer BigInt Arithmetik berechnen
- long nDenomHalfX = rMapRes.mnMapScDenomX / 2;
- ULONG nDenomX = rMapRes.mnMapScDenomX;
- long nProductX = nDPIX * rMapRes.mnMapScNumX;
+ long nDenomHalfX = rMapRes.mnMapScDenomX / 2;
+ ULONG nDenomX = rMapRes.mnMapScDenomX;
+ long nProductX = nDPIX * rMapRes.mnMapScNumX;
if ( !nProductX )
rThresRes.mnThresLogToPixX = LONG_MAX;
@@ -157,9 +157,9 @@ static void ImplCalcBigIntThreshold( long nDPIX, long nDPIY,
else
{
// Schwellenwerte fuer BigInt Arithmetik berechnen
- long nDenomHalfY = rMapRes.mnMapScDenomY / 2;
- ULONG nDenomY = rMapRes.mnMapScDenomY;
- long nProductY = nDPIY * rMapRes.mnMapScNumY;
+ long nDenomHalfY = rMapRes.mnMapScDenomY / 2;
+ ULONG nDenomY = rMapRes.mnMapScDenomY;
+ long nProductY = nDPIY * rMapRes.mnMapScNumY;
if ( !nProductY )
rThresRes.mnThresLogToPixY = LONG_MAX;
@@ -204,16 +204,16 @@ static void ImplCalcMapResolution( const MapMode& rMapMode,
rMapRes.mnMapScDenomY = 254;
break;
case MAP_MM:
- rMapRes.mnMapScNumX = 5; // 10
- rMapRes.mnMapScDenomX = 127; // 254
- rMapRes.mnMapScNumY = 5; // 10
- rMapRes.mnMapScDenomY = 127; // 254
+ rMapRes.mnMapScNumX = 5; // 10
+ rMapRes.mnMapScDenomX = 127; // 254
+ rMapRes.mnMapScNumY = 5; // 10
+ rMapRes.mnMapScDenomY = 127; // 254
break;
case MAP_CM:
- rMapRes.mnMapScNumX = 50; // 100
- rMapRes.mnMapScDenomX = 127; // 254
- rMapRes.mnMapScNumY = 50; // 100
- rMapRes.mnMapScDenomY = 127; // 254
+ rMapRes.mnMapScNumX = 50; // 100
+ rMapRes.mnMapScDenomX = 127; // 254
+ rMapRes.mnMapScNumY = 50; // 100
+ rMapRes.mnMapScDenomY = 127; // 254
break;
case MAP_1000TH_INCH:
rMapRes.mnMapScNumX = 1;
@@ -687,8 +687,8 @@ Polygon OutputDevice::ImplLogicToDevicePixel( const Polygon& rLogicPoly ) const
if ( !mbMap && !mnOutOffX && !mnOutOffY )
return rLogicPoly;
- USHORT i;
- USHORT nPoints = rLogicPoly.GetSize();
+ USHORT i;
+ USHORT nPoints = rLogicPoly.GetSize();
Polygon aPoly( rLogicPoly );
// Pointer auf das Point-Array holen (Daten werden kopiert)
@@ -731,7 +731,7 @@ PolyPolygon OutputDevice::ImplLogicToDevicePixel( const PolyPolygon& rLogicPolyP
return rLogicPolyPoly;
PolyPolygon aPolyPoly( rLogicPolyPoly );
- USHORT nPoly = aPolyPoly.Count();
+ USHORT nPoly = aPolyPoly.Count();
for( USHORT i = 0; i < nPoly; i++ )
{
Polygon& rPoly = aPolyPoly[i];
@@ -812,12 +812,12 @@ Region OutputDevice::ImplPixelToDevicePixel( const Region& rRegion ) const
// -----------------------------------------------------------------------
-void OutputDevice::EnableMapMode( BOOL bEnable )
-{
- mbMap = (bEnable != 0);
+void OutputDevice::EnableMapMode( BOOL bEnable )
+{
+ mbMap = (bEnable != 0);
if( mpAlphaVDev )
- mpAlphaVDev->EnableMapMode( bEnable );
+ mpAlphaVDev->EnableMapMode( bEnable );
}
// -----------------------------------------------------------------------
@@ -831,12 +831,12 @@ void OutputDevice::SetMapMode()
if ( mbMap || !maMapMode.IsDefault() )
{
- mbMap = FALSE;
- maMapMode = MapMode();
+ mbMap = FALSE;
+ maMapMode = MapMode();
// create new objects (clip region werden nicht neu skaliert)
- mbNewFont = TRUE;
- mbInitFont = TRUE;
+ mbNewFont = TRUE;
+ mbInitFont = TRUE;
if ( GetOutDevType() == OUTDEV_WINDOW )
{
if ( ((Window*)this)->mpWindowImpl->mpCursor )
@@ -852,7 +852,7 @@ void OutputDevice::SetMapMode()
}
if( mpAlphaVDev )
- mpAlphaVDev->SetMapMode();
+ mpAlphaVDev->SetMapMode();
}
// -----------------------------------------------------------------------
@@ -888,14 +888,14 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode )
if ( (rNewMapMode.GetMapUnit() == maMapMode.GetMapUnit()) &&
(rNewMapMode.GetScaleX() == maMapMode.GetScaleX()) &&
(rNewMapMode.GetScaleY() == maMapMode.GetScaleY()) &&
- (bOldMap == mbMap) )
+ (bOldMap == mbMap) )
{
// Offset setzen
Point aOrigin = rNewMapMode.GetOrigin();
maMapRes.mnMapOfsX = aOrigin.X();
maMapRes.mnMapOfsY = aOrigin.Y();
maMapMode = rNewMapMode;
-
+
// #i75163#
ImplInvalidateViewTransform();
@@ -903,12 +903,12 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode )
}
if ( !bOldMap && bRelMap )
{
- maMapRes.mnMapScNumX = 1;
- maMapRes.mnMapScNumY = 1;
- maMapRes.mnMapScDenomX = mnDPIX;
- maMapRes.mnMapScDenomY = mnDPIY;
- maMapRes.mnMapOfsX = 0;
- maMapRes.mnMapOfsY = 0;
+ maMapRes.mnMapScNumX = 1;
+ maMapRes.mnMapScNumY = 1;
+ maMapRes.mnMapScDenomX = mnDPIX;
+ maMapRes.mnMapScDenomY = mnDPIY;
+ maMapRes.mnMapOfsX = 0;
+ maMapRes.mnMapOfsY = 0;
}
// Neue MapMode-Aufloesung berechnen
@@ -936,8 +936,8 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode )
maMapMode = rNewMapMode;
// create new objects (clip region werden nicht neu skaliert)
- mbNewFont = TRUE;
- mbInitFont = TRUE;
+ mbNewFont = TRUE;
+ mbInitFont = TRUE;
if ( GetOutDevType() == OUTDEV_WINDOW )
{
if ( ((Window*)this)->mpWindowImpl->mpCursor )
@@ -1101,22 +1101,22 @@ basegfx::B2DHomMatrix OutputDevice::GetInverseViewTransformation() const
basegfx::B2DHomMatrix OutputDevice::GetViewTransformation( const MapMode& rMapMode ) const
{
// #i82615#
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
-
+
basegfx::B2DHomMatrix aTransform;
const double fScaleFactorX((double)mnDPIX * (double)aMapRes.mnMapScNumX / (double)aMapRes.mnMapScDenomX);
const double fScaleFactorY((double)mnDPIY * (double)aMapRes.mnMapScNumY / (double)aMapRes.mnMapScDenomY);
const double fZeroPointX(((double)aMapRes.mnMapOfsX * fScaleFactorX) + (double)mnOutOffOrigX);
const double fZeroPointY(((double)aMapRes.mnMapOfsY * fScaleFactorY) + (double)mnOutOffOrigY);
-
+
aTransform.set(0, 0, fScaleFactorX);
aTransform.set(1, 1, fScaleFactorY);
aTransform.set(0, 2, fZeroPointX);
aTransform.set(1, 2, fZeroPointY);
-
+
return aTransform;
}
@@ -1208,8 +1208,8 @@ Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly ) const
if ( !mbMap )
return rLogicPoly;
- USHORT i;
- USHORT nPoints = rLogicPoly.GetSize();
+ USHORT i;
+ USHORT nPoints = rLogicPoly.GetSize();
Polygon aPoly( rLogicPoly );
// Pointer auf das Point-Array holen (Daten werden kopiert)
@@ -1242,7 +1242,7 @@ PolyPolygon OutputDevice::LogicToPixel( const PolyPolygon& rLogicPolyPoly ) cons
return rLogicPolyPoly;
PolyPolygon aPolyPoly( rLogicPolyPoly );
- USHORT nPoly = aPolyPoly.Count();
+ USHORT nPoly = aPolyPoly.Count();
for( USHORT i = 0; i < nPoly; i++ )
{
Polygon& rPoly = aPolyPoly[i];
@@ -1283,7 +1283,7 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion ) const
if ( !mbMap || (eType == REGION_EMPTY) || (eType == REGION_NULL) )
return rLogicRegion;
- Region aRegion;
+ Region aRegion;
const ImplRegion& rImplRegion = *rLogicRegion.ImplGetImplRegion();
const PolyPolygon* pPolyPoly = rImplRegion.mpPolyPoly;
const basegfx::B2DPolyPolygon* pB2DPolyPoly = rImplRegion.mpB2DPolyPoly;
@@ -1299,12 +1299,12 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion ) const
}
else
{
- long nX;
- long nY;
- long nWidth;
- long nHeight;
- ImplRegionInfo aInfo;
- BOOL bRegionRect;
+ long nX;
+ long nY;
+ long nWidth;
+ long nHeight;
+ ImplRegionInfo aInfo;
+ BOOL bRegionRect;
aRegion.ImplBeginAddRect();
bRegionRect = rLogicRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight );
@@ -1331,8 +1331,8 @@ Point OutputDevice::LogicToPixel( const Point& rLogicPt,
return rLogicPt;
// MapMode-Aufloesung berechnen und Umrechnen
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
return Point( ImplLogicToPixel( rLogicPt.X() + aMapRes.mnMapOfsX, mnDPIX,
@@ -1354,8 +1354,8 @@ Size OutputDevice::LogicToPixel( const Size& rLogicSize,
return rLogicSize;
// MapMode-Aufloesung berechnen und Umrechnen
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
return Size( ImplLogicToPixel( rLogicSize.Width(), mnDPIX,
@@ -1377,8 +1377,8 @@ Rectangle OutputDevice::LogicToPixel( const Rectangle& rLogicRect,
return rLogicRect;
// MapMode-Aufloesung berechnen und Umrechnen
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
return Rectangle( ImplLogicToPixel( rLogicRect.Left() + aMapRes.mnMapOfsX, mnDPIX,
@@ -1407,12 +1407,12 @@ Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly,
return rLogicPoly;
// MapMode-Aufloesung berechnen und Umrechnen
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
- USHORT i;
- USHORT nPoints = rLogicPoly.GetSize();
+ USHORT i;
+ USHORT nPoints = rLogicPoly.GetSize();
Polygon aPoly( rLogicPoly );
// Pointer auf das Point-Array holen (Daten werden kopiert)
@@ -1430,7 +1430,7 @@ Polygon OutputDevice::LogicToPixel( const Polygon& rLogicPoly,
aThresRes.mnThresLogToPixY )+mnOutOffOrigY;
aPoly[i] = aPt;
}
-
+
return aPoly;
}
@@ -1446,7 +1446,7 @@ PolyPolygon OutputDevice::LogicToPixel( const PolyPolygon& rLogicPolyPoly,
return rLogicPolyPoly;
PolyPolygon aPolyPoly( rLogicPolyPoly );
- USHORT nPoly = aPolyPoly.Count();
+ USHORT nPoly = aPolyPoly.Count();
for( USHORT i = 0; i < nPoly; i++ )
{
Polygon& rPoly = aPolyPoly[i];
@@ -1490,19 +1490,19 @@ Region OutputDevice::LogicToPixel( const Region& rLogicRegion,
if ( rMapMode.IsDefault() || (eType == REGION_EMPTY) || (eType == REGION_NULL) )
return rLogicRegion;
- Region aRegion;
- PolyPolygon* pPolyPoly = rLogicRegion.ImplGetImplRegion()->mpPolyPoly;
+ Region aRegion;
+ PolyPolygon* pPolyPoly = rLogicRegion.ImplGetImplRegion()->mpPolyPoly;
if( pPolyPoly )
aRegion = Region( LogicToPixel( *pPolyPoly, rMapMode ) );
else
{
- long nX;
- long nY;
- long nWidth;
- long nHeight;
- ImplRegionInfo aInfo;
- BOOL bRegionRect;
+ long nX;
+ long nY;
+ long nWidth;
+ long nHeight;
+ ImplRegionInfo aInfo;
+ BOOL bRegionRect;
aRegion.ImplBeginAddRect();
bRegionRect = rLogicRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight );
@@ -1585,8 +1585,8 @@ Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly ) const
if ( !mbMap )
return rDevicePoly;
- USHORT i;
- USHORT nPoints = rDevicePoly.GetSize();
+ USHORT i;
+ USHORT nPoints = rDevicePoly.GetSize();
Polygon aPoly( rDevicePoly );
// Pointer auf das Point-Array holen (Daten werden kopiert)
@@ -1619,7 +1619,7 @@ PolyPolygon OutputDevice::PixelToLogic( const PolyPolygon& rDevicePolyPoly ) con
return rDevicePolyPoly;
PolyPolygon aPolyPoly( rDevicePolyPoly );
- USHORT nPoly = aPolyPoly.Count();
+ USHORT nPoly = aPolyPoly.Count();
for( USHORT i = 0; i < nPoly; i++ )
{
Polygon& rPoly = aPolyPoly[i];
@@ -1660,19 +1660,19 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion ) const
if ( !mbMap || (eType == REGION_EMPTY) || (eType == REGION_NULL) )
return rDeviceRegion;
- Region aRegion;
- PolyPolygon* pPolyPoly = rDeviceRegion.ImplGetImplRegion()->mpPolyPoly;
+ Region aRegion;
+ PolyPolygon* pPolyPoly = rDeviceRegion.ImplGetImplRegion()->mpPolyPoly;
if ( pPolyPoly )
aRegion = Region( PixelToLogic( *pPolyPoly ) );
else
{
- long nX;
- long nY;
- long nWidth;
- long nHeight;
- ImplRegionInfo aInfo;
- BOOL bRegionRect;
+ long nX;
+ long nY;
+ long nWidth;
+ long nHeight;
+ ImplRegionInfo aInfo;
+ BOOL bRegionRect;
aRegion.ImplBeginAddRect();
bRegionRect = rDeviceRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight );
@@ -1700,8 +1700,8 @@ Point OutputDevice::PixelToLogic( const Point& rDevicePt,
return rDevicePt;
// MapMode-Aufloesung berechnen und Umrechnen
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
return Point( ImplPixelToLogic( rDevicePt.X(), mnDPIX,
@@ -1724,8 +1724,8 @@ Size OutputDevice::PixelToLogic( const Size& rDeviceSize,
return rDeviceSize;
// MapMode-Aufloesung berechnen und Umrechnen
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
return Size( ImplPixelToLogic( rDeviceSize.Width(), mnDPIX,
@@ -1748,8 +1748,8 @@ Rectangle OutputDevice::PixelToLogic( const Rectangle& rDeviceRect,
return rDeviceRect;
// MapMode-Aufloesung berechnen und Umrechnen
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
return Rectangle( ImplPixelToLogic( rDeviceRect.Left(), mnDPIX,
@@ -1779,12 +1779,12 @@ Polygon OutputDevice::PixelToLogic( const Polygon& rDevicePoly,
return rDevicePoly;
// MapMode-Aufloesung berechnen und Umrechnen
- ImplMapRes aMapRes;
- ImplThresholdRes aThresRes;
+ ImplMapRes aMapRes;
+ ImplThresholdRes aThresRes;
ImplCalcMapResolution( rMapMode, mnDPIX, mnDPIY, aMapRes, aThresRes );
- USHORT i;
- USHORT nPoints = rDevicePoly.GetSize();
+ USHORT i;
+ USHORT nPoints = rDevicePoly.GetSize();
Polygon aPoly( rDevicePoly );
// Pointer auf das Point-Array holen (Daten werden kopiert)
@@ -1818,7 +1818,7 @@ PolyPolygon OutputDevice::PixelToLogic( const PolyPolygon& rDevicePolyPoly,
return rDevicePolyPoly;
PolyPolygon aPolyPoly( rDevicePolyPoly );
- USHORT nPoly = aPolyPoly.Count();
+ USHORT nPoly = aPolyPoly.Count();
for( USHORT i = 0; i < nPoly; i++ )
{
Polygon& rPoly = aPolyPoly[i];
@@ -1862,19 +1862,19 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion,
if ( rMapMode.IsDefault() || (eType == REGION_EMPTY) || (eType == REGION_NULL) )
return rDeviceRegion;
- Region aRegion;
- PolyPolygon* pPolyPoly = rDeviceRegion.ImplGetImplRegion()->mpPolyPoly;
+ Region aRegion;
+ PolyPolygon* pPolyPoly = rDeviceRegion.ImplGetImplRegion()->mpPolyPoly;
if ( pPolyPoly )
aRegion = Region( PixelToLogic( *pPolyPoly, rMapMode ) );
else
{
- long nX;
- long nY;
- long nWidth;
- long nHeight;
- ImplRegionInfo aInfo;
- BOOL bRegionRect;
+ long nX;
+ long nY;
+ long nWidth;
+ long nHeight;
+ ImplRegionInfo aInfo;
+ BOOL bRegionRect;
aRegion.ImplBeginAddRect();
bRegionRect = rDeviceRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight );
@@ -1892,83 +1892,83 @@ Region OutputDevice::PixelToLogic( const Region& rDeviceRegion,
// -----------------------------------------------------------------------
-#define ENTER0( rSource, pMapModeSource, pMapModeDest ) \
- if ( !pMapModeSource ) \
- pMapModeSource = &maMapMode; \
- if ( !pMapModeDest ) \
- pMapModeDest = &maMapMode; \
- if ( *pMapModeSource == *pMapModeDest ) \
+#define ENTER0( rSource, pMapModeSource, pMapModeDest ) \
+ if ( !pMapModeSource ) \
+ pMapModeSource = &maMapMode; \
+ if ( !pMapModeDest ) \
+ pMapModeDest = &maMapMode; \
+ if ( *pMapModeSource == *pMapModeDest ) \
return rSource
// -----------------------------------------------------------------------
-#define ENTER1( rSource, pMapModeSource, pMapModeDest ) \
- ENTER0( rSource, pMapModeSource, pMapModeDest ); \
+#define ENTER1( rSource, pMapModeSource, pMapModeDest ) \
+ ENTER0( rSource, pMapModeSource, pMapModeDest ); \
\
- ImplMapRes aMapResSource; \
- ImplMapRes aMapResDest; \
+ ImplMapRes aMapResSource; \
+ ImplMapRes aMapResDest; \
\
- if ( !mbMap || pMapModeSource != &maMapMode ) \
- { \
- if ( pMapModeSource->GetMapUnit() == MAP_RELATIVE ) \
- aMapResSource = maMapRes; \
- ImplCalcMapResolution( *pMapModeSource, \
- mnDPIX, mnDPIY, aMapResSource ); \
- } \
- else \
- aMapResSource = maMapRes; \
- if ( !mbMap || pMapModeDest != &maMapMode ) \
- { \
- if ( pMapModeDest->GetMapUnit() == MAP_RELATIVE ) \
- aMapResDest = maMapRes; \
- ImplCalcMapResolution( *pMapModeDest, \
- mnDPIX, mnDPIY, aMapResDest ); \
- } \
- else \
+ if ( !mbMap || pMapModeSource != &maMapMode ) \
+ { \
+ if ( pMapModeSource->GetMapUnit() == MAP_RELATIVE ) \
+ aMapResSource = maMapRes; \
+ ImplCalcMapResolution( *pMapModeSource, \
+ mnDPIX, mnDPIY, aMapResSource ); \
+ } \
+ else \
+ aMapResSource = maMapRes; \
+ if ( !mbMap || pMapModeDest != &maMapMode ) \
+ { \
+ if ( pMapModeDest->GetMapUnit() == MAP_RELATIVE ) \
+ aMapResDest = maMapRes; \
+ ImplCalcMapResolution( *pMapModeDest, \
+ mnDPIX, mnDPIY, aMapResDest ); \
+ } \
+ else \
aMapResDest = maMapRes
// -----------------------------------------------------------------------
-#define ENTER2( eUnitSource, eUnitDest ) \
- DBG_ASSERT( eUnitSource != MAP_SYSFONT \
- && eUnitSource != MAP_APPFONT \
- && eUnitSource != MAP_RELATIVE, \
+#define ENTER2( eUnitSource, eUnitDest ) \
+ DBG_ASSERT( eUnitSource != MAP_SYSFONT \
+ && eUnitSource != MAP_APPFONT \
+ && eUnitSource != MAP_RELATIVE, \
"Source MapUnit nicht erlaubt" ); \
- DBG_ASSERT( eUnitDest != MAP_SYSFONT \
- && eUnitDest != MAP_APPFONT \
- && eUnitDest != MAP_RELATIVE, \
+ DBG_ASSERT( eUnitDest != MAP_SYSFONT \
+ && eUnitDest != MAP_APPFONT \
+ && eUnitDest != MAP_RELATIVE, \
"Destination MapUnit nicht erlaubt" ); \
- DBG_ASSERTWARNING( eUnitSource != MAP_PIXEL, \
+ DBG_ASSERTWARNING( eUnitSource != MAP_PIXEL, \
"MAP_PIXEL mit 72dpi angenaehert" ); \
- DBG_ASSERTWARNING( eUnitDest != MAP_PIXEL, \
+ DBG_ASSERTWARNING( eUnitDest != MAP_PIXEL, \
"MAP_PIXEL mit 72dpi angenaehert" )
// -----------------------------------------------------------------------
-#define ENTER3( eUnitSource, eUnitDest ) \
- long nNumerator = 1; \
- long nDenominator = 1; \
- DBG_ASSERT( eUnitSource < MAP_LASTENUMDUMMY, "Invalid source map unit"); \
- DBG_ASSERT( eUnitDest < MAP_LASTENUMDUMMY, "Invalid destination map unit"); \
- if( (eUnitSource < MAP_LASTENUMDUMMY) && (eUnitDest < MAP_LASTENUMDUMMY) ) \
- { \
- nNumerator = aImplNumeratorAry[eUnitSource] * \
- aImplDenominatorAry[eUnitDest]; \
- nDenominator = aImplNumeratorAry[eUnitDest] * \
- aImplDenominatorAry[eUnitSource]; \
+#define ENTER3( eUnitSource, eUnitDest ) \
+ long nNumerator = 1; \
+ long nDenominator = 1; \
+ DBG_ASSERT( eUnitSource < MAP_LASTENUMDUMMY, "Invalid source map unit"); \
+ DBG_ASSERT( eUnitDest < MAP_LASTENUMDUMMY, "Invalid destination map unit"); \
+ if( (eUnitSource < MAP_LASTENUMDUMMY) && (eUnitDest < MAP_LASTENUMDUMMY) ) \
+ { \
+ nNumerator = aImplNumeratorAry[eUnitSource] * \
+ aImplDenominatorAry[eUnitDest]; \
+ nDenominator = aImplNumeratorAry[eUnitDest] * \
+ aImplDenominatorAry[eUnitSource]; \
} \
- if ( eUnitSource == MAP_PIXEL ) \
- nDenominator *= 72; \
- else if( eUnitDest == MAP_PIXEL ) \
+ if ( eUnitSource == MAP_PIXEL ) \
+ nDenominator *= 72; \
+ else if( eUnitDest == MAP_PIXEL ) \
nNumerator *= 72
// -----------------------------------------------------------------------
-#define ENTER4( rMapModeSource, rMapModeDest ) \
- ImplMapRes aMapResSource; \
- ImplMapRes aMapResDest; \
+#define ENTER4( rMapModeSource, rMapModeDest ) \
+ ImplMapRes aMapResSource; \
+ ImplMapRes aMapResDest; \
\
- ImplCalcMapResolution( rMapModeSource, 72, 72, aMapResSource ); \
+ ImplCalcMapResolution( rMapModeSource, 72, 72, aMapResSource ); \
ImplCalcMapResolution( rMapModeDest, 72, 72, aMapResDest )
// -----------------------------------------------------------------------
@@ -2113,8 +2113,8 @@ static long fn3( const long n1, const long n2, const long n3 )
} // of if
else
{
- long n4 = n1 * n2;
- const long n3_2 = n3 / 2;
+ long n4 = n1 * n2;
+ const long n3_2 = n3 / 2;
if( n4 < 0 )
{
@@ -2216,7 +2216,7 @@ Point OutputDevice::LogicToLogic( const Point& rPtSource,
return rPtSource;
MapUnit eUnitSource = rMapModeSource.GetMapUnit();
- MapUnit eUnitDest = rMapModeDest.GetMapUnit();
+ MapUnit eUnitDest = rMapModeDest.GetMapUnit();
ENTER2( eUnitSource, eUnitDest );
if ( rMapModeSource.mpImplMapMode->mbSimple &&
@@ -2252,7 +2252,7 @@ Size OutputDevice::LogicToLogic( const Size& rSzSource,
return rSzSource;
MapUnit eUnitSource = rMapModeSource.GetMapUnit();
- MapUnit eUnitDest = rMapModeDest.GetMapUnit();
+ MapUnit eUnitDest = rMapModeDest.GetMapUnit();
ENTER2( eUnitSource, eUnitDest );
if ( rMapModeSource.mpImplMapMode->mbSimple &&
@@ -2286,7 +2286,7 @@ basegfx::B2DPolygon OutputDevice::LogicToLogic( const basegfx::B2DPolygon& rPoly
return rPolySource;
MapUnit eUnitSource = rMapModeSource.GetMapUnit();
- MapUnit eUnitDest = rMapModeDest.GetMapUnit();
+ MapUnit eUnitDest = rMapModeDest.GetMapUnit();
ENTER2( eUnitSource, eUnitDest );
basegfx::B2DHomMatrix aTransform;
@@ -2331,7 +2331,7 @@ basegfx::B2DPolyPolygon OutputDevice::LogicToLogic( const basegfx::B2DPolyPolygo
return rPolySource;
MapUnit eUnitSource = rMapModeSource.GetMapUnit();
- MapUnit eUnitDest = rMapModeDest.GetMapUnit();
+ MapUnit eUnitDest = rMapModeDest.GetMapUnit();
ENTER2( eUnitSource, eUnitDest );
basegfx::B2DHomMatrix aTransform;
@@ -2376,7 +2376,7 @@ Rectangle OutputDevice::LogicToLogic( const Rectangle& rRectSource,
return rRectSource;
MapUnit eUnitSource = rMapModeSource.GetMapUnit();
- MapUnit eUnitDest = rMapModeDest.GetMapUnit();
+ MapUnit eUnitDest = rMapModeDest.GetMapUnit();
ENTER2( eUnitSource, eUnitDest );
if ( rMapModeSource.mpImplMapMode->mbSimple &&
@@ -2469,7 +2469,7 @@ long Window::ImplLogicUnitToPixelX( long nX, MapUnit eUnit )
// Es wird kein BigInt gebraucht, da diese Funktion nur zur Umrechnung
// von Fensterposition benutzt wird
- nX = nX * mnDPIX * pFrameData->maMapUnitRes.mnMapScNumX;
+ nX = nX * mnDPIX * pFrameData->maMapUnitRes.mnMapScNumX;
nX += nX >= 0 ? (pFrameData->maMapUnitRes.mnMapScDenomX/2) :
-((pFrameData->maMapUnitRes.mnMapScDenomX-1)/2);
nX /= pFrameData->maMapUnitRes.mnMapScDenomX;
@@ -2496,7 +2496,7 @@ long Window::ImplLogicUnitToPixelY( long nY, MapUnit eUnit )
// Es wird kein BigInt gebraucht, da diese Funktion nur zur Umrechnung
// von Fensterposition benutzt wird
- nY = nY * mnDPIY * pFrameData->maMapUnitRes.mnMapScNumY;
+ nY = nY * mnDPIY * pFrameData->maMapUnitRes.mnMapScNumY;
nY += nY >= 0 ? (pFrameData->maMapUnitRes.mnMapScDenomY/2) :
-((pFrameData->maMapUnitRes.mnMapScDenomY-1)/2);
nY /= pFrameData->maMapUnitRes.mnMapScDenomY;
diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx
index 32a6cd6afb90..c54a1a13f5ae 100644
--- a/vcl/source/gdi/pdfextoutdevdata.cxx
+++ b/vcl/source/gdi/pdfextoutdevdata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,31 +70,31 @@ struct PDFExtOutDevDataSync
EndGroupGfxLink
};
- sal_uInt32 nIdx;
- Action eAct;
+ sal_uInt32 nIdx;
+ Action eAct;
};
struct GlobalSyncData
{
- std::deque< PDFExtOutDevDataSync::Action > mActions;
- std::deque< MapMode > mParaMapModes;
- std::deque< Rectangle > mParaRects;
- std::deque< sal_Int32 > mParaInts;
- std::deque< sal_uInt32 > mParauInts;
- std::deque< rtl::OUString > mParaOUStrings;
- std::deque< PDFWriter::DestAreaType > mParaDestAreaTypes;
- std::deque< PDFNote > mParaPDFNotes;
- std::deque< PDFWriter::PageTransition > mParaPageTransitions;
+ std::deque< PDFExtOutDevDataSync::Action > mActions;
+ std::deque< MapMode > mParaMapModes;
+ std::deque< Rectangle > mParaRects;
+ std::deque< sal_Int32 > mParaInts;
+ std::deque< sal_uInt32 > mParauInts;
+ std::deque< rtl::OUString > mParaOUStrings;
+ std::deque< PDFWriter::DestAreaType > mParaDestAreaTypes;
+ std::deque< PDFNote > mParaPDFNotes;
+ std::deque< PDFWriter::PageTransition > mParaPageTransitions;
sal_Int32 GetMappedId();
sal_Int32 GetMappedStructId( sal_Int32 );
- sal_Int32 mCurId;
- std::vector< sal_Int32 > mParaIds;
- std::vector< sal_Int32 > mStructIdMap;
+ sal_Int32 mCurId;
+ std::vector< sal_Int32 > mParaIds;
+ std::vector< sal_Int32 > mStructIdMap;
- sal_Int32 mCurrentStructElement;
- std::vector< sal_Int32 > mStructParents;
+ sal_Int32 mCurrentStructElement;
+ std::vector< sal_Int32 > mStructParents;
GlobalSyncData() :
mCurId ( 0 ),
mCurrentStructElement( 0 )
@@ -119,7 +119,7 @@ sal_Int32 GlobalSyncData::GetMappedId()
nLinkId = mParaIds[ nLinkId ];
else
nLinkId = -1;
-
+
DBG_ASSERT( nLinkId >= 0, "unmapped id in GlobalSyncData" );
}
@@ -273,19 +273,19 @@ void GlobalSyncData::PlayGlobalActions( PDFWriter& rWriter )
struct PageSyncData
{
- std::deque< PDFExtOutDevDataSync > mActions;
- std::deque< Rectangle > mParaRects;
- std::deque< sal_Int32 > mParaInts;
- std::deque< rtl::OUString > mParaOUStrings;
- std::deque< PDFWriter::StructElement > mParaStructElements;
- std::deque< PDFWriter::StructAttribute > mParaStructAttributes;
- std::deque< PDFWriter::StructAttributeValue > mParaStructAttributeValues;
- std::deque< Graphic > mGraphics;
+ std::deque< PDFExtOutDevDataSync > mActions;
+ std::deque< Rectangle > mParaRects;
+ std::deque< sal_Int32 > mParaInts;
+ std::deque< rtl::OUString > mParaOUStrings;
+ std::deque< PDFWriter::StructElement > mParaStructElements;
+ std::deque< PDFWriter::StructAttribute > mParaStructAttributes;
+ std::deque< PDFWriter::StructAttributeValue > mParaStructAttributeValues;
+ std::deque< Graphic > mGraphics;
std::deque< ::boost::shared_ptr< PDFWriter::AnyWidget > >
mControls;
- GlobalSyncData* mpGlobalData;
+ GlobalSyncData* mpGlobalData;
- sal_Bool mbGroupIgnoreGDIMtfActions;
+ sal_Bool mbGroupIgnoreGDIMtfActions;
PageSyncData( GlobalSyncData* pGlobal ) : mbGroupIgnoreGDIMtfActions ( sal_False ) { mpGlobalData = pGlobal; }
@@ -302,7 +302,7 @@ void PageSyncData::PushAction( const OutputDevice& rOutDev, const PDFExtOutDevDa
if ( pMtf )
aSync.nIdx = pMtf->GetActionCount();
else
- aSync.nIdx = 0x7fffffff; // sync not possible
+ aSync.nIdx = 0x7fffffff; // sync not possible
mActions.push_back( aSync );
}
sal_Bool PageSyncData::PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIMtfAction, const PDFExtOutDevData& rOutDevData )
@@ -377,7 +377,7 @@ sal_Bool PageSyncData::PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIM
break;
case PDFExtOutDevDataSync::BeginGroup :
{
- /* first determining if this BeginGroup is starting a GfxLink,
+ /* first determining if this BeginGroup is starting a GfxLink,
by searching for a EndGroup or a EndGroupGfxLink */
mbGroupIgnoreGDIMtfActions = sal_False;
std::deque< PDFExtOutDevDataSync >::iterator aBeg = mActions.begin();
@@ -427,7 +427,7 @@ sal_Bool PageSyncData::PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIM
{
sal_Bool bClippingNeeded = ( aOutputRect != aVisibleOutputRect ) && !aVisibleOutputRect.IsEmpty();
- GfxLink aGfxLink( aGraphic.GetLink() );
+ GfxLink aGfxLink( aGraphic.GetLink() );
if ( aGfxLink.GetType() == GFX_LINK_TYPE_NATIVE_JPG )
{
if ( bClippingNeeded )
@@ -480,17 +480,17 @@ sal_Bool PageSyncData::PlaySyncPageAct( PDFWriter& rWriter, sal_uInt32& rCurGDIM
TYPEINIT1(PDFExtOutDevData,ExtOutDevData);
PDFExtOutDevData::PDFExtOutDevData( const OutputDevice& rOutDev ) :
- mrOutDev ( rOutDev ),
- mbTaggedPDF ( sal_False ),
- mbExportNotes ( sal_True ),
- mbTransitionEffects ( sal_True ),
+ mrOutDev ( rOutDev ),
+ mbTaggedPDF ( sal_False ),
+ mbExportNotes ( sal_True ),
+ mbTransitionEffects ( sal_True ),
mbUseLosslessCompression( sal_True ),
- mbReduceImageResolution ( sal_False ),
+ mbReduceImageResolution ( sal_False ),
mbExportNDests ( sal_False ),
- mnFormsFormat ( 0 ),
- mnPage ( -1 ),
- mpPageSyncData ( NULL ),
- mpGlobalSyncData ( new GlobalSyncData() )
+ mnFormsFormat ( 0 ),
+ mnPage ( -1 ),
+ mpPageSyncData ( NULL ),
+ mpGlobalSyncData ( new GlobalSyncData() )
{
mpPageSyncData = new PageSyncData( mpGlobalSyncData );
}
@@ -612,7 +612,7 @@ void PDFExtOutDevData::PlayGlobalActions( PDFWriter& rWriter )
//--->i56629
sal_Int32 PDFExtOutDevData::CreateNamedDest(const String& sDestName, const Rectangle& rRect, sal_Int32 nPageNr, PDFWriter::DestAreaType eType )
{
- mpGlobalSyncData->mActions.push_back( PDFExtOutDevDataSync::CreateNamedDest );
+ mpGlobalSyncData->mActions.push_back( PDFExtOutDevDataSync::CreateNamedDest );
mpGlobalSyncData->mParaOUStrings.push_back( sDestName );
mpGlobalSyncData->mParaRects.push_back( rRect );
mpGlobalSyncData->mParaMapModes.push_back( mrOutDev.GetMapMode() );
@@ -784,10 +784,10 @@ void PDFExtOutDevData::EndGroup()
{
mpPageSyncData->PushAction( mrOutDev, PDFExtOutDevDataSync::EndGroup );
}
-void PDFExtOutDevData::EndGroup( const Graphic& rGraphic,
- BYTE nTransparency,
- const Rectangle& rOutputRect,
- const Rectangle& rVisibleOutputRect )
+void PDFExtOutDevData::EndGroup( const Graphic& rGraphic,
+ BYTE nTransparency,
+ const Rectangle& rOutputRect,
+ const Rectangle& rVisibleOutputRect )
{
mpPageSyncData->PushAction( mrOutDev, PDFExtOutDevDataSync::EndGroupGfxLink );
mpPageSyncData->mGraphics.push_back( rGraphic );
diff --git a/vcl/source/gdi/pdffontcache.cxx b/vcl/source/gdi/pdffontcache.cxx
index 2b5944377eac..30d6786baf5a 100644
--- a/vcl/source/gdi/pdffontcache.cxx
+++ b/vcl/source/gdi/pdffontcache.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/gdi/pdffontcache.hxx b/vcl/source/gdi/pdffontcache.hxx
index 30d075d23e42..791ebe0d2e01 100644
--- a/vcl/source/gdi/pdffontcache.hxx
+++ b/vcl/source/gdi/pdffontcache.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,10 +43,10 @@ namespace vcl
sal_IntPtr m_nFontId;
int m_nMagic;
bool m_bVertical;
-
+
FontIdentifier( const ImplFontData*, bool bVertical );
FontIdentifier() : m_nFontId(0), m_nMagic(0), m_bVertical( false ) {}
-
+
bool operator==( const FontIdentifier& rRight ) const
{
return m_nFontId == rRight.m_nFontId &&
@@ -66,15 +66,15 @@ namespace vcl
Ucs2UIntMap m_aGlyphIdToIndex;
};
typedef std::map< FontIdentifier, sal_uInt32 > FontToIndexMap;
-
+
std::vector< FontData > m_aFonts;
FontToIndexMap m_aFontToIndex;
-
+
FontData& getFont( const ImplFontData*, bool bVertical );
public:
PDFFontCache() {}
~PDFFontCache() {}
-
+
sal_Int32 getGlyphWidth( const ImplFontData*, sal_GlyphId, bool bVertical, SalGraphics* );
};
}
diff --git a/vcl/source/gdi/pdfwriter.cxx b/vcl/source/gdi/pdfwriter.cxx
index fd527fb94e55..632190d3e7a3 100644
--- a/vcl/source/gdi/pdfwriter.cxx
+++ b/vcl/source/gdi/pdfwriter.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 8cade3431ee1..2285fed41bdf 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -107,11 +107,11 @@ void doTestCode()
rtl::OUString aTestFile( RTL_CONSTASCII_USTRINGPARAM( "file://" ) );
aTestFile += rtl::OUString( pHome, strlen( pHome ), RTL_TEXTENCODING_MS_1252 );
aTestFile += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/pdf_export_test.pdf" ) );
-
+
PDFWriter::PDFWriterContext aContext;
- aContext.URL = aTestFile;
- aContext.Version = PDFWriter::PDF_1_4;
- aContext.Tagged = true;
+ aContext.URL = aTestFile;
+ aContext.Version = PDFWriter::PDF_1_4;
+ aContext.Tagged = true;
aContext.InitialPage = 2;
PDFWriter aWriter( aContext );
@@ -212,7 +212,7 @@ void doTestCode()
aWriter.BeginStructureElement( PDFWriter::Caption );
aWriter.DrawText( Point( 4500, 9000 ), String( RTL_CONSTASCII_USTRINGPARAM( "Some drawing stuff inside the structure" ) ) );
aWriter.EndStructureElement();
-
+
// test clipping
basegfx::B2DPolyPolygon aClip;
basegfx::B2DPolygon aClipPoly;
@@ -223,7 +223,7 @@ void doTestCode()
aClipPoly.setClosed( true );
//aClipPoly.flip();
aClip.append( aClipPoly );
-
+
aWriter.Push( PUSH_CLIPREGION | PUSH_FILLCOLOR );
aWriter.SetClipRegion( aClip );
aWriter.DrawEllipse( Rectangle( Point( 4500, 9600 ), Size( 12000, 3000 ) ) );
@@ -680,7 +680,7 @@ void PDFWriterImpl::createWidgetFieldName( sal_Int32 i_nWidgetIndex, const PDFWr
appendHex( (sal_Int8)pStr[i], aBuffer );
}
}
-
+
OString aFullName( aBuffer.makeStringAndClear() );
/* #i82785# create hierarchical fields down to the for each dot in i_rName */
@@ -753,7 +753,7 @@ void PDFWriterImpl::createWidgetFieldName( sal_Int32 i_nWidgetIndex, const PDFWr
}
}
} while( nTokenIndex != -1 );
-
+
// insert widget into its hierarchy field
if( aDomain.getLength() )
{
@@ -769,7 +769,7 @@ void PDFWriterImpl::createWidgetFieldName( sal_Int32 i_nWidgetIndex, const PDFWr
}
}
}
-
+
if( aPartialName.getLength() == 0 )
{
// how funny, an empty field name
@@ -785,7 +785,7 @@ void PDFWriterImpl::createWidgetFieldName( sal_Int32 i_nWidgetIndex, const PDFWr
if( ! m_aContext.AllowDuplicateFieldNames )
{
std::hash_map<OString, sal_Int32, OStringHash>::iterator it = m_aFieldNameMap.find( aFullName );
-
+
if( it != m_aFieldNameMap.end() ) // not unique
{
std::hash_map< OString, sal_Int32, OStringHash >::const_iterator check_it;
@@ -823,11 +823,11 @@ static void appendFixedInt( sal_Int32 nValue, OStringBuffer& rBuffer, sal_Int32
while( nDiv-- )
nFactor *= 10;
- sal_Int32 nInt = nValue / nFactor;
+ sal_Int32 nInt = nValue / nFactor;
rBuffer.append( nInt );
if( nFactor > 1 )
{
- sal_Int32 nDecimal = nValue % nFactor;
+ sal_Int32 nDecimal = nValue % nFactor;
if( nDecimal )
{
rBuffer.append( '.' );
@@ -918,7 +918,7 @@ static void appendNonStrokingColor( const Color& rColor, OStringBuffer& rBuffer
// TODO: use basegfx matrix class instead or derive from it
namespace vcl // TODO: use anonymous namespace to keep this class local
{
-/* for sparse matrices of the form (2D linear transformations)
+/* for sparse matrices of the form (2D linear transformations)
* f[0] f[1] 0
* f[2] f[3] 0
* f[4] f[5] 1
@@ -1374,7 +1374,7 @@ void PDFWriterImpl::PDFPage::appendPoint( const Point& rPoint, OStringBuffer& rB
m_pWriter->getReferenceDevice(),
rPoint ) );
- sal_Int32 nValue = aPoint.X();
+ sal_Int32 nValue = aPoint.X();
if( bNeg )
nValue = -nValue;
@@ -1382,7 +1382,7 @@ void PDFWriterImpl::PDFPage::appendPoint( const Point& rPoint, OStringBuffer& rB
rBuffer.append( ' ' );
- nValue = pointToPixel(getHeight()) - aPoint.Y();
+ nValue = pointToPixel(getHeight()) - aPoint.Y();
if( bNeg )
nValue = -nValue;
@@ -1391,13 +1391,13 @@ void PDFWriterImpl::PDFPage::appendPoint( const Point& rPoint, OStringBuffer& rB
void PDFWriterImpl::PDFPage::appendPixelPoint( const basegfx::B2DPoint& rPoint, OStringBuffer& rBuffer ) const
{
- double fValue = pixelToPoint(rPoint.getX());
+ double fValue = pixelToPoint(rPoint.getX());
appendDouble( fValue, rBuffer, nLog10Divisor );
rBuffer.append( ' ' );
- fValue = double(getHeight()) - pixelToPoint(rPoint.getY());
+ fValue = double(getHeight()) - pixelToPoint(rPoint.getY());
appendDouble( fValue, rBuffer, nLog10Divisor );
}
@@ -1423,10 +1423,10 @@ void PDFWriterImpl::PDFPage::convertRect( Rectangle& rRect ) const
m_pWriter->m_aMapMode,
m_pWriter->getReferenceDevice(),
rRect.GetSize() );
- rRect.Left() = aLL.X();
- rRect.Right() = aLL.X() + aSize.Width();
- rRect.Top() = pointToPixel(getHeight()) - aLL.Y();
- rRect.Bottom() = rRect.Top() + aSize.Height();
+ rRect.Left() = aLL.X();
+ rRect.Right() = aLL.X() + aSize.Width();
+ rRect.Top() = pointToPixel(getHeight()) - aLL.Y();
+ rRect.Bottom() = rRect.Top() + aSize.Height();
}
void PDFWriterImpl::PDFPage::appendPolygon( const Polygon& rPoly, OStringBuffer& rBuffer, bool bClose ) const
@@ -1505,7 +1505,7 @@ void PDFWriterImpl::PDFPage::appendPolygon( const basegfx::B2DPolygon& rPoly, OS
if( i != nPoints || aPoly.isClosed() )
{
sal_uInt32 nCurPoint = i % nPoints;
- sal_uInt32 nLastPoint = i-1;
+ sal_uInt32 nLastPoint = i-1;
basegfx::B2DPoint aPoint( aPoly.getB2DPoint( nCurPoint ) );
if( aPoly.isNextControlPointUsed( nLastPoint ) &&
aPoly.isPrevControlPointUsed( nCurPoint ) )
@@ -1588,7 +1588,7 @@ void PDFWriterImpl::PDFPage::appendMappedLength( double fLength, OStringBuffer&
Size aSize( lcl_convert( m_pWriter->m_aGraphicsStack.front().m_aMapMode,
m_pWriter->m_aMapMode,
m_pWriter->getReferenceDevice(),
- Size( 1000, 1000 ) ) );
+ Size( 1000, 1000 ) ) );
if( pOutLength )
*pOutLength = (sal_Int32)(fLength*(double)(bVertical ? aSize.Height() : aSize.Width())/1000.0);
fLength *= pixelToPoint((double)(bVertical ? aSize.Height() : aSize.Width()) / 1000.0);
@@ -1726,16 +1726,16 @@ PDFWriterImpl::PDFWriterImpl( const PDFWriter::PDFWriterContext& rContext )
#endif
m_aContext = rContext;
m_aStructure.push_back( PDFStructureElement() );
- m_aStructure[0].m_nOwnElement = 0;
- m_aStructure[0].m_nParentElement = 0;
+ m_aStructure[0].m_nOwnElement = 0;
+ m_aStructure[0].m_nParentElement = 0;
Font aFont;
aFont.SetName( String( RTL_CONSTASCII_USTRINGPARAM( "Times" ) ) );
aFont.SetSize( Size( 0, 12 ) );
GraphicsState aState;
- aState.m_aMapMode = m_aMapMode;
- aState.m_aFont = aFont;
+ aState.m_aMapMode = m_aMapMode;
+ aState.m_aFont = aFont;
m_aGraphicsStack.push_front( aState );
oslFileError aError = osl_openFile( m_aContext.URL.pData, &m_aFile, osl_File_OpenFlag_Write | osl_File_OpenFlag_Create );
@@ -1808,12 +1808,12 @@ PDFWriterImpl::~PDFWriterImpl()
void PDFWriterImpl::setDocInfo( const PDFDocInfo& rInfo )
{
- m_aDocInfo.Title = rInfo.Title;
- m_aDocInfo.Author = rInfo.Author;
- m_aDocInfo.Subject = rInfo.Subject;
- m_aDocInfo.Keywords = rInfo.Keywords;
- m_aDocInfo.Creator = rInfo.Creator;
- m_aDocInfo.Producer = rInfo.Producer;
+ m_aDocInfo.Title = rInfo.Title;
+ m_aDocInfo.Author = rInfo.Author;
+ m_aDocInfo.Subject = rInfo.Subject;
+ m_aDocInfo.Keywords = rInfo.Keywords;
+ m_aDocInfo.Creator = rInfo.Creator;
+ m_aDocInfo.Producer = rInfo.Producer;
//build the document id
rtl::OString aInfoValuesOut;
@@ -2226,20 +2226,20 @@ void PDFWriterImpl::getFontMetric( ImplFontSelectData* pSelect, ImplFontMetricDa
return;
const BuiltinFont* pBuiltinFont = pFD->GetBuiltinFont();
- pMetric->mnOrientation = sal::static_int_cast<short>(pSelect->mnOrientation);
- pMetric->meFamily = pBuiltinFont->m_eFamily;
- pMetric->mePitch = pBuiltinFont->m_ePitch;
- pMetric->meWeight = pBuiltinFont->m_eWeight;
- pMetric->meItalic = pBuiltinFont->m_eItalic;
- pMetric->mbSymbolFlag = pFD->IsSymbolFont();
- pMetric->mnWidth = pSelect->mnHeight;
- pMetric->mnAscent = ( pSelect->mnHeight * +pBuiltinFont->m_nAscent + 500 ) / 1000;
- pMetric->mnDescent = ( pSelect->mnHeight * -pBuiltinFont->m_nDescent + 500 ) / 1000;
- pMetric->mnIntLeading = 0;
- pMetric->mnExtLeading = 0;
- pMetric->mnSlant = 0;
- pMetric->mbScalableFont = true;
- pMetric->mbDevice = true;
+ pMetric->mnOrientation = sal::static_int_cast<short>(pSelect->mnOrientation);
+ pMetric->meFamily = pBuiltinFont->m_eFamily;
+ pMetric->mePitch = pBuiltinFont->m_ePitch;
+ pMetric->meWeight = pBuiltinFont->m_eWeight;
+ pMetric->meItalic = pBuiltinFont->m_eItalic;
+ pMetric->mbSymbolFlag = pFD->IsSymbolFont();
+ pMetric->mnWidth = pSelect->mnHeight;
+ pMetric->mnAscent = ( pSelect->mnHeight * +pBuiltinFont->m_nAscent + 500 ) / 1000;
+ pMetric->mnDescent = ( pSelect->mnHeight * -pBuiltinFont->m_nDescent + 500 ) / 1000;
+ pMetric->mnIntLeading = 0;
+ pMetric->mnExtLeading = 0;
+ pMetric->mnSlant = 0;
+ pMetric->mbScalableFont = true;
+ pMetric->mbDevice = true;
}
// -----------------------------------------------------------------------
@@ -2512,24 +2512,24 @@ const sal_Char* PDFWriterImpl::getAttributeTag( PDFWriter::StructAttribute eAttr
// fill maps once
if( aAttributeStrings.empty() )
{
- aAttributeStrings[ PDFWriter::Placement ] = "Placement";
- aAttributeStrings[ PDFWriter::WritingMode ] = "WritingMode";
- aAttributeStrings[ PDFWriter::SpaceBefore ] = "SpaceBefore";
- aAttributeStrings[ PDFWriter::SpaceAfter ] = "SpaceAfter";
- aAttributeStrings[ PDFWriter::StartIndent ] = "StartIndent";
- aAttributeStrings[ PDFWriter::EndIndent ] = "EndIndent";
- aAttributeStrings[ PDFWriter::TextIndent ] = "TextIndent";
- aAttributeStrings[ PDFWriter::TextAlign ] = "TextAlign";
- aAttributeStrings[ PDFWriter::Width ] = "Width";
- aAttributeStrings[ PDFWriter::Height ] = "Height";
- aAttributeStrings[ PDFWriter::BlockAlign ] = "BlockAlign";
- aAttributeStrings[ PDFWriter::InlineAlign ] = "InlineAlign";
- aAttributeStrings[ PDFWriter::LineHeight ] = "LineHeight";
- aAttributeStrings[ PDFWriter::BaselineShift ] = "BaselineShift";
- aAttributeStrings[ PDFWriter::TextDecorationType ] = "TextDecorationType";
- aAttributeStrings[ PDFWriter::ListNumbering ] = "ListNumbering";
- aAttributeStrings[ PDFWriter::RowSpan ] = "RowSpan";
- aAttributeStrings[ PDFWriter::ColSpan ] = "ColSpan";
+ aAttributeStrings[ PDFWriter::Placement ] = "Placement";
+ aAttributeStrings[ PDFWriter::WritingMode ] = "WritingMode";
+ aAttributeStrings[ PDFWriter::SpaceBefore ] = "SpaceBefore";
+ aAttributeStrings[ PDFWriter::SpaceAfter ] = "SpaceAfter";
+ aAttributeStrings[ PDFWriter::StartIndent ] = "StartIndent";
+ aAttributeStrings[ PDFWriter::EndIndent ] = "EndIndent";
+ aAttributeStrings[ PDFWriter::TextIndent ] = "TextIndent";
+ aAttributeStrings[ PDFWriter::TextAlign ] = "TextAlign";
+ aAttributeStrings[ PDFWriter::Width ] = "Width";
+ aAttributeStrings[ PDFWriter::Height ] = "Height";
+ aAttributeStrings[ PDFWriter::BlockAlign ] = "BlockAlign";
+ aAttributeStrings[ PDFWriter::InlineAlign ] = "InlineAlign";
+ aAttributeStrings[ PDFWriter::LineHeight ] = "LineHeight";
+ aAttributeStrings[ PDFWriter::BaselineShift ] = "BaselineShift";
+ aAttributeStrings[ PDFWriter::TextDecorationType ] = "TextDecorationType";
+ aAttributeStrings[ PDFWriter::ListNumbering ] = "ListNumbering";
+ aAttributeStrings[ PDFWriter::RowSpan ] = "RowSpan";
+ aAttributeStrings[ PDFWriter::ColSpan ] = "ColSpan";
aAttributeStrings[ PDFWriter::LinkAnnotation ] = "LinkAnnotation";
}
@@ -2550,32 +2550,32 @@ const sal_Char* PDFWriterImpl::getAttributeValueTag( PDFWriter::StructAttributeV
if( aValueStrings.empty() )
{
- aValueStrings[ PDFWriter::NONE ] = "None";
- aValueStrings[ PDFWriter::Block ] = "Block";
- aValueStrings[ PDFWriter::Inline ] = "Inline";
- aValueStrings[ PDFWriter::Before ] = "Before";
- aValueStrings[ PDFWriter::After ] = "After";
- aValueStrings[ PDFWriter::Start ] = "Start";
- aValueStrings[ PDFWriter::End ] = "End";
- aValueStrings[ PDFWriter::LrTb ] = "LrTb";
- aValueStrings[ PDFWriter::RlTb ] = "RlTb";
- aValueStrings[ PDFWriter::TbRl ] = "TbRl";
- aValueStrings[ PDFWriter::Center ] = "Center";
- aValueStrings[ PDFWriter::Justify ] = "Justify";
- aValueStrings[ PDFWriter::Auto ] = "Auto";
- aValueStrings[ PDFWriter::Middle ] = "Middle";
- aValueStrings[ PDFWriter::Normal ] = "Normal";
- aValueStrings[ PDFWriter::Underline ] = "Underline";
- aValueStrings[ PDFWriter::Overline ] = "Overline";
- aValueStrings[ PDFWriter::LineThrough ] = "LineThrough";
- aValueStrings[ PDFWriter::Disc ] = "Disc";
- aValueStrings[ PDFWriter::Circle ] = "Circle";
- aValueStrings[ PDFWriter::Square ] = "Square";
- aValueStrings[ PDFWriter::Decimal ] = "Decimal";
- aValueStrings[ PDFWriter::UpperRoman ] = "UpperRoman";
- aValueStrings[ PDFWriter::LowerRoman ] = "LowerRoman";
- aValueStrings[ PDFWriter::UpperAlpha ] = "UpperAlpha";
- aValueStrings[ PDFWriter::LowerAlpha ] = "LowerAlpha";
+ aValueStrings[ PDFWriter::NONE ] = "None";
+ aValueStrings[ PDFWriter::Block ] = "Block";
+ aValueStrings[ PDFWriter::Inline ] = "Inline";
+ aValueStrings[ PDFWriter::Before ] = "Before";
+ aValueStrings[ PDFWriter::After ] = "After";
+ aValueStrings[ PDFWriter::Start ] = "Start";
+ aValueStrings[ PDFWriter::End ] = "End";
+ aValueStrings[ PDFWriter::LrTb ] = "LrTb";
+ aValueStrings[ PDFWriter::RlTb ] = "RlTb";
+ aValueStrings[ PDFWriter::TbRl ] = "TbRl";
+ aValueStrings[ PDFWriter::Center ] = "Center";
+ aValueStrings[ PDFWriter::Justify ] = "Justify";
+ aValueStrings[ PDFWriter::Auto ] = "Auto";
+ aValueStrings[ PDFWriter::Middle ] = "Middle";
+ aValueStrings[ PDFWriter::Normal ] = "Normal";
+ aValueStrings[ PDFWriter::Underline ] = "Underline";
+ aValueStrings[ PDFWriter::Overline ] = "Overline";
+ aValueStrings[ PDFWriter::LineThrough ] = "LineThrough";
+ aValueStrings[ PDFWriter::Disc ] = "Disc";
+ aValueStrings[ PDFWriter::Circle ] = "Circle";
+ aValueStrings[ PDFWriter::Square ] = "Square";
+ aValueStrings[ PDFWriter::Decimal ] = "Decimal";
+ aValueStrings[ PDFWriter::UpperRoman ] = "UpperRoman";
+ aValueStrings[ PDFWriter::LowerRoman ] = "LowerRoman";
+ aValueStrings[ PDFWriter::UpperAlpha ] = "UpperAlpha";
+ aValueStrings[ PDFWriter::LowerAlpha ] = "LowerAlpha";
}
std::map< PDFWriter::StructAttributeValue, const char* >::const_iterator it =
@@ -3071,19 +3071,19 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont( const ImplFontDa
Int32Vector aGlyphWidths;
Ucs2UIntMap aUnicodeMap;
m_pReferenceDevice->mpGraphics->GetGlyphWidths( pFont, false, aGlyphWidths, aUnicodeMap );
-
+
OUString aTmpName;
osl_createTempFile( NULL, NULL, &aTmpName.pData );
sal_Int32 pGlyphIDs[ 256 ];
sal_uInt8 pEncoding[ 256 ];
sal_Ucs pUnicodes[ 256 ];
sal_Int32 pDuWidths[ 256 ];
-
+
memset( pGlyphIDs, 0, sizeof( pGlyphIDs ) );
memset( pEncoding, 0, sizeof( pEncoding ) );
memset( pUnicodes, 0, sizeof( pUnicodes ) );
memset( pDuWidths, 0, sizeof( pDuWidths ) );
-
+
for( sal_Ucs c = 32; c < 256; c++ )
{
pUnicodes[c] = c;
@@ -3092,7 +3092,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont( const ImplFontDa
if( aUnicodeMap.find( c ) != aUnicodeMap.end() )
pWidths[ c ] = aGlyphWidths[ aUnicodeMap[ c ] ];
}
-
+
m_pReferenceDevice->mpGraphics->CreateFontSubset( aTmpName, pFont, pGlyphIDs, pEncoding, pDuWidths, 256, aInfo );
osl_removeFile( aTmpName.pData );
}
@@ -3132,12 +3132,12 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitSystemFont( const ImplFontDa
aLine.append( " 0 R>>\n"
"endobj\n\n" );
writeBuffer( aLine.getStr(), aLine.getLength() );
-
- nFontObject = nObject;
+
+ nFontObject = nObject;
aRet[ rEmbed.m_nNormalFontID ] = nObject;
}
}
-
+
return aRet;
}
@@ -3218,7 +3218,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
}
}
}
-
+
FontSubsetInfo aInfo;
sal_Int32 pWidths[256];
const unsigned char* pFontData = NULL;
@@ -3241,13 +3241,13 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
if( pFontData[nIndex+1] == 0x03 )
break;
sal_Int32 nBytes =
- ((sal_Int32)pFontData[nIndex+2]) |
- ((sal_Int32)pFontData[nIndex+3]) << 8 |
- ((sal_Int32)pFontData[nIndex+4]) << 16 |
+ ((sal_Int32)pFontData[nIndex+2]) |
+ ((sal_Int32)pFontData[nIndex+3]) << 8 |
+ ((sal_Int32)pFontData[nIndex+4]) << 16 |
((sal_Int32)pFontData[nIndex+5]) << 24;
nIndex += nBytes+6;
}
-
+
// search for eexec
// TODO: use getPfbSegmentLengths() if possible to skip the search thingies below
nIndex = 0;
@@ -3257,7 +3257,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
do
{
while( nIndex < nFontLen-4 &&
- ( pFontData[nIndex] != 'e' ||
+ ( pFontData[nIndex] != 'e' ||
pFontData[nIndex+1] != 'e' ||
pFontData[nIndex+2] != 'x' ||
pFontData[nIndex+3] != 'e' ||
@@ -3272,7 +3272,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
// this should end the ascii part
if( nIndex > nFontLen-5 )
throw FontException();
-
+
nEndAsciiIndex = nIndex+4;
// now count backwards until we can account for 512 '0'
// which is the endmarker of the (hopefully) binary data
@@ -3290,19 +3290,19 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
// if all fonts complied
if( pFontData[nIndex] == '0' )
nFound++;
- else if( nFound > 0 &&
- pFontData[nIndex] != '\r' &&
- pFontData[nIndex] != '\t' &&
- pFontData[nIndex] != '\n' &&
+ else if( nFound > 0 &&
+ pFontData[nIndex] != '\r' &&
+ pFontData[nIndex] != '\t' &&
+ pFontData[nIndex] != '\n' &&
pFontData[nIndex] != ' ' )
break;
}
nIndex--;
}
-
+
if( nIndex < 1 || nIndex <= nEndAsciiIndex )
throw FontException();
-
+
// nLength3 is the rest of the file - excluding any section headers
// nIndex now points to the first of the 512 '0' characters marking the
// fixed content portion
@@ -3323,7 +3323,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
}
}
}
-
+
// there may be whitespace to ignore before the 512 '0'
while( pFontData[nIndex] == '\r' || pFontData[nIndex] == '\n' )
{
@@ -3337,7 +3337,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
}
}
nEndBinaryIndex = nIndex;
-
+
// search for beginning of binary section
nBeginBinaryIndex = nEndAsciiIndex;
do
@@ -3346,10 +3346,10 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
for( it = aSections.begin(); it != aSections.end() && (nBeginBinaryIndex < *it || nBeginBinaryIndex > ((*it) + 5) ); ++it )
;
} while( nBeginBinaryIndex < nEndBinaryIndex &&
- ( pFontData[nBeginBinaryIndex] == '\r' ||
- pFontData[nBeginBinaryIndex] == '\n' ||
+ ( pFontData[nBeginBinaryIndex] == '\r' ||
+ pFontData[nBeginBinaryIndex] == '\n' ||
it != aSections.end() ) );
-
+
// it seems to be vital to copy the exact whitespace between binary data
// and eexec, else a invalid font results. so make nEndAsciiIndex
// always immediate in front of nBeginBinaryIndex
@@ -3358,11 +3358,11 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
;
if( it != aSections.end() )
nEndAsciiIndex = (*it)-1;
-
+
nLength1 = nEndAsciiIndex+1; // including the last character
for( it = aSections.begin(); it != aSections.end() && *it < nEndAsciiIndex; ++it )
nLength1 -= 6; // decrease by pfb section size
-
+
// if the first four bytes are all ascii hex characters, then binary data
// has to be converted to real binary data
for( nIndex = 0; nIndex < 4 &&
@@ -3405,7 +3405,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
DBG_ASSERT( !(nLength2 & 1), "uneven number of hex chars in binary pfa section" );
nLength2 /= 2;
}
-
+
// now we can actually write the font stream !
#if OSL_DEBUG_LEVEL > 1
{
@@ -3436,13 +3436,13 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
"stream\n" );
if( !writeBuffer( aLine.getStr(), aLine.getLength() ) )
throw FontException();
-
+
sal_uInt64 nBeginStreamPos = 0;
osl_getFilePos( m_aFile, &nBeginStreamPos );
-
+
beginCompression();
checkAndEnableStreamEncryption( nStreamObject );
-
+
// write ascii section
if( aSections.begin() == aSections.end() )
{
@@ -3466,7 +3466,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
if( ! writeBuffer( pFontData+nIndex, nEndAsciiIndex-nIndex+1 ) )
throw FontException();
}
-
+
// write binary section
if( ! bConvertHexData )
{
@@ -3501,7 +3501,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
boost::shared_array<unsigned char> pWriteBuffer( new unsigned char[ nLength2 ] );
rtl_zeroMemory( pWriteBuffer.get(), nLength2 );
int nWriteIndex = 0;
-
+
int nNextSectionIndex = 0;
for( it = aSections.begin(); it != aSections.end() && *it < nBeginBinaryIndex; ++it )
;
@@ -3561,17 +3561,17 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
}
endCompression();
disableStreamEncryption();
-
-
+
+
sal_uInt64 nEndStreamPos = 0;
osl_getFilePos( m_aFile, &nEndStreamPos );
-
+
// and finally close the stream
aLine.setLength( 0 );
aLine.append( "\nendstream\nendobj\n\n" );
if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) )
throw FontException();
-
+
// write stream length object
aLine.setLength( 0 );
if( ! updateObject( nStreamLengthObject ) )
@@ -3597,21 +3597,21 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
aErrorComment.append( sal_Int32(pFont->GetWeight()) );
emitComment( aErrorComment.getStr() );
}
-
+
if( nStreamObject )
// write font descriptor
nFontDescriptor = emitFontDescriptor( pFont, aInfo, 0, nStreamObject );
-
+
if( nFontDescriptor )
{
if( pEncoding )
nToUnicodeStream = createToUnicodeCMap( nEncoding, &aUnicodes[0], pUnicodesPerGlyph, pEncToUnicodeIndex, SAL_N_ELEMENTS(nEncoding) );
-
+
// write font object
sal_Int32 nObject = createObject();
if( ! updateObject( nObject ) )
throw FontException();
-
+
OStringBuffer aLine( 1024 );
aLine.append( nObject );
aLine.append( " 0 obj\n"
@@ -3640,11 +3640,11 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
"endobj\n\n" );
if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) )
throw FontException();
-
+
nFontObject = nObject;
-
+
aRet[ rEmbed.m_nNormalFontID ] = nObject;
-
+
// write additional encodings
for( std::list< EmbedEncoding >::iterator enc_it = rEmbed.m_aExtendedEncodings.begin(); enc_it != rEmbed.m_aExtendedEncodings.end(); ++enc_it )
{
@@ -3653,7 +3653,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
sal_Int32 nEncObject = createObject();
if( ! updateObject( nEncObject ) )
throw FontException();
-
+
OutputDevice* pRef = getReferenceDevice();
pRef->Push( PUSH_FONT | PUSH_MAPMODE );
pRef->SetMapMode( MapMode( MAP_PIXEL ) );
@@ -3663,7 +3663,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
aFont.SetPitch( pFont->GetPitch() );
pRef->SetFont( aFont );
pRef->ImplNewFont();
-
+
aLine.setLength( 0 );
aLine.append( nEncObject );
aLine.append( " 0 obj\n"
@@ -3679,7 +3679,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
pEncToUnicodeIndex[nEncoded] = static_cast<sal_Int32>(aUnicodes.size());
aUnicodes.push_back( nEncodedCodes[nEncoded] );
pUnicodesPerGlyph[nEncoded] = 1;
-
+
aLine.append( " /" );
aLine.append( str_it->m_aName );
if( !((++nEncoded) & 15) )
@@ -3687,18 +3687,18 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
}
aLine.append( "]>>\n"
"endobj\n\n" );
-
+
pRef->Pop();
-
+
if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) )
throw FontException();
-
+
nToUnicodeStream = createToUnicodeCMap( nEncoding, &aUnicodes[0], pUnicodesPerGlyph, pEncToUnicodeIndex, nEncoded );
-
+
nObject = createObject();
if( ! updateObject( nObject ) )
throw FontException();
-
+
aLine.setLength( 0 );
aLine.append( nObject );
aLine.append( " 0 obj\n"
@@ -3731,7 +3731,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
"endobj\n\n" );
if( ! writeBuffer( aLine.getStr(), aLine.getLength() ) )
throw FontException();
-
+
aRet[ enc_it->m_nFontID ] = nObject;
}
}
@@ -3742,7 +3742,7 @@ std::map< sal_Int32, sal_Int32 > PDFWriterImpl::emitEmbeddedFont( const ImplFont
endCompression();
disableStreamEncryption();
}
-
+
if( pFontData )
m_pReferenceDevice->mpGraphics->FreeEmbedFontData( pFontData, nFontLen );
@@ -3968,11 +3968,11 @@ bool PDFWriterImpl::emitFonts()
{
if( ! m_pReferenceDevice->ImplGetGraphics() )
return false;
-
+
OStringBuffer aLine( 1024 );
-
+
std::map< sal_Int32, sal_Int32 > aFontIDToObject;
-
+
OUString aTmpName;
osl_createTempFile( NULL, NULL, &aTmpName.pData );
for( FontSubsetData::iterator it = m_aSubsets.begin(); it != m_aSubsets.end(); ++it )
@@ -3989,7 +3989,7 @@ bool PDFWriterImpl::emitFonts()
int nGlyphs = 1;
// fill arrays and prepare encoding index map
sal_Int32 nToUnicodeStream = 0;
-
+
rtl_zeroMemory( pGlyphIDs, sizeof( pGlyphIDs ) );
rtl_zeroMemory( pEncoding, sizeof( pEncoding ) );
rtl_zeroMemory( pUnicodesPerGlyph, sizeof( pUnicodesPerGlyph ) );
@@ -3997,10 +3997,10 @@ bool PDFWriterImpl::emitFonts()
for( FontEmitMapping::iterator fit = lit->m_aMapping.begin(); fit != lit->m_aMapping.end();++fit )
{
sal_uInt8 nEnc = fit->second.getGlyphId();
-
+
DBG_ASSERT( pGlyphIDs[nEnc] == 0 && pEncoding[nEnc] == 0, "duplicate glyph" );
DBG_ASSERT( nEnc <= lit->m_aMapping.size(), "invalid glyph encoding" );
-
+
pGlyphIDs[ nEnc ] = fit->first;
pEncoding[ nEnc ] = nEnc;
pEncToUnicodeIndex[ nEnc ] = static_cast<sal_Int32>(aUnicodes.size());
@@ -4027,7 +4027,7 @@ bool PDFWriterImpl::emitFonts()
CHECK_RETURN( (osl_File_E_None == osl_setFilePos( aFontFile, osl_Pos_End, 0 ) ) );
CHECK_RETURN( (osl_File_E_None == osl_getFilePos( aFontFile, &nLength1 ) ) );
CHECK_RETURN( (osl_File_E_None == osl_setFilePos( aFontFile, osl_Pos_Absolut, 0 ) ) );
-
+
#if OSL_DEBUG_LEVEL > 1
{
OStringBuffer aLine1( " PDFWriterImpl::emitFonts" );
@@ -4047,17 +4047,17 @@ bool PDFWriterImpl::emitFonts()
"/Filter/FlateDecode"
#endif
"/Length1 " );
-
+
sal_uInt64 nStartPos = 0;
if( aSubsetInfo.m_nFontType == FontSubsetInfo::SFNT_TTF )
{
aLine.append( (sal_Int32)nLength1 );
-
+
aLine.append( ">>\n"
"stream\n" );
CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) );
CHECK_RETURN( (osl_File_E_None == osl_getFilePos( m_aFile, &nStartPos ) ) );
-
+
// copy font file
beginCompression();
checkAndEnableStreamEncryption( nFontStream );
@@ -4079,7 +4079,7 @@ bool PDFWriterImpl::emitFonts()
else if( (aSubsetInfo.m_nFontType & FontSubsetInfo::TYPE1_PFB) != 0 ) // TODO: also support PFA?
{
boost::shared_array<unsigned char> pBuffer( new unsigned char[ nLength1 ] );
-
+
sal_uInt64 nBytesRead = 0;
CHECK_RETURN( (osl_File_E_None == osl_readFile( aFontFile, pBuffer.get(), nLength1, &nBytesRead ) ) );
DBG_ASSERT( nBytesRead==nLength1, "PDF-FontSubset read incomplete!" );
@@ -4094,12 +4094,12 @@ bool PDFWriterImpl::emitFonts()
aLine.append( (sal_Int32)aSegmentLengths[1] );
aLine.append( "/Length3 " );
aLine.append( (sal_Int32)aSegmentLengths[2] );
-
+
aLine.append( ">>\n"
"stream\n" );
CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) );
CHECK_RETURN( (osl_File_E_None == osl_getFilePos( m_aFile, &nStartPos ) ) );
-
+
// emit PFB-sections without section headers
beginCompression();
checkAndEnableStreamEncryption( nFontStream );
@@ -4112,19 +4112,19 @@ bool PDFWriterImpl::emitFonts()
fprintf( stderr, "PDF: CreateFontSubset result in not yet supported format=%d\n",aSubsetInfo.m_nFontType);
aLine.append( "0 >>\nstream\n" );
}
-
+
endCompression();
disableStreamEncryption();
// close the file
osl_closeFile( aFontFile );
-
+
sal_uInt64 nEndPos = 0;
CHECK_RETURN( (osl_File_E_None == osl_getFilePos( m_aFile, &nEndPos ) ) );
// end the stream
aLine.setLength( 0 );
aLine.append( "\nendstream\nendobj\n\n" );
CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) );
-
+
// emit stream length object
CHECK_RETURN( updateObject( nStreamLengthObject ) );
aLine.setLength( 0 );
@@ -4133,18 +4133,18 @@ bool PDFWriterImpl::emitFonts()
aLine.append( (sal_Int64)(nEndPos-nStartPos) );
aLine.append( "\nendobj\n\n" );
CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) );
-
+
// write font descriptor
sal_Int32 nFontDescriptor = emitFontDescriptor( it->first, aSubsetInfo, lit->m_nFontID, nFontStream );
-
+
if( nToUnicodeStream )
nToUnicodeStream = createToUnicodeCMap( pEncoding, &aUnicodes[0], pUnicodesPerGlyph, pEncToUnicodeIndex, nGlyphs );
-
+
sal_Int32 nFontObject = createObject();
CHECK_RETURN( updateObject( nFontObject ) );
aLine.setLength( 0 );
aLine.append( nFontObject );
-
+
aLine.append( " 0 obj\n" );
aLine.append( ((aSubsetInfo.m_nFontType & FontSubsetInfo::ANY_TYPE1) != 0) ?
"<</Type/Font/Subtype/Type1/BaseFont/" :
@@ -4174,7 +4174,7 @@ bool PDFWriterImpl::emitFonts()
aLine.append( ">>\n"
"endobj\n\n" );
CHECK_RETURN( writeBuffer( aLine.getStr(), aLine.getLength() ) );
-
+
aFontIDToObject[ lit->m_nFontID ] = nFontObject;
}
else
@@ -4195,7 +4195,7 @@ bool PDFWriterImpl::emitFonts()
}
}
osl_removeFile( aTmpName.pData );
-
+
// emit embedded fonts
for( FontEmbedData::iterator eit = m_aEmbeddedFonts.begin(); eit != m_aEmbeddedFonts.end(); ++eit )
{
@@ -4242,7 +4242,7 @@ bool PDFWriterImpl::emitFonts()
}
appendBuiltinFontsToDict( aFontDict );
aFontDict.append( "\n>>\nendobj\n\n" );
-
+
CHECK_RETURN( updateObject( getFontDictObject() ) );
CHECK_RETURN( writeBuffer( aFontDict.getStr(), aFontDict.getLength() ) );
return true;
@@ -4424,8 +4424,8 @@ bool PDFWriterImpl::appendDest( sal_Int32 nDestID, OStringBuffer& rBuffer )
}
- const PDFDest& rDest = m_aDests[ nDestID ];
- const PDFPage& rDestPage = m_aPages[ rDest.m_nPage ];
+ const PDFDest& rDest = m_aDests[ nDestID ];
+ const PDFPage& rDestPage = m_aPages[ rDest.m_nPage ];
rBuffer.append( '[' );
rBuffer.append( rDestPage.m_nPageObject );
@@ -4484,7 +4484,7 @@ bool PDFWriterImpl::emitLinkAnnotations()
int nAnnots = m_aLinks.size();
for( int i = 0; i < nAnnots; i++ )
{
- const PDFLink& rLink = m_aLinks[i];
+ const PDFLink& rLink = m_aLinks[i];
if( ! updateObject( rLink.m_nObject ) )
continue;
@@ -4711,7 +4711,7 @@ bool PDFWriterImpl::emitNoteAnnotations()
int nAnnots = m_aNotes.size();
for( int i = 0; i < nAnnots; i++ )
{
- const PDFNoteEntry& rNote = m_aNotes[i];
+ const PDFNoteEntry& rNote = m_aNotes[i];
if( ! updateObject( rNote.m_nObject ) )
return false;
@@ -4916,9 +4916,9 @@ Font PDFWriterImpl::drawFieldBorder( PDFWidget& rIntern,
sal_Int32 nDelta = aFont.GetHeight()/4;
if( nDelta < 1 )
nDelta = 1;
- rIntern.m_aRect.Left() += nDelta;
- rIntern.m_aRect.Top() += nDelta;
- rIntern.m_aRect.Right() -= nDelta;
+ rIntern.m_aRect.Left() += nDelta;
+ rIntern.m_aRect.Top() += nDelta;
+ rIntern.m_aRect.Right() -= nDelta;
rIntern.m_aRect.Bottom()-= nDelta;
}
}
@@ -4956,7 +4956,7 @@ void PDFWriterImpl::createDefaultEditAppearance( PDFWidget& rEdit, const PDFWrit
aDA.append( ' ' );
m_aPages[ m_nCurrentPage ].appendMappedLength( sal_Int32( aFont.GetHeight() ), aDA );
aDA.append( " Tf" );
-
+
/* create an empty appearance stream, let the viewer create
the appearance at runtime. This is because AR5 seems to
paint the widget appearance always, and a dynamically created
@@ -5054,10 +5054,10 @@ void PDFWriterImpl::createDefaultCheckBoxAppearance( PDFWidget& rBox, const PDFW
Rectangle aCheckRect, aTextRect;
if( rWidget.ButtonIsLeft )
{
- aCheckRect.Left() = rBox.m_aRect.Left() + nDelta;
- aCheckRect.Top() = rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
- aCheckRect.Right() = aCheckRect.Left() + aFontSize.Height();
- aCheckRect.Bottom() = aCheckRect.Top() + aFontSize.Height();
+ aCheckRect.Left() = rBox.m_aRect.Left() + nDelta;
+ aCheckRect.Top() = rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
+ aCheckRect.Right() = aCheckRect.Left() + aFontSize.Height();
+ aCheckRect.Bottom() = aCheckRect.Top() + aFontSize.Height();
// #i74206# handle small controls without text area
while( aCheckRect.GetWidth() > rBox.m_aRect.GetWidth() && aCheckRect.GetWidth() > nDelta )
@@ -5067,17 +5067,17 @@ void PDFWriterImpl::createDefaultCheckBoxAppearance( PDFWidget& rBox, const PDFW
aCheckRect.Bottom() -= nDelta - (nDelta/2);
}
- aTextRect.Left() = rBox.m_aRect.Left() + aCheckRect.GetWidth()+5*nDelta;
- aTextRect.Top() = rBox.m_aRect.Top();
- aTextRect.Right() = aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
- aTextRect.Bottom() = rBox.m_aRect.Bottom();
+ aTextRect.Left() = rBox.m_aRect.Left() + aCheckRect.GetWidth()+5*nDelta;
+ aTextRect.Top() = rBox.m_aRect.Top();
+ aTextRect.Right() = aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
+ aTextRect.Bottom() = rBox.m_aRect.Bottom();
}
else
{
- aCheckRect.Left() = rBox.m_aRect.Right() - nDelta - aFontSize.Height();
- aCheckRect.Top() = rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
- aCheckRect.Right() = aCheckRect.Left() + aFontSize.Height();
- aCheckRect.Bottom() = aCheckRect.Top() + aFontSize.Height();
+ aCheckRect.Left() = rBox.m_aRect.Right() - nDelta - aFontSize.Height();
+ aCheckRect.Top() = rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
+ aCheckRect.Right() = aCheckRect.Left() + aFontSize.Height();
+ aCheckRect.Bottom() = aCheckRect.Top() + aFontSize.Height();
// #i74206# handle small controls without text area
while( aCheckRect.GetWidth() > rBox.m_aRect.GetWidth() && aCheckRect.GetWidth() > nDelta )
@@ -5087,10 +5087,10 @@ void PDFWriterImpl::createDefaultCheckBoxAppearance( PDFWidget& rBox, const PDFW
aCheckRect.Bottom() -= nDelta - (nDelta/2);
}
- aTextRect.Left() = rBox.m_aRect.Left();
- aTextRect.Top() = rBox.m_aRect.Top();
- aTextRect.Right() = aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
- aTextRect.Bottom() = rBox.m_aRect.Bottom();
+ aTextRect.Left() = rBox.m_aRect.Left();
+ aTextRect.Top() = rBox.m_aRect.Top();
+ aTextRect.Right() = aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
+ aTextRect.Bottom() = rBox.m_aRect.Bottom();
}
setLineColor( Color( COL_BLACK ) );
setFillColor( Color( COL_TRANSPARENT ) );
@@ -5179,10 +5179,10 @@ void PDFWriterImpl::createDefaultRadioButtonAppearance( PDFWidget& rBox, const P
Rectangle aCheckRect, aTextRect;
if( rWidget.ButtonIsLeft )
{
- aCheckRect.Left() = rBox.m_aRect.Left() + nDelta;
- aCheckRect.Top() = rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
- aCheckRect.Right() = aCheckRect.Left() + aFontSize.Height();
- aCheckRect.Bottom() = aCheckRect.Top() + aFontSize.Height();
+ aCheckRect.Left() = rBox.m_aRect.Left() + nDelta;
+ aCheckRect.Top() = rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
+ aCheckRect.Right() = aCheckRect.Left() + aFontSize.Height();
+ aCheckRect.Bottom() = aCheckRect.Top() + aFontSize.Height();
// #i74206# handle small controls without text area
while( aCheckRect.GetWidth() > rBox.m_aRect.GetWidth() && aCheckRect.GetWidth() > nDelta )
@@ -5192,17 +5192,17 @@ void PDFWriterImpl::createDefaultRadioButtonAppearance( PDFWidget& rBox, const P
aCheckRect.Bottom() -= nDelta - (nDelta/2);
}
- aTextRect.Left() = rBox.m_aRect.Left() + aCheckRect.GetWidth()+5*nDelta;
- aTextRect.Top() = rBox.m_aRect.Top();
- aTextRect.Right() = aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
- aTextRect.Bottom() = rBox.m_aRect.Bottom();
+ aTextRect.Left() = rBox.m_aRect.Left() + aCheckRect.GetWidth()+5*nDelta;
+ aTextRect.Top() = rBox.m_aRect.Top();
+ aTextRect.Right() = aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
+ aTextRect.Bottom() = rBox.m_aRect.Bottom();
}
else
{
- aCheckRect.Left() = rBox.m_aRect.Right() - nDelta - aFontSize.Height();
- aCheckRect.Top() = rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
- aCheckRect.Right() = aCheckRect.Left() + aFontSize.Height();
- aCheckRect.Bottom() = aCheckRect.Top() + aFontSize.Height();
+ aCheckRect.Left() = rBox.m_aRect.Right() - nDelta - aFontSize.Height();
+ aCheckRect.Top() = rBox.m_aRect.Top() + (rBox.m_aRect.GetHeight()-aFontSize.Height())/2;
+ aCheckRect.Right() = aCheckRect.Left() + aFontSize.Height();
+ aCheckRect.Bottom() = aCheckRect.Top() + aFontSize.Height();
// #i74206# handle small controls without text area
while( aCheckRect.GetWidth() > rBox.m_aRect.GetWidth() && aCheckRect.GetWidth() > nDelta )
@@ -5212,10 +5212,10 @@ void PDFWriterImpl::createDefaultRadioButtonAppearance( PDFWidget& rBox, const P
aCheckRect.Bottom() -= nDelta - (nDelta/2);
}
- aTextRect.Left() = rBox.m_aRect.Left();
- aTextRect.Top() = rBox.m_aRect.Top();
- aTextRect.Right() = aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
- aTextRect.Bottom() = rBox.m_aRect.Bottom();
+ aTextRect.Left() = rBox.m_aRect.Left();
+ aTextRect.Top() = rBox.m_aRect.Top();
+ aTextRect.Right() = aTextRect.Left() + rBox.m_aRect.GetWidth() - aCheckRect.GetWidth()-6*nDelta;
+ aTextRect.Bottom() = rBox.m_aRect.Bottom();
}
setLineColor( Color( COL_BLACK ) );
setFillColor( Color( COL_TRANSPARENT ) );
@@ -5260,10 +5260,10 @@ void PDFWriterImpl::createDefaultRadioButtonAppearance( PDFWidget& rBox, const P
writeBuffer( aDA.getStr(), aDA.getLength() );
setFillColor( replaceColor( rWidget.TextColor, rSettings.GetRadioCheckTextColor() ) );
setLineColor( Color( COL_TRANSPARENT ) );
- aCheckRect.Left() += 3*nDelta;
- aCheckRect.Top() += 3*nDelta;
- aCheckRect.Bottom() -= 3*nDelta;
- aCheckRect.Right() -= 3*nDelta;
+ aCheckRect.Left() += 3*nDelta;
+ aCheckRect.Top() += 3*nDelta;
+ aCheckRect.Bottom() -= 3*nDelta;
+ aCheckRect.Right() -= 3*nDelta;
drawEllipse( aCheckRect );
writeBuffer( "\nEMC\n", 5 );
endRedirect();
@@ -6628,7 +6628,7 @@ void PDFWriterImpl::sortWidgets()
namespace vcl {
class PDFStreamIf :
- public cppu::WeakImplHelper1< com::sun::star::io::XOutputStream >
+ public cppu::WeakImplHelper1< com::sun::star::io::XOutputStream >
{
PDFWriterImpl* m_pWriter;
bool m_bWrite;
@@ -6774,10 +6774,10 @@ sal_Int32 PDFWriterImpl::getSystemFont( const Font& i_rFont )
m_aSystemFonts[ pDevFont ] = EmbedFont();
m_aSystemFonts[ pDevFont ].m_nNormalFontID = nFontID;
}
-
+
getReferenceDevice()->Pop();
getReferenceDevice()->ImplNewFont();
-
+
return nFontID;
}
@@ -7383,12 +7383,12 @@ void PDFWriterImpl::drawLayout( SalLayout& rLayout, const String& rText, bool bT
if( i < nGlyphs-1 )
{
nChars = pCharPosAry[i+1] - pCharPosAry[i];
- // #i115618# fix for simple RTL+CTL cases
- // TODO: sanitize for RTL ligatures, more complex CTL, etc.
+ // #i115618# fix for simple RTL+CTL cases
+ // TODO: sanitize for RTL ligatures, more complex CTL, etc.
if( nChars < 0 )
- nChars = -nChars;
+ nChars = -nChars;
else if( nChars == 0 )
- nChars = 1;
+ nChars = 1;
pUnicodesPerGlyph[i] = nChars;
for( int n = 1; n < nChars; n++ )
aUnicodes.push_back( rText.GetChar( sal::static_int_cast<xub_StrLen>(pCharPosAry[i]+n) ) );
@@ -7515,14 +7515,14 @@ void PDFWriterImpl::drawLayout( SalLayout& rLayout, const String& rText, bool bT
// write eventual emphasis marks
if( m_aCurrentPDFState.m_aFont.GetEmphasisMark() & EMPHASISMARK_STYLE )
{
- PolyPolygon aEmphPoly;
- Rectangle aEmphRect1;
- Rectangle aEmphRect2;
- long nEmphYOff;
- long nEmphWidth;
- long nEmphHeight;
- BOOL bEmphPolyLine;
- FontEmphasisMark nEmphMark;
+ PolyPolygon aEmphPoly;
+ Rectangle aEmphRect1;
+ Rectangle aEmphRect2;
+ long nEmphYOff;
+ long nEmphWidth;
+ long nEmphHeight;
+ BOOL bEmphPolyLine;
+ FontEmphasisMark nEmphMark;
push( PUSH_ALL );
@@ -7711,7 +7711,7 @@ void PDFWriterImpl::drawText( const Rectangle& rRect, const String& rOrigStr, US
Point aPos = rRect.TopLeft();
- long nTextHeight = m_pReferenceDevice->GetTextHeight();
+ long nTextHeight = m_pReferenceDevice->GetTextHeight();
xub_StrLen nMnemonicPos = STRING_NOTFOUND;
String aStr = rOrigStr;
@@ -7921,9 +7921,9 @@ void PDFWriterImpl::drawWaveLine( const Point& rStart, const Point& rStop, sal_I
void PDFWriterImpl::drawWaveTextLine( OStringBuffer& aLine, long nWidth, FontUnderline eTextLine, Color aColor, bool bIsAbove )
{
// note: units in pFontEntry are ref device pixel
- ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry;
- long nLineHeight = 0;
- long nLinePos = 0;
+ ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry;
+ long nLineHeight = 0;
+ long nLinePos = 0;
appendStrokingColor( aColor, aLine );
aLine.append( "\n" );
@@ -7991,10 +7991,10 @@ void PDFWriterImpl::drawWaveTextLine( OStringBuffer& aLine, long nWidth, FontUnd
void PDFWriterImpl::drawStraightTextLine( OStringBuffer& aLine, long nWidth, FontUnderline eTextLine, Color aColor, bool bIsAbove )
{
// note: units in pFontEntry are ref device pixel
- ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry;
- long nLineHeight = 0;
- long nLinePos = 0;
- long nLinePos2 = 0;
+ ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry;
+ long nLineHeight = 0;
+ long nLinePos = 0;
+ long nLinePos2 = 0;
if ( eTextLine > UNDERLINE_BOLDWAVE )
eTextLine = UNDERLINE_SINGLE;
@@ -8160,10 +8160,10 @@ void PDFWriterImpl::drawStraightTextLine( OStringBuffer& aLine, long nWidth, Fon
void PDFWriterImpl::drawStrikeoutLine( OStringBuffer& aLine, long nWidth, FontStrikeout eStrikeout, Color aColor )
{
// note: units in pFontEntry are ref device pixel
- ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry;
- long nLineHeight = 0;
- long nLinePos = 0;
- long nLinePos2 = 0;
+ ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry;
+ long nLineHeight = 0;
+ long nLinePos = 0;
+ long nLinePos2 = 0;
if ( eStrikeout > STRIKEOUT_X )
eStrikeout = STRIKEOUT_SINGLE;
@@ -8268,13 +8268,13 @@ void PDFWriterImpl::drawTextLine( const Point& rPos, long nWidth, FontStrikeout
updateGraphicsState();
// note: units in pFontEntry are ref device pixel
- ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry;
- Color aUnderlineColor = m_aCurrentPDFState.m_aTextLineColor;
- Color aOverlineColor = m_aCurrentPDFState.m_aOverlineColor;
- Color aStrikeoutColor = m_aCurrentPDFState.m_aFont.GetColor();
- bool bStrikeoutDone = false;
- bool bUnderlineDone = false;
- bool bOverlineDone = false;
+ ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry;
+ Color aUnderlineColor = m_aCurrentPDFState.m_aTextLineColor;
+ Color aOverlineColor = m_aCurrentPDFState.m_aOverlineColor;
+ Color aStrikeoutColor = m_aCurrentPDFState.m_aFont.GetColor();
+ bool bStrikeoutDone = false;
+ bool bUnderlineDone = false;
+ bool bOverlineDone = false;
if ( (eStrikeout == STRIKEOUT_SLASH) || (eStrikeout == STRIKEOUT_X) )
{
@@ -8416,12 +8416,12 @@ void PDFWriterImpl::drawTransparent( const PolyPolygon& rPolyPoly, sal_uInt32 nT
// create XObject
m_aTransparentObjects.push_back( TransparencyEmit() );
// FIXME: polygons with beziers may yield incorrect bound rect
- m_aTransparentObjects.back().m_aBoundRect = rPolyPoly.GetBoundRect();
+ m_aTransparentObjects.back().m_aBoundRect = rPolyPoly.GetBoundRect();
// convert rectangle to default user space
m_aPages.back().convertRect( m_aTransparentObjects.back().m_aBoundRect );
- m_aTransparentObjects.back().m_nObject = createObject();
+ m_aTransparentObjects.back().m_nObject = createObject();
m_aTransparentObjects.back().m_nExtGStateObject = createObject();
- m_aTransparentObjects.back().m_fAlpha = (double)(100-nTransparentPercent) / 100.0;
+ m_aTransparentObjects.back().m_fAlpha = (double)(100-nTransparentPercent) / 100.0;
m_aTransparentObjects.back().m_pContentStream = new SvMemoryStream( 256, 256 );
// create XObject's content stream
OStringBuffer aContent( 256 );
@@ -8528,8 +8528,8 @@ SvStream* PDFWriterImpl::endRedirect()
SvStream* pStream = NULL;
if( ! m_aOutputStreams.empty() )
{
- pStream = m_aOutputStreams.front().m_pStream;
- m_aMapMode = m_aOutputStreams.front().m_aMapMode;
+ pStream = m_aOutputStreams.front().m_pStream;
+ m_aMapMode = m_aOutputStreams.front().m_aMapMode;
m_aOutputStreams.pop_front();
}
@@ -8562,11 +8562,11 @@ void PDFWriterImpl::endTransparencyGroup( const Rectangle& rBoundingBox, sal_uIn
{
// create XObject
m_aTransparentObjects.push_back( TransparencyEmit() );
- m_aTransparentObjects.back().m_aBoundRect = rBoundingBox;
+ m_aTransparentObjects.back().m_aBoundRect = rBoundingBox;
// convert rectangle to default user space
m_aPages.back().convertRect( m_aTransparentObjects.back().m_aBoundRect );
- m_aTransparentObjects.back().m_nObject = createObject();
- m_aTransparentObjects.back().m_fAlpha = (double)(100-nTransparentPercent) / 100.0;
+ m_aTransparentObjects.back().m_nObject = createObject();
+ m_aTransparentObjects.back().m_fAlpha = (double)(100-nTransparentPercent) / 100.0;
// get XObject's content stream
m_aTransparentObjects.back().m_pContentStream = static_cast<SvMemoryStream*>(endRedirect());
m_aTransparentObjects.back().m_nExtGStateObject = createObject();
@@ -8599,11 +8599,11 @@ void PDFWriterImpl::endTransparencyGroup( const Rectangle& rBoundingBox, const B
{
// create XObject
m_aTransparentObjects.push_back( TransparencyEmit() );
- m_aTransparentObjects.back().m_aBoundRect = rBoundingBox;
+ m_aTransparentObjects.back().m_aBoundRect = rBoundingBox;
// convert rectangle to default user space
m_aPages.back().convertRect( m_aTransparentObjects.back().m_aBoundRect );
- m_aTransparentObjects.back().m_nObject = createObject();
- m_aTransparentObjects.back().m_fAlpha = 0.0;
+ m_aTransparentObjects.back().m_nObject = createObject();
+ m_aTransparentObjects.back().m_fAlpha = 0.0;
// get XObject's content stream
m_aTransparentObjects.back().m_pContentStream = static_cast<SvMemoryStream*>(endRedirect());
m_aTransparentObjects.back().m_nExtGStateObject = createObject();
@@ -9524,9 +9524,9 @@ bool PDFWriterImpl::writeBitmapObject( BitmapEmit& rObject, bool bMask )
{
CHECK_RETURN( updateObject( rObject.m_nObject ) );
- Bitmap aBitmap;
- Color aTransparentColor( COL_TRANSPARENT );
- bool bWriteMask = false;
+ Bitmap aBitmap;
+ Color aTransparentColor( COL_TRANSPARENT );
+ bool bWriteMask = false;
if( ! bMask )
{
aBitmap = rObject.m_aBitmap.GetBitmap();
@@ -9590,8 +9590,8 @@ bool PDFWriterImpl::writeBitmapObject( BitmapEmit& rObject, bool bMask )
break;
}
- sal_Int32 nStreamLengthObject = createObject();
- sal_Int32 nMaskObject = 0;
+ sal_Int32 nStreamLengthObject = createObject();
+ sal_Int32 nMaskObject = 0;
#if OSL_DEBUG_LEVEL > 1
{
@@ -9642,7 +9642,7 @@ bool PDFWriterImpl::writeBitmapObject( BitmapEmit& rObject, bool bMask )
//check encryption buffer size
if( checkEncryptionBufferSize( pAccess->GetPaletteEntryCount()*3 ) )
{
- int nChar = 0;
+ int nChar = 0;
//fill the encryption buffer
for( USHORT i = 0; i < pAccess->GetPaletteEntryCount(); i++ )
{
@@ -9787,8 +9787,8 @@ bool PDFWriterImpl::writeBitmapObject( BitmapEmit& rObject, bool bMask )
if( nMaskObject )
{
BitmapEmit aEmit;
- aEmit.m_nObject = nMaskObject;
- aEmit.m_aBitmap = rObject.m_aBitmap;
+ aEmit.m_nObject = nMaskObject;
+ aEmit.m_aBitmap = rObject.m_aBitmap;
return writeBitmapObject( aEmit, true );
}
@@ -9814,12 +9814,12 @@ void PDFWriterImpl::drawJPGBitmap( SvStream& rDCTData, bool bIsTrueColor, const
pStream->Seek( STREAM_SEEK_TO_END );
BitmapID aID;
- aID.m_aPixelSize = rSizePixel;
- aID.m_nSize = pStream->Tell();
+ aID.m_aPixelSize = rSizePixel;
+ aID.m_nSize = pStream->Tell();
pStream->Seek( STREAM_SEEK_TO_BEGIN );
- aID.m_nChecksum = rtl_crc32( 0, pStream->GetData(), aID.m_nSize );
+ aID.m_nChecksum = rtl_crc32( 0, pStream->GetData(), aID.m_nSize );
if( ! rMask.IsEmpty() )
- aID.m_nMaskChecksum = rMask.GetChecksum();
+ aID.m_nMaskChecksum = rMask.GetChecksum();
std::list< JPGEmit >::const_iterator it;
for( it = m_aJPGs.begin(); it != m_aJPGs.end() && ! (aID == it->m_aID); ++it )
@@ -9828,12 +9828,12 @@ void PDFWriterImpl::drawJPGBitmap( SvStream& rDCTData, bool bIsTrueColor, const
{
m_aJPGs.push_front( JPGEmit() );
JPGEmit& rEmit = m_aJPGs.front();
- rEmit.m_nObject = createObject();
- rEmit.m_aID = aID;
- rEmit.m_pStream = pStream;
+ rEmit.m_nObject = createObject();
+ rEmit.m_aID = aID;
+ rEmit.m_pStream = pStream;
rEmit.m_bTrueColor = bIsTrueColor;
if( !! rMask && rMask.GetSizePixel() == rSizePixel )
- rEmit.m_aMask = rMask;
+ rEmit.m_aMask = rMask;
it = m_aJPGs.begin();
}
@@ -9843,7 +9843,7 @@ void PDFWriterImpl::drawJPGBitmap( SvStream& rDCTData, bool bIsTrueColor, const
aLine.append( "q " );
sal_Int32 nCheckWidth = 0;
m_aPages.back().appendMappedLength( (sal_Int32)rTargetArea.GetWidth(), aLine, false, &nCheckWidth );
- aLine.append( " 0 0 " );
+ aLine.append( " 0 0 " );
sal_Int32 nCheckHeight = 0;
m_aPages.back().appendMappedLength( (sal_Int32)rTargetArea.GetHeight(), aLine, true, &nCheckHeight );
aLine.append( ' ' );
@@ -9903,10 +9903,10 @@ void PDFWriterImpl::drawBitmap( const Point& rDestPoint, const Size& rDestSize,
const PDFWriterImpl::BitmapEmit& PDFWriterImpl::createBitmapEmit( const BitmapEx& rBitmap, bool bDrawMask )
{
BitmapID aID;
- aID.m_aPixelSize = rBitmap.GetSizePixel();
- aID.m_nSize = rBitmap.GetBitCount();
- aID.m_nChecksum = rBitmap.GetBitmap().GetChecksum();
- aID.m_nMaskChecksum = 0;
+ aID.m_aPixelSize = rBitmap.GetSizePixel();
+ aID.m_nSize = rBitmap.GetBitCount();
+ aID.m_nChecksum = rBitmap.GetBitmap().GetChecksum();
+ aID.m_nMaskChecksum = 0;
if( rBitmap.IsAlpha() )
aID.m_nMaskChecksum = rBitmap.GetAlpha().GetChecksum();
else
@@ -9924,10 +9924,10 @@ const PDFWriterImpl::BitmapEmit& PDFWriterImpl::createBitmapEmit( const BitmapEx
if( it == m_aBitmaps.end() )
{
m_aBitmaps.push_front( BitmapEmit() );
- m_aBitmaps.front().m_aID = aID;
- m_aBitmaps.front().m_aBitmap = rBitmap;
- m_aBitmaps.front().m_nObject = createObject();
- m_aBitmaps.front().m_bDrawMask = bDrawMask;
+ m_aBitmaps.front().m_aID = aID;
+ m_aBitmaps.front().m_aBitmap = rBitmap;
+ m_aBitmaps.front().m_nObject = createObject();
+ m_aBitmaps.front().m_bDrawMask = bDrawMask;
it = m_aBitmaps.begin();
}
@@ -10002,9 +10002,9 @@ sal_Int32 PDFWriterImpl::createGradient( const Gradient& rGradient, const Size&
if( it == m_aGradients.end() )
{
m_aGradients.push_front( GradientEmit() );
- m_aGradients.front().m_aGradient = rGradient;
- m_aGradients.front().m_nObject = createObject();
- m_aGradients.front().m_aSize = aPtSize;
+ m_aGradients.front().m_aGradient = rGradient;
+ m_aGradients.front().m_nObject = createObject();
+ m_aGradients.front().m_aSize = aPtSize;
it = m_aGradients.begin();
}
@@ -10110,7 +10110,7 @@ void PDFWriterImpl::drawHatch( const PolyPolygon& rPolyPoly, const Hatch& rHatch
return;
if( rPolyPoly.Count() )
{
- PolyPolygon aPolyPoly( rPolyPoly );
+ PolyPolygon aPolyPoly( rPolyPoly );
aPolyPoly.Optimize( POLY_OPTIMIZE_NO_SAME );
push( PUSH_LINECOLOR );
@@ -10124,9 +10124,9 @@ void PDFWriterImpl::drawWallpaper( const Rectangle& rRect, const Wallpaper& rWal
{
MARK( "drawWallpaper" );
- bool bDrawColor = false;
- bool bDrawGradient = false;
- bool bDrawBitmap = false;
+ bool bDrawColor = false;
+ bool bDrawGradient = false;
+ bool bDrawBitmap = false;
BitmapEx aBitmap;
Point aBmpPos = rRect.TopLeft();
@@ -10149,7 +10149,7 @@ void PDFWriterImpl::drawWallpaper( const Rectangle& rRect, const Wallpaper& rWal
{
if( rWall.GetStyle() != WALLPAPER_TILE )
{
- bDrawBitmap = true;
+ bDrawBitmap = true;
if( rWall.IsGradient() )
bDrawGradient = true;
else
@@ -10214,8 +10214,8 @@ void PDFWriterImpl::drawWallpaper( const Rectangle& rRect, const Wallpaper& rWal
aTilingStream.append( " Do\n" );
m_aTilings.push_back( TilingEmit() );
- m_aTilings.back().m_nObject = createObject();
- m_aTilings.back().m_aRectangle = Rectangle( Point( 0, 0 ), aConvertRect.GetSize() );
+ m_aTilings.back().m_nObject = createObject();
+ m_aTilings.back().m_aRectangle = Rectangle( Point( 0, 0 ), aConvertRect.GetSize() );
m_aTilings.back().m_pTilingStream = new SvMemoryStream();
m_aTilings.back().m_pTilingStream->Write( aTilingStream.getStr(), aTilingStream.getLength() );
// phase the tiling so wallpaper begins on upper left
@@ -10243,9 +10243,9 @@ void PDFWriterImpl::drawWallpaper( const Rectangle& rRect, const Wallpaper& rWal
}
else
{
- aBmpPos = aRect.TopLeft();
- aBmpSize = aRect.GetSize();
- bDrawBitmap = true;
+ aBmpPos = aRect.TopLeft();
+ aBmpSize = aRect.GetSize();
+ bDrawBitmap = true;
}
if( aBitmap.IsTransparent() )
@@ -10535,7 +10535,7 @@ void PDFWriterImpl::pop()
OSL_ENSURE( m_aGraphicsStack.size() > 1, "pop without push" );
if( m_aGraphicsStack.size() < 2 )
return;
-
+
GraphicsState aState = m_aGraphicsStack.front();
m_aGraphicsStack.pop_front();
GraphicsState& rOld = m_aGraphicsStack.front();
@@ -10646,9 +10646,9 @@ void PDFWriterImpl::createNote( const Rectangle& rRect, const PDFNote& rNote, sa
return;
m_aNotes.push_back( PDFNoteEntry() );
- m_aNotes.back().m_nObject = createObject();
- m_aNotes.back().m_aContents = rNote;
- m_aNotes.back().m_aRect = rRect;
+ m_aNotes.back().m_nObject = createObject();
+ m_aNotes.back().m_aContents = rNote;
+ m_aNotes.back().m_aRect = rRect;
// convert to default user space now, since the mapmode may change
m_aPages[nPageNr].convertRect( m_aNotes.back().m_aRect );
@@ -10667,9 +10667,9 @@ sal_Int32 PDFWriterImpl::createLink( const Rectangle& rRect, sal_Int32 nPageNr )
sal_Int32 nRet = m_aLinks.size();
m_aLinks.push_back( PDFLink() );
- m_aLinks.back().m_nObject = createObject();
- m_aLinks.back().m_nPage = nPageNr;
- m_aLinks.back().m_aRect = rRect;
+ m_aLinks.back().m_nObject = createObject();
+ m_aLinks.back().m_nPage = nPageNr;
+ m_aLinks.back().m_aRect = rRect;
// convert to default user space now, since the mapmode may change
m_aPages[nPageNr].convertRect( m_aLinks.back().m_aRect );
@@ -10714,7 +10714,7 @@ sal_Int32 PDFWriterImpl::createDest( const Rectangle& rRect, sal_Int32 nPageNr,
m_aDests.push_back( PDFDest() );
m_aDests.back().m_nPage = nPageNr;
- m_aDests.back().m_eType = eType;
+ m_aDests.back().m_eType = eType;
m_aDests.back().m_aRect = rRect;
// convert to default user space now, since the mapmode may change
m_aPages[nPageNr].convertRect( m_aDests.back().m_aRect );
@@ -10739,7 +10739,7 @@ sal_Int32 PDFWriterImpl::setLinkURL( sal_Int32 nLinkId, const OUString& rURL )
if( nLinkId < 0 || nLinkId >= (sal_Int32)m_aLinks.size() )
return -1;
- m_aLinks[ nLinkId ].m_nDest = -1;
+ m_aLinks[ nLinkId ].m_nDest = -1;
using namespace ::com::sun::star;
@@ -10759,7 +10759,7 @@ sal_Int32 PDFWriterImpl::setLinkURL( sal_Int32 nLinkId, const OUString& rURL )
if (m_xTrans.is())
m_xTrans->parseStrict( aURL );
- m_aLinks[ nLinkId ].m_aURL = aURL.Complete;
+ m_aLinks[ nLinkId ].m_aURL = aURL.Complete;
return 0;
}
@@ -10843,42 +10843,42 @@ const sal_Char* PDFWriterImpl::getStructureTag( PDFWriter::StructElement eType )
if( aTagStrings.empty() )
{
aTagStrings[ PDFWriter::NonStructElement] = "NonStruct";
- aTagStrings[ PDFWriter::Document ] = "Document";
- aTagStrings[ PDFWriter::Part ] = "Part";
- aTagStrings[ PDFWriter::Article ] = "Art";
- aTagStrings[ PDFWriter::Section ] = "Sect";
- aTagStrings[ PDFWriter::Division ] = "Div";
- aTagStrings[ PDFWriter::BlockQuote ] = "BlockQuote";
- aTagStrings[ PDFWriter::Caption ] = "Caption";
- aTagStrings[ PDFWriter::TOC ] = "TOC";
- aTagStrings[ PDFWriter::TOCI ] = "TOCI";
- aTagStrings[ PDFWriter::Index ] = "Index";
- aTagStrings[ PDFWriter::Paragraph ] = "P";
- aTagStrings[ PDFWriter::Heading ] = "H";
- aTagStrings[ PDFWriter::H1 ] = "H1";
- aTagStrings[ PDFWriter::H2 ] = "H2";
- aTagStrings[ PDFWriter::H3 ] = "H3";
- aTagStrings[ PDFWriter::H4 ] = "H4";
- aTagStrings[ PDFWriter::H5 ] = "H5";
- aTagStrings[ PDFWriter::H6 ] = "H6";
- aTagStrings[ PDFWriter::List ] = "L";
- aTagStrings[ PDFWriter::ListItem ] = "LI";
- aTagStrings[ PDFWriter::LILabel ] = "Lbl";
- aTagStrings[ PDFWriter::LIBody ] = "LBody";
- aTagStrings[ PDFWriter::Table ] = "Table";
- aTagStrings[ PDFWriter::TableRow ] = "TR";
- aTagStrings[ PDFWriter::TableHeader ] = "TH";
- aTagStrings[ PDFWriter::TableData ] = "TD";
- aTagStrings[ PDFWriter::Span ] = "Span";
- aTagStrings[ PDFWriter::Quote ] = "Quote";
- aTagStrings[ PDFWriter::Note ] = "Note";
- aTagStrings[ PDFWriter::Reference ] = "Reference";
- aTagStrings[ PDFWriter::BibEntry ] = "BibEntry";
- aTagStrings[ PDFWriter::Code ] = "Code";
- aTagStrings[ PDFWriter::Link ] = "Link";
- aTagStrings[ PDFWriter::Figure ] = "Figure";
- aTagStrings[ PDFWriter::Formula ] = "Formula";
- aTagStrings[ PDFWriter::Form ] = "Form";
+ aTagStrings[ PDFWriter::Document ] = "Document";
+ aTagStrings[ PDFWriter::Part ] = "Part";
+ aTagStrings[ PDFWriter::Article ] = "Art";
+ aTagStrings[ PDFWriter::Section ] = "Sect";
+ aTagStrings[ PDFWriter::Division ] = "Div";
+ aTagStrings[ PDFWriter::BlockQuote ] = "BlockQuote";
+ aTagStrings[ PDFWriter::Caption ] = "Caption";
+ aTagStrings[ PDFWriter::TOC ] = "TOC";
+ aTagStrings[ PDFWriter::TOCI ] = "TOCI";
+ aTagStrings[ PDFWriter::Index ] = "Index";
+ aTagStrings[ PDFWriter::Paragraph ] = "P";
+ aTagStrings[ PDFWriter::Heading ] = "H";
+ aTagStrings[ PDFWriter::H1 ] = "H1";
+ aTagStrings[ PDFWriter::H2 ] = "H2";
+ aTagStrings[ PDFWriter::H3 ] = "H3";
+ aTagStrings[ PDFWriter::H4 ] = "H4";
+ aTagStrings[ PDFWriter::H5 ] = "H5";
+ aTagStrings[ PDFWriter::H6 ] = "H6";
+ aTagStrings[ PDFWriter::List ] = "L";
+ aTagStrings[ PDFWriter::ListItem ] = "LI";
+ aTagStrings[ PDFWriter::LILabel ] = "Lbl";
+ aTagStrings[ PDFWriter::LIBody ] = "LBody";
+ aTagStrings[ PDFWriter::Table ] = "Table";
+ aTagStrings[ PDFWriter::TableRow ] = "TR";
+ aTagStrings[ PDFWriter::TableHeader ] = "TH";
+ aTagStrings[ PDFWriter::TableData ] = "TD";
+ aTagStrings[ PDFWriter::Span ] = "Span";
+ aTagStrings[ PDFWriter::Quote ] = "Quote";
+ aTagStrings[ PDFWriter::Note ] = "Note";
+ aTagStrings[ PDFWriter::Reference ] = "Reference";
+ aTagStrings[ PDFWriter::BibEntry ] = "BibEntry";
+ aTagStrings[ PDFWriter::Code ] = "Code";
+ aTagStrings[ PDFWriter::Link ] = "Link";
+ aTagStrings[ PDFWriter::Figure ] = "Figure";
+ aTagStrings[ PDFWriter::Formula ] = "Formula";
+ aTagStrings[ PDFWriter::Form ] = "Form";
}
std::map< PDFWriter::StructElement, const char* >::const_iterator it = aTagStrings.find( eType );
@@ -10888,7 +10888,7 @@ const sal_Char* PDFWriterImpl::getStructureTag( PDFWriter::StructElement eType )
void PDFWriterImpl::beginStructureElementMCSeq()
{
- if( m_bEmitStructure &&
+ if( m_bEmitStructure &&
m_nCurrentStructElement > 0 && // StructTreeRoot
! m_aStructure[ m_nCurrentStructElement ].m_bOpenMCSeq // already opened sequence
)
@@ -11011,10 +11011,10 @@ sal_Int32 PDFWriterImpl::beginStructureElement( PDFWriter::StructElement eType,
sal_Int32 nNewId = sal_Int32(m_aStructure.size());
m_aStructure.push_back( PDFStructureElement() );
PDFStructureElement& rEle = m_aStructure.back();
- rEle.m_eType = eType;
- rEle.m_nOwnElement = nNewId;
- rEle.m_nParentElement = m_nCurrentStructElement;
- rEle.m_nFirstPageObject = m_aPages[ m_nCurrentPage ].m_nPageObject;
+ rEle.m_eType = eType;
+ rEle.m_nOwnElement = nNewId;
+ rEle.m_nParentElement = m_nCurrentStructElement;
+ rEle.m_nFirstPageObject = m_aPages[ m_nCurrentPage ].m_nPageObject;
m_aStructure[ m_nCurrentStructElement ].m_aChildren.push_back( nNewId );
m_nCurrentStructElement = nNewId;
@@ -11047,7 +11047,7 @@ sal_Int32 PDFWriterImpl::beginStructureElement( PDFWriter::StructElement eType,
if( m_bEmitStructure ) // don't create nonexistant objects
{
- rEle.m_nObject = createObject();
+ rEle.m_nObject = createObject();
// update parent's kids list
m_aStructure[ rEle.m_nParentElement ].m_aKids.push_back( rEle.m_nObject );
}
@@ -11102,7 +11102,7 @@ void PDFWriterImpl::endStructureElement()
* This function adds an internal structure list container to overcome the 8191 elements array limitation
* in kids element emission.
* Recursive function
- *
+ *
*/
void PDFWriterImpl::addInternalStructureContainer( PDFStructureElement& rEle )
{
@@ -11160,21 +11160,21 @@ void PDFWriterImpl::addInternalStructureContainer( PDFStructureElement& rEle )
m_aStructure.push_back( PDFStructureElement() );
PDFStructureElement& rEleNew = m_aStructure.back();
rEleNew.m_aAlias = aAliasName;
- rEleNew.m_eType = PDFWriter::Division; // a new Div type container
- rEleNew.m_nOwnElement = nNewId;
- rEleNew.m_nParentElement = nCurrentStructElement;
+ rEleNew.m_eType = PDFWriter::Division; // a new Div type container
+ rEleNew.m_nOwnElement = nNewId;
+ rEleNew.m_nParentElement = nCurrentStructElement;
//inherit the same page as the first child to be reparented
- rEleNew.m_nFirstPageObject = m_aStructure[ rEle.m_aChildren.front() ].m_nFirstPageObject;
+ rEleNew.m_nFirstPageObject = m_aStructure[ rEle.m_aChildren.front() ].m_nFirstPageObject;
rEleNew.m_nObject = createObject();//assign a PDF object number
//add the object to the kid list of the parent
aNewKids.push_back( PDFStructureElementKid( rEleNew.m_nObject ) );
aNewChildren.push_back( nNewId );
-
+
std::list< sal_Int32 >::iterator aChildEndIt( rEle.m_aChildren.begin() );
std::list< PDFStructureElementKid >::iterator aKidEndIt( rEle.m_aKids.begin() );
advance( aChildEndIt, ncMaxPDFArraySize );
advance( aKidEndIt, ncMaxPDFArraySize );
-
+
rEleNew.m_aKids.splice( rEleNew.m_aKids.begin(),
rEle.m_aKids,
rEle.m_aKids.begin(),
@@ -11193,7 +11193,7 @@ void PDFWriterImpl::addInternalStructureContainer( PDFStructureElement& rEle )
//finally add the new kids resulting from the container added
rEle.m_aKids.insert( rEle.m_aKids.begin(), aNewKids.begin(), aNewKids.end() );
rEle.m_aChildren.insert( rEle.m_aChildren.begin(), aNewChildren.begin(), aNewChildren.end() );
- }
+ }
}
}
}
@@ -11248,42 +11248,42 @@ bool PDFWriterImpl::setStructureAttribute( enum PDFWriter::StructAttribute eAttr
switch( eAttr )
{
case PDFWriter::Placement:
- if( eVal == PDFWriter::Block ||
- eVal == PDFWriter::Inline ||
- eVal == PDFWriter::Before ||
- eVal == PDFWriter::Start ||
+ if( eVal == PDFWriter::Block ||
+ eVal == PDFWriter::Inline ||
+ eVal == PDFWriter::Before ||
+ eVal == PDFWriter::Start ||
eVal == PDFWriter::End )
bInsert = true;
break;
case PDFWriter::WritingMode:
- if( eVal == PDFWriter::LrTb ||
- eVal == PDFWriter::RlTb ||
+ if( eVal == PDFWriter::LrTb ||
+ eVal == PDFWriter::RlTb ||
eVal == PDFWriter::TbRl )
{
bInsert = true;
}
break;
case PDFWriter::TextAlign:
- if( eVal == PDFWriter::Start ||
- eVal == PDFWriter::Center ||
- eVal == PDFWriter::End ||
+ if( eVal == PDFWriter::Start ||
+ eVal == PDFWriter::Center ||
+ eVal == PDFWriter::End ||
eVal == PDFWriter::Justify )
{
- if( eType == PDFWriter::Paragraph ||
- eType == PDFWriter::Heading ||
- eType == PDFWriter::H1 ||
- eType == PDFWriter::H2 ||
- eType == PDFWriter::H3 ||
- eType == PDFWriter::H4 ||
- eType == PDFWriter::H5 ||
- eType == PDFWriter::H6 ||
- eType == PDFWriter::List ||
- eType == PDFWriter::ListItem ||
- eType == PDFWriter::LILabel ||
- eType == PDFWriter::LIBody ||
- eType == PDFWriter::Table ||
- eType == PDFWriter::TableRow ||
- eType == PDFWriter::TableHeader ||
+ if( eType == PDFWriter::Paragraph ||
+ eType == PDFWriter::Heading ||
+ eType == PDFWriter::H1 ||
+ eType == PDFWriter::H2 ||
+ eType == PDFWriter::H3 ||
+ eType == PDFWriter::H4 ||
+ eType == PDFWriter::H5 ||
+ eType == PDFWriter::H6 ||
+ eType == PDFWriter::List ||
+ eType == PDFWriter::ListItem ||
+ eType == PDFWriter::LILabel ||
+ eType == PDFWriter::LIBody ||
+ eType == PDFWriter::Table ||
+ eType == PDFWriter::TableRow ||
+ eType == PDFWriter::TableHeader ||
eType == PDFWriter::TableData )
{
bInsert = true;
@@ -11294,11 +11294,11 @@ bool PDFWriterImpl::setStructureAttribute( enum PDFWriter::StructAttribute eAttr
case PDFWriter::Height:
if( eVal == PDFWriter::Auto )
{
- if( eType == PDFWriter::Figure ||
- eType == PDFWriter::Formula ||
- eType == PDFWriter::Form ||
- eType == PDFWriter::Table ||
- eType == PDFWriter::TableHeader ||
+ if( eType == PDFWriter::Figure ||
+ eType == PDFWriter::Formula ||
+ eType == PDFWriter::Form ||
+ eType == PDFWriter::Table ||
+ eType == PDFWriter::TableHeader ||
eType == PDFWriter::TableData )
{
bInsert = true;
@@ -11306,12 +11306,12 @@ bool PDFWriterImpl::setStructureAttribute( enum PDFWriter::StructAttribute eAttr
}
break;
case PDFWriter::BlockAlign:
- if( eVal == PDFWriter::Before ||
- eVal == PDFWriter::Middle ||
- eVal == PDFWriter::After ||
+ if( eVal == PDFWriter::Before ||
+ eVal == PDFWriter::Middle ||
+ eVal == PDFWriter::After ||
eVal == PDFWriter::Justify )
{
- if( eType == PDFWriter::TableHeader ||
+ if( eType == PDFWriter::TableHeader ||
eType == PDFWriter::TableData )
{
bInsert = true;
@@ -11319,11 +11319,11 @@ bool PDFWriterImpl::setStructureAttribute( enum PDFWriter::StructAttribute eAttr
}
break;
case PDFWriter::InlineAlign:
- if( eVal == PDFWriter::Start ||
- eVal == PDFWriter::Center ||
+ if( eVal == PDFWriter::Start ||
+ eVal == PDFWriter::Center ||
eVal == PDFWriter::End )
{
- if( eType == PDFWriter::TableHeader ||
+ if( eType == PDFWriter::TableHeader ||
eType == PDFWriter::TableData )
{
bInsert = true;
@@ -11331,32 +11331,32 @@ bool PDFWriterImpl::setStructureAttribute( enum PDFWriter::StructAttribute eAttr
}
break;
case PDFWriter::LineHeight:
- if( eVal == PDFWriter::Normal ||
+ if( eVal == PDFWriter::Normal ||
eVal == PDFWriter::Auto )
{
// only for ILSE and BLSE
- if( eType == PDFWriter::Paragraph ||
- eType == PDFWriter::Heading ||
- eType == PDFWriter::H1 ||
- eType == PDFWriter::H2 ||
- eType == PDFWriter::H3 ||
- eType == PDFWriter::H4 ||
- eType == PDFWriter::H5 ||
- eType == PDFWriter::H6 ||
- eType == PDFWriter::List ||
- eType == PDFWriter::ListItem ||
- eType == PDFWriter::LILabel ||
- eType == PDFWriter::LIBody ||
- eType == PDFWriter::Table ||
- eType == PDFWriter::TableRow ||
- eType == PDFWriter::TableHeader ||
- eType == PDFWriter::TableData ||
- eType == PDFWriter::Span ||
- eType == PDFWriter::Quote ||
- eType == PDFWriter::Note ||
- eType == PDFWriter::Reference ||
- eType == PDFWriter::BibEntry ||
- eType == PDFWriter::Code ||
+ if( eType == PDFWriter::Paragraph ||
+ eType == PDFWriter::Heading ||
+ eType == PDFWriter::H1 ||
+ eType == PDFWriter::H2 ||
+ eType == PDFWriter::H3 ||
+ eType == PDFWriter::H4 ||
+ eType == PDFWriter::H5 ||
+ eType == PDFWriter::H6 ||
+ eType == PDFWriter::List ||
+ eType == PDFWriter::ListItem ||
+ eType == PDFWriter::LILabel ||
+ eType == PDFWriter::LIBody ||
+ eType == PDFWriter::Table ||
+ eType == PDFWriter::TableRow ||
+ eType == PDFWriter::TableHeader ||
+ eType == PDFWriter::TableData ||
+ eType == PDFWriter::Span ||
+ eType == PDFWriter::Quote ||
+ eType == PDFWriter::Note ||
+ eType == PDFWriter::Reference ||
+ eType == PDFWriter::BibEntry ||
+ eType == PDFWriter::Code ||
eType == PDFWriter::Link )
{
bInsert = true;
@@ -11364,34 +11364,34 @@ bool PDFWriterImpl::setStructureAttribute( enum PDFWriter::StructAttribute eAttr
}
break;
case PDFWriter::TextDecorationType:
- if( eVal == PDFWriter::NONE ||
- eVal == PDFWriter::Underline ||
- eVal == PDFWriter::Overline ||
+ if( eVal == PDFWriter::NONE ||
+ eVal == PDFWriter::Underline ||
+ eVal == PDFWriter::Overline ||
eVal == PDFWriter::LineThrough )
{
// only for ILSE and BLSE
- if( eType == PDFWriter::Paragraph ||
- eType == PDFWriter::Heading ||
- eType == PDFWriter::H1 ||
- eType == PDFWriter::H2 ||
- eType == PDFWriter::H3 ||
- eType == PDFWriter::H4 ||
- eType == PDFWriter::H5 ||
- eType == PDFWriter::H6 ||
- eType == PDFWriter::List ||
- eType == PDFWriter::ListItem ||
- eType == PDFWriter::LILabel ||
- eType == PDFWriter::LIBody ||
- eType == PDFWriter::Table ||
- eType == PDFWriter::TableRow ||
- eType == PDFWriter::TableHeader ||
- eType == PDFWriter::TableData ||
- eType == PDFWriter::Span ||
- eType == PDFWriter::Quote ||
- eType == PDFWriter::Note ||
- eType == PDFWriter::Reference ||
- eType == PDFWriter::BibEntry ||
- eType == PDFWriter::Code ||
+ if( eType == PDFWriter::Paragraph ||
+ eType == PDFWriter::Heading ||
+ eType == PDFWriter::H1 ||
+ eType == PDFWriter::H2 ||
+ eType == PDFWriter::H3 ||
+ eType == PDFWriter::H4 ||
+ eType == PDFWriter::H5 ||
+ eType == PDFWriter::H6 ||
+ eType == PDFWriter::List ||
+ eType == PDFWriter::ListItem ||
+ eType == PDFWriter::LILabel ||
+ eType == PDFWriter::LIBody ||
+ eType == PDFWriter::Table ||
+ eType == PDFWriter::TableRow ||
+ eType == PDFWriter::TableHeader ||
+ eType == PDFWriter::TableData ||
+ eType == PDFWriter::Span ||
+ eType == PDFWriter::Quote ||
+ eType == PDFWriter::Note ||
+ eType == PDFWriter::Reference ||
+ eType == PDFWriter::BibEntry ||
+ eType == PDFWriter::Code ||
eType == PDFWriter::Link )
{
bInsert = true;
@@ -11399,14 +11399,14 @@ bool PDFWriterImpl::setStructureAttribute( enum PDFWriter::StructAttribute eAttr
}
break;
case PDFWriter::ListNumbering:
- if( eVal == PDFWriter::NONE ||
- eVal == PDFWriter::Disc ||
- eVal == PDFWriter::Circle ||
- eVal == PDFWriter::Square ||
- eVal == PDFWriter::Decimal ||
- eVal == PDFWriter::UpperRoman ||
- eVal == PDFWriter::LowerRoman ||
- eVal == PDFWriter::UpperAlpha ||
+ if( eVal == PDFWriter::NONE ||
+ eVal == PDFWriter::Disc ||
+ eVal == PDFWriter::Circle ||
+ eVal == PDFWriter::Square ||
+ eVal == PDFWriter::Decimal ||
+ eVal == PDFWriter::UpperRoman ||
+ eVal == PDFWriter::LowerRoman ||
+ eVal == PDFWriter::UpperAlpha ||
eVal == PDFWriter::LowerAlpha )
{
if( eType == PDFWriter::List )
@@ -11454,21 +11454,21 @@ bool PDFWriterImpl::setStructureAttributeNumerical( enum PDFWriter::StructAttrib
case PDFWriter::StartIndent:
case PDFWriter::EndIndent:
// just for BLSE
- if( eType == PDFWriter::Paragraph ||
- eType == PDFWriter::Heading ||
- eType == PDFWriter::H1 ||
- eType == PDFWriter::H2 ||
- eType == PDFWriter::H3 ||
- eType == PDFWriter::H4 ||
- eType == PDFWriter::H5 ||
- eType == PDFWriter::H6 ||
- eType == PDFWriter::List ||
- eType == PDFWriter::ListItem ||
- eType == PDFWriter::LILabel ||
- eType == PDFWriter::LIBody ||
- eType == PDFWriter::Table ||
- eType == PDFWriter::TableRow ||
- eType == PDFWriter::TableHeader ||
+ if( eType == PDFWriter::Paragraph ||
+ eType == PDFWriter::Heading ||
+ eType == PDFWriter::H1 ||
+ eType == PDFWriter::H2 ||
+ eType == PDFWriter::H3 ||
+ eType == PDFWriter::H4 ||
+ eType == PDFWriter::H5 ||
+ eType == PDFWriter::H6 ||
+ eType == PDFWriter::List ||
+ eType == PDFWriter::ListItem ||
+ eType == PDFWriter::LILabel ||
+ eType == PDFWriter::LIBody ||
+ eType == PDFWriter::Table ||
+ eType == PDFWriter::TableRow ||
+ eType == PDFWriter::TableHeader ||
eType == PDFWriter::TableData )
{
bInsert = true;
@@ -11476,17 +11476,17 @@ bool PDFWriterImpl::setStructureAttributeNumerical( enum PDFWriter::StructAttrib
break;
case PDFWriter::TextIndent:
// paragraph like BLSE and additional elements
- if( eType == PDFWriter::Paragraph ||
- eType == PDFWriter::Heading ||
- eType == PDFWriter::H1 ||
- eType == PDFWriter::H2 ||
- eType == PDFWriter::H3 ||
- eType == PDFWriter::H4 ||
- eType == PDFWriter::H5 ||
- eType == PDFWriter::H6 ||
- eType == PDFWriter::LILabel ||
- eType == PDFWriter::LIBody ||
- eType == PDFWriter::TableHeader ||
+ if( eType == PDFWriter::Paragraph ||
+ eType == PDFWriter::Heading ||
+ eType == PDFWriter::H1 ||
+ eType == PDFWriter::H2 ||
+ eType == PDFWriter::H3 ||
+ eType == PDFWriter::H4 ||
+ eType == PDFWriter::H5 ||
+ eType == PDFWriter::H6 ||
+ eType == PDFWriter::LILabel ||
+ eType == PDFWriter::LIBody ||
+ eType == PDFWriter::TableHeader ||
eType == PDFWriter::TableData )
{
bInsert = true;
@@ -11494,11 +11494,11 @@ bool PDFWriterImpl::setStructureAttributeNumerical( enum PDFWriter::StructAttrib
break;
case PDFWriter::Width:
case PDFWriter::Height:
- if( eType == PDFWriter::Figure ||
- eType == PDFWriter::Formula ||
- eType == PDFWriter::Form ||
- eType == PDFWriter::Table ||
- eType == PDFWriter::TableHeader ||
+ if( eType == PDFWriter::Figure ||
+ eType == PDFWriter::Formula ||
+ eType == PDFWriter::Form ||
+ eType == PDFWriter::Table ||
+ eType == PDFWriter::TableHeader ||
eType == PDFWriter::TableData )
{
bInsert = true;
@@ -11507,28 +11507,28 @@ bool PDFWriterImpl::setStructureAttributeNumerical( enum PDFWriter::StructAttrib
case PDFWriter::LineHeight:
case PDFWriter::BaselineShift:
// only for ILSE and BLSE
- if( eType == PDFWriter::Paragraph ||
- eType == PDFWriter::Heading ||
- eType == PDFWriter::H1 ||
- eType == PDFWriter::H2 ||
- eType == PDFWriter::H3 ||
- eType == PDFWriter::H4 ||
- eType == PDFWriter::H5 ||
- eType == PDFWriter::H6 ||
- eType == PDFWriter::List ||
- eType == PDFWriter::ListItem ||
- eType == PDFWriter::LILabel ||
- eType == PDFWriter::LIBody ||
- eType == PDFWriter::Table ||
- eType == PDFWriter::TableRow ||
- eType == PDFWriter::TableHeader ||
- eType == PDFWriter::TableData ||
- eType == PDFWriter::Span ||
- eType == PDFWriter::Quote ||
- eType == PDFWriter::Note ||
- eType == PDFWriter::Reference ||
- eType == PDFWriter::BibEntry ||
- eType == PDFWriter::Code ||
+ if( eType == PDFWriter::Paragraph ||
+ eType == PDFWriter::Heading ||
+ eType == PDFWriter::H1 ||
+ eType == PDFWriter::H2 ||
+ eType == PDFWriter::H3 ||
+ eType == PDFWriter::H4 ||
+ eType == PDFWriter::H5 ||
+ eType == PDFWriter::H6 ||
+ eType == PDFWriter::List ||
+ eType == PDFWriter::ListItem ||
+ eType == PDFWriter::LILabel ||
+ eType == PDFWriter::LIBody ||
+ eType == PDFWriter::Table ||
+ eType == PDFWriter::TableRow ||
+ eType == PDFWriter::TableHeader ||
+ eType == PDFWriter::TableData ||
+ eType == PDFWriter::Span ||
+ eType == PDFWriter::Quote ||
+ eType == PDFWriter::Note ||
+ eType == PDFWriter::Reference ||
+ eType == PDFWriter::BibEntry ||
+ eType == PDFWriter::Code ||
eType == PDFWriter::Link )
{
bInsert = true;
@@ -11537,7 +11537,7 @@ bool PDFWriterImpl::setStructureAttributeNumerical( enum PDFWriter::StructAttrib
case PDFWriter::RowSpan:
case PDFWriter::ColSpan:
// only for table cells
- if( eType == PDFWriter::TableHeader ||
+ if( eType == PDFWriter::TableHeader ||
eType == PDFWriter::TableData )
{
bInsert = true;
@@ -11575,9 +11575,9 @@ void PDFWriterImpl::setStructureBoundingBox( const Rectangle& rRect )
if( m_nCurrentStructElement > 0 && m_bEmitStructure )
{
PDFWriter::StructElement eType = m_aStructure[ m_nCurrentStructElement ].m_eType;
- if( eType == PDFWriter::Figure ||
- eType == PDFWriter::Formula ||
- eType == PDFWriter::Form ||
+ if( eType == PDFWriter::Figure ||
+ eType == PDFWriter::Formula ||
+ eType == PDFWriter::Form ||
eType == PDFWriter::Table )
{
m_aStructure[ m_nCurrentStructElement ].m_aBBox = rRect;
@@ -11622,8 +11622,8 @@ void PDFWriterImpl::setPageTransition( PDFWriter::PageTransition eType, sal_uInt
if( nPageNr < 0 || nPageNr >= (sal_Int32)m_aPages.size() )
return;
- m_aPages[ nPageNr ].m_eTransition = eType;
- m_aPages[ nPageNr ].m_nTransTime = nMilliSec;
+ m_aPages[ nPageNr ].m_eTransition = eType;
+ m_aPages[ nPageNr ].m_nTransTime = nMilliSec;
}
void PDFWriterImpl::ensureUniqueRadioOnValues()
@@ -11712,9 +11712,9 @@ sal_Int32 PDFWriterImpl::findRadioGroupWidget( const PDFWriter::RadioButtonWidge
// new group, insert the radiobutton
m_aWidgets.push_back( PDFWidget() );
- m_aWidgets.back().m_nObject = createObject();
- m_aWidgets.back().m_nPage = m_nCurrentPage;
- m_aWidgets.back().m_eType = PDFWriter::RadioButton;
+ m_aWidgets.back().m_nObject = createObject();
+ m_aWidgets.back().m_nPage = m_nCurrentPage;
+ m_aWidgets.back().m_eType = PDFWriter::RadioButton;
m_aWidgets.back().m_nRadioGroup = rBtn.RadioGroup;
m_aWidgets.back().m_nFlags |= 0x0000C000; // NoToggleToOff and Radio bits
@@ -11737,10 +11737,10 @@ sal_Int32 PDFWriterImpl::createControl( const PDFWriter::AnyWidget& rControl, sa
sal_Int32 nNewWidget = m_aWidgets.size();
m_aWidgets.push_back( PDFWidget() );
- m_aWidgets.back().m_nObject = createObject();
- m_aWidgets.back().m_aRect = rControl.Location;
- m_aWidgets.back().m_nPage = nPageNr;
- m_aWidgets.back().m_eType = rControl.getType();
+ m_aWidgets.back().m_nObject = createObject();
+ m_aWidgets.back().m_aRect = rControl.Location;
+ m_aWidgets.back().m_nPage = nPageNr;
+ m_aWidgets.back().m_eType = rControl.getType();
sal_Int32 nRadioGroupWidget = -1;
// for unknown reasons the radio buttons of a radio group must not have a
@@ -11754,10 +11754,10 @@ sal_Int32 PDFWriterImpl::createControl( const PDFWriter::AnyWidget& rControl, sa
}
// caution: m_aWidgets must not be changed after here or rNewWidget may be invalid
- PDFWidget& rNewWidget = m_aWidgets[nNewWidget];
- rNewWidget.m_aDescription = rControl.Description;
- rNewWidget.m_aText = rControl.Text;
- rNewWidget.m_nTextStyle = rControl.TextStyle &
+ PDFWidget& rNewWidget = m_aWidgets[nNewWidget];
+ rNewWidget.m_aDescription = rControl.Description;
+ rNewWidget.m_aText = rControl.Text;
+ rNewWidget.m_nTextStyle = rControl.TextStyle &
( TEXT_DRAW_LEFT | TEXT_DRAW_CENTER | TEXT_DRAW_RIGHT | TEXT_DRAW_TOP |
TEXT_DRAW_VCENTER | TEXT_DRAW_BOTTOM |
TEXT_DRAW_MULTILINE | TEXT_DRAW_WORDBREAK );
@@ -11794,8 +11794,8 @@ sal_Int32 PDFWriterImpl::createControl( const PDFWriter::AnyWidget& rControl, sa
* so we need to create a radio button on demand for a new group
* and insert a checkbox for each RadioButtonWidget as its child
*/
- rNewWidget.m_eType = PDFWriter::CheckBox;
- rNewWidget.m_nRadioGroup = rBtn.RadioGroup;
+ rNewWidget.m_eType = PDFWriter::CheckBox;
+ rNewWidget.m_nRadioGroup = rBtn.RadioGroup;
DBG_ASSERT( nRadioGroupWidget >= 0 && nRadioGroupWidget < (sal_Int32)m_aWidgets.size(), "no radio group parent" );
@@ -11808,8 +11808,8 @@ sal_Int32 PDFWriterImpl::createControl( const PDFWriter::AnyWidget& rControl, sa
rNewWidget.m_aOnValue = rBtn.OnValue;
if( ! rRadioButton.m_aValue.getLength() && rBtn.Selected )
{
- rNewWidget.m_aValue = rNewWidget.m_aOnValue;
- rRadioButton.m_aValue = rNewWidget.m_aOnValue;
+ rNewWidget.m_aValue = rNewWidget.m_aOnValue;
+ rRadioButton.m_aValue = rNewWidget.m_aOnValue;
}
createDefaultRadioButtonAppearance( rNewWidget, rBtn );
@@ -11835,9 +11835,9 @@ sal_Int32 PDFWriterImpl::createControl( const PDFWriter::AnyWidget& rControl, sa
rNewWidget.m_nTextStyle = TEXT_DRAW_VCENTER;
const PDFWriter::ListBoxWidget& rLstBox = static_cast<const PDFWriter::ListBoxWidget&>(rControl);
- rNewWidget.m_aListEntries = rLstBox.Entries;
+ rNewWidget.m_aListEntries = rLstBox.Entries;
rNewWidget.m_aSelectedEntries = rLstBox.SelectedEntries;
- rNewWidget.m_aValue = rLstBox.Text;
+ rNewWidget.m_aValue = rLstBox.Text;
if( rLstBox.DropDown )
rNewWidget.m_nFlags |= 0x00020000;
if( rLstBox.Sort )
@@ -11853,28 +11853,28 @@ sal_Int32 PDFWriterImpl::createControl( const PDFWriter::AnyWidget& rControl, sa
rNewWidget.m_nTextStyle = TEXT_DRAW_VCENTER;
const PDFWriter::ComboBoxWidget& rBox = static_cast<const PDFWriter::ComboBoxWidget&>(rControl);
- rNewWidget.m_aValue = rBox.Text;
- rNewWidget.m_aListEntries = rBox.Entries;
+ rNewWidget.m_aValue = rBox.Text;
+ rNewWidget.m_aListEntries = rBox.Entries;
rNewWidget.m_nFlags |= 0x00060000; // combo and edit flag
if( rBox.Sort )
rNewWidget.m_nFlags |= 0x00080000;
PDFWriter::ListBoxWidget aLBox;
- aLBox.Name = rBox.Name;
- aLBox.Description = rBox.Description;
- aLBox.Text = rBox.Text;
- aLBox.TextStyle = rBox.TextStyle;
- aLBox.ReadOnly = rBox.ReadOnly;
- aLBox.Border = rBox.Border;
- aLBox.BorderColor = rBox.BorderColor;
- aLBox.Background = rBox.Background;
- aLBox.BackgroundColor = rBox.BackgroundColor;
- aLBox.TextFont = rBox.TextFont;
- aLBox.TextColor = rBox.TextColor;
- aLBox.DropDown = true;
- aLBox.Sort = rBox.Sort;
- aLBox.MultiSelect = false;
- aLBox.Entries = rBox.Entries;
+ aLBox.Name = rBox.Name;
+ aLBox.Description = rBox.Description;
+ aLBox.Text = rBox.Text;
+ aLBox.TextStyle = rBox.TextStyle;
+ aLBox.ReadOnly = rBox.ReadOnly;
+ aLBox.Border = rBox.Border;
+ aLBox.BorderColor = rBox.BorderColor;
+ aLBox.Background = rBox.Background;
+ aLBox.BackgroundColor = rBox.BackgroundColor;
+ aLBox.TextFont = rBox.TextFont;
+ aLBox.TextColor = rBox.TextColor;
+ aLBox.DropDown = true;
+ aLBox.Sort = rBox.Sort;
+ aLBox.MultiSelect = false;
+ aLBox.Entries = rBox.Entries;
createDefaultListBoxAppearance( rNewWidget, aLBox );
}
diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx
index 95b8419a8131..ce72411fbe08 100644
--- a/vcl/source/gdi/pdfwriter_impl.hxx
+++ b/vcl/source/gdi/pdfwriter_impl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,19 +86,19 @@ public:
// definition of structs
struct BuiltinFont
{
- const char * m_pName; // Name
- const char * m_pStyleName; // StyleName
- const char * m_pPSName; // PSName
- int m_nAscent;
- int m_nDescent;
- FontFamily m_eFamily; // Family
- CharSet m_eCharSet; // CharSet
- FontPitch m_ePitch; // Pitch
- FontWidth m_eWidthType; // WidthType
- FontWeight m_eWeight; // Weight
- FontItalic m_eItalic; // Italic
- int m_aWidths[256]; // character metrics
-
+ const char * m_pName; // Name
+ const char * m_pStyleName; // StyleName
+ const char * m_pPSName; // PSName
+ int m_nAscent;
+ int m_nDescent;
+ FontFamily m_eFamily; // Family
+ CharSet m_eCharSet; // CharSet
+ FontPitch m_ePitch; // Pitch
+ FontWidth m_eWidthType; // WidthType
+ FontWeight m_eWeight; // Weight
+ FontItalic m_eItalic; // Italic
+ int m_aWidths[256]; // character metrics
+
rtl::OString getNameObject() const;
};
@@ -112,26 +112,26 @@ public:
ResourceMap m_aExtGStates;
ResourceMap m_aShadings;
ResourceMap m_aPatterns;
-
+
void append( rtl::OStringBuffer&, sal_Int32 nFontDictObject );
};
-
+
struct PDFPage
{
- PDFWriterImpl* m_pWriter;
- sal_Int32 m_nPageWidth; // in inch/72
- sal_Int32 m_nPageHeight; // in inch/72
- PDFWriter::Orientation m_eOrientation;
- sal_Int32 m_nPageObject;
- sal_Int32 m_nPageIndex;
- std::vector<sal_Int32> m_aStreamObjects;
- sal_Int32 m_nStreamLengthObject;
- sal_uInt64 m_nBeginStreamPos;
- std::vector<sal_Int32> m_aAnnotations;
- std::vector<sal_Int32> m_aMCIDParents;
- PDFWriter::PageTransition m_eTransition;
- sal_uInt32 m_nTransTime;
- sal_uInt32 m_nDuration;
+ PDFWriterImpl* m_pWriter;
+ sal_Int32 m_nPageWidth; // in inch/72
+ sal_Int32 m_nPageHeight; // in inch/72
+ PDFWriter::Orientation m_eOrientation;
+ sal_Int32 m_nPageObject;
+ sal_Int32 m_nPageIndex;
+ std::vector<sal_Int32> m_aStreamObjects;
+ sal_Int32 m_nStreamLengthObject;
+ sal_uInt64 m_nBeginStreamPos;
+ std::vector<sal_Int32> m_aAnnotations;
+ std::vector<sal_Int32> m_aMCIDParents;
+ PDFWriter::PageTransition m_eTransition;
+ sal_uInt32 m_nTransTime;
+ sal_uInt32 m_nDuration;
bool m_bHasWidgets;
PDFPage( PDFWriterImpl* pWriter, sal_Int32 nPageWidth, sal_Int32 nPageHeight, PDFWriter::Orientation eOrientation );
@@ -166,7 +166,7 @@ public:
// can be important if the source MapMode is not
// symmetrical) to page length and appends it to the buffer
// if pOutLength is set it will be updated to the emitted length
- // (in PDF map mode, that is 10th of point)
+ // (in PDF map mode, that is 10th of point)
void appendMappedLength( sal_Int32 nLength, rtl::OStringBuffer& rBuffer, bool bVertical = true, sal_Int32* pOutLength = NULL ) const;
// the same for double values
void appendMappedLength( double fLength, rtl::OStringBuffer& rBuffer, bool bVertical = true, sal_Int32* pOutLength = NULL, sal_Int32 nPrecision = 5 ) const;
@@ -185,19 +185,19 @@ public:
struct BitmapID
{
- Size m_aPixelSize;
- sal_Int32 m_nSize;
- sal_Int32 m_nChecksum;
- sal_Int32 m_nMaskChecksum;
-
+ Size m_aPixelSize;
+ sal_Int32 m_nSize;
+ sal_Int32 m_nChecksum;
+ sal_Int32 m_nMaskChecksum;
+
BitmapID() : m_nSize( 0 ), m_nChecksum( 0 ), m_nMaskChecksum( 0 ) {}
BitmapID& operator=( const BitmapID& rCopy )
{
- m_aPixelSize = rCopy.m_aPixelSize;
- m_nSize = rCopy.m_nSize;
- m_nChecksum = rCopy.m_nChecksum;
- m_nMaskChecksum = rCopy.m_nMaskChecksum;
+ m_aPixelSize = rCopy.m_aPixelSize;
+ m_nSize = rCopy.m_nSize;
+ m_nChecksum = rCopy.m_nChecksum;
+ m_nMaskChecksum = rCopy.m_nMaskChecksum;
return *this;
}
@@ -212,20 +212,20 @@ public:
struct BitmapEmit
{
- BitmapID m_aID;
- BitmapEx m_aBitmap;
- sal_Int32 m_nObject;
- bool m_bDrawMask;
+ BitmapID m_aID;
+ BitmapEx m_aBitmap;
+ sal_Int32 m_nObject;
+ bool m_bDrawMask;
BitmapEmit() : m_bDrawMask( false ) {}
};
struct JPGEmit
{
- BitmapID m_aID;
- SvMemoryStream* m_pStream;
- Bitmap m_aMask;
- sal_Int32 m_nObject;
+ BitmapID m_aID;
+ SvMemoryStream* m_pStream;
+ Bitmap m_aMask;
+ sal_Int32 m_nObject;
bool m_bTrueColor;
JPGEmit() : m_pStream( NULL ) {}
@@ -234,9 +234,9 @@ public:
struct GradientEmit
{
- Gradient m_aGradient;
- Size m_aSize;
- sal_Int32 m_nObject;
+ Gradient m_aGradient;
+ Size m_aSize;
+ sal_Int32 m_nObject;
};
// for tilings (drawWallpaper, begin/endPattern)
@@ -248,7 +248,7 @@ public:
SvtGraphicFill::Transform m_aTransform;
ResourceDict m_aResources;
SvMemoryStream* m_pTilingStream;
-
+
TilingEmit()
: m_nObject( 0 ),
m_pTilingStream( NULL )
@@ -258,12 +258,12 @@ public:
// for transparency group XObjects
struct TransparencyEmit
{
- sal_Int32 m_nObject;
- sal_Int32 m_nExtGStateObject;
- double m_fAlpha;
- Rectangle m_aBoundRect;
- SvMemoryStream* m_pContentStream;
- SvMemoryStream* m_pSoftMaskStream;
+ sal_Int32 m_nObject;
+ sal_Int32 m_nExtGStateObject;
+ double m_fAlpha;
+ Rectangle m_aBoundRect;
+ SvMemoryStream* m_pContentStream;
+ SvMemoryStream* m_pSoftMaskStream;
TransparencyEmit()
: m_nObject( 0 ),
@@ -283,12 +283,12 @@ public:
class GlyphEmit
{
// performance: actually this should probably a vector;
- sal_Ucs m_aBufferedUnicodes[3];
+ sal_Ucs m_aBufferedUnicodes[3];
sal_Int32 m_nUnicodes;
sal_Int32 m_nMaxUnicodes;
boost::shared_array<sal_Ucs> m_pUnicodes;
sal_uInt8 m_nSubsetGlyphID;
-
+
public:
GlyphEmit() : m_nUnicodes(0), m_nSubsetGlyphID(0)
{
@@ -301,7 +301,7 @@ public:
void setGlyphId( sal_uInt8 i_nId ) { m_nSubsetGlyphID = i_nId; }
sal_uInt8 getGlyphId() const { return m_nSubsetGlyphID; }
-
+
void addCode( sal_Ucs i_cCode )
{
if( m_nUnicodes == m_nMaxUnicodes )
@@ -331,73 +331,73 @@ public:
typedef std::map< sal_GlyphId, GlyphEmit > FontEmitMapping;
struct FontEmit
{
- sal_Int32 m_nFontID;
- FontEmitMapping m_aMapping;
+ sal_Int32 m_nFontID;
+ FontEmitMapping m_aMapping;
FontEmit( sal_Int32 nID ) : m_nFontID( nID ) {}
};
typedef std::list< FontEmit > FontEmitList;
struct Glyph
{
- sal_Int32 m_nFontID;
- sal_uInt8 m_nSubsetGlyphID;
+ sal_Int32 m_nFontID;
+ sal_uInt8 m_nSubsetGlyphID;
};
typedef std::map< sal_GlyphId, Glyph > FontMapping;
struct FontSubset
{
- FontEmitList m_aSubsets;
- FontMapping m_aMapping;
+ FontEmitList m_aSubsets;
+ FontMapping m_aMapping;
};
typedef std::map< const ImplFontData*, FontSubset > FontSubsetData;
struct EmbedCode
{
- sal_Ucs m_aUnicode;
- rtl::OString m_aName;
+ sal_Ucs m_aUnicode;
+ rtl::OString m_aName;
};
struct EmbedEncoding
{
- sal_Int32 m_nFontID;
- std::vector< EmbedCode > m_aEncVector;
- std::map< sal_Ucs, sal_Int8 > m_aCMap;
+ sal_Int32 m_nFontID;
+ std::vector< EmbedCode > m_aEncVector;
+ std::map< sal_Ucs, sal_Int8 > m_aCMap;
};
struct EmbedFont
{
- sal_Int32 m_nNormalFontID;
- std::list< EmbedEncoding > m_aExtendedEncodings;
-
+ sal_Int32 m_nNormalFontID;
+ std::list< EmbedEncoding > m_aExtendedEncodings;
+
EmbedFont() : m_nNormalFontID( 0 ) {}
};
typedef std::map< const ImplFontData*, EmbedFont > FontEmbedData;
struct PDFDest
{
- sal_Int32 m_nPage;
- PDFWriter::DestAreaType m_eType;
- Rectangle m_aRect;
+ sal_Int32 m_nPage;
+ PDFWriter::DestAreaType m_eType;
+ Rectangle m_aRect;
};
//--->i56629
struct PDFNamedDest
{
rtl::OUString m_aDestName;
- sal_Int32 m_nPage;
- PDFWriter::DestAreaType m_eType;
- Rectangle m_aRect;
+ sal_Int32 m_nPage;
+ PDFWriter::DestAreaType m_eType;
+ Rectangle m_aRect;
};
//<---
-
+
struct PDFOutlineEntry
{
- sal_Int32 m_nParentID;
- sal_Int32 m_nObject;
- sal_Int32 m_nParentObject;
- sal_Int32 m_nNextObject;
- sal_Int32 m_nPrevObject;
- std::vector< sal_Int32 > m_aChildren;
- rtl::OUString m_aTitle;
- sal_Int32 m_nDestID;
-
- PDFOutlineEntry()
+ sal_Int32 m_nParentID;
+ sal_Int32 m_nObject;
+ sal_Int32 m_nParentObject;
+ sal_Int32 m_nNextObject;
+ sal_Int32 m_nPrevObject;
+ std::vector< sal_Int32 > m_aChildren;
+ rtl::OUString m_aTitle;
+ sal_Int32 m_nDestID;
+
+ PDFOutlineEntry()
: m_nParentID( -1 ),
m_nObject( 0 ),
m_nParentObject( 0 ),
@@ -409,9 +409,9 @@ public:
struct PDFAnnotation
{
- sal_Int32 m_nObject;
- Rectangle m_aRect;
- sal_Int32 m_nPage;
+ sal_Int32 m_nObject;
+ Rectangle m_aRect;
+ sal_Int32 m_nPage;
PDFAnnotation()
: m_nObject( -1 ),
@@ -421,11 +421,11 @@ public:
struct PDFLink : public PDFAnnotation
{
- sal_Int32 m_nDest; // set to -1 for URL, to a dest else
- rtl::OUString m_aURL;
+ sal_Int32 m_nDest; // set to -1 for URL, to a dest else
+ rtl::OUString m_aURL;
sal_Int32 m_nStructParent; // struct parent entry
-
- PDFLink()
+
+ PDFLink()
: m_nDest( -1 ),
m_nStructParent( -1 )
{}
@@ -433,7 +433,7 @@ public:
struct PDFNoteEntry : public PDFAnnotation
{
- PDFNote m_aContents;
+ PDFNote m_aContents;
PDFNoteEntry()
{}
@@ -444,34 +444,34 @@ public:
struct PDFWidget : public PDFAnnotation
{
- PDFWriter::WidgetType m_eType;
- rtl::OString m_aName;
- rtl::OUString m_aDescription;
- rtl::OUString m_aText;
- USHORT m_nTextStyle;
- rtl::OUString m_aValue;
+ PDFWriter::WidgetType m_eType;
+ rtl::OString m_aName;
+ rtl::OUString m_aDescription;
+ rtl::OUString m_aText;
+ USHORT m_nTextStyle;
+ rtl::OUString m_aValue;
rtl::OString m_aDAString;
rtl::OString m_aDRDict;
- rtl::OString m_aMKDict;
- rtl::OString m_aMKDictCAString; // i12626, added to be able to encrypt the /CA text string
+ rtl::OString m_aMKDict;
+ rtl::OString m_aMKDictCAString; // i12626, added to be able to encrypt the /CA text string
// since the object number is not known at the moment
// of filling m_aMKDict, the string will be encrypted when emitted.
// the /CA string MUST BE the last added to m_aMKDict
// see code for details
- sal_Int32 m_nFlags;
- sal_Int32 m_nParent; // if not 0, parent's object number
- std::vector<sal_Int32> m_aKids; // widget children, contains object numbers
+ sal_Int32 m_nFlags;
+ sal_Int32 m_nParent; // if not 0, parent's object number
+ std::vector<sal_Int32> m_aKids; // widget children, contains object numbers
std::vector<sal_Int32> m_aKidsIndex; // widget children, contains index to m_aWidgets
rtl::OUString m_aOnValue;
sal_Int32 m_nTabOrder; // lowest number gets first in tab order
- sal_Int32 m_nRadioGroup;
- sal_Int32 m_nMaxLen;
+ sal_Int32 m_nRadioGroup;
+ sal_Int32 m_nMaxLen;
bool m_bSubmit;
bool m_bSubmitGet;
sal_Int32 m_nDest;
- std::vector<rtl::OUString> m_aListEntries;
+ std::vector<rtl::OUString> m_aListEntries;
std::vector<sal_Int32> m_aSelectedEntries;
- PDFAppearanceMap m_aAppearances;
+ PDFAppearanceMap m_aAppearances;
PDFWidget()
: m_eType( PDFWriter::PushButton ),
m_nTextStyle( 0 ),
@@ -484,11 +484,11 @@ public:
m_nDest( -1 )
{}
};
-
+
struct PDFStructureAttribute
{
- PDFWriter::StructAttributeValue eValue;
- sal_Int32 nValue;
+ PDFWriter::StructAttributeValue eValue;
+ sal_Int32 nValue;
PDFStructureAttribute()
: eValue( PDFWriter::Invalid ),
@@ -513,26 +513,26 @@ public:
sal_Int32 nObject; // an object number if nMCID is -1,
// else the page object relevant to MCID
sal_Int32 nMCID; // an MCID if >= 0
-
+
PDFStructureElementKid( sal_Int32 nObj ) : nObject( nObj ), nMCID( -1 ) {}
PDFStructureElementKid( sal_Int32 MCID, sal_Int32 nPage ) : nObject( nPage ), nMCID( MCID ) {}
};
-
+
struct PDFStructureElement
{
- sal_Int32 m_nObject;
- PDFWriter::StructElement m_eType;
+ sal_Int32 m_nObject;
+ PDFWriter::StructElement m_eType;
rtl::OString m_aAlias;
- sal_Int32 m_nOwnElement; // index into structure vector
- sal_Int32 m_nParentElement; // index into structure vector
- sal_Int32 m_nFirstPageObject;
- bool m_bOpenMCSeq;
- std::list< sal_Int32 > m_aChildren; // indexes into structure vector
+ sal_Int32 m_nOwnElement; // index into structure vector
+ sal_Int32 m_nParentElement; // index into structure vector
+ sal_Int32 m_nFirstPageObject;
+ bool m_bOpenMCSeq;
+ std::list< sal_Int32 > m_aChildren; // indexes into structure vector
std::list< PDFStructureElementKid > m_aKids;
- PDFStructAttributes m_aAttributes;
- Rectangle m_aBBox;
- rtl::OUString m_aActualText;
- rtl::OUString m_aAltText;
+ PDFStructAttributes m_aAttributes;
+ Rectangle m_aBBox;
+ rtl::OUString m_aActualText;
+ rtl::OUString m_aAltText;
com::sun::star::lang::Locale m_aLocale;
// m_aContents contains the element's marked content sequence
@@ -549,18 +549,18 @@ public:
}
};
-
+
struct PDFAddStream
{
rtl::OUString m_aMimeType;
PDFOutputStream* m_pStream;
sal_Int32 m_nStreamObject;
bool m_bCompress;
-
+
PDFAddStream() : m_pStream( NULL ), m_nStreamObject( 0 ), m_bCompress( true ) {}
};
-
-
+
+
// helper structure for drawLayout and friends
struct PDFGlyph
{
@@ -569,7 +569,7 @@ public:
sal_Int32 m_nGlyphId;
sal_Int32 m_nMappedFontId;
sal_uInt8 m_nMappedGlyphId;
-
+
PDFGlyph( const Point& rPos,
sal_Int32 nNativeWidth,
sal_Int32 nGlyphId,
@@ -584,7 +584,7 @@ public:
static const sal_Char* getStructureTag( PDFWriter::StructElement );
static const sal_Char* getAttributeTag( PDFWriter::StructAttribute eAtr );
static const sal_Char* getAttributeValueTag( PDFWriter::StructAttributeValue eVal );
-
+
// returns true if compression was done
// else false
static bool compressStream( SvMemoryStream* );
@@ -593,99 +593,99 @@ public:
private:
static const BuiltinFont m_aBuiltinFonts[14];
- OutputDevice* m_pReferenceDevice;
+ OutputDevice* m_pReferenceDevice;
- MapMode m_aMapMode; // PDFWriterImpl scaled units
- std::vector< PDFPage > m_aPages;
- PDFDocInfo m_aDocInfo;
+ MapMode m_aMapMode; // PDFWriterImpl scaled units
+ std::vector< PDFPage > m_aPages;
+ PDFDocInfo m_aDocInfo;
/* maps object numbers to file offsets (needed for xref) */
- std::vector< sal_uInt64 > m_aObjects;
+ std::vector< sal_uInt64 > m_aObjects;
/* contains Bitmaps until they are written to the
* file stream as XObjects*/
- std::list< BitmapEmit > m_aBitmaps;
+ std::list< BitmapEmit > m_aBitmaps;
/* contains JPG streams until written to file */
- std::list<JPGEmit> m_aJPGs;
+ std::list<JPGEmit> m_aJPGs;
/*--->i56629 contains all named destinations ever set during the PDF creation,
destination id is always the destination's position in this vector
*/
- std::vector<PDFNamedDest> m_aNamedDests;
+ std::vector<PDFNamedDest> m_aNamedDests;
//<---
/* contains all dests ever set during the PDF creation,
dest id is always the dest's position in this vector
*/
- std::vector<PDFDest> m_aDests;
+ std::vector<PDFDest> m_aDests;
/* contains all links ever set during PDF creation,
link id is always the link's position in this vector
*/
- std::vector<PDFLink> m_aLinks;
+ std::vector<PDFLink> m_aLinks;
/* makes correctly encoded for export to PDF URLS
*/
com::sun::star::uno::Reference< com::sun::star::util::XURLTransformer > m_xTrans;
/* maps arbitrary link ids for structure attributes to real link ids
(for setLinkPropertyId)
*/
- std::map<sal_Int32, sal_Int32> m_aLinkPropertyMap;
+ std::map<sal_Int32, sal_Int32> m_aLinkPropertyMap;
/* contains all outline items,
object 0 is the outline root
*/
- std::vector<PDFOutlineEntry> m_aOutline;
+ std::vector<PDFOutlineEntry> m_aOutline;
/* contains all notes set during PDF creation
*/
- std::vector<PDFNoteEntry> m_aNotes;
+ std::vector<PDFNoteEntry> m_aNotes;
/* the root of the structure tree
*/
- std::vector<PDFStructureElement> m_aStructure;
+ std::vector<PDFStructureElement> m_aStructure;
/* current object in the structure hierarchy
*/
- sal_Int32 m_nCurrentStructElement;
+ sal_Int32 m_nCurrentStructElement;
/* structure parent tree */
std::vector< rtl::OString > m_aStructParentTree;
/* emit strucure marks currently (aka. NonStructElement or not)
*/
- bool m_bEmitStructure;
- bool m_bNewMCID;
+ bool m_bEmitStructure;
+ bool m_bNewMCID;
/* role map of struct tree root */
std::hash_map< rtl::OString, rtl::OString, rtl::OStringHash >
m_aRoleMap;
/* contains all widgets used in the PDF
*/
- std::vector<PDFWidget> m_aWidgets;
+ std::vector<PDFWidget> m_aWidgets;
/* maps radio group id to index of radio group control in m_aWidgets */
- std::map< sal_Int32, sal_Int32 > m_aRadioGroupWidgets;
+ std::map< sal_Int32, sal_Int32 > m_aRadioGroupWidgets;
/* used to store control id during beginControlAppearance/endControlAppearance */
- sal_Int32 m_nCurrentControl;
+ sal_Int32 m_nCurrentControl;
/* hash_map for field names, used to ensure unique field names */
std::hash_map< rtl::OString, sal_Int32, rtl::OStringHash > m_aFieldNameMap;
/* contains Bitmaps for gradient functions until they are written
* to the file stream */
- std::list< GradientEmit > m_aGradients;
+ std::list< GradientEmit > m_aGradients;
/* contains bitmap tiling patterns */
- std::vector< TilingEmit > m_aTilings;
- std::list< TransparencyEmit > m_aTransparentObjects;
+ std::vector< TilingEmit > m_aTilings;
+ std::list< TransparencyEmit > m_aTransparentObjects;
/* contains all font subsets in use */
- FontSubsetData m_aSubsets;
+ FontSubsetData m_aSubsets;
bool m_bEmbedStandardFonts;
- FontEmbedData m_aEmbeddedFonts;
+ FontEmbedData m_aEmbeddedFonts;
FontEmbedData m_aSystemFonts;
- sal_Int32 m_nNextFID;
+ sal_Int32 m_nNextFID;
PDFFontCache m_aFontCache;
- sal_Int32 m_nInheritedPageWidth; // in inch/72
- sal_Int32 m_nInheritedPageHeight; // in inch/72
- PDFWriter::Orientation m_eInheritedOrientation;
- sal_Int32 m_nCurrentPage;
+ sal_Int32 m_nInheritedPageWidth; // in inch/72
+ sal_Int32 m_nInheritedPageHeight; // in inch/72
+ PDFWriter::Orientation m_eInheritedOrientation;
+ sal_Int32 m_nCurrentPage;
- sal_Int32 m_nCatalogObject;
- sal_Int32 m_nResourceDict;
+ sal_Int32 m_nCatalogObject;
+ sal_Int32 m_nResourceDict;
ResourceDict m_aGlobalResourceDict;
sal_Int32 m_nFontDictObject;
std::map< sal_Int32, sal_Int32 > m_aBuiltinFontToObjectMap;
- PDFWriter::PDFWriterContext m_aContext;
- oslFileHandle m_aFile;
- bool m_bOpen;
+ PDFWriter::PDFWriterContext m_aContext;
+ oslFileHandle m_aFile;
+ bool m_bOpen;
/* output redirection; e.g. to accumulate content streams for
@@ -693,31 +693,31 @@ private:
*/
struct StreamRedirect
{
- SvStream* m_pStream;
- MapMode m_aMapMode;
+ SvStream* m_pStream;
+ MapMode m_aMapMode;
Rectangle m_aTargetRect;
ResourceDict m_aResourceDict;
};
- std::list< StreamRedirect > m_aOutputStreams;
+ std::list< StreamRedirect > m_aOutputStreams;
// graphics state
struct GraphicsState
{
- Font m_aFont;
- MapMode m_aMapMode;
- Color m_aLineColor;
- Color m_aFillColor;
- Color m_aTextLineColor;
- Color m_aOverlineColor;
- basegfx::B2DPolyPolygon m_aClipRegion;
+ Font m_aFont;
+ MapMode m_aMapMode;
+ Color m_aLineColor;
+ Color m_aFillColor;
+ Color m_aTextLineColor;
+ Color m_aOverlineColor;
+ basegfx::B2DPolyPolygon m_aClipRegion;
bool m_bClipRegion;
- sal_Int32 m_nAntiAlias;
- sal_Int32 m_nLayoutMode;
+ sal_Int32 m_nAntiAlias;
+ sal_Int32 m_nLayoutMode;
LanguageType m_aDigitLanguage;
- sal_Int32 m_nTransparentPercent;
- sal_uInt16 m_nFlags;
+ sal_Int32 m_nTransparentPercent;
+ sal_uInt16 m_nFlags;
sal_uInt16 m_nUpdateFlags;
-
+
static const sal_uInt16 updateFont = 0x0001;
static const sal_uInt16 updateMapMode = 0x0002;
static const sal_uInt16 updateLineColor = 0x0004;
@@ -763,80 +763,80 @@ private:
GraphicsState& operator=(const GraphicsState& rState )
{
- m_aFont = rState.m_aFont;
- m_aMapMode = rState.m_aMapMode;
- m_aLineColor = rState.m_aLineColor;
- m_aFillColor = rState.m_aFillColor;
- m_aTextLineColor = rState.m_aTextLineColor;
- m_aOverlineColor = rState.m_aOverlineColor;
- m_aClipRegion = rState.m_aClipRegion;
+ m_aFont = rState.m_aFont;
+ m_aMapMode = rState.m_aMapMode;
+ m_aLineColor = rState.m_aLineColor;
+ m_aFillColor = rState.m_aFillColor;
+ m_aTextLineColor = rState.m_aTextLineColor;
+ m_aOverlineColor = rState.m_aOverlineColor;
+ m_aClipRegion = rState.m_aClipRegion;
m_bClipRegion = rState.m_bClipRegion;
- m_nAntiAlias = rState.m_nAntiAlias;
- m_nLayoutMode = rState.m_nLayoutMode;
+ m_nAntiAlias = rState.m_nAntiAlias;
+ m_nLayoutMode = rState.m_nLayoutMode;
m_aDigitLanguage = rState.m_aDigitLanguage;
- m_nTransparentPercent = rState.m_nTransparentPercent;
- m_nFlags = rState.m_nFlags;
+ m_nTransparentPercent = rState.m_nTransparentPercent;
+ m_nFlags = rState.m_nFlags;
m_nUpdateFlags = rState.m_nUpdateFlags;
return *this;
}
};
- std::list< GraphicsState > m_aGraphicsStack;
- GraphicsState m_aCurrentPDFState;
-
- ZCodec* m_pCodec;
- SvMemoryStream* m_pMemStream;
+ std::list< GraphicsState > m_aGraphicsStack;
+ GraphicsState m_aCurrentPDFState;
+ ZCodec* m_pCodec;
+ SvMemoryStream* m_pMemStream;
+
std::vector< PDFAddStream > m_aAdditionalStreams;
std::set< PDFWriter::ErrorCode > m_aErrors;
-
+
rtlDigest m_aDocDigest;
/*
variables for PDF security
-i12626
+i12626
*/
/* used to cipher the stream data and for password management */
- rtlCipher m_aCipher;
- rtlDigest m_aDigest;
+ rtlCipher m_aCipher;
+ rtlDigest m_aDigest;
/* pad string used for password in Standard security handler */
- sal_uInt8 m_nPadString[ENCRYPTED_PWD_SIZE];
+ sal_uInt8 m_nPadString[ENCRYPTED_PWD_SIZE];
/* the owner password, in clear text */
- rtl::OUString m_aOwnerPassword;
+ rtl::OUString m_aOwnerPassword;
/* the padded owner password */
- sal_uInt8 m_nPaddedOwnerPassword[ENCRYPTED_PWD_SIZE];
+ sal_uInt8 m_nPaddedOwnerPassword[ENCRYPTED_PWD_SIZE];
/* the encryption dictionary owner password, according to algorithm 3.3 */
- sal_uInt8 m_nEncryptedOwnerPassword[ENCRYPTED_PWD_SIZE];
+ sal_uInt8 m_nEncryptedOwnerPassword[ENCRYPTED_PWD_SIZE];
/* the user password, in clear text */
- rtl::OUString m_aUserPassword;
+ rtl::OUString m_aUserPassword;
/* the padded user password */
- sal_uInt8 m_nPaddedUserPassword[ENCRYPTED_PWD_SIZE];
+ sal_uInt8 m_nPaddedUserPassword[ENCRYPTED_PWD_SIZE];
/* the encryption dictionary user password, according to algorithm 3.4 or 3.5 depending on the
security handler revision */
- sal_uInt8 m_nEncryptedUserPassword[ENCRYPTED_PWD_SIZE];
+ sal_uInt8 m_nEncryptedUserPassword[ENCRYPTED_PWD_SIZE];
/* the encryption key, formed with the user password according to algorithm 3.2, maximum length is 16 bytes + 3 + 2
for 128 bit security */
- sal_uInt8 m_nEncryptionKey[MAXIMUM_RC4_KEY_LENGTH];
- sal_Int32 m_nKeyLength; // key length, 16 or 5
- sal_Int32 m_nRC4KeyLength; // key length, 16 or 10, to be input to the algorith 3.1
+ sal_uInt8 m_nEncryptionKey[MAXIMUM_RC4_KEY_LENGTH];
+ sal_Int32 m_nKeyLength; // key length, 16 or 5
+ sal_Int32 m_nRC4KeyLength; // key length, 16 or 10, to be input to the algorith 3.1
/* set to true if the following stream must be encrypted, used inside writeBuffer() */
- sal_Bool m_bEncryptThisStream;
+ sal_Bool m_bEncryptThisStream;
/* the numerical value of the access permissions, according to PDF spec, must be signed */
sal_Int32 m_nAccessPermissions;
/* the document ID, the raw MD5 hash */
- sal_uInt8 m_nDocID[MD5_DIGEST_SIZE];
+ sal_uInt8 m_nDocID[MD5_DIGEST_SIZE];
/* string buffer to hold document ID, this is the output string */
- rtl::OStringBuffer m_aDocID;
+ rtl::OStringBuffer m_aDocID;
/* string to hold the PDF creation date */
- rtl::OStringBuffer m_aCreationDateString;
+ rtl::OStringBuffer m_aCreationDateString;
/* string to hold the PDF creation date, for PDF/A metadata */
- rtl::OStringBuffer m_aCreationMetaDateString;
+ rtl::OStringBuffer m_aCreationMetaDateString;
/* the buffer where the data are encrypted, dynamically allocated */
- sal_uInt8 *m_pEncryptionBuffer;
+ sal_uInt8 *m_pEncryptionBuffer;
/* size of the buffer */
- sal_Int32 m_nEncryptionBufferSize;
+ sal_Int32 m_nEncryptionBufferSize;
/* check and reallocate the buffer for encryption */
sal_Bool checkEncryptionBufferSize( register sal_Int32 newSize )
@@ -883,7 +883,7 @@ i12626
// do the MD5 hash
sal_uInt8 nMD5Sum[ RTL_DIGEST_LENGTH_MD5 ];
// the i+2 to take into account the generation number, always zero
- rtl_digest_MD5( &m_nEncryptionKey, i+2, nMD5Sum, sizeof(nMD5Sum) );
+ rtl_digest_MD5( &m_nEncryptionKey, i+2, nMD5Sum, sizeof(nMD5Sum) );
// initialize the RC4 with the key
// key legth: see algoritm 3.1, step 4: (N+5) max 16
rtl_cipher_initARCFOUR( m_aCipher, rtl_Cipher_DirectionEncode, nMD5Sum, m_nRC4KeyLength, NULL, 0 );
@@ -903,7 +903,7 @@ i12626
// do the MD5 hash
sal_uInt8 nMD5Sum[ RTL_DIGEST_LENGTH_MD5 ];
// the i+2 to take into account the generation number, always zero
- rtl_digest_MD5( &m_nEncryptionKey, i+2, nMD5Sum, sizeof(nMD5Sum) );
+ rtl_digest_MD5( &m_nEncryptionKey, i+2, nMD5Sum, sizeof(nMD5Sum) );
// initialize the RC4 with the key
// key legth: see algoritm 3.1, step 4: (N+5) max 16
rtl_cipher_initARCFOUR( m_aCipher, rtl_Cipher_DirectionEncode, nMD5Sum, m_nRC4KeyLength, NULL, 0 );
@@ -1035,7 +1035,7 @@ i12626
bool emitAdditionalStreams();
// emits info dict (if applicable)
sal_Int32 emitInfoDict( );
-
+
// acrobat reader 5 and 6 use the order of the annotations
// as their tab order; since PDF1.5 one can make the
// tab order explicit by using the structure tree
@@ -1050,10 +1050,10 @@ i12626
Font replaceFont( const Font& rControlFont, const Font& rAppSetFont );
sal_Int32 getBestBuiltinFont( const Font& rFont );
sal_Int32 getSystemFont( const Font& i_rFont );
-
+
// used for edit and listbox
Font drawFieldBorder( PDFWidget&, const PDFWriter::AnyWidget&, const StyleSettings& );
-
+
void createDefaultPushButtonAppearance( PDFWidget&, const PDFWriter::PushButtonWidget& rWidget );
void createDefaultCheckBoxAppearance( PDFWidget&, const PDFWriter::CheckBoxWidget& rWidget );
void createDefaultRadioButtonAppearance( PDFWidget&, const PDFWriter::RadioButtonWidget& rWidget );
@@ -1069,7 +1069,7 @@ i12626
/* sets the offset of object n to the current position of output file+1
*/
bool updateObject( sal_Int32 n );
-
+
bool writeBuffer( const void* pBuffer, sal_uInt64 nBytes );
void beginCompression();
void endCompression();
@@ -1115,9 +1115,9 @@ public:
PDFWriterImpl( const PDFWriter::PDFWriterContext& rContext );
~PDFWriterImpl();
- /* for OutputDevice so the reference device can have a list
- * that contains only suitable fonts (subsettable or builtin)
- * produces a new font list
+ /* for OutputDevice so the reference device can have a list
+ * that contains only suitable fonts (subsettable or builtin)
+ * produces a new font list
*/
ImplDevFontList* filterDevFontList( ImplDevFontList* pFontList );
/* for OutputDevice: get layout for builtin fonts
@@ -1136,7 +1136,7 @@ public:
bool emit();
std::set< PDFWriter::ErrorCode > getErrors();
void insertError( PDFWriter::ErrorCode eErr ) { m_aErrors.insert( eErr ); }
-
+
Size getCurPageSize() const
{
Size aSize;
@@ -1148,7 +1148,7 @@ public:
PDFWriter::PDFVersion getVersion() const { return m_aContext.Version; }
void setDocInfo( const PDFDocInfo& rInfo );
const PDFDocInfo& getDocInfo() const { return m_aDocInfo; }
-
+
void setDocumentLocale( const com::sun::star::lang::Locale& rLoc )
{ m_aContext.DocumentLocale = rLoc; }
@@ -1174,19 +1174,19 @@ public:
void setFillColor( const Color& rColor )
{
m_aGraphicsStack.front().m_aFillColor = ImplIsColorTransparent(rColor) ? Color( COL_TRANSPARENT ) : rColor;
- m_aGraphicsStack.front().m_nUpdateFlags |= GraphicsState::updateFillColor;
+ m_aGraphicsStack.front().m_nUpdateFlags |= GraphicsState::updateFillColor;
}
void setTextLineColor()
{
m_aGraphicsStack.front().m_aTextLineColor = Color( COL_TRANSPARENT );
- m_aGraphicsStack.front().m_nUpdateFlags |= GraphicsState::updateTextLineColor;
+ m_aGraphicsStack.front().m_nUpdateFlags |= GraphicsState::updateTextLineColor;
}
void setTextLineColor( const Color& rColor )
{
m_aGraphicsStack.front().m_aTextLineColor = rColor;
- m_aGraphicsStack.front().m_nUpdateFlags |= GraphicsState::updateTextLineColor;
+ m_aGraphicsStack.front().m_nUpdateFlags |= GraphicsState::updateTextLineColor;
}
void setOverlineColor()
@@ -1239,7 +1239,7 @@ public:
m_aGraphicsStack.front().m_nLayoutMode = nLayoutMode;
m_aGraphicsStack.front().m_nUpdateFlags |= GraphicsState::updateLayoutMode;
}
-
+
void setDigitLanguage( LanguageType eLang )
{
m_aGraphicsStack.front().m_aDigitLanguage = eLang;
@@ -1351,7 +1351,7 @@ public:
sal_Int32 createControl( const PDFWriter::AnyWidget& rControl, sal_Int32 nPageNr = -1 );
void beginControlAppearance( sal_Int32 nControl );
bool endControlAppearance( PDFWriter::WidgetState eState );
-
+
// additional streams
void addStream( const String& rMimeType, PDFOutputStream* pStream, bool bCompress );
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 990f5d4cdc9a..9e27f79541d1 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,24 +46,24 @@
// - Defines -
// -----------
-#define PNGCHUNK_IHDR 0x49484452
-#define PNGCHUNK_PLTE 0x504c5445
-#define PNGCHUNK_IDAT 0x49444154
-#define PNGCHUNK_IEND 0x49454e44
-#define PNGCHUNK_bKGD 0x624b4744
-#define PNGCHUNK_cHRM 0x6348524d
-#define PNGCHUNK_gAMA 0x67414d41
-#define PNGCHUNK_hIST 0x68495354
-#define PNGCHUNK_pHYs 0x70485973
-#define PNGCHUNK_sBIT 0x73425420
-#define PNGCHUNK_tIME 0x74494d45
-#define PNGCHUNK_tEXt 0x74455874
-#define PNGCHUNK_tRNS 0x74524e53
-#define PNGCHUNK_zTXt 0x7a545874
-#define PMGCHUNG_msOG 0x6d734f47 // Microsoft Office Animated GIF
-
-#define VIEWING_GAMMA 2.35
-#define DISPLAY_GAMMA 1.0
+#define PNGCHUNK_IHDR 0x49484452
+#define PNGCHUNK_PLTE 0x504c5445
+#define PNGCHUNK_IDAT 0x49444154
+#define PNGCHUNK_IEND 0x49454e44
+#define PNGCHUNK_bKGD 0x624b4744
+#define PNGCHUNK_cHRM 0x6348524d
+#define PNGCHUNK_gAMA 0x67414d41
+#define PNGCHUNK_hIST 0x68495354
+#define PNGCHUNK_pHYs 0x70485973
+#define PNGCHUNK_sBIT 0x73425420
+#define PNGCHUNK_tIME 0x74494d45
+#define PNGCHUNK_tEXt 0x74455874
+#define PNGCHUNK_tRNS 0x74524e53
+#define PNGCHUNK_zTXt 0x7a545874
+#define PMGCHUNG_msOG 0x6d734f47 // Microsoft Office Animated GIF
+
+#define VIEWING_GAMMA 2.35
+#define DISPLAY_GAMMA 1.0
namespace vcl
{
@@ -74,7 +74,7 @@ namespace vcl
// ------------------------------------------------------------------------------
static const BYTE mpDefaultColorTable[ 256 ] =
-{ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
+{ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
@@ -106,17 +106,17 @@ private:
std::vector< vcl::PNGReader::ChunkData >::iterator maChunkIter;
std::vector< sal_uInt8 >::iterator maDataIter;
- Bitmap* mpBmp;
- BitmapWriteAccess* mpAcc;
- Bitmap* mpMaskBmp;
- AlphaMask* mpAlphaMask;
- BitmapWriteAccess* mpMaskAcc;
- ZCodec* mpZCodec;
- BYTE* mpInflateInBuf; // as big as the size of a scanline + alphachannel + 1
- BYTE* mpScanPrior; // pointer to the latest scanline
- BYTE* mpTransTab; // for transparency in images with palette colortype
- BYTE* mpScanCurrent; // pointer into the current scanline
- BYTE* mpColorTable; //
+ Bitmap* mpBmp;
+ BitmapWriteAccess* mpAcc;
+ Bitmap* mpMaskBmp;
+ AlphaMask* mpAlphaMask;
+ BitmapWriteAccess* mpMaskAcc;
+ ZCodec* mpZCodec;
+ BYTE* mpInflateInBuf; // as big as the size of a scanline + alphachannel + 1
+ BYTE* mpScanPrior; // pointer to the latest scanline
+ BYTE* mpTransTab; // for transparency in images with palette colortype
+ BYTE* mpScanCurrent; // pointer into the current scanline
+ BYTE* mpColorTable; //
sal_Size mnStreamSize; // estimate of PNG file size
sal_uInt32 mnChunkType; // Type of current PNG chunk
sal_Int32 mnChunkLen; // Length of current PNG chunk
@@ -132,29 +132,29 @@ private:
sal_uInt32 mnYAdd; // the increment for input images Y coords for the current pass
int mnPreviewShift; // shift to convert orig image coords into preview image coords
int mnPreviewMask; // == ((1 << mnPreviewShift) - 1)
- USHORT mnIStmOldMode;
- USHORT mnTargetDepth; // pixel depth of target bitmap
- BYTE mnTransRed;
- BYTE mnTransGreen;
- BYTE mnTransBlue;
- BYTE mnPngDepth; // pixel depth of PNG data
- BYTE mnColorType;
- BYTE mnCompressionType;
- BYTE mnFilterType;
- BYTE mnInterlaceType;
- BitmapColor mcTranspColor; // transparency mask's transparency "color"
- BitmapColor mcOpaqueColor; // transparency mask's opaque "color"
- BOOL mbTransparent; // graphic includes an tRNS Chunk or an alpha Channel
- BOOL mbAlphaChannel; // is true for ColorType 4 and 6
- BOOL mbRGBTriple;
- BOOL mbPalette; // FALSE if we need a Palette
- BOOL mbGrayScale;
- BOOL mbzCodecInUse;
- BOOL mbStatus;
- BOOL mbIDAT; // TRUE if finished with enough IDAT chunks
- BOOL mbGamma; // TRUE if Gamma Correction available
- BOOL mbpHYs; // TRUE if pysical size of pixel available
- sal_Bool mbIgnoreGammaChunk;
+ USHORT mnIStmOldMode;
+ USHORT mnTargetDepth; // pixel depth of target bitmap
+ BYTE mnTransRed;
+ BYTE mnTransGreen;
+ BYTE mnTransBlue;
+ BYTE mnPngDepth; // pixel depth of PNG data
+ BYTE mnColorType;
+ BYTE mnCompressionType;
+ BYTE mnFilterType;
+ BYTE mnInterlaceType;
+ BitmapColor mcTranspColor; // transparency mask's transparency "color"
+ BitmapColor mcOpaqueColor; // transparency mask's opaque "color"
+ BOOL mbTransparent; // graphic includes an tRNS Chunk or an alpha Channel
+ BOOL mbAlphaChannel; // is true for ColorType 4 and 6
+ BOOL mbRGBTriple;
+ BOOL mbPalette; // FALSE if we need a Palette
+ BOOL mbGrayScale;
+ BOOL mbzCodecInUse;
+ BOOL mbStatus;
+ BOOL mbIDAT; // TRUE if finished with enough IDAT chunks
+ BOOL mbGamma; // TRUE if Gamma Correction available
+ BOOL mbpHYs; // TRUE if pysical size of pixel available
+ sal_Bool mbIgnoreGammaChunk;
bool ReadNextChunk();
void ReadRemainingChunks();
@@ -164,19 +164,19 @@ private:
void ImplSetPixel( sal_uInt32 y, sal_uInt32 x, BYTE nPalIndex );
void ImplSetTranspPixel( sal_uInt32 y, sal_uInt32 x, const BitmapColor &, BOOL bTrans );
void ImplSetAlphaPixel( sal_uInt32 y, sal_uInt32 x, BYTE nPalIndex, BYTE nAlpha );
- void ImplSetAlphaPixel( sal_uInt32 y, sal_uInt32 x, const BitmapColor&, BYTE nAlpha );
- void ImplReadIDAT();
+ void ImplSetAlphaPixel( sal_uInt32 y, sal_uInt32 x, const BitmapColor&, BYTE nAlpha );
+ void ImplReadIDAT();
bool ImplPreparePass();
void ImplApplyFilter();
void ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd );
- BOOL ImplReadTransparent();
- void ImplGetGamma();
- void ImplGetBackground();
- BYTE ImplScaleColor();
- BOOL ImplReadHeader( const Size& rPreviewSizeHint );
- BOOL ImplReadPalette();
- void ImplGetGrayPalette( sal_uInt16 );
- sal_uInt32 ImplReadsal_uInt32();
+ BOOL ImplReadTransparent();
+ void ImplGetGamma();
+ void ImplGetBackground();
+ BYTE ImplScaleColor();
+ BOOL ImplReadHeader( const Size& rPreviewSizeHint );
+ BOOL ImplReadPalette();
+ void ImplGetGrayPalette( sal_uInt16 );
+ sal_uInt32 ImplReadsal_uInt32();
public:
@@ -185,29 +185,29 @@ public:
BitmapEx GetBitmapEx( const Size& rPreviewSizeHint );
const std::vector< PNGReader::ChunkData >& GetAllChunks();
- void SetIgnoreGammaChunk( sal_Bool bIgnore ){ mbIgnoreGammaChunk = bIgnore; };
+ void SetIgnoreGammaChunk( sal_Bool bIgnore ){ mbIgnoreGammaChunk = bIgnore; };
};
// ------------------------------------------------------------------------------
PNGReaderImpl::PNGReaderImpl( SvStream& rPNGStream )
: mrPNGStream( rPNGStream ),
- mpBmp ( NULL ),
- mpAcc ( NULL ),
- mpMaskBmp ( NULL ),
- mpAlphaMask ( NULL ),
- mpMaskAcc ( NULL ),
- mpZCodec ( new ZCodec( DEFAULT_IN_BUFSIZE, DEFAULT_OUT_BUFSIZE, MAX_MEM_USAGE ) ),
- mpInflateInBuf ( NULL ),
- mpScanPrior ( NULL ),
- mpTransTab ( NULL ),
- mpColorTable ( (sal_uInt8*) mpDefaultColorTable ),
- mbzCodecInUse ( sal_False ),
+ mpBmp ( NULL ),
+ mpAcc ( NULL ),
+ mpMaskBmp ( NULL ),
+ mpAlphaMask ( NULL ),
+ mpMaskAcc ( NULL ),
+ mpZCodec ( new ZCodec( DEFAULT_IN_BUFSIZE, DEFAULT_OUT_BUFSIZE, MAX_MEM_USAGE ) ),
+ mpInflateInBuf ( NULL ),
+ mpScanPrior ( NULL ),
+ mpTransTab ( NULL ),
+ mpColorTable ( (sal_uInt8*) mpDefaultColorTable ),
+ mbzCodecInUse ( sal_False ),
mbStatus( TRUE),
mbIDAT( FALSE ),
- mbGamma ( sal_False ),
- mbpHYs ( sal_False ),
- mbIgnoreGammaChunk ( sal_False )
+ mbGamma ( sal_False ),
+ mbpHYs ( sal_False ),
+ mbIgnoreGammaChunk ( sal_False )
{
// prepare the PNG data stream
mnOrigStreamMode = mrPNGStream.GetNumberFormatInt();
@@ -217,7 +217,7 @@ PNGReaderImpl::PNGReaderImpl( SvStream& rPNGStream )
maChunkSeq.reserve( 16 );
maChunkIter = maChunkSeq.begin();
- // estimate PNG file size (to allow sanity checks)
+ // estimate PNG file size (to allow sanity checks)
const sal_Size nStreamPos = mrPNGStream.Tell();
mrPNGStream.Seek( STREAM_SEEK_TO_END );
mnStreamSize = mrPNGStream.Tell();
@@ -382,8 +382,8 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
}
break;
- case PNGCHUNK_gAMA : // the gamma chunk must precede
- { // the 'IDAT' and also the 'PLTE'(if available )
+ case PNGCHUNK_gAMA : // the gamma chunk must precede
+ { // the 'IDAT' and also the 'PLTE'(if available )
if ( !mbIgnoreGammaChunk && ( mbIDAT == FALSE ) )
ImplGetGamma();
}
@@ -398,23 +398,23 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
case PNGCHUNK_tRNS :
{
- if ( !mbIDAT ) // the tRNS chunk must precede the IDAT
+ if ( !mbIDAT ) // the tRNS chunk must precede the IDAT
mbStatus = ImplReadTransparent();
}
break;
- case PNGCHUNK_bKGD : // the background chunk must appear
+ case PNGCHUNK_bKGD : // the background chunk must appear
{
- if ( ( mbIDAT == FALSE ) && mbPalette ) // before the 'IDAT' and after the
- ImplGetBackground(); // PLTE(if available ) chunk.
+ if ( ( mbIDAT == FALSE ) && mbPalette ) // before the 'IDAT' and after the
+ ImplGetBackground(); // PLTE(if available ) chunk.
}
break;
case PNGCHUNK_IDAT :
{
- if ( !mpInflateInBuf ) // taking care that the header has properly been read
+ if ( !mpInflateInBuf ) // taking care that the header has properly been read
mbStatus = FALSE;
- else if ( !mbIDAT ) // the gfx is finished, but there may be left a zlibCRC of about 4Bytes
+ else if ( !mbIDAT ) // the gfx is finished, but there may be left a zlibCRC of about 4Bytes
ImplReadIDAT();
}
break;
@@ -530,16 +530,16 @@ BOOL PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
// valid color types are 0,2,3,4 & 6
switch ( mnColorType )
{
- case 0 : // each pixel is a grayscale
+ case 0 : // each pixel is a grayscale
{
switch ( mnPngDepth )
{
case 2 : // 2bit target not available -> use four bits
- mnTargetDepth = 4; // we have to expand the bitmap
+ mnTargetDepth = 4; // we have to expand the bitmap
mbGrayScale = TRUE;
break;
case 16 :
- mnTargetDepth = 8; // we have to reduce the bitmap
+ mnTargetDepth = 8; // we have to reduce the bitmap
// fall through
case 1 :
case 4 :
@@ -552,13 +552,13 @@ BOOL PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
}
break;
- case 2 : // each pixel is an RGB triple
+ case 2 : // each pixel is an RGB triple
{
mbRGBTriple = TRUE;
nScansize64 *= 3;
switch ( mnPngDepth )
{
- case 16 : // we have to reduce the bitmap
+ case 16 : // we have to reduce the bitmap
case 8 :
mnTargetDepth = 24;
break;
@@ -568,12 +568,12 @@ BOOL PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
}
break;
- case 3 : // each pixel is a palette index
+ case 3 : // each pixel is a palette index
{
switch ( mnPngDepth )
{
case 2 :
- mnTargetDepth = 4; // we have to expand the bitmap
+ mnTargetDepth = 4; // we have to expand the bitmap
// fall through
case 1 :
case 4 :
@@ -586,14 +586,14 @@ BOOL PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
}
break;
- case 4 : // each pixel is a grayscale sample followed by an alpha sample
+ case 4 : // each pixel is a grayscale sample followed by an alpha sample
{
nScansize64 *= 2;
mbAlphaChannel = TRUE;
switch ( mnPngDepth )
{
case 16 :
- mnTargetDepth = 8; // we have to reduce the bitmap
+ mnTargetDepth = 8; // we have to reduce the bitmap
case 8 :
mbGrayScale = TRUE;
break;
@@ -603,14 +603,14 @@ BOOL PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
}
break;
- case 6 : // each pixel is an RGB triple followed by an alpha sample
+ case 6 : // each pixel is an RGB triple followed by an alpha sample
{
mbRGBTriple = TRUE;
nScansize64 *= 4;
mbAlphaChannel = TRUE;
switch (mnPngDepth )
{
- case 16 : // we have to reduce the bitmap
+ case 16 : // we have to reduce the bitmap
case 8 :
mnTargetDepth = 24;
break;
@@ -832,17 +832,17 @@ void PNGReaderImpl::ImplGetGamma()
if( mnChunkLen < 4 )
return;
- sal_uInt32 nGammaValue = ImplReadsal_uInt32();
- double fGamma = ( ( VIEWING_GAMMA / DISPLAY_GAMMA ) * ( (double)nGammaValue / 100000 ) );
- double fInvGamma = ( fGamma <= 0.0 || fGamma > 10.0 ) ? 1.0 : ( 1.0 / fGamma );
+ sal_uInt32 nGammaValue = ImplReadsal_uInt32();
+ double fGamma = ( ( VIEWING_GAMMA / DISPLAY_GAMMA ) * ( (double)nGammaValue / 100000 ) );
+ double fInvGamma = ( fGamma <= 0.0 || fGamma > 10.0 ) ? 1.0 : ( 1.0 / fGamma );
if ( fInvGamma != 1.0 )
{
mbGamma = TRUE;
-
+
if ( mpColorTable == mpDefaultColorTable )
mpColorTable = new sal_uInt8[ 256 ];
-
+
for ( sal_Int32 i = 0; i < 256; i++ )
mpColorTable[ i ] = (sal_uInt8)(pow((double)i/255.0, fInvGamma) * 255.0 + 0.5);
@@ -883,7 +883,7 @@ void PNGReaderImpl::ImplGetBackground()
}
}
break;
-
+
case 2 :
case 6 :
{
@@ -907,12 +907,12 @@ sal_uInt8 PNGReaderImpl::ImplScaleColor()
{
sal_uInt32 nMask = ( ( 1 << mnPngDepth ) - 1 );
sal_uInt16 nCol = ( *maDataIter++ << 8 );
-
+
nCol += *maDataIter++ & (sal_uInt16)nMask;
-
- if ( mnPngDepth > 8 ) // convert 16bit graphics to 8
+
+ if ( mnPngDepth > 8 ) // convert 16bit graphics to 8
nCol >>= 8;
-
+
return (sal_uInt8) nCol;
}
@@ -1205,7 +1205,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
{
if ( mbTransparent )
{
- if ( mnPngDepth == 4 ) // check if source has a two bit pixel format
+ if ( mnPngDepth == 4 ) // check if source has a two bit pixel format
{
for ( sal_Int32 nX = nXStart, nXIndex = 0; nX < maOrigSize.Width(); nX += nXAdd, ++nXIndex )
{
@@ -1254,7 +1254,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
}
else
{
- if ( mnPngDepth == 4 ) // maybe the source is a two bitmap graphic
+ if ( mnPngDepth == 4 ) // maybe the source is a two bitmap graphic
{ // BMP_FORMAT_4BIT_LSN_PAL
for ( sal_Int32 nX = nXStart, nXIndex = 0; nX < maOrigSize.Width(); nX += nXAdd, nXIndex++ )
{
@@ -1296,7 +1296,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
{
if ( mbAlphaChannel )
{
- if ( mnPngDepth == 8 ) // maybe the source is a 16 bit grayscale
+ if ( mnPngDepth == 8 ) // maybe the source is a 16 bit grayscale
{
for ( sal_Int32 nX = nXStart; nX < maOrigSize.Width(); nX += nXAdd, pTmp += 2 )
ImplSetAlphaPixel( nY, nX, pTmp[ 0 ], pTmp[ 1 ] );
@@ -1309,7 +1309,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
}
else if ( mbTransparent )
{
- if ( mnPngDepth == 8 ) // maybe the source is a 16 bit grayscale
+ if ( mnPngDepth == 8 ) // maybe the source is a 16 bit grayscale
{
for ( sal_Int32 nX = nXStart; nX < maOrigSize.Width(); nX += nXAdd, pTmp++ )
ImplSetAlphaPixel( nY, nX, *pTmp, mpTransTab[ *pTmp ] );
@@ -1322,7 +1322,7 @@ void PNGReaderImpl::ImplDrawScanline( sal_uInt32 nXStart, sal_uInt32 nXAdd )
}
else // neither alpha nor transparency
{
- if ( mnPngDepth == 8 ) // maybe the source is a 16 bit grayscale
+ if ( mnPngDepth == 8 ) // maybe the source is a 16 bit grayscale
{
if( nXAdd == 1 && mnPreviewShift == 0 ) // copy raw line data if possible
{
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx
index db92a4474e20..4b394aea5d6d 100644
--- a/vcl/source/gdi/pngwrite.cxx
+++ b/vcl/source/gdi/pngwrite.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,68 +78,68 @@ public:
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >* pFilterData = NULL );
~PNGWriterImpl();
- sal_Bool Write( SvStream& rOStm );
+ sal_Bool Write( SvStream& rOStm );
- std::vector< vcl::PNGWriter::ChunkData >& GetChunks();
+ std::vector< vcl::PNGWriter::ChunkData >& GetChunks();
private:
- std::vector< vcl::PNGWriter::ChunkData > maChunkSeq;
-
- sal_Int32 mnCompLevel;
- sal_Int32 mnInterlaced;
- sal_uInt32 mnMaxChunkSize;
- BOOL mbStatus;
-
- BitmapReadAccess* mpAccess;
- BitmapReadAccess* mpMaskAccess;
- ZCodec* mpZCodec;
-
- BYTE* mpDeflateInBuf; // as big as the size of a scanline + alphachannel + 1
- BYTE* mpPreviousScan; // as big as mpDeflateInBuf
- BYTE* mpCurrentScan;
- ULONG mnDeflateInSize;
-
- ULONG mnWidth, mnHeight;
- BYTE mnBitsPerPixel;
- BYTE mnFilterType; // 0 oder 4;
- ULONG mnBBP; // bytes per pixel ( needed for filtering )
- BOOL mbTrueAlpha;
- ULONG mnCRC;
- long mnChunkDatSize;
- ULONG mnLastPercent;
-
- void ImplWritepHYs( const BitmapEx& rBitmapEx );
- void ImplWriteIDAT();
- ULONG ImplGetFilter( ULONG nY, ULONG nXStart=0, ULONG nXAdd=1 );
- void ImplClearFirstScanline();
- void ImplWriteTransparent();
- BOOL ImplWriteHeader();
- void ImplWritePalette();
- void ImplOpenChunk( ULONG nChunkType );
- void ImplWriteChunk( BYTE nNumb );
- void ImplWriteChunk( sal_uInt32 nNumb );
- void ImplWriteChunk( unsigned char* pSource, sal_uInt32 nDatSize );
- void ImplCloseChunk( void );
+ std::vector< vcl::PNGWriter::ChunkData > maChunkSeq;
+
+ sal_Int32 mnCompLevel;
+ sal_Int32 mnInterlaced;
+ sal_uInt32 mnMaxChunkSize;
+ BOOL mbStatus;
+
+ BitmapReadAccess* mpAccess;
+ BitmapReadAccess* mpMaskAccess;
+ ZCodec* mpZCodec;
+
+ BYTE* mpDeflateInBuf; // as big as the size of a scanline + alphachannel + 1
+ BYTE* mpPreviousScan; // as big as mpDeflateInBuf
+ BYTE* mpCurrentScan;
+ ULONG mnDeflateInSize;
+
+ ULONG mnWidth, mnHeight;
+ BYTE mnBitsPerPixel;
+ BYTE mnFilterType; // 0 oder 4;
+ ULONG mnBBP; // bytes per pixel ( needed for filtering )
+ BOOL mbTrueAlpha;
+ ULONG mnCRC;
+ long mnChunkDatSize;
+ ULONG mnLastPercent;
+
+ void ImplWritepHYs( const BitmapEx& rBitmapEx );
+ void ImplWriteIDAT();
+ ULONG ImplGetFilter( ULONG nY, ULONG nXStart=0, ULONG nXAdd=1 );
+ void ImplClearFirstScanline();
+ void ImplWriteTransparent();
+ BOOL ImplWriteHeader();
+ void ImplWritePalette();
+ void ImplOpenChunk( ULONG nChunkType );
+ void ImplWriteChunk( BYTE nNumb );
+ void ImplWriteChunk( sal_uInt32 nNumb );
+ void ImplWriteChunk( unsigned char* pSource, sal_uInt32 nDatSize );
+ void ImplCloseChunk( void );
};
// ------------------------------------------------------------------------
PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >* pFilterData ) :
- mnCompLevel ( PNG_DEF_COMPRESSION ),
- mbStatus ( TRUE ),
- mpAccess ( NULL ),
- mpMaskAccess ( NULL ),
- mpZCodec ( new ZCodec( DEFAULT_IN_BUFSIZE, DEFAULT_OUT_BUFSIZE, MAX_MEM_USAGE ) ),
+ mnCompLevel ( PNG_DEF_COMPRESSION ),
+ mbStatus ( TRUE ),
+ mpAccess ( NULL ),
+ mpMaskAccess ( NULL ),
+ mpZCodec ( new ZCodec( DEFAULT_IN_BUFSIZE, DEFAULT_OUT_BUFSIZE, MAX_MEM_USAGE ) ),
mnCRC(0UL),
- mnLastPercent ( 0UL )
+ mnLastPercent ( 0UL )
{
if ( !rBmpEx.IsEmpty() )
{
Bitmap aBmp( rBmpEx.GetBitmap() );
-
- mnInterlaced = 0; // ( aBmp.GetSizePixel().Width() > 128 ) || ( aBmp.GetSizePixel().Height() > 128 ) ? 1 : 0; #i67236#
+
+ mnInterlaced = 0; // ( aBmp.GetSizePixel().Width() > 128 ) || ( aBmp.GetSizePixel().Height() > 128 ) ? 1 : 0; #i67236#
// #i67234# defaulting max chunk size to 256kb when using interlace mode
mnMaxChunkSize = mnInterlaced == 0 ? std::numeric_limits< sal_uInt32 >::max() : 0x40000;
@@ -162,7 +162,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
}
}
mnBitsPerPixel = (BYTE)aBmp.GetBitCount();
-
+
if( rBmpEx.IsTransparent() )
{
if ( mnBitsPerPixel <= 8 && rBmpEx.IsAlpha() )
@@ -170,8 +170,8 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
aBmp.Convert( BMP_CONVERSION_24BIT );
mnBitsPerPixel = 24;
}
-
- if ( mnBitsPerPixel <= 8 ) // transparent palette
+
+ if ( mnBitsPerPixel <= 8 ) // transparent palette
{
aBmp.Convert( BMP_CONVERSION_8BIT_TRANS );
aBmp.Replace( rBmpEx.GetMask(), BMP_COL_TRANS );
@@ -193,7 +193,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
}
else
{
- mpAccess = aBmp.AcquireReadAccess(); // TRUE RGB with alphachannel
+ mpAccess = aBmp.AcquireReadAccess(); // TRUE RGB with alphachannel
if( mpAccess )
{
if ( ( mbTrueAlpha = rBmpEx.IsAlpha() ) != FALSE )
@@ -236,7 +236,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
}
else
{
- mpAccess = aBmp.AcquireReadAccess(); // palette + RGB without alphachannel
+ mpAccess = aBmp.AcquireReadAccess(); // palette + RGB without alphachannel
if( mpAccess )
{
if ( ImplWriteHeader() )
@@ -254,7 +254,7 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
}
if ( mbStatus )
{
- ImplOpenChunk( PNGCHUNK_IEND ); // create an IEND chunk
+ ImplOpenChunk( PNGCHUNK_IEND ); // create an IEND chunk
ImplCloseChunk();
}
}
@@ -323,10 +323,10 @@ BOOL PNGWriterImpl::ImplWriteHeader()
else
mnFilterType = 4;
- BYTE nColorType = 2; // colortype:
+ BYTE nColorType = 2; // colortype:
// bit 0 -> palette is used
- if ( mpAccess->HasPalette() ) // bit 1 -> color is used
- nColorType |= 1; // bit 2 -> alpha channel is used
+ if ( mpAccess->HasPalette() ) // bit 1 -> color is used
+ nColorType |= 1; // bit 2 -> alpha channel is used
else
nBitDepth /= 3;
@@ -334,10 +334,10 @@ BOOL PNGWriterImpl::ImplWriteHeader()
nColorType |= 4;
ImplWriteChunk( nBitDepth );
- ImplWriteChunk( nColorType ); // colortype
- ImplWriteChunk((BYTE) 0 ); // compression type
- ImplWriteChunk((BYTE) 0 ); // filter type - is not supported in this version
- ImplWriteChunk((BYTE) mnInterlaced ); // interlace type
+ ImplWriteChunk( nColorType ); // colortype
+ ImplWriteChunk((BYTE) 0 ); // compression type
+ ImplWriteChunk((BYTE) 0 ); // filter type - is not supported in this version
+ ImplWriteChunk((BYTE) mnInterlaced ); // interlace type
ImplCloseChunk();
}
else
@@ -349,9 +349,9 @@ BOOL PNGWriterImpl::ImplWriteHeader()
void PNGWriterImpl::ImplWritePalette()
{
- const ULONG nCount = mpAccess->GetPaletteEntryCount();
- BYTE* pTempBuf = new BYTE[ nCount*3 ];
- BYTE* pTmp = pTempBuf;
+ const ULONG nCount = mpAccess->GetPaletteEntryCount();
+ BYTE* pTempBuf = new BYTE[ nCount*3 ];
+ BYTE* pTmp = pTempBuf;
ImplOpenChunk( PNGCHUNK_PLTE );
@@ -417,7 +417,7 @@ void PNGWriterImpl::ImplWriteIDAT ()
mpDeflateInBuf = new BYTE[ mnDeflateInSize ];
- if ( mnFilterType ) // using filter type 4 we need memory for the scanline 3 times
+ if ( mnFilterType ) // using filter type 4 we need memory for the scanline 3 times
{
mpPreviousScan = new BYTE[ mnDeflateInSize ];
mpCurrentScan = new BYTE[ mnDeflateInSize ];
@@ -435,37 +435,37 @@ void PNGWriterImpl::ImplWriteIDAT ()
{
// interlace mode
ULONG nY;
- for ( nY = 0; nY < mnHeight; nY+=8 ) // pass 1
+ for ( nY = 0; nY < mnHeight; nY+=8 ) // pass 1
mpZCodec->Write( aOStm, mpDeflateInBuf, ImplGetFilter ( nY, 0, 8 ) );
ImplClearFirstScanline();
- for ( nY = 0; nY < mnHeight; nY+=8 ) // pass 2
+ for ( nY = 0; nY < mnHeight; nY+=8 ) // pass 2
mpZCodec->Write( aOStm, mpDeflateInBuf, ImplGetFilter ( nY, 4, 8 ) );
ImplClearFirstScanline();
- if ( mnHeight >= 5 ) // pass 3
+ if ( mnHeight >= 5 ) // pass 3
{
for ( nY = 4; nY < mnHeight; nY+=8 )
mpZCodec->Write( aOStm, mpDeflateInBuf, ImplGetFilter ( nY, 0, 4 ) );
ImplClearFirstScanline();
}
- for ( nY = 0; nY < mnHeight; nY+=4 ) // pass 4
+ for ( nY = 0; nY < mnHeight; nY+=4 ) // pass 4
mpZCodec->Write( aOStm, mpDeflateInBuf, ImplGetFilter ( nY, 2, 4 ) );
ImplClearFirstScanline();
- if ( mnHeight >= 3 ) // pass 5
+ if ( mnHeight >= 3 ) // pass 5
{
for ( nY = 2; nY < mnHeight; nY+=4 )
mpZCodec->Write( aOStm, mpDeflateInBuf, ImplGetFilter ( nY, 0, 2 ) );
ImplClearFirstScanline();
}
- for ( nY = 0; nY < mnHeight; nY+=2 ) // pass 6
+ for ( nY = 0; nY < mnHeight; nY+=2 ) // pass 6
mpZCodec->Write( aOStm, mpDeflateInBuf, ImplGetFilter ( nY, 1, 2 ) );
ImplClearFirstScanline();
- if ( mnHeight >= 2 ) // pass 7
+ if ( mnHeight >= 2 ) // pass 7
{
for ( nY = 1; nY < mnHeight; nY+=2 )
mpZCodec->Write( aOStm, mpDeflateInBuf, ImplGetFilter ( nY, 0, 1 ) );
@@ -474,7 +474,7 @@ void PNGWriterImpl::ImplWriteIDAT ()
mpZCodec->EndCompression();
mnCRC = mpZCodec->GetCRC();
- if ( mnFilterType ) // using filter type 4 we need memory for the scanline 3 times
+ if ( mnFilterType ) // using filter type 4 we need memory for the scanline 3 times
{
delete[] mpCurrentScan;
delete[] mpPreviousScan;
@@ -509,9 +509,9 @@ ULONG PNGWriterImpl::ImplGetFilter ( ULONG nY, ULONG nXStart, ULONG nXAdd )
if ( nXStart < mnWidth )
{
- *pDest++ = mnFilterType; // in this version the filter type is either 0 or 4
+ *pDest++ = mnFilterType; // in this version the filter type is either 0 or 4
- if ( mpAccess->HasPalette() ) // alphachannel is not allowed by pictures including palette entries
+ if ( mpAccess->HasPalette() ) // alphachannel is not allowed by pictures including palette entries
{
switch ( mnBitsPerPixel )
{
@@ -528,8 +528,8 @@ ULONG PNGWriterImpl::ImplGetFilter ( ULONG nY, ULONG nXStart, ULONG nXAdd )
else
*pDest |= (BYTE) mpAccess->GetPixel( nY, nX ) << nShift;
}
- if ( ( nXIndex & 7 ) != 0 ) pDest++; // byte is not completely used, so the
- } // bufferpointer is to correct
+ if ( ( nXIndex & 7 ) != 0 ) pDest++; // byte is not completely used, so the
+ } // bufferpointer is to correct
break;
case( 4 ):
@@ -560,7 +560,7 @@ ULONG PNGWriterImpl::ImplGetFilter ( ULONG nY, ULONG nXStart, ULONG nXAdd )
}
else
{
- if ( mpMaskAccess ) // mpMaskAccess != NULL -> alphachannel is to create
+ if ( mpMaskAccess ) // mpMaskAccess != NULL -> alphachannel is to create
{
if ( mbTrueAlpha )
{
@@ -608,15 +608,15 @@ ULONG PNGWriterImpl::ImplGetFilter ( ULONG nY, ULONG nXStart, ULONG nXAdd )
{
mnDeflateInSize = pDest - mpCurrentScan;
pDest = mpDeflateInBuf;
- *pDest++ = 4; // filter type
+ *pDest++ = 4; // filter type
ULONG na, nb, nc;
long np, npa, npb, npc;
- BYTE* p1 = mpCurrentScan + 1; // Current Pixel
- BYTE* p2 = p1 - mnBBP; // left pixel
- BYTE* p3 = mpPreviousScan; // upper pixel
- BYTE* p4 = p3 - mnBBP; // upperleft Pixel;
+ BYTE* p1 = mpCurrentScan + 1; // Current Pixel
+ BYTE* p2 = p1 - mnBBP; // left pixel
+ BYTE* p3 = mpPreviousScan; // upper pixel
+ BYTE* p4 = p3 - mnBBP; // upperleft Pixel;
while ( pDest < mpDeflateInBuf + mnDeflateInSize )
{
diff --git a/vcl/source/gdi/polyscan.cxx b/vcl/source/gdi/polyscan.cxx
index b96591b6aa40..4ae653857fdc 100644
--- a/vcl/source/gdi/polyscan.cxx
+++ b/vcl/source/gdi/polyscan.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,11 +40,11 @@
// ----------------
PolyScanline::PolyScanline() :
- mpFirst ( NULL ),
- mpLast ( NULL ),
- mpAct ( NULL ),
- mnLeft ( 0L ),
- mnRight ( 0L )
+ mpFirst ( NULL ),
+ mpLast ( NULL ),
+ mpAct ( NULL ),
+ mnLeft ( 0L ),
+ mnRight ( 0L )
{
}
@@ -90,7 +90,7 @@ void PolyScanline::Insert( long nX )
{
ScanlinePoint* pLast = mpFirst;
ScanlinePoint* pAct = mpFirst->mpNext;
-
+
while( pAct )
{
// insert in the midlle of the scanline?
@@ -99,10 +99,10 @@ void PolyScanline::Insert( long nX )
pLast->mpNext = new ScanlinePoint( nX, pAct );
break;
}
-
+
pLast = pAct;
pAct = pAct->mpNext;
- }
+ }
}
}
}
@@ -152,8 +152,8 @@ PolyScanner::PolyScanner( const Rectangle& rRect )
{
if( !rRect.IsEmpty() )
{
- Rectangle aRect( rRect );
- ULONG nHeight;
+ Rectangle aRect( rRect );
+ ULONG nHeight;
aRect.Justify();
mnLeft = aRect.Left();
@@ -180,9 +180,9 @@ PolyScanner::PolyScanner( const Polygon& rPoly )
if( nCount )
{
- long nLast = nCount - 1;
- Point aFirst( rPoly[ 0 ] );
- Point aLast( rPoly[ (USHORT) nLast ] );
+ long nLast = nCount - 1;
+ Point aFirst( rPoly[ 0 ] );
+ Point aLast( rPoly[ (USHORT) nLast ] );
while( nLast && ( aLast == aFirst ) )
aLast = rPoly[ (USHORT) --nLast ];
@@ -198,10 +198,10 @@ PolyScanner::PolyScanner( const Polygon& rPoly )
else
{
const Rectangle aRect( rPoly.GetBoundRect() );
- ULONG nHeight;
+ ULONG nHeight;
mnLeft = aRect.Left();
- mnTop = aRect.Top();
+ mnTop = aRect.Top();
mnRight = aRect.Right();
mnBottom = aRect.Bottom();
aLast = aFirst;
@@ -268,21 +268,21 @@ void PolyScanner::InsertLine( const Point& rStart, const Point& rEnd )
mpArray[ nY++ - mnTop ].Insert( nX );
else
while( nY > nEndY )
- mpArray[ nY-- - mnTop ].Insert( nX );
+ mpArray[ nY-- - mnTop ].Insert( nX );
}
else
{
const long nDX = labs( rEnd.X() - rStart.X() );
const long nDY = labs( rEnd.Y() - rStart.Y() );
- const long nStartX = rStart.X();
- const long nStartY = rStart.Y();
- const long nEndX = rEnd.X();
- const long nEndY = rEnd.Y();
- const long nXInc = ( nStartX < nEndX ) ? 1L : -1L;
- const long nYInc = ( nStartY < nEndY ) ? 1L : -1L;
- long nLastX = nStartX;
- long nLastY = nStartY;
- BOOL bLast = FALSE;
+ const long nStartX = rStart.X();
+ const long nStartY = rStart.Y();
+ const long nEndX = rEnd.X();
+ const long nEndY = rEnd.Y();
+ const long nXInc = ( nStartX < nEndX ) ? 1L : -1L;
+ const long nYInc = ( nStartY < nEndY ) ? 1L : -1L;
+ long nLastX = nStartX;
+ long nLastY = nStartY;
+ BOOL bLast = FALSE;
mpArray[ nStartY - mnTop ].Insert( nStartX );
@@ -307,7 +307,7 @@ void PolyScanner::InsertLine( const Point& rStart, const Point& rEnd )
nLastX = nX;
nLastY = nY;
-
+
if( nD < 0L )
nD += nDY2;
else
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 5c693648d6c1..27d6b9f19b24 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -135,8 +135,8 @@ PrinterOptions::~PrinterOptions()
QueueInfo::QueueInfo()
{
- mnStatus = 0;
- mnJobs = 0;
+ mnStatus = 0;
+ mnJobs = 0;
}
// -----------------------------------------------------------------------
@@ -162,12 +162,12 @@ QueueInfo::~QueueInfo()
bool QueueInfo::operator==( const QueueInfo& rInfo ) const
{
return
- maPrinterName == rInfo.maPrinterName &&
- maDriver == rInfo.maDriver &&
- maLocation == rInfo.maLocation &&
- maComment == rInfo.maComment &&
- mnStatus == rInfo.mnStatus &&
- mnJobs == rInfo.mnJobs;
+ maPrinterName == rInfo.maPrinterName &&
+ maDriver == rInfo.maDriver &&
+ maLocation == rInfo.maLocation &&
+ maComment == rInfo.maComment &&
+ mnStatus == rInfo.mnStatus &&
+ mnJobs == rInfo.mnJobs;
}
// -----------------------------------------------------------------------
@@ -206,9 +206,9 @@ SvStream& operator>>( SvStream& rIStream, QueueInfo& rInfo )
SalPrinterQueueInfo::SalPrinterQueueInfo()
{
- mnStatus = 0;
- mnJobs = QUEUE_JOBS_DONTKNOW;
- mpSysData = NULL;
+ mnStatus = 0;
+ mnJobs = QUEUE_JOBS_DONTKNOW;
+ mpSysData = NULL;
}
// -----------------------------------------------------------------------
@@ -221,7 +221,7 @@ SalPrinterQueueInfo::~SalPrinterQueueInfo()
ImplPrnQueueList::~ImplPrnQueueList()
{
- ImplSVData* pSVData = ImplGetSVData();
+ ImplSVData* pSVData = ImplGetSVData();
for( unsigned int i = 0; i < m_aQueueInfos.size(); i++ )
{
delete m_aQueueInfos[i].mpQueueInfo;
@@ -282,8 +282,8 @@ static void ImplInitPrnQueueList()
void ImplDeletePrnQueueList()
{
- ImplSVData* pSVData = ImplGetSVData();
- ImplPrnQueueList* pPrnList = pSVData->maGDIData.mpPrinterQueueList;
+ ImplSVData* pSVData = ImplGetSVData();
+ ImplPrnQueueList* pPrnList = pSVData->maGDIData.mpPrinterQueueList;
if ( pPrnList )
{
@@ -296,9 +296,9 @@ void ImplDeletePrnQueueList()
const std::vector<rtl::OUString>& Printer::GetPrinterQueues()
{
- ImplSVData* pSVData = ImplGetSVData();
+ ImplSVData* pSVData = ImplGetSVData();
if ( !pSVData->maGDIData.mpPrinterQueueList )
- ImplInitPrnQueueList();
+ ImplInitPrnQueueList();
return pSVData->maGDIData.mpPrinterQueueList->m_aPrinterList;
}
@@ -315,16 +315,16 @@ const QueueInfo* Printer::GetQueueInfo( const String& rPrinterName, bool bStatus
{
if( !pInfo->mpQueueInfo || bStatusUpdate )
pSVData->mpDefInst->GetPrinterQueueState( pInfo->mpSalQueueInfo );
-
+
if ( !pInfo->mpQueueInfo )
pInfo->mpQueueInfo = new QueueInfo;
-
- pInfo->mpQueueInfo->maPrinterName = pInfo->mpSalQueueInfo->maPrinterName;
- pInfo->mpQueueInfo->maDriver = pInfo->mpSalQueueInfo->maDriver;
- pInfo->mpQueueInfo->maLocation = pInfo->mpSalQueueInfo->maLocation;
- pInfo->mpQueueInfo->maComment = pInfo->mpSalQueueInfo->maComment;
- pInfo->mpQueueInfo->mnStatus = pInfo->mpSalQueueInfo->mnStatus;
- pInfo->mpQueueInfo->mnJobs = pInfo->mpSalQueueInfo->mnJobs;
+
+ pInfo->mpQueueInfo->maPrinterName = pInfo->mpSalQueueInfo->maPrinterName;
+ pInfo->mpQueueInfo->maDriver = pInfo->mpSalQueueInfo->maDriver;
+ pInfo->mpQueueInfo->maLocation = pInfo->mpSalQueueInfo->maLocation;
+ pInfo->mpQueueInfo->maComment = pInfo->mpSalQueueInfo->maComment;
+ pInfo->mpQueueInfo->mnStatus = pInfo->mpSalQueueInfo->mnStatus;
+ pInfo->mpQueueInfo->mnJobs = pInfo->mpSalQueueInfo->mnJobs;
return pInfo->mpQueueInfo;
}
return NULL;
@@ -338,34 +338,34 @@ XubString Printer::GetDefaultPrinterName()
if( !pEnv || !*pEnv )
{
ImplSVData* pSVData = ImplGetSVData();
-
+
return pSVData->mpDefInst->GetDefaultPrinter();
}
- return XubString();
+ return XubString();
}
// =======================================================================
void Printer::ImplInitData()
{
- mbDevOutput = FALSE;
- meOutDevType = OUTDEV_PRINTER;
- mbDefPrinter = FALSE;
- mnError = 0;
- mnCurPage = 0;
- mnCurPrintPage = 0;
- mnPageQueueSize = 0;
- mnCopyCount = 1;
- mbCollateCopy = FALSE;
- mbPrinting = FALSE;
- mbJobActive = FALSE;
- mbPrintFile = FALSE;
- mbInPrintPage = FALSE;
- mbNewJobSetup = FALSE;
- mpInfoPrinter = NULL;
- mpPrinter = NULL;
- mpDisplayDev = NULL;
- mbIsQueuePrinter = FALSE;
+ mbDevOutput = FALSE;
+ meOutDevType = OUTDEV_PRINTER;
+ mbDefPrinter = FALSE;
+ mnError = 0;
+ mnCurPage = 0;
+ mnCurPrintPage = 0;
+ mnPageQueueSize = 0;
+ mnCopyCount = 1;
+ mbCollateCopy = FALSE;
+ mbPrinting = FALSE;
+ mbJobActive = FALSE;
+ mbPrintFile = FALSE;
+ mbInPrintPage = FALSE;
+ mbNewJobSetup = FALSE;
+ mpInfoPrinter = NULL;
+ mpPrinter = NULL;
+ mpDisplayDev = NULL;
+ mbIsQueuePrinter = FALSE;
mpPrinterOptions = new PrinterOptions;
// Printer in die Liste eintragen
@@ -409,9 +409,9 @@ void Printer::ImplInit( SalPrinterQueueInfo* pInfo )
pJobSetup->maPrinterName = maPrinterName;
pJobSetup->maDriver = maDriver;
- mpInfoPrinter = pSVData->mpDefInst->CreateInfoPrinter( pInfo, pJobSetup );
- mpPrinter = NULL;
- mpJobGraphics = NULL;
+ mpInfoPrinter = pSVData->mpDefInst->CreateInfoPrinter( pInfo, pJobSetup );
+ mpPrinter = NULL;
+ mpJobGraphics = NULL;
ImplUpdateJobSetupPaper( maJobSetup );
if ( !mpInfoPrinter )
@@ -440,18 +440,18 @@ void Printer::ImplInitDisplay( const Window* pWindow )
{
ImplSVData* pSVData = ImplGetSVData();
- mpInfoPrinter = NULL;
- mpPrinter = NULL;
- mpJobGraphics = NULL;
+ mpInfoPrinter = NULL;
+ mpPrinter = NULL;
+ mpJobGraphics = NULL;
if ( pWindow )
mpDisplayDev = new VirtualDevice( *pWindow );
else
mpDisplayDev = new VirtualDevice();
- mpFontList = pSVData->maGDIData.mpScreenFontList;
- mpFontCache = pSVData->maGDIData.mpScreenFontCache;
- mnDPIX = mpDisplayDev->mnDPIX;
- mnDPIY = mpDisplayDev->mnDPIY;
+ mpFontList = pSVData->maGDIData.mpScreenFontList;
+ mpFontCache = pSVData->maGDIData.mpScreenFontCache;
+ mnDPIX = mpDisplayDev->mnDPIX;
+ mnDPIY = mpDisplayDev->mnDPIY;
}
// -----------------------------------------------------------------------
@@ -785,11 +785,11 @@ BOOL Printer::SetPrinterProps( const Printer* pPrinter )
ImplSVData* pSVData = ImplGetSVData();
- mbDefPrinter = pPrinter->mbDefPrinter;
- maPrintFile = pPrinter->maPrintFile;
- mbPrintFile = pPrinter->mbPrintFile;
- mnCopyCount = pPrinter->mnCopyCount;
- mbCollateCopy = pPrinter->mbCollateCopy;
+ mbDefPrinter = pPrinter->mbDefPrinter;
+ maPrintFile = pPrinter->maPrintFile;
+ mbPrintFile = pPrinter->mbPrintFile;
+ mnCopyCount = pPrinter->mnCopyCount;
+ mbCollateCopy = pPrinter->mbCollateCopy;
mnPageQueueSize = pPrinter->mnPageQueueSize;
*mpPrinterOptions = *pPrinter->mpPrinterOptions;
@@ -894,8 +894,8 @@ BOOL Printer::SetOrientation( Orientation eOrientation )
if ( maJobSetup.ImplGetConstData()->meOrientation != eOrientation )
{
- JobSetup aJobSetup = maJobSetup;
- ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
+ JobSetup aJobSetup = maJobSetup;
+ ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
pSetupData->meOrientation = eOrientation;
if ( IsDisplayPrinter() )
@@ -939,8 +939,8 @@ BOOL Printer::SetPaperBin( USHORT nPaperBin )
if ( (maJobSetup.ImplGetConstData()->mnPaperBin != nPaperBin) &&
(nPaperBin < GetPaperBinCount()) )
{
- JobSetup aJobSetup = maJobSetup;
- ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
+ JobSetup aJobSetup = maJobSetup;
+ ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
pSetupData->mnPaperBin = nPaperBin;
if ( IsDisplayPrinter() )
@@ -979,10 +979,10 @@ USHORT Printer::GetPaperBin() const
// Map user paper format to a available printer paper formats
void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNearest )
{
- ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
+ ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
- int nLandscapeAngle = GetLandscapeAngle();
- int nPaperCount = GetPaperInfoCount();
+ int nLandscapeAngle = GetLandscapeAngle();
+ int nPaperCount = GetPaperInfoCount();
bool bFound = false;
PaperInfo aInfo(pSetupData->mnPaperWidth, pSetupData->mnPaperHeight);
@@ -1026,7 +1026,7 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe
}
}
}
-
+
if( ! bFound && bMatchNearest )
{
sal_Int64 nBestMatch = SAL_MAX_INT64;
@@ -1035,11 +1035,11 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe
for( int i = 0; i < nPaperCount; i++ )
{
const PaperInfo& rPaperInfo = GetPaperInfo( i );
-
+
// check protrait match
sal_Int64 nDX = pSetupData->mnPaperWidth - rPaperInfo.getWidth();
sal_Int64 nDY = pSetupData->mnPaperHeight - rPaperInfo.getHeight();
- sal_Int64 nMatch = nDX*nDX + nDY*nDY;
+ sal_Int64 nMatch = nDX*nDX + nDY*nDY;
if( nMatch < nBestMatch )
{
nBestMatch = nMatch;
@@ -1074,8 +1074,8 @@ BOOL Printer::SetPaper( Paper ePaper )
if ( maJobSetup.ImplGetConstData()->mePaperFormat != ePaper )
{
- JobSetup aJobSetup = maJobSetup;
- ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
+ JobSetup aJobSetup = maJobSetup;
+ ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
pSetupData->mePaperFormat = ePaper;
if ( ePaper != PAPER_USER )
{
@@ -1122,17 +1122,17 @@ BOOL Printer::SetPaperSizeUser( const Size& rSize, bool bMatchNearest )
if ( mbInPrintPage )
return FALSE;
- Size aPixSize = LogicToPixel( rSize );
- Size aPageSize = PixelToLogic( aPixSize, MAP_100TH_MM );
- if ( (maJobSetup.ImplGetConstData()->mePaperFormat != PAPER_USER) ||
+ Size aPixSize = LogicToPixel( rSize );
+ Size aPageSize = PixelToLogic( aPixSize, MAP_100TH_MM );
+ if ( (maJobSetup.ImplGetConstData()->mePaperFormat != PAPER_USER) ||
(maJobSetup.ImplGetConstData()->mnPaperWidth != aPageSize.Width()) ||
(maJobSetup.ImplGetConstData()->mnPaperHeight != aPageSize.Height()) )
{
- JobSetup aJobSetup = maJobSetup;
- ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
- pSetupData->mePaperFormat = PAPER_USER;
- pSetupData->mnPaperWidth = aPageSize.Width();
- pSetupData->mnPaperHeight = aPageSize.Height();
+ JobSetup aJobSetup = maJobSetup;
+ ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
+ pSetupData->mePaperFormat = PAPER_USER;
+ pSetupData->mnPaperWidth = aPageSize.Width();
+ pSetupData->mnPaperHeight = aPageSize.Height();
if ( IsDisplayPrinter() )
{
@@ -1201,8 +1201,8 @@ BOOL Printer::SetDuplexMode( DuplexMode eDuplex )
if ( maJobSetup.ImplGetConstData()->meDuplexMode != eDuplex )
{
- JobSetup aJobSetup = maJobSetup;
- ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
+ JobSetup aJobSetup = maJobSetup;
+ ImplJobSetup* pSetupData = aJobSetup.ImplGetData();
pSetupData->meDuplexMode = eDuplex;
if ( IsDisplayPrinter() )
@@ -1308,8 +1308,8 @@ ULONG Printer::ImplSalPrinterErrorCodeToVCL( ULONG nError )
void Printer::ImplEndPrint()
{
- mbPrinting = FALSE;
- mnCurPrintPage = 0;
+ mbPrinting = FALSE;
+ mnCurPrintPage = 0;
maJobName.Erase();
}
@@ -1343,8 +1343,8 @@ BOOL Printer::EndJob()
bRet = TRUE;
- mbPrinting = FALSE;
- mnCurPrintPage = 0;
+ mbPrinting = FALSE;
+ mnCurPrintPage = 0;
maJobName.Erase();
mbDevOutput = FALSE;
@@ -1368,15 +1368,15 @@ BOOL Printer::AbortJob()
if ( !IsJobActive() && !IsPrinting() )
return FALSE;
- mbJobActive = FALSE;
- mbInPrintPage = FALSE;
- mpJobGraphics = NULL;
+ mbJobActive = FALSE;
+ mbInPrintPage = FALSE;
+ mpJobGraphics = NULL;
if ( mpPrinter )
{
- mbPrinting = FALSE;
- mnCurPage = 0;
- mnCurPrintPage = 0;
+ mbPrinting = FALSE;
+ mnCurPage = 0;
+ mnCurPrintPage = 0;
maJobName.Erase();
ImplReleaseGraphics();
@@ -1442,14 +1442,14 @@ void Printer::ImplEndPage()
void Printer::updatePrinters()
{
- ImplSVData* pSVData = ImplGetSVData();
- ImplPrnQueueList* pPrnList = pSVData->maGDIData.mpPrinterQueueList;
+ ImplSVData* pSVData = ImplGetSVData();
+ ImplPrnQueueList* pPrnList = pSVData->maGDIData.mpPrinterQueueList;
if ( pPrnList )
{
ImplPrnQueueList* pNewList = new ImplPrnQueueList;
pSVData->mpDefInst->GetPrinterQueueInfo( pNewList );
-
+
bool bChanged = pPrnList->m_aQueueInfos.size() != pNewList->m_aQueueInfos.size();
for( unsigned int i = 0; ! bChanged && i < pPrnList->m_aQueueInfos.size(); i++ )
{
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index b5f9e08daa81..b016bd9f13e5 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,7 +67,7 @@ typedef ::std::list< Component > ComponentList;
// List of (intersecting) actions, plus overall bounds
struct ConnectedComponents
{
- ConnectedComponents() :
+ ConnectedComponents() :
aComponentList(),
aBounds(),
aBgColor(COL_WHITE),
@@ -75,14 +75,14 @@ struct ConnectedComponents
bIsFullyTransparent(false)
{}
- ComponentList aComponentList;
- Rectangle aBounds;
+ ComponentList aComponentList;
+ Rectangle aBounds;
Color aBgColor;
- bool bIsSpecial;
- bool bIsFullyTransparent;
+ bool bIsSpecial;
+ bool bIsFullyTransparent;
};
-typedef ::std::list< ConnectedComponents > ConnectedComponentsList;
+typedef ::std::list< ConnectedComponents > ConnectedComponentsList;
// -----------
@@ -127,7 +127,7 @@ static bool checkRect( Rectangle& io_rPrevRect,
{
// shape needs to fully cover previous content, and have uniform
// color
- const bool bRet(
+ const bool bRet(
rMapModeVDev.LogicToPixel(rCurrRect).IsInside(io_rPrevRect) &&
rMapModeVDev.IsFillColor() );
@@ -136,7 +136,7 @@ static bool checkRect( Rectangle& io_rPrevRect,
io_rPrevRect = rCurrRect;
o_rBgColor = rMapModeVDev.GetFillColor();
}
-
+
return bRet;
}
@@ -155,7 +155,7 @@ static void ImplConvertTransparentAction( GDIMetaFile& o_rMtf,
if( rAct.GetType() == META_TRANSPARENT_ACTION )
{
const MetaTransparentAction* pTransAct = static_cast<const MetaTransparentAction*>(&rAct);
- USHORT nTransparency( pTransAct->GetTransparence() );
+ USHORT nTransparency( pTransAct->GetTransparence() );
// #i10613# Respect transparency for draw color
if( nTransparency )
@@ -190,7 +190,7 @@ static void ImplConvertTransparentAction( GDIMetaFile& o_rMtf,
case META_BMPEX_ACTION:
aBmpEx = static_cast<const MetaBmpExAction&>(rAct).GetBitmapEx();
break;
-
+
case META_BMPEXSCALE_ACTION:
aBmpEx = static_cast<const MetaBmpExScaleAction&>(rAct).GetBitmapEx();
break;
@@ -219,7 +219,7 @@ static void ImplConvertTransparentAction( GDIMetaFile& o_rMtf,
if( pRA->HasPalette() )
aActualColor = pRA->GetBestPaletteColor( aBgColor ).operator Color();
-
+
aBmp.ReleaseAccess(pRA);
// did we get true white?
@@ -248,22 +248,22 @@ static void ImplConvertTransparentAction( GDIMetaFile& o_rMtf,
switch( rAct.GetType() )
{
case META_BMPEX_ACTION:
- o_rMtf.AddAction( new MetaBmpAction(
- static_cast<const MetaBmpExAction&>(rAct).GetPoint(),
+ o_rMtf.AddAction( new MetaBmpAction(
+ static_cast<const MetaBmpExAction&>(rAct).GetPoint(),
aBmp ));
break;
case META_BMPEXSCALE_ACTION:
- o_rMtf.AddAction( new MetaBmpScaleAction(
- static_cast<const MetaBmpExScaleAction&>(rAct).GetPoint(),
- static_cast<const MetaBmpExScaleAction&>(rAct).GetSize(),
+ o_rMtf.AddAction( new MetaBmpScaleAction(
+ static_cast<const MetaBmpExScaleAction&>(rAct).GetPoint(),
+ static_cast<const MetaBmpExScaleAction&>(rAct).GetSize(),
aBmp ));
break;
case META_BMPEXSCALEPART_ACTION:
- o_rMtf.AddAction( new MetaBmpScalePartAction(
- static_cast<const MetaBmpExScalePartAction&>(rAct).GetDestPoint(),
- static_cast<const MetaBmpExScalePartAction&>(rAct).GetDestSize(),
- static_cast<const MetaBmpExScalePartAction&>(rAct).GetSrcPoint(),
- static_cast<const MetaBmpExScalePartAction&>(rAct).GetSrcSize(),
+ o_rMtf.AddAction( new MetaBmpScalePartAction(
+ static_cast<const MetaBmpExScalePartAction&>(rAct).GetDestPoint(),
+ static_cast<const MetaBmpExScalePartAction&>(rAct).GetDestSize(),
+ static_cast<const MetaBmpExScalePartAction&>(rAct).GetSrcPoint(),
+ static_cast<const MetaBmpExScalePartAction&>(rAct).GetSrcSize(),
aBmp ));
break;
default:
@@ -277,9 +277,9 @@ static void ImplConvertTransparentAction( GDIMetaFile& o_rMtf,
// Returns true, if given action creates visible (i.e. non-transparent) output
static bool ImplIsNotTransparent( const MetaAction& rAct, const OutputDevice& rOut )
{
- const bool bLineTransparency( rOut.IsLineColor() ? rOut.GetLineColor().GetTransparency() == 255 : true );
- const bool bFillTransparency( rOut.IsFillColor() ? rOut.GetFillColor().GetTransparency() == 255 : true );
- bool bRet( false );
+ const bool bLineTransparency( rOut.IsLineColor() ? rOut.GetLineColor().GetTransparency() == 255 : true );
+ const bool bFillTransparency( rOut.IsFillColor() ? rOut.GetFillColor().GetTransparency() == 255 : true );
+ bool bRet( false );
switch( rAct.GetType() )
{
@@ -405,7 +405,7 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
break;
case META_LINE_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaLineAction&>(rAct).GetStartPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaLineAction&>(rAct).GetStartPoint(),
static_cast<const MetaLineAction&>(rAct).GetEndPoint() );
break;
@@ -459,47 +459,47 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
break;
case META_BMP_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaBmpAction&>(rAct).GetPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaBmpAction&>(rAct).GetPoint(),
rOut.PixelToLogic( static_cast<const MetaBmpAction&>(rAct).GetBitmap().GetSizePixel() ) );
break;
case META_BMPSCALE_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaBmpScaleAction&>(rAct).GetPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaBmpScaleAction&>(rAct).GetPoint(),
static_cast<const MetaBmpScaleAction&>(rAct).GetSize() );
break;
case META_BMPSCALEPART_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaBmpScalePartAction&>(rAct).GetDestPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaBmpScalePartAction&>(rAct).GetDestPoint(),
static_cast<const MetaBmpScalePartAction&>(rAct).GetDestSize() );
break;
case META_BMPEX_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaBmpExAction&>(rAct).GetPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaBmpExAction&>(rAct).GetPoint(),
rOut.PixelToLogic( static_cast<const MetaBmpExAction&>(rAct).GetBitmapEx().GetSizePixel() ) );
break;
case META_BMPEXSCALE_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaBmpExScaleAction&>(rAct).GetPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaBmpExScaleAction&>(rAct).GetPoint(),
static_cast<const MetaBmpExScaleAction&>(rAct).GetSize() );
break;
case META_BMPEXSCALEPART_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaBmpExScalePartAction&>(rAct).GetDestPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaBmpExScalePartAction&>(rAct).GetDestPoint(),
static_cast<const MetaBmpExScalePartAction&>(rAct).GetDestSize() );
break;
case META_MASK_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaMaskAction&>(rAct).GetPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaMaskAction&>(rAct).GetPoint(),
rOut.PixelToLogic( static_cast<const MetaMaskAction&>(rAct).GetBitmap().GetSizePixel() ) );
break;
case META_MASKSCALE_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaMaskScaleAction&>(rAct).GetPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaMaskScaleAction&>(rAct).GetPoint(),
static_cast<const MetaMaskScaleAction&>(rAct).GetSize() );
break;
case META_MASKSCALEPART_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaMaskScalePartAction&>(rAct).GetDestPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaMaskScalePartAction&>(rAct).GetDestPoint(),
static_cast<const MetaMaskScalePartAction&>(rAct).GetDestSize() );
break;
@@ -524,12 +524,12 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
break;
case META_FLOATTRANSPARENT_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaFloatTransparentAction&>(rAct).GetPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaFloatTransparentAction&>(rAct).GetPoint(),
static_cast<const MetaFloatTransparentAction&>(rAct).GetSize() );
break;
case META_EPS_ACTION:
- aActionBounds = Rectangle( static_cast<const MetaEPSAction&>(rAct).GetPoint(),
+ aActionBounds = Rectangle( static_cast<const MetaEPSAction&>(rAct).GetPoint(),
static_cast<const MetaEPSAction&>(rAct).GetSize() );
break;
@@ -544,7 +544,7 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
// #105987# Use API method instead of Impl* methods
// #107490# Set base parameter equal to index parameter
- rOut.GetTextBoundRect( aActionBounds, rTextAct.GetText(), rTextAct.GetIndex(),
+ rOut.GetTextBoundRect( aActionBounds, rTextAct.GetText(), rTextAct.GetIndex(),
rTextAct.GetIndex(), rTextAct.GetLen() );
aActionBounds.Move( aPtLog.X(), aPtLog.Y() );
}
@@ -553,15 +553,15 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
case META_TEXTARRAY_ACTION:
{
- const MetaTextArrayAction& rTextAct = static_cast<const MetaTextArrayAction&>(rAct);
- const XubString aString( rTextAct.GetText(), rTextAct.GetIndex(), rTextAct.GetLen() );
- const long nLen = aString.Len();
+ const MetaTextArrayAction& rTextAct = static_cast<const MetaTextArrayAction&>(rAct);
+ const XubString aString( rTextAct.GetText(), rTextAct.GetIndex(), rTextAct.GetLen() );
+ const long nLen = aString.Len();
if( nLen )
{
// #105987# ImplLayout takes everything in logical coordinates
- SalLayout* pSalLayout = rOut.ImplLayout( rTextAct.GetText(), rTextAct.GetIndex(),
- rTextAct.GetLen(), rTextAct.GetPoint(),
+ SalLayout* pSalLayout = rOut.ImplLayout( rTextAct.GetText(), rTextAct.GetIndex(),
+ rTextAct.GetLen(), rTextAct.GetPoint(),
0, rTextAct.GetDXArray() );
if( pSalLayout )
{
@@ -580,8 +580,8 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
case META_STRETCHTEXT_ACTION:
{
const MetaStretchTextAction& rTextAct = static_cast<const MetaStretchTextAction&>(rAct);
- const XubString aString( rTextAct.GetText(), rTextAct.GetIndex(), rTextAct.GetLen() );
- const long nLen = aString.Len();
+ const XubString aString( rTextAct.GetText(), rTextAct.GetIndex(), rTextAct.GetLen() );
+ const long nLen = aString.Len();
// #i16195# Literate copy from TextArray action, the
// semantics for the ImplLayout call are copied from the
@@ -591,8 +591,8 @@ static Rectangle ImplCalcActionBounds( const MetaAction& rAct, const OutputDevic
if( nLen )
{
// #105987# ImplLayout takes everything in logical coordinates
- SalLayout* pSalLayout = rOut.ImplLayout( rTextAct.GetText(), rTextAct.GetIndex(),
- rTextAct.GetLen(), rTextAct.GetPoint(),
+ SalLayout* pSalLayout = rOut.ImplLayout( rTextAct.GetText(), rTextAct.GetIndex(),
+ rTextAct.GetLen(), rTextAct.GetPoint(),
rTextAct.GetWidth() );
if( pSalLayout )
{
@@ -641,7 +641,7 @@ static bool ImplIsActionHandlingTransparency( const MetaAction& rAct )
}
// remove comment to enable highlighting of generated output
-bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, GDIMetaFile& rOutMtf,
+bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf, GDIMetaFile& rOutMtf,
long nMaxBmpDPIX, long nMaxBmpDPIY,
bool bReduceTransparency, bool bTransparencyAutoMode,
bool bDownsampleBitmaps,
@@ -649,15 +649,15 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
)
{
MetaAction* pCurrAct;
- bool bTransparent( false );
+ bool bTransparent( false );
rOutMtf.Clear();
if( ! bReduceTransparency || bTransparencyAutoMode )
{
// watch for transparent drawing actions
- for( pCurrAct = ( (GDIMetaFile&) rInMtf ).FirstAction();
- pCurrAct && !bTransparent;
+ for( pCurrAct = ( (GDIMetaFile&) rInMtf ).FirstAction();
+ pCurrAct && !bTransparent;
pCurrAct = ( (GDIMetaFile&) rInMtf ).NextAction() )
{
// #i10613# Extracted "specialness" predicate into extra method
@@ -676,7 +676,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
}
}
- // #i10613# Determine set of connected components containing transparent objects. These are
+ // #i10613# Determine set of connected components containing transparent objects. These are
// then processed as bitmaps, the original actions are removed from the metafile.
if( !bTransparent )
{
@@ -685,7 +685,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
}
else
{
- // #i10613#
+ // #i10613#
// This works as follows: we want a number of distinct sets of
// connected components, where each set contains metafile
// actions that are intersecting (note: there are possibly
@@ -827,12 +827,12 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// execute action to get correct MapModes etc.
pCurrAct->Execute( &aMapModeVDev );
-
+
pCurrAct=const_cast<GDIMetaFile&>(rInMtf).NextAction();
++nActionNum;
}
- ConnectedComponentsList aCCList; // list containing distinct sets of connected components as elements.
+ ConnectedComponentsList aCCList; // list containing distinct sets of connected components as elements.
// create an OutputDevice to record mapmode changes and the like
VirtualDevice aMapModeVDev2;
@@ -848,7 +848,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
{
// up to and including last ink-generating background
// action go to background component
- aBackgroundComponent.aComponentList.push_back(
+ aBackgroundComponent.aComponentList.push_back(
::std::make_pair(
pCurrAct, nActionNum) );
@@ -865,26 +865,26 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// iterate over all actions (start where background action
// search left off)
- for( ;
- pCurrAct;
+ for( ;
+ pCurrAct;
pCurrAct=const_cast<GDIMetaFile&>(rInMtf).NextAction(), ++nActionNum )
{
// execute action to get correct MapModes etc.
pCurrAct->Execute( &aMapModeVDev2 );
- // cache bounds of current action
+ // cache bounds of current action
const Rectangle aBBCurrAct( ImplCalcActionBounds(*pCurrAct, aMapModeVDev2) );
// accumulate collected bounds here, initialize with current action
- Rectangle aTotalBounds( aBBCurrAct ); // thus,
+ Rectangle aTotalBounds( aBBCurrAct ); // thus,
// aTotalComponents.aBounds
// is
// empty
// for
// non-output-generating
// actions
- bool bTreatSpecial( false );
- ConnectedComponents aTotalComponents;
+ bool bTreatSpecial( false );
+ ConnectedComponents aTotalComponents;
//
// STAGE 2.1: Search for intersecting cc entries
@@ -904,7 +904,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// component.
aTotalComponents.bIsFullyTransparent = !ImplIsNotTransparent(*pCurrAct, aMapModeVDev2);
- if( !aBBCurrAct.IsEmpty() &&
+ if( !aBBCurrAct.IsEmpty() &&
!aTotalComponents.bIsFullyTransparent )
{
if( !aBackgroundComponent.aComponentList.empty() &&
@@ -913,18 +913,18 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// it seems the background is not large enough. to
// be on the safe side, combine with this component.
aTotalBounds.Union( aBackgroundComponent.aBounds );
-
+
// extract all aCurr actions to aTotalComponents
- aTotalComponents.aComponentList.splice( aTotalComponents.aComponentList.end(),
+ aTotalComponents.aComponentList.splice( aTotalComponents.aComponentList.end(),
aBackgroundComponent.aComponentList );
-
+
if( aBackgroundComponent.bIsSpecial )
bTreatSpecial = true;
}
- ConnectedComponentsList::iterator aCurrCC;
+ ConnectedComponentsList::iterator aCurrCC;
const ConnectedComponentsList::iterator aLastCC( aCCList.end() );
- bool bSomeComponentsChanged;
+ bool bSomeComponentsChanged;
// now, this is unfortunate: since changing anyone of
// the aCCList elements (e.g. by merging or addition
@@ -958,11 +958,11 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// calc union bounding box
aTotalBounds.Union( aCurrCC->aBounds );
-
+
// extract all aCurr actions to aTotalComponents
- aTotalComponents.aComponentList.splice( aTotalComponents.aComponentList.end(),
+ aTotalComponents.aComponentList.splice( aTotalComponents.aComponentList.end(),
aCurrCC->aComponentList );
-
+
if( aCurrCC->bIsSpecial )
bTreatSpecial = true;
@@ -1015,7 +1015,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
{
// added action is special and none of prev components
// special -> do the detailed tests
-
+
// can the action handle transparency correctly
// (i.e. when painted on white background, does the
// action still look correct)?
@@ -1059,19 +1059,19 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// set new bounds and add action to list
aTotalComponents.aBounds = aTotalBounds;
- aTotalComponents.aComponentList.push_back(
+ aTotalComponents.aComponentList.push_back(
::std::make_pair(
pCurrAct, nActionNum) );
// add aTotalComponents as a new entry to aCCList
aCCList.push_back( aTotalComponents );
- DBG_ASSERT( !aTotalComponents.aComponentList.empty(),
+ DBG_ASSERT( !aTotalComponents.aComponentList.empty(),
"Printer::GetPreparedMetaFile empty component" );
- DBG_ASSERT( !aTotalComponents.aBounds.IsEmpty() ||
+ DBG_ASSERT( !aTotalComponents.aBounds.IsEmpty() ||
(aTotalComponents.aBounds.IsEmpty() && aTotalComponents.aComponentList.size() == 1),
"Printer::GetPreparedMetaFile non-output generating actions must be solitary");
- DBG_ASSERT( !aTotalComponents.bIsFullyTransparent ||
+ DBG_ASSERT( !aTotalComponents.bIsFullyTransparent ||
(aTotalComponents.bIsFullyTransparent && aTotalComponents.aComponentList.size() == 1),
"Printer::GetPreparedMetaFile fully transparent actions must be solitary");
}
@@ -1089,11 +1089,11 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
::std::vector< const ConnectedComponents* > aCCList_MemberMap( rInMtf.GetActionCount() );
// iterate over all aCCList members and their contained metaactions
- ConnectedComponentsList::iterator aCurr( aCCList.begin() );
+ ConnectedComponentsList::iterator aCurr( aCCList.begin() );
const ConnectedComponentsList::iterator aLast( aCCList.end() );
for( ; aCurr != aLast; ++aCurr )
{
- ComponentList::iterator aCurrentAction( aCurr->aComponentList.begin() );
+ ComponentList::iterator aCurrentAction( aCurr->aComponentList.begin() );
const ComponentList::iterator aLastAction( aCurr->aComponentList.end() );
for( ; aCurrentAction != aLastAction; ++aCurrentAction )
{
@@ -1107,7 +1107,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// ===========================================================
//
- ComponentList::iterator aCurrAct( aBackgroundComponent.aComponentList.begin() );
+ ComponentList::iterator aCurrAct( aBackgroundComponent.aComponentList.begin() );
const ComponentList::iterator aLastAct( aBackgroundComponent.aComponentList.end() );
for( ; aCurrAct != aLastAct; ++aCurrAct )
{
@@ -1128,7 +1128,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
{
aTmpSize = mpPDFWriter->getCurPageSize();
aTmpSize = LogicToPixel( aTmpSize, MapMode( MAP_POINT ) );
-
+
// also add error code to PDFWriter
mpPDFWriter->insertError( vcl::PDFWriter::Warning_Transparency_Converted );
}
@@ -1147,7 +1147,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
{
if( aCurr->bIsSpecial )
{
- Rectangle aBoundRect( aCurr->aBounds );
+ Rectangle aBoundRect( aCurr->aBounds );
aBoundRect.Intersection( aOutputRect );
const double fBmpArea( (double) aBoundRect.GetWidth() * aBoundRect.GetHeight() );
@@ -1167,18 +1167,18 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
if( aBoundRect.GetWidth() && aBoundRect.GetHeight() )
{
Point aDstPtPix( aBoundRect.TopLeft() );
- Size aDstSzPix;
+ Size aDstSzPix;
- VirtualDevice aMapVDev; // here, we record only mapmode information
+ VirtualDevice aMapVDev; // here, we record only mapmode information
aMapVDev.EnableOutput(FALSE);
- VirtualDevice aPaintVDev; // into this one, we render.
+ VirtualDevice aPaintVDev; // into this one, we render.
rOutMtf.AddAction( new MetaPushAction( PUSH_MAPMODE ) );
rOutMtf.AddAction( new MetaMapModeAction() );
aPaintVDev.SetDrawMode( GetDrawMode() );
-
+
while( aDstPtPix.Y() <= aBoundRect.Bottom() )
{
aDstPtPix.X() = aBoundRect.Left();
@@ -1204,8 +1204,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
aPaintVDev.EnableOutput(FALSE);
// iterate over all actions
- for( pCurrAct=const_cast<GDIMetaFile&>(rInMtf).FirstAction(), nActionNum=0;
- pCurrAct;
+ for( pCurrAct=const_cast<GDIMetaFile&>(rInMtf).FirstAction(), nActionNum=0;
+ pCurrAct;
pCurrAct=const_cast<GDIMetaFile&>(rInMtf).NextAction(), ++nActionNum )
{
// enable output only for
@@ -1222,7 +1222,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
{
pCurrAct->Execute( &aMapVDev );
- MapMode aMtfMap( aMapVDev.GetMapMode() );
+ MapMode aMtfMap( aMapVDev.GetMapMode() );
const Point aNewOrg( aMapVDev.PixelToLogic( aDstPtPix ) );
aMtfMap.SetOrigin( Point( -aNewOrg.X(), -aNewOrg.Y() ) );
@@ -1259,7 +1259,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// scale down bitmap, if requested
if( bDownsampleBitmaps )
{
- aBandBmp = GetDownsampledBitmap( aDstSzPix,
+ aBandBmp = GetDownsampledBitmap( aDstSzPix,
Point(), aBandBmp.GetSizePixel(),
aBandBmp, nMaxBmpDPIX, nMaxBmpDPIY );
}
@@ -1302,8 +1302,8 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// iterate over all actions and duplicate the ones not in a
// special aCCList member into rOutMtf
- for( pCurrAct=const_cast<GDIMetaFile&>(rInMtf).FirstAction(), nActionNum=0;
- pCurrAct;
+ for( pCurrAct=const_cast<GDIMetaFile&>(rInMtf).FirstAction(), nActionNum=0;
+ pCurrAct;
pCurrAct=const_cast<GDIMetaFile&>(rInMtf).NextAction(), ++nActionNum )
{
const ConnectedComponents* pCurrAssociatedComponent = aCCList_MemberMap[nActionNum];
@@ -1348,7 +1348,7 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
// -----------------------------------------------------------------------------
-Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz,
+Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz,
const Point& rSrcPt, const Size& rSrcSz,
const Bitmap& rBmp, long nMaxBmpDPIX, long nMaxBmpDPIY )
{
@@ -1384,8 +1384,8 @@ Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz,
const double fMaxPixelY = aDstSizeTwip.Height() * nMaxBmpDPIY / 1440.0;
// check, if the bitmap DPI exceeds the maximum DPI (allow 4 pixel rounding tolerance)
- if( ( ( fBmpPixelX > ( fMaxPixelX + 4 ) ) ||
- ( fBmpPixelY > ( fMaxPixelY + 4 ) ) ) &&
+ if( ( ( fBmpPixelX > ( fMaxPixelX + 4 ) ) ||
+ ( fBmpPixelY > ( fMaxPixelY + 4 ) ) ) &&
( fBmpPixelY > 0.0 ) && ( fMaxPixelY > 0.0 ) )
{
// do scaling
@@ -1442,7 +1442,7 @@ BitmapEx OutputDevice::GetDownsampledBitmapEx( const Size& rDstSz,
{
// do downsampling if neccessary
Size aDstSizeTwip( PixelToLogic( LogicToPixel( rDstSz ), MAP_TWIP ) );
-
+
// #103209# Normalize size (mirroring has to happen outside of this method)
aDstSizeTwip = Size( labs(aDstSizeTwip.Width()), labs(aDstSizeTwip.Height()) );
@@ -1453,8 +1453,8 @@ BitmapEx OutputDevice::GetDownsampledBitmapEx( const Size& rDstSz,
const double fMaxPixelY = aDstSizeTwip.Height() * nMaxBmpDPIY / 1440.0;
// check, if the bitmap DPI exceeds the maximum DPI (allow 4 pixel rounding tolerance)
- if( ( ( fBmpPixelX > ( fMaxPixelX + 4 ) ) ||
- ( fBmpPixelY > ( fMaxPixelY + 4 ) ) ) &&
+ if( ( ( fBmpPixelX > ( fMaxPixelX + 4 ) ) ||
+ ( fBmpPixelY > ( fMaxPixelY + 4 ) ) ) &&
( fBmpPixelY > 0.0 ) && ( fMaxPixelY > 0.0 ) )
{
// do scaling
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index be7b72ec3213..4951e08eca91 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,13 +65,13 @@ class ImplPageCache
GDIMetaFile aPage;
PrinterController::PageSize aSize;
};
-
+
std::vector< CacheEntry > maPages;
std::vector< sal_Int32 > maPageNumbers;
std::vector< sal_Int32 > maCacheRanking;
-
+
static const sal_Int32 nCacheSize = 6;
-
+
void updateRanking( sal_Int32 nLastHit )
{
if( maCacheRanking[0] != nLastHit )
@@ -86,7 +86,7 @@ class ImplPageCache
maCacheRanking[0] = nLastHit;
}
}
-
+
public:
ImplPageCache()
: maPages( nCacheSize )
@@ -96,7 +96,7 @@ public:
for( sal_Int32 i = 0; i < nCacheSize; i++ )
maCacheRanking[i] = nCacheSize - i - 1;
}
-
+
// caution: does not ensure uniqueness
void insert( sal_Int32 i_nPageNo, const GDIMetaFile& i_rPage, const PrinterController::PageSize& i_rSize )
{
@@ -108,7 +108,7 @@ public:
// so update the ranking
updateRanking( nReplacePage );
}
-
+
// caution: bad algorithm; should there ever be reason to increase the cache size beyond 6
// this needs to be urgently rewritten. However do NOT increase the cache size lightly,
// whole pages can be rather memory intensive
@@ -126,7 +126,7 @@ public:
}
return false;
}
-
+
void invalidate()
{
for( sal_Int32 i = 0; i < nCacheSize; ++i )
@@ -140,18 +140,18 @@ public:
class vcl::ImplPrinterControllerData
{
-public:
+public:
struct ControlDependency
{
rtl::OUString maDependsOnName;
sal_Int32 mnDependsOnEntry;
-
+
ControlDependency() : mnDependsOnEntry( -1 ) {}
};
-
+
typedef std::hash_map< rtl::OUString, size_t, rtl::OUStringHash > PropertyToIndexMap;
typedef std::hash_map< rtl::OUString, ControlDependency, rtl::OUStringHash > ControlDependencyMap;
-
+
boost::shared_ptr<Printer> mpPrinter;
Sequence< PropertyValue > maUIOptions;
std::vector< PropertyValue > maUIProperties;
@@ -165,17 +165,17 @@ public:
view::PrintableState meJobState;
vcl::PrinterController::MultiPageSetup maMultiPage;
-
+
vcl::PrintProgressDialog* mpProgress;
-
+
ImplPageCache maPageCache;
-
+
// set by user through printer config dialog
// if set, pages are centered and trimmed onto the fixed page
Size maFixedPageSize;
sal_Int32 mnDefaultPaperBin;
sal_Int32 mnFixedPaperBin;
-
+
ImplPrinterControllerData() :
mbFirstPage( sal_True ),
mbLastPage( sal_False ),
@@ -186,7 +186,7 @@ public:
mnFixedPaperBin( -1 )
{}
~ImplPrinterControllerData() { delete mpProgress; }
-
+
Size getRealPaperSize( const Size& i_rPageSize ) const
{
if( maFixedPageSize.Width() > 0 && maFixedPageSize.Height() > 0 )
@@ -272,23 +272,23 @@ struct PrintJobAsync
{
boost::shared_ptr<PrinterController> mpController;
JobSetup maInitSetup;
-
+
PrintJobAsync( const boost::shared_ptr<PrinterController>& i_pController,
const JobSetup& i_rInitSetup
)
: mpController( i_pController ), maInitSetup( i_rInitSetup )
{}
-
+
DECL_LINK( ExecJob, void* );
};
IMPL_LINK( PrintJobAsync, ExecJob, void*, EMPTYARG )
{
Printer::ImplPrintJob( mpController, maInitSetup );
-
+
// clean up, do not access members after this
delete this;
-
+
return 0;
}
@@ -328,12 +328,12 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr
}
pController->setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDirect" ) ),
makeAny( sal_False ) );
- }
-
+ }
+
// setup printer
// if no specific printer is already set, create one
-
+
// #i108686#
// in case of a UI (platform independent or system dialog) print job, make the printer persistent over jobs
// however if no printer was already set by the print job's originator,
@@ -354,7 +354,7 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr
boost::shared_ptr<Printer> pPrinter( new Printer( aPrinterName ) );
pController->setPrinter( pPrinter );
}
-
+
// reset last page property
i_pController->setLastPage( sal_False );
@@ -364,7 +364,7 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr
// case 2: "All pages" is selected
// update "Page range" attribute to have a sensible default,
// but leave "All" as selected
-
+
// "Pages" attribute from API is now equivalent to "PageRange"
// AND "PrintContent" = 1 except calc where it is "PrintRange" = 1
// Argh ! That sure needs cleaning up
@@ -433,7 +433,7 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr
return;
}
}
-
+
// check if the printer brings up its own dialog
// in that case leave the work to that dialog
if( ! pController->getPrinter()->GetCapabilities( PRINTER_CAPABILITIES_EXTERNALDIALOG ) &&
@@ -471,16 +471,16 @@ void Printer::ImplPrintJob( const boost::shared_ptr<PrinterController>& i_pContr
{
}
}
-
+
pController->pushPropertiesToPrinter();
-
+
rtl::OUString aJobName;
beans::PropertyValue* pJobNameVal = pController->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "JobName" ) ) );
if( pJobNameVal )
pJobNameVal->Value >>= aJobName;
-
+
pController->getPrinter()->StartJob( String( aJobName ), pController );
-
+
pController->jobFinished( pController->getJobState() );
}
@@ -493,7 +493,7 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
if ( IsJobActive() || IsPrinting() )
return FALSE;
-
+
ULONG nCopies = mnCopyCount;
bool bCollateCopy = mbCollateCopy;
bool bUserCopy = FALSE;
@@ -531,7 +531,7 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
{
pSingleValue->Value >>= bSinglePrintJobs;
}
-
+
// remark: currently it is still possible to use EnablePrintFile and
// SetPrintFileName to redirect printout into file
// it can be argued that those methods should be removed in favor
@@ -553,10 +553,10 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
if ( mbPrintFile )
pPrintFile = &maPrintFile;
- maJobName = i_rJobName;
- mnCurPage = 1;
- mnCurPrintPage = 1;
- mbPrinting = TRUE;
+ maJobName = i_rJobName;
+ mnCurPage = 1;
+ mnCurPrintPage = 1;
+ mbPrinting = TRUE;
if( ImplGetSVData()->maGDIData.mbPrinterPullModel )
{
mbJobActive = TRUE;
@@ -578,11 +578,11 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
if ( !mnError )
mnError = PRINTER_GENERALERROR;
pSVData->mpDefInst->DestroyPrinter( mpPrinter );
- mnCurPage = 0;
- mnCurPrintPage = 0;
- mbPrinting = FALSE;
+ mnCurPage = 0;
+ mnCurPrintPage = 0;
+ mbPrinting = FALSE;
mpPrinter = NULL;
-
+
return false;
}
}
@@ -592,7 +592,7 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
// now the real job starts
i_pController->setJobState( view::PrintableState_JOB_STARTED );
i_pController->jobStarted();
-
+
int nJobs = 1;
int nOuterRepeatCount = 1;
int nInnerRepeatCount = 1;
@@ -609,7 +609,7 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
nCopies = 1;
nOuterRepeatCount = nInnerRepeatCount = 1;
}
-
+
for( int nJobIteration = 0; nJobIteration < nJobs; nJobIteration++ )
{
bool bError = false, bAborted = false;
@@ -648,17 +648,17 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
// FIXME: duplex ?
}
EndJob();
-
+
if( nJobIteration < nJobs-1 )
{
mpPrinter = pSVData->mpDefInst->CreatePrinter( mpInfoPrinter );
-
+
if ( mpPrinter )
{
- maJobName = i_rJobName;
- mnCurPage = 1;
- mnCurPrintPage = 1;
- mbPrinting = TRUE;
+ maJobName = i_rJobName;
+ mnCurPage = 1;
+ mnCurPrintPage = 1;
+ mbPrinting = TRUE;
}
else
bError = true;
@@ -666,7 +666,7 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
}
else
bError = true;
-
+
if( bError )
{
mnError = ImplSalPrinterErrorCodeToVCL( mpPrinter->GetErrorCode() );
@@ -677,11 +677,11 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
: view::PrintableState_JOB_FAILED );
if( mpPrinter )
pSVData->mpDefInst->DestroyPrinter( mpPrinter );
- mnCurPage = 0;
- mnCurPrintPage = 0;
- mbPrinting = FALSE;
+ mnCurPage = 0;
+ mnCurPrintPage = 0;
+ mbPrinting = FALSE;
mpPrinter = NULL;
-
+
return false;
}
}
@@ -689,7 +689,7 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
if( i_pController->getJobState() == view::PrintableState_JOB_STARTED )
i_pController->setJobState( view::PrintableState_JOB_SPOOLED );
}
-
+
// make last used printer persistent for UI jobs
if( i_pController->isShowDialogs() && ! i_pController->isDirectPrint() )
{
@@ -699,7 +699,7 @@ bool Printer::StartJob( const rtl::OUString& i_rJobName, boost::shared_ptr<vcl::
GetName()
);
}
-
+
return true;
}
@@ -810,15 +810,15 @@ PrinterController::PageSize vcl::ImplPrinterControllerData::modifyJobSetup( cons
{
aPageSize.aSize.Width() = aIsSize.Width;
aPageSize.aSize.Height() = aIsSize.Height;
-
+
Size aRealPaperSize( getRealPaperSize( aPageSize.aSize ) );
if( aRealPaperSize != aCurSize )
mpPrinter->SetPaperSizeUser( aRealPaperSize, ! isFixedPageSize() );
}
-
+
if( nPaperBin != -1 && nPaperBin != mpPrinter->GetPaperBin() )
mpPrinter->SetPaperBin( nPaperBin );
-
+
return aPageSize;
}
@@ -855,7 +855,7 @@ PrinterController::PageSize PrinterController::getPageFile( int i_nUnfilteredPag
mpImplData->mpProgress->tick();
Application::Reschedule( true );
}
-
+
if( i_bMayUseCache )
{
PrinterController::PageSize aPageSize;
@@ -868,14 +868,14 @@ PrinterController::PageSize PrinterController::getPageFile( int i_nUnfilteredPag
mpImplData->maPageCache.invalidate();
o_rMtf.Clear();
-
+
// get page parameters
Sequence< PropertyValue > aPageParm( getPageParametersProtected( i_nUnfilteredPage ) );
const MapMode aMapMode( MAP_100TH_MM );
mpImplData->mpPrinter->Push();
mpImplData->mpPrinter->SetMapMode( aMapMode );
-
+
// modify job setup if necessary
PrinterController::PageSize aPageSize = mpImplData->modifyJobSetup( aPageParm );
@@ -891,13 +891,13 @@ PrinterController::PageSize PrinterController::getPageFile( int i_nUnfilteredPag
o_rMtf.Stop();
o_rMtf.WindStart();
mpImplData->mpPrinter->Pop();
-
+
if( i_bMayUseCache )
mpImplData->maPageCache.insert( i_nUnfilteredPage, o_rMtf, aPageSize );
// reset "FirstPage" property to false now we've gotten at least our first one
mpImplData->mbFirstPage = sal_False;
-
+
return aPageSize;
}
@@ -943,14 +943,14 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte
int nSubPages = rMPS.nRows * rMPS.nColumns;
if( nSubPages < 1 )
nSubPages = 1;
-
+
// reverse sheet order
if( mpImplData->mbReversePageOrder )
{
int nDocPages = getFilteredPageCount();
i_nFilteredPage = nDocPages - 1 - i_nFilteredPage;
}
-
+
// there is no filtering to be done (and possibly the page size of the
// original page is to be set), when N-Up is "neutral" that is there is
// only one subpage and the margins are 0
@@ -975,12 +975,12 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte
}
return aPageSize;
}
-
+
// set last page property really only on the very last page to be rendered
// that is on the last subpage of a NUp run
sal_Bool bIsLastPage = mpImplData->mbLastPage;
mpImplData->mbLastPage = sal_False;
-
+
Size aPaperSize( mpImplData->getRealPaperSize( mpImplData->maMultiPage.aPaperSize ) );
// multi page area: page size minus margins + one time spacing right and down
@@ -1002,7 +1002,7 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte
o_rMtf.SetPrefSize( aPaperSize );
o_rMtf.SetPrefMapMode( MapMode( MAP_100TH_MM ) );
o_rMtf.AddAction( new MetaMapModeAction( MapMode( MAP_100TH_MM ) ) );
-
+
int nDocPages = getPageCountProtected();
for( int nSubPage = 0; nSubPage < nSubPages; nSubPage++ )
{
@@ -1034,10 +1034,10 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte
// scale the metafile down to a sub page size
double fScaleX = double(aSubPageSize.Width())/double(aPageSize.aSize.Width());
double fScaleY = double(aSubPageSize.Height())/double(aPageSize.aSize.Height());
- double fScale = std::min( fScaleX, fScaleY );
+ double fScale = std::min( fScaleX, fScaleY );
aPageFile.Scale( fScale, fScale );
aPageFile.WindStart();
-
+
// move the subpage so it is centered in its "cell"
long nOffX = (aSubPageSize.Width() - long(double(aPageSize.aSize.Width()) * fScale)) / 2;
long nOffY = (aSubPageSize.Height() - long(double(aPageSize.aSize.Height()) * fScale)) / 2;
@@ -1049,7 +1049,7 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte
Rectangle aSubPageRect( Point( nX, nY ),
Size( long(double(aPageSize.aSize.Width())*fScale),
long(double(aPageSize.aSize.Height())*fScale) ) );
-
+
// append subpage to page
appendSubPage( o_rMtf, aSubPageRect, aPageFile, rMPS.bDrawBorder );
}
@@ -1060,7 +1060,7 @@ PrinterController::PageSize PrinterController::getFilteredPageFile( int i_nFilte
// subsequent getPageFile calls have changed the paper, reset it to current value
mpImplData->mpPrinter->SetMapMode( MapMode( MAP_100TH_MM ) );
mpImplData->mpPrinter->SetPaperSizeUser( aPaperSize, ! mpImplData->isFixedPageSize() );
-
+
return PrinterController::PageSize( aPaperSize, true );
}
@@ -1108,7 +1108,7 @@ ULONG PrinterController::removeTransparencies( GDIMetaFile& i_rIn, GDIMetaFile&
if( rPrinterOptions.IsConvertToGreyscales() )
{
mpImplData->mpPrinter->SetDrawMode( mpImplData->mpPrinter->GetDrawMode() |
- ( DRAWMODE_GRAYLINE | DRAWMODE_GRAYFILL | DRAWMODE_GRAYTEXT |
+ ( DRAWMODE_GRAYLINE | DRAWMODE_GRAYFILL | DRAWMODE_GRAYTEXT |
DRAWMODE_GRAYBITMAP | DRAWMODE_GRAYGRADIENT ) );
}
@@ -1139,7 +1139,7 @@ void PrinterController::printFilteredPage( int i_nPage )
{
if( mpImplData->meJobState != view::PrintableState_JOB_STARTED )
return;
-
+
GDIMetaFile aPageFile;
PrinterController::PageSize aPageSize = getFilteredPageFile( i_nPage, aPageFile );
@@ -1170,22 +1170,22 @@ void PrinterController::printFilteredPage( int i_nPage )
aPageFile.WindStart();
aPageFile.Move( -aPageOffset.X(), -aPageOffset.Y(), mpImplData->mpPrinter->ImplGetDPIX(), mpImplData->mpPrinter->ImplGetDPIY() );
}
-
+
GDIMetaFile aCleanedFile;
ULONG nRestoreDrawMode = removeTransparencies( aPageFile, aCleanedFile );
-
+
mpImplData->mpPrinter->EnableOutput( TRUE );
// actually print the page
mpImplData->mpPrinter->ImplStartPage();
-
+
mpImplData->mpPrinter->Push();
aCleanedFile.WindStart();
aCleanedFile.Play( mpImplData->mpPrinter.get() );
mpImplData->mpPrinter->Pop();
-
+
mpImplData->mpPrinter->ImplEndPage();
-
+
mpImplData->mpPrinter->SetDrawMode( nRestoreDrawMode );
}
@@ -1227,7 +1227,7 @@ bool PrinterController::getReversePrint() const
Sequence< PropertyValue > PrinterController::getJobProperties( const Sequence< PropertyValue >& i_rMergeList ) const
{
std::hash_set< rtl::OUString, rtl::OUStringHash > aMergeSet;
- size_t nResultLen = size_t(i_rMergeList.getLength()) + mpImplData->maUIProperties.size() + 3;
+ size_t nResultLen = size_t(i_rMergeList.getLength()) + mpImplData->maUIProperties.size() + 3;
for( int i = 0; i < i_rMergeList.getLength(); i++ )
aMergeSet.insert( i_rMergeList[i].Name );
@@ -1306,7 +1306,7 @@ void PrinterController::setValue( const rtl::OUString& i_rName, const Any& i_rVa
beans::PropertyValue aVal;
aVal.Name = i_rName;
aVal.Value = i_rValue;
-
+
setValue( aVal );
}
@@ -1407,7 +1407,7 @@ bool PrinterController::isUIOptionEnabled( const rtl::OUString& i_rProperty ) co
if( prop_it != mpImplData->maPropertyToIndex.end() )
{
bEnabled = mpImplData->maUIPropertyEnabled[prop_it->second];
-
+
if( bEnabled )
{
// check control dependencies
@@ -1418,7 +1418,7 @@ bool PrinterController::isUIOptionEnabled( const rtl::OUString& i_rProperty ) co
// check if the dependency is enabled
// if the dependency is disabled, we are too
bEnabled = isUIOptionEnabled( it->second.maDependsOnName );
-
+
if( bEnabled )
{
// does the dependency have the correct value ?
@@ -1437,7 +1437,7 @@ bool PrinterController::isUIOptionEnabled( const rtl::OUString& i_rProperty ) co
// could be a dependency on a checked boolean
// in this case the dependency is on a non zero for checked value
bEnabled = ( bDepVal && it->second.mnDependsOnEntry != 0) ||
- ( ! bDepVal && it->second.mnDependsOnEntry == 0);
+ ( ! bDepVal && it->second.mnDependsOnEntry == 0);
}
else
{
@@ -1461,7 +1461,7 @@ rtl::OUString PrinterController::getDependency( const rtl::OUString& i_rProperty
mpImplData->maControlDependencies.find( i_rProperty );
if( it != mpImplData->maControlDependencies.end() )
aDependency = it->second.maDependsOnName;
-
+
return aDependency;
}
@@ -1501,7 +1501,7 @@ rtl::OUString PrinterController::makeEnabled( const rtl::OUString& i_rProperty )
}
}
}
-
+
return aDependency;
}
@@ -1528,7 +1528,7 @@ void PrinterController::createProgressDialog()
bShow = ! bApi;
}
}
-
+
if( bShow && ! Application::IsHeadlessModeEnabled() )
{
mpImplData->mpProgress = new PrintProgressDialog( NULL, getPageCountProtected() );
@@ -1577,7 +1577,7 @@ void PrinterController::pushPropertiesToPrinter()
{
case view::DuplexMode::OFF: mpImplData->mpPrinter->SetDuplexMode( DUPLEX_OFF ); break;
case view::DuplexMode::LONGEDGE: mpImplData->mpPrinter->SetDuplexMode( DUPLEX_LONGEDGE ); break;
- case view::DuplexMode::SHORTEDGE: mpImplData->mpPrinter->SetDuplexMode( DUPLEX_SHORTEDGE ); break;
+ case view::DuplexMode::SHORTEDGE: mpImplData->mpPrinter->SetDuplexMode( DUPLEX_SHORTEDGE ); break;
}
}
}
@@ -1704,7 +1704,7 @@ Any PrinterOptionsHelper::getUIControlOpt( const rtl::OUString& i_rTitle,
const PropertyValue* i_pVal,
const PrinterOptionsHelper::UIControlOptions& i_rControlOptions
)
-{
+{
sal_Int32 nElements =
1 // ControlType
+ (i_rTitle.getLength() ? 1 : 0) // Text
@@ -1773,7 +1773,7 @@ Any PrinterOptionsHelper::getUIControlOpt( const rtl::OUString& i_rTitle,
aCtrl[nUsed ].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Enabled" ) );
aCtrl[nUsed++].Value <<= sal_False;
}
-
+
sal_Int32 nAddProps = i_rControlOptions.maAddProps.getLength();
for( sal_Int32 i = 0; i < nAddProps; i++ )
aCtrl[ nUsed++ ] = i_rControlOptions.maAddProps[i];
diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx
index e22b37c0970c..1539f856570d 100644
--- a/vcl/source/gdi/regband.cxx
+++ b/vcl/source/gdi/regband.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -56,15 +56,15 @@
ImplRegionBand::ImplRegionBand( long nTop, long nBottom )
{
// save boundaries
- mnYTop = nTop;
- mnYBottom = nBottom;
+ mnYTop = nTop;
+ mnYBottom = nBottom;
// initialize lists
- mpNextBand = NULL;
- mpPrevBand = NULL;
- mpFirstSep = NULL;
- mpFirstBandPoint = NULL;
- mbTouched = FALSE;
+ mpNextBand = NULL;
+ mpPrevBand = NULL;
+ mpFirstSep = NULL;
+ mpFirstBandPoint = NULL;
+ mbTouched = FALSE;
}
// -----------------------------------------------------------------------
@@ -74,15 +74,15 @@ ImplRegionBand::ImplRegionBand(
const bool bIgnorePoints)
{
// copy boundaries
- mnYTop = rRegionBand.mnYTop;
- mnYBottom = rRegionBand.mnYBottom;
- mbTouched = rRegionBand.mbTouched;
+ mnYTop = rRegionBand.mnYTop;
+ mnYBottom = rRegionBand.mnYBottom;
+ mbTouched = rRegionBand.mbTouched;
// initialisation
- mpNextBand = NULL;
- mpPrevBand = NULL;
- mpFirstSep = NULL;
- mpFirstBandPoint = NULL;
+ mpNextBand = NULL;
+ mpPrevBand = NULL;
+ mpFirstSep = NULL;
+ mpFirstBandPoint = NULL;
// copy all elements of the list with separations
ImplRegionBandSep* pNewSep;
@@ -91,11 +91,11 @@ ImplRegionBand::ImplRegionBand(
while ( pSep )
{
// create new and copy data
- pNewSep = new ImplRegionBandSep;
- pNewSep->mnXLeft = pSep->mnXLeft;
- pNewSep->mnXRight = pSep->mnXRight;
- pNewSep->mbRemoved = pSep->mbRemoved;
- pNewSep->mpNextSep = NULL;
+ pNewSep = new ImplRegionBandSep;
+ pNewSep->mnXLeft = pSep->mnXLeft;
+ pNewSep->mnXRight = pSep->mnXRight;
+ pNewSep->mbRemoved = pSep->mbRemoved;
+ pNewSep->mpNextSep = NULL;
if ( pSep == rRegionBand.mpFirstSep )
mpFirstSep = pNewSep;
else
@@ -117,7 +117,7 @@ ImplRegionBand::ImplRegionBand(
pPointCopy->mnLineId = pPoint->mnLineId;
pPointCopy->mbEndPoint = pPoint->mbEndPoint;
pPointCopy->meLineType = pPoint->meLineType;
-
+
if (pPrevPointCopy != NULL)
pPrevPointCopy->mpNextBandPoint = pPointCopy;
else
@@ -218,11 +218,11 @@ BOOL ImplRegionBand::InsertPoint( long nX, long nLineId,
{
if ( !mpFirstBandPoint )
{
- mpFirstBandPoint = new ImplRegionBandPoint;
- mpFirstBandPoint->mnX = nX;
- mpFirstBandPoint->mnLineId = nLineId;
- mpFirstBandPoint->mbEndPoint = bEndPoint;
- mpFirstBandPoint->meLineType = eLineType;
+ mpFirstBandPoint = new ImplRegionBandPoint;
+ mpFirstBandPoint->mnX = nX;
+ mpFirstBandPoint->mnLineId = nLineId;
+ mpFirstBandPoint->mbEndPoint = bEndPoint;
+ mpFirstBandPoint->meLineType = eLineType;
mpFirstBandPoint->mpNextBandPoint = NULL;
return TRUE;
}
@@ -278,7 +278,7 @@ BOOL ImplRegionBand::InsertPoint( long nX, long nLineId,
// search appropriate position and insert point into the list
ImplRegionBandPoint* pNewRegionBandPoint;
-
+
pRegionBandPoint = mpFirstBandPoint;
pLastTestedRegionBandPoint = NULL;
while ( pRegionBandPoint )
@@ -286,12 +286,12 @@ BOOL ImplRegionBand::InsertPoint( long nX, long nLineId,
// new point completly left? -> insert as first point
if ( nX <= pRegionBandPoint->mnX )
{
- pNewRegionBandPoint = new ImplRegionBandPoint;
- pNewRegionBandPoint->mnX = nX;
- pNewRegionBandPoint->mnLineId = nLineId;
- pNewRegionBandPoint->mbEndPoint = bEndPoint;
- pNewRegionBandPoint->meLineType = eLineType;
- pNewRegionBandPoint->mpNextBandPoint = pRegionBandPoint;
+ pNewRegionBandPoint = new ImplRegionBandPoint;
+ pNewRegionBandPoint->mnX = nX;
+ pNewRegionBandPoint->mnLineId = nLineId;
+ pNewRegionBandPoint->mbEndPoint = bEndPoint;
+ pNewRegionBandPoint->meLineType = eLineType;
+ pNewRegionBandPoint->mpNextBandPoint = pRegionBandPoint;
// connections to the new point
if ( !pLastTestedRegionBandPoint )
@@ -308,12 +308,12 @@ BOOL ImplRegionBand::InsertPoint( long nX, long nLineId,
}
// not inserted -> add to the end of the list
- pNewRegionBandPoint = new ImplRegionBandPoint;
- pNewRegionBandPoint->mnX = nX;
- pNewRegionBandPoint->mnLineId = nLineId;
- pNewRegionBandPoint->mbEndPoint = bEndPoint;
- pNewRegionBandPoint->meLineType = eLineType;
- pNewRegionBandPoint->mpNextBandPoint = NULL;
+ pNewRegionBandPoint = new ImplRegionBandPoint;
+ pNewRegionBandPoint->mnX = nX;
+ pNewRegionBandPoint->mnLineId = nLineId;
+ pNewRegionBandPoint->mbEndPoint = bEndPoint;
+ pNewRegionBandPoint->meLineType = eLineType;
+ pNewRegionBandPoint->mpNextBandPoint = NULL;
// connections to the new point
pLastTestedRegionBandPoint->mpNextBandPoint = pNewRegionBandPoint;
@@ -342,8 +342,8 @@ void ImplRegionBand::ScaleX( double fHorzScale )
ImplRegionBandSep* pSep = mpFirstSep;
while ( pSep )
{
- pSep->mnXLeft = FRound( pSep->mnXLeft * fHorzScale );
- pSep->mnXRight = FRound( pSep->mnXRight * fHorzScale );
+ pSep->mnXLeft = FRound( pSep->mnXLeft * fHorzScale );
+ pSep->mnXRight = FRound( pSep->mnXRight * fHorzScale );
pSep = pSep->mpNextSep;
}
}
@@ -402,11 +402,11 @@ void ImplRegionBand::Union( long nXLeft, long nXRight )
// band empty? -> add element
if ( !mpFirstSep )
{
- mpFirstSep = new ImplRegionBandSep;
- mpFirstSep->mnXLeft = nXLeft;
- mpFirstSep->mnXRight = nXRight;
- mpFirstSep->mbRemoved = FALSE;
- mpFirstSep->mpNextSep = NULL;
+ mpFirstSep = new ImplRegionBandSep;
+ mpFirstSep->mnXLeft = nXLeft;
+ mpFirstSep->mnXRight = nXRight;
+ mpFirstSep->mbRemoved = FALSE;
+ mpFirstSep->mpNextSep = NULL;
return;
}
@@ -423,10 +423,10 @@ void ImplRegionBand::Union( long nXLeft, long nXRight )
// new separation completly left? -> new separation!
if ( nXRight < pSep->mnXLeft )
{
- pNewSep = new ImplRegionBandSep;
- pNewSep->mnXLeft = nXLeft;
- pNewSep->mnXRight = nXRight;
- pNewSep->mbRemoved = FALSE;
+ pNewSep = new ImplRegionBandSep;
+ pNewSep->mnXLeft = nXLeft;
+ pNewSep->mnXRight = nXRight;
+ pNewSep->mbRemoved = FALSE;
pNewSep->mpNextSep = pSep;
if ( pSep == mpFirstSep )
@@ -450,13 +450,13 @@ void ImplRegionBand::Union( long nXLeft, long nXRight )
// not inserted, but last element? -> add to the end of the list
if ( !pSep->mpNextSep && (nXLeft > pSep->mnXRight) )
{
- pNewSep = new ImplRegionBandSep;
- pNewSep->mnXLeft = nXLeft;
- pNewSep->mnXRight = nXRight;
- pNewSep->mbRemoved = FALSE;
+ pNewSep = new ImplRegionBandSep;
+ pNewSep->mnXLeft = nXLeft;
+ pNewSep->mnXRight = nXRight;
+ pNewSep->mbRemoved = FALSE;
- pSep->mpNextSep = pNewSep;
- pNewSep->mpNextSep = NULL;
+ pSep->mpNextSep = pNewSep;
+ pNewSep->mpNextSep = NULL;
break;
}
@@ -569,10 +569,10 @@ void ImplRegionBand::Exclude( long nXLeft, long nXRight )
{
if ( (nXLeft >= pSep->mnXLeft) && (nXRight <= pSep->mnXRight) )
{
- pNewSep = new ImplRegionBandSep;
- pNewSep->mnXLeft = pSep->mnXLeft;
- pNewSep->mnXRight = nXLeft-1;
- pNewSep->mbRemoved = FALSE;
+ pNewSep = new ImplRegionBandSep;
+ pNewSep->mnXLeft = pSep->mnXLeft;
+ pNewSep->mnXRight = nXLeft-1;
+ pNewSep->mbRemoved = FALSE;
pSep->mnXLeft = nXRight+1;
@@ -609,29 +609,29 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
// order, and added four more cases. The code below references
// those numbers via #1, #2, etc.
//
- // Num Mnem newX:oldX newY:oldY Description Result Can quit?
+ // Num Mnem newX:oldX newY:oldY Description Result Can quit?
//
- // #1 Empty band - - The band is empty, thus, simply add new bandSep just add Yes
+ // #1 Empty band - - The band is empty, thus, simply add new bandSep just add Yes
//
- // #2 apart - - The rectangles are disjunct, add new one as is just add Yes
+ // #2 apart - - The rectangles are disjunct, add new one as is just add Yes
//
- // #3 atop == == The rectangles are _exactly_ the same, remove existing just remove Yes
+ // #3 atop == == The rectangles are _exactly_ the same, remove existing just remove Yes
//
- // #4 around < > The new rectangle extends the old to both sides intersect No
+ // #4 around < > The new rectangle extends the old to both sides intersect No
//
- // #5 left < < The new rectangle is left of the old (but intersects) intersect Yes
+ // #5 left < < The new rectangle is left of the old (but intersects) intersect Yes
//
- // #5b left-atop < == The new is left of the old, and coincides on the right intersect Yes
+ // #5b left-atop < == The new is left of the old, and coincides on the right intersect Yes
//
- // #6 right > > The new is right of the old (but intersects) intersect No
+ // #6 right > > The new is right of the old (but intersects) intersect No
//
- // #6b right-atop == > The new is right of the old, and coincides on the left intersect No
+ // #6b right-atop == > The new is right of the old, and coincides on the left intersect No
//
- // #7 inside > < The new is fully inside the old intersect Yes
+ // #7 inside > < The new is fully inside the old intersect Yes
//
- // #8 inside-right > == The new is fully inside the old, coincides on the right intersect Yes
+ // #8 inside-right > == The new is fully inside the old, coincides on the right intersect Yes
//
- // #9 inside-left == < The new is fully inside the old, coincides on the left intersect Yes
+ // #9 inside-left == < The new is fully inside the old, coincides on the left intersect Yes
//
//
// Then, to correctly perform XOr, the segment that's switched off
@@ -645,15 +645,15 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
// trailing band sep from 11 to 14. This mimicks the xor look of a
// bitmap operation.
//
-
+
// band empty? -> add element
if ( !mpFirstSep )
{
- mpFirstSep = new ImplRegionBandSep;
- mpFirstSep->mnXLeft = nXLeft;
- mpFirstSep->mnXRight = nXRight;
- mpFirstSep->mbRemoved = FALSE;
- mpFirstSep->mpNextSep = NULL;
+ mpFirstSep = new ImplRegionBandSep;
+ mpFirstSep->mnXLeft = nXLeft;
+ mpFirstSep->mnXRight = nXRight;
+ mpFirstSep->mbRemoved = FALSE;
+ mpFirstSep->mpNextSep = NULL;
return;
}
@@ -682,10 +682,10 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
pNewSep->mnXRight = nXRight;
pNewSep->mpNextSep = pSep;
pNewSep->mbRemoved = FALSE;
-
+
// connections from the new separation
pNewSep->mpNextSep = pSep;
-
+
// connections to the new separation
if ( pSep == mpFirstSep )
mpFirstSep = pNewSep;
@@ -735,7 +735,7 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
else
{
pSep->mnXLeft = nXRight+1; // 9
-
+
pPrevSep = NULL; // do not run accidentally into the "right" case when breaking the loop
break;
}
@@ -747,7 +747,7 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
"ImplRegionBand::XOr(): Case 4,5,6,7 expected all coordinates to be not equal!" );
// The plain-jane check would look like this:
- //
+ //
// if( nXLeft < nOldLeft )
// {
// // #4,5
@@ -772,7 +772,7 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
// // #7 done!
// }
// }
- //
+ //
// but since we generally don't have to care whether
// it's 4 or 6 (only that we must not stop processing
// here), condensed that in such a way that only the
@@ -811,16 +811,16 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
pNewSep->mnXRight = nXRight;
pNewSep->mpNextSep = pSep->mpNextSep;
pNewSep->mbRemoved = FALSE;
-
+
// connections from the new separation
pSep->mpNextSep = pNewSep;
-
+
pPrevSep = NULL; // do not run accidentally into the "right" case when breaking the loop
break;
}
}
}
-
+
pPrevSep = pSep;
pSep = pSep->mpNextSep;
}
@@ -833,11 +833,11 @@ void ImplRegionBand::XOr( long nXLeft, long nXRight )
pNewSep->mnXRight = nXRight;
pNewSep->mpNextSep = NULL;
pNewSep->mbRemoved = FALSE;
-
+
// connections from the new separation
pPrevSep->mpNextSep = pNewSep;
}
-
+
OptimizeBand();
}
@@ -915,8 +915,8 @@ long ImplRegionBand::GetXRightBoundary() const
BOOL ImplRegionBand::operator==( const ImplRegionBand& rRegionBand ) const
{
- ImplRegionBandSep* pOwnRectBandSep = mpFirstSep;
- ImplRegionBandSep* pSecondRectBandSep = rRegionBand.mpFirstSep;
+ ImplRegionBandSep* pOwnRectBandSep = mpFirstSep;
+ ImplRegionBandSep* pSecondRectBandSep = rRegionBand.mpFirstSep;
while ( pOwnRectBandSep && pSecondRectBandSep )
{
// get boundaries of current rectangle
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index ed58a5d90ade..48a5d62feee5 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,7 +82,7 @@ bool ImplIsPolygonRectilinear (const PolyPolygon& rPolyPoly)
const USHORT nPolyCount = rPolyPoly.Count();
for (USHORT nPoly = 0; nPoly < nPolyCount; ++nPoly)
{
- const Polygon& aPoly = rPolyPoly.GetObject(nPoly);
+ const Polygon& aPoly = rPolyPoly.GetObject(nPoly);
// Iterate over all edges of the current polygon.
const USHORT nSize = aPoly.GetSize();
@@ -186,7 +186,7 @@ ImplRegion* ImplRectilinearPolygonToBands (const PolyPolygon& rPolyPoly)
const USHORT nPolyCount = rPolyPoly.Count();
for (USHORT nPoly = 0; nPoly < nPolyCount; ++nPoly)
{
- const Polygon& aPoly = rPolyPoly.GetObject(nPoly);
+ const Polygon& aPoly = rPolyPoly.GetObject(nPoly);
// Iterate over all edges of the current polygon.
const USHORT nSize = aPoly.GetSize();
@@ -216,7 +216,7 @@ ImplRegion* ImplRectilinearPolygonToBands (const PolyPolygon& rPolyPoly)
const long nTop (::std::min(aStart.Y(), aEnd.Y()));
const long nBottom (::std::max(aStart.Y(), aEnd.Y()));
const LineType eLineType (aStart.Y() > aEnd.Y() ? LINE_DESCENDING : LINE_ASCENDING);
-
+
// Make sure that the current line is covered by bands.
ImplAddMissingBands(pImplRegion, nTop,nBottom);
@@ -284,14 +284,14 @@ ImplRegion* ImplGeneralPolygonToBands (
// initialisation and creation of Bands
ImplRegion* pImplRegion = new ImplRegion();
pImplRegion->CreateBandRange( rPolygonBoundingBox.Top(), rPolygonBoundingBox.Bottom() );
-
+
// insert polygons
const USHORT nPolyCount = rPolyPoly.Count();
for ( USHORT nPoly = 0; nPoly < nPolyCount; nPoly++ )
{
// get reference to current polygon
- const Polygon& aPoly = rPolyPoly.GetObject( nPoly );
- const USHORT nSize = aPoly.GetSize();
+ const Polygon& aPoly = rPolyPoly.GetObject( nPoly );
+ const USHORT nSize = aPoly.GetSize();
// not enough points ( <= 2 )? -> nothing to do!
if ( nSize <= 2 )
@@ -320,7 +320,7 @@ ImplRegion* ImplGeneralPolygonToBands (
#ifdef DBG_UTIL
const char* ImplDbgTestRegion( const void* pObj )
{
- Region* pRegion = (Region*)pObj;
+ Region* pRegion = (Region*)pObj;
ImplRegion* pImplRegion = pRegion->ImplGetImplRegion();
if ( aImplNullRegion.mnRefCount )
@@ -338,8 +338,8 @@ const char* ImplDbgTestRegion( const void* pObj )
if ( (pImplRegion != &aImplEmptyRegion) && (pImplRegion != &aImplNullRegion) )
{
- ULONG nCount = 0;
- const ImplRegionBand* pBand = pImplRegion->ImplGetFirstRegionBand();
+ ULONG nCount = 0;
+ const ImplRegionBand* pBand = pImplRegion->ImplGetFirstRegionBand();
while ( pBand )
{
if ( pBand->mnYBottom < pBand->mnYTop )
@@ -420,27 +420,27 @@ inline void Region::ImplPolyPolyRegionToBandRegion()
// =======================================================================
ImplRegionBase::ImplRegionBase( int nRefCount )
-: mnRefCount( nRefCount )
-, mnRectCount( 0 )
-, mpPolyPoly( NULL )
-, mpB2DPolyPoly( NULL )
+: mnRefCount( nRefCount )
+, mnRectCount( 0 )
+, mpPolyPoly( NULL )
+, mpB2DPolyPoly( NULL )
{}
// ------------------------------------------------------------------------
ImplRegion::ImplRegion()
{
- mpFirstBand = NULL;
- mpLastCheckedBand = NULL;
+ mpFirstBand = NULL;
+ mpLastCheckedBand = NULL;
}
// ------------------------------------------------------------------------
ImplRegion::ImplRegion( const PolyPolygon& rPolyPoly )
{
- mpFirstBand = NULL;
- mpLastCheckedBand = NULL;
- mpPolyPoly = new PolyPolygon( rPolyPoly );
+ mpFirstBand = NULL;
+ mpLastCheckedBand = NULL;
+ mpPolyPoly = new PolyPolygon( rPolyPoly );
}
// ------------------------------------------------------------------------
@@ -455,7 +455,7 @@ ImplRegion::ImplRegion( const basegfx::B2DPolyPolygon& rPolyPoly )
// -----------------------------------------------------------------------
ImplRegion::ImplRegion( const ImplRegion& rImplRegion )
-: ImplRegionBase()
+: ImplRegionBase()
{
mpFirstBand = NULL;
mpLastCheckedBand = NULL;
@@ -577,20 +577,20 @@ BOOL ImplRegion::InsertLine( const Point& rStartPt, const Point& rEndPt,
}
else if ( rStartPt.Y() != rEndPt.Y() )
{
- const long nDX = labs( rEndPt.X() - rStartPt.X() );
- const long nDY = labs( rEndPt.Y() - rStartPt.Y() );
- const long nStartX = rStartPt.X();
- const long nStartY = rStartPt.Y();
- const long nEndX = rEndPt.X();
- const long nEndY = rEndPt.Y();
- const long nXInc = ( nStartX < nEndX ) ? 1L : -1L;
- const long nYInc = ( nStartY < nEndY ) ? 1L : -1L;
+ const long nDX = labs( rEndPt.X() - rStartPt.X() );
+ const long nDY = labs( rEndPt.Y() - rStartPt.Y() );
+ const long nStartX = rStartPt.X();
+ const long nStartY = rStartPt.Y();
+ const long nEndX = rEndPt.X();
+ const long nEndY = rEndPt.Y();
+ const long nXInc = ( nStartX < nEndX ) ? 1L : -1L;
+ const long nYInc = ( nStartY < nEndY ) ? 1L : -1L;
if ( nDX >= nDY )
{
- const long nDYX = ( nDY - nDX ) << 1;
- const long nDY2 = nDY << 1;
- long nD = nDY2 - nDX;
+ const long nDYX = ( nDY - nDX ) << 1;
+ const long nDY2 = nDY << 1;
+ long nD = nDY2 - nDX;
for ( nX = nStartX, nY = nStartY; nX != nEndX; nX += nXInc )
{
@@ -604,9 +604,9 @@ BOOL ImplRegion::InsertLine( const Point& rStartPt, const Point& rEndPt,
}
else
{
- const long nDYX = ( nDX - nDY ) << 1;
- const long nDY2 = nDX << 1;
- long nD = nDY2 - nDY;
+ const long nDYX = ( nDX - nDY ) << 1;
+ const long nDY2 = nDX << 1;
+ long nD = nDY2 - nDY;
for ( nX = nStartX, nY = nStartY; nY != nEndY; nY += nYInc )
{
@@ -1178,10 +1178,10 @@ void Region::ImplCreateRectRegion( const Rectangle& rRect )
else
{
// get justified rectangle
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nRight = Max( rRect.Left(), rRect.Right() );
+ long nTop = Min( rRect.Top(), rRect.Bottom() );
+ long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = Min( rRect.Left(), rRect.Right() );
+ long nRight = Max( rRect.Left(), rRect.Right() );
// create instance of implementation class
mpImplRegion = new ImplRegion();
@@ -1382,10 +1382,10 @@ BOOL Region::Union( const Rectangle& rRect )
ImplCopyData();
// get justified rectangle
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nRight = Max( rRect.Left(), rRect.Right() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = Min( rRect.Left(), rRect.Right() );
+ long nTop = Min( rRect.Top(), rRect.Bottom() );
+ long nRight = Max( rRect.Left(), rRect.Right() );
+ long nBottom = Max( rRect.Top(), rRect.Bottom() );
// insert bands if the boundaries are not allready in the list
mpImplRegion->InsertBands( nTop, nBottom );
@@ -1449,10 +1449,10 @@ BOOL Region::Intersect( const Rectangle& rRect )
return TRUE;
// get justified rectangle
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nRight = Max( rRect.Left(), rRect.Right() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = Min( rRect.Left(), rRect.Right() );
+ long nTop = Min( rRect.Top(), rRect.Bottom() );
+ long nRight = Max( rRect.Left(), rRect.Right() );
+ long nBottom = Max( rRect.Top(), rRect.Bottom() );
// is own region NULL-region? -> copy data!
if ( mpImplRegion == &aImplNullRegion )
@@ -1535,10 +1535,10 @@ BOOL Region::Exclude( const Rectangle& rRect )
ImplCopyData();
// get justified rectangle
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nRight = Max( rRect.Left(), rRect.Right() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = Min( rRect.Left(), rRect.Right() );
+ long nTop = Min( rRect.Top(), rRect.Bottom() );
+ long nRight = Max( rRect.Left(), rRect.Right() );
+ long nBottom = Max( rRect.Top(), rRect.Bottom() );
// insert bands if the boundaries are not allready in the list
mpImplRegion->InsertBands( nTop, nBottom );
@@ -1577,10 +1577,10 @@ BOOL Region::XOr( const Rectangle& rRect )
ImplCopyData();
// get justified rectangle
- long nLeft = Min( rRect.Left(), rRect.Right() );
- long nTop = Min( rRect.Top(), rRect.Bottom() );
- long nRight = Max( rRect.Left(), rRect.Right() );
- long nBottom = Max( rRect.Top(), rRect.Bottom() );
+ long nLeft = Min( rRect.Left(), rRect.Right() );
+ long nTop = Min( rRect.Top(), rRect.Bottom() );
+ long nRight = Max( rRect.Left(), rRect.Right() );
+ long nBottom = Max( rRect.Top(), rRect.Bottom() );
// insert bands if the boundaries are not allready in the list
mpImplRegion->InsertBands( nTop, nBottom );
@@ -1657,7 +1657,7 @@ BOOL Region::Intersect( const Region& rRegion )
// same instance data? -> nothing to do!
if ( mpImplRegion == rRegion.mpImplRegion )
return TRUE;
-
+
ImplPolyPolyRegionToBandRegion();
((Region*)&rRegion)->ImplPolyPolyRegionToBandRegion();
@@ -1921,7 +1921,7 @@ Rectangle Region::GetBoundRect() const
return aRect;
// get the boundaries of the first band
- long nYTop = mpImplRegion->mpFirstBand->mnYTop;
+ long nYTop = mpImplRegion->mpFirstBand->mnYTop;
long nYBottom = mpImplRegion->mpFirstBand->mnYBottom;
long nXLeft = mpImplRegion->mpFirstBand->GetXLeftBoundary();
long nXRight = mpImplRegion->mpFirstBand->GetXRightBoundary();
@@ -1930,9 +1930,9 @@ Rectangle Region::GetBoundRect() const
ImplRegionBand* pBand = mpImplRegion->mpFirstBand->mpNextBand;
while ( pBand )
{
- nYBottom = pBand->mnYBottom;
- nXLeft = Min( nXLeft, pBand->GetXLeftBoundary() );
- nXRight = Max( nXRight, pBand->GetXRightBoundary() );
+ nYBottom = pBand->mnYBottom;
+ nXLeft = Min( nXLeft, pBand->GetXLeftBoundary() );
+ nXRight = Max( nXRight, pBand->GetXRightBoundary() );
pBand = pBand->mpNextBand;
}
@@ -1994,7 +1994,7 @@ const basegfx::B2DPolyPolygon Region::GetB2DPolyPolygon() const
// TODO: cache the converted polygon?
// mpImplRegion->mpB2DPolyPoly = aRet;
}
-
+
return aRet;
}
@@ -2020,7 +2020,7 @@ basegfx::B2DPolyPolygon Region::ConvertToB2DPolyPolygon()
}
EndEnumRects( aHdl );
}
-
+
return aRet;
}
@@ -2043,17 +2043,17 @@ BOOL Region::ImplGetFirstRect( ImplRegionInfo& rImplRegionInfo,
return FALSE;
// initialise pointer for first access
- ImplRegionBand* pCurrRectBand = mpImplRegion->mpFirstBand;
- ImplRegionBandSep* pCurrRectBandSep = pCurrRectBand->mpFirstSep;
+ ImplRegionBand* pCurrRectBand = mpImplRegion->mpFirstBand;
+ ImplRegionBandSep* pCurrRectBandSep = pCurrRectBand->mpFirstSep;
DBG_ASSERT( pCurrRectBandSep != NULL, "Erstes Band wurde nicht optimiert." );
if ( !pCurrRectBandSep )
return FALSE;
// get boundaries of current rectangle
- rX = pCurrRectBandSep->mnXLeft;
- rY = pCurrRectBand->mnYTop;
- rWidth = pCurrRectBandSep->mnXRight - pCurrRectBandSep->mnXLeft + 1;
+ rX = pCurrRectBandSep->mnXLeft;
+ rY = pCurrRectBand->mnYTop;
+ rWidth = pCurrRectBandSep->mnXRight - pCurrRectBandSep->mnXLeft + 1;
rHeight = pCurrRectBand->mnYBottom - pCurrRectBand->mnYTop + 1;
// save pointers
@@ -2076,8 +2076,8 @@ BOOL Region::ImplGetNextRect( ImplRegionInfo& rImplRegionInfo,
return FALSE;
// get last pointers
- ImplRegionBand* pCurrRectBand = (ImplRegionBand*)rImplRegionInfo.mpVoidCurrRectBand;
- ImplRegionBandSep* pCurrRectBandSep = (ImplRegionBandSep*)rImplRegionInfo.mpVoidCurrRectBandSep;
+ ImplRegionBand* pCurrRectBand = (ImplRegionBand*)rImplRegionInfo.mpVoidCurrRectBand;
+ ImplRegionBandSep* pCurrRectBandSep = (ImplRegionBandSep*)rImplRegionInfo.mpVoidCurrRectBandSep;
// get next separation from current band
pCurrRectBandSep = pCurrRectBandSep->mpNextSep;
@@ -2097,9 +2097,9 @@ BOOL Region::ImplGetNextRect( ImplRegionInfo& rImplRegionInfo,
}
// get boundaries of current rectangle
- rX = pCurrRectBandSep->mnXLeft;
- rY = pCurrRectBand->mnYTop;
- rWidth = pCurrRectBandSep->mnXRight - pCurrRectBandSep->mnXLeft + 1;
+ rX = pCurrRectBandSep->mnXLeft;
+ rY = pCurrRectBand->mnYTop;
+ rWidth = pCurrRectBandSep->mnXRight - pCurrRectBandSep->mnXLeft + 1;
rHeight = pCurrRectBand->mnYBottom - pCurrRectBand->mnYTop + 1;
// save new pointers
@@ -2321,10 +2321,10 @@ BOOL Region::operator==( const Region& rRegion ) const
}
// initialise pointers
- ImplRegionBand* pOwnRectBand = mpImplRegion->mpFirstBand;
- ImplRegionBandSep* pOwnRectBandSep = pOwnRectBand->mpFirstSep;
- ImplRegionBand* pSecondRectBand = rRegion.mpImplRegion->mpFirstBand;
- ImplRegionBandSep* pSecondRectBandSep = pSecondRectBand->mpFirstSep;
+ ImplRegionBand* pOwnRectBand = mpImplRegion->mpFirstBand;
+ ImplRegionBandSep* pOwnRectBandSep = pOwnRectBand->mpFirstSep;
+ ImplRegionBand* pSecondRectBand = rRegion.mpImplRegion->mpFirstBand;
+ ImplRegionBandSep* pSecondRectBandSep = pSecondRectBand->mpFirstSep;
while ( pOwnRectBandSep && pSecondRectBandSep )
{
// get boundaries of current rectangle
@@ -2394,9 +2394,9 @@ SvStream& operator>>( SvStream& rIStrm, Region& rRegion )
{
DBG_CHKOBJ( &rRegion, Region, ImplDbgTestRegion );
- VersionCompat aCompat( rIStrm, STREAM_READ );
- UINT16 nVersion;
- UINT16 nTmp16;
+ VersionCompat aCompat( rIStrm, STREAM_READ );
+ UINT16 nVersion;
+ UINT16 nTmp16;
// statische Object haben RefCount von 0
if ( rRegion.mpImplRegion->mnRefCount )
@@ -2474,7 +2474,7 @@ SvStream& operator>>( SvStream& rIStrm, Region& rRegion )
rRegion.mpImplRegion->mnRectCount++;
}
}
-
+
if( rIStrm.IsEof() )
{
DBG_ERROR( "premature end of region stream" );
@@ -2555,7 +2555,7 @@ SvStream& operator<<( SvStream& rOStrm, const Region& rRegion )
// put endmarker
rOStrm << (UINT16) STREAMENTRY_END;
-
+
// write polypolygon if available
const BOOL bHasPolyPolygon = rRegion.HasPolyPolygon();
rOStrm << bHasPolyPolygon;
@@ -2565,7 +2565,7 @@ SvStream& operator<<( SvStream& rOStrm, const Region& rRegion )
// #i105373#
PolyPolygon aNoCurvePolyPolygon;
rRegion.GetPolyPolygon().AdaptiveSubdivide(aNoCurvePolyPolygon);
-
+
rOStrm << aNoCurvePolyPolygon;
}
}
@@ -2781,7 +2781,7 @@ RegionHandle Region::BeginEnumRects()
ImplRegionHandle* pData = new ImplRegionHandle;
pData->mpRegion = new Region( *this );
- pData->mbFirst = TRUE;
+ pData->mbFirst = TRUE;
// save pointers
pData->mpCurrRectBand = pData->mpRegion->mpImplRegion->mpFirstBand;
@@ -2823,10 +2823,10 @@ BOOL Region::GetEnumRects( RegionHandle pVoidData, Rectangle& rRect )
}
// get boundaries of current rectangle
- rRect.Top() = pData->mpCurrRectBand->mnYTop;
- rRect.Bottom() = pData->mpCurrRectBand->mnYBottom;
- rRect.Left() = pData->mpCurrRectBandSep->mnXLeft;
- rRect.Right() = pData->mpCurrRectBandSep->mnXRight;
+ rRect.Top() = pData->mpCurrRectBand->mnYTop;
+ rRect.Bottom() = pData->mpCurrRectBand->mnYBottom;
+ rRect.Left() = pData->mpCurrRectBandSep->mnXLeft;
+ rRect.Right() = pData->mpCurrRectBandSep->mnXRight;
return TRUE;
}
@@ -2895,13 +2895,13 @@ static inline bool ImplPolygonRectTest( const Polygon& rPoly, Rectangle* pRectOu
Region Region::GetRegionFromPolyPolygon( const PolyPolygon& rPolyPoly )
{
//return Region( rPolyPoly );
-
+
// check if it's worth extracting the XOr'ing the Rectangles
// empiricism shows that break even between XOr'ing rectangles separately
// and ImplPolyPolyRegionToBandRegion is at half rectangles/half polygons
int nPolygonRects = 0, nPolygonPolygons = 0;
int nPolygons = rPolyPoly.Count();
-
+
for( USHORT i = 0; i < nPolygons; i++ )
{
const Polygon& rPoly = rPolyPoly[i];
@@ -2912,7 +2912,7 @@ Region Region::GetRegionFromPolyPolygon( const PolyPolygon& rPolyPoly )
}
if( nPolygonPolygons > nPolygonRects )
return Region( rPolyPoly );
-
+
Region aResult;
Rectangle aRect;
for( USHORT i = 0; i < nPolygons; i++ )
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index ea8d10377e61..c01cd8add7ad 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ SalFrameGeometry SalFrame::GetGeometry()
// ----------------------------------------------------------------------------
-SalGraphics::SalGraphics()
+SalGraphics::SalGraphics()
: m_nLayout( 0 ),
m_bAntiAliasB2DDraw(false)
{
@@ -279,7 +279,7 @@ basegfx::B2DPoint SalGraphics::mirror( const basegfx::B2DPoint& i_rPoint, const
w = i_pOutDev->GetOutputWidthPixel();
else
w = GetGraphicsWidth();
-
+
DBG_ASSERT( w, "missing graphics width" );
basegfx::B2DPoint aRet( i_rPoint );
@@ -308,9 +308,9 @@ basegfx::B2DPolygon SalGraphics::mirror( const basegfx::B2DPolygon& i_rPoly, con
w = i_pOutDev->GetOutputWidthPixel();
else
w = GetGraphicsWidth();
-
+
DBG_ASSERT( w, "missing graphics width" );
-
+
basegfx::B2DPolygon aRet;
if( w )
{
@@ -319,9 +319,9 @@ basegfx::B2DPolygon SalGraphics::mirror( const basegfx::B2DPolygon& i_rPoly, con
{
aRet.append( mirror( i_rPoly.getB2DPoint( i ), i_pOutDev, i_bBack ) );
if( i_rPoly.isPrevControlPointUsed( i ) )
- aRet.setPrevControlPoint( i, mirror( i_rPoly.getPrevControlPoint( i ), i_pOutDev, i_bBack ) );
+ aRet.setPrevControlPoint( i, mirror( i_rPoly.getPrevControlPoint( i ), i_pOutDev, i_bBack ) );
if( i_rPoly.isNextControlPointUsed( i ) )
- aRet.setNextControlPoint( i, mirror( i_rPoly.getNextControlPoint( i ), i_pOutDev, i_bBack ) );
+ aRet.setNextControlPoint( i, mirror( i_rPoly.getNextControlPoint( i ), i_pOutDev, i_bBack ) );
}
aRet.setClosed( i_rPoly.isClosed() );
aRet.flip();
@@ -338,9 +338,9 @@ basegfx::B2DPolyPolygon SalGraphics::mirror( const basegfx::B2DPolyPolygon& i_rP
w = i_pOutDev->GetOutputWidthPixel();
else
w = GetGraphicsWidth();
-
+
DBG_ASSERT( w, "missing graphics width" );
-
+
basegfx::B2DPolyPolygon aRet;
if( w )
{
@@ -357,9 +357,9 @@ basegfx::B2DPolyPolygon SalGraphics::mirror( const basegfx::B2DPolyPolygon& i_rP
// ----------------------------------------------------------------------------
-BOOL SalGraphics::UnionClipRegion( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev )
+BOOL SalGraphics::UnionClipRegion( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev )
{
- if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
+ if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
mirror( nX, nWidth, pOutDev );
return unionClipRegion( nX, nY, nWidth, nHeight );
}
@@ -375,19 +375,19 @@ BOOL SalGraphics::UnionClipRegion( const ::basegfx::B2DPolyPolygon& rPoly, const
return unionClipRegion( rPoly );
}
-void SalGraphics::DrawPixel( long nX, long nY, const OutputDevice *pOutDev )
+void SalGraphics::DrawPixel( long nX, long nY, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
mirror( nX, pOutDev );
drawPixel( nX, nY );
}
-void SalGraphics::DrawPixel( long nX, long nY, SalColor nSalColor, const OutputDevice *pOutDev )
+void SalGraphics::DrawPixel( long nX, long nY, SalColor nSalColor, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
mirror( nX, pOutDev );
drawPixel( nX, nY, nSalColor );
}
-void SalGraphics::DrawLine( long nX1, long nY1, long nX2, long nY2, const OutputDevice *pOutDev )
+void SalGraphics::DrawLine( long nX1, long nY1, long nX2, long nY2, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
@@ -396,16 +396,16 @@ void SalGraphics::DrawLine( long nX1, long nY1, long nX2, long nY2, const Out
}
drawLine( nX1, nY1, nX2, nY2 );
}
-void SalGraphics::DrawRect( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev )
+void SalGraphics::DrawRect( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
mirror( nX, nWidth, pOutDev );
drawRect( nX, nY, nWidth, nHeight );
}
-bool SalGraphics::drawPolyLine(
+bool SalGraphics::drawPolyLine(
const basegfx::B2DPolygon& /*rPolyPolygon*/,
double /*fTransparency*/,
- const basegfx::B2DVector& /*rLineWidths*/,
+ const basegfx::B2DVector& /*rLineWidths*/,
basegfx::B2DLineJoin /*eLineJoin*/)
{
return false;
@@ -416,7 +416,7 @@ void SalGraphics::DrawPolyLine( ULONG nPoints, const SalPoint* pPtAry, const Out
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
SalPoint* pPtAry2 = new SalPoint[nPoints];
- BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
+ BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
drawPolyLine( nPoints, bCopied ? pPtAry2 : pPtAry );
delete [] pPtAry2;
}
@@ -429,7 +429,7 @@ void SalGraphics::DrawPolygon( ULONG nPoints, const SalPoint* pPtAry, const Outp
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
SalPoint* pPtAry2 = new SalPoint[nPoints];
- BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
+ BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
drawPolygon( nPoints, bCopied ? pPtAry2 : pPtAry );
delete [] pPtAry2;
}
@@ -448,7 +448,7 @@ void SalGraphics::DrawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints,
{
ULONG nPoints = pPoints[i];
pPtAry2[i] = new SalPoint[ nPoints ];
- mirror( nPoints, pPtAry[i], pPtAry2[i], pOutDev );
+ mirror( nPoints, pPtAry[i], pPtAry2[i], pOutDev );
}
drawPolyPolygon( nPoly, pPoints, (PCONSTSALPOINT*)pPtAry2 );
@@ -464,7 +464,7 @@ void SalGraphics::DrawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints,
bool SalGraphics::DrawPolyPolygon( const ::basegfx::B2DPolyPolygon& i_rPolyPolygon, double i_fTransparency, const OutputDevice* i_pOutDev )
{
bool bRet = false;
- if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
+ if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
{
basegfx::B2DPolyPolygon aMirror( mirror( i_rPolyPolygon, i_pOutDev ) );
bRet = drawPolyPolygon( aMirror, i_fTransparency );
@@ -482,10 +482,10 @@ bool SalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double /*fT
sal_Bool SalGraphics::DrawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry, const OutputDevice* pOutDev )
{
sal_Bool bResult = sal_False;
- if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
+ if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
{
SalPoint* pPtAry2 = new SalPoint[nPoints];
- BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
+ BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
bResult = drawPolyLineBezier( nPoints, bCopied ? pPtAry2 : pPtAry, pFlgAry );
delete [] pPtAry2;
}
@@ -497,10 +497,10 @@ sal_Bool SalGraphics::DrawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry,
sal_Bool SalGraphics::DrawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry, const OutputDevice* pOutDev )
{
sal_Bool bResult = sal_False;
- if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
+ if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
{
SalPoint* pPtAry2 = new SalPoint[nPoints];
- BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
+ BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
bResult = drawPolygonBezier( nPoints, bCopied ? pPtAry2 : pPtAry, pFlgAry );
delete [] pPtAry2;
}
@@ -513,7 +513,7 @@ sal_Bool SalGraphics::DrawPolyPolygonBezier( sal_uInt32 i_nPoly, const sal_uInt3
const SalPoint* const* i_pPtAry, const BYTE* const* i_pFlgAry, const OutputDevice* i_pOutDev )
{
sal_Bool bRet = sal_False;
- if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
+ if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
{
// TODO: optimize, reduce new/delete calls
SalPoint **pPtAry2 = new SalPoint*[i_nPoly];
@@ -522,7 +522,7 @@ sal_Bool SalGraphics::DrawPolyPolygonBezier( sal_uInt32 i_nPoly, const sal_uInt3
{
ULONG nPoints = i_pPoints[i];
pPtAry2[i] = new SalPoint[ nPoints ];
- mirror( nPoints, i_pPtAry[i], pPtAry2[i], i_pOutDev );
+ mirror( nPoints, i_pPtAry[i], pPtAry2[i], i_pOutDev );
}
bRet = drawPolyPolygonBezier( i_nPoly, i_pPoints, (PCONSTSALPOINT*)pPtAry2, i_pFlgAry );
@@ -541,7 +541,7 @@ bool SalGraphics::DrawPolyLine( const ::basegfx::B2DPolygon& i_rPolygon, double
const OutputDevice* i_pOutDev )
{
bool bRet = false;
- if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
+ if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) )
{
basegfx::B2DPolygon aMirror( mirror( i_rPolygon, i_pOutDev ) );
bRet = drawPolyLine( aMirror, fTransparency, i_rLineWidth, i_eLineJoin );
@@ -551,54 +551,54 @@ bool SalGraphics::DrawPolyLine( const ::basegfx::B2DPolygon& i_rPolygon, double
return bRet;
}
-void SalGraphics::CopyArea( long nDestX, long nDestY,
+void SalGraphics::CopyArea( long nDestX, long nDestY,
long nSrcX, long nSrcY,
long nSrcWidth, long nSrcHeight,
USHORT nFlags, const OutputDevice *pOutDev )
{
- if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
+ if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
mirror( nDestX, nSrcWidth, pOutDev );
mirror( nSrcX, nSrcWidth, pOutDev );
}
copyArea( nDestX, nDestY, nSrcX, nSrcY, nSrcWidth, nSrcHeight, nFlags );
}
-void SalGraphics::CopyBits( const SalTwoRect* pPosAry,
+void SalGraphics::CopyBits( const SalTwoRect* pPosAry,
SalGraphics* pSrcGraphics, const OutputDevice *pOutDev, const OutputDevice *pSrcOutDev )
{
- if( ( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) ) ||
+ if( ( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) ) ||
(pSrcGraphics && ( (pSrcGraphics->GetLayout() & SAL_LAYOUT_BIDI_RTL) || (pSrcOutDev && pSrcOutDev->IsRTLEnabled()) ) ) )
{
SalTwoRect pPosAry2 = *pPosAry;
if( (pSrcGraphics && (pSrcGraphics->GetLayout() & SAL_LAYOUT_BIDI_RTL)) || (pSrcOutDev && pSrcOutDev->IsRTLEnabled()) )
- mirror( pPosAry2.mnSrcX, pPosAry2.mnSrcWidth, pSrcOutDev );
- if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
- mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
+ mirror( pPosAry2.mnSrcX, pPosAry2.mnSrcWidth, pSrcOutDev );
+ if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
+ mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
copyBits( &pPosAry2, pSrcGraphics );
}
else
copyBits( pPosAry, pSrcGraphics );
}
-void SalGraphics::DrawBitmap( const SalTwoRect* pPosAry,
+void SalGraphics::DrawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
SalTwoRect pPosAry2 = *pPosAry;
- mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
+ mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
drawBitmap( &pPosAry2, rSalBitmap );
}
else
drawBitmap( pPosAry, rSalBitmap );
}
-void SalGraphics::DrawBitmap( const SalTwoRect* pPosAry,
+void SalGraphics::DrawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
SalTwoRect pPosAry2 = *pPosAry;
- mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
+ mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
drawBitmap( &pPosAry2, rSalBitmap, nTransparentColor );
}
else
@@ -611,49 +611,49 @@ void SalGraphics::DrawBitmap( const SalTwoRect* pPosAry,
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
SalTwoRect pPosAry2 = *pPosAry;
- mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
+ mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
drawBitmap( &pPosAry2, rSalBitmap, rTransparentBitmap );
}
else
drawBitmap( pPosAry, rSalBitmap, rTransparentBitmap );
}
-void SalGraphics::DrawMask( const SalTwoRect* pPosAry,
+void SalGraphics::DrawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
SalTwoRect pPosAry2 = *pPosAry;
- mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
+ mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
drawMask( &pPosAry2, rSalBitmap, nMaskColor );
}
else
drawMask( pPosAry, rSalBitmap, nMaskColor );
}
-SalBitmap* SalGraphics::GetBitmap( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev )
+SalBitmap* SalGraphics::GetBitmap( long nX, long nY, long nWidth, long nHeight, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
mirror( nX, nWidth, pOutDev );
return getBitmap( nX, nY, nWidth, nHeight );
}
-SalColor SalGraphics::GetPixel( long nX, long nY, const OutputDevice *pOutDev )
+SalColor SalGraphics::GetPixel( long nX, long nY, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
mirror( nX, pOutDev );
return getPixel( nX, nY );
}
-void SalGraphics::Invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags, const OutputDevice *pOutDev )
+void SalGraphics::Invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
mirror( nX, nWidth, pOutDev );
invert( nX, nY, nWidth, nHeight, nFlags );
}
-void SalGraphics::Invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags, const OutputDevice *pOutDev )
+void SalGraphics::Invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
SalPoint* pPtAry2 = new SalPoint[nPoints];
- BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
+ BOOL bCopied = mirror( nPoints, pPtAry, pPtAry2, pOutDev );
invert( nPoints, bCopied ? pPtAry2 : pPtAry, nFlags );
delete [] pPtAry2;
}
@@ -661,7 +661,7 @@ void SalGraphics::Invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nF
invert( nPoints, pPtAry, nFlags );
}
-BOOL SalGraphics::DrawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize, const OutputDevice *pOutDev )
+BOOL SalGraphics::DrawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
mirror( nX, nWidth, pOutDev );
@@ -761,7 +761,7 @@ BOOL SalGraphics::GetNativeControlRegion( ControlType nType, ControlPart nPart,
Rectangle rgn( rControlRegion );
mirror( rgn, pOutDev );
mirror( nType, aValue, pOutDev );
- if( getNativeControlRegion( nType, nPart, rgn, nState, aValue, aCaption,
+ if( getNativeControlRegion( nType, nPart, rgn, nState, aValue, aCaption,
rNativeBoundingRegion, rNativeContentRegion ) )
{
mirror( rNativeBoundingRegion, pOutDev, true );
@@ -776,26 +776,26 @@ BOOL SalGraphics::GetNativeControlRegion( ControlType nType, ControlPart nPart,
}
}
else
- return getNativeControlRegion( nType, nPart, rControlRegion, nState, aValue, aCaption,
+ return getNativeControlRegion( nType, nPart, rControlRegion, nState, aValue, aCaption,
rNativeBoundingRegion, rNativeContentRegion );
}
bool SalGraphics::DrawAlphaBitmap( const SalTwoRect& rPosAry,
const SalBitmap& rSourceBitmap,
- const SalBitmap& rAlphaBitmap,
+ const SalBitmap& rAlphaBitmap,
const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
{
SalTwoRect pPosAry2 = rPosAry;
- mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
+ mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
return drawAlphaBitmap( pPosAry2, rSourceBitmap, rAlphaBitmap );
}
else
return drawAlphaBitmap( rPosAry, rSourceBitmap, rAlphaBitmap );
}
-bool SalGraphics::DrawAlphaRect( long nX, long nY, long nWidth, long nHeight,
+bool SalGraphics::DrawAlphaRect( long nX, long nY, long nWidth, long nHeight,
sal_uInt8 nTransparency, const OutputDevice *pOutDev )
{
if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index 970b0ff3cd0b..ded9d9e148ff 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@
#include <unicode/uchar.h>
#if defined _MSC_VER
#pragma warning(pop)
-#endif
+#endif
#include <algorithm>
@@ -109,7 +109,7 @@ bool IsDiacritic( sal_UCS4 nChar )
if( (pRange->mnMin <= nChar) && (nChar < pRange->mnEnd) )
return true;
- return false;
+ return false;
}
// =======================================================================
@@ -265,7 +265,7 @@ sal_UCS4 GetLocalizedChar( sal_UCS4 nChar, LanguageType eLang )
case LANGUAGE_FARSI & LANGUAGE_MASK_PRIMARY:
case LANGUAGE_URDU & LANGUAGE_MASK_PRIMARY:
case LANGUAGE_PUNJABI & LANGUAGE_MASK_PRIMARY: //???
- case LANGUAGE_SINDHI & LANGUAGE_MASK_PRIMARY:
+ case LANGUAGE_SINDHI & LANGUAGE_MASK_PRIMARY:
nOffset = 0x06F0 - '0'; // eastern arabic-indic digits
break;
case LANGUAGE_BENGALI & LANGUAGE_MASK_PRIMARY:
@@ -554,7 +554,7 @@ ImplLayoutArgs::ImplLayoutArgs( const xub_Unicode* pStr, int nLen,
UBiDi* pParaBidi = ubidi_openSized( mnLength, 0, &rcI18n );
if( !pParaBidi )
return;
- ubidi_setPara( pParaBidi, reinterpret_cast<const UChar *>(mpStr), mnLength, nLevel, NULL, &rcI18n ); // UChar != sal_Unicode in MinGW
+ ubidi_setPara( pParaBidi, reinterpret_cast<const UChar *>(mpStr), mnLength, nLevel, NULL, &rcI18n ); // UChar != sal_Unicode in MinGW
UBiDi* pLineBidi = pParaBidi;
int nSubLength = mnEndCharPos - mnMinCharPos;
@@ -983,7 +983,7 @@ bool GenericSalLayout::GetCharWidths( sal_Int32* pCharWidths ) const
if( pN->IsClusterStart() )
break;
if( pN->IsDiacritic() )
- continue; // ignore diacritics
+ continue; // ignore diacritics
if( nXPosMax > pN->maLinearPos.X() )
nXPosMax = pN->maLinearPos.X();
}
@@ -1246,10 +1246,10 @@ void GenericSalLayout::ApplyAsianKerning( const sal_Unicode* pStr, int nLength )
{
// ignore code ranges that are not affected by asian punctuation compression
const sal_Unicode cHere = pStr[n];
- if( ((0x3000 != (cHere & 0xFF00)) && (0x2010 != (cHere & 0xFFF0))) || (0xFF00 != (cHere & 0xFF00)) )
+ if( ((0x3000 != (cHere & 0xFF00)) && (0x2010 != (cHere & 0xFFF0))) || (0xFF00 != (cHere & 0xFF00)) )
continue;
const sal_Unicode cNext = pStr[n+1];
- if( ((0x3000 != (cNext & 0xFF00)) && (0x2010 != (cNext & 0xFFF0))) || (0xFF00 != (cNext & 0xFF00)) )
+ if( ((0x3000 != (cNext & 0xFF00)) && (0x2010 != (cNext & 0xFFF0))) || (0xFF00 != (cNext & 0xFF00)) )
continue;
// calculate compression values
@@ -1509,7 +1509,7 @@ void GenericSalLayout::MoveGlyph( int nStart, long nNewXPos )
return;
GlyphItem* pG = mpGlyphItems + nStart;
- // the nNewXPos argument determines the new cell position
+ // the nNewXPos argument determines the new cell position
// as RTL-glyphs are right justified in their cell
// the cell position needs to be adjusted to the glyph position
if( pG->IsRTLGlyph() )
@@ -1829,7 +1829,7 @@ void MultiSalLayout::AdjustLayout( ImplLayoutArgs& rArgs )
if( n > 0 )
{
// drop the NotDef glyphs in the base layout run if a fallback run exists
- while (
+ while (
(maFallbackRuns[ n-1 ].PosIsInRun( nCharPos[0] ) ) &&
(!maFallbackRuns[ n ].PosIsInAnyRun( nCharPos[0] ) )
)
diff --git a/vcl/source/gdi/salmisc.cxx b/vcl/source/gdi/salmisc.cxx
index 088910304091..9cbe0fd2f082 100644
--- a/vcl/source/gdi/salmisc.cxx
+++ b/vcl/source/gdi/salmisc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,35 +37,35 @@
// - Defines -
// -----------
-#define IMPL_CASE_GET_FORMAT( Format ) \
-case( BMP_FORMAT##Format ): \
- pFncGetPixel = BitmapReadAccess::GetPixelFor##Format; \
+#define IMPL_CASE_GET_FORMAT( Format ) \
+case( BMP_FORMAT##Format ): \
+ pFncGetPixel = BitmapReadAccess::GetPixelFor##Format; \
break
// -----------------------------------------------------------------------------
-#define IMPL_CASE_SET_FORMAT( Format, BitCount ) \
-case( BMP_FORMAT##Format ): \
-{ \
- pFncSetPixel = BitmapReadAccess::SetPixelFor##Format; \
- pDstBuffer->mnBitCount = BitCount; \
-} \
+#define IMPL_CASE_SET_FORMAT( Format, BitCount ) \
+case( BMP_FORMAT##Format ): \
+{ \
+ pFncSetPixel = BitmapReadAccess::SetPixelFor##Format; \
+ pDstBuffer->mnBitCount = BitCount; \
+} \
break
// -----------------------------------------------------------------------------
-#define DOUBLE_SCANLINES() \
-while( ( nActY < nHeight1 ) && ( pMapY[ nActY + 1 ] == nMapY ) ) \
-{ \
- memcpy( pDstScanMap[ nActY + 1L ], pDstScan, rDstBuffer.mnScanlineSize ); \
- nActY++; \
+#define DOUBLE_SCANLINES() \
+while( ( nActY < nHeight1 ) && ( pMapY[ nActY + 1 ] == nMapY ) ) \
+{ \
+ memcpy( pDstScanMap[ nActY + 1L ], pDstScan, rDstBuffer.mnScanlineSize ); \
+ nActY++; \
}
// -----------
// - Inlines -
// -----------
-#define TC_TO_PAL_COLORS 4096
+#define TC_TO_PAL_COLORS 4096
static long ImplIndexFromColor( const BitmapColor& rCol )
{
@@ -85,22 +85,22 @@ static long ImplIndexFromColor( const BitmapColor& rCol )
}
-#define COLOR_TO_INDEX( _def_rCol )
+#define COLOR_TO_INDEX( _def_rCol )
// ------------------------
// - conversion functions -
// ------------------------
-static void ImplPALToPAL( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer,
+static void ImplPALToPAL( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer,
FncGetPixel pFncGetPixel, FncSetPixel pFncSetPixel,
Scanline* pSrcScanMap, Scanline* pDstScanMap, long* pMapX, long* pMapY )
{
- const long nWidth = rDstBuffer.mnWidth, nHeight = rDstBuffer.mnHeight, nHeight1 = nHeight - 1;
- const ColorMask& rSrcMask = rSrcBuffer.maColorMask;
- const ColorMask& rDstMask = rDstBuffer.maColorMask;
- BitmapPalette aColMap( rSrcBuffer.maPalette.GetEntryCount() );
- BitmapColor* pColMapBuf = aColMap.ImplGetColorBuffer();
- BitmapColor aIndex( 0 );
+ const long nWidth = rDstBuffer.mnWidth, nHeight = rDstBuffer.mnHeight, nHeight1 = nHeight - 1;
+ const ColorMask& rSrcMask = rSrcBuffer.maColorMask;
+ const ColorMask& rDstMask = rDstBuffer.maColorMask;
+ BitmapPalette aColMap( rSrcBuffer.maPalette.GetEntryCount() );
+ BitmapColor* pColMapBuf = aColMap.ImplGetColorBuffer();
+ BitmapColor aIndex( 0 );
for( USHORT i = 0, nSrcCount = aColMap.GetEntryCount(), nDstCount = rDstBuffer.maPalette.GetEntryCount(); i < nSrcCount; i++ )
{
@@ -125,20 +125,20 @@ static void ImplPALToPAL( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuff
// -----------------------------------------------------------------------------
-static void ImplPALToTC( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer,
+static void ImplPALToTC( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer,
FncGetPixel pFncGetPixel, FncSetPixel pFncSetPixel,
Scanline* pSrcScanMap, Scanline* pDstScanMap, long* pMapX, long* pMapY )
{
- const long nWidth = rDstBuffer.mnWidth, nHeight = rDstBuffer.mnHeight, nHeight1 = nHeight - 1;
- const ColorMask& rSrcMask = rSrcBuffer.maColorMask;
- const ColorMask& rDstMask = rDstBuffer.maColorMask;
- const BitmapColor* pColBuf = rSrcBuffer.maPalette.ImplGetColorBuffer();
+ const long nWidth = rDstBuffer.mnWidth, nHeight = rDstBuffer.mnHeight, nHeight1 = nHeight - 1;
+ const ColorMask& rSrcMask = rSrcBuffer.maColorMask;
+ const ColorMask& rDstMask = rDstBuffer.maColorMask;
+ const BitmapColor* pColBuf = rSrcBuffer.maPalette.ImplGetColorBuffer();
if( BMP_SCANLINE_FORMAT( rSrcBuffer.mnFormat ) == BMP_FORMAT_1BIT_MSB_PAL )
{
- const BitmapColor aCol0( pColBuf[ 0 ] );
- const BitmapColor aCol1( pColBuf[ 1 ] );
- long nMapX;
+ const BitmapColor aCol0( pColBuf[ 0 ] );
+ const BitmapColor aCol1( pColBuf[ 1 ] );
+ long nMapX;
for( long nActY = 0, nMapY; nActY < nHeight; nActY++ )
{
@@ -147,7 +147,7 @@ static void ImplPALToTC( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffe
for( long nX = 0L; nX < nWidth; )
{
nMapX = pMapX[ nX ];
- pFncSetPixel( pDstScan, nX++,
+ pFncSetPixel( pDstScan, nX++,
pSrcScan[ nMapX >> 3 ] & ( 1 << ( 7 - ( nMapX & 7 ) ) ) ? aCol1 : aCol0,
rDstMask );
}
@@ -166,7 +166,7 @@ static void ImplPALToTC( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffe
for( long nX = 0L; nX < nWidth; )
{
nMapX = pMapX[ nX ];
- pFncSetPixel( pDstScan, nX++,
+ pFncSetPixel( pDstScan, nX++,
pColBuf[ ( pSrcScan[ nMapX >> 1 ] >> ( nMapX & 1 ? 0 : 4 ) ) & 0x0f ],
rDstMask );
}
@@ -202,18 +202,18 @@ static void ImplPALToTC( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffe
// -----------------------------------------------------------------------------
-static void ImplTCToTC( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer,
+static void ImplTCToTC( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer,
FncGetPixel pFncGetPixel, FncSetPixel pFncSetPixel,
Scanline* pSrcScanMap, Scanline* pDstScanMap, long* pMapX, long* pMapY )
{
- const long nWidth = rDstBuffer.mnWidth, nHeight = rDstBuffer.mnHeight, nHeight1 = nHeight - 1;
- const ColorMask& rSrcMask = rSrcBuffer.maColorMask;
- const ColorMask& rDstMask = rDstBuffer.maColorMask;
+ const long nWidth = rDstBuffer.mnWidth, nHeight = rDstBuffer.mnHeight, nHeight1 = nHeight - 1;
+ const ColorMask& rSrcMask = rSrcBuffer.maColorMask;
+ const ColorMask& rDstMask = rDstBuffer.maColorMask;
if( BMP_SCANLINE_FORMAT( rSrcBuffer.mnFormat ) == BMP_FORMAT_24BIT_TC_BGR )
{
BitmapColor aCol;
- BYTE* pPixel;
+ BYTE* pPixel;
for( long nActY = 0, nMapY; nActY < nHeight; nActY++ )
{
@@ -246,16 +246,16 @@ static void ImplTCToTC( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer
// -----------------------------------------------------------------------------
-static void ImplTCToPAL( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer,
+static void ImplTCToPAL( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffer,
FncGetPixel pFncGetPixel, FncSetPixel pFncSetPixel,
Scanline* pSrcScanMap, Scanline* pDstScanMap, long* pMapX, long* pMapY )
{
- const long nWidth = rDstBuffer.mnWidth, nHeight = rDstBuffer.mnHeight, nHeight1 = nHeight - 1;
- const ColorMask& rSrcMask = rSrcBuffer.maColorMask;
- const ColorMask& rDstMask = rDstBuffer.maColorMask;
- BitmapPalette aColMap( rSrcBuffer.maPalette.GetEntryCount() );
- BYTE* pColToPalMap = new BYTE[ TC_TO_PAL_COLORS ];
- BitmapColor aIndex( 0 );
+ const long nWidth = rDstBuffer.mnWidth, nHeight = rDstBuffer.mnHeight, nHeight1 = nHeight - 1;
+ const ColorMask& rSrcMask = rSrcBuffer.maColorMask;
+ const ColorMask& rDstMask = rDstBuffer.maColorMask;
+ BitmapPalette aColMap( rSrcBuffer.maPalette.GetEntryCount() );
+ BYTE* pColToPalMap = new BYTE[ TC_TO_PAL_COLORS ];
+ BitmapColor aIndex( 0 );
for( long nR = 0; nR < 16; nR++ )
{
@@ -293,12 +293,12 @@ static void ImplTCToPAL( const BitmapBuffer& rSrcBuffer, BitmapBuffer& rDstBuffe
// - StretchAndConvert -
// ---------------------
-BitmapBuffer* StretchAndConvert( const BitmapBuffer& rSrcBuffer, const SalTwoRect& rTwoRect,
+BitmapBuffer* StretchAndConvert( const BitmapBuffer& rSrcBuffer, const SalTwoRect& rTwoRect,
ULONG nDstBitmapFormat, BitmapPalette* pDstPal, ColorMask* pDstMask )
{
- FncGetPixel pFncGetPixel;
- FncSetPixel pFncSetPixel;
- BitmapBuffer* pDstBuffer = new BitmapBuffer;
+ FncGetPixel pFncGetPixel;
+ FncSetPixel pFncSetPixel;
+ BitmapBuffer* pDstBuffer = new BitmapBuffer;
long i;
// set function for getting pixels
@@ -402,7 +402,7 @@ BitmapBuffer* StretchAndConvert( const BitmapBuffer& rSrcBuffer, const SalTwoRec
bool bFastConvert = ImplFastBitmapConversion( *pDstBuffer, rSrcBuffer, rTwoRect );
if( bFastConvert )
return pDstBuffer;
-
+
const long nSrcX = rTwoRect.mnSrcX, nSrcY = rTwoRect.mnSrcY;
const long nSrcDX = rTwoRect.mnSrcWidth, nSrcDY = rTwoRect.mnSrcHeight;
const long nDstDX = rTwoRect.mnDestWidth, nDstDY = rTwoRect.mnDestHeight;
@@ -431,7 +431,7 @@ BitmapBuffer* StretchAndConvert( const BitmapBuffer& rSrcBuffer, const SalTwoRec
delete pDstBuffer;
return NULL;
}
-
+
// horizontal mapping table
if( nDstDX != nSrcDX )
{
@@ -488,7 +488,7 @@ BitmapBuffer* StretchAndConvert( const BitmapBuffer& rSrcBuffer, const SalTwoRec
// do buffer scaling and conversion
if( rSrcBuffer.mnBitCount <= 8 && pDstBuffer->mnBitCount <= 8 )
{
- ImplPALToPAL( rSrcBuffer, *pDstBuffer, pFncGetPixel, pFncSetPixel,
+ ImplPALToPAL( rSrcBuffer, *pDstBuffer, pFncGetPixel, pFncSetPixel,
pSrcScan, pDstScan, pMapX, pMapY );
}
else if( rSrcBuffer.mnBitCount <= 8 && pDstBuffer->mnBitCount > 8 )
diff --git a/vcl/source/gdi/salnativewidgets-none.cxx b/vcl/source/gdi/salnativewidgets-none.cxx
index 0912f2e20125..6ed2079755c6 100644
--- a/vcl/source/gdi/salnativewidgets-none.cxx
+++ b/vcl/source/gdi/salnativewidgets-none.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,11 +72,11 @@ BOOL SalGraphics::hitTestNativeControl( ControlType,
*
* Draws the requested control described by nPart/nState.
*
- * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
-BOOL SalGraphics::drawNativeControl( ControlType,
+BOOL SalGraphics::drawNativeControl( ControlType,
ControlPart,
const Rectangle&,
ControlState,
@@ -93,11 +93,11 @@ BOOL SalGraphics::drawNativeControl( ControlType,
* OPTIONAL. Draws the requested text for the control described by nPart/nState.
* Used if text not drawn by DrawNativeControl().
*
- * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
-BOOL SalGraphics::drawNativeControlText( ControlType,
+BOOL SalGraphics::drawNativeControlText( ControlType,
ControlPart,
const Rectangle&,
ControlState,
@@ -117,9 +117,9 @@ BOOL SalGraphics::drawNativeControlText( ControlType,
* within the control that can be safely drawn into without drawing over
* the borders of the control.
*
- * rControlRegion: The bounding region of the control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
BOOL SalGraphics::getNativeControlRegion( ControlType,
ControlPart,
diff --git a/vcl/source/gdi/svcompat.cxx b/vcl/source/gdi/svcompat.cxx
index 8415d5bbfc39..31f61d92b45b 100644
--- a/vcl/source/gdi/svcompat.cxx
+++ b/vcl/source/gdi/svcompat.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/gdi/textlayout.cxx b/vcl/source/gdi/textlayout.cxx
index 6a9470abe251..d0f00a932491 100644
--- a/vcl/source/gdi/textlayout.cxx
+++ b/vcl/source/gdi/textlayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index e3aac410b300..22e3a3211446 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,17 +76,17 @@ void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev,
if ( !mpVirDev )
{
// do not abort but throw an exception, may be the current thread terminates anyway (plugin-scenario)
- throw ::com::sun::star::uno::RuntimeException(
+ throw ::com::sun::star::uno::RuntimeException(
OUString( RTL_CONSTASCII_USTRINGPARAM( "Could not create system bitmap!" ) ),
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >() );
//GetpApp()->Exception( EXC_SYSOBJNOTCREATED );
}
- mnBitCount = ( nBitCount ? nBitCount : pOutDev->GetBitCount() );
- mnOutWidth = nDX;
- mnOutHeight = nDY;
- mbScreenComp = TRUE;
- mnAlphaDepth = -1;
+ mnBitCount = ( nBitCount ? nBitCount : pOutDev->GetBitCount() );
+ mnOutWidth = nDX;
+ mnOutHeight = nDY;
+ mbScreenComp = TRUE;
+ mnAlphaDepth = -1;
// #i59315# init vdev size from system object, when passed a
// SystemGraphicsData. Otherwise, output size will always
@@ -102,17 +102,17 @@ void VirtualDevice::ImplInitVirDev( const OutputDevice* pOutDev,
else if ( pOutDev->GetOutDevType() == OUTDEV_VIRDEV )
mbScreenComp = ((VirtualDevice*)pOutDev)->mbScreenComp;
- meOutDevType = OUTDEV_VIRDEV;
- mbDevOutput = TRUE;
- mpFontList = pSVData->maGDIData.mpScreenFontList;
- mpFontCache = pSVData->maGDIData.mpScreenFontCache;
- mnDPIX = pOutDev->mnDPIX;
- mnDPIY = pOutDev->mnDPIY;
- maFont = pOutDev->maFont;
+ meOutDevType = OUTDEV_VIRDEV;
+ mbDevOutput = TRUE;
+ mpFontList = pSVData->maGDIData.mpScreenFontList;
+ mpFontCache = pSVData->maGDIData.mpScreenFontCache;
+ mnDPIX = pOutDev->mnDPIX;
+ mnDPIY = pOutDev->mnDPIY;
+ maFont = pOutDev->maFont;
if( maTextColor != pOutDev->maTextColor )
{
- maTextColor = pOutDev->maTextColor;
+ maTextColor = pOutDev->maTextColor;
mbInitTextColor = true;
}
@@ -235,15 +235,15 @@ BOOL VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, BOOL bErase )
if ( bRet )
{
- mnOutWidth = rNewSize.Width();
+ mnOutWidth = rNewSize.Width();
mnOutHeight = rNewSize.Height();
Erase();
}
}
else
{
- SalVirtualDevice* pNewVirDev;
- ImplSVData* pSVData = ImplGetSVData();
+ SalVirtualDevice* pNewVirDev;
+ ImplSVData* pSVData = ImplGetSVData();
// we need a graphics
if ( !mpGraphics )
@@ -269,12 +269,12 @@ BOOL VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, BOOL bErase )
nHeight = mnOutHeight;
else
nHeight = nNewHeight;
- aPosAry.mnSrcX = 0;
- aPosAry.mnSrcY = 0;
- aPosAry.mnSrcWidth = nWidth;
+ aPosAry.mnSrcX = 0;
+ aPosAry.mnSrcY = 0;
+ aPosAry.mnSrcWidth = nWidth;
aPosAry.mnSrcHeight = nHeight;
- aPosAry.mnDestX = 0;
- aPosAry.mnDestY = 0;
+ aPosAry.mnDestX = 0;
+ aPosAry.mnDestY = 0;
aPosAry.mnDestWidth = nWidth;
aPosAry.mnDestHeight = nHeight;
@@ -283,7 +283,7 @@ BOOL VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, BOOL bErase )
ImplReleaseGraphics();
pSVData->mpDefInst->DestroyVirtualDevice( mpVirDev );
mpVirDev = pNewVirDev;
- mnOutWidth = rNewSize.Width();
+ mnOutWidth = rNewSize.Width();
mnOutHeight = rNewSize.Height();
bRet = TRUE;
}
@@ -302,11 +302,11 @@ BOOL VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, BOOL bErase )
// -----------------------------------------------------------------------
-// #i32109#: Fill opaque areas correctly (without relying on
+// #i32109#: Fill opaque areas correctly (without relying on
// fill/linecolor state)
void VirtualDevice::ImplFillOpaqueRectangle( const Rectangle& rRect )
{
- // Set line and fill color to black (->opaque),
+ // Set line and fill color to black (->opaque),
// fill rect with that (linecolor, too, because of
// those pesky missing pixel problems)
Push( PUSH_LINECOLOR | PUSH_FILLCOLOR );
@@ -441,7 +441,7 @@ void VirtualDevice::ImplSetReferenceDevice( RefDevMode i_eRefDevMode, sal_Int32
void VirtualDevice::Compat_ZeroExtleadBug()
{
- meRefDevMode = (BYTE)meRefDevMode | REFDEV_FORCE_ZERO_EXTLEAD;
+ meRefDevMode = (BYTE)meRefDevMode | REFDEV_FORCE_ZERO_EXTLEAD;
}
// -----------------------------------------------------------------------
diff --git a/vcl/source/gdi/wall.cxx b/vcl/source/gdi/wall.cxx
index 2feff9a9f5ef..fd9d1a51657a 100644
--- a/vcl/source/gdi/wall.cxx
+++ b/vcl/source/gdi/wall.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,12 +45,12 @@ DBG_NAME( Wallpaper );
ImplWallpaper::ImplWallpaper() :
maColor( COL_TRANSPARENT )
{
- mnRefCount = 1;
- mpBitmap = NULL;
- mpCache = NULL;
- mpGradient = NULL;
- mpRect = NULL;
- meStyle = WALLPAPER_NULL;
+ mnRefCount = 1;
+ mpBitmap = NULL;
+ mpCache = NULL;
+ mpGradient = NULL;
+ mpRect = NULL;
+ meStyle = WALLPAPER_NULL;
}
// -----------------------------------------------------------------------
@@ -111,8 +111,8 @@ void ImplWallpaper::ImplReleaseCachedBitmap()
SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
{
- VersionCompat aCompat( rIStm, STREAM_READ );
- UINT16 nTmp16;
+ VersionCompat aCompat( rIStm, STREAM_READ );
+ UINT16 nTmp16;
delete rImplWallpaper.mpRect;
rImplWallpaper.mpRect = NULL;
@@ -166,11 +166,11 @@ SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
SvStream& operator<<( SvStream& rOStm, const ImplWallpaper& rImplWallpaper )
{
- VersionCompat aCompat( rOStm, STREAM_WRITE, 3 );
- BOOL bRect = ( rImplWallpaper.mpRect != NULL );
- BOOL bGrad = ( rImplWallpaper.mpGradient != NULL );
- BOOL bBmp = ( rImplWallpaper.mpBitmap != NULL );
- BOOL bDummy = FALSE;
+ VersionCompat aCompat( rOStm, STREAM_WRITE, 3 );
+ BOOL bRect = ( rImplWallpaper.mpRect != NULL );
+ BOOL bGrad = ( rImplWallpaper.mpGradient != NULL );
+ BOOL bBmp = ( rImplWallpaper.mpBitmap != NULL );
+ BOOL bDummy = FALSE;
// version 1
rOStm << rImplWallpaper.maColor << (UINT16) rImplWallpaper.meStyle;
@@ -242,9 +242,9 @@ Wallpaper::Wallpaper( const Color& rColor )
{
DBG_CTOR( Wallpaper, NULL );
- mpImplWallpaper = new ImplWallpaper;
- mpImplWallpaper->maColor = rColor;
- mpImplWallpaper->meStyle = WALLPAPER_TILE;
+ mpImplWallpaper = new ImplWallpaper;
+ mpImplWallpaper->maColor = rColor;
+ mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
// -----------------------------------------------------------------------
@@ -253,9 +253,9 @@ Wallpaper::Wallpaper( const BitmapEx& rBmpEx )
{
DBG_CTOR( Wallpaper, NULL );
- mpImplWallpaper = new ImplWallpaper;
- mpImplWallpaper->mpBitmap = new BitmapEx( rBmpEx );
- mpImplWallpaper->meStyle = WALLPAPER_TILE;
+ mpImplWallpaper = new ImplWallpaper;
+ mpImplWallpaper->mpBitmap = new BitmapEx( rBmpEx );
+ mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
// -----------------------------------------------------------------------
@@ -264,9 +264,9 @@ Wallpaper::Wallpaper( const Gradient& rGradient )
{
DBG_CTOR( Wallpaper, NULL );
- mpImplWallpaper = new ImplWallpaper;
+ mpImplWallpaper = new ImplWallpaper;
mpImplWallpaper->mpGradient = new Gradient( rGradient );
- mpImplWallpaper->meStyle = WALLPAPER_TILE;
+ mpImplWallpaper->meStyle = WALLPAPER_TILE;
}
// -----------------------------------------------------------------------
@@ -301,11 +301,11 @@ void Wallpaper::SetColor( const Color& rColor )
// -----------------------------------------------------------------------
-const Color& Wallpaper::GetColor() const
-{
+const Color& Wallpaper::GetColor() const
+{
DBG_CHKTHIS( Wallpaper, NULL );
- return mpImplWallpaper->maColor;
+ return mpImplWallpaper->maColor;
}
// -----------------------------------------------------------------------
@@ -326,11 +326,11 @@ void Wallpaper::SetStyle( WallpaperStyle eStyle )
// -----------------------------------------------------------------------
-WallpaperStyle Wallpaper::GetStyle() const
-{
+WallpaperStyle Wallpaper::GetStyle() const
+{
DBG_CHKTHIS( Wallpaper, NULL );
- return mpImplWallpaper->meStyle;
+ return mpImplWallpaper->meStyle;
}
// -----------------------------------------------------------------------
@@ -392,11 +392,11 @@ BitmapEx Wallpaper::GetBitmap() const
// -----------------------------------------------------------------------
-BOOL Wallpaper::IsBitmap() const
-{
+BOOL Wallpaper::IsBitmap() const
+{
DBG_CHKTHIS( Wallpaper, NULL );
- return (mpImplWallpaper->mpBitmap != 0);
+ return (mpImplWallpaper->mpBitmap != 0);
}
@@ -450,11 +450,11 @@ Gradient Wallpaper::GetGradient() const
// -----------------------------------------------------------------------
-BOOL Wallpaper::IsGradient() const
-{
+BOOL Wallpaper::IsGradient() const
+{
DBG_CHKTHIS( Wallpaper, NULL );
- return (mpImplWallpaper->mpGradient != 0);
+ return (mpImplWallpaper->mpGradient != 0);
}
@@ -530,11 +530,11 @@ Rectangle Wallpaper::GetRect() const
// -----------------------------------------------------------------------
-BOOL Wallpaper::IsRect() const
-{
+BOOL Wallpaper::IsRect() const
+{
DBG_CHKTHIS( Wallpaper, NULL );
- return (mpImplWallpaper->mpRect != 0);
+ return (mpImplWallpaper->mpRect != 0);
}
@@ -600,7 +600,7 @@ BOOL Wallpaper::operator==( const Wallpaper& rWallpaper ) const
return TRUE;
if ( ( mpImplWallpaper->meStyle != rWallpaper.mpImplWallpaper->meStyle ) ||
- ( mpImplWallpaper->maColor != rWallpaper.mpImplWallpaper->maColor ) )
+ ( mpImplWallpaper->maColor != rWallpaper.mpImplWallpaper->maColor ) )
return FALSE;
if ( mpImplWallpaper->mpRect != rWallpaper.mpImplWallpaper->mpRect
diff --git a/vcl/source/glyphs/gcach_ftyp.cxx b/vcl/source/glyphs/gcach_ftyp.cxx
index 972540f6c7b7..543df46e3894 100644
--- a/vcl/source/glyphs/gcach_ftyp.cxx
+++ b/vcl/source/glyphs/gcach_ftyp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -238,7 +238,7 @@ bool FtFontFile::Map()
mpFileMap = (const unsigned char*)
mmap( NULL, mnFileSize, PROT_READ, MAP_SHARED, nFile, 0 );
if( mpFileMap == MAP_FAILED )
- mpFileMap = NULL;
+ mpFileMap = NULL;
close( nFile );
#elif defined(WNT)
void* pFileDesc = ::CreateFile( pFileName, GENERIC_READ, FILE_SHARE_READ,
@@ -521,7 +521,7 @@ void* FreetypeServerFont::GetFtFace() const
FreetypeManager::~FreetypeManager()
{
-// This crashes on Solaris 10
+// This crashes on Solaris 10
// TODO: check which versions have this problem
//
// FT_Error rcFT = FT_Done_FreeType( aLibFT );
@@ -1295,7 +1295,7 @@ void FreetypeServerFont::InitGlyphData( int nGlyphIndex, GlyphData& rGD ) const
int nLoadFlags = mnLoadFlags;
// if( mbArtItalic )
-// nLoadFlags |= FT_LOAD_NO_BITMAP;
+// nLoadFlags |= FT_LOAD_NO_BITMAP;
FT_Error rc = -1;
#if (FTVERSION <= 2008)
@@ -1437,7 +1437,7 @@ bool FreetypeServerFont::GetGlyphBitmap1( int nGlyphIndex, RawBitmap& rRawBitmap
// becomes an expensive nop when a glyph covers no pixels.
FT_BBox cbox;
FT_Glyph_Get_CBox(pGlyphFT, ft_glyph_bbox_unscaled, &cbox);
-
+
if( (cbox.xMax - cbox.xMin) == 0 || (cbox.yMax - cbox.yMin == 0) )
{
nAngle = 0;
@@ -1445,7 +1445,7 @@ bool FreetypeServerFont::GetGlyphBitmap1( int nGlyphIndex, RawBitmap& rRawBitmap
FT_Done_Glyph( pGlyphFT );
return true;
}
-
+
if( pGlyphFT->format != FT_GLYPH_FORMAT_BITMAP )
{
if( pGlyphFT->format == FT_GLYPH_FORMAT_OUTLINE )
@@ -1549,7 +1549,7 @@ bool FreetypeServerFont::GetGlyphBitmap8( int nGlyphIndex, RawBitmap& rRawBitmap
FT_Int nLoadFlags = mnLoadFlags;
if( mbArtItalic )
- nLoadFlags |= FT_LOAD_NO_BITMAP;
+ nLoadFlags |= FT_LOAD_NO_BITMAP;
#if (FTVERSION <= 2004) && !defined(TT_CONFIG_OPTION_BYTECODE_INTERPRETER)
// autohinting in FT<=2.0.4 makes antialiased glyphs look worse
@@ -1723,7 +1723,7 @@ bool FreetypeServerFont::GetFontCodeRanges( CmapResult& rResult ) const
{
rResult.mbSymbolic = mpFontInfo->IsSymbolFont();
- // TODO: is the full CmapResult needed on platforms calling this?
+ // TODO: is the full CmapResult needed on platforms calling this?
if( FT_IS_SFNT( maFaceFT ) )
{
ULONG nLength = 0;
@@ -1742,11 +1742,11 @@ bool FreetypeServerFont::GetFontCodeRanges( CmapResult& rResult ) const
for( sal_uInt32 cCode = FT_Get_First_Char( maFaceFT, &nGlyphIndex );; )
{
if( !nGlyphIndex )
- break;
- aCodes.push_back( cCode ); // first code inside range
+ break;
+ aCodes.push_back( cCode ); // first code inside range
sal_uInt32 cNext = cCode;
do cNext = FT_Get_Next_Char( maFaceFT, cCode, &nGlyphIndex ); while( cNext == ++cCode );
- aCodes.push_back( cCode ); // first code outside range
+ aCodes.push_back( cCode ); // first code outside range
cCode = cNext;
}
@@ -1952,10 +1952,10 @@ ULONG FreetypeServerFont::GetKernPairs( ImplKernPairData** ppKernPairs ) const
}
break;
- case 2: // version 0, kerning format 2
+ case 2: // version 0, kerning format 2
{
const FT_Byte* pSubTable = pBuffer;
- /*USHORT nRowWidth =*/ NEXT_U16( pBuffer );
+ /*USHORT nRowWidth =*/ NEXT_U16( pBuffer );
USHORT nOfsLeft = NEXT_U16( pBuffer );
USHORT nOfsRight = NEXT_U16( pBuffer );
USHORT nOfsArray = NEXT_U16( pBuffer );
@@ -2148,7 +2148,7 @@ void PolyArgs::ClosePolygon()
const sal_uInt16 nPolySize(aPoly.GetSize());
if(nPolySize)
{
- if((aPoly.HasFlags() && POLY_CONTROL == aPoly.GetFlags(nPolySize - 1))
+ if((aPoly.HasFlags() && POLY_CONTROL == aPoly.GetFlags(nPolySize - 1))
|| (aPoly.GetPoint(nPolySize - 1) != aPoly.GetPoint(0)))
{
aPoly.SetSize(nPolySize + 1);
diff --git a/vcl/source/glyphs/gcach_ftyp.hxx b/vcl/source/glyphs/gcach_ftyp.hxx
index 95f792fa9647..9dded55f37bb 100644
--- a/vcl/source/glyphs/gcach_ftyp.hxx
+++ b/vcl/source/glyphs/gcach_ftyp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -220,9 +220,9 @@ private:
FT_SizeRec_* maSizeFT;
bool mbFaceOk;
- bool mbArtItalic;
- bool mbArtBold;
- bool mbUseGamma;
+ bool mbArtItalic;
+ bool mbArtBold;
+ bool mbUseGamma;
typedef ::std::hash_map<int,int> GlyphSubstitution;
GlyphSubstitution maGlyphSubstitution;
diff --git a/vcl/source/glyphs/gcach_layout.cxx b/vcl/source/glyphs/gcach_layout.cxx
index bed698d9c1aa..cda874968d1a 100644
--- a/vcl/source/glyphs/gcach_layout.cxx
+++ b/vcl/source/glyphs/gcach_layout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -336,7 +336,7 @@ void IcuFontFromServerFont::getGlyphAdvance( LEGlyphID nGlyphIndex,
// -----------------------------------------------------------------------
le_bool IcuFontFromServerFont::getGlyphPoint( LEGlyphID,
- le_int32
+ le_int32
#if OSL_DEBUG_LEVEL > 1
pointNumber
#endif
@@ -552,13 +552,13 @@ bool IcuLayoutEngine::operator()( ServerFontLayout& rLayout, ImplLayoutArgs& rAr
{
// left-to-right case
if( nClusterMinPos > nCharPos )
- nClusterMinPos = nCharPos; // extend cluster
+ nClusterMinPos = nCharPos; // extend cluster
else if( nCharPos <= nClusterMaxPos )
- /*NOTHING*/; // inside cluster
+ /*NOTHING*/; // inside cluster
else if( bDiacritic )
- nClusterMaxPos = nCharPos; // add diacritic to cluster
+ nClusterMaxPos = nCharPos; // add diacritic to cluster
else {
- nClusterMinPos = nClusterMaxPos = nCharPos; // new cluster
+ nClusterMinPos = nClusterMaxPos = nCharPos; // new cluster
bInCluster = false;
}
}
@@ -566,12 +566,12 @@ bool IcuLayoutEngine::operator()( ServerFontLayout& rLayout, ImplLayoutArgs& rAr
{
// right-to-left case
if( nClusterMaxPos < nCharPos )
- nClusterMaxPos = nCharPos; // extend cluster
+ nClusterMaxPos = nCharPos; // extend cluster
else if( nCharPos >= nClusterMinPos )
- /*NOTHING*/; // inside cluster
+ /*NOTHING*/; // inside cluster
else if( bDiacritic )
{
- nClusterMinPos = nCharPos; // ICU often has [diacritic* baseglyph*]
+ nClusterMinPos = nCharPos; // ICU often has [diacritic* baseglyph*]
if( bClusterStart ) {
nClusterMaxPos = nCharPos;
bInCluster = false;
@@ -579,7 +579,7 @@ bool IcuLayoutEngine::operator()( ServerFontLayout& rLayout, ImplLayoutArgs& rAr
}
else
{
- nClusterMinPos = nClusterMaxPos = nCharPos; // new cluster
+ nClusterMinPos = nClusterMaxPos = nCharPos; // new cluster
bInCluster = !bClusterStart;
}
}
diff --git a/vcl/source/glyphs/gcach_rbmp.cxx b/vcl/source/glyphs/gcach_rbmp.cxx
index f951590b4b45..aad08d09793a 100644
--- a/vcl/source/glyphs/gcach_rbmp.cxx
+++ b/vcl/source/glyphs/gcach_rbmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -212,7 +212,7 @@ bool RawBitmap::Rotate( int nAngle )
unsigned char* pBuf = new unsigned char[ nBufSize ];
if( !pBuf )
return false;
-
+
memset( pBuf, 0, nBufSize );
int i;
diff --git a/vcl/source/glyphs/gcach_vdev.cxx b/vcl/source/glyphs/gcach_vdev.cxx
index 7a090de30128..aecde028fc64 100644
--- a/vcl/source/glyphs/gcach_vdev.cxx
+++ b/vcl/source/glyphs/gcach_vdev.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -57,22 +57,22 @@ void VirtDevServerFont::AnnounceFonts( ImplDevFontList* pToAdd )
ImplFontData& rData = *new ImplFontData;
rData.SetSysData( new FontSysData( (void*)SERVERFONT_MAGIC ) );
- rData.maName = aFontInfo.GetName();
- rData.maStyleName = aFontInfo.GetStyleName();
- rData.mnWidth = aFontInfo.GetWidth();
- rData.mnHeight = aFontInfo.GetHeight();
- rData.meFamily = aFontInfo.GetFamily();
- rData.meCharSet = aFontInfo.GetCharSet();
- rData.mePitch = aFontInfo.GetPitch();
- rData.meWidthType = aFontInfo.GetWidthType();
- rData.meWeight = aFontInfo.GetWeight();
- rData.meItalic = aFontInfo.GetItalic();
- rData.meType = aFontInfo.GetType();
- rData.meFamily = aFontInfo.GetFamily();
-
- rData.mbOrientation = true; // TODO: where to get this info?
- rData.mbDevice = false;
- rData.mnQuality = 0; // prefer client-side fonts if available
+ rData.maName = aFontInfo.GetName();
+ rData.maStyleName = aFontInfo.GetStyleName();
+ rData.mnWidth = aFontInfo.GetWidth();
+ rData.mnHeight = aFontInfo.GetHeight();
+ rData.meFamily = aFontInfo.GetFamily();
+ rData.meCharSet = aFontInfo.GetCharSet();
+ rData.mePitch = aFontInfo.GetPitch();
+ rData.meWidthType = aFontInfo.GetWidthType();
+ rData.meWeight = aFontInfo.GetWeight();
+ rData.meItalic = aFontInfo.GetItalic();
+ rData.meType = aFontInfo.GetType();
+ rData.meFamily = aFontInfo.GetFamily();
+
+ rData.mbOrientation = true; // TODO: where to get this info?
+ rData.mbDevice = false;
+ rData.mnQuality = 0; // prefer client-side fonts if available
pToAdd->Add( &rData );
}
@@ -98,7 +98,7 @@ VirtDevServerFont* VirtDevServerFont::CreateFont( const ImplFontSelectData& rFSD
// -----------------------------------------------------------------------
VirtDevServerFont::VirtDevServerFont( const ImplFontSelectData& rFSD )
-: ServerFont( rFSD)
+: ServerFont( rFSD)
{}
// -----------------------------------------------------------------------
@@ -108,37 +108,37 @@ void VirtDevServerFont::FetchFontMetric( ImplFontMetricData& rTo, long& rFactor
const ImplFontSelectData& aFSD = GetFontSelData();
Font aFont;
- aFont.SetName ( aFSD.maName );
- aFont.SetStyleName ( aFSD.maStyleName );
- aFont.SetHeight ( aFSD.mnHeight );
- aFont.SetWidth ( aFSD.mnWidth );
+ aFont.SetName ( aFSD.maName );
+ aFont.SetStyleName ( aFSD.maStyleName );
+ aFont.SetHeight ( aFSD.mnHeight );
+ aFont.SetWidth ( aFSD.mnWidth );
aFont.SetOrientation( aFSD.mnOrientation );
- aFont.SetVertical ( GetFontSelData().mbVertical );
+ aFont.SetVertical ( GetFontSelData().mbVertical );
VirtualDevice vdev( 1 );
FontMetric aMetric( vdev.GetFontMetric( aFont ) );
rFactor = 0x100;
- rTo.mnAscent = aMetric.GetAscent();
- rTo.mnDescent = aMetric.GetDescent();
- rTo.mnIntLeading = aMetric.GetIntLeading();
- rTo.mnExtLeading = aMetric.GetExtLeading();
- rTo.mnSlant = aMetric.GetSlant();
- rTo.meType = aMetric.GetType();
- rTo.mnFirstChar = 0x0020; // TODO: where to get this info?
- rTo.mnLastChar = 0xFFFE; // TODO: where to get this info?
-
- rTo.mnWidth = aFSD.mnWidth;
- rTo.maName = aFSD.maName;
- rTo.maStyleName = aFSD.maStyleName;
- rTo.mnOrientation = aFSD.mnOrientation;
- rTo.meFamily = aFSD.meFamily;
- rTo.meCharSet = aFSD.meCharSet;
- rTo.meWeight = aFSD.meWeight;
- rTo.meItalic = aFSD.meItalic;
- rTo.mePitch = aFSD.mePitch;
- rTo.mbDevice = FALSE;
+ rTo.mnAscent = aMetric.GetAscent();
+ rTo.mnDescent = aMetric.GetDescent();
+ rTo.mnIntLeading = aMetric.GetIntLeading();
+ rTo.mnExtLeading = aMetric.GetExtLeading();
+ rTo.mnSlant = aMetric.GetSlant();
+ rTo.meType = aMetric.GetType();
+ rTo.mnFirstChar = 0x0020; // TODO: where to get this info?
+ rTo.mnLastChar = 0xFFFE; // TODO: where to get this info?
+
+ rTo.mnWidth = aFSD.mnWidth;
+ rTo.maName = aFSD.maName;
+ rTo.maStyleName = aFSD.maStyleName;
+ rTo.mnOrientation = aFSD.mnOrientation;
+ rTo.meFamily = aFSD.meFamily;
+ rTo.meCharSet = aFSD.meCharSet;
+ rTo.meWeight = aFSD.meWeight;
+ rTo.meItalic = aFSD.meItalic;
+ rTo.mePitch = aFSD.mePitch;
+ rTo.mbDevice = FALSE;
}
// -----------------------------------------------------------------------
@@ -153,19 +153,19 @@ int VirtDevServerFont::GetGlyphIndex( sal_Unicode aChar ) const
void VirtDevServerFont::InitGlyphData( int nGlyphIndex, GlyphData& rGD ) const
{
Font aFont;
- aFont.SetName ( GetFontSelData().maName );
- aFont.SetStyleName ( GetFontSelData().maStyleName );
- aFont.SetHeight ( GetFontSelData().mnHeight );
- aFont.SetWidth ( GetFontSelData().mnWidth );
+ aFont.SetName ( GetFontSelData().maName );
+ aFont.SetStyleName ( GetFontSelData().maStyleName );
+ aFont.SetHeight ( GetFontSelData().mnHeight );
+ aFont.SetWidth ( GetFontSelData().mnWidth );
aFont.SetOrientation( GetFontSelData().mnOrientation );
- aFont.SetVertical ( GetFontSelData().mbVertical );
+ aFont.SetVertical ( GetFontSelData().mbVertical );
VirtualDevice vdev( 1 );
vdev.SetFont( aFont );
// get glyph metrics
sal_Int32 nCharWidth = 10;
-// TODO: vdev.GetCharWidth( nGlyphIndex, nGlyphIndex, &nCharWidth );
+// TODO: vdev.GetCharWidth( nGlyphIndex, nGlyphIndex, &nCharWidth );
rGD.SetCharWidth( nCharWidth );
sal_Unicode aChar = nGlyphIndex;
@@ -209,7 +209,7 @@ bool VirtDevServerFont::GetGlyphBitmap1( int nGlyphIndex, RawBitmap& ) const
// -----------------------------------------------------------------------
-bool VirtDevServerFont::GetGlyphBitmap8( int nGlyphIndex, RawBitmap& ) const
+bool VirtDevServerFont::GetGlyphBitmap8( int nGlyphIndex, RawBitmap& ) const
{
return false;
}
@@ -226,12 +226,12 @@ int VirtDevServerFont::GetGlyphKernValue( int, int ) const
ULONG VirtDevServerFont::GetKernPairs( ImplKernPairData** ppImplKernPairs ) const
{
Font aFont;
- aFont.SetName ( GetFontSelData().maName );
- aFont.SetStyleName ( GetFontSelData().maStyleName );
- aFont.SetHeight ( GetFontSelData().mnHeight );
- aFont.SetWidth ( GetFontSelData().mnWidth );
+ aFont.SetName ( GetFontSelData().maName );
+ aFont.SetStyleName ( GetFontSelData().maStyleName );
+ aFont.SetHeight ( GetFontSelData().mnHeight );
+ aFont.SetWidth ( GetFontSelData().mnWidth );
aFont.SetOrientation( GetFontSelData().mnOrientation );
- aFont.SetVertical ( GetFontSelData().mbVertical );
+ aFont.SetVertical ( GetFontSelData().mbVertical );
VirtualDevice vdev( 1 );
vdev.SetFont( aFont );
@@ -247,9 +247,9 @@ ULONG VirtDevServerFont::GetKernPairs( ImplKernPairData** ppImplKernPairs ) cons
KerningPair* pFrom = pKernPairs;
for ( ULONG n = 0; n < nPairs; n++ )
{
- pTo->mnChar1 = pFrom->nChar1;
- pTo->mnChar2 = pFrom->nChar2;
- pTo->mnKern = pFrom->nKern;
+ pTo->mnChar1 = pFrom->nChar1;
+ pTo->mnChar2 = pFrom->nChar2;
+ pTo->mnKern = pFrom->nKern;
++pFrom;
++pTo;
}
@@ -267,12 +267,12 @@ bool VirtDevServerFont::GetGlyphOutline( int nGlyphIndex, PolyPolygon& rPolyPoly
return false;
/*
Font aFont;
- aFont.SetName ( GetFontSelData().maName );
- aFont.SetStyleName ( GetFontSelData().maStyleName );
- aFont.SetHeight ( GetFontSelData().mnHeight );
- aFont.SetWidth ( GetFontSelData().mnWidth );
+ aFont.SetName ( GetFontSelData().maName );
+ aFont.SetStyleName ( GetFontSelData().maStyleName );
+ aFont.SetHeight ( GetFontSelData().mnHeight );
+ aFont.SetWidth ( GetFontSelData().mnWidth );
aFont.SetOrientation( GetFontSelData().mnOrientation );
- aFont.SetVertical ( GetFontSelData().mbVertical );
+ aFont.SetVertical ( GetFontSelData().mbVertical );
VirtualDevice vdev( 1 );
vdev.SetFont( aFont );
diff --git a/vcl/source/glyphs/gcach_vdev.hxx b/vcl/source/glyphs/gcach_vdev.hxx
index 48d602677c16..fecfff6f3fd1 100644
--- a/vcl/source/glyphs/gcach_vdev.hxx
+++ b/vcl/source/glyphs/gcach_vdev.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,23 +33,23 @@
class VirtDevServerFont : public ServerFont
{
public:
- virtual bool GetAntialiasAdvice( void ) const;
- virtual bool GetGlyphBitmap1( int nGlyphIndex, RawBitmap& ) const;
- virtual bool GetGlyphBitmap8( int nGlyphIndex, RawBitmap& ) const;
- virtual bool GetGlyphOutline( int nGlyphIndex, PolyPolygon& ) const;
+ virtual bool GetAntialiasAdvice( void ) const;
+ virtual bool GetGlyphBitmap1( int nGlyphIndex, RawBitmap& ) const;
+ virtual bool GetGlyphBitmap8( int nGlyphIndex, RawBitmap& ) const;
+ virtual bool GetGlyphOutline( int nGlyphIndex, PolyPolygon& ) const;
protected:
friend class GlyphCache;
- static void AnnounceFonts( ImplDevFontList* );
- static void ClearFontList();
+ static void AnnounceFonts( ImplDevFontList* );
+ static void ClearFontList();
- static VirtDevServerFont* CreateFont( const ImplFontSelectData& );
- virtual void FetchFontMetric( ImplFontMetricData&, long& rFactor ) const;
- virtual ULONG GetKernPairs( ImplKernPairData** ) const;
+ static VirtDevServerFont* CreateFont( const ImplFontSelectData& );
+ virtual void FetchFontMetric( ImplFontMetricData&, long& rFactor ) const;
+ virtual ULONG GetKernPairs( ImplKernPairData** ) const;
virtual int GetGlyphKernValue( int, int ) const;
- virtual int GetGlyphIndex( sal_Unicode ) const;
- virtual void InitGlyphData( int nGlyphIndex, GlyphData& ) const;
+ virtual int GetGlyphIndex( sal_Unicode ) const;
+ virtual void InitGlyphData( int nGlyphIndex, GlyphData& ) const;
private:
VirtDevServerFont( const ImplFontSelectData& );
diff --git a/vcl/source/glyphs/glyphcache.cxx b/vcl/source/glyphs/glyphcache.cxx
index 159639ccdd05..a528244eab63 100644
--- a/vcl/source/glyphs/glyphcache.cxx
+++ b/vcl/source/glyphs/glyphcache.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@
#include <vcl/graphite_features.hxx>
#endif
-#include <rtl/ustring.hxx> // used only for string=>hashvalue
+#include <rtl/ustring.hxx> // used only for string=>hashvalue
#include <osl/file.hxx>
#include <tools/debug.hxx>
@@ -223,9 +223,9 @@ ServerFont* GlyphCache::CacheFont( const ImplFontSelectData& rFontSelData )
if( nFontId <= 0 )
return NULL;
- // the FontList's key mpFontData member is reinterpreted as font id
+ // the FontList's key mpFontData member is reinterpreted as font id
ImplFontSelectData aFontSelData = rFontSelData;
- aFontSelData.mpFontData = reinterpret_cast<ImplFontData*>( nFontId );
+ aFontSelData.mpFontData = reinterpret_cast<ImplFontData*>( nFontId );
FontList::iterator it = maFontList.find( aFontSelData );
if( it != maFontList.end() )
{
diff --git a/vcl/source/glyphs/graphite_adaptors.cxx b/vcl/source/glyphs/graphite_adaptors.cxx
index f5272333bf8d..6e3591b9277e 100644
--- a/vcl/source/glyphs/graphite_adaptors.cxx
+++ b/vcl/source/glyphs/graphite_adaptors.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/glyphs/graphite_cache.cxx b/vcl/source/glyphs/graphite_cache.cxx
index 51c898b1a951..20f354b5b9f3 100644
--- a/vcl/source/glyphs/graphite_cache.cxx
+++ b/vcl/source/glyphs/graphite_cache.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/glyphs/graphite_features.cxx b/vcl/source/glyphs/graphite_features.cxx
index 23325f963b37..7b0ba0afa1ac 100644
--- a/vcl/source/glyphs/graphite_features.cxx
+++ b/vcl/source/glyphs/graphite_features.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
// Description:
// Parse a string of features specified as & separated pairs.
// e.g.
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index a464dbbd8bf6..0a674a21d492 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
// Description: An implementation of the SalLayout interface that uses the
// Graphite engine.
diff --git a/vcl/source/glyphs/graphite_serverfont.cxx b/vcl/source/glyphs/graphite_serverfont.cxx
index cda2cd434cba..dcf9768f78cc 100644
--- a/vcl/source/glyphs/graphite_serverfont.cxx
+++ b/vcl/source/glyphs/graphite_serverfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/glyphs/graphite_textsrc.cxx b/vcl/source/glyphs/graphite_textsrc.cxx
index e8967701a52c..abea305da96e 100644
--- a/vcl/source/glyphs/graphite_textsrc.cxx
+++ b/vcl/source/glyphs/graphite_textsrc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/glyphs/graphite_textsrc.hxx b/vcl/source/glyphs/graphite_textsrc.hxx
index ca905fc0d824..7c675c6f5b38 100644
--- a/vcl/source/glyphs/graphite_textsrc.hxx
+++ b/vcl/source/glyphs/graphite_textsrc.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#ifndef _SV_GRAPHITETEXTSRC_HXX
#define _SV_GRAPHITETEXTSRC_HXX
// Description: Implements the Graphite interfaces IGrTextSource and
diff --git a/vcl/source/helper/canvasbitmap.cxx b/vcl/source/helper/canvasbitmap.cxx
index 32f5ea768066..8cb4bd4ec757 100644
--- a/vcl/source/helper/canvasbitmap.cxx
+++ b/vcl/source/helper/canvasbitmap.cxx
@@ -467,7 +467,7 @@ uno::Reference< rendering::XBitmap > SAL_CALL VclCanvasBitmap::getScaledBitmap(
}
// XIntegerReadOnlyBitmap
-uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getData( rendering::IntegerBitmapLayout& bitmapLayout,
+uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getData( rendering::IntegerBitmapLayout& bitmapLayout,
const geometry::IntegerRectangle2D& rect ) throw( lang::IndexOutOfBoundsException,
rendering::VolatileContentDestroyedException,
uno::RuntimeException)
@@ -572,8 +572,8 @@ uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getData( rendering::IntegerB
return aRet;
}
-uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getPixel( rendering::IntegerBitmapLayout& bitmapLayout,
- const geometry::IntegerPoint2D& pos ) throw (lang::IndexOutOfBoundsException,
+uno::Sequence< sal_Int8 > SAL_CALL VclCanvasBitmap::getPixel( rendering::IntegerBitmapLayout& bitmapLayout,
+ const geometry::IntegerPoint2D& pos ) throw (lang::IndexOutOfBoundsException,
rendering::VolatileContentDestroyedException,
uno::RuntimeException)
{
diff --git a/vcl/source/helper/canvastools.cxx b/vcl/source/helper/canvastools.cxx
index aa667a3f6492..d57c9f4ec767 100644
--- a/vcl/source/helper/canvastools.cxx
+++ b/vcl/source/helper/canvastools.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,7 +81,7 @@ namespace vcl
{
namespace unotools
{
- // #i79917# removed helpers bezierSequenceFromPolygon and
+ // #i79917# removed helpers bezierSequenceFromPolygon and
// pointSequenceFromPolygon here
// Also all helpers using tools Polygon and PolyPolygon will get mapped to the
// B2DPolygon helpers for these cases, see comments with the same TaskID below.
@@ -89,8 +89,8 @@ namespace vcl
//---------------------------------------------------------------------------------------
- uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
- const ::Polygon& inputPolygon )
+ uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
+ const ::Polygon& inputPolygon )
{
RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xPolyPolygonFromPolygon()" );
@@ -102,7 +102,7 @@ namespace vcl
//---------------------------------------------------------------------------------------
uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice,
- const ::PolyPolygon& inputPolyPolygon )
+ const ::PolyPolygon& inputPolyPolygon )
{
RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xPolyPolygonFromPolyPolygon()" );
@@ -165,8 +165,8 @@ namespace vcl
//---------------------------------------------------------------------------------------
- uno::Reference< rendering::XBitmap > xBitmapFromBitmap( const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/,
- const ::Bitmap& inputBitmap )
+ uno::Reference< rendering::XBitmap > xBitmapFromBitmap( const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/,
+ const ::Bitmap& inputBitmap )
{
RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xBitmapFromBitmap()" );
@@ -175,8 +175,8 @@ namespace vcl
//---------------------------------------------------------------------------------------
- uno::Reference< rendering::XBitmap > xBitmapFromBitmapEx( const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/,
- const ::BitmapEx& inputBitmap )
+ uno::Reference< rendering::XBitmap > xBitmapFromBitmapEx( const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/,
+ const ::BitmapEx& inputBitmap )
{
RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xBitmapFromBitmapEx()" );
@@ -204,10 +204,10 @@ namespace vcl
namespace
{
- inline bool operator==( const rendering::IntegerBitmapLayout& rLHS,
+ inline bool operator==( const rendering::IntegerBitmapLayout& rLHS,
const rendering::IntegerBitmapLayout& rRHS )
{
- return
+ return
rLHS.ScanLineBytes == rRHS.ScanLineBytes &&
rLHS.ScanLineStride == rRHS.ScanLineStride &&
rLHS.PlaneStride == rRHS.PlaneStride &&
@@ -343,16 +343,16 @@ namespace vcl
OSL_ENSURE(aLayout.ColorSpace.is(),
"Cannot convert image without color space!");
if( !aLayout.ColorSpace.is() )
- return ::BitmapEx();
+ return ::BitmapEx();
nDepth = aLayout.ColorSpace->getBitsPerPixel();
if( xInputBitmap->hasAlpha() )
{
// determine alpha channel depth
- const uno::Sequence<sal_Int8> aTags(
+ const uno::Sequence<sal_Int8> aTags(
aLayout.ColorSpace->getComponentTags() );
- const uno::Sequence<sal_Int32> aDepths(
+ const uno::Sequence<sal_Int32> aDepths(
aLayout.ColorSpace->getComponentBitCounts() );
const sal_Int8* pStart(aTags.getConstArray());
const sal_Size nLen(aTags.getLength());
@@ -385,7 +385,7 @@ namespace vcl
else
nDepth = 8;
- const USHORT nPaletteEntries(
+ const USHORT nPaletteEntries(
sal::static_int_cast<USHORT>(
std::min(sal_Int32(255), nEntryCount)));
@@ -397,7 +397,7 @@ namespace vcl
uno::Sequence<double> aPaletteEntry;
for( USHORT j=0; j<nPaletteEntries; ++j )
{
- if( !xPalette->getIndex(aPaletteEntry,j) &&
+ if( !xPalette->getIndex(aPaletteEntry,j) &&
nAlphaDepth == 0 )
{
nAlphaDepth = 1;
@@ -413,26 +413,26 @@ namespace vcl
}
}
- const ::Size aPixelSize(
+ const ::Size aPixelSize(
sizeFromIntegerSize2D(xInputBitmap->getSize()));
// normalize bitcount
- nDepth =
+ nDepth =
( nDepth <= 1 ) ? 1 :
( nDepth <= 4 ) ? 4 :
- ( nDepth <= 8 ) ? 8 : 24;
+ ( nDepth <= 8 ) ? 8 : 24;
::Bitmap aBitmap( aPixelSize,
sal::static_int_cast<USHORT>(nDepth),
aLayout.Palette.is() ? &aPalette : NULL );
::Bitmap aAlpha;
if( nAlphaDepth )
- aAlpha = ::Bitmap( aPixelSize,
+ aAlpha = ::Bitmap( aPixelSize,
sal::static_int_cast<USHORT>(nAlphaDepth),
&::Bitmap::GetGreyPalette(
sal::static_int_cast<USHORT>(1L << nAlphaDepth)) );
- { // limit scoped access
+ { // limit scoped access
ScopedBitmapWriteAccess pWriteAccess( aBitmap.AcquireWriteAccess(),
aBitmap );
ScopedBitmapWriteAccess pAlphaWriteAccess( nAlphaDepth ? aAlpha.AcquireWriteAccess() : NULL,
@@ -447,7 +447,7 @@ namespace vcl
if( !readBmp(nWidth,nHeight,aLayout,xInputBitmap,
pWriteAccess,pAlphaWriteAccess) )
continue;
- } // limit scoped access
+ } // limit scoped access
if( nAlphaDepth )
return ::BitmapEx( aBitmap,
@@ -639,8 +639,8 @@ namespace vcl
{
return uno::Sequence< beans::PropertyValue >();
}
- virtual uno::Sequence< double > SAL_CALL convertColorSpace( const uno::Sequence< double >& deviceColor,
- const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< double > SAL_CALL convertColorSpace( const uno::Sequence< double >& deviceColor,
+ const uno::Reference< rendering::XColorSpace >& targetColorSpace ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
// TODO(P3): if we know anything about target
@@ -653,7 +653,7 @@ namespace vcl
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -670,7 +670,7 @@ namespace vcl
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -687,7 +687,7 @@ namespace vcl
{
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
- ENSURE_ARG_OR_THROW2(nLen%4==0,
+ ENSURE_ARG_OR_THROW2(nLen%4==0,
"number of channels no multiple of 4",
static_cast<rendering::XColorSpace*>(this), 0);
@@ -786,7 +786,7 @@ namespace vcl
return aRet;
}
- Color stdColorSpaceSequenceToColor( const uno::Sequence< double >& rColor )
+ Color stdColorSpaceSequenceToColor( const uno::Sequence< double >& rColor )
{
ENSURE_ARG_OR_THROW( rColor.getLength() == 4,
"color must have 4 channels" );
@@ -802,7 +802,7 @@ namespace vcl
return aColor;
}
- uno::Sequence< double > VCL_DLLPUBLIC colorToDoubleSequence(
+ uno::Sequence< double > VCL_DLLPUBLIC colorToDoubleSequence(
const Color& rColor,
const uno::Reference< rendering::XColorSpace >& xColorSpace )
{
@@ -816,7 +816,7 @@ namespace vcl
return xColorSpace->convertFromARGB(aSeq);
}
- Color VCL_DLLPUBLIC doubleSequenceToColor(
+ Color VCL_DLLPUBLIC doubleSequenceToColor(
const uno::Sequence< double > rColor,
const uno::Reference< rendering::XColorSpace >& xColorSpace )
{
diff --git a/vcl/source/helper/evntpost.cxx b/vcl/source/helper/evntpost.cxx
index a8a68640ec36..b97e6d9e770f 100644
--- a/vcl/source/helper/evntpost.cxx
+++ b/vcl/source/helper/evntpost.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/helper/lazydelete.cxx b/vcl/source/helper/lazydelete.cxx
index 398b8338884d..d2612a028c9e 100644
--- a/vcl/source/helper/lazydelete.cxx
+++ b/vcl/source/helper/lazydelete.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -99,7 +99,7 @@ void DeleteOnDeinitBase::addDeinitContainer( DeleteOnDeinitBase* i_pContainer )
DBG_ASSERT( ! pSVData->mbDeInit, "DeleteOnDeinit added after DeiInitVCL !" );
if( pSVData->mbDeInit )
return;
-
+
if( pSVData->mpDeinitDeleteList == NULL )
pSVData->mpDeinitDeleteList = new std::list< DeleteOnDeinitBase* >();
pSVData->mpDeinitDeleteList->push_back( i_pContainer );
@@ -107,7 +107,7 @@ void DeleteOnDeinitBase::addDeinitContainer( DeleteOnDeinitBase* i_pContainer )
void DeleteOnDeinitBase::ImplDeleteOnDeInit()
{
- ImplSVData* pSVData = ImplGetSVData();
+ ImplSVData* pSVData = ImplGetSVData();
if( pSVData->mpDeinitDeleteList )
{
for( std::list< vcl::DeleteOnDeinitBase* >::iterator it = pSVData->mpDeinitDeleteList->begin();
diff --git a/vcl/source/helper/smartid.cxx b/vcl/source/helper/smartid.cxx
index 41a4cbe814ea..d96539494906 100644
--- a/vcl/source/helper/smartid.cxx
+++ b/vcl/source/helper/smartid.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -227,7 +227,7 @@ BOOL SmartId::Matches( const SmartId &rId ) const
return FALSE;
else if ( HasString() && rId.HasString() )
return Matches( rId.GetStr() );
- else
+ else
return rId.HasNumeric() && Matches( rId.GetNum() );
}
@@ -240,7 +240,7 @@ BOOL SmartId::Equals( const SmartId &rId ) const
&& mpData->bHasNumericId == rId.mpData->bHasNumericId;
else if ( !mpData && !rId.mpData )
return TRUE;
- else
+ else
return FALSE;
}
diff --git a/vcl/source/helper/strhelper.cxx b/vcl/source/helper/strhelper.cxx
index 7009468a02ec..bfbf85ebf21e 100644
--- a/vcl/source/helper/strhelper.cxx
+++ b/vcl/source/helper/strhelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -127,12 +127,12 @@ String GetCommandLineToken( int nToken, const String& rLine )
int nLen = rLine.Len();
if( ! nLen )
return String();
-
+
int nActualToken = 0;
sal_Unicode* pBuffer = (sal_Unicode*)alloca( sizeof(sal_Unicode)*( nLen + 1 ) );
const sal_Unicode* pRun = rLine.GetBuffer();
sal_Unicode* pLeap = NULL;
-
+
while( *pRun && nActualToken <= nToken )
{
while( *pRun && isSpace( *pRun ) )
@@ -168,7 +168,7 @@ String GetCommandLineToken( int nToken, const String& rLine )
}
*pLeap = 0;
-
+
String aRet( pBuffer );
return aRet;
}
@@ -178,12 +178,12 @@ ByteString GetCommandLineToken( int nToken, const ByteString& rLine )
int nLen = rLine.Len();
if( ! nLen )
return ByteString();
-
+
int nActualToken = 0;
char* pBuffer = (char*)alloca( nLen + 1 );
const char* pRun = rLine.GetBuffer();
char* pLeap = NULL;
-
+
while( *pRun && nActualToken <= nToken )
{
while( *pRun && isSpace( *pRun ) )
@@ -219,7 +219,7 @@ ByteString GetCommandLineToken( int nToken, const ByteString& rLine )
}
*pLeap = 0;
-
+
ByteString aRet( pBuffer );
return aRet;
}
@@ -228,10 +228,10 @@ int GetCommandLineTokenCount( const String& rLine )
{
if( ! rLine.Len() )
return 0;
-
+
int nTokenCount = 0;
const sal_Unicode *pRun = rLine.GetBuffer();
-
+
while( *pRun )
{
@@ -271,7 +271,7 @@ int GetCommandLineTokenCount( const String& rLine )
}
nTokenCount++;
}
-
+
return nTokenCount;
}
@@ -279,10 +279,10 @@ int GetCommandLineTokenCount( const ByteString& rLine )
{
if( ! rLine.Len() )
return 0;
-
+
int nTokenCount = 0;
const char *pRun = rLine.GetBuffer();
-
+
while( *pRun )
{
@@ -322,7 +322,7 @@ int GetCommandLineTokenCount( const ByteString& rLine )
}
nTokenCount++;
}
-
+
return nTokenCount;
}
@@ -331,7 +331,7 @@ String WhitespaceToSpace( const String& rLine, BOOL bProtect )
int nLen = rLine.Len();
if( ! nLen )
return String();
-
+
sal_Unicode *pBuffer = (sal_Unicode*)alloca( sizeof(sal_Unicode)*(nLen + 1) );
const sal_Unicode *pRun = rLine.GetBuffer();
sal_Unicode *pLeap = pBuffer;
@@ -380,7 +380,7 @@ String WhitespaceToSpace( const String& rLine, BOOL bProtect )
*pLeap = 0;
String aRet( *pBuffer == ' ' ? pBuffer+1 : pBuffer );
- return aRet;
+ return aRet;
}
ByteString WhitespaceToSpace( const ByteString& rLine, BOOL bProtect )
@@ -388,7 +388,7 @@ ByteString WhitespaceToSpace( const ByteString& rLine, BOOL bProtect )
int nLen = rLine.Len();
if( ! nLen )
return ByteString();
-
+
char *pBuffer = (char*)alloca( nLen + 1 );
const char *pRun = rLine.GetBuffer();
char *pLeap = pBuffer;
@@ -437,7 +437,7 @@ ByteString WhitespaceToSpace( const ByteString& rLine, BOOL bProtect )
*pLeap = 0;
ByteString aRet( *pBuffer == ' ' ? pBuffer+1 : pBuffer );
- return aRet;
+ return aRet;
}
} // namespace
diff --git a/vcl/source/helper/threadex.cxx b/vcl/source/helper/threadex.cxx
index 85ccffd34b6c..e929009ed18c 100644
--- a/vcl/source/helper/threadex.cxx
+++ b/vcl/source/helper/threadex.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/helper/xconnection.cxx b/vcl/source/helper/xconnection.cxx
index 972441cef060..976af9f0420c 100644
--- a/vcl/source/helper/xconnection.cxx
+++ b/vcl/source/helper/xconnection.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -110,7 +110,7 @@ Any SAL_CALL DisplayConnection::getIdentifier() throw()
void DisplayConnection::dispatchDowningEvent()
{
SolarMutexReleaser aRel;
-
+
MutexGuard aGuard( m_aMutex );
Any aEvent;
std::list< Reference< XEventHandler > > aLocalList( m_aHandlers );
diff --git a/vcl/source/salmain/salmain.cxx b/vcl/source/salmain/salmain.cxx
index 66dec1e9afc1..138aa7987434 100644
--- a/vcl/source/salmain/salmain.cxx
+++ b/vcl/source/salmain/salmain.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/src/btntext.src b/vcl/source/src/btntext.src
index 6d2360dae6cb..99579f00b107 100644
--- a/vcl/source/src/btntext.src
+++ b/vcl/source/src/btntext.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,13 +103,13 @@ SV_BUTTONHELPTEXT_MORE
};
Finnische-Texte:
-OK OK
-CANCEL Peruuta
-HELP ~Ohje
-MORE ~Enemmän
-YES ~Kyllä
-NO ~Ei
-RETRY ~Yritäuudelleen
+OK OK
+CANCEL Peruuta
+HELP ~Ohje
+MORE ~Enemmän
+YES ~Kyllä
+NO ~Ei
+RETRY ~Yritäuudelleen
*/
diff --git a/vcl/source/src/helptext.src b/vcl/source/src/helptext.src
index a42a9531d9ee..327266c13b50 100644
--- a/vcl/source/src/helptext.src
+++ b/vcl/source/src/helptext.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/src/images.src b/vcl/source/src/images.src
index fdb1e755c86a..20ba1cbd3dd0 100644
--- a/vcl/source/src/images.src
+++ b/vcl/source/src/images.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/src/menu.src b/vcl/source/src/menu.src
index 1833093adfac..f4e59c1c8030 100644
--- a/vcl/source/src/menu.src
+++ b/vcl/source/src/menu.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,46 +36,46 @@ String SV_RESID_STRING_NOSELECTIONPOSSIBLE
Menu SV_RESID_MENU_EDIT
{
- ItemList =
+ ItemList =
{
MenuItem
{
- Identifier = SV_MENU_EDIT_UNDO ;
+ Identifier = SV_MENU_EDIT_UNDO ;
Text [ en-US ] = "~Undo" ;
};
- MenuItem { Separator = TRUE ; };
+ MenuItem { Separator = TRUE ; };
MenuItem
{
- Identifier = SV_MENU_EDIT_CUT ;
+ Identifier = SV_MENU_EDIT_CUT ;
Text [ en-US ] = "Cu~t" ;
};
MenuItem
{
- Identifier = SV_MENU_EDIT_COPY ;
+ Identifier = SV_MENU_EDIT_COPY ;
Text [ en-US ] = "~Copy" ;
};
MenuItem
{
- Identifier = SV_MENU_EDIT_PASTE ;
+ Identifier = SV_MENU_EDIT_PASTE ;
Text [ en-US ] = "~Paste" ;
};
MenuItem
{
- Identifier = SV_MENU_EDIT_DELETE ;
+ Identifier = SV_MENU_EDIT_DELETE ;
Text [ en-US ] = "~Delete" ;
};
- MenuItem { Separator = TRUE ; };
+ MenuItem { Separator = TRUE ; };
MenuItem
{
- Identifier = SV_MENU_EDIT_SELECTALL ;
+ Identifier = SV_MENU_EDIT_SELECTALL ;
Text [ en-US ] = "Select ~All" ;
};
- MenuItem { Separator = TRUE ; };
+ MenuItem { Separator = TRUE ; };
MenuItem
{
Identifier = SV_MENU_EDIT_INSERTSYMBOL;
Text [ en-US ] = "~Special Character...";
-
+
};
};
};
diff --git a/vcl/source/src/print.src b/vcl/source/src/print.src
index 58f0a477c848..34519022560b 100644
--- a/vcl/source/src/print.src
+++ b/vcl/source/src/print.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,9 +35,9 @@ ModalDialog SV_DLG_PRINT
Moveable = TRUE;
Maxable = TRUE;
SVLook = TRUE;
-
+
Size = MAP_APPFONT( 350, 215 );
-
+
OKButton SV_PRINT_OK
{
DefButton = TRUE;
@@ -55,7 +55,7 @@ ModalDialog SV_DLG_PRINT
Pos = MAP_APPFONT( 5, 5 );
Size = MAP_APPFONT( 50, 15 );
};
-
+
Window SV_PRINT_PAGE_PREVIEW
{
Pos = MAP_APPFONT( 5, 5 );
@@ -114,7 +114,7 @@ ModalDialog SV_DLG_PRINT
{
Text [en-US] = "Default printer";
};
-
+
String SV_PRINT_PRINTPREVIEW_TXT
{
@@ -125,7 +125,7 @@ ModalDialog SV_DLG_PRINT
{
Text [en-US] = "Page Layout";
Hide = TRUE;
-
+
FixedLine SV_PRINT_PRT_NUP_LAYOUT_FL
{
Pos = MAP_APPFONT( 5, 5 );
@@ -300,12 +300,12 @@ ModalDialog SV_DLG_PRINT
HelpText [en-US] = "Check to draw a border around each page.";
};
};
-
+
TabPage SV_PRINT_TAB_JOB
{
Text [en-US] = "General";
Hide = TRUE;
-
+
FixedLine SV_PRINT_PRINTERS_FL
{
Pos = MAP_APPFONT( 5, 5 );
@@ -387,22 +387,22 @@ ModalDialog SV_DLG_PRINT
Text [en-US] = "Collate";
HelpText [en-US] = "Select whether copies should be collated or not.";
};
-
+
Image SV_PRINT_COLLATE_IMG
{
ImageBitmap = Bitmap { File = "collate.png" ; };
};
-
+
Image SV_PRINT_NOCOLLATE_IMG
{
ImageBitmap = Bitmap { File = "ncollate.png" ; };
};
-
+
Image SV_PRINT_COLLATE_HC_IMG
{
ImageBitmap = Bitmap { File = "collate_h.png" ; };
};
-
+
Image SV_PRINT_NOCOLLATE_HC_IMG
{
ImageBitmap = Bitmap { File = "ncollate_h.png" ; };
@@ -440,7 +440,7 @@ ModalDialog SV_DLG_PRINT
Size = MAP_APPFONT( 200, 12 );
Text [en-US] = "Print in ~reverse page order";
HelpText [en-US] = "Check to print pages in reverse order.";
- };
+ };
};
};
@@ -451,9 +451,9 @@ ModelessDialog SV_DLG_PRINT_PROGRESS
Sizeable = FALSE;
Moveable = TRUE;
SVLook = TRUE;
-
+
Size = MAP_APPFONT( 120, 70 );
-
+
CancelButton SV_PRINT_PROGRESS_CANCEL
{
Pos = MAP_APPFONT( 35, 50 );
diff --git a/vcl/source/src/stdtext.src b/vcl/source/src/stdtext.src
index 2c6574220a5f..90787a620e14 100644
--- a/vcl/source/src/stdtext.src
+++ b/vcl/source/src/stdtext.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/src/units.src b/vcl/source/src/units.src
index 0a680fcb1913..aff92ad105b5 100644
--- a/vcl/source/src/units.src
+++ b/vcl/source/src/units.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/abstdlg.cxx b/vcl/source/window/abstdlg.cxx
index 641686756b74..e334cc37ac48 100644
--- a/vcl/source/window/abstdlg.cxx
+++ b/vcl/source/window/abstdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/accel.cxx b/vcl/source/window/accel.cxx
index 9c310a914c2d..96f9f2023171 100644
--- a/vcl/source/window/accel.cxx
+++ b/vcl/source/window/accel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,15 +43,15 @@
DECLARE_TABLE( ImplAccelTable, ImplAccelEntry* )
DECLARE_LIST( ImplAccelList, ImplAccelEntry* )
-#define ACCELENTRY_NOTFOUND ((USHORT)0xFFFF)
+#define ACCELENTRY_NOTFOUND ((USHORT)0xFFFF)
// =======================================================================
class ImplAccelData
{
public:
- ImplAccelTable maKeyTable; // Fuer KeyCodes, die mit einem Code erzeugt wurden
- ImplAccelList maIdList; // Id-List
+ ImplAccelTable maKeyTable; // Fuer KeyCodes, die mit einem Code erzeugt wurden
+ ImplAccelList maIdList; // Id-List
};
// =======================================================================
@@ -63,11 +63,11 @@ DBG_NAME( Accelerator )
USHORT ImplAccelEntryGetIndex( ImplAccelList* pList, USHORT nId,
USHORT* pIndex = NULL )
{
- ULONG nLow;
- ULONG nHigh;
- ULONG nMid;
- ULONG nCount = pList->Count();
- USHORT nCompareId;
+ ULONG nLow;
+ ULONG nHigh;
+ ULONG nMid;
+ ULONG nCount = pList->Count();
+ USHORT nCompareId;
// Abpruefen, ob der erste Key groesser als der Vergleichskey ist
if ( !nCount || (nId < pList->GetObject( 0 )->mnId) )
@@ -111,8 +111,8 @@ USHORT ImplAccelEntryGetIndex( ImplAccelList* pList, USHORT nId,
static void ImplAccelEntryInsert( ImplAccelList* pList, ImplAccelEntry* pEntry )
{
- USHORT nInsIndex;
- USHORT nIndex = ImplAccelEntryGetIndex( pList, pEntry->mnId, &nInsIndex );
+ USHORT nInsIndex;
+ USHORT nIndex = ImplAccelEntryGetIndex( pList, pEntry->mnId, &nInsIndex );
if ( nIndex != ACCELENTRY_NOTFOUND )
{
@@ -156,10 +156,10 @@ static USHORT ImplAccelEntryGetFirstPos( ImplAccelList* pList, USHORT nId )
void Accelerator::ImplInit()
{
- mnCurId = 0;
- mnCurRepeat = 0;
- mbIsCancel = FALSE;
- mpDel = NULL;
+ mnCurId = 0;
+ mnCurRepeat = 0;
+ mbIsCancel = FALSE;
+ mpDel = NULL;
}
// -----------------------------------------------------------------------
@@ -245,12 +245,12 @@ void Accelerator::ImplInsertAccel( USHORT nItemId, const KeyCode& rKeyCode,
}
// Neuen Eintrag holen und fuellen
- ImplAccelEntry* pEntry = new ImplAccelEntry;
- pEntry->mnId = nItemId;
- pEntry->maKeyCode = rKeyCode;
- pEntry->mpAccel = pAutoAccel;
- pEntry->mpAutoAccel = pAutoAccel;
- pEntry->mbEnabled = bEnable;
+ ImplAccelEntry* pEntry = new ImplAccelEntry;
+ pEntry->mnId = nItemId;
+ pEntry->maKeyCode = rKeyCode;
+ pEntry->mpAccel = pAutoAccel;
+ pEntry->mpAutoAccel = pAutoAccel;
+ pEntry->mbEnabled = bEnable;
// Ab in die Tabellen
ULONG nCode = rKeyCode.GetFullKeyCode();
@@ -369,16 +369,16 @@ void Accelerator::InsertItem( const ResId& rResId )
{
DBG_CHKTHIS( Accelerator, NULL );
- ULONG nObjMask;
- USHORT nAccelKeyId;
- USHORT bDisable;
- KeyCode aKeyCode;
- Accelerator* pAutoAccel = NULL;
+ ULONG nObjMask;
+ USHORT nAccelKeyId;
+ USHORT bDisable;
+ KeyCode aKeyCode;
+ Accelerator* pAutoAccel = NULL;
GetRes( rResId.SetRT( RSC_ACCELITEM ) );
- nObjMask = ReadLongRes();
- nAccelKeyId = sal::static_int_cast<USHORT>(ReadLongRes());
- bDisable = ReadShortRes();
+ nObjMask = ReadLongRes();
+ nAccelKeyId = sal::static_int_cast<USHORT>(ReadLongRes());
+ bDisable = ReadShortRes();
if ( nObjMask & ACCELITEM_KEY )
{
@@ -565,16 +565,16 @@ BOOL Accelerator::Call( const KeyCode& rKeyCode, USHORT nRepeat )
if ( pEntry->mbEnabled )
{
BOOL bDel = FALSE;
- mnCurId = pEntry->mnId;
- maCurKeyCode = rKeyCode;
- mnCurRepeat = nRepeat;
- mpDel = &bDel;
+ mnCurId = pEntry->mnId;
+ maCurKeyCode = rKeyCode;
+ mnCurRepeat = nRepeat;
+ mpDel = &bDel;
Select();
if ( !bDel )
{
- mnCurId = 0;
- maCurKeyCode = KeyCode();
- mnCurRepeat = 0;
+ mnCurId = 0;
+ maCurKeyCode = KeyCode();
+ mnCurRepeat = 0;
}
return TRUE;
@@ -712,11 +712,11 @@ Accelerator& Accelerator::operator=( const Accelerator& rAccel )
DBG_CHKOBJ( &rAccel, Accelerator, NULL );
// Neue Daten zuweisen
- maHelpStr = rAccel.maHelpStr;
- maCurKeyCode = KeyCode();
- mnCurId = 0;
- mnCurRepeat = 0;
- mbIsCancel = FALSE;
+ maHelpStr = rAccel.maHelpStr;
+ maCurKeyCode = KeyCode();
+ mnCurId = 0;
+ mnCurRepeat = 0;
+ mbIsCancel = FALSE;
// Tabellen loeschen und kopieren
ImplDeleteData();
diff --git a/vcl/source/window/accmgr.cxx b/vcl/source/window/accmgr.cxx
index b9baf849f211..09838342dacf 100644
--- a/vcl/source/window/accmgr.cxx
+++ b/vcl/source/window/accmgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ void ImplAccelManager::RemoveAccel( Accelerator* pAccel )
//e.g. #i90599#. Someone starts typing a sequence in a dialog, but doesn't
//end it, and then closes the dialog, deleting the accelerators. So if
//we're removing an accelerator that a sub-accelerator which is in the
- //sequence list, throw away the entire sequence
+ //sequence list, throw away the entire sequence
if ( mpSequenceList )
{
for (USHORT i = 0; i < pAccel->GetItemCount(); ++i)
diff --git a/vcl/source/window/arrange.cxx b/vcl/source/window/arrange.cxx
index 88e9af2b9f1c..28658806bc3a 100644
--- a/vcl/source/window/arrange.cxx
+++ b/vcl/source/window/arrange.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,7 +54,7 @@ void WindowArranger::setParent( WindowArranger* i_pParent )
void WindowArranger::setParentWindow( Window* i_pNewParent )
{
m_pParentWindow = i_pNewParent;
-
+
size_t nEle = countElements();
for( size_t i = 0; i < nEle; i++ )
{
@@ -168,7 +168,7 @@ Size WindowArranger::Element::getOptimalSize( WindowSizeType i_eType ) const
aResult.Width() += m_nLeftBorder + m_nRightBorder;
aResult.Height() += m_nTopBorder + m_nBottomBorder;
}
-
+
return aResult;
}
@@ -237,7 +237,7 @@ Size RowOrColumn::getOptimalSize( WindowSizeType i_eType ) const
aRet.Height() -= m_nBorderWidth;
else
aRet.Width() -= m_nBorderWidth;
-
+
// add the outer border
aRet.Width() += 2*m_nOuterBorder;
aRet.Height() += 2*m_nOuterBorder;
@@ -268,7 +268,7 @@ void RowOrColumn::distributeRowWidth( std::vector<Size>& io_rSizes, long /*i_nUs
aIndices.push_back( i );
}
}
-
+
// distribute extra space evenly among collected elements
nElements = aIndices.size();
if( nElements > 0 )
@@ -308,7 +308,7 @@ void RowOrColumn::distributeColumnHeight( std::vector<Size>& io_rSizes, long /*i
aIndices.push_back( i );
}
}
-
+
// distribute extra space evenly among collected elements
nElements = aIndices.size();
if( nElements > 0 )
@@ -498,7 +498,7 @@ void LabeledElement::resize()
Size aElementSize( m_aElement.getOptimalSize( WINDOWSIZE_PREFERRED ) );
if( m_nDistance + aLabelSize.Width() + aElementSize.Width() > m_aManagedArea.GetWidth() )
aElementSize = m_aElement.getOptimalSize( WINDOWSIZE_MINIMUM );
-
+
// align label and element vertically in LabeledElement
long nYOff = (m_aManagedArea.GetHeight() - 2*m_nOuterBorder - aLabelSize.Height()) / 2;
Point aPos( m_aManagedArea.Left(),
@@ -507,13 +507,13 @@ void LabeledElement::resize()
if( m_nLabelColumnWidth != 0 )
aSize.Width() = m_nLabelColumnWidth;
m_aLabel.setPosSize( aPos, aSize );
-
+
aPos.X() += aSize.Width() + m_nDistance;
nYOff = (m_aManagedArea.GetHeight() - 2*m_nOuterBorder - aElementSize.Height()) / 2;
aPos.Y() = m_aManagedArea.Top() + m_nOuterBorder + nYOff;
aSize.Width() = aElementSize.Width();
aSize.Height() = m_aManagedArea.GetHeight() - 2*m_nOuterBorder;
-
+
// label style
// 0: position left and right
// 1: keep the element close to label and grow it
@@ -592,7 +592,7 @@ Size LabelColumn::getOptimalSize( WindowSizeType i_eType ) const
{
long nWidth = getLabelWidth();
Size aColumnSize;
-
+
// every child is a LabeledElement
size_t nEle = countElements();
for( size_t i = 0; i < nEle; i++ )
@@ -629,7 +629,7 @@ Size LabelColumn::getOptimalSize( WindowSizeType i_eType ) const
}
if( aElementSize.Height() )
{
- aColumnSize.Height() += getBorderWidth() + aElementSize.Height();
+ aColumnSize.Height() += getBorderWidth() + aElementSize.Height();
}
}
if( nEle > 0 && aColumnSize.Height() )
@@ -732,7 +732,7 @@ MatrixArranger::~MatrixArranger()
Size MatrixArranger::getOptimalSize( WindowSizeType i_eType, std::vector<long>& o_rColumnWidths, std::vector<long>& o_rRowHeights ) const
{
Size aMatrixSize( 2*m_nOuterBorder, 2*m_nOuterBorder );
-
+
// first find out the current number of rows and columns
sal_uInt32 nRows = 0, nColumns = 0;
for( std::vector< MatrixElement >::const_iterator it = m_aElements.begin();
@@ -743,11 +743,11 @@ Size MatrixArranger::getOptimalSize( WindowSizeType i_eType, std::vector<long>&
if( it->m_nY >= nRows )
nRows = it->m_nY+1;
}
-
+
// now allocate row and column depth vectors
o_rColumnWidths = std::vector< long >( nColumns, 0 );
o_rRowHeights = std::vector< long >( nRows, 0 );
-
+
// get sizes an allocate them into rows/columns
for( std::vector< MatrixElement >::const_iterator it = m_aElements.begin();
it != m_aElements.end(); ++it )
@@ -758,18 +758,18 @@ Size MatrixArranger::getOptimalSize( WindowSizeType i_eType, std::vector<long>&
if( aSize.Height() > o_rRowHeights[ it->m_nY ] )
o_rRowHeights[ it->m_nY ] = aSize.Height();
}
-
+
// add up sizes
for( sal_uInt32 i = 0; i < nColumns; i++ )
aMatrixSize.Width() += o_rColumnWidths[i] + m_nBorderX;
if( nColumns > 0 )
aMatrixSize.Width() -= m_nBorderX;
-
+
for( sal_uInt32 i = 0; i < nRows; i++ )
aMatrixSize.Height() += o_rRowHeights[i] + m_nBorderY;
if( nRows > 0 )
aMatrixSize.Height() -= m_nBorderY;
-
+
return aMatrixSize;
}
@@ -784,7 +784,7 @@ void MatrixArranger::resize()
// assure that we have at least one row and column
if( m_aElements.empty() )
return;
-
+
// check if we can get optimal size, else fallback to minimal size
std::vector<long> aColumnWidths, aRowHeights;
Size aOptSize( getOptimalSize( WINDOWSIZE_PREFERRED, aColumnWidths, aRowHeights ) );
@@ -798,20 +798,20 @@ void MatrixArranger::resize()
if( aOptSize.Width() > m_aManagedArea.GetWidth() )
aColumnWidths = aMinColumnWidths;
}
-
+
// FIXME: distribute extra space available
-
+
// prepare offsets
std::vector<long> aColumnX( aColumnWidths.size() );
aColumnX[0] = m_aManagedArea.Left() + m_nOuterBorder;
for( size_t i = 1; i < aColumnX.size(); i++ )
aColumnX[i] = aColumnX[i-1] + aColumnWidths[i-1] + m_nBorderX;
-
+
std::vector<long> aRowY( aRowHeights.size() );
aRowY[0] = m_aManagedArea.Top() + m_nOuterBorder;
for( size_t i = 1; i < aRowY.size(); i++ )
aRowY[i] = aRowY[i-1] + aRowHeights[i-1] + m_nBorderY;
-
+
// now iterate over the elements and assign their positions
for( std::vector< MatrixElement >::iterator it = m_aElements.begin();
it != m_aElements.end(); ++it )
diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index ebb63f07b11b..1e3c99b3bce2 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,10 +103,10 @@ void Window::ImplCalcSymbolRect( Rectangle& rRect )
// Zwischen dem Symbol und dem Button-Rand lassen wir 5% Platz
long nExtraWidth = ((rRect.GetWidth()*50)+500)/1000;
long nExtraHeight = ((rRect.GetHeight()*50)+500)/1000;
- rRect.Left() += nExtraWidth;
- rRect.Right() -= nExtraWidth;
- rRect.Top() += nExtraHeight;
- rRect.Bottom() -= nExtraHeight;
+ rRect.Left() += nExtraWidth;
+ rRect.Right() -= nExtraWidth;
+ rRect.Top() += nExtraHeight;
+ rRect.Bottom() -= nExtraHeight;
}
// -----------------------------------------------------------------------
@@ -115,8 +115,8 @@ static void ImplDrawBrdWinSymbol( OutputDevice* pDev,
const Rectangle& rRect, SymbolType eSymbol )
{
// Zwischen dem Symbol und dem Button lassen wir 5% Platz
- DecorationView aDecoView( pDev );
- Rectangle aTempRect = rRect;
+ DecorationView aDecoView( pDev );
+ Rectangle aTempRect = rRect;
Window::ImplCalcSymbolRect( aTempRect );
aDecoView.DrawSymbol( aTempRect, eSymbol,
pDev->GetSettings().GetStyleSettings().GetButtonTextColor(), 0 );
@@ -213,7 +213,7 @@ void ImplBorderWindowView::ImplInitTitle( ImplBorderFrameData* pData )
if ( !(pBorderWindow->GetStyle() & (WB_MOVEABLE | WB_POPUP)) ||
(pData->mnTitleType == BORDERWINDOW_TITLE_NONE) )
{
- pData->mnTitleType = BORDERWINDOW_TITLE_NONE;
+ pData->mnTitleType = BORDERWINDOW_TITLE_NONE;
pData->mnTitleHeight = 0;
}
else
@@ -425,10 +425,10 @@ BOOL ImplBorderWindowView::ImplMouseButtonDown( ImplBorderFrameData* pData, cons
{
if ( bTracking )
{
- Point aPos = pBorderWindow->GetPosPixel();
- Size aSize = pBorderWindow->GetOutputSizePixel();
- pData->mnTrackX = aPos.X();
- pData->mnTrackY = aPos.Y();
+ Point aPos = pBorderWindow->GetPosPixel();
+ Size aSize = pBorderWindow->GetOutputSizePixel();
+ pData->mnTrackX = aPos.X();
+ pData->mnTrackY = aPos.Y();
pData->mnTrackWidth = aSize.Width();
pData->mnTrackHeight = aSize.Height();
@@ -781,8 +781,8 @@ BOOL ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const Track
{
/*
// adjusting mousepos not required, we allow the whole screen (no desktop anymore...)
- Point aFrameMousePos = pBorderWindow->ImplOutputToFrame( aMousePos );
- Size aFrameSize = pBorderWindow->ImplGetFrameWindow()->GetOutputSizePixel();
+ Point aFrameMousePos = pBorderWindow->ImplOutputToFrame( aMousePos );
+ Size aFrameSize = pBorderWindow->ImplGetFrameWindow()->GetOutputSizePixel();
if ( aFrameMousePos.X() < 0 )
aFrameMousePos.X() = 0;
if ( aFrameMousePos.Y() < 0 )
@@ -794,8 +794,8 @@ BOOL ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const Track
aMousePos = pBorderWindow->ImplFrameToOutput( aFrameMousePos );
*/
- aMousePos.X() -= pData->maMouseOff.X();
- aMousePos.Y() -= pData->maMouseOff.Y();
+ aMousePos.X() -= pData->maMouseOff.X();
+ aMousePos.Y() -= pData->maMouseOff.Y();
if ( pData->mnHitTest & BORDERWINDOW_HITTEST_TITLE )
{
@@ -819,18 +819,18 @@ BOOL ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const Track
}
else
{
- Point aOldPos = pBorderWindow->GetPosPixel();
- Size aSize = pBorderWindow->GetSizePixel();
- Rectangle aNewRect( aOldPos, aSize );
- long nOldWidth = aSize.Width();
- long nOldHeight = aSize.Height();
- long nBorderWidth = pData->mnLeftBorder+pData->mnRightBorder;
- long nBorderHeight = pData->mnTopBorder+pData->mnBottomBorder;
- long nMinWidth = pBorderWindow->mnMinWidth+nBorderWidth;
- long nMinHeight = pBorderWindow->mnMinHeight+nBorderHeight;
- long nMinWidth2 = nBorderWidth;
- long nMaxWidth = pBorderWindow->mnMaxWidth+nBorderWidth;
- long nMaxHeight = pBorderWindow->mnMaxHeight+nBorderHeight;
+ Point aOldPos = pBorderWindow->GetPosPixel();
+ Size aSize = pBorderWindow->GetSizePixel();
+ Rectangle aNewRect( aOldPos, aSize );
+ long nOldWidth = aSize.Width();
+ long nOldHeight = aSize.Height();
+ long nBorderWidth = pData->mnLeftBorder+pData->mnRightBorder;
+ long nBorderHeight = pData->mnTopBorder+pData->mnBottomBorder;
+ long nMinWidth = pBorderWindow->mnMinWidth+nBorderWidth;
+ long nMinHeight = pBorderWindow->mnMinHeight+nBorderHeight;
+ long nMinWidth2 = nBorderWidth;
+ long nMaxWidth = pBorderWindow->mnMaxWidth+nBorderWidth;
+ long nMaxHeight = pBorderWindow->mnMaxHeight+nBorderHeight;
if ( pData->mnTitleHeight )
{
@@ -879,11 +879,11 @@ BOOL ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const Track
{
// adjust size for Resizing-call
aSize = aNewRect.GetSize();
- aSize.Width() -= nBorderWidth;
- aSize.Height() -= nBorderHeight;
+ aSize.Width() -= nBorderWidth;
+ aSize.Height() -= nBorderHeight;
((SystemWindow*)pBorderWindow->ImplGetClientWindow())->Resizing( aSize );
- aSize.Width() += nBorderWidth;
- aSize.Height() += nBorderHeight;
+ aSize.Width() += nBorderWidth;
+ aSize.Height() += nBorderHeight;
if ( aSize.Width() < nMinWidth )
aSize.Width() = nMinWidth;
if ( aSize.Height() < nMinHeight )
@@ -921,8 +921,8 @@ BOOL ImplBorderWindowView::ImplTracking( ImplBorderFrameData* pData, const Track
}
else
{
- pData->mnTrackX = aNewRect.Left();
- pData->mnTrackY = aNewRect.Top();
+ pData->mnTrackX = aNewRect.Left();
+ pData->mnTrackY = aNewRect.Top();
pData->mnTrackWidth = aNewRect.GetWidth();
pData->mnTrackHeight = aNewRect.GetHeight();
pBorderWindow->ShowTracking( Rectangle( pBorderWindow->ScreenToOutputPixel( aNewRect.TopLeft() ), aNewRect.GetSize() ), SHOWTRACK_BIG );
@@ -947,8 +947,8 @@ String ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData,
{
if ( nHitTest & BORDERWINDOW_HITTEST_CLOSE )
{
- nHelpId = SV_HELPTEXT_CLOSE;
- rHelpRect = pData->maCloseRect;
+ nHelpId = SV_HELPTEXT_CLOSE;
+ rHelpRect = pData->maCloseRect;
}
else if ( nHitTest & BORDERWINDOW_HITTEST_ROLL )
{
@@ -956,33 +956,33 @@ String ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData,
nHelpId = SV_HELPTEXT_ROLLDOWN;
else
nHelpId = SV_HELPTEXT_ROLLUP;
- rHelpRect = pData->maRollRect;
+ rHelpRect = pData->maRollRect;
}
else if ( nHitTest & BORDERWINDOW_HITTEST_DOCK )
{
- nHelpId = SV_HELPTEXT_MAXIMIZE;
- rHelpRect = pData->maDockRect;
+ nHelpId = SV_HELPTEXT_MAXIMIZE;
+ rHelpRect = pData->maDockRect;
}
/* no help string available
else if ( nHitTest & BORDERWINDOW_HITTEST_MENU )
{
- nHelpId = SV_HELPTEXT_MENU;
- rHelpRect = pData->maMenuRect;
+ nHelpId = SV_HELPTEXT_MENU;
+ rHelpRect = pData->maMenuRect;
}*/
else if ( nHitTest & BORDERWINDOW_HITTEST_HIDE )
{
- nHelpId = SV_HELPTEXT_MINIMIZE;
- rHelpRect = pData->maHideRect;
+ nHelpId = SV_HELPTEXT_MINIMIZE;
+ rHelpRect = pData->maHideRect;
}
else if ( nHitTest & BORDERWINDOW_HITTEST_HELP )
{
- nHelpId = SV_HELPTEXT_HELP;
- rHelpRect = pData->maHelpRect;
+ nHelpId = SV_HELPTEXT_HELP;
+ rHelpRect = pData->maHelpRect;
}
else if ( nHitTest & BORDERWINDOW_HITTEST_PIN )
{
- nHelpId = SV_HELPTEXT_ALWAYSVISIBLE;
- rHelpRect = pData->maPinRect;
+ nHelpId = SV_HELPTEXT_ALWAYSVISIBLE;
+ rHelpRect = pData->maPinRect;
}
else if ( nHitTest & BORDERWINDOW_HITTEST_TITLE )
{
@@ -991,7 +991,7 @@ String ImplBorderWindowView::ImplRequestHelp( ImplBorderFrameData* pData,
// tooltip only if title truncated
if( pData->mbTitleClipped )
{
- rHelpRect = pData->maTitleRect;
+ rHelpRect = pData->maTitleRect;
// no help id, use window title as help string
aHelpStr = pData->mpBorderWindow->GetText();
}
@@ -1047,10 +1047,10 @@ void ImplNoBorderWindowView::Init( OutputDevice*, long, long )
void ImplNoBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const
{
- rLeftBorder = 0;
- rTopBorder = 0;
- rRightBorder = 0;
- rBottomBorder = 0;
+ rLeftBorder = 0;
+ rTopBorder = 0;
+ rRightBorder = 0;
+ rBottomBorder = 0;
}
// -----------------------------------------------------------------------
@@ -1083,18 +1083,18 @@ ImplSmallBorderWindowView::ImplSmallBorderWindowView( ImplBorderWindow* pBorderW
void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeight )
{
- mpOutDev = pDev;
- mnWidth = nWidth;
- mnHeight = nHeight;
+ mpOutDev = pDev;
+ mnWidth = nWidth;
+ mnHeight = nHeight;
mbNWFBorder = false;
USHORT nBorderStyle = mpBorderWindow->GetBorderStyle();
if ( nBorderStyle & WINDOW_BORDER_NOBORDER )
{
- mnLeftBorder = 0;
- mnTopBorder = 0;
- mnRightBorder = 0;
- mnBottomBorder = 0;
+ mnLeftBorder = 0;
+ mnTopBorder = 0;
+ mnRightBorder = 0;
+ mnBottomBorder = 0;
}
else
{
@@ -1107,7 +1107,7 @@ void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHei
Window *pWin = NULL, *pCtrl = NULL;
if( mpOutDev->GetOutDevType() == OUTDEV_WINDOW )
pWin = (Window*) mpOutDev;
-
+
ControlType aCtrlType = 0;
if( pWin && (pCtrl = mpBorderWindow->GetWindow( WINDOW_CLIENT )) != NULL )
{
@@ -1163,18 +1163,18 @@ void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHei
mnBottomBorder = aBounds.Bottom() - aContent.Bottom();
if( mnWidth && mnHeight )
{
-
+
mpBorderWindow->SetPaintTransparent( TRUE );
mpBorderWindow->SetBackground();
pCtrl->SetPaintTransparent( TRUE );
-
+
Window* pCompoundParent = NULL;
if( pWin->GetParent() && pWin->GetParent()->IsCompoundControl() )
pCompoundParent = pWin->GetParent();
-
+
if( pCompoundParent )
pCompoundParent->SetPaintTransparent( TRUE );
-
+
if( mnWidth < aBounds.GetWidth() || mnHeight < aBounds.GetHeight() )
{
if( ! pCompoundParent ) // compound controls have to fix themselves
@@ -1193,7 +1193,7 @@ void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHei
mbNWFBorder = false;
}
}
-
+
if( ! mbNWFBorder )
{
USHORT nStyle = FRAME_DRAW_NODRAW;
@@ -1205,14 +1205,14 @@ void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHei
nStyle |= FRAME_DRAW_DOUBLEIN;
if ( nBorderStyle & WINDOW_BORDER_MONO )
nStyle |= FRAME_DRAW_MONO;
-
- DecorationView aDecoView( mpOutDev );
- Rectangle aRect( 0, 0, 10, 10 );
- Rectangle aCalcRect = aDecoView.DrawFrame( aRect, nStyle );
- mnLeftBorder = aCalcRect.Left();
- mnTopBorder = aCalcRect.Top();
- mnRightBorder = aRect.Right()-aCalcRect.Right();
- mnBottomBorder = aRect.Bottom()-aCalcRect.Bottom();
+
+ DecorationView aDecoView( mpOutDev );
+ Rectangle aRect( 0, 0, 10, 10 );
+ Rectangle aCalcRect = aDecoView.DrawFrame( aRect, nStyle );
+ mnLeftBorder = aCalcRect.Left();
+ mnTopBorder = aCalcRect.Top();
+ mnRightBorder = aRect.Right()-aCalcRect.Right();
+ mnBottomBorder = aRect.Bottom()-aCalcRect.Bottom();
}
}
}
@@ -1222,10 +1222,10 @@ void ImplSmallBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHei
void ImplSmallBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const
{
- rLeftBorder = mnLeftBorder;
- rTopBorder = mnTopBorder;
- rRightBorder = mnRightBorder;
- rBottomBorder = mnBottomBorder;
+ rLeftBorder = mnLeftBorder;
+ rTopBorder = mnTopBorder;
+ rRightBorder = mnRightBorder;
+ rBottomBorder = mnBottomBorder;
}
// -----------------------------------------------------------------------
@@ -1291,12 +1291,12 @@ void ImplSmallBorderWindowView::DrawWindow( USHORT nDrawFlags, OutputDevice*, co
break;
case WINDOW_COMBOBOX:
- case WINDOW_PATTERNBOX:
- case WINDOW_NUMERICBOX:
- case WINDOW_METRICBOX:
+ case WINDOW_PATTERNBOX:
+ case WINDOW_NUMERICBOX:
+ case WINDOW_METRICBOX:
case WINDOW_CURRENCYBOX:
- case WINDOW_DATEBOX:
- case WINDOW_TIMEBOX:
+ case WINDOW_DATEBOX:
+ case WINDOW_TIMEBOX:
case WINDOW_LONGCURRENCYBOX:
if( pCtrl->GetStyle() & WB_DROPDOWN )
{
@@ -1314,7 +1314,7 @@ void ImplSmallBorderWindowView::DrawWindow( USHORT nDrawFlags, OutputDevice*, co
break;
}
}
-
+
if ( aCtrlType && pCtrl->IsNativeControlSupported(aCtrlType, aCtrlPart) )
{
ImplControlValue aControlValue;
@@ -1333,18 +1333,18 @@ void ImplSmallBorderWindowView::DrawWindow( USHORT nDrawFlags, OutputDevice*, co
if( pCtrl->HasFocus() || pCtrl->HasChildPathFocus() )
nState |= CTRL_STATE_FOCUSED;
}
-
+
BOOL bMouseOver = FALSE;
Window *pCtrlChild = pCtrl->GetWindow( WINDOW_FIRSTCHILD );
while( pCtrlChild && (bMouseOver = pCtrlChild->IsMouseOver()) == FALSE )
pCtrlChild = pCtrlChild->GetWindow( WINDOW_NEXT );
-
+
if( bMouseOver )
nState |= CTRL_STATE_ROLLOVER;
Point aPoint;
Rectangle aCtrlRegion( aPoint, Size( mnWidth, mnHeight ) );
-
+
Rectangle aBoundingRgn( aPoint, Size( mnWidth, mnHeight ) );
Rectangle aContentRgn( aCtrlRegion );
if( ! ImplGetSVData()->maNWFData.mbCanDrawWidgetAnySize &&
@@ -1354,7 +1354,7 @@ void ImplSmallBorderWindowView::DrawWindow( USHORT nDrawFlags, OutputDevice*, co
{
aCtrlRegion=aContentRgn;
}
-
+
bNativeOK = pWin->DrawNativeControl( aCtrlType, aCtrlPart, aCtrlRegion, nState,
aControlValue, rtl::OUString() );
@@ -1398,11 +1398,11 @@ void ImplSmallBorderWindowView::DrawWindow( USHORT nDrawFlags, OutputDevice*, co
nStyle |= FRAME_DRAW_MENU;
// tell DrawFrame that we're drawing a window border of a frame window to avoid round corners
if( pWin && pWin == pWin->ImplGetFrameWindow() )
- nStyle |= FRAME_DRAW_WINDOWBORDER;
+ nStyle |= FRAME_DRAW_WINDOWBORDER;
- DecorationView aDecoView( mpOutDev );
- Point aTmpPoint;
- Rectangle aInRect( aTmpPoint, Size( mnWidth, mnHeight ) );
+ DecorationView aDecoView( mpOutDev );
+ Point aTmpPoint;
+ Rectangle aInRect( aTmpPoint, Size( mnWidth, mnHeight ) );
aDecoView.DrawFrame( aInRect, nStyle );
}
}
@@ -1416,20 +1416,20 @@ void ImplSmallBorderWindowView::DrawWindow( USHORT nDrawFlags, OutputDevice*, co
ImplStdBorderWindowView::ImplStdBorderWindowView( ImplBorderWindow* pBorderWindow )
{
- maFrameData.mpBorderWindow = pBorderWindow;
- maFrameData.mbDragFull = FALSE;
- maFrameData.mnHitTest = 0;
- maFrameData.mnPinState = 0;
- maFrameData.mnCloseState = 0;
- maFrameData.mnRollState = 0;
- maFrameData.mnDockState = 0;
- maFrameData.mnMenuState = 0;
- maFrameData.mnHideState = 0;
- maFrameData.mnHelpState = 0;
- maFrameData.mbTitleClipped = 0;
+ maFrameData.mpBorderWindow = pBorderWindow;
+ maFrameData.mbDragFull = FALSE;
+ maFrameData.mnHitTest = 0;
+ maFrameData.mnPinState = 0;
+ maFrameData.mnCloseState = 0;
+ maFrameData.mnRollState = 0;
+ maFrameData.mnDockState = 0;
+ maFrameData.mnMenuState = 0;
+ maFrameData.mnHideState = 0;
+ maFrameData.mnHelpState = 0;
+ maFrameData.mbTitleClipped = 0;
- mpATitleVirDev = NULL;
- mpDTitleVirDev = NULL;
+ mpATitleVirDev = NULL;
+ mpDTitleVirDev = NULL;
}
// -----------------------------------------------------------------------
@@ -1481,19 +1481,19 @@ Rectangle ImplStdBorderWindowView::GetMenuRect() const
void ImplStdBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeight )
{
- ImplBorderFrameData* pData = &maFrameData;
- ImplBorderWindow* pBorderWindow = maFrameData.mpBorderWindow;
- const StyleSettings& rStyleSettings = pDev->GetSettings().GetStyleSettings();
- DecorationView aDecoView( pDev );
- Rectangle aRect( 0, 0, 10, 10 );
- Rectangle aCalcRect = aDecoView.DrawFrame( aRect, FRAME_DRAW_DOUBLEOUT | FRAME_DRAW_NODRAW );
+ ImplBorderFrameData* pData = &maFrameData;
+ ImplBorderWindow* pBorderWindow = maFrameData.mpBorderWindow;
+ const StyleSettings& rStyleSettings = pDev->GetSettings().GetStyleSettings();
+ DecorationView aDecoView( pDev );
+ Rectangle aRect( 0, 0, 10, 10 );
+ Rectangle aCalcRect = aDecoView.DrawFrame( aRect, FRAME_DRAW_DOUBLEOUT | FRAME_DRAW_NODRAW );
- pData->mpOutDev = pDev;
- pData->mnWidth = nWidth;
- pData->mnHeight = nHeight;
+ pData->mpOutDev = pDev;
+ pData->mnWidth = nWidth;
+ pData->mnHeight = nHeight;
- pData->mnTitleType = pBorderWindow->mnTitleType;
- pData->mbFloatWindow = pBorderWindow->mbFloatWindow;
+ pData->mnTitleType = pBorderWindow->mnTitleType;
+ pData->mbFloatWindow = pBorderWindow->mbFloatWindow;
if ( !(pBorderWindow->GetStyle() & (WB_MOVEABLE | WB_POPUP)) || (pData->mnTitleType == BORDERWINDOW_TITLE_NONE) )
pData->mnBorderSize = 0;
@@ -1501,15 +1501,15 @@ void ImplStdBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeigh
pData->mnBorderSize = 0;
else
pData->mnBorderSize = rStyleSettings.GetBorderSize();
- pData->mnLeftBorder = aCalcRect.Left();
- pData->mnTopBorder = aCalcRect.Top();
- pData->mnRightBorder = aRect.Right()-aCalcRect.Right();
- pData->mnBottomBorder = aRect.Bottom()-aCalcRect.Bottom();
+ pData->mnLeftBorder = aCalcRect.Left();
+ pData->mnTopBorder = aCalcRect.Top();
+ pData->mnRightBorder = aRect.Right()-aCalcRect.Right();
+ pData->mnBottomBorder = aRect.Bottom()-aCalcRect.Bottom();
pData->mnLeftBorder += pData->mnBorderSize;
- pData->mnTopBorder += pData->mnBorderSize;
+ pData->mnTopBorder += pData->mnBorderSize;
pData->mnRightBorder += pData->mnBorderSize;
pData->mnBottomBorder += pData->mnBorderSize;
- pData->mnNoTitleTop = pData->mnTopBorder;
+ pData->mnNoTitleTop = pData->mnTopBorder;
ImplInitTitle( &maFrameData );
if ( pData->mnTitleHeight )
@@ -1522,27 +1522,27 @@ void ImplStdBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeigh
// highlighted buttons in the title
pBorderWindow->SetBackground( rStyleSettings.GetFaceColor() );
- pData->maTitleRect.Left() = pData->mnLeftBorder;
- pData->maTitleRect.Right() = nWidth-pData->mnRightBorder-1;
- pData->maTitleRect.Top() = pData->mnTopBorder;
+ pData->maTitleRect.Left() = pData->mnLeftBorder;
+ pData->maTitleRect.Right() = nWidth-pData->mnRightBorder-1;
+ pData->maTitleRect.Top() = pData->mnTopBorder;
pData->maTitleRect.Bottom() = pData->maTitleRect.Top()+pData->mnTitleHeight-1;
if ( pData->mnTitleType & (BORDERWINDOW_TITLE_NORMAL | BORDERWINDOW_TITLE_SMALL) )
{
- long nLeft = pData->maTitleRect.Left();
- long nRight = pData->maTitleRect.Right();
- long nItemTop = pData->maTitleRect.Top();
- long nItemBottom = pData->maTitleRect.Bottom();
- nLeft += 1;
- nRight -= 3;
- nItemTop += 2;
- nItemBottom -= 2;
+ long nLeft = pData->maTitleRect.Left();
+ long nRight = pData->maTitleRect.Right();
+ long nItemTop = pData->maTitleRect.Top();
+ long nItemBottom = pData->maTitleRect.Bottom();
+ nLeft += 1;
+ nRight -= 3;
+ nItemTop += 2;
+ nItemBottom -= 2;
if ( pBorderWindow->GetStyle() & WB_PINABLE )
{
Image aImage;
ImplGetPinImage( 0, 0, aImage );
- pData->maPinRect.Top() = nItemTop;
+ pData->maPinRect.Top() = nItemTop;
pData->maPinRect.Bottom() = nItemBottom;
pData->maPinRect.Left() = nLeft;
pData->maPinRect.Right() = pData->maPinRect.Left()+aImage.GetSizePixel().Width();
@@ -1551,10 +1551,10 @@ void ImplStdBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeigh
if ( pBorderWindow->GetStyle() & WB_CLOSEABLE )
{
- pData->maCloseRect.Top() = nItemTop;
+ pData->maCloseRect.Top() = nItemTop;
pData->maCloseRect.Bottom() = nItemBottom;
- pData->maCloseRect.Right() = nRight;
- pData->maCloseRect.Left() = pData->maCloseRect.Right()-pData->maCloseRect.GetHeight()+1;
+ pData->maCloseRect.Right() = nRight;
+ pData->maCloseRect.Left() = pData->maCloseRect.Right()-pData->maCloseRect.GetHeight()+1;
nRight -= pData->maCloseRect.GetWidth()+3;
}
@@ -1619,7 +1619,7 @@ void ImplStdBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeigh
pData->maHelpRect.SetEmpty();
}
- pData->mnTopBorder += pData->mnTitleHeight;
+ pData->mnTopBorder += pData->mnTitleHeight;
}
else
{
@@ -1639,10 +1639,10 @@ void ImplStdBorderWindowView::Init( OutputDevice* pDev, long nWidth, long nHeigh
void ImplStdBorderWindowView::GetBorder( sal_Int32& rLeftBorder, sal_Int32& rTopBorder,
sal_Int32& rRightBorder, sal_Int32& rBottomBorder ) const
{
- rLeftBorder = maFrameData.mnLeftBorder;
- rTopBorder = maFrameData.mnTopBorder;
- rRightBorder = maFrameData.mnRightBorder;
- rBottomBorder = maFrameData.mnBottomBorder;
+ rLeftBorder = maFrameData.mnLeftBorder;
+ rTopBorder = maFrameData.mnTopBorder;
+ rRightBorder = maFrameData.mnRightBorder;
+ rBottomBorder = maFrameData.mnBottomBorder;
}
// -----------------------------------------------------------------------
@@ -1656,13 +1656,13 @@ long ImplStdBorderWindowView::CalcTitleWidth() const
void ImplStdBorderWindowView::DrawWindow( USHORT nDrawFlags, OutputDevice* pOutDev, const Point* pOffset )
{
- ImplBorderFrameData* pData = &maFrameData;
- OutputDevice* pDev = pOutDev ? pOutDev : pData->mpOutDev;
- ImplBorderWindow* pBorderWindow = pData->mpBorderWindow;
- Point aTmpPoint = pOffset ? Point(*pOffset) : Point();
- Rectangle aInRect( aTmpPoint, Size( pData->mnWidth, pData->mnHeight ) );
- const StyleSettings& rStyleSettings = pData->mpOutDev->GetSettings().GetStyleSettings();
- DecorationView aDecoView( pDev );
+ ImplBorderFrameData* pData = &maFrameData;
+ OutputDevice* pDev = pOutDev ? pOutDev : pData->mpOutDev;
+ ImplBorderWindow* pBorderWindow = pData->mpBorderWindow;
+ Point aTmpPoint = pOffset ? Point(*pOffset) : Point();
+ Rectangle aInRect( aTmpPoint, Size( pData->mnWidth, pData->mnHeight ) );
+ const StyleSettings& rStyleSettings = pData->mpOutDev->GetSettings().GetStyleSettings();
+ DecorationView aDecoView( pDev );
Color aFaceColor( rStyleSettings.GetFaceColor() );
Color aFrameColor( aFaceColor );
@@ -1740,7 +1740,7 @@ void ImplStdBorderWindowView::DrawWindow( USHORT nDrawFlags, OutputDevice* pOutD
if ( pData->mnTitleType != BORDERWINDOW_TITLE_TEAROFF )
{
- aInRect.Left() += 2;
+ aInRect.Left() += 2;
aInRect.Right() -= 2;
if ( !pData->maPinRect.IsEmpty() )
@@ -1870,8 +1870,8 @@ void ImplBorderWindow::ImplInit( Window* pParent,
nTestStyle |= WB_APP;
nStyle &= nTestStyle;
- mpWindowImpl->mbBorderWin = TRUE;
- mbSmallOutBorder = FALSE;
+ mpWindowImpl->mbBorderWin = TRUE;
+ mbSmallOutBorder = FALSE;
if ( nTypeStyle & BORDERWINDOW_STYLE_FRAME )
{
if( (nStyle & WB_SYSTEMCHILDWINDOW) )
@@ -1882,15 +1882,15 @@ void ImplBorderWindow::ImplInit( Window* pParent,
}
else if( (nStyle & (WB_OWNERDRAWDECORATION | WB_POPUP)) )
{
- mpWindowImpl->mbOverlapWin = TRUE;
- mpWindowImpl->mbFrame = TRUE;
- mbFrameBorder = (nOrgStyle & WB_NOBORDER) ? FALSE : TRUE;
+ mpWindowImpl->mbOverlapWin = TRUE;
+ mpWindowImpl->mbFrame = TRUE;
+ mbFrameBorder = (nOrgStyle & WB_NOBORDER) ? FALSE : TRUE;
}
else
{
- mpWindowImpl->mbOverlapWin = TRUE;
- mpWindowImpl->mbFrame = TRUE;
- mbFrameBorder = FALSE;
+ mpWindowImpl->mbOverlapWin = TRUE;
+ mpWindowImpl->mbFrame = TRUE;
+ mbFrameBorder = FALSE;
// closeable windows may have a border as well, eg. system floating windows without caption
if ( (nOrgStyle & (WB_BORDER | WB_NOBORDER | WB_MOVEABLE | WB_SIZEABLE/* | WB_CLOSEABLE*/)) == WB_BORDER )
mbSmallOutBorder = TRUE;
@@ -1898,11 +1898,11 @@ void ImplBorderWindow::ImplInit( Window* pParent,
}
else if ( nTypeStyle & BORDERWINDOW_STYLE_OVERLAP )
{
- mpWindowImpl->mbOverlapWin = TRUE;
- mbFrameBorder = TRUE;
+ mpWindowImpl->mbOverlapWin = TRUE;
+ mbFrameBorder = TRUE;
}
else
- mbFrameBorder = FALSE;
+ mbFrameBorder = FALSE;
if ( nTypeStyle & BORDERWINDOW_STYLE_FLOAT )
mbFloatWindow = TRUE;
@@ -1914,26 +1914,26 @@ void ImplBorderWindow::ImplInit( Window* pParent,
SetTextFillColor();
mpMenuBarWindow = NULL;
- mnMinWidth = 0;
- mnMinHeight = 0;
- mnMaxWidth = SHRT_MAX;
- mnMaxHeight = SHRT_MAX;
- mnRollHeight = 0;
+ mnMinWidth = 0;
+ mnMinHeight = 0;
+ mnMaxWidth = SHRT_MAX;
+ mnMaxHeight = SHRT_MAX;
+ mnRollHeight = 0;
mnOrgMenuHeight = 0;
- mbPined = FALSE;
- mbRollUp = FALSE;
- mbMenuHide = FALSE;
- mbDockBtn = FALSE;
- mbMenuBtn = FALSE;
- mbHideBtn = FALSE;
- mbHelpBtn = FALSE;
+ mbPined = FALSE;
+ mbRollUp = FALSE;
+ mbMenuHide = FALSE;
+ mbDockBtn = FALSE;
+ mbMenuBtn = FALSE;
+ mbHideBtn = FALSE;
+ mbHelpBtn = FALSE;
mbDisplayActive = IsActive();
if ( nTypeStyle & BORDERWINDOW_STYLE_FLOAT )
mnTitleType = BORDERWINDOW_TITLE_SMALL;
else
mnTitleType = BORDERWINDOW_TITLE_NORMAL;
- mnBorderStyle = WINDOW_BORDER_NORMAL;
+ mnBorderStyle = WINDOW_BORDER_NORMAL;
InitView();
}
@@ -1942,7 +1942,7 @@ void ImplBorderWindow::ImplInit( Window* pParent,
ImplBorderWindow::ImplBorderWindow( Window* pParent,
SystemParentData* pSystemParentData,
WinBits nStyle, USHORT nTypeStyle
- ) : Window( WINDOW_BORDERWINDOW )
+ ) : Window( WINDOW_BORDERWINDOW )
{
ImplInit( pParent, nStyle, nTypeStyle, pSystemParentData );
}
@@ -2030,8 +2030,8 @@ void ImplBorderWindow::RequestHelp( const HelpEvent& rHEvt )
// no keyboard help for border win
if ( rHEvt.GetMode() & (HELPMODE_BALLOON | HELPMODE_QUICK) && !rHEvt.KeyboardActivated() )
{
- Point aMousePosPixel = ScreenToOutputPixel( rHEvt.GetMousePosPixel() );
- Rectangle aHelpRect;
+ Point aMousePosPixel = ScreenToOutputPixel( rHEvt.GetMousePosPixel() );
+ Rectangle aHelpRect;
String aHelpStr( mpBorderView->RequestHelp( aMousePosPixel, aHelpRect ) );
// Rechteck ermitteln
@@ -2194,8 +2194,8 @@ void ImplBorderWindow::UpdateView( BOOL bNewView, const Size& rNewOutSize )
GetBorder( nLeftBorder, nTopBorder, nRightBorder, nBottomBorder );
if ( aOldSize.Width() || aOldSize.Height() )
{
- aOutputSize.Width() += nLeftBorder+nRightBorder;
- aOutputSize.Height() += nTopBorder+nBottomBorder;
+ aOutputSize.Width() += nLeftBorder+nRightBorder;
+ aOutputSize.Height() += nTopBorder+nBottomBorder;
if ( aOutputSize == GetSizePixel() )
InvalidateBorder();
else
@@ -2217,10 +2217,10 @@ void ImplBorderWindow::InvalidateBorder()
mpBorderView->GetBorder( nLeftBorder, nTopBorder, nRightBorder, nBottomBorder );
if ( nLeftBorder || nTopBorder || nRightBorder || nBottomBorder )
{
- Rectangle aWinRect( Point( 0, 0 ), GetOutputSizePixel() );
- Region aRegion( aWinRect );
+ Rectangle aWinRect( Point( 0, 0 ), GetOutputSizePixel() );
+ Region aRegion( aWinRect );
aWinRect.Left() += nLeftBorder;
- aWinRect.Top() += nTopBorder;
+ aWinRect.Top() += nTopBorder;
aWinRect.Right() -= nRightBorder;
aWinRect.Bottom() -= nBottomBorder;
// kein Output-Bereich mehr, dann alles invalidieren
diff --git a/vcl/source/window/btndlg.cxx b/vcl/source/window/btndlg.cxx
index 889961cf4751..55be841666a0 100644
--- a/vcl/source/window/btndlg.cxx
+++ b/vcl/source/window/btndlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,11 +43,11 @@
struct ImplBtnDlgItem
{
- USHORT mnId;
- BOOL mbOwnButton;
- BOOL mbDummyAlign;
- long mnSepSize;
- PushButton* mpPushButton;
+ USHORT mnId;
+ BOOL mbOwnButton;
+ BOOL mbDummyAlign;
+ long mnSepSize;
+ PushButton* mpPushButton;
};
DECLARE_LIST( ImplBtnDlgItemList, ImplBtnDlgItem* )
@@ -56,11 +56,11 @@ DECLARE_LIST( ImplBtnDlgItemList, ImplBtnDlgItem* )
void ButtonDialog::ImplInitButtonDialogData()
{
- mpItemList = new ImplBtnDlgItemList( 8, 8 );
- mnButtonSize = 0;
- mnCurButtonId = 0;
- mnFocusButtonId = BUTTONDIALOG_BUTTON_NOTFOUND;
- mbFormat = TRUE;
+ mpItemList = new ImplBtnDlgItemList( 8, 8 );
+ mnButtonSize = 0;
+ mnCurButtonId = 0;
+ mnFocusButtonId = BUTTONDIALOG_BUTTON_NOTFOUND;
+ mbFormat = TRUE;
}
// -----------------------------------------------------------------------
@@ -86,7 +86,7 @@ ButtonDialog::ButtonDialog( Window* pParent, const ResId& rResId ) :
Dialog( WINDOW_BUTTONDIALOG )
{
ImplInitButtonDialogData();
- rResId.SetRT( RSC_DIALOG ); // !!!!!!!!!! RSC_BUTTONDIALOG !!!!!!!!
+ rResId.SetRT( RSC_DIALOG ); // !!!!!!!!!! RSC_BUTTONDIALOG !!!!!!!!
ImplInit( pParent, ImplInitRes( rResId ) );
ImplLoadRes( rResId );
}
@@ -112,7 +112,7 @@ ButtonDialog::~ButtonDialog()
PushButton* ButtonDialog::ImplCreatePushButton( USHORT nBtnFlags )
{
PushButton* pBtn;
- WinBits nStyle = 0;
+ WinBits nStyle = 0;
if ( nBtnFlags & BUTTONDIALOG_DEFBUTTON )
nStyle |= WB_DEFBUTTON;
@@ -155,9 +155,9 @@ long ButtonDialog::ImplGetButtonSize()
return mnButtonSize;
// Calculate ButtonSize
- long nLastSepSize = 0;
- long nSepSize = 0;
- long nButtonCount = 0;
+ long nLastSepSize = 0;
+ long nSepSize = 0;
+ long nButtonCount = 0;
maCtrlSize = Size( IMPL_MINSIZE_BUTTON_WIDTH, IMPL_MINSIZE_BUTTON_HEIGHT );
ImplBtnDlgItem* pItem = mpItemList->First();
while ( pItem )
@@ -205,9 +205,9 @@ void ButtonDialog::ImplPosControls()
// determine dialog size
ImplBtnDlgItem* pItem;
- Size aDlgSize = maPageSize;
- long nX;
- long nY;
+ Size aDlgSize = maPageSize;
+ long nX;
+ long nY;
if ( GetStyle() & WB_HORZ )
{
if ( mnButtonSize+(IMPL_DIALOG_OFFSET*2) > aDlgSize.Width() )
@@ -334,11 +334,11 @@ void ButtonDialog::AddButton( const XubString& rText, USHORT nId,
USHORT nBtnFlags, long nSepPixel )
{
// PageItem anlegen
- ImplBtnDlgItem* pItem = new ImplBtnDlgItem;
- pItem->mnId = nId;
- pItem->mbOwnButton = TRUE;
- pItem->mnSepSize = nSepPixel;
- pItem->mpPushButton = ImplCreatePushButton( nBtnFlags );
+ ImplBtnDlgItem* pItem = new ImplBtnDlgItem;
+ pItem->mnId = nId;
+ pItem->mbOwnButton = TRUE;
+ pItem->mnSepSize = nSepPixel;
+ pItem->mpPushButton = ImplCreatePushButton( nBtnFlags );
if ( rText.Len() )
pItem->mpPushButton->SetText( rText );
@@ -357,10 +357,10 @@ void ButtonDialog::AddButton( StandardButtonType eType, USHORT nId,
USHORT nBtnFlags, long nSepPixel )
{
// PageItem anlegen
- ImplBtnDlgItem* pItem = new ImplBtnDlgItem;
- pItem->mnId = nId;
- pItem->mbOwnButton = TRUE;
- pItem->mnSepSize = nSepPixel;
+ ImplBtnDlgItem* pItem = new ImplBtnDlgItem;
+ pItem->mnId = nId;
+ pItem->mbOwnButton = TRUE;
+ pItem->mnSepSize = nSepPixel;
if ( eType == BUTTON_OK )
nBtnFlags |= BUTTONDIALOG_OKBUTTON;
@@ -371,9 +371,9 @@ void ButtonDialog::AddButton( StandardButtonType eType, USHORT nId,
pItem->mpPushButton = ImplCreatePushButton( nBtnFlags );
// Standard-Buttons have the right text already
- if ( !((eType == BUTTON_OK) && (pItem->mpPushButton->GetType() == WINDOW_OKBUTTON)) ||
+ if ( !((eType == BUTTON_OK) && (pItem->mpPushButton->GetType() == WINDOW_OKBUTTON)) ||
!((eType == BUTTON_CANCEL) && (pItem->mpPushButton->GetType() == WINDOW_CANCELBUTTON)) ||
- !((eType == BUTTON_HELP) && (pItem->mpPushButton->GetType() == WINDOW_HELPBUTTON)) )
+ !((eType == BUTTON_HELP) && (pItem->mpPushButton->GetType() == WINDOW_HELPBUTTON)) )
{
pItem->mpPushButton->SetText( Button::GetStandardText( eType ) );
pItem->mpPushButton->SetHelpText( Button::GetStandardHelpText( eType ) );
@@ -394,11 +394,11 @@ void ButtonDialog::AddButton( PushButton* pBtn, USHORT nId,
USHORT nBtnFlags, long nSepPixel )
{
// PageItem anlegen
- ImplBtnDlgItem* pItem = new ImplBtnDlgItem;
- pItem->mnId = nId;
- pItem->mbOwnButton = FALSE;
- pItem->mnSepSize = nSepPixel;
- pItem->mpPushButton = pBtn;
+ ImplBtnDlgItem* pItem = new ImplBtnDlgItem;
+ pItem->mnId = nId;
+ pItem->mbOwnButton = FALSE;
+ pItem->mnSepSize = nSepPixel;
+ pItem->mpPushButton = pBtn;
if ( nBtnFlags & BUTTONDIALOG_FOCUSBUTTON )
mnFocusButtonId = nId;
diff --git a/vcl/source/window/cmdevt.cxx b/vcl/source/window/cmdevt.cxx
index ae5b765909ba..f956e4cef9d6 100644
--- a/vcl/source/window/cmdevt.cxx
+++ b/vcl/source/window/cmdevt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,12 +37,12 @@
CommandExtTextInputData::CommandExtTextInputData()
{
- mpTextAttr = NULL;
- mnCursorPos = 0;
- mnDeltaStart = 0;
- mnOldTextLen = 0;
- mnCursorFlags = 0;
- mbOnlyCursor = FALSE;
+ mpTextAttr = NULL;
+ mnCursorPos = 0;
+ mnDeltaStart = 0;
+ mnOldTextLen = 0;
+ mnCursorFlags = 0;
+ mbOnlyCursor = FALSE;
}
// -----------------------------------------------------------------------
@@ -63,11 +63,11 @@ CommandExtTextInputData::CommandExtTextInputData( const XubString& rText,
}
else
mpTextAttr = NULL;
- mnCursorPos = nCursorPos;
- mnDeltaStart = nDeltaStart;
- mnOldTextLen = nOldTextLen;
- mnCursorFlags = nCursorFlags;
- mbOnlyCursor = bOnlyCursor;
+ mnCursorPos = nCursorPos;
+ mnDeltaStart = nDeltaStart;
+ mnOldTextLen = nOldTextLen;
+ mnCursorFlags = nCursorFlags;
+ mbOnlyCursor = bOnlyCursor;
}
// -----------------------------------------------------------------------
@@ -82,11 +82,11 @@ CommandExtTextInputData::CommandExtTextInputData( const CommandExtTextInputData&
}
else
mpTextAttr = NULL;
- mnCursorPos = rData.mnCursorPos;
- mnDeltaStart = rData.mnDeltaStart;
- mnOldTextLen = rData.mnOldTextLen;
- mnCursorFlags = rData.mnCursorFlags;
- mbOnlyCursor = rData.mbOnlyCursor;
+ mnCursorPos = rData.mnCursorPos;
+ mnDeltaStart = rData.mnDeltaStart;
+ mnOldTextLen = rData.mnOldTextLen;
+ mnCursorFlags = rData.mnCursorFlags;
+ mbOnlyCursor = rData.mbOnlyCursor;
}
// -----------------------------------------------------------------------
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 21ef136ad663..11a998b5a879 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,16 +41,16 @@
struct ImplCursorData
{
- AutoTimer maTimer; // Timer
- Point maPixPos; // Pixel-Position
- Point maPixRotOff; // Pixel-Offset-Position
- Size maPixSize; // Pixel-Size
- long mnPixSlant; // Pixel-Slant
- short mnOrientation; // Pixel-Orientation
- unsigned char mnDirection; // indicates writing direction
- USHORT mnStyle; // Cursor-Style
- BOOL mbCurVisible; // Ist Cursor aktuell sichtbar
- Window* mpWindow; // Zugeordnetes Windows
+ AutoTimer maTimer; // Timer
+ Point maPixPos; // Pixel-Position
+ Point maPixRotOff; // Pixel-Offset-Position
+ Size maPixSize; // Pixel-Size
+ long mnPixSlant; // Pixel-Slant
+ short mnOrientation; // Pixel-Orientation
+ unsigned char mnDirection; // indicates writing direction
+ USHORT mnStyle; // Cursor-Style
+ BOOL mbCurVisible; // Ist Cursor aktuell sichtbar
+ Window* mpWindow; // Zugeordnetes Windows
};
// =======================================================================
@@ -58,7 +58,7 @@ struct ImplCursorData
static void ImplCursorInvert( ImplCursorData* pData )
{
Window* pWindow = pData->mpWindow;
- BOOL bMapMode = pWindow->IsMapModeEnabled();
+ BOOL bMapMode = pWindow->IsMapModeEnabled();
pWindow->EnableMapMode( FALSE );
USHORT nInvertStyle;
if ( pData->mnStyle & CURSOR_SHADOW )
@@ -95,10 +95,10 @@ static void ImplCursorInvert( ImplCursorData* pData )
// left-to-right
pAry[0] = aPoly.GetPoint( 0 );
pAry[1] = aPoly.GetPoint( 1 );
- pAry[2] = pAry[1];
+ pAry[2] = pAry[1];
pAry[2].X() += delta;
pAry[3] = pAry[1];
- pAry[3].Y() += delta;
+ pAry[3].Y() += delta;
pAry[4] = aPoly.GetPoint( 2 );
pAry[5] = aPoly.GetPoint( 3 );
pAry[6] = aPoly.GetPoint( 4 );
@@ -110,8 +110,8 @@ static void ImplCursorInvert( ImplCursorData* pData )
pAry[1] = aPoly.GetPoint( 1 );
pAry[2] = aPoly.GetPoint( 2 );
pAry[3] = aPoly.GetPoint( 3 );
- pAry[4] = pAry[0];
- pAry[4].Y() += delta;
+ pAry[4] = pAry[0];
+ pAry[4].Y() += delta;
pAry[5] = pAry[0];
pAry[5].X() -= delta;
pAry[6] = aPoly.GetPoint( 4 );
@@ -135,13 +135,13 @@ void Cursor::ImplDraw()
{
if ( mpData && mpData->mpWindow && !mpData->mbCurVisible )
{
- Window* pWindow = mpData->mpWindow;
- mpData->maPixPos = pWindow->LogicToPixel( maPos );
- mpData->maPixSize = pWindow->LogicToPixel( maSize );
- mpData->mnPixSlant = pWindow->LogicToPixel( Size( mnSlant, 0 ) ).Width();
- mpData->mnOrientation = mnOrientation;
- mpData->mnDirection = mnDirection;
- long nOffsetY = pWindow->LogicToPixel( Size( 0, mnOffsetY ) ).Height();
+ Window* pWindow = mpData->mpWindow;
+ mpData->maPixPos = pWindow->LogicToPixel( maPos );
+ mpData->maPixSize = pWindow->LogicToPixel( maSize );
+ mpData->mnPixSlant = pWindow->LogicToPixel( Size( mnSlant, 0 ) ).Width();
+ mpData->mnOrientation = mnOrientation;
+ mpData->mnDirection = mnDirection;
+ long nOffsetY = pWindow->LogicToPixel( Size( 0, mnOffsetY ) ).Height();
// Position um den Offset korrigieren
mpData->maPixPos.Y() -= nOffsetY;
@@ -198,8 +198,8 @@ void Cursor::ImplShow( BOOL bDrawDirect )
mpData->maTimer.SetTimeoutHdl( LINK( this, Cursor, ImplTimerHdl ) );
}
- mpData->mpWindow = pWindow;
- mpData->mnStyle = mnStyle;
+ mpData->mpWindow = pWindow;
+ mpData->mnStyle = mnStyle;
if ( bDrawDirect )
ImplDraw();
@@ -262,14 +262,14 @@ IMPL_LINK( Cursor, ImplTimerHdl, AutoTimer*, EMPTYARG )
Cursor::Cursor()
{
- mpData = NULL;
- mpWindow = NULL;
- mnSlant = 0;
- mnOffsetY = 0;
- mnOrientation = 0;
- mnDirection = 0;
- mnStyle = 0;
- mbVisible = FALSE;
+ mpData = NULL;
+ mpWindow = NULL;
+ mnSlant = 0;
+ mnOffsetY = 0;
+ mnOrientation = 0;
+ mnDirection = 0;
+ mnStyle = 0;
+ mbVisible = FALSE;
}
// -----------------------------------------------------------------------
@@ -278,13 +278,13 @@ Cursor::Cursor( const Cursor& rCursor ) :
maSize( rCursor.maSize ),
maPos( rCursor.maPos )
{
- mpData = NULL;
- mpWindow = NULL;
- mnSlant = rCursor.mnSlant;
- mnOrientation = rCursor.mnOrientation;
- mnDirection = rCursor.mnDirection;
- mnStyle = 0;
- mbVisible = rCursor.mbVisible;
+ mpData = NULL;
+ mpWindow = NULL;
+ mnSlant = rCursor.mnSlant;
+ mnOrientation = rCursor.mnOrientation;
+ mnDirection = rCursor.mnDirection;
+ mnStyle = 0;
+ mbVisible = rCursor.mbVisible;
}
// -----------------------------------------------------------------------
@@ -436,12 +436,12 @@ void Cursor::SetDirection( unsigned char nNewDirection )
Cursor& Cursor::operator=( const Cursor& rCursor )
{
- maPos = rCursor.maPos;
- maSize = rCursor.maSize;
- mnSlant = rCursor.mnSlant;
- mnOrientation = rCursor.mnOrientation;
- mnDirection = rCursor.mnDirection;
- mbVisible = rCursor.mbVisible;
+ maPos = rCursor.maPos;
+ maSize = rCursor.maSize;
+ mnSlant = rCursor.mnSlant;
+ mnOrientation = rCursor.mnOrientation;
+ mnDirection = rCursor.mnDirection;
+ mbVisible = rCursor.mbVisible;
ImplNew();
return *this;
@@ -451,12 +451,12 @@ Cursor& Cursor::operator=( const Cursor& rCursor )
BOOL Cursor::operator==( const Cursor& rCursor ) const
{
- if ( (maPos == rCursor.maPos) &&
- (maSize == rCursor.maSize) &&
- (mnSlant == rCursor.mnSlant) &&
- (mnOrientation == rCursor.mnOrientation) &&
- (mnDirection == rCursor.mnDirection) &&
- (mbVisible == rCursor.mbVisible) )
+ if ( (maPos == rCursor.maPos) &&
+ (maSize == rCursor.maSize) &&
+ (mnSlant == rCursor.mnSlant) &&
+ (mnOrientation == rCursor.mnOrientation) &&
+ (mnDirection == rCursor.mnDirection) &&
+ (mbVisible == rCursor.mbVisible) )
return TRUE;
else
return FALSE;
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx
index 0cb89a025f5d..1471b0a496d3 100644
--- a/vcl/source/window/decoview.cxx
+++ b/vcl/source/window/decoview.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,9 +38,9 @@
// =======================================================================
-#define BUTTON_DRAW_FLATTEST (BUTTON_DRAW_FLAT | \
- BUTTON_DRAW_PRESSED | \
- BUTTON_DRAW_CHECKED | \
+#define BUTTON_DRAW_FLATTEST (BUTTON_DRAW_FLAT | \
+ BUTTON_DRAW_PRESSED | \
+ BUTTON_DRAW_CHECKED | \
BUTTON_DRAW_HIGHLIGHT)
// =======================================================================
@@ -48,11 +48,11 @@
void ImplDrawOS2Symbol( OutputDevice* pDev, const Rectangle& rRect,
USHORT nStyle, BOOL bClose )
{
- DecorationView aView( pDev );
- const StyleSettings& rStyleSettings = pDev->GetSettings().GetStyleSettings();
- Rectangle aRect = rRect;
- Color aColor1;
- Color aColor2;
+ DecorationView aView( pDev );
+ const StyleSettings& rStyleSettings = pDev->GetSettings().GetStyleSettings();
+ Rectangle aRect = rRect;
+ Color aColor1;
+ Color aColor2;
pDev->SetFillColor();
@@ -68,10 +68,10 @@ void ImplDrawOS2Symbol( OutputDevice* pDev, const Rectangle& rRect,
}
aView.DrawFrame( aRect, aColor1, aColor2 );
- aRect.Left() += 2;
- aRect.Top() += 2;
- aRect.Right() -= 2;
- aRect.Bottom() -= 2;
+ aRect.Left() += 2;
+ aRect.Top() += 2;
+ aRect.Right() -= 2;
+ aRect.Bottom() -= 2;
if ( nStyle & (BUTTON_DRAW_PRESSED | BUTTON_DRAW_CHECKED) )
pDev->SetLineColor( rStyleSettings.GetLightColor() );
@@ -114,22 +114,22 @@ static void ImplDrawSymbol( OutputDevice* pDev, const Rectangle& rRect,
SymbolType eType )
{
// Groessen vorberechnen
- long nMin = Min( rRect.GetWidth(), rRect.GetHeight() );
- long nSize = nMin;
+ long nMin = Min( rRect.GetWidth(), rRect.GetHeight() );
+ long nSize = nMin;
if ( nMin & 0x01 )
nMin--;
- Point aCenter = rRect.Center();
- long nCenterX = aCenter.X();
- long nCenterY = aCenter.Y();
- long n2 = nMin / 2;
- long n4 = nMin / 4;
- long nLeft;
- long nTop;
- long nRight;
- long nBottom;
- long nTemp;
- long i;
+ Point aCenter = rRect.Center();
+ long nCenterX = aCenter.X();
+ long nCenterY = aCenter.Y();
+ long n2 = nMin / 2;
+ long n4 = nMin / 4;
+ long nLeft;
+ long nTop;
+ long nRight;
+ long nBottom;
+ long nTemp;
+ long i;
switch ( eType )
{
@@ -339,8 +339,8 @@ static void ImplDrawSymbol( OutputDevice* pDev, const Rectangle& rRect,
{
if ( !( nSize & 0x01 ))
{
- // An even rectangle size means we have to use a smaller size for
- // our arrows as we want to use one pixel for the spearhead! Otherwise
+ // An even rectangle size means we have to use a smaller size for
+ // our arrows as we want to use one pixel for the spearhead! Otherwise
// it will be clipped!
nCenterX++;
n2 = ( nMin-1 ) / 2;
@@ -369,9 +369,9 @@ static void ImplDrawSymbol( OutputDevice* pDev, const Rectangle& rRect,
case SYMBOL_RADIOCHECKMARK:
case SYMBOL_RECORD:
{
- const long nExt = ( n2 << 1 ) + 1;
- Bitmap aBmp( Size( nExt, nExt ), 1 );
- BitmapWriteAccess* pWAcc = aBmp.AcquireWriteAccess();
+ const long nExt = ( n2 << 1 ) + 1;
+ Bitmap aBmp( Size( nExt, nExt ), 1 );
+ BitmapWriteAccess* pWAcc = aBmp.AcquireWriteAccess();
if( pWAcc )
{
@@ -472,8 +472,8 @@ static void ImplDrawSymbol( OutputDevice* pDev, const Rectangle& rRect,
aRectSize.Width() = 1;
else if ( nMin > 20 )
aRectSize.Width() = nMin/10;
- nLeft = nCenterX-n2+1;
- nTop = nCenterY-n2+1;
+ nLeft = nCenterX-n2+1;
+ nTop = nCenterY-n2+1;
nBottom = nCenterY-n2+nMin-aRectSize.Width()+1;
i = 0;
while ( i < nMin-aRectSize.Width()+1 )
@@ -674,11 +674,11 @@ static void ImplDrawSymbol( OutputDevice* pDev, const Rectangle& rRect,
void DecorationView::DrawSymbol( const Rectangle& rRect, SymbolType eType,
const Color& rColor, USHORT nStyle )
{
- const StyleSettings& rStyleSettings = mpOutDev->GetSettings().GetStyleSettings();
- Rectangle aRect = mpOutDev->LogicToPixel( rRect );
- Color aOldLineColor = mpOutDev->GetLineColor();
- Color aOldFillColor = mpOutDev->GetFillColor();
- BOOL bOldMapMode = mpOutDev->IsMapModeEnabled();
+ const StyleSettings& rStyleSettings = mpOutDev->GetSettings().GetStyleSettings();
+ Rectangle aRect = mpOutDev->LogicToPixel( rRect );
+ Color aOldLineColor = mpOutDev->GetLineColor();
+ Color aOldFillColor = mpOutDev->GetFillColor();
+ BOOL bOldMapMode = mpOutDev->IsMapModeEnabled();
mpOutDev->SetLineColor();
mpOutDev->SetFillColor( rColor );
mpOutDev->EnableMapMode( FALSE );
@@ -722,10 +722,10 @@ void DecorationView::DrawFrame( const Rectangle& rRect,
const Color& rLeftTopColor,
const Color& rRightBottomColor )
{
- Rectangle aRect = mpOutDev->LogicToPixel( rRect );
- Color aOldLineColor = mpOutDev->GetLineColor();
- Color aOldFillColor = mpOutDev->GetFillColor();
- BOOL bOldMapMode = mpOutDev->IsMapModeEnabled();
+ Rectangle aRect = mpOutDev->LogicToPixel( rRect );
+ Color aOldLineColor = mpOutDev->GetLineColor();
+ Color aOldFillColor = mpOutDev->GetFillColor();
+ BOOL bOldMapMode = mpOutDev->IsMapModeEnabled();
mpOutDev->EnableMapMode( FALSE );
mpOutDev->SetLineColor();
mpOutDev->ImplDraw2ColorFrame( aRect, rLeftTopColor, rRightBottomColor );
@@ -827,10 +827,10 @@ static void ImplDrawDPILineRect( OutputDevice* pDev, Rectangle& rRect,
}
}
- rRect.Left() += nLineWidth;
- rRect.Top() += nLineHeight;
- rRect.Right() -= nLineWidth;
- rRect.Bottom() -= nLineHeight;
+ rRect.Left() += nLineWidth;
+ rRect.Top() += nLineHeight;
+ rRect.Right() -= nLineWidth;
+ rRect.Bottom() -= nLineHeight;
}
// =======================================================================
@@ -848,7 +848,7 @@ static void ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect,
// UseFlatBorders disables 3D style for all frames except menus
// menus may use different border colors (eg on XP)
- // normal frames will be drawn using the shadow color
+ // normal frames will be drawn using the shadow color
// whereas window frame borders will use black
BOOL bFlatBorders = ( !bMenuStyle && rStyleSettings.GetUseFlatBorders() );
@@ -893,10 +893,10 @@ static void ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect,
if ( nFrameStyle == FRAME_DRAW_GROUP )
{
- rRect.Left() += 2;
- rRect.Top() += 2;
- rRect.Right() -= 2;
- rRect.Bottom() -= 2;
+ rRect.Left() += 2;
+ rRect.Top() += 2;
+ rRect.Right() -= 2;
+ rRect.Bottom() -= 2;
}
else if ( (nFrameStyle == FRAME_DRAW_IN) ||
(nFrameStyle == FRAME_DRAW_OUT) )
@@ -908,10 +908,10 @@ static void ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect,
}
else // FRAME_DRAW_DOUBLEIN || FRAME_DRAW_DOUBLEOUT
{
- rRect.Left() += 2;
- rRect.Top() += 2;
- rRect.Right() -= 2;
- rRect.Bottom() -= 2;
+ rRect.Left() += 2;
+ rRect.Top() += 2;
+ rRect.Right() -= 2;
+ rRect.Bottom() -= 2;
}
}
}
@@ -925,8 +925,8 @@ static void ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect,
ImplControlValue aControlValue( nValueStyle );
Rectangle aBound, aContent;
Rectangle aNatRgn( rRect );
- if( pWin->GetNativeControlRegion(CTRL_FRAME, PART_BORDER,
- aNatRgn, 0, aControlValue, rtl::OUString(), aBound, aContent) )
+ if( pWin->GetNativeControlRegion(CTRL_FRAME, PART_BORDER,
+ aNatRgn, 0, aControlValue, rtl::OUString(), aBound, aContent) )
{
if( pWin->DrawNativeControl( CTRL_FRAME, PART_BORDER, aContent, CTRL_STATE_ENABLED,
aControlValue, rtl::OUString()) )
@@ -1023,7 +1023,7 @@ static void ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect,
rStyleSettings.GetDarkShadowColor() :
rStyleSettings.GetLightBorderColor(),
rStyleSettings.GetDarkShadowColor() );
-
+
}
rRect.Left()++;
@@ -1070,8 +1070,8 @@ static void ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect,
Rectangle DecorationView::DrawFrame( const Rectangle& rRect, USHORT nStyle )
{
- Rectangle aRect = rRect;
- BOOL bOldMap = mpOutDev->IsMapModeEnabled();
+ Rectangle aRect = rRect;
+ BOOL bOldMap = mpOutDev->IsMapModeEnabled();
if ( bOldMap )
{
aRect = mpOutDev->LogicToPixel( aRect );
@@ -1133,25 +1133,25 @@ static void ImplDrawButton( OutputDevice* pDev, Rectangle& rRect,
pDev->SetFillColor( aBlackColor );
Rectangle aRect1;
Rectangle aRect2;
- aRect1.Left() = aFillRect.Left();
- aRect1.Right() = aFillRect.Right(),
- aRect2.Top() = aFillRect.Top();
+ aRect1.Left() = aFillRect.Left();
+ aRect1.Right() = aFillRect.Right(),
+ aRect2.Top() = aFillRect.Top();
aRect2.Bottom() = aFillRect.Bottom();
if ( nStyle & (BUTTON_DRAW_PRESSED | BUTTON_DRAW_CHECKED) )
{
- aRect1.Top() = aFillRect.Top();
+ aRect1.Top() = aFillRect.Top();
aRect1.Bottom() = aBrdSize.Height()-1;
- aRect2.Left() = aFillRect.Left();
- aRect2.Right() = aFillRect.Left()+aBrdSize.Width()-1;
+ aRect2.Left() = aFillRect.Left();
+ aRect2.Right() = aFillRect.Left()+aBrdSize.Width()-1;
aFillRect.Left() += aBrdSize.Width();
aFillRect.Top() += aBrdSize.Height();
}
else
{
- aRect1.Top() = aFillRect.Bottom()-aBrdSize.Height()+1;
+ aRect1.Top() = aFillRect.Bottom()-aBrdSize.Height()+1;
aRect1.Bottom() = aFillRect.Bottom();
- aRect2.Left() = aFillRect.Right()-aBrdSize.Width()+1;
- aRect2.Right() = aFillRect.Right(),
+ aRect2.Left() = aFillRect.Right()-aBrdSize.Width()+1;
+ aRect2.Right() = aFillRect.Right(),
aFillRect.Right() -= aBrdSize.Width();
aFillRect.Bottom() -= aBrdSize.Height();
}
@@ -1286,32 +1286,32 @@ static void ImplDrawButton( OutputDevice* pDev, Rectangle& rRect,
{
if ( (rRect.GetHeight() > 10) && (rRect.GetWidth() > 10) )
{
- rRect.Left() += 4;
- rRect.Top() += 4;
- rRect.Right() -= 1;
- rRect.Bottom() -= 1;
+ rRect.Left() += 4;
+ rRect.Top() += 4;
+ rRect.Right() -= 1;
+ rRect.Bottom() -= 1;
}
else
{
- rRect.Left() += 3;
- rRect.Top() += 3;
- rRect.Right() -= 2;
- rRect.Bottom() -= 2;
+ rRect.Left() += 3;
+ rRect.Top() += 3;
+ rRect.Right() -= 2;
+ rRect.Bottom() -= 2;
}
}
else if ( nStyle & BUTTON_DRAW_CHECKED )
{
- rRect.Left() += 3;
- rRect.Top() += 3;
- rRect.Right() -= 2;
- rRect.Bottom() -= 2;
+ rRect.Left() += 3;
+ rRect.Top() += 3;
+ rRect.Right() -= 2;
+ rRect.Bottom() -= 2;
}
else
{
- rRect.Left() += 2;
- rRect.Top() += 2;
- rRect.Right() -= 3;
- rRect.Bottom() -= 3;
+ rRect.Left() += 2;
+ rRect.Top() += 2;
+ rRect.Right() -= 3;
+ rRect.Bottom() -= 3;
}
}
@@ -1319,8 +1319,8 @@ static void ImplDrawButton( OutputDevice* pDev, Rectangle& rRect,
Rectangle DecorationView::DrawButton( const Rectangle& rRect, USHORT nStyle )
{
- Rectangle aRect = rRect;
- BOOL bOldMap = mpOutDev->IsMapModeEnabled();
+ Rectangle aRect = rRect;
+ BOOL bOldMap = mpOutDev->IsMapModeEnabled();
if ( bOldMap )
{
aRect = mpOutDev->LogicToPixel( aRect );
@@ -1367,7 +1367,7 @@ void DecorationView::DrawSeparator( const Point& rStart, const Point& rStop, boo
mpOutDev->SetLineColor( Color( COL_BLACK ) );
else
mpOutDev->SetLineColor( rStyleSettings.GetShadowColor() );
-
+
mpOutDev->DrawLine( aStart, aStop );
if ( !(rStyleSettings.GetOptions() & STYLE_OPTION_MONO) )
{
diff --git a/vcl/source/window/dlgctrl.cxx b/vcl/source/window/dlgctrl.cxx
index 50692a2070b2..dd8dccaf0597 100644
--- a/vcl/source/window/dlgctrl.cxx
+++ b/vcl/source/window/dlgctrl.cxx
@@ -1063,8 +1063,8 @@ static Window* ImplGetLabelFor( Window* pFrameWindow, WindowType nMyType, Window
{
Window* pWindow = NULL;
- if( nMyType == WINDOW_FIXEDTEXT ||
- nMyType == WINDOW_FIXEDLINE ||
+ if( nMyType == WINDOW_FIXEDTEXT ||
+ nMyType == WINDOW_FIXEDLINE ||
nMyType == WINDOW_GROUPBOX )
{
// #i100833# MT 2010/02: Group box and fixed lines can also lable a fixed text.
@@ -1102,8 +1102,8 @@ static Window* ImplGetLabelFor( Window* pFrameWindow, WindowType nMyType, Window
if( pSWindow && pSWindow->IsVisible() && ! (pSWindow->GetStyle() & WB_NOLABEL) )
{
WindowType nType = pSWindow->GetType();
- if( nType != WINDOW_FIXEDTEXT &&
- nType != WINDOW_FIXEDLINE &&
+ if( nType != WINDOW_FIXEDTEXT &&
+ nType != WINDOW_FIXEDLINE &&
nType != WINDOW_GROUPBOX )
{
pWindow = pSWindow;
@@ -1171,9 +1171,9 @@ static Window* ImplGetLabeledBy( Window* pFrameWindow, WindowType nMyType, Windo
nFormEnd );
if( pSWindow && nIndex != nFormStart )
{
- if( nMyType == WINDOW_PUSHBUTTON ||
- nMyType == WINDOW_HELPBUTTON ||
- nMyType == WINDOW_OKBUTTON ||
+ if( nMyType == WINDOW_PUSHBUTTON ||
+ nMyType == WINDOW_HELPBUTTON ||
+ nMyType == WINDOW_OKBUTTON ||
nMyType == WINDOW_CANCELBUTTON )
{
nFormStart = nIndex-1;
@@ -1188,8 +1188,8 @@ static Window* ImplGetLabeledBy( Window* pFrameWindow, WindowType nMyType, Windo
if( pSWindow && pSWindow->IsVisible() && !(pSWindow->GetStyle() & WB_NOLABEL) )
{
WindowType nType = pSWindow->GetType();
- if ( ( nType == WINDOW_FIXEDTEXT ||
- nType == WINDOW_FIXEDLINE ||
+ if ( ( nType == WINDOW_FIXEDTEXT ||
+ nType == WINDOW_FIXEDLINE ||
nType == WINDOW_GROUPBOX ) )
{
// a fixed text can't be labeld by a fixed text.
@@ -1226,8 +1226,8 @@ Window* Window::GetLabeledBy() const
if( GetType() == WINDOW_CHECKBOX || GetType() == WINDOW_RADIOBUTTON )
return NULL;
-// if( ! ( GetType() == WINDOW_FIXEDTEXT ||
-// GetType() == WINDOW_FIXEDLINE ||
+// if( ! ( GetType() == WINDOW_FIXEDTEXT ||
+// GetType() == WINDOW_FIXEDLINE ||
// GetType() == WINDOW_GROUPBOX ) )
// #i100833# MT 2010/02: Group box and fixed lines can also lable a fixed text.
// See tools/options/print for example.
diff --git a/vcl/source/window/dndevdis.cxx b/vcl/source/window/dndevdis.cxx
index d9417e3bacf0..038e8d189954 100644
--- a/vcl/source/window/dndevdis.cxx
+++ b/vcl/source/window/dndevdis.cxx
@@ -195,7 +195,7 @@ void SAL_CALL DNDEventDispatcher::dragOver( const DropTargetDragEvent& dtde )
else
{
// fire dragOver on listeners of current window
- nListeners = fireDragOverEvent( pChildWindow, dtde.Context, dtde.DropAction, location,
+ nListeners = fireDragOverEvent( pChildWindow, dtde.Context, dtde.DropAction, location,
dtde.SourceActions );
}
diff --git a/vcl/source/window/dndlcon.cxx b/vcl/source/window/dndlcon.cxx
index 4566852bc966..c27afb97f172 100644
--- a/vcl/source/window/dndlcon.cxx
+++ b/vcl/source/window/dndlcon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,18 +37,18 @@ using namespace ::com::sun::star::datatransfer;
using namespace ::com::sun::star::datatransfer::dnd;
//==================================================================================================
-//
+//
//==================================================================================================
DNDListenerContainer::DNDListenerContainer( sal_Int8 nDefaultActions )
: WeakComponentImplHelper4< XDragGestureRecognizer, XDropTargetDragContext, XDropTargetDropContext, XDropTarget >(GetMutex())
{
m_bActive = sal_True;
- m_nDefaultActions = nDefaultActions;
+ m_nDefaultActions = nDefaultActions;
}
//==================================================================================================
-//
+//
//==================================================================================================
DNDListenerContainer::~DNDListenerContainer()
@@ -58,8 +58,8 @@ DNDListenerContainer::~DNDListenerContainer()
//==================================================================================================
// DNDListenerContainer::addDragGestureListener
//==================================================================================================
-
-void SAL_CALL DNDListenerContainer::addDragGestureListener( const Reference< XDragGestureListener >& dgl )
+
+void SAL_CALL DNDListenerContainer::addDragGestureListener( const Reference< XDragGestureListener >& dgl )
throw(RuntimeException)
{
rBHelper.addListener( getCppuType( ( const Reference< XDragGestureListener > * ) 0 ), dgl );
@@ -69,7 +69,7 @@ void SAL_CALL DNDListenerContainer::addDragGestureListener( const Reference< XDr
// DNDListenerContainer::removeDragGestureListener
//==================================================================================================
-void SAL_CALL DNDListenerContainer::removeDragGestureListener( const Reference< XDragGestureListener >& dgl )
+void SAL_CALL DNDListenerContainer::removeDragGestureListener( const Reference< XDragGestureListener >& dgl )
throw(RuntimeException)
{
rBHelper.removeListener( getCppuType( ( const Reference< XDragGestureListener > * ) 0 ), dgl );
@@ -79,16 +79,16 @@ void SAL_CALL DNDListenerContainer::removeDragGestureListener( const Reference<
// DNDListenerContainer::resetRecognizer
//==================================================================================================
-void SAL_CALL DNDListenerContainer::resetRecognizer( )
+void SAL_CALL DNDListenerContainer::resetRecognizer( )
throw(RuntimeException)
{
}
-
+
//==================================================================================================
// DNDListenerContainer::addDropTargetListener
//==================================================================================================
-void SAL_CALL DNDListenerContainer::addDropTargetListener( const Reference< XDropTargetListener >& dtl )
+void SAL_CALL DNDListenerContainer::addDropTargetListener( const Reference< XDropTargetListener >& dtl )
throw(RuntimeException)
{
rBHelper.addListener( getCppuType( ( const Reference< XDropTargetListener > * ) 0 ), dtl );
@@ -98,7 +98,7 @@ void SAL_CALL DNDListenerContainer::addDropTargetListener( const Reference< XDro
// DNDListenerContainer::removeDropTargetListener
//==================================================================================================
-void SAL_CALL DNDListenerContainer::removeDropTargetListener( const Reference< XDropTargetListener >& dtl )
+void SAL_CALL DNDListenerContainer::removeDropTargetListener( const Reference< XDropTargetListener >& dtl )
throw(RuntimeException)
{
rBHelper.removeListener( getCppuType( ( const Reference< XDropTargetListener > * ) 0 ), dtl );
@@ -108,7 +108,7 @@ void SAL_CALL DNDListenerContainer::removeDropTargetListener( const Reference< X
// DNDListenerContainer::isActive
//==================================================================================================
-sal_Bool SAL_CALL DNDListenerContainer::isActive( )
+sal_Bool SAL_CALL DNDListenerContainer::isActive( )
throw(RuntimeException)
{
return m_bActive;
@@ -118,7 +118,7 @@ sal_Bool SAL_CALL DNDListenerContainer::isActive( )
// DNDListenerContainer::setActive
//==================================================================================================
-void SAL_CALL DNDListenerContainer::setActive( sal_Bool active )
+void SAL_CALL DNDListenerContainer::setActive( sal_Bool active )
throw(RuntimeException)
{
m_bActive = active;
@@ -128,7 +128,7 @@ void SAL_CALL DNDListenerContainer::setActive( sal_Bool active )
// DNDListenerContainer::getDefaultActions
//==================================================================================================
-sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions( )
+sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions( )
throw(RuntimeException)
{
return m_nDefaultActions;
@@ -138,7 +138,7 @@ sal_Int8 SAL_CALL DNDListenerContainer::getDefaultActions( )
// DNDListenerContainer::setDefaultActions
//==================================================================================================
-void SAL_CALL DNDListenerContainer::setDefaultActions( sal_Int8 actions )
+void SAL_CALL DNDListenerContainer::setDefaultActions( sal_Int8 actions )
throw(RuntimeException)
{
m_nDefaultActions = actions;
@@ -148,7 +148,7 @@ void SAL_CALL DNDListenerContainer::setDefaultActions( sal_Int8 actions )
// DNDListenerContainer::fireDropEvent
//==================================================================================================
-sal_uInt32 DNDListenerContainer::fireDropEvent( const Reference< XDropTargetDropContext >& context,
+sal_uInt32 DNDListenerContainer::fireDropEvent( const Reference< XDropTargetDropContext >& context,
sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions,
const Reference< XTransferable >& transferable )
{
@@ -156,17 +156,17 @@ sal_uInt32 DNDListenerContainer::fireDropEvent( const Reference< XDropTargetDrop
// fire DropTargetDropEvent on all XDropTargetListeners
OInterfaceContainerHelper *pContainer = rBHelper.getContainer( getCppuType( ( Reference < XDropTargetListener > * ) 0) );
-
+
if( pContainer && m_bActive )
{
OInterfaceIteratorHelper aIterator( *pContainer );
-
+
// remember context to use in own context methods
m_xDropTargetDropContext = context;
// do not construct the event before you are sure at least one listener is registered
- DropTargetDropEvent aEvent( static_cast < XDropTarget * > (this), 0,
- static_cast < XDropTargetDropContext * > (this), dropAction,
+ DropTargetDropEvent aEvent( static_cast < XDropTarget * > (this), 0,
+ static_cast < XDropTargetDropContext * > (this), dropAction,
locationX, locationY, sourceActions, transferable );
while (aIterator.hasMoreElements())
@@ -226,10 +226,10 @@ sal_uInt32 DNDListenerContainer::fireDropEvent( const Reference< XDropTargetDrop
sal_uInt32 DNDListenerContainer::fireDragExitEvent()
{
sal_uInt32 nRet = 0;
-
+
// fire DropTargetDropEvent on all XDropTargetListeners
OInterfaceContainerHelper *pContainer = rBHelper.getContainer( getCppuType( ( Reference < XDropTargetListener > * ) 0) );
-
+
if( pContainer && m_bActive )
{
OInterfaceIteratorHelper aIterator( *pContainer );
@@ -268,14 +268,14 @@ sal_uInt32 DNDListenerContainer::fireDragExitEvent()
// DNDListenerContainer::fireDragOverEvent
//==================================================================================================
-sal_uInt32 DNDListenerContainer::fireDragOverEvent( const Reference< XDropTargetDragContext >& context,
+sal_uInt32 DNDListenerContainer::fireDragOverEvent( const Reference< XDropTargetDragContext >& context,
sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions )
{
sal_uInt32 nRet = 0;
-
+
// fire DropTargetDropEvent on all XDropTargetListeners
OInterfaceContainerHelper *pContainer = rBHelper.getContainer( getCppuType( ( Reference < XDropTargetListener > * ) 0) );
-
+
if( pContainer && m_bActive )
{
OInterfaceIteratorHelper aIterator( *pContainer );
@@ -284,8 +284,8 @@ sal_uInt32 DNDListenerContainer::fireDragOverEvent( const Reference< XDropTarget
m_xDropTargetDragContext = context;
// do not construct the event before you are sure at least one listener is registered
- DropTargetDragEvent aEvent( static_cast < XDropTarget * > (this), 0,
- static_cast < XDropTargetDragContext * > (this),
+ DropTargetDragEvent aEvent( static_cast < XDropTarget * > (this), 0,
+ static_cast < XDropTargetDragContext * > (this),
dropAction, locationX, locationY, sourceActions );
while (aIterator.hasMoreElements())
@@ -336,14 +336,14 @@ sal_uInt32 DNDListenerContainer::fireDragOverEvent( const Reference< XDropTarget
//==================================================================================================
sal_uInt32 DNDListenerContainer::fireDragEnterEvent( const Reference< XDropTargetDragContext >& context,
- sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions,
+ sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions,
const Sequence< DataFlavor >& dataFlavors )
{
sal_uInt32 nRet = 0;
-
+
// fire DropTargetDropEvent on all XDropTargetListeners
OInterfaceContainerHelper *pContainer = rBHelper.getContainer( getCppuType( ( Reference < XDropTargetListener > * ) 0) );
-
+
if( pContainer && m_bActive )
{
OInterfaceIteratorHelper aIterator( *pContainer );
@@ -352,7 +352,7 @@ sal_uInt32 DNDListenerContainer::fireDragEnterEvent( const Reference< XDropTarge
m_xDropTargetDragContext = context;
// do not construct the event before you are sure at least one listener is registered
- DropTargetDragEnterEvent aEvent( static_cast < XDropTarget * > (this), 0,
+ DropTargetDragEnterEvent aEvent( static_cast < XDropTarget * > (this), 0,
static_cast < XDropTargetDragContext * > (this),
dropAction, locationX, locationY, sourceActions, dataFlavors );
@@ -407,10 +407,10 @@ sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent( const Reference< XD
sal_Int8 dropAction, sal_Int32 locationX, sal_Int32 locationY, sal_Int8 sourceActions )
{
sal_uInt32 nRet = 0;
-
+
// fire DropTargetDropEvent on all XDropTargetListeners
OInterfaceContainerHelper *pContainer = rBHelper.getContainer( getCppuType( ( Reference < XDropTargetListener > * ) 0) );
-
+
if( pContainer && m_bActive )
{
OInterfaceIteratorHelper aIterator( *pContainer );
@@ -419,7 +419,7 @@ sal_uInt32 DNDListenerContainer::fireDropActionChangedEvent( const Reference< XD
m_xDropTargetDragContext = context;
// do not construct the event before you are sure at least one listener is registered
- DropTargetDragEvent aEvent( static_cast < XDropTarget * > (this), 0,
+ DropTargetDragEvent aEvent( static_cast < XDropTarget * > (this), 0,
static_cast < XDropTargetDragContext * > (this),
dropAction, locationX, locationY, sourceActions );
@@ -474,16 +474,16 @@ sal_uInt32 DNDListenerContainer::fireDragGestureEvent( sal_Int8 dragAction, sal_
sal_Int32 dragOriginY, const Reference< XDragSource >& dragSource, const Any& triggerEvent )
{
sal_uInt32 nRet = 0;
-
+
// fire DropTargetDropEvent on all XDropTargetListeners
OInterfaceContainerHelper *pContainer = rBHelper.getContainer( getCppuType( ( Reference < XDragGestureListener > * ) 0) );
-
+
if( pContainer )
{
OInterfaceIteratorHelper aIterator( *pContainer );
// do not construct the event before you are sure at least one listener is registered
- DragGestureEvent aEvent( static_cast < XDragGestureRecognizer * > (this), dragAction,
+ DragGestureEvent aEvent( static_cast < XDragGestureRecognizer * > (this), dragAction,
dragOriginX, dragOriginY, dragSource, triggerEvent );
while( aIterator.hasMoreElements() )
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index 231f17759b86..646fa3156ebe 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,7 +73,7 @@ static void ImplInitBackground( DockingAreaWindow* pThis )
DockingAreaWindow::DockingAreaWindow( Window* pParent ) :
Window( WINDOW_DOCKINGAREA )
{
- ImplInit( pParent, WB_CLIPCHILDREN|WB_3DLOOK, NULL );
+ ImplInit( pParent, WB_CLIPCHILDREN|WB_3DLOOK, NULL );
mpImplData = new ImplData;
ImplInitBackground( this );
@@ -103,7 +103,7 @@ static void ImplInvalidateMenubar( DockingAreaWindow* pThis )
// due to a possible comon gradient covering menubar and top dockingarea
// the menubar must be repainted if the top dockingarea changes size or visibility
if( ImplGetSVData()->maNWFData.mbMenuBarDockingAreaCommonBG &&
- (pThis->GetAlign() == WINDOWALIGN_TOP)
+ (pThis->GetAlign() == WINDOWALIGN_TOP)
&& pThis->IsNativeControlSupported( CTRL_TOOLBAR, PART_ENTIRE_CONTROL )
&& pThis->IsNativeControlSupported( CTRL_MENUBAR, PART_ENTIRE_CONTROL ) )
{
@@ -168,8 +168,8 @@ void DockingAreaWindow::Paint( const Rectangle& )
// draw a single toolbar background covering the whole docking area
Point tmp;
Rectangle aCtrlRegion( tmp, GetOutputSizePixel() );
-
- DrawNativeControl( CTRL_TOOLBAR, IsHorizontal() ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT,
+
+ DrawNativeControl( CTRL_TOOLBAR, IsHorizontal() ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT,
aCtrlRegion, nState, aControlValue, rtl::OUString() );
// each toolbar gets a thin border to better recognize its borders on the homogeneous docking area
@@ -195,7 +195,7 @@ void DockingAreaWindow::Paint( const Rectangle& )
}
else
{
- // create map to find toolbar lines
+ // create map to find toolbar lines
Size aOutSz = GetOutputSizePixel();
std::map< int, int > ranges;
USHORT nChildren = GetChildCount();
@@ -229,7 +229,7 @@ void DockingAreaWindow::Paint( const Rectangle& )
aTBRect.Top() = 0;
aTBRect.Bottom() = aOutSz.Height() - 1;
}
- DrawNativeControl( CTRL_TOOLBAR, IsHorizontal() ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT,
+ DrawNativeControl( CTRL_TOOLBAR, IsHorizontal() ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT,
aTBRect, nState, aControlValue, rtl::OUString() );
}
}
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index ee8e584ac234..b472b8ccc0a1 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,13 +59,13 @@ class ImplDockFloatWin2 : public FloatingWindow
{
private:
ImplDockingWindowWrapper* mpDockWin;
- ULONG mnLastTicks;
- Timer maDockTimer;
- Timer maEndDockTimer;
- Point maDockPos;
- Rectangle maDockRect;
+ ULONG mnLastTicks;
+ Timer maDockTimer;
+ Timer maEndDockTimer;
+ Point maDockPos;
+ Rectangle maDockRect;
BOOL mbInMove;
- ULONG mnLastUserEvent;
+ ULONG mnLastUserEvent;
DECL_LINK( DockingHdl, ImplDockFloatWin2* );
DECL_LINK( DockTimerHdl, ImplDockFloatWin2* );
@@ -75,14 +75,14 @@ public:
ImplDockingWindowWrapper* pDockingWin );
~ImplDockFloatWin2();
- virtual void Move();
- virtual void Resize();
- virtual void TitleButtonClick( USHORT nButton );
- virtual void Pin();
- virtual void Roll();
- virtual void PopupModeEnd();
- virtual void Resizing( Size& rSize );
- virtual BOOL Close();
+ virtual void Move();
+ virtual void Resize();
+ virtual void TitleButtonClick( USHORT nButton );
+ virtual void Pin();
+ virtual void Roll();
+ virtual void PopupModeEnd();
+ virtual void Resizing( Size& rSize );
+ virtual BOOL Close();
using Window::SetPosSizePixel;
virtual void SetPosSizePixel( long nX, long nY,
long nWidth, long nHeight,
@@ -213,8 +213,8 @@ IMPL_LINK( ImplDockFloatWin2, DockingHdl, ImplDockFloatWin2*, EMPTYARG )
}
}
- if( mpDockWin->IsDockable() &&
- mpDockWin->GetWindow()->IsVisible() &&
+ if( mpDockWin->IsDockable() &&
+ mpDockWin->GetWindow()->IsVisible() &&
(Time::GetSystemTicks() - mnLastTicks > 500) &&
( aState.mnState & ( MOUSE_LEFT | MOUSE_MIDDLE | MOUSE_RIGHT ) ) &&
!(aState.mnState & KEY_MOD1) && // i43499 CTRL disables docking now
@@ -433,7 +433,7 @@ void DockingManager::StartPopupMode( ToolBox *pParentToolBox, const Window *pWin
void DockingManager::StartPopupMode( ToolBox *pParentToolBox, const Window *pWindow )
{
StartPopupMode( pParentToolBox, pWindow, FLOATWIN_POPUPMODE_ALLOWTEAROFF |
- FLOATWIN_POPUPMODE_NOFOCUSCLOSE |
+ FLOATWIN_POPUPMODE_NOFOCUSCLOSE |
FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE |
FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE );
}
@@ -512,14 +512,14 @@ Rectangle DockingManager::GetPosSizePixel( const Window *pWindow )
// if TEAROFF_DASHED defined a single dashed line is used
// otherwise multiple smaller lines will be painted
-//#define TEAROFF_DASHED
+//#define TEAROFF_DASHED
// size of the drag area
#ifdef TEAROFF_DASHED
-#define POPUP_DRAGBORDER 2
-#define POPUP_DRAGGRIP 5
+#define POPUP_DRAGBORDER 2
+#define POPUP_DRAGGRIP 5
#else
-#define POPUP_DRAGBORDER 3
+#define POPUP_DRAGBORDER 3
#define POPUP_DRAGGRIP 5
#endif
#define POPUP_DRAGHEIGHT (POPUP_DRAGGRIP+POPUP_DRAGBORDER+POPUP_DRAGBORDER)
@@ -531,11 +531,11 @@ private:
ImplDockingWindowWrapper* mpDockingWin;
BOOL mbHighlight;
BOOL mbMoving;
- bool mbTrackingEnabled;
+ bool mbTrackingEnabled;
Point maDelta;
Point maTearOffPosition;
- bool mbGripAtBottom;
- bool mbHasGrip;
+ bool mbGripAtBottom;
+ bool mbHasGrip;
void ImplSetBorder();
public:
@@ -557,13 +557,13 @@ public:
void DrawGrip();
void DrawBorder();
- bool hasGrip() const { return mbHasGrip; }
+ bool hasGrip() const { return mbHasGrip; }
};
-ImplPopupFloatWin::ImplPopupFloatWin( Window* pParent, ImplDockingWindowWrapper* pDockingWin, bool bHasGrip ) :
+ImplPopupFloatWin::ImplPopupFloatWin( Window* pParent, ImplDockingWindowWrapper* pDockingWin, bool bHasGrip ) :
FloatingWindow( pParent, WB_NOBORDER | WB_SYSTEMWINDOW | WB_NOSHADOW)
{
- mpWindowImpl->mbToolbarFloatingWindow = TRUE; // indicate window type, required for accessibility
+ mpWindowImpl->mbToolbarFloatingWindow = TRUE; // indicate window type, required for accessibility
// which should not see this window as a toplevel window
mpDockingWin = pDockingWin;
mbHighlight = FALSE;
@@ -586,7 +586,7 @@ ImplPopupFloatWin::~ImplPopupFloatWin()
// this is to avoid appearance of this window as standalone window in the accessibility hierarchy
// as this window is only used as a helper for subtoolbars that are not teared-off, the parent toolbar
- // has to provide accessibility support (as implemented in the toolkit)
+ // has to provide accessibility support (as implemented in the toolkit)
// so the contained toolbar should appear as child of the correponsing toolbar item of the parent toolbar
return ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >();
}
@@ -617,7 +617,7 @@ void ImplPopupFloatWin::ImplSetBorder()
void ImplPopupFloatWin::Resize()
{
// the borderview overwrites the border during resize so restore it
- ImplSetBorder();
+ ImplSetBorder();
}
Rectangle ImplPopupFloatWin::GetDragRect() const
@@ -740,8 +740,8 @@ void ImplPopupFloatWin::DrawGrip()
//aRect.nLeft = aRect.nLeft + (aRect.getWidth() - width) / 2;
aRect.nLeft = (aRect.nLeft + aRect.nRight - width) / 2;
aRect.nRight = aRect.nLeft + width;
-
- int i=0;
+
+ int i=0;
while( i< POPUP_DRAGGRIP )
{
DrawRect( aRect );
@@ -836,7 +836,7 @@ void ImplPopupFloatWin::Tracking( const TrackingEvent& rTEvt )
{
// move the window according to mouse pos
PointerState aState = GetParent()->GetPointerState();
- if (ImplHasMirroredGraphics() && IsRTLEnabled())
+ if (ImplHasMirroredGraphics() && IsRTLEnabled())
ImplMirrorFramePos(aState.maPos);
maTearOffPosition = aState.maPos - maDelta;
GetWindow( WINDOW_BORDER )->SetPosPixel( maTearOffPosition );
@@ -853,8 +853,8 @@ ImplDockingWindowWrapper::ImplDockingWindowWrapper( const Window *pWindow )
mpDockingWindow = (Window*) pWindow;
mpParent = pWindow->GetParent();
- mbDockable = TRUE;
- mbLocked = FALSE;
+ mbDockable = TRUE;
+ mbLocked = FALSE;
mnFloatBits = WB_BORDER | WB_CLOSEABLE | WB_SIZEABLE | (pWindow->GetStyle() & DOCKWIN_FLOATSTYLES);
DockingWindow *pDockWin = dynamic_cast< DockingWindow* > ( mpDockingWindow );
if( pDockWin )
@@ -1145,7 +1145,7 @@ BOOL ImplDockingWindowWrapper::Close()
void ImplDockingWindowWrapper::ToggleFloatingMode()
{
// notify dockingwindow/toolbox
- // note: this must be done *before* notifying the
+ // note: this must be done *before* notifying the
// listeners to have the toolbox in the proper state
if( GetWindow()->ImplIsDockingWindow() )
((DockingWindow*) GetWindow())->ToggleFloatingMode();
@@ -1231,7 +1231,7 @@ BOOL ImplDockingWindowWrapper::IsTitleButtonVisible( USHORT nButton ) const
{
if ( nButton == TITLE_BUTTON_DOCKING )
return mbDockBtn;
- else // if ( nButton == TITLE_BUTTON_HIDE )
+ else // if ( nButton == TITLE_BUTTON_HIDE )
return mbHideBtn;
}
}
@@ -1313,7 +1313,7 @@ IMPL_LINK( ImplDockingWindowWrapper, PopupModeEnd, void*, EMPTYARG )
if ( mpOldBorderWin )
{
GetWindow()->SetParent( mpOldBorderWin );
- ((ImplBorderWindow*)mpOldBorderWin)->GetBorder(
+ ((ImplBorderWindow*)mpOldBorderWin)->GetBorder(
GetWindow()->mpWindowImpl->mnLeftBorder, GetWindow()->mpWindowImpl->mnTopBorder,
GetWindow()->mpWindowImpl->mnRightBorder, GetWindow()->mpWindowImpl->mnBottomBorder );
mpOldBorderWin->Resize();
@@ -1371,7 +1371,7 @@ void ImplDockingWindowWrapper::SetFloatingMode( BOOL bFloatMode )
mnFloatBits & ( WB_MOVEABLE | WB_SIZEABLE | WB_CLOSEABLE ) ?
mnFloatBits | WB_SYSTEMWINDOW
//#ifdef __USE_OWNERDRAWDECORATION__
- | WB_OWNERDRAWDECORATION
+ | WB_OWNERDRAWDECORATION
//#endif
: mnFloatBits,
this );
@@ -1445,7 +1445,7 @@ void ImplDockingWindowWrapper::SetFloatingMode( BOOL bFloatMode )
if ( mpOldBorderWin )
{
GetWindow()->SetParent( mpOldBorderWin );
- ((ImplBorderWindow*)mpOldBorderWin)->GetBorder(
+ ((ImplBorderWindow*)mpOldBorderWin)->GetBorder(
GetWindow()->mpWindowImpl->mnLeftBorder, GetWindow()->mpWindowImpl->mnTopBorder,
GetWindow()->mpWindowImpl->mnRightBorder, GetWindow()->mpWindowImpl->mnBottomBorder );
mpOldBorderWin->Resize();
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index a176f97d88d5..7e575b66205e 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,8 +59,8 @@ public:
ImplData();
~ImplData();
- Window* mpParent;
- Size maMaxOutSize;
+ Window* mpParent;
+ Size maMaxOutSize;
};
DockingWindow::ImplData::ImplData()
@@ -79,12 +79,12 @@ class ImplDockFloatWin : public FloatingWindow
{
private:
DockingWindow* mpDockWin;
- ULONG mnLastTicks;
- Timer maDockTimer;
- Point maDockPos;
- Rectangle maDockRect;
+ ULONG mnLastTicks;
+ Timer maDockTimer;
+ Point maDockPos;
+ Rectangle maDockRect;
BOOL mbInMove;
- ULONG mnLastUserEvent;
+ ULONG mnLastUserEvent;
DECL_LINK( DockingHdl, ImplDockFloatWin* );
DECL_LINK( DockTimerHdl, ImplDockFloatWin* );
@@ -93,14 +93,14 @@ public:
DockingWindow* pDockingWin );
~ImplDockFloatWin();
- virtual void Move();
- virtual void Resize();
- virtual void TitleButtonClick( USHORT nButton );
- virtual void Pin();
- virtual void Roll();
- virtual void PopupModeEnd();
- virtual void Resizing( Size& rSize );
- virtual BOOL Close();
+ virtual void Move();
+ virtual void Resize();
+ virtual void TitleButtonClick( USHORT nButton );
+ virtual void Pin();
+ virtual void Roll();
+ virtual void PopupModeEnd();
+ virtual void Resizing( Size& rSize );
+ virtual BOOL Close();
ULONG GetLastTicks() const { return mnLastTicks; }
};
@@ -175,8 +175,8 @@ IMPL_LINK( ImplDockFloatWin, DockingHdl, ImplDockFloatWin*, EMPTYARG )
PointerState aState = mpDockWin->GetParent()->GetPointerState();
mnLastUserEvent = 0;
- if( mpDockWin->IsDockable() &&
- (Time::GetSystemTicks() - mnLastTicks > 500) &&
+ if( mpDockWin->IsDockable() &&
+ (Time::GetSystemTicks() - mnLastTicks > 500) &&
( aState.mnState & ( MOUSE_LEFT | MOUSE_MIDDLE | MOUSE_RIGHT ) ) &&
!(aState.mnState & KEY_MOD1) ) // i43499 CTRL disables docking now
{
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index 9896333174ce..816bd63d215c 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,8 +51,8 @@ public:
ImplData();
~ImplData();
- ToolBox* mpBox;
- Rectangle maItemEdgeClipRect; // used to clip the common edge between a toolbar item and the border of this window
+ ToolBox* mpBox;
+ Rectangle maItemEdgeClipRect; // used to clip the common edge between a toolbar item and the border of this window
};
FloatingWindow::ImplData::ImplData()
@@ -264,7 +264,7 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
BOOL bRTL = Application::GetSettings().GetLayoutRTL();
- Rectangle devRect( pW->OutputToAbsoluteScreenPixel( normRect.TopLeft() ),
+ Rectangle devRect( pW->OutputToAbsoluteScreenPixel( normRect.TopLeft() ),
pW->OutputToAbsoluteScreenPixel( normRect.BottomRight() ) );
Rectangle devRectRTL( devRect );
@@ -339,13 +339,13 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
bBreak = FALSE;
}
if( bBreak )
- {
+ {
e1 = devRect.TopLeft();
e2 = devRect.BottomLeft();
// set non-zero width
e2.X()++;
// don't clip corners
- e1.Y()++;
+ e1.Y()++;
e2.Y()--;
}
break;
@@ -363,13 +363,13 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
bBreak = FALSE;
}
if( bBreak )
- {
+ {
e1 = devRect.TopRight();
e2 = devRect.BottomRight();
// set non-zero width
e2.X()++;
// don't clip corners
- e1.Y()++;
+ e1.Y()++;
e2.Y()--;
}
break;
@@ -379,13 +379,13 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
if ( aPos.Y() < aScreenRect.Top() )
bBreak = FALSE;
if( bBreak )
- {
+ {
e1 = devRect.TopLeft();
e2 = devRect.TopRight();
// set non-zero height
e2.Y()++;
// don't clip corners
- e1.X()++;
+ e1.X()++;
e2.X()--;
}
break;
@@ -394,13 +394,13 @@ Point FloatingWindow::ImplCalcPos( Window* pWindow,
if ( aPos.Y()+aSize.Height() > aScreenRect.Bottom() )
bBreak = FALSE;
if( bBreak )
- {
+ {
e1 = devRect.BottomLeft();
e2 = devRect.BottomRight();
// set non-zero height
e2.Y()++;
// don't clip corners
- e1.X()++;
+ e1.X()++;
e2.X()--;
}
break;
@@ -483,7 +483,7 @@ FloatingWindow* FloatingWindow::ImplFloatHitTest( Window* pReference, const Poin
else
aAbsolute = Point( pReference->OutputToAbsoluteScreenPixel(
pReference->ScreenToOutputPixel(rPos) ) );
-
+
do
{
// compute the floating window's size in absolute screen coordinates
@@ -499,8 +499,8 @@ FloatingWindow* FloatingWindow::ImplFloatHitTest( Window* pReference, const Poin
return pWin;
}
- // test, if mouse is in rectangle, (this is typically the rect of the active
- // toolbox item or similar)
+ // test, if mouse is in rectangle, (this is typically the rect of the active
+ // toolbox item or similar)
// note: maFloatRect is set in FloatingWindow::StartPopupMode() and
// is already in absolute device coordinates
if ( pWin->maFloatRect.IsInside( aAbsolute ) )
@@ -669,7 +669,7 @@ void FloatingWindow::StartPopupMode( const Rectangle& rRect, ULONG nFlags )
if ( IsRollUp() )
RollDown();
- // remove title
+ // remove title
mnOldTitle = mnTitle;
if ( ( mpWindowImpl->mnStyle & WB_POPUP ) && GetText().Len() )
SetTitleType( FLOATWIN_TITLE_POPUP );
@@ -750,15 +750,15 @@ void FloatingWindow::StartPopupMode( ToolBox* pBox, ULONG nFlags )
aRect.SetPos( aPos );
nFlags |=
- FLOATWIN_POPUPMODE_NOFOCUSCLOSE |
-// FLOATWIN_POPUPMODE_NOMOUSECLOSE |
+ FLOATWIN_POPUPMODE_NOFOCUSCLOSE |
+// FLOATWIN_POPUPMODE_NOMOUSECLOSE |
FLOATWIN_POPUPMODE_ALLMOUSEBUTTONCLOSE |
-// FLOATWIN_POPUPMODE_NOMOUSERECTCLOSE | // #105968# floating toolboxes should close when clicked in (parent's) float rect
+// FLOATWIN_POPUPMODE_NOMOUSERECTCLOSE | // #105968# floating toolboxes should close when clicked in (parent's) float rect
FLOATWIN_POPUPMODE_NOMOUSEUPCLOSE;
-// | FLOATWIN_POPUPMODE_NOAPPFOCUSCLOSE;
+// | FLOATWIN_POPUPMODE_NOAPPFOCUSCLOSE;
/*
- * FLOATWIN_POPUPMODE_NOKEYCLOSE |
+ * FLOATWIN_POPUPMODE_NOKEYCLOSE |
* don't set since it disables closing floaters with escape
*/
@@ -792,7 +792,7 @@ void FloatingWindow::ImplEndPopupMode( USHORT nFlags, ULONG nFocusId )
while ( pSVData->maWinData.mpFirstFloat && pSVData->maWinData.mpFirstFloat != this )
pSVData->maWinData.mpFirstFloat->EndPopupMode( FLOATWIN_POPUPMODEEND_CANCEL );
-
+
// Fenster aus der Liste austragen
pSVData->maWinData.mpFirstFloat = mpNextFloat;
mpNextFloat = NULL;
diff --git a/vcl/source/window/introwin.cxx b/vcl/source/window/introwin.cxx
index a0926ec789ad..b662b054a761 100644
--- a/vcl/source/window/introwin.cxx
+++ b/vcl/source/window/introwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/javachild.cxx b/vcl/source/window/javachild.cxx
index 3b26e92829a7..250b82010855 100644
--- a/vcl/source/window/javachild.cxx
+++ b/vcl/source/window/javachild.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_vcl.hxx"
-
+
#ifdef SOLAR_JAVA
#include <jni.h>
#endif
@@ -83,20 +83,20 @@ void JavaChildWindow::implTestJavaException( void* pEnv )
#ifdef SOLAR_JAVA
JNIEnv* pJavaEnv = reinterpret_cast< JNIEnv* >( pEnv );
jthrowable jtThrowable = pJavaEnv->ExceptionOccurred();
-
- if( jtThrowable )
+
+ if( jtThrowable )
{ // is it a java exception ?
#if OSL_DEBUG_LEVEL > 1
pJavaEnv->ExceptionDescribe();
-#endif // OSL_DEBUG_LEVEL > 1
+#endif // OSL_DEBUG_LEVEL > 1
pJavaEnv->ExceptionClear();
jclass jcThrowable = pJavaEnv->FindClass("java/lang/Throwable");
jmethodID jmThrowable_getMessage = pJavaEnv->GetMethodID(jcThrowable, "getMessage", "()Ljava/lang/String;");
jstring jsMessage = (jstring) pJavaEnv->CallObjectMethod(jtThrowable, jmThrowable_getMessage);
::rtl::OUString ouMessage;
-
- if(jsMessage)
+
+ if(jsMessage)
{
const jchar * jcMessage = pJavaEnv->GetStringChars(jsMessage, NULL);
ouMessage = ::rtl::OUString(jcMessage);
@@ -112,7 +112,7 @@ void JavaChildWindow::implTestJavaException( void* pEnv )
sal_IntPtr JavaChildWindow::getParentWindowHandleForJava()
{
- sal_IntPtr nRet = 0;
+ sal_IntPtr nRet = 0;
#if defined WNT
nRet = reinterpret_cast< sal_IntPtr >( GetSystemData()->hWnd );
@@ -122,7 +122,7 @@ sal_IntPtr JavaChildWindow::getParentWindowHandleForJava()
#elif defined UNX
#ifdef SOLAR_JAVA
uno::Reference< lang::XMultiServiceFactory > xFactory( vcl::unohelper::GetMultiServiceFactory() );
-
+
if( xFactory.is() && ( GetSystemData()->aWindow > 0 ) )
{
try
@@ -130,65 +130,65 @@ sal_IntPtr JavaChildWindow::getParentWindowHandleForJava()
::rtl::Reference< ::jvmaccess::VirtualMachine > xVM;
uno::Reference< java::XJavaVM > xJavaVM( xFactory->createInstance( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.java.JavaVirtualMachine") ) ), uno::UNO_QUERY );
uno::Sequence< sal_Int8 > aProcessID( 17 );
-
+
rtl_getGlobalProcessId( (sal_uInt8*) aProcessID.getArray() );
aProcessID[ 16 ] = 0;
OSL_ENSURE(sizeof (sal_Int64) >= sizeof (jvmaccess::VirtualMachine *), "Pointer cannot be represented as sal_Int64");
sal_Int64 nPointer = reinterpret_cast< sal_Int64 >( static_cast< jvmaccess::VirtualMachine * >(0));
xJavaVM->getJavaVM(aProcessID) >>= nPointer;
xVM = reinterpret_cast< jvmaccess::VirtualMachine * >(nPointer);
-
+
if( xVM.is() )
{
try
{
::jvmaccess::VirtualMachine::AttachGuard aVMAttachGuard( xVM );
JNIEnv* pEnv = aVMAttachGuard.getEnvironment();
-
- jclass jcToolkit = pEnv->FindClass("java/awt/Toolkit");
+
+ jclass jcToolkit = pEnv->FindClass("java/awt/Toolkit");
implTestJavaException(pEnv);
-
+
jmethodID jmToolkit_getDefaultToolkit = pEnv->GetStaticMethodID( jcToolkit, "getDefaultToolkit", "()Ljava/awt/Toolkit;" );
implTestJavaException(pEnv);
-
+
pEnv->CallStaticObjectMethod(jcToolkit, jmToolkit_getDefaultToolkit);
implTestJavaException(pEnv);
-
+
jclass jcMotifAppletViewer = pEnv->FindClass("sun/plugin/navig/motif/MotifAppletViewer");
if( pEnv->ExceptionOccurred() )
{
pEnv->ExceptionClear();
-
- jcMotifAppletViewer = pEnv->FindClass( "sun/plugin/viewer/MNetscapePluginContext");
+
+ jcMotifAppletViewer = pEnv->FindClass( "sun/plugin/viewer/MNetscapePluginContext");
implTestJavaException(pEnv);
}
-
- jclass jcClassLoader = pEnv->FindClass("java/lang/ClassLoader");
+
+ jclass jcClassLoader = pEnv->FindClass("java/lang/ClassLoader");
implTestJavaException(pEnv);
-
+
jmethodID jmClassLoader_loadLibrary = pEnv->GetStaticMethodID( jcClassLoader, "loadLibrary", "(Ljava/lang/Class;Ljava/lang/String;Z)V");
implTestJavaException(pEnv);
-
+
jstring jsplugin = pEnv->NewStringUTF("javaplugin_jni");
implTestJavaException(pEnv);
-
- pEnv->CallStaticVoidMethod(jcClassLoader, jmClassLoader_loadLibrary, jcMotifAppletViewer, jsplugin, JNI_FALSE);
+
+ pEnv->CallStaticVoidMethod(jcClassLoader, jmClassLoader_loadLibrary, jcMotifAppletViewer, jsplugin, JNI_FALSE);
implTestJavaException(pEnv);
-
+
jmethodID jmMotifAppletViewer_getWidget = pEnv->GetStaticMethodID( jcMotifAppletViewer, "getWidget", "(IIIII)I" );
implTestJavaException(pEnv);
-
+
const Size aSize( GetOutputSizePixel() );
- jint ji_widget = pEnv->CallStaticIntMethod( jcMotifAppletViewer, jmMotifAppletViewer_getWidget,
+ jint ji_widget = pEnv->CallStaticIntMethod( jcMotifAppletViewer, jmMotifAppletViewer_getWidget,
GetSystemData()->aWindow, 0, 0, aSize.Width(), aSize.Height() );
implTestJavaException(pEnv);
-
+
nRet = static_cast< sal_IntPtr >( ji_widget );
}
catch( uno::RuntimeException& )
{
}
-
+
if( !nRet )
nRet = static_cast< sal_IntPtr >( GetSystemData()->aWindow );
}
diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx
index 575b8022b739..19ff6c93178e 100644
--- a/vcl/source/window/keycod.cxx
+++ b/vcl/source/window/keycod.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,9 +96,9 @@ KeyCode::KeyCode( const ResId& rResId )
{
pResMgr->Increment( sizeof( RSHEADER_TYPE ) );
- ULONG nKeyCode = pResMgr->ReadLong();
- ULONG nModifier = pResMgr->ReadLong();
- ULONG nKeyFunc = pResMgr->ReadLong();
+ ULONG nKeyCode = pResMgr->ReadLong();
+ ULONG nModifier = pResMgr->ReadLong();
+ ULONG nKeyFunc = pResMgr->ReadLong();
eFunc = (KeyFuncType)nKeyFunc;
if ( eFunc != KEYFUNC_DONTKNOW )
diff --git a/vcl/source/window/keyevent.cxx b/vcl/source/window/keyevent.cxx
index 2677c31cc100..9a2b4dc1db7c 100644
--- a/vcl/source/window/keyevent.cxx
+++ b/vcl/source/window/keyevent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,7 +72,7 @@ void KeyEvent::InitKeyEvent( ::com::sun::star::awt::KeyEvent& rEvent ) const
}
KeyEvent KeyEvent::LogicalTextDirectionality (TextDirectionality eMode) const
-{
+{
KeyEvent aClone(*this);
USHORT nCode = maKeyCode.GetCode();
@@ -92,11 +92,11 @@ KeyEvent KeyEvent::LogicalTextDirectionality (TextDirectionality eMode) const
switch (nCode)
{
case KEY_DOWN: aClone.maKeyCode = KeyCode(KEY_RIGHT, nMod); break;
- case KEY_UP: aClone.maKeyCode = KeyCode(KEY_LEFT, nMod); break;
- case KEY_LEFT: aClone.maKeyCode = KeyCode(KEY_DOWN, nMod); break;
+ case KEY_UP: aClone.maKeyCode = KeyCode(KEY_LEFT, nMod); break;
+ case KEY_LEFT: aClone.maKeyCode = KeyCode(KEY_DOWN, nMod); break;
case KEY_RIGHT: aClone.maKeyCode = KeyCode(KEY_UP, nMod); break;
}
- break;
+ break;
case TextDirectionality_LeftToRight_TopToBottom:
/* do nothing */
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 41555312b249..e269766321b6 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,9 +81,9 @@ namespace vcl
struct MenuLayoutData : public ControlLayoutData
{
- std::vector< USHORT > m_aLineItemIds;
- std::vector< USHORT > m_aLineItemPositions;
- std::map< USHORT, Rectangle > m_aVisibleItemBoundRects;
+ std::vector< USHORT > m_aLineItemIds;
+ std::vector< USHORT > m_aLineItemPositions;
+ std::map< USHORT, Rectangle > m_aVisibleItemBoundRects;
};
}
@@ -114,8 +114,8 @@ static BOOL ImplHilite( const MouseEvent& rMEvt )
// read XWP settings at program startup
if (init == FALSE) {
- BOOL rc;
- ULONG cb = sizeof(HOOKCONFIG);
+ BOOL rc;
+ ULONG cb = sizeof(HOOKCONFIG);
memset(&hc, 0, sizeof(HOOKCONFIG));
rc = PrfQueryProfileData( HINI_USER, INIAPP_XWPHOOK, INIKEY_HOOK_CONFIG,
&hc, &cb);
@@ -148,29 +148,29 @@ static BOOL ImplAccelDisabled()
struct MenuItemData
{
- USHORT nId; // SV Id
- MenuItemType eType; // MenuItem-Type
- MenuItemBits nBits; // MenuItem-Bits
- Menu* pSubMenu; // Pointer auf das SubMenu
- Menu* pAutoSubMenu; // Pointer auf SubMenu aus Resource
- XubString aText; // Menu-Text
- XubString aHelpText; // Help-String
- XubString aTipHelpText; // TipHelp-String (eg, expanded filenames)
- XubString aCommandStr; // CommandString
+ USHORT nId; // SV Id
+ MenuItemType eType; // MenuItem-Type
+ MenuItemBits nBits; // MenuItem-Bits
+ Menu* pSubMenu; // Pointer auf das SubMenu
+ Menu* pAutoSubMenu; // Pointer auf SubMenu aus Resource
+ XubString aText; // Menu-Text
+ XubString aHelpText; // Help-String
+ XubString aTipHelpText; // TipHelp-String (eg, expanded filenames)
+ XubString aCommandStr; // CommandString
XubString aHelpCommandStr; // Help command string (to reference external help)
- ULONG nHelpId; // Help-Id
- ULONG nUserValue; // User value
- Image aImage; // Image
- KeyCode aAccelKey; // Accelerator-Key
- BOOL bChecked; // Checked
- BOOL bEnabled; // Enabled
- BOOL bVisible; // Visible (note: this flag will not override MENU_FLAG_HIDEDISABLEDENTRIES when true)
- BOOL bIsTemporary; // Temporary inserted ('No selection possible')
- BOOL bMirrorMode;
- long nItemImageAngle;
- Size aSz; // nur temporaer gueltig
- XubString aAccessibleName; // accessible name
- XubString aAccessibleDescription; // accessible description
+ ULONG nHelpId; // Help-Id
+ ULONG nUserValue; // User value
+ Image aImage; // Image
+ KeyCode aAccelKey; // Accelerator-Key
+ BOOL bChecked; // Checked
+ BOOL bEnabled; // Enabled
+ BOOL bVisible; // Visible (note: this flag will not override MENU_FLAG_HIDEDISABLEDENTRIES when true)
+ BOOL bIsTemporary; // Temporary inserted ('No selection possible')
+ BOOL bMirrorMode;
+ long nItemImageAngle;
+ Size aSz; // nur temporaer gueltig
+ XubString aAccessibleName; // accessible name
+ XubString aAccessibleDescription; // accessible description
SalMenuItem* pSalMenuItem; // access to native menu
@@ -188,7 +188,7 @@ struct MenuItemData
return bChecked || ( nBits & ( MIB_RADIOCHECK | MIB_CHECKABLE | MIB_AUTOCHECK ) );
}
};
-
+
MenuItemData::~MenuItemData()
{
if( pAutoSubMenu )
@@ -225,7 +225,7 @@ public:
{ return (MenuItemData*)List::GetObject( nPos ); }
MenuItemData* SearchItem( xub_Unicode cSelectChar, KeyCode aKeyCode, USHORT& rPos, USHORT& nDuplicates, USHORT nCurrentPos ) const;
- USHORT GetItemCount( xub_Unicode cSelectChar ) const;
+ USHORT GetItemCount( xub_Unicode cSelectChar ) const;
USHORT GetItemCount( KeyCode aKeyCode ) const;
uno::Reference< i18n::XCharacterClassification > GetCharClass() const;
@@ -247,20 +247,20 @@ MenuItemData* MenuItemList::Insert( USHORT nId, MenuItemType eType,
const XubString& rStr, const Image& rImage,
Menu* pMenu, USHORT nPos )
{
- MenuItemData* pData = new MenuItemData( rStr, rImage );
- pData->nId = nId;
- pData->eType = eType;
- pData->nBits = nBits;
- pData->pSubMenu = NULL;
- pData->pAutoSubMenu = NULL;
- pData->nHelpId = 0;
- pData->nUserValue = 0;
- pData->bChecked = FALSE;
- pData->bEnabled = TRUE;
- pData->bVisible = TRUE;
- pData->bIsTemporary = FALSE;
- pData->bMirrorMode = FALSE;
- pData->nItemImageAngle = 0;
+ MenuItemData* pData = new MenuItemData( rStr, rImage );
+ pData->nId = nId;
+ pData->eType = eType;
+ pData->nBits = nBits;
+ pData->pSubMenu = NULL;
+ pData->pAutoSubMenu = NULL;
+ pData->nHelpId = 0;
+ pData->nUserValue = 0;
+ pData->bChecked = FALSE;
+ pData->bEnabled = TRUE;
+ pData->bVisible = TRUE;
+ pData->bIsTemporary = FALSE;
+ pData->bMirrorMode = FALSE;
+ pData->nItemImageAngle = 0;
SalItemParams aSalMIData;
aSalMIData.nId = nId;
@@ -279,20 +279,20 @@ MenuItemData* MenuItemList::Insert( USHORT nId, MenuItemType eType,
void MenuItemList::InsertSeparator( USHORT nPos )
{
- MenuItemData* pData = new MenuItemData;
- pData->nId = 0;
- pData->eType = MENUITEM_SEPARATOR;
- pData->nBits = 0;
- pData->pSubMenu = NULL;
- pData->pAutoSubMenu = NULL;
- pData->nHelpId = 0;
- pData->nUserValue = 0;
- pData->bChecked = FALSE;
- pData->bEnabled = TRUE;
- pData->bVisible = TRUE;
- pData->bIsTemporary = FALSE;
- pData->bMirrorMode = FALSE;
- pData->nItemImageAngle = 0;
+ MenuItemData* pData = new MenuItemData;
+ pData->nId = 0;
+ pData->eType = MENUITEM_SEPARATOR;
+ pData->nBits = 0;
+ pData->pSubMenu = NULL;
+ pData->pAutoSubMenu = NULL;
+ pData->nHelpId = 0;
+ pData->nUserValue = 0;
+ pData->bChecked = FALSE;
+ pData->bEnabled = TRUE;
+ pData->bVisible = TRUE;
+ pData->bIsTemporary = FALSE;
+ pData->bMirrorMode = FALSE;
+ pData->nItemImageAngle = 0;
SalItemParams aSalMIData;
aSalMIData.nId = 0;
@@ -338,7 +338,7 @@ MenuItemData* MenuItemList::SearchItem( xub_Unicode cSelectChar, KeyCode aKeyCod
USHORT nListCount = (USHORT)Count();
// try character code first
- nDuplicates = GetItemCount( cSelectChar ); // return number of duplicates
+ nDuplicates = GetItemCount( cSelectChar ); // return number of duplicates
if( nDuplicates )
{
for ( rPos = 0; rPos < nListCount; rPos++)
@@ -347,7 +347,7 @@ MenuItemData* MenuItemList::SearchItem( xub_Unicode cSelectChar, KeyCode aKeyCod
if ( pData->bEnabled && rI18nHelper.MatchMnemonic( pData->aText, cSelectChar ) )
{
if( nDuplicates > 1 && rPos == nCurrentPos )
- continue; // select next entry with the same mnemonic
+ continue; // select next entry with the same mnemonic
else
return pData;
}
@@ -355,7 +355,7 @@ MenuItemData* MenuItemList::SearchItem( xub_Unicode cSelectChar, KeyCode aKeyCod
}
// nothing found, try keycode instead
- nDuplicates = GetItemCount( aKeyCode ); // return number of duplicates
+ nDuplicates = GetItemCount( aKeyCode ); // return number of duplicates
if( nDuplicates )
{
@@ -374,13 +374,13 @@ MenuItemData* MenuItemList::SearchItem( xub_Unicode cSelectChar, KeyCode aKeyCod
KeyCode mnKeyCode;
xub_Unicode mnUnicode = pData->aText.GetChar(n+1);
Window* pDefWindow = ImplGetDefaultWindow();
- if( (pDefWindow && pDefWindow->ImplGetFrame()->MapUnicodeToKeyCode( mnUnicode, Application::GetSettings().GetUILanguage(), mnKeyCode )
+ if( (pDefWindow && pDefWindow->ImplGetFrame()->MapUnicodeToKeyCode( mnUnicode, Application::GetSettings().GetUILanguage(), mnKeyCode )
&& aKeyCode.GetCode() == mnKeyCode.GetCode())
|| (ascii && rI18nHelper.MatchMnemonic( pData->aText, ascii ) ) )
{
if( nDuplicates > 1 && rPos == nCurrentPos )
- continue; // select next entry with the same mnemonic
+ continue; // select next entry with the same mnemonic
else
return pData;
}
@@ -430,7 +430,7 @@ USHORT MenuItemList::GetItemCount( KeyCode aKeyCode ) const
// if MapUnicodeToKeyCode fails or is unsupported we try the pure ascii mapping of the keycodes
// so we have working shortcuts when ascii mnemonics are used
Window* pDefWindow = ImplGetDefaultWindow();
- if( (pDefWindow && pDefWindow->ImplGetFrame()->MapUnicodeToKeyCode( pData->aText.GetChar(n+1), Application::GetSettings().GetUILanguage(), mnKeyCode )
+ if( (pDefWindow && pDefWindow->ImplGetFrame()->MapUnicodeToKeyCode( pData->aText.GetChar(n+1), Application::GetSettings().GetUILanguage(), mnKeyCode )
&& aKeyCode.GetCode() == mnKeyCode.GetCode())
|| ( ascii && rI18nHelper.MatchMnemonic( pData->aText, ascii ) ) )
nItems++;
@@ -488,7 +488,7 @@ private:
DECL_LINK( ShowHideListener, VclWindowEvent* );
void StateChanged( StateChangedType nType );
- void DataChanged( const DataChangedEvent& rDCEvt );
+ void DataChanged( const DataChangedEvent& rDCEvt );
protected:
Region ImplCalcClipRegion( BOOL bIncludeLogo = TRUE ) const;
void ImplInitClipRegion();
@@ -499,7 +499,7 @@ protected:
void ImplCursorUpDown( BOOL bUp, BOOL bHomeEnd = FALSE );
void ImplHighlightItem( const MouseEvent& rMEvt, BOOL bMBDown );
long ImplGetStartY() const;
- Rectangle ImplGetItemRect( USHORT nPos );
+ Rectangle ImplGetItemRect( USHORT nPos );
public:
MenuFloatingWindow( Menu* pMenu, Window* pParent, WinBits nStyle );
@@ -600,7 +600,7 @@ void DecoToolBox::calcMinSize()
if( GetItemCount() == 0 )
{
ResMgr* pResMgr = ImplGetResMgr();
-
+
Bitmap aBitmap;
if( pResMgr )
aBitmap = Bitmap( ResId( SV_RESID_BITMAP_CLOSEDOC, *pResMgr ) );
@@ -616,7 +616,7 @@ void DecoToolBox::calcMinSize()
}
}
aTbx.SetOutStyle( TOOLBOX_STYLE_FLAT );
- maMinSize = aTbx.CalcWindowSizePixel();
+ maMinSize = aTbx.CalcWindowSizePixel();
}
Size DecoToolBox::getMinSize()
@@ -638,21 +638,21 @@ void DecoToolBox::SetImages( long nMaxHeight, bool bForce )
{
lastSize = nMaxHeight - border;
- Color aEraseColor( 255, 255, 255, 255 );
- BitmapEx aBmpExDst( maImage.GetBitmapEx() );
- BitmapEx aBmpExSrc( GetSettings().GetStyleSettings().GetHighContrastMode() ?
+ Color aEraseColor( 255, 255, 255, 255 );
+ BitmapEx aBmpExDst( maImage.GetBitmapEx() );
+ BitmapEx aBmpExSrc( GetSettings().GetStyleSettings().GetHighContrastMode() ?
maImageHC.GetBitmapEx() : aBmpExDst );
-
+
aEraseColor.SetTransparency( 255 );
aBmpExDst.Erase( aEraseColor );
aBmpExDst.SetSizePixel( Size( lastSize, lastSize ) );
-
+
Rectangle aSrcRect( Point(0,0), maImage.GetSizePixel() );
- Rectangle aDestRect( Point((lastSize - maImage.GetSizePixel().Width())/2,
- (lastSize - maImage.GetSizePixel().Height())/2 ),
+ Rectangle aDestRect( Point((lastSize - maImage.GetSizePixel().Width())/2,
+ (lastSize - maImage.GetSizePixel().Height())/2 ),
maImage.GetSizePixel() );
-
+
aBmpExDst.CopyPixel( aDestRect, aSrcRect, &aBmpExSrc );
SetItemImage( IID_DOCUMENTCLOSE, Image( aBmpExDst ) );
}
@@ -676,7 +676,7 @@ private:
USHORT m_nId;
Link m_aSelectLink;
Link m_aHighlightLink;
-
+
AddButtonEntry() : m_nId( 0 ) {}
};
@@ -686,12 +686,12 @@ private:
ULONG nSaveFocusId;
BOOL mbAutoPopup;
BOOL bIgnoreFirstMove;
- BOOL bStayActive;
+ BOOL bStayActive;
DecoToolBox aCloser;
PushButton aFloatBtn;
PushButton aHideBtn;
-
+
std::map< USHORT, AddButtonEntry > m_aAddButtons;
void HighlightItem( USHORT nPos, BOOL bHighlight );
@@ -700,8 +700,8 @@ private:
USHORT ImplFindEntry( const Point& rMousePos ) const;
void ImplCreatePopup( BOOL bPreSelectFirst );
BOOL ImplHandleKeyEvent( const KeyEvent& rKEvent, BOOL bFromMenu = TRUE );
- Rectangle ImplGetItemRect( USHORT nPos );
-
+ Rectangle ImplGetItemRect( USHORT nPos );
+
void ImplInitStyleSettings();
DECL_LINK( CloserHdl, PushButton* );
@@ -742,7 +742,7 @@ public:
void SetAutoPopup( BOOL bAuto ) { mbAutoPopup = bAuto; }
void ImplLayoutChanged();
Size MinCloseButtonSize();
-
+
// add an arbitrary button to the menubar (will appear next to closer)
USHORT AddMenuBarButton( const Image&, const Link&, const String&, USHORT nPos );
void SetMenuBarButtonHighlightHdl( USHORT nId, const Link& );
@@ -793,7 +793,7 @@ static BOOL ImplHandleHelpEvent( Window* pMenuWindow, Menu* pMenu, USHORT nHighl
{
if( ! pMenu )
return FALSE;
-
+
BOOL bDone = FALSE;
USHORT nId = 0;
@@ -846,7 +846,7 @@ static BOOL ImplHandleHelpEvent( Window* pMenuWindow, Menu* pMenu, USHORT nHighl
// den Hilfe-Index
String aCommand = pMenu->GetItemCommand( nId );
ULONG nHelpId = pMenu->GetHelpId( nId );
-
+
if ( aCommand.Len() )
pHelp->Start( aCommand, NULL );
else if ( nHelpId )
@@ -913,7 +913,7 @@ Menu::Menu( BOOL bMenubar )
Menu::~Menu()
{
DBG_DTOR( Menu, NULL );
-
+
vcl::LazyDeletor<Menu>::Undelete( this );
ImplCallEventListeners( VCLEVENT_OBJECT_DYING, ITEMPOS_INVALID );
@@ -978,7 +978,7 @@ void Menu::ImplInit()
bCanceled = FALSE;
bInCallback = FALSE;
bKilled = FALSE;
- mpLayoutData = NULL;
+ mpLayoutData = NULL;
mpFirstDel = NULL; // Dtor notification list
// Native-support: returns NULL if not supported
mpSalMenu = ImplGetSVData()->mpDefInst->CreateMenu( bIsMenuBar );
@@ -994,7 +994,7 @@ void Menu::ImplLoadRes( const ResId& rResId )
ResMgr* pMgr = rResId.GetResMgr();
if( ! pMgr )
return;
-
+
rResId.SetRT( RSC_MENU );
GetRes( rResId );
@@ -1103,7 +1103,7 @@ void Menu::Deactivate()
if( !aDelData.isDeleted() )
{
bInCallback = FALSE;
-
+
if ( this == pStartMenu )
GetpApp()->HideHelpStatusText();
}
@@ -1280,7 +1280,7 @@ void Menu::InsertItem( const ResId& rResId, USHORT nPos )
ResMgr* pMgr = rResId.GetResMgr();
if( ! pMgr )
return;
-
+
ULONG nObjMask;
GetRes( rResId.SetRT( RSC_MENUITEM ) );
@@ -1620,7 +1620,7 @@ void Menu::SetPopupMenu( USHORT nItemId, PopupMenu* pMenu )
// data exchange
pData->pSubMenu = pMenu;
-
+
// #112023# Make sure pStartedFrom does not point to invalid (old) data
if ( pData->pSubMenu )
pData->pSubMenu->pStartedFrom = 0;
@@ -1903,9 +1903,9 @@ void Menu::SetItemImage( USHORT nItemId, const Image& rImage )
static inline Image ImplRotImage( const Image& rImage, long nAngle10 )
{
- Image aRet;
- BitmapEx aBmpEx( rImage.GetBitmapEx() );
-
+ Image aRet;
+ BitmapEx aBmpEx( rImage.GetBitmapEx() );
+
aBmpEx.Rotate( nAngle10, COL_WHITE );
return Image( aBmpEx );
@@ -1930,9 +1930,9 @@ void Menu::SetItemImageAngle( USHORT nItemId, long nAngle10 )
static inline Image ImplMirrorImage( const Image& rImage )
{
- Image aRet;
- BitmapEx aBmpEx( rImage.GetBitmapEx() );
-
+ Image aRet;
+ BitmapEx aBmpEx( rImage.GetBitmapEx() );
+
aBmpEx.Mirror( BMP_MIRROR_HORZ );
return Image( aBmpEx );
@@ -2021,7 +2021,7 @@ const XubString& Menu::GetHelpCommand( USHORT nItemId ) const
else
return ImplGetSVEmptyStr();
}
-
+
void Menu::SetHelpText( USHORT nItemId, const XubString& rStr )
{
MenuItemData* pData = pItemList->GetData( nItemId );
@@ -2036,7 +2036,7 @@ const XubString& Menu::ImplGetHelpText( USHORT nItemId ) const
if ( pData )
{
- if ( !pData->aHelpText.Len() &&
+ if ( !pData->aHelpText.Len() &&
(( pData->nHelpId ) || ( pData->aCommandStr.Len() )))
{
Help* pHelp = Application::GetHelp();
@@ -2152,7 +2152,7 @@ BOOL Menu::ImplIsVisible( USHORT nPos ) const
// check for separator
if( pNextData && pNextData->bVisible && pNextData->eType == MENUITEM_SEPARATOR )
bVisible = FALSE;
-
+
if( bVisible )
{
for( n = nPos; n > 0; n-- )
@@ -2172,7 +2172,7 @@ BOOL Menu::ImplIsVisible( USHORT nPos ) const
// Fuer den Menubar nicht erlaubt, weil ich nicht mitbekomme
// ob dadurch ein Eintrag verschwindet oder wieder da ist.
- if ( bVisible && !bIsMenuBar && ( nMenuFlags & MENU_FLAG_HIDEDISABLEDENTRIES ) &&
+ if ( bVisible && !bIsMenuBar && ( nMenuFlags & MENU_FLAG_HIDEDISABLEDENTRIES ) &&
!( nMenuFlags & MENU_FLAG_ALWAYSSHOWDISABLEDENTRIES ) )
{
if( !pData ) // e.g. nPos == ITEMPOS_INVALID
@@ -2210,7 +2210,7 @@ BOOL Menu::ImplIsSelectable( USHORT nPos ) const
// check general visibility first
if ( pData && ( pData->nBits & MIB_NOSELECT ) )
bSelectable = FALSE;
-
+
return bSelectable;
}
@@ -2255,14 +2255,14 @@ void Menu::SelectItem( USHORT nItemId )
}
void Menu::SetAccessible( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxAccessible )
-{
+{
mxAccessible = rxAccessible;
}
long Menu::ImplGetNativeCheckAndRadioSize( Window* pWin, long& rCheckHeight, long& rRadioHeight, long &rMaxWidth ) const
{
rMaxWidth = rCheckHeight = rRadioHeight = 0;
-
+
if( ! bIsMenuBar )
{
ImplControlValue aVal;
@@ -2516,7 +2516,7 @@ Size Menu::ImplCalcSize( Window* pWin )
{
nTextPos = (USHORT)(2*nExtra);
aSz.Height() = nFontHeight+6;
-
+
// get menubar height from native methods if supported
if( pWindow->IsNativeControlSupported( CTRL_MENUBAR, PART_ENTIRE_CONTROL ) )
{
@@ -2562,10 +2562,10 @@ static void ImplPaintCheckBackground( Window* i_pWindow, const Rectangle& i_rRec
ImplControlValue aControlValue;
Rectangle aCtrlRegion( i_rRect );
ControlState nState = CTRL_STATE_PRESSED | CTRL_STATE_ENABLED;
-
+
aControlValue.setTristateVal( BUTTONVALUE_ON );
-
- bNativeOk = i_pWindow->DrawNativeControl( CTRL_TOOLBAR, PART_BUTTON,
+
+ bNativeOk = i_pWindow->DrawNativeControl( CTRL_TOOLBAR, PART_BUTTON,
aCtrlRegion, nState, aControlValue,
rtl::OUString() );
}
@@ -2594,7 +2594,7 @@ void Menu::ImplPaint( Window* pWin, USHORT nBorder, long nStartY, MenuItemData*
if ( pLogo )
aTopLeft.X() = pLogo->aBitmap.GetSizePixel().Width();
-
+
int nOuterSpace = 0;
if( !bIsMenuBar )
{
@@ -2676,23 +2676,23 @@ void Menu::ImplPaint( Window* pWin, USHORT nBorder, long nStartY, MenuItemData*
ControlPart nPart = ((pData->nBits & MIB_RADIOCHECK)
? PART_MENU_ITEM_RADIO_MARK
: PART_MENU_ITEM_CHECK_MARK);
-
+
ControlState nState = 0;
-
+
if ( pData->bChecked )
nState |= CTRL_STATE_PRESSED;
-
+
if ( pData->bEnabled )
nState |= CTRL_STATE_ENABLED;
-
+
if ( bHighlighted )
nState |= CTRL_STATE_SELECTED;
-
+
long nCtrlHeight = (pData->nBits & MIB_RADIOCHECK) ? nCheckHeight : nRadioHeight;
aTmpPos.X() = aOuterCheckRect.Left() + (aOuterCheckRect.GetWidth() - nCtrlHeight)/2;
aTmpPos.Y() = aOuterCheckRect.Top() + (aOuterCheckRect.GetHeight() - nCtrlHeight)/2;
-
- Rectangle aCheckRect( aTmpPos, Size( nCtrlHeight, nCtrlHeight ) );
+
+ Rectangle aCheckRect( aTmpPos, Size( nCtrlHeight, nCtrlHeight ) );
pWin->DrawNativeControl( CTRL_MENU_POPUP, nPart,
aCheckRect,
nState,
@@ -2702,7 +2702,7 @@ void Menu::ImplPaint( Window* pWin, USHORT nBorder, long nStartY, MenuItemData*
else if ( pData->bChecked ) // by default do nothing for unchecked items
{
ImplPaintCheckBackground( pWin, aOuterCheckRect, pThisItemOnly && bHighlighted );
-
+
SymbolType eSymbol;
Size aSymbolSize;
if ( pData->nBits & MIB_RADIOCHECK )
@@ -3203,7 +3203,7 @@ BOOL Menu::GetSystemMenuData( SystemMenuData* pData ) const
bool Menu::IsHighlighted( USHORT nItemPos ) const
{
bool bRet = false;
-
+
if( pWindow )
{
if( bIsMenuBar )
@@ -3211,7 +3211,7 @@ bool Menu::IsHighlighted( USHORT nItemPos ) const
else
bRet = ( nItemPos == static_cast< MenuFloatingWindow * > (pWindow)->GetHighlightedItem() );
}
-
+
return bRet;
}
@@ -3320,7 +3320,7 @@ Window* MenuBar::ImplCreate( Window* pParent, Window* pWindow, MenuBar* pMenu )
// depending on the native implementation or the displayable flag
// the menubar windows is supressed (ie, height=0)
- if( !((MenuBar*) pMenu)->IsDisplayable() ||
+ if( !((MenuBar*) pMenu)->IsDisplayable() ||
( pMenu->ImplGetSalMenu() && pMenu->ImplGetSalMenu()->VisibleMenuBar() ) )
nHeight = 0;
@@ -3344,7 +3344,7 @@ BOOL MenuBar::ImplHandleKeyEvent( const KeyEvent& rKEvent, BOOL bFromMenu )
BOOL bDone = FALSE;
// No keyboard processing when system handles the menu or our menubar is invisible
- if( !IsDisplayable() ||
+ if( !IsDisplayable() ||
( ImplGetSalMenu() && ImplGetSalMenu()->VisibleMenuBar() ) )
return bDone;
@@ -3389,11 +3389,11 @@ BOOL MenuBar::HandleMenuActivateEvent( Menu *pMenu ) const
ImplMenuDelData aDelData( this );
pMenu->pStartedFrom = (Menu*)this;
- pMenu->bInCallback = TRUE;
+ pMenu->bInCallback = TRUE;
pMenu->Activate();
-
+
if( !aDelData.isDeleted() )
- pMenu->bInCallback = FALSE;
+ pMenu->bInCallback = FALSE;
}
return TRUE;
}
@@ -3405,10 +3405,10 @@ BOOL MenuBar::HandleMenuDeActivateEvent( Menu *pMenu ) const
ImplMenuDelData aDelData( this );
pMenu->pStartedFrom = (Menu*)this;
- pMenu->bInCallback = TRUE;
+ pMenu->bInCallback = TRUE;
pMenu->Deactivate();
if( !aDelData.isDeleted() )
- pMenu->bInCallback = FALSE;
+ pMenu->bInCallback = FALSE;
}
return TRUE;
}
@@ -3481,7 +3481,7 @@ void MenuBar::RemoveMenuBarButton( USHORT nId )
BOOL MenuBar::HandleMenuButtonEvent( Menu *, USHORT i_nButtonId ) const
{
- return static_cast<MenuBarWindow*>(pWindow)->HandleMenuButtonEvent( i_nButtonId );
+ return static_cast<MenuBarWindow*>(pWindow)->HandleMenuButtonEvent( i_nButtonId );
}
// -----------------------------------------------------------------------
@@ -3768,7 +3768,7 @@ USHORT PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, ULONG nPopupM
if ( bRealExecute )
{
pWin->ImplAddDel( &aDelData );
-
+
ImplDelData aModalWinDel;
pW->ImplAddDel( &aModalWinDel );
pW->ImplIncModalCount();
@@ -3940,7 +3940,7 @@ MenuFloatingWindow::MenuFloatingWindow( Menu* pMen, Window* pParent, WinBits nSt
aSubmenuCloseTimer.SetTimeout( GetSettings().GetMouseSettings().GetMenuDelay() );
aSubmenuCloseTimer.SetTimeoutHdl( LINK( this, MenuFloatingWindow, SubmenuClose ) );
aScrollTimer.SetTimeoutHdl( LINK( this, MenuFloatingWindow, AutoScroll ) );
-
+
AddEventListener( LINK( this, MenuFloatingWindow, ShowHideListener ) );
}
@@ -3952,7 +3952,7 @@ void MenuFloatingWindow::doShutdown()
// otherwise the entry will not be read when the menu is opened again
if( nHighlightedItem != ITEMPOS_INVALID )
pMenu->ImplCallEventListeners( VCLEVENT_MENU_DEHIGHLIGHT, nHighlightedItem );
-
+
if( !bKeyInput && pMenu && pMenu->pStartedFrom && !pMenu->pStartedFrom->bIsMenuBar )
{
// #102461# remove highlight in parent
@@ -3971,12 +3971,12 @@ void MenuFloatingWindow::doShutdown()
pPWin->HighlightItem( i, FALSE );
}
}
-
+
// free the reference to the accessible component
SetAccessible( ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >() );
-
+
aHighlightChangedTimer.Stop();
-
+
// #95056# invalidate screen area covered by system window
// so this can be taken into account if the commandhandler performs a scroll operation
if( GetParent() )
@@ -4044,7 +4044,7 @@ void MenuFloatingWindow::ImplHighlightItem( const MouseEvent& rMEvt, BOOL bMBDow
{
if( ! pMenu )
return;
-
+
long nY = nScrollerHeight;
long nMouseY = rMEvt.GetPosPixel().Y();
Size aOutSz = GetOutputSizePixel();
@@ -4177,7 +4177,7 @@ IMPL_LINK( MenuFloatingWindow, HighlightChanged, Timer*, pTimer )
{
if( ! pMenu )
return 0;
-
+
MenuItemData* pItemData = pMenu->pItemList->GetDataFromPos( nHighlightedItem );
if ( pItemData )
{
@@ -4253,7 +4253,7 @@ IMPL_LINK( MenuFloatingWindow, ShowHideListener, VclWindowEvent*, pEvent )
{
if( ! pMenu )
return 0;
-
+
if( pEvent->GetId() == VCLEVENT_WINDOW_SHOW )
pMenu->ImplCallEventListeners( VCLEVENT_MENU_SHOW, ITEMPOS_INVALID );
else if( pEvent->GetId() == VCLEVENT_WINDOW_HIDE )
@@ -4356,7 +4356,7 @@ void MenuFloatingWindow::EndExecute()
ImplGetSVData()->maWinData.mbNoDeactivate = FALSE;
}
}
-
+
// Wenn von woanders gestartet, dann ab dort aufraumen:
MenuFloatingWindow* pCleanUpFrom = this;
MenuFloatingWindow* pWin = this;
@@ -4480,7 +4480,7 @@ void MenuFloatingWindow::ImplScroll( BOOL bUp )
{
KillActivePopup();
Update();
-
+
if( ! pMenu )
return;
@@ -4645,7 +4645,7 @@ void MenuFloatingWindow::HighlightItem( USHORT nPos, BOOL bHighlight )
{
if( ! pMenu )
return;
-
+
Size aSz = GetOutputSizePixel();
long nStartY = ImplGetStartY();
long nY = nScrollerHeight+nStartY;
@@ -4656,7 +4656,7 @@ void MenuFloatingWindow::HighlightItem( USHORT nPos, BOOL bHighlight )
int nOuterSpace = ImplGetSVData()->maNWFData.mnMenuFormatExtraBorder;
nY += nOuterSpace;
-
+
USHORT nCount = (USHORT)pMenu->pItemList->Count();
for ( USHORT n = 0; n < nCount; n++ )
{
@@ -4676,7 +4676,7 @@ void MenuFloatingWindow::HighlightItem( USHORT nPos, BOOL bHighlight )
long nFontHeight = GetTextHeight();
aItemRect.Right() -= nFontHeight + nFontHeight/4;
}
-
+
if( IsNativeControlSupported( CTRL_MENU_POPUP, PART_ENTIRE_CONTROL ) )
{
Size aPxSize( GetOutputSizePixel() );
@@ -4721,7 +4721,7 @@ void MenuFloatingWindow::HighlightItem( USHORT nPos, BOOL bHighlight )
}
else
SetFillColor( GetSettings().GetStyleSettings().GetMenuColor() );
-
+
DrawRect( aItemRect );
}
pMenu->ImplPaint( this, nScrollerHeight, nStartY, pData, bHighlight );
@@ -4739,7 +4739,7 @@ Rectangle MenuFloatingWindow::ImplGetItemRect( USHORT nPos )
{
if( ! pMenu )
return Rectangle();
-
+
Rectangle aRect;
Size aSz = GetOutputSizePixel();
long nStartY = ImplGetStartY();
@@ -4777,7 +4777,7 @@ void MenuFloatingWindow::ImplCursorUpDown( BOOL bUp, BOOL bHomeEnd )
{
if( ! pMenu )
return;
-
+
const StyleSettings& rSettings = GetSettings().GetStyleSettings();
USHORT n = nHighlightedItem;
@@ -5023,7 +5023,7 @@ void MenuFloatingWindow::Paint( const Rectangle& )
{
if( ! pMenu )
return;
-
+
if( IsNativeControlSupported( CTRL_MENU_POPUP, PART_ENTIRE_CONTROL ) )
{
SetClipRegion();
@@ -5052,7 +5052,7 @@ void MenuFloatingWindow::ImplDrawScroller( BOOL bUp )
{
if( ! pMenu )
return;
-
+
SetClipRegion();
Size aOutSz = GetOutputSizePixel();
@@ -5163,30 +5163,30 @@ MenuBarWindow::MenuBarWindow( Window* pParent ) :
{
BitmapEx aBitmap( ResId( SV_RESID_BITMAP_CLOSEDOC, *pResMgr ) );
BitmapEx aBitmapHC( ResId( SV_RESID_BITMAP_CLOSEDOCHC, *pResMgr ) );
-
+
aCloser.maImage = Image( aBitmap );
aCloser.maImageHC = Image( aBitmapHC );
-
+
aCloser.SetOutStyle( TOOLBOX_STYLE_FLAT );
aCloser.SetBackground();
aCloser.SetPaintTransparent( TRUE );
aCloser.SetParentClipMode( PARENTCLIPMODE_NOCLIP );
-
+
aCloser.InsertItem( IID_DOCUMENTCLOSE,
GetSettings().GetStyleSettings().GetHighContrastMode() ? aCloser.maImageHC : aCloser.maImage, 0 );
aCloser.SetSelectHdl( LINK( this, MenuBarWindow, CloserHdl ) );
aCloser.AddEventListener( LINK( this, MenuBarWindow, ToolboxEventHdl ) );
aCloser.SetQuickHelpText( IID_DOCUMENTCLOSE, XubString( ResId( SV_HELPTEXT_CLOSEDOCUMENT, *pResMgr ) ) );
-
+
aFloatBtn.SetClickHdl( LINK( this, MenuBarWindow, FloatHdl ) );
aFloatBtn.SetSymbol( SYMBOL_FLOAT );
aFloatBtn.SetQuickHelpText( XubString( ResId( SV_HELPTEXT_RESTORE, *pResMgr ) ) );
-
+
aHideBtn.SetClickHdl( LINK( this, MenuBarWindow, HideHdl ) );
aHideBtn.SetSymbol( SYMBOL_HIDE );
aHideBtn.SetQuickHelpText( XubString( ResId( SV_HELPTEXT_MINIMIZE, *pResMgr ) ) );
}
-
+
ImplInitStyleSettings();
AddEventListener( LINK( this, MenuBarWindow, ShowHideListener ) );
@@ -5241,7 +5241,7 @@ IMPL_LINK( MenuBarWindow, CloserHdl, PushButton*, EMPTYARG )
{
if( ! pMenu )
return 0;
-
+
if( aCloser.GetCurItemId() == IID_DOCUMENTCLOSE )
{
// #i106052# call close hdl asynchronously to ease handler implementation
@@ -5268,7 +5268,7 @@ IMPL_LINK( MenuBarWindow, ToolboxEventHdl, VclWindowEvent*, pEvent )
{
if( ! pMenu )
return 0;
-
+
MenuBar::MenuBarButtonCallbackArg aArg;
aArg.nId = 0xffff;
aArg.bHighlight = (pEvent->GetId() == VCLEVENT_TOOLBOX_HIGHLIGHT);
@@ -5292,7 +5292,7 @@ IMPL_LINK( MenuBarWindow, ShowHideListener, VclWindowEvent*, pEvent )
{
if( ! pMenu )
return 0;
-
+
if( pEvent->GetId() == VCLEVENT_WINDOW_SHOW )
pMenu->ImplCallEventListeners( VCLEVENT_MENU_SHOW, ITEMPOS_INVALID );
else if( pEvent->GetId() == VCLEVENT_WINDOW_HIDE )
@@ -5430,7 +5430,7 @@ void MenuBarWindow::MouseMove( const MouseEvent& rMEvt )
}
USHORT nEntry = ImplFindEntry( rMEvt.GetPosPixel() );
- if ( ( nEntry != ITEMPOS_INVALID )
+ if ( ( nEntry != ITEMPOS_INVALID )
#ifdef OS2
&& ( ImplHilite(rMEvt) )
#endif
@@ -5442,7 +5442,7 @@ void MenuBarWindow::ChangeHighlightItem( USHORT n, BOOL bSelectEntry, BOOL bAllo
{
if( ! pMenu )
return;
-
+
// #57934# ggf. das aktive Popup sofort schliessen, damit TH's Hintergrundsicherung funktioniert.
MenuItemData* pNextData = pMenu->pItemList->GetDataFromPos( n );
if ( pActivePopup && pActivePopup->ImplGetWindow() && ( !pNextData || ( pActivePopup != pNextData->pSubMenu ) ) )
@@ -5463,10 +5463,10 @@ void MenuBarWindow::ChangeHighlightItem( USHORT n, BOOL bSelectEntry, BOOL bAllo
if( !ImplGetSVData()->maWinData.mbNoSaveFocus )
{
// we didn't clean up last time
- Window::EndSaveFocus( nSaveFocusId, FALSE ); // clean up
+ Window::EndSaveFocus( nSaveFocusId, FALSE ); // clean up
nSaveFocusId = 0;
if( !bNoSaveFocus )
- nSaveFocusId = Window::SaveFocus(); // only save focus when initially activated
+ nSaveFocusId = Window::SaveFocus(); // only save focus when initially activated
}
else {
; // do nothing: we 're activated again from taskpanelist, focus was already saved
@@ -5475,7 +5475,7 @@ void MenuBarWindow::ChangeHighlightItem( USHORT n, BOOL bSelectEntry, BOOL bAllo
else
{
if( !bNoSaveFocus )
- nSaveFocusId = Window::SaveFocus(); // only save focus when initially activated
+ nSaveFocusId = Window::SaveFocus(); // only save focus when initially activated
}
}
else
@@ -5525,7 +5525,7 @@ void MenuBarWindow::HighlightItem( USHORT nPos, BOOL bHighlight )
{
if( ! pMenu )
return;
-
+
long nX = 0;
ULONG nCount = pMenu->pItemList->Count();
for ( ULONG n = 0; n < nCount; n++ )
@@ -5556,7 +5556,7 @@ void MenuBarWindow::HighlightItem( USHORT nPos, BOOL bHighlight )
aControlValue,
OUString() );
ImplAddNWFSeparator( this, aControlValue );
-
+
// draw selected item
DrawNativeControl( CTRL_MENUBAR, PART_MENU_ITEM,
aRect,
@@ -5616,7 +5616,7 @@ Rectangle MenuBarWindow::ImplGetItemRect( USHORT nPos )
aRect = Rectangle( Point( nX, 1 ), Size( pData->aSz.Width(), GetOutputSizePixel().Height()-2 ) );
break;
}
-
+
nX += pData->aSz.Width();
}
}
@@ -5633,7 +5633,7 @@ BOOL MenuBarWindow::ImplHandleKeyEvent( const KeyEvent& rKEvent, BOOL bFromMenu
{
if( ! pMenu )
return FALSE;
-
+
if ( pMenu->bInCallback )
return TRUE; // schlucken
@@ -5679,7 +5679,7 @@ BOOL MenuBarWindow::ImplHandleKeyEvent( const KeyEvent& rKEvent, BOOL bFromMenu
else
n = pMenu->GetItemCount()-1;
}
-
+
// handling gtk like (aka mbOpenMenuOnF10)
// do not highlight an item when opening a sub menu
// unless there already was a higlighted sub menu item
@@ -5803,7 +5803,7 @@ void MenuBarWindow::Paint( const Rectangle& )
{
if( ! pMenu )
return;
-
+
// no VCL paint if native menus
if( pMenu->ImplGetSalMenu() && pMenu->ImplGetSalMenu()->VisibleMenuBar() )
{
@@ -5933,7 +5933,7 @@ void MenuBarWindow::ImplLayoutChanged()
// depending on the native implementation or the displayable flag
// the menubar windows is supressed (ie, height=0)
- if( !((MenuBar*) pMenu)->IsDisplayable() ||
+ if( !((MenuBar*) pMenu)->IsDisplayable() ||
( pMenu->ImplGetSalMenu() && pMenu->ImplGetSalMenu()->VisibleMenuBar() ) )
nHeight = 0;
@@ -6009,7 +6009,7 @@ USHORT MenuBarWindow::AddMenuBarButton( const Image& i_rImage, const Link& i_rLi
std::map< USHORT, AddButtonEntry >::const_iterator it;
if( i_nPos > m_aAddButtons.size() )
i_nPos = static_cast<USHORT>(m_aAddButtons.size());
- do
+ do
{
nId++;
it = m_aAddButtons.find( nId );
@@ -6024,10 +6024,10 @@ USHORT MenuBarWindow::AddMenuBarButton( const Image& i_rImage, const Link& i_rLi
aFloatBtn.IsVisible(),
aHideBtn.IsVisible() );
ImplLayoutChanged();
-
+
if( pMenu->mpSalMenu )
pMenu->mpSalMenu->AddMenuBarButton( SalMenuButtonItem( nId, i_rImage, i_rToolTip ) );
-
+
return nId;
}
@@ -6052,7 +6052,7 @@ Rectangle MenuBarWindow::GetMenuBarButtonRectPixel( USHORT nId )
return Rectangle();
}
}
-
+
if( aRect.IsEmpty() )
{
aRect = aCloser.GetItemRect( nId );
diff --git a/vcl/source/window/mnemonic.cxx b/vcl/source/window/mnemonic.cxx
index 3b61abb81bee..b73726c71e79 100644
--- a/vcl/source/window/mnemonic.cxx
+++ b/vcl/source/window/mnemonic.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -345,7 +345,7 @@ BOOL MnemonicGenerator::CreateMnemonic( XubString& rKey )
// do
// {
// c = aKey.GetChar( nIndex );
-//
+//
// nMnemonicIndex = ImplGetMnemonicIndex( c );
// if ( nMnemonicIndex != MNEMONIC_INDEX_NOTFOUND )
// {
@@ -354,7 +354,7 @@ BOOL MnemonicGenerator::CreateMnemonic( XubString& rKey )
// bChanged = TRUE;
// break;
// }
-//
+//
// // Search for next word
// do
// {
@@ -388,7 +388,7 @@ String MnemonicGenerator::EraseAllMnemonicChars( const String& rStr )
String aStr = rStr;
xub_StrLen nLen = aStr.Len();
xub_StrLen i = 0;
-
+
while ( i < nLen )
{
if ( aStr.GetChar( i ) == '~' )
@@ -397,8 +397,8 @@ String MnemonicGenerator::EraseAllMnemonicChars( const String& rStr )
if( i > 0 && (i+2) < nLen )
{
sal_Unicode c = aStr.GetChar(i+1);
- if( aStr.GetChar( i-1 ) == '(' &&
- aStr.GetChar( i+2 ) == ')' &&
+ if( aStr.GetChar( i-1 ) == '(' &&
+ aStr.GetChar( i+2 ) == ')' &&
c >= MNEMONIC_RANGE_2_START && c <= MNEMONIC_RANGE_2_END )
{
aStr.Erase( i-1, 4 );
diff --git a/vcl/source/window/mnemonicengine.cxx b/vcl/source/window/mnemonicengine.cxx
index f76c29e5ba9c..297804765452 100644
--- a/vcl/source/window/mnemonicengine.cxx
+++ b/vcl/source/window/mnemonicengine.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/mouseevent.cxx b/vcl/source/window/mouseevent.cxx
index 4dbb7385f94f..e43a0f67896e 100644
--- a/vcl/source/window/mouseevent.cxx
+++ b/vcl/source/window/mouseevent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index 7a21ab627381..bad0c0c94bda 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -70,11 +70,11 @@ static void ImplInitMsgBoxImageList()
void MessBox::ImplInitMessBoxData()
{
- mpFixedText = NULL;
- mpFixedImage = NULL;
- mnSoundType = 0;
- mbHelpBtn = FALSE;
- mbSound = TRUE;
+ mpFixedText = NULL;
+ mpFixedImage = NULL;
+ mnSoundType = 0;
+ mbHelpBtn = FALSE;
+ mbSound = TRUE;
mpCheckBox = NULL;
mbCheck = FALSE;
}
@@ -84,11 +84,11 @@ void MessBox::ImplInitMessBoxData()
void MessBox::ImplInitButtons()
{
WinBits nStyle = GetStyle();
- USHORT nOKFlags = BUTTONDIALOG_OKBUTTON;
- USHORT nCancelFlags = BUTTONDIALOG_CANCELBUTTON;
- USHORT nRetryFlags = 0;
- USHORT nYesFlags = 0;
- USHORT nNoFlags = 0;
+ USHORT nOKFlags = BUTTONDIALOG_OKBUTTON;
+ USHORT nCancelFlags = BUTTONDIALOG_CANCELBUTTON;
+ USHORT nRetryFlags = 0;
+ USHORT nYesFlags = 0;
+ USHORT nNoFlags = 0;
if ( nStyle & WB_OK_CANCEL )
{
@@ -189,13 +189,13 @@ MessBox::MessBox( Window* pParent, const ResId& rResId ) :
ImplInitMessBoxData();
GetRes( rResId.SetRT( RSC_MESSBOX ) );
- USHORT nHiButtons = ReadShortRes();
- USHORT nLoButtons = ReadShortRes();
+ USHORT nHiButtons = ReadShortRes();
+ USHORT nLoButtons = ReadShortRes();
USHORT nHiDefButton = ReadShortRes();
USHORT nLoDefButton = ReadShortRes();
- USHORT nHiHelpId = ReadShortRes();
- USHORT nLoHelpId = ReadShortRes();
- /* USHORT bSysModal = */ ReadShortRes();
+ USHORT nHiHelpId = ReadShortRes();
+ USHORT nLoHelpId = ReadShortRes();
+ /* USHORT bSysModal = */ ReadShortRes();
SetHelpId( ((ULONG)nHiHelpId << 16) + nLoHelpId );
WinBits nBits = (((ULONG)nHiButtons << 16) + nLoButtons) |
(((ULONG)nHiDefButton << 16) + nLoDefButton);
@@ -247,21 +247,21 @@ void MessBox::ImplPosControls()
}
}
- XubString aMessText( maMessText );
- TextRectInfo aTextInfo;
- Rectangle aRect( 0, 0, 30000, 30000 );
- Rectangle aFormatRect;
- Point aTextPos( IMPL_DIALOG_OFFSET, IMPL_DIALOG_OFFSET+IMPL_MSGBOX_OFFSET_EXTRA_Y );
- Size aImageSize;
- Size aPageSize;
- Size aFixedSize;
- long nTitleWidth;
- long nButtonSize = ImplGetButtonSize();
- long nMaxWidth = GetDesktopRectPixel().GetWidth()-8;
- long nMaxLineWidth;
- long nWidth;
- WinBits nWinStyle = WB_LEFT | WB_WORDBREAK | WB_NOLABEL | WB_INFO;
- USHORT nTextStyle = TEXT_DRAW_MULTILINE | TEXT_DRAW_TOP | TEXT_DRAW_LEFT;
+ XubString aMessText( maMessText );
+ TextRectInfo aTextInfo;
+ Rectangle aRect( 0, 0, 30000, 30000 );
+ Rectangle aFormatRect;
+ Point aTextPos( IMPL_DIALOG_OFFSET, IMPL_DIALOG_OFFSET+IMPL_MSGBOX_OFFSET_EXTRA_Y );
+ Size aImageSize;
+ Size aPageSize;
+ Size aFixedSize;
+ long nTitleWidth;
+ long nButtonSize = ImplGetButtonSize();
+ long nMaxWidth = GetDesktopRectPixel().GetWidth()-8;
+ long nMaxLineWidth;
+ long nWidth;
+ WinBits nWinStyle = WB_LEFT | WB_WORDBREAK | WB_NOLABEL | WB_INFO;
+ USHORT nTextStyle = TEXT_DRAW_MULTILINE | TEXT_DRAW_TOP | TEXT_DRAW_LEFT;
if ( mpFixedText )
delete mpFixedText;
@@ -279,8 +279,8 @@ void MessBox::ImplPosControls()
// Message-Text um Tabs bereinigen
- XubString aTabStr( RTL_CONSTASCII_USTRINGPARAM( " " ) );
- USHORT nIndex = 0;
+ XubString aTabStr( RTL_CONSTASCII_USTRINGPARAM( " " ) );
+ USHORT nIndex = 0;
while ( nIndex != STRING_NOTFOUND )
nIndex = aMessText.SearchAndReplace( '\t', aTabStr, nIndex );
@@ -304,7 +304,7 @@ void MessBox::ImplPosControls()
aImageSize = maImage.GetSizePixel();
if ( aImageSize.Width() )
{
- aImageSize.Width() += 4;
+ aImageSize.Width() += 4;
aImageSize.Height() += 4;
aTextPos.X() += aImageSize.Width()+IMPL_SEP_MSGBOX_IMAGE;
mpFixedImage = new FixedImage( this );
@@ -348,19 +348,19 @@ void MessBox::ImplPosControls()
}
// Style fuer FixedText ermitteln
- aPageSize.Width() = aImageSize.Width();
- aFixedSize.Width() = aTextInfo.GetMaxLineWidth()+1;
+ aPageSize.Width() = aImageSize.Width();
+ aFixedSize.Width() = aTextInfo.GetMaxLineWidth()+1;
aFixedSize.Height() = aFormatRect.GetHeight();
if ( aFixedSize.Height() < aImageSize.Height() )
{
nWinStyle |= WB_VCENTER;
- aPageSize.Height() = aImageSize.Height();
+ aPageSize.Height() = aImageSize.Height();
aFixedSize.Height() = aImageSize.Height();
}
else
{
nWinStyle |= WB_TOP;
- aPageSize.Height() = aFixedSize.Height();
+ aPageSize.Height() = aFixedSize.Height();
}
if ( aImageSize.Width() )
aPageSize.Width() += IMPL_SEP_MSGBOX_IMAGE;
@@ -585,7 +585,7 @@ void ErrorBox::ImplInitErrorBoxData()
if ( !GetText().Len() )
SetText( Application::GetDisplayName() );
- SetImage( GetSettings().GetStyleSettings().GetHighContrastMode() ?
+ SetImage( GetSettings().GetStyleSettings().GetHighContrastMode() ?
ErrorBox::GetStandardImageHC() : ErrorBox::GetStandardImage() );
mnSoundType = ((USHORT)SOUND_ERROR)+1;
}
diff --git a/vcl/source/window/popupmenuwindow.cxx b/vcl/source/window/popupmenuwindow.cxx
index 46fc51d8176d..d96279e86b09 100644
--- a/vcl/source/window/popupmenuwindow.cxx
+++ b/vcl/source/window/popupmenuwindow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 98e7c279559a..8ce5ed61d13d 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -168,7 +168,7 @@ void PrintDialog::PrintPreviewWindow::Resize()
aNewSize.Height() -= 2;
Size aScaledSize;
double fScale = 1.0;
-
+
// #i106435# catch corner case of Size(0,0)
Size aOrigSize( maOrigSize );
if( aOrigSize.Width() < 1 )
@@ -189,9 +189,9 @@ void PrintDialog::PrintPreviewWindow::Resize()
}
aScaledSize.Width() = long(aScaledSize.Width()*fScale);
aScaledSize.Height() = long(aScaledSize.Height()*fScale);
-
+
maPreviewSize = aScaledSize;
-
+
// #i104784# if we render the page too small then rounding issues result in
// layout artifacts looking really bad. So scale the page unto a device that is not
// full page size but not too small either. This also results in much better visual
@@ -205,7 +205,7 @@ void PrintDialog::PrintPreviewWindow::Resize()
aScaledSize.Height() *= 2;
fZoom /= 2.0;
}
-
+
maPageVDev.SetOutputSizePixel( aScaledSize, FALSE );
}
@@ -233,10 +233,10 @@ void PrintDialog::PrintPreviewWindow::Paint( const Rectangle& )
else
{
GDIMetaFile aMtf( maMtf );
-
+
Point aOffset( (aSize.Width() - maPreviewSize.Width()) / 2,
(aSize.Height() - maPreviewSize.Height()) / 2 );
-
+
Size aVDevSize( maPageVDev.GetOutputSizePixel() );
const Size aLogicSize( maPageVDev.PixelToLogic( aVDevSize, MapMode( MAP_100TH_MM ) ) );
Size aOrigSize( maOrigSize );
@@ -245,8 +245,8 @@ void PrintDialog::PrintPreviewWindow::Paint( const Rectangle& )
if( aOrigSize.Height() < 1 )
aOrigSize.Height() = aLogicSize.Height();
double fScale = double(aLogicSize.Width())/double(aOrigSize.Width());
-
-
+
+
maPageVDev.Erase();
maPageVDev.Push();
maPageVDev.SetMapMode( MAP_100TH_MM );
@@ -255,11 +255,11 @@ void PrintDialog::PrintPreviewWindow::Paint( const Rectangle& )
aMtf.WindStart();
aMtf.Play( &maPageVDev, Point( 0, 0 ), aLogicSize );
maPageVDev.Pop();
-
+
SetMapMode( MAP_PIXEL );
maPageVDev.SetMapMode( MAP_PIXEL );
DrawOutDev( aOffset, maPreviewSize, Point( 0, 0 ), aVDevSize, maPageVDev );
-
+
DecorationView aVw( this );
Rectangle aFrame( aOffset + Point( -1, -1 ), Size( maPreviewSize.Width() + 2, maPreviewSize.Height() + 2 ) );
aVw.DrawFrame( aFrame, FRAME_DRAW_GROUP );
@@ -340,7 +340,7 @@ void PrintDialog::ShowNupOrderWindow::Paint( const Rectangle& i_rRect )
Window::Paint( i_rRect );
SetMapMode( MAP_PIXEL );
SetTextColor( GetSettings().GetStyleSettings().GetFieldTextColor() );
-
+
int nPages = mnRows * mnColumns;
Font aFont( GetSettings().GetStyleSettings().GetFieldFont() );
aFont.SetSize( Size( 0, 24 ) );
@@ -356,7 +356,7 @@ void PrintDialog::ShowNupOrderWindow::Paint( const Rectangle& i_rRect )
long nFontHeight = long(24.0*fScale) - 3;
if( nFontHeight < 5 )
nFontHeight = 5;
- aFont.SetSize( Size( 0, nFontHeight ) );
+ aFont.SetSize( Size( 0, nFontHeight ) );
SetFont( aFont );
long nTextHeight = GetTextHeight();
for( int i = 0; i < nPages; i++ )
@@ -408,11 +408,11 @@ PrintDialog::NUpTabPage::NUpTabPage( Window* i_pParent, const ResId& rResId )
, maBorderCB( this, VclResId( SV_PRINT_PRT_NUP_BORDER_CB ) )
{
FreeResource();
-
+
maNupOrderWin.Show();
maPagesBtn.Check( TRUE );
maBrochureBtn.Show( FALSE );
-
+
// setup field units for metric fields
const LocaleDataWrapper& rLocWrap( maPageMarginEdt.GetLocaleDataWrapper() );
FieldUnit eUnit = FUNIT_MM;
@@ -429,7 +429,7 @@ PrintDialog::NUpTabPage::NUpTabPage( Window* i_pParent, const ResId& rResId )
// set precision
maPageMarginEdt.SetDecimalDigits( nDigits );
maSheetMarginEdt.SetDecimalDigits( nDigits );
-
+
SMHID1( "NUpPage" );
maNupLine.SMHID2("NUpPage", "Layout");
maBrochureBtn.SMHID2("NUpPage", "Brochure" );
@@ -437,7 +437,7 @@ PrintDialog::NUpTabPage::NUpTabPage( Window* i_pParent, const ResId& rResId )
maPagesBoxTitleTxt.SMHID2( "NUpPage", "PagesPerSheetLabel" );
maNupPagesBox.SMHID2( "NUpPage", "PagesPerSheetBox" );
maNupNumPagesTxt.SMHID2( "NUpPage", "Columns" );
- maNupColEdt.SMHID2( "NUpPage", "ColumnsBox" );
+ maNupColEdt.SMHID2( "NUpPage", "ColumnsBox" );
maNupTimesTxt.SMHID2( "NUpPage", "Rows" );
maNupRowsEdt.SMHID2( "NUpPage", "RowsBox" );
maPageMarginTxt1.SMHID2( "NUpPage", "PageMargin" );
@@ -506,7 +506,7 @@ void PrintDialog::NUpTabPage::setupLayout()
maLayout.setParentWindow( this );
maLayout.setOuterBorder( aBorder.Width() );
-
+
maLayout.addWindow( &maNupLine );
boost::shared_ptr< vcl::RowOrColumn > xRow( new vcl::RowOrColumn( &maLayout, false ) );
maLayout.addChild( xRow );
@@ -519,12 +519,12 @@ void PrintDialog::NUpTabPage::setupLayout()
boost::shared_ptr< vcl::Spacer > xSpacer( new vcl::Spacer( xShowNupCol.get() ) );
xShowNupCol->addChild( xSpacer );
- boost::shared_ptr< vcl::LabelColumn > xMainCol( new vcl::LabelColumn( xIndent.get() ) );
+ boost::shared_ptr< vcl::LabelColumn > xMainCol( new vcl::LabelColumn( xIndent.get() ) );
xIndent->setChild( xMainCol );
-
+
size_t nPagesIndex = xMainCol->addRow( &maPagesBtn, &maNupPagesBox );
mxPagesBtnLabel = boost::dynamic_pointer_cast<vcl::LabeledElement>( xMainCol->getChild( nPagesIndex ) );
-
+
xRow.reset( new vcl::RowOrColumn( xMainCol.get(), false ) );
xMainCol->addRow( &maNupNumPagesTxt, xRow, nIndent );
xRow->addWindow( &maNupColEdt );
@@ -535,16 +535,16 @@ void PrintDialog::NUpTabPage::setupLayout()
xLab->setLabel( &maPageMarginEdt );
xLab->setElement( &maPageMarginTxt2 );
xMainCol->addRow( &maPageMarginTxt1, xLab, nIndent );
-
+
xLab.reset( new vcl::LabeledElement( xMainCol.get(), 2 ) );
xLab->setLabel( &maSheetMarginEdt );
xLab->setElement( &maSheetMarginTxt2 );
xMainCol->addRow( &maSheetMarginTxt1, xLab, nIndent );
xMainCol->addRow( &maNupOrientationTxt, &maNupOrientationBox, nIndent );
- xMainCol->addRow( &maNupOrderTxt, &maNupOrderBox, nIndent );
+ xMainCol->addRow( &maNupOrderTxt, &maNupOrderBox, nIndent );
xMainCol->setBorders( xMainCol->addWindow( &maBorderCB ), nIndent, 0, 0, 0 );
-
+
xSpacer.reset( new vcl::Spacer( xMainCol.get(), 0, Size( 10, aBorder.Width() ) ) );
xMainCol->addChild( xSpacer );
@@ -552,7 +552,7 @@ void PrintDialog::NUpTabPage::setupLayout()
xMainCol->addRow( &maBrochureBtn, xRow );
// remember brochure row for dependencies
mxBrochureDep = xRow;
-
+
// initially advanced controls are not shown, rows=columns=1
showAdvancedControls( false );
}
@@ -623,12 +623,12 @@ PrintDialog::JobTabPage::JobTabPage( Window* i_pParent, const ResId& rResId )
maCopyCountField.SMHID2( "JobPage", "Copies" );
maCollateBox.SMHID2( "JobPage", "Collate" );
maCollateImage.SMHID2( "JobPage", "CollateImage" );
-
+
maCopySpacer.Show();
maStatusTxt.Show();
maCommentTxt.Show();
maLocationTxt.Show();
-
+
setupLayout();
}
@@ -641,7 +641,7 @@ void PrintDialog::JobTabPage::setupLayout()
// HACK: this is not a dropdown box, but the dropdown line count
// sets the results of GetOptimalSize in a normal ListBox
maPrinters.SetDropDownLineCount( 4 );
-
+
Size aBorder( LogicToPixel( Size( 5, 5 ), MapMode( MAP_APPFONT ) ) );
maLayout.setParentWindow( this );
@@ -656,9 +656,9 @@ void PrintDialog::JobTabPage::setupLayout()
boost::shared_ptr< vcl::RowOrColumn > xDetRow( new vcl::RowOrColumn( &maLayout, false ) );
maLayout.addChild( xDetRow );
xDetRow->addWindow( &maDetailsBtn );
- xDetRow->addChild( new vcl::Spacer( xDetRow.get(), 2 ) );
+ xDetRow->addChild( new vcl::Spacer( xDetRow.get(), 2 ) );
xDetRow->addWindow( &maSetupButton );
-
+
// create an indent for details
boost::shared_ptr< vcl::Indenter > xIndent( new vcl::Indenter( &maLayout ) );
maLayout.addChild( xIndent );
@@ -675,7 +675,7 @@ void PrintDialog::JobTabPage::setupLayout()
maLayout.addWindow( &maCopies );
boost::shared_ptr< vcl::RowOrColumn > xRangeRow( new vcl::RowOrColumn( &maLayout, false, aBorder.Width() ) );
maLayout.addChild( xRangeRow );
-
+
// create print range and add to range row
mxPrintRange.reset( new vcl::RowOrColumn( xRangeRow.get() ) );
xRangeRow->addChild( mxPrintRange );
@@ -683,7 +683,7 @@ void PrintDialog::JobTabPage::setupLayout()
boost::shared_ptr< vcl::RowOrColumn > xCopyCollateCol( new vcl::RowOrColumn( xRangeRow.get() ) );
xRangeRow->addChild( xCopyCollateCol );
-
+
// add copies row to copy/collate column
boost::shared_ptr< vcl::LabeledElement > xCopiesRow( new vcl::LabeledElement( xCopyCollateCol.get(), 2 ) );
xCopyCollateCol->addChild( xCopiesRow );
@@ -702,7 +702,7 @@ void PrintDialog::JobTabPage::readFromSettings()
{
SettingsConfigItem* pItem = SettingsConfigItem::get();
rtl::OUString aValue;
-
+
aValue = pItem->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog" ) ),
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CollateBox" ) ) );
if( aValue.equalsIgnoreAsciiCaseAscii( "alwaysoff" ) )
@@ -750,7 +750,7 @@ PrintDialog::OutputOptPage::OutputOptPage( Window* i_pParent, const ResId& i_rRe
maToFileBox.SMHID2( "OptPage", "ToFile" );
maCollateSingleJobsBox.SMHID2( "OptPage", "SingleJobs" );
maReverseOrderBox.SMHID2( "OptPage", "Reverse" );
-
+
setupLayout();
}
@@ -764,7 +764,7 @@ void PrintDialog::OutputOptPage::setupLayout()
maLayout.setParentWindow( this );
maLayout.setOuterBorder( aBorder.Width() );
-
+
maLayout.addWindow( &maOptionsLine );
boost::shared_ptr<vcl::Indenter> xIndent( new vcl::Indenter( &maLayout, aBorder.Width() ) );
maLayout.addChild( xIndent );
@@ -787,7 +787,7 @@ void PrintDialog::OutputOptPage::storeToSettings()
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ToFile" ) ),
rtl::OUString::createFromAscii( maToFileBox.IsChecked() ? "true" : "false" ) );
}
-
+
void PrintDialog::OutputOptPage::Resize()
{
maLayout.setManagedArea( Rectangle( Point( 0, 0 ), GetSizePixel() ) );
@@ -818,32 +818,32 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
, mbShowLayoutPage( sal_True )
{
FreeResource();
-
+
// save printbutton text, gets exchanged occasionally with print to file
maPrintText = maOKButton.GetText();
-
+
// setup preview controls
maForwardBtn.SetStyle( maForwardBtn.GetStyle() | WB_BEVELBUTTON );
maBackwardBtn.SetStyle( maBackwardBtn.GetStyle() | WB_BEVELBUTTON );
-
+
// insert the job (general) tab page first
maTabCtrl.InsertPage( SV_PRINT_TAB_JOB, maJobPage.GetText() );
maTabCtrl.SetTabPage( SV_PRINT_TAB_JOB, &maJobPage );
-
+
// set symbols on forward and backward button
maBackwardBtn.SetSymbol( SYMBOL_PREV );
maForwardBtn.SetSymbol( SYMBOL_NEXT );
maBackwardBtn.ImplSetSmallSymbol( TRUE );
maForwardBtn.ImplSetSmallSymbol( TRUE );
-
+
maPageStr = maNumPagesText.GetText();
-
+
// init reverse print
maOptionsPage.maReverseOrderBox.Check( maPController->getReversePrint() );
// get the first page
preparePreview( true, true );
-
+
// fill printer listbox
const std::vector< rtl::OUString >& rQueues( Printer::GetPrinterQueues() );
for( std::vector< rtl::OUString >::const_iterator it = rQueues.begin();
@@ -876,10 +876,10 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
}
// update the text fields for the printer
updatePrinterText();
-
+
// set a select handler
maJobPage.maPrinters.SetSelectHdl( LINK( this, PrintDialog, SelectHdl ) );
-
+
// setup sizes for N-Up
Size aNupSize( maPController->getPrinter()->PixelToLogic(
maPController->getPrinter()->GetPaperSizePixel(), MapMode( MAP_100TH_MM ) ) );
@@ -895,7 +895,7 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
}
maNUpPage.initFromMultiPageSetup( maPController->getMultipage() );
-
+
// setup click handler on the various buttons
maOKButton.SetClickHdl( LINK( this, PrintDialog, ClickHdl ) );
#if OSL_DEBUG_LEVEL > 1
@@ -912,7 +912,7 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
maOptionsPage.maReverseOrderBox.SetToggleHdl( LINK( this, PrintDialog, ClickHdl ) );
maOptionsPage.maCollateSingleJobsBox.SetToggleHdl( LINK( this, PrintDialog, ClickHdl ) );
maNUpPage.maPagesBtn.SetToggleHdl( LINK( this, PrintDialog, ClickHdl ) );
-
+
// setup modify hdl
maPageEdit.SetModifyHdl( LINK( this, PrintDialog, ModifyHdl ) );
maJobPage.maCopyCountField.SetModifyHdl( LINK( this, PrintDialog, ModifyHdl ) );
@@ -921,20 +921,20 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
maNUpPage.maPageMarginEdt.SetModifyHdl( LINK( this, PrintDialog, ModifyHdl ) );
maNUpPage.maSheetMarginEdt.SetModifyHdl( LINK( this, PrintDialog, ModifyHdl ) );
- // setup select hdl
+ // setup select hdl
maNUpPage.maNupPagesBox.SetSelectHdl( LINK( this, PrintDialog, SelectHdl ) );
maNUpPage.maNupOrientationBox.SetSelectHdl( LINK( this, PrintDialog, SelectHdl ) );
maNUpPage.maNupOrderBox.SetSelectHdl( LINK( this, PrintDialog, SelectHdl ) );
// setup the layout
setupLayout();
-
+
// setup optional UI options set by application
setupOptionalUI();
-
+
// set change handler for UI options
maPController->setOptionChangeHdl( LINK( this, PrintDialog, UIOptionsChanged ) );
-
+
// set min size pixel to current size
Size aOutSize( GetOutputSizePixel() );
SetMinOutputSizePixel( aOutSize );
@@ -960,7 +960,7 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
SetOutputSizePixel( aOutSize );
}
}
-
+
// set HelpIDs
SMHID1( "Dialog" );
maOKButton.SMHID1( "OK" );
@@ -984,10 +984,10 @@ PrintDialog::PrintDialog( Window* i_pParent, const boost::shared_ptr<PrinterCont
// restore settings from last run
readFromSettings();
-
+
// setup dependencies
checkControlDependencies();
-
+
}
PrintDialog::~PrintDialog()
@@ -1004,11 +1004,11 @@ void PrintDialog::setupLayout()
Size aBorder( LogicToPixel( Size( 5, 5 ), MapMode( MAP_APPFONT ) ) );
maLayout.setParentWindow( this );
-
+
boost::shared_ptr< vcl::RowOrColumn > xPreviewAndTab( new vcl::RowOrColumn( &maLayout, false ) );
size_t nIndex = maLayout.addChild( xPreviewAndTab, 5 );
maLayout.setBorders( nIndex, aBorder.Width(), aBorder.Width(), aBorder.Width(), 0 );
-
+
// setup column for preview and sub controls
boost::shared_ptr< vcl::RowOrColumn > xPreview( new vcl::RowOrColumn( xPreviewAndTab.get() ) );
xPreviewAndTab->addChild( xPreview, 5 );
@@ -1026,18 +1026,18 @@ void PrintDialog::setupLayout()
mxPreviewCtrls->addWindow( &maForwardBtn );
xSpacer.reset( new vcl::Spacer( mxPreviewCtrls.get(), 2 ) );
mxPreviewCtrls->addChild( xSpacer );
-
+
// continue with the tab ctrl
xPreviewAndTab->addWindow( &maTabCtrl );
-
+
// add the button line
maLayout.addWindow( &maButtonLine );
-
+
// add the row for the buttons
boost::shared_ptr< vcl::RowOrColumn > xButtons( new vcl::RowOrColumn( &maLayout, false ) );
nIndex = maLayout.addChild( xButtons );
maLayout.setBorders( nIndex, aBorder.Width(), 0, aBorder.Width(), aBorder.Width() );
-
+
Size aMinSize( maCancelButton.GetSizePixel() );
// insert help button
xButtons->setMinimumSize( xButtons->addWindow( &maHelpButton ), aMinSize );
@@ -1053,7 +1053,7 @@ void PrintDialog::readFromSettings()
maJobPage.readFromSettings();
maNUpPage.readFromSettings();
maOptionsPage.readFromSettings();
-
+
// read last selected tab page; if it exists, actiavte it
SettingsConfigItem* pItem = SettingsConfigItem::get();
rtl::OUString aValue = pItem->getValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog" ) ),
@@ -1076,7 +1076,7 @@ void PrintDialog::storeToSettings()
maJobPage.storeToSettings();
maNUpPage.storeToSettings();
maOptionsPage.storeToSettings();
-
+
// store last selected printer
SettingsConfigItem* pItem = SettingsConfigItem::get();
pItem->setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PrintDialog" ) ),
@@ -1135,7 +1135,7 @@ static void setHelpText( Window* /*i_pWindow*/, const Sequence< rtl::OUString >&
{
// without a help text set and the correct smartID,
// help texts will be retrieved from the online help system
-
+
// passed help texts for optional UI is used only for native dialogs which currently
// cannot access the same (rather implicit) mechanism
}
@@ -1159,9 +1159,9 @@ void PrintDialog::setupOptionalUI()
USHORT nOptPageId = 9, nCurSubGroup = 0;
bool bOnStaticPage = false;
bool bSubgroupOnStaticPage = false;
-
+
std::multimap< rtl::OUString, vcl::RowOrColumn* > aPropertyToDependencyRowMap;
-
+
const Sequence< PropertyValue >& rOptions( maPController->getUIOptions() );
for( int i = 0; i < rOptions.getLength(); i++ )
{
@@ -1252,10 +1252,10 @@ void PrintDialog::setupOptionalUI()
mbShowLayoutPage = ! bNoLayoutPage;
}
}
-
+
// bUseDependencyRow should only be true if a dependency exists
bUseDependencyRow = bUseDependencyRow && (aDependsOnName.getLength() != 0);
-
+
// is it necessary to switch between static and dynamic pages ?
bool bSwitchPage = false;
if( aGroupingHint.getLength() )
@@ -1312,12 +1312,12 @@ void PrintDialog::setupOptionalUI()
pNewGroup->SetText( aText );
maTabCtrl.InsertPage( ++nOptPageId, aText );
maTabCtrl.SetTabPage( nOptPageId, pNewGroup );
-
+
// set help id
setSmartId( pNewGroup, "TabPage", nOptPageId );
// set help text
setHelpText( pNewGroup, aHelpTexts, 0 );
-
+
// reset subgroup counter
nCurSubGroup = 0;
@@ -1344,7 +1344,7 @@ void PrintDialog::setupOptionalUI()
maControls.push_front( pNewSub );
pNewSub->SetText( aText );
pNewSub->Show();
-
+
// set help id
setSmartId( pNewSub, "FixedLine", sal_Int32( nCurSubGroup++ ) );
// set help text
@@ -1377,16 +1377,16 @@ void PrintDialog::setupOptionalUI()
maNUpPage.maBrochureBtn.Check( bVal );
maNUpPage.maBrochureBtn.Enable( maPController->isUIOptionEnabled( aPropertyName ) && pVal != NULL );
maNUpPage.maBrochureBtn.SetToggleHdl( LINK( this, PrintDialog, ClickHdl ) );
-
+
maPropertyToWindowMap[ aPropertyName ].push_back( &maNUpPage.maBrochureBtn );
maControlToPropertyMap[&maNUpPage.maBrochureBtn] = aPropertyName;
aPropertyToDependencyRowMap.insert( std::pair< rtl::OUString, vcl::RowOrColumn* >( aPropertyName, maNUpPage.mxBrochureDep.get() ) );
- }
+ }
else
{
vcl::RowOrColumn* pSaveCurColumn = pCurColumn;
-
+
if( bUseDependencyRow )
{
// find the correct dependency row (if any)
@@ -1414,26 +1414,26 @@ void PrintDialog::setupOptionalUI()
maControls.push_front( pNewBox );
pNewBox->SetText( aText );
pNewBox->Show();
-
+
sal_Bool bVal = sal_False;
PropertyValue* pVal = maPController->getValue( aPropertyName );
if( pVal )
pVal->Value >>= bVal;
pNewBox->Check( bVal );
pNewBox->SetToggleHdl( LINK( this, PrintDialog, UIOption_CheckHdl ) );
-
+
maPropertyToWindowMap[ aPropertyName ].push_back( pNewBox );
maControlToPropertyMap[pNewBox] = aPropertyName;
-
+
// set help id
setSmartId( pNewBox, "CheckBox", -1, aPropertyName );
// set help text
setHelpText( pNewBox, aHelpTexts, 0 );
-
+
vcl::RowOrColumn* pDependencyRow = new vcl::RowOrColumn( pCurColumn, false );
pCurColumn->addChild( pDependencyRow );
aPropertyToDependencyRowMap.insert( std::pair< rtl::OUString, vcl::RowOrColumn* >( aPropertyName, pDependencyRow ) );
-
+
// add checkbox to current column
pDependencyRow->addWindow( pNewBox );
}
@@ -1447,7 +1447,7 @@ void PrintDialog::setupOptionalUI()
maControls.push_front( pHeading );
pHeading->SetText( aText );
pHeading->Show();
-
+
// set help id
setSmartId( pHeading, "FixedText", -1, aPropertyName );
// set help text
@@ -1473,7 +1473,7 @@ void PrintDialog::setupOptionalUI()
boost::shared_ptr<vcl::RowOrColumn> pDependencyRow( new vcl::RowOrColumn( pLabel.get(), false ) );
pLabel->setElement( pDependencyRow );
aPropertyToDependencyRowMap.insert( std::pair< rtl::OUString, vcl::RowOrColumn* >( aPropertyName, pDependencyRow.get() ) );
-
+
RadioButton* pBtn = new RadioButton( pCurParent, m == 0 ? WB_GROUP : 0 );
maControls.push_front( pBtn );
pBtn->SetText( aChoices[m] );
@@ -1483,7 +1483,7 @@ void PrintDialog::setupOptionalUI()
maPropertyToWindowMap[ aPropertyName ].push_back( pBtn );
maControlToPropertyMap[pBtn] = aPropertyName;
maControlToNumValMap[pBtn] = m;
-
+
// set help id
setSmartId( pBtn, "RadioButton", m, aPropertyName );
// set help text
@@ -1501,7 +1501,7 @@ void PrintDialog::setupOptionalUI()
vcl::RowOrColumn* pFieldColumn = new vcl::RowOrColumn( pCurColumn, false );
pCurColumn->addChild( pFieldColumn );
aPropertyToDependencyRowMap.insert( std::pair< rtl::OUString, vcl::RowOrColumn* >( aPropertyName, pFieldColumn ) );
-
+
vcl::LabeledElement* pLabel = NULL;
if( aText.getLength() )
{
@@ -1510,21 +1510,21 @@ void PrintDialog::setupOptionalUI()
maControls.push_front( pHeading );
pHeading->SetText( aText );
pHeading->Show();
-
+
// set help id
setSmartId( pHeading, "FixedText", -1, aPropertyName );
-
+
// add to row
pLabel = new vcl::LabeledElement( pFieldColumn, 2 );
pFieldColumn->addChild( pLabel );
pLabel->setLabel( pHeading );
}
-
+
if( aCtrlType.equalsAscii( "List" ) )
{
ListBox* pList = new ListBox( pCurParent, WB_DROPDOWN | WB_BORDER );
maControls.push_front( pList );
-
+
// iterate options
for( sal_Int32 m = 0; m < aChoices.getLength(); m++ )
{
@@ -1538,15 +1538,15 @@ void PrintDialog::setupOptionalUI()
pList->SetSelectHdl( LINK( this, PrintDialog, UIOption_SelectHdl ) );
pList->SetDropDownLineCount( static_cast<USHORT>(aChoices.getLength()) );
pList->Show();
-
+
// set help id
setSmartId( pList, "ListBox", -1, aPropertyName );
// set help text
setHelpText( pList, aHelpTexts, 0 );
-
+
maPropertyToWindowMap[ aPropertyName ].push_back( pList );
maControlToPropertyMap[pList] = aPropertyName;
-
+
// finish the pair
if( pLabel )
pLabel->setElement( pList );
@@ -1557,7 +1557,7 @@ void PrintDialog::setupOptionalUI()
{
NumericField* pField = new NumericField( pCurParent, WB_BORDER | WB_SPIN );
maControls.push_front( pField );
-
+
// set min/max and current value
if( nMinValue != nMaxValue )
{
@@ -1571,15 +1571,15 @@ void PrintDialog::setupOptionalUI()
pField->SetValue( nCurVal );
pField->SetModifyHdl( LINK( this, PrintDialog, UIOption_ModifyHdl ) );
pField->Show();
-
+
// set help id
setSmartId( pField, "NumericField", -1, aPropertyName );
// set help text
setHelpText( pField, aHelpTexts, 0 );
-
+
maPropertyToWindowMap[ aPropertyName ].push_back( pField );
maControlToPropertyMap[pField] = aPropertyName;
-
+
// add to row
if( pLabel )
pLabel->setElement( pField );
@@ -1590,7 +1590,7 @@ void PrintDialog::setupOptionalUI()
{
Edit* pField = new Edit( pCurParent, WB_BORDER );
maControls.push_front( pField );
-
+
rtl::OUString aCurVal;
PropertyValue* pVal = maPController->getValue( aPropertyName );
if( pVal && pVal->Value.hasValue() )
@@ -1598,15 +1598,15 @@ void PrintDialog::setupOptionalUI()
pField->SetText( aCurVal );
pField->SetModifyHdl( LINK( this, PrintDialog, UIOption_ModifyHdl ) );
pField->Show();
-
+
// set help id
setSmartId( pField, "Edit", -1, aPropertyName );
// set help text
setHelpText( pField, aHelpTexts, 0 );
-
+
maPropertyToWindowMap[ aPropertyName ].push_back( pField );
maControlToPropertyMap[pField] = aPropertyName;
-
+
// add to row
if( pLabel )
pLabel->setElement( pField );
@@ -1618,11 +1618,11 @@ void PrintDialog::setupOptionalUI()
{
DBG_ERROR( "Unsupported UI option" );
}
-
+
pCurColumn = pSaveCurColumn;
}
}
-
+
// #i106506# if no brochure button, then the singular Pages radio button
// makes no sense, so replace it by a FixedText label
if( ! maNUpPage.maBrochureBtn.IsVisible() )
@@ -1635,17 +1635,17 @@ void PrintDialog::setupOptionalUI()
maNUpPage.maPagesBtn.Show( FALSE );
}
}
-
+
// update enable states
checkOptionalControlDependencies();
-
+
// print range empty (currently math only) -> hide print range and spacer line
if( maJobPage.mxPrintRange->countElements() == 0 )
{
maJobPage.mxPrintRange->show( false, false );
maJobPage.maCopySpacer.Show( FALSE );
}
-
+
#ifdef WNT
// FIXME: the GetNativeControlRegion call on Windows has some issues
// (which skew the results of GetOptimalSize())
@@ -1709,7 +1709,7 @@ void PrintDialog::setupOptionalUI()
maJobPage.Resize();
maNUpPage.Resize();
maOptionsPage.Resize();
-
+
Size aSz = maLayout.getOptimalSize( WINDOWSIZE_PREFERRED );
SetOutputSizePixel( aSz );
}
@@ -1728,14 +1728,14 @@ void PrintDialog::checkControlDependencies()
maJobPage.maCollateBox.Enable( maJobPage.mnCollateUIMode == 0 );
else
maJobPage.maCollateBox.Enable( FALSE );
-
+
Image aImg( maJobPage.maCollateBox.IsChecked() ? maJobPage.maCollateImg : maJobPage.maNoCollateImg );
Image aHCImg( maJobPage.maCollateBox.IsChecked() ? maJobPage.maCollateHCImg : maJobPage.maNoCollateHCImg );
bool bHC = GetSettings().GetStyleSettings().GetHighContrastMode();
-
+
Size aImgSize( aImg.GetSizePixel() );
Size aHCImgSize( aHCImg.GetSizePixel() );
-
+
if( aHCImgSize.Width() > aImgSize.Width() )
aImgSize.Width() = aHCImgSize.Width();
if( aHCImgSize.Height() > aImgSize.Height() )
@@ -1802,7 +1802,7 @@ void PrintDialog::checkOptionalControlDependencies()
bShouldbeEnabled = true;
}
}
-
+
bool bIsEnabled = it->first->IsEnabled();
// Enable does not do a change check first, so can be less cheap than expected
if( bShouldbeEnabled != bIsEnabled )
@@ -1851,7 +1851,7 @@ void PrintDialog::setPreviewText( sal_Int32 )
{
rtl::OUString aNewText( searchAndReplace( maPageStr, "%n", 2, rtl::OUString::valueOf( mnCachedPages ) ) );
maNumPagesText.SetText( aNewText );
-
+
// if layout is already established the refresh layout of
// preview controls since text length may have changes
if( mxPreviewCtrls.get() )
@@ -1863,17 +1863,17 @@ void PrintDialog::preparePreview( bool i_bNewPage, bool i_bMayUseCache )
// page range may have changed depending on options
sal_Int32 nPages = maPController->getFilteredPageCount();
mnCachedPages = nPages;
-
+
if( mnCurPage >= nPages )
mnCurPage = nPages-1;
if( mnCurPage < 0 )
mnCurPage = 0;
-
+
setPreviewText( mnCurPage );
maPageEdit.SetMin( 1 );
maPageEdit.SetMax( nPages );
-
+
if( i_bNewPage )
{
const MapMode aMapMode( MAP_100TH_MM );
@@ -1889,12 +1889,12 @@ void PrintDialog::preparePreview( bool i_bNewPage, bool i_bMayUseCache )
aMtf.Move( aOff.X(), aOff.Y() );
}
}
-
+
Size aCurPageSize = aPrt->PixelToLogic( aPrt->GetPaperSizePixel(), MapMode( MAP_100TH_MM ) );
maPreviewWindow.setPreview( aMtf, aCurPageSize, nPages > 0 ? rtl::OUString() : maNoPageStr,
aPrt->ImplGetDPIX(), aPrt->ImplGetDPIY()
);
-
+
maForwardBtn.Enable( mnCurPage < nPages-1 );
maBackwardBtn.Enable( mnCurPage != 0 );
maPageEdit.Enable( nPages > 1 );
@@ -1924,7 +1924,7 @@ void PrintDialog::updateNupFromPages()
long nPageMargin = long(maNUpPage.maPageMarginEdt.Denormalize(maNUpPage.maPageMarginEdt.GetValue( FUNIT_100TH_MM )));
long nSheetMargin = long(maNUpPage.maSheetMarginEdt.Denormalize(maNUpPage.maSheetMarginEdt.GetValue( FUNIT_100TH_MM )));
bool bCustom = false;
-
+
if( nPages == 1 )
{
nRows = nCols = 1;
@@ -1960,12 +1960,12 @@ void PrintDialog::updateNupFromPages()
}
else
bCustom = true;
-
+
if( nPages > 1 )
{
// set upper limits for margins based on job page size and rows/columns
Size aSize( getJobPageSize() );
-
+
// maximum sheet distance: 1/2 sheet
long nHorzMax = aSize.Width()/2;
long nVertMax = aSize.Height()/2;
@@ -1973,11 +1973,11 @@ void PrintDialog::updateNupFromPages()
nSheetMargin = nHorzMax;
if( nSheetMargin > nVertMax )
nSheetMargin = nVertMax;
-
- maNUpPage.maSheetMarginEdt.SetMax(
- maNUpPage.maSheetMarginEdt.Normalize(
+
+ maNUpPage.maSheetMarginEdt.SetMax(
+ maNUpPage.maSheetMarginEdt.Normalize(
nHorzMax > nVertMax ? nVertMax : nHorzMax ), FUNIT_100TH_MM );
-
+
// maximum page distance
nHorzMax = (aSize.Width() - 2*nSheetMargin);
if( nCols > 1 )
@@ -1985,12 +1985,12 @@ void PrintDialog::updateNupFromPages()
nVertMax = (aSize.Height() - 2*nSheetMargin);
if( nRows > 1 )
nHorzMax /= (nRows-1);
-
+
if( nPageMargin > nHorzMax )
nPageMargin = nHorzMax;
if( nPageMargin > nVertMax )
nPageMargin = nVertMax;
-
+
maNUpPage.maPageMarginEdt.SetMax(
maNUpPage.maSheetMarginEdt.Normalize(
nHorzMax > nVertMax ? nVertMax : nHorzMax ), FUNIT_100TH_MM );
@@ -2000,7 +2000,7 @@ void PrintDialog::updateNupFromPages()
maNUpPage.maNupColEdt.SetValue( nCols );
maNUpPage.maPageMarginEdt.SetValue( maNUpPage.maPageMarginEdt.Normalize( nPageMargin ), FUNIT_100TH_MM );
maNUpPage.maSheetMarginEdt.SetValue( maNUpPage.maSheetMarginEdt.Normalize( nSheetMargin ), FUNIT_100TH_MM );
-
+
maNUpPage.showAdvancedControls( bCustom );
if( bCustom )
{
@@ -2024,29 +2024,29 @@ void PrintDialog::updateNup()
int nCols = int(maNUpPage.maNupColEdt.GetValue());
long nPageMargin = long(maNUpPage.maPageMarginEdt.Denormalize(maNUpPage.maPageMarginEdt.GetValue( FUNIT_100TH_MM )));
long nSheetMargin = long(maNUpPage.maSheetMarginEdt.Denormalize(maNUpPage.maSheetMarginEdt.GetValue( FUNIT_100TH_MM )));
-
+
PrinterController::MultiPageSetup aMPS;
aMPS.nRows = nRows;
aMPS.nColumns = nCols;
aMPS.nRepeat = 1;
- aMPS.nLeftMargin =
- aMPS.nTopMargin =
- aMPS.nRightMargin =
+ aMPS.nLeftMargin =
+ aMPS.nTopMargin =
+ aMPS.nRightMargin =
aMPS.nBottomMargin = nSheetMargin;
-
+
aMPS.nHorizontalSpacing =
aMPS.nVerticalSpacing = nPageMargin;
aMPS.bDrawBorder = maNUpPage.maBorderCB.IsChecked();
-
- int nOrderMode = int(sal_IntPtr(maNUpPage.maNupOrderBox.GetEntryData(
+
+ int nOrderMode = int(sal_IntPtr(maNUpPage.maNupOrderBox.GetEntryData(
maNUpPage.maNupOrderBox.GetSelectEntryPos() )));
if( nOrderMode == SV_PRINT_PRT_NUP_ORDER_LRTD )
aMPS.nOrder = PrinterController::LRTB;
else if( nOrderMode == SV_PRINT_PRT_NUP_ORDER_TDLR )
aMPS.nOrder = PrinterController::TBLR;
-
- int nOrientationMode = int(sal_IntPtr(maNUpPage.maNupOrientationBox.GetEntryData(
+
+ int nOrientationMode = int(sal_IntPtr(maNUpPage.maNupOrientationBox.GetEntryData(
maNUpPage.maNupOrientationBox.GetSelectEntryPos() )));
if( nOrientationMode == SV_PRINT_PRT_NUP_ORIENTATION_LANDSCAPE )
aMPS.aPaperSize = maNupLandscapeSize;
@@ -2057,18 +2057,18 @@ void PrintDialog::updateNup()
// get size of first real page to see if it is portrait or landscape
// we assume same page sizes for all the pages for this
Size aPageSize = getJobPageSize();
-
+
Size aMultiSize( aPageSize.Width() * nCols, aPageSize.Height() * nRows );
if( aMultiSize.Width() > aMultiSize.Height() ) // fits better on landscape
aMPS.aPaperSize = maNupLandscapeSize;
else
- aMPS.aPaperSize = maNupPortraitSize;
+ aMPS.aPaperSize = maNupPortraitSize;
}
-
+
maPController->setMultipage( aMPS );
-
+
maNUpPage.maNupOrderWin.setValues( nOrderMode, nCols, nRows );
-
+
preparePreview( true, true );
}
@@ -2092,7 +2092,7 @@ IMPL_LINK( PrintDialog, SelectHdl, ListBox*, pBox )
maNUpPage.maPagesBtn.Check();
updateNupFromPages();
}
-
+
return 0;
}
@@ -2133,9 +2133,9 @@ IMPL_LINK( PrintDialog, ClickHdl, Button*, pButton )
{
sal_Bool bVal = maNUpPage.maBrochureBtn.IsChecked();
pVal->Value <<= bVal;
-
+
checkOptionalControlDependencies();
-
+
// update preview and page settings
preparePreview();
}
@@ -2328,12 +2328,12 @@ IMPL_LINK( PrintDialog, UIOption_CheckHdl, CheckBox*, i_pBox )
if( pVal )
{
makeEnabled( i_pBox );
-
+
sal_Bool bVal = i_pBox->IsChecked();
pVal->Value <<= bVal;
-
+
checkOptionalControlDependencies();
-
+
// update preview and page settings
preparePreview();
}
@@ -2352,12 +2352,12 @@ IMPL_LINK( PrintDialog, UIOption_RadioHdl, RadioButton*, i_pBtn )
if( pVal && it != maControlToNumValMap.end() )
{
makeEnabled( i_pBtn );
-
+
sal_Int32 nVal = it->second;
pVal->Value <<= nVal;
-
+
checkOptionalControlDependencies();
-
+
// update preview and page settings
preparePreview();
}
@@ -2371,12 +2371,12 @@ IMPL_LINK( PrintDialog, UIOption_SelectHdl, ListBox*, i_pBox )
if( pVal )
{
makeEnabled( i_pBox );
-
+
sal_Int32 nVal( i_pBox->GetSelectEntryPos() );
pVal->Value <<= nVal;
-
+
checkOptionalControlDependencies();
-
+
// update preview and page settings
preparePreview();
}
@@ -2407,9 +2407,9 @@ IMPL_LINK( PrintDialog, UIOption_ModifyHdl, Edit*, i_pBox )
rtl::OUString aVal( i_pBox->GetText() );
pVal->Value <<= aVal;
}
-
+
checkOptionalControlDependencies();
-
+
// update preview and page settings
preparePreview();
}
@@ -2472,9 +2472,9 @@ PrintProgressDialog::PrintProgressDialog( Window* i_pParent, int i_nMax ) :
if( mnMax < 1 )
mnMax = 1;
-
+
maStr = maText.GetText();
-
+
maButton.SetClickHdl( LINK( this, PrintProgressDialog, ClickHdl ) );
}
@@ -2487,7 +2487,7 @@ IMPL_LINK( PrintProgressDialog, ClickHdl, Button*, pButton )
{
if( pButton == &maButton )
mbCanceled = true;
-
+
return 0;
}
@@ -2514,7 +2514,7 @@ void PrintProgressDialog::setProgress( int i_nCurrent, int i_nMax )
{
if( maProgressRect.IsEmpty() )
implCalcProgressRect();
-
+
mnCur = i_nCurrent;
if( i_nMax != -1 )
mnMax = i_nMax;
@@ -2525,7 +2525,7 @@ void PrintProgressDialog::setProgress( int i_nCurrent, int i_nMax )
rtl::OUString aNewText( searchAndReplace( maStr, "%p", 2, rtl::OUString::valueOf( mnCur ) ) );
aNewText = searchAndReplace( aNewText, "%n", 2, rtl::OUString::valueOf( mnMax ) );
maText.SetText( aNewText );
-
+
// update progress
Invalidate( maProgressRect, INVALIDATE_UPDATE );
}
@@ -2545,7 +2545,7 @@ void PrintProgressDialog::Paint( const Rectangle& )
{
if( maProgressRect.IsEmpty() )
implCalcProgressRect();
-
+
Push( PUSH_LINECOLOR | PUSH_FILLCOLOR );
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
Color aPrgsColor = rStyleSettings.GetHighlightColor();
diff --git a/vcl/source/window/scrwnd.cxx b/vcl/source/window/scrwnd.cxx
index 159216beb484..3ebdfc936a7f 100644
--- a/vcl/source/window/scrwnd.cxx
+++ b/vcl/source/window/scrwnd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/scrwnd.hxx b/vcl/source/window/scrwnd.hxx
index 0b00d0940059..d366c2a66c06 100644
--- a/vcl/source/window/scrwnd.hxx
+++ b/vcl/source/window/scrwnd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,13 +34,13 @@
// - Defines -
// -----------
-#define WHEELMODE_NONE 0x00000000UL
-#define WHEELMODE_VH 0x00000001UL
-#define WHEELMODE_V 0x00000002UL
-#define WHEELMODE_H 0x00000004UL
-#define WHEELMODE_SCROLL_VH 0x00000008UL
-#define WHEELMODE_SCROLL_V 0x00000010UL
-#define WHEELMODE_SCROLL_H 0x00000020UL
+#define WHEELMODE_NONE 0x00000000UL
+#define WHEELMODE_VH 0x00000001UL
+#define WHEELMODE_V 0x00000002UL
+#define WHEELMODE_H 0x00000004UL
+#define WHEELMODE_SCROLL_VH 0x00000008UL
+#define WHEELMODE_SCROLL_V 0x00000010UL
+#define WHEELMODE_SCROLL_H 0x00000020UL
// -------------------
// - ImplWheelWindow -
@@ -52,44 +52,44 @@ class ImplWheelWindow : public FloatingWindow
{
private:
- ImageList maImgList;
- Bitmap maWheelBmp;
- CommandScrollData maCommandScrollData;
- Point maLastMousePos;
- Point maCenter;
- Timer* mpTimer;
- ULONG mnRepaintTime;
- ULONG mnTimeout;
- ULONG mnWheelMode;
- ULONG mnMaxWidth;
- ULONG mnActWidth;
- ULONG mnActDist;
- long mnActDeltaX;
- long mnActDeltaY;
-
- void ImplCreateImageList();
- void ImplSetRegion( const Bitmap& rRegionBmp );
+ ImageList maImgList;
+ Bitmap maWheelBmp;
+ CommandScrollData maCommandScrollData;
+ Point maLastMousePos;
+ Point maCenter;
+ Timer* mpTimer;
+ ULONG mnRepaintTime;
+ ULONG mnTimeout;
+ ULONG mnWheelMode;
+ ULONG mnMaxWidth;
+ ULONG mnActWidth;
+ ULONG mnActDist;
+ long mnActDeltaX;
+ long mnActDeltaY;
+
+ void ImplCreateImageList();
+ void ImplSetRegion( const Bitmap& rRegionBmp );
using Window::ImplGetMousePointer;
- PointerStyle ImplGetMousePointer( long nDistX, long nDistY );
- void ImplDrawWheel();
- void ImplRecalcScrollValues();
-
+ PointerStyle ImplGetMousePointer( long nDistX, long nDistY );
+ void ImplDrawWheel();
+ void ImplRecalcScrollValues();
+
DECL_LINK( ImplScrollHdl, Timer* pTimer );
-
-protected:
-
- virtual void Paint( const Rectangle& rRect );
- virtual void MouseMove( const MouseEvent& rMEvt );
- virtual void MouseButtonUp( const MouseEvent& rMEvt );
-
-public:
-
+
+protected:
+
+ virtual void Paint( const Rectangle& rRect );
+ virtual void MouseMove( const MouseEvent& rMEvt );
+ virtual void MouseButtonUp( const MouseEvent& rMEvt );
+
+public:
+
ImplWheelWindow( Window* pParent );
~ImplWheelWindow();
void ImplStop();
- void ImplSetWheelMode( ULONG nWheelMode );
- ULONG ImplGetWheelMode() const { return mnWheelMode; }
+ void ImplSetWheelMode( ULONG nWheelMode );
+ ULONG ImplGetWheelMode() const { return mnWheelMode; }
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx
index 88ec11d4cc66..46f6fafeabd9 100644
--- a/vcl/source/window/seleng.cxx
+++ b/vcl/source/window/seleng.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
inline BOOL SelectionEngine::ShouldDeselect( BOOL bModifierKey1 ) const
{
-// return !( eSelMode == MULTIPLE_SELECTION && bModifierKey1 );
+// return !( eSelMode == MULTIPLE_SELECTION && bModifierKey1 );
return eSelMode != MULTIPLE_SELECTION || !bModifierKey1;
}
@@ -203,7 +203,7 @@ BOOL SelectionEngine::SelMouseButtonDown( const MouseEvent& rMEvt )
nFlags &= (~SELENG_CMDEVT);
if ( !pFunctionSet || !pWin )
return FALSE;
- const bool bRightClickCursorPositioning =
+ const bool bRightClickCursorPositioning =
rMEvt.IsRight() && rMEvt.GetClicks() == 1 && !IsInSelection();
if ( (rMEvt.GetClicks() > 1 || rMEvt.IsRight()) && !bRightClickCursorPositioning )
return FALSE;
diff --git a/vcl/source/window/split.cxx b/vcl/source/window/split.cxx
index df03cf321ce3..4c1b2457083d 100644
--- a/vcl/source/window/split.cxx
+++ b/vcl/source/window/split.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,8 +41,8 @@
#include <rtl/instance.hxx>
#include <vcl/window.h>
-namespace
-{
+namespace
+{
struct ImplBlackWall
: public rtl::StaticWithInit<Wallpaper, ImplBlackWall> {
Wallpaper operator () () {
@@ -54,7 +54,7 @@ namespace
Wallpaper operator () () {
return Wallpaper(COL_LIGHTGRAY);
}
- };
+ };
}
// =======================================================================
@@ -62,11 +62,11 @@ namespace
void Splitter::ImplInitSplitterData()
{
ImplGetWindowImpl()->mbSplitter = TRUE;
- mpRefWin = NULL;
- mnSplitPos = 0;
- mnLastSplitPos = 0;
+ mpRefWin = NULL;
+ mnSplitPos = 0;
+ mnLastSplitPos = 0;
mnStartSplitPos = 0;
- mbDragFull = FALSE;
+ mbDragFull = FALSE;
mbKbdSplitting = FALSE;
mbInKeyEvent = 0;
mnKeyboardStepSize = SPLITTER_DEFAULTSTEPSIZE;
@@ -103,11 +103,11 @@ void Splitter::ImplInit( Window* pParent, WinBits nWinStyle )
if( GetSettings().GetStyleSettings().GetFaceColor().IsDark() )
SetBackground( ImplWhiteWall::get() );
- else
+ else
SetBackground( ImplBlackWall::get() );
TaskPaneList *pTList = GetSystemWindow()->GetTaskPaneList();
- pTList->AddWindow( this );
+ pTList->AddWindow( this );
}
// -----------------------------------------------------------------------
@@ -138,13 +138,13 @@ void Splitter::ImplDrawSplitter()
if ( mbHorzSplit )
{
- aInvRect.Left() = maDragPos.X() - 1;
- aInvRect.Right() = maDragPos.X() + 1;
+ aInvRect.Left() = maDragPos.X() - 1;
+ aInvRect.Right() = maDragPos.X() + 1;
}
else
{
- aInvRect.Top() = maDragPos.Y() - 1;
- aInvRect.Bottom() = maDragPos.Y() + 1;
+ aInvRect.Top() = maDragPos.Y() - 1;
+ aInvRect.Bottom() = maDragPos.Y() + 1;
}
mpRefWin->InvertTracking( mpRefWin->PixelToLogic(aInvRect), SHOWTRACK_SPLIT );
@@ -179,7 +179,7 @@ Splitter::Splitter( Window* pParent, const ResId& rResId ) :
Splitter::~Splitter()
{
TaskPaneList *pTList = GetSystemWindow()->GetTaskPaneList();
- pTList->RemoveWindow( this );
+ pTList->RemoveWindow( this );
}
// -----------------------------------------------------------------------
@@ -195,7 +195,7 @@ long Splitter::GetKeyboardStepSize() const
{
return mnKeyboardStepSize;
}
-
+
// -----------------------------------------------------------------------
Splitter* Splitter::ImplFindSibling()
@@ -217,7 +217,7 @@ Splitter* Splitter::ImplFindSibling()
}
// -----------------------------------------------------------------------
-
+
BOOL Splitter::ImplSplitterActive()
{
// is splitter in document or at scrollbar handle ?
@@ -401,7 +401,7 @@ void Splitter::ImplKbdTracking( KeyCode aKeyCode )
int maxiter = 500; // avoid endless loop
int delta=0;
int delta_step = mbHorzSplit ? aSize.Width()/10 : aSize.Height()/10;
-
+
// use the specified step size if it was set
if( mnKeyboardStepSize != SPLITTER_DEFAULTSTEPSIZE )
delta_step = mnKeyboardStepSize;
@@ -417,16 +417,16 @@ void Splitter::ImplKbdTracking( KeyCode aKeyCode )
switch( nCode )
{
- case KEY_LEFT:
+ case KEY_LEFT:
aNewPos.X()-=delta;
break;
- case KEY_RIGHT:
+ case KEY_RIGHT:
aNewPos.X()+=delta;
break;
- case KEY_UP:
+ case KEY_UP:
aNewPos.Y()-=delta;
break;
- case KEY_DOWN:
+ case KEY_DOWN:
aNewPos.Y()+=delta;
break;
default:
@@ -447,7 +447,7 @@ void Splitter::ImplKbdTracking( KeyCode aKeyCode )
if ( aNewPos.Y() == maDragPos.Y() )
continue;
}
-
+
maDragPos = aNewPos;
long nNewPos;
if ( mbHorzSplit )
@@ -557,7 +557,7 @@ void Splitter::ImplStartKbdSplitting()
StartSplit();
- // determine start position
+ // determine start position
// because we have no mouse position we take either the position
// of the splitter window or the last split position
// the other coordinate is just the center of the reference window
@@ -728,7 +728,7 @@ void Splitter::KeyInput( const KeyEvent& rKEvt )
GrabFocusToDocument();
break;
}
- mbInKeyEvent = 0;
+ mbInKeyEvent = 0;
}
// -----------------------------------------------------------------------
@@ -751,7 +751,7 @@ void Splitter::DataChanged( const DataChangedEvent& rDCEvt )
{
if( newFaceColor.IsDark() )
SetBackground( ImplWhiteWall::get() );
- else
+ else
SetBackground( ImplBlackWall::get() );
}
}
@@ -762,7 +762,7 @@ void Splitter::DataChanged( const DataChangedEvent& rDCEvt )
void Splitter::Paint( const Rectangle& rPaintRect )
{
if( HasFocus() || mbKbdSplitting )
- {
+ {
Color oldFillCol = GetFillColor();
Color oldLineCol = GetLineColor();
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index ebf06634a3b3..75c81639bc8e 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,49 +51,49 @@
// Achtung: Darf keine Objekte enthalten, da mit memmove/memcpy gearbeitet wird
struct ImplSplitItem
{
- long mnSize;
- long mnPixSize;
- long mnLeft;
- long mnTop;
- long mnWidth;
- long mnHeight;
- long mnSplitPos;
- long mnSplitSize;
- long mnOldSplitPos;
- long mnOldSplitSize;
- long mnOldWidth;
- long mnOldHeight;
- ImplSplitSet* mpSet;
- Window* mpWindow;
- Window* mpOrgParent;
- USHORT mnId;
+ long mnSize;
+ long mnPixSize;
+ long mnLeft;
+ long mnTop;
+ long mnWidth;
+ long mnHeight;
+ long mnSplitPos;
+ long mnSplitSize;
+ long mnOldSplitPos;
+ long mnOldSplitSize;
+ long mnOldWidth;
+ long mnOldHeight;
+ ImplSplitSet* mpSet;
+ Window* mpWindow;
+ Window* mpOrgParent;
+ USHORT mnId;
SplitWindowItemBits mnBits;
- BOOL mbFixed;
- BOOL mbSubSize;
+ BOOL mbFixed;
+ BOOL mbSubSize;
};
struct ImplSplitSet
{
- ImplSplitItem* mpItems;
- Wallpaper* mpWallpaper;
- Bitmap* mpBitmap;
- long mnLastSize;
- long mnSplitSize;
- USHORT mnItems;
- USHORT mnId;
- BOOL mbCalcPix;
+ ImplSplitItem* mpItems;
+ Wallpaper* mpWallpaper;
+ Bitmap* mpBitmap;
+ long mnLastSize;
+ long mnSplitSize;
+ USHORT mnItems;
+ USHORT mnId;
+ BOOL mbCalcPix;
};
-#define SPLITWIN_SPLITSIZE 3
-#define SPLITWIN_SPLITSIZEEX 4
-#define SPLITWIN_SPLITSIZEEXLN 6
-#define SPLITWIN_SPLITSIZEAUTOHIDE 36
-#define SPLITWIN_SPLITSIZEFADE 36
+#define SPLITWIN_SPLITSIZE 3
+#define SPLITWIN_SPLITSIZEEX 4
+#define SPLITWIN_SPLITSIZEEXLN 6
+#define SPLITWIN_SPLITSIZEAUTOHIDE 36
+#define SPLITWIN_SPLITSIZEFADE 36
-#define SPLIT_HORZ ((USHORT)0x0001)
-#define SPLIT_VERT ((USHORT)0x0002)
-#define SPLIT_WINDOW ((USHORT)0x0004)
-#define SPLIT_NOSPLIT ((USHORT)0x8000)
+#define SPLIT_HORZ ((USHORT)0x0001)
+#define SPLIT_VERT ((USHORT)0x0002)
+#define SPLIT_WINDOW ((USHORT)0x0004)
+#define SPLIT_NOSPLIT ((USHORT)0x8000)
// -----------------------------------------------------------------------
@@ -107,39 +107,39 @@ static void ImplCalcBorder( WindowAlign eAlign, BOOL bNoAlign,
{
if ( bNoAlign )
{
- rLeft = 2;
- rTop = 2;
- rRight = 2;
+ rLeft = 2;
+ rTop = 2;
+ rRight = 2;
rBottom = 2;
}
else
{
if ( eAlign == WINDOWALIGN_TOP )
{
- rLeft = 2;
- rTop = 2;
- rRight = 2;
+ rLeft = 2;
+ rTop = 2;
+ rRight = 2;
rBottom = 0;
}
else if ( eAlign == WINDOWALIGN_LEFT )
{
- rLeft = 2;
- rTop = 2;
- rRight = 0;
+ rLeft = 2;
+ rTop = 2;
+ rRight = 0;
rBottom = 2;
}
else if ( eAlign == WINDOWALIGN_BOTTOM )
{
- rLeft = 2;
- rTop = 0;
- rRight = 2;
+ rLeft = 2;
+ rTop = 0;
+ rRight = 2;
rBottom = 2;
}
else
{
- rLeft = 0;
- rTop = 2;
- rRight = 2;
+ rLeft = 0;
+ rTop = 2;
+ rRight = 2;
rBottom = 2;
}
}
@@ -149,15 +149,15 @@ static void ImplCalcBorder( WindowAlign eAlign, BOOL bNoAlign,
void SplitWindow::ImplDrawBorder( SplitWindow* pWin )
{
- const StyleSettings& rStyleSettings = pWin->GetSettings().GetStyleSettings();
- long nDX = pWin->mnDX;
- long nDY = pWin->mnDY;
+ const StyleSettings& rStyleSettings = pWin->GetSettings().GetStyleSettings();
+ long nDX = pWin->mnDX;
+ long nDY = pWin->mnDY;
if ( pWin->mbNoAlign )
{
- DecorationView aDecoView( pWin );
- Point aTmpPoint;
- Rectangle aRect( aTmpPoint, Size( nDX, nDY ) );
+ DecorationView aDecoView( pWin );
+ Point aTmpPoint;
+ Rectangle aRect( aTmpPoint, Size( nDX, nDY ) );
aDecoView.DrawFrame( aRect, FRAME_DRAW_DOUBLEIN );
}
else
@@ -254,9 +254,9 @@ void SplitWindow::ImplDrawBorderLine( SplitWindow* pWin )
{
if ( pWin->mbFadeOut || pWin->mbAutoHide )
{
- const StyleSettings& rStyleSettings = pWin->GetSettings().GetStyleSettings();
- long nDX = pWin->mnDX;
- long nDY = pWin->mnDY;
+ const StyleSettings& rStyleSettings = pWin->GetSettings().GetStyleSettings();
+ long nDX = pWin->mnDX;
+ long nDY = pWin->mnDY;
if ( pWin->meAlign == WINDOWALIGN_LEFT )
{
@@ -296,9 +296,9 @@ static ImplSplitSet* ImplFindSet( ImplSplitSet* pSet, USHORT nId )
if ( pSet->mnId == nId )
return pSet;
- USHORT i;
- USHORT nItems = pSet->mnItems;
- ImplSplitItem* pItems = pSet->mpItems;
+ USHORT i;
+ USHORT nItems = pSet->mnItems;
+ ImplSplitItem* pItems = pSet->mpItems;
for ( i = 0; i < nItems; i++ )
{
@@ -323,9 +323,9 @@ static ImplSplitSet* ImplFindSet( ImplSplitSet* pSet, USHORT nId )
static ImplSplitSet* ImplFindItem( ImplSplitSet* pSet, USHORT nId, USHORT& rPos )
{
- USHORT i;
- USHORT nItems = pSet->mnItems;
- ImplSplitItem* pItems = pSet->mpItems;
+ USHORT i;
+ USHORT nItems = pSet->mnItems;
+ ImplSplitItem* pItems = pSet->mpItems;
for ( i = 0; i < nItems; i++ )
{
@@ -353,9 +353,9 @@ static ImplSplitSet* ImplFindItem( ImplSplitSet* pSet, USHORT nId, USHORT& rPos
static USHORT ImplFindItem( ImplSplitSet* pSet, Window* pWindow )
{
- USHORT i;
- USHORT nItems = pSet->mnItems;
- ImplSplitItem* pItems = pSet->mpItems;
+ USHORT i;
+ USHORT nItems = pSet->mnItems;
+ ImplSplitItem* pItems = pSet->mpItems;
for ( i = 0; i < nItems; i++ )
{
@@ -380,18 +380,18 @@ static USHORT ImplFindItem( ImplSplitSet* pSet, Window* pWindow )
static USHORT ImplFindItem( ImplSplitSet* pSet, const Point& rPos,
BOOL bRows, BOOL bDown = TRUE )
{
- USHORT i;
- USHORT nItems = pSet->mnItems;
- ImplSplitItem* pItems = pSet->mpItems;
+ USHORT i;
+ USHORT nItems = pSet->mnItems;
+ ImplSplitItem* pItems = pSet->mpItems;
for ( i = 0; i < nItems; i++ )
{
if ( pItems[i].mnWidth && pItems[i].mnHeight )
{
// Wegen ICC auftrennen
- Point aPoint( pItems[i].mnLeft, pItems[i].mnTop );
- Size aSize( pItems[i].mnWidth, pItems[i].mnHeight );
- Rectangle aRect( aPoint, aSize );
+ Point aPoint( pItems[i].mnLeft, pItems[i].mnTop );
+ Size aSize( pItems[i].mnWidth, pItems[i].mnHeight );
+ Rectangle aRect( aPoint, aSize );
if ( bRows )
{
if ( bDown )
@@ -427,9 +427,9 @@ static USHORT ImplFindItem( ImplSplitSet* pSet, const Point& rPos,
static void ImplDeleteSet( ImplSplitSet* pSet )
{
- USHORT i;
- USHORT nItems = pSet->mnItems;
- ImplSplitItem* pItems = pSet->mpItems;
+ USHORT i;
+ USHORT nItems = pSet->mnItems;
+ ImplSplitItem* pItems = pSet->mpItems;
for ( i = 0; i < nItems; i++ )
{
@@ -469,27 +469,27 @@ static void ImplCalcSet( ImplSplitSet* pSet,
if ( !pSet->mpItems )
return;
- USHORT i;
- USHORT j;
- USHORT nMins;
- USHORT nCalcItems;
- USHORT nItems = pSet->mnItems;
- USHORT nVisItems;
- USHORT nAbsItems;
- long nCalcSize;
- long nSizeDelta;
- long nCurSize;
- long nSizeWinSize;
- long nNewSizeWinSize;
- long nTemp;
- long nTempErr;
- long nErrorSum;
- long nCurSizeDelta;
- long nPos;
- long nMaxPos;
- long* pSize;
- ImplSplitItem* pItems = pSet->mpItems;
- BOOL bEmpty;
+ USHORT i;
+ USHORT j;
+ USHORT nMins;
+ USHORT nCalcItems;
+ USHORT nItems = pSet->mnItems;
+ USHORT nVisItems;
+ USHORT nAbsItems;
+ long nCalcSize;
+ long nSizeDelta;
+ long nCurSize;
+ long nSizeWinSize;
+ long nNewSizeWinSize;
+ long nTemp;
+ long nTempErr;
+ long nErrorSum;
+ long nCurSizeDelta;
+ long nPos;
+ long nMaxPos;
+ long* pSize;
+ ImplSplitItem* pItems = pSet->mpItems;
+ BOOL bEmpty;
// Anzahl sichtbarer Items ermitteln
nVisItems = 0;
@@ -509,10 +509,10 @@ static void ImplCalcSet( ImplSplitSet* pSet,
if ( pSet->mbCalcPix || (pSet->mnLastSize != nCalcSize) )
{
long nPercentFactor = 10;
- long nRelCount = 0;
- long nPercent = 0;
- long nRelPercent = 0;
- long nAbsSize = 0;
+ long nRelCount = 0;
+ long nPercent = 0;
+ long nRelPercent = 0;
+ long nAbsSize = 0;
for ( i = 0; i < nItems; i++ )
{
if ( !(pItems[i].mnBits & SWIB_INVISIBLE) )
@@ -573,11 +573,11 @@ static void ImplCalcSet( ImplSplitSet* pSet,
pSet->mnLastSize = nCalcSize;
// Fenster einpassen
- nSizeDelta = nCalcSize-nCurSize;
+ nSizeDelta = nCalcSize-nCurSize;
if ( nSizeDelta )
{
- nAbsItems = 0;
- nSizeWinSize = 0;
+ nAbsItems = 0;
+ nSizeWinSize = 0;
nNewSizeWinSize = 0;
// Zuerst die absoluten Items relativ resizen
@@ -610,8 +610,8 @@ static void ImplCalcSet( ImplSplitSet* pSet,
}
// Jetzt die Rundunsfehler ausgleichen
- j = 0;
- nMins = 0;
+ j = 0;
+ nMins = 0;
while ( nSizeDelta && (nItems != nMins) )
{
// Feststellen, welche Items berechnet werden duerfen
@@ -649,9 +649,9 @@ static void ImplCalcSet( ImplSplitSet* pSet,
}
// Groessen von den einzelnen Items abziehen
- nErrorSum = nSizeDelta % nCalcItems;
- nCurSizeDelta = nSizeDelta / nCalcItems;
- nMins = 0;
+ nErrorSum = nSizeDelta % nCalcItems;
+ nCurSizeDelta = nSizeDelta / nCalcItems;
+ nMins = 0;
for ( i = 0; i < nItems; i++ )
{
if ( pItems[i].mnBits & SWIB_INVISIBLE )
@@ -728,8 +728,8 @@ static void ImplCalcSet( ImplSplitSet* pSet,
{
pItems[i].mnOldSplitPos = pItems[i].mnSplitPos;
pItems[i].mnOldSplitSize = pItems[i].mnSplitSize;
- pItems[i].mnOldWidth = pItems[i].mnWidth;
- pItems[i].mnOldHeight = pItems[i].mnHeight;
+ pItems[i].mnOldWidth = pItems[i].mnWidth;
+ pItems[i].mnOldHeight = pItems[i].mnHeight;
if ( pItems[i].mnBits & SWIB_INVISIBLE )
bEmpty = TRUE;
@@ -751,8 +751,8 @@ static void ImplCalcSet( ImplSplitSet* pSet,
if ( bEmpty )
{
- pItems[i].mnWidth = 0;
- pItems[i].mnHeight = 0;
+ pItems[i].mnWidth = 0;
+ pItems[i].mnHeight = 0;
pItems[i].mnSplitSize = 0;
}
else
@@ -843,9 +843,9 @@ static void ImplCalcSet( ImplSplitSet* pSet,
void SplitWindow::ImplCalcSet2( SplitWindow* pWindow, ImplSplitSet* pSet, BOOL bHide,
BOOL bRows, BOOL /*bDown*/ )
{
- USHORT i;
- USHORT nItems = pSet->mnItems;
- ImplSplitItem* pItems = pSet->mpItems;
+ USHORT i;
+ USHORT nItems = pSet->mnItems;
+ ImplSplitItem* pItems = pSet->mpItems;
if ( pWindow->IsReallyVisible() && pWindow->IsUpdateMode() && pWindow->mbInvalidate )
{
@@ -856,7 +856,7 @@ void SplitWindow::ImplCalcSet2( SplitWindow* pWindow, ImplSplitSet* pSet, BOOL b
// Evt. alles invalidieren oder nur einen kleinen Teil
if ( (pItems[i].mnOldSplitPos != pItems[i].mnSplitPos) ||
(pItems[i].mnOldSplitSize != pItems[i].mnSplitSize) ||
- (pItems[i].mnOldWidth != pItems[i].mnWidth) ||
+ (pItems[i].mnOldWidth != pItems[i].mnWidth) ||
(pItems[i].mnOldHeight != pItems[i].mnHeight) )
{
Rectangle aRect;
@@ -864,33 +864,33 @@ void SplitWindow::ImplCalcSet2( SplitWindow* pWindow, ImplSplitSet* pSet, BOOL b
// Old Rect invalidieren
if ( bRows )
{
- aRect.Left() = pItems[i].mnLeft;
- aRect.Right() = pItems[i].mnLeft+pItems[i].mnOldWidth-1;
- aRect.Top() = pItems[i].mnOldSplitPos;
- aRect.Bottom() = aRect.Top() + pItems[i].mnOldSplitSize;
+ aRect.Left() = pItems[i].mnLeft;
+ aRect.Right() = pItems[i].mnLeft+pItems[i].mnOldWidth-1;
+ aRect.Top() = pItems[i].mnOldSplitPos;
+ aRect.Bottom() = aRect.Top() + pItems[i].mnOldSplitSize;
}
else
{
- aRect.Top() = pItems[i].mnTop;
- aRect.Bottom() = pItems[i].mnTop+pItems[i].mnOldHeight-1;
- aRect.Left() = pItems[i].mnOldSplitPos;
- aRect.Right() = aRect.Left() + pItems[i].mnOldSplitSize;
+ aRect.Top() = pItems[i].mnTop;
+ aRect.Bottom() = pItems[i].mnTop+pItems[i].mnOldHeight-1;
+ aRect.Left() = pItems[i].mnOldSplitPos;
+ aRect.Right() = aRect.Left() + pItems[i].mnOldSplitSize;
}
pWindow->Invalidate( aRect );
// New Rect invalidieren
if ( bRows )
{
- aRect.Left() = pItems[i].mnLeft;
- aRect.Right() = pItems[i].mnLeft+pItems[i].mnWidth-1;
- aRect.Top() = pItems[i].mnSplitPos;
- aRect.Bottom() = aRect.Top() + pItems[i].mnSplitSize;
+ aRect.Left() = pItems[i].mnLeft;
+ aRect.Right() = pItems[i].mnLeft+pItems[i].mnWidth-1;
+ aRect.Top() = pItems[i].mnSplitPos;
+ aRect.Bottom() = aRect.Top() + pItems[i].mnSplitSize;
}
else
{
- aRect.Top() = pItems[i].mnTop;
- aRect.Bottom() = pItems[i].mnTop+pItems[i].mnHeight-1;
- aRect.Left() = pItems[i].mnSplitPos;
- aRect.Right() = aRect.Left() + pItems[i].mnSplitSize;
+ aRect.Top() = pItems[i].mnTop;
+ aRect.Bottom() = pItems[i].mnTop+pItems[i].mnHeight-1;
+ aRect.Left() = pItems[i].mnSplitPos;
+ aRect.Right() = aRect.Left() + pItems[i].mnSplitSize;
}
pWindow->Invalidate( aRect );
@@ -898,10 +898,10 @@ void SplitWindow::ImplCalcSet2( SplitWindow* pWindow, ImplSplitSet* pSet, BOOL b
// nicht von Fenstern ueberladen werden
if ( pItems[i].mpSet && !pItems[i].mpSet->mpItems )
{
- aRect.Left() = pItems[i].mnLeft;
- aRect.Top() = pItems[i].mnTop;
- aRect.Right() = pItems[i].mnLeft+pItems[i].mnWidth-1;
- aRect.Bottom() = pItems[i].mnTop+pItems[i].mnHeight-1;
+ aRect.Left() = pItems[i].mnLeft;
+ aRect.Top() = pItems[i].mnTop;
+ aRect.Right() = pItems[i].mnLeft+pItems[i].mnWidth-1;
+ aRect.Bottom() = pItems[i].mnTop+pItems[i].mnHeight-1;
pWindow->Invalidate( aRect );
}
}
@@ -946,9 +946,9 @@ void SplitWindow::ImplCalcSet2( SplitWindow* pWindow, ImplSplitSet* pSet, BOOL b
static void ImplCalcLogSize( ImplSplitItem* pItems, USHORT nItems )
{
// Original-Groessen updaten
- USHORT i;
- long nRelSize = 0;
- long nPerSize = 0;
+ USHORT i;
+ long nRelSize = 0;
+ long nPerSize = 0;
for ( i = 0; i < nItems; i++ )
{
if ( pItems[i].mnBits & SWIB_RELATIVESIZE )
@@ -985,8 +985,8 @@ void SplitWindow::ImplDrawBack( SplitWindow* pWindow, const Rectangle& rRect,
{
if ( pBitmap )
{
- Point aPos = rRect.TopLeft();
- Size aBmpSize = pBitmap->GetSizePixel();
+ Point aPos = rRect.TopLeft();
+ Size aBmpSize = pBitmap->GetSizePixel();
pWindow->Push( PUSH_CLIPREGION );
pWindow->IntersectClipRegion( rRect );
do
@@ -1011,9 +1011,9 @@ void SplitWindow::ImplDrawBack( SplitWindow* pWindow, const Rectangle& rRect,
void SplitWindow::ImplDrawBack( SplitWindow* pWindow, ImplSplitSet* pSet )
{
- USHORT i;
- USHORT nItems = pSet->mnItems;
- ImplSplitItem* pItems = pSet->mpItems;
+ USHORT i;
+ USHORT nItems = pSet->mnItems;
+ ImplSplitItem* pItems = pSet->mpItems;
// Beim Mainset auch den Hintergrund zeichnen
if ( pSet->mnId == 0 )
@@ -1036,9 +1036,9 @@ void SplitWindow::ImplDrawBack( SplitWindow* pWindow, ImplSplitSet* pSet )
if ( pSet->mpBitmap || pSet->mpWallpaper )
{
// Wegen ICC auftrennen
- Point aPoint( pItems[i].mnLeft, pItems[i].mnTop );
- Size aSize( pItems[i].mnWidth, pItems[i].mnHeight );
- Rectangle aRect( aPoint, aSize );
+ Point aPoint( pItems[i].mnLeft, pItems[i].mnTop );
+ Size aSize( pItems[i].mnWidth, pItems[i].mnHeight );
+ Rectangle aRect( aPoint, aSize );
ImplDrawBack( pWindow, aRect, pSet->mpWallpaper, pSet->mpBitmap );
}
}
@@ -1059,13 +1059,13 @@ static void ImplDrawSplit( SplitWindow* pWindow, ImplSplitSet* pSet,
if ( !pSet->mpItems )
return;
- USHORT i;
- USHORT nItems = pSet->mnItems;
- long nPos;
- long nTop;
- long nBottom;
- ImplSplitItem* pItems = pSet->mpItems;
- const StyleSettings& rStyleSettings = pWindow->GetSettings().GetStyleSettings();
+ USHORT i;
+ USHORT nItems = pSet->mnItems;
+ long nPos;
+ long nTop;
+ long nBottom;
+ ImplSplitItem* pItems = pSet->mpItems;
+ const StyleSettings& rStyleSettings = pWindow->GetSettings().GetStyleSettings();
BOOL bFlat = (pWindow->GetStyle() & WB_FLATSPLITDRAW) == WB_FLATSPLITDRAW;
@@ -1079,7 +1079,7 @@ static void ImplDrawSplit( SplitWindow* pWindow, ImplSplitSet* pSet,
long nSplitSize = pSet->mnSplitSize;
if ( bRows )
{
- nTop = pItems[i].mnLeft;
+ nTop = pItems[i].mnLeft;
nBottom = pItems[i].mnLeft+pItems[i].mnWidth-1;
if ( bFlat ) nPos--;
@@ -1109,7 +1109,7 @@ static void ImplDrawSplit( SplitWindow* pWindow, ImplSplitSet* pSet,
}
else
{
- nTop = pItems[i].mnTop;
+ nTop = pItems[i].mnTop;
nBottom = pItems[i].mnTop+pSet->mpItems[i].mnHeight-1;
if ( bFlat ) nPos--;
@@ -1155,15 +1155,15 @@ USHORT SplitWindow::ImplTestSplit( ImplSplitSet* pSet, const Point& rPos,
if ( !pSet->mpItems )
return 0;
- USHORT i;
- USHORT nSplitTest;
- USHORT nItems = pSet->mnItems;
- long nMPos1;
- long nMPos2;
- long nPos;
- long nTop;
- long nBottom;
- ImplSplitItem* pItems = pSet->mpItems;
+ USHORT i;
+ USHORT nSplitTest;
+ USHORT nItems = pSet->mnItems;
+ long nMPos1;
+ long nMPos2;
+ long nPos;
+ long nTop;
+ long nBottom;
+ ImplSplitItem* pItems = pSet->mpItems;
if ( bRows )
{
@@ -1182,12 +1182,12 @@ USHORT SplitWindow::ImplTestSplit( ImplSplitSet* pSet, const Point& rPos,
{
if ( bRows )
{
- nTop = pItems[i].mnLeft;
+ nTop = pItems[i].mnLeft;
nBottom = pItems[i].mnLeft+pItems[i].mnWidth-1;
}
else
{
- nTop = pItems[i].mnTop;
+ nTop = pItems[i].mnTop;
nBottom = pItems[i].mnTop+pItems[i].mnHeight-1;
}
nPos = pItems[i].mnSplitPos;
@@ -1234,9 +1234,9 @@ USHORT SplitWindow::ImplTestSplit( SplitWindow* pWindow, const Point& rPos,
// Resizeable SplitWindow muss anders behandelt werden
if ( pWindow->mnWinStyle & WB_SIZEABLE )
{
- long nTPos;
- long nPos;
- long nBorder;
+ long nTPos;
+ long nPos;
+ long nBorder;
if ( pWindow->mbHorz )
{
@@ -1313,10 +1313,10 @@ void SplitWindow::ImplDrawSplitTracking( SplitWindow* pThis, const Point& rPos )
}
else
{
- aRect.Left() = pThis->maDragRect.Left();
- aRect.Right() = pThis->maDragRect.Right();
- aRect.Top() = rPos.Y();
- aRect.Bottom() = aRect.Top()+pThis->mpSplitSet->mnSplitSize-1;
+ aRect.Left() = pThis->maDragRect.Left();
+ aRect.Right() = pThis->maDragRect.Right();
+ aRect.Top() = rPos.Y();
+ aRect.Bottom() = aRect.Top()+pThis->mpSplitSet->mnSplitSize-1;
if ( !(pThis->mnWinStyle & WB_NOSPLITDRAW) )
aRect.Bottom()--;
if ( (pThis->mnSplitTest & SPLIT_WINDOW) &&
@@ -1333,53 +1333,53 @@ void SplitWindow::ImplDrawSplitTracking( SplitWindow* pThis, const Point& rPos )
void SplitWindow::ImplInit( Window* pParent, WinBits nStyle )
{
- ImplSplitSet* pNewSet = new ImplSplitSet;
- pNewSet->mpItems = NULL;
- pNewSet->mpWallpaper = NULL;
- pNewSet->mpBitmap = NULL;
- pNewSet->mnLastSize = 0;
- pNewSet->mnItems = 0;
- pNewSet->mnId = 0;
- pNewSet->mnSplitSize = SPLITWIN_SPLITSIZE;
- pNewSet->mbCalcPix = TRUE;
-
- mpMainSet = pNewSet;
- mpBaseSet = pNewSet;
- mpSplitSet = NULL;
- mpLastSizes = NULL;
- mnDX = 0;
- mnDY = 0;
- mnLeftBorder = 0;
- mnTopBorder = 0;
- mnRightBorder = 0;
- mnBottomBorder = 0;
- mnMaxSize = 0;
- mnMouseOff = 0;
- meAlign = WINDOWALIGN_TOP;
- mnWinStyle = nStyle;
- mnSplitTest = 0;
- mnSplitPos = 0;
- mnMouseModifier = 0;
- mnMStartPos = 0;
- mnMSplitPos = 0;
- mbDragFull = FALSE;
- mbHorz = TRUE;
- mbBottomRight = FALSE;
- mbCalc = FALSE;
- mbRecalc = TRUE;
- mbInvalidate = TRUE;
- mbAutoHide = FALSE;
- mbFadeIn = FALSE;
- mbFadeOut = FALSE;
- mbAutoHideIn = FALSE;
- mbAutoHideDown = FALSE;
- mbFadeInDown = FALSE;
- mbFadeOutDown = FALSE;
- mbAutoHidePressed = FALSE;
- mbFadeInPressed = FALSE;
- mbFadeOutPressed = FALSE;
- mbFadeNoButtonMode = FALSE;
- mbNoAlign = FALSE;
+ ImplSplitSet* pNewSet = new ImplSplitSet;
+ pNewSet->mpItems = NULL;
+ pNewSet->mpWallpaper = NULL;
+ pNewSet->mpBitmap = NULL;
+ pNewSet->mnLastSize = 0;
+ pNewSet->mnItems = 0;
+ pNewSet->mnId = 0;
+ pNewSet->mnSplitSize = SPLITWIN_SPLITSIZE;
+ pNewSet->mbCalcPix = TRUE;
+
+ mpMainSet = pNewSet;
+ mpBaseSet = pNewSet;
+ mpSplitSet = NULL;
+ mpLastSizes = NULL;
+ mnDX = 0;
+ mnDY = 0;
+ mnLeftBorder = 0;
+ mnTopBorder = 0;
+ mnRightBorder = 0;
+ mnBottomBorder = 0;
+ mnMaxSize = 0;
+ mnMouseOff = 0;
+ meAlign = WINDOWALIGN_TOP;
+ mnWinStyle = nStyle;
+ mnSplitTest = 0;
+ mnSplitPos = 0;
+ mnMouseModifier = 0;
+ mnMStartPos = 0;
+ mnMSplitPos = 0;
+ mbDragFull = FALSE;
+ mbHorz = TRUE;
+ mbBottomRight = FALSE;
+ mbCalc = FALSE;
+ mbRecalc = TRUE;
+ mbInvalidate = TRUE;
+ mbAutoHide = FALSE;
+ mbFadeIn = FALSE;
+ mbFadeOut = FALSE;
+ mbAutoHideIn = FALSE;
+ mbAutoHideDown = FALSE;
+ mbFadeInDown = FALSE;
+ mbFadeOutDown = FALSE;
+ mbAutoHidePressed = FALSE;
+ mbFadeInPressed = FALSE;
+ mbFadeOutPressed = FALSE;
+ mbFadeNoButtonMode = FALSE;
+ mbNoAlign = FALSE;
if ( nStyle & WB_NOSPLITDRAW )
{
@@ -1506,7 +1506,7 @@ Size SplitWindow::CalcLayoutSizePixel( const Size& aNewSize )
{
Size aSize( aNewSize );
long nSplitSize = mpMainSet->mnSplitSize-2;
-
+
if ( mbAutoHide || mbFadeOut )
nSplitSize += SPLITWIN_SPLITSIZEEXLN;
@@ -1515,9 +1515,9 @@ Size SplitWindow::CalcLayoutSizePixel( const Size& aNewSize )
// ist
if ( mnWinStyle & WB_SIZEABLE )
{
- long nCurSize;
- long nCalcSize = 0;
- USHORT i;
+ long nCurSize;
+ long nCalcSize = 0;
+ USHORT i;
for ( i = 0; i < mpMainSet->mnItems; i++ )
{
@@ -1529,9 +1529,9 @@ Size SplitWindow::CalcLayoutSizePixel( const Size& aNewSize )
if ( i == mpMainSet->mnItems )
{
- long nDelta = 0;
- Point aPos = GetPosPixel();
-
+ long nDelta = 0;
+ Point aPos = GetPosPixel();
+
if ( mbHorz )
nCurSize = aNewSize.Height()-mnTopBorder-mnBottomBorder;
else
@@ -1583,9 +1583,9 @@ void SplitWindow::ImplCalcLayout()
// ist
if ( mnWinStyle & WB_SIZEABLE )
{
- long nCurSize;
- long nCalcSize = 0;
- USHORT i;
+ long nCurSize;
+ long nCalcSize = 0;
+ USHORT i;
for ( i = 0; i < mpMainSet->mnItems; i++ )
{
@@ -1614,10 +1614,10 @@ void SplitWindow::ImplCalcLayout()
return;
// Groessen/Position vorberechnen
- long nL;
- long nT;
- long nW;
- long nH;
+ long nL;
+ long nT;
+ long nW;
+ long nH;
if ( mbHorz )
{
@@ -1687,22 +1687,22 @@ void SplitWindow::ImplUpdateSet( ImplSplitSet* pSet )
Rectangle aRect;
if ( pSet == mpMainSet )
{
- aRect.Left() = mnLeftBorder;
- aRect.Top() = mnTopBorder;
- aRect.Right() = mnDX-mnRightBorder-1;
- aRect.Bottom() = mnDY-mnBottomBorder-1;
+ aRect.Left() = mnLeftBorder;
+ aRect.Top() = mnTopBorder;
+ aRect.Right() = mnDX-mnRightBorder-1;
+ aRect.Bottom() = mnDY-mnBottomBorder-1;
}
else
{
- ImplSplitItem* pItem;
- USHORT nPos;
+ ImplSplitItem* pItem;
+ USHORT nPos;
pSet = ImplFindItem( mpMainSet, pSet->mnId, nPos );
pItem = &(pSet->mpItems[nPos]);
- aRect.Left() = pItem->mnLeft;
- aRect.Top() = pItem->mnTop;
- aRect.Right() = aRect.Left()+pItem->mnWidth;
- aRect.Bottom() = aRect.Top()+pItem->mnHeight;
+ aRect.Left() = pItem->mnLeft;
+ aRect.Top() = pItem->mnTop;
+ aRect.Right() = aRect.Left()+pItem->mnWidth;
+ aRect.Bottom() = aRect.Top()+pItem->mnHeight;
}
Invalidate( aRect );
}
@@ -1758,50 +1758,50 @@ void SplitWindow::ImplGetButtonRect( Rectangle& rRect, long nEx, BOOL bTest ) co
if ( meAlign == WINDOWALIGN_TOP )
{
- rRect.Left() = mnLeftBorder+nEx;
- rRect.Top() = mnDY-mnBottomBorder-nSplitSize;
- rRect.Right() = rRect.Left()+SPLITWIN_SPLITSIZEAUTOHIDE;
- rRect.Bottom() = mnDY-mnBottomBorder-1;
+ rRect.Left() = mnLeftBorder+nEx;
+ rRect.Top() = mnDY-mnBottomBorder-nSplitSize;
+ rRect.Right() = rRect.Left()+SPLITWIN_SPLITSIZEAUTOHIDE;
+ rRect.Bottom() = mnDY-mnBottomBorder-1;
if ( bTest )
{
- rRect.Top() -= mnTopBorder;
- rRect.Bottom() += mnBottomBorder;
+ rRect.Top() -= mnTopBorder;
+ rRect.Bottom() += mnBottomBorder;
}
}
else if ( meAlign == WINDOWALIGN_BOTTOM )
{
- rRect.Left() = mnLeftBorder+nEx;
- rRect.Top() = mnTopBorder;
- rRect.Right() = rRect.Left()+SPLITWIN_SPLITSIZEAUTOHIDE;
- rRect.Bottom() = mnTopBorder+nSplitSize-1;
+ rRect.Left() = mnLeftBorder+nEx;
+ rRect.Top() = mnTopBorder;
+ rRect.Right() = rRect.Left()+SPLITWIN_SPLITSIZEAUTOHIDE;
+ rRect.Bottom() = mnTopBorder+nSplitSize-1;
if ( bTest )
{
- rRect.Top() -= mnTopBorder;
- rRect.Bottom() += mnBottomBorder;
+ rRect.Top() -= mnTopBorder;
+ rRect.Bottom() += mnBottomBorder;
}
}
else if ( meAlign == WINDOWALIGN_LEFT )
{
- rRect.Left() = mnDX-mnRightBorder-nSplitSize;
- rRect.Top() = mnTopBorder+nEx;
- rRect.Right() = mnDX-mnRightBorder-1;
- rRect.Bottom() = rRect.Top()+SPLITWIN_SPLITSIZEAUTOHIDE;
+ rRect.Left() = mnDX-mnRightBorder-nSplitSize;
+ rRect.Top() = mnTopBorder+nEx;
+ rRect.Right() = mnDX-mnRightBorder-1;
+ rRect.Bottom() = rRect.Top()+SPLITWIN_SPLITSIZEAUTOHIDE;
if ( bTest )
{
- rRect.Left() -= mnLeftBorder;
- rRect.Right() += mnRightBorder;
+ rRect.Left() -= mnLeftBorder;
+ rRect.Right() += mnRightBorder;
}
}
else if ( meAlign == WINDOWALIGN_RIGHT )
{
- rRect.Left() = mnLeftBorder;
- rRect.Top() = mnTopBorder+nEx;
- rRect.Right() = mnLeftBorder+nSplitSize-1;
- rRect.Bottom() = rRect.Top()+SPLITWIN_SPLITSIZEAUTOHIDE;
+ rRect.Left() = mnLeftBorder;
+ rRect.Top() = mnTopBorder+nEx;
+ rRect.Right() = mnLeftBorder+nSplitSize-1;
+ rRect.Bottom() = rRect.Top()+SPLITWIN_SPLITSIZEAUTOHIDE;
if ( bTest )
{
- rRect.Left() -= mnLeftBorder;
- rRect.Right() += mnRightBorder;
+ rRect.Left() -= mnLeftBorder;
+ rRect.Right() += mnRightBorder;
}
}
}
@@ -1929,7 +1929,7 @@ void SplitWindow::ImplDrawAutoHide( BOOL bInPaint )
// ImageListe laden, wenn noch nicht vorhanden
ImplSVData* pSVData = ImplGetSVData();
- ImageList* pImageList;
+ ImageList* pImageList;
if ( mbHorz )
{
if ( !pSVData->maCtrlData.mpSplitHPinImgList )
@@ -1942,7 +1942,7 @@ void SplitWindow::ImplDrawAutoHide( BOOL bInPaint )
pSVData->maCtrlData.mpSplitHPinImgList->InsertFromHorizontalBitmap
( ResId( SV_RESID_BITMAP_SPLITHPIN, *pResMgr ), 4, &aNonAlphaMask );
}
- }
+ }
pImageList = pSVData->maCtrlData.mpSplitHPinImgList;
}
else
@@ -1959,7 +1959,7 @@ void SplitWindow::ImplDrawAutoHide( BOOL bInPaint )
}
}
pImageList = pSVData->maCtrlData.mpSplitVPinImgList;
- }
+ }
// Image ermitteln und zurueckgeben
USHORT nId;
@@ -1978,11 +1978,11 @@ void SplitWindow::ImplDrawAutoHide( BOOL bInPaint )
nId = 2;
}
- Image aImage = pImageList->GetImage( nId );
- Size aImageSize = aImage.GetSizePixel();
- Point aPos( aTempRect.Left()+((aTempRect.GetWidth()-aImageSize.Width())/2),
+ Image aImage = pImageList->GetImage( nId );
+ Size aImageSize = aImage.GetSizePixel();
+ Point aPos( aTempRect.Left()+((aTempRect.GetWidth()-aImageSize.Width())/2),
aTempRect.Top()+((aTempRect.GetHeight()-aImageSize.Height())/2) );
- long nSize;
+ long nSize;
if ( mbHorz )
nSize = aImageSize.Width();
else
@@ -2112,19 +2112,19 @@ void SplitWindow::ImplDrawFadeIn( BOOL bInPaint )
{
if ( mbFadeIn )
{
- Rectangle aTempRect;
- Image aImage;
+ Rectangle aTempRect;
+ Image aImage;
ImplGetFadeInRect( aTempRect );
BOOL bLeft;
if ( meAlign == WINDOWALIGN_TOP )
- bLeft = FALSE;
+ bLeft = FALSE;
else if ( meAlign == WINDOWALIGN_BOTTOM )
- bLeft = TRUE;
+ bLeft = TRUE;
else if ( meAlign == WINDOWALIGN_LEFT )
- bLeft = FALSE;
+ bLeft = FALSE;
else if ( meAlign == WINDOWALIGN_RIGHT )
- bLeft = TRUE;
+ bLeft = TRUE;
else
bLeft = TRUE;
@@ -2141,19 +2141,19 @@ void SplitWindow::ImplDrawFadeOut( BOOL bInPaint )
{
if ( mbFadeOut )
{
- Rectangle aTempRect;
- Image aImage;
+ Rectangle aTempRect;
+ Image aImage;
ImplGetFadeOutRect( aTempRect );
BOOL bLeft;
if ( meAlign == WINDOWALIGN_TOP )
- bLeft = TRUE;
+ bLeft = TRUE;
else if ( meAlign == WINDOWALIGN_BOTTOM )
- bLeft = FALSE;
+ bLeft = FALSE;
else if ( meAlign == WINDOWALIGN_LEFT )
- bLeft = TRUE;
+ bLeft = TRUE;
else if ( meAlign == WINDOWALIGN_RIGHT )
- bLeft = FALSE;
+ bLeft = FALSE;
else
bLeft = TRUE;
@@ -2172,11 +2172,11 @@ void SplitWindow::ImplStartSplit( const MouseEvent& rMEvt )
if ( mnSplitTest && !(mnSplitTest & SPLIT_NOSPLIT) )
{
- ImplSplitItem* pSplitItem;
- long nCurMaxSize;
- USHORT nTemp;
- BOOL bDown;
- BOOL bPropSmaller;
+ ImplSplitItem* pSplitItem;
+ long nCurMaxSize;
+ USHORT nTemp;
+ BOOL bDown;
+ BOOL bPropSmaller;
mnMouseModifier = rMEvt.GetModifier();
if ( !(mnMouseModifier & KEY_SHIFT) || (mnSplitPos+1 >= mpSplitSet->mnItems) )
@@ -2204,10 +2204,10 @@ void SplitWindow::ImplStartSplit( const MouseEvent& rMEvt )
if ( (mpSplitSet == mpMainSet) && mbBottomRight )
bDown = FALSE;
- pSplitItem = &(mpSplitSet->mpItems[mnSplitPos]);
- maDragRect.Left() = pSplitItem->mnLeft;
- maDragRect.Top() = pSplitItem->mnTop;
- maDragRect.Right() = pSplitItem->mnLeft+pSplitItem->mnWidth-1;
+ pSplitItem = &(mpSplitSet->mpItems[mnSplitPos]);
+ maDragRect.Left() = pSplitItem->mnLeft;
+ maDragRect.Top() = pSplitItem->mnTop;
+ maDragRect.Right() = pSplitItem->mnLeft+pSplitItem->mnWidth-1;
maDragRect.Bottom() = pSplitItem->mnTop+pSplitItem->mnHeight-1;
if ( mnSplitTest & SPLIT_HORZ )
@@ -2302,9 +2302,9 @@ void SplitWindow::ImplStartSplit( const MouseEvent& rMEvt )
}
else
{
- maDragRect.Left() = mnLeftBorder;
- maDragRect.Top() = mnTopBorder;
- maDragRect.Right() = mnDX-mnRightBorder-1;
+ maDragRect.Left() = mnLeftBorder;
+ maDragRect.Top() = mnTopBorder;
+ maDragRect.Right() = mnDX-mnRightBorder-1;
maDragRect.Bottom() = mnDY-mnBottomBorder-1;
if ( mbHorz )
{
@@ -2332,8 +2332,8 @@ void SplitWindow::ImplStartSplit( const MouseEvent& rMEvt )
ImplDrawSplitTracking( this, aMousePosPixel );
else
{
- ImplSplitItem* pItems = mpSplitSet->mpItems;
- USHORT nItems = mpSplitSet->mnItems;
+ ImplSplitItem* pItems = mpSplitSet->mpItems;
+ USHORT nItems = mpSplitSet->mnItems;
mpLastSizes = new long[nItems*2];
for ( USHORT i = 0; i < nItems; i++ )
{
@@ -2407,8 +2407,8 @@ void SplitWindow::MouseButtonDown( const MouseEvent& rMEvt )
return;
}
- Point aMousePosPixel = rMEvt.GetPosPixel();
- Rectangle aTestRect;
+ Point aMousePosPixel = rMEvt.GetPosPixel();
+ Rectangle aTestRect;
mbFadeNoButtonMode = FALSE;
ImplGetAutoHideRect( aTestRect, TRUE );
@@ -2457,15 +2457,15 @@ void SplitWindow::MouseMove( const MouseEvent& rMEvt )
{
if ( !IsTracking() )
{
- Point aPos = rMEvt.GetPosPixel();
- long nTemp;
- ImplSplitSet* pTempSplitSet;
- USHORT nTempSplitPos;
- USHORT nSplitTest = ImplTestSplit( this, aPos, nTemp, &pTempSplitSet, nTempSplitPos );
- PointerStyle eStyle = POINTER_ARROW;
- Rectangle aAutoHideRect;
- Rectangle aFadeInRect;
- Rectangle aFadeOutRect;
+ Point aPos = rMEvt.GetPosPixel();
+ long nTemp;
+ ImplSplitSet* pTempSplitSet;
+ USHORT nTempSplitPos;
+ USHORT nSplitTest = ImplTestSplit( this, aPos, nTemp, &pTempSplitSet, nTempSplitPos );
+ PointerStyle eStyle = POINTER_ARROW;
+ Rectangle aAutoHideRect;
+ Rectangle aFadeInRect;
+ Rectangle aFadeOutRect;
ImplGetAutoHideRect( aAutoHideRect );
ImplGetFadeInRect( aFadeInRect );
@@ -2597,11 +2597,11 @@ void SplitWindow::Tracking( const TrackingEvent& rTEvt )
{
if ( rTEvt.IsTrackingCanceled() )
{
- ImplSplitItem* pItems = mpSplitSet->mpItems;
- USHORT nItems = mpSplitSet->mnItems;
+ ImplSplitItem* pItems = mpSplitSet->mpItems;
+ USHORT nItems = mpSplitSet->mnItems;
for ( USHORT i = 0; i < nItems; i++ )
{
- pItems[i].mnSize = mpLastSizes[i*2];
+ pItems[i].mnSize = mpLastSizes[i*2];
pItems[i].mnPixSize = mpLastSizes[i*2+1];
}
ImplUpdate();
@@ -2626,9 +2626,9 @@ void SplitWindow::Tracking( const TrackingEvent& rTEvt )
if ( bSplit )
{
- BOOL bPropSmaller = (mnMouseModifier & KEY_SHIFT) ? TRUE : FALSE;
- BOOL bPropGreater = (mnMouseModifier & KEY_MOD1) ? TRUE : FALSE;
- long nDelta = mnMSplitPos-mnMStartPos;
+ BOOL bPropSmaller = (mnMouseModifier & KEY_SHIFT) ? TRUE : FALSE;
+ BOOL bPropGreater = (mnMouseModifier & KEY_MOD1) ? TRUE : FALSE;
+ long nDelta = mnMSplitPos-mnMStartPos;
if ( (mnSplitTest & SPLIT_WINDOW) && !mpMainSet->mpItems )
{
@@ -2660,14 +2660,14 @@ void SplitWindow::Tracking( const TrackingEvent& rTEvt )
{
if ( mpLastSizes )
delete mpLastSizes;
- mpLastSizes = NULL;
- mpSplitSet = NULL;
- mnMouseOff = 0;
- mnMStartPos = 0;
- mnMSplitPos = 0;
+ mpLastSizes = NULL;
+ mpSplitSet = NULL;
+ mnMouseOff = 0;
+ mnMStartPos = 0;
+ mnMSplitPos = 0;
mnMouseModifier = 0;
- mnSplitTest = 0;
- mnSplitPos = 0;
+ mnSplitTest = 0;
+ mnSplitPos = 0;
}
}
}
@@ -2687,7 +2687,7 @@ long SplitWindow::PreNotify( NotifyEvent& rNEvt )
Rectangle aFadeOutRect;
ImplGetFadeInRect( aFadeInRect );
ImplGetFadeOutRect( aFadeOutRect );
-
+
if ( aFadeInRect.IsInside( GetPointerPosPixel() ) != aFadeInRect.IsInside( GetLastPointerPosPixel() ) )
Invalidate( aFadeInRect );
if ( aFadeOutRect.IsInside( GetPointerPosPixel() ) != aFadeOutRect.IsInside( GetLastPointerPosPixel() ) )
@@ -2749,9 +2749,9 @@ void SplitWindow::RequestHelp( const HelpEvent& rHEvt )
// no keyboard help for splitwin
if ( rHEvt.GetMode() & (HELPMODE_BALLOON | HELPMODE_QUICK) && !rHEvt.KeyboardActivated() )
{
- Point aMousePosPixel = ScreenToOutputPixel( rHEvt.GetMousePosPixel() );
- Rectangle aHelpRect;
- USHORT nHelpResId = 0;
+ Point aMousePosPixel = ScreenToOutputPixel( rHEvt.GetMousePosPixel() );
+ Rectangle aHelpRect;
+ USHORT nHelpResId = 0;
ImplGetAutoHideRect( aHelpRect, TRUE );
if ( aHelpRect.IsInside( aMousePosPixel ) )
@@ -2853,7 +2853,7 @@ void SplitWindow::InsertItem( USHORT nId, Window* pWindow, long nSize,
if ( nSize < 1 )
nSize = 1;
- ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId );
+ ImplSplitSet* pSet = ImplFindSet( mpMainSet, nSetId );
ImplSplitSet* pNewSet;
ImplSplitItem* pItem;
@@ -2871,16 +2871,16 @@ void SplitWindow::InsertItem( USHORT nId, Window* pWindow, long nSize,
pSet->mbCalcPix = TRUE;
// Item anlegen und erweitern
- pItem = &(pSet->mpItems[nPos]);
+ pItem = &(pSet->mpItems[nPos]);
memset( pItem, 0, sizeof( ImplSplitItem ) );
- pItem->mnSize = nSize;
- pItem->mnId = nId;
- pItem->mnBits = nBits;
+ pItem->mnSize = nSize;
+ pItem->mnId = nId;
+ pItem->mnBits = nBits;
if ( pWindow )
{
- pItem->mpWindow = pWindow;
- pItem->mpOrgParent = pWindow->GetParent();
+ pItem->mpWindow = pWindow;
+ pItem->mpOrgParent = pWindow->GetParent();
// Window mit SplitWindow verbinden
pWindow->Hide();
@@ -2888,17 +2888,17 @@ void SplitWindow::InsertItem( USHORT nId, Window* pWindow, long nSize,
}
else
{
- pNewSet = new ImplSplitSet;
- pNewSet->mpItems = NULL;
- pNewSet->mpWallpaper = NULL;
- pNewSet->mpBitmap = NULL;
- pNewSet->mnLastSize = 0;
- pNewSet->mnItems = 0;
- pNewSet->mnId = nId;
- pNewSet->mnSplitSize = pSet->mnSplitSize;
- pNewSet->mbCalcPix = TRUE;
+ pNewSet = new ImplSplitSet;
+ pNewSet->mpItems = NULL;
+ pNewSet->mpWallpaper = NULL;
+ pNewSet->mpBitmap = NULL;
+ pNewSet->mnLastSize = 0;
+ pNewSet->mnItems = 0;
+ pNewSet->mnId = nId;
+ pNewSet->mnSplitSize = pSet->mnSplitSize;
+ pNewSet->mbCalcPix = TRUE;
- pItem->mpSet = pNewSet;
+ pItem->mpSet = pNewSet;
}
ImplUpdate();
@@ -2923,10 +2923,10 @@ void SplitWindow::MoveItem( USHORT nId, USHORT nNewPos, USHORT nNewSetId )
DBG_ASSERT( ImplFindSet( mpMainSet, nNewSetId ), "SplitWindow::MoveItem() - Set not exists" );
#endif
- USHORT nPos;
- ImplSplitSet* pNewSet = ImplFindSet( mpMainSet, nNewSetId );
- ImplSplitSet* pSet = ImplFindItem( mpMainSet, nId, nPos );
- ImplSplitItem aTempItem;
+ USHORT nPos;
+ ImplSplitSet* pNewSet = ImplFindSet( mpMainSet, nNewSetId );
+ ImplSplitSet* pSet = ImplFindItem( mpMainSet, nId, nPos );
+ ImplSplitItem aTempItem;
if ( pNewSet == pSet )
{
@@ -2994,11 +2994,11 @@ void SplitWindow::RemoveItem( USHORT nId, BOOL bHide )
#endif
// Set suchen
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpMainSet, nId, nPos );
- ImplSplitItem* pItem = &(pSet->mpItems[nPos]);
- Window* pWindow = pItem->mpWindow;
- Window* pOrgParent = pItem->mpOrgParent;
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpMainSet, nId, nPos );
+ ImplSplitItem* pItem = &(pSet->mpItems[nPos]);
+ Window* pWindow = pItem->mpWindow;
+ Window* pOrgParent = pItem->mpOrgParent;
// Evt. Set loeschen
if ( !pWindow )
@@ -3040,18 +3040,18 @@ void SplitWindow::Clear()
ImplDeleteSet( mpMainSet );
// Main-Set wieder anlegen
- mpMainSet = new ImplSplitSet;
- mpMainSet->mpItems = NULL;
- mpMainSet->mpWallpaper = NULL;
- mpMainSet->mpBitmap = NULL;
- mpMainSet->mnLastSize = 0;
- mpMainSet->mnItems = 0;
- mpMainSet->mnId = 0;
- mpMainSet->mnSplitSize = SPLITWIN_SPLITSIZE;
- mpMainSet->mbCalcPix = TRUE;
+ mpMainSet = new ImplSplitSet;
+ mpMainSet->mpItems = NULL;
+ mpMainSet->mpWallpaper = NULL;
+ mpMainSet->mpBitmap = NULL;
+ mpMainSet->mnLastSize = 0;
+ mpMainSet->mnItems = 0;
+ mpMainSet->mnId = 0;
+ mpMainSet->mnSplitSize = SPLITWIN_SPLITSIZE;
+ mpMainSet->mbCalcPix = TRUE;
if ( mnWinStyle & WB_NOSPLITDRAW )
mpMainSet->mnSplitSize -= 2;
- mpBaseSet = mpMainSet;
+ mpBaseSet = mpMainSet;
// Und neu invalidieren
ImplUpdate();
@@ -3233,16 +3233,16 @@ Bitmap SplitWindow::GetItemBitmap( USHORT nSetId ) const
void SplitWindow::SplitItem( USHORT nId, long nNewSize,
BOOL bPropSmall, BOOL bPropGreat )
{
- USHORT nItems;
- USHORT nPos;
- USHORT nMin;
- USHORT nMax;
- USHORT i;
- USHORT n;
- long nDelta;
- long nTempDelta;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
- ImplSplitItem* pItems;
+ USHORT nItems;
+ USHORT nPos;
+ USHORT nMin;
+ USHORT nMax;
+ USHORT i;
+ USHORT n;
+ long nDelta;
+ long nTempDelta;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ ImplSplitItem* pItems;
if ( !pSet )
return;
@@ -3463,9 +3463,9 @@ void SplitWindow::SplitItem( USHORT nId, long nNewSize,
void SplitWindow::SetItemSize( USHORT nId, long nNewSize )
{
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
- ImplSplitItem* pItem;
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ ImplSplitItem* pItem;
if ( !pSet )
return;
@@ -3485,8 +3485,8 @@ void SplitWindow::SetItemSize( USHORT nId, long nNewSize )
long SplitWindow::GetItemSize( USHORT nId ) const
{
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
if ( pSet )
return pSet->mpItems[nPos].mnSize;
@@ -3498,8 +3498,8 @@ long SplitWindow::GetItemSize( USHORT nId ) const
long SplitWindow::GetItemSize( USHORT nId, SplitWindowItemBits nBits ) const
{
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
if ( pSet )
{
@@ -3509,12 +3509,12 @@ long SplitWindow::GetItemSize( USHORT nId, SplitWindowItemBits nBits ) const
{
((SplitWindow*)this)->ImplCalcLayout();
- long nRelSize = 0;
- long nPerSize = 0;
- ImplSplitItem* pItems;
- USHORT nItems;
+ long nRelSize = 0;
+ long nPerSize = 0;
+ ImplSplitItem* pItems;
+ USHORT nItems;
SplitWindowItemBits nTempBits;
- USHORT i;
+ USHORT i;
nItems = pSet->mnItems;
pItems = pSet->mpItems;
for ( i = 0; i < nItems; i++ )
@@ -3555,9 +3555,9 @@ long SplitWindow::GetItemSize( USHORT nId, SplitWindowItemBits nBits ) const
void SplitWindow::SetItemBits( USHORT nId, SplitWindowItemBits nNewBits )
{
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
- ImplSplitItem* pItem;
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ ImplSplitItem* pItem;
if ( !pSet )
return;
@@ -3579,8 +3579,8 @@ void SplitWindow::SetItemBits( USHORT nId, SplitWindowItemBits nNewBits )
SplitWindowItemBits SplitWindow::GetItemBits( USHORT nId ) const
{
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
if ( pSet )
return pSet->mpItems[nPos].mnBits;
@@ -3592,8 +3592,8 @@ SplitWindowItemBits SplitWindow::GetItemBits( USHORT nId ) const
Window* SplitWindow::GetItemWindow( USHORT nId ) const
{
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
if ( pSet )
return pSet->mpItems[nPos].mpWindow;
@@ -3605,8 +3605,8 @@ Window* SplitWindow::GetItemWindow( USHORT nId ) const
USHORT SplitWindow::GetSet( USHORT nId ) const
{
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
if ( pSet )
return pSet->mnId;
@@ -3632,8 +3632,8 @@ BOOL SplitWindow::GetSet( USHORT nId, USHORT& rSetId, USHORT& rPos ) const
BOOL SplitWindow::IsItemValid( USHORT nId ) const
{
- USHORT nPos;
- ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
+ USHORT nPos;
+ ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos );
if ( pSet )
return TRUE;
@@ -3659,8 +3659,8 @@ USHORT SplitWindow::GetItemId( const Point& rPos ) const
USHORT SplitWindow::GetItemPos( USHORT nId, USHORT nSetId ) const
{
- ImplSplitSet* pSet = ImplFindSet( mpBaseSet, nSetId );
- USHORT nPos = SPLITWINDOW_ITEM_NOTFOUND;
+ ImplSplitSet* pSet = ImplFindSet( mpBaseSet, nSetId );
+ USHORT nPos = SPLITWINDOW_ITEM_NOTFOUND;
if ( pSet )
{
@@ -3705,27 +3705,27 @@ void SplitWindow::ImplNewAlign()
{
if ( mbNoAlign )
{
- mbHorz = FALSE;
+ mbHorz = FALSE;
mbBottomRight = FALSE;
}
else if ( meAlign == WINDOWALIGN_TOP )
{
- mbHorz = TRUE;
+ mbHorz = TRUE;
mbBottomRight = FALSE;
}
else if ( meAlign == WINDOWALIGN_BOTTOM )
{
- mbHorz = TRUE;
+ mbHorz = TRUE;
mbBottomRight = TRUE;
}
else if ( meAlign == WINDOWALIGN_LEFT )
{
- mbHorz = FALSE;
+ mbHorz = FALSE;
mbBottomRight = FALSE;
}
else if ( meAlign == WINDOWALIGN_RIGHT )
{
- mbHorz = FALSE;
+ mbHorz = FALSE;
mbBottomRight = TRUE;
}
@@ -3768,15 +3768,15 @@ void SplitWindow::SetAlign( WindowAlign eNewAlign )
Size SplitWindow::CalcWindowSizePixel( const Size& rSize, WindowAlign eAlign,
WinBits nWinStyle, BOOL bExtra )
{
- long nLeft;
- long nTop;
- long nRight;
- long nBottom;
- Size aSize = rSize;
+ long nLeft;
+ long nTop;
+ long nRight;
+ long nBottom;
+ Size aSize = rSize;
ImplCalcBorder( eAlign, FALSE, nLeft, nTop, nRight, nBottom );
- aSize.Width() += nLeft+nRight;
- aSize.Height() += nTop+nBottom;
+ aSize.Width() += nLeft+nRight;
+ aSize.Height() += nTop+nBottom;
if ( nWinStyle & WB_SIZEABLE )
{
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index dc0905c8a2de..9cfea5de3e34 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,13 +43,13 @@
// =======================================================================
-#define STATUSBAR_OFFSET_X STATUSBAR_OFFSET
-#define STATUSBAR_OFFSET_Y 2
-#define STATUSBAR_OFFSET_TEXTY 3
+#define STATUSBAR_OFFSET_X STATUSBAR_OFFSET
+#define STATUSBAR_OFFSET_Y 2
+#define STATUSBAR_OFFSET_TEXTY 3
-#define STATUSBAR_PRGS_OFFSET 3
-#define STATUSBAR_PRGS_COUNT 100
-#define STATUSBAR_PRGS_MIN 5
+#define STATUSBAR_PRGS_OFFSET 3
+#define STATUSBAR_PRGS_COUNT 100
+#define STATUSBAR_PRGS_MIN 5
// -----------------------------------------------------------------------
@@ -59,7 +59,7 @@ public:
ImplData();
~ImplData();
- VirtualDevice* mpVirDev;
+ VirtualDevice* mpVirDev;
long mnItemBorderWidth;
bool mbTopBorder:1;
bool mbDrawItemFrames:1;
@@ -79,19 +79,19 @@ StatusBar::ImplData::~ImplData()
struct ImplStatusItem
{
- USHORT mnId;
- StatusBarItemBits mnBits;
- long mnWidth;
- long mnOffset;
- long mnExtraWidth;
- long mnX;
- XubString maText;
- XubString maHelpText;
- XubString maQuickHelpText;
- ULONG mnHelpId;
- void* mpUserData;
- BOOL mbVisible;
- XubString maAccessibleName;
+ USHORT mnId;
+ StatusBarItemBits mnBits;
+ long mnWidth;
+ long mnOffset;
+ long mnExtraWidth;
+ long mnX;
+ XubString maText;
+ XubString maHelpText;
+ XubString maQuickHelpText;
+ ULONG mnHelpId;
+ void* mpUserData;
+ BOOL mbVisible;
+ XubString maAccessibleName;
XubString maCommand;
};
@@ -148,20 +148,20 @@ void StatusBar::ImplInit( Window* pParent, WinBits nStyle )
Window::ImplInit( pParent, nStyle & ~WB_BORDER, NULL );
// WinBits merken
- mpItemList = new ImplStatusItemList;
- mpImplData->mpVirDev = new VirtualDevice( *this );
- mnCurItemId = 0;
- mbFormat = TRUE;
- mbVisibleItems = TRUE;
- mbProgressMode = FALSE;
- mbInUserDraw = FALSE;
- mbBottomBorder = FALSE;
+ mpItemList = new ImplStatusItemList;
+ mpImplData->mpVirDev = new VirtualDevice( *this );
+ mnCurItemId = 0;
+ mbFormat = TRUE;
+ mbVisibleItems = TRUE;
+ mbProgressMode = FALSE;
+ mbInUserDraw = FALSE;
+ mbBottomBorder = FALSE;
mnItemsWidth = STATUSBAR_OFFSET_X;
- mnDX = 0;
- mnDY = 0;
- mnCalcHeight = 0;
- mnItemY = STATUSBAR_OFFSET_Y;
- mnTextY = STATUSBAR_OFFSET_TEXTY;
+ mnDX = 0;
+ mnDY = 0;
+ mnCalcHeight = 0;
+ mnItemY = STATUSBAR_OFFSET_Y;
+ mnTextY = STATUSBAR_OFFSET_TEXTY;
ImplInitSettings( TRUE, TRUE, TRUE );
SetLineColor();
@@ -255,7 +255,7 @@ void StatusBar::ImplInitSettings( BOOL bFont,
aColor = rStyleSettings.GetWindowColor();
SetBackground( aColor );
mpImplData->mpVirDev->SetBackground( GetBackground() );
-
+
// NWF background
if( ! IsControlBackground() &&
IsNativeControlSupported( CTRL_WINDOW_BACKGROUND, PART_BACKGROUND_WINDOW ) )
@@ -271,10 +271,10 @@ void StatusBar::ImplInitSettings( BOOL bFont,
void StatusBar::ImplFormat()
{
ImplStatusItem* pItem;
- long nExtraWidth;
- long nExtraWidth2;
- long nX;
- USHORT nAutoSizeItems = 0;
+ long nExtraWidth;
+ long nExtraWidth2;
+ long nX;
+ USHORT nAutoSizeItems = 0;
// Breiten zusammenrechnen
mnItemsWidth = STATUSBAR_OFFSET_X;
@@ -298,9 +298,9 @@ void StatusBar::ImplFormat()
{
// Bei rechtsbuendiger Ausrichtung wird kein AutoSize ausgewertet,
// da wir links den Text anzeigen, der mit SetText gesetzt wird
- nX = mnDX - mnItemsWidth;
- nExtraWidth = 0;
- nExtraWidth2 = 0;
+ nX = mnDX - mnItemsWidth;
+ nExtraWidth = 0;
+ nExtraWidth2 = 0;
}
else
{
@@ -352,7 +352,7 @@ void StatusBar::ImplFormat()
Rectangle StatusBar::ImplGetItemRectPos( USHORT nPos ) const
{
- Rectangle aRect;
+ Rectangle aRect;
ImplStatusItem* pItem;
pItem = mpItemList->GetObject( nPos );
if ( pItem )
@@ -376,7 +376,7 @@ Rectangle StatusBar::ImplGetItemRectPos( USHORT nPos ) const
USHORT StatusBar::ImplGetFirstVisiblePos() const
{
ImplStatusItem* pItem;
-
+
for( USHORT nPos = 0; nPos < mpItemList->Count(); nPos++ )
{
pItem = mpItemList->GetObject( nPos );
@@ -386,7 +386,7 @@ USHORT StatusBar::ImplGetFirstVisiblePos() const
return nPos;
}
}
-
+
return ~0;
}
@@ -437,11 +437,11 @@ void StatusBar::ImplDrawItem( BOOL bOffScreen, USHORT nPos, BOOL bDrawText, BOOL
return;
// Ausgabebereich berechnen
- ImplStatusItem* pItem = mpItemList->GetObject( nPos );
+ ImplStatusItem* pItem = mpItemList->GetObject( nPos );
long nW = mpImplData->mnItemBorderWidth + 1;
- Rectangle aTextRect( aRect.Left()+nW, aRect.Top()+nW,
+ Rectangle aTextRect( aRect.Left()+nW, aRect.Top()+nW,
aRect.Right()-nW, aRect.Bottom()-nW );
- Size aTextRectSize( aTextRect.GetSize() );
+ Size aTextRectSize( aTextRect.GetSize() );
if ( bOffScreen )
mpImplData->mpVirDev->SetOutputSizePixel( aTextRectSize );
@@ -454,8 +454,8 @@ void StatusBar::ImplDrawItem( BOOL bOffScreen, USHORT nPos, BOOL bDrawText, BOOL
// Text ausgeben
if ( bDrawText )
{
- Size aTextSize( GetTextWidth( pItem->maText ), GetTextHeight() );
- Point aTextPos = ImplGetItemTextPos( aTextRectSize, aTextSize, pItem->mnBits );
+ Size aTextSize( GetTextWidth( pItem->maText ), GetTextHeight() );
+ Point aTextPos = ImplGetItemTextPos( aTextRectSize, aTextSize, pItem->mnBits );
if ( bOffScreen )
mpImplData->mpVirDev->DrawText( aTextPos, pItem->maText );
else
@@ -498,12 +498,12 @@ void StatusBar::ImplDrawItem( BOOL bOffScreen, USHORT nPos, BOOL bDrawText, BOOL
if( !(pItem->mnBits & SIB_FLAT) )
{
USHORT nStyle;
-
+
if ( pItem->mnBits & SIB_IN )
nStyle = FRAME_DRAW_IN;
else
nStyle = FRAME_DRAW_OUT;
-
+
DecorationView aDecoView( this );
aDecoView.DrawFrame( aRect, nStyle );
}
@@ -538,7 +538,7 @@ void DrawProgress( Window* pWindow, const Point& rPos,
if( pWindow->IsNativeControlSupported( CTRL_PROGRESS, PART_ENTIRE_CONTROL ) )
{
bool bNeedErase = ImplGetSVData()->maNWFData.mbProgressNeedsErase;
-
+
long nFullWidth = (nPrgsWidth + nOffset) * (10000 / nPercentCount);
long nPerc = (nPercent2 > 10000) ? 10000 : nPercent2;
ImplControlValue aValue( nFullWidth * (long)nPerc / 10000 );
@@ -579,7 +579,7 @@ void DrawProgress( Window* pWindow, const Point& rPos,
return;
}
}
-
+
// Werte vorberechnen
USHORT nPerc1 = nPercent1 / nPercentCount;
USHORT nPerc2 = nPercent2 / nPercentCount;
@@ -587,11 +587,11 @@ void DrawProgress( Window* pWindow, const Point& rPos,
if ( nPerc1 > nPerc2 )
{
// Support progress that can also decrease
-
+
// Rechteck berechnen
- long nDX = nPrgsWidth + nOffset;
- long nLeft = rPos.X()+((nPerc1-1)*nDX);
- Rectangle aRect( nLeft, rPos.Y(), nLeft+nPrgsWidth, rPos.Y()+nPrgsHeight );
+ long nDX = nPrgsWidth + nOffset;
+ long nLeft = rPos.X()+((nPerc1-1)*nDX);
+ Rectangle aRect( nLeft, rPos.Y(), nLeft+nPrgsWidth, rPos.Y()+nPrgsHeight );
do
{
@@ -603,7 +603,7 @@ void DrawProgress( Window* pWindow, const Point& rPos,
while ( nPerc1 > nPerc2 );
pWindow->Flush();
- }
+ }
else if ( nPerc1 < nPerc2 )
{
// Percent-Rechtecke malen
@@ -616,9 +616,9 @@ void DrawProgress( Window* pWindow, const Point& rPos,
}
// Rechteck berechnen
- long nDX = nPrgsWidth + nOffset;
- long nLeft = rPos.X()+(nPerc1*nDX);
- Rectangle aRect( nLeft, rPos.Y(), nLeft+nPrgsWidth, rPos.Y()+nPrgsHeight );
+ long nDX = nPrgsWidth + nOffset;
+ long nLeft = rPos.X()+(nPerc1*nDX);
+ Rectangle aRect( nLeft, rPos.Y(), nLeft+nPrgsWidth, rPos.Y()+nPrgsHeight );
do
{
@@ -680,12 +680,12 @@ void StatusBar::ImplCalcProgressRect()
{
// calculate text size
Size aPrgsTxtSize( GetTextWidth( maPrgsTxt ), GetTextHeight() );
- maPrgsTxtPos.X() = STATUSBAR_OFFSET_X+1;
-
+ maPrgsTxtPos.X() = STATUSBAR_OFFSET_X+1;
+
// calculate progress frame
- maPrgsFrameRect.Left() = maPrgsTxtPos.X()+aPrgsTxtSize.Width()+STATUSBAR_OFFSET;
- maPrgsFrameRect.Top() = mnItemY;
- maPrgsFrameRect.Bottom() = mnCalcHeight - STATUSBAR_OFFSET_Y;
+ maPrgsFrameRect.Left() = maPrgsTxtPos.X()+aPrgsTxtSize.Width()+STATUSBAR_OFFSET;
+ maPrgsFrameRect.Top() = mnItemY;
+ maPrgsFrameRect.Bottom() = mnCalcHeight - STATUSBAR_OFFSET_Y;
if( IsTopBorder() )
maPrgsFrameRect.Bottom()+=2;
@@ -727,7 +727,7 @@ void StatusBar::ImplCalcProgressRect()
}
}
if( ! bNativeOK )
- maPrgsTxtPos.Y() = mnTextY;
+ maPrgsTxtPos.Y() = mnTextY;
}
// -----------------------------------------------------------------------
@@ -885,7 +885,7 @@ void StatusBar::RequestHelp( const HelpEvent& rHEvt )
}
else if ( rHEvt.GetMode() & HELPMODE_QUICK )
{
- XubString aStr = GetQuickHelpText( nItemId );
+ XubString aStr = GetQuickHelpText( nItemId );
// Show quickhelp if available
if( aStr.Len() )
{
@@ -1025,14 +1025,14 @@ void StatusBar::InsertItem( USHORT nItemId, ULONG nWidth,
// Item anlegen
long nFudge = GetTextHeight()/4;
- ImplStatusItem* pItem = new ImplStatusItem;
- pItem->mnId = nItemId;
- pItem->mnBits = nBits;
- pItem->mnWidth = (long)nWidth+nFudge+STATUSBAR_OFFSET;
- pItem->mnOffset = nOffset;
- pItem->mnHelpId = 0;
- pItem->mpUserData = 0;
- pItem->mbVisible = TRUE;
+ ImplStatusItem* pItem = new ImplStatusItem;
+ pItem->mnId = nItemId;
+ pItem->mnBits = nBits;
+ pItem->mnWidth = (long)nWidth+nFudge+STATUSBAR_OFFSET;
+ pItem->mnOffset = nOffset;
+ pItem->mnHelpId = 0;
+ pItem->mpUserData = 0;
+ pItem->mbVisible = TRUE;
// Item in die Liste einfuegen
mpItemList->Insert( pItem, nPos );
@@ -1290,7 +1290,7 @@ Point StatusBar::GetItemTextPos( USHORT nItemId ) const
ImplStatusItem* pItem = mpItemList->GetObject( nPos );
Rectangle aRect = ImplGetItemRectPos( nPos );
long nW = mpImplData->mnItemBorderWidth + 1;
- Rectangle aTextRect( aRect.Left()+nW, aRect.Top()+nW,
+ Rectangle aTextRect( aRect.Left()+nW, aRect.Top()+nW,
aRect.Right()-nW, aRect.Bottom()-nW );
Point aPos = ImplGetItemTextPos( aTextRect.GetSize(),
Size( GetTextWidth( pItem->maText ), GetTextHeight() ),
@@ -1360,7 +1360,7 @@ void StatusBar::SetItemText( USHORT nItemId, const XubString& rText )
// adjust item width - see also DataChanged()
long nFudge = GetTextHeight()/4;
long nWidth = GetTextWidth( pItem->maText ) + nFudge;
- if( (nWidth > pItem->mnWidth + STATUSBAR_OFFSET) ||
+ if( (nWidth > pItem->mnWidth + STATUSBAR_OFFSET) ||
((nWidth < pItem->mnWidth) && (mnDX - STATUSBAR_OFFSET) < mnItemsWidth ))
{
pItem->mnWidth = nWidth + STATUSBAR_OFFSET;
@@ -1584,9 +1584,9 @@ void StatusBar::StartProgressMode( const XubString& rText )
{
DBG_ASSERT( !mbProgressMode, "StatusBar::StartProgressMode(): progress mode is active" );
- mbProgressMode = TRUE;
- mnPercent = 0;
- maPrgsTxt = rText;
+ mbProgressMode = TRUE;
+ mnPercent = 0;
+ maPrgsTxt = rText;
// Groessen berechnen
ImplCalcProgressRect();
@@ -1650,7 +1650,7 @@ void StatusBar::ResetProgressMode()
{
if ( mbProgressMode )
{
- mnPercent = 0;
+ mnPercent = 0;
maPrgsTxt.Erase();
if ( IsReallyVisible() )
{
@@ -1700,11 +1700,11 @@ void StatusBar::SetText( const XubString& rText )
Size StatusBar::CalcWindowSizePixel() const
{
- ULONG i = 0;
- ULONG nCount = mpItemList->Count();
- long nOffset = 0;
- long nCalcWidth = (STATUSBAR_OFFSET_X*2);
- long nCalcHeight;
+ ULONG i = 0;
+ ULONG nCount = mpItemList->Count();
+ long nOffset = 0;
+ long nCalcWidth = (STATUSBAR_OFFSET_X*2);
+ long nCalcHeight;
while ( i < nCount )
{
@@ -1713,7 +1713,7 @@ Size StatusBar::CalcWindowSizePixel() const
nOffset = pItem->mnOffset;
i++;
}
-
+
long nMinHeight = GetTextHeight();
const long nBarTextOffset = STATUSBAR_OFFSET_TEXTY*2;
long nProgressHeight = nMinHeight + nBarTextOffset;
@@ -1731,14 +1731,14 @@ Size StatusBar::CalcWindowSizePixel() const
nProgressHeight = aNativeControlRegion.GetHeight();
}
}
-
+
if( mpImplData->mbDrawItemFrames &&
pThis->IsNativeControlSupported( CTRL_FRAME, PART_BORDER ) )
{
ImplControlValue aControlValue( FRAME_DRAW_NODRAW );
Rectangle aBound, aContent;
Rectangle aNatRgn( Point( 0, 0 ), Size( 150, 50 ) );
- if( pThis->GetNativeControlRegion(CTRL_FRAME, PART_BORDER,
+ if( pThis->GetNativeControlRegion(CTRL_FRAME, PART_BORDER,
aNatRgn, 0, aControlValue, rtl::OUString(), aBound, aContent) )
{
mpImplData->mnItemBorderWidth =
@@ -1749,7 +1749,7 @@ Size StatusBar::CalcWindowSizePixel() const
nCalcHeight = nMinHeight+nBarTextOffset + 2*mpImplData->mnItemBorderWidth;
if( nCalcHeight < nProgressHeight+2 )
nCalcHeight = nProgressHeight+2;
-
+
// add border
if( IsTopBorder() )
nCalcHeight += 2;
diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx
index a1a33b905cdf..0826ce0f2c48 100644
--- a/vcl/source/window/syschild.cxx
+++ b/vcl/source/window/syschild.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index fe3b6f5a585b..dbd52d1a66e7 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -334,7 +334,7 @@ void SystemWindow::EnableSaveBackground( BOOL bSave )
{
if( ImplGetSVData()->maWinData.mbNoSaveBackground )
bSave = false;
-
+
Window* pWindow = this;
while ( pWindow->mpWindowImpl->mpBorderWindow )
pWindow = pWindow->mpWindowImpl->mpBorderWindow;
@@ -562,7 +562,7 @@ static void ImplWindowStateFromStr( WindowStateData& rData, const ByteString& rS
}
else
rData.SetState( 0 );
-
+
// read maximized pos/size
aTokenStr = rStr.GetToken( 0, ',', nIndex );
if ( aTokenStr.Len() )
@@ -676,7 +676,7 @@ void SystemWindow::ImplMoveToScreen( long& io_rX, long& io_rY, long i_nWidth, lo
i_nWidth = 50;
if( i_nHeight < 1 )
i_nHeight = 50;
-
+
// check left border
bool bMove = false;
if( io_rX + i_nWidth < aScreenRect.Left() )
@@ -756,7 +756,7 @@ void SystemWindow::SetWindowStateData( const WindowStateData& rData )
// 91625 - ignore Minimize
//nState &= ~(WINDOWSTATE_STATE_MINIMIZED);
aState.mnState = nState & SAL_FRAMESTATE_SYSTEMMASK;
-
+
// normalize window positions onto screen
ImplMoveToScreen( aState.mnX, aState.mnY, aState.mnWidth, aState.mnHeight, pWindow );
ImplMoveToScreen( aState.mnMaximizedX, aState.mnMaximizedY, aState.mnMaximizedWidth, aState.mnMaximizedHeight, pWindow );
@@ -782,7 +782,7 @@ void SystemWindow::SetWindowStateData( const WindowStateData& rData )
if( (unsigned long) (aState.mnX + displacement + aState.mnWidth + g.nRightDecoration) > (unsigned long) aDesktop.nRight ||
(unsigned long) (aState.mnY + displacement + aState.mnHeight + g.nBottomDecoration) > (unsigned long) aDesktop.nBottom )
{
- // displacing would leave screen
+ // displacing would leave screen
aState.mnX = g.nLeftDecoration ? g.nLeftDecoration : 10; // should result in (0,0)
aState.mnY = displacement;
if( bWrapped ||
@@ -840,10 +840,10 @@ void SystemWindow::SetWindowStateData( const WindowStateData& rData )
if( IsRollUp() )
RollDown();
- long nX = rData.GetX();
- long nY = rData.GetY();
- long nWidth = rData.GetWidth();
- long nHeight = rData.GetHeight();
+ long nX = rData.GetX();
+ long nY = rData.GetY();
+ long nWidth = rData.GetWidth();
+ long nHeight = rData.GetHeight();
const SalFrameGeometry& rGeom = pWindow->mpWindowImpl->mpFrame->GetGeometry();
if( nX < 0 )
nX = 0;
@@ -1021,7 +1021,7 @@ void SystemWindow::SetMenuBar( MenuBar* pMenuBar )
}
MenuBar::ImplDestroy( pOldMenuBar, bDelete );
if( bDelete )
- pOldWindow = NULL; // will be deleted in MenuBar::ImplDestroy,
+ pOldWindow = NULL; // will be deleted in MenuBar::ImplDestroy,
}
}
diff --git a/vcl/source/window/tabdlg.cxx b/vcl/source/window/tabdlg.cxx
index 54985a3a36e2..9054ca8ca7f8 100644
--- a/vcl/source/window/tabdlg.cxx
+++ b/vcl/source/window/tabdlg.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,19 +39,19 @@
void TabDialog::ImplInitTabDialogData()
{
- mpFixedLine = NULL;
- mpViewWindow = NULL;
- meViewAlign = WINDOWALIGN_LEFT;
- mbPosControls = TRUE;
+ mpFixedLine = NULL;
+ mpViewWindow = NULL;
+ meViewAlign = WINDOWALIGN_LEFT;
+ mbPosControls = TRUE;
}
// -----------------------------------------------------------------------
void TabDialog::ImplPosControls()
{
- Size aCtrlSize( IMPL_MINSIZE_BUTTON_WIDTH, IMPL_MINSIZE_BUTTON_HEIGHT );
- long nDownCtrl = 0;
- long nOffY = 0;
+ Size aCtrlSize( IMPL_MINSIZE_BUTTON_WIDTH, IMPL_MINSIZE_BUTTON_HEIGHT );
+ long nDownCtrl = 0;
+ long nOffY = 0;
TabControl* pTabControl = NULL;
Window* pChild = GetWindow( WINDOW_FIRSTCHILD );
@@ -91,56 +91,56 @@ void TabDialog::ImplPosControls()
if ( nOffY )
nOffY += IMPL_DIALOG_BAR_OFFSET*2 + 2;
- Point aTabOffset( IMPL_DIALOG_OFFSET, IMPL_DIALOG_OFFSET+nOffY );
- Size aTabSize = pTabControl->GetSizePixel();
- Size aDlgSize( aTabSize.Width() + IMPL_DIALOG_OFFSET*2,
+ Point aTabOffset( IMPL_DIALOG_OFFSET, IMPL_DIALOG_OFFSET+nOffY );
+ Size aTabSize = pTabControl->GetSizePixel();
+ Size aDlgSize( aTabSize.Width() + IMPL_DIALOG_OFFSET*2,
aTabSize.Height() + IMPL_DIALOG_OFFSET*2 + nOffY );
- long nBtnEx = 0;
+ long nBtnEx = 0;
// Preview-Fenster beruecksichtigen und die Groessen/Offsets anpassen
if ( mpViewWindow && mpViewWindow->IsVisible() )
{
- long nViewOffX = 0;
- long nViewOffY = 0;
- long nViewWidth = 0;
- long nViewHeight = 0;
- USHORT nViewPosFlags = WINDOW_POSSIZE_POS;
- Size aViewSize = mpViewWindow->GetSizePixel();
+ long nViewOffX = 0;
+ long nViewOffY = 0;
+ long nViewWidth = 0;
+ long nViewHeight = 0;
+ USHORT nViewPosFlags = WINDOW_POSSIZE_POS;
+ Size aViewSize = mpViewWindow->GetSizePixel();
if ( meViewAlign == WINDOWALIGN_TOP )
{
- nViewOffX = aTabOffset.X();
- nViewOffY = nOffY+IMPL_DIALOG_OFFSET;
- nViewWidth = aTabSize.Width();
+ nViewOffX = aTabOffset.X();
+ nViewOffY = nOffY+IMPL_DIALOG_OFFSET;
+ nViewWidth = aTabSize.Width();
nViewPosFlags |= WINDOW_POSSIZE_WIDTH;
aTabOffset.Y() += aViewSize.Height()+IMPL_DIALOG_OFFSET;
aDlgSize.Height() += aViewSize.Height()+IMPL_DIALOG_OFFSET;
}
else if ( meViewAlign == WINDOWALIGN_BOTTOM )
{
- nViewOffX = aTabOffset.X();
- nViewOffY = aTabOffset.Y()+aTabSize.Height()+IMPL_DIALOG_OFFSET;
- nViewWidth = aTabSize.Width();
+ nViewOffX = aTabOffset.X();
+ nViewOffY = aTabOffset.Y()+aTabSize.Height()+IMPL_DIALOG_OFFSET;
+ nViewWidth = aTabSize.Width();
nViewPosFlags |= WINDOW_POSSIZE_WIDTH;
aDlgSize.Height() += aViewSize.Height()+IMPL_DIALOG_OFFSET;
}
else if ( meViewAlign == WINDOWALIGN_RIGHT )
{
- nViewOffX = aTabOffset.X()+aTabSize.Width()+IMPL_DIALOG_OFFSET;
- nViewOffY = aTabOffset.Y();
- nViewHeight = aTabSize.Height();
+ nViewOffX = aTabOffset.X()+aTabSize.Width()+IMPL_DIALOG_OFFSET;
+ nViewOffY = aTabOffset.Y();
+ nViewHeight = aTabSize.Height();
nViewPosFlags |= WINDOW_POSSIZE_HEIGHT;
aDlgSize.Width() += aViewSize.Width()+IMPL_DIALOG_OFFSET;
- nBtnEx = aViewSize.Width()+IMPL_DIALOG_OFFSET;
+ nBtnEx = aViewSize.Width()+IMPL_DIALOG_OFFSET;
}
else // meViewAlign == WINDOWALIGN_LEFT
{
- nViewOffX = IMPL_DIALOG_OFFSET;
- nViewOffY = aTabOffset.Y();
- nViewHeight = aTabSize.Height();
+ nViewOffX = IMPL_DIALOG_OFFSET;
+ nViewOffY = aTabOffset.Y();
+ nViewHeight = aTabSize.Height();
nViewPosFlags |= WINDOW_POSSIZE_HEIGHT;
aTabOffset.X() += aViewSize.Width()+IMPL_DIALOG_OFFSET;
aDlgSize.Width() += aViewSize.Width()+IMPL_DIALOG_OFFSET;
- nBtnEx = aViewSize.Width()+IMPL_DIALOG_OFFSET;
+ nBtnEx = aViewSize.Width()+IMPL_DIALOG_OFFSET;
}
mpViewWindow->SetPosSizePixel( nViewOffX, nViewOffY,
@@ -152,11 +152,11 @@ void TabDialog::ImplPosControls()
pTabControl->SetPosPixel( aTabOffset );
// Alle anderen Childs positionieren
- BOOL bTabCtrl = FALSE;
- int nLines = 0;
+ BOOL bTabCtrl = FALSE;
+ int nLines = 0;
long nX;
- long nY = aDlgSize.Height();
- long nTopX = IMPL_DIALOG_OFFSET;
+ long nY = aDlgSize.Height();
+ long nTopX = IMPL_DIALOG_OFFSET;
// Unter Windows 95 werden die Buttons rechtsbuendig angeordnet
nX = IMPL_DIALOG_OFFSET;
@@ -179,7 +179,7 @@ void TabDialog::ImplPosControls()
if ( nX+aCtrlSize.Width()-IMPL_DIALOG_OFFSET > (aTabSize.Width()+nBtnEx) )
{
nY += aCtrlSize.Height()+IMPL_DIALOG_OFFSET;
- nX = IMPL_DIALOG_OFFSET;
+ nX = IMPL_DIALOG_OFFSET;
nLines++;
}
@@ -250,7 +250,7 @@ void TabDialog::Resize()
// !!! In the future the controls should be automaticly rearrange
// !!! if the window is resized
// !!! if ( !IsRollUp() )
-// !!! ImplPosControls();
+// !!! ImplPosControls();
}
// -----------------------------------------------------------------------
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index beb9382ceb76..9319f1bc0d54 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -174,7 +174,7 @@ void TabPage::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, UL
Wallpaper aWallpaper = GetBackground();
if ( !aWallpaper.IsBitmap() )
ImplInitSettings();
-
+
pDev->Push();
pDev->SetMapMode();
pDev->SetLineColor();
diff --git a/vcl/source/window/taskpanelist.cxx b/vcl/source/window/taskpanelist.cxx
index 4299dfc00192..274551579715 100644
--- a/vcl/source/window/taskpanelist.cxx
+++ b/vcl/source/window/taskpanelist.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@ Point ImplTaskPaneListGetPos( const Window *w )
else
pos = w->OutputToAbsoluteScreenPixel( pos );
}
- else
+ else
pos = w->OutputToAbsoluteScreenPixel( w->GetPosPixel() );
return pos;
@@ -392,7 +392,7 @@ Window* TaskPaneList::FindNextFloat( Window *pWindow, BOOL bForward )
++p;
}
- return pWindow;
+ return pWindow;
}
// --------------------------------------------------
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 7c1bc22d916e..256e8478b942 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -230,11 +230,11 @@ ButtonType determineButtonType( ImplToolItem* pItem, ButtonType defaultType )
ToolBoxItemBits nBits( pItem->mnBits & 0x300 );
if ( nBits & TIB_TEXTICON ) // item has custom setting
{
- tmpButtonType = BUTTON_SYMBOLTEXT;
+ tmpButtonType = BUTTON_SYMBOLTEXT;
if ( nBits == TIB_TEXT_ONLY )
- tmpButtonType = BUTTON_TEXT;
+ tmpButtonType = BUTTON_TEXT;
else if ( nBits == TIB_ICON_ONLY )
- tmpButtonType = BUTTON_SYMBOL;
+ tmpButtonType = BUTTON_SYMBOL;
}
return tmpButtonType;
}
@@ -317,7 +317,7 @@ static void ImplCheckUpdate( ToolBox *pThis )
// which would result in erasing the background only and not painting any items
// this must not be done when we're already in Paint()
- // this is only required for transparent toolbars (see ImplDrawTransparentBackground() )
+ // this is only required for transparent toolbars (see ImplDrawTransparentBackground() )
if( !pThis->IsBackground() && pThis->HasPaintEvent() && !pThis->IsInPaint() )
pThis->Update();
}
@@ -341,7 +341,7 @@ void ToolBox::ImplDrawGrip( ToolBox* pThis )
Rectangle aCtrlRegion( aPt, pThis->GetOutputSizePixel() );
ControlState nState = CTRL_STATE_ENABLED;
- bNativeOk = pThis->DrawNativeControl( CTRL_TOOLBAR, pThis->mbHorz ? PART_THUMB_VERT : PART_THUMB_HORZ,
+ bNativeOk = pThis->DrawNativeControl( CTRL_TOOLBAR, pThis->mbHorz ? PART_THUMB_VERT : PART_THUMB_HORZ,
aCtrlRegion, nState, aToolbarValue, rtl::OUString() );
}
@@ -555,7 +555,7 @@ BOOL ToolBox::ImplDrawNativeBackground( ToolBox* pThis, const Region & )
Rectangle aCtrlRegion( aPt, pThis->GetOutputSizePixel() );
ControlState nState = CTRL_STATE_ENABLED;
- return pThis->DrawNativeControl( CTRL_TOOLBAR, pThis->mbHorz ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT,
+ return pThis->DrawNativeControl( CTRL_TOOLBAR, pThis->mbHorz ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT,
aCtrlRegion, nState, ImplControlValue(), rtl::OUString() );
}
@@ -563,11 +563,11 @@ void ToolBox::ImplDrawTransparentBackground( ToolBox* pThis, const Region &rRegi
{
// just invalidate to trigger paint of the parent
- const bool bOldPaintLock = pThis->mpData->mbIsPaintLocked;
+ const bool bOldPaintLock = pThis->mpData->mbIsPaintLocked;
pThis->mpData->mbIsPaintLocked = true;
// send an invalidate to the first opaque parent and invalidate the whole hierarchy from there (noclipchildren)
- pThis->Invalidate( rRegion, INVALIDATE_UPDATE|INVALIDATE_NOCLIPCHILDREN );
+ pThis->Invalidate( rRegion, INVALIDATE_UPDATE|INVALIDATE_NOCLIPCHILDREN );
pThis->mpData->mbIsPaintLocked = bOldPaintLock;
}
@@ -581,7 +581,7 @@ void ToolBox::ImplDrawConstantBackground( ToolBox* pThis, const Region &rRegion,
else
{
// use different color in popupmode
- pThis->DrawWallpaper( rRegion.GetBoundRect(),
+ pThis->DrawWallpaper( rRegion.GetBoundRect(),
Wallpaper( pThis->GetSettings().GetStyleSettings().GetFaceGradientColor() ) );
}
}
@@ -643,7 +643,7 @@ void ToolBox::ImplErase( ToolBox* pThis, const Rectangle &rRect, BOOL bHighlight
// the background of non NWF buttons is painted in a constant color
// to have the same highlight color (transparency in DrawSelectionBackground())
// items with open popups will also painted using a constant color
- if( !pThis->mpData->mbNativeButtons &&
+ if( !pThis->mpData->mbNativeButtons &&
(bHighlight || ! (((Window*) pThis)->GetStyle() & WB_3DLOOK ) ) )
{
if( (((Window*) pThis)->GetStyle() & WB_3DLOOK ) )
@@ -1043,12 +1043,12 @@ USHORT ToolBox::ImplCalcLines( ToolBox* pThis, long nToolSize )
nLineHeight += TB_LINESPACING;
nToolSize += TB_LINESPACING;
}
-
+
// #i91917# always report at least one line
long nLines = nToolSize/nLineHeight;
if( nLines < 1 )
nLines = 1;
-
+
return static_cast<USHORT>(nLines);
}
@@ -1575,7 +1575,7 @@ void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
ImplGetWindowImpl()->mbToolBox = TRUE;
mpBtnDev = NULL;
mpFloatSizeAry = NULL;
- mpData = new ImplToolBoxPrivateData;
+ mpData = new ImplToolBoxPrivateData;
mpFloatWin = NULL;
mnDX = 0;
mnDY = 0;
@@ -1594,7 +1594,7 @@ void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
mnCurItemId = 0;
mnDownItemId = 0;
mnCurPos = TOOLBOX_ITEM_NOTFOUND;
- mnFocusPos = TOOLBOX_ITEM_NOTFOUND; // current position during keyboard access
+ mnFocusPos = TOOLBOX_ITEM_NOTFOUND; // current position during keyboard access
mnLines = 1;
mnCurLine = 1;
mnCurLines = 1;
@@ -1620,7 +1620,7 @@ void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
mbDragging = FALSE;
mbHideStatusText = FALSE;
mbMenuStrings = FALSE;
- mbIsShift = FALSE;
+ mbIsShift = FALSE;
mbIsKeyEvent = FALSE;
mbChangingHighlight = FALSE;
meButtonType = BUTTON_SYMBOL;
@@ -1628,7 +1628,7 @@ void ToolBox::ImplInit( Window* pParent, WinBits nStyle )
meLastStyle = POINTER_ARROW;
mnWinStyle = nStyle;
mnLastFocusItemId = 0;
- mnKeyModifier = 0;
+ mnKeyModifier = 0;
mnActivateCount = 0;
maTimer.SetTimeout( 50 );
@@ -1725,7 +1725,7 @@ void ToolBox::ImplLoadRes( const ResId& rResId )
ResMgr* pMgr = rResId.GetResMgr();
if( ! pMgr )
return;
-
+
DockingWindow::ImplLoadRes( rResId );
ULONG nObjMask;
@@ -1937,7 +1937,7 @@ BOOL ToolBox::ImplCalcItem()
mpData->mnMenuButtonWidth = TB_MENUBUTTON_SIZE;
}
}
-
+
// also calculate the area for comboboxes, drop down list boxes and spinfields
// as these are often inserted into toolboxes; set mnWinHeight to the
// greater of those values to prevent toolbar flickering (#i103385#)
@@ -1977,10 +1977,10 @@ BOOL ToolBox::ImplCalcItem()
if( aRect.GetHeight() > mnWinHeight )
mnWinHeight = aRect.GetHeight();
}
- }
-
+ }
+
if ( ! mpData->m_aItems.empty() )
- {
+ {
std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin();
while ( it != mpData->m_aItems.end() )
{
@@ -2000,7 +2000,7 @@ BOOL ToolBox::ImplCalcItem()
bText = FALSE;
else
bText = TRUE;
- ButtonType tmpButtonType = determineButtonType( &(*it), meButtonType ); // default to toolbox setting
+ ButtonType tmpButtonType = determineButtonType( &(*it), meButtonType ); // default to toolbox setting
if ( bImage || bText )
{
@@ -2091,7 +2091,7 @@ BOOL ToolBox::ImplCalcItem()
{
// add borders
ImplAddButtonBorder( it->maItemSize.Width(), it->maItemSize.Height(), mnOutStyle, mpData->mbNativeButtons );
-
+
if( it->meType == TOOLBOXITEM_BUTTON )
{
if( it->maItemSize.Width() < nMinWidth )
@@ -3416,13 +3416,13 @@ static void ImplDrawButton( ToolBox* pThis, const Rectangle &rRect, USHORT highl
ControlState nState = 0;
if ( highlight == 1 ) nState |= CTRL_STATE_PRESSED;
- if ( highlight == 2 ) nState |= CTRL_STATE_ROLLOVER;
+ if ( highlight == 2 ) nState |= CTRL_STATE_ROLLOVER;
if ( bEnabled ) nState |= CTRL_STATE_ENABLED;
aControlValue.setTristateVal( bChecked ? BUTTONVALUE_ON : BUTTONVALUE_OFF );
- bNativeOk = pThis->DrawNativeControl( CTRL_TOOLBAR, PART_BUTTON,
+ bNativeOk = pThis->DrawNativeControl( CTRL_TOOLBAR, PART_BUTTON,
rRect, nState, aControlValue, rtl::OUString() );
}
@@ -3633,7 +3633,7 @@ void ToolBox::ImplDrawItem( USHORT nPos, BOOL bHighlight, BOOL bPaint, BOOL bLay
// determine what has to be drawn on the button: image, text or both
BOOL bImage;
BOOL bText;
- ButtonType tmpButtonType = determineButtonType( pItem, meButtonType ); // default to toolbox setting
+ ButtonType tmpButtonType = determineButtonType( pItem, meButtonType ); // default to toolbox setting
pItem->DetermineButtonDrawStyle( tmpButtonType, bImage, bText );
// compute output values
@@ -3685,7 +3685,7 @@ void ToolBox::ImplDrawItem( USHORT nPos, BOOL bHighlight, BOOL bPaint, BOOL bLay
nImageOffX += (nBtnWidth-aImageSize.Width())/2;
nImageOffY += (nBtnHeight-aImageSize.Height())/2;
}
- if ( bHighlight || (pItem->meState == STATE_CHECK) )
+ if ( bHighlight || (pItem->meState == STATE_CHECK) )
{
if( bHasOpenPopup )
ImplDrawFloatwinBorder( pItem );
@@ -3923,7 +3923,7 @@ void ToolBox::ImplFloatControl( BOOL bStart, FloatingWindow* pFloatWindow )
// draw current item with highlight and keep old state
BOOL bWasKeyboardActivate = mpData->mbDropDownByKeyboard;
-
+
if ( mnCurPos != TOOLBOX_ITEM_NOTFOUND )
ImplDrawItem( mnCurPos, bWasKeyboardActivate ? 2 : 0 );
Deactivate();
@@ -3962,7 +3962,7 @@ void ToolBox::ShowLine( BOOL bNext )
mnCurLine = mnCurLine - delta;
else
mnCurLine = 1;
- }
+ }
}
else
{
@@ -4060,7 +4060,7 @@ BOOL ToolBox::ImplHandleMouseButtonUp( const MouseEvent& rMEvt, BOOL bCancel )
{
mpData->maDropdownTimer.Stop();
}
-
+
if ( mbDrag || mbSelection )
{
// Hier die MouseDaten setzen, wenn Selection-Modus, da dann kein
@@ -4753,7 +4753,7 @@ void ToolBox::Move()
// -----------------------------------------------------------------------
void ToolBox::Resize()
-{
+{
Size aSize = GetOutputSizePixel();
// #i31422# some WindowManagers send (0,0) sizes when
// switching virtual desktops - ignore this and avoid reformatting
@@ -4890,7 +4890,7 @@ void ToolBox::RequestHelp( const HelpEvent& rHEvt )
{
String aCommand = GetItemCommand( nItemId );
ULONG nHelpId = GetHelpId( nItemId );
-
+
if ( aCommand.Len() || nHelpId )
{
// Wenn eine Hilfe existiert, dann ausloesen
@@ -5388,7 +5388,7 @@ Size ToolBox::CalcWindowSizePixel( USHORT nCalcLines, WindowAlign eAlign ) const
USHORT ToolBox::ImplCountLineBreaks( const ToolBox *pThis )
{
USHORT nLines = 0;
-
+
std::vector< ImplToolItem >::const_iterator it = ((ToolBox*)pThis)->mpData->m_aItems.begin();
while ( it != ((ToolBox*)pThis)->mpData->m_aItems.end() )
{
@@ -5403,7 +5403,7 @@ Size ToolBox::CalcPopupWindowSizePixel() const
{
// count number of breaks and calc corresponding floating window size
USHORT nLines = ImplCountLineBreaks( this );
-
+
if( nLines )
nLines++; // add the first line
else
@@ -5732,7 +5732,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
case KEY_UP:
{
// Ctrl-Cursor activates next toolbox, indicated by a blue arrow pointing to the left/up
- if( aKeyCode.GetModifier() ) // allow only pure cursor keys
+ if( aKeyCode.GetModifier() ) // allow only pure cursor keys
break;
if( !IsHorizontal() )
ImplChangeHighlightUpDn( TRUE );
@@ -5742,7 +5742,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
break;
case KEY_LEFT:
{
- if( aKeyCode.GetModifier() ) // allow only pure cursor keys
+ if( aKeyCode.GetModifier() ) // allow only pure cursor keys
break;
if( IsHorizontal() )
ImplChangeHighlightUpDn( TRUE );
@@ -5752,7 +5752,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
break;
case KEY_DOWN:
{
- if( aKeyCode.GetModifier() ) // allow only pure cursor keys
+ if( aKeyCode.GetModifier() ) // allow only pure cursor keys
break;
if( !IsHorizontal() )
ImplChangeHighlightUpDn( FALSE );
@@ -5762,7 +5762,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
break;
case KEY_RIGHT:
{
- if( aKeyCode.GetModifier() ) // allow only pure cursor keys
+ if( aKeyCode.GetModifier() ) // allow only pure cursor keys
break;
if( IsHorizontal() )
ImplChangeHighlightUpDn( FALSE );
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 46ee835ce4cc..29ef64cb14ff 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ using namespace rtl;
// =======================================================================
-#define TB_SEP_SIZE 8
+#define TB_SEP_SIZE 8
// -----------------------------------------------------------------------
@@ -95,22 +95,22 @@ ImplToolBoxPrivateData::~ImplToolBoxPrivateData()
// -----------------------------------------------------------------------
ImplToolItem::ImplToolItem()
{
- mnId = 0;
- mpWindow = NULL;
- mpUserData = NULL;
- mnHelpId = 0;
- meType = TOOLBOXITEM_BUTTON;
- mnBits = 0;
- meState = STATE_NOCHECK;
- mbEnabled = TRUE;
- mbVisible = TRUE;
- mbEmptyBtn = TRUE;
- mbShowWindow = FALSE;
- mbBreak = FALSE;
- mnSepSize = TB_SEP_SIZE;
+ mnId = 0;
+ mpWindow = NULL;
+ mpUserData = NULL;
+ mnHelpId = 0;
+ meType = TOOLBOXITEM_BUTTON;
+ mnBits = 0;
+ meState = STATE_NOCHECK;
+ mbEnabled = TRUE;
+ mbVisible = TRUE;
+ mbEmptyBtn = TRUE;
+ mbShowWindow = FALSE;
+ mbBreak = FALSE;
+ mnSepSize = TB_SEP_SIZE;
mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
- mnImageAngle = 0;
- mbMirrorMode = FALSE;
+ mnImageAngle = 0;
+ mbMirrorMode = FALSE;
mbVisibleText = FALSE;
}
@@ -120,22 +120,22 @@ ImplToolItem::ImplToolItem( USHORT nItemId, const Image& rImage,
ToolBoxItemBits nItemBits ) :
maImage( rImage )
{
- mnId = nItemId;
- mpWindow = NULL;
- mpUserData = NULL;
- mnHelpId = 0;
- meType = TOOLBOXITEM_BUTTON;
- mnBits = nItemBits;
- meState = STATE_NOCHECK;
- mbEnabled = TRUE;
- mbVisible = TRUE;
- mbEmptyBtn = FALSE;
- mbShowWindow = FALSE;
- mbBreak = FALSE;
- mnSepSize = TB_SEP_SIZE;
+ mnId = nItemId;
+ mpWindow = NULL;
+ mpUserData = NULL;
+ mnHelpId = 0;
+ meType = TOOLBOXITEM_BUTTON;
+ mnBits = nItemBits;
+ meState = STATE_NOCHECK;
+ mbEnabled = TRUE;
+ mbVisible = TRUE;
+ mbEmptyBtn = FALSE;
+ mbShowWindow = FALSE;
+ mbBreak = FALSE;
+ mnSepSize = TB_SEP_SIZE;
mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
- mnImageAngle = 0;
- mbMirrorMode = false;
+ mnImageAngle = 0;
+ mbMirrorMode = false;
mbVisibleText = false;
}
@@ -145,22 +145,22 @@ ImplToolItem::ImplToolItem( USHORT nItemId, const XubString& rText,
ToolBoxItemBits nItemBits ) :
maText( rText )
{
- mnId = nItemId;
- mpWindow = NULL;
- mpUserData = NULL;
- mnHelpId = 0;
- meType = TOOLBOXITEM_BUTTON;
- mnBits = nItemBits;
- meState = STATE_NOCHECK;
- mbEnabled = TRUE;
- mbVisible = TRUE;
- mbEmptyBtn = FALSE;
- mbShowWindow = FALSE;
- mbBreak = FALSE;
- mnSepSize = TB_SEP_SIZE;
+ mnId = nItemId;
+ mpWindow = NULL;
+ mpUserData = NULL;
+ mnHelpId = 0;
+ meType = TOOLBOXITEM_BUTTON;
+ mnBits = nItemBits;
+ meState = STATE_NOCHECK;
+ mbEnabled = TRUE;
+ mbVisible = TRUE;
+ mbEmptyBtn = FALSE;
+ mbShowWindow = FALSE;
+ mbBreak = FALSE;
+ mnSepSize = TB_SEP_SIZE;
mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
- mnImageAngle = 0;
- mbMirrorMode = false;
+ mnImageAngle = 0;
+ mbMirrorMode = false;
mbVisibleText = false;
}
@@ -171,54 +171,54 @@ ImplToolItem::ImplToolItem( USHORT nItemId, const Image& rImage,
maImage( rImage ),
maText( rText )
{
- mnId = nItemId;
- mpWindow = NULL;
- mpUserData = NULL;
- mnHelpId = 0;
- meType = TOOLBOXITEM_BUTTON;
- mnBits = nItemBits;
- meState = STATE_NOCHECK;
- mbEnabled = TRUE;
- mbVisible = TRUE;
- mbEmptyBtn = FALSE;
- mbShowWindow = FALSE;
- mbBreak = FALSE;
- mnSepSize = TB_SEP_SIZE;
+ mnId = nItemId;
+ mpWindow = NULL;
+ mpUserData = NULL;
+ mnHelpId = 0;
+ meType = TOOLBOXITEM_BUTTON;
+ mnBits = nItemBits;
+ meState = STATE_NOCHECK;
+ mbEnabled = TRUE;
+ mbVisible = TRUE;
+ mbEmptyBtn = FALSE;
+ mbShowWindow = FALSE;
+ mbBreak = FALSE;
+ mnSepSize = TB_SEP_SIZE;
mnDropDownArrowWidth = TB_DROPDOWNARROWWIDTH;
- mnImageAngle = 0;
- mbMirrorMode = false;
+ mnImageAngle = 0;
+ mbMirrorMode = false;
mbVisibleText = false;
}
// -----------------------------------------------------------------------
ImplToolItem::ImplToolItem( const ImplToolItem& rItem ) :
- mpWindow ( rItem.mpWindow ),
- mpUserData ( rItem.mpUserData ),
- maImage ( rItem.maImage ),
- maHighImage ( rItem.maHighImage ),
- mnImageAngle ( rItem.mnImageAngle ),
- mbMirrorMode ( rItem.mbMirrorMode ),
- maText ( rItem.maText ),
- maQuickHelpText ( rItem.maQuickHelpText ),
- maHelpText ( rItem.maHelpText ),
- maCommandStr ( rItem.maCommandStr ),
- mnHelpId ( rItem.mnHelpId ),
- maRect ( rItem.maRect ),
- maCalcRect ( rItem.maCalcRect ),
- maItemSize ( rItem.maItemSize ),
- mnSepSize ( rItem.mnSepSize ),
+ mpWindow ( rItem.mpWindow ),
+ mpUserData ( rItem.mpUserData ),
+ maImage ( rItem.maImage ),
+ maHighImage ( rItem.maHighImage ),
+ mnImageAngle ( rItem.mnImageAngle ),
+ mbMirrorMode ( rItem.mbMirrorMode ),
+ maText ( rItem.maText ),
+ maQuickHelpText ( rItem.maQuickHelpText ),
+ maHelpText ( rItem.maHelpText ),
+ maCommandStr ( rItem.maCommandStr ),
+ mnHelpId ( rItem.mnHelpId ),
+ maRect ( rItem.maRect ),
+ maCalcRect ( rItem.maCalcRect ),
+ maItemSize ( rItem.maItemSize ),
+ mnSepSize ( rItem.mnSepSize ),
mnDropDownArrowWidth ( rItem.mnDropDownArrowWidth ),
- meType ( rItem.meType ),
- mnBits ( rItem.mnBits ),
- meState ( rItem.meState ),
- mnId ( rItem.mnId ),
- mbEnabled ( rItem.mbEnabled ),
- mbVisible ( rItem.mbVisible ),
- mbEmptyBtn ( rItem.mbEmptyBtn ),
- mbShowWindow ( rItem.mbShowWindow ),
- mbBreak ( rItem.mbBreak ),
- mbVisibleText ( rItem.mbVisibleText )
+ meType ( rItem.meType ),
+ mnBits ( rItem.mnBits ),
+ meState ( rItem.meState ),
+ mnId ( rItem.mnId ),
+ mbEnabled ( rItem.mbEnabled ),
+ mbVisible ( rItem.mbVisible ),
+ mbEmptyBtn ( rItem.mbEmptyBtn ),
+ mbShowWindow ( rItem.mbShowWindow ),
+ mbBreak ( rItem.mbBreak ),
+ mbVisibleText ( rItem.mbVisibleText )
{
}
@@ -232,32 +232,32 @@ ImplToolItem::~ImplToolItem()
ImplToolItem& ImplToolItem::operator=( const ImplToolItem& rItem )
{
- mpWindow = rItem.mpWindow;
- mpUserData = rItem.mpUserData;
- maImage = rItem.maImage;
- maHighImage = rItem.maHighImage;
- mnImageAngle = rItem.mnImageAngle;
- mbMirrorMode = rItem.mbMirrorMode;
- maText = rItem.maText;
- maQuickHelpText = rItem.maQuickHelpText;
- maHelpText = rItem.maHelpText;
- maCommandStr = rItem.maCommandStr;
- mnHelpId = rItem.mnHelpId;
- maRect = rItem.maRect;
- maCalcRect = rItem.maCalcRect;
- mnSepSize = rItem.mnSepSize;
+ mpWindow = rItem.mpWindow;
+ mpUserData = rItem.mpUserData;
+ maImage = rItem.maImage;
+ maHighImage = rItem.maHighImage;
+ mnImageAngle = rItem.mnImageAngle;
+ mbMirrorMode = rItem.mbMirrorMode;
+ maText = rItem.maText;
+ maQuickHelpText = rItem.maQuickHelpText;
+ maHelpText = rItem.maHelpText;
+ maCommandStr = rItem.maCommandStr;
+ mnHelpId = rItem.mnHelpId;
+ maRect = rItem.maRect;
+ maCalcRect = rItem.maCalcRect;
+ mnSepSize = rItem.mnSepSize;
mnDropDownArrowWidth = rItem.mnDropDownArrowWidth;
- maItemSize = rItem.maItemSize;
- mbVisibleText = rItem.mbVisibleText;
- meType = rItem.meType;
- mnBits = rItem.mnBits;
- meState = rItem.meState;
- mnId = rItem.mnId;
- mbEnabled = rItem.mbEnabled;
- mbVisible = rItem.mbVisible;
- mbEmptyBtn = rItem.mbEmptyBtn;
- mbShowWindow = rItem.mbShowWindow;
- mbBreak = rItem.mbBreak;
+ maItemSize = rItem.maItemSize;
+ mbVisibleText = rItem.mbVisibleText;
+ meType = rItem.meType;
+ mnBits = rItem.mnBits;
+ meState = rItem.meState;
+ mnId = rItem.mnId;
+ mbEnabled = rItem.mbEnabled;
+ mbVisible = rItem.mbVisible;
+ mbEmptyBtn = rItem.mbEmptyBtn;
+ mbShowWindow = rItem.mbShowWindow;
+ mbBreak = rItem.mbBreak;
return *this;
}
@@ -566,14 +566,14 @@ void ToolBox::UserDraw( const UserDrawEvent& )
void ToolBox::InsertItem( const ResId& rResId, USHORT nPos )
{
- ULONG nObjMask;
- BOOL bImage = FALSE; // Wurde Image gesetzt
+ ULONG nObjMask;
+ BOOL bImage = FALSE; // Wurde Image gesetzt
// Item anlegen
ImplToolItem aItem;
GetRes( rResId.SetRT( RSC_TOOLBOXITEM ) );
- nObjMask = ReadLongRes();
+ nObjMask = ReadLongRes();
if ( nObjMask & RSC_TOOLBOXITEM_ID )
aItem.mnId = sal::static_int_cast<USHORT>(ReadLongRes());
@@ -614,7 +614,7 @@ void ToolBox::InsertItem( const ResId& rResId, USHORT nPos )
aItem.mbEnabled = !(BOOL)ReadShortRes();
if ( nObjMask & RSC_TOOLBOXITEM_STATE )
- aItem.meState = (TriState)ReadLongRes();
+ aItem.meState = (TriState)ReadLongRes();
if ( nObjMask & RSC_TOOLBOXITEM_HIDE )
aItem.mbVisible = !((BOOL)ReadShortRes());
@@ -727,10 +727,10 @@ void ToolBox::InsertWindow( USHORT nItemId, Window* pWindow,
// Item anlegen und in die Liste einfuegen
ImplToolItem aItem;
- aItem.mnId = nItemId;
- aItem.meType = TOOLBOXITEM_BUTTON;
- aItem.mnBits = nBits;
- aItem.mpWindow = pWindow;
+ aItem.mnId = nItemId;
+ aItem.meType = TOOLBOXITEM_BUTTON;
+ aItem.mnBits = nBits;
+ aItem.mpWindow = pWindow;
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
mpData->ImplClearLayoutData();
@@ -750,8 +750,8 @@ void ToolBox::InsertSpace( USHORT nPos )
{
// Item anlegen und in die Liste einfuegen
ImplToolItem aItem;
- aItem.meType = TOOLBOXITEM_SPACE;
- aItem.mbEnabled = FALSE;
+ aItem.meType = TOOLBOXITEM_SPACE;
+ aItem.mbEnabled = FALSE;
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
mpData->ImplClearLayoutData();
@@ -768,8 +768,8 @@ void ToolBox::InsertSeparator( USHORT nPos, USHORT nPixSize )
{
// Item anlegen und in die Liste einfuegen
ImplToolItem aItem;
- aItem.meType = TOOLBOXITEM_SEPARATOR;
- aItem.mbEnabled = FALSE;
+ aItem.meType = TOOLBOXITEM_SEPARATOR;
+ aItem.mbEnabled = FALSE;
if ( nPixSize )
aItem.mnSepSize = nPixSize;
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
@@ -788,8 +788,8 @@ void ToolBox::InsertBreak( USHORT nPos )
{
// Item anlegen und in die Liste einfuegen
ImplToolItem aItem;
- aItem.meType = TOOLBOXITEM_BREAK;
- aItem.mbEnabled = FALSE;
+ aItem.meType = TOOLBOXITEM_BREAK;
+ aItem.mbEnabled = FALSE;
mpData->m_aItems.insert( (nPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nPos : mpData->m_aItems.end(), aItem );
mpData->ImplClearLayoutData();
@@ -885,7 +885,7 @@ void ToolBox::CopyItem( const ToolBox& rToolBox, USHORT nItemId,
// ToolBox-Item in der Liste verschieben
ImplToolItem aNewItem = rToolBox.mpData->m_aItems[nPos];
// Bestimme Daten zuruecksetzen
- aNewItem.mpWindow = NULL;
+ aNewItem.mpWindow = NULL;
aNewItem.mbShowWindow = FALSE;
mpData->m_aItems.insert( (nNewPos < mpData->m_aItems.size()) ? mpData->m_aItems.begin()+nNewPos : mpData->m_aItems.end(), aNewItem );
@@ -912,8 +912,8 @@ void ToolBox::CopyItems( const ToolBox& rToolBox )
for( std::vector< ImplToolItem >::iterator it = mpData->m_aItems.begin();
it != mpData->m_aItems.end(); ++it )
{
- it->mpWindow = NULL;
- it->mbShowWindow = FALSE;
+ it->mpWindow = NULL;
+ it->mbShowWindow = FALSE;
}
ImplInvalidate( TRUE, TRUE );
@@ -1376,8 +1376,8 @@ void ToolBox::SetImageList( const ImageList& rImageList )
static Image ImplRotImage( const Image& rImage, long nAngle10 )
{
- Image aRet;
- BitmapEx aRotBitmapEx( rImage.GetBitmapEx() );
+ Image aRet;
+ BitmapEx aRotBitmapEx( rImage.GetBitmapEx() );
aRotBitmapEx.Rotate( nAngle10, Color( COL_WHITE ) );
@@ -1419,8 +1419,8 @@ void ToolBox::SetItemImageAngle( USHORT nItemId, long nAngle10 )
static Image ImplMirrorImage( const Image& rImage )
{
- Image aRet;
- BitmapEx aMirrBitmapEx( rImage.GetBitmapEx() );
+ Image aRet;
+ BitmapEx aMirrBitmapEx( rImage.GetBitmapEx() );
aMirrBitmapEx.Mirror( BMP_MIRROR_HORZ );
@@ -1597,7 +1597,7 @@ void ToolBox::StartSelection()
if ( !mbSelection )
{
mbSelection = TRUE;
- mnCurPos = TOOLBOX_ITEM_NOTFOUND;
+ mnCurPos = TOOLBOX_ITEM_NOTFOUND;
mnCurItemId = 0;
Activate();
}
@@ -1621,10 +1621,10 @@ void ToolBox::EndSelection()
Deactivate();
}
- mnCurPos = TOOLBOX_ITEM_NOTFOUND;
- mnCurItemId = 0;
- mnDownItemId = 0;
- mnMouseClicks = 0;
+ mnCurPos = TOOLBOX_ITEM_NOTFOUND;
+ mnCurItemId = 0;
+ mnDownItemId = 0;
+ mnMouseClicks = 0;
mnMouseModifier = 0;
}
@@ -1666,9 +1666,9 @@ void ToolBox::SetItemDown( USHORT nItemId, BOOL bDown, BOOL bRelease )
Deactivate();
}
- mnCurItemId = 0;
- mnDownItemId = 0;
- mnMouseClicks = 0;
+ mnCurItemId = 0;
+ mnDownItemId = 0;
+ mnMouseClicks = 0;
mnMouseModifier = 0;
}
}
@@ -1703,9 +1703,9 @@ void ToolBox::SetItemState( USHORT nItemId, TriState eState )
if ( (eState == STATE_CHECK) && (pItem->mnBits & TIB_AUTOCHECK) &&
(pItem->mnBits & TIB_RADIOCHECK) )
{
- ImplToolItem* pGroupItem;
- USHORT nGroupPos;
- USHORT nItemCount = GetItemCount();
+ ImplToolItem* pGroupItem;
+ USHORT nGroupPos;
+ USHORT nItemCount = GetItemCount();
nGroupPos = nPos;
while ( nGroupPos )
@@ -2415,7 +2415,7 @@ void ToolBox::ImplUpdateImageList()
vcl::IImageListProvider* pImageListProvider = mpData->mpImageListProvider;
SetImageList( pImageListProvider->getImageList(eType) );
mpData->meImageListType = eType;
- }
+ }
}
catch (com::sun::star::lang::IllegalArgumentException &) {}
}
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index ffc447b09172..c130c8cf8306 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -497,7 +497,7 @@ void Window::ImplUpdateGlobalSettings( AllSettings& rSettings, BOOL bCallHdl )
}
}
}
-
+
static const char* pEnvHC = getenv( "SAL_FORCE_HC" );
if( pEnvHC && *pEnvHC )
{
@@ -719,7 +719,7 @@ void Window::ImplInit( Window* pParent, WinBits nStyle, SystemParentData* pSyste
ImplSVData* pSVData = ImplGetSVData();
Window* pRealParent = pParent;
-
+
// 3D-Look vererben
if ( !mpWindowImpl->mbOverlapWin && pParent && (pParent->GetStyle() & WB_3DLOOK) )
nStyle |= WB_3DLOOK;
@@ -2337,7 +2337,7 @@ void Window::ImplCallPaint( const Region* pRegion, USHORT nPaintFlags )
// call PrePaint. PrePaint may add to the invalidate region as well as
// other parameters used below.
PrePaint();
-
+
mpWindowImpl->mbPaintFrame = FALSE;
if ( nPaintFlags & IMPL_PAINT_PAINTALLCHILDS )
@@ -3278,7 +3278,7 @@ void Window::ImplPosSizeWindow( long nX, long nY,
nX = mpWindowImpl->mpParent->mnOutWidth - mnOutWidth - nX;
}
}
-
+
// check maPos as well, as it could have been changed for client windows (ImplCallMove())
if ( mpWindowImpl->mnAbsScreenX != aPtDev.X() || nX != mpWindowImpl->mnX || nOrgX != mpWindowImpl->maPos.X() )
{
@@ -9359,7 +9359,7 @@ void Window::DrawSelectionBackground( const Rectangle& rRect,
{
if( rRect.IsEmpty() )
return;
-
+
bool bRoundEdges = nCornerRadius > 0;
const StyleSettings& rStyles = GetSettings().GetStyleSettings();
@@ -9838,7 +9838,7 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
// preserve graphicsstate
Push();
Region aClipRegion( GetClipRegion() );
- SetClipRegion();
+ SetClipRegion();
GDIMetaFile* pOldMtf = GetConnectMetaFile();
GDIMetaFile aMtf;
@@ -9900,7 +9900,7 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
SetConnectMetaFile( pOldMtf );
EnableOutput( bOutput );
mpWindowImpl->mbReallyVisible = bRVisible;
-
+
// paint metafile to VDev
VirtualDevice* pMaskedDevice = new VirtualDevice( *i_pTargetOutDev, 0, 0 );
pMaskedDevice->SetOutputSizePixel( GetOutputSizePixel() );
@@ -9922,7 +9922,7 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
nDeltaX = mnOutWidth - nDeltaX - pChild->mnOutWidth;
long nDeltaY = pChild->GetOutOffYPixel() - GetOutOffYPixel();
Point aPos( i_rPos );
- Point aDelta( nDeltaX, nDeltaY );
+ Point aDelta( nDeltaX, nDeltaY );
aPos += aDelta;
pChild->ImplPaintToDevice( i_pTargetOutDev, aPos );
}
@@ -9941,11 +9941,11 @@ void Window::ImplPaintToDevice( OutputDevice* i_pTargetOutDev, const Point& i_rP
void Window::PaintToDevice( OutputDevice* pDev, const Point& rPos, const Size& /*rSize*/ )
{
// FIXME: scaling: currently this is for pixel copying only
-
+
DBG_ASSERT( ! pDev->ImplHasMirroredGraphics(), "PaintToDevice to mirroring graphics" );
DBG_ASSERT( ! pDev->IsRTLEnabled(), "PaintToDevice to mirroring device" );
-
-
+
+
Point aPos = pDev->LogicToPixel( rPos );
Window* pRealParent = NULL;
@@ -9963,7 +9963,7 @@ void Window::PaintToDevice( OutputDevice* pDev, const Point& rPos, const Size& /
BOOL bVisible = mpWindowImpl->mbVisible;
mpWindowImpl->mbVisible = TRUE;
-
+
if( mpWindowImpl->mpBorderWindow )
mpWindowImpl->mpBorderWindow->ImplPaintToDevice( pDev, rPos );
else
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 00f8d7b59705..7ee1a5aa82c2 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -353,13 +353,13 @@ Bitmap Window::SnapShot() const
void Window::ShowFocus( const Rectangle& rRect )
{
DBG_CHKTHIS( Window, ImplDbgCheckWindow );
-
+
if( mpWindowImpl->mbInShowFocus )
return;
mpWindowImpl->mbInShowFocus = TRUE;
ImplWinData* pWinData = ImplGetWinData();
-
+
// native themeing suggest not to use focus rects
if( ! ( mpWindowImpl->mbUseNativeFocus &&
IsNativeWidgetEnabled() ) )
@@ -373,10 +373,10 @@ void Window::ShowFocus( const Rectangle& rRect )
mpWindowImpl->mbInShowFocus = FALSE;
return;
}
-
+
ImplInvertFocus( *(pWinData->mpFocusRect) );
}
-
+
ImplInvertFocus( rRect );
}
if ( !pWinData->mpFocusRect )
@@ -402,7 +402,7 @@ void Window::ShowFocus( const Rectangle& rRect )
void Window::HideFocus()
{
DBG_CHKTHIS( Window, ImplDbgCheckWindow );
-
+
if( mpWindowImpl->mbInHideFocus )
return;
mpWindowImpl->mbInHideFocus = TRUE;
@@ -1224,9 +1224,9 @@ BOOL Window::HandleScrollCommand( const CommandEvent& rCmd,
nLines = pData->GetNotchDelta() * (long)nScrollLines;
if ( nLines )
{
- ImplHandleScroll( NULL,
- 0L,
- pData->IsHorz() ? pHScrl : pVScrl,
+ ImplHandleScroll( NULL,
+ 0L,
+ pData->IsHorz() ? pHScrl : pVScrl,
nLines );
bRet = TRUE;
}
@@ -1306,7 +1306,7 @@ void Window::ImplHandleScroll( ScrollBar* pHScrl, long nX,
}
}
-// support for docking
+// support for docking
// this is currently handled in ImplDockingWindowWrapper
/*
void Window::ImplSetFloatingMode( BOOL bFloatMode )
@@ -1441,14 +1441,14 @@ Window* Window::ImplGetTopmostFrameWindow()
// making these Methods out of line to be able to change them lateron without complete rebuild
// TODO: Set the SmartId in here and remove mpWindowImpl->mnHelpId
-void Window::SetHelpId( ULONG nHelpId )
-{
- SetSmartHelpId(SmartId(nHelpId));
+void Window::SetHelpId( ULONG nHelpId )
+{
+ SetSmartHelpId(SmartId(nHelpId));
}
-ULONG Window::GetHelpId() const
-{
- return mpWindowImpl->mnHelpId;
+ULONG Window::GetHelpId() const
+{
+ return mpWindowImpl->mnHelpId;
}
void Window::SetSmartHelpId( const SmartId& aId, SmartIdUpdateMode aMode )
@@ -1463,7 +1463,7 @@ void Window::SetSmartHelpId( const SmartId& aId, SmartIdUpdateMode aMode )
// if we have a SmartId (eather from earlier call or just created) fill with new values
if ( mpWindowImpl->mpWinData && mpWindowImpl->mpWinData->mpSmartHelpId )
ImplGetWinData()->mpSmartHelpId->UpdateId( aId, aMode );
-
+
if ( (aMode == SMART_SET_NUM) || (aMode == SMART_SET_ALL) || ( (aMode == SMART_SET_SMART) && aId.HasNumeric() ) )
{
mpWindowImpl->mnHelpId = aId.GetNum();
@@ -1506,7 +1506,7 @@ void Window::SetSmartUniqueId( const SmartId& aId, SmartIdUpdateMode aMode )
// if we have a SmartId (eather from earlier call or just created) fill with new values
if ( mpWindowImpl->mpWinData && mpWindowImpl->mpWinData->mpSmartUniqueId )
ImplGetWinData()->mpSmartUniqueId->UpdateId( aId, aMode );
-
+
if ( (aMode == SMART_SET_NUM) || (aMode == SMART_SET_ALL) || ( (aMode == SMART_SET_SMART) && aId.HasNumeric() ) )
mpWindowImpl->mnUniqId = aId.GetNum();
}
@@ -1820,210 +1820,210 @@ BOOL Window::IsControlFont() const
}
Color Window::GetControlForeground() const
-{
- return mpWindowImpl->maControlForeground;
+{
+ return mpWindowImpl->maControlForeground;
}
-BOOL Window::IsControlForeground() const
-{
- return mpWindowImpl->mbControlForeground;
+BOOL Window::IsControlForeground() const
+{
+ return mpWindowImpl->mbControlForeground;
}
-Color Window::GetControlBackground() const
-{
- return mpWindowImpl->maControlBackground;
+Color Window::GetControlBackground() const
+{
+ return mpWindowImpl->maControlBackground;
}
-BOOL Window::IsControlBackground() const
-{
- return mpWindowImpl->mbControlBackground;
+BOOL Window::IsControlBackground() const
+{
+ return mpWindowImpl->mbControlBackground;
}
-BOOL Window::IsInPaint() const
-{
- return mpWindowImpl->mbInPaint;
+BOOL Window::IsInPaint() const
+{
+ return mpWindowImpl->mbInPaint;
}
-Window* Window::GetParent() const
-{
- return mpWindowImpl->mpRealParent;
+Window* Window::GetParent() const
+{
+ return mpWindowImpl->mpRealParent;
}
-BOOL Window::IsVisible() const
-{
- return mpWindowImpl->mbVisible;
+BOOL Window::IsVisible() const
+{
+ return mpWindowImpl->mbVisible;
}
-BOOL Window::IsReallyVisible() const
-{
- return mpWindowImpl->mbReallyVisible;
+BOOL Window::IsReallyVisible() const
+{
+ return mpWindowImpl->mbReallyVisible;
}
-BOOL Window::IsParentPathVisible() const
-{
- return mpWindowImpl->mbReallyVisible;
+BOOL Window::IsParentPathVisible() const
+{
+ return mpWindowImpl->mbReallyVisible;
}
-BOOL Window::IsReallyShown() const
-{
- return mpWindowImpl->mbReallyShown;
+BOOL Window::IsReallyShown() const
+{
+ return mpWindowImpl->mbReallyShown;
}
-BOOL Window::IsInInitShow() const
-{
- return mpWindowImpl->mbInInitShow;
+BOOL Window::IsInInitShow() const
+{
+ return mpWindowImpl->mbInInitShow;
}
-BOOL Window::IsEnabled() const
-{
- return !mpWindowImpl->mbDisabled;
+BOOL Window::IsEnabled() const
+{
+ return !mpWindowImpl->mbDisabled;
}
-BOOL Window::IsInputEnabled() const
-{
- return !mpWindowImpl->mbInputDisabled;
+BOOL Window::IsInputEnabled() const
+{
+ return !mpWindowImpl->mbInputDisabled;
}
-BOOL Window::IsAlwaysEnableInput() const
-{
- return mpWindowImpl->meAlwaysInputMode == AlwaysInputEnabled;
+BOOL Window::IsAlwaysEnableInput() const
+{
+ return mpWindowImpl->meAlwaysInputMode == AlwaysInputEnabled;
}
-BOOL Window::IsAlwaysDisableInput() const
-{
- return mpWindowImpl->meAlwaysInputMode == AlwaysInputDisabled;
+BOOL Window::IsAlwaysDisableInput() const
+{
+ return mpWindowImpl->meAlwaysInputMode == AlwaysInputDisabled;
}
-USHORT Window::GetActivateMode() const
-{
- return mpWindowImpl->mnActivateMode;
+USHORT Window::GetActivateMode() const
+{
+ return mpWindowImpl->mnActivateMode;
}
-BOOL Window::IsAlwaysOnTopEnabled() const
-{
- return mpWindowImpl->mbAlwaysOnTop;
+BOOL Window::IsAlwaysOnTopEnabled() const
+{
+ return mpWindowImpl->mbAlwaysOnTop;
}
-BOOL Window::IsDefaultPos() const
-{
- return mpWindowImpl->mbDefPos;
+BOOL Window::IsDefaultPos() const
+{
+ return mpWindowImpl->mbDefPos;
}
-BOOL Window::IsDefaultSize() const
-{
- return mpWindowImpl->mbDefSize;
+BOOL Window::IsDefaultSize() const
+{
+ return mpWindowImpl->mbDefSize;
}
-void Window::EnablePaint( BOOL bEnable )
-{
- mpWindowImpl->mbPaintDisabled = !bEnable;
+void Window::EnablePaint( BOOL bEnable )
+{
+ mpWindowImpl->mbPaintDisabled = !bEnable;
}
-BOOL Window::IsPaintEnabled() const
-{
- return !mpWindowImpl->mbPaintDisabled;
+BOOL Window::IsPaintEnabled() const
+{
+ return !mpWindowImpl->mbPaintDisabled;
}
-BOOL Window::IsUpdateMode() const
-{
- return !mpWindowImpl->mbNoUpdate;
+BOOL Window::IsUpdateMode() const
+{
+ return !mpWindowImpl->mbNoUpdate;
}
-void Window::SetParentUpdateMode( BOOL bUpdate )
-{
- mpWindowImpl->mbNoParentUpdate = !bUpdate;
+void Window::SetParentUpdateMode( BOOL bUpdate )
+{
+ mpWindowImpl->mbNoParentUpdate = !bUpdate;
}
-BOOL Window::IsParentUpdateMode() const
-{
- return !mpWindowImpl->mbNoParentUpdate;
+BOOL Window::IsParentUpdateMode() const
+{
+ return !mpWindowImpl->mbNoParentUpdate;
}
-BOOL Window::IsActive() const
-{
- return mpWindowImpl->mbActive;
+BOOL Window::IsActive() const
+{
+ return mpWindowImpl->mbActive;
}
-USHORT Window::GetGetFocusFlags() const
-{
- return mpWindowImpl->mnGetFocusFlags;
+USHORT Window::GetGetFocusFlags() const
+{
+ return mpWindowImpl->mnGetFocusFlags;
}
-BOOL Window::IsCompoundControl() const
-{
- return mpWindowImpl->mbCompoundControl;
+BOOL Window::IsCompoundControl() const
+{
+ return mpWindowImpl->mbCompoundControl;
}
-BOOL Window::HasCompoundControlFocus() const
-{
- return mpWindowImpl->mbCompoundControlHasFocus;
+BOOL Window::HasCompoundControlFocus() const
+{
+ return mpWindowImpl->mbCompoundControlHasFocus;
}
-BOOL Window::IsChildPointerOverwrite() const
+BOOL Window::IsChildPointerOverwrite() const
{
- return mpWindowImpl->mbChildPtrOverwrite;
+ return mpWindowImpl->mbChildPtrOverwrite;
}
-BOOL Window::IsPointerVisible() const
-{
- return !mpWindowImpl->mbNoPtrVisible;
+BOOL Window::IsPointerVisible() const
+{
+ return !mpWindowImpl->mbNoPtrVisible;
}
-BOOL Window::IsWait() const
-{
- return (mpWindowImpl->mnWaitCount != 0);
+BOOL Window::IsWait() const
+{
+ return (mpWindowImpl->mnWaitCount != 0);
}
-Cursor* Window::GetCursor() const
-{
- return mpWindowImpl->mpCursor;
+Cursor* Window::GetCursor() const
+{
+ return mpWindowImpl->mpCursor;
}
-const Fraction& Window::GetZoom() const
-{
- return mpWindowImpl->maZoom;
+const Fraction& Window::GetZoom() const
+{
+ return mpWindowImpl->maZoom;
}
-BOOL Window::IsZoom() const
-{
- return mpWindowImpl->maZoom.GetNumerator() != mpWindowImpl->maZoom.GetDenominator();
+BOOL Window::IsZoom() const
+{
+ return mpWindowImpl->maZoom.GetNumerator() != mpWindowImpl->maZoom.GetDenominator();
}
-void Window::SetHelpText( const XubString& rHelpText )
-{
+void Window::SetHelpText( const XubString& rHelpText )
+{
mpWindowImpl->maHelpText = rHelpText;
mpWindowImpl->mbHelpTextDynamic = TRUE;
}
-void Window::SetQuickHelpText( const XubString& rHelpText )
-{
- mpWindowImpl->maQuickHelpText = rHelpText;
+void Window::SetQuickHelpText( const XubString& rHelpText )
+{
+ mpWindowImpl->maQuickHelpText = rHelpText;
}
-const XubString& Window::GetQuickHelpText() const
-{
- return mpWindowImpl->maQuickHelpText;
+const XubString& Window::GetQuickHelpText() const
+{
+ return mpWindowImpl->maQuickHelpText;
}
-void Window::SetData( void* pNewData )
-{
- mpWindowImpl->mpUserData = pNewData;
+void Window::SetData( void* pNewData )
+{
+ mpWindowImpl->mpUserData = pNewData;
}
-void* Window::GetData() const
-{
- return mpWindowImpl->mpUserData;
+void* Window::GetData() const
+{
+ return mpWindowImpl->mpUserData;
}
-BOOL Window::IsCreatedWithToolkit() const
-{
- return mpWindowImpl->mbCreatedWithToolkit;
+BOOL Window::IsCreatedWithToolkit() const
+{
+ return mpWindowImpl->mbCreatedWithToolkit;
}
-void Window::SetCreatedWithToolkit( BOOL b )
-{
- mpWindowImpl->mbCreatedWithToolkit = b;
+void Window::SetCreatedWithToolkit( BOOL b )
+{
+ mpWindowImpl->mbCreatedWithToolkit = b;
}
const Pointer& Window::GetPointer() const
diff --git a/vcl/source/window/window3.cxx b/vcl/source/window/window3.cxx
index f35e85e89464..064ea6b70e6b 100644
--- a/vcl/source/window/window3.cxx
+++ b/vcl/source/window/window3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index ca35f12b5ce6..ca593bd948d8 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -475,9 +475,9 @@ long ImplHandleMouseEvent( Window* pWindow, USHORT nSVEvent, BOOL bMouseLeave,
MouseEvent aMEvt( aChildPos, pWinFrameData->mnClickCount, nMode, nCode, nCode );
NotifyEvent aNEvt( nSVEvent, pChild, &aMEvt );
Application::CallEventHooks( aNEvt );
-
+
if( pChild->IsCallHandlersOnInputDisabled() )
- {
+ {
pWinFrameData->mpMouseMoveWin = pChild;
pChild->ImplNotifyKeyMouseCommandEventListeners( aNEvt );
}
@@ -1254,7 +1254,7 @@ static long ImplHandleExtTextInput( Window* pWindow,
{
ImplSVData* pSVData = ImplGetSVData();
Window* pChild = NULL;
-
+
int nTries = 200;
while( nTries-- )
{
@@ -1540,7 +1540,7 @@ static long ImplHandleWheelEvent( Window* pWindow, const SalWheelMouseEvent& rEv
}
}
}
-
+
// close floaters
if( ! bIsFloat && pSVData->maWinData.mpFirstFloat )
{
@@ -1691,7 +1691,7 @@ static void ImplHandleMove( Window* pWindow )
pWindow->ImplGetWindowImpl()->mbCallMove = TRUE; // make sure the framepos will be updated on the next Show()
if ( pWindow->ImplGetWindowImpl()->mbFrame && pWindow->ImplGetWindowImpl()->mpClientWindow )
- pWindow->ImplGetWindowImpl()->mpClientWindow->ImplCallMove(); // notify client to update geometry
+ pWindow->ImplGetWindowImpl()->mpClientWindow->ImplCallMove(); // notify client to update geometry
}
@@ -2272,7 +2272,7 @@ static long ImplHandleShowDialog( Window* pWindow, int nDialogId )
{
if( ! pWindow )
return FALSE;
-
+
if( pWindow->GetType() == WINDOW_BORDERWINDOW )
{
Window* pWrkWin = pWindow->GetWindow( WINDOW_CLIENT );
diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx
index 72887ce0f577..384e0bd0cb64 100644
--- a/vcl/source/window/wrkwin.cxx
+++ b/vcl/source/window/wrkwin.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -309,7 +309,7 @@ BOOL WorkWindow::Close()
// Ist es das Applikationsfenster, dann beende die Applikation
if ( bCanClose && ( ImplGetSVData()->maWinData.mpAppWin == this ) )
GetpApp()->Quit();
-
+
return bCanClose;
}
@@ -325,8 +325,8 @@ BOOL WorkWindow::IsMaximized() const
SalFrameState aState;
if( mpWindowImpl->mpFrame->GetWindowState( &aState ) )
{
- if( aState.mnState & (SAL_FRAMESTATE_MAXIMIZED |
- SAL_FRAMESTATE_MAXIMIZED_HORZ |
+ if( aState.mnState & (SAL_FRAMESTATE_MAXIMIZED |
+ SAL_FRAMESTATE_MAXIMIZED_HORZ |
SAL_FRAMESTATE_MAXIMIZED_VERT ) )
bRet = TRUE;
}
diff --git a/vcl/test/canvasbitmaptest.cxx b/vcl/test/canvasbitmaptest.cxx
index 51ec6685f0ca..907c55dcd5e5 100644
--- a/vcl/test/canvasbitmaptest.cxx
+++ b/vcl/test/canvasbitmaptest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,8 +79,8 @@ SAL_IMPLEMENT_MAIN()
tools::extendApplicationEnvironment();
uno::Reference< lang::XMultiServiceFactory > xMS;
- xMS = cppu::createRegistryServiceFactory(
- rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ),
+ xMS = cppu::createRegistryServiceFactory(
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ),
sal_True );
InitVCL( xMS );
@@ -161,7 +161,7 @@ bool rangeCheck( const rendering::RGBColor& rColor )
//----------------------------------------------------------------------------------
-void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
+void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
const char* msg,
int nOriginalDepth )
{
@@ -192,7 +192,7 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
rendering::IntegerBitmapLayout aLayout;
uno::Sequence<sal_Int8> aPixelData = xBmp->getData(aLayout, geometry::IntegerRectangle2D(0,0,1,1));
-
+
const sal_Int32 nExpectedBitsPerPixel(
aContainedBmpEx.IsTransparent() ? std::max(8,nDepth)+8 : nDepth);
test( aLayout.ScanLines == 1,
@@ -212,7 +212,7 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
"Palette existance conforms to bitmap" );
uno::Sequence<sal_Int8> aPixelData2 = xBmp->getPixel( aLayout, geometry::IntegerPoint2D(0,0) );
-
+
test( aPixelData2.getLength() == aPixelData.getLength(),
"getData and getPixel return same amount of data" );
@@ -248,15 +248,15 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
test( pARGBStart[0].Alpha == 0.0,
"First pixel is fully transparent" );
}
-
+
test( pRGBStart[1].Red == 0.0 && pRGBStart[1].Green == 0.0 && pRGBStart[1].Blue == 0.0,
"Second pixel is black" );
if( nOriginalDepth > 8 )
{
const Color aCol(COL_GREEN);
- test( pRGBStart[5].Red == vcl::unotools::toDoubleColor(aCol.GetRed()) &&
- pRGBStart[5].Green == vcl::unotools::toDoubleColor(aCol.GetGreen()) &&
+ test( pRGBStart[5].Red == vcl::unotools::toDoubleColor(aCol.GetRed()) &&
+ pRGBStart[5].Green == vcl::unotools::toDoubleColor(aCol.GetGreen()) &&
pRGBStart[5].Blue == vcl::unotools::toDoubleColor(aCol.GetBlue()),
"Sixth pixel is green" );
}
@@ -312,7 +312,7 @@ void checkCanvasBitmap( const rtl::Reference<VclCanvasBitmap>& xBmp,
//----------------------------------------------------------------------------------
-void checkBitmapImport( const rtl::Reference<VclCanvasBitmap>& xBmp,
+void checkBitmapImport( const rtl::Reference<VclCanvasBitmap>& xBmp,
const char* msg,
int nOriginalDepth )
{
@@ -343,7 +343,7 @@ void checkBitmapImport( const rtl::Reference<VclCanvasBitmap>& xBmp,
rendering::IntegerBitmapLayout aLayout;
uno::Sequence<sal_Int8> aPixelData = xBmp->getData(aLayout, geometry::IntegerRectangle2D(0,0,1,1));
-
+
const sal_Int32 nExpectedBitsPerPixel(
aContainedBmpEx.IsTransparent() ? std::max(8,nDepth)+8 : nDepth);
test( aLayout.ScanLines == 1,
@@ -363,7 +363,7 @@ void checkBitmapImport( const rtl::Reference<VclCanvasBitmap>& xBmp,
"Palette existance conforms to bitmap" );
uno::Sequence<sal_Int8> aPixelData2 = xBmp->getPixel( aLayout, geometry::IntegerPoint2D(0,0) );
-
+
test( aPixelData2.getLength() == aPixelData.getLength(),
"getData and getPixel return same amount of data" );
@@ -399,15 +399,15 @@ void checkBitmapImport( const rtl::Reference<VclCanvasBitmap>& xBmp,
test( pARGBStart[0].Alpha == 0.0,
"First pixel is fully transparent" );
}
-
+
test( pRGBStart[1].Red == 0.0 && pRGBStart[1].Green == 0.0 && pRGBStart[1].Blue == 0.0,
"Second pixel is black" );
if( nOriginalDepth > 8 )
{
const Color aCol(COL_GREEN);
- test( pRGBStart[5].Red == vcl::unotools::toDoubleColor(aCol.GetRed()) &&
- pRGBStart[5].Green == vcl::unotools::toDoubleColor(aCol.GetGreen()) &&
+ test( pRGBStart[5].Red == vcl::unotools::toDoubleColor(aCol.GetRed()) &&
+ pRGBStart[5].Green == vcl::unotools::toDoubleColor(aCol.GetGreen()) &&
pRGBStart[5].Blue == vcl::unotools::toDoubleColor(aCol.GetBlue()),
"Sixth pixel is green" );
}
@@ -477,12 +477,12 @@ private:
// XBitmap
virtual geometry::IntegerSize2D SAL_CALL getSize() throw (uno::RuntimeException) { return maSize; }
virtual ::sal_Bool SAL_CALL hasAlpha( ) throw (uno::RuntimeException) { return mnBitsPerPixel != 8; }
- virtual uno::Reference< rendering::XBitmap > SAL_CALL getScaledBitmap( const geometry::RealSize2D&,
+ virtual uno::Reference< rendering::XBitmap > SAL_CALL getScaledBitmap( const geometry::RealSize2D&,
sal_Bool ) throw (uno::RuntimeException) { return this; }
// XIntegerReadOnlyBitmap
- virtual uno::Sequence< ::sal_Int8 > SAL_CALL getData( rendering::IntegerBitmapLayout& bitmapLayout,
- const geometry::IntegerRectangle2D& rect ) throw (lang::IndexOutOfBoundsException,
+ virtual uno::Sequence< ::sal_Int8 > SAL_CALL getData( rendering::IntegerBitmapLayout& bitmapLayout,
+ const geometry::IntegerRectangle2D& rect ) throw (lang::IndexOutOfBoundsException,
rendering::VolatileContentDestroyedException, uno::RuntimeException)
{
test( rect.X1 >= 0, "X1 within bounds" );
@@ -499,9 +499,9 @@ private:
sal_Int8* pOut = aRes.getArray();
bitmapLayout.ScanLines = nHeight;
- bitmapLayout.ScanLineBytes =
+ bitmapLayout.ScanLineBytes =
bitmapLayout.ScanLineStride= nScanlineLen;
-
+
if( mnBitsPerPixel == 8 )
{
for( sal_Int32 y=0; y<nHeight; ++y )
@@ -527,8 +527,8 @@ private:
return aRes;
}
- virtual uno::Sequence< ::sal_Int8 > SAL_CALL getPixel( rendering::IntegerBitmapLayout&,
- const geometry::IntegerPoint2D& ) throw (lang::IndexOutOfBoundsException,
+ virtual uno::Sequence< ::sal_Int8 > SAL_CALL getPixel( rendering::IntegerBitmapLayout&,
+ const geometry::IntegerPoint2D& ) throw (lang::IndexOutOfBoundsException,
rendering::VolatileContentDestroyedException, uno::RuntimeException)
{
test(false, "Method not implemented");
@@ -550,7 +550,7 @@ private:
const sal_Int32 nScanlineLen = (maSize.Width * mnBitsPerPixel + 7)/8;
aLayout.ScanLines = maSize.Height;
- aLayout.ScanLineBytes =
+ aLayout.ScanLineBytes =
aLayout.ScanLineStride= nScanlineLen;
aLayout.Palette = getPalette();
aLayout.ColorSpace.set( this );
@@ -567,26 +567,26 @@ private:
return 255;
}
- virtual ::sal_Bool SAL_CALL getIndex( uno::Sequence< double >& entry,
- ::sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException,
+ virtual ::sal_Bool SAL_CALL getIndex( uno::Sequence< double >& entry,
+ ::sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException,
uno::RuntimeException)
{
test( getPalette().is(),
"Got palette interface call without handing out palette?!" );
test( nIndex >= 0 && nIndex < 256,
"Index out of range" );
- entry = colorToStdColorSpaceSequence(
- Color(UINT8(nIndex),
- UINT8(nIndex),
+ entry = colorToStdColorSpaceSequence(
+ Color(UINT8(nIndex),
+ UINT8(nIndex),
UINT8(nIndex)) );
return sal_True; // no palette transparency here.
}
- virtual ::sal_Bool SAL_CALL setIndex( const uno::Sequence< double >&,
- ::sal_Bool,
- ::sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException,
- lang::IllegalArgumentException,
+ virtual ::sal_Bool SAL_CALL setIndex( const uno::Sequence< double >&,
+ ::sal_Bool,
+ ::sal_Int32 nIndex ) throw (lang::IndexOutOfBoundsException,
+ lang::IllegalArgumentException,
uno::RuntimeException)
{
test( getPalette().is(),
@@ -597,13 +597,13 @@ private:
}
struct PaletteColorSpaceHolder: public rtl::StaticWithInit<uno::Reference<rendering::XColorSpace>,
- PaletteColorSpaceHolder>
+ PaletteColorSpaceHolder>
{
uno::Reference<rendering::XColorSpace> operator()()
{
return vcl::unotools::createStandardColorSpace();
}
- };
+ };
virtual uno::Reference< rendering::XColorSpace > SAL_CALL getColorSpace( ) throw (uno::RuntimeException)
{
@@ -634,49 +634,49 @@ private:
return uno::Sequence< ::beans::PropertyValue >();
}
- virtual uno::Sequence< double > SAL_CALL convertColorSpace( const uno::Sequence< double >&,
+ virtual uno::Sequence< double > SAL_CALL convertColorSpace( const uno::Sequence< double >&,
const uno::Reference< rendering::XColorSpace >& ) throw (uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< double >();
}
- virtual uno::Sequence< rendering::RGBColor > SAL_CALL convertToRGB( const uno::Sequence< double >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< rendering::RGBColor > SAL_CALL convertToRGB( const uno::Sequence< double >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< rendering::RGBColor >();
}
- virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertToARGB( const uno::Sequence< double >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertToARGB( const uno::Sequence< double >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< rendering::ARGBColor >();
}
- virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertToPARGB( const uno::Sequence< double >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertToPARGB( const uno::Sequence< double >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< rendering::ARGBColor >();
}
- virtual uno::Sequence< double > SAL_CALL convertFromRGB( const uno::Sequence< rendering::RGBColor >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< double > SAL_CALL convertFromRGB( const uno::Sequence< rendering::RGBColor >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< double >();
}
- virtual uno::Sequence< double > SAL_CALL convertFromARGB( const uno::Sequence< rendering::ARGBColor >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< double > SAL_CALL convertFromARGB( const uno::Sequence< rendering::ARGBColor >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "This method is not expected to be called!");
return uno::Sequence< double >();
}
- virtual uno::Sequence< double > SAL_CALL convertFromPARGB( const uno::Sequence< rendering::ARGBColor >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< double > SAL_CALL convertFromPARGB( const uno::Sequence< rendering::ARGBColor >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "This method is not expected to be called!");
@@ -698,23 +698,23 @@ private:
return util::Endianness::LITTLE;
}
- virtual uno::Sequence< double > SAL_CALL convertFromIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& ,
- const uno::Reference< rendering::XColorSpace >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< double > SAL_CALL convertFromIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& ,
+ const uno::Reference< rendering::XColorSpace >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< double >();
}
- virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertToIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& ,
- const uno::Reference< rendering::XIntegerBitmapColorSpace >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertToIntegerColorSpace( const uno::Sequence< ::sal_Int8 >& ,
+ const uno::Reference< rendering::XIntegerBitmapColorSpace >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< sal_Int8 >();
}
- virtual uno::Sequence< rendering::RGBColor > SAL_CALL convertIntegerToRGB( const uno::Sequence< ::sal_Int8 >& deviceColor ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< rendering::RGBColor > SAL_CALL convertIntegerToRGB( const uno::Sequence< ::sal_Int8 >& deviceColor ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
const uno::Sequence< rendering::ARGBColor > aTemp( convertIntegerToARGB(deviceColor) );
@@ -731,12 +731,12 @@ private:
return aRes;
}
- virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertIntegerToARGB( const uno::Sequence< ::sal_Int8 >& deviceColor ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertIntegerToARGB( const uno::Sequence< ::sal_Int8 >& deviceColor ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
const sal_Size nLen( deviceColor.getLength() );
const sal_Int32 nBytesPerPixel(mnBitsPerPixel == 8 ? 1 : 4);
- test(nLen%nBytesPerPixel==0,
+ test(nLen%nBytesPerPixel==0,
"number of channels no multiple of pixel element count");
uno::Sequence< rendering::ARGBColor > aRes( nLen / nBytesPerPixel );
@@ -768,12 +768,12 @@ private:
return aRes;
}
- virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertIntegerToPARGB( const uno::Sequence< ::sal_Int8 >& deviceColor ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertIntegerToPARGB( const uno::Sequence< ::sal_Int8 >& deviceColor ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
const sal_Size nLen( deviceColor.getLength() );
const sal_Int32 nBytesPerPixel(mnBitsPerPixel == 8 ? 1 : 4);
- test(nLen%nBytesPerPixel==0,
+ test(nLen%nBytesPerPixel==0,
"number of channels no multiple of pixel element count");
uno::Sequence< rendering::ARGBColor > aRes( nLen / nBytesPerPixel );
@@ -806,21 +806,21 @@ private:
return aRes;
}
- virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertIntegerFromRGB( const uno::Sequence< rendering::RGBColor >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertIntegerFromRGB( const uno::Sequence< rendering::RGBColor >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< sal_Int8 >();
}
- virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertIntegerFromARGB( const uno::Sequence< rendering::ARGBColor >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertIntegerFromARGB( const uno::Sequence< rendering::ARGBColor >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
return uno::Sequence< sal_Int8 >();
}
- virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertIntegerFromPARGB( const uno::Sequence< rendering::ARGBColor >& ) throw (lang::IllegalArgumentException,
+ virtual uno::Sequence< ::sal_Int8 > SAL_CALL convertIntegerFromPARGB( const uno::Sequence< rendering::ARGBColor >& ) throw (lang::IllegalArgumentException,
uno::RuntimeException)
{
test(false, "Method not implemented");
@@ -911,7 +911,7 @@ void TestWindow::Paint( const Rectangle& )
pAcc->SetPixel(0,2,aWhite);
}
}
-
+
rtl::Reference<VclCanvasBitmap> xBmp( new VclCanvasBitmap(aBitmap) );
checkCanvasBitmap( xBmp, "single bitmap", nDepth );
@@ -930,7 +930,7 @@ void TestWindow::Paint( const Rectangle& )
pAcc->SetPixel(0,2,BitmapColor(1));
}
}
-
+
xBmp.set( new VclCanvasBitmap(BitmapEx(aBitmap,aMask)) );
checkCanvasBitmap( xBmp, "masked bitmap", nDepth );
@@ -949,7 +949,7 @@ void TestWindow::Paint( const Rectangle& )
aAlpha.ReleaseAccess(pAcc);
}
}
-
+
xBmp.set( new VclCanvasBitmap(BitmapEx(aBitmap,aAlpha)) );
checkCanvasBitmap( xBmp, "alpha bitmap", nDepth );
diff --git a/vcl/test/dndtest.cxx b/vcl/test/dndtest.cxx
index 31bc02ffd8ef..8db6ef0a9c9c 100644
--- a/vcl/test/dndtest.cxx
+++ b/vcl/test/dndtest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ using namespace ::com::sun::star::datatransfer::dnd;
class MyApp : public Application
{
public:
- void Main();
+ void Main();
};
MyApp aMyApp;
@@ -74,13 +74,13 @@ class MyWin : public WorkWindow
public:
MyWin( Window* pParent, WinBits nWinStyle );
- void MouseMove( const MouseEvent& rMEvt );
- void MouseButtonDown( const MouseEvent& rMEvt );
- void MouseButtonUp( const MouseEvent& rMEvt );
- void KeyInput( const KeyEvent& rKEvt );
- void KeyUp( const KeyEvent& rKEvt );
- void Paint( const Rectangle& rRect );
- void Resize();
+ void MouseMove( const MouseEvent& rMEvt );
+ void MouseButtonDown( const MouseEvent& rMEvt );
+ void MouseButtonUp( const MouseEvent& rMEvt );
+ void KeyInput( const KeyEvent& rKEvt );
+ void KeyUp( const KeyEvent& rKEvt );
+ void Paint( const Rectangle& rRect );
+ void Resize();
};
// -----------------------------------------------------------------------
@@ -103,8 +103,8 @@ public:
virtual void SAL_CALL dragEnter( const DragSourceDragEvent& dsdee ) throw(RuntimeException);
virtual void SAL_CALL dragExit( const DragSourceEvent& dse ) throw(RuntimeException);
virtual void SAL_CALL dragOver( const DragSourceDragEvent& dsde ) throw(RuntimeException);
- virtual void SAL_CALL dropActionChanged( const DragSourceDragEvent& dsde ) throw(RuntimeException);
- virtual void SAL_CALL disposing( const EventObject& eo ) throw(RuntimeException);
+ virtual void SAL_CALL dropActionChanged( const DragSourceDragEvent& dsde ) throw(RuntimeException);
+ virtual void SAL_CALL disposing( const EventObject& eo ) throw(RuntimeException);
};
// -----------------------------------------------------------------------
@@ -134,17 +134,17 @@ class StringTransferable : public ::cppu::WeakImplHelper1< XTransferable >
const OUString m_aData;
Sequence< DataFlavor > m_aFlavorList;
-public:
+public:
StringTransferable( const OUString& rString ) : m_aData( rString ), m_aFlavorList( 1 )
{
DataFlavor df;
df.MimeType = OUString::createFromAscii( "text/plain;charset=utf-16" );
df.DataType = getCppuType( static_cast < OUString * > ( 0 ) );
-
+
m_aFlavorList[0] = df;
};
-
+
virtual Any SAL_CALL getTransferData( const DataFlavor& aFlavor ) throw(UnsupportedFlavorException, IOException, RuntimeException);
virtual Sequence< DataFlavor > SAL_CALL getTransferDataFlavors( ) throw(RuntimeException);
virtual sal_Bool SAL_CALL isDataFlavorSupported( const DataFlavor& aFlavor ) throw(RuntimeException);
@@ -189,7 +189,7 @@ void MyApp::Main()
}
else
fprintf( stderr, "Usage: %s -r full-path-to-applicat.rdb\n", "dnddemo" );
-
+
MyWin aMainWin( NULL, WB_APP | WB_STDWORK );
aMainWin.SetText( XubString( RTL_CONSTASCII_USTRINGPARAM( "Drag And Drop - Workbench" ) ) );
@@ -218,7 +218,7 @@ void MyApp::Main()
Reference< XComponent > xComponent( xServiceManager, UNO_QUERY );
if( xComponent.is() )
xComponent->dispose();
-
+
}
// -----------------------------------------------------------------------
@@ -227,9 +227,9 @@ MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle )
{
Reference< XDropTargetListener > xListener = new MyDragAndDropListener( this );
-
+
Reference< XDropTarget > xDropTarget = GetDropTarget();
- if( xDropTarget.is() )
+ if( xDropTarget.is() )
{
xDropTarget->addDropTargetListener( xListener );
xDropTarget->setActive( sal_True );
@@ -384,13 +384,13 @@ void SAL_CALL MyDragAndDropListener::disposing( const EventObject& ) throw(Runti
// -----------------------------------------------------------------------
-MyInfoBox::MyInfoBox( Window* pParent ) : InfoBox( pParent,
+MyInfoBox::MyInfoBox( Window* pParent ) : InfoBox( pParent,
OUString::createFromAscii( "dragging over this box should result in another window id in the drag log." ) )
{
Reference< XDropTargetListener > xListener = new MyDragAndDropListener( this );
-
+
Reference< XDropTarget > xDropTarget = GetDropTarget();
- if( xDropTarget.is() )
+ if( xDropTarget.is() )
{
xDropTarget->addDropTargetListener( xListener );
xDropTarget->setActive( sal_True );
@@ -406,9 +406,9 @@ MyInfoBox::MyInfoBox( Window* pParent ) : InfoBox( pParent,
MyListBox::MyListBox( Window* pParent ) : ListBox( pParent )
{
Reference< XDropTargetListener > xListener = new MyDragAndDropListener( this );
-
+
Reference< XDropTarget > xDropTarget = GetDropTarget();
- if( xDropTarget.is() )
+ if( xDropTarget.is() )
{
xDropTarget->addDropTargetListener( xListener );
xDropTarget->setActive( sal_True );
@@ -421,15 +421,15 @@ MyListBox::MyListBox( Window* pParent ) : ListBox( pParent )
// -----------------------------------------------------------------------
-Any SAL_CALL StringTransferable::getTransferData( const DataFlavor& )
+Any SAL_CALL StringTransferable::getTransferData( const DataFlavor& )
throw(UnsupportedFlavorException, IOException, RuntimeException)
-{
+{
return makeAny( m_aData );
}
// -----------------------------------------------------------------------
-Sequence< DataFlavor > SAL_CALL StringTransferable::getTransferDataFlavors( )
+Sequence< DataFlavor > SAL_CALL StringTransferable::getTransferDataFlavors( )
throw(RuntimeException)
{
return m_aFlavorList;
@@ -437,7 +437,7 @@ Sequence< DataFlavor > SAL_CALL StringTransferable::getTransferDataFlavors( )
// -----------------------------------------------------------------------
-sal_Bool SAL_CALL StringTransferable::isDataFlavorSupported( const DataFlavor& )
+sal_Bool SAL_CALL StringTransferable::isDataFlavorSupported( const DataFlavor& )
throw(RuntimeException)
{
return sal_True;
diff --git a/vcl/unx/gtk/a11y/atkaction.cxx b/vcl/unx/gtk/a11y/atkaction.cxx
index 39c51cb3b274..0b4ed3ab4023 100644
--- a/vcl/unx/gtk/a11y/atkaction.cxx
+++ b/vcl/unx/gtk/a11y/atkaction.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ static accessibility::XAccessibleAction*
getAction( AtkAction *action ) throw (uno::RuntimeException)
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( action );
-
+
if( pWrap )
{
if( !pWrap->mpAction && pWrap->mpContext )
@@ -134,7 +134,7 @@ action_wrapper_get_name (AtkAction *action,
gint i)
{
static std::map< rtl::OUString, const gchar * > aNameMap;
-
+
if( aNameMap.empty() )
{
aNameMap.insert( ACTION_NAME_PAIR( "click", "click" ) );
@@ -147,16 +147,16 @@ action_wrapper_get_name (AtkAction *action,
if( pAction )
{
std::map< rtl::OUString, const gchar * >::iterator iter;
-
+
rtl::OUString aDesc( pAction->getAccessibleActionDescription( i ) );
-
+
iter = aNameMap.find( aDesc );
if( iter != aNameMap.end() )
return iter->second;
-
- std::pair< const rtl::OUString, const gchar * > aNewVal( aDesc,
+
+ std::pair< const rtl::OUString, const gchar * > aNewVal( aDesc,
g_strdup( OUStringToConstGChar(aDesc) ) );
-
+
if( aNameMap.insert( aNewVal ).second )
return aNewVal.second;
}
@@ -168,11 +168,11 @@ action_wrapper_get_name (AtkAction *action,
return "";
}
-/*
+/*
* GNOME Expects a string in the format:
-*
+*
* <nmemonic>;<full-path>;<accelerator>
-*
+*
* The keybindings in <full-path> should be separated by ":"
*/
@@ -187,13 +187,13 @@ appendKeyStrokes(rtl::OStringBuffer& rBuffer, const uno::Sequence< awt::KeyStrok
rBuffer.append("<Control>");
if( rKeyStrokes[i].Modifiers & awt::KeyModifier::MOD2 )
rBuffer.append("<Alt>");
-
+
if( ( rKeyStrokes[i].KeyCode >= awt::Key::A ) && ( rKeyStrokes[i].KeyCode <= awt::Key::Z ) )
rBuffer.append( (sal_Char) ( 'a' + ( rKeyStrokes[i].KeyCode - awt::Key::A ) ) );
else
{
sal_Char c = '\0';
-
+
switch( rKeyStrokes[i].KeyCode )
{
case awt::Key::TAB: c = '\t'; break;
@@ -213,7 +213,7 @@ appendKeyStrokes(rtl::OStringBuffer& rBuffer, const uno::Sequence< awt::KeyStrok
g_warning( "Unmapped KeyCode: %d", rKeyStrokes[i].KeyCode );
break;
}
-
+
if( c != '\0' )
rBuffer.append( c );
}
@@ -230,20 +230,20 @@ action_wrapper_get_keybinding (AtkAction *action,
if( pAction )
{
uno::Reference< accessibility::XAccessibleKeyBinding > xBinding( pAction->getAccessibleActionKeyBinding( i ));
-
+
if( xBinding.is() )
{
rtl::OStringBuffer aRet;
-
+
sal_Int32 nmax = std::min( xBinding->getAccessibleKeyBindingCount(), (sal_Int32) 3 );
for( sal_Int32 n = 0; n < nmax; n++ )
{
appendKeyStrokes( aRet, xBinding->getAccessibleKeyBinding( n ) );
-
+
if( n < 2 )
aRet.append( (sal_Char) ';' );
}
-
+
// !! FIXME !! remember keystroke in wrapper object ?
return getAsConst( aRet.makeStringAndClear() );
}
diff --git a/vcl/unx/gtk/a11y/atkbridge.cxx b/vcl/unx/gtk/a11y/atkbridge.cxx
index bdd6d526e527..d2c81fe8d266 100644
--- a/vcl/unx/gtk/a11y/atkbridge.cxx
+++ b/vcl/unx/gtk/a11y/atkbridge.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,16 +42,16 @@ bool InitAtkBridge(void)
const char* pVersion = atk_get_toolkit_version();
if( ! pVersion )
return false;
-
+
unsigned int major, minor, micro;
-
+
/* check gail minimum version requirements */
if( sscanf( pVersion, "%u.%u.%u", &major, &minor, &micro) < 3 )
{
// g_warning( "unable to parse gail version number" );
return false;
}
-
+
if( ( (major << 16) | (minor << 8) | micro ) < ( (1 << 16) | 8 << 8 | 6 ) )
{
g_warning( "libgail >= 1.8.6 required for accessibility support" );
@@ -60,15 +60,15 @@ bool InitAtkBridge(void)
/* Initialize the AtkUtilityWrapper class */
g_type_class_unref( g_type_class_ref( OOO_TYPE_ATK_UTIL ) );
-
+
/* Initialize the GailWindow wrapper class */
g_type_class_unref( g_type_class_ref( OOO_TYPE_WINDOW_WRAPPER ) );
-
+
/* Register AtkObject wrapper factory */
AtkRegistry * registry = atk_get_default_registry();
if( registry )
atk_registry_set_factory_type( registry, OOO_TYPE_FIXED, OOO_TYPE_WRAPPER_FACTORY );
-
+
return true;
}
diff --git a/vcl/unx/gtk/a11y/atkcomponent.cxx b/vcl/unx/gtk/a11y/atkcomponent.cxx
index 37ef152db3c9..8b6cd3b85114 100644
--- a/vcl/unx/gtk/a11y/atkcomponent.cxx
+++ b/vcl/unx/gtk/a11y/atkcomponent.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,17 +51,17 @@ static accessibility::XAccessibleComponent*
pWrap->mpComponent = reinterpret_cast< accessibility::XAccessibleComponent * > (any.pReserved);
pWrap->mpComponent->acquire();
}
-
+
return pWrap->mpComponent;
}
-
+
return NULL;
}
/*****************************************************************************/
static awt::Point
-translatePoint( accessibility::XAccessibleComponent *pComponent,
+translatePoint( accessibility::XAccessibleComponent *pComponent,
gint x, gint y, AtkCoordType t)
{
awt::Point aOrigin( 0, 0 );
@@ -69,7 +69,7 @@ translatePoint( accessibility::XAccessibleComponent *pComponent,
aOrigin = pComponent->getLocationOnScreen();
#ifdef ENABLE_TRACING
- fprintf(stderr, "coordinates ( %u, %u ) translated to: ( %u, %u )\n",
+ fprintf(stderr, "coordinates ( %u, %u ) translated to: ( %u, %u )\n",
x, y, x - aOrigin.X, y - aOrigin.Y);
#endif
@@ -96,7 +96,7 @@ component_wrapper_grab_focus (AtkComponent *component)
{
g_warning( "Exception in grabFocus()" );
}
-
+
return FALSE;
}
@@ -118,7 +118,7 @@ component_wrapper_contains (AtkComponent *component,
{
g_warning( "Exception in containsPoint()" );
}
-
+
return FALSE;
}
@@ -133,20 +133,20 @@ component_wrapper_ref_accessible_at_point (AtkComponent *component,
try
{
accessibility::XAccessibleComponent* pComponent = getComponent( component );
-
+
if( pComponent )
{
uno::Reference< accessibility::XAccessible > xAccessible;
xAccessible = pComponent->getAccessibleAtPoint(
translatePoint( pComponent, x, y, coord_type ) );
-
+
#ifdef ENABLE_TRACING
fprintf(stderr, "getAccessibleAtPoint( %u, %u ) returned %p\n",
x, y, xAccessible.get());
-
+
uno::Reference< accessibility::XAccessibleComponent > xComponent(
xAccessible->getAccessibleContext(), uno::UNO_QUERY );
-
+
if( xComponent.is() )
{
awt::Rectangle rect = xComponent->getBounds();
@@ -158,11 +158,11 @@ component_wrapper_ref_accessible_at_point (AtkComponent *component,
return atk_object_wrapper_ref( xAccessible );
}
}
- catch( const uno::Exception &e )
+ catch( const uno::Exception &e )
{
g_warning( "Exception in getAccessibleAtPoint()" );
}
-
+
return NULL;
}
@@ -180,21 +180,21 @@ component_wrapper_get_position (AtkComponent *component,
if( pComponent )
{
awt::Point aPos;
-
+
if( coord_type == ATK_XY_SCREEN )
aPos = pComponent->getLocationOnScreen();
else
aPos = pComponent->getLocation();
-
+
*x = aPos.X;
*y = aPos.Y;
-
+
#ifdef ENABLE_TRACING
fprintf(stderr, "getLocation[OnScreen]() returned: ( %u, %u )\n", *x, *y );
#endif
}
}
- catch( const uno::Exception &e )
+ catch( const uno::Exception &e )
{
g_warning( "Exception in getLocation[OnScreen]()" );
}
@@ -215,13 +215,13 @@ component_wrapper_get_size (AtkComponent *component,
awt::Size aSize = pComponent->getSize();
*width = aSize.Width;
*height = aSize.Height;
-
+
#ifdef ENABLE_TRACING
fprintf(stderr, "getSize() returned: ( %u, %u )\n", *width, *height );
#endif
}
}
- catch( const uno::Exception &e )
+ catch( const uno::Exception &e )
{
g_warning( "Exception in getSize()" );
}
@@ -275,7 +275,7 @@ component_wrapper_get_layer (AtkComponent *component)
{
AtkRole role = atk_object_get_role( ATK_OBJECT( component ) );
AtkLayer layer = ATK_LAYER_WIDGET;
-
+
switch (role)
{
case ATK_ROLE_POPUP_MENU:
@@ -292,7 +292,7 @@ component_wrapper_get_layer (AtkComponent *component)
layer = ATK_LAYER_POPUP;
}
break;
-
+
case ATK_ROLE_LIST:
{
AtkObject * parent = atk_object_get_parent( ATK_OBJECT( component ) );
@@ -300,11 +300,11 @@ component_wrapper_get_layer (AtkComponent *component)
layer = ATK_LAYER_POPUP;
}
break;
-
+
default:
;
}
-
+
return layer;
}
diff --git a/vcl/unx/gtk/a11y/atkeditabletext.cxx b/vcl/unx/gtk/a11y/atkeditabletext.cxx
index a330bc66e8ce..ac5e791d7469 100644
--- a/vcl/unx/gtk/a11y/atkeditabletext.cxx
+++ b/vcl/unx/gtk/a11y/atkeditabletext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,17 +52,17 @@ static accessibility::XAccessibleEditableText*
pWrap->mpEditableText = reinterpret_cast< accessibility::XAccessibleEditableText * > (any.pReserved);
pWrap->mpEditableText->acquire();
}
-
+
return pWrap->mpEditableText;
}
-
+
return NULL;
}
/*****************************************************************************/
-extern "C" {
+extern "C" {
static gboolean
editable_text_wrapper_set_run_attributes( AtkEditableText *text,
diff --git a/vcl/unx/gtk/a11y/atkfactory.cxx b/vcl/unx/gtk/a11y/atkfactory.cxx
index 87dcdc46d679..64c02741e527 100644
--- a/vcl/unx/gtk/a11y/atkfactory.cxx
+++ b/vcl/unx/gtk/a11y/atkfactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,11 +40,11 @@ using namespace ::com::sun::star;
extern "C" {
/*
- * Instances of this dummy object class are returned whenever we have to
+ * Instances of this dummy object class are returned whenever we have to
* create an AtkObject, but can't touch the OOo object anymore since it
* is already disposed.
*/
-
+
static AtkStateSet *
noop_wrapper_ref_state_set( AtkObject * )
{
@@ -80,12 +80,12 @@ atk_noop_object_wrapper_get_type(void)
(GInstanceInitFunc) NULL,
NULL
} ;
-
+
type = g_type_register_static (ATK_TYPE_OBJECT, "OOoAtkNoOpObj", &typeInfo, (GTypeFlags)0) ;
}
return type;
}
-
+
AtkObject*
atk_noop_object_wrapper_new()
{
@@ -114,22 +114,22 @@ static AtkObject*
wrapper_factory_create_accessible( GObject *obj )
{
GtkWidget* parent_widget = gtk_widget_get_parent( GTK_WIDGET( obj ) );
-
+
// gail_container_real_remove_gtk tries to re-instanciate an accessible
// for a widget that is about to vanish ..
if( ! parent_widget )
return atk_noop_object_wrapper_new();
-
+
GtkSalFrame* pFrame = GtkSalFrame::getFromWindow( GTK_WINDOW( parent_widget ) );
g_return_val_if_fail( pFrame != NULL, NULL );
-
+
Window* pFrameWindow = pFrame->GetWindow();
if( pFrameWindow )
{
Window* pWindow = pFrameWindow;
// skip accessible objects already exposed by the frame objects
- if( WINDOW_BORDERWINDOW == pWindow->GetType() )
+ if( WINDOW_BORDERWINDOW == pWindow->GetType() )
pWindow = pFrameWindow->GetAccessibleChildWindow(0);
if( pWindow )
@@ -148,7 +148,7 @@ wrapper_factory_create_accessible( GObject *obj )
}
}
}
-
+
return NULL;
}
@@ -175,9 +175,9 @@ wrapper_factory_get_type (void)
t = g_type_register_static (
ATK_TYPE_OBJECT_FACTORY, "OOoAtkObjectWrapperFactory",
&tinfo, (GTypeFlags) 0);
- }
-
- return t;
+ }
+
+ return t;
}
} // extern C
diff --git a/vcl/unx/gtk/a11y/atkfactory.hxx b/vcl/unx/gtk/a11y/atkfactory.hxx
index acb7b026f3a8..b48b3d9349de 100644
--- a/vcl/unx/gtk/a11y/atkfactory.hxx
+++ b/vcl/unx/gtk/a11y/atkfactory.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
#define OOO_TYPE_WRAPPER_FACTORY wrapper_factory_get_type()
extern "C" {
-
+
GType wrapper_factory_get_type (void);
} // extern "C"
diff --git a/vcl/unx/gtk/a11y/atkhypertext.cxx b/vcl/unx/gtk/a11y/atkhypertext.cxx
index b2c7aca857f4..7673b05c59f0 100644
--- a/vcl/unx/gtk/a11y/atkhypertext.cxx
+++ b/vcl/unx/gtk/a11y/atkhypertext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,7 +37,7 @@
using namespace ::com::sun::star;
-
+
// ---------------------- AtkHyperlink ----------------------
typedef struct {
@@ -99,7 +99,7 @@ hyper_link_get_end_index( AtkHyperlink *pLink )
{
try {
return getHyperlink( pLink )->getEndIndex();
- }
+ }
catch(const uno::Exception& e) {
}
return -1;
@@ -109,7 +109,7 @@ hyper_link_get_start_index( AtkHyperlink *pLink )
{
try {
return getHyperlink( pLink )->getStartIndex();
- }
+ }
catch(const uno::Exception& e) {
}
return -1;
@@ -216,10 +216,10 @@ static accessibility::XAccessibleHypertext*
pWrap->mpHypertext = reinterpret_cast< accessibility::XAccessibleHypertext * > (any.pReserved);
pWrap->mpHypertext->acquire();
}
-
+
return pWrap->mpHypertext;
}
-
+
return NULL;
}
@@ -244,7 +244,7 @@ hypertext_get_link( AtkHypertext *hypertext,
catch(const uno::Exception& e) {
g_warning( "Exception in getHyperLink()" );
}
-
+
return NULL;
}
@@ -259,7 +259,7 @@ hypertext_get_n_links( AtkHypertext *hypertext )
catch(const uno::Exception& e) {
g_warning( "Exception in getHyperLinkCount()" );
}
-
+
return 0;
}
@@ -275,7 +275,7 @@ hypertext_get_link_index( AtkHypertext *hypertext,
catch(const uno::Exception& e) {
g_warning( "Exception in getHyperLinkIndex()" );
}
-
+
return 0;
}
diff --git a/vcl/unx/gtk/a11y/atkimage.cxx b/vcl/unx/gtk/a11y/atkimage.cxx
index 04263fd72906..fd5baa5d196e 100644
--- a/vcl/unx/gtk/a11y/atkimage.cxx
+++ b/vcl/unx/gtk/a11y/atkimage.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,10 +61,10 @@ static accessibility::XAccessibleImage*
pWrap->mpImage = reinterpret_cast< accessibility::XAccessibleImage * > (any.pReserved);
pWrap->mpImage->acquire();
}
-
+
return pWrap->mpImage;
}
-
+
return NULL;
}
@@ -75,13 +75,13 @@ image_get_image_description( AtkImage *image )
{
try {
accessibility::XAccessibleImage* pImage = getImage( image );
- if( pImage )
+ if( pImage )
return getAsConst( pImage->getAccessibleImageDescription() );
}
catch(const uno::Exception& e) {
g_warning( "Exception in getAccessibleImageDescription()" );
}
-
+
return NULL;
}
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx
index 3adca0f55279..513c80aac728 100644
--- a/vcl/unx/gtk/a11y/atklistener.cxx
+++ b/vcl/unx/gtk/a11y/atklistener.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/gtk/a11y/atklistener.hxx b/vcl/unx/gtk/a11y/atklistener.hxx
index dbac3599cd4b..ae3dad6c9c03 100644
--- a/vcl/unx/gtk/a11y/atklistener.hxx
+++ b/vcl/unx/gtk/a11y/atklistener.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,15 +42,15 @@ class AtkListener : public ::cppu::WeakImplHelper1< ::com::sun::star::accessibil
{
public:
AtkListener(AtkObjectWrapper * pWrapper);
-
+
// XEventListener
- virtual void disposing( const ::com::sun::star::lang::EventObject& Source )
+ virtual void disposing( const ::com::sun::star::lang::EventObject& Source )
throw (::com::sun::star::uno::RuntimeException);
// XAccessibleEventListener
- virtual void notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent )
+ virtual void notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent )
throw( ::com::sun::star::uno::RuntimeException );
-
+
AtkObjectWrapper *mpWrapper;
AccessibleVector m_aChildList;
@@ -60,20 +60,20 @@ private:
// Updates the child list held to provide the old IndexInParent on children_changed::remove
void updateChildList(::com::sun::star::accessibility::XAccessibleContext* pContext);
-
+
// Process CHILD_EVENT notifications with a new child added
void handleChildAdded(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >& rxParent,
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible>& rxChild);
-
+
// Process CHILD_EVENT notifications with a child removed
void handleChildRemoved(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >& rxParent,
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible>& rxChild);
-
+
// Process INVALIDATE_ALL_CHILDREN notification
void handleInvalidateChildren(
- const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >& rxParent);
+ const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext >& rxParent);
};
#endif /* _ATK_LISTENER_HXX_ */
diff --git a/vcl/unx/gtk/a11y/atkregistry.cxx b/vcl/unx/gtk/a11y/atkregistry.cxx
index 396683e5fd8c..6f43b27cea81 100644
--- a/vcl/unx/gtk/a11y/atkregistry.cxx
+++ b/vcl/unx/gtk/a11y/atkregistry.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@ static GHashTable *uno_to_gobject = NULL;
/*****************************************************************************/
-AtkObject *
+AtkObject *
ooo_wrapper_registry_get(const Reference< XAccessible >& rxAccessible)
{
if( uno_to_gobject )
@@ -52,7 +52,7 @@ ooo_wrapper_registry_get(const Reference< XAccessible >& rxAccessible)
/*****************************************************************************/
-void
+void
ooo_wrapper_registry_add(const Reference< XAccessible >& rxAccessible, AtkObject *obj)
{
if( !uno_to_gobject )
diff --git a/vcl/unx/gtk/a11y/atkregistry.hxx b/vcl/unx/gtk/a11y/atkregistry.hxx
index b3a59b6db8d0..f9cecae3fb51 100644
--- a/vcl/unx/gtk/a11y/atkregistry.hxx
+++ b/vcl/unx/gtk/a11y/atkregistry.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/gtk/a11y/atkselection.cxx b/vcl/unx/gtk/a11y/atkselection.cxx
index 127730f0a458..6300ec4f3776 100644
--- a/vcl/unx/gtk/a11y/atkselection.cxx
+++ b/vcl/unx/gtk/a11y/atkselection.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,10 +49,10 @@ static accessibility::XAccessibleSelection*
pWrap->mpSelection = reinterpret_cast< accessibility::XAccessibleSelection * > (any.pReserved);
pWrap->mpSelection->acquire();
}
-
+
return pWrap->mpSelection;
}
-
+
return NULL;
}
@@ -73,7 +73,7 @@ selection_add_selection( AtkSelection *selection,
catch(const uno::Exception& e) {
g_warning( "Exception in selectAccessibleChild()" );
}
-
+
return FALSE;
}
@@ -91,7 +91,7 @@ selection_clear_selection( AtkSelection *selection )
catch(const uno::Exception& e) {
g_warning( "Exception in selectAccessibleChild()" );
}
-
+
return FALSE;
}
@@ -107,7 +107,7 @@ selection_ref_selection( AtkSelection *selection,
catch(const uno::Exception& e) {
g_warning( "Exception in getSelectedAccessibleChild()" );
}
-
+
return NULL;
}
@@ -122,7 +122,7 @@ selection_get_selection_count( AtkSelection *selection)
catch(const uno::Exception& e) {
g_warning( "Exception in getSelectedAccessibleChildCount()" );
}
-
+
return -1;
}
@@ -157,7 +157,7 @@ selection_remove_selection( AtkSelection *selection,
catch(const uno::Exception& e) {
g_warning( "Exception in getSelectedAccessibleChildCount()" );
}
-
+
return FALSE;
}
@@ -175,7 +175,7 @@ selection_select_all_selection( AtkSelection *selection)
catch(const uno::Exception& e) {
g_warning( "Exception in getSelectedAccessibleChildCount()" );
}
-
+
return FALSE;
}
diff --git a/vcl/unx/gtk/a11y/atktable.cxx b/vcl/unx/gtk/a11y/atktable.cxx
index fb460f45da53..b9c41e7dc7f9 100644
--- a/vcl/unx/gtk/a11y/atktable.cxx
+++ b/vcl/unx/gtk/a11y/atktable.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,10 +45,10 @@ atk_object_wrapper_conditional_ref( const uno::Reference< accessibility::XAccess
#ifdef ENABLE_TRACING
fprintf( stderr, ": %p\n", rxAccessible.get() );
#endif
-
+
if( rxAccessible.is() )
return atk_object_wrapper_ref( rxAccessible );
-
+
return NULL;
}
@@ -80,10 +80,10 @@ static accessibility::XAccessibleTable*
pWrap->mpTable = reinterpret_cast< accessibility::XAccessibleTable * > (any.pReserved);
pWrap->mpTable->acquire();
}
-
+
return pWrap->mpTable;
}
-
+
return NULL;
}
@@ -98,20 +98,20 @@ table_wrapper_ref_at (AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
fprintf(stderr, "getAccessibleCellAt( %u, %u ) returns", row, column );
-
+
if( column >= 255 )
fprintf(stderr, "getAccessibleCellAt( %u, %u ) returns", row, column );
-
+
#endif
if( pTable )
return atk_object_wrapper_conditional_ref( pTable->getAccessibleCellAt( row, column ) );
}
-
+
catch(const uno::Exception& e) {
g_warning( "Exception in getAccessibleCellAt()" );
}
@@ -128,13 +128,13 @@ table_wrapper_get_index_at (AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "getAccessibleIndex( %u, %u ) returns %u\n",
+ fprintf(stderr, "getAccessibleIndex( %u, %u ) returns %u\n",
row, column, pTable->getAccessibleIndex( row, column ) );
#endif
-
+
if( pTable )
return pTable->getAccessibleIndex( row, column );
}
@@ -153,13 +153,13 @@ table_wrapper_get_column_at_index (AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "getAccessibleColumn( %u ) returns %u\n",
+ fprintf(stderr, "getAccessibleColumn( %u ) returns %u\n",
nIndex, pTable->getAccessibleColumn( nIndex ) );
#endif
-
+
if( pTable )
return pTable->getAccessibleColumn( nIndex );
}
@@ -178,10 +178,10 @@ table_wrapper_get_row_at_index( AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "getAccessibleRow( %u ) returns %u\n",
+ fprintf(stderr, "getAccessibleRow( %u ) returns %u\n",
nIndex, pTable->getAccessibleRow( nIndex ) );
#endif
@@ -205,7 +205,7 @@ table_wrapper_get_n_columns( AtkTable *table )
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "XAccessibleTable::getAccessibleColumnCount returns %u\n",
+ fprintf(stderr, "XAccessibleTable::getAccessibleColumnCount returns %u\n",
pTable->getAccessibleColumnCount() );
#endif
@@ -226,10 +226,10 @@ table_wrapper_get_n_rows( AtkTable *table )
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "getAccessibleRowCount() returns %u\n",
+ fprintf(stderr, "getAccessibleRowCount() returns %u\n",
pTable->getAccessibleRowCount() );
#endif
@@ -252,10 +252,10 @@ table_wrapper_get_column_extent_at( AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "getAccessibleColumnExtentAt( %u, %u ) returns %u\n",
+ fprintf(stderr, "getAccessibleColumnExtentAt( %u, %u ) returns %u\n",
row, column, pTable->getAccessibleColumnExtentAt( row, column ) );
#endif
@@ -278,10 +278,10 @@ table_wrapper_get_row_extent_at( AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "getAccessibleRowExtentAt( %u, %u ) returns %u\n",
+ fprintf(stderr, "getAccessibleRowExtentAt( %u, %u ) returns %u\n",
row, column, pTable->getAccessibleRowExtentAt( row, column ) );
#endif
@@ -302,7 +302,7 @@ table_wrapper_get_caption( AtkTable *table )
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
fprintf(stderr, "getAccessibleCaption() returns" );
@@ -311,7 +311,7 @@ table_wrapper_get_caption( AtkTable *table )
if( pTable )
return atk_object_wrapper_conditional_ref( pTable->getAccessibleCaption() );
}
-
+
catch(const uno::Exception& e) {
g_warning( "Exception in getAccessibleCaption()" );
}
@@ -330,7 +330,7 @@ table_wrapper_get_row_description( AtkTable *table,
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "getAccessibleRowDescription( %u ) returns %s\n",
+ fprintf(stderr, "getAccessibleRowDescription( %u ) returns %s\n",
row, getAsConst( pTable->getAccessibleRowDescription( row ) ) );
#endif
@@ -352,10 +352,10 @@ table_wrapper_get_column_description( AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "getAccessibleColumnDescription( %u ) returns %s\n",
+ fprintf(stderr, "getAccessibleColumnDescription( %u ) returns %s\n",
column, getAsConst( pTable->getAccessibleColumnDescription( column ) ) );
#endif
@@ -408,7 +408,7 @@ table_wrapper_get_column_header( AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
if( pTable )
{
uno::Reference< accessibility::XAccessibleTable > xColumnHeaders( pTable->getAccessibleColumnHeaders() );
@@ -439,7 +439,7 @@ table_wrapper_get_summary( AtkTable *table )
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
fprintf(stderr, "getAccessibleSummary() returns" );
@@ -484,12 +484,12 @@ table_wrapper_get_selected_columns( AtkTable *table,
*pSelected = NULL;
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
fprintf(stderr, "getSelectedAccessibleColumns() \n" );
#endif
-
+
if( pTable )
return convertToGIntArray( pTable->getSelectedAccessibleColumns(), pSelected );
}
@@ -509,12 +509,12 @@ table_wrapper_get_selected_rows( AtkTable *table,
*pSelected = NULL;
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
fprintf(stderr, "getSelectedAccessibleRows() \n" );
#endif
-
+
if( pTable )
return convertToGIntArray( pTable->getSelectedAccessibleRows(), pSelected );
}
@@ -533,13 +533,13 @@ table_wrapper_is_column_selected( AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "isAccessibleColumnSelected( %u ) returns %s\n",
+ fprintf(stderr, "isAccessibleColumnSelected( %u ) returns %s\n",
column, pTable->isAccessibleColumnSelected( column ) ? "true" : "false" );
#endif
-
+
if( pTable )
return pTable->isAccessibleColumnSelected( column );
}
@@ -558,13 +558,13 @@ table_wrapper_is_row_selected( AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "isAccessibleRowSelected( %u ) returns %s\n",
+ fprintf(stderr, "isAccessibleRowSelected( %u ) returns %s\n",
row, pTable->isAccessibleRowSelected( row ) ? "true" : "false" );
#endif
-
+
if( pTable )
return pTable->isAccessibleRowSelected( row );
}
@@ -584,13 +584,13 @@ table_wrapper_is_selected( AtkTable *table,
{
try {
accessibility::XAccessibleTable* pTable = getTable( table );
-
+
#ifdef ENABLE_TRACING
if( pTable )
- fprintf(stderr, "isAccessibleSelected( %u, %u ) returns %s\n",
+ fprintf(stderr, "isAccessibleSelected( %u, %u ) returns %s\n",
row, column, pTable->isAccessibleSelected( row , column ) ? "true" : "false" );
#endif
-
+
if( pTable )
return pTable->isAccessibleSelected( row, column );
}
@@ -691,11 +691,11 @@ tableIfaceInit (AtkTableIface *iface)
g_return_if_fail (iface != NULL);
iface->ref_at = table_wrapper_ref_at;
- iface->get_n_rows = table_wrapper_get_n_rows;
- iface->get_n_columns = table_wrapper_get_n_columns;
- iface->get_index_at = table_wrapper_get_index_at;
- iface->get_column_at_index = table_wrapper_get_column_at_index;
- iface->get_row_at_index = table_wrapper_get_row_at_index;
+ iface->get_n_rows = table_wrapper_get_n_rows;
+ iface->get_n_columns = table_wrapper_get_n_columns;
+ iface->get_index_at = table_wrapper_get_index_at;
+ iface->get_column_at_index = table_wrapper_get_column_at_index;
+ iface->get_row_at_index = table_wrapper_get_row_at_index;
iface->is_row_selected = table_wrapper_is_row_selected;
iface->is_selected = table_wrapper_is_selected;
iface->get_selected_rows = table_wrapper_get_selected_rows;
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx
index 9896456f91ec..3cb121109a12 100644
--- a/vcl/unx/gtk/a11y/atkutil.cxx
+++ b/vcl/unx/gtk/a11y/atkutil.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/gtk/a11y/atkutil.hxx b/vcl/unx/gtk/a11y/atkutil.hxx
index c996b955d8c1..bcf146b2fd6d 100644
--- a/vcl/unx/gtk/a11y/atkutil.hxx
+++ b/vcl/unx/gtk/a11y/atkutil.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
************************************************************************/
#ifndef __ATK_UTIL_HXX__
-#define __ATK_UTIL_HXX__
+#define __ATK_UTIL_HXX__
#include <atk/atk.h>
diff --git a/vcl/unx/gtk/a11y/atkvalue.cxx b/vcl/unx/gtk/a11y/atkvalue.cxx
index 19e92cb9d3b1..0fbb6152c40a 100644
--- a/vcl/unx/gtk/a11y/atkvalue.cxx
+++ b/vcl/unx/gtk/a11y/atkvalue.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,10 +50,10 @@ static accessibility::XAccessibleValue*
pWrap->mpValue = reinterpret_cast< accessibility::XAccessibleValue * > (any.pReserved);
pWrap->mpValue->acquire();
}
-
+
return pWrap->mpValue;
}
-
+
return NULL;
}
diff --git a/vcl/unx/gtk/a11y/atkwindow.cxx b/vcl/unx/gtk/a11y/atkwindow.cxx
index be6d646fdc29..4a6b63b5084b 100644
--- a/vcl/unx/gtk/a11y/atkwindow.cxx
+++ b/vcl/unx/gtk/a11y/atkwindow.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,7 +28,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_vcl.hxx"
-
+
#include <plugins/gtk/gtkframe.hxx>
#include <vcl/window.hxx>
#include "vcl/popupmenuwindow.hxx"
@@ -46,12 +46,12 @@ extern "C" {
static void (* window_real_initialize) (AtkObject *obj, gpointer data) = NULL;
static void (* window_real_finalize) (GObject *obj) = NULL;
-
+
static void
init_from_window( AtkObject *accessible, Window *pWindow )
{
static AtkRole aDefaultRole = ATK_ROLE_INVALID;
-
+
// Special role for sub-menu and combo-box popups that are exposed directly
// by their parents already.
if( aDefaultRole == ATK_ROLE_INVALID )
@@ -73,7 +73,7 @@ init_from_window( AtkObject *accessible, Window *pWindow )
case AccessibleRole::FRAME:
role = ATK_ROLE_FRAME;
break;
-
+
/* Ignore window objects for sub-menus, combo- and list boxes,
* which are exposed as children of their parents.
*/
@@ -81,13 +81,13 @@ init_from_window( AtkObject *accessible, Window *pWindow )
{
USHORT type = WINDOW_WINDOW;
bool parentIsMenuFloatingWindow = false;
-
+
Window *pParent = pWindow->GetParent();
if( pParent ) {
type = pParent->GetType();
parentIsMenuFloatingWindow = ( TRUE == pParent->IsMenuFloatingWindow() );
}
-
+
if( (WINDOW_LISTBOX != type) && (WINDOW_COMBOBOX != type) &&
(WINDOW_MENUBARWINDOW != type) && ! parentIsMenuFloatingWindow )
{
@@ -95,7 +95,7 @@ init_from_window( AtkObject *accessible, Window *pWindow )
}
}
break;
-
+
default:
{
Window *pChild = pWindow->GetChild( 0 );
@@ -125,10 +125,10 @@ init_from_window( AtkObject *accessible, Window *pWindow )
accessible->role = role;
}
-
-/*****************************************************************************/
-
-static gint
+
+/*****************************************************************************/
+
+static gint
ooo_window_wrapper_clear_focus(gpointer)
{
atk_focus_tracker_notify( NULL );
@@ -137,7 +137,7 @@ ooo_window_wrapper_clear_focus(gpointer)
/*****************************************************************************/
-static gboolean
+static gboolean
ooo_window_wrapper_real_focus_gtk (GtkWidget *, GdkEventFocus *)
{
g_idle_add( ooo_window_wrapper_clear_focus, NULL );
@@ -191,7 +191,7 @@ ooo_window_wrapper_real_initialize(AtkObject *obj, gpointer data)
if( pWindow )
{
init_from_window( obj, pWindow );
-
+
Reference< XAccessible > xAccessible( pWindow->GetAccessible(true) );
/* We need the wrapper object for the top-level XAccessible to be
@@ -221,11 +221,11 @@ ooo_window_wrapper_real_initialize(AtkObject *obj, gpointer data)
}
}
}
-
+
g_signal_connect_after( GTK_WIDGET( data ), "focus-out-event",
G_CALLBACK (ooo_window_wrapper_real_focus_gtk),
NULL);
-
+
if( obj->role == ATK_ROLE_TOOL_TIP )
{
g_signal_connect_after( GTK_WIDGET( data ), "map-event",
@@ -254,18 +254,18 @@ ooo_window_wrapper_class_init (AtkObjectClass *klass, gpointer)
AtkObjectClass *atk_class;
GObjectClass *gobject_class;
gpointer data;
-
- /*
+
+ /*
* Patch the gobject vtable of GailWindow to refer to our instance of
* "initialize".
*/
-
+
data = g_type_class_peek_parent( klass );
atk_class = ATK_OBJECT_CLASS (data);
-
+
window_real_initialize = atk_class->initialize;
atk_class->initialize = ooo_window_wrapper_real_initialize;
-
+
gobject_class = G_OBJECT_CLASS (data);
window_real_finalize = gobject_class->finalize;
@@ -276,7 +276,7 @@ ooo_window_wrapper_class_init (AtkObjectClass *klass, gpointer)
/*****************************************************************************/
-GType
+GType
ooo_window_wrapper_get_type (void)
{
static GType type = 0;
@@ -284,16 +284,16 @@ ooo_window_wrapper_get_type (void)
if (!type)
{
GType parent_type = g_type_from_name( "GailWindow" );
-
+
if( ! parent_type )
{
g_warning( "Unknown type: GailWindow" );
parent_type = ATK_TYPE_OBJECT;
}
-
+
GTypeQuery type_query;
g_type_query( parent_type, &type_query );
-
+
static const GTypeInfo typeInfo =
{
type_query.class_size,
@@ -307,10 +307,10 @@ ooo_window_wrapper_get_type (void)
(GInstanceInitFunc) NULL,
NULL
} ;
-
+
type = g_type_register_static (parent_type, "OOoWindowAtkObject", &typeInfo, (GTypeFlags)0) ;
}
-
+
return type;
}
@@ -320,13 +320,13 @@ void restore_gail_window_vtable (void)
gpointer data;
GType type = g_type_from_name( "GailWindow" );
-
+
if( type == G_TYPE_INVALID )
return;
-
+
data = g_type_class_peek( type );
atk_class = ATK_OBJECT_CLASS (data);
-
+
atk_class->initialize = window_real_initialize;
}
diff --git a/vcl/unx/gtk/a11y/atkwindow.hxx b/vcl/unx/gtk/a11y/atkwindow.hxx
index d0bfe41e1601..301dc8f3d218 100644
--- a/vcl/unx/gtk/a11y/atkwindow.hxx
+++ b/vcl/unx/gtk/a11y/atkwindow.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
************************************************************************/
#ifndef __ATK_WINDOW_HXX__
-#define __ATK_WINDOW_HXX__
+#define __ATK_WINDOW_HXX__
#include <atk/atk.h>
diff --git a/vcl/unx/gtk/a11y/atkwrapper.hxx b/vcl/unx/gtk/a11y/atkwrapper.hxx
index 94a8b1981688..0433e11fa066 100644
--- a/vcl/unx/gtk/a11y/atkwrapper.hxx
+++ b/vcl/unx/gtk/a11y/atkwrapper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ struct _AtkObjectWrapper
::com::sun::star::accessibility::XAccessibleTextMarkup *mpTextMarkup;
::com::sun::star::accessibility::XAccessibleTextAttributes *mpTextAttributes;
::com::sun::star::accessibility::XAccessibleValue *mpValue;
-
+
AtkObject *child_about_to_be_removed;
gint index_of_child_about_to_be_removed;
// ::rtl::OString * m_pKeyBindings
@@ -86,7 +86,7 @@ GType atk_object_wrapper_get_type (void) G_GNUC_CONST;
AtkObject * atk_object_wrapper_ref(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxAccessible,
bool create = true );
-
+
AtkObject * atk_object_wrapper_new(
const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxAccessible,
AtkObject* parent = NULL );
@@ -121,7 +121,7 @@ OUStringToGChar(const rtl::OUString& rString )
return g_strdup( aUtf8 );
}
-#define OUStringToConstGChar( string ) rtl::OUStringToOString( string, RTL_TEXTENCODING_UTF8 ).getStr()
+#define OUStringToConstGChar( string ) rtl::OUStringToOString( string, RTL_TEXTENCODING_UTF8 ).getStr()
#endif /* __ATK_WRAPPER_HXX__ */
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index 950dbcbea0b6..cf21f6e73ffc 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -274,7 +274,7 @@ void GtkSalDisplay::initScreen( int nScreen ) const
ScreenData& rSD = const_cast<ScreenData&>(m_aScreens[nScreen]);
if( rSD.m_bInit )
return;
-
+
// choose visual for screen
SalDisplay::initScreen( nScreen );
// now set a gdk default colormap matching the chosen visual to the screen
@@ -518,7 +518,7 @@ class GtkXLib : public SalXLib
GtkSalDisplay *m_pGtkSalDisplay;
std::list<GSource *> m_aSources;
GSource *m_pTimeout;
- GSource *m_pUserEvent;
+ GSource *m_pUserEvent;
oslMutex m_aDispatchMutex;
oslCondition m_aDispatchCondition;
XIOErrorHandler m_aOrigGTKXIOErrorHandler;
@@ -533,9 +533,9 @@ public:
virtual void Init();
virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
virtual void Insert( int fd, void* data,
- YieldFunc pending,
- YieldFunc queued,
- YieldFunc handle );
+ YieldFunc pending,
+ YieldFunc queued,
+ YieldFunc handle );
virtual void Remove( int fd );
virtual void StartTimer( ULONG nMS );
@@ -629,7 +629,7 @@ void GtkXLib::Init()
rtl::OString aPrgName = rtl::OUStringToOString(aAppName, aEnc);
g_set_prgname(aPrgName);
}
-
+
// init gtk/gdk
gtk_init_check( &nParams, &pCmdLineAry );
@@ -692,7 +692,7 @@ void GtkXLib::Init()
m_pGtkSalDisplay->SetKbdExtension( pKbdExtension );
g_signal_connect( G_OBJECT(gdk_keymap_get_default()), "keys_changed", G_CALLBACK(signalKeysChanged), m_pGtkSalDisplay );
-
+
// add signal handler to notify screen size changes
int nScreens = gdk_display_get_n_screens( pGdkDisp );
for( int n = 0; n < nScreens; n++ )
@@ -756,7 +756,7 @@ void GtkXLib::StartTimer( ULONG nMS )
g_source_set_callback (m_pTimeout, call_timeoutFn,
(gpointer) this, NULL);
g_source_attach (m_pTimeout, g_main_context_default ());
-
+
SalXLib::StartTimer( nMS );
}
@@ -837,7 +837,7 @@ void GtkXLib::Yield( bool bWait, bool bHandleAllCurrentEvents )
* another thread in in there. Having only one yieldin thread actually dispatch
* fits the vcl event model (see e.g. the generic plugin).
*/
-
+
bool bDispatchThread = false;
gboolean wasEvent = FALSE;
{
@@ -848,7 +848,7 @@ void GtkXLib::Yield( bool bWait, bool bHandleAllCurrentEvents )
else if( ! bWait )
return; // someone else is waiting already, return
-
+
if( bDispatchThread )
{
int nMaxEvents = bHandleAllCurrentEvents ? 100 : 1;
diff --git a/vcl/unx/gtk/app/gtkinst.cxx b/vcl/unx/gtk/app/gtkinst.cxx
index 159820ec3dbd..3eb410e0dbcd 100644
--- a/vcl/unx/gtk/app/gtkinst.cxx
+++ b/vcl/unx/gtk/app/gtkinst.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -96,7 +96,7 @@ void GtkHookedYieldMutex::release()
SalYieldMutex::release();
}
-extern "C"
+extern "C"
{
#define GET_YIELD_MUTEX() static_cast<GtkHookedYieldMutex*>(GetSalData()->m_pInstance->GetYieldMutex())
static void GdkThreadsEnter( void )
@@ -161,7 +161,7 @@ extern "C"
pYieldMutex = new GtkHookedYieldMutex();
else
pYieldMutex = new GtkYieldMutex();
-
+
gdk_threads_init();
GtkInstance* pInstance = new GtkInstance( pYieldMutex );
@@ -205,7 +205,7 @@ SalObject* GtkInstance::CreateObject( SalFrame* pParent, SystemWindowData* pWind
// so we need the X11SalObject in that case
if( pWindowData )
return X11SalObject::CreateObject( pParent, pWindowData, bShow );
-
+
return new GtkSalObject( static_cast<GtkSalFrame*>(pParent), bShow );
}
@@ -224,8 +224,8 @@ void GtkInstance::AddToRecentDocumentList(const rtl::OUString& rFileUrl, const r
#else
static getDefaultFnc sym_gtk_recent_manager_get_default =
(getDefaultFnc)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gtk_recent_manager_get_default" );
-
- static addItemFnc sym_gtk_recent_manager_add_item =
+
+ static addItemFnc sym_gtk_recent_manager_add_item =
(addItemFnc)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gtk_recent_manager_add_item");
if (sym_gtk_recent_manager_get_default && sym_gtk_recent_manager_add_item)
{
@@ -307,13 +307,13 @@ sal_Bool GtkYieldMutex::tryToAcquire()
// how to we do a try_lock without having a gdk_threads_try_enter ?
if( ! g_mutex_trylock( gdk_threads_mutex ) )
return sal_False;
-
+
// obtained gdk mutex, now lock count is one by definition
SolarMutexObject::acquire();
mnCount = 1;
mnThreadId = aCurrentThread;
SolarMutexObject::release();
-
+
return sal_True;
}
diff --git a/vcl/unx/gtk/app/gtksys.cxx b/vcl/unx/gtk/app/gtksys.cxx
index 91d40f0e3b16..04dc1269a04a 100644
--- a/vcl/unx/gtk/app/gtksys.cxx
+++ b/vcl/unx/gtk/app/gtksys.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 15f0d7f14258..0dcaf0c9caa8 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -69,23 +69,23 @@ class NWPixmapCacheList;
class NWPixmapCache;
struct NWFWidgetData
{
- GtkWidget * gCacheWindow;
- GtkWidget * gDumbContainer;
-
- GtkWidget * gBtnWidget;
- GtkWidget * gRadioWidget;
- GtkWidget * gRadioWidgetSibling;
- GtkWidget * gCheckWidget;
- GtkWidget * gScrollHorizWidget;
- GtkWidget * gScrollVertWidget;
- GtkWidget * gArrowWidget;
- GtkWidget * gDropdownWidget;
- GtkWidget * gEditBoxWidget;
- GtkWidget * gSpinButtonWidget;
- GtkWidget * gNotebookWidget;
- GtkWidget * gOptionMenuWidget;
- GtkWidget * gComboWidget;
- GtkWidget * gScrolledWindowWidget;
+ GtkWidget * gCacheWindow;
+ GtkWidget * gDumbContainer;
+
+ GtkWidget * gBtnWidget;
+ GtkWidget * gRadioWidget;
+ GtkWidget * gRadioWidgetSibling;
+ GtkWidget * gCheckWidget;
+ GtkWidget * gScrollHorizWidget;
+ GtkWidget * gScrollVertWidget;
+ GtkWidget * gArrowWidget;
+ GtkWidget * gDropdownWidget;
+ GtkWidget * gEditBoxWidget;
+ GtkWidget * gSpinButtonWidget;
+ GtkWidget * gNotebookWidget;
+ GtkWidget * gOptionMenuWidget;
+ GtkWidget * gComboWidget;
+ GtkWidget * gScrolledWindowWidget;
GtkWidget * gToolbarWidget;
GtkWidget * gToolbarButtonWidget;
GtkWidget * gToolbarToggleWidget;
@@ -149,29 +149,29 @@ struct NWFWidgetData
// Keep a hash table of Widgets->default flags so that we can
// easily and quickly reset each to a default state before using
// them
-static std::hash_map<long, guint> gWidgetDefaultFlags;
+static std::hash_map<long, guint> gWidgetDefaultFlags;
static std::vector<NWFWidgetData> gWidgetData;
-static const GtkBorder aDefDefBorder = { 1, 1, 1, 1 };
+static const GtkBorder aDefDefBorder = { 1, 1, 1, 1 };
// Some GTK defaults
-#define MIN_ARROW_SIZE 11
-#define BTN_CHILD_SPACING 1
-#define MIN_SPIN_ARROW_WIDTH 6
-
-
-static void NWEnsureGTKRadio ( int nScreen );
-static void NWEnsureGTKButton ( int nScreen );
-static void NWEnsureGTKCheck ( int nScreen );
-static void NWEnsureGTKScrollbars ( int nScreen );
-static void NWEnsureGTKArrow ( int nScreen );
-static void NWEnsureGTKEditBox ( int nScreen );
-static void NWEnsureGTKSpinButton ( int nScreen );
-static void NWEnsureGTKNotebook ( int nScreen );
-static void NWEnsureGTKOptionMenu ( int nScreen );
-static void NWEnsureGTKCombo ( int nScreen );
-static void NWEnsureGTKScrolledWindow ( int nScreen );
-static void NWEnsureGTKToolbar ( int nScreen );
+#define MIN_ARROW_SIZE 11
+#define BTN_CHILD_SPACING 1
+#define MIN_SPIN_ARROW_WIDTH 6
+
+
+static void NWEnsureGTKRadio ( int nScreen );
+static void NWEnsureGTKButton ( int nScreen );
+static void NWEnsureGTKCheck ( int nScreen );
+static void NWEnsureGTKScrollbars ( int nScreen );
+static void NWEnsureGTKArrow ( int nScreen );
+static void NWEnsureGTKEditBox ( int nScreen );
+static void NWEnsureGTKSpinButton ( int nScreen );
+static void NWEnsureGTKNotebook ( int nScreen );
+static void NWEnsureGTKOptionMenu ( int nScreen );
+static void NWEnsureGTKCombo ( int nScreen );
+static void NWEnsureGTKScrolledWindow ( int nScreen );
+static void NWEnsureGTKToolbar ( int nScreen );
static void NWEnsureGTKMenubar ( int nScreen );
static void NWEnsureGTKMenu ( int nScreen );
static void NWEnsureGTKTooltip ( int nScreen );
@@ -230,7 +230,7 @@ static Rectangle NWGetToolbarRect( int nScreen,
const OUString& rCaption );
//---
-static Rectangle NWGetScrollButtonRect( int nScreen, ControlPart nPart, Rectangle aAreaRect );
+static Rectangle NWGetScrollButtonRect( int nScreen, ControlPart nPart, Rectangle aAreaRect );
//---
/*********************************************************
@@ -383,10 +383,10 @@ void NWPixmapCacheList::ThemeChanged( )
*********************************************************/
inline void NW_gtk_border_set_from_border( GtkBorder& aDst, const GtkBorder * pSrc )
{
- aDst.left = pSrc->left;
- aDst.top = pSrc->top;
- aDst.right = pSrc->right;
- aDst.bottom = pSrc->bottom;
+ aDst.left = pSrc->left;
+ aDst.top = pSrc->top;
+ aDst.right = pSrc->right;
+ aDst.bottom = pSrc->bottom;
}
@@ -539,40 +539,40 @@ void GtkSalGraphics::copyBits( const SalTwoRect* pPosAry,
BOOL GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nPart )
{
if (
- ((nType==CTRL_PUSHBUTTON) && (nPart==PART_ENTIRE_CONTROL)) ||
- ((nType==CTRL_RADIOBUTTON) && (nPart==PART_ENTIRE_CONTROL)) ||
- ((nType==CTRL_CHECKBOX) && (nPart==PART_ENTIRE_CONTROL)) ||
+ ((nType==CTRL_PUSHBUTTON) && (nPart==PART_ENTIRE_CONTROL)) ||
+ ((nType==CTRL_RADIOBUTTON) && (nPart==PART_ENTIRE_CONTROL)) ||
+ ((nType==CTRL_CHECKBOX) && (nPart==PART_ENTIRE_CONTROL)) ||
((nType==CTRL_SCROLLBAR) &&
( (nPart==PART_DRAW_BACKGROUND_HORZ)
|| (nPart==PART_DRAW_BACKGROUND_VERT)
|| (nPart==PART_ENTIRE_CONTROL)
- || (nPart==HAS_THREE_BUTTONS) ) ) ||
+ || (nPart==HAS_THREE_BUTTONS) ) ) ||
((nType==CTRL_EDITBOX) &&
( (nPart==PART_ENTIRE_CONTROL)
- || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
+ || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
((nType==CTRL_MULTILINE_EDITBOX) &&
( (nPart==PART_ENTIRE_CONTROL)
- || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
+ || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
((nType==CTRL_SPINBOX) &&
( (nPart==PART_ENTIRE_CONTROL)
|| (nPart==PART_ALL_BUTTONS)
- || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
+ || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
((nType==CTRL_SPINBUTTONS) &&
( (nPart==PART_ENTIRE_CONTROL)
- || (nPart==PART_ALL_BUTTONS) ) ) ||
+ || (nPart==PART_ALL_BUTTONS) ) ) ||
((nType==CTRL_COMBOBOX) &&
( (nPart==PART_ENTIRE_CONTROL)
- || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
+ || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
(((nType==CTRL_TAB_ITEM) || (nType==CTRL_TAB_PANE) ||
(nType==CTRL_TAB_BODY) || (nType==CTRL_FIXEDBORDER)) &&
( (nPart==PART_ENTIRE_CONTROL)
- || (nPart==PART_TABS_DRAW_RTL) ) ) ||
+ || (nPart==PART_TABS_DRAW_RTL) ) ) ||
((nType==CTRL_LISTBOX) &&
( (nPart==PART_ENTIRE_CONTROL)
|| (nPart==PART_WINDOW)
- || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
+ || (nPart==HAS_BACKGROUND_TEXTURE) ) ) ||
((nType == CTRL_TOOLBAR) &&
- ( (nPart==PART_ENTIRE_CONTROL)
+ ( (nPart==PART_ENTIRE_CONTROL)
|| (nPart==PART_DRAW_BACKGROUND_HORZ)
|| (nPart==PART_DRAW_BACKGROUND_VERT)
|| (nPart==PART_THUMB_HORZ)
@@ -618,11 +618,11 @@ BOOL GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP
*
* returns whether bIsInside was really set.
*/
-BOOL GtkSalGraphics::hitTestNativeControl( ControlType nType,
- ControlPart nPart,
- const Rectangle& rControlRegion,
- const Point& aPos,
- BOOL& rIsInside )
+BOOL GtkSalGraphics::hitTestNativeControl( ControlType nType,
+ ControlPart nPart,
+ const Rectangle& rControlRegion,
+ const Point& aPos,
+ BOOL& rIsInside )
{
if ( ( nType == CTRL_SCROLLBAR ) &&
( ( nPart == PART_BUTTON_UP ) ||
@@ -724,11 +724,11 @@ BOOL GtkSalGraphics::hitTestNativeControl( ControlType nType,
*
* Draws the requested control described by nPart/nState.
*
- * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * rCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * rCaption: A caption or title string (like button text etc)
*/
-BOOL GtkSalGraphics::drawNativeControl( ControlType nType,
+BOOL GtkSalGraphics::drawNativeControl( ControlType nType,
ControlPart nPart,
const Rectangle& rControlRegion,
ControlState nState,
@@ -741,7 +741,7 @@ BOOL GtkSalGraphics::drawNativeControl( ControlType nType,
return drawNativeMixedStateCheck( nType, nPart, rControlRegion, nState, aValue, rCaption );
}
- BOOL returnVal = FALSE;
+ BOOL returnVal = FALSE;
// get a GC with current clipping region set
SelectFont();
@@ -898,7 +898,7 @@ BOOL GtkSalGraphics::drawNativeControl( ControlType nType,
return( returnVal );
}
-BOOL GtkSalGraphics::drawNativeMixedStateCheck( ControlType nType,
+BOOL GtkSalGraphics::drawNativeMixedStateCheck( ControlType nType,
ControlPart nPart,
const Rectangle& rControlRegion,
ControlState nState,
@@ -953,11 +953,11 @@ BOOL GtkSalGraphics::drawNativeMixedStateCheck( ControlType nType,
* OPTIONAL. Draws the requested text for the control described by nPart/nState.
* Used if text not drawn by DrawNativeControl().
*
- * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * rCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * rCaption: A caption or title string (like button text etc)
*/
-BOOL GtkSalGraphics::drawNativeControlText( ControlType,
+BOOL GtkSalGraphics::drawNativeControlText( ControlType,
ControlPart,
const Rectangle&,
ControlState,
@@ -977,9 +977,9 @@ BOOL GtkSalGraphics::drawNativeControlText( ControlType,
* within the control that can be safely drawn into without drawing over
* the borders of the control.
*
- * rControlRegion: The bounding region of the control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * rCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * rCaption: A caption or title string (like button text etc)
*/
BOOL GtkSalGraphics::getNativeControlRegion( ControlType nType,
ControlPart nPart,
@@ -1028,9 +1028,9 @@ BOOL GtkSalGraphics::getNativeControlRegion( ControlType nType,
returnVal = TRUE;
}
if ( (nType==CTRL_TOOLBAR) &&
- ((nPart==PART_DRAW_BACKGROUND_HORZ) ||
- (nPart==PART_DRAW_BACKGROUND_VERT) ||
- (nPart==PART_THUMB_HORZ) ||
+ ((nPart==PART_DRAW_BACKGROUND_HORZ) ||
+ (nPart==PART_DRAW_BACKGROUND_VERT) ||
+ (nPart==PART_THUMB_HORZ) ||
(nPart==PART_THUMB_VERT) ||
(nPart==PART_BUTTON)
))
@@ -1152,16 +1152,16 @@ BOOL GtkSalGraphics::NWPaintGTKButton(
ControlState nState, const ImplControlValue&,
const OUString& )
{
- GtkStateType stateType;
- GtkShadowType shadowType;
- gboolean interiorFocus;
- gint focusWidth;
- gint focusPad;
- BOOL bDrawFocus = TRUE;
- gint x, y, w, h;
- GtkBorder aDefBorder;
- GtkBorder* pBorder;
- GdkRectangle clipRect;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ gboolean interiorFocus;
+ gint focusWidth;
+ gint focusPad;
+ BOOL bDrawFocus = TRUE;
+ gint x, y, w, h;
+ GtkBorder aDefBorder;
+ GtkBorder* pBorder;
+ GdkRectangle clipRect;
NWEnsureGTKButton( m_nScreen );
NWConvertVCLStateToGTKState( nState, &stateType, &shadowType );
@@ -1172,10 +1172,10 @@ BOOL GtkSalGraphics::NWPaintGTKButton(
h = rControlRectangle.GetHeight();
// Grab some button style attributes
- gtk_widget_style_get( gWidgetData[m_nScreen].gBtnWidget, "focus-line-width", &focusWidth,
- "focus-padding", &focusPad,
- "interior_focus", &interiorFocus,
- "default_border", &pBorder,
+ gtk_widget_style_get( gWidgetData[m_nScreen].gBtnWidget, "focus-line-width", &focusWidth,
+ "focus-padding", &focusPad,
+ "interior_focus", &interiorFocus,
+ "default_border", &pBorder,
(char *)NULL );
// Make sure the border values exist, otherwise use some defaults
@@ -1265,21 +1265,21 @@ static Rectangle NWGetButtonArea( int nScreen,
ControlType, ControlPart, Rectangle aAreaRect, ControlState nState,
const ImplControlValue&, const OUString& )
{
- gboolean interiorFocus;
- gint focusWidth;
- gint focusPad;
- GtkBorder aDefBorder;
- GtkBorder * pBorder;
- BOOL bDrawFocus = TRUE;
- Rectangle aRect;
- gint x, y, w, h;
+ gboolean interiorFocus;
+ gint focusWidth;
+ gint focusPad;
+ GtkBorder aDefBorder;
+ GtkBorder * pBorder;
+ BOOL bDrawFocus = TRUE;
+ Rectangle aRect;
+ gint x, y, w, h;
NWEnsureGTKButton( nScreen );
gtk_widget_style_get( gWidgetData[nScreen].gBtnWidget,
- "focus-line-width", &focusWidth,
- "focus-padding", &focusPad,
- "interior_focus", &interiorFocus,
- "default_border", &pBorder,
+ "focus-line-width", &focusWidth,
+ "focus-padding", &focusPad,
+ "interior_focus", &interiorFocus,
+ "default_border", &pBorder,
(char *)NULL );
// Make sure the border values exist, otherwise use some defaults
@@ -1322,11 +1322,11 @@ BOOL GtkSalGraphics::NWPaintGTKRadio( GdkDrawable* gdkDrawable,
const ImplControlValue& aValue,
const OUString& )
{
- GtkStateType stateType;
- GtkShadowType shadowType;
- BOOL isChecked = (aValue.getTristateVal()==BUTTONVALUE_ON);
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ BOOL isChecked = (aValue.getTristateVal()==BUTTONVALUE_ON);
gint x, y;
- GdkRectangle clipRect;
+ GdkRectangle clipRect;
NWEnsureGTKButton( m_nScreen );
NWEnsureGTKRadio( m_nScreen );
@@ -1380,11 +1380,11 @@ BOOL GtkSalGraphics::NWPaintGTKCheck( GdkDrawable* gdkDrawable,
const ImplControlValue& aValue,
const OUString& )
{
- GtkStateType stateType;
- GtkShadowType shadowType;
- BOOL isChecked = (aValue.getTristateVal()==BUTTONVALUE_ON) ? TRUE : FALSE;
- GdkRectangle clipRect;
- gint x,y;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ BOOL isChecked = (aValue.getTristateVal()==BUTTONVALUE_ON) ? TRUE : FALSE;
+ GdkRectangle clipRect;
+ gint x,y;
NWEnsureGTKButton( m_nScreen );
NWEnsureGTKCheck( m_nScreen );
@@ -1439,32 +1439,32 @@ BOOL GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
OSL_ASSERT( aValue.getType() == CTRL_SCROLLBAR );
const ScrollbarValue* pScrollbarVal = static_cast<const ScrollbarValue *>(&aValue);
GdkPixmap* pixmap = NULL;
- Rectangle pixmapRect, scrollbarRect;
- GtkStateType stateType;
- GtkShadowType shadowType;
- GtkScrollbar * scrollbarWidget;
- GtkStyle * style;
+ Rectangle pixmapRect, scrollbarRect;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ GtkScrollbar * scrollbarWidget;
+ GtkStyle * style;
GtkAdjustment* scrollbarValues = NULL;
- GtkOrientation scrollbarOrientation;
- Rectangle thumbRect = pScrollbarVal->maThumbRect;
- Rectangle button11BoundRect = pScrollbarVal->maButton1Rect; // backward
- Rectangle button22BoundRect = pScrollbarVal->maButton2Rect; // forward
- Rectangle button12BoundRect = pScrollbarVal->maButton1Rect; // secondary forward
- Rectangle button21BoundRect = pScrollbarVal->maButton2Rect; // secondary backward
- GtkArrowType button1Type; // backward
- GtkArrowType button2Type; // forward
- gchar * scrollbarTagH = (gchar *) "hscrollbar";
- gchar * scrollbarTagV = (gchar *) "vscrollbar";
- gchar * scrollbarTag = NULL;
- Rectangle arrowRect;
- gint slider_width = 0;
- gint stepper_size = 0;
- gint stepper_spacing = 0;
- gint trough_border = 0;
- gint min_slider_length = 0;
- gint vShim = 0;
- gint hShim = 0;
- gint x,y,w,h;
+ GtkOrientation scrollbarOrientation;
+ Rectangle thumbRect = pScrollbarVal->maThumbRect;
+ Rectangle button11BoundRect = pScrollbarVal->maButton1Rect; // backward
+ Rectangle button22BoundRect = pScrollbarVal->maButton2Rect; // forward
+ Rectangle button12BoundRect = pScrollbarVal->maButton1Rect; // secondary forward
+ Rectangle button21BoundRect = pScrollbarVal->maButton2Rect; // secondary backward
+ GtkArrowType button1Type; // backward
+ GtkArrowType button2Type; // forward
+ gchar * scrollbarTagH = (gchar *) "hscrollbar";
+ gchar * scrollbarTagV = (gchar *) "vscrollbar";
+ gchar * scrollbarTag = NULL;
+ Rectangle arrowRect;
+ gint slider_width = 0;
+ gint stepper_size = 0;
+ gint stepper_spacing = 0;
+ gint trough_border = 0;
+ gint min_slider_length = 0;
+ gint vShim = 0;
+ gint hShim = 0;
+ gint x,y,w,h;
// make controlvalue rectangles relative to area
thumbRect.Move( -rControlRectangle.Left(), -rControlRectangle.Top() );
@@ -1667,7 +1667,7 @@ BOOL GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
if ( has_backward )
{
NWConvertVCLStateToGTKState( pScrollbarVal->mnButton1State, &stateType, &shadowType );
- if ( stateType == GTK_STATE_INSENSITIVE ) stateType = GTK_STATE_NORMAL;
+ if ( stateType == GTK_STATE_INSENSITIVE ) stateType = GTK_STATE_NORMAL;
gtk_paint_box( style, gdkDrawable, stateType, shadowType,
gdkRect, GTK_WIDGET(scrollbarWidget), "stepper",
x+hShim+button11BoundRect.Left(), y+vShim+button11BoundRect.Top(),
@@ -1682,7 +1682,7 @@ BOOL GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
if ( has_forward2 )
{
NWConvertVCLStateToGTKState( pScrollbarVal->mnButton2State, &stateType, &shadowType );
- if ( stateType == GTK_STATE_INSENSITIVE ) stateType = GTK_STATE_NORMAL;
+ if ( stateType == GTK_STATE_INSENSITIVE ) stateType = GTK_STATE_NORMAL;
gtk_paint_box( style, gdkDrawable, stateType, shadowType,
gdkRect, GTK_WIDGET(scrollbarWidget), "stepper",
x+hShim+button12BoundRect.Left(), y+vShim+button12BoundRect.Top(),
@@ -1698,7 +1698,7 @@ BOOL GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
if ( has_backward2 )
{
NWConvertVCLStateToGTKState( pScrollbarVal->mnButton1State, &stateType, &shadowType );
- if ( stateType == GTK_STATE_INSENSITIVE ) stateType = GTK_STATE_NORMAL;
+ if ( stateType == GTK_STATE_INSENSITIVE ) stateType = GTK_STATE_NORMAL;
gtk_paint_box( style, gdkDrawable, stateType, shadowType, gdkRect,
GTK_WIDGET(scrollbarWidget), "stepper",
x+hShim+button21BoundRect.Left(), y+vShim+button21BoundRect.Top(),
@@ -1713,7 +1713,7 @@ BOOL GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
if ( has_forward )
{
NWConvertVCLStateToGTKState( pScrollbarVal->mnButton2State, &stateType, &shadowType );
- if ( stateType == GTK_STATE_INSENSITIVE ) stateType = GTK_STATE_NORMAL;
+ if ( stateType == GTK_STATE_INSENSITIVE ) stateType = GTK_STATE_NORMAL;
gtk_paint_box( style, gdkDrawable, stateType, shadowType, gdkRect,
GTK_WIDGET(scrollbarWidget), "stepper",
x+hShim+button22BoundRect.Left(), y+vShim+button22BoundRect.Top(),
@@ -1738,7 +1738,7 @@ BOOL GtkSalGraphics::NWPaintGTKScrollbar( ControlType, ControlPart nPart,
//---
-static Rectangle NWGetScrollButtonRect( int nScreen, ControlPart nPart, Rectangle aAreaRect )
+static Rectangle NWGetScrollButtonRect( int nScreen, ControlPart nPart, Rectangle aAreaRect )
{
gint slider_width;
gint stepper_size;
@@ -1829,7 +1829,7 @@ BOOL GtkSalGraphics::NWPaintGTKEditBox( GdkDrawable* gdkDrawable,
const ImplControlValue& aValue,
const OUString& rCaption )
{
- Rectangle pixmapRect;
+ Rectangle pixmapRect;
GdkRectangle clipRect;
// Find the overall bounding rect of the buttons's drawing area,
@@ -1862,16 +1862,16 @@ static Rectangle NWGetEditBoxPixmapRect(int nScreen,
const ImplControlValue&,
const OUString& )
{
- Rectangle pixmapRect = aAreaRect;
- gboolean interiorFocus;
- gint focusWidth;
+ Rectangle pixmapRect = aAreaRect;
+ gboolean interiorFocus;
+ gint focusWidth;
NWEnsureGTKEditBox( nScreen );
// Grab some entry style attributes
gtk_widget_style_get( gWidgetData[nScreen].gEditBoxWidget,
- "focus-line-width", &focusWidth,
- "interior-focus", &interiorFocus, (char *)NULL );
+ "focus-line-width", &focusWidth,
+ "interior-focus", &interiorFocus, (char *)NULL );
if ( !interiorFocus )
{
@@ -1888,18 +1888,18 @@ static Rectangle NWGetEditBoxPixmapRect(int nScreen,
* All coordinates should be local to the Pixmap, NOT
* screen/window coordinates.
*/
-static void NWPaintOneEditBox( int nScreen,
+static void NWPaintOneEditBox( int nScreen,
GdkDrawable * gdkDrawable,
- GdkRectangle * gdkRect,
- ControlType nType,
+ GdkRectangle * gdkRect,
+ ControlType nType,
ControlPart,
- Rectangle aEditBoxRect,
- ControlState nState,
+ Rectangle aEditBoxRect,
+ ControlState nState,
const ImplControlValue&,
const OUString& )
{
- GtkStateType stateType;
- GtkShadowType shadowType;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
GtkWidget *widget;
NWEnsureGTKButton( nScreen );
@@ -1966,17 +1966,17 @@ BOOL GtkSalGraphics::NWPaintGTKSpinBox( ControlType nType, ControlPart nPart,
const ImplControlValue& aValue,
const OUString& rCaption )
{
- GdkPixmap * pixmap;
- Rectangle pixmapRect;
- GtkStateType stateType;
- GtkShadowType shadowType;
- const SpinbuttonValue * pSpinVal = (aValue.getType() == CTRL_SPINBUTTONS) ? static_cast<const SpinbuttonValue *>(&aValue) : NULL;
- Rectangle upBtnRect;
- ControlPart upBtnPart = PART_BUTTON_UP;
- ControlState upBtnState = CTRL_STATE_ENABLED;
- Rectangle downBtnRect;
- ControlPart downBtnPart = PART_BUTTON_DOWN;
- ControlState downBtnState = CTRL_STATE_ENABLED;
+ GdkPixmap * pixmap;
+ Rectangle pixmapRect;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ const SpinbuttonValue * pSpinVal = (aValue.getType() == CTRL_SPINBUTTONS) ? static_cast<const SpinbuttonValue *>(&aValue) : NULL;
+ Rectangle upBtnRect;
+ ControlPart upBtnPart = PART_BUTTON_UP;
+ ControlState upBtnState = CTRL_STATE_ENABLED;
+ Rectangle downBtnRect;
+ ControlPart downBtnPart = PART_BUTTON_DOWN;
+ ControlState downBtnState = CTRL_STATE_ENABLED;
NWEnsureGTKButton( m_nScreen );
NWEnsureGTKSpinButton( m_nScreen );
@@ -2031,7 +2031,7 @@ BOOL GtkSalGraphics::NWPaintGTKSpinBox( ControlType nType, ControlPart nPart,
if ( shadowType != GTK_SHADOW_NONE )
{
- Rectangle shadowRect( upBtnRect );
+ Rectangle shadowRect( upBtnRect );
shadowRect.Union( downBtnRect );
gtk_paint_box( gWidgetData[m_nScreen].gSpinButtonWidget->style, pixmap, GTK_STATE_NORMAL, shadowType, NULL,
@@ -2057,14 +2057,14 @@ BOOL GtkSalGraphics::NWPaintGTKSpinBox( ControlType nType, ControlPart nPart,
static Rectangle NWGetSpinButtonRect( int nScreen,
ControlType,
- ControlPart nPart,
- Rectangle aAreaRect,
+ ControlPart nPart,
+ Rectangle aAreaRect,
ControlState,
const ImplControlValue&,
const OUString& )
{
- gint buttonSize;
- Rectangle buttonRect;
+ gint buttonSize;
+ Rectangle buttonRect;
NWEnsureGTKSpinButton( nScreen );
@@ -2098,19 +2098,19 @@ static Rectangle NWGetSpinButtonRect( int nScreen,
//---
static void NWPaintOneSpinButton( int nScreen,
- GdkPixmap* pixmap,
- ControlType nType,
- ControlPart nPart,
- Rectangle aAreaRect,
- ControlState nState,
- const ImplControlValue& aValue,
- const OUString& rCaption )
-{
- Rectangle buttonRect;
- GtkStateType stateType;
- GtkShadowType shadowType;
- Rectangle arrowRect;
- gint arrowSize;
+ GdkPixmap* pixmap,
+ ControlType nType,
+ ControlPart nPart,
+ Rectangle aAreaRect,
+ ControlState nState,
+ const ImplControlValue& aValue,
+ const OUString& rCaption )
+{
+ Rectangle buttonRect;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ Rectangle arrowRect;
+ gint arrowSize;
NWEnsureGTKSpinButton( nScreen );
NWConvertVCLStateToGTKState( nState, &stateType, &shadowType );
@@ -2149,13 +2149,13 @@ BOOL GtkSalGraphics::NWPaintGTKComboBox( GdkDrawable* gdkDrawable,
const ImplControlValue& aValue,
const OUString& rCaption )
{
- Rectangle pixmapRect;
- Rectangle buttonRect;
- GtkStateType stateType;
- GtkShadowType shadowType;
- Rectangle arrowRect;
- gint x,y;
- GdkRectangle clipRect;
+ Rectangle pixmapRect;
+ Rectangle buttonRect;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ Rectangle arrowRect;
+ gint x,y;
+ GdkRectangle clipRect;
NWEnsureGTKButton( m_nScreen );
NWEnsureGTKArrow( m_nScreen );
@@ -2176,10 +2176,10 @@ BOOL GtkSalGraphics::NWPaintGTKComboBox( GdkDrawable* gdkDrawable,
if( nPart == PART_BUTTON_DOWN )
buttonRect.Left() += 1;
- Rectangle aEditBoxRect( pixmapRect );
+ Rectangle aEditBoxRect( pixmapRect );
aEditBoxRect.SetSize( Size( pixmapRect.GetWidth() - buttonRect.GetWidth(), aEditBoxRect.GetHeight() ) );
- #define ARROW_EXTENT 0.7
+ #define ARROW_EXTENT 0.7
arrowRect.SetSize( Size( (gint)(MIN_ARROW_SIZE * ARROW_EXTENT),
(gint)(MIN_ARROW_SIZE * ARROW_EXTENT) ) );
arrowRect.SetPos( Point( buttonRect.Left() + (gint)((buttonRect.GetWidth() - arrowRect.GetWidth()) / 2),
@@ -2222,23 +2222,23 @@ BOOL GtkSalGraphics::NWPaintGTKComboBox( GdkDrawable* gdkDrawable,
static Rectangle NWGetComboBoxButtonRect( int nScreen,
ControlType,
ControlPart nPart,
- Rectangle aAreaRect,
+ Rectangle aAreaRect,
ControlState,
const ImplControlValue&,
const OUString& )
{
- Rectangle aButtonRect;
- gint nArrowWidth;
+ Rectangle aButtonRect;
+ gint nArrowWidth;
gint nButtonWidth;
- gint nFocusWidth;
- gint nFocusPad;
+ gint nFocusWidth;
+ gint nFocusPad;
NWEnsureGTKArrow( nScreen );
// Grab some button style attributes
gtk_widget_style_get( gWidgetData[nScreen].gDropdownWidget,
- "focus-line-width", &nFocusWidth,
- "focus-padding", &nFocusPad, (char *)NULL );
+ "focus-line-width", &nFocusWidth,
+ "focus-padding", &nFocusPad, (char *)NULL );
nArrowWidth = MIN_ARROW_SIZE + (GTK_MISC(gWidgetData[nScreen].gArrowWidget)->xpad * 2);
nButtonWidth = nArrowWidth +
@@ -2282,11 +2282,11 @@ BOOL GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, ControlPart,
const OUString& )
{
OSL_ASSERT( nType != CTRL_TAB_ITEM || aValue.getType() == CTRL_TAB_ITEM );
- GdkPixmap * pixmap;
- Rectangle pixmapRect;
- Rectangle tabRect;
- GtkStateType stateType;
- GtkShadowType shadowType;
+ GdkPixmap * pixmap;
+ Rectangle pixmapRect;
+ Rectangle tabRect;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
if( ! gWidgetData[ m_nScreen ].gCacheTabItems )
{
gWidgetData[ m_nScreen ].gCacheTabItems = new NWPixmapCache( m_nScreen );
@@ -2314,7 +2314,7 @@ BOOL GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, ControlPart,
pixmapRect = rControlRectangle;
if ( nType == CTRL_TAB_ITEM )
{
- const TabitemValue * pTabitemValue = static_cast<const TabitemValue *>(&aValue);
+ const TabitemValue * pTabitemValue = static_cast<const TabitemValue *>(&aValue);
if ( !pTabitemValue->isFirst() )
{
// GTK+ tabs overlap on the right edge (the top tab obscures the
@@ -2355,7 +2355,7 @@ BOOL GtkSalGraphics::NWPaintGTKTabItem( ControlType nType, ControlPart,
}
-// gtk_widget_set_state( gWidgetData[m_nScreen].gNotebookWidget, stateType );
+// gtk_widget_set_state( gWidgetData[m_nScreen].gNotebookWidget, stateType );
pixmap = gdk_pixmap_new( NULL, pixmapRect.GetWidth(), pixmapRect.GetHeight(),
GetX11SalData()->GetDisplay()->GetVisual( m_nScreen ).GetDepth() );
@@ -2423,15 +2423,15 @@ BOOL GtkSalGraphics::NWPaintGTKListBox( GdkDrawable* gdkDrawable,
const ImplControlValue& aValue,
const OUString& rCaption )
{
- Rectangle pixmapRect;
- Rectangle widgetRect;
- Rectangle aIndicatorRect;
- GtkStateType stateType;
- GtkShadowType shadowType;
- gint bInteriorFocus;
- gint nFocusLineWidth;
- gint nFocusPadding;
- gint x,y;
+ Rectangle pixmapRect;
+ Rectangle widgetRect;
+ Rectangle aIndicatorRect;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ gint bInteriorFocus;
+ gint nFocusLineWidth;
+ gint nFocusPadding;
+ gint x,y;
GdkRectangle clipRect;
NWEnsureGTKButton( m_nScreen );
@@ -2463,9 +2463,9 @@ BOOL GtkSalGraphics::NWPaintGTKListBox( GdkDrawable* gdkDrawable,
if ( nPart != PART_WINDOW )
{
gtk_widget_style_get( gWidgetData[m_nScreen].gOptionMenuWidget,
- "interior_focus", &bInteriorFocus,
- "focus_line_width", &nFocusLineWidth,
- "focus_padding", &nFocusPadding,
+ "interior_focus", &bInteriorFocus,
+ "focus_line_width", &nFocusLineWidth,
+ "focus_padding", &nFocusPadding,
(char *)NULL);
}
@@ -2517,14 +2517,14 @@ BOOL GtkSalGraphics::NWPaintGTKToolbar(
ControlState nState, const ImplControlValue& aValue,
const OUString& )
{
- GtkStateType stateType;
- GtkShadowType shadowType;
- gint x, y, w, h;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
+ gint x, y, w, h;
gint g_x=0, g_y=0, g_w=10, g_h=10;
bool bPaintButton = true;
GtkWidget* pButtonWidget = gWidgetData[m_nScreen].gToolbarButtonWidget;
const gchar* pButtonDetail = "button";
- GdkRectangle clipRect;
+ GdkRectangle clipRect;
NWEnsureGTKToolbar( m_nScreen );
if( nPart == PART_BUTTON ) // toolbar buttons cannot focus in gtk
@@ -2664,11 +2664,11 @@ BOOL GtkSalGraphics::NWPaintGTKMenubar(
ControlState nState, const ImplControlValue&,
const OUString& )
{
- GtkStateType stateType;
- GtkShadowType shadowType;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
GtkShadowType selected_shadow_type = GTK_SHADOW_OUT;
- gint x, y, w, h;
- GdkRectangle clipRect;
+ gint x, y, w, h;
+ GdkRectangle clipRect;
NWEnsureGTKMenubar( m_nScreen );
NWConvertVCLStateToGTKState( nState, &stateType, &shadowType );
@@ -2754,11 +2754,11 @@ BOOL GtkSalGraphics::NWPaintGTKPopupMenu(
if( nPart == PART_MENU_ITEM && ! (nState & CTRL_STATE_ENABLED) )
return FALSE;
- GtkStateType stateType;
- GtkShadowType shadowType;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
GtkShadowType selected_shadow_type = GTK_SHADOW_OUT;
- gint x, y, w, h;
- GdkRectangle clipRect;
+ gint x, y, w, h;
+ GdkRectangle clipRect;
NWEnsureGTKMenu( m_nScreen );
NWConvertVCLStateToGTKState( nState, &stateType, &shadowType );
@@ -2881,8 +2881,8 @@ BOOL GtkSalGraphics::NWPaintGTKTooltip(
{
NWEnsureGTKTooltip( m_nScreen );
- gint x, y, w, h;
- GdkRectangle clipRect;
+ gint x, y, w, h;
+ GdkRectangle clipRect;
x = rControlRectangle.Left();
y = rControlRectangle.Top();
@@ -2924,12 +2924,12 @@ BOOL GtkSalGraphics::NWPaintGTKListNode(
aRect.Right() += 2;
aRect.Top() -= 2;
aRect.Bottom() += 2;
- gint w, h;
+ gint w, h;
w = aRect.GetWidth();
h = aRect.GetHeight();
- GtkStateType stateType;
- GtkShadowType shadowType;
+ GtkStateType stateType;
+ GtkShadowType shadowType;
NWConvertVCLStateToGTKState( nState, &stateType, &shadowType );
ButtonValue aButtonValue = rValue.getTristateVal();
@@ -2973,7 +2973,7 @@ BOOL GtkSalGraphics::NWPaintGTKProgress(
{
NWEnsureGTKProgressBar( m_nScreen );
- gint w, h;
+ gint w, h;
w = rControlRectangle.GetWidth();
h = rControlRectangle.GetHeight();
@@ -3038,7 +3038,7 @@ BOOL GtkSalGraphics::NWPaintGTKSlider(
OSL_ASSERT( rValue.getType() == CTRL_SLIDER );
NWEnsureGTKSlider( m_nScreen );
- gint w, h;
+ gint w, h;
w = rControlRectangle.GetWidth();
h = rControlRectangle.GetHeight();
@@ -3130,15 +3130,15 @@ static Rectangle NWGetListBoxButtonRect( int nScreen,
Rectangle aPartRect;
GtkRequisition *pIndicatorSize = NULL;
GtkBorder *pIndicatorSpacing = NULL;
- gint width = 13; // GTK+ default
- gint right = 5; // GTK+ default
+ gint width = 13; // GTK+ default
+ gint right = 5; // GTK+ default
gint nButtonAreaWidth = 0;
gint xthickness = 0;
NWEnsureGTKOptionMenu( nScreen );
gtk_widget_style_get( gWidgetData[nScreen].gOptionMenuWidget,
- "indicator_size", &pIndicatorSize,
+ "indicator_size", &pIndicatorSize,
"indicator_spacing",&pIndicatorSpacing, (char *)NULL);
if ( pIndicatorSize )
@@ -3184,7 +3184,7 @@ static Rectangle NWGetListBoxButtonRect( int nScreen,
static Rectangle NWGetListBoxIndicatorRect( int nScreen,
ControlType,
ControlPart,
- Rectangle aAreaRect,
+ Rectangle aAreaRect,
ControlState,
const ImplControlValue&,
const OUString& )
@@ -3192,14 +3192,14 @@ static Rectangle NWGetListBoxIndicatorRect( int nScreen,
Rectangle aIndicatorRect;
GtkRequisition *pIndicatorSize = NULL;
GtkBorder *pIndicatorSpacing = NULL;
- gint width = 13; // GTK+ default
- gint height = 13; // GTK+ default
- gint right = 5; // GTK+ default
+ gint width = 13; // GTK+ default
+ gint height = 13; // GTK+ default
+ gint right = 5; // GTK+ default
NWEnsureGTKOptionMenu( nScreen );
gtk_widget_style_get( gWidgetData[nScreen].gOptionMenuWidget,
- "indicator_size", &pIndicatorSize,
+ "indicator_size", &pIndicatorSize,
"indicator_spacing",&pIndicatorSpacing, (char *)NULL);
if ( pIndicatorSize )
@@ -3229,8 +3229,8 @@ static Rectangle NWGetListBoxIndicatorRect( int nScreen,
static Rectangle NWGetToolbarRect( int nScreen,
ControlType,
- ControlPart nPart,
- Rectangle aAreaRect,
+ ControlPart nPart,
+ Rectangle aAreaRect,
ControlState,
const ImplControlValue&,
const OUString& )
@@ -3448,10 +3448,10 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
aStyleSet.SetMenuHighlightTextColor( aHighlightTextColor );
// UI font
- OString aFamily = pango_font_description_get_family( pStyle->font_desc );
- int nPangoHeight = pango_font_description_get_size( pStyle->font_desc );
- PangoStyle eStyle = pango_font_description_get_style( pStyle->font_desc );
- PangoWeight eWeight = pango_font_description_get_weight( pStyle->font_desc );
+ OString aFamily = pango_font_description_get_family( pStyle->font_desc );
+ int nPangoHeight = pango_font_description_get_size( pStyle->font_desc );
+ PangoStyle eStyle = pango_font_description_get_style( pStyle->font_desc );
+ PangoWeight eWeight = pango_font_description_get_weight( pStyle->font_desc );
PangoStretch eStretch = pango_font_description_get_stretch( pStyle->font_desc );
psp::FastPrintFontInfo aInfo;
@@ -3460,9 +3460,9 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
// set italic
switch( eStyle )
{
- case PANGO_STYLE_NORMAL: aInfo.m_eItalic = psp::italic::Upright;break;
- case PANGO_STYLE_ITALIC: aInfo.m_eItalic = psp::italic::Italic;break;
- case PANGO_STYLE_OBLIQUE: aInfo.m_eItalic = psp::italic::Oblique;break;
+ case PANGO_STYLE_NORMAL: aInfo.m_eItalic = psp::italic::Upright;break;
+ case PANGO_STYLE_ITALIC: aInfo.m_eItalic = psp::italic::Italic;break;
+ case PANGO_STYLE_OBLIQUE: aInfo.m_eItalic = psp::italic::Oblique;break;
}
// set weight
if( eWeight <= PANGO_WEIGHT_ULTRALIGHT )
@@ -3478,15 +3478,15 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
// set width
switch( eStretch )
{
- case PANGO_STRETCH_ULTRA_CONDENSED: aInfo.m_eWidth = psp::width::UltraCondensed;break;
- case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth = psp::width::ExtraCondensed;break;
- case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = psp::width::Condensed;break;
- case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = psp::width::SemiCondensed;break;
- case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = psp::width::Normal;break;
- case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = psp::width::SemiExpanded;break;
- case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = psp::width::Expanded;break;
- case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = psp::width::ExtraExpanded;break;
- case PANGO_STRETCH_ULTRA_EXPANDED: aInfo.m_eWidth = psp::width::UltraExpanded;break;
+ case PANGO_STRETCH_ULTRA_CONDENSED: aInfo.m_eWidth = psp::width::UltraCondensed;break;
+ case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth = psp::width::ExtraCondensed;break;
+ case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = psp::width::Condensed;break;
+ case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = psp::width::SemiCondensed;break;
+ case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = psp::width::Normal;break;
+ case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = psp::width::SemiExpanded;break;
+ case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = psp::width::Expanded;break;
+ case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = psp::width::ExtraExpanded;break;
+ case PANGO_STRETCH_ULTRA_EXPANDED: aInfo.m_eWidth = psp::width::UltraExpanded;break;
}
#if OSL_DEBUG_LEVEL > 1
@@ -3581,7 +3581,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
aStyleSet.SetPreferredSymbolsStyleName( OUString::createFromAscii( pIconThemeName ) );
g_free( pIconThemeName );
- aStyleSet.SetToolbarIconSize( STYLE_TOOLBAR_ICONSIZE_LARGE );
+ aStyleSet.SetToolbarIconSize( STYLE_TOOLBAR_ICONSIZE_LARGE );
const cairo_font_options_t* pNewOptions = NULL;
if( GdkScreen* pScreen = gdk_display_get_screen( gdk_display_get_default(), m_nScreen ) )
@@ -3652,8 +3652,8 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
GdkPixmap* GtkSalGraphics::NWGetPixmapFromScreen( Rectangle srcRect )
{
// Create a new pixmap to hold the composite of the window background and the control
- GdkPixmap * pPixmap = gdk_pixmap_new( GDK_DRAWABLE(GetGdkWindow()), srcRect.GetWidth(), srcRect.GetHeight(), -1 );
- GdkGC * pPixmapGC = gdk_gc_new( pPixmap );
+ GdkPixmap * pPixmap = gdk_pixmap_new( GDK_DRAWABLE(GetGdkWindow()), srcRect.GetWidth(), srcRect.GetHeight(), -1 );
+ GdkGC * pPixmapGC = gdk_gc_new( pPixmap );
if( !pPixmap || !pPixmapGC )
{
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 563fa1bcc3af..3061ae0081c5 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -158,61 +158,61 @@ static USHORT GetKeyCode( guint keyval )
switch( keyval )
{
case GDK_KP_Down:
- case GDK_Down: nCode = KEY_DOWN; break;
+ case GDK_Down: nCode = KEY_DOWN; break;
case GDK_KP_Up:
- case GDK_Up: nCode = KEY_UP; break;
+ case GDK_Up: nCode = KEY_UP; break;
case GDK_KP_Left:
- case GDK_Left: nCode = KEY_LEFT; break;
+ case GDK_Left: nCode = KEY_LEFT; break;
case GDK_KP_Right:
- case GDK_Right: nCode = KEY_RIGHT; break;
+ case GDK_Right: nCode = KEY_RIGHT; break;
case GDK_KP_Begin:
case GDK_KP_Home:
case GDK_Begin:
- case GDK_Home: nCode = KEY_HOME; break;
+ case GDK_Home: nCode = KEY_HOME; break;
case GDK_KP_End:
- case GDK_End: nCode = KEY_END; break;
+ case GDK_End: nCode = KEY_END; break;
case GDK_KP_Page_Up:
- case GDK_Page_Up: nCode = KEY_PAGEUP; break;
+ case GDK_Page_Up: nCode = KEY_PAGEUP; break;
case GDK_KP_Page_Down:
- case GDK_Page_Down: nCode = KEY_PAGEDOWN; break;
+ case GDK_Page_Down: nCode = KEY_PAGEDOWN; break;
case GDK_KP_Enter:
- case GDK_Return: nCode = KEY_RETURN; break;
- case GDK_Escape: nCode = KEY_ESCAPE; break;
+ case GDK_Return: nCode = KEY_RETURN; break;
+ case GDK_Escape: nCode = KEY_ESCAPE; break;
case GDK_ISO_Left_Tab:
case GDK_KP_Tab:
- case GDK_Tab: nCode = KEY_TAB; break;
- case GDK_BackSpace: nCode = KEY_BACKSPACE; break;
+ case GDK_Tab: nCode = KEY_TAB; break;
+ case GDK_BackSpace: nCode = KEY_BACKSPACE; break;
case GDK_KP_Space:
- case GDK_space: nCode = KEY_SPACE; break;
+ case GDK_space: nCode = KEY_SPACE; break;
case GDK_KP_Insert:
- case GDK_Insert: nCode = KEY_INSERT; break;
+ case GDK_Insert: nCode = KEY_INSERT; break;
case GDK_KP_Delete:
- case GDK_Delete: nCode = KEY_DELETE; break;
+ case GDK_Delete: nCode = KEY_DELETE; break;
case GDK_plus:
- case GDK_KP_Add: nCode = KEY_ADD; break;
+ case GDK_KP_Add: nCode = KEY_ADD; break;
case GDK_minus:
- case GDK_KP_Subtract: nCode = KEY_SUBTRACT; break;
+ case GDK_KP_Subtract: nCode = KEY_SUBTRACT; break;
case GDK_asterisk:
- case GDK_KP_Multiply: nCode = KEY_MULTIPLY; break;
+ case GDK_KP_Multiply: nCode = KEY_MULTIPLY; break;
case GDK_slash:
- case GDK_KP_Divide: nCode = KEY_DIVIDE; break;
+ case GDK_KP_Divide: nCode = KEY_DIVIDE; break;
case GDK_period:
- case GDK_decimalpoint: nCode = KEY_POINT; break;
- case GDK_comma: nCode = KEY_COMMA; break;
- case GDK_less: nCode = KEY_LESS; break;
- case GDK_greater: nCode = KEY_GREATER; break;
+ case GDK_decimalpoint: nCode = KEY_POINT; break;
+ case GDK_comma: nCode = KEY_COMMA; break;
+ case GDK_less: nCode = KEY_LESS; break;
+ case GDK_greater: nCode = KEY_GREATER; break;
case GDK_KP_Equal:
- case GDK_equal: nCode = KEY_EQUAL; break;
- case GDK_Find: nCode = KEY_FIND; break;
- case GDK_Menu: nCode = KEY_CONTEXTMENU;break;
- case GDK_Help: nCode = KEY_HELP; break;
- case GDK_Undo: nCode = KEY_UNDO; break;
+ case GDK_equal: nCode = KEY_EQUAL; break;
+ case GDK_Find: nCode = KEY_FIND; break;
+ case GDK_Menu: nCode = KEY_CONTEXTMENU;break;
+ case GDK_Help: nCode = KEY_HELP; break;
+ case GDK_Undo: nCode = KEY_UNDO; break;
case GDK_Redo: nCode = KEY_REPEAT; break;
case GDK_KP_Decimal:
- case GDK_KP_Separator: nCode = KEY_DECIMAL; break;
- case GDK_asciitilde: nCode = KEY_TILDE; break;
+ case GDK_KP_Separator: nCode = KEY_DECIMAL; break;
+ case GDK_asciitilde: nCode = KEY_TILDE; break;
case GDK_leftsinglequotemark:
- case GDK_quoteleft: nCode = KEY_QUOTELEFT; break;
+ case GDK_quoteleft: nCode = KEY_QUOTELEFT; break;
case GDK_bracketleft: nCode = KEY_BRACKETLEFT; break;
case GDK_bracketright: nCode = KEY_BRACKETRIGHT; break;
case GDK_semicolon: nCode = KEY_SEMICOLON; break;
@@ -302,8 +302,8 @@ static USHORT GetKeyCode( guint keyval )
// in the independent part.
struct KeyAlternate
{
- USHORT nKeyCode;
- sal_Unicode nCharCode;
+ USHORT nKeyCode;
+ sal_Unicode nCharCode;
KeyAlternate() : nKeyCode( 0 ), nCharCode( 0 ) {}
KeyAlternate( USHORT nKey, sal_Unicode nChar = 0 ) : nKeyCode( nKey ), nCharCode( nChar ) {}
};
@@ -334,10 +334,10 @@ void GtkSalFrame::doKeyCallback( guint state,
{
SalKeyEvent aEvent;
- aEvent.mnTime = time;
- aEvent.mnCharCode = aOrigCode;
- aEvent.mnRepeat = 0;
-
+ aEvent.mnTime = time;
+ aEvent.mnCharCode = aOrigCode;
+ aEvent.mnRepeat = 0;
+
vcl::DeletionListener aDel( this );
/* #i42122# translate all keys with Ctrl and/or Alt to group 0
* else shortcuts (e.g. Ctrl-o) will not work but be inserted by
@@ -363,11 +363,11 @@ void GtkSalFrame::doKeyCallback( guint state,
&level,
&consumed ) )
{
- aEvent.mnCode = GetKeyCode( updated_keyval );
+ aEvent.mnCode = GetKeyCode( updated_keyval );
}
}
- aEvent.mnCode |= GetKeyModCode( state );
-
+ aEvent.mnCode |= GetKeyModCode( state );
+
if( bDown )
{
bool bHandled = CallCallback( SALEVENT_KEYINPUT, &aEvent );
@@ -401,8 +401,8 @@ GtkSalFrame::GtkSalFrame( SalFrame* pParent, ULONG nStyle )
{
m_nScreen = getDisplay()->GetDefaultScreenNumber();
getDisplay()->registerFrame( this );
- m_bDefaultPos = true;
- m_bDefaultSize = ( (nStyle & SAL_FRAME_STYLE_SIZEABLE) && ! pParent );
+ m_bDefaultPos = true;
+ m_bDefaultSize = ( (nStyle & SAL_FRAME_STYLE_SIZEABLE) && ! pParent );
m_bWindowIsGtkPlug = false;
Init( pParent, nStyle );
}
@@ -412,8 +412,8 @@ GtkSalFrame::GtkSalFrame( SystemParentData* pSysData )
m_nScreen = getDisplay()->GetDefaultScreenNumber();
getDisplay()->registerFrame( this );
getDisplay()->setHaveSystemChildFrame();
- m_bDefaultPos = true;
- m_bDefaultSize = true;
+ m_bDefaultPos = true;
+ m_bDefaultSize = true;
Init( pSysData );
}
@@ -429,9 +429,9 @@ GtkSalFrame::~GtkSalFrame()
if( m_pParent )
m_pParent->m_aChildren.remove( this );
-
+
getDisplay()->deregisterFrame( this );
-
+
if( m_pRegion )
gdk_region_destroy( m_pRegion );
@@ -479,13 +479,13 @@ void GtkSalFrame::resizeWindow( long nWidth, long nHeight )
else if( ! isChild( true, false ) )
gtk_window_resize( GTK_WINDOW(m_pWindow), nWidth, nHeight );
}
-
+
/*
* Always use a sub-class of GtkFixed we can tag for a11y. This allows us to
- * utilize GAIL for the toplevel window and toolkit implementation incl.
+ * utilize GAIL for the toplevel window and toolkit implementation incl.
* key event listener support ..
*/
-
+
GType
ooo_fixed_get_type()
{
@@ -506,11 +506,11 @@ ooo_fixed_get_type()
NULL /* value table */
};
- type = g_type_register_static( GTK_TYPE_FIXED, "OOoFixed",
+ type = g_type_register_static( GTK_TYPE_FIXED, "OOoFixed",
&tinfo, (GTypeFlags) 0);
}
- return type;
+ return type;
}
void GtkSalFrame::updateScreenNumber()
@@ -560,10 +560,10 @@ void GtkSalFrame::InitCommon()
m_pCurrentCursor = NULL;
m_nKeyModifiers = 0;
m_bFullscreen = false;
- m_nState = GDK_WINDOW_STATE_WITHDRAWN;
- m_nVisibility = GDK_VISIBILITY_FULLY_OBSCURED;
+ m_nState = GDK_WINDOW_STATE_WITHDRAWN;
+ m_nVisibility = GDK_VISIBILITY_FULLY_OBSCURED;
m_bSendModChangeOnRelease = false;
- m_pIMHandler = NULL;
+ m_pIMHandler = NULL;
m_hBackgroundPixmap = None;
m_nSavedScreenSaverTimeout = 0;
m_nGSMCookie = 0;
@@ -571,7 +571,7 @@ void GtkSalFrame::InitCommon()
m_pRegion = NULL;
m_ePointerStyle = 0xffff;
m_bSetFocusOnMap = false;
-
+
gtk_widget_set_app_paintable( m_pWindow, TRUE );
gtk_widget_set_double_buffered( m_pWindow, FALSE );
gtk_widget_set_redraw_on_allocate( m_pWindow, FALSE );
@@ -585,7 +585,7 @@ void GtkSalFrame::InitCommon()
// fixed is needed since we have to position plugin windows
m_pFixedContainer = GTK_FIXED(g_object_new( ooo_fixed_get_type(), NULL ));
gtk_container_add( GTK_CONTAINER(m_pWindow), GTK_WIDGET(m_pFixedContainer) );
-
+
// show the widgets
gtk_widget_show( GTK_WIDGET(m_pFixedContainer) );
@@ -594,42 +594,42 @@ void GtkSalFrame::InitCommon()
//system data
SalDisplay* pDisp = GetX11SalData()->GetDisplay();
- m_aSystemData.nSize = sizeof( SystemChildData );
- m_aSystemData.pDisplay = pDisp->GetDisplay();
- m_aSystemData.aWindow = GDK_WINDOW_XWINDOW(m_pWindow->window);
- m_aSystemData.pSalFrame = this;
- m_aSystemData.pWidget = m_pWindow;
- m_aSystemData.pVisual = pDisp->GetVisual( m_nScreen ).GetVisual();
- m_aSystemData.nScreen = m_nScreen;
- m_aSystemData.nDepth = pDisp->GetVisual( m_nScreen ).GetDepth();
- m_aSystemData.aColormap = pDisp->GetColormap( m_nScreen ).GetXColormap();
- m_aSystemData.pAppContext = NULL;
- m_aSystemData.aShellWindow = m_aSystemData.aWindow;
- m_aSystemData.pShellWidget = m_aSystemData.pWidget;
+ m_aSystemData.nSize = sizeof( SystemChildData );
+ m_aSystemData.pDisplay = pDisp->GetDisplay();
+ m_aSystemData.aWindow = GDK_WINDOW_XWINDOW(m_pWindow->window);
+ m_aSystemData.pSalFrame = this;
+ m_aSystemData.pWidget = m_pWindow;
+ m_aSystemData.pVisual = pDisp->GetVisual( m_nScreen ).GetVisual();
+ m_aSystemData.nScreen = m_nScreen;
+ m_aSystemData.nDepth = pDisp->GetVisual( m_nScreen ).GetDepth();
+ m_aSystemData.aColormap = pDisp->GetColormap( m_nScreen ).GetXColormap();
+ m_aSystemData.pAppContext = NULL;
+ m_aSystemData.aShellWindow = m_aSystemData.aWindow;
+ m_aSystemData.pShellWidget = m_aSystemData.pWidget;
// fake an initial geometry, gets updated via configure event or SetPosSize
if( m_bDefaultPos || m_bDefaultSize )
{
Size aDefSize = calcDefaultSize();
- maGeometry.nX = -1;
- maGeometry.nY = -1;
- maGeometry.nWidth = aDefSize.Width();
- maGeometry.nHeight = aDefSize.Height();
+ maGeometry.nX = -1;
+ maGeometry.nY = -1;
+ maGeometry.nWidth = aDefSize.Width();
+ maGeometry.nHeight = aDefSize.Height();
if( m_pParent )
{
// approximation
- maGeometry.nTopDecoration = m_pParent->maGeometry.nTopDecoration;
- maGeometry.nBottomDecoration = m_pParent->maGeometry.nBottomDecoration;
- maGeometry.nLeftDecoration = m_pParent->maGeometry.nLeftDecoration;
- maGeometry.nRightDecoration = m_pParent->maGeometry.nRightDecoration;
+ maGeometry.nTopDecoration = m_pParent->maGeometry.nTopDecoration;
+ maGeometry.nBottomDecoration = m_pParent->maGeometry.nBottomDecoration;
+ maGeometry.nLeftDecoration = m_pParent->maGeometry.nLeftDecoration;
+ maGeometry.nRightDecoration = m_pParent->maGeometry.nRightDecoration;
}
else
{
- maGeometry.nTopDecoration = 0;
- maGeometry.nBottomDecoration = 0;
- maGeometry.nLeftDecoration = 0;
- maGeometry.nRightDecoration = 0;
+ maGeometry.nTopDecoration = 0;
+ maGeometry.nBottomDecoration = 0;
+ maGeometry.nLeftDecoration = 0;
+ maGeometry.nRightDecoration = 0;
}
}
else
@@ -664,7 +664,7 @@ extern "C" {
typedef void(*setAcceptFn)( GtkWindow*, gboolean );
static setAcceptFn p_gtk_window_set_accept_focus = NULL;
static bool bGetAcceptFocusFn = true;
-
+
typedef void(*setUserTimeFn)( GdkWindow*, guint32 );
static setUserTimeFn p_gdk_x11_window_set_user_time = NULL;
static bool bGetSetUserTimeFn = true;
@@ -749,7 +749,7 @@ static void lcl_set_user_time( GdkWindow* i_pWindow, guint32 i_nTime )
{
XChangeProperty( pDisplay, aWindow,
nUserTime, XA_CARDINAL, 32,
- PropModeReplace, (unsigned char*)&i_nTime, 1 );
+ PropModeReplace, (unsigned char*)&i_nTime, 1 );
}
}
};
@@ -815,7 +815,7 @@ void GtkSalFrame::Init( SalFrame* pParent, ULONG nStyle )
bool bNoDecor = ! (nStyle & (SAL_FRAME_STYLE_MOVEABLE | SAL_FRAME_STYLE_SIZEABLE | SAL_FRAME_STYLE_CLOSEABLE ) );
GdkWindowTypeHint eType = GDK_WINDOW_TYPE_HINT_NORMAL;
if( (nStyle & SAL_FRAME_STYLE_DIALOG) && m_pParent != 0 )
- eType = GDK_WINDOW_TYPE_HINT_DIALOG;
+ eType = GDK_WINDOW_TYPE_HINT_DIALOG;
if( (nStyle & SAL_FRAME_STYLE_INTRO) )
{
gtk_window_set_role( GTK_WINDOW(m_pWindow), "splashscreen" );
@@ -836,14 +836,14 @@ void GtkSalFrame::Init( SalFrame* pParent, ULONG nStyle )
{
eType = GDK_WINDOW_TYPE_HINT_UTILITY;
}
-
+
if( (nStyle & SAL_FRAME_STYLE_PARTIAL_FULLSCREEN )
&& getDisplay()->getWMAdaptor()->isLegacyPartialFullscreen() )
{
eType = GDK_WINDOW_TYPE_HINT_TOOLBAR;
gtk_window_set_keep_above( GTK_WINDOW(m_pWindow), true );
}
-
+
gtk_window_set_type_hint( GTK_WINDOW(m_pWindow), eType );
if( bNoDecor )
gtk_window_set_decorated( GTK_WINDOW(m_pWindow), FALSE );
@@ -878,7 +878,7 @@ void GtkSalFrame::Init( SalFrame* pParent, ULONG nStyle )
if( ( (nStyle & (SAL_FRAME_STYLE_OWNERDRAWDECORATION)) ) )
lcl_set_accept_focus( GTK_WINDOW(m_pWindow), FALSE, false );
}
-
+
}
GdkNativeWindow GtkSalFrame::findTopLevelSystemWindow( GdkNativeWindow aWindow )
@@ -918,7 +918,7 @@ void GtkSalFrame::Init( SystemParentData* pSysData )
m_aForeignTopLevelWindow = findTopLevelSystemWindow( (GdkNativeWindow)pSysData->aWindow );
m_pForeignTopLevel = gdk_window_foreign_new_for_display( getGdkDisplay(), m_aForeignTopLevelWindow );
gdk_window_set_events( m_pForeignTopLevel, GDK_STRUCTURE_MASK );
-
+
if( pSysData->nSize > sizeof(pSysData->nSize)+sizeof(pSysData->aWindow) && pSysData->bXEmbedSupport )
{
m_pWindow = gtk_plug_new( pSysData->aWindow );
@@ -957,7 +957,7 @@ void GtkSalFrame::Init( SystemParentData* pSysData )
void GtkSalFrame::askForXEmbedFocus( sal_Int32 i_nTimeCode )
{
XEvent aEvent;
-
+
rtl_zeroMemory( &aEvent, sizeof(aEvent) );
aEvent.xclient.window = m_aForeignParentWindow;
aEvent.xclient.type = ClientMessage;
@@ -968,7 +968,7 @@ void GtkSalFrame::askForXEmbedFocus( sal_Int32 i_nTimeCode )
aEvent.xclient.data.l[2] = 0;
aEvent.xclient.data.l[3] = 0;
aEvent.xclient.data.l[4] = 0;
-
+
getDisplay()->GetXLib()->PushXErrorLevel( true );
XSendEvent( getDisplay()->GetDisplay(),
m_aForeignParentWindow,
@@ -1119,7 +1119,7 @@ void GtkSalFrame::SetIcon( USHORT nIcon )
nOffsets[0] = SV_ICON_LARGE_HC_START;
nOffsets[1] = SV_ICON_SMALL_HC_START;
}
-
+
for( nIndex = 0; nIndex < sizeof(nOffsets)/ sizeof(USHORT); nIndex++ )
{
// #i44723# workaround gcc temporary problem
@@ -1158,16 +1158,16 @@ void GtkSalFrame::SetIcon( USHORT nIcon )
aMask = aIcon.GetAlpha();
aIcon = BitmapEx( aBmp, aMask );
}
-
+
ImpBitmap *pIconImpBitmap = aIcon.ImplGetBitmapImpBitmap();
ImpBitmap *pIconImpMask = aIcon.ImplGetMaskImpBitmap();
-
+
if( pIconImpBitmap && pIconImpMask )
{
- SalBitmap *pIconBitmap =
+ SalBitmap *pIconBitmap =
pIconImpBitmap->ImplGetSalBitmap();
- SalBitmap *pIconMask =
+ SalBitmap *pIconMask =
pIconImpMask->ImplGetSalBitmap();
if( ( pBuf = bitmapToPixbuf( pIconBitmap, pIconMask ) ) )
@@ -1201,12 +1201,12 @@ void GtkSalFrame::Center()
}
else
{
- long nScreenWidth, nScreenHeight;
- long nScreenX = 0, nScreenY = 0;
+ long nScreenWidth, nScreenHeight;
+ long nScreenX = 0, nScreenY = 0;
- Size aScreenSize = GetX11SalData()->GetDisplay()->GetScreenSize( m_nScreen );
- nScreenWidth = aScreenSize.Width();
- nScreenHeight = aScreenSize.Height();
+ Size aScreenSize = GetX11SalData()->GetDisplay()->GetScreenSize( m_nScreen );
+ nScreenWidth = aScreenSize.Width();
+ nScreenHeight = aScreenSize.Height();
if( GetX11SalData()->GetDisplay()->IsXinerama() )
{
// get xinerama screen we are on
@@ -1221,10 +1221,10 @@ void GtkSalFrame::Center()
for( unsigned int i = 0; i < rScreens.size(); i++ )
if( rScreens[i].IsInside( Point( x, y ) ) )
{
- nScreenX = rScreens[i].Left();
- nScreenY = rScreens[i].Top();
- nScreenWidth = rScreens[i].GetWidth();
- nScreenHeight = rScreens[i].GetHeight();
+ nScreenX = rScreens[i].Left();
+ nScreenY = rScreens[i].Top();
+ nScreenWidth = rScreens[i].GetWidth();
+ nScreenHeight = rScreens[i].GetHeight();
break;
}
}
@@ -1236,7 +1236,7 @@ void GtkSalFrame::Center()
Size GtkSalFrame::calcDefaultSize()
{
- Size aScreenSize = GetX11SalData()->GetDisplay()->GetScreenSize( m_nScreen );
+ Size aScreenSize = GetX11SalData()->GetDisplay()->GetScreenSize( m_nScreen );
long w = aScreenSize.Width();
long h = aScreenSize.Height();
@@ -1283,7 +1283,7 @@ void GtkSalFrame::Show( BOOL bVisible, BOOL bNoActivate )
{
if( m_pWindow )
{
- if( m_pParent && (m_pParent->m_nStyle & SAL_FRAME_STYLE_PARTIAL_FULLSCREEN)
+ if( m_pParent && (m_pParent->m_nStyle & SAL_FRAME_STYLE_PARTIAL_FULLSCREEN)
&& getDisplay()->getWMAdaptor()->isLegacyPartialFullscreen() )
gtk_window_set_keep_above( GTK_WINDOW(m_pWindow), bVisible );
if( bVisible )
@@ -1291,17 +1291,17 @@ void GtkSalFrame::Show( BOOL bVisible, BOOL bNoActivate )
SessionManagerClient::open(); // will simply return after the first time
initClientId();
getDisplay()->startupNotificationCompleted();
-
+
if( m_bDefaultPos )
Center();
if( m_bDefaultSize )
SetDefaultSize();
setMinMaxSize();
-
+
// #i45160# switch to desktop where a dialog with parent will appear
if( m_pParent && m_pParent->m_nWorkArea != m_nWorkArea && GTK_WIDGET_MAPPED(m_pParent->m_pWindow) )
getDisplay()->getWMAdaptor()->switchToWorkArea( m_pParent->m_nWorkArea );
-
+
if( isFloatGrabWindow() &&
m_pParent &&
m_nFloats == 0 &&
@@ -1327,7 +1327,7 @@ void GtkSalFrame::Show( BOOL bVisible, BOOL bNoActivate )
// metacity-2.24.0/src/core/window.c
//
// if ((focus_window != NULL) && XSERVER_TIME_IS_BEFORE (compare, focus_window->net_wm_user_time))
- // "compare" window focus prevented by other activity
+ // "compare" window focus prevented by other activity
//
// where "compare" is this window
@@ -1351,7 +1351,7 @@ void GtkSalFrame::Show( BOOL bVisible, BOOL bNoActivate )
//nUserTime = gdk_x11_get_server_time(GTK_WIDGET (m_pWindow)->window);
}
lcl_set_user_time( GTK_WIDGET(m_pWindow)->window, nUserTime );
-
+
if( ! bNoActivate && (m_nStyle & SAL_FRAME_STYLE_TOOLWINDOW) )
m_bSetFocusOnMap = true;
@@ -1416,14 +1416,14 @@ void GtkSalFrame::setMinMaxSize()
{
if( m_aMinSize.Width() && m_aMinSize.Height() )
{
- aGeo.min_width = m_aMinSize.Width()+CONTAINER_ADJUSTMENT;
- aGeo.min_height = m_aMinSize.Height()+CONTAINER_ADJUSTMENT;
+ aGeo.min_width = m_aMinSize.Width()+CONTAINER_ADJUSTMENT;
+ aGeo.min_height = m_aMinSize.Height()+CONTAINER_ADJUSTMENT;
aHints |= GDK_HINT_MIN_SIZE;
}
if( m_aMaxSize.Width() && m_aMaxSize.Height() && ! m_bFullscreen )
{
- aGeo.max_width = m_aMaxSize.Width()+CONTAINER_ADJUSTMENT;
- aGeo.max_height = m_aMaxSize.Height()+CONTAINER_ADJUSTMENT;
+ aGeo.max_width = m_aMaxSize.Width()+CONTAINER_ADJUSTMENT;
+ aGeo.max_height = m_aMaxSize.Height()+CONTAINER_ADJUSTMENT;
aHints |= GDK_HINT_MAX_SIZE;
}
}
@@ -1487,8 +1487,8 @@ void GtkSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, USHOR
if( (unsigned long)nWidth != maGeometry.nWidth || (unsigned long)nHeight != maGeometry.nHeight )
bSized = true;
- maGeometry.nWidth = nWidth;
- maGeometry.nHeight = nHeight;
+ maGeometry.nWidth = nWidth;
+ maGeometry.nHeight = nHeight;
if( isChild( false, true ) )
gtk_widget_set_size_request( m_pWindow, nWidth, nHeight );
@@ -1510,10 +1510,10 @@ void GtkSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, USHOR
nX += m_pParent->maGeometry.nX;
nY += m_pParent->maGeometry.nY;
}
-
+
// adjust position to avoid off screen windows
// but allow toolbars to be positioned partly off screen by the user
- Size aScreenSize = GetX11SalData()->GetDisplay()->GetScreenSize( m_nScreen );
+ Size aScreenSize = GetX11SalData()->GetDisplay()->GetScreenSize( m_nScreen );
if( ! (m_nStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION) )
{
if( nX < (long)maGeometry.nLeftDecoration )
@@ -1536,14 +1536,14 @@ void GtkSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, USHOR
if( nY > (long)aScreenSize.Height() - 10 )
nY = (long)aScreenSize.Height() - 10;
}
-
+
if( nX != maGeometry.nX || nY != maGeometry.nY )
bMoved = true;
maGeometry.nX = nX;
maGeometry.nY = nY;
-
+
m_bDefaultPos = false;
-
+
moveWindow( maGeometry.nX, maGeometry.nY );
updateScreenNumber();
@@ -1586,13 +1586,13 @@ void GtkSalFrame::SetWindowState( const SalFrameState* pState )
{
if( ! m_pWindow || ! pState || isChild( true, false ) )
return;
-
+
const ULONG nMaxGeometryMask =
SAL_FRAMESTATE_MASK_X | SAL_FRAMESTATE_MASK_Y |
SAL_FRAMESTATE_MASK_WIDTH | SAL_FRAMESTATE_MASK_HEIGHT |
SAL_FRAMESTATE_MASK_MAXIMIZED_X | SAL_FRAMESTATE_MASK_MAXIMIZED_Y |
SAL_FRAMESTATE_MASK_MAXIMIZED_WIDTH | SAL_FRAMESTATE_MASK_MAXIMIZED_HEIGHT;
-
+
if( (pState->mnMask & SAL_FRAMESTATE_MASK_STATE) &&
! ( m_nState & GDK_WINDOW_STATE_MAXIMIZED ) &&
(pState->mnState & SAL_FRAMESTATE_MAXIMIZED) &&
@@ -1601,7 +1601,7 @@ void GtkSalFrame::SetWindowState( const SalFrameState* pState )
resizeWindow( pState->mnWidth, pState->mnHeight );
moveWindow( pState->mnX, pState->mnY );
m_bDefaultPos = m_bDefaultSize = false;
-
+
maGeometry.nX = pState->mnMaximizedX;
maGeometry.nY = pState->mnMaximizedY;
maGeometry.nWidth = pState->mnMaximizedWidth;
@@ -1616,10 +1616,10 @@ void GtkSalFrame::SetWindowState( const SalFrameState* pState )
SAL_FRAMESTATE_MASK_WIDTH | SAL_FRAMESTATE_MASK_HEIGHT ) )
{
USHORT nPosSizeFlags = 0;
- long nX = pState->mnX - (m_pParent ? m_pParent->maGeometry.nX : 0);
- long nY = pState->mnY - (m_pParent ? m_pParent->maGeometry.nY : 0);
- long nWidth = pState->mnWidth;
- long nHeight = pState->mnHeight;
+ long nX = pState->mnX - (m_pParent ? m_pParent->maGeometry.nX : 0);
+ long nY = pState->mnY - (m_pParent ? m_pParent->maGeometry.nY : 0);
+ long nWidth = pState->mnWidth;
+ long nHeight = pState->mnHeight;
if( pState->mnMask & SAL_FRAMESTATE_MASK_X )
nPosSizeFlags |= SAL_FRAME_POSSIZE_X;
else
@@ -1678,22 +1678,22 @@ BOOL GtkSalFrame::GetWindowState( SalFrameState* pState )
pState->mnMaximizedY = maGeometry.nY;
pState->mnMaximizedWidth = maGeometry.nWidth;
pState->mnMaximizedHeight = maGeometry.nHeight;
- pState->mnMask |= SAL_FRAMESTATE_MASK_MAXIMIZED_X |
- SAL_FRAMESTATE_MASK_MAXIMIZED_Y |
- SAL_FRAMESTATE_MASK_MAXIMIZED_WIDTH |
+ pState->mnMask |= SAL_FRAMESTATE_MASK_MAXIMIZED_X |
+ SAL_FRAMESTATE_MASK_MAXIMIZED_Y |
+ SAL_FRAMESTATE_MASK_MAXIMIZED_WIDTH |
SAL_FRAMESTATE_MASK_MAXIMIZED_HEIGHT;
}
else
{
-
- pState->mnX = maGeometry.nX;
- pState->mnY = maGeometry.nY;
- pState->mnWidth = maGeometry.nWidth;
- pState->mnHeight = maGeometry.nHeight;
+
+ pState->mnX = maGeometry.nX;
+ pState->mnY = maGeometry.nY;
+ pState->mnWidth = maGeometry.nWidth;
+ pState->mnHeight = maGeometry.nHeight;
}
- pState->mnMask |= SAL_FRAMESTATE_MASK_X |
- SAL_FRAMESTATE_MASK_Y |
- SAL_FRAMESTATE_MASK_WIDTH |
+ pState->mnMask |= SAL_FRAMESTATE_MASK_X |
+ SAL_FRAMESTATE_MASK_Y |
+ SAL_FRAMESTATE_MASK_WIDTH |
SAL_FRAMESTATE_MASK_HEIGHT;
return TRUE;
@@ -1703,12 +1703,12 @@ void GtkSalFrame::moveToScreen( int nScreen )
{
if( isChild() )
return;
-
+
if( nScreen < 0 || nScreen >= gdk_display_get_n_screens( getGdkDisplay() ) )
nScreen = m_nScreen;
if( nScreen == m_nScreen )
return;
-
+
GdkScreen* pScreen = gdk_display_get_screen( getGdkDisplay(), nScreen );
if( pScreen )
{
@@ -1718,13 +1718,13 @@ void GtkSalFrame::moveToScreen( int nScreen )
gtk_widget_realize( m_pWindow );
// update system data
GtkSalDisplay* pDisp = getDisplay();
- m_aSystemData.aWindow = GDK_WINDOW_XWINDOW(m_pWindow->window);
- m_aSystemData.pVisual = pDisp->GetVisual( m_nScreen ).GetVisual();
- m_aSystemData.nScreen = nScreen;
- m_aSystemData.nDepth = pDisp->GetVisual( m_nScreen ).GetDepth();
- m_aSystemData.aColormap = pDisp->GetColormap( m_nScreen ).GetXColormap();
- m_aSystemData.pAppContext = NULL;
- m_aSystemData.aShellWindow = m_aSystemData.aWindow;
+ m_aSystemData.aWindow = GDK_WINDOW_XWINDOW(m_pWindow->window);
+ m_aSystemData.pVisual = pDisp->GetVisual( m_nScreen ).GetVisual();
+ m_aSystemData.nScreen = nScreen;
+ m_aSystemData.nDepth = pDisp->GetVisual( m_nScreen ).GetDepth();
+ m_aSystemData.aColormap = pDisp->GetColormap( m_nScreen ).GetXColormap();
+ m_aSystemData.pAppContext = NULL;
+ m_aSystemData.aShellWindow = m_aSystemData.aWindow;
// update graphics if necessary
for( unsigned int i = 0; i < SAL_N_ELEMENTS(m_aGraphics); i++ )
{
@@ -1739,7 +1739,7 @@ void GtkSalFrame::moveToScreen( int nScreen )
std::list< GtkSalFrame* > aChildren = m_aChildren;
for( std::list< GtkSalFrame* >::iterator it = aChildren.begin(); it != aChildren.end(); ++it )
(*it)->moveToScreen( m_nScreen );
-
+
// FIXME: SalObjects
}
@@ -1747,7 +1747,7 @@ void GtkSalFrame::SetScreenNumber( unsigned int nNewScreen )
{
if( nNewScreen == maGeometry.nScreenNumber )
return;
-
+
if( m_pWindow && ! isChild() )
{
GtkSalDisplay* pDisp = getDisplay();
@@ -1755,7 +1755,7 @@ void GtkSalFrame::SetScreenNumber( unsigned int nNewScreen )
{
if( nNewScreen >= pDisp->GetXineramaScreens().size() )
return;
-
+
Rectangle aOldScreenRect( pDisp->GetXineramaScreens()[maGeometry.nScreenNumber] );
Rectangle aNewScreenRect( pDisp->GetXineramaScreens()[nNewScreen] );
bool bVisible = GTK_WIDGET_MAPPED(m_pWindow);
@@ -1886,7 +1886,7 @@ void GtkSalFrame::ShowFullScreen( BOOL bFullScreen, sal_Int32 nScreen )
gtk_window_set_resizable( GTK_WINDOW(m_pWindow), TRUE );
gtk_window_fullscreen( GTK_WINDOW(m_pWindow) );
moveToScreen( nScreen );
- Size aScreenSize = pDisp->GetScreenSize( m_nScreen );
+ Size aScreenSize = pDisp->GetScreenSize( m_nScreen );
maGeometry.nX = 0;
maGeometry.nY = 0;
maGeometry.nWidth = aScreenSize.Width();
@@ -1915,7 +1915,7 @@ void GtkSalFrame::setAutoLock( bool bLock )
{
if( isChild() )
return;
-
+
GdkScreen *pScreen = gtk_window_get_screen( GTK_WINDOW(m_pWindow) );
GdkDisplay *pDisplay = gdk_screen_get_display( pScreen );
GdkWindow *pRootWin = gdk_screen_get_root_window( pScreen );
@@ -2064,7 +2064,7 @@ void GtkSalFrame::StartPresentation( BOOL bStart )
bPreferBlanking, bAllowExposures );
}
#ifdef ENABLE_DBUS
- m_nGSMCookie = dbus_inhibit_gsm(g_get_application_name(), "presentation",
+ m_nGSMCookie = dbus_inhibit_gsm(g_get_application_name(), "presentation",
GDK_WINDOW_XID(m_pWindow->window));
#endif
}
@@ -2133,7 +2133,7 @@ void GtkSalFrame::SetPointer( PointerStyle ePointerStyle )
GdkCursor *pCursor = getDisplay()->getCursor( ePointerStyle );
gdk_window_set_cursor( m_pWindow->window, pCursor );
m_pCurrentCursor = pCursor;
-
+
// #i80791# use grabPointer the same way as CaptureMouse, respective float grab
if( getDisplay()->MouseCaptured( this ) )
grabPointer( TRUE, FALSE );
@@ -2165,7 +2165,7 @@ void GtkSalFrame::grabPointer( BOOL bGrab, BOOL bOwnerEvents )
if( bUseGdkGrab )
{
const int nMask = ( GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK );
-
+
gdk_pointer_grab( m_pWindow->window, bOwnerEvents,
(GdkEventMask) nMask, NULL, m_pCurrentCursor,
GDK_CURRENT_TIME );
@@ -2211,7 +2211,7 @@ void GtkSalFrame::SetPointerPos( long nX, long nY )
pFrame = pFrame->m_pParent;
if( ! pFrame )
return;
-
+
GdkScreen *pScreen = gtk_window_get_screen( GTK_WINDOW(pFrame->m_pWindow) );
GdkDisplay *pDisplay = gdk_screen_get_display( pScreen );
@@ -2348,8 +2348,8 @@ void GtkSalFrame::UpdateSettings( AllSettings& rSettings )
bFreeGraphics = true;
}
- pGraphics->updateSettings( rSettings );
-
+ pGraphics->updateSettings( rSettings );
+
if( bFreeGraphics )
ReleaseGraphics( pGraphics );
}
@@ -2390,7 +2390,7 @@ void GtkSalFrame::createNewWindow( XLIB_Window aNewParent, bool bXEmbed, int nSc
bool bWasVisible = GTK_WIDGET_MAPPED(m_pWindow);
if( bWasVisible )
Show( FALSE );
-
+
if( nScreen < 0 || nScreen >= getDisplay()->GetScreenCount() )
nScreen = m_nScreen;
@@ -2464,18 +2464,18 @@ void GtkSalFrame::createNewWindow( XLIB_Window aNewParent, bool bXEmbed, int nSc
m_aGraphics[i].pGraphics->SetWindow( m_pWindow );
}
}
-
+
if( m_aTitle.Len() )
SetTitle( m_aTitle );
-
+
if( bWasVisible )
Show( TRUE );
-
+
std::list< GtkSalFrame* > aChildren = m_aChildren;
m_aChildren.clear();
for( std::list< GtkSalFrame* >::iterator it = aChildren.begin(); it != aChildren.end(); ++it )
(*it)->createNewWindow( None, false, m_nScreen );
-
+
// FIXME: SalObjects
}
@@ -2505,11 +2505,11 @@ void GtkSalFrame::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
if( m_pRegion )
{
GdkRectangle aRect;
- aRect.x = nX;
- aRect.y = nY;
- aRect.width = nWidth;
- aRect.height = nHeight;
-
+ aRect.x = nX;
+ aRect.y = nY;
+ aRect.width = nWidth;
+ aRect.height = nHeight;
+
gdk_region_union_with_rect( m_pRegion, &aRect );
}
}
@@ -2523,7 +2523,7 @@ void GtkSalFrame::EndSetClipRegion()
bool GtkSalFrame::Dispatch( const XEvent* pEvent )
{
bool bContinueDispatch = true;
-
+
if( pEvent->type == PropertyNotify )
{
vcl_sal::WMAdaptor* pAdaptor = getDisplay()->getWMAdaptor();
@@ -2654,15 +2654,15 @@ gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer
}
switch( pEvent->button )
{
- case 1: aEvent.mnButton = MOUSE_LEFT; break;
- case 2: aEvent.mnButton = MOUSE_MIDDLE; break;
- case 3: aEvent.mnButton = MOUSE_RIGHT; break;
+ case 1: aEvent.mnButton = MOUSE_LEFT; break;
+ case 2: aEvent.mnButton = MOUSE_MIDDLE; break;
+ case 3: aEvent.mnButton = MOUSE_RIGHT; break;
default: return FALSE;
}
- aEvent.mnTime = pEvent->time;
- aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX;
- aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY;
- aEvent.mnCode = GetMouseModCode( pEvent->state );
+ aEvent.mnTime = pEvent->time;
+ aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX;
+ aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY;
+ aEvent.mnCode = GetMouseModCode( pEvent->state );
bool bClosePopups = false;
if( pEvent->type == GDK_BUTTON_PRESS &&
@@ -2694,7 +2694,7 @@ gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer
// --- RTL --- (mirror mouse pos)
if( Application::GetSettings().GetLayoutRTL() )
aEvent.mnX = pThis->maGeometry.nWidth-1-aEvent.mnX;
-
+
vcl::DeletionListener aDel( pThis );
pThis->CallCallback( nEventType, &aEvent );
@@ -2733,7 +2733,7 @@ gboolean GtkSalFrame::signalScroll( GtkWidget*, GdkEvent* pEvent, gpointer frame
GtkSalFrame* pThis = (GtkSalFrame*)frame;
GdkEventScroll* pSEvent = (GdkEventScroll*)pEvent;
- static ULONG nLines = 0;
+ static ULONG nLines = 0;
if( ! nLines )
{
char* pEnv = getenv( "SAL_WHEELLINES" );
@@ -2744,14 +2744,14 @@ gboolean GtkSalFrame::signalScroll( GtkWidget*, GdkEvent* pEvent, gpointer frame
bool bNeg = (pSEvent->direction == GDK_SCROLL_DOWN || pSEvent->direction == GDK_SCROLL_RIGHT );
SalWheelMouseEvent aEvent;
- aEvent.mnTime = pSEvent->time;
- aEvent.mnX = (ULONG)pSEvent->x;
- aEvent.mnY = (ULONG)pSEvent->y;
- aEvent.mnDelta = bNeg ? -120 : 120;
- aEvent.mnNotchDelta = bNeg ? -1 : 1;
- aEvent.mnScrollLines = nLines;
- aEvent.mnCode = GetMouseModCode( pSEvent->state );
- aEvent.mbHorz = (pSEvent->direction == GDK_SCROLL_LEFT || pSEvent->direction == GDK_SCROLL_RIGHT);
+ aEvent.mnTime = pSEvent->time;
+ aEvent.mnX = (ULONG)pSEvent->x;
+ aEvent.mnY = (ULONG)pSEvent->y;
+ aEvent.mnDelta = bNeg ? -120 : 120;
+ aEvent.mnNotchDelta = bNeg ? -1 : 1;
+ aEvent.mnScrollLines = nLines;
+ aEvent.mnCode = GetMouseModCode( pSEvent->state );
+ aEvent.mbHorz = (pSEvent->direction == GDK_SCROLL_LEFT || pSEvent->direction == GDK_SCROLL_RIGHT);
GTK_YIELD_GRAB();
@@ -2769,15 +2769,15 @@ gboolean GtkSalFrame::signalMotion( GtkWidget*, GdkEventMotion* pEvent, gpointer
GtkSalFrame* pThis = (GtkSalFrame*)frame;
SalMouseEvent aEvent;
- aEvent.mnTime = pEvent->time;
- aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX;
- aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY;
- aEvent.mnCode = GetMouseModCode( pEvent->state );
- aEvent.mnButton = 0;
+ aEvent.mnTime = pEvent->time;
+ aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX;
+ aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY;
+ aEvent.mnCode = GetMouseModCode( pEvent->state );
+ aEvent.mnButton = 0;
GTK_YIELD_GRAB();
-
+
// --- RTL --- (mirror mouse pos)
if( Application::GetSettings().GetLayoutRTL() )
aEvent.mnX = pThis->maGeometry.nWidth-1-aEvent.mnX;
@@ -2813,11 +2813,11 @@ gboolean GtkSalFrame::signalCrossing( GtkWidget*, GdkEventCrossing* pEvent, gpoi
{
GtkSalFrame* pThis = (GtkSalFrame*)frame;
SalMouseEvent aEvent;
- aEvent.mnTime = pEvent->time;
- aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX;
- aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY;
- aEvent.mnCode = GetMouseModCode( pEvent->state );
- aEvent.mnButton = 0;
+ aEvent.mnTime = pEvent->time;
+ aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX;
+ aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY;
+ aEvent.mnCode = GetMouseModCode( pEvent->state );
+ aEvent.mnButton = 0;
GTK_YIELD_GRAB();
pThis->CallCallback( (pEvent->type == GDK_ENTER_NOTIFY) ? SALEVENT_MOUSEMOVE : SALEVENT_MOUSELEAVE, &aEvent );
@@ -2884,16 +2884,16 @@ IMPL_LINK( GtkSalFrame, ImplDelayedFullScreenHdl, void*, EMPTYARG )
to fullscreen to be safe
*/
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = getDisplay()->GetDisplay();
- aEvent.xclient.window = GDK_WINDOW_XWINDOW(m_pWindow->window);
- aEvent.xclient.message_type = nStateAtom;
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = 1;
- aEvent.xclient.data.l[1] = nFSAtom;
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = getDisplay()->GetDisplay();
+ aEvent.xclient.window = GDK_WINDOW_XWINDOW(m_pWindow->window);
+ aEvent.xclient.message_type = nStateAtom;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = 1;
+ aEvent.xclient.data.l[1] = nFSAtom;
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( getDisplay()->GetDisplay(),
getDisplay()->GetRootWindow( m_nScreen ),
False,
@@ -2910,7 +2910,7 @@ gboolean GtkSalFrame::signalMap( GtkWidget*, GdkEvent*, gpointer frame )
GtkSalFrame* pThis = (GtkSalFrame*)frame;
GTK_YIELD_GRAB();
-
+
if( pThis->m_bFullscreen )
{
/* #i110881# workaorund a gtk issue (see https://bugzilla.redhat.com/show_bug.cgi?id=623191#c8)
@@ -2918,7 +2918,7 @@ gboolean GtkSalFrame::signalMap( GtkWidget*, GdkEvent*, gpointer frame )
*/
Application::PostUserEvent( LINK( pThis, GtkSalFrame, ImplDelayedFullScreenHdl ) );
}
-
+
bool bSetFocus = pThis->m_bSetFocusOnMap;
pThis->m_bSetFocusOnMap = false;
if( ImplGetSVData()->mbIsTestTool )
@@ -2939,7 +2939,7 @@ gboolean GtkSalFrame::signalMap( GtkWidget*, GdkEvent*, gpointer frame )
GDK_WINDOW_XWINDOW( GTK_WIDGET(pThis->m_pWindow)->window),
RevertToParent, CurrentTime );
}
-
+
pThis->CallCallback( SALEVENT_RESIZE, NULL );
return FALSE;
@@ -2993,8 +2993,8 @@ gboolean GtkSalFrame::signalConfigure( GtkWidget*, GdkEventConfigure* pEvent, gp
if( x != pThis->maGeometry.nX || y != pThis->maGeometry.nY )
{
bMoved = true;
- pThis->maGeometry.nX = x;
- pThis->maGeometry.nY = y;
+ pThis->maGeometry.nX = x;
+ pThis->maGeometry.nY = y;
}
/* #i86302#
* for non sizeable windows we set the min and max hint for the window manager to
@@ -3009,20 +3009,20 @@ gboolean GtkSalFrame::signalConfigure( GtkWidget*, GdkEventConfigure* pEvent, gp
if( pEvent->width != (int)pThis->maGeometry.nWidth || pEvent->height != (int)pThis->maGeometry.nHeight )
{
bSized = true;
- pThis->maGeometry.nWidth = pEvent->width;
- pThis->maGeometry.nHeight = pEvent->height;
+ pThis->maGeometry.nWidth = pEvent->width;
+ pThis->maGeometry.nHeight = pEvent->height;
}
}
-
+
// update decoration hints
if( ! (pThis->m_nStyle & SAL_FRAME_STYLE_PLUG) )
{
GdkRectangle aRect;
gdk_window_get_frame_extents( GTK_WIDGET(pThis->m_pWindow)->window, &aRect );
- pThis->maGeometry.nTopDecoration = y - aRect.y;
- pThis->maGeometry.nBottomDecoration = aRect.y + aRect.height - y - pEvent->height;
- pThis->maGeometry.nLeftDecoration = x - aRect.x;
- pThis->maGeometry.nRightDecoration = aRect.x + aRect.width - x - pEvent->width;
+ pThis->maGeometry.nTopDecoration = y - aRect.y;
+ pThis->maGeometry.nBottomDecoration = aRect.y + aRect.height - y - pEvent->height;
+ pThis->maGeometry.nLeftDecoration = x - aRect.x;
+ pThis->maGeometry.nRightDecoration = aRect.x + aRect.width - x - pEvent->width;
}
else
{
@@ -3115,7 +3115,7 @@ gboolean GtkSalFrame::signalKey( GtkWidget*, GdkEventKey* pEvent, gpointer frame
// except Mac OS X
case GDK_Meta_L:
case GDK_Super_L:
- nExtModMask = MODKEY_LMOD3;
+ nExtModMask = MODKEY_LMOD3;
nModMask = KEY_MOD3;
break;
case GDK_Meta_R:
@@ -3202,7 +3202,7 @@ void GtkSalFrame::signalStyleSet( GtkWidget*, GtkStyle* pPrevious, gpointer fram
aWin,
pThis->m_hBackgroundPixmap );
}
-
+
if( ! pThis->m_pParent )
{
// signalize theme changed for NWF caches
@@ -3216,7 +3216,7 @@ gboolean GtkSalFrame::signalState( GtkWidget*, GdkEvent* pEvent, gpointer frame
GtkSalFrame* pThis = (GtkSalFrame*)frame;
if( (pThis->m_nState & GDK_WINDOW_STATE_ICONIFIED) != (pEvent->window_state.new_window_state & GDK_WINDOW_STATE_ICONIFIED ) )
pThis->getDisplay()->SendInternalEvent( pThis, NULL, SALEVENT_RESIZE );
-
+
if( (pEvent->window_state.new_window_state & GDK_WINDOW_STATE_MAXIMIZED) &&
! (pThis->m_nState & GDK_WINDOW_STATE_MAXIMIZED) )
{
@@ -3343,15 +3343,15 @@ void GtkSalFrame::IMHandler::setInputContext( SalInputContext* )
void GtkSalFrame::IMHandler::sendEmptyCommit()
{
vcl::DeletionListener aDel( m_pFrame );
-
+
SalExtTextInputEvent aEmptyEv;
- aEmptyEv.mnTime = 0;
- aEmptyEv.mpTextAttr = 0;
- aEmptyEv.maText = String();
- aEmptyEv.mnCursorPos = 0;
- aEmptyEv.mnCursorFlags = 0;
- aEmptyEv.mnDeltaStart = 0;
- aEmptyEv.mbOnlyCursor = False;
+ aEmptyEv.mnTime = 0;
+ aEmptyEv.mpTextAttr = 0;
+ aEmptyEv.maText = String();
+ aEmptyEv.mnCursorPos = 0;
+ aEmptyEv.mnCursorFlags = 0;
+ aEmptyEv.mnDeltaStart = 0;
+ aEmptyEv.mbOnlyCursor = False;
m_pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&aEmptyEv );
if( ! aDel.isDeleted() )
m_pFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, NULL );
@@ -3417,7 +3417,7 @@ bool GtkSalFrame::IMHandler::handleKeyEvent( GdkEventKey* pEvent )
// for us.
m_aPrevKeyPresses.push_back( PreviousKeyPress(pEvent) );
m_nPrevKeyPresses++;
-
+
// Also pop off the earliest key press event if there are more than 10
// already.
while (m_nPrevKeyPresses > 10)
@@ -3425,7 +3425,7 @@ bool GtkSalFrame::IMHandler::handleKeyEvent( GdkEventKey* pEvent )
m_aPrevKeyPresses.pop_front();
m_nPrevKeyPresses--;
}
-
+
GObject* pRef = G_OBJECT( g_object_ref( G_OBJECT( m_pIMContext ) ) );
// #i51353# update spot location on every key input since we cannot
@@ -3433,7 +3433,7 @@ bool GtkSalFrame::IMHandler::handleKeyEvent( GdkEventKey* pEvent )
updateIMSpotLocation();
if( aDel.isDeleted() )
return true;
-
+
gboolean bResult = gtk_im_context_filter_keypress( m_pIMContext, pEvent );
g_object_unref( pRef );
@@ -3460,7 +3460,7 @@ bool GtkSalFrame::IMHandler::handleKeyEvent( GdkEventKey* pEvent )
}
}
}
-
+
// Determine if we got an earlier key press event corresponding to this key release
if (pEvent->type == GDK_KEY_RELEASE)
{
@@ -3470,7 +3470,7 @@ bool GtkSalFrame::IMHandler::handleKeyEvent( GdkEventKey* pEvent )
if( aDel.isDeleted() )
return true;
-
+
m_bPreeditJustChanged = false;
std::list<PreviousKeyPress>::iterator iter = m_aPrevKeyPresses.begin();
@@ -3491,7 +3491,7 @@ bool GtkSalFrame::IMHandler::handleKeyEvent( GdkEventKey* pEvent )
if( bResult )
return true;
}
-
+
return false;
}
@@ -3539,17 +3539,17 @@ void GtkSalFrame::IMHandler::signalIMCommit( GtkIMContext* CONTEXT_ARG, gchar* p
const bool bWasPreedit =
(pThis->m_aInputEvent.mpTextAttr != 0) ||
pThis->m_bPreeditJustChanged;
-
- pThis->m_aInputEvent.mnTime = 0;
- pThis->m_aInputEvent.mpTextAttr = 0;
- pThis->m_aInputEvent.maText = String( pText, RTL_TEXTENCODING_UTF8 );
- pThis->m_aInputEvent.mnCursorPos = pThis->m_aInputEvent.maText.Len();
- pThis->m_aInputEvent.mnCursorFlags = 0;
- pThis->m_aInputEvent.mnDeltaStart = 0;
- pThis->m_aInputEvent.mbOnlyCursor = False;
-
+
+ pThis->m_aInputEvent.mnTime = 0;
+ pThis->m_aInputEvent.mpTextAttr = 0;
+ pThis->m_aInputEvent.maText = String( pText, RTL_TEXTENCODING_UTF8 );
+ pThis->m_aInputEvent.mnCursorPos = pThis->m_aInputEvent.maText.Len();
+ pThis->m_aInputEvent.mnCursorFlags = 0;
+ pThis->m_aInputEvent.mnDeltaStart = 0;
+ pThis->m_aInputEvent.mbOnlyCursor = False;
+
pThis->m_aInputFlags.clear();
-
+
/* necessary HACK: all keyboard input comes in here as soon as a IMContext is set
* which is logical and consequent. But since even simple input like
* <space> comes through the commit signal instead of signalKey
@@ -3570,7 +3570,7 @@ void GtkSalFrame::IMHandler::signalIMCommit( GtkIMContext* CONTEXT_ARG, gchar* p
{
const PreviousKeyPress& rKP = pThis->m_aPrevKeyPresses.back();
sal_Unicode aOrigCode = pThis->m_aInputEvent.maText.GetChar(0);
-
+
if( checkSingleKeyCommitHack( rKP.keyval, aOrigCode ) )
{
pThis->m_pFrame->doKeyCallback( rKP.state, rKP.keyval, rKP.hardware_keycode, rKP.group, rKP.time, aOrigCode, true, true );
@@ -3604,9 +3604,9 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext*, gpointer im_
{
GtkSalFrame::IMHandler* pThis = (GtkSalFrame::IMHandler*)im_handler;
- char* pText = NULL;
- PangoAttrList* pAttrs = NULL;
- gint nCursorPos = 0;
+ char* pText = NULL;
+ PangoAttrList* pAttrs = NULL;
+ gint nCursorPos = 0;
gtk_im_context_get_preedit_string( pThis->m_pIMContext,
&pText,
@@ -3620,16 +3620,16 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext*, gpointer im_
if( pThis->m_aInputEvent.maText.Len() == 0 )
{
g_free( pText );
- return;
+ return;
}
}
pThis->m_bPreeditJustChanged = true;
bool bEndPreedit = (!pText || !*pText) && pThis->m_aInputEvent.mpTextAttr != NULL;
- pThis->m_aInputEvent.mnTime = 0;
- pThis->m_aInputEvent.maText = String( pText, RTL_TEXTENCODING_UTF8 );
- pThis->m_aInputEvent.mnCursorPos = nCursorPos;
+ pThis->m_aInputEvent.mnTime = 0;
+ pThis->m_aInputEvent.maText = String( pText, RTL_TEXTENCODING_UTF8 );
+ pThis->m_aInputEvent.mnCursorPos = nCursorPos;
pThis->m_aInputEvent.mnCursorFlags = 0;
pThis->m_aInputEvent.mnDeltaStart = 0;
pThis->m_aInputEvent.mbOnlyCursor = False;
@@ -3643,21 +3643,21 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext*, gpointer im_
GSList *tmp_list = NULL;
gint start, end;
guint sal_attr = 0;
-
+
pango_attr_iterator_range (iter, &start, &end);
if (end == G_MAXINT)
end = pText ? strlen (pText) : 0;
if (end == start)
continue;
-
+
start = g_utf8_pointer_to_offset (pText, pText + start);
end = g_utf8_pointer_to_offset (pText, pText + end);
-
+
tmp_list = attr_list = pango_attr_iterator_get_attrs (iter);
while (tmp_list)
{
PangoAttribute *pango_attr = (PangoAttribute *)(tmp_list->data);
-
+
switch (pango_attr->klass->type)
{
case PANGO_ATTR_BACKGROUND:
@@ -3678,21 +3678,21 @@ void GtkSalFrame::IMHandler::signalIMPreeditChanged( GtkIMContext*, gpointer im_
if (sal_attr == 0)
sal_attr |= SAL_EXTTEXTINPUT_ATTR_UNDERLINE;
g_slist_free (attr_list);
-
+
// Set the sal attributes on our text
for (int i = start; i < end; i++)
pThis->m_aInputFlags[i] |= sal_attr;
} while (pango_attr_iterator_next (iter));
- pThis->m_aInputEvent.mpTextAttr = &pThis->m_aInputFlags[0];
+ pThis->m_aInputEvent.mpTextAttr = &pThis->m_aInputFlags[0];
g_free( pText );
pango_attr_list_unref( pAttrs );
GTK_YIELD_GRAB();
-
+
vcl::DeletionListener aDel( pThis->m_pFrame );
-
+
pThis->m_pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&pThis->m_aInputEvent);
if( bEndPreedit && ! aDel.isDeleted() )
pThis->doCallEndExtTextInput();
@@ -3710,14 +3710,14 @@ void GtkSalFrame::IMHandler::signalIMPreeditEnd( GtkIMContext*, gpointer im_hand
GTK_YIELD_GRAB();
pThis->m_bPreeditJustChanged = true;
-
+
vcl::DeletionListener aDel( pThis->m_pFrame );
pThis->doCallEndExtTextInput();
if( ! aDel.isDeleted() )
pThis->updateIMSpotLocation();
}
-uno::Reference<accessibility::XAccessibleEditableText>
+uno::Reference<accessibility::XAccessibleEditableText>
FindFocus(uno::Reference< accessibility::XAccessibleContext > xContext)
{
if (!xContext.is())
@@ -3777,7 +3777,7 @@ gboolean GtkSalFrame::IMHandler::signalIMRetrieveSurrounding( GtkIMContext* pCon
return FALSE;
rtl::OString sUTF = rtl::OUStringToOString(sAllText, RTL_TEXTENCODING_UTF8);
rtl::OUString sCursorText(sAllText, nPosition);
- gtk_im_context_set_surrounding(pContext, sUTF.getStr(), sUTF.getLength(),
+ gtk_im_context_set_surrounding(pContext, sUTF.getStr(), sUTF.getLength(),
rtl::OUStringToOString(sCursorText, RTL_TEXTENCODING_UTF8).getLength());
return TRUE;
}
@@ -3785,7 +3785,7 @@ gboolean GtkSalFrame::IMHandler::signalIMRetrieveSurrounding( GtkIMContext* pCon
return FALSE;
}
-gboolean GtkSalFrame::IMHandler::signalIMDeleteSurrounding( GtkIMContext*, gint offset, gint nchars,
+gboolean GtkSalFrame::IMHandler::signalIMDeleteSurrounding( GtkIMContext*, gint offset, gint nchars,
gpointer /*im_handler*/ )
{
uno::Reference<accessibility::XAccessibleEditableText> xText = lcl_GetxText();
diff --git a/vcl/unx/gtk/window/gtkobject.cxx b/vcl/unx/gtk/window/gtkobject.cxx
index e3d8dd2d2ce0..7308dabfae27 100644
--- a/vcl/unx/gtk/window/gtkobject.cxx
+++ b/vcl/unx/gtk/window/gtkobject.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@
#include <plugins/gtk/gtkdata.hxx>
#include <plugins/gtk/gtkinst.hxx>
-GtkSalObject::GtkSalObject( GtkSalFrame* pParent, BOOL bShow )
+GtkSalObject::GtkSalObject( GtkSalFrame* pParent, BOOL bShow )
: m_pSocket( NULL ),
m_pRegion( NULL )
{
@@ -63,25 +63,25 @@ GtkSalObject::GtkSalObject( GtkSalFrame* pParent, BOOL bShow )
//system data
SalDisplay* pDisp = GetX11SalData()->GetDisplay();
- m_aSystemData.nSize = sizeof( SystemChildData );
- m_aSystemData.pDisplay = pDisp->GetDisplay();
- m_aSystemData.aWindow = GDK_WINDOW_XWINDOW(m_pSocket->window);
- m_aSystemData.pSalFrame = NULL;
- m_aSystemData.pWidget = m_pSocket;
- m_aSystemData.pVisual = pDisp->GetVisual(pParent->getScreenNumber()).GetVisual();
- m_aSystemData.nScreen = pParent->getScreenNumber();
- m_aSystemData.nDepth = pDisp->GetVisual(pParent->getScreenNumber()).GetDepth();
- m_aSystemData.aColormap = pDisp->GetColormap(pParent->getScreenNumber()).GetXColormap();
- m_aSystemData.pAppContext = NULL;
- m_aSystemData.aShellWindow = GDK_WINDOW_XWINDOW(GTK_WIDGET(pParent->getWindow())->window);
- m_aSystemData.pShellWidget = GTK_WIDGET(pParent->getWindow());
+ m_aSystemData.nSize = sizeof( SystemChildData );
+ m_aSystemData.pDisplay = pDisp->GetDisplay();
+ m_aSystemData.aWindow = GDK_WINDOW_XWINDOW(m_pSocket->window);
+ m_aSystemData.pSalFrame = NULL;
+ m_aSystemData.pWidget = m_pSocket;
+ m_aSystemData.pVisual = pDisp->GetVisual(pParent->getScreenNumber()).GetVisual();
+ m_aSystemData.nScreen = pParent->getScreenNumber();
+ m_aSystemData.nDepth = pDisp->GetVisual(pParent->getScreenNumber()).GetDepth();
+ m_aSystemData.aColormap = pDisp->GetColormap(pParent->getScreenNumber()).GetXColormap();
+ m_aSystemData.pAppContext = NULL;
+ m_aSystemData.aShellWindow = GDK_WINDOW_XWINDOW(GTK_WIDGET(pParent->getWindow())->window);
+ m_aSystemData.pShellWidget = GTK_WIDGET(pParent->getWindow());
g_signal_connect( G_OBJECT(m_pSocket), "button-press-event", G_CALLBACK(signalButton), this );
g_signal_connect( G_OBJECT(m_pSocket), "button-release-event", G_CALLBACK(signalButton), this );
g_signal_connect( G_OBJECT(m_pSocket), "focus-in-event", G_CALLBACK(signalFocus), this );
g_signal_connect( G_OBJECT(m_pSocket), "focus-out-event", G_CALLBACK(signalFocus), this );
g_signal_connect( G_OBJECT(m_pSocket), "destroy", G_CALLBACK(signalDestroy), this );
-
+
// #i59255# necessary due to sync effects with java child windows
pParent->Sync();
}
@@ -126,11 +126,11 @@ void GtkSalObject::BeginSetClipRegion( ULONG )
void GtkSalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
{
GdkRectangle aRect;
- aRect.x = nX;
- aRect.y = nY;
- aRect.width = nWidth;
- aRect.height = nHeight;
-
+ aRect.x = nX;
+ aRect.y = nY;
+ aRect.width = nWidth;
+ aRect.height = nHeight;
+
gdk_region_union_with_rect( m_pRegion, &aRect );
}
@@ -183,7 +183,7 @@ const SystemEnvData* GtkSalObject::GetSystemData() const
return &m_aSystemData;
}
-
+
gboolean GtkSalObject::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer object )
{
GtkSalObject* pThis = (GtkSalObject*)object;
diff --git a/vcl/unx/headless/svpbmp.cxx b/vcl/unx/headless/svpbmp.cxx
index 39f74e742550..fddc36753878 100644
--- a/vcl/unx/headless/svpbmp.cxx
+++ b/vcl/unx/headless/svpbmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,8 +43,8 @@ SvpSalBitmap::~SvpSalBitmap()
{
}
-bool SvpSalBitmap::Create( const Size& rSize,
- USHORT nBitCount,
+bool SvpSalBitmap::Create( const Size& rSize,
+ USHORT nBitCount,
const BitmapPalette& rPalette )
{
sal_uInt32 nFormat = SVP_DEFAULT_BITMAP_FORMAT;
@@ -135,7 +135,7 @@ Size SvpSalBitmap::GetSize() const
B2IVector aVec( m_aBitmap->getSize() );
aSize = Size( aVec.getX(), aVec.getY() );
}
-
+
return aSize;
}
@@ -146,7 +146,7 @@ USHORT SvpSalBitmap::GetBitCount() const
nDepth = getBitCountFromScanlineFormat( m_aBitmap->getScanlineFormat() );
return nDepth;
}
-
+
BitmapBuffer* SvpSalBitmap::AcquireBuffer( bool )
{
BitmapBuffer* pBuf = NULL;
@@ -299,7 +299,7 @@ void SvpSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
sal_uInt32 nEntries = 1U << nBitCount;
boost::shared_ptr< std::vector<basebmp::Color> > pPal(
- new std::vector<basebmp::Color>( nEntries,
+ new std::vector<basebmp::Color>( nEntries,
basebmp::Color(COL_WHITE)));
const sal_uInt32 nColors = std::min(
(sal_uInt32)pBuffer->maPalette.GetEntryCount(),
@@ -309,9 +309,9 @@ void SvpSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
const BitmapColor& rCol = pBuffer->maPalette[i];
(*pPal)[i] = basebmp::Color( rCol.GetRed(), rCol.GetGreen(), rCol.GetBlue() );
}
-
- m_aBitmap = basebmp::createBitmapDevice( m_aBitmap->getSize(),
- m_aBitmap->isTopDown(),
+
+ m_aBitmap = basebmp::createBitmapDevice( m_aBitmap->getSize(),
+ m_aBitmap->isTopDown(),
m_aBitmap->getScanlineFormat(),
m_aBitmap->getBuffer(),
pPal );
diff --git a/vcl/unx/headless/svpbmp.hxx b/vcl/unx/headless/svpbmp.hxx
index 5ce5f5bff770..f8810acd0fbd 100644
--- a/vcl/unx/headless/svpbmp.hxx
+++ b/vcl/unx/headless/svpbmp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,31 +38,31 @@ class SvpSalBitmap : public SalBitmap, public SvpElement
public:
SvpSalBitmap() {}
virtual ~SvpSalBitmap();
-
+
const basebmp::BitmapDeviceSharedPtr& getBitmap() const { return m_aBitmap; }
void setBitmap( const basebmp::BitmapDeviceSharedPtr& rSrc ) { m_aBitmap = rSrc; }
-
+
// SvpElement
virtual const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aBitmap; }
-
+
// SalBitmap
- virtual bool Create( const Size& rSize,
- USHORT nBitCount,
+ virtual bool Create( const Size& rSize,
+ USHORT nBitCount,
const BitmapPalette& rPal );
- virtual bool Create( const SalBitmap& rSalBmp );
- virtual bool Create( const SalBitmap& rSalBmp,
+ virtual bool Create( const SalBitmap& rSalBmp );
+ virtual bool Create( const SalBitmap& rSalBmp,
SalGraphics* pGraphics );
- virtual bool Create( const SalBitmap& rSalBmp,
+ virtual bool Create( const SalBitmap& rSalBmp,
USHORT nNewBitCount );
virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
Size& rSize,
bool bMask = false );
- virtual void Destroy();
- virtual Size GetSize() const;
- virtual USHORT GetBitCount() const;
-
- virtual BitmapBuffer* AcquireBuffer( bool bReadOnly );
- virtual void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
+ virtual void Destroy();
+ virtual Size GetSize() const;
+ virtual USHORT GetBitCount() const;
+
+ virtual BitmapBuffer* AcquireBuffer( bool bReadOnly );
+ virtual void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
virtual bool GetSystemData( BitmapSystemData& rData );
};
diff --git a/vcl/unx/headless/svpdummies.cxx b/vcl/unx/headless/svpdummies.cxx
index 37c92faf92c9..3b6a61fdae5e 100644
--- a/vcl/unx/headless/svpdummies.cxx
+++ b/vcl/unx/headless/svpdummies.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,17 +33,17 @@
// SalObject
SvpSalObject::SvpSalObject()
{
- m_aSystemChildData.nSize = sizeof( SystemChildData );
- m_aSystemChildData.pDisplay = NULL;
- m_aSystemChildData.aWindow = 0;
+ m_aSystemChildData.nSize = sizeof( SystemChildData );
+ m_aSystemChildData.pDisplay = NULL;
+ m_aSystemChildData.aWindow = 0;
m_aSystemChildData.pSalFrame = 0;
- m_aSystemChildData.pWidget = 0;
- m_aSystemChildData.pVisual = 0;
- m_aSystemChildData.nDepth = 0;
- m_aSystemChildData.aColormap = 0;
- m_aSystemChildData.pAppContext = NULL;
- m_aSystemChildData.aShellWindow = 0;
- m_aSystemChildData.pShellWidget = NULL;
+ m_aSystemChildData.pWidget = 0;
+ m_aSystemChildData.pVisual = 0;
+ m_aSystemChildData.nDepth = 0;
+ m_aSystemChildData.aColormap = 0;
+ m_aSystemChildData.pAppContext = NULL;
+ m_aSystemChildData.aShellWindow = 0;
+ m_aSystemChildData.pShellWidget = NULL;
}
SvpSalObject::~SvpSalObject()
diff --git a/vcl/unx/headless/svpdummies.hxx b/vcl/unx/headless/svpdummies.hxx
index 98cf2f5ebb92..f005e4276f9a 100644
--- a/vcl/unx/headless/svpdummies.hxx
+++ b/vcl/unx/headless/svpdummies.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,21 +44,21 @@ public:
virtual ~SvpSalObject();
// overload all pure virtual methods
- virtual void ResetClipRegion();
- virtual USHORT GetClipRegionType();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
+ virtual void ResetClipRegion();
+ virtual USHORT GetClipRegionType();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
- virtual void Show( BOOL bVisible );
- virtual void Enable( BOOL nEnable );
- virtual void GrabFocus();
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
+ virtual void Show( BOOL bVisible );
+ virtual void Enable( BOOL nEnable );
+ virtual void GrabFocus();
- virtual void SetBackground();
- virtual void SetBackground( SalColor nSalColor );
+ virtual void SetBackground();
+ virtual void SetBackground( SalColor nSalColor );
- virtual const SystemEnvData* GetSystemData() const;
+ virtual const SystemEnvData* GetSystemData() const;
};
class SvpImeStatus : public SalI18NImeStatus
@@ -84,7 +84,7 @@ class SvpSalSystem : public SalSystem
virtual Rectangle GetDisplayWorkAreaPosSizePixel( unsigned int nScreen );
virtual rtl::OUString GetScreenName( unsigned int nScreen );
-
+
virtual int ShowNativeMessageBox( const String& rTitle,
const String& rMessage,
int nButtonCombination,
diff --git a/vcl/unx/headless/svpelement.cxx b/vcl/unx/headless/svpelement.cxx
index 08dad9afb5cc..ee3256085bd2 100644
--- a/vcl/unx/headless/svpelement.cxx
+++ b/vcl/unx/headless/svpelement.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,16 +58,16 @@ class SvpElementContainer
std::list< SvpElement* > m_aElements;
int m_nSocket;
oslThread m_aThread;
-
+
SvpElementContainer();
~SvpElementContainer();
public:
void registerElement( SvpElement* pElement ) { m_aElements.push_back(pElement); }
void deregisterElement( SvpElement* pElement ) { m_aElements.remove(pElement); }
-
+
void run();
DECL_LINK(processRequest,void*);
-
+
static SvpElementContainer& get();
};
@@ -87,7 +87,7 @@ SvpElementContainer::SvpElementContainer()
if( m_nSocket >= 0)
{
int nOn = 1;
- if( setsockopt(m_nSocket, SOL_SOCKET, SO_REUSEADDR,
+ if( setsockopt(m_nSocket, SOL_SOCKET, SO_REUSEADDR,
(char*)&nOn, sizeof(nOn)) )
{
perror( "SvpElementContainer: changing socket options failed" );
@@ -166,7 +166,7 @@ static const char* matchType( SvpElement* pEle )
IMPL_LINK( SvpElementContainer, processRequest, void*, pSocket )
{
int nFile = (int)pSocket;
-
+
rtl::OStringBuffer aBuf( 256 ), aAnswer( 256 );
char c;
while( read( nFile, &c, 1 ) && c != '\n' )
@@ -229,7 +229,7 @@ IMPL_LINK( SvpElementContainer, processRequest, void*, pSocket )
}
write( nFile, aAnswer.getStr(), aAnswer.getLength() );
close( nFile );
-
+
return 0;
}
diff --git a/vcl/unx/headless/svpelement.hxx b/vcl/unx/headless/svpelement.hxx
index c7f647cf3a03..24302d5b6b14 100644
--- a/vcl/unx/headless/svpelement.hxx
+++ b/vcl/unx/headless/svpelement.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ class SvpElement
protected:
SvpElement();
virtual ~SvpElement();
- public:
+ public:
virtual const basebmp::BitmapDeviceSharedPtr& getDevice() const = 0;
static sal_uInt32 getBitCountFromScanlineFormat( sal_Int32 nFormat );
diff --git a/vcl/unx/headless/svpframe.cxx b/vcl/unx/headless/svpframe.cxx
index ab86c3d851b2..9d1f89b385e4 100644
--- a/vcl/unx/headless/svpframe.cxx
+++ b/vcl/unx/headless/svpframe.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ using namespace basegfx;
SvpSalFrame* SvpSalFrame::s_pFocusFrame = NULL;
-SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
+SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
SalFrame* pParent,
ULONG nSalFrameStyle,
SystemParentData* ) :
@@ -51,24 +51,24 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance,
m_nMaxWidth( 0 ),
m_nMaxHeight( 0 )
{
- m_aSystemChildData.nSize = sizeof( SystemChildData );
- m_aSystemChildData.pDisplay = NULL;
- m_aSystemChildData.aWindow = 0;
- m_aSystemChildData.pSalFrame = this;
- m_aSystemChildData.pWidget = NULL;
- m_aSystemChildData.pVisual = NULL;
- m_aSystemChildData.nDepth = 24;
- m_aSystemChildData.aColormap = 0;
- m_aSystemChildData.pAppContext = NULL;
- m_aSystemChildData.aShellWindow = 0;
- m_aSystemChildData.pShellWidget = NULL;
-
+ m_aSystemChildData.nSize = sizeof( SystemChildData );
+ m_aSystemChildData.pDisplay = NULL;
+ m_aSystemChildData.aWindow = 0;
+ m_aSystemChildData.pSalFrame = this;
+ m_aSystemChildData.pWidget = NULL;
+ m_aSystemChildData.pVisual = NULL;
+ m_aSystemChildData.nDepth = 24;
+ m_aSystemChildData.aColormap = 0;
+ m_aSystemChildData.pAppContext = NULL;
+ m_aSystemChildData.aShellWindow = 0;
+ m_aSystemChildData.pShellWidget = NULL;
+
if( m_pParent )
m_pParent->m_aChildren.push_back( this );
-
+
if( m_pInstance )
m_pInstance->registerFrame( this );
-
+
SetPosSize( 0, 0, 800, 600, SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT );
}
@@ -76,14 +76,14 @@ SvpSalFrame::~SvpSalFrame()
{
if( m_pInstance )
m_pInstance->deregisterFrame( this );
-
+
std::list<SvpSalFrame*> Children = m_aChildren;
for( std::list<SvpSalFrame*>::iterator it = Children.begin();
it != Children.end(); ++it )
(*it)->SetParent( m_pParent );
if( m_pParent )
m_pParent->m_aChildren.remove( this );
-
+
if( s_pFocusFrame == this )
{
s_pFocusFrame = NULL;
@@ -305,7 +305,7 @@ void SvpSalFrame::SetWindowState( const SalFrameState *pState )
nWidth = pState->mnWidth;
if (pState->mnMask & SAL_FRAMESTATE_MASK_HEIGHT)
nHeight = pState->mnHeight;
-
+
SetPosSize( nX, nY, nWidth, nHeight,
SAL_FRAME_POSSIZE_X | SAL_FRAME_POSSIZE_Y |
SAL_FRAME_POSSIZE_WIDTH | SAL_FRAME_POSSIZE_HEIGHT );
@@ -315,8 +315,8 @@ void SvpSalFrame::SetWindowState( const SalFrameState *pState )
BOOL SvpSalFrame::GetWindowState( SalFrameState* pState )
{
pState->mnState = SAL_FRAMESTATE_NORMAL;
- pState->mnX = maGeometry.nX;
- pState->mnY = maGeometry.nY;
+ pState->mnX = maGeometry.nX;
+ pState->mnY = maGeometry.nY;
pState->mnWidth = maGeometry.nWidth;
pState->mnHeight = maGeometry.nHeight;
pState->mnMask = _FRAMESTATE_MASK_GEOMETRY | SAL_FRAMESTATE_MASK_STATE;
diff --git a/vcl/unx/headless/svpframe.hxx b/vcl/unx/headless/svpframe.hxx
index a552eff871b4..7b4f92a379cc 100644
--- a/vcl/unx/headless/svpframe.hxx
+++ b/vcl/unx/headless/svpframe.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -25,7 +25,7 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
+
#ifndef _SVP_SVPFRAME_HXX
#include <vcl/salframe.hxx>
@@ -41,7 +41,7 @@ class SvpSalGraphics;
class SvpSalFrame : public SalFrame, public SvpElement
{
SvpSalInstance* m_pInstance;
- SvpSalFrame* m_pParent; // pointer to parent frame
+ SvpSalFrame* m_pParent; // pointer to parent frame
std::list< SvpSalFrame* > m_aChildren; // List of child frames
ULONG m_nStyle;
bool m_bVisible;
@@ -51,10 +51,10 @@ class SvpSalFrame : public SalFrame, public SvpElement
long m_nMaxHeight;
SystemEnvData m_aSystemChildData;
-
+
basebmp::BitmapDeviceSharedPtr m_aFrame;
std::list< SvpSalGraphics* > m_aGraphics;
-
+
static SvpSalFrame* s_pFocusFrame;
public:
SvpSalFrame( SvpSalInstance* pInstance,
@@ -62,66 +62,66 @@ public:
ULONG nSalFrameStyle,
SystemParentData* pSystemParent = NULL );
virtual ~SvpSalFrame();
-
+
void GetFocus();
void LoseFocus();
void PostPaint() const;
-
+
// SvpElement
virtual const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aFrame; }
// SalFrame
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL PostEvent( void* pData );
+ virtual BOOL PostEvent( void* pData );
- virtual void SetTitle( const XubString& rTitle );
- virtual void SetIcon( USHORT nIcon );
- virtual void SetMenu( SalMenu* pMenu );
+ virtual void SetTitle( const XubString& rTitle );
+ virtual void SetIcon( USHORT nIcon );
+ virtual void SetMenu( SalMenu* pMenu );
virtual void DrawMenuBar();
virtual void SetExtendedFrameStyle( SalExtStyle nExtStyle );
- virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
- virtual void Enable( BOOL bEnable );
+ virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
+ virtual void Enable( BOOL bEnable );
virtual void SetMinClientSize( long nWidth, long nHeight );
virtual void SetMaxClientSize( long nWidth, long nHeight );
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
- virtual void GetClientSize( long& rWidth, long& rHeight );
- virtual void GetWorkArea( Rectangle& rRect );
- virtual SalFrame* GetParent() const;
- virtual void SetWindowState( const SalFrameState* pState );
- virtual BOOL GetWindowState( SalFrameState* pState );
- virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
- virtual void StartPresentation( BOOL bStart );
- virtual void SetAlwaysOnTop( BOOL bOnTop );
- virtual void ToTop( USHORT nFlags );
- virtual void SetPointer( PointerStyle ePointerStyle );
- virtual void CaptureMouse( BOOL bMouse );
- virtual void SetPointerPos( long nX, long nY );
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
+ virtual void GetClientSize( long& rWidth, long& rHeight );
+ virtual void GetWorkArea( Rectangle& rRect );
+ virtual SalFrame* GetParent() const;
+ virtual void SetWindowState( const SalFrameState* pState );
+ virtual BOOL GetWindowState( SalFrameState* pState );
+ virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
+ virtual void StartPresentation( BOOL bStart );
+ virtual void SetAlwaysOnTop( BOOL bOnTop );
+ virtual void ToTop( USHORT nFlags );
+ virtual void SetPointer( PointerStyle ePointerStyle );
+ virtual void CaptureMouse( BOOL bMouse );
+ virtual void SetPointerPos( long nX, long nY );
using SalFrame::Flush;
- virtual void Flush();
- virtual void Sync();
- virtual void SetInputContext( SalInputContext* pContext );
- virtual void EndExtTextInput( USHORT nFlags );
- virtual String GetKeyName( USHORT nKeyCode );
- virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
+ virtual void Flush();
+ virtual void Sync();
+ virtual void SetInputContext( SalInputContext* pContext );
+ virtual void EndExtTextInput( USHORT nFlags );
+ virtual String GetKeyName( USHORT nKeyCode );
+ virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
virtual BOOL MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
- virtual LanguageType GetInputLanguage();
- virtual SalBitmap* SnapShot();
- virtual void UpdateSettings( AllSettings& rSettings );
- virtual void Beep( SoundType eSoundType );
- virtual const SystemEnvData* GetSystemData() const;
+ virtual LanguageType GetInputLanguage();
+ virtual SalBitmap* SnapShot();
+ virtual void UpdateSettings( AllSettings& rSettings );
+ virtual void Beep( SoundType eSoundType );
+ virtual const SystemEnvData* GetSystemData() const;
virtual SalPointerState GetPointerState();
virtual SalIndicatorState GetIndicatorState();
virtual void SimulateKeyPress( USHORT nKeyCode );
- virtual void SetParent( SalFrame* pNewParent );
- virtual bool SetPluginParent( SystemParentData* pNewParent );
+ virtual void SetParent( SalFrame* pNewParent );
+ virtual bool SetPluginParent( SystemParentData* pNewParent );
virtual void SetBackgroundBitmap( SalBitmap* pBitmap );
- virtual void ResetClipRegion();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
+ virtual void ResetClipRegion();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
/*TODO: functional implementation */
virtual void SetScreenNumber( unsigned int nScreen ) { (void)nScreen; }
diff --git a/vcl/unx/headless/svpgdi.cxx b/vcl/unx/headless/svpgdi.cxx
index a639369bb89e..301fd2101ff9 100644
--- a/vcl/unx/headless/svpgdi.cxx
+++ b/vcl/unx/headless/svpgdi.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -111,7 +111,7 @@ void SvpSalGraphics::setDevice( BitmapDeviceSharedPtr& rDevice )
// determine matching bitmap format for masks
sal_uInt32 nDeviceFmt = m_aDevice->getScanlineFormat();
- DBG_ASSERT( (nDeviceFmt <= (sal_uInt32)Format::MAX), "SVP::setDevice() with invalid bitmap format" );
+ DBG_ASSERT( (nDeviceFmt <= (sal_uInt32)Format::MAX), "SVP::setDevice() with invalid bitmap format" );
switch( nDeviceFmt )
{
case Format::EIGHT_BIT_GREY:
@@ -173,7 +173,7 @@ BOOL SvpSalGraphics::unionClipRegion( long nX, long nY, long nWidth, long nHeigh
if( m_aClipMap )
{
B2DPolyPolygon aFull;
- aFull.append( tools::createPolygonFromRect( B2DRectangle( nX, nY, nX+nWidth, nY+nHeight ) ) );
+ aFull.append( tools::createPolygonFromRect( B2DRectangle( nX, nY, nX+nWidth, nY+nHeight ) ) );
m_aClipMap->fillPolyPolygon( aFull, basebmp::Color(0), DrawMode_PAINT );
}
else
@@ -279,7 +279,7 @@ void SvpSalGraphics::drawPixel( long nX, long nY, SalColor nSalColor )
aColor,
m_aDrawMode,
m_aClipMap
- );
+ );
dbgOut( m_aDevice );
}
@@ -434,7 +434,7 @@ void SvpSalGraphics::copyArea( long nDestX,
void SvpSalGraphics::copyBits( const SalTwoRect* pPosAry,
SalGraphics* pSrcGraphics )
{
- SvpSalGraphics* pSrc = pSrcGraphics ?
+ SvpSalGraphics* pSrc = pSrcGraphics ?
static_cast<SvpSalGraphics*>(pSrcGraphics) : this;
B2IRange aSrcRect( pPosAry->mnSrcX, pPosAry->mnSrcY,
pPosAry->mnSrcX+pPosAry->mnSrcWidth,
@@ -442,7 +442,7 @@ void SvpSalGraphics::copyBits( const SalTwoRect* pPosAry,
B2IRange aDestRect( pPosAry->mnDestX, pPosAry->mnDestY,
pPosAry->mnDestX+pPosAry->mnDestWidth,
pPosAry->mnDestY+pPosAry->mnDestHeight );
- m_aDevice->drawBitmap( pSrc->m_aOrigDevice, aSrcRect, aDestRect, DrawMode_PAINT, m_aClipMap );
+ m_aDevice->drawBitmap( pSrc->m_aOrigDevice, aSrcRect, aDestRect, DrawMode_PAINT, m_aClipMap );
dbgOut( m_aDevice );
}
@@ -456,7 +456,7 @@ void SvpSalGraphics::drawBitmap( const SalTwoRect* pPosAry,
B2IRange aDestRect( pPosAry->mnDestX, pPosAry->mnDestY,
pPosAry->mnDestX+pPosAry->mnDestWidth,
pPosAry->mnDestY+pPosAry->mnDestHeight );
- m_aDevice->drawBitmap( rSrc.getBitmap(), aSrcRect, aDestRect, DrawMode_PAINT, m_aClipMap );
+ m_aDevice->drawBitmap( rSrc.getBitmap(), aSrcRect, aDestRect, DrawMode_PAINT, m_aClipMap );
dbgOut( m_aDevice );
}
@@ -562,7 +562,7 @@ SystemFontData SvpSalGraphics::GetSysFontData( int nFallbacklevel ) const
if (nFallbacklevel >= MAX_FALLBACK) nFallbacklevel = MAX_FALLBACK - 1;
if (nFallbacklevel < 0 ) nFallbacklevel = 0;
-
+
aSysFontData.nSize = sizeof( SystemFontData );
aSysFontData.nFontId = 0;
aSysFontData.nFontFlags = 0;
diff --git a/vcl/unx/headless/svpgdi.hxx b/vcl/unx/headless/svpgdi.hxx
index 3ac55de5dd14..2a05b104d7d2 100644
--- a/vcl/unx/headless/svpgdi.hxx
+++ b/vcl/unx/headless/svpgdi.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ class SvpSalGraphics : public SalGraphics
bool m_bUseLineColor;
basebmp::Color m_aLineColor;
bool m_bUseFillColor;
- basebmp::Color m_aFillColor;
+ basebmp::Color m_aFillColor;
basebmp::Color m_aTextColor;
basebmp::DrawMode m_aDrawMode;
@@ -58,42 +58,42 @@ protected:
public:
SvpSalGraphics();
- virtual ~SvpSalGraphics();
+ virtual ~SvpSalGraphics();
const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aDevice; }
void setDevice( basebmp::BitmapDeviceSharedPtr& rDevice );
// overload all pure virtual methods
- virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
- virtual USHORT GetBitCount();
- virtual long GetGraphicsWidth() const;
+ virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
+ virtual USHORT GetBitCount();
+ virtual long GetGraphicsWidth() const;
- virtual void ResetClipRegion();
- virtual void BeginSetClipRegion( ULONG nCount );
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
- virtual void EndSetClipRegion();
+ virtual void ResetClipRegion();
+ virtual void BeginSetClipRegion( ULONG nCount );
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
+ virtual void EndSetClipRegion();
- virtual void SetLineColor();
- virtual void SetLineColor( SalColor nSalColor );
- virtual void SetFillColor();
+ virtual void SetLineColor();
+ virtual void SetLineColor( SalColor nSalColor );
+ virtual void SetFillColor();
- virtual void SetFillColor( SalColor nSalColor );
+ virtual void SetFillColor( SalColor nSalColor );
- virtual void SetXORMode( bool bSet, bool );
+ virtual void SetXORMode( bool bSet, bool );
- virtual void SetROPLineColor( SalROPColor nROPColor );
- virtual void SetROPFillColor( SalROPColor nROPColor );
+ virtual void SetROPLineColor( SalROPColor nROPColor );
+ virtual void SetROPFillColor( SalROPColor nROPColor );
- virtual void SetTextColor( SalColor nSalColor );
+ virtual void SetTextColor( SalColor nSalColor );
virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel );
- virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
- virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
+ virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
+ virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
virtual ImplFontCharMap* GetImplFontCharMap() const;
- virtual void GetDevFontList( ImplDevFontList* );
- virtual void GetDevFontSubstList( OutputDevice* );
- virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
- virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
+ virtual void GetDevFontList( ImplDevFontList* );
+ virtual void GetDevFontSubstList( OutputDevice* );
+ virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
+ virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
const ImplFontData*,
sal_Int32* pGlyphIDs,
sal_uInt8* pEncoding,
@@ -102,69 +102,69 @@ public:
FontSubsetInfo& rInfo
);
virtual const Ucs2SIntMap* GetFontEncodingVector( const ImplFontData*, const Ucs2OStrMap** ppNonEncoded );
- virtual const void* GetEmbedFontData( const ImplFontData*,
+ virtual const void* GetEmbedFontData( const ImplFontData*,
const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
long* pDataLen );
- virtual void FreeEmbedFontData( const void* pData, long nDataLen );
+ virtual void FreeEmbedFontData( const void* pData, long nDataLen );
virtual void GetGlyphWidths( const ImplFontData*,
bool bVertical,
Int32Vector& rWidths,
Ucs2UIntMap& rUnicodeEnc );
- virtual BOOL GetGlyphBoundRect( long nIndex, Rectangle& );
- virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
- virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
- virtual void DrawServerFontLayout( const ServerFontLayout& );
+ virtual BOOL GetGlyphBoundRect( long nIndex, Rectangle& );
+ virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
+ virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
+ virtual void DrawServerFontLayout( const ServerFontLayout& );
virtual bool supportsOperation( OutDevSupportType ) const;
- virtual void drawPixel( long nX, long nY );
- virtual void drawPixel( long nX, long nY, SalColor nSalColor );
- virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
- virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
+ virtual void drawPixel( long nX, long nY );
+ virtual void drawPixel( long nX, long nY, SalColor nSalColor );
+ virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
+ virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
virtual bool drawPolyLine( const ::basegfx::B2DPolygon&, double fTransparency, const ::basegfx::B2DVector& rLineWidths, basegfx::B2DLineJoin );
- virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolyPolygon( sal_uInt32 nPoly,
+ virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolyPolygon( sal_uInt32 nPoly,
const sal_uInt32* pPoints,
PCONSTSALPOINT* pPtAry );
- virtual sal_Bool drawPolyLineBezier( ULONG nPoints,
+ virtual sal_Bool drawPolyLineBezier( ULONG nPoints,
const SalPoint* pPtAry,
const BYTE* pFlgAry );
- virtual sal_Bool drawPolygonBezier( ULONG nPoints,
+ virtual sal_Bool drawPolygonBezier( ULONG nPoints,
const SalPoint* pPtAry,
const BYTE* pFlgAry );
- virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly,
+ virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly,
const sal_uInt32* pPoints,
const SalPoint* const* pPtAry,
const BYTE* const* pFlgAry );
- virtual void copyArea( long nDestX,
+ virtual void copyArea( long nDestX,
long nDestY,
long nSrcX,
long nSrcY,
long nSrcWidth,
long nSrcHeight,
USHORT nFlags );
- virtual void copyBits( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry,
SalGraphics* pSrcGraphics );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap );
- virtual void drawMask( const SalTwoRect* pPosAry,
+ virtual void drawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor );
- virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
- virtual SalColor getPixel( long nX, long nY );
- virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
- virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
+ virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
+ virtual SalColor getPixel( long nX, long nY );
+ virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
+ virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
- virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
+ virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
virtual SystemGraphicsData GetGraphicsData() const;
virtual SystemFontData GetSysFontData( int nFallbacklevel ) const;
diff --git a/vcl/unx/headless/svpinst.cxx b/vcl/unx/headless/svpinst.cxx
index 10faf81434ba..4a48ce77d64d 100644
--- a/vcl/unx/headless/svpinst.cxx
+++ b/vcl/unx/headless/svpinst.cxx
@@ -74,9 +74,9 @@ SvpSalInstance* SvpSalInstance::s_pDefaultInstance = NULL;
SvpSalInstance::SvpSalInstance()
{
- m_aTimeout.tv_sec = 0;
- m_aTimeout.tv_usec = 0;
- m_nTimeoutMS = 0;
+ m_aTimeout.tv_sec = 0;
+ m_aTimeout.tv_usec = 0;
+ m_nTimeoutMS = 0;
m_pTimeoutFDS[0] = m_pTimeoutFDS[1] = -1;
if (pipe (m_pTimeoutFDS) != -1)
@@ -459,8 +459,8 @@ void* SvpSalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturn
SvpSalYieldMutex::SvpSalYieldMutex()
{
- mnCount = 0;
- mnThreadId = 0;
+ mnCount = 0;
+ mnThreadId = 0;
}
void SvpSalYieldMutex::acquire()
@@ -499,9 +499,9 @@ sal_Bool SvpSalYieldMutex::tryToAcquire()
void SvpSalInstance::StopTimer()
{
- m_aTimeout.tv_sec = 0;
- m_aTimeout.tv_usec = 0;
- m_nTimeoutMS = 0;
+ m_aTimeout.tv_sec = 0;
+ m_aTimeout.tv_usec = 0;
+ m_nTimeoutMS = 0;
}
void SvpSalInstance::StartTimer( ULONG nMS )
diff --git a/vcl/unx/headless/svpinst.hxx b/vcl/unx/headless/svpinst.hxx
index ace3ac7c236c..ac4e9361074e 100644
--- a/vcl/unx/headless/svpinst.hxx
+++ b/vcl/unx/headless/svpinst.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,18 +52,18 @@
class SvpSalYieldMutex : public ::vcl::SolarMutexObject
{
protected:
- ULONG mnCount;
- oslThreadIdentifier mnThreadId;
+ ULONG mnCount;
+ oslThreadIdentifier mnThreadId;
public:
SvpSalYieldMutex();
- virtual void acquire();
- virtual void release();
- virtual sal_Bool tryToAcquire();
+ virtual void acquire();
+ virtual void release();
+ virtual sal_Bool tryToAcquire();
- ULONG GetAcquireCount() const { return mnCount; }
- oslThreadIdentifier GetThreadId() const { return mnThreadId; }
+ ULONG GetAcquireCount() const { return mnCount; }
+ oslThreadIdentifier GetThreadId() const { return mnThreadId; }
};
// ---------------
@@ -88,7 +88,7 @@ public:
class SvpSalFrame;
class SvpSalInstance : public SalInstance
{
- timeval m_aTimeout;
+ timeval m_aTimeout;
ULONG m_nTimeoutMS;
int m_pTimeoutFDS[2];
SvpSalYieldMutex m_aYieldMutex;
@@ -96,11 +96,11 @@ class SvpSalInstance : public SalInstance
// internal event queue
struct SalUserEvent
{
- const SalFrame* m_pFrame;
- void* m_pData;
- USHORT m_nEvent;
-
- SalUserEvent( const SalFrame* pFrame, void* pData, USHORT nEvent = SALEVENT_USEREVENT )
+ const SalFrame* m_pFrame;
+ void* m_pData;
+ USHORT m_nEvent;
+
+ SalUserEvent( const SalFrame* pFrame, void* pData, USHORT nEvent = SALEVENT_USEREVENT )
: m_pFrame( pFrame ),
m_pData( pData ),
m_nEvent( nEvent )
@@ -109,7 +109,7 @@ class SvpSalInstance : public SalInstance
oslMutex m_aEventGuard;
std::list< SalUserEvent > m_aUserEvents;
-
+
std::list< SalFrame* > m_aFrames;
bool isFrameAlive( const SalFrame* pFrame ) const;
@@ -119,72 +119,72 @@ public:
SvpSalInstance();
virtual ~SvpSalInstance();
-
+
void PostEvent( const SalFrame* pFrame, void* pData, USHORT nEvent );
void CancelEvent( const SalFrame* pFrame, void* pData, USHORT nEvent );
-
+
void StartTimer( ULONG nMS );
void StopTimer();
void Wakeup();
-
+
void registerFrame( SalFrame* pFrame ) { m_aFrames.push_back( pFrame ); }
void deregisterFrame( SalFrame* pFrame );
const std::list< SalFrame* >& getFrames() const { return m_aFrames; }
-
+
bool CheckTimeout( bool bExecuteTimers = true );
// Frame
- virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
- virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
- virtual void DestroyFrame( SalFrame* pFrame );
+ virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
+ virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
+ virtual void DestroyFrame( SalFrame* pFrame );
// Object (System Child Window)
- virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
- virtual void DestroyObject( SalObject* pObject );
+ virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
+ virtual void DestroyObject( SalObject* pObject );
// VirtualDevice
// nDX and nDY in Pixel
// nBitCount: 0 == Default(=as window) / 1 == Mono
// pData allows for using a system dependent graphics or device context
- virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
+ virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
long nDX, long nDY,
USHORT nBitCount, const SystemGraphicsData *pData = NULL );
- virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
+ virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
// Printer
// pSetupData->mpDriverData can be 0
// pSetupData must be updatet with the current
// JobSetup
- virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
+ virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData );
- virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
- virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
- virtual void DestroyPrinter( SalPrinter* pPrinter );
+ virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
+ virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
+ virtual void DestroyPrinter( SalPrinter* pPrinter );
- virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
- virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
- virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
+ virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
+ virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
+ virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
virtual String GetDefaultPrinter();
// SalTimer
- virtual SalTimer* CreateSalTimer();
+ virtual SalTimer* CreateSalTimer();
// SalI18NImeStatus
virtual SalI18NImeStatus* CreateI18NImeStatus();
// SalSystem
- virtual SalSystem* CreateSalSystem();
+ virtual SalSystem* CreateSalSystem();
// SalBitmap
- virtual SalBitmap* CreateSalBitmap();
+ virtual SalBitmap* CreateSalBitmap();
// YieldMutex
virtual osl::SolarMutex* GetYieldMutex();
- virtual ULONG ReleaseYieldMutex();
- virtual void AcquireYieldMutex( ULONG nCount );
+ virtual ULONG ReleaseYieldMutex();
+ virtual void AcquireYieldMutex( ULONG nCount );
// wait next event and dispatch
// must returned by UserEvent (SalFrame::PostEvent)
// and timer
- virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
- virtual bool AnyInput( USHORT nType );
+ virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
+ virtual bool AnyInput( USHORT nType );
// Menues
virtual SalMenu* CreateMenu( BOOL bMenuBar );
@@ -193,9 +193,9 @@ public:
virtual void DestroyMenuItem( SalMenuItem* pItem );
// may return NULL to disable session management
- virtual SalSession* CreateSalSession();
+ virtual SalSession* CreateSalSession();
- virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+ virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
virtual void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
};
diff --git a/vcl/unx/headless/svpprn.cxx b/vcl/unx/headless/svpprn.cxx
index 87a64286c908..8c985d0b37d6 100644
--- a/vcl/unx/headless/svpprn.cxx
+++ b/vcl/unx/headless/svpprn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ using namespace psp;
using namespace rtl;
/*
- * static helpers
+ * static helpers
*/
static String getPdfDir( const PrinterInfo& rInfo )
@@ -76,30 +76,30 @@ inline int TenMuToPt( int nUnits ) { return (int)((((double)nUnits)/35.27777778)
static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData )
{
- pJobSetup->meOrientation = (Orientation)(rData.m_eOrientation == orientation::Landscape ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT);
+ pJobSetup->meOrientation = (Orientation)(rData.m_eOrientation == orientation::Landscape ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT);
// copy page size
String aPaper;
int width, height;
rData.m_aContext.getPageSize( aPaper, width, height );
- pJobSetup->mePaperFormat = PaperInfo::fromPSName(OUStringToOString( aPaper, RTL_TEXTENCODING_ISO_8859_1 ));
- pJobSetup->mnPaperWidth = 0;
- pJobSetup->mnPaperHeight = 0;
+ pJobSetup->mePaperFormat = PaperInfo::fromPSName(OUStringToOString( aPaper, RTL_TEXTENCODING_ISO_8859_1 ));
+ pJobSetup->mnPaperWidth = 0;
+ pJobSetup->mnPaperHeight = 0;
if( pJobSetup->mePaperFormat == PAPER_USER )
{
// transform to 100dth mm
- width = PtTo10Mu( width );
- height = PtTo10Mu( height );
+ width = PtTo10Mu( width );
+ height = PtTo10Mu( height );
if( rData.m_eOrientation == psp::orientation::Portrait )
{
- pJobSetup->mnPaperWidth = width;
+ pJobSetup->mnPaperWidth = width;
pJobSetup->mnPaperHeight= height;
}
else
{
- pJobSetup->mnPaperWidth = height;
+ pJobSetup->mnPaperWidth = height;
pJobSetup->mnPaperHeight= width;
}
}
@@ -110,9 +110,9 @@ static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData )
pJobSetup->mnPaperBin = 0xffff;
if( rData.m_pParser )
- pKey = rData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) );
+ pKey = rData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) );
if( pKey )
- pValue = rData.m_aContext.getValue( pKey );
+ pValue = rData.m_aContext.getValue( pKey );
if( pKey && pValue )
{
for( pJobSetup->mnPaperBin = 0;
@@ -127,7 +127,7 @@ static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData )
// copy duplex
pKey = NULL;
pValue = NULL;
-
+
pJobSetup->meDuplexMode = DUPLEX_UNKNOWN;
if( rData.m_pParser )
pKey = rData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "Duplex" ) ) );
@@ -308,13 +308,13 @@ static bool createPdf( const String& rToFile, const String& rFromFile, const Str
}
/*
- * SalInstance
+ * SalInstance
*/
// -----------------------------------------------------------------------
-SalInfoPrinter* SvpSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
- ImplJobSetup* pJobSetup )
+SalInfoPrinter* SvpSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
+ ImplJobSetup* pJobSetup )
{
// create and initialize SalInfoPrinter
PspSalInfoPrinter* pPrinter = new PspSalInfoPrinter;
@@ -329,9 +329,9 @@ SalInfoPrinter* SvpSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueIn
if( pJobSetup->mpDriverData )
JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aInfo );
- pJobSetup->mnSystem = JOBSETUP_SYSTEM_UNIX;
- pJobSetup->maPrinterName = pQueueInfo->maPrinterName;
- pJobSetup->maDriver = aInfo.m_aDriverName;
+ pJobSetup->mnSystem = JOBSETUP_SYSTEM_UNIX;
+ pJobSetup->maPrinterName = pQueueInfo->maPrinterName;
+ pJobSetup->maDriver = aInfo.m_aDriverName;
copyJobDataToJobSetup( pJobSetup, aInfo );
// set/clear backwards compatibility flag
@@ -394,11 +394,11 @@ void SvpSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
const PrinterInfo& rInfo( rManager.getPrinterInfo( *it ) );
// Neuen Eintrag anlegen
SalPrinterQueueInfo* pInfo = new SalPrinterQueueInfo;
- pInfo->maPrinterName = *it;
- pInfo->maDriver = rInfo.m_aDriverName;
- pInfo->maLocation = rInfo.m_aLocation;
- pInfo->maComment = rInfo.m_aComment;
- pInfo->mpSysData = NULL;
+ pInfo->maPrinterName = *it;
+ pInfo->maDriver = rInfo.m_aDriverName;
+ pInfo->maLocation = rInfo.m_aLocation;
+ pInfo->maComment = rInfo.m_aComment;
+ pInfo->mpSysData = NULL;
sal_Int32 nIndex = 0;
while( nIndex != -1 )
@@ -576,13 +576,13 @@ BOOL PspSalInfoPrinter::SetData(
int nWidth, nHeight;
if( pJobSetup->meOrientation == ORIENTATION_PORTRAIT )
{
- nWidth = pJobSetup->mnPaperWidth;
- nHeight = pJobSetup->mnPaperHeight;
+ nWidth = pJobSetup->mnPaperWidth;
+ nHeight = pJobSetup->mnPaperHeight;
}
else
{
- nWidth = pJobSetup->mnPaperHeight;
- nHeight = pJobSetup->mnPaperWidth;
+ nWidth = pJobSetup->mnPaperHeight;
+ nHeight = pJobSetup->mnPaperWidth;
}
String aPaper;
@@ -622,7 +622,7 @@ BOOL PspSalInfoPrinter::SetData(
// merge orientation if necessary
if( nSetDataFlags & SAL_JOBSET_ORIENTATION )
aData.m_eOrientation = pJobSetup->meOrientation == ORIENTATION_LANDSCAPE ? orientation::Landscape : orientation::Portrait;
-
+
// merge duplex if necessary
if( nSetDataFlags & SAL_JOBSET_DUPLEXMODE )
{
@@ -697,12 +697,12 @@ void PspSalInfoPrinter::GetPageInfo(
aData.m_pParser->getMargins( aPaper, top, bottom, right, left );
}
- rPageWidth = width * nDPI / 72;
- rPageHeight = height * nDPI / 72;
- rPageOffX = left * nDPI / 72;
- rPageOffY = top * nDPI / 72;
- rOutWidth = ( width - left - right ) * nDPI / 72;
- rOutHeight = ( height - top - bottom ) * nDPI / 72;
+ rPageWidth = width * nDPI / 72;
+ rPageHeight = height * nDPI / 72;
+ rPageOffX = left * nDPI / 72;
+ rPageOffY = top * nDPI / 72;
+ rOutWidth = ( width - left - right ) * nDPI / 72;
+ rOutHeight = ( height - top - bottom ) * nDPI / 72;
}
}
@@ -811,7 +811,7 @@ ULONG PspSalInfoPrinter::GetCapabilities( const ImplJobSetup* pJobSetup, USHORT
// =======================================================================
/*
- * SalPrinter
+ * SalPrinter
*/
PspSalPrinter::PspSalPrinter( SalInfoPrinter* pInfoPrinter )
@@ -853,10 +853,10 @@ BOOL PspSalPrinter::StartJob(
{
vcl_sal::PrinterUpdate::jobStarted();
- m_bFax = false;
- m_bPdf = false;
- m_aFileName = pFileName ? *pFileName : String();
- m_aTmpFile = String();
+ m_bFax = false;
+ m_bPdf = false;
+ m_aFileName = pFileName ? *pFileName : String();
+ m_aTmpFile = String();
m_nCopies = nCopies;
m_bCollate = bCollate;
@@ -1038,7 +1038,7 @@ void vcl_sal::PrinterUpdate::update()
if( Application::GetSettings().GetMiscSettings().GetDisablePrinting() )
return;
- static bool bOnce = false;
+ static bool bOnce = false;
if( ! bOnce )
{
bOnce = true;
@@ -1046,7 +1046,7 @@ void vcl_sal::PrinterUpdate::update()
psp::PrinterInfoManager::get();
return;
}
-
+
if( nActiveJobs < 1 )
doUpdate();
else if( ! pPrinterUpdateTimer )
diff --git a/vcl/unx/headless/svpprn.hxx b/vcl/unx/headless/svpprn.hxx
index b776e7c3e313..75359178cfbc 100644
--- a/vcl/unx/headless/svpprn.hxx
+++ b/vcl/unx/headless/svpprn.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,44 +39,44 @@ class PspGraphics;
class PspSalInfoPrinter : public SalInfoPrinter
{
public:
- PspGraphics* m_pGraphics;
- psp::JobData m_aJobData;
- psp::PrinterGfx m_aPrinterGfx;
+ PspGraphics* m_pGraphics;
+ psp::JobData m_aJobData;
+ psp::PrinterGfx m_aPrinterGfx;
PspSalInfoPrinter();
virtual ~PspSalInfoPrinter();
// overload all pure virtual methods
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
- virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
- virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData );
- virtual void GetPageInfo( const ImplJobSetup* pSetupData,
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
+ virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
+ virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData );
+ virtual void GetPageInfo( const ImplJobSetup* pSetupData,
long& rOutWidth, long& rOutHeight,
long& rPageOffX, long& rPageOffY,
long& rPageWidth, long& rPageHeight );
- virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
- virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData );
- virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
- virtual void InitPaperFormats( const ImplJobSetup* pSetupData );
- virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData );
+ virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
+ virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData );
+ virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
+ virtual void InitPaperFormats( const ImplJobSetup* pSetupData );
+ virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData );
};
class PspSalPrinter : public SalPrinter
{
public:
- String m_aFileName;
- String m_aTmpFile;
- String m_aFaxNr;
- bool m_bFax:1;
- bool m_bPdf:1;
- bool m_bSwallowFaxNo:1;
- PspGraphics* m_pGraphics;
- psp::PrinterJob m_aPrintJob;
- psp::JobData m_aJobData;
- psp::PrinterGfx m_aPrinterGfx;
- ULONG m_nCopies;
+ String m_aFileName;
+ String m_aTmpFile;
+ String m_aFaxNr;
+ bool m_bFax:1;
+ bool m_bPdf:1;
+ bool m_bSwallowFaxNo:1;
+ PspGraphics* m_pGraphics;
+ psp::PrinterJob m_aPrintJob;
+ psp::JobData m_aJobData;
+ psp::PrinterGfx m_aPrinterGfx;
+ ULONG m_nCopies;
bool m_bCollate;
SalInfoPrinter* m_pInfoPrinter;
@@ -85,18 +85,18 @@ public:
// overload all pure virtual methods
using SalPrinter::StartJob;
- virtual BOOL StartJob( const XubString* pFileName,
+ virtual BOOL StartJob( const XubString* pFileName,
const XubString& rJobName,
const XubString& rAppName,
ULONG nCopies,
bool bCollate,
bool bDirect,
ImplJobSetup* pSetupData );
- virtual BOOL EndJob();
- virtual BOOL AbortJob();
- virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData );
- virtual BOOL EndPage();
- virtual ULONG GetErrorCode();
+ virtual BOOL EndJob();
+ virtual BOOL AbortJob();
+ virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData );
+ virtual BOOL EndPage();
+ virtual ULONG GetErrorCode();
};
class Timer;
@@ -104,8 +104,8 @@ class Timer;
namespace vcl_sal {
class VCL_DLLPUBLIC PrinterUpdate
{
- static Timer* pPrinterUpdateTimer;
- static int nActiveJobs;
+ static Timer* pPrinterUpdateTimer;
+ static int nActiveJobs;
static void doUpdate();
DECL_STATIC_LINK( PrinterUpdate, UpdateTimerHdl, void* );
diff --git a/vcl/unx/headless/svppspgraphics.cxx b/vcl/unx/headless/svppspgraphics.cxx
index cd4a39fbb0fc..a7b3c11a0bc3 100644
--- a/vcl/unx/headless/svppspgraphics.cxx
+++ b/vcl/unx/headless/svppspgraphics.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,19 +72,19 @@ class SalPrinterBmp : public psp::PrinterBmp
public:
SalPrinterBmp (const BitmapDeviceSharedPtr& rDevice);
- virtual ~SalPrinterBmp ();
- virtual sal_uInt32 GetPaletteColor (sal_uInt32 nIdx) const;
- virtual sal_uInt32 GetPaletteEntryCount () const;
- virtual sal_uInt32 GetPixelRGB (sal_uInt32 nRow, sal_uInt32 nColumn) const;
- virtual sal_uInt8 GetPixelGray (sal_uInt32 nRow, sal_uInt32 nColumn) const;
- virtual sal_uInt8 GetPixelIdx (sal_uInt32 nRow, sal_uInt32 nColumn) const;
- virtual sal_uInt32 GetWidth () const;
- virtual sal_uInt32 GetHeight() const;
- virtual sal_uInt32 GetDepth () const;
-
+ virtual ~SalPrinterBmp ();
+ virtual sal_uInt32 GetPaletteColor (sal_uInt32 nIdx) const;
+ virtual sal_uInt32 GetPaletteEntryCount () const;
+ virtual sal_uInt32 GetPixelRGB (sal_uInt32 nRow, sal_uInt32 nColumn) const;
+ virtual sal_uInt8 GetPixelGray (sal_uInt32 nRow, sal_uInt32 nColumn) const;
+ virtual sal_uInt8 GetPixelIdx (sal_uInt32 nRow, sal_uInt32 nColumn) const;
+ virtual sal_uInt32 GetWidth () const;
+ virtual sal_uInt32 GetHeight() const;
+ virtual sal_uInt32 GetDepth () const;
+
static sal_uInt32 getRGBFromColor( const basebmp::Color& rCol )
{
- return ((rCol.getBlue()) & 0x000000ff)
+ return ((rCol.getBlue()) & 0x000000ff)
| ((rCol.getGreen() << 8) & 0x0000ff00)
| ((rCol.getRed() << 16) & 0x00ff0000);
}
@@ -317,7 +317,7 @@ void PspGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
m_pPrinterGfx->DrawPolygon (nPoints, (Point*)pPtAry);
}
-void PspGraphics::drawPolyPolygon( sal_uInt32 nPoly,
+void PspGraphics::drawPolyPolygon( sal_uInt32 nPoly,
const sal_uInt32 *pPoints,
PCONSTSALPOINT *pPtAry )
{
@@ -432,11 +432,11 @@ SalColor PspGraphics::getPixel( long /*nX*/, long /*nY*/ )
}
void PspGraphics::invert(
- long /*nX*/,
- long /*nY*/,
- long /*nDX*/,
- long /*nDY*/,
- SalInvert /*nFlags*/ )
+ long /*nX*/,
+ long /*nY*/,
+ long /*nDX*/,
+ long /*nDY*/,
+ SalInvert /*nFlags*/ )
{
DBG_ERROR ("Warning: PrinterGfx::Invert() not implemented");
}
@@ -500,8 +500,8 @@ PspFontLayout::PspFontLayout( ::psp::PrinterGfx& rGfx )
mnFontHeight = mrPrinterGfx.GetFontHeight();
mnFontWidth = mrPrinterGfx.GetFontWidth();
mbVertical = mrPrinterGfx.GetFontVertical();
- mbArtItalic = mrPrinterGfx.GetArtificialItalic();
- mbArtBold = mrPrinterGfx.GetArtificialBold();
+ mbArtItalic = mrPrinterGfx.GetArtificialItalic();
+ mbArtBold = mrPrinterGfx.GetArtificialBold();
}
//--------------------------------------------------------------------------
@@ -589,19 +589,19 @@ public:
PspServerFontLayout( psp::PrinterGfx&, ServerFont& rFont, const ImplLayoutArgs& rArgs );
virtual void InitFont() const;
- const sal_Unicode* getTextPtr() const { return maText.getStr() - mnMinCharPos; }
- int getMinCharPos() const { return mnMinCharPos; }
- int getMaxCharPos() const { return mnMinCharPos+maText.getLength()-1; }
+ const sal_Unicode* getTextPtr() const { return maText.getStr() - mnMinCharPos; }
+ int getMinCharPos() const { return mnMinCharPos; }
+ int getMaxCharPos() const { return mnMinCharPos+maText.getLength()-1; }
private:
::psp::PrinterGfx& mrPrinterGfx;
sal_IntPtr mnFontID;
int mnFontHeight;
int mnFontWidth;
bool mbVertical;
- bool mbArtItalic;
- bool mbArtBold;
- rtl::OUString maText;
- int mnMinCharPos;
+ bool mbArtItalic;
+ bool mbArtBold;
+ rtl::OUString maText;
+ int mnMinCharPos;
};
PspServerFontLayout::PspServerFontLayout( ::psp::PrinterGfx& rGfx, ServerFont& rFont, const ImplLayoutArgs& rArgs )
@@ -612,9 +612,9 @@ PspServerFontLayout::PspServerFontLayout( ::psp::PrinterGfx& rGfx, ServerFont& r
mnFontHeight = mrPrinterGfx.GetFontHeight();
mnFontWidth = mrPrinterGfx.GetFontWidth();
mbVertical = mrPrinterGfx.GetFontVertical();
- mbArtItalic = mrPrinterGfx.GetArtificialItalic();
- mbArtBold = mrPrinterGfx.GetArtificialBold();
- maText = OUString( rArgs.mpStr + rArgs.mnMinCharPos, rArgs.mnEndCharPos - rArgs.mnMinCharPos+1 );
+ mbArtItalic = mrPrinterGfx.GetArtificialItalic();
+ mbArtBold = mrPrinterGfx.GetArtificialBold();
+ maText = OUString( rArgs.mpStr + rArgs.mnMinCharPos, rArgs.mnEndCharPos - rArgs.mnMinCharPos+1 );
mnMinCharPos = rArgs.mnMinCharPos;
}
@@ -633,7 +633,7 @@ static void DrawPrinterLayout( const SalLayout& rLayout, ::psp::PrinterGfx& rGfx
sal_Int32 aWidthAry[ nMaxGlyphs ];
sal_Int32 aIdxAry [ nMaxGlyphs ];
sal_Ucs aUnicodes[ nMaxGlyphs ];
- int aCharPosAry [ nMaxGlyphs ];
+ int aCharPosAry [ nMaxGlyphs ];
Point aPos;
long nUnitsPerPixel = rLayout.GetUnitsPerPixel();
@@ -805,19 +805,19 @@ void PspGraphics::GetFontMetric( ImplFontMetricData *pMetric, int )
pMetric->mbDevice = aDFA.mbDevice;
pMetric->mbScalableFont = true;
- pMetric->mnOrientation = m_pPrinterGfx->GetFontAngle();
- pMetric->mnSlant = 0;
+ pMetric->mnOrientation = m_pPrinterGfx->GetFontAngle();
+ pMetric->mnSlant = 0;
- sal_Int32 nTextHeight = m_pPrinterGfx->GetFontHeight();
- sal_Int32 nTextWidth = m_pPrinterGfx->GetFontWidth();
+ sal_Int32 nTextHeight = m_pPrinterGfx->GetFontHeight();
+ sal_Int32 nTextWidth = m_pPrinterGfx->GetFontWidth();
if( ! nTextWidth )
nTextWidth = nTextHeight;
- pMetric->mnWidth = nTextWidth;
- pMetric->mnAscent = ( aInfo.m_nAscend * nTextHeight + 500 ) / 1000;
- pMetric->mnDescent = ( aInfo.m_nDescend * nTextHeight + 500 ) / 1000;
- pMetric->mnIntLeading = ( aInfo.m_nLeading * nTextHeight + 500 ) / 1000;
- pMetric->mnExtLeading = 0;
+ pMetric->mnWidth = nTextWidth;
+ pMetric->mnAscent = ( aInfo.m_nAscend * nTextHeight + 500 ) / 1000;
+ pMetric->mnDescent = ( aInfo.m_nDescend * nTextHeight + 500 ) / 1000;
+ pMetric->mnIntLeading = ( aInfo.m_nLeading * nTextHeight + 500 ) / 1000;
+ pMetric->mnExtLeading = 0;
}
}
@@ -834,9 +834,9 @@ ULONG PspGraphics::GetKernPairs( ULONG nPairs, ImplKernPairData *pKernPairs )
nTextScale = m_pPrinterGfx->GetFontHeight();
for( i = 0, it = rPairs.begin(); i < nPairs && i < nHavePairs; i++, ++it )
{
- pKernPairs[i].mnChar1 = it->first;
- pKernPairs[i].mnChar2 = it->second;
- pKernPairs[i].mnKern = it->kern_x * nTextScale / 1000;
+ pKernPairs[i].mnChar1 = it->first;
+ pKernPairs[i].mnChar2 = it->second;
+ pKernPairs[i].mnKern = it->kern_x * nTextScale / 1000;
}
}
@@ -987,9 +987,9 @@ const void* PspGraphics::DoGetEmbedFontData( fontID aFont, const sal_Ucs* pUnico
return NULL;
// fill in font info
- rInfo.m_nAscent = aFontInfo.m_nAscend;
- rInfo.m_nDescent = aFontInfo.m_nDescend;
- rInfo.m_aPSName = rMgr.getPSName( aFont );
+ rInfo.m_nAscent = aFontInfo.m_nAscend;
+ rInfo.m_nDescent = aFontInfo.m_nDescend;
+ rInfo.m_aPSName = rMgr.getPSName( aFont );
int xMin, yMin, xMax, yMax;
rMgr.getFontBoundingBox( aFont, xMin, yMin, xMax, yMax );
@@ -1019,8 +1019,8 @@ const void* PspGraphics::DoGetEmbedFontData( fontID aFont, const sal_Ucs* pUnico
*pDataLen = aStat.st_size;
- rInfo.m_aFontBBox = Rectangle( Point( xMin, yMin ), Size( xMax-xMin, yMax-yMin ) );
- rInfo.m_nCapHeight = yMax; // Well ...
+ rInfo.m_aFontBBox = Rectangle( Point( xMin, yMin ), Size( xMax-xMin, yMax-yMin ) );
+ rInfo.m_nCapHeight = yMax; // Well ...
for( int i = 0; i < 256; i++ )
pWidths[i] = (aMetrics[i].width > 0 ? aMetrics[i].width : 0);
@@ -1080,13 +1080,13 @@ FontWidth PspGraphics::ToFontWidth (psp::width::type eWidth)
{
case psp::width::UltraCondensed: return WIDTH_ULTRA_CONDENSED;
case psp::width::ExtraCondensed: return WIDTH_EXTRA_CONDENSED;
- case psp::width::Condensed: return WIDTH_CONDENSED;
- case psp::width::SemiCondensed: return WIDTH_SEMI_CONDENSED;
- case psp::width::Normal: return WIDTH_NORMAL;
- case psp::width::SemiExpanded: return WIDTH_SEMI_EXPANDED;
- case psp::width::Expanded: return WIDTH_EXPANDED;
- case psp::width::ExtraExpanded: return WIDTH_EXTRA_EXPANDED;
- case psp::width::UltraExpanded: return WIDTH_ULTRA_EXPANDED;
+ case psp::width::Condensed: return WIDTH_CONDENSED;
+ case psp::width::SemiCondensed: return WIDTH_SEMI_CONDENSED;
+ case psp::width::Normal: return WIDTH_NORMAL;
+ case psp::width::SemiExpanded: return WIDTH_SEMI_EXPANDED;
+ case psp::width::Expanded: return WIDTH_EXPANDED;
+ case psp::width::ExtraExpanded: return WIDTH_EXTRA_EXPANDED;
+ case psp::width::UltraExpanded: return WIDTH_ULTRA_EXPANDED;
default: break;
}
return WIDTH_DONTKNOW;
@@ -1096,16 +1096,16 @@ FontWeight PspGraphics::ToFontWeight (psp::weight::type eWeight)
{
switch (eWeight)
{
- case psp::weight::Thin: return WEIGHT_THIN;
+ case psp::weight::Thin: return WEIGHT_THIN;
case psp::weight::UltraLight: return WEIGHT_ULTRALIGHT;
- case psp::weight::Light: return WEIGHT_LIGHT;
+ case psp::weight::Light: return WEIGHT_LIGHT;
case psp::weight::SemiLight: return WEIGHT_SEMILIGHT;
- case psp::weight::Normal: return WEIGHT_NORMAL;
- case psp::weight::Medium: return WEIGHT_MEDIUM;
- case psp::weight::SemiBold: return WEIGHT_SEMIBOLD;
- case psp::weight::Bold: return WEIGHT_BOLD;
+ case psp::weight::Normal: return WEIGHT_NORMAL;
+ case psp::weight::Medium: return WEIGHT_MEDIUM;
+ case psp::weight::SemiBold: return WEIGHT_SEMIBOLD;
+ case psp::weight::Bold: return WEIGHT_BOLD;
case psp::weight::UltraBold: return WEIGHT_ULTRABOLD;
- case psp::weight::Black: return WEIGHT_BLACK;
+ case psp::weight::Black: return WEIGHT_BLACK;
default: break;
}
return WEIGHT_DONTKNOW;
@@ -1115,8 +1115,8 @@ FontPitch PspGraphics::ToFontPitch (psp::pitch::type ePitch)
{
switch (ePitch)
{
- case psp::pitch::Fixed: return PITCH_FIXED;
- case psp::pitch::Variable: return PITCH_VARIABLE;
+ case psp::pitch::Fixed: return PITCH_FIXED;
+ case psp::pitch::Variable: return PITCH_VARIABLE;
default: break;
}
return PITCH_DONTKNOW;
@@ -1126,9 +1126,9 @@ FontItalic PspGraphics::ToFontItalic (psp::italic::type eItalic)
{
switch (eItalic)
{
- case psp::italic::Upright: return ITALIC_NONE;
- case psp::italic::Oblique: return ITALIC_OBLIQUE;
- case psp::italic::Italic: return ITALIC_NORMAL;
+ case psp::italic::Upright: return ITALIC_NONE;
+ case psp::italic::Oblique: return ITALIC_OBLIQUE;
+ case psp::italic::Italic: return ITALIC_NORMAL;
default: break;
}
return ITALIC_DONTKNOW;
@@ -1139,11 +1139,11 @@ FontFamily PspGraphics::ToFontFamily (psp::family::type eFamily)
switch (eFamily)
{
case psp::family::Decorative: return FAMILY_DECORATIVE;
- case psp::family::Modern: return FAMILY_MODERN;
- case psp::family::Roman: return FAMILY_ROMAN;
- case psp::family::Script: return FAMILY_SCRIPT;
- case psp::family::Swiss: return FAMILY_SWISS;
- case psp::family::System: return FAMILY_SYSTEM;
+ case psp::family::Modern: return FAMILY_MODERN;
+ case psp::family::Roman: return FAMILY_ROMAN;
+ case psp::family::Script: return FAMILY_SCRIPT;
+ case psp::family::Swiss: return FAMILY_SWISS;
+ case psp::family::System: return FAMILY_SYSTEM;
default: break;
}
return FAMILY_DONTKNOW;
diff --git a/vcl/unx/headless/svppspgraphics.hxx b/vcl/unx/headless/svppspgraphics.hxx
index 63b918eaee5f..6e865f3409ba 100644
--- a/vcl/unx/headless/svppspgraphics.hxx
+++ b/vcl/unx/headless/svppspgraphics.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,15 +42,15 @@ class SalInfoPrinter;
class PspGraphics : public SalGraphics
{
- psp::JobData* m_pJobData;
- psp::PrinterGfx* m_pPrinterGfx;
- String* m_pPhoneNr;
- bool m_bSwallowFaxNo;
- String m_aPhoneCollection;
- bool m_bPhoneCollectionActive;
-
- ServerFont* m_pServerFont[ MAX_FALLBACK ];
- bool m_bFontVertical;
+ psp::JobData* m_pJobData;
+ psp::PrinterGfx* m_pPrinterGfx;
+ String* m_pPhoneNr;
+ bool m_bSwallowFaxNo;
+ String m_aPhoneCollection;
+ bool m_bPhoneCollectionActive;
+
+ ServerFont* m_pServerFont[ MAX_FALLBACK ];
+ bool m_bFontVertical;
SalInfoPrinter* m_pInfoPrinter;
protected:
@@ -79,40 +79,40 @@ public:
Ucs2UIntMap& rUnicodeEnc );
static ImplDevFontAttributes Info2DevFontAttributes( const psp::FastPrintFontInfo& );
static void AnnounceFonts( ImplDevFontList*, const psp::FastPrintFontInfo& );
- static FontWidth ToFontWidth (psp::width::type eWidth);
- static FontWeight ToFontWeight (psp::weight::type eWeight);
- static FontPitch ToFontPitch (psp::pitch::type ePitch);
- static FontItalic ToFontItalic (psp::italic::type eItalic);
- static FontFamily ToFontFamily (psp::family::type eFamily);
+ static FontWidth ToFontWidth (psp::width::type eWidth);
+ static FontWeight ToFontWeight (psp::weight::type eWeight);
+ static FontPitch ToFontPitch (psp::pitch::type ePitch);
+ static FontItalic ToFontItalic (psp::italic::type eItalic);
+ static FontFamily ToFontFamily (psp::family::type eFamily);
// overload all pure virtual methods
- virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
- virtual USHORT GetBitCount();
- virtual long GetGraphicsWidth() const;
+ virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
+ virtual USHORT GetBitCount();
+ virtual long GetGraphicsWidth() const;
- virtual void ResetClipRegion();
- virtual void BeginSetClipRegion( ULONG nCount );
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void ResetClipRegion();
+ virtual void BeginSetClipRegion( ULONG nCount );
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
- virtual void EndSetClipRegion();
+ virtual void EndSetClipRegion();
- virtual void SetLineColor();
- virtual void SetLineColor( SalColor nSalColor );
- virtual void SetFillColor();
- virtual void SetFillColor( SalColor nSalColor );
- virtual void SetXORMode( bool bSet, bool );
- virtual void SetROPLineColor( SalROPColor nROPColor );
- virtual void SetROPFillColor( SalROPColor nROPColor );
+ virtual void SetLineColor();
+ virtual void SetLineColor( SalColor nSalColor );
+ virtual void SetFillColor();
+ virtual void SetFillColor( SalColor nSalColor );
+ virtual void SetXORMode( bool bSet, bool );
+ virtual void SetROPLineColor( SalROPColor nROPColor );
+ virtual void SetROPFillColor( SalROPColor nROPColor );
- virtual void SetTextColor( SalColor nSalColor );
+ virtual void SetTextColor( SalColor nSalColor );
virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel );
- virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
- virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
+ virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
+ virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
virtual ImplFontCharMap* GetImplFontCharMap() const;
- virtual void GetDevFontList( ImplDevFontList* );
- virtual void GetDevFontSubstList( OutputDevice* );
- virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
- virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
+ virtual void GetDevFontList( ImplDevFontList* );
+ virtual void GetDevFontSubstList( OutputDevice* );
+ virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
+ virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
const ImplFontData*,
sal_Int32* pGlyphIDs,
sal_uInt8* pEncoding,
@@ -121,72 +121,72 @@ public:
FontSubsetInfo& rInfo
);
virtual const Ucs2SIntMap* GetFontEncodingVector( const ImplFontData*, const Ucs2OStrMap** ppNonEncoded );
- virtual const void* GetEmbedFontData( const ImplFontData*,
+ virtual const void* GetEmbedFontData( const ImplFontData*,
const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
long* pDataLen );
- virtual void FreeEmbedFontData( const void* pData, long nDataLen );
+ virtual void FreeEmbedFontData( const void* pData, long nDataLen );
virtual void GetGlyphWidths( const ImplFontData*,
bool bVertical,
Int32Vector& rWidths,
Ucs2UIntMap& rUnicodeEnc );
- virtual BOOL GetGlyphBoundRect( long nIndex, Rectangle& );
- virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
- virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
- virtual void DrawServerFontLayout( const ServerFontLayout& );
+ virtual BOOL GetGlyphBoundRect( long nIndex, Rectangle& );
+ virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
+ virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
+ virtual void DrawServerFontLayout( const ServerFontLayout& );
virtual bool supportsOperation( OutDevSupportType ) const;
- virtual void drawPixel( long nX, long nY );
- virtual void drawPixel( long nX, long nY, SalColor nSalColor );
- virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
- virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
- virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPixel( long nX, long nY );
+ virtual void drawPixel( long nX, long nY, SalColor nSalColor );
+ virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
+ virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
+ virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
virtual bool drawPolyLine( const ::basegfx::B2DPolygon&, double fTransparency, const ::basegfx::B2DVector& rLineWidths, basegfx::B2DLineJoin );
- virtual void drawPolyPolygon( sal_uInt32 nPoly,
+ virtual void drawPolyPolygon( sal_uInt32 nPoly,
const sal_uInt32* pPoints,
PCONSTSALPOINT* pPtAry );
- virtual sal_Bool drawPolyLineBezier( ULONG nPoints,
+ virtual sal_Bool drawPolyLineBezier( ULONG nPoints,
const SalPoint* pPtAry,
const BYTE* pFlgAry );
- virtual sal_Bool drawPolygonBezier( ULONG nPoints,
+ virtual sal_Bool drawPolygonBezier( ULONG nPoints,
const SalPoint* pPtAry,
const BYTE* pFlgAry );
- virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly,
+ virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly,
const sal_uInt32* pPoints,
const SalPoint* const* pPtAry,
const BYTE* const* pFlgAry );
- virtual void copyArea( long nDestX,
+ virtual void copyArea( long nDestX,
long nDestY,
long nSrcX,
long nSrcY,
long nSrcWidth,
long nSrcHeight,
USHORT nFlags );
- virtual void copyBits( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry,
SalGraphics* pSrcGraphics );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap );
- virtual void drawMask( const SalTwoRect* pPosAry,
+ virtual void drawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor );
- virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
- virtual SalColor getPixel( long nX, long nY );
- virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
- virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
+ virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
+ virtual SalColor getPixel( long nX, long nY );
+ virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
+ virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
- virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
+ virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
virtual bool filterText( const String& rOrigText, String& rNewText, xub_StrLen nIndex, xub_StrLen& rLen, xub_StrLen& rCutStart, xub_StrLen& rCutStop );
-
- virtual SystemGraphicsData GetGraphicsData() const;
+
+ virtual SystemGraphicsData GetGraphicsData() const;
virtual SystemFontData GetSysFontData( int nFallbacklevel ) const;
};
diff --git a/vcl/unx/headless/svptext.cxx b/vcl/unx/headless/svptext.cxx
index 4ff363e9d518..8701a7fcddcb 100644
--- a/vcl/unx/headless/svptext.cxx
+++ b/vcl/unx/headless/svptext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,7 +89,7 @@ SvpGlyphCache& SvpGlyphCache::GetInstance()
{
static SvpGlyphPeer aSvpGlyphPeer;
static SvpGlyphCache aGC( aSvpGlyphPeer );
- return aGC;
+ return aGC;
}
// ===========================================================================
@@ -162,7 +162,7 @@ void SvpGlyphPeer::RemovingGlyph( ServerFont&, GlyphData& rGlyphData, int /*nGly
if( rGlyphData.ExtDataRef().mpData != Format::NONE )
{
// release the glyph related resources
- DBG_ASSERT( (rGlyphData.ExtDataRef().meInfo <= Format::MAX), "SVP::RG() invalid alpha format" );
+ DBG_ASSERT( (rGlyphData.ExtDataRef().meInfo <= Format::MAX), "SVP::RG() invalid alpha format" );
SvpGcpHelper* pGcpHelper = (SvpGcpHelper*)rGlyphData.ExtDataRef().mpData;
delete[] pGcpHelper->maRawBitmap.mpBits;
delete pGcpHelper;
diff --git a/vcl/unx/headless/svpvd.cxx b/vcl/unx/headless/svpvd.cxx
index 2bf9894a1e23..87dff53cfbeb 100644
--- a/vcl/unx/headless/svpvd.cxx
+++ b/vcl/unx/headless/svpvd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,12 +87,12 @@ BOOL SvpSalVirtualDevice::SetSize( long nNewDX, long nNewDY )
m_aDevice = aDevPal.empty()
? createBitmapDevice( aDevSize, false, nFormat )
: createBitmapDevice( aDevSize, false, nFormat, PaletteMemorySharedVector( new std::vector< basebmp::Color >(aDevPal) ) );
-
+
// update device in existing graphics
for( std::list< SvpSalGraphics* >::iterator it = m_aGraphics.begin();
it != m_aGraphics.end(); ++it )
(*it)->setDevice( m_aDevice );
-
+
}
return true;
}
diff --git a/vcl/unx/headless/svpvd.hxx b/vcl/unx/headless/svpvd.hxx
index b30b83642293..d4769fca7f34 100644
--- a/vcl/unx/headless/svpvd.hxx
+++ b/vcl/unx/headless/svpvd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,16 +45,16 @@ class SvpSalVirtualDevice : public SalVirtualDevice, public SvpElement
public:
SvpSalVirtualDevice( USHORT nBitCount ) : SvpElement(), m_nBitCount(nBitCount) {}
virtual ~SvpSalVirtualDevice();
-
+
// SvpElement
virtual const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aDevice; }
// SalVirtualDevice
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL SetSize( long nNewDX, long nNewDY );
- virtual void GetSize( long& rWidth, long& rHeight );
+ virtual BOOL SetSize( long nNewDX, long nNewDY );
+ virtual void GetSize( long& rWidth, long& rHeight );
};
#endif // _SVP_SVPVD_HXX
diff --git a/vcl/unx/inc/XIM.h b/vcl/unx/inc/XIM.h
index 9a061edd1ed4..2aa84ecee71e 100644
--- a/vcl/unx/inc/XIM.h
+++ b/vcl/unx/inc/XIM.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,9 +63,9 @@ typedef struct _XIMUnicodeText {
char *multi_byte;
wchar_t *wide_char;
unsigned short *utf16_char;
- } string;
+ } string;
unsigned int count_annotations;
- XIMAnnotation *annotations;
+ XIMAnnotation *annotations;
} XIMUnicodeText;
/* lookup choice */
@@ -75,11 +75,11 @@ typedef enum {
} XIMDrawUpDirection ;
typedef struct _XIMLookupStartCallbackStruct {
- int choice_per_window; /* Number of choices can be display
+ int choice_per_window; /* Number of choices can be display
* in the region
*/
- int nrows;
- int ncolumns;
+ int nrows;
+ int ncolumns;
XIMDrawUpDirection draw_up_direction;
} XIMLookupStartCallbackStruct;
@@ -102,19 +102,19 @@ typedef enum {
XIMKatakana, XIMHanzi
} XIMUnicodeCharacterSubsetID;
-typedef struct _XIMUncodeSubset {
- XIMUnicodeCharacterSubsetID index;
- XIMUnicodeCharacterSubsetID subset_id;
- char *name;
- Bool is_active;
+typedef struct _XIMUncodeSubset {
+ XIMUnicodeCharacterSubsetID index;
+ XIMUnicodeCharacterSubsetID subset_id;
+ char *name;
+ Bool is_active;
} XIMUnicodeCharacterSubset;
-typedef struct _XIMUncodeSubsets {
+typedef struct _XIMUncodeSubsets {
unsigned short count_subsets;
XIMUnicodeCharacterSubset *supported_subsets;
} XIMUnicodeCharacterSubsets;
-typedef struct _XIMSwitchIMNotifyCallbackStruct {
+typedef struct _XIMSwitchIMNotifyCallbackStruct {
XIMUnicodeCharacterSubset *from;
XIMUnicodeCharacterSubset *to;
} XIMSwitchIMNotifyCallbackStruct;
diff --git a/vcl/unx/inc/Xproto.h b/vcl/unx/inc/Xproto.h
index b6db98dbfe15..07b3394cca4d 100644
--- a/vcl/unx/inc/Xproto.h
+++ b/vcl/unx/inc/Xproto.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/inc/cdeint.hxx b/vcl/unx/inc/cdeint.hxx
index e88d221f3aff..f6f24d1301bf 100644
--- a/vcl/unx/inc/cdeint.hxx
+++ b/vcl/unx/inc/cdeint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/inc/dtint.hxx b/vcl/unx/inc/dtint.hxx
index b6f7aa4b9350..b17383090016 100644
--- a/vcl/unx/inc/dtint.hxx
+++ b/vcl/unx/inc/dtint.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,27 +53,27 @@ enum DtType {
class DtIntegrator
{
protected:
- DtType meType;
- Display* mpDisplay;
- SalDisplay* mpSalDisplay;
- int mnSystemLookCommandProcess;
+ DtType meType;
+ Display* mpDisplay;
+ SalDisplay* mpSalDisplay;
+ int mnSystemLookCommandProcess;
DtIntegrator();
- static String aHomeDir;
+ static String aHomeDir;
public:
static DtIntegrator* CreateDtIntegrator();
-
+
virtual ~DtIntegrator();
// SystemLook
virtual void GetSystemLook( AllSettings& rSettings );
-
- DtType GetDtType() { return meType; }
- SalDisplay* GetSalDisplay() { return mpSalDisplay; }
- Display* GetDisplay() { return mpDisplay; }
+
+ DtType GetDtType() { return meType; }
+ SalDisplay* GetSalDisplay() { return mpSalDisplay; }
+ Display* GetDisplay() { return mpDisplay; }
};
#endif
diff --git a/vcl/unx/inc/i18n_cb.hxx b/vcl/unx/inc/i18n_cb.hxx
index 358538390a8d..8f22b935d4cf 100644
--- a/vcl/unx/inc/i18n_cb.hxx
+++ b/vcl/unx/inc/i18n_cb.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,18 +42,18 @@ int CommitStringCallback( XIC ic, XPointer client_data, XPointer call_data);
void PreeditDoneCallback ( XIC ic, XPointer client_data, XPointer call_data);
int PreeditStartCallback( XIC ic, XPointer client_data, XPointer call_data);
void PreeditDoneCallback ( XIC ic, XPointer client_data, XPointer call_data);
-void PreeditDrawCallback ( XIC ic, XPointer client_data,
+void PreeditDrawCallback ( XIC ic, XPointer client_data,
XIMPreeditDrawCallbackStruct *call_data );
-void PreeditCaretCallback( XIC ic, XPointer client_data,
+void PreeditCaretCallback( XIC ic, XPointer client_data,
XIMPreeditCaretCallbackStruct *call_data );
void GetPreeditSpotLocation(XIC ic, XPointer client_data);
-// private hook to prevent from sending further edit events
+// private hook to prevent from sending further edit events
void PreeditCancelCallback( XPointer client_data );
void StatusStartCallback (XIC ic, XPointer client_data, XPointer call_data);
void StatusDoneCallback (XIC ic, XPointer client_data, XPointer call_data);
-void StatusDrawCallback (XIC ic, XPointer client_data,
+void StatusDrawCallback (XIC ic, XPointer client_data,
XIMStatusDrawCallbackStruct *call_data);
void SwitchIMCallback (XIC ix, XPointer client_data, XPointer call_data );
@@ -85,10 +85,10 @@ typedef enum {
} preedit_status_t;
typedef struct {
- SalFrame* pFrame;
- Bool bIsMultilingual;
- preedit_status_t eState;
- preedit_text_t aText;
+ SalFrame* pFrame;
+ Bool bIsMultilingual;
+ preedit_status_t eState;
+ preedit_text_t aText;
SalExtTextInputEvent aInputEv;
std::vector< USHORT > aInputFlags;
} preedit_data_t;
diff --git a/vcl/unx/inc/i18n_ic.hxx b/vcl/unx/inc/i18n_ic.hxx
index e7382ef6ebd8..f082433810cb 100644
--- a/vcl/unx/inc/i18n_ic.hxx
+++ b/vcl/unx/inc/i18n_ic.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,9 +37,9 @@ class SalI18N_InputContext
private:
- Bool mbUseable; // system supports current locale ?
- Bool mbMultiLingual; // system supports iiimp ?
- XIC maContext;
+ Bool mbUseable; // system supports current locale ?
+ Bool mbMultiLingual; // system supports iiimp ?
+ XIC maContext;
XIMStyle mnSupportedStatusStyle;
XIMStyle mnSupportedPreeditStyle;
@@ -58,17 +58,17 @@ private:
XVaNestedList mpAttributes;
XVaNestedList mpStatusAttributes;
XVaNestedList mpPreeditAttributes;
-
- Bool SupportInputMethodStyle( XIMStyles *pIMStyles );
+
+ Bool SupportInputMethodStyle( XIMStyles *pIMStyles );
unsigned int GetWeightingOfIMStyle( XIMStyle n_style ) const ;
- Bool IsSupportedIMStyle( XIMStyle n_style ) const ;
+ Bool IsSupportedIMStyle( XIMStyle n_style ) const ;
public:
- Bool UseContext() { return mbUseable; }
- Bool IsMultiLingual() { return mbMultiLingual; }
- Bool IsPreeditMode() { return maClientData.eState == ePreeditStatusActive; }
- XIC GetContext() { return maContext; }
+ Bool UseContext() { return mbUseable; }
+ Bool IsMultiLingual() { return mbMultiLingual; }
+ Bool IsPreeditMode() { return maClientData.eState == ePreeditStatusActive; }
+ XIC GetContext() { return maContext; }
void ExtendEventMask( XLIB_Window aFocusWindow );
void SetICFocus( SalFrame* pFocusFrame );
@@ -76,7 +76,7 @@ public:
void HandleDestroyIM();
int HandleKeyEvent( XKeyEvent *pEvent, SalFrame *pFrame ); // unused
- void EndExtTextInput( USHORT nFlags ); // unused
+ void EndExtTextInput( USHORT nFlags ); // unused
int CommitStringCallback( sal_Unicode* pText, sal_Size nLength );
int CommitKeyEvent( sal_Unicode* pText, sal_Size nLength );
int UpdateSpotLocation();
diff --git a/vcl/unx/inc/i18n_im.hxx b/vcl/unx/inc/i18n_im.hxx
index cca69a3de223..9277c9c8491f 100644
--- a/vcl/unx/inc/i18n_im.hxx
+++ b/vcl/unx/inc/i18n_im.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,26 +37,26 @@ extern "C" char* GetMethodName( XIMStyle nStyle, char *pBuf, int nBufSize);
class VCL_DLLPUBLIC SalI18N_InputMethod
{
- Bool mbUseable; // system supports locale as well as status
- // and preedit style ?
- Bool mbMultiLingual; // system supports iiimp
- XIM maMethod;
+ Bool mbUseable; // system supports locale as well as status
+ // and preedit style ?
+ Bool mbMultiLingual; // system supports iiimp
+ XIM maMethod;
XIMCallback maDestroyCallback;
XIMStyles *mpStyles;
public:
- Bool IsMultiLingual() { return mbMultiLingual; }
+ Bool IsMultiLingual() { return mbMultiLingual; }
Bool PosixLocale();
- Bool UseMethod() { return mbUseable; }
- XIM GetMethod() { return maMethod; }
+ Bool UseMethod() { return mbUseable; }
+ XIM GetMethod() { return maMethod; }
void HandleDestroyIM();
- Bool CreateMethod( Display *pDisplay );
- XIMStyles *GetSupportedStyles() { return mpStyles; }
- Bool SetLocale( const char* pLocale = "" );
- Bool FilterEvent( XEvent *pEvent, XLIB_Window window );
- Bool AddConnectionWatch (Display *pDisplay, void *pConnectionHandler);
-
+ Bool CreateMethod( Display *pDisplay );
+ XIMStyles *GetSupportedStyles() { return mpStyles; }
+ Bool SetLocale( const char* pLocale = "" );
+ Bool FilterEvent( XEvent *pEvent, XLIB_Window window );
+ Bool AddConnectionWatch (Display *pDisplay, void *pConnectionHandler);
+
#ifdef _USE_PRINT_EXTENSION_
void Invalidate() { mbUseable = False; }
#endif
diff --git a/vcl/unx/inc/i18n_keysym.hxx b/vcl/unx/inc/i18n_keysym.hxx
index e34d80900b79..637459627add 100644
--- a/vcl/unx/inc/i18n_keysym.hxx
+++ b/vcl/unx/inc/i18n_keysym.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,36 +31,36 @@
/*
convert a keysym as defined in /usr/{X11R6|openwin}/include/X11/keysymdef.h
- to unicode
+ to unicode
supported charsets: (byte1 and byte2 are always 0x0)
-
- Latin-1 Byte 3 = 0x00
- Latin-2 Byte 3 = 0x01
- Latin-3 Byte 3 = 0x02
- Latin-4 Byte 3 = 0x03
- Kana Byte 3 = 0x04
- Arabic Byte 3 = 0x05
- Cyrillic Byte 3 = 0x06
- Greek Byte 3 = 0x07
- Technical Byte 3 = 0x08
- Special Byte 3 = 0x09
- Publishing Byte 3 = 0x0a = 10
- APL Byte 3 = 0x0b = 11
- Hebrew Byte 3 = 0x0c = 12
- Thai Byte 3 = 0x0d = 13
- Korean Byte 3 = 0x0e = 14
- Latin-9 Byte 3 = 0x13 = 19
- Currency Byte 3 = 0x20 = 32
- Keyboard Byte 3 = 0xff = 255
+
+ Latin-1 Byte 3 = 0x00
+ Latin-2 Byte 3 = 0x01
+ Latin-3 Byte 3 = 0x02
+ Latin-4 Byte 3 = 0x03
+ Kana Byte 3 = 0x04
+ Arabic Byte 3 = 0x05
+ Cyrillic Byte 3 = 0x06
+ Greek Byte 3 = 0x07
+ Technical Byte 3 = 0x08
+ Special Byte 3 = 0x09
+ Publishing Byte 3 = 0x0a = 10
+ APL Byte 3 = 0x0b = 11
+ Hebrew Byte 3 = 0x0c = 12
+ Thai Byte 3 = 0x0d = 13
+ Korean Byte 3 = 0x0e = 14
+ Latin-9 Byte 3 = 0x13 = 19
+ Currency Byte 3 = 0x20 = 32
+ Keyboard Byte 3 = 0xff = 255
missing charsets:
- Latin-8 Byte 3 = 0x12 = 18
- Armenian Byte 3 = 0x14 = 20
- Georgian Byte 3 = 0x15 = 21
- Azeri Byte 3 = 0x16 = 22
- Vietnamese Byte 3 = 0x1e = 30
+ Latin-8 Byte 3 = 0x12 = 18
+ Armenian Byte 3 = 0x14 = 20
+ Georgian Byte 3 = 0x15 = 21
+ Azeri Byte 3 = 0x16 = 22
+ Vietnamese Byte 3 = 0x1e = 30
of course not all keysyms can be mapped to a unicode code point
*/
diff --git a/vcl/unx/inc/i18n_status.hxx b/vcl/unx/inc/i18n_status.hxx
index 832f2a713091..6d6f72ceaaac 100644
--- a/vcl/unx/inc/i18n_status.hxx
+++ b/vcl/unx/inc/i18n_status.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ class X11ImeStatus : public SalI18NImeStatus
public:
X11ImeStatus() {}
virtual ~X11ImeStatus();
-
+
virtual bool canToggle();
virtual void toggle();
};
@@ -65,13 +65,13 @@ class I18NStatus
public:
struct ChoiceData
{
- String aString;
- void* pData;
+ String aString;
+ void* pData;
};
private:
- SalFrame* m_pParent;
- StatusWindow* m_pStatusWindow;
- String m_aCurrentIM;
+ SalFrame* m_pParent;
+ StatusWindow* m_pStatusWindow;
+ String m_aCurrentIM;
::std::vector< ChoiceData > m_aChoices;
I18NStatus();
diff --git a/vcl/unx/inc/i18n_xkb.hxx b/vcl/unx/inc/i18n_xkb.hxx
index e077fdb67526..3695466b77ef 100644
--- a/vcl/unx/inc/i18n_xkb.hxx
+++ b/vcl/unx/inc/i18n_xkb.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,83 +27,83 @@
************************************************************************/
#ifndef _SAL_I18N_XKBDEXTENSION_HXX
-#define _SAL_I18N_XKBDEXTENSION_HXX
+#define _SAL_I18N_XKBDEXTENSION_HXX
#include <sal/types.h>
#include <vcl/dllapi.h>
-class VCL_DLLPUBLIC SalI18N_KeyboardExtension
+class VCL_DLLPUBLIC SalI18N_KeyboardExtension
{
private:
- sal_Bool mbUseExtension;
- sal_uInt32 mnDefaultGroup;
- sal_uInt32 mnGroup;
- int mnEventBase;
+ sal_Bool mbUseExtension;
+ sal_uInt32 mnDefaultGroup;
+ sal_uInt32 mnGroup;
+ int mnEventBase;
int mnErrorBase;
- Display* mpDisplay;
+ Display* mpDisplay;
public:
SalI18N_KeyboardExtension( Display *pDisplay );
- inline ~SalI18N_KeyboardExtension();
+ inline ~SalI18N_KeyboardExtension();
- inline sal_Bool UseExtension() const ; // server and client support the
- // extension
- inline void UseExtension( sal_Bool bState );// used to disable the Extension
+ inline sal_Bool UseExtension() const ; // server and client support the
+ // extension
+ inline void UseExtension( sal_Bool bState );// used to disable the Extension
- void Dispatch( XEvent *pEvent ); // keep track of group changes
+ void Dispatch( XEvent *pEvent ); // keep track of group changes
- sal_uInt32 LookupKeysymInGroup( sal_uInt32 nKeyCode,
- sal_uInt32 nShiftState,
+ sal_uInt32 LookupKeysymInGroup( sal_uInt32 nKeyCode,
+ sal_uInt32 nShiftState,
sal_uInt32 nGroup ) const ;
- inline sal_uInt32 LookupKeysymInDefaultGroup(
- sal_uInt32 nKeyCode,
+ inline sal_uInt32 LookupKeysymInDefaultGroup(
+ sal_uInt32 nKeyCode,
sal_uInt32 nShiftState ) const ;
- inline sal_uInt32 GetGroup() const ; // the current keyboard group
- inline sal_uInt32 GetDefaultGroup() const ; // base group, usually group 1
- inline int GetEventBase() const ;
+ inline sal_uInt32 GetGroup() const ; // the current keyboard group
+ inline sal_uInt32 GetDefaultGroup() const ; // base group, usually group 1
+ inline int GetEventBase() const ;
protected:
-
- SalI18N_KeyboardExtension(); // disabled
+
+ SalI18N_KeyboardExtension(); // disabled
};
-inline
+inline
SalI18N_KeyboardExtension::~SalI18N_KeyboardExtension()
{
}
-inline sal_Bool
+inline sal_Bool
SalI18N_KeyboardExtension::UseExtension() const
-{
- return mbUseExtension;
+{
+ return mbUseExtension;
}
inline void
-SalI18N_KeyboardExtension::UseExtension( sal_Bool bState )
-{
+SalI18N_KeyboardExtension::UseExtension( sal_Bool bState )
+{
mbUseExtension = mbUseExtension && bState;
}
-inline sal_uInt32
-SalI18N_KeyboardExtension::LookupKeysymInDefaultGroup( sal_uInt32 nKeyCode,
+inline sal_uInt32
+SalI18N_KeyboardExtension::LookupKeysymInDefaultGroup( sal_uInt32 nKeyCode,
sal_uInt32 nShiftState ) const
-{
- return LookupKeysymInGroup( nKeyCode, nShiftState, mnDefaultGroup );
+{
+ return LookupKeysymInGroup( nKeyCode, nShiftState, mnDefaultGroup );
}
-inline sal_uInt32
-SalI18N_KeyboardExtension::GetGroup() const
-{
+inline sal_uInt32
+SalI18N_KeyboardExtension::GetGroup() const
+{
return mnGroup;
-}
-
-inline sal_uInt32
+}
+
+inline sal_uInt32
SalI18N_KeyboardExtension::GetDefaultGroup() const
-{
- return mnDefaultGroup;
+{
+ return mnDefaultGroup;
}
inline int
diff --git a/vcl/unx/inc/plugins/gtk/atkbridge.hxx b/vcl/unx/inc/plugins/gtk/atkbridge.hxx
index 2624f046a612..4b81eca9d082 100644
--- a/vcl/unx/inc/plugins/gtk/atkbridge.hxx
+++ b/vcl/unx/inc/plugins/gtk/atkbridge.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/inc/plugins/gtk/gtkdata.hxx b/vcl/unx/inc/plugins/gtk/gtkdata.hxx
index 5ea635703189..1c7a729ffdc5 100644
--- a/vcl/unx/inc/plugins/gtk/gtkdata.hxx
+++ b/vcl/unx/inc/plugins/gtk/gtkdata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,9 +46,9 @@ class GtkData : public X11SalData
public:
GtkData() {}
virtual ~GtkData();
-
+
virtual void Init();
-
+
virtual void initNWF();
virtual void deInitNWF();
};
@@ -57,7 +57,7 @@ class GtkSalFrame;
class GtkSalDisplay : public SalDisplay
{
- GdkDisplay* m_pGdkDisplay;
+ GdkDisplay* m_pGdkDisplay;
GdkCursor *m_aCursors[ POINTER_COUNT ];
bool m_bStartupCompleted;
GdkCursor* getFromXPM( const char *pBitmap, const char *pMask,
@@ -83,7 +83,7 @@ public:
inline void EventGuardAcquire() { osl_acquireMutex( hEventGuard_ ); }
inline void EventGuardRelease() { osl_releaseMutex( hEventGuard_ ); }
void startupNotificationCompleted() { m_bStartupCompleted = true; }
-
+
void screenSizeChanged( GdkScreen* );
void monitorsChanged( GdkScreen* );
};
diff --git a/vcl/unx/inc/plugins/gtk/gtkframe.hxx b/vcl/unx/inc/plugins/gtk/gtkframe.hxx
index f63f02bcda0f..2831f33af8ac 100644
--- a/vcl/unx/inc/plugins/gtk/gtkframe.hxx
+++ b/vcl/unx/inc/plugins/gtk/gtkframe.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ class GtkSalFrame : public SalFrame
{}
~GraphicsHolder();
};
-
+
struct IMHandler
{
//--------------------------------------------------------
@@ -81,7 +81,7 @@ class GtkSalFrame : public SalFrame
guint keyval;
guint16 hardware_keycode;
guint8 group;
-
+
PreviousKeyPress (GdkEventKey *event)
: window (NULL),
send_event (0),
@@ -102,7 +102,7 @@ class GtkSalFrame : public SalFrame
group = event->group;
}
}
-
+
PreviousKeyPress( const PreviousKeyPress& rPrev )
: window( rPrev.window ),
send_event( rPrev.send_event ),
@@ -112,7 +112,7 @@ class GtkSalFrame : public SalFrame
hardware_keycode( rPrev.hardware_keycode ),
group( rPrev.group )
{}
-
+
bool operator== (GdkEventKey *event) const
{
return (event != NULL)
@@ -127,8 +127,8 @@ class GtkSalFrame : public SalFrame
;
}
};
-
-
+
+
GtkSalFrame* m_pFrame;
std::list< PreviousKeyPress > m_aPrevKeyPresses;
int m_nPrevKeyPresses; // avoid using size()
@@ -137,7 +137,7 @@ class GtkSalFrame : public SalFrame
bool m_bPreeditJustChanged;
SalExtTextInputEvent m_aInputEvent;
std::vector< USHORT > m_aInputFlags;
-
+
IMHandler( GtkSalFrame* );
~IMHandler();
@@ -148,17 +148,17 @@ class GtkSalFrame : public SalFrame
void endExtTextInput( USHORT nFlags );
bool handleKeyEvent( GdkEventKey* pEvent );
void focusChanged( bool bFocusIn );
-
+
void doCallEndExtTextInput();
void sendEmptyCommit();
-
-
- static void signalIMCommit( GtkIMContext*, gchar*, gpointer );
- static gboolean signalIMDeleteSurrounding( GtkIMContext*, gint, gint, gpointer );
- static void signalIMPreeditChanged( GtkIMContext*, gpointer );
- static void signalIMPreeditEnd( GtkIMContext*, gpointer );
- static void signalIMPreeditStart( GtkIMContext*, gpointer );
- static gboolean signalIMRetrieveSurrounding( GtkIMContext*, gpointer );
+
+
+ static void signalIMCommit( GtkIMContext*, gchar*, gpointer );
+ static gboolean signalIMDeleteSurrounding( GtkIMContext*, gint, gint, gpointer );
+ static void signalIMPreeditChanged( GtkIMContext*, gpointer );
+ static void signalIMPreeditEnd( GtkIMContext*, gpointer );
+ static void signalIMPreeditStart( GtkIMContext*, gpointer );
+ static gboolean signalIMRetrieveSurrounding( GtkIMContext*, gpointer );
};
friend struct IMHandler;
@@ -192,40 +192,40 @@ class GtkSalFrame : public SalFrame
bool m_bSetFocusOnMap;
String m_aTitle;
rtl::OUString m_sWMClass;
-
+
IMHandler* m_pIMHandler;
-
+
Size m_aMaxSize;
Size m_aMinSize;
- Rectangle m_aRestorePosSize;
-
- GdkRegion* m_pRegion;
+ Rectangle m_aRestorePosSize;
+
+ GdkRegion* m_pRegion;
void Init( SalFrame* pParent, ULONG nStyle );
void Init( SystemParentData* pSysData );
void InitCommon();
// signals
- static gboolean signalButton( GtkWidget*, GdkEventButton*, gpointer );
- static void signalStyleSet( GtkWidget*, GtkStyle* pPrevious, gpointer );
- static gboolean signalExpose( GtkWidget*, GdkEventExpose*, gpointer );
- static gboolean signalFocus( GtkWidget*, GdkEventFocus*, gpointer );
- static gboolean signalMap( GtkWidget*, GdkEvent*, gpointer );
- static gboolean signalUnmap( GtkWidget*, GdkEvent*, gpointer );
- static gboolean signalConfigure( GtkWidget*, GdkEventConfigure*, gpointer );
- static gboolean signalMotion( GtkWidget*, GdkEventMotion*, gpointer );
- static gboolean signalKey( GtkWidget*, GdkEventKey*, gpointer );
- static gboolean signalDelete( GtkWidget*, GdkEvent*, gpointer );
- static gboolean signalState( GtkWidget*, GdkEvent*, gpointer );
- static gboolean signalScroll( GtkWidget*, GdkEvent*, gpointer );
- static gboolean signalCrossing( GtkWidget*, GdkEventCrossing*, gpointer );
- static gboolean signalVisibility( GtkWidget*, GdkEventVisibility*, gpointer );
- static void signalDestroy( GtkObject*, gpointer );
-
- void Center();
- void SetDefaultSize();
- void setAutoLock( bool bLock );
- void setScreenSaverTimeout( int nTimeout );
+ static gboolean signalButton( GtkWidget*, GdkEventButton*, gpointer );
+ static void signalStyleSet( GtkWidget*, GtkStyle* pPrevious, gpointer );
+ static gboolean signalExpose( GtkWidget*, GdkEventExpose*, gpointer );
+ static gboolean signalFocus( GtkWidget*, GdkEventFocus*, gpointer );
+ static gboolean signalMap( GtkWidget*, GdkEvent*, gpointer );
+ static gboolean signalUnmap( GtkWidget*, GdkEvent*, gpointer );
+ static gboolean signalConfigure( GtkWidget*, GdkEventConfigure*, gpointer );
+ static gboolean signalMotion( GtkWidget*, GdkEventMotion*, gpointer );
+ static gboolean signalKey( GtkWidget*, GdkEventKey*, gpointer );
+ static gboolean signalDelete( GtkWidget*, GdkEvent*, gpointer );
+ static gboolean signalState( GtkWidget*, GdkEvent*, gpointer );
+ static gboolean signalScroll( GtkWidget*, GdkEvent*, gpointer );
+ static gboolean signalCrossing( GtkWidget*, GdkEventCrossing*, gpointer );
+ static gboolean signalVisibility( GtkWidget*, GdkEventVisibility*, gpointer );
+ static void signalDestroy( GtkObject*, gpointer );
+
+ void Center();
+ void SetDefaultSize();
+ void setAutoLock( bool bLock );
+ void setScreenSaverTimeout( int nTimeout );
void doKeyCallback( guint state,
guint keyval,
@@ -250,7 +250,7 @@ class GtkSalFrame : public SalFrame
!(m_nStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION) && // toolbars are also not
!(m_nStyle & SAL_FRAME_STYLE_FLOAT_FOCUSABLE); // focusable floats are not
}
-
+
bool isChild( bool bPlug = true, bool bSysChild = true )
{
ULONG nMask = 0;
@@ -260,7 +260,7 @@ class GtkSalFrame : public SalFrame
nMask |= SAL_FRAME_STYLE_SYSTEMCHILD;
return (m_nStyle & nMask) != 0;
}
-
+
void resizeWindow( long nWidth, long nHeight );
void moveWindow( long nX, long nY );
@@ -271,7 +271,7 @@ class GtkSalFrame : public SalFrame
void askForXEmbedFocus( sal_Int32 nTimecode );
void updateWMClass();
-
+
DECL_LINK( ImplDelayedFullScreenHdl, void* );
public:
GtkSalFrame( SalFrame* pParent, ULONG nStyle );
@@ -283,20 +283,20 @@ public:
bool Dispatch( const XEvent* pEvent );
void grabPointer( BOOL bGrab, BOOL bOwnerEvents = FALSE );
- GtkSalDisplay* getDisplay();
- GdkDisplay* getGdkDisplay();
- GtkWidget* getWindow() const { return m_pWindow; }
- GtkFixed* getFixedContainer() const { return m_pFixedContainer; }
- GdkWindow* getForeignParent() const { return m_pForeignParent; }
- GdkNativeWindow getForeignParentWindow() const { return m_aForeignParentWindow; }
- GdkWindow* getForeignTopLevel() const { return m_pForeignTopLevel; }
- GdkNativeWindow getForeignTopLevelWindow() const { return m_aForeignTopLevelWindow; }
+ GtkSalDisplay* getDisplay();
+ GdkDisplay* getGdkDisplay();
+ GtkWidget* getWindow() const { return m_pWindow; }
+ GtkFixed* getFixedContainer() const { return m_pFixedContainer; }
+ GdkWindow* getForeignParent() const { return m_pForeignParent; }
+ GdkNativeWindow getForeignParentWindow() const { return m_aForeignParentWindow; }
+ GdkWindow* getForeignTopLevel() const { return m_pForeignTopLevel; }
+ GdkNativeWindow getForeignTopLevelWindow() const { return m_aForeignTopLevelWindow; }
GdkVisibilityState getVisibilityState() const
{ return m_nVisibility; }
Pixmap getBackgroundPixmap() const { return m_hBackgroundPixmap; }
int getScreenNumber() const { return m_nScreen; }
void updateScreenNumber();
-
+
void moveToScreen( int nScreen );
virtual ~GtkSalFrame();
@@ -393,13 +393,13 @@ public:
// shaped system windows
// set clip region to none (-> rectangular windows, normal state)
- virtual void ResetClipRegion();
+ virtual void ResetClipRegion();
// start setting the clipregion consisting of nRects rectangles
- virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void BeginSetClipRegion( ULONG nRects );
// add a rectangle to the clip region
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
// done setting up the clipregion
- virtual void EndSetClipRegion();
+ virtual void EndSetClipRegion();
static GtkSalFrame *getFromWindow( GtkWindow *pWindow );
};
diff --git a/vcl/unx/inc/plugins/gtk/gtkgdi.hxx b/vcl/unx/inc/plugins/gtk/gtkgdi.hxx
index 209ba99cd875..6782e2043502 100644
--- a/vcl/unx/inc/plugins/gtk/gtkgdi.hxx
+++ b/vcl/unx/inc/plugins/gtk/gtkgdi.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,34 +34,34 @@
#include <gdk/gdkx.h>
#include <gdk/gdkkeysyms.h>
#include <tools/postx.h>
-
+
#include <salgdi.h>
class GtkSalGraphics : public X11SalGraphics
{
GtkWidget *m_pWindow;
Region m_aClipRegion;
-
+
public:
GtkSalGraphics( GtkWidget *window )
: m_pWindow( window ),
m_aClipRegion( REGION_NULL )
{}
virtual ~GtkSalGraphics();
-
+
inline GtkWidget* GetGtkWidget() const { return m_pWindow; }
inline GdkWindow* GetGdkWindow() const { return m_pWindow->window; }
inline GtkSalFrame* GetGtkFrame() const { return static_cast<GtkSalFrame*>(m_pFrame); }
- void SetWindow( GtkWidget* window ) { m_pWindow = window; }
-
-
+ void SetWindow( GtkWidget* window ) { m_pWindow = window; }
+
+
// will be set when UI theme was changed
static BOOL bThemeChanged;
static BOOL bNeedPixmapPaint;
static BOOL bGlobalNeedPixmapPaint;
static BOOL bToolbarGripWorkaround;
static BOOL bNeedButtonStyleAsEditBackgroundWorkaround;
-
+
// native widget methods
virtual BOOL IsNativeControlSupported( ControlType nType, ControlPart nPart );
virtual BOOL hitTestNativeControl( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion,
@@ -75,28 +75,28 @@ public:
virtual BOOL getNativeControlRegion( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion, ControlState nState,
const ImplControlValue& aValue, const rtl::OUString& rCaption,
Rectangle &rNativeBoundingRegion, Rectangle &rNativeContentRegion );
-
+
//helper methods for frame's UpdateSettings
void updateSettings( AllSettings& rSettings );
-
- virtual void ResetClipRegion();
- virtual void BeginSetClipRegion( ULONG nCount );
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
- virtual void EndSetClipRegion();
+
+ virtual void ResetClipRegion();
+ virtual void BeginSetClipRegion( ULONG nCount );
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
+ virtual void EndSetClipRegion();
// some themes set the background pixmap of our window EVERY time
// a control is painted; but presentation effects need
// the background set to None; workaround: set the background
// before copyBits
- virtual void copyBits( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry,
SalGraphics* pSrcGraphics );
protected:
typedef std::list< Rectangle > clipList;
GdkPixmap* NWGetPixmapFromScreen( Rectangle srcRect );
- BOOL NWRenderPixmapToScreen( GdkPixmap* pPixmap, Rectangle dstRect );
+ BOOL NWRenderPixmapToScreen( GdkPixmap* pPixmap, Rectangle dstRect );
BOOL NWPaintGTKButton( GdkDrawable* gdkDrawable, ControlType nType, ControlPart nPart,
const Rectangle& rControlRectangle,
@@ -143,7 +143,7 @@ protected:
const clipList& rClipList,
ControlState nState, const ImplControlValue& aValue,
const OUString& rCaption );
-
+
BOOL NWPaintGTKToolbar( GdkDrawable* gdkDrawable, ControlType nType, ControlPart nPart,
const Rectangle& rControlRectangle,
const clipList& rClipList,
diff --git a/vcl/unx/inc/plugins/gtk/gtkinst.hxx b/vcl/unx/inc/plugins/gtk/gtkinst.hxx
index 325bf54f7998..c0c08594e442 100644
--- a/vcl/unx/inc/plugins/gtk/gtkinst.hxx
+++ b/vcl/unx/inc/plugins/gtk/gtkinst.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,19 +36,19 @@ class GtkYieldMutex : public SalYieldMutex
{
public:
GtkYieldMutex();
- virtual void acquire();
- virtual void release();
- virtual sal_Bool tryToAcquire();
+ virtual void acquire();
+ virtual void release();
+ virtual sal_Bool tryToAcquire();
virtual int Grab();
virtual void Ungrab( int );
class GtkYieldGuard
{
- GtkYieldMutex* m_pMutex;
- int m_nGrab;
+ GtkYieldMutex* m_pMutex;
+ int m_nGrab;
public:
- GtkYieldGuard( GtkYieldMutex* pMutex )
+ GtkYieldGuard( GtkYieldMutex* pMutex )
: m_pMutex( pMutex )
{
m_nGrab = m_pMutex->Grab();
@@ -62,8 +62,8 @@ public:
class GtkHookedYieldMutex : public GtkYieldMutex
{
- virtual int Grab() { return 0; };
- virtual void Ungrab(int ) {};
+ virtual int Grab() { return 0; };
+ virtual void Ungrab(int ) {};
std::list<ULONG> aYieldStack;
public:
GtkHookedYieldMutex();
@@ -80,15 +80,15 @@ public:
class GtkInstance : public X11SalInstance
{
public:
- GtkInstance( SalYieldMutex* pMutex )
+ GtkInstance( SalYieldMutex* pMutex )
: X11SalInstance( pMutex )
{}
virtual ~GtkInstance();
- virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
+ virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
- virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
- virtual SalSystem* CreateSalSystem();
+ virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
+ virtual SalSystem* CreateSalSystem();
virtual void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
};
diff --git a/vcl/unx/inc/plugins/gtk/gtkobject.hxx b/vcl/unx/inc/plugins/gtk/gtkobject.hxx
index 143f9a2d19a9..7daea86a8a3b 100644
--- a/vcl/unx/inc/plugins/gtk/gtkobject.hxx
+++ b/vcl/unx/inc/plugins/gtk/gtkobject.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,37 +36,37 @@
class GtkSalObject : public SalObject
{
- SystemChildData m_aSystemData;
- GtkWidget* m_pSocket;
- GdkRegion* m_pRegion;
+ SystemChildData m_aSystemData;
+ GtkWidget* m_pSocket;
+ GdkRegion* m_pRegion;
// signals
- static gboolean signalButton( GtkWidget*, GdkEventButton*, gpointer );
- static gboolean signalFocus( GtkWidget*, GdkEventFocus*, gpointer );
- static void signalDestroy( GtkObject*, gpointer );
+ static gboolean signalButton( GtkWidget*, GdkEventButton*, gpointer );
+ static gboolean signalFocus( GtkWidget*, GdkEventFocus*, gpointer );
+ static void signalDestroy( GtkObject*, gpointer );
public:
GtkSalObject( GtkSalFrame* pParent, BOOL bShow = TRUE );
virtual ~GtkSalObject();
// overload all pure virtual methods
- virtual void ResetClipRegion();
- virtual USHORT GetClipRegionType();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
+ virtual void ResetClipRegion();
+ virtual USHORT GetClipRegionType();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
- virtual void Show( BOOL bVisible );
- virtual void Enable( BOOL nEnable );
- virtual void GrabFocus();
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
+ virtual void Show( BOOL bVisible );
+ virtual void Enable( BOOL nEnable );
+ virtual void GrabFocus();
- virtual void SetBackground();
- virtual void SetBackground( SalColor nSalColor );
+ virtual void SetBackground();
+ virtual void SetBackground( SalColor nSalColor );
virtual void SetForwardKey( BOOL bEnable );
- virtual const SystemEnvData* GetSystemData() const;
-
+ virtual const SystemEnvData* GetSystemData() const;
+
};
#endif // _SV_SALOBJ_H
diff --git a/vcl/unx/inc/plugins/kde/kdedata.hxx b/vcl/unx/inc/plugins/kde/kdedata.hxx
index 458685ea58b0..29148b2c658e 100644
--- a/vcl/unx/inc/plugins/kde/kdedata.hxx
+++ b/vcl/unx/inc/plugins/kde/kdedata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,7 +38,7 @@ class KDEData : public X11SalData
public:
KDEData() {}
virtual ~KDEData();
-
+
virtual void Init();
virtual void initNWF();
virtual void deInitNWF();
@@ -57,9 +57,9 @@ class KDESalFrame : public X11SalFrame
struct GraphicsHolder
{
- X11SalGraphics* pGraphics;
- bool bInUse;
- GraphicsHolder()
+ X11SalGraphics* pGraphics;
+ bool bInUse;
+ GraphicsHolder()
: pGraphics( NULL ),
bInUse( false )
{}
@@ -81,7 +81,7 @@ public:
class KDESalInstance : public X11SalInstance
{
public:
- KDESalInstance( SalYieldMutex* pMutex )
+ KDESalInstance( SalYieldMutex* pMutex )
: X11SalInstance( pMutex ) {}
virtual ~KDESalInstance() {}
virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
@@ -104,7 +104,7 @@ public:
{}
virtual ~KDEXLib();
virtual void Init();
-
+
void doStartup();
};
diff --git a/vcl/unx/inc/pspgraphics.h b/vcl/unx/inc/pspgraphics.h
index eb333018f8fc..9616202e74f7 100644
--- a/vcl/unx/inc/pspgraphics.h
+++ b/vcl/unx/inc/pspgraphics.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,15 +43,15 @@ class SalInfoPrinter;
class VCL_DLLPUBLIC PspGraphics : public SalGraphics
{
- psp::JobData* m_pJobData;
- psp::PrinterGfx* m_pPrinterGfx;
- String* m_pPhoneNr;
- bool m_bSwallowFaxNo;
- String m_aPhoneCollection;
- bool m_bPhoneCollectionActive;
-
- ServerFont* m_pServerFont[ MAX_FALLBACK ];
- bool m_bFontVertical;
+ psp::JobData* m_pJobData;
+ psp::PrinterGfx* m_pPrinterGfx;
+ String* m_pPhoneNr;
+ bool m_bSwallowFaxNo;
+ String m_aPhoneCollection;
+ bool m_bPhoneCollectionActive;
+
+ ServerFont* m_pServerFont[ MAX_FALLBACK ];
+ bool m_bFontVertical;
SalInfoPrinter* m_pInfoPrinter;
public:
PspGraphics( psp::JobData* pJob, psp::PrinterGfx* pGfx, String* pPhone, bool bSwallow, SalInfoPrinter* pInfoPrinter )
@@ -76,40 +76,40 @@ public:
static ImplDevFontAttributes Info2DevFontAttributes( const psp::FastPrintFontInfo& );
static void AnnounceFonts( ImplDevFontList*, const psp::FastPrintFontInfo& );
- static FontWidth ToFontWidth (psp::width::type eWidth);
- static FontWeight ToFontWeight (psp::weight::type eWeight);
- static FontPitch ToFontPitch (psp::pitch::type ePitch);
- static FontItalic ToFontItalic (psp::italic::type eItalic);
- static FontFamily ToFontFamily (psp::family::type eFamily);
+ static FontWidth ToFontWidth (psp::width::type eWidth);
+ static FontWeight ToFontWeight (psp::weight::type eWeight);
+ static FontPitch ToFontPitch (psp::pitch::type ePitch);
+ static FontItalic ToFontItalic (psp::italic::type eItalic);
+ static FontFamily ToFontFamily (psp::family::type eFamily);
// overload all pure virtual methods
- virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
- virtual USHORT GetBitCount();
- virtual long GetGraphicsWidth() const;
-
- virtual void ResetClipRegion();
- virtual void BeginSetClipRegion( ULONG nCount );
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
- virtual void EndSetClipRegion();
-
- virtual void SetLineColor();
- virtual void SetLineColor( SalColor nSalColor );
- virtual void SetFillColor();
- virtual void SetFillColor( SalColor nSalColor );
- virtual void SetXORMode( bool bSet, bool );
- virtual void SetROPLineColor( SalROPColor nROPColor );
- virtual void SetROPFillColor( SalROPColor nROPColor );
-
- virtual void SetTextColor( SalColor nSalColor );
+ virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
+ virtual USHORT GetBitCount();
+ virtual long GetGraphicsWidth() const;
+
+ virtual void ResetClipRegion();
+ virtual void BeginSetClipRegion( ULONG nCount );
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
+ virtual void EndSetClipRegion();
+
+ virtual void SetLineColor();
+ virtual void SetLineColor( SalColor nSalColor );
+ virtual void SetFillColor();
+ virtual void SetFillColor( SalColor nSalColor );
+ virtual void SetXORMode( bool bSet, bool );
+ virtual void SetROPLineColor( SalROPColor nROPColor );
+ virtual void SetROPFillColor( SalROPColor nROPColor );
+
+ virtual void SetTextColor( SalColor nSalColor );
virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel );
- virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
- virtual ULONG GetKernPairs( ULONG nMaxPairs, ImplKernPairData* );
+ virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
+ virtual ULONG GetKernPairs( ULONG nMaxPairs, ImplKernPairData* );
virtual ImplFontCharMap* GetImplFontCharMap() const;
- virtual void GetDevFontList( ImplDevFontList* );
- virtual void GetDevFontSubstList( OutputDevice* );
- virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
- virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
+ virtual void GetDevFontList( ImplDevFontList* );
+ virtual void GetDevFontSubstList( OutputDevice* );
+ virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
+ virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
const ImplFontData*,
sal_Int32* pGlyphIDs,
sal_uInt8* pEncoding,
@@ -118,76 +118,76 @@ public:
FontSubsetInfo& rInfo
);
virtual const Ucs2SIntMap* GetFontEncodingVector( const ImplFontData*, const Ucs2OStrMap** ppNonEncoded );
- virtual const void* GetEmbedFontData( const ImplFontData*,
+ virtual const void* GetEmbedFontData( const ImplFontData*,
const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
long* pDataLen );
- virtual void FreeEmbedFontData( const void* pData, long nDataLen );
+ virtual void FreeEmbedFontData( const void* pData, long nDataLen );
virtual void GetGlyphWidths( const ImplFontData*,
bool bVertical,
Int32Vector& rWidths,
Ucs2UIntMap& rUnicodeEnc );
- virtual BOOL GetGlyphBoundRect( long nIndex, Rectangle& );
- virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
- virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
- virtual void DrawServerFontLayout( const ServerFontLayout& );
+ virtual BOOL GetGlyphBoundRect( long nIndex, Rectangle& );
+ virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
+ virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
+ virtual void DrawServerFontLayout( const ServerFontLayout& );
virtual bool supportsOperation( OutDevSupportType ) const;
- virtual void drawPixel( long nX, long nY );
- virtual void drawPixel( long nX, long nY, SalColor nSalColor );
- virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
- virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
- virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolyPolygon( sal_uInt32 nPoly,
+ virtual void drawPixel( long nX, long nY );
+ virtual void drawPixel( long nX, long nY, SalColor nSalColor );
+ virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
+ virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
+ virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolyPolygon( sal_uInt32 nPoly,
const sal_uInt32* pPoints,
PCONSTSALPOINT* pPtAry );
- virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
+ virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
virtual bool drawPolyLine( const basegfx::B2DPolygon&, double fTransparency, const basegfx::B2DVector& rLineWidths, basegfx::B2DLineJoin);
- virtual sal_Bool drawPolyLineBezier( ULONG nPoints,
+ virtual sal_Bool drawPolyLineBezier( ULONG nPoints,
const SalPoint* pPtAry,
const BYTE* pFlgAry );
- virtual sal_Bool drawPolygonBezier( ULONG nPoints,
+ virtual sal_Bool drawPolygonBezier( ULONG nPoints,
const SalPoint* pPtAry,
const BYTE* pFlgAry );
- virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly,
+ virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly,
const sal_uInt32* pPoints,
const SalPoint* const* pPtAry,
const BYTE* const* pFlgAry );
- virtual void copyArea( long nDestX,
+ virtual void copyArea( long nDestX,
long nDestY,
long nSrcX,
long nSrcY,
long nSrcWidth,
long nSrcHeight,
USHORT nFlags );
- virtual void copyBits( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry,
SalGraphics* pSrcGraphics );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap );
- virtual void drawMask( const SalTwoRect* pPosAry,
+ virtual void drawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor );
- virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
- virtual SalColor getPixel( long nX, long nY );
- virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
- virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
+ virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
+ virtual SalColor getPixel( long nX, long nY );
+ virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
+ virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
- virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
+ virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
virtual bool filterText( const String& rOrigText, String& rNewText, xub_StrLen nIndex, xub_StrLen& rLen, xub_StrLen& rCutStart, xub_StrLen& rCutStop );
-
+
virtual bool drawAlphaBitmap( const SalTwoRect&,
const SalBitmap& rSourceBitmap,
const SalBitmap& rAlphaBitmap );
virtual bool drawAlphaRect( long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency );
- virtual SystemGraphicsData GetGraphicsData() const;
+ virtual SystemGraphicsData GetGraphicsData() const;
virtual SystemFontData GetSysFontData( int nFallbacklevel ) const;
};
diff --git a/vcl/unx/inc/salbmp.h b/vcl/unx/inc/salbmp.h
index 1f2dc420cb72..bd9f2ae0ed5b 100644
--- a/vcl/unx/inc/salbmp.h
+++ b/vcl/unx/inc/salbmp.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,11 +37,11 @@
#include <vcl/salbmp.hxx>
#include <vcl/dllapi.h>
-struct BitmapBuffer;
-class BitmapPalette;
-class SalGraphics;
-class ImplSalDDB;
-class ImplSalBitmapCache;
+struct BitmapBuffer;
+class BitmapPalette;
+class SalGraphics;
+class ImplSalDDB;
+class ImplSalBitmapCache;
// -------------
// - SalBitmap -
@@ -51,10 +51,10 @@ class VCL_DLLPUBLIC X11SalBitmap : public SalBitmap
{
private:
- static BitmapBuffer* ImplCreateDIB( const Size& rSize,
- USHORT nBitCount,
+ static BitmapBuffer* ImplCreateDIB( const Size& rSize,
+ USHORT nBitCount,
const BitmapPalette& rPal );
- static BitmapBuffer* ImplCreateDIB( Drawable aDrawable,
+ static BitmapBuffer* ImplCreateDIB( Drawable aDrawable,
int nScreen,
long nDrawableDepth,
long nX, long nY,
@@ -63,12 +63,12 @@ private:
public:
- static ImplSalBitmapCache* mpCache;
- static ULONG mnCacheInstCount;
+ static ImplSalBitmapCache* mpCache;
+ static ULONG mnCacheInstCount;
- static void ImplCreateCache();
- static void ImplDestroyCache();
- void ImplRemovedFromCache();
+ static void ImplCreateCache();
+ static void ImplDestroyCache();
+ void ImplRemovedFromCache();
bool SnapShot (Display* pDisplay, XLIB_Window hWindow);
bool ImplCreateFromXImage( Display* pDisplay,
@@ -78,52 +78,52 @@ public:
private:
- BitmapBuffer* mpDIB;
- ImplSalDDB* mpDDB;
+ BitmapBuffer* mpDIB;
+ ImplSalDDB* mpDDB;
bool mbGrey;
-
+
public:
SAL_DLLPRIVATE bool ImplCreateFromDrawable( Drawable aDrawable,
int nScreen,
long nDrawableDepth,
- long nX, long nY,
+ long nX, long nY,
long nWidth, long nHeight );
SAL_DLLPRIVATE XImage* ImplCreateXImage( SalDisplay* pSalDisp,
- int nScreen, long nDepth,
+ int nScreen, long nDepth,
const SalTwoRect& rTwoRect ) const;
SAL_DLLPRIVATE ImplSalDDB* ImplGetDDB( Drawable, int nScreen, long nDrawableDepth,
const SalTwoRect& ) const;
- void ImplDraw( Drawable aDrawable, int nScreen, long nDrawableDepth,
+ void ImplDraw( Drawable aDrawable, int nScreen, long nDrawableDepth,
const SalTwoRect& rTwoRect, const GC& rGC ) const;
-
-public:
-
+
+public:
+
X11SalBitmap();
virtual ~X11SalBitmap();
// overload pure virtual methods
- virtual bool Create( const Size& rSize,
- USHORT nBitCount,
+ virtual bool Create( const Size& rSize,
+ USHORT nBitCount,
const BitmapPalette& rPal );
- virtual bool Create( const SalBitmap& rSalBmp );
- virtual bool Create( const SalBitmap& rSalBmp,
+ virtual bool Create( const SalBitmap& rSalBmp );
+ virtual bool Create( const SalBitmap& rSalBmp,
SalGraphics* pGraphics );
- virtual bool Create( const SalBitmap& rSalBmp,
+ virtual bool Create( const SalBitmap& rSalBmp,
USHORT nNewBitCount );
- virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
+ virtual bool Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
Size& rSize,
bool bMask = false );
-
- virtual void Destroy();
-
- virtual Size GetSize() const;
- virtual USHORT GetBitCount() const;
-
- virtual BitmapBuffer* AcquireBuffer( bool bReadOnly );
- virtual void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
+
+ virtual void Destroy();
+
+ virtual Size GetSize() const;
+ virtual USHORT GetBitCount() const;
+
+ virtual BitmapBuffer* AcquireBuffer( bool bReadOnly );
+ virtual void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
virtual bool GetSystemData( BitmapSystemData& rData );
};
@@ -135,23 +135,23 @@ class ImplSalDDB
{
private:
- Pixmap maPixmap;
- SalTwoRect maTwoRect;
- long mnDepth;
+ Pixmap maPixmap;
+ SalTwoRect maTwoRect;
+ long mnDepth;
int mnScreen;
ImplSalDDB() {}
- static void ImplDraw( Drawable aSrcDrawable, long nSrcDrawableDepth,
+ static void ImplDraw( Drawable aSrcDrawable, long nSrcDrawableDepth,
Drawable aDstDrawable, long nDstDrawableDepth,
- long nSrcX, long nSrcY,
- long nDestWidth, long nDestHeight,
+ long nSrcX, long nSrcY,
+ long nDestWidth, long nDestHeight,
long nDestX, long nDestY, const GC& rGC );
-
-public:
-
+
+public:
+
ImplSalDDB( XImage* pImage,
- Drawable aDrawable, int nScreen,
+ Drawable aDrawable, int nScreen,
const SalTwoRect& rTwoRect );
ImplSalDDB( Drawable aDrawable,
int nScreen,
@@ -160,18 +160,18 @@ public:
ImplSalDDB( Display* pDisplay,
XLIB_Window hWindow,
int nScreen,
- XImage* pImage);
+ XImage* pImage);
~ImplSalDDB();
-
- Pixmap ImplGetPixmap() const { return maPixmap; }
- long ImplGetWidth() const { return maTwoRect.mnDestWidth; }
- long ImplGetHeight() const { return maTwoRect.mnDestHeight; }
- long ImplGetDepth() const { return mnDepth; }
- ULONG ImplGetMemSize() const { return( ( maTwoRect.mnDestWidth * maTwoRect.mnDestHeight * mnDepth ) >> 3 ); }
+
+ Pixmap ImplGetPixmap() const { return maPixmap; }
+ long ImplGetWidth() const { return maTwoRect.mnDestWidth; }
+ long ImplGetHeight() const { return maTwoRect.mnDestHeight; }
+ long ImplGetDepth() const { return mnDepth; }
+ ULONG ImplGetMemSize() const { return( ( maTwoRect.mnDestWidth * maTwoRect.mnDestHeight * mnDepth ) >> 3 ); }
int ImplGetScreen() const { return mnScreen; }
-
- bool ImplMatches( int nScreen, long nDepth, const SalTwoRect& rTwoRect ) const;
- void ImplDraw( Drawable aDrawable, long nDrawableDepth,
+
+ bool ImplMatches( int nScreen, long nDepth, const SalTwoRect& rTwoRect ) const;
+ void ImplDraw( Drawable aDrawable, long nDrawableDepth,
const SalTwoRect& rTwoRect, const GC& rGC ) const;
};
@@ -183,17 +183,17 @@ class ImplSalBitmapCache
{
private:
- List maBmpList;
- ULONG mnTotalSize;
-
-public:
+ List maBmpList;
+ ULONG mnTotalSize;
+public:
+
ImplSalBitmapCache();
~ImplSalBitmapCache();
- void ImplAdd( X11SalBitmap* pBmp, ULONG nMemSize = 0UL, ULONG nFlags = 0UL );
- void ImplRemove( X11SalBitmap* pBmp );
- void ImplClear();
+ void ImplAdd( X11SalBitmap* pBmp, ULONG nMemSize = 0UL, ULONG nFlags = 0UL );
+ void ImplRemove( X11SalBitmap* pBmp );
+ void ImplClear();
};
#endif // _SV_SALBMP_HXX
diff --git a/vcl/unx/inc/saldata.hxx b/vcl/unx/inc/saldata.hxx
index 4f8406f9a6cd..83a8ce79d7a1 100644
--- a/vcl/unx/inc/saldata.hxx
+++ b/vcl/unx/inc/saldata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,45 +48,45 @@ class SalPrinter;
DECLARE_LIST( SalDisplays, SalDisplay* )
#if defined SCO || defined LINUX || defined NETBSD || defined AIX || \
- defined HPUX || defined FREEBSD || defined OPENBSD
+ defined HPUX || defined FREEBSD || defined OPENBSD
#include <pthread.h>
#else
-typedef unsigned int pthread_t;
+typedef unsigned int pthread_t;
#endif
// -=-= SalData =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
class VCL_DLLPUBLIC X11SalData : public SalData
{
protected:
- BOOL bNoExceptions_;
- SalXLib *pXLib_;
- SalDisplay *m_pSalDisplay;
- pthread_t hMainThread_;
+ BOOL bNoExceptions_;
+ SalXLib *pXLib_;
+ SalDisplay *m_pSalDisplay;
+ pthread_t hMainThread_;
rtl::OUString maLocalHostName;
public:
X11SalData();
virtual ~X11SalData();
-
- virtual void Init();
- virtual void initNWF();
- virtual void deInitNWF();
-
- inline void XError( Display *pDisplay, XErrorEvent *pEvent ) const;
-
- SalDisplay* GetDisplay() const
+
+ virtual void Init();
+ virtual void initNWF();
+ virtual void deInitNWF();
+
+ inline void XError( Display *pDisplay, XErrorEvent *pEvent ) const;
+
+ SalDisplay* GetDisplay() const
{ return m_pSalDisplay; }
- void SetSalDisplay( SalDisplay* pDisplay )
+ void SetSalDisplay( SalDisplay* pDisplay )
{ m_pSalDisplay = pDisplay; }
- void DeleteDisplay(); // for shutdown
-
- inline SalXLib* GetLib() const { return pXLib_; }
- inline pthread_t GetMainThread() const { return hMainThread_; }
+ void DeleteDisplay(); // for shutdown
+
+ inline SalXLib* GetLib() const { return pXLib_; }
+ inline pthread_t GetMainThread() const { return hMainThread_; }
- void StartTimer( ULONG nMS );
- inline void StopTimer();
- void Timeout() const;
+ void StartTimer( ULONG nMS );
+ inline void StopTimer();
+ void Timeout() const;
const rtl::OUString& GetLocalHostName();
@@ -105,13 +105,13 @@ inline X11SalData* GetX11SalData()
#ifdef _SV_SALDISP_HXX
-inline void X11SalData::XError( Display *pDisplay, XErrorEvent *pEvent ) const
+inline void X11SalData::XError( Display *pDisplay, XErrorEvent *pEvent ) const
{ pXLib_->XError( pDisplay, pEvent ); }
#endif
class YieldMutexReleaser
{
- ULONG m_nYieldCount;
+ ULONG m_nYieldCount;
public:
inline YieldMutexReleaser();
inline ~YieldMutexReleaser();
diff --git a/vcl/unx/inc/saldisp.hxx b/vcl/unx/inc/saldisp.hxx
index 1c120491b1d9..0f3d3f3bf55e 100644
--- a/vcl/unx/inc/saldisp.hxx
+++ b/vcl/unx/inc/saldisp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,10 +30,10 @@
#define _SV_SALDISP_HXX
// -=-= exports =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-class SalDisplay;
-class SalColormap;
-class SalVisual;
-class SalXLib;
+class SalDisplay;
+class SalColormap;
+class SalVisual;
+class SalXLib;
// -=-= #includes =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#include <salunx.h>
@@ -49,37 +49,37 @@ class SalXLib;
#include <vcl/dllapi.h>
// -=-= forwards -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-class BitmapPalette;
-class SalFrame;
-class ColorMask;
+class BitmapPalette;
+class SalFrame;
+class ColorMask;
namespace vcl_sal { class WMAdaptor; }
class DtIntegrator;
// -=-= #defines -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#define PROPERTY_SUPPORT_WM_SetPos 0x00000001
-#define PROPERTY_SUPPORT_WM_Screen 0x00000002
-#define PROPERTY_SUPPORT_WM_Parent_Pixmap_None 0x00000004
-#define PROPERTY_SUPPORT_WM_ClientPos 0x00000008
-#define PROPERTY_SUPPORT_XSetClipMask 0x00000010 // for bitmap ops.
-#define PROPERTY_SUPPORT_3ButtonMouse 0x00000020
-
-#define PROPERTY_BUG_XA_FAMILY_NAME_nil 0x00001000
-#define PROPERTY_BUG_XCopyArea_GXxor 0x00002000 // from window
-#define PROPERTY_BUG_Stipple 0x00004000 // 0/1 inverted
+#define PROPERTY_SUPPORT_WM_SetPos 0x00000001
+#define PROPERTY_SUPPORT_WM_Screen 0x00000002
+#define PROPERTY_SUPPORT_WM_Parent_Pixmap_None 0x00000004
+#define PROPERTY_SUPPORT_WM_ClientPos 0x00000008
+#define PROPERTY_SUPPORT_XSetClipMask 0x00000010 // for bitmap ops.
+#define PROPERTY_SUPPORT_3ButtonMouse 0x00000020
+
+#define PROPERTY_BUG_XA_FAMILY_NAME_nil 0x00001000
+#define PROPERTY_BUG_XCopyArea_GXxor 0x00002000 // from window
+#define PROPERTY_BUG_Stipple 0x00004000 // 0/1 inverted
#define PROPERTY_BUG_Tile 0x00008000 // Recreate the
// dither brush each time
#define PROPERTY_BUG_FillPolygon_Tile 0x00010000 // always Toggle Fillstyle
-#define PROPERTY_BUG_DrawLine 0x00020000 // a DrawLine is one point to short
-#define PROPERTY_BUG_CopyPlane_RevertBWPixel 0x00040000 // revert fg and bg for xcopyplane
-#define PROPERTY_BUG_CopyArea_OnlySmallSlices 0x00080000
-#define PROPERTY_BUG_Bitmap_Bit_Order 0x00100000
+#define PROPERTY_BUG_DrawLine 0x00020000 // a DrawLine is one point to short
+#define PROPERTY_BUG_CopyPlane_RevertBWPixel 0x00040000 // revert fg and bg for xcopyplane
+#define PROPERTY_BUG_CopyArea_OnlySmallSlices 0x00080000
+#define PROPERTY_BUG_Bitmap_Bit_Order 0x00100000
-#define PROPERTY_FEATURE_Maximize 0x01000000
+#define PROPERTY_FEATURE_Maximize 0x01000000
#define PROPERTY_FEATURE_SharedMemory 0x02000000
#define PROPERTY_FEATURE_TrustedSolaris 0x04000000
-#define PROPERTY_DEFAULT 0x00000FCB
+#define PROPERTY_DEFAULT 0x00000FCB
// ------------------------------------------------------------------------
// server vendor
@@ -103,16 +103,16 @@ typedef enum {
extern "C" srv_vendor_t sal_GetServerVendor( Display *p_display );
// -=-= SalWM =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-enum SalWM { olwm, // Open Look
- mwm, // Motif
- kwm, // KDE Desktop Environment
- FourDwm, // SGI
- vuewm, // HP
- dtwm, // CDE
- winmgr, // Oracle NC
+enum SalWM { olwm, // Open Look
+ mwm, // Motif
+ kwm, // KDE Desktop Environment
+ FourDwm, // SGI
+ vuewm, // HP
+ dtwm, // CDE
+ winmgr, // Oracle NC
twm,
- fvwm, // ...
- pmwm, // SCO
+ fvwm, // ...
+ pmwm, // SCO
otherwm };
// -=-= SalRGB -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -121,7 +121,7 @@ enum SalWM { olwm, // Open Look
enum SalRGB { RGB, RBG,
GBR, GRB,
BGR, BRG,
- RGBA, RBGA,
+ RGBA, RBGA,
GBRA, GRBA,
BGRA, BRGA,
other };
@@ -129,28 +129,28 @@ enum SalRGB { RGB, RBG,
// -=-= SalVisual =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
class SalVisual : public XVisualInfo
{
- SalRGB eRGBMode_;
- int nRedShift_;
- int nGreenShift_;
- int nBlueShift_;
- int nRedBits_;
- int nGreenBits_;
- int nBlueBits_;
+ SalRGB eRGBMode_;
+ int nRedShift_;
+ int nGreenShift_;
+ int nBlueShift_;
+ int nRedBits_;
+ int nGreenBits_;
+ int nBlueBits_;
public:
SalVisual();
~SalVisual();
SalVisual( const XVisualInfo* pXVI );
- inline VisualID GetVisualId() const { return visualid; }
- inline Visual *GetVisual() const { return visual; }
- inline int GetClass() const { return c_class; }
- inline int GetDepth() const { return depth; }
- inline SalRGB GetMode() const { return eRGBMode_; }
-
- Pixel GetTCPixel( SalColor nColor ) const;
- SalColor GetTCColor( Pixel nPixel ) const;
- BOOL Convert( int &n0, int &n1, int &n2, int &n3 ); // 32bit
- BOOL Convert( int &n0, int &n1, int &n2 ); // 24bit
+ inline VisualID GetVisualId() const { return visualid; }
+ inline Visual *GetVisual() const { return visual; }
+ inline int GetClass() const { return c_class; }
+ inline int GetDepth() const { return depth; }
+ inline SalRGB GetMode() const { return eRGBMode_; }
+
+ Pixel GetTCPixel( SalColor nColor ) const;
+ SalColor GetTCColor( Pixel nPixel ) const;
+ BOOL Convert( int &n0, int &n1, int &n2, int &n3 ); // 32bit
+ BOOL Convert( int &n0, int &n1, int &n2 ); // 24bit
};
// -=-= SalColormap =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -158,16 +158,16 @@ class SalColormap
{
const SalDisplay* m_pDisplay;
Colormap m_hColormap;
- std::vector<SalColor> m_aPalette; // Pseudocolor
+ std::vector<SalColor> m_aPalette; // Pseudocolor
SalVisual m_aVisual;
- std::vector<USHORT> m_aLookupTable; // Pseudocolor: 12bit reduction
+ std::vector<USHORT> m_aLookupTable; // Pseudocolor: 12bit reduction
Pixel m_nWhitePixel;
Pixel m_nBlackPixel;
- Pixel m_nUsed; // Pseudocolor
+ Pixel m_nUsed; // Pseudocolor
int m_nScreen;
- void GetPalette();
- void GetLookupTable();
+ void GetPalette();
+ void GetLookupTable();
public:
SalColormap( const SalDisplay* pSalDisplay,
Colormap hColormap,
@@ -177,28 +177,28 @@ public:
SalColormap();
~SalColormap();
- inline Colormap GetXColormap() const { return m_hColormap; }
- inline const SalDisplay* GetDisplay() const { return m_pDisplay; }
- inline Display* GetXDisplay() const;
- inline const SalVisual& GetVisual() const { return m_aVisual; }
- inline Visual* GetXVisual() const { return m_aVisual.GetVisual(); }
- inline Pixel GetWhitePixel() const { return m_nWhitePixel; }
- inline Pixel GetBlackPixel() const { return m_nBlackPixel; }
- inline Pixel GetUsed() const { return m_nUsed; }
- inline int GetClass() const { return m_aVisual.GetClass(); }
+ inline Colormap GetXColormap() const { return m_hColormap; }
+ inline const SalDisplay* GetDisplay() const { return m_pDisplay; }
+ inline Display* GetXDisplay() const;
+ inline const SalVisual& GetVisual() const { return m_aVisual; }
+ inline Visual* GetXVisual() const { return m_aVisual.GetVisual(); }
+ inline Pixel GetWhitePixel() const { return m_nWhitePixel; }
+ inline Pixel GetBlackPixel() const { return m_nBlackPixel; }
+ inline Pixel GetUsed() const { return m_nUsed; }
+ inline int GetClass() const { return m_aVisual.GetClass(); }
inline int GetScreenNumber() const { return m_nScreen; }
- BOOL GetXPixels( XColor &rColor,
+ BOOL GetXPixels( XColor &rColor,
int r,
int g,
int b ) const;
- inline BOOL GetXPixel( XColor &rColor,
+ inline BOOL GetXPixel( XColor &rColor,
int r,
int g,
int b ) const;
- Pixel GetPixel( SalColor nColor ) const;
- SalColor GetColor( Pixel nPixel ) const;
- void SetPalette( const BitmapPalette &rPalette );
+ Pixel GetPixel( SalColor nColor ) const;
+ SalColor GetColor( Pixel nPixel ) const;
+ void SetPalette( const BitmapPalette &rPalette );
};
// -=-= SalXLib =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -208,18 +208,18 @@ struct YieldEntry;
class VCL_DLLPUBLIC SalXLib
{
protected:
- timeval m_aTimeout;
+ timeval m_aTimeout;
ULONG m_nTimeoutMS;
int m_pTimeoutFDS[2];
- bool m_bHaveSystemChildFrames;
-
- int nFDs_;
- fd_set aReadFDS_;
- fd_set aExceptionFDS_;
- YieldEntry *pYieldEntries_;
+ bool m_bHaveSystemChildFrames;
+ int nFDs_;
+ fd_set aReadFDS_;
+ fd_set aExceptionFDS_;
+ YieldEntry *pYieldEntries_;
+
struct XErrorStackEntry
{
bool m_bIgnore;
@@ -231,32 +231,32 @@ protected:
XIOErrorHandler m_aOrigXIOErrorHandler;
public:
SalXLib();
- virtual ~SalXLib();
- virtual void Init();
+ virtual ~SalXLib();
+ virtual void Init();
- virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
+ virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
virtual void Wakeup();
- virtual void PostUserEvent();
+ virtual void PostUserEvent();
virtual void Insert( int fd, void* data,
- YieldFunc pending,
- YieldFunc queued,
- YieldFunc handle );
+ YieldFunc pending,
+ YieldFunc queued,
+ YieldFunc handle );
virtual void Remove( int fd );
- void XError( Display *pDisp, XErrorEvent *pEvent );
+ void XError( Display *pDisp, XErrorEvent *pEvent );
bool HasXErrorOccured() const { return m_aXErrorHandlerStack.back().m_bWas; }
unsigned int GetLastXErrorRequestCode() const { return m_aXErrorHandlerStack.back().m_nLastErrorRequest; }
void ResetXErrorOccured() { m_aXErrorHandlerStack.back().m_bWas = false; }
void PushXErrorLevel( bool bIgnore );
void PopXErrorLevel();
- virtual void StartTimer( ULONG nMS );
- virtual void StopTimer();
+ virtual void StartTimer( ULONG nMS );
+ virtual void StopTimer();
bool CheckTimeout( bool bExecuteTimers = true );
- void setHaveSystemChildFrame()
+ void setHaveSystemChildFrame()
{ m_bHaveSystemChildFrames = true; }
bool getHaveSystemChildFrame() const
{ return m_bHaveSystemChildFrames; }
@@ -303,13 +303,13 @@ public:
Size m_aSize;
SalVisual m_aVisual;
SalColormap m_aColormap;
- GC m_aMonoGC;
- GC m_aCopyGC;
- GC m_aAndInvertedGC;
- GC m_aAndGC;
- GC m_aOrGC;
- GC m_aStippleGC;
- Pixmap m_hInvert50;
+ GC m_aMonoGC;
+ GC m_aCopyGC;
+ GC m_aAndInvertedGC;
+ GC m_aAndGC;
+ GC m_aOrGC;
+ GC m_aStippleGC;
+ Pixmap m_hInvert50;
mutable RenderEntryMap m_aRenderData;
ScreenData() :
@@ -329,84 +329,84 @@ public:
// -=-= UserEvent =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
struct SalUserEvent
{
- SalFrame* m_pFrame;
- void* m_pData;
- USHORT m_nEvent;
+ SalFrame* m_pFrame;
+ void* m_pData;
+ USHORT m_nEvent;
- SalUserEvent( SalFrame* pFrame, void* pData, USHORT nEvent = SALEVENT_USEREVENT )
+ SalUserEvent( SalFrame* pFrame, void* pData, USHORT nEvent = SALEVENT_USEREVENT )
: m_pFrame( pFrame ),
m_pData( pData ),
m_nEvent( nEvent )
{}
};
-protected:
- SalXLib *pXLib_;
- SalI18N_InputMethod *mpInputMethod;
- SalI18N_KeyboardExtension *mpKbdExtension;
+protected:
+ SalXLib *pXLib_;
+ SalI18N_InputMethod *mpInputMethod;
+ SalI18N_KeyboardExtension *mpKbdExtension;
- AttributeProvider *mpFactory;
- XlfdStorage *mpFontList;
- const ExtendedXlfd *mpFallbackFactory;
+ AttributeProvider *mpFactory;
+ XlfdStorage *mpFontList;
+ const ExtendedXlfd *mpFallbackFactory;
- Display *pDisp_; // X Display
- int m_nDefaultScreen; // XDefaultScreen
+ Display *pDisp_; // X Display
+ int m_nDefaultScreen; // XDefaultScreen
std::vector< ScreenData > m_aScreens;
ScreenData m_aInvalidScreenData;
- Pair aResolution_; // [dpi]
- bool mbExactResolution;
- ULONG nMaxRequestSize_; // [byte]
-
- srv_vendor_t meServerVendor;
- SalWM eWindowManager_;
- ULONG nProperties_; // PROPERTY_SUPPORT, BUG, FEATURE
- BOOL bLocal_; // Server==Client? Init
+ Pair aResolution_; // [dpi]
+ bool mbExactResolution;
+ ULONG nMaxRequestSize_; // [byte]
+
+ srv_vendor_t meServerVendor;
+ SalWM eWindowManager_;
+ ULONG nProperties_; // PROPERTY_SUPPORT, BUG, FEATURE
+ BOOL bLocal_; // Server==Client? Init
// in SalDisplay::IsLocal()
- BOOL mbLocalIsValid; // bLocal_ is valid ?
+ BOOL mbLocalIsValid; // bLocal_ is valid ?
// until x bytes
oslMutex hEventGuard_;
std::list< SalUserEvent > m_aUserEvents;
- XLIB_Cursor aPointerCache_[POINTER_COUNT];
- SalFrame* m_pCapture;
+ XLIB_Cursor aPointerCache_[POINTER_COUNT];
+ SalFrame* m_pCapture;
mutable SalFontCache* m_pFontCache;
// Keyboard
- BOOL bNumLockFromXS_; // Num Lock handled by X Server
- int nNumLockIndex_; // modifier index in modmap
- int nNumLockMask_; // keyevent state mask for
- KeySym nShiftKeySym_; // first shift modifier
- KeySym nCtrlKeySym_; // first control modifier
- KeySym nMod1KeySym_; // first mod1 modifier
- ByteString m_aKeyboardName;
-
- vcl_sal::WMAdaptor* m_pWMAdaptor;
+ BOOL bNumLockFromXS_; // Num Lock handled by X Server
+ int nNumLockIndex_; // modifier index in modmap
+ int nNumLockMask_; // keyevent state mask for
+ KeySym nShiftKeySym_; // first shift modifier
+ KeySym nCtrlKeySym_; // first control modifier
+ KeySym nMod1KeySym_; // first mod1 modifier
+ ByteString m_aKeyboardName;
+
+ vcl_sal::WMAdaptor* m_pWMAdaptor;
DtIntegrator* m_pDtIntegrator;
- bool m_bXinerama;
+ bool m_bXinerama;
std::vector< Rectangle > m_aXineramaScreens;
std::vector< int > m_aXineramaScreenIndexMap;
std::list<SalFrame*> m_aFrames;
std::list<SalObject*> m_aSalObjects;
-
+
bool m_bUseRandRWrapper; // don't use randr on gtk, use gdk signals there
-
+
mutable XLIB_Time m_nLastUserEventTime; // mutable because changed on first access
- void DestroyFontCache();
- virtual long Dispatch( XEvent *pEvent ) = 0;
- void InitXinerama();
+ void DestroyFontCache();
+ virtual long Dispatch( XEvent *pEvent ) = 0;
+ void InitXinerama();
void InitRandR( XLIB_Window aRoot ) const;
void DeInitRandR();
int processRandREvent( XEvent* );
- void doDestruct();
+ void doDestruct();
void addXineramaScreenUnique( int i, long i_nX, long i_nY, long i_nWidth, long i_nHeight );
public:
- static SalDisplay *GetSalDisplay( Display* display );
- static BOOL BestVisual( Display *pDisp,
+ static SalDisplay *GetSalDisplay( Display* display );
+ static BOOL BestVisual( Display *pDisp,
int nScreen,
XVisualInfo &rVI );
@@ -415,52 +415,52 @@ public:
virtual ~SalDisplay();
- virtual void registerFrame( SalFrame* pFrame );
- virtual void deregisterFrame( SalFrame* pFrame );
- void setHaveSystemChildFrame() const
+ virtual void registerFrame( SalFrame* pFrame );
+ virtual void deregisterFrame( SalFrame* pFrame );
+ void setHaveSystemChildFrame() const
{ pXLib_->setHaveSystemChildFrame(); }
bool getHaveSystemChildFrame() const
{ return pXLib_->getHaveSystemChildFrame(); }
- void Init();
+ void Init();
- void SendInternalEvent( SalFrame* pFrame, void* pData, USHORT nEvent = SALEVENT_USEREVENT );
+ void SendInternalEvent( SalFrame* pFrame, void* pData, USHORT nEvent = SALEVENT_USEREVENT );
void CancelInternalEvent( SalFrame* pFrame, void* pData, USHORT nEvent );
- bool DispatchInternalEvent();
- void PrintInfo() const;
+ bool DispatchInternalEvent();
+ void PrintInfo() const;
- void PrintEvent( const ByteString &rComment,
+ void PrintEvent( const ByteString &rComment,
XEvent *pEvent ) const;
- XlfdStorage* GetXlfdList() const;
+ XlfdStorage* GetXlfdList() const;
ExtendedFontStruct*
- GetFont( const ExtendedXlfd *pFont,
+ GetFont( const ExtendedXlfd *pFont,
const Size& rPixelSize, sal_Bool bVertical ) const;
const ExtendedXlfd*
GetFallbackFactory()
{ return mpFallbackFactory; }
- void Beep() const;
+ void Beep() const;
- void ModifierMapping();
+ void ModifierMapping();
void SimulateKeyPress( USHORT nKeyCode );
USHORT GetIndicatorState() const;
- String GetKeyNameFromKeySym( KeySym keysym ) const;
- XubString GetKeyName( USHORT nKeyCode ) const;
- USHORT GetKeyCode( KeySym keysym, char*pcPrintable ) const;
- KeySym GetKeySym( XKeyEvent *pEvent,
+ String GetKeyNameFromKeySym( KeySym keysym ) const;
+ XubString GetKeyName( USHORT nKeyCode ) const;
+ USHORT GetKeyCode( KeySym keysym, char*pcPrintable ) const;
+ KeySym GetKeySym( XKeyEvent *pEvent,
unsigned char *pPrintable,
- int *pLen,
+ int *pLen,
KeySym *pUnmodifiedKeySym,
Status *pStatus,
XIC = NULL ) const;
- XLIB_Cursor GetPointer( int ePointerStyle );
- virtual int CaptureMouse( SalFrame *pCapture );
+ XLIB_Cursor GetPointer( int ePointerStyle );
+ virtual int CaptureMouse( SalFrame *pCapture );
- BOOL IsLocal();
+ BOOL IsLocal();
- void Remove( XEvent *pEvent );
+ void Remove( XEvent *pEvent );
virtual void initScreen( int nScreen ) const;
const ScreenData& getDataForScreen( int nScreen ) const
@@ -472,49 +472,49 @@ public:
return m_aScreens[nScreen];
}
- XLIB_Window GetDrawable( int nScreen ) const { return getDataForScreen( nScreen ).m_aRefWindow; }
- Display *GetDisplay() const { return pDisp_; }
- int GetDefaultScreenNumber() const { return m_nDefaultScreen; }
+ XLIB_Window GetDrawable( int nScreen ) const { return getDataForScreen( nScreen ).m_aRefWindow; }
+ Display *GetDisplay() const { return pDisp_; }
+ int GetDefaultScreenNumber() const { return m_nDefaultScreen; }
virtual int GetDefaultMonitorNumber() const { return 0; }
const Size& GetScreenSize( int nScreen ) const { return getDataForScreen( nScreen ).m_aSize; }
- srv_vendor_t GetServerVendor() const { return meServerVendor; }
- void SetServerVendor() { meServerVendor = sal_GetServerVendor(pDisp_); }
- BOOL IsDisplay() const { return !!pXLib_; }
- GC GetMonoGC( int nScreen ) const { return getDataForScreen(nScreen).m_aMonoGC; }
- GC GetCopyGC( int nScreen ) const { return getDataForScreen(nScreen).m_aCopyGC; }
- GC GetAndInvertedGC( int nScreen ) const { return getDataForScreen(nScreen).m_aAndInvertedGC; }
- GC GetAndGC( int nScreen ) const { return getDataForScreen(nScreen).m_aAndGC; }
- GC GetOrGC( int nScreen ) const { return getDataForScreen(nScreen).m_aOrGC; }
- GC GetStippleGC( int nScreen ) const { return getDataForScreen(nScreen).m_aStippleGC; }
- GC GetGC( USHORT nDepth, int nScreen ) const;
- Pixmap GetInvert50( int nScreen ) const { return getDataForScreen(nScreen).m_hInvert50; }
+ srv_vendor_t GetServerVendor() const { return meServerVendor; }
+ void SetServerVendor() { meServerVendor = sal_GetServerVendor(pDisp_); }
+ BOOL IsDisplay() const { return !!pXLib_; }
+ GC GetMonoGC( int nScreen ) const { return getDataForScreen(nScreen).m_aMonoGC; }
+ GC GetCopyGC( int nScreen ) const { return getDataForScreen(nScreen).m_aCopyGC; }
+ GC GetAndInvertedGC( int nScreen ) const { return getDataForScreen(nScreen).m_aAndInvertedGC; }
+ GC GetAndGC( int nScreen ) const { return getDataForScreen(nScreen).m_aAndGC; }
+ GC GetOrGC( int nScreen ) const { return getDataForScreen(nScreen).m_aOrGC; }
+ GC GetStippleGC( int nScreen ) const { return getDataForScreen(nScreen).m_aStippleGC; }
+ GC GetGC( USHORT nDepth, int nScreen ) const;
+ Pixmap GetInvert50( int nScreen ) const { return getDataForScreen(nScreen).m_hInvert50; }
const SalColormap& GetColormap( int nScreen ) const { return getDataForScreen(nScreen).m_aColormap; }
const SalVisual& GetVisual( int nScreen ) const { return getDataForScreen(nScreen).m_aVisual; }
RenderEntryMap& GetRenderEntries( int nScreen ) const { return getDataForScreen(nScreen).m_aRenderData; }
- const Pair &GetResolution() const { return aResolution_; }
- bool GetExactResolution() const { return mbExactResolution; }
- ULONG GetProperties() const { return nProperties_; }
- ULONG GetMaxRequestSize() const { return nMaxRequestSize_; }
+ const Pair &GetResolution() const { return aResolution_; }
+ bool GetExactResolution() const { return mbExactResolution; }
+ ULONG GetProperties() const { return nProperties_; }
+ ULONG GetMaxRequestSize() const { return nMaxRequestSize_; }
XLIB_Time GetLastUserEventTime( bool bAlwaysReget = false ) const;
-
+
bool XIfEventWithTimeout( XEvent*, XPointer, X_if_predicate, long i_nTimeout = 1000 ) const;
- BOOL MouseCaptured( const SalFrame *pFrameData ) const
+ BOOL MouseCaptured( const SalFrame *pFrameData ) const
{ return m_pCapture == pFrameData; }
- SalFrame* GetCaptureFrame() const
+ SalFrame* GetCaptureFrame() const
{ return m_pCapture; }
SalXLib* GetXLib() const { return pXLib_; }
- SalI18N_InputMethod* GetInputMethod() const { return mpInputMethod; }
- SalI18N_KeyboardExtension* GetKbdExtension() const { return mpKbdExtension; }
- void SetInputMethod( SalI18N_InputMethod *pInputMethod )
+ SalI18N_InputMethod* GetInputMethod() const { return mpInputMethod; }
+ SalI18N_KeyboardExtension* GetKbdExtension() const { return mpKbdExtension; }
+ void SetInputMethod( SalI18N_InputMethod *pInputMethod )
{ mpInputMethod = pInputMethod; }
- void SetKbdExtension(SalI18N_KeyboardExtension *pKbdExtension)
- { mpKbdExtension = pKbdExtension; }
- const char* GetKeyboardName( bool bRefresh = false );
+ void SetKbdExtension(SalI18N_KeyboardExtension *pKbdExtension)
+ { mpKbdExtension = pKbdExtension; }
+ const char* GetKeyboardName( bool bRefresh = false );
::vcl_sal::WMAdaptor* getWMAdaptor() const { return m_pWMAdaptor; }
DtIntegrator* getDtIntegrator() const { return m_pDtIntegrator; }
- bool IsXinerama() const { return m_bXinerama; }
+ bool IsXinerama() const { return m_bXinerama; }
const std::vector< Rectangle >& GetXineramaScreens() const { return m_aXineramaScreens; }
XLIB_Window GetRootWindow( int nScreen ) const
{ return getDataForScreen( nScreen ).m_aRoot; }
@@ -539,7 +539,7 @@ inline GC SalDisplay::GetGC( USHORT nDepth, int nScreen ) const
? GetCopyGC( nScreen )
: None; }
-inline Display *SalColormap::GetXDisplay() const
+inline Display *SalColormap::GetXDisplay() const
{ return m_pDisplay->GetDisplay(); }
class VCL_DLLPUBLIC SalX11Display : public SalDisplay
@@ -548,10 +548,10 @@ public:
SalX11Display( Display* pDisp );
virtual ~SalX11Display();
- virtual long Dispatch( XEvent *pEvent );
- virtual void Yield();
+ virtual long Dispatch( XEvent *pEvent );
+ virtual void Yield();
- BOOL IsEvent();
+ BOOL IsEvent();
};
/*----------------------------------------------------------
diff --git a/vcl/unx/inc/salfont.h b/vcl/unx/inc/salfont.h
index 95be76686cee..f5d7a937d43c 100644
--- a/vcl/unx/inc/salfont.h
+++ b/vcl/unx/inc/salfont.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -30,13 +30,13 @@
#define _SV_SALFONT_H
// -=-= exports =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-class SalFontCache;
-struct SalFontDimension;
-class SalFontFamily;
-class SalFontFamilyList;
-class SalFontStruct;
-class SalFontStructList;
-class SalFonts;
+class SalFontCache;
+struct SalFontDimension;
+class SalFontFamily;
+class SalFontFamilyList;
+class SalFontStruct;
+class SalFontStructList;
+class SalFonts;
// -=-= includes -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#include <salstd.hxx>
@@ -45,8 +45,8 @@ class SalFonts;
// -=-= forwards =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
typedef ULONG XFP_FLAGS;
-class SalDisplay;
-class SalFontCacheItem;
+class SalDisplay;
+class SalFontCacheItem;
// -=-= SalFontCache -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
DECLARE_LIST( SalFontCache, SalFontCacheItem* )
@@ -54,49 +54,49 @@ DECLARE_LIST( SalFontCache, SalFontCacheItem* )
// -=-= SalFontDimension -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
struct SalFontDimension
{
- USHORT nHeight_; // [pixel]
- USHORT nPtHeight_; // [point/10]
- USHORT nAverage_; // [pixel/10]
- USHORT nXRes_; // [dpi]
- USHORT nYRes_; // [dpi]
- USHORT nSlant_; // [pixel]
-// size_t nUnderlineThickness_; // [pixel]
-// size_t nUnderlinePosition_; // [pixel]
-// size_t nStrikeoutAscent_; // [pixel]
-// size_t nStrikeoutDescent_; // [pixel]
-// Subscript, Superscript, Capital, Space ...
-
- inline SalFontDimension( USHORT nA = 0, USHORT nH = 0 );
-
- inline BOOL IsScalable() const;
- inline USHORT GetWidth() const { return (nAverage_ + 5) / 10; }
- inline Size GetSize() const;
- inline void SetSize( const Size & rSize );
- inline BOOL operator == ( const SalFontDimension &r ) const;
- inline BOOL operator != ( const SalFontDimension &r ) const;
- inline BOOL operator >= ( const SalFontDimension &r ) const;
+ USHORT nHeight_; // [pixel]
+ USHORT nPtHeight_; // [point/10]
+ USHORT nAverage_; // [pixel/10]
+ USHORT nXRes_; // [dpi]
+ USHORT nYRes_; // [dpi]
+ USHORT nSlant_; // [pixel]
+// size_t nUnderlineThickness_; // [pixel]
+// size_t nUnderlinePosition_; // [pixel]
+// size_t nStrikeoutAscent_; // [pixel]
+// size_t nStrikeoutDescent_; // [pixel]
+// Subscript, Superscript, Capital, Space ...
+
+ inline SalFontDimension( USHORT nA = 0, USHORT nH = 0 );
+
+ inline BOOL IsScalable() const;
+ inline USHORT GetWidth() const { return (nAverage_ + 5) / 10; }
+ inline Size GetSize() const;
+ inline void SetSize( const Size & rSize );
+ inline BOOL operator == ( const SalFontDimension &r ) const;
+ inline BOOL operator != ( const SalFontDimension &r ) const;
+ inline BOOL operator >= ( const SalFontDimension &r ) const;
};
inline SalFontDimension::SalFontDimension( USHORT nA, USHORT nH )
: nHeight_( nH ), nAverage_( nA )
{ nPtHeight_ = nXRes_ = nYRes_ = nSlant_ = 0; }
-inline BOOL SalFontDimension::IsScalable() const
+inline BOOL SalFontDimension::IsScalable() const
{ return !nHeight_ && !nPtHeight_ && !nAverage_; }
-inline Size SalFontDimension::GetSize() const
+inline Size SalFontDimension::GetSize() const
{ return Size( (nAverage_ + 5) / 10, nHeight_ ); }
-inline void SalFontDimension::SetSize( const Size & rSize )
+inline void SalFontDimension::SetSize( const Size & rSize )
{ nAverage_ = (USHORT)rSize.Width() * 10; nHeight_ = (USHORT)rSize.Height(); }
-inline BOOL SalFontDimension::operator == ( const SalFontDimension &r ) const
+inline BOOL SalFontDimension::operator == ( const SalFontDimension &r ) const
{ return nHeight_ == r.nHeight_ && (!r.nAverage_ || nAverage_ == r.nAverage_); }
-inline BOOL SalFontDimension::operator != ( const SalFontDimension &r ) const
+inline BOOL SalFontDimension::operator != ( const SalFontDimension &r ) const
{ return !(*this == r); }
-inline BOOL SalFontDimension::operator >= ( const SalFontDimension &r ) const
+inline BOOL SalFontDimension::operator >= ( const SalFontDimension &r ) const
{ return nHeight_ > r.nHeight_
|| (nHeight_ == r.nHeight_ && nAverage_ >= r.nAverage_); }
@@ -109,63 +109,63 @@ class SalFontStruct : public ImplFontMetricData
SalFontCacheItem*pCache_;
#if (OSL_DEBUG_LEVEL > 1) || defined DBG_UTIL
- ByteString aFontName_;
+ ByteString aFontName_;
#endif
- USHORT nHeightCount_; // Anzahl der Hoehen-Eintraege
- SalFontDimension*pDimensions_; // Hoehen-Array
- USHORT nWeight_;
-
- USHORT nFoundry_; // properties indexies
- USHORT nFamily_;
- USHORT nWeightName_;
- USHORT nSlant_;
- USHORT nSetWidthName_;
- ByteString aAddStyleName_;
- USHORT nSpacing_;
- USHORT nCharSet_;
- USHORT nFaceName_;
- BOOL mbValidFontDescription; // valid xlfd entries
-
- void Init();
- BOOL Init( SalDisplay* pDisp,
- const char* pFontName,
- SalFontDimension& rDim );
-
- ByteString GetXFontName( const SalFontDimension& );
-
- inline void SetFoundry( USHORT n )
+ USHORT nHeightCount_; // Anzahl der Hoehen-Eintraege
+ SalFontDimension*pDimensions_; // Hoehen-Array
+ USHORT nWeight_;
+
+ USHORT nFoundry_; // properties indexies
+ USHORT nFamily_;
+ USHORT nWeightName_;
+ USHORT nSlant_;
+ USHORT nSetWidthName_;
+ ByteString aAddStyleName_;
+ USHORT nSpacing_;
+ USHORT nCharSet_;
+ USHORT nFaceName_;
+ BOOL mbValidFontDescription; // valid xlfd entries
+
+ void Init();
+ BOOL Init( SalDisplay* pDisp,
+ const char* pFontName,
+ SalFontDimension& rDim );
+
+ ByteString GetXFontName( const SalFontDimension& );
+
+ inline void SetFoundry( USHORT n )
{ nFoundry_ = n; }
- inline void SetFamily( USHORT n )
+ inline void SetFamily( USHORT n )
{ meFamily = sal_FamilyToSal( nFamily_ = n ); }
- inline void SetWeightName( USHORT n )
+ inline void SetWeightName( USHORT n )
{ meWeight = sal_WeightToSal( nWeightName_ = n ); }
- inline void SetSlant( USHORT n )
+ inline void SetSlant( USHORT n )
{ meItalic = sal_ItalicToSal( nSlant_ = n ); }
- inline void SetSetWidthName( USHORT n )
+ inline void SetSetWidthName( USHORT n )
{ nSetWidthName_ = n; }
- inline void SetAddStyleName( const ByteString& rAddStyle )
+ inline void SetAddStyleName( const ByteString& rAddStyle )
{ aAddStyleName_ = rAddStyle; aAddStyleName_.ToLowerAscii(); }
- inline void SetSpacing( USHORT n )
+ inline void SetSpacing( USHORT n )
{ mePitch = sal_PitchToSal( nSpacing_ = n ); }
- inline void SetAverage( long n )
+ inline void SetAverage( long n )
{ mnWidth = (n + 5) / 10; }
- void SetCharSet( USHORT n );
+ void SetCharSet( USHORT n );
SalFontStruct( const SalFontStruct& rFont );
public:
- SalFontStruct( SalDisplay* pDisp,
- const char* pFontName,
- SalFontDimension& rDim );
+ SalFontStruct( SalDisplay* pDisp,
+ const char* pFontName,
+ SalFontDimension& rDim );
~SalFontStruct();
- inline void Cache( SalFontCacheItem *p ) { pCache_ = p; }
- inline SalFontCacheItem*IsCache() const { return pCache_; }
- inline BOOL IsScalable() const { return TYPE_SCALABLE==meType; }
- inline SalFontDimension*GetDim() const { return pDimensions_; }
- inline BOOL IsValid() const { return mbValidFontDescription; }
+ inline void Cache( SalFontCacheItem *p ) { pCache_ = p; }
+ inline SalFontCacheItem*IsCache() const { return pCache_; }
+ inline BOOL IsScalable() const { return TYPE_SCALABLE==meType; }
+ inline SalFontDimension*GetDim() const { return pDimensions_; }
+ inline BOOL IsValid() const { return mbValidFontDescription; }
#ifdef DBG_UTIL
- const ByteString& GetName() const { return aFontName_; }
+ const ByteString& GetName() const { return aFontName_; }
#endif
ImplFontData *GetDevFontData();
diff --git a/vcl/unx/inc/salframe.h b/vcl/unx/inc/salframe.h
index 7b82f86f53cc..7986ee1ddc6a 100644
--- a/vcl/unx/inc/salframe.h
+++ b/vcl/unx/inc/salframe.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,134 +44,134 @@
#include <list>
// -=-= forwards -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-class SalDisplay;
-class X11SalGraphics;
+class SalDisplay;
+class X11SalGraphics;
class SalGraphicsLayout;
class SalI18N_InputContext;
namespace vcl_sal { class WMAdaptor; class NetWMAdaptor; class GnomeWMAdaptor; }
// -=-= X11SalFrame =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-#define SHOWSTATE_UNKNOWN -1
-#define SHOWSTATE_MINIMIZED 0
-#define SHOWSTATE_NORMAL 1
-#define SHOWSTATE_HIDDEN 2
+#define SHOWSTATE_UNKNOWN -1
+#define SHOWSTATE_MINIMIZED 0
+#define SHOWSTATE_NORMAL 1
+#define SHOWSTATE_HIDDEN 2
class VCL_DLLPUBLIC X11SalFrame : public SalFrame
{
friend class vcl_sal::WMAdaptor;
friend class vcl_sal::NetWMAdaptor;
friend class vcl_sal::GnomeWMAdaptor;
-
+
static X11SalFrame* s_pSaveYourselfFrame;
-
- X11SalFrame* mpParent; // pointer to parent frame
+
+ X11SalFrame* mpParent; // pointer to parent frame
// which should never obscur this frame
- bool mbTransientForRoot;
+ bool mbTransientForRoot;
std::list< X11SalFrame* > maChildren; // List of child frames
-
- SalDisplay *pDisplay_;
+
+ SalDisplay *pDisplay_;
int m_nScreen;
- XLIB_Window mhWindow;
- XLIB_Window mhShellWindow;
- XLIB_Window mhForeignParent;
+ XLIB_Window mhWindow;
+ XLIB_Window mhShellWindow;
+ XLIB_Window mhForeignParent;
// window to fall back to when no longer in fullscreen mode
- XLIB_Window mhStackingWindow;
+ XLIB_Window mhStackingWindow;
// window to listen for CirculateNotify events
-
+
Pixmap mhBackgroundPixmap;
-
- XLIB_Cursor hCursor_;
- int nCaptured_; // is captured
-
- X11SalGraphics *pGraphics_; // current frame graphics
- X11SalGraphics *pFreeGraphics_; // first free frame graphics
-
- XLIB_Time nReleaseTime_; // timestamp of last key release
- USHORT nKeyCode_; // last key code
- USHORT nKeyState_; // last key state
- int nCompose_; // compose state
- bool mbKeyMenu;
- bool mbSendExtKeyModChange;
- USHORT mnExtKeyMod;
-
- int nShowState_; // show state
- int nWidth_; // client width
- int nHeight_; // client height
- Rectangle maRestorePosSize;
- ULONG nStyle_;
+
+ XLIB_Cursor hCursor_;
+ int nCaptured_; // is captured
+
+ X11SalGraphics *pGraphics_; // current frame graphics
+ X11SalGraphics *pFreeGraphics_; // first free frame graphics
+
+ XLIB_Time nReleaseTime_; // timestamp of last key release
+ USHORT nKeyCode_; // last key code
+ USHORT nKeyState_; // last key state
+ int nCompose_; // compose state
+ bool mbKeyMenu;
+ bool mbSendExtKeyModChange;
+ USHORT mnExtKeyMod;
+
+ int nShowState_; // show state
+ int nWidth_; // client width
+ int nHeight_; // client height
+ Rectangle maRestorePosSize;
+ ULONG nStyle_;
SalExtStyle mnExtStyle;
- BOOL bAlwaysOnTop_;
- BOOL bViewable_;
- BOOL bMapped_;
- BOOL mbInShow;
- BOOL bDefaultPosition_; // client is centered initially
+ BOOL bAlwaysOnTop_;
+ BOOL bViewable_;
+ BOOL bMapped_;
+ BOOL mbInShow;
+ BOOL bDefaultPosition_; // client is centered initially
bool m_bXEmbed;
- int nVisibility_;
+ int nVisibility_;
int m_nWorkArea;
bool m_bSetFocusOnMap;
+
+ int nScreenSaversTimeout_;
+ Rectangle maPaintRegion;
- int nScreenSaversTimeout_;
- Rectangle maPaintRegion;
-
- Timer maAlwaysOnTopRaiseTimer;
-
+ Timer maAlwaysOnTopRaiseTimer;
+
// data for WMAdaptor
- int meWindowType;
- int mnDecorationFlags;
- bool mbMaximizedVert;
- bool mbMaximizedHorz;
- bool mbShaded;
- bool mbFullScreen;
-
+ int meWindowType;
+ int mnDecorationFlags;
+ bool mbMaximizedVert;
+ bool mbMaximizedHorz;
+ bool mbShaded;
+ bool mbFullScreen;
+
// icon id
- int mnIconID;
-
+ int mnIconID;
+
String m_aTitle;
rtl::OUString m_sWMClass;
-
+
SystemChildData maSystemChildData;
-
+
SalI18N_InputContext *mpInputContext;
- Bool mbInputFocus;
-
+ Bool mbInputFocus;
+
XRectangle* m_pClipRectangles;
int m_nCurClipRect;
int m_nMaxClipRect;
-
-
- void GetPosSize( Rectangle &rPosSize );
- void SetSize ( const Size &rSize );
+
+
+ void GetPosSize( Rectangle &rPosSize );
+ void SetSize ( const Size &rSize );
void Center();
- void SetPosSize( const Rectangle &rPosSize );
- void Minimize();
- void Maximize();
- void Restore();
+ void SetPosSize( const Rectangle &rPosSize );
+ void Minimize();
+ void Maximize();
+ void Restore();
void SetWindowGravity (int nGravity ) const;
-
- void RestackChildren( XLIB_Window* pTopLevelWindows, int nTopLevelWindows );
- void RestackChildren();
-
- long HandleKeyEvent ( XKeyEvent *pEvent );
- long HandleMouseEvent ( XEvent *pEvent );
- long HandleFocusEvent ( XFocusChangeEvent *pEvent );
- long HandleExposeEvent ( XEvent *pEvent );
- long HandleSizeEvent ( XConfigureEvent *pEvent );
- long HandleColormapEvent ( XColormapEvent *pEvent );
- long HandleMapUnmapEvent ( XEvent *pEvent );
- long HandleStateEvent ( XPropertyEvent *pEvent );
- long HandleReparentEvent ( XReparentEvent *pEvent );
- long HandleClientMessage ( XClientMessageEvent*pEvent );
-
+
+ void RestackChildren( XLIB_Window* pTopLevelWindows, int nTopLevelWindows );
+ void RestackChildren();
+
+ long HandleKeyEvent ( XKeyEvent *pEvent );
+ long HandleMouseEvent ( XEvent *pEvent );
+ long HandleFocusEvent ( XFocusChangeEvent *pEvent );
+ long HandleExposeEvent ( XEvent *pEvent );
+ long HandleSizeEvent ( XConfigureEvent *pEvent );
+ long HandleColormapEvent ( XColormapEvent *pEvent );
+ long HandleMapUnmapEvent ( XEvent *pEvent );
+ long HandleStateEvent ( XPropertyEvent *pEvent );
+ long HandleReparentEvent ( XReparentEvent *pEvent );
+ long HandleClientMessage ( XClientMessageEvent*pEvent );
+
DECL_LINK( HandleAlwaysOnTopRaise, void* );
- void passOnSaveYourSelf();
-
+ void passOnSaveYourSelf();
+
void createNewWindow( XLIB_Window aParent, int nScreen = -1 );
void updateScreenNumber();
-
+
void setXEmbedInfo();
void askForXEmbedFocus( sal_Int32 i_nTimeCode );
@@ -180,103 +180,103 @@ public:
X11SalFrame( SalFrame* pParent, ULONG nSalFrameStyle, SystemParentData* pSystemParent = NULL );
virtual ~X11SalFrame();
- long Dispatch( XEvent *pEvent );
- void Init( ULONG nSalFrameStyle, int nScreen = -1,
+ long Dispatch( XEvent *pEvent );
+ void Init( ULONG nSalFrameStyle, int nScreen = -1,
SystemParentData* pParentData = NULL, bool bUseGeometry = false );
- SalDisplay* GetDisplay() const { return pDisplay_; }
- Display* GetXDisplay() const;
- XLIB_Window GetDrawable() const;
+ SalDisplay* GetDisplay() const { return pDisplay_; }
+ Display* GetXDisplay() const;
+ XLIB_Window GetDrawable() const;
int GetScreenNumber() const { return m_nScreen; }
- XLIB_Window GetWindow() const { return mhWindow; }
- XLIB_Window GetShellWindow() const { return mhShellWindow; }
- XLIB_Window GetForeignParent() const { return mhForeignParent; }
- XLIB_Window GetStackingWindow() const { return mhStackingWindow; }
- long ShutDown() const { return CallCallback( SALEVENT_SHUTDOWN, 0 ); }
- long Close() const { return CallCallback( SALEVENT_CLOSE, 0 ); }
+ XLIB_Window GetWindow() const { return mhWindow; }
+ XLIB_Window GetShellWindow() const { return mhShellWindow; }
+ XLIB_Window GetForeignParent() const { return mhForeignParent; }
+ XLIB_Window GetStackingWindow() const { return mhStackingWindow; }
+ long ShutDown() const { return CallCallback( SALEVENT_SHUTDOWN, 0 ); }
+ long Close() const { return CallCallback( SALEVENT_CLOSE, 0 ); }
ULONG GetStyle() const { return nStyle_; }
-
- inline XLIB_Cursor GetCursor() const { return hCursor_; }
- inline BOOL IsCaptured() const { return nCaptured_ == 1; }
+
+ inline XLIB_Cursor GetCursor() const { return hCursor_; }
+ inline BOOL IsCaptured() const { return nCaptured_ == 1; }
#if !defined(__synchronous_extinput__)
- void HandleExtTextEvent (XClientMessageEvent *pEvent);
- void PostExtTextEvent (sal_uInt16 nExtTextEventType,
+ void HandleExtTextEvent (XClientMessageEvent *pEvent);
+ void PostExtTextEvent (sal_uInt16 nExtTextEventType,
void *pExtTextEvent);
#endif
- bool IsOverrideRedirect() const;
+ bool IsOverrideRedirect() const;
bool IsChildWindow() const { return (nStyle_ & (SAL_FRAME_STYLE_PLUG|SAL_FRAME_STYLE_SYSTEMCHILD)) != 0; }
bool IsSysChildWindow() const { return (nStyle_ & (SAL_FRAME_STYLE_SYSTEMCHILD)) != 0; }
- bool IsFloatGrabWindow() const;
+ bool IsFloatGrabWindow() const;
SalI18N_InputContext* getInputContext() const { return mpInputContext; }
- void getPosSize( Rectangle& rRect ) { GetPosSize( rRect ); }
- void setPosSize( const Rectangle& rRect ) { SetPosSize( rRect ); }
- bool isMapped() const { return bMapped_; }
+ void getPosSize( Rectangle& rRect ) { GetPosSize( rRect ); }
+ void setPosSize( const Rectangle& rRect ) { SetPosSize( rRect ); }
+ bool isMapped() const { return bMapped_; }
bool hasFocus() const { return mbInputFocus; }
-
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
-
+
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
+
// call with true to clear graphics (setting None as drawable)
// call with false to setup graphics with window (GetWindow())
virtual void updateGraphics( bool bClear );
- virtual BOOL PostEvent( void* pData );
+ virtual BOOL PostEvent( void* pData );
- virtual void SetTitle( const XubString& rTitle );
- virtual void SetIcon( USHORT nIcon );
- virtual void SetMenu( SalMenu* pMenu );
+ virtual void SetTitle( const XubString& rTitle );
+ virtual void SetIcon( USHORT nIcon );
+ virtual void SetMenu( SalMenu* pMenu );
virtual void DrawMenuBar();
virtual void SetExtendedFrameStyle( SalExtStyle nExtStyle );
- virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
- virtual void Enable( BOOL bEnable );
+ virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
+ virtual void Enable( BOOL bEnable );
virtual void SetMinClientSize( long nWidth, long nHeight );
virtual void SetMaxClientSize( long nWidth, long nHeight );
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
- virtual void GetClientSize( long& rWidth, long& rHeight );
- virtual void GetWorkArea( Rectangle& rRect );
- virtual SalFrame* GetParent() const;
- virtual void SetWindowState( const SalFrameState* pState );
- virtual BOOL GetWindowState( SalFrameState* pState );
- virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nMonitor );
- virtual void StartPresentation( BOOL bStart );
- virtual void SetAlwaysOnTop( BOOL bOnTop );
- virtual void ToTop( USHORT nFlags );
- virtual void SetPointer( PointerStyle ePointerStyle );
- virtual void CaptureMouse( BOOL bMouse );
- virtual void SetPointerPos( long nX, long nY );
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
+ virtual void GetClientSize( long& rWidth, long& rHeight );
+ virtual void GetWorkArea( Rectangle& rRect );
+ virtual SalFrame* GetParent() const;
+ virtual void SetWindowState( const SalFrameState* pState );
+ virtual BOOL GetWindowState( SalFrameState* pState );
+ virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nMonitor );
+ virtual void StartPresentation( BOOL bStart );
+ virtual void SetAlwaysOnTop( BOOL bOnTop );
+ virtual void ToTop( USHORT nFlags );
+ virtual void SetPointer( PointerStyle ePointerStyle );
+ virtual void CaptureMouse( BOOL bMouse );
+ virtual void SetPointerPos( long nX, long nY );
using SalFrame::Flush;
- virtual void Flush();
- virtual void Sync();
- virtual void SetInputContext( SalInputContext* pContext );
- virtual void EndExtTextInput( USHORT nFlags );
- virtual String GetKeyName( USHORT nKeyCode );
- virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
+ virtual void Flush();
+ virtual void Sync();
+ virtual void SetInputContext( SalInputContext* pContext );
+ virtual void EndExtTextInput( USHORT nFlags );
+ virtual String GetKeyName( USHORT nKeyCode );
+ virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
virtual BOOL MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
- virtual LanguageType GetInputLanguage();
- virtual SalBitmap* SnapShot();
- virtual void UpdateSettings( AllSettings& rSettings );
- virtual void Beep( SoundType eSoundType );
- virtual const SystemEnvData* GetSystemData() const;
+ virtual LanguageType GetInputLanguage();
+ virtual SalBitmap* SnapShot();
+ virtual void UpdateSettings( AllSettings& rSettings );
+ virtual void Beep( SoundType eSoundType );
+ virtual const SystemEnvData* GetSystemData() const;
virtual SalPointerState GetPointerState();
virtual SalIndicatorState GetIndicatorState();
virtual void SimulateKeyPress( USHORT nKeyCode );
- virtual void SetParent( SalFrame* pNewParent );
- virtual bool SetPluginParent( SystemParentData* pNewParent );
+ virtual void SetParent( SalFrame* pNewParent );
+ virtual bool SetPluginParent( SystemParentData* pNewParent );
virtual void SetBackgroundBitmap( SalBitmap* pBitmap );
virtual void SetScreenNumber( unsigned int );
virtual void SetApplicationID( const rtl::OUString &rWMClass );
-
+
// shaped system windows
// set clip region to none (-> rectangular windows, normal state)
- virtual void ResetClipRegion();
+ virtual void ResetClipRegion();
// start setting the clipregion consisting of nRects rectangles
- virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void BeginSetClipRegion( ULONG nRects );
// add a rectangle to the clip region
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
// done setting up the clipregion
- virtual void EndSetClipRegion();
+ virtual void EndSetClipRegion();
static void SaveYourselfDone( SalFrame* );
static Bool checkKeyReleaseForRepeat( Display*, XEvent*, XPointer pX11SalFrame );
diff --git a/vcl/unx/inc/salgdi.h b/vcl/unx/inc/salgdi.h
index efe201aa9d66..038e12911a9b 100644
--- a/vcl/unx/inc/salgdi.h
+++ b/vcl/unx/inc/salgdi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,8 +82,8 @@ class VCL_DLLPUBLIC X11SalGraphics : public SalGraphics
friend class X11FontLayout;
friend class ServerFontLayout;
protected:
- SalFrame* m_pFrame; // the SalFrame which created this Graphics or NULL
- X11SalVirtualDevice* m_pVDev; // the SalVirtualDevice which created this Graphics or NULL
+ SalFrame* m_pFrame; // the SalFrame which created this Graphics or NULL
+ X11SalVirtualDevice* m_pVDev; // the SalVirtualDevice which created this Graphics or NULL
const SalColormap* m_pColormap;
SalColormap *m_pDeleteColormap;
@@ -115,64 +115,64 @@ protected:
Pixel nBrushPixel_;
Pixmap hBrush_; // Dither
- GC pMonoGC_;
- GC pCopyGC_;
- GC pMaskGC_;
- GC pInvertGC_;
- GC pInvert50GC_;
- GC pStippleGC_;
- GC pTrackingGC_;
-
- BOOL bWindow_ : 1; // is Window
- BOOL bPrinter_ : 1; // is Printer
- BOOL bVirDev_ : 1; // is VirDev
- BOOL bPenGC_ : 1; // is Pen GC valid
- BOOL bFontGC_ : 1; // is Font GC valid
- BOOL bBrushGC_ : 1; // is Brush GC valid
- BOOL bMonoGC_ : 1; // is Mono GC valid
- BOOL bCopyGC_ : 1; // is Copy GC valid
- BOOL bInvertGC_ : 1; // is Invert GC valid
- BOOL bInvert50GC_ : 1; // is Invert50 GC valid
- BOOL bStippleGC_ : 1; // is Stipple GC valid
+ GC pMonoGC_;
+ GC pCopyGC_;
+ GC pMaskGC_;
+ GC pInvertGC_;
+ GC pInvert50GC_;
+ GC pStippleGC_;
+ GC pTrackingGC_;
+
+ BOOL bWindow_ : 1; // is Window
+ BOOL bPrinter_ : 1; // is Printer
+ BOOL bVirDev_ : 1; // is VirDev
+ BOOL bPenGC_ : 1; // is Pen GC valid
+ BOOL bFontGC_ : 1; // is Font GC valid
+ BOOL bBrushGC_ : 1; // is Brush GC valid
+ BOOL bMonoGC_ : 1; // is Mono GC valid
+ BOOL bCopyGC_ : 1; // is Copy GC valid
+ BOOL bInvertGC_ : 1; // is Invert GC valid
+ BOOL bInvert50GC_ : 1; // is Invert50 GC valid
+ BOOL bStippleGC_ : 1; // is Stipple GC valid
BOOL bTrackingGC_ : 1; // is Tracking GC valid
- bool bXORMode_ : 1; // is ROP XOR Mode set
- BOOL bDitherBrush_ : 1; // is solid or tile
+ bool bXORMode_ : 1; // is ROP XOR Mode set
+ BOOL bDitherBrush_ : 1; // is solid or tile
- void SetClipRegion( GC pGC,
+ void SetClipRegion( GC pGC,
XLIB_Region pXReg = NULL ) const;
- GC GetTrackingGC();
- GC GetInvertGC();
- GC GetInvert50GC();
- GC CreateGC( Drawable hDrawable,
+ GC GetTrackingGC();
+ GC GetInvertGC();
+ GC GetInvert50GC();
+ GC CreateGC( Drawable hDrawable,
unsigned long nMask = GCGraphicsExposures );
- GC SelectPen();
- GC SelectBrush();
- void DrawLines( ULONG nPoints,
+ GC SelectPen();
+ GC SelectBrush();
+ void DrawLines( ULONG nPoints,
const SalPolyLine &rPoints,
- GC pGC,
+ GC pGC,
bool bClose
);
- BOOL GetDitherPixmap ( SalColor nSalColor );
+ BOOL GetDitherPixmap ( SalColor nSalColor );
- inline GC GetMonoGC( Pixmap hPixmap );
- inline GC GetCopyGC();
- inline GC GetStippleGC();
+ inline GC GetMonoGC( Pixmap hPixmap );
+ inline GC GetCopyGC();
+ inline GC GetStippleGC();
- int Clip ( XLIB_Region pRegion,
+ int Clip ( XLIB_Region pRegion,
int &nX,
int &nY,
unsigned int &nDX,
unsigned int &nDY,
int &nSrcX,
int &nSrcY ) const;
- int Clip ( int &nX,
+ int Clip ( int &nX,
int &nY,
unsigned int &nDX,
unsigned int &nDY,
int &nSrcX,
int &nSrcY ) const;
- GC SetMask ( int &nX,
+ GC SetMask ( int &nX,
int &nY,
unsigned int &nDX,
unsigned int &nDY,
@@ -204,11 +204,11 @@ protected:
void DrawServerAAFontString( const ServerFontLayout& );
bool DrawServerAAForcedString( const ServerFontLayout& );
void DrawCairoAAFontString( const ServerFontLayout& );
-
+
void freeResources();
public:
X11SalGraphics();
- virtual ~X11SalGraphics();
+ virtual ~X11SalGraphics();
void Init( SalFrame *pFrame, Drawable aDrawable, int nScreen );
void Init( X11SalVirtualDevice *pVirtualDevice, SalColormap* pColormap = NULL, bool bDeleteColormap = false );
@@ -230,37 +230,37 @@ public:
int GetScreenNumber() const { return m_nScreen; }
// overload all pure virtual methods
- virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
- virtual USHORT GetBitCount();
- virtual long GetGraphicsWidth() const;
- virtual long GetGraphicsHeight() const;
+ virtual void GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY );
+ virtual USHORT GetBitCount();
+ virtual long GetGraphicsWidth() const;
+ virtual long GetGraphicsHeight() const;
- virtual void ResetClipRegion();
- virtual void BeginSetClipRegion( ULONG nCount );
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
- virtual void EndSetClipRegion();
+ virtual void ResetClipRegion();
+ virtual void BeginSetClipRegion( ULONG nCount );
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
+ virtual void EndSetClipRegion();
- virtual void SetLineColor();
- virtual void SetLineColor( SalColor nSalColor );
- virtual void SetFillColor();
+ virtual void SetLineColor();
+ virtual void SetLineColor( SalColor nSalColor );
+ virtual void SetFillColor();
- virtual void SetFillColor( SalColor nSalColor );
+ virtual void SetFillColor( SalColor nSalColor );
- virtual void SetXORMode( bool bSet, bool );
+ virtual void SetXORMode( bool bSet, bool );
- virtual void SetROPLineColor( SalROPColor nROPColor );
- virtual void SetROPFillColor( SalROPColor nROPColor );
+ virtual void SetROPLineColor( SalROPColor nROPColor );
+ virtual void SetROPFillColor( SalROPColor nROPColor );
- virtual void SetTextColor( SalColor nSalColor );
- virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel );
- virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
- virtual ULONG GetKernPairs( ULONG nMaxPairs, ImplKernPairData* );
+ virtual void SetTextColor( SalColor nSalColor );
+ virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel );
+ virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
+ virtual ULONG GetKernPairs( ULONG nMaxPairs, ImplKernPairData* );
virtual ImplFontCharMap* GetImplFontCharMap() const;
- virtual void GetDevFontList( ImplDevFontList* );
- virtual void GetDevFontSubstList( OutputDevice* );
- virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
- virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
+ virtual void GetDevFontList( ImplDevFontList* );
+ virtual void GetDevFontSubstList( OutputDevice* );
+ virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
+ virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
const ImplFontData*,
sal_Int32* pGlyphIDs,
sal_uInt8* pEncoding,
@@ -269,80 +269,80 @@ public:
FontSubsetInfo& rInfo
);
virtual const Ucs2SIntMap* GetFontEncodingVector( const ImplFontData*, const Ucs2OStrMap** ppNonEncoded );
- virtual const void* GetEmbedFontData( const ImplFontData*,
+ virtual const void* GetEmbedFontData( const ImplFontData*,
const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
long* pDataLen );
- virtual void FreeEmbedFontData( const void* pData, long nDataLen );
+ virtual void FreeEmbedFontData( const void* pData, long nDataLen );
virtual void GetGlyphWidths( const ImplFontData*,
bool bVertical,
Int32Vector& rWidths,
Ucs2UIntMap& rUnicodeEnc );
- virtual BOOL GetGlyphBoundRect( long nIndex, Rectangle& );
- virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
- virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
- virtual void DrawServerFontLayout( const ServerFontLayout& );
+ virtual BOOL GetGlyphBoundRect( long nIndex, Rectangle& );
+ virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
+ virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
+ virtual void DrawServerFontLayout( const ServerFontLayout& );
virtual bool supportsOperation( OutDevSupportType ) const;
- virtual void drawPixel( long nX, long nY );
- virtual void drawPixel( long nX, long nY, SalColor nSalColor );
- virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
- virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
+ virtual void drawPixel( long nX, long nY );
+ virtual void drawPixel( long nX, long nY, SalColor nSalColor );
+ virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
+ virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry, bool bClose );
- virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolyPolygon( sal_uInt32 nPoly,
+ virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolyPolygon( sal_uInt32 nPoly,
const sal_uInt32* pPoints,
PCONSTSALPOINT* pPtAry );
- virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
- virtual bool drawPolyLine( const ::basegfx::B2DPolygon&, double fTransparency, const ::basegfx::B2DVector& rLineWidth, basegfx::B2DLineJoin );
- virtual bool drawFilledTrapezoids( const ::basegfx::B2DTrapezoid*, int nTrapCount, double fTransparency );
+ virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
+ virtual bool drawPolyLine( const ::basegfx::B2DPolygon&, double fTransparency, const ::basegfx::B2DVector& rLineWidth, basegfx::B2DLineJoin );
+ virtual bool drawFilledTrapezoids( const ::basegfx::B2DTrapezoid*, int nTrapCount, double fTransparency );
#if 1 // TODO: remove these obselete methods
- virtual sal_Bool drawPolyLineBezier( ULONG nPoints,
+ virtual sal_Bool drawPolyLineBezier( ULONG nPoints,
const SalPoint* pPtAry,
const BYTE* pFlgAry );
- virtual sal_Bool drawPolygonBezier( ULONG nPoints,
+ virtual sal_Bool drawPolygonBezier( ULONG nPoints,
const SalPoint* pPtAry,
const BYTE* pFlgAry );
- virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly,
+ virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly,
const sal_uInt32* pPoints,
const SalPoint* const* pPtAry,
const BYTE* const* pFlgAry );
#endif
- virtual void copyArea( long nDestX,
+ virtual void copyArea( long nDestX,
long nDestY,
long nSrcX,
long nSrcY,
long nSrcWidth,
long nSrcHeight,
USHORT nFlags );
- virtual void copyBits( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry,
SalGraphics* pSrcGraphics );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rMaskBitmap );
- virtual void drawMask( const SalTwoRect* pPosAry,
+ virtual void drawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor );
- virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
- virtual SalColor getPixel( long nX, long nY );
- virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
- virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
+ virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
+ virtual SalColor getPixel( long nX, long nY );
+ virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags );
+ virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
- virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
+ virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
- virtual bool drawAlphaBitmap( const SalTwoRect&,
+ virtual bool drawAlphaBitmap( const SalTwoRect&,
const SalBitmap& rSourceBitmap,
const SalBitmap& rAlphaBitmap );
- virtual bool drawAlphaRect( long nX, long nY, long nWidth,
+ virtual bool drawAlphaRect( long nX, long nY, long nWidth,
long nHeight, sal_uInt8 nTransparency );
virtual SystemGraphicsData GetGraphicsData() const;
@@ -386,20 +386,20 @@ inline Pixel X11SalGraphics::GetPixel( SalColor nSalColor ) const
// -=-= Shortcuts =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#ifdef DBG_UTIL
-#define stderr0( s ) fprintf( stderr, s )
-#define stderr1( s, a ) fprintf( stderr, s, a )
-#define stderr2( s, a, b ) fprintf( stderr, s, a, b )
-#define stderr3( s, a, b, c ) fprintf( stderr, s, a, b, c )
-#define stdass0( b ) (void)( !(b) \
+#define stderr0( s ) fprintf( stderr, s )
+#define stderr1( s, a ) fprintf( stderr, s, a )
+#define stderr2( s, a, b ) fprintf( stderr, s, a, b )
+#define stderr3( s, a, b, c ) fprintf( stderr, s, a, b, c )
+#define stdass0( b ) (void)( !(b) \
? fprintf( stderr, "\"%s\" (%s line %d)\n", \
#b, __FILE__, __LINE__ ) \
: 0 )
#else
-#define stderr0( s ) ;
-#define stderr1( s, a ) ;
-#define stderr2( s, a, b ) ;
-#define stderr3( s, a, b, c ) ;
-#define stdass0( b ) ;
+#define stderr0( s ) ;
+#define stderr1( s, a ) ;
+#define stderr2( s, a, b ) ;
+#define stderr3( s, a, b, c ) ;
+#define stdass0( b ) ;
#endif
#endif // _SV_SALGDI_H
diff --git a/vcl/unx/inc/salinst.h b/vcl/unx/inc/salinst.h
index fad9e0e289c5..1d7419993a25 100644
--- a/vcl/unx/inc/salinst.h
+++ b/vcl/unx/inc/salinst.h
@@ -39,26 +39,26 @@
class VCL_DLLPUBLIC SalYieldMutex : public vcl::SolarMutexObject
{
protected:
- ULONG mnCount;
- oslThreadIdentifier mnThreadId;
+ ULONG mnCount;
+ oslThreadIdentifier mnThreadId;
public:
SalYieldMutex();
- virtual void acquire();
- virtual void release();
- virtual sal_Bool tryToAcquire();
+ virtual void acquire();
+ virtual void release();
+ virtual sal_Bool tryToAcquire();
- ULONG GetAcquireCount() const { return mnCount; }
- oslThreadIdentifier GetThreadId() const { return mnThreadId; }
+ ULONG GetAcquireCount() const { return mnCount; }
+ oslThreadIdentifier GetThreadId() const { return mnThreadId; }
};
// -=-= SalInstanceData =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
class VCL_DLLPUBLIC X11SalInstance : public SalInstance
{
protected:
- SalYieldMutex* mpSalYieldMutex;
- bool mbPrinterInit;
+ SalYieldMutex* mpSalYieldMutex;
+ bool mbPrinterInit;
public:
X11SalInstance( SalYieldMutex* pMutex )
@@ -67,47 +67,47 @@ public:
{}
virtual ~X11SalInstance();
- virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
- virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
- virtual void DestroyFrame( SalFrame* pFrame );
+ virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
+ virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
+ virtual void DestroyFrame( SalFrame* pFrame );
- virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
- virtual void DestroyObject( SalObject* pObject );
+ virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
+ virtual void DestroyObject( SalObject* pObject );
- virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
+ virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
long nDX, long nDY,
USHORT nBitCount, const SystemGraphicsData *pData = NULL );
- virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
+ virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
- virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
+ virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData );
- virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
- virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
- virtual void DestroyPrinter( SalPrinter* pPrinter );
+ virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
+ virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
+ virtual void DestroyPrinter( SalPrinter* pPrinter );
- virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
- virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
- virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
+ virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
+ virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
+ virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
virtual String GetDefaultPrinter();
- virtual SalTimer* CreateSalTimer();
- virtual SalI18NImeStatus* CreateI18NImeStatus();
- virtual SalSystem* CreateSalSystem();
- virtual SalBitmap* CreateSalBitmap();
- virtual SalSession* CreateSalSession();
+ virtual SalTimer* CreateSalTimer();
+ virtual SalI18NImeStatus* CreateI18NImeStatus();
+ virtual SalSystem* CreateSalSystem();
+ virtual SalBitmap* CreateSalBitmap();
+ virtual SalSession* CreateSalSession();
virtual osl::SolarMutex* GetYieldMutex();
- virtual ULONG ReleaseYieldMutex();
- virtual void AcquireYieldMutex( ULONG nCount );
+ virtual ULONG ReleaseYieldMutex();
+ virtual void AcquireYieldMutex( ULONG nCount );
- virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
- virtual bool AnyInput( USHORT nType );
+ virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
+ virtual bool AnyInput( USHORT nType );
virtual SalMenu* CreateMenu( BOOL bMenuBar );
virtual void DestroyMenu( SalMenu* pMenu);
virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
virtual void DestroyMenuItem( SalMenuItem* pItem );
- virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+ virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
void FillFontPathList( std::list< rtl::OString >& o_rFontPaths );
// dtrans implementation
diff --git a/vcl/unx/inc/salmenu.h b/vcl/unx/inc/salmenu.h
index e7b5effed653..d761cc1cb929 100644
--- a/vcl/unx/inc/salmenu.h
+++ b/vcl/unx/inc/salmenu.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/inc/salobj.h b/vcl/unx/inc/salobj.h
index 2a09222c365c..ecfea5eee3d1 100644
--- a/vcl/unx/inc/salobj.h
+++ b/vcl/unx/inc/salobj.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,26 +42,26 @@ public:
SalClipRegion();
~SalClipRegion();
- void BeginSetClipRegion( ULONG nRects );
- void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ void BeginSetClipRegion( ULONG nRects );
+ void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- XRectangle *EndSetClipRegion() {
- return ClipRectangleList; }
- void ResetClipRegion() {
- numClipRectangles = 0; }
- USHORT GetClipRegionType() {
- return nClipRegionType; }
- void SetClipRegionType( USHORT nType ) {
- nClipRegionType = nType; }
- int GetRectangleCount() {
- return numClipRectangles; }
+ XRectangle *EndSetClipRegion() {
+ return ClipRectangleList; }
+ void ResetClipRegion() {
+ numClipRectangles = 0; }
+ USHORT GetClipRegionType() {
+ return nClipRegionType; }
+ void SetClipRegionType( USHORT nType ) {
+ nClipRegionType = nType; }
+ int GetRectangleCount() {
+ return numClipRectangles; }
private:
XRectangle* ClipRectangleList;
int numClipRectangles;
int maxClipRectangles;
- USHORT nClipRegionType;
+ USHORT nClipRegionType;
};
@@ -70,11 +70,11 @@ class X11SalObject : public SalObject
public:
SystemChildData maSystemChildData;
SalFrame* mpParent;
- XLIB_Window maPrimary;
- XLIB_Window maSecondary;
+ XLIB_Window maPrimary;
+ XLIB_Window maSecondary;
Colormap maColormap;
- SalClipRegion maClipRegion;
- BOOL mbVisible;
+ SalClipRegion maClipRegion;
+ BOOL mbVisible;
static VCL_DLLPUBLIC long Dispatch( XEvent* pEvent );
static VCL_DLLPUBLIC X11SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
@@ -83,22 +83,22 @@ public:
virtual ~X11SalObject();
// overload all pure virtual methods
- virtual void ResetClipRegion();
- virtual USHORT GetClipRegionType();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
-
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
- virtual void Show( BOOL bVisible );
- virtual void Enable( BOOL nEnable );
- virtual void GrabFocus();
-
- virtual void SetBackground();
- virtual void SetBackground( SalColor nSalColor );
-
- virtual const SystemEnvData* GetSystemData() const;
-
+ virtual void ResetClipRegion();
+ virtual USHORT GetClipRegionType();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
+
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
+ virtual void Show( BOOL bVisible );
+ virtual void Enable( BOOL nEnable );
+ virtual void GrabFocus();
+
+ virtual void SetBackground();
+ virtual void SetBackground( SalColor nSalColor );
+
+ virtual const SystemEnvData* GetSystemData() const;
+
};
#endif // _SV_SALOBJ_H
diff --git a/vcl/unx/inc/salprn.h b/vcl/unx/inc/salprn.h
index e91a67f30360..674053477ee2 100644
--- a/vcl/unx/inc/salprn.h
+++ b/vcl/unx/inc/salprn.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,44 +39,44 @@ class PspGraphics;
class PspSalInfoPrinter : public SalInfoPrinter
{
public:
- PspGraphics* m_pGraphics;
- psp::JobData m_aJobData;
- psp::PrinterGfx m_aPrinterGfx;
+ PspGraphics* m_pGraphics;
+ psp::JobData m_aJobData;
+ psp::PrinterGfx m_aPrinterGfx;
PspSalInfoPrinter();
virtual ~PspSalInfoPrinter();
// overload all pure virtual methods
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
- virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
- virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData );
- virtual void GetPageInfo( const ImplJobSetup* pSetupData,
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
+ virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
+ virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData );
+ virtual void GetPageInfo( const ImplJobSetup* pSetupData,
long& rOutWidth, long& rOutHeight,
long& rPageOffX, long& rPageOffY,
long& rPageWidth, long& rPageHeight );
- virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
- virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData );
- virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
- virtual void InitPaperFormats( const ImplJobSetup* pSetupData );
- virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData );
+ virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
+ virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData );
+ virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
+ virtual void InitPaperFormats( const ImplJobSetup* pSetupData );
+ virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData );
};
class PspSalPrinter : public SalPrinter
{
public:
- String m_aFileName;
- String m_aTmpFile;
- String m_aFaxNr;
- bool m_bFax:1;
- bool m_bPdf:1;
- bool m_bSwallowFaxNo:1;
- PspGraphics* m_pGraphics;
- psp::PrinterJob m_aPrintJob;
- psp::JobData m_aJobData;
- psp::PrinterGfx m_aPrinterGfx;
- ULONG m_nCopies;
+ String m_aFileName;
+ String m_aTmpFile;
+ String m_aFaxNr;
+ bool m_bFax:1;
+ bool m_bPdf:1;
+ bool m_bSwallowFaxNo:1;
+ PspGraphics* m_pGraphics;
+ psp::PrinterJob m_aPrintJob;
+ psp::JobData m_aJobData;
+ psp::PrinterGfx m_aPrinterGfx;
+ ULONG m_nCopies;
bool m_bCollate;
SalInfoPrinter* m_pInfoPrinter;
@@ -85,18 +85,18 @@ public:
// overload all pure virtual methods
using SalPrinter::StartJob;
- virtual BOOL StartJob( const XubString* pFileName,
+ virtual BOOL StartJob( const XubString* pFileName,
const XubString& rJobName,
const XubString& rAppName,
ULONG nCopies,
bool bCollate,
bool bDirect,
ImplJobSetup* pSetupData );
- virtual BOOL EndJob();
- virtual BOOL AbortJob();
- virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData );
- virtual BOOL EndPage();
- virtual ULONG GetErrorCode();
+ virtual BOOL EndJob();
+ virtual BOOL AbortJob();
+ virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData );
+ virtual BOOL EndPage();
+ virtual ULONG GetErrorCode();
};
class Timer;
@@ -104,8 +104,8 @@ class Timer;
namespace vcl_sal {
class VCL_DLLPUBLIC PrinterUpdate
{
- static Timer* pPrinterUpdateTimer;
- static int nActiveJobs;
+ static Timer* pPrinterUpdateTimer;
+ static int nActiveJobs;
static void doUpdate();
DECL_STATIC_LINK( PrinterUpdate, UpdateTimerHdl, void* );
diff --git a/vcl/unx/inc/salstd.hxx b/vcl/unx/inc/salstd.hxx
index 07056a91bdec..afe2b875036a 100644
--- a/vcl/unx/inc/salstd.hxx
+++ b/vcl/unx/inc/salstd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,41 +37,41 @@
// -=-= X-Lib forwards -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#ifndef _SVUNX_H
-typedef unsigned long Pixel;
-typedef unsigned long XID;
-typedef unsigned long XLIB_Time;
-typedef unsigned long XtIntervalId;
+typedef unsigned long Pixel;
+typedef unsigned long XID;
+typedef unsigned long XLIB_Time;
+typedef unsigned long XtIntervalId;
-typedef XID Colormap;
-typedef XID Drawable;
-typedef XID Pixmap;
-typedef XID XLIB_Cursor;
-typedef XID XLIB_Font;
-typedef XID XLIB_Window;
+typedef XID Colormap;
+typedef XID Drawable;
+typedef XID Pixmap;
+typedef XID XLIB_Cursor;
+typedef XID XLIB_Font;
+typedef XID XLIB_Window;
-typedef struct _XDisplay Display;
-typedef struct _XGC *GC;
-typedef struct _XImage XImage;
-typedef struct _XRegion *XLIB_Region;
+typedef struct _XDisplay Display;
+typedef struct _XGC *GC;
+typedef struct _XImage XImage;
+typedef struct _XRegion *XLIB_Region;
-typedef union _XEvent XEvent;
+typedef union _XEvent XEvent;
-typedef struct _XConfigureEvent XConfigureEvent;
-typedef struct _XReparentEvent XReparentEvent;
-typedef struct _XClientMessageEvent XClientMessageEvent;
-typedef struct _XErrorEvent XErrorEvent;
+typedef struct _XConfigureEvent XConfigureEvent;
+typedef struct _XReparentEvent XReparentEvent;
+typedef struct _XClientMessageEvent XClientMessageEvent;
+typedef struct _XErrorEvent XErrorEvent;
-struct Screen;
-struct Visual;
-struct XColormapEvent;
-struct XFocusChangeEvent;
-struct XFontStruct;
-struct XKeyEvent;
-struct XPropertyEvent;
-struct XTextItem;
-struct XWindowChanges;
+struct Screen;
+struct Visual;
+struct XColormapEvent;
+struct XFocusChangeEvent;
+struct XFontStruct;
+struct XKeyEvent;
+struct XPropertyEvent;
+struct XTextItem;
+struct XWindowChanges;
-#define None 0L
+#define None 0L
#endif
#endif
diff --git a/vcl/unx/inc/saltimer.h b/vcl/unx/inc/saltimer.h
index 7442f307c2c7..e60ffb3a1353 100644
--- a/vcl/unx/inc/saltimer.h
+++ b/vcl/unx/inc/saltimer.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,8 +38,8 @@ public:
virtual ~X11SalTimer();
// overload all pure virtual methods
- void Start( ULONG nMS );
- void Stop();
+ void Start( ULONG nMS );
+ void Stop();
};
#endif
diff --git a/vcl/unx/inc/salunx.h b/vcl/unx/inc/salunx.h
index 9956537a8b80..5946492d6cc6 100644
--- a/vcl/unx/inc/salunx.h
+++ b/vcl/unx/inc/salunx.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -31,7 +31,7 @@
// -=-= #includes =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#if defined SCO || defined LINUX || defined HPUX || defined FREEBSD || \
- defined NETBSD || defined OPENBSD
+ defined NETBSD || defined OPENBSD
#include <sys/time.h>
#elif defined AIX
#include <time.h>
@@ -42,7 +42,7 @@
#include <salstd.hxx>
// -=-= #defines -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#define capacityof(a) (sizeof(a)/sizeof(*a))
+#define capacityof(a) (sizeof(a)/sizeof(*a))
// -=-= inlines =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
inline long Divide( long nDividend, long nDivisor )
diff --git a/vcl/unx/inc/salvd.h b/vcl/unx/inc/salvd.h
index e1c2b91d1627..81f1e8035b1b 100644
--- a/vcl/unx/inc/salvd.h
+++ b/vcl/unx/inc/salvd.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,46 +40,46 @@ class X11SalGraphics;
// -=-= SalVirDevData -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
class X11SalVirtualDevice : public SalVirtualDevice
{
- SalDisplay *pDisplay_;
- X11SalGraphics *pGraphics_;
-
-
- Pixmap hDrawable_;
+ SalDisplay *pDisplay_;
+ X11SalGraphics *pGraphics_;
+
+
+ Pixmap hDrawable_;
int m_nScreen;
-
- int nDX_;
- int nDY_;
- USHORT nDepth_;
- BOOL bGraphics_; // is Graphics used
+
+ int nDX_;
+ int nDY_;
+ USHORT nDepth_;
+ BOOL bGraphics_; // is Graphics used
BOOL bExternPixmap_;
-
+
public:
X11SalVirtualDevice();
virtual ~X11SalVirtualDevice();
- BOOL Init( SalDisplay *pDisplay,
+ BOOL Init( SalDisplay *pDisplay,
long nDX, long nDY,
USHORT nBitCount,
int nScreen,
Pixmap hDrawable = None,
XRenderPictFormat* pXRenderFormat = NULL );
- inline void InitGraphics( X11SalVirtualDevice *pVD );
-
- inline Display *GetXDisplay() const;
- inline SalDisplay *GetDisplay() const;
- inline BOOL IsDisplay() const;
- inline Pixmap GetDrawable() const { return hDrawable_; }
- inline USHORT GetDepth() const { return nDepth_; }
- int GetWidth() const { return nDX_; }
- int GetHeight() const { return nDY_; }
+ inline void InitGraphics( X11SalVirtualDevice *pVD );
+
+ inline Display *GetXDisplay() const;
+ inline SalDisplay *GetDisplay() const;
+ inline BOOL IsDisplay() const;
+ inline Pixmap GetDrawable() const { return hDrawable_; }
+ inline USHORT GetDepth() const { return nDepth_; }
+ int GetWidth() const { return nDX_; }
+ int GetHeight() const { return nDY_; }
int GetScreenNumber() const { return m_nScreen; }
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
// Set new size, without saving the old contents
- virtual BOOL SetSize( long nNewDX, long nNewDY );
- virtual void GetSize( long& rWidth, long& rHeight );
+ virtual BOOL SetSize( long nNewDX, long nNewDY );
+ virtual void GetSize( long& rWidth, long& rHeight );
};
#ifdef _SV_SALDISP_HXX
diff --git a/vcl/unx/inc/sm.hxx b/vcl/unx/inc/sm.hxx
index 158c320948bc..31852d7a8923 100644
--- a/vcl/unx/inc/sm.hxx
+++ b/vcl/unx/inc/sm.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,23 +35,23 @@
class SessionManagerClient
{
- static SmcConn aSmcConnection;
- static ByteString aClientID;
- static bool bDocSaveDone;
+ static SmcConn aSmcConnection;
+ static ByteString aClientID;
+ static bool bDocSaveDone;
- static void SaveYourselfProc( SmcConn connection,
+ static void SaveYourselfProc( SmcConn connection,
SmPointer client_data,
int save_type,
Bool shutdown,
int interact_style,
Bool fast );
- static void DieProc( SmcConn connection,
+ static void DieProc( SmcConn connection,
SmPointer client_data );
- static void SaveCompleteProc( SmcConn connection,
+ static void SaveCompleteProc( SmcConn connection,
SmPointer client_data );
- static void ShutdownCanceledProc( SmcConn connection,
+ static void ShutdownCanceledProc( SmcConn connection,
SmPointer client_data );
- static void InteractProc( SmcConn connection,
+ static void InteractProc( SmcConn connection,
SmPointer clientData );
static const ByteString& getPreviousSessionID();
@@ -80,7 +80,7 @@ class IceSalSession : public SalSession
public:
IceSalSession();
virtual ~IceSalSession();
-
+
virtual void queryInteraction();
virtual void interactionDone();
virtual void saveDone();
diff --git a/vcl/unx/inc/soicon.hxx b/vcl/unx/inc/soicon.hxx
index bf1810640b54..9d08053d48d8 100644
--- a/vcl/unx/inc/soicon.hxx
+++ b/vcl/unx/inc/soicon.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,7 +33,7 @@ class SalBitmap;
class Bitmap;
BOOL SelectAppIconPixmap( SalDisplay *pDisplay, int nScreen,
- USHORT nIcon, USHORT iconSize,
+ USHORT nIcon, USHORT iconSize,
Pixmap& icon_pixmap, Pixmap& icon_mask );
#endif
diff --git a/vcl/unx/inc/strhelper.hxx b/vcl/unx/inc/strhelper.hxx
index 78db60567133..aeb5828a5cf6 100644
--- a/vcl/unx/inc/strhelper.hxx
+++ b/vcl/unx/inc/strhelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/inc/svsys.h b/vcl/unx/inc/svsys.h
index 149acc4cc644..5a3dd7013b21 100644
--- a/vcl/unx/inc/svsys.h
+++ b/vcl/unx/inc/svsys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/inc/svunx.h b/vcl/unx/inc/svunx.h
index e3ea4cc3e790..1a3ae2bc4b0c 100644
--- a/vcl/unx/inc/svunx.h
+++ b/vcl/unx/inc/svunx.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/inc/wmadaptor.hxx b/vcl/unx/inc/wmadaptor.hxx
index 23235e479e75..997023c1e468 100644
--- a/vcl/unx/inc/wmadaptor.hxx
+++ b/vcl/unx/inc/wmadaptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -99,7 +99,7 @@ public:
WIN_ICONS,
WIN_WORKSPACE_NAMES,
WIN_CLIENT_LIST,
-
+
// atoms for general WM hints
WM_STATE,
MOTIF_WM_HINTS,
@@ -128,13 +128,13 @@ public:
/*
* flags for frame decoration
*/
- static const int decoration_Title = 0x00000001;
- static const int decoration_Border = 0x00000002;
- static const int decoration_Resize = 0x00000004;
- static const int decoration_MinimizeBtn = 0x00000008;
- static const int decoration_MaximizeBtn = 0x00000010;
- static const int decoration_CloseBtn = 0x00000020;
- static const int decoration_All = 0x10000000;
+ static const int decoration_Title = 0x00000001;
+ static const int decoration_Border = 0x00000002;
+ static const int decoration_Resize = 0x00000004;
+ static const int decoration_MinimizeBtn = 0x00000008;
+ static const int decoration_MaximizeBtn = 0x00000010;
+ static const int decoration_CloseBtn = 0x00000020;
+ static const int decoration_All = 0x10000000;
/*
* window type
@@ -151,19 +151,19 @@ public:
};
protected:
- SalDisplay* m_pSalDisplay; // Display to use
- Display* m_pDisplay; // X Display of SalDisplay
- String m_aWMName;
- Atom m_aWMAtoms[ NetAtomMax];
- int m_nDesktops;
- bool m_bEqualWorkAreas;
+ SalDisplay* m_pSalDisplay; // Display to use
+ Display* m_pDisplay; // X Display of SalDisplay
+ String m_aWMName;
+ Atom m_aWMAtoms[ NetAtomMax];
+ int m_nDesktops;
+ bool m_bEqualWorkAreas;
::std::vector< Rectangle >
m_aWMWorkAreas;
- bool m_bTransientBehaviour;
- bool m_bEnableAlwaysOnTopWorks;
+ bool m_bTransientBehaviour;
+ bool m_bEnableAlwaysOnTopWorks;
bool m_bLegacyPartialFullscreen;
- int m_nWinGravity;
- int m_nInitWinGravity;
+ int m_nWinGravity;
+ int m_nInitWinGravity;
WMAdaptor( SalDisplay * )
;
@@ -210,17 +210,17 @@ public:
*/
const Rectangle& getWorkArea( int n ) const
{ return m_aWMWorkAreas[n]; }
-
+
/*
* attemp to switch the desktop to a certain workarea
*/
void switchToWorkArea( int nWorkArea ) const;
-
+
/*
* sets window title
*/
virtual void setWMName( X11SalFrame* pFrame, const String& rWMName ) const;
-
+
/*
* set NET_WM_PID
*/
@@ -230,7 +230,7 @@ public:
* set WM_CLIENT_MACHINE
*/
virtual void setClientMachine( X11SalFrame* pFrame ) const;
-
+
virtual void answerPing( X11SalFrame*, XClientMessageEvent* ) const;
/*
@@ -266,7 +266,7 @@ public:
* set _NET_WM_USER_TIME property, if NetWM
*/
virtual void setUserTime( X11SalFrame* i_pFrame, long i_nUserTime ) const;
-
+
/*
* tells whether fullscreen mode is supported by WM
*/
@@ -302,12 +302,12 @@ public:
* tells whether enableAlwaysOnTop actually works with this WM
*/
bool isAlwaysOnTopOK() const { return m_bEnableAlwaysOnTopWorks; }
-
+
/*
* handle WM messages (especially WM state changes)
*/
virtual int handlePropertyNotify( X11SalFrame* pFrame, XPropertyEvent* pEvent ) const;
-
+
/*
* called by SalFrame::Show: time to update state properties
*/
@@ -341,7 +341,7 @@ public:
* changes the transient hint of a window to reference frame
* if reference frame is NULL the root window is used instead
*/
- void changeReferenceFrame( X11SalFrame* pFrame, X11SalFrame* pReferenceFrame ) const;
+ void changeReferenceFrame( X11SalFrame* pFrame, X11SalFrame* pReferenceFrame ) const;
};
} // namespace
diff --git a/vcl/unx/inc/xfont.hxx b/vcl/unx/inc/xfont.hxx
index 8fc118808ae3..9edf50ef3f8b 100644
--- a/vcl/unx/inc/xfont.hxx
+++ b/vcl/unx/inc/xfont.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,14 +45,14 @@ class ExtendedXlfd;
struct VerticalTextItem
{
- BOOL mbFixed;
- XFontStruct* mpXFontStruct;
- const sal_Unicode* mpString;
- int mnLength;
- int mnTransX;
- int mnTransY;
- int mnFixedAdvance;
- int* mpAdvanceAry;
+ BOOL mbFixed;
+ XFontStruct* mpXFontStruct;
+ const sal_Unicode* mpString;
+ int mnLength;
+ int mnTransX;
+ int mnTransY;
+ int mnFixedAdvance;
+ int* mpAdvanceAry;
VerticalTextItem( XFontStruct* pXFontStruct,
const sal_Unicode* pString,
@@ -112,38 +112,38 @@ class ExtendedFontStruct : public SvRefBase
mutable sal_uInt32* mpRangeCodes;
mutable int mnRangeCount;
- int LoadEncoding( rtl_TextEncoding nEncoding );
- FontPitch GetSpacing( rtl_TextEncoding nEncoding );
- bool GetFontBoundingBox( XCharStruct *pCharStruct,
+ int LoadEncoding( rtl_TextEncoding nEncoding );
+ FontPitch GetSpacing( rtl_TextEncoding nEncoding );
+ bool GetFontBoundingBox( XCharStruct *pCharStruct,
int *pAscent, int *pDescent ) ;
- sal_Size GetDefaultWidth();
- sal_Size GetCharWidth8( sal_Unicode nFrom, sal_Unicode nTo,
- sal_Int32 *pWidthArray,
+ sal_Size GetDefaultWidth();
+ sal_Size GetCharWidth8( sal_Unicode nFrom, sal_Unicode nTo,
+ sal_Int32 *pWidthArray,
rtl_TextEncoding nEncoding );
- sal_Size GetCharWidthUTF16( sal_Unicode nFrom, sal_Unicode nTo,
+ sal_Size GetCharWidthUTF16( sal_Unicode nFrom, sal_Unicode nTo,
sal_Int32 *pWidthArray );
- sal_Size GetCharWidth16( sal_Unicode nFrom, sal_Unicode nTo,
+ sal_Size GetCharWidth16( sal_Unicode nFrom, sal_Unicode nTo,
sal_Int32 *pWidthArray, ExtendedFontStruct *pFallback );
public:
- ExtendedFontStruct( Display* pDisplay,
+ ExtendedFontStruct( Display* pDisplay,
const Size& rPixelSize, sal_Bool bVertical,
ExtendedXlfd* pXlfd );
~ExtendedFontStruct();
- bool Match( const ExtendedXlfd *pXlfd,
+ bool Match( const ExtendedXlfd *pXlfd,
const Size& rPixelSize, sal_Bool bVertical ) const;
- XFontStruct* GetFontStruct( rtl_TextEncoding nEncoding );
- XFontStruct* GetFontStruct( sal_Unicode nChar,
+ XFontStruct* GetFontStruct( rtl_TextEncoding nEncoding );
+ XFontStruct* GetFontStruct( sal_Unicode nChar,
rtl_TextEncoding *pEncoding );
- bool ToImplFontMetricData( ImplFontMetricData *pMetric );
- rtl_TextEncoding GetAsciiEncoding( int *pAsciiRange = NULL ) const;
- sal_Size GetCharWidth( sal_Unicode,
+ bool ToImplFontMetricData( ImplFontMetricData *pMetric );
+ rtl_TextEncoding GetAsciiEncoding( int *pAsciiRange = NULL ) const;
+ sal_Size GetCharWidth( sal_Unicode,
sal_Int32* pPhysWidth, sal_Int32* pLogWidth );
int GetFontCodeRanges( sal_uInt32* pCodePairs ) const;
bool HasUnicodeChar( sal_Unicode ) const;
};
-// Declaration and Implementation for ExtendedFontStructRef: Add RefCounting
+// Declaration and Implementation for ExtendedFontStructRef: Add RefCounting
// to ExtendedFontStruct (it's not possible to separate decl and impl into
// a separate source file: all ref member functions are inline
SV_DECL_IMPL_REF( ExtendedFontStruct );
diff --git a/vcl/unx/kde/kdedata.cxx b/vcl/unx/kde/kdedata.cxx
index a9be7668e6b9..363036520e19 100644
--- a/vcl/unx/kde/kdedata.cxx
+++ b/vcl/unx/kde/kdedata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ class VCLKDEApplication : public KApplication
{
public:
VCLKDEApplication() : KApplication() {}
-
+
virtual void commitData(QSessionManager &sm);
};
@@ -253,7 +253,7 @@ extern "C" {
#endif
return NULL;
}
-
+
KDESalInstance* pInstance = new KDESalInstance( new SalYieldMutex() );
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "created KDESalInstance 0x%p\n", pInstance );
diff --git a/vcl/unx/kde/salnativewidgets-kde.cxx b/vcl/unx/kde/salnativewidgets-kde.cxx
index 099833a18976..c15e61780922 100644
--- a/vcl/unx/kde/salnativewidgets-kde.cxx
+++ b/vcl/unx/kde/salnativewidgets-kde.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,7 +49,7 @@
using namespace ::rtl;
/** Cached native widgets.
-
+
A class which caches and paints the native widgets.
*/
class WidgetPainter
@@ -191,7 +191,7 @@ class WidgetPainter
/** Identifiers of popup menu items.
*/
int m_nPopupMenuEnabledItem, m_nPopupMenuDisabledItem;
-
+
/** cached progress bar
*/
QProgressBar *m_pProgressBar;
@@ -335,9 +335,9 @@ class WidgetPainter
@see pushButton()
*/
QPopupMenu *popupMenu( const Rectangle& rControlRegion );
-
+
/** 'Get' method for progress bar
-
+
@see pushButton()
*/
QProgressBar *progressBar( const Rectangle& rControlRegion );
@@ -449,13 +449,13 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
// Use the background of the widget
qPixmap.fill( pWidget, QPoint(0, 0) );
-
+
// Convert the flags
QStyle::SFlags nStyle = vclStateValue2SFlags( nState, aValue );
-
+
// Store the widget class
const char *pClassName = pWidget->className();
-
+
// Draw the widget to the pixmap
if ( strcmp( "QPushButton", pClassName ) == 0 )
{
@@ -468,7 +468,7 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
pPushButton->setOn ( nStyle & QStyle::Style_On );
pPushButton->setEnabled( nStyle & QStyle::Style_Enabled );
}
-
+
kapp->style().drawControl( QStyle::CE_PushButton,
&qPainter, pWidget, qRect,
pWidget->colorGroup(), nStyle );
@@ -501,15 +501,15 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
kapp->style().drawComplexControl( QStyle::CC_ComboBox,
&qPainter, pWidget, qRect,
pWidget->colorGroup(), nStyle );
-
+
// Editable combo box uses the background of the associated edit box
QComboBox *pComboBox = static_cast<QComboBox *>( pWidget->qt_cast( "QComboBox" ) );
if ( pComboBox && pComboBox->editable() && pComboBox->lineEdit() )
{
QColorGroup::ColorRole eColorRole = ( pComboBox->isEnabled() )?
QColorGroup::Base: QColorGroup::Background;
- qPainter.fillRect(
- kapp->style().querySubControlMetrics( QStyle::CC_ComboBox,
+ qPainter.fillRect(
+ kapp->style().querySubControlMetrics( QStyle::CC_ComboBox,
pComboBox, QStyle::SC_ComboBoxEditField ),
pComboBox->lineEdit()->colorGroup().brush( eColorRole ) );
}
@@ -523,7 +523,7 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
else if ( strcmp( "QSpinWidget", pClassName ) == 0 )
{
const SpinbuttonValue *pValue = static_cast<const SpinbuttonValue *> ( &aValue );
-
+
// Is any of the buttons pressed?
QStyle::SCFlags eActive = QStyle::SC_None;
if ( pValue )
@@ -556,8 +556,8 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
{
QColorGroup::ColorRole eColorRole = ( pSpinWidget->isEnabled() )?
QColorGroup::Base: QColorGroup::Background;
- qPainter.fillRect(
- kapp->style().querySubControlMetrics( QStyle::CC_SpinWidget,
+ qPainter.fillRect(
+ kapp->style().querySubControlMetrics( QStyle::CC_SpinWidget,
pSpinWidget, QStyle::SC_SpinWidgetEditField ),
pSpinWidget->editWidget()->colorGroup().brush( eColorRole ) );
}
@@ -565,7 +565,7 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
// Adjust the frame (needed for Motif Plus style)
QRect qFrameRect = kapp->style().querySubControlMetrics( QStyle::CC_SpinWidget,
pWidget, QStyle::SC_SpinWidgetFrame );
-
+
kapp->style().drawComplexControl( QStyle::CC_SpinWidget,
&qPainter, pWidget, qFrameRect,
pWidget->colorGroup(), nStyle,
@@ -574,7 +574,7 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
else if ( strcmp( "QTabBar", pClassName ) == 0 )
{
const TabitemValue *pValue = static_cast<const TabitemValue *> ( &aValue );
-
+
QTab *pTab = NULL;
if ( pValue )
{
@@ -589,9 +589,9 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
}
if ( !pTab )
return FALSE;
-
+
pTab->setRect( qRect );
-
+
kapp->style().drawControl( QStyle::CE_TabBarTab,
&qPainter, pWidget, qRect,
pWidget->colorGroup(), nStyle,
@@ -661,7 +661,7 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
else
pWidget->setEnabled( false );
}
-
+
// Is it a horizontal scroll bar?
QScrollBar *pScrollBar = static_cast<QScrollBar *> ( pWidget->qt_cast( "QScrollBar" ) );
QStyle::StyleFlags eHoriz = QStyle::Style_Default;
@@ -689,11 +689,11 @@ BOOL WidgetPainter::drawStyledWidget( QWidget *pWidget,
kapp->style().drawPrimitive( QStyle::PE_PanelDockWindow,
&qPainter, qRect, pWidget->colorGroup(), nStyle );
-
+
if ( nPart == PART_THUMB_HORZ || nPart == PART_THUMB_VERT )
{
const ToolbarValue *pValue = static_cast< const ToolbarValue * >( &aValue );
-
+
QRect qThumbRect = region2QRect( pValue->maGripRect );
qThumbRect.moveBy( -qWidgetPos.x(), -qWidgetPos.y() );
if ( bIsHorizontal )
@@ -813,7 +813,7 @@ QPushButton *WidgetPainter::pushButton( const Rectangle& rControlRegion,
m_pPushButton->setDefault( true );
QSize qDefSize = kapp->style().sizeFromContents( QStyle::CT_PushButton,
m_pPushButton, qContentsSize );
-
+
int nIndicatorSize = kapp->style().pixelMetric(
QStyle::PM_ButtonDefaultIndicator, m_pPushButton );
if ( qNormalSize.width() == qDefSize.width() )
@@ -821,7 +821,7 @@ QPushButton *WidgetPainter::pushButton( const Rectangle& rControlRegion,
if ( qNormalSize.height() == qDefSize.height() )
qRect.addCoords( 0, nIndicatorSize, 0, -nIndicatorSize );
}
-
+
m_pPushButton->move( qRect.topLeft() );
m_pPushButton->resize( qRect.size() );
m_pPushButton->setDefault( bDefault );
@@ -842,19 +842,19 @@ QRadioButton *WidgetPainter::radioButton( const Rectangle& rControlRegion )
if ( strcmp( "KThemeStyle", pStyleName ) == 0 )
{
QRect qOldRect( qRect );
-
+
qRect.setWidth( kapp->style().pixelMetric(
QStyle::PM_ExclusiveIndicatorWidth, m_pRadioButton ) );
qRect.setHeight( kapp->style().pixelMetric(
QStyle::PM_ExclusiveIndicatorHeight, m_pRadioButton ) );
-
+
qRect.moveBy( ( qOldRect.width() - qRect.width() ) / 2,
( qOldRect.height() - qRect.height() ) / 2 );
}
m_pRadioButton->move( qRect.topLeft() );
m_pRadioButton->resize( qRect.size() );
-
+
return m_pRadioButton;
}
@@ -871,12 +871,12 @@ QCheckBox *WidgetPainter::checkBox( const Rectangle& rControlRegion )
if ( strcmp( "KThemeStyle", pStyleName ) == 0 )
{
QRect qOldRect( qRect );
-
+
qRect.setWidth( kapp->style().pixelMetric(
QStyle::PM_IndicatorWidth, m_pCheckBox ) );
qRect.setHeight( kapp->style().pixelMetric(
QStyle::PM_IndicatorHeight, m_pCheckBox ) );
-
+
qRect.moveBy( ( qOldRect.width() - qRect.width() ) / 2,
( qOldRect.height() - qRect.height() ) / 2 );
}
@@ -905,7 +905,7 @@ QComboBox *WidgetPainter::comboBox( const Rectangle& rControlRegion,
}
QRect qRect = region2QRect( rControlRegion );
-
+
pComboBox->move( qRect.topLeft() );
pComboBox->resize( qRect.size() );
@@ -918,7 +918,7 @@ QLineEdit *WidgetPainter::lineEdit( const Rectangle& rControlRegion )
m_pLineEdit = new QLineEdit( NULL, "line_edit" );
QRect qRect = region2QRect( rControlRegion );
-
+
m_pLineEdit->move( qRect.topLeft() );
m_pLineEdit->resize( qRect.size() );
@@ -930,13 +930,13 @@ QSpinWidget *WidgetPainter::spinWidget( const Rectangle& rControlRegion )
if ( !m_pSpinWidget )
{
m_pSpinWidget = new QSpinWidget( NULL, "spin_widget" );
-
+
m_pSpinEdit = new QLineEdit( NULL, "line_edit_spin" );
m_pSpinWidget->setEditWidget( m_pSpinEdit );
}
QRect qRect = region2QRect( rControlRegion );
-
+
m_pSpinWidget->move( qRect.topLeft() );
m_pSpinWidget->resize( qRect.size() );
m_pSpinWidget->arrange();
@@ -952,7 +952,7 @@ QTabBar *WidgetPainter::tabBar( const Rectangle& rControlRegion )
m_pTabBarParent = new QWidget( NULL, "tab_bar_parent" );
m_pTabBar = new QTabBar( m_pTabBarParent, "tab_bar" );
-
+
m_pTabLeft = new QTab();
m_pTabMiddle = new QTab();
m_pTabRight = new QTab();
@@ -967,7 +967,7 @@ QTabBar *WidgetPainter::tabBar( const Rectangle& rControlRegion )
m_pTabBar->move( qRect.topLeft() );
m_pTabBar->resize( qRect.size() );
-
+
m_pTabBar->setShape( QTabBar::RoundedAbove );
return m_pTabBar;
@@ -980,10 +980,10 @@ QTabWidget *WidgetPainter::tabWidget( const Rectangle& rControlRegion )
QRect qRect = region2QRect( rControlRegion );
--qRect.rTop();
-
+
m_pTabWidget->move( qRect.topLeft() );
m_pTabWidget->resize( qRect.size() );
-
+
return m_pTabWidget;
}
@@ -993,7 +993,7 @@ QListView *WidgetPainter::listView( const Rectangle& rControlRegion )
m_pListView = new QListView( NULL, "list_view" );
QRect qRect = region2QRect( rControlRegion );
-
+
m_pListView->move( qRect.topLeft() );
m_pListView->resize( qRect.size() );
@@ -1011,7 +1011,7 @@ QScrollBar *WidgetPainter::scrollBar( const Rectangle& rControlRegion,
}
QRect qRect = region2QRect( rControlRegion );
-
+
m_pScrollBar->move( qRect.topLeft() );
m_pScrollBar->resize( qRect.size() );
m_pScrollBar->setOrientation( bHorizontal? Qt::Horizontal: Qt::Vertical );
@@ -1120,9 +1120,9 @@ QProgressBar *WidgetPainter::progressBar( const Rectangle& rControlRegion )
{
if ( !m_pProgressBar )
m_pProgressBar = new QProgressBar( NULL, "progress_bar" );
-
+
QRect qRect = region2QRect( rControlRegion );
-
+
m_pProgressBar->move( qRect.topLeft() );
m_pProgressBar->resize( qRect.size() );
@@ -1192,10 +1192,10 @@ class KDESalGraphics : public X11SalGraphics
@param nType
Type of the widget.
-
+
@param nPart
Specification of the widget's part if it consists of more than one.
-
+
@return TRUE if the platform supports native drawing of the widget nType
defined by nPart.
*/
@@ -1246,7 +1246,7 @@ BOOL KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nPart,
rIsInside = FALSE;
BOOL bHorizontal = ( nPart == PART_BUTTON_LEFT || nPart == PART_BUTTON_RIGHT );
-
+
QScrollBar *pScrollBar = pWidgetPainter->scrollBar( rControlRegion,
bHorizontal, ImplControlValue() );
QRect qRectSubLine = kapp->style().querySubControlMetrics(
@@ -1294,7 +1294,7 @@ BOOL KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nPart,
rIsInside = qRectAddLine.contains( aPos.getX(), aPos.getY() );
}
break;
-
+
case PART_BUTTON_UP:
if ( !bPlatinumStyle && qRectSubLine.contains( aPos.getX(), aPos.getY() ) )
rIsInside = TRUE;
@@ -1304,21 +1304,21 @@ BOOL KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nPart,
rIsInside = qRectAddLine.contains( aPos.getX(), aPos.getY() );
}
break;
-
+
case PART_BUTTON_RIGHT:
if ( bTwoSubButtons )
qRectAddLine.setLeft( qRectAddLine.left() + qRectAddLine.width() / 2 );
rIsInside = qRectAddLine.contains( aPos.getX(), aPos.getY() );
break;
-
+
case PART_BUTTON_DOWN:
if ( bTwoSubButtons )
qRectAddLine.setTop( qRectAddLine.top() + qRectAddLine.height() / 2 );
rIsInside = qRectAddLine.contains( aPos.getX(), aPos.getY() );
break;
-
+
// cases PART_TRACK_HORZ_AREA and PART_TRACK_VERT_AREA
default:
return FALSE;
@@ -1332,13 +1332,13 @@ BOOL KDESalGraphics::hitTestNativeControl( ControlType nType, ControlPart nPart,
/** Draw the requested control described by nPart/nState.
-
+
@param rControlRegion
The bounding region of the complete control in VCL frame coordinates.
-
+
@param aValue
An optional value (tristate/numerical/string).
-
+
@param aCaption
A caption or title string (like button text etc.)
*/
@@ -1352,7 +1352,7 @@ BOOL KDESalGraphics::drawNativeControl( ControlType nType, ControlPart nPart,
Display *dpy = GetXDisplay();
XLIB_Window drawable = GetDrawable();
GC gc = SelectPen(); //SelectFont(); // GC with current clipping region set
-
+
if ( (nType == CTRL_PUSHBUTTON) && (nPart == PART_ENTIRE_CONTROL) )
{
bReturn = pWidgetPainter->drawStyledWidget(
@@ -1471,16 +1471,16 @@ BOOL KDESalGraphics::drawNativeControl( ControlType nType, ControlPart nPart,
/** Draw text on the widget.
-
+
OPTIONAL. Draws the requested text for the control described by nPart/nState.
Used if text is not drawn by DrawNativeControl().
-
+
@param rControlRegion
The bounding region of the complete control in VCL frame coordinates.
-
+
@param aValue
An optional value (tristate/numerical/string)
-
+
@param aCaption
A caption or title string (like button text etc.)
*/
@@ -1502,10 +1502,10 @@ BOOL KDESalGraphics::drawNativeControlText( ControlType, ControlPart,
@param rControlRegion
The bounding region of the control in VCL frame coordinates.
-
+
@param aValue
An optional value (tristate/numerical/string)
-
+
@param aCaption
A caption or title string (like button text etc.)
*/
@@ -1518,7 +1518,7 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
BOOL bReturn = FALSE;
QRect qBoundingRect = WidgetPainter::region2QRect( rControlRegion );
QRect qRect;
-
+
QWidget *pWidget = NULL;
switch ( nType )
{
@@ -1656,7 +1656,7 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
qRect.setBottom( 0 );
}
}
-
+
qRect.moveBy( qBoundingRect.left(), qBoundingRect.top() );
bReturn = TRUE;
@@ -1699,7 +1699,7 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
Size aSize( qRect.width(), qRect.height() );
rNativeContentRegion = Rectangle( aPoint, aSize );
}
-
+
return bReturn;
}
@@ -1751,13 +1751,13 @@ static Font toFont( const QFont &rQFont, const ::com::sun::star::lang::Locale& r
{
psp::FastPrintFontInfo aInfo;
QFontInfo qFontInfo( rQFont );
-
+
// set family name
aInfo.m_aFamilyName = String( rQFont.family().utf8(), RTL_TEXTENCODING_UTF8 );
// set italic
aInfo.m_eItalic = ( qFontInfo.italic()? psp::italic::Italic: psp::italic::Upright );
-
+
// set weight
int nWeight = qFontInfo.weight();
if ( nWeight <= QFont::Light )
@@ -1770,7 +1770,7 @@ static Font toFont( const QFont &rQFont, const ::com::sun::star::lang::Locale& r
aInfo.m_eWeight = psp::weight::Bold;
else
aInfo.m_eWeight = psp::weight::UltraBold;
-
+
// set width
int nStretch = rQFont.stretch();
if ( nStretch <= QFont::UltraCondensed )
@@ -1791,7 +1791,7 @@ static Font toFont( const QFont &rQFont, const ::com::sun::star::lang::Locale& r
aInfo.m_eWidth = psp::width::ExtraExpanded;
else
aInfo.m_eWidth = psp::width::UltraExpanded;
-
+
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "font name BEFORE system match: \"%s\"\n", OUStringToOString( aInfo.m_aFamilyName, RTL_TEXTENCODING_ISO_8859_1 ).getStr() );
#endif
@@ -1809,7 +1809,7 @@ static Font toFont( const QFont &rQFont, const ::com::sun::star::lang::Locale& r
int nPointHeight = qFontInfo.pointSize();
if ( nPointHeight <= 0 )
nPointHeight = rQFont.pointSize();
-
+
// Create the font
Font aFont( aInfo.m_aFamilyName, Size( 0, nPointHeight ) );
if( aInfo.m_eWeight != psp::weight::Unknown )
@@ -1886,7 +1886,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
Color aBack = toColor( qColorGroup.background() );
Color aText = toColor( qColorGroup.text() );
Color aBase = toColor( qColorGroup.base() );
-
+
// Foreground
aStyleSettings.SetRadioCheckTextColor( aFore );
aStyleSettings.SetLabelTextColor( aFore );
@@ -1905,7 +1905,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
aStyleSettings.SetHelpColor( aBase );
aStyleSettings.SetWindowColor( aBase );
aStyleSettings.SetActiveTabColor( aBase );
-
+
// Buttons
aStyleSettings.SetButtonTextColor( toColor( qColorGroup.buttonText() ) );
aStyleSettings.SetButtonRolloverTextColor( toColor( qColorGroup.buttonText() ) );
@@ -1970,7 +1970,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
{
// Color
QColorGroup qMenuCG = pMenuBar->colorGroup();
-
+
// Menu text and background color, theme specific
Color aMenuFore = toColor( qMenuCG.foreground() );
Color aMenuBack = toColor( qMenuCG.background() );
@@ -1982,7 +1982,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
aMenuFore = toColor( qMenuCG.buttonText() );
aMenuBack = toColor( qMenuCG.button() );
}
-
+
aStyleSettings.SetMenuTextColor( aMenuFore );
aStyleSettings.SetMenuBarTextColor( aMenuFore );
aStyleSettings.SetMenuColor( aMenuBack );
@@ -2001,7 +2001,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
}
else
aStyleSettings.SetMenuHighlightTextColor( aMenuFore );
-
+
// set special menubar higlight text color
if ( kapp->style().inherits( "HighContrastStyle" ) )
ImplGetSVData()->maNWFData.maMenuBarHighlightTextColor = toColor( qMenuCG.highlightedText() );
@@ -2023,7 +2023,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
// Scroll bar size
aStyleSettings.SetScrollBarSize( kapp->style().pixelMetric( QStyle::PM_ScrollBarExtent ) );
-
+
rSettings.SetStyleSettings( aStyleSettings );
}
@@ -2045,7 +2045,7 @@ SalGraphics* KDESalFrame::GetGraphics()
}
}
}
-
+
return NULL;
}
diff --git a/vcl/unx/kde4/KDEData.cxx b/vcl/unx/kde4/KDEData.cxx
index 97654cf41e76..655a759138f4 100644
--- a/vcl/unx/kde4/KDEData.cxx
+++ b/vcl/unx/kde4/KDEData.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ void KDEData::Init()
void KDEData::initNWF()
{
ImplSVData *pSVData = ImplGetSVData();
-
+
// draw toolbars on separate lines
pSVData->maNWFData.mbDockingAreaSeparateTB = true;
// no borders for menu, theming does that
diff --git a/vcl/unx/kde4/KDEData.hxx b/vcl/unx/kde4/KDEData.hxx
index 31dc7b9dcba7..612ea7566642 100644
--- a/vcl/unx/kde4/KDEData.hxx
+++ b/vcl/unx/kde4/KDEData.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@ class KDEData : public X11SalData
public:
KDEData() {}
virtual ~KDEData();
-
+
virtual void Init();
virtual void initNWF();
virtual void deInitNWF();
diff --git a/vcl/unx/kde4/KDESalDisplay.cxx b/vcl/unx/kde4/KDESalDisplay.cxx
index 29292b68f142..252429594ef5 100644
--- a/vcl/unx/kde4/KDESalDisplay.cxx
+++ b/vcl/unx/kde4/KDESalDisplay.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/kde4/KDESalDisplay.hxx b/vcl/unx/kde4/KDESalDisplay.hxx
index 3b7117684942..25a8b9f54870 100644
--- a/vcl/unx/kde4/KDESalDisplay.hxx
+++ b/vcl/unx/kde4/KDESalDisplay.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx
index 107a2a2757b8..80adaa973007 100644
--- a/vcl/unx/kde4/KDESalFrame.cxx
+++ b/vcl/unx/kde4/KDESalFrame.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -69,7 +69,7 @@ void KDESalFrame::Show( BOOL bVisible, BOOL bNoActivate )
KDEXLib* pXLib = static_cast<KDEXLib*>(GetDisplay()->GetXLib());
pXLib->doStartup();
}
-
+
X11SalFrame::Show( bVisible, bNoActivate );
}
@@ -102,13 +102,13 @@ static Font toFont( const QFont &rQFont, const ::com::sun::star::lang::Locale& r
{
psp::FastPrintFontInfo aInfo;
QFontInfo qFontInfo( rQFont );
-
+
// set family name
aInfo.m_aFamilyName = String( (const char *) rQFont.family().toUtf8(), RTL_TEXTENCODING_UTF8 );
// set italic
aInfo.m_eItalic = ( qFontInfo.italic()? psp::italic::Italic: psp::italic::Upright );
-
+
// set weight
int nWeight = qFontInfo.weight();
if ( nWeight <= QFont::Light )
@@ -121,7 +121,7 @@ static Font toFont( const QFont &rQFont, const ::com::sun::star::lang::Locale& r
aInfo.m_eWeight = psp::weight::Bold;
else
aInfo.m_eWeight = psp::weight::UltraBold;
-
+
// set width
int nStretch = rQFont.stretch();
if ( nStretch <= QFont::UltraCondensed )
@@ -142,7 +142,7 @@ static Font toFont( const QFont &rQFont, const ::com::sun::star::lang::Locale& r
aInfo.m_eWidth = psp::width::ExtraExpanded;
else
aInfo.m_eWidth = psp::width::UltraExpanded;
-
+
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "font name BEFORE system match: \"%s\"\n", OUStringToOString( aInfo.m_aFamilyName, RTL_TEXTENCODING_ISO_8859_1 ).getStr() );
#endif
@@ -160,7 +160,7 @@ static Font toFont( const QFont &rQFont, const ::com::sun::star::lang::Locale& r
int nPointHeight = qFontInfo.pointSize();
if ( nPointHeight <= 0 )
nPointHeight = rQFont.pointSize();
-
+
// Create the font
Font aFont( aInfo.m_aFamilyName, Size( 0, nPointHeight ) );
if( aInfo.m_eWeight != psp::weight::Unknown )
@@ -181,28 +181,28 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
{
StyleSettings style( rSettings.GetStyleSettings() );
BOOL bSetTitleFont = false;
-
+
// General settings
QPalette pal = kapp->palette();
-
+
style.SetToolbarIconSize( STYLE_TOOLBAR_ICONSIZE_LARGE );
style.SetActiveColor(toColor(pal.color(QPalette::Active, QPalette::Window)));
style.SetDeactiveColor(toColor(pal.color(QPalette::Inactive, QPalette::Window)));
-
+
style.SetActiveColor2(toColor(pal.color(QPalette::Active, QPalette::Window)));
style.SetDeactiveColor2(toColor(pal.color(QPalette::Inactive, QPalette::Window)));
-
+
style.SetActiveTextColor(toColor(pal.color(QPalette::Active, QPalette::WindowText)));
style.SetDeactiveTextColor(toColor(pal.color(QPalette::Inactive, QPalette::WindowText)));
-
+
// WM settings
KConfig *pConfig = KGlobal::config().data();
if ( pConfig )
{
KConfigGroup aGroup = pConfig->group( "WM" );
const char *pKey;
-
+
pKey = "titleFont";
if ( aGroup.hasKey( pKey ) )
{
@@ -210,13 +210,13 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetTitleFont( aFont );
bSetTitleFont = true;
}
-
+
aGroup = pConfig->group( "Icons" );
pKey = "Theme";
if ( aGroup.hasKey( pKey ) )
style.SetPreferredSymbolsStyleName( readEntryUntranslated( &aGroup, pKey ) );
-
+
//toolbar
pKey = "toolbarFont";
if ( aGroup.hasKey( pKey ) )
@@ -225,7 +225,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetToolFont( aFont );
}
}
-
+
Color aFore = toColor( pal.color( QPalette::Active, QPalette::WindowText ) );
Color aBack = toColor( pal.color( QPalette::Active, QPalette::Window ) );
Color aText = toColor( pal.color( QPalette::Active, QPalette::Text ) );
@@ -252,7 +252,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetHelpColor( aBase );
style.SetWindowColor( aBase );
style.SetActiveTabColor( aBase );
-
+
// Buttons
style.SetButtonTextColor( aButn );
style.SetButtonRolloverTextColor( aButn );
@@ -268,7 +268,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetFaceColor( aBack );
style.SetInactiveTabColor( aBack );
style.SetDialogColor( aBack );
-
+
if( aBack == COL_LIGHTGRAY )
style.SetCheckedColor( Color( 0xCC, 0xCC, 0xCC ) );
else
@@ -287,10 +287,10 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
// Font
Font aFont = toFont( kapp->font(), rSettings.GetUILocale() );
-
+
style.SetAppFont( aFont );
style.SetHelpFont( aFont );
-
+
style.SetMenuFont( aFont ); // will be changed according to pMenuBar
//style.SetToolFont( aFont ); //already set above
style.SetLabelFont( aFont );
@@ -307,7 +307,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetTitleFont( aFont );
}
style.SetFloatTitleFont( aFont );
-
+
int flash_time = QApplication::cursorFlashTime();
style.SetCursorBlinkTime( flash_time != 0 ? flash_time/2 : STYLE_CURSOR_NOBLINKTIME );
@@ -318,14 +318,14 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
{
// Color
QPalette qMenuCG = pMenuBar->palette();
-
+
// Menu text and background color, theme specific
Color aMenuFore = toColor( qMenuCG.color( QPalette::WindowText ) );
Color aMenuBack = toColor( qMenuCG.color( QPalette::Window ) );
-
+
aMenuFore = toColor( qMenuCG.color( QPalette::ButtonText ) );
aMenuBack = toColor( qMenuCG.color( QPalette::Button ) );
-
+
style.SetMenuTextColor( aMenuFore );
style.SetMenuBarTextColor( aMenuFore );
style.SetMenuColor( aMenuBack );
@@ -334,7 +334,7 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
style.SetMenuHighlightColor( toColor ( qMenuCG.color( QPalette::Highlight ) ) );
style.SetMenuHighlightTextColor( aMenuFore );
-
+
// set special menubar higlight text color
if ( kapp->style()->inherits( "HighContrastStyle" ) )
ImplGetSVData()->maNWFData.maMenuBarHighlightTextColor = toColor( qMenuCG.color( QPalette::HighlightedText ) );
@@ -345,12 +345,12 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
aFont = toFont( pMenuBar->font(), rSettings.GetUILocale() );
style.SetMenuFont( aFont );
}
-
+
delete pMenuBar;
-
+
// Scroll bar size
style.SetScrollBarSize( kapp->style()->pixelMetric( QStyle::PM_ScrollBarExtent ) );
-
+
rSettings.SetStyleSettings( style );
}
@@ -404,7 +404,7 @@ SalGraphics* KDESalFrame::GetGraphics()
}
}
}
-
+
return NULL;
}
diff --git a/vcl/unx/kde4/KDESalFrame.hxx b/vcl/unx/kde4/KDESalFrame.hxx
index 2d9c7f8a7aa0..d6ae5a842dc1 100644
--- a/vcl/unx/kde4/KDESalFrame.hxx
+++ b/vcl/unx/kde4/KDESalFrame.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,11 +40,11 @@ class KDESalFrame : public X11SalFrame
{
X11SalGraphics* pGraphics;
bool bInUse;
-
+
GraphicsHolder() : pGraphics(0),bInUse( false ) {}
~GraphicsHolder();
};
-
+
GraphicsHolder m_aGraphics[ nMaxGraphics ];
public:
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx
index 166c4880f91d..925696ac5df3 100644
--- a/vcl/unx/kde4/KDESalGraphics.cxx
+++ b/vcl/unx/kde4/KDESalGraphics.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@
using namespace ::rtl;
-/**
+/**
Conversion function between VCL ControlState together with
ImplControlValue and Qt state flags.
@param nControlState State of the widget (default, focused, ...) in Native Widget Framework.
@@ -81,7 +81,7 @@ QStyle::State vclStateValue2StateFlag( ControlState nControlState,
return nState;
}
-/**
+/**
Convert VCL Rectangle to QRect.
@param rControlRegion The Rectangle to convert.
@return The matching QRect
@@ -91,7 +91,7 @@ QRect region2QRect( const Rectangle& rControlRegion )
return QRect(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.GetWidth(), rControlRegion.GetHeight());
}
-KDESalGraphics::KDESalGraphics() :
+KDESalGraphics::KDESalGraphics() :
m_image(0)
{
}
@@ -105,54 +105,54 @@ KDESalGraphics::~KDESalGraphics()
BOOL KDESalGraphics::IsNativeControlSupported( ControlType type, ControlPart part )
{
if (type == CTRL_PUSHBUTTON) return true;
-
+
if (type == CTRL_MENUBAR) return true;
-
+
if (type == CTRL_MENU_POPUP) return true;
-
+
if (type == CTRL_EDITBOX) return true;
-
+
if (type == CTRL_COMBOBOX) return true;
-
+
if (type == CTRL_TOOLBAR) return true;
-
+
if (type == CTRL_CHECKBOX) return true;
-
+
if (type == CTRL_LISTBOX) return true;
-
+
if (type == CTRL_LISTNODE) return true;
-
+
if (type == CTRL_FRAME) return true;
-
+
if (type == CTRL_SCROLLBAR) return true;
-
+
if (type == CTRL_WINDOW_BACKGROUND) return true;
-
+
if (type == CTRL_SPINBOX && (part == PART_ENTIRE_CONTROL || part == HAS_BACKGROUND_TEXTURE) ) return true;
// no spinbuttons for KDE, paint spinbox complete
//if (type == CTRL_SPINBUTTONS) return true;
-
+
if (type == CTRL_GROUPBOX) return true;
-
+
if (type == CTRL_FIXEDLINE) return true;
-
+
if (type == CTRL_FIXEDBORDER) return true;
-
+
if (type == CTRL_TOOLTIP) return true;
-
+
if (type == CTRL_RADIOBUTTON) return true;
-
+
if (type == CTRL_SLIDER && (part == PART_TRACK_HORZ_AREA || part == PART_TRACK_VERT_AREA) )
return true;
-
+
return false;
-
+
if ( (type == CTRL_TAB_ITEM) && (part == PART_ENTIRE_CONTROL) ) return true;
if ( (type == CTRL_TAB_PANE) && (part == PART_ENTIRE_CONTROL) ) return true;
// no CTRL_TAB_BODY for KDE
if ( (type == CTRL_PROGRESS) && (part == PART_ENTIRE_CONTROL) ) return true;
-
+
return false;
}
@@ -164,13 +164,13 @@ BOOL KDESalGraphics::hitTestNativeControl( ControlType, ControlPart,
}
/// helper drawing methods
-namespace
+namespace
{
void draw( QStyle::ControlElement element, QStyleOption* option, QImage* image, QStyle::State state )
{
option->state |= state;
option->rect = image->rect();
-
+
QPainter painter(image);
kapp->style()->drawControl(element, option, &painter);
}
@@ -179,7 +179,7 @@ namespace
{
option->state |= state;
option->rect = !rect.isNull() ? rect : image->rect();
-
+
QPainter painter(image);
kapp->style()->drawPrimitive(element, option, &painter);
}
@@ -188,11 +188,11 @@ namespace
{
option->state |= state;
option->rect = image->rect();
-
+
QPainter painter(image);
kapp->style()->drawComplexControl(element, option, &painter);
}
-
+
int getFrameWidth()
{
static int s_nFrameWidth = -1;
@@ -217,12 +217,12 @@ namespace
option.state = QStyle::State_Sunken;
#else
QStyleOptionFrame option;
-
+
QFrame aFrame( NULL );
aFrame.setFrameRect( QRect(0, 0, image->width(), image->height()) );
aFrame.setFrameStyle( QFrame::StyledPanel | QFrame::Sunken );
aFrame.ensurePolished();
-
+
option.initFrom( &aFrame );
option.lineWidth = aFrame.lineWidth();
option.midLineWidth = aFrame.midLineWidth();
@@ -242,7 +242,7 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
{
return false;
}
-
+
BOOL returnVal = true;
QRect widgetRect = region2QRect(rControlRegion);
@@ -257,34 +257,34 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
widgetRect = QRect( aButtonRect.Left(), aButtonRect.Top(),
aButtonRect.Right(), aButtonRect.Bottom() );
}
-
+
//if no image, or resized, make a new image
if (!m_image || m_image->size() != widgetRect.size())
{
if (m_image)
delete m_image;
-
+
m_image = new QImage( widgetRect.width(),
- widgetRect.height(),
+ widgetRect.height(),
QImage::Format_ARGB32 );
}
m_image->fill(KApplication::palette().color(QPalette::Window).rgb());
-
-
+
+
XLIB_Region pTempClipRegion = 0;
if (type == CTRL_PUSHBUTTON)
{
QStyleOptionButton option;
- draw( QStyle::CE_PushButton, &option, m_image,
+ draw( QStyle::CE_PushButton, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if ( (type == CTRL_MENUBAR))
{
- if (part == PART_MENU_ITEM)
+ if (part == PART_MENU_ITEM)
{
QStyleOptionMenuItem option;
- draw( QStyle::CE_MenuBarItem, &option, m_image,
+ draw( QStyle::CE_MenuBarItem, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (part == PART_ENTIRE_CONTROL)
@@ -296,17 +296,17 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
}
}
else if (type == CTRL_MENU_POPUP)
- {
+ {
if (part == PART_MENU_ITEM)
{
QStyleOptionMenuItem option;
- draw( QStyle::CE_MenuItem, &option, m_image,
+ draw( QStyle::CE_MenuItem, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (part == PART_MENU_ITEM_CHECK_MARK && (nControlState & CTRL_STATE_PRESSED) )
{
QStyleOptionButton option;
- draw( QStyle::PE_IndicatorMenuCheckMark, &option, m_image,
+ draw( QStyle::PE_IndicatorMenuCheckMark, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (part == PART_MENU_ITEM_RADIO_MARK && (nControlState & CTRL_STATE_PRESSED) )
@@ -323,31 +323,31 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
#else
QStyleOptionFrameV2 option;
#endif
- draw( QStyle::PE_FrameMenu, &option, m_image,
+ draw( QStyle::PE_FrameMenu, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
}
else if ( (type == CTRL_TOOLBAR) && (part == PART_BUTTON) )
{
QStyleOptionToolButton option;
-
+
option.arrowType = Qt::NoArrow;
option.subControls = QStyle::SC_ToolButton;
-
+
option.state = vclStateValue2StateFlag( nControlState, value );
option.state |= QStyle::State_Raised | QStyle::State_Enabled | QStyle::State_AutoRaise;
-
- draw( QStyle::CC_ToolButton, &option, m_image,
+
+ draw( QStyle::CC_ToolButton, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if ( (type == CTRL_TOOLBAR) && (part == PART_ENTIRE_CONTROL) )
{
QStyleOptionToolBar option;
-
+
option.rect = QRect(0, 0, widgetRect.width(), widgetRect.height());
option.state = vclStateValue2StateFlag( nControlState, value );
-
- draw( QStyle::CE_ToolBar, &option, m_image,
+
+ draw( QStyle::CE_ToolBar, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if ( (type == CTRL_TOOLBAR) && (part == PART_THUMB_VERT) )
@@ -357,11 +357,11 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
pTempClipRegion = XCreateRegion();
XRectangle xRect = { widgetRect.x(), widgetRect.y(), width, widgetRect.height() };
XUnionRectWithRegion( &xRect, pTempClipRegion, pTempClipRegion );
-
+
QStyleOption option;
option.state = QStyle::State_Horizontal;
-
- draw( QStyle::PE_IndicatorToolBarHandle, &option, m_image,
+
+ draw( QStyle::PE_IndicatorToolBarHandle, &option, m_image,
vclStateValue2StateFlag(nControlState, value), rect );
}
else if (type == CTRL_EDITBOX)
@@ -369,7 +369,7 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
QStyleOptionFrameV2 option;
draw( QStyle::PE_PanelLineEdit, &option, m_image,
vclStateValue2StateFlag(nControlState, value), m_image->rect().adjusted( 2, 2, -2, -2 ));
-
+
draw( QStyle::PE_FrameLineEdit, &option, m_image,
vclStateValue2StateFlag(nControlState, value));
}
@@ -377,15 +377,15 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
{
QStyleOptionComboBox option;
option.editable = true;
-
- draw( QStyle::CC_ComboBox, &option, m_image,
+
+ draw( QStyle::CC_ComboBox, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (type == CTRL_LISTBOX)
{
if( part == PART_WINDOW )
{
- lcl_drawFrame( QStyle::PE_Frame, m_image,
+ lcl_drawFrame( QStyle::PE_Frame, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else
@@ -393,12 +393,12 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
QStyleOptionComboBox option;
if (part == PART_SUB_EDIT)
{
- draw( QStyle::CE_ComboBoxLabel, &option, m_image,
+ draw( QStyle::CE_ComboBoxLabel, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else
{
- draw( QStyle::CC_ComboBox, &option, m_image,
+ draw( QStyle::CC_ComboBox, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
}
@@ -407,15 +407,15 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
{
QStyleOption option;
option.state = QStyle::State_Item | QStyle::State_Children;
-
+
if (nControlState & CTRL_STATE_PRESSED)
option.state |= QStyle::State_Open;
-
+
draw( QStyle::PE_IndicatorBranch, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (type == CTRL_CHECKBOX)
- {
+ {
QStyleOptionButton option;
draw( QStyle::CE_CheckBox, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
@@ -427,17 +427,17 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
QStyleOptionSlider option;
OSL_ASSERT( value.getType() == CTRL_SCROLLBAR );
const ScrollbarValue* sbVal = static_cast<const ScrollbarValue *>(&value);
-
+
//if the scroll bar is active (aka not degenrate...allow for hover events
if (sbVal->mnVisibleSize < sbVal->mnMax)
option.state = QStyle::State_MouseOver;
-
+
//horizontal or vertical
if (part == PART_DRAW_BACKGROUND_VERT)
option.orientation = Qt::Vertical;
else
option.state |= QStyle::State_Horizontal;
-
+
//setup parameters from the OO values
option.minimum = sbVal->mnMin;
option.maximum = sbVal->mnMax - sbVal->mnVisibleSize;
@@ -445,12 +445,12 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
option.sliderValue = sbVal->mnCur;
option.sliderPosition = sbVal->mnCur;
option.pageStep = sbVal->mnVisibleSize;
-
+
//setup the active control...always the slider
if (sbVal->mnThumbState & CTRL_STATE_ROLLOVER)
option.activeSubControls = QStyle::SC_ScrollBarSlider;
-
- draw( QStyle::CC_ScrollBar, &option, m_image,
+
+ draw( QStyle::CC_ScrollBar, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else
@@ -461,7 +461,7 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
else if (type == CTRL_SPINBOX)
{
QStyleOptionSpinBox option;
-
+
// determine active control
if( value.getType() == CTRL_SPINBUTTONS )
{
@@ -471,33 +471,33 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
if( (pSpinVal->mnLowerState & CTRL_STATE_PRESSED) )
option.activeSubControls |= QStyle::SC_SpinBoxDown;
}
-
- draw( QStyle::CC_SpinBox, &option, m_image,
+
+ draw( QStyle::CC_SpinBox, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (type == CTRL_GROUPBOX)
{
QStyleOptionGroupBox option;
- draw( QStyle::CC_GroupBox, &option, m_image,
+ draw( QStyle::CC_GroupBox, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (type == CTRL_RADIOBUTTON)
{
QStyleOptionButton option;
- draw( QStyle::CE_RadioButton, &option, m_image,
+ draw( QStyle::CE_RadioButton, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (type == CTRL_TOOLTIP)
{
QStyleOption option;
- draw( QStyle::PE_PanelTipLabel, &option, m_image,
+ draw( QStyle::PE_PanelTipLabel, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (type == CTRL_FRAME)
{
- lcl_drawFrame( QStyle::PE_Frame, m_image,
+ lcl_drawFrame( QStyle::PE_Frame, m_image,
vclStateValue2StateFlag(nControlState, value) );
-
+
// draw just the border, see http://qa.openoffice.org/issues/show_bug.cgi?id=107945
int nFrameWidth = getFrameWidth();
pTempClipRegion = XCreateRegion();
@@ -511,7 +511,7 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
{
xRect.width -= 2*nFrameWidth;
xRect.height -= 2*nFrameWidth;
-
+
XLIB_Region pSubtract = XCreateRegion();
XUnionRectWithRegion( &xRect, pSubtract, pSubtract );
XSubtractRegion( pTempClipRegion, pSubtract, pTempClipRegion );
@@ -520,7 +520,7 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
}
else if (type == CTRL_FIXEDBORDER)
{
- lcl_drawFrame( QStyle::PE_FrameWindow, m_image,
+ lcl_drawFrame( QStyle::PE_FrameWindow, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (type == CTRL_WINDOW_BACKGROUND)
@@ -532,8 +532,8 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
QStyleOptionMenuItem option;
option.menuItemType = QStyleOptionMenuItem::Separator;
option.state |= QStyle::State_Item;
-
- draw( QStyle::CE_MenuItem, &option, m_image,
+
+ draw( QStyle::CE_MenuItem, &option, m_image,
vclStateValue2StateFlag(nControlState, value) );
}
else if (type == CTRL_SLIDER && (part == PART_TRACK_HORZ_AREA || part == PART_TRACK_VERT_AREA))
@@ -541,25 +541,25 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
OSL_ASSERT( value.getType() == CTRL_SLIDER );
const SliderValue* slVal = static_cast<const SliderValue *>(&value);
QStyleOptionSlider option;
-
+
option.rect = QRect(0, 0, widgetRect.width(), widgetRect.height());
option.state = vclStateValue2StateFlag( nControlState, value );
option.maximum = slVal->mnMax;
option.minimum = slVal->mnMin;
option.sliderPosition = option.sliderValue = slVal->mnCur;
option.orientation = (part == PART_TRACK_HORZ_AREA) ? Qt::Horizontal : Qt::Vertical;
-
+
draw( QStyle::CC_Slider, &option, m_image, vclStateValue2StateFlag(nControlState, value) );
}
else
{
returnVal = false;
}
-
+
if (returnVal)
{
GC gc = SelectFont();
-
+
if( gc )
{
if( pTempClipRegion )
@@ -573,7 +573,7 @@ BOOL KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
pixmap.handle(), pixmap.x11Info().screen(), pixmap.x11Info().depth(),
GetDrawable(), GetScreenNumber(), GetVisual().GetDepth(),
gc, 0, 0, widgetRect.width(), widgetRect.height(), widgetRect.left(), widgetRect.top());
-
+
if( pTempClipRegion )
{
if( pClipRegion_ )
@@ -598,11 +598,11 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
Rectangle &nativeBoundingRegion, Rectangle &nativeContentRegion )
{
bool retVal = false;
-
+
QRect boundingRect = region2QRect( controlRegion );
QRect contentRect = boundingRect;
QStyleOptionComplex styleOption;
-
+
switch ( type )
{
// Metrics of the push button
@@ -615,9 +615,9 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
{
int size = kapp->style()->pixelMetric(
QStyle::PM_ButtonDefaultIndicator, &styleOption );
-
+
boundingRect.adjust( -size, -size, size, size );
-
+
retVal = true;
}
}
@@ -640,46 +640,46 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
contentRect = boundingRect;
contentRect.adjust( -nLayoutLeft+1, -nLayoutTop+1, nLayoutRight-1, nLayoutBottom-1 );
retVal = true;
-
+
break;
}
case CTRL_CHECKBOX:
if (part == PART_ENTIRE_CONTROL)
{
styleOption.state = vclStateValue2StateFlag(controlState, val);
-
+
contentRect.setWidth(kapp->style()->pixelMetric(
QStyle::PM_IndicatorWidth, &styleOption));
contentRect.setHeight(kapp->style()->pixelMetric(
QStyle::PM_IndicatorHeight, &styleOption));
-
+
contentRect.adjust(0, 0,
2 * kapp->style()->pixelMetric(
QStyle::PM_FocusFrameHMargin, &styleOption),
2 * kapp->style()->pixelMetric(
QStyle::PM_FocusFrameVMargin, &styleOption)
);
-
+
boundingRect = contentRect;
-
+
retVal = true;
-
+
break;
}
case CTRL_COMBOBOX:
case CTRL_LISTBOX:
{
QStyleOptionComboBox cbo;
-
+
cbo.rect = QRect(0, 0, contentRect.width(), contentRect.height());
cbo.state = vclStateValue2StateFlag(controlState, val);
-
+
switch ( part )
{
case PART_ENTIRE_CONTROL:
{
int size = kapp->style()->pixelMetric(QStyle::PM_ComboBoxFrameWidth) - 2;
-
+
// find out the minimum size that should be used
// assume contents is a text ling
int nHeight = kapp->fontMetrics().height();
@@ -704,9 +704,9 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
case PART_SUB_EDIT:
contentRect = kapp->style()->subControlRect(
QStyle::CC_ComboBox, &cbo, QStyle::SC_ComboBoxEditField );
-
+
contentRect.translate( boundingRect.left(), boundingRect.top() );
-
+
retVal = true;
break;
case PART_WINDOW:
@@ -721,7 +721,7 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
sbo.rect = QRect(0, 0, contentRect.width(), contentRect.height());
sbo.state = vclStateValue2StateFlag(controlState, val);
-
+
switch ( part )
{
case PART_BUTTON_UP:
@@ -731,7 +731,7 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
retVal = true;
boundingRect = QRect();
break;
-
+
case PART_BUTTON_DOWN:
contentRect = kapp->style()->subControlRect(
QStyle::CC_SpinBox, &sbo, QStyle::SC_SpinBoxDown );
@@ -787,7 +787,7 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
{
const int h = kapp->style()->pixelMetric(QStyle::PM_ExclusiveIndicatorHeight);
const int w = kapp->style()->pixelMetric(QStyle::PM_ExclusiveIndicatorWidth);
-
+
contentRect = QRect(boundingRect.left(), boundingRect.top(), w, h);
contentRect.adjust(0, 0,
2 * kapp->style()->pixelMetric(
@@ -796,7 +796,7 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
QStyle::PM_FocusFrameVMargin, &styleOption)
);
boundingRect = contentRect;
-
+
retVal = true;
break;
}
@@ -832,7 +832,7 @@ BOOL KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
Size aSize( contentRect.width(), contentRect.height() );
nativeContentRegion = Rectangle( aPoint, aSize );
}
-
+
return retVal;
}
diff --git a/vcl/unx/kde4/KDESalGraphics.hxx b/vcl/unx/kde4/KDESalGraphics.hxx
index 5500d5017581..b9f4ec14590a 100644
--- a/vcl/unx/kde4/KDESalGraphics.hxx
+++ b/vcl/unx/kde4/KDESalGraphics.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ class KDESalGraphics : public X11SalGraphics
public:
KDESalGraphics();
virtual ~KDESalGraphics();
-
+
/**
What widgets can be drawn the native way.
@param type Type of the widget.
@@ -52,7 +52,7 @@ class KDESalGraphics : public X11SalGraphics
@return true if the platform supports native drawing of the widget type defined by part.
*/
virtual BOOL IsNativeControlSupported( ControlType type, ControlPart part );
-
+
/** Test whether the position is in the native widget.
If the return value is TRUE, bIsInside contains information whether
aPos was or was not inside the native widget specified by the
@@ -62,13 +62,13 @@ class KDESalGraphics : public X11SalGraphics
const Rectangle& rControlRegion, const Point& aPos,
BOOL& rIsInside );
/** Draw the requested control described by part/nControlState.
-
+
@param rControlRegion
The bounding Rectangle of the complete control in VCL frame coordinates.
-
+
@param aValue
An optional value (tristate/numerical/string).
-
+
@param aCaption
A caption or title string (like button text etc.)
*/
@@ -76,21 +76,21 @@ class KDESalGraphics : public X11SalGraphics
const Rectangle& rControlRegion, ControlState nControlState,
const ImplControlValue& aValue,
const rtl::OUString& aCaption );
-
+
/** Draw text on the widget.
OPTIONAL. Draws the requested text for the control described by part/nControlState.
Used if text is not drawn by DrawNativeControl().
-
+
@param rControlRegion The bounding region of the complete control in VCL frame coordinates.
@param aValue An optional value (tristate/numerical/string)
- @param aCaption A caption or title string (like button text etc.)
+ @param aCaption A caption or title string (like button text etc.)
*/
virtual BOOL drawNativeControlText( ControlType, ControlPart,
const Rectangle&, ControlState,
const ImplControlValue&,
const rtl::OUString& ) { return false; }
/** Check if the bounding regions match.
-
+
If the return value is TRUE, rNativeBoundingRegion
contains the true bounding region covered by the control
including any adornment, while rNativeContentRegion contains the area
@@ -99,10 +99,10 @@ class KDESalGraphics : public X11SalGraphics
@param rControlRegion
The bounding region of the control in VCL frame coordinates.
-
+
@param aValue
An optional value (tristate/numerical/string)
-
+
@param aCaption
A caption or title string (like button text etc.)
*/
diff --git a/vcl/unx/kde4/KDESalInstance.cxx b/vcl/unx/kde4/KDESalInstance.cxx
index 302d20ca9bc4..976e77a32839 100644
--- a/vcl/unx/kde4/KDESalInstance.cxx
+++ b/vcl/unx/kde4/KDESalInstance.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/kde4/KDESalInstance.hxx b/vcl/unx/kde4/KDESalInstance.hxx
index c42fea68ddcf..ed463605f95c 100644
--- a/vcl/unx/kde4/KDESalInstance.hxx
+++ b/vcl/unx/kde4/KDESalInstance.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/kde4/KDEXLib.cxx b/vcl/unx/kde4/KDEXLib.cxx
index c61a00240721..1bca18e58af4 100644
--- a/vcl/unx/kde4/KDEXLib.cxx
+++ b/vcl/unx/kde4/KDEXLib.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,8 +67,8 @@
#include <glib-2.0/glib.h>
#endif
-KDEXLib::KDEXLib() :
- SalXLib(), m_bStartupDone(false), m_pApplication(0),
+KDEXLib::KDEXLib() :
+ SalXLib(), m_bStartupDone(false), m_pApplication(0),
m_pFreeCmdLineArgs(0), m_pAppCmdLineArgs(0), m_nFakeCmdLineArgs( 0 ),
eventLoopType( LibreOfficeEventLoop )
{
@@ -88,13 +88,13 @@ KDEXLib::KDEXLib() :
KDEXLib::~KDEXLib()
{
delete m_pApplication;
-
+
// free the faked cmdline arguments no longer needed by KApplication
for( int i = 0; i < m_nFakeCmdLineArgs; i++ )
{
free( m_pFreeCmdLineArgs[i] );
}
-
+
delete [] m_pFreeCmdLineArgs;
delete [] m_pAppCmdLineArgs;
}
@@ -115,7 +115,7 @@ void KDEXLib::Init()
ki18n( "LibreOffice is an office suite.\n" ),
"http://libreoffice.org",
"libreoffice@lists.freedesktop.org" );
-
+
kAboutData->addAuthor( ki18n( "Jan Holesovsky" ),
ki18n( "Original author and maintainer of the KDE NWF." ),
"kendy@artax.karlin.mff.cuni.cz",
@@ -126,7 +126,7 @@ void KDEXLib::Init()
kAboutData->addAuthor( ki18n("Eric Bischoff"),
ki18n( "Accessibility fixes, porting to KDE 4." ),
"bischoff@kde.org" );
-
+
//kAboutData->setProgramIconName("OpenOffice");
m_nFakeCmdLineArgs = 2;
@@ -178,7 +178,7 @@ void KDEXLib::Init()
Display* pDisp = QX11Info::display();
SalKDEDisplay *pSalDisplay = new SalKDEDisplay(pDisp);
-
+
pInputMethod->CreateMethod( pDisp );
pInputMethod->AddConnectionWatch( pDisp, (void*)this );
pSalDisplay->SetInputMethod( pInputMethod );
diff --git a/vcl/unx/kde4/KDEXLib.hxx b/vcl/unx/kde4/KDEXLib.hxx
index 7bfc542427a9..ffe93b40c735 100644
--- a/vcl/unx/kde4/KDEXLib.hxx
+++ b/vcl/unx/kde4/KDEXLib.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,7 +74,7 @@ class KDEXLib : public QObject, public SalXLib
void startTimeoutTimerSignal();
void startUserEventTimerSignal();
void processYieldSignal( bool bWait, bool bHandleAllCurrentEvents );
-
+
public:
KDEXLib();
virtual ~KDEXLib();
@@ -87,7 +87,7 @@ class KDEXLib : public QObject, public SalXLib
virtual void StopTimer();
virtual void Wakeup();
virtual void PostUserEvent();
-
+
void doStartup();
};
diff --git a/vcl/unx/kde4/VCLKDEApplication.cxx b/vcl/unx/kde4/VCLKDEApplication.cxx
index c923598736e8..678731c6fdb0 100644
--- a/vcl/unx/kde4/VCLKDEApplication.cxx
+++ b/vcl/unx/kde4/VCLKDEApplication.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,7 +34,7 @@
#include "KDESalDisplay.hxx"
-VCLKDEApplication::VCLKDEApplication() :
+VCLKDEApplication::VCLKDEApplication() :
KApplication()
{
}
@@ -47,7 +47,7 @@ bool VCLKDEApplication::x11EventFilter(XEvent* event)
{
return true;
}
-
+
return false;
}
diff --git a/vcl/unx/kde4/VCLKDEApplication.hxx b/vcl/unx/kde4/VCLKDEApplication.hxx
index 17a9b6eb0917..d86e85910af4 100644
--- a/vcl/unx/kde4/VCLKDEApplication.hxx
+++ b/vcl/unx/kde4/VCLKDEApplication.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,9 +43,9 @@ class VCLKDEApplication : public KApplication
{
public:
VCLKDEApplication();
-
+
virtual void commitData(QSessionManager&) {};
-
+
virtual bool x11EventFilter(XEvent* event);
};
diff --git a/vcl/unx/kde4/main.cxx b/vcl/unx/kde4/main.cxx
index d38c346c21b8..32561d9c9ee4 100644
--- a/vcl/unx/kde4/main.cxx
+++ b/vcl/unx/kde4/main.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,7 +55,7 @@ extern "C" {
*/
if( ! ( pNoXInitThreads && *pNoXInitThreads ) )
XInitThreads();
-
+
#if QT_VERSION < 0x050000
// Qt 4.x support needs >= 4.1.0
rtl::OString aVersion( qVersion() );
@@ -76,12 +76,12 @@ extern "C" {
return NULL;
}
#endif
-
+
KDESalInstance* pInstance = new KDESalInstance( new SalYieldMutex() );
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "created KDESalInstance 0x%p\n", pInstance );
#endif
-
+
// initialize SalData
KDEData *salData = new KDEData();
SetSalData(salData);
diff --git a/vcl/unx/source/app/i18n_cb.cxx b/vcl/unx/source/app/i18n_cb.cxx
index 98cba80637f0..5cb51b1e4589 100644
--- a/vcl/unx/source/app/i18n_cb.cxx
+++ b/vcl/unx/source/app/i18n_cb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -411,7 +411,7 @@ PreeditDrawCallback(XIC ic, XPointer client_data,
pPreeditData->aInputEv.mnCursorPos = call_data->caret;
pPreeditData->aInputEv.maText = String (pPreeditData->aText.pUnicodeBuffer,
pPreeditData->aText.nLength);
- pPreeditData->aInputEv.mnCursorFlags = 0; // default: make cursor visible
+ pPreeditData->aInputEv.mnCursorFlags = 0; // default: make cursor visible
pPreeditData->aInputEv.mnDeltaStart = 0; // call_data->chg_first;
pPreeditData->aInputEv.mbOnlyCursor = False;
@@ -536,13 +536,13 @@ CommitStringCallback( XIC ic, XPointer client_data, XPointer call_data )
{
if( pPreeditData->pFrame )
{
- pPreeditData->aInputEv.mnTime = 0;
- pPreeditData->aInputEv.mpTextAttr = 0;
- pPreeditData->aInputEv.mnCursorPos = cbtext->length;
- pPreeditData->aInputEv.maText = UniString(p_unicode_data, cbtext->length);
- pPreeditData->aInputEv.mnCursorFlags = 0; // default: make cursor visible
- pPreeditData->aInputEv.mnDeltaStart = 0;
- pPreeditData->aInputEv.mbOnlyCursor = False;
+ pPreeditData->aInputEv.mnTime = 0;
+ pPreeditData->aInputEv.mpTextAttr = 0;
+ pPreeditData->aInputEv.mnCursorPos = cbtext->length;
+ pPreeditData->aInputEv.maText = UniString(p_unicode_data, cbtext->length);
+ pPreeditData->aInputEv.mnCursorFlags = 0; // default: make cursor visible
+ pPreeditData->aInputEv.mnDeltaStart = 0;
+ pPreeditData->aInputEv.mbOnlyCursor = False;
pPreeditData->pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&pPreeditData->aInputEv);
pPreeditData->pFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, (void*)NULL );
diff --git a/vcl/unx/source/app/i18n_ic.cxx b/vcl/unx/source/app/i18n_ic.cxx
index 48f6c53b5c5c..5a50b6a04937 100644
--- a/vcl/unx/source/app/i18n_ic.cxx
+++ b/vcl/unx/source/app/i18n_ic.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -55,15 +55,15 @@ using namespace vcl;
static void sendEmptyCommit( SalFrame* pFrame )
{
vcl::DeletionListener aDel( pFrame );
-
+
SalExtTextInputEvent aEmptyEv;
- aEmptyEv.mnTime = 0;
- aEmptyEv.mpTextAttr = 0;
- aEmptyEv.maText = String();
- aEmptyEv.mnCursorPos = 0;
- aEmptyEv.mnCursorFlags = 0;
- aEmptyEv.mnDeltaStart = 0;
- aEmptyEv.mbOnlyCursor = False;
+ aEmptyEv.mnTime = 0;
+ aEmptyEv.mpTextAttr = 0;
+ aEmptyEv.maText = String();
+ aEmptyEv.mnCursorPos = 0;
+ aEmptyEv.mnCursorFlags = 0;
+ aEmptyEv.mnDeltaStart = 0;
+ aEmptyEv.mbOnlyCursor = False;
pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&aEmptyEv );
if( ! aDel.isDeleted() )
pFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, NULL );
@@ -682,10 +682,10 @@ SalI18N_InputContext::SetICFocus( SalFrame* pFocusFrame )
if ( mbUseable && (maContext != NULL) )
{
maClientData.pFrame = pFocusFrame;
-
- const SystemEnvData* pEnv = pFocusFrame->GetSystemData();
- XLIB_Window aClientWindow = pEnv->aShellWindow;
- XLIB_Window aFocusWindow = pEnv->aWindow;
+
+ const SystemEnvData* pEnv = pFocusFrame->GetSystemData();
+ XLIB_Window aClientWindow = pEnv->aShellWindow;
+ XLIB_Window aFocusWindow = pEnv->aWindow;
XSetICValues( maContext,
XNFocusWindow, aFocusWindow,
@@ -698,7 +698,7 @@ SalI18N_InputContext::SetICFocus( SalFrame* pFocusFrame )
// begin preedit again
GetX11SalData()->GetDisplay()->SendInternalEvent( pFocusFrame, &maClientData.aInputEv, SALEVENT_EXTTEXTINPUT );
}
-
+
XSetICFocus( maContext );
}
}
diff --git a/vcl/unx/source/app/i18n_im.cxx b/vcl/unx/source/app/i18n_im.cxx
index 32233cfb748c..580a2515bed1 100644
--- a/vcl/unx/source/app/i18n_im.cxx
+++ b/vcl/unx/source/app/i18n_im.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -217,10 +217,10 @@ IsXWindowCompatibleLocale( const char* p_locale )
return True;
}
-// Set the operating system locale prior to trying to open an
+// Set the operating system locale prior to trying to open an
// XIM InputMethod.
// Handle the cases where the current locale is either not supported by the
-// operating system (LANG=gaga) or by the XWindow system (LANG=aa_ER@saaho)
+// operating system (LANG=gaga) or by the XWindow system (LANG=aa_ER@saaho)
// by providing a fallback.
// Upgrade "C" or "POSIX" to "en_US" locale to allow umlauts and accents
// see i8988, i9188, i8930, i16318
@@ -251,7 +251,7 @@ SalI18N_InputMethod::SetLocale( const char* pLocale )
mbUseable = False;
}
}
-
+
// must not fail if mbUseable since XSupportsLocale() asserts success
if ( mbUseable && XSetLocaleModifiers("") == NULL )
{
@@ -317,15 +317,15 @@ GetMethodName( XIMStyle nStyle, char *pBuf, int nBufSize)
StyleName *pDescPtr;
static const StyleName pDescription[] = {
- { XIMPreeditArea, "PreeditArea ", sizeof("PreeditArea ") },
+ { XIMPreeditArea, "PreeditArea ", sizeof("PreeditArea ") },
{ XIMPreeditCallbacks, "PreeditCallbacks ",sizeof("PreeditCallbacks ")},
{ XIMPreeditPosition, "PreeditPosition ", sizeof("PreeditPosition ") },
{ XIMPreeditNothing, "PreeditNothing ", sizeof("PreeditNothing ") },
- { XIMPreeditNone, "PreeditNone ", sizeof("PreeditNone ") },
- { XIMStatusArea, "StatusArea ", sizeof("StatusArea ") },
+ { XIMPreeditNone, "PreeditNone ", sizeof("PreeditNone ") },
+ { XIMStatusArea, "StatusArea ", sizeof("StatusArea ") },
{ XIMStatusCallbacks, "StatusCallbacks ", sizeof("StatusCallbacks ") },
- { XIMStatusNothing, "StatusNothing ", sizeof("StatusNothing ") },
- { XIMStatusNone, "StatusNone ", sizeof("StatusNone ") },
+ { XIMStatusNothing, "StatusNothing ", sizeof("StatusNothing ") },
+ { XIMStatusNone, "StatusNone ", sizeof("StatusNone ") },
{ 0, "NULL", 0 }
};
@@ -459,7 +459,7 @@ SalI18N_InputMethod::CreateMethod ( Display *pDisplay )
fprintf(stderr, "input method creation failed\n");
#endif
- maDestroyCallback.callback = (XIMProc)IM_IMDestroyCallback;
+ maDestroyCallback.callback = (XIMProc)IM_IMDestroyCallback;
maDestroyCallback.client_data = (XPointer)this;
if (mbUseable && maMethod != NULL)
XSetIMValues(maMethod, XNDestroyCallback, &maDestroyCallback, NULL);
@@ -472,7 +472,7 @@ SalI18N_InputMethod::CreateMethod ( Display *pDisplay )
//
Bool
-SalI18N_InputMethod::FilterEvent( XEvent *pEvent, XLIB_Window window )
+SalI18N_InputMethod::FilterEvent( XEvent *pEvent, XLIB_Window window )
{
if (!mbUseable)
return False;
@@ -532,9 +532,9 @@ InputMethod_HasPendingEvent(int nFileDescriptor, void *pData)
struct pollfd aFileDescriptor;
#ifdef SOLARIS
- nfds_t nNumDescriptor = 1;
+ nfds_t nNumDescriptor = 1;
#else
- unsigned int nNumDescriptor = 1;
+ unsigned int nNumDescriptor = 1;
#endif
aFileDescriptor.fd = nFileDescriptor;
aFileDescriptor.events = POLLRDNORM;
diff --git a/vcl/unx/source/app/i18n_keysym.cxx b/vcl/unx/source/app/i18n_keysym.cxx
index 985448f3eb8d..3c060e4fc30a 100644
--- a/vcl/unx/source/app/i18n_keysym.cxx
+++ b/vcl/unx/source/app/i18n_keysym.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,18 +34,18 @@
#include <i18n_keysym.hxx>
-// convert keysyms to unicode
+// convert keysyms to unicode
// for all keysyms with byte1 and byte2 equal zero, and of course only for
// keysyms that have a unicode counterpart
typedef const sal_Unicode unicode_t;
-typedef struct {
+typedef struct {
const int first; const int last;
- unicode_t *map;
+ unicode_t *map;
} keymap_t;
-// Latin-1 Byte 3 = 0x00
-unicode_t keymap00_map[] = {
+// Latin-1 Byte 3 = 0x00
+unicode_t keymap00_map[] = {
0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027,
0x0028, 0x0029, 0x002a, 0x002b, 0x002c, 0x002d, 0x002e, 0x002f,
0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037,
@@ -73,11 +73,11 @@ unicode_t keymap00_map[] = {
0x00e0, 0x00e1, 0x00e2, 0x00e3, 0x00e4, 0x00e5, 0x00e6, 0x00e7,
0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7,
- 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff };
+ 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff };
const keymap_t keymap00 = { 32, 255, keymap00_map };
-// Latin-2 Byte 3 = 0x01
-unicode_t keymap01_map[] = {
+// Latin-2 Byte 3 = 0x01
+unicode_t keymap01_map[] = {
0x0104, 0x02d8, 0x0141, 0x0000, 0x013d, 0x015a, 0x0000, 0x0000,
0x0160, 0x015e, 0x0164, 0x0179, 0x0000, 0x017d, 0x017b, 0x0000,
0x0105, 0x02db, 0x0142, 0x0000, 0x013e, 0x015b, 0x02c7, 0x0000,
@@ -89,11 +89,11 @@ unicode_t keymap01_map[] = {
0x0000, 0x0000, 0x0103, 0x0000, 0x013a, 0x0107, 0x0000, 0x010d,
0x0000, 0x0119, 0x0000, 0x011b, 0x0000, 0x0000, 0x010f, 0x0111,
0x0144, 0x0148, 0x0000, 0x0000, 0x0151, 0x0000, 0x0000, 0x0159,
- 0x016f, 0x0000, 0x0171, 0x0000, 0x0000, 0x0163, 0x02d9 };
+ 0x016f, 0x0000, 0x0171, 0x0000, 0x0000, 0x0163, 0x02d9 };
const keymap_t keymap01 = { 161, 255, keymap01_map };
-// Latin-3 Byte 3 = 0x02
-unicode_t keymap02_map[] = {
+// Latin-3 Byte 3 = 0x02
+unicode_t keymap02_map[] = {
0x0126, 0x0000, 0x0000, 0x0000, 0x0000, 0x0124, 0x0000, 0x0000,
0x0130, 0x0000, 0x011e, 0x0134, 0x0000, 0x0000, 0x0000, 0x0000,
0x0127, 0x0000, 0x0000, 0x0000, 0x0000, 0x0125, 0x0000, 0x0000,
@@ -105,11 +105,11 @@ unicode_t keymap02_map[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x010b, 0x0109, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0121, 0x0000, 0x0000, 0x011d,
- 0x0000, 0x0000, 0x0000, 0x0000, 0x016d, 0x015d };
+ 0x0000, 0x0000, 0x0000, 0x0000, 0x016d, 0x015d };
const keymap_t keymap02 = { 161, 254, keymap02_map };
-// Latin-4 Byte 3 = 0x03
-unicode_t keymap03_map[] = {
+// Latin-4 Byte 3 = 0x03
+unicode_t keymap03_map[] = {
0x0138, 0x0156, 0x0000, 0x0128, 0x013b, 0x0000, 0x0000, 0x0000,
0x0112, 0x0122, 0x0166, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0157, 0x0000, 0x0129, 0x013c, 0x0000, 0x0000, 0x0000,
@@ -121,11 +121,11 @@ unicode_t keymap03_map[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x012f, 0x0000, 0x0000,
0x0000, 0x0000, 0x0117, 0x0000, 0x0000, 0x012b, 0x0000, 0x0146,
0x014d, 0x0137, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0173,
- 0x0000, 0x0000, 0x0000, 0x0169, 0x016b };
+ 0x0000, 0x0000, 0x0000, 0x0169, 0x016b };
const keymap_t keymap03 = { 162, 254, keymap03_map };
-// Kana Byte 3 = 0x04
-unicode_t keymap04_map[] = {
+// Kana Byte 3 = 0x04
+unicode_t keymap04_map[] = {
0x203e, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
@@ -138,11 +138,11 @@ unicode_t keymap04_map[] = {
0x30cb, 0x30cc, 0x30cd, 0x30ce, 0x30cf, 0x30d2, 0x30d5, 0x30d8,
0x30db, 0x30de, 0x30df, 0x30e0, 0x30e1, 0x30e2, 0x30e4, 0x30e6,
0x30e8, 0x30e9, 0x30ea, 0x30eb, 0x30ec, 0x30ed, 0x30ef, 0x30f3,
- 0x309b, 0x309c };
+ 0x309b, 0x309c };
const keymap_t keymap04 = { 126, 223, keymap04_map };
-// Arabic Byte 3 = 0x05
-unicode_t keymap05_map[] = {
+// Arabic Byte 3 = 0x05
+unicode_t keymap05_map[] = {
0x060c, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x061b,
0x0000, 0x0000, 0x0000, 0x061f, 0x0000, 0x0621, 0x0622, 0x0623,
@@ -151,11 +151,11 @@ unicode_t keymap05_map[] = {
0x0634, 0x0635, 0x0636, 0x0637, 0x0638, 0x0639, 0x063a, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0640, 0x0641, 0x0642, 0x0643,
0x0644, 0x0645, 0x0646, 0x0647, 0x0648, 0x0649, 0x064a, 0x064b,
- 0x064c, 0x064d, 0x064e, 0x064f, 0x0650, 0x0651, 0x0652 };
+ 0x064c, 0x064d, 0x064e, 0x064f, 0x0650, 0x0651, 0x0652 };
const keymap_t keymap05 = { 172, 242, keymap05_map };
-// Cyrillic Byte 3 = 0x06
-unicode_t keymap06_map[] = {
+// Cyrillic Byte 3 = 0x06
+unicode_t keymap06_map[] = {
0x0452, 0x0453, 0x0451, 0x0454, 0x0455, 0x0456, 0x0457, 0x0458,
0x0459, 0x045a, 0x045b, 0x045c, 0x0000, 0x045e, 0x045f, 0x2116,
0x0402, 0x0403, 0x0401, 0x0404, 0x0405, 0x0406, 0x0407, 0x0408,
@@ -167,11 +167,11 @@ unicode_t keymap06_map[] = {
0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, 0x0425,
0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f,
0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, 0x042c,
- 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a };
+ 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a };
const keymap_t keymap06 = { 161, 255, keymap06_map };
-// Greek Byte 3 = 0x07
-unicode_t keymap07_map[] = {
+// Greek Byte 3 = 0x07
+unicode_t keymap07_map[] = {
0x0386, 0x0388, 0x0389, 0x038a, 0x03aa, 0x0000, 0x038c, 0x038e,
0x03ab, 0x0000, 0x038f, 0x0000, 0x0000, 0x0385, 0x2015, 0x0000,
0x03ac, 0x03ad, 0x03ae, 0x03af, 0x03ca, 0x0390, 0x03cc, 0x03cd,
@@ -183,11 +183,11 @@ unicode_t keymap07_map[] = {
0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, 0x03b8,
0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, 0x03c0,
0x03c1, 0x03c3, 0x03c2, 0x03c4, 0x03c5, 0x03c6, 0x03c7, 0x03c8,
- 0x03c9 };
+ 0x03c9 };
const keymap_t keymap07 = { 161, 249, keymap07_map };
-// Technical Byte 3 = 0x08
-unicode_t keymap08_map[] = {
+// Technical Byte 3 = 0x08
+unicode_t keymap08_map[] = {
0x23b7, 0x250c, 0x2500, 0x2320, 0x2321, 0x2502, 0x23a1, 0x23a3,
0x23a4, 0x23a6, 0x239b, 0x239d, 0x239e, 0x23a0, 0x23a8, 0x23ac,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
@@ -199,19 +199,19 @@ unicode_t keymap08_map[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2202, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0192, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x2190, 0x2191, 0x2192, 0x2193 };
+ 0x0000, 0x0000, 0x2190, 0x2191, 0x2192, 0x2193 };
const keymap_t keymap08 = { 161, 254, keymap08_map };
-// Special Byte 3 = 0x09
-unicode_t keymap09_map[] = {
+// Special Byte 3 = 0x09
+unicode_t keymap09_map[] = {
0x25c6, 0x2592, 0x2409, 0x240c, 0x240d, 0x240a, 0x0000, 0x0000,
0x2424, 0x240b, 0x2518, 0x2510, 0x250c, 0x2514, 0x253c, 0x23ba,
0x23bb, 0x2500, 0x23bc, 0x23bd, 0x251c, 0x2524, 0x2534, 0x252c,
- 0x2502 };
+ 0x2502 };
const keymap_t keymap09 = { 224, 248, keymap09_map };
-// Publishing Byte 3 = 0x0a = 10
-unicode_t keymap10_map[] = {
+// Publishing Byte 3 = 0x0a = 10
+unicode_t keymap10_map[] = {
0x2003, 0x2002, 0x2004, 0x2005, 0x2007, 0x2008, 0x2009, 0x200a,
0x2014, 0x2013, 0x0000, 0x0000, 0x0000, 0x2026, 0x2025, 0x2153,
0x2154, 0x2155, 0x2156, 0x2157, 0x2158, 0x2159, 0x215a, 0x2105,
@@ -223,11 +223,11 @@ unicode_t keymap10_map[] = {
0x25ab, 0x25ad, 0x25b3, 0x25bd, 0x2606, 0x2022, 0x25aa, 0x25b2,
0x25bc, 0x261c, 0x261e, 0x2663, 0x2666, 0x2665, 0x0000, 0x2720,
0x2020, 0x2021, 0x2713, 0x2717, 0x266f, 0x266d, 0x2642, 0x2640,
- 0x260e, 0x2315, 0x2117, 0x2038, 0x201a, 0x201e };
+ 0x260e, 0x2315, 0x2117, 0x2038, 0x201a, 0x201e };
const keymap_t keymap10 = { 161, 254, keymap10_map };
-// APL Byte 3 = 0x0b = 11
-unicode_t keymap11_map[] = {
+// APL Byte 3 = 0x0b = 11
+unicode_t keymap11_map[] = {
0x003c, 0x0000, 0x0000, 0x003e, 0x0000, 0x2228, 0x2227, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
@@ -239,19 +239,19 @@ unicode_t keymap11_map[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x22a3 };
+ 0x0000, 0x22a3 };
const keymap_t keymap11 = { 163, 252, keymap11_map };
-// Hebrew Byte 3 = 0x0c = 12
-unicode_t keymap12_map[] = {
+// Hebrew Byte 3 = 0x0c = 12
+unicode_t keymap12_map[] = {
0x2017, 0x05d0, 0x05d1, 0x05d2, 0x05d3, 0x05d4, 0x05d5, 0x05d6,
0x05d7, 0x05d8, 0x05d9, 0x05da, 0x05db, 0x05dc, 0x05dd, 0x05de,
0x05df, 0x05e0, 0x05e1, 0x05e2, 0x05e3, 0x05e4, 0x05e5, 0x05e6,
- 0x05e7, 0x05e8, 0x05e9, 0x05ea };
+ 0x05e7, 0x05e8, 0x05e9, 0x05ea };
const keymap_t keymap12 = { 223, 250, keymap12_map };
-// Thai Byte 3 = 0x0d = 13
-unicode_t keymap13_map[] = {
+// Thai Byte 3 = 0x0d = 13
+unicode_t keymap13_map[] = {
0x0e01, 0x0e02, 0x0e03, 0x0e04, 0x0e05, 0x0e06, 0x0e07, 0x0e08,
0x0e09, 0x0e0a, 0x0e0b, 0x0e0c, 0x0e0d, 0x0e0e, 0x0e0f, 0x0e10,
0x0e11, 0x0e12, 0x0e13, 0x0e14, 0x0e15, 0x0e16, 0x0e17, 0x0e18,
@@ -263,11 +263,11 @@ unicode_t keymap13_map[] = {
0x0e41, 0x0e42, 0x0e43, 0x0e44, 0x0e45, 0x0e46, 0x0e47, 0x0e48,
0x0e49, 0x0e4a, 0x0e4b, 0x0e4c, 0x0e4d, 0x0000, 0x0000, 0x0e50,
0x0e51, 0x0e52, 0x0e53, 0x0e54, 0x0e55, 0x0e56, 0x0e57, 0x0e58,
- 0x0e59 };
+ 0x0e59 };
const keymap_t keymap13 = { 161, 249, keymap13_map };
-// Korean Byte 3 = 0x0e = 14
-unicode_t keymap14_map[] = {
+// Korean Byte 3 = 0x0e = 14
+unicode_t keymap14_map[] = {
0x3131, 0x3132, 0x3133, 0x3134, 0x3135, 0x3136, 0x3137, 0x3138,
0x3139, 0x313a, 0x313b, 0x313c, 0x313d, 0x313e, 0x313f, 0x3140,
0x3141, 0x3142, 0x3143, 0x3144, 0x3145, 0x3146, 0x3147, 0x3148,
@@ -279,31 +279,31 @@ unicode_t keymap14_map[] = {
0x11b5, 0x11b6, 0x11b7, 0x11b8, 0x11b9, 0x11ba, 0x11bb, 0x11bc,
0x11bd, 0x11be, 0x11bf, 0x11c0, 0x11c1, 0x11c2, 0x316d, 0x3171,
0x3178, 0x317f, 0x3181, 0x3184, 0x3186, 0x318d, 0x318e, 0x11eb,
- 0x11f0, 0x11f9, 0x0000, 0x0000, 0x0000, 0x0000, 0x20a9 };
+ 0x11f0, 0x11f9, 0x0000, 0x0000, 0x0000, 0x0000, 0x20a9 };
const keymap_t keymap14 = { 161, 255, keymap14_map };
// missing:
-// Latin-8 Byte 3 = 0x12 = 18
+// Latin-8 Byte 3 = 0x12 = 18
-// Latin-9 Byte 3 = 0x13 = 19
-unicode_t keymap19_map[] = {
- 0x0152, 0x0153, 0x0178 };
+// Latin-9 Byte 3 = 0x13 = 19
+unicode_t keymap19_map[] = {
+ 0x0152, 0x0153, 0x0178 };
const keymap_t keymap19 = { 188, 190, keymap19_map };
// missing:
-// Armenian Byte 3 = 0x14 = 20
-// Georgian Byte 3 = 0x15 = 21
-// Azeri Byte 3 = 0x16 = 22
-// Vietnamese Byte 3 = 0x1e = 30
+// Armenian Byte 3 = 0x14 = 20
+// Georgian Byte 3 = 0x15 = 21
+// Azeri Byte 3 = 0x16 = 22
+// Vietnamese Byte 3 = 0x1e = 30
-// Currency Byte 3 = 0x20 = 32
-unicode_t keymap32_map[] = {
+// Currency Byte 3 = 0x20 = 32
+unicode_t keymap32_map[] = {
0x20a0, 0x20a1, 0x20a2, 0x20a3, 0x20a4, 0x20a5, 0x20a6, 0x20a7,
- 0x20a8, 0x0000, 0x20aa, 0x20ab, 0x20ac };
+ 0x20a8, 0x0000, 0x20aa, 0x20ab, 0x20ac };
const keymap_t keymap32 = { 160, 172, keymap32_map };
// Keyboard (Keypad mappings) Byte 3 = 0xff = 255
-unicode_t keymap255_map[] = {
+unicode_t keymap255_map[] = {
0x0020, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
@@ -311,20 +311,20 @@ unicode_t keymap255_map[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x002a, 0x002b, 0x002c, 0x002d, 0x002e, 0x002f,
0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037,
- 0x0038, 0x0039, 0x0000, 0x0000, 0x0000, 0x003d };
+ 0x0038, 0x0039, 0x0000, 0x0000, 0x0000, 0x003d };
const keymap_t keymap255 = { 128, 189, keymap255_map };
#define INITIAL_KEYMAPS 33
const keymap_t* p_keymap[INITIAL_KEYMAPS] = {
- &keymap00, &keymap01, &keymap02, &keymap03, /* 00 -- 03 */
- &keymap04, &keymap05, &keymap06, &keymap07, /* 04 -- 07 */
- &keymap08, &keymap09, &keymap10, &keymap11, /* 08 -- 11 */
- &keymap12, &keymap13, &keymap14, (keymap_t*)NULL, /* 12 -- 15 */
- (keymap_t*)NULL, (keymap_t*)NULL, (keymap_t*)NULL, &keymap19, /* 16 -- 19 */
+ &keymap00, &keymap01, &keymap02, &keymap03, /* 00 -- 03 */
+ &keymap04, &keymap05, &keymap06, &keymap07, /* 04 -- 07 */
+ &keymap08, &keymap09, &keymap10, &keymap11, /* 08 -- 11 */
+ &keymap12, &keymap13, &keymap14, (keymap_t*)NULL, /* 12 -- 15 */
+ (keymap_t*)NULL, (keymap_t*)NULL, (keymap_t*)NULL, &keymap19, /* 16 -- 19 */
(keymap_t*)NULL, (keymap_t*)NULL, (keymap_t*)NULL, (keymap_t*)NULL, /* 20 -- 23 */
(keymap_t*)NULL, (keymap_t*)NULL, (keymap_t*)NULL, (keymap_t*)NULL, /* 24 -- 27 */
(keymap_t*)NULL, (keymap_t*)NULL, (keymap_t*)NULL, (keymap_t*)NULL, /* 28 -- 31 */
- &keymap32 /* 32 */
+ &keymap32 /* 32 */
};
sal_Unicode
diff --git a/vcl/unx/source/app/i18n_status.cxx b/vcl/unx/source/app/i18n_status.cxx
index 2f055c573fa3..98d26e4509df 100644
--- a/vcl/unx/source/app/i18n_status.cxx
+++ b/vcl/unx/source/app/i18n_status.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,17 +93,17 @@ namespace vcl {
class XIMStatusWindow : public StatusWindow
{
- FixedText m_aStatusText;
- SalFrame* m_pLastParent;
- Size m_aWindowSize;
+ FixedText m_aStatusText;
+ SalFrame* m_pLastParent;
+ Size m_aWindowSize;
bool m_bAnchoredAtRight;
// true if the right edge (instead of the left edge) should stay at a
// fixed position when re-sizing the window
// for delayed showing
- bool m_bDelayedShow;
- I18NStatus::ShowReason m_eDelayedReason;
- ULONG m_nDelayedEvent;
+ bool m_bDelayedShow;
+ I18NStatus::ShowReason m_eDelayedReason;
+ ULONG m_nDelayedEvent;
// for toggling
bool m_bOn;
@@ -208,7 +208,7 @@ Point XIMStatusWindow::updatePosition()
if( checkLastParent() )
{
const SystemEnvData* pParentEnvData = m_pLastParent->GetSystemData();
-
+
SalExtTextInputPosEvent aPosEvent;
m_pLastParent->CallCallback( SALEVENT_EXTTEXTINPUTPOS, (void*)&aPosEvent );
int x, y;
@@ -319,9 +319,9 @@ namespace vcl {
class IIIMPStatusWindow : public StatusWindow
{
- MenuButton m_aStatusBtn;
- PopupMenu m_aMenu;
- SalFrame* m_pResetFocus;
+ MenuButton m_aStatusBtn;
+ PopupMenu m_aMenu;
+ SalFrame* m_pResetFocus;
bool m_bShow;
bool m_bOn;
@@ -614,7 +614,7 @@ void I18NStatus::setStatusText( const String& rText )
String aText( pBuffer );
m_pStatusWindow->setText( aText );
m_pStatusWindow->setPosition( m_pParent );
-
+
bool bVisible = true;
if( m_pParent )
{
@@ -625,7 +625,7 @@ void I18NStatus::setStatusText( const String& rText )
bVisible = false;
}
}
-
+
m_pStatusWindow->show( bVisible, contextmap );
}
}
@@ -656,8 +656,8 @@ void I18NStatus::clearChoices()
void I18NStatus::addChoice( const String& rChoice, void* pData )
{
ChoiceData aData;
- aData.pData = pData;
- aData.aString = rChoice;
+ aData.pData = pData;
+ aData.aString = rChoice;
m_aChoices.push_back( aData );
}
diff --git a/vcl/unx/source/app/i18n_wrp.cxx b/vcl/unx/source/app/i18n_wrp.cxx
index baf7e175eac5..df64a69b8a36 100644
--- a/vcl/unx/source/app/i18n_wrp.cxx
+++ b/vcl/unx/source/app/i18n_wrp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,7 +29,7 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_vcl.hxx"
-struct XIMArg
+struct XIMArg
{
char *name;
char *value;
@@ -48,7 +48,7 @@ struct XIMArg
#include <X11/Xlibint.h>
#include "XIM.h"
-#define XIIIMP_LIB "xiiimp.so.2"
+#define XIIIMP_LIB "xiiimp.so.2"
#ifdef SOLARIS
#define XIIIMP_PATH "/usr/openwin/lib/locale/common/" XIIIMP_LIB
@@ -169,8 +169,8 @@ XvaGetArgs( va_list pInArgs, XIMArg *pOutArgs )
#ifdef __cplusplus
extern "C"
#endif
-XIM
-XvaOpenIM(Display *display, XrmDatabase rdb,
+XIM
+XvaOpenIM(Display *display, XrmDatabase rdb,
char *res_name, char *res_class, ...)
{
XIM xim = (XIM)0;
@@ -180,7 +180,7 @@ XvaOpenIM(Display *display, XrmDatabase rdb,
/*
* so count the stuff dangling here
*/
-
+
#if defined(SOLARIS) && !defined(__GNUC__)
va_start(variable);
#else
@@ -189,8 +189,8 @@ XvaOpenIM(Display *display, XrmDatabase rdb,
total_count = XvaCountArgs(variable);
va_end(variable);
- if (total_count > 0)
- {
+ if (total_count > 0)
+ {
/* call a new open IM method */
XIMArg* args = (XIMArg*)alloca( (total_count + 1) * sizeof(XIMArg) );
@@ -206,23 +206,23 @@ XvaOpenIM(Display *display, XrmDatabase rdb,
XvaGetArgs( variable, args );
va_end(variable);
- if (!g_dlmodule)
+ if (!g_dlmodule)
{
g_dlmodule = dlopen(XIIIMP_LIB, RTLD_LAZY);
if(!g_dlmodule)
{
g_dlmodule = dlopen(XIIIMP_PATH, RTLD_LAZY);
- if (!g_dlmodule)
+ if (!g_dlmodule)
goto legacy_XIM;
}
g_open_im = (OpenFunction)(long)dlsym(g_dlmodule, "__XOpenIM");
- if (!g_open_im)
+ if (!g_open_im)
goto legacy_XIM;
xim = (*g_open_im)(display, (XrmDatabase)rdb,
(char*)res_name, (char *)res_class, (XIMArg*)args);
- }
- else
+ }
+ else
{
goto legacy_XIM;
}
@@ -230,10 +230,10 @@ XvaOpenIM(Display *display, XrmDatabase rdb,
// in #if to prevent warning "warning: label 'legacy_XIM' defined but not used"
legacy_XIM:
-
+
if (!xim)
xim = XOpenIM(display, rdb, res_name, res_class);
-
+
return xim;
}
@@ -245,8 +245,8 @@ Status XvaCloseIM(XIM)
{
Status s = False;
- if (!g_dlmodule)
- {
+ if (!g_dlmodule)
+ {
/* assuming one XvaOpenIM call */
dlclose(g_dlmodule);
g_dlmodule = (void*)0;
diff --git a/vcl/unx/source/app/i18n_xkb.cxx b/vcl/unx/source/app/i18n_xkb.cxx
index bb62e248b1d7..830290405f9d 100644
--- a/vcl/unx/source/app/i18n_xkb.cxx
+++ b/vcl/unx/source/app/i18n_xkb.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,8 +50,8 @@ pDisplay
// allow user to set the default keyboard group idx or to disable the usage
// of x keyboard extension at all:
- // setenv SAL_XKEYBOARDGROUP disables keyboard extension
- // setenv SAL_XKEYBOARDGROUP 2 sets the keyboard group index to 2
+ // setenv SAL_XKEYBOARDGROUP disables keyboard extension
+ // setenv SAL_XKEYBOARDGROUP 2 sets the keyboard group index to 2
// keyboard group index must be in [1,4], may be specified in hex or decimal
static char *pUseKeyboardExtension = getenv( "SAL_XKEYBOARDGROUP" );
if ( pUseKeyboardExtension != NULL )
@@ -150,7 +150,7 @@ SalI18N_KeyboardExtension::LookupKeysymInGroup( sal_uInt32,sal_uInt32,sal_uInt32
nShiftState &= ShiftMask;
- KeySym nKeySymbol;
+ KeySym nKeySymbol;
nKeySymbol = XkbKeycodeToKeysym( mpDisplay, nKeyCode, nGroup, nShiftState );
return nKeySymbol;
diff --git a/vcl/unx/source/app/keysymnames.cxx b/vcl/unx/source/app/keysymnames.cxx
index 3ea61eb86bdc..023848adc510 100644
--- a/vcl/unx/source/app/keysymnames.cxx
+++ b/vcl/unx/source/app/keysymnames.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,16 +40,16 @@
#include <sal/macros.h>
#if !defined (SunXK_Undo)
-#define SunXK_Undo 0x0000FF65 // XK_Undo
-#define SunXK_Again 0x0000FF66 // XK_Redo
-#define SunXK_Find 0x0000FF68 // XK_Find
-#define SunXK_Stop 0x0000FF69 // XK_Cancel
-#define SunXK_Props 0x1005FF70
-#define SunXK_Front 0x1005FF71
-#define SunXK_Copy 0x1005FF72
-#define SunXK_Open 0x1005FF73
-#define SunXK_Paste 0x1005FF74
-#define SunXK_Cut 0x1005FF75
+#define SunXK_Undo 0x0000FF65 // XK_Undo
+#define SunXK_Again 0x0000FF66 // XK_Redo
+#define SunXK_Find 0x0000FF68 // XK_Find
+#define SunXK_Stop 0x0000FF69 // XK_Cancel
+#define SunXK_Props 0x1005FF70
+#define SunXK_Front 0x1005FF71
+#define SunXK_Copy 0x1005FF72
+#define SunXK_Open 0x1005FF73
+#define SunXK_Paste 0x1005FF74
+#define SunXK_Cut 0x1005FF75
#endif
#ifdef SOLARIS
@@ -70,17 +70,17 @@ namespace vcl_sal {
struct KeysymNameReplacement
{
- KeySym aSymbol;
- const char* pName;
+ KeySym aSymbol;
+ const char* pName;
};
struct KeyboardReplacements
{
- const char* pKeyboardName;
- const KeysymNameReplacement* pReplacements;
- int nReplacements;
+ const char* pKeyboardName;
+ const KeysymNameReplacement* pReplacements;
+ int nReplacements;
};
-
+
// ====================================================================
//
// CAUTION CAUTION CAUTION
@@ -93,7 +93,7 @@ namespace vcl_sal {
{
{ XK_Control_L, "Ctrl" },
{ XK_Control_R, "Ctrl" },
- { XK_Escape, "Esc" },
+ { XK_Escape, "Esc" },
{ XK_space, "Space" },
{ XK_minus, "-" },
{ XK_plus, "+" }
@@ -107,7 +107,7 @@ namespace vcl_sal {
{ XK_Left, "Sol" },
{ XK_Up, "Yukarı" },
{ XK_Down, "Aşağı" },
- { XK_space, "BoÅŸluk" }
+ { XK_space, "BoÅŸluk" }
};
static const struct KeysymNameReplacement aImplReplacements_Russian[] =
@@ -116,7 +116,7 @@ namespace vcl_sal {
{ XK_Left, "Влево" },
{ XK_Up, "Вверх" },
{ XK_Down, "Вниз" },
- { XK_space, "Пробел" }
+ { XK_space, "Пробел" }
};
static const struct KeysymNameReplacement aImplReplacements_German[] =
@@ -450,7 +450,7 @@ namespace vcl_sal {
#ifdef SOLARIS
typedef struct {
- int n_layout;
+ int n_layout;
const char* p_description;
} keyboard_layout;
diff --git a/vcl/unx/source/app/randrwrapper.cxx b/vcl/unx/source/app/randrwrapper.cxx
index eb266485ce03..ef4f5de9b583 100644
--- a/vcl/unx/source/app/randrwrapper.cxx
+++ b/vcl/unx/source/app/randrwrapper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,7 +43,7 @@ namespace
class RandRWrapper
{
oslModule m_pRandRLib;
-
+
// function pointers
Bool(*m_pXRRQueryExtension)(Display*,int*,int*);
Status(*m_pXRRQueryVersion)(Display*,int*,int*);
@@ -55,17 +55,17 @@ class RandRWrapper
XRRScreenSize*(*m_pXRRConfigSizes)(XRRScreenConfiguration*,int*);
SizeID(*m_pXRRConfigCurrentConfiguration)(XRRScreenConfiguration*,Rotation*);
int(*m_pXRRRootToScreen)(Display*, XLIB_Window);
-
+
bool m_bValid;
-
+
void initFromModule();
-
+
RandRWrapper(Display*);
~RandRWrapper();
public:
static RandRWrapper& get(Display*);
static void releaseWrapper();
-
+
Bool XRRQueryExtension(Display* i_pDisp, int* o_event_base, int* o_error_base )
{
Bool bRet = False;
@@ -125,7 +125,7 @@ void RandRWrapper::initFromModule()
m_pXRRConfigSizes = (XRRScreenSize*(*)(XRRScreenConfiguration*,int*))osl_getAsciiFunctionSymbol( m_pRandRLib, "XRRConfigSizes" );
m_pXRRConfigCurrentConfiguration = (SizeID(*)(XRRScreenConfiguration*,Rotation*))osl_getAsciiFunctionSymbol( m_pRandRLib, "XRRConfigCurrentConfiguration" );
m_pXRRRootToScreen = (int(*)(Display*,XLIB_Window))osl_getAsciiFunctionSymbol( m_pRandRLib, "XRRRootToScreen" );
-
+
m_bValid = m_pXRRQueryExtension &&
m_pXRRQueryVersion &&
m_pXRRGetScreenInfo &&
@@ -201,12 +201,12 @@ void RandRWrapper::releaseWrapper()
class RandRWrapper
{
bool m_bValid;
-
+
RandRWrapper(Display*);
public:
static RandRWrapper& get(Display*);
static void releaseWrapper();
-
+
Bool XRRQueryExtension(Display* i_pDisp, int* o_event_base, int* o_error_base )
{
Bool bRet = False;
@@ -282,7 +282,7 @@ void RandRWrapper::releaseWrapper()
} // namespace
#endif
-
+
#include "saldisp.hxx"
#include "salframe.h"
#if OSL_DEBUG_LEVEL > 1
@@ -306,7 +306,7 @@ void SalDisplay::DeInitRandR()
RandRWrapper::releaseWrapper();
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "SalDisplay::DeInitRandR()\n" );
-#endif
+#endif
#endif
}
@@ -331,18 +331,18 @@ int SalDisplay::processRandREvent( XEvent* pEvent )
int nSizes = 0;
Rotation nRot = 0;
SizeID nId = 0;
-
+
pConfig = pWrapper->XRRGetScreenInfo( GetDisplay(), m_aScreens[i].m_aRoot );
nId = pWrapper->XRRConfigCurrentConfiguration( pConfig, &nRot );
pSizes = pWrapper->XRRConfigSizes( pConfig, &nSizes );
XRRScreenSize *pTargetSize = pSizes + nId;
-
+
bNotify = bNotify ||
m_aScreens[i].m_aSize.Width() != pTargetSize->width ||
m_aScreens[i].m_aSize.Height() != pTargetSize->height;
-
+
m_aScreens[i].m_aSize = Size( pTargetSize->width, pTargetSize->height );
-
+
pWrapper->XRRFreeScreenConfigInfo( pConfig );
#if OSL_DEBUG_LEVEL > 1
diff --git a/vcl/unx/source/app/saldata.cxx b/vcl/unx/source/app/saldata.cxx
index d0d6d5547f12..38408441fd70 100644
--- a/vcl/unx/source/app/saldata.cxx
+++ b/vcl/unx/source/app/saldata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
static const struct timeval noyield__ = { 0, 0 };
-static const struct timeval yield__ = { 0, 10000 };
+static const struct timeval yield__ = { 0, 10000 };
static const char* XRequest[] = {
// see /usr/lib/X11/XErrorDB, /usr/openwin/lib/XErrorDB ...
@@ -235,7 +235,7 @@ int X11SalData::XErrorHdl( Display *pDisplay, XErrorEvent *pEvent )
}
int X11SalData::XIOErrorHdl( Display * )
-{
+{
/* #106197# hack: until a real shutdown procedure exists
* _exit ASAP
*/
@@ -264,14 +264,14 @@ int X11SalData::XIOErrorHdl( Display * )
X11SalData::X11SalData()
{
- bNoExceptions_ = !!getenv( "SAL_NOSEGV" );
+ bNoExceptions_ = !!getenv( "SAL_NOSEGV" );
- pXLib_ = NULL;
- m_pSalDisplay = NULL;
- m_pInstance = NULL;
- m_pPlugin = NULL;
+ pXLib_ = NULL;
+ m_pSalDisplay = NULL;
+ m_pInstance = NULL;
+ m_pPlugin = NULL;
- hMainThread_ = pthread_self();
+ hMainThread_ = pthread_self();
}
const rtl::OUString& X11SalData::GetLocalHostName()
@@ -289,9 +289,9 @@ X11SalData::~X11SalData()
void X11SalData::DeleteDisplay()
{
delete m_pSalDisplay;
- m_pSalDisplay = NULL;
+ m_pSalDisplay = NULL;
delete pXLib_;
- pXLib_ = NULL;
+ pXLib_ = NULL;
}
void X11SalData::Init()
@@ -312,11 +312,11 @@ void X11SalData::deInitNWF( void )
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
SalXLib::SalXLib()
{
- m_aTimeout.tv_sec = 0;
- m_aTimeout.tv_usec = 0;
- m_nTimeoutMS = 0;
+ m_aTimeout.tv_sec = 0;
+ m_aTimeout.tv_usec = 0;
+ m_nTimeoutMS = 0;
- nFDs_ = 0;
+ nFDs_ = 0;
FD_ZERO( &aReadFDS_ );
FD_ZERO( &aExceptionFDS_ );
@@ -355,8 +355,8 @@ SalXLib::SalXLib()
nFDs_ = m_pTimeoutFDS[0] + 1;
}
- m_bHaveSystemChildFrames = false;
- m_aOrigXIOErrorHandler = XSetIOErrorHandler ( (XIOErrorHandler)X11SalData::XIOErrorHdl );
+ m_bHaveSystemChildFrames = false;
+ m_aOrigXIOErrorHandler = XSetIOErrorHandler ( (XIOErrorHandler)X11SalData::XIOErrorHdl );
PushXErrorLevel( !!getenv( "SAL_IGNOREXERRORS" ) );
}
@@ -365,7 +365,7 @@ SalXLib::~SalXLib()
// close 'wakeup' pipe.
close (m_pTimeoutFDS[0]);
close (m_pTimeoutFDS[1]);
-
+
PopXErrorLevel();
XSetIOErrorHandler (m_aOrigXIOErrorHandler);
}
@@ -453,9 +453,9 @@ void SalXLib::Init()
aProgramSystemPath,
osl_getThreadTextEncoding() );
std::fprintf( stderr, "%s X11 error: Can't open display: %s\n",
- aProgramName.getStr(), aDisplay.getStr());
- std::fprintf( stderr, " Set DISPLAY environment variable, use -display option\n");
- std::fprintf( stderr, " or check permissions of your X-Server\n");
+ aProgramName.getStr(), aDisplay.getStr());
+ std::fprintf( stderr, " Set DISPLAY environment variable, use -display option\n");
+ std::fprintf( stderr, " or check permissions of your X-Server\n");
std::fprintf( stderr, " (See \"man X\" resp. \"man xhost\" for details)\n");
std::fflush( stderr );
exit(0);
@@ -523,7 +523,7 @@ static void PrintXError( Display *pDisplay, XErrorEvent *pEvent )
std::fprintf( stderr, "These errors are reported asynchronously,\n");
std::fprintf( stderr, "set environment variable SAL_SYNCHRONIZE to 1 to help debugging\n");
}
-
+
std::fflush( stdout );
std::fflush( stderr );
}
@@ -567,13 +567,13 @@ void SalXLib::XError( Display *pDisplay, XErrorEvent *pEvent )
oslSignalAction eToDo = osl_raiseSignal (OSL_SIGNAL_USER_X11SUBSYSTEMERROR, NULL);
switch (eToDo)
{
- case osl_Signal_ActIgnore :
+ case osl_Signal_ActIgnore :
return;
- case osl_Signal_ActAbortApp :
+ case osl_Signal_ActAbortApp :
abort();
- case osl_Signal_ActKillApp :
+ case osl_Signal_ActKillApp :
exit(0);
- case osl_Signal_ActCallNextHdl :
+ case osl_Signal_ActCallNextHdl :
break;
default :
break;
@@ -586,16 +586,16 @@ void SalXLib::XError( Display *pDisplay, XErrorEvent *pEvent )
struct YieldEntry
{
- YieldEntry* next; // pointer to next entry
- int fd; // file descriptor for reading
- void* data; // data for predicate and callback
- YieldFunc pending; // predicate (determins pending events)
- YieldFunc queued; // read and queue up events
- YieldFunc handle; // handle pending events
-
- inline int HasPendingEvent() const { return pending( fd, data ); }
- inline int IsEventQueued() const { return queued( fd, data ); }
- inline void HandleNextEvent() const { handle( fd, data ); }
+ YieldEntry* next; // pointer to next entry
+ int fd; // file descriptor for reading
+ void* data; // data for predicate and callback
+ YieldFunc pending; // predicate (determins pending events)
+ YieldFunc queued; // read and queue up events
+ YieldFunc handle; // handle pending events
+
+ inline int HasPendingEvent() const { return pending( fd, data ); }
+ inline int IsEventQueued() const { return queued( fd, data ); }
+ inline void HandleNextEvent() const { handle( fd, data ); }
};
#define MAX_NUM_DESCRIPTORS 128
@@ -603,18 +603,18 @@ struct YieldEntry
static YieldEntry yieldTable[ MAX_NUM_DESCRIPTORS ];
void SalXLib::Insert( int nFD, void* data,
- YieldFunc pending,
- YieldFunc queued,
- YieldFunc handle )
+ YieldFunc pending,
+ YieldFunc queued,
+ YieldFunc handle )
{
DBG_ASSERT( nFD, "can not insert stdin descriptor" );
DBG_ASSERT( !yieldTable[nFD].fd, "SalXLib::Insert fd twice" );
- yieldTable[nFD].fd = nFD;
- yieldTable[nFD].data = data;
+ yieldTable[nFD].fd = nFD;
+ yieldTable[nFD].data = data;
yieldTable[nFD].pending = pending;
- yieldTable[nFD].queued = queued;
- yieldTable[nFD].handle = handle;
+ yieldTable[nFD].queued = queued;
+ yieldTable[nFD].handle = handle;
FD_SET( nFD, &aReadFDS_ );
FD_SET( nFD, &aExceptionFDS_ );
@@ -689,7 +689,7 @@ void SalXLib::Yield( bool bWait, bool bHandleAllCurrentEvents )
// #63862# da jetzt alle user-events ueber die interne
// queue kommen, wird die Kontrolle analog zum select
// gesteuerten Zweig einmal bei bWait abgegeben
-
+
/* #i9277# do not reschedule since performance gets down the
the drain under heavy load
YieldMutexReleaser aReleaser;
@@ -866,7 +866,7 @@ rtl::OString X11SalData::getFrameResName( SalExtStyle nStyle )
aBuf.append( getFrameResName() );
if( (nStyle & SAL_FRAME_EXT_STYLE_DOCUMENT) )
aBuf.append( ".DocumentWindow" );
-
+
return aBuf.makeStringAndClear();
}
diff --git a/vcl/unx/source/app/saldisp.cxx b/vcl/unx/source/app/saldisp.cxx
index f2eecf0d9cbd..69ab594ec387 100644
--- a/vcl/unx/source/app/saldisp.cxx
+++ b/vcl/unx/source/app/saldisp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -296,26 +296,26 @@ sal_IsLocalDisplay( Display *pDisplay )
return sal_IsDisplayNumber( pDisplayString + 1 );
// check for fixed token which all mean localhost:x.y
- const char pLocal[] = "localhost:";
- const int nLocalLen = sizeof(pLocal) - 1;
+ const char pLocal[] = "localhost:";
+ const int nLocalLen = sizeof(pLocal) - 1;
if ( strncmp(pDisplayString, pLocal, nLocalLen) == 0 )
return sal_IsDisplayNumber( pDisplayString + nLocalLen );
- const char pUnix[] = "unix:";
- const int nUnixLen = sizeof(pUnix) - 1;
- if ( strncmp(pDisplayString, pUnix, nUnixLen) == 0 )
+ const char pUnix[] = "unix:";
+ const int nUnixLen = sizeof(pUnix) - 1;
+ if ( strncmp(pDisplayString, pUnix, nUnixLen) == 0 )
return sal_IsDisplayNumber( pDisplayString + nUnixLen );
const char pLoopback[] = "127.0.0.1:";
const int nLoopbackLen= sizeof(pLoopback) - 1;
- if ( strncmp(pDisplayString, pLoopback, nLoopbackLen) == 0 )
+ if ( strncmp(pDisplayString, pLoopback, nLoopbackLen) == 0 )
return sal_IsDisplayNumber( pDisplayString + nLoopbackLen );
// compare local hostname to displaystring, both may be ip address or
// hostname
BOOL bEqual = FALSE;
- char *pDisplayHost = strdup( pDisplayString );
- char *pPtr = strrchr( pDisplayHost, ':' );
+ char *pDisplayHost = strdup( pDisplayString );
+ char *pPtr = strrchr( pDisplayHost, ':' );
if( pPtr != NULL )
{
@@ -353,25 +353,25 @@ extern "C" srv_vendor_t
sal_GetServerVendor( Display *p_display )
{
typedef struct {
- srv_vendor_t e_vendor; // vendor as enum
- const char *p_name; // vendor name as returned by VendorString()
- unsigned int n_len; // number of chars to compare
+ srv_vendor_t e_vendor; // vendor as enum
+ const char *p_name; // vendor name as returned by VendorString()
+ unsigned int n_len; // number of chars to compare
} vendor_t;
const vendor_t p_vendorlist[] = {
- { vendor_xfree, "The XFree86 Project, Inc", 13 },
- { vendor_sun, "Sun Microsystems, Inc.", 10 },
- { vendor_attachmate, "Attachmate Corporation", 10 },
+ { vendor_xfree, "The XFree86 Project, Inc", 13 },
+ { vendor_sun, "Sun Microsystems, Inc.", 10 },
+ { vendor_attachmate, "Attachmate Corporation", 10 },
{ vendor_excursion,
"DECWINDOWS DigitalEquipmentCorporation, eXcursion", 42 },
- { vendor_hp, "Hewlett-Packard Company", 17 },
+ { vendor_hp, "Hewlett-Packard Company", 17 },
{ vendor_hummingbird, "Hummingbird Communications Ltd.", 11 },
{ vendor_ibm, "International Business Machines", 24 },
{ vendor_sgi, "Silicon Graphics", 9 },
- { vendor_sco, "The Santa Cruz Operation", 16 },
- { vendor_xinside, "X Inside Inc.", 10 },
+ { vendor_sco, "The Santa Cruz Operation", 16 },
+ { vendor_xinside, "X Inside Inc.", 10 },
// allways the last entry: vendor_none to indicate eol
- { vendor_none, NULL, 0 },
+ { vendor_none, NULL, 0 },
};
#ifdef _USE_PRINT_EXTENSION_
@@ -687,8 +687,8 @@ void SalDisplay::initScreen( int nScreen ) const
rSD.m_bInit = true;
XVisualInfo aVI;
- Colormap aColMap;
-
+ Colormap aColMap;
+
if( SalDisplay::BestVisual( pDisp_, nScreen, aVI ) ) // DefaultVisual
aColMap = DefaultColormap( pDisp_, nScreen );
else
@@ -703,7 +703,7 @@ void SalDisplay::initScreen( int nScreen ) const
rSD.m_aRoot = RootWindow( pDisp_, nScreen );
rSD.m_aVisual = SalVisual( &aVI );
rSD.m_aColormap = SalColormap( this, aColMap, nScreen );
-
+
// we're interested in configure notification of root windows
InitRandR( rSD.m_aRoot );
@@ -746,9 +746,9 @@ void SalDisplay::initScreen( int nScreen ) const
XGCValues values;
values.graphics_exposures = False;
values.fill_style = FillOpaqueStippled;
- values.background = (1<<rSD.m_aVisual.GetDepth())-1;
- values.foreground = 0;
-
+ values.background = (1<<rSD.m_aVisual.GetDepth())-1;
+ values.foreground = 0;
+
rSD.m_aCopyGC = XCreateGC( pDisp_,
rSD.m_aRefWindow,
GCGraphicsExposures
@@ -780,13 +780,13 @@ void SalDisplay::initScreen( int nScreen ) const
| GCForeground
| GCBackground,
&values );
-
+
XSetFunction( pDisp_, rSD.m_aAndInvertedGC, GXandInverted );
XSetFunction( pDisp_, rSD.m_aAndGC, GXand );
// #44556# PowerPC Solaris 2.5 (XSun 3500) Bug: GXor = GXnop
//XSetFunction( pDisp_, pOrGC_, GXor );
XSetFunction( pDisp_, rSD.m_aOrGC, GXxor );
-
+
if( 1 == rSD.m_aVisual.GetDepth() )
{
XSetFunction( pDisp_, rSD.m_aCopyGC, GXcopyInverted );
@@ -819,11 +819,11 @@ void SalDisplay::Init()
nProperties_ = PROPERTY_DEFAULT;
hEventGuard_ = NULL;
m_pFontCache = NULL;
- mpFontList = (XlfdStorage*)NULL;
- mpFactory = (AttributeProvider*)NULL;
- m_pCapture = NULL;
- m_bXinerama = false;
-
+ mpFontList = (XlfdStorage*)NULL;
+ mpFactory = (AttributeProvider*)NULL;
+ m_pCapture = NULL;
+ m_bXinerama = false;
+
int nDisplayScreens = ScreenCount( pDisp_ );
m_aScreens = std::vector<ScreenData>(nDisplayScreens);
@@ -859,9 +859,9 @@ void SalDisplay::Init()
X11SalBitmap::ImplCreateCache();
hEventGuard_ = osl_createMutex();
- bLocal_ = FALSE; /* dont care, initialize later by
+ bLocal_ = FALSE; /* dont care, initialize later by
calling SalDisplay::IsLocal() */
- mbLocalIsValid = FALSE; /* bLocal_ is not yet initialized */
+ mbLocalIsValid = FALSE; /* bLocal_ is not yet initialized */
// - - - - - - - - - - Synchronize - - - - - - - - - - - - -
if( getenv( "SAL_SYNCHRONIZE" ) )
@@ -1115,7 +1115,7 @@ USHORT SalDisplay::GetIndicatorState() const
String SalDisplay::GetKeyNameFromKeySym( KeySym nKeySym ) const
{
String aRet;
-
+
// return an empty string for keysyms that are not bound to
// any key code
XLIB_KeyCode aKeyCode = XKeysymToKeycode( GetDisplay(), nKeySym );
@@ -1159,7 +1159,7 @@ void SalDisplay::ModifierMapping()
nMod1KeySym_ = sal_XModifier2Keysym( pDisp_, pXModMap, Mod1MapIndex );
// Auf Sun-Servern und SCO-Severn beruecksichtigt XLookupString
// nicht den NumLock Modifier.
- if( (GetServerVendor() == vendor_sun)
+ if( (GetServerVendor() == vendor_sun)
|| (GetServerVendor() == vendor_sco) )
{
XLIB_KeyCode aNumLock = XKeysymToKeycode( pDisp_, XK_Num_Lock );
@@ -1259,13 +1259,13 @@ XubString SalDisplay::GetKeyName( USHORT nKeyCode ) const
break;
#if !defined (SunXK_Undo)
- #define SunXK_Stop 0x0000FF69 // XK_Cancel
- #define SunXK_Props 0x1005FF70
- #define SunXK_Front 0x1005FF71
- #define SunXK_Copy 0x1005FF72
- #define SunXK_Open 0x1005FF73
- #define SunXK_Paste 0x1005FF74
- #define SunXK_Cut 0x1005FF75
+ #define SunXK_Stop 0x0000FF69 // XK_Cancel
+ #define SunXK_Props 0x1005FF70
+ #define SunXK_Front 0x1005FF71
+ #define SunXK_Copy 0x1005FF72
+ #define SunXK_Open 0x1005FF73
+ #define SunXK_Paste 0x1005FF74
+ #define SunXK_Cut 0x1005FF75
#endif
case KEY_REPEAT:
@@ -1772,8 +1772,8 @@ KeySym SalDisplay::GetKeySym( XKeyEvent *pEvent,
unsigned char *pPrintable,
int *pLen,
KeySym *pUnmodifiedKeySym,
- Status *pStatusReturn,
- XIC aInputContext ) const
+ Status *pStatusReturn,
+ XIC aInputContext ) const
{
KeySym nKeySym = 0;
memset( pPrintable, 0, *pLen );
@@ -2324,9 +2324,9 @@ bool SalDisplay::DispatchInternalEvent()
{
if( m_aUserEvents.begin() != m_aUserEvents.end() )
{
- pFrame = m_aUserEvents.front().m_pFrame;
- pData = m_aUserEvents.front().m_pData;
- nEvent = m_aUserEvents.front().m_nEvent;
+ pFrame = m_aUserEvents.front().m_pFrame;
+ pData = m_aUserEvents.front().m_pData;
+ nEvent = m_aUserEvents.front().m_nEvent;
m_aUserEvents.pop_front();
}
@@ -2469,7 +2469,7 @@ long SalX11Display::Dispatch( XEvent *pEvent )
return pFrame->Dispatch( pEvent );
}
}
-
+
// dispatch to salobjects
X11SalObject::Dispatch( pEvent );
@@ -2887,9 +2887,9 @@ SalVisual::SalVisual( const XVisualInfo* pXVI )
nGreenShift_ = sal_Shift( green_mask );
nBlueShift_ = sal_Shift( blue_mask );
- nRedBits_ = sal_significantBits( red_mask );
- nGreenBits_ = sal_significantBits( green_mask );
- nBlueBits_ = sal_significantBits( blue_mask );
+ nRedBits_ = sal_significantBits( red_mask );
+ nGreenBits_ = sal_significantBits( green_mask );
+ nBlueBits_ = sal_significantBits( blue_mask );
if( GetDepth() == 24 )
if( red_mask == 0xFF0000 )
diff --git a/vcl/unx/source/app/salinst.cxx b/vcl/unx/source/app/salinst.cxx
index 57f8d891a8a6..4f0d67963378 100644
--- a/vcl/unx/source/app/salinst.cxx
+++ b/vcl/unx/source/app/salinst.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,8 +60,8 @@
SalYieldMutex::SalYieldMutex()
{
- mnCount = 0;
- mnThreadId = 0;
+ mnCount = 0;
+ mnThreadId = 0;
::tools::SolarMutex::SetSolarMutex( this );
}
@@ -151,8 +151,8 @@ X11SalInstance::~X11SalInstance()
struct PredicateReturn
{
- USHORT nType;
- BOOL bRet;
+ USHORT nType;
+ BOOL bRet;
};
extern "C" {
@@ -209,10 +209,10 @@ bool X11SalInstance::AnyInput(USHORT nType)
else if (XPending(pDisplay) )
{
PredicateReturn aInput;
- XEvent aEvent;
+ XEvent aEvent;
- aInput.bRet = FALSE;
- aInput.nType = nType;
+ aInput.bRet = FALSE;
+ aInput.nType = nType;
XCheckIfEvent(pDisplay, &aEvent, ImplPredicateEvent,
(char *)&aInput );
@@ -267,8 +267,8 @@ void X11SalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
void* X11SalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes )
{
static const char* pDisplay = getenv( "DISPLAY" );
- rReturnedType = AsciiCString;
- rReturnedBytes = pDisplay ? strlen( pDisplay )+1 : 1;
+ rReturnedType = AsciiCString;
+ rReturnedBytes = pDisplay ? strlen( pDisplay )+1 : 1;
return pDisplay ? (void*)pDisplay : (void*)"";
}
@@ -344,14 +344,14 @@ static void getServerDirectories( std::list< rtl::OString >& o_rFontPaths )
void X11SalInstance::FillFontPathList( std::list< rtl::OString >& o_rFontPaths )
{
Display *pDisplay = GetX11SalData()->GetDisplay()->GetDisplay();
-
+
DBG_ASSERT( pDisplay, "No Display !" );
if( pDisplay )
{
// get font paths to look for fonts
int nPaths = 0, i;
char** pPaths = XGetFontPath( pDisplay, &nPaths );
-
+
bool bServerDirs = false;
for( i = 0; i < nPaths; i++ )
{
@@ -370,33 +370,33 @@ void X11SalInstance::FillFontPathList( std::list< rtl::OString >& o_rFontPaths )
o_rFontPaths.push_back( aPath );
}
}
-
+
if( nPaths )
XFreeFontPath( pPaths );
}
-
+
// insert some standard directories
o_rFontPaths.push_back( "/usr/openwin/lib/X11/fonts/TrueType" );
o_rFontPaths.push_back( "/usr/openwin/lib/X11/fonts/Type1" );
o_rFontPaths.push_back( "/usr/openwin/lib/X11/fonts/Type1/sun" );
o_rFontPaths.push_back( "/usr/X11R6/lib/X11/fonts/truetype" );
o_rFontPaths.push_back( "/usr/X11R6/lib/X11/fonts/Type1" );
-
+
#ifdef SOLARIS
/* cde specials, from /usr/dt/bin/Xsession: here are the good fonts,
the OWfontpath file may contain as well multiple lines as a comma
separated list of fonts in each line. to make it even more weird
environment variables are allowed as well */
-
+
const char* lang = getenv("LANG");
if ( lang != NULL )
{
String aOpenWinDir( String::CreateFromAscii( "/usr/openwin/lib/locale/" ) );
aOpenWinDir.AppendAscii( lang );
aOpenWinDir.AppendAscii( "/OWfontpath" );
-
+
SvFileStream aStream( aOpenWinDir, STREAM_READ );
-
+
// TODO: replace environment variables
while( aStream.IsOpen() && ! aStream.IsEof() )
{
diff --git a/vcl/unx/source/app/salsys.cxx b/vcl/unx/source/app/salsys.cxx
index 8024e35cdb12..25a72159a663 100644
--- a/vcl/unx/source/app/salsys.cxx
+++ b/vcl/unx/source/app/salsys.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ Rectangle X11SalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
const SalDisplay::ScreenData& rScreen = pSalDisp->getDataForScreen( nScreen );
aRet = Rectangle( Point( 0, 0 ), rScreen.m_aSize );
}
-
+
return aRet;
}
@@ -160,7 +160,7 @@ int X11SalSystem::ShowNativeDialog( const String& rTitle, const String& rMessage
nButton++;
}
aWarn.SetFocusButton( (USHORT)nDefButton+1 );
-
+
nRet = ((int)aWarn.Execute()) - 1;
// normalize behaviour, actually this should never happen
diff --git a/vcl/unx/source/app/saltimer.cxx b/vcl/unx/source/app/saltimer.cxx
index b02ced3a6411..382cadf3de12 100644
--- a/vcl/unx/source/app/saltimer.cxx
+++ b/vcl/unx/source/app/saltimer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,9 +54,9 @@ void X11SalData::Timeout() const
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
void SalXLib::StopTimer()
{
- m_aTimeout.tv_sec = 0;
- m_aTimeout.tv_usec = 0;
- m_nTimeoutMS = 0;
+ m_aTimeout.tv_sec = 0;
+ m_aTimeout.tv_usec = 0;
+ m_nTimeoutMS = 0;
}
void SalXLib::StartTimer( ULONG nMS )
diff --git a/vcl/unx/source/app/sm.cxx b/vcl/unx/source/app/sm.cxx
index e7eeaa3cd5ee..c10e5f6573a7 100644
--- a/vcl/unx/source/app/sm.cxx
+++ b/vcl/unx/source/app/sm.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -140,7 +140,7 @@ void IceSalSession::handleOldX11SaveYourself( SalFrame* pFrame )
if( pOneInstance )
{
SalSessionSaveRequestEvent aEvent( true, false );
- pOneInstance->CallCallback( &aEvent );
+ pOneInstance->CallCallback( &aEvent );
}
}
}
@@ -174,15 +174,15 @@ public:
};
-SmcConn SessionManagerClient::aSmcConnection = NULL;
-ByteString SessionManagerClient::aClientID;
-BOOL ICEConnectionObserver::bIsWatching = FALSE;
-struct pollfd* ICEConnectionObserver::pFilehandles = NULL;
-IceConn* ICEConnectionObserver::pConnections = NULL;
-int ICEConnectionObserver::nConnections = 0;
-oslMutex ICEConnectionObserver::ICEMutex = NULL;
-oslThread ICEConnectionObserver::ICEThread = NULL;
-int ICEConnectionObserver::nWakeupFiles[2] = { 0, 0 };
+SmcConn SessionManagerClient::aSmcConnection = NULL;
+ByteString SessionManagerClient::aClientID;
+BOOL ICEConnectionObserver::bIsWatching = FALSE;
+struct pollfd* ICEConnectionObserver::pFilehandles = NULL;
+IceConn* ICEConnectionObserver::pConnections = NULL;
+int ICEConnectionObserver::nConnections = 0;
+oslMutex ICEConnectionObserver::ICEMutex = NULL;
+oslThread ICEConnectionObserver::ICEThread = NULL;
+int ICEConnectionObserver::nWakeupFiles[2] = { 0, 0 };
#ifdef USE_SM_EXTENSION
IceIOErrorHandler ICEConnectionObserver::origIOErrorHandler = NULL;
@@ -201,9 +201,9 @@ static void IgnoreIceIOErrors(IceConn)
bool SessionManagerClient::bDocSaveDone = false;
-static SmProp* pSmProps = NULL;
-static SmProp** ppSmProps = NULL;
-static int nSmProps = 0;
+static SmProp* pSmProps = NULL;
+static SmProp** ppSmProps = NULL;
+static int nSmProps = 0;
static unsigned char *pSmRestartHint = NULL;
@@ -216,33 +216,33 @@ static void BuildSmPropertyList()
nSmProps = 5;
pSmProps = new SmProp[ nSmProps ];
- pSmProps[ 0 ].name = const_cast<char*>(SmCloneCommand);
- pSmProps[ 0 ].type = const_cast<char*>(SmLISTofARRAY8);
- pSmProps[ 0 ].num_vals = 1;
- pSmProps[ 0 ].vals = new SmPropValue;
- pSmProps[ 0 ].vals->length = aExec.Len()+1;
- pSmProps[ 0 ].vals->value = strdup( aExec.GetBuffer() );
-
- pSmProps[ 1 ].name = const_cast<char*>(SmProgram);
- pSmProps[ 1 ].type = const_cast<char*>(SmARRAY8);
- pSmProps[ 1 ].num_vals = 1;
- pSmProps[ 1 ].vals = new SmPropValue;
- pSmProps[ 1 ].vals->length = aExec.Len()+1;
- pSmProps[ 1 ].vals->value = strdup( aExec.GetBuffer() );
-
- pSmProps[ 2 ].name = const_cast<char*>(SmRestartCommand);
- pSmProps[ 2 ].type = const_cast<char*>(SmLISTofARRAY8);
- pSmProps[ 2 ].num_vals = 3;
- pSmProps[ 2 ].vals = new SmPropValue[3];
- pSmProps[ 2 ].vals[0].length = aExec.Len()+1;
- pSmProps[ 2 ].vals[0].value = strdup( aExec.GetBuffer() );
+ pSmProps[ 0 ].name = const_cast<char*>(SmCloneCommand);
+ pSmProps[ 0 ].type = const_cast<char*>(SmLISTofARRAY8);
+ pSmProps[ 0 ].num_vals = 1;
+ pSmProps[ 0 ].vals = new SmPropValue;
+ pSmProps[ 0 ].vals->length = aExec.Len()+1;
+ pSmProps[ 0 ].vals->value = strdup( aExec.GetBuffer() );
+
+ pSmProps[ 1 ].name = const_cast<char*>(SmProgram);
+ pSmProps[ 1 ].type = const_cast<char*>(SmARRAY8);
+ pSmProps[ 1 ].num_vals = 1;
+ pSmProps[ 1 ].vals = new SmPropValue;
+ pSmProps[ 1 ].vals->length = aExec.Len()+1;
+ pSmProps[ 1 ].vals->value = strdup( aExec.GetBuffer() );
+
+ pSmProps[ 2 ].name = const_cast<char*>(SmRestartCommand);
+ pSmProps[ 2 ].type = const_cast<char*>(SmLISTofARRAY8);
+ pSmProps[ 2 ].num_vals = 3;
+ pSmProps[ 2 ].vals = new SmPropValue[3];
+ pSmProps[ 2 ].vals[0].length = aExec.Len()+1;
+ pSmProps[ 2 ].vals[0].value = strdup( aExec.GetBuffer() );
ByteString aRestartOption( "-session=" );
aRestartOption.Append( SessionManagerClient::getSessionID() );
- pSmProps[ 2 ].vals[1].length = aRestartOption.Len()+1;
- pSmProps[ 2 ].vals[1].value = strdup( aRestartOption.GetBuffer() );
+ pSmProps[ 2 ].vals[1].length = aRestartOption.Len()+1;
+ pSmProps[ 2 ].vals[1].value = strdup( aRestartOption.GetBuffer() );
ByteString aRestartOptionNoLogo( "-nologo" );
- pSmProps[ 2 ].vals[2].length = aRestartOptionNoLogo.Len()+1;
- pSmProps[ 2 ].vals[2].value = strdup( aRestartOptionNoLogo.GetBuffer() );
+ pSmProps[ 2 ].vals[2].length = aRestartOptionNoLogo.Len()+1;
+ pSmProps[ 2 ].vals[2].value = strdup( aRestartOptionNoLogo.GetBuffer() );
rtl::OUString aUserName;
rtl::OString aUser;
@@ -254,21 +254,21 @@ static void BuildSmPropertyList()
osl_freeSecurityHandle( aSec );
}
- pSmProps[ 3 ].name = const_cast<char*>(SmUserID);
- pSmProps[ 3 ].type = const_cast<char*>(SmARRAY8);
- pSmProps[ 3 ].num_vals = 1;
- pSmProps[ 3 ].vals = new SmPropValue;
- pSmProps[ 3 ].vals->value = strdup( aUser.getStr() );
- pSmProps[ 3 ].vals->length = strlen( (char *)pSmProps[ 3 ].vals->value )+1;
-
- pSmProps[ 4 ].name = const_cast<char*>(SmRestartStyleHint);
- pSmProps[ 4 ].type = const_cast<char*>(SmCARD8);
- pSmProps[ 4 ].num_vals = 1;
- pSmProps[ 4 ].vals = new SmPropValue;
- pSmProps[ 4 ].vals->value = malloc(1);
+ pSmProps[ 3 ].name = const_cast<char*>(SmUserID);
+ pSmProps[ 3 ].type = const_cast<char*>(SmARRAY8);
+ pSmProps[ 3 ].num_vals = 1;
+ pSmProps[ 3 ].vals = new SmPropValue;
+ pSmProps[ 3 ].vals->value = strdup( aUser.getStr() );
+ pSmProps[ 3 ].vals->length = strlen( (char *)pSmProps[ 3 ].vals->value )+1;
+
+ pSmProps[ 4 ].name = const_cast<char*>(SmRestartStyleHint);
+ pSmProps[ 4 ].type = const_cast<char*>(SmCARD8);
+ pSmProps[ 4 ].num_vals = 1;
+ pSmProps[ 4 ].vals = new SmPropValue;
+ pSmProps[ 4 ].vals->value = malloc(1);
pSmRestartHint = (unsigned char *)pSmProps[ 4 ].vals->value;
*pSmRestartHint = SmRestartIfRunning;
- pSmProps[ 4 ].vals->length = 1;
+ pSmProps[ 4 ].vals->length = 1;
ppSmProps = new SmProp*[ nSmProps ];
for( int i = 0; i < nSmProps; i++ )
@@ -292,8 +292,8 @@ IMPL_STATIC_LINK( SessionManagerClient, SaveYourselfHdl, void*, EMPTYARG )
/*
If we have no actual frames open, e.g. we launched a quickstarter,
and then shutdown all our frames leaving just a quickstarter running,
- then we don't want to launch an empty toplevel frame on the next
- start. (The job of scheduling the restart of the quick-starter is a
+ then we don't want to launch an empty toplevel frame on the next
+ start. (The job of scheduling the restart of the quick-starter is a
task of the quick-starter)
*/
*pSmRestartHint = SmRestartNever;
@@ -312,7 +312,7 @@ IMPL_STATIC_LINK( SessionManagerClient, SaveYourselfHdl, void*, EMPTYARG )
if( pOneInstance )
{
SalSessionSaveRequestEvent aEvent( pThis != 0, false );
- pOneInstance->CallCallback( &aEvent );
+ pOneInstance->CallCallback( &aEvent );
}
else
saveDone();
@@ -328,7 +328,7 @@ IMPL_STATIC_LINK_NOINSTANCE( SessionManagerClient, InteractionHdl, void*, EMPTYA
SalSessionInteractionEvent aEvent( true );
pOneInstance->CallCallback( &aEvent );
}
-
+
return 0;
}
@@ -340,7 +340,7 @@ IMPL_STATIC_LINK_NOINSTANCE( SessionManagerClient, ShutDownCancelHdl, void*, EMP
SalSessionShutdownCancelEvent aEvent;
pOneInstance->CallCallback( &aEvent );
}
-
+
return 0;
}
@@ -465,22 +465,22 @@ void SessionManagerClient::open()
char* pClientID = NULL;
const ByteString& rPrevId( getPreviousSessionID() );
- aCallbacks.save_yourself.callback = SaveYourselfProc;
- aCallbacks.save_yourself.client_data = NULL;
- aCallbacks.die.callback = DieProc;
- aCallbacks.die.client_data = NULL;
- aCallbacks.save_complete.callback = SaveCompleteProc;
- aCallbacks.save_complete.client_data = NULL;
- aCallbacks.shutdown_cancelled.callback = ShutdownCanceledProc;
- aCallbacks.shutdown_cancelled.client_data = NULL;
+ aCallbacks.save_yourself.callback = SaveYourselfProc;
+ aCallbacks.save_yourself.client_data = NULL;
+ aCallbacks.die.callback = DieProc;
+ aCallbacks.die.client_data = NULL;
+ aCallbacks.save_complete.callback = SaveCompleteProc;
+ aCallbacks.save_complete.client_data = NULL;
+ aCallbacks.shutdown_cancelled.callback = ShutdownCanceledProc;
+ aCallbacks.shutdown_cancelled.client_data = NULL;
aSmcConnection = SmcOpenConnection( NULL,
NULL,
SmProtoMajor,
SmProtoMinor,
- SmcSaveYourselfProcMask |
- SmcDieProcMask |
- SmcSaveCompleteProcMask |
- SmcShutdownCancelledProcMask ,
+ SmcSaveYourselfProcMask |
+ SmcDieProcMask |
+ SmcSaveCompleteProcMask |
+ SmcShutdownCancelledProcMask ,
&aCallbacks,
rPrevId.Len() ? const_cast<char*>(rPrevId.GetBuffer()) : NULL,
&pClientID,
@@ -564,7 +564,7 @@ String SessionManagerClient::getExecName()
rtl::OUString aExec, aSysExec;
osl_getExecutableFile( &aExec.pData );
osl_getSystemPathFromFileURL( aExec.pData, &aSysExec.pData );
-
+
int nPos = aSysExec.indexOf( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".bin")) );
if( nPos != -1 )
aSysExec = aSysExec.copy( 0, nPos );
@@ -725,16 +725,16 @@ void ICEConnectionObserver::ICEWatchProc(
nConnections++;
pConnections = (IceConn*)rtl_reallocateMemory( pConnections, sizeof( IceConn )*nConnections );
pFilehandles = (struct pollfd*)rtl_reallocateMemory( pFilehandles, sizeof( struct pollfd )*(nConnections+1) );
- pConnections[ nConnections-1 ] = connection;
- pFilehandles[ nConnections ].fd = fd;
- pFilehandles[ nConnections ].events = POLLIN;
+ pConnections[ nConnections-1 ] = connection;
+ pFilehandles[ nConnections ].fd = fd;
+ pFilehandles[ nConnections ].events = POLLIN;
if( nConnections == 1 )
{
if( ! pipe( nWakeupFiles ) )
{
int flags;
- pFilehandles[0].fd = nWakeupFiles[0];
- pFilehandles[0].events = POLLIN;
+ pFilehandles[0].fd = nWakeupFiles[0];
+ pFilehandles[0].events = POLLIN;
// set close-on-exec and nonblock descriptor flag.
if ((flags = fcntl (nWakeupFiles[0], F_GETFD)) != -1)
{
diff --git a/vcl/unx/source/app/soicon.cxx b/vcl/unx/source/app/soicon.cxx
index 21e4eabedfb8..600370037de3 100644
--- a/vcl/unx/source/app/soicon.cxx
+++ b/vcl/unx/source/app/soicon.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ BOOL SelectAppIconPixmap( SalDisplay *pDisplay, int nScreen,USHORT nIcon, USHORT
{
if( ! ImplGetResMgr() )
return FALSE;
-
+
USHORT nIconSizeOffset;
if( iconSize >= 48 )
@@ -69,7 +69,7 @@ BOOL SelectAppIconPixmap( SalDisplay *pDisplay, int nScreen,USHORT nIcon, USHORT
aRect.mnDestX = 0; aRect.mnDestY = 0;
aRect.mnDestWidth = iconSize; aRect.mnDestHeight = iconSize;
- X11SalBitmap *pBitmap = static_cast < X11SalBitmap * >
+ X11SalBitmap *pBitmap = static_cast < X11SalBitmap * >
(aIcon.ImplGetBitmapImpBitmap()->ImplGetSalBitmap());
icon_pixmap = XCreatePixmap( pDisplay->GetDisplay(),
@@ -88,7 +88,7 @@ BOOL SelectAppIconPixmap( SalDisplay *pDisplay, int nScreen,USHORT nIcon, USHORT
if( TRANSPARENT_BITMAP == aIcon.GetTransparentType() )
{
- icon_mask = XCreatePixmap( pDisplay->GetDisplay(),
+ icon_mask = XCreatePixmap( pDisplay->GetDisplay(),
pDisplay->GetRootWindow( pDisplay->GetDefaultScreenNumber() ),
iconSize, iconSize, 1);
@@ -102,13 +102,13 @@ BOOL SelectAppIconPixmap( SalDisplay *pDisplay, int nScreen,USHORT nIcon, USHORT
Bitmap aMask = aIcon.GetMask();
aMask.Invert();
- X11SalBitmap *pMask = static_cast < X11SalBitmap * >
+ X11SalBitmap *pMask = static_cast < X11SalBitmap * >
(aMask.ImplGetImpBitmap()->ImplGetSalBitmap());
pMask->ImplDraw(icon_mask, nScreen, 1, aRect, aMonoGC);
XFreeGC( pDisplay->GetDisplay(), aMonoGC );
}
-
+
return TRUE;
}
diff --git a/vcl/unx/source/app/wmadaptor.cxx b/vcl/unx/source/app/wmadaptor.cxx
index 955d7098192f..6338f24c7d03 100644
--- a/vcl/unx/source/app/wmadaptor.cxx
+++ b/vcl/unx/source/app/wmadaptor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -105,8 +105,8 @@ using namespace vcl_sal;
struct WMAdaptorProtocol
{
- const char* pProtocol;
- int nProtocol;
+ const char* pProtocol;
+ int nProtocol;
};
@@ -196,7 +196,7 @@ static int compareProtocol( const void* pLeft, const void* pRight )
WMAdaptor* WMAdaptor::createWMAdaptor( SalDisplay* pSalDisplay )
{
- WMAdaptor* pAdaptor = NULL;
+ WMAdaptor* pAdaptor = NULL;
// try a NetWM
pAdaptor = new NetWMAdaptor( pSalDisplay );
@@ -242,11 +242,11 @@ WMAdaptor::WMAdaptor( SalDisplay* pDisplay ) :
m_nWinGravity( StaticGravity ),
m_nInitWinGravity( StaticGravity )
{
- Atom aRealType = None;
- int nFormat = 8;
- unsigned long nItems = 0;
- unsigned long nBytesLeft = 0;
- unsigned char* pProperty = NULL;
+ Atom aRealType = None;
+ int nFormat = 8;
+ unsigned long nItems = 0;
+ unsigned long nBytesLeft = 0;
+ unsigned char* pProperty = NULL;
// default desktops
m_nDesktops = 1;
@@ -428,12 +428,12 @@ NetWMAdaptor::NetWMAdaptor( SalDisplay* pSalDisplay ) :
// currently all _NET WMs do transient like expected
m_bTransientBehaviour = true;
- Atom aRealType = None;
- int nFormat = 8;
- unsigned long nItems = 0;
- unsigned long nBytesLeft = 0;
- unsigned char* pProperty = NULL;
- bool bNetWM = false;
+ Atom aRealType = None;
+ int nFormat = 8;
+ unsigned long nItems = 0;
+ unsigned long nBytesLeft = 0;
+ unsigned char* pProperty = NULL;
+ bool bNetWM = false;
initAtoms();
@@ -487,7 +487,7 @@ NetWMAdaptor::NetWMAdaptor( SalDisplay* pSalDisplay ) :
// #i80971# protect against invalid atoms
if( pAtomNames[i] == NULL )
continue;
-
+
int nProtocol = -1;
WMAdaptorProtocol aSearch;
aSearch.pProtocol = pAtomNames[i];
@@ -622,18 +622,18 @@ GnomeWMAdaptor::GnomeWMAdaptor( SalDisplay* pSalDisplay ) :
// currently all Gnome WMs do transient like expected
m_bTransientBehaviour = true;
- Atom aRealType = None;
- int nFormat = 8;
- unsigned long nItems = 0;
- unsigned long nBytesLeft = 0;
- unsigned char* pProperty = NULL;
+ Atom aRealType = None;
+ int nFormat = 8;
+ unsigned long nItems = 0;
+ unsigned long nBytesLeft = 0;
+ unsigned char* pProperty = NULL;
initAtoms();
// check for GnomeWM
if( m_aWMAtoms[ WIN_SUPPORTING_WM_CHECK ] && m_aWMAtoms[ WIN_PROTOCOLS ] )
{
- XLIB_Window aWMChild = None;
+ XLIB_Window aWMChild = None;
if( XGetWindowProperty( m_pDisplay,
m_pSalDisplay->GetRootWindow( m_pSalDisplay->GetDefaultScreenNumber() ),
m_aWMAtoms[ WIN_SUPPORTING_WM_CHECK ],
@@ -743,7 +743,7 @@ GnomeWMAdaptor::GnomeWMAdaptor( SalDisplay* pSalDisplay ) :
// #i80971# protect against invalid atoms
if( pAtomNames[i] == NULL )
continue;
-
+
int nProtocol = -1;
WMAdaptorProtocol aSearch;
aSearch.pProtocol = pAtomNames[i];
@@ -827,16 +827,16 @@ GnomeWMAdaptor::~GnomeWMAdaptor()
*/
bool WMAdaptor::getNetWmName()
{
- Atom aRealType = None;
- int nFormat = 8;
- unsigned long nItems = 0;
- unsigned long nBytesLeft = 0;
- unsigned char* pProperty = NULL;
- bool bNetWM = false;
+ Atom aRealType = None;
+ int nFormat = 8;
+ unsigned long nItems = 0;
+ unsigned long nBytesLeft = 0;
+ unsigned char* pProperty = NULL;
+ bool bNetWM = false;
if( m_aWMAtoms[ NET_SUPPORTING_WM_CHECK ] && m_aWMAtoms[ NET_WM_NAME ] )
{
- XLIB_Window aWMChild = None;
+ XLIB_Window aWMChild = None;
if( XGetWindowProperty( m_pDisplay,
m_pSalDisplay->GetRootWindow( m_pSalDisplay->GetDefaultScreenNumber() ),
m_aWMAtoms[ NET_SUPPORTING_WM_CHECK ],
@@ -1009,8 +1009,8 @@ void WMAdaptor::initAtoms()
// get basic atoms
for( unsigned int i = 0; i < SAL_N_ELEMENTS( aAtomTab ); i++ )
m_aWMAtoms[ aAtomTab[i].nProtocol ] = XInternAtom( m_pDisplay, aAtomTab[i].pProtocol, False );
- m_aWMAtoms[ NET_SUPPORTING_WM_CHECK ] = XInternAtom( m_pDisplay, "_NET_SUPPORTING_WM_CHECK", True );
- m_aWMAtoms[ NET_WM_NAME ] = XInternAtom( m_pDisplay, "_NET_WM_NAME", True );
+ m_aWMAtoms[ NET_SUPPORTING_WM_CHECK ] = XInternAtom( m_pDisplay, "_NET_SUPPORTING_WM_CHECK", True );
+ m_aWMAtoms[ NET_WM_NAME ] = XInternAtom( m_pDisplay, "_NET_WM_NAME", True );
}
/*
@@ -1021,7 +1021,7 @@ void NetWMAdaptor::initAtoms()
{
WMAdaptor::initAtoms();
- m_aWMAtoms[ NET_SUPPORTED ] = XInternAtom( m_pDisplay, "_NET_SUPPORTED", True );
+ m_aWMAtoms[ NET_SUPPORTED ] = XInternAtom( m_pDisplay, "_NET_SUPPORTED", True );
}
/*
@@ -1032,8 +1032,8 @@ void GnomeWMAdaptor::initAtoms()
{
WMAdaptor::initAtoms();
- m_aWMAtoms[ WIN_PROTOCOLS ] = XInternAtom( m_pDisplay, "_WIN_PROTOCOLS", True );
- m_aWMAtoms[ WIN_SUPPORTING_WM_CHECK ] = XInternAtom( m_pDisplay, "_WIN_SUPPORTING_WM_CHECK", True );
+ m_aWMAtoms[ WIN_PROTOCOLS ] = XInternAtom( m_pDisplay, "_WIN_PROTOCOLS", True );
+ m_aWMAtoms[ WIN_SUPPORTING_WM_CHECK ] = XInternAtom( m_pDisplay, "_WIN_SUPPORTING_WM_CHECK", True );
}
/*
@@ -1045,7 +1045,7 @@ void GnomeWMAdaptor::initAtoms()
void WMAdaptor::setWMName( X11SalFrame* pFrame, const String& rWMName ) const
{
ByteString aTitle( rWMName, osl_getThreadTextEncoding() );
-
+
if( ! rWMName.Len() && m_aWMName.EqualsAscii( "Dtwm" ) )
aTitle = " ";
@@ -1072,7 +1072,7 @@ void WMAdaptor::setWMName( X11SalFrame* pFrame, const String& rWMName ) const
static const char* pLang = getenv( "LANG" );
aWMLocale = pLang ? pLang : "C";
}
-
+
static bool bTrustXmb = true;
#ifdef SOLARIS
/* #i64273# there are some weird cases when using IIIMP on Solaris
@@ -1120,10 +1120,10 @@ void WMAdaptor::setWMName( X11SalFrame* pFrame, const String& rWMName ) const
&aProp );
}
- unsigned char* pData = aProp.nitems ? aProp.value : (unsigned char*)aTitle.GetBuffer();
- Atom nType = aProp.nitems ? aProp.encoding : XA_STRING;
- int nFormat = aProp.nitems ? aProp.format : 8;
- int nBytes = aProp.nitems ? aProp.nitems : aTitle.Len();
+ unsigned char* pData = aProp.nitems ? aProp.value : (unsigned char*)aTitle.GetBuffer();
+ Atom nType = aProp.nitems ? aProp.encoding : XA_STRING;
+ int nFormat = aProp.nitems ? aProp.format : 8;
+ int nBytes = aProp.nitems ? aProp.nitems : aTitle.Len();
const SystemEnvData* pEnv = pFrame->GetSystemData();
XChangeProperty( m_pDisplay,
(XLIB_Window)pEnv->aShellWindow,
@@ -1251,8 +1251,8 @@ void NetWMAdaptor::setNetWMState( X11SalFrame* pFrame ) const
/*
* for maximizing use NorthWestGravity (including decoration)
*/
- XSizeHints hints;
- long supplied;
+ XSizeHints hints;
+ long supplied;
bool bHint = false;
if( XGetWMNormalHints( m_pDisplay,
pFrame->GetShellWindow(),
@@ -1341,8 +1341,8 @@ void GnomeWMAdaptor::setGnomeWMState( X11SalFrame* pFrame ) const
/*
* for maximizing use NorthWestGravity (including decoration)
*/
- XSizeHints hints;
- long supplied;
+ XSizeHints hints;
+ long supplied;
bool bHint = false;
if( XGetWMNormalHints( m_pDisplay,
pFrame->GetShellWindow(),
@@ -1401,13 +1401,13 @@ void GnomeWMAdaptor::setGnomeWMState( X11SalFrame* pFrame ) const
/*
* WMAdaptor::setFrameDecoration
* sets _MOTIF_WM_HINTS
- * WM_TRANSIENT_FOR
+ * WM_TRANSIENT_FOR
*/
void WMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFlags, X11SalFrame* pReferenceFrame ) const
{
- pFrame->meWindowType = eType;
- pFrame->mnDecorationFlags = nDecorationFlags;
+ pFrame->meWindowType = eType;
+ pFrame->mnDecorationFlags = nDecorationFlags;
if( ! pFrame->mbFullScreen )
{
@@ -1417,13 +1417,13 @@ void WMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eTy
long input_mode;
unsigned long status;
} aHint;
-
+
aHint.flags = 15; /* flags for functions, decoration, input mode and status */
aHint.deco = 0;
aHint.func = 1L << 2;
aHint.status = 0;
aHint.input_mode = 0;
-
+
// evaluate decoration flags
if( nDecorationFlags & decoration_All )
aHint.deco = 1, aHint.func = 1;
@@ -1451,7 +1451,7 @@ void WMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eTy
default:
break;
}
-
+
// set the hint
XChangeProperty( m_pDisplay,
pFrame->GetShellWindow(),
@@ -1462,7 +1462,7 @@ void WMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eTy
(unsigned char*)&aHint,
5 );
}
-
+
// set transientFor hint
/* #91030# dtwm will not map a dialogue if the transient
* window is iconified. This is deemed undesireable because
@@ -1491,7 +1491,7 @@ void WMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eTy
* sets _MOTIF_WM_HINTS
* _NET_WM_WINDOW_TYPE
* _NET_WM_STATE
- * WM_TRANSIENT_FOR
+ * WM_TRANSIENT_FOR
*/
void NetWMAdaptor::setFrameTypeAndDecoration( X11SalFrame* pFrame, WMWindowType eType, int nDecorationFlags, X11SalFrame* pReferenceFrame ) const
@@ -1658,8 +1658,8 @@ void WMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool bVert
pFrame->maRestorePosSize = aRestore;
pFrame->SetPosSize( aTarget );
- pFrame->nWidth_ = aTarget.GetWidth();
- pFrame->nHeight_ = aTarget.GetHeight();
+ pFrame->nWidth_ = aTarget.GetWidth();
+ pFrame->nHeight_ = aTarget.GetHeight();
XRaiseWindow( m_pDisplay,
pFrame->GetShellWindow()
);
@@ -1673,8 +1673,8 @@ void WMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool bVert
{
pFrame->SetPosSize( pFrame->maRestorePosSize );
pFrame->maRestorePosSize = Rectangle();
- pFrame->nWidth_ = rGeom.nWidth;
- pFrame->nHeight_ = rGeom.nHeight;
+ pFrame->nWidth_ = rGeom.nWidth;
+ pFrame->nHeight_ = rGeom.nHeight;
if( m_aWMName.EqualsAscii( "Dtwm" ) && pFrame->bMapped_ )
{
pFrame->maGeometry.nX += rGeom.nLeftDecoration;
@@ -1703,16 +1703,16 @@ void NetWMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool bV
{
// window already mapped, send WM a message
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = pFrame->GetShellWindow();
- aEvent.xclient.message_type = m_aWMAtoms[ NET_WM_STATE ];
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = bHorizontal ? 1 : 0;
- aEvent.xclient.data.l[1] = m_aWMAtoms[ NET_WM_STATE_MAXIMIZED_HORZ ];
- aEvent.xclient.data.l[2] = bHorizontal == bVertical ? m_aWMAtoms[ NET_WM_STATE_MAXIMIZED_VERT ] : 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = pFrame->GetShellWindow();
+ aEvent.xclient.message_type = m_aWMAtoms[ NET_WM_STATE ];
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = bHorizontal ? 1 : 0;
+ aEvent.xclient.data.l[1] = m_aWMAtoms[ NET_WM_STATE_MAXIMIZED_HORZ ];
+ aEvent.xclient.data.l[2] = bHorizontal == bVertical ? m_aWMAtoms[ NET_WM_STATE_MAXIMIZED_VERT ] : 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( m_pDisplay,
m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ),
False,
@@ -1768,18 +1768,18 @@ void GnomeWMAdaptor::maximizeFrame( X11SalFrame* pFrame, bool bHorizontal, bool
{
// window already mapped, send WM a message
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = pFrame->GetShellWindow();
- aEvent.xclient.message_type = m_aWMAtoms[ WIN_STATE ];
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = (1<<2)|(1<<3);
- aEvent.xclient.data.l[1] =
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = pFrame->GetShellWindow();
+ aEvent.xclient.message_type = m_aWMAtoms[ WIN_STATE ];
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = (1<<2)|(1<<3);
+ aEvent.xclient.data.l[1] =
(bVertical ? (1<<2) : 0)
| (bHorizontal ? (1<<3) : 0);
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( m_pDisplay,
m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ),
False,
@@ -1844,16 +1844,16 @@ void NetWMAdaptor::enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) const
{
// window already mapped, send WM a message
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = pFrame->GetShellWindow();
- aEvent.xclient.message_type = m_aWMAtoms[ NET_WM_STATE ];
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = bEnable ? 1 : 0;
- aEvent.xclient.data.l[1] = m_aWMAtoms[ NET_WM_STATE_STAYS_ON_TOP ];
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = pFrame->GetShellWindow();
+ aEvent.xclient.message_type = m_aWMAtoms[ NET_WM_STATE ];
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = bEnable ? 1 : 0;
+ aEvent.xclient.data.l[1] = m_aWMAtoms[ NET_WM_STATE_STAYS_ON_TOP ];
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( m_pDisplay,
m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ),
False,
@@ -1878,16 +1878,16 @@ void GnomeWMAdaptor::enableAlwaysOnTop( X11SalFrame* pFrame, bool bEnable ) cons
{
// window already mapped, send WM a message
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = pFrame->GetShellWindow();
- aEvent.xclient.message_type = m_aWMAtoms[ WIN_LAYER ];
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = bEnable ? 6 : 4;
- aEvent.xclient.data.l[1] = 0;
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = pFrame->GetShellWindow();
+ aEvent.xclient.message_type = m_aWMAtoms[ WIN_LAYER ];
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = bEnable ? 6 : 4;
+ aEvent.xclient.data.l[1] = 0;
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( m_pDisplay,
m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ),
False,
@@ -2106,16 +2106,16 @@ void NetWMAdaptor::shade( X11SalFrame* pFrame, bool bToShaded ) const
{
// window already mapped, send WM a message
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = pFrame->GetShellWindow();
- aEvent.xclient.message_type = m_aWMAtoms[ NET_WM_STATE ];
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = bToShaded ? 1 : 0;
- aEvent.xclient.data.l[1] = m_aWMAtoms[ NET_WM_STATE_SHADED ];
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = pFrame->GetShellWindow();
+ aEvent.xclient.message_type = m_aWMAtoms[ NET_WM_STATE ];
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = bToShaded ? 1 : 0;
+ aEvent.xclient.data.l[1] = m_aWMAtoms[ NET_WM_STATE_SHADED ];
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( m_pDisplay,
m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ),
False,
@@ -2143,16 +2143,16 @@ void GnomeWMAdaptor::shade( X11SalFrame* pFrame, bool bToShaded ) const
{
// window already mapped, send WM a message
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = pFrame->GetShellWindow();
- aEvent.xclient.message_type = m_aWMAtoms[ WIN_STATE ];
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = (1<<5);
- aEvent.xclient.data.l[1] = bToShaded ? (1<<5) : 0;
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = pFrame->GetShellWindow();
+ aEvent.xclient.message_type = m_aWMAtoms[ WIN_STATE ];
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = (1<<5);
+ aEvent.xclient.data.l[1] = bToShaded ? (1<<5) : 0;
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( m_pDisplay,
m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ),
False,
@@ -2195,16 +2195,16 @@ void NetWMAdaptor::showFullScreen( X11SalFrame* pFrame, bool bFullScreen ) const
{
// window already mapped, send WM a message
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = pFrame->GetShellWindow();
- aEvent.xclient.message_type = m_aWMAtoms[ NET_WM_STATE ];
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = bFullScreen ? 1 : 0;
- aEvent.xclient.data.l[1] = m_aWMAtoms[ NET_WM_STATE_FULLSCREEN ];
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = pFrame->GetShellWindow();
+ aEvent.xclient.message_type = m_aWMAtoms[ NET_WM_STATE ];
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = bFullScreen ? 1 : 0;
+ aEvent.xclient.data.l[1] = m_aWMAtoms[ NET_WM_STATE_FULLSCREEN ];
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( m_pDisplay,
m_pSalDisplay->GetRootWindow( pFrame->GetScreenNumber() ),
False,
@@ -2266,11 +2266,11 @@ int WMAdaptor::getCurrentWorkArea() const
int nCurrent = -1;
if( m_aWMAtoms[ NET_CURRENT_DESKTOP ] )
{
- Atom aRealType = None;
- int nFormat = 8;
- unsigned long nItems = 0;
- unsigned long nBytesLeft = 0;
- unsigned char* pProperty = NULL;
+ Atom aRealType = None;
+ int nFormat = 8;
+ unsigned long nItems = 0;
+ unsigned long nBytesLeft = 0;
+ unsigned char* pProperty = NULL;
if( XGetWindowProperty( m_pDisplay,
m_pSalDisplay->GetRootWindow( m_pSalDisplay->GetDefaultScreenNumber() ),
m_aWMAtoms[ NET_CURRENT_DESKTOP ],
@@ -2305,11 +2305,11 @@ int WMAdaptor::getWindowWorkArea( XLIB_Window aWindow ) const
int nCurrent = -1;
if( m_aWMAtoms[ NET_WM_DESKTOP ] )
{
- Atom aRealType = None;
- int nFormat = 8;
- unsigned long nItems = 0;
- unsigned long nBytesLeft = 0;
- unsigned char* pProperty = NULL;
+ Atom aRealType = None;
+ int nFormat = 8;
+ unsigned long nItems = 0;
+ unsigned long nBytesLeft = 0;
+ unsigned char* pProperty = NULL;
if( XGetWindowProperty( m_pDisplay,
aWindow,
m_aWMAtoms[ NET_WM_DESKTOP ],
@@ -2345,16 +2345,16 @@ void WMAdaptor::switchToWorkArea( int nWorkArea ) const
if( m_aWMAtoms[ NET_CURRENT_DESKTOP ] )
{
XEvent aEvent;
- aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = m_pSalDisplay->GetRootWindow( m_pSalDisplay->GetDefaultScreenNumber() );
- aEvent.xclient.message_type = m_aWMAtoms[ NET_CURRENT_DESKTOP ];
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = nWorkArea;
- aEvent.xclient.data.l[1] = 0;
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = m_pSalDisplay->GetRootWindow( m_pSalDisplay->GetDefaultScreenNumber() );
+ aEvent.xclient.message_type = m_aWMAtoms[ NET_CURRENT_DESKTOP ];
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = nWorkArea;
+ aEvent.xclient.data.l[1] = 0;
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
XSendEvent( m_pDisplay,
m_pSalDisplay->GetRootWindow( m_pSalDisplay->GetDefaultScreenNumber() ),
False,
@@ -2414,7 +2414,7 @@ void NetWMAdaptor::setFrameStruts( X11SalFrame* pFrame,
nData[11]= bottom_end_x;
Atom aProperty = None;
int nSetData = 0;
-
+
if( m_aWMAtoms[NET_WM_STRUT_PARTIAL] )
{
aProperty = m_aWMAtoms[NET_WM_STRUT_PARTIAL];
diff --git a/vcl/unx/source/desktopdetect/desktopdetector.cxx b/vcl/unx/source/desktopdetect/desktopdetector.cxx
index dce25af71ca9..20468e71c36c 100644
--- a/vcl/unx/source/desktopdetect/desktopdetector.cxx
+++ b/vcl/unx/source/desktopdetect/desktopdetector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,13 +59,13 @@ static const char * desktop_strings[] = { "none", "unknown", "GNOME", "KDE", "KD
static bool is_gnome_desktop( Display* pDisplay )
{
bool ret = false;
-
+
// warning: these checks are coincidental, GNOME does not
// explicitly advertise itself
-
+
if ( NULL != getenv( "GNOME_DESKTOP_SESSION_ID" ) )
ret = true;
-
+
if( ! ret )
{
Atom nAtom1 = XInternAtom( pDisplay, "GNOME_SM_PROXY", True );
@@ -86,11 +86,11 @@ static bool is_gnome_desktop( Display* pDisplay )
}
}
}
-
+
if( ! ret )
{
- Atom nUTFAtom = XInternAtom( pDisplay, "UTF8_STRING", True );
- Atom nNetWMNameAtom = XInternAtom( pDisplay, "_NET_WM_NAME", True );
+ Atom nUTFAtom = XInternAtom( pDisplay, "UTF8_STRING", True );
+ Atom nNetWMNameAtom = XInternAtom( pDisplay, "_NET_WM_NAME", True );
if( nUTFAtom && nNetWMNameAtom )
{
// another, more expensive check: search for a gnome-panel
@@ -150,7 +150,7 @@ extern "C"
bWasXError = true;
return 0;
}
-
+
typedef int(* XErrorHandler)(Display*,XErrorEvent*);
}
@@ -166,11 +166,11 @@ static int KDEVersion( Display* pDisplay )
if( !nKDEVersion )
return 3;
- Atom aRealType = None;
- int nFormat = 8;
- unsigned long nItems = 0;
- unsigned long nBytesLeft = 0;
- unsigned char* pProperty = NULL;
+ Atom aRealType = None;
+ int nFormat = 8;
+ unsigned long nItems = 0;
+ unsigned long nBytesLeft = 0;
+ unsigned char* pProperty = NULL;
XGetWindowProperty( pDisplay,
DefaultRootWindow( pDisplay ),
nKDEVersion,
@@ -184,7 +184,7 @@ static int KDEVersion( Display* pDisplay )
&pProperty );
if( !WasXError() && nItems != 0 && pProperty )
{
- nRet = *reinterpret_cast< sal_Int32* >( pProperty );
+ nRet = *reinterpret_cast< sal_Int32* >( pProperty );
}
if( pProperty )
{
@@ -246,23 +246,23 @@ static bool is_cde_desktop( Display* pDisplay )
osl_unloadModule( (oslModule)pLibrary );
return true;
}
-
+
return false;
}
extern "C"
{
-
+
VCL_DLLPUBLIC rtl::OUString get_desktop_environment()
{
rtl::OUStringBuffer aRet( 8 );
static const char *pOverride = getenv( "OOO_FORCE_DESKTOP" );
-
+
if ( pOverride && *pOverride )
{
OString aOver( pOverride );
-
+
if ( aOver.equalsIgnoreAsciiCase( "cde" ) )
aRet.appendAscii( desktop_strings[DESKTOP_CDE] );
if ( aOver.equalsIgnoreAsciiCase( "kde4" ) )
@@ -298,7 +298,7 @@ VCL_DLLPUBLIC rtl::OUString get_desktop_environment()
break;
}
}
-
+
// no server at all
if( ! pDisplayStr || !*pDisplayStr )
aRet.appendAscii( desktop_strings[DESKTOP_NONE] );
@@ -313,12 +313,12 @@ VCL_DLLPUBLIC rtl::OUString get_desktop_environment()
*/
if( ! ( pNoXInitThreads && *pNoXInitThreads ) )
XInitThreads();
-
+
Display* pDisplay = XOpenDisplay( pDisplayStr );
if( pDisplay )
{
XErrorHandler pOldHdl = XSetErrorHandler( autodect_error_handler );
-
+
if ( is_kde4_desktop( pDisplay ) )
aRet.appendAscii( desktop_strings[DESKTOP_KDE4] );
else if ( is_gnome_desktop( pDisplay ) )
@@ -329,10 +329,10 @@ VCL_DLLPUBLIC rtl::OUString get_desktop_environment()
aRet.appendAscii( desktop_strings[DESKTOP_KDE] );
else
aRet.appendAscii( desktop_strings[DESKTOP_UNKNOWN] );
-
+
// set the default handler again
XSetErrorHandler( pOldHdl );
-
+
XCloseDisplay( pDisplay );
}
}
diff --git a/vcl/unx/source/dtrans/X11_clipboard.cxx b/vcl/unx/source/dtrans/X11_clipboard.cxx
index f4922f57cf72..18b0bb4e575f 100644
--- a/vcl/unx/source/dtrans/X11_clipboard.cxx
+++ b/vcl/unx/source/dtrans/X11_clipboard.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -137,7 +137,7 @@ void X11Clipboard::clearContents()
// clear members
m_aOwner.clear();
m_aContents.clear();
-
+
// release the mutex
aGuard.clear();
@@ -286,7 +286,7 @@ void SAL_CALL X11Clipboard::initialize( const Sequence< Any >& ) throw( ::com::s
// ------------------------------------------------------------------------
-Sequence< OUString > SAL_CALL X11Clipboard::getSupportedServiceNames( )
+Sequence< OUString > SAL_CALL X11Clipboard::getSupportedServiceNames( )
throw(RuntimeException)
{
return X11Clipboard_getSupportedServiceNames();
diff --git a/vcl/unx/source/dtrans/X11_clipboard.hxx b/vcl/unx/source/dtrans/X11_clipboard.hxx
index ed493a33ba2e..05303e58f2af 100644
--- a/vcl/unx/source/dtrans/X11_clipboard.hxx
+++ b/vcl/unx/source/dtrans/X11_clipboard.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,10 +54,10 @@ namespace x11 {
Reference< ::com::sun::star::datatransfer::XTransferable > m_aContents;
Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner > m_aOwner;
- SelectionManager& m_rSelectionManager;
- Reference< ::com::sun::star::lang::XInitialization > m_xSelectionManager;
+ SelectionManager& m_rSelectionManager;
+ Reference< ::com::sun::star::lang::XInitialization > m_xSelectionManager;
::std::list< Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener > > m_aListeners;
- Atom m_aSelection;
+ Atom m_aSelection;
protected:
@@ -76,7 +76,7 @@ namespace x11 {
static X11Clipboard* get( const ::rtl::OUString& rDisplayName, Atom aSelection );
/*
- * XInitialization
+ * XInitialization
*/
virtual void SAL_CALL initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception );
@@ -84,29 +84,29 @@ namespace x11 {
* XServiceInfo
*/
- virtual ::rtl::OUString SAL_CALL getImplementationName( )
+ virtual ::rtl::OUString SAL_CALL getImplementationName( )
throw(RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
throw(RuntimeException);
- virtual Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
+ virtual Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
throw(RuntimeException);
/*
* XClipboard
*/
- virtual Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
+ virtual Reference< ::com::sun::star::datatransfer::XTransferable > SAL_CALL getContents()
throw(RuntimeException);
- virtual void SAL_CALL setContents(
- const Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans,
- const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
+ virtual void SAL_CALL setContents(
+ const Reference< ::com::sun::star::datatransfer::XTransferable >& xTrans,
+ const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
throw(RuntimeException);
- virtual ::rtl::OUString SAL_CALL getName()
- throw(RuntimeException);
+ virtual ::rtl::OUString SAL_CALL getName()
+ throw(RuntimeException);
/*
* XClipboardEx
@@ -118,16 +118,16 @@ namespace x11 {
/*
* XClipboardNotifier
*/
- virtual void SAL_CALL addClipboardListener(
- const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ virtual void SAL_CALL addClipboardListener(
+ const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
throw(RuntimeException);
- virtual void SAL_CALL removeClipboardListener(
- const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
- throw(RuntimeException);
+ virtual void SAL_CALL removeClipboardListener(
+ const Reference< ::com::sun::star::datatransfer::clipboard::XClipboardListener >& listener )
+ throw(RuntimeException);
/*
- * SelectionAdaptor
+ * SelectionAdaptor
*/
virtual Reference< ::com::sun::star::datatransfer::XTransferable > getTransferable();
virtual void clearTransferable();
@@ -138,7 +138,7 @@ namespace x11 {
// ------------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL X11Clipboard_getSupportedServiceNames();
- Reference< XInterface > SAL_CALL X11Clipboard_createInstance(
+ Reference< XInterface > SAL_CALL X11Clipboard_createInstance(
const Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMultiServiceFactory);
// ------------------------------------------------------------------------
diff --git a/vcl/unx/source/dtrans/X11_dndcontext.cxx b/vcl/unx/source/dtrans/X11_dndcontext.cxx
index 988dce430a51..49baa396d121 100644
--- a/vcl/unx/source/dtrans/X11_dndcontext.cxx
+++ b/vcl/unx/source/dtrans/X11_dndcontext.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -36,7 +36,7 @@ using namespace cppu;
using namespace x11;
/*
- * DropTargetDropContext
+ * DropTargetDropContext
*/
DropTargetDropContext::DropTargetDropContext(
@@ -71,7 +71,7 @@ void DropTargetDropContext::dropComplete( sal_Bool success ) throw()
/*
- * DropTargetDragContext
+ * DropTargetDragContext
*/
DropTargetDragContext::DropTargetDragContext(
@@ -100,7 +100,7 @@ void DropTargetDragContext::rejectDrag() throw()
}
/*
- * DragSourceContext
+ * DragSourceContext
*/
DragSourceContext::DragSourceContext(
diff --git a/vcl/unx/source/dtrans/X11_dndcontext.hxx b/vcl/unx/source/dtrans/X11_dndcontext.hxx
index 5c47e6a465a2..74d69cda0785 100644
--- a/vcl/unx/source/dtrans/X11_dndcontext.hxx
+++ b/vcl/unx/source/dtrans/X11_dndcontext.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -95,10 +95,10 @@ namespace x11 {
virtual ~DragSourceContext();
// XDragSourceContext
- virtual sal_Int32 SAL_CALL getCurrentCursor() throw();
- virtual void SAL_CALL setCursor( sal_Int32 cursorId ) throw();
- virtual void SAL_CALL setImage( sal_Int32 imageId ) throw();
- virtual void SAL_CALL transferablesFlavorsChanged() throw();
+ virtual sal_Int32 SAL_CALL getCurrentCursor() throw();
+ virtual void SAL_CALL setCursor( sal_Int32 cursorId ) throw();
+ virtual void SAL_CALL setImage( sal_Int32 imageId ) throw();
+ virtual void SAL_CALL transferablesFlavorsChanged() throw();
};
} // namespace
diff --git a/vcl/unx/source/dtrans/X11_droptarget.cxx b/vcl/unx/source/dtrans/X11_droptarget.cxx
index ab12c917297a..ee35860ad7a7 100644
--- a/vcl/unx/source/dtrans/X11_droptarget.cxx
+++ b/vcl/unx/source/dtrans/X11_droptarget.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -196,7 +196,7 @@ void DropTarget::dragOver( const DropTargetDragEvent& dtde ) throw()
// --------------------------------------------------------------------------
/*
- * XServiceInfo
+ * XServiceInfo
*/
// ------------------------------------------------------------------------
diff --git a/vcl/unx/source/dtrans/X11_selection.cxx b/vcl/unx/source/dtrans/X11_selection.cxx
index 18d120d4961b..d06cb261b6f8 100644
--- a/vcl/unx/source/dtrans/X11_selection.cxx
+++ b/vcl/unx/source/dtrans/X11_selection.cxx
@@ -76,10 +76,10 @@
#include <comphelper/processfactory.hxx>
#include <osl/mutex.hxx>
-#define DRAG_EVENT_MASK ButtonPressMask |\
- ButtonReleaseMask |\
- PointerMotionMask |\
- EnterWindowMask |\
+#define DRAG_EVENT_MASK ButtonPressMask |\
+ ButtonReleaseMask |\
+ PointerMotionMask |\
+ EnterWindowMask |\
LeaveWindowMask
using namespace com::sun::star::datatransfer;
@@ -114,10 +114,10 @@ static const long nXdndProtocolRevision = 5;
// and X convention types
struct NativeTypeEntry
{
- Atom nAtom;
- const char* pType; // Mime encoding on our side
- const char* pNativeType; // string corresponding to nAtom for the case of nAtom being uninitialized
- int nFormat; // the corresponding format
+ Atom nAtom;
+ const char* pType; // Mime encoding on our side
+ const char* pNativeType; // string corresponding to nAtom for the case of nAtom being uninitialized
+ int nFormat; // the corresponding format
};
// the convention for Xdnd is mime types as specified by the corresponding
@@ -282,7 +282,7 @@ SelectionManager::SelectionManager() :
m_nXdndActionAsk( None ),
m_nXdndActionPrivate( None )
{
- m_aDropEnterEvent.data.l[0] = None;
+ m_aDropEnterEvent.data.l[0] = None;
m_aDragRunning.reset();
}
@@ -330,11 +330,11 @@ void SelectionManager::initialize( const Sequence< Any >& arguments ) throw (::c
if( ! m_xDisplayConnection.is() )
{
/*
- * first argument must be a ::com::sun::star::awt::XDisplayConnection
- * from this we will get the XEvents of the vcl event loop by
- * registering us as XEventHandler on it.
+ * first argument must be a ::com::sun::star::awt::XDisplayConnection
+ * from this we will get the XEvents of the vcl event loop by
+ * registering us as XEventHandler on it.
*
- * implementor's note:
+ * implementor's note:
* FIXME:
* finally the clipboard and XDND service is back in the module it belongs
* now cleanup and sharing of resources with the normal vcl event loop
@@ -377,34 +377,34 @@ void SelectionManager::initialize( const Sequence< Any >& arguments ) throw (::c
XSynchronize( m_pDisplay, True );
#endif
// clipboard selection
- m_nCLIPBOARDAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("CLIPBOARD")) );
+ m_nCLIPBOARDAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("CLIPBOARD")) );
// special targets
- m_nTARGETSAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("TARGETS")) );
+ m_nTARGETSAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("TARGETS")) );
m_nTIMESTAMPAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("TIMESTAMP")) );
- m_nTEXTAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("TEXT")) );
- m_nINCRAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("INCR")) );
- m_nCOMPOUNDAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("COMPOUND_TEXT")) );
- m_nMULTIPLEAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("MULTIPLE")) );
- m_nUTF16Atom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("ISO10646-1")) );
-// m_nUTF16Atom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("text/plain;charset=ISO-10646-UCS-2")) );
+ m_nTEXTAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("TEXT")) );
+ m_nINCRAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("INCR")) );
+ m_nCOMPOUNDAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("COMPOUND_TEXT")) );
+ m_nMULTIPLEAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("MULTIPLE")) );
+ m_nUTF16Atom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("ISO10646-1")) );
+// m_nUTF16Atom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("text/plain;charset=ISO-10646-UCS-2")) );
m_nImageBmpAtom = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("image/bmp")) );
// Atoms for Xdnd protocol
- m_nXdndAware = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndAware")) );
- m_nXdndEnter = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndEnter")) );
- m_nXdndLeave = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndLeave")) );
- m_nXdndPosition = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndPosition")) );
- m_nXdndStatus = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndStatus")) );
- m_nXdndDrop = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndDrop")) );
- m_nXdndFinished = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndFinished")) );
- m_nXdndSelection = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndSelection")) );
- m_nXdndTypeList = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndTypeList")) );
- m_nXdndProxy = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndProxy")) );
- m_nXdndActionCopy = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionCopy")) );
- m_nXdndActionMove = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionMove")) );
- m_nXdndActionLink = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionLink")) );
- m_nXdndActionAsk = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionAsk")) );
+ m_nXdndAware = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndAware")) );
+ m_nXdndEnter = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndEnter")) );
+ m_nXdndLeave = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndLeave")) );
+ m_nXdndPosition = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndPosition")) );
+ m_nXdndStatus = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndStatus")) );
+ m_nXdndDrop = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndDrop")) );
+ m_nXdndFinished = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndFinished")) );
+ m_nXdndSelection = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndSelection")) );
+ m_nXdndTypeList = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndTypeList")) );
+ m_nXdndProxy = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndProxy")) );
+ m_nXdndActionCopy = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionCopy")) );
+ m_nXdndActionMove = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionMove")) );
+ m_nXdndActionLink = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionLink")) );
+ m_nXdndActionAsk = getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionAsk")) );
m_nXdndActionPrivate= getAtom( OUString(RTL_CONSTASCII_USTRINGPARAM("XdndActionPrivate")) );
// initialize map with member none
@@ -562,10 +562,10 @@ OUString SelectionManager::convertFromCompound( const char* pText, int nLen )
int nTexts = 0;
XTextProperty aProp;
- aProp.value = (unsigned char*)pText;
- aProp.encoding = m_nCOMPOUNDAtom;
- aProp.format = 8;
- aProp.nitems = nLen;
+ aProp.value = (unsigned char*)pText;
+ aProp.encoding = m_nCOMPOUNDAtom;
+ aProp.format = 8;
+ aProp.nitems = nLen;
XmbTextPropertyToTextList( m_pDisplay,
&aProp,
&pTextList,
@@ -939,9 +939,9 @@ bool SelectionManager::getPasteData( Atom selection, Atom type, Sequence< sal_In
XDeleteProperty( m_pDisplay, m_aWindow, selection );
XConvertSelection( m_pDisplay, selection, type, selection, m_aWindow, selection == m_nXdndSelection ? m_nDropTime : CurrentTime );
- it->second->m_eState = Selection::WaitingForResponse;
- it->second->m_aRequestedType = type;
- it->second->m_aData = Sequence< sal_Int8 >();
+ it->second->m_eState = Selection::WaitingForResponse;
+ it->second->m_aRequestedType = type;
+ it->second->m_aData = Sequence< sal_Int8 >();
it->second->m_aDataArrived.reset();
// really start the request; if we don't flush the
// queue the request won't leave it because there are no more
@@ -1098,8 +1098,8 @@ bool SelectionManager::getPasteData( Atom selection, const ::rtl::OUString& rTyp
for( int i = 0; i < rTypes.getLength(); i++ )
{
rtl_TextEncoding aEncoding = getTextPlainEncoding( rTypes.getConstArray()[i].MimeType );
- if( aEncoding != RTL_TEXTENCODING_DONTKNOW &&
- aEncoding != RTL_TEXTENCODING_UNICODE &&
+ if( aEncoding != RTL_TEXTENCODING_DONTKNOW &&
+ aEncoding != RTL_TEXTENCODING_UNICODE &&
getPasteData( selection,
rNativeTypes[i],
aData )
@@ -1256,8 +1256,8 @@ bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >
osl::MutexGuard aGuard(m_aMutex);
it = m_aSelections.find( selection );
- if( it != m_aSelections.end() &&
- it->second->m_aTypes.getLength() &&
+ if( it != m_aSelections.end() &&
+ it->second->m_aTypes.getLength() &&
abs( it->second->m_nLastTimestamp - time( NULL ) ) < 2
)
{
@@ -1422,21 +1422,21 @@ bool SelectionManager::getPasteDataTypes( Atom selection, Sequence< DataFlavor >
{
if( bSuccess )
{
- it->second->m_aTypes = rTypes;
- it->second->m_aNativeTypes = aNativeTypes;
- it->second->m_nLastTimestamp = time( NULL );
- it->second->m_bHaveUTF16 = bHaveUTF16;
+ it->second->m_aTypes = rTypes;
+ it->second->m_aNativeTypes = aNativeTypes;
+ it->second->m_nLastTimestamp = time( NULL );
+ it->second->m_bHaveUTF16 = bHaveUTF16;
it->second->m_aUTF8Type = aUTF8Type;
- it->second->m_bHaveCompound = bHaveCompound;
+ it->second->m_bHaveCompound = bHaveCompound;
}
else
{
- it->second->m_aTypes = Sequence< DataFlavor >();
- it->second->m_aNativeTypes = std::vector< Atom >();
- it->second->m_nLastTimestamp = 0;
- it->second->m_bHaveUTF16 = false;
+ it->second->m_aTypes = Sequence< DataFlavor >();
+ it->second->m_aNativeTypes = std::vector< Atom >();
+ it->second->m_nLastTimestamp = 0;
+ it->second->m_bHaveUTF16 = false;
it->second->m_aUTF8Type = None;
- it->second->m_bHaveCompound = false;
+ it->second->m_bHaveCompound = false;
}
}
}
@@ -1596,14 +1596,14 @@ bool SelectionManager::sendData( SelectionAdaptor* pAdaptor,
#endif
// insert IncrementalTransfer
- IncrementalTransfer& rInc = m_aIncrementals[ requestor ][ property ];
- rInc.m_aData = aData;
- rInc.m_nBufferPos = 0;
- rInc.m_aRequestor = requestor;
- rInc.m_aProperty = property;
- rInc.m_aTarget = target;
- rInc.m_nFormat = nFormat;
- rInc.m_nTransferStartTime = time( NULL );
+ IncrementalTransfer& rInc = m_aIncrementals[ requestor ][ property ];
+ rInc.m_aData = aData;
+ rInc.m_nBufferPos = 0;
+ rInc.m_aRequestor = requestor;
+ rInc.m_aProperty = property;
+ rInc.m_aTarget = target;
+ rInc.m_nFormat = nFormat;
+ rInc.m_nTransferStartTime = time( NULL );
// use incr protocol, signal start to requestor
long nMinSize = m_nIncrementalThreshold;
@@ -1812,23 +1812,23 @@ bool SelectionManager::handleSelectionRequest( XSelectionRequestEvent& rRequest
}
XSendEvent( m_pDisplay, rRequest.requestor, False, 0, &aNotify );
- if( rRequest.selection == XA_PRIMARY &&
- m_bWaitingForPrimaryConversion &&
+ if( rRequest.selection == XA_PRIMARY &&
+ m_bWaitingForPrimaryConversion &&
m_xDragSourceListener.is() )
{
DragSourceDropEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, rRequest.time, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, rRequest.time, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
if( aNotify.xselection.property != None )
{
- dsde.DropAction = DNDConstants::ACTION_COPY;
- dsde.DropSuccess = sal_True;
+ dsde.DropAction = DNDConstants::ACTION_COPY;
+ dsde.DropSuccess = sal_True;
}
else
{
- dsde.DropAction = DNDConstants::ACTION_NONE;
- dsde.DropSuccess = sal_False;
+ dsde.DropAction = DNDConstants::ACTION_NONE;
+ dsde.DropSuccess = sal_False;
}
Reference< XDragSourceListener > xListener( m_xDragSourceListener );
m_xDragSourceListener.clear();
@@ -1857,8 +1857,8 @@ bool SelectionManager::handleReceivePropertyNotify( XPropertyEvent& rNotify )
m_aSelections.find( rNotify.atom );
if( it != m_aSelections.end() &&
rNotify.state == PropertyNewValue &&
- ( it->second->m_eState == Selection::WaitingForResponse ||
- it->second->m_eState == Selection::WaitingForData ||
+ ( it->second->m_eState == Selection::WaitingForResponse ||
+ it->second->m_eState == Selection::WaitingForData ||
it->second->m_eState == Selection::IncrementalTransfer
)
)
@@ -2125,9 +2125,9 @@ bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify )
&nItems, &nBytes,
&pData );
}
- it->second->m_eState = Selection::Inactive;
+ it->second->m_eState = Selection::Inactive;
sal_Size nUnitSize = GetTrueFormatSize(nFormat);
- it->second->m_aData = Sequence< sal_Int8 >((sal_Int8*)pData, nItems * nUnitSize);
+ it->second->m_aData = Sequence< sal_Int8 >((sal_Int8*)pData, nItems * nUnitSize);
it->second->m_aDataArrived.set();
if( pData )
XFree( pData );
@@ -2138,8 +2138,8 @@ bool SelectionManager::handleSelectionNotify( XSelectionEvent& rNotify )
else if( rNotify.property == None )
{
// conversion failed, stop transfer
- it->second->m_eState = Selection::Inactive;
- it->second->m_aData = Sequence< sal_Int8 >();
+ it->second->m_eState = Selection::Inactive;
+ it->second->m_aData = Sequence< sal_Int8 >();
it->second->m_aDataArrived.set();
}
// get the bytes, by INCR if necessary
@@ -2206,10 +2206,10 @@ bool SelectionManager::handleDropEvent( XClientMessageEvent& rMessage )
if( rMessage.message_type == m_nXdndEnter )
{
bHandled = true;
- m_aDropEnterEvent = rMessage;
- m_bDropEnterSent = false;
- m_aCurrentDropWindow = aTarget;
- m_nCurrentProtocolVersion = m_aDropEnterEvent.data.l[1] >> 24;
+ m_aDropEnterEvent = rMessage;
+ m_bDropEnterSent = false;
+ m_aCurrentDropWindow = aTarget;
+ m_nCurrentProtocolVersion = m_aDropEnterEvent.data.l[1] >> 24;
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "received XdndEnter on 0x%lx\n", aTarget );
#endif
@@ -2237,10 +2237,10 @@ bool SelectionManager::handleDropEvent( XClientMessageEvent& rMessage )
fprintf( stderr, "received XdndPosition on 0x%lx (%d, %d)\n", aTarget, m_nLastX, m_nLastY );
#endif
DropTargetDragEnterEvent aEvent;
- aEvent.Source = static_cast< XDropTarget* >(it->second.m_pTarget);
- aEvent.Context = new DropTargetDragContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
- aEvent.LocationX = m_nLastX;
- aEvent.LocationY = m_nLastY;
+ aEvent.Source = static_cast< XDropTarget* >(it->second.m_pTarget);
+ aEvent.Context = new DropTargetDragContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
+ aEvent.LocationX = m_nLastX;
+ aEvent.LocationY = m_nLastY;
aEvent.SourceActions = m_nSourceActions;
if( m_nCurrentProtocolVersion < 2 )
aEvent.DropAction = DNDConstants::ACTION_COPY;
@@ -2256,7 +2256,7 @@ bool SelectionManager::handleDropEvent( XClientMessageEvent& rMessage )
else
aEvent.DropAction = DNDConstants::ACTION_NONE;
- m_nLastDropAction = aEvent.DropAction;
+ m_nLastDropAction = aEvent.DropAction;
if( ! m_bDropEnterSent )
{
m_bDropEnterSent = true;
@@ -2302,15 +2302,15 @@ bool SelectionManager::handleDropEvent( XClientMessageEvent& rMessage )
if( m_bLastDropAccepted )
{
DropTargetDropEvent aEvent;
- aEvent.Source = static_cast< XDropTarget* >(it->second.m_pTarget);
- aEvent.Context = new DropTargetDropContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
- aEvent.LocationX = m_nLastX;
- aEvent.LocationY = m_nLastY;
- aEvent.DropAction = m_nLastDropAction;
+ aEvent.Source = static_cast< XDropTarget* >(it->second.m_pTarget);
+ aEvent.Context = new DropTargetDropContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
+ aEvent.LocationX = m_nLastX;
+ aEvent.LocationY = m_nLastY;
+ aEvent.DropAction = m_nLastDropAction;
// there is nothing corresponding to source supported actions
// every source can do link, copy and move
aEvent.SourceActions= m_nLastDropAction;
- aEvent.Transferable = m_xDropTransferable;
+ aEvent.Transferable = m_xDropTransferable;
m_bDropWaitingForCompletion = true;
aGuard.clear();
@@ -2334,7 +2334,7 @@ bool SelectionManager::handleDropEvent( XClientMessageEvent& rMessage )
}
/*
- * methods for XDropTargetDropContext
+ * methods for XDropTargetDropContext
*/
void SelectionManager::dropComplete( sal_Bool bSuccess, XLIB_Window aDropWindow, XLIB_Time )
@@ -2346,11 +2346,11 @@ void SelectionManager::dropComplete( sal_Bool bSuccess, XLIB_Window aDropWindow,
if( m_xDragSourceListener.is() )
{
DragSourceDropEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = getUserDragAction();
- dsde.DropSuccess = bSuccess;
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = getUserDragAction();
+ dsde.DropSuccess = bSuccess;
Reference< XDragSourceListener > xListener = m_xDragSourceListener;
m_xDragSourceListener.clear();
@@ -2360,16 +2360,16 @@ void SelectionManager::dropComplete( sal_Bool bSuccess, XLIB_Window aDropWindow,
else if( m_aDropEnterEvent.data.l[0] && m_aCurrentDropWindow )
{
XEvent aEvent;
- aEvent.xclient.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = m_aDropEnterEvent.data.l[0];
- aEvent.xclient.message_type = m_nXdndFinished;
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = m_aCurrentDropWindow;
- aEvent.xclient.data.l[1] = bSuccess ? 1 : 0;
- aEvent.xclient.data.l[2] = 0;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
+ aEvent.xclient.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = m_aDropEnterEvent.data.l[0];
+ aEvent.xclient.message_type = m_nXdndFinished;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = m_aCurrentDropWindow;
+ aEvent.xclient.data.l[1] = bSuccess ? 1 : 0;
+ aEvent.xclient.data.l[2] = 0;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
if( bSuccess )
{
if( m_nLastDropAction & DNDConstants::ACTION_MOVE )
@@ -2389,9 +2389,9 @@ void SelectionManager::dropComplete( sal_Bool bSuccess, XLIB_Window aDropWindow,
XSendEvent( m_pDisplay, m_aDropEnterEvent.data.l[0],
False, NoEventMask, & aEvent );
- m_aDropEnterEvent.data.l[0] = None;
- m_aCurrentDropWindow = None;
- m_nCurrentProtocolVersion = nXdndProtocolRevision;
+ m_aDropEnterEvent.data.l[0] = None;
+ m_aCurrentDropWindow = None;
+ m_nCurrentProtocolVersion = nXdndProtocolRevision;
}
m_bDropWaitingForCompletion = false;
}
@@ -2400,7 +2400,7 @@ void SelectionManager::dropComplete( sal_Bool bSuccess, XLIB_Window aDropWindow,
}
/*
- * methods for XDropTargetDragContext
+ * methods for XDropTargetDragContext
*/
// ------------------------------------------------------------------------
@@ -2429,11 +2429,11 @@ void SelectionManager::sendDragStatus( Atom nDropAction )
}
DragSourceDragEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = m_nSourceActions;
- dsde.UserAction = getUserDragAction();
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = m_nSourceActions;
+ dsde.UserAction = getUserDragAction();
Reference< XDragSourceListener > xListener( m_xDragSourceListener );
// caution: do not change anything after this
@@ -2444,15 +2444,15 @@ void SelectionManager::sendDragStatus( Atom nDropAction )
else if( m_aDropEnterEvent.data.l[0] && m_aCurrentDropWindow )
{
XEvent aEvent;
- aEvent.xclient.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.window = m_aDropEnterEvent.data.l[0];
- aEvent.xclient.message_type = m_nXdndStatus;
- aEvent.xclient.format = 32;
- aEvent.xclient.data.l[0] = m_aCurrentDropWindow;
- aEvent.xclient.data.l[1] = 2;
- if( nDropAction == m_nXdndActionMove ||
- nDropAction == m_nXdndActionLink ||
+ aEvent.xclient.type = ClientMessage;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.window = m_aDropEnterEvent.data.l[0];
+ aEvent.xclient.message_type = m_nXdndStatus;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.data.l[0] = m_aCurrentDropWindow;
+ aEvent.xclient.data.l[1] = 2;
+ if( nDropAction == m_nXdndActionMove ||
+ nDropAction == m_nXdndActionLink ||
nDropAction == m_nXdndActionCopy )
aEvent.xclient.data.l[1] |= 1;
aEvent.xclient.data.l[2] = 0;
@@ -2521,12 +2521,12 @@ bool SelectionManager::updateDragAction( int modifierState )
m_nUserDragAction = nNewDropAction;
DragSourceDragEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = m_nUserDragAction;
- dsde.UserAction = m_nUserDragAction;
- m_nTargetAcceptAction = DNDConstants::ACTION_DEFAULT; // invalidate last accept
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = m_nUserDragAction;
+ dsde.UserAction = m_nUserDragAction;
+ m_nTargetAcceptAction = DNDConstants::ACTION_DEFAULT; // invalidate last accept
m_xDragSourceListener->dropActionChanged( dsde );
}
return bRet;
@@ -2551,12 +2551,12 @@ void SelectionManager::sendDropPosition( bool bForce, XLIB_Time eventTime )
XLIB_Window aChild;
XTranslateCoordinates( m_pDisplay, it->second.m_aRootWindow, m_aDropWindow, m_nLastDragX, m_nLastDragY, &x, &y, &aChild );
DropTargetDragEvent dtde;
- dtde.Source = static_cast< OWeakObject* >(it->second.m_pTarget );
- dtde.Context = new DropTargetDragContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
- dtde.LocationX = x;
- dtde.LocationY = y;
- dtde.DropAction = getUserDragAction();
- dtde.SourceActions = m_nSourceActions;
+ dtde.Source = static_cast< OWeakObject* >(it->second.m_pTarget );
+ dtde.Context = new DropTargetDragContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
+ dtde.LocationX = x;
+ dtde.LocationY = y;
+ dtde.DropAction = getUserDragAction();
+ dtde.SourceActions = m_nSourceActions;
aGuard.clear();
it->second->dragOver( dtde );
}
@@ -2570,14 +2570,14 @@ void SelectionManager::sendDropPosition( bool bForce, XLIB_Time eventTime )
// send XdndPosition
XEvent aEvent;
aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.format = 32;
- aEvent.xclient.message_type = m_nXdndPosition;
- aEvent.xclient.window = m_aDropWindow;
- aEvent.xclient.data.l[0] = m_aWindow;
- aEvent.xclient.data.l[1] = 0;
- aEvent.xclient.data.l[2] = m_nLastDragX << 16 | (m_nLastDragY&0xffff);
- aEvent.xclient.data.l[3] = eventTime;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.message_type = m_nXdndPosition;
+ aEvent.xclient.window = m_aDropWindow;
+ aEvent.xclient.data.l[0] = m_aWindow;
+ aEvent.xclient.data.l[1] = 0;
+ aEvent.xclient.data.l[2] = m_nLastDragX << 16 | (m_nLastDragY&0xffff);
+ aEvent.xclient.data.l[3] = eventTime;
if( m_nUserDragAction & DNDConstants::ACTION_COPY )
aEvent.xclient.data.l[4]=m_nXdndActionCopy;
@@ -2613,7 +2613,7 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
fprintf( stderr, "handleDragEvent: %s\n", OUStringToOString( getString( rMessage.xclient.message_type ), RTL_TEXTENCODING_ISO_8859_1 ).getStr() );
break;
case MotionNotify:
-// fprintf( stderr, "handleDragEvent: MotionNotify\n" );
+// fprintf( stderr, "handleDragEvent: MotionNotify\n" );
break;
case EnterNotify:
fprintf( stderr, "handleDragEvent: EnterNotify\n" );
@@ -2646,9 +2646,9 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
{
bHandled = true;
DragSourceDragEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >( this );
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >( this );
dsde.UserAction = getUserDragAction();
dsde.DropAction = DNDConstants::ACTION_NONE;
m_bDropSuccess = rMessage.xclient.data.l[1] & 1 ? true : false;
@@ -2675,10 +2675,10 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
if( ! ( rMessage.xclient.data.l[1] & 2 ) )
{
- m_nNoPosX = rMessage.xclient.data.l[2] >> 16;
- m_nNoPosY = rMessage.xclient.data.l[2] & 0xffff;
- m_nNoPosWidth = rMessage.xclient.data.l[3] >> 16;
- m_nNoPosHeight = rMessage.xclient.data.l[3] & 0xffff;
+ m_nNoPosX = rMessage.xclient.data.l[2] >> 16;
+ m_nNoPosY = rMessage.xclient.data.l[2] & 0xffff;
+ m_nNoPosWidth = rMessage.xclient.data.l[3] >> 16;
+ m_nNoPosHeight = rMessage.xclient.data.l[3] & 0xffff;
}
else
m_nNoPosX = m_nNoPosY = m_nNoPosWidth = m_nNoPosHeight = 0;
@@ -2692,11 +2692,11 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
bHandled = true;
// notify the listener
DragSourceDropEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = m_nTargetAcceptAction;
- dsde.DropSuccess = m_bDropSuccess;
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = m_nTargetAcceptAction;
+ dsde.DropSuccess = m_bDropSuccess;
Reference< XDragSourceListener > xListener( m_xDragSourceListener );
m_xDragSourceListener.clear();
aGuard.clear();
@@ -2709,8 +2709,8 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
{
bHandled = true;
bool bForce = false;
- int root_x = rMessage.type == MotionNotify ? rMessage.xmotion.x_root : rMessage.xcrossing.x_root;
- int root_y = rMessage.type == MotionNotify ? rMessage.xmotion.y_root : rMessage.xcrossing.y_root;
+ int root_x = rMessage.type == MotionNotify ? rMessage.xmotion.x_root : rMessage.xcrossing.x_root;
+ int root_y = rMessage.type == MotionNotify ? rMessage.xmotion.y_root : rMessage.xcrossing.y_root;
XLIB_Window root = rMessage.type == MotionNotify ? rMessage.xmotion.root : rMessage.xcrossing.root;
m_nDragTimestamp = rMessage.type == MotionNotify ? rMessage.xmotion.time : rMessage.xcrossing.time;
@@ -2747,22 +2747,22 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
// send XdndLeave
XEvent aEvent;
aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.format = 32;
- aEvent.xclient.message_type = m_nXdndLeave;
- aEvent.xclient.window = m_aDropWindow;
- aEvent.xclient.data.l[0] = m_aWindow;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.message_type = m_nXdndLeave;
+ aEvent.xclient.window = m_aDropWindow;
+ aEvent.xclient.data.l[0] = m_aWindow;
memset( aEvent.xclient.data.l+1, 0, sizeof(long)*4);
m_aDropWindow = m_aDropProxy = None;
XSendEvent( m_pDisplay, m_aDropProxy, False, NoEventMask, &aEvent );
}
// notify the listener
DragSourceDropEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = DNDConstants::ACTION_NONE;
- dsde.DropSuccess = sal_False;
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = DNDConstants::ACTION_NONE;
+ dsde.DropSuccess = sal_False;
Reference< XDragSourceListener > xListener( m_xDragSourceListener );
m_xDragSourceListener.clear();
aGuard.clear();
@@ -2771,9 +2771,9 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
else
{
/*
- * man page says: state is state immediate PRIOR to the
- * event. It would seem that this is a somewhat arguable
- * design decision.
+ * man page says: state is state immediate PRIOR to the
+ * event. It would seem that this is a somewhat arguable
+ * design decision.
*/
int nState = rMessage.xkey.state;
int nNewState = 0;
@@ -2810,15 +2810,15 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
XLIB_Window aChild;
XTranslateCoordinates( m_pDisplay, rMessage.xbutton.root, m_aDropWindow, rMessage.xbutton.x_root, rMessage.xbutton.y_root, &x, &y, &aChild );
DropTargetDropEvent dtde;
- dtde.Source = static_cast< OWeakObject* >(it->second.m_pTarget );
- dtde.Context = new DropTargetDropContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
- dtde.LocationX = x;
- dtde.LocationY = y;
- dtde.DropAction = m_nUserDragAction;
- dtde.SourceActions = m_nSourceActions;
- dtde.Transferable = m_xDragSourceTransferable;
- m_bDropSent = true;
- m_nDropTimeout = time( NULL );
+ dtde.Source = static_cast< OWeakObject* >(it->second.m_pTarget );
+ dtde.Context = new DropTargetDropContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
+ dtde.LocationX = x;
+ dtde.LocationY = y;
+ dtde.DropAction = m_nUserDragAction;
+ dtde.SourceActions = m_nSourceActions;
+ dtde.Transferable = m_xDragSourceTransferable;
+ m_bDropSent = true;
+ m_nDropTimeout = time( NULL );
m_bDropWaitingForCompletion = true;
aGuard.clear();
it->second->drop( dtde );
@@ -2832,18 +2832,18 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
XEvent aEvent;
aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.format = 32;
- aEvent.xclient.message_type = m_nXdndDrop;
- aEvent.xclient.window = m_aDropWindow;
- aEvent.xclient.data.l[0] = m_aWindow;
- aEvent.xclient.data.l[1] = 0;
- aEvent.xclient.data.l[2] = rMessage.xbutton.time;
- aEvent.xclient.data.l[3] = 0;
- aEvent.xclient.data.l[4] = 0;
-
- m_bDropSent = true;
- m_nDropTimeout = time( NULL );
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.message_type = m_nXdndDrop;
+ aEvent.xclient.window = m_aDropWindow;
+ aEvent.xclient.data.l[0] = m_aWindow;
+ aEvent.xclient.data.l[1] = 0;
+ aEvent.xclient.data.l[2] = rMessage.xbutton.time;
+ aEvent.xclient.data.l[3] = 0;
+ aEvent.xclient.data.l[4] = 0;
+
+ m_bDropSent = true;
+ m_nDropTimeout = time( NULL );
XSendEvent( m_pDisplay, m_aDropProxy, False, NoEventMask, &aEvent );
bCancel = false;
}
@@ -2860,16 +2860,16 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
XLIB_Window aDummy;
XEvent aEvent;
aEvent.type = ButtonPress;
- aEvent.xbutton.display = m_pDisplay;
- aEvent.xbutton.window = m_aDropWindow;
- aEvent.xbutton.root = rMessage.xbutton.root;
- aEvent.xbutton.subwindow = m_aDropWindow;
- aEvent.xbutton.time = rMessage.xbutton.time+1;
- aEvent.xbutton.x_root = rMessage.xbutton.x_root;
- aEvent.xbutton.y_root = rMessage.xbutton.y_root;
- aEvent.xbutton.state = rMessage.xbutton.state;
- aEvent.xbutton.button = Button2;
- aEvent.xbutton.same_screen = True;
+ aEvent.xbutton.display = m_pDisplay;
+ aEvent.xbutton.window = m_aDropWindow;
+ aEvent.xbutton.root = rMessage.xbutton.root;
+ aEvent.xbutton.subwindow = m_aDropWindow;
+ aEvent.xbutton.time = rMessage.xbutton.time+1;
+ aEvent.xbutton.x_root = rMessage.xbutton.x_root;
+ aEvent.xbutton.y_root = rMessage.xbutton.y_root;
+ aEvent.xbutton.state = rMessage.xbutton.state;
+ aEvent.xbutton.button = Button2;
+ aEvent.xbutton.same_screen = True;
XTranslateCoordinates( m_pDisplay,
rMessage.xbutton.root, m_aDropWindow,
rMessage.xbutton.x_root, rMessage.xbutton.y_root,
@@ -2881,12 +2881,12 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
aEvent.xbutton.state |= Button2Mask;
XSendEvent( m_pDisplay, m_aDropWindow, False, ButtonReleaseMask, &aEvent );
- m_bDropSent = true;
- m_nDropTimeout = time( NULL );
+ m_bDropSent = true;
+ m_nDropTimeout = time( NULL );
XSendEvent( m_pDisplay, m_aDropProxy, False, NoEventMask, &aEvent );
- m_bWaitingForPrimaryConversion = true;
- m_bDropSent = true;
- m_nDropTimeout = time( NULL );
+ m_bWaitingForPrimaryConversion = true;
+ m_bDropSent = true;
+ m_nDropTimeout = time( NULL );
// HACK :-)
aGuard.clear();
static_cast< X11Clipboard* >( pAdaptor )->setContents( m_xDragSourceTransferable, Reference< ::com::sun::star::datatransfer::clipboard::XClipboardOwner >() );
@@ -2899,11 +2899,11 @@ bool SelectionManager::handleDragEvent( XEvent& rMessage )
{
// cancel drag
DragSourceDropEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = DNDConstants::ACTION_NONE;
- dsde.DropSuccess = sal_False;
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = DNDConstants::ACTION_NONE;
+ dsde.DropSuccess = sal_False;
Reference< XDragSourceListener > xListener( m_xDragSourceListener );
m_xDragSourceListener.clear();
aGuard.clear();
@@ -2950,11 +2950,11 @@ void SelectionManager::reject( XLIB_Window aDropWindow, XLIB_Time )
if( m_bDropSent && m_xDragSourceListener.is() )
{
DragSourceDropEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = DNDConstants::ACTION_NONE;
- dsde.DropSuccess = sal_False;
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = DNDConstants::ACTION_NONE;
+ dsde.DropSuccess = sal_False;
m_xDragSourceListener->dragDropEnd( dsde );
m_xDragSourceListener.clear();
}
@@ -2962,7 +2962,7 @@ void SelectionManager::reject( XLIB_Window aDropWindow, XLIB_Time )
}
/*
- * XDragSource
+ * XDragSource
*/
sal_Bool SelectionManager::isDragImageSupported() throw()
@@ -2999,8 +2999,8 @@ int SelectionManager::getXdndVersion( XLIB_Window aWindow, XLIB_Window& rProxy )
rProxy = None;
/*
- * XListProperties is used here to avoid unnecessary XGetWindowProperty calls
- * and therefore reducing latency penalty
+ * XListProperties is used here to avoid unnecessary XGetWindowProperty calls
+ * and therefore reducing latency penalty
*/
pProperties = XListProperties( m_pDisplay, aWindow, &nProperties );
// first look for proxy
@@ -3100,11 +3100,11 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
DragSourceDragEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = nNewProtocolVersion >= 0 ? m_nUserDragAction : DNDConstants::ACTION_COPY;
- dsde.UserAction = nNewProtocolVersion >= 0 ? m_nUserDragAction : DNDConstants::ACTION_COPY;
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = nNewProtocolVersion >= 0 ? m_nUserDragAction : DNDConstants::ACTION_COPY;
+ dsde.UserAction = nNewProtocolVersion >= 0 ? m_nUserDragAction : DNDConstants::ACTION_COPY;
::std::hash_map< XLIB_Window, DropTargetEntry >::const_iterator it;
if( aNewCurrentWindow != m_aDropWindow )
@@ -3120,7 +3120,7 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
// shortcut for own drop targets
{
DropTargetEvent dte;
- dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget );
+ dte.Source = static_cast< OWeakObject* >( it->second.m_pTarget );
aGuard.clear();
it->second.m_pTarget->dragExit( dte );
aGuard.reset();
@@ -3130,12 +3130,12 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
// send old drop target a XdndLeave
XEvent aEvent;
aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.format = 32;
- aEvent.xclient.message_type = m_nXdndLeave;
- aEvent.xclient.window = m_aDropWindow;
- aEvent.xclient.data.l[0] = m_aWindow;
- aEvent.xclient.data.l[1] = 0;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.message_type = m_nXdndLeave;
+ aEvent.xclient.window = m_aDropWindow;
+ aEvent.xclient.data.l[0] = m_aWindow;
+ aEvent.xclient.data.l[1] = 0;
XSendEvent( m_pDisplay, m_aDropProxy, False, NoEventMask, &aEvent );
}
if( xListener.is() )
@@ -3146,9 +3146,9 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
}
}
- m_nCurrentProtocolVersion = nNewProtocolVersion;
- m_aDropWindow = aNewCurrentWindow;
- m_aDropProxy = aNewProxy != None ? aNewProxy : m_aDropWindow;
+ m_nCurrentProtocolVersion = nNewProtocolVersion;
+ m_aDropWindow = aNewCurrentWindow;
+ m_aDropProxy = aNewProxy != None ? aNewProxy : m_aDropWindow;
it = m_aDropTargets.find( m_aDropWindow );
if( it != m_aDropTargets.end() && ! it->second.m_pTarget->m_bActive )
@@ -3168,13 +3168,13 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
{
XTranslateCoordinates( m_pDisplay, aRoot, m_aDropWindow, nX, nY, &nWinX, &nWinY, &aChild );
DropTargetDragEnterEvent dtde;
- dtde.Source = static_cast< OWeakObject* >( it->second.m_pTarget );
- dtde.Context = new DropTargetDragContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
- dtde.LocationX = nWinX;
- dtde.LocationY = nWinY;
- dtde.DropAction = m_nUserDragAction;
- dtde.SourceActions = m_nSourceActions;
- dtde.SupportedDataFlavors = m_xDragSourceTransferable->getTransferDataFlavors();
+ dtde.Source = static_cast< OWeakObject* >( it->second.m_pTarget );
+ dtde.Context = new DropTargetDragContext( m_aCurrentDropWindow, m_nDropTimestamp, *this );
+ dtde.LocationX = nWinX;
+ dtde.LocationY = nWinY;
+ dtde.DropAction = m_nUserDragAction;
+ dtde.SourceActions = m_nSourceActions;
+ dtde.SupportedDataFlavors = m_xDragSourceTransferable->getTransferDataFlavors();
aGuard.clear();
it->second.m_pTarget->dragEnter( dtde );
aGuard.reset();
@@ -3183,12 +3183,12 @@ void SelectionManager::updateDragWindow( int nX, int nY, XLIB_Window aRoot )
{
XEvent aEvent;
aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.format = 32;
- aEvent.xclient.message_type = m_nXdndEnter;
- aEvent.xclient.window = m_aDropWindow;
- aEvent.xclient.data.l[0] = m_aWindow;
- aEvent.xclient.data.l[1] = m_nCurrentProtocolVersion << 24;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.message_type = m_nXdndEnter;
+ aEvent.xclient.window = m_aDropWindow;
+ aEvent.xclient.data.l[0] = m_aWindow;
+ aEvent.xclient.data.l[1] = m_nCurrentProtocolVersion << 24;
memset( aEvent.xclient.data.l + 2, 0, sizeof( long )*3 );
// fill in data types
::std::list< Atom > aConversions;
@@ -3227,11 +3227,11 @@ void SelectionManager::startDrag(
#endif
DragSourceDropEvent aDragFailedEvent;
- aDragFailedEvent.Source = static_cast< OWeakObject* >(this);
- aDragFailedEvent.DragSource = static_cast< XDragSource* >(this);
- aDragFailedEvent.DragSourceContext = new DragSourceContext( None, CurrentTime, *this );
- aDragFailedEvent.DropAction = DNDConstants::ACTION_NONE;
- aDragFailedEvent.DropSuccess = sal_False;
+ aDragFailedEvent.Source = static_cast< OWeakObject* >(this);
+ aDragFailedEvent.DragSource = static_cast< XDragSource* >(this);
+ aDragFailedEvent.DragSourceContext = new DragSourceContext( None, CurrentTime, *this );
+ aDragFailedEvent.DropAction = DNDConstants::ACTION_NONE;
+ aDragFailedEvent.DropSuccess = sal_False;
if( m_aDragRunning.check() )
{
@@ -3379,10 +3379,10 @@ void SelectionManager::startDrag(
return;
}
- m_xDragSourceTransferable = transferable;
- m_xDragSourceListener = listener;
- m_aDragFlavors = transferable->getTransferDataFlavors();
- m_aCurrentCursor = None;
+ m_xDragSourceTransferable = transferable;
+ m_xDragSourceListener = listener;
+ m_aDragFlavors = transferable->getTransferDataFlavors();
+ m_aCurrentCursor = None;
requestOwnership( m_nXdndSelection );
@@ -3398,17 +3398,17 @@ void SelectionManager::startDrag(
XChangeProperty( m_pDisplay, m_aWindow, m_nXdndTypeList, XA_ATOM, 32, PropModeReplace, (unsigned char*)pTypes, nTypes );
- m_nSourceActions = sourceActions | DNDConstants::ACTION_DEFAULT;
- m_nUserDragAction = DNDConstants::ACTION_MOVE & m_nSourceActions;
+ m_nSourceActions = sourceActions | DNDConstants::ACTION_DEFAULT;
+ m_nUserDragAction = DNDConstants::ACTION_MOVE & m_nSourceActions;
if( ! m_nUserDragAction )
- m_nUserDragAction = DNDConstants::ACTION_COPY & m_nSourceActions;
+ m_nUserDragAction = DNDConstants::ACTION_COPY & m_nSourceActions;
if( ! m_nUserDragAction )
- m_nUserDragAction = DNDConstants::ACTION_LINK & m_nSourceActions;
- m_nTargetAcceptAction = DNDConstants::ACTION_DEFAULT;
- m_bDropSent = false;
- m_bDropSuccess = false;
- m_bWaitingForPrimaryConversion = false;
- m_nDragButton = Button1; // default to left button
+ m_nUserDragAction = DNDConstants::ACTION_LINK & m_nSourceActions;
+ m_nTargetAcceptAction = DNDConstants::ACTION_DEFAULT;
+ m_bDropSent = false;
+ m_bDropSuccess = false;
+ m_bWaitingForPrimaryConversion = false;
+ m_nDragButton = Button1; // default to left button
com::sun::star::awt::MouseEvent aEvent;
if( trigger.Event >>= aEvent )
{
@@ -3439,17 +3439,17 @@ void SelectionManager::startDrag(
m_xDragSourceListener.clear();
m_xDragSourceTransferable.clear();
- m_bDropSent = false;
- m_bDropSuccess = false;
- m_bWaitingForPrimaryConversion = false;
- m_aDropWindow = None;
- m_aDropProxy = None;
- m_nCurrentProtocolVersion = nXdndProtocolRevision;
- m_nNoPosX = 0;
- m_nNoPosY = 0;
- m_nNoPosWidth = 0;
- m_nNoPosHeight = 0;
- m_aCurrentCursor = None;
+ m_bDropSent = false;
+ m_bDropSuccess = false;
+ m_bWaitingForPrimaryConversion = false;
+ m_aDropWindow = None;
+ m_aDropProxy = None;
+ m_nCurrentProtocolVersion = nXdndProtocolRevision;
+ m_nNoPosX = 0;
+ m_nNoPosY = 0;
+ m_nNoPosWidth = 0;
+ m_nNoPosHeight = 0;
+ m_aCurrentCursor = None;
XUngrabPointer( m_pDisplay, CurrentTime );
XUngrabKeyboard( m_pDisplay, CurrentTime );
@@ -3509,27 +3509,27 @@ void SelectionManager::dragDoDispatch()
m_xDragSourceTransferable.clear();
DragSourceDropEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = DNDConstants::ACTION_NONE;
- dsde.DropSuccess = sal_False;
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = DNDConstants::ACTION_NONE;
+ dsde.DropSuccess = sal_False;
// cleanup after drag
if( m_bWaitingForPrimaryConversion )
getAdaptor( XA_PRIMARY )->clearTransferable();
- m_bDropSent = false;
- m_bDropSuccess = false;
- m_bWaitingForPrimaryConversion = false;
- m_aDropWindow = None;
- m_aDropProxy = None;
- m_nCurrentProtocolVersion = nXdndProtocolRevision;
- m_nNoPosX = 0;
- m_nNoPosY = 0;
- m_nNoPosWidth = 0;
- m_nNoPosHeight = 0;
- m_aCurrentCursor = None;
+ m_bDropSent = false;
+ m_bDropSuccess = false;
+ m_bWaitingForPrimaryConversion = false;
+ m_aDropWindow = None;
+ m_aDropProxy = None;
+ m_nCurrentProtocolVersion = nXdndProtocolRevision;
+ m_nNoPosX = 0;
+ m_nNoPosY = 0;
+ m_nNoPosWidth = 0;
+ m_nNoPosHeight = 0;
+ m_aCurrentCursor = None;
XUngrabPointer( m_pDisplay, CurrentTime );
XUngrabKeyboard( m_pDisplay, CurrentTime );
@@ -3549,7 +3549,7 @@ void SelectionManager::dragDoDispatch()
}
/*
- * XDragSourceContext
+ * XDragSourceContext
*/
sal_Int32 SelectionManager::getCurrentCursor()
@@ -3606,17 +3606,17 @@ void SelectionManager::transferablesFlavorsChanged()
XEvent aEvent;
aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.format = 32;
- aEvent.xclient.window = m_aDropWindow;
- aEvent.xclient.data.l[0] = m_aWindow;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.window = m_aDropWindow;
+ aEvent.xclient.data.l[0] = m_aWindow;
- aEvent.xclient.message_type = m_nXdndLeave;
- aEvent.xclient.data.l[1] = 0;
+ aEvent.xclient.message_type = m_nXdndLeave;
+ aEvent.xclient.data.l[1] = 0;
XSendEvent( m_pDisplay, m_aDropProxy, False, NoEventMask, &aEvent );
- aEvent.xclient.message_type = m_nXdndEnter;
- aEvent.xclient.data.l[1] = m_nCurrentProtocolVersion << 24;
+ aEvent.xclient.message_type = m_nXdndEnter;
+ aEvent.xclient.data.l[1] = m_nCurrentProtocolVersion << 24;
memset( aEvent.xclient.data.l + 2, 0, sizeof( long )*3 );
// fill in data types
if( nTypes > 3 )
@@ -3629,7 +3629,7 @@ void SelectionManager::transferablesFlavorsChanged()
}
/*
- * dispatch loop
+ * dispatch loop
*/
// ------------------------------------------------------------------------
@@ -3637,9 +3637,9 @@ void SelectionManager::transferablesFlavorsChanged()
bool SelectionManager::handleXEvent( XEvent& rEvent )
{
/*
- * since we are XConnectionListener to a second X display
- * to get client messages it is essential not to dispatch
- * events twice that we get on both connections
+ * since we are XConnectionListener to a second X display
+ * to get client messages it is essential not to dispatch
+ * events twice that we get on both connections
*
* #95201# between dispatching ButtonPress and startDrag
* the user can already have released the mouse. The ButtonRelease
@@ -3696,9 +3696,9 @@ bool SelectionManager::handleXEvent( XEvent& rEvent )
bHandled = handleDragEvent( rEvent );
// messages from drag source
else if(
- rEvent.xclient.message_type == m_nXdndEnter ||
- rEvent.xclient.message_type == m_nXdndLeave ||
- rEvent.xclient.message_type == m_nXdndPosition ||
+ rEvent.xclient.message_type == m_nXdndEnter ||
+ rEvent.xclient.message_type == m_nXdndLeave ||
+ rEvent.xclient.message_type == m_nXdndPosition ||
rEvent.xclient.message_type == m_nXdndDrop
)
bHandled = handleDropEvent( rEvent.xclient );
@@ -3929,10 +3929,10 @@ void SelectionManager::registerHandler( Atom selection, SelectionAdaptor& rAdapt
{
osl::MutexGuard aGuard(m_aMutex);
- Selection* pNewSelection = new Selection();
- pNewSelection->m_pAdaptor = &rAdaptor;
- pNewSelection->m_aAtom = selection;
- m_aSelections[ selection ] = pNewSelection;
+ Selection* pNewSelection = new Selection();
+ pNewSelection->m_pAdaptor = &rAdaptor;
+ pNewSelection->m_aAtom = selection;
+ m_aSelections[ selection ] = pNewSelection;
}
// ------------------------------------------------------------------------
@@ -4031,22 +4031,22 @@ void SelectionManager::deregisterDropTarget( XLIB_Window aWindow )
// send XdndLeave
XEvent aEvent;
aEvent.type = ClientMessage;
- aEvent.xclient.display = m_pDisplay;
- aEvent.xclient.format = 32;
- aEvent.xclient.message_type = m_nXdndLeave;
- aEvent.xclient.window = m_aDropWindow;
- aEvent.xclient.data.l[0] = m_aWindow;
+ aEvent.xclient.display = m_pDisplay;
+ aEvent.xclient.format = 32;
+ aEvent.xclient.message_type = m_nXdndLeave;
+ aEvent.xclient.window = m_aDropWindow;
+ aEvent.xclient.data.l[0] = m_aWindow;
memset( aEvent.xclient.data.l+1, 0, sizeof(long)*4);
m_aDropWindow = m_aDropProxy = None;
XSendEvent( m_pDisplay, m_aDropProxy, False, NoEventMask, &aEvent );
}
// notify the listener
DragSourceDropEvent dsde;
- dsde.Source = static_cast< OWeakObject* >(this);
- dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
- dsde.DragSource = static_cast< XDragSource* >(this);
- dsde.DropAction = DNDConstants::ACTION_NONE;
- dsde.DropSuccess = sal_False;
+ dsde.Source = static_cast< OWeakObject* >(this);
+ dsde.DragSourceContext = new DragSourceContext( m_aDropWindow, m_nDragTimestamp, *this );
+ dsde.DragSource = static_cast< XDragSource* >(this);
+ dsde.DropAction = DNDConstants::ACTION_NONE;
+ dsde.DropSuccess = sal_False;
Reference< XDragSourceListener > xListener( m_xDragSourceListener );
m_xDragSourceListener.clear();
aGuard.clear();
@@ -4055,7 +4055,7 @@ void SelectionManager::deregisterDropTarget( XLIB_Window aWindow )
}
/*
- * SelectionAdaptor
+ * SelectionAdaptor
*/
Reference< XTransferable > SelectionManager::getTransferable() throw()
@@ -4086,7 +4086,7 @@ Reference< XInterface > SelectionManager::getReference() throw()
// ------------------------------------------------------------------------
/*
- * SelectionManagerHolder
+ * SelectionManagerHolder
*/
SelectionManagerHolder::SelectionManagerHolder() :
@@ -4126,7 +4126,7 @@ void SelectionManagerHolder::initialize( const Sequence< Any >& arguments ) thro
}
/*
- * XDragSource
+ * XDragSource
*/
sal_Bool SelectionManagerHolder::isDragImageSupported() throw()
@@ -4157,7 +4157,7 @@ void SelectionManagerHolder::startDrag(
// ------------------------------------------------------------------------
/*
- * XServiceInfo
+ * XServiceInfo
*/
// ------------------------------------------------------------------------
diff --git a/vcl/unx/source/dtrans/X11_selection.hxx b/vcl/unx/source/dtrans/X11_selection.hxx
index f5534dab81f5..0b53e39a2e4f 100644
--- a/vcl/unx/source/dtrans/X11_selection.hxx
+++ b/vcl/unx/source/dtrans/X11_selection.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -81,11 +81,11 @@ namespace x11 {
>
{
public:
- ::osl::Mutex m_aMutex;
- bool m_bActive;
- sal_Int8 m_nDefaultActions;
- XLIB_Window m_aTargetWindow;
- class SelectionManager* m_pSelectionManager;
+ ::osl::Mutex m_aMutex;
+ bool m_bActive;
+ sal_Int8 m_nDefaultActions;
+ XLIB_Window m_aTargetWindow;
+ class SelectionManager* m_pSelectionManager;
Reference< ::com::sun::star::datatransfer::dnd::XDragSource >
m_xSelectionManager;
::std::list< Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener > >
@@ -101,19 +101,19 @@ namespace x11 {
void drop( const ::com::sun::star::datatransfer::dnd::DropTargetDropEvent& dtde ) throw();
// XInitialization
- virtual void SAL_CALL initialize( const Sequence< Any >& args ) throw ( ::com::sun::star::uno::Exception );
+ virtual void SAL_CALL initialize( const Sequence< Any >& args ) throw ( ::com::sun::star::uno::Exception );
// XDropTarget
- virtual void SAL_CALL addDropTargetListener( const Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& ) throw();
- virtual void SAL_CALL removeDropTargetListener( const Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& ) throw();
- virtual sal_Bool SAL_CALL isActive() throw();
- virtual void SAL_CALL setActive( sal_Bool active ) throw();
- virtual sal_Int8 SAL_CALL getDefaultActions() throw();
- virtual void SAL_CALL setDefaultActions( sal_Int8 actions ) throw();
+ virtual void SAL_CALL addDropTargetListener( const Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& ) throw();
+ virtual void SAL_CALL removeDropTargetListener( const Reference< ::com::sun::star::datatransfer::dnd::XDropTargetListener >& ) throw();
+ virtual sal_Bool SAL_CALL isActive() throw();
+ virtual void SAL_CALL setActive( sal_Bool active ) throw();
+ virtual sal_Int8 SAL_CALL getDefaultActions() throw();
+ virtual void SAL_CALL setDefaultActions( sal_Int8 actions ) throw();
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName() throw();
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw();
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw();
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >
SAL_CALL getSupportedServiceNames() throw();
};
@@ -134,17 +134,17 @@ namespace x11 {
// XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName() throw();
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw();
+ virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw();
virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >
SAL_CALL getSupportedServiceNames() throw();
// XInitialization
- virtual void SAL_CALL initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception );
+ virtual void SAL_CALL initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception );
// XDragSource
- virtual sal_Bool SAL_CALL isDragImageSupported() throw();
- virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) throw();
- virtual void SAL_CALL startDrag(
+ virtual sal_Bool SAL_CALL isDragImageSupported() throw();
+ virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) throw();
+ virtual void SAL_CALL startDrag(
const ::com::sun::star::datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image,
const Reference< ::com::sun::star::datatransfer::XTransferable >& transferable,
@@ -152,8 +152,8 @@ namespace x11 {
) throw();
};
-
-
+
+
class SelectionManager :
public ::cppu::WeakImplHelper4<
::com::sun::star::datatransfer::dnd::XDragSource,
@@ -174,13 +174,13 @@ namespace x11 {
// property used to transfer the data
struct IncrementalTransfer
{
- Sequence< sal_Int8 > m_aData;
- int m_nBufferPos;
- XLIB_Window m_aRequestor;
- Atom m_aProperty;
- Atom m_aTarget;
- int m_nFormat;
- int m_nTransferStartTime;
+ Sequence< sal_Int8 > m_aData;
+ int m_nBufferPos;
+ XLIB_Window m_aRequestor;
+ Atom m_aProperty;
+ Atom m_aTarget;
+ int m_nFormat;
+ int m_nTransferStartTime;
};
int m_nIncrementalThreshold;
@@ -192,26 +192,26 @@ namespace x11 {
Inactive, WaitingForResponse, WaitingForData, IncrementalTransfer
};
- State m_eState;
- SelectionAdaptor* m_pAdaptor;
- Atom m_aAtom;
- ::osl::Condition m_aDataArrived;
- Sequence< sal_Int8 > m_aData;
+ State m_eState;
+ SelectionAdaptor* m_pAdaptor;
+ Atom m_aAtom;
+ ::osl::Condition m_aDataArrived;
+ Sequence< sal_Int8 > m_aData;
Sequence< ::com::sun::star::datatransfer::DataFlavor >
m_aTypes;
- std::vector< Atom > m_aNativeTypes;
+ std::vector< Atom > m_aNativeTypes;
// this is used for caching
// m_aTypes is invalid after 2 seconds
// m_aNativeTypes contains the corresponding original atom
- Atom m_aRequestedType;
+ Atom m_aRequestedType;
// m_aRequestedType is only valid while WaitingForResponse and WaitingFotData
- int m_nLastTimestamp;
- bool m_bHaveUTF16;
+ int m_nLastTimestamp;
+ bool m_bHaveUTF16;
Atom m_aUTF8Type;
- bool m_bHaveCompound;
- bool m_bOwner;
- XLIB_Window m_aLastOwner;
- PixmapHolder* m_pPixmap;
+ bool m_bHaveCompound;
+ bool m_bOwner;
+ XLIB_Window m_aLastOwner;
+ PixmapHolder* m_pPixmap;
// m_nOrigXLIB_Timestamp contains the XLIB_Timestamp at which the seclection
// was acquired; needed for XLIB_TimeSTAMP target
XLIB_Time m_nOrigTimestamp;
@@ -234,8 +234,8 @@ namespace x11 {
// a struct to hold data associated with a XDropTarget
struct DropTargetEntry
{
- DropTarget* m_pTarget;
- XLIB_Window m_aRootWindow;
+ DropTarget* m_pTarget;
+ XLIB_Window m_aRootWindow;
DropTargetEntry() : m_pTarget( NULL ), m_aRootWindow( None ) {}
DropTargetEntry( DropTarget* pTarget ) :
@@ -254,11 +254,11 @@ namespace x11 {
};
// internal data
- Display* m_pDisplay;
- oslThread m_aThread;
- oslThread m_aDragExecuteThread;
- ::osl::Condition m_aDragRunning;
- XLIB_Window m_aWindow;
+ Display* m_pDisplay;
+ oslThread m_aThread;
+ oslThread m_aDragExecuteThread;
+ ::osl::Condition m_aDragRunning;
+ XLIB_Window m_aWindow;
Reference< ::com::sun::star::awt::XDisplayConnection >
m_xDisplayConnection;
Reference< com::sun::star::script::XInvocation >
@@ -275,19 +275,19 @@ namespace x11 {
// with one of our targets. The data.l[0] member
// (conatining the drag source XLIB_Window) is set
// to None while that is not the case
- XClientMessageEvent m_aDropEnterEvent;
+ XClientMessageEvent m_aDropEnterEvent;
// set to false on XdndEnter
// set to true on first XdndPosition or XdndLeave
- bool m_bDropEnterSent;
- XLIB_Window m_aCurrentDropWindow;
+ bool m_bDropEnterSent;
+ XLIB_Window m_aCurrentDropWindow;
// XLIB_Time code of XdndDrop
- XLIB_Time m_nDropTime;
- sal_Int8 m_nLastDropAction;
+ XLIB_Time m_nDropTime;
+ sal_Int8 m_nLastDropAction;
// XTransferable for Xdnd with foreign drag source
Reference< ::com::sun::star::datatransfer::XTransferable >
m_xDropTransferable;
- int m_nLastX, m_nLastY;
- XLIB_Time m_nDropTimestamp;
+ int m_nLastX, m_nLastY;
+ XLIB_Time m_nDropTimestamp;
// set to true when calling drop()
// if another XdndEnter is received this shows that
// someone forgot to call dropComplete - we should reset
@@ -297,32 +297,32 @@ namespace x11 {
// drag only
// None if no Dnd action is running with us as source
- XLIB_Window m_aDropWindow;
+ XLIB_Window m_aDropWindow;
// either m_aDropXLIB_Window or its XdndProxy
- XLIB_Window m_aDropProxy;
- XLIB_Window m_aDragSourceWindow;
+ XLIB_Window m_aDropProxy;
+ XLIB_Window m_aDragSourceWindow;
// XTransferable for Xdnd when we are drag source
Reference< ::com::sun::star::datatransfer::XTransferable >
m_xDragSourceTransferable;
Reference< ::com::sun::star::datatransfer::dnd::XDragSourceListener >
m_xDragSourceListener;
// root coordinates
- int m_nLastDragX, m_nLastDragY;
+ int m_nLastDragX, m_nLastDragY;
Sequence< ::com::sun::star::datatransfer::DataFlavor >
m_aDragFlavors;
// the rectangle the pointer must leave until a new XdndPosition should
// be sent. empty unless the drop target told to fill
- int m_nNoPosX, m_nNoPosY, m_nNoPosWidth, m_nNoPosHeight;
- unsigned int m_nDragButton;
- sal_Int8 m_nUserDragAction;
- sal_Int8 m_nTargetAcceptAction;
- sal_Int8 m_nSourceActions;
- bool m_bLastDropAccepted;
- bool m_bDropSuccess;
- bool m_bDropSent;
- time_t m_nDropTimeout;
- bool m_bWaitingForPrimaryConversion;
- XLIB_Time m_nDragTimestamp;
+ int m_nNoPosX, m_nNoPosY, m_nNoPosWidth, m_nNoPosHeight;
+ unsigned int m_nDragButton;
+ sal_Int8 m_nUserDragAction;
+ sal_Int8 m_nTargetAcceptAction;
+ sal_Int8 m_nSourceActions;
+ bool m_bLastDropAccepted;
+ bool m_bDropSuccess;
+ bool m_bDropSent;
+ time_t m_nDropTimeout;
+ bool m_bWaitingForPrimaryConversion;
+ XLIB_Time m_nDragTimestamp;
// drag cursors
XLIB_Cursor m_aMoveCursor;
@@ -334,36 +334,36 @@ namespace x11 {
// drag and drop
- int m_nCurrentProtocolVersion;
+ int m_nCurrentProtocolVersion;
::std::hash_map< XLIB_Window, DropTargetEntry >
m_aDropTargets;
// some special atoms that are needed often
- Atom m_nCLIPBOARDAtom;
- Atom m_nTARGETSAtom;
+ Atom m_nCLIPBOARDAtom;
+ Atom m_nTARGETSAtom;
Atom m_nTIMESTAMPAtom;
- Atom m_nTEXTAtom;
- Atom m_nINCRAtom;
- Atom m_nCOMPOUNDAtom;
- Atom m_nMULTIPLEAtom;
- Atom m_nUTF16Atom;
+ Atom m_nTEXTAtom;
+ Atom m_nINCRAtom;
+ Atom m_nCOMPOUNDAtom;
+ Atom m_nMULTIPLEAtom;
+ Atom m_nUTF16Atom;
Atom m_nImageBmpAtom;
- Atom m_nXdndAware;
- Atom m_nXdndEnter;
- Atom m_nXdndLeave;
- Atom m_nXdndPosition;
- Atom m_nXdndStatus;
- Atom m_nXdndDrop;
- Atom m_nXdndFinished;
- Atom m_nXdndSelection;
- Atom m_nXdndTypeList;
- Atom m_nXdndProxy;
- Atom m_nXdndActionCopy;
- Atom m_nXdndActionMove;
- Atom m_nXdndActionLink;
- Atom m_nXdndActionAsk;
- Atom m_nXdndActionPrivate;
+ Atom m_nXdndAware;
+ Atom m_nXdndEnter;
+ Atom m_nXdndLeave;
+ Atom m_nXdndPosition;
+ Atom m_nXdndStatus;
+ Atom m_nXdndDrop;
+ Atom m_nXdndFinished;
+ Atom m_nXdndSelection;
+ Atom m_nXdndTypeList;
+ Atom m_nXdndProxy;
+ Atom m_nXdndActionCopy;
+ Atom m_nXdndActionMove;
+ Atom m_nXdndActionLink;
+ Atom m_nXdndActionAsk;
+ Atom m_nXdndActionPrivate;
// caching for atoms
::std::hash_map< Atom, ::rtl::OUString >
@@ -377,12 +377,12 @@ namespace x11 {
// IncrementalTransfers in progress
std::hash_map< XLIB_Window, std::hash_map< Atom, IncrementalTransfer > >
m_aIncrementals;
-
+
// do not use X11 multithreading capabilities
// since this leads to deadlocks in different Xlib implentations
// (XFree as well as Xsun) use an own mutex instead
- ::osl::Mutex m_aMutex;
-
+ ::osl::Mutex m_aMutex;
+
SelectionManager();
~SelectionManager();
@@ -405,7 +405,7 @@ namespace x11 {
XLIB_Cursor createCursor( const char* pPointerData, const char* pMaskData, int width, int height, int hotX, int hotY );
// coordinates on root XLIB_Window
void updateDragWindow( int nX, int nY, XLIB_Window aRoot );
-
+
bool getPasteData( Atom selection, Atom type, Sequence< sal_Int8 >& rData );
// returns true if conversion was successful
bool convertData( const Reference< ::com::sun::star::datatransfer::XTransferable >& xTransferable,
@@ -441,14 +441,14 @@ namespace x11 {
Display * getDisplay() { return m_pDisplay; };
XLIB_Window getWindow() { return m_aWindow; };
-
+
void registerHandler( Atom selection, SelectionAdaptor& rAdaptor );
void deregisterHandler( Atom selection );
bool requestOwnership( Atom selection );
-
+
// allow for synchronization over one mutex for XClipboard
osl::Mutex& getMutex() { return m_aMutex; }
-
+
Atom getAtom( const ::rtl::OUString& rString );
const ::rtl::OUString& getString( Atom nAtom );
@@ -482,15 +482,15 @@ namespace x11 {
void shutdown() throw();
// XInitialization
- virtual void SAL_CALL initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception );
+ virtual void SAL_CALL initialize( const Sequence< Any >& arguments ) throw( ::com::sun::star::uno::Exception );
// XEventHandler
- virtual sal_Bool SAL_CALL handleEvent( const Any& event ) throw();
+ virtual sal_Bool SAL_CALL handleEvent( const Any& event ) throw();
// XDragSource
- virtual sal_Bool SAL_CALL isDragImageSupported() throw();
- virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) throw();
- virtual void SAL_CALL startDrag(
+ virtual sal_Bool SAL_CALL isDragImageSupported() throw();
+ virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) throw();
+ virtual void SAL_CALL startDrag(
const ::com::sun::star::datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image,
const Reference< ::com::sun::star::datatransfer::XTransferable >& transferable,
@@ -516,11 +516,11 @@ namespace x11 {
// ------------------------------------------------------------------------
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL Xdnd_getSupportedServiceNames();
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Xdnd_createInstance(
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Xdnd_createInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMultiServiceFactory);
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL Xdnd_dropTarget_getSupportedServiceNames();
- ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Xdnd_dropTarget_createInstance(
+ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Xdnd_dropTarget_createInstance(
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMultiServiceFactory);
// ------------------------------------------------------------------------
diff --git a/vcl/unx/source/dtrans/X11_service.cxx b/vcl/unx/source/dtrans/X11_service.cxx
index cfb1fc623c44..11c766f08c56 100644
--- a/vcl/unx/source/dtrans/X11_service.cxx
+++ b/vcl/unx/source/dtrans/X11_service.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -76,29 +76,29 @@ Reference< XInterface > X11SalInstance::CreateClipboard( const Sequence< Any >&
OUString aDisplayName;
Atom nSelection;
-
+
// extract display name from connection argument. An exception is thrown
- // by SelectionManager.initialize() if no display connection is given.
+ // by SelectionManager.initialize() if no display connection is given.
if( arguments.getLength() > 0 )
{
Reference< XDisplayConnection > xConn;
arguments.getConstArray()[0] >>= xConn;
-
+
if( xConn.is() )
{
Any aIdentifier = xConn->getIdentifier();
aIdentifier >>= aDisplayName;
}
}
-
+
SelectionManager& rManager = SelectionManager::get( aDisplayName );
rManager.initialize( arguments );
-
+
// check if any other selection than clipboard selection is specified
if( arguments.getLength() > 1 )
{
OUString aSelectionName;
-
+
arguments.getConstArray()[1] >>= aSelectionName;
nSelection = rManager.getAtom( aSelectionName );
}
@@ -107,7 +107,7 @@ Reference< XInterface > X11SalInstance::CreateClipboard( const Sequence< Any >&
// default atom is clipboard selection
nSelection = rManager.getAtom( OUString::createFromAscii( "CLIPBOARD" ) );
}
-
+
::std::hash_map< Atom, Reference< XClipboard > >& rMap( m_aInstances[ aDisplayName ] );
::std::hash_map< Atom, Reference< XClipboard > >::iterator it = rMap.find( nSelection );
if( it != rMap.end() )
diff --git a/vcl/unx/source/dtrans/X11_transferable.cxx b/vcl/unx/source/dtrans/X11_transferable.cxx
index aaf90e4d8ec6..edefc651b94a 100644
--- a/vcl/unx/source/dtrans/X11_transferable.cxx
+++ b/vcl/unx/source/dtrans/X11_transferable.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/dtrans/X11_transferable.hxx b/vcl/unx/source/dtrans/X11_transferable.hxx
index cff20e52fe48..ea66098107f1 100644
--- a/vcl/unx/source/dtrans/X11_transferable.hxx
+++ b/vcl/unx/source/dtrans/X11_transferable.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,10 +41,10 @@ namespace x11 {
::com::sun::star::datatransfer::XTransferable >
{
::osl::Mutex m_aMutex;
-
- SelectionManager& m_rManager;
- Reference< XInterface > m_xCreator;
- Atom m_aSelection;
+
+ SelectionManager& m_rManager;
+ Reference< XInterface > m_xCreator;
+ Atom m_aSelection;
public:
X11Transferable( SelectionManager& rManager, const Reference< XInterface >& xCreator, Atom selection = None );
virtual ~X11Transferable();
@@ -53,16 +53,16 @@ namespace x11 {
* XTransferable
*/
- virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
- throw(::com::sun::star::datatransfer::UnsupportedFlavorException,
- ::com::sun::star::io::IOException,
+ virtual ::com::sun::star::uno::Any SAL_CALL getTransferData( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
+ throw(::com::sun::star::datatransfer::UnsupportedFlavorException,
+ ::com::sun::star::io::IOException,
::com::sun::star::uno::RuntimeException
);
- virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
+ virtual ::com::sun::star::uno::Sequence< ::com::sun::star::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
+ virtual sal_Bool SAL_CALL isDataFlavorSupported( const ::com::sun::star::datatransfer::DataFlavor& aFlavor )
throw(::com::sun::star::uno::RuntimeException);
};
diff --git a/vcl/unx/source/dtrans/bmp.cxx b/vcl/unx/source/dtrans/bmp.cxx
index 9b0bb2729c95..f42cf739ab89 100644
--- a/vcl/unx/source/dtrans/bmp.cxx
+++ b/vcl/unx/source/dtrans/bmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,8 +89,8 @@ BmpTransporter::BmpTransporter( const Sequence<sal_Int8>& rBmp ) :
if( pData[0] == 'B' || pData[1] == 'M' )
{
pData = pData+14;
- m_aSize.Width = readLE32( pData+4 );
- m_aSize.Height = readLE32( pData+8 );
+ m_aSize.Width = readLE32( pData+4 );
+ m_aSize.Height = readLE32( pData+8 );
}
else
m_aSize.Width = m_aSize.Height = 0;
@@ -409,17 +409,17 @@ PixmapHolder::PixmapHolder( Display* pDisplay ) :
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "PixmapHolder reverting to default visual\n" );
#endif
- Visual* pVisual = DefaultVisual( m_pDisplay, DefaultScreen( m_pDisplay ) );
- m_aInfo.screen = DefaultScreen( m_pDisplay );
- m_aInfo.visual = pVisual;
- m_aInfo.visualid = pVisual->visualid;
- m_aInfo.c_class = pVisual->c_class;
- m_aInfo.red_mask = pVisual->red_mask;
- m_aInfo.green_mask = pVisual->green_mask;
- m_aInfo.blue_mask = pVisual->blue_mask;
- m_aInfo.depth = DefaultDepth( m_pDisplay, m_aInfo.screen );
+ Visual* pVisual = DefaultVisual( m_pDisplay, DefaultScreen( m_pDisplay ) );
+ m_aInfo.screen = DefaultScreen( m_pDisplay );
+ m_aInfo.visual = pVisual;
+ m_aInfo.visualid = pVisual->visualid;
+ m_aInfo.c_class = pVisual->c_class;
+ m_aInfo.red_mask = pVisual->red_mask;
+ m_aInfo.green_mask = pVisual->green_mask;
+ m_aInfo.blue_mask = pVisual->blue_mask;
+ m_aInfo.depth = DefaultDepth( m_pDisplay, m_aInfo.screen );
}
- m_aColormap = DefaultColormap( m_pDisplay, m_aInfo.screen );
+ m_aColormap = DefaultColormap( m_pDisplay, m_aInfo.screen );
#if OSL_DEBUG_LEVEL > 1
static const char* pClasses[] =
{ "StaticGray", "GrayScale", "StaticColor", "PseudoColor", "TrueColor", "DirectColor" };
@@ -478,17 +478,17 @@ void PixmapHolder::setBitmapDataPalette( const sal_uInt8* pData, XImage* pImage
XColor aPalette[256];
sal_uInt32 nColors = readLE32( pData+32 );
- sal_uInt32 nWidth = readLE32( pData+4 );
- sal_uInt32 nHeight = readLE32( pData+8 );
+ sal_uInt32 nWidth = readLE32( pData+4 );
+ sal_uInt32 nHeight = readLE32( pData+8 );
sal_uInt16 nDepth = readLE16( pData+14 );
for( sal_uInt16 i = 0 ; i < nColors; i++ )
{
if( m_aInfo.c_class != TrueColor )
{
- aPalette[i].red = ((unsigned short)pData[42 + i*4]) << 8 | ((unsigned short)pData[42 + i*4]);
- aPalette[i].green = ((unsigned short)pData[41 + i*4]) << 8 | ((unsigned short)pData[41 + i*4]);
- aPalette[i].blue = ((unsigned short)pData[40 + i*4]) << 8 | ((unsigned short)pData[40 + i*4]);
+ aPalette[i].red = ((unsigned short)pData[42 + i*4]) << 8 | ((unsigned short)pData[42 + i*4]);
+ aPalette[i].green = ((unsigned short)pData[41 + i*4]) << 8 | ((unsigned short)pData[41 + i*4]);
+ aPalette[i].blue = ((unsigned short)pData[40 + i*4]) << 8 | ((unsigned short)pData[40 + i*4]);
XAllocColor( m_pDisplay, m_aColormap, aPalette+i );
}
else
@@ -552,10 +552,10 @@ void PixmapHolder::setBitmapDataTCDither( const sal_uInt8* pData, XImage* pImage
for( int b = 0; b < 6; b++ )
{
int i = r*36+g*6+b;
- aPalette[i].red = r == 5 ? 0xffff : r*10922;
- aPalette[i].green = g == 5 ? 0xffff : g*10922;
- aPalette[i].blue = b == 5 ? 0xffff : b*10922;
- aPalette[i].pixel = 0;
+ aPalette[i].red = r == 5 ? 0xffff : r*10922;
+ aPalette[i].green = g == 5 ? 0xffff : g*10922;
+ aPalette[i].blue = b == 5 ? 0xffff : b*10922;
+ aPalette[i].pixel = 0;
if( ! XAllocColor( m_pDisplay, m_aColormap, aPalette+i ) )
nNonAllocs++;
}
@@ -581,8 +581,8 @@ void PixmapHolder::setBitmapDataTCDither( const sal_uInt8* pData, XImage* pImage
}
}
- sal_uInt32 nWidth = readLE32( pData+4 );
- sal_uInt32 nHeight = readLE32( pData+8 );
+ sal_uInt32 nWidth = readLE32( pData+4 );
+ sal_uInt32 nHeight = readLE32( pData+8 );
const sal_uInt8* pBMData = pData + readLE32( pData );
sal_uInt32 nScanlineSize = nWidth*3;
@@ -610,8 +610,8 @@ void PixmapHolder::setBitmapDataTCDither( const sal_uInt8* pData, XImage* pImage
void PixmapHolder::setBitmapDataTC( const sal_uInt8* pData, XImage* pImage )
{
- sal_uInt32 nWidth = readLE32( pData+4 );
- sal_uInt32 nHeight = readLE32( pData+8 );
+ sal_uInt32 nWidth = readLE32( pData+4 );
+ sal_uInt32 nHeight = readLE32( pData+8 );
const sal_uInt8* pBMData = pData + readLE32( pData );
sal_uInt32 nScanlineSize = nWidth*3;
@@ -665,9 +665,9 @@ Pixmap PixmapHolder::setBitmapData( const sal_uInt8* pData )
if( readLE32( pData + 16 ) != 0 )
return None;
- sal_uInt32 nWidth = readLE32( pData+4 );
- sal_uInt32 nHeight = readLE32( pData+8 );
-
+ sal_uInt32 nWidth = readLE32( pData+4 );
+ sal_uInt32 nHeight = readLE32( pData+8 );
+
if( m_aPixmap != None )
XFreePixmap( m_pDisplay, m_aPixmap ), m_aPixmap = None;
if( m_aBitmap != None )
@@ -680,25 +680,25 @@ Pixmap PixmapHolder::setBitmapData( const sal_uInt8* pData )
if( m_aPixmap != None )
{
XImage aImage;
- aImage.width = (int)nWidth;
- aImage.height = (int)nHeight;
- aImage.xoffset = 0;
- aImage.format = ZPixmap;
- aImage.data = NULL;
- aImage.byte_order = ImageByteOrder( m_pDisplay );
- aImage.bitmap_unit = BitmapUnit( m_pDisplay );
- aImage.bitmap_bit_order = BitmapBitOrder( m_pDisplay );
- aImage.bitmap_pad = BitmapPad( m_pDisplay );
- aImage.depth = m_aInfo.depth;
- aImage.red_mask = m_aInfo.red_mask;
- aImage.green_mask = m_aInfo.green_mask;
- aImage.blue_mask = m_aInfo.blue_mask;
- aImage.bytes_per_line = 0; // filled in by XInitImage
+ aImage.width = (int)nWidth;
+ aImage.height = (int)nHeight;
+ aImage.xoffset = 0;
+ aImage.format = ZPixmap;
+ aImage.data = NULL;
+ aImage.byte_order = ImageByteOrder( m_pDisplay );
+ aImage.bitmap_unit = BitmapUnit( m_pDisplay );
+ aImage.bitmap_bit_order = BitmapBitOrder( m_pDisplay );
+ aImage.bitmap_pad = BitmapPad( m_pDisplay );
+ aImage.depth = m_aInfo.depth;
+ aImage.red_mask = m_aInfo.red_mask;
+ aImage.green_mask = m_aInfo.green_mask;
+ aImage.blue_mask = m_aInfo.blue_mask;
+ aImage.bytes_per_line = 0; // filled in by XInitImage
if( m_aInfo.depth <= 8 )
aImage.bits_per_pixel = m_aInfo.depth;
else
aImage.bits_per_pixel = 8*((m_aInfo.depth+7)/8);
- aImage.obdata = NULL;
+ aImage.obdata = NULL;
XInitImage( &aImage );
aImage.data = (char*)rtl_allocateMemory( nHeight*aImage.bytes_per_line );
diff --git a/vcl/unx/source/dtrans/bmp.hxx b/vcl/unx/source/dtrans/bmp.hxx
index 6d2e76bae0bb..d7fd48f0598d 100644
--- a/vcl/unx/source/dtrans/bmp.hxx
+++ b/vcl/unx/source/dtrans/bmp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,16 +54,16 @@ void X11_freeBmp( sal_uInt8* pBmp );
class PixmapHolder
{
- Display* m_pDisplay;
- Colormap m_aColormap;
- Pixmap m_aPixmap;
- Pixmap m_aBitmap;
- XVisualInfo m_aInfo;
+ Display* m_pDisplay;
+ Colormap m_aColormap;
+ Pixmap m_aPixmap;
+ Pixmap m_aBitmap;
+ XVisualInfo m_aInfo;
- int m_nRedShift, m_nRedShift2;
- int m_nGreenShift, m_nGreenShift2;
- int m_nBlueShift, m_nBlueShift2;
- unsigned long m_nBlueShift2Mask, m_nRedShift2Mask, m_nGreenShift2Mask;
+ int m_nRedShift, m_nRedShift2;
+ int m_nGreenShift, m_nGreenShift2;
+ int m_nBlueShift, m_nBlueShift2;
+ unsigned long m_nBlueShift2Mask, m_nRedShift2Mask, m_nGreenShift2Mask;
// these expect data pointers to bitmapinfo header
void setBitmapDataTC( const sal_uInt8* pData, XImage* pImage );
@@ -90,12 +90,12 @@ public:
class BmpTransporter :
public cppu::WeakImplHelper1< com::sun::star::awt::XBitmap >
{
- com::sun::star::uno::Sequence<sal_Int8> m_aBM;
- com::sun::star::awt::Size m_aSize;
+ com::sun::star::uno::Sequence<sal_Int8> m_aBM;
+ com::sun::star::awt::Size m_aSize;
public:
BmpTransporter( const com::sun::star::uno::Sequence<sal_Int8>& rBmp );
virtual ~BmpTransporter();
-
+
virtual com::sun::star::awt::Size SAL_CALL getSize() throw();
virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getDIB() throw();
virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw();
diff --git a/vcl/unx/source/dtrans/config.cxx b/vcl/unx/source/dtrans/config.cxx
index 5add04288aa9..45e56b48b474 100644
--- a/vcl/unx/source/dtrans/config.cxx
+++ b/vcl/unx/source/dtrans/config.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,7 +45,7 @@ class DtransX11ConfigItem : public ::utl::ConfigItem
sal_Int32 m_nSelectionTimeout;
virtual void Notify( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rPropertyNames );
- virtual void Commit();
+ virtual void Commit();
public:
DtransX11ConfigItem();
virtual ~DtransX11ConfigItem();
diff --git a/vcl/unx/source/dtrans/copydata_curs.h b/vcl/unx/source/dtrans/copydata_curs.h
index b7cb1557c7a3..3f2bb060d56c 100644
--- a/vcl/unx/source/dtrans/copydata_curs.h
+++ b/vcl/unx/source/dtrans/copydata_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/dtrans/copydata_mask.h b/vcl/unx/source/dtrans/copydata_mask.h
index d0cd40bc78fd..3f2009d72322 100644
--- a/vcl/unx/source/dtrans/copydata_mask.h
+++ b/vcl/unx/source/dtrans/copydata_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/dtrans/linkdata_curs.h b/vcl/unx/source/dtrans/linkdata_curs.h
index 02d5709600a8..5c0feab91cbd 100644
--- a/vcl/unx/source/dtrans/linkdata_curs.h
+++ b/vcl/unx/source/dtrans/linkdata_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/dtrans/linkdata_mask.h b/vcl/unx/source/dtrans/linkdata_mask.h
index 5bf28eac1bd5..a84059c079c7 100644
--- a/vcl/unx/source/dtrans/linkdata_mask.h
+++ b/vcl/unx/source/dtrans/linkdata_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/dtrans/movedata_curs.h b/vcl/unx/source/dtrans/movedata_curs.h
index cbc3b6b73c1e..cdbc15d948b9 100644
--- a/vcl/unx/source/dtrans/movedata_curs.h
+++ b/vcl/unx/source/dtrans/movedata_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/dtrans/movedata_mask.h b/vcl/unx/source/dtrans/movedata_mask.h
index 716e626f778b..a10d7eab5f51 100644
--- a/vcl/unx/source/dtrans/movedata_mask.h
+++ b/vcl/unx/source/dtrans/movedata_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/dtrans/nodrop_curs.h b/vcl/unx/source/dtrans/nodrop_curs.h
index 96b0c51178e6..82efb546d2f0 100644
--- a/vcl/unx/source/dtrans/nodrop_curs.h
+++ b/vcl/unx/source/dtrans/nodrop_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/dtrans/nodrop_mask.h b/vcl/unx/source/dtrans/nodrop_mask.h
index b5bd992c7a4c..c3fa9cda4af4 100644
--- a/vcl/unx/source/dtrans/nodrop_mask.h
+++ b/vcl/unx/source/dtrans/nodrop_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/fontmanager/adobeenc.tab b/vcl/unx/source/fontmanager/adobeenc.tab
index 492e92f3fcf2..26a03bf99059 100644
--- a/vcl/unx/source/fontmanager/adobeenc.tab
+++ b/vcl/unx/source/fontmanager/adobeenc.tab
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -26,9 +26,9 @@
************************************************************************/
struct AdobeEncEntry {
- sal_Unicode aUnicode;
- sal_uInt8 aAdobeStandardCode;
- const char* const pAdobename;
+ sal_Unicode aUnicode;
+ sal_uInt8 aAdobeStandardCode;
+ const char* const pAdobename;
};
static const AdobeEncEntry aAdobeCodes[]=
diff --git a/vcl/unx/source/fontmanager/fontcache.cxx b/vcl/unx/source/fontmanager/fontcache.cxx
index a0bece000fe4..2dbf9aa085bf 100644
--- a/vcl/unx/source/fontmanager/fontcache.cxx
+++ b/vcl/unx/source/fontmanager/fontcache.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -259,7 +259,7 @@ void FontCache::read()
#endif
return;
}
-
+
ByteString aLine;
aStream.ReadLine( aLine );
@@ -270,7 +270,7 @@ void FontCache::read()
#endif
return;
}
-
+
int nDir = 0;
FontDirMap* pDir = NULL;
xub_StrLen nIndex;
@@ -303,7 +303,7 @@ void FontCache::read()
// is the directory modified ?
struct stat aStat;
- if( stat( aDir.getStr(), &aStat ) ||
+ if( stat( aDir.getStr(), &aStat ) ||
! S_ISDIR(aStat.st_mode) )
{
// remove outdated cache data
@@ -326,12 +326,12 @@ void FontCache::read()
{
OString aFile( aLine.Copy( 5 ) );
aStream.ReadLine( aLine );
-
+
const char* pLine = aLine.GetBuffer();
fonttype::type eType = (fonttype::type)atoi( pLine );
- if( eType != fonttype::TrueType &&
- eType != fonttype::Type1 &&
+ if( eType != fonttype::TrueType &&
+ eType != fonttype::Type1 &&
eType != fonttype::Builtin
)
continue;
@@ -339,15 +339,15 @@ void FontCache::read()
pLine++;
if( *pLine != ';' )
continue;
-
+
pLine++;
- sal_Int32 nFonts = atoi( pLine );
+ sal_Int32 nFonts = atoi( pLine );
for( int n = 0; n < nFonts; n++ )
{
aStream.ReadLine( aLine );
pLine = aLine.GetBuffer();
int nLen = aLine.Len();
-
+
PrintFontManager::PrintFont* pFont = NULL;
switch( eType )
{
@@ -362,10 +362,10 @@ void FontCache::read()
break;
default: break;
}
-
+
for( nIndex = 0; nIndex < nLen && pLine[nIndex] != ';'; nIndex++ )
;
-
+
pFont->m_nFamilyName = pAtoms->getAtom( ATOM_FAMILYNAME,
OUString( pLine, nIndex, RTL_TEXTENCODING_UTF8 ),
sal_True );
@@ -383,7 +383,7 @@ void FontCache::read()
aStream.ReadLine( aLine );
pLine = aLine.GetBuffer();
nLen = aLine.Len();
-
+
// get up to 20 token positions
const int nMaxTokens = 20;
int nTokenPos[nMaxTokens];
@@ -488,8 +488,8 @@ void FontCache::read()
delete pFont;
continue;
}
-
- FontCacheEntry& rEntry = (*pDir)[aFile].m_aEntry;
+
+ FontCacheEntry& rEntry = (*pDir)[aFile].m_aEntry;
rEntry.push_back( pFont );
}
}
@@ -505,7 +505,7 @@ void FontCache::updateDirTimestamp( int nDirID )
const OString& rDir = rManager.getDirectory( nDirID );
struct stat aStat;
- if( ! stat( rDir.getStr(), &aStat ) )
+ if( ! stat( rDir.getStr(), &aStat ) )
m_aCache[ nDirID ].m_nTimestamp = (sal_Int64)aStat.st_mtime;
}
@@ -536,24 +536,24 @@ void FontCache::copyPrintFont( const PrintFontManager::PrintFont* pFrom, PrintFo
break;
default: break;
}
- pTo->m_nFamilyName = pFrom->m_nFamilyName;
+ pTo->m_nFamilyName = pFrom->m_nFamilyName;
pTo->m_aStyleName = pFrom->m_aStyleName;
- pTo->m_aAliases = pFrom->m_aAliases;
- pTo->m_nPSName = pFrom->m_nPSName;
- pTo->m_eItalic = pFrom->m_eItalic;
- pTo->m_eWeight = pFrom->m_eWeight;
- pTo->m_eWidth = pFrom->m_eWidth;
- pTo->m_ePitch = pFrom->m_ePitch;
- pTo->m_aEncoding = pFrom->m_aEncoding;
- pTo->m_aGlobalMetricX = pFrom->m_aGlobalMetricX;
- pTo->m_aGlobalMetricY = pFrom->m_aGlobalMetricY;
- pTo->m_nAscend = pFrom->m_nAscend;
- pTo->m_nDescend = pFrom->m_nDescend;
- pTo->m_nLeading = pFrom->m_nLeading;
- pTo->m_nXMin = pFrom->m_nXMin;
- pTo->m_nYMin = pFrom->m_nYMin;
- pTo->m_nXMax = pFrom->m_nXMax;
- pTo->m_nYMax = pFrom->m_nYMax;
+ pTo->m_aAliases = pFrom->m_aAliases;
+ pTo->m_nPSName = pFrom->m_nPSName;
+ pTo->m_eItalic = pFrom->m_eItalic;
+ pTo->m_eWeight = pFrom->m_eWeight;
+ pTo->m_eWidth = pFrom->m_eWidth;
+ pTo->m_ePitch = pFrom->m_ePitch;
+ pTo->m_aEncoding = pFrom->m_aEncoding;
+ pTo->m_aGlobalMetricX = pFrom->m_aGlobalMetricX;
+ pTo->m_aGlobalMetricY = pFrom->m_aGlobalMetricY;
+ pTo->m_nAscend = pFrom->m_nAscend;
+ pTo->m_nDescend = pFrom->m_nDescend;
+ pTo->m_nLeading = pFrom->m_nLeading;
+ pTo->m_nXMin = pFrom->m_nXMin;
+ pTo->m_nYMin = pFrom->m_nYMin;
+ pTo->m_nXMax = pFrom->m_nXMax;
+ pTo->m_nYMax = pFrom->m_nYMax;
pTo->m_bHaveVerticalSubstitutedGlyphs = pFrom->m_bHaveVerticalSubstitutedGlyphs;
pTo->m_bUserOverride = pFrom->m_bUserOverride;
}
@@ -571,10 +571,10 @@ bool FontCache::equalsPrintFont( const PrintFontManager::PrintFont* pLeft, Print
{
const PrintFontManager::TrueTypeFontFile* pLT = static_cast<const PrintFontManager::TrueTypeFontFile*>(pLeft);
const PrintFontManager::TrueTypeFontFile* pRT = static_cast<const PrintFontManager::TrueTypeFontFile*>(pRight);
- if( pRT->m_nDirectory != pLT->m_nDirectory ||
- pRT->m_aFontFile != pLT->m_aFontFile ||
- pRT->m_nCollectionEntry != pLT->m_nCollectionEntry ||
- pRT->m_nTypeFlags != pLT->m_nTypeFlags )
+ if( pRT->m_nDirectory != pLT->m_nDirectory ||
+ pRT->m_aFontFile != pLT->m_aFontFile ||
+ pRT->m_nCollectionEntry != pLT->m_nCollectionEntry ||
+ pRT->m_nTypeFlags != pLT->m_nTypeFlags )
return false;
}
break;
@@ -582,9 +582,9 @@ bool FontCache::equalsPrintFont( const PrintFontManager::PrintFont* pLeft, Print
{
const PrintFontManager::Type1FontFile* pLT = static_cast<const PrintFontManager::Type1FontFile*>(pLeft);
const PrintFontManager::Type1FontFile* pRT = static_cast<const PrintFontManager::Type1FontFile*>(pRight);
- if( pRT->m_nDirectory != pLT->m_nDirectory ||
- pRT->m_aFontFile != pLT->m_aFontFile ||
- pRT->m_aMetricFile != pLT->m_aMetricFile )
+ if( pRT->m_nDirectory != pLT->m_nDirectory ||
+ pRT->m_aFontFile != pLT->m_aFontFile ||
+ pRT->m_aMetricFile != pLT->m_aMetricFile )
return false;
}
break;
@@ -592,30 +592,30 @@ bool FontCache::equalsPrintFont( const PrintFontManager::PrintFont* pLeft, Print
{
const PrintFontManager::BuiltinFont* pLT = static_cast<const PrintFontManager::BuiltinFont*>(pLeft);
const PrintFontManager::BuiltinFont* pRT = static_cast<const PrintFontManager::BuiltinFont*>(pRight);
- if( pRT->m_nDirectory != pLT->m_nDirectory ||
- pRT->m_aMetricFile != pLT->m_aMetricFile )
+ if( pRT->m_nDirectory != pLT->m_nDirectory ||
+ pRT->m_aMetricFile != pLT->m_aMetricFile )
return false;
}
break;
default: break;
}
- if( pRight->m_nFamilyName != pLeft->m_nFamilyName ||
+ if( pRight->m_nFamilyName != pLeft->m_nFamilyName ||
pRight->m_aStyleName != pLeft->m_aStyleName ||
- pRight->m_nPSName != pLeft->m_nPSName ||
- pRight->m_eItalic != pLeft->m_eItalic ||
- pRight->m_eWeight != pLeft->m_eWeight ||
- pRight->m_eWidth != pLeft->m_eWidth ||
- pRight->m_ePitch != pLeft->m_ePitch ||
- pRight->m_aEncoding != pLeft->m_aEncoding ||
- pRight->m_aGlobalMetricX != pLeft->m_aGlobalMetricX ||
- pRight->m_aGlobalMetricY != pLeft->m_aGlobalMetricY ||
- pRight->m_nAscend != pLeft->m_nAscend ||
- pRight->m_nDescend != pLeft->m_nDescend ||
- pRight->m_nLeading != pLeft->m_nLeading ||
- pRight->m_nXMin != pLeft->m_nXMin ||
- pRight->m_nYMin != pLeft->m_nYMin ||
- pRight->m_nXMax != pLeft->m_nXMax ||
- pRight->m_nYMax != pLeft->m_nYMax ||
+ pRight->m_nPSName != pLeft->m_nPSName ||
+ pRight->m_eItalic != pLeft->m_eItalic ||
+ pRight->m_eWeight != pLeft->m_eWeight ||
+ pRight->m_eWidth != pLeft->m_eWidth ||
+ pRight->m_ePitch != pLeft->m_ePitch ||
+ pRight->m_aEncoding != pLeft->m_aEncoding ||
+ pRight->m_aGlobalMetricX != pLeft->m_aGlobalMetricX ||
+ pRight->m_aGlobalMetricY != pLeft->m_aGlobalMetricY ||
+ pRight->m_nAscend != pLeft->m_nAscend ||
+ pRight->m_nDescend != pLeft->m_nDescend ||
+ pRight->m_nLeading != pLeft->m_nLeading ||
+ pRight->m_nXMin != pLeft->m_nXMin ||
+ pRight->m_nYMin != pLeft->m_nYMin ||
+ pRight->m_nXMax != pLeft->m_nXMax ||
+ pRight->m_nYMax != pLeft->m_nYMax ||
pRight->m_bHaveVerticalSubstitutedGlyphs != pLeft->m_bHaveVerticalSubstitutedGlyphs ||
pRight->m_bUserOverride != pLeft->m_bUserOverride
)
@@ -784,7 +784,7 @@ bool FontCache::scanAdditionalFiles( const OString& rDir )
int nDirID = rManager.getDirectoryAtom( rDir );
FontCacheData::const_iterator dir = m_aCache.find( nDirID );
bool bFound = (dir != m_aCache.end());
-
+
return (bFound && dir->second.m_bUserOverrideOnly);
}
diff --git a/vcl/unx/source/fontmanager/fontconfig.cxx b/vcl/unx/source/fontmanager/fontconfig.cxx
index 1de85367c39d..abb8a6be4455 100644
--- a/vcl/unx/source/fontmanager/fontconfig.cxx
+++ b/vcl/unx/source/fontmanager/fontconfig.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,16 +40,16 @@ using namespace psp;
#include <ft2build.h>
#include <fontconfig/fcfreetype.h>
// allow compile on baseline (currently with fontconfig 2.2.0)
- #ifndef FC_WEIGHT_BOOK // TODO: remove when baseline moves to fc>=2.2.1
+ #ifndef FC_WEIGHT_BOOK // TODO: remove when baseline moves to fc>=2.2.1
#define FC_WEIGHT_BOOK 75
#endif
- #ifndef FC_EMBEDDED_BITMAP // TODO: remove when baseline moves to fc>=2.3.92
+ #ifndef FC_EMBEDDED_BITMAP // TODO: remove when baseline moves to fc>=2.3.92
#define FC_EMBEDDED_BITMAP "embeddedbitmap"
#endif
- #ifndef FC_FAMILYLANG // TODO: remove when baseline moves to fc>=2.2.97
+ #ifndef FC_FAMILYLANG // TODO: remove when baseline moves to fc>=2.2.97
#define FC_FAMILYLANG "familylang"
#endif
- #ifndef FC_HINT_STYLE // TODO: remove when baseline moves to fc>=2.2.91
+ #ifndef FC_HINT_STYLE // TODO: remove when baseline moves to fc>=2.2.91
#define FC_HINT_STYLE "hintstyle"
#define FC_HINT_NONE 0
#define FC_HINT_SLIGHT 1
@@ -94,44 +94,44 @@ using namespace rtl;
class FontCfgWrapper
{
- oslModule m_pLib;
+ oslModule m_pLib;
FcFontSet* m_pOutlineSet;
int m_nFcVersion;
FcBool (*m_pFcInit)();
int (*m_pFcGetVersion)();
- FcConfig* (*m_pFcConfigGetCurrent)();
- FcObjectSet* (*m_pFcObjectSetVaBuild)(const char*,va_list);
- void (*m_pFcObjectSetDestroy)(FcObjectSet* pSet);
- FcPattern* (*m_pFcPatternCreate)();
- void (*m_pFcPatternDestroy)(FcPattern*);
- FcFontSet* (*m_pFcFontList)(FcConfig*,FcPattern*,FcObjectSet*);
+ FcConfig* (*m_pFcConfigGetCurrent)();
+ FcObjectSet* (*m_pFcObjectSetVaBuild)(const char*,va_list);
+ void (*m_pFcObjectSetDestroy)(FcObjectSet* pSet);
+ FcPattern* (*m_pFcPatternCreate)();
+ void (*m_pFcPatternDestroy)(FcPattern*);
+ FcFontSet* (*m_pFcFontList)(FcConfig*,FcPattern*,FcObjectSet*);
FcFontSet* (*m_pFcConfigGetFonts)(FcConfig*,FcSetName);
- FcFontSet* (*m_pFcFontSetCreate)();
+ FcFontSet* (*m_pFcFontSetCreate)();
FcCharSet* (*m_pFcCharSetCreate)();
FcBool (*m_pFcCharSetAddChar)(FcCharSet *, FcChar32);
FcBool (*m_pFcCharSetHasChar)(FcCharSet *, FcChar32);
void (*m_pFcCharSetDestroy)(FcCharSet*);
- void (*m_pFcFontSetDestroy)(FcFontSet*);
- FcBool (*m_pFcFontSetAdd)(FcFontSet*,FcPattern*);
+ void (*m_pFcFontSetDestroy)(FcFontSet*);
+ FcBool (*m_pFcFontSetAdd)(FcFontSet*,FcPattern*);
void (*m_pFcPatternReference)(FcPattern*);
FcResult (*m_pFcPatternGetCharSet)(const FcPattern*,const char*,int,FcCharSet**);
- FcResult (*m_pFcPatternGetString)(const FcPattern*,const char*,int,FcChar8**);
- FcResult (*m_pFcPatternGetInteger)(const FcPattern*,const char*,int,int*);
- FcResult (*m_pFcPatternGetDouble)(const FcPattern*,const char*,int,double*);
- FcResult (*m_pFcPatternGetBool)(const FcPattern*,const char*,int,FcBool*);
- void (*m_pFcDefaultSubstitute)(FcPattern *);
- FcPattern* (*m_pFcFontSetMatch)(FcConfig*,FcFontSet**, int, FcPattern*,FcResult*);
- FcBool (*m_pFcConfigAppFontAddFile)(FcConfig*, const FcChar8*);
- FcBool (*m_pFcConfigAppFontAddDir)(FcConfig*, const FcChar8*);
- FcBool (*m_pFcConfigParseAndLoad)(FcConfig*,const FcChar8*,FcBool);
-
- FcBool (*m_pFcConfigSubstitute)(FcConfig*,FcPattern*,FcMatchKind);
- FcBool (*m_pFcPatternAddInteger)(FcPattern*,const char*,int);
+ FcResult (*m_pFcPatternGetString)(const FcPattern*,const char*,int,FcChar8**);
+ FcResult (*m_pFcPatternGetInteger)(const FcPattern*,const char*,int,int*);
+ FcResult (*m_pFcPatternGetDouble)(const FcPattern*,const char*,int,double*);
+ FcResult (*m_pFcPatternGetBool)(const FcPattern*,const char*,int,FcBool*);
+ void (*m_pFcDefaultSubstitute)(FcPattern *);
+ FcPattern* (*m_pFcFontSetMatch)(FcConfig*,FcFontSet**, int, FcPattern*,FcResult*);
+ FcBool (*m_pFcConfigAppFontAddFile)(FcConfig*, const FcChar8*);
+ FcBool (*m_pFcConfigAppFontAddDir)(FcConfig*, const FcChar8*);
+ FcBool (*m_pFcConfigParseAndLoad)(FcConfig*,const FcChar8*,FcBool);
+
+ FcBool (*m_pFcConfigSubstitute)(FcConfig*,FcPattern*,FcMatchKind);
+ FcBool (*m_pFcPatternAddInteger)(FcPattern*,const char*,int);
FcBool (*m_pFcPatternAddDouble)(FcPattern*,const char*,double);
FcBool (*m_pFcPatternAddBool)(FcPattern*,const char*,FcBool);
FcBool (*m_pFcPatternAddCharSet)(FcPattern*,const char*,const FcCharSet*);
- FcBool (*m_pFcPatternAddString)(FcPattern*,const char*,const FcChar8*);
+ FcBool (*m_pFcPatternAddString)(FcPattern*,const char*,const FcChar8*);
FT_UInt (*m_pFcFreeTypeCharIndex)(FT_Face,FcChar32);
oslGenericFunction loadSymbol( const char* );
@@ -144,14 +144,14 @@ public:
static FontCfgWrapper& get();
static void release();
- bool isValid() const
+ bool isValid() const
{ return m_pLib != NULL;}
FcFontSet* getFontSet();
-
+
FcBool FcInit()
{ return m_pFcInit(); }
-
+
int FcGetVersion()
{ return m_pFcGetVersion(); }
@@ -169,13 +169,13 @@ public:
void FcObjectSetDestroy( FcObjectSet* pSet )
{ m_pFcObjectSetDestroy( pSet ); }
-
+
FcPattern* FcPatternCreate()
{ return m_pFcPatternCreate(); }
void FcPatternDestroy( FcPattern* pPattern )
{ m_pFcPatternDestroy( pPattern ); }
-
+
FcFontSet* FcFontList( FcConfig* pConfig, FcPattern* pPattern, FcObjectSet* pSet )
{ return m_pFcFontList( pConfig, pPattern, pSet ); }
@@ -367,37 +367,37 @@ FontCfgWrapper::FontCfgWrapper()
}
if( ! (
- m_pFcInit &&
- m_pFcGetVersion &&
- m_pFcConfigGetCurrent &&
- m_pFcObjectSetVaBuild &&
- m_pFcObjectSetDestroy &&
- m_pFcPatternCreate &&
- m_pFcPatternDestroy &&
- m_pFcFontList &&
+ m_pFcInit &&
+ m_pFcGetVersion &&
+ m_pFcConfigGetCurrent &&
+ m_pFcObjectSetVaBuild &&
+ m_pFcObjectSetDestroy &&
+ m_pFcPatternCreate &&
+ m_pFcPatternDestroy &&
+ m_pFcFontList &&
m_pFcConfigGetFonts &&
- m_pFcFontSetCreate &&
- m_pFcCharSetCreate &&
- m_pFcCharSetAddChar &&
+ m_pFcFontSetCreate &&
+ m_pFcCharSetCreate &&
+ m_pFcCharSetAddChar &&
m_pFcCharSetHasChar &&
m_pFcCharSetDestroy &&
- m_pFcFontSetDestroy &&
- m_pFcFontSetAdd &&
+ m_pFcFontSetDestroy &&
+ m_pFcFontSetAdd &&
m_pFcPatternReference &&
- m_pFcPatternGetCharSet &&
- m_pFcPatternGetString &&
- m_pFcPatternGetInteger &&
- m_pFcPatternGetDouble &&
- m_pFcPatternGetBool &&
- m_pFcConfigAppFontAddFile &&
- m_pFcConfigAppFontAddDir &&
- m_pFcConfigParseAndLoad &&
- m_pFcDefaultSubstitute &&
- m_pFcConfigSubstitute &&
- m_pFcPatternAddInteger &&
+ m_pFcPatternGetCharSet &&
+ m_pFcPatternGetString &&
+ m_pFcPatternGetInteger &&
+ m_pFcPatternGetDouble &&
+ m_pFcPatternGetBool &&
+ m_pFcConfigAppFontAddFile &&
+ m_pFcConfigAppFontAddDir &&
+ m_pFcConfigParseAndLoad &&
+ m_pFcDefaultSubstitute &&
+ m_pFcConfigSubstitute &&
+ m_pFcPatternAddInteger &&
m_pFcPatternAddDouble &&
- m_pFcPatternAddCharSet &&
- m_pFcPatternAddBool &&
+ m_pFcPatternAddCharSet &&
+ m_pFcPatternAddBool &&
m_pFcPatternAddString
) )
{
@@ -422,7 +422,7 @@ void FontCfgWrapper::addFontSet( FcSetName eSetName )
{
#ifdef ENABLE_FONTCONFIG
/*
- add only acceptable outlined fonts to our config,
+ add only acceptable outlined fonts to our config,
for future fontconfig use
*/
FcFontSet* pOrig = FcConfigGetFonts( FcConfigGetCurrent(), eSetName );
@@ -433,7 +433,7 @@ void FontCfgWrapper::addFontSet( FcSetName eSetName )
{
FcBool outline = false;
FcPattern *pOutlinePattern = pOrig->fonts[i];
- FcResult eOutRes =
+ FcResult eOutRes =
FcPatternGetBool( pOutlinePattern, FC_OUTLINE, 0, &outline );
if( (eOutRes != FcResultMatch) || (outline != FcTrue) )
continue;
@@ -445,7 +445,7 @@ void FontCfgWrapper::addFontSet( FcSetName eSetName )
(void)eSetName; // prevent compiler warning about unused parameter
#endif
}
-
+
FcFontSet* FontCfgWrapper::getFontSet()
{
#ifdef ENABLE_FONTCONFIG
@@ -543,9 +543,9 @@ namespace
FcResult FontCfgWrapper::FamilyFromPattern(FcPattern* pPattern, FcChar8 **family)
{
FcChar8 *origfamily;
- FcResult eFamilyRes = FcPatternGetString( pPattern, FC_FAMILY, 0, &origfamily );
+ FcResult eFamilyRes = FcPatternGetString( pPattern, FC_FAMILY, 0, &origfamily );
*family = origfamily;
-
+
if( eFamilyRes == FcResultMatch)
{
FcChar8* familylang = NULL;
@@ -563,13 +563,13 @@ FcResult FontCfgWrapper::FamilyFromPattern(FcPattern* pPattern, FcChar8 **family
lang_and_families.push_back(lang_and_family(familylang, *family));
++k;
}
-
+
//possible to-do, sort by UILocale instead of process locale
rtl_Locale* pLoc;
osl_getProcessLocale(&pLoc);
localizedsorter aSorter(pLoc);
*family = aSorter.bestname(lang_and_families);
-
+
std::vector<lang_and_family>::const_iterator aEnd = lang_and_families.end();
for (std::vector<lang_and_family>::const_iterator aIter = lang_and_families.begin(); aIter != aEnd; ++aIter)
{
@@ -581,7 +581,7 @@ FcResult FontCfgWrapper::FamilyFromPattern(FcPattern* pPattern, FcChar8 **family
m_aLocalizedToCanonical[OString((const char*)(*family))] = OString((const char*)origfamily);
}
}
-
+
return eFamilyRes;
}
@@ -686,16 +686,16 @@ int PrintFontManager::countFontconfigFonts( std::hash_map<rtl::OString, int, rtl
int spacing = 0;
int nCollectionEntry = -1;
FcBool outline = false;
-
- FcResult eFileRes = rWrapper.FcPatternGetString( pFSet->fonts[i], FC_FILE, 0, &file );
+
+ FcResult eFileRes = rWrapper.FcPatternGetString( pFSet->fonts[i], FC_FILE, 0, &file );
FcResult eFamilyRes = rWrapper.FamilyFromPattern( pFSet->fonts[i], &family );
- FcResult eStyleRes = rWrapper.FcPatternGetString( pFSet->fonts[i], FC_STYLE, 0, &style );
- FcResult eSlantRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_SLANT, 0, &slant );
- FcResult eWeightRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_WEIGHT, 0, &weight );
- FcResult eSpacRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_SPACING, 0, &spacing );
- FcResult eOutRes = rWrapper.FcPatternGetBool( pFSet->fonts[i], FC_OUTLINE, 0, &outline );
+ FcResult eStyleRes = rWrapper.FcPatternGetString( pFSet->fonts[i], FC_STYLE, 0, &style );
+ FcResult eSlantRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_SLANT, 0, &slant );
+ FcResult eWeightRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_WEIGHT, 0, &weight );
+ FcResult eSpacRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_SPACING, 0, &spacing );
+ FcResult eOutRes = rWrapper.FcPatternGetBool( pFSet->fonts[i], FC_OUTLINE, 0, &outline );
FcResult eIndexRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_INDEX, 0, &nCollectionEntry );
-
+
if( eFileRes != FcResultMatch || eFamilyRes != FcResultMatch || eOutRes != FcResultMatch )
continue;
@@ -723,9 +723,9 @@ int PrintFontManager::countFontconfigFonts( std::hash_map<rtl::OString, int, rtl
std::list< PrintFont* > aFonts;
OString aDir, aBase, aOrgPath( (sal_Char*)file );
splitPath( aOrgPath, aDir, aBase );
-
+
o_rVisitedPaths[aDir] = 1;
-
+
int nDirID = getDirectoryAtom( aDir, true );
if( ! m_pFontCache->getFontCacheFile( nDirID, aBase, aFonts ) )
{
@@ -780,7 +780,7 @@ int PrintFontManager::countFontconfigFonts( std::hash_map<rtl::OString, int, rtl
pUpdate = NULL;
}
}
-
+
if( pUpdate )
{
// set family name
@@ -797,7 +797,7 @@ int PrintFontManager::countFontconfigFonts( std::hash_map<rtl::OString, int, rtl
{
pUpdate->m_aStyleName = OStringToOUString( OString( (sal_Char*)style ), RTL_TEXTENCODING_UTF8 );
}
-
+
// update font cache
m_pFontCache->updateFontCacheEntry( pUpdate, false );
// sort into known fonts
@@ -820,7 +820,7 @@ int PrintFontManager::countFontconfigFonts( std::hash_map<rtl::OString, int, rtl
}
}
}
-
+
// how does one get rid of the config ?
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "inserted %d fonts from fontconfig\n", nFonts );
@@ -875,7 +875,7 @@ bool PrintFontManager::addFontconfigDir( const rtl::OString& rDirName )
return true;
}
-static void addtopattern(FontCfgWrapper& rWrapper, FcPattern *pPattern,
+static void addtopattern(FontCfgWrapper& rWrapper, FcPattern *pPattern,
italic::type eItalic, weight::type eWeight, width::type eWidth, pitch::type ePitch)
{
if( eItalic != italic::Unknown )
@@ -883,8 +883,8 @@ static void addtopattern(FontCfgWrapper& rWrapper, FcPattern *pPattern,
int nSlant = FC_SLANT_ROMAN;
switch( eItalic )
{
- case italic::Italic: nSlant = FC_SLANT_ITALIC;break;
- case italic::Oblique: nSlant = FC_SLANT_OBLIQUE;break;
+ case italic::Italic: nSlant = FC_SLANT_ITALIC;break;
+ case italic::Oblique: nSlant = FC_SLANT_OBLIQUE;break;
default:
break;
}
@@ -895,16 +895,16 @@ static void addtopattern(FontCfgWrapper& rWrapper, FcPattern *pPattern,
int nWeight = FC_WEIGHT_NORMAL;
switch( eWeight )
{
- case weight::Thin: nWeight = FC_WEIGHT_THIN;break;
- case weight::UltraLight: nWeight = FC_WEIGHT_ULTRALIGHT;break;
- case weight::Light: nWeight = FC_WEIGHT_LIGHT;break;
- case weight::SemiLight: nWeight = FC_WEIGHT_BOOK;break;
- case weight::Normal: nWeight = FC_WEIGHT_NORMAL;break;
- case weight::Medium: nWeight = FC_WEIGHT_MEDIUM;break;
- case weight::SemiBold: nWeight = FC_WEIGHT_SEMIBOLD;break;
- case weight::Bold: nWeight = FC_WEIGHT_BOLD;break;
- case weight::UltraBold: nWeight = FC_WEIGHT_ULTRABOLD;break;
- case weight::Black: nWeight = FC_WEIGHT_BLACK;break;
+ case weight::Thin: nWeight = FC_WEIGHT_THIN;break;
+ case weight::UltraLight: nWeight = FC_WEIGHT_ULTRALIGHT;break;
+ case weight::Light: nWeight = FC_WEIGHT_LIGHT;break;
+ case weight::SemiLight: nWeight = FC_WEIGHT_BOOK;break;
+ case weight::Normal: nWeight = FC_WEIGHT_NORMAL;break;
+ case weight::Medium: nWeight = FC_WEIGHT_MEDIUM;break;
+ case weight::SemiBold: nWeight = FC_WEIGHT_SEMIBOLD;break;
+ case weight::Bold: nWeight = FC_WEIGHT_BOLD;break;
+ case weight::UltraBold: nWeight = FC_WEIGHT_ULTRABOLD;break;
+ case weight::Black: nWeight = FC_WEIGHT_BLACK;break;
default:
break;
}
@@ -915,15 +915,15 @@ static void addtopattern(FontCfgWrapper& rWrapper, FcPattern *pPattern,
int nWidth = FC_WIDTH_NORMAL;
switch( eWidth )
{
- case width::UltraCondensed: nWidth = FC_WIDTH_ULTRACONDENSED;break;
+ case width::UltraCondensed: nWidth = FC_WIDTH_ULTRACONDENSED;break;
case width::ExtraCondensed: nWidth = FC_WIDTH_EXTRACONDENSED;break;
- case width::Condensed: nWidth = FC_WIDTH_CONDENSED;break;
- case width::SemiCondensed: nWidth = FC_WIDTH_SEMICONDENSED;break;
- case width::Normal: nWidth = FC_WIDTH_NORMAL;break;
- case width::SemiExpanded: nWidth = FC_WIDTH_SEMIEXPANDED;break;
- case width::Expanded: nWidth = FC_WIDTH_EXPANDED;break;
- case width::ExtraExpanded: nWidth = FC_WIDTH_EXTRAEXPANDED;break;
- case width::UltraExpanded: nWidth = FC_WIDTH_ULTRACONDENSED;break;
+ case width::Condensed: nWidth = FC_WIDTH_CONDENSED;break;
+ case width::SemiCondensed: nWidth = FC_WIDTH_SEMICONDENSED;break;
+ case width::Normal: nWidth = FC_WIDTH_NORMAL;break;
+ case width::SemiExpanded: nWidth = FC_WIDTH_SEMIEXPANDED;break;
+ case width::Expanded: nWidth = FC_WIDTH_EXPANDED;break;
+ case width::ExtraExpanded: nWidth = FC_WIDTH_EXTRAEXPANDED;break;
+ case width::UltraExpanded: nWidth = FC_WIDTH_ULTRACONDENSED;break;
default:
break;
}
@@ -934,8 +934,8 @@ static void addtopattern(FontCfgWrapper& rWrapper, FcPattern *pPattern,
int nSpacing = FC_PROPORTIONAL;
switch( ePitch )
{
- case pitch::Fixed: nSpacing = FC_MONO;break;
- case pitch::Variable: nSpacing = FC_PROPORTIONAL;break;
+ case pitch::Fixed: nSpacing = FC_MONO;break;
+ case pitch::Variable: nSpacing = FC_PROPORTIONAL;break;
default:
break;
}
@@ -1059,7 +1059,7 @@ rtl::OUString PrintFontManager::Substitute(const rtl::OUString& rFontName,
return aName;
}
-bool PrintFontManager::getFontOptions(
+bool PrintFontManager::getFontOptions(
const FastPrintFontInfo& rInfo, int nSize, void (*subcallback)(void*),
ImplFontOptions& rOptions) const
{
@@ -1104,13 +1104,13 @@ bool PrintFontManager::getFontOptions(
FC_EMBEDDED_BITMAP, 0, &embitmap);
FcResult eAntialias = rWrapper.FcPatternGetBool(pSet->fonts[0],
FC_ANTIALIAS, 0, &antialias);
- FcResult eAutoHint = rWrapper.FcPatternGetBool(pSet->fonts[0],
+ FcResult eAutoHint = rWrapper.FcPatternGetBool(pSet->fonts[0],
FC_AUTOHINT, 0, &autohint);
- FcResult eHinting = rWrapper.FcPatternGetBool(pSet->fonts[0],
+ FcResult eHinting = rWrapper.FcPatternGetBool(pSet->fonts[0],
FC_HINTING, 0, &hinting);
/*FcResult eHintStyle =*/ rWrapper.FcPatternGetInteger( pSet->fonts[0],
FC_HINT_STYLE, 0, &hintstyle);
-
+
if( eEmbeddedBitmap == FcResultMatch )
rOptions.meEmbeddedBitmap = embitmap ? EMBEDDEDBITMAP_TRUE : EMBEDDEDBITMAP_FALSE;
if( eAntialias == FcResultMatch )
diff --git a/vcl/unx/source/fontmanager/fontmanager.cxx b/vcl/unx/source/fontmanager/fontmanager.cxx
index cb43af0351c6..3bc8a1ea3298 100644
--- a/vcl/unx/source/fontmanager/fontmanager.cxx
+++ b/vcl/unx/source/fontmanager/fontmanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -378,10 +378,10 @@ PrintFontManager::Type1FontFile::~Type1FontFile()
// -------------------------------------------------------------------------
PrintFontManager::TrueTypeFontFile::TrueTypeFontFile()
-: PrintFont( fonttype::TrueType )
-, m_nDirectory( 0 )
-, m_nCollectionEntry(-1)
-, m_nTypeFlags( TYPEFLAG_INVALID )
+: PrintFont( fonttype::TrueType )
+, m_nDirectory( 0 )
+, m_nCollectionEntry(-1)
+, m_nTypeFlags( TYPEFLAG_INVALID )
{}
// -------------------------------------------------------------------------
@@ -595,13 +595,13 @@ bool PrintFontManager::TrueTypeFontFile::queryMetricPage( int nPage, MultiAtomPr
if( nGlyph != 0 )
aGlyphMap[ nGlyph ] = (sal_Unicode)i;
}
-
+
// Loop through each of the 'kern' subtables
KernPair aPair;
for( i = 0; (unsigned int)i < pImplTTFont->nkern; i++ )
{
const sal_uInt8* pTable = pImplTTFont->kerntables[i];
-
+
/*sal_uInt32 nLength =*/ getUInt32BE( pTable );
sal_uInt16 nCoverage = getUInt16BE( pTable );
/*sal_uInt16 nTupleIndex =*/ getUInt16BE( pTable );
@@ -613,7 +613,7 @@ bool PrintFontManager::TrueTypeFontFile::queryMetricPage( int nPage, MultiAtomPr
// Kerning sub-table format, 0 through 3
sal_uInt8 nSubTableFormat = nCoverage & 0x00FF;
-
+
aPair.kern_x = 0;
aPair.kern_y = 0;
switch( nSubTableFormat )
@@ -654,7 +654,7 @@ bool PrintFontManager::TrueTypeFontFile::queryMetricPage( int nPage, MultiAtomPr
case 0:
aPair.kern_y = (int)nKern * 1000 / pImplTTFont->unitsPerEm;
m_pMetrics->m_aYKernPairs.push_back( aPair );
- break;
+ break;
}
*/
}
@@ -690,7 +690,7 @@ bool PrintFontManager::TrueTypeFontFile::queryMetricPage( int nPage, MultiAtomPr
case 0:
aPair.kern_y = (int)nKern * 1000 / pImplTTFont->unitsPerEm;
m_pMetrics->m_aYKernPairs.push_back( aPair );
- break;
+ break;
}
}
}
@@ -788,7 +788,7 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
}
else
aFamily = pProvider->getString( ATOM_FAMILYNAME, m_nFamilyName );
-
+
// style name: if fullname begins with family name
// interpret the rest of fullname as style
if( ! m_aStyleName.getLength() && pInfo->gfi->fullName && *pInfo->gfi->fullName )
@@ -832,7 +832,7 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
if( m_aEncoding == RTL_TEXTENCODING_DONTKNOW )
m_aEncoding = nAdobeEncoding == 1 ?
- RTL_TEXTENCODING_ADOBE_STANDARD : RTL_TEXTENCODING_SYMBOL;
+ RTL_TEXTENCODING_ADOBE_STANDARD : RTL_TEXTENCODING_SYMBOL;
}
else if( m_aEncoding == RTL_TEXTENCODING_DONTKNOW )
m_aEncoding = RTL_TEXTENCODING_ADOBE_STANDARD;
@@ -927,7 +927,7 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
bFillEncodingvector = false; // will be filled anyway, don't do the work twice
}
}
-
+
// ascend
m_nAscend = pInfo->gfi->fontBBox.ury;
@@ -964,12 +964,12 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
if( bFillEncodingvector || !bOnlyGlobalAttributes )
{
// fill in character metrics
-
+
// first transform the character codes to unicode
// note: this only works with single byte encodings
sal_Unicode* pUnicodes = (sal_Unicode*)alloca( pInfo->numOfChars * sizeof(sal_Unicode));
CharMetricInfo* pChar = pInfo->cmi;
-
+
for( i = 0; i < pInfo->numOfChars; i++, pChar++ )
{
if( nAdobeEncoding == 4 )
@@ -1000,13 +1000,13 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
m_aEncodingVector[ pUnicodes[i] ] = pChar->code;
continue;
}
-
+
if( m_aEncoding == RTL_TEXTENCODING_UNICODE )
{
pUnicodes[i] = (sal_Unicode)pChar->code;
continue;
}
-
+
ByteString aTranslate;
if( pChar->code & 0xff000000 )
aTranslate += (char)(pChar->code >> 24 );
@@ -1021,7 +1021,7 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
else
pUnicodes[i] = 0;
}
-
+
// now fill in the character metrics
// parseAFM.cxx effectively only supports direction 0 (horizontal)
pChar = pInfo->cmi;
@@ -1030,7 +1030,7 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
{
if( pChar->code == -1 && ! pChar->name )
continue;
-
+
if( bFillEncodingvector && pChar->name )
{
std::list< sal_Unicode > aCodes = rManager.getUnicodeFromAdobeName( pChar->name );
@@ -1044,13 +1044,13 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
}
}
}
-
+
aMetric.width = pChar->wx ? pChar->wx : pChar->charBBox.urx;
aMetric.height = pChar->wy ? pChar->wy : pChar->charBBox.ury - pChar->charBBox.lly;
if( aMetric.width == 0 && aMetric.height == 0 )
// guess something for e.g. space
aMetric.width = m_aGlobalMetricX.width/4;
-
+
if( ( nAdobeEncoding == 0 ) ||
( ( nAdobeEncoding == 3 ) && ( m_aEncoding != RTL_TEXTENCODING_SYMBOL ) ) )
{
@@ -1110,10 +1110,10 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
}
}
}
-
+
m_pMetrics->m_aXKernPairs.clear();
m_pMetrics->m_aYKernPairs.clear();
-
+
// now fill in the kern pairs
// parseAFM.cxx effectively only supports direction 0 (horizontal)
PairKernData* pKern = pInfo->pkd;
@@ -1123,7 +1123,7 @@ bool PrintFontManager::PrintFont::readAfmMetrics( const OString& rFileName, Mult
// #i37703# broken kern table
if( ! pKern->name1 || ! pKern->name2 )
continue;
-
+
aPair.first = 0;
aPair.second = 0;
// currently we have to find the adobe character names
@@ -1289,13 +1289,13 @@ bool PrintFontManager::analyzeFontFile( int nDirID, const OString& rFontFile, co
// check for corresponding afm metric
// first look for an adjacent file
static const char* pSuffix[] = { ".afm", ".AFM" };
-
+
for( unsigned int i = 0; i < SAL_N_ELEMENTS(pSuffix); i++ )
{
ByteString aName( rFontFile );
aName.Erase( aName.Len()-4 );
aName.Append( pSuffix[i] );
-
+
ByteString aFilePath( aDir );
aFilePath.Append( '/' );
aFilePath.Append( aName );
@@ -1307,7 +1307,7 @@ bool PrintFontManager::analyzeFontFile( int nDirID, const OString& rFontFile, co
aFilePath = aDir;
aFilePath.Append( "/afm/" );
aFilePath.Append( aName );
-
+
if( ! access( aFilePath.GetBuffer(), R_OK ) )
{
aAfmFile = "afm/";
@@ -1321,10 +1321,10 @@ bool PrintFontManager::analyzeFontFile( int nDirID, const OString& rFontFile, co
{
Type1FontFile* pFont = new Type1FontFile();
pFont->m_nDirectory = nDirID;
-
+
pFont->m_aFontFile = rFontFile;
pFont->m_aMetricFile = aAfmFile;
-
+
if( ! pFont->readAfmMetrics( getAfmFile( pFont ), m_pAtoms, false, true ) )
{
delete pFont;
@@ -1344,8 +1344,8 @@ bool PrintFontManager::analyzeFontFile( int nDirID, const OString& rFontFile, co
aFilePath.Append( '/' );
aFilePath.Append( ByteString( rFontFile ) );
BuiltinFont* pFont = new BuiltinFont();
- pFont->m_nDirectory = nDirID;
- pFont->m_aMetricFile = rFontFile;
+ pFont->m_nDirectory = nDirID;
+ pFont->m_aMetricFile = rFontFile;
if( pFont->readAfmMetrics( aFilePath, m_pAtoms, false, true ) )
rNewFonts.push_back( pFont );
else
@@ -1471,23 +1471,23 @@ fontID PrintFontManager::findFontFileID( int nDirID, const OString& rFontFile )
bool PrintFontManager::parseXLFD( const OString& rXLFD, XLFDEntry& rEntry )
{
sal_Int32 nIndex = 0;
- OString aFoundry = WhitespaceToSpace( rXLFD.getToken( 1, '-', nIndex ) );
+ OString aFoundry = WhitespaceToSpace( rXLFD.getToken( 1, '-', nIndex ) );
if( nIndex < 0 ) return false;
- OString aFamilyXLFD = WhitespaceToSpace( rXLFD.getToken( 0, '-', nIndex ) );
+ OString aFamilyXLFD = WhitespaceToSpace( rXLFD.getToken( 0, '-', nIndex ) );
if( nIndex < 0 ) return false;
- OString aWeight = rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase();
+ OString aWeight = rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase();
if( nIndex < 0 ) return false;
- OString aSlant = rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase();
+ OString aSlant = rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase();
if( nIndex < 0 ) return false;
- OString aWidth = rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase();
+ OString aWidth = rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase();
if( nIndex < 0 ) return false;
- OString aAddStyle = rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase();
+ OString aAddStyle = rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase();
if( nIndex < 0 ) return false;
- OString aPitch = rXLFD.getToken( 4, '-', nIndex ).toAsciiLowerCase();
+ OString aPitch = rXLFD.getToken( 4, '-', nIndex ).toAsciiLowerCase();
if( nIndex < 0 ) return false;
- OString aRegEnc = WhitespaceToSpace( rXLFD.getToken( 1, '-', nIndex ).toAsciiLowerCase() );
+ OString aRegEnc = WhitespaceToSpace( rXLFD.getToken( 1, '-', nIndex ).toAsciiLowerCase() );
if( nIndex < 0 ) return false;
- OString aEnc = WhitespaceToSpace( rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase() );
+ OString aEnc = WhitespaceToSpace( rXLFD.getToken( 0, '-', nIndex ).toAsciiLowerCase() );
// capitalize words
sal_Int32 nFamIndex = 0;
@@ -1506,22 +1506,22 @@ bool PrintFontManager::parseXLFD( const OString& rXLFD, XLFDEntry& rEntry )
aFamilyName.append( aNewToken.makeStringAndClear() );
}
- rEntry.aFoundry = aFoundry;
- rEntry.aFamily = aFamilyName.makeStringAndClear();
- rEntry.aAddStyle = aAddStyle;
+ rEntry.aFoundry = aFoundry;
+ rEntry.aFamily = aFamilyName.makeStringAndClear();
+ rEntry.aAddStyle = aAddStyle;
// evaluate weight
rEntry.eWeight = parseWeight( aWeight );
// evaluate slant
rEntry.eItalic = parseItalic( aSlant );
// evaluate width
rEntry.eWidth = parseWidth( aWidth );
-
+
// evaluate pitch
if( aPitch.toChar() == 'c' || aPitch.toChar() == 'm' )
rEntry.ePitch = pitch::Fixed;
else
rEntry.ePitch = pitch::Variable;
-
+
OString aToken = aEnc.toAsciiLowerCase();
// get encoding
if( aAddStyle.indexOf( "symbol" ) != -1 )
@@ -1539,17 +1539,17 @@ bool PrintFontManager::parseXLFD( const OString& rXLFD, XLFDEntry& rEntry )
rEntry.aEncoding = rtl_getTextEncodingFromUnixCharset( aCharset.getStr() );
}
}
-
+
// set correct mask flags
rEntry.nMask = 0;
- if( rEntry.aFoundry != "*" ) rEntry.nMask |= XLFDEntry::MaskFoundry;
- if( rEntry.aFamily != "*" ) rEntry.nMask |= XLFDEntry::MaskFamily;
- if( rEntry.aAddStyle != "*" ) rEntry.nMask |= XLFDEntry::MaskAddStyle;
- if( aWeight != "*" ) rEntry.nMask |= XLFDEntry::MaskWeight;
- if( aSlant != "*" ) rEntry.nMask |= XLFDEntry::MaskItalic;
- if( aWidth != "*" ) rEntry.nMask |= XLFDEntry::MaskWidth;
- if( aPitch != "*" ) rEntry.nMask |= XLFDEntry::MaskPitch;
- if( aRegEnc != "*" && aEnc != "*" ) rEntry.nMask |= XLFDEntry::MaskEncoding;
+ if( rEntry.aFoundry != "*" ) rEntry.nMask |= XLFDEntry::MaskFoundry;
+ if( rEntry.aFamily != "*" ) rEntry.nMask |= XLFDEntry::MaskFamily;
+ if( rEntry.aAddStyle != "*" ) rEntry.nMask |= XLFDEntry::MaskAddStyle;
+ if( aWeight != "*" ) rEntry.nMask |= XLFDEntry::MaskWeight;
+ if( aSlant != "*" ) rEntry.nMask |= XLFDEntry::MaskItalic;
+ if( aWidth != "*" ) rEntry.nMask |= XLFDEntry::MaskWidth;
+ if( aPitch != "*" ) rEntry.nMask |= XLFDEntry::MaskPitch;
+ if( aRegEnc != "*" && aEnc != "*" ) rEntry.nMask |= XLFDEntry::MaskEncoding;
return true;
}
@@ -1582,12 +1582,12 @@ void PrintFontManager::getFontAttributesFromXLFD( PrintFont* pFont, const std::l
std::list< XLFDEntry > aXLFDs;
parseXLFD_appendAliases( rXLFDs, aXLFDs );
-
+
for( std::list< XLFDEntry >::const_iterator it = aXLFDs.begin();
it != aXLFDs.end(); ++it )
{
// set family name or alias
- int nFam =
+ int nFam =
m_pAtoms->getAtom( ATOM_FAMILYNAME,
OStringToOUString( it->aFamily, it->aAddStyle.indexOf( "utf8" ) != -1 ? RTL_TEXTENCODING_UTF8 : RTL_TEXTENCODING_ISO_8859_1 ),
sal_True );
@@ -1617,7 +1617,7 @@ void PrintFontManager::getFontAttributesFromXLFD( PrintFont* pFont, const std::l
;
if( al_it == pFont->m_aAliases.end() )
pFont->m_aAliases.push_back( nFam );
-
+
}
// for the rest of the attributes there can only be one value;
// we'll trust the first one
@@ -1625,15 +1625,15 @@ void PrintFontManager::getFontAttributesFromXLFD( PrintFont* pFont, const std::l
}
// fill in weight
- pFont->m_eWeight = it->eWeight;
+ pFont->m_eWeight = it->eWeight;
// fill in slant
- pFont->m_eItalic = it->eItalic;
+ pFont->m_eItalic = it->eItalic;
// fill in width
- pFont->m_eWidth = it->eWidth;
+ pFont->m_eWidth = it->eWidth;
// fill in pitch
- pFont->m_ePitch = it->ePitch;
+ pFont->m_ePitch = it->ePitch;
// fill in encoding
- pFont->m_aEncoding = it->aEncoding;
+ pFont->m_aEncoding = it->aEncoding;
}
// handle iso8859-1 as ms1252 to fill the "gap" starting at 0x80
@@ -2024,18 +2024,18 @@ void PrintFontManager::initFontsAlias()
aStream.ReadLine( aLine );
// get the alias and the pattern it gets translated to
- ByteString aAlias = GetCommandLineToken( 0, aLine );
- ByteString aMap = GetCommandLineToken( 1, aLine );
-
+ ByteString aAlias = GetCommandLineToken( 0, aLine );
+ ByteString aMap = GetCommandLineToken( 1, aLine );
+
// remove eventual quotes
aAlias.EraseLeadingChars( '"' );
aAlias.EraseTrailingChars( '"' );
aMap.EraseLeadingChars( '"' );
aMap.EraseTrailingChars( '"' );
-
+
XLFDEntry aAliasEntry, aMapEntry;
parseXLFD( aAlias, aAliasEntry );
- parseXLFD( aMap, aMapEntry );
+ parseXLFD( aMap, aMapEntry );
if( aAliasEntry.nMask && aMapEntry.nMask )
m_aXLFD_Aliases[ aMapEntry ].push_back( aAliasEntry );
@@ -2059,7 +2059,7 @@ static bool AreFCSubstitutionsEnabled()
{
//
if( (*pEnvStr >= '0') && (*pEnvStr <= '9') )
- nDisableBits = (*pEnvStr - '0');
+ nDisableBits = (*pEnvStr - '0');
else
nDisableBits = ~0U; // no specific bits set: disable all
}
@@ -2073,7 +2073,7 @@ void PrintFontManager::initialize()
CALLGRIND_TOGGLE_COLLECT();
CALLGRIND_ZERO_STATS();
#endif
-
+
long aDirEntBuffer[ (sizeof(struct dirent)+_PC_NAME_MAX)+1 ];
if( ! m_pFontCache )
@@ -2109,7 +2109,7 @@ void PrintFontManager::initialize()
clock_t aStep3;
int nBuiltinFonts = 0;
int nCached = 0;
-
+
struct tms tms;
aStart = times( &tms );
@@ -2135,7 +2135,7 @@ void PrintFontManager::initialize()
normPath( aToken );
// if registering an app-specific fontdir with fontconfig fails
// and fontconfig-based substitutions are enabled
- // then trying to use these app-specific fonts doesn't make sense
+ // then trying to use these app-specific fonts doesn't make sense
if( m_bFontconfigSuccess && !addFontconfigDir( aToken ) )
if( bAreFCSubstitutionsEnabled )
continue;
@@ -2219,7 +2219,7 @@ void PrintFontManager::initialize()
priv_dir != m_aPrivateFontDirectories.end() && *priv_dir != nDirID;
++priv_dir )
;
-
+
if( priv_dir == m_aPrivateFontDirectories.end() )
{
ByteString aGccDummy( aPath );
@@ -2239,7 +2239,7 @@ void PrintFontManager::initialize()
}
}
}
-
+
int nDirFonts = 0;
while( ! readdir_r( pDIR, (struct dirent*)aDirEntBuffer, &pEntry ) && pEntry )
{
@@ -2308,7 +2308,7 @@ void PrintFontManager::initialize()
// ask the font cache whether it handles this directory
std::list< PrintFont* > aCacheFonts;
-
+
if( m_pFontCache->listDirectory( aDir, aCacheFonts ) )
{
#if OSL_DEBUG_LEVEL > 1
@@ -2413,7 +2413,7 @@ void PrintFontManager::initialize()
#endif
m_pFontCache->flush();
-
+
#ifdef CALLGRIND_COMPILE
CALLGRIND_DUMP_STATS();
CALLGRIND_TOGGLE_COLLECT();
@@ -2456,7 +2456,7 @@ namespace {
weight::type eWeight;
pitch::type ePitch;
rtl_TextEncoding aEncoding;
-
+
BuiltinFontIdentifier( const OUString& rFam,
italic::type eIt,
weight::type eWg,
@@ -2468,7 +2468,7 @@ namespace {
ePitch( ePt ),
aEncoding( enc )
{}
-
+
bool operator==( const BuiltinFontIdentifier& rRight ) const
{
return equalItalic( eItalic, rRight.eItalic ) &&
@@ -2478,7 +2478,7 @@ namespace {
aFamily.equalsIgnoreAsciiCase( rRight.aFamily );
}
};
-
+
struct BuiltinFontIdentifierHash
{
size_t operator()( const BuiltinFontIdentifier& rFont ) const
@@ -2492,7 +2492,7 @@ void PrintFontManager::getFontList( ::std::list< fontID >& rFontIDs, const PPDPa
{
rFontIDs.clear();
std::hash_map< fontID, PrintFont* >::const_iterator it;
-
+
/*
* Note: there are two easy steps making this faster:
* first: insert the printer builtins first, then the not builtins,
@@ -2508,7 +2508,7 @@ void PrintFontManager::getFontList( ::std::list< fontID >& rFontIDs, const PPDPa
* Until getFontList for a printer becomes a performance issue (which is
* currently not the case), best stay with the current algorithm.
*/
-
+
// fill sets of printer supported fonts
if( pParser )
{
@@ -2530,7 +2530,7 @@ void PrintFontManager::getFontList( ::std::list< fontID >& rFontIDs, const PPDPa
aOverridePSNames[ font_it->second->m_nPSName ] = *over;
}
}
-
+
int nFonts = pParser->getFonts();
for( int i = 0; i < nFonts; i++ )
aBuiltinPSNames.insert( m_pAtoms->getAtom( ATOM_PSNAME, pParser->getFont( i ) ) );
@@ -3167,7 +3167,7 @@ bool PrintFontManager::getMetrics( fontID nFontID, sal_Unicode minCharacter, sal
pArray[ code - minCharacter ] = it->second;
}
} while( code++ != maxCharacter );
-
+
return true;
}
@@ -3274,9 +3274,9 @@ int PrintFontManager::importFonts( const ::std::list< OString >& rFiles, bool bL
OUString aFromPath, aToPath;
if( bLinkOnly )
{
- ByteString aLinkFromPath( String(aFromAfm.PathToFileName()),
+ ByteString aLinkFromPath( String(aFromAfm.PathToFileName()),
aEncoding );
- ByteString aLinkToPath( String(aToAfm.PathToFileName()),
+ ByteString aLinkToPath( String(aToAfm.PathToFileName()),
aEncoding );
nError = (FileBase::RC)symlink( aLinkFromPath.GetBuffer(), aLinkToPath.GetBuffer() );
}
@@ -3292,10 +3292,10 @@ int PrintFontManager::importFonts( const ::std::list< OString >& rFiles, bool bL
}
if( bLinkOnly )
{
- ByteString aFromPath( String(aFrom.PathToFileName()),
+ ByteString aFromPath( String(aFrom.PathToFileName()),
aEncoding );
ByteString aToPath( String(aTo.PathToFileName()), aEncoding );
- nError = (FileBase::RC)symlink( aFromPath.GetBuffer(),
+ nError = (FileBase::RC)symlink( aFromPath.GetBuffer(),
aToPath.GetBuffer() );
}
else
@@ -3421,7 +3421,7 @@ bool PrintFontManager::changeFontProperties( fontID nFontID, const ::rtl::OUStri
getFontAttributesFromXLFD( pFont, aDummyList );
pFont->m_bUserOverride = true;
m_pFontCache->updateFontCacheEntry( pFont, true );
-
+
return true;
}
@@ -3723,8 +3723,8 @@ bool PrintFontManager::createFontSubset(
int xMin, yMin, xMax, yMax;
getFontBoundingBox( nFont, xMin, yMin, xMax, yMax );
- rInfo.m_aFontBBox = Rectangle( Point( xMin, yMin ), Size( xMax-xMin, yMax-yMin ) );
- rInfo.m_nCapHeight = yMax; // Well ...
+ rInfo.m_aFontBBox = Rectangle( Point( xMin, yMin ), Size( xMax-xMin, yMax-yMin ) );
+ rInfo.m_nCapHeight = yMax; // Well ...
// fill in glyph advance widths
TTSimpleGlyphMetrics* pMetrics = GetTTSimpleGlyphMetrics( pTTFont,
@@ -3831,7 +3831,7 @@ void PrintFontManager::getGlyphWidths( fontID nFont,
rUnicodeEnc.clear();
rWidths.clear();
rWidths.reserve( pFont->m_pMetrics->m_aMetrics.size() );
- for( std::hash_map< int, CharacterMetric >::const_iterator it =
+ for( std::hash_map< int, CharacterMetric >::const_iterator it =
pFont->m_pMetrics->m_aMetrics.begin();
it != pFont->m_pMetrics->m_aMetrics.end(); ++it )
{
@@ -3944,7 +3944,7 @@ bool PrintFontManager::readOverrideMetrics()
UNO_QUERY );
if( !xMat.is() )
return false;
-
+
Any aAny( xMat->getMaterial() );
Sequence< Any > aOverrideFonts;
if( ! (aAny >>= aOverrideFonts ) )
@@ -4080,7 +4080,7 @@ bool PrintFontManager::readOverrideMetrics()
! pFont->m_pMetrics->m_aMetrics.empty() )
{
m_aOverrideFonts.push_back( m_nNextFontID );
- m_aFonts[ m_nNextFontID++ ] = pFont;
+ m_aFonts[ m_nNextFontID++ ] = pFont;
}
else
{
@@ -4088,7 +4088,7 @@ bool PrintFontManager::readOverrideMetrics()
delete pFont;
}
}
-
+
return true;
}
diff --git a/vcl/unx/source/fontmanager/helper.cxx b/vcl/unx/source/fontmanager/helper.cxx
index e81f36e790cf..155998472bdd 100644
--- a/vcl/unx/source/fontmanager/helper.cxx
+++ b/vcl/unx/source/fontmanager/helper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -107,7 +107,7 @@ OUString getOfficePath( enum whichOfficePath ePath )
static OString getEnvironmentPath( const char* pKey )
{
OString aPath;
-
+
const char* pValue = getenv( pKey );
if( pValue && *pValue )
{
@@ -122,9 +122,9 @@ void psp::getPrinterPathList( std::list< OUString >& rPathList, const char* pSub
{
rPathList.clear();
rtl_TextEncoding aEncoding = osl_getThreadTextEncoding();
-
+
OUStringBuffer aPathBuffer( 256 );
-
+
// append net path
aPathBuffer.append( getOfficePath( psp::NetPath ) );
if( aPathBuffer.getLength() )
@@ -169,7 +169,7 @@ void psp::getPrinterPathList( std::list< OUString >& rPathList, const char* pSub
rPathList.push_back( OStringToOUString( aDir, aEncoding ) );
} while( nIndex != -1 );
-
+
#ifdef SYSTEM_PPD_DIR
if( pSubDir && rtl_str_compare( pSubDir, PRINTER_PPDDIR ) == 0 )
{
@@ -202,7 +202,7 @@ OUString psp::getFontPath()
if( ! aPath.getLength() )
{
OUStringBuffer aPathBuffer( 512 );
-
+
OUString aConfigPath( getOfficePath( psp::ConfigPath ) );
OUString aNetPath( getOfficePath( psp::NetPath ) );
OUString aUserPath( getOfficePath( psp::UserPath ) );
@@ -369,7 +369,7 @@ void psp::normPath( OString& rPath )
char buf[PATH_MAX];
ByteString aPath( rPath );
-
+
// double slashes and slash at end are probably
// removed by realpath anyway, but since this runs
// on many different platforms let's play it safe
diff --git a/vcl/unx/source/fontmanager/parseAFM.cxx b/vcl/unx/source/fontmanager/parseAFM.cxx
index 6732f4253332..bc35b290875a 100644
--- a/vcl/unx/source/fontmanager/parseAFM.cxx
+++ b/vcl/unx/source/fontmanager/parseAFM.cxx
@@ -3,20 +3,20 @@
* (C) 1988, 1989, 1990 by Adobe Systems Incorporated. All rights reserved.
*
* This file may be freely copied and redistributed as long as:
- * 1) This entire notice continues to be included in the file,
+ * 1) This entire notice continues to be included in the file,
* 2) If the file has been modified in any way, a notice of such
* modification is conspicuously indicated.
*
* PostScript, Display PostScript, and Adobe are registered trademarks of
* Adobe Systems Incorporated.
- *
+ *
* ************************************************************************
* THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO CHANGE WITHOUT
* NOTICE, AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY ADOBE SYSTEMS
- * INCORPORATED. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY OR
- * LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO WARRANTY OF ANY
- * KIND (EXPRESS, IMPLIED OR STATUTORY) WITH RESPECT TO THIS INFORMATION,
- * AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
+ * INCORPORATED. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY OR
+ * LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO WARRANTY OF ANY
+ * KIND (EXPRESS, IMPLIED OR STATUTORY) WITH RESPECT TO THIS INFORMATION,
+ * AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
* ************************************************************************
*/
@@ -47,13 +47,13 @@
#include "precompiled_vcl.hxx"
/* parseAFM.c
- *
+ *
* This file is used in conjuction with the parseAFM.h header file.
* This file contains several procedures that are used to parse AFM
* files. It is intended to work with an application program that needs
* font metric information. The program can be used as is by making a
* procedure call to "parseFile" (passing in the expected parameters)
- * and having it fill in a data structure with the data from the
+ * and having it fill in a data structure with the data from the
* AFM file, or an application developer may wish to customize this
* code.
*
@@ -108,7 +108,7 @@ class FileInputStream
public:
FileInputStream( const char* pFilename );
~FileInputStream();
-
+
int getChar() { return (m_nPos < m_nLen) ? int(m_pMemory[m_nPos++]) : -1; }
void ungetChar()
{
@@ -149,18 +149,18 @@ FileInputStream::~FileInputStream()
}
/*************************** GLOBALS ***********************/
-/* "shorts" for fast case statement
+/* "shorts" for fast case statement
* The values of each of these enumerated items correspond to an entry in the
- * table of strings defined below. Therefore, if you add a new string as
+ * table of strings defined below. Therefore, if you add a new string as
* new keyword into the keyStrings table, you must also add a corresponding
* parseKey AND it MUST be in the same position!
*
* IMPORTANT: since the sorting algorithm is a binary search, the strings of
- * keywords must be placed in lexicographical order, below. [Therefore, the
- * enumerated items are not necessarily in lexicographical order, depending
- * on the name chosen. BUT, they must be placed in the same position as the
- * corresponding key string.] The NOPE shall remain in the last position,
- * since it does not correspond to any key string, and it is used in the
+ * keywords must be placed in lexicographical order, below. [Therefore, the
+ * enumerated items are not necessarily in lexicographical order, depending
+ * on the name chosen. BUT, they must be placed in the same position as the
+ * corresponding key string.] The NOPE shall remain in the last position,
+ * since it does not correspond to any key string, and it is used in the
* "recognize" procedure to calculate how many possible keys there are.
*/
@@ -180,16 +180,16 @@ enum parseKey {
NOPE
};
-/*************************** PARSING ROUTINES **************/
-
+/*************************** PARSING ROUTINES **************/
+
/*************************** token *************************/
/* A "AFM file Conventions" tokenizer. That means that it will
* return the next token delimited by white space. See also
- * the `linetoken' routine, which does a similar thing but
+ * the `linetoken' routine, which does a similar thing but
* reads all tokens until the next end-of-line.
*/
-
+
// token white space is ' ', '\n', '\r', ',', '\t', ';'
static const bool is_white_Array[ 256 ] =
{ false, false, false, false, false, false, false, false, // 0-7
@@ -200,7 +200,7 @@ static const bool is_white_Array[ 256 ] =
false, false, false, false, true, false, false, false, // 40-47
false, false, false, false, false, false, false, false, // 48-55
false, false, false, true, false, false, false, false, // 56-63
-
+
false, false, false, false, false, false, false, false, // 64 -
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
@@ -209,7 +209,7 @@ static const bool is_white_Array[ 256 ] =
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, // 127
-
+
false, false, false, false, false, false, false, false, // 128 -
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
@@ -238,7 +238,7 @@ static const bool is_delimiter_Array[ 256 ] =
false, false, false, false, false, false, false, false, // 40-47
false, false, false, false, false, false, false, false, // 48-55
false, false, true, true, false, false, false, false, // 56-63
-
+
false, false, false, false, false, false, false, false, // 64 -
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
@@ -247,7 +247,7 @@ static const bool is_delimiter_Array[ 256 ] =
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false, // 127
-
+
false, false, false, false, false, false, false, false, // 128 -
false, false, false, false, false, false, false, false,
false, false, false, false, false, false, false, false,
@@ -276,7 +276,7 @@ static char *token( FileInputStream* stream, int& rLen )
// relies on EOF = -1
while( is_white_Array[ (ch = stream->getChar()) & 255 ] )
;
-
+
idx = 0;
while( ch != -1 && ! is_delimiter_Array[ ch & 255 ] && idx < MAX_NAME-1 )
{
@@ -289,7 +289,7 @@ static char *token( FileInputStream* stream, int& rLen )
if (idx < 1 ) ident[idx++] = ch; /* single-character token */
ident[idx] = 0;
rLen = idx;
-
+
return(ident); /* returns pointer to the token */
} /* token */
@@ -307,15 +307,15 @@ static char *linetoken( FileInputStream* stream )
static char ident[MAX_NAME]; /* storage buffer for keywords */
int ch, idx;
- while ((ch = stream->getChar()) == ' ' || ch == '\t' ) ;
-
+ while ((ch = stream->getChar()) == ' ' || ch == '\t' ) ;
+
idx = 0;
- while (ch != -1 && ch != lineterm && ch != '\r' && idx < MAX_NAME-1 )
+ while (ch != -1 && ch != lineterm && ch != '\r' && idx < MAX_NAME-1 )
{
ident[idx++] = ch;
ch = stream->getChar();
} /* while */
-
+
stream->ungetChar();
ident[idx] = 0;
@@ -327,7 +327,7 @@ static char *linetoken( FileInputStream* stream )
/*************************** recognize *************************/
/* This function tries to match a string to a known list of
- * valid AFM entries (check the keyStrings array above).
+ * valid AFM entries (check the keyStrings array above).
* "ident" contains everything from white space through the
* next space, tab, or ":" character.
*
@@ -339,7 +339,7 @@ static inline enum parseKey recognize( register char* ident, int len)
{
const hash_entry* pEntry = AfmKeywordHash::in_word_set( ident, len );
return pEntry ? pEntry->eKey : NOPE;
-
+
} /* recognize */
@@ -348,34 +348,34 @@ static inline enum parseKey recognize( register char* ident, int len)
/* This function is called by "parseFile". It will parse the AFM file
* up to the "StartCharMetrics" keyword, which essentially marks the
* end of the Global Font Information and the beginning of the character
- * metrics information.
+ * metrics information.
*
* If the caller of "parseFile" specified that it wanted the Global
* Font Information (as defined by the "AFM file Specification"
- * document), then that information will be stored in the returned
+ * document), then that information will be stored in the returned
* data structure.
*
- * Any Global Font Information entries that are not found in a
+ * Any Global Font Information entries that are not found in a
* given file, will have the usual default initialization value
* for its type (i.e. entries of type int will be 0, etc).
*
- * This function returns an error code specifying whether there was
- * a premature EOF or a parsing error. This return value is used by
+ * This function returns an error code specifying whether there was
+ * a premature EOF or a parsing error. This return value is used by
* parseFile to determine if there is more file to parse.
*/
-
+
static int parseGlobals( FileInputStream* fp, register GlobalFontInfo* gfi )
-{
+{
bool cont = true, save = (gfi != NULL);
int error = ok;
register char *keyword;
int direction = -1;
int tokenlen;
-
+
while (cont)
{
keyword = token(fp, tokenlen);
-
+
if (keyword == NULL)
/* Have reached an early and unexpected EOF. */
/* Set flag and stop parsing */
@@ -383,15 +383,15 @@ static int parseGlobals( FileInputStream* fp, register GlobalFontInfo* gfi )
error = earlyEOF;
break; /* get out of loop */
}
- if (!save)
+ if (!save)
/* get tokens until the end of the Global Font info section */
/* without saving any of the data */
- switch (recognize(keyword, tokenlen))
- {
+ switch (recognize(keyword, tokenlen))
+ {
case STARTCHARMETRICS:
cont = false;
break;
- case ENDFONTMETRICS:
+ case ENDFONTMETRICS:
cont = false;
error = normalEOF;
break;
@@ -417,15 +417,15 @@ static int parseGlobals( FileInputStream* fp, register GlobalFontInfo* gfi )
case ENCODINGSCHEME:
if ((keyword = token(fp,tokenlen)) != NULL)
gfi->encodingScheme = strdup( keyword );
- break;
+ break;
case FULLNAME:
if ((keyword = linetoken(fp)) != NULL)
gfi->fullName = strdup( keyword );
- break;
- case FAMILYNAME:
+ break;
+ case FAMILYNAME:
if ((keyword = linetoken(fp)) != NULL)
gfi->familyName = strdup( keyword );
- break;
+ break;
case WEIGHT:
if ((keyword = token(fp,tokenlen)) != NULL)
gfi->weight = strdup( keyword );
@@ -439,14 +439,14 @@ static int parseGlobals( FileInputStream* fp, register GlobalFontInfo* gfi )
{
if (MATCH(keyword, False))
gfi->isFixedPitch = 0;
- else
+ else
gfi->isFixedPitch = 1;
}
- break;
+ break;
case UNDERLINEPOSITION:
if ((keyword = token(fp,tokenlen)) != NULL)
gfi->underlinePosition = atoi(keyword);
- break;
+ break;
case UNDERLINETHICKNESS:
if ((keyword = token(fp,tokenlen)) != NULL)
gfi->underlineThickness = atoi(keyword);
@@ -454,11 +454,11 @@ static int parseGlobals( FileInputStream* fp, register GlobalFontInfo* gfi )
case VERSION:
if ((keyword = token(fp,tokenlen)) != NULL)
gfi->version = strdup( keyword );
- break;
+ break;
case NOTICE:
if ((keyword = linetoken(fp)) != NULL)
gfi->notice = strdup( keyword );
- break;
+ break;
case FONTBBOX:
if ((keyword = token(fp,tokenlen)) != NULL)
gfi->fontBBox.llx = atoi(keyword);
@@ -533,7 +533,7 @@ static int parseGlobals( FileInputStream* fp, register GlobalFontInfo* gfi )
}
keyword = token(fp,tokenlen);
/* ignore y-width for now */
- break;
+ break;
case METRICSSETS:
keyword = token(fp,tokenlen);
break; /* ignore this for now */
@@ -543,38 +543,38 @@ static int parseGlobals( FileInputStream* fp, register GlobalFontInfo* gfi )
break;
} /* switch */
} /* while */
-
+
return(error);
-
-} /* parseGlobals */
+
+} /* parseGlobals */
/************************* parseCharWidths **************************/
/* This function is called by "parseFile". It will parse the AFM file
- * up to the "EndCharMetrics" keyword. It will save the character
+ * up to the "EndCharMetrics" keyword. It will save the character
* width info (as opposed to all of the character metric information)
* if requested by the caller of parseFile. Otherwise, it will just
* parse through the section without saving any information.
*
- * If data is to be saved, parseCharWidths is passed in a pointer
+ * If data is to be saved, parseCharWidths is passed in a pointer
* to an array of widths that has already been initialized by the
* standard value for unmapped character codes. This function parses
* the Character Metrics section only storing the width information
* for the encoded characters into the array using the character code
* as the index into that array.
*
- * This function returns an error code specifying whether there was
- * a premature EOF or a parsing error. This return value is used by
+ * This function returns an error code specifying whether there was
+ * a premature EOF or a parsing error. This return value is used by
* parseFile to determine if there is more file to parse.
*/
-
+
static int parseCharWidths( FileInputStream* fp, register int* cwi)
-{
+{
bool cont = true, save = (cwi != NULL);
int pos = 0, error = ok, tokenlen;
register char *keyword;
-
+
while (cont)
{
keyword = token(fp,tokenlen);
@@ -585,19 +585,19 @@ static int parseCharWidths( FileInputStream* fp, register int* cwi)
error = earlyEOF;
break; /* get out of loop */
}
- if (!save)
+ if (!save)
/* get tokens until the end of the Char Metrics section without */
/* saving any of the data*/
- switch (recognize(keyword,tokenlen))
- {
+ switch (recognize(keyword,tokenlen))
+ {
case ENDCHARMETRICS:
cont = false;
- break;
+ break;
case ENDFONTMETRICS:
cont = false;
error = normalEOF;
break;
- default:
+ default:
break;
} /* switch */
else
@@ -631,15 +631,15 @@ static int parseCharWidths( FileInputStream* fp, register int* cwi)
break;
case ENDCHARMETRICS:
cont = false;
- break;
+ break;
case ENDFONTMETRICS:
cont = false;
error = normalEOF;
break;
case CHARNAME: /* eat values (so doesn't cause parseError) */
- keyword = token(fp,tokenlen);
+ keyword = token(fp,tokenlen);
break;
- case CHARBBOX:
+ case CHARBBOX:
keyword = token(fp,tokenlen); keyword = token(fp,tokenlen);
keyword = token(fp,tokenlen); keyword = token(fp,tokenlen);
break;
@@ -651,21 +651,21 @@ static int parseCharWidths( FileInputStream* fp, register int* cwi)
keyword = token(fp,tokenlen);
break;
case NOPE:
- default:
+ default:
error = parseError;
break;
} /* switch */
} /* while */
-
+
return(error);
-
-} /* parseCharWidths */
+
+} /* parseCharWidths */
/*
* number of char metrics is almost allways inaccurate, so be gentle and try to
* adapt our internal storage by adjusting the allocated list
- */
+ */
static int
reallocFontMetrics( void **pp_fontmetrics, int *p_oldcount, int n_newcount, unsigned int n_size )
@@ -684,7 +684,7 @@ reallocFontMetrics( void **pp_fontmetrics, int *p_oldcount, int n_newcount, unsi
if ( n_newcount > *p_oldcount )
{
- char *p_inimetrics = p_tmpmetrics + n_size * *p_oldcount;
+ char *p_inimetrics = p_tmpmetrics + n_size * *p_oldcount;
int n_inimetrics = n_size * (n_newcount - *p_oldcount);
memset( p_inimetrics, 0, n_inimetrics );
}
@@ -702,7 +702,7 @@ enlargeCount( unsigned int n_oldcount )
if (n_oldcount == n_newcount )
n_newcount = n_oldcount + 5;
- return n_newcount;
+ return n_newcount;
}
/************************* parseCharMetrics ************************/
@@ -714,21 +714,21 @@ enlargeCount( unsigned int n_oldcount )
* parseCharMetrics is passed in a pointer to an array of records
* to hold information on a per character basis. This function
* parses the Character Metrics section storing all character
- * metric information for the ALL characters (mapped and unmapped)
+ * metric information for the ALL characters (mapped and unmapped)
* into the array.
*
- * This function returns an error code specifying whether there was
- * a premature EOF or a parsing error. This return value is used by
+ * This function returns an error code specifying whether there was
+ * a premature EOF or a parsing error. This return value is used by
* parseFile to determine if there is more file to parse.
*/
-
+
static int parseCharMetrics( FileInputStream* fp, register FontInfo* fi)
-{
+{
bool cont = true, firstTime = true;
int error = ok, count = 0, tokenlen;
register CharMetricInfo *temp = fi->cmi;
register char *keyword;
-
+
while (cont)
{
keyword = token(fp,tokenlen);
@@ -741,17 +741,17 @@ static int parseCharMetrics( FileInputStream* fp, register FontInfo* fi)
{
case COMMENT:
keyword = linetoken(fp);
- break;
+ break;
case CODE:
if (!(count < fi->numOfChars))
{
- reallocFontMetrics( (void**)&(fi->cmi),
- &(fi->numOfChars), enlargeCount(fi->numOfChars),
+ reallocFontMetrics( (void**)&(fi->cmi),
+ &(fi->numOfChars), enlargeCount(fi->numOfChars),
sizeof(CharMetricInfo) );
temp = &(fi->cmi[ count - 1 ]);
}
if (count < fi->numOfChars)
- {
+ {
if (firstTime) firstTime = false;
else temp++;
if ((keyword = token(fp,tokenlen)) != NULL)
@@ -769,8 +769,8 @@ static int parseCharMetrics( FileInputStream* fp, register FontInfo* fi)
case CODEHEX:
if (!(count < fi->numOfChars ))
{
- reallocFontMetrics( (void**)&(fi->cmi),
- &(fi->numOfChars), enlargeCount(fi->numOfChars),
+ reallocFontMetrics( (void**)&(fi->cmi),
+ &(fi->numOfChars), enlargeCount(fi->numOfChars),
sizeof(CharMetricInfo) );
temp = &(fi->cmi[ count - 1 ]);
}
@@ -795,20 +795,20 @@ static int parseCharMetrics( FileInputStream* fp, register FontInfo* fi)
temp->wx = atoi(keyword);
if ((keyword = token(fp,tokenlen)) != NULL)
temp->wy = atoi(keyword);
- break;
+ break;
case X0WIDTH:
if ((keyword = token(fp,tokenlen)) != NULL)
temp->wx = atoi(keyword);
break;
- case XWIDTH:
+ case XWIDTH:
if ((keyword = token(fp,tokenlen)) != NULL)
temp->wx = atoi(keyword);
break;
- case CHARNAME:
+ case CHARNAME:
if ((keyword = token(fp,tokenlen)) != NULL)
temp->name = (char *)strdup(keyword);
- break;
- case CHARBBOX:
+ break;
+ case CHARBBOX:
if ((keyword = token(fp,tokenlen)) != NULL)
temp->charBBox.llx = atoi(keyword);
if ((keyword = token(fp,tokenlen)) != NULL)
@@ -821,14 +821,14 @@ static int parseCharMetrics( FileInputStream* fp, register FontInfo* fi)
case LIGATURE: {
Ligature **tail = &(temp->ligs);
Ligature *node = *tail;
-
+
if (*tail != NULL)
{
while (node->next != NULL)
node = node->next;
- tail = &(node->next);
+ tail = &(node->next);
}
-
+
*tail = (Ligature *) calloc(1, sizeof(Ligature));
if ((keyword = token(fp,tokenlen)) != NULL)
(*tail)->succ = (char *)strdup(keyword);
@@ -837,60 +837,60 @@ static int parseCharMetrics( FileInputStream* fp, register FontInfo* fi)
break; }
case ENDCHARMETRICS:
cont = false;;
- break;
- case ENDFONTMETRICS:
+ break;
+ case ENDFONTMETRICS:
cont = false;
error = normalEOF;
- break;
+ break;
case VVECTOR:
keyword = token(fp,tokenlen);
keyword = token(fp,tokenlen);
break;
case NOPE:
default:
- error = parseError;
- break;
+ error = parseError;
+ break;
} /* switch */
} /* while */
-
- if ((error == ok) && (count != fi->numOfChars))
- error = reallocFontMetrics( (void**)&(fi->cmi), &(fi->numOfChars),
+
+ if ((error == ok) && (count != fi->numOfChars))
+ error = reallocFontMetrics( (void**)&(fi->cmi), &(fi->numOfChars),
count, sizeof(CharMetricInfo) );
if ((error == ok) && (count != fi->numOfChars))
error = parseError;
-
+
return(error);
-
-} /* parseCharMetrics */
+
+} /* parseCharMetrics */
/************************* parseTrackKernData ***********************/
-/* This function is called by "parseFile". It will parse the AFM file
+/* This function is called by "parseFile". It will parse the AFM file
* up to the "EndTrackKern" or "EndKernData" keywords. It will save the
* track kerning data if requested by the caller of parseFile.
*
* parseTrackKernData is passed in a pointer to the FontInfo record.
- * If data is to be saved, the FontInfo record will already contain
+ * If data is to be saved, the FontInfo record will already contain
* a valid pointer to storage for the track kerning data.
*
- * This function returns an error code specifying whether there was
- * a premature EOF or a parsing error. This return value is used by
+ * This function returns an error code specifying whether there was
+ * a premature EOF or a parsing error. This return value is used by
* parseFile to determine if there is more file to parse.
*/
-
+
static int parseTrackKernData( FileInputStream* fp, register FontInfo* fi)
-{
+{
bool cont = true, save = (fi->tkd != NULL);
int pos = 0, error = ok, tcount = 0, tokenlen;
register char *keyword;
-
+
while (cont)
{
keyword = token(fp,tokenlen);
-
+
if (keyword == NULL)
{
error = earlyEOF;
@@ -923,7 +923,7 @@ static int parseTrackKernData( FileInputStream* fp, register FontInfo* fi)
case TRACKKERN:
if (!(tcount < fi->numOfTracks))
{
- reallocFontMetrics( (void**)&(fi->tkd), &(fi->numOfTracks),
+ reallocFontMetrics( (void**)&(fi->tkd), &(fi->numOfTracks),
enlargeCount(fi->numOfTracks), sizeof(TrackKernData) );
}
@@ -961,44 +961,44 @@ static int parseTrackKernData( FileInputStream* fp, register FontInfo* fi)
break;
} /* switch */
} /* while */
-
+
if (error == ok && tcount != fi->numOfTracks)
- error = reallocFontMetrics( (void**)&(fi->tkd), &(fi->numOfTracks),
+ error = reallocFontMetrics( (void**)&(fi->tkd), &(fi->numOfTracks),
tcount, sizeof(TrackKernData) );
if (error == ok && tcount != fi->numOfTracks)
error = parseError;
-
+
return(error);
-
-} /* parseTrackKernData */
+
+} /* parseTrackKernData */
/************************* parsePairKernData ************************/
-/* This function is called by "parseFile". It will parse the AFM file
+/* This function is called by "parseFile". It will parse the AFM file
* up to the "EndKernPairs" or "EndKernData" keywords. It will save
* the pair kerning data if requested by the caller of parseFile.
*
* parsePairKernData is passed in a pointer to the FontInfo record.
- * If data is to be saved, the FontInfo record will already contain
+ * If data is to be saved, the FontInfo record will already contain
* a valid pointer to storage for the pair kerning data.
*
- * This function returns an error code specifying whether there was
- * a premature EOF or a parsing error. This return value is used by
+ * This function returns an error code specifying whether there was
+ * a premature EOF or a parsing error. This return value is used by
* parseFile to determine if there is more file to parse.
*/
-
+
static int parsePairKernData( FileInputStream* fp, register FontInfo* fi)
-{
+{
bool cont = true, save = (fi->pkd != NULL);
int pos = 0, error = ok, pcount = 0, tokenlen;
register char *keyword;
-
+
while (cont)
{
keyword = token(fp,tokenlen);
-
+
if (keyword == NULL)
{
error = earlyEOF;
@@ -1031,7 +1031,7 @@ static int parsePairKernData( FileInputStream* fp, register FontInfo* fi)
case KERNPAIR:
if (!(pcount < fi->numOfPairs))
{
- reallocFontMetrics( (void**)&(fi->pkd), &(fi->numOfPairs),
+ reallocFontMetrics( (void**)&(fi->pkd), &(fi->numOfPairs),
enlargeCount(fi->numOfPairs), sizeof(PairKernData) );
}
if (pcount < fi->numOfPairs)
@@ -1055,7 +1055,7 @@ static int parsePairKernData( FileInputStream* fp, register FontInfo* fi)
case KERNPAIRXAMT:
if (!(pcount < fi->numOfPairs))
{
- reallocFontMetrics( (void**)&(fi->pkd), &(fi->numOfPairs),
+ reallocFontMetrics( (void**)&(fi->pkd), &(fi->numOfPairs),
enlargeCount(fi->numOfPairs), sizeof(PairKernData) );
}
if (pcount < fi->numOfPairs)
@@ -1088,43 +1088,43 @@ static int parsePairKernData( FileInputStream* fp, register FontInfo* fi)
break;
} /* switch */
} /* while */
-
- if ((error == ok) && (pcount != fi->numOfPairs))
- error = reallocFontMetrics( (void**)&(fi->pkd), &(fi->numOfPairs),
+
+ if ((error == ok) && (pcount != fi->numOfPairs))
+ error = reallocFontMetrics( (void**)&(fi->pkd), &(fi->numOfPairs),
pcount, sizeof(PairKernData) );
if (error == ok && pcount != fi->numOfPairs)
error = parseError;
-
+
return(error);
-
-} /* parsePairKernData */
+
+} /* parsePairKernData */
/************************* parseCompCharData **************************/
-/* This function is called by "parseFile". It will parse the AFM file
- * up to the "EndComposites" keyword. It will save the composite
+/* This function is called by "parseFile". It will parse the AFM file
+ * up to the "EndComposites" keyword. It will save the composite
* character data if requested by the caller of parseFile.
*
- * parseCompCharData is passed in a pointer to the FontInfo record, and
+ * parseCompCharData is passed in a pointer to the FontInfo record, and
* a boolean representing if the data should be saved.
*
* This function will create the appropriate amount of storage for
* the composite character data and store a pointer to the storage
* in the FontInfo record.
*
- * This function returns an error code specifying whether there was
- * a premature EOF or a parsing error. This return value is used by
+ * This function returns an error code specifying whether there was
+ * a premature EOF or a parsing error. This return value is used by
* parseFile to determine if there is more file to parse.
*/
-
+
static int parseCompCharData( FileInputStream* fp, register FontInfo* fi)
-{
+{
bool cont = true, firstTime = true, save = (fi->ccd != NULL);
int pos = 0, j = 0, error = ok, ccount = 0, pcount = 0, tokenlen;
register char *keyword;
-
+
while (cont)
{
keyword = token(fp,tokenlen);
@@ -1137,7 +1137,7 @@ static int parseCompCharData( FileInputStream* fp, register FontInfo* fi)
}
if (ccount > fi->numOfComps)
{
- reallocFontMetrics( (void**)&(fi->ccd), &(fi->numOfComps),
+ reallocFontMetrics( (void**)&(fi->ccd), &(fi->numOfComps),
enlargeCount(fi->numOfComps), sizeof(CompCharData) );
}
if (ccount > fi->numOfComps)
@@ -1175,7 +1175,7 @@ static int parseCompCharData( FileInputStream* fp, register FontInfo* fi)
case COMPCHAR:
if (!(ccount < fi->numOfComps))
{
- reallocFontMetrics( (void**)&(fi->ccd), &(fi->numOfComps),
+ reallocFontMetrics( (void**)&(fi->ccd), &(fi->numOfComps),
enlargeCount(fi->numOfComps), sizeof(CompCharData) );
}
if (ccount < fi->numOfComps)
@@ -1227,27 +1227,27 @@ static int parseCompCharData( FileInputStream* fp, register FontInfo* fi)
break;
} /* switch */
} /* while */
-
+
if (error == ok && ccount != fi->numOfComps)
- reallocFontMetrics( (void**)&(fi->ccd), &(fi->numOfComps),
+ reallocFontMetrics( (void**)&(fi->ccd), &(fi->numOfComps),
ccount, sizeof(CompCharData) );
if (error == ok && ccount != fi->numOfComps)
error = parseError;
-
+
return(error);
-
-} /* parseCompCharData */
+
+} /* parseCompCharData */
-/*************************** 'PUBLIC' FUNCTION ********************/
+/*************************** 'PUBLIC' FUNCTION ********************/
/*************************** parseFile *****************************/
-/* parseFile is the only 'public' procedure available. It is called
+/* parseFile is the only 'public' procedure available. It is called
* from an application wishing to get information from an AFM file.
* The caller of this function is responsible for locating and opening
* an AFM file and handling all errors associated with that task.
@@ -1257,41 +1257,41 @@ static int parseCompCharData( FileInputStream* fp, register FontInfo* fi)
* the data requested filled in), and a mask specifying which
* data from the AFM file should be saved in the FontInfo structure.
*
- * The file will be parsed and the requested data will be stored in
+ * The file will be parsed and the requested data will be stored in
* a record of type FontInfo (refer to ParseAFM.h).
*
- * parseFile returns an error code as defined in parseAFM.h.
+ * parseFile returns an error code as defined in parseAFM.h.
*
- * The position of the read/write pointer associated with the file
+ * The position of the read/write pointer associated with the file
* pointer upon return of this function is undefined.
*/
int parseFile( const char* pFilename, FontInfo** fi, FLAGS flags)
{
FileInputStream aFile( pFilename );
-
+
int code = ok; /* return code from each of the parsing routines */
int error = ok; /* used as the return code from this function */
int tokenlen;
-
- register char *keyword; /* used to store a token */
-
+
+ register char *keyword; /* used to store a token */
+
(*fi) = (FontInfo *) calloc(1, sizeof(FontInfo));
- if ((*fi) == NULL) {error = storageProblem; return(error);}
-
- if (flags & P_G)
+ if ((*fi) == NULL) {error = storageProblem; return(error);}
+
+ if (flags & P_G)
{
(*fi)->gfi = (GlobalFontInfo *) calloc(1, sizeof(GlobalFontInfo));
- if ((*fi)->gfi == NULL) {error = storageProblem; return(error);}
+ if ((*fi)->gfi == NULL) {error = storageProblem; return(error);}
}
-
+
/* The AFM file begins with Global Font Information. This section */
- /* will be parsed whether or not information should be saved. */
- code = parseGlobals(&aFile, (*fi)->gfi);
-
+ /* will be parsed whether or not information should be saved. */
+ code = parseGlobals(&aFile, (*fi)->gfi);
+
if (code < 0) error = code;
-
+
/* The Global Font Information is followed by the Character Metrics */
/* section. Which procedure is used to parse this section depends on */
/* how much information should be saved. If all of the metrics info */
@@ -1299,26 +1299,26 @@ int parseFile( const char* pFilename, FontInfo** fi, FLAGS flags)
/* is wanted, parseCharWidths is called. parseCharWidths will also */
/* be called in the case that no character data is to be saved, just */
/* to parse through the section. */
-
+
if ((code != normalEOF) && (code != earlyEOF))
{
if ((keyword = token(&aFile,tokenlen)) != NULL)
(*fi)->numOfChars = atoi(keyword);
if (flags & (P_M ^ P_W))
{
- (*fi)->cmi = (CharMetricInfo *)
+ (*fi)->cmi = (CharMetricInfo *)
calloc((*fi)->numOfChars, sizeof(CharMetricInfo));
if ((*fi)->cmi == NULL) {error = storageProblem; return(error);}
- code = parseCharMetrics(&aFile, *fi);
+ code = parseCharMetrics(&aFile, *fi);
}
else
{
if (flags & P_W)
- {
- (*fi)->cwi = (int *) calloc(256, sizeof(int));
- if ((*fi)->cwi == NULL)
+ {
+ (*fi)->cwi = (int *) calloc(256, sizeof(int));
+ if ((*fi)->cwi == NULL)
{
- error = storageProblem;
+ error = storageProblem;
return(error);
}
}
@@ -1326,15 +1326,15 @@ int parseFile( const char* pFilename, FontInfo** fi, FLAGS flags)
code = parseCharWidths(&aFile, (*fi)->cwi);
} /* else */
} /* if */
-
+
if ((error != earlyEOF) && (code < 0)) error = code;
-
+
/* The remaining sections of the AFM are optional. This code will */
/* look at the next keyword in the file to determine what section */
/* is next, and then allocate the appropriate amount of storage */
/* for the data (if the data is to be saved) and call the */
/* appropriate parsing routine to parse the section. */
-
+
while ((code != normalEOF) && (code != earlyEOF))
{
keyword = token(&aFile,tokenlen);
@@ -1356,11 +1356,11 @@ int parseFile( const char* pFilename, FontInfo** fi, FLAGS flags)
if ((flags & P_T) && keyword)
{
(*fi)->numOfTracks = atoi(keyword);
- (*fi)->tkd = (TrackKernData *)
+ (*fi)->tkd = (TrackKernData *)
calloc((*fi)->numOfTracks, sizeof(TrackKernData));
- if ((*fi)->tkd == NULL)
+ if ((*fi)->tkd == NULL)
{
- error = storageProblem;
+ error = storageProblem;
return(error);
}
} /* if */
@@ -1371,11 +1371,11 @@ int parseFile( const char* pFilename, FontInfo** fi, FLAGS flags)
if ((flags & P_P) && keyword)
{
(*fi)->numOfPairs = atoi(keyword);
- (*fi)->pkd = (PairKernData *)
+ (*fi)->pkd = (PairKernData *)
calloc((*fi)->numOfPairs, sizeof(PairKernData));
- if ((*fi)->pkd == NULL)
+ if ((*fi)->pkd == NULL)
{
- error = storageProblem;
+ error = storageProblem;
return(error);
}
} /* if */
@@ -1384,18 +1384,18 @@ int parseFile( const char* pFilename, FontInfo** fi, FLAGS flags)
case STARTCOMPOSITES:
keyword = token(&aFile,tokenlen);
if ((flags & P_C) && keyword)
- {
+ {
(*fi)->numOfComps = atoi(keyword);
- (*fi)->ccd = (CompCharData *)
+ (*fi)->ccd = (CompCharData *)
calloc((*fi)->numOfComps, sizeof(CompCharData));
- if ((*fi)->ccd == NULL)
+ if ((*fi)->ccd == NULL)
{
- error = storageProblem;
+ error = storageProblem;
return(error);
}
} /* if */
- code = parseCompCharData(&aFile, *fi);
- break;
+ code = parseCompCharData(&aFile, *fi);
+ break;
case ENDFONTMETRICS:
code = normalEOF;
break;
@@ -1407,15 +1407,15 @@ int parseFile( const char* pFilename, FontInfo** fi, FLAGS flags)
code = parseError;
break;
} /* switch */
-
+
if ((error != earlyEOF) && (code < 0)) error = code;
-
+
} /* while */
-
+
if ((error != earlyEOF) && (code < 0)) error = code;
-
+
return(error);
-
+
} /* parseFile */
void
diff --git a/vcl/unx/source/fontmanager/parseAFM.hxx b/vcl/unx/source/fontmanager/parseAFM.hxx
index 0c390bd8cf8d..11abc82d45b6 100644
--- a/vcl/unx/source/fontmanager/parseAFM.hxx
+++ b/vcl/unx/source/fontmanager/parseAFM.hxx
@@ -3,20 +3,20 @@
* (C) 1988, 1989 by Adobe Systems Incorporated. All rights reserved.
*
* This file may be freely copied and redistributed as long as:
- * 1) This entire notice continues to be included in the file,
+ * 1) This entire notice continues to be included in the file,
* 2) If the file has been modified in any way, a notice of such
* modification is conspicuously indicated.
*
* PostScript, Display PostScript, and Adobe are registered trademarks of
* Adobe Systems Incorporated.
- *
+ *
* ************************************************************************
* THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO CHANGE WITHOUT
* NOTICE, AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY ADOBE SYSTEMS
- * INCORPORATED. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY OR
- * LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO WARRANTY OF ANY
- * KIND (EXPRESS, IMPLIED OR STATUTORY) WITH RESPECT TO THIS INFORMATION,
- * AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
+ * INCORPORATED. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY OR
+ * LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO WARRANTY OF ANY
+ * KIND (EXPRESS, IMPLIED OR STATUTORY) WITH RESPECT TO THIS INFORMATION,
+ * AND EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
* ************************************************************************
*/
@@ -41,23 +41,23 @@
* Together these files provide the functionality to parse Adobe Font
* Metrics files and store the information in predefined data structures.
* It is intended to work with an application program that needs font metric
- * information. The program can be used as is by making a procedure call to
+ * information. The program can be used as is by making a procedure call to
* parse an AFM file and have the data stored, or an application developer
- * may wish to customize the code.
+ * may wish to customize the code.
*
- * This header file defines the data structures used as well as the key
+ * This header file defines the data structures used as well as the key
* strings that are currently recognized by this version of the AFM parser.
- * This program is based on the document "Adobe Font Metrics Files,
+ * This program is based on the document "Adobe Font Metrics Files,
* Specification Version 2.0".
*
* AFM files are separated into distinct sections of different data. Because
* of this, the parseAFM program can parse a specified file to only save
- * certain sections of information based on the application's needs. A record
+ * certain sections of information based on the application's needs. A record
* containing the requested information will be returned to the application.
- *
+ *
* AFM files are divided into five sections of data:
* 1) The Global Font Information
- * 2) The Character Metrics Information
+ * 2) The Character Metrics Information
* 3) The Track Kerning Data
* 4) The Pair-Wise Kerning Data
* 5) The Composite Character Data
@@ -66,22 +66,22 @@
* of what other sections are requested. In addition, in recognizing that
* many applications will want ONLY the x-width of characters and not all
* of the other character metrics information, there is a way to receive
- * only the width information so as not to pay the storage cost for the
- * unwanted data. An application should never request both the
- * "quick and dirty" char metrics (widths only) and the Character Metrics
- * Information since the Character Metrics Information will contain all
+ * only the width information so as not to pay the storage cost for the
+ * unwanted data. An application should never request both the
+ * "quick and dirty" char metrics (widths only) and the Character Metrics
+ * Information since the Character Metrics Information will contain all
* of the character widths as well.
- *
- * There is a procedure in parseAFM.c, called parseFile, that can be
+ *
+ * There is a procedure in parseAFM.c, called parseFile, that can be
* called from any application wishing to get information from the AFM File.
* This procedure expects 3 parameters: a vaild file descriptor, a pointer
- * to a (FontInfo *) variable (for which space will be allocated and then
+ * to a (FontInfo *) variable (for which space will be allocated and then
* will be filled in with the data requested), and a mask specifying
* which data from the AFM File should be saved in the FontInfo structure.
- *
+ *
* The flags that can be used to set the appropriate mask are defined below.
- * In addition, several commonly used masks have already been defined.
- *
+ * In addition, several commonly used masks have already been defined.
+ *
* History:
* original: DSM Thu Oct 20 17:39:59 PDT 1988
* modified: DSM Mon Jul 3 14:17:50 PDT 1989
@@ -113,27 +113,27 @@ namespace psp {
/* Commonly used flags
*/
-#define P_GW (P_G | P_W)
+#define P_GW (P_G | P_W)
#define P_GM (P_G | P_M)
#define P_GMP (P_G | P_M | P_P)
-#define P_GMK (P_G | P_M | P_P | P_T)
+#define P_GMK (P_G | P_M | P_P | P_T)
#define P_ALL (P_G | P_M | P_P | P_T | P_C)
/* Possible return codes from the parseFile procedure.
- *
+ *
* ok means there were no problems parsing the file.
*
* parseError means that there was some kind of parsing error, but the
* parser went on. This could include problems like the count for any given
* section does not add up to how many entries there actually were, or
* there was a key that was not recognized. The return record may contain
- * vaild data or it may not.
+ * vaild data or it may not.
*
* earlyEOF means that an End of File was encountered before expected. This
* may mean that the AFM file had been truncated, or improperly formed.
- *
+ *
* storageProblem means that there were problems allocating storage for
* the data structures that would have contained the AFM data.
*/
@@ -143,16 +143,16 @@ enum afmError { ok = 0, parseError = -1, earlyEOF = -2, storageProblem = -3 };
/************************* TYPES *********************************/
/* Below are all of the data structure definitions. These structures
- * try to map as closely as possible to grouping and naming of data
+ * try to map as closely as possible to grouping and naming of data
* in the AFM Files.
*/
-/* Bounding box definition. Used for the Font BBox as well as the
+/* Bounding box definition. Used for the Font BBox as well as the
* Character BBox.
*/
typedef struct
-{
+{
int llx; /* lower left x-position */
int lly; /* lower left y-position */
int urx; /* upper right x-position */
@@ -161,12 +161,12 @@ typedef struct
/* Global Font information.
- * The key that each field is associated with is in comments. For an
+ * The key that each field is associated with is in comments. For an
* explanation about each key and its value please refer to the AFM
- * documentation (full title & version given above).
+ * documentation (full title & version given above).
*/
typedef struct
-{
+{
char *afmVersion; /* key: StartFontMetrics */
char *fontName; /* key: FontName */
char *fullName; /* key: FullName */
@@ -198,15 +198,15 @@ typedef struct _t_ligature
} Ligature;
-/* Character Metric Information. This structure is used only if ALL
+/* Character Metric Information. This structure is used only if ALL
* character metric information is requested. If only the character
* widths is requested, then only an array of the character x-widths
* is returned.
*
- * The key that each field is associated with is in comments. For an
- * explanation about each key and its value please refer to the
+ * The key that each field is associated with is in comments. For an
+ * explanation about each key and its value please refer to the
* Character Metrics section of the AFM documentation (full title
- * & version given above).
+ * & version given above).
*/
typedef struct
{
@@ -221,19 +221,19 @@ typedef struct
/* Track kerning data structure.
- * The fields of this record are the five values associated with every
+ * The fields of this record are the five values associated with every
* TrackKern entry.
- *
- * For an explanation about each value please refer to the
+ *
+ * For an explanation about each value please refer to the
* Track Kerning section of the AFM documentation (full title
- * & version given above).
+ * & version given above).
*/
-typedef struct
+typedef struct
{
- int degree;
- float minPtSize,
- minKernAmt,
- maxPtSize,
+ int degree;
+ float minPtSize,
+ minKernAmt,
+ maxPtSize,
maxKernAmt;
} TrackKernData;
@@ -242,11 +242,11 @@ typedef struct
* The fields of this record are the four values associated with every
* KP entry. For KPX entries, the yamt will be zero.
*
- * For an explanation about each value please refer to the
+ * For an explanation about each value please refer to the
* Pair Kerning section of the AFM documentation (full title
- * & version given above).
+ * & version given above).
*/
-typedef struct
+typedef struct
{
char *name1;
char *name2;
@@ -258,10 +258,10 @@ typedef struct
/* PCC is a piece of a composite character. This is a sub structure of a
* compCharData described below.
* These fields will be filled in with the values from the key PCC.
- *
- * For an explanation about each key and its value please refer to the
+ *
+ * For an explanation about each key and its value please refer to the
* Composite Character section of the AFM documentation (full title
- * & version given above).
+ * & version given above).
*/
typedef struct
{
@@ -271,15 +271,15 @@ typedef struct
} Pcc;
-/* Composite Character Information data structure.
+/* Composite Character Information data structure.
* The fields ccName and numOfPieces are filled with the values associated
* with the key CC. The field pieces points to an array (size = numOfPieces)
* of information about each of the parts of the composite character. That
* array is filled in with the values from the key PCC.
- *
- * For an explanation about each key and its value please refer to the
+ *
+ * For an explanation about each key and its value please refer to the
* Composite Character section of the AFM documentation (full title
- * & version given above).
+ * & version given above).
*/
typedef struct
{
@@ -296,9 +296,9 @@ typedef struct
* parseFile function.
*/
typedef struct
-{
+{
GlobalFontInfo *gfi; /* ptr to a GlobalFontInfo record */
- int *cwi; /* ptr to 256 element array of just char widths */
+ int *cwi; /* ptr to 256 element array of just char widths */
int numOfChars; /* number of entries in char metrics array */
CharMetricInfo *cmi; /* ptr to char metrics array */
int numOfTracks; /* number to entries in track kerning array */
@@ -317,7 +317,7 @@ typedef struct
*
* "fp" should be a valid file pointer to an AFM file.
*
- * "fi" is a pointer to a pointer to a FontInfo record sturcture
+ * "fi" is a pointer to a pointer to a FontInfo record sturcture
* (defined above). Storage for the FontInfo structure will be
* allocated in parseFile and the structure will be filled in
* with the requested data from the AFM File.
@@ -329,7 +329,7 @@ typedef struct
* The possible return codes from parseFile are defined above.
*/
-int parseFile( const char* pFilename, FontInfo **fi, FLAGS flags );
+int parseFile( const char* pFilename, FontInfo **fi, FLAGS flags );
void freeFontInfo(FontInfo *fi);
} // namespace
diff --git a/vcl/unx/source/gdi/cdeint.cxx b/vcl/unx/source/gdi/cdeint.cxx
index c46aa5bbe751..a1b43fe74803 100644
--- a/vcl/unx/source/gdi/cdeint.cxx
+++ b/vcl/unx/source/gdi/cdeint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -74,9 +74,9 @@ void CDEIntegrator::GetSystemLook( AllSettings& rSettings )
XTextProperty aTextProperty;
aTextProperty.value = 0;
int i;
-
+
static Atom nResMgrAtom = XInternAtom( mpDisplay, "RESOURCE_MANAGER", False );
-
+
if( XGetTextProperty( mpDisplay,
RootWindow( mpDisplay, 0 ),
&aTextProperty,
@@ -124,7 +124,7 @@ void CDEIntegrator::GetSystemLook( AllSettings& rSettings )
for( ; nPos >= 0 && aLine.GetChar( nPos ) != '*'; nPos-- )
;
int nNumber = aLine.Copy( ++nPos ).ToInt32();
-
+
DBG_TRACE2( "found palette %d in resource \"%s\"", nNumber, aLine.GetBuffer() );
// found no documentation what this number actually means;
@@ -134,7 +134,7 @@ void CDEIntegrator::GetSystemLook( AllSettings& rSettings )
continue;
DBG_TRACE1( "Palette file is \"%s\".\n", aPaletteFile.GetBuffer() );
-
+
String aPath( aHomeDir );
aPath.AppendAscii( "/.dt/palettes/" );
aPath += String( aPaletteFile, gsl_getSystemTextEncoding() );
@@ -163,12 +163,12 @@ void CDEIntegrator::GetSystemLook( AllSettings& rSettings )
aColors[nIndex] = Color(
getHexDigit( pArr[1] )
| ( getHexDigit( pArr[0] ) << 4 ),
- getHexDigit( pArr[5] )
+ getHexDigit( pArr[5] )
| ( getHexDigit( pArr[4] ) << 4 ),
getHexDigit( pArr[9] )
| ( getHexDigit( pArr[8] ) << 4 )
);
-
+
DBG_TRACE1( "\t\t%lx\n", aColors[nIndex].GetColor() );
}
}
@@ -178,14 +178,14 @@ void CDEIntegrator::GetSystemLook( AllSettings& rSettings )
}
}
}
-
+
if( ppStringList )
XFreeStringList( ppStringList );
if( aTextProperty.value )
XFree( aTextProperty.value );
}
-
+
StyleSettings aStyleSettings = rSettings.GetStyleSettings();
// #i48001# set a default blink rate
aStyleSettings.SetCursorBlinkTime( 500 );
@@ -200,13 +200,13 @@ void CDEIntegrator::GetSystemLook( AllSettings& rSettings )
aStyleSettings.SetDeactiveBorderColor( aColors[0] );
Color aActive =
- aColors[ 0 ].GetBlue() < 128 ||
- aColors[ 0 ].GetGreen() < 128 ||
+ aColors[ 0 ].GetBlue() < 128 ||
+ aColors[ 0 ].GetGreen() < 128 ||
aColors[ 0 ].GetRed() < 128
? Color( COL_WHITE ) : Color( COL_BLACK );
Color aDeactive =
- aColors[ 1 ].GetBlue() < 128 ||
- aColors[ 1 ].GetGreen() < 128 ||
+ aColors[ 1 ].GetBlue() < 128 ||
+ aColors[ 1 ].GetGreen() < 128 ||
aColors[ 1 ].GetRed() < 128
? Color( COL_WHITE ) : Color( COL_BLACK );
aStyleSettings.SetActiveTextColor( aActive );
diff --git a/vcl/unx/source/gdi/dtint.cxx b/vcl/unx/source/gdi/dtint.cxx
index e9c2f51698a7..0eb07fbc9a13 100644
--- a/vcl/unx/source/gdi/dtint.cxx
+++ b/vcl/unx/source/gdi/dtint.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/gdi/dtsetenum.hxx b/vcl/unx/source/gdi/dtsetenum.hxx
index 7973758d9f0d..eb5f8f5bc86f 100644
--- a/vcl/unx/source/gdi/dtsetenum.hxx
+++ b/vcl/unx/source/gdi/dtsetenum.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/gdi/gcach_xpeer.cxx b/vcl/unx/source/gdi/gcach_xpeer.cxx
index a0ac583cb39d..750687b4e2bb 100644
--- a/vcl/unx/source/gdi/gcach_xpeer.cxx
+++ b/vcl/unx/source/gdi/gcach_xpeer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -153,7 +153,7 @@ void X11GlyphPeer::InitAntialiasing()
enum { INFO_EMPTY=0, INFO_PIXMAP, INFO_XRENDER, INFO_RAWBMP, INFO_MULTISCREEN };
static const Glyph NO_GLYPHID = 0;
-static RawBitmap* const NO_RAWBMP = NULL;
+static RawBitmap* const NO_RAWBMP = NULL;
static const Pixmap NO_PIXMAP = ~0;
// ---------------------------------------------------------------------------
@@ -517,7 +517,7 @@ Pixmap X11GlyphPeer::GetPixmap( ServerFont& rServerFont, int nGlyphIndex, int nR
*pTemp = lsb2msb[ *pTemp ];
// often a glyph pixmap is only needed on the default screen
- // => optimize for this common case
+ // => optimize for this common case
int nMinScreen = 0;
int nEndScreen = mnMaxScreens;
if( nReqScreen == mnDefaultScreen ) {
@@ -643,7 +643,7 @@ Glyph X11GlyphPeer::GetGlyphId( ServerFont& rServerFont, int nGlyphIndex )
// ===========================================================================
X11GlyphCache::X11GlyphCache( X11GlyphPeer& rPeer )
-: GlyphCache( rPeer )
+: GlyphCache( rPeer )
{
}
diff --git a/vcl/unx/source/gdi/gcach_xpeer.hxx b/vcl/unx/source/gdi/gcach_xpeer.hxx
index b634659876bd..84fe101214e2 100644
--- a/vcl/unx/source/gdi/gcach_xpeer.hxx
+++ b/vcl/unx/source/gdi/gcach_xpeer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/gdi/pspgraphics.cxx b/vcl/unx/source/gdi/pspgraphics.cxx
index dcbb689265b5..c25e065a143d 100644
--- a/vcl/unx/source/gdi/pspgraphics.cxx
+++ b/vcl/unx/source/gdi/pspgraphics.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,29 +63,29 @@ using namespace rtl;
class SalPrinterBmp : public psp::PrinterBmp
{
private:
- BitmapBuffer* mpBmpBuffer;
+ BitmapBuffer* mpBmpBuffer;
- FncGetPixel mpFncGetPixel;
- Scanline mpScanAccess;
- sal_PtrDiff mnScanOffset;
+ FncGetPixel mpFncGetPixel;
+ Scanline mpScanAccess;
+ sal_PtrDiff mnScanOffset;
- sal_uInt32 ColorOf (BitmapColor& rColor) const;
- sal_uInt8 GrayOf (BitmapColor& rColor) const;
+ sal_uInt32 ColorOf (BitmapColor& rColor) const;
+ sal_uInt8 GrayOf (BitmapColor& rColor) const;
SalPrinterBmp ();
public:
SalPrinterBmp (BitmapBuffer* pBitmap);
- virtual ~SalPrinterBmp ();
- virtual sal_uInt32 GetPaletteColor (sal_uInt32 nIdx) const;
- virtual sal_uInt32 GetPaletteEntryCount () const;
- virtual sal_uInt32 GetPixelRGB (sal_uInt32 nRow, sal_uInt32 nColumn) const;
- virtual sal_uInt8 GetPixelGray (sal_uInt32 nRow, sal_uInt32 nColumn) const;
- virtual sal_uInt8 GetPixelIdx (sal_uInt32 nRow, sal_uInt32 nColumn) const;
- virtual sal_uInt32 GetWidth () const;
- virtual sal_uInt32 GetHeight() const;
- virtual sal_uInt32 GetDepth () const;
+ virtual ~SalPrinterBmp ();
+ virtual sal_uInt32 GetPaletteColor (sal_uInt32 nIdx) const;
+ virtual sal_uInt32 GetPaletteEntryCount () const;
+ virtual sal_uInt32 GetPixelRGB (sal_uInt32 nRow, sal_uInt32 nColumn) const;
+ virtual sal_uInt8 GetPixelGray (sal_uInt32 nRow, sal_uInt32 nColumn) const;
+ virtual sal_uInt8 GetPixelIdx (sal_uInt32 nRow, sal_uInt32 nColumn) const;
+ virtual sal_uInt32 GetWidth () const;
+ virtual sal_uInt32 GetHeight() const;
+ virtual sal_uInt32 GetDepth () const;
};
SalPrinterBmp::SalPrinterBmp (BitmapBuffer* pBuffer) :
@@ -110,17 +110,17 @@ SalPrinterBmp::SalPrinterBmp (BitmapBuffer* pBuffer) :
switch( BMP_SCANLINE_FORMAT( mpBmpBuffer->mnFormat ) )
{
case BMP_FORMAT_1BIT_MSB_PAL:
- mpFncGetPixel = BitmapReadAccess::GetPixelFor_1BIT_MSB_PAL; break;
+ mpFncGetPixel = BitmapReadAccess::GetPixelFor_1BIT_MSB_PAL; break;
case BMP_FORMAT_1BIT_LSB_PAL:
- mpFncGetPixel = BitmapReadAccess::GetPixelFor_1BIT_LSB_PAL; break;
+ mpFncGetPixel = BitmapReadAccess::GetPixelFor_1BIT_LSB_PAL; break;
case BMP_FORMAT_4BIT_MSN_PAL:
- mpFncGetPixel = BitmapReadAccess::GetPixelFor_4BIT_MSN_PAL; break;
+ mpFncGetPixel = BitmapReadAccess::GetPixelFor_4BIT_MSN_PAL; break;
case BMP_FORMAT_4BIT_LSN_PAL:
- mpFncGetPixel = BitmapReadAccess::GetPixelFor_4BIT_LSN_PAL; break;
+ mpFncGetPixel = BitmapReadAccess::GetPixelFor_4BIT_LSN_PAL; break;
case BMP_FORMAT_8BIT_PAL:
- mpFncGetPixel = BitmapReadAccess::GetPixelFor_8BIT_PAL; break;
+ mpFncGetPixel = BitmapReadAccess::GetPixelFor_8BIT_PAL; break;
case BMP_FORMAT_8BIT_TC_MASK:
- mpFncGetPixel = BitmapReadAccess::GetPixelFor_8BIT_TC_MASK; break;
+ mpFncGetPixel = BitmapReadAccess::GetPixelFor_8BIT_TC_MASK; break;
case BMP_FORMAT_16BIT_TC_MSB_MASK:
mpFncGetPixel = BitmapReadAccess::GetPixelFor_16BIT_TC_MSB_MASK; break;
case BMP_FORMAT_16BIT_TC_LSB_MASK:
@@ -201,7 +201,7 @@ SalPrinterBmp::ColorOf (BitmapColor& rColor) const
if (rColor.IsIndex())
return ColorOf (mpBmpBuffer->maPalette[rColor.GetIndex()]);
else
- return ((rColor.GetBlue()) & 0x000000ff)
+ return ((rColor.GetBlue()) & 0x000000ff)
| ((rColor.GetGreen() << 8) & 0x0000ff00)
| ((rColor.GetRed() << 16) & 0x00ff0000);
}
@@ -391,7 +391,7 @@ void PspGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
m_pPrinterGfx->DrawPolygon (nPoints, (Point*)pPtAry);
}
-void PspGraphics::drawPolyPolygon( sal_uInt32 nPoly,
+void PspGraphics::drawPolyPolygon( sal_uInt32 nPoly,
const sal_uInt32 *pPoints,
PCONSTSALPOINT *pPtAry )
{
@@ -566,8 +566,8 @@ PspFontLayout::PspFontLayout( ::psp::PrinterGfx& rGfx )
mnFontHeight = mrPrinterGfx.GetFontHeight();
mnFontWidth = mrPrinterGfx.GetFontWidth();
mbVertical = mrPrinterGfx.GetFontVertical();
- mbArtItalic = mrPrinterGfx.GetArtificialItalic();
- mbArtBold = mrPrinterGfx.GetArtificialBold();
+ mbArtItalic = mrPrinterGfx.GetArtificialItalic();
+ mbArtBold = mrPrinterGfx.GetArtificialBold();
}
//--------------------------------------------------------------------------
@@ -655,19 +655,19 @@ public:
PspServerFontLayout( psp::PrinterGfx&, ServerFont& rFont, const ImplLayoutArgs& rArgs );
virtual void InitFont() const;
- const sal_Unicode* getTextPtr() const { return maText.getStr() - mnMinCharPos; }
- int getMinCharPos() const { return mnMinCharPos; }
- int getMaxCharPos() const { return mnMinCharPos+maText.getLength()-1; }
+ const sal_Unicode* getTextPtr() const { return maText.getStr() - mnMinCharPos; }
+ int getMinCharPos() const { return mnMinCharPos; }
+ int getMaxCharPos() const { return mnMinCharPos+maText.getLength()-1; }
private:
::psp::PrinterGfx& mrPrinterGfx;
sal_IntPtr mnFontID;
int mnFontHeight;
int mnFontWidth;
bool mbVertical;
- bool mbArtItalic;
- bool mbArtBold;
- rtl::OUString maText;
- int mnMinCharPos;
+ bool mbArtItalic;
+ bool mbArtBold;
+ rtl::OUString maText;
+ int mnMinCharPos;
};
PspServerFontLayout::PspServerFontLayout( ::psp::PrinterGfx& rGfx, ServerFont& rFont, const ImplLayoutArgs& rArgs )
@@ -678,9 +678,9 @@ PspServerFontLayout::PspServerFontLayout( ::psp::PrinterGfx& rGfx, ServerFont& r
mnFontHeight = mrPrinterGfx.GetFontHeight();
mnFontWidth = mrPrinterGfx.GetFontWidth();
mbVertical = mrPrinterGfx.GetFontVertical();
- mbArtItalic = mrPrinterGfx.GetArtificialItalic();
- mbArtBold = mrPrinterGfx.GetArtificialBold();
- maText = OUString( rArgs.mpStr + rArgs.mnMinCharPos, rArgs.mnEndCharPos - rArgs.mnMinCharPos+1 );
+ mbArtItalic = mrPrinterGfx.GetArtificialItalic();
+ mbArtBold = mrPrinterGfx.GetArtificialBold();
+ maText = OUString( rArgs.mpStr + rArgs.mnMinCharPos, rArgs.mnEndCharPos - rArgs.mnMinCharPos+1 );
mnMinCharPos = rArgs.mnMinCharPos;
}
@@ -699,7 +699,7 @@ static void DrawPrinterLayout( const SalLayout& rLayout, ::psp::PrinterGfx& rGfx
sal_Int32 aWidthAry[ nMaxGlyphs ];
sal_Int32 aIdxAry [ nMaxGlyphs ];
sal_Unicode aUnicodes[ nMaxGlyphs ];
- int aCharPosAry [ nMaxGlyphs ];
+ int aCharPosAry [ nMaxGlyphs ];
Point aPos;
long nUnitsPerPixel = rLayout.GetUnitsPerPixel();
@@ -796,7 +796,7 @@ USHORT PspGraphics::SetFont( ImplFontSelectData *pEntry, int nFallbackLevel )
// return early if there is no new font
if( !pEntry )
return 0;
-
+
sal_IntPtr nID = pEntry->mpFontData ? pEntry->mpFontData->GetFontId() : 0;
// determine which font attributes need to be emulated
@@ -895,19 +895,19 @@ void PspGraphics::GetFontMetric( ImplFontMetricData *pMetric, int )
pMetric->mbDevice = aDFA.mbDevice;
pMetric->mbScalableFont = true;
- pMetric->mnOrientation = m_pPrinterGfx->GetFontAngle();
- pMetric->mnSlant = 0;
+ pMetric->mnOrientation = m_pPrinterGfx->GetFontAngle();
+ pMetric->mnSlant = 0;
- sal_Int32 nTextHeight = m_pPrinterGfx->GetFontHeight();
- sal_Int32 nTextWidth = m_pPrinterGfx->GetFontWidth();
+ sal_Int32 nTextHeight = m_pPrinterGfx->GetFontHeight();
+ sal_Int32 nTextWidth = m_pPrinterGfx->GetFontWidth();
if( ! nTextWidth )
nTextWidth = nTextHeight;
- pMetric->mnWidth = nTextWidth;
- pMetric->mnAscent = ( aInfo.m_nAscend * nTextHeight + 500 ) / 1000;
- pMetric->mnDescent = ( aInfo.m_nDescend * nTextHeight + 500 ) / 1000;
- pMetric->mnIntLeading = ( aInfo.m_nLeading * nTextHeight + 500 ) / 1000;
- pMetric->mnExtLeading = 0;
+ pMetric->mnWidth = nTextWidth;
+ pMetric->mnAscent = ( aInfo.m_nAscend * nTextHeight + 500 ) / 1000;
+ pMetric->mnDescent = ( aInfo.m_nDescend * nTextHeight + 500 ) / 1000;
+ pMetric->mnIntLeading = ( aInfo.m_nLeading * nTextHeight + 500 ) / 1000;
+ pMetric->mnExtLeading = 0;
}
}
@@ -924,9 +924,9 @@ ULONG PspGraphics::GetKernPairs( ULONG nPairs, ImplKernPairData *pKernPairs )
nTextScale = m_pPrinterGfx->GetFontHeight();
for( i = 0, it = rPairs.begin(); i < nPairs && i < nHavePairs; i++, ++it )
{
- pKernPairs[i].mnChar1 = it->first;
- pKernPairs[i].mnChar2 = it->second;
- pKernPairs[i].mnKern = it->kern_x * nTextScale / 1000;
+ pKernPairs[i].mnChar1 = it->first;
+ pKernPairs[i].mnChar2 = it->second;
+ pKernPairs[i].mnKern = it->kern_x * nTextScale / 1000;
}
}
@@ -1092,9 +1092,9 @@ const void* PspGraphics::DoGetEmbedFontData( fontID aFont, const sal_Ucs* pUnico
return NULL;
// fill in font info
- rInfo.m_nAscent = aFontInfo.m_nAscend;
- rInfo.m_nDescent = aFontInfo.m_nDescend;
- rInfo.m_aPSName = rMgr.getPSName( aFont );
+ rInfo.m_nAscent = aFontInfo.m_nAscend;
+ rInfo.m_nDescent = aFontInfo.m_nDescend;
+ rInfo.m_aPSName = rMgr.getPSName( aFont );
int xMin, yMin, xMax, yMax;
rMgr.getFontBoundingBox( aFont, xMin, yMin, xMax, yMax );
@@ -1124,8 +1124,8 @@ const void* PspGraphics::DoGetEmbedFontData( fontID aFont, const sal_Ucs* pUnico
*pDataLen = aStat.st_size;
- rInfo.m_aFontBBox = Rectangle( Point( xMin, yMin ), Size( xMax-xMin, yMax-yMin ) );
- rInfo.m_nCapHeight = yMax; // Well ...
+ rInfo.m_aFontBBox = Rectangle( Point( xMin, yMin ), Size( xMax-xMin, yMax-yMin ) );
+ rInfo.m_nCapHeight = yMax; // Well ...
for( int i = 0; i < 256; i++ )
pWidths[i] = (aMetrics[i].width > 0 ? aMetrics[i].width : 0);
@@ -1184,13 +1184,13 @@ FontWidth PspGraphics::ToFontWidth (psp::width::type eWidth)
{
case psp::width::UltraCondensed: return WIDTH_ULTRA_CONDENSED;
case psp::width::ExtraCondensed: return WIDTH_EXTRA_CONDENSED;
- case psp::width::Condensed: return WIDTH_CONDENSED;
- case psp::width::SemiCondensed: return WIDTH_SEMI_CONDENSED;
- case psp::width::Normal: return WIDTH_NORMAL;
- case psp::width::SemiExpanded: return WIDTH_SEMI_EXPANDED;
- case psp::width::Expanded: return WIDTH_EXPANDED;
- case psp::width::ExtraExpanded: return WIDTH_EXTRA_EXPANDED;
- case psp::width::UltraExpanded: return WIDTH_ULTRA_EXPANDED;
+ case psp::width::Condensed: return WIDTH_CONDENSED;
+ case psp::width::SemiCondensed: return WIDTH_SEMI_CONDENSED;
+ case psp::width::Normal: return WIDTH_NORMAL;
+ case psp::width::SemiExpanded: return WIDTH_SEMI_EXPANDED;
+ case psp::width::Expanded: return WIDTH_EXPANDED;
+ case psp::width::ExtraExpanded: return WIDTH_EXTRA_EXPANDED;
+ case psp::width::UltraExpanded: return WIDTH_ULTRA_EXPANDED;
case psp::width::Unknown: return WIDTH_DONTKNOW;
default:
DBG_ERROR( "unknown width mapping" );
@@ -1203,17 +1203,17 @@ FontWeight PspGraphics::ToFontWeight (psp::weight::type eWeight)
{
switch (eWeight)
{
- case psp::weight::Thin: return WEIGHT_THIN;
+ case psp::weight::Thin: return WEIGHT_THIN;
case psp::weight::UltraLight: return WEIGHT_ULTRALIGHT;
- case psp::weight::Light: return WEIGHT_LIGHT;
+ case psp::weight::Light: return WEIGHT_LIGHT;
case psp::weight::SemiLight: return WEIGHT_SEMILIGHT;
- case psp::weight::Normal: return WEIGHT_NORMAL;
- case psp::weight::Medium: return WEIGHT_MEDIUM;
- case psp::weight::SemiBold: return WEIGHT_SEMIBOLD;
- case psp::weight::Bold: return WEIGHT_BOLD;
+ case psp::weight::Normal: return WEIGHT_NORMAL;
+ case psp::weight::Medium: return WEIGHT_MEDIUM;
+ case psp::weight::SemiBold: return WEIGHT_SEMIBOLD;
+ case psp::weight::Bold: return WEIGHT_BOLD;
case psp::weight::UltraBold: return WEIGHT_ULTRABOLD;
- case psp::weight::Black: return WEIGHT_BLACK;
- case psp::weight::Unknown: return WEIGHT_DONTKNOW;
+ case psp::weight::Black: return WEIGHT_BLACK;
+ case psp::weight::Unknown: return WEIGHT_DONTKNOW;
default:
DBG_ERROR( "unknown weight mapping" );
break;
@@ -1225,9 +1225,9 @@ FontPitch PspGraphics::ToFontPitch (psp::pitch::type ePitch)
{
switch (ePitch)
{
- case psp::pitch::Fixed: return PITCH_FIXED;
- case psp::pitch::Variable: return PITCH_VARIABLE;
- case psp::pitch::Unknown: return PITCH_DONTKNOW;
+ case psp::pitch::Fixed: return PITCH_FIXED;
+ case psp::pitch::Variable: return PITCH_VARIABLE;
+ case psp::pitch::Unknown: return PITCH_DONTKNOW;
default:
DBG_ERROR( "unknown pitch mapping" );
break;
@@ -1239,10 +1239,10 @@ FontItalic PspGraphics::ToFontItalic (psp::italic::type eItalic)
{
switch (eItalic)
{
- case psp::italic::Upright: return ITALIC_NONE;
- case psp::italic::Oblique: return ITALIC_OBLIQUE;
- case psp::italic::Italic: return ITALIC_NORMAL;
- case psp::italic::Unknown: return ITALIC_DONTKNOW;
+ case psp::italic::Upright: return ITALIC_NONE;
+ case psp::italic::Oblique: return ITALIC_OBLIQUE;
+ case psp::italic::Italic: return ITALIC_NORMAL;
+ case psp::italic::Unknown: return ITALIC_DONTKNOW;
default:
DBG_ERROR( "unknown italic mapping" );
break;
@@ -1255,12 +1255,12 @@ FontFamily PspGraphics::ToFontFamily (psp::family::type eFamily)
switch (eFamily)
{
case psp::family::Decorative: return FAMILY_DECORATIVE;
- case psp::family::Modern: return FAMILY_MODERN;
- case psp::family::Roman: return FAMILY_ROMAN;
- case psp::family::Script: return FAMILY_SCRIPT;
- case psp::family::Swiss: return FAMILY_SWISS;
- case psp::family::System: return FAMILY_SYSTEM;
- case psp::family::Unknown: return FAMILY_DONTKNOW;
+ case psp::family::Modern: return FAMILY_MODERN;
+ case psp::family::Roman: return FAMILY_ROMAN;
+ case psp::family::Script: return FAMILY_SCRIPT;
+ case psp::family::Swiss: return FAMILY_SWISS;
+ case psp::family::System: return FAMILY_SYSTEM;
+ case psp::family::Unknown: return FAMILY_DONTKNOW;
default:
DBG_ERROR( "unknown family mapping" );
break;
@@ -1482,7 +1482,7 @@ SystemFontData PspGraphics::GetSysFontData( int nFallbacklevel ) const
if (nFallbacklevel >= MAX_FALLBACK) nFallbacklevel = MAX_FALLBACK - 1;
if (nFallbacklevel < 0 ) nFallbacklevel = 0;
-
+
aSysFontData.nSize = sizeof( SystemFontData );
aSysFontData.nFontId = 0;
aSysFontData.nFontFlags = 0;
diff --git a/vcl/unx/source/gdi/salbmp.cxx b/vcl/unx/source/gdi/salbmp.cxx
index ec00e0e1fc2e..7c14c7221892 100644
--- a/vcl/unx/source/gdi/salbmp.cxx
+++ b/vcl/unx/source/gdi/salbmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,8 +65,8 @@ SalBitmap* X11SalInstance::CreateSalBitmap()
return new X11SalBitmap();
}
-ImplSalBitmapCache* X11SalBitmap::mpCache = NULL;
-ULONG X11SalBitmap::mnCacheInstCount = 0;
+ImplSalBitmapCache* X11SalBitmap::mpCache = NULL;
+ULONG X11SalBitmap::mnCacheInstCount = 0;
// -----------------------------------------------------------------------------
@@ -141,13 +141,13 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB( const Size& rSize, USHORT nBitCount,
case( 4 ): pDIB->mnFormat |= BMP_FORMAT_4BIT_MSN_PAL; break;
case( 8 ): pDIB->mnFormat |= BMP_FORMAT_8BIT_PAL; break;
#ifdef OSL_BIGENDIAN
- case(16 ):
- pDIB->mnFormat|= BMP_FORMAT_16BIT_TC_MSB_MASK;
+ case(16 ):
+ pDIB->mnFormat|= BMP_FORMAT_16BIT_TC_MSB_MASK;
pDIB->maColorMask = ColorMask( 0xf800, 0x07e0, 0x001f );
break;
#else
- case(16 ):
- pDIB->mnFormat|= BMP_FORMAT_16BIT_TC_LSB_MASK;
+ case(16 ):
+ pDIB->mnFormat|= BMP_FORMAT_16BIT_TC_LSB_MASK;
pDIB->maColorMask = ColorMask( 0xf800, 0x07e0, 0x001f );
break;
#endif
@@ -200,9 +200,9 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB( Drawable aDrawable,
if( aDrawable && nWidth && nHeight && nDrawableDepth )
{
- SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
- SalXLib* pXLib = pSalDisp->GetXLib();
- Display* pXDisp = pSalDisp->GetDisplay();
+ SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
+ SalXLib* pXLib = pSalDisp->GetXLib();
+ Display* pXDisp = pSalDisp->GetDisplay();
// do not die on XError here
// alternatively one could check the coordinates for being offscreen
@@ -210,16 +210,16 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB( Drawable aDrawable,
// defaults even if the rectangle is offscreen
// so better catch the XError
pXLib->PushXErrorLevel( true );
- XImage* pImage = XGetImage( pXDisp, aDrawable, nX, nY, nWidth, nHeight, AllPlanes, ZPixmap );
+ XImage* pImage = XGetImage( pXDisp, aDrawable, nX, nY, nWidth, nHeight, AllPlanes, ZPixmap );
bool bWasError = pXLib->HasXErrorOccured() && pXLib->GetLastXErrorRequestCode() == X_GetImage;
pXLib->PopXErrorLevel();
if( ! bWasError && pImage && pImage->data )
{
- const SalTwoRect aTwoRect = { 0, 0, nWidth, nHeight, 0, 0, nWidth, nHeight };
- BitmapBuffer aSrcBuf;
- ULONG nDstFormat = BMP_FORMAT_BOTTOM_UP;
- const BitmapPalette* pDstPal = NULL;
+ const SalTwoRect aTwoRect = { 0, 0, nWidth, nHeight, 0, 0, nWidth, nHeight };
+ BitmapBuffer aSrcBuf;
+ ULONG nDstFormat = BMP_FORMAT_BOTTOM_UP;
+ const BitmapPalette* pDstPal = NULL;
aSrcBuf.mnFormat = BMP_FORMAT_TOP_DOWN;
aSrcBuf.mnWidth = nWidth;
@@ -312,7 +312,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB( Drawable aDrawable,
for( USHORT i = 0; i < 256; i++ )
{
- BitmapColor& rBmpCol = rPal[ i ];
+ BitmapColor& rBmpCol = rPal[ i ];
rBmpCol.SetRed( i );
rBmpCol.SetGreen( i );
@@ -330,8 +330,8 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB( Drawable aDrawable,
for( USHORT i = 0; i < nCols; i++ )
{
- const SalColor nColor( rColMap.GetColor( i ) );
- BitmapColor& rBmpCol = rPal[ i ];
+ const SalColor nColor( rColMap.GetColor( i ) );
+ BitmapColor& rBmpCol = rPal[ i ];
rBmpCol.SetRed( SALCOLOR_RED( nColor ) );
rBmpCol.SetGreen( SALCOLOR_GREEN( nColor ) );
@@ -351,7 +351,7 @@ BitmapBuffer* X11SalBitmap::ImplCreateDIB( Drawable aDrawable,
// -----------------------------------------------------------------------------
-XImage* X11SalBitmap::ImplCreateXImage( SalDisplay *pSalDisp, int nScreen, long nDepth, const SalTwoRect& rTwoRect ) const
+XImage* X11SalBitmap::ImplCreateXImage( SalDisplay *pSalDisp, int nScreen, long nDepth, const SalTwoRect& rTwoRect ) const
{
XImage* pImage = NULL;
@@ -361,17 +361,17 @@ XImage* X11SalBitmap::ImplCreateXImage( SalDisplay *pSalDisp, int nScreen, long
ImplCreateDIB( mpDDB->ImplGetPixmap(),
mpDDB->ImplGetScreen(),
mpDDB->ImplGetDepth(),
- 0, 0,
- mpDDB->ImplGetWidth(),
+ 0, 0,
+ mpDDB->ImplGetWidth(),
mpDDB->ImplGetHeight(),
mbGrey );
}
if( mpDIB && mpDIB->mnWidth && mpDIB->mnHeight )
{
- Display* pXDisp = pSalDisp->GetDisplay();
- long nWidth = rTwoRect.mnDestWidth;
- long nHeight = rTwoRect.mnDestHeight;
+ Display* pXDisp = pSalDisp->GetDisplay();
+ long nWidth = rTwoRect.mnDestWidth;
+ long nHeight = rTwoRect.mnDestHeight;
if( 1 == GetBitCount() )
nDepth = 1;
@@ -382,10 +382,10 @@ XImage* X11SalBitmap::ImplCreateXImage( SalDisplay *pSalDisp, int nScreen, long
if( pImage )
{
- BitmapBuffer* pDstBuf;
- ULONG nDstFormat = BMP_FORMAT_TOP_DOWN;
- BitmapPalette* pPal = NULL;
- ColorMask* pMask = NULL;
+ BitmapBuffer* pDstBuf;
+ ULONG nDstFormat = BMP_FORMAT_TOP_DOWN;
+ BitmapPalette* pPal = NULL;
+ ColorMask* pMask = NULL;
switch( pImage->bits_per_pixel )
{
@@ -453,7 +453,7 @@ XImage* X11SalBitmap::ImplCreateXImage( SalDisplay *pSalDisp, int nScreen, long
for( USHORT i = 0; i < 256; i++ )
{
- BitmapColor& rBmpCol = (*pPal)[ i ];
+ BitmapColor& rBmpCol = (*pPal)[ i ];
rBmpCol.SetRed( i );
rBmpCol.SetGreen( i );
@@ -470,8 +470,8 @@ XImage* X11SalBitmap::ImplCreateXImage( SalDisplay *pSalDisp, int nScreen, long
for( USHORT i = 0; i < nCols; i++ )
{
- const SalColor nColor( rColMap.GetColor( i ) );
- BitmapColor& rBmpCol = (*pPal)[ i ];
+ const SalColor nColor( rColMap.GetColor( i ) );
+ BitmapColor& rBmpCol = (*pPal)[ i ];
rBmpCol.SetRed( SALCOLOR_RED( nColor ) );
rBmpCol.SetGreen( SALCOLOR_GREEN( nColor ) );
@@ -504,7 +504,7 @@ XImage* X11SalBitmap::ImplCreateXImage( SalDisplay *pSalDisp, int nScreen, long
// -----------------------------------------------------------------------------
bool X11SalBitmap::ImplCreateFromDrawable( Drawable aDrawable,
- int nScreen, long nDrawableDepth,
+ int nScreen, long nDrawableDepth,
long nX, long nY, long nWidth, long nHeight )
{
Destroy();
@@ -578,7 +578,7 @@ X11SalBitmap::SnapShot (Display* pDisplay, XLIB_Window hWindow)
if ((width > 0) && (height > 0))
{
- XImage* pImage = XGetImage( pDisplay, aAttribute.root,
+ XImage* pImage = XGetImage( pDisplay, aAttribute.root,
x, y, width, height, AllPlanes, ZPixmap );
bool bSnapShot = ImplCreateFromXImage( pDisplay,
aAttribute.root,
@@ -595,22 +595,22 @@ X11SalBitmap::SnapShot (Display* pDisplay, XLIB_Window hWindow)
return False;
}
-bool
+bool
X11SalBitmap::ImplCreateFromXImage (Display* pDisplay, XLIB_Window hWindow, int nScreen, XImage* pImage)
{
Destroy();
if (pImage != NULL && pImage->width != 0 && pImage->height != 0 && pImage->depth != 0)
{
- mpDDB = new ImplSalDDB (pDisplay, hWindow, nScreen, pImage);
+ mpDDB = new ImplSalDDB (pDisplay, hWindow, nScreen, pImage);
return True;
}
return False;
}
ImplSalDDB* X11SalBitmap::ImplGetDDB( Drawable aDrawable,
- int nScreen,
- long nDrawableDepth,
+ int nScreen,
+ long nDrawableDepth,
const SalTwoRect& rTwoRect ) const
{
if( !mpDDB || !mpDDB->ImplMatches( nScreen, nDrawableDepth, rTwoRect ) )
@@ -623,8 +623,8 @@ ImplSalDDB* X11SalBitmap::ImplGetDDB( Drawable aDrawable,
const_cast<X11SalBitmap*>(this)->mpDIB = ImplCreateDIB( mpDDB->ImplGetPixmap(),
mpDDB->ImplGetScreen(),
mpDDB->ImplGetDepth(),
- 0, 0,
- mpDDB->ImplGetWidth(),
+ 0, 0,
+ mpDDB->ImplGetWidth(),
mpDDB->ImplGetHeight(),
mbGrey );
}
@@ -686,7 +686,7 @@ ImplSalDDB* X11SalBitmap::ImplGetDDB( Drawable aDrawable,
}
}
- XImage* pImage = ImplCreateXImage( GetX11SalData()->GetDisplay(), nScreen,
+ XImage* pImage = ImplCreateXImage( GetX11SalData()->GetDisplay(), nScreen,
nDrawableDepth, aTwoRect );
if( pImage )
@@ -706,9 +706,9 @@ ImplSalDDB* X11SalBitmap::ImplGetDDB( Drawable aDrawable,
// -----------------------------------------------------------------------------
void X11SalBitmap::ImplDraw( Drawable aDrawable,
- int nScreen,
- long nDrawableDepth,
- const SalTwoRect& rTwoRect,
+ int nScreen,
+ long nDrawableDepth,
+ const SalTwoRect& rTwoRect,
const GC& rGC ) const
{
ImplGetDDB( aDrawable, nScreen, nDrawableDepth, rTwoRect );
@@ -755,7 +755,7 @@ bool X11SalBitmap::Create( const SalBitmap& rSSalBmp )
else if( rSalBmp.mpDDB )
ImplCreateFromDrawable( rSalBmp.mpDDB->ImplGetPixmap(),
rSalBmp.mpDDB->ImplGetScreen(),
- rSalBmp.mpDDB->ImplGetDepth(),
+ rSalBmp.mpDDB->ImplGetDepth(),
0, 0, rSalBmp.mpDDB->ImplGetWidth(), rSalBmp.mpDDB->ImplGetHeight() );
return( ( !rSalBmp.mpDIB && !rSalBmp.mpDDB ) ||
@@ -903,19 +903,19 @@ bool X11SalBitmap::GetSystemData( BitmapSystemData& rData )
// --------------
ImplSalDDB::ImplSalDDB( XImage* pImage, Drawable aDrawable, int nScreen, const SalTwoRect& rTwoRect ) :
- maPixmap ( 0 ),
- maTwoRect ( rTwoRect ),
- mnDepth ( pImage->depth ),
+ maPixmap ( 0 ),
+ maTwoRect ( rTwoRect ),
+ mnDepth ( pImage->depth ),
mnScreen ( nScreen )
{
- SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
- Display* pXDisp = pSalDisp->GetDisplay();
+ SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
+ Display* pXDisp = pSalDisp->GetDisplay();
if( (maPixmap = XCreatePixmap( pXDisp, aDrawable, ImplGetWidth(), ImplGetHeight(), ImplGetDepth() )) )
{
- XGCValues aValues;
- GC aGC;
- int nValues = GCFunction;
+ XGCValues aValues;
+ GC aGC;
+ int nValues = GCFunction;
aValues.function = GXcopy;
@@ -940,9 +940,9 @@ ImplSalDDB::ImplSalDDB (Display* pDisplay, XLIB_Window hWindow, int nScreen, XIm
maPixmap = XCreatePixmap (pDisplay, hWindow, pImage->width, pImage->height, pImage->depth);
if (maPixmap != 0)
{
- XGCValues aValues;
- GC aGC;
- int nValues = GCFunction;
+ XGCValues aValues;
+ GC aGC;
+ int nValues = GCFunction;
aValues.function = GXcopy;
@@ -976,14 +976,14 @@ ImplSalDDB::ImplSalDDB( Drawable aDrawable, int nScreen, long nDrawableDepth, lo
mnDepth( nDrawableDepth ),
mnScreen( nScreen )
{
- SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
- Display* pXDisp = pSalDisp->GetDisplay();
+ SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
+ Display* pXDisp = pSalDisp->GetDisplay();
if( (maPixmap = XCreatePixmap( pXDisp, aDrawable, nWidth, nHeight, nDrawableDepth )) )
{
- XGCValues aValues;
- GC aGC;
- int nValues = GCFunction;
+ XGCValues aValues;
+ GC aGC;
+ int nValues = GCFunction;
aValues.function = GXcopy;
@@ -1044,7 +1044,7 @@ bool ImplSalDDB::ImplMatches( int nScreen, long nDepth, const SalTwoRect& rTwoRe
void ImplSalDDB::ImplDraw( Drawable aDrawable, long nDrawableDepth, const SalTwoRect& rTwoRect, const GC& rGC ) const
{
- ImplDraw( maPixmap, mnDepth, aDrawable, nDrawableDepth,
+ ImplDraw( maPixmap, mnDepth, aDrawable, nDrawableDepth,
rTwoRect.mnSrcX - maTwoRect.mnSrcX, rTwoRect.mnSrcY - maTwoRect.mnSrcY,
rTwoRect.mnDestWidth, rTwoRect.mnDestHeight,
rTwoRect.mnDestX, rTwoRect.mnDestY, rGC );
@@ -1054,12 +1054,12 @@ void ImplSalDDB::ImplDraw( Drawable aDrawable, long nDrawableDepth, const SalTwo
void ImplSalDDB::ImplDraw( Drawable aSrcDrawable, long nSrcDrawableDepth,
Drawable aDstDrawable, long,
- long nSrcX, long nSrcY,
- long nDestWidth, long nDestHeight,
+ long nSrcX, long nSrcY,
+ long nDestWidth, long nDestHeight,
long nDestX, long nDestY, const GC& rGC )
{
- SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
- Display* pXDisp = pSalDisp->GetDisplay();
+ SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
+ Display* pXDisp = pSalDisp->GetDisplay();
if( 1 == nSrcDrawableDepth )
{
@@ -1079,9 +1079,9 @@ void ImplSalDDB::ImplDraw( Drawable aSrcDrawable, long nSrcDrawableDepth,
struct ImplBmpObj
{
- X11SalBitmap* mpBmp;
- ULONG mnMemSize;
- ULONG mnFlags;
+ X11SalBitmap* mpBmp;
+ ULONG mnMemSize;
+ ULONG mnFlags;
ImplBmpObj( X11SalBitmap* pBmp, ULONG nMemSize, ULONG nFlags ) :
mpBmp( pBmp ), mnMemSize( nMemSize ), mnFlags( nFlags ) {}
@@ -1106,7 +1106,7 @@ ImplSalBitmapCache::~ImplSalBitmapCache()
void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp, ULONG nMemSize, ULONG nFlags )
{
ImplBmpObj* pObj;
- bool bFound = FALSE;
+ bool bFound = FALSE;
for( pObj = (ImplBmpObj*) maBmpList.Last(); pObj && !bFound; pObj = (ImplBmpObj*) maBmpList.Prev() )
if( pObj->mpBmp == pBmp )
diff --git a/vcl/unx/source/gdi/salcvt.cxx b/vcl/unx/source/gdi/salcvt.cxx
index f757f3fc0ab3..ca8deb058b90 100644
--- a/vcl/unx/source/gdi/salcvt.cxx
+++ b/vcl/unx/source/gdi/salcvt.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,7 +53,7 @@ SalConverterCache::~SalConverterCache()
#include <stdio.h>
// <---
-rtl_UnicodeToTextConverter
+rtl_UnicodeToTextConverter
SalConverterCache::GetU2TConverter( rtl_TextEncoding nEncoding )
{
if( rtl_isOctetTextEncoding( nEncoding ) )
@@ -61,7 +61,7 @@ SalConverterCache::GetU2TConverter( rtl_TextEncoding nEncoding )
ConverterT& rConverter( m_aConverters[ nEncoding ] );
if ( rConverter.mpU2T == NULL )
{
- rConverter.mpU2T =
+ rConverter.mpU2T =
rtl_createUnicodeToTextConverter( nEncoding );
// ---> FIXME
if ( rConverter.mpU2T == NULL )
@@ -73,7 +73,7 @@ if ( rConverter.mpU2T == NULL )
return NULL;
}
-rtl_TextToUnicodeConverter
+rtl_TextToUnicodeConverter
SalConverterCache::GetT2UConverter( rtl_TextEncoding nEncoding )
{
if( rtl_isOctetTextEncoding( nEncoding ) )
@@ -81,7 +81,7 @@ SalConverterCache::GetT2UConverter( rtl_TextEncoding nEncoding )
ConverterT& rConverter( m_aConverters[ nEncoding ] );
if ( rConverter.mpT2U == NULL )
{
- rConverter.mpT2U =
+ rConverter.mpT2U =
rtl_createTextToUnicodeConverter( nEncoding );
// ---> FIXME
if ( rConverter.mpT2U == NULL )
@@ -107,15 +107,15 @@ SalConverterCache::IsSingleByteEncoding( rtl_TextEncoding nEncoding )
aTextEncInfo.StructSize = sizeof( aTextEncInfo );
rtl_getTextEncodingInfo( nEncoding, &aTextEncInfo );
- if ( aTextEncInfo.MinimumCharSize == aTextEncInfo.MaximumCharSize
+ if ( aTextEncInfo.MinimumCharSize == aTextEncInfo.MaximumCharSize
&& aTextEncInfo.MinimumCharSize == 1)
rConverter.mbSingleByteEncoding = True;
else
rConverter.mbSingleByteEncoding = False;
}
-
+
return rConverter.mbSingleByteEncoding;
- }
+ }
return False;
}
@@ -123,7 +123,7 @@ SalConverterCache::IsSingleByteEncoding( rtl_TextEncoding nEncoding )
// code point nChar. This list has been compiled from the according
// ttmap files in /usr/openwin/lib/X11/fonts/TrueType/ttmap/
Bool
-SalConverterCache::EncodingHasChar( rtl_TextEncoding nEncoding,
+SalConverterCache::EncodingHasChar( rtl_TextEncoding nEncoding,
sal_Unicode nChar )
{
Bool bMatch = False;
@@ -141,120 +141,120 @@ SalConverterCache::EncodingHasChar( rtl_TextEncoding nEncoding,
// handle them also like ms1252
// this is due to the fact that so many X fonts say they are iso8859-1
// but have the other glyphs anyway because they are really ms1252
- bMatch = ( /*nChar >= 0x0000 &&*/ nChar <= 0x00ff )
- || ( nChar == 0x20ac )
- || ( nChar == 0x201a )
- || ( nChar == 0x0192 )
- || ( nChar == 0x201e )
- || ( nChar == 0x2026 )
- || ( nChar == 0x2020 )
- || ( nChar == 0x2021 )
- || ( nChar == 0x02c6 )
- || ( nChar == 0x2030 )
- || ( nChar == 0x0160 )
- || ( nChar == 0x2039 )
- || ( nChar == 0x0152 )
- || ( nChar == 0x017d )
- || ( nChar == 0x2018 )
- || ( nChar == 0x2019 )
- || ( nChar == 0x201c )
- || ( nChar == 0x201d )
- || ( nChar == 0x2022 )
- || ( nChar == 0x2013 )
- || ( nChar == 0x2014 )
- || ( nChar == 0x02dc )
- || ( nChar == 0x2122 )
- || ( nChar == 0x0161 )
- || ( nChar == 0x203a )
- || ( nChar == 0x0153 )
- || ( nChar == 0x017e )
- || ( nChar == 0x0178 )
+ bMatch = ( /*nChar >= 0x0000 &&*/ nChar <= 0x00ff )
+ || ( nChar == 0x20ac )
+ || ( nChar == 0x201a )
+ || ( nChar == 0x0192 )
+ || ( nChar == 0x201e )
+ || ( nChar == 0x2026 )
+ || ( nChar == 0x2020 )
+ || ( nChar == 0x2021 )
+ || ( nChar == 0x02c6 )
+ || ( nChar == 0x2030 )
+ || ( nChar == 0x0160 )
+ || ( nChar == 0x2039 )
+ || ( nChar == 0x0152 )
+ || ( nChar == 0x017d )
+ || ( nChar == 0x2018 )
+ || ( nChar == 0x2019 )
+ || ( nChar == 0x201c )
+ || ( nChar == 0x201d )
+ || ( nChar == 0x2022 )
+ || ( nChar == 0x2013 )
+ || ( nChar == 0x2014 )
+ || ( nChar == 0x02dc )
+ || ( nChar == 0x2122 )
+ || ( nChar == 0x0161 )
+ || ( nChar == 0x203a )
+ || ( nChar == 0x0153 )
+ || ( nChar == 0x017e )
+ || ( nChar == 0x0178 )
;
break;
case RTL_TEXTENCODING_ISO_8859_2:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x017e )
- || ( nChar >= 0x02c7 && nChar <= 0x02dd );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x017e )
+ || ( nChar >= 0x02c7 && nChar <= 0x02dd );
break;
-
+
case RTL_TEXTENCODING_ISO_8859_4:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x017e )
- || ( nChar >= 0x02c7 && nChar <= 0x02db );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x017e )
+ || ( nChar >= 0x02c7 && nChar <= 0x02db );
break;
case RTL_TEXTENCODING_ISO_8859_5:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x00ad )
- || ( nChar >= 0x0401 && nChar <= 0x045f )
- || ( nChar == 0x2116 );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x00ad )
+ || ( nChar >= 0x0401 && nChar <= 0x045f )
+ || ( nChar == 0x2116 );
break;
case RTL_TEXTENCODING_ISO_8859_6:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x0600 && nChar <= 0x06ff )
- || ( nChar >= 0xfb50 && nChar <= 0xfffe );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x0600 && nChar <= 0x06ff )
+ || ( nChar >= 0xfb50 && nChar <= 0xfffe );
break;
case RTL_TEXTENCODING_ISO_8859_7:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x00bd )
- || ( nChar == 0x02bd )
- || ( nChar >= 0x0384 && nChar <= 0x03ce )
- || ( nChar >= 0x2014 && nChar <= 0x2019 );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x00bd )
+ || ( nChar == 0x02bd )
+ || ( nChar >= 0x0384 && nChar <= 0x03ce )
+ || ( nChar >= 0x2014 && nChar <= 0x2019 );
break;
case RTL_TEXTENCODING_ISO_8859_8:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x00f7 )
- || ( nChar >= 0x05d0 && nChar <= 0x05ea )
- || ( nChar == 0x2017 );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x00f7 )
+ || ( nChar >= 0x05d0 && nChar <= 0x05ea )
+ || ( nChar == 0x2017 );
break;
case RTL_TEXTENCODING_ISO_8859_9:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x015f );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x015f );
break;
case RTL_TEXTENCODING_ISO_8859_13:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x017e )
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x017e )
|| ( nChar >= 0x2019 && nChar <= 0x201e );
break;
/* real case for RTL_TEXTENCODING_ISO_8859_15
case RTL_TEXTENCODING_ISO_8859_15:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x00ff )
- || ( nChar >= 0x0152 && nChar <= 0x017e )
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x00ff )
+ || ( nChar >= 0x0152 && nChar <= 0x017e )
|| ( nChar == 0x20ac );
break;
*/
case RTL_TEXTENCODING_JIS_X_0201:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0xff61 && nChar <= 0xff9f );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0xff61 && nChar <= 0xff9f );
break;
case RTL_TEXTENCODING_MS_1251:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x00bb )
- || ( nChar >= 0x0401 && nChar <= 0x045f )
- || ( nChar >= 0x0490 && nChar <= 0x0491 )
- || ( nChar >= 0x2013 && nChar <= 0x203a )
- || ( nChar >= 0x2116 && nChar <= 0x2122 );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x00bb )
+ || ( nChar >= 0x0401 && nChar <= 0x045f )
+ || ( nChar >= 0x0490 && nChar <= 0x0491 )
+ || ( nChar >= 0x2013 && nChar <= 0x203a )
+ || ( nChar >= 0x2116 && nChar <= 0x2122 );
break;
case RTL_TEXTENCODING_KOI8_R:
- bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
- || ( nChar >= 0x00a0 && nChar <= 0x00b7 )
- || ( nChar == 0x00f7 )
- || ( nChar >= 0x0401 && nChar <= 0x0451 )
- || ( nChar >= 0x2219 && nChar <= 0x221a )
- || ( nChar >= 0x2248 && nChar <= 0x2265 )
- || ( nChar >= 0x2320 && nChar <= 0x2321 )
- || ( nChar >= 0x2500 && nChar <= 0x25a0 );
+ bMatch = ( nChar >= 0x0020 && nChar <= 0x007e )
+ || ( nChar >= 0x00a0 && nChar <= 0x00b7 )
+ || ( nChar == 0x00f7 )
+ || ( nChar >= 0x0401 && nChar <= 0x0451 )
+ || ( nChar >= 0x2219 && nChar <= 0x221a )
+ || ( nChar >= 0x2248 && nChar <= 0x2265 )
+ || ( nChar >= 0x2320 && nChar <= 0x2321 )
+ || ( nChar >= 0x2500 && nChar <= 0x25a0 );
break;
case RTL_TEXTENCODING_UNICODE:
@@ -268,7 +268,7 @@ SalConverterCache::EncodingHasChar( rtl_TextEncoding nEncoding,
case RTL_TEXTENCODING_MS_1361:
case RTL_TEXTENCODING_JIS_X_0208:
- // XXX Big5 and Korean EUC contain Ascii chars, but Solaris
+ // XXX Big5 and Korean EUC contain Ascii chars, but Solaris
// *-big5-1 and *-ksc5601.1992-3 fonts dont, in general CJK fonts
// are monospaced, so dont trust them for latin chars
if (nChar <= 0xFF)
@@ -278,7 +278,7 @@ SalConverterCache::EncodingHasChar( rtl_TextEncoding nEncoding,
}
default:
- // XXX really convert the unicode char into the encoding
+ // XXX really convert the unicode char into the encoding
// and check for conversion errors, this is expensive !
rtl_UnicodeToTextConverter aConverter;
rtl_UnicodeToTextContext aContext;
@@ -296,27 +296,27 @@ SalConverterCache::EncodingHasChar( rtl_TextEncoding nEncoding,
sal_Size nConvertedChars;
sal_Size nSize;
- nSize = rtl_convertUnicodeToText( aConverter, aContext,
- &nChar, 1, pConversionBuffer, sizeof(pConversionBuffer),
- RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR
+ nSize = rtl_convertUnicodeToText( aConverter, aContext,
+ &nChar, 1, pConversionBuffer, sizeof(pConversionBuffer),
+ RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR
| RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR,
&nConversionInfo, &nConvertedChars );
rtl_destroyUnicodeToTextContext( aConverter, aContext );
bMatch = (nConvertedChars == 1)
- && (nSize == 1 || nSize == 2) // XXX Fix me this is a hack
+ && (nSize == 1 || nSize == 2) // XXX Fix me this is a hack
&& ((nConversionInfo & RTL_UNICODETOTEXT_INFO_ERROR) == 0);
break;
}
- return bMatch;
+ return bMatch;
}
// wrapper for rtl_convertUnicodeToText that handles the usual cases for
// textconversion in drawtext and gettextwidth routines
sal_Size
-SalConverterCache::ConvertStringUTF16( const sal_Unicode *pText, int nTextLen,
+SalConverterCache::ConvertStringUTF16( const sal_Unicode *pText, int nTextLen,
sal_Char *pBuffer, sal_Size nBufferSize, rtl_TextEncoding nEncoding )
{
rtl_UnicodeToTextConverter aConverter = GetU2TConverter(nEncoding);
@@ -328,10 +328,10 @@ SalConverterCache::ConvertStringUTF16( const sal_Unicode *pText, int nTextLen,
sal_uInt32 nCvtInfo;
sal_Size nCvtChars;
- rtl_UnicodeToTextContext aContext =
+ rtl_UnicodeToTextContext aContext =
rtl_createUnicodeToTextContext( aConverter );
- sal_Size nSize = rtl_convertUnicodeToText( aConverter, aContext,
+ sal_Size nSize = rtl_convertUnicodeToText( aConverter, aContext,
pText, nTextLen, pBuffer, nBufferSize,
nCvtFlags, &nCvtInfo, &nCvtChars );
diff --git a/vcl/unx/source/gdi/salcvt.hxx b/vcl/unx/source/gdi/salcvt.hxx
index 0c4b1bd3f953..7689ffeedd94 100644
--- a/vcl/unx/source/gdi/salcvt.hxx
+++ b/vcl/unx/source/gdi/salcvt.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,40 +34,40 @@
#include <map>
-extern "C" const char*
+extern "C" const char*
pGetEncodingName( rtl_TextEncoding nEncoding );
//
// Cache TextToUnicode and UnicodeToText converter and conversion info which is
// used in DrawXYZ routines and in the Event loop
-//
+//
class SalConverterCache {
public:
SalConverterCache();
~SalConverterCache();
- Bool EncodingHasChar(
+ Bool EncodingHasChar(
rtl_TextEncoding nEncoding, sal_Unicode nChar );
- rtl_UnicodeToTextConverter
+ rtl_UnicodeToTextConverter
GetU2TConverter( rtl_TextEncoding nEncoding );
- rtl_TextToUnicodeConverter
+ rtl_TextToUnicodeConverter
GetT2UConverter( rtl_TextEncoding nEncoding );
- Bool IsSingleByteEncoding( rtl_TextEncoding nEncoding );
- sal_Size ConvertStringUTF16( const sal_Unicode *pText, int nTextLen,
- sal_Char *pBuffer, sal_Size nBufferSize,
+ Bool IsSingleByteEncoding( rtl_TextEncoding nEncoding );
+ sal_Size ConvertStringUTF16( const sal_Unicode *pText, int nTextLen,
+ sal_Char *pBuffer, sal_Size nBufferSize,
rtl_TextEncoding nEncoding);
- static SalConverterCache*
- GetInstance ();
+ static SalConverterCache*
+ GetInstance ();
private:
struct ConverterT {
- rtl_UnicodeToTextConverter mpU2T;
- rtl_TextToUnicodeConverter mpT2U;
- Bool mbSingleByteEncoding;
- Bool mbValid;
+ rtl_UnicodeToTextConverter mpU2T;
+ rtl_TextToUnicodeConverter mpT2U;
+ Bool mbSingleByteEncoding;
+ Bool mbValid;
ConverterT() :
mpU2T( NULL ),
mpT2U( NULL ),
@@ -84,7 +84,7 @@ class SalConverterCache {
}
};
- std::map< rtl_TextEncoding, ConverterT > m_aConverters;
+ std::map< rtl_TextEncoding, ConverterT > m_aConverters;
};
diff --git a/vcl/unx/source/gdi/salgdi.cxx b/vcl/unx/source/gdi/salgdi.cxx
index 27c3ce806fd1..2b803a206881 100644
--- a/vcl/unx/source/gdi/salgdi.cxx
+++ b/vcl/unx/source/gdi/salgdi.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,13 +65,13 @@
class SalPolyLine
{
- XPoint Points_[STATIC_POINTS];
- XPoint *pFirst_;
+ XPoint Points_[STATIC_POINTS];
+ XPoint *pFirst_;
public:
- inline SalPolyLine( ULONG nPoints );
- inline SalPolyLine( ULONG nPoints, const SalPoint *p );
- inline ~SalPolyLine();
- inline XPoint &operator [] ( ULONG n ) const
+ inline SalPolyLine( ULONG nPoints );
+ inline SalPolyLine( ULONG nPoints, const SalPoint *p );
+ inline ~SalPolyLine();
+ inline XPoint &operator [] ( ULONG n ) const
{ return pFirst_[n]; }
};
@@ -98,19 +98,19 @@ inline SalPolyLine::~SalPolyLine()
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
X11SalGraphics::X11SalGraphics()
{
- m_pFrame = NULL;
- m_pVDev = NULL;
- m_pDeleteColormap = NULL;
- hDrawable_ = None;
+ m_pFrame = NULL;
+ m_pVDev = NULL;
+ m_pDeleteColormap = NULL;
+ hDrawable_ = None;
m_aXRenderPicture = 0;
m_pXRenderFormat = NULL;
- pClipRegion_ = NULL;
- pPaintRegion_ = NULL;
+ pClipRegion_ = NULL;
+ pPaintRegion_ = NULL;
- pPenGC_ = NULL;
- nPenPixel_ = 0;
- nPenColor_ = MAKE_SALCOLOR( 0x00, 0x00, 0x00 ); // Black
+ pPenGC_ = NULL;
+ nPenPixel_ = 0;
+ nPenColor_ = MAKE_SALCOLOR( 0x00, 0x00, 0x00 ); // Black
pFontGC_ = NULL;
for( int i = 0; i < MAX_FALLBACK; ++i )
@@ -119,42 +119,42 @@ X11SalGraphics::X11SalGraphics()
mpServerFont[i] = NULL;
}
- nTextPixel_ = 0;
- nTextColor_ = MAKE_SALCOLOR( 0x00, 0x00, 0x00 ); // Black
+ nTextPixel_ = 0;
+ nTextColor_ = MAKE_SALCOLOR( 0x00, 0x00, 0x00 ); // Black
#ifdef ENABLE_GRAPHITE
// check if graphite fonts have been disabled
static const char* pDisableGraphiteStr = getenv( "SAL_DISABLE_GRAPHITE" );
- bDisableGraphite_ = pDisableGraphiteStr ? (pDisableGraphiteStr[0]!='0') : FALSE;
+ bDisableGraphite_ = pDisableGraphiteStr ? (pDisableGraphiteStr[0]!='0') : FALSE;
#endif
- pBrushGC_ = NULL;
- nBrushPixel_ = 0;
- nBrushColor_ = MAKE_SALCOLOR( 0xFF, 0xFF, 0xFF ); // White
- hBrush_ = None;
-
- pMonoGC_ = NULL;
- pCopyGC_ = NULL;
- pMaskGC_ = NULL;
- pInvertGC_ = NULL;
- pInvert50GC_ = NULL;
- pStippleGC_ = NULL;
- pTrackingGC_ = NULL;
-
- bWindow_ = FALSE;
- bPrinter_ = FALSE;
- bVirDev_ = FALSE;
- bPenGC_ = FALSE;
- bFontGC_ = FALSE;
- bBrushGC_ = FALSE;
- bMonoGC_ = FALSE;
- bCopyGC_ = FALSE;
- bInvertGC_ = FALSE;
- bInvert50GC_ = FALSE;
- bStippleGC_ = FALSE;
- bTrackingGC_ = FALSE;
- bXORMode_ = FALSE;
- bDitherBrush_ = FALSE;
+ pBrushGC_ = NULL;
+ nBrushPixel_ = 0;
+ nBrushColor_ = MAKE_SALCOLOR( 0xFF, 0xFF, 0xFF ); // White
+ hBrush_ = None;
+
+ pMonoGC_ = NULL;
+ pCopyGC_ = NULL;
+ pMaskGC_ = NULL;
+ pInvertGC_ = NULL;
+ pInvert50GC_ = NULL;
+ pStippleGC_ = NULL;
+ pTrackingGC_ = NULL;
+
+ bWindow_ = FALSE;
+ bPrinter_ = FALSE;
+ bVirDev_ = FALSE;
+ bPenGC_ = FALSE;
+ bFontGC_ = FALSE;
+ bBrushGC_ = FALSE;
+ bMonoGC_ = FALSE;
+ bCopyGC_ = FALSE;
+ bInvertGC_ = FALSE;
+ bInvert50GC_ = FALSE;
+ bStippleGC_ = FALSE;
+ bTrackingGC_ = FALSE;
+ bXORMode_ = FALSE;
+ bDitherBrush_ = FALSE;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -169,21 +169,21 @@ X11SalGraphics::~X11SalGraphics()
void X11SalGraphics::freeResources()
{
Display *pDisplay = GetXDisplay();
-
+
DBG_ASSERT( !pPaintRegion_, "pPaintRegion_" );
if( pClipRegion_ ) XDestroyRegion( pClipRegion_ ), pClipRegion_ = None;
-
- if( hBrush_ ) XFreePixmap( pDisplay, hBrush_ ), hBrush_ = None;
- if( pPenGC_ ) XFreeGC( pDisplay, pPenGC_ ), pPenGC_ = None;
- if( pFontGC_ ) XFreeGC( pDisplay, pFontGC_ ), pFontGC_ = None;
- if( pBrushGC_ ) XFreeGC( pDisplay, pBrushGC_ ), pBrushGC_ = None;
- if( pMonoGC_ ) XFreeGC( pDisplay, pMonoGC_ ), pMonoGC_ = None;
- if( pCopyGC_ ) XFreeGC( pDisplay, pCopyGC_ ), pCopyGC_ = None;
- if( pMaskGC_ ) XFreeGC( pDisplay, pMaskGC_ ), pMaskGC_ = None;
- if( pInvertGC_ ) XFreeGC( pDisplay, pInvertGC_ ), pInvertGC_ = None;
- if( pInvert50GC_ ) XFreeGC( pDisplay, pInvert50GC_ ), pInvert50GC_ = None;
- if( pStippleGC_ ) XFreeGC( pDisplay, pStippleGC_ ), pStippleGC_ = None;
- if( pTrackingGC_ ) XFreeGC( pDisplay, pTrackingGC_ ), pTrackingGC_ = None;
+
+ if( hBrush_ ) XFreePixmap( pDisplay, hBrush_ ), hBrush_ = None;
+ if( pPenGC_ ) XFreeGC( pDisplay, pPenGC_ ), pPenGC_ = None;
+ if( pFontGC_ ) XFreeGC( pDisplay, pFontGC_ ), pFontGC_ = None;
+ if( pBrushGC_ ) XFreeGC( pDisplay, pBrushGC_ ), pBrushGC_ = None;
+ if( pMonoGC_ ) XFreeGC( pDisplay, pMonoGC_ ), pMonoGC_ = None;
+ if( pCopyGC_ ) XFreeGC( pDisplay, pCopyGC_ ), pCopyGC_ = None;
+ if( pMaskGC_ ) XFreeGC( pDisplay, pMaskGC_ ), pMaskGC_ = None;
+ if( pInvertGC_ ) XFreeGC( pDisplay, pInvertGC_ ), pInvertGC_ = None;
+ if( pInvert50GC_ ) XFreeGC( pDisplay, pInvert50GC_ ), pInvert50GC_ = None;
+ if( pStippleGC_ ) XFreeGC( pDisplay, pStippleGC_ ), pStippleGC_ = None;
+ if( pTrackingGC_ ) XFreeGC( pDisplay, pTrackingGC_ ), pTrackingGC_ = None;
if( m_pDeleteColormap )
delete m_pDeleteColormap, m_pColormap = m_pDeleteColormap = NULL;
@@ -217,22 +217,22 @@ void X11SalGraphics::SetDrawable( Drawable aDrawable, int nScreen )
if( hDrawable_ )
{
- nPenPixel_ = GetPixel( nPenColor_ );
- nTextPixel_ = GetPixel( nTextColor_ );
- nBrushPixel_ = GetPixel( nBrushColor_ );
+ nPenPixel_ = GetPixel( nPenColor_ );
+ nTextPixel_ = GetPixel( nTextColor_ );
+ nBrushPixel_ = GetPixel( nBrushColor_ );
}
}
void X11SalGraphics::Init( SalFrame *pFrame, Drawable aTarget, int nScreen )
{
- m_pColormap = &GetX11SalData()->GetDisplay()->GetColormap(nScreen);
+ m_pColormap = &GetX11SalData()->GetDisplay()->GetColormap(nScreen);
m_nScreen = nScreen;
SetDrawable( aTarget, nScreen );
- bWindow_ = TRUE;
- m_pFrame = pFrame;
- m_pVDev = NULL;
+ bWindow_ = TRUE;
+ m_pFrame = pFrame;
+ m_pVDev = NULL;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -251,8 +251,8 @@ void X11SalGraphics::SetClipRegion( GC pGC, XLIB_Region pXReg ) const
if( pClipRegion_ /* && !XEmptyRegion( pClipRegion_ ) */ )
Regions[n++] = pClipRegion_;
-// if( pPaintRegion_ /* && !XEmptyRegion( pPaintRegion_ ) */ )
-// Regions[n++] = pPaintRegion_;
+// if( pPaintRegion_ /* && !XEmptyRegion( pPaintRegion_ ) */ )
+// Regions[n++] = pPaintRegion_;
if( pXReg && !XEmptyRegion( pXReg ) )
Regions[n++] = pXReg;
@@ -265,8 +265,8 @@ void X11SalGraphics::SetClipRegion( GC pGC, XLIB_Region pXReg ) const
{
XLIB_Region pTmpRegion = XCreateRegion();
XIntersectRegion( Regions[0], Regions[1], pTmpRegion );
-// if( 3 == n )
-// XIntersectRegion( Regions[2], pTmpRegion, pTmpRegion );
+// if( 3 == n )
+// XIntersectRegion( Regions[2], pTmpRegion, pTmpRegion );
XSetRegion( pDisplay, pGC, pTmpRegion );
XDestroyRegion( pTmpRegion );
}
@@ -280,9 +280,9 @@ GC X11SalGraphics::SelectPen()
if( !pPenGC_ )
{
XGCValues values;
- values.subwindow_mode = ClipByChildren;
- values.fill_rule = EvenOddRule; // Pict import/ Gradient
- values.graphics_exposures = False;
+ values.subwindow_mode = ClipByChildren;
+ values.fill_rule = EvenOddRule; // Pict import/ Gradient
+ values.graphics_exposures = False;
pPenGC_ = XCreateGC( pDisplay, hDrawable_,
GCSubwindowMode | GCFillRule | GCGraphicsExposures,
@@ -311,10 +311,10 @@ GC X11SalGraphics::SelectBrush()
if( !pBrushGC_ )
{
XGCValues values;
- // values.subwindow_mode = IncludeInferiors;
- values.subwindow_mode = ClipByChildren;
- values.fill_rule = EvenOddRule; // Pict import/ Gradient
- values.graphics_exposures = False;
+ // values.subwindow_mode = IncludeInferiors;
+ values.subwindow_mode = ClipByChildren;
+ values.fill_rule = EvenOddRule; // Pict import/ Gradient
+ values.graphics_exposures = False;
pBrushGC_ = XCreateGC( pDisplay, hDrawable_,
GCSubwindowMode | GCFillRule | GCGraphicsExposures,
@@ -368,7 +368,7 @@ GC X11SalGraphics::GetTrackingGC()
^ m_pColormap->GetWhitePixel();
values.function = GXxor;
values.line_width = 1;
- values.line_style = LineOnOffDash;
+ values.line_style = LineOnOffDash;
pTrackingGC_ = XCreateGC( GetXDisplay(), GetDrawable(),
GCGraphicsExposures | GCForeground | GCFunction
@@ -424,8 +424,8 @@ void X11SalGraphics::DrawLines( ULONG nPoints,
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// Dithern: Calculate a dither-pixmap and make a brush of it
-#define P_DELTA 51
-#define DMAP( v, m ) ((v % P_DELTA) > m ? (v / P_DELTA) + 1 : (v / P_DELTA))
+#define P_DELTA 51
+#define DMAP( v, m ) ((v % P_DELTA) > m ? (v / P_DELTA) + 1 : (v / P_DELTA))
BOOL X11SalGraphics::GetDitherPixmap( SalColor nSalColor )
{
@@ -471,11 +471,11 @@ BOOL X11SalGraphics::GetDitherPixmap( SalColor nSalColor )
GetColormap().GetXVisual(),
8,
ZPixmap,
- 0, // offset
- pBits, // data
- 8, 8, // width & height
- 8, // bitmap_pad
- 0 ); // (default) bytes_per_line
+ 0, // offset
+ pBits, // data
+ 8, 8, // width & height
+ 8, // bitmap_pad
+ 0 ); // (default) bytes_per_line
if ( GetDisplay()->GetProperties() & PROPERTY_BUG_Tile )
{
@@ -492,9 +492,9 @@ BOOL X11SalGraphics::GetDitherPixmap( SalColor nSalColor )
hBrush_,
GetDisplay()->GetCopyGC( m_nScreen ),
pImage,
- 0, 0, // Source
- 0, 0, // Destination
- 8, 8 ); // width & height
+ 0, 0, // Source
+ 0, 0, // Destination
+ 8, 8 ); // width & height
// destroy image-frame but not palette-data
pImage->data = NULL;
@@ -507,7 +507,7 @@ BOOL X11SalGraphics::GetDitherPixmap( SalColor nSalColor )
void X11SalGraphics::GetResolution( sal_Int32 &rDPIX, sal_Int32 &rDPIY ) // const
{
const SalDisplay *pDisplay = GetDisplay();
-
+
rDPIX = pDisplay->GetResolution().A();
rDPIY = pDisplay->GetResolution().B();
if( !pDisplay->GetExactResolution() && rDPIY < 96 )
@@ -520,12 +520,12 @@ void X11SalGraphics::GetResolution( sal_Int32 &rDPIX, sal_Int32 &rDPIY ) // cons
rDPIX = Divide( rDPIX * 200, rDPIY );
rDPIY = 200;
}
-
+
// #i12705# equalize x- and y-resolution if they are close enough
if( rDPIX != rDPIY )
{
// different x- and y- resolutions are usually artifacts of
- // a wrongly calculated screen size.
+ // a wrongly calculated screen size.
//if( (13*rDPIX >= 10*rDPIY) && (13*rDPIY >= 10*rDPIX) ) //+-30%
{
#ifdef DEBUG
@@ -570,18 +570,18 @@ void X11SalGraphics::ResetClipRegion()
{
if( pClipRegion_ )
{
- bPenGC_ = FALSE;
- bFontGC_ = FALSE;
- bBrushGC_ = FALSE;
- bMonoGC_ = FALSE;
- bCopyGC_ = FALSE;
- bInvertGC_ = FALSE;
- bInvert50GC_ = FALSE;
- bStippleGC_ = FALSE;
- bTrackingGC_ = FALSE;
-
+ bPenGC_ = FALSE;
+ bFontGC_ = FALSE;
+ bBrushGC_ = FALSE;
+ bMonoGC_ = FALSE;
+ bCopyGC_ = FALSE;
+ bInvertGC_ = FALSE;
+ bInvert50GC_ = FALSE;
+ bStippleGC_ = FALSE;
+ bTrackingGC_ = FALSE;
+
XDestroyRegion( pClipRegion_ );
- pClipRegion_ = NULL;
+ pClipRegion_ = NULL;
}
}
@@ -600,13 +600,13 @@ BOOL X11SalGraphics::unionClipRegion( long nX, long nY, long nDX, long nDY )
return TRUE;
XRectangle aRect;
- aRect.x = (short)nX;
- aRect.y = (short)nY;
- aRect.width = (unsigned short)nDX;
- aRect.height = (unsigned short)nDY;
-
+ aRect.x = (short)nX;
+ aRect.y = (short)nY;
+ aRect.width = (unsigned short)nDX;
+ aRect.height = (unsigned short)nDY;
+
XUnionRectWithRegion( &aRect, pClipRegion_, pClipRegion_ );
-
+
return TRUE;
}
@@ -620,16 +620,16 @@ bool X11SalGraphics::unionClipRegion( const ::basegfx::B2DPolyPolygon& )
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
void X11SalGraphics::EndSetClipRegion()
{
- bPenGC_ = FALSE;
- bFontGC_ = FALSE;
- bBrushGC_ = FALSE;
- bMonoGC_ = FALSE;
- bCopyGC_ = FALSE;
- bInvertGC_ = FALSE;
- bInvert50GC_ = FALSE;
- bStippleGC_ = FALSE;
- bTrackingGC_ = FALSE;
-
+ bPenGC_ = FALSE;
+ bFontGC_ = FALSE;
+ bBrushGC_ = FALSE;
+ bMonoGC_ = FALSE;
+ bCopyGC_ = FALSE;
+ bInvertGC_ = FALSE;
+ bInvert50GC_ = FALSE;
+ bStippleGC_ = FALSE;
+ bTrackingGC_ = FALSE;
+
if( XEmptyRegion( pClipRegion_ ) )
{
XDestroyRegion( pClipRegion_ );
@@ -642,8 +642,8 @@ void X11SalGraphics::SetLineColor()
{
if( nPenColor_ != SALCOLOR_NONE )
{
- nPenColor_ = SALCOLOR_NONE;
- bPenGC_ = FALSE;
+ nPenColor_ = SALCOLOR_NONE;
+ bPenGC_ = FALSE;
}
}
@@ -652,9 +652,9 @@ void X11SalGraphics::SetLineColor( SalColor nSalColor )
{
if( nPenColor_ != nSalColor )
{
- nPenColor_ = nSalColor;
- nPenPixel_ = GetPixel( nSalColor );
- bPenGC_ = FALSE;
+ nPenColor_ = nSalColor;
+ nPenPixel_ = GetPixel( nSalColor );
+ bPenGC_ = FALSE;
}
}
@@ -663,9 +663,9 @@ void X11SalGraphics::SetFillColor()
{
if( nBrushColor_ != SALCOLOR_NONE )
{
- bDitherBrush_ = FALSE;
- nBrushColor_ = SALCOLOR_NONE;
- bBrushGC_ = FALSE;
+ bDitherBrush_ = FALSE;
+ nBrushColor_ = SALCOLOR_NONE;
+ bBrushGC_ = FALSE;
}
}
@@ -674,9 +674,9 @@ void X11SalGraphics::SetFillColor( SalColor nSalColor )
{
if( nBrushColor_ != nSalColor )
{
- bDitherBrush_ = FALSE;
- nBrushColor_ = nSalColor;
- nBrushPixel_ = GetPixel( nSalColor );
+ bDitherBrush_ = FALSE;
+ nBrushColor_ = nSalColor;
+ nBrushPixel_ = GetPixel( nSalColor );
if( TrueColor != GetColormap().GetVisual().GetClass()
&& GetColormap().GetColor( nBrushPixel_ ) != nBrushColor_
&& nSalColor != MAKE_SALCOLOR( 0x00, 0x00, 0x00 ) // black
@@ -696,7 +696,7 @@ void X11SalGraphics::SetFillColor( SalColor nSalColor )
&& nSalColor != MAKE_SALCOLOR( 0xFF, 0xFF, 0x00 ) // light brown
&& nSalColor != MAKE_SALCOLOR( 0xFF, 0xFF, 0xFF ) )
bDitherBrush_ = GetDitherPixmap(nSalColor);
- bBrushGC_ = FALSE;
+ bBrushGC_ = FALSE;
}
}
@@ -715,8 +715,8 @@ void X11SalGraphics::SetROPLineColor( SalROPColor nROPColor )
nPenPixel_ = (Pixel)(1 << GetVisual().GetDepth()) - 1;
break;
}
- nPenColor_ = GetColormap().GetColor( nPenPixel_ );
- bPenGC_ = FALSE;
+ nPenColor_ = GetColormap().GetColor( nPenPixel_ );
+ bPenGC_ = FALSE;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -734,9 +734,9 @@ void X11SalGraphics::SetROPFillColor( SalROPColor nROPColor )
nBrushPixel_ = (Pixel)(1 << GetVisual().GetDepth()) - 1;
break;
}
- bDitherBrush_ = FALSE;
- nBrushColor_ = GetColormap().GetColor( nBrushPixel_ );
- bBrushGC_ = FALSE;
+ bDitherBrush_ = FALSE;
+ nBrushColor_ = GetColormap().GetColor( nBrushPixel_ );
+ bBrushGC_ = FALSE;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -744,15 +744,15 @@ void X11SalGraphics::SetXORMode( bool bSet, bool )
{
if( !bXORMode_ == bSet )
{
- bXORMode_ = bSet;
- bPenGC_ = FALSE;
- bBrushGC_ = FALSE;
- bMonoGC_ = FALSE;
- bCopyGC_ = FALSE;
- bInvertGC_ = FALSE;
- bInvert50GC_ = FALSE;
- bStippleGC_ = FALSE;
- bTrackingGC_ = FALSE;
+ bXORMode_ = bSet;
+ bPenGC_ = FALSE;
+ bBrushGC_ = FALSE;
+ bMonoGC_ = FALSE;
+ bCopyGC_ = FALSE;
+ bInvertGC_ = FALSE;
+ bInvert50GC_ = FALSE;
+ bStippleGC_ = FALSE;
+ bTrackingGC_ = FALSE;
}
}
@@ -768,7 +768,7 @@ void X11SalGraphics::drawPixel( long nX, long nY, SalColor nSalColor )
if( nSalColor != SALCOLOR_NONE )
{
Display *pDisplay = GetXDisplay();
-
+
if( (nPenColor_ == SALCOLOR_NONE) && !bPenGC_ )
{
SetLineColor( nSalColor );
@@ -779,12 +779,12 @@ void X11SalGraphics::drawPixel( long nX, long nY, SalColor nSalColor )
else
{
GC pGC = SelectPen();
-
+
if( nSalColor != nPenColor_ )
XSetForeground( pDisplay, pGC, GetPixel( nSalColor ) );
-
+
XDrawPoint( pDisplay, GetDrawable(), pGC, nX, nY );
-
+
if( nSalColor != nPenColor_ )
XSetForeground( pDisplay, pGC, nPenPixel_ );
}
@@ -839,7 +839,7 @@ void X11SalGraphics::drawPolyLine( ULONG nPoints, const SalPoint *pPtAry, bool b
if( nPenColor_ != 0xFFFFFFFF )
{
SalPolyLine Points( nPoints, pPtAry );
-
+
DrawLines( nPoints, Points, SelectPen(), bClose );
}
}
@@ -849,7 +849,7 @@ void X11SalGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
{
if( nPoints == 0 )
return;
-
+
if( nPoints < 3 )
{
if( !bXORMode_ )
@@ -862,9 +862,9 @@ void X11SalGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
}
return;
}
-
+
SalPolyLine Points( nPoints, pPtAry );
-
+
nPoints++;
/* WORKAROUND: some Xservers (Xorg, VIA chipset in this case)
@@ -898,29 +898,29 @@ void X11SalGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
if( Points[i].x < 0 )
Points[i].x = 0;
}
- }
-
+ }
+
if( nBrushColor_ != SALCOLOR_NONE )
XFillPolygon( GetXDisplay(),
GetDrawable(),
SelectBrush(),
&Points[0], nPoints,
Complex, CoordModeOrigin );
-
+
if( nPenColor_ != 0xFFFFFFFF )
DrawLines( nPoints, Points, SelectPen(), true );
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-void X11SalGraphics::drawPolyPolygon( sal_uInt32 nPoly,
- const sal_uInt32 *pPoints,
+void X11SalGraphics::drawPolyPolygon( sal_uInt32 nPoly,
+ const sal_uInt32 *pPoints,
PCONSTSALPOINT *pPtAry )
{
if( nBrushColor_ != SALCOLOR_NONE )
{
- ULONG i, n;
- XLIB_Region pXRegA = NULL;
-
+ ULONG i, n;
+ XLIB_Region pXRegA = NULL;
+
for( i = 0; i < nPoly; i++ ) {
n = pPoints[i];
SalPolyLine Points( n, pPtAry[i] );
@@ -936,24 +936,24 @@ void X11SalGraphics::drawPolyPolygon( sal_uInt32 nPoly,
}
}
}
-
+
if( pXRegA )
{
XRectangle aXRect;
XClipBox( pXRegA, &aXRect );
-
+
GC pGC = SelectBrush();
SetClipRegion( pGC, pXRegA ); // ??? doppelt
XDestroyRegion( pXRegA );
bBrushGC_ = FALSE;
-
+
XFillRectangle( GetXDisplay(),
GetDrawable(),
pGC,
aXRect.x, aXRect.y, aXRect.width, aXRect.height );
}
}
-
+
if( nPenColor_ != SALCOLOR_NONE )
for( ULONG i = 0; i < nPoly; i++ )
drawPolyLine( pPoints[i], pPtAry[i], true );
@@ -988,7 +988,7 @@ void X11SalGraphics::invert( ULONG nPoints,
SalInvert nFlags )
{
SalPolyLine Points ( nPoints, pPtAry );
-
+
GC pGC;
if( SAL_INVERT_50 & nFlags )
pGC = GetInvert50GC();
@@ -997,7 +997,7 @@ void X11SalGraphics::invert( ULONG nPoints,
pGC = GetTrackingGC();
else
pGC = GetInvertGC();
-
+
if( SAL_INVERT_TRACKFRAME & nFlags )
DrawLines ( nPoints, Points, pGC, true );
else
diff --git a/vcl/unx/source/gdi/salgdi2.cxx b/vcl/unx/source/gdi/salgdi2.cxx
index 30094d46be52..7ce8c39836d5 100644
--- a/vcl/unx/source/gdi/salgdi2.cxx
+++ b/vcl/unx/source/gdi/salgdi2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,12 +53,12 @@
// -----------------------------------------------------------------------------
#if (OSL_DEBUG_LEVEL > 1) && defined SALGDI2_TESTTRANS
-#define DBG_TESTTRANS( _def_drawable ) \
-{ \
- XCopyArea( pXDisp, _def_drawable, aDrawable, GetCopyGC(), \
- 0, 0, \
- pPosAry->mnDestWidth, pPosAry->mnDestHeight, \
- 0, 0 ); \
+#define DBG_TESTTRANS( _def_drawable ) \
+{ \
+ XCopyArea( pXDisp, _def_drawable, aDrawable, GetCopyGC(), \
+ 0, 0, \
+ pPosAry->mnDestWidth, pPosAry->mnDestHeight, \
+ 0, 0 ); \
}
#else // (OSL_DEBUG_LEVEL > 1) && defined SALGDI2_TESTTRANS
#define DBG_TESTTRANS( _def_drawable )
@@ -115,14 +115,14 @@ GC X11SalGraphics::CreateGC( Drawable hDrawable, unsigned long nMask )
{
XGCValues values;
- values.graphics_exposures = False;
- values.foreground = m_pColormap->GetBlackPixel()
+ values.graphics_exposures = False;
+ values.foreground = m_pColormap->GetBlackPixel()
^ m_pColormap->GetWhitePixel();
- values.function = GXxor;
- values.line_width = 1;
- values.fill_style = FillStippled;
- values.stipple = GetDisplay()->GetInvert50( m_nScreen );
- values.subwindow_mode = ClipByChildren;
+ values.function = GXxor;
+ values.line_width = 1;
+ values.fill_style = FillStippled;
+ values.stipple = GetDisplay()->GetInvert50( m_nScreen );
+ values.subwindow_mode = ClipByChildren;
return XCreateGC( GetXDisplay(), hDrawable, nMask | GCSubwindowMode, &values );
}
@@ -183,12 +183,12 @@ GC X11SalGraphics::GetInvert50GC()
{
XGCValues values;
- values.graphics_exposures = False;
- values.foreground = m_pColormap->GetWhitePixel();
- values.background = m_pColormap->GetBlackPixel();
- values.function = GXinvert;
- values.line_width = 1;
- values.line_style = LineSolid;
+ values.graphics_exposures = False;
+ values.foreground = m_pColormap->GetWhitePixel();
+ values.background = m_pColormap->GetBlackPixel();
+ values.function = GXinvert;
+ values.line_width = 1;
+ values.line_style = LineSolid;
unsigned long nValueMask =
GCGraphicsExposures
| GCForeground
@@ -207,8 +207,8 @@ GC X11SalGraphics::GetInvert50GC()
}
else
{
- values.fill_style = FillStippled;
- values.stipple = GetDisplay()->GetInvert50( m_nScreen );
+ values.fill_style = FillStippled;
+ values.stipple = GetDisplay()->GetInvert50( m_nScreen );
}
pInvert50GC_ = XCreateGC( GetXDisplay(), GetDrawable(),
@@ -349,7 +349,7 @@ GC X11SalGraphics::SetMask( int &nX,
}
// - - - - create alternate clip pixmap for region clipping - - - -
- Pixmap hPixmap = XCreatePixmap( pDisplay, hClipMask, nDX, nDY, 1 );
+ Pixmap hPixmap = XCreatePixmap( pDisplay, hClipMask, nDX, nDY, 1 );
if( !hPixmap )
{
@@ -370,12 +370,12 @@ GC X11SalGraphics::SetMask( int &nX,
GC pMonoGC = GetMonoGC( hPixmap );
XSetClipOrigin( pDisplay, pMonoGC, -nX, -nY );
XCopyArea( pDisplay,
- hClipMask, // Source
- hPixmap, // Destination
+ hClipMask, // Source
+ hPixmap, // Destination
pMonoGC,
- nSrcX, nSrcY, // Source
- nDX, nDY, // Width & Height
- 0, 0 ); // Destination
+ nSrcX, nSrcY, // Source
+ nDX, nDY, // Width & Height
+ 0, 0 ); // Destination
XSetClipMask( pDisplay, pMaskGC_, hPixmap );
XSetClipOrigin( pDisplay, pMaskGC_, nX, nY );
@@ -387,7 +387,7 @@ GC X11SalGraphics::SetMask( int &nX,
// -=-= SalGraphics =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-extern "C"
+extern "C"
{
static Bool GraphicsExposePredicate( Display*, XEvent* pEvent, XPointer pFrameWindow )
{
@@ -446,12 +446,12 @@ void X11SalGraphics::YieldGraphicsExpose()
}
void X11SalGraphics::copyBits( const SalTwoRect *pPosAry,
- SalGraphics *pSSrcGraphics )
+ SalGraphics *pSSrcGraphics )
{
X11SalGraphics* pSrcGraphics = pSSrcGraphics
? static_cast<X11SalGraphics*>(pSSrcGraphics)
: this;
-
+
if( pPosAry->mnSrcWidth <= 0
|| pPosAry->mnSrcHeight <= 0
|| pPosAry->mnDestWidth <= 0
@@ -459,7 +459,7 @@ void X11SalGraphics::copyBits( const SalTwoRect *pPosAry,
{
return;
}
-
+
int n;
if( pSrcGraphics == this )
{
@@ -486,9 +486,9 @@ void X11SalGraphics::copyBits( const SalTwoRect *pPosAry,
}
else
n = 0;
-
+
if( n == 2
- && pPosAry->mnSrcWidth == pPosAry->mnDestWidth
+ && pPosAry->mnSrcWidth == pPosAry->mnDestWidth
&& pPosAry->mnSrcHeight == pPosAry->mnDestHeight
)
{
@@ -496,7 +496,7 @@ void X11SalGraphics::copyBits( const SalTwoRect *pPosAry,
// obscured areas beneath overlapping windows), src and dest
// are the same window.
const bool bNeedGraphicsExposures( pSrcGraphics == this &&
- !bVirDev_ &&
+ !bVirDev_ &&
pSrcGraphics->bWindow_ );
GC pCopyGC;
@@ -506,7 +506,7 @@ void X11SalGraphics::copyBits( const SalTwoRect *pPosAry,
&& (GetDisplay()->GetProperties() & PROPERTY_BUG_XCopyArea_GXxor) )
{
Pixmap hPixmap = XCreatePixmap( GetXDisplay(),
- pSrcGraphics->GetDrawable(), // source
+ pSrcGraphics->GetDrawable(), // source
pPosAry->mnSrcWidth, pPosAry->mnSrcHeight,
pSrcGraphics->GetBitCount() );
@@ -518,17 +518,17 @@ void X11SalGraphics::copyBits( const SalTwoRect *pPosAry,
True );
XCopyArea( GetXDisplay(),
- pSrcGraphics->GetDrawable(), // source
- hPixmap, // destination
- pCopyGC, // no clipping
+ pSrcGraphics->GetDrawable(), // source
+ hPixmap, // destination
+ pCopyGC, // no clipping
pPosAry->mnSrcX, pPosAry->mnSrcY,
pPosAry->mnSrcWidth, pPosAry->mnSrcHeight,
- 0, 0 ); // destination
+ 0, 0 ); // destination
XCopyArea( GetXDisplay(),
- hPixmap, // source
- GetDrawable(), // destination
- GetInvertGC(), // destination clipping
- 0, 0, // source
+ hPixmap, // source
+ GetDrawable(), // destination
+ GetInvertGC(), // destination clipping
+ 0, 0, // source
pPosAry->mnSrcWidth, pPosAry->mnSrcHeight,
pPosAry->mnDestX, pPosAry->mnDestY );
XFreePixmap( GetXDisplay(), hPixmap );
@@ -536,16 +536,16 @@ void X11SalGraphics::copyBits( const SalTwoRect *pPosAry,
else
{
pCopyGC = GetCopyGC();
-
+
if( bNeedGraphicsExposures )
XSetGraphicsExposures( GetXDisplay(),
pCopyGC,
True );
XCopyArea( GetXDisplay(),
- pSrcGraphics->GetDrawable(), // source
- GetDrawable(), // destination
- pCopyGC, // destination clipping
+ pSrcGraphics->GetDrawable(), // source
+ GetDrawable(), // destination
+ pCopyGC, // destination clipping
pPosAry->mnSrcX, pPosAry->mnSrcY,
pPosAry->mnSrcWidth, pPosAry->mnSrcHeight,
pPosAry->mnDestX, pPosAry->mnDestY );
@@ -570,18 +570,18 @@ void X11SalGraphics::copyBits( const SalTwoRect *pPosAry,
pPosAry->mnSrcY,
pPosAry->mnSrcWidth,
pPosAry->mnSrcHeight );
-
+
if( !pDDB )
{
stderr0( "SalGraphics::CopyBits !pSrcGraphics->GetBitmap()\n" );
return;
}
-
+
SalTwoRect aPosAry( *pPosAry );
-
- aPosAry.mnSrcX = 0, aPosAry.mnSrcY = 0;
+
+ aPosAry.mnSrcX = 0, aPosAry.mnSrcY = 0;
drawBitmap( &aPosAry, *pDDB );
-
+
delete pDDB;
}
else {
@@ -597,17 +597,17 @@ void X11SalGraphics::copyArea ( long nDestX, long nDestY,
USHORT )
{
SalTwoRect aPosAry;
-
+
aPosAry.mnDestX = nDestX;
aPosAry.mnDestY = nDestY;
aPosAry.mnDestWidth = nSrcWidth;
aPosAry.mnDestHeight = nSrcHeight;
-
+
aPosAry.mnSrcX = nSrcX;
aPosAry.mnSrcY = nSrcY;
aPosAry.mnSrcWidth = nSrcWidth;
aPosAry.mnSrcHeight = nSrcHeight;
-
+
copyBits ( &aPosAry, 0 );
}
@@ -615,14 +615,14 @@ void X11SalGraphics::copyArea ( long nDestX, long nDestY,
void X11SalGraphics::drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap )
{
const SalDisplay* pSalDisp = GetDisplay();
- Display* pXDisp = pSalDisp->GetDisplay();
- const Drawable aDrawable( GetDrawable() );
- const SalColormap& rColMap = pSalDisp->GetColormap( m_nScreen );
- const long nDepth = GetDisplay()->GetVisual( m_nScreen ).GetDepth();
- GC aGC( GetCopyGC() );
- XGCValues aOldVal, aNewVal;
- int nValues = GCForeground | GCBackground;
-
+ Display* pXDisp = pSalDisp->GetDisplay();
+ const Drawable aDrawable( GetDrawable() );
+ const SalColormap& rColMap = pSalDisp->GetColormap( m_nScreen );
+ const long nDepth = GetDisplay()->GetVisual( m_nScreen ).GetDepth();
+ GC aGC( GetCopyGC() );
+ XGCValues aOldVal, aNewVal;
+ int nValues = GCForeground | GCBackground;
+
if( rSalBitmap.GetBitCount() == 1 )
{
// set foreground/background values for 1Bit bitmaps
@@ -630,9 +630,9 @@ void X11SalGraphics::drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSa
aNewVal.foreground = rColMap.GetWhitePixel(), aNewVal.background = rColMap.GetBlackPixel();
XChangeGC( pXDisp, aGC, nValues, &aNewVal );
}
-
+
static_cast<const X11SalBitmap&>(rSalBitmap).ImplDraw( aDrawable, m_nScreen, nDepth, *pPosAry, aGC );
-
+
if( rSalBitmap.GetBitCount() == 1 )
XChangeGC( pXDisp, aGC, nValues, &aOldVal );
XFlush( pXDisp );
@@ -672,23 +672,23 @@ void X11SalGraphics::drawMaskedBitmap( const SalTwoRect* pPosAry,
// figure work mode depth. If this is a VDev Drawable, use its
// bitdepth to create pixmaps for, otherwise, XCopyArea will
// refuse to work.
- const USHORT nDepth( m_pVDev ?
+ const USHORT nDepth( m_pVDev ?
m_pVDev->GetDepth() :
pSalDisp->GetVisual( m_nScreen ).GetDepth() );
- Pixmap aFG( XCreatePixmap( pXDisp, aDrawable, pPosAry->mnDestWidth,
+ Pixmap aFG( XCreatePixmap( pXDisp, aDrawable, pPosAry->mnDestWidth,
pPosAry->mnDestHeight, nDepth ) );
- Pixmap aBG( XCreatePixmap( pXDisp, aDrawable, pPosAry->mnDestWidth,
+ Pixmap aBG( XCreatePixmap( pXDisp, aDrawable, pPosAry->mnDestWidth,
pPosAry->mnDestHeight, nDepth ) );
-
+
if( aFG && aBG )
{
- GC aTmpGC;
- XGCValues aValues;
- const SalColormap& rColMap = pSalDisp->GetColormap( m_nScreen );
- const int nBlack = rColMap.GetBlackPixel(), nWhite = rColMap.GetWhitePixel();
- const int nValues = GCFunction | GCForeground | GCBackground;
- SalTwoRect aTmpRect( *pPosAry ); aTmpRect.mnDestX = aTmpRect.mnDestY = 0;
-
+ GC aTmpGC;
+ XGCValues aValues;
+ const SalColormap& rColMap = pSalDisp->GetColormap( m_nScreen );
+ const int nBlack = rColMap.GetBlackPixel(), nWhite = rColMap.GetWhitePixel();
+ const int nValues = GCFunction | GCForeground | GCBackground;
+ SalTwoRect aTmpRect( *pPosAry ); aTmpRect.mnDestX = aTmpRect.mnDestY = 0;
+
// draw paint bitmap in pixmap #1
aValues.function = GXcopy, aValues.foreground = nWhite, aValues.background = nBlack;
aTmpGC = XCreateGC( pXDisp, aFG, nValues, &aValues );
@@ -702,14 +702,14 @@ void X11SalGraphics::drawMaskedBitmap( const SalTwoRect* pPosAry,
0, 0 );
DBG_TESTTRANS( aBG );
-
+
// mask out paint bitmap in pixmap #1 (transparent areas 0)
aValues.function = GXand, aValues.foreground = 0x00000000, aValues.background = 0xffffffff;
XChangeGC( pXDisp, aTmpGC, nValues, &aValues );
static_cast<const X11SalBitmap&>(rTransBitmap).ImplDraw( aFG, m_nScreen, 1, aTmpRect, aTmpGC );
-
+
DBG_TESTTRANS( aFG );
-
+
// #105055# For XOR mode, keep background behind bitmap intact
if( !bXORMode_ )
{
@@ -717,10 +717,10 @@ void X11SalGraphics::drawMaskedBitmap( const SalTwoRect* pPosAry,
aValues.function = GXand, aValues.foreground = 0xffffffff, aValues.background = 0x00000000;
XChangeGC( pXDisp, aTmpGC, nValues, &aValues );
static_cast<const X11SalBitmap&>(rTransBitmap).ImplDraw( aBG, m_nScreen, 1, aTmpRect, aTmpGC );
-
+
DBG_TESTTRANS( aBG );
}
-
+
// merge pixmap #1 and pixmap #2 in pixmap #2
aValues.function = GXxor, aValues.foreground = 0xffffffff, aValues.background = 0x00000000;
XChangeGC( pXDisp, aTmpGC, nValues, &aValues );
@@ -729,30 +729,30 @@ void X11SalGraphics::drawMaskedBitmap( const SalTwoRect* pPosAry,
pPosAry->mnDestWidth, pPosAry->mnDestHeight,
0, 0 );
DBG_TESTTRANS( aBG );
-
+
// #105055# Disable XOR temporarily
BOOL bOldXORMode( bXORMode_ );
bXORMode_ = FALSE;
-
+
// copy pixmap #2 (result) to background
XCopyArea( pXDisp, aBG, aDrawable, GetCopyGC(),
0, 0,
pPosAry->mnDestWidth, pPosAry->mnDestHeight,
pPosAry->mnDestX, pPosAry->mnDestY );
-
+
DBG_TESTTRANS( aBG );
-
+
bXORMode_ = bOldXORMode;
-
+
XFreeGC( pXDisp, aTmpGC );
XFlush( pXDisp );
}
else
drawBitmap( pPosAry, rSalBitmap );
-
+
if( aFG )
XFreePixmap( pXDisp, aFG );
-
+
if( aBG )
XFreePixmap( pXDisp, aBG );
}
@@ -768,7 +768,7 @@ bool X11SalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
// horizontal mirroring not implemented yet
if( rTR.mnDestWidth < 0 )
return false;
-
+
// stretched conversion is not implemented yet
if( rTR.mnDestWidth != rTR.mnSrcWidth )
return false;
@@ -876,7 +876,7 @@ bool X11SalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
// set clipping
if( pClipRegion_ && !XEmptyRegion( pClipRegion_ ) )
rPeer.SetPictureClipRegion( aDstPic, pClipRegion_ );
-
+
// paint source * mask over destination picture
rPeer.CompositePicture( PictOpOver, aSrcPic, aAlphaPic, aDstPic,
rTR.mnSrcX, rTR.mnSrcY, 0, 0,
@@ -890,29 +890,29 @@ bool X11SalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-bool X11SalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
+bool X11SalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
long nHeight, sal_uInt8 nTransparency )
{
if( ! m_pFrame && ! m_pVDev )
return false;
-
+
if( bPenGC_ || !bBrushGC_ || bXORMode_ )
return false; // can only perform solid fills without XOR.
-
+
if( m_pVDev && m_pVDev->GetDepth() < 8 )
return false;
XRenderPeer& rPeer = XRenderPeer::GetInstance();
if( rPeer.GetVersion() < 0x02 ) // TODO: replace with better test
return false;
-
+
Picture aDstPic = GetXRenderPicture();
if( !aDstPic )
return false;
const double fTransparency = (100 - nTransparency) * (1.0/100);
const XRenderColor aRenderColor = GetXRenderColor( nBrushColor_ , fTransparency);
-
+
rPeer.FillRectangle( PictOpOver,
aDstPic,
&aRenderColor,
@@ -936,30 +936,30 @@ void X11SalGraphics::drawMask( const SalTwoRect* pPosAry,
SalColor nMaskColor )
{
const SalDisplay* pSalDisp = GetDisplay();
- Display* pXDisp = pSalDisp->GetDisplay();
+ Display* pXDisp = pSalDisp->GetDisplay();
Drawable aDrawable( GetDrawable() );
Pixmap aStipple( XCreatePixmap( pXDisp, aDrawable,
pPosAry->mnDestWidth,
pPosAry->mnDestHeight, 1 ) );
-
+
if( aStipple )
{
- SalTwoRect aTwoRect( *pPosAry ); aTwoRect.mnDestX = aTwoRect.mnDestY = 0;
- GC aTmpGC;
- XGCValues aValues;
-
+ SalTwoRect aTwoRect( *pPosAry ); aTwoRect.mnDestX = aTwoRect.mnDestY = 0;
+ GC aTmpGC;
+ XGCValues aValues;
+
// create a stipple bitmap first (set bits are changed to unset bits and vice versa)
aValues.function = GXcopyInverted;
aValues.foreground = 1, aValues.background = 0;
aTmpGC = XCreateGC( pXDisp, aStipple, GCFunction | GCForeground | GCBackground, &aValues );
static_cast<const X11SalBitmap&>(rSalBitmap).ImplDraw( aStipple, m_nScreen, 1, aTwoRect, aTmpGC );
-
+
XFreeGC( pXDisp, aTmpGC );
-
+
// Set stipple and draw rectangle
- GC aStippleGC( GetStippleGC() );
- int nX = pPosAry->mnDestX, nY = pPosAry->mnDestY;
-
+ GC aStippleGC( GetStippleGC() );
+ int nX = pPosAry->mnDestX, nY = pPosAry->mnDestY;
+
XSetStipple( pXDisp, aStippleGC, aStipple );
XSetTSOrigin( pXDisp, aStippleGC, nX, nY );
XSetForeground( pXDisp, aStippleGC, GetPixel( nMaskColor ) );
@@ -978,7 +978,7 @@ SalBitmap *X11SalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
{
if( bPrinter_ && !bVirDev_ )
return NULL;
-
+
bool bFakeWindowBG = false;
// normalize
@@ -994,9 +994,9 @@ SalBitmap *X11SalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
}
if( bWindow_ && !bVirDev_ )
- {
+ {
XWindowAttributes aAttrib;
-
+
XGetWindowAttributes( GetXDisplay(), GetDrawable(), &aAttrib );
if( aAttrib.map_state != IsViewable )
bFakeWindowBG = true;
@@ -1019,7 +1019,7 @@ SalBitmap *X11SalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
nDX = aAttrib.width - nX;
if( nY + nDY > aAttrib.height )
nDY = aAttrib.height - nY;
-
+
// inside ?
if( nDX <= 0 || nDY <= 0 )
{
@@ -1029,13 +1029,13 @@ SalBitmap *X11SalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
}
}
}
-
- X11SalBitmap* pSalBitmap = new X11SalBitmap;
- USHORT nBitCount = GetBitCount();
-
+
+ X11SalBitmap* pSalBitmap = new X11SalBitmap;
+ USHORT nBitCount = GetBitCount();
+
if( &GetDisplay()->GetColormap( m_nScreen ) != &GetColormap() )
nBitCount = 1;
-
+
if( ! bFakeWindowBG )
pSalBitmap->ImplCreateFromDrawable( GetDrawable(), m_nScreen, nBitCount, nX, nY, nDX, nDY );
else
@@ -1050,7 +1050,7 @@ SalColor X11SalGraphics::getPixel( long nX, long nY )
if( bWindow_ && !bVirDev_ )
{
XWindowAttributes aAttrib;
-
+
XGetWindowAttributes( GetXDisplay(), GetDrawable(), &aAttrib );
if( aAttrib.map_state != IsViewable )
{
@@ -1058,7 +1058,7 @@ SalColor X11SalGraphics::getPixel( long nX, long nY )
return 0;
}
}
-
+
XImage *pXImage = XGetImage( GetXDisplay(),
GetDrawable(),
nX, nY,
@@ -1070,21 +1070,21 @@ SalColor X11SalGraphics::getPixel( long nX, long nY )
stderr0( "X11SalGraphics::GetPixel !XGetImage()\n" );
return 0;
}
-
+
XColor aXColor;
-
+
aXColor.pixel = XGetPixel( pXImage, 0, 0 );
XDestroyImage( pXImage );
-
+
return GetColormap().GetColor( aXColor.pixel );
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-void X11SalGraphics::invert( long nX,
- long nY,
- long nDX,
- long nDY,
- SalInvert nFlags )
+void X11SalGraphics::invert( long nX,
+ long nY,
+ long nDX,
+ long nDY,
+ SalInvert nFlags )
{
GC pGC;
if( SAL_INVERT_50 & nFlags )
@@ -1117,10 +1117,10 @@ bool X11SalGraphics::supportsOperation( OutDevSupportType eType ) const
{
XRenderPeer& rPeer = XRenderPeer::GetInstance();
if( rPeer.GetVersion() >= 0x02 )
- {
+ {
const SalDisplay* pSalDisp = GetDisplay();
const SalVisual& rSalVis = pSalDisp->GetVisual( m_nScreen );
-
+
Visual* pDstXVisual = rSalVis.GetVisual();
XRenderPictFormat* pDstVisFmt = rPeer.FindVisualFormat( pDstXVisual );
if( pDstVisFmt )
diff --git a/vcl/unx/source/gdi/salgdi3.cxx b/vcl/unx/source/gdi/salgdi3.cxx
index aaaec1222868..767c91d8ecb3 100644
--- a/vcl/unx/source/gdi/salgdi3.cxx
+++ b/vcl/unx/source/gdi/salgdi3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -135,10 +135,10 @@ class FontLookup
private:
- rtl::OString maName;
- FontWeight mnWeight;
- FontItalic mnItalic;
- sal_Bool mbDisplay;
+ rtl::OString maName;
+ FontWeight mnWeight;
+ FontItalic mnItalic;
+ sal_Bool mbDisplay;
public:
@@ -154,18 +154,18 @@ class FontLookup
~FontLookup ()
{}
- static void BuildSet (fl_hashset& rSet);
- static bool InSet (const fl_hashset& rSet, const Xlfd& rXfld);
- bool InSet (const fl_hashset& rSet) const;
+ static void BuildSet (fl_hashset& rSet);
+ static bool InSet (const fl_hashset& rSet, const Xlfd& rXfld);
+ bool InSet (const fl_hashset& rSet) const;
- bool operator== (const FontLookup &rRef) const
+ bool operator== (const FontLookup &rRef) const
{
return (abs(mnWeight - rRef.mnWeight) < 2)
&& (mnItalic == rRef.mnItalic)
&& (maName == rRef.maName)
&& (mbDisplay== rRef.mbDisplay);
}
- FontLookup& operator= (const FontLookup &rRef)
+ FontLookup& operator= (const FontLookup &rRef)
{
mnWeight = rRef.mnWeight;
mnItalic = rRef.mnItalic;
@@ -174,7 +174,7 @@ class FontLookup
return *this;
}
- size_t Hash() const
+ size_t Hash() const
{
return maName.hashCode ();
}
@@ -234,14 +234,14 @@ FontLookup::FontLookup ( ::std::list< psp::fontID >::iterator& it,
FontLookup::FontLookup (const Xlfd& rFont)
{
AttributeProvider* pFactory = rFont.mpFactory;
- Attribute* pAttr;
+ Attribute* pAttr;
pAttr = pFactory->RetrieveSlant (rFont.mnSlant);
mnItalic = (FontItalic)pAttr->GetValue();
pAttr = pFactory->RetrieveWeight (rFont.mnWeight);
mnWeight = (FontWeight)pAttr->GetValue();
pAttr = pFactory->RetrieveFamily (rFont.mnFamily);
- maName = pAttr->GetKey();
+ maName = pAttr->GetKey();
if (mnItalic == ITALIC_OBLIQUE)
mnItalic = ITALIC_NORMAL;
@@ -340,7 +340,7 @@ SalDisplay::GetXlfdList() const
//
BitmapXlfdStorage aBitmapList;
- ScalableXlfd *pScalableFont = NULL;
+ ScalableXlfd *pScalableFont = NULL;
int nFrom = 0;
for ( i = 0; i < nXlfdCount; i++ )
@@ -351,7 +351,7 @@ SalDisplay::GetXlfdList() const
| XLFD_FEATURE_OL_CURSOR) )
continue;
// exclude fonts with unknown encoding
- if ( pXlfdList[i].GetEncoding() == RTL_TEXTENCODING_DONTKNOW )
+ if ( pXlfdList[i].GetEncoding() == RTL_TEXTENCODING_DONTKNOW )
continue;
// exclude "interface system" and "interface user"
if (pAttr->HasFeature( XLFD_FEATURE_APPLICATION_FONT ) )
@@ -546,10 +546,10 @@ X11SalGraphics::SelectFont()
if( !pFontGC_ )
{
XGCValues values;
- values.subwindow_mode = ClipByChildren;
- values.fill_rule = EvenOddRule; // Pict import/ Gradient
- values.graphics_exposures = False;
- values.foreground = nTextPixel_;
+ values.subwindow_mode = ClipByChildren;
+ values.fill_rule = EvenOddRule; // Pict import/ Gradient
+ values.graphics_exposures = False;
+ values.foreground = nTextPixel_;
#ifdef _USE_PRINT_EXTENSION_
values.background = xColormap_->GetWhitePixel();
pFontGC_ = XCreateGC( pDisplay, hDrawable_,
@@ -620,7 +620,7 @@ bool X11SalGraphics::setFont( const ImplFontSelectData *pEntry, int nFallbackLev
{
const ImplX11FontData* pRequestedFont = static_cast<const ImplX11FontData*>( pEntry->mpFontData );
const ExtendedXlfd& rX11Font = pRequestedFont->GetExtendedXlfd();
-
+
Size aReqSize( pEntry->mnWidth, pEntry->mnHeight );
mXFont[ nFallbackLevel ] = GetDisplay()->GetFont( &rX11Font, aReqSize, bFontVertical_ );
bFontGC_ = FALSE;
@@ -641,7 +641,7 @@ bool X11SalGraphics::setFont( const ImplFontSelectData *pEntry, int nFallbackLev
// register to use the font
mpServerFont[ nFallbackLevel ] = pServerFont;
- // apply font specific-hint settings if needed
+ // apply font specific-hint settings if needed
// TODO: also disable it for reference devices
if( !bPrinter_ )
{
@@ -758,7 +758,7 @@ class CairoWrapper
{
private:
oslModule mpCairoLib;
-
+
cairo_surface_t* (*mp_xlib_surface_create_with_xrender_format)(Display *, Drawable , Screen *, XRenderPictFormat *, int , int );
void (*mp_surface_destroy)(cairo_surface_t *);
cairo_t* (*mp_create)(cairo_surface_t *);
@@ -791,7 +791,7 @@ public:
cairo_t* create(cairo_surface_t *surface) { return (*mp_create)(surface); }
void destroy(cairo_t *cr) { (*mp_destroy)(cr); }
void clip(cairo_t *cr) { (*mp_clip)(cr); }
- void rectangle(cairo_t *cr, double x, double y, double width, double height)
+ void rectangle(cairo_t *cr, double x, double y, double width, double height)
{ (*mp_rectangle)(cr, x, y, width, height); }
cairo_font_face_t* ft_font_face_create_for_ft_face(FT_Face face, int load_flags)
{ return (*mp_ft_font_face_create_for_ft_face)(face, load_flags); }
@@ -832,7 +832,7 @@ CairoWrapper::CairoWrapper()
static const char* pDisableCairoText = getenv( "SAL_DISABLE_CAIROTEXT" );
if( pDisableCairoText && (pDisableCairoText[0] != '0') )
return;
-
+
int nDummy;
if( !XQueryExtension( GetX11SalData()->GetDisplay()->GetDisplay(), "RENDER", &nDummy, &nDummy, &nDummy ) )
return;
@@ -841,7 +841,7 @@ CairoWrapper::CairoWrapper()
OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( "libcairo.2.dylib" ));
#else
OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( "libcairo.so.2" ));
-#endif
+#endif
mpCairoLib = osl_loadModule( aLibName.pData, SAL_LOADMODULE_DEFAULT );
if( !mpCairoLib )
return;
@@ -854,11 +854,11 @@ CairoWrapper::CairoWrapper()
fprintf( stderr, "CAIRO version=%d\n", nVersion );
#endif
- mp_xlib_surface_create_with_xrender_format = (cairo_surface_t* (*)(Display *, Drawable , Screen *, XRenderPictFormat *, int , int ))
+ mp_xlib_surface_create_with_xrender_format = (cairo_surface_t* (*)(Display *, Drawable , Screen *, XRenderPictFormat *, int , int ))
osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_xlib_surface_create_with_xrender_format" );
- mp_surface_destroy = (void(*)(cairo_surface_t*))
+ mp_surface_destroy = (void(*)(cairo_surface_t*))
osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_surface_destroy" );
- mp_create = (cairo_t*(*)(cairo_surface_t*))
+ mp_create = (cairo_t*(*)(cairo_surface_t*))
osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_create" );
mp_destroy = (void(*)(cairo_t*))
osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_destroy" );
@@ -889,7 +889,7 @@ CairoWrapper::CairoWrapper()
mp_ft_font_options_substitute = (void (*)(const void *, void *))
osl_getAsciiFunctionSymbol( mpCairoLib, "cairo_ft_font_options_substitute" );
- if( !(
+ if( !(
mp_xlib_surface_create_with_xrender_format &&
mp_surface_destroy &&
mp_create &&
@@ -969,7 +969,7 @@ void X11SalGraphics::DrawCairoAAFontString( const ServerFontLayout& rLayout )
{
std::vector<cairo_glyph_t> cairo_glyphs;
cairo_glyphs.reserve( 256 );
-
+
Point aPos;
sal_GlyphId aGlyphId;
for( int nStart = 0; rLayout.GetNextGlyphs( 1, &aGlyphId, aPos, nStart ); )
@@ -1013,8 +1013,8 @@ void X11SalGraphics::DrawCairoAAFontString( const ServerFontLayout& rLayout )
{
for (long i = 0; i < pClipRegion_->numRects; ++i)
{
- rCairo.rectangle(cr,
- pClipRegion_->rects[i].x1,
+ rCairo.rectangle(cr,
+ pClipRegion_->rects[i].x1,
pClipRegion_->rects[i].y1,
pClipRegion_->rects[i].x2 - pClipRegion_->rects[i].x1,
pClipRegion_->rects[i].y2 - pClipRegion_->rects[i].y1);
@@ -1022,8 +1022,8 @@ void X11SalGraphics::DrawCairoAAFontString( const ServerFontLayout& rLayout )
rCairo.clip(cr);
}
- rCairo.set_source_rgb(cr,
- SALCOLOR_RED(nTextColor_)/255.0,
+ rCairo.set_source_rgb(cr,
+ SALCOLOR_RED(nTextColor_)/255.0,
SALCOLOR_GREEN(nTextColor_)/255.0,
SALCOLOR_BLUE(nTextColor_)/255.0);
@@ -1099,7 +1099,7 @@ void X11SalGraphics::DrawServerAAFontString( const ServerFontLayout& rLayout )
// set font foreground color and opacity
XRenderColor aRenderColor = GetXRenderColor( nTextColor_ );
rRenderPeer.FillRectangle( PictOpSrc, rEntry.m_aPicture, &aRenderColor, 0, 0, 1, 1 );
-
+
// set clipping
// TODO: move into GetXRenderPicture()?
if( pClipRegion_ && !XEmptyRegion( pClipRegion_ ) )
@@ -1464,7 +1464,7 @@ void X11SalGraphics::DrawStringUCS2MB( ExtendedFontStruct& rFont,
int nItem = 0;
DBG_ASSERT( nLength<=1, "#i49902# DrawStringUCS2MB with nLength>1 => problems with XOrg6.8.[0123]");
-
+
for( int nChar = 0; nChar < nLength; ++nChar )
{
rtl_TextEncoding nEnc;
@@ -1520,7 +1520,7 @@ USHORT X11SalGraphics::SetFont( ImplFontSelectData *pEntry, int nFallbackLevel )
void
X11SalGraphics::SetTextColor( SalColor nSalColor )
{
- if( nTextColor_ != nSalColor )
+ if( nTextColor_ != nSalColor )
{
nTextColor_ = nSalColor;
nTextPixel_ = GetPixel( nSalColor );
@@ -1622,7 +1622,7 @@ void X11SalGraphics::GetDevFontList( ImplDevFontList *pList )
// register platform specific font substitutions if available
if( rMgr.hasFontconfig() )
RegisterFontSubstitutors( pList );
-
+
ImplGetSVData()->maGDIData.mbNativeFontConfig = rMgr.hasFontconfig();
}
@@ -1873,7 +1873,7 @@ SystemFontData X11SalGraphics::GetSysFontData( int nFallbacklevel ) const
if (nFallbacklevel >= MAX_FALLBACK) nFallbacklevel = MAX_FALLBACK - 1;
if (nFallbacklevel < 0 ) nFallbacklevel = 0;
-
+
if (mpServerFont[nFallbacklevel] != NULL)
{
ServerFont* rFont = mpServerFont[nFallbacklevel];
@@ -1884,7 +1884,7 @@ SystemFontData X11SalGraphics::GetSysFontData( int nFallbacklevel ) const
aSysFontData.bAntialias = rFont->GetAntialiasAdvice();
aSysFontData.bVerticalCharacterType = rFont->GetFontSelData().mbVertical;
}
-
+
return aSysFontData;
}
@@ -2012,7 +2012,7 @@ void RegisterFontSubstitutors( ImplDevFontList* pList )
if( pEnvStr )
{
if( (*pEnvStr >= '0') && (*pEnvStr <= '9') )
- nDisableBits = (*pEnvStr - '0');
+ nDisableBits = (*pEnvStr - '0');
else
nDisableBits = ~0U; // no specific bits set: disable all
}
@@ -2058,16 +2058,16 @@ static ImplFontSelectData GetFcSubstitute(const ImplFontSelectData &rFontSelData
{
switch( rFontSelData.GetWeight() )
{
- case WEIGHT_THIN: eWeight = psp::weight::Thin; break;
- case WEIGHT_ULTRALIGHT: eWeight = psp::weight::UltraLight; break;
- case WEIGHT_LIGHT: eWeight = psp::weight::Light; break;
- case WEIGHT_SEMILIGHT: eWeight = psp::weight::SemiLight; break;
- case WEIGHT_NORMAL: eWeight = psp::weight::Normal; break;
- case WEIGHT_MEDIUM: eWeight = psp::weight::Medium; break;
- case WEIGHT_SEMIBOLD: eWeight = psp::weight::SemiBold; break;
- case WEIGHT_BOLD: eWeight = psp::weight::Bold; break;
- case WEIGHT_ULTRABOLD: eWeight = psp::weight::UltraBold; break;
- case WEIGHT_BLACK: eWeight = psp::weight::Black; break;
+ case WEIGHT_THIN: eWeight = psp::weight::Thin; break;
+ case WEIGHT_ULTRALIGHT: eWeight = psp::weight::UltraLight; break;
+ case WEIGHT_LIGHT: eWeight = psp::weight::Light; break;
+ case WEIGHT_SEMILIGHT: eWeight = psp::weight::SemiLight; break;
+ case WEIGHT_NORMAL: eWeight = psp::weight::Normal; break;
+ case WEIGHT_MEDIUM: eWeight = psp::weight::Medium; break;
+ case WEIGHT_SEMIBOLD: eWeight = psp::weight::SemiBold; break;
+ case WEIGHT_BOLD: eWeight = psp::weight::Bold; break;
+ case WEIGHT_ULTRABOLD: eWeight = psp::weight::UltraBold; break;
+ case WEIGHT_BLACK: eWeight = psp::weight::Black; break;
default:
break;
}
@@ -2078,15 +2078,15 @@ static ImplFontSelectData GetFcSubstitute(const ImplFontSelectData &rFontSelData
{
switch( rFontSelData.GetWidthType() )
{
- case WIDTH_ULTRA_CONDENSED: eWidth = psp::width::UltraCondensed; break;
+ case WIDTH_ULTRA_CONDENSED: eWidth = psp::width::UltraCondensed; break;
case WIDTH_EXTRA_CONDENSED: eWidth = psp::width::ExtraCondensed; break;
- case WIDTH_CONDENSED: eWidth = psp::width::Condensed; break;
- case WIDTH_SEMI_CONDENSED: eWidth = psp::width::SemiCondensed; break;
- case WIDTH_NORMAL: eWidth = psp::width::Normal; break;
- case WIDTH_SEMI_EXPANDED: eWidth = psp::width::SemiExpanded; break;
- case WIDTH_EXPANDED: eWidth = psp::width::Expanded; break;
- case WIDTH_EXTRA_EXPANDED: eWidth = psp::width::ExtraExpanded; break;
- case WIDTH_ULTRA_EXPANDED: eWidth = psp::width::UltraExpanded; break;
+ case WIDTH_CONDENSED: eWidth = psp::width::Condensed; break;
+ case WIDTH_SEMI_CONDENSED: eWidth = psp::width::SemiCondensed; break;
+ case WIDTH_NORMAL: eWidth = psp::width::Normal; break;
+ case WIDTH_SEMI_EXPANDED: eWidth = psp::width::SemiExpanded; break;
+ case WIDTH_EXPANDED: eWidth = psp::width::Expanded; break;
+ case WIDTH_EXTRA_EXPANDED: eWidth = psp::width::ExtraExpanded; break;
+ case WIDTH_ULTRA_EXPANDED: eWidth = psp::width::UltraExpanded; break;
default:
break;
}
diff --git a/vcl/unx/source/gdi/salprnpsp.cxx b/vcl/unx/source/gdi/salprnpsp.cxx
index 136bb753d219..f1fcabb9ec23 100644
--- a/vcl/unx/source/gdi/salprnpsp.cxx
+++ b/vcl/unx/source/gdi/salprnpsp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,12 +66,12 @@ using namespace psp;
using namespace rtl;
/*
- * static helpers
+ * static helpers
*/
#include "rtsname.hxx"
-static oslModule driverLib = NULL;
+static oslModule driverLib = NULL;
extern "C"
{
typedef int(*setupFunction)(PrinterInfo&);
@@ -104,16 +104,16 @@ static void getPaLib()
if( ! driverLib )
{
OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( _XSALSET_LIBNAME ) );
- driverLib = osl_loadModuleRelative( (oslGenericFunction)getPaLib, aLibName.pData, SAL_LOADMODULE_DEFAULT );
+ driverLib = osl_loadModuleRelative( (oslGenericFunction)getPaLib, aLibName.pData, SAL_LOADMODULE_DEFAULT );
if ( !driverLib )
{
return;
}
-
- pSetupFunction = (setupFunction)osl_getAsciiFunctionSymbol( driverLib, "Sal_SetupPrinterDriver" );
+
+ pSetupFunction = (setupFunction)osl_getAsciiFunctionSymbol( driverLib, "Sal_SetupPrinterDriver" );
if ( !pSetupFunction )
fprintf( stderr, "could not resolve Sal_SetupPrinterDriver\n" );
-
+
pFaxNrFunction = (faxFunction)osl_getAsciiFunctionSymbol( driverLib, "Sal_queryFaxNumber" );
if ( !pFaxNrFunction )
fprintf( stderr, "could not resolve Sal_queryFaxNumber\n" );
@@ -126,31 +126,31 @@ inline int TenMuToPt( int nUnits ) { return (int)((((double)nUnits)/35.27777778)
static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData )
{
- pJobSetup->meOrientation = (Orientation)(rData.m_eOrientation == orientation::Landscape ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT);
+ pJobSetup->meOrientation = (Orientation)(rData.m_eOrientation == orientation::Landscape ? ORIENTATION_LANDSCAPE : ORIENTATION_PORTRAIT);
// copy page size
String aPaper;
int width, height;
rData.m_aContext.getPageSize( aPaper, width, height );
- pJobSetup->mePaperFormat = PaperInfo::fromPSName(OUStringToOString( aPaper, RTL_TEXTENCODING_ISO_8859_1 ));
+ pJobSetup->mePaperFormat = PaperInfo::fromPSName(OUStringToOString( aPaper, RTL_TEXTENCODING_ISO_8859_1 ));
- pJobSetup->mnPaperWidth = 0;
- pJobSetup->mnPaperHeight = 0;
+ pJobSetup->mnPaperWidth = 0;
+ pJobSetup->mnPaperHeight = 0;
if( pJobSetup->mePaperFormat == PAPER_USER )
{
// transform to 100dth mm
- width = PtTo10Mu( width );
- height = PtTo10Mu( height );
+ width = PtTo10Mu( width );
+ height = PtTo10Mu( height );
if( rData.m_eOrientation == psp::orientation::Portrait )
{
- pJobSetup->mnPaperWidth = width;
+ pJobSetup->mnPaperWidth = width;
pJobSetup->mnPaperHeight= height;
}
else
{
- pJobSetup->mnPaperWidth = height;
+ pJobSetup->mnPaperWidth = height;
pJobSetup->mnPaperHeight= width;
}
}
@@ -161,9 +161,9 @@ static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData )
pJobSetup->mnPaperBin = 0;
if( rData.m_pParser )
- pKey = rData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) );
+ pKey = rData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) );
if( pKey )
- pValue = rData.m_aContext.getValue( pKey );
+ pValue = rData.m_aContext.getValue( pKey );
if( pKey && pValue )
{
for( pJobSetup->mnPaperBin = 0;
@@ -174,11 +174,11 @@ static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData )
if( pJobSetup->mnPaperBin >= pKey->countValues() )
pJobSetup->mnPaperBin = 0;
}
-
+
// copy duplex
pKey = NULL;
pValue = NULL;
-
+
pJobSetup->meDuplexMode = DUPLEX_UNKNOWN;
if( rData.m_pParser )
pKey = rData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "Duplex" ) ) );
@@ -369,13 +369,13 @@ static bool createPdf( const String& rToFile, const String& rFromFile, const Str
}
/*
- * SalInstance
+ * SalInstance
*/
// -----------------------------------------------------------------------
-SalInfoPrinter* X11SalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
- ImplJobSetup* pJobSetup )
+SalInfoPrinter* X11SalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
+ ImplJobSetup* pJobSetup )
{
mbPrinterInit = true;
// create and initialize SalInfoPrinter
@@ -391,16 +391,16 @@ SalInfoPrinter* X11SalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueIn
if( pJobSetup->mpDriverData )
JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aInfo );
- pJobSetup->mnSystem = JOBSETUP_SYSTEM_UNIX;
- pJobSetup->maPrinterName = pQueueInfo->maPrinterName;
- pJobSetup->maDriver = aInfo.m_aDriverName;
+ pJobSetup->mnSystem = JOBSETUP_SYSTEM_UNIX;
+ pJobSetup->maPrinterName = pQueueInfo->maPrinterName;
+ pJobSetup->maDriver = aInfo.m_aDriverName;
copyJobDataToJobSetup( pJobSetup, aInfo );
-
+
// set/clear backwards compatibility flag
bool bStrictSO52Compatibility = false;
std::hash_map<rtl::OUString, rtl::OUString, rtl::OUStringHash >::const_iterator compat_it =
pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" ) ) );
-
+
if( compat_it != pJobSetup->maValueMap.end() )
{
if( compat_it->second.equalsIgnoreAsciiCaseAscii( "true" ) )
@@ -459,11 +459,11 @@ void X11SalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
const PrinterInfo& rInfo( rManager.getPrinterInfo( *it ) );
// Neuen Eintrag anlegen
SalPrinterQueueInfo* pInfo = new SalPrinterQueueInfo;
- pInfo->maPrinterName = *it;
- pInfo->maDriver = rInfo.m_aDriverName;
- pInfo->maLocation = rInfo.m_aLocation;
- pInfo->maComment = rInfo.m_aComment;
- pInfo->mpSysData = NULL;
+ pInfo->maPrinterName = *it;
+ pInfo->maDriver = rInfo.m_aDriverName;
+ pInfo->maLocation = rInfo.m_aLocation;
+ pInfo->maComment = rInfo.m_aComment;
+ pInfo->mpSysData = NULL;
sal_Int32 nIndex = 0;
while( nIndex != -1 )
@@ -604,7 +604,7 @@ BOOL PspSalInfoPrinter::Setup( SalFrame* pFrame, ImplJobSetup* pJobSetup )
SetData( ~0, pJobSetup );
JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aInfo );
}
-
+
if( pSetupFunction( aInfo ) )
{
rtl_freeMemory( pJobSetup->mpDriverData );
@@ -613,8 +613,8 @@ BOOL PspSalInfoPrinter::Setup( SalFrame* pFrame, ImplJobSetup* pJobSetup )
int nBytes;
void* pBuffer = NULL;
aInfo.getStreamBuffer( pBuffer, nBytes );
- pJobSetup->mnDriverDataLen = nBytes;
- pJobSetup->mpDriverData = (BYTE*)pBuffer;
+ pJobSetup->mnDriverDataLen = nBytes;
+ pJobSetup->mpDriverData = (BYTE*)pBuffer;
// copy everything to job setup
copyJobDataToJobSetup( pJobSetup, aInfo );
@@ -649,7 +649,7 @@ BOOL PspSalInfoPrinter::SetPrinterData( ImplJobSetup* pJobSetup )
return SetData( ~0, pJobSetup );
copyJobDataToJobSetup( pJobSetup, m_aJobData );
-
+
return TRUE;
}
@@ -677,13 +677,13 @@ BOOL PspSalInfoPrinter::SetData(
int nWidth, nHeight;
if( pJobSetup->meOrientation == ORIENTATION_PORTRAIT )
{
- nWidth = pJobSetup->mnPaperWidth;
- nHeight = pJobSetup->mnPaperHeight;
+ nWidth = pJobSetup->mnPaperWidth;
+ nHeight = pJobSetup->mnPaperHeight;
}
else
{
- nWidth = pJobSetup->mnPaperHeight;
- nHeight = pJobSetup->mnPaperWidth;
+ nWidth = pJobSetup->mnPaperHeight;
+ nHeight = pJobSetup->mnPaperWidth;
}
String aPaper;
@@ -696,7 +696,7 @@ BOOL PspSalInfoPrinter::SetData(
pKey = aData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) );
pValue = pKey ? pKey->getValueCaseInsensitive( aPaper ) : NULL;
-
+
// some PPD files do not specify the standard paper names (e.g. C5 instead of EnvC5)
// try to find the correct paper anyway using the size
if( pKey && ! pValue && pJobSetup->mePaperFormat != PAPER_USER )
@@ -707,7 +707,7 @@ BOOL PspSalInfoPrinter::SetData(
TenMuToPt( aInfo.getHeight() ) );
pValue = pKey->getValueCaseInsensitive( aPaper );
}
-
+
if( ! ( pKey && pValue && aData.m_aContext.setValue( pKey, pValue, false ) == pValue ) )
return FALSE;
}
@@ -810,12 +810,12 @@ void PspSalInfoPrinter::GetPageInfo(
aData.m_pParser->getMargins( aPaper, top, bottom, right, left );
}
- rPageWidth = width * nDPI / 72;
- rPageHeight = height * nDPI / 72;
- rPageOffX = left * nDPI / 72;
- rPageOffY = top * nDPI / 72;
- rOutWidth = ( width - left - right ) * nDPI / 72;
- rOutHeight = ( height - top - bottom ) * nDPI / 72;
+ rPageWidth = width * nDPI / 72;
+ rPageHeight = height * nDPI / 72;
+ rPageOffX = left * nDPI / 72;
+ rPageOffY = top * nDPI / 72;
+ rOutWidth = ( width - left - right ) * nDPI / 72;
+ rOutHeight = ( height - top - bottom ) * nDPI / 72;
}
}
@@ -904,7 +904,7 @@ ULONG PspSalInfoPrinter::GetCapabilities( const ImplJobSetup* pJobSetup, USHORT
// =======================================================================
/*
- * SalPrinter
+ * SalPrinter
*/
PspSalPrinter::PspSalPrinter( SalInfoPrinter* pInfoPrinter )
@@ -946,11 +946,11 @@ BOOL PspSalPrinter::StartJob(
{
vcl_sal::PrinterUpdate::jobStarted();
- m_bFax = false;
- m_bPdf = false;
- m_aFileName = pFileName ? *pFileName : String();
- m_aTmpFile = String();
- m_nCopies = nCopies;
+ m_bFax = false;
+ m_bPdf = false;
+ m_aFileName = pFileName ? *pFileName : String();
+ m_aTmpFile = String();
+ m_nCopies = nCopies;
m_bCollate = bCollate;
JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, m_aJobData );
@@ -1002,7 +1002,7 @@ BOOL PspSalPrinter::StartJob(
}
}
m_aPrinterGfx.Init( m_aJobData );
-
+
// set/clear backwards compatibility flag
bool bStrictSO52Compatibility = false;
std::hash_map<rtl::OUString, rtl::OUString, rtl::OUStringHash >::const_iterator compat_it =
@@ -1132,14 +1132,14 @@ void vcl_sal::PrinterUpdate::update()
{
if( Application::GetSettings().GetMiscSettings().GetDisablePrinting() )
return;
-
+
if( ! static_cast< X11SalInstance* >(GetSalData()->m_pInstance)->isPrinterInit() )
{
// #i45389# start background printer detection
psp::PrinterInfoManager::get();
return;
}
-
+
if( nActiveJobs < 1 )
doUpdate();
else if( ! pPrinterUpdateTimer )
diff --git a/vcl/unx/source/gdi/salvd.cxx b/vcl/unx/source/gdi/salvd.cxx
index ce8421f14f49..dc8b4b103eaa 100644
--- a/vcl/unx/source/gdi/salvd.cxx
+++ b/vcl/unx/source/gdi/salvd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -100,7 +100,7 @@ void X11SalGraphics::Init( X11SalVirtualDevice *pDevice, SalColormap* pColormap,
SalDisplay *pDisplay = pDevice->GetDisplay();
m_nScreen = pDevice->GetScreenNumber();
-
+
int nVisualDepth = pDisplay->GetColormap( m_nScreen ).GetVisual().GetDepth();
int nDeviceDepth = pDevice->GetDepth();
@@ -113,18 +113,18 @@ void X11SalGraphics::Init( X11SalVirtualDevice *pDevice, SalColormap* pColormap,
else
if( nDeviceDepth == nVisualDepth )
m_pColormap = &pDisplay->GetColormap( m_nScreen );
- else
+ else
if( nDeviceDepth == 1 )
m_pColormap = m_pDeleteColormap = new SalColormap();
-
+
if (m_pDeleteColormap != pOrigDeleteColormap)
delete pOrigDeleteColormap;
const Drawable aVdevDrawable = pDevice->GetDrawable();
SetDrawable( aVdevDrawable, m_nScreen );
- m_pVDev = pDevice;
- m_pFrame = NULL;
+ m_pVDev = pDevice;
+ m_pFrame = NULL;
bWindow_ = pDisplay->IsDisplay();
bVirDev_ = TRUE;
@@ -143,7 +143,7 @@ BOOL X11SalVirtualDevice::Init( SalDisplay *pDisplay,
bool bDeleteColormap = false;
pDisplay_ = pDisplay;
- pGraphics_ = new X11SalGraphics();
+ pGraphics_ = new X11SalGraphics();
m_nScreen = nScreen;
if( pXRenderFormat ) {
pGraphics_->SetXRenderFormat( pXRenderFormat );
@@ -221,7 +221,7 @@ BOOL X11SalVirtualDevice::SetSize( long nDX, long nDY )
{
if( bExternPixmap_ )
return FALSE;
-
+
// #144688#
// the X protocol request CreatePixmap puts an upper bound
// of 16 bit to the size. Beyond that there may be implementation
@@ -261,7 +261,7 @@ BOOL X11SalVirtualDevice::SetSize( long nDX, long nDY )
if( pGraphics_ )
InitGraphics( this );
-
+
return TRUE;
}
diff --git a/vcl/unx/source/gdi/xfont.cxx b/vcl/unx/source/gdi/xfont.cxx
index e383e779aad8..a999eaf7213b 100644
--- a/vcl/unx/source/gdi/xfont.cxx
+++ b/vcl/unx/source/gdi/xfont.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,13 +47,13 @@
#include <algorithm>
-#define VCLASS_ROTATE 0
-#define VCLASS_ROTATE_REVERSE 1
-#define VCLASS_TRANSFORM1 2
-#define VCLASS_TRANSFORM2 3
-#define VCLASS_CJK 4
-#define VCLASS_DONTKNOW 5
-#define VCLASS_FONT_NUM 2 // Other than rotate and rotate_reverse,
+#define VCLASS_ROTATE 0
+#define VCLASS_ROTATE_REVERSE 1
+#define VCLASS_TRANSFORM1 2
+#define VCLASS_TRANSFORM2 3
+#define VCLASS_CJK 4
+#define VCLASS_DONTKNOW 5
+#define VCLASS_FONT_NUM 2 // Other than rotate and rotate_reverse,
// don't have spacial font
// Select the max size of a font, which is token for real
@@ -239,24 +239,24 @@ ExtendedFontStruct::GetFontBoundingBox( XCharStruct *pCharStruct,
bool
ExtendedFontStruct::ToImplFontMetricData(ImplFontMetricData *pFontMetric)
{
- pFontMetric->mnOrientation = 0;
- pFontMetric->mnSlant = 0;
- pFontMetric->mbDevice = true;
- pFontMetric->mbScalableFont = mpXlfd->IsScalable();
- pFontMetric->mbKernableFont = false;
+ pFontMetric->mnOrientation = 0;
+ pFontMetric->mnSlant = 0;
+ pFontMetric->mbDevice = true;
+ pFontMetric->mbScalableFont = mpXlfd->IsScalable();
+ pFontMetric->mbKernableFont = false;
pFontMetric->mbSymbolFlag= mpXlfd->IsSymbolFont();
- pFontMetric->meFamily = mpXlfd->GetFamilyType();
+ pFontMetric->meFamily = mpXlfd->GetFamilyType();
pFontMetric->meWeight = mpXlfd->GetWeight();
- pFontMetric->mePitch = mpXlfd->GetPitch();
- pFontMetric->meItalic = mpXlfd->GetSlant();
+ pFontMetric->mePitch = mpXlfd->GetPitch();
+ pFontMetric->meItalic = mpXlfd->GetSlant();
int nAscent, nDescent;
XCharStruct aBoundingBox;
if ( GetFontBoundingBox(&aBoundingBox, &nAscent, &nDescent) )
{
- pFontMetric->mnWidth = aBoundingBox.width;
- pFontMetric->mnAscent = aBoundingBox.ascent;
- pFontMetric->mnDescent = aBoundingBox.descent;
+ pFontMetric->mnWidth = aBoundingBox.width;
+ pFontMetric->mnAscent = aBoundingBox.ascent;
+ pFontMetric->mnDescent = aBoundingBox.descent;
pFontMetric->mnIntLeading = std::max(0, aBoundingBox.ascent - nAscent
+ aBoundingBox.descent - nDescent );
pFontMetric->mnExtLeading = 0; // TODO!!!
@@ -550,7 +550,7 @@ ExtendedFontStruct::GetCharWidth16( sal_Unicode nFrom, sal_Unicode nTo,
nChar, mnDefaultWidth );
}
else
- if ( (pFont->max_bounds.width == pFont->min_bounds.width)
+ if ( (pFont->max_bounds.width == pFont->min_bounds.width)
|| (pFont->per_char == NULL) )
{
// fixed width font
diff --git a/vcl/unx/source/gdi/xlfd_attr.cxx b/vcl/unx/source/gdi/xlfd_attr.cxx
index eb6dc6372718..787832e5978c 100644
--- a/vcl/unx/source/gdi/xlfd_attr.cxx
+++ b/vcl/unx/source/gdi/xlfd_attr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -175,10 +175,10 @@ Attribute::TagFeature( unsigned short nFeature )
mnFeature |= (XLFD_FEATURE_INTERFACE_FONT | XLFD_FEATURE_MQ);
else
// japanese
- if ( (strcmp(mpName, "hg mincho l") == 0) /* Solaris: jisx0208 jisx0201 */
- || (strcmp(mpName, "heiseimin") == 0) /* Solaris: jisx0212 */
- || (strcmp(mpName, "minchol") == 0) /* TurboLinux */
- || (strcmp(mpName, "mincho") == 0)) /* Redhat 6.2 JP */
+ if ( (strcmp(mpName, "hg mincho l") == 0) /* Solaris: jisx0208 jisx0201 */
+ || (strcmp(mpName, "heiseimin") == 0) /* Solaris: jisx0212 */
+ || (strcmp(mpName, "minchol") == 0) /* TurboLinux */
+ || (strcmp(mpName, "mincho") == 0)) /* Redhat 6.2 JP */
{
mnFeature |= XLFD_FEATURE_INTERFACE_FONT;
}
@@ -191,7 +191,7 @@ Attribute::TagFeature( unsigned short nFeature )
}
else
// korean
- if ( (strcmp(mpName, "myeongjo") == 0)) /* Solaris */
+ if ( (strcmp(mpName, "myeongjo") == 0)) /* Solaris */
{
mnFeature |= XLFD_FEATURE_INTERFACE_FONT;
}
@@ -206,14 +206,14 @@ Attribute::TagFeature( unsigned short nFeature )
break;
case 'b':
- if ( (strcmp(mpName, "bold") == 0)
+ if ( (strcmp(mpName, "bold") == 0)
|| (strcmp(mpName, "bold italic") == 0)
|| (strcmp(mpName, "bold sans") == 0) )
mnFeature |= XLFD_FEATURE_REDUNDANTSTYLE;
break;
case 'd':
- if ( (strcmp(mpName, "demi") == 0)
+ if ( (strcmp(mpName, "demi") == 0)
|| (strcmp(mpName, "demi italic") == 0) )
mnFeature |= XLFD_FEATURE_REDUNDANTSTYLE;
break;
@@ -238,76 +238,76 @@ Attribute::TagFeature( unsigned short nFeature )
#define InitializeAttributeWith( p, a ) p, sizeof(p) - 1, a, 0, NULL, NULL
const Attribute pFamilyAttribute[] = {
- { InitializeAttributeWith( "arial", FAMILY_SWISS ) },
- { InitializeAttributeWith( "arioso", FAMILY_SCRIPT ) },
- { InitializeAttributeWith( "avant garde", FAMILY_SWISS ) },
- { InitializeAttributeWith( "avantgarde", FAMILY_SWISS ) },
- { InitializeAttributeWith( "bembo", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "bookman", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "conga", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "courier", FAMILY_MODERN ) },
- { InitializeAttributeWith( "curl", FAMILY_SCRIPT ) },
- { InitializeAttributeWith( "fixed", FAMILY_MODERN ) },
- { InitializeAttributeWith( "gill", FAMILY_SWISS ) },
- { InitializeAttributeWith( "helmet", FAMILY_MODERN ) },
- { InitializeAttributeWith( "helvetica", FAMILY_SWISS ) },
- { InitializeAttributeWith( "international", FAMILY_MODERN ) },
- { InitializeAttributeWith( "lucida", FAMILY_SWISS ) },
+ { InitializeAttributeWith( "arial", FAMILY_SWISS ) },
+ { InitializeAttributeWith( "arioso", FAMILY_SCRIPT ) },
+ { InitializeAttributeWith( "avant garde", FAMILY_SWISS ) },
+ { InitializeAttributeWith( "avantgarde", FAMILY_SWISS ) },
+ { InitializeAttributeWith( "bembo", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "bookman", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "conga", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "courier", FAMILY_MODERN ) },
+ { InitializeAttributeWith( "curl", FAMILY_SCRIPT ) },
+ { InitializeAttributeWith( "fixed", FAMILY_MODERN ) },
+ { InitializeAttributeWith( "gill", FAMILY_SWISS ) },
+ { InitializeAttributeWith( "helmet", FAMILY_MODERN ) },
+ { InitializeAttributeWith( "helvetica", FAMILY_SWISS ) },
+ { InitializeAttributeWith( "international", FAMILY_MODERN ) },
+ { InitializeAttributeWith( "lucida", FAMILY_SWISS ) },
{ InitializeAttributeWith( "new century schoolbook", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "palatino", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "roman", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "sans serif", FAMILY_SWISS ) },
- { InitializeAttributeWith( "sansserif", FAMILY_SWISS ) },
- { InitializeAttributeWith( "serf", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "serif", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "times", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "utopia", FAMILY_ROMAN ) },
- { InitializeAttributeWith( "zapf chancery", FAMILY_SCRIPT ) },
- { InitializeAttributeWith( "zapfchancery", FAMILY_SCRIPT ) }
+ { InitializeAttributeWith( "palatino", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "roman", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "sans serif", FAMILY_SWISS ) },
+ { InitializeAttributeWith( "sansserif", FAMILY_SWISS ) },
+ { InitializeAttributeWith( "serf", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "serif", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "times", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "utopia", FAMILY_ROMAN ) },
+ { InitializeAttributeWith( "zapf chancery", FAMILY_SCRIPT ) },
+ { InitializeAttributeWith( "zapfchancery", FAMILY_SCRIPT ) }
};
const Attribute pWeightAttribute[] = {
- { InitializeAttributeWith( "black", WEIGHT_BLACK ) },
- { InitializeAttributeWith( "bold", WEIGHT_BOLD ) },
- { InitializeAttributeWith( "book", WEIGHT_LIGHT ) },
- { InitializeAttributeWith( "demi", WEIGHT_SEMIBOLD ) },
- { InitializeAttributeWith( "demi bold", WEIGHT_SEMIBOLD ) },
- { InitializeAttributeWith( "demibold", WEIGHT_SEMIBOLD ) },
- { InitializeAttributeWith( "light", WEIGHT_LIGHT ) },
- { InitializeAttributeWith( "medium", WEIGHT_MEDIUM ) },
- { InitializeAttributeWith( "normal", WEIGHT_NORMAL ) },
- { InitializeAttributeWith( "regular", WEIGHT_NORMAL ) },
- { InitializeAttributeWith( "roman", WEIGHT_NORMAL ) },
- { InitializeAttributeWith( "semicondensed", WEIGHT_LIGHT ) },
- { InitializeAttributeWith( "ultrabold", WEIGHT_ULTRABOLD ) }
+ { InitializeAttributeWith( "black", WEIGHT_BLACK ) },
+ { InitializeAttributeWith( "bold", WEIGHT_BOLD ) },
+ { InitializeAttributeWith( "book", WEIGHT_LIGHT ) },
+ { InitializeAttributeWith( "demi", WEIGHT_SEMIBOLD ) },
+ { InitializeAttributeWith( "demi bold", WEIGHT_SEMIBOLD ) },
+ { InitializeAttributeWith( "demibold", WEIGHT_SEMIBOLD ) },
+ { InitializeAttributeWith( "light", WEIGHT_LIGHT ) },
+ { InitializeAttributeWith( "medium", WEIGHT_MEDIUM ) },
+ { InitializeAttributeWith( "normal", WEIGHT_NORMAL ) },
+ { InitializeAttributeWith( "regular", WEIGHT_NORMAL ) },
+ { InitializeAttributeWith( "roman", WEIGHT_NORMAL ) },
+ { InitializeAttributeWith( "semicondensed", WEIGHT_LIGHT ) },
+ { InitializeAttributeWith( "ultrabold", WEIGHT_ULTRABOLD ) }
};
const Attribute pSlantAttribute[] = {
- { InitializeAttributeWith( "i", ITALIC_NORMAL ) },
- { InitializeAttributeWith( "o", ITALIC_OBLIQUE ) },
- { InitializeAttributeWith( "r", ITALIC_NONE ) }
+ { InitializeAttributeWith( "i", ITALIC_NORMAL ) },
+ { InitializeAttributeWith( "o", ITALIC_OBLIQUE ) },
+ { InitializeAttributeWith( "r", ITALIC_NONE ) }
};
const Attribute pSetwidthAttribute[] = {
- { InitializeAttributeWith( "bold", WIDTH_SEMI_EXPANDED ) },
- { InitializeAttributeWith( "condensed", WIDTH_CONDENSED ) },
- { InitializeAttributeWith( "double wide", WIDTH_ULTRA_EXPANDED ) },
- { InitializeAttributeWith( "expanded", WIDTH_EXPANDED ) },
- { InitializeAttributeWith( "extracondensed", WIDTH_EXTRA_CONDENSED ) },
- { InitializeAttributeWith( "extraexpanded", WIDTH_EXTRA_EXPANDED ) },
- { InitializeAttributeWith( "medium", WIDTH_NORMAL ) },
- { InitializeAttributeWith( "narrow", WIDTH_CONDENSED ) },
- { InitializeAttributeWith( "normal", WIDTH_NORMAL ) },
- { InitializeAttributeWith( "semicondensed", WIDTH_SEMI_CONDENSED ) },
- { InitializeAttributeWith( "semiexpanded", WIDTH_SEMI_EXPANDED ) },
- { InitializeAttributeWith( "ultracondensed", WIDTH_ULTRA_CONDENSED ) },
- { InitializeAttributeWith( "ultraexpanded", WIDTH_ULTRA_EXPANDED ) },
- { InitializeAttributeWith( "wide", WIDTH_EXPANDED ) }
+ { InitializeAttributeWith( "bold", WIDTH_SEMI_EXPANDED ) },
+ { InitializeAttributeWith( "condensed", WIDTH_CONDENSED ) },
+ { InitializeAttributeWith( "double wide", WIDTH_ULTRA_EXPANDED ) },
+ { InitializeAttributeWith( "expanded", WIDTH_EXPANDED ) },
+ { InitializeAttributeWith( "extracondensed", WIDTH_EXTRA_CONDENSED ) },
+ { InitializeAttributeWith( "extraexpanded", WIDTH_EXTRA_EXPANDED ) },
+ { InitializeAttributeWith( "medium", WIDTH_NORMAL ) },
+ { InitializeAttributeWith( "narrow", WIDTH_CONDENSED ) },
+ { InitializeAttributeWith( "normal", WIDTH_NORMAL ) },
+ { InitializeAttributeWith( "semicondensed", WIDTH_SEMI_CONDENSED ) },
+ { InitializeAttributeWith( "semiexpanded", WIDTH_SEMI_EXPANDED ) },
+ { InitializeAttributeWith( "ultracondensed", WIDTH_ULTRA_CONDENSED ) },
+ { InitializeAttributeWith( "ultraexpanded", WIDTH_ULTRA_EXPANDED ) },
+ { InitializeAttributeWith( "wide", WIDTH_EXPANDED ) }
};
const Attribute pEnhancedCharsetAttribute[] = {
- { InitializeAttributeWith( "iso8859-1", RTL_TEXTENCODING_MS_1252 ) },
- { InitializeAttributeWith( "iso8859_1", RTL_TEXTENCODING_MS_1252 ) }
+ { InitializeAttributeWith( "iso8859-1", RTL_TEXTENCODING_MS_1252 ) },
+ { InitializeAttributeWith( "iso8859_1", RTL_TEXTENCODING_MS_1252 ) }
};
// -------------------------------------------------------------------------
@@ -334,7 +334,7 @@ AppendAttribute( Attribute *pAttribute, ByteString &rString )
//
// Prettify the font name: make each leading character of a fontname
// uppercase. For example
-// times new roman -> Times New Roman
+// times new roman -> Times New Roman
//
static void
diff --git a/vcl/unx/source/gdi/xlfd_attr.hxx b/vcl/unx/source/gdi/xlfd_attr.hxx
index 18386a314e4b..dbeed8228cd7 100644
--- a/vcl/unx/source/gdi/xlfd_attr.hxx
+++ b/vcl/unx/source/gdi/xlfd_attr.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,39 +34,39 @@
struct Attribute {
- const char* mpName;
+ const char* mpName;
unsigned short mnLength;
- unsigned short mnValue;
- unsigned short mnFeature;
- String* mpAnnotation;
- rtl::OString* mpKeyName;
+ unsigned short mnValue;
+ unsigned short mnFeature;
+ String* mpAnnotation;
+ rtl::OString* mpKeyName;
- const char* GetName() const
+ const char* GetName() const
{ return mpName; }
- unsigned short GetValue() const
+ unsigned short GetValue() const
{ return mnValue; }
unsigned short GetLength() const
{ return mnLength; }
- Bool HasFeature( unsigned short nFeature ) const
+ Bool HasFeature( unsigned short nFeature ) const
{ return ((mnFeature & nFeature) != 0); }
const String &GetAnnotation() const
{ return *mpAnnotation; }
const rtl::OString&
GetKey();
- void InitKey();
+ void InitKey();
- void SetName( const char *p, int nLen );
- void SetValue( unsigned short nIn )
+ void SetName( const char *p, int nLen );
+ void SetValue( unsigned short nIn )
{ mnValue = nIn; }
- void SetAnnotation( String *pString )
+ void SetAnnotation( String *pString )
{ mpAnnotation = pString; }
- void SetFeature( unsigned short nFeature )
+ void SetFeature( unsigned short nFeature )
{ mnFeature = nFeature; }
- void TagFeature( unsigned short nFeature );
+ void TagFeature( unsigned short nFeature );
- int Compare( const char *p, int nLen );
- Bool ExactMatch( const char *p, int nLen );
- void Release();
+ int Compare( const char *p, int nLen );
+ Bool ExactMatch( const char *p, int nLen );
+ void Release();
};
@@ -79,14 +79,14 @@ extern "C" {
typedef rtl_TextEncoding(*AttributeClassifierT)(const char* pStr);
}
-#define XLFD_FEATURE_NONE 0x0000
-#define XLFD_FEATURE_NARROW 0x0001
-#define XLFD_FEATURE_OL_GLYPH 0x0002
-#define XLFD_FEATURE_OL_CURSOR 0x0004
-#define XLFD_FEATURE_REDUNDANTSTYLE 0x0008
-#define XLFD_FEATURE_APPLICATION_FONT 0x0010
+#define XLFD_FEATURE_NONE 0x0000
+#define XLFD_FEATURE_NARROW 0x0001
+#define XLFD_FEATURE_OL_GLYPH 0x0002
+#define XLFD_FEATURE_OL_CURSOR 0x0004
+#define XLFD_FEATURE_REDUNDANTSTYLE 0x0008
+#define XLFD_FEATURE_APPLICATION_FONT 0x0010
-#define XLFD_FEATURE_INTERFACE_FONT 0x0020
+#define XLFD_FEATURE_INTERFACE_FONT 0x0020
#define XLFD_FEATURE_LQ 0x0040
#define XLFD_FEATURE_MQ 0x0080
#define XLFD_FEATURE_HQ 0x0100
@@ -106,28 +106,28 @@ class AttributeStorage {
private:
- Attribute* mpList;
- unsigned short mnSize;
- unsigned short mnCount;
+ Attribute* mpList;
+ unsigned short mnSize;
+ unsigned short mnCount;
unsigned short mnLastmatch;
unsigned short mnDefaultValue;
- void Enlarge();
+ void Enlarge();
AttributeStorage();
public:
AttributeStorage( unsigned short nDefaultValue );
~AttributeStorage();
- unsigned short Insert( const char *pString, int nLength );
- Attribute* Retrieve( unsigned short nIndex ) const ;
- void AddClassification( Attribute *pClassification,
+ unsigned short Insert( const char *pString, int nLength );
+ Attribute* Retrieve( unsigned short nIndex ) const ;
+ void AddClassification( Attribute *pClassification,
unsigned short nNum );
- void AddClassification( AttributeClassifierT Classify );
- void TagFeature( unsigned short nFeature );
- void AddAnnotation( AttributeAnnotatorT Annotate );
+ void AddClassification( AttributeClassifierT Classify );
+ void TagFeature( unsigned short nFeature );
+ void AddAnnotation( AttributeAnnotatorT Annotate );
#if OSL_DEBUG_LEVEL > 1
- void Dump();
+ void Dump();
#endif
};
@@ -161,20 +161,20 @@ class AttributeProvider {
private:
- AttributeStorage* mpField[ eXLFDMaxEntry ];
+ AttributeStorage* mpField[ eXLFDMaxEntry ];
- AttributeStorage* GetField( eXLFDAttributeT eXLFDField )
+ AttributeStorage* GetField( eXLFDAttributeT eXLFDField )
{ return mpField[ eXLFDField]; }
public:
AttributeProvider ();
~AttributeProvider ();
- void AddClassification();
- void AddAnnotation();
- void TagFeature();
+ void AddClassification();
+ void AddAnnotation();
+ void TagFeature();
#if OSL_DEBUG_LEVEL > 1
- void Dump();
+ void Dump();
#endif
// these are just shortcuts or proxies for the most common used
@@ -194,34 +194,34 @@ class AttributeProvider {
AttributeStorage* GetCharset()
{ return GetField(eXLFDCharset); }
- Attribute* RetrieveFoundry( unsigned short nIndex )
+ Attribute* RetrieveFoundry( unsigned short nIndex )
{ return GetFoundry()->Retrieve(nIndex); }
- Attribute* RetrieveFamily( unsigned short nIndex )
+ Attribute* RetrieveFamily( unsigned short nIndex )
{ return GetFamily()->Retrieve(nIndex); }
- Attribute* RetrieveWeight( unsigned short nIndex )
+ Attribute* RetrieveWeight( unsigned short nIndex )
{ return GetWeight()->Retrieve(nIndex); }
- Attribute* RetrieveSlant( unsigned short nIndex )
+ Attribute* RetrieveSlant( unsigned short nIndex )
{ return GetSlant()->Retrieve(nIndex); }
- Attribute* RetrieveSetwidth( unsigned short nIndex )
+ Attribute* RetrieveSetwidth( unsigned short nIndex )
{ return GetSetwidth()->Retrieve(nIndex); }
- Attribute* RetrieveAddstyle( unsigned short nIndex )
+ Attribute* RetrieveAddstyle( unsigned short nIndex )
{ return GetAddstyle()->Retrieve(nIndex); }
- Attribute* RetrieveCharset( unsigned short nIndex )
+ Attribute* RetrieveCharset( unsigned short nIndex )
{ return GetCharset()->Retrieve(nIndex); }
- unsigned short InsertFoundry( const char *pString, int nLength )
+ unsigned short InsertFoundry( const char *pString, int nLength )
{ return GetFoundry()->Insert(pString, nLength); }
- unsigned short InsertFamily( const char *pString, int nLength )
+ unsigned short InsertFamily( const char *pString, int nLength )
{ return GetFamily()->Insert(pString, nLength); }
- unsigned short InsertWeight( const char *pString, int nLength )
+ unsigned short InsertWeight( const char *pString, int nLength )
{ return GetWeight()->Insert(pString, nLength); }
- unsigned short InsertSlant( const char *pString, int nLength )
+ unsigned short InsertSlant( const char *pString, int nLength )
{ return GetSlant()->Insert(pString, nLength); }
- unsigned short InsertSetwidth( const char *pString, int nLength )
+ unsigned short InsertSetwidth( const char *pString, int nLength )
{ return GetSetwidth()->Insert(pString, nLength);}
- unsigned short InsertAddstyle( const char *pString, int nLength )
+ unsigned short InsertAddstyle( const char *pString, int nLength )
{ return GetAddstyle()->Insert(pString, nLength);}
- unsigned short InsertCharset( const char *pString, int nLength )
+ unsigned short InsertCharset( const char *pString, int nLength )
{ return GetCharset()->Insert(pString, nLength); }
};
diff --git a/vcl/unx/source/gdi/xlfd_extd.cxx b/vcl/unx/source/gdi/xlfd_extd.cxx
index 6d691de88a79..1629d132d669 100644
--- a/vcl/unx/source/gdi/xlfd_extd.cxx
+++ b/vcl/unx/source/gdi/xlfd_extd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -78,12 +78,12 @@ sal_IntPtr ImplX11FontData::GetFontId() const
ExtendedXlfd::EncodingInfo&
ExtendedXlfd::EncodingInfo::operator= ( const Xlfd *pXlfd )
{
- mcSpacing = pXlfd->mcSpacing;
+ mcSpacing = pXlfd->mcSpacing;
mnResolutionX = pXlfd->mnResolutionX;
mnResolutionY = pXlfd->mnResolutionY;
mnAddstyle = pXlfd->mnAddstyle;
mnCharset = pXlfd->mnCharset;
- mnEncoding = pXlfd->GetEncoding();
+ mnEncoding = pXlfd->GetEncoding();
return *this;
}
@@ -272,9 +272,9 @@ ExtendedXlfd::ToString( ByteString &rString,
unsigned short /*nPixelSize*/, rtl_TextEncoding /*nEncoding*/ ) const
{
AppendAttribute( mpFactory->RetrieveFoundry(mnFoundry), rString );
- AppendAttribute( mpFactory->RetrieveFamily(mnFamily), rString );
- AppendAttribute( mpFactory->RetrieveWeight(mnWeight), rString );
- AppendAttribute( mpFactory->RetrieveSlant(mnSlant), rString );
+ AppendAttribute( mpFactory->RetrieveFamily(mnFamily), rString );
+ AppendAttribute( mpFactory->RetrieveWeight(mnWeight), rString );
+ AppendAttribute( mpFactory->RetrieveSlant(mnSlant), rString );
AppendAttribute( mpFactory->RetrieveSetwidth(mnSetwidth), rString );
}
@@ -283,9 +283,9 @@ ExtendedXlfd::ToString( ByteString &rString,
unsigned short /*nPixelSize*/, char* /*pMatricsString*/, rtl_TextEncoding /*nEncoding*/ ) const
{
AppendAttribute( mpFactory->RetrieveFoundry(mnFoundry), rString );
- AppendAttribute( mpFactory->RetrieveFamily(mnFamily), rString );
- AppendAttribute( mpFactory->RetrieveWeight(mnWeight), rString );
- AppendAttribute( mpFactory->RetrieveSlant(mnSlant), rString );
+ AppendAttribute( mpFactory->RetrieveFamily(mnFamily), rString );
+ AppendAttribute( mpFactory->RetrieveWeight(mnWeight), rString );
+ AppendAttribute( mpFactory->RetrieveSlant(mnSlant), rString );
AppendAttribute( mpFactory->RetrieveSetwidth(mnSetwidth), rString );
}
@@ -853,7 +853,7 @@ VirtualXlfd::ToString( ByteString &rString, unsigned short nPixelSize,
AppendAttribute( mpFactory->RetrieveFoundry(rExtInfo.mnFoundry), rString );
AppendAttribute( mpFactory->RetrieveFamily(rExtInfo.mnFamily), rString );
AppendAttribute( mpFactory->RetrieveWeight(rExtInfo.mnWeight), rString );
- AppendAttribute( mpFactory->RetrieveSlant(rExtInfo.mnSlant), rString );
+ AppendAttribute( mpFactory->RetrieveSlant(rExtInfo.mnSlant), rString );
AppendAttribute( mpFactory->RetrieveSetwidth(rExtInfo.mnSetwidth), rString );
EncodingInfo& rInfo = mpEncodingInfo[ nIdx ];
@@ -881,7 +881,7 @@ VirtualXlfd::ToString( ByteString &rString, unsigned short nPixelSize,
AppendAttribute( mpFactory->RetrieveFoundry(rExtInfo.mnFoundry), rString );
AppendAttribute( mpFactory->RetrieveFamily(rExtInfo.mnFamily), rString );
AppendAttribute( mpFactory->RetrieveWeight(rExtInfo.mnWeight), rString );
- AppendAttribute( mpFactory->RetrieveSlant(rExtInfo.mnSlant), rString );
+ AppendAttribute( mpFactory->RetrieveSlant(rExtInfo.mnSlant), rString );
AppendAttribute( mpFactory->RetrieveSetwidth(rExtInfo.mnSetwidth), rString );
EncodingInfo& rInfo = mpEncodingInfo[ nIdx ];
@@ -912,7 +912,7 @@ ImplFontData* VirtualXlfd::GetImplFontData() const
pFontData->meWidthType = WIDTH_NORMAL;
pFontData->mePitch = PITCH_VARIABLE;
- pFontData->mbSymbolFlag = false;
+ pFontData->mbSymbolFlag = false;
pFontData->mbOrientation= false;
pFontData->mbDevice = true;
pFontData->mnQuality = 100;
diff --git a/vcl/unx/source/gdi/xlfd_extd.hxx b/vcl/unx/source/gdi/xlfd_extd.hxx
index 306b9be74967..70b661ec19ef 100644
--- a/vcl/unx/source/gdi/xlfd_extd.hxx
+++ b/vcl/unx/source/gdi/xlfd_extd.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,18 +58,18 @@ class ExtendedXlfd : public ImplDevFontAttributes
{
public:
ExtendedXlfd( bool bScalable );
- virtual ~ExtendedXlfd();
- virtual bool AddEncoding( const Xlfd* );
- bool HasEncoding( rtl_TextEncoding ) const;
- int GetEncodingIdx( rtl_TextEncoding nEncoding ) const;
- unsigned short NumEncodings() const
+ virtual ~ExtendedXlfd();
+ virtual bool AddEncoding( const Xlfd* );
+ bool HasEncoding( rtl_TextEncoding ) const;
+ int GetEncodingIdx( rtl_TextEncoding nEncoding ) const;
+ unsigned short NumEncodings() const
{ return mnEncodings; }
virtual int GetPixelSize() const
{ return 0; }
- virtual void ToString( ByteString &rString,
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
rtl_TextEncoding nEncoding ) const ;
- virtual void ToString( ByteString &rString,
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
char* pMatricsString,
rtl_TextEncoding nEncoding ) const;
@@ -89,28 +89,28 @@ class ExtendedXlfd : public ImplDevFontAttributes
int GetFontCodeRanges( sal_uInt32* pCodePairs ) const;
protected:
- AttributeProvider* mpFactory;
+ AttributeProvider* mpFactory;
public:
- unsigned short mnFoundry;
- unsigned short mnFamily;
- unsigned short mnWeight;
- unsigned short mnSlant;
- unsigned short mnSetwidth;
+ unsigned short mnFoundry;
+ unsigned short mnFamily;
+ unsigned short mnWeight;
+ unsigned short mnSlant;
+ unsigned short mnSetwidth;
bool mbScalable;
protected:
- unsigned short mnEncodings;
- unsigned short mnEncCapacity;
+ unsigned short mnEncodings;
+ unsigned short mnEncCapacity;
struct EncodingInfo {
- unsigned char mcSpacing;
- unsigned short mnResolutionX;
- unsigned short mnResolutionY;
- unsigned short mnAddstyle;
- unsigned short mnCharset;
- rtl_TextEncoding mnEncoding;
-
- EncodingInfo& operator= ( const Xlfd *pXlfd );
+ unsigned char mcSpacing;
+ unsigned short mnResolutionX;
+ unsigned short mnResolutionY;
+ unsigned short mnAddstyle;
+ unsigned short mnCharset;
+ rtl_TextEncoding mnEncoding;
+
+ EncodingInfo& operator= ( const Xlfd *pXlfd );
} *mpEncodingInfo;
};
@@ -120,11 +120,11 @@ class ScalableBitmapXlfd : public ExtendedXlfd {
public:
ScalableBitmapXlfd();
- virtual ~ScalableBitmapXlfd();
- virtual void ToString( ByteString &rString,
+ virtual ~ScalableBitmapXlfd();
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
rtl_TextEncoding nEncoding ) const;
- virtual void ToString( ByteString &rString,
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
char* pMatricsString,
rtl_TextEncoding nEncoding ) const;
@@ -141,22 +141,22 @@ class BitmapXlfd : public ExtendedXlfd {
public:
BitmapXlfd();
~BitmapXlfd();
- bool AddEncoding( const Xlfd* );
- virtual int GetPixelSize() const
+ bool AddEncoding( const Xlfd* );
+ virtual int GetPixelSize() const
{ return mnPixelSize; }
- virtual void ToString( ByteString &rString,
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
rtl_TextEncoding nEncoding ) const;
- virtual void ToString( ByteString &rString,
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
char* pMatricsString,
rtl_TextEncoding nEncoding ) const;
virtual ImplFontData* GetImplFontData() const ;
protected:
- unsigned short mnPixelSize;
- unsigned short mnPointSize;
- unsigned short mnAverageWidth;
+ unsigned short mnPixelSize;
+ unsigned short mnPointSize;
+ unsigned short mnAverageWidth;
};
// class to handle true scalable fonts
@@ -167,12 +167,12 @@ class ScalableXlfd : public ExtendedXlfd {
public:
ScalableXlfd();
- virtual ~ScalableXlfd();
- virtual void ToString( ByteString &rString,
+ virtual ~ScalableXlfd();
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
rtl_TextEncoding nEncoding ) const;
- virtual void ToString( ByteString &rString,
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
char* pMatricsString,
rtl_TextEncoding nEncoding ) const;
@@ -186,11 +186,11 @@ class XlfdStorage {
public:
XlfdStorage();
- void Dispose();
- void Reset();
+ void Dispose();
+ void Reset();
- void Add( const ExtendedXlfd *pXlfd );
- void Add( const XlfdStorage *pXlfd );
+ void Add( const ExtendedXlfd *pXlfd );
+ void Add( const XlfdStorage *pXlfd );
void AnnounceFonts( ImplDevFontList* ) const;
protected:
@@ -205,7 +205,7 @@ class BitmapXlfdStorage : public XlfdStorage {
public:
- void AddBitmapFont( const Xlfd *pXlfd );
+ void AddBitmapFont( const Xlfd *pXlfd );
};
@@ -215,17 +215,17 @@ class VirtualXlfd : public ExtendedXlfd
{
private:
- int GetFontQuality (unsigned short nFamily);
+ int GetFontQuality (unsigned short nFamily);
public:
VirtualXlfd();
- virtual ~VirtualXlfd();
- virtual bool AddEncoding( const Xlfd* );
- void FilterInterfaceFont (const Xlfd *pXlfd);
- virtual void ToString( ByteString &rString,
+ virtual ~VirtualXlfd();
+ virtual bool AddEncoding( const Xlfd* );
+ void FilterInterfaceFont (const Xlfd *pXlfd);
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
rtl_TextEncoding nEncoding ) const ;
- virtual void ToString( ByteString &rString,
+ virtual void ToString( ByteString &rString,
unsigned short nPixelSize,
char* pMatricsString,
rtl_TextEncoding nEncoding ) const;
@@ -233,15 +233,15 @@ class VirtualXlfd : public ExtendedXlfd
virtual ImplFontData* GetImplFontData() const ;
protected:
- unsigned short mnExtCapacity;
+ unsigned short mnExtCapacity;
struct ExtEncodingInfo {
- unsigned short mnFoundry;
- unsigned short mnFamily;
- unsigned short mnWeight;
- unsigned short mnSlant;
- unsigned short mnSetwidth;
+ unsigned short mnFoundry;
+ unsigned short mnFamily;
+ unsigned short mnWeight;
+ unsigned short mnSlant;
+ unsigned short mnSetwidth;
- ExtEncodingInfo& operator= ( const Xlfd *pXlfd );
+ ExtEncodingInfo& operator= ( const Xlfd *pXlfd );
} *mpExtEncodingInfo;
friend class ExtEncodingInfo;
diff --git a/vcl/unx/source/gdi/xlfd_smpl.cxx b/vcl/unx/source/gdi/xlfd_smpl.cxx
index d9100a794c72..f03eb38d63d2 100644
--- a/vcl/unx/source/gdi/xlfd_smpl.cxx
+++ b/vcl/unx/source/gdi/xlfd_smpl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -91,7 +91,7 @@ XlfdCompare( const void *vFrom, const void *vTo )
int nFromCompare = (pFromAddStyle->GetValue() != RTL_TEXTENCODING_DONTKNOW)
|| (pFromAddStyle->HasFeature(XLFD_FEATURE_REDUNDANTSTYLE)) ?
-1 : pFrom->mnAddstyle;
- int nToCompare = (pToAddStyle->GetValue() != RTL_TEXTENCODING_DONTKNOW)
+ int nToCompare = (pToAddStyle->GetValue() != RTL_TEXTENCODING_DONTKNOW)
|| (pToAddStyle->HasFeature(XLFD_FEATURE_REDUNDANTSTYLE)) ?
-1 : pTo->mnAddstyle;
@@ -174,7 +174,7 @@ Xlfd::FromString( const char* pXlfdstring, AttributeProvider *pFactory )
return False;
const char* pFrom = pXlfdstring + 1;
- const char* pTo = pFrom;
+ const char* pTo = pFrom;
mpFactory = pFactory;
Advance( &pFrom, &pTo ); //-foundry-*
@@ -241,9 +241,9 @@ const char*
Xlfd::ToString( ByteString &rString ) const
{
AppendAttribute( mpFactory->RetrieveFoundry(mnFoundry), rString );
- AppendAttribute( mpFactory->RetrieveFamily(mnFamily), rString );
- AppendAttribute( mpFactory->RetrieveWeight(mnWeight), rString );
- AppendAttribute( mpFactory->RetrieveSlant(mnSlant), rString );
+ AppendAttribute( mpFactory->RetrieveFamily(mnFamily), rString );
+ AppendAttribute( mpFactory->RetrieveWeight(mnWeight), rString );
+ AppendAttribute( mpFactory->RetrieveSlant(mnSlant), rString );
AppendAttribute( mpFactory->RetrieveSetwidth(mnSetwidth), rString );
AppendAttribute( mpFactory->RetrieveAddstyle(mnAddstyle), rString );
diff --git a/vcl/unx/source/gdi/xlfd_smpl.hxx b/vcl/unx/source/gdi/xlfd_smpl.hxx
index a412d332fd9b..636e1b85a370 100644
--- a/vcl/unx/source/gdi/xlfd_smpl.hxx
+++ b/vcl/unx/source/gdi/xlfd_smpl.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -43,28 +43,28 @@ class AttributeProvider;
// --------------------------------------------------------------------------
enum XlfdFonttype {
- eTypeUnknown = TYPE_DONTKNOW,
- eTypeBitmap = TYPE_RASTER,
+ eTypeUnknown = TYPE_DONTKNOW,
+ eTypeBitmap = TYPE_RASTER,
eTypeScalableBitmap = TYPE_VECTOR,
- eTypeScalable = TYPE_SCALABLE
+ eTypeScalable = TYPE_SCALABLE
};
class Xlfd {
public:
- unsigned short mnFoundry;
- unsigned short mnFamily;
- unsigned short mnWeight;
- unsigned short mnSlant;
- unsigned short mnSetwidth;
- unsigned short mnAddstyle;
- unsigned short mnPixelSize;
- unsigned short mnPointSize;
- unsigned short mnResolutionX;
- unsigned short mnResolutionY;
- unsigned char mcSpacing;
- unsigned short mnAverageWidth;
+ unsigned short mnFoundry;
+ unsigned short mnFamily;
+ unsigned short mnWeight;
+ unsigned short mnSlant;
+ unsigned short mnSetwidth;
+ unsigned short mnAddstyle;
+ unsigned short mnPixelSize;
+ unsigned short mnPointSize;
+ unsigned short mnResolutionX;
+ unsigned short mnResolutionY;
+ unsigned char mcSpacing;
+ unsigned short mnAverageWidth;
unsigned short mnCharset;
// all foundry, family, weight ... information referres
@@ -75,14 +75,14 @@ class Xlfd {
public:
Xlfd();
- Bool FromString( const char* pXlfdstring,
+ Bool FromString( const char* pXlfdstring,
AttributeProvider *pFactory );
- Bool SameFontoutline( const Xlfd *pComparedTo ) const ;
- XlfdFonttype Fonttype() const ;
+ Bool SameFontoutline( const Xlfd *pComparedTo ) const ;
+ XlfdFonttype Fonttype() const ;
unsigned short GetEncoding() const ;
#if OSL_DEBUG_LEVEL > 1
- const char* ToString( ByteString &rString ) const ;
- void Dump() const;
+ const char* ToString( ByteString &rString ) const ;
+ void Dump() const;
#endif
};
diff --git a/vcl/unx/source/gdi/xrender_peer.cxx b/vcl/unx/source/gdi/xrender_peer.cxx
index 533836e2e5d0..7558a81e1d1b 100644
--- a/vcl/unx/source/gdi/xrender_peer.cxx
+++ b/vcl/unx/source/gdi/xrender_peer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -88,7 +88,7 @@ void XRenderPeer::InitRenderLib()
if( !mpRenderLib ) {
#ifdef DEBUG
fprintf( stderr, "Display can do XRender, but no %s installed.\n"
- "Please install for improved display performance\n", OUStringToOString( aLibName.getStr(),
+ "Please install for improved display performance\n", OUStringToOString( aLibName.getStr(),
osl_getThreadTextEncoding() ).getStr() );
#endif
return;
diff --git a/vcl/unx/source/gdi/xrender_peer.hxx b/vcl/unx/source/gdi/xrender_peer.hxx
index f9417bb2be95..2a168ab4d28a 100644
--- a/vcl/unx/source/gdi/xrender_peer.hxx
+++ b/vcl/unx/source/gdi/xrender_peer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ public:
int GetVersion() const;
sal_uInt32 InitRenderText();
-
+
protected:
XRenderPeer();
~XRenderPeer();
@@ -282,7 +282,7 @@ inline void XRenderPeer::FreeGlyph( GlyphSet aGS, Glyph nGlyphId ) const
inline void XRenderPeer::CompositeString32( Picture aSrc, Picture aDst,
GlyphSet aGlyphSet, int nDstX, int nDstY,
- const unsigned* pText, int nTextLen ) const
+ const unsigned* pText, int nTextLen ) const
{
#ifdef XRENDER_LINK
XRenderCompositeString32( mpDisplay, PictOpOver, aSrc, aDst, NULL,
diff --git a/vcl/unx/source/inc/airbrush_curs.h b/vcl/unx/source/inc/airbrush_curs.h
index 3a5555f34384..c70a0cd4f39f 100644
--- a/vcl/unx/source/inc/airbrush_curs.h
+++ b/vcl/unx/source/inc/airbrush_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/airbrush_mask.h b/vcl/unx/source/inc/airbrush_mask.h
index 35e55b834f77..38d50e81b94a 100644
--- a/vcl/unx/source/inc/airbrush_mask.h
+++ b/vcl/unx/source/inc/airbrush_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/ase_curs.h b/vcl/unx/source/inc/ase_curs.h
index bd968c4e6f17..5bf1472a7a5e 100644
--- a/vcl/unx/source/inc/ase_curs.h
+++ b/vcl/unx/source/inc/ase_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/ase_mask.h b/vcl/unx/source/inc/ase_mask.h
index 6f765158c400..2d83538505b1 100644
--- a/vcl/unx/source/inc/ase_mask.h
+++ b/vcl/unx/source/inc/ase_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
************************************************************************/
#define ase_mask_width 32
#define ase_mask_height 32
-#define ase_mask_x_hot 19
+#define ase_mask_x_hot 19
#define ase_mask_y_hot 16
static char ase_mask_bits[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
diff --git a/vcl/unx/source/inc/asn_curs.h b/vcl/unx/source/inc/asn_curs.h
index 81f5b0bfee63..322ec226dff1 100644
--- a/vcl/unx/source/inc/asn_curs.h
+++ b/vcl/unx/source/inc/asn_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asn_mask.h b/vcl/unx/source/inc/asn_mask.h
index 10f6fb7ff0c9..ebdd59e136a7 100644
--- a/vcl/unx/source/inc/asn_mask.h
+++ b/vcl/unx/source/inc/asn_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asne_curs.h b/vcl/unx/source/inc/asne_curs.h
index f01ca8814b76..a5cdbe5a019a 100644
--- a/vcl/unx/source/inc/asne_curs.h
+++ b/vcl/unx/source/inc/asne_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asne_mask.h b/vcl/unx/source/inc/asne_mask.h
index 62fc2d1c94e6..2761eac9d684 100644
--- a/vcl/unx/source/inc/asne_mask.h
+++ b/vcl/unx/source/inc/asne_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asns_curs.h b/vcl/unx/source/inc/asns_curs.h
index db0ff615e309..8f102f2f8ba2 100644
--- a/vcl/unx/source/inc/asns_curs.h
+++ b/vcl/unx/source/inc/asns_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asns_mask.h b/vcl/unx/source/inc/asns_mask.h
index 2d8c689c64a8..674b37a2d1c5 100644
--- a/vcl/unx/source/inc/asns_mask.h
+++ b/vcl/unx/source/inc/asns_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asnswe_curs.h b/vcl/unx/source/inc/asnswe_curs.h
index 276d1dbce8ce..773b68b9d3d0 100644
--- a/vcl/unx/source/inc/asnswe_curs.h
+++ b/vcl/unx/source/inc/asnswe_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asnswe_mask.h b/vcl/unx/source/inc/asnswe_mask.h
index 6e1f22650b1e..42071557d712 100644
--- a/vcl/unx/source/inc/asnswe_mask.h
+++ b/vcl/unx/source/inc/asnswe_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asnw_curs.h b/vcl/unx/source/inc/asnw_curs.h
index 706e021463c9..6bcb38e67209 100644
--- a/vcl/unx/source/inc/asnw_curs.h
+++ b/vcl/unx/source/inc/asnw_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asnw_mask.h b/vcl/unx/source/inc/asnw_mask.h
index 189dab48fc82..5a55eb990475 100644
--- a/vcl/unx/source/inc/asnw_mask.h
+++ b/vcl/unx/source/inc/asnw_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/ass_curs.h b/vcl/unx/source/inc/ass_curs.h
index f7cd7e7d5110..583c6c32cb47 100644
--- a/vcl/unx/source/inc/ass_curs.h
+++ b/vcl/unx/source/inc/ass_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/ass_mask.h b/vcl/unx/source/inc/ass_mask.h
index 6ac71c7b32a5..18131ff1532d 100644
--- a/vcl/unx/source/inc/ass_mask.h
+++ b/vcl/unx/source/inc/ass_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asse_curs.h b/vcl/unx/source/inc/asse_curs.h
index 1dd325ac0606..d1b1342d2340 100644
--- a/vcl/unx/source/inc/asse_curs.h
+++ b/vcl/unx/source/inc/asse_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asse_mask.h b/vcl/unx/source/inc/asse_mask.h
index 7685aaa21c17..7e03b04cd700 100644
--- a/vcl/unx/source/inc/asse_mask.h
+++ b/vcl/unx/source/inc/asse_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/assw_curs.h b/vcl/unx/source/inc/assw_curs.h
index 1f8d53ff9b72..d3a833a44747 100644
--- a/vcl/unx/source/inc/assw_curs.h
+++ b/vcl/unx/source/inc/assw_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/assw_mask.h b/vcl/unx/source/inc/assw_mask.h
index 243c62c25e10..c6ea8944492c 100644
--- a/vcl/unx/source/inc/assw_mask.h
+++ b/vcl/unx/source/inc/assw_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asw_curs.h b/vcl/unx/source/inc/asw_curs.h
index 80f741496bae..996f65930a71 100644
--- a/vcl/unx/source/inc/asw_curs.h
+++ b/vcl/unx/source/inc/asw_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/asw_mask.h b/vcl/unx/source/inc/asw_mask.h
index 18765d5fc452..54629e5af5fb 100644
--- a/vcl/unx/source/inc/asw_mask.h
+++ b/vcl/unx/source/inc/asw_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/aswe_curs.h b/vcl/unx/source/inc/aswe_curs.h
index b2965e42f4a2..7e897617f55e 100644
--- a/vcl/unx/source/inc/aswe_curs.h
+++ b/vcl/unx/source/inc/aswe_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/aswe_mask.h b/vcl/unx/source/inc/aswe_mask.h
index 76c73193d35f..6b67f2a98ed1 100644
--- a/vcl/unx/source/inc/aswe_mask.h
+++ b/vcl/unx/source/inc/aswe_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/chain_curs.h b/vcl/unx/source/inc/chain_curs.h
index 77a1dd23d664..ecc5c8dd5135 100644
--- a/vcl/unx/source/inc/chain_curs.h
+++ b/vcl/unx/source/inc/chain_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/chain_mask.h b/vcl/unx/source/inc/chain_mask.h
index e06b038d19be..f34a2ae4409e 100644
--- a/vcl/unx/source/inc/chain_mask.h
+++ b/vcl/unx/source/inc/chain_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/chainnot_curs.h b/vcl/unx/source/inc/chainnot_curs.h
index ae695e69fd85..de93553e8ec6 100644
--- a/vcl/unx/source/inc/chainnot_curs.h
+++ b/vcl/unx/source/inc/chainnot_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/chainnot_mask.h b/vcl/unx/source/inc/chainnot_mask.h
index b5311f762fec..5e5841e4032a 100644
--- a/vcl/unx/source/inc/chainnot_mask.h
+++ b/vcl/unx/source/inc/chainnot_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/chart_curs.h b/vcl/unx/source/inc/chart_curs.h
index 9210452713cf..73ce584c67fc 100644
--- a/vcl/unx/source/inc/chart_curs.h
+++ b/vcl/unx/source/inc/chart_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/chart_mask.h b/vcl/unx/source/inc/chart_mask.h
index b8cf5a69f889..8059d16dd15e 100644
--- a/vcl/unx/source/inc/chart_mask.h
+++ b/vcl/unx/source/inc/chart_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copydata_curs.h b/vcl/unx/source/inc/copydata_curs.h
index b7cb1557c7a3..3f2bb060d56c 100644
--- a/vcl/unx/source/inc/copydata_curs.h
+++ b/vcl/unx/source/inc/copydata_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copydata_mask.h b/vcl/unx/source/inc/copydata_mask.h
index d0cd40bc78fd..3f2009d72322 100644
--- a/vcl/unx/source/inc/copydata_mask.h
+++ b/vcl/unx/source/inc/copydata_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copydlnk_curs.h b/vcl/unx/source/inc/copydlnk_curs.h
index 8b3418ce7336..449d51f1f676 100644
--- a/vcl/unx/source/inc/copydlnk_curs.h
+++ b/vcl/unx/source/inc/copydlnk_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copydlnk_mask.h b/vcl/unx/source/inc/copydlnk_mask.h
index 3ad9e0a1b1e7..9c8a260cbfe6 100644
--- a/vcl/unx/source/inc/copydlnk_mask.h
+++ b/vcl/unx/source/inc/copydlnk_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copyfile_curs.h b/vcl/unx/source/inc/copyfile_curs.h
index 7ea2cb393944..14f544f433bf 100644
--- a/vcl/unx/source/inc/copyfile_curs.h
+++ b/vcl/unx/source/inc/copyfile_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copyfile_mask.h b/vcl/unx/source/inc/copyfile_mask.h
index 200d280c8cd8..c0c083f878bd 100644
--- a/vcl/unx/source/inc/copyfile_mask.h
+++ b/vcl/unx/source/inc/copyfile_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copyfiles_curs.h b/vcl/unx/source/inc/copyfiles_curs.h
index 4842d5fe72ad..5921ebaf6678 100644
--- a/vcl/unx/source/inc/copyfiles_curs.h
+++ b/vcl/unx/source/inc/copyfiles_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copyfiles_mask.h b/vcl/unx/source/inc/copyfiles_mask.h
index b1cbb4a10032..cdbc70bc710c 100644
--- a/vcl/unx/source/inc/copyfiles_mask.h
+++ b/vcl/unx/source/inc/copyfiles_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copyflnk_curs.h b/vcl/unx/source/inc/copyflnk_curs.h
index def45ab47a8b..e5f5bd341729 100644
--- a/vcl/unx/source/inc/copyflnk_curs.h
+++ b/vcl/unx/source/inc/copyflnk_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/copyflnk_mask.h b/vcl/unx/source/inc/copyflnk_mask.h
index ac05eaa13a64..8ccb93b2433b 100644
--- a/vcl/unx/source/inc/copyflnk_mask.h
+++ b/vcl/unx/source/inc/copyflnk_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/crook_curs.h b/vcl/unx/source/inc/crook_curs.h
index 5cb4874c219f..25d61a366296 100644
--- a/vcl/unx/source/inc/crook_curs.h
+++ b/vcl/unx/source/inc/crook_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/crook_mask.h b/vcl/unx/source/inc/crook_mask.h
index 97b47601ebe5..b1c099e6979c 100644
--- a/vcl/unx/source/inc/crook_mask.h
+++ b/vcl/unx/source/inc/crook_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/crop_curs.h b/vcl/unx/source/inc/crop_curs.h
index 3e8424657453..d1e07fd7aaa7 100644
--- a/vcl/unx/source/inc/crop_curs.h
+++ b/vcl/unx/source/inc/crop_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/crop_mask.h b/vcl/unx/source/inc/crop_mask.h
index 84c37341918c..b416c7731999 100644
--- a/vcl/unx/source/inc/crop_mask.h
+++ b/vcl/unx/source/inc/crop_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/detective_curs.h b/vcl/unx/source/inc/detective_curs.h
index 181b6e0d3e28..d84592854ae3 100644
--- a/vcl/unx/source/inc/detective_curs.h
+++ b/vcl/unx/source/inc/detective_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/detective_mask.h b/vcl/unx/source/inc/detective_mask.h
index db93906579a4..ec314697324b 100644
--- a/vcl/unx/source/inc/detective_mask.h
+++ b/vcl/unx/source/inc/detective_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawarc_curs.h b/vcl/unx/source/inc/drawarc_curs.h
index 1db1b3a61840..48562f6a2b8d 100644
--- a/vcl/unx/source/inc/drawarc_curs.h
+++ b/vcl/unx/source/inc/drawarc_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawarc_mask.h b/vcl/unx/source/inc/drawarc_mask.h
index 9c5ddd61b471..f811c864ae26 100644
--- a/vcl/unx/source/inc/drawarc_mask.h
+++ b/vcl/unx/source/inc/drawarc_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawbezier_curs.h b/vcl/unx/source/inc/drawbezier_curs.h
index ad96981c9bb3..5ee9d146e49c 100644
--- a/vcl/unx/source/inc/drawbezier_curs.h
+++ b/vcl/unx/source/inc/drawbezier_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawbezier_mask.h b/vcl/unx/source/inc/drawbezier_mask.h
index 791d170d4045..b71477f1c366 100644
--- a/vcl/unx/source/inc/drawbezier_mask.h
+++ b/vcl/unx/source/inc/drawbezier_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawcaption_curs.h b/vcl/unx/source/inc/drawcaption_curs.h
index 45d14a75d18a..8ab9c97569ac 100644
--- a/vcl/unx/source/inc/drawcaption_curs.h
+++ b/vcl/unx/source/inc/drawcaption_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawcaption_mask.h b/vcl/unx/source/inc/drawcaption_mask.h
index 87c6ff83916c..f0c01d40531f 100644
--- a/vcl/unx/source/inc/drawcaption_mask.h
+++ b/vcl/unx/source/inc/drawcaption_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawcirclecut_curs.h b/vcl/unx/source/inc/drawcirclecut_curs.h
index 1554aeb08090..6d01943f2ecf 100644
--- a/vcl/unx/source/inc/drawcirclecut_curs.h
+++ b/vcl/unx/source/inc/drawcirclecut_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawcirclecut_mask.h b/vcl/unx/source/inc/drawcirclecut_mask.h
index 3e5ebe03e164..34c0c246c885 100644
--- a/vcl/unx/source/inc/drawcirclecut_mask.h
+++ b/vcl/unx/source/inc/drawcirclecut_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawconnect_curs.h b/vcl/unx/source/inc/drawconnect_curs.h
index 2f657f1ba426..d8167c259958 100644
--- a/vcl/unx/source/inc/drawconnect_curs.h
+++ b/vcl/unx/source/inc/drawconnect_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawconnect_mask.h b/vcl/unx/source/inc/drawconnect_mask.h
index 6b48aa5c8945..8538c130f4c7 100644
--- a/vcl/unx/source/inc/drawconnect_mask.h
+++ b/vcl/unx/source/inc/drawconnect_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawcrook_curs.h b/vcl/unx/source/inc/drawcrook_curs.h
index 8af64195ed51..8f51e4259549 100644
--- a/vcl/unx/source/inc/drawcrook_curs.h
+++ b/vcl/unx/source/inc/drawcrook_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawcrook_mask.h b/vcl/unx/source/inc/drawcrook_mask.h
index 037889ade041..35dd1f0025c4 100644
--- a/vcl/unx/source/inc/drawcrook_mask.h
+++ b/vcl/unx/source/inc/drawcrook_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawcrop_curs.h b/vcl/unx/source/inc/drawcrop_curs.h
index e356a91102d5..f391767f5956 100644
--- a/vcl/unx/source/inc/drawcrop_curs.h
+++ b/vcl/unx/source/inc/drawcrop_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawcrop_mask.h b/vcl/unx/source/inc/drawcrop_mask.h
index 7bfb31382793..df92dc936936 100644
--- a/vcl/unx/source/inc/drawcrop_mask.h
+++ b/vcl/unx/source/inc/drawcrop_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawellipse_curs.h b/vcl/unx/source/inc/drawellipse_curs.h
index 32d2259dc7d7..d74629025340 100644
--- a/vcl/unx/source/inc/drawellipse_curs.h
+++ b/vcl/unx/source/inc/drawellipse_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawellipse_mask.h b/vcl/unx/source/inc/drawellipse_mask.h
index 5218ac419c97..317a2555adad 100644
--- a/vcl/unx/source/inc/drawellipse_mask.h
+++ b/vcl/unx/source/inc/drawellipse_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawfreehand_curs.h b/vcl/unx/source/inc/drawfreehand_curs.h
index 7e577fe08940..9951b6f019b7 100644
--- a/vcl/unx/source/inc/drawfreehand_curs.h
+++ b/vcl/unx/source/inc/drawfreehand_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawfreehand_mask.h b/vcl/unx/source/inc/drawfreehand_mask.h
index ed06a873d0e2..f816c3d26d4d 100644
--- a/vcl/unx/source/inc/drawfreehand_mask.h
+++ b/vcl/unx/source/inc/drawfreehand_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawline_curs.h b/vcl/unx/source/inc/drawline_curs.h
index 1d9e3f642704..d9eb9818c40f 100644
--- a/vcl/unx/source/inc/drawline_curs.h
+++ b/vcl/unx/source/inc/drawline_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawline_mask.h b/vcl/unx/source/inc/drawline_mask.h
index b9e66306d964..6a35aad09b07 100644
--- a/vcl/unx/source/inc/drawline_mask.h
+++ b/vcl/unx/source/inc/drawline_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawmirror_curs.h b/vcl/unx/source/inc/drawmirror_curs.h
index 4c93e574e2f6..ce9c4a2f5507 100644
--- a/vcl/unx/source/inc/drawmirror_curs.h
+++ b/vcl/unx/source/inc/drawmirror_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawmirror_mask.h b/vcl/unx/source/inc/drawmirror_mask.h
index cfcd0f7abf3b..d95ca93d59f1 100644
--- a/vcl/unx/source/inc/drawmirror_mask.h
+++ b/vcl/unx/source/inc/drawmirror_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawpie_curs.h b/vcl/unx/source/inc/drawpie_curs.h
index 26dae0f57de8..7162700fd417 100644
--- a/vcl/unx/source/inc/drawpie_curs.h
+++ b/vcl/unx/source/inc/drawpie_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawpie_mask.h b/vcl/unx/source/inc/drawpie_mask.h
index 403321f7648d..dad908d943be 100644
--- a/vcl/unx/source/inc/drawpie_mask.h
+++ b/vcl/unx/source/inc/drawpie_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawpolygon_curs.h b/vcl/unx/source/inc/drawpolygon_curs.h
index 40805ec5b857..38eb036d8b13 100644
--- a/vcl/unx/source/inc/drawpolygon_curs.h
+++ b/vcl/unx/source/inc/drawpolygon_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawpolygon_mask.h b/vcl/unx/source/inc/drawpolygon_mask.h
index 6f8eed316e70..a1346d8c8cb6 100644
--- a/vcl/unx/source/inc/drawpolygon_mask.h
+++ b/vcl/unx/source/inc/drawpolygon_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawrect_curs.h b/vcl/unx/source/inc/drawrect_curs.h
index ac5d544122fd..0b2b0b7e39d4 100644
--- a/vcl/unx/source/inc/drawrect_curs.h
+++ b/vcl/unx/source/inc/drawrect_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawrect_mask.h b/vcl/unx/source/inc/drawrect_mask.h
index 03e765e0547a..d6e6d70f80c2 100644
--- a/vcl/unx/source/inc/drawrect_mask.h
+++ b/vcl/unx/source/inc/drawrect_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawtext_curs.h b/vcl/unx/source/inc/drawtext_curs.h
index d33eb6860219..645dcd51a660 100644
--- a/vcl/unx/source/inc/drawtext_curs.h
+++ b/vcl/unx/source/inc/drawtext_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/drawtext_mask.h b/vcl/unx/source/inc/drawtext_mask.h
index 5f6d4bcfa453..50e42a0dda24 100644
--- a/vcl/unx/source/inc/drawtext_mask.h
+++ b/vcl/unx/source/inc/drawtext_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/fill_curs.h b/vcl/unx/source/inc/fill_curs.h
index c08ae8a70f00..fe01c07c4045 100644
--- a/vcl/unx/source/inc/fill_curs.h
+++ b/vcl/unx/source/inc/fill_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/fill_mask.h b/vcl/unx/source/inc/fill_mask.h
index 5a1432dccdd1..233a506976b4 100644
--- a/vcl/unx/source/inc/fill_mask.h
+++ b/vcl/unx/source/inc/fill_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/hshear_curs.h b/vcl/unx/source/inc/hshear_curs.h
index 91a89ab99a04..4d6ca8c27a93 100644
--- a/vcl/unx/source/inc/hshear_curs.h
+++ b/vcl/unx/source/inc/hshear_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/hshear_mask.h b/vcl/unx/source/inc/hshear_mask.h
index 15a6e92b412c..30318acf0e49 100644
--- a/vcl/unx/source/inc/hshear_mask.h
+++ b/vcl/unx/source/inc/hshear_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/invert50.h b/vcl/unx/source/inc/invert50.h
index 12f64dff5ce7..cac73ae30923 100644
--- a/vcl/unx/source/inc/invert50.h
+++ b/vcl/unx/source/inc/invert50.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/linkdata_curs.h b/vcl/unx/source/inc/linkdata_curs.h
index 02d5709600a8..5c0feab91cbd 100644
--- a/vcl/unx/source/inc/linkdata_curs.h
+++ b/vcl/unx/source/inc/linkdata_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/linkdata_mask.h b/vcl/unx/source/inc/linkdata_mask.h
index 5bf28eac1bd5..a84059c079c7 100644
--- a/vcl/unx/source/inc/linkdata_mask.h
+++ b/vcl/unx/source/inc/linkdata_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/linkfile_curs.h b/vcl/unx/source/inc/linkfile_curs.h
index 38731cdde471..3f8cd201fead 100644
--- a/vcl/unx/source/inc/linkfile_curs.h
+++ b/vcl/unx/source/inc/linkfile_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/linkfile_mask.h b/vcl/unx/source/inc/linkfile_mask.h
index 0b36e8a28c41..84469d8e0120 100644
--- a/vcl/unx/source/inc/linkfile_mask.h
+++ b/vcl/unx/source/inc/linkfile_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/magnify_curs.h b/vcl/unx/source/inc/magnify_curs.h
index d25680bca7ec..a830af41ed4e 100644
--- a/vcl/unx/source/inc/magnify_curs.h
+++ b/vcl/unx/source/inc/magnify_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/magnify_mask.h b/vcl/unx/source/inc/magnify_mask.h
index 723a913eeb20..8dc4956bac4a 100644
--- a/vcl/unx/source/inc/magnify_mask.h
+++ b/vcl/unx/source/inc/magnify_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/mirror_curs.h b/vcl/unx/source/inc/mirror_curs.h
index 6f7ea2de78f5..c5fc1099846f 100644
--- a/vcl/unx/source/inc/mirror_curs.h
+++ b/vcl/unx/source/inc/mirror_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/mirror_mask.h b/vcl/unx/source/inc/mirror_mask.h
index d39742976c93..031614243b7a 100644
--- a/vcl/unx/source/inc/mirror_mask.h
+++ b/vcl/unx/source/inc/mirror_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movebezierweight_curs.h b/vcl/unx/source/inc/movebezierweight_curs.h
index 1c83a1f72ca0..e26fdd00fc71 100644
--- a/vcl/unx/source/inc/movebezierweight_curs.h
+++ b/vcl/unx/source/inc/movebezierweight_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movebezierweight_mask.h b/vcl/unx/source/inc/movebezierweight_mask.h
index 392657c42f19..7f7223c4d0fc 100644
--- a/vcl/unx/source/inc/movebezierweight_mask.h
+++ b/vcl/unx/source/inc/movebezierweight_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movedata_curs.h b/vcl/unx/source/inc/movedata_curs.h
index cbc3b6b73c1e..cdbc15d948b9 100644
--- a/vcl/unx/source/inc/movedata_curs.h
+++ b/vcl/unx/source/inc/movedata_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movedata_mask.h b/vcl/unx/source/inc/movedata_mask.h
index 716e626f778b..a10d7eab5f51 100644
--- a/vcl/unx/source/inc/movedata_mask.h
+++ b/vcl/unx/source/inc/movedata_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movedlnk_curs.h b/vcl/unx/source/inc/movedlnk_curs.h
index 62ff813f9366..416f0727e3b8 100644
--- a/vcl/unx/source/inc/movedlnk_curs.h
+++ b/vcl/unx/source/inc/movedlnk_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movedlnk_mask.h b/vcl/unx/source/inc/movedlnk_mask.h
index 4852cbbbc4a5..7c33bb10fc71 100644
--- a/vcl/unx/source/inc/movedlnk_mask.h
+++ b/vcl/unx/source/inc/movedlnk_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movefile_curs.h b/vcl/unx/source/inc/movefile_curs.h
index 7ec7075a4733..36af625a342f 100644
--- a/vcl/unx/source/inc/movefile_curs.h
+++ b/vcl/unx/source/inc/movefile_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movefile_mask.h b/vcl/unx/source/inc/movefile_mask.h
index 355b571420ea..a7954819e330 100644
--- a/vcl/unx/source/inc/movefile_mask.h
+++ b/vcl/unx/source/inc/movefile_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movefiles_curs.h b/vcl/unx/source/inc/movefiles_curs.h
index a469b10dbb4f..200c178f3897 100644
--- a/vcl/unx/source/inc/movefiles_curs.h
+++ b/vcl/unx/source/inc/movefiles_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movefiles_mask.h b/vcl/unx/source/inc/movefiles_mask.h
index 09553289eff0..f544029308ef 100644
--- a/vcl/unx/source/inc/movefiles_mask.h
+++ b/vcl/unx/source/inc/movefiles_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/moveflnk_curs.h b/vcl/unx/source/inc/moveflnk_curs.h
index 0986e445d95f..2b1071a6203c 100644
--- a/vcl/unx/source/inc/moveflnk_curs.h
+++ b/vcl/unx/source/inc/moveflnk_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/moveflnk_mask.h b/vcl/unx/source/inc/moveflnk_mask.h
index c73e4b16fc34..124e7eb2f674 100644
--- a/vcl/unx/source/inc/moveflnk_mask.h
+++ b/vcl/unx/source/inc/moveflnk_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movepoint_curs.h b/vcl/unx/source/inc/movepoint_curs.h
index 1331b81e68aa..9dcb3a11f135 100644
--- a/vcl/unx/source/inc/movepoint_curs.h
+++ b/vcl/unx/source/inc/movepoint_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/movepoint_mask.h b/vcl/unx/source/inc/movepoint_mask.h
index e7355183ec2c..8e535d6970ed 100644
--- a/vcl/unx/source/inc/movepoint_mask.h
+++ b/vcl/unx/source/inc/movepoint_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/nodrop_curs.h b/vcl/unx/source/inc/nodrop_curs.h
index 96b0c51178e6..82efb546d2f0 100644
--- a/vcl/unx/source/inc/nodrop_curs.h
+++ b/vcl/unx/source/inc/nodrop_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/nodrop_mask.h b/vcl/unx/source/inc/nodrop_mask.h
index b5bd992c7a4c..c3fa9cda4af4 100644
--- a/vcl/unx/source/inc/nodrop_mask.h
+++ b/vcl/unx/source/inc/nodrop_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/null_curs.h b/vcl/unx/source/inc/null_curs.h
index 7b771173ee44..33463804df50 100644
--- a/vcl/unx/source/inc/null_curs.h
+++ b/vcl/unx/source/inc/null_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,7 +27,7 @@
************************************************************************/
#define nullcurs_width 4
#define nullcurs_height 4
-#define nullcurs_x_hot 2
+#define nullcurs_x_hot 2
#define nullcurs_y_hot 2
static char nullcurs_bits[] = { 0x00, 0x00 };
diff --git a/vcl/unx/source/inc/null_mask.h b/vcl/unx/source/inc/null_mask.h
index 5ac9e4df4840..bb268b4101eb 100644
--- a/vcl/unx/source/inc/null_mask.h
+++ b/vcl/unx/source/inc/null_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/pivotcol_curs.h b/vcl/unx/source/inc/pivotcol_curs.h
index 751df69b53b9..edbab88c1670 100644
--- a/vcl/unx/source/inc/pivotcol_curs.h
+++ b/vcl/unx/source/inc/pivotcol_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/pivotcol_mask.h b/vcl/unx/source/inc/pivotcol_mask.h
index 1792ef6962db..8641f8ad1600 100644
--- a/vcl/unx/source/inc/pivotcol_mask.h
+++ b/vcl/unx/source/inc/pivotcol_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/pivotdel_curs.h b/vcl/unx/source/inc/pivotdel_curs.h
index c1b8a8537ff9..b748cf44f546 100644
--- a/vcl/unx/source/inc/pivotdel_curs.h
+++ b/vcl/unx/source/inc/pivotdel_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/pivotdel_mask.h b/vcl/unx/source/inc/pivotdel_mask.h
index aece5f1bfd60..1ec977c4ff2e 100644
--- a/vcl/unx/source/inc/pivotdel_mask.h
+++ b/vcl/unx/source/inc/pivotdel_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/pivotfld_curs.h b/vcl/unx/source/inc/pivotfld_curs.h
index ed999caa6dcc..e6ab497e76ee 100644
--- a/vcl/unx/source/inc/pivotfld_curs.h
+++ b/vcl/unx/source/inc/pivotfld_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/pivotfld_mask.h b/vcl/unx/source/inc/pivotfld_mask.h
index 99f884db83d2..78d14156ed8d 100644
--- a/vcl/unx/source/inc/pivotfld_mask.h
+++ b/vcl/unx/source/inc/pivotfld_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/pivotrow_curs.h b/vcl/unx/source/inc/pivotrow_curs.h
index d504655bd530..9e141b8613f7 100644
--- a/vcl/unx/source/inc/pivotrow_curs.h
+++ b/vcl/unx/source/inc/pivotrow_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/pivotrow_mask.h b/vcl/unx/source/inc/pivotrow_mask.h
index 8599bc546d3f..8b47ce25c0a3 100644
--- a/vcl/unx/source/inc/pivotrow_mask.h
+++ b/vcl/unx/source/inc/pivotrow_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/rotate_curs.h b/vcl/unx/source/inc/rotate_curs.h
index bfaf4ab65726..e748c0bd7ef2 100644
--- a/vcl/unx/source/inc/rotate_curs.h
+++ b/vcl/unx/source/inc/rotate_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/rotate_mask.h b/vcl/unx/source/inc/rotate_mask.h
index dafb049c8b89..0bcf316a0988 100644
--- a/vcl/unx/source/inc/rotate_mask.h
+++ b/vcl/unx/source/inc/rotate_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/salcursors.h b/vcl/unx/source/inc/salcursors.h
index 997b94c90054..1aeaa5b317bd 100644
--- a/vcl/unx/source/inc/salcursors.h
+++ b/vcl/unx/source/inc/salcursors.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/timemove_curs.h b/vcl/unx/source/inc/timemove_curs.h
index c9f9c771ada3..86f0991c5c84 100644
--- a/vcl/unx/source/inc/timemove_curs.h
+++ b/vcl/unx/source/inc/timemove_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/timemove_mask.h b/vcl/unx/source/inc/timemove_mask.h
index 3176258df95d..b3a38cd9ecdd 100644
--- a/vcl/unx/source/inc/timemove_mask.h
+++ b/vcl/unx/source/inc/timemove_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/timesize_curs.h b/vcl/unx/source/inc/timesize_curs.h
index 7e75b3e4c95b..b9aa36dd0e18 100644
--- a/vcl/unx/source/inc/timesize_curs.h
+++ b/vcl/unx/source/inc/timesize_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/timesize_mask.h b/vcl/unx/source/inc/timesize_mask.h
index 2f2de862a678..b20150507e71 100644
--- a/vcl/unx/source/inc/timesize_mask.h
+++ b/vcl/unx/source/inc/timesize_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/vertcurs_curs.h b/vcl/unx/source/inc/vertcurs_curs.h
index 93767087a405..ebe103bf139d 100644
--- a/vcl/unx/source/inc/vertcurs_curs.h
+++ b/vcl/unx/source/inc/vertcurs_curs.h
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#define vertcurs_curs_width 16
#define vertcurs_curs_height 16
-#define vertcurs_curs_x_hot 8
+#define vertcurs_curs_x_hot 8
#define vertcurs_curs_y_hot 8
static char vertcurs_curs_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x40, 0x02, 0x40,
diff --git a/vcl/unx/source/inc/vertcurs_mask.h b/vcl/unx/source/inc/vertcurs_mask.h
index a652d58b8ef3..e472f367659e 100644
--- a/vcl/unx/source/inc/vertcurs_mask.h
+++ b/vcl/unx/source/inc/vertcurs_mask.h
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#define vertcurs_mask_width 16
#define vertcurs_mask_height 16
-#define vertcurs_mask_x_hot 8
+#define vertcurs_mask_x_hot 8
#define vertcurs_mask_y_hot 8
static char vertcurs_mask_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xe0, 0x07, 0xe0, 0x0f, 0xf0,
diff --git a/vcl/unx/source/inc/vshear_curs.h b/vcl/unx/source/inc/vshear_curs.h
index ba073ca64211..f9dc82f207f5 100644
--- a/vcl/unx/source/inc/vshear_curs.h
+++ b/vcl/unx/source/inc/vshear_curs.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/inc/vshear_mask.h b/vcl/unx/source/inc/vshear_mask.h
index 7a614df0b9fa..5991a8b582b1 100644
--- a/vcl/unx/source/inc/vshear_mask.h
+++ b/vcl/unx/source/inc/vshear_mask.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/plugadapt/salplug.cxx b/vcl/unx/source/plugadapt/salplug.cxx
index 0accb8def42f..54f9752b56bc 100644
--- a/vcl/unx/source/plugadapt/salplug.cxx
+++ b/vcl/unx/source/plugadapt/salplug.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,7 +63,7 @@ static const char * desktop_strings[] = { "none", "unknown", "GNOME", "KDE", "KD
static SalInstance* tryInstance( const OUString& rModuleBase )
{
SalInstance* pInst = NULL;
-
+
OUStringBuffer aModName( 128 );
aModName.appendAscii( SAL_DLLPREFIX"vclplug_" );
aModName.append( rModuleBase );
@@ -81,7 +81,7 @@ static SalInstance* tryInstance( const OUString& rModuleBase )
{
pInst = aProc( aMod );
#if OSL_DEBUG_LEVEL > 1
- std::fprintf( stderr, "sal plugin %s produced instance %p\n",
+ std::fprintf( stderr, "sal plugin %s produced instance %p\n",
OUStringToOString( aModule, RTL_TEXTENCODING_ASCII_US ).getStr(),
pInst );
#endif
@@ -90,9 +90,9 @@ static SalInstance* tryInstance( const OUString& rModuleBase )
pCloseModule = aMod;
/*
- * Recent GTK+ versions load their modules with RTLD_LOCAL, so we can
- * not access the 'gnome_accessibility_module_shutdown' anymore.
- * So make sure libgtk+ & co are still mapped into memory when
+ * Recent GTK+ versions load their modules with RTLD_LOCAL, so we can
+ * not access the 'gnome_accessibility_module_shutdown' anymore.
+ * So make sure libgtk+ & co are still mapped into memory when
* atk-bridge's atexit handler gets called.
*/
if( rModuleBase.equalsAscii("gtk") )
@@ -107,7 +107,7 @@ static SalInstance* tryInstance( const OUString& rModuleBase )
{
pCloseModule = NULL;
}
-
+
GetSalData()->m_pPlugin = aMod;
}
else
@@ -127,7 +127,7 @@ static SalInstance* tryInstance( const OUString& rModuleBase )
else
std::fprintf( stderr, "could not load shared object %s\n",
OUStringToOString( aModule, RTL_TEXTENCODING_ASCII_US ).getStr() );
-#endif
+#endif
return pInst;
}
@@ -142,7 +142,7 @@ static const rtl::OUString& get_desktop_environment()
aModName.appendAscii( SAL_DLLPOSTFIX );
aModName.appendAscii( SAL_DLLEXTENSION );
OUString aModule = aModName.makeStringAndClear();
-
+
oslModule aMod = osl_loadModuleRelative(
reinterpret_cast< oslGenericFunction >( &tryInstance ), aModule.pData,
SAL_LOADMODULE_DEFAULT );
@@ -164,12 +164,12 @@ static SalInstance* autodetect_plugin()
{
"kde4", "kde", "gtk", "gen", 0
};
-
+
static const char* pStandardFallbackList[] =
{
"gtk", "gen", 0
};
-
+
static const char* pHeadlessFallbackList[] =
{
"svp", 0
@@ -178,7 +178,7 @@ static SalInstance* autodetect_plugin()
const rtl::OUString& desktop( get_desktop_environment() );
const char ** pList = pStandardFallbackList;
int nListEntry = 0;
-
+
// no server at all: dummy plugin
if ( desktop.equalsAscii( desktop_strings[DESKTOP_NONE] ) )
pList = pHeadlessFallbackList;
@@ -191,12 +191,12 @@ static SalInstance* autodetect_plugin()
}
else if( desktop.equalsAscii( desktop_strings[DESKTOP_KDE4] ) )
pList = pKDEFallbackList;
-
+
SalInstance* pInst = NULL;
while( pList[nListEntry] && pInst == NULL )
{
- rtl::OUString aTry( rtl::OUString::createFromAscii( pList[nListEntry] ) );
- pInst = tryInstance( aTry );
+ rtl::OUString aTry( rtl::OUString::createFromAscii( pList[nListEntry] ) );
+ pInst = tryInstance( aTry );
#if OSL_DEBUG_LEVEL > 1
if( pInst )
std::fprintf( stderr, "plugin autodetection: %s\n", pList[nListEntry] );
@@ -222,7 +222,7 @@ static SalInstance* check_headless_plugin()
SalInstance *CreateSalInstance()
{
- SalInstance* pInst = NULL;
+ SalInstance* pInst = NULL;
static const char* pUsePlugin = getenv( "SAL_USE_VCLPLUGIN" );
@@ -230,10 +230,10 @@ SalInstance *CreateSalInstance()
pInst = check_headless_plugin();
else
pInst = tryInstance( OUString::createFromAscii( pUsePlugin ) );
-
+
if( ! pInst )
pInst = autodetect_plugin();
-
+
// fallback, try everything
const char* pPlugin[] = { "gtk", "kde", "gen", 0 };
@@ -248,7 +248,7 @@ SalInstance *CreateSalInstance()
// acquire SolarMutex
pInst->AcquireYieldMutex( 1 );
-
+
return pInst;
}
diff --git a/vcl/unx/source/printer/cupsmgr.cxx b/vcl/unx/source/printer/cupsmgr.cxx
index fdab933a494c..26cf81d276c7 100644
--- a/vcl/unx/source/printer/cupsmgr.cxx
+++ b/vcl/unx/source/printer/cupsmgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,24 +59,24 @@ namespace psp
{
class CUPSWrapper
{
- oslModule m_pLib;
- osl::Mutex m_aGetPPDMutex;
+ oslModule m_pLib;
+ osl::Mutex m_aGetPPDMutex;
bool m_bPPDThreadRunning;
- int (*m_pcupsPrintFile)(const char*, const char*, const char*, int, cups_option_t*);
- int (*m_pcupsGetDests)(cups_dest_t**);
- void (*m_pcupsSetDests)(int,cups_dest_t*);
- void (*m_pcupsFreeDests)(int,cups_dest_t*);
- const char* (*m_pcupsGetPPD)(const char*);
- int (*m_pcupsMarkOptions)(ppd_file_t*,int,cups_option_t*);
- int (*m_pcupsAddOption)(const char*,const char*,int,cups_option_t**);
- void (*m_pcupsFreeOptions)(int,cups_option_t*);
- ppd_file_t* (*m_pppdOpenFile)(const char* pFile);
- void (*m_pppdClose)(ppd_file_t*);
- const char* (*m_pcupsServer)();
- void (*m_pcupsSetPasswordCB)(const char*(cb)(const char*));
- const char* (*m_pcupsUser)();
- void (*m_pcupsSetUser)(const char*);
+ int (*m_pcupsPrintFile)(const char*, const char*, const char*, int, cups_option_t*);
+ int (*m_pcupsGetDests)(cups_dest_t**);
+ void (*m_pcupsSetDests)(int,cups_dest_t*);
+ void (*m_pcupsFreeDests)(int,cups_dest_t*);
+ const char* (*m_pcupsGetPPD)(const char*);
+ int (*m_pcupsMarkOptions)(ppd_file_t*,int,cups_option_t*);
+ int (*m_pcupsAddOption)(const char*,const char*,int,cups_option_t**);
+ void (*m_pcupsFreeOptions)(int,cups_option_t*);
+ ppd_file_t* (*m_pppdOpenFile)(const char* pFile);
+ void (*m_pppdClose)(ppd_file_t*);
+ const char* (*m_pcupsServer)();
+ void (*m_pcupsSetPasswordCB)(const char*(cb)(const char*));
+ const char* (*m_pcupsUser)();
+ void (*m_pcupsSetUser)(const char*);
const char* (*m_pcupsGetOption)(const char*,int,cups_option_t*);
oslGenericFunction loadSymbol( const char* );
@@ -119,21 +119,21 @@ public:
void ppdClose( ppd_file_t* pPPD )
{ m_pppdClose( pPPD ); }
- const char *cupsServer(void)
+ const char *cupsServer(void)
{ return m_pcupsServer(); }
- const char *cupsUser(void)
+ const char *cupsUser(void)
{ return m_pcupsUser(); }
-
+
void cupsSetPasswordCB(const char *(*cb)(const char *))
{ m_pcupsSetPasswordCB( cb ); }
void cupsSetUser(const char *user)
{ m_pcupsSetUser( user ); }
-
+
const char* cupsGetOption(const char* name, int num_options, cups_option_t* options)
{ return m_pcupsGetOption( name, num_options, options ); }
-
+
};
}
@@ -155,7 +155,7 @@ oslGenericFunction CUPSWrapper::loadSymbol( const char* pSymbol )
return pSym;
}
-CUPSWrapper::CUPSWrapper()
+CUPSWrapper::CUPSWrapper()
: m_pLib( NULL ),
m_bPPDThreadRunning( false )
{
@@ -177,51 +177,51 @@ CUPSWrapper::CUPSWrapper()
return;
}
- m_pcupsPrintFile = (int(*)(const char*,const char*,const char*,int,cups_option_t*))
+ m_pcupsPrintFile = (int(*)(const char*,const char*,const char*,int,cups_option_t*))
loadSymbol( "cupsPrintFile" );
- m_pcupsGetDests = (int(*)(cups_dest_t**))
+ m_pcupsGetDests = (int(*)(cups_dest_t**))
loadSymbol( "cupsGetDests" );
- m_pcupsSetDests = (void(*)(int,cups_dest_t*))
+ m_pcupsSetDests = (void(*)(int,cups_dest_t*))
loadSymbol( "cupsSetDests" );
- m_pcupsFreeDests = (void(*)(int,cups_dest_t*))
+ m_pcupsFreeDests = (void(*)(int,cups_dest_t*))
loadSymbol( "cupsFreeDests" );
- m_pcupsGetPPD = (const char*(*)(const char*))
+ m_pcupsGetPPD = (const char*(*)(const char*))
loadSymbol( "cupsGetPPD" );
- m_pcupsMarkOptions = (int(*)(ppd_file_t*,int,cups_option_t*))
+ m_pcupsMarkOptions = (int(*)(ppd_file_t*,int,cups_option_t*))
loadSymbol( "cupsMarkOptions" );
- m_pcupsAddOption = (int(*)(const char*,const char*,int,cups_option_t**))
+ m_pcupsAddOption = (int(*)(const char*,const char*,int,cups_option_t**))
loadSymbol( "cupsAddOption" );
- m_pcupsFreeOptions = (void(*)(int,cups_option_t*))
+ m_pcupsFreeOptions = (void(*)(int,cups_option_t*))
loadSymbol( "cupsFreeOptions" );
- m_pppdOpenFile = (ppd_file_t*(*)(const char*))
+ m_pppdOpenFile = (ppd_file_t*(*)(const char*))
loadSymbol( "ppdOpenFile" );
- m_pppdClose = (void(*)(ppd_file_t*))
+ m_pppdClose = (void(*)(ppd_file_t*))
loadSymbol( "ppdClose" );
- m_pcupsServer = (const char*(*)())
+ m_pcupsServer = (const char*(*)())
loadSymbol( "cupsServer" );
- m_pcupsUser = (const char*(*)())
+ m_pcupsUser = (const char*(*)())
loadSymbol( "cupsUser" );
- m_pcupsSetPasswordCB = (void(*)(const char*(*)(const char*)))
+ m_pcupsSetPasswordCB = (void(*)(const char*(*)(const char*)))
loadSymbol( "cupsSetPasswordCB" );
- m_pcupsSetUser = (void(*)(const char*))
+ m_pcupsSetUser = (void(*)(const char*))
loadSymbol( "cupsSetUser" );
m_pcupsGetOption = (const char*(*)(const char*,int,cups_option_t*))
loadSymbol( "cupsGetOption" );
if( ! (
- m_pcupsPrintFile &&
- m_pcupsGetDests &&
- m_pcupsSetDests &&
- m_pcupsFreeDests &&
- m_pcupsGetPPD &&
- m_pcupsMarkOptions &&
- m_pcupsAddOption &&
- m_pcupsServer &&
- m_pcupsUser &&
- m_pcupsSetPasswordCB &&
- m_pcupsSetUser &&
- m_pcupsFreeOptions &&
- m_pppdOpenFile &&
+ m_pcupsPrintFile &&
+ m_pcupsGetDests &&
+ m_pcupsSetDests &&
+ m_pcupsFreeDests &&
+ m_pcupsGetPPD &&
+ m_pcupsMarkOptions &&
+ m_pcupsAddOption &&
+ m_pcupsServer &&
+ m_pcupsUser &&
+ m_pcupsSetPasswordCB &&
+ m_pcupsSetUser &&
+ m_pcupsFreeOptions &&
+ m_pppdOpenFile &&
m_pppdClose &&
m_pcupsGetOption
) )
@@ -246,14 +246,14 @@ typedef const char*(*PPDFunction)(const char*);
struct GetPPDAttribs
{
PPDFunction m_pFunction;
- osl::Condition m_aCondition;
- OString m_aParameter;
- OString m_aResult;
- oslThread m_aThread;
+ osl::Condition m_aCondition;
+ OString m_aParameter;
+ OString m_aResult;
+ oslThread m_aThread;
int m_nRefs;
bool* m_pResetRunning;
osl::Mutex* m_pSyncMutex;
-
+
GetPPDAttribs( PPDFunction pFn, const char * m_pParameter,
bool* pResetRunning, osl::Mutex* pSyncMutex )
: m_pFunction( pFn ),
@@ -264,13 +264,13 @@ struct GetPPDAttribs
m_nRefs = 2;
m_aCondition.reset();
}
-
+
~GetPPDAttribs()
{
if( m_aResult.getLength() )
unlink( m_aResult.getStr() );
}
-
+
void unref()
{
if( --m_nRefs == 0 )
@@ -279,7 +279,7 @@ struct GetPPDAttribs
delete this;
}
}
-
+
void executeCall()
{
// This CUPS method is not at all thread-safe we need
@@ -290,11 +290,11 @@ struct GetPPDAttribs
m_aCondition.set();
unref();
}
-
+
OString waitResult( TimeValue *pDelay )
{
m_pSyncMutex->release();
-
+
if (m_aCondition.wait( pDelay ) != Condition::result_ok
)
{
@@ -305,11 +305,11 @@ struct GetPPDAttribs
#endif
}
m_pSyncMutex->acquire();
-
+
OString aRetval = m_aResult;
m_aResult = OString();
unref();
-
+
return aRetval;
}
};
@@ -335,7 +335,7 @@ OString CUPSWrapper::cupsGetPPD( const char* pPrinter )
pPrinter,
&m_bPPDThreadRunning,
&m_aGetPPDMutex );
-
+
oslThread aThread = osl_createThread( getPPDWorker, pAttribs );
TimeValue aValue;
@@ -355,7 +355,7 @@ OString CUPSWrapper::cupsGetPPD( const char* pPrinter )
static const char* setPasswordCallback( const char* pIn )
{
const char* pRet = NULL;
-
+
PrinterInfoManager& rMgr = PrinterInfoManager::get();
if( rMgr.getType() == PrinterInfoManager::CUPS ) // sanity check
pRet = static_cast<CUPSManager&>(rMgr).authenticateUser( pIn );
@@ -372,7 +372,7 @@ CUPSManager* CUPSManager::tryLoadCUPS()
CUPSManager* pManager = NULL;
#ifdef ENABLE_CUPS
static const char* pEnv = getenv( "SAL_DISABLE_CUPS" );
-
+
if( ! pEnv || ! *pEnv )
{
// try to load CUPS
@@ -444,7 +444,7 @@ void CUPSManager::runDests()
cups_dest_t* pDests = NULL;
// #i86306# prepare against really broken CUPS installations / missing servers
-
+
// install signal handler for SEGV, BUS and ABRT
struct sigaction act;
struct sigaction oact[3];
@@ -452,7 +452,7 @@ void CUPSManager::runDests()
act.sa_handler = lcl_signal_action;
act.sa_flags = 0;
sigemptyset(&(act.sa_mask));
-
+
int nSegvSignalInstalled = sigaction(SIGSEGV, &act, &oact[0]);
int nBusSignalInstalled = sigaction(SIGBUS, &act, &oact[1]);
int nAbortSignalInstalled = sigaction(SIGABRT, &act, &oact[2]);
@@ -464,7 +464,7 @@ void CUPSManager::runDests()
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "came out of cupsGetDests\n" );
#endif
-
+
osl::MutexGuard aGuard( m_aCUPSMutex );
m_nDests = nDests;
m_pDests = pDests;
@@ -479,7 +479,7 @@ void CUPSManager::runDests()
fprintf( stderr, "cupsGetDests crashed, not using CUPS\n" );
#endif
}
-
+
// restore old signal handlers
if( nSegvSignalInstalled == 0 )
sigaction( SIGSEGV, &oact[0], NULL );
@@ -493,12 +493,12 @@ void CUPSManager::initialize()
{
// get normal printers, clear printer list
PrinterInfoManager::initialize();
-
+
#ifdef ENABLE_CUPS
// check whether thread has completed
// if not behave like old printing system
osl::MutexGuard aGuard( m_aCUPSMutex );
-
+
if( ! m_bNewDests )
return;
@@ -516,7 +516,7 @@ void CUPSManager::initialize()
if( ! (m_nDests && m_pDests ) )
return;
-
+
if( isCUPSDisabled() )
return;
@@ -538,7 +538,7 @@ void CUPSManager::initialize()
rtl_TextEncoding aEncoding = osl_getThreadTextEncoding();
int nPrinter = m_nDests;
-
+
// reset global default PPD options; these are queried on demand from CUPS
m_aGlobalDefaults.m_pParser = NULL;
m_aGlobalDefaults.m_aContext = PPDContext();
@@ -648,8 +648,8 @@ static void updatePrinterContextInfo( ppd_group_t* pPPDGroup, PPDContext& rConte
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "key %s is set to %s\n", pOption->keyword, pChoice->choice );
#endif
-
- }
+
+ }
#if OSL_DEBUG_LEVEL > 1
else
fprintf( stderr, "key %s is defaulted to %s\n", pOption->keyword, pChoice->choice );
@@ -712,7 +712,7 @@ const PPDParser* CUPSManager::createCUPSParser( const OUString& rPrinter )
PPDParser* pCUPSParser = new PPDParser( aFileName );
pCUPSParser->m_aFile = rPrinter;
pNewParser = pCUPSParser;
-
+
/*int nConflicts =*/ m_pCUPSWrapper->cupsMarkOptions( pPPD, pDest->num_options, pDest->options );
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "processing the following options for printer %s (instance %s):\n",
@@ -723,7 +723,7 @@ const PPDParser* CUPSManager::createCUPSParser( const OUString& rPrinter )
pDest->options[k].value );
#endif
PrinterInfo& rInfo = m_aPrinters[ aPrinter ].m_aInfo;
-
+
// remember the default context for later use
PPDContext& rContext = m_aDefaultContexts[ aPrinter ];
rContext.setParser( pNewParser );
@@ -732,18 +732,18 @@ const PPDParser* CUPSManager::createCUPSParser( const OUString& rPrinter )
setDefaultPaper( rContext );
for( int i = 0; i < pPPD->num_groups; i++ )
updatePrinterContextInfo( pPPD->groups + i, rContext );
-
+
rInfo.m_pParser = pNewParser;
rInfo.m_aContext = rContext;
-
+
// clean up the mess
- m_pCUPSWrapper->ppdClose( pPPD );
+ m_pCUPSWrapper->ppdClose( pPPD );
}
#if OSL_DEBUG_LEVEL > 1
else
fprintf( stderr, "ppdOpenFile failed, falling back to generic driver\n" );
#endif
-
+
// remove temporary PPD file
unlink( aPPDFile.getStr() );
}
@@ -769,9 +769,9 @@ const PPDParser* CUPSManager::createCUPSParser( const OUString& rPrinter )
{
// get the default PPD
pNewParser = PPDParser::getParser( String( RTL_CONSTASCII_USTRINGPARAM( "SGENPRT" ) ) );
-
+
PrinterInfo& rInfo = m_aPrinters[ aPrinter ].m_aInfo;
-
+
rInfo.m_pParser = pNewParser;
rInfo.m_aContext.setParser( pNewParser );
}
@@ -820,8 +820,8 @@ void CUPSManager::setupJobContextData(
p_it->second.m_aInfo.m_aContext = m_aDefaultContexts[ aPrinter ];
}
- rData.m_pParser = p_it->second.m_aInfo.m_pParser;
- rData.m_aContext = p_it->second.m_aInfo.m_aContext;
+ rData.m_pParser = p_it->second.m_aInfo.m_pParser;
+ rData.m_aContext = p_it->second.m_aInfo.m_aContext;
#endif
}
@@ -829,7 +829,7 @@ FILE* CUPSManager::startSpool( const OUString& rPrintername, bool bQuickCommand
{
if( m_aCUPSDestMap.find( rPrintername ) == m_aCUPSDestMap.end() )
return PrinterInfoManager::startSpool( rPrintername, bQuickCommand );
-
+
#ifdef ENABLE_CUPS
OUString aTmpURL, aTmpFile;
osl_createTempFile( NULL, NULL, &aTmpURL.pData );
@@ -838,7 +838,7 @@ FILE* CUPSManager::startSpool( const OUString& rPrintername, bool bQuickCommand
FILE* fp = fopen( aSysFile.getStr(), "w" );
if( fp )
m_aSpoolFiles[fp] = aSysFile;
-
+
return fp;
#else
return NULL;
@@ -847,7 +847,7 @@ FILE* CUPSManager::startSpool( const OUString& rPrintername, bool bQuickCommand
struct less_ppd_key : public ::std::binary_function<double, double, bool>
{
- bool operator()(const PPDKey* left, const PPDKey* right)
+ bool operator()(const PPDKey* left, const PPDKey* right)
{ return left->getOrderDependency() < right->getOrderDependency(); }
};
@@ -888,7 +888,7 @@ int CUPSManager::endSpool( const OUString& rPrintername, const OUString& rJobTit
int nJobID = 0;
osl::MutexGuard aGuard( m_aCUPSMutex );
-
+
std::hash_map< OUString, int, OUStringHash >::iterator dest_it =
m_aCUPSDestMap.find( rPrintername );
if( dest_it == m_aCUPSDestMap.end() )
@@ -900,7 +900,7 @@ int CUPSManager::endSpool( const OUString& rPrintername, const OUString& rJobTit
{
fclose( pFile );
rtl_TextEncoding aEnc = osl_getThreadTextEncoding();
-
+
// setup cups options
int nNumOptions = 0;
cups_option_t* pOptions = NULL;
@@ -927,7 +927,7 @@ int CUPSManager::endSpool( const OUString& rPrintername, const OUString& rJobTit
aCmd = aCmd + OString( " $HOME/cupsprint.ps" );
system( aCmd.getStr() );
#endif
-
+
unlink( it->second.getStr() );
m_aSpoolFiles.erase( pFile );
if( pOptions )
@@ -970,7 +970,7 @@ bool CUPSManager::checkPrintersChanged( bool bWait )
// where the user can set SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION
// (see vcl/unx/source/gdi/salprnpsp.cxx)
// so that checkPrintersChanged( true ) will never be called
-
+
// there is no way to query CUPS whether the printer list has changed
// so get the dest list anew
if( m_nDests && m_pDests )
@@ -993,7 +993,7 @@ bool CUPSManager::checkPrintersChanged( bool bWait )
if( bChanged )
m_bNewDests = true;
}
-
+
if( bChanged )
initialize();
@@ -1038,7 +1038,7 @@ bool CUPSManager::setDefaultPrinter( const OUString& rName )
else
#endif
bSuccess = PrinterInfoManager::setDefaultPrinter( rName );
-
+
return bSuccess;
}
@@ -1055,7 +1055,7 @@ bool CUPSManager::writePrinterConfig()
m_aCUPSDestMap.find( prt->first );
if( nit == m_aCUPSDestMap.end() )
continue;
-
+
if( ! prt->second.m_bModified )
continue;
@@ -1067,7 +1067,7 @@ bool CUPSManager::writePrinterConfig()
// create new option list
int nNewOptions = 0;
- cups_option_t* pNewOptions = NULL;
+ cups_option_t* pNewOptions = NULL;
int nValues = rInfo.m_aContext.countValuesModified();
for( int i = 0; i < nValues; i++ )
{
@@ -1124,12 +1124,12 @@ const char* CUPSManager::authenticateUser( const char* /*pIn*/ )
OString aServer = m_pCUPSWrapper->cupsServer();
OString aPassword;
if( getpw( aServer, aUser, aPassword ) )
- {
+ {
m_aPassword = aPassword;
m_aUser = aUser;
m_pCUPSWrapper->cupsSetUser( m_aUser.getStr() );
pRet = m_aPassword.getStr();
- }
+ }
}
osl_unloadModule( pLib );
}
diff --git a/vcl/unx/source/printer/jobdata.cxx b/vcl/unx/source/printer/jobdata.cxx
index 3007a80e8a58..a10d49ad8fdc 100644
--- a/vcl/unx/source/printer/jobdata.cxx
+++ b/vcl/unx/source/printer/jobdata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,18 +41,18 @@ using namespace rtl;
JobData& JobData::operator=(const JobData& rRight)
{
- m_nCopies = rRight.m_nCopies;
- m_nLeftMarginAdjust = rRight.m_nLeftMarginAdjust;
- m_nRightMarginAdjust = rRight.m_nRightMarginAdjust;
- m_nTopMarginAdjust = rRight.m_nTopMarginAdjust;
- m_nBottomMarginAdjust = rRight.m_nBottomMarginAdjust;
- m_nColorDepth = rRight.m_nColorDepth;
- m_eOrientation = rRight.m_eOrientation;
- m_aPrinterName = rRight.m_aPrinterName;
- m_pParser = rRight.m_pParser;
- m_aContext = rRight.m_aContext;
- m_nPSLevel = rRight.m_nPSLevel;
- m_nColorDevice = rRight.m_nColorDevice;
+ m_nCopies = rRight.m_nCopies;
+ m_nLeftMarginAdjust = rRight.m_nLeftMarginAdjust;
+ m_nRightMarginAdjust = rRight.m_nRightMarginAdjust;
+ m_nTopMarginAdjust = rRight.m_nTopMarginAdjust;
+ m_nBottomMarginAdjust = rRight.m_nBottomMarginAdjust;
+ m_nColorDepth = rRight.m_nColorDepth;
+ m_eOrientation = rRight.m_eOrientation;
+ m_aPrinterName = rRight.m_aPrinterName;
+ m_pParser = rRight.m_pParser;
+ m_aContext = rRight.m_aContext;
+ m_nPSLevel = rRight.m_nPSLevel;
+ m_nColorDevice = rRight.m_nColorDevice;
if( ! m_pParser && m_aPrinterName.getLength() )
{
diff --git a/vcl/unx/source/printer/ppdparser.cxx b/vcl/unx/source/printer/ppdparser.cxx
index c10f8aca8664..2c589b44a9e8 100644
--- a/vcl/unx/source/printer/ppdparser.cxx
+++ b/vcl/unx/source/printer/ppdparser.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,23 +71,23 @@ namespace psp
struct LocaleHash
{
size_t operator()(const com::sun::star::lang::Locale& rLocale) const
- { return
+ { return
(size_t)rLocale.Language.hashCode()
^ (size_t)rLocale.Country.hashCode()
^ (size_t)rLocale.Variant.hashCode()
;
}
};
-
+
typedef std::hash_map< com::sun::star::lang::Locale, rtl::OUString, LocaleHash, LocaleEqual > translation_map;
typedef std::hash_map< rtl::OUString, translation_map, rtl::OUStringHash > key_translation_map;
-
+
key_translation_map m_aTranslations;
public:
PPDTranslator() {}
~PPDTranslator() {}
-
-
+
+
void insertValue(
const rtl::OUString& i_rKey,
const rtl::OUString& i_rOption,
@@ -95,7 +95,7 @@ namespace psp
const rtl::OUString& i_rTranslation,
const com::sun::star::lang::Locale& i_rLocale = com::sun::star::lang::Locale()
);
-
+
void insertOption( const rtl::OUString& i_rKey,
const rtl::OUString& i_rOption,
const rtl::OUString& i_rTranslation,
@@ -103,14 +103,14 @@ namespace psp
{
insertValue( i_rKey, i_rOption, rtl::OUString(), i_rTranslation, i_rLocale );
}
-
+
void insertKey( const rtl::OUString& i_rKey,
const rtl::OUString& i_rTranslation,
const com::sun::star::lang::Locale& i_rLocale = com::sun::star::lang::Locale() )
{
insertValue( i_rKey, rtl::OUString(), rtl::OUString(), i_rTranslation, i_rLocale );
}
-
+
rtl::OUString translateValue(
const rtl::OUString& i_rKey,
const rtl::OUString& i_rOption,
@@ -131,7 +131,7 @@ namespace psp
return translateValue( i_rKey, rtl::OUString(), rtl::OUString(), i_rLocale );
}
};
-
+
static com::sun::star::lang::Locale normalizeInputLocale(
const com::sun::star::lang::Locale& i_rLocale,
bool bInsertDefault = false
@@ -161,7 +161,7 @@ namespace psp
aLoc.Language = aLoc.Language.toAsciiLowerCase();
aLoc.Country = aLoc.Country.toAsciiUpperCase();
aLoc.Variant = aLoc.Variant.toAsciiUpperCase();
-
+
return aLoc;
}
@@ -195,7 +195,7 @@ namespace psp
m_aTranslations[ aK ][ aLoc ] = i_rTranslation;
}
}
-
+
rtl::OUString PPDTranslator::translateValue(
const rtl::OUString& i_rKey,
const rtl::OUString& i_rOption,
@@ -204,7 +204,7 @@ namespace psp
) const
{
rtl::OUString aResult;
-
+
rtl::OUStringBuffer aKey( i_rKey.getLength() + i_rOption.getLength() + i_rValue.getLength() + 2 );
aKey.append( i_rKey );
if( i_rOption.getLength() || i_rValue.getLength() )
@@ -224,7 +224,7 @@ namespace psp
if( it != m_aTranslations.end() )
{
const translation_map& rMap( it->second );
-
+
com::sun::star::lang::Locale aLoc( normalizeInputLocale( i_rLocale, true ) );
for( int nTry = 0; nTry < 4; nTry++ )
{
@@ -266,15 +266,15 @@ class PPDDecompressStream
SvFileStream* mpFileStream;
SvMemoryStream* mpMemStream;
rtl::OUString maFileName;
-
+
// forbid copying
PPDDecompressStream( const PPDDecompressStream& );
PPDDecompressStream& operator=(const PPDDecompressStream& );
-
+
public:
PPDDecompressStream( const rtl::OUString& rFile );
~PPDDecompressStream();
-
+
bool IsOpen() const;
bool IsEof() const;
void ReadLine( ByteString& o_rLine);
@@ -301,7 +301,7 @@ void PPDDecompressStream::Open( const rtl::OUString& i_rFile )
mpFileStream = new SvFileStream( i_rFile, STREAM_READ );
maFileName = mpFileStream->GetFileName();
-
+
if( ! mpFileStream->IsOpen() )
{
Close();
@@ -311,7 +311,7 @@ void PPDDecompressStream::Open( const rtl::OUString& i_rFile )
ByteString aLine;
mpFileStream->ReadLine( aLine );
mpFileStream->Seek( 0 );
-
+
// check for compress'ed or gzip'ed file
ULONG nCompressMethod = 0;
if( aLine.Len() > 1 && static_cast<unsigned char>(aLine.GetChar( 0 )) == 0x1f )
@@ -371,7 +371,7 @@ static osl::FileBase::RC resolveLink( const rtl::OUString& i_rURL, rtl::OUString
{
osl::DirectoryItem aLinkItem;
osl::FileBase::RC aRet = osl::FileBase::E_None;
-
+
if( ( aRet = osl::DirectoryItem::get( i_rURL, aLinkItem ) ) == osl::FileBase::E_None )
{
osl::FileStatus aStatus( FileStatusMask_FileName | FileStatusMask_Type | FileStatusMask_LinkTargetURL );
@@ -420,17 +420,17 @@ void PPDParser::scanPPDDir( const String& rDir )
aURLBuf.append( rDir );
aURLBuf.append( sal_Unicode( '/' ) );
aURLBuf.append( aStatus.getFileName() );
-
+
rtl::OUString aFileURL, aFileName;
osl::FileStatus::Type eType = osl::FileStatus::Unknown;
-
+
if( resolveLink( aURLBuf.makeStringAndClear(), aFileURL, aFileName, eType ) == osl::FileBase::E_None )
{
if( eType == osl::FileStatus::Regular )
{
INetURLObject aPPDFile = aPPDDir;
aPPDFile.Append( aFileName );
-
+
// match extension
for( int nSuffix = 0; nSuffix < nSuffixes; nSuffix++ )
{
@@ -498,7 +498,7 @@ void PPDParser::getKnownPPDDrivers( std::list< rtl::OUString >& o_rDrivers, bool
initPPDFiles();
o_rDrivers.clear();
-
+
std::hash_map< OUString, OUString, OUStringHash >::const_iterator it;
for( it = pAllPPDFiles->begin(); it != pAllPPDFiles->end(); ++it )
o_rDrivers.push_back( it->first );
@@ -512,7 +512,7 @@ String PPDParser::getPPDFile( const String& rFile )
if( ! aStream.IsOpen() )
{
std::hash_map< OUString, OUString, OUStringHash >::const_iterator it;
-
+
bool bRetry = true;
do
{
@@ -530,7 +530,7 @@ String PPDParser::getPPDFile( const String& rFile )
if( nLastIndex > 0 )
aBase = aBase.copy( 0, nLastIndex );
} while( it == pAllPPDFiles->end() && nLastIndex > 0 );
-
+
if( it == pAllPPDFiles->end() && bRetry )
{
// a new file ? rehash
@@ -540,7 +540,7 @@ String PPDParser::getPPDFile( const String& rFile )
// no new files occur and initPPDFiles is called only once
}
} while( ! pAllPPDFiles );
-
+
if( it != pAllPPDFiles->end() )
aStream.Open( it->second );
}
@@ -950,7 +950,7 @@ void PPDParser::parse( ::std::list< ByteString >& rLines )
// default values are parsed in pass 2
if( aKey.CompareTo( "Default", 7 ) == COMPARE_EQUAL )
continue;
-
+
bool bQuery = false;
if( aKey.GetChar( 0 ) == '?' )
{
@@ -978,7 +978,7 @@ void PPDParser::parse( ::std::list< ByteString >& rLines )
}
bIsGlobalizedLine = true;
}
-
+
String aOption;
nPos = aCurrentLine.Search( ':' );
if( nPos != STRING_NOTFOUND )
@@ -1002,7 +1002,7 @@ void PPDParser::parse( ::std::list< ByteString >& rLines )
int nTransPos = aLine.Search( '/' );
if( nTransPos != STRING_NOTFOUND )
aOptionTranslation = handleTranslation( aLine.Copy( nTransPos+1 ), bIsGlobalizedLine );
-
+
// read in more lines if necessary for multiline values
aLine = aCurrentLine.Copy( nPos+1 );
if( aLine.Len() )
@@ -1019,7 +1019,7 @@ void PPDParser::parse( ::std::list< ByteString >& rLines )
}
}
aLine = WhitespaceToSpace( aLine );
-
+
// #i100644# handle a missing value (actually a broken PPD)
if( ! aLine.Len() )
{
@@ -1066,7 +1066,7 @@ void PPDParser::parse( ::std::list< ByteString >& rLines )
eType = eString;
}
}
-
+
// handle globalized PPD entries
if( bIsGlobalizedLine )
{
@@ -1103,7 +1103,7 @@ void PPDParser::parse( ::std::list< ByteString >& rLines )
continue;
pValue->m_eType = eType;
pValue->m_aValue = aValue;
-
+
if( aOptionTranslation.getLength() )
m_pTranslator->insertOption( aUniKey, aOption, aOptionTranslation, aTransLocale );
if( aValueTranslation.getLength() )
@@ -1724,7 +1724,7 @@ const PPDValue* PPDKey::getValueCaseInsensitive( const String& rOption ) const
if( m_aOrderedValues[n]->m_aOption.EqualsIgnoreCaseAscii( rOption ) )
pValue = m_aOrderedValues[n];
}
-
+
return pValue;
}
diff --git a/vcl/unx/source/printer/printerinfomanager.cxx b/vcl/unx/source/printer/printerinfomanager.cxx
index 0fff5b590b98..c71088fb03a5 100644
--- a/vcl/unx/source/printer/printerinfomanager.cxx
+++ b/vcl/unx/source/printer/printerinfomanager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,16 +71,16 @@ namespace psp
std::list< PrinterInfoManager::SystemPrintQueue >
m_aQueues;
OUString m_aCommand;
-
+
virtual void run();
-
+
public:
SystemQueueInfo();
~SystemQueueInfo();
-
+
bool hasChanged() const;
OUString getCommand() const;
-
+
// sets changed status to false; therefore not const
void getSystemQueues( std::list< PrinterInfoManager::SystemPrintQueue >& rQueues );
};
@@ -95,20 +95,20 @@ namespace psp
PrinterInfoManager& PrinterInfoManager::get()
{
static PrinterInfoManager* pManager = NULL;
-
+
if( ! pManager )
{
pManager = CUPSManager::tryLoadCUPS();
if( ! pManager )
pManager = new PrinterInfoManager();
-
+
if( pManager )
pManager->initialize();
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "PrinterInfoManager::get create Manager of type %d\n", pManager->getType() );
#endif
}
-
+
return *pManager;
}
@@ -189,7 +189,7 @@ bool PrinterInfoManager::checkPrintersChanged( bool bWait )
}
}
}
-
+
if( bWait && m_pQueueInfo )
{
#if OSL_DEBUG_LEVEL > 1
@@ -200,14 +200,14 @@ bool PrinterInfoManager::checkPrintersChanged( bool bWait )
fprintf( stderr, "done: syncing printer discovery thread\n" );
#endif
}
-
+
if( ! bChanged && m_pQueueInfo )
bChanged = m_pQueueInfo->hasChanged();
if( bChanged )
{
initialize();
}
-
+
return bChanged;
}
@@ -220,19 +220,19 @@ void PrinterInfoManager::initialize()
m_aPrinters.clear();
m_aWatchFiles.clear();
OUString aDefaultPrinter;
-
+
// first initialize the global defaults
// have to iterate over all possible files
// there should be only one global setup section in all
// available config files
m_aGlobalDefaults = PrinterInfo();
-
+
// need a parser for the PPDContext. generic printer should do.
m_aGlobalDefaults.m_pParser = PPDParser::getParser( String( RTL_CONSTASCII_USTRINGPARAM( "SGENPRT" ) ) );
m_aGlobalDefaults.m_aContext.setParser( m_aGlobalDefaults.m_pParser );
m_aGlobalDefaults.m_bPerformFontSubstitution = true;
m_bDisableCUPS = false;
-
+
if( ! m_aGlobalDefaults.m_pParser )
{
#if OSL_DEBUG_LEVEL > 1
@@ -240,7 +240,7 @@ void PrinterInfoManager::initialize()
#endif
return;
}
-
+
std::list< OUString > aDirList;
psp::getPrinterPathList( aDirList, NULL );
std::list< OUString >::const_iterator print_dir_it;
@@ -255,15 +255,15 @@ void PrinterInfoManager::initialize()
fprintf( stderr, "found global defaults in %s\n", OUStringToOString( aFile.PathToFileName(), RTL_TEXTENCODING_ISO_8859_1 ).getStr() );
#endif
aConfig.SetGroup( GLOBAL_DEFAULTS_GROUP );
-
+
ByteString aValue( aConfig.ReadKey( "Copies" ) );
if( aValue.Len() )
m_aGlobalDefaults.m_nCopies = aValue.ToInt32();
-
+
aValue = aConfig.ReadKey( "Orientation" );
if( aValue.Len() )
m_aGlobalDefaults.m_eOrientation = aValue.EqualsIgnoreCaseAscii( "Landscape" ) ? orientation::Landscape : orientation::Portrait;
-
+
aValue = aConfig.ReadKey( "MarginAdjust" );
if( aValue.Len() )
{
@@ -272,19 +272,19 @@ void PrinterInfoManager::initialize()
m_aGlobalDefaults.m_nTopMarginAdjust = aValue.GetToken( 2, ',' ).ToInt32();
m_aGlobalDefaults.m_nBottomMarginAdjust = aValue.GetToken( 3, ',' ).ToInt32();
}
-
+
aValue = aConfig.ReadKey( "ColorDepth", "24" );
if( aValue.Len() )
m_aGlobalDefaults.m_nColorDepth = aValue.ToInt32();
-
+
aValue = aConfig.ReadKey( "ColorDevice" );
if( aValue.Len() )
m_aGlobalDefaults.m_nColorDevice = aValue.ToInt32();
-
+
aValue = aConfig.ReadKey( "PSLevel" );
if( aValue.Len() )
m_aGlobalDefaults.m_nPSLevel = aValue.ToInt32();
-
+
aValue = aConfig.ReadKey( "PerformFontSubstitution" );
if( aValue.Len() )
{
@@ -293,7 +293,7 @@ void PrinterInfoManager::initialize()
else
m_aGlobalDefaults.m_bPerformFontSubstitution = false;
}
-
+
aValue = aConfig.ReadKey( "DisableCUPS" );
if( aValue.Len() )
{
@@ -302,7 +302,7 @@ void PrinterInfoManager::initialize()
else
m_bDisableCUPS = false;
}
-
+
// get the PPDContext of global JobData
for( int nKey = 0; nKey < aConfig.GetKeyCount(); nKey++ )
{
@@ -332,14 +332,14 @@ void PrinterInfoManager::initialize()
}
setDefaultPaper( m_aGlobalDefaults.m_aContext );
fillFontSubstitutions( m_aGlobalDefaults );
-
+
// now collect all available printers
for( print_dir_it = aDirList.begin(); print_dir_it != aDirList.end(); ++print_dir_it )
{
INetURLObject aDir( *print_dir_it, INET_PROT_FILE, INetURLObject::ENCODE_ALL );
INetURLObject aFile( aDir );
aFile.Append( String( RTL_CONSTASCII_USTRINGPARAM( PRINT_FILENAME ) ) );
-
+
// check directory validity
OUString aUniPath;
FileBase::getFileURLFromSystemPath( aDir.PathToFileName(), aUniPath );
@@ -347,12 +347,12 @@ void PrinterInfoManager::initialize()
if( aDirectory.open() )
continue;
aDirectory.close();
-
-
+
+
FileBase::getFileURLFromSystemPath( aFile.PathToFileName(), aUniPath );
FileStatus aStatus( FileStatusMask_ModifyTime );
DirectoryItem aItem;
-
+
// setup WatchFile list
WatchFile aWatchFile;
aWatchFile.m_aFilePath = aUniPath;
@@ -367,7 +367,7 @@ void PrinterInfoManager::initialize()
aWatchFile.m_aModified.Nanosec = 0;
}
m_aWatchFiles.push_back( aWatchFile );
-
+
Config aConfig( aFile.PathToFileName() );
for( int nGroup = 0; nGroup < aConfig.GetGroupCount(); nGroup++ )
{
@@ -376,12 +376,12 @@ void PrinterInfoManager::initialize()
if( aValue.Len() )
{
OUString aPrinterName;
-
+
int nNamePos = aValue.Search( '/' );
// check for valid value of "Printer"
if( nNamePos == STRING_NOTFOUND )
continue;
-
+
Printer aPrinter;
// initialize to global defaults
aPrinter.m_aInfo = m_aGlobalDefaults;
@@ -390,11 +390,11 @@ void PrinterInfoManager::initialize()
// newly created printers
aPrinter.m_aInfo.m_aFontSubstitutes.clear();
aPrinter.m_aInfo.m_aFontSubstitutions.clear();
-
+
aPrinterName = String( aValue.Copy( nNamePos+1 ), RTL_TEXTENCODING_UTF8 );
aPrinter.m_aInfo.m_aPrinterName = aPrinterName;
aPrinter.m_aInfo.m_aDriverName = String( aValue.Copy( 0, nNamePos ), RTL_TEXTENCODING_UTF8 );
-
+
// set parser, merge settings
// don't do this for CUPS printers as this is done
// by the CUPS system itself
@@ -403,11 +403,11 @@ void PrinterInfoManager::initialize()
aPrinter.m_aInfo.m_pParser = PPDParser::getParser( aPrinter.m_aInfo.m_aDriverName );
aPrinter.m_aInfo.m_aContext.setParser( aPrinter.m_aInfo.m_pParser );
// note: setParser also purges the context
-
+
// ignore this printer if its driver is not found
if( ! aPrinter.m_aInfo.m_pParser )
continue;
-
+
// merge the ppd context keys if the printer has the same keys and values
// this is a bit tricky, since it involves mixing two PPDs
// without constraints which might end up badly
@@ -432,7 +432,7 @@ void PrinterInfoManager::initialize()
aPrinter.m_aInfo.m_aContext.setValue( pPrinterKey, NULL );
}
}
-
+
aValue = aConfig.ReadKey( "Command" );
// no printer without a command
if( ! aValue.Len() )
@@ -449,32 +449,32 @@ void PrinterInfoManager::initialize()
}
aPrinter.m_aInfo.m_aCommand = String( aValue, RTL_TEXTENCODING_UTF8 );
}
-
+
aValue = aConfig.ReadKey( "QuickCommand" );
aPrinter.m_aInfo.m_aQuickCommand = String( aValue, RTL_TEXTENCODING_UTF8 );
-
+
aValue = aConfig.ReadKey( "Features" );
aPrinter.m_aInfo.m_aFeatures = String( aValue, RTL_TEXTENCODING_UTF8 );
-
+
// override the settings in m_aGlobalDefaults if keys exist
aValue = aConfig.ReadKey( "DefaultPrinter" );
if( ! aValue.Equals( "0" ) && ! aValue.EqualsIgnoreCaseAscii( "false" ) )
aDefaultPrinter = aPrinterName;
-
+
aValue = aConfig.ReadKey( "Location" );
aPrinter.m_aInfo.m_aLocation = String( aValue, RTL_TEXTENCODING_UTF8 );
-
+
aValue = aConfig.ReadKey( "Comment" );
aPrinter.m_aInfo.m_aComment = String( aValue, RTL_TEXTENCODING_UTF8 );
-
+
aValue = aConfig.ReadKey( "Copies" );
if( aValue.Len() )
aPrinter.m_aInfo.m_nCopies = aValue.ToInt32();
-
+
aValue = aConfig.ReadKey( "Orientation" );
if( aValue.Len() )
aPrinter.m_aInfo.m_eOrientation = aValue.EqualsIgnoreCaseAscii( "Landscape" ) ? orientation::Landscape : orientation::Portrait;
-
+
aValue = aConfig.ReadKey( "MarginAdjust" );
if( aValue.Len() )
{
@@ -483,25 +483,25 @@ void PrinterInfoManager::initialize()
aPrinter.m_aInfo.m_nTopMarginAdjust = aValue.GetToken( 2, ',' ).ToInt32();
aPrinter.m_aInfo.m_nBottomMarginAdjust = aValue.GetToken( 3, ',' ).ToInt32();
}
-
+
aValue = aConfig.ReadKey( "ColorDepth" );
if( aValue.Len() )
aPrinter.m_aInfo.m_nColorDepth = aValue.ToInt32();
-
+
aValue = aConfig.ReadKey( "ColorDevice" );
if( aValue.Len() )
aPrinter.m_aInfo.m_nColorDevice = aValue.ToInt32();
-
+
aValue = aConfig.ReadKey( "PSLevel" );
if( aValue.Len() )
aPrinter.m_aInfo.m_nPSLevel = aValue.ToInt32();
-
+
aValue = aConfig.ReadKey( "PerformFontSubstitution" );
if( ! aValue.Equals( "0" ) && ! aValue.EqualsIgnoreCaseAscii( "false" ) )
aPrinter.m_aInfo.m_bPerformFontSubstitution = true;
else
aPrinter.m_aInfo.m_bPerformFontSubstitution = false;
-
+
// now iterate over all keys to extract multi key information:
// 1. PPDContext information
// 2. Font substitution table
@@ -526,10 +526,10 @@ void PrinterInfoManager::initialize()
aPrinter.m_aInfo.m_aFontSubstitutes[ OStringToOUString( aKey.Copy( 10 ), RTL_TEXTENCODING_ISO_8859_1 ) ] = OStringToOUString( aValue, RTL_TEXTENCODING_ISO_8859_1 );
}
}
-
+
setDefaultPaper( aPrinter.m_aInfo.m_aContext );
fillFontSubstitutions( aPrinter.m_aInfo );
-
+
// finally insert printer
FileBase::getFileURLFromSystemPath( aFile.PathToFileName(), aPrinter.m_aFile );
aPrinter.m_bModified = false;
@@ -545,7 +545,7 @@ void PrinterInfoManager::initialize()
}
}
}
-
+
// set default printer
if( m_aPrinters.size() )
{
@@ -555,23 +555,23 @@ void PrinterInfoManager::initialize()
else
aDefaultPrinter = OUString();
m_aDefaultPrinter = aDefaultPrinter;
-
+
if( m_eType != Default )
return;
-
+
// add a default printer for every available print queue
// merge paper and font substitution from default printer,
// all else from global defaults
PrinterInfo aMergeInfo( m_aGlobalDefaults );
aMergeInfo.m_aDriverName = String( RTL_CONSTASCII_USTRINGPARAM( "SGENPRT" ) );
aMergeInfo.m_aFeatures = String( RTL_CONSTASCII_USTRINGPARAM( "autoqueue" ) );
-
+
if( m_aDefaultPrinter.getLength() )
{
PrinterInfo aDefaultInfo( getPrinterInfo( m_aDefaultPrinter ) );
aMergeInfo.m_bPerformFontSubstitution = aDefaultInfo.m_bPerformFontSubstitution;
fillFontSubstitutions( aMergeInfo );
-
+
const PPDKey* pDefKey = aDefaultInfo.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) );
const PPDKey* pMergeKey = aMergeInfo.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) );
const PPDValue* pDefValue = aDefaultInfo.m_aContext.getValue( pDefKey );
@@ -579,23 +579,23 @@ void PrinterInfoManager::initialize()
if( pMergeKey && pMergeValue )
aMergeInfo.m_aContext.setValue( pMergeKey, pMergeValue );
}
-
+
getSystemPrintQueues();
for( ::std::list< SystemPrintQueue >::iterator it = m_aSystemPrintQueues.begin(); it != m_aSystemPrintQueues.end(); ++it )
{
String aPrinterName( RTL_CONSTASCII_USTRINGPARAM( "<" ) );
aPrinterName += String( it->m_aQueue );
aPrinterName.Append( '>' );
-
+
if( m_aPrinters.find( aPrinterName ) != m_aPrinters.end() )
// probably user made this one permanent in padmin
continue;
-
+
String aCmd( m_aSystemPrintCommand );
aCmd.SearchAndReplace( String( RTL_CONSTASCII_USTRINGPARAM( "(PRINTER)" ) ), it->m_aQueue );
-
+
Printer aPrinter;
-
+
// initialize to merged defaults
aPrinter.m_aInfo = aMergeInfo;
aPrinter.m_aInfo.m_aPrinterName = aPrinterName;
@@ -604,7 +604,7 @@ void PrinterInfoManager::initialize()
aPrinter.m_aInfo.m_aLocation = it->m_aLocation;
aPrinter.m_bModified = false;
aPrinter.m_aGroup = ByteString( aPrinterName, aEncoding ); //provide group name in case user makes this one permanent in padmin
-
+
m_aPrinters[ aPrinterName ] = aPrinter;
}
}
@@ -625,9 +625,9 @@ const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& rPrinter
{
static PrinterInfo aEmptyInfo;
::std::hash_map< OUString, Printer, OUStringHash >::const_iterator it = m_aPrinters.find( rPrinter );
-
+
DBG_ASSERT( it != m_aPrinters.end(), "Do not ask for info about nonexistant printers" );
-
+
return it != m_aPrinters.end() ? it->second.m_aInfo : aEmptyInfo;
}
@@ -636,9 +636,9 @@ const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& rPrinter
void PrinterInfoManager::changePrinterInfo( const OUString& rPrinter, const PrinterInfo& rNewInfo )
{
::std::hash_map< OUString, Printer, OUStringHash >::iterator it = m_aPrinters.find( rPrinter );
-
+
DBG_ASSERT( it != m_aPrinters.end(), "Do not change nonexistant printers" );
-
+
if( it != m_aPrinters.end() )
{
it->second.m_aInfo = rNewInfo;
@@ -669,7 +669,7 @@ bool PrinterInfoManager::writePrinterConfig()
::std::hash_map< OUString, Config*, OUStringHash > files;
::std::hash_map< OUString, int, OUStringHash > rofiles;
::std::hash_map< OUString, Config*, OUStringHash >::iterator file_it;
-
+
for( ::std::list< WatchFile >::const_iterator wit = m_aWatchFiles.begin(); wit != m_aWatchFiles.end(); ++wit )
{
if( checkWriteability( wit->m_aFilePath ) )
@@ -678,21 +678,21 @@ bool PrinterInfoManager::writePrinterConfig()
break;
}
}
-
+
if( files.empty() )
return false;
-
+
Config* pGlobal = files.begin()->second;
pGlobal->SetGroup( GLOBAL_DEFAULTS_GROUP );
pGlobal->WriteKey( "DisableCUPS", m_bDisableCUPS ? "true" : "false" );
-
+
::std::hash_map< OUString, Printer, OUStringHash >::iterator it;
for( it = m_aPrinters.begin(); it != m_aPrinters.end(); ++it )
{
if( ! it->second.m_bModified )
// printer was not changed, do nothing
continue;
-
+
// don't save autoqueue printers
sal_Int32 nIndex = 0;
bool bAutoQueue = false;
@@ -704,7 +704,7 @@ bool PrinterInfoManager::writePrinterConfig()
}
if( bAutoQueue )
continue;
-
+
if( it->second.m_aFile.getLength() )
{
// check if file is writable
@@ -737,16 +737,16 @@ bool PrinterInfoManager::writePrinterConfig()
}
else // a new printer, write it to the first file available
it->second.m_aFile = files.begin()->first;
-
+
if( ! it->second.m_aGroup.getLength() ) // probably a new printer
it->second.m_aGroup = OString( it->first.getStr(), it->first.getLength(), RTL_TEXTENCODING_UTF8 );
-
+
if( files.find( it->second.m_aFile ) != files.end() )
{
Config* pConfig = files[ it->second.m_aFile ];
pConfig->DeleteGroup( it->second.m_aGroup ); // else some old keys may remain
pConfig->SetGroup( it->second.m_aGroup );
-
+
ByteString aValue( String( it->second.m_aInfo.m_aDriverName ), RTL_TEXTENCODING_UTF8 );
aValue += '/';
aValue += ByteString( String( it->first ), RTL_TEXTENCODING_UTF8 );
@@ -770,7 +770,7 @@ bool PrinterInfoManager::writePrinterConfig()
aValue += ',';
aValue += ByteString::CreateFromInt32( it->second.m_aInfo.m_nBottomMarginAdjust );
pConfig->WriteKey( "MarginAdjust", aValue );
-
+
if( it->second.m_aInfo.m_aDriverName.compareToAscii( "CUPS:", 5 ) != 0 )
{
// write PPDContext (not for CUPS)
@@ -779,13 +779,13 @@ bool PrinterInfoManager::writePrinterConfig()
const PPDKey* pKey = it->second.m_aInfo.m_aContext.getModifiedKey( i );
ByteString aKey( "PPD_" );
aKey += ByteString( pKey->getKey(), RTL_TEXTENCODING_ISO_8859_1 );
-
+
const PPDValue* pValue = it->second.m_aInfo.m_aContext.getValue( pKey );
aValue = pValue ? ByteString( pValue->m_aOption, RTL_TEXTENCODING_ISO_8859_1 ) : ByteString( "*nil" );
pConfig->WriteKey( aKey, aValue );
}
}
-
+
// write font substitution table
pConfig->WriteKey( "PerformFontSubstitution", it->second.m_aInfo.m_bPerformFontSubstitution ? "true" : "false" );
for( ::std::hash_map< OUString, OUString, OUStringHash >::const_iterator subst = it->second.m_aInfo.m_aFontSubstitutes.begin();
@@ -797,11 +797,11 @@ bool PrinterInfoManager::writePrinterConfig()
}
}
}
-
+
// get rid of Config objects. this also writes any changes
for( file_it = files.begin(); file_it != files.end(); ++file_it )
delete file_it->second;
-
+
return true;
}
@@ -810,7 +810,7 @@ bool PrinterInfoManager::writePrinterConfig()
bool PrinterInfoManager::addPrinter( const OUString& rPrinterName, const OUString& rDriverName )
{
bool bSuccess = false;
-
+
const PPDParser* pParser = NULL;
if( m_aPrinters.find( rPrinterName ) == m_aPrinters.end() && ( pParser = PPDParser::getParser( rDriverName ) ) )
{
@@ -821,7 +821,7 @@ bool PrinterInfoManager::addPrinter( const OUString& rPrinterName, const OUStrin
aPrinter.m_aInfo.m_pParser = pParser;
aPrinter.m_aInfo.m_aContext.setParser( pParser );
aPrinter.m_aInfo.m_aPrinterName = rPrinterName;
-
+
fillFontSubstitutions( aPrinter.m_aInfo );
// merge PPD values with global defaults
for( int nPPDValueModified = 0; nPPDValueModified < m_aGlobalDefaults.m_aContext.countValuesModified(); nPPDValueModified++ )
@@ -843,7 +843,7 @@ bool PrinterInfoManager::addPrinter( const OUString& rPrinterName, const OUStrin
aPrinter.m_aInfo.m_aContext.setValue( pPrinterKey, NULL );
}
}
-
+
m_aPrinters[ rPrinterName ] = aPrinter;
bSuccess = true;
#if OSL_DEBUG_LEVEL > 1
@@ -866,15 +866,15 @@ bool PrinterInfoManager::addPrinter( const OUString& rPrinterName, const OUStrin
bool PrinterInfoManager::removePrinter( const OUString& rPrinterName, bool bCheckOnly )
{
bool bSuccess = true;
-
+
::std::hash_map< OUString, Printer, OUStringHash >::iterator it = m_aPrinters.find( rPrinterName );
if( it != m_aPrinters.end() )
{
if( it->second.m_aFile.getLength() )
{
// this printer already exists in a config file
-
-
+
+
// check writeability of config file(s)
if( ! checkWriteability( it->second.m_aFile ) )
bSuccess = false;
@@ -889,7 +889,7 @@ bool PrinterInfoManager::removePrinter( const OUString& rPrinterName, bool bChec
}
if( bSuccess && ! bCheckOnly )
{
-
+
Config aConfig( it->second.m_aFile );
aConfig.DeleteGroup( it->second.m_aGroup );
aConfig.Flush();
@@ -920,7 +920,7 @@ bool PrinterInfoManager::removePrinter( const OUString& rPrinterName, bool bChec
bool PrinterInfoManager::setDefaultPrinter( const OUString& rPrinterName )
{
bool bSuccess = false;
-
+
::std::hash_map< OUString, Printer, OUStringHash >::iterator it = m_aPrinters.find( rPrinterName );
if( it != m_aPrinters.end() )
{
@@ -946,21 +946,21 @@ void PrinterInfoManager::fillFontSubstitutions( PrinterInfo& rInfo ) const
{
PrintFontManager& rFontManager( PrintFontManager::get() );
rInfo.m_aFontSubstitutions.clear();
-
+
if( ! rInfo.m_bPerformFontSubstitution ||
! rInfo.m_aFontSubstitutes.size() )
return;
-
+
::std::list< FastPrintFontInfo > aFonts;
::std::hash_map< OUString, ::std::list< FastPrintFontInfo >, OUStringHash > aPrinterFonts;
rFontManager.getFontListWithFastInfo( aFonts, rInfo.m_pParser );
-
+
// get builtin fonts
::std::list< FastPrintFontInfo >::const_iterator it;
for( it = aFonts.begin(); it != aFonts.end(); ++it )
if( it->m_eType == fonttype::Builtin )
aPrinterFonts[ it->m_aFamilyName.toAsciiLowerCase() ].push_back( *it );
-
+
// map lower case, so build a local copy of the font substitutions
::std::hash_map< OUString, OUString, OUStringHash > aSubstitutions;
::std::hash_map< OUString, OUString, OUStringHash >::const_iterator subst;
@@ -974,8 +974,8 @@ void PrinterInfoManager::fillFontSubstitutions( PrinterInfo& rInfo ) const
else
aSubstitutions[ aFamily ] = subst->second.toAsciiLowerCase();
}
-
-
+
+
// now find substitutions
for( it = aFonts.begin(); it != aFonts.end(); ++it )
{
@@ -996,15 +996,15 @@ void PrinterInfoManager::fillFontSubstitutions( PrinterInfo& rInfo ) const
int nDiff;
if( builtin->m_eItalic == it->m_eItalic )
nMatch += 8000;
-
+
nDiff = builtin->m_eWeight - it->m_eWeight;
nDiff = nDiff < 0 ? -nDiff : nDiff;
nMatch += 4000 - 1000*nDiff;
-
+
nDiff = builtin->m_eWidth - it->m_eWidth;
nDiff = nDiff < 0 ? -nDiff : nDiff;
nMatch += 2000 - 500*nDiff;
-
+
if( nMatch > nLastMatch )
{
nLastMatch = nMatch;
@@ -1024,7 +1024,7 @@ void PrinterInfoManager::fillFontSubstitutions( PrinterInfo& rInfo ) const
it->m_eItalic == italic::Upright ? "r" : it->m_eItalic == italic::Oblique ? "o" : it->m_eItalic == italic::Italic ? "i" : "u",
it->m_eWeight,
it->m_eWidth,
-
+
OUStringToOString( aInfo.m_aFamilyName, RTL_TEXTENCODING_ISO_8859_1 ).getStr(),
aInfo.m_eItalic == italic::Upright ? "r" : aInfo.m_eItalic == italic::Oblique ? "o" : aInfo.m_eItalic == italic::Italic ? "i" : "u",
aInfo.m_eWeight,
@@ -1047,7 +1047,7 @@ void PrinterInfoManager::getSystemPrintCommands( std::list< OUString >& rCommand
m_pQueueInfo->getSystemQueues( m_aSystemPrintQueues );
delete m_pQueueInfo, m_pQueueInfo = NULL;
}
-
+
std::list< SystemPrintQueue >::const_iterator it;
rCommands.clear();
String aPrinterConst( RTL_CONSTASCII_USTRINGPARAM( "(PRINTER)" ) );
@@ -1067,7 +1067,7 @@ const std::list< PrinterInfoManager::SystemPrintQueue >& PrinterInfoManager::get
m_pQueueInfo->getSystemQueues( m_aSystemPrintQueues );
delete m_pQueueInfo, m_pQueueInfo = NULL;
}
-
+
return m_aSystemPrintQueues;
}
@@ -1093,7 +1093,7 @@ FILE* PrinterInfoManager::startSpool( const OUString& rPrintername, bool bQuickC
rPrinterInfo.m_aQuickCommand : rPrinterInfo.m_aCommand;
rtl::OString aShellCommand = OUStringToOString (rCommand, RTL_TEXTENCODING_ISO_8859_1);
aShellCommand += rtl::OString( " 2>/dev/null" );
-
+
return popen (aShellCommand.getStr(), "w");
}
@@ -1117,16 +1117,16 @@ void PrinterInfoManager::setDefaultPaper( PPDContext& rContext ) const
{
if( ! rContext.getParser() )
return;
-
+
const PPDKey* pPageSizeKey = rContext.getParser()->getKey( String( RTL_CONSTASCII_USTRINGPARAM( "PageSize" ) ) );
if( ! pPageSizeKey )
return;
-
+
int nModified = rContext.countValuesModified();
while( nModified-- &&
rContext.getModifiedKey( nModified ) != pPageSizeKey )
;
-
+
if( nModified >= 0 ) // paper was set already, do not modify
{
#if OSL_DEBUG_LEVEL > 1
@@ -1135,7 +1135,7 @@ void PrinterInfoManager::setDefaultPaper( PPDContext& rContext ) const
#endif
return;
}
-
+
// paper not set, fill in default value
const PPDValue* pPaperVal = NULL;
int nValues = pPageSizeKey->countValues();
@@ -1218,10 +1218,10 @@ static void lpgetSysQueueTokenHandler(
std::hash_set< OUString, OUStringHash > aOnlySet;
aUniqueSet.insert( OUString( RTL_CONSTASCII_USTRINGPARAM( "_all" ) ) );
aUniqueSet.insert( OUString( RTL_CONSTASCII_USTRINGPARAM( "_default" ) ) );
-
+
// the eventual "all" attribute of the "_all" queue tells us, which
// printers are to be used for this user at all
-
+
// find _all: line
rtl::OString aAllLine( "_all:" );
rtl::OString aAllAttr( "all=" );
@@ -1251,7 +1251,7 @@ static void lpgetSysQueueTokenHandler(
break;
}
}
-
+
bool bInsertAttribute = false;
rtl::OString aDescrStr( "description=" );
rtl::OString aLocStr( "location=" );
@@ -1320,7 +1320,7 @@ static void standardSysQueueTokenHandler(
it != i_rLines.end(); ++it )
{
sal_Int32 nPos = 0;
-
+
// search for a line describing a printer:
// find if there are enough tokens before the name
for( unsigned int i = 0; i < i_pParms->nForeTokenCount && nPos != -1; i++ )
@@ -1369,7 +1369,7 @@ void SystemQueueInfo::run()
char pBuffer[1024];
FILE *pPipe;
std::list< rtl::OString > aLines;
-
+
/* Discover which command we can use to get a list of all printer queues */
for( unsigned int i = 0; i < SAL_N_ELEMENTS(aParms); i++ )
{
@@ -1379,7 +1379,7 @@ void SystemQueueInfo::run()
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "trying print queue command \"%s\" ... ", aParms[i].pQueueCommand );
#endif
- aCmdLine.append( " 2>/dev/null" );
+ aCmdLine.append( " 2>/dev/null" );
if( (pPipe = popen( aCmdLine.getStr(), "r" )) )
{
while( fgets( pBuffer, 1024, pPipe ) )
@@ -1401,7 +1401,7 @@ void SystemQueueInfo::run()
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "failed\n" );
#endif
- }
+ }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/unx/source/printergfx/bitmap_gfx.cxx b/vcl/unx/source/printergfx/bitmap_gfx.cxx
index c33e11122c51..c7bdd33f7137 100644
--- a/vcl/unx/source/printergfx/bitmap_gfx.cxx
+++ b/vcl/unx/source/printergfx/bitmap_gfx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ const sal_uInt32 nLineLength = 80;
const sal_uInt32 nBufferSize = 16384;
/*
- *
+ *
* Bitmap compression / Hex encoding / Ascii85 Encoding
*
*/
@@ -50,7 +50,7 @@ PrinterBmp::~PrinterBmp ()
/* virtual base class */
-class ByteEncoder
+class ByteEncoder
{
private:
@@ -98,7 +98,7 @@ HexEncoder::~HexEncoder ()
WritePS (mpFile, "\n");
}
-void
+void
HexEncoder::WriteAscii (sal_uInt8 nByte)
{
sal_uInt32 nOff = psp::getHexValueOf (nByte, mpFileBuffer + mnOffset);
@@ -114,10 +114,10 @@ HexEncoder::WriteAscii (sal_uInt8 nByte)
FlushLine ();
}
-void
+void
HexEncoder::EncodeByte (sal_uInt8 nByte)
{
- WriteAscii (nByte);
+ WriteAscii (nByte);
}
void
@@ -130,7 +130,7 @@ HexEncoder::FlushLine ()
}
}
-/* Ascii85 encoder, is abi compatible with HexEncoder but writes a ~> to
+/* Ascii85 encoder, is abi compatible with HexEncoder but writes a ~> to
indicate end of data EOD */
class Ascii85Encoder : public ByteEncoder
@@ -219,7 +219,7 @@ Ascii85Encoder::ConvertToAscii85 ()
{
sal_uInt32 nEolOff = mnColumn - nLineLength;
sal_uInt32 nBufOff = mnOffset - nEolOff;
-
+
std::memmove (mpFileBuffer + nBufOff + 1, mpFileBuffer + nBufOff, nEolOff);
mpFileBuffer[ nBufOff ] = '\n';
@@ -303,7 +303,7 @@ public:
LZWEncoder (osl::File* pOutputFile);
~LZWEncoder ();
-
+
virtual void EncodeByte (sal_uInt8 nByte);
};
@@ -345,7 +345,7 @@ LZWEncoder::~LZWEncoder()
delete[] mpTable;
}
-void
+void
LZWEncoder::WriteBits (sal_uInt16 nCode, sal_uInt16 nCodeLen)
{
mdwShift |= (nCode << (mnOffset - nCodeLen));
@@ -360,7 +360,7 @@ LZWEncoder::WriteBits (sal_uInt16 nCode, sal_uInt16 nCodeLen)
WriteAscii ((sal_uInt8)(mdwShift >> 24));
}
-void
+void
LZWEncoder::EncodeByte (sal_uInt8 nByte )
{
LZWCTreeNode* p;
@@ -422,7 +422,7 @@ LZWEncoder::EncodeByte (sal_uInt8 nByte )
*/
void
-PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
+PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
const PrinterBmp& rBitmap)
{
double fScaleX = (double)rDest.GetWidth() / (double)rSrc.GetWidth();
@@ -445,7 +445,7 @@ PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
// image to save diskspace. This is important for printing transparent
// bitmaps that are disassembled into small pieces
sal_Int32 nImageSz = rSrc.GetWidth() * rSrc.GetHeight();
- sal_Int32 nPaletteSz = rBitmap.GetPaletteEntryCount();
+ sal_Int32 nPaletteSz = rBitmap.GetPaletteEntryCount();
if ((nImageSz < nPaletteSz) || (nImageSz < 24) )
DrawPS2TrueColorImage (rBitmap, rSrc);
else
@@ -456,7 +456,7 @@ PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
{
DrawPS2TrueColorImage (rBitmap, rSrc);
}
- else
+ else
{
DrawPS2GrayImage (rBitmap, rSrc);
}
@@ -471,7 +471,7 @@ PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
/* XXX does not work XXX */
void
-PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
+PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
const PrinterBmp& /*rBitmap*/, const PrinterBmp& /*rTransBitmap*/)
{
double fScaleX = (double)rDest.GetWidth() / (double)rSrc.GetWidth();
@@ -479,13 +479,13 @@ PrinterGfx::DrawBitmap (const Rectangle& rDest, const Rectangle& rSrc,
PSGSave ();
PSTranslate (rDest.BottomLeft());
- PSScale (fScaleX, fScaleY);
+ PSScale (fScaleX, fScaleY);
PSGRestore ();
}
/* XXX does not work XXX */
void
-PrinterGfx::DrawMask (const Rectangle& rDest, const Rectangle& rSrc,
+PrinterGfx::DrawMask (const Rectangle& rDest, const Rectangle& rSrc,
const PrinterBmp &/*rBitmap*/, PrinterColor& /*rMaskColor*/)
{
double fScaleX = (double)rDest.GetWidth() / (double)rSrc.GetWidth();
@@ -493,7 +493,7 @@ PrinterGfx::DrawMask (const Rectangle& rDest, const Rectangle& rSrc,
PSGSave ();
PSTranslate (rDest.BottomLeft());
- PSScale (fScaleX, fScaleY);
+ PSScale (fScaleX, fScaleY);
PSGRestore ();
}
@@ -539,7 +539,7 @@ PrinterGfx::DrawPS1GrayImage (const PrinterBmp& rBitmap, const Rectangle& rArea)
}
}
- delete pEncoder;
+ delete pEncoder;
WritePS (mpPageBody, "\n");
}
@@ -550,7 +550,7 @@ PrinterGfx::DrawPS1GrayImage (const PrinterBmp& rBitmap, const Rectangle& rArea)
*
*/
-void
+void
PrinterGfx::writePS2ImageHeader (const Rectangle& rArea, psp::ImageType nType)
{
sal_Int32 nChar = 0;
@@ -594,7 +594,7 @@ PrinterGfx::writePS2Colorspace(const PrinterBmp& rBitmap, psp::ImageType nType)
WritePS (mpPageBody, "/DeviceRGB setcolorspace\n");
break;
- case psp::MonochromeImage:
+ case psp::MonochromeImage:
case psp::PaletteImage:
{
@@ -611,7 +611,7 @@ PrinterGfx::writePS2Colorspace(const PrinterBmp& rBitmap, psp::ImageType nType)
nChar += psp::appendStr ("\npsp_ascii85string\n", pImage + nChar);
WritePS (mpPageBody, pImage);
- ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
+ ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
: new Ascii85Encoder(mpPageBody);
for (sal_uInt32 i = 0; i < nSize; i++)
{
@@ -622,7 +622,7 @@ PrinterGfx::writePS2Colorspace(const PrinterBmp& rBitmap, psp::ImageType nType)
pEncoder->EncodeByte (aColor.GetBlue());
}
delete pEncoder;
-
+
WritePS (mpPageBody, "pop ] setcolorspace\n");
}
break;
@@ -634,9 +634,9 @@ void
PrinterGfx::DrawPS2GrayImage (const PrinterBmp& rBitmap, const Rectangle& rArea)
{
writePS2Colorspace(rBitmap, psp::GrayScaleImage);
- writePS2ImageHeader(rArea, psp::GrayScaleImage);
+ writePS2ImageHeader(rArea, psp::GrayScaleImage);
- ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
+ ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
: new Ascii85Encoder(mpPageBody);
for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++)
@@ -657,20 +657,20 @@ PrinterGfx::DrawPS2MonoImage (const PrinterBmp& rBitmap, const Rectangle& rArea)
writePS2Colorspace(rBitmap, psp::MonochromeImage);
writePS2ImageHeader(rArea, psp::MonochromeImage);
- ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
+ ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
: new Ascii85Encoder(mpPageBody);
for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++)
{
long nBitPos = 0;
- sal_uChar nBit = 0;
+ sal_uChar nBit = 0;
sal_uChar nByte = 0;
for (long nColumn = rArea.Left(); nColumn <= rArea.Right(); nColumn++)
{
nBit = rBitmap.GetPixelIdx (nRow, nColumn);
nByte |= nBit << (7 - nBitPos);
-
+
if (++nBitPos == 8)
{
pEncoder->EncodeByte (nByte);
@@ -692,7 +692,7 @@ PrinterGfx::DrawPS2PaletteImage (const PrinterBmp& rBitmap, const Rectangle& rAr
writePS2Colorspace(rBitmap, psp::PaletteImage);
writePS2ImageHeader(rArea, psp::PaletteImage);
- ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
+ ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
: new Ascii85Encoder(mpPageBody);
for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++)
@@ -713,7 +713,7 @@ PrinterGfx::DrawPS2TrueColorImage (const PrinterBmp& rBitmap, const Rectangle& r
writePS2Colorspace(rBitmap, psp::TrueColorImage);
writePS2ImageHeader(rArea, psp::TrueColorImage);
- ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
+ ByteEncoder* pEncoder = mbCompressBmp ? new LZWEncoder(mpPageBody)
: new Ascii85Encoder(mpPageBody);
for (long nRow = rArea.Top(); nRow <= rArea.Bottom(); nRow++)
diff --git a/vcl/unx/source/printergfx/common_gfx.cxx b/vcl/unx/source/printergfx/common_gfx.cxx
index d42ece0e6347..abeacdd5bd6c 100644
--- a/vcl/unx/source/printergfx/common_gfx.cxx
+++ b/vcl/unx/source/printergfx/common_gfx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@
using namespace psp ;
-static const sal_Int32 nMaxTextColumn = 80;
+static const sal_Int32 nMaxTextColumn = 80;
GraphicsStatus::GraphicsStatus() :
mbArtItalic( false ),
@@ -67,7 +67,7 @@ PrinterGfx::Init (PrinterJob &rPrinterJob)
mnDepth = rPrinterJob.GetDepth ();
mnPSLevel = rPrinterJob.GetPostscriptLevel ();
mbColor = rPrinterJob.IsColorPrinter ();
-
+
mnDpi = rPrinterJob.GetResolution();
rPrinterJob.GetScale (mfScaleX, mfScaleY);
const PrinterInfo& rInfo( PrinterInfoManager::get().getPrinterInfo( rPrinterJob.GetPrinterName() ) );
@@ -102,7 +102,7 @@ PrinterGfx::Init (const JobData& rData)
else
mpFontSubstitutes = NULL;
mbUploadPS42Fonts = rInfo.m_pParser ? ( rInfo.m_pParser->isType42Capable() ? sal_True : sal_False ) : sal_False;
-
+
return sal_True;
}
@@ -119,7 +119,7 @@ PrinterGfx::GetBitCount ()
return mnDepth;
}
-PrinterGfx::PrinterGfx() :
+PrinterGfx::PrinterGfx() :
mpPageHeader (NULL),
mpPageBody (NULL),
mnFontID (0),
@@ -217,7 +217,7 @@ PrinterGfx::JoinVerticalClipRectangles( std::list< Rectangle >::iterator& it,
nextit = it;
++nextit;
std::list< Point > leftside, rightside;
-
+
Rectangle aLastRect( *it );
leftside.push_back( Point( it->Left(), it->Top() ) );
rightside.push_back( Point( it->Right()+1, it->Top() ) );
@@ -227,7 +227,7 @@ PrinterGfx::JoinVerticalClipRectangles( std::list< Rectangle >::iterator& it,
++tempit;
if( nextit->Top() == aLastRect.Bottom()+1 )
{
- if(
+ if(
( nextit->Left() >= aLastRect.Left() && nextit->Left() <= aLastRect.Right() ) // left endpoint touches last rectangle
||
( nextit->Right() >= aLastRect.Left() && nextit->Right() <= aLastRect.Right() ) // right endpoint touches last rectangle
@@ -390,7 +390,7 @@ PrinterGfx::DrawLine (const Point& rFrom, const Point& rTo)
PSSetColor (maLineColor);
PSSetColor ();
PSSetLineWidth ();
-
+
PSMoveTo (rFrom);
PSLineTo (rTo);
WritePS (mpPageBody, "stroke\n" );
@@ -423,9 +423,9 @@ PrinterGfx::DrawPolyLine (sal_uInt32 nPoints, const Point* pPath)
PSSetLineWidth ();
PSBinCurrentPath (nPoints, pPath);
-
+
WritePS (mpPageBody, "stroke\n" );
- }
+ }
}
void
@@ -438,7 +438,7 @@ PrinterGfx::DrawPolygon (sal_uInt32 nPoints, const Point* pPath)
// setup closed path
Point aPoint( 0, 0 );
sal_Int32 nColumn( 0 );
-
+
PSBinStartPath();
PSBinMoveTo( pPath[0], aPoint, nColumn );
for( unsigned int n = 1; n < nPoints; n++ )
@@ -487,7 +487,7 @@ PrinterGfx::DrawPolyPolygon (sal_uInt32 nPoly, const sal_uInt32* pSizes, const P
{
Point aPoint( 0, 0 );
sal_Int32 nColumn( 0 );
-
+
PSBinStartPath();
PSBinMoveTo( pPaths[i][0], aPoint, nColumn );
for( unsigned int n = 1; n < pSizes[i]; n++ )
@@ -532,7 +532,7 @@ PrinterGfx::DrawPolyLineBezier (sal_uInt32 nPoints, const Point* pPath, const BY
{
const sal_uInt32 nBezString = 1024;
sal_Char pString[nBezString];
-
+
if ( nPoints > 1 && maLineColor.Is() && pPath )
{
PSSetColor (maLineColor);
@@ -541,8 +541,8 @@ PrinterGfx::DrawPolyLineBezier (sal_uInt32 nPoints, const Point* pPath, const BY
snprintf(pString, nBezString, "%li %li moveto\n", pPath[0].X(), pPath[0].Y());
WritePS(mpPageBody, pString);
-
- // Handle the drawing of mixed lines mixed with curves
+
+ // Handle the drawing of mixed lines mixed with curves
// - a normal point followed by a normal point is a line
// - a normal point followed by 2 control points and a normal point is a curve
for (unsigned int i=1; i<nPoints;)
@@ -554,14 +554,14 @@ PrinterGfx::DrawPolyLineBezier (sal_uInt32 nPoints, const Point* pPath, const BY
}
else //Otherwise we're drawing a spline
{
- if (i+2 >= nPoints)
+ if (i+2 >= nPoints)
return; //Error: wrong sequence of contol/normal points somehow
if ((pFlgAry[i] == POLY_CONTROL) && (pFlgAry[i+1] == POLY_CONTROL) &&
(pFlgAry[i+2] != POLY_CONTROL))
{
snprintf(pString, nBezString, "%li %li %li %li %li %li curveto\n",
- pPath[i].X(), pPath[i].Y(),
- pPath[i+1].X(), pPath[i+1].Y(),
+ pPath[i].X(), pPath[i].Y(),
+ pPath[i+1].X(), pPath[i+1].Y(),
pPath[i+2].X(), pPath[i+2].Y());
}
else
@@ -586,10 +586,10 @@ PrinterGfx::DrawPolygonBezier (sal_uInt32 nPoints, const Point* pPath, const BYT
// premature end of operation
if (!(nPoints > 1) || (pPath == NULL) || !(maFillColor.Is() || maLineColor.Is()))
return;
-
+
snprintf(pString, nBezString, "%li %li moveto\n", pPath[0].X(), pPath[0].Y());
WritePS(mpPageBody, pString); //Move to the starting point for the PolyPoygon
- for (unsigned int i=1; i < nPoints;)
+ for (unsigned int i=1; i < nPoints;)
{
if (pFlgAry[i] != POLY_CONTROL)
{
@@ -599,14 +599,14 @@ PrinterGfx::DrawPolygonBezier (sal_uInt32 nPoints, const Point* pPath, const BYT
}
else
{
- if (i+2 >= nPoints)
+ if (i+2 >= nPoints)
return; //Error: wrong sequence of contol/normal points somehow
if ((pFlgAry[i] == POLY_CONTROL) && (pFlgAry[i+1] == POLY_CONTROL) &&
(pFlgAry[i+2] != POLY_CONTROL))
{
snprintf(pString, nBezString, "%li %li %li %li %li %li curveto\n",
- pPath[i].X(), pPath[i].Y(),
- pPath[i+1].X(), pPath[i+1].Y(),
+ pPath[i].X(), pPath[i].Y(),
+ pPath[i+1].X(), pPath[i+1].Y(),
pPath[i+2].X(), pPath[i+2].Y());
WritePS(mpPageBody, pString);
}
@@ -631,7 +631,7 @@ PrinterGfx::DrawPolygonBezier (sal_uInt32 nPoints, const Point* pPath, const BYT
// restore the current path
if( maFillColor.Is() && maLineColor.Is())
- PSGRestore();
+ PSGRestore();
}
void
@@ -641,15 +641,15 @@ PrinterGfx::DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 * pPoints,
sal_Char pString[nBezString];
if ( !nPoly || !pPtAry || !pPoints || !(maFillColor.Is() || maLineColor.Is()))
return;
-
-
+
+
for (unsigned int i=0; i<nPoly;i++)
{
sal_uInt32 nPoints = pPoints[i];
// #112689# sanity check
if( nPoints == 0 || pPtAry[i] == NULL )
continue;
-
+
snprintf(pString, nBezString, "%li %li moveto\n", pPtAry[i][0].X(), pPtAry[i][0].Y()); //Move to the starting point
WritePS(mpPageBody, pString);
for (unsigned int j=1; j < nPoints;)
@@ -669,8 +669,8 @@ PrinterGfx::DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 * pPoints,
if ((pFlgAry[i][j] == POLY_CONTROL) && (pFlgAry[i][j+1] == POLY_CONTROL) && (pFlgAry[i][j+2] != POLY_CONTROL))
{
snprintf(pString, nBezString, "%li %li %li %li %li %li curveto\n",
- pPtAry[i][j].X(), pPtAry[i][j].Y(),
- pPtAry[i][j+1].X(), pPtAry[i][j+1].Y(),
+ pPtAry[i][j].X(), pPtAry[i][j].Y(),
+ pPtAry[i][j+1].X(), pPtAry[i][j+1].Y(),
pPtAry[i][j+2].X(), pPtAry[i][j+2].Y());
WritePS(mpPageBody, pString);
}
@@ -682,7 +682,7 @@ PrinterGfx::DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 * pPoints,
}
}
}
-
+
// if fill and stroke, save the current path
if( maFillColor.Is() && maLineColor.Is())
PSGSave();
@@ -696,7 +696,7 @@ PrinterGfx::DrawPolyPolygonBezier (sal_uInt32 nPoly, const sal_uInt32 * pPoints,
// restore the current path
if( maFillColor.Is() && maLineColor.Is())
- PSGRestore();
+ PSGRestore();
}
@@ -751,14 +751,14 @@ PrinterGfx::PSSetColor ()
sal_Int32 nChar = 0;
if( mbColor )
- {
- nChar = psp::getValueOfDouble (pBuffer,
+ {
+ nChar = psp::getValueOfDouble (pBuffer,
(double)rColor.GetRed() / 255.0, 5);
nChar += psp::appendStr (" ", pBuffer + nChar);
- nChar += psp::getValueOfDouble (pBuffer + nChar,
- (double)rColor.GetGreen() / 255.0, 5);
+ nChar += psp::getValueOfDouble (pBuffer + nChar,
+ (double)rColor.GetGreen() / 255.0, 5);
nChar += psp::appendStr (" ", pBuffer + nChar);
- nChar += psp::getValueOfDouble (pBuffer + nChar,
+ nChar += psp::getValueOfDouble (pBuffer + nChar,
(double)rColor.GetBlue() / 255.0, 5);
nChar += psp::appendStr (" setrgbcolor\n", pBuffer + nChar );
}
@@ -778,53 +778,53 @@ void
PrinterGfx::PSSetFont ()
{
GraphicsStatus& rCurrent( currentState() );
- if( maVirtualStatus.maFont != rCurrent.maFont ||
- maVirtualStatus.mnTextHeight != rCurrent.mnTextHeight ||
- maVirtualStatus.maEncoding != rCurrent.maEncoding ||
- maVirtualStatus.mnTextWidth != rCurrent.mnTextWidth ||
- maVirtualStatus.mbArtBold != rCurrent.mbArtBold ||
- maVirtualStatus.mbArtItalic != rCurrent.mbArtItalic
+ if( maVirtualStatus.maFont != rCurrent.maFont ||
+ maVirtualStatus.mnTextHeight != rCurrent.mnTextHeight ||
+ maVirtualStatus.maEncoding != rCurrent.maEncoding ||
+ maVirtualStatus.mnTextWidth != rCurrent.mnTextWidth ||
+ maVirtualStatus.mbArtBold != rCurrent.mbArtBold ||
+ maVirtualStatus.mbArtItalic != rCurrent.mbArtItalic
)
{
rCurrent.maFont = maVirtualStatus.maFont;
rCurrent.maEncoding = maVirtualStatus.maEncoding;
rCurrent.mnTextWidth = maVirtualStatus.mnTextWidth;
rCurrent.mnTextHeight = maVirtualStatus.mnTextHeight;
- rCurrent.mbArtItalic = maVirtualStatus.mbArtItalic;
- rCurrent.mbArtBold = maVirtualStatus.mbArtBold;
+ rCurrent.mbArtItalic = maVirtualStatus.mbArtItalic;
+ rCurrent.mbArtBold = maVirtualStatus.mbArtBold;
sal_Int32 nTextHeight = rCurrent.mnTextHeight;
- sal_Int32 nTextWidth = rCurrent.mnTextWidth ? rCurrent.mnTextWidth
+ sal_Int32 nTextWidth = rCurrent.mnTextWidth ? rCurrent.mnTextWidth
: rCurrent.mnTextHeight;
-
+
sal_Char pSetFont [256];
sal_Int32 nChar = 0;
- // postscript based fonts need reencoding
- if ( ( rCurrent.maEncoding == RTL_TEXTENCODING_MS_1252)
+ // postscript based fonts need reencoding
+ if ( ( rCurrent.maEncoding == RTL_TEXTENCODING_MS_1252)
|| ( rCurrent.maEncoding == RTL_TEXTENCODING_ISO_8859_1)
- || ( rCurrent.maEncoding >= RTL_TEXTENCODING_USER_START
+ || ( rCurrent.maEncoding >= RTL_TEXTENCODING_USER_START
&& rCurrent.maEncoding <= RTL_TEXTENCODING_USER_END)
)
{
- rtl::OString aReencodedFont =
- psp::GlyphSet::GetReencodedFontName (rCurrent.maEncoding,
+ rtl::OString aReencodedFont =
+ psp::GlyphSet::GetReencodedFontName (rCurrent.maEncoding,
rCurrent.maFont);
- nChar += psp::appendStr ("(", pSetFont + nChar);
- nChar += psp::appendStr (aReencodedFont.getStr(),
+ nChar += psp::appendStr ("(", pSetFont + nChar);
+ nChar += psp::appendStr (aReencodedFont.getStr(),
pSetFont + nChar);
nChar += psp::appendStr (") cvn findfont ",
- pSetFont + nChar);
+ pSetFont + nChar);
}
else
// tt based fonts mustn't reencode, the encoding is implied by the fontname
// same for symbol type1 fonts, dont try to touch them
{
- nChar += psp::appendStr ("(", pSetFont + nChar);
- nChar += psp::appendStr (rCurrent.maFont.getStr(),
+ nChar += psp::appendStr ("(", pSetFont + nChar);
+ nChar += psp::appendStr (rCurrent.maFont.getStr(),
pSetFont + nChar);
- nChar += psp::appendStr (") cvn findfont ",
+ nChar += psp::appendStr (") cvn findfont ",
pSetFont + nChar);
}
@@ -837,13 +837,13 @@ PrinterGfx::PSSetFont ()
}
else // skew 15 degrees to right
{
- nChar += psp::appendStr ( " [", pSetFont + nChar);
- nChar += psp::getValueOf (nTextWidth, pSetFont + nChar);
+ nChar += psp::appendStr ( " [", pSetFont + nChar);
+ nChar += psp::getValueOf (nTextWidth, pSetFont + nChar);
nChar += psp::appendStr (" 0 ", pSetFont + nChar);
nChar += psp::getValueOfDouble (pSetFont + nChar, 0.27*(double)nTextWidth, 3 );
- nChar += psp::appendStr ( " ", pSetFont + nChar);
+ nChar += psp::appendStr ( " ", pSetFont + nChar);
nChar += psp::getValueOf (-nTextHeight, pSetFont + nChar);
-
+
nChar += psp::appendStr (" 0 0] makefont setfont\n", pSetFont + nChar);
}
@@ -940,7 +940,7 @@ PrinterGfx::PSBinMoveTo (const Point& rCurrent, Point& rOld, sal_Int32& nColumn)
#else
PSBinPath (rCurrent, rOld, moveto, nColumn);
#endif
-}
+}
void
PrinterGfx::PSBinStartPath ()
@@ -977,7 +977,7 @@ PrinterGfx::PSBinCurrentPath (sal_uInt32 nPoints, const Point* pPath)
}
void
-PrinterGfx::PSBinPath (const Point& rCurrent, Point& rOld,
+PrinterGfx::PSBinPath (const Point& rCurrent, Point& rOld,
pspath_t eType, sal_Int32& nColumn)
{
sal_Char pPath[48];
@@ -989,7 +989,7 @@ PrinterGfx::PSBinPath (const Point& rCurrent, Point& rOld,
sal_Int32 nYPrec = getAlignedHexValueOf (rCurrent.Y() - rOld.Y(), pPath + 1 + nXPrec);
pPath [ 1 + nXPrec + nYPrec ] = 0;
- // build the command, it is a char with bit represention 000cxxyy
+ // build the command, it is a char with bit represention 000cxxyy
// c represents the char, xx and yy repr. the field width of the dx and dy shift,
// dx and dy represent the number of bytes to read after the opcode
sal_Char cCmd = (eType == lineto ? (sal_Char)0x00 : (sal_Char)0x10);
@@ -1012,8 +1012,8 @@ PrinterGfx::PSBinPath (const Point& rCurrent, Point& rOld,
cCmd += 'A';
pPath[0] = cCmd;
- // write the command to file,
- // line breaking at column nMaxTextColumn (80)
+ // write the command to file,
+ // line breaking at column nMaxTextColumn (80)
nChar = 1 + nXPrec + nYPrec;
if ((nColumn + nChar) > nMaxTextColumn)
{
@@ -1078,9 +1078,9 @@ PrinterGfx::PSDeltaArray (const sal_Int32 *pArray, sal_Int16 nEntries)
{
sal_Char pPSArray [128];
sal_Int32 nChar = 0;
-
+
nChar = psp::appendStr ("[", pPSArray + nChar);
- nChar += psp::getValueOf (pArray[0], pPSArray + nChar);
+ nChar += psp::getValueOf (pArray[0], pPSArray + nChar);
for (int i = 1; i < nEntries; i++)
{
@@ -1092,7 +1092,7 @@ PrinterGfx::PSDeltaArray (const sal_Int32 *pArray, sal_Int16 nEntries)
}
nChar += psp::appendStr (" ", pPSArray + nChar);
- nChar += psp::getValueOf (pArray[i] - pArray[i-1], pPSArray + nChar);
+ nChar += psp::getValueOf (pArray[i] - pArray[i-1], pPSArray + nChar);
}
nChar += psp::appendStr (" 0]\n", pPSArray + nChar);
@@ -1130,7 +1130,7 @@ PrinterGfx::PSShowText (const sal_uChar* pStr, sal_Int16 nGlyphs, sal_Int16 nByt
if (pDeltaArray == NULL)
{
PSHexString (pStr, nBytes);
-
+
if( maVirtualStatus.mbArtBold )
{
WritePS( mpPageBody, pBuffer );
@@ -1152,7 +1152,7 @@ PrinterGfx::PSShowText (const sal_uChar* pStr, sal_Int16 nGlyphs, sal_Int16 nByt
WritePS (mpPageBody, "xshow\n");
}
- // restore the user coordinate system
+ // restore the user coordinate system
if (mnTextAngle != 0)
PSGRestore ();
}
diff --git a/vcl/unx/source/printergfx/glyphset.cxx b/vcl/unx/source/printergfx/glyphset.cxx
index f34ffa8efb44..98fb2b9a6f4b 100644
--- a/vcl/unx/source/printergfx/glyphset.cxx
+++ b/vcl/unx/source/printergfx/glyphset.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -53,27 +53,27 @@ using namespace vcl;
using namespace psp;
using namespace rtl;
-GlyphSet::GlyphSet ()
+GlyphSet::GlyphSet ()
: mnFontID (-1),
mbVertical (0),
mbUseFontEncoding (false)
{}
-GlyphSet::GlyphSet (sal_Int32 nFontID, sal_Bool bVertical)
+GlyphSet::GlyphSet (sal_Int32 nFontID, sal_Bool bVertical)
: mnFontID (nFontID),
mbVertical (bVertical)
{
PrintFontManager &rMgr = PrintFontManager::get();
- meBaseType = rMgr.getFontType (mnFontID);
- maBaseName = OUStringToOString (rMgr.getPSName(mnFontID),
+ meBaseType = rMgr.getFontType (mnFontID);
+ maBaseName = OUStringToOString (rMgr.getPSName(mnFontID),
RTL_TEXTENCODING_ASCII_US);
- mnBaseEncoding = rMgr.getFontEncoding(mnFontID);
- mbUseFontEncoding = rMgr.getUseOnlyFontEncoding(mnFontID);
+ mnBaseEncoding = rMgr.getFontEncoding(mnFontID);
+ mbUseFontEncoding = rMgr.getUseOnlyFontEncoding(mnFontID);
}
GlyphSet::~GlyphSet ()
{
- /* FIXME delete the glyphlist ??? */
+ /* FIXME delete the glyphlist ??? */
}
sal_Int32
@@ -99,29 +99,29 @@ GlyphSet::SetFont (sal_Int32 nFontID, sal_Bool bVertical)
{
if (mnFontID != -1)
return sal_False;
-
+
mnFontID = nFontID;
mbVertical = bVertical;
PrintFontManager &rMgr = PrintFontManager::get();
meBaseType = rMgr.getFontType (mnFontID);
- maBaseName = OUStringToOString (rMgr.getPSName(mnFontID),
+ maBaseName = OUStringToOString (rMgr.getPSName(mnFontID),
RTL_TEXTENCODING_ASCII_US);
mnBaseEncoding = rMgr.getFontEncoding(mnFontID);
- mbUseFontEncoding = rMgr.getUseOnlyFontEncoding(mnFontID);
+ mbUseFontEncoding = rMgr.getUseOnlyFontEncoding(mnFontID);
return sal_True;
}
sal_Bool
GlyphSet::GetCharID (
- sal_Unicode nChar,
+ sal_Unicode nChar,
sal_uChar* nOutGlyphID,
sal_Int32* nOutGlyphSetID
)
{
return LookupCharID (nChar, nOutGlyphID, nOutGlyphSetID)
- || AddCharID (nChar, nOutGlyphID, nOutGlyphSetID);
+ || AddCharID (nChar, nOutGlyphID, nOutGlyphSetID);
}
sal_Bool
@@ -133,22 +133,22 @@ GlyphSet::GetGlyphID (
)
{
return LookupGlyphID (nGlyph, nOutGlyphID, nOutGlyphSetID)
- || AddGlyphID (nGlyph, nUnicode, nOutGlyphID, nOutGlyphSetID);
+ || AddGlyphID (nGlyph, nUnicode, nOutGlyphID, nOutGlyphSetID);
}
sal_Bool
GlyphSet::LookupCharID (
- sal_Unicode nChar,
+ sal_Unicode nChar,
sal_uChar* nOutGlyphID,
sal_Int32* nOutGlyphSetID
)
{
char_list_t::iterator aGlyphSet;
- sal_Int32 nGlyphSetID;
+ sal_Int32 nGlyphSetID;
// loop thru all the font subsets
- for (aGlyphSet = maCharList.begin(), nGlyphSetID = 1;
- aGlyphSet != maCharList.end();
+ for (aGlyphSet = maCharList.begin(), nGlyphSetID = 1;
+ aGlyphSet != maCharList.end();
++aGlyphSet, nGlyphSetID++)
{
// check every subset if it contains the queried unicode char
@@ -169,17 +169,17 @@ GlyphSet::LookupCharID (
sal_Bool
GlyphSet::LookupGlyphID (
- sal_uInt32 nGlyph,
+ sal_uInt32 nGlyph,
sal_uChar* nOutGlyphID,
sal_Int32* nOutGlyphSetID
)
{
glyph_list_t::iterator aGlyphSet;
- sal_Int32 nGlyphSetID;
+ sal_Int32 nGlyphSetID;
// loop thru all the font subsets
- for (aGlyphSet = maGlyphList.begin(), nGlyphSetID = 1;
- aGlyphSet != maGlyphList.end();
+ for (aGlyphSet = maGlyphList.begin(), nGlyphSetID = 1;
+ aGlyphSet != maGlyphList.end();
++aGlyphSet, nGlyphSetID++)
{
// check every subset if it contains the queried unicode char
@@ -201,9 +201,9 @@ GlyphSet::LookupGlyphID (
sal_uChar
GlyphSet::GetAnsiMapping (sal_Unicode nUnicodeChar)
{
- static rtl_UnicodeToTextConverter aConverter =
+ static rtl_UnicodeToTextConverter aConverter =
rtl_createUnicodeToTextConverter(RTL_TEXTENCODING_MS_1252);
- static rtl_UnicodeToTextContext aContext =
+ static rtl_UnicodeToTextContext aContext =
rtl_createUnicodeToTextContext( aConverter );
sal_Char nAnsiChar;
@@ -212,8 +212,8 @@ GlyphSet::GetAnsiMapping (sal_Unicode nUnicodeChar)
const sal_uInt32 nCvtFlags = RTL_UNICODETOTEXT_FLAGS_UNDEFINED_ERROR
| RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR;
- sal_Size nSize = rtl_convertUnicodeToText( aConverter, aContext,
- &nUnicodeChar, 1, &nAnsiChar, 1,
+ sal_Size nSize = rtl_convertUnicodeToText( aConverter, aContext,
+ &nUnicodeChar, 1, &nAnsiChar, 1,
nCvtFlags, &nCvtInfo, &nCvtChars );
return nSize == 1 ? (sal_uChar)nAnsiChar : (sal_uChar)0;
@@ -245,12 +245,12 @@ GlyphSet::AddNotdef (glyph_map_t &rGlyphMap)
}
sal_Bool
GlyphSet::AddCharID (
- sal_Unicode nChar,
+ sal_Unicode nChar,
sal_uChar* nOutGlyphID,
sal_Int32* nOutGlyphSetID
)
{
- sal_uChar nMappedChar;
+ sal_uChar nMappedChar;
// XXX important: avoid to reencode type1 symbol fonts
if (mnBaseEncoding == RTL_TEXTENCODING_SYMBOL)
@@ -273,15 +273,15 @@ GlyphSet::AddCharID (
char_map_t aMap;
maCharList.push_back (aMap);
}
-
+
// insert a new glyph in the font subset
if (nMappedChar)
{
// always put iso1252 chars into the first map, map them on itself
char_map_t& aGlyphSet = maCharList.front();
AddNotdef (aGlyphSet);
-
- aGlyphSet [nChar] = nMappedChar;
+
+ aGlyphSet [nChar] = nMappedChar;
*nOutGlyphSetID = 1;
*nOutGlyphID = nMappedChar;
}
@@ -297,7 +297,7 @@ GlyphSet::AddCharID (
*nOutGlyphSetID = maCharList.size();
*nOutGlyphID = aGlyphSet [nChar];
}
-
+
return sal_True;
}
@@ -309,7 +309,7 @@ GlyphSet::AddGlyphID (
sal_Int32* nOutGlyphSetID
)
{
- sal_uChar nMappedChar;
+ sal_uChar nMappedChar;
// XXX important: avoid to reencode type1 symbol fonts
if (mnBaseEncoding == RTL_TEXTENCODING_SYMBOL)
@@ -332,15 +332,15 @@ GlyphSet::AddGlyphID (
glyph_map_t aMap;
maGlyphList.push_back (aMap);
}
-
+
// insert a new glyph in the font subset
if (nMappedChar)
{
// always put iso1252 chars into the first map, map them on itself
glyph_map_t& aGlyphSet = maGlyphList.front();
AddNotdef (aGlyphSet);
-
- aGlyphSet [nGlyph] = nMappedChar;
+
+ aGlyphSet [nGlyph] = nMappedChar;
*nOutGlyphSetID = 1;
*nOutGlyphID = nMappedChar;
}
@@ -356,7 +356,7 @@ GlyphSet::AddGlyphID (
*nOutGlyphSetID = maGlyphList.size();
*nOutGlyphID = aGlyphSet [nGlyph];
}
-
+
return sal_True;
}
@@ -411,7 +411,7 @@ GlyphSet::GetGlyphSetEncoding (sal_Int32 nGlyphSetID)
if (mnBaseEncoding == RTL_TEXTENCODING_SYMBOL)
return RTL_TEXTENCODING_SYMBOL;
else
- return nGlyphSetID == 1 ? RTL_TEXTENCODING_MS_1252
+ return nGlyphSetID == 1 ? RTL_TEXTENCODING_MS_1252
: RTL_TEXTENCODING_USER_START + nGlyphSetID;
}
}
@@ -427,8 +427,8 @@ GlyphSet::GetGlyphSetEncodingName (rtl_TextEncoding nEnc, const OString &rFontNa
else
if (nEnc >= RTL_TEXTENCODING_USER_START && nEnc <= RTL_TEXTENCODING_USER_END)
{
- return rFontName
- + OString("Enc")
+ return rFontName
+ + OString("Enc")
+ OString::valueOf ((sal_Int32)(nEnc - RTL_TEXTENCODING_USER_START));
}
else
@@ -452,17 +452,17 @@ GlyphSet::PSDefineReencodedFont (osl::File* pOutFile, sal_Int32 nGlyphSetID)
sal_Char pEncodingVector [256];
sal_Int32 nSize = 0;
-
+
nSize += psp::appendStr ("(", pEncodingVector + nSize);
- nSize += psp::appendStr (GetReencodedFontName(nGlyphSetID),
+ nSize += psp::appendStr (GetReencodedFontName(nGlyphSetID),
pEncodingVector + nSize);
nSize += psp::appendStr (") cvn (", pEncodingVector + nSize);
- nSize += psp::appendStr (maBaseName.getStr(),
+ nSize += psp::appendStr (maBaseName.getStr(),
pEncodingVector + nSize);
nSize += psp::appendStr (") cvn ", pEncodingVector + nSize);
- nSize += psp::appendStr (GetGlyphSetEncodingName(nGlyphSetID),
+ nSize += psp::appendStr (GetGlyphSetEncodingName(nGlyphSetID),
pEncodingVector + nSize);
- nSize += psp::appendStr (" psp_definefont\n",
+ nSize += psp::appendStr (" psp_definefont\n",
pEncodingVector + nSize);
psp::WritePS (pOutFile, pEncodingVector);
@@ -474,14 +474,14 @@ GlyphSet::GetReencodedFontName (rtl_TextEncoding nEnc, const OString &rFontName)
if ( nEnc == RTL_TEXTENCODING_MS_1252
|| nEnc == RTL_TEXTENCODING_ISO_8859_1)
{
- return rFontName
+ return rFontName
+ OString("-iso1252");
}
else
if (nEnc >= RTL_TEXTENCODING_USER_START && nEnc <= RTL_TEXTENCODING_USER_END)
{
- return rFontName
- + OString("-enc")
+ return rFontName
+ + OString("-enc")
+ OString::valueOf ((sal_Int32)(nEnc - RTL_TEXTENCODING_USER_START));
}
else
@@ -512,14 +512,14 @@ void GlyphSet::DrawGlyphs(
for (int nChar = 0; nChar < nLen; nChar++)
{
GetGlyphID (pGlyphIds[nChar], pUnicodes[nChar], pGlyphID + nChar, pGlyphSetID + nChar);
- aGlyphSet.insert (pGlyphSetID[nChar]);
+ aGlyphSet.insert (pGlyphSetID[nChar]);
}
// loop over all glyph sets to detect substrings that can be xshown together
// without changing the postscript font
sal_Int32 *pDeltaSubset = (sal_Int32*)alloca (nLen * sizeof(sal_Int32));
sal_uChar *pGlyphSubset = (sal_uChar*)alloca (nLen * sizeof(sal_uChar));
-
+
std::set< sal_Int32 >::iterator aSet;
for (aSet = aGlyphSet.begin(); aSet != aGlyphSet.end(); ++aSet)
{
@@ -528,13 +528,13 @@ void GlyphSet::DrawGlyphs(
sal_Int32 nGlyphs = 0;
sal_Int32 nChar;
- // get offset to first glyph
+ // get offset to first glyph
for (nChar = 0; (nChar < nLen) && (pGlyphSetID[nChar] != *aSet); nChar++)
{
nOffset = pDeltaArray [nChar];
}
-
- // loop over all chars to extract those that share the current glyph set
+
+ // loop over all chars to extract those that share the current glyph set
for (nChar = 0; nChar < nLen; nChar++)
{
if (pGlyphSetID[nChar] == *aSet)
@@ -563,14 +563,14 @@ void GlyphSet::DrawGlyphs(
rGfx.PSSetFont (aGlyphSetName, GetGlyphSetEncoding(*aSet));
rGfx.PSMoveTo (aPoint);
rGfx.PSShowText (pGlyphSubset, nGlyphs, nGlyphs, nGlyphs > 1 ? pDeltaSubset : NULL);
- }
+ }
}
void
-GlyphSet::DrawText (PrinterGfx &rGfx, const Point& rPoint,
+GlyphSet::DrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen, const sal_Int32* pDeltaArray)
{
- // dispatch to the impl method
+ // dispatch to the impl method
if (pDeltaArray == NULL)
ImplDrawText (rGfx, rPoint, pStr, nLen);
else
@@ -578,7 +578,7 @@ GlyphSet::DrawText (PrinterGfx &rGfx, const Point& rPoint,
}
void
-GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
+GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen)
{
rGfx.PSMoveTo (rPoint);
@@ -595,11 +595,11 @@ GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
int nChar;
sal_uChar *pGlyphID = (sal_uChar*)alloca (nLen * sizeof(sal_uChar));
sal_Int32 *pGlyphSetID = (sal_Int32*)alloca (nLen * sizeof(sal_Int32));
-
+
// convert unicode to glyph id and char set (font subset)
for (nChar = 0; nChar < nLen; nChar++)
GetCharID (pStr[nChar], pGlyphID + nChar, pGlyphSetID + nChar);
-
+
// loop over the string to draw subsequent pieces of chars
// with the same postscript font
for (nChar = 0; nChar < nLen; /* atend */)
@@ -613,18 +613,18 @@ GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
else
break;
}
-
+
// show the text using the PrinterGfx text api
OString aGlyphSetName(GetCharSetName(nGlyphSetID));
rGfx.PSSetFont (aGlyphSetName, GetGlyphSetEncoding(nGlyphSetID));
rGfx.PSShowText (pGlyphID + nChar, nGlyphs, nGlyphs);
-
- nChar += nGlyphs;
+
+ nChar += nGlyphs;
}
}
void
-GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
+GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen, const sal_Int32* pDeltaArray)
{
if( mbUseFontEncoding )
@@ -645,14 +645,14 @@ GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
for (int nChar = 0; nChar < nLen; nChar++)
{
GetCharID (pStr[nChar], pGlyphID + nChar, pGlyphSetID + nChar);
- aGlyphSet.insert (pGlyphSetID[nChar]);
+ aGlyphSet.insert (pGlyphSetID[nChar]);
}
// loop over all glyph sets to detect substrings that can be xshown together
// without changing the postscript font
sal_Int32 *pDeltaSubset = (sal_Int32*)alloca (nLen * sizeof(sal_Int32));
sal_uChar *pGlyphSubset = (sal_uChar*)alloca (nLen * sizeof(sal_uChar));
-
+
std::set< sal_Int32 >::iterator aSet;
for (aSet = aGlyphSet.begin(); aSet != aGlyphSet.end(); ++aSet)
{
@@ -661,13 +661,13 @@ GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
sal_Int32 nGlyphs = 0;
sal_Int32 nChar;
- // get offset to first glyph
+ // get offset to first glyph
for (nChar = 0; (nChar < nLen) && (pGlyphSetID[nChar] != *aSet); nChar++)
{
nOffset = pDeltaArray [nChar];
}
-
- // loop over all chars to extract those that share the current glyph set
+
+ // loop over all chars to extract those that share the current glyph set
for (nChar = 0; nChar < nLen; nChar++)
{
if (pGlyphSetID[nChar] == *aSet)
@@ -696,7 +696,7 @@ GlyphSet::ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
rGfx.PSSetFont (aGlyphSetName, GetGlyphSetEncoding(*aSet));
rGfx.PSMoveTo (aPoint);
rGfx.PSShowText (pGlyphSubset, nGlyphs, nGlyphs, nGlyphs > 1 ? pDeltaSubset : NULL);
- }
+ }
}
sal_Bool
@@ -718,7 +718,7 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx)
++nGlyphSetID;
if (nGlyphSetID == 1) // latin1 page uses global reencoding table
- {
+ {
PSDefineReencodedFont (pOutFile, nGlyphSetID);
continue;
}
@@ -731,13 +731,13 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx)
sal_Char pEncodingVector [256];
sal_Int32 nSize = 0;
-
- nSize += psp::appendStr ("/",
- pEncodingVector + nSize);
- nSize += psp::appendStr (GetGlyphSetEncodingName(nGlyphSetID),
- pEncodingVector + nSize);
- nSize += psp::appendStr (" [ ",
+
+ nSize += psp::appendStr ("/",
+ pEncodingVector + nSize);
+ nSize += psp::appendStr (GetGlyphSetEncodingName(nGlyphSetID),
pEncodingVector + nSize);
+ nSize += psp::appendStr (" [ ",
+ pEncodingVector + nSize);
// need a list of glyphs, sorted by glyphid
typedef std::map< sal_uInt8, sal_Unicode > ps_mapping_t;
@@ -745,21 +745,21 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx)
ps_mapping_t aSortedGlyphSet;
char_map_t::const_iterator aUnsortedGlyph;
- for (aUnsortedGlyph = (*aGlyphSet).begin();
- aUnsortedGlyph != (*aGlyphSet).end();
+ for (aUnsortedGlyph = (*aGlyphSet).begin();
+ aUnsortedGlyph != (*aGlyphSet).end();
++aUnsortedGlyph)
{
- aSortedGlyphSet.insert(ps_value_t((*aUnsortedGlyph).second,
+ aSortedGlyphSet.insert(ps_value_t((*aUnsortedGlyph).second,
(*aUnsortedGlyph).first));
}
-
+
ps_mapping_t::const_iterator aSortedGlyph;
// loop thru all the glyphs in the subset
- for (aSortedGlyph = (aSortedGlyphSet).begin();
- aSortedGlyph != (aSortedGlyphSet).end();
+ for (aSortedGlyph = (aSortedGlyphSet).begin();
+ aSortedGlyph != (aSortedGlyphSet).end();
++aSortedGlyph)
{
- nSize += psp::appendStr ("/",
+ nSize += psp::appendStr ("/",
pEncodingVector + nSize);
std::list< OString > aName( rMgr.getAdobeNameFromUnicode((*aSortedGlyph).second) );
@@ -777,7 +777,7 @@ GlyphSet::PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx)
nSize = 0;
}
}
-
+
nSize += psp::appendStr ("] def\n", pEncodingVector + nSize);
psp::WritePS (pOutFile, pEncodingVector);
@@ -791,13 +791,13 @@ struct EncEntry
{
sal_uChar aEnc;
long aGID;
-
+
EncEntry() : aEnc( 0 ), aGID( 0 ) {}
-
+
bool operator<( const EncEntry& rRight ) const
{ return aEnc < rRight.aEnc; }
};
-
+
static void CreatePSUploadableFont( TrueTypeFont* pSrcFont, FILE* pTmpFile,
const char* pGlyphSetName, int nGlyphCount,
/*const*/ sal_uInt16* pRequestedGlyphs, /*const*/ sal_uChar* pEncoding,
@@ -808,16 +808,16 @@ static void CreatePSUploadableFont( TrueTypeFont* pSrcFont, FILE* pTmpFile,
int nTargetMask = FontSubsetInfo::TYPE1_PFA | FontSubsetInfo::TYPE3_FONT;
if( bAllowType42 )
nTargetMask |= FontSubsetInfo::TYPE42_FONT;
-
+
std::vector< EncEntry > aSorted( nGlyphCount, EncEntry() );
for( int i = 0; i < nGlyphCount; i++ )
{
aSorted[i].aEnc = pEncoding[i];
aSorted[i].aGID = pRequestedGlyphs[i];
}
-
+
std::stable_sort( aSorted.begin(), aSorted.end() );
-
+
std::vector< sal_uChar > aEncoding( nGlyphCount );
std::vector< long > aRequestedGlyphs( nGlyphCount );
@@ -826,7 +826,7 @@ static void CreatePSUploadableFont( TrueTypeFont* pSrcFont, FILE* pTmpFile,
aEncoding[i] = aSorted[i].aEnc;
aRequestedGlyphs[i] = aSorted[i].aGID;
}
-
+
FontSubsetInfo aInfo;
aInfo.LoadFont( pSrcFont );
@@ -841,7 +841,7 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42
if (meBaseType != fonttype::TrueType)
return sal_False;
- TrueTypeFont *pTTFont;
+ TrueTypeFont *pTTFont;
OString aTTFileName (rGfx.GetFontMgr().getFontFileSysPath(mnFontID));
int nFace = rGfx.GetFontMgr().getFontFaceNumber(mnFontID);
sal_Int32 nSuccess = OpenTTFontFile(aTTFileName.getStr(), nFace < 0 ? 0 : nFace, &pTTFont);
@@ -863,8 +863,8 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42
// loop thru all the font subsets
sal_Int32 nCharSetID;
char_list_t::iterator aCharSet;
- for (aCharSet = maCharList.begin(), nCharSetID = 1;
- aCharSet != maCharList.end();
+ for (aCharSet = maCharList.begin(), nCharSetID = 1;
+ aCharSet != maCharList.end();
++aCharSet, nCharSetID++)
{
if ((*aCharSet).size() == 0)
@@ -877,9 +877,9 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42
{
pUChars [n] = (*aChar).first;
pEncoding [n] = (*aChar).second;
- n++;
+ n++;
}
- // create a mapping from the unicode chars to the char encoding in
+ // create a mapping from the unicode chars to the char encoding in
// source TrueType font
MapString (pTTFont, pUChars, (*aCharSet).size(), pTTGlyphMapping, mbVertical);
@@ -895,7 +895,7 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42
// loop thru all the font glyph subsets
sal_Int32 nGlyphSetID;
glyph_list_t::iterator aGlyphSet;
- for (aGlyphSet = maGlyphList.begin(), nGlyphSetID = 1;
+ for (aGlyphSet = maGlyphList.begin(), nGlyphSetID = 1;
aGlyphSet != maGlyphList.end();
++aGlyphSet, nGlyphSetID++)
{
@@ -908,8 +908,8 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42
for (aGlyph = (*aGlyphSet).begin(); aGlyph != (*aGlyphSet).end(); aGlyph++)
{
pTTGlyphMapping [n] = (*aGlyph).first;
- pEncoding [n] = (*aGlyph).second;
- n++;
+ pEncoding [n] = (*aGlyph).second;
+ n++;
}
// create the current subset
@@ -921,7 +921,7 @@ GlyphSet::PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAllowType42
rSuppliedFonts.push_back( aGlyphSetName );
}
- // copy the file into the page header
+ // copy the file into the page header
rewind(pTmpFile);
fflush(pTmpFile);
diff --git a/vcl/unx/source/printergfx/glyphset.hxx b/vcl/unx/source/printergfx/glyphset.hxx
index f1dee2a08641..ec7fd39162ce 100644
--- a/vcl/unx/source/printergfx/glyphset.hxx
+++ b/vcl/unx/source/printergfx/glyphset.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,42 +49,42 @@ class GlyphSet
{
private:
- sal_Int32 mnFontID;
- sal_Bool mbVertical;
- rtl::OString maBaseName;
+ sal_Int32 mnFontID;
+ sal_Bool mbVertical;
+ rtl::OString maBaseName;
fonttype::type meBaseType;
rtl_TextEncoding mnBaseEncoding;
- bool mbUseFontEncoding;
+ bool mbUseFontEncoding;
typedef std::hash_map< sal_Unicode, sal_uInt8 > char_map_t;
typedef std::list< char_map_t > char_list_t;
typedef std::hash_map< sal_uInt32, sal_uInt8 > glyph_map_t;
typedef std::list< glyph_map_t > glyph_list_t;
- char_list_t maCharList;
- glyph_list_t maGlyphList;
+ char_list_t maCharList;
+ glyph_list_t maGlyphList;
- rtl::OString GetGlyphSetName (sal_Int32 nGlyphSetID);
- rtl::OString GetCharSetName (sal_Int32 nGlyphSetID);
+ rtl::OString GetGlyphSetName (sal_Int32 nGlyphSetID);
+ rtl::OString GetCharSetName (sal_Int32 nGlyphSetID);
sal_Int32 GetGlyphSetEncoding (sal_Int32 nGlyphSetID);
rtl::OString GetGlyphSetEncodingName (sal_Int32 nGlyphSetID);
rtl::OString GetReencodedFontName (sal_Int32 nGlyphSetID);
- void PSDefineReencodedFont (osl::File* pOutFile,
+ void PSDefineReencodedFont (osl::File* pOutFile,
sal_Int32 nGlyphSetID);
- sal_Bool GetCharID (sal_Unicode nChar,
+ sal_Bool GetCharID (sal_Unicode nChar,
sal_uChar* nOutGlyphID, sal_Int32* nOutGlyphSetID);
- sal_Bool LookupCharID (sal_Unicode nChar,
+ sal_Bool LookupCharID (sal_Unicode nChar,
sal_uChar* nOutGlyphID, sal_Int32* nOutGlyphSetID);
- sal_Bool AddCharID (sal_Unicode nChar,
+ sal_Bool AddCharID (sal_Unicode nChar,
sal_uChar* nOutGlyphID,
sal_Int32* nOutGlyphSetID);
- sal_Bool GetGlyphID (sal_uInt32 nGlyph, sal_Unicode nUnicode,
+ sal_Bool GetGlyphID (sal_uInt32 nGlyph, sal_Unicode nUnicode,
sal_uChar* nOutGlyphID, sal_Int32* nOutGlyphSetID);
- sal_Bool LookupGlyphID (sal_uInt32 nGlyph,
+ sal_Bool LookupGlyphID (sal_uInt32 nGlyph,
sal_uChar* nOutGlyphID, sal_Int32* nOutGlyphSetID);
- sal_Bool AddGlyphID (sal_uInt32 nGlyph, sal_Unicode nUnicode,
+ sal_Bool AddGlyphID (sal_uInt32 nGlyph, sal_Unicode nUnicode,
sal_uChar* nOutGlyphID,
sal_Int32* nOutGlyphSetID);
void AddNotdef (char_map_t &rCharMap);
@@ -92,9 +92,9 @@ private:
sal_uChar GetAnsiMapping (sal_Unicode nUnicodeChar);
sal_uChar GetSymbolMapping (sal_Unicode nUnicodeChar);
- void ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
+ void ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen);
- void ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
+ void ImplDrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen,
const sal_Int32* pDeltaArray);
@@ -104,29 +104,29 @@ public:
GlyphSet (sal_Int32 nFontID, sal_Bool bVertical);
~GlyphSet ();
- sal_Int32 GetFontID ();
+ sal_Int32 GetFontID ();
fonttype::type GetFontType ();
- static rtl::OString
- GetReencodedFontName (rtl_TextEncoding nEnc,
+ static rtl::OString
+ GetReencodedFontName (rtl_TextEncoding nEnc,
const rtl::OString &rFontName);
static rtl::OString
- GetGlyphSetEncodingName (rtl_TextEncoding nEnc,
+ GetGlyphSetEncodingName (rtl_TextEncoding nEnc,
const rtl::OString &rFontName);
- sal_Bool IsVertical ();
-
- sal_Bool SetFont (sal_Int32 nFontID, sal_Bool bVertical);
+ sal_Bool IsVertical ();
- void DrawText (PrinterGfx &rGfx, const Point& rPoint,
+ sal_Bool SetFont (sal_Int32 nFontID, sal_Bool bVertical);
+
+ void DrawText (PrinterGfx &rGfx, const Point& rPoint,
const sal_Unicode* pStr, sal_Int16 nLen,
const sal_Int32* pDeltaArray = NULL);
- void DrawGlyphs (PrinterGfx& rGfx,
+ void DrawGlyphs (PrinterGfx& rGfx,
const Point& rPoint,
const sal_uInt32* pGlyphIds,
const sal_Unicode* pUnicodes,
sal_Int16 nLen,
const sal_Int32* pDeltaArray );
sal_Bool PSUploadEncoding(osl::File* pOutFile, PrinterGfx &rGfx);
- sal_Bool PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAsType42, std::list< rtl::OString >& rSuppliedFonts );
+ sal_Bool PSUploadFont (osl::File& rOutFile, PrinterGfx &rGfx, bool bAsType42, std::list< rtl::OString >& rSuppliedFonts );
};
diff --git a/vcl/unx/source/printergfx/printerjob.cxx b/vcl/unx/source/printergfx/printerjob.cxx
index e565a0e2355f..8c7c710f8e6c 100644
--- a/vcl/unx/source/printergfx/printerjob.cxx
+++ b/vcl/unx/source/printergfx/printerjob.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -63,11 +63,11 @@ using namespace rtl;
#define nBLOCKSIZE 0x2000
-namespace psp
+namespace psp
{
sal_Bool
-AppendPS (FILE* pDst, osl::File* pSrc, sal_uChar* pBuffer,
+AppendPS (FILE* pDst, osl::File* pSrc, sal_uChar* pBuffer,
sal_uInt32 nBlockSize = nBLOCKSIZE)
{
if ((pDst == NULL) || (pSrc == NULL))
@@ -92,7 +92,7 @@ AppendPS (FILE* pDst, osl::File* pSrc, sal_uChar* pBuffer,
return sal_True;
}
-
+
} // namespace psp
/*
@@ -120,7 +120,7 @@ PrinterJob::CreateSpoolFile (const rtl::OUString& rName, const rtl::OUString& rE
return NULL;
}
- pFile->setAttributes (aFileURL,
+ pFile->setAttributes (aFileURL,
osl_File_Attribute_OwnWrite | osl_File_Attribute_OwnRead);
return pFile;
}
@@ -146,7 +146,7 @@ PrinterJob::GetDepth () const
}
sal_uInt16
-PrinterJob::GetPostscriptLevel (const JobData *pJobData) const
+PrinterJob::GetPostscriptLevel (const JobData *pJobData) const
{
sal_uInt16 nPSLevel = 2;
@@ -155,7 +155,7 @@ PrinterJob::GetPostscriptLevel (const JobData *pJobData) const
if( pJobData->m_nPSLevel )
nPSLevel = pJobData->m_nPSLevel;
- else
+ else
if( pJobData->m_pParser )
nPSLevel = pJobData->m_pParser->getLanguageLevel();
@@ -201,7 +201,7 @@ PrinterJob::GetCurrentPageBody ()
/*
* public methods of PrinterJob: the actual job / spool handling
- */
+ */
PrinterJob::PrinterJob () :
mpJobHeader( NULL ),
@@ -213,7 +213,7 @@ PrinterJob::PrinterJob () :
namespace psp
{
-/* check whether the given name points to a directory which is
+/* check whether the given name points to a directory which is
usable for the user */
sal_Bool
existsTmpDir (const char* pName)
@@ -227,14 +227,14 @@ existsTmpDir (const char* pName)
if (! S_ISDIR(aFileStatus.st_mode))
return sal_False;
- return access(pName, W_OK | R_OK) == 0 ? sal_True : sal_False;
+ return access(pName, W_OK | R_OK) == 0 ? sal_True : sal_False;
}
/* return the username in the given buffer */
sal_Bool
getUserName (char* pName, int nSize)
{
- struct passwd *pPWEntry;
+ struct passwd *pPWEntry;
struct passwd aPWEntry;
sal_Char pPWBuffer[256];
@@ -254,7 +254,7 @@ getUserName (char* pName, int nSize)
{
memcpy (pName, pPWEntry->pw_name, nLen);
pName[nLen] = '\0';
-
+
bSuccess = sal_True;
}
}
@@ -278,12 +278,12 @@ removeSpoolDir (const rtl::OUString& rSpoolDir)
OSL_ENSURE( 0, "psprint: couldn't remove spool directory" );
return;
}
- rtl::OString aSysPathByte =
+ rtl::OString aSysPathByte =
rtl::OUStringToOString (aSysPath, osl_getThreadTextEncoding());
sal_Char pSystem [128];
sal_Int32 nChar = 0;
- nChar = psp::appendStr ("rm -rf ", pSystem);
+ nChar = psp::appendStr ("rm -rf ", pSystem);
nChar += psp::appendStr (aSysPathByte.getStr(), pSystem + nChar);
if (system (pSystem) == -1)
@@ -298,10 +298,10 @@ createSpoolDir ()
TimeValue aCur;
osl_getSystemTime( &aCur );
sal_Int32 nRand = aCur.Seconds ^ (aCur.Nanosec/1000);
-
+
rtl::OUString aTmpDir;
osl_getTempDirURL( &aTmpDir.pData );
-
+
do
{
rtl::OUStringBuffer aDir( aTmpDir.getLength() + 16 );
@@ -379,7 +379,7 @@ PrinterJob::StartJob (
const rtl::OUString& rFileName,
int nMode,
const rtl::OUString& rJobName,
- const rtl::OUString& rAppName,
+ const rtl::OUString& rAppName,
const JobData& rSetupData,
PrinterGfx* pGraphics,
bool bIsQuickJob
@@ -409,11 +409,11 @@ PrinterJob::StartJob (
"%%BoundingBox: (atend)\n" );
rtl::OUString aFilterWS;
-
+
// Creator (this application)
aFilterWS = WhitespaceToSpace( rAppName, FALSE );
- WritePS (mpJobHeader, "%%Creator: (");
- WritePS (mpJobHeader, aFilterWS);
+ WritePS (mpJobHeader, "%%Creator: (");
+ WritePS (mpJobHeader, aFilterWS);
WritePS (mpJobHeader, ")\n");
// For (user name)
@@ -460,11 +460,11 @@ PrinterJob::StartJob (
if( ! isAscii( aTitle ) )
aTitle = rtl::OUString();
}
-
+
maJobTitle = aFilterWS;
if( aTitle.getLength() )
{
- WritePS (mpJobHeader, "%%Title: (");
+ WritePS (mpJobHeader, "%%Title: (");
WritePS (mpJobHeader, aTitle);
WritePS (mpJobHeader, ")\n");
}
@@ -522,7 +522,7 @@ PrinterJob::EndJob ()
WritePS (mpJobTrailer, aTrailer.getStr());
/*
- * spool the set of files to their final destination, this is U**X dependent
+ * spool the set of files to their final destination, this is U**X dependent
*/
FILE* pDestFILE = NULL;
@@ -531,7 +531,7 @@ PrinterJob::EndJob ()
sal_Bool bSpoolToFile = maFileName.getLength() > 0 ? sal_True : sal_False;
if (bSpoolToFile)
{
- const rtl::OString aFileName = rtl::OUStringToOString (maFileName,
+ const rtl::OString aFileName = rtl::OUStringToOString (maFileName,
osl_getThreadTextEncoding());
if( mnFileMode )
{
@@ -547,7 +547,7 @@ PrinterJob::EndJob ()
}
}
else
- chmod( aFileName.getStr(), mnFileMode );
+ chmod( aFileName.getStr(), mnFileMode );
}
if (pDestFILE == NULL)
pDestFILE = fopen (aFileName.getStr(), "w");
@@ -574,7 +574,7 @@ PrinterJob::EndJob ()
std::list< osl::File* >::iterator pPageBody;
std::list< osl::File* >::iterator pPageHead;
for (pPageBody = maPageList.begin(), pPageHead = maHeaderList.begin();
- pPageBody != maPageList.end() && pPageHead != maHeaderList.end();
+ pPageBody != maPageList.end() && pPageHead != maHeaderList.end();
pPageBody++, pPageHead++)
{
if( *pPageHead )
@@ -600,7 +600,7 @@ PrinterJob::EndJob ()
else
bSuccess = sal_False;
}
-
+
AppendPS (pDestFILE, mpJobTrailer, pBuffer);
mpJobTrailer->close();
@@ -611,7 +611,7 @@ PrinterJob::EndJob ()
else
{
PrinterInfoManager& rPrinterInfoManager = PrinterInfoManager::get();
- if (0 == rPrinterInfoManager.endSpool( m_aLastJobData.m_aPrinterName,
+ if (0 == rPrinterInfoManager.endSpool( m_aLastJobData.m_aPrinterName,
maJobTitle, pDestFILE, m_aDocumentJobData ))
{
bSuccess = sal_False;
@@ -642,7 +642,7 @@ PrinterJob::InitPaperSize (const JobData& rJobSetup)
if (pParser != NULL)
pParser->getMargins (aPaper, nLeft, nRight, nUpper, nLower);
- mnResolution = nRes;
+ mnResolution = nRes;
mnWidthPt = nWidth;
mnHeightPt = nHeight;
@@ -669,7 +669,7 @@ PrinterJob::StartPage (const JobData& rJobSetup)
rtl::OUString aPageNo = rtl::OUString::valueOf ((sal_Int32)maPageList.size()+1); // sequential page number must start with 1
rtl::OUString aExt = aPageNo + rtl::OUString::createFromAscii (".ps");
-
+
osl::File* pPageHeader = CreateSpoolFile (
rtl::OUString::createFromAscii("psp_pghead"), aExt);
osl::File* pPageBody = CreateSpoolFile (
@@ -683,7 +683,7 @@ PrinterJob::StartPage (const JobData& rJobSetup)
// write page header according to Document Structuring Conventions (DSC)
WritePS (pPageHeader, "%%Page: ");
- WritePS (pPageHeader, aPageNo);
+ WritePS (pPageHeader, aPageNo);
WritePS (pPageHeader, " ");
WritePS (pPageHeader, aPageNo);
WritePS (pPageHeader, "\n");
@@ -702,7 +702,7 @@ PrinterJob::StartPage (const JobData& rJobSetup)
sal_Char pBBox [256];
sal_Int32 nChar = 0;
- nChar = psp::appendStr ("%%PageBoundingBox: ", pBBox);
+ nChar = psp::appendStr ("%%PageBoundingBox: ", pBBox);
nChar += psp::getValueOf (mnLMarginPt, pBBox + nChar);
nChar += psp::appendStr (" ", pBBox + nChar);
nChar += psp::getValueOf (mnBMarginPt, pBBox + nChar);
@@ -718,7 +718,7 @@ PrinterJob::StartPage (const JobData& rJobSetup)
* (to %%Begin(End)Setup, instead of %%Begin(End)PageSetup)
* don't do this in StartJob since the jobsetup there may be
* different.
- */
+ */
bool bWriteFeatures = true;
if( 1 == maPageList.size() )
{
@@ -731,7 +731,7 @@ PrinterJob::StartPage (const JobData& rJobSetup)
m_aLastJobData = rJobSetup;
return true;
}
-
+
return false;
}
@@ -755,7 +755,7 @@ PrinterJob::EndPage ()
nChar += psp::appendStr ("%%PageTrailer\n\n", pTrailer + nChar);
WritePS (pPageBody, pTrailer);
- // this page is done for now, close it to avoid having too many open fd's
+ // this page is done for now, close it to avoid having too many open fd's
pPageHeader->close();
pPageBody->close();
@@ -772,7 +772,7 @@ PrinterJob::GetErrorCode ()
struct less_ppd_key : public ::std::binary_function<double, double, bool>
{
- bool operator()(const PPDKey* left, const PPDKey* right)
+ bool operator()(const PPDKey* left, const PPDKey* right)
{ return left->getOrderDependency() < right->getOrderDependency(); }
};
@@ -799,7 +799,7 @@ static bool writeFeature( osl::File* pFile, const PPDKey* pKey, const PPDValue*
}
aFeature.append( "\n} stopped cleartomark\n" );
sal_uInt64 nWritten = 0;
- return pFile->write( aFeature.getStr(), aFeature.getLength(), nWritten )
+ return pFile->write( aFeature.getStr(), aFeature.getLength(), nWritten )
|| nWritten != (sal_uInt64)aFeature.getLength() ? false : true;
}
@@ -838,9 +838,9 @@ bool PrinterJob::writeFeatureList( osl::File* pFile, const JobData& rJob, bool b
if( bEmit )
{
const PPDValue* pValue = rJob.m_aContext.getValue( pKey );
- if( pValue
+ if( pValue
&& pValue->m_eType == eInvocation
- && ( m_aLastJobData.m_pParser == NULL
+ && ( m_aLastJobData.m_pParser == NULL
|| m_aLastJobData.m_aContext.getValue( pKey ) != pValue
|| bDocumentSetup
)
@@ -881,13 +881,13 @@ bool PrinterJob::writePageSetup( osl::File* pFile, const JobData& rJob, bool bWr
if( rJob.m_eOrientation == orientation::Portrait )
{
- nChar = psp::appendStr ("gsave\n[", pTranslate);
+ nChar = psp::appendStr ("gsave\n[", pTranslate);
nChar += psp::getValueOfDouble ( pTranslate + nChar, mfXScale, 5);
nChar += psp::appendStr (" 0 0 ", pTranslate + nChar);
nChar += psp::getValueOfDouble ( pTranslate + nChar, mfYScale, 5);
nChar += psp::appendStr (" ", pTranslate + nChar);
nChar += psp::getValueOf (mnRMarginPt, pTranslate + nChar);
- nChar += psp::appendStr (" ", pTranslate + nChar);
+ nChar += psp::appendStr (" ", pTranslate + nChar);
nChar += psp::getValueOf (mnHeightPt-mnTMarginPt,
pTranslate + nChar);
nChar += psp::appendStr ("] concat\ngsave\n",
@@ -895,8 +895,8 @@ bool PrinterJob::writePageSetup( osl::File* pFile, const JobData& rJob, bool bWr
}
else
{
- nChar = psp::appendStr ("gsave\n", pTranslate);
- nChar += psp::appendStr ("[ 0 ", pTranslate + nChar);
+ nChar = psp::appendStr ("gsave\n", pTranslate);
+ nChar += psp::appendStr ("[ 0 ", pTranslate + nChar);
nChar += psp::getValueOfDouble ( pTranslate + nChar, -mfYScale, 5);
nChar += psp::appendStr (" ", pTranslate + nChar);
nChar += psp::getValueOfDouble ( pTranslate + nChar, mfXScale, 5);
@@ -919,12 +919,12 @@ void PrinterJob::writeJobPatch( osl::File* pFile, const JobData& rJobData )
return;
const PPDKey* pKey = NULL;
-
+
if( rJobData.m_pParser )
pKey = rJobData.m_pParser->getKey( OUString( RTL_CONSTASCII_USTRINGPARAM( "JobPatchFile" ) ) );
if( ! pKey )
return;
-
+
// order the patch files
// according to PPD spec the JobPatchFile options must be int
// and should be emitted in order
@@ -1001,7 +1001,7 @@ bool PrinterJob::writeProlog (osl::File* pFile, const JobData& rJobData )
"/oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis] def\n"
"\n"
"/psp_definefont { exch dup findfont dup length dict begin { 1 index /FID ne\n"
- "{ def } { pop pop } ifelse } forall /Encoding 3 -1 roll def\n"
+ "{ def } { pop pop } ifelse } forall /Encoding 3 -1 roll def\n"
"currentdict end exch pop definefont pop } def\n"
"\n"
"/pathdict dup 8 dict def load begin\n"
@@ -1088,7 +1088,7 @@ bool PrinterJob::writeProlog (osl::File* pFile, const JobData& rJobData )
"/oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis] def\n"
"\n"
"/psp_definefont { exch dup findfont dup length dict begin { 1 index /FID ne\n"
- "{ def } { pop pop } ifelse } forall /Encoding 3 -1 roll def\n"
+ "{ def } { pop pop } ifelse } forall /Encoding 3 -1 roll def\n"
"currentdict end exch pop definefont pop } def\n"
"\n"
"/pathdict dup 8 dict def load begin\n"
@@ -1186,9 +1186,9 @@ bool PrinterJob::writeSetup( osl::File* pFile, const JobData& rJob )
aLine += ByteString::CreateFromInt32( rJob.m_nCopies );
aLine += " def\n";
sal_uInt64 nWritten = 0;
- bSuccess = pFile->write( aLine.GetBuffer(), aLine.Len(), nWritten )
+ bSuccess = pFile->write( aLine.GetBuffer(), aLine.Len(), nWritten )
|| nWritten != aLine.Len() ? false : true;
-
+
if( bSuccess && GetPostscriptLevel( &rJob ) >= 2 )
WritePS (pFile, "<< /NumCopies null /Policies << /NumCopies 1 >> >> setpagedevice\n" );
}
diff --git a/vcl/unx/source/printergfx/psputil.cxx b/vcl/unx/source/printergfx/psputil.cxx
index 3fe106221ad2..5f4723bc867d 100644
--- a/vcl/unx/source/printergfx/psputil.cxx
+++ b/vcl/unx/source/printergfx/psputil.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,8 +35,8 @@
#include "tools/debug.hxx"
-namespace psp {
-
+namespace psp {
+
/*
* string convenience routines
*/
@@ -44,8 +44,8 @@ namespace psp {
sal_Int32
getHexValueOf (sal_Int32 nValue, sal_Char* pBuffer)
{
- const static sal_Char pHex [0x10] = {
- '0', '1', '2', '3', '4', '5', '6', '7',
+ const static sal_Char pHex [0x10] = {
+ '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
pBuffer[0] = pHex [(nValue & 0xF0) >> 4];
@@ -60,14 +60,14 @@ getAlignedHexValueOf (sal_Int32 nValue, sal_Char* pBuffer)
// get sign
sal_Bool bNegative = nValue < 0;
nValue = bNegative ? -nValue : nValue;
-
+
// get required buffer size, must be a multiple of two
sal_Int32 nPrecision;
if (nValue < 0x80)
nPrecision = 2;
else
if (nValue < 0x8000)
- nPrecision = 4;
+ nPrecision = 4;
else
if (nValue < 0x800000)
nPrecision = 6;
@@ -96,7 +96,7 @@ getAlignedHexValueOf (sal_Int32 nValue, sal_Char* pBuffer)
case '6' : pBuffer[0] = 'E'; break;
case '7' : pBuffer[0] = 'F'; break;
default: DBG_ERROR("Already a signed value");
- }
+ }
}
// report precision
@@ -121,7 +121,7 @@ getValueOf (sal_Int32 nValue, sal_Char* pBuffer)
}
sal_Char pInvBuffer [32];
- sal_Int32 nInvChar = 0;
+ sal_Int32 nInvChar = 0;
while (nValue > 0)
{
pInvBuffer [nInvChar++] = '0' + nValue % 10;
@@ -131,14 +131,14 @@ getValueOf (sal_Int32 nValue, sal_Char* pBuffer)
{
pBuffer [nChar++] = pInvBuffer [--nInvChar];
}
-
+
return nChar;
}
sal_Int32
appendStr (const sal_Char* pSrc, sal_Char* pDst)
{
- sal_Int32 nBytes = strlen (pSrc);
+ sal_Int32 nBytes = strlen (pSrc);
strncpy (pDst, pSrc, nBytes + 1);
return nBytes;
@@ -148,7 +148,7 @@ sal_Int32
appendStr (const sal_Char* pSrc, sal_Char* pDst, sal_Int32 nBytes)
{
strncpy (pDst, pSrc, nBytes);
- pDst [nBytes] = '\0';
+ pDst [nBytes] = '\0';
return nBytes;
}
@@ -161,7 +161,7 @@ WritePS (osl::File* pFile, const sal_Char* pString)
{
sal_uInt64 nInLength = rtl_str_getLength (pString);
sal_uInt64 nOutLength = 0;
-
+
if (nInLength > 0 && pFile)
pFile->write (pString, nInLength, nOutLength);
@@ -172,7 +172,7 @@ sal_Bool
WritePS (osl::File* pFile, const sal_Char* pString, sal_uInt64 nInLength)
{
sal_uInt64 nOutLength = 0;
-
+
if (nInLength > 0 && pFile)
pFile->write (pString, nInLength, nOutLength);
@@ -184,7 +184,7 @@ WritePS (osl::File* pFile, const rtl::OString &rString)
{
sal_uInt64 nInLength = rString.getLength();
sal_uInt64 nOutLength = 0;
-
+
if (nInLength > 0 && pFile)
pFile->write (rString, nInLength, nOutLength);
@@ -211,7 +211,7 @@ ConverterFactory::~ConverterFactory ()
rtl_destroyUnicodeToTextConverter (it->second);
}
-rtl_UnicodeToTextConverter
+rtl_UnicodeToTextConverter
ConverterFactory::Get (rtl_TextEncoding nEncoding)
{
if (rtl_isOctetTextEncoding( nEncoding ))
@@ -234,7 +234,7 @@ ConverterFactory::Get (rtl_TextEncoding nEncoding)
// wrapper for rtl_convertUnicodeToText that handles the usual cases for
// textconversion in drawtext
sal_Size
-ConverterFactory::Convert (const sal_Unicode *pText, int nTextLen,
+ConverterFactory::Convert (const sal_Unicode *pText, int nTextLen,
sal_uChar *pBuffer, sal_Size nBufferSize, rtl_TextEncoding nEncoding)
{
const sal_uInt32 nCvtFlags = RTL_UNICODETOTEXT_FLAGS_UNDEFINED_QUESTIONMARK
@@ -245,7 +245,7 @@ ConverterFactory::Convert (const sal_Unicode *pText, int nTextLen,
rtl_UnicodeToTextConverter aConverter = Get (nEncoding);
rtl_UnicodeToTextContext aContext = rtl_createUnicodeToTextContext (aConverter);
- sal_Size nSize = rtl_convertUnicodeToText (aConverter, aContext,
+ sal_Size nSize = rtl_convertUnicodeToText (aConverter, aContext,
pText, nTextLen, (sal_Char*)pBuffer, nBufferSize,
nCvtFlags, &nCvtInfo, &nCvtChars);
diff --git a/vcl/unx/source/printergfx/psputil.hxx b/vcl/unx/source/printergfx/psputil.hxx
index 878fd9c7791a..881e964e5c6e 100644
--- a/vcl/unx/source/printergfx/psputil.hxx
+++ b/vcl/unx/source/printergfx/psputil.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,10 +40,10 @@
namespace psp {
-/*
+/*
* string convenience routines
- * sizeof(pBuffer) must be at least 2 Bytes, 0x00 <= nValue <= 0xFF,
- * effective buffer of get*ValueOf() is NOT NULL-terminated
+ * sizeof(pBuffer) must be at least 2 Bytes, 0x00 <= nValue <= 0xFF,
+ * effective buffer of get*ValueOf() is NOT NULL-terminated
*/
sal_Int32 getHexValueOf (sal_Int32 nValue, sal_Char* pBuffer);
sal_Int32 getAlignedHexValueOf (sal_Int32 nValue, sal_Char* pBuffer);
@@ -56,7 +56,7 @@ sal_Bool WritePS (osl::File* pFile, const sal_Char* pString, sal_uInt64 nInLe
sal_Bool WritePS (osl::File* pFile, const rtl::OString &rString);
sal_Bool WritePS (osl::File* pFile, const rtl::OUString &rString);
-class ConverterFactory
+class ConverterFactory
{
public:
@@ -64,11 +64,11 @@ public:
~ConverterFactory();
rtl_UnicodeToTextConverter Get (rtl_TextEncoding nEncoding);
sal_Size Convert (const sal_Unicode *pText, int nTextLen,
- sal_uChar *pBuffer, sal_Size nBufferSize,
+ sal_uChar *pBuffer, sal_Size nBufferSize,
rtl_TextEncoding nEncoding);
private:
- std::map< rtl_TextEncoding, rtl_UnicodeToTextConverter > m_aConverters;
+ std::map< rtl_TextEncoding, rtl_UnicodeToTextConverter > m_aConverters;
};
ConverterFactory* GetConverterFactory ();
diff --git a/vcl/unx/source/printergfx/text_gfx.cxx b/vcl/unx/source/printergfx/text_gfx.cxx
index f700a69c932b..349016587af2 100644
--- a/vcl/unx/source/printergfx/text_gfx.cxx
+++ b/vcl/unx/source/printergfx/text_gfx.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -50,7 +50,7 @@ namespace psp {
1st font is the font substitute e.g. helvetica substitutes arial on the printer
2nd is the font itself
3rd is a fallback font, usually a font with unicode glyph repertoir (e.g. andale)
- symbol fonts (adobe-fontspecific) may need special glyphmapping
+ symbol fonts (adobe-fontspecific) may need special glyphmapping
(symbol page vc. latin page)
*/
class Font3
@@ -60,13 +60,13 @@ class Font3
#define Font3Size 3
fontID mpFont [Font3Size];
- bool mbSymbol;
+ bool mbSymbol;
public:
- fontID GetFont (int nIdx) const
+ fontID GetFont (int nIdx) const
{ return nIdx < Font3Size ? mpFont[nIdx] : -1 ; }
- bool IsSymbolFont () const
+ bool IsSymbolFont () const
{ return mbSymbol; }
Font3 (const PrinterGfx &rGfx);
@@ -76,13 +76,13 @@ class Font3
Font3::Font3(const PrinterGfx &rGfx)
{
mpFont[0] = rGfx.getFontSubstitute();
- mpFont[1] = rGfx.GetFontID();
+ mpFont[1] = rGfx.GetFontID();
mpFont[2] = rGfx.getFallbackID();
// mpFont[2] = rGfx.GetFontID();
- PrintFontManager &rMgr = PrintFontManager::get();
- mbSymbol = mpFont[1] != -1 ?
- rMgr.getFontEncoding(mpFont[1]) == RTL_TEXTENCODING_SYMBOL : false;
+ PrintFontManager &rMgr = PrintFontManager::get();
+ mbSymbol = mpFont[1] != -1 ?
+ rMgr.getFontEncoding(mpFont[1]) == RTL_TEXTENCODING_SYMBOL : false;
}
} // namespace psp
@@ -99,7 +99,7 @@ static int getVerticalDeltaAngle( sal_Unicode nChar )
/* #i52932# remember:
nChar == 0x2010 || nChar == 0x2015
nChar == 0x2016 || nChar == 0x2026
-
+
are nAngle = 0 also, but already handled in the first if
*/
if( ( nChar >= 0x3008 && nChar < 0x3019 && nChar != 0x3012 ) ||
@@ -134,7 +134,7 @@ PrinterGfx::PSUploadPS1Font (sal_Int32 nFontID)
* implement text handling printer routines,
*/
-sal_uInt16
+sal_uInt16
PrinterGfx::SetFont(
sal_Int32 nFontID,
sal_Int32 nHeight,
@@ -152,15 +152,15 @@ PrinterGfx::SetFont(
maVirtualStatus.maEncoding = RTL_TEXTENCODING_DONTKNOW;
maVirtualStatus.mnTextHeight = nHeight;
maVirtualStatus.mnTextWidth = nWidth;
- maVirtualStatus.mbArtItalic = bArtItalic;
- maVirtualStatus.mbArtBold = bArtBold;
+ maVirtualStatus.mbArtItalic = bArtItalic;
+ maVirtualStatus.mbArtBold = bArtBold;
mnTextAngle = nAngle;
mbTextVertical = bVertical;
return 0;
}
-sal_uInt16
+sal_uInt16
PrinterGfx::SetFallbackFont ( sal_Int32 nFontID )
{
mnFallbackID = nFontID;
@@ -176,18 +176,18 @@ void PrinterGfx::drawGlyphs(
)
{
- // draw the string
+ // draw the string
// search for a glyph set matching the set font
std::list< GlyphSet >::iterator aIter;
for (aIter = maPS3Font.begin(); aIter != maPS3Font.end(); aIter++)
- if ( ((*aIter).GetFontID() == mnFontID)
+ if ( ((*aIter).GetFontID() == mnFontID)
&& ((*aIter).IsVertical() == mbTextVertical))
{
(*aIter).DrawGlyphs (*this, rPoint, pGlyphIds, pUnicodes, nLen, pDeltaArray);
break;
}
-
- // not found ? create a new one
+
+ // not found ? create a new one
if (aIter == maPS3Font.end())
{
maPS3Font.push_back (GlyphSet(mnFontID, mbTextVertical));
@@ -257,10 +257,10 @@ void PrinterGfx::DrawGlyphs(
const sal_GlyphId nRot = pGlyphIds[i] & GF_ROTMASK;
if( nRot == GF_NONE )
{
- pTempUnicodes[nTempLen] = pUnicodes[i];
+ pTempUnicodes[nTempLen] = pUnicodes[i];
pTempGlyphIds[nTempLen] = pGlyphIds[i];
if( nTempLen > 0 )
- pTempDelta[nTempLen-1] = pDeltaArray[i-1]-nTempFirstDelta;
+ pTempDelta[nTempLen-1] = pDeltaArray[i-1]-nTempFirstDelta;
else
{
// the first element in pDeltaArray shows
@@ -293,9 +293,9 @@ void PrinterGfx::DrawGlyphs(
aRotPoint = Point( -nDescend*nTextWidth/nTextHeight, nOffset + nAscend*nTextWidth/nTextHeight );
break;
}
- sal_GlyphId nRotGlyphId = pGlyphIds[i];
- sal_Unicode nRotUnicode = pUnicodes[i];
- sal_Int32 nRotDelta = 0;
+ sal_GlyphId nRotGlyphId = pGlyphIds[i];
+ sal_Unicode nRotUnicode = pUnicodes[i];
+ sal_Int32 nRotDelta = 0;
// transform matrix to new individual direction
PSGSave ();
@@ -340,13 +340,13 @@ void
PrinterGfx::DrawText (
const Point& rPoint,
const sal_Unicode* pStr,
- sal_Int16 nLen,
+ sal_Int16 nLen,
const sal_Int32* pDeltaArray
)
{
fontID nRestoreFont = mnFontID;
- // setup font[substitutes] and map the string into the symbol area in case of
+ // setup font[substitutes] and map the string into the symbol area in case of
// symbol font
Font3 aFont(*this);
sal_Unicode *pEffectiveStr;
@@ -358,7 +358,7 @@ PrinterGfx::DrawText (
}
else
{
- pEffectiveStr = const_cast<sal_Unicode*>(pStr);
+ pEffectiveStr = const_cast<sal_Unicode*>(pStr);
}
fontID *pFontMap = (fontID*) alloca(nLen * sizeof(fontID));
@@ -399,7 +399,7 @@ PrinterGfx::DrawText (
PSTranslate (rPoint);
PSRotate (nCurrentTextAngle);
mnTextAngle = 0;
-
+
nCurrentPointX = 0;
nCurrentPointY = 0;
}
@@ -409,7 +409,7 @@ PrinterGfx::DrawText (
nCurrentPointY = rPoint.Y();
}
- // draw the string
+ // draw the string
sal_Int32 nDelta = 0;
for (int nTo = 0; nTo < nLen; )
{
@@ -423,25 +423,25 @@ PrinterGfx::DrawText (
}
SetFont( nFont,
- maVirtualStatus.mnTextHeight, maVirtualStatus.mnTextWidth,
+ maVirtualStatus.mnTextHeight, maVirtualStatus.mnTextWidth,
mnTextAngle,
mbTextVertical,
maVirtualStatus.mbArtItalic,
maVirtualStatus.mbArtBold
);
-
+
if (mbTextVertical)
{
- drawVerticalizedText(
- Point(nCurrentPointX + nDelta, nCurrentPointY),
- pEffectiveStr + nFrom, nTo - nFrom,
+ drawVerticalizedText(
+ Point(nCurrentPointX + nDelta, nCurrentPointY),
+ pEffectiveStr + nFrom, nTo - nFrom,
pNewDeltaArray + nFrom );
}
else
{
- drawText(
- Point(nCurrentPointX + nDelta, nCurrentPointY),
- pEffectiveStr + nFrom, nTo - nFrom,
+ drawText(
+ Point(nCurrentPointX + nDelta, nCurrentPointY),
+ pEffectiveStr + nFrom, nTo - nFrom,
pDeltaArray == NULL ? NULL : pNewDeltaArray + nFrom );
}
nDelta += pNewDeltaArray[ nTo - 1 ];
@@ -456,7 +456,7 @@ PrinterGfx::DrawText (
// restore the original font settings
SetFont( nRestoreFont,
- maVirtualStatus.mnTextHeight, maVirtualStatus.mnTextWidth,
+ maVirtualStatus.mnTextHeight, maVirtualStatus.mnTextWidth,
mnTextAngle, mbTextVertical,
maVirtualStatus.mbArtItalic,
maVirtualStatus.mbArtBold
@@ -466,7 +466,7 @@ PrinterGfx::DrawText (
void PrinterGfx::drawVerticalizedText(
const Point& rPoint,
const sal_Unicode* pStr,
- sal_Int16 nLen,
+ sal_Int16 nLen,
const sal_Int32* pDeltaArray
)
{
@@ -495,32 +495,32 @@ void PrinterGfx::drawVerticalizedText(
{
for( int n = nLastPos; n < i; n++ )
pDelta[n] = pDeltaArray[n] - (aPoint.X() - rPoint.X() );
-
+
SetFont( mnFontID,
maVirtualStatus.mnTextHeight, maVirtualStatus.mnTextWidth,
nNormalAngle, mbTextVertical,
maVirtualStatus.mbArtItalic,
maVirtualStatus.mbArtBold );
drawText( aPoint, pStr + nLastPos, i - nLastPos, pDelta + nLastPos );
-
+
aPoint.X() = (sal_Int32)(rPoint.X() + ((double)pDeltaArray[i-1] * fCos));
aPoint.Y() = (sal_Int32)(rPoint.Y() + ((double)pDeltaArray[i-1] * fSin));
}
if( i < nLen )
{
- int nOldWidth = maVirtualStatus.mnTextWidth;
- int nOldHeight = maVirtualStatus.mnTextHeight;
+ int nOldWidth = maVirtualStatus.mnTextWidth;
+ int nOldHeight = maVirtualStatus.mnTextHeight;
SetFont( mnFontID,
nTextScale,
maVirtualStatus.mnTextHeight,
- nNormalAngle + nDeltaAngle,
+ nNormalAngle + nDeltaAngle,
mbTextVertical,
maVirtualStatus.mbArtItalic,
maVirtualStatus.mbArtBold );
double nA = nTextScale * aInfo.m_nAscend / 1000.0;
double nD = nTextScale * aInfo.m_nDescend / 1000.0;
- double fStretch = (double)maVirtualStatus.mnTextWidth / maVirtualStatus.mnTextHeight;
+ double fStretch = (double)maVirtualStatus.mnTextWidth / maVirtualStatus.mnTextHeight;
if( !pGsubFlags[i] )
nD *= fStretch;
@@ -547,7 +547,7 @@ void PrinterGfx::drawVerticalizedText(
SetFont( mnFontID,
nOldHeight,
nOldWidth,
- nNormalAngle,
+ nNormalAngle,
mbTextVertical,
maVirtualStatus.mbArtItalic,
maVirtualStatus.mbArtBold );
@@ -558,25 +558,25 @@ void PrinterGfx::drawVerticalizedText(
mnTextAngle = nNormalAngle;
}
-void
+void
PrinterGfx::LicenseWarning(const Point& rPoint, const sal_Unicode* pStr,
sal_Int16 nLen, const sal_Int32* pDeltaArray)
{
- // treat it like a builtin font in case a user has that font also in the
- // printer. This is not so unlikely as it may seem; no print embedding
+ // treat it like a builtin font in case a user has that font also in the
+ // printer. This is not so unlikely as it may seem; no print embedding
// licensed fonts are often used (or so they say) in companies:
- // they are installed on displays and printers, but get not embedded in
- // they are installed on displays and printers, but get not embedded in
- // print files or documents because they are not licensed for use outside
+ // they are installed on displays and printers, but get not embedded in
+ // they are installed on displays and printers, but get not embedded in
+ // print files or documents because they are not licensed for use outside
// the company.
rtl::OString aMessage( "The font " );
- aMessage += rtl::OUStringToOString( mrFontMgr.getPSName(mnFontID),
+ aMessage += rtl::OUStringToOString( mrFontMgr.getPSName(mnFontID),
RTL_TEXTENCODING_ASCII_US );
aMessage += " could not be downloaded\nbecause its license does not allow for that";
PSComment( aMessage.getStr() );
- rtl::OString aFontName = rtl::OUStringToOString(
- mrFontMgr.getPSName(mnFontID),
+ rtl::OString aFontName = rtl::OUStringToOString(
+ mrFontMgr.getPSName(mnFontID),
RTL_TEXTENCODING_ASCII_US);
PSSetFont (aFontName, RTL_TEXTENCODING_ISO_8859_1);
@@ -590,11 +590,11 @@ PrinterGfx::LicenseWarning(const Point& rPoint, const sal_Unicode* pStr,
PSShowText (pBuffer, nLen, nSize, pDeltaArray);
}
-void
+void
PrinterGfx::drawText(
const Point& rPoint,
const sal_Unicode* pStr,
- sal_Int16 nLen,
+ sal_Int16 nLen,
const sal_Int32* pDeltaArray
)
{
@@ -606,7 +606,7 @@ PrinterGfx::drawText(
if (eType == fonttype::Type1)
PSUploadPS1Font (mnFontID);
- if ( eType == fonttype::TrueType
+ if ( eType == fonttype::TrueType
&& !mrFontMgr.isFontDownloadingAllowed(mnFontID))
{
LicenseWarning(rPoint, pStr, nLen, pDeltaArray);
@@ -623,14 +623,14 @@ PrinterGfx::drawText(
// search for a glyph set matching the set font
std::list< GlyphSet >::iterator aIter;
for (aIter = maPS3Font.begin(); aIter != maPS3Font.end(); aIter++)
- if ( ((*aIter).GetFontID() == mnFontID)
+ if ( ((*aIter).GetFontID() == mnFontID)
&& ((*aIter).IsVertical() == mbTextVertical))
{
(*aIter).DrawText (*this, rPoint, pStr, nLen, pDeltaArray);
break;
}
- // not found ? create a new one
+ // not found ? create a new one
if (aIter == maPS3Font.end())
{
maPS3Font.push_back (GlyphSet(mnFontID, mbTextVertical));
@@ -643,11 +643,11 @@ PrinterGfx::getCharWidth (sal_Bool b_vert, sal_Unicode n_char, CharacterMetric *
{
b_vert = b_vert && (getVerticalDeltaAngle(n_char) != 0);
int w = b_vert ? p_bbox->height : p_bbox->width;
- w *= maVirtualStatus.mnTextWidth ? maVirtualStatus.mnTextWidth : maVirtualStatus.mnTextHeight;
+ w *= maVirtualStatus.mnTextWidth ? maVirtualStatus.mnTextWidth : maVirtualStatus.mnTextHeight;
return w;
}
-fontID
+fontID
PrinterGfx::getCharMetric (const Font3 &rFont, sal_Unicode n_char, CharacterMetric *p_bbox)
{
p_bbox->width = -1;
@@ -703,7 +703,7 @@ PrinterGfx::getFontSubstitute () const
{
if( mpFontSubstitutes )
{
- ::std::hash_map< fontID, fontID >::const_iterator it =
+ ::std::hash_map< fontID, fontID >::const_iterator it =
mpFontSubstitutes->find( mnFontID );
if( it != mpFontSubstitutes->end() )
return it->second;
@@ -715,12 +715,12 @@ PrinterGfx::getFontSubstitute () const
sal_Int32
PrinterGfx::GetCharWidth (sal_Unicode nFrom, sal_Unicode nTo, long *pWidthArray)
{
- Font3 aFont(*this);
+ Font3 aFont(*this);
if (aFont.IsSymbolFont() && (nFrom < 256) && (nTo < 256))
{
nFrom += 0xF000;
nTo += 0xF000;
- }
+ }
for( int n = 0; n < (nTo - nFrom + 1); n++ )
{
@@ -759,21 +759,21 @@ const ::std::list< KernPair >& PrinterGfx::getKernPairs( bool bVertical ) const
* advanced glyph handling
*/
-sal_Bool
+sal_Bool
PrinterGfx::GetGlyphBoundRect (sal_Unicode /*c*/, Rectangle& /*rOutRect*/)
{
return 0;
}
-sal_uInt32
-PrinterGfx::GetGlyphOutline (sal_Unicode /*c*/,
+sal_uInt32
+PrinterGfx::GetGlyphOutline (sal_Unicode /*c*/,
sal_uInt16 **/*ppPolySizes*/, Point **/*ppPoints*/, sal_uInt8 **/*ppFlags*/)
{
return 0;
}
/*
- * spool the converted truetype fonts to the page header after the page body is
+ * spool the converted truetype fonts to the page header after the page body is
* complete
* for Type1 fonts spool additional reencoding vectors that are necessary to access the
* whole font
@@ -810,7 +810,7 @@ PrinterGfx::writeResources( osl::File* pFile, std::list< rtl::OString >& rSuppli
RTL_TEXTENCODING_ASCII_US );
WritePS (pFile, "%%BeginResource: font ");
- WritePS (pFile, aPostScriptName.getStr());
+ WritePS (pFile, aPostScriptName.getStr());
WritePS (pFile, "\n");
osl::File::RC nError = aFontFile.open (OpenFlag_Read);
@@ -839,7 +839,7 @@ PrinterGfx::writeResources( osl::File* pFile, std::list< rtl::OString >& rSuppli
aIter->PSUploadFont (*pFile, *this, mbUploadPS42Fonts ? true : false, rSuppliedFonts );
}
else
- // ( aIter->GetFontType() == fonttype::Type1
+ // ( aIter->GetFontType() == fonttype::Type1
// || aIter->GetFontType() == fonttype::Builtin )
{
aIter->PSUploadEncoding (pFile, *this);
diff --git a/vcl/unx/source/window/FWS.cxx b/vcl/unx/source/window/FWS.cxx
index 1c08cd6ed42d..cb98a608ae28 100644
--- a/vcl/unx/source/window/FWS.cxx
+++ b/vcl/unx/source/window/FWS.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/unx/source/window/FWS.hxx b/vcl/unx/source/window/FWS.hxx
index 36b4b16a9214..672f167d15b2 100644
--- a/vcl/unx/source/window/FWS.hxx
+++ b/vcl/unx/source/window/FWS.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ extern "C" {
* providing FWS extension support.
*/
-Bool
+Bool
WMSupportsFWS (Display *display, int screen);
/* Send a client message to the FWS_COMM_WINDOW indicating the existance
@@ -48,13 +48,13 @@ WMSupportsFWS (Display *display, int screen);
* old/obsolete junk in it.
*/
-Bool
+Bool
RegisterFwsWindow (Display *display, Window window);
/* Add the FWS protocol atoms to the WMProtocols property for the window.
*/
-void
+void
AddFwsProtocols (Display *display, Window window);
#if defined(__cplusplus)
diff --git a/vcl/unx/source/window/salframe.cxx b/vcl/unx/source/window/salframe.cxx
index 0324f24e03a4..4739b736da95 100644
--- a/vcl/unx/source/window/salframe.cxx
+++ b/vcl/unx/source/window/salframe.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,7 +86,7 @@ using namespace vcl_sal;
using namespace vcl;
// -=-= #defines -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#define CLIENT_EVENTS StructureNotifyMask \
+#define CLIENT_EVENTS StructureNotifyMask \
| SubstructureNotifyMask \
| KeyPressMask \
| KeyReleaseMask \
@@ -103,9 +103,9 @@ using namespace vcl;
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-static XLIB_Window hPresentationWindow = None, hPresFocusWindow = None;
+static XLIB_Window hPresentationWindow = None, hPresFocusWindow = None;
static ::std::list< XLIB_Window > aPresentationReparentList;
-static int nVisibleFloats = 0;
+static int nVisibleFloats = 0;
X11SalFrame* X11SalFrame::s_pSaveYourselfFrame = NULL;
@@ -160,8 +160,8 @@ bool X11SalFrame::IsFloatGrabWindow() const
return
( ( !pDisableGrab || !*pDisableGrab ) &&
(
- (nStyle_ & SAL_FRAME_STYLE_FLOAT) &&
- ! (nStyle_ & SAL_FRAME_STYLE_TOOLTIP) &&
+ (nStyle_ & SAL_FRAME_STYLE_FLOAT) &&
+ ! (nStyle_ & SAL_FRAME_STYLE_TOOLTIP) &&
! (nStyle_ & SAL_FRAME_STYLE_OWNERDRAWDECORATION)
)
);
@@ -188,7 +188,7 @@ void X11SalFrame::setXEmbedInfo()
void X11SalFrame::askForXEmbedFocus( sal_Int32 i_nTimeCode )
{
XEvent aEvent;
-
+
rtl_zeroMemory( &aEvent, sizeof(aEvent) );
aEvent.xclient.window = mhForeignParent;
aEvent.xclient.type = ClientMessage;
@@ -199,7 +199,7 @@ void X11SalFrame::askForXEmbedFocus( sal_Int32 i_nTimeCode )
aEvent.xclient.data.l[2] = 0;
aEvent.xclient.data.l[3] = 0;
aEvent.xclient.data.l[4] = 0;
-
+
GetDisplay()->GetXLib()->PushXErrorLevel( true );
XSendEvent( pDisplay_->GetDisplay(),
mhForeignParent,
@@ -217,9 +217,9 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
nScreen = GetDisplay()->GetDefaultScreenNumber();
if( mpParent )
nScreen = mpParent->m_nScreen;
-
+
m_nScreen = nScreen;
- nStyle_ = nSalFrameStyle;
+ nStyle_ = nSalFrameStyle;
XWMHints Hints;
Hints.flags = InputHint;
Hints.input = (nSalFrameStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION) ? False : True;
@@ -235,15 +235,15 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
| CWEventMask
;
Attributes.border_pixel = 0;
- Attributes.background_pixmap = None;
- Attributes.colormap = GetDisplay()->GetColormap( m_nScreen ).GetXColormap();
- Attributes.override_redirect = False;
- Attributes.event_mask = CLIENT_EVENTS;
-
+ Attributes.background_pixmap = None;
+ Attributes.colormap = GetDisplay()->GetColormap( m_nScreen ).GetXColormap();
+ Attributes.override_redirect = False;
+ Attributes.event_mask = CLIENT_EVENTS;
+
const SalVisual& rVis = GetDisplay()->GetVisual( m_nScreen );
XLIB_Window aFrameParent = pParentData ? pParentData->aWindow : GetDisplay()->GetRootWindow( m_nScreen );
XLIB_Window aClientLeader = None;
-
+
if( bUseGeometry )
{
x = maGeometry.nX;
@@ -251,7 +251,7 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
w = maGeometry.nWidth;
h = maGeometry.nHeight;
}
-
+
if( (nSalFrameStyle & SAL_FRAME_STYLE_FLOAT) &&
! (nSalFrameStyle & SAL_FRAME_STYLE_OWNERDRAWDECORATION)
)
@@ -346,7 +346,7 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
w = 785;
if( aScreenSize.Width() >= 1024 )
w = 920;
-
+
if( aScreenSize.Height() >= 600 )
h = 550;
if( aScreenSize.Height() >= 768 )
@@ -373,7 +373,7 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
break;
++it;
}
-
+
if( it != rFrames.end() )
{
// set a document position and size
@@ -431,7 +431,7 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
try
{
bOk=SelectAppIconPixmap( pDisplay_, m_nScreen,
- mnIconID != 1 ? mnIconID :
+ mnIconID != 1 ? mnIconID :
(mpParent ? mpParent->mnIconID : 1), 32,
Hints.icon_pixmap, Hints.icon_mask );
}
@@ -441,9 +441,9 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
}
if( bOk )
{
- Hints.flags |= IconPixmapHint;
+ Hints.flags |= IconPixmapHint;
if( Hints.icon_mask )
- Hints.flags |= IconMaskHint;
+ Hints.flags |= IconMaskHint;
}
}
@@ -474,8 +474,8 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
}
else
{
- Hints.flags |= WindowGroupHint;
- Hints.window_group = pFrame->GetShellWindow();
+ Hints.flags |= WindowGroupHint;
+ Hints.window_group = pFrame->GetShellWindow();
// note: for a normal document window this will produce None
// as the window is not yet created and the shell window is
// initialized to None. This must be corrected after window creation.
@@ -483,10 +483,10 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
}
}
- nShowState_ = SHOWSTATE_UNKNOWN;
- bViewable_ = TRUE;
- bMapped_ = FALSE;
- nVisibility_ = VisibilityFullyObscured;
+ nShowState_ = SHOWSTATE_UNKNOWN;
+ bViewable_ = TRUE;
+ bMapped_ = FALSE;
+ nVisibility_ = VisibilityFullyObscured;
mhWindow = XCreateWindow( GetXDisplay(),
aFrameParent,
x, y,
@@ -501,8 +501,8 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
if( /*! IsSysChildWindow() &&*/ pParentData == NULL )
{
mhShellWindow = mhWindow;
- }
-
+ }
+
// correct window group if necessary
if( (Hints.flags & WindowGroupHint) == WindowGroupHint )
{
@@ -510,10 +510,10 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
Hints.window_group = GetShellWindow();
}
- maGeometry.nX = x;
- maGeometry.nY = y;
- maGeometry.nWidth = w;
- maGeometry.nHeight = h;
+ maGeometry.nX = x;
+ maGeometry.nY = y;
+ maGeometry.nWidth = w;
+ maGeometry.nHeight = h;
updateScreenNumber();
XSync( GetXDisplay(), False );
@@ -565,7 +565,7 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
GetShellWindow(),
pHints );
XFree (pHints);
-
+
// set PID and WM_CLIENT_MACHINE
pDisplay_->getWMAdaptor()->setClientMachine( this );
pDisplay_->getWMAdaptor()->setPID( this );
@@ -639,9 +639,9 @@ void X11SalFrame::Init( ULONG nSalFrameStyle, int nScreen, SystemParentData* pPa
== SAL_FRAME_STYLE_DEFAULT )
pDisplay_->getWMAdaptor()->maximizeFrame( this, true, true );
}
-
+
m_nWorkArea = GetDisplay()->getWMAdaptor()->getCurrentWorkArea();
-
+
// Pointer
SetPointer( POINTER_ARROW );
}
@@ -654,69 +654,69 @@ X11SalFrame::X11SalFrame( SalFrame *pParent, ULONG nSalFrameStyle, SystemParentD
// initialize frame geometry
memset( &maGeometry, 0, sizeof(maGeometry) );
- mpParent = static_cast< X11SalFrame* >( pParent );
+ mpParent = static_cast< X11SalFrame* >( pParent );
- mbTransientForRoot = false;
+ mbTransientForRoot = false;
- pDisplay_ = pSalData->GetDisplay();
+ pDisplay_ = pSalData->GetDisplay();
// insert frame in framelist
pDisplay_->registerFrame( this );
- mhWindow = None;
- mhShellWindow = None;
- mhStackingWindow = None;
- mhForeignParent = None;
+ mhWindow = None;
+ mhShellWindow = None;
+ mhStackingWindow = None;
+ mhForeignParent = None;
mhBackgroundPixmap = None;
m_bSetFocusOnMap = false;
- pGraphics_ = NULL;
- pFreeGraphics_ = NULL;
+ pGraphics_ = NULL;
+ pFreeGraphics_ = NULL;
- hCursor_ = None;
- nCaptured_ = 0;
+ hCursor_ = None;
+ nCaptured_ = 0;
- nReleaseTime_ = 0;
- nKeyCode_ = 0;
- nKeyState_ = 0;
- nCompose_ = -1;
- mbKeyMenu = false;
- mbSendExtKeyModChange = false;
- mnExtKeyMod = 0;
+ nReleaseTime_ = 0;
+ nKeyCode_ = 0;
+ nKeyState_ = 0;
+ nCompose_ = -1;
+ mbKeyMenu = false;
+ mbSendExtKeyModChange = false;
+ mnExtKeyMod = 0;
- nShowState_ = SHOWSTATE_UNKNOWN;
- nWidth_ = 0;
- nHeight_ = 0;
- nStyle_ = 0;
+ nShowState_ = SHOWSTATE_UNKNOWN;
+ nWidth_ = 0;
+ nHeight_ = 0;
+ nStyle_ = 0;
mnExtStyle = 0;
- bAlwaysOnTop_ = FALSE;
+ bAlwaysOnTop_ = FALSE;
// set bViewable_ to TRUE: hack GetClientSize to report something
// different to 0/0 before first map
- bViewable_ = TRUE;
- bMapped_ = FALSE;
- bDefaultPosition_ = TRUE;
- nVisibility_ = VisibilityFullyObscured;
+ bViewable_ = TRUE;
+ bMapped_ = FALSE;
+ bDefaultPosition_ = TRUE;
+ nVisibility_ = VisibilityFullyObscured;
m_nWorkArea = 0;
- mbInShow = FALSE;
+ mbInShow = FALSE;
m_bXEmbed = false;
- nScreenSaversTimeout_ = 0;
+ nScreenSaversTimeout_ = 0;
- mpInputContext = NULL;
- mbInputFocus = False;
+ mpInputContext = NULL;
+ mbInputFocus = False;
maAlwaysOnTopRaiseTimer.SetTimeoutHdl( LINK( this, X11SalFrame, HandleAlwaysOnTopRaise ) );
maAlwaysOnTopRaiseTimer.SetTimeout( 100 );
- meWindowType = WMAdaptor::windowType_Normal;
- mnDecorationFlags = WMAdaptor::decoration_All;
- mbMaximizedVert = false;
- mbMaximizedHorz = false;
- mbShaded = false;
- mbFullScreen = false;
-
- mnIconID = 1; // ICON_DEFAULT
+ meWindowType = WMAdaptor::windowType_Normal;
+ mnDecorationFlags = WMAdaptor::decoration_All;
+ mbMaximizedVert = false;
+ mbMaximizedHorz = false;
+ mbShaded = false;
+ mbFullScreen = false;
+ mnIconID = 1; // ICON_DEFAULT
+
m_pClipRectangles = NULL;
m_nCurClipRect = 0;
m_nMaxClipRect = 0;
@@ -743,9 +743,9 @@ void X11SalFrame::passOnSaveYourSelf()
if( ! ( IsChildWindow() || pFrame->mpParent )
&& pFrame != s_pSaveYourselfFrame )
break;
- ++it;
+ ++it;
}
-
+
s_pSaveYourselfFrame = (it != rFrames.end() ) ? const_cast<X11SalFrame*>(pFrame) : NULL;
if( s_pSaveYourselfFrame )
{
@@ -763,20 +763,20 @@ void X11SalFrame::passOnSaveYourSelf()
X11SalFrame::~X11SalFrame()
{
notifyDelete();
-
+
if( m_pClipRectangles )
{
delete [] m_pClipRectangles;
m_pClipRectangles = NULL;
m_nCurClipRect = m_nMaxClipRect = 0;
}
-
+
if( mhBackgroundPixmap )
{
XSetWindowBackgroundPixmap( GetXDisplay(), GetWindow(), None );
- XFreePixmap( GetXDisplay(), mhBackgroundPixmap );
+ XFreePixmap( GetXDisplay(), mhBackgroundPixmap );
}
-
+
if( mhStackingWindow )
aPresentationReparentList.remove( mhStackingWindow );
@@ -896,18 +896,18 @@ void X11SalFrame::SetBackgroundBitmap( SalBitmap* pBitmap )
const SystemChildData* X11SalFrame::GetSystemData() const
{
X11SalFrame *pFrame = const_cast<X11SalFrame*>(this);
- pFrame->maSystemChildData.nSize = sizeof( SystemChildData );
- pFrame->maSystemChildData.pDisplay = GetXDisplay();
- pFrame->maSystemChildData.aWindow = pFrame->GetWindow();
- pFrame->maSystemChildData.pSalFrame = pFrame;
- pFrame->maSystemChildData.pWidget = NULL;
- pFrame->maSystemChildData.pVisual = GetDisplay()->GetVisual( m_nScreen ).GetVisual();
- pFrame->maSystemChildData.nScreen = m_nScreen;
- pFrame->maSystemChildData.nDepth = GetDisplay()->GetVisual( m_nScreen ).GetDepth();
- pFrame->maSystemChildData.aColormap = GetDisplay()->GetColormap( m_nScreen ).GetXColormap();
- pFrame->maSystemChildData.pAppContext = NULL;
- pFrame->maSystemChildData.aShellWindow = pFrame->GetShellWindow();
- pFrame->maSystemChildData.pShellWidget = NULL;
+ pFrame->maSystemChildData.nSize = sizeof( SystemChildData );
+ pFrame->maSystemChildData.pDisplay = GetXDisplay();
+ pFrame->maSystemChildData.aWindow = pFrame->GetWindow();
+ pFrame->maSystemChildData.pSalFrame = pFrame;
+ pFrame->maSystemChildData.pWidget = NULL;
+ pFrame->maSystemChildData.pVisual = GetDisplay()->GetVisual( m_nScreen ).GetVisual();
+ pFrame->maSystemChildData.nScreen = m_nScreen;
+ pFrame->maSystemChildData.nDepth = GetDisplay()->GetVisual( m_nScreen ).GetDepth();
+ pFrame->maSystemChildData.aColormap = GetDisplay()->GetColormap( m_nScreen ).GetXColormap();
+ pFrame->maSystemChildData.pAppContext = NULL;
+ pFrame->maSystemChildData.aShellWindow = pFrame->GetShellWindow();
+ pFrame->maSystemChildData.pShellWidget = NULL;
return &maSystemChildData;
}
@@ -918,8 +918,8 @@ SalGraphics *X11SalFrame::GetGraphics()
if( pFreeGraphics_ )
{
- pGraphics_ = pFreeGraphics_;
- pFreeGraphics_ = NULL;
+ pGraphics_ = pFreeGraphics_;
+ pFreeGraphics_ = NULL;
}
else
{
@@ -937,8 +937,8 @@ void X11SalFrame::ReleaseGraphics( SalGraphics *pGraphics )
if( pGraphics != pGraphics_ )
return;
- pFreeGraphics_ = pGraphics_;
- pGraphics_ = NULL;
+ pFreeGraphics_ = pGraphics_;
+ pGraphics_ = NULL;
}
void X11SalFrame::updateGraphics( bool bClear )
@@ -1025,7 +1025,7 @@ void X11SalFrame::SetIcon( USHORT nIcon )
else
{
const String& rWM( pDisplay_->getWMAdaptor()->getWindowManagerName() );
- if( rWM.EqualsAscii( "KWin" ) ) // assume KDE is running
+ if( rWM.EqualsAscii( "KWin" ) ) // assume KDE is running
iconSize = 48;
static bool bGnomeIconSize = false;
static bool bGnomeChecked = false;
@@ -1073,7 +1073,7 @@ void X11SalFrame::SetIcon( USHORT nIcon )
}
if( bOk )
{
- pHints->flags |= IconPixmapHint;
+ pHints->flags |= IconPixmapHint;
if( pHints->icon_mask )
pHints->flags |= IconMaskHint;
@@ -1097,8 +1097,8 @@ void X11SalFrame::SetMaxClientSize( long nWidth, long nHeight )
pHints,
&nSupplied
);
- pHints->max_width = nWidth;
- pHints->max_height = nHeight;
+ pHints->max_width = nWidth;
+ pHints->max_height = nHeight;
pHints->flags |= PMaxSize;
XSetWMNormalHints( GetXDisplay(),
GetShellWindow(),
@@ -1121,8 +1121,8 @@ void X11SalFrame::SetMinClientSize( long nWidth, long nHeight )
pHints,
&nSupplied
);
- pHints->min_width = nWidth;
- pHints->min_height = nHeight;
+ pHints->min_width = nWidth;
+ pHints->min_height = nHeight;
pHints->flags |= PMinSize;
XSetWMNormalHints( GetXDisplay(),
GetShellWindow(),
@@ -1146,7 +1146,7 @@ void X11SalFrame::Show( BOOL bVisible, BOOL bNoActivate )
// so artificially set ABOVE and remove it again on hide
if( mpParent && (mpParent->nStyle_ & SAL_FRAME_STYLE_PARTIAL_FULLSCREEN ) && pDisplay_->getWMAdaptor()->isLegacyPartialFullscreen())
pDisplay_->getWMAdaptor()->enableAlwaysOnTop( this, bVisible );
-
+
bMapped_ = bVisible;
bViewable_ = bVisible;
setXEmbedInfo();
@@ -1170,7 +1170,7 @@ void X11SalFrame::Show( BOOL bVisible, BOOL bNoActivate )
}
}
}
-
+
// update NET_WM_STATE which may have been deleted due to earlier Show(FALSE)
if( nShowState_ == SHOWSTATE_HIDDEN )
GetDisplay()->getWMAdaptor()->frameIsMapping( this );
@@ -1193,7 +1193,7 @@ void X11SalFrame::Show( BOOL bVisible, BOOL bNoActivate )
{
GetDisplay()->getWMAdaptor()->changeReferenceFrame( this, mpParent );
}
-
+
// #i45160# switch to desktop where a dialog with parent will appear
if( mpParent && mpParent->m_nWorkArea != m_nWorkArea )
GetDisplay()->getWMAdaptor()->switchToWorkArea( mpParent->m_nWorkArea );
@@ -1257,7 +1257,7 @@ void X11SalFrame::Show( BOOL bVisible, BOOL bNoActivate )
}
XSync( GetXDisplay(), False );
-
+
if( IsFloatGrabWindow() )
{
/*
@@ -1347,7 +1347,7 @@ void X11SalFrame::Show( BOOL bVisible, BOOL bNoActivate )
}
else if( ! m_bXEmbed )
XUnmapWindow( GetXDisplay(), GetWindow() );
-
+
nShowState_ = SHOWSTATE_HIDDEN;
if( IsFloatGrabWindow() && nVisibleFloats )
{
@@ -1410,7 +1410,7 @@ void X11SalFrame::GetClientSize( long &rWidth, long &rHeight )
return;
}
- rWidth = maGeometry.nWidth;
+ rWidth = maGeometry.nWidth;
rHeight = maGeometry.nHeight;
if( !rWidth || !rHeight )
@@ -1432,29 +1432,29 @@ void X11SalFrame::SetWindowGravity (int nGravity) const
{
XSizeHints* pHint = XAllocSizeHints();
long nFlag;
-
+
XGetWMNormalHints (GetXDisplay(), GetShellWindow(), pHint, &nFlag);
pHint->flags |= PWinGravity;
pHint->win_gravity = nGravity;
-
+
XSetWMNormalHints (GetXDisplay(), GetShellWindow(), pHint);
XSync (GetXDisplay(), False);
-
+
XFree (pHint);
}
}
void X11SalFrame::Center( )
{
- int nX, nY, nScreenWidth, nScreenHeight;
- int nRealScreenWidth, nRealScreenHeight;
- int nScreenX = 0, nScreenY = 0;
+ int nX, nY, nScreenWidth, nScreenHeight;
+ int nRealScreenWidth, nRealScreenHeight;
+ int nScreenX = 0, nScreenY = 0;
const Size& aScreenSize = GetDisplay()->getDataForScreen( m_nScreen ).m_aSize;
- nScreenWidth = aScreenSize.Width();
- nScreenHeight = aScreenSize.Height();
- nRealScreenWidth = nScreenWidth;
- nRealScreenHeight = nScreenHeight;
+ nScreenWidth = aScreenSize.Width();
+ nScreenHeight = aScreenSize.Height();
+ nRealScreenWidth = nScreenWidth;
+ nRealScreenHeight = nScreenHeight;
if( GetDisplay()->IsXinerama() )
{
@@ -1480,10 +1480,10 @@ void X11SalFrame::Center( )
for( unsigned int i = 0; i < rScreens.size(); i++ )
if( rScreens[i].IsInside( Point( root_x, root_y ) ) )
{
- nScreenX = rScreens[i].Left();
- nScreenY = rScreens[i].Top();
- nRealScreenWidth = rScreens[i].GetWidth();
- nRealScreenHeight = rScreens[i].GetHeight();
+ nScreenX = rScreens[i].Left();
+ nScreenY = rScreens[i].Top();
+ nRealScreenWidth = rScreens[i].GetWidth();
+ nRealScreenHeight = rScreens[i].GetHeight();
break;
}
}
@@ -1497,10 +1497,10 @@ void X11SalFrame::Center( )
{
Rectangle aRect;
pFrame->GetPosSize( aRect );
- pFrame->maGeometry.nX = aRect.Left();
- pFrame->maGeometry.nY = aRect.Top();
- pFrame->maGeometry.nWidth = aRect.GetWidth();
- pFrame->maGeometry.nHeight = aRect.GetHeight();
+ pFrame->maGeometry.nX = aRect.Left();
+ pFrame->maGeometry.nY = aRect.Top();
+ pFrame->maGeometry.nWidth = aRect.GetWidth();
+ pFrame->maGeometry.nHeight = aRect.GetHeight();
}
if( pFrame->nStyle_ & SAL_FRAME_STYLE_PLUG )
@@ -1517,10 +1517,10 @@ void X11SalFrame::Center( )
}
else
{
- nScreenX = pFrame->maGeometry.nX;
- nScreenY = pFrame->maGeometry.nY;
- nScreenWidth = pFrame->maGeometry.nWidth;
- nScreenHeight = pFrame->maGeometry.nHeight;
+ nScreenX = pFrame->maGeometry.nX;
+ nScreenY = pFrame->maGeometry.nY;
+ nScreenWidth = pFrame->maGeometry.nWidth;
+ nScreenHeight = pFrame->maGeometry.nHeight;
}
}
@@ -1535,14 +1535,14 @@ void X11SalFrame::Center( )
else
{
// center the window relative to the top level frame
- nX = (nScreenWidth - (int)maGeometry.nWidth ) / 2 + nScreenX;
+ nX = (nScreenWidth - (int)maGeometry.nWidth ) / 2 + nScreenX;
nY = (nScreenHeight - (int)maGeometry.nHeight) / 2 + nScreenY;
}
}
else
{
// center the window relative to screen
- nX = (nRealScreenWidth - (int)maGeometry.nWidth ) / 2 + nScreenX;
+ nX = (nRealScreenWidth - (int)maGeometry.nWidth ) / 2 + nScreenX;
nY = (nRealScreenHeight - (int)maGeometry.nHeight) / 2 + nScreenY;
}
nX = nX < 0 ? 0 : nX;
@@ -1585,7 +1585,7 @@ void X11SalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, USHOR
{
if( nStyle_ & SAL_FRAME_STYLE_PLUG )
return;
-
+
// relative positioning in X11SalFrame::SetPosSize
Rectangle aPosSize( Point( maGeometry.nX, maGeometry.nY ), Size( maGeometry.nWidth, maGeometry.nHeight ) );
aPosSize.Justify();
@@ -1655,7 +1655,7 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
{
Rectangle aPosSize;
bool bDoAdjust = false;
-
+
/* #i44325#
* if maximized, set restore size and guess maximized size from last time
* in state change below maximize window
@@ -1674,14 +1674,14 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
pHints,
&nSupplied );
pHints->flags |= PPosition | PWinGravity;
- pHints->x = pState->mnX;
- pHints->y = pState->mnY;
- pHints->win_gravity = pDisplay_->getWMAdaptor()->getPositionWinGravity();
+ pHints->x = pState->mnX;
+ pHints->y = pState->mnY;
+ pHints->win_gravity = pDisplay_->getWMAdaptor()->getPositionWinGravity();
XSetWMNormalHints( GetXDisplay(),
GetShellWindow(),
pHints );
XFree( pHints );
-
+
XMoveResizeWindow( GetXDisplay(), GetShellWindow(),
pState->mnX, pState->mnY,
pState->mnWidth, pState->mnHeight );
@@ -1697,7 +1697,7 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
// initialize with current geometry
if ((pState->mnMask & _FRAMESTATE_MASK_GEOMETRY) != _FRAMESTATE_MASK_GEOMETRY)
GetPosSize (aPosSize);
-
+
// change requested properties
if (pState->mnMask & SAL_FRAMESTATE_MASK_X)
{
@@ -1719,15 +1719,15 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
aPosSize.setHeight (nHeight);
bDoAdjust = true;
}
-
+
const Size& aScreenSize = pDisplay_->getDataForScreen( m_nScreen ).m_aSize;
const WMAdaptor *pWM = GetDisplay()->getWMAdaptor();
-
+
if( bDoAdjust && aPosSize.GetWidth() <= aScreenSize.Width()
&& aPosSize.GetHeight() <= aScreenSize.Height() )
{
SalFrameGeometry aGeom = maGeometry;
-
+
if( ! (nStyle_ & ( SAL_FRAME_STYLE_FLOAT | SAL_FRAME_STYLE_PLUG ) ) &&
mpParent &&
aGeom.nLeftDecoration == 0 &&
@@ -1743,7 +1743,7 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
aGeom.nBottomDecoration = 5;
}
}
-
+
// adjust position so that frame fits onto screen
if( aPosSize.Right()+(long)aGeom.nRightDecoration > aScreenSize.Width()-1 )
aPosSize.Move( (long)aScreenSize.Width() - (long)aPosSize.Right() - (long)aGeom.nRightDecoration, 0 );
@@ -1754,7 +1754,7 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
if( aPosSize.Top() < (long)aGeom.nTopDecoration )
aPosSize.Move( 0, (long)aGeom.nTopDecoration - (long)aPosSize.Top() );
}
-
+
// resize with new args
if (pWM->supportsICCCMPos())
{
@@ -1820,7 +1820,7 @@ BOOL X11SalFrame::GetWindowState( SalFrameState* pState )
GetPosSize( aPosSize );
else
aPosSize = maRestorePosSize;
-
+
if( mbMaximizedHorz )
pState->mnState |= SAL_FRAMESTATE_MAXIMIZED_HORZ;
if( mbMaximizedVert )
@@ -1828,8 +1828,8 @@ BOOL X11SalFrame::GetWindowState( SalFrameState* pState )
if( mbShaded )
pState->mnState |= SAL_FRAMESTATE_ROLLUP;
- pState->mnX = aPosSize.Left();
- pState->mnY = aPosSize.Top();
+ pState->mnX = aPosSize.Left();
+ pState->mnY = aPosSize.Top();
pState->mnWidth = aPosSize.GetWidth();
pState->mnHeight = aPosSize.GetHeight();
@@ -1941,10 +1941,10 @@ void X11SalFrame::SetSize( const Size &rSize )
pHints,
&nSupplied
);
- pHints->min_width = rSize.Width();
- pHints->min_height = rSize.Height();
- pHints->max_width = rSize.Width();
- pHints->max_height = rSize.Height();
+ pHints->min_width = rSize.Width();
+ pHints->min_height = rSize.Height();
+ pHints->max_width = rSize.Width();
+ pHints->max_height = rSize.Height();
pHints->flags |= PMinSize | PMaxSize;
XSetWMNormalHints( GetXDisplay(),
GetShellWindow(),
@@ -1976,10 +1976,10 @@ void X11SalFrame::SetSize( const Size &rSize )
void X11SalFrame::SetPosSize( const Rectangle &rPosSize )
{
XWindowChanges values;
- values.x = rPosSize.Left();
- values.y = rPosSize.Top();
- values.width = rPosSize.GetWidth();
- values.height = rPosSize.GetHeight();
+ values.x = rPosSize.Left();
+ values.y = rPosSize.Top();
+ values.width = rPosSize.GetWidth();
+ values.height = rPosSize.GetHeight();
if( !values.width || !values.height )
return;
@@ -2010,8 +2010,8 @@ void X11SalFrame::SetPosSize( const Rectangle &rPosSize )
if( ! ( nStyle_ & ( SAL_FRAME_STYLE_PLUG | SAL_FRAME_STYLE_FLOAT ) )
&& !(pDisplay_->GetProperties() & PROPERTY_SUPPORT_WM_ClientPos) )
{
- values.x -= maGeometry.nLeftDecoration;
- values.y -= maGeometry.nTopDecoration;
+ values.x -= maGeometry.nLeftDecoration;
+ values.y -= maGeometry.nTopDecoration;
}
// do net set WMNormalHints for ..
@@ -2019,7 +2019,7 @@ void X11SalFrame::SetPosSize( const Rectangle &rPosSize )
// child windows
! IsChildWindow()
// popups (menu, help window, etc.)
- && (nStyle_ & (SAL_FRAME_STYLE_FLOAT|SAL_FRAME_STYLE_OWNERDRAWDECORATION) ) != SAL_FRAME_STYLE_FLOAT
+ && (nStyle_ & (SAL_FRAME_STYLE_FLOAT|SAL_FRAME_STYLE_OWNERDRAWDECORATION) ) != SAL_FRAME_STYLE_FLOAT
// shown, sizeable windows
&& ( nShowState_ == SHOWSTATE_UNKNOWN ||
nShowState_ == SHOWSTATE_HIDDEN ||
@@ -2036,23 +2036,23 @@ void X11SalFrame::SetPosSize( const Rectangle &rPosSize )
);
if( ! ( nStyle_ & SAL_FRAME_STYLE_SIZEABLE ) )
{
- pHints->min_width = rPosSize.GetWidth();
- pHints->min_height = rPosSize.GetHeight();
- pHints->max_width = rPosSize.GetWidth();
- pHints->max_height = rPosSize.GetHeight();
+ pHints->min_width = rPosSize.GetWidth();
+ pHints->min_height = rPosSize.GetHeight();
+ pHints->max_width = rPosSize.GetWidth();
+ pHints->max_height = rPosSize.GetHeight();
pHints->flags |= PMinSize | PMaxSize;
}
if( nShowState_ == SHOWSTATE_UNKNOWN || nShowState_ == SHOWSTATE_HIDDEN )
{
pHints->flags |= PPosition | PWinGravity;
- pHints->x = values.x;
- pHints->y = values.y;
- pHints->win_gravity = pDisplay_->getWMAdaptor()->getPositionWinGravity();
+ pHints->x = values.x;
+ pHints->y = values.y;
+ pHints->win_gravity = pDisplay_->getWMAdaptor()->getPositionWinGravity();
}
if( mbFullScreen )
{
- pHints->max_width = 10000;
- pHints->max_height = 10000;
+ pHints->max_width = 10000;
+ pHints->max_height = 10000;
pHints->flags |= PMaxSize;
}
XSetWMNormalHints( GetXDisplay(),
@@ -2068,19 +2068,19 @@ void X11SalFrame::SetPosSize( const Rectangle &rPosSize )
XMoveResizeWindow( GetXDisplay(), GetWindow(), 0, 0, values.width, values.height );
else
XMoveResizeWindow( GetXDisplay(), GetWindow(), values.x, values.y, values.width, values.height );
- }
+ }
- maGeometry.nX = values.x;
- maGeometry.nY = values.y;
- maGeometry.nWidth = values.width;
- maGeometry.nHeight = values.height;
+ maGeometry.nX = values.x;
+ maGeometry.nY = values.y;
+ maGeometry.nWidth = values.width;
+ maGeometry.nHeight = values.height;
if( IsSysChildWindow() && mpParent )
{
// translate back to root coordinates
maGeometry.nX += mpParent->maGeometry.nX;
maGeometry.nY += mpParent->maGeometry.nY;
}
-
+
updateScreenNumber();
if( bSized && ! bMoved )
CallCallback( SALEVENT_RESIZE, NULL );
@@ -2099,7 +2099,7 @@ void X11SalFrame::Minimize()
{
if( IsSysChildWindow() )
return;
-
+
if( SHOWSTATE_UNKNOWN == nShowState_ || SHOWSTATE_HIDDEN == nShowState_ )
{
stderr0( "X11SalFrame::Minimize on withdrawn window\n" );
@@ -2117,7 +2117,7 @@ void X11SalFrame::Maximize()
{
if( IsSysChildWindow() )
return;
-
+
if( SHOWSTATE_MINIMIZED == nShowState_ )
{
GetDisplay()->getWMAdaptor()->frameIsMapping( this );
@@ -2133,7 +2133,7 @@ void X11SalFrame::Restore()
{
if( IsSysChildWindow() )
return;
-
+
if( SHOWSTATE_UNKNOWN == nShowState_ || SHOWSTATE_HIDDEN == nShowState_ )
{
stderr0( "X11SalFrame::Restore on withdrawn window\n" );
@@ -2156,12 +2156,12 @@ void X11SalFrame::SetScreenNumber( unsigned int nNewScreen )
{
if( nNewScreen == maGeometry.nScreenNumber )
return;
-
+
if( GetDisplay()->IsXinerama() && GetDisplay()->GetXineramaScreens().size() > 1 )
{
if( nNewScreen >= GetDisplay()->GetXineramaScreens().size() )
return;
-
+
Rectangle aOldScreenRect( GetDisplay()->GetXineramaScreens()[maGeometry.nScreenNumber] );
Rectangle aNewScreenRect( GetDisplay()->GetXineramaScreens()[nNewScreen] );
bool bVisible = bMapped_;
@@ -2243,7 +2243,7 @@ void X11SalFrame::ShowFullScreen( BOOL bFullScreen, sal_Int32 nScreen )
createNewWindow( None, m_nScreen );
if( GetDisplay()->getWMAdaptor()->isLegacyPartialFullscreen() )
GetDisplay()->getWMAdaptor()->enableAlwaysOnTop( this, true );
- else
+ else
GetDisplay()->getWMAdaptor()->showFullScreen( this, true );
if( bVisible )
Show(TRUE);
@@ -2286,7 +2286,7 @@ void X11SalFrame::ShowFullScreen( BOOL bFullScreen, sal_Int32 nScreen )
}
if( mbFullScreen == (bool)bFullScreen )
return;
-
+
pDisplay_->getWMAdaptor()->showFullScreen( this, bFullScreen );
if( IsOverrideRedirect()
&& WMSupportsFWS( GetXDisplay(), GetDisplay()->GetRootWindow( m_nScreen ) ) )
@@ -2306,7 +2306,7 @@ static Bool
IsRunningXAutoLock( Display *p_display, XLIB_Window a_window )
{
const char *p_atomname = "XAUTOLOCK_SEMAPHORE_PID";
- Atom a_pidatom;
+ Atom a_pidatom;
// xautolock interns this atom
a_pidatom = XInternAtom( p_display, p_atomname, True );
@@ -2317,7 +2317,7 @@ IsRunningXAutoLock( Display *p_display, XLIB_Window a_window )
int n_format;
unsigned long n_items;
unsigned long n_bytes_after;
- pid_t *p_pid;
+ pid_t *p_pid;
pid_t n_pid;
// get pid of running xautolock
XGetWindowProperty (p_display, a_window, a_pidatom, 0L, 2L, False,
@@ -2378,10 +2378,10 @@ void X11SalFrame::StartPresentation( BOOL bStart )
if( ! bStart && hPresentationWindow != None )
doReparentPresentationDialogues( GetDisplay() );
hPresentationWindow = (bStart && IsOverrideRedirect() ) ? GetWindow() : None;
-
-
+
+
// needs static here to save DPMS settings
- int dummy;
+ int dummy;
static bool DPMSExtensionAvailable =
#if !defined(SOLARIS) && !defined(AIX)
(DPMSQueryExtension(GetXDisplay(), &dummy, &dummy) != 0);
@@ -2395,8 +2395,8 @@ void X11SalFrame::StartPresentation( BOOL bStart )
static CARD16 dpms_standby_timeout=0;
static CARD16 dpms_suspend_timeout=0;
static CARD16 dpms_off_timeout=0;
-
-
+
+
if( bStart || nScreenSaversTimeout_ || DPMSEnabled)
{
if( hPresentationWindow )
@@ -2413,20 +2413,20 @@ void X11SalFrame::StartPresentation( BOOL bStart )
&interval,
&prefer_blanking,
&allow_exposures );
-
-
+
+
// get the DPMS state right before the start
if (DPMSExtensionAvailable)
{
#if !defined(SOLARIS) && !defined(AIX)
- CARD16 state; // card16 is defined in Xdm.h
- DPMSInfo( GetXDisplay(),
- &state,
+ CARD16 state; // card16 is defined in Xdm.h
+ DPMSInfo( GetXDisplay(),
+ &state,
&DPMSEnabled);
#endif
- }
- if( bStart ) // start show
- {
+ }
+ if( bStart ) // start show
+ {
if ( timeout )
{
nScreenSaversTimeout_ = timeout;
@@ -2435,41 +2435,41 @@ void X11SalFrame::StartPresentation( BOOL bStart )
0,
interval,
prefer_blanking,
- allow_exposures );
+ allow_exposures );
}
#if !defined(SOLARIS) && !defined(AIX)
if( DPMSEnabled )
{
if ( DPMSExtensionAvailable )
{
- DPMSGetTimeouts( GetXDisplay(),
- &dpms_standby_timeout,
- &dpms_suspend_timeout,
- &dpms_off_timeout);
- DPMSSetTimeouts(GetXDisplay(), 0,0,0);
+ DPMSGetTimeouts( GetXDisplay(),
+ &dpms_standby_timeout,
+ &dpms_suspend_timeout,
+ &dpms_off_timeout);
+ DPMSSetTimeouts(GetXDisplay(), 0,0,0);
}
}
#endif
- }
+ }
else // if( !bStart ) // end of show
{
- if( nScreenSaversTimeout_ )
+ if( nScreenSaversTimeout_ )
{
XSetScreenSaver( GetXDisplay(),
nScreenSaversTimeout_,
interval,
prefer_blanking,
allow_exposures );
- nScreenSaversTimeout_ = 0;
+ nScreenSaversTimeout_ = 0;
}
#if !defined(SOLARIS) && !defined(AIX)
if ( DPMSEnabled )
- {
+ {
if ( DPMSExtensionAvailable )
{
- // restore timeouts
- DPMSSetTimeouts(GetXDisplay(), dpms_standby_timeout,
- dpms_suspend_timeout, dpms_off_timeout);
+ // restore timeouts
+ DPMSSetTimeouts(GetXDisplay(), dpms_standby_timeout,
+ dpms_suspend_timeout, dpms_off_timeout);
}
}
#endif
@@ -2509,16 +2509,16 @@ void
X11SalFrame::PostExtTextEvent (sal_uInt16 nExtTextEventType, void *pExtTextEvent)
{
XLIB_Window nFocusWindow = GetWindow();
- Atom nEventAtom = GetDisplay()->getWMAdaptor()->getAtom( WMAdaptor::SAL_EXTTEXTEVENT );
+ Atom nEventAtom = GetDisplay()->getWMAdaptor()->getAtom( WMAdaptor::SAL_EXTTEXTEVENT );
XEvent aEvent;
- aEvent.xclient.type = ClientMessage;
- aEvent.xclient.serial = 0;
- aEvent.xclient.send_event = True;
- aEvent.xclient.display = GetXDisplay();
- aEvent.xclient.window = nFocusWindow;
- aEvent.xclient.message_type = nEventAtom;
- aEvent.xclient.format = 32;
+ aEvent.xclient.type = ClientMessage;
+ aEvent.xclient.serial = 0;
+ aEvent.xclient.send_event = True;
+ aEvent.xclient.display = GetXDisplay();
+ aEvent.xclient.window = nFocusWindow;
+ aEvent.xclient.message_type = nEventAtom;
+ aEvent.xclient.format = 32;
#if SAL_TYPES_SIZEOFLONG > 4
aEvent.xclient.data.l[0] = (sal_uInt32)((long)pExtTextEvent & 0xffffffff);
@@ -2720,7 +2720,7 @@ void X11SalFrame::createNewWindow( XLIB_Window aNewParent, int nScreen )
bool bWasVisible = bMapped_;
if( bWasVisible )
Show( FALSE );
-
+
if( nScreen < 0 || nScreen >= GetDisplay()->GetScreenCount() )
nScreen = m_nScreen;
@@ -2775,10 +2775,10 @@ void X11SalFrame::createNewWindow( XLIB_Window aNewParent, int nScreen )
// update graphics if necessary
updateGraphics(false);
-
+
if( m_aTitle.Len() )
SetTitle( m_aTitle );
-
+
if( mpParent )
{
if( mpParent->m_nScreen != m_nScreen )
@@ -2789,11 +2789,11 @@ void X11SalFrame::createNewWindow( XLIB_Window aNewParent, int nScreen )
if( bWasVisible )
Show( TRUE );
-
+
std::list< X11SalFrame* > aChildren = maChildren;
for( std::list< X11SalFrame* >::iterator it = aChildren.begin(); it != aChildren.end(); ++it )
(*it)->createNewWindow( None, m_nScreen );
-
+
// FIXME: SalObjects
}
@@ -2886,9 +2886,9 @@ void X11SalFrame::SimulateKeyPress( USHORT nKeyCode )
long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
{
- SalMouseEvent aMouseEvt;
- USHORT nEvent = 0;
- bool bClosePopups = false;
+ SalMouseEvent aMouseEvt;
+ USHORT nEvent = 0;
+ bool bClosePopups = false;
if( nVisibleFloats && pEvent->type == EnterNotify )
return 0;
@@ -2904,7 +2904,7 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
if ( pEvent->xcrossing.state & Button2Mask )
{
pEvent->xcrossing.state &= ~Button2Mask;
- pEvent->xcrossing.state |= Button3Mask;
+ pEvent->xcrossing.state |= Button3Mask;
}
break;
@@ -2950,26 +2950,26 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
if( pEvent->xcrossing.mode == NotifyGrab || pEvent->xcrossing.mode == NotifyUngrab )
return 0;
- aMouseEvt.mnX = pEvent->xcrossing.x;
- aMouseEvt.mnY = pEvent->xcrossing.y;
- aMouseEvt.mnTime = pEvent->xcrossing.time;
- aMouseEvt.mnCode = sal_GetCode( pEvent->xcrossing.state );
- aMouseEvt.mnButton = 0;
+ aMouseEvt.mnX = pEvent->xcrossing.x;
+ aMouseEvt.mnY = pEvent->xcrossing.y;
+ aMouseEvt.mnTime = pEvent->xcrossing.time;
+ aMouseEvt.mnCode = sal_GetCode( pEvent->xcrossing.state );
+ aMouseEvt.mnButton = 0;
- nEvent = LeaveNotify == pEvent->type
+ nEvent = LeaveNotify == pEvent->type
? SALEVENT_MOUSELEAVE
: SALEVENT_MOUSEMOVE;
}
else if( pEvent->type == MotionNotify )
{
- aMouseEvt.mnX = pEvent->xmotion.x;
- aMouseEvt.mnY = pEvent->xmotion.y;
- aMouseEvt.mnTime = pEvent->xmotion.time;
- aMouseEvt.mnCode = sal_GetCode( pEvent->xmotion.state );
+ aMouseEvt.mnX = pEvent->xmotion.x;
+ aMouseEvt.mnY = pEvent->xmotion.y;
+ aMouseEvt.mnTime = pEvent->xmotion.time;
+ aMouseEvt.mnCode = sal_GetCode( pEvent->xmotion.state );
- aMouseEvt.mnButton = 0;
+ aMouseEvt.mnButton = 0;
- nEvent = SALEVENT_MOUSEMOVE;
+ nEvent = SALEVENT_MOUSEMOVE;
if( nVisibleFloats > 0 && mpParent )
{
XLIB_Cursor aCursor = mpParent->GetCursor();
@@ -3000,11 +3000,11 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
for( std::list< SalFrame* >::const_iterator it = rFrames.begin(); it != rFrames.end(); ++it )
{
const X11SalFrame* pFrame = static_cast< const X11SalFrame* >(*it);
- if( pFrame->IsFloatGrabWindow() &&
- pFrame->bMapped_ &&
- pEvent->xbutton.x_root >= pFrame->maGeometry.nX &&
- pEvent->xbutton.x_root < pFrame->maGeometry.nX + (int)pFrame->maGeometry.nWidth &&
- pEvent->xbutton.y_root >= pFrame->maGeometry.nY &&
+ if( pFrame->IsFloatGrabWindow() &&
+ pFrame->bMapped_ &&
+ pEvent->xbutton.x_root >= pFrame->maGeometry.nX &&
+ pEvent->xbutton.x_root < pFrame->maGeometry.nX + (int)pFrame->maGeometry.nWidth &&
+ pEvent->xbutton.y_root >= pFrame->maGeometry.nY &&
pEvent->xbutton.y_root < pFrame->maGeometry.nY + (int)pFrame->maGeometry.nHeight )
{
bInside = true;
@@ -3058,7 +3058,7 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
}
}
}
-
+
if( m_bXEmbed && pEvent->xbutton.button == Button1 )
askForXEmbedFocus( pEvent->xbutton.time );
@@ -3066,19 +3066,19 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
pEvent->xbutton.button == Button2 ||
pEvent->xbutton.button == Button3 )
{
- aMouseEvt.mnX = pEvent->xbutton.x;
- aMouseEvt.mnY = pEvent->xbutton.y;
- aMouseEvt.mnTime = pEvent->xbutton.time;
- aMouseEvt.mnCode = sal_GetCode( pEvent->xbutton.state );
+ aMouseEvt.mnX = pEvent->xbutton.x;
+ aMouseEvt.mnY = pEvent->xbutton.y;
+ aMouseEvt.mnTime = pEvent->xbutton.time;
+ aMouseEvt.mnCode = sal_GetCode( pEvent->xbutton.state );
if( Button1 == pEvent->xbutton.button )
- aMouseEvt.mnButton = MOUSE_LEFT;
+ aMouseEvt.mnButton = MOUSE_LEFT;
else if( Button2 == pEvent->xbutton.button )
- aMouseEvt.mnButton = MOUSE_MIDDLE;
+ aMouseEvt.mnButton = MOUSE_MIDDLE;
else if( Button3 == pEvent->xbutton.button )
- aMouseEvt.mnButton = MOUSE_RIGHT;
+ aMouseEvt.mnButton = MOUSE_RIGHT;
- nEvent = ButtonPress == pEvent->type
+ nEvent = ButtonPress == pEvent->type
? SALEVENT_MOUSEBUTTONDOWN
: SALEVENT_MOUSEBUTTONUP;
}
@@ -3087,17 +3087,17 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
pEvent->xbutton.button == Button6 ||
pEvent->xbutton.button == Button7 )
{
- const bool bIncrement(
+ const bool bIncrement(
pEvent->xbutton.button == Button4 ||
pEvent->xbutton.button == Button6 );
- const bool bHoriz(
+ const bool bHoriz(
pEvent->xbutton.button == Button6 ||
pEvent->xbutton.button == Button7 );
if( pEvent->type == ButtonRelease )
return 0;
- static ULONG nLines = 0;
+ static ULONG nLines = 0;
if( ! nLines )
{
char* pEnv = getenv( "SAL_WHEELLINES" );
@@ -3106,15 +3106,15 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
nLines = SAL_WHEELMOUSE_EVENT_PAGESCROLL;
}
- SalWheelMouseEvent aWheelEvt;
- aWheelEvt.mnTime = pEvent->xbutton.time;
- aWheelEvt.mnX = pEvent->xbutton.x;
- aWheelEvt.mnY = pEvent->xbutton.y;
- aWheelEvt.mnDelta = bIncrement ? 120 : -120;
- aWheelEvt.mnNotchDelta = bIncrement ? 1 : -1;
+ SalWheelMouseEvent aWheelEvt;
+ aWheelEvt.mnTime = pEvent->xbutton.time;
+ aWheelEvt.mnX = pEvent->xbutton.x;
+ aWheelEvt.mnY = pEvent->xbutton.y;
+ aWheelEvt.mnDelta = bIncrement ? 120 : -120;
+ aWheelEvt.mnNotchDelta = bIncrement ? 1 : -1;
aWheelEvt.mnScrollLines = nLines;
- aWheelEvt.mnCode = sal_GetCode( pEvent->xbutton.state );
- aWheelEvt.mbHorz = bHoriz;
+ aWheelEvt.mnCode = sal_GetCode( pEvent->xbutton.state );
+ aWheelEvt.mbHorz = bHoriz;
nEvent = SALEVENT_WHEELMOUSE;
@@ -3159,8 +3159,8 @@ long X11SalFrame::HandleMouseEvent( XEvent *pEvent )
// in the independent part.
struct KeyAlternate
{
- USHORT nKeyCode;
- sal_Unicode nCharCode;
+ USHORT nKeyCode;
+ sal_Unicode nCharCode;
KeyAlternate() : nKeyCode( 0 ), nCharCode( 0 ) {}
KeyAlternate( USHORT nKey, sal_Unicode nChar = 0 ) : nKeyCode( nKey ), nCharCode( nChar ) {}
};
@@ -3182,10 +3182,10 @@ GetAlternateKeyCode( const USHORT nKeyCode )
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
{
- KeySym nKeySym;
+ KeySym nKeySym;
KeySym nUnmodifiedKeySym;
- int nLen = 2048;
- unsigned char *pPrintable = (unsigned char*)alloca( nLen );
+ int nLen = 2048;
+ unsigned char *pPrintable = (unsigned char*)alloca( nLen );
// singlebyte code composed by input method, the new default
if (mpInputContext != NULL && mpInputContext->UseContext())
@@ -3215,7 +3215,7 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
SalKeyEvent aKeyEvt;
USHORT nKeyCode;
USHORT nModCode = 0;
- char aDummy;
+ char aDummy;
if( pEvent->state & ShiftMask )
nModCode |= KEY_SHIFT;
@@ -3224,10 +3224,10 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
if( pEvent->state & Mod1Mask )
nModCode |= KEY_MOD2;
- if( nKeySym == XK_Shift_L || nKeySym == XK_Shift_R
- || nKeySym == XK_Control_L || nKeySym == XK_Control_R
- || nKeySym == XK_Alt_L || nKeySym == XK_Alt_R
- || nKeySym == XK_Meta_L || nKeySym == XK_Meta_R
+ if( nKeySym == XK_Shift_L || nKeySym == XK_Shift_R
+ || nKeySym == XK_Control_L || nKeySym == XK_Control_R
+ || nKeySym == XK_Alt_L || nKeySym == XK_Alt_R
+ || nKeySym == XK_Meta_L || nKeySym == XK_Meta_R
|| nKeySym == XK_Super_L || nKeySym == XK_Super_R )
{
SalKeyModEvent aModEvt;
@@ -3310,9 +3310,9 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
else if( mbKeyMenu )
{
// simulate KEY_MENU
- aKeyEvt.mnCode = KEY_MENU | nModCode;
+ aKeyEvt.mnCode = KEY_MENU | nModCode;
aKeyEvt.mnRepeat = 0;
- aKeyEvt.mnTime = pEvent->time;
+ aKeyEvt.mnTime = pEvent->time;
aKeyEvt.mnCharCode = 0;
nRet = CallCallback( SALEVENT_KEYINPUT, &aKeyEvt );
nRet = CallCallback( SALEVENT_KEYUP, &aKeyEvt );
@@ -3340,7 +3340,7 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
// information (in et_EE locale: "Compose + Z + <" delivers "," in printable and
// (the desired) Zcaron in KeySym
sal_Unicode nKeyString = 0x0;
- if ( (nLen == 0)
+ if ( (nLen == 0)
|| ((nLen == 1) && (nKeySym > 0)) )
nKeyString = KeysymToUnicode (nKeySym);
// if we have nothing we give up
@@ -3418,9 +3418,9 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
else
// normal single character keyinput
{
- aKeyEvt.mnCode = nKeyCode | nModCode;
+ aKeyEvt.mnCode = nKeyCode | nModCode;
aKeyEvt.mnRepeat = 0;
- aKeyEvt.mnTime = pEvent->time;
+ aKeyEvt.mnTime = pEvent->time;
aKeyEvt.mnCharCode = pString[ 0 ];
if( KeyRelease == pEvent->type )
@@ -3466,14 +3466,14 @@ long X11SalFrame::HandleFocusEvent( XFocusChangeEvent *pEvent )
if( nVisibleFloats > 0 && GetDisplay()->getWMAdaptor()->getWindowManagerName().EqualsAscii( "ReflectionX Windows" ) )
return 1;
- /* #55691# ignore focusout resulting from keyboard grabs
- * we do not grab it and are not interested when
- * someone else does CDE e.g. does a XGrabKey on arrow keys
- * #73179# handle focus events with mode NotifyWhileGrabbed
- * because with CDE alt-tab focus changing we do not get
- * normal focus events
- * #71791# cast focus event to the input context, otherwise the
- * status window does not follow the application frame
+ /* #55691# ignore focusout resulting from keyboard grabs
+ * we do not grab it and are not interested when
+ * someone else does CDE e.g. does a XGrabKey on arrow keys
+ * #73179# handle focus events with mode NotifyWhileGrabbed
+ * because with CDE alt-tab focus changing we do not get
+ * normal focus events
+ * #71791# cast focus event to the input context, otherwise the
+ * status window does not follow the application frame
*/
if ( mpInputContext != NULL )
@@ -3485,7 +3485,7 @@ long X11SalFrame::HandleFocusEvent( XFocusChangeEvent *pEvent )
/*
* do not unset the IC focuse here because would kill
* a lookup choice windows that might have the focus now
- * mpInputContext->UnsetICFocus( this );
+ * mpInputContext->UnsetICFocus( this );
*/
I18NStatus::get().show( false, I18NStatus::focus );
}
@@ -3535,24 +3535,24 @@ long X11SalFrame::HandleFocusEvent( XFocusChangeEvent *pEvent )
long X11SalFrame::HandleExposeEvent( XEvent *pEvent )
{
- XRectangle aRect = { 0, 0, 0, 0 };
- USHORT nCount = 0;
+ XRectangle aRect = { 0, 0, 0, 0 };
+ USHORT nCount = 0;
if( pEvent->type == Expose )
{
- aRect.x = pEvent->xexpose.x;
- aRect.y = pEvent->xexpose.y;
- aRect.width = pEvent->xexpose.width;
- aRect.height = pEvent->xexpose.height;
- nCount = pEvent->xexpose.count;
+ aRect.x = pEvent->xexpose.x;
+ aRect.y = pEvent->xexpose.y;
+ aRect.width = pEvent->xexpose.width;
+ aRect.height = pEvent->xexpose.height;
+ nCount = pEvent->xexpose.count;
}
else if( pEvent->type == GraphicsExpose )
{
- aRect.x = pEvent->xgraphicsexpose.x;
- aRect.y = pEvent->xgraphicsexpose.y;
- aRect.width = pEvent->xgraphicsexpose.width;
- aRect.height = pEvent->xgraphicsexpose.height;
- nCount = pEvent->xgraphicsexpose.count;
+ aRect.x = pEvent->xgraphicsexpose.x;
+ aRect.y = pEvent->xgraphicsexpose.y;
+ aRect.width = pEvent->xgraphicsexpose.width;
+ aRect.height = pEvent->xgraphicsexpose.height;
+ nCount = pEvent->xgraphicsexpose.count;
}
if( IsOverrideRedirect() && mbFullScreen &&
@@ -3602,8 +3602,8 @@ void X11SalFrame::RestackChildren( XLIB_Window* pTopLevelWindows, int nTopLevelW
// if a child is behind its parent, place it above the
// parent (for insane WMs like Dtwm and olwm)
XWindowChanges aCfg;
- aCfg.sibling = GetStackingWindow();
- aCfg.stack_mode = Above;
+ aCfg.sibling = GetStackingWindow();
+ aCfg.stack_mode = Above;
XConfigureWindow( GetXDisplay(), pData->GetStackingWindow(), CWSibling|CWStackMode, &aCfg );
break;
}
@@ -3688,16 +3688,16 @@ long X11SalFrame::HandleSizeEvent( XConfigureEvent *pEvent )
if( SHOWSTATE_UNKNOWN == nShowState_ && bMapped_ )
nShowState_ = SHOWSTATE_NORMAL;
- nWidth_ = pEvent->width;
- nHeight_ = pEvent->height;
+ nWidth_ = pEvent->width;
+ nHeight_ = pEvent->height;
bool bMoved = ( pEvent->x != maGeometry.nX || pEvent->y != maGeometry.nY );
bool bSized = ( pEvent->width != (int)maGeometry.nWidth || pEvent->height != (int)maGeometry.nHeight );
- maGeometry.nX = pEvent->x;
- maGeometry.nY = pEvent->y;
- maGeometry.nWidth = pEvent->width;
- maGeometry.nHeight = pEvent->height;
+ maGeometry.nX = pEvent->x;
+ maGeometry.nY = pEvent->y;
+ maGeometry.nWidth = pEvent->width;
+ maGeometry.nHeight = pEvent->height;
updateScreenNumber();
// update children's position
@@ -3723,11 +3723,11 @@ IMPL_LINK( X11SalFrame, HandleAlwaysOnTopRaise, void*, EMPTYARG )
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
long X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent )
{
- Display *pDisplay = pEvent->display;
- XLIB_Window hWM_Parent;
- XLIB_Window hRoot, *Children, hDummy;
- unsigned int nChildren;
- BOOL bNone = pDisplay_->GetProperties()
+ Display *pDisplay = pEvent->display;
+ XLIB_Window hWM_Parent;
+ XLIB_Window hRoot, *Children, hDummy;
+ unsigned int nChildren;
+ BOOL bNone = pDisplay_->GetProperties()
& PROPERTY_SUPPORT_WM_Parent_Pixmap_None;
BOOL bAccessParentWindow = ! (pDisplay_->GetProperties()
& PROPERTY_FEATURE_TrustedSolaris);
@@ -3784,9 +3784,9 @@ long X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent )
XSelectInput( pDisplay, GetStackingWindow(), StructureNotifyMask );
}
- if( hWM_Parent == pDisplay_->GetRootWindow( pDisplay_->GetDefaultScreenNumber() )
- || hWM_Parent == GetForeignParent()
- || pEvent->parent == pDisplay_->GetRootWindow( pDisplay_->GetDefaultScreenNumber() )
+ if( hWM_Parent == pDisplay_->GetRootWindow( pDisplay_->GetDefaultScreenNumber() )
+ || hWM_Parent == GetForeignParent()
+ || pEvent->parent == pDisplay_->GetRootWindow( pDisplay_->GetDefaultScreenNumber() )
|| ( nStyle_ & SAL_FRAME_STYLE_FLOAT ) )
{
// Reparenting before Destroy
@@ -3835,8 +3835,8 @@ long X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent )
&nLeft,
&nTop,
&hDummy );
- maGeometry.nLeftDecoration = nLeft > 0 ? nLeft-1 : 0;
- maGeometry.nTopDecoration = nTop > 0 ? nTop-1 : 0;
+ maGeometry.nLeftDecoration = nLeft > 0 ? nLeft-1 : 0;
+ maGeometry.nTopDecoration = nTop > 0 ? nTop-1 : 0;
/*
* decorations are not symmetric,
@@ -3857,16 +3857,16 @@ long X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent )
bool bResized = false;
if( ! GetDisplay()->GetXLib()->HasXErrorOccured() )
{
- maGeometry.nRightDecoration = wp - w - maGeometry.nLeftDecoration;
- maGeometry.nBottomDecoration = hp - h - maGeometry.nTopDecoration;
+ maGeometry.nRightDecoration = wp - w - maGeometry.nLeftDecoration;
+ maGeometry.nBottomDecoration = hp - h - maGeometry.nTopDecoration;
/*
* note: this works because hWM_Parent is direct child of root,
* not necessarily parent of GetShellWindow()
*/
- maGeometry.nX = xp + nLeft;
- maGeometry.nY = yp + nTop;
+ maGeometry.nX = xp + nLeft;
+ maGeometry.nY = yp + nTop;
bResized = w != maGeometry.nWidth || h != maGeometry.nHeight;
- maGeometry.nWidth = w;
+ maGeometry.nWidth = w;
maGeometry.nHeight = h;
}
@@ -3882,16 +3882,16 @@ long X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent )
int nScreenHeight = aScreenSize.Height();
int nFrameWidth = maGeometry.nWidth + maGeometry.nLeftDecoration + maGeometry.nRightDecoration;
int nFrameHeight = maGeometry.nHeight + maGeometry.nTopDecoration + maGeometry.nBottomDecoration;
-
+
if ((nFrameWidth > nScreenWidth) || (nFrameHeight > nScreenHeight))
{
Size aSize(maGeometry.nWidth, maGeometry.nHeight);
-
+
if (nFrameWidth > nScreenWidth)
aSize.Width() = nScreenWidth - maGeometry.nRightDecoration - maGeometry.nLeftDecoration;
if (nFrameHeight > nScreenHeight)
aSize.Height() = nScreenHeight - maGeometry.nBottomDecoration - maGeometry.nTopDecoration;
-
+
SetSize( aSize );
bResized = false;
}
@@ -3913,18 +3913,18 @@ long X11SalFrame::HandleColormapEvent( XColormapEvent* )
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
long X11SalFrame::HandleStateEvent( XPropertyEvent *pEvent )
{
- Atom actual_type;
- int actual_format;
+ Atom actual_type;
+ int actual_format;
unsigned long nitems, bytes_after;
unsigned char *prop = NULL;
if( 0 != XGetWindowProperty( GetXDisplay(),
GetShellWindow(),
- pEvent->atom, // property
- 0, // long_offset (32bit)
- 2, // long_length (32bit)
- False, // delete
- pEvent->atom, // req_type
+ pEvent->atom, // property
+ 0, // long_offset (32bit)
+ 2, // long_length (32bit)
+ False, // delete
+ pEvent->atom, // req_type
&actual_type,
&actual_format,
&nitems,
@@ -3936,8 +3936,8 @@ long X11SalFrame::HandleStateEvent( XPropertyEvent *pEvent )
DBG_ASSERT( actual_type = pEvent->atom
&& 32 == actual_format
- && 2 == nitems
- && 0 == bytes_after, "HandleStateEvent" );
+ && 2 == nitems
+ && 0 == bytes_after, "HandleStateEvent" );
if( *(unsigned long*)prop == NormalState )
nShowState_ = SHOWSTATE_NORMAL;
@@ -3991,7 +3991,7 @@ long X11SalFrame::HandleClientMessage( XClientMessageEvent *pEvent )
else if( (Atom)pEvent->data.l[0] == rWMAdaptor.getAtom( WMAdaptor::WM_SAVE_YOURSELF ) )
{
bool bSession = rWMAdaptor.getWindowManagerName().EqualsAscii( "Dtwm" );
-
+
if( ! bSession )
{
if( this == s_pSaveYourselfFrame )
@@ -4065,7 +4065,7 @@ void X11SalFrame::SaveYourselfDone( SalFrame* pSaveFrame )
pFrame = static_cast< const X11SalFrame* >(*it);
if( pFrame == pSaveFrame )
break;
- ++it;
+ ++it;
}
if( pFrame == pSaveFrame )
{
@@ -4093,10 +4093,10 @@ Bool X11SalFrame::checkKeyReleaseForRepeat( Display*, XEvent* pCheck, XPointer p
{
X11SalFrame* pThis = (X11SalFrame*)pX11SalFrame;
return
- pCheck->type == XLIB_KeyPress &&
- pCheck->xkey.state == pThis->nKeyState_ &&
- pCheck->xkey.keycode == pThis->nKeyCode_ &&
- pCheck->xkey.time == pThis->nReleaseTime_ ? True : False;
+ pCheck->type == XLIB_KeyPress &&
+ pCheck->xkey.state == pThis->nKeyState_ &&
+ pCheck->xkey.keycode == pThis->nKeyCode_ &&
+ pCheck->xkey.time == pThis->nReleaseTime_ ? True : False;
}
long X11SalFrame::Dispatch( XEvent *pEvent )
@@ -4117,9 +4117,9 @@ long X11SalFrame::Dispatch( XEvent *pEvent )
switch( pEvent->type )
{
case XLIB_KeyPress:
- nKeyCode_ = pEvent->xkey.keycode;
- nKeyState_ = pEvent->xkey.state;
- nRet = HandleKeyEvent( &pEvent->xkey );
+ nKeyCode_ = pEvent->xkey.keycode;
+ nKeyState_ = pEvent->xkey.state;
+ nRet = HandleKeyEvent( &pEvent->xkey );
break;
case KeyRelease:
@@ -4130,7 +4130,7 @@ long X11SalFrame::Dispatch( XEvent *pEvent )
if( XCheckIfEvent( pEvent->xkey.display, &aEvent, call_checkKeyReleaseForRepeat, (XPointer)this ) )
XPutBackEvent( pEvent->xkey.display, &aEvent );
else
- nRet = HandleKeyEvent( &pEvent->xkey );
+ nRet = HandleKeyEvent( &pEvent->xkey );
}
break;
@@ -4191,13 +4191,13 @@ long X11SalFrame::Dispatch( XEvent *pEvent )
*/
maPaintRegion.Union( Rectangle( Point( 0, 0 ), Size( maGeometry.nWidth, maGeometry.nHeight ) ) );
XEvent aEvent;
- aEvent.xexpose.type = Expose;
- aEvent.xexpose.display = pDisplay_->GetDisplay();
- aEvent.xexpose.x = 0;
- aEvent.xexpose.y = 0;
- aEvent.xexpose.width = maGeometry.nWidth;
- aEvent.xexpose.height = maGeometry.nHeight;
- aEvent.xexpose.count = 0;
+ aEvent.xexpose.type = Expose;
+ aEvent.xexpose.display = pDisplay_->GetDisplay();
+ aEvent.xexpose.x = 0;
+ aEvent.xexpose.y = 0;
+ aEvent.xexpose.width = maGeometry.nWidth;
+ aEvent.xexpose.height = maGeometry.nHeight;
+ aEvent.xexpose.count = 0;
XSendEvent( pDisplay_->GetDisplay(),
GetWindow(),
True,
@@ -4255,7 +4255,7 @@ long X11SalFrame::Dispatch( XEvent *pEvent )
CurrentTime );
bSetFocus = false;
}
-
+
if( bSetFocus )
{
XSetInputFocus( GetXDisplay(),
@@ -4263,7 +4263,7 @@ long X11SalFrame::Dispatch( XEvent *pEvent )
RevertToParent,
CurrentTime );
}
-
+
RestackChildren();
mbInShow = FALSE;
@@ -4362,13 +4362,13 @@ void X11SalFrame::ResetClipRegion()
delete [] m_pClipRectangles;
m_pClipRectangles = NULL;
m_nCurClipRect = m_nMaxClipRect = 0;
-
- const int dest_kind = ShapeBounding;
- const int op = ShapeSet;
- const int ordering = YSorted;
+
+ const int dest_kind = ShapeBounding;
+ const int op = ShapeSet;
+ const int ordering = YSorted;
XWindowAttributes win_attrib;
- XRectangle win_size;
+ XRectangle win_size;
XLIB_Window aShapeWindow = mhShellWindow;
@@ -4376,17 +4376,17 @@ void X11SalFrame::ResetClipRegion()
aShapeWindow,
&win_attrib );
- win_size.x = 0;
- win_size.y = 0;
- win_size.width = win_attrib.width;
+ win_size.x = 0;
+ win_size.y = 0;
+ win_size.width = win_attrib.width;
win_size.height = win_attrib.height;
XShapeCombineRectangles ( GetDisplay()->GetDisplay(),
aShapeWindow,
dest_kind,
- 0, 0, // x_off, y_off
- &win_size, // list of rectangles
- 1, // number of rectangles
+ 0, 0, // x_off, y_off
+ &win_size, // list of rectangles
+ 1, // number of rectangles
op, ordering );
}
@@ -4416,9 +4416,9 @@ void X11SalFrame::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
void X11SalFrame::EndSetClipRegion()
{
- const int dest_kind = ShapeBounding;
- const int ordering = YSorted;
- const int op = ShapeSet;
+ const int dest_kind = ShapeBounding;
+ const int ordering = YSorted;
+ const int op = ShapeSet;
XLIB_Window aShapeWindow = mhShellWindow;
XShapeCombineRectangles ( GetDisplay()->GetDisplay(),
diff --git a/vcl/unx/source/window/salmenu.cxx b/vcl/unx/source/window/salmenu.cxx
index a5622a48ba70..d1f62da8b0f3 100644
--- a/vcl/unx/source/window/salmenu.cxx
+++ b/vcl/unx/source/window/salmenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -75,7 +75,7 @@ X11SalMenu::~X11SalMenu()
BOOL X11SalMenu::VisibleMenuBar()
{
- return FALSE;
+ return FALSE;
}
void X11SalMenu::SetFrame( const SalFrame* )
diff --git a/vcl/unx/source/window/salobj.cxx b/vcl/unx/source/window/salobj.cxx
index 65a53ed8ac12..bbe20d294c3a 100644
--- a/vcl/unx/source/window/salobj.cxx
+++ b/vcl/unx/source/window/salobj.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,8 +60,8 @@ SalObject* X11SalInstance::CreateObject( SalFrame* pParent, SystemWindowData* pW
X11SalObject* X11SalObject::CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow )
{
int error_base, event_base;
- X11SalObject* pObject = new X11SalObject();
- SystemChildData* pObjData = const_cast<SystemChildData*>(pObject->GetSystemData());
+ X11SalObject* pObject = new X11SalObject();
+ SystemChildData* pObjData = const_cast<SystemChildData*>(pObject->GetSystemData());
if ( ! XShapeQueryExtension( (Display*)pObjData->pDisplay,
&event_base, &error_base ) )
@@ -71,12 +71,12 @@ X11SalObject* X11SalObject::CreateObject( SalFrame* pParent, SystemWindowData* p
}
pObject->mpParent = pParent;
-
- SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
- const SystemEnvData* pEnv = pParent->GetSystemData();
- Display* pDisp = pSalDisp->GetDisplay();
- XLIB_Window aObjectParent = (XLIB_Window)pEnv->aWindow;
-
+
+ SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
+ const SystemEnvData* pEnv = pParent->GetSystemData();
+ Display* pDisp = pSalDisp->GetDisplay();
+ XLIB_Window aObjectParent = (XLIB_Window)pEnv->aWindow;
+
// find out on which screen that window is
XWindowAttributes aParentAttr;
XGetWindowAttributes( pDisp, aObjectParent, &aParentAttr );
@@ -134,7 +134,7 @@ X11SalObject* X11SalObject::CreateObject( SalFrame* pParent, SystemWindowData* p
pSalDisp->GetXLib()->PushXErrorLevel( true );
// create colormap for visual - there might not be one
- pObject->maColormap = aAttribs.colormap = XCreateColormap(
+ pObject->maColormap = aAttribs.colormap = XCreateColormap(
pDisp,
pSalDisp->GetRootWindow( nScreen ),
pVisual,
@@ -166,14 +166,14 @@ X11SalObject* X11SalObject::CreateObject( SalFrame* pParent, SystemWindowData* p
XMapWindow( pDisp, pObject->maPrimary );
}
- pObjData->pDisplay = pDisp;
- pObjData->aWindow = pObject->maSecondary;
- pObjData->pWidget = NULL;
- pObjData->pVisual = pVisual;
- pObjData->nDepth = nDepth;
- pObjData->aColormap = aVisID == pSalDisp->GetVisual( nScreen ).GetVisualId() ?
+ pObjData->pDisplay = pDisp;
+ pObjData->aWindow = pObject->maSecondary;
+ pObjData->pWidget = NULL;
+ pObjData->pVisual = pVisual;
+ pObjData->nDepth = nDepth;
+ pObjData->aColormap = aVisID == pSalDisp->GetVisual( nScreen ).GetVisualId() ?
pSalDisp->GetColormap( nScreen ).GetXColormap() : None;
- pObjData->pAppContext = NULL;
+ pObjData->pAppContext = NULL;
XSync(pDisp, False);
BOOL bWasXError = pSalDisp->GetXLib()->HasXErrorOccured();
@@ -234,8 +234,8 @@ SalClipRegion::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
{
XRectangle *aRect = ClipRectangleList + numClipRectangles;
- aRect->x = (short) nX;
- aRect->y = (short) nY;
+ aRect->x = (short) nX;
+ aRect->y = (short) nY;
aRect->width = (unsigned short) nWidth;
aRect->height= (unsigned short) nHeight;
@@ -250,19 +250,19 @@ SalClipRegion::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
X11SalObject::X11SalObject()
{
- maSystemChildData.nSize = sizeof( SystemChildData );
- maSystemChildData.pDisplay = GetX11SalData()->GetDisplay()->GetDisplay();
- maSystemChildData.aWindow = None;
- maSystemChildData.pSalFrame = 0;
- maSystemChildData.pWidget = 0;
- maSystemChildData.pVisual = 0;
- maSystemChildData.nDepth = 0;
- maSystemChildData.aColormap = 0;
- maSystemChildData.pAppContext = NULL;
- maSystemChildData.aShellWindow = 0;
- maSystemChildData.pShellWidget = NULL;
- maPrimary = 0;
- maSecondary = 0;
+ maSystemChildData.nSize = sizeof( SystemChildData );
+ maSystemChildData.pDisplay = GetX11SalData()->GetDisplay()->GetDisplay();
+ maSystemChildData.aWindow = None;
+ maSystemChildData.pSalFrame = 0;
+ maSystemChildData.pWidget = 0;
+ maSystemChildData.pVisual = 0;
+ maSystemChildData.nDepth = 0;
+ maSystemChildData.aColormap = 0;
+ maSystemChildData.pAppContext = NULL;
+ maSystemChildData.aShellWindow = 0;
+ maSystemChildData.pShellWidget = NULL;
+ maPrimary = 0;
+ maSecondary = 0;
maColormap = 0;
std::list< SalObject* >& rObjects = GetX11SalData()->GetDisplay()->getSalObjects();
@@ -276,7 +276,7 @@ X11SalObject::~X11SalObject()
rObjects.remove( this );
SalDisplay* pSalDisp = GetX11SalData()->GetDisplay();
pSalDisp->GetXLib()->PushXErrorLevel( true );
- if ( maSecondary )
+ if ( maSecondary )
XDestroyWindow( (Display*)maSystemChildData.pDisplay, maSecondary );
if ( maPrimary )
XDestroyWindow( (Display*)maSystemChildData.pDisplay, maPrimary );
@@ -292,12 +292,12 @@ X11SalObject::ResetClipRegion()
{
maClipRegion.ResetClipRegion();
- const int dest_kind = ShapeBounding;
- const int op = ShapeSet;
- const int ordering = YSorted;
+ const int dest_kind = ShapeBounding;
+ const int op = ShapeSet;
+ const int ordering = YSorted;
XWindowAttributes win_attrib;
- XRectangle win_size;
+ XRectangle win_size;
XLIB_Window aShapeWindow = maPrimary;
@@ -305,17 +305,17 @@ X11SalObject::ResetClipRegion()
aShapeWindow,
&win_attrib );
- win_size.x = 0;
- win_size.y = 0;
- win_size.width = win_attrib.width;
+ win_size.x = 0;
+ win_size.y = 0;
+ win_size.width = win_attrib.width;
win_size.height = win_attrib.height;
XShapeCombineRectangles ( (Display*)maSystemChildData.pDisplay,
aShapeWindow,
dest_kind,
- 0, 0, // x_off, y_off
- &win_size, // list of rectangles
- 1, // number of rectangles
+ 0, 0, // x_off, y_off
+ &win_size, // list of rectangles
+ 1, // number of rectangles
op, ordering );
}
@@ -338,12 +338,12 @@ void
X11SalObject::EndSetClipRegion()
{
XRectangle *pRectangles = maClipRegion.EndSetClipRegion ();
- const int nType = maClipRegion.GetClipRegionType();
- const int nRectangles = maClipRegion.GetRectangleCount();
+ const int nType = maClipRegion.GetClipRegionType();
+ const int nRectangles = maClipRegion.GetRectangleCount();
- const int dest_kind = ShapeBounding;
- const int ordering = YSorted;
- int op;
+ const int dest_kind = ShapeBounding;
+ const int ordering = YSorted;
+ int op;
switch ( nType )
{
@@ -361,7 +361,7 @@ X11SalObject::EndSetClipRegion()
}
XLIB_Window aShapeWindow = maPrimary;
-
+
XShapeCombineRectangles ( (Display*)maSystemChildData.pDisplay,
aShapeWindow,
dest_kind,
@@ -398,7 +398,7 @@ X11SalObject::SetPosSize( long nX, long nY, long nWidth, long nHeight )
void
X11SalObject::Show( BOOL bVisible )
{
- if ( ! maSystemChildData.aWindow )
+ if ( ! maSystemChildData.aWindow )
return;
if ( bVisible ) {
diff --git a/vcl/util/hidother.src b/vcl/util/hidother.src
index f966fcded1b3..c213fa267154 100644
--- a/vcl/util/hidother.src
+++ b/vcl/util/hidother.src
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -27,5 +27,5 @@
#include "vcl/svids.hrc"
-hidspecial HID_PRINTDLG { HelpID = HID_PRINTDLG; };
+hidspecial HID_PRINTDLG { HelpID = HID_PRINTDLG; };
diff --git a/vcl/win/inc/salbmp.h b/vcl/win/inc/salbmp.h
index 466dadce0c46..988d0a3eade3 100644
--- a/vcl/win/inc/salbmp.h
+++ b/vcl/win/inc/salbmp.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,38 +35,38 @@
#include <vcl/salbmp.hxx>
// --------------
-// - SalBitmap -
+// - SalBitmap -
// --------------
-struct BitmapBuffer;
-class BitmapColor;
-class BitmapPalette;
-class SalGraphics;
+struct BitmapBuffer;
+class BitmapColor;
+class BitmapPalette;
+class SalGraphics;
class WinSalBitmap : public SalBitmap
{
private:
- Size maSize;
- HGLOBAL mhDIB;
- HBITMAP mhDDB;
- USHORT mnBitCount;
+ Size maSize;
+ HGLOBAL mhDIB;
+ HBITMAP mhDDB;
+ USHORT mnBitCount;
public:
- HGLOBAL ImplGethDIB() const { return mhDIB; }
- HBITMAP ImplGethDDB() const { return mhDDB; }
+ HGLOBAL ImplGethDIB() const { return mhDIB; }
+ HBITMAP ImplGethDDB() const { return mhDDB; }
- static HGLOBAL ImplCreateDIB( const Size& rSize, USHORT nBitCount, const BitmapPalette& rPal );
- static HANDLE ImplCopyDIBOrDDB( HANDLE hHdl, bool bDIB );
- static USHORT ImplGetDIBColorCount( HGLOBAL hDIB );
- static void ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf,
+ static HGLOBAL ImplCreateDIB( const Size& rSize, USHORT nBitCount, const BitmapPalette& rPal );
+ static HANDLE ImplCopyDIBOrDDB( HANDLE hHdl, bool bDIB );
+ static USHORT ImplGetDIBColorCount( HGLOBAL hDIB );
+ static void ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf,
const Size& rSizePixel, bool bRLE4 );
public:
WinSalBitmap();
- virtual ~WinSalBitmap();
+ virtual ~WinSalBitmap();
public:
@@ -84,7 +84,7 @@ public:
virtual Size GetSize() const { return maSize; }
virtual USHORT GetBitCount() const { return mnBitCount; }
- virtual BitmapBuffer* AcquireBuffer( bool bReadOnly );
+ virtual BitmapBuffer* AcquireBuffer( bool bReadOnly );
virtual void ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly );
virtual bool GetSystemData( BitmapSystemData& rData );
};
diff --git a/vcl/win/inc/saldata.hxx b/vcl/win/inc/saldata.hxx
index 1b2eafe45b53..7d3729f72146 100644
--- a/vcl/win/inc/saldata.hxx
+++ b/vcl/win/inc/saldata.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,10 +80,10 @@ public:
// native widget framework
void initNWF();
void deInitNWF();
-
+
// fill maVKMap;
void initKeyCodeMap();
-
+
// checks if the menuhandle was created by VCL
BOOL IsKnownMenuHandle( HMENU hMenu );
@@ -100,8 +100,8 @@ public:
BYTE* mpDitherHigh; // Dither mapping table
ULONG mnTimerMS; // Current Time (in MS) of the Timer
ULONG mnTimerOrgMS; // Current Original Time (in MS)
- DWORD mnNextTimerTime;
- DWORD mnLastEventTime;
+ DWORD mnNextTimerTime;
+ DWORD mnLastEventTime;
UINT mnTimerId; // windows timer id
BOOL mbInTimerProc; // timer event is currently being dispatched
HHOOK mhSalObjMsgHook; // hook to get interesting msg for SalObject
@@ -132,7 +132,7 @@ public:
SalIcon* mpFirstIcon; // icon cache, points to first icon, NULL if none
TempFontItem* mpTempFontItem;
BOOL mbThemeChanged; // true if visual theme was changed: throw away theme handles
-
+
// for GdiPlus GdiplusStartup/GdiplusShutdown
ULONG_PTR gdiplusToken;
@@ -293,7 +293,7 @@ int ImplSalWICompareAscii( const wchar_t* pStr1, const char* pStr2 );
#define SAL_MSG_RECREATEHWND (WM_USER+122)
// wParam == newParentHwnd; lParam == oldHwnd; lResult == newhWnd
#define SAL_MSG_RECREATECHILDHWND (WM_USER+123)
-// wParam == 0; lParam == HWND;
+// wParam == 0; lParam == HWND;
#define SAL_MSG_DESTROYHWND (WM_USER+124)
// wParam == 0; lParam == pData
diff --git a/vcl/win/inc/salframe.h b/vcl/win/inc/salframe.h
index 49a1b50c14e2..3db21220e158 100644
--- a/vcl/win/inc/salframe.h
+++ b/vcl/win/inc/salframe.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -86,67 +86,67 @@ public:
BOOL mbAtCursorIME; // TRUE: Wir behandeln nur einige IME-Messages
BOOL mbCandidateMode; // TRUE: Wir befinden uns im Candidate-Modus
static BOOL mbInReparent; // TRUE: ignore focus lost and gain due to reparenting
-
+
RGNDATA* mpClipRgnData;
RECT* mpNextClipRect;
BOOL mbFirstClipRect;
- sal_Int32 mnDisplay; // Display used for Fullscreen, 0 is primary monitor
+ sal_Int32 mnDisplay; // Display used for Fullscreen, 0 is primary monitor
void updateScreenNumber();
public:
WinSalFrame();
virtual ~WinSalFrame();
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL PostEvent( void* pData );
- virtual void SetTitle( const XubString& rTitle );
- virtual void SetIcon( USHORT nIcon );
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual BOOL PostEvent( void* pData );
+ virtual void SetTitle( const XubString& rTitle );
+ virtual void SetIcon( USHORT nIcon );
virtual void SetMenu( SalMenu* pSalMenu );
virtual void DrawMenuBar();
virtual void SetExtendedFrameStyle( SalExtStyle nExtStyle );
- virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
- virtual void Enable( BOOL bEnable );
+ virtual void Show( BOOL bVisible, BOOL bNoActivate = FALSE );
+ virtual void Enable( BOOL bEnable );
virtual void SetMinClientSize( long nWidth, long nHeight );
virtual void SetMaxClientSize( long nWidth, long nHeight );
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
- virtual void GetClientSize( long& rWidth, long& rHeight );
- virtual void GetWorkArea( Rectangle& rRect );
- virtual SalFrame* GetParent() const;
- virtual void SetWindowState( const SalFrameState* pState );
- virtual BOOL GetWindowState( SalFrameState* pState );
- virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
- virtual void StartPresentation( BOOL bStart );
- virtual void SetAlwaysOnTop( BOOL bOnTop );
- virtual void ToTop( USHORT nFlags );
- virtual void SetPointer( PointerStyle ePointerStyle );
- virtual void CaptureMouse( BOOL bMouse );
- virtual void SetPointerPos( long nX, long nY );
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight, USHORT nFlags );
+ virtual void GetClientSize( long& rWidth, long& rHeight );
+ virtual void GetWorkArea( Rectangle& rRect );
+ virtual SalFrame* GetParent() const;
+ virtual void SetWindowState( const SalFrameState* pState );
+ virtual BOOL GetWindowState( SalFrameState* pState );
+ virtual void ShowFullScreen( BOOL bFullScreen, sal_Int32 nDisplay );
+ virtual void StartPresentation( BOOL bStart );
+ virtual void SetAlwaysOnTop( BOOL bOnTop );
+ virtual void ToTop( USHORT nFlags );
+ virtual void SetPointer( PointerStyle ePointerStyle );
+ virtual void CaptureMouse( BOOL bMouse );
+ virtual void SetPointerPos( long nX, long nY );
using SalFrame::Flush;
- virtual void Flush();
- virtual void Sync();
- virtual void SetInputContext( SalInputContext* pContext );
- virtual void EndExtTextInput( USHORT nFlags );
- virtual String GetKeyName( USHORT nKeyCode );
- virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
+ virtual void Flush();
+ virtual void Sync();
+ virtual void SetInputContext( SalInputContext* pContext );
+ virtual void EndExtTextInput( USHORT nFlags );
+ virtual String GetKeyName( USHORT nKeyCode );
+ virtual String GetSymbolKeyName( const XubString& rFontName, USHORT nKeyCode );
virtual BOOL MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
- virtual LanguageType GetInputLanguage();
- virtual SalBitmap* SnapShot();
- virtual void UpdateSettings( AllSettings& rSettings );
- virtual void Beep( SoundType eSoundType );
- virtual const SystemEnvData* GetSystemData() const;
- virtual SalPointerState GetPointerState();
+ virtual LanguageType GetInputLanguage();
+ virtual SalBitmap* SnapShot();
+ virtual void UpdateSettings( AllSettings& rSettings );
+ virtual void Beep( SoundType eSoundType );
+ virtual const SystemEnvData* GetSystemData() const;
+ virtual SalPointerState GetPointerState();
virtual SalIndicatorState GetIndicatorState();
virtual void SimulateKeyPress( USHORT nKeyCode );
- virtual void SetParent( SalFrame* pNewParent );
- virtual bool SetPluginParent( SystemParentData* pNewParent );
+ virtual void SetParent( SalFrame* pNewParent );
+ virtual bool SetPluginParent( SystemParentData* pNewParent );
virtual void SetBackgroundBitmap( SalBitmap* );
virtual void SetScreenNumber( unsigned int );
virtual void SetApplicationID( const rtl::OUString &rApplicationID );
- virtual void ResetClipRegion();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
+ virtual void ResetClipRegion();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
};
void ImplSalGetWorkArea( HWND hWnd, RECT *pRect, const RECT *pParentRect );
diff --git a/vcl/win/inc/salgdi.h b/vcl/win/inc/salgdi.h
index c09822004981..0ba816c23b22 100644
--- a/vcl/win/inc/salgdi.h
+++ b/vcl/win/inc/salgdi.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,8 +46,8 @@ class ImplFontAttrCache;
// - Defines -
// -----------
-#define RGB_TO_PALRGB(nRGB) ((nRGB)|0x02000000)
-#define PALRGB_TO_RGB(nPalRGB) ((nPalRGB)&0x00ffffff)
+#define RGB_TO_PALRGB(nRGB) ((nRGB)|0x02000000)
+#define PALRGB_TO_RGB(nPalRGB) ((nPalRGB)&0x00ffffff)
// win32 platform specific options. Move them to the PMK file?
@@ -135,43 +135,43 @@ public:
class WinSalGraphics : public SalGraphics
{
public:
- HDC mhDC; // HDC
- HWND mhWnd; // Window-Handle, when Window-Graphics
- HFONT mhFonts[ MAX_FALLBACK ]; // Font + Fallbacks
+ HDC mhDC; // HDC
+ HWND mhWnd; // Window-Handle, when Window-Graphics
+ HFONT mhFonts[ MAX_FALLBACK ]; // Font + Fallbacks
const ImplWinFontData* mpWinFontData[ MAX_FALLBACK ]; // pointer to the most recent font face
ImplWinFontEntry* mpWinFontEntry[ MAX_FALLBACK ]; // pointer to the most recent font instance
float mfFontScale; // allows metrics emulation of huge font sizes
- HPEN mhPen; // Pen
- HBRUSH mhBrush; // Brush
- HRGN mhRegion; // Region Handle
- HPEN mhDefPen; // DefaultPen
- HBRUSH mhDefBrush; // DefaultBrush
- HFONT mhDefFont; // DefaultFont
- HPALETTE mhDefPal; // DefaultPalette
- COLORREF mnPenColor; // PenColor
- COLORREF mnBrushColor; // BrushColor
- COLORREF mnTextColor; // TextColor
- RGNDATA* mpClipRgnData; // ClipRegion-Data
- RGNDATA* mpStdClipRgnData; // Cache Standard-ClipRegion-Data
- RECT* mpNextClipRect; // Naechstes ClipRegion-Rect
- BOOL mbFirstClipRect; // Flag for first cliprect to insert
- LOGFONTA* mpLogFont; // LOG-Font which is currently selected (only W9x)
- ImplFontAttrCache* mpFontAttrCache; // Cache font attributes from files in so/share/fonts
- BYTE* mpFontCharSets; // All Charsets for the current font
- BYTE mnFontCharSetCount; // Number of Charsets of the current font; 0 - if not queried
- BOOL mbFontKernInit; // FALSE: FontKerns must be queried
- KERNINGPAIR* mpFontKernPairs; // Kerning Pairs of the current Font
- ULONG mnFontKernPairCount;// Number of Kerning Pairs of the current Font
- int mnPenWidth; // Linienbreite
- BOOL mbStockPen; // is Pen a stockpen
- BOOL mbStockBrush; // is Brush a stcokbrush
- BOOL mbPen; // is Pen (FALSE == NULL_PEN)
- BOOL mbBrush; // is Brush (FALSE == NULL_BRUSH)
- BOOL mbPrinter; // is Printer
- BOOL mbVirDev; // is VirDev
- BOOL mbWindow; // is Window
- BOOL mbScreen; // is Screen compatible
- bool mbXORMode; // _every_ output with RasterOp XOR
+ HPEN mhPen; // Pen
+ HBRUSH mhBrush; // Brush
+ HRGN mhRegion; // Region Handle
+ HPEN mhDefPen; // DefaultPen
+ HBRUSH mhDefBrush; // DefaultBrush
+ HFONT mhDefFont; // DefaultFont
+ HPALETTE mhDefPal; // DefaultPalette
+ COLORREF mnPenColor; // PenColor
+ COLORREF mnBrushColor; // BrushColor
+ COLORREF mnTextColor; // TextColor
+ RGNDATA* mpClipRgnData; // ClipRegion-Data
+ RGNDATA* mpStdClipRgnData; // Cache Standard-ClipRegion-Data
+ RECT* mpNextClipRect; // Naechstes ClipRegion-Rect
+ BOOL mbFirstClipRect; // Flag for first cliprect to insert
+ LOGFONTA* mpLogFont; // LOG-Font which is currently selected (only W9x)
+ ImplFontAttrCache* mpFontAttrCache; // Cache font attributes from files in so/share/fonts
+ BYTE* mpFontCharSets; // All Charsets for the current font
+ BYTE mnFontCharSetCount; // Number of Charsets of the current font; 0 - if not queried
+ BOOL mbFontKernInit; // FALSE: FontKerns must be queried
+ KERNINGPAIR* mpFontKernPairs; // Kerning Pairs of the current Font
+ ULONG mnFontKernPairCount;// Number of Kerning Pairs of the current Font
+ int mnPenWidth; // Linienbreite
+ BOOL mbStockPen; // is Pen a stockpen
+ BOOL mbStockBrush; // is Brush a stcokbrush
+ BOOL mbPen; // is Pen (FALSE == NULL_PEN)
+ BOOL mbBrush; // is Brush (FALSE == NULL_BRUSH)
+ BOOL mbPrinter; // is Printer
+ BOOL mbVirDev; // is VirDev
+ BOOL mbWindow; // is Window
+ BOOL mbScreen; // is Screen compatible
+ bool mbXORMode; // _every_ output with RasterOp XOR
// remember RGB values for SetLineColor/SetFillColor
SalColor maLineColor;
@@ -184,48 +184,48 @@ public:
virtual ~WinSalGraphics();
protected:
- virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual BOOL unionClipRegion( long nX, long nY, long nWidth, long nHeight );
virtual bool unionClipRegion( const ::basegfx::B2DPolyPolygon& );
// draw --> LineColor and FillColor and RasterOp and ClipRegion
- virtual void drawPixel( long nX, long nY );
- virtual void drawPixel( long nX, long nY, SalColor nSalColor );
- virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
- virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
- virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
- virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry );
+ virtual void drawPixel( long nX, long nY );
+ virtual void drawPixel( long nX, long nY, SalColor nSalColor );
+ virtual void drawLine( long nX1, long nY1, long nX2, long nY2 );
+ virtual void drawRect( long nX, long nY, long nWidth, long nHeight );
+ virtual void drawPolyLine( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolygon( ULONG nPoints, const SalPoint* pPtAry );
+ virtual void drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints, PCONSTSALPOINT* pPtAry );
virtual bool drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double fTransparency );
virtual bool drawPolyLine( const ::basegfx::B2DPolygon&, double fTransparency, const ::basegfx::B2DVector& rLineWidth, basegfx::B2DLineJoin );
- virtual sal_Bool drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
- virtual sal_Bool drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
- virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );
+ virtual sal_Bool drawPolyLineBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
+ virtual sal_Bool drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAry, const BYTE* pFlgAry );
+ virtual sal_Bool drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt32* pPoints, const SalPoint* const* pPtAry, const BYTE* const* pFlgAry );
// CopyArea --> No RasterOp, but ClipRegion
- virtual void copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
+ virtual void copyArea( long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
long nSrcHeight, USHORT nFlags );
// CopyBits and DrawBitmap --> RasterOp and ClipRegion
// CopyBits() --> pSrcGraphics == NULL, then CopyBits on same Graphics
- virtual void copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
- virtual void drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics );
+ virtual void drawBitmap( const SalTwoRect* pPosAry, const SalBitmap& rSalBitmap );
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nTransparentColor );
- virtual void drawBitmap( const SalTwoRect* pPosAry,
+ virtual void drawBitmap( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap );
- virtual void drawMask( const SalTwoRect* pPosAry,
+ virtual void drawMask( const SalTwoRect* pPosAry,
const SalBitmap& rSalBitmap,
SalColor nMaskColor );
- virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
- virtual SalColor getPixel( long nX, long nY );
+ virtual SalBitmap* getBitmap( long nX, long nY, long nWidth, long nHeight );
+ virtual SalColor getPixel( long nX, long nY );
// invert --> ClipRegion (only Windows or VirDevs)
- virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
- virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
+ virtual void invert( long nX, long nY, long nWidth, long nHeight, SalInvert nFlags);
+ virtual void invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nFlags );
- virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
+ virtual BOOL drawEPS( long nX, long nY, long nWidth, long nHeight, void* pPtr, ULONG nSize );
// native widget rendering methods that require mirroring
virtual BOOL hitTestNativeControl( ControlType nType, ControlPart nPart, const Rectangle& rControlRegion,
@@ -240,61 +240,61 @@ protected:
const ImplControlValue& aValue, const rtl::OUString& aCaption,
Rectangle &rNativeBoundingRegion, Rectangle &rNativeContentRegion );
- virtual bool drawAlphaBitmap( const SalTwoRect&,
+ virtual bool drawAlphaBitmap( const SalTwoRect&,
const SalBitmap& rSourceBitmap,
const SalBitmap& rAlphaBitmap );
- virtual bool drawAlphaRect( long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency );
+ virtual bool drawAlphaRect( long nX, long nY, long nWidth, long nHeight, sal_uInt8 nTransparency );
public:
// public SalGraphics methods, the interface to teh independent vcl part
// get device resolution
- virtual void GetResolution( long& rDPIX, long& rDPIY );
+ virtual void GetResolution( long& rDPIX, long& rDPIY );
// get the depth of the device
- virtual USHORT GetBitCount();
+ virtual USHORT GetBitCount();
// get the width of the device
- virtual long GetGraphicsWidth() const;
+ virtual long GetGraphicsWidth() const;
// set the clip region to empty
- virtual void ResetClipRegion();
+ virtual void ResetClipRegion();
// begin setting the clip region, add rectangles to the
// region with the UnionClipRegion call
- virtual void BeginSetClipRegion( ULONG nCount );
+ virtual void BeginSetClipRegion( ULONG nCount );
// all rectangles were added and the clip region should be set now
- virtual void EndSetClipRegion();
+ virtual void EndSetClipRegion();
// set the line color to transparent (= don't draw lines)
- virtual void SetLineColor();
+ virtual void SetLineColor();
// set the line color to a specific color
- virtual void SetLineColor( SalColor nSalColor );
+ virtual void SetLineColor( SalColor nSalColor );
// set the fill color to transparent (= don't fill)
- virtual void SetFillColor();
+ virtual void SetFillColor();
// set the fill color to a specific color, shapes will be
// filled accordingly
- virtual void SetFillColor( SalColor nSalColor );
+ virtual void SetFillColor( SalColor nSalColor );
// enable/disable XOR drawing
- virtual void SetXORMode( bool bSet, bool );
+ virtual void SetXORMode( bool bSet, bool );
// set line color for raster operations
- virtual void SetROPLineColor( SalROPColor nROPColor );
+ virtual void SetROPLineColor( SalROPColor nROPColor );
// set fill color for raster operations
- virtual void SetROPFillColor( SalROPColor nROPColor );
+ virtual void SetROPFillColor( SalROPColor nROPColor );
// set the text color to a specific color
- virtual void SetTextColor( SalColor nSalColor );
+ virtual void SetTextColor( SalColor nSalColor );
// set the font
virtual USHORT SetFont( ImplFontSelectData*, int nFallbackLevel );
// get the current font's etrics
- virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
+ virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel );
// get kernign pairs of the current font
// return only PairCount if (pKernPairs == NULL)
- virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
+ virtual ULONG GetKernPairs( ULONG nPairs, ImplKernPairData* pKernPairs );
// get the repertoire of the current font
virtual ImplFontCharMap* GetImplFontCharMap() const;
// graphics must fill supplied font list
- virtual void GetDevFontList( ImplDevFontList* );
+ virtual void GetDevFontList( ImplDevFontList* );
// graphics should call ImplAddDevFontSubstitute on supplied
// OutputDevice for all its device specific preferred font substitutions
- virtual void GetDevFontSubstList( OutputDevice* );
- virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
+ virtual void GetDevFontSubstList( OutputDevice* );
+ virtual bool AddTempDevFont( ImplDevFontList*, const String& rFileURL, const String& rFontName );
// CreateFontSubset: a method to get a subset of glyhps of a font
// inside a new valid font file
// returns TRUE if creation of subset was successfull
@@ -307,7 +307,7 @@ public:
// rInfo: additional outgoing information
// implementation note: encoding 0 with glyph id 0 should be added implicitly
// as "undefined character"
- virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
+ virtual BOOL CreateFontSubset( const rtl::OUString& rToFile,
const ImplFontData*,
long* pGlyphIDs,
sal_uInt8* pEncoding,
@@ -332,13 +332,13 @@ public:
// pWidths MUST support at least 256 members;
// rInfo: additional outgoing information
// pDataLen: out parameter, contains the byte length of the returned buffer
- virtual const void* GetEmbedFontData( const ImplFontData*,
+ virtual const void* GetEmbedFontData( const ImplFontData*,
const sal_Ucs* pUnicodes,
sal_Int32* pWidths,
FontSubsetInfo& rInfo,
long* pDataLen );
// frees the font data again
- virtual void FreeEmbedFontData( const void* pData, long nDataLen );
+ virtual void FreeEmbedFontData( const void* pData, long nDataLen );
virtual void GetGlyphWidths( const ImplFontData*,
bool bVertical,
Int32Vector& rWidths,
@@ -349,7 +349,7 @@ public:
virtual BOOL GetGlyphOutline( long nIndex, ::basegfx::B2DPolyPolygon& );
virtual SalLayout* GetTextLayout( ImplLayoutArgs&, int nFallbackLevel );
- virtual void DrawServerFontLayout( const ServerFontLayout& );
+ virtual void DrawServerFontLayout( const ServerFontLayout& );
virtual bool supportsOperation( OutDevSupportType ) const;
// Query the platform layer for control support
@@ -360,10 +360,10 @@ public:
};
// Init/Deinit Graphics
-void ImplSalInitGraphics( WinSalGraphics* mpData );
-void ImplSalDeInitGraphics( WinSalGraphics* mpData );
-void ImplUpdateSysColorEntries();
-int ImplIsSysColorEntry( SalColor nSalColor );
+void ImplSalInitGraphics( WinSalGraphics* mpData );
+void ImplSalDeInitGraphics( WinSalGraphics* mpData );
+void ImplUpdateSysColorEntries();
+int ImplIsSysColorEntry( SalColor nSalColor );
void ImplGetLogFontFromFontSelect( HDC hDC, const ImplFontSelectData*,
LOGFONTW&, bool bTestVerticalAvail );
@@ -371,7 +371,7 @@ void ImplGetLogFontFromFontSelect( HDC hDC, const ImplFontSelectData*,
// - Defines -
// -----------
-#define MAX_64KSALPOINTS ((((USHORT)0xFFFF)-8)/sizeof(POINTS))
+#define MAX_64KSALPOINTS ((((USHORT)0xFFFF)-8)/sizeof(POINTS))
// -----------
// - Inlines -
diff --git a/vcl/win/inc/salids.hrc b/vcl/win/inc/salids.hrc
index 3049f11b551b..dace5ce658be 100644
--- a/vcl/win/inc/salids.hrc
+++ b/vcl/win/inc/salids.hrc
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -29,83 +29,83 @@
#define _SV_SALIDS_HRC
// Cursor
-#define SAL_RESID_POINTER_NULL 10000
+#define SAL_RESID_POINTER_NULL 10000
#ifndef W40ONLY
-#define SAL_RESID_POINTER_HELP 10001
+#define SAL_RESID_POINTER_HELP 10001
#endif
#ifndef WNT
-#define SAL_RESID_POINTER_HSIZE 10002
-#define SAL_RESID_POINTER_VSIZE 10003
-#define SAL_RESID_POINTER_NESWSIZE 10004
-#define SAL_RESID_POINTER_NWSESIZE 10005
+#define SAL_RESID_POINTER_HSIZE 10002
+#define SAL_RESID_POINTER_VSIZE 10003
+#define SAL_RESID_POINTER_NESWSIZE 10004
+#define SAL_RESID_POINTER_NWSESIZE 10005
#endif
-#define SAL_RESID_POINTER_CROSS 10006
-#define SAL_RESID_POINTER_MOVE 10007
-#define SAL_RESID_POINTER_HSPLIT 10008
-#define SAL_RESID_POINTER_VSPLIT 10009
-#define SAL_RESID_POINTER_HSIZEBAR 10010
-#define SAL_RESID_POINTER_VSIZEBAR 10011
-#define SAL_RESID_POINTER_HAND 10012
-#define SAL_RESID_POINTER_REFHAND 10013
-#define SAL_RESID_POINTER_PEN 10014
-#define SAL_RESID_POINTER_MAGNIFY 10015
-#define SAL_RESID_POINTER_FILL 10016
-#define SAL_RESID_POINTER_ROTATE 10017
-#define SAL_RESID_POINTER_HSHEAR 10018
-#define SAL_RESID_POINTER_VSHEAR 10019
-#define SAL_RESID_POINTER_MIRROR 10020
-#define SAL_RESID_POINTER_CROOK 10021
-#define SAL_RESID_POINTER_CROP 10022
-#define SAL_RESID_POINTER_MOVEPOINT 10023
-#define SAL_RESID_POINTER_MOVEBEZIERWEIGHT 10024
-#define SAL_RESID_POINTER_MOVEDATA 10025
-#define SAL_RESID_POINTER_COPYDATA 10026
-#define SAL_RESID_POINTER_LINKDATA 10027
-#define SAL_RESID_POINTER_MOVEDATALINK 10028
-#define SAL_RESID_POINTER_COPYDATALINK 10029
-#define SAL_RESID_POINTER_MOVEFILE 10030
-#define SAL_RESID_POINTER_COPYFILE 10031
-#define SAL_RESID_POINTER_LINKFILE 10032
-#define SAL_RESID_POINTER_MOVEFILELINK 10033
-#define SAL_RESID_POINTER_COPYFILELINK 10034
-#define SAL_RESID_POINTER_MOVEFILES 10035
-#define SAL_RESID_POINTER_COPYFILES 10036
-#define SAL_RESID_POINTER_NOTALLOWED 10037
-#define SAL_RESID_POINTER_DRAW_LINE 10038
-#define SAL_RESID_POINTER_DRAW_RECT 10039
-#define SAL_RESID_POINTER_DRAW_POLYGON 10040
-#define SAL_RESID_POINTER_DRAW_BEZIER 10041
-#define SAL_RESID_POINTER_DRAW_ARC 10042
-#define SAL_RESID_POINTER_DRAW_PIE 10043
-#define SAL_RESID_POINTER_DRAW_CIRCLECUT 10044
-#define SAL_RESID_POINTER_DRAW_ELLIPSE 10045
-#define SAL_RESID_POINTER_DRAW_FREEHAND 10046
-#define SAL_RESID_POINTER_DRAW_CONNECT 10047
-#define SAL_RESID_POINTER_DRAW_TEXT 10048
-#define SAL_RESID_POINTER_DRAW_CAPTION 10049
+#define SAL_RESID_POINTER_CROSS 10006
+#define SAL_RESID_POINTER_MOVE 10007
+#define SAL_RESID_POINTER_HSPLIT 10008
+#define SAL_RESID_POINTER_VSPLIT 10009
+#define SAL_RESID_POINTER_HSIZEBAR 10010
+#define SAL_RESID_POINTER_VSIZEBAR 10011
+#define SAL_RESID_POINTER_HAND 10012
+#define SAL_RESID_POINTER_REFHAND 10013
+#define SAL_RESID_POINTER_PEN 10014
+#define SAL_RESID_POINTER_MAGNIFY 10015
+#define SAL_RESID_POINTER_FILL 10016
+#define SAL_RESID_POINTER_ROTATE 10017
+#define SAL_RESID_POINTER_HSHEAR 10018
+#define SAL_RESID_POINTER_VSHEAR 10019
+#define SAL_RESID_POINTER_MIRROR 10020
+#define SAL_RESID_POINTER_CROOK 10021
+#define SAL_RESID_POINTER_CROP 10022
+#define SAL_RESID_POINTER_MOVEPOINT 10023
+#define SAL_RESID_POINTER_MOVEBEZIERWEIGHT 10024
+#define SAL_RESID_POINTER_MOVEDATA 10025
+#define SAL_RESID_POINTER_COPYDATA 10026
+#define SAL_RESID_POINTER_LINKDATA 10027
+#define SAL_RESID_POINTER_MOVEDATALINK 10028
+#define SAL_RESID_POINTER_COPYDATALINK 10029
+#define SAL_RESID_POINTER_MOVEFILE 10030
+#define SAL_RESID_POINTER_COPYFILE 10031
+#define SAL_RESID_POINTER_LINKFILE 10032
+#define SAL_RESID_POINTER_MOVEFILELINK 10033
+#define SAL_RESID_POINTER_COPYFILELINK 10034
+#define SAL_RESID_POINTER_MOVEFILES 10035
+#define SAL_RESID_POINTER_COPYFILES 10036
+#define SAL_RESID_POINTER_NOTALLOWED 10037
+#define SAL_RESID_POINTER_DRAW_LINE 10038
+#define SAL_RESID_POINTER_DRAW_RECT 10039
+#define SAL_RESID_POINTER_DRAW_POLYGON 10040
+#define SAL_RESID_POINTER_DRAW_BEZIER 10041
+#define SAL_RESID_POINTER_DRAW_ARC 10042
+#define SAL_RESID_POINTER_DRAW_PIE 10043
+#define SAL_RESID_POINTER_DRAW_CIRCLECUT 10044
+#define SAL_RESID_POINTER_DRAW_ELLIPSE 10045
+#define SAL_RESID_POINTER_DRAW_FREEHAND 10046
+#define SAL_RESID_POINTER_DRAW_CONNECT 10047
+#define SAL_RESID_POINTER_DRAW_TEXT 10048
+#define SAL_RESID_POINTER_DRAW_CAPTION 10049
#define SAL_RESID_POINTER_CHART 10050
-#define SAL_RESID_POINTER_DETECTIVE 10051
-#define SAL_RESID_POINTER_PIVOT_COL 10052
-#define SAL_RESID_POINTER_PIVOT_ROW 10053
-#define SAL_RESID_POINTER_PIVOT_FIELD 10054
+#define SAL_RESID_POINTER_DETECTIVE 10051
+#define SAL_RESID_POINTER_PIVOT_COL 10052
+#define SAL_RESID_POINTER_PIVOT_ROW 10053
+#define SAL_RESID_POINTER_PIVOT_FIELD 10054
#define SAL_RESID_POINTER_CHAIN 10055
-#define SAL_RESID_POINTER_CHAIN_NOTALLOWED 10056
-#define SAL_RESID_POINTER_TIMEEVENT_MOVE 10057
-#define SAL_RESID_POINTER_TIMEEVENT_SIZE 10058
-#define SAL_RESID_POINTER_AUTOSCROLL_N 10059
-#define SAL_RESID_POINTER_AUTOSCROLL_S 10060
-#define SAL_RESID_POINTER_AUTOSCROLL_W 10061
-#define SAL_RESID_POINTER_AUTOSCROLL_E 10062
-#define SAL_RESID_POINTER_AUTOSCROLL_NW 10063
-#define SAL_RESID_POINTER_AUTOSCROLL_NE 10064
-#define SAL_RESID_POINTER_AUTOSCROLL_SW 10065
-#define SAL_RESID_POINTER_AUTOSCROLL_SE 10066
-#define SAL_RESID_POINTER_AUTOSCROLL_NS 10067
-#define SAL_RESID_POINTER_AUTOSCROLL_WE 10068
-#define SAL_RESID_POINTER_AUTOSCROLL_NSWE 10069
+#define SAL_RESID_POINTER_CHAIN_NOTALLOWED 10056
+#define SAL_RESID_POINTER_TIMEEVENT_MOVE 10057
+#define SAL_RESID_POINTER_TIMEEVENT_SIZE 10058
+#define SAL_RESID_POINTER_AUTOSCROLL_N 10059
+#define SAL_RESID_POINTER_AUTOSCROLL_S 10060
+#define SAL_RESID_POINTER_AUTOSCROLL_W 10061
+#define SAL_RESID_POINTER_AUTOSCROLL_E 10062
+#define SAL_RESID_POINTER_AUTOSCROLL_NW 10063
+#define SAL_RESID_POINTER_AUTOSCROLL_NE 10064
+#define SAL_RESID_POINTER_AUTOSCROLL_SW 10065
+#define SAL_RESID_POINTER_AUTOSCROLL_SE 10066
+#define SAL_RESID_POINTER_AUTOSCROLL_NS 10067
+#define SAL_RESID_POINTER_AUTOSCROLL_WE 10068
+#define SAL_RESID_POINTER_AUTOSCROLL_NSWE 10069
#define SAL_RESID_POINTER_AIRBRUSH 10070
-#define SAL_RESID_POINTER_TEXT_VERTICAL 10071
-#define SAL_RESID_POINTER_PIVOT_DELETE 10072
+#define SAL_RESID_POINTER_TEXT_VERTICAL 10071
+#define SAL_RESID_POINTER_PIVOT_DELETE 10072
#define SAL_RESID_POINTER_TAB_SELECT_S 10073
#define SAL_RESID_POINTER_TAB_SELECT_E 10074
#define SAL_RESID_POINTER_TAB_SELECT_SE 10075
@@ -115,6 +115,6 @@
#define SAL_RESID_BITMAP_50 11000
-#define SAL_RESID_ICON_DEFAULT 1
+#define SAL_RESID_ICON_DEFAULT 1
#endif // _SV_SALIDS_HRC
diff --git a/vcl/win/inc/salinst.h b/vcl/win/inc/salinst.h
index 3b8c32708789..515cb1b40cca 100644
--- a/vcl/win/inc/salinst.h
+++ b/vcl/win/inc/salinst.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,49 +41,49 @@ class SalYieldMutex;
class WinSalInstance : public SalInstance
{
public:
- HINSTANCE mhInst; // Instance Handle
- HWND mhComWnd; // window, for communication (between threads and the main thread)
- SalYieldMutex* mpSalYieldMutex; // Sal-Yield-Mutex
- osl::Mutex* mpSalWaitMutex; // Sal-Wait-Mutex
- USHORT mnYieldWaitCount; // Wait-Count
+ HINSTANCE mhInst; // Instance Handle
+ HWND mhComWnd; // window, for communication (between threads and the main thread)
+ SalYieldMutex* mpSalYieldMutex; // Sal-Yield-Mutex
+ osl::Mutex* mpSalWaitMutex; // Sal-Wait-Mutex
+ USHORT mnYieldWaitCount; // Wait-Count
public:
WinSalInstance();
virtual ~WinSalInstance();
- virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
- virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
- virtual void DestroyFrame( SalFrame* pFrame );
- virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
- virtual void DestroyObject( SalObject* pObject );
- virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
+ virtual SalFrame* CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
+ virtual SalFrame* CreateFrame( SalFrame* pParent, ULONG nStyle );
+ virtual void DestroyFrame( SalFrame* pFrame );
+ virtual SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
+ virtual void DestroyObject( SalObject* pObject );
+ virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
long nDX, long nDY,
USHORT nBitCount, const SystemGraphicsData *pData );
- virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
+ virtual void DestroyVirtualDevice( SalVirtualDevice* pDevice );
- virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
+ virtual SalInfoPrinter* CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo,
ImplJobSetup* pSetupData );
- virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
- virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
- virtual void DestroyPrinter( SalPrinter* pPrinter );
- virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
- virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
- virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
+ virtual void DestroyInfoPrinter( SalInfoPrinter* pPrinter );
+ virtual SalPrinter* CreatePrinter( SalInfoPrinter* pInfoPrinter );
+ virtual void DestroyPrinter( SalPrinter* pPrinter );
+ virtual void GetPrinterQueueInfo( ImplPrnQueueList* pList );
+ virtual void GetPrinterQueueState( SalPrinterQueueInfo* pInfo );
+ virtual void DeletePrinterQueueInfo( SalPrinterQueueInfo* pInfo );
virtual String GetDefaultPrinter();
- virtual SalTimer* CreateSalTimer();
- virtual SalI18NImeStatus* CreateI18NImeStatus();
- virtual SalSystem* CreateSalSystem();
- virtual SalBitmap* CreateSalBitmap();
+ virtual SalTimer* CreateSalTimer();
+ virtual SalI18NImeStatus* CreateI18NImeStatus();
+ virtual SalSystem* CreateSalSystem();
+ virtual SalBitmap* CreateSalBitmap();
virtual osl::SolarMutex* GetYieldMutex();
- virtual ULONG ReleaseYieldMutex();
- virtual void AcquireYieldMutex( ULONG nCount );
- virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
- virtual bool AnyInput( USHORT nType );
- virtual SalMenu* CreateMenu( BOOL bMenuBar );
- virtual void DestroyMenu( SalMenu* );
- virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
- virtual void DestroyMenuItem( SalMenuItem* );
+ virtual ULONG ReleaseYieldMutex();
+ virtual void AcquireYieldMutex( ULONG nCount );
+ virtual void Yield( bool bWait, bool bHandleAllCurrentEvents );
+ virtual bool AnyInput( USHORT nType );
+ virtual SalMenu* CreateMenu( BOOL bMenuBar );
+ virtual void DestroyMenu( SalMenu* );
+ virtual SalMenuItem* CreateMenuItem( const SalItemParams* pItemData );
+ virtual void DestroyMenuItem( SalMenuItem* );
virtual SalSession* CreateSalSession();
- virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+ virtual void* GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
virtual void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
static int WorkaroundExceptionHandlingInUSER32Lib(int nExcept, LPEXCEPTION_POINTERS pExceptionInfo);
diff --git a/vcl/win/inc/salmenu.h b/vcl/win/inc/salmenu.h
index 5e821837101f..5fce0ffc5f68 100644
--- a/vcl/win/inc/salmenu.h
+++ b/vcl/win/inc/salmenu.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/win/inc/salnativewidgets.h b/vcl/win/inc/salnativewidgets.h
index 515a4b44d02c..021c213028a9 100644
--- a/vcl/win/inc/salnativewidgets.h
+++ b/vcl/win/inc/salnativewidgets.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -35,7 +35,7 @@
#include <vcl/sv.h>
/* SalControlHandleData:
- *
+ *
* Holds platform specific theming data.
*/
@@ -50,7 +50,7 @@ class SalControlHandleData
};
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#endif
diff --git a/vcl/win/inc/salobj.h b/vcl/win/inc/salobj.h
index 31fb8769b959..168ec95fbec0 100644
--- a/vcl/win/inc/salobj.h
+++ b/vcl/win/inc/salobj.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,32 +39,32 @@
class WinSalObject : public SalObject
{
public:
- HWND mhWnd; // Window handle
- HWND mhWndChild; // Child Window handle
- HWND mhLastFocusWnd; // Child-Window, welches als letztes den Focus hatte
- SystemChildData maSysData; // SystemEnvData
- RGNDATA* mpClipRgnData; // ClipRegion-Data
- RGNDATA* mpStdClipRgnData; // Cache Standard-ClipRegion-Data
- RECT* mpNextClipRect; // Naechstes ClipRegion-Rect
- BOOL mbFirstClipRect; // Flag for first cliprect to insert
- WinSalObject* mpNextObject; // pointer to next object
+ HWND mhWnd; // Window handle
+ HWND mhWndChild; // Child Window handle
+ HWND mhLastFocusWnd; // Child-Window, welches als letztes den Focus hatte
+ SystemChildData maSysData; // SystemEnvData
+ RGNDATA* mpClipRgnData; // ClipRegion-Data
+ RGNDATA* mpStdClipRgnData; // Cache Standard-ClipRegion-Data
+ RECT* mpNextClipRect; // Naechstes ClipRegion-Rect
+ BOOL mbFirstClipRect; // Flag for first cliprect to insert
+ WinSalObject* mpNextObject; // pointer to next object
WinSalObject();
virtual ~WinSalObject();
- virtual void ResetClipRegion();
- virtual USHORT GetClipRegionType();
- virtual void BeginSetClipRegion( ULONG nRects );
- virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
- virtual void EndSetClipRegion();
- virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
- virtual void Show( BOOL bVisible );
- virtual void Enable( BOOL nEnable );
- virtual void GrabFocus();
- virtual void SetBackground();
- virtual void SetBackground( SalColor nSalColor );
- virtual const SystemEnvData* GetSystemData() const;
+ virtual void ResetClipRegion();
+ virtual USHORT GetClipRegionType();
+ virtual void BeginSetClipRegion( ULONG nRects );
+ virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
+ virtual void EndSetClipRegion();
+ virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight );
+ virtual void Show( BOOL bVisible );
+ virtual void Enable( BOOL nEnable );
+ virtual void GrabFocus();
+ virtual void SetBackground();
+ virtual void SetBackground( SalColor nSalColor );
+ virtual const SystemEnvData* GetSystemData() const;
};
#endif // _SV_SALOBJ_H
diff --git a/vcl/win/inc/salprn.h b/vcl/win/inc/salprn.h
index 55b421a9cba9..deea9d17e338 100644
--- a/vcl/win/inc/salprn.h
+++ b/vcl/win/inc/salprn.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -37,18 +37,18 @@
// -----------------
// WNT3
-#define SAL_DRIVERDATA_SYSSIGN ((ULONG)0x574E5433)
-#define SAL_DRIVERDATA_VERSION_A 1
+#define SAL_DRIVERDATA_SYSSIGN ((ULONG)0x574E5433)
+#define SAL_DRIVERDATA_VERSION_A 1
#define SAL_DRIVERDATA_VERSION_W 2
#pragma pack( 1 )
struct SalDriverData
{
- ULONG mnSysSignature;
- USHORT mnVersion;
- USHORT mnDriverOffset;
- BYTE maDriverData[1];
+ ULONG mnSysSignature;
+ USHORT mnVersion;
+ USHORT mnDriverOffset;
+ BYTE maDriverData[1];
};
#pragma pack()
@@ -62,30 +62,30 @@ class WinSalGraphics;
class WinSalInfoPrinter : public SalInfoPrinter
{
public:
- WinSalGraphics* mpGraphics; // current Printer graphics
- XubString maDriverName; // printer driver name
- XubString maDeviceName; // printer device name
- XubString maPortName; // printer port name
- HDC mhDC; // printer hdc
- BOOL mbGraphics; // is Graphics used
+ WinSalGraphics* mpGraphics; // current Printer graphics
+ XubString maDriverName; // printer driver name
+ XubString maDeviceName; // printer device name
+ XubString maPortName; // printer port name
+ HDC mhDC; // printer hdc
+ BOOL mbGraphics; // is Graphics used
public:
WinSalInfoPrinter();
virtual ~WinSalInfoPrinter();
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
- virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
- virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
- virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData );
- virtual void GetPageInfo( const ImplJobSetup* pSetupData,
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual BOOL Setup( SalFrame* pFrame, ImplJobSetup* pSetupData );
+ virtual BOOL SetPrinterData( ImplJobSetup* pSetupData );
+ virtual BOOL SetData( ULONG nFlags, ImplJobSetup* pSetupData );
+ virtual void GetPageInfo( const ImplJobSetup* pSetupData,
long& rOutWidth, long& rOutHeight,
long& rPageOffX, long& rPageOffY,
long& rPageWidth, long& rPageHeight );
- virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
- virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData );
- virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
- virtual void InitPaperFormats( const ImplJobSetup* pSetupData );
- virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData );
+ virtual ULONG GetCapabilities( const ImplJobSetup* pSetupData, USHORT nType );
+ virtual ULONG GetPaperBinCount( const ImplJobSetup* pSetupData );
+ virtual String GetPaperBinName( const ImplJobSetup* pSetupData, ULONG nPaperBin );
+ virtual void InitPaperFormats( const ImplJobSetup* pSetupData );
+ virtual int GetLandscapeAngle( const ImplJobSetup* pSetupData );
};
// -----------------
@@ -95,34 +95,34 @@ public:
class WinSalPrinter : public SalPrinter
{
public:
- WinSalGraphics* mpGraphics; // current Printer graphics
- WinSalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter
- WinSalPrinter* mpNextPrinter; // next printing printer
- HDC mhDC; // printer hdc
- ULONG mnError; // Error Code
- ULONG mnCopies; // Kopien
- BOOL mbCollate; // Sortierte Kopien
- BOOL mbAbort; // Job Aborted
+ WinSalGraphics* mpGraphics; // current Printer graphics
+ WinSalInfoPrinter* mpInfoPrinter; // pointer to the compatible InfoPrinter
+ WinSalPrinter* mpNextPrinter; // next printing printer
+ HDC mhDC; // printer hdc
+ ULONG mnError; // Error Code
+ ULONG mnCopies; // Kopien
+ BOOL mbCollate; // Sortierte Kopien
+ BOOL mbAbort; // Job Aborted
bool mbValid;
-
+
public:
WinSalPrinter();
virtual ~WinSalPrinter();
using SalPrinter::StartJob;
- virtual BOOL StartJob( const XubString* pFileName,
+ virtual BOOL StartJob( const XubString* pFileName,
const XubString& rJobName,
const XubString& rAppName,
ULONG nCopies,
bool bCollate,
bool bDirect,
ImplJobSetup* pSetupData );
- virtual BOOL EndJob();
- virtual BOOL AbortJob();
- virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData );
- virtual BOOL EndPage();
- virtual ULONG GetErrorCode();
+ virtual BOOL EndJob();
+ virtual BOOL AbortJob();
+ virtual SalGraphics* StartPage( ImplJobSetup* pSetupData, BOOL bNewJobData );
+ virtual BOOL EndPage();
+ virtual ULONG GetErrorCode();
void markInvalid();
bool isValid() const { return mbValid; }
diff --git a/vcl/win/inc/salsys.h b/vcl/win/inc/salsys.h
index 159a6ce1a2d1..cc9b1ea4d328 100644
--- a/vcl/win/inc/salsys.h
+++ b/vcl/win/inc/salsys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ class WinSalSystem : public SalSystem
Rectangle m_aArea;
Rectangle m_aWorkArea;
sal_Int32 m_nStateFlags;
-
+
DisplayMonitor() : m_nStateFlags( 0 ) {}
DisplayMonitor( const rtl::OUString& rName,
const rtl::OUString& rDevName,
@@ -83,7 +83,7 @@ public:
void clearMonitors();
const std::vector<DisplayMonitor>& getMonitors()
{ initMonitors(); return m_aMonitors;}
-
+
BOOL handleMonitorCallback( sal_IntPtr /*HMONITOR*/,
sal_IntPtr /*HDC*/,
sal_IntPtr /*LPRECT*/ );
diff --git a/vcl/win/inc/saltimer.h b/vcl/win/inc/saltimer.h
index 82ec8d2f387b..db062224d32f 100644
--- a/vcl/win/inc/saltimer.h
+++ b/vcl/win/inc/saltimer.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,8 +38,8 @@ public:
virtual ~WinSalTimer();
// overload all pure virtual methods
- void Start( ULONG nMS );
- void Stop();
+ void Start( ULONG nMS );
+ void Stop();
};
#endif
diff --git a/vcl/win/inc/salvd.h b/vcl/win/inc/salvd.h
index 6203e286ec0c..85f3599efcd0 100644
--- a/vcl/win/inc/salvd.h
+++ b/vcl/win/inc/salvd.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,22 +41,22 @@ class WinSalGraphics;
class WinSalVirtualDevice : public SalVirtualDevice
{
public:
- HDC mhDC; // HDC or 0 for Cache Device
- HBITMAP mhBmp; // Memory Bitmap
- HBITMAP mhDefBmp; // Default Bitmap
- WinSalGraphics* mpGraphics; // current VirDev graphics
- WinSalVirtualDevice* mpNext; // next VirDev
- USHORT mnBitCount; // BitCount (0 or 1)
- BOOL mbGraphics; // is Graphics used
+ HDC mhDC; // HDC or 0 for Cache Device
+ HBITMAP mhBmp; // Memory Bitmap
+ HBITMAP mhDefBmp; // Default Bitmap
+ WinSalGraphics* mpGraphics; // current VirDev graphics
+ WinSalVirtualDevice* mpNext; // next VirDev
+ USHORT mnBitCount; // BitCount (0 or 1)
+ BOOL mbGraphics; // is Graphics used
BOOL mbForeignDC; // uses a foreign DC instead of a bitmap
WinSalVirtualDevice();
virtual ~WinSalVirtualDevice();
- virtual SalGraphics* GetGraphics();
- virtual void ReleaseGraphics( SalGraphics* pGraphics );
+ virtual SalGraphics* GetGraphics();
+ virtual void ReleaseGraphics( SalGraphics* pGraphics );
virtual BOOL SetSize( long nNewDX, long nNewDY );
- virtual void GetSize( long& rWidth, long& rHeight );
+ virtual void GetSize( long& rWidth, long& rHeight );
};
#endif // _SV_SALVD_H
diff --git a/vcl/win/inc/svsys.h b/vcl/win/inc/svsys.h
index a43cbccab541..9dac2d6c2189 100644
--- a/vcl/win/inc/svsys.h
+++ b/vcl/win/inc/svsys.h
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/win/inc/wincomp.hxx b/vcl/win/inc/wincomp.hxx
index 2fe230b99531..d879f7167d15 100644
--- a/vcl/win/inc/wincomp.hxx
+++ b/vcl/win/inc/wincomp.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -190,7 +190,7 @@ inline HINSTANCE GetWindowInstance( HWND hWnd )
#define MSH_MOUSEWHEEL "MSWHEEL_ROLLMSG"
#define MOUSEZ_CLASSNAME "MouseZ" // wheel window class
-#define MOUSEZ_TITLE "Magellan MSWHEEL" // wheel window title
+#define MOUSEZ_TITLE "Magellan MSWHEEL" // wheel window title
#define MSH_WHEELMODULE_CLASS (MOUSEZ_CLASSNAME)
#define MSH_WHEELMODULE_TITLE (MOUSEZ_TITLE)
@@ -198,19 +198,19 @@ inline HINSTANCE GetWindowInstance( HWND hWnd )
#define MSH_SCROLL_LINES "MSH_SCROLL_LINES_MSG"
#ifndef WHEEL_DELTA
-#define WHEEL_DELTA 120
+#define WHEEL_DELTA 120
#endif
#ifndef WM_MOUSEWHEEL
-#define WM_MOUSEWHEEL 0x020A
+#define WM_MOUSEWHEEL 0x020A
#endif
#ifndef SPI_GETWHEELSCROLLLINES
-#define SPI_GETWHEELSCROLLLINES 104
+#define SPI_GETWHEELSCROLLLINES 104
#endif
#ifndef SPI_SETWHEELSCROLLLINES
-#define SPI_SETWHEELSCROLLLINES 105
+#define SPI_SETWHEELSCROLLLINES 105
#endif
#ifndef WHEEL_PAGESCROLL
-#define WHEEL_PAGESCROLL (UINT_MAX)
+#define WHEEL_PAGESCROLL (UINT_MAX)
#endif
@@ -218,9 +218,9 @@ inline HINSTANCE GetWindowInstance( HWND hWnd )
// - SystemAgent Erweiterungen -
// -----------------------------
-#define ENABLE_AGENT 1
-#define DISABLE_AGENT 2
-#define GET_AGENT_STATUS 3
+#define ENABLE_AGENT 1
+#define DISABLE_AGENT 2
+#define GET_AGENT_STATUS 3
typedef int (APIENTRY* SysAgt_Enable_PROC)( int );
// ---------------------
@@ -228,10 +228,10 @@ typedef int (APIENTRY* SysAgt_Enable_PROC)( int );
// ---------------------
#ifndef COLOR_GRADIENTACTIVECAPTION
-#define COLOR_GRADIENTACTIVECAPTION 27
+#define COLOR_GRADIENTACTIVECAPTION 27
#endif
#ifndef COLOR_GRADIENTINACTIVECAPTION
-#define COLOR_GRADIENTINACTIVECAPTION 28
+#define COLOR_GRADIENTINACTIVECAPTION 28
#endif
#ifndef SPI_GETFLATMENU
@@ -241,7 +241,7 @@ typedef int (APIENTRY* SysAgt_Enable_PROC)( int );
#define COLOR_MENUBAR 30
#endif
#ifndef COLOR_MENUHILIGHT
-#define COLOR_MENUHILIGHT 29
+#define COLOR_MENUHILIGHT 29
#endif
#ifndef CS_DROPSHADOW
diff --git a/vcl/win/source/app/saldata.cxx b/vcl/win/source/app/saldata.cxx
index 177e0d8088ff..8f9babfc10f8 100644
--- a/vcl/win/source/app/saldata.cxx
+++ b/vcl/win/source/app/saldata.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -92,9 +92,9 @@ UniString ImplSalGetUniString( const sal_Char* pStr, xub_StrLen nLen )
int ImplSalWICompareAscii( const wchar_t* pStr1, const char* pStr2 )
{
- int nRet;
- wchar_t c1;
- char c2;
+ int nRet;
+ wchar_t c1;
+ char c2;
do
{
// Ist das Zeichen zwischen 'A' und 'Z' dann umwandeln
diff --git a/vcl/win/source/app/salinfo.cxx b/vcl/win/source/app/salinfo.cxx
index 943344c189a1..c95fca611339 100644
--- a/vcl/win/source/app/salinfo.cxx
+++ b/vcl/win/source/app/salinfo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -120,19 +120,19 @@ bool WinSalSystem::initMonitors()
{
if( m_aMonitors.size() > 0 )
return true;
-
+
bool winVerOk = true;
// multi monitor calls not available on Win95/NT
if ( aSalShlData.maVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT )
{
if ( aSalShlData.maVersionInfo.dwMajorVersion <= 4 )
- winVerOk = false; // NT
+ winVerOk = false; // NT
}
else if( aSalShlData.maVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS )
{
if ( aSalShlData.maVersionInfo.dwMajorVersion == 4 && aSalShlData.maVersionInfo.dwMinorVersion == 0 )
- winVerOk = false; // Win95
+ winVerOk = false; // Win95
}
if( winVerOk )
{
@@ -218,7 +218,7 @@ bool WinSalSystem::initMonitors()
m_aMonitors.back().m_aWorkArea = Rectangle( aWorkRect.left, aWorkRect.top,
aWorkRect.right, aWorkRect.bottom );
}
-
+
return m_aMonitors.size() > 0;
}
diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx
index fac9c0683e60..01c0b376326c 100644
--- a/vcl/win/source/app/salinst.cxx
+++ b/vcl/win/source/app/salinst.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,15 +52,15 @@
#include <salbmp.h>
#include <vcl/salimestatus.hxx>
#include <vcl/timer.hxx>
-#include <wincomp.hxx> // CS_DROPSHADOW
+#include <wincomp.hxx> // CS_DROPSHADOW
#include <tools/solarmutex.hxx>
#include <vcl/solarmutex.hxx>
#ifndef min
-#define min(a,b) (((a) < (b)) ? (a) : (b))
+#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef max
-#define max(a,b) (((a) > (b)) ? (a) : (b))
+#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#if defined _MSC_VER
@@ -370,7 +370,7 @@ void SalData::initKeyCodeMap()
initKey( '+', KEY_ADD );
initKey( '-', KEY_SUBTRACT );
initKey( '*', KEY_MULTIPLY );
- initKey( '/', KEY_DIVIDE );
+ initKey( '/', KEY_DIVIDE );
initKey( '.', KEY_POINT );
initKey( ',', KEY_COMMA );
initKey( '<', KEY_LESS );
@@ -444,7 +444,7 @@ SalData::SalData()
// init with NULL
gdiplusToken = 0;
-
+
initKeyCodeMap();
SetSalData( this );
@@ -720,7 +720,7 @@ void ImplSalYield( BOOL bWait, BOOL bHandleAllCurrentEvents )
{
MSG aMsg;
bool bWasMsg = false, bOneEvent = false;
-
+
int nMaxEvents = bHandleAllCurrentEvents ? 100 : 1;
do
{
@@ -760,7 +760,7 @@ void WinSalInstance::Yield( bool bWait, bool bHandleAllCurrentEvents )
}
if ( pSalData->mnAppThreadId != nCurThreadId )
{
- // #97739# A SendMessage call blocks until the called thread (here: the main thread)
+ // #97739# A SendMessage call blocks until the called thread (here: the main thread)
// returns. During a yield however, messages are processed in the main thread that might
// result in a new message loop due to opening a dialog. Thus, SendMessage would not
// return which will block this thread!
@@ -845,7 +845,7 @@ LRESULT CALLBACK SalComWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPar
break;
case SAL_MSG_DESTROYHWND:
//We only destroy the native window here. We do NOT destroy the SalFrame contained
- //in the structure (GetWindowPtr()).
+ //in the structure (GetWindowPtr()).
if (DestroyWindow((HWND)lParam) == 0)
{
OSL_ENSURE(0, "DestroyWindow failed!");
@@ -985,7 +985,7 @@ bool WinSalInstance::AnyInput( USHORT nType )
if ( ImplPeekMessage( &aMsg, 0, WM_PAINT, WM_PAINT,
PM_NOREMOVE | PM_NOYIELD ) )
return true;
-
+
if ( ImplPeekMessage( &aMsg, 0, WM_SIZE, WM_SIZE,
PM_NOREMOVE | PM_NOYIELD ) )
return true;
@@ -1072,7 +1072,7 @@ void WinSalInstance::DestroyFrame( SalFrame* pFrame )
SalObject* WinSalInstance::CreateObject( SalFrame* pParent,
SystemWindowData* /*pWindowData*/, // SystemWindowData meaningless on Windows
- BOOL /*bShow*/ )
+ BOOL /*bShow*/ )
{
// Um auf Main-Thread umzuschalten
return (SalObject*)ImplSendMessage( mhComWnd, SAL_MSG_CREATEOBJECT, 0, (LPARAM)static_cast<WinSalFrame*>(pParent) );
@@ -1097,9 +1097,9 @@ void* WinSalInstance::GetConnectionIdentifier( ConnectionIdentifierType& rReturn
// -----------------------------------------------------------------------
/** Add a file to the system shells recent document list if there is any.
- This function may have no effect under Unix because there is no
+ This function may have no effect under Unix because there is no
standard API among the different desktop managers.
-
+
@param aFileUrl
The file url of the document.
*/
@@ -1107,11 +1107,11 @@ void WinSalInstance::AddToRecentDocumentList(const rtl::OUString& rFileUrl, cons
{
rtl::OUString system_path;
osl::FileBase::RC rc = osl::FileBase::getSystemPathFromFileURL(rFileUrl, system_path);
-
+
OSL_ENSURE(osl::FileBase::E_None == rc, "Invalid file url");
-
+
if (osl::FileBase::E_None == rc)
- SHAddToRecentDocs(SHARD_PATHW, system_path.getStr());
+ SHAddToRecentDocs(SHARD_PATHW, system_path.getStr());
}
// -----------------------------------------------------------------------
@@ -1133,7 +1133,7 @@ class WinImeStatus : public SalI18NImeStatus
public:
WinImeStatus() {}
virtual ~WinImeStatus() {}
-
+
// asks whether there is a status window available
// to toggle into menubar
virtual bool canToggle() { return false; }
diff --git a/vcl/win/source/app/salshl.cxx b/vcl/win/source/app/salshl.cxx
index 136474e67f73..6d8ccabf878f 100644
--- a/vcl/win/source/app/salshl.cxx
+++ b/vcl/win/source/app/salshl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/win/source/app/saltimer.cxx b/vcl/win/source/app/saltimer.cxx
index 2f57bf810bd0..ac329d9cfb69 100644
--- a/vcl/win/source/app/saltimer.cxx
+++ b/vcl/win/source/app/saltimer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@
// =======================================================================
// Maximale Periode
-#define MAX_SYSPERIOD 65533
+#define MAX_SYSPERIOD 65533
// =======================================================================
@@ -118,7 +118,7 @@ void CALLBACK SalTimerProc( HWND, UINT, UINT_PTR nId, DWORD )
// Test for MouseLeave
SalTestMouseLeave();
-
+
bool bRecursive = pSalData->mbInTimerProc && (nId != SALTIMERPROC_RECURSIVE);
if ( pSVData->mpSalTimer && ! bRecursive )
{
@@ -133,7 +133,7 @@ void CALLBACK SalTimerProc( HWND, UINT, UINT_PTR nId, DWORD )
pSVData->mpSalTimer->CallCallback();
pSalData->mbInTimerProc = FALSE;
ImplSalYieldMutexRelease();
-
+
// Run the timer in the correct time, if we start this
// with a small timeout, because we don't get the mutex
if ( pSalData->mnTimerId &&
diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index b201bf7c19b9..d05036be29ce 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -54,9 +54,9 @@ inline void ImplSetPixel4( const HPBYTE pScanline, long nX, const BYTE cIndex )
// ----------------
WinSalBitmap::WinSalBitmap() :
- mhDIB ( 0 ),
- mhDDB ( 0 ),
- mnBitCount ( 0 )
+ mhDIB ( 0 ),
+ mhDDB ( 0 ),
+ mnBitCount ( 0 )
{
}
@@ -92,7 +92,7 @@ bool WinSalBitmap::Create( HANDLE hBitmap, bool bDIB, bool bCopyHandle )
}
else if( mhDDB )
{
- BITMAP aDDBInfo;
+ BITMAP aDDBInfo;
if( WIN_GetObject( mhDDB, sizeof( BITMAP ), &aDDBInfo ) )
{
@@ -176,12 +176,12 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, SalGraphics* pSGraphics )
if( rSalBmp.mhDIB )
{
- PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( rSalBmp.mhDIB );
- PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
- HDC hDC = pGraphics->mhDC;
- HBITMAP hNewDDB;
- BITMAP aDDBInfo;
- PBYTE pBits = (PBYTE) pBI + *(DWORD*) pBI +
+ PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( rSalBmp.mhDIB );
+ PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
+ HDC hDC = pGraphics->mhDC;
+ HBITMAP hNewDDB;
+ BITMAP aDDBInfo;
+ PBYTE pBits = (PBYTE) pBI + *(DWORD*) pBI +
ImplGetDIBColorCount( rSalBmp.mhDIB ) * sizeof( RGBQUAD );
if( pBIH->biBitCount == 1 )
@@ -226,12 +226,12 @@ bool WinSalBitmap::Create( const SalBitmap& rSSalBmp, USHORT nNewBitCount )
if( mhDIB )
{
PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( mhDIB );
- const int nLines = (int) rSalBmp.maSize.Height();
- HDC hDC = GetDC( 0 );
- PBYTE pBits = (PBYTE) pBI + *(DWORD*) pBI +
+ const int nLines = (int) rSalBmp.maSize.Height();
+ HDC hDC = GetDC( 0 );
+ PBYTE pBits = (PBYTE) pBI + *(DWORD*) pBI +
ImplGetDIBColorCount( mhDIB ) * sizeof( RGBQUAD );
- SalData* pSalData = GetSalData();
- HPALETTE hOldPal = 0;
+ SalData* pSalData = GetSalData();
+ HPALETTE hOldPal = 0;
if ( pSalData->mhDitherPal )
{
@@ -291,8 +291,8 @@ USHORT WinSalBitmap::ImplGetDIBColorCount( HGLOBAL hDIB )
if( hDIB )
{
- PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( hDIB );
- PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
+ PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( hDIB );
+ PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
if ( pBIH->biSize != sizeof( BITMAPCOREHEADER ) )
{
@@ -323,15 +323,15 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, USHORT nBits, const Bitm
if ( rSize.Width() && rSize.Height() )
{
- const ULONG nImageSize = AlignedWidth4Bytes( nBits * rSize.Width() ) * rSize.Height();
- const USHORT nColors = ( nBits <= 8 ) ? ( 1 << nBits ) : 0;
+ const ULONG nImageSize = AlignedWidth4Bytes( nBits * rSize.Width() ) * rSize.Height();
+ const USHORT nColors = ( nBits <= 8 ) ? ( 1 << nBits ) : 0;
hDIB = GlobalAlloc( GHND, sizeof( BITMAPINFOHEADER ) + nColors * sizeof( RGBQUAD ) + nImageSize );
if( hDIB )
{
- PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( hDIB );
- PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
+ PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( hDIB );
+ PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
pBIH->biSize = sizeof( BITMAPINFOHEADER );
pBIH->biWidth = rSize.Width();
@@ -364,7 +364,7 @@ HGLOBAL WinSalBitmap::ImplCreateDIB( const Size& rSize, USHORT nBits, const Bitm
HANDLE WinSalBitmap::ImplCopyDIBOrDDB( HANDLE hHdl, bool bDIB )
{
- HANDLE hCopy = 0;
+ HANDLE hCopy = 0;
if ( bDIB && hHdl )
{
@@ -388,9 +388,9 @@ HANDLE WinSalBitmap::ImplCopyDIBOrDDB( HANDLE hHdl, bool bDIB )
// Destination-Bitmap erzeugen
if ( (hCopy = CreateBitmapIndirect( &aBmp )) != 0 )
{
- HDC hBmpDC = CreateCompatibleDC( 0 );
+ HDC hBmpDC = CreateCompatibleDC( 0 );
HBITMAP hBmpOld = (HBITMAP) SelectObject( hBmpDC, hHdl );
- HDC hCopyDC = CreateCompatibleDC( hBmpDC );
+ HDC hCopyDC = CreateCompatibleDC( hBmpDC );
HBITMAP hCopyOld = (HBITMAP) SelectObject( hCopyDC, hCopy );
BitBlt( hCopyDC, 0, 0, aBmp.bmWidth, aBmp.bmHeight, hBmpDC, 0, 0, SRCCOPY );
@@ -414,22 +414,22 @@ BitmapBuffer* WinSalBitmap::AcquireBuffer( bool /*bReadOnly*/ )
if( mhDIB )
{
- PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( mhDIB );
- PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
+ PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( mhDIB );
+ PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
if( ( pBIH->biCompression == BI_RLE4 ) || ( pBIH->biCompression == BI_RLE8 ) )
{
- Size aSizePix( pBIH->biWidth, pBIH->biHeight );
+ Size aSizePix( pBIH->biWidth, pBIH->biHeight );
HGLOBAL hNewDIB = ImplCreateDIB( aSizePix, pBIH->biBitCount, BitmapPalette() );
if( hNewDIB )
{
- PBITMAPINFO pNewBI = (PBITMAPINFO) GlobalLock( hNewDIB );
- PBITMAPINFOHEADER pNewBIH = (PBITMAPINFOHEADER) pNewBI;
- const USHORT nColorCount = ImplGetDIBColorCount( hNewDIB );
- const ULONG nOffset = *(DWORD*) pBI + nColorCount * sizeof( RGBQUAD );
- BYTE* pOldBits = (PBYTE) pBI + nOffset;
- BYTE* pNewBits = (PBYTE) pNewBI + nOffset;
+ PBITMAPINFO pNewBI = (PBITMAPINFO) GlobalLock( hNewDIB );
+ PBITMAPINFOHEADER pNewBIH = (PBITMAPINFOHEADER) pNewBI;
+ const USHORT nColorCount = ImplGetDIBColorCount( hNewDIB );
+ const ULONG nOffset = *(DWORD*) pBI + nColorCount * sizeof( RGBQUAD );
+ BYTE* pOldBits = (PBYTE) pBI + nOffset;
+ BYTE* pNewBits = (PBYTE) pNewBI + nOffset;
memcpy( pNewBI, pBI, nOffset );
pNewBIH->biCompression = 0;
@@ -515,8 +515,8 @@ void WinSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
{
if( !bReadOnly && !!pBuffer->maPalette )
{
- PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( mhDIB );
- const USHORT nCount = pBuffer->maPalette.GetEntryCount();
+ PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( mhDIB );
+ const USHORT nCount = pBuffer->maPalette.GetEntryCount();
memcpy( pBI->bmiColors, pBuffer->maPalette.ImplGetColorBuffer(), nCount * sizeof( RGBQUAD ) );
GlobalUnlock( mhDIB );
@@ -534,17 +534,17 @@ void WinSalBitmap::ReleaseBuffer( BitmapBuffer* pBuffer, bool bReadOnly )
void WinSalBitmap::ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf,
const Size& rSizePixel, bool bRLE4 )
{
- HPBYTE pRLE = (HPBYTE) pSrcBuf;
- HPBYTE pDIB = (HPBYTE) pDstBuf;
- HPBYTE pRow = (HPBYTE) pDstBuf;
- ULONG nWidthAl = AlignedWidth4Bytes( rSizePixel.Width() * ( bRLE4 ? 4UL : 8UL ) );
- HPBYTE pLast = pDIB + rSizePixel.Height() * nWidthAl - 1;
- ULONG nCountByte;
- ULONG nRunByte;
- ULONG nX = 0;
- ULONG i;
- BYTE cTmp;
- bool bEndDecoding = FALSE;
+ HPBYTE pRLE = (HPBYTE) pSrcBuf;
+ HPBYTE pDIB = (HPBYTE) pDstBuf;
+ HPBYTE pRow = (HPBYTE) pDstBuf;
+ ULONG nWidthAl = AlignedWidth4Bytes( rSizePixel.Width() * ( bRLE4 ? 4UL : 8UL ) );
+ HPBYTE pLast = pDIB + rSizePixel.Height() * nWidthAl - 1;
+ ULONG nCountByte;
+ ULONG nRunByte;
+ ULONG nX = 0;
+ ULONG i;
+ BYTE cTmp;
+ bool bEndDecoding = FALSE;
if( pRLE && pDIB )
{
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index 70b35c4e4f08..89d54b9580f4 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,19 +49,19 @@ using namespace rtl;
// =======================================================================
-#define DITHER_PAL_DELTA 51
-#define DITHER_PAL_STEPS 6
-#define DITHER_PAL_COUNT (DITHER_PAL_STEPS*DITHER_PAL_STEPS*DITHER_PAL_STEPS)
-#define DITHER_MAX_SYSCOLOR 16
-#define DITHER_EXTRA_COLORS 1
-#define DMAP( _def_nVal, _def_nThres ) ((pDitherDiff[_def_nVal]>(_def_nThres))?pDitherHigh[_def_nVal]:pDitherLow[_def_nVal])
+#define DITHER_PAL_DELTA 51
+#define DITHER_PAL_STEPS 6
+#define DITHER_PAL_COUNT (DITHER_PAL_STEPS*DITHER_PAL_STEPS*DITHER_PAL_STEPS)
+#define DITHER_MAX_SYSCOLOR 16
+#define DITHER_EXTRA_COLORS 1
+#define DMAP( _def_nVal, _def_nThres ) ((pDitherDiff[_def_nVal]>(_def_nThres))?pDitherHigh[_def_nVal]:pDitherLow[_def_nVal])
// =======================================================================
struct SysColorEntry
{
- DWORD nRGB;
- SysColorEntry* pNext;
+ DWORD nRGB;
+ SysColorEntry* pNext;
};
// =======================================================================
@@ -81,21 +81,21 @@ static PALETTEENTRY aImplExtraColor1 =
static PALETTEENTRY aImplSalSysPalEntryAry[ DITHER_MAX_SYSCOLOR ] =
{
-{ 0, 0, 0, 0 },
-{ 0, 0, 0x80, 0 },
-{ 0, 0x80, 0, 0 },
-{ 0, 0x80, 0x80, 0 },
-{ 0x80, 0, 0, 0 },
+{ 0, 0, 0, 0 },
+{ 0, 0, 0x80, 0 },
+{ 0, 0x80, 0, 0 },
+{ 0, 0x80, 0x80, 0 },
+{ 0x80, 0, 0, 0 },
{ 0x80, 0, 0x80, 0 },
-{ 0x80, 0x80, 0, 0 },
+{ 0x80, 0x80, 0, 0 },
{ 0x80, 0x80, 0x80, 0 },
{ 0xC0, 0xC0, 0xC0, 0 },
-{ 0, 0, 0xFF, 0 },
-{ 0, 0xFF, 0, 0 },
-{ 0, 0xFF, 0xFF, 0 },
-{ 0xFF, 0, 0, 0 },
+{ 0, 0, 0xFF, 0 },
+{ 0, 0xFF, 0, 0 },
+{ 0, 0xFF, 0xFF, 0 },
+{ 0xFF, 0, 0, 0 },
{ 0xFF, 0, 0xFF, 0 },
-{ 0xFF, 0xFF, 0, 0 },
+{ 0xFF, 0xFF, 0, 0 },
{ 0xFF, 0xFF, 0xFF, 0 }
};
@@ -132,12 +132,12 @@ static BYTE aOrdDither16Bit[8][8] =
// Pens muessen wir mit 1 Pixel-Breite erzeugen, da ansonsten die S3-Karte
// viele Paintprobleme hat, wenn Polygone/PolyLines gezeichnet werden und
// eine komplexe ClipRegion gesetzt ist
-#define GSL_PEN_WIDTH 1
+#define GSL_PEN_WIDTH 1
// =======================================================================
-#define SAL_POLYPOLYCOUNT_STACKBUF 8
-#define SAL_POLYPOLYPOINTS_STACKBUF 64
+#define SAL_POLYPOLYCOUNT_STACKBUF 8
+#define SAL_POLYPOLYPOINTS_STACKBUF 64
// =======================================================================
@@ -146,24 +146,24 @@ void ImplInitSalGDI()
SalData* pSalData = GetSalData();
// init stock brushes
- pSalData->maStockPenColorAry[0] = PALETTERGB( 0, 0, 0 );
- pSalData->maStockPenColorAry[1] = PALETTERGB( 0xFF, 0xFF, 0xFF );
- pSalData->maStockPenColorAry[2] = PALETTERGB( 0xC0, 0xC0, 0xC0 );
- pSalData->maStockPenColorAry[3] = PALETTERGB( 0x80, 0x80, 0x80 );
- pSalData->mhStockPenAry[0] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[0] );
- pSalData->mhStockPenAry[1] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[1] );
- pSalData->mhStockPenAry[2] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[2] );
- pSalData->mhStockPenAry[3] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[3] );
+ pSalData->maStockPenColorAry[0] = PALETTERGB( 0, 0, 0 );
+ pSalData->maStockPenColorAry[1] = PALETTERGB( 0xFF, 0xFF, 0xFF );
+ pSalData->maStockPenColorAry[2] = PALETTERGB( 0xC0, 0xC0, 0xC0 );
+ pSalData->maStockPenColorAry[3] = PALETTERGB( 0x80, 0x80, 0x80 );
+ pSalData->mhStockPenAry[0] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[0] );
+ pSalData->mhStockPenAry[1] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[1] );
+ pSalData->mhStockPenAry[2] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[2] );
+ pSalData->mhStockPenAry[3] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[3] );
pSalData->mnStockPenCount = 4;
- pSalData->maStockBrushColorAry[0] = PALETTERGB( 0, 0, 0 );
- pSalData->maStockBrushColorAry[1] = PALETTERGB( 0xFF, 0xFF, 0xFF );
- pSalData->maStockBrushColorAry[2] = PALETTERGB( 0xC0, 0xC0, 0xC0 );
- pSalData->maStockBrushColorAry[3] = PALETTERGB( 0x80, 0x80, 0x80 );
- pSalData->mhStockBrushAry[0] = CreateSolidBrush( pSalData->maStockBrushColorAry[0] );
- pSalData->mhStockBrushAry[1] = CreateSolidBrush( pSalData->maStockBrushColorAry[1] );
- pSalData->mhStockBrushAry[2] = CreateSolidBrush( pSalData->maStockBrushColorAry[2] );
- pSalData->mhStockBrushAry[3] = CreateSolidBrush( pSalData->maStockBrushColorAry[3] );
+ pSalData->maStockBrushColorAry[0] = PALETTERGB( 0, 0, 0 );
+ pSalData->maStockBrushColorAry[1] = PALETTERGB( 0xFF, 0xFF, 0xFF );
+ pSalData->maStockBrushColorAry[2] = PALETTERGB( 0xC0, 0xC0, 0xC0 );
+ pSalData->maStockBrushColorAry[3] = PALETTERGB( 0x80, 0x80, 0x80 );
+ pSalData->mhStockBrushAry[0] = CreateSolidBrush( pSalData->maStockBrushColorAry[0] );
+ pSalData->mhStockBrushAry[1] = CreateSolidBrush( pSalData->maStockBrushColorAry[1] );
+ pSalData->mhStockBrushAry[2] = CreateSolidBrush( pSalData->maStockBrushColorAry[2] );
+ pSalData->mhStockBrushAry[3] = CreateSolidBrush( pSalData->maStockBrushColorAry[3] );
pSalData->mnStockBrushCount = 4;
// initialize cache of device contexts
@@ -183,12 +183,12 @@ void ImplInitSalGDI()
if ( (nBitCount > 8) && (nBitCount < 24) )
{
// test, if we have to dither
- HDC hMemDC = ::CreateCompatibleDC( hDC );
- HBITMAP hMemBmp = ::CreateCompatibleBitmap( hDC, 8, 8 );
- HBITMAP hBmpOld = (HBITMAP) ::SelectObject( hMemDC, hMemBmp );
- HBRUSH hMemBrush = ::CreateSolidBrush( PALETTERGB( 175, 171, 169 ) );
- HBRUSH hBrushOld = (HBRUSH) ::SelectObject( hMemDC, hMemBrush );
- BOOL bDither16 = TRUE;
+ HDC hMemDC = ::CreateCompatibleDC( hDC );
+ HBITMAP hMemBmp = ::CreateCompatibleBitmap( hDC, 8, 8 );
+ HBITMAP hBmpOld = (HBITMAP) ::SelectObject( hMemDC, hMemBmp );
+ HBRUSH hMemBrush = ::CreateSolidBrush( PALETTERGB( 175, 171, 169 ) );
+ HBRUSH hBrushOld = (HBRUSH) ::SelectObject( hMemDC, hMemBrush );
+ BOOL bDither16 = TRUE;
::PatBlt( hMemDC, 0, 0, 8, 8, PATCOPY );
const COLORREF aCol( ::GetPixel( hMemDC, 0, 0 ) );
@@ -235,12 +235,12 @@ void ImplInitSalGDI()
}
else if ( (nRasterCaps & RC_PALETTE) && (nBitCount == 8) )
{
- BYTE nRed, nGreen, nBlue;
- BYTE nR, nG, nB;
- PALETTEENTRY* pPalEntry;
- LOGPALETTE* pLogPal;
- const USHORT nDitherPalCount = DITHER_PAL_COUNT;
- ULONG nTotalCount = DITHER_MAX_SYSCOLOR + nDitherPalCount + DITHER_EXTRA_COLORS;
+ BYTE nRed, nGreen, nBlue;
+ BYTE nR, nG, nB;
+ PALETTEENTRY* pPalEntry;
+ LOGPALETTE* pLogPal;
+ const USHORT nDitherPalCount = DITHER_PAL_COUNT;
+ ULONG nTotalCount = DITHER_MAX_SYSCOLOR + nDitherPalCount + DITHER_EXTRA_COLORS;
// create logical palette
pLogPal = (LOGPALETTE*) new char[ sizeof( LOGPALETTE ) + ( nTotalCount * sizeof( PALETTEENTRY ) ) ];
@@ -289,8 +289,8 @@ void ImplInitSalGDI()
pSalData->mpDitherDIBData = pSalData->mpDitherDIB + sizeof( BITMAPINFOHEADER ) + ( 256 * sizeof( short ) );
memset( pSalData->mpDitherDIB, 0, sizeof( BITMAPINFOHEADER ) );
- BITMAPINFOHEADER* pBIH = (BITMAPINFOHEADER*) pSalData->mpDitherDIB;
- short* pColors = (short*) ( pSalData->mpDitherDIB + sizeof( BITMAPINFOHEADER ) );
+ BITMAPINFOHEADER* pBIH = (BITMAPINFOHEADER*) pSalData->mpDitherDIB;
+ short* pColors = (short*) ( pSalData->mpDitherDIB + sizeof( BITMAPINFOHEADER ) );
pBIH->biSize = sizeof( BITMAPINFOHEADER );
pBIH->biWidth = 8;
@@ -322,10 +322,10 @@ void ImplInitSalGDI()
void ImplFreeSalGDI()
{
- SalData* pSalData = GetSalData();
+ SalData* pSalData = GetSalData();
// destroy stock objects
- int i;
+ int i;
for ( i = 0; i < pSalData->mnStockPenCount; i++ )
DeletePen( pSalData->mhStockPenAry[i] );
for ( i = 0; i < pSalData->mnStockBrushCount; i++ )
@@ -424,8 +424,8 @@ static int ImplIsPaletteEntry( BYTE nRed, BYTE nGreen, BYTE nBlue )
int ImplIsSysColorEntry( SalColor nSalColor )
{
- SysColorEntry* pEntry = pFirstSysColor;
- const DWORD nTestRGB = (DWORD)RGB( SALCOLOR_RED( nSalColor ),
+ SysColorEntry* pEntry = pFirstSysColor;
+ const DWORD nTestRGB = (DWORD)RGB( SALCOLOR_RED( nSalColor ),
SALCOLOR_GREEN( nSalColor ),
SALCOLOR_BLUE( nSalColor ) );
@@ -552,8 +552,8 @@ void ImplSalDeInitGraphics( WinSalGraphics* pData )
HDC ImplGetCachedDC( ULONG nID, HBITMAP hBmp )
{
- SalData* pSalData = GetSalData();
- HDCCache* pC = &pSalData->mpHDCCache[ nID ];
+ SalData* pSalData = GetSalData();
+ HDCCache* pC = &pSalData->mpHDCCache[ nID ];
if( !pC->mhDC )
{
@@ -586,8 +586,8 @@ HDC ImplGetCachedDC( ULONG nID, HBITMAP hBmp )
void ImplReleaseCachedDC( ULONG nID )
{
- SalData* pSalData = GetSalData();
- HDCCache* pC = &pSalData->mpHDCCache[ nID ];
+ SalData* pSalData = GetSalData();
+ HDCCache* pC = &pSalData->mpHDCCache[ nID ];
if ( pC->mhActBmp )
SelectObject( pC->mhDC, pC->mhSelBmp );
@@ -619,13 +619,13 @@ void ImplClearHDCCache( SalData* pData )
// #100127# Fill point and flag memory from array of points which
// might also contain bezier control points for the PolyDraw() GDI method
// Make sure pWinPointAry and pWinFlagAry are big enough
-void ImplPreparePolyDraw( bool bCloseFigures,
- ULONG nPoly,
- const ULONG* pPoints,
- const SalPoint* const* pPtAry,
- const BYTE* const* pFlgAry,
- POINT* pWinPointAry,
- BYTE* pWinFlagAry )
+void ImplPreparePolyDraw( bool bCloseFigures,
+ ULONG nPoly,
+ const ULONG* pPoints,
+ const SalPoint* const* pPtAry,
+ const BYTE* const* pFlgAry,
+ POINT* pWinPointAry,
+ BYTE* pWinFlagAry )
{
ULONG nCurrPoly;
for( nCurrPoly=0; nCurrPoly<nPoly; ++nCurrPoly )
@@ -730,24 +730,24 @@ WinSalGraphics::WinSalGraphics()
mfFontScale = 1.0;
- mhDC = 0;
- mhPen = 0;
- mhBrush = 0;
- mhRegion = 0;
- mhDefPen = 0;
- mhDefBrush = 0;
- mhDefFont = 0;
- mhDefPal = 0;
- mpStdClipRgnData = NULL;
- mpLogFont = NULL;
- mpFontCharSets = NULL;
- mpFontAttrCache = NULL;
- mnFontCharSetCount = 0;
- mpFontKernPairs = NULL;
- mnFontKernPairCount = 0;
- mbFontKernInit = FALSE;
- mbXORMode = FALSE;
- mnPenWidth = GSL_PEN_WIDTH;
+ mhDC = 0;
+ mhPen = 0;
+ mhBrush = 0;
+ mhRegion = 0;
+ mhDefPen = 0;
+ mhDefBrush = 0;
+ mhDefFont = 0;
+ mhDefPal = 0;
+ mpStdClipRgnData = NULL;
+ mpLogFont = NULL;
+ mpFontCharSets = NULL;
+ mpFontAttrCache = NULL;
+ mnFontCharSetCount = 0;
+ mpFontKernPairs = NULL;
+ mnFontKernPairCount = 0;
+ mbFontKernInit = FALSE;
+ mbXORMode = FALSE;
+ mnPenWidth = GSL_PEN_WIDTH;
}
// -----------------------------------------------------------------------
@@ -865,13 +865,13 @@ void WinSalGraphics::BeginSetClipRegion( ULONG nRectCount )
}
else
mpClipRgnData = (RGNDATA*)new BYTE[sizeof(RGNDATA)-1+nRectBufSize];
- mpClipRgnData->rdh.dwSize = sizeof( RGNDATAHEADER );
- mpClipRgnData->rdh.iType = RDH_RECTANGLES;
- mpClipRgnData->rdh.nCount = nRectCount;
- mpClipRgnData->rdh.nRgnSize = nRectBufSize;
+ mpClipRgnData->rdh.dwSize = sizeof( RGNDATAHEADER );
+ mpClipRgnData->rdh.iType = RDH_RECTANGLES;
+ mpClipRgnData->rdh.nCount = nRectCount;
+ mpClipRgnData->rdh.nRgnSize = nRectBufSize;
SetRectEmpty( &(mpClipRgnData->rdh.rcBound) );
- mpNextClipRect = (RECT*)(&(mpClipRgnData->Buffer));
- mbFirstClipRect = TRUE;
+ mpNextClipRect = (RECT*)(&(mpClipRgnData->Buffer));
+ mbFirstClipRect = TRUE;
}
@@ -881,17 +881,17 @@ BOOL WinSalGraphics::unionClipRegion( long nX, long nY, long nWidth, long nHeigh
{
if ( nWidth && nHeight )
{
- RECT* pRect = mpNextClipRect;
- RECT* pBoundRect = &(mpClipRgnData->rdh.rcBound);
- long nRight = nX + nWidth;
- long nBottom = nY + nHeight;
+ RECT* pRect = mpNextClipRect;
+ RECT* pBoundRect = &(mpClipRgnData->rdh.rcBound);
+ long nRight = nX + nWidth;
+ long nBottom = nY + nHeight;
if ( mbFirstClipRect )
{
- pBoundRect->left = nX;
- pBoundRect->top = nY;
- pBoundRect->right = nRight;
- pBoundRect->bottom = nBottom;
+ pBoundRect->left = nX;
+ pBoundRect->top = nY;
+ pBoundRect->right = nRight;
+ pBoundRect->bottom = nBottom;
mbFirstClipRect = FALSE;
}
else
@@ -909,10 +909,10 @@ BOOL WinSalGraphics::unionClipRegion( long nX, long nY, long nWidth, long nHeigh
pBoundRect->bottom = (int)nBottom;
}
- pRect->left = (int)nX;
- pRect->top = (int)nY;
- pRect->right = (int)nRight;
- pRect->bottom = (int)nBottom;
+ pRect->left = (int)nX;
+ pRect->top = (int)nY;
+ pRect->right = (int)nRight;
+ pRect->bottom = (int)nBottom;
mpNextClipRect++;
}
else
@@ -993,9 +993,9 @@ void WinSalGraphics::SetLineColor()
mhDefPen = hOldPen;
// set new data
- mhPen = hNewPen;
- mbPen = FALSE;
- mbStockPen = TRUE;
+ mhPen = hNewPen;
+ mbPen = FALSE;
+ mbStockPen = TRUE;
}
// -----------------------------------------------------------------------
@@ -1003,11 +1003,11 @@ void WinSalGraphics::SetLineColor()
void WinSalGraphics::SetLineColor( SalColor nSalColor )
{
maLineColor = nSalColor;
- COLORREF nPenColor = PALETTERGB( SALCOLOR_RED( nSalColor ),
+ COLORREF nPenColor = PALETTERGB( SALCOLOR_RED( nSalColor ),
SALCOLOR_GREEN( nSalColor ),
SALCOLOR_BLUE( nSalColor ) );
- HPEN hNewPen = 0;
- BOOL bStockPen = FALSE;
+ HPEN hNewPen = 0;
+ BOOL bStockPen = FALSE;
// search for stock pen (only screen, because printer have problems,
// when we use stock objects)
@@ -1051,10 +1051,10 @@ void WinSalGraphics::SetLineColor( SalColor nSalColor )
mhDefPen = hOldPen;
// set new data
- mnPenColor = nPenColor;
- mhPen = hNewPen;
- mbPen = TRUE;
- mbStockPen = bStockPen;
+ mnPenColor = nPenColor;
+ mhPen = hNewPen;
+ mbPen = TRUE;
+ mbStockPen = bStockPen;
}
// -----------------------------------------------------------------------
@@ -1075,8 +1075,8 @@ void WinSalGraphics::SetFillColor()
mhDefBrush = hOldBrush;
// set new data
- mhBrush = hNewBrush;
- mbBrush = FALSE;
+ mhBrush = hNewBrush;
+ mbBrush = FALSE;
mbStockBrush = TRUE;
}
@@ -1085,13 +1085,13 @@ void WinSalGraphics::SetFillColor()
void WinSalGraphics::SetFillColor( SalColor nSalColor )
{
maFillColor = nSalColor;
- SalData* pSalData = GetSalData();
- BYTE nRed = SALCOLOR_RED( nSalColor );
- BYTE nGreen = SALCOLOR_GREEN( nSalColor );
- BYTE nBlue = SALCOLOR_BLUE( nSalColor );
- COLORREF nBrushColor = PALETTERGB( nRed, nGreen, nBlue );
- HBRUSH hNewBrush = 0;
- BOOL bStockBrush = FALSE;
+ SalData* pSalData = GetSalData();
+ BYTE nRed = SALCOLOR_RED( nSalColor );
+ BYTE nGreen = SALCOLOR_GREEN( nSalColor );
+ BYTE nBlue = SALCOLOR_BLUE( nSalColor );
+ COLORREF nBrushColor = PALETTERGB( nRed, nGreen, nBlue );
+ HBRUSH hNewBrush = 0;
+ BOOL bStockBrush = FALSE;
// search for stock brush (only screen, because printer have problems,
// when we use stock objects)
@@ -1180,8 +1180,8 @@ void WinSalGraphics::SetFillColor( SalColor nSalColor )
// set new data
mnBrushColor = nBrushColor;
- mhBrush = hNewBrush;
- mbBrush = TRUE;
+ mhBrush = hNewBrush;
+ mbBrush = TRUE;
mbStockBrush = bStockBrush;
}
@@ -1213,8 +1213,8 @@ void WinSalGraphics::drawPixel( long nX, long nY )
{
if ( mbXORMode )
{
- HBRUSH hBrush = CreateSolidBrush( mnPenColor );
- HBRUSH hOldBrush = SelectBrush( mhDC, hBrush );
+ HBRUSH hBrush = CreateSolidBrush( mnPenColor );
+ HBRUSH hOldBrush = SelectBrush( mhDC, hBrush );
PatBlt( mhDC, (int)nX, (int)nY, (int)1, (int)1, PATINVERT );
SelectBrush( mhDC, hOldBrush );
DeleteBrush( hBrush );
@@ -1238,8 +1238,8 @@ void WinSalGraphics::drawPixel( long nX, long nY, SalColor nSalColor )
if ( mbXORMode )
{
- HBRUSH hBrush = CreateSolidBrush( nCol );
- HBRUSH hOldBrush = SelectBrush( mhDC, hBrush );
+ HBRUSH hBrush = CreateSolidBrush( nCol );
+ HBRUSH hOldBrush = SelectBrush( mhDC, hBrush );
PatBlt( mhDC, (int)nX, (int)nY, (int)1, (int)1, PATINVERT );
SelectBrush( mhDC, hOldBrush );
DeleteBrush( hBrush );
@@ -1279,8 +1279,8 @@ void WinSalGraphics::drawLine( long nX1, long nY1, long nX2, long nY2 )
{
if ( mbXORMode )
{
- HBRUSH hBrush = CreateSolidBrush( mnPenColor );
- HBRUSH hOldBrush = SelectBrush( mhDC, hBrush );
+ HBRUSH hBrush = CreateSolidBrush( mnPenColor );
+ HBRUSH hOldBrush = SelectBrush( mhDC, hBrush );
PatBlt( mhDC, (int)nX2, (int)nY2, (int)1, (int)1, PATINVERT );
SelectBrush( mhDC, hOldBrush );
DeleteBrush( hBrush );
@@ -1304,9 +1304,9 @@ void WinSalGraphics::drawRect( long nX, long nY, long nWidth, long nHeight )
else
{
RECT aWinRect;
- aWinRect.left = nX;
- aWinRect.top = nY;
- aWinRect.right = nX+nWidth;
+ aWinRect.left = nX;
+ aWinRect.top = nY;
+ aWinRect.right = nX+nWidth;
aWinRect.bottom = nY+nHeight;
::FillRect( mhDC, &aWinRect, mhBrush );
}
@@ -1350,11 +1350,11 @@ void WinSalGraphics::drawPolygon( ULONG nPoints, const SalPoint* pPtAry )
void WinSalGraphics::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoints,
PCONSTSALPOINT* pPtAry )
{
- UINT aWinPointAry[SAL_POLYPOLYCOUNT_STACKBUF];
- UINT* pWinPointAry;
- UINT nPolyPolyPoints = 0;
- UINT nPoints;
- UINT i;
+ UINT aWinPointAry[SAL_POLYPOLYCOUNT_STACKBUF];
+ UINT* pWinPointAry;
+ UINT nPolyPolyPoints = 0;
+ UINT nPoints;
+ UINT i;
if ( nPoly <= SAL_POLYPOLYCOUNT_STACKBUF )
pWinPointAry = aWinPointAry;
@@ -1378,7 +1378,7 @@ void WinSalGraphics::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoint
DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ),
"WinSalGraphics::DrawPolyPolygon(): POINT != SalPoint" );
const SalPoint* pPolyAry;
- UINT n = 0;
+ UINT n = 0;
for ( i = 0; i < (UINT)nPoly; i++ )
{
nPoints = pWinPointAry[i];
@@ -1416,7 +1416,7 @@ void WinSalGraphics::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* pPoint
// -----------------------------------------------------------------------
-#define SAL_POLY_STACKBUF 32
+#define SAL_POLY_STACKBUF 32
// -----------------------------------------------------------------------
@@ -1444,10 +1444,10 @@ sal_Bool WinSalGraphics::drawPolygonBezier( ULONG nPoints, const SalPoint* pPtAr
DBG_ASSERT( sizeof( POINT ) == sizeof( SalPoint ),
"WinSalGraphics::DrawPolygonBezier(): POINT != SalPoint" );
- POINT aStackAry1[SAL_POLY_STACKBUF];
- BYTE aStackAry2[SAL_POLY_STACKBUF];
- POINT* pWinPointAry;
- BYTE* pWinFlagAry;
+ POINT aStackAry1[SAL_POLY_STACKBUF];
+ BYTE aStackAry2[SAL_POLY_STACKBUF];
+ POINT* pWinPointAry;
+ BYTE* pWinFlagAry;
if( nPoints > SAL_POLY_STACKBUF )
{
pWinPointAry = new POINT[ nPoints ];
@@ -1501,10 +1501,10 @@ sal_Bool WinSalGraphics::drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt
for( nCurrPoly=0, nTotalPoints=0; nCurrPoly<nPoly; ++nCurrPoly )
nTotalPoints += *pCurrPoints++;
- POINT aStackAry1[SAL_POLY_STACKBUF];
- BYTE aStackAry2[SAL_POLY_STACKBUF];
- POINT* pWinPointAry;
- BYTE* pWinFlagAry;
+ POINT aStackAry1[SAL_POLY_STACKBUF];
+ BYTE aStackAry2[SAL_POLY_STACKBUF];
+ POINT* pWinPointAry;
+ BYTE* pWinFlagAry;
if( nTotalPoints > SAL_POLY_STACKBUF )
{
pWinPointAry = new POINT[ nTotalPoints ];
@@ -1545,8 +1545,8 @@ sal_Bool WinSalGraphics::drawPolyPolygonBezier( sal_uInt32 nPoly, const sal_uInt
// -----------------------------------------------------------------------
-#define POSTSCRIPT_BUFSIZE 0x4000 // MAXIMUM BUFSIZE EQ 0xFFFF
-#define POSTSCRIPT_BOUNDINGSEARCH 0x1000 // we only try to get the BoundingBox
+#define POSTSCRIPT_BUFSIZE 0x4000 // MAXIMUM BUFSIZE EQ 0xFFFF
+#define POSTSCRIPT_BOUNDINGSEARCH 0x1000 // we only try to get the BoundingBox
// in the first 4096 bytes
static BYTE* ImplSearchEntry( BYTE* pSource, BYTE* pDest, ULONG nComp, ULONG nSize )
@@ -1568,7 +1568,7 @@ static BYTE* ImplSearchEntry( BYTE* pSource, BYTE* pDest, ULONG nComp, ULONG nSi
static BOOL ImplGetBoundingBox( double* nNumb, BYTE* pSource, ULONG nSize )
{
- BOOL bRetValue = FALSE;
+ BOOL bRetValue = FALSE;
BYTE* pDest = ImplSearchEntry( pSource, (BYTE*)"%%BoundingBox:", nSize, 14 );
if ( pDest )
{
@@ -1577,15 +1577,15 @@ static BOOL ImplGetBoundingBox( double* nNumb, BYTE* pSource, ULONG nSize )
int nSizeLeft = nSize - ( pDest - pSource );
if ( nSizeLeft > 100 )
- nSizeLeft = 100; // only 100 bytes following the bounding box will be checked
+ nSizeLeft = 100; // only 100 bytes following the bounding box will be checked
int i;
for ( i = 0; ( i < 4 ) && nSizeLeft; i++ )
{
- int nDivision = 1;
- BOOL bDivision = FALSE;
- BOOL bNegative = FALSE;
- BOOL bValid = TRUE;
+ int nDivision = 1;
+ BOOL bDivision = FALSE;
+ BOOL bNegative = FALSE;
+ BOOL bValid = TRUE;
while ( ( --nSizeLeft ) && ( *pDest == ' ' ) || ( *pDest == 0x9 ) ) pDest++;
BYTE nByte = *pDest;
@@ -1604,7 +1604,7 @@ static BOOL ImplGetBoundingBox( double* nNumb, BYTE* pSource, ULONG nSize )
break;
default :
if ( ( nByte < '0' ) || ( nByte > '9' ) )
- nSizeLeft = 1; // error parsing the bounding box values
+ nSizeLeft = 1; // error parsing the bounding box values
else if ( bValid )
{
if ( bDivision )
@@ -1638,7 +1638,7 @@ BOOL WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
if ( Escape( mhDC, QUERYESCSUPPORT, sizeof( int ), ( LPSTR )&nEscape, 0 ) )
{
- double nBoundingBox[4];
+ double nBoundingBox[4];
if ( ImplGetBoundingBox( nBoundingBox, (BYTE*)pPtr, nSize ) )
{
@@ -1728,8 +1728,8 @@ BOOL WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
// #107797# Write out EPS transformation code
// ----------------------------------------------------------------------------------
- double dM11 = nWidth / ( nBoundingBox[2] - nBoundingBox[0] );
- double dM22 = nHeight / (nBoundingBox[1] - nBoundingBox[3] );
+ double dM11 = nWidth / ( nBoundingBox[2] - nBoundingBox[0] );
+ double dM22 = nHeight / (nBoundingBox[1] - nBoundingBox[3] );
// reserve a USHORT again
aBuf.setLength( 2 );
aBuf.append( "\n\n[" );
@@ -1748,8 +1748,8 @@ BOOL WinSalGraphics::drawEPS( long nX, long nY, long nWidth, long nHeight, void*
// #107797# Write out actual EPS content
// ----------------------------------------------------------------------------------
- ULONG nToDo = nSize;
- ULONG nDoNow;
+ ULONG nToDo = nSize;
+ ULONG nDoNow;
while ( nToDo )
{
nDoNow = nToDo;
diff --git a/vcl/win/source/gdi/salgdi2.cxx b/vcl/win/source/gdi/salgdi2.cxx
index b066258c3dac..e5d438972170 100644
--- a/vcl/win/source/gdi/salgdi2.cxx
+++ b/vcl/win/source/gdi/salgdi2.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,8 +61,8 @@ bool WinSalGraphics::supportsOperation( OutDevSupportType eType ) const
void WinSalGraphics::copyBits( const SalTwoRect* pPosAry, SalGraphics* pSrcGraphics )
{
- HDC hSrcDC;
- DWORD nRop;
+ HDC hSrcDC;
+ DWORD nRop;
if ( pSrcGraphics )
hSrcDC = static_cast<WinSalGraphics*>(pSrcGraphics)->mhDC;
@@ -159,18 +159,18 @@ void WinSalGraphics::copyArea( long nDestX, long nDestY,
// compute and invalidate those parts that were either off-screen or covered by other windows
// while performing the above BitBlt
// those regions then have to be invalidated as they contain useless/wrong data
- RECT aSrcRect;
- RECT aClipRect;
- RECT aTempRect;
- RECT aTempRect2;
- HRGN hTempRgn;
- HWND hWnd;
- int nRgnType;
+ RECT aSrcRect;
+ RECT aClipRect;
+ RECT aTempRect;
+ RECT aTempRect2;
+ HRGN hTempRgn;
+ HWND hWnd;
+ int nRgnType;
// restrict srcRect to this window (calc intersection)
- aSrcRect.left = (int)nSrcX;
- aSrcRect.top = (int)nSrcY;
- aSrcRect.right = aSrcRect.left+(int)nSrcWidth;
+ aSrcRect.left = (int)nSrcX;
+ aSrcRect.top = (int)nSrcY;
+ aSrcRect.right = aSrcRect.left+(int)nSrcWidth;
aSrcRect.bottom = aSrcRect.top+(int)nSrcHeight;
GetClientRect( mhWnd, &aClipRect );
if ( IntersectRect( &aSrcRect, &aSrcRect, &aClipRect ) )
@@ -180,9 +180,9 @@ void WinSalGraphics::copyArea( long nDestX, long nDestY,
aPt.x = 0;
aPt.y = 0;
ClientToScreen( mhWnd, &aPt );
- aSrcRect.left += aPt.x;
- aSrcRect.top += aPt.y;
- aSrcRect.right += aPt.x;
+ aSrcRect.left += aPt.x;
+ aSrcRect.top += aPt.y;
+ aSrcRect.right += aPt.x;
aSrcRect.bottom += aPt.y;
hInvalidateRgn = 0;
@@ -209,8 +209,8 @@ void WinSalGraphics::copyArea( long nDestX, long nDestY,
aPt2.x = 0;
aPt2.y = 0;
ClientToScreen( hWndTopWindow, &aPt2 );
- aTempRect.left += aPt2.x;
- aTempRect.top += aPt2.y;
+ aTempRect.left += aPt2.x;
+ aTempRect.top += aPt2.y;
aTempRect.right += aPt2.x;
aTempRect.bottom += aPt2.y;
IntersectRect( &aTempRect3, &aTempRect3, &aTempRect );
@@ -328,8 +328,8 @@ void WinSalGraphics::copyArea( long nDestX, long nDestY,
// MainThread ist, damit es beim Bearbeiten der
// Paint-Message keinen Deadlock gibt, da der
// SolarMutex durch diesen Thread schon gelockt ist
- SalData* pSalData = GetSalData();
- DWORD nCurThreadId = GetCurrentThreadId();
+ SalData* pSalData = GetSalData();
+ DWORD nCurThreadId = GetCurrentThreadId();
if ( pSalData->mnAppThreadId == nCurThreadId )
UpdateWindow( mhWnd );
}
@@ -347,10 +347,10 @@ void ImplDrawBitmap( HDC hDC,
{
if( hDC )
{
- HGLOBAL hDrawDIB;
- HBITMAP hDrawDDB = rSalBitmap.ImplGethDDB();
- WinSalBitmap* pTmpSalBmp = NULL;
- BOOL bPrintDDB = ( bPrinter && hDrawDDB );
+ HGLOBAL hDrawDIB;
+ HBITMAP hDrawDDB = rSalBitmap.ImplGethDDB();
+ WinSalBitmap* pTmpSalBmp = NULL;
+ BOOL bPrintDDB = ( bPrinter && hDrawDDB );
if( bPrintDDB )
{
@@ -363,11 +363,11 @@ void ImplDrawBitmap( HDC hDC,
if( hDrawDIB )
{
- PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( hDrawDIB );
- PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
- PBYTE pBits = (PBYTE) pBI + *(DWORD*) pBI +
+ PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( hDrawDIB );
+ PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
+ PBYTE pBits = (PBYTE) pBI + *(DWORD*) pBI +
rSalBitmap.ImplGetDIBColorCount( hDrawDIB ) * sizeof( RGBQUAD );
- const int nOldStretchMode = SetStretchBltMode( hDC, STRETCH_DELETESCANS );
+ const int nOldStretchMode = SetStretchBltMode( hDC, STRETCH_DELETESCANS );
StretchDIBits( hDC,
(int)pPosAry->mnDestX, (int)pPosAry->mnDestY,
@@ -381,10 +381,10 @@ void ImplDrawBitmap( HDC hDC,
}
else if( hDrawDDB && !bPrintDDB )
{
- HDC hBmpDC = ImplGetCachedDC( CACHED_HDC_DRAW, hDrawDDB );
- COLORREF nOldBkColor = RGB(0xFF,0xFF,0xFF);
- COLORREF nOldTextColor = RGB(0,0,0);
- BOOL bMono = ( rSalBitmap.GetBitCount() == 1 );
+ HDC hBmpDC = ImplGetCachedDC( CACHED_HDC_DRAW, hDrawDDB );
+ COLORREF nOldBkColor = RGB(0xFF,0xFF,0xFF);
+ COLORREF nOldTextColor = RGB(0,0,0);
+ BOOL bMono = ( rSalBitmap.GetBitCount() == 1 );
if( bMono )
{
@@ -451,19 +451,19 @@ void WinSalGraphics::drawBitmap( const SalTwoRect* pPosAry,
const WinSalBitmap& rSalBitmap = static_cast<const WinSalBitmap&>(rSSalBitmap);
- WinSalBitmap* pMask = new WinSalBitmap;
+ WinSalBitmap* pMask = new WinSalBitmap;
const Point aPoint;
- const Size aSize( rSalBitmap.GetSize() );
- HBITMAP hMaskBitmap = CreateBitmap( (int) aSize.Width(), (int) aSize.Height(), 1, 1, NULL );
- HDC hMaskDC = ImplGetCachedDC( CACHED_HDC_1, hMaskBitmap );
- const BYTE cRed = SALCOLOR_RED( nTransparentColor );
- const BYTE cGreen = SALCOLOR_GREEN( nTransparentColor );
- const BYTE cBlue = SALCOLOR_BLUE( nTransparentColor );
+ const Size aSize( rSalBitmap.GetSize() );
+ HBITMAP hMaskBitmap = CreateBitmap( (int) aSize.Width(), (int) aSize.Height(), 1, 1, NULL );
+ HDC hMaskDC = ImplGetCachedDC( CACHED_HDC_1, hMaskBitmap );
+ const BYTE cRed = SALCOLOR_RED( nTransparentColor );
+ const BYTE cGreen = SALCOLOR_GREEN( nTransparentColor );
+ const BYTE cBlue = SALCOLOR_BLUE( nTransparentColor );
if( rSalBitmap.ImplGethDDB() )
{
- HDC hSrcDC = ImplGetCachedDC( CACHED_HDC_2, rSalBitmap.ImplGethDDB() );
- COLORREF aOldCol = SetBkColor( hSrcDC, RGB( cRed, cGreen, cBlue ) );
+ HDC hSrcDC = ImplGetCachedDC( CACHED_HDC_2, rSalBitmap.ImplGethDDB() );
+ COLORREF aOldCol = SetBkColor( hSrcDC, RGB( cRed, cGreen, cBlue ) );
BitBlt( hMaskDC, 0, 0, (int) aSize.Width(), (int) aSize.Height(), hSrcDC, 0, 0, SRCCOPY );
@@ -472,12 +472,12 @@ void WinSalGraphics::drawBitmap( const SalTwoRect* pPosAry,
}
else
{
- WinSalBitmap* pTmpSalBmp = new WinSalBitmap;
+ WinSalBitmap* pTmpSalBmp = new WinSalBitmap;
if( pTmpSalBmp->Create( rSalBitmap, this ) )
{
- HDC hSrcDC = ImplGetCachedDC( CACHED_HDC_2, pTmpSalBmp->ImplGethDDB() );
- COLORREF aOldCol = SetBkColor( hSrcDC, RGB( cRed, cGreen, cBlue ) );
+ HDC hSrcDC = ImplGetCachedDC( CACHED_HDC_2, pTmpSalBmp->ImplGethDDB() );
+ COLORREF aOldCol = SetBkColor( hSrcDC, RGB( cRed, cGreen, cBlue ) );
BitBlt( hMaskDC, 0, 0, (int) aSize.Width(), (int) aSize.Height(), hSrcDC, 0, 0, SRCCOPY );
@@ -508,14 +508,14 @@ void WinSalGraphics::drawBitmap( const SalTwoRect* pPosAry,
const WinSalBitmap& rSalBitmap = static_cast<const WinSalBitmap&>(rSSalBitmap);
const WinSalBitmap& rTransparentBitmap = static_cast<const WinSalBitmap&>(rSTransparentBitmap);
- SalTwoRect aPosAry = *pPosAry;
- int nDstX = (int)aPosAry.mnDestX;
- int nDstY = (int)aPosAry.mnDestY;
- int nDstWidth = (int)aPosAry.mnDestWidth;
- int nDstHeight = (int)aPosAry.mnDestHeight;
- HDC hDC = mhDC;
- HBITMAP hMemBitmap = 0;
- HBITMAP hMaskBitmap = 0;
+ SalTwoRect aPosAry = *pPosAry;
+ int nDstX = (int)aPosAry.mnDestX;
+ int nDstY = (int)aPosAry.mnDestY;
+ int nDstWidth = (int)aPosAry.mnDestWidth;
+ int nDstHeight = (int)aPosAry.mnDestHeight;
+ HDC hDC = mhDC;
+ HBITMAP hMemBitmap = 0;
+ HBITMAP hMaskBitmap = 0;
if( ( nDstWidth > CACHED_HDC_DEFEXT ) || ( nDstHeight > CACHED_HDC_DEFEXT ) )
{
@@ -554,7 +554,7 @@ void WinSalGraphics::drawBitmap( const SalTwoRect* pPosAry,
}
else
{
- BitBlt( hMemDC, 0, 0, nDstWidth, nDstHeight, hMaskDC, 0, 0, SRCAND );
+ BitBlt( hMemDC, 0, 0, nDstWidth, nDstHeight, hMaskDC, 0, 0, SRCAND );
// now MemDC contains background with masked-out bitmap area
ImplDrawBitmap( hMaskDC, &aPosAry, rSalBitmap, FALSE, SRCERASE );
// now MaskDC contains the bitmap area with black background
@@ -578,7 +578,7 @@ void WinSalGraphics::drawBitmap( const SalTwoRect* pPosAry,
// -----------------------------------------------------------------------
bool WinSalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
- const SalBitmap& rSrcBitmap,
+ const SalBitmap& rSrcBitmap,
const SalBitmap& rAlphaBmp )
{
(void)rTR; (void)rSrcBitmap; (void)rAlphaBmp;
@@ -590,7 +590,7 @@ bool WinSalGraphics::drawAlphaBitmap( const SalTwoRect& rTR,
// -----------------------------------------------------------------------
-bool WinSalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
+bool WinSalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
long nHeight, sal_uInt8 nTransparency )
{
if( mbPen || !mbBrush || mbXORMode )
@@ -608,7 +608,7 @@ bool WinSalGraphics::drawAlphaRect( long nX, long nY, long nWidth,
// hMemDC contains a 1x1 bitmap of the right color - stretch-blit
// that to dest hdc
- bool bRet = AlphaBlend( mhDC, nX, nY, nWidth, nHeight,
+ bool bRet = AlphaBlend( mhDC, nX, nY, nWidth, nHeight,
hMemDC, 0,0,1,1,
aFunc ) == TRUE;
@@ -627,13 +627,13 @@ void WinSalGraphics::drawMask( const SalTwoRect* pPosAry,
const WinSalBitmap& rSalBitmap = static_cast<const WinSalBitmap&>(rSSalBitmap);
- SalTwoRect aPosAry = *pPosAry;
- const BYTE cRed = SALCOLOR_RED( nMaskColor );
- const BYTE cGreen = SALCOLOR_GREEN( nMaskColor );
- const BYTE cBlue = SALCOLOR_BLUE( nMaskColor );
- HDC hDC = mhDC;
- HBRUSH hMaskBrush = CreateSolidBrush( RGB( cRed, cGreen, cBlue ) );
- HBRUSH hOldBrush = SelectBrush( hDC, hMaskBrush );
+ SalTwoRect aPosAry = *pPosAry;
+ const BYTE cRed = SALCOLOR_RED( nMaskColor );
+ const BYTE cGreen = SALCOLOR_GREEN( nMaskColor );
+ const BYTE cBlue = SALCOLOR_BLUE( nMaskColor );
+ HDC hDC = mhDC;
+ HBRUSH hMaskBrush = CreateSolidBrush( RGB( cRed, cGreen, cBlue ) );
+ HBRUSH hOldBrush = SelectBrush( hDC, hMaskBrush );
// bei Paletten-Displays hat WIN/WNT offenbar ein kleines Problem,
// die Farben der Maske richtig auf die Palette abzubilden,
@@ -663,10 +663,10 @@ SalBitmap* WinSalGraphics::getBitmap( long nX, long nY, long nDX, long nDY )
nDX = labs( nDX );
nDY = labs( nDY );
- HDC hDC = mhDC;
+ HDC hDC = mhDC;
HBITMAP hBmpBitmap = CreateCompatibleBitmap( hDC, nDX, nDY );
- HDC hBmpDC = ImplGetCachedDC( CACHED_HDC_1, hBmpBitmap );
- BOOL bRet;
+ HDC hBmpDC = ImplGetCachedDC( CACHED_HDC_1, hBmpBitmap );
+ BOOL bRet;
DWORD err = 0;
bRet = BitBlt( hBmpDC, 0, 0, (int) nDX, (int) nDY, hDC, (int) nX, (int) nY, SRCCOPY ) ? TRUE : FALSE;
@@ -712,10 +712,10 @@ void WinSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalInv
{
if ( nFlags & SAL_INVERT_TRACKFRAME )
{
- HPEN hDotPen = CreatePen( PS_DOT, 0, 0 );
- HPEN hOldPen = SelectPen( mhDC, hDotPen );
- HBRUSH hOldBrush = SelectBrush( mhDC, GetStockBrush( NULL_BRUSH ) );
- int nOldROP = SetROP2( mhDC, R2_NOT );
+ HPEN hDotPen = CreatePen( PS_DOT, 0, 0 );
+ HPEN hOldPen = SelectPen( mhDC, hDotPen );
+ HBRUSH hOldBrush = SelectBrush( mhDC, GetStockBrush( NULL_BRUSH ) );
+ int nOldROP = SetROP2( mhDC, R2_NOT );
WIN_Rectangle( mhDC, (int)nX, (int)nY, (int)(nX+nWidth), (int)(nY+nHeight) );
@@ -743,10 +743,10 @@ void WinSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalInv
else
{
RECT aRect;
- aRect.left = (int)nX;
- aRect.top = (int)nY;
- aRect.right = (int)nX+nWidth;
- aRect.bottom = (int)nY+nHeight;
+ aRect.left = (int)nX;
+ aRect.top = (int)nY;
+ aRect.right = (int)nX+nWidth;
+ aRect.bottom = (int)nY+nHeight;
::InvertRect( mhDC, &aRect );
}
}
@@ -755,12 +755,12 @@ void WinSalGraphics::invert( long nX, long nY, long nWidth, long nHeight, SalInv
void WinSalGraphics::invert( ULONG nPoints, const SalPoint* pPtAry, SalInvert nSalFlags )
{
- HPEN hPen;
- HPEN hOldPen;
- HBRUSH hBrush;
- HBRUSH hOldBrush = 0;
- COLORREF nOldTextColor RGB(0,0,0);
- int nOldROP = SetROP2( mhDC, R2_NOT );
+ HPEN hPen;
+ HPEN hOldPen;
+ HBRUSH hBrush;
+ HBRUSH hOldBrush = 0;
+ COLORREF nOldTextColor RGB(0,0,0);
+ int nOldROP = SetROP2( mhDC, R2_NOT );
if ( nSalFlags & SAL_INVERT_TRACKFRAME )
hPen = CreatePen( PS_DOT, 0, 0 );
diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx
index 79315a2e10b6..ae62c6eb7894 100644
--- a/vcl/win/source/gdi/salgdi3.cxx
+++ b/vcl/win/source/gdi/salgdi3.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,8 +48,8 @@
#include "vcl/fontsubset.hxx"
#include "vcl/sallayout.hxx"
-#include "vcl/outdev.h" // for ImplGlyphFallbackFontSubstitution
-#include "unotools/fontcfg.hxx" // for IMPL_FONT_ATTR_SYMBOL
+#include "vcl/outdev.h" // for ImplGlyphFallbackFontSubstitution
+#include "unotools/fontcfg.hxx" // for IMPL_FONT_ATTR_SYMBOL
#include "rtl/logfile.hxx"
#include "rtl/tencinfo.h"
@@ -126,13 +126,13 @@ typedef std::map< String, ImplDevFontAttributes > FontAttrMap;
class ImplFontAttrCache
{
private:
- FontAttrMap aFontAttributes;
- rtl::OUString aCacheFileName;
- String aBaseURL;
- BOOL bModified;
+ FontAttrMap aFontAttributes;
+ rtl::OUString aCacheFileName;
+ String aBaseURL;
+ BOOL bModified;
protected:
- String OptimizeURL( const String& rURL ) const;
+ String OptimizeURL( const String& rURL ) const;
enum{ MAGIC = 0x12349876 }; // change if fontattrcache format changes
@@ -147,7 +147,7 @@ public:
ImplFontAttrCache::ImplFontAttrCache( const String& rFileNameURL, const String& rBaseURL ) : aBaseURL( rBaseURL )
{
bModified = FALSE;
- aBaseURL.ToLowerAscii(); // Windows only, no problem...
+ aBaseURL.ToLowerAscii(); // Windows only, no problem...
// open the cache file
osl::FileBase::getSystemPathFromFileURL( rFileNameURL, aCacheFileName );
@@ -225,7 +225,7 @@ ImplFontAttrCache::~ImplFontAttrCache()
String ImplFontAttrCache::OptimizeURL( const String& rURL ) const
{
String aOptimizedFontFileURL( rURL );
- aOptimizedFontFileURL.ToLowerAscii(); // Windows only, no problem...
+ aOptimizedFontFileURL.ToLowerAscii(); // Windows only, no problem...
if ( aOptimizedFontFileURL.CompareTo( aBaseURL, aBaseURL.Len() ) == COMPARE_EQUAL )
aOptimizedFontFileURL = aOptimizedFontFileURL.Copy( aBaseURL.Len() );
return aOptimizedFontFileURL;
@@ -258,20 +258,20 @@ void ImplFontAttrCache::AddFontAttr( const String& rFontFileName, const ImplDevF
class RawFontData
{
public:
- explicit RawFontData( HDC, DWORD nTableTag=0 );
+ explicit RawFontData( HDC, DWORD nTableTag=0 );
~RawFontData() { delete[] mpRawBytes; }
- const unsigned char* get() const { return mpRawBytes; }
- const unsigned char* steal() { unsigned char* p = mpRawBytes; mpRawBytes = NULL; return p; }
- const int size() const { return mnByteCount; }
+ const unsigned char* get() const { return mpRawBytes; }
+ const unsigned char* steal() { unsigned char* p = mpRawBytes; mpRawBytes = NULL; return p; }
+ const int size() const { return mnByteCount; }
private:
- unsigned char* mpRawBytes;
- int mnByteCount;
+ unsigned char* mpRawBytes;
+ int mnByteCount;
};
RawFontData::RawFontData( HDC hDC, DWORD nTableTag )
-: mpRawBytes( NULL )
-, mnByteCount( 0 )
+: mpRawBytes( NULL )
+, mnByteCount( 0 )
{
// get required size in bytes
mnByteCount = ::GetFontData( hDC, nTableTag, 0, NULL, 0 );
@@ -335,77 +335,77 @@ struct Unicode2LangType
// map unicode ranges to languages supported by OOo
// NOTE: due to the binary search used this list must be sorted by mnMinCode
static Unicode2LangType aLangFromCodeChart[]= {
- {0x0000, 0x007F, LANGUAGE_ENGLISH}, // Basic Latin
- {0x0080, 0x024F, LANGUAGE_ENGLISH}, // Latin Extended-A and Latin Extended-B
- {0x0250, 0x02AF, LANGUAGE_SYSTEM}, // IPA Extensions
- {0x0370, 0x03FF, LANGUAGE_GREEK}, // Greek
- {0x0590, 0x05FF, LANGUAGE_HEBREW}, // Hebrew
- {0x0600, 0x06FF, LANGUAGE_ARABIC_PRIMARY_ONLY}, // Arabic
- {0x0900, 0x097F, LANGUAGE_HINDI}, // Devanagari
- {0x0980, 0x09FF, LANGUAGE_BENGALI}, // Bengali
- {0x0A80, 0x0AFF, LANGUAGE_GUJARATI}, // Gujarati
- {0x0B00, 0x0B7F, LANGUAGE_ORIYA}, // Oriya
- {0x0B80, 0x0BFF, LANGUAGE_TAMIL}, // Tamil
- {0x0C00, 0x0C7F, LANGUAGE_TELUGU}, // Telugu
- {0x0C80, 0x0CFF, LANGUAGE_KANNADA}, // Kannada
- {0x0D00, 0x0D7F, LANGUAGE_MALAYALAM}, // Malayalam
- {0x0D80, 0x0D7F, LANGUAGE_SINHALESE_SRI_LANKA}, // Sinhala
- {0x0E00, 0x0E7F, LANGUAGE_THAI}, // Thai
- {0x0E80, 0x0EFF, LANGUAGE_LAO}, // Lao
- {0x0F00, 0x0FFF, LANGUAGE_TIBETAN}, // Tibetan
- {0x1000, 0x109F, LANGUAGE_BURMESE}, // Burmese
- {0x10A0, 0x10FF, LANGUAGE_GEORGIAN}, // Georgian
- {0x1100, 0x11FF, LANGUAGE_KOREAN}, // Hangul Jamo, Korean-specific
-// {0x1200, 0x139F, LANGUAGE_AMHARIC_ETHIOPIA}, // Ethiopic
-// {0x1200, 0x139F, LANGUAGE_TIGRIGNA_ETHIOPIA}, // Ethiopic
+ {0x0000, 0x007F, LANGUAGE_ENGLISH}, // Basic Latin
+ {0x0080, 0x024F, LANGUAGE_ENGLISH}, // Latin Extended-A and Latin Extended-B
+ {0x0250, 0x02AF, LANGUAGE_SYSTEM}, // IPA Extensions
+ {0x0370, 0x03FF, LANGUAGE_GREEK}, // Greek
+ {0x0590, 0x05FF, LANGUAGE_HEBREW}, // Hebrew
+ {0x0600, 0x06FF, LANGUAGE_ARABIC_PRIMARY_ONLY}, // Arabic
+ {0x0900, 0x097F, LANGUAGE_HINDI}, // Devanagari
+ {0x0980, 0x09FF, LANGUAGE_BENGALI}, // Bengali
+ {0x0A80, 0x0AFF, LANGUAGE_GUJARATI}, // Gujarati
+ {0x0B00, 0x0B7F, LANGUAGE_ORIYA}, // Oriya
+ {0x0B80, 0x0BFF, LANGUAGE_TAMIL}, // Tamil
+ {0x0C00, 0x0C7F, LANGUAGE_TELUGU}, // Telugu
+ {0x0C80, 0x0CFF, LANGUAGE_KANNADA}, // Kannada
+ {0x0D00, 0x0D7F, LANGUAGE_MALAYALAM}, // Malayalam
+ {0x0D80, 0x0D7F, LANGUAGE_SINHALESE_SRI_LANKA}, // Sinhala
+ {0x0E00, 0x0E7F, LANGUAGE_THAI}, // Thai
+ {0x0E80, 0x0EFF, LANGUAGE_LAO}, // Lao
+ {0x0F00, 0x0FFF, LANGUAGE_TIBETAN}, // Tibetan
+ {0x1000, 0x109F, LANGUAGE_BURMESE}, // Burmese
+ {0x10A0, 0x10FF, LANGUAGE_GEORGIAN}, // Georgian
+ {0x1100, 0x11FF, LANGUAGE_KOREAN}, // Hangul Jamo, Korean-specific
+// {0x1200, 0x139F, LANGUAGE_AMHARIC_ETHIOPIA}, // Ethiopic
+// {0x1200, 0x139F, LANGUAGE_TIGRIGNA_ETHIOPIA}, // Ethiopic
{0x13A0, 0x13FF, LANGUAGE_CHEROKEE_UNITED_STATES}, // Cherokee
-// {0x1400, 0x167F, LANGUAGE_CANADIAN_ABORIGINAL}, // Canadian Aboriginial Syllabics
-// {0x1680, 0x169F, LANGUAGE_OGHAM}, // Ogham
-// {0x16A0, 0x16F0, LANGUAGE_RUNIC}, // Runic
-// {0x1700, 0x171F, LANGUAGE_TAGALOG}, // Tagalog
-// {0x1720, 0x173F, LANGUAGE_HANUNOO}, // Hanunoo
-// {0x1740, 0x175F, LANGUAGE_BUHID}, // Buhid
-// {0x1760, 0x177F, LANGUAGE_TAGBANWA}, // Tagbanwa
- {0x1780, 0x17FF, LANGUAGE_KHMER}, // Khmer
- {0x18A0, 0x18AF, LANGUAGE_MONGOLIAN}, // Mongolian
-// {0x1900, 0x194F, LANGUAGE_LIMBU}, // Limbu
-// {0x1950, 0x197F, LANGUAGE_TAILE}, // Tai Le
-// {0x1980, 0x19DF, LANGUAGE_TAILUE}, // Tai Lue
- {0x19E0, 0x19FF, LANGUAGE_KHMER}, // Khmer Symbols
-// {0x1A00, 0x1A1F, LANGUAGE_BUGINESE}, // Buginese/Lontara
-// {0x1B00, 0x1B7F, LANGUAGE_BALINESE}, // Balinese
-// {0x1D00, 0x1DFF, LANGUAGE_NONE}, // Phonetic Symbols
- {0x1E00, 0x1EFF, LANGUAGE_ENGLISH}, // Latin Extended Additional
- {0x1F00, 0x1FFF, LANGUAGE_GREEK}, // Greek Extended
- {0x2C60, 0x2C7F, LANGUAGE_ENGLISH}, // Latin Extended-C
- {0x2E80, 0x2FFf, LANGUAGE_CHINESE_SIMPLIFIED}, // CJK Radicals Supplement + Kangxi Radical + Ideographic Description Characters
- {0x3000, 0x303F, LANGUAGE_DEFAULT_CJK}, // CJK Symbols and punctuation
- {0x3040, 0x30FF, LANGUAGE_JAPANESE}, // Japanese Hiragana + Katakana
- {0x3100, 0x312F, LANGUAGE_CHINESE_TRADITIONAL}, // Bopomofo
- {0x3130, 0x318F, LANGUAGE_KOREAN}, // Hangul Compatibility Jamo, Kocrean-specific
- {0x3190, 0x319F, LANGUAGE_JAPANESE}, // Kanbun
- {0x31A0, 0x31BF, LANGUAGE_CHINESE_TRADITIONAL}, // Bopomofo Extended
- {0x31C0, 0x31EF, LANGUAGE_DEFAULT_CJK}, // CJK Ideographs
- {0x31F0, 0x31FF, LANGUAGE_JAPANESE}, // Japanese Katakana Phonetic Extensions
- {0x3200, 0x321F, LANGUAGE_KOREAN}, // Parenthesized Hangul
- {0x3220, 0x325F, LANGUAGE_DEFAULT_CJK}, // Parenthesized Ideographs
- {0x3260, 0x327F, LANGUAGE_KOREAN}, // Circled Hangul
- {0x3280, 0x32CF, LANGUAGE_DEFAULT_CJK}, // Circled Ideographs
- {0x32d0, 0x32FF, LANGUAGE_JAPANESE}, // Japanese Circled Katakana
- {0x3400, 0x4DBF, LANGUAGE_DEFAULT_CJK}, // CJK Unified Ideographs Extension A
- {0x4E00, 0x9FCF, LANGUAGE_DEFAULT_CJK}, // Unified CJK Ideographs
- {0xA720, 0xA7FF, LANGUAGE_ENGLISH}, // Latin Extended-D
- {0xAC00, 0xD7AF, LANGUAGE_KOREAN}, // Hangul Syllables, Korean-specific
- {0xF900, 0xFAFF, LANGUAGE_DEFAULT_CJK}, // CJK Compatibility Ideographs
- {0xFB00, 0xFB4F, LANGUAGE_HEBREW}, // Hebrew Presentation Forms
- {0xFB50, 0xFDFF, LANGUAGE_ARABIC_PRIMARY_ONLY}, // Arabic Presentation Forms-A
- {0xFE70, 0xFEFE, LANGUAGE_ARABIC_PRIMARY_ONLY}, // Arabic Presentation Forms-B
- {0xFF65, 0xFF9F, LANGUAGE_JAPANESE}, // Japanese Halfwidth Katakana variant
- {0xFFA0, 0xFFDC, LANGUAGE_KOREAN}, // Kocrean halfwidth hangual variant
- {0x10140, 0x1018F, LANGUAGE_GREEK}, // Ancient Greak numbers
- {0x1D200, 0x1D24F, LANGUAGE_GREEK}, // Ancient Greek Musical
- {0x20000, 0x2A6DF, LANGUAGE_DEFAULT_CJK}, // CJK Unified Ideographs Extension B
- {0x2F800, 0x2FA1F, LANGUAGE_DEFAULT_CJK} // CJK Compatibility Ideographs Supplement
+// {0x1400, 0x167F, LANGUAGE_CANADIAN_ABORIGINAL}, // Canadian Aboriginial Syllabics
+// {0x1680, 0x169F, LANGUAGE_OGHAM}, // Ogham
+// {0x16A0, 0x16F0, LANGUAGE_RUNIC}, // Runic
+// {0x1700, 0x171F, LANGUAGE_TAGALOG}, // Tagalog
+// {0x1720, 0x173F, LANGUAGE_HANUNOO}, // Hanunoo
+// {0x1740, 0x175F, LANGUAGE_BUHID}, // Buhid
+// {0x1760, 0x177F, LANGUAGE_TAGBANWA}, // Tagbanwa
+ {0x1780, 0x17FF, LANGUAGE_KHMER}, // Khmer
+ {0x18A0, 0x18AF, LANGUAGE_MONGOLIAN}, // Mongolian
+// {0x1900, 0x194F, LANGUAGE_LIMBU}, // Limbu
+// {0x1950, 0x197F, LANGUAGE_TAILE}, // Tai Le
+// {0x1980, 0x19DF, LANGUAGE_TAILUE}, // Tai Lue
+ {0x19E0, 0x19FF, LANGUAGE_KHMER}, // Khmer Symbols
+// {0x1A00, 0x1A1F, LANGUAGE_BUGINESE}, // Buginese/Lontara
+// {0x1B00, 0x1B7F, LANGUAGE_BALINESE}, // Balinese
+// {0x1D00, 0x1DFF, LANGUAGE_NONE}, // Phonetic Symbols
+ {0x1E00, 0x1EFF, LANGUAGE_ENGLISH}, // Latin Extended Additional
+ {0x1F00, 0x1FFF, LANGUAGE_GREEK}, // Greek Extended
+ {0x2C60, 0x2C7F, LANGUAGE_ENGLISH}, // Latin Extended-C
+ {0x2E80, 0x2FFf, LANGUAGE_CHINESE_SIMPLIFIED}, // CJK Radicals Supplement + Kangxi Radical + Ideographic Description Characters
+ {0x3000, 0x303F, LANGUAGE_DEFAULT_CJK}, // CJK Symbols and punctuation
+ {0x3040, 0x30FF, LANGUAGE_JAPANESE}, // Japanese Hiragana + Katakana
+ {0x3100, 0x312F, LANGUAGE_CHINESE_TRADITIONAL}, // Bopomofo
+ {0x3130, 0x318F, LANGUAGE_KOREAN}, // Hangul Compatibility Jamo, Kocrean-specific
+ {0x3190, 0x319F, LANGUAGE_JAPANESE}, // Kanbun
+ {0x31A0, 0x31BF, LANGUAGE_CHINESE_TRADITIONAL}, // Bopomofo Extended
+ {0x31C0, 0x31EF, LANGUAGE_DEFAULT_CJK}, // CJK Ideographs
+ {0x31F0, 0x31FF, LANGUAGE_JAPANESE}, // Japanese Katakana Phonetic Extensions
+ {0x3200, 0x321F, LANGUAGE_KOREAN}, // Parenthesized Hangul
+ {0x3220, 0x325F, LANGUAGE_DEFAULT_CJK}, // Parenthesized Ideographs
+ {0x3260, 0x327F, LANGUAGE_KOREAN}, // Circled Hangul
+ {0x3280, 0x32CF, LANGUAGE_DEFAULT_CJK}, // Circled Ideographs
+ {0x32d0, 0x32FF, LANGUAGE_JAPANESE}, // Japanese Circled Katakana
+ {0x3400, 0x4DBF, LANGUAGE_DEFAULT_CJK}, // CJK Unified Ideographs Extension A
+ {0x4E00, 0x9FCF, LANGUAGE_DEFAULT_CJK}, // Unified CJK Ideographs
+ {0xA720, 0xA7FF, LANGUAGE_ENGLISH}, // Latin Extended-D
+ {0xAC00, 0xD7AF, LANGUAGE_KOREAN}, // Hangul Syllables, Korean-specific
+ {0xF900, 0xFAFF, LANGUAGE_DEFAULT_CJK}, // CJK Compatibility Ideographs
+ {0xFB00, 0xFB4F, LANGUAGE_HEBREW}, // Hebrew Presentation Forms
+ {0xFB50, 0xFDFF, LANGUAGE_ARABIC_PRIMARY_ONLY}, // Arabic Presentation Forms-A
+ {0xFE70, 0xFEFE, LANGUAGE_ARABIC_PRIMARY_ONLY}, // Arabic Presentation Forms-B
+ {0xFF65, 0xFF9F, LANGUAGE_JAPANESE}, // Japanese Halfwidth Katakana variant
+ {0xFFA0, 0xFFDC, LANGUAGE_KOREAN}, // Kocrean halfwidth hangual variant
+ {0x10140, 0x1018F, LANGUAGE_GREEK}, // Ancient Greak numbers
+ {0x1D200, 0x1D24F, LANGUAGE_GREEK}, // Ancient Greek Musical
+ {0x20000, 0x2A6DF, LANGUAGE_DEFAULT_CJK}, // CJK Unified Ideographs Extension B
+ {0x2F800, 0x2FA1F, LANGUAGE_DEFAULT_CJK} // CJK Compatibility Ideographs Supplement
};
// get language matching to the missing char
@@ -433,7 +433,7 @@ LanguageType MapCharToLanguage( sal_UCS4 uChar )
nDefaultLang = (LanguageType)rtl_str_toInt32( aKeyValBuf, 16 );
// TODO: use the default-CJK language selected in
- // Tools->Options->LangSettings->Languages when it becomes available here
+ // Tools->Options->LangSettings->Languages when it becomes available here
if( !nDefaultLang )
nDefaultLang = Application::GetSettings().GetUILanguage();
@@ -470,7 +470,7 @@ LanguageType MapCharToLanguage( sal_UCS4 uChar )
while( nLow <= nHigh )
{
int nMiddle = (nHigh + nLow) / 2;
- if( uChar < aLangFromCodeChart[ nMiddle].mnMinCode )
+ if( uChar < aLangFromCodeChart[ nMiddle].mnMinCode )
nHigh = nMiddle - 1;
else if( uChar > aLangFromCodeChart[ nMiddle].mnMaxCode )
nLow = nMiddle + 1;
@@ -485,7 +485,7 @@ class WinGlyphFallbackSubstititution
: public ImplGlyphFallbackFontSubstitution
{
public:
- explicit WinGlyphFallbackSubstititution( HDC );
+ explicit WinGlyphFallbackSubstititution( HDC );
bool FindFontSubstitute( ImplFontSelectData&, rtl::OUString& rMissingChars ) const;
private:
@@ -494,7 +494,7 @@ private:
};
inline WinGlyphFallbackSubstititution::WinGlyphFallbackSubstititution( HDC hDC )
-: mhDC( hDC )
+: mhDC( hDC )
{}
void ImplGetLogFontFromFontSelect( HDC, const ImplFontSelectData*,
@@ -517,7 +517,7 @@ bool WinGlyphFallbackSubstititution::HasMissingChars( const ImplFontData* pFace,
// create HFONT from log font
HFONT hNewFont = ::CreateFontIndirectW( &aLogFont );
- // select the new font into device
+ // select the new font into device
HFONT hOldFont = ::SelectFont( mhDC, hNewFont );
// read CMAP table to update their pCharMap
@@ -539,7 +539,7 @@ bool WinGlyphFallbackSubstititution::HasMissingChars( const ImplFontData* pFace,
// static const int nMaxMatchCount = 1; // TODO: check more missing characters?
const sal_Int32 nStrLen = rMissingChars.getLength();
for( sal_Int32 nStrIdx = 0; nStrIdx < nStrLen; ++nStrIdx )
- {
+ {
const sal_UCS4 uChar = rMissingChars.iterateCodePoints( &nStrIdx );
nMatchCount += pCharMap->HasChar( uChar );
break; // for now
@@ -573,7 +573,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( ImplFontSelectData& rFo
aLocale = Application::GetSettings().GetUILocale();
// first level fallback:
- // try use the locale specific default fonts defined in VCL.xcu
+ // try use the locale specific default fonts defined in VCL.xcu
const ImplDevFontList* pDevFontList = ImplGetSVData()->maGDIData.mpScreenFontList;
/*const*/ ImplDevFontListData* pDevFont = pDevFontList->ImplFindByLocale( aLocale );
if( pDevFont )
@@ -586,7 +586,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( ImplFontSelectData& rFo
}
}
- // are the missing characters symbols?
+ // are the missing characters symbols?
pDevFont = pDevFontList->ImplFindByAttributes( IMPL_FONT_ATTR_SYMBOL,
rFontSelData.meWeight, rFontSelData.meWidthType,
rFontSelData.meFamily, rFontSelData.meItalic, rFontSelData.maSearchName );
@@ -607,7 +607,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( ImplFontSelectData& rFo
int nTestFontCount = pTestFontList->Count();
if( nTestFontCount > MAX_GFBFONT_COUNT )
nTestFontCount = MAX_GFBFONT_COUNT;
-
+
for( int i = 0; i < nTestFontCount; ++i )
{
const ImplFontData* pFace = pTestFontList->Get( i );
@@ -2178,8 +2178,8 @@ static int WINAPI __AddFontResourceExW( LPCWSTR lpszfileName, DWORD fl, PVOID pd
{
typedef int (WINAPI *AddFontResourceExW_FUNC)(LPCWSTR, DWORD, PVOID );
- static AddFontResourceExW_FUNC pFunc = NULL;
- static HMODULE hmGDI = NULL;
+ static AddFontResourceExW_FUNC pFunc = NULL;
+ static HMODULE hmGDI = NULL;
if ( !pFunc && !hmGDI )
{
@@ -2207,7 +2207,7 @@ bool ImplAddTempFont( SalData& rSalData, const String& rFontFileURL )
#ifdef FR_PRIVATE
nRet = __AddFontResourceExW( reinterpret_cast<LPCWSTR>(aUSytemPath.getStr()), FR_PRIVATE, NULL );
#endif
-
+
if ( !nRet )
{
static int nCounter = 0;
@@ -2295,7 +2295,7 @@ static bool ImplGetFontAttrFromFile( const String& rFontFileURL,
OSL_VERIFY( !osl::FileBase::getSystemPathFromFileURL( rFontFileURL, aUSytemPath ) );
// get FontAttributes from a *fot file
- // TODO: use GetTTGlobalFontInfo() to access the font directly
+ // TODO: use GetTTGlobalFontInfo() to access the font directly
rDFA.mnQuality = 1000;
rDFA.mbDevice = true;
rDFA.meFamily = FAMILY_DONTKNOW;
@@ -2905,7 +2905,7 @@ BOOL WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
sal_uInt32 nGlyphIdx = pGlyphIDs[i] & GF_IDXMASK;
if( pGlyphIDs[i] & GF_ISCHAR ) // remaining pseudo-glyphs need to be translated
nGlyphIdx = pImplFontCharMap->GetGlyphIndex( nGlyphIdx );
- if( (pGlyphIDs[i] & (GF_ROTMASK|GF_GSUB)) != 0) // TODO: vertical substitution
+ if( (pGlyphIDs[i] & (GF_ROTMASK|GF_GSUB)) != 0) // TODO: vertical substitution
{/*####*/}
nRealGlyphIds[i] = nGlyphIdx;
@@ -2939,11 +2939,11 @@ BOOL WinSalGraphics::CreateFontSubset( const rtl::OUString& rToFile,
::GetTTGlobalFontInfo( aSftTTF.get(), &aTTInfo );
rInfo.m_nFontType = FontSubsetInfo::SFNT_TTF;
rInfo.m_aPSName = ImplSalGetUniString( aTTInfo.psname );
- rInfo.m_nAscent = +aTTInfo.winAscent;
+ rInfo.m_nAscent = +aTTInfo.winAscent;
rInfo.m_nDescent = -aTTInfo.winDescent;
- rInfo.m_aFontBBox = Rectangle( Point( aTTInfo.xMin, aTTInfo.yMin ),
+ rInfo.m_aFontBBox = Rectangle( Point( aTTInfo.xMin, aTTInfo.yMin ),
Point( aTTInfo.xMax, aTTInfo.yMax ) );
- rInfo.m_nCapHeight = aTTInfo.yMax; // Well ...
+ rInfo.m_nCapHeight = aTTInfo.yMax; // Well ...
// subset TTF-glyphs and get their properties
// take care that subset fonts require the NotDef glyph in pos 0
@@ -3055,7 +3055,7 @@ const void* WinSalGraphics::GetEmbedFontData( const ImplFontData* pFont,
*pDataLen = 0;
pCharWidths[i] = nCharWidth;
}
-
+
if( !*pDataLen )
return NULL;
@@ -3110,11 +3110,11 @@ void WinSalGraphics::GetGlyphWidths( const ImplFontData* pFont,
// TODO: much better solution: move SetFont and restoration of old font to caller
ScopedFont aOldFont(*this);
-
+
float fScale = 0.0;
HFONT hOldFont = 0;
ImplDoSetFont( &aIFSD, fScale, hOldFont );
-
+
if( pFont->IsSubsettable() )
{
// get raw font file data
@@ -3126,12 +3126,12 @@ void WinSalGraphics::GetGlyphWidths( const ImplFontData* pFont,
sal_uInt32 nFaceNum = 0;
if( !*xRawFontData.get() ) // TTC candidate
nFaceNum = ~0U; // indicate "TTC font extracts only"
-
+
ScopedTrueTypeFont aSftTTF;
int nRC = aSftTTF.open( (void*)xRawFontData.get(), xRawFontData.size(), nFaceNum );
if( nRC != SF_OK )
return;
-
+
int nGlyphs = GetTTGlyphCount( aSftTTF.get() );
if( nGlyphs > 0 )
{
@@ -3185,7 +3185,7 @@ void WinSalGraphics::GetGlyphWidths( const ImplFontData* pFont,
rWidths.push_back( nCharWidth );
}
}
- }
+ }
}
//--------------------------------------------------------------------------
@@ -3201,14 +3201,14 @@ SystemFontData WinSalGraphics::GetSysFontData( int nFallbacklevel ) const
if (nFallbacklevel >= MAX_FALLBACK) nFallbacklevel = MAX_FALLBACK - 1;
if (nFallbacklevel < 0 ) nFallbacklevel = 0;
-
+
aSysFontData.nSize = sizeof( SystemFontData );
- aSysFontData.hFont = mhFonts[nFallbacklevel];
+ aSysFontData.hFont = mhFonts[nFallbacklevel];
aSysFontData.bFakeBold = false;
aSysFontData.bFakeItalic = false;
aSysFontData.bAntialias = true;
aSysFontData.bVerticalCharacterType = false;
-
+
OSL_TRACE("\r\n:WinSalGraphics::GetSysFontData(): FontID: %p, Fallback level: %d",
aSysFontData.hFont,
nFallbacklevel);
diff --git a/vcl/win/source/gdi/salgdi_gdiplus.cxx b/vcl/win/source/gdi/salgdi_gdiplus.cxx
index 49f56a452faf..9be66be25b76 100644
--- a/vcl/win/source/gdi/salgdi_gdiplus.cxx
+++ b/vcl/win/source/gdi/salgdi_gdiplus.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,10 +38,10 @@
#include <tools/debug.hxx>
#ifndef min
-#define min(a,b) (((a) < (b)) ? (a) : (b))
+#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef max
-#define max(a,b) (((a) > (b)) ? (a) : (b))
+#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
#if defined _MSC_VER
@@ -83,7 +83,7 @@ void impAddB2DPolygonToGDIPlusGraphicsPathReal(Gdiplus::GraphicsPath& rPath, con
const basegfx::B2DPoint aCb(rPolygon.getPrevControlPoint(nNextIndex));
rPath.AddBezier(
- aFCurr,
+ aFCurr,
Gdiplus::PointF(Gdiplus::REAL(aCa.getX()), Gdiplus::REAL(aCa.getY())),
Gdiplus::PointF(Gdiplus::REAL(aCb.getX()), Gdiplus::REAL(aCb.getY())),
aFNext);
@@ -129,7 +129,7 @@ void impAddB2DPolygonToGDIPlusGraphicsPathInteger(Gdiplus::GraphicsPath& rPath,
const basegfx::B2DPoint aCb(rPolygon.getPrevControlPoint(nNextIndex));
rPath.AddBezier(
- aICurr,
+ aICurr,
Gdiplus::Point(INT(aCa.getX()), INT(aCa.getY())),
Gdiplus::Point(INT(aCb.getX()), INT(aCb.getY())),
aINext);
@@ -247,7 +247,7 @@ bool WinSalGraphics::drawPolyLine( const basegfx::B2DPolygon& rPolygon, double f
// #i101491# needed to create the correct line joins
aPath.CloseFigure();
}
-
+
if(getAntiAliasB2DDraw())
{
aGraphics.SetSmoothingMode(Gdiplus::SmoothingModeAntiAlias);
diff --git a/vcl/win/source/gdi/salnativewidgets-luna.cxx b/vcl/win/source/gdi/salnativewidgets-luna.cxx
index 884c8e7fc9ff..5f7ebc1dfaf6 100644
--- a/vcl/win/source/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/source/gdi/salnativewidgets-luna.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -166,7 +166,7 @@ HRESULT VisualStylesAPI::GetThemePartSize( HTHEME hTheme, HDC hdc, int iPartId,
/*********************************************************
- * Initialize XP theming and local stuff
+ * Initialize XP theming and local stuff
*********************************************************/
void SalData::initNWF( void )
{
@@ -245,8 +245,8 @@ BOOL WinSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP
case CTRL_SPINBOX:
if( nPart == PART_ENTIRE_CONTROL )
hTheme = getThemeHandle( mhWnd, L"Edit");
- else if( nPart == PART_ALL_BUTTONS ||
- nPart == PART_BUTTON_UP || nPart == PART_BUTTON_DOWN ||
+ else if( nPart == PART_ALL_BUTTONS ||
+ nPart == PART_BUTTON_UP || nPart == PART_BUTTON_DOWN ||
nPart == PART_BUTTON_LEFT|| nPart == PART_BUTTON_RIGHT )
hTheme = getThemeHandle( mhWnd, L"Spin");
break;
@@ -360,7 +360,7 @@ Rectangle ImplGetThemeRect( HTHEME hTheme, HDC hDC, int iPart, int iState, const
// Helper functions
// ----
-void ImplConvertSpinbuttonValues( int nControlPart, const ControlState& rState, const Rectangle& rRect,
+void ImplConvertSpinbuttonValues( int nControlPart, const ControlState& rState, const Rectangle& rRect,
int* pLunaPart, int *pLunaState, RECT *pRect )
{
if( nControlPart == PART_BUTTON_DOWN )
@@ -420,7 +420,7 @@ void ImplConvertSpinbuttonValues( int nControlPart, const ControlState& rState,
// ----
-BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
+BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
ControlType nType,
ControlPart nPart,
ControlState nState,
@@ -677,7 +677,7 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
else if( nState & CTRL_STATE_DEFAULT )
iState = PBS_DEFAULTED;
//else if( nState & CTRL_STATE_FOCUSED )
- // iState = PBS_DEFAULTED; // may need to draw focus rect
+ // iState = PBS_DEFAULTED; // may need to draw focus rect
else
iState = PBS_NORMAL;
@@ -699,7 +699,7 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
iState = bChecked ? RBS_CHECKEDNORMAL : RBS_UNCHECKEDNORMAL;
//if( nState & CTRL_STATE_FOCUSED )
- // iState |= PBS_DEFAULTED; // may need to draw focus rect
+ // iState |= PBS_DEFAULTED; // may need to draw focus rect
return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption);
}
@@ -710,20 +710,20 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
ButtonValue v = aValue.getTristateVal();
if( nState & CTRL_STATE_PRESSED )
- iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDPRESSED :
+ iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDPRESSED :
( (v == BUTTONVALUE_OFF) ? CBS_UNCHECKEDPRESSED : CBS_MIXEDPRESSED );
else if( !(nState & CTRL_STATE_ENABLED) )
- iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDDISABLED :
+ iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDDISABLED :
( (v == BUTTONVALUE_OFF) ? CBS_UNCHECKEDDISABLED : CBS_MIXEDDISABLED );
else if( nState & CTRL_STATE_ROLLOVER )
- iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDHOT :
+ iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDHOT :
( (v == BUTTONVALUE_OFF) ? CBS_UNCHECKEDHOT : CBS_MIXEDHOT );
else
- iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDNORMAL :
+ iState = (v == BUTTONVALUE_ON) ? CBS_CHECKEDNORMAL :
( (v == BUTTONVALUE_OFF) ? CBS_UNCHECKEDNORMAL : CBS_MIXEDNORMAL );
//if( nState & CTRL_STATE_FOCUSED )
- // iState |= PBS_DEFAULTED; // may need to draw focus rect
+ // iState |= PBS_DEFAULTED; // may need to draw focus rect
//SIZE sz;
//THEMESIZE eSize = TS_DRAW; // TS_MIN, TS_TRUE, TS_DRAW
@@ -787,7 +787,7 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
{
iPart = TABP_TABITEMLEFTEDGE;
rc.bottom--;
-
+
OSL_ASSERT( aValue.getType() == CTRL_TAB_ITEM );
const TabitemValue *pValue = static_cast<const TabitemValue*>(&aValue);
@@ -801,7 +801,7 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
else if( pValue->isRightAligned() )
iPart = TABP_TABITEMRIGHTEDGE;
else iPart = TABP_TABITEM;
-
+
if( !(nState & CTRL_STATE_ENABLED) )
iState = TILES_DISABLED;
else if( nState & CTRL_STATE_SELECTED )
@@ -822,7 +822,7 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
else if( nState & CTRL_STATE_ROLLOVER )
iState = TILES_HOT;
else if( nState & CTRL_STATE_FOCUSED )
- iState = TILES_FOCUSED; // may need to draw focus rect
+ iState = TILES_FOCUSED; // may need to draw focus rect
else
iState = TILES_NORMAL;
return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption);
@@ -838,18 +838,18 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
//iState = TS_DISABLED;
// disabled buttons are typically not painted at all but we need visual
// feedback when travelling by keyboard over disabled entries
- iState = TS_HOT;
+ iState = TS_HOT;
else if( nState & CTRL_STATE_PRESSED )
iState = TS_PRESSED;
else if( nState & CTRL_STATE_ROLLOVER )
iState = bChecked ? TS_HOTCHECKED : TS_HOT;
- else
+ else
iState = bChecked ? TS_CHECKED : TS_NORMAL;
return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption);
}
else if( nPart == PART_THUMB_HORZ || nPart == PART_THUMB_VERT )
{
- // the vertical gripper is not supported in most themes and it makes no
+ // the vertical gripper is not supported in most themes and it makes no
// sense to only support horizontal gripper
//iPart = (nPart == PART_THUMB_HORZ) ? RP_GRIPPERVERT : RP_GRIPPER;
//return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption);
@@ -878,7 +878,7 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
}
return ImplDrawTheme( hTheme, hDC, iPart, iState, rc, aCaption);
}
-
+
if( nType == CTRL_PROGRESS )
{
if( nPart != PART_ENTIRE_CONTROL )
@@ -889,7 +889,7 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
RECT aProgressRect = rc;
if( vsAPI.GetThemeBackgroundContentRect( hTheme, hDC, PP_BAR, iState, &rc, &aProgressRect) != S_OK )
return false;
-
+
long nProgressWidth = aValue.getNumericVal();
nProgressWidth *= (aProgressRect.right - aProgressRect.left);
nProgressWidth /= (rc.right - rc.left);
@@ -900,12 +900,12 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
return ImplDrawTheme( hTheme, hDC, PP_CHUNK, iState, aProgressRect, aCaption );
}
-
+
if( nType == CTRL_SLIDER )
{
iPart = (nPart == PART_TRACK_HORZ_AREA) ? TKP_TRACK : TKP_TRACKVERT;
iState = (nPart == PART_TRACK_HORZ_AREA) ? TRS_NORMAL : TRVS_NORMAL;
-
+
Rectangle aTrackRect = ImplGetThemeRect( hTheme, hDC, iPart, iState, Rectangle() );
RECT aTRect = rc;
if( nPart == PART_TRACK_HORZ_AREA )
@@ -919,9 +919,9 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
long nW = aTrackRect.GetWidth();
aTRect.left += (rc.right - rc.left - nW)/2;
aTRect.right = aTRect.left + nW;
- }
+ }
ImplDrawTheme( hTheme, hDC, iPart, iState, aTRect, aCaption );
-
+
RECT aThumbRect;
OSL_ASSERT( aValue.getType() == CTRL_SLIDER );
const SliderValue* pVal = static_cast<const SliderValue*>(&aValue);
@@ -933,7 +933,7 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
iState = (nState & CTRL_STATE_ENABLED) ? TUS_NORMAL : TUS_DISABLED;
return ImplDrawTheme( hTheme, hDC, iPart, iState, aThumbRect, aCaption );
}
-
+
if( nType == CTRL_LISTNODE )
{
if( nPart != PART_ENTIRE_CONTROL )
@@ -963,11 +963,11 @@ BOOL ImplDrawNativeControl( HDC hDC, HTHEME hTheme, RECT rc,
*
* Draws the requested control described by nPart/nState.
*
- * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
-BOOL WinSalGraphics::drawNativeControl( ControlType nType,
+BOOL WinSalGraphics::drawNativeControl( ControlType nType,
ControlPart nPart,
const Rectangle& rControlRegion,
ControlState nState,
@@ -1066,7 +1066,7 @@ BOOL WinSalGraphics::drawNativeControl( ControlType nType,
// restore alignment
SetTextAlign( mhDC, ta );
-
+
//GdiFlush();
@@ -1080,11 +1080,11 @@ BOOL WinSalGraphics::drawNativeControl( ControlType nType,
* OPTIONAL. Draws the requested text for the control described by nPart/nState.
* Used if text not drawn by DrawNativeControl().
*
- * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
-BOOL WinSalGraphics::drawNativeControlText( ControlType,
+BOOL WinSalGraphics::drawNativeControlText( ControlType,
ControlPart,
const Rectangle&,
ControlState,
@@ -1104,9 +1104,9 @@ BOOL WinSalGraphics::drawNativeControlText( ControlType,
* within the control that can be safely drawn into without drawing over
* the borders of the control.
*
- * rControlRegion: The bounding region of the control in VCL frame coordinates.
- * aValue: An optional value (tristate/numerical/string)
- * aCaption: A caption or title string (like button text etc)
+ * rControlRegion: The bounding region of the control in VCL frame coordinates.
+ * aValue: An optional value (tristate/numerical/string)
+ * aCaption: A caption or title string (like button text etc)
*/
BOOL WinSalGraphics::getNativeControlRegion( ControlType nType,
ControlPart nPart,
@@ -1125,13 +1125,13 @@ BOOL WinSalGraphics::getNativeControlRegion( ControlType nType,
if( nPart == PART_THUMB_HORZ || nPart == PART_THUMB_VERT )
{
/*
- // the vertical gripper is not supported in most themes and it makes no
+ // the vertical gripper is not supported in most themes and it makes no
// sense to only support horizontal gripper
HTHEME hTheme = getThemeHandle( mhWnd, L"Rebar");
if( hTheme )
{
- Rectangle aRect( ImplGetThemeRect( hTheme, hDC, nPart == PART_THUMB_HORZ ? RP_GRIPPERVERT : RP_GRIPPER,
+ Rectangle aRect( ImplGetThemeRect( hTheme, hDC, nPart == PART_THUMB_HORZ ? RP_GRIPPERVERT : RP_GRIPPER,
0, rControlRegion.GetBoundRect() ) );
if( nPart == PART_THUMB_HORZ && !aRect.IsEmpty() )
{
@@ -1151,7 +1151,7 @@ BOOL WinSalGraphics::getNativeControlRegion( ControlType nType,
HTHEME hTheme = getThemeHandle( mhWnd, L"Toolbar");
if( hTheme )
{
- Rectangle aRect( ImplGetThemeRect( hTheme, hDC, TP_SPLITBUTTONDROPDOWN,
+ Rectangle aRect( ImplGetThemeRect( hTheme, hDC, TP_SPLITBUTTONDROPDOWN,
TS_HOT, rControlRegion ) );
rNativeContentRegion = aRect;
rNativeBoundingRegion = rNativeContentRegion;
@@ -1165,7 +1165,7 @@ BOOL WinSalGraphics::getNativeControlRegion( ControlType nType,
HTHEME hTheme = getThemeHandle( mhWnd, L"Progress");
if( hTheme )
{
- Rectangle aRect( ImplGetThemeRect( hTheme, hDC, PP_BAR,
+ Rectangle aRect( ImplGetThemeRect( hTheme, hDC, PP_BAR,
0, rControlRegion ) );
rNativeContentRegion = aRect;
rNativeBoundingRegion = rNativeContentRegion;
@@ -1209,7 +1209,7 @@ BOOL WinSalGraphics::getNativeControlRegion( ControlType nType,
long nFontHeight = aNonClientMetrics.lfMessageFont.lfHeight;
if( nFontHeight < 0 )
nFontHeight = -nFontHeight;
-
+
if( aRect.GetHeight() && nFontHeight )
{
aRect.Bottom() += aRect.GetHeight();
@@ -1266,7 +1266,7 @@ BOOL WinSalGraphics::getNativeControlRegion( ControlType nType,
const TabitemValue *pValue = static_cast<const TabitemValue*>(&rControlValue);
if ( pValue->isBothAligned() )
--aControlRect.Right();
-
+
if ( nState & CTRL_STATE_SELECTED )
{
aControlRect.Left() -= 2;
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index c198386471b3..d8ec03b0c516 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -67,7 +67,7 @@
if (__builtin_setjmp(jmpbuf) == 0) \
{ \
han.Set(jmpbuf, NULL, (__SEHandler::PF)EXCEPTION_EXECUTE_HANDLER)
-
+
#define CATCH_DRIVER_EX_END(mes, p) \
} \
han.Reset()
@@ -189,11 +189,11 @@ static ULONG ImplWinQueueStatusToSal( DWORD nWinStatus )
static void getPrinterQueueInfoOldStyle( ImplPrnQueueList* pList )
{
- DWORD i;
- DWORD n;
- DWORD nBytes = 0;
- DWORD nInfoPrn2;
- BOOL bFound = FALSE;
+ DWORD i;
+ DWORD n;
+ DWORD nBytes = 0;
+ DWORD nInfoPrn2;
+ BOOL bFound = FALSE;
PRINTER_INFO_2* pWinInfo2 = NULL;
PRINTER_INFO_2* pGetInfo2;
EnumPrintersA( PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &nBytes, &nInfoPrn2 );
@@ -207,7 +207,7 @@ static void getPrinterQueueInfoOldStyle( ImplPrnQueueList* pList )
{
SalPrinterQueueInfo* pInfo = new SalPrinterQueueInfo;
pInfo->maPrinterName = ImplSalGetUniString( pGetInfo2->pPrinterName );
- pInfo->maDriver = ImplSalGetUniString( pGetInfo2->pDriverName );
+ pInfo->maDriver = ImplSalGetUniString( pGetInfo2->pDriverName );
XubString aPortName;
if ( pGetInfo2->pPortName )
aPortName = ImplSalGetUniString( pGetInfo2->pPortName );
@@ -219,9 +219,9 @@ static void getPrinterQueueInfoOldStyle( ImplPrnQueueList* pList )
// pComment can be 0 (the Windows docu doesn't describe this)
if ( pGetInfo2->pComment )
pInfo->maComment = ImplSalGetUniString( pGetInfo2->pComment );
- pInfo->mnStatus = ImplWinQueueStatusToSal( pGetInfo2->Status );
- pInfo->mnJobs = pGetInfo2->cJobs;
- pInfo->mpSysData = new XubString( aPortName );
+ pInfo->mnStatus = ImplWinQueueStatusToSal( pGetInfo2->Status );
+ pInfo->mnJobs = pGetInfo2->cJobs;
+ pInfo->mpSysData = new XubString( aPortName );
pList->Add( pInfo );
pGetInfo2++;
}
@@ -233,9 +233,9 @@ static void getPrinterQueueInfoOldStyle( ImplPrnQueueList* pList )
// read printers from win.ini
// TODO: MSDN: GetProfileString() should not be called from server
// code because it is just there for WIN16 compatibility
- UINT nSize = 4096;
- char* pBuf = new char[nSize];
- UINT nRead = GetProfileStringA( aImplDevices, NULL, "", pBuf, nSize );
+ UINT nSize = 4096;
+ char* pBuf = new char[nSize];
+ UINT nRead = GetProfileStringA( aImplDevices, NULL, "", pBuf, nSize );
while ( nRead >= nSize-2 )
{
nSize += 2048;
@@ -248,9 +248,9 @@ static void getPrinterQueueInfoOldStyle( ImplPrnQueueList* pList )
char* pName = pBuf;
while ( *pName )
{
- char* pPortName;
- char* pTmp;
- char aPortBuf[256];
+ char* pPortName;
+ char* pTmp;
+ char aPortBuf[256];
GetProfileStringA( aImplDevices, pName, "", aPortBuf, sizeof( aPortBuf ) );
pPortName = aPortBuf;
@@ -297,11 +297,11 @@ static void getPrinterQueueInfoOldStyle( ImplPrnQueueList* pList )
{
SalPrinterQueueInfo* pInfo = new SalPrinterQueueInfo;
pInfo->maPrinterName = aName;
- pInfo->maDriver = aDriver;
- pInfo->maLocation = aPortName;
- pInfo->mnStatus = 0;
- pInfo->mnJobs = QUEUE_JOBS_DONTKNOW;
- pInfo->mpSysData = new XubString( aPortName );
+ pInfo->maDriver = aDriver;
+ pInfo->maLocation = aPortName;
+ pInfo->mnStatus = 0;
+ pInfo->mnJobs = QUEUE_JOBS_DONTKNOW;
+ pInfo->mpSysData = new XubString( aPortName );
pList->Add( pInfo );
}
}
@@ -321,9 +321,9 @@ void WinSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
getPrinterQueueInfoOldStyle( pList );
return;
}
- DWORD i;
- DWORD nBytes = 0;
- DWORD nInfoPrn4 = 0;
+ DWORD i;
+ DWORD nBytes = 0;
+ DWORD nInfoPrn4 = 0;
PRINTER_INFO_4W* pWinInfo4 = NULL;
EnumPrintersW( PRINTER_ENUM_LOCAL | PRINTER_ENUM_CONNECTIONS, NULL, 4, NULL, 0, &nBytes, &nInfoPrn4 );
if ( nBytes )
@@ -335,9 +335,9 @@ void WinSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
{
SalPrinterQueueInfo* pInfo = new SalPrinterQueueInfo;
pInfo->maPrinterName = UniString( reinterpret_cast< const sal_Unicode* >(pWinInfo4[i].pPrinterName) );
- pInfo->mnStatus = 0;
- pInfo->mnJobs = 0;
- pInfo->mpSysData = NULL;
+ pInfo->mnStatus = 0;
+ pInfo->mnJobs = 0;
+ pInfo->mpSysData = NULL;
pList->Add( pInfo );
}
}
@@ -349,9 +349,9 @@ void WinSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
static void getPrinterQueueStateOldStyle( SalPrinterQueueInfo* pInfo )
{
- DWORD nBytes = 0;
- DWORD nInfoRet;
- PRINTER_INFO_2* pWinInfo2;
+ DWORD nBytes = 0;
+ DWORD nInfoRet;
+ PRINTER_INFO_2* pWinInfo2;
EnumPrintersA( PRINTER_ENUM_LOCAL, NULL, 2, NULL, 0, &nBytes, &nInfoRet );
if ( nBytes )
{
@@ -377,10 +377,10 @@ static void getPrinterQueueStateOldStyle( SalPrinterQueueInfo* pInfo )
// pComment can be 0 (the Windows docu doesn't describe this)
if ( pGetInfo2->pComment )
pInfo->maComment = ImplSalGetUniString( pGetInfo2->pComment );
- pInfo->mnStatus = ImplWinQueueStatusToSal( pGetInfo2->Status );
- pInfo->mnJobs = pGetInfo2->cJobs;
+ pInfo->mnStatus = ImplWinQueueStatusToSal( pGetInfo2->Status );
+ pInfo->mnJobs = pGetInfo2->cJobs;
if( ! pInfo->mpSysData )
- pInfo->mpSysData = new XubString( aPortName );
+ pInfo->mpSysData = new XubString( aPortName );
break;
}
@@ -399,12 +399,12 @@ void WinSalInstance::GetPrinterQueueState( SalPrinterQueueInfo* pInfo )
getPrinterQueueStateOldStyle( pInfo );
return;
}
-
+
HANDLE hPrinter = 0;
LPWSTR pPrnName = reinterpret_cast<LPWSTR>(const_cast<sal_Unicode*>(pInfo->maPrinterName.GetBuffer()));
if( OpenPrinterW( pPrnName, &hPrinter, NULL ) )
{
- DWORD nBytes = 0;
+ DWORD nBytes = 0;
GetPrinterW( hPrinter, 2, NULL, 0, &nBytes );
if( nBytes )
{
@@ -424,10 +424,10 @@ void WinSalInstance::GetPrinterQueueState( SalPrinterQueueInfo* pInfo )
// pComment can be 0 (the Windows docu doesn't describe this)
if ( pWinInfo2->pComment )
pInfo->maComment = String( reinterpret_cast< const sal_Unicode* >(pWinInfo2->pComment) );
- pInfo->mnStatus = ImplWinQueueStatusToSal( pWinInfo2->Status );
- pInfo->mnJobs = pWinInfo2->cJobs;
+ pInfo->mnStatus = ImplWinQueueStatusToSal( pWinInfo2->Status );
+ pInfo->mnJobs = pWinInfo2->cJobs;
if( ! pInfo->mpSysData )
- pInfo->mpSysData = new XubString( aPortName );
+ pInfo->mpSysData = new XubString( aPortName );
}
rtl_freeMemory(pWinInfo2);
}
@@ -513,7 +513,7 @@ static DWORD ImplDeviceCaps( WinSalInfoPrinter* pPrinter, WORD nCaps,
pDevMode = NULL;
else
pDevMode = SAL_DEVMODE_W( pSetupData );
-
+
return DeviceCapabilitiesW( reinterpret_cast<LPCWSTR>(pPrinter->maDeviceName.GetBuffer()),
reinterpret_cast<LPCWSTR>(pPrinter->maPortName.GetBuffer()),
nCaps, (LPWSTR)pOutput, pDevMode );
@@ -525,7 +525,7 @@ static DWORD ImplDeviceCaps( WinSalInfoPrinter* pPrinter, WORD nCaps,
pDevMode = NULL;
else
pDevMode = SAL_DEVMODE_A( pSetupData );
-
+
return DeviceCapabilitiesA( ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE ).GetBuffer(),
ImplSalGetWinAnsiString( pPrinter->maPortName, TRUE ).GetBuffer(),
nCaps, (LPSTR)pOutput, pDevMode );
@@ -596,7 +596,7 @@ static BOOL ImplTestSalJobSetup( WinSalInfoPrinter* pPrinter,
(LPSTR)aPrinterNameA.GetBuffer(),
NULL, NULL, 0 );
}
-
+
if( nSysJobSize < 0 )
{
ClosePrinter( hPrn );
@@ -679,12 +679,12 @@ static BOOL ImplUpdateSalJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
if( hPrn == HGDI_ERROR )
return FALSE;
- LONG nRet;
- LONG nSysJobSize = -1;
- HWND hWnd = 0;
- DWORD nMode = DM_OUT_BUFFER;
- ULONG nDriverDataLen = 0;
- SalDriverData* pOutBuffer = NULL;
+ LONG nRet;
+ LONG nSysJobSize = -1;
+ HWND hWnd = 0;
+ DWORD nMode = DM_OUT_BUFFER;
+ ULONG nDriverDataLen = 0;
+ SalDriverData* pOutBuffer = NULL;
BYTE* pInBuffer = NULL;
if( aSalShlData.mbWPrinter )
@@ -704,12 +704,12 @@ static BOOL ImplUpdateSalJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
}
// Outputbuffer anlegen
- nDriverDataLen = sizeof(SalDriverData) + nSysJobSize-1;
- pOutBuffer = (SalDriverData*)rtl_allocateZeroMemory( nDriverDataLen );
- pOutBuffer->mnSysSignature = SAL_DRIVERDATA_SYSSIGN;
- pOutBuffer->mnVersion = aSalShlData.mbWPrinter ? SAL_DRIVERDATA_VERSION_W : SAL_DRIVERDATA_VERSION_A;
+ nDriverDataLen = sizeof(SalDriverData) + nSysJobSize-1;
+ pOutBuffer = (SalDriverData*)rtl_allocateZeroMemory( nDriverDataLen );
+ pOutBuffer->mnSysSignature = SAL_DRIVERDATA_SYSSIGN;
+ pOutBuffer->mnVersion = aSalShlData.mbWPrinter ? SAL_DRIVERDATA_VERSION_W : SAL_DRIVERDATA_VERSION_A;
// calculate driver data offset including structure padding
- pOutBuffer->mnDriverOffset = sal::static_int_cast<USHORT>(
+ pOutBuffer->mnDriverOffset = sal::static_int_cast<USHORT>(
(char*)pOutBuffer->maDriverData -
(char*)pOutBuffer );
@@ -731,7 +731,7 @@ static BOOL ImplUpdateSalJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
ULONG nMutexCount=0;
if ( pVisibleDlgParent )
nMutexCount = ImplSalReleaseYieldMutex();
-
+
BYTE* pOutDevMode = (((BYTE*)pOutBuffer) + pOutBuffer->mnDriverOffset);
if( aSalShlData.mbWPrinter )
{
@@ -791,8 +791,8 @@ static BOOL ImplUpdateSalJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
if ( pSetupData->mpDriverData )
rtl_freeMemory( pSetupData->mpDriverData );
pSetupData->mnDriverDataLen = nDriverDataLen;
- pSetupData->mpDriverData = (BYTE*)pOutBuffer;
- pSetupData->mnSystem = JOBSETUP_SYSTEM_WINDOWS;
+ pSetupData->mpDriverData = (BYTE*)pOutBuffer;
+ pSetupData->mnSystem = JOBSETUP_SYSTEM_WINDOWS;
return TRUE;
}
@@ -859,10 +859,10 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
}
else
{
- ULONG nPaperCount = ImplDeviceCaps( pPrinter, DC_PAPERS, NULL, pSetupData );
- WORD* pPapers = NULL;
- ULONG nPaperSizeCount = ImplDeviceCaps( pPrinter, DC_PAPERSIZE, NULL, pSetupData );
- POINT* pPaperSizes = NULL;
+ ULONG nPaperCount = ImplDeviceCaps( pPrinter, DC_PAPERS, NULL, pSetupData );
+ WORD* pPapers = NULL;
+ ULONG nPaperSizeCount = ImplDeviceCaps( pPrinter, DC_PAPERSIZE, NULL, pSetupData );
+ POINT* pPaperSizes = NULL;
if ( nPaperCount && (nPaperCount != GDI_ERROR) )
{
pPapers = (WORD*)rtl_allocateZeroMemory(nPaperCount*sizeof(WORD));
@@ -922,14 +922,14 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
//See http://wiki.services.openoffice.org/wiki/DefaultPaperSize
//i.e.
//http://msdn.microsoft.com/en-us/library/dd319099(VS.85).aspx
- //DMPAPER_B4 12 B4 (JIS) 257 x 364 mm
+ //DMPAPER_B4 12 B4 (JIS) 257 x 364 mm
//http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf
//also says that the MS DMPAPER_B4 is JIS, which makes most sense. And
//matches our Excel filter's belief about the matching XlPaperSize
//enumeration.
//
//http://msdn.microsoft.com/en-us/library/ms776398(VS.85).aspx said
- ////"DMPAPER_B4 12 B4 (JIS) 250 x 354"
+ ////"DMPAPER_B4 12 B4 (JIS) 250 x 354"
//which is bogus as it's either JIS 257 × 364 or ISO 250 × 353
//(cmc)
case( DMPAPER_B4 ):
@@ -1057,7 +1057,7 @@ static void ImplDevModeToJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
break;
}
}
-
+
if( nFlags & SAL_JOBSET_DUPLEXMODE )
{
DuplexMode eDuplex = DUPLEX_UNKNOWN;
@@ -1111,8 +1111,8 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
// PaperSize
if ( nFlags & SAL_JOBSET_PAPERSIZE )
{
- CHOOSE_DEVMODE(dmFields) |= DM_PAPERSIZE;
- CHOOSE_DEVMODE(dmPaperWidth) = 0;
+ CHOOSE_DEVMODE(dmFields) |= DM_PAPERSIZE;
+ CHOOSE_DEVMODE(dmPaperWidth) = 0;
CHOOSE_DEVMODE(dmPaperLength) = 0;
switch( pSetupData->mePaperFormat )
@@ -1144,11 +1144,11 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
#if 0
//http://msdn.microsoft.com/en-us/library/ms776398(VS.85).aspx
//DMPAPER_ENV_B6 is documented as:
- //"DMPAPER_ENV_B6 35 Envelope B6 176 x 125 mm"
+ //"DMPAPER_ENV_B6 35 Envelope B6 176 x 125 mm"
//which is the wrong way around, it is surely 125 x 176, i.e.
//compare DMPAPER_ENV_B4 and DMPAPER_ENV_B4 as
- //DMPAPER_ENV_B4 33 Envelope B4 250 x 353 mm
- //DMPAPER_ENV_B5 34 Envelope B5 176 x 250 mm
+ //DMPAPER_ENV_B4 33 Envelope B4 250 x 353 mm
+ //DMPAPER_ENV_B5 34 Envelope B5 176 x 250 mm
case( PAPER_B6_ISO ):
CHOOSE_DEVMODE(dmPaperSize) = DMPAPER_ENV_B6;
break;
@@ -1273,12 +1273,12 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
break;
default:
{
- short nPaper = 0;
- ULONG nPaperCount = ImplDeviceCaps( pPrinter, DC_PAPERS, NULL, pSetupData );
- WORD* pPapers = NULL;
- ULONG nPaperSizeCount = ImplDeviceCaps( pPrinter, DC_PAPERSIZE, NULL, pSetupData );
- POINT* pPaperSizes = NULL;
- DWORD nLandscapeAngle = ImplDeviceCaps( pPrinter, DC_ORIENTATION, NULL, pSetupData );
+ short nPaper = 0;
+ ULONG nPaperCount = ImplDeviceCaps( pPrinter, DC_PAPERS, NULL, pSetupData );
+ WORD* pPapers = NULL;
+ ULONG nPaperSizeCount = ImplDeviceCaps( pPrinter, DC_PAPERSIZE, NULL, pSetupData );
+ POINT* pPaperSizes = NULL;
+ DWORD nLandscapeAngle = ImplDeviceCaps( pPrinter, DC_ORIENTATION, NULL, pSetupData );
if ( nPaperCount && (nPaperCount != GDI_ERROR) )
{
pPapers = (WORD*)rtl_allocateZeroMemory(nPaperCount*sizeof(WORD));
@@ -1324,9 +1324,9 @@ static void ImplJobSetupToDevMode( WinSalInfoPrinter* pPrinter, ImplJobSetup* pS
if ( !nPaper )
{
- CHOOSE_DEVMODE(dmFields) |= DM_PAPERLENGTH | DM_PAPERWIDTH;
- CHOOSE_DEVMODE(dmPaperSize) = DMPAPER_USER;
- CHOOSE_DEVMODE(dmPaperWidth) = (short)(pSetupData->mnPaperWidth/10);
+ CHOOSE_DEVMODE(dmFields) |= DM_PAPERLENGTH | DM_PAPERWIDTH;
+ CHOOSE_DEVMODE(dmPaperSize) = DMPAPER_USER;
+ CHOOSE_DEVMODE(dmPaperWidth) = (short)(pSetupData->mnPaperWidth/10);
CHOOSE_DEVMODE(dmPaperLength) = (short)(pSetupData->mnPaperHeight/10);
}
@@ -1452,12 +1452,12 @@ static WinSalGraphics* ImplCreateSalPrnGraphics( HDC hDC )
{
WinSalGraphics* pGraphics = new WinSalGraphics;
pGraphics->SetLayout( 0 );
- pGraphics->mhDC = hDC;
- pGraphics->mhWnd = 0;
+ pGraphics->mhDC = hDC;
+ pGraphics->mhWnd = 0;
pGraphics->mbPrinter = TRUE;
- pGraphics->mbVirDev = FALSE;
- pGraphics->mbWindow = FALSE;
- pGraphics->mbScreen = FALSE;
+ pGraphics->mbVirDev = FALSE;
+ pGraphics->mbWindow = FALSE;
+ pGraphics->mbScreen = FALSE;
ImplSalInitGraphics( pGraphics );
return pGraphics;
}
@@ -1478,7 +1478,7 @@ static BOOL ImplUpdateSalPrnIC( WinSalInfoPrinter* pPrinter, ImplJobSetup* pSetu
}
pPrinter->mpGraphics = ImplCreateSalPrnGraphics( hNewDC );
- pPrinter->mhDC = hNewDC;
+ pPrinter->mhDC = hNewDC;
return TRUE;
}
@@ -1491,9 +1491,9 @@ SalInfoPrinter* WinSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueIn
WinSalInfoPrinter* pPrinter = new WinSalInfoPrinter;
if( ! pQueueInfo->mpSysData )
GetPrinterQueueState( pQueueInfo );
- pPrinter->maDriverName = pQueueInfo->maDriver;
- pPrinter->maDeviceName = pQueueInfo->maPrinterName;
- pPrinter->maPortName = pQueueInfo->mpSysData ?
+ pPrinter->maDriverName = pQueueInfo->maDriver;
+ pPrinter->maDeviceName = pQueueInfo->maPrinterName;
+ pPrinter->maPortName = pQueueInfo->mpSysData ?
*(String*)(pQueueInfo->mpSysData)
: String();
@@ -1508,7 +1508,7 @@ SalInfoPrinter* WinSalInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueIn
}
pPrinter->mpGraphics = ImplCreateSalPrnGraphics( hDC );
- pPrinter->mhDC = hDC;
+ pPrinter->mhDC = hDC;
if ( !pSetupData->mpDriverData )
ImplUpdateSalJobSetup( pPrinter, pSetupData, FALSE, NULL );
ImplDevModeToJobSetup( pPrinter, pSetupData, SAL_JOBSET_ALL );
@@ -1759,12 +1759,12 @@ void WinSalInfoPrinter::GetPageInfo( const ImplJobSetup*,
{
HDC hDC = mhDC;
- rOutWidth = GetDeviceCaps( hDC, HORZRES );
- rOutHeight = GetDeviceCaps( hDC, VERTRES );
+ rOutWidth = GetDeviceCaps( hDC, HORZRES );
+ rOutHeight = GetDeviceCaps( hDC, VERTRES );
- rPageOffX = GetDeviceCaps( hDC, PHYSICALOFFSETX );
- rPageOffY = GetDeviceCaps( hDC, PHYSICALOFFSETY );
- rPageWidth = GetDeviceCaps( hDC, PHYSICALWIDTH );
+ rPageOffX = GetDeviceCaps( hDC, PHYSICALOFFSETX );
+ rPageOffY = GetDeviceCaps( hDC, PHYSICALOFFSETY );
+ rPageWidth = GetDeviceCaps( hDC, PHYSICALWIDTH );
rPageHeight = GetDeviceCaps( hDC, PHYSICALHEIGHT );
}
@@ -1788,10 +1788,10 @@ void WinSalInstance::DestroyPrinter( SalPrinter* pPrinter )
WIN_BOOL CALLBACK SalPrintAbortProc( HDC hPrnDC, int /* nError */ )
{
- SalData* pSalData = GetSalData();
+ SalData* pSalData = GetSalData();
WinSalPrinter* pPrinter;
- BOOL bWhile = TRUE;
- int i = 0;
+ BOOL bWhile = TRUE;
+ int i = 0;
do
{
@@ -1839,7 +1839,7 @@ static LPDEVMODEA ImplSalSetCopies( LPDEVMODEA pDevMode, ULONG nCopies, BOOL bCo
memcpy( pNewDevMode, pDevMode, nDevSize );
pDevMode = pNewDevMode;
pDevMode->dmFields |= DM_COPIES;
- pDevMode->dmCopies = (short)(USHORT)nCopies;
+ pDevMode->dmCopies = (short)(USHORT)nCopies;
if ( aSalShlData.mbW40 )
{
pDevMode->dmFields |= DM_COLLATE;
@@ -1865,7 +1865,7 @@ static LPDEVMODEW ImplSalSetCopies( LPDEVMODEW pDevMode, ULONG nCopies, BOOL bCo
memcpy( pNewDevMode, pDevMode, nDevSize );
pDevMode = pNewDevMode;
pDevMode->dmFields |= DM_COPIES;
- pDevMode->dmCopies = (short)(USHORT)nCopies;
+ pDevMode->dmCopies = (short)(USHORT)nCopies;
if ( aSalShlData.mbW40 )
{
pDevMode->dmFields |= DM_COLLATE;
@@ -1969,15 +1969,15 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
bool /*bDirect*/,
ImplJobSetup* pSetupData )
{
- mnError = 0;
- mbAbort = FALSE;
- mnCopies = nCopies;
- mbCollate = bCollate;
-
- LPDEVMODEA pOrgDevModeA = NULL;
- LPDEVMODEA pDevModeA = NULL;
- LPDEVMODEW pOrgDevModeW = NULL;
- LPDEVMODEW pDevModeW = NULL;
+ mnError = 0;
+ mbAbort = FALSE;
+ mnCopies = nCopies;
+ mbCollate = bCollate;
+
+ LPDEVMODEA pOrgDevModeA = NULL;
+ LPDEVMODEA pDevModeA = NULL;
+ LPDEVMODEW pOrgDevModeW = NULL;
+ LPDEVMODEW pDevModeW = NULL;
HDC hDC = 0;
if( aSalShlData.mbWPrinter )
{
@@ -1988,7 +1988,7 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
}
else
pDevModeW = NULL;
-
+
// #95347 some buggy drivers (eg, OKI) write to those buffers in CreateDC, although declared const - so provide some space
sal_Unicode aDrvBuf[4096];
sal_Unicode aDevBuf[4096];
@@ -1998,7 +1998,7 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
reinterpret_cast<LPCWSTR>(aDevBuf),
NULL,
pDevModeW );
-
+
if ( pDevModeW != pOrgDevModeW )
rtl_freeMemory( pDevModeW );
}
@@ -2011,7 +2011,7 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
}
else
pDevModeA = NULL;
-
+
// #95347 some buggy drivers (eg, OKI) write to those buffers in CreateDC, although declared const - so provide some space
ByteString aDriver ( ImplSalGetWinAnsiString( mpInfoPrinter->maDriverName, TRUE ) );
ByteString aDevice ( ImplSalGetWinAnsiString( mpInfoPrinter->maDeviceName, TRUE ) );
@@ -2025,10 +2025,10 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
lpszDeviceName,
NULL,
pDevModeA );
-
+
delete [] lpszDriverName;
delete [] lpszDeviceName;
-
+
if ( pDevModeA != pOrgDevModeA )
rtl_freeMemory( pDevModeA );
}
@@ -2047,8 +2047,8 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
return FALSE;
}
- mnError = 0;
- mbAbort = FALSE;
+ mnError = 0;
+ mbAbort = FALSE;
// Wegen Telocom Balloon Fax-Treiber, der uns unsere Messages
// ansonsten oefters schickt, versuchen wir vorher alle
@@ -2126,10 +2126,10 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
}
else
aInfo.lpszOutput = NULL;
-
+
// start Job
int nRet = lcl_StartDocW( hDC, &aInfo, this );
-
+
if ( nRet <= 0 )
{
long nError = GetLastError();
@@ -2137,7 +2137,7 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
mnError = SAL_PRINTER_ERROR_ABORT;
else
mnError = SAL_PRINTER_ERROR_GENERALERROR;
- return FALSE;
+ return FALSE;
}
}
else
@@ -2145,7 +2145,7 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
// Both strings must exist, if StartJob() is called
ByteString aJobName( ImplSalGetWinAnsiString( rJobName, TRUE ) );
ByteString aFileName;
-
+
DOCINFOA aInfo;
memset( &aInfo, 0, sizeof( DOCINFOA ) );
aInfo.cbSize = sizeof( aInfo );
@@ -2162,7 +2162,7 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
}
else
aInfo.lpszOutput = NULL;
-
+
// start Job
int nRet = lcl_StartDocA( hDC, &aInfo, this );
if ( nRet <= 0 )
@@ -2206,7 +2206,7 @@ BOOL WinSalPrinter::EndJob()
if( ::EndDoc( hDC ) <= 0 )
err = GetLastError();
CATCH_DRIVER_EX_END( "exception in EndDoc", this );
-
+
pSalData->mpFirstInstance->AcquireYieldMutex( nAcquire );
DeleteDC( hDC );
mhDC = 0;
@@ -2237,7 +2237,7 @@ BOOL WinSalPrinter::AbortJob()
void ImplSalPrinterAbortJobAsync( HDC hPrnDC )
{
- SalData* pSalData = GetSalData();
+ SalData* pSalData = GetSalData();
WinSalPrinter* pPrinter = pSalData->mpFirstPrinter;
// Feststellen, ob Printer noch existiert
@@ -2278,14 +2278,14 @@ SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, BOOL bNewJobDat
{
if( ! isValid() || mhDC == 0 )
return NULL;
-
+
HDC hDC = mhDC;
if ( pSetupData && pSetupData->mpDriverData && bNewJobData )
{
if( aSalShlData.mbWPrinter )
{
- LPDEVMODEW pOrgDevModeW;
- LPDEVMODEW pDevModeW;
+ LPDEVMODEW pOrgDevModeW;
+ LPDEVMODEW pDevModeW;
pOrgDevModeW = SAL_DEVMODE_W( pSetupData );
pDevModeW = ImplSalSetCopies( pOrgDevModeW, mnCopies, mbCollate );
ResetDCW( hDC, pDevModeW );
@@ -2294,8 +2294,8 @@ SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, BOOL bNewJobDat
}
else
{
- LPDEVMODEA pOrgDevModeA;
- LPDEVMODEA pDevModeA;
+ LPDEVMODEA pOrgDevModeA;
+ LPDEVMODEA pDevModeA;
pOrgDevModeA = SAL_DEVMODE_A( pSetupData );
pDevModeA = ImplSalSetCopies( pOrgDevModeA, mnCopies, mbCollate );
ResetDCA( hDC, pDevModeA );
@@ -2307,7 +2307,7 @@ SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, BOOL bNewJobDat
CATCH_DRIVER_EX_BEGIN;
nRet = ::StartPage( hDC );
CATCH_DRIVER_EX_END( "exception in StartPage", this );
-
+
if ( nRet <= 0 )
{
GetLastError();
@@ -2317,8 +2317,8 @@ SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, BOOL bNewJobDat
// Hack to work around old PostScript printer drivers optimizing away empty pages
// TODO: move into ImplCreateSalPrnGraphics()?
- HPEN hTempPen = SelectPen( hDC, GetStockPen( NULL_PEN ) );
- HBRUSH hTempBrush = SelectBrush( hDC, GetStockBrush( NULL_BRUSH ) );
+ HPEN hTempPen = SelectPen( hDC, GetStockPen( NULL_PEN ) );
+ HBRUSH hTempBrush = SelectBrush( hDC, GetStockBrush( NULL_BRUSH ) );
WIN_Rectangle( hDC, -8000, -8000, -7999, -7999 );
SelectPen( hDC, hTempPen );
SelectBrush( hDC, hTempBrush );
@@ -2341,7 +2341,7 @@ BOOL WinSalPrinter::EndPage()
if( ! isValid() )
return FALSE;
-
+
int nRet = 0;
CATCH_DRIVER_EX_BEGIN;
nRet = ::EndPage( hDC );
diff --git a/vcl/win/source/gdi/salvd.cxx b/vcl/win/source/gdi/salvd.cxx
index a076409aa0ea..d69727e9a460 100644
--- a/vcl/win/source/gdi/salvd.cxx
+++ b/vcl/win/source/gdi/salvd.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,9 +65,9 @@ static HBITMAP ImplCreateVirDevBitmap( HDC hDC, long nDX, long nDY,
aBitmapInfo.bmiHeader.biYPelsPerMeter = 0;
aBitmapInfo.bmiHeader.biClrUsed = 0;
aBitmapInfo.bmiHeader.biClrImportant = 0;
-
+
void* pDummy;
- hBitmap = CreateDIBSection( hDC, &aBitmapInfo,
+ hBitmap = CreateDIBSection( hDC, &aBitmapInfo,
DIB_RGB_COLORS, &pDummy, NULL,
0 );
}
@@ -84,7 +84,7 @@ SalVirtualDevice* WinSalInstance::CreateVirtualDevice( SalGraphics* pSGraphics,
{
WinSalGraphics* pGraphics = static_cast<WinSalGraphics*>(pSGraphics);
- HDC hDC = NULL;
+ HDC hDC = NULL;
HBITMAP hBmp = NULL;
BOOL bOk = FALSE;
@@ -96,11 +96,11 @@ SalVirtualDevice* WinSalInstance::CreateVirtualDevice( SalGraphics* pSGraphics,
}
else
{
- hDC = CreateCompatibleDC( pGraphics->mhDC );
+ hDC = CreateCompatibleDC( pGraphics->mhDC );
if( !hDC )
ImplWriteLastError( GetLastError(), "CreateCompatibleDC in CreateVirtualDevice" );
- hBmp = ImplCreateVirDevBitmap( pGraphics->mhDC,
+ hBmp = ImplCreateVirDevBitmap( pGraphics->mhDC,
nDX, nDY, nBitCount );
if( !hBmp )
ImplWriteLastError( GetLastError(), "ImplCreateVirDevBitmap in CreateVirtualDevice" );
@@ -115,12 +115,12 @@ SalVirtualDevice* WinSalInstance::CreateVirtualDevice( SalGraphics* pSGraphics,
if ( bOk )
{
- WinSalVirtualDevice* pVDev = new WinSalVirtualDevice;
+ WinSalVirtualDevice* pVDev = new WinSalVirtualDevice;
SalData* pSalData = GetSalData();
WinSalGraphics* pVirGraphics = new WinSalGraphics;
pVirGraphics->SetLayout( 0 ); // by default no! mirroring for VirtualDevices, can be enabled with EnableRTL()
- pVirGraphics->mhDC = hDC;
- pVirGraphics->mhWnd = 0;
+ pVirGraphics->mhDC = hDC;
+ pVirGraphics->mhWnd = 0;
pVirGraphics->mbPrinter = FALSE;
pVirGraphics->mbVirDev = TRUE;
pVirGraphics->mbWindow = FALSE;
@@ -132,15 +132,15 @@ SalVirtualDevice* WinSalInstance::CreateVirtualDevice( SalGraphics* pSGraphics,
}
ImplSalInitGraphics( pVirGraphics );
- pVDev->mhDC = hDC;
- pVDev->mhBmp = hBmp;
+ pVDev->mhDC = hDC;
+ pVDev->mhBmp = hBmp;
if( hBmp )
- pVDev->mhDefBmp = SelectBitmap( hDC, hBmp );
+ pVDev->mhDefBmp = SelectBitmap( hDC, hBmp );
else
pVDev->mhDefBmp = NULL;
- pVDev->mpGraphics = pVirGraphics;
- pVDev->mnBitCount = nBitCount;
- pVDev->mbGraphics = FALSE;
+ pVDev->mpGraphics = pVirGraphics;
+ pVDev->mnBitCount = nBitCount;
+ pVDev->mbGraphics = FALSE;
pVDev->mbForeignDC = (pData != NULL);
// insert VirDev in VirDevList
@@ -170,13 +170,13 @@ void WinSalInstance::DestroyVirtualDevice( SalVirtualDevice* pDevice )
WinSalVirtualDevice::WinSalVirtualDevice()
{
- mhDC = (HDC) NULL; // HDC or 0 for Cache Device
- mhBmp = (HBITMAP) NULL; // Memory Bitmap
- mhDefBmp = (HBITMAP) NULL; // Default Bitmap
- mpGraphics = NULL; // current VirDev graphics
- mpNext = NULL; // next VirDev
- mnBitCount = 0; // BitCount (0 or 1)
- mbGraphics = FALSE; // is Graphics used
+ mhDC = (HDC) NULL; // HDC or 0 for Cache Device
+ mhBmp = (HBITMAP) NULL; // Memory Bitmap
+ mhDefBmp = (HBITMAP) NULL; // Default Bitmap
+ mpGraphics = NULL; // current VirDev graphics
+ mpNext = NULL; // next VirDev
+ mnBitCount = 0; // BitCount (0 or 1)
+ mbGraphics = FALSE; // is Graphics used
mbForeignDC = FALSE; // uses a foreign DC instead of a bitmap
}
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index 9ef1035fc21c..0be43f46a84c 100644
--- a/vcl/win/source/gdi/winlayout.cxx
+++ b/vcl/win/source/gdi/winlayout.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -118,14 +118,14 @@ public:
int GetCachedGlyphWidth( int nCharCode ) const;
void CacheGlyphWidth( int nCharCode, int nCharWidth );
- bool InitKashidaHandling( HDC );
- int GetMinKashidaWidth() const { return mnMinKashidaWidth; }
- int GetMinKashidaGlyph() const { return mnMinKashidaGlyph; }
+ bool InitKashidaHandling( HDC );
+ int GetMinKashidaWidth() const { return mnMinKashidaWidth; }
+ int GetMinKashidaGlyph() const { return mnMinKashidaGlyph; }
private:
IntMap maWidthMap;
- mutable int mnMinKashidaWidth;
- mutable int mnMinKashidaGlyph;
+ mutable int mnMinKashidaWidth;
+ mutable int mnMinKashidaGlyph;
};
// -----------------------------------------------------------------------
@@ -1958,11 +1958,11 @@ int UniscribeLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos,
}
else
{
- nExtraOfs += nToFillWidth; // at right of cell
- nSubIter = 0; // done with glyph injection
+ nExtraOfs += nToFillWidth; // at right of cell
+ nSubIter = 0; // done with glyph injection
}
if( !bManualCellAlign )
- nExtraOfs -= nExtraWidth; // adjust for right-aligned cells
+ nExtraOfs -= nExtraWidth; // adjust for right-aligned cells
// adjust the draw position for the injected-glyphs case
if( nExtraOfs )
@@ -2171,7 +2171,7 @@ void UniscribeLayout::Simplify( bool /*bIsBase*/ )
}
// If there are still glyphs in the cluster and mnMinGlyphPos
// has changed then we need to remove the dropped glyphs at start
- // to correct logClusters, which is unsigned and relative to the
+ // to correct logClusters, which is unsigned and relative to the
// item start.
if (rVI.mnMinGlyphPos != nOrigMinGlyphPos)
{
@@ -2473,9 +2473,9 @@ void UniscribeLayout::ApplyDXArray( const ImplLayoutArgs& rArgs )
if( rVisualItem.IsRTL() )
{
for( i = rVisualItem.mnMinGlyphPos; i < rVisualItem.mnEndGlyphPos; ++i )
- if ( (1U << mpVisualAttrs[i].uJustification) & 0xFF82 ) // any Arabic justification
+ if ( (1U << mpVisualAttrs[i].uJustification) & 0xFF82 ) // any Arabic justification
{ // excluding SCRIPT_JUSTIFY_NONE
- // yes
+ // yes
rVisualItem.mbHasKashidas = true;
// so prepare for kashida handling
InitKashidaHandling();
@@ -2528,7 +2528,7 @@ void UniscribeLayout::ApplyDXArray( const ImplLayoutArgs& rArgs )
{
for( i = nMinGlyphPos; i < nEndGlyphPos; ++i )
nXOffset += mpJustifications[ i ];
-
+
if( rVisualItem.mbHasKashidas )
KashidaItemFix( nMinGlyphPos, nEndGlyphPos );
}
@@ -2559,7 +2559,7 @@ void UniscribeLayout::ApplyDXArray( const ImplLayoutArgs& rArgs )
void UniscribeLayout::InitKashidaHandling()
{
- if( mnMinKashidaGlyph != 0 ) // already initialized
+ if( mnMinKashidaGlyph != 0 ) // already initialized
return;
mrWinFontEntry.InitKashidaHandling( mhDC );
@@ -2576,8 +2576,8 @@ void UniscribeLayout::KashidaItemFix( int nMinGlyphPos, int nEndGlyphPos )
{
// check for vowels
if( (i > nMinGlyphPos && !mpGlyphAdvances[ i-1 ])
- && (1U << mpVisualAttrs[i].uJustification) & 0xFF83 ) // all Arabic justifiction types
- { // including SCRIPT_JUSTIFY_NONE
+ && (1U << mpVisualAttrs[i].uJustification) & 0xFF83 ) // all Arabic justifiction types
+ { // including SCRIPT_JUSTIFY_NONE
// vowel, we do it like ScriptJustify does
// the vowel gets the extra width
long nSpaceAdded = mpJustifications[ i ] - mpGlyphAdvances[ i ];
@@ -2627,7 +2627,7 @@ bool UniscribeLayout::KashidaWordFix ( int nMinGlyphPos, int nEndGlyphPos, int*
if ( nMaxAdded <= 0 )
return false;
// return early if there is not enough space for an extra kashida
- if( 2*nMaxAdded < mnMinKashidaWidth )
+ if( 2*nMaxAdded < mnMinKashidaWidth )
return false;
// redistribute the extra spacing to the kashida position
@@ -2651,7 +2651,7 @@ bool UniscribeLayout::KashidaWordFix ( int nMinGlyphPos, int nEndGlyphPos, int*
// ugly: steal some pixels
long nSteal = 1;
if ( nMaxPos - nMinPos > 0 && ((mnMinKashidaWidth - nSpaceAdded) > (nMaxPos - nMinPos)))
- nSteal = (mnMinKashidaWidth - nSpaceAdded) / (nMaxPos - nMinPos);
+ nSteal = (mnMinKashidaWidth - nSpaceAdded) / (nMaxPos - nMinPos);
for( int i = nMinPos; i <= nMaxPos; ++i )
{
if( i == nKashPos )
@@ -2710,7 +2710,7 @@ void UniscribeLayout::Justify( long nNewWidth )
if( nOldWidth <= 0 )
return;
- nNewWidth *= mnUnitsPerPixel; // convert into font units
+ nNewWidth *= mnUnitsPerPixel; // convert into font units
if( nNewWidth == nOldWidth )
return;
// prepare to distribute the extra width evenly among the visual items
@@ -2770,11 +2770,11 @@ bool UniscribeLayout::IsKashidaPosValid ( int nCharPos ) const
}
}
// Invalid char pos or leftmost glyph in visual item
- if ( nMinGlyphIndex == -1 || !mpLogClusters[ nCharPos ] )
+ if ( nMinGlyphIndex == -1 || !mpLogClusters[ nCharPos ] )
return false;
-// This test didn't give the expected results
-/* if( mpLogClusters[ nCharPos+1 ] == mpLogClusters[ nCharPos ])
+// This test didn't give the expected results
+/* if( mpLogClusters[ nCharPos+1 ] == mpLogClusters[ nCharPos ])
// two chars, one glyph
return false;*/
@@ -2784,9 +2784,9 @@ bool UniscribeLayout::IsKashidaPosValid ( int nCharPos ) const
// justification is only allowed if the glyph to the left has not SCRIPT_JUSTIFY_NONE
// and not SCRIPT_JUSTIFY_ARABIC_BLANK
// special case: glyph to the left is vowel (no advance width)
- if ( mpVisualAttrs[ nGlyphPos-1 ].uJustification == SCRIPT_JUSTIFY_ARABIC_BLANK
- || ( mpVisualAttrs[ nGlyphPos-1 ].uJustification == SCRIPT_JUSTIFY_NONE
- && mpGlyphAdvances [ nGlyphPos-1 ] ))
+ if ( mpVisualAttrs[ nGlyphPos-1 ].uJustification == SCRIPT_JUSTIFY_ARABIC_BLANK
+ || ( mpVisualAttrs[ nGlyphPos-1 ].uJustification == SCRIPT_JUSTIFY_NONE
+ && mpGlyphAdvances [ nGlyphPos-1 ] ))
return false;
return true;
}
@@ -3084,7 +3084,7 @@ SalLayout* WinSalGraphics::GetTextLayout( ImplLayoutArgs& rArgs, int nFallbackLe
// -----------------------------------------------------------------------
-int WinSalGraphics::GetMinKashidaWidth()
+int WinSalGraphics::GetMinKashidaWidth()
{
if( !mpWinFontEntry[0] )
return 0;
@@ -3100,8 +3100,8 @@ ImplWinFontEntry::ImplWinFontEntry( ImplFontSelectData& rFSD )
, maWidthMap( 512 )
, mpKerningPairs( NULL )
, mnKerningPairs( -1 )
-, mnMinKashidaWidth( -1 )
-, mnMinKashidaGlyph( -1 )
+, mnMinKashidaWidth( -1 )
+, mnMinKashidaGlyph( -1 )
{
#ifdef USE_UNISCRIBE
maScriptCache = NULL;
@@ -3162,17 +3162,17 @@ int ImplWinFontEntry::GetKerning( sal_Unicode cLeft, sal_Unicode cRight ) const
bool ImplWinFontEntry::InitKashidaHandling( HDC hDC )
{
- if( mnMinKashidaWidth >= 0 ) // already cached?
+ if( mnMinKashidaWidth >= 0 ) // already cached?
return mnMinKashidaWidth;
// initialize the kashida width
mnMinKashidaWidth = 0;
mnMinKashidaGlyph = 0;
#ifdef USE_UNISCRIBE
- if (aUspModule || (bUspEnabled && InitUSP()))
+ if (aUspModule || (bUspEnabled && InitUSP()))
{
SCRIPT_FONTPROPERTIES aFontProperties;
- aFontProperties.cBytes = sizeof (aFontProperties);
+ aFontProperties.cBytes = sizeof (aFontProperties);
SCRIPT_CACHE& rScriptCache = GetScriptCache();
HRESULT nRC = (*pScriptGetFontProperties)( hDC, &rScriptCache, &aFontProperties );
if( nRC != 0 )
diff --git a/vcl/win/source/gdi/wntgdi.cxx b/vcl/win/source/gdi/wntgdi.cxx
index 5adc7fe18cf5..b0c470f8d989 100644
--- a/vcl/win/source/gdi/wntgdi.cxx
+++ b/vcl/win/source/gdi/wntgdi.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 6c002b673165..46a825b7ab51 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -257,12 +257,12 @@ void ImplSalGetWorkArea( HWND hWnd, RECT *pRect, const RECT *pParentRect )
if ( aSalShlData.maVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT )
{
if ( aSalShlData.maVersionInfo.dwMajorVersion <= 4 )
- winVerOk = 0; // NT
+ winVerOk = 0; // NT
}
else if( aSalShlData.maVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS )
{
if ( aSalShlData.maVersionInfo.dwMajorVersion == 4 && aSalShlData.maVersionInfo.dwMinorVersion == 0 )
- winVerOk = 0; // Win95
+ winVerOk = 0; // Win95
}
}
@@ -388,7 +388,7 @@ SalFrame* ImplSalCreateFrame( WinSalInstance* pInst,
// this breaks SAL_FRAME_STYLE_SYSTEMCHILD handling, which is not
// used currently. Probably SAL_FRAME_STYLE_SYSTEMCHILD should be
// removed again.
-
+
// nSysStyle |= WS_CLIPCHILDREN;
if ( hWndParent )
{
@@ -991,7 +991,7 @@ WinSalFrame::WinSalFrame()
mpClipRgnData = NULL;
mbFirstClipRect = TRUE;
mpNextClipRect = NULL;
- mnDisplay = 0;
+ mnDisplay = 0;
memset( &maState, 0, sizeof( SalFrameState ) );
maSysData.nSize = sizeof( SystemEnvData );
@@ -2179,7 +2179,7 @@ static void ImplSalToTop( HWND hWnd, USHORT nFlags )
WinSalFrame* pToTopFrame = GetWindowPtr( hWnd );
if( pToTopFrame && (pToTopFrame->mnStyle & SAL_FRAME_STYLE_SYSTEMCHILD) != 0 )
BringWindowToTop( hWnd );
-
+
if ( nFlags & SAL_FRAME_TOTOP_FOREGROUNDTASK )
{
// This magic code is necessary to connect the input focus of the
@@ -2232,7 +2232,7 @@ static void ImplSalToTop( HWND hWnd, USHORT nFlags )
void WinSalFrame::ToTop( USHORT nFlags )
{
- nFlags &= ~SAL_FRAME_TOTOP_GRABFOCUS; // this flag is not needed on win32
+ nFlags &= ~SAL_FRAME_TOTOP_GRABFOCUS; // this flag is not needed on win32
// Post this Message to the window, because this only works
// in the thread of the window, which has create this window.
// We post this message to avoid deadlocks
@@ -3277,13 +3277,13 @@ void WinSalFrame::BeginSetClipRegion( ULONG nRects )
delete [] (BYTE*)mpClipRgnData;
ULONG nRectBufSize = sizeof(RECT)*nRects;
mpClipRgnData = (RGNDATA*)new BYTE[sizeof(RGNDATA)-1+nRectBufSize];
- mpClipRgnData->rdh.dwSize = sizeof( RGNDATAHEADER );
- mpClipRgnData->rdh.iType = RDH_RECTANGLES;
- mpClipRgnData->rdh.nCount = nRects;
+ mpClipRgnData->rdh.dwSize = sizeof( RGNDATAHEADER );
+ mpClipRgnData->rdh.iType = RDH_RECTANGLES;
+ mpClipRgnData->rdh.nCount = nRects;
mpClipRgnData->rdh.nRgnSize = nRectBufSize;
SetRectEmpty( &(mpClipRgnData->rdh.rcBound) );
- mpNextClipRect = (RECT*)(&(mpClipRgnData->Buffer));
- mbFirstClipRect = TRUE;
+ mpNextClipRect = (RECT*)(&(mpClipRgnData->Buffer));
+ mbFirstClipRect = TRUE;
}
// -----------------------------------------------------------------------
@@ -3293,17 +3293,17 @@ void WinSalFrame::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
if( ! mpClipRgnData )
return;
- RECT* pRect = mpNextClipRect;
- RECT* pBoundRect = &(mpClipRgnData->rdh.rcBound);
- long nRight = nX + nWidth;
- long nBottom = nY + nHeight;
+ RECT* pRect = mpNextClipRect;
+ RECT* pBoundRect = &(mpClipRgnData->rdh.rcBound);
+ long nRight = nX + nWidth;
+ long nBottom = nY + nHeight;
if ( mbFirstClipRect )
{
- pBoundRect->left = nX;
- pBoundRect->top = nY;
- pBoundRect->right = nRight;
- pBoundRect->bottom = nBottom;
+ pBoundRect->left = nX;
+ pBoundRect->top = nY;
+ pBoundRect->right = nRight;
+ pBoundRect->bottom = nBottom;
mbFirstClipRect = FALSE;
}
else
@@ -3321,10 +3321,10 @@ void WinSalFrame::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
pBoundRect->bottom = (int)nBottom;
}
- pRect->left = (int)nX;
- pRect->top = (int)nY;
- pRect->right = (int)nRight;
- pRect->bottom = (int)nBottom;
+ pRect->left = (int)nX;
+ pRect->top = (int)nY;
+ pRect->right = (int)nRight;
+ pRect->bottom = (int)nBottom;
if( (mpNextClipRect - (RECT*)(&mpClipRgnData->Buffer)) < (int)mpClipRgnData->rdh.nCount )
mpNextClipRect++;
}
@@ -3896,9 +3896,9 @@ static long ImplHandleKeyMsg( HWND hWnd, UINT nMsg,
}
SalKeyEvent aKeyEvt;
- aKeyEvt.mnCode = nModCode; // Or should it be 0? - as this is always a character returned
- aKeyEvt.mnTime = GetMessageTime();
- aKeyEvt.mnRepeat = 0;
+ aKeyEvt.mnCode = nModCode; // Or should it be 0? - as this is always a character returned
+ aKeyEvt.mnTime = GetMessageTime();
+ aKeyEvt.mnRepeat = 0;
if( wParam >= Uni_SupplementaryPlanesStart )
{
@@ -3911,7 +3911,7 @@ static long ImplHandleKeyMsg( HWND hWnd, UINT nMsg,
wParam = (sal_Unicode) Uni_UTF32ToSurrogate2( wParam );
}
- aKeyEvt.mnCharCode = (sal_Unicode) wParam;
+ aKeyEvt.mnCharCode = (sal_Unicode) wParam;
nLastChar = 0;
nLastVKChar = 0;
@@ -4035,14 +4035,14 @@ static long ImplHandleKeyMsg( HWND hWnd, UINT nMsg,
aKeyEvt.mnTime = GetMessageTime();
aKeyEvt.mnCode |= nModCode;
aKeyEvt.mnRepeat = nRepeat;
-
+
if( (nModCode & (KEY_MOD1|KEY_MOD2)) == (KEY_MOD1|KEY_MOD2) &&
aKeyEvt.mnCharCode )
{
// this is actually AltGr and should not be handled as Alt
aKeyEvt.mnCode &= ~(KEY_MOD1|KEY_MOD2);
}
-
+
bIgnoreCharMsg = bCharPeek ? TRUE : FALSE;
long nRet = pFrame->CallCallback( nEvent, &aKeyEvt );
// independent part only reacts on keyup but Windows does not send
@@ -5014,9 +5014,9 @@ static int ImplDrawItem(HWND, WPARAM wParam, LPARAM lParam )
COLORREF clrPrevText, clrPrevBkgnd;
HFONT hfntOld;
HBRUSH hbrOld;
- BOOL fChecked = (pDI->itemState & ODS_CHECKED) ? TRUE : FALSE;
- BOOL fSelected = (pDI->itemState & ODS_SELECTED) ? TRUE : FALSE;
- BOOL fDisabled = (pDI->itemState & (ODS_DISABLED | ODS_GRAYED)) ? TRUE : FALSE;
+ BOOL fChecked = (pDI->itemState & ODS_CHECKED) ? TRUE : FALSE;
+ BOOL fSelected = (pDI->itemState & ODS_SELECTED) ? TRUE : FALSE;
+ BOOL fDisabled = (pDI->itemState & (ODS_DISABLED | ODS_GRAYED)) ? TRUE : FALSE;
// Set the appropriate foreground and background colors.
RECT aRect = pDI->rcItem;
@@ -5081,9 +5081,9 @@ static int ImplDrawItem(HWND, WPARAM wParam, LPARAM lParam )
if( hDrawDIB )
{
- PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( hDrawDIB );
- PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
- PBYTE pBits = (PBYTE) pBI + *(DWORD*) pBI +
+ PBITMAPINFO pBI = (PBITMAPINFO) GlobalLock( hDrawDIB );
+ PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI;
+ PBYTE pBits = (PBYTE) pBI + *(DWORD*) pBI +
pSalBmp->ImplGetDIBColorCount( hDrawDIB ) * sizeof( RGBQUAD );
HBITMAP hBmp = CreateDIBitmap( pDI->hDC, pBIH, CBM_INIT, pBits, pBI, DIB_RGB_COLORS );
@@ -5684,23 +5684,23 @@ static boolean ImplHandleAppCommand( HWND hWnd, LPARAM lParam )
sal_Int16 nCommand = 0;
switch( GET_APPCOMMAND_LPARAM(lParam) )
{
- case APPCOMMAND_MEDIA_CHANNEL_DOWN: nCommand = MEDIA_COMMAND_CHANNEL_DOWN; break;
- case APPCOMMAND_MEDIA_CHANNEL_UP: nCommand = MEDIA_COMMAND_CHANNEL_UP; break;
- case APPCOMMAND_MEDIA_NEXTTRACK: nCommand = MEDIA_COMMAND_NEXTTRACK; break;
- case APPCOMMAND_MEDIA_PAUSE: nCommand = MEDIA_COMMAND_PAUSE; break;
- case APPCOMMAND_MEDIA_PLAY: nCommand = MEDIA_COMMAND_PLAY; break;
- case APPCOMMAND_MEDIA_PLAY_PAUSE: nCommand = MEDIA_COMMAND_PLAY_PAUSE; break;
- case APPCOMMAND_MEDIA_PREVIOUSTRACK: nCommand = MEDIA_COMMAND_PREVIOUSTRACK; break;
- case APPCOMMAND_MEDIA_RECORD: nCommand = MEDIA_COMMAND_RECORD; break;
- case APPCOMMAND_MEDIA_REWIND: nCommand = MEDIA_COMMAND_REWIND; break;
- case APPCOMMAND_MEDIA_STOP: nCommand = MEDIA_COMMAND_STOP; break;
- case APPCOMMAND_MIC_ON_OFF_TOGGLE: nCommand = MEDIA_COMMAND_MIC_ON_OFF_TOGGLE; break;
- case APPCOMMAND_MICROPHONE_VOLUME_DOWN: nCommand = MEDIA_COMMAND_MICROPHONE_VOLUME_DOWN; break;
- case APPCOMMAND_MICROPHONE_VOLUME_MUTE: nCommand = MEDIA_COMMAND_MICROPHONE_VOLUME_MUTE; break;
- case APPCOMMAND_MICROPHONE_VOLUME_UP: nCommand = MEDIA_COMMAND_MICROPHONE_VOLUME_UP; break;
- case APPCOMMAND_VOLUME_DOWN: nCommand = MEDIA_COMMAND_VOLUME_DOWN; break;
- case APPCOMMAND_VOLUME_MUTE: nCommand = MEDIA_COMMAND_VOLUME_MUTE; break;
- case APPCOMMAND_VOLUME_UP: nCommand = MEDIA_COMMAND_VOLUME_UP; break;
+ case APPCOMMAND_MEDIA_CHANNEL_DOWN: nCommand = MEDIA_COMMAND_CHANNEL_DOWN; break;
+ case APPCOMMAND_MEDIA_CHANNEL_UP: nCommand = MEDIA_COMMAND_CHANNEL_UP; break;
+ case APPCOMMAND_MEDIA_NEXTTRACK: nCommand = MEDIA_COMMAND_NEXTTRACK; break;
+ case APPCOMMAND_MEDIA_PAUSE: nCommand = MEDIA_COMMAND_PAUSE; break;
+ case APPCOMMAND_MEDIA_PLAY: nCommand = MEDIA_COMMAND_PLAY; break;
+ case APPCOMMAND_MEDIA_PLAY_PAUSE: nCommand = MEDIA_COMMAND_PLAY_PAUSE; break;
+ case APPCOMMAND_MEDIA_PREVIOUSTRACK: nCommand = MEDIA_COMMAND_PREVIOUSTRACK; break;
+ case APPCOMMAND_MEDIA_RECORD: nCommand = MEDIA_COMMAND_RECORD; break;
+ case APPCOMMAND_MEDIA_REWIND: nCommand = MEDIA_COMMAND_REWIND; break;
+ case APPCOMMAND_MEDIA_STOP: nCommand = MEDIA_COMMAND_STOP; break;
+ case APPCOMMAND_MIC_ON_OFF_TOGGLE: nCommand = MEDIA_COMMAND_MIC_ON_OFF_TOGGLE; break;
+ case APPCOMMAND_MICROPHONE_VOLUME_DOWN: nCommand = MEDIA_COMMAND_MICROPHONE_VOLUME_DOWN; break;
+ case APPCOMMAND_MICROPHONE_VOLUME_MUTE: nCommand = MEDIA_COMMAND_MICROPHONE_VOLUME_MUTE; break;
+ case APPCOMMAND_MICROPHONE_VOLUME_UP: nCommand = MEDIA_COMMAND_MICROPHONE_VOLUME_UP; break;
+ case APPCOMMAND_VOLUME_DOWN: nCommand = MEDIA_COMMAND_VOLUME_DOWN; break;
+ case APPCOMMAND_VOLUME_MUTE: nCommand = MEDIA_COMMAND_VOLUME_MUTE; break;
+ case APPCOMMAND_VOLUME_UP: nCommand = MEDIA_COMMAND_VOLUME_UP; break;
break;
default:
return false;
@@ -5802,10 +5802,10 @@ static LRESULT ImplHandleIMEReconvertString( HWND hWnd, LPARAM lParam )
{
// The first call for reconversion.
pFrame->CallCallback( SALEVENT_STARTRECONVERSION, (void*)NULL );
-
+
// Retrieve the surrounding text from the focused control.
pFrame->CallCallback( SALEVENT_SURROUNDINGTEXTREQUEST, (void*)&aEvt );
-
+
if( aEvt.maText.Len() == 0 )
{
return 0;
@@ -5916,7 +5916,7 @@ LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lP
{
LRESULT nRet = 0;
static int bInWheelMsg = FALSE;
- static int bInQueryEnd = FALSE;
+ static int bInQueryEnd = FALSE;
// By WM_CRETAE we connect the frame with the window handle
if ( nMsg == WM_CREATE )
@@ -6185,7 +6185,7 @@ LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lP
if ( nRet )
{
- MSG msg;
+ MSG msg;
while( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) )
{
@@ -6282,7 +6282,7 @@ LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lP
break;
case WM_APPCOMMAND:
if( ImplHandleAppCommand( hWnd, lParam ) )
- {
+ {
rDef = false;
nRet = 1;
}
diff --git a/vcl/win/source/window/salmenu.cxx b/vcl/win/source/window/salmenu.cxx
index e86e3f27903d..0a22c2c028fd 100644
--- a/vcl/win/source/window/salmenu.cxx
+++ b/vcl/win/source/window/salmenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -108,9 +108,9 @@ SalMenuItem* WinSalInstance::CreateMenuItem( const SalItemParams* pItemData )
// 'translate' mnemonics
pSalMenuItem->mText.SearchAndReplace( '~', '&' );
-
+
pSalMenuItem->mInfo.fMask = MIIM_TYPE | MIIM_STATE | MIIM_ID | MIIM_DATA;
- pSalMenuItem->mInfo.fType = MFT_STRING;
+ pSalMenuItem->mInfo.fType = MFT_STRING;
#ifdef OWNERDRAW
if( pItemData->pMenu && !pItemData->pMenu->IsMenuBar() )
pSalMenuItem->mInfo.fType |= MFT_OWNERDRAW;
@@ -118,7 +118,7 @@ SalMenuItem* WinSalInstance::CreateMenuItem( const SalItemParams* pItemData )
#endif
pSalMenuItem->mInfo.dwTypeData = (LPWSTR) pSalMenuItem->mText.GetBuffer();
pSalMenuItem->mInfo.cch = pSalMenuItem->mText.Len();
-
+
pSalMenuItem->mInfo.wID = pItemData->nId;
pSalMenuItem->mInfo.dwItemData = (ULONG_PTR) pSalMenuItem; // user data
}
diff --git a/vcl/win/source/window/salobj.cxx b/vcl/win/source/window/salobj.cxx
index 22a2622e3cbd..79cef0623469 100644
--- a/vcl/win/source/window/salobj.cxx
+++ b/vcl/win/source/window/salobj.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,7 +65,7 @@ static BOOL ImplIsSysWindowOrChild( HWND hWndParent, HWND hWndChild )
WinSalObject* ImplFindSalObject( HWND hWndChild )
{
SalData* pSalData = GetSalData();
- WinSalObject* pObject = pSalData->mpFirstObject;
+ WinSalObject* pObject = pSalData->mpFirstObject;
while ( pObject )
{
if ( ImplIsSysWindowOrChild( pObject->mhWndChild, hWndChild ) )
@@ -163,8 +163,8 @@ LRESULT CALLBACK SalSysMsgProc( int nCode, WPARAM wParam, LPARAM lParam )
BOOL ImplSalPreDispatchMsg( MSG* pMsg )
{
// Used for Unicode and none Unicode
- SalData* pSalData = GetSalData();
- WinSalObject* pObject;
+ SalData* pSalData = GetSalData();
+ WinSalObject* pObject;
if ( (pMsg->message == WM_LBUTTONDOWN) ||
(pMsg->message == WM_RBUTTONDOWN) ||
@@ -250,8 +250,8 @@ BOOL ImplSalPreDispatchMsg( MSG* pMsg )
void ImplSalPostDispatchMsg( MSG* pMsg, LRESULT /* nDispatchResult */ )
{
// Used for Unicode and none Unicode
- SalData* pSalData = GetSalData();
- WinSalFrame* pFrame;
+ SalData* pSalData = GetSalData();
+ WinSalFrame* pFrame;
if ( (pMsg->message == WM_KEYDOWN) || (pMsg->message == WM_KEYUP) )
{
@@ -276,8 +276,8 @@ void ImplSalPostDispatchMsg( MSG* pMsg, LRESULT /* nDispatchResult */ )
LRESULT CALLBACK SalSysObjWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam, int& rDef )
{
- WinSalObject* pSysObj;
- LRESULT nRet = 0;
+ WinSalObject* pSysObj;
+ LRESULT nRet = 0;
switch( nMsg )
{
@@ -336,7 +336,7 @@ LRESULT CALLBACK SalSysObjWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM l
if ( ImplSalYieldMutexTryToAcquire() )
{
pSysObj = GetSalObjWindowPtr( hWnd );
- HWND hFocusWnd = ::GetFocus();
+ HWND hFocusWnd = ::GetFocus();
USHORT nEvent;
if ( hFocusWnd && ImplIsSysWindowOrChild( hWnd, hFocusWnd ) )
nEvent = SALOBJ_EVENT_GETFOCUS;
@@ -514,25 +514,25 @@ SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent )
if ( false )//aSalShlData.mbWNT )
{
WNDCLASSEXW aWndClassEx;
- aWndClassEx.cbSize = sizeof( aWndClassEx );
- aWndClassEx.style = 0;
- aWndClassEx.lpfnWndProc = SalSysObjWndProcW;
- aWndClassEx.cbClsExtra = 0;
- aWndClassEx.cbWndExtra = SAL_OBJECT_WNDEXTRA;
- aWndClassEx.hInstance = pSalData->mhInst;
- aWndClassEx.hIcon = 0;
- aWndClassEx.hIconSm = 0;
- aWndClassEx.hCursor = LoadCursor( 0, IDC_ARROW );
- aWndClassEx.hbrBackground = 0;
- aWndClassEx.lpszMenuName = 0;
- aWndClassEx.lpszClassName = SAL_OBJECT_CLASSNAMEW;
+ aWndClassEx.cbSize = sizeof( aWndClassEx );
+ aWndClassEx.style = 0;
+ aWndClassEx.lpfnWndProc = SalSysObjWndProcW;
+ aWndClassEx.cbClsExtra = 0;
+ aWndClassEx.cbWndExtra = SAL_OBJECT_WNDEXTRA;
+ aWndClassEx.hInstance = pSalData->mhInst;
+ aWndClassEx.hIcon = 0;
+ aWndClassEx.hIconSm = 0;
+ aWndClassEx.hCursor = LoadCursor( 0, IDC_ARROW );
+ aWndClassEx.hbrBackground = 0;
+ aWndClassEx.lpszMenuName = 0;
+ aWndClassEx.lpszClassName = SAL_OBJECT_CLASSNAMEW;
if ( RegisterClassExW( &aWndClassEx ) )
{
// Wegen PlugIn's loeschen wir erstmal den Hintergrund
- aWndClassEx.cbWndExtra = 0;
- aWndClassEx.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
- aWndClassEx.lpfnWndProc = SalSysObjChildWndProcW;
- aWndClassEx.lpszClassName = SAL_OBJECT_CHILDCLASSNAMEW;
+ aWndClassEx.cbWndExtra = 0;
+ aWndClassEx.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
+ aWndClassEx.lpfnWndProc = SalSysObjChildWndProcW;
+ aWndClassEx.lpszClassName = SAL_OBJECT_CHILDCLASSNAMEW;
if ( RegisterClassExW( &aWndClassEx ) )
pSalData->mbObjClassInit = TRUE;
}
@@ -540,25 +540,25 @@ SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent )
else
{
WNDCLASSEXA aWndClassEx;
- aWndClassEx.cbSize = sizeof( aWndClassEx );
- aWndClassEx.style = 0;
- aWndClassEx.lpfnWndProc = SalSysObjWndProcA;
- aWndClassEx.cbClsExtra = 0;
- aWndClassEx.cbWndExtra = SAL_OBJECT_WNDEXTRA;
- aWndClassEx.hInstance = pSalData->mhInst;
- aWndClassEx.hIcon = 0;
- aWndClassEx.hIconSm = 0;
- aWndClassEx.hCursor = LoadCursor( 0, IDC_ARROW );
- aWndClassEx.hbrBackground = 0;
- aWndClassEx.lpszMenuName = 0;
- aWndClassEx.lpszClassName = SAL_OBJECT_CLASSNAMEA;
+ aWndClassEx.cbSize = sizeof( aWndClassEx );
+ aWndClassEx.style = 0;
+ aWndClassEx.lpfnWndProc = SalSysObjWndProcA;
+ aWndClassEx.cbClsExtra = 0;
+ aWndClassEx.cbWndExtra = SAL_OBJECT_WNDEXTRA;
+ aWndClassEx.hInstance = pSalData->mhInst;
+ aWndClassEx.hIcon = 0;
+ aWndClassEx.hIconSm = 0;
+ aWndClassEx.hCursor = LoadCursor( 0, IDC_ARROW );
+ aWndClassEx.hbrBackground = 0;
+ aWndClassEx.lpszMenuName = 0;
+ aWndClassEx.lpszClassName = SAL_OBJECT_CLASSNAMEA;
if ( RegisterClassExA( &aWndClassEx ) )
{
// Wegen PlugIn's loeschen wir erstmal den Hintergrund
- aWndClassEx.cbWndExtra = 0;
- aWndClassEx.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
- aWndClassEx.lpfnWndProc = SalSysObjChildWndProcA;
- aWndClassEx.lpszClassName = SAL_OBJECT_CHILDCLASSNAMEA;
+ aWndClassEx.cbWndExtra = 0;
+ aWndClassEx.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
+ aWndClassEx.lpfnWndProc = SalSysObjChildWndProcA;
+ aWndClassEx.lpszClassName = SAL_OBJECT_CHILDCLASSNAMEA;
if ( RegisterClassExA( &aWndClassEx ) )
pSalData->mbObjClassInit = TRUE;
}
@@ -568,7 +568,7 @@ SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent )
if ( pSalData->mbObjClassInit )
{
WinSalObject* pObject = new WinSalObject;
-
+
// #135235# Clip siblings of this
// SystemChildWindow. Otherwise, DXCanvas (using a hidden
// SystemChildWindow) clobbers applets/plugins during
@@ -601,9 +601,9 @@ SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent )
if ( hWnd )
{
- pObject->mhWnd = hWnd;
- pObject->mhWndChild = hWndChild;
- pObject->maSysData.hWnd = hWndChild;
+ pObject->mhWnd = hWnd;
+ pObject->mhWndChild = hWndChild;
+ pObject->maSysData.hWnd = hWndChild;
return pObject;
}
}
@@ -617,11 +617,11 @@ WinSalObject::WinSalObject()
{
SalData* pSalData = GetSalData();
- mhWnd = 0;
- mhWndChild = 0;
- mhLastFocusWnd = 0;
- maSysData.nSize = sizeof( SystemEnvData );
- mpStdClipRgnData = NULL;
+ mhWnd = 0;
+ mhWndChild = 0;
+ mhLastFocusWnd = 0;
+ maSysData.nSize = sizeof( SystemEnvData );
+ mpStdClipRgnData = NULL;
// Insert object in objectlist
mpNextObject = pSalData->mpFirstObject;
@@ -699,30 +699,30 @@ void WinSalObject::BeginSetClipRegion( ULONG nRectCount )
}
else
mpClipRgnData = (RGNDATA*)new BYTE[sizeof(RGNDATA)-1+nRectBufSize];
- mpClipRgnData->rdh.dwSize = sizeof( RGNDATAHEADER );
- mpClipRgnData->rdh.iType = RDH_RECTANGLES;
- mpClipRgnData->rdh.nCount = nRectCount;
+ mpClipRgnData->rdh.dwSize = sizeof( RGNDATAHEADER );
+ mpClipRgnData->rdh.iType = RDH_RECTANGLES;
+ mpClipRgnData->rdh.nCount = nRectCount;
mpClipRgnData->rdh.nRgnSize = nRectBufSize;
SetRectEmpty( &(mpClipRgnData->rdh.rcBound) );
- mpNextClipRect = (RECT*)(&(mpClipRgnData->Buffer));
- mbFirstClipRect = TRUE;
+ mpNextClipRect = (RECT*)(&(mpClipRgnData->Buffer));
+ mbFirstClipRect = TRUE;
}
// -----------------------------------------------------------------------
void WinSalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
{
- RECT* pRect = mpNextClipRect;
- RECT* pBoundRect = &(mpClipRgnData->rdh.rcBound);
- long nRight = nX + nWidth;
- long nBottom = nY + nHeight;
+ RECT* pRect = mpNextClipRect;
+ RECT* pBoundRect = &(mpClipRgnData->rdh.rcBound);
+ long nRight = nX + nWidth;
+ long nBottom = nY + nHeight;
if ( mbFirstClipRect )
{
- pBoundRect->left = nX;
- pBoundRect->top = nY;
- pBoundRect->right = nRight;
- pBoundRect->bottom = nBottom;
+ pBoundRect->left = nX;
+ pBoundRect->top = nY;
+ pBoundRect->right = nRight;
+ pBoundRect->bottom = nBottom;
mbFirstClipRect = FALSE;
}
else
@@ -740,10 +740,10 @@ void WinSalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight
pBoundRect->bottom = (int)nBottom;
}
- pRect->left = (int)nX;
- pRect->top = (int)nY;
- pRect->right = (int)nRight;
- pRect->bottom = (int)nBottom;
+ pRect->left = (int)nX;
+ pRect->top = (int)nY;
+ pRect->right = (int)nRight;
+ pRect->bottom = (int)nBottom;
mpNextClipRect++;
}
diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx
index 18b5a19aa646..4d247dd6501f 100644
--- a/vcl/workben/outdevgrind.cxx
+++ b/vcl/workben/outdevgrind.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -115,7 +115,7 @@ void setupMethodStubs( functor_vector_type& res )
const Point aPt2(500,500);
const Point aPt3(0,0);
const Point aPt4(450,450);
-
+
const Rectangle aRect(aPt1,aPt2);
const Rectangle aRect2(aPt3,aPt4);
const Polygon aPoly(aRect);
@@ -421,7 +421,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Point&,
+ const Point&,
const Size&,
const Bitmap& ))(
&OutputDevice::DrawBitmap),
@@ -437,7 +437,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Point&,
+ const Point&,
const Size&,
const Bitmap& ))(
&OutputDevice::DrawBitmap),
@@ -553,7 +553,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Point&,
+ const Point&,
const Size&,
const BitmapEx& ))(
&OutputDevice::DrawBitmapEx),
@@ -569,7 +569,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Point&,
+ const Point&,
const Size&,
const BitmapEx& ))(
&OutputDevice::DrawBitmapEx),
@@ -585,7 +585,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Point&,
+ const Point&,
const Size&,
const BitmapEx& ))(
&OutputDevice::DrawBitmapEx),
@@ -601,7 +601,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Point&,
+ const Point&,
const Size&,
const BitmapEx& ))(
&OutputDevice::DrawBitmapEx),
@@ -671,7 +671,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Point&,
+ const Point&,
const Size&,
const Bitmap&,
const Color& ))(
@@ -688,7 +688,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Point&,
+ const Point&,
const Size&,
const Bitmap&,
const Color& ))(
@@ -703,7 +703,7 @@ void setupMethodStubs( functor_vector_type& res )
"DrawImage",
boost::bind(
(void (OutputDevice::*)( const Point&,
- const Image&,
+ const Image&,
USHORT nStyle ))(
&OutputDevice::DrawImage),
_1,
@@ -717,7 +717,7 @@ void setupMethodStubs( functor_vector_type& res )
boost::bind(
(void (OutputDevice::*)( const Point&,
const Size&,
- const Image&,
+ const Image&,
USHORT nStyle ))(
&OutputDevice::DrawImage),
_1,
@@ -774,7 +774,7 @@ void setupMethodStubs( functor_vector_type& res )
aRect,Size(10,20),GRID_HORZLINES|GRID_VERTLINES ));
/* void DrawTransparent( const PolyPolygon& rPolyPoly,
- USHORT nTransparencePercent );
+ USHORT nTransparencePercent );
*/
add(res,
"DrawTransparent",
@@ -792,7 +792,7 @@ void setupMethodStubs( functor_vector_type& res )
"DrawTransparent(metafile)",
boost::bind(
(void (OutputDevice::*)( const GDIMetaFile&,
- const Point&,
+ const Point&,
const Size&,
const Gradient& ))(
&OutputDevice::DrawTransparent),
@@ -810,9 +810,9 @@ void setupMethodStubs( functor_vector_type& res )
//----------------------------------------------------------------------------------
-void grindFunc( OutputDevice& rTarget,
+void grindFunc( OutputDevice& rTarget,
functor_vector_type::const_iterator iter,
- sal_Int32 nTurns,
+ sal_Int32 nTurns,
const char* pMsg )
{
const sal_uInt32 nStartTime( osl_getGlobalTimer() );
@@ -823,7 +823,7 @@ void grindFunc( OutputDevice& rTarget,
if( rTarget.GetOutDevType() == OUTDEV_WINDOW )
static_cast<Window&>(rTarget).Sync();
- fprintf( stdout,
+ fprintf( stdout,
"Duration: %d ms (%d repetitions)\tOperation: %s\tSetup: %s\n",
(int)(osl_getGlobalTimer() - nStartTime),
(int)(nTurns),
@@ -908,7 +908,7 @@ USHORT GrindApp::Exception( USHORT nError )
switch( nError & EXC_MAJORTYPE )
{
case EXC_RSCNOTLOADED:
- Abort( String::CreateFromAscii(
+ Abort( String::CreateFromAscii(
"Error: could not load language resources.\nPlease check your installation.\n" ) );
break;
}
@@ -941,7 +941,7 @@ void GrindApp::Main()
try
{
uno::Reference< uno::XComponentContext > xCtx = ::cppu::defaultBootstrap_InitialComponentContext();
- xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
+ xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
uno::UNO_QUERY );
if( xFactory.is() )
::comphelper::setProcessServiceFactory( xFactory );
@@ -952,7 +952,7 @@ void GrindApp::Main()
if( !xFactory.is() )
{
- fprintf( stderr,
+ fprintf( stderr,
"Could not bootstrap UNO, installation must be in disorder. Exiting.\n" );
exit( 1 );
}
diff --git a/vcl/workben/svdem.cxx b/vcl/workben/svdem.cxx
index 2067fbe696ce..637c3c59b525 100644
--- a/vcl/workben/svdem.cxx
+++ b/vcl/workben/svdem.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -72,13 +72,13 @@ class MyWin : public WorkWindow
public:
MyWin( Window* pParent, WinBits nWinStyle );
- void MouseMove( const MouseEvent& rMEvt );
- void MouseButtonDown( const MouseEvent& rMEvt );
- void MouseButtonUp( const MouseEvent& rMEvt );
- void KeyInput( const KeyEvent& rKEvt );
- void KeyUp( const KeyEvent& rKEvt );
- void Paint( const Rectangle& rRect );
- void Resize();
+ void MouseMove( const MouseEvent& rMEvt );
+ void MouseButtonDown( const MouseEvent& rMEvt );
+ void MouseButtonUp( const MouseEvent& rMEvt );
+ void KeyInput( const KeyEvent& rKEvt );
+ void KeyUp( const KeyEvent& rKEvt );
+ void Paint( const Rectangle& rRect );
+ void Resize();
};
// -----------------------------------------------------------------------
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx
index 2f5fa442127a..85a3f34244a8 100644
--- a/vcl/workben/svpclient.cxx
+++ b/vcl/workben/svpclient.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,7 +89,7 @@ SAL_IMPLEMENT_MAIN()
catch( com::sun::star::uno::Exception& rExc)
{
}
-
+
if( ! xFactory.is() )
{
fprintf( stderr, "Could not bootstrap UNO, installation must be in disorder. Exiting.\n" );
@@ -97,7 +97,7 @@ SAL_IMPLEMENT_MAIN()
}
/*
- * Create UCB.
+ * Create UCB.
*/
Sequence< Any > aArgs( 2 );
aArgs[ 0 ] <<= OUString::createFromAscii( UCB_CONFIGURATION_KEY1_LOCAL );
@@ -133,19 +133,19 @@ class MyWin : public WorkWindow
public:
MyWin( Window* pParent, WinBits nWinStyle );
- void MouseMove( const MouseEvent& rMEvt );
- void MouseButtonDown( const MouseEvent& rMEvt );
- void MouseButtonUp( const MouseEvent& rMEvt );
- void KeyInput( const KeyEvent& rKEvt );
- void KeyUp( const KeyEvent& rKEvt );
- void Paint( const Rectangle& rRect );
- void Resize();
-
+ void MouseMove( const MouseEvent& rMEvt );
+ void MouseButtonDown( const MouseEvent& rMEvt );
+ void MouseButtonUp( const MouseEvent& rMEvt );
+ void KeyInput( const KeyEvent& rKEvt );
+ void KeyUp( const KeyEvent& rKEvt );
+ void Paint( const Rectangle& rRect );
+ void Resize();
+
BOOL Close();
-
+
void parseList( const rtl::OString& rList );
rtl::OString processCommand( const rtl::OString& rCommand );
-
+
DECL_LINK( ListHdl, Button* );
DECL_LINK( SelectHdl, ListBox* );
DECL_LINK( QuitHdl, Button* );
@@ -175,15 +175,15 @@ MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
m_aListButton.SetText( String( RTL_CONSTASCII_USTRINGPARAM( "List Elements" ) ) );
m_aListButton.SetClickHdl( LINK( this, MyWin, ListHdl ) );
m_aListButton.Show();
-
+
m_aSvpBitmaps.SetPosSizePixel( Point( 10, 40 ), Size( 150, 150 ) );
m_aSvpBitmaps.SetSelectHdl( LINK( this, MyWin, SelectHdl ) );
m_aSvpBitmaps.Show();
-
+
m_aImage.SetPosSizePixel( Point( 170, 10 ), Size( 400, 400 ) );
m_aImage.SetScaleMode( com::sun::star::awt::ImageScaleMode::None );
m_aImage.Show();
-
+
m_aQuitButton.SetPosSizePixel( Point( 10, 300 ), Size( 120,25 ) );
m_aQuitButton.SetText( String( RTL_CONSTASCII_USTRINGPARAM( "Quit SVP server" ) ) );
m_aQuitButton.SetClickHdl( LINK( this, MyWin, QuitHdl ) );
@@ -208,7 +208,7 @@ void MyWin::parseList( const rtl::OString& rList )
rtl::OString aLine = rList.getToken( 0, '\n', nTokenPos );
if( ! aLine.getLength() || *aLine.getStr() == '#' )
continue;
-
+
if( aLine.compareTo( "ElementType: ", 13 ) == 0 )
aElementType = rtl::OStringToOUString( aLine.copy( 13 ), RTL_TEXTENCODING_ASCII_US );
else
diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx
index 544f246a030b..4b5c40cb2439 100644
--- a/vcl/workben/svptest.cxx
+++ b/vcl/workben/svptest.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -79,13 +79,13 @@ class MyWin : public WorkWindow
public:
MyWin( Window* pParent, WinBits nWinStyle );
- void MouseMove( const MouseEvent& rMEvt );
- void MouseButtonDown( const MouseEvent& rMEvt );
- void MouseButtonUp( const MouseEvent& rMEvt );
- void KeyInput( const KeyEvent& rKEvt );
- void KeyUp( const KeyEvent& rKEvt );
- void Paint( const Rectangle& rRect );
- void Resize();
+ void MouseMove( const MouseEvent& rMEvt );
+ void MouseButtonDown( const MouseEvent& rMEvt );
+ void MouseButtonUp( const MouseEvent& rMEvt );
+ void KeyInput( const KeyEvent& rKEvt );
+ void KeyUp( const KeyEvent& rKEvt );
+ void Paint( const Rectangle& rRect );
+ void Resize();
};
// -----------------------------------------------------------------------
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index a4da3f11c966..09e977114945 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -77,13 +77,13 @@ class MyWin : public WorkWindow
public:
MyWin( Window* pParent, WinBits nWinStyle );
- void MouseMove( const MouseEvent& rMEvt );
- void MouseButtonDown( const MouseEvent& rMEvt );
- void MouseButtonUp( const MouseEvent& rMEvt );
- void KeyInput( const KeyEvent& rKEvt );
- void KeyUp( const KeyEvent& rKEvt );
- void Paint( const Rectangle& rRect );
- void Resize();
+ void MouseMove( const MouseEvent& rMEvt );
+ void MouseButtonDown( const MouseEvent& rMEvt );
+ void MouseButtonUp( const MouseEvent& rMEvt );
+ void KeyInput( const KeyEvent& rKEvt );
+ void KeyUp( const KeyEvent& rKEvt );
+ void Paint( const Rectangle& rRect );
+ void Resize();
};
// -----------------------------------------------------------------------
@@ -173,7 +173,7 @@ void MyWin::Paint( const Rectangle& rRect )
DrawLine( Point(r.nLeft, r.nTop+i), Point(r.nRight, r.nBottom-i) );
for(int i=0; i<aSz.Width(); i+=15)
DrawLine( Point(r.nLeft+i, r.nBottom), Point(r.nRight-i, r.nTop) );
-
+
SetTextColor( Color( COL_WHITE ) );
Font aFont( String( RTL_CONSTASCII_USTRINGPARAM( "Times" ) ), Size( 0, 25 ) );
SetFont( aFont );